@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260930101733 → 0.8.1-dev.20261001021620
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/CounterNodeClient-LNVEXZQE.mjs +87 -0
- package/dist/CounterNodeClient-ULMKR64R.mjs +85 -0
- package/dist/{InputControlClient-QMFSUGTK.mjs → InputControlClient-6MTR5RJ6.mjs} +1 -0
- package/dist/index.js +634 -611
- package/dist/index.mjs +185 -255
- package/dist/server.js +482 -460
- package/dist/server.mjs +80 -150
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -2964,6 +2964,98 @@ var init_AvatarViewClient = __esm({
|
|
|
2964
2964
|
}
|
|
2965
2965
|
});
|
|
2966
2966
|
|
|
2967
|
+
// src/components/pageRenderingEngine/nodes/CounterNodeClient.tsx
|
|
2968
|
+
var CounterNodeClient_exports = {};
|
|
2969
|
+
__export(CounterNodeClient_exports, {
|
|
2970
|
+
default: () => CounterNodeClient_default
|
|
2971
|
+
});
|
|
2972
|
+
var import_react28, import_jsx_runtime42, FORMAT_CLASSES2, CounterNodeClient, CounterNodeClient_default;
|
|
2973
|
+
var init_CounterNodeClient = __esm({
|
|
2974
|
+
"src/components/pageRenderingEngine/nodes/CounterNodeClient.tsx"() {
|
|
2975
|
+
"use strict";
|
|
2976
|
+
"use client";
|
|
2977
|
+
import_react28 = require("react");
|
|
2978
|
+
import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2979
|
+
FORMAT_CLASSES2 = {
|
|
2980
|
+
center: "justify-center text-center",
|
|
2981
|
+
right: "justify-end text-right",
|
|
2982
|
+
left: "justify-start text-left",
|
|
2983
|
+
justify: "justify-between text-justify"
|
|
2984
|
+
};
|
|
2985
|
+
CounterNodeClient = ({ node }) => {
|
|
2986
|
+
const ref = (0, import_react28.useRef)(null);
|
|
2987
|
+
const startValue = typeof node?.startValue === "number" ? node.startValue : Number(node?.startValue) || 0;
|
|
2988
|
+
const endValue = typeof node?.endValue === "number" ? node.endValue : Number(node?.endValue) || 0;
|
|
2989
|
+
const duration = Math.max(Number(node?.duration) || 2e3, 300);
|
|
2990
|
+
const prefix = node?.prefix ?? "";
|
|
2991
|
+
const suffix = node?.suffix ?? "";
|
|
2992
|
+
const format = node?.format;
|
|
2993
|
+
const [displayValue, setDisplayValue] = (0, import_react28.useState)(startValue);
|
|
2994
|
+
const hasAnimatedRef = (0, import_react28.useRef)(false);
|
|
2995
|
+
const runAnimation = (0, import_react28.useCallback)(() => {
|
|
2996
|
+
let startTime = null;
|
|
2997
|
+
let animationFrameId;
|
|
2998
|
+
const step = (timestamp) => {
|
|
2999
|
+
if (!startTime) startTime = timestamp;
|
|
3000
|
+
const progress = Math.min((timestamp - startTime) / duration, 1);
|
|
3001
|
+
const easeOutProgress = 1 - Math.pow(1 - progress, 3);
|
|
3002
|
+
const currentVal = Math.round(startValue + (endValue - startValue) * easeOutProgress);
|
|
3003
|
+
setDisplayValue(currentVal);
|
|
3004
|
+
if (progress < 1) {
|
|
3005
|
+
animationFrameId = requestAnimationFrame(step);
|
|
3006
|
+
} else {
|
|
3007
|
+
setDisplayValue(endValue);
|
|
3008
|
+
}
|
|
3009
|
+
};
|
|
3010
|
+
animationFrameId = requestAnimationFrame(step);
|
|
3011
|
+
return () => {
|
|
3012
|
+
if (animationFrameId) {
|
|
3013
|
+
cancelAnimationFrame(animationFrameId);
|
|
3014
|
+
}
|
|
3015
|
+
};
|
|
3016
|
+
}, [startValue, endValue, duration]);
|
|
3017
|
+
(0, import_react28.useEffect)(() => {
|
|
3018
|
+
const currentRef = ref.current;
|
|
3019
|
+
if (!currentRef) return;
|
|
3020
|
+
if (typeof IntersectionObserver === "undefined") {
|
|
3021
|
+
return runAnimation();
|
|
3022
|
+
}
|
|
3023
|
+
const observer = new IntersectionObserver(
|
|
3024
|
+
(entries) => {
|
|
3025
|
+
entries.forEach((entry) => {
|
|
3026
|
+
if (entry.isIntersecting && !hasAnimatedRef.current) {
|
|
3027
|
+
hasAnimatedRef.current = true;
|
|
3028
|
+
runAnimation();
|
|
3029
|
+
observer.unobserve(entry.target);
|
|
3030
|
+
}
|
|
3031
|
+
});
|
|
3032
|
+
},
|
|
3033
|
+
{ threshold: 0.1 }
|
|
3034
|
+
);
|
|
3035
|
+
observer.observe(currentRef);
|
|
3036
|
+
return () => {
|
|
3037
|
+
observer.disconnect();
|
|
3038
|
+
};
|
|
3039
|
+
}, [runAnimation]);
|
|
3040
|
+
if (!node) return null;
|
|
3041
|
+
const alignClass = format && FORMAT_CLASSES2[format] || "justify-center text-center";
|
|
3042
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
3043
|
+
"div",
|
|
3044
|
+
{
|
|
3045
|
+
ref,
|
|
3046
|
+
className: `counter-node inline-flex items-center ${alignClass}`,
|
|
3047
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "counter-display text-3xl font-bold tracking-tight", children: [
|
|
3048
|
+
prefix,
|
|
3049
|
+
displayValue.toLocaleString(),
|
|
3050
|
+
suffix
|
|
3051
|
+
] })
|
|
3052
|
+
}
|
|
3053
|
+
);
|
|
3054
|
+
};
|
|
3055
|
+
CounterNodeClient_default = CounterNodeClient;
|
|
3056
|
+
}
|
|
3057
|
+
});
|
|
3058
|
+
|
|
2967
3059
|
// src/components/CopyButton.tsx
|
|
2968
3060
|
var CopyButton_exports = {};
|
|
2969
3061
|
__export(CopyButton_exports, {
|
|
@@ -2987,13 +3079,13 @@ function CopyButton({ text }) {
|
|
|
2987
3079
|
console.error("Failed to copy: ", err);
|
|
2988
3080
|
}
|
|
2989
3081
|
};
|
|
2990
|
-
return /* @__PURE__ */ (0,
|
|
3082
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
2991
3083
|
"button",
|
|
2992
3084
|
{
|
|
2993
3085
|
onClick: handleCopy,
|
|
2994
3086
|
className: "flex gap-1 items-center hover:text-white transition",
|
|
2995
3087
|
children: [
|
|
2996
|
-
/* @__PURE__ */ (0,
|
|
3088
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
2997
3089
|
"svg",
|
|
2998
3090
|
{
|
|
2999
3091
|
width: "16",
|
|
@@ -3001,7 +3093,7 @@ function CopyButton({ text }) {
|
|
|
3001
3093
|
viewBox: "0 0 24 24",
|
|
3002
3094
|
className: "w-4 h-4",
|
|
3003
3095
|
fill: "currentColor",
|
|
3004
|
-
children: /* @__PURE__ */ (0,
|
|
3096
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3005
3097
|
"path",
|
|
3006
3098
|
{
|
|
3007
3099
|
fillRule: "evenodd",
|
|
@@ -3016,54 +3108,54 @@ function CopyButton({ text }) {
|
|
|
3016
3108
|
}
|
|
3017
3109
|
);
|
|
3018
3110
|
}
|
|
3019
|
-
var import_react34,
|
|
3111
|
+
var import_react34, import_jsx_runtime49;
|
|
3020
3112
|
var init_CopyButton = __esm({
|
|
3021
3113
|
"src/components/CopyButton.tsx"() {
|
|
3022
3114
|
"use strict";
|
|
3023
3115
|
"use client";
|
|
3024
3116
|
import_react34 = require("react");
|
|
3025
|
-
|
|
3117
|
+
import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3026
3118
|
}
|
|
3027
3119
|
});
|
|
3028
3120
|
|
|
3029
3121
|
// src/components/IFrameLoaderView.tsx
|
|
3030
|
-
var import_react37,
|
|
3122
|
+
var import_react37, import_jsx_runtime53, IFrameLoaderView, IFrameLoaderView_default;
|
|
3031
3123
|
var init_IFrameLoaderView = __esm({
|
|
3032
3124
|
"src/components/IFrameLoaderView.tsx"() {
|
|
3033
3125
|
"use strict";
|
|
3034
3126
|
import_react37 = __toESM(require("react"));
|
|
3035
|
-
|
|
3127
|
+
import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3036
3128
|
IFrameLoaderView = (props) => {
|
|
3037
|
-
return /* @__PURE__ */ (0,
|
|
3038
|
-
props.isDataFound == null && /* @__PURE__ */ (0,
|
|
3039
|
-
/* @__PURE__ */ (0,
|
|
3040
|
-
/* @__PURE__ */ (0,
|
|
3041
|
-
/* @__PURE__ */ (0,
|
|
3042
|
-
/* @__PURE__ */ (0,
|
|
3043
|
-
/* @__PURE__ */ (0,
|
|
3129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_react37.default.Fragment, { children: [
|
|
3130
|
+
props.isDataFound == null && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "mt-4 bg-gray-200 rounded-md p-4 animate-pulse", children: [
|
|
3131
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
3132
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 h-8 w-8 rounded-full animate-pulse" }),
|
|
3133
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "ml-2", children: [
|
|
3134
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 h-3 w-16 animate-pulse" }),
|
|
3135
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 h-2 w-12 animate-pulse" })
|
|
3044
3136
|
] })
|
|
3045
3137
|
] }),
|
|
3046
|
-
/* @__PURE__ */ (0,
|
|
3047
|
-
/* @__PURE__ */ (0,
|
|
3048
|
-
/* @__PURE__ */ (0,
|
|
3049
|
-
/* @__PURE__ */ (0,
|
|
3050
|
-
/* @__PURE__ */ (0,
|
|
3051
|
-
/* @__PURE__ */ (0,
|
|
3052
|
-
/* @__PURE__ */ (0,
|
|
3138
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "grid grid-cols-3 gap-4 mt-6", children: [
|
|
3139
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "animate-pulse", children: [
|
|
3140
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3141
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3142
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3143
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3144
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3053
3145
|
] }),
|
|
3054
|
-
/* @__PURE__ */ (0,
|
|
3055
|
-
/* @__PURE__ */ (0,
|
|
3056
|
-
/* @__PURE__ */ (0,
|
|
3057
|
-
/* @__PURE__ */ (0,
|
|
3058
|
-
/* @__PURE__ */ (0,
|
|
3059
|
-
/* @__PURE__ */ (0,
|
|
3146
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "animate-pulse", children: [
|
|
3147
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3148
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3149
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3150
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3151
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3060
3152
|
] }),
|
|
3061
|
-
/* @__PURE__ */ (0,
|
|
3062
|
-
/* @__PURE__ */ (0,
|
|
3063
|
-
/* @__PURE__ */ (0,
|
|
3064
|
-
/* @__PURE__ */ (0,
|
|
3065
|
-
/* @__PURE__ */ (0,
|
|
3066
|
-
/* @__PURE__ */ (0,
|
|
3153
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "animate-pulse", children: [
|
|
3154
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-12 mb-2" }),
|
|
3155
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-24 mb-2" }),
|
|
3156
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-32 mb-2" }),
|
|
3157
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-16 mb-2" }),
|
|
3158
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "bg-gray-300 rounded-full h-3 w-28 mb-2" })
|
|
3067
3159
|
] })
|
|
3068
3160
|
] })
|
|
3069
3161
|
] }) }),
|
|
@@ -3079,14 +3171,14 @@ var IframeClient_exports = {};
|
|
|
3079
3171
|
__export(IframeClient_exports, {
|
|
3080
3172
|
default: () => IframeClient_default
|
|
3081
3173
|
});
|
|
3082
|
-
var import_react38,
|
|
3174
|
+
var import_react38, import_jsx_runtime54, IframeClient, IframeClient_default;
|
|
3083
3175
|
var init_IframeClient = __esm({
|
|
3084
3176
|
"src/components/pageRenderingEngine/nodes/IframeClient.tsx"() {
|
|
3085
3177
|
"use strict";
|
|
3086
3178
|
"use client";
|
|
3087
3179
|
import_react38 = __toESM(require("react"));
|
|
3088
3180
|
init_IFrameLoaderView();
|
|
3089
|
-
|
|
3181
|
+
import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3090
3182
|
IframeClient = ({
|
|
3091
3183
|
src,
|
|
3092
3184
|
width,
|
|
@@ -3125,7 +3217,7 @@ var init_IframeClient = __esm({
|
|
|
3125
3217
|
const handleIframeLoad = () => {
|
|
3126
3218
|
setIsDataFound(true);
|
|
3127
3219
|
};
|
|
3128
|
-
return /* @__PURE__ */ (0,
|
|
3220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react38.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(IFrameLoaderView_default, { isDataFound, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3129
3221
|
"iframe",
|
|
3130
3222
|
{
|
|
3131
3223
|
ref: iframeRef,
|
|
@@ -3392,52 +3484,52 @@ var init_OdataBuilder = __esm({
|
|
|
3392
3484
|
});
|
|
3393
3485
|
|
|
3394
3486
|
// src/svg/chevron-updown.tsx
|
|
3395
|
-
var
|
|
3487
|
+
var import_jsx_runtime61, ChevronUpDown, chevron_updown_default;
|
|
3396
3488
|
var init_chevron_updown = __esm({
|
|
3397
3489
|
"src/svg/chevron-updown.tsx"() {
|
|
3398
3490
|
"use strict";
|
|
3399
|
-
|
|
3491
|
+
import_jsx_runtime61 = require("react/jsx-runtime");
|
|
3400
3492
|
ChevronUpDown = (props) => {
|
|
3401
|
-
return /* @__PURE__ */ (0,
|
|
3493
|
+
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: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" }) });
|
|
3402
3494
|
};
|
|
3403
3495
|
chevron_updown_default = ChevronUpDown;
|
|
3404
3496
|
}
|
|
3405
3497
|
});
|
|
3406
3498
|
|
|
3407
3499
|
// src/svg/chevron-down.tsx
|
|
3408
|
-
var
|
|
3500
|
+
var import_jsx_runtime62, ChevronDown, chevron_down_default;
|
|
3409
3501
|
var init_chevron_down = __esm({
|
|
3410
3502
|
"src/svg/chevron-down.tsx"() {
|
|
3411
3503
|
"use strict";
|
|
3412
|
-
|
|
3504
|
+
import_jsx_runtime62 = require("react/jsx-runtime");
|
|
3413
3505
|
ChevronDown = (props) => {
|
|
3414
|
-
return /* @__PURE__ */ (0,
|
|
3506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.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_runtime62.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19.5 8.25l-7.5 7.5-7.5-7.5" }) });
|
|
3415
3507
|
};
|
|
3416
3508
|
chevron_down_default = ChevronDown;
|
|
3417
3509
|
}
|
|
3418
3510
|
});
|
|
3419
3511
|
|
|
3420
3512
|
// src/svg/chevron-up.tsx
|
|
3421
|
-
var
|
|
3513
|
+
var import_jsx_runtime63, ChevronUp, chevron_up_default;
|
|
3422
3514
|
var init_chevron_up = __esm({
|
|
3423
3515
|
"src/svg/chevron-up.tsx"() {
|
|
3424
3516
|
"use strict";
|
|
3425
|
-
|
|
3517
|
+
import_jsx_runtime63 = require("react/jsx-runtime");
|
|
3426
3518
|
ChevronUp = (props) => {
|
|
3427
|
-
return /* @__PURE__ */ (0,
|
|
3519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.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_runtime63.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 15.75l7.5-7.5 7.5 7.5" }) });
|
|
3428
3520
|
};
|
|
3429
3521
|
chevron_up_default = ChevronUp;
|
|
3430
3522
|
}
|
|
3431
3523
|
});
|
|
3432
3524
|
|
|
3433
3525
|
// src/svg/plus.tsx
|
|
3434
|
-
var
|
|
3526
|
+
var import_jsx_runtime64, Plus, plus_default;
|
|
3435
3527
|
var init_plus = __esm({
|
|
3436
3528
|
"src/svg/plus.tsx"() {
|
|
3437
3529
|
"use strict";
|
|
3438
|
-
|
|
3530
|
+
import_jsx_runtime64 = require("react/jsx-runtime");
|
|
3439
3531
|
Plus = (props) => {
|
|
3440
|
-
return /* @__PURE__ */ (0,
|
|
3532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.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_runtime64.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 4.5v15m7.5-7.5h-15" }) });
|
|
3441
3533
|
};
|
|
3442
3534
|
plus_default = Plus;
|
|
3443
3535
|
}
|
|
@@ -3463,19 +3555,19 @@ var init_Icons = __esm({
|
|
|
3463
3555
|
});
|
|
3464
3556
|
|
|
3465
3557
|
// src/svg/Icon.tsx
|
|
3466
|
-
var
|
|
3558
|
+
var import_jsx_runtime65, Icon, Icon_default;
|
|
3467
3559
|
var init_Icon = __esm({
|
|
3468
3560
|
"src/svg/Icon.tsx"() {
|
|
3469
3561
|
"use strict";
|
|
3470
3562
|
init_Icons();
|
|
3471
|
-
|
|
3563
|
+
import_jsx_runtime65 = require("react/jsx-runtime");
|
|
3472
3564
|
Icon = ({ name, className, ...props }) => {
|
|
3473
3565
|
const IconComponent = Icons_default[name];
|
|
3474
3566
|
if (!IconComponent) {
|
|
3475
3567
|
console.error(`Icon "${name}" not found.`);
|
|
3476
3568
|
return null;
|
|
3477
3569
|
}
|
|
3478
|
-
return /* @__PURE__ */ (0,
|
|
3570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(IconComponent, { ...props, className });
|
|
3479
3571
|
};
|
|
3480
3572
|
Icon_default = Icon;
|
|
3481
3573
|
}
|
|
@@ -3486,7 +3578,7 @@ var Pagination_exports = {};
|
|
|
3486
3578
|
__export(Pagination_exports, {
|
|
3487
3579
|
default: () => Pagination_default
|
|
3488
3580
|
});
|
|
3489
|
-
var import_react39,
|
|
3581
|
+
var import_react39, import_jsx_runtime66, Pagination, Pagination_default;
|
|
3490
3582
|
var init_Pagination = __esm({
|
|
3491
3583
|
"src/components/Pagination.tsx"() {
|
|
3492
3584
|
"use strict";
|
|
@@ -3497,7 +3589,7 @@ var init_Pagination = __esm({
|
|
|
3497
3589
|
init_StyleTypes();
|
|
3498
3590
|
init_InputControlType();
|
|
3499
3591
|
init_Hyperlink();
|
|
3500
|
-
|
|
3592
|
+
import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3501
3593
|
Pagination = (props) => {
|
|
3502
3594
|
const { dataset, path, query, showPageSizeSelector = false, showJumpToPage = false } = props;
|
|
3503
3595
|
const builder = (0, import_react39.useMemo)(() => {
|
|
@@ -3541,7 +3633,7 @@ var init_Pagination = __esm({
|
|
|
3541
3633
|
return range;
|
|
3542
3634
|
};
|
|
3543
3635
|
const paginationRange = getPaginationRange();
|
|
3544
|
-
const PageButton = ({ page, children }) => /* @__PURE__ */ (0,
|
|
3636
|
+
const PageButton = ({ page, children }) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3545
3637
|
Hyperlink,
|
|
3546
3638
|
{
|
|
3547
3639
|
linkType: "Link" /* Link */,
|
|
@@ -3556,9 +3648,9 @@ var init_Pagination = __esm({
|
|
|
3556
3648
|
);
|
|
3557
3649
|
const NavigationButton = ({ page, disabled, children }) => {
|
|
3558
3650
|
if (disabled) {
|
|
3559
|
-
return /* @__PURE__ */ (0,
|
|
3651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.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 });
|
|
3560
3652
|
}
|
|
3561
|
-
return /* @__PURE__ */ (0,
|
|
3653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3562
3654
|
Hyperlink,
|
|
3563
3655
|
{
|
|
3564
3656
|
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",
|
|
@@ -3568,35 +3660,35 @@ var init_Pagination = __esm({
|
|
|
3568
3660
|
);
|
|
3569
3661
|
};
|
|
3570
3662
|
if (totalPages <= 1 && totalItems === 0) return null;
|
|
3571
|
-
return /* @__PURE__ */ (0,
|
|
3572
|
-
/* @__PURE__ */ (0,
|
|
3573
|
-
/* @__PURE__ */ (0,
|
|
3663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "py-6 border-t mt-6", children: [
|
|
3664
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col sm:flex-row items-center justify-between gap-4", children: [
|
|
3665
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "text-sm", children: [
|
|
3574
3666
|
"Showing ",
|
|
3575
|
-
/* @__PURE__ */ (0,
|
|
3667
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { className: "font-semibold", children: [
|
|
3576
3668
|
startItem,
|
|
3577
3669
|
"-",
|
|
3578
3670
|
endItem
|
|
3579
3671
|
] }),
|
|
3580
3672
|
" ",
|
|
3581
3673
|
"out of ",
|
|
3582
|
-
/* @__PURE__ */ (0,
|
|
3674
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "font-semibold", children: totalItems.toLocaleString() }),
|
|
3583
3675
|
" results"
|
|
3584
3676
|
] }),
|
|
3585
|
-
totalPages > 1 && /* @__PURE__ */ (0,
|
|
3586
|
-
/* @__PURE__ */ (0,
|
|
3677
|
+
totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center space-x-1", children: [
|
|
3678
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
3587
3679
|
NavigationButton,
|
|
3588
3680
|
{
|
|
3589
3681
|
page: activePageNumber - 1,
|
|
3590
3682
|
disabled: activePageNumber === 1,
|
|
3591
3683
|
children: [
|
|
3592
|
-
/* @__PURE__ */ (0,
|
|
3593
|
-
/* @__PURE__ */ (0,
|
|
3684
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon_default, { name: "chevronLeft", className: "w-4 h-4 mr-1" }) }),
|
|
3685
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Prev" })
|
|
3594
3686
|
]
|
|
3595
3687
|
}
|
|
3596
3688
|
),
|
|
3597
3689
|
paginationRange.map((item, index) => {
|
|
3598
3690
|
if (item === "...") {
|
|
3599
|
-
return /* @__PURE__ */ (0,
|
|
3691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3600
3692
|
"span",
|
|
3601
3693
|
{
|
|
3602
3694
|
className: "min-w-[20px] md:min-w-[40px] h-10 flex items-center justify-center text-gray-500",
|
|
@@ -3606,23 +3698,23 @@ var init_Pagination = __esm({
|
|
|
3606
3698
|
);
|
|
3607
3699
|
}
|
|
3608
3700
|
const page = item;
|
|
3609
|
-
return /* @__PURE__ */ (0,
|
|
3701
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(PageButton, { page, children: page }, page);
|
|
3610
3702
|
}),
|
|
3611
|
-
/* @__PURE__ */ (0,
|
|
3703
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
3612
3704
|
NavigationButton,
|
|
3613
3705
|
{
|
|
3614
3706
|
page: activePageNumber + 1,
|
|
3615
3707
|
disabled: activePageNumber === totalPages,
|
|
3616
3708
|
children: [
|
|
3617
|
-
/* @__PURE__ */ (0,
|
|
3618
|
-
/* @__PURE__ */ (0,
|
|
3709
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Next" }),
|
|
3710
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Icon_default, { name: "chevronRight", className: "w-4 h-4 ml-1" }) })
|
|
3619
3711
|
]
|
|
3620
3712
|
}
|
|
3621
3713
|
)
|
|
3622
3714
|
] }),
|
|
3623
|
-
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0,
|
|
3624
|
-
/* @__PURE__ */ (0,
|
|
3625
|
-
/* @__PURE__ */ (0,
|
|
3715
|
+
showJumpToPage && totalPages > 5 && /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center space-x-2", children: [
|
|
3716
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Go to:" }),
|
|
3717
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3626
3718
|
"input",
|
|
3627
3719
|
{
|
|
3628
3720
|
type: "number",
|
|
@@ -3643,9 +3735,9 @@ var init_Pagination = __esm({
|
|
|
3643
3735
|
) })
|
|
3644
3736
|
] })
|
|
3645
3737
|
] }),
|
|
3646
|
-
showPageSizeSelector && /* @__PURE__ */ (0,
|
|
3647
|
-
/* @__PURE__ */ (0,
|
|
3648
|
-
/* @__PURE__ */ (0,
|
|
3738
|
+
showPageSizeSelector && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "mt-4 pt-4 border-t bg-default", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex items-center justify-center space-x-2", children: [
|
|
3739
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "Show:" }),
|
|
3740
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex space-x-1", children: [10, 25, 50, 100].map((size) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3649
3741
|
Hyperlink,
|
|
3650
3742
|
{
|
|
3651
3743
|
className: `
|
|
@@ -3657,7 +3749,7 @@ var init_Pagination = __esm({
|
|
|
3657
3749
|
},
|
|
3658
3750
|
size
|
|
3659
3751
|
)) }),
|
|
3660
|
-
/* @__PURE__ */ (0,
|
|
3752
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { className: "text-sm", children: "per page" })
|
|
3661
3753
|
] }) })
|
|
3662
3754
|
] });
|
|
3663
3755
|
};
|
|
@@ -3670,7 +3762,7 @@ var DataBindingControls_exports = {};
|
|
|
3670
3762
|
__export(DataBindingControls_exports, {
|
|
3671
3763
|
default: () => DataBindingControls_default
|
|
3672
3764
|
});
|
|
3673
|
-
var import_react40, import_navigation,
|
|
3765
|
+
var import_react40, import_navigation, import_jsx_runtime67, humanize, escapeODataString, parseFacetSelections, buildFacetFilter, parseODataSearch, SearchIcon, ResetIcon, FilterSlidersIcon, ChevronDownIcon, CheckIcon, CloseIcon, MapPinIcon, BriefcaseIcon, FileTextIcon, TagIcon, getCategoryIcon, normalizeSortOption, DataBindingControls, DataBindingControls_default;
|
|
3674
3766
|
var init_DataBindingControls = __esm({
|
|
3675
3767
|
"src/components/pageRenderingEngine/nodes/DataBindingControls.tsx"() {
|
|
3676
3768
|
"use strict";
|
|
@@ -3679,7 +3771,7 @@ var init_DataBindingControls = __esm({
|
|
|
3679
3771
|
import_navigation = require("next/navigation");
|
|
3680
3772
|
init_Button();
|
|
3681
3773
|
init_StyleTypes();
|
|
3682
|
-
|
|
3774
|
+
import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3683
3775
|
humanize = (value) => value.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
|
|
3684
3776
|
escapeODataString = (value) => value.replace(/'/g, "''");
|
|
3685
3777
|
parseFacetSelections = (filter) => {
|
|
@@ -3702,7 +3794,7 @@ var init_DataBindingControls = __esm({
|
|
|
3702
3794
|
}
|
|
3703
3795
|
return trimmedValue;
|
|
3704
3796
|
};
|
|
3705
|
-
SearchIcon = ({ className = "" }) => /* @__PURE__ */ (0,
|
|
3797
|
+
SearchIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
3706
3798
|
"svg",
|
|
3707
3799
|
{
|
|
3708
3800
|
"aria-hidden": "true",
|
|
@@ -3712,12 +3804,12 @@ var init_DataBindingControls = __esm({
|
|
|
3712
3804
|
stroke: "currentColor",
|
|
3713
3805
|
strokeWidth: "2",
|
|
3714
3806
|
children: [
|
|
3715
|
-
/* @__PURE__ */ (0,
|
|
3716
|
-
/* @__PURE__ */ (0,
|
|
3807
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("circle", { cx: "11", cy: "11", r: "7" }),
|
|
3808
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", d: "m20 20-4-4" })
|
|
3717
3809
|
]
|
|
3718
3810
|
}
|
|
3719
3811
|
);
|
|
3720
|
-
ResetIcon = ({ className = "" }) => /* @__PURE__ */ (0,
|
|
3812
|
+
ResetIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
3721
3813
|
"svg",
|
|
3722
3814
|
{
|
|
3723
3815
|
"aria-hidden": "true",
|
|
@@ -3727,8 +3819,8 @@ var init_DataBindingControls = __esm({
|
|
|
3727
3819
|
stroke: "currentColor",
|
|
3728
3820
|
strokeWidth: "2",
|
|
3729
3821
|
children: [
|
|
3730
|
-
/* @__PURE__ */ (0,
|
|
3731
|
-
/* @__PURE__ */ (0,
|
|
3822
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4 4v6h6" }),
|
|
3823
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3732
3824
|
"path",
|
|
3733
3825
|
{
|
|
3734
3826
|
strokeLinecap: "round",
|
|
@@ -3739,7 +3831,7 @@ var init_DataBindingControls = __esm({
|
|
|
3739
3831
|
]
|
|
3740
3832
|
}
|
|
3741
3833
|
);
|
|
3742
|
-
FilterSlidersIcon = ({ className = "" }) => /* @__PURE__ */ (0,
|
|
3834
|
+
FilterSlidersIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
3743
3835
|
"svg",
|
|
3744
3836
|
{
|
|
3745
3837
|
"aria-hidden": "true",
|
|
@@ -3749,14 +3841,14 @@ var init_DataBindingControls = __esm({
|
|
|
3749
3841
|
stroke: "currentColor",
|
|
3750
3842
|
strokeWidth: "2",
|
|
3751
3843
|
children: [
|
|
3752
|
-
/* @__PURE__ */ (0,
|
|
3753
|
-
/* @__PURE__ */ (0,
|
|
3754
|
-
/* @__PURE__ */ (0,
|
|
3755
|
-
/* @__PURE__ */ (0,
|
|
3844
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M3 4h18M3 12h18M3 20h18" }),
|
|
3845
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("circle", { cx: "8", cy: "4", r: "2", fill: "currentColor" }),
|
|
3846
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("circle", { cx: "16", cy: "12", r: "2", fill: "currentColor" }),
|
|
3847
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("circle", { cx: "10", cy: "20", r: "2", fill: "currentColor" })
|
|
3756
3848
|
]
|
|
3757
3849
|
}
|
|
3758
3850
|
);
|
|
3759
|
-
ChevronDownIcon = ({ className = "" }) => /* @__PURE__ */ (0,
|
|
3851
|
+
ChevronDownIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3760
3852
|
"svg",
|
|
3761
3853
|
{
|
|
3762
3854
|
"aria-hidden": "true",
|
|
@@ -3765,10 +3857,10 @@ var init_DataBindingControls = __esm({
|
|
|
3765
3857
|
viewBox: "0 0 24 24",
|
|
3766
3858
|
stroke: "currentColor",
|
|
3767
3859
|
strokeWidth: "2",
|
|
3768
|
-
children: /* @__PURE__ */ (0,
|
|
3860
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m19 9-7 7-7-7" })
|
|
3769
3861
|
}
|
|
3770
3862
|
);
|
|
3771
|
-
CheckIcon = ({ className = "" }) => /* @__PURE__ */ (0,
|
|
3863
|
+
CheckIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3772
3864
|
"svg",
|
|
3773
3865
|
{
|
|
3774
3866
|
"aria-hidden": "true",
|
|
@@ -3777,10 +3869,10 @@ var init_DataBindingControls = __esm({
|
|
|
3777
3869
|
viewBox: "0 0 24 24",
|
|
3778
3870
|
stroke: "currentColor",
|
|
3779
3871
|
strokeWidth: "2.5",
|
|
3780
|
-
children: /* @__PURE__ */ (0,
|
|
3872
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" })
|
|
3781
3873
|
}
|
|
3782
3874
|
);
|
|
3783
|
-
CloseIcon = ({ className = "" }) => /* @__PURE__ */ (0,
|
|
3875
|
+
CloseIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3784
3876
|
"svg",
|
|
3785
3877
|
{
|
|
3786
3878
|
"aria-hidden": "true",
|
|
@@ -3789,10 +3881,10 @@ var init_DataBindingControls = __esm({
|
|
|
3789
3881
|
viewBox: "0 0 24 24",
|
|
3790
3882
|
stroke: "currentColor",
|
|
3791
3883
|
strokeWidth: "2",
|
|
3792
|
-
children: /* @__PURE__ */ (0,
|
|
3884
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 18L18 6M6 6l12 12" })
|
|
3793
3885
|
}
|
|
3794
3886
|
);
|
|
3795
|
-
MapPinIcon = ({ className = "" }) => /* @__PURE__ */ (0,
|
|
3887
|
+
MapPinIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
3796
3888
|
"svg",
|
|
3797
3889
|
{
|
|
3798
3890
|
"aria-hidden": "true",
|
|
@@ -3802,7 +3894,7 @@ var init_DataBindingControls = __esm({
|
|
|
3802
3894
|
stroke: "currentColor",
|
|
3803
3895
|
strokeWidth: "2",
|
|
3804
3896
|
children: [
|
|
3805
|
-
/* @__PURE__ */ (0,
|
|
3897
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3806
3898
|
"path",
|
|
3807
3899
|
{
|
|
3808
3900
|
strokeLinecap: "round",
|
|
@@ -3810,7 +3902,7 @@ var init_DataBindingControls = __esm({
|
|
|
3810
3902
|
d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"
|
|
3811
3903
|
}
|
|
3812
3904
|
),
|
|
3813
|
-
/* @__PURE__ */ (0,
|
|
3905
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3814
3906
|
"path",
|
|
3815
3907
|
{
|
|
3816
3908
|
strokeLinecap: "round",
|
|
@@ -3821,7 +3913,7 @@ var init_DataBindingControls = __esm({
|
|
|
3821
3913
|
]
|
|
3822
3914
|
}
|
|
3823
3915
|
);
|
|
3824
|
-
BriefcaseIcon = ({ className = "" }) => /* @__PURE__ */ (0,
|
|
3916
|
+
BriefcaseIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3825
3917
|
"svg",
|
|
3826
3918
|
{
|
|
3827
3919
|
"aria-hidden": "true",
|
|
@@ -3830,7 +3922,7 @@ var init_DataBindingControls = __esm({
|
|
|
3830
3922
|
viewBox: "0 0 24 24",
|
|
3831
3923
|
stroke: "currentColor",
|
|
3832
3924
|
strokeWidth: "2",
|
|
3833
|
-
children: /* @__PURE__ */ (0,
|
|
3925
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3834
3926
|
"path",
|
|
3835
3927
|
{
|
|
3836
3928
|
strokeLinecap: "round",
|
|
@@ -3840,7 +3932,7 @@ var init_DataBindingControls = __esm({
|
|
|
3840
3932
|
)
|
|
3841
3933
|
}
|
|
3842
3934
|
);
|
|
3843
|
-
FileTextIcon = ({ className = "" }) => /* @__PURE__ */ (0,
|
|
3935
|
+
FileTextIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3844
3936
|
"svg",
|
|
3845
3937
|
{
|
|
3846
3938
|
"aria-hidden": "true",
|
|
@@ -3849,7 +3941,7 @@ var init_DataBindingControls = __esm({
|
|
|
3849
3941
|
viewBox: "0 0 24 24",
|
|
3850
3942
|
stroke: "currentColor",
|
|
3851
3943
|
strokeWidth: "2",
|
|
3852
|
-
children: /* @__PURE__ */ (0,
|
|
3944
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3853
3945
|
"path",
|
|
3854
3946
|
{
|
|
3855
3947
|
strokeLinecap: "round",
|
|
@@ -3859,7 +3951,7 @@ var init_DataBindingControls = __esm({
|
|
|
3859
3951
|
)
|
|
3860
3952
|
}
|
|
3861
3953
|
);
|
|
3862
|
-
TagIcon = ({ className = "" }) => /* @__PURE__ */ (0,
|
|
3954
|
+
TagIcon = ({ className = "" }) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3863
3955
|
"svg",
|
|
3864
3956
|
{
|
|
3865
3957
|
"aria-hidden": "true",
|
|
@@ -3868,7 +3960,7 @@ var init_DataBindingControls = __esm({
|
|
|
3868
3960
|
viewBox: "0 0 24 24",
|
|
3869
3961
|
stroke: "currentColor",
|
|
3870
3962
|
strokeWidth: "2",
|
|
3871
|
-
children: /* @__PURE__ */ (0,
|
|
3963
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3872
3964
|
"path",
|
|
3873
3965
|
{
|
|
3874
3966
|
strokeLinecap: "round",
|
|
@@ -3881,15 +3973,15 @@ var init_DataBindingControls = __esm({
|
|
|
3881
3973
|
getCategoryIcon = (category) => {
|
|
3882
3974
|
const lower = category.toLowerCase();
|
|
3883
3975
|
if (lower.includes("location") || lower.includes("city") || lower.includes("country") || lower.includes("state") || lower.includes("address")) {
|
|
3884
|
-
return /* @__PURE__ */ (0,
|
|
3976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(MapPinIcon, { className: "h-4 w-4" });
|
|
3885
3977
|
}
|
|
3886
3978
|
if (lower.includes("type") || lower.includes("work") || lower.includes("employment") || lower.includes("experience")) {
|
|
3887
|
-
return /* @__PURE__ */ (0,
|
|
3979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(BriefcaseIcon, { className: "h-4 w-4" });
|
|
3888
3980
|
}
|
|
3889
3981
|
if (lower.includes("department") || lower.includes("category") || lower.includes("role") || lower.includes("industry")) {
|
|
3890
|
-
return /* @__PURE__ */ (0,
|
|
3982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(FileTextIcon, { className: "h-4 w-4" });
|
|
3891
3983
|
}
|
|
3892
|
-
return /* @__PURE__ */ (0,
|
|
3984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(TagIcon, { className: "h-4 w-4" });
|
|
3893
3985
|
};
|
|
3894
3986
|
normalizeSortOption = (option) => {
|
|
3895
3987
|
const direction = option.direction.trim();
|
|
@@ -4104,9 +4196,9 @@ var init_DataBindingControls = __esm({
|
|
|
4104
4196
|
if (!shouldShowToolbar && !shouldShowFacets) {
|
|
4105
4197
|
return null;
|
|
4106
4198
|
}
|
|
4107
|
-
const renderFacetItems = (field, values) => /* @__PURE__ */ (0,
|
|
4199
|
+
const renderFacetItems = (field, values) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex flex-col gap-1 pt-1 pb-1", children: values.map((facet) => {
|
|
4108
4200
|
const isSelected = selectedFacetValues.get(field) === facet.value;
|
|
4109
|
-
return /* @__PURE__ */ (0,
|
|
4201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4110
4202
|
"button",
|
|
4111
4203
|
{
|
|
4112
4204
|
type: "button",
|
|
@@ -4114,17 +4206,17 @@ var init_DataBindingControls = __esm({
|
|
|
4114
4206
|
"aria-pressed": isSelected,
|
|
4115
4207
|
className: `group flex w-full cursor-pointer items-center justify-between gap-2.5 rounded-md px-2 py-1.5 text-left text-sm transition-all duration-150 ease-out focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-base ${isSelected ? "bg-neutral-soft font-medium border border-neutral-soft" : "hover:bg-neutral-weak border border-transparent"}`,
|
|
4116
4208
|
children: [
|
|
4117
|
-
/* @__PURE__ */ (0,
|
|
4118
|
-
/* @__PURE__ */ (0,
|
|
4209
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex min-w-0 items-center gap-2.5", children: [
|
|
4210
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4119
4211
|
"span",
|
|
4120
4212
|
{
|
|
4121
4213
|
className: `flex h-4 w-4 shrink-0 items-center justify-center rounded-[3px] border transition-colors duration-150 ${isSelected ? "bg-primary-base border-primary-base" : " group-hover:border-neutral-strong bg-default border-neutral-soft"}`,
|
|
4122
|
-
children: isSelected && /* @__PURE__ */ (0,
|
|
4214
|
+
children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckIcon, { className: "h-3 w-3" })
|
|
4123
4215
|
}
|
|
4124
4216
|
),
|
|
4125
|
-
/* @__PURE__ */ (0,
|
|
4217
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "leading-snug break-words", children: facet.value })
|
|
4126
4218
|
] }),
|
|
4127
|
-
/* @__PURE__ */ (0,
|
|
4219
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4128
4220
|
"span",
|
|
4129
4221
|
{
|
|
4130
4222
|
className: `shrink-0 rounded px-1.5 py-0.5 text-xs transition-colors ml-2 ${isSelected ? "bg-neutral-weak font-semibold" : "bg-neutral-weak font-normal"}`,
|
|
@@ -4136,14 +4228,14 @@ var init_DataBindingControls = __esm({
|
|
|
4136
4228
|
`${field}-${facet.value}`
|
|
4137
4229
|
);
|
|
4138
4230
|
}) });
|
|
4139
|
-
return /* @__PURE__ */ (0,
|
|
4231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4140
4232
|
"div",
|
|
4141
4233
|
{
|
|
4142
4234
|
className: mode === "toolbar" ? "my-4 sm:my-6" : "flex flex-col rounded-md border border-neutral-soft bg-default p-4 shadow-sm",
|
|
4143
4235
|
children: [
|
|
4144
|
-
shouldShowToolbar && /* @__PURE__ */ (0,
|
|
4145
|
-
/* @__PURE__ */ (0,
|
|
4146
|
-
showSearchBar && /* @__PURE__ */ (0,
|
|
4236
|
+
shouldShowToolbar && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
4237
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "hidden lg:flex lg:items-center lg:justify-between lg:gap-4", children: [
|
|
4238
|
+
showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4147
4239
|
"form",
|
|
4148
4240
|
{
|
|
4149
4241
|
role: "search",
|
|
@@ -4153,9 +4245,9 @@ var init_DataBindingControls = __esm({
|
|
|
4153
4245
|
void handleSearch();
|
|
4154
4246
|
},
|
|
4155
4247
|
children: [
|
|
4156
|
-
/* @__PURE__ */ (0,
|
|
4157
|
-
/* @__PURE__ */ (0,
|
|
4158
|
-
/* @__PURE__ */ (0,
|
|
4248
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative min-w-0 flex-1", children: [
|
|
4249
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SearchIcon, { className: "pointer-events-none absolute left-3.5 top-1/2 z-10 h-4 w-4 -translate-y-1/2 opacity-60" }),
|
|
4250
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4159
4251
|
"input",
|
|
4160
4252
|
{
|
|
4161
4253
|
type: "text",
|
|
@@ -4167,23 +4259,23 @@ var init_DataBindingControls = __esm({
|
|
|
4167
4259
|
}
|
|
4168
4260
|
)
|
|
4169
4261
|
] }),
|
|
4170
|
-
/* @__PURE__ */ (0,
|
|
4262
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4171
4263
|
Button_default,
|
|
4172
4264
|
{
|
|
4173
4265
|
ButtonType: "Primary" /* Solid */,
|
|
4174
4266
|
onClick: handleSearch,
|
|
4175
4267
|
className: "!h-10 !rounded-md !px-5 !py-0 flex items-center justify-center gap-1.5 shrink-0",
|
|
4176
4268
|
children: [
|
|
4177
|
-
/* @__PURE__ */ (0,
|
|
4178
|
-
/* @__PURE__ */ (0,
|
|
4269
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SearchIcon, { className: "h-4 w-4" }),
|
|
4270
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: "Search" })
|
|
4179
4271
|
]
|
|
4180
4272
|
}
|
|
4181
4273
|
)
|
|
4182
4274
|
]
|
|
4183
4275
|
}
|
|
4184
4276
|
),
|
|
4185
|
-
hasSortControls && /* @__PURE__ */ (0,
|
|
4186
|
-
/* @__PURE__ */ (0,
|
|
4277
|
+
hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative shrink-0", ref: desktopSortDropdownRef, children: [
|
|
4278
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4187
4279
|
"button",
|
|
4188
4280
|
{
|
|
4189
4281
|
type: "button",
|
|
@@ -4191,11 +4283,11 @@ var init_DataBindingControls = __esm({
|
|
|
4191
4283
|
"aria-expanded": isSortOpen,
|
|
4192
4284
|
className: "inline-flex h-10 items-center justify-between gap-2.5 rounded-md border border-neutral-soft bg-default px-3.5 text-sm font-normal shadow-sm transition-all hover:bg-neutral-weak focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-base cursor-pointer whitespace-nowrap",
|
|
4193
4285
|
children: [
|
|
4194
|
-
/* @__PURE__ */ (0,
|
|
4195
|
-
/* @__PURE__ */ (0,
|
|
4196
|
-
/* @__PURE__ */ (0,
|
|
4286
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "whitespace-nowrap", children: [
|
|
4287
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "opacity-70", children: "Sort by: " }),
|
|
4288
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "font-semibold", children: selectedSortLabel })
|
|
4197
4289
|
] }),
|
|
4198
|
-
/* @__PURE__ */ (0,
|
|
4290
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4199
4291
|
ChevronDownIcon,
|
|
4200
4292
|
{
|
|
4201
4293
|
className: `h-4 w-4 shrink-0 transition-transform duration-200 ${isSortOpen ? "rotate-180" : ""}`
|
|
@@ -4204,17 +4296,17 @@ var init_DataBindingControls = __esm({
|
|
|
4204
4296
|
]
|
|
4205
4297
|
}
|
|
4206
4298
|
),
|
|
4207
|
-
isSortOpen && /* @__PURE__ */ (0,
|
|
4299
|
+
isSortOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "absolute right-0 z-50 mt-1.5 w-max min-w-full max-h-80 overflow-y-auto rounded-md border border-neutral-soft bg-default p-1 shadow-lg", children: normalizedSortOptions.map((option) => {
|
|
4208
4300
|
const isSelected = selectedSortOption?.value === option.value;
|
|
4209
|
-
return /* @__PURE__ */ (0,
|
|
4301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4210
4302
|
"button",
|
|
4211
4303
|
{
|
|
4212
4304
|
type: "button",
|
|
4213
4305
|
onClick: () => handleSelectSort(option.value),
|
|
4214
4306
|
className: `flex w-full items-center justify-between gap-4 rounded-md px-3 py-1.5 text-left text-sm transition-colors cursor-pointer whitespace-nowrap ${isSelected ? "bg-primary-base font-semibold" : "hover:bg-neutral-soft font-normal"}`,
|
|
4215
4307
|
children: [
|
|
4216
|
-
/* @__PURE__ */ (0,
|
|
4217
|
-
isSelected && /* @__PURE__ */ (0,
|
|
4308
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "whitespace-nowrap", children: option.label }),
|
|
4309
|
+
isSelected && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckIcon, { className: "h-4 w-4 shrink-0" })
|
|
4218
4310
|
]
|
|
4219
4311
|
},
|
|
4220
4312
|
option.value
|
|
@@ -4222,8 +4314,8 @@ var init_DataBindingControls = __esm({
|
|
|
4222
4314
|
}) })
|
|
4223
4315
|
] })
|
|
4224
4316
|
] }),
|
|
4225
|
-
/* @__PURE__ */ (0,
|
|
4226
|
-
showSearchBar && /* @__PURE__ */ (0,
|
|
4317
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-2.5 lg:hidden", children: [
|
|
4318
|
+
showSearchBar && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4227
4319
|
"form",
|
|
4228
4320
|
{
|
|
4229
4321
|
role: "search",
|
|
@@ -4233,8 +4325,8 @@ var init_DataBindingControls = __esm({
|
|
|
4233
4325
|
void handleSearch();
|
|
4234
4326
|
},
|
|
4235
4327
|
children: [
|
|
4236
|
-
/* @__PURE__ */ (0,
|
|
4237
|
-
/* @__PURE__ */ (0,
|
|
4328
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SearchIcon, { className: "pointer-events-none absolute left-3.5 top-1/2 z-10 h-4 w-4 -translate-y-1/2 opacity-50" }),
|
|
4329
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4238
4330
|
"input",
|
|
4239
4331
|
{
|
|
4240
4332
|
type: "text",
|
|
@@ -4248,28 +4340,28 @@ var init_DataBindingControls = __esm({
|
|
|
4248
4340
|
]
|
|
4249
4341
|
}
|
|
4250
4342
|
),
|
|
4251
|
-
/* @__PURE__ */ (0,
|
|
4252
|
-
showFacets && /* @__PURE__ */ (0,
|
|
4343
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center justify-between gap-2.5 pt-0.5", children: [
|
|
4344
|
+
showFacets && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4253
4345
|
"button",
|
|
4254
4346
|
{
|
|
4255
4347
|
type: "button",
|
|
4256
4348
|
onClick: () => setIsMobileFiltersOpen(true),
|
|
4257
4349
|
className: "inline-flex h-10 items-center justify-center gap-2 rounded-md border border-neutral-soft bg-default px-3.5 text-sm font-medium shadow-sm transition-all hover:bg-neutral-weak cursor-pointer active:scale-95",
|
|
4258
4350
|
children: [
|
|
4259
|
-
/* @__PURE__ */ (0,
|
|
4260
|
-
/* @__PURE__ */ (0,
|
|
4351
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(FilterSlidersIcon, { className: "h-4 w-4" }),
|
|
4352
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { children: [
|
|
4261
4353
|
"Filters",
|
|
4262
4354
|
selectedFacetCount > 0 ? ` (${selectedFacetCount})` : ""
|
|
4263
4355
|
] }),
|
|
4264
|
-
selectedFacetCount > 0 && /* @__PURE__ */ (0,
|
|
4265
|
-
/* @__PURE__ */ (0,
|
|
4266
|
-
/* @__PURE__ */ (0,
|
|
4356
|
+
selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("span", { className: "relative flex h-2 w-2", children: [
|
|
4357
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-primary-base opacity-75" }),
|
|
4358
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "relative inline-flex rounded-full h-2 w-2 bg-primary-base" })
|
|
4267
4359
|
] })
|
|
4268
4360
|
]
|
|
4269
4361
|
}
|
|
4270
4362
|
),
|
|
4271
|
-
hasSortControls && /* @__PURE__ */ (0,
|
|
4272
|
-
/* @__PURE__ */ (0,
|
|
4363
|
+
hasSortControls && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative shrink-0 ml-auto", ref: mobileSortDropdownRef, children: [
|
|
4364
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4273
4365
|
"button",
|
|
4274
4366
|
{
|
|
4275
4367
|
type: "button",
|
|
@@ -4277,8 +4369,8 @@ var init_DataBindingControls = __esm({
|
|
|
4277
4369
|
"aria-expanded": isSortOpen,
|
|
4278
4370
|
className: "inline-flex h-10 items-center justify-between gap-2 rounded-md border border-neutral-soft bg-default px-3.5 text-sm font-medium shadow-sm transition-all hover:bg-neutral-weak cursor-pointer whitespace-nowrap",
|
|
4279
4371
|
children: [
|
|
4280
|
-
/* @__PURE__ */ (0,
|
|
4281
|
-
/* @__PURE__ */ (0,
|
|
4372
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "whitespace-nowrap font-medium", children: selectedSortLabel }),
|
|
4373
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4282
4374
|
ChevronDownIcon,
|
|
4283
4375
|
{
|
|
4284
4376
|
className: `h-4 w-4 shrink-0 transition-transform duration-200 ${isSortOpen ? "rotate-180" : ""}`
|
|
@@ -4287,17 +4379,17 @@ var init_DataBindingControls = __esm({
|
|
|
4287
4379
|
]
|
|
4288
4380
|
}
|
|
4289
4381
|
),
|
|
4290
|
-
isSortOpen && /* @__PURE__ */ (0,
|
|
4382
|
+
isSortOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "absolute right-0 z-50 mt-1.5 w-max min-w-[160px] max-h-80 overflow-y-auto rounded-md border border-neutral-soft bg-default p-1 shadow-xl", children: normalizedSortOptions.map((option) => {
|
|
4291
4383
|
const isSelected = selectedSortOption?.value === option.value;
|
|
4292
|
-
return /* @__PURE__ */ (0,
|
|
4384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4293
4385
|
"button",
|
|
4294
4386
|
{
|
|
4295
4387
|
type: "button",
|
|
4296
4388
|
onClick: () => handleSelectSort(option.value),
|
|
4297
4389
|
className: `flex w-full items-center justify-between gap-3 rounded-md px-3 py-2 text-left text-sm transition-colors cursor-pointer whitespace-nowrap ${isSelected ? "bg-primary-base font-semibold" : "hover:bg-neutral-soft font-normal"}`,
|
|
4298
4390
|
children: [
|
|
4299
|
-
/* @__PURE__ */ (0,
|
|
4300
|
-
isSelected && /* @__PURE__ */ (0,
|
|
4391
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "whitespace-nowrap", children: option.label }),
|
|
4392
|
+
isSelected && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckIcon, { className: "h-4 w-4 shrink-0" })
|
|
4301
4393
|
]
|
|
4302
4394
|
},
|
|
4303
4395
|
option.value
|
|
@@ -4305,8 +4397,8 @@ var init_DataBindingControls = __esm({
|
|
|
4305
4397
|
}) })
|
|
4306
4398
|
] })
|
|
4307
4399
|
] }),
|
|
4308
|
-
selectedFacetCount > 0 && /* @__PURE__ */ (0,
|
|
4309
|
-
Array.from(selectedFacetValues.entries()).map(([field, value]) => /* @__PURE__ */ (0,
|
|
4400
|
+
selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-wrap items-center gap-1.5 pt-1", children: [
|
|
4401
|
+
Array.from(selectedFacetValues.entries()).map(([field, value]) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4310
4402
|
"button",
|
|
4311
4403
|
{
|
|
4312
4404
|
type: "button",
|
|
@@ -4314,13 +4406,13 @@ var init_DataBindingControls = __esm({
|
|
|
4314
4406
|
className: "group inline-flex max-w-full cursor-pointer items-center gap-1.5 rounded-md border border-neutral-soft bg-neutral-weak px-2.5 py-1 text-xs transition-colors hover:bg-neutral-soft",
|
|
4315
4407
|
title: `Remove filter: ${value}`,
|
|
4316
4408
|
children: [
|
|
4317
|
-
/* @__PURE__ */ (0,
|
|
4318
|
-
/* @__PURE__ */ (0,
|
|
4409
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "font-medium truncate max-w-[140px]", children: value }),
|
|
4410
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CloseIcon, { className: "h-3 w-3 shrink-0 opacity-60 group-hover:opacity-100" })
|
|
4319
4411
|
]
|
|
4320
4412
|
},
|
|
4321
4413
|
`mobile-chip-${field}`
|
|
4322
4414
|
)),
|
|
4323
|
-
/* @__PURE__ */ (0,
|
|
4415
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4324
4416
|
"button",
|
|
4325
4417
|
{
|
|
4326
4418
|
type: "button",
|
|
@@ -4331,8 +4423,8 @@ var init_DataBindingControls = __esm({
|
|
|
4331
4423
|
)
|
|
4332
4424
|
] })
|
|
4333
4425
|
] }),
|
|
4334
|
-
isMobileFiltersOpen && /* @__PURE__ */ (0,
|
|
4335
|
-
/* @__PURE__ */ (0,
|
|
4426
|
+
isMobileFiltersOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "fixed inset-0 z-50 flex flex-col justify-end lg:hidden", children: [
|
|
4427
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4336
4428
|
"div",
|
|
4337
4429
|
{
|
|
4338
4430
|
className: "fixed inset-0 bg-neutral-stronger/60 backdrop-blur-xs transition-opacity duration-300",
|
|
@@ -4340,12 +4432,12 @@ var init_DataBindingControls = __esm({
|
|
|
4340
4432
|
"aria-hidden": "true"
|
|
4341
4433
|
}
|
|
4342
4434
|
),
|
|
4343
|
-
/* @__PURE__ */ (0,
|
|
4344
|
-
/* @__PURE__ */ (0,
|
|
4345
|
-
/* @__PURE__ */ (0,
|
|
4346
|
-
/* @__PURE__ */ (0,
|
|
4347
|
-
/* @__PURE__ */ (0,
|
|
4348
|
-
selectedFacetCount > 0 && /* @__PURE__ */ (0,
|
|
4435
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative z-10 flex h-[85vh] max-h-[85vh] w-full flex-col rounded-t-xl border-t border-neutral-soft bg-default shadow-2xl transition-transform duration-300 animate-in slide-in-from-bottom", children: [
|
|
4436
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "pt-2.5 pb-1", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "mx-auto h-1.5 w-12 rounded-full bg-neutral-soft" }) }),
|
|
4437
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center justify-between px-5 py-3 border-b border-neutral-soft", children: [
|
|
4438
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("h2", { className: "text-lg font-bold tracking-tight", children: "Filters" }),
|
|
4439
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
4440
|
+
selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4349
4441
|
"button",
|
|
4350
4442
|
{
|
|
4351
4443
|
type: "button",
|
|
@@ -4354,38 +4446,38 @@ var init_DataBindingControls = __esm({
|
|
|
4354
4446
|
children: "Clear all"
|
|
4355
4447
|
}
|
|
4356
4448
|
),
|
|
4357
|
-
/* @__PURE__ */ (0,
|
|
4449
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4358
4450
|
"button",
|
|
4359
4451
|
{
|
|
4360
4452
|
type: "button",
|
|
4361
4453
|
onClick: () => setIsMobileFiltersOpen(false),
|
|
4362
4454
|
className: "p-1 rounded-full hover:bg-neutral-weak transition-colors cursor-pointer",
|
|
4363
4455
|
"aria-label": "Close filters",
|
|
4364
|
-
children: /* @__PURE__ */ (0,
|
|
4456
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CloseIcon, { className: "h-5 w-5 opacity-70" })
|
|
4365
4457
|
}
|
|
4366
4458
|
)
|
|
4367
4459
|
] })
|
|
4368
4460
|
] }),
|
|
4369
|
-
/* @__PURE__ */ (0,
|
|
4461
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex-1 overflow-y-auto px-5 py-3 space-y-3 divide-y divide-neutral-soft", children: activeFacets.map(([field, values]) => {
|
|
4370
4462
|
const isOpen = !collapsedCategories[field];
|
|
4371
4463
|
const selectedValue = selectedFacetValues.get(field);
|
|
4372
4464
|
const categorySearch = facetCategorySearch[field]?.toLowerCase() || "";
|
|
4373
4465
|
const filteredValues = categorySearch ? values.filter((v) => v.value.toLowerCase().includes(categorySearch)) : values;
|
|
4374
|
-
return /* @__PURE__ */ (0,
|
|
4375
|
-
/* @__PURE__ */ (0,
|
|
4466
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "pt-3 first:pt-0", children: [
|
|
4467
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4376
4468
|
"button",
|
|
4377
4469
|
{
|
|
4378
4470
|
type: "button",
|
|
4379
4471
|
onClick: () => toggleCategory(field),
|
|
4380
4472
|
className: "flex w-full cursor-pointer items-center justify-between rounded-md py-2 text-left transition-colors",
|
|
4381
4473
|
children: [
|
|
4382
|
-
/* @__PURE__ */ (0,
|
|
4383
|
-
/* @__PURE__ */ (0,
|
|
4384
|
-
/* @__PURE__ */ (0,
|
|
4474
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-2.5", children: [
|
|
4475
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-neutral-soft bg-neutral-weak", children: getCategoryIcon(field) }),
|
|
4476
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "font-semibold text-sm", children: humanize(field) })
|
|
4385
4477
|
] }),
|
|
4386
|
-
/* @__PURE__ */ (0,
|
|
4387
|
-
selectedValue && /* @__PURE__ */ (0,
|
|
4388
|
-
/* @__PURE__ */ (0,
|
|
4478
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
4479
|
+
selectedValue && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-primary-base text-xs font-bold leading-none", children: "1" }),
|
|
4480
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4389
4481
|
ChevronDownIcon,
|
|
4390
4482
|
{
|
|
4391
4483
|
className: `h-4 w-4 transition-transform duration-200 ${isOpen ? "rotate-180" : ""}`
|
|
@@ -4395,10 +4487,10 @@ var init_DataBindingControls = __esm({
|
|
|
4395
4487
|
]
|
|
4396
4488
|
}
|
|
4397
4489
|
),
|
|
4398
|
-
isOpen && /* @__PURE__ */ (0,
|
|
4399
|
-
values.length > 5 && /* @__PURE__ */ (0,
|
|
4400
|
-
/* @__PURE__ */ (0,
|
|
4401
|
-
/* @__PURE__ */ (0,
|
|
4490
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "pt-2 pb-1 pl-1 pr-1 space-y-1.5", children: [
|
|
4491
|
+
values.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "relative mb-2", children: [
|
|
4492
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(SearchIcon, { className: "pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 opacity-50" }),
|
|
4493
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4402
4494
|
"input",
|
|
4403
4495
|
{
|
|
4404
4496
|
type: "text",
|
|
@@ -4412,9 +4504,9 @@ var init_DataBindingControls = __esm({
|
|
|
4412
4504
|
}
|
|
4413
4505
|
)
|
|
4414
4506
|
] }),
|
|
4415
|
-
filteredValues.length === 0 ? /* @__PURE__ */ (0,
|
|
4507
|
+
filteredValues.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "py-2 text-center text-xs opacity-60", children: "No matching options" }) : filteredValues.map((facet) => {
|
|
4416
4508
|
const isChecked = selectedValue === facet.value;
|
|
4417
|
-
return /* @__PURE__ */ (0,
|
|
4509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4418
4510
|
"button",
|
|
4419
4511
|
{
|
|
4420
4512
|
type: "button",
|
|
@@ -4424,17 +4516,17 @@ var init_DataBindingControls = __esm({
|
|
|
4424
4516
|
"aria-pressed": isChecked,
|
|
4425
4517
|
className: `flex w-full cursor-pointer items-center justify-between gap-3 rounded-md px-2.5 py-2 text-left text-sm transition-colors ${isChecked ? "bg-neutral-soft font-medium" : "hover:bg-neutral-weak"}`,
|
|
4426
4518
|
children: [
|
|
4427
|
-
/* @__PURE__ */ (0,
|
|
4428
|
-
/* @__PURE__ */ (0,
|
|
4519
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
4520
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4429
4521
|
"span",
|
|
4430
4522
|
{
|
|
4431
4523
|
className: `flex h-5 w-5 shrink-0 items-center justify-center rounded-md border transition-colors ${isChecked ? "bg-primary-base border-primary-base" : "border-neutral-soft bg-default"}`,
|
|
4432
|
-
children: isChecked && /* @__PURE__ */ (0,
|
|
4524
|
+
children: isChecked && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CheckIcon, { className: "h-3.5 w-3.5" })
|
|
4433
4525
|
}
|
|
4434
4526
|
),
|
|
4435
|
-
/* @__PURE__ */ (0,
|
|
4527
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "leading-snug break-words", children: facet.value })
|
|
4436
4528
|
] }),
|
|
4437
|
-
/* @__PURE__ */ (0,
|
|
4529
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "shrink-0 text-xs opacity-60 ml-2", children: facet.count })
|
|
4438
4530
|
]
|
|
4439
4531
|
},
|
|
4440
4532
|
`drawer-${field}-${facet.value}`
|
|
@@ -4443,8 +4535,8 @@ var init_DataBindingControls = __esm({
|
|
|
4443
4535
|
] })
|
|
4444
4536
|
] }, `drawer-cat-${field}`);
|
|
4445
4537
|
}) }),
|
|
4446
|
-
/* @__PURE__ */ (0,
|
|
4447
|
-
/* @__PURE__ */ (0,
|
|
4538
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-3 border-t border-neutral-soft bg-default p-4", children: [
|
|
4539
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4448
4540
|
"button",
|
|
4449
4541
|
{
|
|
4450
4542
|
type: "button",
|
|
@@ -4453,7 +4545,7 @@ var init_DataBindingControls = __esm({
|
|
|
4453
4545
|
children: "Close"
|
|
4454
4546
|
}
|
|
4455
4547
|
),
|
|
4456
|
-
/* @__PURE__ */ (0,
|
|
4548
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4457
4549
|
"button",
|
|
4458
4550
|
{
|
|
4459
4551
|
type: "button",
|
|
@@ -4469,14 +4561,14 @@ var init_DataBindingControls = __esm({
|
|
|
4469
4561
|
] })
|
|
4470
4562
|
] })
|
|
4471
4563
|
] }),
|
|
4472
|
-
shouldShowFacets && /* @__PURE__ */ (0,
|
|
4473
|
-
/* @__PURE__ */ (0,
|
|
4474
|
-
/* @__PURE__ */ (0,
|
|
4475
|
-
/* @__PURE__ */ (0,
|
|
4476
|
-
/* @__PURE__ */ (0,
|
|
4477
|
-
selectedFacetCount > 0 && /* @__PURE__ */ (0,
|
|
4564
|
+
shouldShowFacets && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex flex-col gap-3", children: [
|
|
4565
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center justify-between border-b border-neutral-soft pb-3", children: [
|
|
4566
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
4567
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(FilterSlidersIcon, { className: "h-4 w-4" }),
|
|
4568
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("h2", { className: "text-base font-semibold tracking-tight", children: "Filters" }),
|
|
4569
|
+
selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "flex h-5 items-center justify-center rounded-full bg-primary-base px-2 text-xs font-semibold", children: selectedFacetCount })
|
|
4478
4570
|
] }),
|
|
4479
|
-
hasActiveFiltersOrSort && /* @__PURE__ */ (0,
|
|
4571
|
+
hasActiveFiltersOrSort && /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4480
4572
|
"button",
|
|
4481
4573
|
{
|
|
4482
4574
|
type: "button",
|
|
@@ -4484,13 +4576,13 @@ var init_DataBindingControls = __esm({
|
|
|
4484
4576
|
className: "group inline-flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium transition-colors duration-150 hover:bg-neutral-soft focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-base",
|
|
4485
4577
|
"aria-label": "Clear all filters and sorting",
|
|
4486
4578
|
children: [
|
|
4487
|
-
/* @__PURE__ */ (0,
|
|
4488
|
-
/* @__PURE__ */ (0,
|
|
4579
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(ResetIcon, { className: "h-3.5 w-3.5 transition-transform duration-200 group-hover:-rotate-45" }),
|
|
4580
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: "Clear all" })
|
|
4489
4581
|
]
|
|
4490
4582
|
}
|
|
4491
4583
|
)
|
|
4492
4584
|
] }),
|
|
4493
|
-
selectedFacetCount > 0 && /* @__PURE__ */ (0,
|
|
4585
|
+
selectedFacetCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex flex-wrap gap-1.5 pb-2.5 border-b border-neutral-soft", children: Array.from(selectedFacetValues.entries()).map(([field, value]) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4494
4586
|
"button",
|
|
4495
4587
|
{
|
|
4496
4588
|
type: "button",
|
|
@@ -4498,35 +4590,35 @@ var init_DataBindingControls = __esm({
|
|
|
4498
4590
|
className: "group inline-flex max-w-full cursor-pointer items-center gap-1.5 rounded-md border border-neutral-soft bg-neutral-weak px-2.5 py-1 text-xs transition-colors hover:bg-neutral-soft",
|
|
4499
4591
|
title: `Remove filter: ${value}`,
|
|
4500
4592
|
children: [
|
|
4501
|
-
/* @__PURE__ */ (0,
|
|
4502
|
-
/* @__PURE__ */ (0,
|
|
4593
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "font-medium truncate max-w-[150px]", children: value }),
|
|
4594
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(CloseIcon, { className: "h-3.5 w-3.5 shrink-0 opacity-60 group-hover:opacity-100" })
|
|
4503
4595
|
]
|
|
4504
4596
|
},
|
|
4505
4597
|
`chip-${field}`
|
|
4506
4598
|
)) }),
|
|
4507
|
-
activeFacets.length === 1 && /* @__PURE__ */ (0,
|
|
4508
|
-
/* @__PURE__ */ (0,
|
|
4599
|
+
activeFacets.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("nav", { "aria-label": `${humanize(activeFacets[0][0])} filters`, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "py-1", children: [
|
|
4600
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "px-1 pb-2 font-medium text-sm", children: humanize(activeFacets[0][0]) }),
|
|
4509
4601
|
renderFacetItems(activeFacets[0][0], activeFacets[0][1])
|
|
4510
4602
|
] }) }),
|
|
4511
|
-
activeFacets.length > 1 && /* @__PURE__ */ (0,
|
|
4603
|
+
activeFacets.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex flex-col divide-y divide-neutral-soft", children: activeFacets.map(([field, values]) => {
|
|
4512
4604
|
const isOpen = !collapsedCategories[field];
|
|
4513
|
-
return /* @__PURE__ */ (0,
|
|
4605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4514
4606
|
"div",
|
|
4515
4607
|
{
|
|
4516
4608
|
className: "py-2 first:pt-0 last:pb-0",
|
|
4517
4609
|
children: [
|
|
4518
|
-
/* @__PURE__ */ (0,
|
|
4610
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4519
4611
|
"button",
|
|
4520
4612
|
{
|
|
4521
4613
|
type: "button",
|
|
4522
4614
|
onClick: () => toggleCategory(field),
|
|
4523
4615
|
className: "flex w-full cursor-pointer items-center justify-between rounded-md px-1.5 py-1.5 text-sm font-semibold transition-colors duration-150 hover:bg-neutral-weak focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-base",
|
|
4524
4616
|
children: [
|
|
4525
|
-
/* @__PURE__ */ (0,
|
|
4526
|
-
/* @__PURE__ */ (0,
|
|
4527
|
-
/* @__PURE__ */ (0,
|
|
4617
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
4618
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center rounded border border-neutral-soft bg-neutral-weak", children: getCategoryIcon(field) }),
|
|
4619
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { children: humanize(field) })
|
|
4528
4620
|
] }),
|
|
4529
|
-
/* @__PURE__ */ (0,
|
|
4621
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4530
4622
|
ChevronDownIcon,
|
|
4531
4623
|
{
|
|
4532
4624
|
className: `h-4 w-4 transition-transform duration-200 ease-out ${isOpen ? "rotate-180" : ""}`
|
|
@@ -4535,7 +4627,7 @@ var init_DataBindingControls = __esm({
|
|
|
4535
4627
|
]
|
|
4536
4628
|
}
|
|
4537
4629
|
),
|
|
4538
|
-
isOpen && /* @__PURE__ */ (0,
|
|
4630
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "pt-1", children: renderFacetItems(field, values) })
|
|
4539
4631
|
]
|
|
4540
4632
|
},
|
|
4541
4633
|
field
|
|
@@ -4555,13 +4647,13 @@ var Slider_exports = {};
|
|
|
4555
4647
|
__export(Slider_exports, {
|
|
4556
4648
|
default: () => Slider_default
|
|
4557
4649
|
});
|
|
4558
|
-
var import_react41,
|
|
4650
|
+
var import_react41, import_jsx_runtime68, Slider, ArrowButton, ProgressPill, Slider_default;
|
|
4559
4651
|
var init_Slider = __esm({
|
|
4560
4652
|
"src/components/Slider.tsx"() {
|
|
4561
4653
|
"use strict";
|
|
4562
4654
|
"use client";
|
|
4563
4655
|
import_react41 = __toESM(require("react"));
|
|
4564
|
-
|
|
4656
|
+
import_jsx_runtime68 = require("react/jsx-runtime");
|
|
4565
4657
|
Slider = ({
|
|
4566
4658
|
children,
|
|
4567
4659
|
columns,
|
|
@@ -4719,7 +4811,7 @@ var init_Slider = __esm({
|
|
|
4719
4811
|
if (!import_react41.default.isValidElement(child)) return null;
|
|
4720
4812
|
const childProps = child.props;
|
|
4721
4813
|
const mergedClassName = `${childProps.className ?? ""} w-full`.trim();
|
|
4722
|
-
return /* @__PURE__ */ (0,
|
|
4814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4723
4815
|
"div",
|
|
4724
4816
|
{
|
|
4725
4817
|
className: `flex-none ${scaleOnHover ? "group hover:z-50" : ""} relative`,
|
|
@@ -4731,8 +4823,8 @@ var init_Slider = __esm({
|
|
|
4731
4823
|
index
|
|
4732
4824
|
);
|
|
4733
4825
|
});
|
|
4734
|
-
return /* @__PURE__ */ (0,
|
|
4735
|
-
show_dots && progressPosition === "top" && /* @__PURE__ */ (0,
|
|
4826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "w-full", children: [
|
|
4827
|
+
show_dots && progressPosition === "top" && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex justify-center space-x-1.5 mb-4", children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4736
4828
|
ProgressPill,
|
|
4737
4829
|
{
|
|
4738
4830
|
active: index === currentSlide,
|
|
@@ -4749,14 +4841,14 @@ var init_Slider = __esm({
|
|
|
4749
4841
|
},
|
|
4750
4842
|
index
|
|
4751
4843
|
)) }),
|
|
4752
|
-
/* @__PURE__ */ (0,
|
|
4844
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
4753
4845
|
"div",
|
|
4754
4846
|
{
|
|
4755
4847
|
className: `relative w-full overflow-hidden ${className}`,
|
|
4756
4848
|
onMouseEnter: handleMouseEnter,
|
|
4757
4849
|
onMouseLeave: handleMouseLeave,
|
|
4758
4850
|
children: [
|
|
4759
|
-
/* @__PURE__ */ (0,
|
|
4851
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4760
4852
|
"div",
|
|
4761
4853
|
{
|
|
4762
4854
|
ref: trackRef,
|
|
@@ -4768,32 +4860,32 @@ var init_Slider = __esm({
|
|
|
4768
4860
|
children: slides
|
|
4769
4861
|
}
|
|
4770
4862
|
),
|
|
4771
|
-
show_arrows && /* @__PURE__ */ (0,
|
|
4772
|
-
/* @__PURE__ */ (0,
|
|
4863
|
+
show_arrows && /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
|
|
4864
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4773
4865
|
ArrowButton,
|
|
4774
4866
|
{
|
|
4775
4867
|
direction: "left",
|
|
4776
4868
|
onClick: prevSlide,
|
|
4777
4869
|
visible: infinite_scroll || currentSlide > 0,
|
|
4778
4870
|
className: arrowClassName,
|
|
4779
|
-
children: /* @__PURE__ */ (0,
|
|
4871
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.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_runtime68.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 19.5 8.25 12l7.5-7.5" }) })
|
|
4780
4872
|
}
|
|
4781
4873
|
),
|
|
4782
|
-
/* @__PURE__ */ (0,
|
|
4874
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4783
4875
|
ArrowButton,
|
|
4784
4876
|
{
|
|
4785
4877
|
direction: "right",
|
|
4786
4878
|
onClick: nextSlide,
|
|
4787
4879
|
visible: infinite_scroll || currentSlide < maxSlide,
|
|
4788
4880
|
className: arrowClassName,
|
|
4789
|
-
children: /* @__PURE__ */ (0,
|
|
4881
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.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_runtime68.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m8.25 4.5 7.5 7.5-7.5 7.5" }) })
|
|
4790
4882
|
}
|
|
4791
4883
|
)
|
|
4792
4884
|
] })
|
|
4793
4885
|
]
|
|
4794
4886
|
}
|
|
4795
4887
|
),
|
|
4796
|
-
show_dots && progressPosition !== "top" && /* @__PURE__ */ (0,
|
|
4888
|
+
show_dots && progressPosition !== "top" && /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex justify-center space-x-1.5 mt-5", children: Array.from({ length: totalSlides }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4797
4889
|
ProgressPill,
|
|
4798
4890
|
{
|
|
4799
4891
|
active: index === currentSlide,
|
|
@@ -4818,7 +4910,7 @@ var init_Slider = __esm({
|
|
|
4818
4910
|
visible,
|
|
4819
4911
|
children,
|
|
4820
4912
|
className = ""
|
|
4821
|
-
}) => /* @__PURE__ */ (0,
|
|
4913
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4822
4914
|
"button",
|
|
4823
4915
|
{
|
|
4824
4916
|
className: `
|
|
@@ -4906,7 +4998,7 @@ var init_Slider = __esm({
|
|
|
4906
4998
|
const renderProgressBar = () => {
|
|
4907
4999
|
if (style === "modern" && isActive || style === "cumulative" && shouldShowProgress) {
|
|
4908
5000
|
const displayProgress = style === "cumulative" && isFilled ? 100 : customProgress !== null && customProgress !== void 0 ? customProgress : progress;
|
|
4909
|
-
return /* @__PURE__ */ (0,
|
|
5001
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4910
5002
|
"div",
|
|
4911
5003
|
{
|
|
4912
5004
|
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`,
|
|
@@ -4918,7 +5010,7 @@ var init_Slider = __esm({
|
|
|
4918
5010
|
};
|
|
4919
5011
|
const renderCumulativeFill = () => {
|
|
4920
5012
|
if (style === "cumulative" && isFilled && !isActive) {
|
|
4921
|
-
return /* @__PURE__ */ (0,
|
|
5013
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
4922
5014
|
"div",
|
|
4923
5015
|
{
|
|
4924
5016
|
className: `absolute top-0 left-0 h-full rounded-full ${activeClassName || "bg-white"} transition-all duration-300`,
|
|
@@ -4928,7 +5020,7 @@ var init_Slider = __esm({
|
|
|
4928
5020
|
}
|
|
4929
5021
|
return null;
|
|
4930
5022
|
};
|
|
4931
|
-
return /* @__PURE__ */ (0,
|
|
5023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
4932
5024
|
"button",
|
|
4933
5025
|
{
|
|
4934
5026
|
className: `${baseClasses} ${getStyleClasses()}`,
|
|
@@ -5855,88 +5947,18 @@ var DatafieldNode = (props) => {
|
|
|
5855
5947
|
var DatafieldNode_default = DatafieldNode;
|
|
5856
5948
|
|
|
5857
5949
|
// src/components/pageRenderingEngine/nodes/CounterNode.tsx
|
|
5858
|
-
var
|
|
5859
|
-
var
|
|
5860
|
-
var
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
};
|
|
5866
|
-
var CounterNode = ({ node }) => {
|
|
5867
|
-
const ref = (0, import_react28.useRef)(null);
|
|
5868
|
-
const startValue = typeof node?.startValue === "number" ? node.startValue : Number(node?.startValue) || 0;
|
|
5869
|
-
const endValue = typeof node?.endValue === "number" ? node.endValue : Number(node?.endValue) || 0;
|
|
5870
|
-
const duration = Math.max(Number(node?.duration) || 2e3, 300);
|
|
5871
|
-
const prefix = node?.prefix ?? "";
|
|
5872
|
-
const suffix = node?.suffix ?? "";
|
|
5873
|
-
const format = node?.format;
|
|
5874
|
-
const [displayValue, setDisplayValue] = (0, import_react28.useState)(startValue);
|
|
5875
|
-
const hasAnimatedRef = (0, import_react28.useRef)(false);
|
|
5876
|
-
const runAnimation = (0, import_react28.useCallback)(() => {
|
|
5877
|
-
let startTime = null;
|
|
5878
|
-
let animationFrameId;
|
|
5879
|
-
const step = (timestamp) => {
|
|
5880
|
-
if (!startTime) startTime = timestamp;
|
|
5881
|
-
const progress = Math.min((timestamp - startTime) / duration, 1);
|
|
5882
|
-
const easeOutProgress = 1 - Math.pow(1 - progress, 3);
|
|
5883
|
-
const currentVal = Math.round(startValue + (endValue - startValue) * easeOutProgress);
|
|
5884
|
-
setDisplayValue(currentVal);
|
|
5885
|
-
if (progress < 1) {
|
|
5886
|
-
animationFrameId = requestAnimationFrame(step);
|
|
5887
|
-
} else {
|
|
5888
|
-
setDisplayValue(endValue);
|
|
5889
|
-
}
|
|
5890
|
-
};
|
|
5891
|
-
animationFrameId = requestAnimationFrame(step);
|
|
5892
|
-
return () => {
|
|
5893
|
-
if (animationFrameId) {
|
|
5894
|
-
cancelAnimationFrame(animationFrameId);
|
|
5895
|
-
}
|
|
5896
|
-
};
|
|
5897
|
-
}, [startValue, endValue, duration]);
|
|
5898
|
-
(0, import_react28.useEffect)(() => {
|
|
5899
|
-
const currentRef = ref.current;
|
|
5900
|
-
if (!currentRef) return;
|
|
5901
|
-
if (typeof IntersectionObserver === "undefined") {
|
|
5902
|
-
return runAnimation();
|
|
5903
|
-
}
|
|
5904
|
-
const observer = new IntersectionObserver(
|
|
5905
|
-
(entries) => {
|
|
5906
|
-
entries.forEach((entry) => {
|
|
5907
|
-
if (entry.isIntersecting && !hasAnimatedRef.current) {
|
|
5908
|
-
hasAnimatedRef.current = true;
|
|
5909
|
-
runAnimation();
|
|
5910
|
-
observer.unobserve(entry.target);
|
|
5911
|
-
}
|
|
5912
|
-
});
|
|
5913
|
-
},
|
|
5914
|
-
{ threshold: 0.1 }
|
|
5915
|
-
);
|
|
5916
|
-
observer.observe(currentRef);
|
|
5917
|
-
return () => {
|
|
5918
|
-
observer.disconnect();
|
|
5919
|
-
};
|
|
5920
|
-
}, [runAnimation]);
|
|
5921
|
-
if (!node) return null;
|
|
5922
|
-
const alignClass = format && FORMAT_CLASSES2[format] || "justify-center text-center";
|
|
5923
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5924
|
-
"div",
|
|
5925
|
-
{
|
|
5926
|
-
ref,
|
|
5927
|
-
className: `counter-node inline-flex items-center ${alignClass}`,
|
|
5928
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "counter-display text-3xl font-bold tracking-tight", children: [
|
|
5929
|
-
prefix,
|
|
5930
|
-
displayValue.toLocaleString(),
|
|
5931
|
-
suffix
|
|
5932
|
-
] })
|
|
5933
|
-
}
|
|
5934
|
-
);
|
|
5950
|
+
var import_dynamic9 = __toESM(require("next/dynamic"));
|
|
5951
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
5952
|
+
var CounterNodeClient2 = (0, import_dynamic9.default)(() => Promise.resolve().then(() => (init_CounterNodeClient(), CounterNodeClient_exports)), {
|
|
5953
|
+
ssr: false
|
|
5954
|
+
});
|
|
5955
|
+
var CounterNode = (props) => {
|
|
5956
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CounterNodeClient2, { node: props.node });
|
|
5935
5957
|
};
|
|
5936
5958
|
var CounterNode_default = CounterNode;
|
|
5937
5959
|
|
|
5938
5960
|
// src/components/pageRenderingEngine/nodes/ParagraphNode.tsx
|
|
5939
|
-
var
|
|
5961
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
5940
5962
|
var ParagraphNode = (props) => {
|
|
5941
5963
|
const NodeTypes2 = {
|
|
5942
5964
|
["text"]: TextNode_default,
|
|
@@ -5957,9 +5979,9 @@ var ParagraphNode = (props) => {
|
|
|
5957
5979
|
const isInlineOnlyParent = props.parentTag === "summary";
|
|
5958
5980
|
const hasChildren = props.node.children && props.node.children.length > 0;
|
|
5959
5981
|
if (isInlineOnlyParent) {
|
|
5960
|
-
return /* @__PURE__ */ (0,
|
|
5982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_jsx_runtime44.Fragment, { children: hasChildren && props.node.children.map((node, index) => {
|
|
5961
5983
|
const SelectedNode = NodeTypes2[node.type];
|
|
5962
|
-
return /* @__PURE__ */ (0,
|
|
5984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react29.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5963
5985
|
SelectedNode,
|
|
5964
5986
|
{
|
|
5965
5987
|
node,
|
|
@@ -5972,10 +5994,10 @@ var ParagraphNode = (props) => {
|
|
|
5972
5994
|
) }, index);
|
|
5973
5995
|
}) });
|
|
5974
5996
|
}
|
|
5975
|
-
return /* @__PURE__ */ (0,
|
|
5997
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: " " + formatClasses, children: [
|
|
5976
5998
|
hasChildren && props.node.children.map((node, index) => {
|
|
5977
5999
|
const SelectedNode = NodeTypes2[node.type];
|
|
5978
|
-
return /* @__PURE__ */ (0,
|
|
6000
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react29.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5979
6001
|
SelectedNode,
|
|
5980
6002
|
{
|
|
5981
6003
|
node,
|
|
@@ -5987,14 +6009,14 @@ var ParagraphNode = (props) => {
|
|
|
5987
6009
|
}
|
|
5988
6010
|
) }, index);
|
|
5989
6011
|
}),
|
|
5990
|
-
!hasChildren && /* @__PURE__ */ (0,
|
|
6012
|
+
!hasChildren && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "py-1.5 lg:py-2" })
|
|
5991
6013
|
] });
|
|
5992
6014
|
};
|
|
5993
6015
|
var ParagraphNode_default = ParagraphNode;
|
|
5994
6016
|
|
|
5995
6017
|
// src/components/pageRenderingEngine/nodes/HeadingNode.tsx
|
|
5996
6018
|
var import_react30 = __toESM(require("react"));
|
|
5997
|
-
var
|
|
6019
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
5998
6020
|
var HeadingNode = (props) => {
|
|
5999
6021
|
const NodeTypes2 = {
|
|
6000
6022
|
["text"]: TextNode_default,
|
|
@@ -6011,12 +6033,12 @@ var HeadingNode = (props) => {
|
|
|
6011
6033
|
{
|
|
6012
6034
|
}
|
|
6013
6035
|
const formatClasses = FormatClass[props.node.format] || "";
|
|
6014
|
-
return /* @__PURE__ */ (0,
|
|
6036
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: import_react30.default.createElement(
|
|
6015
6037
|
HeadingTag,
|
|
6016
6038
|
{ className: formatClasses },
|
|
6017
6039
|
props.node.children && props.node.children.map((childNode, index) => {
|
|
6018
6040
|
const SelectedNode = NodeTypes2[childNode.type];
|
|
6019
|
-
return /* @__PURE__ */ (0,
|
|
6041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react30.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectedNode, { node: childNode, dataitem: props.dataitem, session: props.session, apiBaseUrl: props.apiBaseUrl, assetBaseUrl: props.assetBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
6020
6042
|
})
|
|
6021
6043
|
) });
|
|
6022
6044
|
};
|
|
@@ -6027,7 +6049,7 @@ var import_react32 = __toESM(require("react"));
|
|
|
6027
6049
|
|
|
6028
6050
|
// src/components/pageRenderingEngine/nodes/ListItemNode.tsx
|
|
6029
6051
|
var import_react31 = __toESM(require("react"));
|
|
6030
|
-
var
|
|
6052
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
6031
6053
|
var ListItemNode = (props) => {
|
|
6032
6054
|
const NodeTypes2 = {
|
|
6033
6055
|
text: TextNode_default,
|
|
@@ -6044,37 +6066,37 @@ var ListItemNode = (props) => {
|
|
|
6044
6066
|
liStyle.fontSize = match[1].trim();
|
|
6045
6067
|
}
|
|
6046
6068
|
}
|
|
6047
|
-
return /* @__PURE__ */ (0,
|
|
6069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("li", { style: liStyle, children: props.node.children && props.node.children.map((node, index) => {
|
|
6048
6070
|
const SelectedNode = NodeTypes2[node.type];
|
|
6049
6071
|
if (node.type === "linebreak") {
|
|
6050
6072
|
if (!foundFirstBreak) {
|
|
6051
6073
|
foundFirstBreak = true;
|
|
6052
|
-
return /* @__PURE__ */ (0,
|
|
6074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", {}, index);
|
|
6053
6075
|
} else {
|
|
6054
|
-
return /* @__PURE__ */ (0,
|
|
6076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "py-1 lg:py-2" }, index);
|
|
6055
6077
|
}
|
|
6056
6078
|
} else {
|
|
6057
6079
|
foundFirstBreak = false;
|
|
6058
|
-
return /* @__PURE__ */ (0,
|
|
6080
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react31.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
6059
6081
|
}
|
|
6060
6082
|
}) });
|
|
6061
6083
|
};
|
|
6062
6084
|
var ListItemNode_default = ListItemNode;
|
|
6063
6085
|
|
|
6064
6086
|
// src/components/pageRenderingEngine/nodes/ListNode.tsx
|
|
6065
|
-
var
|
|
6087
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
6066
6088
|
var ListNode = (props) => {
|
|
6067
6089
|
const NodeTypes2 = {
|
|
6068
6090
|
listitem: ListItemNode_default
|
|
6069
6091
|
};
|
|
6070
|
-
return /* @__PURE__ */ (0,
|
|
6071
|
-
props.node.listType == "bullet" && /* @__PURE__ */ (0,
|
|
6092
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react32.default.Fragment, { children: [
|
|
6093
|
+
props.node.listType == "bullet" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("ul", { children: props.node.children && props.node.children.map((node, index) => {
|
|
6072
6094
|
const SelectedNode = NodeTypes2[node.type];
|
|
6073
|
-
return /* @__PURE__ */ (0,
|
|
6095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react32.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
6074
6096
|
}) }),
|
|
6075
|
-
props.node.listType == "number" && /* @__PURE__ */ (0,
|
|
6097
|
+
props.node.listType == "number" && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("ol", { children: props.node.children && props.node.children.map((node, index) => {
|
|
6076
6098
|
const SelectedNode = NodeTypes2[node.type];
|
|
6077
|
-
return /* @__PURE__ */ (0,
|
|
6099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react32.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(SelectedNode, { node, dataitem: props.dataitem, routeParameters: props.routeParameters }) }, index);
|
|
6078
6100
|
}) })
|
|
6079
6101
|
] });
|
|
6080
6102
|
};
|
|
@@ -6082,28 +6104,28 @@ var ListNode_default = ListNode;
|
|
|
6082
6104
|
|
|
6083
6105
|
// src/components/pageRenderingEngine/nodes/QuoteNode.tsx
|
|
6084
6106
|
var import_react33 = __toESM(require("react"));
|
|
6085
|
-
var
|
|
6107
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
6086
6108
|
var QuoteNode = (props) => {
|
|
6087
6109
|
const NodeTypes2 = {
|
|
6088
6110
|
["text"]: TextNode_default,
|
|
6089
6111
|
["linebreak"]: LineBreakNode_default,
|
|
6090
6112
|
["link"]: LinkNode_default
|
|
6091
6113
|
};
|
|
6092
|
-
return /* @__PURE__ */ (0,
|
|
6114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("blockquote", { children: props.node.children && props.node.children.map((node, index) => {
|
|
6093
6115
|
const SelectedNode = NodeTypes2[node.type];
|
|
6094
|
-
return /* @__PURE__ */ (0,
|
|
6116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react33.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(SelectedNode, { node, session: props.session, apiBaseUrl: props.apiBaseUrl, routeParameters: props.routeParameters }) }, index);
|
|
6095
6117
|
}) });
|
|
6096
6118
|
};
|
|
6097
6119
|
var QuoteNode_default = QuoteNode;
|
|
6098
6120
|
|
|
6099
6121
|
// src/components/pageRenderingEngine/nodes/CodeNode.tsx
|
|
6100
6122
|
var import_react35 = __toESM(require("react"));
|
|
6101
|
-
var
|
|
6102
|
-
var
|
|
6103
|
-
var CopyButton2 = (0,
|
|
6123
|
+
var import_dynamic10 = __toESM(require("next/dynamic"));
|
|
6124
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
6125
|
+
var CopyButton2 = (0, import_dynamic10.default)(() => Promise.resolve().then(() => (init_CopyButton(), CopyButton_exports)), {
|
|
6104
6126
|
ssr: false,
|
|
6105
6127
|
// optional: fallback UI while loading
|
|
6106
|
-
loading: () => /* @__PURE__ */ (0,
|
|
6128
|
+
loading: () => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "text-gray-400 text-xs", children: "Copy" })
|
|
6107
6129
|
});
|
|
6108
6130
|
var CodeNode = (props) => {
|
|
6109
6131
|
const NodeTypes2 = {
|
|
@@ -6117,14 +6139,14 @@ var CodeNode = (props) => {
|
|
|
6117
6139
|
if (node.type === "link") return node.text || node.url || "";
|
|
6118
6140
|
return "";
|
|
6119
6141
|
}).join("") ?? "";
|
|
6120
|
-
return /* @__PURE__ */ (0,
|
|
6121
|
-
/* @__PURE__ */ (0,
|
|
6122
|
-
/* @__PURE__ */ (0,
|
|
6123
|
-
/* @__PURE__ */ (0,
|
|
6142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { children: [
|
|
6143
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-center relative bg-neutral-strong px-4 py-3 text-xs font-sans justify-between rounded-t-md ", children: [
|
|
6144
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { children: "Code Snippet" }),
|
|
6145
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CopyButton2, { text: textContent })
|
|
6124
6146
|
] }),
|
|
6125
|
-
/* @__PURE__ */ (0,
|
|
6147
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.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) => {
|
|
6126
6148
|
const SelectedNode = NodeTypes2[node.type];
|
|
6127
|
-
return /* @__PURE__ */ (0,
|
|
6149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react35.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
6128
6150
|
SelectedNode,
|
|
6129
6151
|
{
|
|
6130
6152
|
node,
|
|
@@ -6139,15 +6161,15 @@ var CodeNode = (props) => {
|
|
|
6139
6161
|
var CodeNode_default = CodeNode;
|
|
6140
6162
|
|
|
6141
6163
|
// src/components/pageRenderingEngine/nodes/HorizontalRuleNode.tsx
|
|
6142
|
-
var
|
|
6164
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
6143
6165
|
var HorizontalRuleNode = () => {
|
|
6144
|
-
return /* @__PURE__ */ (0,
|
|
6166
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("hr", {});
|
|
6145
6167
|
};
|
|
6146
6168
|
var HorizontalRuleNode_default = HorizontalRuleNode;
|
|
6147
6169
|
|
|
6148
6170
|
// src/components/pageRenderingEngine/nodes/WidgetNode.tsx
|
|
6149
6171
|
var import_react36 = __toESM(require("react"));
|
|
6150
|
-
var
|
|
6172
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
6151
6173
|
var WidgetNode = (props) => {
|
|
6152
6174
|
const getWidgetParameters = () => {
|
|
6153
6175
|
const widgetInputParameters = {
|
|
@@ -6211,7 +6233,7 @@ var WidgetNode = (props) => {
|
|
|
6211
6233
|
};
|
|
6212
6234
|
const widgetCode = props.node?.widgetCode;
|
|
6213
6235
|
if (!widgetCode) {
|
|
6214
|
-
return /* @__PURE__ */ (0,
|
|
6236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_jsx_runtime52.Fragment, { children: "Invalid widget" });
|
|
6215
6237
|
}
|
|
6216
6238
|
const widgetParams = getWidgetParameters();
|
|
6217
6239
|
const WidgetRenderer = props.widgetRenderer;
|
|
@@ -6220,7 +6242,7 @@ var WidgetNode = (props) => {
|
|
|
6220
6242
|
}
|
|
6221
6243
|
return (
|
|
6222
6244
|
// eslint-disable-next-line react-hooks/static-components
|
|
6223
|
-
/* @__PURE__ */ (0,
|
|
6245
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react36.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
6224
6246
|
WidgetRenderer,
|
|
6225
6247
|
{
|
|
6226
6248
|
params: widgetParams,
|
|
@@ -6237,13 +6259,13 @@ var WidgetNode = (props) => {
|
|
|
6237
6259
|
var WidgetNode_default = WidgetNode;
|
|
6238
6260
|
|
|
6239
6261
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
6240
|
-
var
|
|
6262
|
+
var import_dynamic14 = __toESM(require("next/dynamic"));
|
|
6241
6263
|
var import_react42 = __toESM(require("react"));
|
|
6242
6264
|
|
|
6243
6265
|
// src/components/pageRenderingEngine/nodes/EmbedNode.tsx
|
|
6244
|
-
var
|
|
6245
|
-
var
|
|
6246
|
-
var IframeClient2 = (0,
|
|
6266
|
+
var import_dynamic11 = __toESM(require("next/dynamic"));
|
|
6267
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
6268
|
+
var IframeClient2 = (0, import_dynamic11.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
6247
6269
|
ssr: false
|
|
6248
6270
|
});
|
|
6249
6271
|
var EmbedNode = (props) => {
|
|
@@ -6255,7 +6277,7 @@ var EmbedNode = (props) => {
|
|
|
6255
6277
|
} else {
|
|
6256
6278
|
src = props.node.embedSrc;
|
|
6257
6279
|
}
|
|
6258
|
-
return /* @__PURE__ */ (0,
|
|
6280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "aspect-video", children: src && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(IframeClient2, { src }) });
|
|
6259
6281
|
};
|
|
6260
6282
|
var EmbedNode_default = EmbedNode;
|
|
6261
6283
|
|
|
@@ -6498,10 +6520,10 @@ var PathUtility = class {
|
|
|
6498
6520
|
var PathUtility_default = new PathUtility();
|
|
6499
6521
|
|
|
6500
6522
|
// src/components/NoDataFound.tsx
|
|
6501
|
-
var
|
|
6523
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
6502
6524
|
var NoDataFound = () => {
|
|
6503
|
-
return /* @__PURE__ */ (0,
|
|
6504
|
-
/* @__PURE__ */ (0,
|
|
6525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
6526
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6505
6527
|
"svg",
|
|
6506
6528
|
{
|
|
6507
6529
|
className: "w-10 h-10",
|
|
@@ -6509,7 +6531,7 @@ var NoDataFound = () => {
|
|
|
6509
6531
|
stroke: "currentColor",
|
|
6510
6532
|
viewBox: "0 0 24 24",
|
|
6511
6533
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6512
|
-
children: /* @__PURE__ */ (0,
|
|
6534
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6513
6535
|
"path",
|
|
6514
6536
|
{
|
|
6515
6537
|
strokeLinecap: "round",
|
|
@@ -6520,17 +6542,17 @@ var NoDataFound = () => {
|
|
|
6520
6542
|
)
|
|
6521
6543
|
}
|
|
6522
6544
|
) }) }),
|
|
6523
|
-
/* @__PURE__ */ (0,
|
|
6524
|
-
/* @__PURE__ */ (0,
|
|
6545
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No data available" }),
|
|
6546
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: " max-w-sm mb-0", children: "No records found. Data may be empty or not available at the moment." })
|
|
6525
6547
|
] });
|
|
6526
6548
|
};
|
|
6527
6549
|
var NoDataFound_default = NoDataFound;
|
|
6528
6550
|
|
|
6529
6551
|
// src/components/NoFilterResultsFound.tsx
|
|
6530
|
-
var
|
|
6552
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
6531
6553
|
var NoFilterResultsFound = () => {
|
|
6532
|
-
return /* @__PURE__ */ (0,
|
|
6533
|
-
/* @__PURE__ */ (0,
|
|
6554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 px-4 text-center bg-neutral-weak", children: [
|
|
6555
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "mx-auto w-20 h-20 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6534
6556
|
"svg",
|
|
6535
6557
|
{
|
|
6536
6558
|
className: "w-10 h-10",
|
|
@@ -6538,7 +6560,7 @@ var NoFilterResultsFound = () => {
|
|
|
6538
6560
|
stroke: "currentColor",
|
|
6539
6561
|
viewBox: "0 0 24 24",
|
|
6540
6562
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6541
|
-
children: /* @__PURE__ */ (0,
|
|
6563
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
6542
6564
|
"path",
|
|
6543
6565
|
{
|
|
6544
6566
|
strokeLinecap: "round",
|
|
@@ -6549,17 +6571,17 @@ var NoFilterResultsFound = () => {
|
|
|
6549
6571
|
)
|
|
6550
6572
|
}
|
|
6551
6573
|
) }) }),
|
|
6552
|
-
/* @__PURE__ */ (0,
|
|
6553
|
-
/* @__PURE__ */ (0,
|
|
6574
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("h3", { className: "text-lg font-medium mb-2", children: "No Results Found" }),
|
|
6575
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "max-w-sm mb-0", children: "No data matches the current search query and configured parameters. Try adjusting your search criteria or filters to view available results." })
|
|
6554
6576
|
] });
|
|
6555
6577
|
};
|
|
6556
6578
|
var NoFilterResultsFound_default = NoFilterResultsFound;
|
|
6557
6579
|
|
|
6558
6580
|
// src/components/pageRenderingEngine/nodes/ImageGalleryNode.tsx
|
|
6559
6581
|
init_AssetUtility();
|
|
6560
|
-
var
|
|
6561
|
-
var
|
|
6562
|
-
var HlsPlayer4 = (0,
|
|
6582
|
+
var import_dynamic12 = __toESM(require("next/dynamic"));
|
|
6583
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
6584
|
+
var HlsPlayer4 = (0, import_dynamic12.default)(() => Promise.resolve().then(() => (init_HlsPlayer(), HlsPlayer_exports)), { ssr: false });
|
|
6563
6585
|
var deviceToMediaQuery = (device) => {
|
|
6564
6586
|
switch (device) {
|
|
6565
6587
|
case "lg":
|
|
@@ -6714,8 +6736,8 @@ var ImageGalleryNode = (props) => {
|
|
|
6714
6736
|
right: "justify-end"
|
|
6715
6737
|
};
|
|
6716
6738
|
const formatClasses = FormatClass[props.node.format || ""] || "";
|
|
6717
|
-
return /* @__PURE__ */ (0,
|
|
6718
|
-
hlsSources.length > 0 && /* @__PURE__ */ (0,
|
|
6739
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
|
|
6740
|
+
hlsSources.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6719
6741
|
HlsPlayer4,
|
|
6720
6742
|
{
|
|
6721
6743
|
sources: hlsSources,
|
|
@@ -6730,7 +6752,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6730
6752
|
styles: hlsStyles
|
|
6731
6753
|
}
|
|
6732
6754
|
) }),
|
|
6733
|
-
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0,
|
|
6755
|
+
(staticFallback || staticSources.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: staticFallback ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("picture", { children: [
|
|
6734
6756
|
DEVICE_ORDER.map((deviceKey) => {
|
|
6735
6757
|
const match = staticSources.find(
|
|
6736
6758
|
(img) => img.device === deviceKey
|
|
@@ -6746,7 +6768,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6746
6768
|
if (!srcUrl) {
|
|
6747
6769
|
return null;
|
|
6748
6770
|
}
|
|
6749
|
-
return /* @__PURE__ */ (0,
|
|
6771
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6750
6772
|
"source",
|
|
6751
6773
|
{
|
|
6752
6774
|
media: deviceToMediaQuery(match.device),
|
|
@@ -6771,7 +6793,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6771
6793
|
if (img.borderRadius) {
|
|
6772
6794
|
styles.borderRadius = img.borderRadius;
|
|
6773
6795
|
}
|
|
6774
|
-
return /* @__PURE__ */ (0,
|
|
6796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6775
6797
|
"img",
|
|
6776
6798
|
{
|
|
6777
6799
|
loading: "lazy",
|
|
@@ -6786,7 +6808,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6786
6808
|
})()
|
|
6787
6809
|
] }) : (
|
|
6788
6810
|
/* Case 2: Only device-specific images exist */
|
|
6789
|
-
/* @__PURE__ */ (0,
|
|
6811
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_jsx_runtime58.Fragment, { children: staticSources.map((img, index) => {
|
|
6790
6812
|
const resolved = resolveImage(img);
|
|
6791
6813
|
const imageUrl = resolved?.imageUrl;
|
|
6792
6814
|
if (!imageUrl) {
|
|
@@ -6813,7 +6835,7 @@ var ImageGalleryNode = (props) => {
|
|
|
6813
6835
|
default:
|
|
6814
6836
|
display = "block";
|
|
6815
6837
|
}
|
|
6816
|
-
return /* @__PURE__ */ (0,
|
|
6838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6817
6839
|
"img",
|
|
6818
6840
|
{
|
|
6819
6841
|
loading: "lazy",
|
|
@@ -6954,7 +6976,7 @@ var shouldRenderContainer = (node, dataItem, session) => {
|
|
|
6954
6976
|
|
|
6955
6977
|
// src/components/pageRenderingEngine/nodes/DocumentNode.tsx
|
|
6956
6978
|
init_AssetUtility();
|
|
6957
|
-
var
|
|
6979
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
6958
6980
|
var getNestedValue5 = (obj, path) => {
|
|
6959
6981
|
if (!obj || !path) return void 0;
|
|
6960
6982
|
return path.split(".").reduce((current, key) => {
|
|
@@ -6985,21 +7007,21 @@ var parseDocuments = (value) => {
|
|
|
6985
7007
|
}
|
|
6986
7008
|
return [];
|
|
6987
7009
|
};
|
|
6988
|
-
var PdfIcon2 = () => /* @__PURE__ */ (0,
|
|
7010
|
+
var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
6989
7011
|
"svg",
|
|
6990
7012
|
{
|
|
6991
7013
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6992
7014
|
viewBox: "0 0 48 48",
|
|
6993
7015
|
className: "w-10 h-10",
|
|
6994
7016
|
children: [
|
|
6995
|
-
/* @__PURE__ */ (0,
|
|
7017
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
6996
7018
|
"path",
|
|
6997
7019
|
{
|
|
6998
7020
|
fill: "#e53935",
|
|
6999
7021
|
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"
|
|
7000
7022
|
}
|
|
7001
7023
|
),
|
|
7002
|
-
/* @__PURE__ */ (0,
|
|
7024
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7003
7025
|
"path",
|
|
7004
7026
|
{
|
|
7005
7027
|
fill: "#fff",
|
|
@@ -7009,55 +7031,55 @@ var PdfIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7009
7031
|
]
|
|
7010
7032
|
}
|
|
7011
7033
|
);
|
|
7012
|
-
var ExcelIcon2 = () => /* @__PURE__ */ (0,
|
|
7034
|
+
var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7013
7035
|
"svg",
|
|
7014
7036
|
{
|
|
7015
7037
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7016
7038
|
viewBox: "0 0 48 48",
|
|
7017
7039
|
className: "w-10 h-10",
|
|
7018
7040
|
children: [
|
|
7019
|
-
/* @__PURE__ */ (0,
|
|
7041
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7020
7042
|
"path",
|
|
7021
7043
|
{
|
|
7022
7044
|
fill: "#169154",
|
|
7023
7045
|
d: "M29,6H15.744C14.781,6,14,6.781,14,7.744v7.259h15V6z"
|
|
7024
7046
|
}
|
|
7025
7047
|
),
|
|
7026
|
-
/* @__PURE__ */ (0,
|
|
7048
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7027
7049
|
"path",
|
|
7028
7050
|
{
|
|
7029
7051
|
fill: "#18482a",
|
|
7030
7052
|
d: "M14,33.054v7.202C14,41.219,14.781,42,15.743,42H29v-8.946H14z"
|
|
7031
7053
|
}
|
|
7032
7054
|
),
|
|
7033
|
-
/* @__PURE__ */ (0,
|
|
7034
|
-
/* @__PURE__ */ (0,
|
|
7035
|
-
/* @__PURE__ */ (0,
|
|
7036
|
-
/* @__PURE__ */ (0,
|
|
7055
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#0c8045", d: "M14 15.003H29V24.005000000000003H14z" }),
|
|
7056
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#17472a", d: "M14 24.005H29V33.055H14z" }),
|
|
7057
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("g", { children: [
|
|
7058
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7037
7059
|
"path",
|
|
7038
7060
|
{
|
|
7039
7061
|
fill: "#29c27f",
|
|
7040
7062
|
d: "M42.256,6H29v9.003h15V7.744C44,6.781,43.219,6,42.256,6z"
|
|
7041
7063
|
}
|
|
7042
7064
|
),
|
|
7043
|
-
/* @__PURE__ */ (0,
|
|
7065
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7044
7066
|
"path",
|
|
7045
7067
|
{
|
|
7046
7068
|
fill: "#27663f",
|
|
7047
7069
|
d: "M29,33.054V42h13.257C43.219,42,44,41.219,44,40.257v-7.202H29z"
|
|
7048
7070
|
}
|
|
7049
7071
|
),
|
|
7050
|
-
/* @__PURE__ */ (0,
|
|
7051
|
-
/* @__PURE__ */ (0,
|
|
7072
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#19ac65", d: "M29 15.003H44V24.005000000000003H29z" }),
|
|
7073
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#129652", d: "M29 24.005H44V33.055H29z" })
|
|
7052
7074
|
] }),
|
|
7053
|
-
/* @__PURE__ */ (0,
|
|
7075
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7054
7076
|
"path",
|
|
7055
7077
|
{
|
|
7056
7078
|
fill: "#0c7238",
|
|
7057
7079
|
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"
|
|
7058
7080
|
}
|
|
7059
7081
|
),
|
|
7060
|
-
/* @__PURE__ */ (0,
|
|
7082
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7061
7083
|
"path",
|
|
7062
7084
|
{
|
|
7063
7085
|
fill: "#fff",
|
|
@@ -7067,7 +7089,7 @@ var ExcelIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7067
7089
|
]
|
|
7068
7090
|
}
|
|
7069
7091
|
);
|
|
7070
|
-
var WordIcon2 = () => /* @__PURE__ */ (0,
|
|
7092
|
+
var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7071
7093
|
"svg",
|
|
7072
7094
|
{
|
|
7073
7095
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7075,14 +7097,14 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7075
7097
|
className: "w-10 h-10",
|
|
7076
7098
|
baseProfile: "basic",
|
|
7077
7099
|
children: [
|
|
7078
|
-
/* @__PURE__ */ (0,
|
|
7100
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7079
7101
|
"path",
|
|
7080
7102
|
{
|
|
7081
7103
|
fill: "#283593",
|
|
7082
7104
|
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"
|
|
7083
7105
|
}
|
|
7084
7106
|
),
|
|
7085
|
-
/* @__PURE__ */ (0,
|
|
7107
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7086
7108
|
"linearGradient",
|
|
7087
7109
|
{
|
|
7088
7110
|
id: "qh2LT5tehRDFkLLfb-odWa",
|
|
@@ -7093,19 +7115,19 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7093
7115
|
gradientTransform: "translate(0 -339.89)",
|
|
7094
7116
|
gradientUnits: "userSpaceOnUse",
|
|
7095
7117
|
children: [
|
|
7096
|
-
/* @__PURE__ */ (0,
|
|
7097
|
-
/* @__PURE__ */ (0,
|
|
7118
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("stop", { offset: "0", "stop-color": "#66c0ff" }),
|
|
7119
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("stop", { offset: ".26", "stop-color": "#0094f0" })
|
|
7098
7120
|
]
|
|
7099
7121
|
}
|
|
7100
7122
|
),
|
|
7101
|
-
/* @__PURE__ */ (0,
|
|
7123
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7102
7124
|
"path",
|
|
7103
7125
|
{
|
|
7104
7126
|
fill: "url(#qh2LT5tehRDFkLLfb-odWa)",
|
|
7105
7127
|
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"
|
|
7106
7128
|
}
|
|
7107
7129
|
),
|
|
7108
|
-
/* @__PURE__ */ (0,
|
|
7130
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7109
7131
|
"path",
|
|
7110
7132
|
{
|
|
7111
7133
|
fill: "#1e88e5",
|
|
@@ -7113,21 +7135,21 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7113
7135
|
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"
|
|
7114
7136
|
}
|
|
7115
7137
|
),
|
|
7116
|
-
/* @__PURE__ */ (0,
|
|
7138
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7117
7139
|
"path",
|
|
7118
7140
|
{
|
|
7119
7141
|
fill: "#00e5ff",
|
|
7120
7142
|
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"
|
|
7121
7143
|
}
|
|
7122
7144
|
),
|
|
7123
|
-
/* @__PURE__ */ (0,
|
|
7145
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7124
7146
|
"path",
|
|
7125
7147
|
{
|
|
7126
7148
|
fill: "#1565c0",
|
|
7127
7149
|
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"
|
|
7128
7150
|
}
|
|
7129
7151
|
),
|
|
7130
|
-
/* @__PURE__ */ (0,
|
|
7152
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7131
7153
|
"path",
|
|
7132
7154
|
{
|
|
7133
7155
|
fill: "#fff",
|
|
@@ -7137,42 +7159,42 @@ var WordIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7137
7159
|
]
|
|
7138
7160
|
}
|
|
7139
7161
|
);
|
|
7140
|
-
var StandardIcon2 = () => /* @__PURE__ */ (0,
|
|
7162
|
+
var StandardIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7141
7163
|
"svg",
|
|
7142
7164
|
{
|
|
7143
7165
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7144
7166
|
viewBox: "0 0 48 48",
|
|
7145
7167
|
className: "w-10 h-10",
|
|
7146
7168
|
children: [
|
|
7147
|
-
/* @__PURE__ */ (0,
|
|
7148
|
-
/* @__PURE__ */ (0,
|
|
7169
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
7170
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" })
|
|
7149
7171
|
]
|
|
7150
7172
|
}
|
|
7151
7173
|
);
|
|
7152
|
-
var PowerPointIcon2 = () => /* @__PURE__ */ (0,
|
|
7174
|
+
var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7153
7175
|
"svg",
|
|
7154
7176
|
{
|
|
7155
7177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7156
7178
|
viewBox: "0 0 48 48",
|
|
7157
7179
|
className: "w-10 h-10",
|
|
7158
7180
|
children: [
|
|
7159
|
-
/* @__PURE__ */ (0,
|
|
7181
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7160
7182
|
"path",
|
|
7161
7183
|
{
|
|
7162
7184
|
fill: "#dc4c2c",
|
|
7163
7185
|
d: "M8,24c0,9.941,8.059,18,18,18s18-8.059,18-18H26H8z"
|
|
7164
7186
|
}
|
|
7165
7187
|
),
|
|
7166
|
-
/* @__PURE__ */ (0,
|
|
7167
|
-
/* @__PURE__ */ (0,
|
|
7168
|
-
/* @__PURE__ */ (0,
|
|
7188
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#f7a278", d: "M26,6v18h18C44,14.059,35.941,6,26,6z" }),
|
|
7189
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#c06346", d: "M26,6C16.059,6,8,14.059,8,24h18V6z" }),
|
|
7190
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7169
7191
|
"path",
|
|
7170
7192
|
{
|
|
7171
7193
|
fill: "#9b341f",
|
|
7172
7194
|
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"
|
|
7173
7195
|
}
|
|
7174
7196
|
),
|
|
7175
|
-
/* @__PURE__ */ (0,
|
|
7197
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7176
7198
|
"path",
|
|
7177
7199
|
{
|
|
7178
7200
|
fill: "#fff",
|
|
@@ -7182,16 +7204,16 @@ var PowerPointIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7182
7204
|
]
|
|
7183
7205
|
}
|
|
7184
7206
|
);
|
|
7185
|
-
var TextIcon2 = () => /* @__PURE__ */ (0,
|
|
7207
|
+
var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7186
7208
|
"svg",
|
|
7187
7209
|
{
|
|
7188
7210
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7189
7211
|
viewBox: "0 0 48 48",
|
|
7190
7212
|
className: "w-10 h-10",
|
|
7191
7213
|
children: [
|
|
7192
|
-
/* @__PURE__ */ (0,
|
|
7193
|
-
/* @__PURE__ */ (0,
|
|
7194
|
-
/* @__PURE__ */ (0,
|
|
7214
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#90CAF9", d: "M40 45L8 45 8 3 30 3 40 13z" }),
|
|
7215
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("path", { fill: "#E1F5FE", d: "M38.5 14L29 14 29 4.5z" }),
|
|
7216
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7195
7217
|
"path",
|
|
7196
7218
|
{
|
|
7197
7219
|
fill: "#1976D2",
|
|
@@ -7201,7 +7223,7 @@ var TextIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7201
7223
|
]
|
|
7202
7224
|
}
|
|
7203
7225
|
);
|
|
7204
|
-
var ArchiveIcon2 = () => /* @__PURE__ */ (0,
|
|
7226
|
+
var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7205
7227
|
"svg",
|
|
7206
7228
|
{
|
|
7207
7229
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7211,14 +7233,14 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7211
7233
|
version: "1.0",
|
|
7212
7234
|
className: "w-10 h-10",
|
|
7213
7235
|
children: [
|
|
7214
|
-
/* @__PURE__ */ (0,
|
|
7236
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("clipPath", { id: "273d29c8a6", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7215
7237
|
"path",
|
|
7216
7238
|
{
|
|
7217
7239
|
d: "M 8.90625 0 L 65.90625 0 L 65.90625 75 L 8.90625 75 Z M 8.90625 0 ",
|
|
7218
7240
|
"clip-rule": "nonzero"
|
|
7219
7241
|
}
|
|
7220
7242
|
) }) }),
|
|
7221
|
-
/* @__PURE__ */ (0,
|
|
7243
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("g", { "clip-path": "url(#273d29c8a6)", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7222
7244
|
"path",
|
|
7223
7245
|
{
|
|
7224
7246
|
fill: "#ff9100",
|
|
@@ -7227,7 +7249,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7227
7249
|
"fill-rule": "nonzero"
|
|
7228
7250
|
}
|
|
7229
7251
|
) }),
|
|
7230
|
-
/* @__PURE__ */ (0,
|
|
7252
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7231
7253
|
"path",
|
|
7232
7254
|
{
|
|
7233
7255
|
fill: "#fbe9e7",
|
|
@@ -7236,7 +7258,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7236
7258
|
"fill-rule": "nonzero"
|
|
7237
7259
|
}
|
|
7238
7260
|
),
|
|
7239
|
-
/* @__PURE__ */ (0,
|
|
7261
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7240
7262
|
"path",
|
|
7241
7263
|
{
|
|
7242
7264
|
fill: "#ffe0b2",
|
|
@@ -7245,7 +7267,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7245
7267
|
"fill-rule": "nonzero"
|
|
7246
7268
|
}
|
|
7247
7269
|
),
|
|
7248
|
-
/* @__PURE__ */ (0,
|
|
7270
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7249
7271
|
"path",
|
|
7250
7272
|
{
|
|
7251
7273
|
fill: "#ffe0b2",
|
|
@@ -7254,7 +7276,7 @@ var ArchiveIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
|
7254
7276
|
"fill-rule": "nonzero"
|
|
7255
7277
|
}
|
|
7256
7278
|
),
|
|
7257
|
-
/* @__PURE__ */ (0,
|
|
7279
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7258
7280
|
"path",
|
|
7259
7281
|
{
|
|
7260
7282
|
fill: "#ffe0b2",
|
|
@@ -7304,8 +7326,8 @@ var DocumentNode = (props) => {
|
|
|
7304
7326
|
documents = parseDocuments(props.node.documentAsset);
|
|
7305
7327
|
}
|
|
7306
7328
|
if (documents.length === 0) {
|
|
7307
|
-
return /* @__PURE__ */ (0,
|
|
7308
|
-
/* @__PURE__ */ (0,
|
|
7329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_jsx_runtime59.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "py-4 px-2 bg-neutral-weak border rounded text-center flex flex-col gap-2", children: [
|
|
7330
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mx-auto w-10 h-10 rounded-full flex items-center justify-center bg-neutral-soft", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7309
7331
|
"svg",
|
|
7310
7332
|
{
|
|
7311
7333
|
className: "w-5 h-5",
|
|
@@ -7313,7 +7335,7 @@ var DocumentNode = (props) => {
|
|
|
7313
7335
|
stroke: "currentColor",
|
|
7314
7336
|
viewBox: "0 0 24 24",
|
|
7315
7337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7316
|
-
children: /* @__PURE__ */ (0,
|
|
7338
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7317
7339
|
"path",
|
|
7318
7340
|
{
|
|
7319
7341
|
strokeLinecap: "round",
|
|
@@ -7324,11 +7346,11 @@ var DocumentNode = (props) => {
|
|
|
7324
7346
|
)
|
|
7325
7347
|
}
|
|
7326
7348
|
) }),
|
|
7327
|
-
/* @__PURE__ */ (0,
|
|
7328
|
-
/* @__PURE__ */ (0,
|
|
7349
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "text-sm font-medium", children: "No documents found" }),
|
|
7350
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "text-xs", children: "No records found. Data may be empty or not available at the moment." })
|
|
7329
7351
|
] }) });
|
|
7330
7352
|
}
|
|
7331
|
-
return /* @__PURE__ */ (0,
|
|
7353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "", children: documents.map((doc, index) => {
|
|
7332
7354
|
const documentUrl = AssetUtility_default.resolveUrl(
|
|
7333
7355
|
props.assetBaseUrl,
|
|
7334
7356
|
doc.assetUrl
|
|
@@ -7346,16 +7368,16 @@ var DocumentNode = (props) => {
|
|
|
7346
7368
|
}
|
|
7347
7369
|
}
|
|
7348
7370
|
const { Icon: Icon2, extLabel } = getFileDetails2(documentUrl);
|
|
7349
|
-
return /* @__PURE__ */ (0,
|
|
7371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7350
7372
|
"div",
|
|
7351
7373
|
{
|
|
7352
7374
|
className: `flex items-center justify-between py-4 bg-default gap-4 ${index !== 0 ? "border-t" : ""}`,
|
|
7353
7375
|
children: [
|
|
7354
|
-
/* @__PURE__ */ (0,
|
|
7355
|
-
/* @__PURE__ */ (0,
|
|
7356
|
-
/* @__PURE__ */ (0,
|
|
7376
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center space-x-4 min-w-0", children: [
|
|
7377
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex items-center justify-center p-2 rounded bg-neutral-soft shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon2, {}) }),
|
|
7378
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex items-baseline space-x-2 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("h4", { className: "text-base font-semibold truncate", title: documentTitle, children: documentTitle }) })
|
|
7357
7379
|
] }),
|
|
7358
|
-
/* @__PURE__ */ (0,
|
|
7380
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7359
7381
|
"a",
|
|
7360
7382
|
{
|
|
7361
7383
|
href: documentUrl,
|
|
@@ -7363,7 +7385,7 @@ var DocumentNode = (props) => {
|
|
|
7363
7385
|
rel: "noopener noreferrer",
|
|
7364
7386
|
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 shrink-0",
|
|
7365
7387
|
children: [
|
|
7366
|
-
/* @__PURE__ */ (0,
|
|
7388
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7367
7389
|
"svg",
|
|
7368
7390
|
{
|
|
7369
7391
|
className: "w-4 h-4 mr-2",
|
|
@@ -7371,7 +7393,7 @@ var DocumentNode = (props) => {
|
|
|
7371
7393
|
stroke: "currentColor",
|
|
7372
7394
|
viewBox: "0 0 24 24",
|
|
7373
7395
|
children: [
|
|
7374
|
-
/* @__PURE__ */ (0,
|
|
7396
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7375
7397
|
"path",
|
|
7376
7398
|
{
|
|
7377
7399
|
strokeLinecap: "round",
|
|
@@ -7380,7 +7402,7 @@ var DocumentNode = (props) => {
|
|
|
7380
7402
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
|
|
7381
7403
|
}
|
|
7382
7404
|
),
|
|
7383
|
-
/* @__PURE__ */ (0,
|
|
7405
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7384
7406
|
"path",
|
|
7385
7407
|
{
|
|
7386
7408
|
strokeLinecap: "round",
|
|
@@ -7405,14 +7427,14 @@ var DocumentNode = (props) => {
|
|
|
7405
7427
|
var DocumentNode_default = DocumentNode;
|
|
7406
7428
|
|
|
7407
7429
|
// src/components/pageRenderingEngine/nodes/GoogleMapNode.tsx
|
|
7408
|
-
var
|
|
7409
|
-
var
|
|
7410
|
-
var IframeClient3 = (0,
|
|
7430
|
+
var import_dynamic13 = __toESM(require("next/dynamic"));
|
|
7431
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7432
|
+
var IframeClient3 = (0, import_dynamic13.default)(() => Promise.resolve().then(() => (init_IframeClient(), IframeClient_exports)), {
|
|
7411
7433
|
ssr: false
|
|
7412
7434
|
});
|
|
7413
7435
|
var GoogleMapNode = (props) => {
|
|
7414
7436
|
let src = props.node.embedUrl;
|
|
7415
|
-
return /* @__PURE__ */ (0,
|
|
7437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "google-map-container", children: src && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7416
7438
|
IframeClient3,
|
|
7417
7439
|
{
|
|
7418
7440
|
src,
|
|
@@ -7424,12 +7446,12 @@ var GoogleMapNode = (props) => {
|
|
|
7424
7446
|
var GoogleMapNode_default = GoogleMapNode;
|
|
7425
7447
|
|
|
7426
7448
|
// src/components/pageRenderingEngine/nodes/DivContainer.tsx
|
|
7427
|
-
var
|
|
7428
|
-
var Pagination2 = (0,
|
|
7429
|
-
var DataBindingControls2 = (0,
|
|
7449
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
7450
|
+
var Pagination2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_Pagination(), Pagination_exports)), { ssr: true });
|
|
7451
|
+
var DataBindingControls2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_DataBindingControls(), DataBindingControls_exports)), {
|
|
7430
7452
|
ssr: true
|
|
7431
7453
|
});
|
|
7432
|
-
var Slider2 = (0,
|
|
7454
|
+
var Slider2 = (0, import_dynamic14.default)(() => Promise.resolve().then(() => (init_Slider(), Slider_exports)), {
|
|
7433
7455
|
ssr: false
|
|
7434
7456
|
});
|
|
7435
7457
|
function toCamelCase(str) {
|
|
@@ -7710,7 +7732,7 @@ var DivContainer = async (props) => {
|
|
|
7710
7732
|
}
|
|
7711
7733
|
const SelectedNode = NodeTypes2[node.type];
|
|
7712
7734
|
if (!SelectedNode) return null;
|
|
7713
|
-
return /* @__PURE__ */ (0,
|
|
7735
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react42.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
7714
7736
|
SelectedNode,
|
|
7715
7737
|
{
|
|
7716
7738
|
node,
|
|
@@ -7802,7 +7824,7 @@ var DivContainer = async (props) => {
|
|
|
7802
7824
|
item,
|
|
7803
7825
|
idx,
|
|
7804
7826
|
props.href ? void 0 : item?.links?.view
|
|
7805
|
-
)?.map((child, i) => /* @__PURE__ */ (0,
|
|
7827
|
+
)?.map((child, i) => /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react42.default.Fragment, { children: child }, i)) : renderChildren2(props.node.children, props, item, idx)
|
|
7806
7828
|
);
|
|
7807
7829
|
}
|
|
7808
7830
|
return props.node.children.flatMap((node, childIndex) => {
|
|
@@ -7920,17 +7942,17 @@ var DivContainer = async (props) => {
|
|
|
7920
7942
|
dataBindingProperties?.showFacets || dataBindingProperties?.showSortOptions || dataBindingProperties?.showSearchBar
|
|
7921
7943
|
);
|
|
7922
7944
|
const WrapperComponent = Wrapper;
|
|
7923
|
-
const renderedContainer = /* @__PURE__ */ (0,
|
|
7945
|
+
const renderedContainer = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
7924
7946
|
WrapperComponent,
|
|
7925
7947
|
{
|
|
7926
7948
|
id: guid,
|
|
7927
7949
|
style: combinedStyles,
|
|
7928
7950
|
className: classNames || void 0,
|
|
7929
7951
|
...wrapperProps,
|
|
7930
|
-
children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ (0,
|
|
7952
|
+
children: shouldShowNoDataMessage ? hasActiveFilter ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(NoFilterResultsFound_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(NoDataFound_default, {}) : renderContainerChildren()
|
|
7931
7953
|
}
|
|
7932
7954
|
);
|
|
7933
|
-
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0,
|
|
7955
|
+
const paginationControl = dataBindingProperties?.enablePagination ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
7934
7956
|
Pagination2,
|
|
7935
7957
|
{
|
|
7936
7958
|
path: props.path,
|
|
@@ -7938,15 +7960,15 @@ var DivContainer = async (props) => {
|
|
|
7938
7960
|
dataset: response
|
|
7939
7961
|
}
|
|
7940
7962
|
) : null;
|
|
7941
|
-
return /* @__PURE__ */ (0,
|
|
7942
|
-
/* @__PURE__ */ (0,
|
|
7963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react42.default.Fragment, { children: [
|
|
7964
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
7943
7965
|
"style",
|
|
7944
7966
|
{
|
|
7945
7967
|
dangerouslySetInnerHTML: { __html: cssResult.css + animationCSS }
|
|
7946
7968
|
}
|
|
7947
7969
|
),
|
|
7948
|
-
showDataBindingControls ? /* @__PURE__ */ (0,
|
|
7949
|
-
/* @__PURE__ */ (0,
|
|
7970
|
+
showDataBindingControls ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react42.default.Fragment, { children: [
|
|
7971
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
7950
7972
|
DataBindingControls2,
|
|
7951
7973
|
{
|
|
7952
7974
|
mode: "toolbar",
|
|
@@ -7959,16 +7981,16 @@ var DivContainer = async (props) => {
|
|
|
7959
7981
|
showSearchBar: dataBindingProperties?.showSearchBar
|
|
7960
7982
|
}
|
|
7961
7983
|
),
|
|
7962
|
-
/* @__PURE__ */ (0,
|
|
7984
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
7963
7985
|
"div",
|
|
7964
7986
|
{
|
|
7965
7987
|
className: dataBindingProperties?.showFacets ? "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_18rem]" : void 0,
|
|
7966
7988
|
children: [
|
|
7967
|
-
/* @__PURE__ */ (0,
|
|
7989
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "min-w-0", children: [
|
|
7968
7990
|
renderedContainer,
|
|
7969
7991
|
paginationControl
|
|
7970
7992
|
] }),
|
|
7971
|
-
dataBindingProperties?.showFacets && /* @__PURE__ */ (0,
|
|
7993
|
+
dataBindingProperties?.showFacets && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("aside", { className: "hidden lg:block", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
7972
7994
|
DataBindingControls2,
|
|
7973
7995
|
{
|
|
7974
7996
|
mode: "facets",
|
|
@@ -7981,16 +8003,16 @@ var DivContainer = async (props) => {
|
|
|
7981
8003
|
]
|
|
7982
8004
|
}
|
|
7983
8005
|
)
|
|
7984
|
-
] }) : /* @__PURE__ */ (0,
|
|
8006
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_react42.default.Fragment, { children: [
|
|
7985
8007
|
renderedContainer,
|
|
7986
|
-
paginationControl && /* @__PURE__ */ (0,
|
|
8008
|
+
paginationControl && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { children: paginationControl })
|
|
7987
8009
|
] })
|
|
7988
8010
|
] });
|
|
7989
8011
|
};
|
|
7990
8012
|
var DivContainer_default = DivContainer;
|
|
7991
8013
|
|
|
7992
8014
|
// src/components/pageRenderingEngine/PageBodyRenderer.tsx
|
|
7993
|
-
var
|
|
8015
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
7994
8016
|
var NodeTypes = {
|
|
7995
8017
|
["paragraph"]: ParagraphNode_default,
|
|
7996
8018
|
["heading"]: HeadingNode_default,
|
|
@@ -8029,14 +8051,14 @@ var PageBodyRenderer = (props) => {
|
|
|
8029
8051
|
}
|
|
8030
8052
|
return true;
|
|
8031
8053
|
};
|
|
8032
|
-
return /* @__PURE__ */ (0,
|
|
8054
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: rootNode && rootNode?.children?.map((node, index) => {
|
|
8033
8055
|
{
|
|
8034
8056
|
}
|
|
8035
8057
|
const SelectedNode = NodeTypes[node.type];
|
|
8036
8058
|
if (!shouldRenderNode(node)) {
|
|
8037
8059
|
return null;
|
|
8038
8060
|
}
|
|
8039
|
-
return /* @__PURE__ */ (0,
|
|
8061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: SelectedNode && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: node.type == "layout-container" ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
8040
8062
|
SelectedNode,
|
|
8041
8063
|
{
|
|
8042
8064
|
node,
|
|
@@ -8052,7 +8074,7 @@ var PageBodyRenderer = (props) => {
|
|
|
8052
8074
|
device: props.device,
|
|
8053
8075
|
widgetRenderer: props.widgetRenderer
|
|
8054
8076
|
}
|
|
8055
|
-
) }) : /* @__PURE__ */ (0,
|
|
8077
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_react43.default.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
8056
8078
|
SelectedNode,
|
|
8057
8079
|
{
|
|
8058
8080
|
node,
|