@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260807130918 → 0.8.1-dev.20260808070128
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.js +885 -813
- package/dist/index.mjs +380 -308
- package/dist/server.js +333 -261
- package/dist/server.mjs +196 -124
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -1566,9 +1566,9 @@ __export(CopyButton_exports, {
|
|
|
1566
1566
|
default: () => CopyButton
|
|
1567
1567
|
});
|
|
1568
1568
|
function CopyButton({ text }) {
|
|
1569
|
-
const [copied, setCopied] = (0,
|
|
1570
|
-
const timeoutRef = (0,
|
|
1571
|
-
(0,
|
|
1569
|
+
const [copied, setCopied] = (0, import_react27.useState)(false);
|
|
1570
|
+
const timeoutRef = (0, import_react27.useRef)(null);
|
|
1571
|
+
(0, import_react27.useEffect)(() => {
|
|
1572
1572
|
return () => {
|
|
1573
1573
|
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
|
1574
1574
|
};
|
|
@@ -1583,13 +1583,13 @@ function CopyButton({ text }) {
|
|
|
1583
1583
|
console.error("Failed to copy: ", err);
|
|
1584
1584
|
}
|
|
1585
1585
|
};
|
|
1586
|
-
return /* @__PURE__ */ (0,
|
|
1586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
1587
1587
|
"button",
|
|
1588
1588
|
{
|
|
1589
1589
|
onClick: handleCopy,
|
|
1590
1590
|
className: "flex gap-1 items-center hover:text-white transition",
|
|
1591
1591
|
children: [
|
|
1592
|
-
/* @__PURE__ */ (0,
|
|
1592
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1593
1593
|
"svg",
|
|
1594
1594
|
{
|
|
1595
1595
|
width: "16",
|
|
@@ -1597,7 +1597,7 @@ function CopyButton({ text }) {
|
|
|
1597
1597
|
viewBox: "0 0 24 24",
|
|
1598
1598
|
className: "w-4 h-4",
|
|
1599
1599
|
fill: "currentColor",
|
|
1600
|
-
children: /* @__PURE__ */ (0,
|
|
1600
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1601
1601
|
"path",
|
|
1602
1602
|
{
|
|
1603
1603
|
fillRule: "evenodd",
|
|
@@ -1612,54 +1612,54 @@ function CopyButton({ text }) {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
);
|
|
1614
1614
|
}
|
|
1615
|
-
var
|
|
1615
|
+
var import_react27, import_jsx_runtime37;
|
|
1616
1616
|
var init_CopyButton = __esm({
|
|
1617
1617
|
"src/components/CopyButton.tsx"() {
|
|
1618
1618
|
"use strict";
|
|
1619
1619
|
"use client";
|
|
1620
|
-
|
|
1621
|
-
|
|
1620
|
+
import_react27 = require("react");
|
|
1621
|
+
import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1622
1622
|
}
|
|
1623
1623
|
});
|
|
1624
1624
|
|
|
1625
1625
|
// src/components/IFrameLoaderView.tsx
|
|
1626
|
-
var
|
|
1626
|
+
var import_react30, import_jsx_runtime41, IFrameLoaderView, IFrameLoaderView_default;
|
|
1627
1627
|
var init_IFrameLoaderView = __esm({
|
|
1628
1628
|
"src/components/IFrameLoaderView.tsx"() {
|
|
1629
1629
|
"use strict";
|
|
1630
|
-
|
|
1631
|
-
|
|
1630
|
+
import_react30 = __toESM(require("react"));
|
|
1631
|
+
import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1632
1632
|
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,
|
|
1633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_react30.default.Fragment, { children: [
|
|
1634
|
+
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: [
|
|
1635
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
1636
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
1637
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "ml-2", children: [
|
|
1638
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
1639
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
1640
1640
|
] })
|
|
1641
1641
|
] }),
|
|
1642
|
-
/* @__PURE__ */ (0,
|
|
1643
|
-
/* @__PURE__ */ (0,
|
|
1644
|
-
/* @__PURE__ */ (0,
|
|
1645
|
-
/* @__PURE__ */ (0,
|
|
1646
|
-
/* @__PURE__ */ (0,
|
|
1647
|
-
/* @__PURE__ */ (0,
|
|
1648
|
-
/* @__PURE__ */ (0,
|
|
1642
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
1643
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
|
|
1644
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1645
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1646
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
1647
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
1648
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
1649
1649
|
] }),
|
|
1650
|
-
/* @__PURE__ */ (0,
|
|
1651
|
-
/* @__PURE__ */ (0,
|
|
1652
|
-
/* @__PURE__ */ (0,
|
|
1653
|
-
/* @__PURE__ */ (0,
|
|
1654
|
-
/* @__PURE__ */ (0,
|
|
1655
|
-
/* @__PURE__ */ (0,
|
|
1650
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
|
|
1651
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1652
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1653
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
1654
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
1655
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
1656
1656
|
] }),
|
|
1657
|
-
/* @__PURE__ */ (0,
|
|
1658
|
-
/* @__PURE__ */ (0,
|
|
1659
|
-
/* @__PURE__ */ (0,
|
|
1660
|
-
/* @__PURE__ */ (0,
|
|
1661
|
-
/* @__PURE__ */ (0,
|
|
1662
|
-
/* @__PURE__ */ (0,
|
|
1657
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "animate-pulse", children: [
|
|
1658
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
1659
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
1660
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
1661
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
1662
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
1663
1663
|
] })
|
|
1664
1664
|
] })
|
|
1665
1665
|
] }) }),
|
|
@@ -1675,19 +1675,19 @@ var IframeClient_exports = {};
|
|
|
1675
1675
|
__export(IframeClient_exports, {
|
|
1676
1676
|
default: () => IframeClient_default
|
|
1677
1677
|
});
|
|
1678
|
-
var
|
|
1678
|
+
var import_react31, import_jsx_runtime42, IframeClient, IframeClient_default;
|
|
1679
1679
|
var init_IframeClient = __esm({
|
|
1680
1680
|
"src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
|
|
1681
1681
|
"use strict";
|
|
1682
1682
|
"use client";
|
|
1683
|
-
|
|
1683
|
+
import_react31 = __toESM(require("react"));
|
|
1684
1684
|
init_IFrameLoaderView();
|
|
1685
|
-
|
|
1685
|
+
import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1686
1686
|
IframeClient = ({ src }) => {
|
|
1687
|
-
const iframeRef = (0,
|
|
1688
|
-
const [iframeHeight, setIframeHeight] = (0,
|
|
1689
|
-
const [isDataFound, setIsDataFound] = (0,
|
|
1690
|
-
(0,
|
|
1687
|
+
const iframeRef = (0, import_react31.useRef)(null);
|
|
1688
|
+
const [iframeHeight, setIframeHeight] = (0, import_react31.useState)("100%");
|
|
1689
|
+
const [isDataFound, setIsDataFound] = (0, import_react31.useState)(null);
|
|
1690
|
+
(0, import_react31.useEffect)(() => {
|
|
1691
1691
|
const handleReceiveMessage = (event) => {
|
|
1692
1692
|
const eventName = event?.data?.eventName;
|
|
1693
1693
|
const payload = event?.data?.payload;
|
|
@@ -1702,7 +1702,7 @@ var init_IframeClient = __esm({
|
|
|
1702
1702
|
window.addEventListener("message", handleReceiveMessage);
|
|
1703
1703
|
return () => window.removeEventListener("message", handleReceiveMessage);
|
|
1704
1704
|
}, []);
|
|
1705
|
-
(0,
|
|
1705
|
+
(0, import_react31.useEffect)(() => {
|
|
1706
1706
|
const handleResize = () => {
|
|
1707
1707
|
if (iframeRef.current) {
|
|
1708
1708
|
iframeRef.current.contentWindow?.postMessage({ eventName: "RESIZE" }, "*");
|
|
@@ -1714,7 +1714,7 @@ var init_IframeClient = __esm({
|
|
|
1714
1714
|
const handleIframeLoad = () => {
|
|
1715
1715
|
setIsDataFound(true);
|
|
1716
1716
|
};
|
|
1717
|
-
return /* @__PURE__ */ (0,
|
|
1717
|
+
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
1718
|
"iframe",
|
|
1719
1719
|
{
|
|
1720
1720
|
ref: iframeRef,
|
|
@@ -1941,52 +1941,52 @@ var init_OdataBuilder = __esm({
|
|
|
1941
1941
|
});
|
|
1942
1942
|
|
|
1943
1943
|
// src/svg/chevron-updown.tsx
|
|
1944
|
-
var
|
|
1944
|
+
var import_jsx_runtime47, ChevronUpDown, chevron_updown_default;
|
|
1945
1945
|
var init_chevron_updown = __esm({
|
|
1946
1946
|
"src/svg/chevron-updown.tsx"() {
|
|
1947
1947
|
"use strict";
|
|
1948
|
-
|
|
1948
|
+
import_jsx_runtime47 = require("react/jsx-runtime");
|
|
1949
1949
|
ChevronUpDown = (props) => {
|
|
1950
|
-
return /* @__PURE__ */ (0,
|
|
1950
|
+
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
1951
|
};
|
|
1952
1952
|
chevron_updown_default = ChevronUpDown;
|
|
1953
1953
|
}
|
|
1954
1954
|
});
|
|
1955
1955
|
|
|
1956
1956
|
// src/svg/chevron-down.tsx
|
|
1957
|
-
var
|
|
1957
|
+
var import_jsx_runtime48, ChevronDown, chevron_down_default;
|
|
1958
1958
|
var init_chevron_down = __esm({
|
|
1959
1959
|
"src/svg/chevron-down.tsx"() {
|
|
1960
1960
|
"use strict";
|
|
1961
|
-
|
|
1961
|
+
import_jsx_runtime48 = require("react/jsx-runtime");
|
|
1962
1962
|
ChevronDown = (props) => {
|
|
1963
|
-
return /* @__PURE__ */ (0,
|
|
1963
|
+
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
1964
|
};
|
|
1965
1965
|
chevron_down_default = ChevronDown;
|
|
1966
1966
|
}
|
|
1967
1967
|
});
|
|
1968
1968
|
|
|
1969
1969
|
// src/svg/chevron-up.tsx
|
|
1970
|
-
var
|
|
1970
|
+
var import_jsx_runtime49, ChevronUp, chevron_up_default;
|
|
1971
1971
|
var init_chevron_up = __esm({
|
|
1972
1972
|
"src/svg/chevron-up.tsx"() {
|
|
1973
1973
|
"use strict";
|
|
1974
|
-
|
|
1974
|
+
import_jsx_runtime49 = require("react/jsx-runtime");
|
|
1975
1975
|
ChevronUp = (props) => {
|
|
1976
|
-
return /* @__PURE__ */ (0,
|
|
1976
|
+
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
1977
|
};
|
|
1978
1978
|
chevron_up_default = ChevronUp;
|
|
1979
1979
|
}
|
|
1980
1980
|
});
|
|
1981
1981
|
|
|
1982
1982
|
// src/svg/plus.tsx
|
|
1983
|
-
var
|
|
1983
|
+
var import_jsx_runtime50, Plus, plus_default;
|
|
1984
1984
|
var init_plus = __esm({
|
|
1985
1985
|
"src/svg/plus.tsx"() {
|
|
1986
1986
|
"use strict";
|
|
1987
|
-
|
|
1987
|
+
import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1988
1988
|
Plus = (props) => {
|
|
1989
|
-
return /* @__PURE__ */ (0,
|
|
1989
|
+
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
1990
|
};
|
|
1991
1991
|
plus_default = Plus;
|
|
1992
1992
|
}
|
|
@@ -2012,19 +2012,19 @@ var init_Icons = __esm({
|
|
|
2012
2012
|
});
|
|
2013
2013
|
|
|
2014
2014
|
// src/svg/Icon.tsx
|
|
2015
|
-
var
|
|
2015
|
+
var import_jsx_runtime51, Icon, Icon_default;
|
|
2016
2016
|
var init_Icon = __esm({
|
|
2017
2017
|
"src/svg/Icon.tsx"() {
|
|
2018
2018
|
"use strict";
|
|
2019
2019
|
init_Icons();
|
|
2020
|
-
|
|
2020
|
+
import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2021
2021
|
Icon = ({ name, className, ...props }) => {
|
|
2022
2022
|
const IconComponent = Icons_default[name];
|
|
2023
2023
|
if (!IconComponent) {
|
|
2024
2024
|
console.error(`Icon "${name}" not found.`);
|
|
2025
2025
|
return null;
|
|
2026
2026
|
}
|
|
2027
|
-
return /* @__PURE__ */ (0,
|
|
2027
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(IconComponent, { ...props, className });
|
|
2028
2028
|
};
|
|
2029
2029
|
Icon_default = Icon;
|
|
2030
2030
|
}
|
|
@@ -2035,21 +2035,21 @@ var Pagination_exports = {};
|
|
|
2035
2035
|
__export(Pagination_exports, {
|
|
2036
2036
|
default: () => Pagination_default
|
|
2037
2037
|
});
|
|
2038
|
-
var
|
|
2038
|
+
var import_react32, import_jsx_runtime52, Pagination, Pagination_default;
|
|
2039
2039
|
var init_Pagination = __esm({
|
|
2040
2040
|
"src/components/Pagination.tsx"() {
|
|
2041
2041
|
"use strict";
|
|
2042
2042
|
"use client";
|
|
2043
|
-
|
|
2043
|
+
import_react32 = require("react");
|
|
2044
2044
|
init_OdataBuilder();
|
|
2045
2045
|
init_Icon();
|
|
2046
2046
|
init_StyleTypes();
|
|
2047
2047
|
init_InputControlType();
|
|
2048
2048
|
init_Hyperlink();
|
|
2049
|
-
|
|
2049
|
+
import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2050
2050
|
Pagination = (props) => {
|
|
2051
2051
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
2052
|
-
const builder = (0,
|
|
2052
|
+
const builder = (0, import_react32.useMemo)(() => {
|
|
2053
2053
|
const b = new OdataBuilder(path);
|
|
2054
2054
|
if (query) b.setQuery(query);
|
|
2055
2055
|
return b;
|
|
@@ -2090,7 +2090,7 @@ var init_Pagination = __esm({
|
|
|
2090
2090
|
return range;
|
|
2091
2091
|
};
|
|
2092
2092
|
const paginationRange = getPaginationRange();
|
|
2093
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
2093
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2094
2094
|
Hyperlink,
|
|
2095
2095
|
{
|
|
2096
2096
|
linkType: "Link" /* Link */,
|
|
@@ -2105,9 +2105,9 @@ var init_Pagination = __esm({
|
|
|
2105
2105
|
);
|
|
2106
2106
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
2107
2107
|
if (disabled) {
|
|
2108
|
-
return /* @__PURE__ */ (0,
|
|
2108
|
+
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
2109
|
}
|
|
2110
|
-
return /* @__PURE__ */ (0,
|
|
2110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2111
2111
|
Hyperlink,
|
|
2112
2112
|
{
|
|
2113
2113
|
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 +2117,35 @@ var init_Pagination = __esm({
|
|
|
2117
2117
|
);
|
|
2118
2118
|
};
|
|
2119
2119
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
2120
|
-
return /* @__PURE__ */ (0,
|
|
2121
|
-
/* @__PURE__ */ (0,
|
|
2122
|
-
/* @__PURE__ */ (0,
|
|
2120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "py-6 border-t bg-default", children: [
|
|
2121
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
2122
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "text-sm", children: [
|
|
2123
2123
|
"Showing ",
|
|
2124
|
-
/* @__PURE__ */ (0,
|
|
2124
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("span", { className: "font-semibold", children: [
|
|
2125
2125
|
startItem,
|
|
2126
2126
|
"-",
|
|
2127
2127
|
endItem
|
|
2128
2128
|
] }),
|
|
2129
2129
|
" ",
|
|
2130
2130
|
"out of ",
|
|
2131
|
-
/* @__PURE__ */ (0,
|
|
2131
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
2132
2132
|
" results"
|
|
2133
2133
|
] }),
|
|
2134
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
2135
|
-
/* @__PURE__ */ (0,
|
|
2134
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
2135
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
2136
2136
|
NavigationButton,
|
|
2137
2137
|
{
|
|
2138
2138
|
page: activePageNumber - 1,
|
|
2139
2139
|
disabled: activePageNumber === 1,
|
|
2140
2140
|
children: [
|
|
2141
|
-
/* @__PURE__ */ (0,
|
|
2142
|
-
/* @__PURE__ */ (0,
|
|
2141
|
+
/* @__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" }) }),
|
|
2142
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Prev" })
|
|
2143
2143
|
]
|
|
2144
2144
|
}
|
|
2145
2145
|
),
|
|
2146
2146
|
paginationRange.map((item, index) => {
|
|
2147
2147
|
if (item === "...") {
|
|
2148
|
-
return /* @__PURE__ */ (0,
|
|
2148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2149
2149
|
"span",
|
|
2150
2150
|
{
|
|
2151
2151
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -2155,23 +2155,23 @@ var init_Pagination = __esm({
|
|
|
2155
2155
|
);
|
|
2156
2156
|
}
|
|
2157
2157
|
const page = item;
|
|
2158
|
-
return /* @__PURE__ */ (0,
|
|
2158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PageButton, { page, children: page }, page);
|
|
2159
2159
|
}),
|
|
2160
|
-
/* @__PURE__ */ (0,
|
|
2160
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
2161
2161
|
NavigationButton,
|
|
2162
2162
|
{
|
|
2163
2163
|
page: activePageNumber + 1,
|
|
2164
2164
|
disabled: activePageNumber === totalPages,
|
|
2165
2165
|
children: [
|
|
2166
|
-
/* @__PURE__ */ (0,
|
|
2167
|
-
/* @__PURE__ */ (0,
|
|
2166
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Next" }),
|
|
2167
|
+
/* @__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
2168
|
]
|
|
2169
2169
|
}
|
|
2170
2170
|
)
|
|
2171
2171
|
] }),
|
|
2172
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
2173
|
-
/* @__PURE__ */ (0,
|
|
2174
|
-
/* @__PURE__ */ (0,
|
|
2172
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
2173
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Go to:" }),
|
|
2174
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2175
2175
|
"input",
|
|
2176
2176
|
{
|
|
2177
2177
|
type: "number",
|
|
@@ -2192,9 +2192,9 @@ var init_Pagination = __esm({
|
|
|
2192
2192
|
) })
|
|
2193
2193
|
] })
|
|
2194
2194
|
] }),
|
|
2195
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
2196
|
-
/* @__PURE__ */ (0,
|
|
2197
|
-
/* @__PURE__ */ (0,
|
|
2195
|
+
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: [
|
|
2196
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "Show:" }),
|
|
2197
|
+
/* @__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
2198
|
Hyperlink,
|
|
2199
2199
|
{
|
|
2200
2200
|
className: `
|
|
@@ -2206,7 +2206,7 @@ var init_Pagination = __esm({
|
|
|
2206
2206
|
},
|
|
2207
2207
|
size
|
|
2208
2208
|
)) }),
|
|
2209
|
-
/* @__PURE__ */ (0,
|
|
2209
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { className: "text-sm", children: "per page" })
|
|
2210
2210
|
] }) })
|
|
2211
2211
|
] });
|
|
2212
2212
|
};
|
|
@@ -2219,13 +2219,13 @@ var Slider_exports = {};
|
|
|
2219
2219
|
__export(Slider_exports, {
|
|
2220
2220
|
default: () => Slider_default
|
|
2221
2221
|
});
|
|
2222
|
-
var
|
|
2222
|
+
var import_react33, import_jsx_runtime53, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
2223
2223
|
var init_Slider = __esm({
|
|
2224
2224
|
"src/components/Slider.tsx"() {
|
|
2225
2225
|
"use strict";
|
|
2226
2226
|
"use client";
|
|
2227
|
-
|
|
2228
|
-
|
|
2227
|
+
import_react33 = __toESM(require("react"));
|
|
2228
|
+
import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2229
2229
|
Slider = ({
|
|
2230
2230
|
children,
|
|
2231
2231
|
slidesToShow = 4,
|
|
@@ -2243,13 +2243,13 @@ var init_Slider = __esm({
|
|
|
2243
2243
|
pillStyle = "cumulative",
|
|
2244
2244
|
progressPosition = "bottom"
|
|
2245
2245
|
}) => {
|
|
2246
|
-
const [currentSlide, setCurrentSlide] = (0,
|
|
2247
|
-
const [transition, setTransition] = (0,
|
|
2248
|
-
const [slidesToShowState, setSlidesToShowState] = (0,
|
|
2246
|
+
const [currentSlide, setCurrentSlide] = (0, import_react33.useState)(0);
|
|
2247
|
+
const [transition, setTransition] = (0, import_react33.useState)(true);
|
|
2248
|
+
const [slidesToShowState, setSlidesToShowState] = (0, import_react33.useState)(
|
|
2249
2249
|
typeof slidesToShow === "number" ? slidesToShow : slidesToShow.large
|
|
2250
2250
|
);
|
|
2251
|
-
const [isPlaying, setIsPlaying] = (0,
|
|
2252
|
-
(0,
|
|
2251
|
+
const [isPlaying, setIsPlaying] = (0, import_react33.useState)(autoplay);
|
|
2252
|
+
(0, import_react33.useEffect)(() => {
|
|
2253
2253
|
if (typeof slidesToShow === "number") return;
|
|
2254
2254
|
const handleResize = () => {
|
|
2255
2255
|
if (window.innerWidth >= 1024) {
|
|
@@ -2264,7 +2264,7 @@ var init_Slider = __esm({
|
|
|
2264
2264
|
window.addEventListener("resize", handleResize);
|
|
2265
2265
|
return () => window.removeEventListener("resize", handleResize);
|
|
2266
2266
|
}, [slidesToShow]);
|
|
2267
|
-
(0,
|
|
2267
|
+
(0, import_react33.useEffect)(() => {
|
|
2268
2268
|
if (!autoplay) return;
|
|
2269
2269
|
const timer = setInterval(() => {
|
|
2270
2270
|
if (isPlaying) {
|
|
@@ -2273,7 +2273,7 @@ var init_Slider = __esm({
|
|
|
2273
2273
|
}, autoplay_speed);
|
|
2274
2274
|
return () => clearInterval(timer);
|
|
2275
2275
|
}, [autoplay, autoplay_speed, currentSlide, isPlaying]);
|
|
2276
|
-
const totalSlides =
|
|
2276
|
+
const totalSlides = import_react33.Children.count(children);
|
|
2277
2277
|
const maxSlide = totalSlides - slidesToShowState;
|
|
2278
2278
|
const nextSlide = () => {
|
|
2279
2279
|
if (currentSlide >= maxSlide) {
|
|
@@ -2318,16 +2318,16 @@ var init_Slider = __esm({
|
|
|
2318
2318
|
}
|
|
2319
2319
|
};
|
|
2320
2320
|
const translateX = -currentSlide * (100 / slidesToShowState);
|
|
2321
|
-
const slides =
|
|
2322
|
-
if (!
|
|
2321
|
+
const slides = import_react33.Children.map(children, (child, index) => {
|
|
2322
|
+
if (!import_react33.default.isValidElement(child)) return null;
|
|
2323
2323
|
const childProps = child.props;
|
|
2324
2324
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
2325
|
-
return /* @__PURE__ */ (0,
|
|
2325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2326
2326
|
"div",
|
|
2327
2327
|
{
|
|
2328
2328
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
2329
2329
|
style: { width: `calc(${100 / slidesToShowState}%)`, paddingRight: gap },
|
|
2330
|
-
children: (0,
|
|
2330
|
+
children: (0, import_react33.cloneElement)(child, {
|
|
2331
2331
|
className: mergedClassName
|
|
2332
2332
|
})
|
|
2333
2333
|
},
|
|
@@ -2345,14 +2345,14 @@ var init_Slider = __esm({
|
|
|
2345
2345
|
return "bottom-4";
|
|
2346
2346
|
}
|
|
2347
2347
|
};
|
|
2348
|
-
return /* @__PURE__ */ (0,
|
|
2348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2349
2349
|
"div",
|
|
2350
2350
|
{
|
|
2351
2351
|
className: `relative w-full overflow-hidden ${className}`,
|
|
2352
2352
|
onMouseEnter: handleMouseEnter,
|
|
2353
2353
|
onMouseLeave: handleMouseLeave,
|
|
2354
2354
|
children: [
|
|
2355
|
-
/* @__PURE__ */ (0,
|
|
2355
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2356
2356
|
"div",
|
|
2357
2357
|
{
|
|
2358
2358
|
className: "flex h-full",
|
|
@@ -2363,18 +2363,18 @@ var init_Slider = __esm({
|
|
|
2363
2363
|
children: slides
|
|
2364
2364
|
}
|
|
2365
2365
|
),
|
|
2366
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
2367
|
-
/* @__PURE__ */ (0,
|
|
2366
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
2367
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2368
2368
|
ArrowButton,
|
|
2369
2369
|
{
|
|
2370
2370
|
direction: "left",
|
|
2371
2371
|
onClick: prevSlide,
|
|
2372
2372
|
visible: infinite_scroll || currentSlide > 0,
|
|
2373
2373
|
className: arrowClassName,
|
|
2374
|
-
children: /* @__PURE__ */ (0,
|
|
2374
|
+
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
2375
|
}
|
|
2376
2376
|
),
|
|
2377
|
-
/* @__PURE__ */ (0,
|
|
2377
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2378
2378
|
ArrowButton,
|
|
2379
2379
|
{
|
|
2380
2380
|
direction: "right",
|
|
@@ -2382,13 +2382,13 @@ var init_Slider = __esm({
|
|
|
2382
2382
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
2383
2383
|
className: arrowClassName,
|
|
2384
2384
|
children: [
|
|
2385
|
-
/* @__PURE__ */ (0,
|
|
2385
|
+
/* @__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
2386
|
" "
|
|
2387
2387
|
]
|
|
2388
2388
|
}
|
|
2389
2389
|
)
|
|
2390
2390
|
] }),
|
|
2391
|
-
show_dots && /* @__PURE__ */ (0,
|
|
2391
|
+
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
2392
|
ProgressPill,
|
|
2393
2393
|
{
|
|
2394
2394
|
active: index === currentSlide,
|
|
@@ -2414,7 +2414,7 @@ var init_Slider = __esm({
|
|
|
2414
2414
|
visible,
|
|
2415
2415
|
children,
|
|
2416
2416
|
className = ""
|
|
2417
|
-
}) => /* @__PURE__ */ (0,
|
|
2417
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2418
2418
|
"button",
|
|
2419
2419
|
{
|
|
2420
2420
|
className: `
|
|
@@ -2440,13 +2440,13 @@ var init_Slider = __esm({
|
|
|
2440
2440
|
currentSlide,
|
|
2441
2441
|
totalSlides
|
|
2442
2442
|
}) => {
|
|
2443
|
-
const [progress, setProgress] = (0,
|
|
2444
|
-
(0,
|
|
2443
|
+
const [progress, setProgress] = (0, import_react33.useState)(0);
|
|
2444
|
+
(0, import_react33.useEffect)(() => {
|
|
2445
2445
|
if (active) {
|
|
2446
2446
|
setProgress(0);
|
|
2447
2447
|
}
|
|
2448
2448
|
}, [active, index]);
|
|
2449
|
-
(0,
|
|
2449
|
+
(0, import_react33.useEffect)(() => {
|
|
2450
2450
|
if (!active || !isPlaying) {
|
|
2451
2451
|
if (!active) {
|
|
2452
2452
|
setProgress(0);
|
|
@@ -2501,7 +2501,7 @@ var init_Slider = __esm({
|
|
|
2501
2501
|
const renderProgressBar = () => {
|
|
2502
2502
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
2503
2503
|
const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
|
|
2504
|
-
return /* @__PURE__ */ (0,
|
|
2504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2505
2505
|
"div",
|
|
2506
2506
|
{
|
|
2507
2507
|
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 +2513,7 @@ var init_Slider = __esm({
|
|
|
2513
2513
|
};
|
|
2514
2514
|
const renderCumulativeFill = () => {
|
|
2515
2515
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
2516
|
-
return /* @__PURE__ */ (0,
|
|
2516
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2517
2517
|
"div",
|
|
2518
2518
|
{
|
|
2519
2519
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -2523,7 +2523,7 @@ var init_Slider = __esm({
|
|
|
2523
2523
|
}
|
|
2524
2524
|
return null;
|
|
2525
2525
|
};
|
|
2526
|
-
return /* @__PURE__ */ (0,
|
|
2526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
2527
2527
|
"button",
|
|
2528
2528
|
{
|
|
2529
2529
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -2551,10 +2551,10 @@ __export(server_exports, {
|
|
|
2551
2551
|
module.exports = __toCommonJS(server_exports);
|
|
2552
2552
|
|
|
2553
2553
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
2554
|
-
var
|
|
2554
|
+
var import_react35 = __toESM(require("react"));
|
|
2555
2555
|
|
|
2556
2556
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
2557
|
-
var
|
|
2557
|
+
var import_react22 = __toESM(require("react"));
|
|
2558
2558
|
|
|
2559
2559
|
// src/components/pageRenderingEngine/nodes/TextNode.tsx
|
|
2560
2560
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -3017,7 +3017,7 @@ var EquationNode = ({ node }) => {
|
|
|
3017
3017
|
var EquationNode_default = EquationNode;
|
|
3018
3018
|
|
|
3019
3019
|
// src/components/controls/view/ViewControl.tsx
|
|
3020
|
-
var
|
|
3020
|
+
var import_react21 = __toESM(require("react"));
|
|
3021
3021
|
|
|
3022
3022
|
// src/components/controls/view/ViewControlTypes.tsx
|
|
3023
3023
|
var ViewControlTypes = {
|
|
@@ -3275,8 +3275,80 @@ var DateTimeView = (0, import_dynamic5.default)(() => Promise.resolve().then(()
|
|
|
3275
3275
|
});
|
|
3276
3276
|
var DateTimeVew_default = DateTimeView;
|
|
3277
3277
|
|
|
3278
|
-
// src/components/controls/view/
|
|
3278
|
+
// src/components/controls/view/TimeUntilStarts.tsx
|
|
3279
|
+
var import_react20 = require("react");
|
|
3279
3280
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3281
|
+
var TimeUntilStarts = (props) => {
|
|
3282
|
+
const calculateTimeDifference = (startDate) => {
|
|
3283
|
+
const now = /* @__PURE__ */ new Date();
|
|
3284
|
+
const nowUtc = new Date(now.getTime() + now.getTimezoneOffset() * 6e4);
|
|
3285
|
+
const startDateUtc = new Date(startDate);
|
|
3286
|
+
const diffMs = startDateUtc.getTime() - nowUtc.getTime();
|
|
3287
|
+
const isPast = diffMs < 0;
|
|
3288
|
+
const absoluteDiffMs = Math.abs(diffMs);
|
|
3289
|
+
const diffDays = Math.floor(absoluteDiffMs / (1e3 * 60 * 60 * 24));
|
|
3290
|
+
const diffHours = Math.floor(
|
|
3291
|
+
absoluteDiffMs % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)
|
|
3292
|
+
);
|
|
3293
|
+
const diffMinutes = Math.floor(
|
|
3294
|
+
absoluteDiffMs % (1e3 * 60 * 60) / (1e3 * 60)
|
|
3295
|
+
);
|
|
3296
|
+
if (absoluteDiffMs < 6e4) {
|
|
3297
|
+
return "Just now";
|
|
3298
|
+
}
|
|
3299
|
+
let timeParts = [
|
|
3300
|
+
{ value: diffDays, unit: "days" },
|
|
3301
|
+
{ value: diffHours, unit: "hours" },
|
|
3302
|
+
{ value: diffMinutes, unit: "minutes" }
|
|
3303
|
+
];
|
|
3304
|
+
timeParts = timeParts.filter((part) => part.value > 0);
|
|
3305
|
+
if (isPast) {
|
|
3306
|
+
if (diffDays > 0) {
|
|
3307
|
+
return `${diffDays} day(s) ago`;
|
|
3308
|
+
} else if (diffHours > 0) {
|
|
3309
|
+
return `${diffHours} hour(s) ago`;
|
|
3310
|
+
} else if (diffMinutes > 0) {
|
|
3311
|
+
return `${diffMinutes} minute(s) ago`;
|
|
3312
|
+
} else {
|
|
3313
|
+
return "Just now";
|
|
3314
|
+
}
|
|
3315
|
+
} else {
|
|
3316
|
+
if (timeParts.length > 2) {
|
|
3317
|
+
timeParts = timeParts.slice(0, 2);
|
|
3318
|
+
}
|
|
3319
|
+
const displayString = timeParts.map((part) => `${part.value} ${part.unit}`).join(" ");
|
|
3320
|
+
return displayString ? `Starting in ${displayString}` : "Started";
|
|
3321
|
+
}
|
|
3322
|
+
};
|
|
3323
|
+
const isValidDate = (date) => {
|
|
3324
|
+
return !isNaN(Date.parse(date));
|
|
3325
|
+
};
|
|
3326
|
+
const [timeUntilStart, setTimeUntilStart] = (0, import_react20.useState)(() => {
|
|
3327
|
+
if (props.value && isValidDate(props.value)) {
|
|
3328
|
+
return calculateTimeDifference(props.value);
|
|
3329
|
+
}
|
|
3330
|
+
return "";
|
|
3331
|
+
});
|
|
3332
|
+
(0, import_react20.useEffect)(() => {
|
|
3333
|
+
if (props.value && isValidDate(props.value)) {
|
|
3334
|
+
setTimeUntilStart(calculateTimeDifference(props.value));
|
|
3335
|
+
const initialTimeout = setTimeout(() => {
|
|
3336
|
+
const interval = setInterval(() => {
|
|
3337
|
+
setTimeUntilStart(calculateTimeDifference(props.value));
|
|
3338
|
+
}, 6e4);
|
|
3339
|
+
return () => clearInterval(interval);
|
|
3340
|
+
}, 5e3);
|
|
3341
|
+
return () => clearTimeout(initialTimeout);
|
|
3342
|
+
} else {
|
|
3343
|
+
setTimeUntilStart("");
|
|
3344
|
+
}
|
|
3345
|
+
}, [props.value]);
|
|
3346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { children: timeUntilStart });
|
|
3347
|
+
};
|
|
3348
|
+
var TimeUntilStarts_default = TimeUntilStarts;
|
|
3349
|
+
|
|
3350
|
+
// src/components/controls/view/ViewControl.tsx
|
|
3351
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3280
3352
|
var ViewControl = (props) => {
|
|
3281
3353
|
const ControlComponents = {
|
|
3282
3354
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -3285,7 +3357,7 @@ var ViewControl = (props) => {
|
|
|
3285
3357
|
[ViewControlTypes_default.multilineTextBullets]: MultilineTextBulletsView_default,
|
|
3286
3358
|
[ViewControlTypes_default.boolean]: BooleanView_default,
|
|
3287
3359
|
[ViewControlTypes_default.checkboxInput]: BooleanView_default,
|
|
3288
|
-
|
|
3360
|
+
[ViewControlTypes_default.timeUntilStarts]: TimeUntilStarts_default,
|
|
3289
3361
|
[ViewControlTypes_default.money]: MoneyView_default,
|
|
3290
3362
|
[ViewControlTypes_default.date]: DateView_default,
|
|
3291
3363
|
[ViewControlTypes_default.time]: DateView_default,
|
|
@@ -3305,12 +3377,12 @@ var ViewControl = (props) => {
|
|
|
3305
3377
|
[ViewControlTypes_default.text]: LineTextView_default
|
|
3306
3378
|
};
|
|
3307
3379
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
3308
|
-
return /* @__PURE__ */ (0,
|
|
3380
|
+
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
3381
|
};
|
|
3310
3382
|
var ViewControl_default = ViewControl;
|
|
3311
3383
|
|
|
3312
3384
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
3313
|
-
var
|
|
3385
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3314
3386
|
function getNestedProperty(obj, path) {
|
|
3315
3387
|
if (!obj || !path) return null;
|
|
3316
3388
|
if (path.includes(".")) {
|
|
@@ -3323,7 +3395,7 @@ function getNestedProperty(obj, path) {
|
|
|
3323
3395
|
}
|
|
3324
3396
|
const value = obj[path];
|
|
3325
3397
|
if (Array.isArray(value)) {
|
|
3326
|
-
return value.map((item, index) => /* @__PURE__ */ (0,
|
|
3398
|
+
return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: String(item) }, index));
|
|
3327
3399
|
}
|
|
3328
3400
|
return value;
|
|
3329
3401
|
}
|
|
@@ -3384,7 +3456,7 @@ var DatafieldNode = (props) => {
|
|
|
3384
3456
|
const dataType = props.node.dataType;
|
|
3385
3457
|
if (isEmptyValue) return null;
|
|
3386
3458
|
if (dataType === "rawContent") {
|
|
3387
|
-
return /* @__PURE__ */ (0,
|
|
3459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3388
3460
|
PageBodyRenderer_default,
|
|
3389
3461
|
{
|
|
3390
3462
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -3400,12 +3472,12 @@ var DatafieldNode = (props) => {
|
|
|
3400
3472
|
}
|
|
3401
3473
|
);
|
|
3402
3474
|
}
|
|
3403
|
-
return /* @__PURE__ */ (0,
|
|
3475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3404
3476
|
"span",
|
|
3405
3477
|
{
|
|
3406
3478
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
3407
3479
|
style: styles,
|
|
3408
|
-
children: /* @__PURE__ */ (0,
|
|
3480
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3409
3481
|
ViewControl_default,
|
|
3410
3482
|
{
|
|
3411
3483
|
controlType: dataType,
|
|
@@ -3418,7 +3490,7 @@ var DatafieldNode = (props) => {
|
|
|
3418
3490
|
var DatafieldNode_default = DatafieldNode;
|
|
3419
3491
|
|
|
3420
3492
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
3421
|
-
var
|
|
3493
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3422
3494
|
var ParagraphNode = (props) => {
|
|
3423
3495
|
const NodeTypes2 = {
|
|
3424
3496
|
["text"]: TextNode_default,
|
|
@@ -3438,9 +3510,9 @@ var ParagraphNode = (props) => {
|
|
|
3438
3510
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
3439
3511
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
3440
3512
|
if (isInlineOnlyParent) {
|
|
3441
|
-
return /* @__PURE__ */ (0,
|
|
3513
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
|
|
3442
3514
|
const SelectedNode = NodeTypes2[node.type];
|
|
3443
|
-
return /* @__PURE__ */ (0,
|
|
3515
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3444
3516
|
SelectedNode,
|
|
3445
3517
|
{
|
|
3446
3518
|
node,
|
|
@@ -3452,10 +3524,10 @@ var ParagraphNode = (props) => {
|
|
|
3452
3524
|
) }, index);
|
|
3453
3525
|
}) });
|
|
3454
3526
|
}
|
|
3455
|
-
return /* @__PURE__ */ (0,
|
|
3527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: " " + formatClasses, children: [
|
|
3456
3528
|
hasChildren && props.node.children.map((node, index) => {
|
|
3457
3529
|
const SelectedNode = NodeTypes2[node.type];
|
|
3458
|
-
return /* @__PURE__ */ (0,
|
|
3530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react22.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3459
3531
|
SelectedNode,
|
|
3460
3532
|
{
|
|
3461
3533
|
node,
|
|
@@ -3466,14 +3538,14 @@ var ParagraphNode = (props) => {
|
|
|
3466
3538
|
}
|
|
3467
3539
|
) }, index);
|
|
3468
3540
|
}),
|
|
3469
|
-
!hasChildren && /* @__PURE__ */ (0,
|
|
3541
|
+
!hasChildren && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "py-1.5 lg:py-2" })
|
|
3470
3542
|
] });
|
|
3471
3543
|
};
|
|
3472
3544
|
var ParagraphNode_default = ParagraphNode;
|
|
3473
3545
|
|
|
3474
3546
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
3475
|
-
var
|
|
3476
|
-
var
|
|
3547
|
+
var import_react23 = __toESM(require("react"));
|
|
3548
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3477
3549
|
var HeadingNode = (props) => {
|
|
3478
3550
|
const NodeTypes2 = {
|
|
3479
3551
|
["text"]: TextNode_default,
|
|
@@ -3489,23 +3561,23 @@ var HeadingNode = (props) => {
|
|
|
3489
3561
|
{
|
|
3490
3562
|
}
|
|
3491
3563
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
3492
|
-
return /* @__PURE__ */ (0,
|
|
3564
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: import_react23.default.createElement(
|
|
3493
3565
|
HeadingTag,
|
|
3494
3566
|
{ className: formatClasses },
|
|
3495
3567
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
3496
3568
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
3497
|
-
return /* @__PURE__ */ (0,
|
|
3569
|
+
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
3570
|
})
|
|
3499
3571
|
) });
|
|
3500
3572
|
};
|
|
3501
3573
|
var HeadingNode_default = HeadingNode;
|
|
3502
3574
|
|
|
3503
3575
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
3504
|
-
var
|
|
3576
|
+
var import_react25 = __toESM(require("react"));
|
|
3505
3577
|
|
|
3506
3578
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
3507
|
-
var
|
|
3508
|
-
var
|
|
3579
|
+
var import_react24 = __toESM(require("react"));
|
|
3580
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3509
3581
|
var ListItemNode = (props) => {
|
|
3510
3582
|
const NodeTypes2 = {
|
|
3511
3583
|
text: TextNode_default,
|
|
@@ -3522,66 +3594,66 @@ var ListItemNode = (props) => {
|
|
|
3522
3594
|
liStyle.fontSize = match[1].trim();
|
|
3523
3595
|
}
|
|
3524
3596
|
}
|
|
3525
|
-
return /* @__PURE__ */ (0,
|
|
3597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
3526
3598
|
const SelectedNode = NodeTypes2[node.type];
|
|
3527
3599
|
if (node.type === "linebreak") {
|
|
3528
3600
|
if (!foundFirstBreak) {
|
|
3529
3601
|
foundFirstBreak = true;
|
|
3530
|
-
return /* @__PURE__ */ (0,
|
|
3602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", {}, index);
|
|
3531
3603
|
} else {
|
|
3532
|
-
return /* @__PURE__ */ (0,
|
|
3604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "py-1 lg:py-2" }, index);
|
|
3533
3605
|
}
|
|
3534
3606
|
} else {
|
|
3535
3607
|
foundFirstBreak = false;
|
|
3536
|
-
return /* @__PURE__ */ (0,
|
|
3608
|
+
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
3609
|
}
|
|
3538
3610
|
}) });
|
|
3539
3611
|
};
|
|
3540
3612
|
var ListItemNode_default = ListItemNode;
|
|
3541
3613
|
|
|
3542
3614
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
3543
|
-
var
|
|
3615
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3544
3616
|
var ListNode = (props) => {
|
|
3545
3617
|
const NodeTypes2 = {
|
|
3546
3618
|
listitem: ListItemNode_default
|
|
3547
3619
|
};
|
|
3548
|
-
return /* @__PURE__ */ (0,
|
|
3549
|
-
props.node.listType == "bullet" && /* @__PURE__ */ (0,
|
|
3620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_react25.default.Fragment, { children: [
|
|
3621
|
+
props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
3550
3622
|
const SelectedNode = NodeTypes2[node.type];
|
|
3551
|
-
return /* @__PURE__ */ (0,
|
|
3623
|
+
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
3624
|
}) }),
|
|
3553
|
-
props.node.listType == "number" && /* @__PURE__ */ (0,
|
|
3625
|
+
props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
3554
3626
|
const SelectedNode = NodeTypes2[node.type];
|
|
3555
|
-
return /* @__PURE__ */ (0,
|
|
3627
|
+
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
3628
|
}) })
|
|
3557
3629
|
] });
|
|
3558
3630
|
};
|
|
3559
3631
|
var ListNode_default = ListNode;
|
|
3560
3632
|
|
|
3561
3633
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
3562
|
-
var
|
|
3563
|
-
var
|
|
3634
|
+
var import_react26 = __toESM(require("react"));
|
|
3635
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3564
3636
|
var QuoteNode = (props) => {
|
|
3565
3637
|
const NodeTypes2 = {
|
|
3566
3638
|
["text"]: TextNode_default,
|
|
3567
3639
|
["linebreak"]: LineBreakNode_default,
|
|
3568
3640
|
["link"]: LinkNode_default
|
|
3569
3641
|
};
|
|
3570
|
-
return /* @__PURE__ */ (0,
|
|
3642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
3571
3643
|
const SelectedNode = NodeTypes2[node.type];
|
|
3572
|
-
return /* @__PURE__ */ (0,
|
|
3644
|
+
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
3645
|
}) });
|
|
3574
3646
|
};
|
|
3575
3647
|
var QuoteNode_default = QuoteNode;
|
|
3576
3648
|
|
|
3577
3649
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
3578
|
-
var
|
|
3650
|
+
var import_react28 = __toESM(require("react"));
|
|
3579
3651
|
var import_dynamic6 = __toESM(require("next/dynamic"));
|
|
3580
|
-
var
|
|
3652
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3581
3653
|
var CopyButton2 = (0, import_dynamic6.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
|
|
3582
3654
|
ssr: false,
|
|
3583
3655
|
// optional: fallback UI while loading
|
|
3584
|
-
loading: () => /* @__PURE__ */ (0,
|
|
3656
|
+
loading: () => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
3585
3657
|
});
|
|
3586
3658
|
var CodeNode = (props) => {
|
|
3587
3659
|
const NodeTypes2 = {
|
|
@@ -3595,14 +3667,14 @@ var CodeNode = (props) => {
|
|
|
3595
3667
|
if (node.type === "link") return node.text || node.url || "";
|
|
3596
3668
|
return "";
|
|
3597
3669
|
}).join("") ?? "";
|
|
3598
|
-
return /* @__PURE__ */ (0,
|
|
3599
|
-
/* @__PURE__ */ (0,
|
|
3600
|
-
/* @__PURE__ */ (0,
|
|
3601
|
-
/* @__PURE__ */ (0,
|
|
3670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
|
|
3671
|
+
/* @__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: [
|
|
3672
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children: "Code Snippet" }),
|
|
3673
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CopyButton2, { text: textContent })
|
|
3602
3674
|
] }),
|
|
3603
|
-
/* @__PURE__ */ (0,
|
|
3675
|
+
/* @__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
3676
|
const SelectedNode = NodeTypes2[node.type];
|
|
3605
|
-
return /* @__PURE__ */ (0,
|
|
3677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react28.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3606
3678
|
SelectedNode,
|
|
3607
3679
|
{
|
|
3608
3680
|
node,
|
|
@@ -3617,15 +3689,15 @@ var CodeNode = (props) => {
|
|
|
3617
3689
|
var CodeNode_default = CodeNode;
|
|
3618
3690
|
|
|
3619
3691
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
3620
|
-
var
|
|
3692
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3621
3693
|
var HorizontalRuleNode = () => {
|
|
3622
|
-
return /* @__PURE__ */ (0,
|
|
3694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("hr", {});
|
|
3623
3695
|
};
|
|
3624
3696
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
3625
3697
|
|
|
3626
3698
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
3627
|
-
var
|
|
3628
|
-
var
|
|
3699
|
+
var import_react29 = __toESM(require("react"));
|
|
3700
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3629
3701
|
var WidgetNode = (props) => {
|
|
3630
3702
|
const getWidgetParameters = () => {
|
|
3631
3703
|
const widgetInputParameters = {
|
|
@@ -3689,7 +3761,7 @@ var WidgetNode = (props) => {
|
|
|
3689
3761
|
};
|
|
3690
3762
|
const widgetCode = props.node?.widgetCode;
|
|
3691
3763
|
if (!widgetCode) {
|
|
3692
|
-
return /* @__PURE__ */ (0,
|
|
3764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, { children: "Invalid widget" });
|
|
3693
3765
|
}
|
|
3694
3766
|
const widgetParams = getWidgetParameters();
|
|
3695
3767
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -3698,7 +3770,7 @@ var WidgetNode = (props) => {
|
|
|
3698
3770
|
}
|
|
3699
3771
|
return (
|
|
3700
3772
|
// eslint-disable-next-line react-hooks/static-components
|
|
3701
|
-
/* @__PURE__ */ (0,
|
|
3773
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react29.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3702
3774
|
WidgetRenderer,
|
|
3703
3775
|
{
|
|
3704
3776
|
params: widgetParams,
|
|
@@ -3716,11 +3788,11 @@ var WidgetNode_default = WidgetNode;
|
|
|
3716
3788
|
|
|
3717
3789
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
3718
3790
|
var import_dynamic9 = __toESM(require("next/dynamic"));
|
|
3719
|
-
var
|
|
3791
|
+
var import_react34 = __toESM(require("react"));
|
|
3720
3792
|
|
|
3721
3793
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
3722
3794
|
var import_dynamic7 = __toESM(require("next/dynamic"));
|
|
3723
|
-
var
|
|
3795
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3724
3796
|
var IframeClient2 = (0, import_dynamic7.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
3725
3797
|
ssr: false
|
|
3726
3798
|
});
|
|
@@ -3733,7 +3805,7 @@ var EmbedNode = (props) => {
|
|
|
3733
3805
|
} else {
|
|
3734
3806
|
src = props.node.embedSrc;
|
|
3735
3807
|
}
|
|
3736
|
-
return /* @__PURE__ */ (0,
|
|
3808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(IframeClient2, { src }) });
|
|
3737
3809
|
};
|
|
3738
3810
|
var EmbedNode_default = EmbedNode;
|
|
3739
3811
|
|
|
@@ -3932,10 +4004,10 @@ var PathUtility = class {
|
|
|
3932
4004
|
var PathUtility_default = new PathUtility();
|
|
3933
4005
|
|
|
3934
4006
|
// src/components/NoDataFound.tsx
|
|
3935
|
-
var
|
|
4007
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3936
4008
|
var NoDataFound = () => {
|
|
3937
|
-
return /* @__PURE__ */ (0,
|
|
3938
|
-
/* @__PURE__ */ (0,
|
|
4009
|
+
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: [
|
|
4010
|
+
/* @__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
4011
|
"svg",
|
|
3940
4012
|
{
|
|
3941
4013
|
className: "w-10 h-10",
|
|
@@ -3943,7 +4015,7 @@ var NoDataFound = () => {
|
|
|
3943
4015
|
stroke: "currentColor",
|
|
3944
4016
|
viewBox: "0 0 24 24",
|
|
3945
4017
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3946
|
-
children: /* @__PURE__ */ (0,
|
|
4018
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3947
4019
|
"path",
|
|
3948
4020
|
{
|
|
3949
4021
|
strokeLinecap: "round",
|
|
@@ -3954,15 +4026,15 @@ var NoDataFound = () => {
|
|
|
3954
4026
|
)
|
|
3955
4027
|
}
|
|
3956
4028
|
) }) }),
|
|
3957
|
-
/* @__PURE__ */ (0,
|
|
3958
|
-
/* @__PURE__ */ (0,
|
|
4029
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
4030
|
+
/* @__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
4031
|
] });
|
|
3960
4032
|
};
|
|
3961
4033
|
var NoDataFound_default = NoDataFound;
|
|
3962
4034
|
|
|
3963
4035
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
3964
4036
|
var import_dynamic8 = __toESM(require("next/dynamic"));
|
|
3965
|
-
var
|
|
4037
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3966
4038
|
var HlsPlayer4 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
3967
4039
|
var deviceToMediaQuery = (device) => {
|
|
3968
4040
|
switch (device) {
|
|
@@ -4118,8 +4190,8 @@ var ImageGalleryNode = (props) => {
|
|
|
4118
4190
|
right: "justify-end"
|
|
4119
4191
|
};
|
|
4120
4192
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
4121
|
-
return /* @__PURE__ */ (0,
|
|
4122
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0,
|
|
4193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
|
|
4194
|
+
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4123
4195
|
HlsPlayer4,
|
|
4124
4196
|
{
|
|
4125
4197
|
sources: hlsSources,
|
|
@@ -4134,7 +4206,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4134
4206
|
styles: hlsStyles
|
|
4135
4207
|
}
|
|
4136
4208
|
) }),
|
|
4137
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0,
|
|
4209
|
+
(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
4210
|
DEVICE_ORDER.map((deviceKey) => {
|
|
4139
4211
|
const match = staticSources.find(
|
|
4140
4212
|
(img) => img.device === deviceKey
|
|
@@ -4150,7 +4222,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4150
4222
|
if (!srcUrl) {
|
|
4151
4223
|
return null;
|
|
4152
4224
|
}
|
|
4153
|
-
return /* @__PURE__ */ (0,
|
|
4225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4154
4226
|
"source",
|
|
4155
4227
|
{
|
|
4156
4228
|
media: deviceToMediaQuery(match.device),
|
|
@@ -4175,7 +4247,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4175
4247
|
if (img.borderRadius) {
|
|
4176
4248
|
styles.borderRadius = img.borderRadius;
|
|
4177
4249
|
}
|
|
4178
|
-
return /* @__PURE__ */ (0,
|
|
4250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4179
4251
|
"img",
|
|
4180
4252
|
{
|
|
4181
4253
|
loading: "lazy",
|
|
@@ -4190,7 +4262,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4190
4262
|
})()
|
|
4191
4263
|
] }) : (
|
|
4192
4264
|
/* Case 2: Only device-specific images exist */
|
|
4193
|
-
/* @__PURE__ */ (0,
|
|
4265
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: staticSources.map((img, index) => {
|
|
4194
4266
|
const resolved = resolveImage(img);
|
|
4195
4267
|
const imageUrl = resolved?.imageUrl;
|
|
4196
4268
|
if (!imageUrl) {
|
|
@@ -4217,7 +4289,7 @@ var ImageGalleryNode = (props) => {
|
|
|
4217
4289
|
default:
|
|
4218
4290
|
display = "block";
|
|
4219
4291
|
}
|
|
4220
|
-
return /* @__PURE__ */ (0,
|
|
4292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4221
4293
|
"img",
|
|
4222
4294
|
{
|
|
4223
4295
|
loading: "lazy",
|
|
@@ -4357,28 +4429,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
4357
4429
|
};
|
|
4358
4430
|
|
|
4359
4431
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
4360
|
-
var
|
|
4432
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4361
4433
|
var getNestedValue5 = (obj, path) => {
|
|
4362
4434
|
if (!obj || !path) return void 0;
|
|
4363
4435
|
return path.split(".").reduce((current, key) => {
|
|
4364
4436
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
4365
4437
|
}, obj);
|
|
4366
4438
|
};
|
|
4367
|
-
var PdfIcon = () => /* @__PURE__ */ (0,
|
|
4439
|
+
var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4368
4440
|
"svg",
|
|
4369
4441
|
{
|
|
4370
4442
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4371
4443
|
viewBox: "0 0 48 48",
|
|
4372
4444
|
className: "w-10 h-10",
|
|
4373
4445
|
children: [
|
|
4374
|
-
/* @__PURE__ */ (0,
|
|
4446
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4375
4447
|
"path",
|
|
4376
4448
|
{
|
|
4377
4449
|
fill: "#e53935",
|
|
4378
4450
|
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
4451
|
}
|
|
4380
4452
|
),
|
|
4381
|
-
/* @__PURE__ */ (0,
|
|
4453
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4382
4454
|
"path",
|
|
4383
4455
|
{
|
|
4384
4456
|
fill: "#fff",
|
|
@@ -4388,55 +4460,55 @@ var PdfIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4388
4460
|
]
|
|
4389
4461
|
}
|
|
4390
4462
|
);
|
|
4391
|
-
var ExcelIcon = () => /* @__PURE__ */ (0,
|
|
4463
|
+
var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4392
4464
|
"svg",
|
|
4393
4465
|
{
|
|
4394
4466
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4395
4467
|
viewBox: "0 0 48 48",
|
|
4396
4468
|
className: "w-10 h-10",
|
|
4397
4469
|
children: [
|
|
4398
|
-
/* @__PURE__ */ (0,
|
|
4470
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4399
4471
|
"path",
|
|
4400
4472
|
{
|
|
4401
4473
|
fill: "#169154",
|
|
4402
4474
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
4403
4475
|
}
|
|
4404
4476
|
),
|
|
4405
|
-
/* @__PURE__ */ (0,
|
|
4477
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4406
4478
|
"path",
|
|
4407
4479
|
{
|
|
4408
4480
|
fill: "#18482a",
|
|
4409
4481
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
4410
4482
|
}
|
|
4411
4483
|
),
|
|
4412
|
-
/* @__PURE__ */ (0,
|
|
4413
|
-
/* @__PURE__ */ (0,
|
|
4414
|
-
/* @__PURE__ */ (0,
|
|
4415
|
-
/* @__PURE__ */ (0,
|
|
4484
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
4485
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
4486
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("g", { children: [
|
|
4487
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4416
4488
|
"path",
|
|
4417
4489
|
{
|
|
4418
4490
|
fill: "#29c27f",
|
|
4419
4491
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
4420
4492
|
}
|
|
4421
4493
|
),
|
|
4422
|
-
/* @__PURE__ */ (0,
|
|
4494
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4423
4495
|
"path",
|
|
4424
4496
|
{
|
|
4425
4497
|
fill: "#27663f",
|
|
4426
4498
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
4427
4499
|
}
|
|
4428
4500
|
),
|
|
4429
|
-
/* @__PURE__ */ (0,
|
|
4430
|
-
/* @__PURE__ */ (0,
|
|
4501
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
4502
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
4431
4503
|
] }),
|
|
4432
|
-
/* @__PURE__ */ (0,
|
|
4504
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4433
4505
|
"path",
|
|
4434
4506
|
{
|
|
4435
4507
|
fill: "#0c7238",
|
|
4436
4508
|
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
4509
|
}
|
|
4438
4510
|
),
|
|
4439
|
-
/* @__PURE__ */ (0,
|
|
4511
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4440
4512
|
"path",
|
|
4441
4513
|
{
|
|
4442
4514
|
fill: "#fff",
|
|
@@ -4446,7 +4518,7 @@ var ExcelIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4446
4518
|
]
|
|
4447
4519
|
}
|
|
4448
4520
|
);
|
|
4449
|
-
var WordIcon = () => /* @__PURE__ */ (0,
|
|
4521
|
+
var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4450
4522
|
"svg",
|
|
4451
4523
|
{
|
|
4452
4524
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4454,14 +4526,14 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4454
4526
|
className: "w-10 h-10",
|
|
4455
4527
|
baseProfile: "basic",
|
|
4456
4528
|
children: [
|
|
4457
|
-
/* @__PURE__ */ (0,
|
|
4529
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4458
4530
|
"path",
|
|
4459
4531
|
{
|
|
4460
4532
|
fill: "#283593",
|
|
4461
4533
|
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
4534
|
}
|
|
4463
4535
|
),
|
|
4464
|
-
/* @__PURE__ */ (0,
|
|
4536
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4465
4537
|
"linearGradient",
|
|
4466
4538
|
{
|
|
4467
4539
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -4472,19 +4544,19 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4472
4544
|
gradientTransform: "translate(0 -339.89)",
|
|
4473
4545
|
gradientUnits: "userSpaceOnUse",
|
|
4474
4546
|
children: [
|
|
4475
|
-
/* @__PURE__ */ (0,
|
|
4476
|
-
/* @__PURE__ */ (0,
|
|
4547
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
4548
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
4477
4549
|
]
|
|
4478
4550
|
}
|
|
4479
4551
|
),
|
|
4480
|
-
/* @__PURE__ */ (0,
|
|
4552
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4481
4553
|
"path",
|
|
4482
4554
|
{
|
|
4483
4555
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
4484
4556
|
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
4557
|
}
|
|
4486
4558
|
),
|
|
4487
|
-
/* @__PURE__ */ (0,
|
|
4559
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4488
4560
|
"path",
|
|
4489
4561
|
{
|
|
4490
4562
|
fill: "#1e88e5",
|
|
@@ -4492,21 +4564,21 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4492
4564
|
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
4565
|
}
|
|
4494
4566
|
),
|
|
4495
|
-
/* @__PURE__ */ (0,
|
|
4567
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4496
4568
|
"path",
|
|
4497
4569
|
{
|
|
4498
4570
|
fill: "#00e5ff",
|
|
4499
4571
|
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
4572
|
}
|
|
4501
4573
|
),
|
|
4502
|
-
/* @__PURE__ */ (0,
|
|
4574
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4503
4575
|
"path",
|
|
4504
4576
|
{
|
|
4505
4577
|
fill: "#1565c0",
|
|
4506
4578
|
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
4579
|
}
|
|
4508
4580
|
),
|
|
4509
|
-
/* @__PURE__ */ (0,
|
|
4581
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4510
4582
|
"path",
|
|
4511
4583
|
{
|
|
4512
4584
|
fill: "#fff",
|
|
@@ -4516,42 +4588,42 @@ var WordIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4516
4588
|
]
|
|
4517
4589
|
}
|
|
4518
4590
|
);
|
|
4519
|
-
var StandardIcon = () => /* @__PURE__ */ (0,
|
|
4591
|
+
var StandardIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4520
4592
|
"svg",
|
|
4521
4593
|
{
|
|
4522
4594
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4523
4595
|
viewBox: "0 0 48 48",
|
|
4524
4596
|
className: "w-10 h-10",
|
|
4525
4597
|
children: [
|
|
4526
|
-
/* @__PURE__ */ (0,
|
|
4527
|
-
/* @__PURE__ */ (0,
|
|
4598
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
4599
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
4528
4600
|
]
|
|
4529
4601
|
}
|
|
4530
4602
|
);
|
|
4531
|
-
var PowerPointIcon = () => /* @__PURE__ */ (0,
|
|
4603
|
+
var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4532
4604
|
"svg",
|
|
4533
4605
|
{
|
|
4534
4606
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4535
4607
|
viewBox: "0 0 48 48",
|
|
4536
4608
|
className: "w-10 h-10",
|
|
4537
4609
|
children: [
|
|
4538
|
-
/* @__PURE__ */ (0,
|
|
4610
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4539
4611
|
"path",
|
|
4540
4612
|
{
|
|
4541
4613
|
fill: "#dc4c2c",
|
|
4542
4614
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
4543
4615
|
}
|
|
4544
4616
|
),
|
|
4545
|
-
/* @__PURE__ */ (0,
|
|
4546
|
-
/* @__PURE__ */ (0,
|
|
4547
|
-
/* @__PURE__ */ (0,
|
|
4617
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
4618
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
4619
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4548
4620
|
"path",
|
|
4549
4621
|
{
|
|
4550
4622
|
fill: "#9b341f",
|
|
4551
4623
|
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
4624
|
}
|
|
4553
4625
|
),
|
|
4554
|
-
/* @__PURE__ */ (0,
|
|
4626
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4555
4627
|
"path",
|
|
4556
4628
|
{
|
|
4557
4629
|
fill: "#fff",
|
|
@@ -4561,16 +4633,16 @@ var PowerPointIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4561
4633
|
]
|
|
4562
4634
|
}
|
|
4563
4635
|
);
|
|
4564
|
-
var TextIcon = () => /* @__PURE__ */ (0,
|
|
4636
|
+
var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4565
4637
|
"svg",
|
|
4566
4638
|
{
|
|
4567
4639
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4568
4640
|
viewBox: "0 0 48 48",
|
|
4569
4641
|
className: "w-10 h-10",
|
|
4570
4642
|
children: [
|
|
4571
|
-
/* @__PURE__ */ (0,
|
|
4572
|
-
/* @__PURE__ */ (0,
|
|
4573
|
-
/* @__PURE__ */ (0,
|
|
4643
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
4644
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
4645
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4574
4646
|
"path",
|
|
4575
4647
|
{
|
|
4576
4648
|
fill: "#1976D2",
|
|
@@ -4580,7 +4652,7 @@ var TextIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4580
4652
|
]
|
|
4581
4653
|
}
|
|
4582
4654
|
);
|
|
4583
|
-
var ArchiveIcon = () => /* @__PURE__ */ (0,
|
|
4655
|
+
var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4584
4656
|
"svg",
|
|
4585
4657
|
{
|
|
4586
4658
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4590,14 +4662,14 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4590
4662
|
version: "1.0",
|
|
4591
4663
|
className: "w-10 h-10",
|
|
4592
4664
|
children: [
|
|
4593
|
-
/* @__PURE__ */ (0,
|
|
4665
|
+
/* @__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
4666
|
"path",
|
|
4595
4667
|
{
|
|
4596
4668
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
4597
4669
|
"clip-rule": "nonzero"
|
|
4598
4670
|
}
|
|
4599
4671
|
) }) }),
|
|
4600
|
-
/* @__PURE__ */ (0,
|
|
4672
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4601
4673
|
"path",
|
|
4602
4674
|
{
|
|
4603
4675
|
fill: "#ff9100",
|
|
@@ -4606,7 +4678,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4606
4678
|
"fill-rule": "nonzero"
|
|
4607
4679
|
}
|
|
4608
4680
|
) }),
|
|
4609
|
-
/* @__PURE__ */ (0,
|
|
4681
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4610
4682
|
"path",
|
|
4611
4683
|
{
|
|
4612
4684
|
fill: "#fbe9e7",
|
|
@@ -4615,7 +4687,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4615
4687
|
"fill-rule": "nonzero"
|
|
4616
4688
|
}
|
|
4617
4689
|
),
|
|
4618
|
-
/* @__PURE__ */ (0,
|
|
4690
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4619
4691
|
"path",
|
|
4620
4692
|
{
|
|
4621
4693
|
fill: "#ffe0b2",
|
|
@@ -4624,7 +4696,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4624
4696
|
"fill-rule": "nonzero"
|
|
4625
4697
|
}
|
|
4626
4698
|
),
|
|
4627
|
-
/* @__PURE__ */ (0,
|
|
4699
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4628
4700
|
"path",
|
|
4629
4701
|
{
|
|
4630
4702
|
fill: "#ffe0b2",
|
|
@@ -4633,7 +4705,7 @@ var ArchiveIcon = () => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
|
4633
4705
|
"fill-rule": "nonzero"
|
|
4634
4706
|
}
|
|
4635
4707
|
),
|
|
4636
|
-
/* @__PURE__ */ (0,
|
|
4708
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4637
4709
|
"path",
|
|
4638
4710
|
{
|
|
4639
4711
|
fill: "#ffe0b2",
|
|
@@ -4709,8 +4781,8 @@ var DocumentNode = (props) => {
|
|
|
4709
4781
|
}
|
|
4710
4782
|
}
|
|
4711
4783
|
if (documents.length === 0) {
|
|
4712
|
-
return /* @__PURE__ */ (0,
|
|
4713
|
-
/* @__PURE__ */ (0,
|
|
4784
|
+
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: [
|
|
4785
|
+
/* @__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
4786
|
"svg",
|
|
4715
4787
|
{
|
|
4716
4788
|
className: "w-5 h-5",
|
|
@@ -4718,7 +4790,7 @@ var DocumentNode = (props) => {
|
|
|
4718
4790
|
stroke: "currentColor",
|
|
4719
4791
|
viewBox: "0 0 24 24",
|
|
4720
4792
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4721
|
-
children: /* @__PURE__ */ (0,
|
|
4793
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4722
4794
|
"path",
|
|
4723
4795
|
{
|
|
4724
4796
|
strokeLinecap: "round",
|
|
@@ -4729,11 +4801,11 @@ var DocumentNode = (props) => {
|
|
|
4729
4801
|
)
|
|
4730
4802
|
}
|
|
4731
4803
|
) }),
|
|
4732
|
-
/* @__PURE__ */ (0,
|
|
4733
|
-
/* @__PURE__ */ (0,
|
|
4804
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
4805
|
+
/* @__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
4806
|
] }) });
|
|
4735
4807
|
}
|
|
4736
|
-
return /* @__PURE__ */ (0,
|
|
4808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
4737
4809
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
4738
4810
|
props.assetBaseUrl,
|
|
4739
4811
|
doc.assetUrl
|
|
@@ -4751,16 +4823,16 @@ var DocumentNode = (props) => {
|
|
|
4751
4823
|
}
|
|
4752
4824
|
}
|
|
4753
4825
|
const { Icon: Icon2, extLabel } = getFileDetails(documentUrl);
|
|
4754
|
-
return /* @__PURE__ */ (0,
|
|
4826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4755
4827
|
"div",
|
|
4756
4828
|
{
|
|
4757
4829
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
4758
4830
|
children: [
|
|
4759
|
-
/* @__PURE__ */ (0,
|
|
4760
|
-
/* @__PURE__ */ (0,
|
|
4761
|
-
/* @__PURE__ */ (0,
|
|
4831
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex items-center space-x-4", children: [
|
|
4832
|
+
/* @__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, {}) }),
|
|
4833
|
+
/* @__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
4834
|
] }),
|
|
4763
|
-
/* @__PURE__ */ (0,
|
|
4835
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4764
4836
|
"a",
|
|
4765
4837
|
{
|
|
4766
4838
|
href: documentUrl,
|
|
@@ -4768,7 +4840,7 @@ var DocumentNode = (props) => {
|
|
|
4768
4840
|
rel: "noopener noreferrer",
|
|
4769
4841
|
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
4842
|
children: [
|
|
4771
|
-
/* @__PURE__ */ (0,
|
|
4843
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
4772
4844
|
"svg",
|
|
4773
4845
|
{
|
|
4774
4846
|
className: "w-4 h-4 mr-2",
|
|
@@ -4776,7 +4848,7 @@ var DocumentNode = (props) => {
|
|
|
4776
4848
|
stroke: "currentColor",
|
|
4777
4849
|
viewBox: "0 0 24 24",
|
|
4778
4850
|
children: [
|
|
4779
|
-
/* @__PURE__ */ (0,
|
|
4851
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4780
4852
|
"path",
|
|
4781
4853
|
{
|
|
4782
4854
|
strokeLinecap: "round",
|
|
@@ -4785,7 +4857,7 @@ var DocumentNode = (props) => {
|
|
|
4785
4857
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
4786
4858
|
}
|
|
4787
4859
|
),
|
|
4788
|
-
/* @__PURE__ */ (0,
|
|
4860
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4789
4861
|
"path",
|
|
4790
4862
|
{
|
|
4791
4863
|
strokeLinecap: "round",
|
|
@@ -4810,7 +4882,7 @@ var DocumentNode = (props) => {
|
|
|
4810
4882
|
var DocumentNode_default = DocumentNode;
|
|
4811
4883
|
|
|
4812
4884
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
4813
|
-
var
|
|
4885
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4814
4886
|
var Pagination2 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
4815
4887
|
var Slider2 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
|
|
4816
4888
|
ssr: false
|
|
@@ -5065,7 +5137,7 @@ var DivContainer = async (props) => {
|
|
|
5065
5137
|
response = await serviceClient.get(endpoint);
|
|
5066
5138
|
result = response?.result;
|
|
5067
5139
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
5068
|
-
return /* @__PURE__ */ (0,
|
|
5140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(NoDataFound_default, {});
|
|
5069
5141
|
}
|
|
5070
5142
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
5071
5143
|
childCollectionData = getNestedValue6(
|
|
@@ -5085,7 +5157,7 @@ var DivContainer = async (props) => {
|
|
|
5085
5157
|
}
|
|
5086
5158
|
const SelectedNode = NodeTypes2[node.type];
|
|
5087
5159
|
if (!SelectedNode) return null;
|
|
5088
|
-
return /* @__PURE__ */ (0,
|
|
5160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5089
5161
|
SelectedNode,
|
|
5090
5162
|
{
|
|
5091
5163
|
node,
|
|
@@ -5218,14 +5290,14 @@ var DivContainer = async (props) => {
|
|
|
5218
5290
|
noLinkColor && "no-link-color",
|
|
5219
5291
|
!!props.node.enterAnimation && "enter-animation"
|
|
5220
5292
|
].filter(Boolean).join(" ");
|
|
5221
|
-
return /* @__PURE__ */ (0,
|
|
5222
|
-
/* @__PURE__ */ (0,
|
|
5293
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_react34.default.Fragment, { children: [
|
|
5294
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5223
5295
|
"style",
|
|
5224
5296
|
{
|
|
5225
5297
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
5226
5298
|
}
|
|
5227
5299
|
),
|
|
5228
|
-
/* @__PURE__ */ (0,
|
|
5300
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5229
5301
|
Wrapper,
|
|
5230
5302
|
{
|
|
5231
5303
|
id: guid,
|
|
@@ -5239,11 +5311,11 @@ var DivContainer = async (props) => {
|
|
|
5239
5311
|
item,
|
|
5240
5312
|
idx,
|
|
5241
5313
|
props.href ? void 0 : item?.links?.view
|
|
5242
|
-
)?.map((child, i) => /* @__PURE__ */ (0,
|
|
5314
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react34.default.Fragment, { children: child }, i)) : renderChildren(props.node.children, props, item, idx)
|
|
5243
5315
|
)
|
|
5244
5316
|
}
|
|
5245
5317
|
),
|
|
5246
|
-
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0,
|
|
5318
|
+
dataBindingProperties && props.node.dataBinding.enablePagination && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
5247
5319
|
Pagination2,
|
|
5248
5320
|
{
|
|
5249
5321
|
path: props.path,
|
|
@@ -5256,7 +5328,7 @@ var DivContainer = async (props) => {
|
|
|
5256
5328
|
var DivContainer_default = DivContainer;
|
|
5257
5329
|
|
|
5258
5330
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
5259
|
-
var
|
|
5331
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5260
5332
|
var NodeTypes = {
|
|
5261
5333
|
["paragraph"]: ParagraphNode_default,
|
|
5262
5334
|
["heading"]: HeadingNode_default,
|
|
@@ -5293,14 +5365,14 @@ var PageBodyRenderer = (props) => {
|
|
|
5293
5365
|
}
|
|
5294
5366
|
return true;
|
|
5295
5367
|
};
|
|
5296
|
-
return /* @__PURE__ */ (0,
|
|
5368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
5297
5369
|
{
|
|
5298
5370
|
}
|
|
5299
5371
|
const SelectedNode = NodeTypes[node.type];
|
|
5300
5372
|
if (!shouldRenderNode(node)) {
|
|
5301
5373
|
return null;
|
|
5302
5374
|
}
|
|
5303
|
-
return /* @__PURE__ */ (0,
|
|
5375
|
+
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
5376
|
SelectedNode,
|
|
5305
5377
|
{
|
|
5306
5378
|
node,
|
|
@@ -5316,7 +5388,7 @@ var PageBodyRenderer = (props) => {
|
|
|
5316
5388
|
device: props.device,
|
|
5317
5389
|
widgetRenderer: props.widgetRenderer
|
|
5318
5390
|
}
|
|
5319
|
-
) }) : /* @__PURE__ */ (0,
|
|
5391
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react35.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
5320
5392
|
SelectedNode,
|
|
5321
5393
|
{
|
|
5322
5394
|
node,
|