@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260825114921 → 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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1036 -853
- package/dist/index.mjs +533 -351
- package/dist/server.d.mts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +758 -575
- package/dist/server.mjs +342 -160
- package/package.json +1 -1
package/dist/server.mjs
CHANGED
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
import "./chunk-56HSDML5.mjs";
|
|
15
15
|
|
|
16
16
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
17
|
-
import
|
|
17
|
+
import React26 from "react";
|
|
18
18
|
|
|
19
19
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
20
|
-
import
|
|
20
|
+
import React18 from "react";
|
|
21
21
|
|
|
22
22
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
23
23
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -340,7 +340,7 @@ var LinkNode = (props) => {
|
|
|
340
340
|
};
|
|
341
341
|
const linkType = node.cssClass ? getLinkTypeFromCssClass(node.cssClass) : void 0;
|
|
342
342
|
const isButton = node.isButton === true;
|
|
343
|
-
const
|
|
343
|
+
const renderChildren2 = () => {
|
|
344
344
|
if (!node.children || node.children.length === 0) return null;
|
|
345
345
|
return /* @__PURE__ */ jsx5(Fragment, { children: node.children.map((childNode, index) => {
|
|
346
346
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
@@ -381,7 +381,7 @@ var LinkNode = (props) => {
|
|
|
381
381
|
linkType,
|
|
382
382
|
linkUrl,
|
|
383
383
|
children: [
|
|
384
|
-
|
|
384
|
+
renderChildren2(),
|
|
385
385
|
renderFallback()
|
|
386
386
|
]
|
|
387
387
|
}
|
|
@@ -394,7 +394,7 @@ var LinkNode = (props) => {
|
|
|
394
394
|
linkType,
|
|
395
395
|
alt: linkText || node.title || "",
|
|
396
396
|
children: [
|
|
397
|
-
|
|
397
|
+
renderChildren2(),
|
|
398
398
|
renderFallback()
|
|
399
399
|
]
|
|
400
400
|
}
|
|
@@ -457,7 +457,7 @@ var EquationNode = ({ node }) => {
|
|
|
457
457
|
var EquationNode_default = EquationNode;
|
|
458
458
|
|
|
459
459
|
// src/components/controls/view/ViewControl.tsx
|
|
460
|
-
import
|
|
460
|
+
import React17 from "react";
|
|
461
461
|
|
|
462
462
|
// src/components/controls/view/ViewControlTypes.tsx
|
|
463
463
|
var ViewControlTypes = {
|
|
@@ -485,7 +485,8 @@ var ViewControlTypes = {
|
|
|
485
485
|
timeUntilStartsStyled: "timeUntilStartsStyled",
|
|
486
486
|
aiGeneratedSummary: "aiGeneratedSummary",
|
|
487
487
|
booleanView: "booleanView",
|
|
488
|
-
text: "text"
|
|
488
|
+
text: "text",
|
|
489
|
+
commentRenderer: "commentRenderer"
|
|
489
490
|
};
|
|
490
491
|
var ViewControlTypes_default = ViewControlTypes;
|
|
491
492
|
|
|
@@ -738,8 +739,184 @@ var TimeUntilStarts = dynamic6(() => import("./TimeUntilStartsClient-4C7NDEAD.mj
|
|
|
738
739
|
});
|
|
739
740
|
var TimeUntilStarts_default = TimeUntilStarts;
|
|
740
741
|
|
|
741
|
-
// src/components/controls/view/
|
|
742
|
+
// src/components/controls/view/Commentrenderer.tsx
|
|
743
|
+
import React16 from "react";
|
|
744
|
+
|
|
745
|
+
// src/components/controls/view/commentTypes.ts
|
|
746
|
+
var isTextNode = (node) => {
|
|
747
|
+
return !!node && typeof node === "object" && node.type === "text";
|
|
748
|
+
};
|
|
749
|
+
var asElementNode = (node) => node;
|
|
750
|
+
|
|
751
|
+
// src/components/controls/view/commentParser.ts
|
|
752
|
+
var parseSerializedContent = (raw) => {
|
|
753
|
+
if (raw === null || raw === void 0) {
|
|
754
|
+
return [];
|
|
755
|
+
}
|
|
756
|
+
let value = raw;
|
|
757
|
+
if (typeof raw === "string") {
|
|
758
|
+
const trimmed = raw.trim();
|
|
759
|
+
if (!trimmed) {
|
|
760
|
+
return [];
|
|
761
|
+
}
|
|
762
|
+
if (trimmed.startsWith("{") || trimmed.startsWith("[")) {
|
|
763
|
+
try {
|
|
764
|
+
value = JSON.parse(trimmed);
|
|
765
|
+
} catch {
|
|
766
|
+
return [{ type: "paragraph", children: [{ type: "text", text: raw }] }];
|
|
767
|
+
}
|
|
768
|
+
} else {
|
|
769
|
+
return [{ type: "paragraph", children: [{ type: "text", text: raw }] }];
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
if (Array.isArray(value)) {
|
|
773
|
+
return value;
|
|
774
|
+
}
|
|
775
|
+
if (value && typeof value === "object") {
|
|
776
|
+
const children = value.children;
|
|
777
|
+
if (Array.isArray(children)) {
|
|
778
|
+
return children;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
return [];
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
// src/components/controls/view/CommentNodeRenderer.tsx
|
|
785
|
+
import React15 from "react";
|
|
786
|
+
|
|
787
|
+
// src/components/controls/view/CommentImageNode.tsx
|
|
742
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";
|
|
815
|
+
var TextLeafNode = ({ node }) => {
|
|
816
|
+
let content = node.text;
|
|
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) => {
|
|
825
|
+
if (!children || children.length === 0) {
|
|
826
|
+
return null;
|
|
827
|
+
}
|
|
828
|
+
return children.map((child, index) => {
|
|
829
|
+
const childKey = isTextNode(child) ? void 0 : asElementNode(child).id;
|
|
830
|
+
return /* @__PURE__ */ jsx22(
|
|
831
|
+
CommentNodeRenderer,
|
|
832
|
+
{
|
|
833
|
+
node: child,
|
|
834
|
+
assetBaseUrl
|
|
835
|
+
},
|
|
836
|
+
childKey ?? `${keyPrefix}-${index}`
|
|
837
|
+
);
|
|
838
|
+
});
|
|
839
|
+
};
|
|
840
|
+
var headingLevelFromTag = (tag) => {
|
|
841
|
+
const match = typeof tag === "string" ? tag.match(/\d/) : null;
|
|
842
|
+
const parsed = match ? Number(match[0]) : Number(tag);
|
|
843
|
+
return Number.isFinite(parsed) && parsed >= 1 && parsed <= 6 ? parsed : 3;
|
|
844
|
+
};
|
|
845
|
+
var CommentNodeRenderer = ({ node, assetBaseUrl }) => {
|
|
846
|
+
if (!node || typeof node !== "object") {
|
|
847
|
+
return null;
|
|
848
|
+
}
|
|
849
|
+
if (isTextNode(node)) {
|
|
850
|
+
return /* @__PURE__ */ jsx22(TextLeafNode, { node });
|
|
851
|
+
}
|
|
852
|
+
const element = asElementNode(node);
|
|
853
|
+
const key = element.id ?? element.type;
|
|
854
|
+
switch (element.type) {
|
|
855
|
+
case "paragraph":
|
|
856
|
+
return /* @__PURE__ */ jsx22("p", { className: "comment-node-paragraph", children: renderChildren(element.children, key, assetBaseUrl) ?? /* @__PURE__ */ jsx22("br", {}) });
|
|
857
|
+
case "heading": {
|
|
858
|
+
const level = headingLevelFromTag(element.tag ?? element.level);
|
|
859
|
+
const HeadingTag = `h${level}`;
|
|
860
|
+
return /* @__PURE__ */ jsx22(HeadingTag, { className: "comment-node-heading", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
861
|
+
}
|
|
862
|
+
case "list": {
|
|
863
|
+
const ordered = element.listType === "number" || element.ordered === true;
|
|
864
|
+
const ListTag = ordered ? "ol" : "ul";
|
|
865
|
+
return /* @__PURE__ */ jsx22(ListTag, { className: "comment-node-list", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
866
|
+
}
|
|
867
|
+
case "listitem":
|
|
868
|
+
case "list-item":
|
|
869
|
+
return /* @__PURE__ */ jsx22("li", { className: "comment-node-listitem", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
870
|
+
case "quote":
|
|
871
|
+
case "blockquote":
|
|
872
|
+
return /* @__PURE__ */ jsx22("blockquote", { className: "comment-node-quote", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
873
|
+
case "code":
|
|
874
|
+
case "code-block":
|
|
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 });
|
|
878
|
+
case "link": {
|
|
879
|
+
const url = typeof element.url === "string" ? element.url : "#";
|
|
880
|
+
return /* @__PURE__ */ jsx22("a", { href: url, target: "_blank", rel: "noopener noreferrer", className: "comment-node-link", children: renderChildren(element.children, key, assetBaseUrl) });
|
|
881
|
+
}
|
|
882
|
+
case "mention": {
|
|
883
|
+
const label = element.label ?? element.mentionName ?? element.text ?? "";
|
|
884
|
+
return /* @__PURE__ */ jsxs8("span", { className: "comment-node-mention", children: [
|
|
885
|
+
"@",
|
|
886
|
+
label
|
|
887
|
+
] });
|
|
888
|
+
}
|
|
889
|
+
case "linebreak":
|
|
890
|
+
case "line-break":
|
|
891
|
+
return /* @__PURE__ */ jsx22("br", {});
|
|
892
|
+
default:
|
|
893
|
+
return /* @__PURE__ */ jsx22(React15.Fragment, { children: renderChildren(element.children, key, assetBaseUrl) });
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
var CommentNodeRenderer_default = CommentNodeRenderer;
|
|
897
|
+
|
|
898
|
+
// src/components/controls/view/Commentrenderer.tsx
|
|
899
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
900
|
+
var CommentRenderer = ({ value, className, assetBaseUrl, apiBaseUrl }) => {
|
|
901
|
+
const nodes = React16.useMemo(() => parseSerializedContent(value), [value]);
|
|
902
|
+
if (!nodes || nodes.length === 0) {
|
|
903
|
+
return null;
|
|
904
|
+
}
|
|
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
|
+
)) });
|
|
915
|
+
};
|
|
916
|
+
var Commentrenderer_default = CommentRenderer;
|
|
917
|
+
|
|
918
|
+
// src/components/controls/view/ViewControl.tsx
|
|
919
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
743
920
|
var ViewControl = (props) => {
|
|
744
921
|
const ControlComponents = {
|
|
745
922
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -766,15 +943,16 @@ var ViewControl = (props) => {
|
|
|
766
943
|
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
767
944
|
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
768
945
|
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
769
|
-
[ViewControlTypes_default.text]: LineTextView_default
|
|
946
|
+
[ViewControlTypes_default.text]: LineTextView_default,
|
|
947
|
+
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default
|
|
770
948
|
};
|
|
771
949
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
772
|
-
return /* @__PURE__ */
|
|
950
|
+
return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx24(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
773
951
|
};
|
|
774
952
|
var ViewControl_default = ViewControl;
|
|
775
953
|
|
|
776
954
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
777
|
-
import { jsx as
|
|
955
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
778
956
|
function getNestedProperty(obj, path) {
|
|
779
957
|
if (!obj || !path) return null;
|
|
780
958
|
if (path.includes(".")) {
|
|
@@ -787,7 +965,7 @@ function getNestedProperty(obj, path) {
|
|
|
787
965
|
}
|
|
788
966
|
const value = obj[path];
|
|
789
967
|
if (Array.isArray(value)) {
|
|
790
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
968
|
+
return value.map((item, index) => /* @__PURE__ */ jsx25("div", { children: String(item) }, index));
|
|
791
969
|
}
|
|
792
970
|
return value;
|
|
793
971
|
}
|
|
@@ -850,7 +1028,7 @@ var DatafieldNode = (props) => {
|
|
|
850
1028
|
const dataType = props.node.dataType;
|
|
851
1029
|
if (isEmptyValue) return null;
|
|
852
1030
|
if (dataType === "rawContent") {
|
|
853
|
-
return /* @__PURE__ */
|
|
1031
|
+
return /* @__PURE__ */ jsx25(
|
|
854
1032
|
PageBodyRenderer_default,
|
|
855
1033
|
{
|
|
856
1034
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -866,17 +1044,19 @@ var DatafieldNode = (props) => {
|
|
|
866
1044
|
}
|
|
867
1045
|
);
|
|
868
1046
|
}
|
|
869
|
-
return /* @__PURE__ */
|
|
1047
|
+
return /* @__PURE__ */ jsx25(
|
|
870
1048
|
"span",
|
|
871
1049
|
{
|
|
872
1050
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
873
1051
|
style: styles,
|
|
874
1052
|
title,
|
|
875
|
-
children: /* @__PURE__ */
|
|
1053
|
+
children: /* @__PURE__ */ jsx25(
|
|
876
1054
|
ViewControl_default,
|
|
877
1055
|
{
|
|
878
1056
|
controlType: dataType,
|
|
879
|
-
value: value ?? `@databound[${fieldName}]
|
|
1057
|
+
value: value ?? `@databound[${fieldName}]`,
|
|
1058
|
+
apiBaseUrl: props.apiBaseUrl,
|
|
1059
|
+
assetBaseUrl: props.assetBaseUrl
|
|
880
1060
|
}
|
|
881
1061
|
)
|
|
882
1062
|
}
|
|
@@ -885,7 +1065,7 @@ var DatafieldNode = (props) => {
|
|
|
885
1065
|
var DatafieldNode_default = DatafieldNode;
|
|
886
1066
|
|
|
887
1067
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
888
|
-
import { Fragment as Fragment2, jsx as
|
|
1068
|
+
import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
889
1069
|
var ParagraphNode = (props) => {
|
|
890
1070
|
const NodeTypes2 = {
|
|
891
1071
|
["text"]: TextNode_default,
|
|
@@ -905,42 +1085,44 @@ var ParagraphNode = (props) => {
|
|
|
905
1085
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
906
1086
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
907
1087
|
if (isInlineOnlyParent) {
|
|
908
|
-
return /* @__PURE__ */
|
|
1088
|
+
return /* @__PURE__ */ jsx26(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
909
1089
|
const SelectedNode = NodeTypes2[node.type];
|
|
910
|
-
return /* @__PURE__ */
|
|
1090
|
+
return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(
|
|
911
1091
|
SelectedNode,
|
|
912
1092
|
{
|
|
913
1093
|
node,
|
|
914
1094
|
dataitem: props.dataitem,
|
|
915
1095
|
session: props.session,
|
|
916
1096
|
apiBaseUrl: props.apiBaseUrl,
|
|
1097
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
917
1098
|
routeParameters: props.routeParameters
|
|
918
1099
|
}
|
|
919
1100
|
) }, index);
|
|
920
1101
|
}) });
|
|
921
1102
|
}
|
|
922
|
-
return /* @__PURE__ */
|
|
1103
|
+
return /* @__PURE__ */ jsxs9("div", { className: " " + formatClasses, children: [
|
|
923
1104
|
hasChildren && props.node.children.map((node, index) => {
|
|
924
1105
|
const SelectedNode = NodeTypes2[node.type];
|
|
925
|
-
return /* @__PURE__ */
|
|
1106
|
+
return /* @__PURE__ */ jsx26(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(
|
|
926
1107
|
SelectedNode,
|
|
927
1108
|
{
|
|
928
1109
|
node,
|
|
929
1110
|
dataitem: props.dataitem,
|
|
930
1111
|
session: props.session,
|
|
931
1112
|
apiBaseUrl: props.apiBaseUrl,
|
|
1113
|
+
assetBaseUrl: props.assetBaseUrl,
|
|
932
1114
|
routeParameters: props.routeParameters
|
|
933
1115
|
}
|
|
934
1116
|
) }, index);
|
|
935
1117
|
}),
|
|
936
|
-
!hasChildren && /* @__PURE__ */
|
|
1118
|
+
!hasChildren && /* @__PURE__ */ jsx26("div", { className: "py-1.5 lg:py-2" })
|
|
937
1119
|
] });
|
|
938
1120
|
};
|
|
939
1121
|
var ParagraphNode_default = ParagraphNode;
|
|
940
1122
|
|
|
941
1123
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
942
|
-
import
|
|
943
|
-
import { Fragment as Fragment3, jsx as
|
|
1124
|
+
import React19 from "react";
|
|
1125
|
+
import { Fragment as Fragment3, jsx as jsx27 } from "react/jsx-runtime";
|
|
944
1126
|
var HeadingNode = (props) => {
|
|
945
1127
|
const NodeTypes2 = {
|
|
946
1128
|
["text"]: TextNode_default,
|
|
@@ -956,23 +1138,23 @@ var HeadingNode = (props) => {
|
|
|
956
1138
|
{
|
|
957
1139
|
}
|
|
958
1140
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
959
|
-
return /* @__PURE__ */
|
|
1141
|
+
return /* @__PURE__ */ jsx27(Fragment3, { children: React19.createElement(
|
|
960
1142
|
HeadingTag,
|
|
961
1143
|
{ className: formatClasses },
|
|
962
1144
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
963
1145
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
964
|
-
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);
|
|
965
1147
|
})
|
|
966
1148
|
) });
|
|
967
1149
|
};
|
|
968
1150
|
var HeadingNode_default = HeadingNode;
|
|
969
1151
|
|
|
970
1152
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
971
|
-
import
|
|
1153
|
+
import React21 from "react";
|
|
972
1154
|
|
|
973
1155
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
974
|
-
import
|
|
975
|
-
import { jsx as
|
|
1156
|
+
import React20 from "react";
|
|
1157
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
976
1158
|
var ListItemNode = (props) => {
|
|
977
1159
|
const NodeTypes2 = {
|
|
978
1160
|
text: TextNode_default,
|
|
@@ -989,66 +1171,66 @@ var ListItemNode = (props) => {
|
|
|
989
1171
|
liStyle.fontSize = match[1].trim();
|
|
990
1172
|
}
|
|
991
1173
|
}
|
|
992
|
-
return /* @__PURE__ */
|
|
1174
|
+
return /* @__PURE__ */ jsx28("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
993
1175
|
const SelectedNode = NodeTypes2[node.type];
|
|
994
1176
|
if (node.type === "linebreak") {
|
|
995
1177
|
if (!foundFirstBreak) {
|
|
996
1178
|
foundFirstBreak = true;
|
|
997
|
-
return /* @__PURE__ */
|
|
1179
|
+
return /* @__PURE__ */ jsx28("div", {}, index);
|
|
998
1180
|
} else {
|
|
999
|
-
return /* @__PURE__ */
|
|
1181
|
+
return /* @__PURE__ */ jsx28("div", { className: "py-1 lg:py-2" }, index);
|
|
1000
1182
|
}
|
|
1001
1183
|
} else {
|
|
1002
1184
|
foundFirstBreak = false;
|
|
1003
|
-
return /* @__PURE__ */
|
|
1185
|
+
return /* @__PURE__ */ jsx28(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1004
1186
|
}
|
|
1005
1187
|
}) });
|
|
1006
1188
|
};
|
|
1007
1189
|
var ListItemNode_default = ListItemNode;
|
|
1008
1190
|
|
|
1009
1191
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
1010
|
-
import { jsx as
|
|
1192
|
+
import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1011
1193
|
var ListNode = (props) => {
|
|
1012
1194
|
const NodeTypes2 = {
|
|
1013
1195
|
listitem: ListItemNode_default
|
|
1014
1196
|
};
|
|
1015
|
-
return /* @__PURE__ */
|
|
1016
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1197
|
+
return /* @__PURE__ */ jsxs10(React21.Fragment, { children: [
|
|
1198
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx29("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1017
1199
|
const SelectedNode = NodeTypes2[node.type];
|
|
1018
|
-
return /* @__PURE__ */
|
|
1200
|
+
return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1019
1201
|
}) }),
|
|
1020
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1202
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx29("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1021
1203
|
const SelectedNode = NodeTypes2[node.type];
|
|
1022
|
-
return /* @__PURE__ */
|
|
1204
|
+
return /* @__PURE__ */ jsx29(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx29(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
1023
1205
|
}) })
|
|
1024
1206
|
] });
|
|
1025
1207
|
};
|
|
1026
1208
|
var ListNode_default = ListNode;
|
|
1027
1209
|
|
|
1028
1210
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
1029
|
-
import
|
|
1030
|
-
import { jsx as
|
|
1211
|
+
import React22 from "react";
|
|
1212
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1031
1213
|
var QuoteNode = (props) => {
|
|
1032
1214
|
const NodeTypes2 = {
|
|
1033
1215
|
["text"]: TextNode_default,
|
|
1034
1216
|
["linebreak"]: LineBreakNode_default,
|
|
1035
1217
|
["link"]: LinkNode_default
|
|
1036
1218
|
};
|
|
1037
|
-
return /* @__PURE__ */
|
|
1219
|
+
return /* @__PURE__ */ jsx30("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1038
1220
|
const SelectedNode = NodeTypes2[node.type];
|
|
1039
|
-
return /* @__PURE__ */
|
|
1221
|
+
return /* @__PURE__ */ jsx30(React22.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx30(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1040
1222
|
}) });
|
|
1041
1223
|
};
|
|
1042
1224
|
var QuoteNode_default = QuoteNode;
|
|
1043
1225
|
|
|
1044
1226
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1045
|
-
import
|
|
1227
|
+
import React23 from "react";
|
|
1046
1228
|
import dynamic7 from "next/dynamic";
|
|
1047
|
-
import { jsx as
|
|
1229
|
+
import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1048
1230
|
var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
1049
1231
|
ssr: false,
|
|
1050
1232
|
// optional: fallback UI while loading
|
|
1051
|
-
loading: () => /* @__PURE__ */
|
|
1233
|
+
loading: () => /* @__PURE__ */ jsx31("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1052
1234
|
});
|
|
1053
1235
|
var CodeNode = (props) => {
|
|
1054
1236
|
const NodeTypes2 = {
|
|
@@ -1062,14 +1244,14 @@ var CodeNode = (props) => {
|
|
|
1062
1244
|
if (node.type === "link") return node.text || node.url || "";
|
|
1063
1245
|
return "";
|
|
1064
1246
|
}).join("") ?? "";
|
|
1065
|
-
return /* @__PURE__ */
|
|
1066
|
-
/* @__PURE__ */
|
|
1067
|
-
/* @__PURE__ */
|
|
1068
|
-
/* @__PURE__ */
|
|
1247
|
+
return /* @__PURE__ */ jsxs11("div", { children: [
|
|
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: [
|
|
1249
|
+
/* @__PURE__ */ jsx31("span", { children: "Code Snippet" }),
|
|
1250
|
+
/* @__PURE__ */ jsx31(CopyButton, { text: textContent })
|
|
1069
1251
|
] }),
|
|
1070
|
-
/* @__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) => {
|
|
1071
1253
|
const SelectedNode = NodeTypes2[node.type];
|
|
1072
|
-
return /* @__PURE__ */
|
|
1254
|
+
return /* @__PURE__ */ jsx31(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx31(
|
|
1073
1255
|
SelectedNode,
|
|
1074
1256
|
{
|
|
1075
1257
|
node,
|
|
@@ -1084,15 +1266,15 @@ var CodeNode = (props) => {
|
|
|
1084
1266
|
var CodeNode_default = CodeNode;
|
|
1085
1267
|
|
|
1086
1268
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1087
|
-
import { jsx as
|
|
1269
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1088
1270
|
var HorizontalRuleNode = () => {
|
|
1089
|
-
return /* @__PURE__ */
|
|
1271
|
+
return /* @__PURE__ */ jsx32("hr", {});
|
|
1090
1272
|
};
|
|
1091
1273
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1092
1274
|
|
|
1093
1275
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1094
|
-
import
|
|
1095
|
-
import { Fragment as Fragment4, jsx as
|
|
1276
|
+
import React24 from "react";
|
|
1277
|
+
import { Fragment as Fragment4, jsx as jsx33 } from "react/jsx-runtime";
|
|
1096
1278
|
var WidgetNode = (props) => {
|
|
1097
1279
|
const getWidgetParameters = () => {
|
|
1098
1280
|
const widgetInputParameters = {
|
|
@@ -1156,7 +1338,7 @@ var WidgetNode = (props) => {
|
|
|
1156
1338
|
};
|
|
1157
1339
|
const widgetCode = props.node?.widgetCode;
|
|
1158
1340
|
if (!widgetCode) {
|
|
1159
|
-
return /* @__PURE__ */
|
|
1341
|
+
return /* @__PURE__ */ jsx33(Fragment4, { children: "Invalid widget" });
|
|
1160
1342
|
}
|
|
1161
1343
|
const widgetParams = getWidgetParameters();
|
|
1162
1344
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1165,7 +1347,7 @@ var WidgetNode = (props) => {
|
|
|
1165
1347
|
}
|
|
1166
1348
|
return (
|
|
1167
1349
|
// eslint-disable-next-line react-hooks/static-components
|
|
1168
|
-
/* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ jsx33(React24.Fragment, { children: /* @__PURE__ */ jsx33(
|
|
1169
1351
|
WidgetRenderer,
|
|
1170
1352
|
{
|
|
1171
1353
|
params: widgetParams,
|
|
@@ -1183,11 +1365,11 @@ var WidgetNode_default = WidgetNode;
|
|
|
1183
1365
|
|
|
1184
1366
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
1185
1367
|
import dynamic11 from "next/dynamic";
|
|
1186
|
-
import
|
|
1368
|
+
import React25 from "react";
|
|
1187
1369
|
|
|
1188
1370
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1189
1371
|
import dynamic8 from "next/dynamic";
|
|
1190
|
-
import { jsx as
|
|
1372
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1191
1373
|
var IframeClient = dynamic8(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
1192
1374
|
ssr: false
|
|
1193
1375
|
});
|
|
@@ -1200,7 +1382,7 @@ var EmbedNode = (props) => {
|
|
|
1200
1382
|
} else {
|
|
1201
1383
|
src = props.node.embedSrc;
|
|
1202
1384
|
}
|
|
1203
|
-
return /* @__PURE__ */
|
|
1385
|
+
return /* @__PURE__ */ jsx34("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx34(IframeClient, { src }) });
|
|
1204
1386
|
};
|
|
1205
1387
|
var EmbedNode_default = EmbedNode;
|
|
1206
1388
|
|
|
@@ -1393,10 +1575,10 @@ var PathUtility = class {
|
|
|
1393
1575
|
var PathUtility_default = new PathUtility();
|
|
1394
1576
|
|
|
1395
1577
|
// src/components/NoDataFound.tsx
|
|
1396
|
-
import { jsx as
|
|
1578
|
+
import { jsx as jsx35, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1397
1579
|
var NoDataFound = () => {
|
|
1398
|
-
return /* @__PURE__ */
|
|
1399
|
-
/* @__PURE__ */
|
|
1580
|
+
return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
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(
|
|
1400
1582
|
"svg",
|
|
1401
1583
|
{
|
|
1402
1584
|
className: "w-10 h-10",
|
|
@@ -1404,7 +1586,7 @@ var NoDataFound = () => {
|
|
|
1404
1586
|
stroke: "currentColor",
|
|
1405
1587
|
viewBox: "0 0 24 24",
|
|
1406
1588
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1407
|
-
children: /* @__PURE__ */
|
|
1589
|
+
children: /* @__PURE__ */ jsx35(
|
|
1408
1590
|
"path",
|
|
1409
1591
|
{
|
|
1410
1592
|
strokeLinecap: "round",
|
|
@@ -1415,15 +1597,15 @@ var NoDataFound = () => {
|
|
|
1415
1597
|
)
|
|
1416
1598
|
}
|
|
1417
1599
|
) }) }),
|
|
1418
|
-
/* @__PURE__ */
|
|
1419
|
-
/* @__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." })
|
|
1420
1602
|
] });
|
|
1421
1603
|
};
|
|
1422
1604
|
var NoDataFound_default = NoDataFound;
|
|
1423
1605
|
|
|
1424
1606
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1425
1607
|
import dynamic9 from "next/dynamic";
|
|
1426
|
-
import { Fragment as Fragment5, jsx as
|
|
1608
|
+
import { Fragment as Fragment5, jsx as jsx36, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1427
1609
|
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-BVS6BVF7.mjs"), { ssr: false });
|
|
1428
1610
|
var deviceToMediaQuery = (device) => {
|
|
1429
1611
|
switch (device) {
|
|
@@ -1579,8 +1761,8 @@ var ImageGalleryNode = (props) => {
|
|
|
1579
1761
|
right: "justify-end"
|
|
1580
1762
|
};
|
|
1581
1763
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1582
|
-
return /* @__PURE__ */
|
|
1583
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1764
|
+
return /* @__PURE__ */ jsxs13(Fragment5, { children: [
|
|
1765
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx36(Fragment5, { children: /* @__PURE__ */ jsx36(
|
|
1584
1766
|
HlsPlayer3,
|
|
1585
1767
|
{
|
|
1586
1768
|
sources: hlsSources,
|
|
@@ -1595,7 +1777,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1595
1777
|
styles: hlsStyles
|
|
1596
1778
|
}
|
|
1597
1779
|
) }),
|
|
1598
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1780
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx36(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs13("picture", { children: [
|
|
1599
1781
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1600
1782
|
const match = staticSources.find(
|
|
1601
1783
|
(img) => img.device === deviceKey
|
|
@@ -1611,7 +1793,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1611
1793
|
if (!srcUrl) {
|
|
1612
1794
|
return null;
|
|
1613
1795
|
}
|
|
1614
|
-
return /* @__PURE__ */
|
|
1796
|
+
return /* @__PURE__ */ jsx36(
|
|
1615
1797
|
"source",
|
|
1616
1798
|
{
|
|
1617
1799
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1636,7 +1818,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1636
1818
|
if (img.borderRadius) {
|
|
1637
1819
|
styles.borderRadius = img.borderRadius;
|
|
1638
1820
|
}
|
|
1639
|
-
return /* @__PURE__ */
|
|
1821
|
+
return /* @__PURE__ */ jsx36(
|
|
1640
1822
|
"img",
|
|
1641
1823
|
{
|
|
1642
1824
|
loading: "lazy",
|
|
@@ -1651,7 +1833,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1651
1833
|
})()
|
|
1652
1834
|
] }) : (
|
|
1653
1835
|
/* Case 2: Only device-specific images exist */
|
|
1654
|
-
/* @__PURE__ */
|
|
1836
|
+
/* @__PURE__ */ jsx36(Fragment5, { children: staticSources.map((img, index) => {
|
|
1655
1837
|
const resolved = resolveImage(img);
|
|
1656
1838
|
const imageUrl = resolved?.imageUrl;
|
|
1657
1839
|
if (!imageUrl) {
|
|
@@ -1678,7 +1860,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1678
1860
|
default:
|
|
1679
1861
|
display = "block";
|
|
1680
1862
|
}
|
|
1681
|
-
return /* @__PURE__ */
|
|
1863
|
+
return /* @__PURE__ */ jsx36(
|
|
1682
1864
|
"img",
|
|
1683
1865
|
{
|
|
1684
1866
|
loading: "lazy",
|
|
@@ -1818,28 +2000,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1818
2000
|
};
|
|
1819
2001
|
|
|
1820
2002
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1821
|
-
import { Fragment as Fragment6, jsx as
|
|
2003
|
+
import { Fragment as Fragment6, jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1822
2004
|
var getNestedValue5 = (obj, path) => {
|
|
1823
2005
|
if (!obj || !path) return void 0;
|
|
1824
2006
|
return path.split(".").reduce((current, key) => {
|
|
1825
2007
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
1826
2008
|
}, obj);
|
|
1827
2009
|
};
|
|
1828
|
-
var PdfIcon = () => /* @__PURE__ */
|
|
2010
|
+
var PdfIcon = () => /* @__PURE__ */ jsxs14(
|
|
1829
2011
|
"svg",
|
|
1830
2012
|
{
|
|
1831
2013
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1832
2014
|
viewBox: "0 0 48 48",
|
|
1833
2015
|
className: "w-10 h-10",
|
|
1834
2016
|
children: [
|
|
1835
|
-
/* @__PURE__ */
|
|
2017
|
+
/* @__PURE__ */ jsx37(
|
|
1836
2018
|
"path",
|
|
1837
2019
|
{
|
|
1838
2020
|
fill: "#e53935",
|
|
1839
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"
|
|
1840
2022
|
}
|
|
1841
2023
|
),
|
|
1842
|
-
/* @__PURE__ */
|
|
2024
|
+
/* @__PURE__ */ jsx37(
|
|
1843
2025
|
"path",
|
|
1844
2026
|
{
|
|
1845
2027
|
fill: "#fff",
|
|
@@ -1849,55 +2031,55 @@ var PdfIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1849
2031
|
]
|
|
1850
2032
|
}
|
|
1851
2033
|
);
|
|
1852
|
-
var ExcelIcon = () => /* @__PURE__ */
|
|
2034
|
+
var ExcelIcon = () => /* @__PURE__ */ jsxs14(
|
|
1853
2035
|
"svg",
|
|
1854
2036
|
{
|
|
1855
2037
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1856
2038
|
viewBox: "0 0 48 48",
|
|
1857
2039
|
className: "w-10 h-10",
|
|
1858
2040
|
children: [
|
|
1859
|
-
/* @__PURE__ */
|
|
2041
|
+
/* @__PURE__ */ jsx37(
|
|
1860
2042
|
"path",
|
|
1861
2043
|
{
|
|
1862
2044
|
fill: "#169154",
|
|
1863
2045
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1864
2046
|
}
|
|
1865
2047
|
),
|
|
1866
|
-
/* @__PURE__ */
|
|
2048
|
+
/* @__PURE__ */ jsx37(
|
|
1867
2049
|
"path",
|
|
1868
2050
|
{
|
|
1869
2051
|
fill: "#18482a",
|
|
1870
2052
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
1871
2053
|
}
|
|
1872
2054
|
),
|
|
1873
|
-
/* @__PURE__ */
|
|
1874
|
-
/* @__PURE__ */
|
|
1875
|
-
/* @__PURE__ */
|
|
1876
|
-
/* @__PURE__ */
|
|
2055
|
+
/* @__PURE__ */ jsx37("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
2056
|
+
/* @__PURE__ */ jsx37("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
2057
|
+
/* @__PURE__ */ jsxs14("g", { children: [
|
|
2058
|
+
/* @__PURE__ */ jsx37(
|
|
1877
2059
|
"path",
|
|
1878
2060
|
{
|
|
1879
2061
|
fill: "#29c27f",
|
|
1880
2062
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
1881
2063
|
}
|
|
1882
2064
|
),
|
|
1883
|
-
/* @__PURE__ */
|
|
2065
|
+
/* @__PURE__ */ jsx37(
|
|
1884
2066
|
"path",
|
|
1885
2067
|
{
|
|
1886
2068
|
fill: "#27663f",
|
|
1887
2069
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
1888
2070
|
}
|
|
1889
2071
|
),
|
|
1890
|
-
/* @__PURE__ */
|
|
1891
|
-
/* @__PURE__ */
|
|
2072
|
+
/* @__PURE__ */ jsx37("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
2073
|
+
/* @__PURE__ */ jsx37("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
1892
2074
|
] }),
|
|
1893
|
-
/* @__PURE__ */
|
|
2075
|
+
/* @__PURE__ */ jsx37(
|
|
1894
2076
|
"path",
|
|
1895
2077
|
{
|
|
1896
2078
|
fill: "#0c7238",
|
|
1897
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"
|
|
1898
2080
|
}
|
|
1899
2081
|
),
|
|
1900
|
-
/* @__PURE__ */
|
|
2082
|
+
/* @__PURE__ */ jsx37(
|
|
1901
2083
|
"path",
|
|
1902
2084
|
{
|
|
1903
2085
|
fill: "#fff",
|
|
@@ -1907,7 +2089,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1907
2089
|
]
|
|
1908
2090
|
}
|
|
1909
2091
|
);
|
|
1910
|
-
var WordIcon = () => /* @__PURE__ */
|
|
2092
|
+
var WordIcon = () => /* @__PURE__ */ jsxs14(
|
|
1911
2093
|
"svg",
|
|
1912
2094
|
{
|
|
1913
2095
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1915,14 +2097,14 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1915
2097
|
className: "w-10 h-10",
|
|
1916
2098
|
baseProfile: "basic",
|
|
1917
2099
|
children: [
|
|
1918
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ jsx37(
|
|
1919
2101
|
"path",
|
|
1920
2102
|
{
|
|
1921
2103
|
fill: "#283593",
|
|
1922
2104
|
d: "M9,33.595l14.911-18.706L41,26v13.306C41,41.346,39.346,43,37.306,43H15.332 C11.835,43,9,40.164,9,36.667C9,36.667,9,33.595,9,33.595z"
|
|
1923
2105
|
}
|
|
1924
2106
|
),
|
|
1925
|
-
/* @__PURE__ */
|
|
2107
|
+
/* @__PURE__ */ jsxs14(
|
|
1926
2108
|
"linearGradient",
|
|
1927
2109
|
{
|
|
1928
2110
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -1933,19 +2115,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1933
2115
|
gradientTransform: "translate(0 -339.89)",
|
|
1934
2116
|
gradientUnits: "userSpaceOnUse",
|
|
1935
2117
|
children: [
|
|
1936
|
-
/* @__PURE__ */
|
|
1937
|
-
/* @__PURE__ */
|
|
2118
|
+
/* @__PURE__ */ jsx37("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
2119
|
+
/* @__PURE__ */ jsx37("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
1938
2120
|
]
|
|
1939
2121
|
}
|
|
1940
2122
|
),
|
|
1941
|
-
/* @__PURE__ */
|
|
2123
|
+
/* @__PURE__ */ jsx37(
|
|
1942
2124
|
"path",
|
|
1943
2125
|
{
|
|
1944
2126
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
1945
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"
|
|
1946
2128
|
}
|
|
1947
2129
|
),
|
|
1948
|
-
/* @__PURE__ */
|
|
2130
|
+
/* @__PURE__ */ jsx37(
|
|
1949
2131
|
"path",
|
|
1950
2132
|
{
|
|
1951
2133
|
fill: "#1e88e5",
|
|
@@ -1953,21 +2135,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1953
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"
|
|
1954
2136
|
}
|
|
1955
2137
|
),
|
|
1956
|
-
/* @__PURE__ */
|
|
2138
|
+
/* @__PURE__ */ jsx37(
|
|
1957
2139
|
"path",
|
|
1958
2140
|
{
|
|
1959
2141
|
fill: "#00e5ff",
|
|
1960
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"
|
|
1961
2143
|
}
|
|
1962
2144
|
),
|
|
1963
|
-
/* @__PURE__ */
|
|
2145
|
+
/* @__PURE__ */ jsx37(
|
|
1964
2146
|
"path",
|
|
1965
2147
|
{
|
|
1966
2148
|
fill: "#1565c0",
|
|
1967
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"
|
|
1968
2150
|
}
|
|
1969
2151
|
),
|
|
1970
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ jsx37(
|
|
1971
2153
|
"path",
|
|
1972
2154
|
{
|
|
1973
2155
|
fill: "#fff",
|
|
@@ -1977,42 +2159,42 @@ var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
1977
2159
|
]
|
|
1978
2160
|
}
|
|
1979
2161
|
);
|
|
1980
|
-
var StandardIcon = () => /* @__PURE__ */
|
|
2162
|
+
var StandardIcon = () => /* @__PURE__ */ jsxs14(
|
|
1981
2163
|
"svg",
|
|
1982
2164
|
{
|
|
1983
2165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1984
2166
|
viewBox: "0 0 48 48",
|
|
1985
2167
|
className: "w-10 h-10",
|
|
1986
2168
|
children: [
|
|
1987
|
-
/* @__PURE__ */
|
|
1988
|
-
/* @__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" })
|
|
1989
2171
|
]
|
|
1990
2172
|
}
|
|
1991
2173
|
);
|
|
1992
|
-
var PowerPointIcon = () => /* @__PURE__ */
|
|
2174
|
+
var PowerPointIcon = () => /* @__PURE__ */ jsxs14(
|
|
1993
2175
|
"svg",
|
|
1994
2176
|
{
|
|
1995
2177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1996
2178
|
viewBox: "0 0 48 48",
|
|
1997
2179
|
className: "w-10 h-10",
|
|
1998
2180
|
children: [
|
|
1999
|
-
/* @__PURE__ */
|
|
2181
|
+
/* @__PURE__ */ jsx37(
|
|
2000
2182
|
"path",
|
|
2001
2183
|
{
|
|
2002
2184
|
fill: "#dc4c2c",
|
|
2003
2185
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
2004
2186
|
}
|
|
2005
2187
|
),
|
|
2006
|
-
/* @__PURE__ */
|
|
2007
|
-
/* @__PURE__ */
|
|
2008
|
-
/* @__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(
|
|
2009
2191
|
"path",
|
|
2010
2192
|
{
|
|
2011
2193
|
fill: "#9b341f",
|
|
2012
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"
|
|
2013
2195
|
}
|
|
2014
2196
|
),
|
|
2015
|
-
/* @__PURE__ */
|
|
2197
|
+
/* @__PURE__ */ jsx37(
|
|
2016
2198
|
"path",
|
|
2017
2199
|
{
|
|
2018
2200
|
fill: "#fff",
|
|
@@ -2022,16 +2204,16 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2022
2204
|
]
|
|
2023
2205
|
}
|
|
2024
2206
|
);
|
|
2025
|
-
var TextIcon = () => /* @__PURE__ */
|
|
2207
|
+
var TextIcon = () => /* @__PURE__ */ jsxs14(
|
|
2026
2208
|
"svg",
|
|
2027
2209
|
{
|
|
2028
2210
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2029
2211
|
viewBox: "0 0 48 48",
|
|
2030
2212
|
className: "w-10 h-10",
|
|
2031
2213
|
children: [
|
|
2032
|
-
/* @__PURE__ */
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
/* @__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(
|
|
2035
2217
|
"path",
|
|
2036
2218
|
{
|
|
2037
2219
|
fill: "#1976D2",
|
|
@@ -2041,7 +2223,7 @@ var TextIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2041
2223
|
]
|
|
2042
2224
|
}
|
|
2043
2225
|
);
|
|
2044
|
-
var ArchiveIcon = () => /* @__PURE__ */
|
|
2226
|
+
var ArchiveIcon = () => /* @__PURE__ */ jsxs14(
|
|
2045
2227
|
"svg",
|
|
2046
2228
|
{
|
|
2047
2229
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2051,14 +2233,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2051
2233
|
version: "1.0",
|
|
2052
2234
|
className: "w-10 h-10",
|
|
2053
2235
|
children: [
|
|
2054
|
-
/* @__PURE__ */
|
|
2236
|
+
/* @__PURE__ */ jsx37("defs", { children: /* @__PURE__ */ jsx37("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx37(
|
|
2055
2237
|
"path",
|
|
2056
2238
|
{
|
|
2057
2239
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
2058
2240
|
"clip-rule": "nonzero"
|
|
2059
2241
|
}
|
|
2060
2242
|
) }) }),
|
|
2061
|
-
/* @__PURE__ */
|
|
2243
|
+
/* @__PURE__ */ jsx37("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx37(
|
|
2062
2244
|
"path",
|
|
2063
2245
|
{
|
|
2064
2246
|
fill: "#ff9100",
|
|
@@ -2067,7 +2249,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2067
2249
|
"fill-rule": "nonzero"
|
|
2068
2250
|
}
|
|
2069
2251
|
) }),
|
|
2070
|
-
/* @__PURE__ */
|
|
2252
|
+
/* @__PURE__ */ jsx37(
|
|
2071
2253
|
"path",
|
|
2072
2254
|
{
|
|
2073
2255
|
fill: "#fbe9e7",
|
|
@@ -2076,7 +2258,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2076
2258
|
"fill-rule": "nonzero"
|
|
2077
2259
|
}
|
|
2078
2260
|
),
|
|
2079
|
-
/* @__PURE__ */
|
|
2261
|
+
/* @__PURE__ */ jsx37(
|
|
2080
2262
|
"path",
|
|
2081
2263
|
{
|
|
2082
2264
|
fill: "#ffe0b2",
|
|
@@ -2085,7 +2267,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2085
2267
|
"fill-rule": "nonzero"
|
|
2086
2268
|
}
|
|
2087
2269
|
),
|
|
2088
|
-
/* @__PURE__ */
|
|
2270
|
+
/* @__PURE__ */ jsx37(
|
|
2089
2271
|
"path",
|
|
2090
2272
|
{
|
|
2091
2273
|
fill: "#ffe0b2",
|
|
@@ -2094,7 +2276,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
|
2094
2276
|
"fill-rule": "nonzero"
|
|
2095
2277
|
}
|
|
2096
2278
|
),
|
|
2097
|
-
/* @__PURE__ */
|
|
2279
|
+
/* @__PURE__ */ jsx37(
|
|
2098
2280
|
"path",
|
|
2099
2281
|
{
|
|
2100
2282
|
fill: "#ffe0b2",
|
|
@@ -2169,8 +2351,8 @@ var DocumentNode = (props) => {
|
|
|
2169
2351
|
}
|
|
2170
2352
|
}
|
|
2171
2353
|
if (documents.length === 0) {
|
|
2172
|
-
return /* @__PURE__ */
|
|
2173
|
-
/* @__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(
|
|
2174
2356
|
"svg",
|
|
2175
2357
|
{
|
|
2176
2358
|
className: "w-5 h-5",
|
|
@@ -2178,7 +2360,7 @@ var DocumentNode = (props) => {
|
|
|
2178
2360
|
stroke: "currentColor",
|
|
2179
2361
|
viewBox: "0 0 24 24",
|
|
2180
2362
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2181
|
-
children: /* @__PURE__ */
|
|
2363
|
+
children: /* @__PURE__ */ jsx37(
|
|
2182
2364
|
"path",
|
|
2183
2365
|
{
|
|
2184
2366
|
strokeLinecap: "round",
|
|
@@ -2189,11 +2371,11 @@ var DocumentNode = (props) => {
|
|
|
2189
2371
|
)
|
|
2190
2372
|
}
|
|
2191
2373
|
) }),
|
|
2192
|
-
/* @__PURE__ */
|
|
2193
|
-
/* @__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." })
|
|
2194
2376
|
] }) });
|
|
2195
2377
|
}
|
|
2196
|
-
return /* @__PURE__ */
|
|
2378
|
+
return /* @__PURE__ */ jsx37("div", { className: "", children: documents.map((doc, index) => {
|
|
2197
2379
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2198
2380
|
props.assetBaseUrl,
|
|
2199
2381
|
doc.assetUrl
|
|
@@ -2211,16 +2393,16 @@ var DocumentNode = (props) => {
|
|
|
2211
2393
|
}
|
|
2212
2394
|
}
|
|
2213
2395
|
const { Icon, extLabel } = getFileDetails(documentUrl);
|
|
2214
|
-
return /* @__PURE__ */
|
|
2396
|
+
return /* @__PURE__ */ jsxs14(
|
|
2215
2397
|
"div",
|
|
2216
2398
|
{
|
|
2217
2399
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2218
2400
|
children: [
|
|
2219
|
-
/* @__PURE__ */
|
|
2220
|
-
/* @__PURE__ */
|
|
2221
|
-
/* @__PURE__ */
|
|
2401
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex items-center space-x-4", children: [
|
|
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 }) })
|
|
2222
2404
|
] }),
|
|
2223
|
-
/* @__PURE__ */
|
|
2405
|
+
/* @__PURE__ */ jsxs14(
|
|
2224
2406
|
"a",
|
|
2225
2407
|
{
|
|
2226
2408
|
href: documentUrl,
|
|
@@ -2228,7 +2410,7 @@ var DocumentNode = (props) => {
|
|
|
2228
2410
|
rel: "noopener noreferrer",
|
|
2229
2411
|
className: "inline-flex items-center px-4 py-2 text-sm font-medium bg-default border rounded focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors",
|
|
2230
2412
|
children: [
|
|
2231
|
-
/* @__PURE__ */
|
|
2413
|
+
/* @__PURE__ */ jsxs14(
|
|
2232
2414
|
"svg",
|
|
2233
2415
|
{
|
|
2234
2416
|
className: "w-4 h-4 mr-2",
|
|
@@ -2236,7 +2418,7 @@ var DocumentNode = (props) => {
|
|
|
2236
2418
|
stroke: "currentColor",
|
|
2237
2419
|
viewBox: "0 0 24 24",
|
|
2238
2420
|
children: [
|
|
2239
|
-
/* @__PURE__ */
|
|
2421
|
+
/* @__PURE__ */ jsx37(
|
|
2240
2422
|
"path",
|
|
2241
2423
|
{
|
|
2242
2424
|
strokeLinecap: "round",
|
|
@@ -2245,7 +2427,7 @@ var DocumentNode = (props) => {
|
|
|
2245
2427
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2246
2428
|
}
|
|
2247
2429
|
),
|
|
2248
|
-
/* @__PURE__ */
|
|
2430
|
+
/* @__PURE__ */ jsx37(
|
|
2249
2431
|
"path",
|
|
2250
2432
|
{
|
|
2251
2433
|
strokeLinecap: "round",
|
|
@@ -2271,13 +2453,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
2271
2453
|
|
|
2272
2454
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2273
2455
|
import dynamic10 from "next/dynamic";
|
|
2274
|
-
import { jsx as
|
|
2456
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2275
2457
|
var IframeClient2 = dynamic10(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
2276
2458
|
ssr: false
|
|
2277
2459
|
});
|
|
2278
2460
|
var GoogleMapNode = (props) => {
|
|
2279
2461
|
let src = props.node.embedUrl;
|
|
2280
|
-
return /* @__PURE__ */
|
|
2462
|
+
return /* @__PURE__ */ jsx38("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx38(
|
|
2281
2463
|
IframeClient2,
|
|
2282
2464
|
{
|
|
2283
2465
|
src,
|
|
@@ -2289,7 +2471,7 @@ var GoogleMapNode = (props) => {
|
|
|
2289
2471
|
var GoogleMapNode_default = GoogleMapNode;
|
|
2290
2472
|
|
|
2291
2473
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2292
|
-
import { jsx as
|
|
2474
|
+
import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2293
2475
|
var Pagination = dynamic11(() => import("./Pagination-QBPYDD66.mjs"), { ssr: true });
|
|
2294
2476
|
var DataBindingControls = dynamic11(() => import("./DataBindingControls-WJAY5HFO.mjs"), {
|
|
2295
2477
|
ssr: true
|
|
@@ -2548,7 +2730,7 @@ var DivContainer = async (props) => {
|
|
|
2548
2730
|
response = await serviceClient.get(endpoint);
|
|
2549
2731
|
result = response?.result;
|
|
2550
2732
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
2551
|
-
return /* @__PURE__ */
|
|
2733
|
+
return /* @__PURE__ */ jsx39(NoDataFound_default, {});
|
|
2552
2734
|
}
|
|
2553
2735
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
2554
2736
|
childCollectionData = getNestedValue6(
|
|
@@ -2568,7 +2750,7 @@ var DivContainer = async (props) => {
|
|
|
2568
2750
|
}
|
|
2569
2751
|
const SelectedNode = NodeTypes2[node.type];
|
|
2570
2752
|
if (!SelectedNode) return null;
|
|
2571
|
-
return /* @__PURE__ */
|
|
2753
|
+
return /* @__PURE__ */ jsx39(React25.Fragment, { children: /* @__PURE__ */ jsx39(
|
|
2572
2754
|
SelectedNode,
|
|
2573
2755
|
{
|
|
2574
2756
|
node,
|
|
@@ -2588,7 +2770,7 @@ var DivContainer = async (props) => {
|
|
|
2588
2770
|
}
|
|
2589
2771
|
) }, key);
|
|
2590
2772
|
}
|
|
2591
|
-
function
|
|
2773
|
+
function renderChildren2(nodes, props2, data, key, href) {
|
|
2592
2774
|
if (!nodes) return null;
|
|
2593
2775
|
const childNodes = nodes.map((node, index) => {
|
|
2594
2776
|
if (
|
|
@@ -2705,7 +2887,7 @@ var DivContainer = async (props) => {
|
|
|
2705
2887
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
2706
2888
|
);
|
|
2707
2889
|
const WrapperComponent = Wrapper;
|
|
2708
|
-
const renderedContainer = /* @__PURE__ */
|
|
2890
|
+
const renderedContainer = /* @__PURE__ */ jsx39(
|
|
2709
2891
|
WrapperComponent,
|
|
2710
2892
|
{
|
|
2711
2893
|
id: guid,
|
|
@@ -2713,17 +2895,17 @@ var DivContainer = async (props) => {
|
|
|
2713
2895
|
className: classNames || void 0,
|
|
2714
2896
|
...wrapperProps,
|
|
2715
2897
|
children: dataToRender.map(
|
|
2716
|
-
(item, idx) => item?.links?.view && renderLink ?
|
|
2898
|
+
(item, idx) => item?.links?.view && renderLink ? renderChildren2(
|
|
2717
2899
|
props.node.children,
|
|
2718
2900
|
props,
|
|
2719
2901
|
item,
|
|
2720
2902
|
idx,
|
|
2721
2903
|
props.href ? void 0 : item?.links?.view
|
|
2722
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2904
|
+
)?.map((child, i) => /* @__PURE__ */ jsx39(React25.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
|
|
2723
2905
|
)
|
|
2724
2906
|
}
|
|
2725
2907
|
);
|
|
2726
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */
|
|
2908
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx39(
|
|
2727
2909
|
Pagination,
|
|
2728
2910
|
{
|
|
2729
2911
|
path: props.path,
|
|
@@ -2731,15 +2913,15 @@ var DivContainer = async (props) => {
|
|
|
2731
2913
|
dataset: response
|
|
2732
2914
|
}
|
|
2733
2915
|
) : null;
|
|
2734
|
-
return /* @__PURE__ */
|
|
2735
|
-
/* @__PURE__ */
|
|
2916
|
+
return /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
|
|
2917
|
+
/* @__PURE__ */ jsx39(
|
|
2736
2918
|
"style",
|
|
2737
2919
|
{
|
|
2738
2920
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2739
2921
|
}
|
|
2740
2922
|
),
|
|
2741
|
-
showDataBindingControls ? /* @__PURE__ */
|
|
2742
|
-
/* @__PURE__ */
|
|
2923
|
+
showDataBindingControls ? /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
|
|
2924
|
+
/* @__PURE__ */ jsx39(
|
|
2743
2925
|
DataBindingControls,
|
|
2744
2926
|
{
|
|
2745
2927
|
mode: "toolbar",
|
|
@@ -2751,18 +2933,18 @@ var DivContainer = async (props) => {
|
|
|
2751
2933
|
showSearchBar: dataBindingProperties?.showSearchBar
|
|
2752
2934
|
}
|
|
2753
2935
|
),
|
|
2754
|
-
/* @__PURE__ */
|
|
2936
|
+
/* @__PURE__ */ jsxs15(
|
|
2755
2937
|
"div",
|
|
2756
2938
|
{
|
|
2757
2939
|
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
2758
2940
|
children: [
|
|
2759
|
-
/* @__PURE__ */
|
|
2941
|
+
/* @__PURE__ */ jsxs15("div", { className: "min-w-0", children: [
|
|
2760
2942
|
renderedContainer,
|
|
2761
2943
|
paginationControl
|
|
2762
2944
|
] }),
|
|
2763
|
-
dataBindingProperties?.showFacets && /* @__PURE__ */
|
|
2764
|
-
/* @__PURE__ */
|
|
2765
|
-
/* @__PURE__ */
|
|
2945
|
+
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs15("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
2946
|
+
/* @__PURE__ */ jsx39("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
2947
|
+
/* @__PURE__ */ jsx39(
|
|
2766
2948
|
DataBindingControls,
|
|
2767
2949
|
{
|
|
2768
2950
|
mode: "facets",
|
|
@@ -2776,16 +2958,16 @@ var DivContainer = async (props) => {
|
|
|
2776
2958
|
]
|
|
2777
2959
|
}
|
|
2778
2960
|
)
|
|
2779
|
-
] }) : /* @__PURE__ */
|
|
2961
|
+
] }) : /* @__PURE__ */ jsxs15(React25.Fragment, { children: [
|
|
2780
2962
|
renderedContainer,
|
|
2781
|
-
paginationControl && /* @__PURE__ */
|
|
2963
|
+
paginationControl && /* @__PURE__ */ jsx39("div", { children: paginationControl })
|
|
2782
2964
|
] })
|
|
2783
2965
|
] });
|
|
2784
2966
|
};
|
|
2785
2967
|
var DivContainer_default = DivContainer;
|
|
2786
2968
|
|
|
2787
2969
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2788
|
-
import { jsx as
|
|
2970
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2789
2971
|
var NodeTypes = {
|
|
2790
2972
|
["paragraph"]: ParagraphNode_default,
|
|
2791
2973
|
["heading"]: HeadingNode_default,
|
|
@@ -2823,14 +3005,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2823
3005
|
}
|
|
2824
3006
|
return true;
|
|
2825
3007
|
};
|
|
2826
|
-
return /* @__PURE__ */
|
|
3008
|
+
return /* @__PURE__ */ jsx40(React26.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2827
3009
|
{
|
|
2828
3010
|
}
|
|
2829
3011
|
const SelectedNode = NodeTypes[node.type];
|
|
2830
3012
|
if (!shouldRenderNode(node)) {
|
|
2831
3013
|
return null;
|
|
2832
3014
|
}
|
|
2833
|
-
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(
|
|
2834
3016
|
SelectedNode,
|
|
2835
3017
|
{
|
|
2836
3018
|
node,
|
|
@@ -2846,7 +3028,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2846
3028
|
device: props.device,
|
|
2847
3029
|
widgetRenderer: props.widgetRenderer
|
|
2848
3030
|
}
|
|
2849
|
-
) }) : /* @__PURE__ */
|
|
3031
|
+
) }) : /* @__PURE__ */ jsx40(React26.Fragment, { children: /* @__PURE__ */ jsx40(
|
|
2850
3032
|
SelectedNode,
|
|
2851
3033
|
{
|
|
2852
3034
|
node,
|