@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260707141031 → 0.8.1-dev.20260708060703
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/{InputControlClient-NJV6B65M.mjs → InputControlClient-646PQPKQ.mjs} +79 -6
- package/dist/{InputControlClient-TW664WIJ.mjs → InputControlClient-O4HBEUP4.mjs} +79 -6
- package/dist/{Pagination-FSYLYKUA.mjs → Pagination-4K7GMWUE.mjs} +2 -2
- package/dist/Pagination-OQT7Q2XO.mjs +183 -0
- package/dist/chunk-FI2KJBK2.mjs +110 -0
- package/dist/{chunk-47HD7QP7.mjs → chunk-FYGNBMII.mjs} +1 -1
- package/dist/chunk-OGGIS4AN.mjs +201 -0
- package/dist/{chunk-CM7LUGCH.mjs → chunk-UWFXFVUU.mjs} +2 -1
- package/dist/index.d.mts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +902 -785
- package/dist/index.mjs +368 -332
- package/dist/server.d.mts +6 -0
- package/dist/server.d.ts +6 -0
- package/dist/server.js +330 -294
- package/dist/server.mjs +187 -151
- package/package.json +1 -1
package/dist/server.mjs
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
import "./chunk-56HSDML5.mjs";
|
|
9
9
|
|
|
10
10
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
11
|
-
import
|
|
11
|
+
import React23 from "react";
|
|
12
12
|
|
|
13
13
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
14
|
-
import
|
|
14
|
+
import React15 from "react";
|
|
15
15
|
|
|
16
16
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
17
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -472,27 +472,33 @@ var EquationNode = ({ node }) => {
|
|
|
472
472
|
var EquationNode_default = EquationNode;
|
|
473
473
|
|
|
474
474
|
// src/components/controls/view/ViewControl.tsx
|
|
475
|
-
import
|
|
475
|
+
import React14 from "react";
|
|
476
476
|
|
|
477
477
|
// src/components/controls/view/ViewControlTypes.tsx
|
|
478
478
|
var ViewControlTypes = {
|
|
479
479
|
lineText: "lineText",
|
|
480
|
+
emailText: "email",
|
|
480
481
|
asset: "asset",
|
|
481
482
|
multilineTextBullets: "multilineTextBullets",
|
|
482
483
|
boolean: "boolean",
|
|
484
|
+
checkboxInput: "boolean",
|
|
483
485
|
money: "money",
|
|
484
486
|
date: "date",
|
|
485
487
|
time: "time",
|
|
486
488
|
datetime: "datetime",
|
|
487
489
|
number: "number",
|
|
488
490
|
multilineText: "multilineText",
|
|
491
|
+
multilinetext: "multilinetext",
|
|
489
492
|
moneyText: "moneyText",
|
|
490
493
|
percentage: "percentage",
|
|
494
|
+
status: "status",
|
|
491
495
|
statusBg: "statusBg",
|
|
492
496
|
progressIndicator: "progressIndicator",
|
|
493
497
|
timeUntilStarts: "timeUntilStarts",
|
|
494
498
|
timeUntilStartsStyled: "timeUntilStartsStyled",
|
|
495
|
-
aiGeneratedSummary: "aiGeneratedSummary"
|
|
499
|
+
aiGeneratedSummary: "aiGeneratedSummary",
|
|
500
|
+
booleanView: "booleanView",
|
|
501
|
+
text: "text"
|
|
496
502
|
};
|
|
497
503
|
var ViewControlTypes_default = ViewControlTypes;
|
|
498
504
|
|
|
@@ -595,8 +601,32 @@ var LineText = (props) => {
|
|
|
595
601
|
};
|
|
596
602
|
var LineTextView_default = LineText;
|
|
597
603
|
|
|
598
|
-
// src/components/controls/view/
|
|
604
|
+
// src/components/controls/view/EmailTextView.tsx
|
|
599
605
|
import React6 from "react";
|
|
606
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
607
|
+
var EmailText = (props) => {
|
|
608
|
+
return /* @__PURE__ */ jsx12(React6.Fragment, { children: props.value });
|
|
609
|
+
};
|
|
610
|
+
var EmailTextView_default = EmailText;
|
|
611
|
+
|
|
612
|
+
// src/components/controls/view/StatusBgView.tsx
|
|
613
|
+
import React7 from "react";
|
|
614
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
615
|
+
var StatusBg = (props) => {
|
|
616
|
+
return /* @__PURE__ */ jsx13(React7.Fragment, { children: props.value && props.value != "" && /* @__PURE__ */ jsx13("span", { className: "py-0.5 px-1.5 text-xs capitalize text-white font-semibold rounded bg-status bg-status-" + props.value, children: props.value }) });
|
|
617
|
+
};
|
|
618
|
+
var StatusBgView_default = StatusBg;
|
|
619
|
+
|
|
620
|
+
// src/components/controls/view/StatusView.tsx
|
|
621
|
+
import React8 from "react";
|
|
622
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
623
|
+
var Status = (props) => {
|
|
624
|
+
return /* @__PURE__ */ jsx14(React8.Fragment, { children: /* @__PURE__ */ jsx14("span", { className: "capitalize font-semibold rounded text-status text-status-" + props.value, children: props.value }) });
|
|
625
|
+
};
|
|
626
|
+
var StatusView_default = Status;
|
|
627
|
+
|
|
628
|
+
// src/components/controls/view/MoneyView.tsx
|
|
629
|
+
import React9 from "react";
|
|
600
630
|
|
|
601
631
|
// src/components/utilities/CurrencyUtility.tsx
|
|
602
632
|
var CurrencyUtility = class {
|
|
@@ -617,40 +647,40 @@ var CurrencyUtility = class {
|
|
|
617
647
|
var CurrencyUtility_default = CurrencyUtility;
|
|
618
648
|
|
|
619
649
|
// src/components/controls/view/MoneyView.tsx
|
|
620
|
-
import { jsx as
|
|
650
|
+
import { jsx as jsx15, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
621
651
|
var Money = (props) => {
|
|
622
652
|
const parsedNumber = parseFloat(props.value);
|
|
623
|
-
return /* @__PURE__ */
|
|
624
|
-
/* @__PURE__ */
|
|
653
|
+
return /* @__PURE__ */ jsx15(React9.Fragment, { children: !Number.isNaN(parsedNumber) && /* @__PURE__ */ jsxs3(React9.Fragment, { children: [
|
|
654
|
+
/* @__PURE__ */ jsx15("span", { className: "mr-0.5", children: CurrencyUtility_default.getCurrencySymbol(props.unit) }),
|
|
625
655
|
parsedNumber.toLocaleString()
|
|
626
656
|
] }) });
|
|
627
657
|
};
|
|
628
658
|
var MoneyView_default = Money;
|
|
629
659
|
|
|
630
660
|
// src/components/controls/view/MultilineTextBulletsView.tsx
|
|
631
|
-
import
|
|
632
|
-
import { jsx as
|
|
661
|
+
import React10 from "react";
|
|
662
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
633
663
|
var MultilineTextBullets = (props) => {
|
|
634
664
|
const lines = props.value?.split("\\n");
|
|
635
|
-
return /* @__PURE__ */
|
|
636
|
-
return /* @__PURE__ */
|
|
665
|
+
return /* @__PURE__ */ jsx16(React10.Fragment, { children: /* @__PURE__ */ jsx16("ul", { className: "list-disc", children: lines && lines.map((line, index) => {
|
|
666
|
+
return /* @__PURE__ */ jsx16("li", { children: line }, index);
|
|
637
667
|
}) }) });
|
|
638
668
|
};
|
|
639
669
|
var MultilineTextBulletsView_default = MultilineTextBullets;
|
|
640
670
|
|
|
641
671
|
// src/components/controls/view/MultilineTextView.tsx
|
|
642
|
-
import
|
|
643
|
-
import { jsx as
|
|
672
|
+
import React11 from "react";
|
|
673
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
644
674
|
var MultilineText = (props) => {
|
|
645
|
-
return /* @__PURE__ */
|
|
675
|
+
return /* @__PURE__ */ jsx17(React11.Fragment, { children: /* @__PURE__ */ jsx17("span", { className: "whitespace-pre-line", children: props.value }) });
|
|
646
676
|
};
|
|
647
677
|
var MultilineTextView_default = MultilineText;
|
|
648
678
|
|
|
649
679
|
// src/components/controls/view/PercentageView.tsx
|
|
650
|
-
import
|
|
680
|
+
import React12 from "react";
|
|
651
681
|
import { jsxs as jsxs4 } from "react/jsx-runtime";
|
|
652
682
|
var PercentageView = (props) => {
|
|
653
|
-
return /* @__PURE__ */ jsxs4(
|
|
683
|
+
return /* @__PURE__ */ jsxs4(React12.Fragment, { children: [
|
|
654
684
|
props.value,
|
|
655
685
|
"%"
|
|
656
686
|
] });
|
|
@@ -658,16 +688,16 @@ var PercentageView = (props) => {
|
|
|
658
688
|
var PercentageView_default = PercentageView;
|
|
659
689
|
|
|
660
690
|
// src/components/controls/view/ProgressIndicator.tsx
|
|
661
|
-
import
|
|
662
|
-
import { jsx as
|
|
691
|
+
import React13 from "react";
|
|
692
|
+
import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
663
693
|
var ProgressIndicator = (props) => {
|
|
664
694
|
const percentage = 100;
|
|
665
695
|
const circumference = Math.PI * 56;
|
|
666
696
|
const offset = circumference * (1 - percentage / 100);
|
|
667
|
-
return /* @__PURE__ */
|
|
668
|
-
/* @__PURE__ */
|
|
669
|
-
/* @__PURE__ */
|
|
670
|
-
/* @__PURE__ */
|
|
697
|
+
return /* @__PURE__ */ jsx18(React13.Fragment, { children: /* @__PURE__ */ jsxs5("div", { className: "relative w-48 h-48", children: [
|
|
698
|
+
/* @__PURE__ */ jsx18("div", { className: "absolute top-0 left-0 w-full h-full rounded-full border border-gray-200" }),
|
|
699
|
+
/* @__PURE__ */ jsx18("div", { className: "absolute top-0 left-0 w-full h-full rounded-full overflow-hidden", children: /* @__PURE__ */ jsx18("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)` } }) }),
|
|
700
|
+
/* @__PURE__ */ jsx18("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__ */ jsxs5("span", { children: [
|
|
671
701
|
percentage,
|
|
672
702
|
"%"
|
|
673
703
|
] }) })
|
|
@@ -676,18 +706,18 @@ var ProgressIndicator = (props) => {
|
|
|
676
706
|
var ProgressIndicator_default = ProgressIndicator;
|
|
677
707
|
|
|
678
708
|
// src/components/controls/view/AiGeneratedSummary.tsx
|
|
679
|
-
import { jsx as
|
|
709
|
+
import { jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
680
710
|
var AiGeneratedSummary = (props) => {
|
|
681
711
|
const lines = props.value?.split("\n").filter((line) => line.trim() !== "") || [];
|
|
682
712
|
return /* @__PURE__ */ jsxs6("details", { className: "group rounded-xl border-2 bg-white shadow-sm border-p overflow-hidden", children: [
|
|
683
|
-
/* @__PURE__ */
|
|
684
|
-
/* @__PURE__ */
|
|
713
|
+
/* @__PURE__ */ jsx19("summary", { className: "flex items-start justify-between cursor-pointer list-none", children: /* @__PURE__ */ jsxs6("div", { className: "flex items-start gap-3 ", children: [
|
|
714
|
+
/* @__PURE__ */ jsx19("div", { className: "bg-primary-base bg-transparent rounded mt-1 p-1", children: /* @__PURE__ */ jsx19("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__ */ jsx19("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" }) }) }),
|
|
685
715
|
/* @__PURE__ */ jsxs6("div", { children: [
|
|
686
|
-
/* @__PURE__ */
|
|
687
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ jsx19("h3", { className: "text-lg font-semibold ", children: "Quick Read" }),
|
|
717
|
+
/* @__PURE__ */ jsx19("p", { className: "text-sm text-gray-500 mb-0", children: "Summary is AI-generated, author-reviewed" })
|
|
688
718
|
] })
|
|
689
719
|
] }) }),
|
|
690
|
-
/* @__PURE__ */
|
|
720
|
+
/* @__PURE__ */ jsx19("div", { children: /* @__PURE__ */ jsx19("ul", { className: "list-disc pl-6 space-y-3 text-gray-700 ps-4 pl-4", children: lines.map((line, index) => /* @__PURE__ */ jsx19("li", { className: "m-0", children: line }, index)) }) })
|
|
691
721
|
] });
|
|
692
722
|
};
|
|
693
723
|
var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
@@ -700,13 +730,15 @@ var DateTimeView = dynamic5(() => import("./DateTimeViewClient-22GW4AD7.mjs"), {
|
|
|
700
730
|
var DateTimeVew_default = DateTimeView;
|
|
701
731
|
|
|
702
732
|
// src/components/controls/view/ViewControl.tsx
|
|
703
|
-
import { jsx as
|
|
733
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
704
734
|
var ViewControl = (props) => {
|
|
705
735
|
const ControlComponents = {
|
|
706
736
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
737
|
+
[ViewControlTypes_default.emailText]: EmailTextView_default,
|
|
707
738
|
[ViewControlTypes_default.asset]: Asset_default,
|
|
708
739
|
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
709
740
|
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
741
|
+
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
710
742
|
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
711
743
|
[ViewControlTypes_default.money]: MoneyView_default,
|
|
712
744
|
[ViewControlTypes_default.date]: DateView_default,
|
|
@@ -714,21 +746,25 @@ var ViewControl = (props) => {
|
|
|
714
746
|
[ViewControlTypes_default.datetime]: DateTimeVew_default,
|
|
715
747
|
[ViewControlTypes_default.number]: NumberView_default,
|
|
716
748
|
[ViewControlTypes_default.multilineText]: MultilineTextView_default,
|
|
749
|
+
[ViewControlTypes_default.multilinetext]: MultilineTextView_default,
|
|
717
750
|
[ViewControlTypes_default.moneyText]: MoneyView_default,
|
|
718
751
|
[ViewControlTypes_default.percentage]: PercentageView_default,
|
|
719
|
-
|
|
752
|
+
[ViewControlTypes_default.status]: StatusView_default,
|
|
753
|
+
[ViewControlTypes_default.statusBg]: StatusBgView_default,
|
|
720
754
|
[ViewControlTypes_default.progressIndicator]: ProgressIndicator_default,
|
|
721
755
|
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
722
756
|
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
723
|
-
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default
|
|
757
|
+
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
758
|
+
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
759
|
+
[ViewControlTypes_default.text]: LineTextView_default
|
|
724
760
|
};
|
|
725
761
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
726
|
-
return /* @__PURE__ */
|
|
762
|
+
return /* @__PURE__ */ jsx20(React14.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ jsx20(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
727
763
|
};
|
|
728
764
|
var ViewControl_default = ViewControl;
|
|
729
765
|
|
|
730
766
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
731
|
-
import { jsx as
|
|
767
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
732
768
|
function getNestedProperty(obj, path) {
|
|
733
769
|
if (!obj || !path) return null;
|
|
734
770
|
if (path.includes(".")) {
|
|
@@ -741,7 +777,7 @@ function getNestedProperty(obj, path) {
|
|
|
741
777
|
}
|
|
742
778
|
const value = obj[path];
|
|
743
779
|
if (Array.isArray(value)) {
|
|
744
|
-
return value.map((item, index) => /* @__PURE__ */
|
|
780
|
+
return value.map((item, index) => /* @__PURE__ */ jsx21("div", { children: String(item) }, index));
|
|
745
781
|
}
|
|
746
782
|
return value;
|
|
747
783
|
}
|
|
@@ -802,7 +838,7 @@ var DatafieldNode = (props) => {
|
|
|
802
838
|
const dataType = props.node.dataType;
|
|
803
839
|
if (isEmptyValue) return null;
|
|
804
840
|
if (dataType === "rawContent") {
|
|
805
|
-
return /* @__PURE__ */
|
|
841
|
+
return /* @__PURE__ */ jsx21(
|
|
806
842
|
PageBodyRenderer_default,
|
|
807
843
|
{
|
|
808
844
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -818,12 +854,12 @@ var DatafieldNode = (props) => {
|
|
|
818
854
|
}
|
|
819
855
|
);
|
|
820
856
|
}
|
|
821
|
-
return /* @__PURE__ */
|
|
857
|
+
return /* @__PURE__ */ jsx21(
|
|
822
858
|
"span",
|
|
823
859
|
{
|
|
824
860
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
825
861
|
style: styles,
|
|
826
|
-
children: /* @__PURE__ */
|
|
862
|
+
children: /* @__PURE__ */ jsx21(
|
|
827
863
|
ViewControl_default,
|
|
828
864
|
{
|
|
829
865
|
controlType: dataType,
|
|
@@ -836,7 +872,7 @@ var DatafieldNode = (props) => {
|
|
|
836
872
|
var DatafieldNode_default = DatafieldNode;
|
|
837
873
|
|
|
838
874
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
839
|
-
import { Fragment as Fragment2, jsx as
|
|
875
|
+
import { Fragment as Fragment2, jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
840
876
|
var ParagraphNode = (props) => {
|
|
841
877
|
const NodeTypes2 = {
|
|
842
878
|
["text"]: TextNode_default,
|
|
@@ -856,9 +892,9 @@ var ParagraphNode = (props) => {
|
|
|
856
892
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
857
893
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
858
894
|
if (isInlineOnlyParent) {
|
|
859
|
-
return /* @__PURE__ */
|
|
895
|
+
return /* @__PURE__ */ jsx22(Fragment2, { children: hasChildren && props.node.children.map((node, index) => {
|
|
860
896
|
const SelectedNode = NodeTypes2[node.type];
|
|
861
|
-
return /* @__PURE__ */
|
|
897
|
+
return /* @__PURE__ */ jsx22(React15.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx22(
|
|
862
898
|
SelectedNode,
|
|
863
899
|
{
|
|
864
900
|
node,
|
|
@@ -873,7 +909,7 @@ var ParagraphNode = (props) => {
|
|
|
873
909
|
return /* @__PURE__ */ jsxs7("div", { className: " " + formatClasses, children: [
|
|
874
910
|
hasChildren && props.node.children.map((node, index) => {
|
|
875
911
|
const SelectedNode = NodeTypes2[node.type];
|
|
876
|
-
return /* @__PURE__ */
|
|
912
|
+
return /* @__PURE__ */ jsx22(React15.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx22(
|
|
877
913
|
SelectedNode,
|
|
878
914
|
{
|
|
879
915
|
node,
|
|
@@ -884,14 +920,14 @@ var ParagraphNode = (props) => {
|
|
|
884
920
|
}
|
|
885
921
|
) }, index);
|
|
886
922
|
}),
|
|
887
|
-
!hasChildren && /* @__PURE__ */
|
|
923
|
+
!hasChildren && /* @__PURE__ */ jsx22("div", { className: "py-1.5 lg:py-2" })
|
|
888
924
|
] });
|
|
889
925
|
};
|
|
890
926
|
var ParagraphNode_default = ParagraphNode;
|
|
891
927
|
|
|
892
928
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
893
|
-
import
|
|
894
|
-
import { Fragment as Fragment3, jsx as
|
|
929
|
+
import React16 from "react";
|
|
930
|
+
import { Fragment as Fragment3, jsx as jsx23 } from "react/jsx-runtime";
|
|
895
931
|
var HeadingNode = (props) => {
|
|
896
932
|
const NodeTypes2 = {
|
|
897
933
|
["text"]: TextNode_default,
|
|
@@ -907,23 +943,23 @@ var HeadingNode = (props) => {
|
|
|
907
943
|
{
|
|
908
944
|
}
|
|
909
945
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
910
|
-
return /* @__PURE__ */
|
|
946
|
+
return /* @__PURE__ */ jsx23(Fragment3, { children: React16.createElement(
|
|
911
947
|
HeadingTag,
|
|
912
948
|
{ className: formatClasses },
|
|
913
949
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
914
950
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
915
|
-
return /* @__PURE__ */
|
|
951
|
+
return /* @__PURE__ */ jsx23(React16.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx23(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
916
952
|
})
|
|
917
953
|
) });
|
|
918
954
|
};
|
|
919
955
|
var HeadingNode_default = HeadingNode;
|
|
920
956
|
|
|
921
957
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
922
|
-
import
|
|
958
|
+
import React18 from "react";
|
|
923
959
|
|
|
924
960
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
925
|
-
import
|
|
926
|
-
import { jsx as
|
|
961
|
+
import React17 from "react";
|
|
962
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
927
963
|
var ListItemNode = (props) => {
|
|
928
964
|
const NodeTypes2 = {
|
|
929
965
|
text: TextNode_default,
|
|
@@ -940,66 +976,66 @@ var ListItemNode = (props) => {
|
|
|
940
976
|
liStyle.fontSize = match[1].trim();
|
|
941
977
|
}
|
|
942
978
|
}
|
|
943
|
-
return /* @__PURE__ */
|
|
979
|
+
return /* @__PURE__ */ jsx24("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
944
980
|
const SelectedNode = NodeTypes2[node.type];
|
|
945
981
|
if (node.type === "linebreak") {
|
|
946
982
|
if (!foundFirstBreak) {
|
|
947
983
|
foundFirstBreak = true;
|
|
948
|
-
return /* @__PURE__ */
|
|
984
|
+
return /* @__PURE__ */ jsx24("div", {}, index);
|
|
949
985
|
} else {
|
|
950
|
-
return /* @__PURE__ */
|
|
986
|
+
return /* @__PURE__ */ jsx24("div", { className: "py-1 lg:py-2" }, index);
|
|
951
987
|
}
|
|
952
988
|
} else {
|
|
953
989
|
foundFirstBreak = false;
|
|
954
|
-
return /* @__PURE__ */
|
|
990
|
+
return /* @__PURE__ */ jsx24(React17.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx24(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
955
991
|
}
|
|
956
992
|
}) });
|
|
957
993
|
};
|
|
958
994
|
var ListItemNode_default = ListItemNode;
|
|
959
995
|
|
|
960
996
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
961
|
-
import { jsx as
|
|
997
|
+
import { jsx as jsx25, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
962
998
|
var ListNode = (props) => {
|
|
963
999
|
const NodeTypes2 = {
|
|
964
1000
|
listitem: ListItemNode_default
|
|
965
1001
|
};
|
|
966
|
-
return /* @__PURE__ */ jsxs8(
|
|
967
|
-
props.node.listType == "bullet" && /* @__PURE__ */
|
|
1002
|
+
return /* @__PURE__ */ jsxs8(React18.Fragment, { children: [
|
|
1003
|
+
props.node.listType == "bullet" && /* @__PURE__ */ jsx25("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
968
1004
|
const SelectedNode = NodeTypes2[node.type];
|
|
969
|
-
return /* @__PURE__ */
|
|
1005
|
+
return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
970
1006
|
}) }),
|
|
971
|
-
props.node.listType == "number" && /* @__PURE__ */
|
|
1007
|
+
props.node.listType == "number" && /* @__PURE__ */ jsx25("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
972
1008
|
const SelectedNode = NodeTypes2[node.type];
|
|
973
|
-
return /* @__PURE__ */
|
|
1009
|
+
return /* @__PURE__ */ jsx25(React18.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx25(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
974
1010
|
}) })
|
|
975
1011
|
] });
|
|
976
1012
|
};
|
|
977
1013
|
var ListNode_default = ListNode;
|
|
978
1014
|
|
|
979
1015
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
980
|
-
import
|
|
981
|
-
import { jsx as
|
|
1016
|
+
import React19 from "react";
|
|
1017
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
982
1018
|
var QuoteNode = (props) => {
|
|
983
1019
|
const NodeTypes2 = {
|
|
984
1020
|
["text"]: TextNode_default,
|
|
985
1021
|
["linebreak"]: LineBreakNode_default,
|
|
986
1022
|
["link"]: LinkNode_default
|
|
987
1023
|
};
|
|
988
|
-
return /* @__PURE__ */
|
|
1024
|
+
return /* @__PURE__ */ jsx26("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
989
1025
|
const SelectedNode = NodeTypes2[node.type];
|
|
990
|
-
return /* @__PURE__ */
|
|
1026
|
+
return /* @__PURE__ */ jsx26(React19.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx26(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
991
1027
|
}) });
|
|
992
1028
|
};
|
|
993
1029
|
var QuoteNode_default = QuoteNode;
|
|
994
1030
|
|
|
995
1031
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
996
|
-
import
|
|
1032
|
+
import React20 from "react";
|
|
997
1033
|
import dynamic6 from "next/dynamic";
|
|
998
|
-
import { jsx as
|
|
1034
|
+
import { jsx as jsx27, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
999
1035
|
var CopyButton = dynamic6(() => import("./CopyButton-XONTQQW7.mjs"), {
|
|
1000
1036
|
ssr: false,
|
|
1001
1037
|
// optional: fallback UI while loading
|
|
1002
|
-
loading: () => /* @__PURE__ */
|
|
1038
|
+
loading: () => /* @__PURE__ */ jsx27("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
1003
1039
|
});
|
|
1004
1040
|
var CodeNode = (props) => {
|
|
1005
1041
|
const NodeTypes2 = {
|
|
@@ -1015,12 +1051,12 @@ var CodeNode = (props) => {
|
|
|
1015
1051
|
}).join("") ?? "";
|
|
1016
1052
|
return /* @__PURE__ */ jsxs9("div", { children: [
|
|
1017
1053
|
/* @__PURE__ */ jsxs9("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
1018
|
-
/* @__PURE__ */
|
|
1019
|
-
/* @__PURE__ */
|
|
1054
|
+
/* @__PURE__ */ jsx27("span", { children: "Code Snippet" }),
|
|
1055
|
+
/* @__PURE__ */ jsx27(CopyButton, { text: textContent })
|
|
1020
1056
|
] }),
|
|
1021
|
-
/* @__PURE__ */
|
|
1057
|
+
/* @__PURE__ */ jsx27("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) => {
|
|
1022
1058
|
const SelectedNode = NodeTypes2[node.type];
|
|
1023
|
-
return /* @__PURE__ */
|
|
1059
|
+
return /* @__PURE__ */ jsx27(React20.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx27(
|
|
1024
1060
|
SelectedNode,
|
|
1025
1061
|
{
|
|
1026
1062
|
node,
|
|
@@ -1035,15 +1071,15 @@ var CodeNode = (props) => {
|
|
|
1035
1071
|
var CodeNode_default = CodeNode;
|
|
1036
1072
|
|
|
1037
1073
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
1038
|
-
import { jsx as
|
|
1074
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1039
1075
|
var HorizontalRuleNode = () => {
|
|
1040
|
-
return /* @__PURE__ */
|
|
1076
|
+
return /* @__PURE__ */ jsx28("hr", {});
|
|
1041
1077
|
};
|
|
1042
1078
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
1043
1079
|
|
|
1044
1080
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
1045
|
-
import
|
|
1046
|
-
import { Fragment as Fragment4, jsx as
|
|
1081
|
+
import React21 from "react";
|
|
1082
|
+
import { Fragment as Fragment4, jsx as jsx29 } from "react/jsx-runtime";
|
|
1047
1083
|
var WidgetNode = (props) => {
|
|
1048
1084
|
const getWidgetParameters = () => {
|
|
1049
1085
|
const widgetInputParameters = {
|
|
@@ -1107,7 +1143,7 @@ var WidgetNode = (props) => {
|
|
|
1107
1143
|
};
|
|
1108
1144
|
const widgetCode = props.node?.widgetCode;
|
|
1109
1145
|
if (!widgetCode) {
|
|
1110
|
-
return /* @__PURE__ */
|
|
1146
|
+
return /* @__PURE__ */ jsx29(Fragment4, { children: "Invalid widget" });
|
|
1111
1147
|
}
|
|
1112
1148
|
const widgetParams = getWidgetParameters();
|
|
1113
1149
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -1116,7 +1152,7 @@ var WidgetNode = (props) => {
|
|
|
1116
1152
|
}
|
|
1117
1153
|
return (
|
|
1118
1154
|
// eslint-disable-next-line react-hooks/static-components
|
|
1119
|
-
/* @__PURE__ */
|
|
1155
|
+
/* @__PURE__ */ jsx29(React21.Fragment, { children: /* @__PURE__ */ jsx29(
|
|
1120
1156
|
WidgetRenderer,
|
|
1121
1157
|
{
|
|
1122
1158
|
params: widgetParams,
|
|
@@ -1133,11 +1169,11 @@ var WidgetNode = (props) => {
|
|
|
1133
1169
|
var WidgetNode_default = WidgetNode;
|
|
1134
1170
|
|
|
1135
1171
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
1136
|
-
import
|
|
1172
|
+
import React22 from "react";
|
|
1137
1173
|
|
|
1138
1174
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
1139
1175
|
import dynamic7 from "next/dynamic";
|
|
1140
|
-
import { jsx as
|
|
1176
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1141
1177
|
var IframeClient = dynamic7(() => import("./IframeClient-J22NMEVY.mjs"), {
|
|
1142
1178
|
ssr: false
|
|
1143
1179
|
});
|
|
@@ -1150,7 +1186,7 @@ var EmbedNode = (props) => {
|
|
|
1150
1186
|
} else {
|
|
1151
1187
|
src = props.node.embedSrc;
|
|
1152
1188
|
}
|
|
1153
|
-
return /* @__PURE__ */
|
|
1189
|
+
return /* @__PURE__ */ jsx30("div", { className: "aspect-video", children: src && /* @__PURE__ */ jsx30(IframeClient, { src }) });
|
|
1154
1190
|
};
|
|
1155
1191
|
var EmbedNode_default = EmbedNode;
|
|
1156
1192
|
|
|
@@ -1322,10 +1358,10 @@ var PathUtility = class {
|
|
|
1322
1358
|
var PathUtility_default = new PathUtility();
|
|
1323
1359
|
|
|
1324
1360
|
// src/components/NoDataFound.tsx
|
|
1325
|
-
import { jsx as
|
|
1361
|
+
import { jsx as jsx31, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1326
1362
|
var NoDataFound = () => {
|
|
1327
1363
|
return /* @__PURE__ */ jsxs10("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
1328
|
-
/* @__PURE__ */
|
|
1364
|
+
/* @__PURE__ */ jsx31("div", { className: "mb-5", children: /* @__PURE__ */ jsx31("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx31(
|
|
1329
1365
|
"svg",
|
|
1330
1366
|
{
|
|
1331
1367
|
className: "w-10 h-10",
|
|
@@ -1333,7 +1369,7 @@ var NoDataFound = () => {
|
|
|
1333
1369
|
stroke: "currentColor",
|
|
1334
1370
|
viewBox: "0 0 24 24",
|
|
1335
1371
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1336
|
-
children: /* @__PURE__ */
|
|
1372
|
+
children: /* @__PURE__ */ jsx31(
|
|
1337
1373
|
"path",
|
|
1338
1374
|
{
|
|
1339
1375
|
strokeLinecap: "round",
|
|
@@ -1344,8 +1380,8 @@ var NoDataFound = () => {
|
|
|
1344
1380
|
)
|
|
1345
1381
|
}
|
|
1346
1382
|
) }) }),
|
|
1347
|
-
/* @__PURE__ */
|
|
1348
|
-
/* @__PURE__ */
|
|
1383
|
+
/* @__PURE__ */ jsx31("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
1384
|
+
/* @__PURE__ */ jsx31("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
1349
1385
|
] });
|
|
1350
1386
|
};
|
|
1351
1387
|
var NoDataFound_default = NoDataFound;
|
|
@@ -1355,7 +1391,7 @@ import dynamic9 from "next/dynamic";
|
|
|
1355
1391
|
|
|
1356
1392
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
1357
1393
|
import dynamic8 from "next/dynamic";
|
|
1358
|
-
import { Fragment as Fragment5, jsx as
|
|
1394
|
+
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1359
1395
|
var HlsPlayer3 = dynamic8(() => import("./HlsPlayer-57543DTW.mjs"), { ssr: false });
|
|
1360
1396
|
var deviceToMediaQuery = (device) => {
|
|
1361
1397
|
switch (device) {
|
|
@@ -1485,7 +1521,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1485
1521
|
};
|
|
1486
1522
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
1487
1523
|
return /* @__PURE__ */ jsxs11(Fragment5, { children: [
|
|
1488
|
-
hlsSources.length > 0 && /* @__PURE__ */
|
|
1524
|
+
hlsSources.length > 0 && /* @__PURE__ */ jsx32(Fragment5, { children: /* @__PURE__ */ jsx32(
|
|
1489
1525
|
HlsPlayer3,
|
|
1490
1526
|
{
|
|
1491
1527
|
sources: hlsSources,
|
|
@@ -1500,7 +1536,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1500
1536
|
styles: hlsStyles
|
|
1501
1537
|
}
|
|
1502
1538
|
) }),
|
|
1503
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */
|
|
1539
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ jsx32(Fragment5, { children: staticFallback ? /* @__PURE__ */ jsxs11("picture", { children: [
|
|
1504
1540
|
DEVICE_ORDER.map((deviceKey) => {
|
|
1505
1541
|
const match = staticSources.find(
|
|
1506
1542
|
(img) => img.device === deviceKey
|
|
@@ -1512,7 +1548,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1512
1548
|
if (!srcUrl) {
|
|
1513
1549
|
return null;
|
|
1514
1550
|
}
|
|
1515
|
-
return /* @__PURE__ */
|
|
1551
|
+
return /* @__PURE__ */ jsx32(
|
|
1516
1552
|
"source",
|
|
1517
1553
|
{
|
|
1518
1554
|
media: deviceToMediaQuery(match.device),
|
|
@@ -1536,7 +1572,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1536
1572
|
if (img.borderRadius) {
|
|
1537
1573
|
styles.borderRadius = img.borderRadius;
|
|
1538
1574
|
}
|
|
1539
|
-
return /* @__PURE__ */
|
|
1575
|
+
return /* @__PURE__ */ jsx32(
|
|
1540
1576
|
"img",
|
|
1541
1577
|
{
|
|
1542
1578
|
loading: "lazy",
|
|
@@ -1551,7 +1587,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1551
1587
|
})()
|
|
1552
1588
|
] }) : (
|
|
1553
1589
|
/* Case 2: Only device-specific images exist */
|
|
1554
|
-
/* @__PURE__ */
|
|
1590
|
+
/* @__PURE__ */ jsx32(Fragment5, { children: staticSources.map((img, index) => {
|
|
1555
1591
|
const imageUrl = resolveImageUrl(img);
|
|
1556
1592
|
if (!imageUrl) {
|
|
1557
1593
|
return null;
|
|
@@ -1577,7 +1613,7 @@ var ImageGalleryNode = (props) => {
|
|
|
1577
1613
|
default:
|
|
1578
1614
|
display = "block";
|
|
1579
1615
|
}
|
|
1580
|
-
return /* @__PURE__ */
|
|
1616
|
+
return /* @__PURE__ */ jsx32(
|
|
1581
1617
|
"img",
|
|
1582
1618
|
{
|
|
1583
1619
|
loading: "lazy",
|
|
@@ -1717,7 +1753,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
1717
1753
|
};
|
|
1718
1754
|
|
|
1719
1755
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
1720
|
-
import { Fragment as Fragment6, jsx as
|
|
1756
|
+
import { Fragment as Fragment6, jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1721
1757
|
var getNestedValue5 = (obj, path) => {
|
|
1722
1758
|
if (!obj || !path) return void 0;
|
|
1723
1759
|
return path.split(".").reduce((current, key) => {
|
|
@@ -1731,14 +1767,14 @@ var PdfIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1731
1767
|
viewBox: "0 0 48 48",
|
|
1732
1768
|
className: "w-10 h-10",
|
|
1733
1769
|
children: [
|
|
1734
|
-
/* @__PURE__ */
|
|
1770
|
+
/* @__PURE__ */ jsx33(
|
|
1735
1771
|
"path",
|
|
1736
1772
|
{
|
|
1737
1773
|
fill: "#e53935",
|
|
1738
1774
|
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"
|
|
1739
1775
|
}
|
|
1740
1776
|
),
|
|
1741
|
-
/* @__PURE__ */
|
|
1777
|
+
/* @__PURE__ */ jsx33(
|
|
1742
1778
|
"path",
|
|
1743
1779
|
{
|
|
1744
1780
|
fill: "#fff",
|
|
@@ -1755,48 +1791,48 @@ var ExcelIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1755
1791
|
viewBox: "0 0 48 48",
|
|
1756
1792
|
className: "w-10 h-10",
|
|
1757
1793
|
children: [
|
|
1758
|
-
/* @__PURE__ */
|
|
1794
|
+
/* @__PURE__ */ jsx33(
|
|
1759
1795
|
"path",
|
|
1760
1796
|
{
|
|
1761
1797
|
fill: "#169154",
|
|
1762
1798
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
1763
1799
|
}
|
|
1764
1800
|
),
|
|
1765
|
-
/* @__PURE__ */
|
|
1801
|
+
/* @__PURE__ */ jsx33(
|
|
1766
1802
|
"path",
|
|
1767
1803
|
{
|
|
1768
1804
|
fill: "#18482a",
|
|
1769
1805
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
1770
1806
|
}
|
|
1771
1807
|
),
|
|
1772
|
-
/* @__PURE__ */
|
|
1773
|
-
/* @__PURE__ */
|
|
1808
|
+
/* @__PURE__ */ jsx33("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
1809
|
+
/* @__PURE__ */ jsx33("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
1774
1810
|
/* @__PURE__ */ jsxs12("g", { children: [
|
|
1775
|
-
/* @__PURE__ */
|
|
1811
|
+
/* @__PURE__ */ jsx33(
|
|
1776
1812
|
"path",
|
|
1777
1813
|
{
|
|
1778
1814
|
fill: "#29c27f",
|
|
1779
1815
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
1780
1816
|
}
|
|
1781
1817
|
),
|
|
1782
|
-
/* @__PURE__ */
|
|
1818
|
+
/* @__PURE__ */ jsx33(
|
|
1783
1819
|
"path",
|
|
1784
1820
|
{
|
|
1785
1821
|
fill: "#27663f",
|
|
1786
1822
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
1787
1823
|
}
|
|
1788
1824
|
),
|
|
1789
|
-
/* @__PURE__ */
|
|
1790
|
-
/* @__PURE__ */
|
|
1825
|
+
/* @__PURE__ */ jsx33("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
1826
|
+
/* @__PURE__ */ jsx33("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
1791
1827
|
] }),
|
|
1792
|
-
/* @__PURE__ */
|
|
1828
|
+
/* @__PURE__ */ jsx33(
|
|
1793
1829
|
"path",
|
|
1794
1830
|
{
|
|
1795
1831
|
fill: "#0c7238",
|
|
1796
1832
|
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"
|
|
1797
1833
|
}
|
|
1798
1834
|
),
|
|
1799
|
-
/* @__PURE__ */
|
|
1835
|
+
/* @__PURE__ */ jsx33(
|
|
1800
1836
|
"path",
|
|
1801
1837
|
{
|
|
1802
1838
|
fill: "#fff",
|
|
@@ -1814,7 +1850,7 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1814
1850
|
className: "w-10 h-10",
|
|
1815
1851
|
baseProfile: "basic",
|
|
1816
1852
|
children: [
|
|
1817
|
-
/* @__PURE__ */
|
|
1853
|
+
/* @__PURE__ */ jsx33(
|
|
1818
1854
|
"path",
|
|
1819
1855
|
{
|
|
1820
1856
|
fill: "#283593",
|
|
@@ -1832,19 +1868,19 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1832
1868
|
gradientTransform: "translate(0 -339.89)",
|
|
1833
1869
|
gradientUnits: "userSpaceOnUse",
|
|
1834
1870
|
children: [
|
|
1835
|
-
/* @__PURE__ */
|
|
1836
|
-
/* @__PURE__ */
|
|
1871
|
+
/* @__PURE__ */ jsx33("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
1872
|
+
/* @__PURE__ */ jsx33("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
1837
1873
|
]
|
|
1838
1874
|
}
|
|
1839
1875
|
),
|
|
1840
|
-
/* @__PURE__ */
|
|
1876
|
+
/* @__PURE__ */ jsx33(
|
|
1841
1877
|
"path",
|
|
1842
1878
|
{
|
|
1843
1879
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
1844
1880
|
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"
|
|
1845
1881
|
}
|
|
1846
1882
|
),
|
|
1847
|
-
/* @__PURE__ */
|
|
1883
|
+
/* @__PURE__ */ jsx33(
|
|
1848
1884
|
"path",
|
|
1849
1885
|
{
|
|
1850
1886
|
fill: "#1e88e5",
|
|
@@ -1852,21 +1888,21 @@ var WordIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1852
1888
|
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"
|
|
1853
1889
|
}
|
|
1854
1890
|
),
|
|
1855
|
-
/* @__PURE__ */
|
|
1891
|
+
/* @__PURE__ */ jsx33(
|
|
1856
1892
|
"path",
|
|
1857
1893
|
{
|
|
1858
1894
|
fill: "#00e5ff",
|
|
1859
1895
|
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"
|
|
1860
1896
|
}
|
|
1861
1897
|
),
|
|
1862
|
-
/* @__PURE__ */
|
|
1898
|
+
/* @__PURE__ */ jsx33(
|
|
1863
1899
|
"path",
|
|
1864
1900
|
{
|
|
1865
1901
|
fill: "#1565c0",
|
|
1866
1902
|
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"
|
|
1867
1903
|
}
|
|
1868
1904
|
),
|
|
1869
|
-
/* @__PURE__ */
|
|
1905
|
+
/* @__PURE__ */ jsx33(
|
|
1870
1906
|
"path",
|
|
1871
1907
|
{
|
|
1872
1908
|
fill: "#fff",
|
|
@@ -1883,8 +1919,8 @@ var StandardIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1883
1919
|
viewBox: "0 0 48 48",
|
|
1884
1920
|
className: "w-10 h-10",
|
|
1885
1921
|
children: [
|
|
1886
|
-
/* @__PURE__ */
|
|
1887
|
-
/* @__PURE__ */
|
|
1922
|
+
/* @__PURE__ */ jsx33("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
1923
|
+
/* @__PURE__ */ jsx33("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
1888
1924
|
]
|
|
1889
1925
|
}
|
|
1890
1926
|
);
|
|
@@ -1895,23 +1931,23 @@ var PowerPointIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1895
1931
|
viewBox: "0 0 48 48",
|
|
1896
1932
|
className: "w-10 h-10",
|
|
1897
1933
|
children: [
|
|
1898
|
-
/* @__PURE__ */
|
|
1934
|
+
/* @__PURE__ */ jsx33(
|
|
1899
1935
|
"path",
|
|
1900
1936
|
{
|
|
1901
1937
|
fill: "#dc4c2c",
|
|
1902
1938
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
1903
1939
|
}
|
|
1904
1940
|
),
|
|
1905
|
-
/* @__PURE__ */
|
|
1906
|
-
/* @__PURE__ */
|
|
1907
|
-
/* @__PURE__ */
|
|
1941
|
+
/* @__PURE__ */ jsx33("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
1942
|
+
/* @__PURE__ */ jsx33("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
1943
|
+
/* @__PURE__ */ jsx33(
|
|
1908
1944
|
"path",
|
|
1909
1945
|
{
|
|
1910
1946
|
fill: "#9b341f",
|
|
1911
1947
|
d: "M22.319,34H5.681C4.753,34,4,33.247,4,32.319V15.681C4,14.753,4.753,14,5.681,14h16.638 C23.247,14,24,14.753,24,15.681v16.638C24,33.247,23.247,34,22.319,34z"
|
|
1912
1948
|
}
|
|
1913
1949
|
),
|
|
1914
|
-
/* @__PURE__ */
|
|
1950
|
+
/* @__PURE__ */ jsx33(
|
|
1915
1951
|
"path",
|
|
1916
1952
|
{
|
|
1917
1953
|
fill: "#fff",
|
|
@@ -1928,9 +1964,9 @@ var TextIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1928
1964
|
viewBox: "0 0 48 48",
|
|
1929
1965
|
className: "w-10 h-10",
|
|
1930
1966
|
children: [
|
|
1931
|
-
/* @__PURE__ */
|
|
1932
|
-
/* @__PURE__ */
|
|
1933
|
-
/* @__PURE__ */
|
|
1967
|
+
/* @__PURE__ */ jsx33("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
1968
|
+
/* @__PURE__ */ jsx33("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
1969
|
+
/* @__PURE__ */ jsx33(
|
|
1934
1970
|
"path",
|
|
1935
1971
|
{
|
|
1936
1972
|
fill: "#1976D2",
|
|
@@ -1950,14 +1986,14 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1950
1986
|
version: "1.0",
|
|
1951
1987
|
className: "w-10 h-10",
|
|
1952
1988
|
children: [
|
|
1953
|
-
/* @__PURE__ */
|
|
1989
|
+
/* @__PURE__ */ jsx33("defs", { children: /* @__PURE__ */ jsx33("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ jsx33(
|
|
1954
1990
|
"path",
|
|
1955
1991
|
{
|
|
1956
1992
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
1957
1993
|
"clip-rule": "nonzero"
|
|
1958
1994
|
}
|
|
1959
1995
|
) }) }),
|
|
1960
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ jsx33("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ jsx33(
|
|
1961
1997
|
"path",
|
|
1962
1998
|
{
|
|
1963
1999
|
fill: "#ff9100",
|
|
@@ -1966,7 +2002,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1966
2002
|
"fill-rule": "nonzero"
|
|
1967
2003
|
}
|
|
1968
2004
|
) }),
|
|
1969
|
-
/* @__PURE__ */
|
|
2005
|
+
/* @__PURE__ */ jsx33(
|
|
1970
2006
|
"path",
|
|
1971
2007
|
{
|
|
1972
2008
|
fill: "#fbe9e7",
|
|
@@ -1975,7 +2011,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1975
2011
|
"fill-rule": "nonzero"
|
|
1976
2012
|
}
|
|
1977
2013
|
),
|
|
1978
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ jsx33(
|
|
1979
2015
|
"path",
|
|
1980
2016
|
{
|
|
1981
2017
|
fill: "#ffe0b2",
|
|
@@ -1984,7 +2020,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1984
2020
|
"fill-rule": "nonzero"
|
|
1985
2021
|
}
|
|
1986
2022
|
),
|
|
1987
|
-
/* @__PURE__ */
|
|
2023
|
+
/* @__PURE__ */ jsx33(
|
|
1988
2024
|
"path",
|
|
1989
2025
|
{
|
|
1990
2026
|
fill: "#ffe0b2",
|
|
@@ -1993,7 +2029,7 @@ var ArchiveIcon = () => /* @__PURE__ */ jsxs12(
|
|
|
1993
2029
|
"fill-rule": "nonzero"
|
|
1994
2030
|
}
|
|
1995
2031
|
),
|
|
1996
|
-
/* @__PURE__ */
|
|
2032
|
+
/* @__PURE__ */ jsx33(
|
|
1997
2033
|
"path",
|
|
1998
2034
|
{
|
|
1999
2035
|
fill: "#ffe0b2",
|
|
@@ -2069,8 +2105,8 @@ var DocumentNode = (props) => {
|
|
|
2069
2105
|
}
|
|
2070
2106
|
}
|
|
2071
2107
|
if (documents.length === 0) {
|
|
2072
|
-
return /* @__PURE__ */
|
|
2073
|
-
/* @__PURE__ */
|
|
2108
|
+
return /* @__PURE__ */ jsx33(Fragment6, { children: /* @__PURE__ */ jsxs12("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
2109
|
+
/* @__PURE__ */ jsx33("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ jsx33(
|
|
2074
2110
|
"svg",
|
|
2075
2111
|
{
|
|
2076
2112
|
className: "w-5 h-5",
|
|
@@ -2078,7 +2114,7 @@ var DocumentNode = (props) => {
|
|
|
2078
2114
|
stroke: "currentColor",
|
|
2079
2115
|
viewBox: "0 0 24 24",
|
|
2080
2116
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2081
|
-
children: /* @__PURE__ */
|
|
2117
|
+
children: /* @__PURE__ */ jsx33(
|
|
2082
2118
|
"path",
|
|
2083
2119
|
{
|
|
2084
2120
|
strokeLinecap: "round",
|
|
@@ -2089,11 +2125,11 @@ var DocumentNode = (props) => {
|
|
|
2089
2125
|
)
|
|
2090
2126
|
}
|
|
2091
2127
|
) }),
|
|
2092
|
-
/* @__PURE__ */
|
|
2093
|
-
/* @__PURE__ */
|
|
2128
|
+
/* @__PURE__ */ jsx33("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
2129
|
+
/* @__PURE__ */ jsx33("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
2094
2130
|
] }) });
|
|
2095
2131
|
}
|
|
2096
|
-
return /* @__PURE__ */
|
|
2132
|
+
return /* @__PURE__ */ jsx33("div", { className: "", children: documents.map((doc, index) => {
|
|
2097
2133
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
2098
2134
|
props.assetBaseUrl,
|
|
2099
2135
|
doc.assetUrl
|
|
@@ -2117,8 +2153,8 @@ var DocumentNode = (props) => {
|
|
|
2117
2153
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
2118
2154
|
children: [
|
|
2119
2155
|
/* @__PURE__ */ jsxs12("div", { className: "flex items-center space-x-4", children: [
|
|
2120
|
-
/* @__PURE__ */
|
|
2121
|
-
/* @__PURE__ */
|
|
2156
|
+
/* @__PURE__ */ jsx33("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ jsx33(Icon, {}) }),
|
|
2157
|
+
/* @__PURE__ */ jsx33("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ jsx33("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
2122
2158
|
] }),
|
|
2123
2159
|
/* @__PURE__ */ jsxs12(
|
|
2124
2160
|
"a",
|
|
@@ -2136,7 +2172,7 @@ var DocumentNode = (props) => {
|
|
|
2136
2172
|
stroke: "currentColor",
|
|
2137
2173
|
viewBox: "0 0 24 24",
|
|
2138
2174
|
children: [
|
|
2139
|
-
/* @__PURE__ */
|
|
2175
|
+
/* @__PURE__ */ jsx33(
|
|
2140
2176
|
"path",
|
|
2141
2177
|
{
|
|
2142
2178
|
strokeLinecap: "round",
|
|
@@ -2145,7 +2181,7 @@ var DocumentNode = (props) => {
|
|
|
2145
2181
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
2146
2182
|
}
|
|
2147
2183
|
),
|
|
2148
|
-
/* @__PURE__ */
|
|
2184
|
+
/* @__PURE__ */ jsx33(
|
|
2149
2185
|
"path",
|
|
2150
2186
|
{
|
|
2151
2187
|
strokeLinecap: "round",
|
|
@@ -2170,7 +2206,7 @@ var DocumentNode = (props) => {
|
|
|
2170
2206
|
var DocumentNode_default = DocumentNode;
|
|
2171
2207
|
|
|
2172
2208
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
2173
|
-
import { jsx as
|
|
2209
|
+
import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2174
2210
|
var Pagination = dynamic9(() => import("./Pagination-6OFACRMQ.mjs"), { ssr: true });
|
|
2175
2211
|
var Slider = dynamic9(() => import("./Slider-PEIVH6A5.mjs"), {
|
|
2176
2212
|
ssr: false
|
|
@@ -2424,7 +2460,7 @@ var DivContainer = async (props) => {
|
|
|
2424
2460
|
response = await serviceClient.get(endpoint);
|
|
2425
2461
|
result = response?.result;
|
|
2426
2462
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
2427
|
-
return /* @__PURE__ */
|
|
2463
|
+
return /* @__PURE__ */ jsx34(NoDataFound_default, {});
|
|
2428
2464
|
}
|
|
2429
2465
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
2430
2466
|
childCollectionData = getNestedValue6(
|
|
@@ -2444,7 +2480,7 @@ var DivContainer = async (props) => {
|
|
|
2444
2480
|
}
|
|
2445
2481
|
const SelectedNode = NodeTypes2[node.type];
|
|
2446
2482
|
if (!SelectedNode) return null;
|
|
2447
|
-
return /* @__PURE__ */
|
|
2483
|
+
return /* @__PURE__ */ jsx34(React22.Fragment, { children: /* @__PURE__ */ jsx34(
|
|
2448
2484
|
SelectedNode,
|
|
2449
2485
|
{
|
|
2450
2486
|
node,
|
|
@@ -2576,14 +2612,14 @@ var DivContainer = async (props) => {
|
|
|
2576
2612
|
props.node.bgClass,
|
|
2577
2613
|
noLinkColor && "no-link-color"
|
|
2578
2614
|
].filter(Boolean).join(" ");
|
|
2579
|
-
return /* @__PURE__ */ jsxs13(
|
|
2580
|
-
/* @__PURE__ */
|
|
2615
|
+
return /* @__PURE__ */ jsxs13(React22.Fragment, { children: [
|
|
2616
|
+
/* @__PURE__ */ jsx34(
|
|
2581
2617
|
"style",
|
|
2582
2618
|
{
|
|
2583
2619
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
2584
2620
|
}
|
|
2585
2621
|
),
|
|
2586
|
-
/* @__PURE__ */
|
|
2622
|
+
/* @__PURE__ */ jsx34(React22.Fragment, { children: /* @__PURE__ */ jsx34(
|
|
2587
2623
|
Wrapper,
|
|
2588
2624
|
{
|
|
2589
2625
|
id: guid,
|
|
@@ -2597,11 +2633,11 @@ var DivContainer = async (props) => {
|
|
|
2597
2633
|
item,
|
|
2598
2634
|
idx,
|
|
2599
2635
|
props.href ? void 0 : item?.links?.view
|
|
2600
|
-
)?.map((child, i) => /* @__PURE__ */
|
|
2636
|
+
)?.map((child, i) => /* @__PURE__ */ jsx34(React22.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
2601
2637
|
)
|
|
2602
2638
|
}
|
|
2603
2639
|
) }),
|
|
2604
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */
|
|
2640
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ jsx34("div", { children: /* @__PURE__ */ jsx34(
|
|
2605
2641
|
Pagination,
|
|
2606
2642
|
{
|
|
2607
2643
|
path: props.path,
|
|
@@ -2614,7 +2650,7 @@ var DivContainer = async (props) => {
|
|
|
2614
2650
|
var DivContainer_default = DivContainer;
|
|
2615
2651
|
|
|
2616
2652
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2617
|
-
import { jsx as
|
|
2653
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2618
2654
|
var NodeTypes = {
|
|
2619
2655
|
["paragraph"]: ParagraphNode_default,
|
|
2620
2656
|
["heading"]: HeadingNode_default,
|
|
@@ -2651,14 +2687,14 @@ var PageBodyRenderer = (props) => {
|
|
|
2651
2687
|
}
|
|
2652
2688
|
return true;
|
|
2653
2689
|
};
|
|
2654
|
-
return /* @__PURE__ */
|
|
2690
|
+
return /* @__PURE__ */ jsx35(React23.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
2655
2691
|
{
|
|
2656
2692
|
}
|
|
2657
2693
|
const SelectedNode = NodeTypes[node.type];
|
|
2658
2694
|
if (!shouldRenderNode(node)) {
|
|
2659
2695
|
return null;
|
|
2660
2696
|
}
|
|
2661
|
-
return /* @__PURE__ */
|
|
2697
|
+
return /* @__PURE__ */ jsx35(React23.Fragment, { children: SelectedNode && /* @__PURE__ */ jsx35(React23.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2662
2698
|
SelectedNode,
|
|
2663
2699
|
{
|
|
2664
2700
|
node,
|
|
@@ -2674,7 +2710,7 @@ var PageBodyRenderer = (props) => {
|
|
|
2674
2710
|
device: props.device,
|
|
2675
2711
|
widgetRenderer: props.widgetRenderer
|
|
2676
2712
|
}
|
|
2677
|
-
) }) : /* @__PURE__ */
|
|
2713
|
+
) }) : /* @__PURE__ */ jsx35(React23.Fragment, { children: /* @__PURE__ */ jsx35(
|
|
2678
2714
|
SelectedNode,
|
|
2679
2715
|
{
|
|
2680
2716
|
node,
|