@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260829045216 → 0.8.1-dev.20260829085511
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +765 -689
- package/dist/index.mjs +351 -275
- package/dist/server.d.mts +1 -0
- package/dist/server.d.ts +1 -0
- package/dist/server.js +542 -466
- package/dist/server.mjs +195 -119
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -2772,13 +2772,13 @@ function CopyButton({ text }) {
|
|
|
2772
2772
|
console.error("Failed to copy: ", err);
|
|
2773
2773
|
}
|
|
2774
2774
|
};
|
|
2775
|
-
return /* @__PURE__ */ (0,
|
|
2775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
2776
2776
|
"button",
|
|
2777
2777
|
{
|
|
2778
2778
|
onClick: handleCopy,
|
|
2779
2779
|
className: "flex gap-1 items-center hover:text-white transition",
|
|
2780
2780
|
children: [
|
|
2781
|
-
/* @__PURE__ */ (0,
|
|
2781
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2782
2782
|
"svg",
|
|
2783
2783
|
{
|
|
2784
2784
|
width: "16",
|
|
@@ -2786,7 +2786,7 @@ function CopyButton({ text }) {
|
|
|
2786
2786
|
viewBox: "0 0 24 24",
|
|
2787
2787
|
className: "w-4 h-4",
|
|
2788
2788
|
fill: "currentColor",
|
|
2789
|
-
children: /* @__PURE__ */ (0,
|
|
2789
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
2790
2790
|
"path",
|
|
2791
2791
|
{
|
|
2792
2792
|
fillRule: "evenodd",
|
|
@@ -2801,54 +2801,54 @@ function CopyButton({ text }) {
|
|
|
2801
2801
|
}
|
|
2802
2802
|
);
|
|
2803
2803
|
}
|
|
2804
|
-
var import_react32,
|
|
2804
|
+
var import_react32, import_jsx_runtime47;
|
|
2805
2805
|
var init_CopyButton = __esm({
|
|
2806
2806
|
"src/components/CopyButton.tsx"() {
|
|
2807
2807
|
"use strict";
|
|
2808
2808
|
"use client";
|
|
2809
2809
|
import_react32 = require("react");
|
|
2810
|
-
|
|
2810
|
+
import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2811
2811
|
}
|
|
2812
2812
|
});
|
|
2813
2813
|
|
|
2814
2814
|
// src/components/IFrameLoaderView.tsx
|
|
2815
|
-
var import_react35,
|
|
2815
|
+
var import_react35, import_jsx_runtime51, IFrameLoaderView, IFrameLoaderView_default;
|
|
2816
2816
|
var init_IFrameLoaderView = __esm({
|
|
2817
2817
|
"src/components/IFrameLoaderView.tsx"() {
|
|
2818
2818
|
"use strict";
|
|
2819
2819
|
import_react35 = __toESM(require("react"));
|
|
2820
|
-
|
|
2820
|
+
import_jsx_runtime51 = require("react/jsx-runtime");
|
|
2821
2821
|
IFrameLoaderView = (props) => {
|
|
2822
|
-
return /* @__PURE__ */ (0,
|
|
2823
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
2824
|
-
/* @__PURE__ */ (0,
|
|
2825
|
-
/* @__PURE__ */ (0,
|
|
2826
|
-
/* @__PURE__ */ (0,
|
|
2827
|
-
/* @__PURE__ */ (0,
|
|
2828
|
-
/* @__PURE__ */ (0,
|
|
2822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_react35.default.Fragment, { children: [
|
|
2823
|
+
props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
2824
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
2825
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
2826
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "ml-2", children: [
|
|
2827
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
2828
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
2829
2829
|
] })
|
|
2830
2830
|
] }),
|
|
2831
|
-
/* @__PURE__ */ (0,
|
|
2832
|
-
/* @__PURE__ */ (0,
|
|
2833
|
-
/* @__PURE__ */ (0,
|
|
2834
|
-
/* @__PURE__ */ (0,
|
|
2835
|
-
/* @__PURE__ */ (0,
|
|
2836
|
-
/* @__PURE__ */ (0,
|
|
2837
|
-
/* @__PURE__ */ (0,
|
|
2831
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
2832
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "animate-pulse", children: [
|
|
2833
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2834
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2835
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2836
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2837
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2838
2838
|
] }),
|
|
2839
|
-
/* @__PURE__ */ (0,
|
|
2840
|
-
/* @__PURE__ */ (0,
|
|
2841
|
-
/* @__PURE__ */ (0,
|
|
2842
|
-
/* @__PURE__ */ (0,
|
|
2843
|
-
/* @__PURE__ */ (0,
|
|
2844
|
-
/* @__PURE__ */ (0,
|
|
2839
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "animate-pulse", children: [
|
|
2840
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2841
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2842
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2843
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2844
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2845
2845
|
] }),
|
|
2846
|
-
/* @__PURE__ */ (0,
|
|
2847
|
-
/* @__PURE__ */ (0,
|
|
2848
|
-
/* @__PURE__ */ (0,
|
|
2849
|
-
/* @__PURE__ */ (0,
|
|
2850
|
-
/* @__PURE__ */ (0,
|
|
2851
|
-
/* @__PURE__ */ (0,
|
|
2846
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "animate-pulse", children: [
|
|
2847
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
2848
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
2849
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
2850
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
2851
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
2852
2852
|
] })
|
|
2853
2853
|
] })
|
|
2854
2854
|
] }) }),
|
|
@@ -2864,14 +2864,14 @@ var IframeClient_exports = {};
|
|
|
2864
2864
|
__export(IframeClient_exports, {
|
|
2865
2865
|
default: () => IframeClient_default
|
|
2866
2866
|
});
|
|
2867
|
-
var import_react36,
|
|
2867
|
+
var import_react36, import_jsx_runtime52, IframeClient, IframeClient_default;
|
|
2868
2868
|
var init_IframeClient = __esm({
|
|
2869
2869
|
"src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
|
|
2870
2870
|
"use strict";
|
|
2871
2871
|
"use client";
|
|
2872
2872
|
import_react36 = __toESM(require("react"));
|
|
2873
2873
|
init_IFrameLoaderView();
|
|
2874
|
-
|
|
2874
|
+
import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2875
2875
|
IframeClient = ({
|
|
2876
2876
|
src,
|
|
2877
2877
|
width,
|
|
@@ -2910,7 +2910,7 @@ var init_IframeClient = __esm({
|
|
|
2910
2910
|
const handleIframeLoad = () => {
|
|
2911
2911
|
setIsDataFound(true);
|
|
2912
2912
|
};
|
|
2913
|
-
return /* @__PURE__ */ (0,
|
|
2913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2914
2914
|
"iframe",
|
|
2915
2915
|
{
|
|
2916
2916
|
ref: iframeRef,
|
|
@@ -3203,52 +3203,52 @@ var init_OdataBuilder = __esm({
|
|
|
3203
3203
|
});
|
|
3204
3204
|
|
|
3205
3205
|
// src/svg/chevron-updown.tsx
|
|
3206
|
-
var
|
|
3206
|
+
var import_jsx_runtime58, ChevronUpDown, chevron_updown_default;
|
|
3207
3207
|
var init_chevron_updown = __esm({
|
|
3208
3208
|
"src/svg/chevron-updown.tsx"() {
|
|
3209
3209
|
"use strict";
|
|
3210
|
-
|
|
3210
|
+
import_jsx_runtime58 = require("react/jsx-runtime");
|
|
3211
3211
|
ChevronUpDown = (props) => {
|
|
3212
|
-
return /* @__PURE__ */ (0,
|
|
3212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.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_runtime58.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
|
|
3213
3213
|
};
|
|
3214
3214
|
chevron_updown_default = ChevronUpDown;
|
|
3215
3215
|
}
|
|
3216
3216
|
});
|
|
3217
3217
|
|
|
3218
3218
|
// src/svg/chevron-down.tsx
|
|
3219
|
-
var
|
|
3219
|
+
var import_jsx_runtime59, ChevronDown, chevron_down_default;
|
|
3220
3220
|
var init_chevron_down = __esm({
|
|
3221
3221
|
"src/svg/chevron-down.tsx"() {
|
|
3222
3222
|
"use strict";
|
|
3223
|
-
|
|
3223
|
+
import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3224
3224
|
ChevronDown = (props) => {
|
|
3225
|
-
return /* @__PURE__ */ (0,
|
|
3225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.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_runtime59.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
|
|
3226
3226
|
};
|
|
3227
3227
|
chevron_down_default = ChevronDown;
|
|
3228
3228
|
}
|
|
3229
3229
|
});
|
|
3230
3230
|
|
|
3231
3231
|
// src/svg/chevron-up.tsx
|
|
3232
|
-
var
|
|
3232
|
+
var import_jsx_runtime60, ChevronUp, chevron_up_default;
|
|
3233
3233
|
var init_chevron_up = __esm({
|
|
3234
3234
|
"src/svg/chevron-up.tsx"() {
|
|
3235
3235
|
"use strict";
|
|
3236
|
-
|
|
3236
|
+
import_jsx_runtime60 = require("react/jsx-runtime");
|
|
3237
3237
|
ChevronUp = (props) => {
|
|
3238
|
-
return /* @__PURE__ */ (0,
|
|
3238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.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_runtime60.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
|
|
3239
3239
|
};
|
|
3240
3240
|
chevron_up_default = ChevronUp;
|
|
3241
3241
|
}
|
|
3242
3242
|
});
|
|
3243
3243
|
|
|
3244
3244
|
// src/svg/plus.tsx
|
|
3245
|
-
var
|
|
3245
|
+
var import_jsx_runtime61, Plus, plus_default;
|
|
3246
3246
|
var init_plus = __esm({
|
|
3247
3247
|
"src/svg/plus.tsx"() {
|
|
3248
3248
|
"use strict";
|
|
3249
|
-
|
|
3249
|
+
import_jsx_runtime61 = require("react/jsx-runtime");
|
|
3250
3250
|
Plus = (props) => {
|
|
3251
|
-
return /* @__PURE__ */ (0,
|
|
3251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.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_runtime61.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
|
|
3252
3252
|
};
|
|
3253
3253
|
plus_default = Plus;
|
|
3254
3254
|
}
|
|
@@ -3274,19 +3274,19 @@ var init_Icons = __esm({
|
|
|
3274
3274
|
});
|
|
3275
3275
|
|
|
3276
3276
|
// src/svg/Icon.tsx
|
|
3277
|
-
var
|
|
3277
|
+
var import_jsx_runtime62, Icon, Icon_default;
|
|
3278
3278
|
var init_Icon = __esm({
|
|
3279
3279
|
"src/svg/Icon.tsx"() {
|
|
3280
3280
|
"use strict";
|
|
3281
3281
|
init_Icons();
|
|
3282
|
-
|
|
3282
|
+
import_jsx_runtime62 = require("react/jsx-runtime");
|
|
3283
3283
|
Icon = ({ name, className, ...props }) => {
|
|
3284
3284
|
const IconComponent = Icons_default[name];
|
|
3285
3285
|
if (!IconComponent) {
|
|
3286
3286
|
console.error(`Icon "${name}" not found.`);
|
|
3287
3287
|
return null;
|
|
3288
3288
|
}
|
|
3289
|
-
return /* @__PURE__ */ (0,
|
|
3289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(IconComponent, { ...props, className });
|
|
3290
3290
|
};
|
|
3291
3291
|
Icon_default = Icon;
|
|
3292
3292
|
}
|
|
@@ -3297,7 +3297,7 @@ var Pagination_exports = {};
|
|
|
3297
3297
|
__export(Pagination_exports, {
|
|
3298
3298
|
default: () => Pagination_default
|
|
3299
3299
|
});
|
|
3300
|
-
var import_react37,
|
|
3300
|
+
var import_react37, import_jsx_runtime63, Pagination, Pagination_default;
|
|
3301
3301
|
var init_Pagination = __esm({
|
|
3302
3302
|
"src/components/Pagination.tsx"() {
|
|
3303
3303
|
"use strict";
|
|
@@ -3308,7 +3308,7 @@ var init_Pagination = __esm({
|
|
|
3308
3308
|
init_StyleTypes();
|
|
3309
3309
|
init_InputControlType();
|
|
3310
3310
|
init_Hyperlink();
|
|
3311
|
-
|
|
3311
|
+
import_jsx_runtime63 = require("react/jsx-runtime");
|
|
3312
3312
|
Pagination = (props) => {
|
|
3313
3313
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
3314
3314
|
const builder = (0, import_react37.useMemo)(() => {
|
|
@@ -3352,7 +3352,7 @@ var init_Pagination = __esm({
|
|
|
3352
3352
|
return range;
|
|
3353
3353
|
};
|
|
3354
3354
|
const paginationRange = getPaginationRange();
|
|
3355
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
3355
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3356
3356
|
Hyperlink,
|
|
3357
3357
|
{
|
|
3358
3358
|
linkType: "Link" /* Link */,
|
|
@@ -3367,9 +3367,9 @@ var init_Pagination = __esm({
|
|
|
3367
3367
|
);
|
|
3368
3368
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
3369
3369
|
if (disabled) {
|
|
3370
|
-
return /* @__PURE__ */ (0,
|
|
3370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.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 });
|
|
3371
3371
|
}
|
|
3372
|
-
return /* @__PURE__ */ (0,
|
|
3372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3373
3373
|
Hyperlink,
|
|
3374
3374
|
{
|
|
3375
3375
|
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",
|
|
@@ -3379,35 +3379,35 @@ var init_Pagination = __esm({
|
|
|
3379
3379
|
);
|
|
3380
3380
|
};
|
|
3381
3381
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
3382
|
-
return /* @__PURE__ */ (0,
|
|
3383
|
-
/* @__PURE__ */ (0,
|
|
3384
|
-
/* @__PURE__ */ (0,
|
|
3382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "py-6 border-t bg-default", children: [
|
|
3383
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
3384
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "text-sm", children: [
|
|
3385
3385
|
"Showing ",
|
|
3386
|
-
/* @__PURE__ */ (0,
|
|
3386
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("span", { className: "font-semibold", children: [
|
|
3387
3387
|
startItem,
|
|
3388
3388
|
"-",
|
|
3389
3389
|
endItem
|
|
3390
3390
|
] }),
|
|
3391
3391
|
" ",
|
|
3392
3392
|
"out of ",
|
|
3393
|
-
/* @__PURE__ */ (0,
|
|
3393
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
3394
3394
|
" results"
|
|
3395
3395
|
] }),
|
|
3396
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
3397
|
-
/* @__PURE__ */ (0,
|
|
3396
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
3397
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
3398
3398
|
NavigationButton,
|
|
3399
3399
|
{
|
|
3400
3400
|
page: activePageNumber - 1,
|
|
3401
3401
|
disabled: activePageNumber === 1,
|
|
3402
3402
|
children: [
|
|
3403
|
-
/* @__PURE__ */ (0,
|
|
3404
|
-
/* @__PURE__ */ (0,
|
|
3403
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
|
|
3404
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm", children: "Prev" })
|
|
3405
3405
|
]
|
|
3406
3406
|
}
|
|
3407
3407
|
),
|
|
3408
3408
|
paginationRange.map((item, index) => {
|
|
3409
3409
|
if (item === "...") {
|
|
3410
|
-
return /* @__PURE__ */ (0,
|
|
3410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3411
3411
|
"span",
|
|
3412
3412
|
{
|
|
3413
3413
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -3417,23 +3417,23 @@ var init_Pagination = __esm({
|
|
|
3417
3417
|
);
|
|
3418
3418
|
}
|
|
3419
3419
|
const page = item;
|
|
3420
|
-
return /* @__PURE__ */ (0,
|
|
3420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(PageButton, { page, children: page }, page);
|
|
3421
3421
|
}),
|
|
3422
|
-
/* @__PURE__ */ (0,
|
|
3422
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
3423
3423
|
NavigationButton,
|
|
3424
3424
|
{
|
|
3425
3425
|
page: activePageNumber + 1,
|
|
3426
3426
|
disabled: activePageNumber === totalPages,
|
|
3427
3427
|
children: [
|
|
3428
|
-
/* @__PURE__ */ (0,
|
|
3429
|
-
/* @__PURE__ */ (0,
|
|
3428
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm", children: "Next" }),
|
|
3429
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
|
|
3430
3430
|
]
|
|
3431
3431
|
}
|
|
3432
3432
|
)
|
|
3433
3433
|
] }),
|
|
3434
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
3435
|
-
/* @__PURE__ */ (0,
|
|
3436
|
-
/* @__PURE__ */ (0,
|
|
3434
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
3435
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm", children: "Go to:" }),
|
|
3436
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3437
3437
|
"input",
|
|
3438
3438
|
{
|
|
3439
3439
|
type: "number",
|
|
@@ -3454,9 +3454,9 @@ var init_Pagination = __esm({
|
|
|
3454
3454
|
) })
|
|
3455
3455
|
] })
|
|
3456
3456
|
] }),
|
|
3457
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
3458
|
-
/* @__PURE__ */ (0,
|
|
3459
|
-
/* @__PURE__ */ (0,
|
|
3457
|
+
showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
|
|
3458
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm", children: "Show:" }),
|
|
3459
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3460
3460
|
Hyperlink,
|
|
3461
3461
|
{
|
|
3462
3462
|
className: `
|
|
@@ -3468,7 +3468,7 @@ var init_Pagination = __esm({
|
|
|
3468
3468
|
},
|
|
3469
3469
|
size
|
|
3470
3470
|
)) }),
|
|
3471
|
-
/* @__PURE__ */ (0,
|
|
3471
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { className: "text-sm", children: "per page" })
|
|
3472
3472
|
] }) })
|
|
3473
3473
|
] });
|
|
3474
3474
|
};
|
|
@@ -3477,12 +3477,12 @@ var init_Pagination = __esm({
|
|
|
3477
3477
|
});
|
|
3478
3478
|
|
|
3479
3479
|
// src/components/controls/edit/MultilineTextInput.tsx
|
|
3480
|
-
var import_react38,
|
|
3480
|
+
var import_react38, import_jsx_runtime64, MultilineTextInput, MultilineTextInput_default;
|
|
3481
3481
|
var init_MultilineTextInput = __esm({
|
|
3482
3482
|
"src/components/controls/edit/MultilineTextInput.tsx"() {
|
|
3483
3483
|
"use strict";
|
|
3484
3484
|
import_react38 = __toESM(require("react"));
|
|
3485
|
-
|
|
3485
|
+
import_jsx_runtime64 = require("react/jsx-runtime");
|
|
3486
3486
|
MultilineTextInput = (props) => {
|
|
3487
3487
|
const textChangeHandler = (event) => {
|
|
3488
3488
|
const text = event.target.value;
|
|
@@ -3501,11 +3501,11 @@ var init_MultilineTextInput = __esm({
|
|
|
3501
3501
|
if (props.value !== void 0 && props.value !== null) {
|
|
3502
3502
|
value = props.value;
|
|
3503
3503
|
}
|
|
3504
|
-
return /* @__PURE__ */ (0,
|
|
3505
|
-
/* @__PURE__ */ (0,
|
|
3504
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("label", { className: "block mb-1", children: [
|
|
3505
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
3506
3506
|
" ",
|
|
3507
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
3508
|
-
/* @__PURE__ */ (0,
|
|
3507
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
3508
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
3509
3509
|
"textarea",
|
|
3510
3510
|
{
|
|
3511
3511
|
name: props.name,
|
|
@@ -3522,7 +3522,7 @@ var init_MultilineTextInput = __esm({
|
|
|
3522
3522
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm input"
|
|
3523
3523
|
}
|
|
3524
3524
|
),
|
|
3525
|
-
/* @__PURE__ */ (0,
|
|
3525
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
3526
3526
|
] }) });
|
|
3527
3527
|
};
|
|
3528
3528
|
MultilineTextInput_default = MultilineTextInput;
|
|
@@ -3530,12 +3530,12 @@ var init_MultilineTextInput = __esm({
|
|
|
3530
3530
|
});
|
|
3531
3531
|
|
|
3532
3532
|
// src/components/controls/edit/LineTextInput.tsx
|
|
3533
|
-
var import_react39,
|
|
3533
|
+
var import_react39, import_jsx_runtime65, LineTextInput, LineTextInput_default;
|
|
3534
3534
|
var init_LineTextInput = __esm({
|
|
3535
3535
|
"src/components/controls/edit/LineTextInput.tsx"() {
|
|
3536
3536
|
"use strict";
|
|
3537
3537
|
import_react39 = __toESM(require("react"));
|
|
3538
|
-
|
|
3538
|
+
import_jsx_runtime65 = require("react/jsx-runtime");
|
|
3539
3539
|
LineTextInput = (props) => {
|
|
3540
3540
|
const textChangeHandler = (event) => {
|
|
3541
3541
|
const text = event.target.value;
|
|
@@ -3554,11 +3554,11 @@ var init_LineTextInput = __esm({
|
|
|
3554
3554
|
if (props.value !== void 0 && props.value !== null) {
|
|
3555
3555
|
value = props.value;
|
|
3556
3556
|
}
|
|
3557
|
-
return /* @__PURE__ */ (0,
|
|
3558
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
3557
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react39.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("label", { className: "block", children: [
|
|
3558
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
3559
3559
|
" ",
|
|
3560
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
3561
|
-
/* @__PURE__ */ (0,
|
|
3560
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "bg-error-weak !bg-transparent", children: "*" }),
|
|
3561
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
3562
3562
|
"input",
|
|
3563
3563
|
{
|
|
3564
3564
|
type: "text",
|
|
@@ -3578,7 +3578,7 @@ var init_LineTextInput = __esm({
|
|
|
3578
3578
|
`
|
|
3579
3579
|
}
|
|
3580
3580
|
),
|
|
3581
|
-
/* @__PURE__ */ (0,
|
|
3581
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
3582
3582
|
] }) });
|
|
3583
3583
|
};
|
|
3584
3584
|
LineTextInput_default = LineTextInput;
|
|
@@ -3586,12 +3586,12 @@ var init_LineTextInput = __esm({
|
|
|
3586
3586
|
});
|
|
3587
3587
|
|
|
3588
3588
|
// src/components/controls/edit/MoneyInput.tsx
|
|
3589
|
-
var import_react40,
|
|
3589
|
+
var import_react40, import_jsx_runtime66, MoneyInput, MoneyInput_default;
|
|
3590
3590
|
var init_MoneyInput = __esm({
|
|
3591
3591
|
"src/components/controls/edit/MoneyInput.tsx"() {
|
|
3592
3592
|
"use strict";
|
|
3593
3593
|
import_react40 = __toESM(require("react"));
|
|
3594
|
-
|
|
3594
|
+
import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3595
3595
|
MoneyInput = (props) => {
|
|
3596
3596
|
const textChangeHandler = (event) => {
|
|
3597
3597
|
const rawValue = event.target.value;
|
|
@@ -3620,11 +3620,11 @@ var init_MoneyInput = __esm({
|
|
|
3620
3620
|
e.preventDefault();
|
|
3621
3621
|
}
|
|
3622
3622
|
};
|
|
3623
|
-
return /* @__PURE__ */ (0,
|
|
3624
|
-
/* @__PURE__ */ (0,
|
|
3623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react40.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("label", { className: "block mb-1", children: [
|
|
3624
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
3625
3625
|
" ",
|
|
3626
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
3627
|
-
/* @__PURE__ */ (0,
|
|
3626
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
3627
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3628
3628
|
"input",
|
|
3629
3629
|
{
|
|
3630
3630
|
type: "number",
|
|
@@ -3644,7 +3644,7 @@ var init_MoneyInput = __esm({
|
|
|
3644
3644
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
|
|
3645
3645
|
}
|
|
3646
3646
|
),
|
|
3647
|
-
/* @__PURE__ */ (0,
|
|
3647
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
3648
3648
|
] }) });
|
|
3649
3649
|
};
|
|
3650
3650
|
MoneyInput_default = MoneyInput;
|
|
@@ -3652,12 +3652,12 @@ var init_MoneyInput = __esm({
|
|
|
3652
3652
|
});
|
|
3653
3653
|
|
|
3654
3654
|
// src/components/controls/edit/Select.tsx
|
|
3655
|
-
var import_react41,
|
|
3655
|
+
var import_react41, import_jsx_runtime67, Select, Select_default;
|
|
3656
3656
|
var init_Select = __esm({
|
|
3657
3657
|
"src/components/controls/edit/Select.tsx"() {
|
|
3658
3658
|
"use strict";
|
|
3659
3659
|
import_react41 = require("react");
|
|
3660
|
-
|
|
3660
|
+
import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3661
3661
|
Select = (props) => {
|
|
3662
3662
|
const [list, setList] = (0, import_react41.useState)();
|
|
3663
3663
|
const getSafeValue = (val) => {
|
|
@@ -3729,11 +3729,11 @@ var init_Select = __esm({
|
|
|
3729
3729
|
props.dataSourceDependsOn
|
|
3730
3730
|
]);
|
|
3731
3731
|
const value = getSafeValue(props.value);
|
|
3732
|
-
return /* @__PURE__ */ (0,
|
|
3733
|
-
props.attributes?.label && /* @__PURE__ */ (0,
|
|
3732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("label", { className: "block", children: [
|
|
3733
|
+
props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-sm font-medium inline-block pb-1", children: props.attributes?.label }),
|
|
3734
3734
|
" ",
|
|
3735
|
-
props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0,
|
|
3736
|
-
list && list.length === 0 && /* @__PURE__ */ (0,
|
|
3735
|
+
props.attributes?.label && props.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
3736
|
+
list && list.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3737
3737
|
"input",
|
|
3738
3738
|
{
|
|
3739
3739
|
type: "text",
|
|
@@ -3750,7 +3750,7 @@ var init_Select = __esm({
|
|
|
3750
3750
|
className: `peer input select mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
|
|
3751
3751
|
}
|
|
3752
3752
|
),
|
|
3753
|
-
list && list.length > 0 && /* @__PURE__ */ (0,
|
|
3753
|
+
list && list.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
3754
3754
|
"select",
|
|
3755
3755
|
{
|
|
3756
3756
|
name: props.name,
|
|
@@ -3763,16 +3763,16 @@ var init_Select = __esm({
|
|
|
3763
3763
|
focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50
|
|
3764
3764
|
disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none ${props.inputClasses ?? ""}`,
|
|
3765
3765
|
children: [
|
|
3766
|
-
/* @__PURE__ */ (0,
|
|
3766
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
|
|
3767
3767
|
list.map((item, index) => {
|
|
3768
3768
|
const keyField = props.dataKeyFieldName;
|
|
3769
3769
|
const textField = props.dataTextFieldName;
|
|
3770
|
-
return /* @__PURE__ */ (0,
|
|
3770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("option", { value: item[keyField], children: item[textField] }, index);
|
|
3771
3771
|
})
|
|
3772
3772
|
]
|
|
3773
3773
|
}
|
|
3774
3774
|
),
|
|
3775
|
-
/* @__PURE__ */ (0,
|
|
3775
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 text-alert text-sm", children: props.attributes?.errorMessage || "" })
|
|
3776
3776
|
] });
|
|
3777
3777
|
};
|
|
3778
3778
|
Select_default = Select;
|
|
@@ -3780,12 +3780,12 @@ var init_Select = __esm({
|
|
|
3780
3780
|
});
|
|
3781
3781
|
|
|
3782
3782
|
// src/components/controls/edit/PercentageInput.tsx
|
|
3783
|
-
var import_react42,
|
|
3783
|
+
var import_react42, import_jsx_runtime68, PercentageInput, PercentageInput_default;
|
|
3784
3784
|
var init_PercentageInput = __esm({
|
|
3785
3785
|
"src/components/controls/edit/PercentageInput.tsx"() {
|
|
3786
3786
|
"use strict";
|
|
3787
3787
|
import_react42 = __toESM(require("react"));
|
|
3788
|
-
|
|
3788
|
+
import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3789
3789
|
PercentageInput = (props) => {
|
|
3790
3790
|
const textChangeHandler = (event) => {
|
|
3791
3791
|
const rawValue = event.target.value;
|
|
@@ -3814,11 +3814,11 @@ var init_PercentageInput = __esm({
|
|
|
3814
3814
|
e.preventDefault();
|
|
3815
3815
|
}
|
|
3816
3816
|
};
|
|
3817
|
-
return /* @__PURE__ */ (0,
|
|
3818
|
-
/* @__PURE__ */ (0,
|
|
3817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("label", { className: "block mb-1", children: [
|
|
3818
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label ? props?.attributes?.label + " %" : "" }),
|
|
3819
3819
|
" ",
|
|
3820
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
3821
|
-
/* @__PURE__ */ (0,
|
|
3820
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
3821
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
3822
3822
|
"input",
|
|
3823
3823
|
{
|
|
3824
3824
|
type: "number",
|
|
@@ -3837,7 +3837,7 @@ var init_PercentageInput = __esm({
|
|
|
3837
3837
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm number-input"
|
|
3838
3838
|
}
|
|
3839
3839
|
),
|
|
3840
|
-
/* @__PURE__ */ (0,
|
|
3840
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
3841
3841
|
] }) });
|
|
3842
3842
|
};
|
|
3843
3843
|
PercentageInput_default = PercentageInput;
|
|
@@ -3845,12 +3845,12 @@ var init_PercentageInput = __esm({
|
|
|
3845
3845
|
});
|
|
3846
3846
|
|
|
3847
3847
|
// src/components/controls/edit/PhoneInput.tsx
|
|
3848
|
-
var import_react43,
|
|
3848
|
+
var import_react43, import_jsx_runtime69, PhoneInput, PhoneInput_default;
|
|
3849
3849
|
var init_PhoneInput = __esm({
|
|
3850
3850
|
"src/components/controls/edit/PhoneInput.tsx"() {
|
|
3851
3851
|
"use strict";
|
|
3852
3852
|
import_react43 = __toESM(require("react"));
|
|
3853
|
-
|
|
3853
|
+
import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3854
3854
|
PhoneInput = (props) => {
|
|
3855
3855
|
const textChangeHandler = (event) => {
|
|
3856
3856
|
const text = event.target.value;
|
|
@@ -3869,13 +3869,13 @@ var init_PhoneInput = __esm({
|
|
|
3869
3869
|
if (props.value !== void 0 && props.value !== null) {
|
|
3870
3870
|
value = props.value;
|
|
3871
3871
|
}
|
|
3872
|
-
return /* @__PURE__ */ (0,
|
|
3873
|
-
/* @__PURE__ */ (0,
|
|
3872
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("label", { className: "block mb-1", children: [
|
|
3873
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
3874
3874
|
" ",
|
|
3875
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
3876
|
-
/* @__PURE__ */ (0,
|
|
3877
|
-
/* @__PURE__ */ (0,
|
|
3878
|
-
/* @__PURE__ */ (0,
|
|
3875
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
3876
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex items-center rounded border ", children: [
|
|
3877
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "px-3", children: props.prefix }),
|
|
3878
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3879
3879
|
"input",
|
|
3880
3880
|
{
|
|
3881
3881
|
type: "text",
|
|
@@ -3893,7 +3893,7 @@ var init_PhoneInput = __esm({
|
|
|
3893
3893
|
}
|
|
3894
3894
|
)
|
|
3895
3895
|
] }),
|
|
3896
|
-
/* @__PURE__ */ (0,
|
|
3896
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
3897
3897
|
] }) });
|
|
3898
3898
|
};
|
|
3899
3899
|
PhoneInput_default = PhoneInput;
|
|
@@ -3901,12 +3901,12 @@ var init_PhoneInput = __esm({
|
|
|
3901
3901
|
});
|
|
3902
3902
|
|
|
3903
3903
|
// src/components/controls/edit/NumberInput.tsx
|
|
3904
|
-
var import_react44,
|
|
3904
|
+
var import_react44, import_jsx_runtime70, NumberInput, NumberInput_default;
|
|
3905
3905
|
var init_NumberInput = __esm({
|
|
3906
3906
|
"src/components/controls/edit/NumberInput.tsx"() {
|
|
3907
3907
|
"use strict";
|
|
3908
3908
|
import_react44 = __toESM(require("react"));
|
|
3909
|
-
|
|
3909
|
+
import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3910
3910
|
NumberInput = (props) => {
|
|
3911
3911
|
const textChangeHandler = (event) => {
|
|
3912
3912
|
const text = event.target.value;
|
|
@@ -3929,11 +3929,11 @@ var init_NumberInput = __esm({
|
|
|
3929
3929
|
if (props.value !== void 0 && props.value !== null) {
|
|
3930
3930
|
value = props.value;
|
|
3931
3931
|
}
|
|
3932
|
-
return /* @__PURE__ */ (0,
|
|
3933
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
3932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react44.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("label", { className: "block", children: [
|
|
3933
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "text-sm inline-block pb-1 font-medium ", children: props?.attributes?.label }),
|
|
3934
3934
|
" ",
|
|
3935
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
3936
|
-
/* @__PURE__ */ (0,
|
|
3935
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
3936
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3937
3937
|
"input",
|
|
3938
3938
|
{
|
|
3939
3939
|
type: "number",
|
|
@@ -3952,7 +3952,7 @@ var init_NumberInput = __esm({
|
|
|
3952
3952
|
className: "peer py-1.5 block w-full rounded shadow-sm number-input input\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
|
|
3953
3953
|
}
|
|
3954
3954
|
),
|
|
3955
|
-
/* @__PURE__ */ (0,
|
|
3955
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
3956
3956
|
] }) });
|
|
3957
3957
|
};
|
|
3958
3958
|
NumberInput_default = NumberInput;
|
|
@@ -3960,12 +3960,12 @@ var init_NumberInput = __esm({
|
|
|
3960
3960
|
});
|
|
3961
3961
|
|
|
3962
3962
|
// src/components/controls/edit/CheckboxInput.tsx
|
|
3963
|
-
var import_react45,
|
|
3963
|
+
var import_react45, import_jsx_runtime71, CheckboxInput, CheckboxInput_default;
|
|
3964
3964
|
var init_CheckboxInput = __esm({
|
|
3965
3965
|
"src/components/controls/edit/CheckboxInput.tsx"() {
|
|
3966
3966
|
"use strict";
|
|
3967
3967
|
import_react45 = __toESM(require("react"));
|
|
3968
|
-
|
|
3968
|
+
import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3969
3969
|
CheckboxInput = (props) => {
|
|
3970
3970
|
const textChangeHandler = (event) => {
|
|
3971
3971
|
let text = event.target.checked;
|
|
@@ -3982,9 +3982,9 @@ var init_CheckboxInput = __esm({
|
|
|
3982
3982
|
if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
|
|
3983
3983
|
value = true;
|
|
3984
3984
|
}
|
|
3985
|
-
return /* @__PURE__ */ (0,
|
|
3986
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
3987
|
-
/* @__PURE__ */ (0,
|
|
3985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react45.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "mb-1", children: [
|
|
3986
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
|
|
3987
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3988
3988
|
"label",
|
|
3989
3989
|
{
|
|
3990
3990
|
htmlFor: props.name,
|
|
@@ -3992,9 +3992,9 @@ var init_CheckboxInput = __esm({
|
|
|
3992
3992
|
children: props.attributes.label
|
|
3993
3993
|
}
|
|
3994
3994
|
),
|
|
3995
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
3995
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
3996
3996
|
] }),
|
|
3997
|
-
/* @__PURE__ */ (0,
|
|
3997
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3998
3998
|
"input",
|
|
3999
3999
|
{
|
|
4000
4000
|
type: "checkbox",
|
|
@@ -4011,7 +4011,7 @@ var init_CheckboxInput = __esm({
|
|
|
4011
4011
|
className: "peer mt-1 py-1.5 block rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
|
|
4012
4012
|
}
|
|
4013
4013
|
),
|
|
4014
|
-
/* @__PURE__ */ (0,
|
|
4014
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
|
|
4015
4015
|
] }) });
|
|
4016
4016
|
};
|
|
4017
4017
|
CheckboxInput_default = CheckboxInput;
|
|
@@ -4019,12 +4019,12 @@ var init_CheckboxInput = __esm({
|
|
|
4019
4019
|
});
|
|
4020
4020
|
|
|
4021
4021
|
// src/components/controls/edit/OtpInput.tsx
|
|
4022
|
-
var import_react46,
|
|
4022
|
+
var import_react46, import_jsx_runtime72, OtpInput, OtpInput_default;
|
|
4023
4023
|
var init_OtpInput = __esm({
|
|
4024
4024
|
"src/components/controls/edit/OtpInput.tsx"() {
|
|
4025
4025
|
"use strict";
|
|
4026
4026
|
import_react46 = __toESM(require("react"));
|
|
4027
|
-
|
|
4027
|
+
import_jsx_runtime72 = require("react/jsx-runtime");
|
|
4028
4028
|
OtpInput = (props) => {
|
|
4029
4029
|
const textChangeHandler = (event) => {
|
|
4030
4030
|
const text = event.target.value;
|
|
@@ -4046,11 +4046,11 @@ var init_OtpInput = __esm({
|
|
|
4046
4046
|
if (props.value !== void 0 && props.value !== null) {
|
|
4047
4047
|
value = props.value;
|
|
4048
4048
|
}
|
|
4049
|
-
return /* @__PURE__ */ (0,
|
|
4050
|
-
/* @__PURE__ */ (0,
|
|
4049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react46.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("label", { htmlFor: props.name, className: "block mb-1 w-full", children: [
|
|
4050
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
4051
4051
|
" ",
|
|
4052
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
4053
|
-
/* @__PURE__ */ (0,
|
|
4052
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
4053
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4054
4054
|
"input",
|
|
4055
4055
|
{
|
|
4056
4056
|
type: "text",
|
|
@@ -4070,7 +4070,7 @@ var init_OtpInput = __esm({
|
|
|
4070
4070
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm tracking-[1.25em] text-center"
|
|
4071
4071
|
}
|
|
4072
4072
|
),
|
|
4073
|
-
/* @__PURE__ */ (0,
|
|
4073
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
4074
4074
|
] }) });
|
|
4075
4075
|
};
|
|
4076
4076
|
OtpInput_default = OtpInput;
|
|
@@ -4078,12 +4078,12 @@ var init_OtpInput = __esm({
|
|
|
4078
4078
|
});
|
|
4079
4079
|
|
|
4080
4080
|
// src/components/controls/edit/DateTimeInput.tsx
|
|
4081
|
-
var import_react47,
|
|
4081
|
+
var import_react47, import_jsx_runtime73, DateTimeInput, DateTimeInput_default;
|
|
4082
4082
|
var init_DateTimeInput = __esm({
|
|
4083
4083
|
"src/components/controls/edit/DateTimeInput.tsx"() {
|
|
4084
4084
|
"use strict";
|
|
4085
4085
|
import_react47 = __toESM(require("react"));
|
|
4086
|
-
|
|
4086
|
+
import_jsx_runtime73 = require("react/jsx-runtime");
|
|
4087
4087
|
DateTimeInput = (props) => {
|
|
4088
4088
|
const textChangeHandler = (event) => {
|
|
4089
4089
|
const localDate = new Date(event.target.value);
|
|
@@ -4115,12 +4115,12 @@ var init_DateTimeInput = __esm({
|
|
|
4115
4115
|
e.preventDefault();
|
|
4116
4116
|
}
|
|
4117
4117
|
};
|
|
4118
|
-
return /* @__PURE__ */ (0,
|
|
4119
|
-
/* @__PURE__ */ (0,
|
|
4118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_react47.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("label", { className: "block mb-1", children: [
|
|
4119
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
4120
4120
|
" ",
|
|
4121
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
4122
|
-
/* @__PURE__ */ (0,
|
|
4123
|
-
/* @__PURE__ */ (0,
|
|
4121
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
4122
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
4123
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4124
4124
|
"input",
|
|
4125
4125
|
{
|
|
4126
4126
|
type: "datetime-local",
|
|
@@ -4138,9 +4138,9 @@ var init_DateTimeInput = __esm({
|
|
|
4138
4138
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n "
|
|
4139
4139
|
}
|
|
4140
4140
|
),
|
|
4141
|
-
/* @__PURE__ */ (0,
|
|
4141
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { children: timeZoneAbbr })
|
|
4142
4142
|
] }),
|
|
4143
|
-
/* @__PURE__ */ (0,
|
|
4143
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
4144
4144
|
] }) });
|
|
4145
4145
|
};
|
|
4146
4146
|
DateTimeInput_default = DateTimeInput;
|
|
@@ -4148,12 +4148,12 @@ var init_DateTimeInput = __esm({
|
|
|
4148
4148
|
});
|
|
4149
4149
|
|
|
4150
4150
|
// src/components/controls/edit/ColorInput.tsx
|
|
4151
|
-
var import_react48,
|
|
4151
|
+
var import_react48, import_jsx_runtime74, ColorInput, ColorInput_default;
|
|
4152
4152
|
var init_ColorInput = __esm({
|
|
4153
4153
|
"src/components/controls/edit/ColorInput.tsx"() {
|
|
4154
4154
|
"use strict";
|
|
4155
4155
|
import_react48 = __toESM(require("react"));
|
|
4156
|
-
|
|
4156
|
+
import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4157
4157
|
ColorInput = (props) => {
|
|
4158
4158
|
const [color, setColor] = import_react48.default.useState("#3b82f6");
|
|
4159
4159
|
(0, import_react48.useEffect)(() => {
|
|
@@ -4175,11 +4175,11 @@ var init_ColorInput = __esm({
|
|
|
4175
4175
|
});
|
|
4176
4176
|
}
|
|
4177
4177
|
};
|
|
4178
|
-
return /* @__PURE__ */ (0,
|
|
4179
|
-
/* @__PURE__ */ (0,
|
|
4178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("label", { className: "block mb-1", children: [
|
|
4179
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
4180
4180
|
" ",
|
|
4181
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
4182
|
-
/* @__PURE__ */ (0,
|
|
4181
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
4182
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4183
4183
|
"input",
|
|
4184
4184
|
{
|
|
4185
4185
|
type: "color",
|
|
@@ -4192,7 +4192,7 @@ var init_ColorInput = __esm({
|
|
|
4192
4192
|
className: `w-[78px] h-12 block cursor-pointer`
|
|
4193
4193
|
}
|
|
4194
4194
|
),
|
|
4195
|
-
props?.attributes?.errorMessage && /* @__PURE__ */ (0,
|
|
4195
|
+
props?.attributes?.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "mt-1 bg-error-weak text-sm", children: props.attributes.errorMessage })
|
|
4196
4196
|
] });
|
|
4197
4197
|
};
|
|
4198
4198
|
ColorInput_default = ColorInput;
|
|
@@ -4200,13 +4200,13 @@ var init_ColorInput = __esm({
|
|
|
4200
4200
|
});
|
|
4201
4201
|
|
|
4202
4202
|
// src/components/controls/edit/SelectWithSearchInput.tsx
|
|
4203
|
-
var import_react49,
|
|
4203
|
+
var import_react49, import_jsx_runtime75, SelectWithSearchInput, SelectWithSearchInput_default;
|
|
4204
4204
|
var init_SelectWithSearchInput = __esm({
|
|
4205
4205
|
"src/components/controls/edit/SelectWithSearchInput.tsx"() {
|
|
4206
4206
|
"use strict";
|
|
4207
4207
|
"use client";
|
|
4208
4208
|
import_react49 = __toESM(require("react"));
|
|
4209
|
-
|
|
4209
|
+
import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4210
4210
|
SelectWithSearchInput = (props) => {
|
|
4211
4211
|
const [isOpen, setIsOpen] = (0, import_react49.useState)(false);
|
|
4212
4212
|
const [searchTerm, setSearchTerm] = (0, import_react49.useState)("");
|
|
@@ -4301,14 +4301,14 @@ var init_SelectWithSearchInput = __esm({
|
|
|
4301
4301
|
}
|
|
4302
4302
|
}, [highlightedIndex]);
|
|
4303
4303
|
const isReadOnly = props.attributes?.readOnly || props.disable || props.attributes?.disable;
|
|
4304
|
-
return /* @__PURE__ */ (0,
|
|
4305
|
-
/* @__PURE__ */ (0,
|
|
4304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "relative", children: [
|
|
4305
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("label", { className: "pb-1", children: [
|
|
4306
4306
|
props.attributes?.label,
|
|
4307
4307
|
" ",
|
|
4308
|
-
props?.attributes?.required && /* @__PURE__ */ (0,
|
|
4308
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
4309
4309
|
] }),
|
|
4310
|
-
/* @__PURE__ */ (0,
|
|
4311
|
-
/* @__PURE__ */ (0,
|
|
4310
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "relative", children: [
|
|
4311
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4312
4312
|
"input",
|
|
4313
4313
|
{
|
|
4314
4314
|
type: "text",
|
|
@@ -4330,7 +4330,7 @@ var init_SelectWithSearchInput = __esm({
|
|
|
4330
4330
|
`
|
|
4331
4331
|
}
|
|
4332
4332
|
),
|
|
4333
|
-
/* @__PURE__ */ (0,
|
|
4333
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4334
4334
|
"button",
|
|
4335
4335
|
{
|
|
4336
4336
|
type: "button",
|
|
@@ -4341,7 +4341,7 @@ var init_SelectWithSearchInput = __esm({
|
|
|
4341
4341
|
}
|
|
4342
4342
|
},
|
|
4343
4343
|
className: "absolute right-2 top-3 h-5 w-5 text-gray-500 focus:outline-none",
|
|
4344
|
-
children: /* @__PURE__ */ (0,
|
|
4344
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4345
4345
|
"svg",
|
|
4346
4346
|
{
|
|
4347
4347
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4350,7 +4350,7 @@ var init_SelectWithSearchInput = __esm({
|
|
|
4350
4350
|
strokeWidth: 1.5,
|
|
4351
4351
|
stroke: "currentColor",
|
|
4352
4352
|
className: "w-full h-full",
|
|
4353
|
-
children: /* @__PURE__ */ (0,
|
|
4353
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4354
4354
|
"path",
|
|
4355
4355
|
{
|
|
4356
4356
|
strokeLinecap: "round",
|
|
@@ -4363,12 +4363,12 @@ var init_SelectWithSearchInput = __esm({
|
|
|
4363
4363
|
}
|
|
4364
4364
|
)
|
|
4365
4365
|
] }),
|
|
4366
|
-
!isReadOnly && isOpen && /* @__PURE__ */ (0,
|
|
4366
|
+
!isReadOnly && isOpen && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4367
4367
|
"div",
|
|
4368
4368
|
{
|
|
4369
4369
|
ref: dropdownRef,
|
|
4370
4370
|
className: "absolute z-10 w-full bg-default border border-gray-200 shadow-lg max-h-48 overflow-y-auto",
|
|
4371
|
-
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0,
|
|
4371
|
+
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4372
4372
|
"button",
|
|
4373
4373
|
{
|
|
4374
4374
|
onClick: (e) => handleSelect(e, item),
|
|
@@ -4376,10 +4376,10 @@ var init_SelectWithSearchInput = __esm({
|
|
|
4376
4376
|
role: "option",
|
|
4377
4377
|
tabIndex: -1,
|
|
4378
4378
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
4379
|
-
children: /* @__PURE__ */ (0,
|
|
4379
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("span", { children: item[props.dataTextFieldName] })
|
|
4380
4380
|
},
|
|
4381
4381
|
item[props.dataKeyFieldName]
|
|
4382
|
-
)) : /* @__PURE__ */ (0,
|
|
4382
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
|
|
4383
4383
|
}
|
|
4384
4384
|
)
|
|
4385
4385
|
] });
|
|
@@ -4389,14 +4389,14 @@ var init_SelectWithSearchInput = __esm({
|
|
|
4389
4389
|
});
|
|
4390
4390
|
|
|
4391
4391
|
// src/components/controls/edit/SelectWithSearchPanel.tsx
|
|
4392
|
-
var import_react50,
|
|
4392
|
+
var import_react50, import_jsx_runtime76, SelectWithSearchPanel, SelectWithSearchPanel_default;
|
|
4393
4393
|
var init_SelectWithSearchPanel = __esm({
|
|
4394
4394
|
"src/components/controls/edit/SelectWithSearchPanel.tsx"() {
|
|
4395
4395
|
"use strict";
|
|
4396
4396
|
"use client";
|
|
4397
4397
|
init_Button();
|
|
4398
4398
|
import_react50 = __toESM(require("react"));
|
|
4399
|
-
|
|
4399
|
+
import_jsx_runtime76 = require("react/jsx-runtime");
|
|
4400
4400
|
SelectWithSearchPanel = (props) => {
|
|
4401
4401
|
const [isOpen, setIsOpen] = (0, import_react50.useState)(false);
|
|
4402
4402
|
const [searchTerm, setSearchTerm] = (0, import_react50.useState)("");
|
|
@@ -4532,14 +4532,14 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
4532
4532
|
console.log("Form Data:", formData);
|
|
4533
4533
|
return formData;
|
|
4534
4534
|
}, []);
|
|
4535
|
-
return /* @__PURE__ */ (0,
|
|
4536
|
-
/* @__PURE__ */ (0,
|
|
4535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "relative", children: [
|
|
4536
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("label", { className: "text-sm mb-1 font-medium", children: [
|
|
4537
4537
|
props.attributes?.label,
|
|
4538
4538
|
" ",
|
|
4539
4539
|
" ",
|
|
4540
|
-
props?.attributes?.required && /* @__PURE__ */ (0,
|
|
4540
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
4541
4541
|
] }),
|
|
4542
|
-
/* @__PURE__ */ (0,
|
|
4542
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4543
4543
|
"input",
|
|
4544
4544
|
{
|
|
4545
4545
|
type: "text",
|
|
@@ -4553,14 +4553,14 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
4553
4553
|
disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none`
|
|
4554
4554
|
}
|
|
4555
4555
|
) }),
|
|
4556
|
-
/* @__PURE__ */ (0,
|
|
4557
|
-
/* @__PURE__ */ (0,
|
|
4558
|
-
/* @__PURE__ */ (0,
|
|
4556
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { ref: containerRef, children: isOpen && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_react50.default.Fragment, { children: [
|
|
4557
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "fixed z-50 right-0 bg-white top-[62px] w-1/4 border-l border-gray-200", children: [
|
|
4558
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex flex-col p-2 bg-accent-950 text-white", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("h5", { className: "text-md text-white font-medium", children: [
|
|
4559
4559
|
"Select a",
|
|
4560
4560
|
" ",
|
|
4561
4561
|
props.attributes?.label || props.attributes?.heading
|
|
4562
4562
|
] }) }),
|
|
4563
|
-
/* @__PURE__ */ (0,
|
|
4563
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200 h-10", children: props.createFields && props.createFields.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4564
4564
|
"button",
|
|
4565
4565
|
{
|
|
4566
4566
|
type: "button",
|
|
@@ -4573,12 +4573,12 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
4573
4573
|
}
|
|
4574
4574
|
) })
|
|
4575
4575
|
] }),
|
|
4576
|
-
isCreateOpen && /* @__PURE__ */ (0,
|
|
4577
|
-
/* @__PURE__ */ (0,
|
|
4576
|
+
isCreateOpen && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "fixed right-0 w-1/4 h-full top-[62px] bg-white shadow-lg border-l border-gray-200 z-50", children: [
|
|
4577
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex flex-col p-2 bg-accent-950", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("h5", { className: "text-md font-medium text-white", children: [
|
|
4578
4578
|
"Create New ",
|
|
4579
4579
|
props.attributes?.label
|
|
4580
4580
|
] }) }),
|
|
4581
|
-
/* @__PURE__ */ (0,
|
|
4581
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex justify-end px-4 border-b py-2 border-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4582
4582
|
"button",
|
|
4583
4583
|
{
|
|
4584
4584
|
type: "button",
|
|
@@ -4587,10 +4587,10 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
4587
4587
|
children: "Close"
|
|
4588
4588
|
}
|
|
4589
4589
|
) }),
|
|
4590
|
-
/* @__PURE__ */ (0,
|
|
4591
|
-
props.createFields?.map((field) => /* @__PURE__ */ (0,
|
|
4592
|
-
/* @__PURE__ */ (0,
|
|
4593
|
-
/* @__PURE__ */ (0,
|
|
4590
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "p-4", children: [
|
|
4591
|
+
props.createFields?.map((field) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "mb-4", children: [
|
|
4592
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("label", { className: "text-sm mb-1 font-medium block", children: field.label }),
|
|
4593
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4594
4594
|
"input",
|
|
4595
4595
|
{
|
|
4596
4596
|
type: field.type,
|
|
@@ -4606,7 +4606,7 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
4606
4606
|
}
|
|
4607
4607
|
)
|
|
4608
4608
|
] }, field.name)),
|
|
4609
|
-
/* @__PURE__ */ (0,
|
|
4609
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Button_default, { onClick: async () => {
|
|
4610
4610
|
handleSaveModal();
|
|
4611
4611
|
return { isSuccessful: true };
|
|
4612
4612
|
}, className: "w-full", children: [
|
|
@@ -4615,13 +4615,13 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
4615
4615
|
] })
|
|
4616
4616
|
] })
|
|
4617
4617
|
] }),
|
|
4618
|
-
/* @__PURE__ */ (0,
|
|
4618
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4619
4619
|
"div",
|
|
4620
4620
|
{
|
|
4621
4621
|
ref: listRef,
|
|
4622
4622
|
className: "fixed z-10 right-0 mt-[130px] top-0 w-1/4 bg-white border-l border-gray-200 shadow-lg overflow-y-auto",
|
|
4623
4623
|
style: { height: "calc(100vh - 130px)" },
|
|
4624
|
-
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0,
|
|
4624
|
+
children: filteredItems.length > 0 ? filteredItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4625
4625
|
"button",
|
|
4626
4626
|
{
|
|
4627
4627
|
onClick: (e) => {
|
|
@@ -4631,9 +4631,9 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
4631
4631
|
role: "option",
|
|
4632
4632
|
tabIndex: -1,
|
|
4633
4633
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
4634
|
-
children: /* @__PURE__ */ (0,
|
|
4634
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { children: getNestedValue7(item, props.dataTextFieldName) })
|
|
4635
4635
|
}
|
|
4636
|
-
) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0,
|
|
4636
|
+
) }, item[props.dataKeyFieldName])) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "px-4 py-2 text-gray-500", children: "No results found" })
|
|
4637
4637
|
}
|
|
4638
4638
|
)
|
|
4639
4639
|
] }) })
|
|
@@ -4644,12 +4644,12 @@ var init_SelectWithSearchPanel = __esm({
|
|
|
4644
4644
|
});
|
|
4645
4645
|
|
|
4646
4646
|
// src/components/controls/edit/BooleanSelect.tsx
|
|
4647
|
-
var import_react51,
|
|
4647
|
+
var import_react51, import_jsx_runtime77, BooleanSelect, BooleanSelect_default;
|
|
4648
4648
|
var init_BooleanSelect = __esm({
|
|
4649
4649
|
"src/components/controls/edit/BooleanSelect.tsx"() {
|
|
4650
4650
|
"use strict";
|
|
4651
4651
|
import_react51 = __toESM(require("react"));
|
|
4652
|
-
|
|
4652
|
+
import_jsx_runtime77 = require("react/jsx-runtime");
|
|
4653
4653
|
BooleanSelect = (props) => {
|
|
4654
4654
|
const [list, setList] = (0, import_react51.useState)();
|
|
4655
4655
|
const textChangeHandler = (event) => {
|
|
@@ -4698,11 +4698,11 @@ var init_BooleanSelect = __esm({
|
|
|
4698
4698
|
if (props.value !== void 0 && props.value !== null) {
|
|
4699
4699
|
value = props.value;
|
|
4700
4700
|
}
|
|
4701
|
-
return /* @__PURE__ */ (0,
|
|
4702
|
-
/* @__PURE__ */ (0,
|
|
4701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react51.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("label", { className: "block", children: [
|
|
4702
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "text-sm font-medium ", children: props?.attributes?.label }),
|
|
4703
4703
|
" ",
|
|
4704
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
4705
|
-
/* @__PURE__ */ (0,
|
|
4704
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
4705
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
|
|
4706
4706
|
"select",
|
|
4707
4707
|
{
|
|
4708
4708
|
name: props.name,
|
|
@@ -4714,9 +4714,9 @@ var init_BooleanSelect = __esm({
|
|
|
4714
4714
|
disabled: props?.attributes?.readOnly,
|
|
4715
4715
|
className: "peer mt-1 py-1.5 block w-full text-black rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none\n ",
|
|
4716
4716
|
children: [
|
|
4717
|
-
/* @__PURE__ */ (0,
|
|
4717
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("option", { className: "", value: "", children: props.attributes?.placeholder || "Select" }),
|
|
4718
4718
|
list && list.map((item, i) => {
|
|
4719
|
-
return /* @__PURE__ */ (0,
|
|
4719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4720
4720
|
"option",
|
|
4721
4721
|
{
|
|
4722
4722
|
className: "fac-select-option",
|
|
@@ -4729,7 +4729,7 @@ var init_BooleanSelect = __esm({
|
|
|
4729
4729
|
]
|
|
4730
4730
|
}
|
|
4731
4731
|
),
|
|
4732
|
-
/* @__PURE__ */ (0,
|
|
4732
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
4733
4733
|
] }) });
|
|
4734
4734
|
};
|
|
4735
4735
|
BooleanSelect_default = BooleanSelect;
|
|
@@ -4737,12 +4737,12 @@ var init_BooleanSelect = __esm({
|
|
|
4737
4737
|
});
|
|
4738
4738
|
|
|
4739
4739
|
// src/components/controls/edit/EmailInput.tsx
|
|
4740
|
-
var import_react52,
|
|
4740
|
+
var import_react52, import_jsx_runtime78, EmailInput, EmailInput_default;
|
|
4741
4741
|
var init_EmailInput = __esm({
|
|
4742
4742
|
"src/components/controls/edit/EmailInput.tsx"() {
|
|
4743
4743
|
"use strict";
|
|
4744
4744
|
import_react52 = __toESM(require("react"));
|
|
4745
|
-
|
|
4745
|
+
import_jsx_runtime78 = require("react/jsx-runtime");
|
|
4746
4746
|
EmailInput = (props) => {
|
|
4747
4747
|
const textChangeHandler = (event) => {
|
|
4748
4748
|
const text = event.target.value;
|
|
@@ -4767,11 +4767,11 @@ var init_EmailInput = __esm({
|
|
|
4767
4767
|
if (props.value !== void 0 && props.value !== null) {
|
|
4768
4768
|
value = props.value;
|
|
4769
4769
|
}
|
|
4770
|
-
return /* @__PURE__ */ (0,
|
|
4771
|
-
/* @__PURE__ */ (0,
|
|
4770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_react52.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("label", { className: "block mb-1", children: [
|
|
4771
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "text-sm font-medium text-slate-700", children: props?.attributes?.label }),
|
|
4772
4772
|
" ",
|
|
4773
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
4774
|
-
/* @__PURE__ */ (0,
|
|
4773
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
4774
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
4775
4775
|
"input",
|
|
4776
4776
|
{
|
|
4777
4777
|
type: "email",
|
|
@@ -4787,7 +4787,7 @@ var init_EmailInput = __esm({
|
|
|
4787
4787
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n transition-all duration-500 ease-in-out"
|
|
4788
4788
|
}
|
|
4789
4789
|
),
|
|
4790
|
-
/* @__PURE__ */ (0,
|
|
4790
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 mb-0 bg-error-weak text-sm", children: props?.attributes?.errorMessage ? props.attributes.errorMessage : "" })
|
|
4791
4791
|
] }) });
|
|
4792
4792
|
};
|
|
4793
4793
|
EmailInput_default = EmailInput;
|
|
@@ -4795,13 +4795,13 @@ var init_EmailInput = __esm({
|
|
|
4795
4795
|
});
|
|
4796
4796
|
|
|
4797
4797
|
// src/components/controls/edit/TimeInput.tsx
|
|
4798
|
-
var import_react53,
|
|
4798
|
+
var import_react53, import_jsx_runtime79, TimeInput, TimeInput_default;
|
|
4799
4799
|
var init_TimeInput = __esm({
|
|
4800
4800
|
"src/components/controls/edit/TimeInput.tsx"() {
|
|
4801
4801
|
"use strict";
|
|
4802
4802
|
"use client";
|
|
4803
4803
|
import_react53 = __toESM(require("react"));
|
|
4804
|
-
|
|
4804
|
+
import_jsx_runtime79 = require("react/jsx-runtime");
|
|
4805
4805
|
TimeInput = (props) => {
|
|
4806
4806
|
const timeChangeHandler = (event) => {
|
|
4807
4807
|
const timeValue = event.target.value;
|
|
@@ -4814,11 +4814,11 @@ var init_TimeInput = __esm({
|
|
|
4814
4814
|
});
|
|
4815
4815
|
}
|
|
4816
4816
|
};
|
|
4817
|
-
return /* @__PURE__ */ (0,
|
|
4818
|
-
/* @__PURE__ */ (0,
|
|
4817
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_react53.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("label", { className: "block mb-1", children: [
|
|
4818
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }),
|
|
4819
4819
|
" ",
|
|
4820
|
-
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0,
|
|
4821
|
-
/* @__PURE__ */ (0,
|
|
4820
|
+
props?.attributes?.label && props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
4821
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4822
4822
|
"input",
|
|
4823
4823
|
{
|
|
4824
4824
|
type: "time",
|
|
@@ -4831,7 +4831,7 @@ var init_TimeInput = __esm({
|
|
|
4831
4831
|
className: "peer mt-1 py-1.5 block w-full rounded shadow-sm\n disabled:bg-slate-50 disabled:text-slate-500 disabled:border-slate-200 disabled:shadow-none"
|
|
4832
4832
|
}
|
|
4833
4833
|
) }),
|
|
4834
|
-
/* @__PURE__ */ (0,
|
|
4834
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage ?? "" })
|
|
4835
4835
|
] }) });
|
|
4836
4836
|
};
|
|
4837
4837
|
TimeInput_default = TimeInput;
|
|
@@ -4839,7 +4839,7 @@ var init_TimeInput = __esm({
|
|
|
4839
4839
|
});
|
|
4840
4840
|
|
|
4841
4841
|
// src/components/controls/edit/AssetUpload.tsx
|
|
4842
|
-
var import_react54,
|
|
4842
|
+
var import_react54, import_jsx_runtime80, AssetUpload, AssetUpload_default;
|
|
4843
4843
|
var init_AssetUpload = __esm({
|
|
4844
4844
|
"src/components/controls/edit/AssetUpload.tsx"() {
|
|
4845
4845
|
"use strict";
|
|
@@ -4850,7 +4850,7 @@ var init_AssetUpload = __esm({
|
|
|
4850
4850
|
init_AssetUtility();
|
|
4851
4851
|
init_Hyperlink();
|
|
4852
4852
|
init_Icon();
|
|
4853
|
-
|
|
4853
|
+
import_jsx_runtime80 = require("react/jsx-runtime");
|
|
4854
4854
|
AssetUpload = (props) => {
|
|
4855
4855
|
const isDisabled = props.attributes?.disable ?? false;
|
|
4856
4856
|
let allValues = [];
|
|
@@ -4947,10 +4947,10 @@ var init_AssetUpload = __esm({
|
|
|
4947
4947
|
}
|
|
4948
4948
|
return false;
|
|
4949
4949
|
};
|
|
4950
|
-
return /* @__PURE__ */ (0,
|
|
4951
|
-
/* @__PURE__ */ (0,
|
|
4952
|
-
/* @__PURE__ */ (0,
|
|
4953
|
-
/* @__PURE__ */ (0,
|
|
4950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_react54.default.Fragment, { children: [
|
|
4951
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("label", { className: "block mb-1", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "text-sm font-medium", children: props?.attributes?.label }) }),
|
|
4952
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex gap-6 bg-neutral-100 rounded p-2", children: [
|
|
4953
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4954
4954
|
ClientButton_default,
|
|
4955
4955
|
{
|
|
4956
4956
|
className: assetType === "image" ? "px-2 py-1 rounded bg-body-200 scale-95" : "text-neutral-700",
|
|
@@ -4960,7 +4960,7 @@ var init_AssetUpload = __esm({
|
|
|
4960
4960
|
children: "Image Upload"
|
|
4961
4961
|
}
|
|
4962
4962
|
),
|
|
4963
|
-
/* @__PURE__ */ (0,
|
|
4963
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4964
4964
|
ClientButton_default,
|
|
4965
4965
|
{
|
|
4966
4966
|
className: assetType === "video" ? "bg-body-200 px-2 py-1 rounded-md scale-95" : "text-neutral-700",
|
|
@@ -4971,13 +4971,13 @@ var init_AssetUpload = __esm({
|
|
|
4971
4971
|
}
|
|
4972
4972
|
)
|
|
4973
4973
|
] }),
|
|
4974
|
-
shouldShowDetails() && /* @__PURE__ */ (0,
|
|
4975
|
-
/* @__PURE__ */ (0,
|
|
4976
|
-
/* @__PURE__ */ (0,
|
|
4977
|
-
/* @__PURE__ */ (0,
|
|
4978
|
-
/* @__PURE__ */ (0,
|
|
4979
|
-
/* @__PURE__ */ (0,
|
|
4980
|
-
/* @__PURE__ */ (0,
|
|
4974
|
+
shouldShowDetails() && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "relative mt-4 rounded-md p-4 border-2 border-dotted border-gray-300 bg-gray-50", children: [
|
|
4975
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: "absolute -top-2.5 left-3 bg-primary-600 text-white text-xs px-2 py-0.5 rounded-full", children: getAssetType(allValues[0]) === "video" ? "Video" : "Image" }),
|
|
4976
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "flex flex-col gap-3", children: allValues.map((digitalAsset, index) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex justify-between items-start gap-5", children: [
|
|
4977
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "grid grid-cols-2 gap-x-8 gap-y-3 text-sm w-full", children: [
|
|
4978
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { children: [
|
|
4979
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-gray-500", children: "Title" }),
|
|
4980
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4981
4981
|
"input",
|
|
4982
4982
|
{
|
|
4983
4983
|
type: "text",
|
|
@@ -4989,18 +4989,18 @@ var init_AssetUpload = __esm({
|
|
|
4989
4989
|
}
|
|
4990
4990
|
)
|
|
4991
4991
|
] }),
|
|
4992
|
-
digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0,
|
|
4993
|
-
/* @__PURE__ */ (0,
|
|
4994
|
-
/* @__PURE__ */ (0,
|
|
4992
|
+
digitalAsset.intrinsicWidth && digitalAsset.intrinsicHeight && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { children: [
|
|
4993
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-gray-500", children: "Resolution" }),
|
|
4994
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("p", { className: "font-medium text-gray-900 mt-3", children: [
|
|
4995
4995
|
digitalAsset.intrinsicWidth,
|
|
4996
4996
|
"\xD7",
|
|
4997
4997
|
digitalAsset.intrinsicHeight
|
|
4998
4998
|
] })
|
|
4999
4999
|
] }),
|
|
5000
|
-
(digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0,
|
|
5001
|
-
/* @__PURE__ */ (0,
|
|
5002
|
-
/* @__PURE__ */ (0,
|
|
5003
|
-
getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0,
|
|
5000
|
+
(digitalAsset.assetUrl || digitalAsset.posterUrl) && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { children: [
|
|
5001
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-gray-500", children: "Image / Poster" }),
|
|
5002
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex-shrink-0 flex flex-col gap-3 mt-1", children: [
|
|
5003
|
+
getAssetType(digitalAsset) === "video" && digitalAsset.posterUrl && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5004
5004
|
"img",
|
|
5005
5005
|
{
|
|
5006
5006
|
src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.posterUrl),
|
|
@@ -5008,7 +5008,7 @@ var init_AssetUpload = __esm({
|
|
|
5008
5008
|
className: "w-32 h-auto object-cover rounded border p-1"
|
|
5009
5009
|
}
|
|
5010
5010
|
),
|
|
5011
|
-
getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0,
|
|
5011
|
+
getAssetType(digitalAsset) === "image" && digitalAsset.assetUrl && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5012
5012
|
"img",
|
|
5013
5013
|
{
|
|
5014
5014
|
src: AssetUtility_default.resolveUrl(props.serviceClient?.baseUrl, digitalAsset.assetUrl),
|
|
@@ -5018,9 +5018,9 @@ var init_AssetUpload = __esm({
|
|
|
5018
5018
|
)
|
|
5019
5019
|
] })
|
|
5020
5020
|
] }),
|
|
5021
|
-
digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0,
|
|
5022
|
-
/* @__PURE__ */ (0,
|
|
5023
|
-
/* @__PURE__ */ (0,
|
|
5021
|
+
digitalAsset.assetUrl?.endsWith(".m3u8") && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "col-span-2", children: [
|
|
5022
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "text-gray-500", children: "HLS Link" }),
|
|
5023
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5024
5024
|
Hyperlink,
|
|
5025
5025
|
{
|
|
5026
5026
|
href: digitalAsset.assetUrl,
|
|
@@ -5031,12 +5031,12 @@ var init_AssetUpload = __esm({
|
|
|
5031
5031
|
)
|
|
5032
5032
|
] })
|
|
5033
5033
|
] }),
|
|
5034
|
-
/* @__PURE__ */ (0,
|
|
5034
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5035
5035
|
"span",
|
|
5036
5036
|
{
|
|
5037
5037
|
onClick: () => !isDisabled && deleteFile(index),
|
|
5038
5038
|
className: isDisabled ? "cursor-not-allowed opacity-50" : "cursor-pointer",
|
|
5039
|
-
children: /* @__PURE__ */ (0,
|
|
5039
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Icon_default, { className: "w-4 h-4 text-primary", name: "delete" })
|
|
5040
5040
|
}
|
|
5041
5041
|
)
|
|
5042
5042
|
] }, index)) })
|
|
@@ -5048,12 +5048,12 @@ var init_AssetUpload = __esm({
|
|
|
5048
5048
|
});
|
|
5049
5049
|
|
|
5050
5050
|
// src/components/controls/edit/SwitchInput.tsx
|
|
5051
|
-
var import_react55,
|
|
5051
|
+
var import_react55, import_jsx_runtime81, SwitchInput, SwitchInput_default;
|
|
5052
5052
|
var init_SwitchInput = __esm({
|
|
5053
5053
|
"src/components/controls/edit/SwitchInput.tsx"() {
|
|
5054
5054
|
"use strict";
|
|
5055
5055
|
import_react55 = __toESM(require("react"));
|
|
5056
|
-
|
|
5056
|
+
import_jsx_runtime81 = require("react/jsx-runtime");
|
|
5057
5057
|
SwitchInput = (props) => {
|
|
5058
5058
|
const textChangeHandler = (event) => {
|
|
5059
5059
|
let text = event.target.checked;
|
|
@@ -5070,28 +5070,28 @@ var init_SwitchInput = __esm({
|
|
|
5070
5070
|
if (props.value != void 0 && props.value != null && props.value != "" && (props.value == "true" || props.value.toString() == "true")) {
|
|
5071
5071
|
value = true;
|
|
5072
5072
|
}
|
|
5073
|
-
return /* @__PURE__ */ (0,
|
|
5074
|
-
/* @__PURE__ */ (0,
|
|
5075
|
-
props?.attributes?.label && /* @__PURE__ */ (0,
|
|
5073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_react55.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex items-start justify-between gap-4 py-3", children: [
|
|
5074
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "min-w-0", children: [
|
|
5075
|
+
props?.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
5076
5076
|
"label",
|
|
5077
5077
|
{
|
|
5078
5078
|
htmlFor: props.name,
|
|
5079
5079
|
className: "inline-block text-sm font-semibold text-slate-800",
|
|
5080
5080
|
children: [
|
|
5081
5081
|
props.attributes.label,
|
|
5082
|
-
props?.attributes?.required && /* @__PURE__ */ (0,
|
|
5082
|
+
props?.attributes?.required && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("span", { className: "bg-error-weak", children: "*" })
|
|
5083
5083
|
]
|
|
5084
5084
|
}
|
|
5085
5085
|
),
|
|
5086
|
-
/* @__PURE__ */ (0,
|
|
5086
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props?.attributes?.errorMessage || "" })
|
|
5087
5087
|
] }),
|
|
5088
|
-
/* @__PURE__ */ (0,
|
|
5088
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
5089
5089
|
"label",
|
|
5090
5090
|
{
|
|
5091
5091
|
htmlFor: props.name,
|
|
5092
5092
|
className: "relative inline-flex shrink-0 cursor-pointer items-center peer-disabled:cursor-not-allowed",
|
|
5093
5093
|
children: [
|
|
5094
|
-
/* @__PURE__ */ (0,
|
|
5094
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
5095
5095
|
"input",
|
|
5096
5096
|
{
|
|
5097
5097
|
type: "checkbox",
|
|
@@ -5104,13 +5104,13 @@ var init_SwitchInput = __esm({
|
|
|
5104
5104
|
className: "peer sr-only"
|
|
5105
5105
|
}
|
|
5106
5106
|
),
|
|
5107
|
-
/* @__PURE__ */ (0,
|
|
5107
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
5108
5108
|
"div",
|
|
5109
5109
|
{
|
|
5110
5110
|
className: "h-6 w-11 rounded-full bg-slate-200 shadow-inner\n transition-colors duration-200 ease-in-out\n peer-checked:bg-blue-600\n peer-focus-visible:ring-2 peer-focus-visible:ring-blue-300 peer-focus-visible:ring-offset-2\n peer-disabled:bg-slate-100"
|
|
5111
5111
|
}
|
|
5112
5112
|
),
|
|
5113
|
-
/* @__PURE__ */ (0,
|
|
5113
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
5114
5114
|
"div",
|
|
5115
5115
|
{
|
|
5116
5116
|
className: "absolute left-0.5 top-0.5 h-5 w-5 rounded-full bg-default shadow\n transition-transform duration-200 ease-in-out\n peer-checked:translate-x-5\n peer-disabled:bg-slate-50"
|
|
@@ -5208,13 +5208,13 @@ var init_DateTimeUtility = __esm({
|
|
|
5208
5208
|
});
|
|
5209
5209
|
|
|
5210
5210
|
// src/components/controls/edit/DateInput.tsx
|
|
5211
|
-
var import_react56,
|
|
5211
|
+
var import_react56, import_jsx_runtime82, DateInput, DateInput_default;
|
|
5212
5212
|
var init_DateInput = __esm({
|
|
5213
5213
|
"src/components/controls/edit/DateInput.tsx"() {
|
|
5214
5214
|
"use strict";
|
|
5215
5215
|
import_react56 = require("react");
|
|
5216
5216
|
init_DateTimeUtility();
|
|
5217
|
-
|
|
5217
|
+
import_jsx_runtime82 = require("react/jsx-runtime");
|
|
5218
5218
|
DateInput = (props) => {
|
|
5219
5219
|
const value = (0, import_react56.useMemo)(() => {
|
|
5220
5220
|
if (props.value === void 0 || props.value === null || props.value === "") {
|
|
@@ -5248,11 +5248,11 @@ var init_DateInput = __esm({
|
|
|
5248
5248
|
groupKey: props.groupKey
|
|
5249
5249
|
});
|
|
5250
5250
|
};
|
|
5251
|
-
return /* @__PURE__ */ (0,
|
|
5252
|
-
props.attributes?.label && /* @__PURE__ */ (0,
|
|
5251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("label", { className: "block mb-1", children: [
|
|
5252
|
+
props.attributes?.label && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "text-sm font-medium", children: props.attributes.label }),
|
|
5253
5253
|
" ",
|
|
5254
|
-
props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0,
|
|
5255
|
-
/* @__PURE__ */ (0,
|
|
5254
|
+
props.attributes?.label && props.attributes.required && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "bg-error-weak", children: "*" }),
|
|
5255
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5256
5256
|
"input",
|
|
5257
5257
|
{
|
|
5258
5258
|
type: "date",
|
|
@@ -5266,7 +5266,7 @@ var init_DateInput = __esm({
|
|
|
5266
5266
|
className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
|
|
5267
5267
|
}
|
|
5268
5268
|
),
|
|
5269
|
-
/* @__PURE__ */ (0,
|
|
5269
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
|
|
5270
5270
|
] });
|
|
5271
5271
|
};
|
|
5272
5272
|
DateInput_default = DateInput;
|
|
@@ -5274,13 +5274,13 @@ var init_DateInput = __esm({
|
|
|
5274
5274
|
});
|
|
5275
5275
|
|
|
5276
5276
|
// src/components/controls/edit/RadioInput.tsx
|
|
5277
|
-
var import_react57,
|
|
5277
|
+
var import_react57, import_jsx_runtime83, RadioInput, RadioInput_default;
|
|
5278
5278
|
var init_RadioInput = __esm({
|
|
5279
5279
|
"src/components/controls/edit/RadioInput.tsx"() {
|
|
5280
5280
|
"use strict";
|
|
5281
5281
|
import_react57 = require("react");
|
|
5282
5282
|
init_Icon();
|
|
5283
|
-
|
|
5283
|
+
import_jsx_runtime83 = require("react/jsx-runtime");
|
|
5284
5284
|
RadioInput = (props) => {
|
|
5285
5285
|
const [list, setList] = (0, import_react57.useState)([]);
|
|
5286
5286
|
(0, import_react57.useEffect)(() => {
|
|
@@ -5325,22 +5325,22 @@ var init_RadioInput = __esm({
|
|
|
5325
5325
|
});
|
|
5326
5326
|
}
|
|
5327
5327
|
};
|
|
5328
|
-
return /* @__PURE__ */ (0,
|
|
5329
|
-
/* @__PURE__ */ (0,
|
|
5330
|
-
/* @__PURE__ */ (0,
|
|
5328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "block", children: [
|
|
5329
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
|
|
5330
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex flex-col gap-3", children: list.map((item, index) => {
|
|
5331
5331
|
const itemValue = item[props.dataKeyFieldName];
|
|
5332
5332
|
const isSelected = String(itemValue) === String(props.value ?? "");
|
|
5333
5333
|
const isRecommended = props.dataRecommendedValue !== void 0 && String(itemValue) === String(props.dataRecommendedValue);
|
|
5334
5334
|
const resultClassName = isSelected ? isRecommended ? "bg-success" : props.dataRecommendedValue ? "bg-alert" : "border-transparent" : "border-transparent";
|
|
5335
5335
|
const iconName = isSelected && props.dataRecommendedValue ? isRecommended ? "checkCircle" : "xCircle" : void 0;
|
|
5336
5336
|
const inputId = `${props.name}-${props.index ?? 0}-id-${index}`;
|
|
5337
|
-
return /* @__PURE__ */ (0,
|
|
5337
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
5338
5338
|
"div",
|
|
5339
5339
|
{
|
|
5340
5340
|
className: `font-normal flex items-center justify-between gap-4 cursor-pointer border rounded p-2 ${resultClassName}`,
|
|
5341
5341
|
children: [
|
|
5342
|
-
/* @__PURE__ */ (0,
|
|
5343
|
-
/* @__PURE__ */ (0,
|
|
5342
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex gap-4 items-start", children: [
|
|
5343
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
5344
5344
|
"input",
|
|
5345
5345
|
{
|
|
5346
5346
|
type: "radio",
|
|
@@ -5354,15 +5354,15 @@ var init_RadioInput = __esm({
|
|
|
5354
5354
|
required: props.attributes?.required
|
|
5355
5355
|
}
|
|
5356
5356
|
),
|
|
5357
|
-
/* @__PURE__ */ (0,
|
|
5357
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("label", { className: "text-body-950 pr-2", htmlFor: inputId, children: item[props.dataTextFieldName] })
|
|
5358
5358
|
] }),
|
|
5359
|
-
iconName && /* @__PURE__ */ (0,
|
|
5359
|
+
iconName && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon_default, { className: "w-5 h-5 text-success", name: iconName })
|
|
5360
5360
|
]
|
|
5361
5361
|
},
|
|
5362
5362
|
String(itemValue)
|
|
5363
5363
|
);
|
|
5364
5364
|
}) }),
|
|
5365
|
-
/* @__PURE__ */ (0,
|
|
5365
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
|
|
5366
5366
|
] });
|
|
5367
5367
|
};
|
|
5368
5368
|
RadioInput_default = RadioInput;
|
|
@@ -5370,12 +5370,12 @@ var init_RadioInput = __esm({
|
|
|
5370
5370
|
});
|
|
5371
5371
|
|
|
5372
5372
|
// src/components/controls/edit/Switcher.tsx
|
|
5373
|
-
var import_react58,
|
|
5373
|
+
var import_react58, import_jsx_runtime84, Switcher, Switcher_default;
|
|
5374
5374
|
var init_Switcher = __esm({
|
|
5375
5375
|
"src/components/controls/edit/Switcher.tsx"() {
|
|
5376
5376
|
"use strict";
|
|
5377
5377
|
import_react58 = require("react");
|
|
5378
|
-
|
|
5378
|
+
import_jsx_runtime84 = require("react/jsx-runtime");
|
|
5379
5379
|
Switcher = (props) => {
|
|
5380
5380
|
const [list, setList] = (0, import_react58.useState)([]);
|
|
5381
5381
|
(0, import_react58.useEffect)(() => {
|
|
@@ -5419,9 +5419,9 @@ var init_Switcher = __esm({
|
|
|
5419
5419
|
});
|
|
5420
5420
|
};
|
|
5421
5421
|
const value = props.value === void 0 || props.value === null ? "" : String(props.value);
|
|
5422
|
-
return /* @__PURE__ */ (0,
|
|
5423
|
-
/* @__PURE__ */ (0,
|
|
5424
|
-
list.length === 0 ? /* @__PURE__ */ (0,
|
|
5422
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("label", { className: "block mb-1", children: [
|
|
5423
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "text-sm font-medium", children: props.attributes?.label }),
|
|
5424
|
+
list.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5425
5425
|
"input",
|
|
5426
5426
|
{
|
|
5427
5427
|
type: "text",
|
|
@@ -5434,7 +5434,7 @@ var init_Switcher = __esm({
|
|
|
5434
5434
|
disabled: props.attributes?.readOnly,
|
|
5435
5435
|
className: `peer input mt-1 py-1.5 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`
|
|
5436
5436
|
}
|
|
5437
|
-
) : /* @__PURE__ */ (0,
|
|
5437
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
5438
5438
|
"select",
|
|
5439
5439
|
{
|
|
5440
5440
|
name: props.name,
|
|
@@ -5445,8 +5445,8 @@ var init_Switcher = __esm({
|
|
|
5445
5445
|
disabled: props.attributes?.readOnly,
|
|
5446
5446
|
className: `peer select my-1 py-1 block w-full rounded shadow-sm ${props.inputClasses ?? ""}`,
|
|
5447
5447
|
children: [
|
|
5448
|
-
/* @__PURE__ */ (0,
|
|
5449
|
-
list.map((item) => /* @__PURE__ */ (0,
|
|
5448
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("option", { value: "", children: props.attributes?.placeholder || "Select" }),
|
|
5449
|
+
list.map((item) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5450
5450
|
"option",
|
|
5451
5451
|
{
|
|
5452
5452
|
value: item[props.dataKeyFieldName],
|
|
@@ -5457,7 +5457,7 @@ var init_Switcher = __esm({
|
|
|
5457
5457
|
]
|
|
5458
5458
|
}
|
|
5459
5459
|
),
|
|
5460
|
-
/* @__PURE__ */ (0,
|
|
5460
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "hidden group-[.validated]:peer-invalid:block mt-1 bg-error-weak text-sm", children: props.attributes?.errorMessage ?? "" })
|
|
5461
5461
|
] });
|
|
5462
5462
|
};
|
|
5463
5463
|
Switcher_default = Switcher;
|
|
@@ -5465,14 +5465,14 @@ var init_Switcher = __esm({
|
|
|
5465
5465
|
});
|
|
5466
5466
|
|
|
5467
5467
|
// src/components/controls/edit/ReferenceInput.tsx
|
|
5468
|
-
var
|
|
5468
|
+
var import_jsx_runtime85, ReferenceInput, ReferenceInput_default;
|
|
5469
5469
|
var init_ReferenceInput = __esm({
|
|
5470
5470
|
"src/components/controls/edit/ReferenceInput.tsx"() {
|
|
5471
5471
|
"use strict";
|
|
5472
5472
|
init_SelectWithSearchInput();
|
|
5473
|
-
|
|
5473
|
+
import_jsx_runtime85 = require("react/jsx-runtime");
|
|
5474
5474
|
ReferenceInput = (props) => {
|
|
5475
|
-
return /* @__PURE__ */ (0,
|
|
5475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(SelectWithSearchInput_default, { ...props });
|
|
5476
5476
|
};
|
|
5477
5477
|
ReferenceInput_default = ReferenceInput;
|
|
5478
5478
|
}
|
|
@@ -5483,7 +5483,7 @@ var InputControlClient_exports = {};
|
|
|
5483
5483
|
__export(InputControlClient_exports, {
|
|
5484
5484
|
default: () => InputControlClient_default
|
|
5485
5485
|
});
|
|
5486
|
-
var import_react59,
|
|
5486
|
+
var import_react59, import_jsx_runtime86, InputControl, InputControlClient_default;
|
|
5487
5487
|
var init_InputControlClient = __esm({
|
|
5488
5488
|
"src/components/controls/edit/InputControlClient.tsx"() {
|
|
5489
5489
|
"use strict";
|
|
@@ -5512,7 +5512,7 @@ var init_InputControlClient = __esm({
|
|
|
5512
5512
|
init_RadioInput();
|
|
5513
5513
|
init_Switcher();
|
|
5514
5514
|
init_ReferenceInput();
|
|
5515
|
-
|
|
5515
|
+
import_jsx_runtime86 = require("react/jsx-runtime");
|
|
5516
5516
|
InputControl = import_react59.default.forwardRef(
|
|
5517
5517
|
(props, ref) => {
|
|
5518
5518
|
const ControlComponents = {
|
|
@@ -5541,7 +5541,7 @@ var init_InputControlClient = __esm({
|
|
|
5541
5541
|
[InputControlType_default.referenceInput]: ReferenceInput_default
|
|
5542
5542
|
};
|
|
5543
5543
|
const SelectedControlComponent = ControlComponents[props.controlType];
|
|
5544
|
-
return /* @__PURE__ */ (0,
|
|
5544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react59.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
5545
5545
|
}
|
|
5546
5546
|
);
|
|
5547
5547
|
InputControl.displayName = "InputControl";
|
|
@@ -5567,7 +5567,7 @@ var DataBindingControls_exports = {};
|
|
|
5567
5567
|
__export(DataBindingControls_exports, {
|
|
5568
5568
|
default: () => DataBindingControls_default
|
|
5569
5569
|
});
|
|
5570
|
-
var import_react60, import_navigation,
|
|
5570
|
+
var import_react60, import_navigation, import_jsx_runtime87, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, normalizeSortOption, DUMMY_FACETS, DUMMY_SORT_OPTIONS, DataBindingControls, DataBindingControls_default;
|
|
5571
5571
|
var init_DataBindingControls = __esm({
|
|
5572
5572
|
"src/components/pageRenderingEngine/nodes/DataBindingControls.tsx"() {
|
|
5573
5573
|
"use strict";
|
|
@@ -5576,7 +5576,7 @@ var init_DataBindingControls = __esm({
|
|
|
5576
5576
|
import_navigation = require("next/navigation");
|
|
5577
5577
|
init_InputControl();
|
|
5578
5578
|
init_InputControlType();
|
|
5579
|
-
|
|
5579
|
+
import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5580
5580
|
humanize = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
|
|
5581
5581
|
escapeODataString = (value) => value.replace(/'/g, "''");
|
|
5582
5582
|
parseFacetSelections = (filter) => {
|
|
@@ -5725,8 +5725,8 @@ var init_DataBindingControls = __esm({
|
|
|
5725
5725
|
if (!shouldShowToolbar && !shouldShowFacets) {
|
|
5726
5726
|
return null;
|
|
5727
5727
|
}
|
|
5728
|
-
const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0,
|
|
5729
|
-
/* @__PURE__ */ (0,
|
|
5728
|
+
const renderFacetLinks = (field, values, stacked = false) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: stacked ? "flex flex-col gap-1" : "flex flex-wrap gap-2", children: [
|
|
5729
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5730
5730
|
"button",
|
|
5731
5731
|
{
|
|
5732
5732
|
type: "button",
|
|
@@ -5738,7 +5738,7 @@ var init_DataBindingControls = __esm({
|
|
|
5738
5738
|
),
|
|
5739
5739
|
values.map((facet) => {
|
|
5740
5740
|
const isSelected = selectedFacetValues.get(field) === facet.value;
|
|
5741
|
-
return /* @__PURE__ */ (0,
|
|
5741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
5742
5742
|
"button",
|
|
5743
5743
|
{
|
|
5744
5744
|
type: "button",
|
|
@@ -5756,9 +5756,9 @@ var init_DataBindingControls = __esm({
|
|
|
5756
5756
|
);
|
|
5757
5757
|
})
|
|
5758
5758
|
] });
|
|
5759
|
-
return /* @__PURE__ */ (0,
|
|
5760
|
-
shouldShowToolbar && /* @__PURE__ */ (0,
|
|
5761
|
-
showSearchBar && /* @__PURE__ */ (0,
|
|
5759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: mode === "toolbar" ? "mb-6" : "flex flex-col gap-2", children: [
|
|
5760
|
+
shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col gap-3 md:flex-row md:items-center md:justify-between", children: [
|
|
5761
|
+
showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "w-full max-w-xl", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5762
5762
|
InputControl_default,
|
|
5763
5763
|
{
|
|
5764
5764
|
name: "searchText",
|
|
@@ -5769,9 +5769,9 @@ var init_DataBindingControls = __esm({
|
|
|
5769
5769
|
inputClasses: "!mt-0"
|
|
5770
5770
|
}
|
|
5771
5771
|
) }),
|
|
5772
|
-
hasSortControls && /* @__PURE__ */ (0,
|
|
5773
|
-
/* @__PURE__ */ (0,
|
|
5774
|
-
/* @__PURE__ */ (0,
|
|
5772
|
+
hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
|
|
5773
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "font-medium", children: "Sort by" }),
|
|
5774
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5775
5775
|
InputControl_default,
|
|
5776
5776
|
{
|
|
5777
5777
|
name: "sortOptions",
|
|
@@ -5792,10 +5792,10 @@ var init_DataBindingControls = __esm({
|
|
|
5792
5792
|
)
|
|
5793
5793
|
] })
|
|
5794
5794
|
] }),
|
|
5795
|
-
shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0,
|
|
5796
|
-
shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0,
|
|
5797
|
-
/* @__PURE__ */ (0,
|
|
5798
|
-
/* @__PURE__ */ (0,
|
|
5795
|
+
shouldShowFacets && facetGroups.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("nav", { "aria-label": `${humanize(facetGroups[0][0])} filters`, children: renderFacetLinks(facetGroups[0][0], facetGroups[0][1]) }),
|
|
5796
|
+
shouldShowFacets && facetGroups.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "flex flex-col gap-2", children: facetGroups.map(([field, values]) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("details", { className: "border-b", open: true, children: [
|
|
5797
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("summary", { className: "cursor-pointer font-semibold", children: humanize(field) }),
|
|
5798
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "p-2", children: renderFacetLinks(field, values, true) })
|
|
5799
5799
|
] }, field)) })
|
|
5800
5800
|
] });
|
|
5801
5801
|
};
|
|
@@ -5808,13 +5808,13 @@ var Slider_exports = {};
|
|
|
5808
5808
|
__export(Slider_exports, {
|
|
5809
5809
|
default: () => Slider_default
|
|
5810
5810
|
});
|
|
5811
|
-
var import_react61,
|
|
5811
|
+
var import_react61, import_jsx_runtime88, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
5812
5812
|
var init_Slider = __esm({
|
|
5813
5813
|
"src/components/Slider.tsx"() {
|
|
5814
5814
|
"use strict";
|
|
5815
5815
|
"use client";
|
|
5816
5816
|
import_react61 = __toESM(require("react"));
|
|
5817
|
-
|
|
5817
|
+
import_jsx_runtime88 = require("react/jsx-runtime");
|
|
5818
5818
|
Slider = ({
|
|
5819
5819
|
children,
|
|
5820
5820
|
slidesToShow = 4,
|
|
@@ -5911,7 +5911,7 @@ var init_Slider = __esm({
|
|
|
5911
5911
|
if (!import_react61.default.isValidElement(child)) return null;
|
|
5912
5912
|
const childProps = child.props;
|
|
5913
5913
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
5914
|
-
return /* @__PURE__ */ (0,
|
|
5914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5915
5915
|
"div",
|
|
5916
5916
|
{
|
|
5917
5917
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
@@ -5934,14 +5934,14 @@ var init_Slider = __esm({
|
|
|
5934
5934
|
return "bottom-4";
|
|
5935
5935
|
}
|
|
5936
5936
|
};
|
|
5937
|
-
return /* @__PURE__ */ (0,
|
|
5937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
5938
5938
|
"div",
|
|
5939
5939
|
{
|
|
5940
5940
|
className: `relative w-full overflow-hidden ${className}`,
|
|
5941
5941
|
onMouseEnter: handleMouseEnter,
|
|
5942
5942
|
onMouseLeave: handleMouseLeave,
|
|
5943
5943
|
children: [
|
|
5944
|
-
/* @__PURE__ */ (0,
|
|
5944
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5945
5945
|
"div",
|
|
5946
5946
|
{
|
|
5947
5947
|
className: "flex h-full",
|
|
@@ -5952,18 +5952,18 @@ var init_Slider = __esm({
|
|
|
5952
5952
|
children: slides
|
|
5953
5953
|
}
|
|
5954
5954
|
),
|
|
5955
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
5956
|
-
/* @__PURE__ */ (0,
|
|
5955
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
|
|
5956
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5957
5957
|
ArrowButton,
|
|
5958
5958
|
{
|
|
5959
5959
|
direction: "left",
|
|
5960
5960
|
onClick: prevSlide,
|
|
5961
5961
|
visible: infinite_scroll || currentSlide > 0,
|
|
5962
5962
|
className: arrowClassName,
|
|
5963
|
-
children: /* @__PURE__ */ (0,
|
|
5963
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime88.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_runtime88.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
|
|
5964
5964
|
}
|
|
5965
5965
|
),
|
|
5966
|
-
/* @__PURE__ */ (0,
|
|
5966
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
5967
5967
|
ArrowButton,
|
|
5968
5968
|
{
|
|
5969
5969
|
direction: "right",
|
|
@@ -5971,13 +5971,13 @@ var init_Slider = __esm({
|
|
|
5971
5971
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
5972
5972
|
className: arrowClassName,
|
|
5973
5973
|
children: [
|
|
5974
|
-
/* @__PURE__ */ (0,
|
|
5974
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.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_runtime88.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) }),
|
|
5975
5975
|
" "
|
|
5976
5976
|
]
|
|
5977
5977
|
}
|
|
5978
5978
|
)
|
|
5979
5979
|
] }),
|
|
5980
|
-
show_dots && /* @__PURE__ */ (0,
|
|
5980
|
+
show_dots && /* @__PURE__ */ (0, import_jsx_runtime88.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_runtime88.jsx)(
|
|
5981
5981
|
ProgressPill,
|
|
5982
5982
|
{
|
|
5983
5983
|
active: index === currentSlide,
|
|
@@ -6003,7 +6003,7 @@ var init_Slider = __esm({
|
|
|
6003
6003
|
visible,
|
|
6004
6004
|
children,
|
|
6005
6005
|
className = ""
|
|
6006
|
-
}) => /* @__PURE__ */ (0,
|
|
6006
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
6007
6007
|
"button",
|
|
6008
6008
|
{
|
|
6009
6009
|
className: `
|
|
@@ -6090,7 +6090,7 @@ var init_Slider = __esm({
|
|
|
6090
6090
|
const renderProgressBar = () => {
|
|
6091
6091
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
6092
6092
|
const displayProgress = style === "cumulative" && isFilled ? 100 : progress;
|
|
6093
|
-
return /* @__PURE__ */ (0,
|
|
6093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
6094
6094
|
"div",
|
|
6095
6095
|
{
|
|
6096
6096
|
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`,
|
|
@@ -6102,7 +6102,7 @@ var init_Slider = __esm({
|
|
|
6102
6102
|
};
|
|
6103
6103
|
const renderCumulativeFill = () => {
|
|
6104
6104
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
6105
|
-
return /* @__PURE__ */ (0,
|
|
6105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
6106
6106
|
"div",
|
|
6107
6107
|
{
|
|
6108
6108
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -6112,7 +6112,7 @@ var init_Slider = __esm({
|
|
|
6112
6112
|
}
|
|
6113
6113
|
return null;
|
|
6114
6114
|
};
|
|
6115
|
-
return /* @__PURE__ */ (0,
|
|
6115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
6116
6116
|
"button",
|
|
6117
6117
|
{
|
|
6118
6118
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -6616,7 +6616,8 @@ var ViewControlTypes = {
|
|
|
6616
6616
|
aiGeneratedSummary: "aiGeneratedSummary",
|
|
6617
6617
|
booleanView: "booleanView",
|
|
6618
6618
|
text: "text",
|
|
6619
|
-
commentRenderer: "commentRenderer"
|
|
6619
|
+
commentRenderer: "commentRenderer",
|
|
6620
|
+
avatar: "avatar"
|
|
6620
6621
|
};
|
|
6621
6622
|
var ViewControlTypes_default = ViewControlTypes;
|
|
6622
6623
|
|
|
@@ -6877,8 +6878,82 @@ var CommentRenderer = (0, import_dynamic7.default)(() => Promise.resolve().then(
|
|
|
6877
6878
|
});
|
|
6878
6879
|
var Commentrenderer_default = CommentRenderer;
|
|
6879
6880
|
|
|
6880
|
-
// src/components/controls/view/
|
|
6881
|
+
// src/components/controls/view/AvatarView.tsx
|
|
6881
6882
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
6883
|
+
var AVATAR_COLORS = [
|
|
6884
|
+
"#1abc9c",
|
|
6885
|
+
"#2ecc71",
|
|
6886
|
+
"#3498db",
|
|
6887
|
+
"#9b59b6",
|
|
6888
|
+
"#e67e22",
|
|
6889
|
+
"#e74c3c",
|
|
6890
|
+
"#16a085",
|
|
6891
|
+
"#27ae60",
|
|
6892
|
+
"#2980b9",
|
|
6893
|
+
"#8e44ad",
|
|
6894
|
+
"#f39c12",
|
|
6895
|
+
"#d35400",
|
|
6896
|
+
"#c0392b",
|
|
6897
|
+
"#7f8c8d",
|
|
6898
|
+
"#2c3e50"
|
|
6899
|
+
];
|
|
6900
|
+
var hashString = (text) => {
|
|
6901
|
+
let hash = 0;
|
|
6902
|
+
for (let i = 0; i < text.length; i += 1) {
|
|
6903
|
+
hash = (hash << 5) - hash + text.charCodeAt(i);
|
|
6904
|
+
hash |= 0;
|
|
6905
|
+
}
|
|
6906
|
+
return Math.abs(hash);
|
|
6907
|
+
};
|
|
6908
|
+
var getInitials = (text) => {
|
|
6909
|
+
const words = text.trim().split(/\s+/).filter(Boolean);
|
|
6910
|
+
if (words.length === 0) {
|
|
6911
|
+
return "";
|
|
6912
|
+
}
|
|
6913
|
+
if (words.length === 1) {
|
|
6914
|
+
return words[0].slice(0, 2).toUpperCase();
|
|
6915
|
+
}
|
|
6916
|
+
return (words[0][0] + words[words.length - 1][0]).toUpperCase();
|
|
6917
|
+
};
|
|
6918
|
+
var AvatarView = (props) => {
|
|
6919
|
+
const text = props.value === null || props.value === void 0 ? "" : String(props.value).trim();
|
|
6920
|
+
if (!text) {
|
|
6921
|
+
return null;
|
|
6922
|
+
}
|
|
6923
|
+
const initials = getInitials(text);
|
|
6924
|
+
const backgroundColor = AVATAR_COLORS[hashString(text) % AVATAR_COLORS.length];
|
|
6925
|
+
const size = props.width ?? "2rem";
|
|
6926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6927
|
+
"span",
|
|
6928
|
+
{
|
|
6929
|
+
className: "avatar-view",
|
|
6930
|
+
title: text,
|
|
6931
|
+
"aria-label": text,
|
|
6932
|
+
style: {
|
|
6933
|
+
display: "inline-flex",
|
|
6934
|
+
alignItems: "center",
|
|
6935
|
+
justifyContent: "center",
|
|
6936
|
+
width: size,
|
|
6937
|
+
height: size,
|
|
6938
|
+
borderRadius: "9999px",
|
|
6939
|
+
backgroundColor,
|
|
6940
|
+
color: "#fff",
|
|
6941
|
+
fontWeight: 600,
|
|
6942
|
+
fontSize: "0.75em",
|
|
6943
|
+
lineHeight: 1,
|
|
6944
|
+
textTransform: "uppercase",
|
|
6945
|
+
userSelect: "none",
|
|
6946
|
+
flexShrink: 0,
|
|
6947
|
+
overflow: "hidden"
|
|
6948
|
+
},
|
|
6949
|
+
children: initials
|
|
6950
|
+
}
|
|
6951
|
+
);
|
|
6952
|
+
};
|
|
6953
|
+
var AvatarView_default = AvatarView;
|
|
6954
|
+
|
|
6955
|
+
// src/components/controls/view/ViewControl.tsx
|
|
6956
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
6882
6957
|
var ViewControl = (props) => {
|
|
6883
6958
|
const ControlComponents = {
|
|
6884
6959
|
[ViewControlTypes_default.lineText]: LineTextView_default,
|
|
@@ -6906,15 +6981,16 @@ var ViewControl = (props) => {
|
|
|
6906
6981
|
[ViewControlTypes_default.aiGeneratedSummary]: AiGeneratedSummary_default,
|
|
6907
6982
|
[ViewControlTypes_default.booleanView]: BooleanView_default,
|
|
6908
6983
|
[ViewControlTypes_default.text]: LineTextView_default,
|
|
6909
|
-
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default
|
|
6984
|
+
[ViewControlTypes_default.commentRenderer]: Commentrenderer_default,
|
|
6985
|
+
[ViewControlTypes_default.avatar]: AvatarView_default
|
|
6910
6986
|
};
|
|
6911
6987
|
const SelectedControlComponent = props.controlType ? ControlComponents[props.controlType] : void 0;
|
|
6912
|
-
return /* @__PURE__ */ (0,
|
|
6988
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_react26.default.Fragment, { children: SelectedControlComponent ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SelectedControlComponent, { ...props }) : "Control not found:" + props.controlType });
|
|
6913
6989
|
};
|
|
6914
6990
|
var ViewControl_default = ViewControl;
|
|
6915
6991
|
|
|
6916
6992
|
// src/components/pageRenderingEngine/nodes/DatafieldNode.tsx
|
|
6917
|
-
var
|
|
6993
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
6918
6994
|
function getNestedProperty(obj, path) {
|
|
6919
6995
|
if (!obj || !path) return null;
|
|
6920
6996
|
if (path.includes(".")) {
|
|
@@ -6927,7 +7003,7 @@ function getNestedProperty(obj, path) {
|
|
|
6927
7003
|
}
|
|
6928
7004
|
const value = obj[path];
|
|
6929
7005
|
if (Array.isArray(value)) {
|
|
6930
|
-
return value.map((item, index) => /* @__PURE__ */ (0,
|
|
7006
|
+
return value.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: String(item) }, index));
|
|
6931
7007
|
}
|
|
6932
7008
|
return value;
|
|
6933
7009
|
}
|
|
@@ -6990,7 +7066,7 @@ var DatafieldNode = (props) => {
|
|
|
6990
7066
|
const dataType = props.node.dataType;
|
|
6991
7067
|
if (isEmptyValue) return null;
|
|
6992
7068
|
if (dataType === "rawContent") {
|
|
6993
|
-
return /* @__PURE__ */ (0,
|
|
7069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6994
7070
|
PageBodyRenderer_default,
|
|
6995
7071
|
{
|
|
6996
7072
|
rawBody: String(value ?? `@databound[${fieldName}]`),
|
|
@@ -7006,13 +7082,13 @@ var DatafieldNode = (props) => {
|
|
|
7006
7082
|
}
|
|
7007
7083
|
);
|
|
7008
7084
|
}
|
|
7009
|
-
return /* @__PURE__ */ (0,
|
|
7085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
7010
7086
|
"span",
|
|
7011
7087
|
{
|
|
7012
7088
|
className: `datafield-node ${props.node.format < Formats.length ? Formats[props.node.format] : ""}`,
|
|
7013
7089
|
style: styles,
|
|
7014
7090
|
title,
|
|
7015
|
-
children: /* @__PURE__ */ (0,
|
|
7091
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
7016
7092
|
ViewControl_default,
|
|
7017
7093
|
{
|
|
7018
7094
|
controlType: dataType,
|
|
@@ -7027,7 +7103,7 @@ var DatafieldNode = (props) => {
|
|
|
7027
7103
|
var DatafieldNode_default = DatafieldNode;
|
|
7028
7104
|
|
|
7029
7105
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
7030
|
-
var
|
|
7106
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
7031
7107
|
var ParagraphNode = (props) => {
|
|
7032
7108
|
const NodeTypes2 = {
|
|
7033
7109
|
["text"]: TextNode_default,
|
|
@@ -7047,9 +7123,9 @@ var ParagraphNode = (props) => {
|
|
|
7047
7123
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
7048
7124
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
7049
7125
|
if (isInlineOnlyParent) {
|
|
7050
|
-
return /* @__PURE__ */ (0,
|
|
7126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_jsx_runtime42.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
|
|
7051
7127
|
const SelectedNode = NodeTypes2[node.type];
|
|
7052
|
-
return /* @__PURE__ */ (0,
|
|
7128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react27.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
7053
7129
|
SelectedNode,
|
|
7054
7130
|
{
|
|
7055
7131
|
node,
|
|
@@ -7062,10 +7138,10 @@ var ParagraphNode = (props) => {
|
|
|
7062
7138
|
) }, index);
|
|
7063
7139
|
}) });
|
|
7064
7140
|
}
|
|
7065
|
-
return /* @__PURE__ */ (0,
|
|
7141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: " " + formatClasses, children: [
|
|
7066
7142
|
hasChildren && props.node.children.map((node, index) => {
|
|
7067
7143
|
const SelectedNode = NodeTypes2[node.type];
|
|
7068
|
-
return /* @__PURE__ */ (0,
|
|
7144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react27.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
7069
7145
|
SelectedNode,
|
|
7070
7146
|
{
|
|
7071
7147
|
node,
|
|
@@ -7077,14 +7153,14 @@ var ParagraphNode = (props) => {
|
|
|
7077
7153
|
}
|
|
7078
7154
|
) }, index);
|
|
7079
7155
|
}),
|
|
7080
|
-
!hasChildren && /* @__PURE__ */ (0,
|
|
7156
|
+
!hasChildren && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "py-1.5 lg:py-2" })
|
|
7081
7157
|
] });
|
|
7082
7158
|
};
|
|
7083
7159
|
var ParagraphNode_default = ParagraphNode;
|
|
7084
7160
|
|
|
7085
7161
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
7086
7162
|
var import_react28 = __toESM(require("react"));
|
|
7087
|
-
var
|
|
7163
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
7088
7164
|
var HeadingNode = (props) => {
|
|
7089
7165
|
const NodeTypes2 = {
|
|
7090
7166
|
["text"]: TextNode_default,
|
|
@@ -7100,12 +7176,12 @@ var HeadingNode = (props) => {
|
|
|
7100
7176
|
{
|
|
7101
7177
|
}
|
|
7102
7178
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
7103
|
-
return /* @__PURE__ */ (0,
|
|
7179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_jsx_runtime43.Fragment, { children: import_react28.default.createElement(
|
|
7104
7180
|
HeadingTag,
|
|
7105
7181
|
{ className: formatClasses },
|
|
7106
7182
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
7107
7183
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
7108
|
-
return /* @__PURE__ */ (0,
|
|
7184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react28.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
7109
7185
|
})
|
|
7110
7186
|
) });
|
|
7111
7187
|
};
|
|
@@ -7116,7 +7192,7 @@ var import_react30 = __toESM(require("react"));
|
|
|
7116
7192
|
|
|
7117
7193
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
7118
7194
|
var import_react29 = __toESM(require("react"));
|
|
7119
|
-
var
|
|
7195
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
7120
7196
|
var ListItemNode = (props) => {
|
|
7121
7197
|
const NodeTypes2 = {
|
|
7122
7198
|
text: TextNode_default,
|
|
@@ -7133,37 +7209,37 @@ var ListItemNode = (props) => {
|
|
|
7133
7209
|
liStyle.fontSize = match[1].trim();
|
|
7134
7210
|
}
|
|
7135
7211
|
}
|
|
7136
|
-
return /* @__PURE__ */ (0,
|
|
7212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
7137
7213
|
const SelectedNode = NodeTypes2[node.type];
|
|
7138
7214
|
if (node.type === "linebreak") {
|
|
7139
7215
|
if (!foundFirstBreak) {
|
|
7140
7216
|
foundFirstBreak = true;
|
|
7141
|
-
return /* @__PURE__ */ (0,
|
|
7217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", {}, index);
|
|
7142
7218
|
} else {
|
|
7143
|
-
return /* @__PURE__ */ (0,
|
|
7219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "py-1 lg:py-2" }, index);
|
|
7144
7220
|
}
|
|
7145
7221
|
} else {
|
|
7146
7222
|
foundFirstBreak = false;
|
|
7147
|
-
return /* @__PURE__ */ (0,
|
|
7223
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react29.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
7148
7224
|
}
|
|
7149
7225
|
}) });
|
|
7150
7226
|
};
|
|
7151
7227
|
var ListItemNode_default = ListItemNode;
|
|
7152
7228
|
|
|
7153
7229
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
7154
|
-
var
|
|
7230
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
7155
7231
|
var ListNode = (props) => {
|
|
7156
7232
|
const NodeTypes2 = {
|
|
7157
7233
|
listitem: ListItemNode_default
|
|
7158
7234
|
};
|
|
7159
|
-
return /* @__PURE__ */ (0,
|
|
7160
|
-
props.node.listType == "bullet" && /* @__PURE__ */ (0,
|
|
7235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_react30.default.Fragment, { children: [
|
|
7236
|
+
props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
7161
7237
|
const SelectedNode = NodeTypes2[node.type];
|
|
7162
|
-
return /* @__PURE__ */ (0,
|
|
7238
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react30.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
7163
7239
|
}) }),
|
|
7164
|
-
props.node.listType == "number" && /* @__PURE__ */ (0,
|
|
7240
|
+
props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
7165
7241
|
const SelectedNode = NodeTypes2[node.type];
|
|
7166
|
-
return /* @__PURE__ */ (0,
|
|
7242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react30.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
7167
7243
|
}) })
|
|
7168
7244
|
] });
|
|
7169
7245
|
};
|
|
@@ -7171,16 +7247,16 @@ var ListNode_default = ListNode;
|
|
|
7171
7247
|
|
|
7172
7248
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
7173
7249
|
var import_react31 = __toESM(require("react"));
|
|
7174
|
-
var
|
|
7250
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
7175
7251
|
var QuoteNode = (props) => {
|
|
7176
7252
|
const NodeTypes2 = {
|
|
7177
7253
|
["text"]: TextNode_default,
|
|
7178
7254
|
["linebreak"]: LineBreakNode_default,
|
|
7179
7255
|
["link"]: LinkNode_default
|
|
7180
7256
|
};
|
|
7181
|
-
return /* @__PURE__ */ (0,
|
|
7257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
7182
7258
|
const SelectedNode = NodeTypes2[node.type];
|
|
7183
|
-
return /* @__PURE__ */ (0,
|
|
7259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react31.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
7184
7260
|
}) });
|
|
7185
7261
|
};
|
|
7186
7262
|
var QuoteNode_default = QuoteNode;
|
|
@@ -7188,11 +7264,11 @@ var QuoteNode_default = QuoteNode;
|
|
|
7188
7264
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
7189
7265
|
var import_react33 = __toESM(require("react"));
|
|
7190
7266
|
var import_dynamic8 = __toESM(require("next/dynamic"));
|
|
7191
|
-
var
|
|
7267
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
7192
7268
|
var CopyButton2 = (0, import_dynamic8.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
|
|
7193
7269
|
ssr: false,
|
|
7194
7270
|
// optional: fallback UI while loading
|
|
7195
|
-
loading: () => /* @__PURE__ */ (0,
|
|
7271
|
+
loading: () => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
7196
7272
|
});
|
|
7197
7273
|
var CodeNode = (props) => {
|
|
7198
7274
|
const NodeTypes2 = {
|
|
@@ -7206,14 +7282,14 @@ var CodeNode = (props) => {
|
|
|
7206
7282
|
if (node.type === "link") return node.text || node.url || "";
|
|
7207
7283
|
return "";
|
|
7208
7284
|
}).join("") ?? "";
|
|
7209
|
-
return /* @__PURE__ */ (0,
|
|
7210
|
-
/* @__PURE__ */ (0,
|
|
7211
|
-
/* @__PURE__ */ (0,
|
|
7212
|
-
/* @__PURE__ */ (0,
|
|
7285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { children: [
|
|
7286
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
7287
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { children: "Code Snippet" }),
|
|
7288
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(CopyButton2, { text: textContent })
|
|
7213
7289
|
] }),
|
|
7214
|
-
/* @__PURE__ */ (0,
|
|
7290
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.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) => {
|
|
7215
7291
|
const SelectedNode = NodeTypes2[node.type];
|
|
7216
|
-
return /* @__PURE__ */ (0,
|
|
7292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react33.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
7217
7293
|
SelectedNode,
|
|
7218
7294
|
{
|
|
7219
7295
|
node,
|
|
@@ -7228,15 +7304,15 @@ var CodeNode = (props) => {
|
|
|
7228
7304
|
var CodeNode_default = CodeNode;
|
|
7229
7305
|
|
|
7230
7306
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
7231
|
-
var
|
|
7307
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
7232
7308
|
var HorizontalRuleNode = () => {
|
|
7233
|
-
return /* @__PURE__ */ (0,
|
|
7309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("hr", {});
|
|
7234
7310
|
};
|
|
7235
7311
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
7236
7312
|
|
|
7237
7313
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
7238
7314
|
var import_react34 = __toESM(require("react"));
|
|
7239
|
-
var
|
|
7315
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
7240
7316
|
var WidgetNode = (props) => {
|
|
7241
7317
|
const getWidgetParameters = () => {
|
|
7242
7318
|
const widgetInputParameters = {
|
|
@@ -7300,7 +7376,7 @@ var WidgetNode = (props) => {
|
|
|
7300
7376
|
};
|
|
7301
7377
|
const widgetCode = props.node?.widgetCode;
|
|
7302
7378
|
if (!widgetCode) {
|
|
7303
|
-
return /* @__PURE__ */ (0,
|
|
7379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, { children: "Invalid widget" });
|
|
7304
7380
|
}
|
|
7305
7381
|
const widgetParams = getWidgetParameters();
|
|
7306
7382
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -7309,7 +7385,7 @@ var WidgetNode = (props) => {
|
|
|
7309
7385
|
}
|
|
7310
7386
|
return (
|
|
7311
7387
|
// eslint-disable-next-line react-hooks/static-components
|
|
7312
|
-
/* @__PURE__ */ (0,
|
|
7388
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react34.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7313
7389
|
WidgetRenderer,
|
|
7314
7390
|
{
|
|
7315
7391
|
params: widgetParams,
|
|
@@ -7331,7 +7407,7 @@ var import_react62 = __toESM(require("react"));
|
|
|
7331
7407
|
|
|
7332
7408
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
7333
7409
|
var import_dynamic9 = __toESM(require("next/dynamic"));
|
|
7334
|
-
var
|
|
7410
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
7335
7411
|
var IframeClient2 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
7336
7412
|
ssr: false
|
|
7337
7413
|
});
|
|
@@ -7344,7 +7420,7 @@ var EmbedNode = (props) => {
|
|
|
7344
7420
|
} else {
|
|
7345
7421
|
src = props.node.embedSrc;
|
|
7346
7422
|
}
|
|
7347
|
-
return /* @__PURE__ */ (0,
|
|
7423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(IframeClient2, { src }) });
|
|
7348
7424
|
};
|
|
7349
7425
|
var EmbedNode_default = EmbedNode;
|
|
7350
7426
|
|
|
@@ -7544,10 +7620,10 @@ var PathUtility = class {
|
|
|
7544
7620
|
var PathUtility_default = new PathUtility();
|
|
7545
7621
|
|
|
7546
7622
|
// src/components/NoDataFound.tsx
|
|
7547
|
-
var
|
|
7623
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
7548
7624
|
var NoDataFound = () => {
|
|
7549
|
-
return /* @__PURE__ */ (0,
|
|
7550
|
-
/* @__PURE__ */ (0,
|
|
7625
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
7626
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7551
7627
|
"svg",
|
|
7552
7628
|
{
|
|
7553
7629
|
className: "w-10 h-10",
|
|
@@ -7555,7 +7631,7 @@ var NoDataFound = () => {
|
|
|
7555
7631
|
stroke: "currentColor",
|
|
7556
7632
|
viewBox: "0 0 24 24",
|
|
7557
7633
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7558
|
-
children: /* @__PURE__ */ (0,
|
|
7634
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7559
7635
|
"path",
|
|
7560
7636
|
{
|
|
7561
7637
|
strokeLinecap: "round",
|
|
@@ -7566,8 +7642,8 @@ var NoDataFound = () => {
|
|
|
7566
7642
|
)
|
|
7567
7643
|
}
|
|
7568
7644
|
) }) }),
|
|
7569
|
-
/* @__PURE__ */ (0,
|
|
7570
|
-
/* @__PURE__ */ (0,
|
|
7645
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
7646
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
7571
7647
|
] });
|
|
7572
7648
|
};
|
|
7573
7649
|
var NoDataFound_default = NoDataFound;
|
|
@@ -7575,7 +7651,7 @@ var NoDataFound_default = NoDataFound;
|
|
|
7575
7651
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
7576
7652
|
init_AssetUtility();
|
|
7577
7653
|
var import_dynamic10 = __toESM(require("next/dynamic"));
|
|
7578
|
-
var
|
|
7654
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
7579
7655
|
var HlsPlayer4 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
7580
7656
|
var deviceToMediaQuery = (device) => {
|
|
7581
7657
|
switch (device) {
|
|
@@ -7731,8 +7807,8 @@ var ImageGalleryNode = (props) => {
|
|
|
7731
7807
|
right: "justify-end"
|
|
7732
7808
|
};
|
|
7733
7809
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
7734
|
-
return /* @__PURE__ */ (0,
|
|
7735
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0,
|
|
7810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
7811
|
+
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
7736
7812
|
HlsPlayer4,
|
|
7737
7813
|
{
|
|
7738
7814
|
sources: hlsSources,
|
|
@@ -7747,7 +7823,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7747
7823
|
styles: hlsStyles
|
|
7748
7824
|
}
|
|
7749
7825
|
) }),
|
|
7750
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0,
|
|
7826
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("picture", { children: [
|
|
7751
7827
|
DEVICE_ORDER.map((deviceKey) => {
|
|
7752
7828
|
const match = staticSources.find(
|
|
7753
7829
|
(img) => img.device === deviceKey
|
|
@@ -7763,7 +7839,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7763
7839
|
if (!srcUrl) {
|
|
7764
7840
|
return null;
|
|
7765
7841
|
}
|
|
7766
|
-
return /* @__PURE__ */ (0,
|
|
7842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
7767
7843
|
"source",
|
|
7768
7844
|
{
|
|
7769
7845
|
media: deviceToMediaQuery(match.device),
|
|
@@ -7788,7 +7864,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7788
7864
|
if (img.borderRadius) {
|
|
7789
7865
|
styles.borderRadius = img.borderRadius;
|
|
7790
7866
|
}
|
|
7791
|
-
return /* @__PURE__ */ (0,
|
|
7867
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
7792
7868
|
"img",
|
|
7793
7869
|
{
|
|
7794
7870
|
loading: "lazy",
|
|
@@ -7803,7 +7879,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7803
7879
|
})()
|
|
7804
7880
|
] }) : (
|
|
7805
7881
|
/* Case 2: Only device-specific images exist */
|
|
7806
|
-
/* @__PURE__ */ (0,
|
|
7882
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_jsx_runtime55.Fragment, { children: staticSources.map((img, index) => {
|
|
7807
7883
|
const resolved = resolveImage(img);
|
|
7808
7884
|
const imageUrl = resolved?.imageUrl;
|
|
7809
7885
|
if (!imageUrl) {
|
|
@@ -7830,7 +7906,7 @@ var ImageGalleryNode = (props) => {
|
|
|
7830
7906
|
default:
|
|
7831
7907
|
display = "block";
|
|
7832
7908
|
}
|
|
7833
|
-
return /* @__PURE__ */ (0,
|
|
7909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
7834
7910
|
"img",
|
|
7835
7911
|
{
|
|
7836
7912
|
loading: "lazy",
|
|
@@ -7971,28 +8047,28 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
7971
8047
|
|
|
7972
8048
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
7973
8049
|
init_AssetUtility();
|
|
7974
|
-
var
|
|
8050
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
7975
8051
|
var getNestedValue5 = (obj, path) => {
|
|
7976
8052
|
if (!obj || !path) return void 0;
|
|
7977
8053
|
return path.split(".").reduce((current, key) => {
|
|
7978
8054
|
return current && current[key] !== void 0 ? current[key] : void 0;
|
|
7979
8055
|
}, obj);
|
|
7980
8056
|
};
|
|
7981
|
-
var PdfIcon2 = () => /* @__PURE__ */ (0,
|
|
8057
|
+
var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
7982
8058
|
"svg",
|
|
7983
8059
|
{
|
|
7984
8060
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7985
8061
|
viewBox: "0 0 48 48",
|
|
7986
8062
|
className: "w-10 h-10",
|
|
7987
8063
|
children: [
|
|
7988
|
-
/* @__PURE__ */ (0,
|
|
8064
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
7989
8065
|
"path",
|
|
7990
8066
|
{
|
|
7991
8067
|
fill: "#e53935",
|
|
7992
8068
|
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"
|
|
7993
8069
|
}
|
|
7994
8070
|
),
|
|
7995
|
-
/* @__PURE__ */ (0,
|
|
8071
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
7996
8072
|
"path",
|
|
7997
8073
|
{
|
|
7998
8074
|
fill: "#fff",
|
|
@@ -8002,55 +8078,55 @@ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8002
8078
|
]
|
|
8003
8079
|
}
|
|
8004
8080
|
);
|
|
8005
|
-
var ExcelIcon2 = () => /* @__PURE__ */ (0,
|
|
8081
|
+
var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8006
8082
|
"svg",
|
|
8007
8083
|
{
|
|
8008
8084
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8009
8085
|
viewBox: "0 0 48 48",
|
|
8010
8086
|
className: "w-10 h-10",
|
|
8011
8087
|
children: [
|
|
8012
|
-
/* @__PURE__ */ (0,
|
|
8088
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8013
8089
|
"path",
|
|
8014
8090
|
{
|
|
8015
8091
|
fill: "#169154",
|
|
8016
8092
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
8017
8093
|
}
|
|
8018
8094
|
),
|
|
8019
|
-
/* @__PURE__ */ (0,
|
|
8095
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8020
8096
|
"path",
|
|
8021
8097
|
{
|
|
8022
8098
|
fill: "#18482a",
|
|
8023
8099
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
8024
8100
|
}
|
|
8025
8101
|
),
|
|
8026
|
-
/* @__PURE__ */ (0,
|
|
8027
|
-
/* @__PURE__ */ (0,
|
|
8028
|
-
/* @__PURE__ */ (0,
|
|
8029
|
-
/* @__PURE__ */ (0,
|
|
8102
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
8103
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
8104
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("g", { children: [
|
|
8105
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8030
8106
|
"path",
|
|
8031
8107
|
{
|
|
8032
8108
|
fill: "#29c27f",
|
|
8033
8109
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
8034
8110
|
}
|
|
8035
8111
|
),
|
|
8036
|
-
/* @__PURE__ */ (0,
|
|
8112
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8037
8113
|
"path",
|
|
8038
8114
|
{
|
|
8039
8115
|
fill: "#27663f",
|
|
8040
8116
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
8041
8117
|
}
|
|
8042
8118
|
),
|
|
8043
|
-
/* @__PURE__ */ (0,
|
|
8044
|
-
/* @__PURE__ */ (0,
|
|
8119
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
8120
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
8045
8121
|
] }),
|
|
8046
|
-
/* @__PURE__ */ (0,
|
|
8122
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8047
8123
|
"path",
|
|
8048
8124
|
{
|
|
8049
8125
|
fill: "#0c7238",
|
|
8050
8126
|
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"
|
|
8051
8127
|
}
|
|
8052
8128
|
),
|
|
8053
|
-
/* @__PURE__ */ (0,
|
|
8129
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8054
8130
|
"path",
|
|
8055
8131
|
{
|
|
8056
8132
|
fill: "#fff",
|
|
@@ -8060,7 +8136,7 @@ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8060
8136
|
]
|
|
8061
8137
|
}
|
|
8062
8138
|
);
|
|
8063
|
-
var WordIcon2 = () => /* @__PURE__ */ (0,
|
|
8139
|
+
var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8064
8140
|
"svg",
|
|
8065
8141
|
{
|
|
8066
8142
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8068,14 +8144,14 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8068
8144
|
className: "w-10 h-10",
|
|
8069
8145
|
baseProfile: "basic",
|
|
8070
8146
|
children: [
|
|
8071
|
-
/* @__PURE__ */ (0,
|
|
8147
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8072
8148
|
"path",
|
|
8073
8149
|
{
|
|
8074
8150
|
fill: "#283593",
|
|
8075
8151
|
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"
|
|
8076
8152
|
}
|
|
8077
8153
|
),
|
|
8078
|
-
/* @__PURE__ */ (0,
|
|
8154
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8079
8155
|
"linearGradient",
|
|
8080
8156
|
{
|
|
8081
8157
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -8086,19 +8162,19 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8086
8162
|
gradientTransform: "translate(0 -339.89)",
|
|
8087
8163
|
gradientUnits: "userSpaceOnUse",
|
|
8088
8164
|
children: [
|
|
8089
|
-
/* @__PURE__ */ (0,
|
|
8090
|
-
/* @__PURE__ */ (0,
|
|
8165
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
8166
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
8091
8167
|
]
|
|
8092
8168
|
}
|
|
8093
8169
|
),
|
|
8094
|
-
/* @__PURE__ */ (0,
|
|
8170
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8095
8171
|
"path",
|
|
8096
8172
|
{
|
|
8097
8173
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
8098
8174
|
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"
|
|
8099
8175
|
}
|
|
8100
8176
|
),
|
|
8101
|
-
/* @__PURE__ */ (0,
|
|
8177
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8102
8178
|
"path",
|
|
8103
8179
|
{
|
|
8104
8180
|
fill: "#1e88e5",
|
|
@@ -8106,21 +8182,21 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8106
8182
|
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"
|
|
8107
8183
|
}
|
|
8108
8184
|
),
|
|
8109
|
-
/* @__PURE__ */ (0,
|
|
8185
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8110
8186
|
"path",
|
|
8111
8187
|
{
|
|
8112
8188
|
fill: "#00e5ff",
|
|
8113
8189
|
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"
|
|
8114
8190
|
}
|
|
8115
8191
|
),
|
|
8116
|
-
/* @__PURE__ */ (0,
|
|
8192
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8117
8193
|
"path",
|
|
8118
8194
|
{
|
|
8119
8195
|
fill: "#1565c0",
|
|
8120
8196
|
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"
|
|
8121
8197
|
}
|
|
8122
8198
|
),
|
|
8123
|
-
/* @__PURE__ */ (0,
|
|
8199
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8124
8200
|
"path",
|
|
8125
8201
|
{
|
|
8126
8202
|
fill: "#fff",
|
|
@@ -8130,42 +8206,42 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8130
8206
|
]
|
|
8131
8207
|
}
|
|
8132
8208
|
);
|
|
8133
|
-
var StandardIcon2 = () => /* @__PURE__ */ (0,
|
|
8209
|
+
var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8134
8210
|
"svg",
|
|
8135
8211
|
{
|
|
8136
8212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8137
8213
|
viewBox: "0 0 48 48",
|
|
8138
8214
|
className: "w-10 h-10",
|
|
8139
8215
|
children: [
|
|
8140
|
-
/* @__PURE__ */ (0,
|
|
8141
|
-
/* @__PURE__ */ (0,
|
|
8216
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
8217
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
8142
8218
|
]
|
|
8143
8219
|
}
|
|
8144
8220
|
);
|
|
8145
|
-
var PowerPointIcon2 = () => /* @__PURE__ */ (0,
|
|
8221
|
+
var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8146
8222
|
"svg",
|
|
8147
8223
|
{
|
|
8148
8224
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8149
8225
|
viewBox: "0 0 48 48",
|
|
8150
8226
|
className: "w-10 h-10",
|
|
8151
8227
|
children: [
|
|
8152
|
-
/* @__PURE__ */ (0,
|
|
8228
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8153
8229
|
"path",
|
|
8154
8230
|
{
|
|
8155
8231
|
fill: "#dc4c2c",
|
|
8156
8232
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
8157
8233
|
}
|
|
8158
8234
|
),
|
|
8159
|
-
/* @__PURE__ */ (0,
|
|
8160
|
-
/* @__PURE__ */ (0,
|
|
8161
|
-
/* @__PURE__ */ (0,
|
|
8235
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
8236
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
8237
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8162
8238
|
"path",
|
|
8163
8239
|
{
|
|
8164
8240
|
fill: "#9b341f",
|
|
8165
8241
|
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"
|
|
8166
8242
|
}
|
|
8167
8243
|
),
|
|
8168
|
-
/* @__PURE__ */ (0,
|
|
8244
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8169
8245
|
"path",
|
|
8170
8246
|
{
|
|
8171
8247
|
fill: "#fff",
|
|
@@ -8175,16 +8251,16 @@ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8175
8251
|
]
|
|
8176
8252
|
}
|
|
8177
8253
|
);
|
|
8178
|
-
var TextIcon2 = () => /* @__PURE__ */ (0,
|
|
8254
|
+
var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8179
8255
|
"svg",
|
|
8180
8256
|
{
|
|
8181
8257
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8182
8258
|
viewBox: "0 0 48 48",
|
|
8183
8259
|
className: "w-10 h-10",
|
|
8184
8260
|
children: [
|
|
8185
|
-
/* @__PURE__ */ (0,
|
|
8186
|
-
/* @__PURE__ */ (0,
|
|
8187
|
-
/* @__PURE__ */ (0,
|
|
8261
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
8262
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
8263
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8188
8264
|
"path",
|
|
8189
8265
|
{
|
|
8190
8266
|
fill: "#1976D2",
|
|
@@ -8194,7 +8270,7 @@ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8194
8270
|
]
|
|
8195
8271
|
}
|
|
8196
8272
|
);
|
|
8197
|
-
var ArchiveIcon2 = () => /* @__PURE__ */ (0,
|
|
8273
|
+
var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8198
8274
|
"svg",
|
|
8199
8275
|
{
|
|
8200
8276
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8204,14 +8280,14 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8204
8280
|
version: "1.0",
|
|
8205
8281
|
className: "w-10 h-10",
|
|
8206
8282
|
children: [
|
|
8207
|
-
/* @__PURE__ */ (0,
|
|
8283
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8208
8284
|
"path",
|
|
8209
8285
|
{
|
|
8210
8286
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
8211
8287
|
"clip-rule": "nonzero"
|
|
8212
8288
|
}
|
|
8213
8289
|
) }) }),
|
|
8214
|
-
/* @__PURE__ */ (0,
|
|
8290
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8215
8291
|
"path",
|
|
8216
8292
|
{
|
|
8217
8293
|
fill: "#ff9100",
|
|
@@ -8220,7 +8296,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8220
8296
|
"fill-rule": "nonzero"
|
|
8221
8297
|
}
|
|
8222
8298
|
) }),
|
|
8223
|
-
/* @__PURE__ */ (0,
|
|
8299
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8224
8300
|
"path",
|
|
8225
8301
|
{
|
|
8226
8302
|
fill: "#fbe9e7",
|
|
@@ -8229,7 +8305,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8229
8305
|
"fill-rule": "nonzero"
|
|
8230
8306
|
}
|
|
8231
8307
|
),
|
|
8232
|
-
/* @__PURE__ */ (0,
|
|
8308
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8233
8309
|
"path",
|
|
8234
8310
|
{
|
|
8235
8311
|
fill: "#ffe0b2",
|
|
@@ -8238,7 +8314,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8238
8314
|
"fill-rule": "nonzero"
|
|
8239
8315
|
}
|
|
8240
8316
|
),
|
|
8241
|
-
/* @__PURE__ */ (0,
|
|
8317
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8242
8318
|
"path",
|
|
8243
8319
|
{
|
|
8244
8320
|
fill: "#ffe0b2",
|
|
@@ -8247,7 +8323,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
|
8247
8323
|
"fill-rule": "nonzero"
|
|
8248
8324
|
}
|
|
8249
8325
|
),
|
|
8250
|
-
/* @__PURE__ */ (0,
|
|
8326
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8251
8327
|
"path",
|
|
8252
8328
|
{
|
|
8253
8329
|
fill: "#ffe0b2",
|
|
@@ -8322,8 +8398,8 @@ var DocumentNode = (props) => {
|
|
|
8322
8398
|
}
|
|
8323
8399
|
}
|
|
8324
8400
|
if (documents.length === 0) {
|
|
8325
|
-
return /* @__PURE__ */ (0,
|
|
8326
|
-
/* @__PURE__ */ (0,
|
|
8401
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_jsx_runtime56.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
8402
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8327
8403
|
"svg",
|
|
8328
8404
|
{
|
|
8329
8405
|
className: "w-5 h-5",
|
|
@@ -8331,7 +8407,7 @@ var DocumentNode = (props) => {
|
|
|
8331
8407
|
stroke: "currentColor",
|
|
8332
8408
|
viewBox: "0 0 24 24",
|
|
8333
8409
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8334
|
-
children: /* @__PURE__ */ (0,
|
|
8410
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8335
8411
|
"path",
|
|
8336
8412
|
{
|
|
8337
8413
|
strokeLinecap: "round",
|
|
@@ -8342,11 +8418,11 @@ var DocumentNode = (props) => {
|
|
|
8342
8418
|
)
|
|
8343
8419
|
}
|
|
8344
8420
|
) }),
|
|
8345
|
-
/* @__PURE__ */ (0,
|
|
8346
|
-
/* @__PURE__ */ (0,
|
|
8421
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
8422
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
8347
8423
|
] }) });
|
|
8348
8424
|
}
|
|
8349
|
-
return /* @__PURE__ */ (0,
|
|
8425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
8350
8426
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
8351
8427
|
props.assetBaseUrl,
|
|
8352
8428
|
doc.assetUrl
|
|
@@ -8364,16 +8440,16 @@ var DocumentNode = (props) => {
|
|
|
8364
8440
|
}
|
|
8365
8441
|
}
|
|
8366
8442
|
const { Icon: Icon2, extLabel } = getFileDetails2(documentUrl);
|
|
8367
|
-
return /* @__PURE__ */ (0,
|
|
8443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8368
8444
|
"div",
|
|
8369
8445
|
{
|
|
8370
8446
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
8371
8447
|
children: [
|
|
8372
|
-
/* @__PURE__ */ (0,
|
|
8373
|
-
/* @__PURE__ */ (0,
|
|
8374
|
-
/* @__PURE__ */ (0,
|
|
8448
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex items-center space-x-4", children: [
|
|
8449
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon2, {}) }),
|
|
8450
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex items-baseline space-x-2", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h4", { className: "text-base font-semibold", children: documentTitle }) })
|
|
8375
8451
|
] }),
|
|
8376
|
-
/* @__PURE__ */ (0,
|
|
8452
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8377
8453
|
"a",
|
|
8378
8454
|
{
|
|
8379
8455
|
href: documentUrl,
|
|
@@ -8381,7 +8457,7 @@ var DocumentNode = (props) => {
|
|
|
8381
8457
|
rel: "noopener noreferrer",
|
|
8382
8458
|
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",
|
|
8383
8459
|
children: [
|
|
8384
|
-
/* @__PURE__ */ (0,
|
|
8460
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
8385
8461
|
"svg",
|
|
8386
8462
|
{
|
|
8387
8463
|
className: "w-4 h-4 mr-2",
|
|
@@ -8389,7 +8465,7 @@ var DocumentNode = (props) => {
|
|
|
8389
8465
|
stroke: "currentColor",
|
|
8390
8466
|
viewBox: "0 0 24 24",
|
|
8391
8467
|
children: [
|
|
8392
|
-
/* @__PURE__ */ (0,
|
|
8468
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8393
8469
|
"path",
|
|
8394
8470
|
{
|
|
8395
8471
|
strokeLinecap: "round",
|
|
@@ -8398,7 +8474,7 @@ var DocumentNode = (props) => {
|
|
|
8398
8474
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
8399
8475
|
}
|
|
8400
8476
|
),
|
|
8401
|
-
/* @__PURE__ */ (0,
|
|
8477
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8402
8478
|
"path",
|
|
8403
8479
|
{
|
|
8404
8480
|
strokeLinecap: "round",
|
|
@@ -8424,13 +8500,13 @@ var DocumentNode_default = DocumentNode;
|
|
|
8424
8500
|
|
|
8425
8501
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
8426
8502
|
var import_dynamic11 = __toESM(require("next/dynamic"));
|
|
8427
|
-
var
|
|
8503
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
8428
8504
|
var IframeClient3 = (0, import_dynamic11.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
8429
8505
|
ssr: false
|
|
8430
8506
|
});
|
|
8431
8507
|
var GoogleMapNode = (props) => {
|
|
8432
8508
|
let src = props.node.embedUrl;
|
|
8433
|
-
return /* @__PURE__ */ (0,
|
|
8509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
8434
8510
|
IframeClient3,
|
|
8435
8511
|
{
|
|
8436
8512
|
src,
|
|
@@ -8442,7 +8518,7 @@ var GoogleMapNode = (props) => {
|
|
|
8442
8518
|
var GoogleMapNode_default = GoogleMapNode;
|
|
8443
8519
|
|
|
8444
8520
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
8445
|
-
var
|
|
8521
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
8446
8522
|
var Pagination2 = (0, import_dynamic13.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
8447
8523
|
var DataBindingControls2 = (0, import_dynamic13.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
|
|
8448
8524
|
ssr: true
|
|
@@ -8701,7 +8777,7 @@ var DivContainer = async (props) => {
|
|
|
8701
8777
|
response = await serviceClient.get(endpoint);
|
|
8702
8778
|
result = response?.result;
|
|
8703
8779
|
if (dataBindingProperties.showNoResultsMessage && (result === void 0 || result.length == 0)) {
|
|
8704
|
-
return /* @__PURE__ */ (0,
|
|
8780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(NoDataFound_default, {});
|
|
8705
8781
|
}
|
|
8706
8782
|
if (dataBindingProperties.childCollectionName && props.dataitem) {
|
|
8707
8783
|
childCollectionData = getNestedValue6(
|
|
@@ -8721,7 +8797,7 @@ var DivContainer = async (props) => {
|
|
|
8721
8797
|
}
|
|
8722
8798
|
const SelectedNode = NodeTypes2[node.type];
|
|
8723
8799
|
if (!SelectedNode) return null;
|
|
8724
|
-
return /* @__PURE__ */ (0,
|
|
8800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
8725
8801
|
SelectedNode,
|
|
8726
8802
|
{
|
|
8727
8803
|
node,
|
|
@@ -8858,7 +8934,7 @@ var DivContainer = async (props) => {
|
|
|
8858
8934
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
8859
8935
|
);
|
|
8860
8936
|
const WrapperComponent = Wrapper;
|
|
8861
|
-
const renderedContainer = /* @__PURE__ */ (0,
|
|
8937
|
+
const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
8862
8938
|
WrapperComponent,
|
|
8863
8939
|
{
|
|
8864
8940
|
id: guid,
|
|
@@ -8872,11 +8948,11 @@ var DivContainer = async (props) => {
|
|
|
8872
8948
|
item,
|
|
8873
8949
|
idx,
|
|
8874
8950
|
props.href ? void 0 : item?.links?.view
|
|
8875
|
-
)?.map((child, i) => /* @__PURE__ */ (0,
|
|
8951
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react62.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
|
|
8876
8952
|
)
|
|
8877
8953
|
}
|
|
8878
8954
|
);
|
|
8879
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0,
|
|
8955
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
8880
8956
|
Pagination2,
|
|
8881
8957
|
{
|
|
8882
8958
|
path: props.path,
|
|
@@ -8884,15 +8960,15 @@ var DivContainer = async (props) => {
|
|
|
8884
8960
|
dataset: response
|
|
8885
8961
|
}
|
|
8886
8962
|
) : null;
|
|
8887
|
-
return /* @__PURE__ */ (0,
|
|
8888
|
-
/* @__PURE__ */ (0,
|
|
8963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_react62.default.Fragment, { children: [
|
|
8964
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
8889
8965
|
"style",
|
|
8890
8966
|
{
|
|
8891
8967
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
8892
8968
|
}
|
|
8893
8969
|
),
|
|
8894
|
-
showDataBindingControls ? /* @__PURE__ */ (0,
|
|
8895
|
-
/* @__PURE__ */ (0,
|
|
8970
|
+
showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_react62.default.Fragment, { children: [
|
|
8971
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
8896
8972
|
DataBindingControls2,
|
|
8897
8973
|
{
|
|
8898
8974
|
mode: "toolbar",
|
|
@@ -8904,18 +8980,18 @@ var DivContainer = async (props) => {
|
|
|
8904
8980
|
showSearchBar: dataBindingProperties?.showSearchBar
|
|
8905
8981
|
}
|
|
8906
8982
|
),
|
|
8907
|
-
/* @__PURE__ */ (0,
|
|
8983
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
8908
8984
|
"div",
|
|
8909
8985
|
{
|
|
8910
8986
|
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
8911
8987
|
children: [
|
|
8912
|
-
/* @__PURE__ */ (0,
|
|
8988
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "min-w-0", children: [
|
|
8913
8989
|
renderedContainer,
|
|
8914
8990
|
paginationControl
|
|
8915
8991
|
] }),
|
|
8916
|
-
dataBindingProperties?.showFacets && /* @__PURE__ */ (0,
|
|
8917
|
-
/* @__PURE__ */ (0,
|
|
8918
|
-
/* @__PURE__ */ (0,
|
|
8992
|
+
dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("aside", { className: "border bg-default p-3 lg:sticky lg:top-[90px] lg:self-start", children: [
|
|
8993
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("h2", { className: "mb-2 text-lg font-semibold", children: "Filters" }),
|
|
8994
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
8919
8995
|
DataBindingControls2,
|
|
8920
8996
|
{
|
|
8921
8997
|
mode: "facets",
|
|
@@ -8929,16 +9005,16 @@ var DivContainer = async (props) => {
|
|
|
8929
9005
|
]
|
|
8930
9006
|
}
|
|
8931
9007
|
)
|
|
8932
|
-
] }) : /* @__PURE__ */ (0,
|
|
9008
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_react62.default.Fragment, { children: [
|
|
8933
9009
|
renderedContainer,
|
|
8934
|
-
paginationControl && /* @__PURE__ */ (0,
|
|
9010
|
+
paginationControl && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { children: paginationControl })
|
|
8935
9011
|
] })
|
|
8936
9012
|
] });
|
|
8937
9013
|
};
|
|
8938
9014
|
var DivContainer_default = DivContainer;
|
|
8939
9015
|
|
|
8940
9016
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
8941
|
-
var
|
|
9017
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
8942
9018
|
var NodeTypes = {
|
|
8943
9019
|
["paragraph"]: ParagraphNode_default,
|
|
8944
9020
|
["heading"]: HeadingNode_default,
|
|
@@ -8976,14 +9052,14 @@ var PageBodyRenderer = (props) => {
|
|
|
8976
9052
|
}
|
|
8977
9053
|
return true;
|
|
8978
9054
|
};
|
|
8979
|
-
return /* @__PURE__ */ (0,
|
|
9055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react63.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
8980
9056
|
{
|
|
8981
9057
|
}
|
|
8982
9058
|
const SelectedNode = NodeTypes[node.type];
|
|
8983
9059
|
if (!shouldRenderNode(node)) {
|
|
8984
9060
|
return null;
|
|
8985
9061
|
}
|
|
8986
|
-
return /* @__PURE__ */ (0,
|
|
9062
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react63.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react63.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
8987
9063
|
SelectedNode,
|
|
8988
9064
|
{
|
|
8989
9065
|
node,
|
|
@@ -8999,7 +9075,7 @@ var PageBodyRenderer = (props) => {
|
|
|
8999
9075
|
device: props.device,
|
|
9000
9076
|
widgetRenderer: props.widgetRenderer
|
|
9001
9077
|
}
|
|
9002
|
-
) }) : /* @__PURE__ */ (0,
|
|
9078
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react63.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
9003
9079
|
SelectedNode,
|
|
9004
9080
|
{
|
|
9005
9081
|
node,
|