@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260707141031 → 0.8.1-dev.20260707162731
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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +819 -783
- package/dist/index.mjs +349 -313
- 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.js
CHANGED
|
@@ -1424,15 +1424,15 @@ var DateTimeViewClient_exports = {};
|
|
|
1424
1424
|
__export(DateTimeViewClient_exports, {
|
|
1425
1425
|
default: () => DateTimeViewClient_default
|
|
1426
1426
|
});
|
|
1427
|
-
var
|
|
1427
|
+
var import_jsx_runtime28, DateTimeViewClient, DateTimeViewClient_default;
|
|
1428
1428
|
var init_DateTimeViewClient = __esm({
|
|
1429
1429
|
"src/components/controls/view/DateTimeViewClient.tsx"() {
|
|
1430
1430
|
"use strict";
|
|
1431
1431
|
"use client";
|
|
1432
1432
|
init_DateViewClient();
|
|
1433
|
-
|
|
1433
|
+
import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1434
1434
|
DateTimeViewClient = (props) => {
|
|
1435
|
-
return /* @__PURE__ */ (0,
|
|
1435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DateViewClient_default, { ...props, controlType: "datetime" });
|
|
1436
1436
|
};
|
|
1437
1437
|
DateTimeViewClient_default = DateTimeViewClient;
|
|
1438
1438
|
}
|
|
@@ -1444,9 +1444,9 @@ __export(CopyButton_exports, {
|
|
|
1444
1444
|
default: () => CopyButton
|
|
1445
1445
|
});
|
|
1446
1446
|
function CopyButton({ text }) {
|
|
1447
|
-
const [copied, setCopied] = (0,
|
|
1448
|
-
const timeoutRef = (0,
|
|
1449
|
-
(0,
|
|
1447
|
+
const [copied, setCopied] = (0, import_react26.useState)(false);
|
|
1448
|
+
const timeoutRef = (0, import_react26.useRef)(null);
|
|
1449
|
+
(0, import_react26.useEffect)(() => {
|
|
1450
1450
|
return () => {
|
|
1451
1451
|
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
1452
1452
|
};
|
|
@@ -1461,13 +1461,13 @@ function CopyButton({ text }) {
|
|
|
1461
1461
|
console.error("Failed to copy: ", err);
|
|
1462
1462
|
}
|
|
1463
1463
|
};
|
|
1464
|
-
return /* @__PURE__ */ (0,
|
|
1464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
1465
1465
|
"button",
|
|
1466
1466
|
{
|
|
1467
1467
|
onClick: handleCopy,
|
|
1468
1468
|
className: "flex gap-1 items-center hover:text-white transition",
|
|
1469
1469
|
children: [
|
|
1470
|
-
/* @__PURE__ */ (0,
|
|
1470
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1471
1471
|
"svg",
|
|
1472
1472
|
{
|
|
1473
1473
|
width: "16",
|
|
@@ -1475,7 +1475,7 @@ function CopyButton({ text }) {
|
|
|
1475
1475
|
viewBox: "0 0 24 24",
|
|
1476
1476
|
className: "w-4 h-4",
|
|
1477
1477
|
fill: "currentColor",
|
|
1478
|
-
children: /* @__PURE__ */ (0,
|
|
1478
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1479
1479
|
"path",
|
|
1480
1480
|
{
|
|
1481
1481
|
fillRule: "evenodd",
|
|
@@ -1490,54 +1490,54 @@ function CopyButton({ text }) {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
);
|
|
1492
1492
|
}
|
|
1493
|
-
var
|
|
1493
|
+
var import_react26, import_jsx_runtime36;
|
|
1494
1494
|
var init_CopyButton = __esm({
|
|
1495
1495
|
"src/components/CopyButton.tsx"() {
|
|
1496
1496
|
"use strict";
|
|
1497
1497
|
"use client";
|
|
1498
|
-
|
|
1499
|
-
|
|
1498
|
+
import_react26 = require("react");
|
|
1499
|
+
import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1500
1500
|
}
|
|
1501
1501
|
});
|
|
1502
1502
|
|
|
1503
1503
|
// src/components/IFrameLoaderView.tsx
|
|
1504
|
-
var
|
|
1504
|
+
var import_react29, import_jsx_runtime40, IFrameLoaderView, IFrameLoaderView_default;
|
|
1505
1505
|
var init_IFrameLoaderView = __esm({
|
|
1506
1506
|
"src/components/IFrameLoaderView.tsx"() {
|
|
1507
1507
|
"use strict";
|
|
1508
|
-
|
|
1509
|
-
|
|
1508
|
+
import_react29 = __toESM(require("react"));
|
|
1509
|
+
import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1510
1510
|
IFrameLoaderView = (props) => {
|
|
1511
|
-
return /* @__PURE__ */ (0,
|
|
1512
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
1513
|
-
/* @__PURE__ */ (0,
|
|
1514
|
-
/* @__PURE__ */ (0,
|
|
1515
|
-
/* @__PURE__ */ (0,
|
|
1516
|
-
/* @__PURE__ */ (0,
|
|
1517
|
-
/* @__PURE__ */ (0,
|
|
1511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_react29.default.Fragment, { children: [
|
|
1512
|
+
props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
1513
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
1514
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
1515
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "ml-2", children: [
|
|
1516
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
1517
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
1518
1518
|
] })
|
|
1519
1519
|
] }),
|
|
1520
|
-
/* @__PURE__ */ (0,
|
|
1521
|
-
/* @__PURE__ */ (0,
|
|
1522
|
-
/* @__PURE__ */ (0,
|
|
1523
|
-
/* @__PURE__ */ (0,
|
|
1524
|
-
/* @__PURE__ */ (0,
|
|
1525
|
-
/* @__PURE__ */ (0,
|
|
1526
|
-
/* @__PURE__ */ (0,
|
|
1520
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
1521
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "animate-pulse", children: [
|
|
1522
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1523
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1524
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
1525
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
1526
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
1527
1527
|
] }),
|
|
1528
|
-
/* @__PURE__ */ (0,
|
|
1529
|
-
/* @__PURE__ */ (0,
|
|
1530
|
-
/* @__PURE__ */ (0,
|
|
1531
|
-
/* @__PURE__ */ (0,
|
|
1532
|
-
/* @__PURE__ */ (0,
|
|
1533
|
-
/* @__PURE__ */ (0,
|
|
1528
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "animate-pulse", children: [
|
|
1529
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1530
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1531
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
1532
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
1533
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
1534
1534
|
] }),
|
|
1535
|
-
/* @__PURE__ */ (0,
|
|
1536
|
-
/* @__PURE__ */ (0,
|
|
1537
|
-
/* @__PURE__ */ (0,
|
|
1538
|
-
/* @__PURE__ */ (0,
|
|
1539
|
-
/* @__PURE__ */ (0,
|
|
1540
|
-
/* @__PURE__ */ (0,
|
|
1535
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "animate-pulse", children: [
|
|
1536
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1537
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1538
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
1539
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
1540
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
1541
1541
|
] })
|
|
1542
1542
|
] })
|
|
1543
1543
|
] }) }),
|
|
@@ -1553,19 +1553,19 @@ var IframeClient_exports = {};
|
|
|
1553
1553
|
__export(IframeClient_exports, {
|
|
1554
1554
|
default: () => IframeClient_default
|
|
1555
1555
|
});
|
|
1556
|
-
var
|
|
1556
|
+
var import_react30, import_jsx_runtime41, IframeClient, IframeClient_default;
|
|
1557
1557
|
var init_IframeClient = __esm({
|
|
1558
1558
|
"src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
|
|
1559
1559
|
"use strict";
|
|
1560
1560
|
"use client";
|
|
1561
|
-
|
|
1561
|
+
import_react30 = __toESM(require("react"));
|
|
1562
1562
|
init_IFrameLoaderView();
|
|
1563
|
-
|
|
1563
|
+
import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1564
1564
|
IframeClient = ({ src }) => {
|
|
1565
|
-
const iframeRef = (0,
|
|
1566
|
-
const [iframeHeight, setIframeHeight] = (0,
|
|
1567
|
-
const [isDataFound, setIsDataFound] = (0,
|
|
1568
|
-
(0,
|
|
1565
|
+
const iframeRef = (0, import_react30.useRef)(null);
|
|
1566
|
+
const [iframeHeight, setIframeHeight] = (0, import_react30.useState)("100%");
|
|
1567
|
+
const [isDataFound, setIsDataFound] = (0, import_react30.useState)(null);
|
|
1568
|
+
(0, import_react30.useEffect)(() => {
|
|
1569
1569
|
const handleReceiveMessage = (event) => {
|
|
1570
1570
|
const eventName = event?.data?.eventName;
|
|
1571
1571
|
const payload = event?.data?.payload;
|
|
@@ -1580,7 +1580,7 @@ var init_IframeClient = __esm({
|
|
|
1580
1580
|
window.addEventListener("message", handleReceiveMessage);
|
|
1581
1581
|
return () => window.removeEventListener("message", handleReceiveMessage);
|
|
1582
1582
|
}, []);
|
|
1583
|
-
(0,
|
|
1583
|
+
(0, import_react30.useEffect)(() => {
|
|
1584
1584
|
const handleResize = () => {
|
|
1585
1585
|
if (iframeRef.current) {
|
|
1586
1586
|
iframeRef.current.contentWindow?.postMessage({ eventName: "RESIZE" }, "*");
|
|
@@ -1592,7 +1592,7 @@ var init_IframeClient = __esm({
|
|
|
1592
1592
|
const handleIframeLoad = () => {
|
|
1593
1593
|
setIsDataFound(true);
|
|
1594
1594
|
};
|
|
1595
|
-
return /* @__PURE__ */ (0,
|
|
1595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react30.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
1596
1596
|
"iframe",
|
|
1597
1597
|
{
|
|
1598
1598
|
ref: iframeRef,
|
|
@@ -1819,52 +1819,52 @@ var init_OdataBuilder = __esm({
|
|
|
1819
1819
|
});
|
|
1820
1820
|
|
|
1821
1821
|
// src/svg/chevron-updown.tsx
|
|
1822
|
-
var
|
|
1822
|
+
var import_jsx_runtime46, ChevronUpDown, chevron_updown_default;
|
|
1823
1823
|
var init_chevron_updown = __esm({
|
|
1824
1824
|
"src/svg/chevron-updown.tsx"() {
|
|
1825
1825
|
"use strict";
|
|
1826
|
-
|
|
1826
|
+
import_jsx_runtime46 = require("react/jsx-runtime");
|
|
1827
1827
|
ChevronUpDown = (props) => {
|
|
1828
|
-
return /* @__PURE__ */ (0,
|
|
1828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
|
|
1829
1829
|
};
|
|
1830
1830
|
chevron_updown_default = ChevronUpDown;
|
|
1831
1831
|
}
|
|
1832
1832
|
});
|
|
1833
1833
|
|
|
1834
1834
|
// src/svg/chevron-down.tsx
|
|
1835
|
-
var
|
|
1835
|
+
var import_jsx_runtime47, ChevronDown, chevron_down_default;
|
|
1836
1836
|
var init_chevron_down = __esm({
|
|
1837
1837
|
"src/svg/chevron-down.tsx"() {
|
|
1838
1838
|
"use strict";
|
|
1839
|
-
|
|
1839
|
+
import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1840
1840
|
ChevronDown = (props) => {
|
|
1841
|
-
return /* @__PURE__ */ (0,
|
|
1841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
|
|
1842
1842
|
};
|
|
1843
1843
|
chevron_down_default = ChevronDown;
|
|
1844
1844
|
}
|
|
1845
1845
|
});
|
|
1846
1846
|
|
|
1847
1847
|
// src/svg/chevron-up.tsx
|
|
1848
|
-
var
|
|
1848
|
+
var import_jsx_runtime48, ChevronUp, chevron_up_default;
|
|
1849
1849
|
var init_chevron_up = __esm({
|
|
1850
1850
|
"src/svg/chevron-up.tsx"() {
|
|
1851
1851
|
"use strict";
|
|
1852
|
-
|
|
1852
|
+
import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1853
1853
|
ChevronUp = (props) => {
|
|
1854
|
-
return /* @__PURE__ */ (0,
|
|
1854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
|
|
1855
1855
|
};
|
|
1856
1856
|
chevron_up_default = ChevronUp;
|
|
1857
1857
|
}
|
|
1858
1858
|
});
|
|
1859
1859
|
|
|
1860
1860
|
// src/svg/plus.tsx
|
|
1861
|
-
var
|
|
1861
|
+
var import_jsx_runtime49, Plus, plus_default;
|
|
1862
1862
|
var init_plus = __esm({
|
|
1863
1863
|
"src/svg/plus.tsx"() {
|
|
1864
1864
|
"use strict";
|
|
1865
|
-
|
|
1865
|
+
import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1866
1866
|
Plus = (props) => {
|
|
1867
|
-
return /* @__PURE__ */ (0,
|
|
1867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: props.className, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
|
|
1868
1868
|
};
|
|
1869
1869
|
plus_default = Plus;
|
|
1870
1870
|
}
|
|
@@ -1890,19 +1890,19 @@ var init_Icons = __esm({
|
|
|
1890
1890
|
});
|
|
1891
1891
|
|
|
1892
1892
|
// src/svg/Icon.tsx
|
|
1893
|
-
var
|
|
1893
|
+
var import_jsx_runtime50, Icon, Icon_default;
|
|
1894
1894
|
var init_Icon = __esm({
|
|
1895
1895
|
"src/svg/Icon.tsx"() {
|
|
1896
1896
|
"use strict";
|
|
1897
1897
|
init_Icons();
|
|
1898
|
-
|
|
1898
|
+
import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1899
1899
|
Icon = ({ name, className, ...props }) => {
|
|
1900
1900
|
const IconComponent = Icons_default[name];
|
|
1901
1901
|
if (!IconComponent) {
|
|
1902
1902
|
console.error(`Icon "${name}" not found.`);
|
|
1903
1903
|
return null;
|
|
1904
1904
|
}
|
|
1905
|
-
return /* @__PURE__ */ (0,
|
|
1905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(IconComponent, { ...props, className });
|
|
1906
1906
|
};
|
|
1907
1907
|
Icon_default = Icon;
|
|
1908
1908
|
}
|
|
@@ -1913,21 +1913,21 @@ var Pagination_exports = {};
|
|
|
1913
1913
|
__export(Pagination_exports, {
|
|
1914
1914
|
default: () => Pagination_default
|
|
1915
1915
|
});
|
|
1916
|
-
var
|
|
1916
|
+
var import_react31, import_jsx_runtime51, Pagination, Pagination_default;
|
|
1917
1917
|
var init_Pagination = __esm({
|
|
1918
1918
|
"src/components/Pagination.tsx"() {
|
|
1919
1919
|
"use strict";
|
|
1920
1920
|
"use client";
|
|
1921
|
-
|
|
1921
|
+
import_react31 = require("react");
|
|
1922
1922
|
init_OdataBuilder();
|
|
1923
1923
|
init_Icon();
|
|
1924
1924
|
init_StyleTypes();
|
|
1925
1925
|
init_InputControlType();
|
|
1926
1926
|
init_Hyperlink();
|
|
1927
|
-
|
|
1927
|
+
import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1928
1928
|
Pagination = (props) => {
|
|
1929
1929
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
1930
|
-
const builder = (0,
|
|
1930
|
+
const builder = (0, import_react31.useMemo)(() => {
|
|
1931
1931
|
const b = new OdataBuilder(path);
|
|
1932
1932
|
if (query) b.setQuery(query);
|
|
1933
1933
|
return b;
|
|
@@ -1968,7 +1968,7 @@ var init_Pagination = __esm({
|
|
|
1968
1968
|
return range;
|
|
1969
1969
|
};
|
|
1970
1970
|
const paginationRange = getPaginationRange();
|
|
1971
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
1971
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
1972
1972
|
Hyperlink,
|
|
1973
1973
|
{
|
|
1974
1974
|
linkType: "Link" /* Link */,
|
|
@@ -1983,9 +1983,9 @@ var init_Pagination = __esm({
|
|
|
1983
1983
|
);
|
|
1984
1984
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
1985
1985
|
if (disabled) {
|
|
1986
|
-
return /* @__PURE__ */ (0,
|
|
1986
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border bg-neutral-base cursor-not-allowed", children });
|
|
1987
1987
|
}
|
|
1988
|
-
return /* @__PURE__ */ (0,
|
|
1988
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
1989
1989
|
Hyperlink,
|
|
1990
1990
|
{
|
|
1991
1991
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center px-2 md:px-3 border transition-colors duration-150",
|
|
@@ -1995,35 +1995,35 @@ var init_Pagination = __esm({
|
|
|
1995
1995
|
);
|
|
1996
1996
|
};
|
|
1997
1997
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
1998
|
-
return /* @__PURE__ */ (0,
|
|
1999
|
-
/* @__PURE__ */ (0,
|
|
2000
|
-
/* @__PURE__ */ (0,
|
|
1998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "py-6 border-t bg-default", children: [
|
|
1999
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
2000
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "text-sm", children: [
|
|
2001
2001
|
"Showing ",
|
|
2002
|
-
/* @__PURE__ */ (0,
|
|
2002
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("span", { className: "font-semibold", children: [
|
|
2003
2003
|
startItem,
|
|
2004
2004
|
"-",
|
|
2005
2005
|
endItem
|
|
2006
2006
|
] }),
|
|
2007
2007
|
" ",
|
|
2008
2008
|
"out of ",
|
|
2009
|
-
/* @__PURE__ */ (0,
|
|
2009
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
2010
2010
|
" results"
|
|
2011
2011
|
] }),
|
|
2012
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
2013
|
-
/* @__PURE__ */ (0,
|
|
2012
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
2013
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
2014
2014
|
NavigationButton,
|
|
2015
2015
|
{
|
|
2016
2016
|
page: activePageNumber - 1,
|
|
2017
2017
|
disabled: activePageNumber === 1,
|
|
2018
2018
|
children: [
|
|
2019
|
-
/* @__PURE__ */ (0,
|
|
2020
|
-
/* @__PURE__ */ (0,
|
|
2019
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
|
|
2020
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm", children: "Prev" })
|
|
2021
2021
|
]
|
|
2022
2022
|
}
|
|
2023
2023
|
),
|
|
2024
2024
|
paginationRange.map((item, index) => {
|
|
2025
2025
|
if (item === "...") {
|
|
2026
|
-
return /* @__PURE__ */ (0,
|
|
2026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2027
2027
|
"span",
|
|
2028
2028
|
{
|
|
2029
2029
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -2033,23 +2033,23 @@ var init_Pagination = __esm({
|
|
|
2033
2033
|
);
|
|
2034
2034
|
}
|
|
2035
2035
|
const page = item;
|
|
2036
|
-
return /* @__PURE__ */ (0,
|
|
2036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(PageButton, { page, children: page }, page);
|
|
2037
2037
|
}),
|
|
2038
|
-
/* @__PURE__ */ (0,
|
|
2038
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
2039
2039
|
NavigationButton,
|
|
2040
2040
|
{
|
|
2041
2041
|
page: activePageNumber + 1,
|
|
2042
2042
|
disabled: activePageNumber === totalPages,
|
|
2043
2043
|
children: [
|
|
2044
|
-
/* @__PURE__ */ (0,
|
|
2045
|
-
/* @__PURE__ */ (0,
|
|
2044
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm", children: "Next" }),
|
|
2045
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
|
|
2046
2046
|
]
|
|
2047
2047
|
}
|
|
2048
2048
|
)
|
|
2049
2049
|
] }),
|
|
2050
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
2051
|
-
/* @__PURE__ */ (0,
|
|
2052
|
-
/* @__PURE__ */ (0,
|
|
2050
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
2051
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm", children: "Go to:" }),
|
|
2052
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2053
2053
|
"input",
|
|
2054
2054
|
{
|
|
2055
2055
|
type: "number",
|
|
@@ -2070,9 +2070,9 @@ var init_Pagination = __esm({
|
|
|
2070
2070
|
) })
|
|
2071
2071
|
] })
|
|
2072
2072
|
] }),
|
|
2073
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
2074
|
-
/* @__PURE__ */ (0,
|
|
2075
|
-
/* @__PURE__ */ (0,
|
|
2073
|
+
showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
|
|
2074
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm", children: "Show:" }),
|
|
2075
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
2076
2076
|
Hyperlink,
|
|
2077
2077
|
{
|
|
2078
2078
|
className: `
|
|
@@ -2084,7 +2084,7 @@ var init_Pagination = __esm({
|
|
|
2084
2084
|
},
|
|
2085
2085
|
size
|
|
2086
2086
|
)) }),
|
|
2087
|
-
/* @__PURE__ */ (0,
|
|
2087
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "text-sm", children: "per page" })
|
|
2088
2088
|
] }) })
|
|
2089
2089
|
] });
|
|
2090
2090
|
};
|
|
@@ -2097,13 +2097,13 @@ var Slider_exports = {};
|
|
|
2097
2097
|
__export(Slider_exports, {
|
|
2098
2098
|
default: () => Slider_default
|
|
2099
2099
|
});
|
|
2100
|
-
var
|
|
2100
|
+
var import_react32, import_jsx_runtime52, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
2101
2101
|
var init_Slider = __esm({
|
|
2102
2102
|
"src/components/Slider.tsx"() {
|
|
2103
2103
|
"use strict";
|
|
2104
2104
|
"use client";
|
|
2105
|
-
|
|
2106
|
-
|
|
2105
|
+
import_react32 = __toESM(require("react"));
|
|
2106
|
+
import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2107
2107
|
Slider = ({
|
|
2108
2108
|
children,
|
|
2109
2109
|
slidesToShow = 4,
|
|
@@ -2121,13 +2121,13 @@ var init_Slider = __esm({
|
|
|
2121
2121
|
pillStyle = "cumulative",
|
|
2122
2122
|
progressPosition = "bottom"
|
|
2123
2123
|
}) => {
|
|
2124
|
-
const [currentSlide, setCurrentSlide] = (0,
|
|
2125
|
-
const [transition, setTransition] = (0,
|
|
2126
|
-
const [slidesToShowState, setSlidesToShowState] = (0,
|
|
2124
|
+
const [currentSlide, setCurrentSlide] = (0, import_react32.useState)(0);
|
|
2125
|
+
const [transition, setTransition] = (0, import_react32.useState)(true);
|
|
2126
|
+
const [slidesToShowState, setSlidesToShowState] = (0, import_react32.useState)(
|
|
2127
2127
|
typeof slidesToShow === "number" ? slidesToShow : slidesToShow.large
|
|
2128
2128
|
);
|
|
2129
|
-
const [isPlaying, setIsPlaying] = (0,
|
|
2130
|
-
(0,
|
|
2129
|
+
const [isPlaying, setIsPlaying] = (0, import_react32.useState)(autoplay);
|
|
2130
|
+
(0, import_react32.useEffect)(() => {
|
|
2131
2131
|
if (typeof slidesToShow === "number") return;
|
|
2132
2132
|
const handleResize = () => {
|
|
2133
2133
|
if (window.innerWidth >= 1024) {
|
|
@@ -2142,7 +2142,7 @@ var init_Slider = __esm({
|
|
|
2142
2142
|
window.addEventListener("resize", handleResize);
|
|
2143
2143
|
return () => window.removeEventListener("resize", handleResize);
|
|
2144
2144
|
}, [slidesToShow]);
|
|
2145
|
-
(0,
|
|
2145
|
+
(0, import_react32.useEffect)(() => {
|
|
2146
2146
|
if (!autoplay) return;
|
|
2147
2147
|
const timer = setInterval(() => {
|
|
2148
2148
|
if (isPlaying) {
|
|
@@ -2151,7 +2151,7 @@ var init_Slider = __esm({
|
|
|
2151
2151
|
}, autoplay_speed);
|
|
2152
2152
|
return () => clearInterval(timer);
|
|
2153
2153
|
}, [autoplay, autoplay_speed, currentSlide, isPlaying]);
|
|
2154
|
-
const totalSlides =
|
|
2154
|
+
const totalSlides = import_react32.Children.count(children);
|
|
2155
2155
|
const maxSlide = totalSlides - slidesToShowState;
|
|
2156
2156
|
const nextSlide = () => {
|
|
2157
2157
|
if (currentSlide >= maxSlide) {
|
|
@@ -2196,16 +2196,16 @@ var init_Slider = __esm({
|
|
|
2196
2196
|
}
|
|
2197
2197
|
};
|
|
2198
2198
|
const translateX = -currentSlide * (100 / slidesToShowState);
|
|
2199
|
-
const slides =
|
|
2200
|
-
if (!
|
|
2199
|
+
const slides = import_react32.Children.map(children, (child, index) => {
|
|
2200
|
+
if (!import_react32.default.isValidElement(child)) return null;
|
|
2201
2201
|
const childProps = child.props;
|
|
2202
2202
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
2203
|
-
return /* @__PURE__ */ (0,
|
|
2203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2204
2204
|
"div",
|
|
2205
2205
|
{
|
|
2206
2206
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
2207
2207
|
style: { width: `calc(${100 / slidesToShowState}%)`, paddingRight: gap },
|
|
2208
|
-
children: (0,
|
|
2208
|
+
children: (0, import_react32.cloneElement)(child, {
|
|
2209
2209
|
className: mergedClassName
|
|
2210
2210
|
})
|
|
2211
2211
|
},
|
|
@@ -2223,14 +2223,14 @@ var init_Slider = __esm({
|
|
|
2223
2223
|
return "bottom-4";
|
|
2224
2224
|
}
|
|
2225
2225
|
};
|
|
2226
|
-
return /* @__PURE__ */ (0,
|
|
2226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
2227
2227
|
"div",
|
|
2228
2228
|
{
|
|
2229
2229
|
className: `relative w-full overflow-hidden ${className}`,
|
|
2230
2230
|
onMouseEnter: handleMouseEnter,
|
|
2231
2231
|
onMouseLeave: handleMouseLeave,
|
|
2232
2232
|
children: [
|
|
2233
|
-
/* @__PURE__ */ (0,
|
|
2233
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2234
2234
|
"div",
|
|
2235
2235
|
{
|
|
2236
2236
|
className: "flex h-full",
|
|
@@ -2241,18 +2241,18 @@ var init_Slider = __esm({
|
|
|
2241
2241
|
children: slides
|
|
2242
2242
|
}
|
|
2243
2243
|
),
|
|
2244
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
2245
|
-
/* @__PURE__ */ (0,
|
|
2244
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
|
|
2245
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2246
2246
|
ArrowButton,
|
|
2247
2247
|
{
|
|
2248
2248
|
direction: "left",
|
|
2249
2249
|
onClick: prevSlide,
|
|
2250
2250
|
visible: infinite_scroll || currentSlide > 0,
|
|
2251
2251
|
className: arrowClassName,
|
|
2252
|
-
children: /* @__PURE__ */ (0,
|
|
2252
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
|
|
2253
2253
|
}
|
|
2254
2254
|
),
|
|
2255
|
-
/* @__PURE__ */ (0,
|
|
2255
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
2256
2256
|
ArrowButton,
|
|
2257
2257
|
{
|
|
2258
2258
|
direction: "right",
|
|
@@ -2260,13 +2260,13 @@ var init_Slider = __esm({
|
|
|
2260
2260
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
2261
2261
|
className: arrowClassName,
|
|
2262
2262
|
children: [
|
|
2263
|
-
/* @__PURE__ */ (0,
|
|
2263
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: "w-6 h-6", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
|
|
2264
2264
|
" "
|
|
2265
2265
|
]
|
|
2266
2266
|
}
|
|
2267
2267
|
)
|
|
2268
2268
|
] }),
|
|
2269
|
-
show_dots && /* @__PURE__ */ (0,
|
|
2269
|
+
show_dots && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: `absolute left-1/2 -translate-x-1/2 flex justify-center space-x-1.5 ${getProgressPositionClass()}`, children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2270
2270
|
ProgressPill,
|
|
2271
2271
|
{
|
|
2272
2272
|
active: index === currentSlide,
|
|
@@ -2292,7 +2292,7 @@ var init_Slider = __esm({
|
|
|
2292
2292
|
visible,
|
|
2293
2293
|
children,
|
|
2294
2294
|
className = ""
|
|
2295
|
-
}) => /* @__PURE__ */ (0,
|
|
2295
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2296
2296
|
"button",
|
|
2297
2297
|
{
|
|
2298
2298
|
className: `
|
|
@@ -2318,13 +2318,13 @@ var init_Slider = __esm({
|
|
|
2318
2318
|
currentSlide,
|
|
2319
2319
|
totalSlides
|
|
2320
2320
|
}) => {
|
|
2321
|
-
const [progress, setProgress] = (0,
|
|
2322
|
-
(0,
|
|
2321
|
+
const [progress, setProgress] = (0, import_react32.useState)(0);
|
|
2322
|
+
(0, import_react32.useEffect)(() => {
|
|
2323
2323
|
if (active) {
|
|
2324
2324
|
setProgress(0);
|
|
2325
2325
|
}
|
|
2326
2326
|
}, [active, index]);
|
|
2327
|
-
(0,
|
|
2327
|
+
(0, import_react32.useEffect)(() => {
|
|
2328
2328
|
if (!active || !isPlaying) {
|
|
2329
2329
|
if (!active) {
|
|
2330
2330
|
setProgress(0);
|
|
@@ -2379,7 +2379,7 @@ var init_Slider = __esm({
|
|
|
2379
2379
|
const renderProgressBar = () => {
|
|
2380
2380
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
2381
2381
|
const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
|
|
2382
|
-
return /* @__PURE__ */ (0,
|
|
2382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2383
2383
|
"div",
|
|
2384
2384
|
{
|
|
2385
2385
|
className: `absolute top-0 left-0 h-full rounded-full ${style === "cumulative" && isFilled ? activeClassName || "bg-white" : activeClassName || "bg-white"} transition-all duration-50 ease-linear`,
|
|
@@ -2391,7 +2391,7 @@ var init_Slider = __esm({
|
|
|
2391
2391
|
};
|
|
2392
2392
|
const renderCumulativeFill = () => {
|
|
2393
2393
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
2394
|
-
return /* @__PURE__ */ (0,
|
|
2394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2395
2395
|
"div",
|
|
2396
2396
|
{
|
|
2397
2397
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -2401,7 +2401,7 @@ var init_Slider = __esm({
|
|
|
2401
2401
|
}
|
|
2402
2402
|
return null;
|
|
2403
2403
|
};
|
|
2404
|
-
return /* @__PURE__ */ (0,
|
|
2404
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
2405
2405
|
"button",
|
|
2406
2406
|
{
|
|
2407
2407
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -2429,10 +2429,10 @@ __export(server_exports, {
|
|
|
2429
2429
|
module.exports = __toCommonJS(server_exports);
|
|
2430
2430
|
|
|
2431
2431
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2432
|
-
var
|
|
2432
|
+
var import_react34 = __toESM(require("react"));
|
|
2433
2433
|
|
|
2434
2434
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
2435
|
-
var
|
|
2435
|
+
var import_react21 = __toESM(require("react"));
|
|
2436
2436
|
|
|
2437
2437
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
2438
2438
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -2895,27 +2895,33 @@ var EquationNode = ({ node }) => {
|
|
|
2895
2895
|
var EquationNode_default = EquationNode;
|
|
2896
2896
|
|
|
2897
2897
|
// src/components/controls/view/ViewControl.tsx
|
|
2898
|
-
var
|
|
2898
|
+
var import_react20 = __toESM(require("react"));
|
|
2899
2899
|
|
|
2900
2900
|
// src/components/controls/view/ViewControlTypes.tsx
|
|
2901
2901
|
var ViewControlTypes = {
|
|
2902
2902
|
lineText: "lineText",
|
|
2903
|
+
emailText: "email",
|
|
2903
2904
|
asset: "asset",
|
|
2904
2905
|
multilineTextBullets: "multilineTextBullets",
|
|
2905
2906
|
boolean: "boolean",
|
|
2907
|
+
checkboxInput: "boolean",
|
|
2906
2908
|
money: "money",
|
|
2907
2909
|
date: "date",
|
|
2908
2910
|
time: "time",
|
|
2909
2911
|
datetime: "datetime",
|
|
2910
2912
|
number: "number",
|
|
2911
2913
|
multilineText: "multilineText",
|
|
2914
|
+
multilinetext: "multilinetext",
|
|
2912
2915
|
moneyText: "moneyText",
|
|
2913
2916
|
percentage: "percentage",
|
|
2917
|
+
status: "status",
|
|
2914
2918
|
statusBg: "statusBg",
|
|
2915
2919
|
progressIndicator: "progressIndicator",
|
|
2916
2920
|
timeUntilStarts: "timeUntilStarts",
|
|
2917
2921
|
timeUntilStartsStyled: "timeUntilStartsStyled",
|
|
2918
|
-
aiGeneratedSummary: "aiGeneratedSummary"
|
|
2922
|
+
aiGeneratedSummary: "aiGeneratedSummary",
|
|
2923
|
+
booleanView: "booleanView",
|
|
2924
|
+
text: "text"
|
|
2919
2925
|
};
|
|
2920
2926
|
var ViewControlTypes_default = ViewControlTypes;
|
|
2921
2927
|
|
|
@@ -3018,8 +3024,32 @@ var LineText = (props) => {
|
|
|
3018
3024
|
};
|
|
3019
3025
|
var LineTextView_default = LineText;
|
|
3020
3026
|
|
|
3021
|
-
// src/components/controls/view/
|
|
3027
|
+
// src/components/controls/view/EmailTextView.tsx
|
|
3022
3028
|
var import_react12 = __toESM(require("react"));
|
|
3029
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
3030
|
+
var EmailText = (props) => {
|
|
3031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react12.default.Fragment, { children: props.value });
|
|
3032
|
+
};
|
|
3033
|
+
var EmailTextView_default = EmailText;
|
|
3034
|
+
|
|
3035
|
+
// src/components/controls/view/StatusBgView.tsx
|
|
3036
|
+
var import_react13 = __toESM(require("react"));
|
|
3037
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
3038
|
+
var StatusBg = (props) => {
|
|
3039
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react13.default.Fragment, { children: props.value && props.value != "" && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("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 }) });
|
|
3040
|
+
};
|
|
3041
|
+
var StatusBgView_default = StatusBg;
|
|
3042
|
+
|
|
3043
|
+
// src/components/controls/view/StatusView.tsx
|
|
3044
|
+
var import_react14 = __toESM(require("react"));
|
|
3045
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
3046
|
+
var Status = (props) => {
|
|
3047
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react14.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "capitalize font-semibold rounded text-status text-status-" + props.value, children: props.value }) });
|
|
3048
|
+
};
|
|
3049
|
+
var StatusView_default = Status;
|
|
3050
|
+
|
|
3051
|
+
// src/components/controls/view/MoneyView.tsx
|
|
3052
|
+
var import_react15 = __toESM(require("react"));
|
|
3023
3053
|
|
|
3024
3054
|
// src/components/utilities/CurrencyUtility.tsx
|
|
3025
3055
|
var CurrencyUtility = class {
|
|
@@ -3040,40 +3070,40 @@ var CurrencyUtility = class {
|
|
|
3040
3070
|
var CurrencyUtility_default = CurrencyUtility;
|
|
3041
3071
|
|
|
3042
3072
|
// src/components/controls/view/MoneyView.tsx
|
|
3043
|
-
var
|
|
3073
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
3044
3074
|
var Money = (props) => {
|
|
3045
3075
|
const parsedNumber = parseFloat(props.value);
|
|
3046
|
-
return /* @__PURE__ */ (0,
|
|
3047
|
-
/* @__PURE__ */ (0,
|
|
3076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react15.default.Fragment, { children: !Number.isNaN(parsedNumber) && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react15.default.Fragment, { children: [
|
|
3077
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "mr-0.5", children: CurrencyUtility_default.getCurrencySymbol(props.unit) }),
|
|
3048
3078
|
parsedNumber.toLocaleString()
|
|
3049
3079
|
] }) });
|
|
3050
3080
|
};
|
|
3051
3081
|
var MoneyView_default = Money;
|
|
3052
3082
|
|
|
3053
3083
|
// src/components/controls/view/MultilineTextBulletsView.tsx
|
|
3054
|
-
var
|
|
3055
|
-
var
|
|
3084
|
+
var import_react16 = __toESM(require("react"));
|
|
3085
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
3056
3086
|
var MultilineTextBullets = (props) => {
|
|
3057
3087
|
const lines = props.value?.split("\\n");
|
|
3058
|
-
return /* @__PURE__ */ (0,
|
|
3059
|
-
return /* @__PURE__ */ (0,
|
|
3088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react16.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("ul", { className: "list-disc", children: lines && lines.map((line, index) => {
|
|
3089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("li", { children: line }, index);
|
|
3060
3090
|
}) }) });
|
|
3061
3091
|
};
|
|
3062
3092
|
var MultilineTextBulletsView_default = MultilineTextBullets;
|
|
3063
3093
|
|
|
3064
3094
|
// src/components/controls/view/MultilineTextView.tsx
|
|
3065
|
-
var
|
|
3066
|
-
var
|
|
3095
|
+
var import_react17 = __toESM(require("react"));
|
|
3096
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
3067
3097
|
var MultilineText = (props) => {
|
|
3068
|
-
return /* @__PURE__ */ (0,
|
|
3098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react17.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "whitespace-pre-line", children: props.value }) });
|
|
3069
3099
|
};
|
|
3070
3100
|
var MultilineTextView_default = MultilineText;
|
|
3071
3101
|
|
|
3072
3102
|
// src/components/controls/view/PercentageView.tsx
|
|
3073
|
-
var
|
|
3074
|
-
var
|
|
3103
|
+
var import_react18 = __toESM(require("react"));
|
|
3104
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3075
3105
|
var PercentageView = (props) => {
|
|
3076
|
-
return /* @__PURE__ */ (0,
|
|
3106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_react18.default.Fragment, { children: [
|
|
3077
3107
|
props.value,
|
|
3078
3108
|
"%"
|
|
3079
3109
|
] });
|
|
@@ -3081,16 +3111,16 @@ var PercentageView = (props) => {
|
|
|
3081
3111
|
var PercentageView_default = PercentageView;
|
|
3082
3112
|
|
|
3083
3113
|
// src/components/controls/view/ProgressIndicator.tsx
|
|
3084
|
-
var
|
|
3085
|
-
var
|
|
3114
|
+
var import_react19 = __toESM(require("react"));
|
|
3115
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3086
3116
|
var ProgressIndicator = (props) => {
|
|
3087
3117
|
const percentage = 100;
|
|
3088
3118
|
const circumference = Math.PI * 56;
|
|
3089
3119
|
const offset = circumference * (1 - percentage / 100);
|
|
3090
|
-
return /* @__PURE__ */ (0,
|
|
3091
|
-
/* @__PURE__ */ (0,
|
|
3092
|
-
/* @__PURE__ */ (0,
|
|
3093
|
-
/* @__PURE__ */ (0,
|
|
3120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react19.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "relative w-48 h-48", children: [
|
|
3121
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "absolute top-0 left-0 w-full h-full rounded-full border border-gray-200" }),
|
|
3122
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "absolute top-0 left-0 w-full h-full rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("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)` } }) }),
|
|
3123
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("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__ */ (0, import_jsx_runtime26.jsxs)("span", { children: [
|
|
3094
3124
|
percentage,
|
|
3095
3125
|
"%"
|
|
3096
3126
|
] }) })
|
|
@@ -3099,18 +3129,18 @@ var ProgressIndicator = (props) => {
|
|
|
3099
3129
|
var ProgressIndicator_default = ProgressIndicator;
|
|
3100
3130
|
|
|
3101
3131
|
// src/components/controls/view/AiGeneratedSummary.tsx
|
|
3102
|
-
var
|
|
3132
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3103
3133
|
var AiGeneratedSummary = (props) => {
|
|
3104
3134
|
const lines = props.value?.split("\n").filter((line) => line.trim() !== "") || [];
|
|
3105
|
-
return /* @__PURE__ */ (0,
|
|
3106
|
-
/* @__PURE__ */ (0,
|
|
3107
|
-
/* @__PURE__ */ (0,
|
|
3108
|
-
/* @__PURE__ */ (0,
|
|
3109
|
-
/* @__PURE__ */ (0,
|
|
3110
|
-
/* @__PURE__ */ (0,
|
|
3135
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("details", { className: "group rounded-xl border-2 bg-white shadow-sm border-p overflow-hidden", children: [
|
|
3136
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("summary", { className: "flex items-start justify-between cursor-pointer list-none", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-start gap-3 ", children: [
|
|
3137
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "bg-primary-base bg-transparent rounded mt-1 p-1", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("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__ */ (0, import_jsx_runtime27.jsx)("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" }) }) }),
|
|
3138
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { children: [
|
|
3139
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("h3", { className: "text-lg font-semibold ", children: "Quick Read" }),
|
|
3140
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-sm text-gray-500 mb-0", children: "Summary is AI-generated, author-reviewed" })
|
|
3111
3141
|
] })
|
|
3112
3142
|
] }) }),
|
|
3113
|
-
/* @__PURE__ */ (0,
|
|
3143
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("ul", { className: "list-disc pl-6 space-y-3 text-gray-700 ps-4 pl-4", children: lines.map((line, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("li", { className: "m-0", children: line }, index)) }) })
|
|
3114
3144
|
] });
|
|
3115
3145
|
};
|
|
3116
3146
|
var AiGeneratedSummary_default = AiGeneratedSummary;
|
|
@@ -3123,13 +3153,15 @@ var DateTimeView = (0, import_dynamic5.default)(() => Promise.resolve().then(()
|
|
|
3123
3153
|
var DateTimeVew_default = DateTimeView;
|
|
3124
3154
|
|
|
3125
3155
|
// src/components/controls/view/ViewControl.tsx
|
|
3126
|
-
var
|
|
3156
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3127
3157
|
var ViewControl = (props) => {
|
|
3128
3158
|
const ControlComponents = {
|
|
3129
3159
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
3160
|
+
[ViewControlTypes_default.emailText]: EmailTextView_default,
|
|
3130
3161
|
[ViewControlTypes_default.asset]: Asset_default,
|
|
3131
3162
|
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
3132
3163
|
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
3164
|
+
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
3133
3165
|
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
3134
3166
|
[ViewControlTypes_default.money]: MoneyView_default,
|
|
3135
3167
|
[ViewControlTypes_default.date]: DateView_default,
|
|
@@ -3137,21 +3169,25 @@ var ViewControl = (props) => {
|
|
|
3137
3169
|
[ViewControlTypes_default.datetime]: DateTimeVew_default,
|
|
3138
3170
|
[ViewControlTypes_default.number]: NumberView_default,
|
|
3139
3171
|
[ViewControlTypes_default.multilineText]: MultilineTextView_default,
|
|
3172
|
+
[ViewControlTypes_default.multilinetext]: MultilineTextView_default,
|
|
3140
3173
|
[ViewControlTypes_default.moneyText]: MoneyView_default,
|
|
3141
3174
|
[ViewControlTypes_default.percentage]: PercentageView_default,
|
|
3142
|
-
|
|
3175
|
+
[ViewControlTypes_default.status]: StatusView_default,
|
|
3176
|
+
[ViewControlTypes_default.statusBg]: StatusBgView_default,
|
|
3143
3177
|
[ViewControlTypes_default.progressIndicator]: ProgressIndicator_default,
|
|
3144
3178
|
// [ViewControlTypes.timeUntilStarts]: TimeUntilStarts,
|
|
3145
3179
|
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
3146
|
-
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default
|
|
3180
|
+
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
3181
|
+
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
3182
|
+
[ViewControlTypes_default.text]: LineTextView_default
|
|
3147
3183
|
};
|
|
3148
3184
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
3149
|
-
return /* @__PURE__ */ (0,
|
|
3185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react20.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
3150
3186
|
};
|
|
3151
3187
|
var ViewControl_default = ViewControl;
|
|
3152
3188
|
|
|
3153
3189
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
3154
|
-
var
|
|
3190
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3155
3191
|
function getNestedProperty(obj, path) {
|
|
3156
3192
|
if (!obj || !path) return null;
|
|
3157
3193
|
if (path.includes(".")) {
|
|
@@ -3164,7 +3200,7 @@ function getNestedProperty(obj, path) {
|
|
|
3164
3200
|
}
|
|
3165
3201
|
const value = obj[path];
|
|
3166
3202
|
if (Array.isArray(value)) {
|
|
3167
|
-
return value.map((item, index) => /* @__PURE__ */ (0,
|
|
3203
|
+
return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { children: String(item) }, index));
|
|
3168
3204
|
}
|
|
3169
3205
|
return value;
|
|
3170
3206
|
}
|
|
@@ -3225,7 +3261,7 @@ var DatafieldNode = (props) => {
|
|
|
3225
3261
|
const dataType = props.node.dataType;
|
|
3226
3262
|
if (isEmptyValue) return null;
|
|
3227
3263
|
if (dataType === "rawContent") {
|
|
3228
|
-
return /* @__PURE__ */ (0,
|
|
3264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3229
3265
|
PageBodyRenderer_default,
|
|
3230
3266
|
{
|
|
3231
3267
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -3241,12 +3277,12 @@ var DatafieldNode = (props) => {
|
|
|
3241
3277
|
}
|
|
3242
3278
|
);
|
|
3243
3279
|
}
|
|
3244
|
-
return /* @__PURE__ */ (0,
|
|
3280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3245
3281
|
"span",
|
|
3246
3282
|
{
|
|
3247
3283
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
3248
3284
|
style: styles,
|
|
3249
|
-
children: /* @__PURE__ */ (0,
|
|
3285
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3250
3286
|
ViewControl_default,
|
|
3251
3287
|
{
|
|
3252
3288
|
controlType: dataType,
|
|
@@ -3259,7 +3295,7 @@ var DatafieldNode = (props) => {
|
|
|
3259
3295
|
var DatafieldNode_default = DatafieldNode;
|
|
3260
3296
|
|
|
3261
3297
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
3262
|
-
var
|
|
3298
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3263
3299
|
var ParagraphNode = (props) => {
|
|
3264
3300
|
const NodeTypes2 = {
|
|
3265
3301
|
["text"]: TextNode_default,
|
|
@@ -3279,9 +3315,9 @@ var ParagraphNode = (props) => {
|
|
|
3279
3315
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
3280
3316
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
3281
3317
|
if (isInlineOnlyParent) {
|
|
3282
|
-
return /* @__PURE__ */ (0,
|
|
3318
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
|
|
3283
3319
|
const SelectedNode = NodeTypes2[node.type];
|
|
3284
|
-
return /* @__PURE__ */ (0,
|
|
3320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react21.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3285
3321
|
SelectedNode,
|
|
3286
3322
|
{
|
|
3287
3323
|
node,
|
|
@@ -3293,10 +3329,10 @@ var ParagraphNode = (props) => {
|
|
|
3293
3329
|
) }, index);
|
|
3294
3330
|
}) });
|
|
3295
3331
|
}
|
|
3296
|
-
return /* @__PURE__ */ (0,
|
|
3332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: " " + formatClasses, children: [
|
|
3297
3333
|
hasChildren && props.node.children.map((node, index) => {
|
|
3298
3334
|
const SelectedNode = NodeTypes2[node.type];
|
|
3299
|
-
return /* @__PURE__ */ (0,
|
|
3335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react21.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3300
3336
|
SelectedNode,
|
|
3301
3337
|
{
|
|
3302
3338
|
node,
|
|
@@ -3307,14 +3343,14 @@ var ParagraphNode = (props) => {
|
|
|
3307
3343
|
}
|
|
3308
3344
|
) }, index);
|
|
3309
3345
|
}),
|
|
3310
|
-
!hasChildren && /* @__PURE__ */ (0,
|
|
3346
|
+
!hasChildren && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "py-1.5 lg:py-2" })
|
|
3311
3347
|
] });
|
|
3312
3348
|
};
|
|
3313
3349
|
var ParagraphNode_default = ParagraphNode;
|
|
3314
3350
|
|
|
3315
3351
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
3316
|
-
var
|
|
3317
|
-
var
|
|
3352
|
+
var import_react22 = __toESM(require("react"));
|
|
3353
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3318
3354
|
var HeadingNode = (props) => {
|
|
3319
3355
|
const NodeTypes2 = {
|
|
3320
3356
|
["text"]: TextNode_default,
|
|
@@ -3330,23 +3366,23 @@ var HeadingNode = (props) => {
|
|
|
3330
3366
|
{
|
|
3331
3367
|
}
|
|
3332
3368
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
3333
|
-
return /* @__PURE__ */ (0,
|
|
3369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: import_react22.default.createElement(
|
|
3334
3370
|
HeadingTag,
|
|
3335
3371
|
{ className: formatClasses },
|
|
3336
3372
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
3337
3373
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
3338
|
-
return /* @__PURE__ */ (0,
|
|
3374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
3339
3375
|
})
|
|
3340
3376
|
) });
|
|
3341
3377
|
};
|
|
3342
3378
|
var HeadingNode_default = HeadingNode;
|
|
3343
3379
|
|
|
3344
3380
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
3345
|
-
var
|
|
3381
|
+
var import_react24 = __toESM(require("react"));
|
|
3346
3382
|
|
|
3347
3383
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
3348
|
-
var
|
|
3349
|
-
var
|
|
3384
|
+
var import_react23 = __toESM(require("react"));
|
|
3385
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3350
3386
|
var ListItemNode = (props) => {
|
|
3351
3387
|
const NodeTypes2 = {
|
|
3352
3388
|
text: TextNode_default,
|
|
@@ -3363,66 +3399,66 @@ var ListItemNode = (props) => {
|
|
|
3363
3399
|
liStyle.fontSize = match[1].trim();
|
|
3364
3400
|
}
|
|
3365
3401
|
}
|
|
3366
|
-
return /* @__PURE__ */ (0,
|
|
3402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
3367
3403
|
const SelectedNode = NodeTypes2[node.type];
|
|
3368
3404
|
if (node.type === "linebreak") {
|
|
3369
3405
|
if (!foundFirstBreak) {
|
|
3370
3406
|
foundFirstBreak = true;
|
|
3371
|
-
return /* @__PURE__ */ (0,
|
|
3407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", {}, index);
|
|
3372
3408
|
} else {
|
|
3373
|
-
return /* @__PURE__ */ (0,
|
|
3409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "py-1 lg:py-2" }, index);
|
|
3374
3410
|
}
|
|
3375
3411
|
} else {
|
|
3376
3412
|
foundFirstBreak = false;
|
|
3377
|
-
return /* @__PURE__ */ (0,
|
|
3413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react23.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
3378
3414
|
}
|
|
3379
3415
|
}) });
|
|
3380
3416
|
};
|
|
3381
3417
|
var ListItemNode_default = ListItemNode;
|
|
3382
3418
|
|
|
3383
3419
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
3384
|
-
var
|
|
3420
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3385
3421
|
var ListNode = (props) => {
|
|
3386
3422
|
const NodeTypes2 = {
|
|
3387
3423
|
listitem: ListItemNode_default
|
|
3388
3424
|
};
|
|
3389
|
-
return /* @__PURE__ */ (0,
|
|
3390
|
-
props.node.listType == "bullet" && /* @__PURE__ */ (0,
|
|
3425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_react24.default.Fragment, { children: [
|
|
3426
|
+
props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
3391
3427
|
const SelectedNode = NodeTypes2[node.type];
|
|
3392
|
-
return /* @__PURE__ */ (0,
|
|
3428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react24.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
3393
3429
|
}) }),
|
|
3394
|
-
props.node.listType == "number" && /* @__PURE__ */ (0,
|
|
3430
|
+
props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
3395
3431
|
const SelectedNode = NodeTypes2[node.type];
|
|
3396
|
-
return /* @__PURE__ */ (0,
|
|
3432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react24.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
3397
3433
|
}) })
|
|
3398
3434
|
] });
|
|
3399
3435
|
};
|
|
3400
3436
|
var ListNode_default = ListNode;
|
|
3401
3437
|
|
|
3402
3438
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
3403
|
-
var
|
|
3404
|
-
var
|
|
3439
|
+
var import_react25 = __toESM(require("react"));
|
|
3440
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3405
3441
|
var QuoteNode = (props) => {
|
|
3406
3442
|
const NodeTypes2 = {
|
|
3407
3443
|
["text"]: TextNode_default,
|
|
3408
3444
|
["linebreak"]: LineBreakNode_default,
|
|
3409
3445
|
["link"]: LinkNode_default
|
|
3410
3446
|
};
|
|
3411
|
-
return /* @__PURE__ */ (0,
|
|
3447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
3412
3448
|
const SelectedNode = NodeTypes2[node.type];
|
|
3413
|
-
return /* @__PURE__ */ (0,
|
|
3449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react25.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
3414
3450
|
}) });
|
|
3415
3451
|
};
|
|
3416
3452
|
var QuoteNode_default = QuoteNode;
|
|
3417
3453
|
|
|
3418
3454
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
3419
|
-
var
|
|
3455
|
+
var import_react27 = __toESM(require("react"));
|
|
3420
3456
|
var import_dynamic6 = __toESM(require("next/dynamic"));
|
|
3421
|
-
var
|
|
3457
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3422
3458
|
var CopyButton2 = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
|
|
3423
3459
|
ssr: false,
|
|
3424
3460
|
// optional: fallback UI while loading
|
|
3425
|
-
loading: () => /* @__PURE__ */ (0,
|
|
3461
|
+
loading: () => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
3426
3462
|
});
|
|
3427
3463
|
var CodeNode = (props) => {
|
|
3428
3464
|
const NodeTypes2 = {
|
|
@@ -3436,14 +3472,14 @@ var CodeNode = (props) => {
|
|
|
3436
3472
|
if (node.type === "link") return node.text || node.url || "";
|
|
3437
3473
|
return "";
|
|
3438
3474
|
}).join("") ?? "";
|
|
3439
|
-
return /* @__PURE__ */ (0,
|
|
3440
|
-
/* @__PURE__ */ (0,
|
|
3441
|
-
/* @__PURE__ */ (0,
|
|
3442
|
-
/* @__PURE__ */ (0,
|
|
3475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { children: [
|
|
3476
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
3477
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: "Code Snippet" }),
|
|
3478
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CopyButton2, { text: textContent })
|
|
3443
3479
|
] }),
|
|
3444
|
-
/* @__PURE__ */ (0,
|
|
3480
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("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) => {
|
|
3445
3481
|
const SelectedNode = NodeTypes2[node.type];
|
|
3446
|
-
return /* @__PURE__ */ (0,
|
|
3482
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react27.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3447
3483
|
SelectedNode,
|
|
3448
3484
|
{
|
|
3449
3485
|
node,
|
|
@@ -3458,15 +3494,15 @@ var CodeNode = (props) => {
|
|
|
3458
3494
|
var CodeNode_default = CodeNode;
|
|
3459
3495
|
|
|
3460
3496
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
3461
|
-
var
|
|
3497
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3462
3498
|
var HorizontalRuleNode = () => {
|
|
3463
|
-
return /* @__PURE__ */ (0,
|
|
3499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("hr", {});
|
|
3464
3500
|
};
|
|
3465
3501
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
3466
3502
|
|
|
3467
3503
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
3468
|
-
var
|
|
3469
|
-
var
|
|
3504
|
+
var import_react28 = __toESM(require("react"));
|
|
3505
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3470
3506
|
var WidgetNode = (props) => {
|
|
3471
3507
|
const getWidgetParameters = () => {
|
|
3472
3508
|
const widgetInputParameters = {
|
|
@@ -3530,7 +3566,7 @@ var WidgetNode = (props) => {
|
|
|
3530
3566
|
};
|
|
3531
3567
|
const widgetCode = props.node?.widgetCode;
|
|
3532
3568
|
if (!widgetCode) {
|
|
3533
|
-
return /* @__PURE__ */ (0,
|
|
3569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: "Invalid widget" });
|
|
3534
3570
|
}
|
|
3535
3571
|
const widgetParams = getWidgetParameters();
|
|
3536
3572
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -3539,7 +3575,7 @@ var WidgetNode = (props) => {
|
|
|
3539
3575
|
}
|
|
3540
3576
|
return (
|
|
3541
3577
|
// eslint-disable-next-line react-hooks/static-components
|
|
3542
|
-
/* @__PURE__ */ (0,
|
|
3578
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react28.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3543
3579
|
WidgetRenderer,
|
|
3544
3580
|
{
|
|
3545
3581
|
params: widgetParams,
|
|
@@ -3556,11 +3592,11 @@ var WidgetNode = (props) => {
|
|
|
3556
3592
|
var WidgetNode_default = WidgetNode;
|
|
3557
3593
|
|
|
3558
3594
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
3559
|
-
var
|
|
3595
|
+
var import_react33 = __toESM(require("react"));
|
|
3560
3596
|
|
|
3561
3597
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
3562
3598
|
var import_dynamic7 = __toESM(require("next/dynamic"));
|
|
3563
|
-
var
|
|
3599
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3564
3600
|
var IframeClient2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
3565
3601
|
ssr: false
|
|
3566
3602
|
});
|
|
@@ -3573,7 +3609,7 @@ var EmbedNode = (props) => {
|
|
|
3573
3609
|
} else {
|
|
3574
3610
|
src = props.node.embedSrc;
|
|
3575
3611
|
}
|
|
3576
|
-
return /* @__PURE__ */ (0,
|
|
3612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(IframeClient2, { src }) });
|
|
3577
3613
|
};
|
|
3578
3614
|
var EmbedNode_default = EmbedNode;
|
|
3579
3615
|
|
|
@@ -3751,10 +3787,10 @@ var PathUtility = class {
|
|
|
3751
3787
|
var PathUtility_default = new PathUtility();
|
|
3752
3788
|
|
|
3753
3789
|
// src/components/NoDataFound.tsx
|
|
3754
|
-
var
|
|
3790
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3755
3791
|
var NoDataFound = () => {
|
|
3756
|
-
return /* @__PURE__ */ (0,
|
|
3757
|
-
/* @__PURE__ */ (0,
|
|
3792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
3793
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3758
3794
|
"svg",
|
|
3759
3795
|
{
|
|
3760
3796
|
className: "w-10 h-10",
|
|
@@ -3762,7 +3798,7 @@ var NoDataFound = () => {
|
|
|
3762
3798
|
stroke: "currentColor",
|
|
3763
3799
|
viewBox: "0 0 24 24",
|
|
3764
3800
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3765
|
-
children: /* @__PURE__ */ (0,
|
|
3801
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3766
3802
|
"path",
|
|
3767
3803
|
{
|
|
3768
3804
|
strokeLinecap: "round",
|
|
@@ -3773,8 +3809,8 @@ var NoDataFound = () => {
|
|
|
3773
3809
|
)
|
|
3774
3810
|
}
|
|
3775
3811
|
) }) }),
|
|
3776
|
-
/* @__PURE__ */ (0,
|
|
3777
|
-
/* @__PURE__ */ (0,
|
|
3812
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
3813
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
3778
3814
|
] });
|
|
3779
3815
|
};
|
|
3780
3816
|
var NoDataFound_default = NoDataFound;
|
|
@@ -3784,7 +3820,7 @@ var import_dynamic9 = __toESM(require("next/dynamic"));
|
|
|
3784
3820
|
|
|
3785
3821
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
3786
3822
|
var import_dynamic8 = __toESM(require("next/dynamic"));
|
|
3787
|
-
var
|
|
3823
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3788
3824
|
var HlsPlayer4 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
3789
3825
|
var deviceToMediaQuery = (device) => {
|
|
3790
3826
|
switch (device) {
|
|
@@ -3913,8 +3949,8 @@ var ImageGalleryNode = (props) => {
|
|
|
3913
3949
|
right: "justify-end"
|
|
3914
3950
|
};
|
|
3915
3951
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
3916
|
-
return /* @__PURE__ */ (0,
|
|
3917
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0,
|
|
3952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
3953
|
+
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3918
3954
|
HlsPlayer4,
|
|
3919
3955
|
{
|
|
3920
3956
|
sources: hlsSources,
|
|
@@ -3929,7 +3965,7 @@ var ImageGalleryNode = (props) => {
|
|
|
3929
3965
|
styles: hlsStyles
|
|
3930
3966
|
}
|
|
3931
3967
|
) }),
|
|
3932
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0,
|
|
3968
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("picture", { children: [
|
|
3933
3969
|
DEVICE_ORDER.map((deviceKey) => {
|
|
3934
3970
|
const match = staticSources.find(
|
|
3935
3971
|
(img) => img.device === deviceKey
|
|
@@ -3941,7 +3977,7 @@ var ImageGalleryNode = (props) => {
|
|
|
3941
3977
|
if (!srcUrl) {
|
|
3942
3978
|
return null;
|
|
3943
3979
|
}
|
|
3944
|
-
return /* @__PURE__ */ (0,
|
|
3980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3945
3981
|
"source",
|
|
3946
3982
|
{
|
|
3947
3983
|
media: deviceToMediaQuery(match.device),
|
|
@@ -3965,7 +4001,7 @@ var ImageGalleryNode = (props) => {
|
|
|
3965
4001
|
if (img.borderRadius) {
|
|
3966
4002
|
styles.borderRadius = img.borderRadius;
|
|
3967
4003
|
}
|
|
3968
|
-
return /* @__PURE__ */ (0,
|
|
4004
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3969
4005
|
"img",
|
|
3970
4006
|
{
|
|
3971
4007
|
loading: "lazy",
|
|
@@ -3980,7 +4016,7 @@ var ImageGalleryNode = (props) => {
|
|
|
3980
4016
|
})()
|
|
3981
4017
|
] }) : (
|
|
3982
4018
|
/* Case 2: Only device-specific images exist */
|
|
3983
|
-
/* @__PURE__ */ (0,
|
|
4019
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: staticSources.map((img, index) => {
|
|
3984
4020
|
const imageUrl = resolveImageUrl(img);
|
|
3985
4021
|
if (!imageUrl) {
|
|
3986
4022
|
return null;
|
|
@@ -4006,7 +4042,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4006
4042
|
default:
|
|
4007
4043
|
display = "block";
|
|
4008
4044
|
}
|
|
4009
|
-
return /* @__PURE__ */ (0,
|
|
4045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4010
4046
|
"img",
|
|
4011
4047
|
{
|
|
4012
4048
|
loading: "lazy",
|
|
@@ -4146,28 +4182,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
4146
4182
|
};
|
|
4147
4183
|
|
|
4148
4184
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
4149
|
-
var
|
|
4185
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4150
4186
|
var getNestedValue5 = (obj, path) => {
|
|
4151
4187
|
if (!obj || !path) return void 0;
|
|
4152
4188
|
return path.split(".").reduce((current, key) => {
|
|
4153
4189
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
4154
4190
|
}, obj);
|
|
4155
4191
|
};
|
|
4156
|
-
var PdfIcon = () => /* @__PURE__ */ (0,
|
|
4192
|
+
var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4157
4193
|
"svg",
|
|
4158
4194
|
{
|
|
4159
4195
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4160
4196
|
viewBox: "0 0 48 48",
|
|
4161
4197
|
className: "w-10 h-10",
|
|
4162
4198
|
children: [
|
|
4163
|
-
/* @__PURE__ */ (0,
|
|
4199
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4164
4200
|
"path",
|
|
4165
4201
|
{
|
|
4166
4202
|
fill: "#e53935",
|
|
4167
4203
|
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"
|
|
4168
4204
|
}
|
|
4169
4205
|
),
|
|
4170
|
-
/* @__PURE__ */ (0,
|
|
4206
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4171
4207
|
"path",
|
|
4172
4208
|
{
|
|
4173
4209
|
fill: "#fff",
|
|
@@ -4177,55 +4213,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4177
4213
|
]
|
|
4178
4214
|
}
|
|
4179
4215
|
);
|
|
4180
|
-
var ExcelIcon = () => /* @__PURE__ */ (0,
|
|
4216
|
+
var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4181
4217
|
"svg",
|
|
4182
4218
|
{
|
|
4183
4219
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4184
4220
|
viewBox: "0 0 48 48",
|
|
4185
4221
|
className: "w-10 h-10",
|
|
4186
4222
|
children: [
|
|
4187
|
-
/* @__PURE__ */ (0,
|
|
4223
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4188
4224
|
"path",
|
|
4189
4225
|
{
|
|
4190
4226
|
fill: "#169154",
|
|
4191
4227
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
4192
4228
|
}
|
|
4193
4229
|
),
|
|
4194
|
-
/* @__PURE__ */ (0,
|
|
4230
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4195
4231
|
"path",
|
|
4196
4232
|
{
|
|
4197
4233
|
fill: "#18482a",
|
|
4198
4234
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
4199
4235
|
}
|
|
4200
4236
|
),
|
|
4201
|
-
/* @__PURE__ */ (0,
|
|
4202
|
-
/* @__PURE__ */ (0,
|
|
4203
|
-
/* @__PURE__ */ (0,
|
|
4204
|
-
/* @__PURE__ */ (0,
|
|
4237
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
4238
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
4239
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("g", { children: [
|
|
4240
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4205
4241
|
"path",
|
|
4206
4242
|
{
|
|
4207
4243
|
fill: "#29c27f",
|
|
4208
4244
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
4209
4245
|
}
|
|
4210
4246
|
),
|
|
4211
|
-
/* @__PURE__ */ (0,
|
|
4247
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4212
4248
|
"path",
|
|
4213
4249
|
{
|
|
4214
4250
|
fill: "#27663f",
|
|
4215
4251
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
4216
4252
|
}
|
|
4217
4253
|
),
|
|
4218
|
-
/* @__PURE__ */ (0,
|
|
4219
|
-
/* @__PURE__ */ (0,
|
|
4254
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
4255
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
4220
4256
|
] }),
|
|
4221
|
-
/* @__PURE__ */ (0,
|
|
4257
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4222
4258
|
"path",
|
|
4223
4259
|
{
|
|
4224
4260
|
fill: "#0c7238",
|
|
4225
4261
|
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"
|
|
4226
4262
|
}
|
|
4227
4263
|
),
|
|
4228
|
-
/* @__PURE__ */ (0,
|
|
4264
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4229
4265
|
"path",
|
|
4230
4266
|
{
|
|
4231
4267
|
fill: "#fff",
|
|
@@ -4235,7 +4271,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4235
4271
|
]
|
|
4236
4272
|
}
|
|
4237
4273
|
);
|
|
4238
|
-
var WordIcon = () => /* @__PURE__ */ (0,
|
|
4274
|
+
var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4239
4275
|
"svg",
|
|
4240
4276
|
{
|
|
4241
4277
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4243,14 +4279,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4243
4279
|
className: "w-10 h-10",
|
|
4244
4280
|
baseProfile: "basic",
|
|
4245
4281
|
children: [
|
|
4246
|
-
/* @__PURE__ */ (0,
|
|
4282
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4247
4283
|
"path",
|
|
4248
4284
|
{
|
|
4249
4285
|
fill: "#283593",
|
|
4250
4286
|
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"
|
|
4251
4287
|
}
|
|
4252
4288
|
),
|
|
4253
|
-
/* @__PURE__ */ (0,
|
|
4289
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4254
4290
|
"linearGradient",
|
|
4255
4291
|
{
|
|
4256
4292
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -4261,19 +4297,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4261
4297
|
gradientTransform: "translate(0 -339.89)",
|
|
4262
4298
|
gradientUnits: "userSpaceOnUse",
|
|
4263
4299
|
children: [
|
|
4264
|
-
/* @__PURE__ */ (0,
|
|
4265
|
-
/* @__PURE__ */ (0,
|
|
4300
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
4301
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
4266
4302
|
]
|
|
4267
4303
|
}
|
|
4268
4304
|
),
|
|
4269
|
-
/* @__PURE__ */ (0,
|
|
4305
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4270
4306
|
"path",
|
|
4271
4307
|
{
|
|
4272
4308
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
4273
4309
|
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"
|
|
4274
4310
|
}
|
|
4275
4311
|
),
|
|
4276
|
-
/* @__PURE__ */ (0,
|
|
4312
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4277
4313
|
"path",
|
|
4278
4314
|
{
|
|
4279
4315
|
fill: "#1e88e5",
|
|
@@ -4281,21 +4317,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4281
4317
|
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"
|
|
4282
4318
|
}
|
|
4283
4319
|
),
|
|
4284
|
-
/* @__PURE__ */ (0,
|
|
4320
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4285
4321
|
"path",
|
|
4286
4322
|
{
|
|
4287
4323
|
fill: "#00e5ff",
|
|
4288
4324
|
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"
|
|
4289
4325
|
}
|
|
4290
4326
|
),
|
|
4291
|
-
/* @__PURE__ */ (0,
|
|
4327
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4292
4328
|
"path",
|
|
4293
4329
|
{
|
|
4294
4330
|
fill: "#1565c0",
|
|
4295
4331
|
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"
|
|
4296
4332
|
}
|
|
4297
4333
|
),
|
|
4298
|
-
/* @__PURE__ */ (0,
|
|
4334
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4299
4335
|
"path",
|
|
4300
4336
|
{
|
|
4301
4337
|
fill: "#fff",
|
|
@@ -4305,42 +4341,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4305
4341
|
]
|
|
4306
4342
|
}
|
|
4307
4343
|
);
|
|
4308
|
-
var StandardIcon = () => /* @__PURE__ */ (0,
|
|
4344
|
+
var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4309
4345
|
"svg",
|
|
4310
4346
|
{
|
|
4311
4347
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4312
4348
|
viewBox: "0 0 48 48",
|
|
4313
4349
|
className: "w-10 h-10",
|
|
4314
4350
|
children: [
|
|
4315
|
-
/* @__PURE__ */ (0,
|
|
4316
|
-
/* @__PURE__ */ (0,
|
|
4351
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
4352
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
4317
4353
|
]
|
|
4318
4354
|
}
|
|
4319
4355
|
);
|
|
4320
|
-
var PowerPointIcon = () => /* @__PURE__ */ (0,
|
|
4356
|
+
var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4321
4357
|
"svg",
|
|
4322
4358
|
{
|
|
4323
4359
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4324
4360
|
viewBox: "0 0 48 48",
|
|
4325
4361
|
className: "w-10 h-10",
|
|
4326
4362
|
children: [
|
|
4327
|
-
/* @__PURE__ */ (0,
|
|
4363
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4328
4364
|
"path",
|
|
4329
4365
|
{
|
|
4330
4366
|
fill: "#dc4c2c",
|
|
4331
4367
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
4332
4368
|
}
|
|
4333
4369
|
),
|
|
4334
|
-
/* @__PURE__ */ (0,
|
|
4335
|
-
/* @__PURE__ */ (0,
|
|
4336
|
-
/* @__PURE__ */ (0,
|
|
4370
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
4371
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
4372
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4337
4373
|
"path",
|
|
4338
4374
|
{
|
|
4339
4375
|
fill: "#9b341f",
|
|
4340
4376
|
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"
|
|
4341
4377
|
}
|
|
4342
4378
|
),
|
|
4343
|
-
/* @__PURE__ */ (0,
|
|
4379
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4344
4380
|
"path",
|
|
4345
4381
|
{
|
|
4346
4382
|
fill: "#fff",
|
|
@@ -4350,16 +4386,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4350
4386
|
]
|
|
4351
4387
|
}
|
|
4352
4388
|
);
|
|
4353
|
-
var TextIcon = () => /* @__PURE__ */ (0,
|
|
4389
|
+
var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4354
4390
|
"svg",
|
|
4355
4391
|
{
|
|
4356
4392
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4357
4393
|
viewBox: "0 0 48 48",
|
|
4358
4394
|
className: "w-10 h-10",
|
|
4359
4395
|
children: [
|
|
4360
|
-
/* @__PURE__ */ (0,
|
|
4361
|
-
/* @__PURE__ */ (0,
|
|
4362
|
-
/* @__PURE__ */ (0,
|
|
4396
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
4397
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
4398
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4363
4399
|
"path",
|
|
4364
4400
|
{
|
|
4365
4401
|
fill: "#1976D2",
|
|
@@ -4369,7 +4405,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4369
4405
|
]
|
|
4370
4406
|
}
|
|
4371
4407
|
);
|
|
4372
|
-
var ArchiveIcon = () => /* @__PURE__ */ (0,
|
|
4408
|
+
var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4373
4409
|
"svg",
|
|
4374
4410
|
{
|
|
4375
4411
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4379,14 +4415,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4379
4415
|
version: "1.0",
|
|
4380
4416
|
className: "w-10 h-10",
|
|
4381
4417
|
children: [
|
|
4382
|
-
/* @__PURE__ */ (0,
|
|
4418
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4383
4419
|
"path",
|
|
4384
4420
|
{
|
|
4385
4421
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
4386
4422
|
"clip-rule": "nonzero"
|
|
4387
4423
|
}
|
|
4388
4424
|
) }) }),
|
|
4389
|
-
/* @__PURE__ */ (0,
|
|
4425
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4390
4426
|
"path",
|
|
4391
4427
|
{
|
|
4392
4428
|
fill: "#ff9100",
|
|
@@ -4395,7 +4431,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4395
4431
|
"fill-rule": "nonzero"
|
|
4396
4432
|
}
|
|
4397
4433
|
) }),
|
|
4398
|
-
/* @__PURE__ */ (0,
|
|
4434
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4399
4435
|
"path",
|
|
4400
4436
|
{
|
|
4401
4437
|
fill: "#fbe9e7",
|
|
@@ -4404,7 +4440,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4404
4440
|
"fill-rule": "nonzero"
|
|
4405
4441
|
}
|
|
4406
4442
|
),
|
|
4407
|
-
/* @__PURE__ */ (0,
|
|
4443
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4408
4444
|
"path",
|
|
4409
4445
|
{
|
|
4410
4446
|
fill: "#ffe0b2",
|
|
@@ -4413,7 +4449,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4413
4449
|
"fill-rule": "nonzero"
|
|
4414
4450
|
}
|
|
4415
4451
|
),
|
|
4416
|
-
/* @__PURE__ */ (0,
|
|
4452
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4417
4453
|
"path",
|
|
4418
4454
|
{
|
|
4419
4455
|
fill: "#ffe0b2",
|
|
@@ -4422,7 +4458,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
|
4422
4458
|
"fill-rule": "nonzero"
|
|
4423
4459
|
}
|
|
4424
4460
|
),
|
|
4425
|
-
/* @__PURE__ */ (0,
|
|
4461
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4426
4462
|
"path",
|
|
4427
4463
|
{
|
|
4428
4464
|
fill: "#ffe0b2",
|
|
@@ -4498,8 +4534,8 @@ var DocumentNode = (props) => {
|
|
|
4498
4534
|
}
|
|
4499
4535
|
}
|
|
4500
4536
|
if (documents.length === 0) {
|
|
4501
|
-
return /* @__PURE__ */ (0,
|
|
4502
|
-
/* @__PURE__ */ (0,
|
|
4537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
4538
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4503
4539
|
"svg",
|
|
4504
4540
|
{
|
|
4505
4541
|
className: "w-5 h-5",
|
|
@@ -4507,7 +4543,7 @@ var DocumentNode = (props) => {
|
|
|
4507
4543
|
stroke: "currentColor",
|
|
4508
4544
|
viewBox: "0 0 24 24",
|
|
4509
4545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4510
|
-
children: /* @__PURE__ */ (0,
|
|
4546
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4511
4547
|
"path",
|
|
4512
4548
|
{
|
|
4513
4549
|
strokeLinecap: "round",
|
|
@@ -4518,11 +4554,11 @@ var DocumentNode = (props) => {
|
|
|
4518
4554
|
)
|
|
4519
4555
|
}
|
|
4520
4556
|
) }),
|
|
4521
|
-
/* @__PURE__ */ (0,
|
|
4522
|
-
/* @__PURE__ */ (0,
|
|
4557
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
4558
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
4523
4559
|
] }) });
|
|
4524
4560
|
}
|
|
4525
|
-
return /* @__PURE__ */ (0,
|
|
4561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
4526
4562
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
4527
4563
|
props.assetBaseUrl,
|
|
4528
4564
|
doc.assetUrl
|
|
@@ -4540,16 +4576,16 @@ var DocumentNode = (props) => {
|
|
|
4540
4576
|
}
|
|
4541
4577
|
}
|
|
4542
4578
|
const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
|
|
4543
|
-
return /* @__PURE__ */ (0,
|
|
4579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4544
4580
|
"div",
|
|
4545
4581
|
{
|
|
4546
4582
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
4547
4583
|
children: [
|
|
4548
|
-
/* @__PURE__ */ (0,
|
|
4549
|
-
/* @__PURE__ */ (0,
|
|
4550
|
-
/* @__PURE__ */ (0,
|
|
4584
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex items-center space-x-4", children: [
|
|
4585
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon2, {}) }),
|
|
4586
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
4551
4587
|
] }),
|
|
4552
|
-
/* @__PURE__ */ (0,
|
|
4588
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4553
4589
|
"a",
|
|
4554
4590
|
{
|
|
4555
4591
|
href: documentUrl,
|
|
@@ -4557,7 +4593,7 @@ var DocumentNode = (props) => {
|
|
|
4557
4593
|
rel: "noopener noreferrer",
|
|
4558
4594
|
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",
|
|
4559
4595
|
children: [
|
|
4560
|
-
/* @__PURE__ */ (0,
|
|
4596
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4561
4597
|
"svg",
|
|
4562
4598
|
{
|
|
4563
4599
|
className: "w-4 h-4 mr-2",
|
|
@@ -4565,7 +4601,7 @@ var DocumentNode = (props) => {
|
|
|
4565
4601
|
stroke: "currentColor",
|
|
4566
4602
|
viewBox: "0 0 24 24",
|
|
4567
4603
|
children: [
|
|
4568
|
-
/* @__PURE__ */ (0,
|
|
4604
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4569
4605
|
"path",
|
|
4570
4606
|
{
|
|
4571
4607
|
strokeLinecap: "round",
|
|
@@ -4574,7 +4610,7 @@ var DocumentNode = (props) => {
|
|
|
4574
4610
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
4575
4611
|
}
|
|
4576
4612
|
),
|
|
4577
|
-
/* @__PURE__ */ (0,
|
|
4613
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4578
4614
|
"path",
|
|
4579
4615
|
{
|
|
4580
4616
|
strokeLinecap: "round",
|
|
@@ -4599,7 +4635,7 @@ var DocumentNode = (props) => {
|
|
|
4599
4635
|
var DocumentNode_default = DocumentNode;
|
|
4600
4636
|
|
|
4601
4637
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
4602
|
-
var
|
|
4638
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4603
4639
|
var Pagination2 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
4604
4640
|
var Slider2 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
|
|
4605
4641
|
ssr: false
|
|
@@ -4853,7 +4889,7 @@ var DivContainer = async (props) => {
|
|
|
4853
4889
|
response = await serviceClient.get(endpoint);
|
|
4854
4890
|
result = response?.result;
|
|
4855
4891
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
4856
|
-
return /* @__PURE__ */ (0,
|
|
4892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(NoDataFound_default, {});
|
|
4857
4893
|
}
|
|
4858
4894
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
4859
4895
|
childCollectionData = getNestedValue6(
|
|
@@ -4873,7 +4909,7 @@ var DivContainer = async (props) => {
|
|
|
4873
4909
|
}
|
|
4874
4910
|
const SelectedNode = NodeTypes2[node.type];
|
|
4875
4911
|
if (!SelectedNode) return null;
|
|
4876
|
-
return /* @__PURE__ */ (0,
|
|
4912
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react33.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
4877
4913
|
SelectedNode,
|
|
4878
4914
|
{
|
|
4879
4915
|
node,
|
|
@@ -5005,14 +5041,14 @@ var DivContainer = async (props) => {
|
|
|
5005
5041
|
props.node.bgClass,
|
|
5006
5042
|
noLinkColor && "no-link-color"
|
|
5007
5043
|
].filter(Boolean).join(" ");
|
|
5008
|
-
return /* @__PURE__ */ (0,
|
|
5009
|
-
/* @__PURE__ */ (0,
|
|
5044
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react33.default.Fragment, { children: [
|
|
5045
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5010
5046
|
"style",
|
|
5011
5047
|
{
|
|
5012
5048
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
5013
5049
|
}
|
|
5014
5050
|
),
|
|
5015
|
-
/* @__PURE__ */ (0,
|
|
5051
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react33.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5016
5052
|
Wrapper,
|
|
5017
5053
|
{
|
|
5018
5054
|
id: guid,
|
|
@@ -5026,11 +5062,11 @@ var DivContainer = async (props) => {
|
|
|
5026
5062
|
item,
|
|
5027
5063
|
idx,
|
|
5028
5064
|
props.href ? void 0 : item?.links?.view
|
|
5029
|
-
)?.map((child, i) => /* @__PURE__ */ (0,
|
|
5065
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react33.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
5030
5066
|
)
|
|
5031
5067
|
}
|
|
5032
5068
|
) }),
|
|
5033
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0,
|
|
5069
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5034
5070
|
Pagination2,
|
|
5035
5071
|
{
|
|
5036
5072
|
path: props.path,
|
|
@@ -5043,7 +5079,7 @@ var DivContainer = async (props) => {
|
|
|
5043
5079
|
var DivContainer_default = DivContainer;
|
|
5044
5080
|
|
|
5045
5081
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
5046
|
-
var
|
|
5082
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
5047
5083
|
var NodeTypes = {
|
|
5048
5084
|
["paragraph"]: ParagraphNode_default,
|
|
5049
5085
|
["heading"]: HeadingNode_default,
|
|
@@ -5080,14 +5116,14 @@ var PageBodyRenderer = (props) => {
|
|
|
5080
5116
|
}
|
|
5081
5117
|
return true;
|
|
5082
5118
|
};
|
|
5083
|
-
return /* @__PURE__ */ (0,
|
|
5119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
5084
5120
|
{
|
|
5085
5121
|
}
|
|
5086
5122
|
const SelectedNode = NodeTypes[node.type];
|
|
5087
5123
|
if (!shouldRenderNode(node)) {
|
|
5088
5124
|
return null;
|
|
5089
5125
|
}
|
|
5090
|
-
return /* @__PURE__ */ (0,
|
|
5126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5091
5127
|
SelectedNode,
|
|
5092
5128
|
{
|
|
5093
5129
|
node,
|
|
@@ -5103,7 +5139,7 @@ var PageBodyRenderer = (props) => {
|
|
|
5103
5139
|
device: props.device,
|
|
5104
5140
|
widgetRenderer: props.widgetRenderer
|
|
5105
5141
|
}
|
|
5106
|
-
) }) : /* @__PURE__ */ (0,
|
|
5142
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5107
5143
|
SelectedNode,
|
|
5108
5144
|
{
|
|
5109
5145
|
node,
|