@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260824114331 → 0.8.1-dev.20260825113828
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 +897 -873
- package/dist/index.mjs +387 -363
- package/dist/server.d.mts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +619 -595
- package/dist/server.mjs +196 -172
- 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 React24 from "react";
|
|
18
18
|
|
|
19
19
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
20
|
-
import
|
|
20
|
+
import React16 from "react";
|
|
21
21
|
|
|
22
22
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
23
23
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -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 React15 from "react";
|
|
461
461
|
|
|
462
462
|
// src/components/controls/view/ViewControlTypes.tsx
|
|
463
463
|
var ViewControlTypes = {
|
|
@@ -466,6 +466,7 @@ var ViewControlTypes = {
|
|
|
466
466
|
asset: "asset",
|
|
467
467
|
video: "video",
|
|
468
468
|
multilineTextBullets: "multilineTextBullets",
|
|
469
|
+
tagsBullets: "tagsBullets",
|
|
469
470
|
boolean: "boolean",
|
|
470
471
|
checkboxInput: "boolean",
|
|
471
472
|
money: "money",
|
|
@@ -647,19 +648,41 @@ var MultilineTextBullets = (props) => {
|
|
|
647
648
|
};
|
|
648
649
|
var MultilineTextBulletsView_default = MultilineTextBullets;
|
|
649
650
|
|
|
650
|
-
// src/components/controls/view/
|
|
651
|
+
// src/components/controls/view/TagsBulletsView.tsx
|
|
651
652
|
import React11 from "react";
|
|
652
|
-
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
653
|
+
import { jsx as jsx17, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
654
|
+
var getText = (node) => {
|
|
655
|
+
if (node === null || node === void 0 || typeof node === "boolean") return "";
|
|
656
|
+
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
657
|
+
if (Array.isArray(node)) return node.map(getText).join("");
|
|
658
|
+
if (React11.isValidElement(node)) return getText(node.props.children);
|
|
659
|
+
return "";
|
|
660
|
+
};
|
|
661
|
+
var TagsBulletsView = (props) => {
|
|
662
|
+
const rawTags = Array.isArray(props.value) ? props.value : typeof props.value === "string" ? props.value.split(",") : [];
|
|
663
|
+
const tags = rawTags.map((tag) => getText(tag).trim()).filter((tag) => tag);
|
|
664
|
+
return /* @__PURE__ */ jsx17(React11.Fragment, { children: tags && tags.map((tag, index) => {
|
|
665
|
+
return /* @__PURE__ */ jsxs4("span", { children: [
|
|
666
|
+
index > 0 && /* @__PURE__ */ jsx17("span", { children: " \u2022 " }),
|
|
667
|
+
tag
|
|
668
|
+
] }, index);
|
|
669
|
+
}) });
|
|
670
|
+
};
|
|
671
|
+
var TagsBulletsView_default = TagsBulletsView;
|
|
672
|
+
|
|
673
|
+
// src/components/controls/view/MultilineTextView.tsx
|
|
674
|
+
import React12 from "react";
|
|
675
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
653
676
|
var MultilineText = (props) => {
|
|
654
|
-
return /* @__PURE__ */
|
|
677
|
+
return /* @__PURE__ */ jsx18(React12.Fragment, { children: /* @__PURE__ */ jsx18("span", { className: "break-all whitespace-pre-line", children: props.value }) });
|
|
655
678
|
};
|
|
656
679
|
var MultilineTextView_default = MultilineText;
|
|
657
680
|
|
|
658
681
|
// src/components/controls/view/PercentageView.tsx
|
|
659
|
-
import
|
|
660
|
-
import { jsxs as
|
|
682
|
+
import React13 from "react";
|
|
683
|
+
import { jsxs as jsxs5 } from "react/jsx-runtime";
|
|
661
684
|
var PercentageView = (props) => {
|
|
662
|
-
return /* @__PURE__ */
|
|
685
|
+
return /* @__PURE__ */ jsxs5(React13.Fragment, { children: [
|
|
663
686
|
props.value,
|
|
664
687
|
"%"
|
|
665
688
|
] });
|
|
@@ -667,16 +690,16 @@ var PercentageView = (props) => {
|
|
|
667
690
|
var PercentageView_default = PercentageView;
|
|
668
691
|
|
|
669
692
|
// src/components/controls/view/ProgressIndicator.tsx
|
|
670
|
-
import
|
|
671
|
-
import { jsx as
|
|
693
|
+
import React14 from "react";
|
|
694
|
+
import { jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
672
695
|
var ProgressIndicator = (props) => {
|
|
673
696
|
const percentage = 100;
|
|
674
697
|
const circumference = Math.PI * 56;
|
|
675
698
|
const offset = circumference * (1 - percentage / 100);
|
|
676
|
-
return /* @__PURE__ */
|
|
677
|
-
/* @__PURE__ */
|
|
678
|
-
/* @__PURE__ */
|
|
679
|
-
/* @__PURE__ */
|
|
699
|
+
return /* @__PURE__ */ jsx19(React14.Fragment, { children: /* @__PURE__ */ jsxs6("div", { className: "relative w-48 h-48", children: [
|
|
700
|
+
/* @__PURE__ */ jsx19("div", { className: "absolute top-0 left-0 w-full h-full rounded-full border border-gray-200" }),
|
|
701
|
+
/* @__PURE__ */ jsx19("div", { className: "absolute top-0 left-0 w-full h-full rounded-full overflow-hidden", children: /* @__PURE__ */ jsx19("div", { className: "w-full h-full rounded-full border-t-8 border-green-500", style: { transform: `rotate(-90deg)`, clipPath: `inset(0px ${offset}px 0px 0px)` } }) }),
|
|
702
|
+
/* @__PURE__ */ jsx19("div", { className: "absolute top-0 left-0 w-full h-full flex items-center justify-center text-lg font-bold text-gray-800", children: /* @__PURE__ */ jsxs6("span", { children: [
|
|
680
703
|
percentage,
|
|
681
704
|
"%"
|
|
682
705
|
] }) })
|
|
@@ -685,18 +708,18 @@ var ProgressIndicator = (props) => {
|
|
|
685
708
|
var ProgressIndicator_default = ProgressIndicator;
|
|
686
709
|
|
|
687
710
|
// src/components/controls/view/AiGeneratedSummary.tsx
|
|
688
|
-
import { jsx as
|
|
711
|
+
import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
689
712
|
var AiGeneratedSummary = (props) => {
|
|
690
713
|
const lines = props.value?.split("\n").filter((line) => line.trim() !== "") || [];
|
|
691
|
-
return /* @__PURE__ */
|
|
692
|
-
/* @__PURE__ */
|
|
693
|
-
/* @__PURE__ */
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */
|
|
696
|
-
/* @__PURE__ */
|
|
714
|
+
return /* @__PURE__ */ jsxs7("details", { className: "group rounded-xl border-2 bg-white shadow-sm border-p overflow-hidden", children: [
|
|
715
|
+
/* @__PURE__ */ jsx20("summary", { className: "flex items-start justify-between cursor-pointer list-none", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-start gap-3 ", children: [
|
|
716
|
+
/* @__PURE__ */ jsx20("div", { className: "bg-primary-base bg-transparent rounded mt-1 p-1", children: /* @__PURE__ */ jsx20("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "w-5", children: /* @__PURE__ */ jsx20("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z" }) }) }),
|
|
717
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
|
718
|
+
/* @__PURE__ */ jsx20("h3", { className: "text-lg font-semibold ", children: "Quick Read" }),
|
|
719
|
+
/* @__PURE__ */ jsx20("p", { className: "text-sm text-gray-500 mb-0", children: "Summary is AI-generated, author-reviewed" })
|
|
697
720
|
] })
|
|
698
721
|
] }) }),
|
|
699
|
-
/* @__PURE__ */
|
|
722
|
+
/* @__PURE__ */ jsx20("div", { children: /* @__PURE__ */ jsx20("ul", { className: "list-disc pl-6 space-y-3 text-gray-700 ps-4 pl-4", children: lines.map((line, index) => /* @__PURE__ */ jsx20("li", { className: "m-0", children: line }, index)) }) })
|
|
700
723
|
] });
|
|
701
724
|
};
|
|
702
725
|
var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
@@ -716,13 +739,14 @@ var TimeUntilStarts = dynamic6(() => import("./TimeUntilStartsClient-4C7NDEAD.mj
|
|
|
716
739
|
var TimeUntilStarts_default = TimeUntilStarts;
|
|
717
740
|
|
|
718
741
|
// src/components/controls/view/ViewControl.tsx
|
|
719
|
-
import { jsx as
|
|
742
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
720
743
|
var ViewControl = (props) => {
|
|
721
744
|
const ControlComponents = {
|
|
722
745
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
723
746
|
[ViewControlTypes_default.emailText]: EmailTextView_default,
|
|
724
747
|
[ViewControlTypes_default.asset]: Asset_default,
|
|
725
748
|
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
749
|
+
[ViewControlTypes_default.tagsBullets]: TagsBulletsView_default,
|
|
726
750
|
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
727
751
|
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
728
752
|
[ViewControlTypes_default.timeUntilStarts]: TimeUntilStarts_default,
|
|
@@ -745,12 +769,12 @@ var ViewControl = (props) => {
|
|
|
745
769
|
[ViewControlTypes_default.text]: LineTextView_default
|
|
746
770
|
};
|
|
747
771
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
748
|
-
return /* @__PURE__ */
|
|
772
|
+
return /* @__PURE__ */ jsx21(React15.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx21(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
749
773
|
};
|
|
750
774
|
var ViewControl_default = ViewControl;
|
|
751
775
|
|
|
752
776
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
753
|
-
import { jsx as
|
|
777
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
754
778
|
function getNestedProperty(obj, path) {
|
|
755
779
|
if (!obj || !path) return null;
|
|
756
780
|
if (path.includes(".")) {
|
|
@@ -763,7 +787,7 @@ function getNestedProperty(obj, path) {
|
|
|
763
787
|
}
|
|
764
788
|
const value = obj[path];
|
|
765
789
|
if (Array.isArray(value)) {
|
|
766
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
790
|
+
return value.map((item, index) => /* @__PURE__ */ jsx22("div", { children: String(item) }, index));
|
|
767
791
|
}
|
|
768
792
|
return value;
|
|
769
793
|
}
|
|
@@ -824,7 +848,7 @@ var DatafieldNode = (props) => {
|
|
|
824
848
|
const dataType = props.node.dataType;
|
|
825
849
|
if (isEmptyValue) return null;
|
|
826
850
|
if (dataType === "rawContent") {
|
|
827
|
-
return /* @__PURE__ */
|
|
851
|
+
return /* @__PURE__ */ jsx22(
|
|
828
852
|
PageBodyRenderer_default,
|
|
829
853
|
{
|
|
830
854
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -840,12 +864,12 @@ var DatafieldNode = (props) => {
|
|
|
840
864
|
}
|
|
841
865
|
);
|
|
842
866
|
}
|
|
843
|
-
return /* @__PURE__ */
|
|
867
|
+
return /* @__PURE__ */ jsx22(
|
|
844
868
|
"span",
|
|
845
869
|
{
|
|
846
870
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
847
871
|
style: styles,
|
|
848
|
-
children: /* @__PURE__ */
|
|
872
|
+
children: /* @__PURE__ */ jsx22(
|
|
849
873
|
ViewControl_default,
|
|
850
874
|
{
|
|
851
875
|
controlType: dataType,
|
|
@@ -858,7 +882,7 @@ var DatafieldNode = (props) => {
|
|
|
858
882
|
var DatafieldNode_default = DatafieldNode;
|
|
859
883
|
|
|
860
884
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
861
|
-
import { Fragment as Fragment2, jsx as
|
|
885
|
+
import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
862
886
|
var ParagraphNode = (props) => {
|
|
863
887
|
const NodeTypes2 = {
|
|
864
888
|
["text"]: TextNode_default,
|
|
@@ -878,9 +902,9 @@ var ParagraphNode = (props) => {
|
|
|
878
902
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
879
903
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
880
904
|
if (isInlineOnlyParent) {
|
|
881
|
-
return /* @__PURE__ */
|
|
905
|
+
return /* @__PURE__ */ jsx23(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
882
906
|
const SelectedNode = NodeTypes2[node.type];
|
|
883
|
-
return /* @__PURE__ */
|
|
907
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
|
|
884
908
|
SelectedNode,
|
|
885
909
|
{
|
|
886
910
|
node,
|
|
@@ -892,10 +916,10 @@ var ParagraphNode = (props) => {
|
|
|
892
916
|
) }, index);
|
|
893
917
|
}) });
|
|
894
918
|
}
|
|
895
|
-
return /* @__PURE__ */
|
|
919
|
+
return /* @__PURE__ */ jsxs8("div", { className: " " + formatClasses, children: [
|
|
896
920
|
hasChildren && props.node.children.map((node, index) => {
|
|
897
921
|
const SelectedNode = NodeTypes2[node.type];
|
|
898
|
-
return /* @__PURE__ */
|
|
922
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(
|
|
899
923
|
SelectedNode,
|
|
900
924
|
{
|
|
901
925
|
node,
|
|
@@ -906,14 +930,14 @@ var ParagraphNode = (props) => {
|
|
|
906
930
|
}
|
|
907
931
|
) }, index);
|
|
908
932
|
}),
|
|
909
|
-
!hasChildren && /* @__PURE__ */
|
|
933
|
+
!hasChildren && /* @__PURE__ */ jsx23("div", { className: "py-1.5 lg:py-2" })
|
|
910
934
|
] });
|
|
911
935
|
};
|
|
912
936
|
var ParagraphNode_default = ParagraphNode;
|
|
913
937
|
|
|
914
938
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
915
|
-
import
|
|
916
|
-
import { Fragment as Fragment3, jsx as
|
|
939
|
+
import React17 from "react";
|
|
940
|
+
import { Fragment as Fragment3, jsx as jsx24 } from "react/jsx-runtime";
|
|
917
941
|
var HeadingNode = (props) => {
|
|
918
942
|
const NodeTypes2 = {
|
|
919
943
|
["text"]: TextNode_default,
|
|
@@ -929,23 +953,23 @@ var HeadingNode = (props) => {
|
|
|
929
953
|
{
|
|
930
954
|
}
|
|
931
955
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
932
|
-
return /* @__PURE__ */
|
|
956
|
+
return /* @__PURE__ */ jsx24(Fragment3, { children: React17.createElement(
|
|
933
957
|
HeadingTag,
|
|
934
958
|
{ className: formatClasses },
|
|
935
959
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
936
960
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
937
|
-
return /* @__PURE__ */
|
|
961
|
+
return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
938
962
|
})
|
|
939
963
|
) });
|
|
940
964
|
};
|
|
941
965
|
var HeadingNode_default = HeadingNode;
|
|
942
966
|
|
|
943
967
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
944
|
-
import
|
|
968
|
+
import React19 from "react";
|
|
945
969
|
|
|
946
970
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
947
|
-
import
|
|
948
|
-
import { jsx as
|
|
971
|
+
import React18 from "react";
|
|
972
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
949
973
|
var ListItemNode = (props) => {
|
|
950
974
|
const NodeTypes2 = {
|
|
951
975
|
text: TextNode_default,
|
|
@@ -962,66 +986,66 @@ var ListItemNode = (props) => {
|
|
|
962
986
|
liStyle.fontSize = match[1].trim();
|
|
963
987
|
}
|
|
964
988
|
}
|
|
965
|
-
return /* @__PURE__ */
|
|
989
|
+
return /* @__PURE__ */ jsx25("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
966
990
|
const SelectedNode = NodeTypes2[node.type];
|
|
967
991
|
if (node.type === "linebreak") {
|
|
968
992
|
if (!foundFirstBreak) {
|
|
969
993
|
foundFirstBreak = true;
|
|
970
|
-
return /* @__PURE__ */
|
|
994
|
+
return /* @__PURE__ */ jsx25("div", {}, index);
|
|
971
995
|
} else {
|
|
972
|
-
return /* @__PURE__ */
|
|
996
|
+
return /* @__PURE__ */ jsx25("div", { className: "py-1 lg:py-2" }, index);
|
|
973
997
|
}
|
|
974
998
|
} else {
|
|
975
999
|
foundFirstBreak = false;
|
|
976
|
-
return /* @__PURE__ */
|
|
1000
|
+
return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
977
1001
|
}
|
|
978
1002
|
}) });
|
|
979
1003
|
};
|
|
980
1004
|
var ListItemNode_default = ListItemNode;
|
|
981
1005
|
|
|
982
1006
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
983
|
-
import { jsx as
|
|
1007
|
+
import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
984
1008
|
var ListNode = (props) => {
|
|
985
1009
|
const NodeTypes2 = {
|
|
986
1010
|
listitem: ListItemNode_default
|
|
987
1011
|
};
|
|
988
|
-
return /* @__PURE__ */
|
|
989
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1012
|
+
return /* @__PURE__ */ jsxs9(React19.Fragment, { children: [
|
|
1013
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx26("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
990
1014
|
const SelectedNode = NodeTypes2[node.type];
|
|
991
|
-
return /* @__PURE__ */
|
|
1015
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
992
1016
|
}) }),
|
|
993
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1017
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx26("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
994
1018
|
const SelectedNode = NodeTypes2[node.type];
|
|
995
|
-
return /* @__PURE__ */
|
|
1019
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
996
1020
|
}) })
|
|
997
1021
|
] });
|
|
998
1022
|
};
|
|
999
1023
|
var ListNode_default = ListNode;
|
|
1000
1024
|
|
|
1001
1025
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
1002
|
-
import
|
|
1003
|
-
import { jsx as
|
|
1026
|
+
import React20 from "react";
|
|
1027
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1004
1028
|
var QuoteNode = (props) => {
|
|
1005
1029
|
const NodeTypes2 = {
|
|
1006
1030
|
["text"]: TextNode_default,
|
|
1007
1031
|
["linebreak"]: LineBreakNode_default,
|
|
1008
1032
|
["link"]: LinkNode_default
|
|
1009
1033
|
};
|
|
1010
|
-
return /* @__PURE__ */
|
|
1034
|
+
return /* @__PURE__ */ jsx27("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
1011
1035
|
const SelectedNode = NodeTypes2[node.type];
|
|
1012
|
-
return /* @__PURE__ */
|
|
1036
|
+
return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
1013
1037
|
}) });
|
|
1014
1038
|
};
|
|
1015
1039
|
var QuoteNode_default = QuoteNode;
|
|
1016
1040
|
|
|
1017
1041
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
1018
|
-
import
|
|
1042
|
+
import React21 from "react";
|
|
1019
1043
|
import dynamic7 from "next/dynamic";
|
|
1020
|
-
import { jsx as
|
|
1044
|
+
import { jsx as jsx28, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1021
1045
|
var CopyButton = dynamic7(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
1022
1046
|
ssr: false,
|
|
1023
1047
|
// optional: fallback UI while loading
|
|
1024
|
-
loading: () => /* @__PURE__ */
|
|
1048
|
+
loading: () => /* @__PURE__ */ jsx28("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1025
1049
|
});
|
|
1026
1050
|
var CodeNode = (props) => {
|
|
1027
1051
|
const NodeTypes2 = {
|
|
@@ -1035,14 +1059,14 @@ var CodeNode = (props) => {
|
|
|
1035
1059
|
if (node.type === "link") return node.text || node.url || "";
|
|
1036
1060
|
return "";
|
|
1037
1061
|
}).join("") ?? "";
|
|
1038
|
-
return /* @__PURE__ */
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
/* @__PURE__ */
|
|
1041
|
-
/* @__PURE__ */
|
|
1062
|
+
return /* @__PURE__ */ jsxs10("div", { children: [
|
|
1063
|
+
/* @__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: [
|
|
1064
|
+
/* @__PURE__ */ jsx28("span", { children: "Code Snippet" }),
|
|
1065
|
+
/* @__PURE__ */ jsx28(CopyButton, { text: textContent })
|
|
1042
1066
|
] }),
|
|
1043
|
-
/* @__PURE__ */
|
|
1067
|
+
/* @__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) => {
|
|
1044
1068
|
const SelectedNode = NodeTypes2[node.type];
|
|
1045
|
-
return /* @__PURE__ */
|
|
1069
|
+
return /* @__PURE__ */ jsx28(React21.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx28(
|
|
1046
1070
|
SelectedNode,
|
|
1047
1071
|
{
|
|
1048
1072
|
node,
|
|
@@ -1057,15 +1081,15 @@ var CodeNode = (props) => {
|
|
|
1057
1081
|
var CodeNode_default = CodeNode;
|
|
1058
1082
|
|
|
1059
1083
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1060
|
-
import { jsx as
|
|
1084
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1061
1085
|
var HorizontalRuleNode = () => {
|
|
1062
|
-
return /* @__PURE__ */
|
|
1086
|
+
return /* @__PURE__ */ jsx29("hr", {});
|
|
1063
1087
|
};
|
|
1064
1088
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1065
1089
|
|
|
1066
1090
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1067
|
-
import
|
|
1068
|
-
import { Fragment as Fragment4, jsx as
|
|
1091
|
+
import React22 from "react";
|
|
1092
|
+
import { Fragment as Fragment4, jsx as jsx30 } from "react/jsx-runtime";
|
|
1069
1093
|
var WidgetNode = (props) => {
|
|
1070
1094
|
const getWidgetParameters = () => {
|
|
1071
1095
|
const widgetInputParameters = {
|
|
@@ -1129,7 +1153,7 @@ var WidgetNode = (props) => {
|
|
|
1129
1153
|
};
|
|
1130
1154
|
const widgetCode = props.node?.widgetCode;
|
|
1131
1155
|
if (!widgetCode) {
|
|
1132
|
-
return /* @__PURE__ */
|
|
1156
|
+
return /* @__PURE__ */ jsx30(Fragment4, { children: "Invalid widget" });
|
|
1133
1157
|
}
|
|
1134
1158
|
const widgetParams = getWidgetParameters();
|
|
1135
1159
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1138,7 +1162,7 @@ var WidgetNode = (props) => {
|
|
|
1138
1162
|
}
|
|
1139
1163
|
return (
|
|
1140
1164
|
// eslint-disable-next-line react-hooks/static-components
|
|
1141
|
-
/* @__PURE__ */
|
|
1165
|
+
/* @__PURE__ */ jsx30(React22.Fragment, { children: /* @__PURE__ */ jsx30(
|
|
1142
1166
|
WidgetRenderer,
|
|
1143
1167
|
{
|
|
1144
1168
|
params: widgetParams,
|
|
@@ -1156,11 +1180,11 @@ var WidgetNode_default = WidgetNode;
|
|
|
1156
1180
|
|
|
1157
1181
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
1158
1182
|
import dynamic11 from "next/dynamic";
|
|
1159
|
-
import
|
|
1183
|
+
import React23 from "react";
|
|
1160
1184
|
|
|
1161
1185
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1162
1186
|
import dynamic8 from "next/dynamic";
|
|
1163
|
-
import { jsx as
|
|
1187
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1164
1188
|
var IframeClient = dynamic8(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
1165
1189
|
ssr: false
|
|
1166
1190
|
});
|
|
@@ -1173,7 +1197,7 @@ var EmbedNode = (props) => {
|
|
|
1173
1197
|
} else {
|
|
1174
1198
|
src = props.node.embedSrc;
|
|
1175
1199
|
}
|
|
1176
|
-
return /* @__PURE__ */
|
|
1200
|
+
return /* @__PURE__ */ jsx31("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx31(IframeClient, { src }) });
|
|
1177
1201
|
};
|
|
1178
1202
|
var EmbedNode_default = EmbedNode;
|
|
1179
1203
|
|
|
@@ -1366,10 +1390,10 @@ var PathUtility = class {
|
|
|
1366
1390
|
var PathUtility_default = new PathUtility();
|
|
1367
1391
|
|
|
1368
1392
|
// src/components/NoDataFound.tsx
|
|
1369
|
-
import { jsx as
|
|
1393
|
+
import { jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1370
1394
|
var NoDataFound = () => {
|
|
1371
|
-
return /* @__PURE__ */
|
|
1372
|
-
/* @__PURE__ */
|
|
1395
|
+
return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1396
|
+
/* @__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(
|
|
1373
1397
|
"svg",
|
|
1374
1398
|
{
|
|
1375
1399
|
className: "w-10 h-10",
|
|
@@ -1377,7 +1401,7 @@ var NoDataFound = () => {
|
|
|
1377
1401
|
stroke: "currentColor",
|
|
1378
1402
|
viewBox: "0 0 24 24",
|
|
1379
1403
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1380
|
-
children: /* @__PURE__ */
|
|
1404
|
+
children: /* @__PURE__ */ jsx32(
|
|
1381
1405
|
"path",
|
|
1382
1406
|
{
|
|
1383
1407
|
strokeLinecap: "round",
|
|
@@ -1388,15 +1412,15 @@ var NoDataFound = () => {
|
|
|
1388
1412
|
)
|
|
1389
1413
|
}
|
|
1390
1414
|
) }) }),
|
|
1391
|
-
/* @__PURE__ */
|
|
1392
|
-
/* @__PURE__ */
|
|
1415
|
+
/* @__PURE__ */ jsx32("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1416
|
+
/* @__PURE__ */ jsx32("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1393
1417
|
] });
|
|
1394
1418
|
};
|
|
1395
1419
|
var NoDataFound_default = NoDataFound;
|
|
1396
1420
|
|
|
1397
1421
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1398
1422
|
import dynamic9 from "next/dynamic";
|
|
1399
|
-
import { Fragment as Fragment5, jsx as
|
|
1423
|
+
import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1400
1424
|
var HlsPlayer3 = dynamic9(() => import("./HlsPlayer-BVS6BVF7.mjs"), { ssr: false });
|
|
1401
1425
|
var deviceToMediaQuery = (device) => {
|
|
1402
1426
|
switch (device) {
|
|
@@ -1552,8 +1576,8 @@ var ImageGalleryNode = (props) => {
|
|
|
1552
1576
|
right: "justify-end"
|
|
1553
1577
|
};
|
|
1554
1578
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1555
|
-
return /* @__PURE__ */
|
|
1556
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1579
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
1580
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx33(Fragment5, { children: /* @__PURE__ */ jsx33(
|
|
1557
1581
|
HlsPlayer3,
|
|
1558
1582
|
{
|
|
1559
1583
|
sources: hlsSources,
|
|
@@ -1568,7 +1592,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1568
1592
|
styles: hlsStyles
|
|
1569
1593
|
}
|
|
1570
1594
|
) }),
|
|
1571
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1595
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx33(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs12("picture", { children: [
|
|
1572
1596
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1573
1597
|
const match = staticSources.find(
|
|
1574
1598
|
(img) => img.device === deviceKey
|
|
@@ -1584,7 +1608,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1584
1608
|
if (!srcUrl) {
|
|
1585
1609
|
return null;
|
|
1586
1610
|
}
|
|
1587
|
-
return /* @__PURE__ */
|
|
1611
|
+
return /* @__PURE__ */ jsx33(
|
|
1588
1612
|
"source",
|
|
1589
1613
|
{
|
|
1590
1614
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1609,7 +1633,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1609
1633
|
if (img.borderRadius) {
|
|
1610
1634
|
styles.borderRadius = img.borderRadius;
|
|
1611
1635
|
}
|
|
1612
|
-
return /* @__PURE__ */
|
|
1636
|
+
return /* @__PURE__ */ jsx33(
|
|
1613
1637
|
"img",
|
|
1614
1638
|
{
|
|
1615
1639
|
loading: "lazy",
|
|
@@ -1624,7 +1648,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1624
1648
|
})()
|
|
1625
1649
|
] }) : (
|
|
1626
1650
|
/* Case 2: Only device-specific images exist */
|
|
1627
|
-
/* @__PURE__ */
|
|
1651
|
+
/* @__PURE__ */ jsx33(Fragment5, { children: staticSources.map((img, index) => {
|
|
1628
1652
|
const resolved = resolveImage(img);
|
|
1629
1653
|
const imageUrl = resolved?.imageUrl;
|
|
1630
1654
|
if (!imageUrl) {
|
|
@@ -1651,7 +1675,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1651
1675
|
default:
|
|
1652
1676
|
display = "block";
|
|
1653
1677
|
}
|
|
1654
|
-
return /* @__PURE__ */
|
|
1678
|
+
return /* @__PURE__ */ jsx33(
|
|
1655
1679
|
"img",
|
|
1656
1680
|
{
|
|
1657
1681
|
loading: "lazy",
|
|
@@ -1791,28 +1815,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1791
1815
|
};
|
|
1792
1816
|
|
|
1793
1817
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1794
|
-
import { Fragment as Fragment6, jsx as
|
|
1818
|
+
import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1795
1819
|
var getNestedValue5 = (obj, path) => {
|
|
1796
1820
|
if (!obj || !path) return void 0;
|
|
1797
1821
|
return path.split(".").reduce((current, key) => {
|
|
1798
1822
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
1799
1823
|
}, obj);
|
|
1800
1824
|
};
|
|
1801
|
-
var PdfIcon = () => /* @__PURE__ */
|
|
1825
|
+
var PdfIcon = () => /* @__PURE__ */ jsxs13(
|
|
1802
1826
|
"svg",
|
|
1803
1827
|
{
|
|
1804
1828
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1805
1829
|
viewBox: "0 0 48 48",
|
|
1806
1830
|
className: "w-10 h-10",
|
|
1807
1831
|
children: [
|
|
1808
|
-
/* @__PURE__ */
|
|
1832
|
+
/* @__PURE__ */ jsx34(
|
|
1809
1833
|
"path",
|
|
1810
1834
|
{
|
|
1811
1835
|
fill: "#e53935",
|
|
1812
1836
|
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"
|
|
1813
1837
|
}
|
|
1814
1838
|
),
|
|
1815
|
-
/* @__PURE__ */
|
|
1839
|
+
/* @__PURE__ */ jsx34(
|
|
1816
1840
|
"path",
|
|
1817
1841
|
{
|
|
1818
1842
|
fill: "#fff",
|
|
@@ -1822,55 +1846,55 @@ var PdfIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1822
1846
|
]
|
|
1823
1847
|
}
|
|
1824
1848
|
);
|
|
1825
|
-
var ExcelIcon = () => /* @__PURE__ */
|
|
1849
|
+
var ExcelIcon = () => /* @__PURE__ */ jsxs13(
|
|
1826
1850
|
"svg",
|
|
1827
1851
|
{
|
|
1828
1852
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1829
1853
|
viewBox: "0 0 48 48",
|
|
1830
1854
|
className: "w-10 h-10",
|
|
1831
1855
|
children: [
|
|
1832
|
-
/* @__PURE__ */
|
|
1856
|
+
/* @__PURE__ */ jsx34(
|
|
1833
1857
|
"path",
|
|
1834
1858
|
{
|
|
1835
1859
|
fill: "#169154",
|
|
1836
1860
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1837
1861
|
}
|
|
1838
1862
|
),
|
|
1839
|
-
/* @__PURE__ */
|
|
1863
|
+
/* @__PURE__ */ jsx34(
|
|
1840
1864
|
"path",
|
|
1841
1865
|
{
|
|
1842
1866
|
fill: "#18482a",
|
|
1843
1867
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
1844
1868
|
}
|
|
1845
1869
|
),
|
|
1846
|
-
/* @__PURE__ */
|
|
1847
|
-
/* @__PURE__ */
|
|
1848
|
-
/* @__PURE__ */
|
|
1849
|
-
/* @__PURE__ */
|
|
1870
|
+
/* @__PURE__ */ jsx34("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
1871
|
+
/* @__PURE__ */ jsx34("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
1872
|
+
/* @__PURE__ */ jsxs13("g", { children: [
|
|
1873
|
+
/* @__PURE__ */ jsx34(
|
|
1850
1874
|
"path",
|
|
1851
1875
|
{
|
|
1852
1876
|
fill: "#29c27f",
|
|
1853
1877
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
1854
1878
|
}
|
|
1855
1879
|
),
|
|
1856
|
-
/* @__PURE__ */
|
|
1880
|
+
/* @__PURE__ */ jsx34(
|
|
1857
1881
|
"path",
|
|
1858
1882
|
{
|
|
1859
1883
|
fill: "#27663f",
|
|
1860
1884
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
1861
1885
|
}
|
|
1862
1886
|
),
|
|
1863
|
-
/* @__PURE__ */
|
|
1864
|
-
/* @__PURE__ */
|
|
1887
|
+
/* @__PURE__ */ jsx34("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
1888
|
+
/* @__PURE__ */ jsx34("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
1865
1889
|
] }),
|
|
1866
|
-
/* @__PURE__ */
|
|
1890
|
+
/* @__PURE__ */ jsx34(
|
|
1867
1891
|
"path",
|
|
1868
1892
|
{
|
|
1869
1893
|
fill: "#0c7238",
|
|
1870
1894
|
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"
|
|
1871
1895
|
}
|
|
1872
1896
|
),
|
|
1873
|
-
/* @__PURE__ */
|
|
1897
|
+
/* @__PURE__ */ jsx34(
|
|
1874
1898
|
"path",
|
|
1875
1899
|
{
|
|
1876
1900
|
fill: "#fff",
|
|
@@ -1880,7 +1904,7 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1880
1904
|
]
|
|
1881
1905
|
}
|
|
1882
1906
|
);
|
|
1883
|
-
var WordIcon = () => /* @__PURE__ */
|
|
1907
|
+
var WordIcon = () => /* @__PURE__ */ jsxs13(
|
|
1884
1908
|
"svg",
|
|
1885
1909
|
{
|
|
1886
1910
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1888,14 +1912,14 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1888
1912
|
className: "w-10 h-10",
|
|
1889
1913
|
baseProfile: "basic",
|
|
1890
1914
|
children: [
|
|
1891
|
-
/* @__PURE__ */
|
|
1915
|
+
/* @__PURE__ */ jsx34(
|
|
1892
1916
|
"path",
|
|
1893
1917
|
{
|
|
1894
1918
|
fill: "#283593",
|
|
1895
1919
|
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"
|
|
1896
1920
|
}
|
|
1897
1921
|
),
|
|
1898
|
-
/* @__PURE__ */
|
|
1922
|
+
/* @__PURE__ */ jsxs13(
|
|
1899
1923
|
"linearGradient",
|
|
1900
1924
|
{
|
|
1901
1925
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -1906,19 +1930,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1906
1930
|
gradientTransform: "translate(0 -339.89)",
|
|
1907
1931
|
gradientUnits: "userSpaceOnUse",
|
|
1908
1932
|
children: [
|
|
1909
|
-
/* @__PURE__ */
|
|
1910
|
-
/* @__PURE__ */
|
|
1933
|
+
/* @__PURE__ */ jsx34("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
1934
|
+
/* @__PURE__ */ jsx34("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
1911
1935
|
]
|
|
1912
1936
|
}
|
|
1913
1937
|
),
|
|
1914
|
-
/* @__PURE__ */
|
|
1938
|
+
/* @__PURE__ */ jsx34(
|
|
1915
1939
|
"path",
|
|
1916
1940
|
{
|
|
1917
1941
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
1918
1942
|
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"
|
|
1919
1943
|
}
|
|
1920
1944
|
),
|
|
1921
|
-
/* @__PURE__ */
|
|
1945
|
+
/* @__PURE__ */ jsx34(
|
|
1922
1946
|
"path",
|
|
1923
1947
|
{
|
|
1924
1948
|
fill: "#1e88e5",
|
|
@@ -1926,21 +1950,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1926
1950
|
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"
|
|
1927
1951
|
}
|
|
1928
1952
|
),
|
|
1929
|
-
/* @__PURE__ */
|
|
1953
|
+
/* @__PURE__ */ jsx34(
|
|
1930
1954
|
"path",
|
|
1931
1955
|
{
|
|
1932
1956
|
fill: "#00e5ff",
|
|
1933
1957
|
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"
|
|
1934
1958
|
}
|
|
1935
1959
|
),
|
|
1936
|
-
/* @__PURE__ */
|
|
1960
|
+
/* @__PURE__ */ jsx34(
|
|
1937
1961
|
"path",
|
|
1938
1962
|
{
|
|
1939
1963
|
fill: "#1565c0",
|
|
1940
1964
|
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"
|
|
1941
1965
|
}
|
|
1942
1966
|
),
|
|
1943
|
-
/* @__PURE__ */
|
|
1967
|
+
/* @__PURE__ */ jsx34(
|
|
1944
1968
|
"path",
|
|
1945
1969
|
{
|
|
1946
1970
|
fill: "#fff",
|
|
@@ -1950,42 +1974,42 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1950
1974
|
]
|
|
1951
1975
|
}
|
|
1952
1976
|
);
|
|
1953
|
-
var StandardIcon = () => /* @__PURE__ */
|
|
1977
|
+
var StandardIcon = () => /* @__PURE__ */ jsxs13(
|
|
1954
1978
|
"svg",
|
|
1955
1979
|
{
|
|
1956
1980
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1957
1981
|
viewBox: "0 0 48 48",
|
|
1958
1982
|
className: "w-10 h-10",
|
|
1959
1983
|
children: [
|
|
1960
|
-
/* @__PURE__ */
|
|
1961
|
-
/* @__PURE__ */
|
|
1984
|
+
/* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
1985
|
+
/* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
1962
1986
|
]
|
|
1963
1987
|
}
|
|
1964
1988
|
);
|
|
1965
|
-
var PowerPointIcon = () => /* @__PURE__ */
|
|
1989
|
+
var PowerPointIcon = () => /* @__PURE__ */ jsxs13(
|
|
1966
1990
|
"svg",
|
|
1967
1991
|
{
|
|
1968
1992
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1969
1993
|
viewBox: "0 0 48 48",
|
|
1970
1994
|
className: "w-10 h-10",
|
|
1971
1995
|
children: [
|
|
1972
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ jsx34(
|
|
1973
1997
|
"path",
|
|
1974
1998
|
{
|
|
1975
1999
|
fill: "#dc4c2c",
|
|
1976
2000
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
1977
2001
|
}
|
|
1978
2002
|
),
|
|
1979
|
-
/* @__PURE__ */
|
|
1980
|
-
/* @__PURE__ */
|
|
1981
|
-
/* @__PURE__ */
|
|
2003
|
+
/* @__PURE__ */ jsx34("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
2004
|
+
/* @__PURE__ */ jsx34("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
2005
|
+
/* @__PURE__ */ jsx34(
|
|
1982
2006
|
"path",
|
|
1983
2007
|
{
|
|
1984
2008
|
fill: "#9b341f",
|
|
1985
2009
|
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"
|
|
1986
2010
|
}
|
|
1987
2011
|
),
|
|
1988
|
-
/* @__PURE__ */
|
|
2012
|
+
/* @__PURE__ */ jsx34(
|
|
1989
2013
|
"path",
|
|
1990
2014
|
{
|
|
1991
2015
|
fill: "#fff",
|
|
@@ -1995,16 +2019,16 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1995
2019
|
]
|
|
1996
2020
|
}
|
|
1997
2021
|
);
|
|
1998
|
-
var TextIcon = () => /* @__PURE__ */
|
|
2022
|
+
var TextIcon = () => /* @__PURE__ */ jsxs13(
|
|
1999
2023
|
"svg",
|
|
2000
2024
|
{
|
|
2001
2025
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2002
2026
|
viewBox: "0 0 48 48",
|
|
2003
2027
|
className: "w-10 h-10",
|
|
2004
2028
|
children: [
|
|
2005
|
-
/* @__PURE__ */
|
|
2006
|
-
/* @__PURE__ */
|
|
2007
|
-
/* @__PURE__ */
|
|
2029
|
+
/* @__PURE__ */ jsx34("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
2030
|
+
/* @__PURE__ */ jsx34("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
2031
|
+
/* @__PURE__ */ jsx34(
|
|
2008
2032
|
"path",
|
|
2009
2033
|
{
|
|
2010
2034
|
fill: "#1976D2",
|
|
@@ -2014,7 +2038,7 @@ var TextIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2014
2038
|
]
|
|
2015
2039
|
}
|
|
2016
2040
|
);
|
|
2017
|
-
var ArchiveIcon = () => /* @__PURE__ */
|
|
2041
|
+
var ArchiveIcon = () => /* @__PURE__ */ jsxs13(
|
|
2018
2042
|
"svg",
|
|
2019
2043
|
{
|
|
2020
2044
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2024,14 +2048,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2024
2048
|
version: "1.0",
|
|
2025
2049
|
className: "w-10 h-10",
|
|
2026
2050
|
children: [
|
|
2027
|
-
/* @__PURE__ */
|
|
2051
|
+
/* @__PURE__ */ jsx34("defs", { children: /* @__PURE__ */ jsx34("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx34(
|
|
2028
2052
|
"path",
|
|
2029
2053
|
{
|
|
2030
2054
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
2031
2055
|
"clip-rule": "nonzero"
|
|
2032
2056
|
}
|
|
2033
2057
|
) }) }),
|
|
2034
|
-
/* @__PURE__ */
|
|
2058
|
+
/* @__PURE__ */ jsx34("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx34(
|
|
2035
2059
|
"path",
|
|
2036
2060
|
{
|
|
2037
2061
|
fill: "#ff9100",
|
|
@@ -2040,7 +2064,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2040
2064
|
"fill-rule": "nonzero"
|
|
2041
2065
|
}
|
|
2042
2066
|
) }),
|
|
2043
|
-
/* @__PURE__ */
|
|
2067
|
+
/* @__PURE__ */ jsx34(
|
|
2044
2068
|
"path",
|
|
2045
2069
|
{
|
|
2046
2070
|
fill: "#fbe9e7",
|
|
@@ -2049,7 +2073,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2049
2073
|
"fill-rule": "nonzero"
|
|
2050
2074
|
}
|
|
2051
2075
|
),
|
|
2052
|
-
/* @__PURE__ */
|
|
2076
|
+
/* @__PURE__ */ jsx34(
|
|
2053
2077
|
"path",
|
|
2054
2078
|
{
|
|
2055
2079
|
fill: "#ffe0b2",
|
|
@@ -2058,7 +2082,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2058
2082
|
"fill-rule": "nonzero"
|
|
2059
2083
|
}
|
|
2060
2084
|
),
|
|
2061
|
-
/* @__PURE__ */
|
|
2085
|
+
/* @__PURE__ */ jsx34(
|
|
2062
2086
|
"path",
|
|
2063
2087
|
{
|
|
2064
2088
|
fill: "#ffe0b2",
|
|
@@ -2067,7 +2091,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
2067
2091
|
"fill-rule": "nonzero"
|
|
2068
2092
|
}
|
|
2069
2093
|
),
|
|
2070
|
-
/* @__PURE__ */
|
|
2094
|
+
/* @__PURE__ */ jsx34(
|
|
2071
2095
|
"path",
|
|
2072
2096
|
{
|
|
2073
2097
|
fill: "#ffe0b2",
|
|
@@ -2142,8 +2166,8 @@ var DocumentNode = (props) => {
|
|
|
2142
2166
|
}
|
|
2143
2167
|
}
|
|
2144
2168
|
if (documents.length === 0) {
|
|
2145
|
-
return /* @__PURE__ */
|
|
2146
|
-
/* @__PURE__ */
|
|
2169
|
+
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: [
|
|
2170
|
+
/* @__PURE__ */ jsx34("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx34(
|
|
2147
2171
|
"svg",
|
|
2148
2172
|
{
|
|
2149
2173
|
className: "w-5 h-5",
|
|
@@ -2151,7 +2175,7 @@ var DocumentNode = (props) => {
|
|
|
2151
2175
|
stroke: "currentColor",
|
|
2152
2176
|
viewBox: "0 0 24 24",
|
|
2153
2177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2154
|
-
children: /* @__PURE__ */
|
|
2178
|
+
children: /* @__PURE__ */ jsx34(
|
|
2155
2179
|
"path",
|
|
2156
2180
|
{
|
|
2157
2181
|
strokeLinecap: "round",
|
|
@@ -2162,11 +2186,11 @@ var DocumentNode = (props) => {
|
|
|
2162
2186
|
)
|
|
2163
2187
|
}
|
|
2164
2188
|
) }),
|
|
2165
|
-
/* @__PURE__ */
|
|
2166
|
-
/* @__PURE__ */
|
|
2189
|
+
/* @__PURE__ */ jsx34("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2190
|
+
/* @__PURE__ */ jsx34("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2167
2191
|
] }) });
|
|
2168
2192
|
}
|
|
2169
|
-
return /* @__PURE__ */
|
|
2193
|
+
return /* @__PURE__ */ jsx34("div", { className: "", children: documents.map((doc, index) => {
|
|
2170
2194
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2171
2195
|
props.assetBaseUrl,
|
|
2172
2196
|
doc.assetUrl
|
|
@@ -2184,16 +2208,16 @@ var DocumentNode = (props) => {
|
|
|
2184
2208
|
}
|
|
2185
2209
|
}
|
|
2186
2210
|
const { Icon, extLabel } = getFileDetails(documentUrl);
|
|
2187
|
-
return /* @__PURE__ */
|
|
2211
|
+
return /* @__PURE__ */ jsxs13(
|
|
2188
2212
|
"div",
|
|
2189
2213
|
{
|
|
2190
2214
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2191
2215
|
children: [
|
|
2192
|
-
/* @__PURE__ */
|
|
2193
|
-
/* @__PURE__ */
|
|
2194
|
-
/* @__PURE__ */
|
|
2216
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex items-center space-x-4", children: [
|
|
2217
|
+
/* @__PURE__ */ jsx34("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx34(Icon, {}) }),
|
|
2218
|
+
/* @__PURE__ */ jsx34("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx34("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2195
2219
|
] }),
|
|
2196
|
-
/* @__PURE__ */
|
|
2220
|
+
/* @__PURE__ */ jsxs13(
|
|
2197
2221
|
"a",
|
|
2198
2222
|
{
|
|
2199
2223
|
href: documentUrl,
|
|
@@ -2201,7 +2225,7 @@ var DocumentNode = (props) => {
|
|
|
2201
2225
|
rel: "noopener noreferrer",
|
|
2202
2226
|
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",
|
|
2203
2227
|
children: [
|
|
2204
|
-
/* @__PURE__ */
|
|
2228
|
+
/* @__PURE__ */ jsxs13(
|
|
2205
2229
|
"svg",
|
|
2206
2230
|
{
|
|
2207
2231
|
className: "w-4 h-4 mr-2",
|
|
@@ -2209,7 +2233,7 @@ var DocumentNode = (props) => {
|
|
|
2209
2233
|
stroke: "currentColor",
|
|
2210
2234
|
viewBox: "0 0 24 24",
|
|
2211
2235
|
children: [
|
|
2212
|
-
/* @__PURE__ */
|
|
2236
|
+
/* @__PURE__ */ jsx34(
|
|
2213
2237
|
"path",
|
|
2214
2238
|
{
|
|
2215
2239
|
strokeLinecap: "round",
|
|
@@ -2218,7 +2242,7 @@ var DocumentNode = (props) => {
|
|
|
2218
2242
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2219
2243
|
}
|
|
2220
2244
|
),
|
|
2221
|
-
/* @__PURE__ */
|
|
2245
|
+
/* @__PURE__ */ jsx34(
|
|
2222
2246
|
"path",
|
|
2223
2247
|
{
|
|
2224
2248
|
strokeLinecap: "round",
|
|
@@ -2244,13 +2268,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
2244
2268
|
|
|
2245
2269
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
2246
2270
|
import dynamic10 from "next/dynamic";
|
|
2247
|
-
import { jsx as
|
|
2271
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2248
2272
|
var IframeClient2 = dynamic10(() => import("./IframeClient-XEWQLGUQ.mjs"), {
|
|
2249
2273
|
ssr: false
|
|
2250
2274
|
});
|
|
2251
2275
|
var GoogleMapNode = (props) => {
|
|
2252
2276
|
let src = props.node.embedUrl;
|
|
2253
|
-
return /* @__PURE__ */
|
|
2277
|
+
return /* @__PURE__ */ jsx35("div", { className: "google-map-container", children: src && /* @__PURE__ */ jsx35(
|
|
2254
2278
|
IframeClient2,
|
|
2255
2279
|
{
|
|
2256
2280
|
src,
|
|
@@ -2262,7 +2286,7 @@ var GoogleMapNode = (props) => {
|
|
|
2262
2286
|
var GoogleMapNode_default = GoogleMapNode;
|
|
2263
2287
|
|
|
2264
2288
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2265
|
-
import { jsx as
|
|
2289
|
+
import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2266
2290
|
var Pagination = dynamic11(() => import("./Pagination-QBPYDD66.mjs"), { ssr: true });
|
|
2267
2291
|
var DataBindingControls = dynamic11(() => import("./DataBindingControls-WJAY5HFO.mjs"), {
|
|
2268
2292
|
ssr: true
|
|
@@ -2521,7 +2545,7 @@ var DivContainer = async (props) => {
|
|
|
2521
2545
|
response = await serviceClient.get(endpoint);
|
|
2522
2546
|
result = response?.result;
|
|
2523
2547
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
2524
|
-
return /* @__PURE__ */
|
|
2548
|
+
return /* @__PURE__ */ jsx36(NoDataFound_default, {});
|
|
2525
2549
|
}
|
|
2526
2550
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
2527
2551
|
childCollectionData = getNestedValue6(
|
|
@@ -2541,7 +2565,7 @@ var DivContainer = async (props) => {
|
|
|
2541
2565
|
}
|
|
2542
2566
|
const SelectedNode = NodeTypes2[node.type];
|
|
2543
2567
|
if (!SelectedNode) return null;
|
|
2544
|
-
return /* @__PURE__ */
|
|
2568
|
+
return /* @__PURE__ */ jsx36(React23.Fragment, { children: /* @__PURE__ */ jsx36(
|
|
2545
2569
|
SelectedNode,
|
|
2546
2570
|
{
|
|
2547
2571
|
node,
|
|
@@ -2678,7 +2702,7 @@ var DivContainer = async (props) => {
|
|
|
2678
2702
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
2679
2703
|
);
|
|
2680
2704
|
const WrapperComponent = Wrapper;
|
|
2681
|
-
const renderedContainer = /* @__PURE__ */
|
|
2705
|
+
const renderedContainer = /* @__PURE__ */ jsx36(
|
|
2682
2706
|
WrapperComponent,
|
|
2683
2707
|
{
|
|
2684
2708
|
id: guid,
|
|
@@ -2692,11 +2716,11 @@ var DivContainer = async (props) => {
|
|
|
2692
2716
|
item,
|
|
2693
2717
|
idx,
|
|
2694
2718
|
props.href ? void 0 : item?.links?.view
|
|
2695
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2719
|
+
)?.map((child, i) => /* @__PURE__ */ jsx36(React23.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
2696
2720
|
)
|
|
2697
2721
|
}
|
|
2698
2722
|
);
|
|
2699
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */
|
|
2723
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ jsx36(
|
|
2700
2724
|
Pagination,
|
|
2701
2725
|
{
|
|
2702
2726
|
path: props.path,
|
|
@@ -2704,15 +2728,15 @@ var DivContainer = async (props) => {
|
|
|
2704
2728
|
dataset: response
|
|
2705
2729
|
}
|
|
2706
2730
|
) : null;
|
|
2707
|
-
return /* @__PURE__ */
|
|
2708
|
-
/* @__PURE__ */
|
|
2731
|
+
return /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2732
|
+
/* @__PURE__ */ jsx36(
|
|
2709
2733
|
"style",
|
|
2710
2734
|
{
|
|
2711
2735
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2712
2736
|
}
|
|
2713
2737
|
),
|
|
2714
|
-
showDataBindingControls ? /* @__PURE__ */
|
|
2715
|
-
/* @__PURE__ */
|
|
2738
|
+
showDataBindingControls ? /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2739
|
+
/* @__PURE__ */ jsx36(
|
|
2716
2740
|
DataBindingControls,
|
|
2717
2741
|
{
|
|
2718
2742
|
mode: "toolbar",
|
|
@@ -2724,18 +2748,18 @@ var DivContainer = async (props) => {
|
|
|
2724
2748
|
showSearchBar: dataBindingProperties?.showSearchBar
|
|
2725
2749
|
}
|
|
2726
2750
|
),
|
|
2727
|
-
/* @__PURE__ */
|
|
2751
|
+
/* @__PURE__ */ jsxs14(
|
|
2728
2752
|
"div",
|
|
2729
2753
|
{
|
|
2730
2754
|
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
2731
2755
|
children: [
|
|
2732
|
-
/* @__PURE__ */
|
|
2756
|
+
/* @__PURE__ */ jsxs14("div", { className: "min-w-0", children: [
|
|
2733
2757
|
renderedContainer,
|
|
2734
2758
|
paginationControl
|
|
2735
2759
|
] }),
|
|
2736
|
-
dataBindingProperties?.showFacets && /* @__PURE__ */
|
|
2737
|
-
/* @__PURE__ */
|
|
2738
|
-
/* @__PURE__ */
|
|
2760
|
+
dataBindingProperties?.showFacets && /* @__PURE__ */ jsxs14("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
2761
|
+
/* @__PURE__ */ jsx36("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
2762
|
+
/* @__PURE__ */ jsx36(
|
|
2739
2763
|
DataBindingControls,
|
|
2740
2764
|
{
|
|
2741
2765
|
mode: "facets",
|
|
@@ -2749,16 +2773,16 @@ var DivContainer = async (props) => {
|
|
|
2749
2773
|
]
|
|
2750
2774
|
}
|
|
2751
2775
|
)
|
|
2752
|
-
] }) : /* @__PURE__ */
|
|
2776
|
+
] }) : /* @__PURE__ */ jsxs14(React23.Fragment, { children: [
|
|
2753
2777
|
renderedContainer,
|
|
2754
|
-
paginationControl && /* @__PURE__ */
|
|
2778
|
+
paginationControl && /* @__PURE__ */ jsx36("div", { children: paginationControl })
|
|
2755
2779
|
] })
|
|
2756
2780
|
] });
|
|
2757
2781
|
};
|
|
2758
2782
|
var DivContainer_default = DivContainer;
|
|
2759
2783
|
|
|
2760
2784
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2761
|
-
import { jsx as
|
|
2785
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2762
2786
|
var NodeTypes = {
|
|
2763
2787
|
["paragraph"]: ParagraphNode_default,
|
|
2764
2788
|
["heading"]: HeadingNode_default,
|
|
@@ -2796,14 +2820,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2796
2820
|
}
|
|
2797
2821
|
return true;
|
|
2798
2822
|
};
|
|
2799
|
-
return /* @__PURE__ */
|
|
2823
|
+
return /* @__PURE__ */ jsx37(React24.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2800
2824
|
{
|
|
2801
2825
|
}
|
|
2802
2826
|
const SelectedNode = NodeTypes[node.type];
|
|
2803
2827
|
if (!shouldRenderNode(node)) {
|
|
2804
2828
|
return null;
|
|
2805
2829
|
}
|
|
2806
|
-
return /* @__PURE__ */
|
|
2830
|
+
return /* @__PURE__ */ jsx37(React24.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx37(React24.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
2807
2831
|
SelectedNode,
|
|
2808
2832
|
{
|
|
2809
2833
|
node,
|
|
@@ -2819,7 +2843,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2819
2843
|
device: props.device,
|
|
2820
2844
|
widgetRenderer: props.widgetRenderer
|
|
2821
2845
|
}
|
|
2822
|
-
) }) : /* @__PURE__ */
|
|
2846
|
+
) }) : /* @__PURE__ */ jsx37(React24.Fragment, { children: /* @__PURE__ */ jsx37(
|
|
2823
2847
|
SelectedNode,
|
|
2824
2848
|
{
|
|
2825
2849
|
node,
|