@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260807130918 → 0.8.1-dev.20260808073515
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/TimeUntilStartsClient-4C7NDEAD.mjs +76 -0
- package/dist/TimeUntilStartsClient-5HGQ5JKM.mjs +78 -0
- package/dist/index.js +919 -829
- package/dist/index.mjs +24 -17
- package/dist/server.js +361 -271
- package/dist/server.mjs +21 -14
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -1560,15 +1560,98 @@ var init_DateTimeViewClient = __esm({
|
|
|
1560
1560
|
}
|
|
1561
1561
|
});
|
|
1562
1562
|
|
|
1563
|
+
// src/components/controls/view/TimeUntilStartsClient.tsx
|
|
1564
|
+
var TimeUntilStartsClient_exports = {};
|
|
1565
|
+
__export(TimeUntilStartsClient_exports, {
|
|
1566
|
+
default: () => TimeUntilStartsClient_default
|
|
1567
|
+
});
|
|
1568
|
+
var import_react20, import_jsx_runtime29, TimeUntilStartsClient, TimeUntilStartsClient_default;
|
|
1569
|
+
var init_TimeUntilStartsClient = __esm({
|
|
1570
|
+
"src/components/controls/view/TimeUntilStartsClient.tsx"() {
|
|
1571
|
+
"use strict";
|
|
1572
|
+
"use client";
|
|
1573
|
+
import_react20 = require("react");
|
|
1574
|
+
import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1575
|
+
TimeUntilStartsClient = (props) => {
|
|
1576
|
+
const calculateTimeDifference = (startDate) => {
|
|
1577
|
+
const now = /* @__PURE__ */ new Date();
|
|
1578
|
+
const nowUtc = new Date(now.getTime() + now.getTimezoneOffset() * 6e4);
|
|
1579
|
+
const startDateUtc = new Date(startDate);
|
|
1580
|
+
const diffMs = startDateUtc.getTime() - nowUtc.getTime();
|
|
1581
|
+
const isPast = diffMs < 0;
|
|
1582
|
+
const absoluteDiffMs = Math.abs(diffMs);
|
|
1583
|
+
const diffDays = Math.floor(absoluteDiffMs / (1e3 * 60 * 60 * 24));
|
|
1584
|
+
const diffHours = Math.floor(
|
|
1585
|
+
absoluteDiffMs % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)
|
|
1586
|
+
);
|
|
1587
|
+
const diffMinutes = Math.floor(
|
|
1588
|
+
absoluteDiffMs % (1e3 * 60 * 60) / (1e3 * 60)
|
|
1589
|
+
);
|
|
1590
|
+
if (absoluteDiffMs < 6e4) {
|
|
1591
|
+
return "Just now";
|
|
1592
|
+
}
|
|
1593
|
+
let timeParts = [
|
|
1594
|
+
{ value: diffDays, unit: "days" },
|
|
1595
|
+
{ value: diffHours, unit: "hours" },
|
|
1596
|
+
{ value: diffMinutes, unit: "minutes" }
|
|
1597
|
+
];
|
|
1598
|
+
timeParts = timeParts.filter((part) => part.value > 0);
|
|
1599
|
+
if (isPast) {
|
|
1600
|
+
if (diffDays > 0) {
|
|
1601
|
+
return `${diffDays} day(s) ago`;
|
|
1602
|
+
} else if (diffHours > 0) {
|
|
1603
|
+
return `${diffHours} hour(s) ago`;
|
|
1604
|
+
} else if (diffMinutes > 0) {
|
|
1605
|
+
return `${diffMinutes} minute(s) ago`;
|
|
1606
|
+
} else {
|
|
1607
|
+
return "Just now";
|
|
1608
|
+
}
|
|
1609
|
+
} else {
|
|
1610
|
+
if (timeParts.length > 2) {
|
|
1611
|
+
timeParts = timeParts.slice(0, 2);
|
|
1612
|
+
}
|
|
1613
|
+
const displayString = timeParts.map((part) => `${part.value} ${part.unit}`).join(" ");
|
|
1614
|
+
return displayString ? `Starting in ${displayString}` : "Started";
|
|
1615
|
+
}
|
|
1616
|
+
};
|
|
1617
|
+
const isValidDate = (date) => {
|
|
1618
|
+
return !isNaN(Date.parse(date));
|
|
1619
|
+
};
|
|
1620
|
+
const [timeUntilStart, setTimeUntilStart] = (0, import_react20.useState)(() => {
|
|
1621
|
+
if (props.value && isValidDate(props.value)) {
|
|
1622
|
+
return calculateTimeDifference(props.value);
|
|
1623
|
+
}
|
|
1624
|
+
return "";
|
|
1625
|
+
});
|
|
1626
|
+
(0, import_react20.useEffect)(() => {
|
|
1627
|
+
if (props.value && isValidDate(props.value)) {
|
|
1628
|
+
setTimeUntilStart(calculateTimeDifference(props.value));
|
|
1629
|
+
const initialTimeout = setTimeout(() => {
|
|
1630
|
+
const interval = setInterval(() => {
|
|
1631
|
+
setTimeUntilStart(calculateTimeDifference(props.value));
|
|
1632
|
+
}, 6e4);
|
|
1633
|
+
return () => clearInterval(interval);
|
|
1634
|
+
}, 5e3);
|
|
1635
|
+
return () => clearTimeout(initialTimeout);
|
|
1636
|
+
} else {
|
|
1637
|
+
setTimeUntilStart("");
|
|
1638
|
+
}
|
|
1639
|
+
}, [props.value]);
|
|
1640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { children: timeUntilStart });
|
|
1641
|
+
};
|
|
1642
|
+
TimeUntilStartsClient_default = TimeUntilStartsClient;
|
|
1643
|
+
}
|
|
1644
|
+
});
|
|
1645
|
+
|
|
1563
1646
|
// src/components/CopyButton.tsx
|
|
1564
1647
|
var CopyButton_exports = {};
|
|
1565
1648
|
__export(CopyButton_exports, {
|
|
1566
1649
|
default: () => CopyButton
|
|
1567
1650
|
});
|
|
1568
1651
|
function CopyButton({ text }) {
|
|
1569
|
-
const [copied, setCopied] = (0,
|
|
1570
|
-
const timeoutRef = (0,
|
|
1571
|
-
(0,
|
|
1652
|
+
const [copied, setCopied] = (0, import_react27.useState)(false);
|
|
1653
|
+
const timeoutRef = (0, import_react27.useRef)(null);
|
|
1654
|
+
(0, import_react27.useEffect)(() => {
|
|
1572
1655
|
return () => {
|
|
1573
1656
|
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
1574
1657
|
};
|
|
@@ -1583,13 +1666,13 @@ function CopyButton({ text }) {
|
|
|
1583
1666
|
console.error("Failed to copy: ", err);
|
|
1584
1667
|
}
|
|
1585
1668
|
};
|
|
1586
|
-
return /* @__PURE__ */ (0,
|
|
1669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
1587
1670
|
"button",
|
|
1588
1671
|
{
|
|
1589
1672
|
onClick: handleCopy,
|
|
1590
1673
|
className: "flex gap-1 items-center hover:text-white transition",
|
|
1591
1674
|
children: [
|
|
1592
|
-
/* @__PURE__ */ (0,
|
|
1675
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1593
1676
|
"svg",
|
|
1594
1677
|
{
|
|
1595
1678
|
width: "16",
|
|
@@ -1597,7 +1680,7 @@ function CopyButton({ text }) {
|
|
|
1597
1680
|
viewBox: "0 0 24 24",
|
|
1598
1681
|
className: "w-4 h-4",
|
|
1599
1682
|
fill: "currentColor",
|
|
1600
|
-
children: /* @__PURE__ */ (0,
|
|
1683
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1601
1684
|
"path",
|
|
1602
1685
|
{
|
|
1603
1686
|
fillRule: "evenodd",
|
|
@@ -1612,54 +1695,54 @@ function CopyButton({ text }) {
|
|
|
1612
1695
|
}
|
|
1613
1696
|
);
|
|
1614
1697
|
}
|
|
1615
|
-
var
|
|
1698
|
+
var import_react27, import_jsx_runtime37;
|
|
1616
1699
|
var init_CopyButton = __esm({
|
|
1617
1700
|
"src/components/CopyButton.tsx"() {
|
|
1618
1701
|
"use strict";
|
|
1619
1702
|
"use client";
|
|
1620
|
-
|
|
1621
|
-
|
|
1703
|
+
import_react27 = require("react");
|
|
1704
|
+
import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1622
1705
|
}
|
|
1623
1706
|
});
|
|
1624
1707
|
|
|
1625
1708
|
// src/components/IFrameLoaderView.tsx
|
|
1626
|
-
var
|
|
1709
|
+
var import_react30, import_jsx_runtime41, IFrameLoaderView, IFrameLoaderView_default;
|
|
1627
1710
|
var init_IFrameLoaderView = __esm({
|
|
1628
1711
|
"src/components/IFrameLoaderView.tsx"() {
|
|
1629
1712
|
"use strict";
|
|
1630
|
-
|
|
1631
|
-
|
|
1713
|
+
import_react30 = __toESM(require("react"));
|
|
1714
|
+
import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1632
1715
|
IFrameLoaderView = (props) => {
|
|
1633
|
-
return /* @__PURE__ */ (0,
|
|
1634
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
1635
|
-
/* @__PURE__ */ (0,
|
|
1636
|
-
/* @__PURE__ */ (0,
|
|
1637
|
-
/* @__PURE__ */ (0,
|
|
1638
|
-
/* @__PURE__ */ (0,
|
|
1639
|
-
/* @__PURE__ */ (0,
|
|
1716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_react30.default.Fragment, { children: [
|
|
1717
|
+
props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
1718
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
1719
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
1720
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "ml-2", children: [
|
|
1721
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
1722
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
1640
1723
|
] })
|
|
1641
1724
|
] }),
|
|
1642
|
-
/* @__PURE__ */ (0,
|
|
1643
|
-
/* @__PURE__ */ (0,
|
|
1644
|
-
/* @__PURE__ */ (0,
|
|
1645
|
-
/* @__PURE__ */ (0,
|
|
1646
|
-
/* @__PURE__ */ (0,
|
|
1647
|
-
/* @__PURE__ */ (0,
|
|
1648
|
-
/* @__PURE__ */ (0,
|
|
1725
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
1726
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
|
|
1727
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1728
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1729
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
1730
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
1731
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
1649
1732
|
] }),
|
|
1650
|
-
/* @__PURE__ */ (0,
|
|
1651
|
-
/* @__PURE__ */ (0,
|
|
1652
|
-
/* @__PURE__ */ (0,
|
|
1653
|
-
/* @__PURE__ */ (0,
|
|
1654
|
-
/* @__PURE__ */ (0,
|
|
1655
|
-
/* @__PURE__ */ (0,
|
|
1733
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
|
|
1734
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1735
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1736
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
1737
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
1738
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
1656
1739
|
] }),
|
|
1657
|
-
/* @__PURE__ */ (0,
|
|
1658
|
-
/* @__PURE__ */ (0,
|
|
1659
|
-
/* @__PURE__ */ (0,
|
|
1660
|
-
/* @__PURE__ */ (0,
|
|
1661
|
-
/* @__PURE__ */ (0,
|
|
1662
|
-
/* @__PURE__ */ (0,
|
|
1740
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
|
|
1741
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1742
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1743
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
1744
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
1745
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
1663
1746
|
] })
|
|
1664
1747
|
] })
|
|
1665
1748
|
] }) }),
|
|
@@ -1675,19 +1758,19 @@ var IframeClient_exports = {};
|
|
|
1675
1758
|
__export(IframeClient_exports, {
|
|
1676
1759
|
default: () => IframeClient_default
|
|
1677
1760
|
});
|
|
1678
|
-
var
|
|
1761
|
+
var import_react31, import_jsx_runtime42, IframeClient, IframeClient_default;
|
|
1679
1762
|
var init_IframeClient = __esm({
|
|
1680
1763
|
"src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
|
|
1681
1764
|
"use strict";
|
|
1682
1765
|
"use client";
|
|
1683
|
-
|
|
1766
|
+
import_react31 = __toESM(require("react"));
|
|
1684
1767
|
init_IFrameLoaderView();
|
|
1685
|
-
|
|
1768
|
+
import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1686
1769
|
IframeClient = ({ src }) => {
|
|
1687
|
-
const iframeRef = (0,
|
|
1688
|
-
const [iframeHeight, setIframeHeight] = (0,
|
|
1689
|
-
const [isDataFound, setIsDataFound] = (0,
|
|
1690
|
-
(0,
|
|
1770
|
+
const iframeRef = (0, import_react31.useRef)(null);
|
|
1771
|
+
const [iframeHeight, setIframeHeight] = (0, import_react31.useState)("100%");
|
|
1772
|
+
const [isDataFound, setIsDataFound] = (0, import_react31.useState)(null);
|
|
1773
|
+
(0, import_react31.useEffect)(() => {
|
|
1691
1774
|
const handleReceiveMessage = (event) => {
|
|
1692
1775
|
const eventName = event?.data?.eventName;
|
|
1693
1776
|
const payload = event?.data?.payload;
|
|
@@ -1702,7 +1785,7 @@ var init_IframeClient = __esm({
|
|
|
1702
1785
|
window.addEventListener("message", handleReceiveMessage);
|
|
1703
1786
|
return () => window.removeEventListener("message", handleReceiveMessage);
|
|
1704
1787
|
}, []);
|
|
1705
|
-
(0,
|
|
1788
|
+
(0, import_react31.useEffect)(() => {
|
|
1706
1789
|
const handleResize = () => {
|
|
1707
1790
|
if (iframeRef.current) {
|
|
1708
1791
|
iframeRef.current.contentWindow?.postMessage({ eventName: "RESIZE" }, "*");
|
|
@@ -1714,7 +1797,7 @@ var init_IframeClient = __esm({
|
|
|
1714
1797
|
const handleIframeLoad = () => {
|
|
1715
1798
|
setIsDataFound(true);
|
|
1716
1799
|
};
|
|
1717
|
-
return /* @__PURE__ */ (0,
|
|
1800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react31.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
1718
1801
|
"iframe",
|
|
1719
1802
|
{
|
|
1720
1803
|
ref: iframeRef,
|
|
@@ -1941,52 +2024,52 @@ var init_OdataBuilder = __esm({
|
|
|
1941
2024
|
});
|
|
1942
2025
|
|
|
1943
2026
|
// src/svg/chevron-updown.tsx
|
|
1944
|
-
var
|
|
2027
|
+
var import_jsx_runtime47, ChevronUpDown, chevron_updown_default;
|
|
1945
2028
|
var init_chevron_updown = __esm({
|
|
1946
2029
|
"src/svg/chevron-updown.tsx"() {
|
|
1947
2030
|
"use strict";
|
|
1948
|
-
|
|
2031
|
+
import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1949
2032
|
ChevronUpDown = (props) => {
|
|
1950
|
-
return /* @__PURE__ */ (0,
|
|
2033
|
+
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: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
|
|
1951
2034
|
};
|
|
1952
2035
|
chevron_updown_default = ChevronUpDown;
|
|
1953
2036
|
}
|
|
1954
2037
|
});
|
|
1955
2038
|
|
|
1956
2039
|
// src/svg/chevron-down.tsx
|
|
1957
|
-
var
|
|
2040
|
+
var import_jsx_runtime48, ChevronDown, chevron_down_default;
|
|
1958
2041
|
var init_chevron_down = __esm({
|
|
1959
2042
|
"src/svg/chevron-down.tsx"() {
|
|
1960
2043
|
"use strict";
|
|
1961
|
-
|
|
2044
|
+
import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1962
2045
|
ChevronDown = (props) => {
|
|
1963
|
-
return /* @__PURE__ */ (0,
|
|
2046
|
+
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: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
|
|
1964
2047
|
};
|
|
1965
2048
|
chevron_down_default = ChevronDown;
|
|
1966
2049
|
}
|
|
1967
2050
|
});
|
|
1968
2051
|
|
|
1969
2052
|
// src/svg/chevron-up.tsx
|
|
1970
|
-
var
|
|
2053
|
+
var import_jsx_runtime49, ChevronUp, chevron_up_default;
|
|
1971
2054
|
var init_chevron_up = __esm({
|
|
1972
2055
|
"src/svg/chevron-up.tsx"() {
|
|
1973
2056
|
"use strict";
|
|
1974
|
-
|
|
2057
|
+
import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1975
2058
|
ChevronUp = (props) => {
|
|
1976
|
-
return /* @__PURE__ */ (0,
|
|
2059
|
+
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: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
|
|
1977
2060
|
};
|
|
1978
2061
|
chevron_up_default = ChevronUp;
|
|
1979
2062
|
}
|
|
1980
2063
|
});
|
|
1981
2064
|
|
|
1982
2065
|
// src/svg/plus.tsx
|
|
1983
|
-
var
|
|
2066
|
+
var import_jsx_runtime50, Plus, plus_default;
|
|
1984
2067
|
var init_plus = __esm({
|
|
1985
2068
|
"src/svg/plus.tsx"() {
|
|
1986
2069
|
"use strict";
|
|
1987
|
-
|
|
2070
|
+
import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1988
2071
|
Plus = (props) => {
|
|
1989
|
-
return /* @__PURE__ */ (0,
|
|
2072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.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_runtime50.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
|
|
1990
2073
|
};
|
|
1991
2074
|
plus_default = Plus;
|
|
1992
2075
|
}
|
|
@@ -2012,19 +2095,19 @@ var init_Icons = __esm({
|
|
|
2012
2095
|
});
|
|
2013
2096
|
|
|
2014
2097
|
// src/svg/Icon.tsx
|
|
2015
|
-
var
|
|
2098
|
+
var import_jsx_runtime51, Icon, Icon_default;
|
|
2016
2099
|
var init_Icon = __esm({
|
|
2017
2100
|
"src/svg/Icon.tsx"() {
|
|
2018
2101
|
"use strict";
|
|
2019
2102
|
init_Icons();
|
|
2020
|
-
|
|
2103
|
+
import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2021
2104
|
Icon = ({ name, className, ...props }) => {
|
|
2022
2105
|
const IconComponent = Icons_default[name];
|
|
2023
2106
|
if (!IconComponent) {
|
|
2024
2107
|
console.error(`Icon "${name}" not found.`);
|
|
2025
2108
|
return null;
|
|
2026
2109
|
}
|
|
2027
|
-
return /* @__PURE__ */ (0,
|
|
2110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(IconComponent, { ...props, className });
|
|
2028
2111
|
};
|
|
2029
2112
|
Icon_default = Icon;
|
|
2030
2113
|
}
|
|
@@ -2035,21 +2118,21 @@ var Pagination_exports = {};
|
|
|
2035
2118
|
__export(Pagination_exports, {
|
|
2036
2119
|
default: () => Pagination_default
|
|
2037
2120
|
});
|
|
2038
|
-
var
|
|
2121
|
+
var import_react32, import_jsx_runtime52, Pagination, Pagination_default;
|
|
2039
2122
|
var init_Pagination = __esm({
|
|
2040
2123
|
"src/components/Pagination.tsx"() {
|
|
2041
2124
|
"use strict";
|
|
2042
2125
|
"use client";
|
|
2043
|
-
|
|
2126
|
+
import_react32 = require("react");
|
|
2044
2127
|
init_OdataBuilder();
|
|
2045
2128
|
init_Icon();
|
|
2046
2129
|
init_StyleTypes();
|
|
2047
2130
|
init_InputControlType();
|
|
2048
2131
|
init_Hyperlink();
|
|
2049
|
-
|
|
2132
|
+
import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2050
2133
|
Pagination = (props) => {
|
|
2051
2134
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
2052
|
-
const builder = (0,
|
|
2135
|
+
const builder = (0, import_react32.useMemo)(() => {
|
|
2053
2136
|
const b = new OdataBuilder(path);
|
|
2054
2137
|
if (query) b.setQuery(query);
|
|
2055
2138
|
return b;
|
|
@@ -2090,7 +2173,7 @@ var init_Pagination = __esm({
|
|
|
2090
2173
|
return range;
|
|
2091
2174
|
};
|
|
2092
2175
|
const paginationRange = getPaginationRange();
|
|
2093
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
2176
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2094
2177
|
Hyperlink,
|
|
2095
2178
|
{
|
|
2096
2179
|
linkType: "Link" /* Link */,
|
|
@@ -2105,9 +2188,9 @@ var init_Pagination = __esm({
|
|
|
2105
2188
|
);
|
|
2106
2189
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
2107
2190
|
if (disabled) {
|
|
2108
|
-
return /* @__PURE__ */ (0,
|
|
2191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.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 });
|
|
2109
2192
|
}
|
|
2110
|
-
return /* @__PURE__ */ (0,
|
|
2193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2111
2194
|
Hyperlink,
|
|
2112
2195
|
{
|
|
2113
2196
|
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",
|
|
@@ -2117,35 +2200,35 @@ var init_Pagination = __esm({
|
|
|
2117
2200
|
);
|
|
2118
2201
|
};
|
|
2119
2202
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
2120
|
-
return /* @__PURE__ */ (0,
|
|
2121
|
-
/* @__PURE__ */ (0,
|
|
2122
|
-
/* @__PURE__ */ (0,
|
|
2203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "py-6 border-t bg-default", children: [
|
|
2204
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
2205
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "text-sm", children: [
|
|
2123
2206
|
"Showing ",
|
|
2124
|
-
/* @__PURE__ */ (0,
|
|
2207
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("span", { className: "font-semibold", children: [
|
|
2125
2208
|
startItem,
|
|
2126
2209
|
"-",
|
|
2127
2210
|
endItem
|
|
2128
2211
|
] }),
|
|
2129
2212
|
" ",
|
|
2130
2213
|
"out of ",
|
|
2131
|
-
/* @__PURE__ */ (0,
|
|
2214
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
2132
2215
|
" results"
|
|
2133
2216
|
] }),
|
|
2134
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
2135
|
-
/* @__PURE__ */ (0,
|
|
2217
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
2218
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
2136
2219
|
NavigationButton,
|
|
2137
2220
|
{
|
|
2138
2221
|
page: activePageNumber - 1,
|
|
2139
2222
|
disabled: activePageNumber === 1,
|
|
2140
2223
|
children: [
|
|
2141
|
-
/* @__PURE__ */ (0,
|
|
2142
|
-
/* @__PURE__ */ (0,
|
|
2224
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
|
|
2225
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Prev" })
|
|
2143
2226
|
]
|
|
2144
2227
|
}
|
|
2145
2228
|
),
|
|
2146
2229
|
paginationRange.map((item, index) => {
|
|
2147
2230
|
if (item === "...") {
|
|
2148
|
-
return /* @__PURE__ */ (0,
|
|
2231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2149
2232
|
"span",
|
|
2150
2233
|
{
|
|
2151
2234
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -2155,23 +2238,23 @@ var init_Pagination = __esm({
|
|
|
2155
2238
|
);
|
|
2156
2239
|
}
|
|
2157
2240
|
const page = item;
|
|
2158
|
-
return /* @__PURE__ */ (0,
|
|
2241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PageButton, { page, children: page }, page);
|
|
2159
2242
|
}),
|
|
2160
|
-
/* @__PURE__ */ (0,
|
|
2243
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
2161
2244
|
NavigationButton,
|
|
2162
2245
|
{
|
|
2163
2246
|
page: activePageNumber + 1,
|
|
2164
2247
|
disabled: activePageNumber === totalPages,
|
|
2165
2248
|
children: [
|
|
2166
|
-
/* @__PURE__ */ (0,
|
|
2167
|
-
/* @__PURE__ */ (0,
|
|
2249
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Next" }),
|
|
2250
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
|
|
2168
2251
|
]
|
|
2169
2252
|
}
|
|
2170
2253
|
)
|
|
2171
2254
|
] }),
|
|
2172
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
2173
|
-
/* @__PURE__ */ (0,
|
|
2174
|
-
/* @__PURE__ */ (0,
|
|
2255
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
2256
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Go to:" }),
|
|
2257
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2175
2258
|
"input",
|
|
2176
2259
|
{
|
|
2177
2260
|
type: "number",
|
|
@@ -2192,9 +2275,9 @@ var init_Pagination = __esm({
|
|
|
2192
2275
|
) })
|
|
2193
2276
|
] })
|
|
2194
2277
|
] }),
|
|
2195
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
2196
|
-
/* @__PURE__ */ (0,
|
|
2197
|
-
/* @__PURE__ */ (0,
|
|
2278
|
+
showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
|
|
2279
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Show:" }),
|
|
2280
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2198
2281
|
Hyperlink,
|
|
2199
2282
|
{
|
|
2200
2283
|
className: `
|
|
@@ -2206,7 +2289,7 @@ var init_Pagination = __esm({
|
|
|
2206
2289
|
},
|
|
2207
2290
|
size
|
|
2208
2291
|
)) }),
|
|
2209
|
-
/* @__PURE__ */ (0,
|
|
2292
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "per page" })
|
|
2210
2293
|
] }) })
|
|
2211
2294
|
] });
|
|
2212
2295
|
};
|
|
@@ -2219,13 +2302,13 @@ var Slider_exports = {};
|
|
|
2219
2302
|
__export(Slider_exports, {
|
|
2220
2303
|
default: () => Slider_default
|
|
2221
2304
|
});
|
|
2222
|
-
var
|
|
2305
|
+
var import_react33, import_jsx_runtime53, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
2223
2306
|
var init_Slider = __esm({
|
|
2224
2307
|
"src/components/Slider.tsx"() {
|
|
2225
2308
|
"use strict";
|
|
2226
2309
|
"use client";
|
|
2227
|
-
|
|
2228
|
-
|
|
2310
|
+
import_react33 = __toESM(require("react"));
|
|
2311
|
+
import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2229
2312
|
Slider = ({
|
|
2230
2313
|
children,
|
|
2231
2314
|
slidesToShow = 4,
|
|
@@ -2243,13 +2326,13 @@ var init_Slider = __esm({
|
|
|
2243
2326
|
pillStyle = "cumulative",
|
|
2244
2327
|
progressPosition = "bottom"
|
|
2245
2328
|
}) => {
|
|
2246
|
-
const [currentSlide, setCurrentSlide] = (0,
|
|
2247
|
-
const [transition, setTransition] = (0,
|
|
2248
|
-
const [slidesToShowState, setSlidesToShowState] = (0,
|
|
2329
|
+
const [currentSlide, setCurrentSlide] = (0, import_react33.useState)(0);
|
|
2330
|
+
const [transition, setTransition] = (0, import_react33.useState)(true);
|
|
2331
|
+
const [slidesToShowState, setSlidesToShowState] = (0, import_react33.useState)(
|
|
2249
2332
|
typeof slidesToShow === "number" ? slidesToShow : slidesToShow.large
|
|
2250
2333
|
);
|
|
2251
|
-
const [isPlaying, setIsPlaying] = (0,
|
|
2252
|
-
(0,
|
|
2334
|
+
const [isPlaying, setIsPlaying] = (0, import_react33.useState)(autoplay);
|
|
2335
|
+
(0, import_react33.useEffect)(() => {
|
|
2253
2336
|
if (typeof slidesToShow === "number") return;
|
|
2254
2337
|
const handleResize = () => {
|
|
2255
2338
|
if (window.innerWidth >= 1024) {
|
|
@@ -2264,7 +2347,7 @@ var init_Slider = __esm({
|
|
|
2264
2347
|
window.addEventListener("resize", handleResize);
|
|
2265
2348
|
return () => window.removeEventListener("resize", handleResize);
|
|
2266
2349
|
}, [slidesToShow]);
|
|
2267
|
-
(0,
|
|
2350
|
+
(0, import_react33.useEffect)(() => {
|
|
2268
2351
|
if (!autoplay) return;
|
|
2269
2352
|
const timer = setInterval(() => {
|
|
2270
2353
|
if (isPlaying) {
|
|
@@ -2273,7 +2356,7 @@ var init_Slider = __esm({
|
|
|
2273
2356
|
}, autoplay_speed);
|
|
2274
2357
|
return () => clearInterval(timer);
|
|
2275
2358
|
}, [autoplay, autoplay_speed, currentSlide, isPlaying]);
|
|
2276
|
-
const totalSlides =
|
|
2359
|
+
const totalSlides = import_react33.Children.count(children);
|
|
2277
2360
|
const maxSlide = totalSlides - slidesToShowState;
|
|
2278
2361
|
const nextSlide = () => {
|
|
2279
2362
|
if (currentSlide >= maxSlide) {
|
|
@@ -2318,16 +2401,16 @@ var init_Slider = __esm({
|
|
|
2318
2401
|
}
|
|
2319
2402
|
};
|
|
2320
2403
|
const translateX = -currentSlide * (100 / slidesToShowState);
|
|
2321
|
-
const slides =
|
|
2322
|
-
if (!
|
|
2404
|
+
const slides = import_react33.Children.map(children, (child, index) => {
|
|
2405
|
+
if (!import_react33.default.isValidElement(child)) return null;
|
|
2323
2406
|
const childProps = child.props;
|
|
2324
2407
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
2325
|
-
return /* @__PURE__ */ (0,
|
|
2408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2326
2409
|
"div",
|
|
2327
2410
|
{
|
|
2328
2411
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
2329
2412
|
style: { width: `calc(${100 / slidesToShowState}%)`, paddingRight: gap },
|
|
2330
|
-
children: (0,
|
|
2413
|
+
children: (0, import_react33.cloneElement)(child, {
|
|
2331
2414
|
className: mergedClassName
|
|
2332
2415
|
})
|
|
2333
2416
|
},
|
|
@@ -2345,14 +2428,14 @@ var init_Slider = __esm({
|
|
|
2345
2428
|
return "bottom-4";
|
|
2346
2429
|
}
|
|
2347
2430
|
};
|
|
2348
|
-
return /* @__PURE__ */ (0,
|
|
2431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2349
2432
|
"div",
|
|
2350
2433
|
{
|
|
2351
2434
|
className: `relative w-full overflow-hidden ${className}`,
|
|
2352
2435
|
onMouseEnter: handleMouseEnter,
|
|
2353
2436
|
onMouseLeave: handleMouseLeave,
|
|
2354
2437
|
children: [
|
|
2355
|
-
/* @__PURE__ */ (0,
|
|
2438
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2356
2439
|
"div",
|
|
2357
2440
|
{
|
|
2358
2441
|
className: "flex h-full",
|
|
@@ -2363,18 +2446,18 @@ var init_Slider = __esm({
|
|
|
2363
2446
|
children: slides
|
|
2364
2447
|
}
|
|
2365
2448
|
),
|
|
2366
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
2367
|
-
/* @__PURE__ */ (0,
|
|
2449
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
2450
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2368
2451
|
ArrowButton,
|
|
2369
2452
|
{
|
|
2370
2453
|
direction: "left",
|
|
2371
2454
|
onClick: prevSlide,
|
|
2372
2455
|
visible: infinite_scroll || currentSlide > 0,
|
|
2373
2456
|
className: arrowClassName,
|
|
2374
|
-
children: /* @__PURE__ */ (0,
|
|
2457
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.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_runtime53.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
|
|
2375
2458
|
}
|
|
2376
2459
|
),
|
|
2377
|
-
/* @__PURE__ */ (0,
|
|
2460
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2378
2461
|
ArrowButton,
|
|
2379
2462
|
{
|
|
2380
2463
|
direction: "right",
|
|
@@ -2382,13 +2465,13 @@ var init_Slider = __esm({
|
|
|
2382
2465
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
2383
2466
|
className: arrowClassName,
|
|
2384
2467
|
children: [
|
|
2385
|
-
/* @__PURE__ */ (0,
|
|
2468
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.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_runtime53.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
|
|
2386
2469
|
" "
|
|
2387
2470
|
]
|
|
2388
2471
|
}
|
|
2389
2472
|
)
|
|
2390
2473
|
] }),
|
|
2391
|
-
show_dots && /* @__PURE__ */ (0,
|
|
2474
|
+
show_dots && /* @__PURE__ */ (0, import_jsx_runtime53.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_runtime53.jsx)(
|
|
2392
2475
|
ProgressPill,
|
|
2393
2476
|
{
|
|
2394
2477
|
active: index === currentSlide,
|
|
@@ -2414,7 +2497,7 @@ var init_Slider = __esm({
|
|
|
2414
2497
|
visible,
|
|
2415
2498
|
children,
|
|
2416
2499
|
className = ""
|
|
2417
|
-
}) => /* @__PURE__ */ (0,
|
|
2500
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2418
2501
|
"button",
|
|
2419
2502
|
{
|
|
2420
2503
|
className: `
|
|
@@ -2440,13 +2523,13 @@ var init_Slider = __esm({
|
|
|
2440
2523
|
currentSlide,
|
|
2441
2524
|
totalSlides
|
|
2442
2525
|
}) => {
|
|
2443
|
-
const [progress, setProgress] = (0,
|
|
2444
|
-
(0,
|
|
2526
|
+
const [progress, setProgress] = (0, import_react33.useState)(0);
|
|
2527
|
+
(0, import_react33.useEffect)(() => {
|
|
2445
2528
|
if (active) {
|
|
2446
2529
|
setProgress(0);
|
|
2447
2530
|
}
|
|
2448
2531
|
}, [active, index]);
|
|
2449
|
-
(0,
|
|
2532
|
+
(0, import_react33.useEffect)(() => {
|
|
2450
2533
|
if (!active || !isPlaying) {
|
|
2451
2534
|
if (!active) {
|
|
2452
2535
|
setProgress(0);
|
|
@@ -2501,7 +2584,7 @@ var init_Slider = __esm({
|
|
|
2501
2584
|
const renderProgressBar = () => {
|
|
2502
2585
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
2503
2586
|
const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
|
|
2504
|
-
return /* @__PURE__ */ (0,
|
|
2587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2505
2588
|
"div",
|
|
2506
2589
|
{
|
|
2507
2590
|
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`,
|
|
@@ -2513,7 +2596,7 @@ var init_Slider = __esm({
|
|
|
2513
2596
|
};
|
|
2514
2597
|
const renderCumulativeFill = () => {
|
|
2515
2598
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
2516
|
-
return /* @__PURE__ */ (0,
|
|
2599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2517
2600
|
"div",
|
|
2518
2601
|
{
|
|
2519
2602
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -2523,7 +2606,7 @@ var init_Slider = __esm({
|
|
|
2523
2606
|
}
|
|
2524
2607
|
return null;
|
|
2525
2608
|
};
|
|
2526
|
-
return /* @__PURE__ */ (0,
|
|
2609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2527
2610
|
"button",
|
|
2528
2611
|
{
|
|
2529
2612
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -2551,10 +2634,10 @@ __export(server_exports, {
|
|
|
2551
2634
|
module.exports = __toCommonJS(server_exports);
|
|
2552
2635
|
|
|
2553
2636
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2554
|
-
var
|
|
2637
|
+
var import_react35 = __toESM(require("react"));
|
|
2555
2638
|
|
|
2556
2639
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
2557
|
-
var
|
|
2640
|
+
var import_react22 = __toESM(require("react"));
|
|
2558
2641
|
|
|
2559
2642
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
2560
2643
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -3017,7 +3100,7 @@ var EquationNode = ({ node }) => {
|
|
|
3017
3100
|
var EquationNode_default = EquationNode;
|
|
3018
3101
|
|
|
3019
3102
|
// src/components/controls/view/ViewControl.tsx
|
|
3020
|
-
var
|
|
3103
|
+
var import_react21 = __toESM(require("react"));
|
|
3021
3104
|
|
|
3022
3105
|
// src/components/controls/view/ViewControlTypes.tsx
|
|
3023
3106
|
var ViewControlTypes = {
|
|
@@ -3275,8 +3358,15 @@ var DateTimeView = (0, import_dynamic5.default)(() => Promise.resolve().then(()
|
|
|
3275
3358
|
});
|
|
3276
3359
|
var DateTimeVew_default = DateTimeView;
|
|
3277
3360
|
|
|
3361
|
+
// src/components/controls/view/TimeUntilStarts.tsx
|
|
3362
|
+
var import_dynamic6 = __toESM(require("next/dynamic"));
|
|
3363
|
+
var TimeUntilStarts = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_TimeUntilStartsClient(), TimeUntilStartsClient_exports)), {
|
|
3364
|
+
ssr: false
|
|
3365
|
+
});
|
|
3366
|
+
var TimeUntilStarts_default = TimeUntilStarts;
|
|
3367
|
+
|
|
3278
3368
|
// src/components/controls/view/ViewControl.tsx
|
|
3279
|
-
var
|
|
3369
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3280
3370
|
var ViewControl = (props) => {
|
|
3281
3371
|
const ControlComponents = {
|
|
3282
3372
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -3285,7 +3375,7 @@ var ViewControl = (props) => {
|
|
|
3285
3375
|
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
3286
3376
|
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
3287
3377
|
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
3288
|
-
|
|
3378
|
+
[ViewControlTypes_default.timeUntilStarts]: TimeUntilStarts_default,
|
|
3289
3379
|
[ViewControlTypes_default.money]: MoneyView_default,
|
|
3290
3380
|
[ViewControlTypes_default.date]: DateView_default,
|
|
3291
3381
|
[ViewControlTypes_default.time]: DateView_default,
|
|
@@ -3298,19 +3388,19 @@ var ViewControl = (props) => {
|
|
|
3298
3388
|
[ViewControlTypes_default.status]: StatusView_default,
|
|
3299
3389
|
[ViewControlTypes_default.statusBg]: StatusBgView_default,
|
|
3300
3390
|
[ViewControlTypes_default.progressIndicator]: ProgressIndicator_default,
|
|
3301
|
-
|
|
3391
|
+
[ViewControlTypes_default.timeUntilStarts]: TimeUntilStarts_default,
|
|
3302
3392
|
// [ViewControlTypes.timeUntilStartsStyled]: TimeUntilStartsStyled,
|
|
3303
3393
|
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
3304
3394
|
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
3305
3395
|
[ViewControlTypes_default.text]: LineTextView_default
|
|
3306
3396
|
};
|
|
3307
3397
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
3308
|
-
return /* @__PURE__ */ (0,
|
|
3398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react21.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
3309
3399
|
};
|
|
3310
3400
|
var ViewControl_default = ViewControl;
|
|
3311
3401
|
|
|
3312
3402
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
3313
|
-
var
|
|
3403
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3314
3404
|
function getNestedProperty(obj, path) {
|
|
3315
3405
|
if (!obj || !path) return null;
|
|
3316
3406
|
if (path.includes(".")) {
|
|
@@ -3323,7 +3413,7 @@ function getNestedProperty(obj, path) {
|
|
|
3323
3413
|
}
|
|
3324
3414
|
const value = obj[path];
|
|
3325
3415
|
if (Array.isArray(value)) {
|
|
3326
|
-
return value.map((item, index) => /* @__PURE__ */ (0,
|
|
3416
|
+
return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: String(item) }, index));
|
|
3327
3417
|
}
|
|
3328
3418
|
return value;
|
|
3329
3419
|
}
|
|
@@ -3384,7 +3474,7 @@ var DatafieldNode = (props) => {
|
|
|
3384
3474
|
const dataType = props.node.dataType;
|
|
3385
3475
|
if (isEmptyValue) return null;
|
|
3386
3476
|
if (dataType === "rawContent") {
|
|
3387
|
-
return /* @__PURE__ */ (0,
|
|
3477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3388
3478
|
PageBodyRenderer_default,
|
|
3389
3479
|
{
|
|
3390
3480
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -3400,12 +3490,12 @@ var DatafieldNode = (props) => {
|
|
|
3400
3490
|
}
|
|
3401
3491
|
);
|
|
3402
3492
|
}
|
|
3403
|
-
return /* @__PURE__ */ (0,
|
|
3493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3404
3494
|
"span",
|
|
3405
3495
|
{
|
|
3406
3496
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
3407
3497
|
style: styles,
|
|
3408
|
-
children: /* @__PURE__ */ (0,
|
|
3498
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3409
3499
|
ViewControl_default,
|
|
3410
3500
|
{
|
|
3411
3501
|
controlType: dataType,
|
|
@@ -3418,7 +3508,7 @@ var DatafieldNode = (props) => {
|
|
|
3418
3508
|
var DatafieldNode_default = DatafieldNode;
|
|
3419
3509
|
|
|
3420
3510
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
3421
|
-
var
|
|
3511
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3422
3512
|
var ParagraphNode = (props) => {
|
|
3423
3513
|
const NodeTypes2 = {
|
|
3424
3514
|
["text"]: TextNode_default,
|
|
@@ -3438,9 +3528,9 @@ var ParagraphNode = (props) => {
|
|
|
3438
3528
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
3439
3529
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
3440
3530
|
if (isInlineOnlyParent) {
|
|
3441
|
-
return /* @__PURE__ */ (0,
|
|
3531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
|
|
3442
3532
|
const SelectedNode = NodeTypes2[node.type];
|
|
3443
|
-
return /* @__PURE__ */ (0,
|
|
3533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3444
3534
|
SelectedNode,
|
|
3445
3535
|
{
|
|
3446
3536
|
node,
|
|
@@ -3452,10 +3542,10 @@ var ParagraphNode = (props) => {
|
|
|
3452
3542
|
) }, index);
|
|
3453
3543
|
}) });
|
|
3454
3544
|
}
|
|
3455
|
-
return /* @__PURE__ */ (0,
|
|
3545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: " " + formatClasses, children: [
|
|
3456
3546
|
hasChildren && props.node.children.map((node, index) => {
|
|
3457
3547
|
const SelectedNode = NodeTypes2[node.type];
|
|
3458
|
-
return /* @__PURE__ */ (0,
|
|
3548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3459
3549
|
SelectedNode,
|
|
3460
3550
|
{
|
|
3461
3551
|
node,
|
|
@@ -3466,14 +3556,14 @@ var ParagraphNode = (props) => {
|
|
|
3466
3556
|
}
|
|
3467
3557
|
) }, index);
|
|
3468
3558
|
}),
|
|
3469
|
-
!hasChildren && /* @__PURE__ */ (0,
|
|
3559
|
+
!hasChildren && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "py-1.5 lg:py-2" })
|
|
3470
3560
|
] });
|
|
3471
3561
|
};
|
|
3472
3562
|
var ParagraphNode_default = ParagraphNode;
|
|
3473
3563
|
|
|
3474
3564
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
3475
|
-
var
|
|
3476
|
-
var
|
|
3565
|
+
var import_react23 = __toESM(require("react"));
|
|
3566
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3477
3567
|
var HeadingNode = (props) => {
|
|
3478
3568
|
const NodeTypes2 = {
|
|
3479
3569
|
["text"]: TextNode_default,
|
|
@@ -3489,23 +3579,23 @@ var HeadingNode = (props) => {
|
|
|
3489
3579
|
{
|
|
3490
3580
|
}
|
|
3491
3581
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
3492
|
-
return /* @__PURE__ */ (0,
|
|
3582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: import_react23.default.createElement(
|
|
3493
3583
|
HeadingTag,
|
|
3494
3584
|
{ className: formatClasses },
|
|
3495
3585
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
3496
3586
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
3497
|
-
return /* @__PURE__ */ (0,
|
|
3587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react23.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
3498
3588
|
})
|
|
3499
3589
|
) });
|
|
3500
3590
|
};
|
|
3501
3591
|
var HeadingNode_default = HeadingNode;
|
|
3502
3592
|
|
|
3503
3593
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
3504
|
-
var
|
|
3594
|
+
var import_react25 = __toESM(require("react"));
|
|
3505
3595
|
|
|
3506
3596
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
3507
|
-
var
|
|
3508
|
-
var
|
|
3597
|
+
var import_react24 = __toESM(require("react"));
|
|
3598
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3509
3599
|
var ListItemNode = (props) => {
|
|
3510
3600
|
const NodeTypes2 = {
|
|
3511
3601
|
text: TextNode_default,
|
|
@@ -3522,66 +3612,66 @@ var ListItemNode = (props) => {
|
|
|
3522
3612
|
liStyle.fontSize = match[1].trim();
|
|
3523
3613
|
}
|
|
3524
3614
|
}
|
|
3525
|
-
return /* @__PURE__ */ (0,
|
|
3615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
3526
3616
|
const SelectedNode = NodeTypes2[node.type];
|
|
3527
3617
|
if (node.type === "linebreak") {
|
|
3528
3618
|
if (!foundFirstBreak) {
|
|
3529
3619
|
foundFirstBreak = true;
|
|
3530
|
-
return /* @__PURE__ */ (0,
|
|
3620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", {}, index);
|
|
3531
3621
|
} else {
|
|
3532
|
-
return /* @__PURE__ */ (0,
|
|
3622
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "py-1 lg:py-2" }, index);
|
|
3533
3623
|
}
|
|
3534
3624
|
} else {
|
|
3535
3625
|
foundFirstBreak = false;
|
|
3536
|
-
return /* @__PURE__ */ (0,
|
|
3626
|
+
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);
|
|
3537
3627
|
}
|
|
3538
3628
|
}) });
|
|
3539
3629
|
};
|
|
3540
3630
|
var ListItemNode_default = ListItemNode;
|
|
3541
3631
|
|
|
3542
3632
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
3543
|
-
var
|
|
3633
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3544
3634
|
var ListNode = (props) => {
|
|
3545
3635
|
const NodeTypes2 = {
|
|
3546
3636
|
listitem: ListItemNode_default
|
|
3547
3637
|
};
|
|
3548
|
-
return /* @__PURE__ */ (0,
|
|
3549
|
-
props.node.listType == "bullet" && /* @__PURE__ */ (0,
|
|
3638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react25.default.Fragment, { children: [
|
|
3639
|
+
props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
3550
3640
|
const SelectedNode = NodeTypes2[node.type];
|
|
3551
|
-
return /* @__PURE__ */ (0,
|
|
3641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react25.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
3552
3642
|
}) }),
|
|
3553
|
-
props.node.listType == "number" && /* @__PURE__ */ (0,
|
|
3643
|
+
props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
3554
3644
|
const SelectedNode = NodeTypes2[node.type];
|
|
3555
|
-
return /* @__PURE__ */ (0,
|
|
3645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react25.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
3556
3646
|
}) })
|
|
3557
3647
|
] });
|
|
3558
3648
|
};
|
|
3559
3649
|
var ListNode_default = ListNode;
|
|
3560
3650
|
|
|
3561
3651
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
3562
|
-
var
|
|
3563
|
-
var
|
|
3652
|
+
var import_react26 = __toESM(require("react"));
|
|
3653
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3564
3654
|
var QuoteNode = (props) => {
|
|
3565
3655
|
const NodeTypes2 = {
|
|
3566
3656
|
["text"]: TextNode_default,
|
|
3567
3657
|
["linebreak"]: LineBreakNode_default,
|
|
3568
3658
|
["link"]: LinkNode_default
|
|
3569
3659
|
};
|
|
3570
|
-
return /* @__PURE__ */ (0,
|
|
3660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
3571
3661
|
const SelectedNode = NodeTypes2[node.type];
|
|
3572
|
-
return /* @__PURE__ */ (0,
|
|
3662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react26.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
3573
3663
|
}) });
|
|
3574
3664
|
};
|
|
3575
3665
|
var QuoteNode_default = QuoteNode;
|
|
3576
3666
|
|
|
3577
3667
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
3578
|
-
var
|
|
3579
|
-
var
|
|
3580
|
-
var
|
|
3581
|
-
var CopyButton2 = (0,
|
|
3668
|
+
var import_react28 = __toESM(require("react"));
|
|
3669
|
+
var import_dynamic7 = __toESM(require("next/dynamic"));
|
|
3670
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3671
|
+
var CopyButton2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
|
|
3582
3672
|
ssr: false,
|
|
3583
3673
|
// optional: fallback UI while loading
|
|
3584
|
-
loading: () => /* @__PURE__ */ (0,
|
|
3674
|
+
loading: () => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
3585
3675
|
});
|
|
3586
3676
|
var CodeNode = (props) => {
|
|
3587
3677
|
const NodeTypes2 = {
|
|
@@ -3595,14 +3685,14 @@ var CodeNode = (props) => {
|
|
|
3595
3685
|
if (node.type === "link") return node.text || node.url || "";
|
|
3596
3686
|
return "";
|
|
3597
3687
|
}).join("") ?? "";
|
|
3598
|
-
return /* @__PURE__ */ (0,
|
|
3599
|
-
/* @__PURE__ */ (0,
|
|
3600
|
-
/* @__PURE__ */ (0,
|
|
3601
|
-
/* @__PURE__ */ (0,
|
|
3688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
|
|
3689
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
3690
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Code Snippet" }),
|
|
3691
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CopyButton2, { text: textContent })
|
|
3602
3692
|
] }),
|
|
3603
|
-
/* @__PURE__ */ (0,
|
|
3693
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.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) => {
|
|
3604
3694
|
const SelectedNode = NodeTypes2[node.type];
|
|
3605
|
-
return /* @__PURE__ */ (0,
|
|
3695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react28.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3606
3696
|
SelectedNode,
|
|
3607
3697
|
{
|
|
3608
3698
|
node,
|
|
@@ -3617,15 +3707,15 @@ var CodeNode = (props) => {
|
|
|
3617
3707
|
var CodeNode_default = CodeNode;
|
|
3618
3708
|
|
|
3619
3709
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
3620
|
-
var
|
|
3710
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3621
3711
|
var HorizontalRuleNode = () => {
|
|
3622
|
-
return /* @__PURE__ */ (0,
|
|
3712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("hr", {});
|
|
3623
3713
|
};
|
|
3624
3714
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
3625
3715
|
|
|
3626
3716
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
3627
|
-
var
|
|
3628
|
-
var
|
|
3717
|
+
var import_react29 = __toESM(require("react"));
|
|
3718
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3629
3719
|
var WidgetNode = (props) => {
|
|
3630
3720
|
const getWidgetParameters = () => {
|
|
3631
3721
|
const widgetInputParameters = {
|
|
@@ -3689,7 +3779,7 @@ var WidgetNode = (props) => {
|
|
|
3689
3779
|
};
|
|
3690
3780
|
const widgetCode = props.node?.widgetCode;
|
|
3691
3781
|
if (!widgetCode) {
|
|
3692
|
-
return /* @__PURE__ */ (0,
|
|
3782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, { children: "Invalid widget" });
|
|
3693
3783
|
}
|
|
3694
3784
|
const widgetParams = getWidgetParameters();
|
|
3695
3785
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -3698,7 +3788,7 @@ var WidgetNode = (props) => {
|
|
|
3698
3788
|
}
|
|
3699
3789
|
return (
|
|
3700
3790
|
// eslint-disable-next-line react-hooks/static-components
|
|
3701
|
-
/* @__PURE__ */ (0,
|
|
3791
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react29.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3702
3792
|
WidgetRenderer,
|
|
3703
3793
|
{
|
|
3704
3794
|
params: widgetParams,
|
|
@@ -3715,13 +3805,13 @@ var WidgetNode = (props) => {
|
|
|
3715
3805
|
var WidgetNode_default = WidgetNode;
|
|
3716
3806
|
|
|
3717
3807
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
3718
|
-
var
|
|
3719
|
-
var
|
|
3808
|
+
var import_dynamic10 = __toESM(require("next/dynamic"));
|
|
3809
|
+
var import_react34 = __toESM(require("react"));
|
|
3720
3810
|
|
|
3721
3811
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
3722
|
-
var
|
|
3723
|
-
var
|
|
3724
|
-
var IframeClient2 = (0,
|
|
3812
|
+
var import_dynamic8 = __toESM(require("next/dynamic"));
|
|
3813
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3814
|
+
var IframeClient2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
3725
3815
|
ssr: false
|
|
3726
3816
|
});
|
|
3727
3817
|
var EmbedNode = (props) => {
|
|
@@ -3733,7 +3823,7 @@ var EmbedNode = (props) => {
|
|
|
3733
3823
|
} else {
|
|
3734
3824
|
src = props.node.embedSrc;
|
|
3735
3825
|
}
|
|
3736
|
-
return /* @__PURE__ */ (0,
|
|
3826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IframeClient2, { src }) });
|
|
3737
3827
|
};
|
|
3738
3828
|
var EmbedNode_default = EmbedNode;
|
|
3739
3829
|
|
|
@@ -3932,10 +4022,10 @@ var PathUtility = class {
|
|
|
3932
4022
|
var PathUtility_default = new PathUtility();
|
|
3933
4023
|
|
|
3934
4024
|
// src/components/NoDataFound.tsx
|
|
3935
|
-
var
|
|
4025
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3936
4026
|
var NoDataFound = () => {
|
|
3937
|
-
return /* @__PURE__ */ (0,
|
|
3938
|
-
/* @__PURE__ */ (0,
|
|
4027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
4028
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3939
4029
|
"svg",
|
|
3940
4030
|
{
|
|
3941
4031
|
className: "w-10 h-10",
|
|
@@ -3943,7 +4033,7 @@ var NoDataFound = () => {
|
|
|
3943
4033
|
stroke: "currentColor",
|
|
3944
4034
|
viewBox: "0 0 24 24",
|
|
3945
4035
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3946
|
-
children: /* @__PURE__ */ (0,
|
|
4036
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3947
4037
|
"path",
|
|
3948
4038
|
{
|
|
3949
4039
|
strokeLinecap: "round",
|
|
@@ -3954,16 +4044,16 @@ var NoDataFound = () => {
|
|
|
3954
4044
|
)
|
|
3955
4045
|
}
|
|
3956
4046
|
) }) }),
|
|
3957
|
-
/* @__PURE__ */ (0,
|
|
3958
|
-
/* @__PURE__ */ (0,
|
|
4047
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
4048
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
3959
4049
|
] });
|
|
3960
4050
|
};
|
|
3961
4051
|
var NoDataFound_default = NoDataFound;
|
|
3962
4052
|
|
|
3963
4053
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
3964
|
-
var
|
|
3965
|
-
var
|
|
3966
|
-
var HlsPlayer4 = (0,
|
|
4054
|
+
var import_dynamic9 = __toESM(require("next/dynamic"));
|
|
4055
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4056
|
+
var HlsPlayer4 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
3967
4057
|
var deviceToMediaQuery = (device) => {
|
|
3968
4058
|
switch (device) {
|
|
3969
4059
|
case "lg":
|
|
@@ -4118,8 +4208,8 @@ var ImageGalleryNode = (props) => {
|
|
|
4118
4208
|
right: "justify-end"
|
|
4119
4209
|
};
|
|
4120
4210
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
4121
|
-
return /* @__PURE__ */ (0,
|
|
4122
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0,
|
|
4211
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
|
|
4212
|
+
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4123
4213
|
HlsPlayer4,
|
|
4124
4214
|
{
|
|
4125
4215
|
sources: hlsSources,
|
|
@@ -4134,7 +4224,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4134
4224
|
styles: hlsStyles
|
|
4135
4225
|
}
|
|
4136
4226
|
) }),
|
|
4137
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0,
|
|
4227
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("picture", { children: [
|
|
4138
4228
|
DEVICE_ORDER.map((deviceKey) => {
|
|
4139
4229
|
const match = staticSources.find(
|
|
4140
4230
|
(img) => img.device === deviceKey
|
|
@@ -4150,7 +4240,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4150
4240
|
if (!srcUrl) {
|
|
4151
4241
|
return null;
|
|
4152
4242
|
}
|
|
4153
|
-
return /* @__PURE__ */ (0,
|
|
4243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4154
4244
|
"source",
|
|
4155
4245
|
{
|
|
4156
4246
|
media: deviceToMediaQuery(match.device),
|
|
@@ -4175,7 +4265,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4175
4265
|
if (img.borderRadius) {
|
|
4176
4266
|
styles.borderRadius = img.borderRadius;
|
|
4177
4267
|
}
|
|
4178
|
-
return /* @__PURE__ */ (0,
|
|
4268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4179
4269
|
"img",
|
|
4180
4270
|
{
|
|
4181
4271
|
loading: "lazy",
|
|
@@ -4190,7 +4280,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4190
4280
|
})()
|
|
4191
4281
|
] }) : (
|
|
4192
4282
|
/* Case 2: Only device-specific images exist */
|
|
4193
|
-
/* @__PURE__ */ (0,
|
|
4283
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: staticSources.map((img, index) => {
|
|
4194
4284
|
const resolved = resolveImage(img);
|
|
4195
4285
|
const imageUrl = resolved?.imageUrl;
|
|
4196
4286
|
if (!imageUrl) {
|
|
@@ -4217,7 +4307,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4217
4307
|
default:
|
|
4218
4308
|
display = "block";
|
|
4219
4309
|
}
|
|
4220
|
-
return /* @__PURE__ */ (0,
|
|
4310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4221
4311
|
"img",
|
|
4222
4312
|
{
|
|
4223
4313
|
loading: "lazy",
|
|
@@ -4357,28 +4447,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
4357
4447
|
};
|
|
4358
4448
|
|
|
4359
4449
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
4360
|
-
var
|
|
4450
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4361
4451
|
var getNestedValue5 = (obj, path) => {
|
|
4362
4452
|
if (!obj || !path) return void 0;
|
|
4363
4453
|
return path.split(".").reduce((current, key) => {
|
|
4364
4454
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
4365
4455
|
}, obj);
|
|
4366
4456
|
};
|
|
4367
|
-
var PdfIcon = () => /* @__PURE__ */ (0,
|
|
4457
|
+
var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4368
4458
|
"svg",
|
|
4369
4459
|
{
|
|
4370
4460
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4371
4461
|
viewBox: "0 0 48 48",
|
|
4372
4462
|
className: "w-10 h-10",
|
|
4373
4463
|
children: [
|
|
4374
|
-
/* @__PURE__ */ (0,
|
|
4464
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4375
4465
|
"path",
|
|
4376
4466
|
{
|
|
4377
4467
|
fill: "#e53935",
|
|
4378
4468
|
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"
|
|
4379
4469
|
}
|
|
4380
4470
|
),
|
|
4381
|
-
/* @__PURE__ */ (0,
|
|
4471
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4382
4472
|
"path",
|
|
4383
4473
|
{
|
|
4384
4474
|
fill: "#fff",
|
|
@@ -4388,55 +4478,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4388
4478
|
]
|
|
4389
4479
|
}
|
|
4390
4480
|
);
|
|
4391
|
-
var ExcelIcon = () => /* @__PURE__ */ (0,
|
|
4481
|
+
var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4392
4482
|
"svg",
|
|
4393
4483
|
{
|
|
4394
4484
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4395
4485
|
viewBox: "0 0 48 48",
|
|
4396
4486
|
className: "w-10 h-10",
|
|
4397
4487
|
children: [
|
|
4398
|
-
/* @__PURE__ */ (0,
|
|
4488
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4399
4489
|
"path",
|
|
4400
4490
|
{
|
|
4401
4491
|
fill: "#169154",
|
|
4402
4492
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
4403
4493
|
}
|
|
4404
4494
|
),
|
|
4405
|
-
/* @__PURE__ */ (0,
|
|
4495
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4406
4496
|
"path",
|
|
4407
4497
|
{
|
|
4408
4498
|
fill: "#18482a",
|
|
4409
4499
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
4410
4500
|
}
|
|
4411
4501
|
),
|
|
4412
|
-
/* @__PURE__ */ (0,
|
|
4413
|
-
/* @__PURE__ */ (0,
|
|
4414
|
-
/* @__PURE__ */ (0,
|
|
4415
|
-
/* @__PURE__ */ (0,
|
|
4502
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
4503
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
4504
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("g", { children: [
|
|
4505
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4416
4506
|
"path",
|
|
4417
4507
|
{
|
|
4418
4508
|
fill: "#29c27f",
|
|
4419
4509
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
4420
4510
|
}
|
|
4421
4511
|
),
|
|
4422
|
-
/* @__PURE__ */ (0,
|
|
4512
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4423
4513
|
"path",
|
|
4424
4514
|
{
|
|
4425
4515
|
fill: "#27663f",
|
|
4426
4516
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
4427
4517
|
}
|
|
4428
4518
|
),
|
|
4429
|
-
/* @__PURE__ */ (0,
|
|
4430
|
-
/* @__PURE__ */ (0,
|
|
4519
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
4520
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
4431
4521
|
] }),
|
|
4432
|
-
/* @__PURE__ */ (0,
|
|
4522
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4433
4523
|
"path",
|
|
4434
4524
|
{
|
|
4435
4525
|
fill: "#0c7238",
|
|
4436
4526
|
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"
|
|
4437
4527
|
}
|
|
4438
4528
|
),
|
|
4439
|
-
/* @__PURE__ */ (0,
|
|
4529
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4440
4530
|
"path",
|
|
4441
4531
|
{
|
|
4442
4532
|
fill: "#fff",
|
|
@@ -4446,7 +4536,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4446
4536
|
]
|
|
4447
4537
|
}
|
|
4448
4538
|
);
|
|
4449
|
-
var WordIcon = () => /* @__PURE__ */ (0,
|
|
4539
|
+
var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4450
4540
|
"svg",
|
|
4451
4541
|
{
|
|
4452
4542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4454,14 +4544,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4454
4544
|
className: "w-10 h-10",
|
|
4455
4545
|
baseProfile: "basic",
|
|
4456
4546
|
children: [
|
|
4457
|
-
/* @__PURE__ */ (0,
|
|
4547
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4458
4548
|
"path",
|
|
4459
4549
|
{
|
|
4460
4550
|
fill: "#283593",
|
|
4461
4551
|
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"
|
|
4462
4552
|
}
|
|
4463
4553
|
),
|
|
4464
|
-
/* @__PURE__ */ (0,
|
|
4554
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4465
4555
|
"linearGradient",
|
|
4466
4556
|
{
|
|
4467
4557
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -4472,19 +4562,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4472
4562
|
gradientTransform: "translate(0 -339.89)",
|
|
4473
4563
|
gradientUnits: "userSpaceOnUse",
|
|
4474
4564
|
children: [
|
|
4475
|
-
/* @__PURE__ */ (0,
|
|
4476
|
-
/* @__PURE__ */ (0,
|
|
4565
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
4566
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
4477
4567
|
]
|
|
4478
4568
|
}
|
|
4479
4569
|
),
|
|
4480
|
-
/* @__PURE__ */ (0,
|
|
4570
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4481
4571
|
"path",
|
|
4482
4572
|
{
|
|
4483
4573
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
4484
4574
|
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"
|
|
4485
4575
|
}
|
|
4486
4576
|
),
|
|
4487
|
-
/* @__PURE__ */ (0,
|
|
4577
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4488
4578
|
"path",
|
|
4489
4579
|
{
|
|
4490
4580
|
fill: "#1e88e5",
|
|
@@ -4492,21 +4582,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4492
4582
|
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"
|
|
4493
4583
|
}
|
|
4494
4584
|
),
|
|
4495
|
-
/* @__PURE__ */ (0,
|
|
4585
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4496
4586
|
"path",
|
|
4497
4587
|
{
|
|
4498
4588
|
fill: "#00e5ff",
|
|
4499
4589
|
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"
|
|
4500
4590
|
}
|
|
4501
4591
|
),
|
|
4502
|
-
/* @__PURE__ */ (0,
|
|
4592
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4503
4593
|
"path",
|
|
4504
4594
|
{
|
|
4505
4595
|
fill: "#1565c0",
|
|
4506
4596
|
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"
|
|
4507
4597
|
}
|
|
4508
4598
|
),
|
|
4509
|
-
/* @__PURE__ */ (0,
|
|
4599
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4510
4600
|
"path",
|
|
4511
4601
|
{
|
|
4512
4602
|
fill: "#fff",
|
|
@@ -4516,42 +4606,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4516
4606
|
]
|
|
4517
4607
|
}
|
|
4518
4608
|
);
|
|
4519
|
-
var StandardIcon = () => /* @__PURE__ */ (0,
|
|
4609
|
+
var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4520
4610
|
"svg",
|
|
4521
4611
|
{
|
|
4522
4612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4523
4613
|
viewBox: "0 0 48 48",
|
|
4524
4614
|
className: "w-10 h-10",
|
|
4525
4615
|
children: [
|
|
4526
|
-
/* @__PURE__ */ (0,
|
|
4527
|
-
/* @__PURE__ */ (0,
|
|
4616
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
4617
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
4528
4618
|
]
|
|
4529
4619
|
}
|
|
4530
4620
|
);
|
|
4531
|
-
var PowerPointIcon = () => /* @__PURE__ */ (0,
|
|
4621
|
+
var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4532
4622
|
"svg",
|
|
4533
4623
|
{
|
|
4534
4624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4535
4625
|
viewBox: "0 0 48 48",
|
|
4536
4626
|
className: "w-10 h-10",
|
|
4537
4627
|
children: [
|
|
4538
|
-
/* @__PURE__ */ (0,
|
|
4628
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4539
4629
|
"path",
|
|
4540
4630
|
{
|
|
4541
4631
|
fill: "#dc4c2c",
|
|
4542
4632
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
4543
4633
|
}
|
|
4544
4634
|
),
|
|
4545
|
-
/* @__PURE__ */ (0,
|
|
4546
|
-
/* @__PURE__ */ (0,
|
|
4547
|
-
/* @__PURE__ */ (0,
|
|
4635
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
4636
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
4637
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4548
4638
|
"path",
|
|
4549
4639
|
{
|
|
4550
4640
|
fill: "#9b341f",
|
|
4551
4641
|
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"
|
|
4552
4642
|
}
|
|
4553
4643
|
),
|
|
4554
|
-
/* @__PURE__ */ (0,
|
|
4644
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4555
4645
|
"path",
|
|
4556
4646
|
{
|
|
4557
4647
|
fill: "#fff",
|
|
@@ -4561,16 +4651,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4561
4651
|
]
|
|
4562
4652
|
}
|
|
4563
4653
|
);
|
|
4564
|
-
var TextIcon = () => /* @__PURE__ */ (0,
|
|
4654
|
+
var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4565
4655
|
"svg",
|
|
4566
4656
|
{
|
|
4567
4657
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4568
4658
|
viewBox: "0 0 48 48",
|
|
4569
4659
|
className: "w-10 h-10",
|
|
4570
4660
|
children: [
|
|
4571
|
-
/* @__PURE__ */ (0,
|
|
4572
|
-
/* @__PURE__ */ (0,
|
|
4573
|
-
/* @__PURE__ */ (0,
|
|
4661
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
4662
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
4663
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4574
4664
|
"path",
|
|
4575
4665
|
{
|
|
4576
4666
|
fill: "#1976D2",
|
|
@@ -4580,7 +4670,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4580
4670
|
]
|
|
4581
4671
|
}
|
|
4582
4672
|
);
|
|
4583
|
-
var ArchiveIcon = () => /* @__PURE__ */ (0,
|
|
4673
|
+
var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4584
4674
|
"svg",
|
|
4585
4675
|
{
|
|
4586
4676
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4590,14 +4680,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4590
4680
|
version: "1.0",
|
|
4591
4681
|
className: "w-10 h-10",
|
|
4592
4682
|
children: [
|
|
4593
|
-
/* @__PURE__ */ (0,
|
|
4683
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4594
4684
|
"path",
|
|
4595
4685
|
{
|
|
4596
4686
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
4597
4687
|
"clip-rule": "nonzero"
|
|
4598
4688
|
}
|
|
4599
4689
|
) }) }),
|
|
4600
|
-
/* @__PURE__ */ (0,
|
|
4690
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4601
4691
|
"path",
|
|
4602
4692
|
{
|
|
4603
4693
|
fill: "#ff9100",
|
|
@@ -4606,7 +4696,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4606
4696
|
"fill-rule": "nonzero"
|
|
4607
4697
|
}
|
|
4608
4698
|
) }),
|
|
4609
|
-
/* @__PURE__ */ (0,
|
|
4699
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4610
4700
|
"path",
|
|
4611
4701
|
{
|
|
4612
4702
|
fill: "#fbe9e7",
|
|
@@ -4615,7 +4705,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4615
4705
|
"fill-rule": "nonzero"
|
|
4616
4706
|
}
|
|
4617
4707
|
),
|
|
4618
|
-
/* @__PURE__ */ (0,
|
|
4708
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4619
4709
|
"path",
|
|
4620
4710
|
{
|
|
4621
4711
|
fill: "#ffe0b2",
|
|
@@ -4624,7 +4714,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4624
4714
|
"fill-rule": "nonzero"
|
|
4625
4715
|
}
|
|
4626
4716
|
),
|
|
4627
|
-
/* @__PURE__ */ (0,
|
|
4717
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4628
4718
|
"path",
|
|
4629
4719
|
{
|
|
4630
4720
|
fill: "#ffe0b2",
|
|
@@ -4633,7 +4723,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4633
4723
|
"fill-rule": "nonzero"
|
|
4634
4724
|
}
|
|
4635
4725
|
),
|
|
4636
|
-
/* @__PURE__ */ (0,
|
|
4726
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4637
4727
|
"path",
|
|
4638
4728
|
{
|
|
4639
4729
|
fill: "#ffe0b2",
|
|
@@ -4709,8 +4799,8 @@ var DocumentNode = (props) => {
|
|
|
4709
4799
|
}
|
|
4710
4800
|
}
|
|
4711
4801
|
if (documents.length === 0) {
|
|
4712
|
-
return /* @__PURE__ */ (0,
|
|
4713
|
-
/* @__PURE__ */ (0,
|
|
4802
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_jsx_runtime46.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
4803
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4714
4804
|
"svg",
|
|
4715
4805
|
{
|
|
4716
4806
|
className: "w-5 h-5",
|
|
@@ -4718,7 +4808,7 @@ var DocumentNode = (props) => {
|
|
|
4718
4808
|
stroke: "currentColor",
|
|
4719
4809
|
viewBox: "0 0 24 24",
|
|
4720
4810
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4721
|
-
children: /* @__PURE__ */ (0,
|
|
4811
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4722
4812
|
"path",
|
|
4723
4813
|
{
|
|
4724
4814
|
strokeLinecap: "round",
|
|
@@ -4729,11 +4819,11 @@ var DocumentNode = (props) => {
|
|
|
4729
4819
|
)
|
|
4730
4820
|
}
|
|
4731
4821
|
) }),
|
|
4732
|
-
/* @__PURE__ */ (0,
|
|
4733
|
-
/* @__PURE__ */ (0,
|
|
4822
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
4823
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
4734
4824
|
] }) });
|
|
4735
4825
|
}
|
|
4736
|
-
return /* @__PURE__ */ (0,
|
|
4826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
4737
4827
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
4738
4828
|
props.assetBaseUrl,
|
|
4739
4829
|
doc.assetUrl
|
|
@@ -4751,16 +4841,16 @@ var DocumentNode = (props) => {
|
|
|
4751
4841
|
}
|
|
4752
4842
|
}
|
|
4753
4843
|
const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
|
|
4754
|
-
return /* @__PURE__ */ (0,
|
|
4844
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4755
4845
|
"div",
|
|
4756
4846
|
{
|
|
4757
4847
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
4758
4848
|
children: [
|
|
4759
|
-
/* @__PURE__ */ (0,
|
|
4760
|
-
/* @__PURE__ */ (0,
|
|
4761
|
-
/* @__PURE__ */ (0,
|
|
4849
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center space-x-4", children: [
|
|
4850
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Icon2, {}) }),
|
|
4851
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
4762
4852
|
] }),
|
|
4763
|
-
/* @__PURE__ */ (0,
|
|
4853
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4764
4854
|
"a",
|
|
4765
4855
|
{
|
|
4766
4856
|
href: documentUrl,
|
|
@@ -4768,7 +4858,7 @@ var DocumentNode = (props) => {
|
|
|
4768
4858
|
rel: "noopener noreferrer",
|
|
4769
4859
|
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",
|
|
4770
4860
|
children: [
|
|
4771
|
-
/* @__PURE__ */ (0,
|
|
4861
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4772
4862
|
"svg",
|
|
4773
4863
|
{
|
|
4774
4864
|
className: "w-4 h-4 mr-2",
|
|
@@ -4776,7 +4866,7 @@ var DocumentNode = (props) => {
|
|
|
4776
4866
|
stroke: "currentColor",
|
|
4777
4867
|
viewBox: "0 0 24 24",
|
|
4778
4868
|
children: [
|
|
4779
|
-
/* @__PURE__ */ (0,
|
|
4869
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4780
4870
|
"path",
|
|
4781
4871
|
{
|
|
4782
4872
|
strokeLinecap: "round",
|
|
@@ -4785,7 +4875,7 @@ var DocumentNode = (props) => {
|
|
|
4785
4875
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
4786
4876
|
}
|
|
4787
4877
|
),
|
|
4788
|
-
/* @__PURE__ */ (0,
|
|
4878
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4789
4879
|
"path",
|
|
4790
4880
|
{
|
|
4791
4881
|
strokeLinecap: "round",
|
|
@@ -4810,9 +4900,9 @@ var DocumentNode = (props) => {
|
|
|
4810
4900
|
var DocumentNode_default = DocumentNode;
|
|
4811
4901
|
|
|
4812
4902
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
4813
|
-
var
|
|
4814
|
-
var Pagination2 = (0,
|
|
4815
|
-
var Slider2 = (0,
|
|
4903
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4904
|
+
var Pagination2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
4905
|
+
var Slider2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
|
|
4816
4906
|
ssr: false
|
|
4817
4907
|
});
|
|
4818
4908
|
function toCamelCase(str) {
|
|
@@ -5065,7 +5155,7 @@ var DivContainer = async (props) => {
|
|
|
5065
5155
|
response = await serviceClient.get(endpoint);
|
|
5066
5156
|
result = response?.result;
|
|
5067
5157
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
5068
|
-
return /* @__PURE__ */ (0,
|
|
5158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(NoDataFound_default, {});
|
|
5069
5159
|
}
|
|
5070
5160
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
5071
5161
|
childCollectionData = getNestedValue6(
|
|
@@ -5085,7 +5175,7 @@ var DivContainer = async (props) => {
|
|
|
5085
5175
|
}
|
|
5086
5176
|
const SelectedNode = NodeTypes2[node.type];
|
|
5087
5177
|
if (!SelectedNode) return null;
|
|
5088
|
-
return /* @__PURE__ */ (0,
|
|
5178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5089
5179
|
SelectedNode,
|
|
5090
5180
|
{
|
|
5091
5181
|
node,
|
|
@@ -5218,14 +5308,14 @@ var DivContainer = async (props) => {
|
|
|
5218
5308
|
noLinkColor && "no-link-color",
|
|
5219
5309
|
!!props.node.enterAnimation && "enter-animation"
|
|
5220
5310
|
].filter(Boolean).join(" ");
|
|
5221
|
-
return /* @__PURE__ */ (0,
|
|
5222
|
-
/* @__PURE__ */ (0,
|
|
5311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_react34.default.Fragment, { children: [
|
|
5312
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5223
5313
|
"style",
|
|
5224
5314
|
{
|
|
5225
5315
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
5226
5316
|
}
|
|
5227
5317
|
),
|
|
5228
|
-
/* @__PURE__ */ (0,
|
|
5318
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5229
5319
|
Wrapper,
|
|
5230
5320
|
{
|
|
5231
5321
|
id: guid,
|
|
@@ -5239,11 +5329,11 @@ var DivContainer = async (props) => {
|
|
|
5239
5329
|
item,
|
|
5240
5330
|
idx,
|
|
5241
5331
|
props.href ? void 0 : item?.links?.view
|
|
5242
|
-
)?.map((child, i) => /* @__PURE__ */ (0,
|
|
5332
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
5243
5333
|
)
|
|
5244
5334
|
}
|
|
5245
5335
|
),
|
|
5246
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0,
|
|
5336
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5247
5337
|
Pagination2,
|
|
5248
5338
|
{
|
|
5249
5339
|
path: props.path,
|
|
@@ -5256,7 +5346,7 @@ var DivContainer = async (props) => {
|
|
|
5256
5346
|
var DivContainer_default = DivContainer;
|
|
5257
5347
|
|
|
5258
5348
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
5259
|
-
var
|
|
5349
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5260
5350
|
var NodeTypes = {
|
|
5261
5351
|
["paragraph"]: ParagraphNode_default,
|
|
5262
5352
|
["heading"]: HeadingNode_default,
|
|
@@ -5293,14 +5383,14 @@ var PageBodyRenderer = (props) => {
|
|
|
5293
5383
|
}
|
|
5294
5384
|
return true;
|
|
5295
5385
|
};
|
|
5296
|
-
return /* @__PURE__ */ (0,
|
|
5386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
5297
5387
|
{
|
|
5298
5388
|
}
|
|
5299
5389
|
const SelectedNode = NodeTypes[node.type];
|
|
5300
5390
|
if (!shouldRenderNode(node)) {
|
|
5301
5391
|
return null;
|
|
5302
5392
|
}
|
|
5303
|
-
return /* @__PURE__ */ (0,
|
|
5393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5304
5394
|
SelectedNode,
|
|
5305
5395
|
{
|
|
5306
5396
|
node,
|
|
@@ -5316,7 +5406,7 @@ var PageBodyRenderer = (props) => {
|
|
|
5316
5406
|
device: props.device,
|
|
5317
5407
|
widgetRenderer: props.widgetRenderer
|
|
5318
5408
|
}
|
|
5319
|
-
) }) : /* @__PURE__ */ (0,
|
|
5409
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5320
5410
|
SelectedNode,
|
|
5321
5411
|
{
|
|
5322
5412
|
node,
|