@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260903063823 → 0.8.1-dev.20260905065929
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/AvatarViewClient-4GOKYZYT.mjs +108 -0
- package/dist/AvatarViewClient-S3GJZZZS.mjs +106 -0
- package/dist/{DataBindingControls-GWNAJ7PR.mjs → DataBindingControls-UUDERFAD.mjs} +1 -1
- package/dist/{Slider-554BKC7N.mjs → Slider-6GJY6M4D.mjs} +8 -6
- package/dist/{Slider-PEIVH6A5.mjs → Slider-ZA2GRRGS.mjs} +10 -4
- package/dist/{chunk-Q3LFGHLM.mjs → chunk-7JWVEYJY.mjs} +1 -1
- package/dist/index.js +385 -316
- package/dist/index.mjs +303 -349
- package/dist/server.js +298 -229
- package/dist/server.mjs +133 -179
- package/package.json +1 -1
- package/dist/{InputControlClient-GRH7VSJR.mjs → InputControlClient-5NX4CEZB.mjs} +5 -5
- package/dist/{Pagination-PGAK7KDA.mjs → Pagination-CQKMBXXJ.mjs} +1 -1
package/dist/server.mjs
CHANGED
|
@@ -749,60 +749,14 @@ var CommentRenderer = dynamic7(() => import("./CommentRendererClient-QC65XBT2.mj
|
|
|
749
749
|
var Commentrenderer_default = CommentRenderer;
|
|
750
750
|
|
|
751
751
|
// src/components/controls/view/AvatarView.tsx
|
|
752
|
-
import
|
|
753
|
-
var
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
"bg-warning-base",
|
|
757
|
-
"bg-success-base",
|
|
758
|
-
"bg-info-base",
|
|
759
|
-
"bg-primary-base",
|
|
760
|
-
"bg-secondary-base"
|
|
761
|
-
];
|
|
762
|
-
var getAvatarColor = (text) => {
|
|
763
|
-
let hash = 0;
|
|
764
|
-
for (let i = 0; i < text.length; i += 1) {
|
|
765
|
-
hash = hash * 31 + text.charCodeAt(i) >>> 0;
|
|
766
|
-
}
|
|
767
|
-
return AVATAR_COLORS[hash % AVATAR_COLORS.length];
|
|
768
|
-
};
|
|
769
|
-
var getInitials = (text) => {
|
|
770
|
-
const words = text.trim().split(/\s+/).filter(Boolean);
|
|
771
|
-
if (words.length === 0) {
|
|
772
|
-
return "?";
|
|
773
|
-
}
|
|
774
|
-
if (words.length === 1) {
|
|
775
|
-
return words[0].slice(0, 2).toUpperCase();
|
|
776
|
-
}
|
|
777
|
-
return `${words[0][0]}${words[words.length - 1][0]}`.toUpperCase();
|
|
778
|
-
};
|
|
779
|
-
var AvatarView = (props) => {
|
|
780
|
-
const text = props.value === null || props.value === void 0 ? "" : String(props.value).trim();
|
|
781
|
-
if (!text) {
|
|
782
|
-
return null;
|
|
783
|
-
}
|
|
784
|
-
const size = props.width ?? "1.75rem";
|
|
785
|
-
return /* @__PURE__ */ jsx21(
|
|
786
|
-
"span",
|
|
787
|
-
{
|
|
788
|
-
className: `avatar-view inline-flex flex-shrink-0 items-center justify-center rounded-full font-semibold uppercase select-none overflow-hidden ${getAvatarColor(text)}`,
|
|
789
|
-
title: text,
|
|
790
|
-
"aria-label": text,
|
|
791
|
-
style: {
|
|
792
|
-
width: size,
|
|
793
|
-
height: size,
|
|
794
|
-
fontSize: "0.6875rem",
|
|
795
|
-
letterSpacing: "0.02em",
|
|
796
|
-
lineHeight: 1
|
|
797
|
-
},
|
|
798
|
-
children: getInitials(text)
|
|
799
|
-
}
|
|
800
|
-
);
|
|
801
|
-
};
|
|
752
|
+
import dynamic8 from "next/dynamic";
|
|
753
|
+
var AvatarView = dynamic8(() => import("./AvatarViewClient-S3GJZZZS.mjs"), {
|
|
754
|
+
ssr: false
|
|
755
|
+
});
|
|
802
756
|
var AvatarView_default = AvatarView;
|
|
803
757
|
|
|
804
758
|
// src/components/controls/view/ViewControl.tsx
|
|
805
|
-
import { jsx as
|
|
759
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
806
760
|
var ViewControl = (props) => {
|
|
807
761
|
const ControlComponents = {
|
|
808
762
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -834,12 +788,12 @@ var ViewControl = (props) => {
|
|
|
834
788
|
[ViewControlTypes_default.avatar]: AvatarView_default
|
|
835
789
|
};
|
|
836
790
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
837
|
-
return /* @__PURE__ */
|
|
791
|
+
return /* @__PURE__ */ jsx21(React15.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx21(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
838
792
|
};
|
|
839
793
|
var ViewControl_default = ViewControl;
|
|
840
794
|
|
|
841
795
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
842
|
-
import { jsx as
|
|
796
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
843
797
|
function getNestedProperty(obj, path) {
|
|
844
798
|
if (!obj || !path) return null;
|
|
845
799
|
if (path.includes(".")) {
|
|
@@ -852,7 +806,7 @@ function getNestedProperty(obj, path) {
|
|
|
852
806
|
}
|
|
853
807
|
const value = obj[path];
|
|
854
808
|
if (Array.isArray(value)) {
|
|
855
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
809
|
+
return value.map((item, index) => /* @__PURE__ */ jsx22("div", { children: String(item) }, index));
|
|
856
810
|
}
|
|
857
811
|
return value;
|
|
858
812
|
}
|
|
@@ -915,7 +869,7 @@ var DatafieldNode = (props) => {
|
|
|
915
869
|
const dataType = props.node.dataType;
|
|
916
870
|
if (isEmptyValue) return null;
|
|
917
871
|
if (dataType === "rawContent") {
|
|
918
|
-
return /* @__PURE__ */
|
|
872
|
+
return /* @__PURE__ */ jsx22(
|
|
919
873
|
PageBodyRenderer_default,
|
|
920
874
|
{
|
|
921
875
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -931,13 +885,13 @@ var DatafieldNode = (props) => {
|
|
|
931
885
|
}
|
|
932
886
|
);
|
|
933
887
|
}
|
|
934
|
-
return /* @__PURE__ */
|
|
888
|
+
return /* @__PURE__ */ jsx22(
|
|
935
889
|
"span",
|
|
936
890
|
{
|
|
937
891
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
938
892
|
style: styles,
|
|
939
893
|
title,
|
|
940
|
-
children: /* @__PURE__ */
|
|
894
|
+
children: /* @__PURE__ */ jsx22(
|
|
941
895
|
ViewControl_default,
|
|
942
896
|
{
|
|
943
897
|
controlType: dataType,
|
|
@@ -952,7 +906,7 @@ var DatafieldNode = (props) => {
|
|
|
952
906
|
var DatafieldNode_default = DatafieldNode;
|
|
953
907
|
|
|
954
908
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
955
|
-
import { Fragment as Fragment2, jsx as
|
|
909
|
+
import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
956
910
|
var ParagraphNode = (props) => {
|
|
957
911
|
const NodeTypes2 = {
|
|
958
912
|
["text"]: TextNode_default,
|
|
@@ -972,9 +926,9 @@ var ParagraphNode = (props) => {
|
|
|
972
926
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
973
927
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
974
928
|
if (isInlineOnlyParent) {
|
|
975
|
-
return /* @__PURE__ */
|
|
929
|
+
return /* @__PURE__ */ jsx23(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
976
930
|
const SelectedNode = NodeTypes2[node.type];
|
|
977
|
-
return /* @__PURE__ */
|
|
931
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
|
|
978
932
|
SelectedNode,
|
|
979
933
|
{
|
|
980
934
|
node,
|
|
@@ -990,7 +944,7 @@ var ParagraphNode = (props) => {
|
|
|
990
944
|
return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
|
|
991
945
|
hasChildren && props.node.children.map((node, index) => {
|
|
992
946
|
const SelectedNode = NodeTypes2[node.type];
|
|
993
|
-
return /* @__PURE__ */
|
|
947
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
|
|
994
948
|
SelectedNode,
|
|
995
949
|
{
|
|
996
950
|
node,
|
|
@@ -1002,14 +956,14 @@ var ParagraphNode = (props) => {
|
|
|
1002
956
|
}
|
|
1003
957
|
) }, index);
|
|
1004
958
|
}),
|
|
1005
|
-
!hasChildren && /* @__PURE__ */
|
|
959
|
+
!hasChildren && /* @__PURE__ */ jsx23("div", { className: "py-1.5 lg:py-2" })
|
|
1006
960
|
] });
|
|
1007
961
|
};
|
|
1008
962
|
var ParagraphNode_default = ParagraphNode;
|
|
1009
963
|
|
|
1010
964
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
1011
965
|
import React17 from "react";
|
|
1012
|
-
import { Fragment as Fragment3, jsx as
|
|
966
|
+
import { Fragment as Fragment3, jsx as jsx24 } from "react/jsx-runtime";
|
|
1013
967
|
var HeadingNode = (props) => {
|
|
1014
968
|
const NodeTypes2 = {
|
|
1015
969
|
["text"]: TextNode_default,
|
|
@@ -1025,12 +979,12 @@ var HeadingNode = (props) => {
|
|
|
1025
979
|
{
|
|
1026
980
|
}
|
|
1027
981
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
1028
|
-
return /* @__PURE__ */
|
|
982
|
+
return /* @__PURE__ */ jsx24(Fragment3, { children: React17.createElement(
|
|
1029
983
|
HeadingTag,
|
|
1030
984
|
{ className: formatClasses },
|
|
1031
985
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
1032
986
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
1033
|
-
return /* @__PURE__ */
|
|
987
|
+
return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1034
988
|
})
|
|
1035
989
|
) });
|
|
1036
990
|
};
|
|
@@ -1041,7 +995,7 @@ import React19 from "react";
|
|
|
1041
995
|
|
|
1042
996
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
1043
997
|
import React18 from "react";
|
|
1044
|
-
import { jsx as
|
|
998
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1045
999
|
var ListItemNode = (props) => {
|
|
1046
1000
|
const NodeTypes2 = {
|
|
1047
1001
|
text: TextNode_default,
|
|
@@ -1058,37 +1012,37 @@ var ListItemNode = (props) => {
|
|
|
1058
1012
|
liStyle.fontSize = match[1].trim();
|
|
1059
1013
|
}
|
|
1060
1014
|
}
|
|
1061
|
-
return /* @__PURE__ */
|
|
1015
|
+
return /* @__PURE__ */ jsx25("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
1062
1016
|
const SelectedNode = NodeTypes2[node.type];
|
|
1063
1017
|
if (node.type === "linebreak") {
|
|
1064
1018
|
if (!foundFirstBreak) {
|
|
1065
1019
|
foundFirstBreak = true;
|
|
1066
|
-
return /* @__PURE__ */
|
|
1020
|
+
return /* @__PURE__ */ jsx25("div", {}, index);
|
|
1067
1021
|
} else {
|
|
1068
|
-
return /* @__PURE__ */
|
|
1022
|
+
return /* @__PURE__ */ jsx25("div", { className: "py-1 lg:py-2" }, index);
|
|
1069
1023
|
}
|
|
1070
1024
|
} else {
|
|
1071
1025
|
foundFirstBreak = false;
|
|
1072
|
-
return /* @__PURE__ */
|
|
1026
|
+
return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1073
1027
|
}
|
|
1074
1028
|
}) });
|
|
1075
1029
|
};
|
|
1076
1030
|
var ListItemNode_default = ListItemNode;
|
|
1077
1031
|
|
|
1078
1032
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1079
|
-
import { jsx as
|
|
1033
|
+
import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1080
1034
|
var ListNode = (props) => {
|
|
1081
1035
|
const NodeTypes2 = {
|
|
1082
1036
|
listitem: ListItemNode_default
|
|
1083
1037
|
};
|
|
1084
1038
|
return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
|
|
1085
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1039
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx26("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1086
1040
|
const SelectedNode = NodeTypes2[node.type];
|
|
1087
|
-
return /* @__PURE__ */
|
|
1041
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1088
1042
|
}) }),
|
|
1089
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1043
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx26("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1090
1044
|
const SelectedNode = NodeTypes2[node.type];
|
|
1091
|
-
return /* @__PURE__ */
|
|
1045
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1092
1046
|
}) })
|
|
1093
1047
|
] });
|
|
1094
1048
|
};
|
|
@@ -1096,28 +1050,28 @@ var ListNode_default = ListNode;
|
|
|
1096
1050
|
|
|
1097
1051
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
1098
1052
|
import React20 from "react";
|
|
1099
|
-
import { jsx as
|
|
1053
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1100
1054
|
var QuoteNode = (props) => {
|
|
1101
1055
|
const NodeTypes2 = {
|
|
1102
1056
|
["text"]: TextNode_default,
|
|
1103
1057
|
["linebreak"]: LineBreakNode_default,
|
|
1104
1058
|
["link"]: LinkNode_default
|
|
1105
1059
|
};
|
|
1106
|
-
return /* @__PURE__ */
|
|
1060
|
+
return /* @__PURE__ */ jsx27("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1107
1061
|
const SelectedNode = NodeTypes2[node.type];
|
|
1108
|
-
return /* @__PURE__ */
|
|
1062
|
+
return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1109
1063
|
}) });
|
|
1110
1064
|
};
|
|
1111
1065
|
var QuoteNode_default = QuoteNode;
|
|
1112
1066
|
|
|
1113
1067
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1114
1068
|
import React21 from "react";
|
|
1115
|
-
import
|
|
1116
|
-
import { jsx as
|
|
1117
|
-
var CopyButton =
|
|
1069
|
+
import dynamic9 from "next/dynamic";
|
|
1070
|
+
import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1071
|
+
var CopyButton = dynamic9(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
1118
1072
|
ssr: false,
|
|
1119
1073
|
// optional: fallback UI while loading
|
|
1120
|
-
loading: () => /* @__PURE__ */
|
|
1074
|
+
loading: () => /* @__PURE__ */ jsx28("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1121
1075
|
});
|
|
1122
1076
|
var CodeNode = (props) => {
|
|
1123
1077
|
const NodeTypes2 = {
|
|
@@ -1133,12 +1087,12 @@ var CodeNode = (props) => {
|
|
|
1133
1087
|
}).join("") ?? "";
|
|
1134
1088
|
return /* @__PURE__ */ jsxs10("div", { children: [
|
|
1135
1089
|
/* @__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: [
|
|
1136
|
-
/* @__PURE__ */
|
|
1137
|
-
/* @__PURE__ */
|
|
1090
|
+
/* @__PURE__ */ jsx28("span", { children: "Code Snippet" }),
|
|
1091
|
+
/* @__PURE__ */ jsx28(CopyButton, { text: textContent })
|
|
1138
1092
|
] }),
|
|
1139
|
-
/* @__PURE__ */
|
|
1093
|
+
/* @__PURE__ */ jsx28("code", { className: "bg-neutral-soft p-4 text-sm whitespace-pre-wrap border border-2 block", children: props.node.children && props.node.children.map((node, index) => {
|
|
1140
1094
|
const SelectedNode = NodeTypes2[node.type];
|
|
1141
|
-
return /* @__PURE__ */
|
|
1095
|
+
return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
|
|
1142
1096
|
SelectedNode,
|
|
1143
1097
|
{
|
|
1144
1098
|
node,
|
|
@@ -1153,15 +1107,15 @@ var CodeNode = (props) => {
|
|
|
1153
1107
|
var CodeNode_default = CodeNode;
|
|
1154
1108
|
|
|
1155
1109
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1156
|
-
import { jsx as
|
|
1110
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1157
1111
|
var HorizontalRuleNode = () => {
|
|
1158
|
-
return /* @__PURE__ */
|
|
1112
|
+
return /* @__PURE__ */ jsx29("hr", {});
|
|
1159
1113
|
};
|
|
1160
1114
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1161
1115
|
|
|
1162
1116
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1163
1117
|
import React22 from "react";
|
|
1164
|
-
import { Fragment as Fragment4, jsx as
|
|
1118
|
+
import { Fragment as Fragment4, jsx as jsx30 } from "react/jsx-runtime";
|
|
1165
1119
|
var WidgetNode = (props) => {
|
|
1166
1120
|
const getWidgetParameters = () => {
|
|
1167
1121
|
const widgetInputParameters = {
|
|
@@ -1225,7 +1179,7 @@ var WidgetNode = (props) => {
|
|
|
1225
1179
|
};
|
|
1226
1180
|
const widgetCode = props.node?.widgetCode;
|
|
1227
1181
|
if (!widgetCode) {
|
|
1228
|
-
return /* @__PURE__ */
|
|
1182
|
+
return /* @__PURE__ */ jsx30(Fragment4, { children: "Invalid widget" });
|
|
1229
1183
|
}
|
|
1230
1184
|
const widgetParams = getWidgetParameters();
|
|
1231
1185
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1234,7 +1188,7 @@ var WidgetNode = (props) => {
|
|
|
1234
1188
|
}
|
|
1235
1189
|
return (
|
|
1236
1190
|
// eslint-disable-next-line react-hooks/static-components
|
|
1237
|
-
/* @__PURE__ */
|
|
1191
|
+
/* @__PURE__ */ jsx30(React22.Fragment, { children: /* @__PURE__ */ jsx30(
|
|
1238
1192
|
WidgetRenderer,
|
|
1239
1193
|
{
|
|
1240
1194
|
params: widgetParams,
|
|
@@ -1251,13 +1205,13 @@ var WidgetNode = (props) => {
|
|
|
1251
1205
|
var WidgetNode_default = WidgetNode;
|
|
1252
1206
|
|
|
1253
1207
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
1254
|
-
import
|
|
1208
|
+
import dynamic13 from "next/dynamic";
|
|
1255
1209
|
import React23 from "react";
|
|
1256
1210
|
|
|
1257
1211
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1258
|
-
import
|
|
1259
|
-
import { jsx as
|
|
1260
|
-
var IframeClient =
|
|
1212
|
+
import dynamic10 from "next/dynamic";
|
|
1213
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1214
|
+
var IframeClient = dynamic10(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
1261
1215
|
ssr: false
|
|
1262
1216
|
});
|
|
1263
1217
|
var EmbedNode = (props) => {
|
|
@@ -1269,7 +1223,7 @@ var EmbedNode = (props) => {
|
|
|
1269
1223
|
} else {
|
|
1270
1224
|
src = props.node.embedSrc;
|
|
1271
1225
|
}
|
|
1272
|
-
return /* @__PURE__ */
|
|
1226
|
+
return /* @__PURE__ */ jsx31("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx31(IframeClient, { src }) });
|
|
1273
1227
|
};
|
|
1274
1228
|
var EmbedNode_default = EmbedNode;
|
|
1275
1229
|
|
|
@@ -1462,10 +1416,10 @@ var PathUtility = class {
|
|
|
1462
1416
|
var PathUtility_default = new PathUtility();
|
|
1463
1417
|
|
|
1464
1418
|
// src/components/NoDataFound.tsx
|
|
1465
|
-
import { jsx as
|
|
1419
|
+
import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1466
1420
|
var NoDataFound = () => {
|
|
1467
1421
|
return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1468
|
-
/* @__PURE__ */
|
|
1422
|
+
/* @__PURE__ */ jsx32("div", { className: "mb-5", children: /* @__PURE__ */ jsx32("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx32(
|
|
1469
1423
|
"svg",
|
|
1470
1424
|
{
|
|
1471
1425
|
className: "w-10 h-10",
|
|
@@ -1473,7 +1427,7 @@ var NoDataFound = () => {
|
|
|
1473
1427
|
stroke: "currentColor",
|
|
1474
1428
|
viewBox: "0 0 24 24",
|
|
1475
1429
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1476
|
-
children: /* @__PURE__ */
|
|
1430
|
+
children: /* @__PURE__ */ jsx32(
|
|
1477
1431
|
"path",
|
|
1478
1432
|
{
|
|
1479
1433
|
strokeLinecap: "round",
|
|
@@ -1484,16 +1438,16 @@ var NoDataFound = () => {
|
|
|
1484
1438
|
)
|
|
1485
1439
|
}
|
|
1486
1440
|
) }) }),
|
|
1487
|
-
/* @__PURE__ */
|
|
1488
|
-
/* @__PURE__ */
|
|
1441
|
+
/* @__PURE__ */ jsx32("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1442
|
+
/* @__PURE__ */ jsx32("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1489
1443
|
] });
|
|
1490
1444
|
};
|
|
1491
1445
|
var NoDataFound_default = NoDataFound;
|
|
1492
1446
|
|
|
1493
1447
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1494
|
-
import
|
|
1495
|
-
import { Fragment as Fragment5, jsx as
|
|
1496
|
-
var HlsPlayer3 =
|
|
1448
|
+
import dynamic11 from "next/dynamic";
|
|
1449
|
+
import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1450
|
+
var HlsPlayer3 = dynamic11(() => import("./HlsPlayer-BVS6BVF7.mjs"), { ssr: false });
|
|
1497
1451
|
var deviceToMediaQuery = (device) => {
|
|
1498
1452
|
switch (device) {
|
|
1499
1453
|
case "lg":
|
|
@@ -1649,7 +1603,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1649
1603
|
};
|
|
1650
1604
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1651
1605
|
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1652
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1606
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx33(Fragment5, { children: /* @__PURE__ */ jsx33(
|
|
1653
1607
|
HlsPlayer3,
|
|
1654
1608
|
{
|
|
1655
1609
|
sources: hlsSources,
|
|
@@ -1664,7 +1618,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1664
1618
|
styles: hlsStyles
|
|
1665
1619
|
}
|
|
1666
1620
|
) }),
|
|
1667
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1621
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx33(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs12("picture", { children: [
|
|
1668
1622
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1669
1623
|
const match = staticSources.find(
|
|
1670
1624
|
(img) => img.device === deviceKey
|
|
@@ -1680,7 +1634,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1680
1634
|
if (!srcUrl) {
|
|
1681
1635
|
return null;
|
|
1682
1636
|
}
|
|
1683
|
-
return /* @__PURE__ */
|
|
1637
|
+
return /* @__PURE__ */ jsx33(
|
|
1684
1638
|
"source",
|
|
1685
1639
|
{
|
|
1686
1640
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1705,7 +1659,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1705
1659
|
if (img.borderRadius) {
|
|
1706
1660
|
styles.borderRadius = img.borderRadius;
|
|
1707
1661
|
}
|
|
1708
|
-
return /* @__PURE__ */
|
|
1662
|
+
return /* @__PURE__ */ jsx33(
|
|
1709
1663
|
"img",
|
|
1710
1664
|
{
|
|
1711
1665
|
loading: "lazy",
|
|
@@ -1720,7 +1674,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1720
1674
|
})()
|
|
1721
1675
|
] }) : (
|
|
1722
1676
|
/* Case 2: Only device-specific images exist */
|
|
1723
|
-
/* @__PURE__ */
|
|
1677
|
+
/* @__PURE__ */ jsx33(Fragment5, { children: staticSources.map((img, index) => {
|
|
1724
1678
|
const resolved = resolveImage(img);
|
|
1725
1679
|
const imageUrl = resolved?.imageUrl;
|
|
1726
1680
|
if (!imageUrl) {
|
|
@@ -1747,7 +1701,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1747
1701
|
default:
|
|
1748
1702
|
display = "block";
|
|
1749
1703
|
}
|
|
1750
|
-
return /* @__PURE__ */
|
|
1704
|
+
return /* @__PURE__ */ jsx33(
|
|
1751
1705
|
"img",
|
|
1752
1706
|
{
|
|
1753
1707
|
loading: "lazy",
|
|
@@ -1887,7 +1841,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1887
1841
|
};
|
|
1888
1842
|
|
|
1889
1843
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1890
|
-
import { Fragment as Fragment6, jsx as
|
|
1844
|
+
import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1891
1845
|
var getNestedValue5 = (obj, path) => {
|
|
1892
1846
|
if (!obj || !path) return void 0;
|
|
1893
1847
|
return path.split(".").reduce((current, key) => {
|
|
@@ -1901,14 +1855,14 @@ var PdfIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1901
1855
|
viewBox: "0 0 48 48",
|
|
1902
1856
|
className: "w-10 h-10",
|
|
1903
1857
|
children: [
|
|
1904
|
-
/* @__PURE__ */
|
|
1858
|
+
/* @__PURE__ */ jsx34(
|
|
1905
1859
|
"path",
|
|
1906
1860
|
{
|
|
1907
1861
|
fill: "#e53935",
|
|
1908
1862
|
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"
|
|
1909
1863
|
}
|
|
1910
1864
|
),
|
|
1911
|
-
/* @__PURE__ */
|
|
1865
|
+
/* @__PURE__ */ jsx34(
|
|
1912
1866
|
"path",
|
|
1913
1867
|
{
|
|
1914
1868
|
fill: "#fff",
|
|
@@ -1925,48 +1879,48 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1925
1879
|
viewBox: "0 0 48 48",
|
|
1926
1880
|
className: "w-10 h-10",
|
|
1927
1881
|
children: [
|
|
1928
|
-
/* @__PURE__ */
|
|
1882
|
+
/* @__PURE__ */ jsx34(
|
|
1929
1883
|
"path",
|
|
1930
1884
|
{
|
|
1931
1885
|
fill: "#169154",
|
|
1932
1886
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1933
1887
|
}
|
|
1934
1888
|
),
|
|
1935
|
-
/* @__PURE__ */
|
|
1889
|
+
/* @__PURE__ */ jsx34(
|
|
1936
1890
|
"path",
|
|
1937
1891
|
{
|
|
1938
1892
|
fill: "#18482a",
|
|
1939
1893
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
1940
1894
|
}
|
|
1941
1895
|
),
|
|
1942
|
-
/* @__PURE__ */
|
|
1943
|
-
/* @__PURE__ */
|
|
1896
|
+
/* @__PURE__ */ jsx34("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
1897
|
+
/* @__PURE__ */ jsx34("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
1944
1898
|
/* @__PURE__ */ jsxs13("g", { children: [
|
|
1945
|
-
/* @__PURE__ */
|
|
1899
|
+
/* @__PURE__ */ jsx34(
|
|
1946
1900
|
"path",
|
|
1947
1901
|
{
|
|
1948
1902
|
fill: "#29c27f",
|
|
1949
1903
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
1950
1904
|
}
|
|
1951
1905
|
),
|
|
1952
|
-
/* @__PURE__ */
|
|
1906
|
+
/* @__PURE__ */ jsx34(
|
|
1953
1907
|
"path",
|
|
1954
1908
|
{
|
|
1955
1909
|
fill: "#27663f",
|
|
1956
1910
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
1957
1911
|
}
|
|
1958
1912
|
),
|
|
1959
|
-
/* @__PURE__ */
|
|
1960
|
-
/* @__PURE__ */
|
|
1913
|
+
/* @__PURE__ */ jsx34("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
1914
|
+
/* @__PURE__ */ jsx34("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
1961
1915
|
] }),
|
|
1962
|
-
/* @__PURE__ */
|
|
1916
|
+
/* @__PURE__ */ jsx34(
|
|
1963
1917
|
"path",
|
|
1964
1918
|
{
|
|
1965
1919
|
fill: "#0c7238",
|
|
1966
1920
|
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"
|
|
1967
1921
|
}
|
|
1968
1922
|
),
|
|
1969
|
-
/* @__PURE__ */
|
|
1923
|
+
/* @__PURE__ */ jsx34(
|
|
1970
1924
|
"path",
|
|
1971
1925
|
{
|
|
1972
1926
|
fill: "#fff",
|
|
@@ -1984,7 +1938,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1984
1938
|
className: "w-10 h-10",
|
|
1985
1939
|
baseProfile: "basic",
|
|
1986
1940
|
children: [
|
|
1987
|
-
/* @__PURE__ */
|
|
1941
|
+
/* @__PURE__ */ jsx34(
|
|
1988
1942
|
"path",
|
|
1989
1943
|
{
|
|
1990
1944
|
fill: "#283593",
|
|
@@ -2002,19 +1956,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2002
1956
|
gradientTransform: "translate(0 -339.89)",
|
|
2003
1957
|
gradientUnits: "userSpaceOnUse",
|
|
2004
1958
|
children: [
|
|
2005
|
-
/* @__PURE__ */
|
|
2006
|
-
/* @__PURE__ */
|
|
1959
|
+
/* @__PURE__ */ jsx34("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
1960
|
+
/* @__PURE__ */ jsx34("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
2007
1961
|
]
|
|
2008
1962
|
}
|
|
2009
1963
|
),
|
|
2010
|
-
/* @__PURE__ */
|
|
1964
|
+
/* @__PURE__ */ jsx34(
|
|
2011
1965
|
"path",
|
|
2012
1966
|
{
|
|
2013
1967
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
2014
1968
|
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"
|
|
2015
1969
|
}
|
|
2016
1970
|
),
|
|
2017
|
-
/* @__PURE__ */
|
|
1971
|
+
/* @__PURE__ */ jsx34(
|
|
2018
1972
|
"path",
|
|
2019
1973
|
{
|
|
2020
1974
|
fill: "#1e88e5",
|
|
@@ -2022,21 +1976,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2022
1976
|
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"
|
|
2023
1977
|
}
|
|
2024
1978
|
),
|
|
2025
|
-
/* @__PURE__ */
|
|
1979
|
+
/* @__PURE__ */ jsx34(
|
|
2026
1980
|
"path",
|
|
2027
1981
|
{
|
|
2028
1982
|
fill: "#00e5ff",
|
|
2029
1983
|
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"
|
|
2030
1984
|
}
|
|
2031
1985
|
),
|
|
2032
|
-
/* @__PURE__ */
|
|
1986
|
+
/* @__PURE__ */ jsx34(
|
|
2033
1987
|
"path",
|
|
2034
1988
|
{
|
|
2035
1989
|
fill: "#1565c0",
|
|
2036
1990
|
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"
|
|
2037
1991
|
}
|
|
2038
1992
|
),
|
|
2039
|
-
/* @__PURE__ */
|
|
1993
|
+
/* @__PURE__ */ jsx34(
|
|
2040
1994
|
"path",
|
|
2041
1995
|
{
|
|
2042
1996
|
fill: "#fff",
|
|
@@ -2053,8 +2007,8 @@ var StandardIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2053
2007
|
viewBox: "0 0 48 48",
|
|
2054
2008
|
className: "w-10 h-10",
|
|
2055
2009
|
children: [
|
|
2056
|
-
/* @__PURE__ */
|
|
2057
|
-
/* @__PURE__ */
|
|
2010
|
+
/* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2011
|
+
/* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
2058
2012
|
]
|
|
2059
2013
|
}
|
|
2060
2014
|
);
|
|
@@ -2065,23 +2019,23 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2065
2019
|
viewBox: "0 0 48 48",
|
|
2066
2020
|
className: "w-10 h-10",
|
|
2067
2021
|
children: [
|
|
2068
|
-
/* @__PURE__ */
|
|
2022
|
+
/* @__PURE__ */ jsx34(
|
|
2069
2023
|
"path",
|
|
2070
2024
|
{
|
|
2071
2025
|
fill: "#dc4c2c",
|
|
2072
2026
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
2073
2027
|
}
|
|
2074
2028
|
),
|
|
2075
|
-
/* @__PURE__ */
|
|
2076
|
-
/* @__PURE__ */
|
|
2077
|
-
/* @__PURE__ */
|
|
2029
|
+
/* @__PURE__ */ jsx34("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
2030
|
+
/* @__PURE__ */ jsx34("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
2031
|
+
/* @__PURE__ */ jsx34(
|
|
2078
2032
|
"path",
|
|
2079
2033
|
{
|
|
2080
2034
|
fill: "#9b341f",
|
|
2081
2035
|
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"
|
|
2082
2036
|
}
|
|
2083
2037
|
),
|
|
2084
|
-
/* @__PURE__ */
|
|
2038
|
+
/* @__PURE__ */ jsx34(
|
|
2085
2039
|
"path",
|
|
2086
2040
|
{
|
|
2087
2041
|
fill: "#fff",
|
|
@@ -2098,9 +2052,9 @@ var TextIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2098
2052
|
viewBox: "0 0 48 48",
|
|
2099
2053
|
className: "w-10 h-10",
|
|
2100
2054
|
children: [
|
|
2101
|
-
/* @__PURE__ */
|
|
2102
|
-
/* @__PURE__ */
|
|
2103
|
-
/* @__PURE__ */
|
|
2055
|
+
/* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2056
|
+
/* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
2057
|
+
/* @__PURE__ */ jsx34(
|
|
2104
2058
|
"path",
|
|
2105
2059
|
{
|
|
2106
2060
|
fill: "#1976D2",
|
|
@@ -2120,14 +2074,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2120
2074
|
version: "1.0",
|
|
2121
2075
|
className: "w-10 h-10",
|
|
2122
2076
|
children: [
|
|
2123
|
-
/* @__PURE__ */
|
|
2077
|
+
/* @__PURE__ */ jsx34("defs", { children: /* @__PURE__ */ jsx34("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx34(
|
|
2124
2078
|
"path",
|
|
2125
2079
|
{
|
|
2126
2080
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
2127
2081
|
"clip-rule": "nonzero"
|
|
2128
2082
|
}
|
|
2129
2083
|
) }) }),
|
|
2130
|
-
/* @__PURE__ */
|
|
2084
|
+
/* @__PURE__ */ jsx34("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx34(
|
|
2131
2085
|
"path",
|
|
2132
2086
|
{
|
|
2133
2087
|
fill: "#ff9100",
|
|
@@ -2136,7 +2090,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2136
2090
|
"fill-rule": "nonzero"
|
|
2137
2091
|
}
|
|
2138
2092
|
) }),
|
|
2139
|
-
/* @__PURE__ */
|
|
2093
|
+
/* @__PURE__ */ jsx34(
|
|
2140
2094
|
"path",
|
|
2141
2095
|
{
|
|
2142
2096
|
fill: "#fbe9e7",
|
|
@@ -2145,7 +2099,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2145
2099
|
"fill-rule": "nonzero"
|
|
2146
2100
|
}
|
|
2147
2101
|
),
|
|
2148
|
-
/* @__PURE__ */
|
|
2102
|
+
/* @__PURE__ */ jsx34(
|
|
2149
2103
|
"path",
|
|
2150
2104
|
{
|
|
2151
2105
|
fill: "#ffe0b2",
|
|
@@ -2154,7 +2108,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2154
2108
|
"fill-rule": "nonzero"
|
|
2155
2109
|
}
|
|
2156
2110
|
),
|
|
2157
|
-
/* @__PURE__ */
|
|
2111
|
+
/* @__PURE__ */ jsx34(
|
|
2158
2112
|
"path",
|
|
2159
2113
|
{
|
|
2160
2114
|
fill: "#ffe0b2",
|
|
@@ -2163,7 +2117,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2163
2117
|
"fill-rule": "nonzero"
|
|
2164
2118
|
}
|
|
2165
2119
|
),
|
|
2166
|
-
/* @__PURE__ */
|
|
2120
|
+
/* @__PURE__ */ jsx34(
|
|
2167
2121
|
"path",
|
|
2168
2122
|
{
|
|
2169
2123
|
fill: "#ffe0b2",
|
|
@@ -2238,8 +2192,8 @@ var DocumentNode = (props) => {
|
|
|
2238
2192
|
}
|
|
2239
2193
|
}
|
|
2240
2194
|
if (documents.length === 0) {
|
|
2241
|
-
return /* @__PURE__ */
|
|
2242
|
-
/* @__PURE__ */
|
|
2195
|
+
return /* @__PURE__ */ jsx34(Fragment6, { children: /* @__PURE__ */ jsxs13("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2196
|
+
/* @__PURE__ */ jsx34("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx34(
|
|
2243
2197
|
"svg",
|
|
2244
2198
|
{
|
|
2245
2199
|
className: "w-5 h-5",
|
|
@@ -2247,7 +2201,7 @@ var DocumentNode = (props) => {
|
|
|
2247
2201
|
stroke: "currentColor",
|
|
2248
2202
|
viewBox: "0 0 24 24",
|
|
2249
2203
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2250
|
-
children: /* @__PURE__ */
|
|
2204
|
+
children: /* @__PURE__ */ jsx34(
|
|
2251
2205
|
"path",
|
|
2252
2206
|
{
|
|
2253
2207
|
strokeLinecap: "round",
|
|
@@ -2258,11 +2212,11 @@ var DocumentNode = (props) => {
|
|
|
2258
2212
|
)
|
|
2259
2213
|
}
|
|
2260
2214
|
) }),
|
|
2261
|
-
/* @__PURE__ */
|
|
2262
|
-
/* @__PURE__ */
|
|
2215
|
+
/* @__PURE__ */ jsx34("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2216
|
+
/* @__PURE__ */ jsx34("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2263
2217
|
] }) });
|
|
2264
2218
|
}
|
|
2265
|
-
return /* @__PURE__ */
|
|
2219
|
+
return /* @__PURE__ */ jsx34("div", { className: "", children: documents.map((doc, index) => {
|
|
2266
2220
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2267
2221
|
props.assetBaseUrl,
|
|
2268
2222
|
doc.assetUrl
|
|
@@ -2286,8 +2240,8 @@ var DocumentNode = (props) => {
|
|
|
2286
2240
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2287
2241
|
children: [
|
|
2288
2242
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-4", children: [
|
|
2289
|
-
/* @__PURE__ */
|
|
2290
|
-
/* @__PURE__ */
|
|
2243
|
+
/* @__PURE__ */ jsx34("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx34(Icon, {}) }),
|
|
2244
|
+
/* @__PURE__ */ jsx34("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx34("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2291
2245
|
] }),
|
|
2292
2246
|
/* @__PURE__ */ jsxs13(
|
|
2293
2247
|
"a",
|
|
@@ -2305,7 +2259,7 @@ var DocumentNode = (props) => {
|
|
|
2305
2259
|
stroke: "currentColor",
|
|
2306
2260
|
viewBox: "0 0 24 24",
|
|
2307
2261
|
children: [
|
|
2308
|
-
/* @__PURE__ */
|
|
2262
|
+
/* @__PURE__ */ jsx34(
|
|
2309
2263
|
"path",
|
|
2310
2264
|
{
|
|
2311
2265
|
strokeLinecap: "round",
|
|
@@ -2314,7 +2268,7 @@ var DocumentNode = (props) => {
|
|
|
2314
2268
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2315
2269
|
}
|
|
2316
2270
|
),
|
|
2317
|
-
/* @__PURE__ */
|
|
2271
|
+
/* @__PURE__ */ jsx34(
|
|
2318
2272
|
"path",
|
|
2319
2273
|
{
|
|
2320
2274
|
strokeLinecap: "round",
|
|
@@ -2339,14 +2293,14 @@ var DocumentNode = (props) => {
|
|
|
2339
2293
|
var DocumentNode_default = DocumentNode;
|
|
2340
2294
|
|
|
2341
2295
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2342
|
-
import
|
|
2343
|
-
import { jsx as
|
|
2344
|
-
var IframeClient2 =
|
|
2296
|
+
import dynamic12 from "next/dynamic";
|
|
2297
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2298
|
+
var IframeClient2 = dynamic12(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
2345
2299
|
ssr: false
|
|
2346
2300
|
});
|
|
2347
2301
|
var GoogleMapNode = (props) => {
|
|
2348
2302
|
let src = props.node.embedUrl;
|
|
2349
|
-
return /* @__PURE__ */
|
|
2303
|
+
return /* @__PURE__ */ jsx35("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx35(
|
|
2350
2304
|
IframeClient2,
|
|
2351
2305
|
{
|
|
2352
2306
|
src,
|
|
@@ -2358,12 +2312,12 @@ var GoogleMapNode = (props) => {
|
|
|
2358
2312
|
var GoogleMapNode_default = GoogleMapNode;
|
|
2359
2313
|
|
|
2360
2314
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2361
|
-
import { jsx as
|
|
2362
|
-
var Pagination =
|
|
2363
|
-
var DataBindingControls =
|
|
2315
|
+
import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2316
|
+
var Pagination = dynamic13(() => import("./Pagination-M3VZKKXY.mjs"), { ssr: true });
|
|
2317
|
+
var DataBindingControls = dynamic13(() => import("./DataBindingControls-WC3HBVVQ.mjs"), {
|
|
2364
2318
|
ssr: true
|
|
2365
2319
|
});
|
|
2366
|
-
var Slider =
|
|
2320
|
+
var Slider = dynamic13(() => import("./Slider-6GJY6M4D.mjs"), {
|
|
2367
2321
|
ssr: false
|
|
2368
2322
|
});
|
|
2369
2323
|
function toCamelCase(str) {
|
|
@@ -2642,7 +2596,7 @@ var DivContainer = async (props) => {
|
|
|
2642
2596
|
}
|
|
2643
2597
|
const SelectedNode = NodeTypes2[node.type];
|
|
2644
2598
|
if (!SelectedNode) return null;
|
|
2645
|
-
return /* @__PURE__ */
|
|
2599
|
+
return /* @__PURE__ */ jsx36(React23.Fragment, { children: /* @__PURE__ */ jsx36(
|
|
2646
2600
|
SelectedNode,
|
|
2647
2601
|
{
|
|
2648
2602
|
node,
|
|
@@ -2734,7 +2688,7 @@ var DivContainer = async (props) => {
|
|
|
2734
2688
|
item,
|
|
2735
2689
|
idx,
|
|
2736
2690
|
props.href ? void 0 : item?.links?.view
|
|
2737
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2691
|
+
)?.map((child, i) => /* @__PURE__ */ jsx36(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
2738
2692
|
);
|
|
2739
2693
|
}
|
|
2740
2694
|
return props.node.children.flatMap((node, childIndex) => {
|
|
@@ -2848,17 +2802,17 @@ var DivContainer = async (props) => {
|
|
|
2848
2802
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
2849
2803
|
);
|
|
2850
2804
|
const WrapperComponent = Wrapper;
|
|
2851
|
-
const renderedContainer = /* @__PURE__ */
|
|
2805
|
+
const renderedContainer = /* @__PURE__ */ jsx36(
|
|
2852
2806
|
WrapperComponent,
|
|
2853
2807
|
{
|
|
2854
2808
|
id: guid,
|
|
2855
2809
|
style: combinedStyles,
|
|
2856
2810
|
className: classNames || void 0,
|
|
2857
2811
|
...wrapperProps,
|
|
2858
|
-
children: shouldShowNoDataMessage ? /* @__PURE__ */
|
|
2812
|
+
children: shouldShowNoDataMessage ? /* @__PURE__ */ jsx36(NoDataFound_default, {}) : renderContainerChildren()
|
|
2859
2813
|
}
|
|
2860
2814
|
);
|
|
2861
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */
|
|
2815
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx36(
|
|
2862
2816
|
Pagination,
|
|
2863
2817
|
{
|
|
2864
2818
|
path: props.path,
|
|
@@ -2867,14 +2821,14 @@ var DivContainer = async (props) => {
|
|
|
2867
2821
|
}
|
|
2868
2822
|
) : null;
|
|
2869
2823
|
return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2870
|
-
/* @__PURE__ */
|
|
2824
|
+
/* @__PURE__ */ jsx36(
|
|
2871
2825
|
"style",
|
|
2872
2826
|
{
|
|
2873
2827
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2874
2828
|
}
|
|
2875
2829
|
),
|
|
2876
2830
|
showDataBindingControls ? /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2877
|
-
/* @__PURE__ */
|
|
2831
|
+
/* @__PURE__ */ jsx36(
|
|
2878
2832
|
DataBindingControls,
|
|
2879
2833
|
{
|
|
2880
2834
|
mode: "toolbar",
|
|
@@ -2896,8 +2850,8 @@ var DivContainer = async (props) => {
|
|
|
2896
2850
|
paginationControl
|
|
2897
2851
|
] }),
|
|
2898
2852
|
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs14("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
2899
|
-
/* @__PURE__ */
|
|
2900
|
-
/* @__PURE__ */
|
|
2853
|
+
/* @__PURE__ */ jsx36("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
2854
|
+
/* @__PURE__ */ jsx36(
|
|
2901
2855
|
DataBindingControls,
|
|
2902
2856
|
{
|
|
2903
2857
|
mode: "facets",
|
|
@@ -2913,14 +2867,14 @@ var DivContainer = async (props) => {
|
|
|
2913
2867
|
)
|
|
2914
2868
|
] }) : /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2915
2869
|
renderedContainer,
|
|
2916
|
-
paginationControl && /* @__PURE__ */
|
|
2870
|
+
paginationControl && /* @__PURE__ */ jsx36("div", { children: paginationControl })
|
|
2917
2871
|
] })
|
|
2918
2872
|
] });
|
|
2919
2873
|
};
|
|
2920
2874
|
var DivContainer_default = DivContainer;
|
|
2921
2875
|
|
|
2922
2876
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2923
|
-
import { jsx as
|
|
2877
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2924
2878
|
var NodeTypes = {
|
|
2925
2879
|
["paragraph"]: ParagraphNode_default,
|
|
2926
2880
|
["heading"]: HeadingNode_default,
|
|
@@ -2958,14 +2912,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2958
2912
|
}
|
|
2959
2913
|
return true;
|
|
2960
2914
|
};
|
|
2961
|
-
return /* @__PURE__ */
|
|
2915
|
+
return /* @__PURE__ */ jsx37(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2962
2916
|
{
|
|
2963
2917
|
}
|
|
2964
2918
|
const SelectedNode = NodeTypes[node.type];
|
|
2965
2919
|
if (!shouldRenderNode(node)) {
|
|
2966
2920
|
return null;
|
|
2967
2921
|
}
|
|
2968
|
-
return /* @__PURE__ */
|
|
2922
|
+
return /* @__PURE__ */ jsx37(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
2969
2923
|
SelectedNode,
|
|
2970
2924
|
{
|
|
2971
2925
|
node,
|
|
@@ -2981,7 +2935,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2981
2935
|
device: props.device,
|
|
2982
2936
|
widgetRenderer: props.widgetRenderer
|
|
2983
2937
|
}
|
|
2984
|
-
) }) : /* @__PURE__ */
|
|
2938
|
+
) }) : /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
2985
2939
|
SelectedNode,
|
|
2986
2940
|
{
|
|
2987
2941
|
node,
|