@arudovwen/form-builder-react 1.5.8 → 1.5.9
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/form-builder.es.js +111 -103
- package/dist/form-builder.umd.js +2 -2
- package/dist/index.css +1 -1
- package/package.json +1 -1
package/dist/form-builder.es.js
CHANGED
|
@@ -309,7 +309,7 @@ function On(i) {
|
|
|
309
309
|
} else for (o in i) i[o] && (s && (s += " "), s += o);
|
|
310
310
|
return s;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function W() {
|
|
313
313
|
for (var i, e, o = 0, s = "", a = arguments.length; o < a; o++) (i = arguments[o]) && (e = On(i)) && (s && (s += " "), s += e);
|
|
314
314
|
return s;
|
|
315
315
|
}
|
|
@@ -563,7 +563,7 @@ function Vi({
|
|
|
563
563
|
{
|
|
564
564
|
placeholder: (i == null ? void 0 : i.placeholder) || "",
|
|
565
565
|
type: (i == null ? void 0 : i.inputType) || "text",
|
|
566
|
-
className:
|
|
566
|
+
className: W("field-control", i == null ? void 0 : i.customClass),
|
|
567
567
|
...o(i == null ? void 0 : i.id),
|
|
568
568
|
disabled: e == null ? void 0 : e.isReadOnly,
|
|
569
569
|
inputMode: (i == null ? void 0 : i.inputMode) || void 0,
|
|
@@ -721,7 +721,7 @@ const Fn = /^[a-z0-9]+(-[a-z0-9]+)*$/, Hi = (i, e, o, s = "") => {
|
|
|
721
721
|
return null;
|
|
722
722
|
}, Pi = (i, e) => i ? !!((e && i.prefix === "" || i.prefix) && i.name) : !1;
|
|
723
723
|
let Bi = !1;
|
|
724
|
-
function
|
|
724
|
+
function Un(i) {
|
|
725
725
|
return typeof i == "boolean" && (Bi = i), Bi;
|
|
726
726
|
}
|
|
727
727
|
function An(i) {
|
|
@@ -753,11 +753,11 @@ function Be(i, e) {
|
|
|
753
753
|
const s = Ni(e, o);
|
|
754
754
|
return !!Vn(s, i);
|
|
755
755
|
}
|
|
756
|
-
const
|
|
756
|
+
const Wn = Object.freeze({
|
|
757
757
|
width: null,
|
|
758
758
|
height: null
|
|
759
759
|
}), zn = Object.freeze({
|
|
760
|
-
...
|
|
760
|
+
...Wn,
|
|
761
761
|
...Ii
|
|
762
762
|
}), Le = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Te = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
763
763
|
function Sn(i, e, o) {
|
|
@@ -919,10 +919,10 @@ function Fe(i, e) {
|
|
|
919
919
|
}
|
|
920
920
|
return s;
|
|
921
921
|
}
|
|
922
|
-
function
|
|
922
|
+
function Ue(i) {
|
|
923
923
|
return i === 404;
|
|
924
924
|
}
|
|
925
|
-
const
|
|
925
|
+
const We = (i, e, o) => {
|
|
926
926
|
const s = [], a = Fe(i, e), l = "icons";
|
|
927
927
|
let d = {
|
|
928
928
|
type: l,
|
|
@@ -972,7 +972,7 @@ const Je = (i, e, o) => {
|
|
|
972
972
|
const d = l.status;
|
|
973
973
|
if (d !== 200) {
|
|
974
974
|
setTimeout(() => {
|
|
975
|
-
o(
|
|
975
|
+
o(Ue(d) ? "abort" : "next", d);
|
|
976
976
|
});
|
|
977
977
|
return;
|
|
978
978
|
}
|
|
@@ -991,7 +991,7 @@ const Je = (i, e, o) => {
|
|
|
991
991
|
o("next", a);
|
|
992
992
|
});
|
|
993
993
|
}, Ze = {
|
|
994
|
-
prepare:
|
|
994
|
+
prepare: We,
|
|
995
995
|
send: Je
|
|
996
996
|
};
|
|
997
997
|
function Jn(i, e) {
|
|
@@ -1212,18 +1212,18 @@ function Zn(i) {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
function Nn() {
|
|
1214
1214
|
}
|
|
1215
|
-
const
|
|
1215
|
+
const Ui = /* @__PURE__ */ Object.create(null);
|
|
1216
1216
|
function no(i) {
|
|
1217
|
-
if (!
|
|
1217
|
+
if (!Ui[i]) {
|
|
1218
1218
|
const e = tn(i);
|
|
1219
1219
|
if (!e) return;
|
|
1220
1220
|
const o = Zn(e), s = {
|
|
1221
1221
|
config: e,
|
|
1222
1222
|
redundancy: o
|
|
1223
1223
|
};
|
|
1224
|
-
|
|
1224
|
+
Ui[i] = s;
|
|
1225
1225
|
}
|
|
1226
|
-
return
|
|
1226
|
+
return Ui[i];
|
|
1227
1227
|
}
|
|
1228
1228
|
function eo(i, e, o) {
|
|
1229
1229
|
let s, a;
|
|
@@ -1324,7 +1324,7 @@ function so(i, e) {
|
|
|
1324
1324
|
}));
|
|
1325
1325
|
}
|
|
1326
1326
|
const lo = (i, e) => {
|
|
1327
|
-
const o = Qe(i, !0,
|
|
1327
|
+
const o = Qe(i, !0, Un()), s = $e(o);
|
|
1328
1328
|
if (!s.pending.length) {
|
|
1329
1329
|
let c = !0;
|
|
1330
1330
|
return e && setTimeout(() => {
|
|
@@ -1353,7 +1353,7 @@ function uo(i, e) {
|
|
|
1353
1353
|
const o = { ...i };
|
|
1354
1354
|
for (const s in e) {
|
|
1355
1355
|
const a = e[s], l = typeof a;
|
|
1356
|
-
s in
|
|
1356
|
+
s in Wn ? (a === null || a && (l === "string" || l === "number")) && (o[s] = a) : l === typeof o[s] && (o[s] = s === "rotate" ? a % 4 : a);
|
|
1357
1357
|
}
|
|
1358
1358
|
return o;
|
|
1359
1359
|
}
|
|
@@ -1546,7 +1546,7 @@ const So = (i, e, o) => {
|
|
|
1546
1546
|
...u
|
|
1547
1547
|
}, _i("span", c);
|
|
1548
1548
|
};
|
|
1549
|
-
|
|
1549
|
+
Un(!0);
|
|
1550
1550
|
He("", Ze);
|
|
1551
1551
|
if (typeof document != "undefined" && typeof window != "undefined") {
|
|
1552
1552
|
const i = window;
|
|
@@ -1649,7 +1649,7 @@ In((i, e) => _n({
|
|
|
1649
1649
|
...i,
|
|
1650
1650
|
_ref: e
|
|
1651
1651
|
}));
|
|
1652
|
-
function
|
|
1652
|
+
function U({
|
|
1653
1653
|
icon: i,
|
|
1654
1654
|
iconClass: e
|
|
1655
1655
|
}) {
|
|
@@ -1704,7 +1704,7 @@ function rn({
|
|
|
1704
1704
|
disabled: l,
|
|
1705
1705
|
children: [
|
|
1706
1706
|
/* @__PURE__ */ n("span", { className: "custom-select__value", children: (c == null ? void 0 : c.length) > 0 ? t : /* @__PURE__ */ n("span", { className: "custom-select__placeholder", children: o != null ? o : " Select options" }) }),
|
|
1707
|
-
/* @__PURE__ */ n("span", { className: "custom-select__icon", children: /* @__PURE__ */ n(
|
|
1707
|
+
/* @__PURE__ */ n("span", { className: "custom-select__icon", children: /* @__PURE__ */ n(U, { icon: "lucide:chevron-down" }) })
|
|
1708
1708
|
]
|
|
1709
1709
|
}
|
|
1710
1710
|
),
|
|
@@ -1801,8 +1801,8 @@ function Qn({
|
|
|
1801
1801
|
className: "!flex items-center rounded cursor-pointer gap-x-3",
|
|
1802
1802
|
title: `Click to preview ${h}`,
|
|
1803
1803
|
children: [
|
|
1804
|
-
l === "image" && /* @__PURE__ */ n("div", { className: "flex items-center justify-center ", children: /* @__PURE__ */ n(
|
|
1805
|
-
l !== "image" && /* @__PURE__ */ n(
|
|
1804
|
+
l === "image" && /* @__PURE__ */ n("div", { className: "flex items-center justify-center ", children: /* @__PURE__ */ n(U, { iconClass: "text-4xl", icon: "fluent-color:image-48" }) }),
|
|
1805
|
+
l !== "image" && /* @__PURE__ */ n(U, { icon: ko[l], iconClass: "text-4xl" }),
|
|
1806
1806
|
/* @__PURE__ */ n("span", { className: "text-sm font-semibold text-center text-gray-700 truncate max-w-[300px]", children: h })
|
|
1807
1807
|
]
|
|
1808
1808
|
}
|
|
@@ -1815,7 +1815,7 @@ function Qn({
|
|
|
1815
1815
|
className: "p-2",
|
|
1816
1816
|
onClick: () => m(u || i, e),
|
|
1817
1817
|
title: `Download ${h}`,
|
|
1818
|
-
children: /* @__PURE__ */ n(
|
|
1818
|
+
children: /* @__PURE__ */ n(U, { icon: "streamline-flex:download-tray-solid" })
|
|
1819
1819
|
}
|
|
1820
1820
|
),
|
|
1821
1821
|
o && /* @__PURE__ */ n(
|
|
@@ -1824,7 +1824,7 @@ function Qn({
|
|
|
1824
1824
|
type: "button",
|
|
1825
1825
|
className: "p-2 text-lg text-red-500",
|
|
1826
1826
|
onClick: o,
|
|
1827
|
-
children: /* @__PURE__ */ n(
|
|
1827
|
+
children: /* @__PURE__ */ n(U, { icon: "lets-icons:trash-duotone" })
|
|
1828
1828
|
}
|
|
1829
1829
|
)
|
|
1830
1830
|
] }),
|
|
@@ -2014,7 +2014,7 @@ function Mo({
|
|
|
2014
2014
|
onClick: () => A(),
|
|
2015
2015
|
disabled: t,
|
|
2016
2016
|
"aria-label": "Remove all files",
|
|
2017
|
-
children: /* @__PURE__ */ n(
|
|
2017
|
+
children: /* @__PURE__ */ n(U, { icon: "lets-icons:trash-duotone" })
|
|
2018
2018
|
}
|
|
2019
2019
|
)
|
|
2020
2020
|
] }),
|
|
@@ -2076,7 +2076,15 @@ function Bo({ element: i, validationData: e }) {
|
|
|
2076
2076
|
accept: i == null ? void 0 : i.acceptedFiles
|
|
2077
2077
|
}
|
|
2078
2078
|
),
|
|
2079
|
-
|
|
2079
|
+
d && /* @__PURE__ */ n(ti, { children: o ? /* @__PURE__ */ n("div", { className: "relative grid gap-y-1 flex-1 w-full", children: typeof o == "object" && Array.isArray(o) && o.map(
|
|
2080
|
+
(h, m) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
2081
|
+
Qn,
|
|
2082
|
+
{
|
|
2083
|
+
fileUrl: h.base64,
|
|
2084
|
+
fileName: h.name
|
|
2085
|
+
}
|
|
2086
|
+
) }, m)
|
|
2087
|
+
) }) : /* @__PURE__ */ n("span", { className: "field-control !bg-gray-50 w-full !text-gray-400 !text-sm !italic ", children: "No File Uploaded" }) })
|
|
2080
2088
|
] });
|
|
2081
2089
|
}
|
|
2082
2090
|
function Lo({
|
|
@@ -2089,7 +2097,7 @@ function Lo({
|
|
|
2089
2097
|
{
|
|
2090
2098
|
placeholder: i.placeholder,
|
|
2091
2099
|
type: i.inputType,
|
|
2092
|
-
className:
|
|
2100
|
+
className: W("field-control", i == null ? void 0 : i.customClass),
|
|
2093
2101
|
...o(i.id),
|
|
2094
2102
|
disabled: e == null ? void 0 : e.isReadOnly
|
|
2095
2103
|
}
|
|
@@ -2174,7 +2182,7 @@ const O = ({
|
|
|
2174
2182
|
peer-disabled:cursor-not-allowed
|
|
2175
2183
|
`,
|
|
2176
2184
|
children: T && /* @__PURE__ */ n(
|
|
2177
|
-
|
|
2185
|
+
U,
|
|
2178
2186
|
{
|
|
2179
2187
|
icon: "meteor-icons:check",
|
|
2180
2188
|
iconClass: "w-3.5 h-3.5 text-white"
|
|
@@ -2247,7 +2255,7 @@ function To({
|
|
|
2247
2255
|
}) {
|
|
2248
2256
|
var a;
|
|
2249
2257
|
const { register: o = () => ({}), watch: s } = e || {};
|
|
2250
|
-
return /* @__PURE__ */ n("div", { className:
|
|
2258
|
+
return /* @__PURE__ */ n("div", { className: W("grid gap-y-[6px]", i.customClass), children: (a = i == null ? void 0 : i.options) == null ? void 0 : a.map(
|
|
2251
2259
|
(l) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
2252
2260
|
O,
|
|
2253
2261
|
{
|
|
@@ -2275,7 +2283,7 @@ function Po({
|
|
|
2275
2283
|
}) {
|
|
2276
2284
|
var a;
|
|
2277
2285
|
const { register: o = () => ({}), watch: s } = e || {};
|
|
2278
|
-
return /* @__PURE__ */ n("div", { className:
|
|
2286
|
+
return /* @__PURE__ */ n("div", { className: W("grid gap-y-[6px]", i.customClass), children: (a = i == null ? void 0 : i.options) == null ? void 0 : a.map(
|
|
2279
2287
|
(l) => /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
2280
2288
|
O,
|
|
2281
2289
|
{
|
|
@@ -2340,7 +2348,7 @@ const Si = ({
|
|
|
2340
2348
|
t && d && /* @__PURE__ */ n(
|
|
2341
2349
|
"label",
|
|
2342
2350
|
{
|
|
2343
|
-
className:
|
|
2351
|
+
className: W(
|
|
2344
2352
|
"z-[40] absolute bg-white py-[2px] px-1 -top-[10px] left-3",
|
|
2345
2353
|
m
|
|
2346
2354
|
),
|
|
@@ -2359,13 +2367,13 @@ const Si = ({
|
|
|
2359
2367
|
/* @__PURE__ */ n(
|
|
2360
2368
|
"span",
|
|
2361
2369
|
{
|
|
2362
|
-
className:
|
|
2370
|
+
className: W("block text-sm text-left truncate", {
|
|
2363
2371
|
"opacity-60": !y || b
|
|
2364
2372
|
}),
|
|
2365
2373
|
children: x
|
|
2366
2374
|
}
|
|
2367
2375
|
),
|
|
2368
|
-
/* @__PURE__ */ n("span", { className: "absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none", children: /* @__PURE__ */ n(
|
|
2376
|
+
/* @__PURE__ */ n("span", { className: "absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none", children: /* @__PURE__ */ n(U, { icon: "lucide:chevron-down" }) })
|
|
2369
2377
|
] }),
|
|
2370
2378
|
/* @__PURE__ */ n(
|
|
2371
2379
|
yi,
|
|
@@ -2379,8 +2387,8 @@ const Si = ({
|
|
|
2379
2387
|
ii.Option,
|
|
2380
2388
|
{
|
|
2381
2389
|
value: k,
|
|
2382
|
-
className: ({ active: T }) =>
|
|
2383
|
-
children: ({ selected: T }) => /* @__PURE__ */ n("div", { className:
|
|
2390
|
+
className: ({ active: T }) => W("select-option", { active: T }),
|
|
2391
|
+
children: ({ selected: T }) => /* @__PURE__ */ n("div", { className: W("option-text", { selected: T }), children: k.label })
|
|
2384
2392
|
},
|
|
2385
2393
|
((N = k.value) == null ? void 0 : N.id) || k.value || S
|
|
2386
2394
|
);
|
|
@@ -2438,14 +2446,14 @@ function on({
|
|
|
2438
2446
|
placeholder: "Select an option..."
|
|
2439
2447
|
}
|
|
2440
2448
|
),
|
|
2441
|
-
/* @__PURE__ */ n(de, { className: "absolute inset-y-0 right-0 flex items-center px-2 text-gray-400 hover:text-gray-600", children: /* @__PURE__ */ n(
|
|
2449
|
+
/* @__PURE__ */ n(de, { className: "absolute inset-y-0 right-0 flex items-center px-2 text-gray-400 hover:text-gray-600", children: /* @__PURE__ */ n(U, { icon: "octicon:chevron-down-12" }) })
|
|
2442
2450
|
] }),
|
|
2443
2451
|
/* @__PURE__ */ n(ue, { anchor: "bottom start", className: "select-options__combo", children: h.length === 0 ? /* @__PURE__ */ n("div", { className: "px-3 py-2 text-sm text-gray-500", children: "No results found." }) : h == null ? void 0 : h.map((b) => /* @__PURE__ */ n(
|
|
2444
2452
|
ce,
|
|
2445
2453
|
{
|
|
2446
2454
|
value: b,
|
|
2447
|
-
className: ({ active: f, selected: y }) =>
|
|
2448
|
-
children: ({ selected: f }) => /* @__PURE__ */ n("div", { className:
|
|
2455
|
+
className: ({ active: f, selected: y }) => W("select-option", { active: f, selected: y }),
|
|
2456
|
+
children: ({ selected: f }) => /* @__PURE__ */ n("div", { className: W("option-text", { selected: f }), children: b.label })
|
|
2449
2457
|
},
|
|
2450
2458
|
b.value
|
|
2451
2459
|
)) })
|
|
@@ -2476,7 +2484,7 @@ function Eo({
|
|
|
2476
2484
|
setValue: a,
|
|
2477
2485
|
trigger: s,
|
|
2478
2486
|
value: d,
|
|
2479
|
-
className:
|
|
2487
|
+
className: W("field-control", i == null ? void 0 : i.customClass),
|
|
2480
2488
|
disabled: e == null ? void 0 : e.isReadOnly
|
|
2481
2489
|
}
|
|
2482
2490
|
) : /* @__PURE__ */ n(
|
|
@@ -2500,7 +2508,7 @@ function Ro({
|
|
|
2500
2508
|
{
|
|
2501
2509
|
placeholder: i.placeholder,
|
|
2502
2510
|
rows: 4,
|
|
2503
|
-
className:
|
|
2511
|
+
className: W("field-control resize-none", i == null ? void 0 : i.customClass),
|
|
2504
2512
|
...o(i.id),
|
|
2505
2513
|
disabled: e == null ? void 0 : e.isReadOnly
|
|
2506
2514
|
}
|
|
@@ -2542,16 +2550,16 @@ const Io = ({
|
|
|
2542
2550
|
activeTab: a,
|
|
2543
2551
|
btnClass: l = ""
|
|
2544
2552
|
}) => {
|
|
2545
|
-
const d =
|
|
2553
|
+
const d = W(
|
|
2546
2554
|
"flex gap-x-3 mb-8 w-full no-scrollbar overflow-x-auto border-b-2 border-[#EAECF0] darks:border-gray-500",
|
|
2547
2555
|
e
|
|
2548
2556
|
);
|
|
2549
2557
|
return /* @__PURE__ */ n("div", { className: d, children: i == null ? void 0 : i.map((u) => {
|
|
2550
|
-
const c = a === u.key, r = o[u.key] || 0, t =
|
|
2558
|
+
const c = a === u.key, r = o[u.key] || 0, t = W(
|
|
2551
2559
|
"capitalize text-sm whitespace-nowrap no-scrollbar font-semibold pb-[14px] border-b-2 border-[#EAECF0] px-6 flex items-center gap-x-1 flex-1 text-center",
|
|
2552
2560
|
`${i.length === 1 ? "justify-start" : "justify-center"}`,
|
|
2553
2561
|
l
|
|
2554
|
-
), h =
|
|
2562
|
+
), h = W({
|
|
2555
2563
|
"border-gray-500 border-primary border-primary-500 text-primary text-primary-500": c,
|
|
2556
2564
|
"border-transparent text-gray-400 ": !c
|
|
2557
2565
|
}), m = r > 0 && /* @__PURE__ */ n("span", { className: "text-xs h-6 min-w-[24px] rounded-full flex justify-center items-center border border-[#EAECF0] darks:border-gray-500 bg-[#F9FAFB] darks:bg-gray-800 text-[#454745] darks:text-white/80", children: r });
|
|
@@ -2559,7 +2567,7 @@ const Io = ({
|
|
|
2559
2567
|
"button",
|
|
2560
2568
|
{
|
|
2561
2569
|
onClick: () => s(u.key),
|
|
2562
|
-
className:
|
|
2570
|
+
className: W(t, h),
|
|
2563
2571
|
"aria-selected": c,
|
|
2564
2572
|
role: "tab",
|
|
2565
2573
|
type: "button",
|
|
@@ -2889,13 +2897,13 @@ const Io = ({
|
|
|
2889
2897
|
{ label: "Weekday, Month Day, Year", value: "EEEE, MMMM d, yyyy" },
|
|
2890
2898
|
{ label: "Short Weekday, Month Day, Year", value: "EEE, MMM d, yyyy" },
|
|
2891
2899
|
{ label: "Day-Month-Year", value: "dd-MM-yyyy" }
|
|
2892
|
-
], Vo = ["amount"], Fo = ["text", "number"],
|
|
2900
|
+
], Vo = ["amount"], Fo = ["text", "number"], Uo = [
|
|
2893
2901
|
"text",
|
|
2894
2902
|
"number",
|
|
2895
2903
|
"amount",
|
|
2896
2904
|
"date",
|
|
2897
2905
|
"password"
|
|
2898
|
-
],
|
|
2906
|
+
], Wo = ["amount"], Ti = [
|
|
2899
2907
|
"grid",
|
|
2900
2908
|
"section",
|
|
2901
2909
|
"divider",
|
|
@@ -2907,7 +2915,7 @@ const Io = ({
|
|
|
2907
2915
|
"checkbox",
|
|
2908
2916
|
"multiselect",
|
|
2909
2917
|
"matrix"
|
|
2910
|
-
], Jo = ["validateInput"], Zo = ["tableInput"],
|
|
2918
|
+
], Jo = ["validateInput"], Zo = ["tableInput"], Wi = ["basicText"], qo = [
|
|
2911
2919
|
{
|
|
2912
2920
|
value: [
|
|
2913
2921
|
"image/jpeg",
|
|
@@ -3632,7 +3640,7 @@ const aa = M.object().shape({
|
|
|
3632
3640
|
type: "button",
|
|
3633
3641
|
className: "outline-none hover:opacity-80 disabled:opacity-40 disabled:cursor-not-allowed",
|
|
3634
3642
|
onClick: () => Q(H),
|
|
3635
|
-
children: /* @__PURE__ */ n(
|
|
3643
|
+
children: /* @__PURE__ */ n(U, { icon: "iconamoon:sign-times-fill" })
|
|
3636
3644
|
}
|
|
3637
3645
|
)
|
|
3638
3646
|
]
|
|
@@ -3649,7 +3657,7 @@ const aa = M.object().shape({
|
|
|
3649
3657
|
className: "flex items-center mt-2 text-sm font-medium text-gray-700 gap-x-1",
|
|
3650
3658
|
onClick: () => T({ label: "", value: "", id: ri() }),
|
|
3651
3659
|
children: [
|
|
3652
|
-
/* @__PURE__ */ n(
|
|
3660
|
+
/* @__PURE__ */ n(U, { icon: "qlementine-icons:plus-16" }),
|
|
3653
3661
|
" Add Option"
|
|
3654
3662
|
]
|
|
3655
3663
|
}
|
|
@@ -3716,7 +3724,7 @@ const aa = M.object().shape({
|
|
|
3716
3724
|
type: "button",
|
|
3717
3725
|
className: "outline-none hover:opacity-80 disabled:opacity-40 disabled:cursor-not-allowed",
|
|
3718
3726
|
onClick: () => w(H),
|
|
3719
|
-
children: /* @__PURE__ */ n(
|
|
3727
|
+
children: /* @__PURE__ */ n(U, { icon: "iconamoon:sign-times-fill" })
|
|
3720
3728
|
}
|
|
3721
3729
|
)
|
|
3722
3730
|
]
|
|
@@ -3732,7 +3740,7 @@ const aa = M.object().shape({
|
|
|
3732
3740
|
className: "flex items-center mt-2 text-sm font-medium text-gray-700 gap-x-1",
|
|
3733
3741
|
onClick: () => q({ label: "", value: "", key: "", id: ri() }),
|
|
3734
3742
|
children: [
|
|
3735
|
-
/* @__PURE__ */ n(
|
|
3743
|
+
/* @__PURE__ */ n(U, { icon: "qlementine-icons:plus-16" }),
|
|
3736
3744
|
" Add Option"
|
|
3737
3745
|
]
|
|
3738
3746
|
}
|
|
@@ -3863,7 +3871,7 @@ const aa = M.object().shape({
|
|
|
3863
3871
|
type: "button",
|
|
3864
3872
|
className: "outline-none hover:opacity-80 disabled:opacity-40 disabled:cursor-not-allowed",
|
|
3865
3873
|
onClick: () => G(F),
|
|
3866
|
-
children: /* @__PURE__ */ n(
|
|
3874
|
+
children: /* @__PURE__ */ n(U, { icon: "iconamoon:sign-times-fill" })
|
|
3867
3875
|
}
|
|
3868
3876
|
)
|
|
3869
3877
|
] }, R.id)) }),
|
|
@@ -3883,7 +3891,7 @@ const aa = M.object().shape({
|
|
|
3883
3891
|
validate: !1
|
|
3884
3892
|
}),
|
|
3885
3893
|
children: [
|
|
3886
|
-
/* @__PURE__ */ n(
|
|
3894
|
+
/* @__PURE__ */ n(U, { icon: "qlementine-icons:plus-16" }),
|
|
3887
3895
|
" Add column"
|
|
3888
3896
|
]
|
|
3889
3897
|
}
|
|
@@ -3915,7 +3923,7 @@ const aa = M.object().shape({
|
|
|
3915
3923
|
{
|
|
3916
3924
|
className: "bg-white h-10 w-10 flex justify-center items-center absolute top-1 -left-12 rounded-lg hover:bg-gray-50",
|
|
3917
3925
|
onClick: e,
|
|
3918
|
-
children: /* @__PURE__ */ n(
|
|
3926
|
+
children: /* @__PURE__ */ n(U, { icon: "tabler:x", iconClass: "text-xl" })
|
|
3919
3927
|
}
|
|
3920
3928
|
),
|
|
3921
3929
|
/* @__PURE__ */ n("div", { className: "w-full pt-4", children: /* @__PURE__ */ n(
|
|
@@ -3938,7 +3946,7 @@ const aa = M.object().shape({
|
|
|
3938
3946
|
" ",
|
|
3939
3947
|
/* @__PURE__ */ v("div", { className: " max-h-[70vh] overflow-y-auto flex-1", children: [
|
|
3940
3948
|
l === "basic" && /* @__PURE__ */ v("div", { className: "z-10 flex flex-col w-full gap-5 px-6", children: [
|
|
3941
|
-
|
|
3949
|
+
Wi.includes(o.inputType) && /* @__PURE__ */ n(ti, { children: /* @__PURE__ */ n(
|
|
3942
3950
|
O,
|
|
3943
3951
|
{
|
|
3944
3952
|
watch: g,
|
|
@@ -3949,7 +3957,7 @@ const aa = M.object().shape({
|
|
|
3949
3957
|
element: o
|
|
3950
3958
|
}
|
|
3951
3959
|
) }),
|
|
3952
|
-
!
|
|
3960
|
+
!Wi.includes(o.inputType) && !Ti.includes(o.inputType) && /* @__PURE__ */ v(ti, { children: [
|
|
3953
3961
|
/* @__PURE__ */ n(
|
|
3954
3962
|
O,
|
|
3955
3963
|
{
|
|
@@ -3974,7 +3982,7 @@ const aa = M.object().shape({
|
|
|
3974
3982
|
}
|
|
3975
3983
|
)
|
|
3976
3984
|
] }),
|
|
3977
|
-
|
|
3985
|
+
Uo.includes(o.inputType) && /* @__PURE__ */ n(
|
|
3978
3986
|
O,
|
|
3979
3987
|
{
|
|
3980
3988
|
watch: g,
|
|
@@ -4061,7 +4069,7 @@ const aa = M.object().shape({
|
|
|
4061
4069
|
value: g("denominators")
|
|
4062
4070
|
}
|
|
4063
4071
|
),
|
|
4064
|
-
!
|
|
4072
|
+
!Wi.includes(o.inputType) && !Ti.includes(o.inputType) && /* @__PURE__ */ n(
|
|
4065
4073
|
O,
|
|
4066
4074
|
{
|
|
4067
4075
|
watch: g,
|
|
@@ -4360,7 +4368,7 @@ const aa = M.object().shape({
|
|
|
4360
4368
|
) })
|
|
4361
4369
|
] })
|
|
4362
4370
|
] }),
|
|
4363
|
-
|
|
4371
|
+
Wo.includes(o.inputType) && /* @__PURE__ */ v(ti, { children: [
|
|
4364
4372
|
/* @__PURE__ */ v("div", { className: "flex items-center gap-x-6", children: [
|
|
4365
4373
|
/* @__PURE__ */ n("div", { className: "w-[150px]", children: /* @__PURE__ */ n(
|
|
4366
4374
|
O,
|
|
@@ -4486,7 +4494,7 @@ const aa = M.object().shape({
|
|
|
4486
4494
|
className: "text-sm outline-none hover:opacity-80 py-1 text-gray-600",
|
|
4487
4495
|
onClick: () => d(e == null ? void 0 : e.id, e.sectionId),
|
|
4488
4496
|
title: "Duplicate",
|
|
4489
|
-
children: /* @__PURE__ */ n(
|
|
4497
|
+
children: /* @__PURE__ */ n(U, { icon: "tabler:copy", iconClass: "text-base" })
|
|
4490
4498
|
}
|
|
4491
4499
|
),
|
|
4492
4500
|
/* @__PURE__ */ n(
|
|
@@ -4496,7 +4504,7 @@ const aa = M.object().shape({
|
|
|
4496
4504
|
className: "text-sm outline-none hover:opacity-80 text-gray-600 py-1",
|
|
4497
4505
|
onClick: () => a(!0),
|
|
4498
4506
|
title: "Edit",
|
|
4499
|
-
children: /* @__PURE__ */ n(
|
|
4507
|
+
children: /* @__PURE__ */ n(U, { icon: "circum:edit", iconClass: "text-base" })
|
|
4500
4508
|
}
|
|
4501
4509
|
),
|
|
4502
4510
|
/* @__PURE__ */ n(
|
|
@@ -4506,7 +4514,7 @@ const aa = M.object().shape({
|
|
|
4506
4514
|
className: "text-sm outline-none hover:opacity-80 text-gray-600 py-1",
|
|
4507
4515
|
onClick: c,
|
|
4508
4516
|
title: "Remove",
|
|
4509
|
-
children: /* @__PURE__ */ n(
|
|
4517
|
+
children: /* @__PURE__ */ n(U, { icon: "iconamoon:trash", iconClass: "text-base" })
|
|
4510
4518
|
}
|
|
4511
4519
|
)
|
|
4512
4520
|
] })
|
|
@@ -4698,7 +4706,7 @@ function ta({
|
|
|
4698
4706
|
{
|
|
4699
4707
|
placeholder: (i == null ? void 0 : i.placeholder) || "",
|
|
4700
4708
|
type: (i == null ? void 0 : i.inputType) || "text",
|
|
4701
|
-
className:
|
|
4709
|
+
className: W("field-control", i == null ? void 0 : i.customClass),
|
|
4702
4710
|
...o(i == null ? void 0 : i.id),
|
|
4703
4711
|
onChange: (N) => {
|
|
4704
4712
|
d(N.target.value), s(i == null ? void 0 : i.id, N.target.value);
|
|
@@ -4740,7 +4748,7 @@ function ta({
|
|
|
4740
4748
|
}
|
|
4741
4749
|
)
|
|
4742
4750
|
] }),
|
|
4743
|
-
r && !u && /* @__PURE__ */ n("span", { className: "block pr-3 text-lg text-green-600", children: /* @__PURE__ */ n(
|
|
4751
|
+
r && !u && /* @__PURE__ */ n("span", { className: "block pr-3 text-lg text-green-600", children: /* @__PURE__ */ n(U, { icon: "gg:check-o" }) })
|
|
4744
4752
|
] })
|
|
4745
4753
|
] }),
|
|
4746
4754
|
h && A === "string" && /* @__PURE__ */ n(
|
|
@@ -4853,10 +4861,10 @@ function ma({
|
|
|
4853
4861
|
) });
|
|
4854
4862
|
}
|
|
4855
4863
|
function ba({ element: i }) {
|
|
4856
|
-
return /* @__PURE__ */ n("div", { className:
|
|
4864
|
+
return /* @__PURE__ */ n("div", { className: W("py-6", i == null ? void 0 : i.customClass) });
|
|
4857
4865
|
}
|
|
4858
4866
|
function va({ element: i }) {
|
|
4859
|
-
return /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("hr", { className:
|
|
4867
|
+
return /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("hr", { className: W("border-gray-200 my-4", i == null ? void 0 : i.customClass) }) });
|
|
4860
4868
|
}
|
|
4861
4869
|
function ha({
|
|
4862
4870
|
element: i,
|
|
@@ -4967,7 +4975,7 @@ function ga({
|
|
|
4967
4975
|
onClick: () => l(i.id),
|
|
4968
4976
|
className: "text-red-500 hover:text-red-700",
|
|
4969
4977
|
"aria-label": "Delete row",
|
|
4970
|
-
children: /* @__PURE__ */ n(
|
|
4978
|
+
children: /* @__PURE__ */ n(U, { icon: "lets-icons:trash-duotone", iconClass: "text-xl" })
|
|
4971
4979
|
}
|
|
4972
4980
|
) })
|
|
4973
4981
|
] });
|
|
@@ -5114,7 +5122,7 @@ const Pn = ({
|
|
|
5114
5122
|
loading: f,
|
|
5115
5123
|
disabled: y
|
|
5116
5124
|
}) => {
|
|
5117
|
-
const [g, p] = P(t ? [] : null), A =
|
|
5125
|
+
const [g, p] = P(t ? [] : null), A = W("custom-select__control", i), C = $(() => e, [e]);
|
|
5118
5126
|
return I(() => {
|
|
5119
5127
|
const x = e == null ? void 0 : e.find((k) => {
|
|
5120
5128
|
var S;
|
|
@@ -5125,7 +5133,7 @@ const Pn = ({
|
|
|
5125
5133
|
g && l && a && (l(d, g == null ? void 0 : g.value), a(d), r == null || r(d));
|
|
5126
5134
|
}, [d, g]), /* @__PURE__ */ v("div", { className: "custom-select", children: [
|
|
5127
5135
|
u && !h && /* @__PURE__ */ n("label", { className: "custom-select__label", children: u }),
|
|
5128
|
-
h && u && /* @__PURE__ */ n("label", { className:
|
|
5136
|
+
h && u && /* @__PURE__ */ n("label", { className: W("custom-select__floating-label", b), children: u }),
|
|
5129
5137
|
/* @__PURE__ */ n(
|
|
5130
5138
|
ii,
|
|
5131
5139
|
{
|
|
@@ -5136,7 +5144,7 @@ const Pn = ({
|
|
|
5136
5144
|
children: /* @__PURE__ */ v("div", { className: "custom-select__wrapper", children: [
|
|
5137
5145
|
/* @__PURE__ */ v(ii.Button, { className: A, disabled: y, children: [
|
|
5138
5146
|
f ? /* @__PURE__ */ n("span", { className: "custom-select__loading", children: "Fetching data..." }) : /* @__PURE__ */ n("span", { className: "custom-select__value", children: (g == null ? void 0 : g.label) || /* @__PURE__ */ n("span", { className: "custom-select__placeholder", children: o }) }),
|
|
5139
|
-
/* @__PURE__ */ n("span", { className: "custom-select__icon", children: /* @__PURE__ */ n(
|
|
5147
|
+
/* @__PURE__ */ n("span", { className: "custom-select__icon", children: /* @__PURE__ */ n(U, { icon: "lucide:chevron-down" }) })
|
|
5140
5148
|
] }),
|
|
5141
5149
|
/* @__PURE__ */ n(
|
|
5142
5150
|
yi,
|
|
@@ -5147,14 +5155,14 @@ const Pn = ({
|
|
|
5147
5155
|
ii.Option,
|
|
5148
5156
|
{
|
|
5149
5157
|
value: x,
|
|
5150
|
-
className: ({ active: S }) =>
|
|
5158
|
+
className: ({ active: S }) => W(
|
|
5151
5159
|
"custom-select__option",
|
|
5152
5160
|
S && "custom-select__option--active"
|
|
5153
5161
|
),
|
|
5154
5162
|
children: ({ selected: S }) => /* @__PURE__ */ n(
|
|
5155
5163
|
"span",
|
|
5156
5164
|
{
|
|
5157
|
-
className:
|
|
5165
|
+
className: W(
|
|
5158
5166
|
"custom-select__option-label",
|
|
5159
5167
|
S && "custom-select__option--selected"
|
|
5160
5168
|
),
|
|
@@ -5283,7 +5291,7 @@ function Na({
|
|
|
5283
5291
|
validationData: e
|
|
5284
5292
|
}) {
|
|
5285
5293
|
const { register: o = () => ({}) } = e || {}, s = (i == null ? void 0 : i.options) || [], a = (i == null ? void 0 : i.options1) || [];
|
|
5286
|
-
return /* @__PURE__ */ n("div", { className:
|
|
5294
|
+
return /* @__PURE__ */ n("div", { className: W("w-full overflow-x-auto", i.customClass), children: /* @__PURE__ */ v("table", { className: "w-full text-left border-collapse min-w-[600px] mb-2", children: [
|
|
5287
5295
|
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ v("tr", { children: [
|
|
5288
5296
|
/* @__PURE__ */ n("th", { className: "p-3 border-b bg-gray-50/50" }),
|
|
5289
5297
|
a.map((l) => /* @__PURE__ */ n(
|
|
@@ -5417,7 +5425,7 @@ function ka({
|
|
|
5417
5425
|
{
|
|
5418
5426
|
placeholder: i.placeholder,
|
|
5419
5427
|
type: i.inputType,
|
|
5420
|
-
className:
|
|
5428
|
+
className: W("field-control", i.customClass),
|
|
5421
5429
|
...o(i.id),
|
|
5422
5430
|
disabled: s
|
|
5423
5431
|
}
|
|
@@ -5429,13 +5437,13 @@ function ka({
|
|
|
5429
5437
|
onClick: m,
|
|
5430
5438
|
disabled: t || c,
|
|
5431
5439
|
style: { background: (u == null ? void 0 : u.buttonColor) || "#333" },
|
|
5432
|
-
className:
|
|
5440
|
+
className: W(
|
|
5433
5441
|
"flex items-center gap-x-1 rounded-lg border border-gray-200 bg-gray-200 px-3 py-[10px] text-sm text-white",
|
|
5434
5442
|
{ "!opacity-60": t }
|
|
5435
5443
|
),
|
|
5436
5444
|
children: [
|
|
5437
5445
|
/* @__PURE__ */ n(
|
|
5438
|
-
|
|
5446
|
+
U,
|
|
5439
5447
|
{
|
|
5440
5448
|
icon: t ? "solar:refresh-outline" : c ? "solar:check-circle-bold" : "solar:pen-2-line-duotone",
|
|
5441
5449
|
iconClass: t ? "animate-spin" : ""
|
|
@@ -5757,7 +5765,7 @@ function Ca({
|
|
|
5757
5765
|
}
|
|
5758
5766
|
),
|
|
5759
5767
|
/* @__PURE__ */ v("div", { className: "relative !flex items-center input-control text-[#667085] !py-0 field-control", children: [
|
|
5760
|
-
/* @__PURE__ */ n(
|
|
5768
|
+
/* @__PURE__ */ n(U, { icon: "lucide:phone-call" }),
|
|
5761
5769
|
/* @__PURE__ */ n(Ai, { value: p, onChange: A, children: /* @__PURE__ */ v("div", { className: "relative", children: [
|
|
5762
5770
|
/* @__PURE__ */ n(
|
|
5763
5771
|
Ai.Input,
|
|
@@ -5768,7 +5776,7 @@ function Ca({
|
|
|
5768
5776
|
onChange: (w) => g(w.target.value)
|
|
5769
5777
|
}
|
|
5770
5778
|
),
|
|
5771
|
-
/* @__PURE__ */ n(Ai.Button, { className: "absolute inset-y-0 right-0 flex items-center pr-2", children: /* @__PURE__ */ n(
|
|
5779
|
+
/* @__PURE__ */ n(Ai.Button, { className: "absolute inset-y-0 right-0 flex items-center pr-2", children: /* @__PURE__ */ n(U, { icon: "lucide:chevron-down" }) }),
|
|
5772
5780
|
/* @__PURE__ */ n(Ai.Options, { className: "absolute z-10 w-[250px] left-0 bg-white border rounded-md shadow-lg max-h-[400px] overflow-y-auto", children: S == null ? void 0 : S.map((w, Y) => /* @__PURE__ */ v(
|
|
5773
5781
|
Ai.Option,
|
|
5774
5782
|
{
|
|
@@ -5802,7 +5810,7 @@ function Ca({
|
|
|
5802
5810
|
minLength: N
|
|
5803
5811
|
}
|
|
5804
5812
|
),
|
|
5805
|
-
/* @__PURE__ */ n("div", { className: "absolute flex text-xl -translate-y-1/2 top-1/2 right-4", children: !q && C.length > 0 && !r && /* @__PURE__ */ n("span", { className: "text-green-500", children: /* @__PURE__ */ n(
|
|
5813
|
+
/* @__PURE__ */ n("div", { className: "absolute flex text-xl -translate-y-1/2 top-1/2 right-4", children: !q && C.length > 0 && !r && /* @__PURE__ */ n("span", { className: "text-green-500", children: /* @__PURE__ */ n(U, { icon: "bi:check-lg" }) }) })
|
|
5806
5814
|
] })
|
|
5807
5815
|
] }),
|
|
5808
5816
|
h && /* @__PURE__ */ n("span", { className: "block text-[#475467] font-light leading-4 text-xs mt-2", children: h })
|
|
@@ -5860,7 +5868,7 @@ function Ba({
|
|
|
5860
5868
|
{
|
|
5861
5869
|
placeholder: (i == null ? void 0 : i.placeholder) || "Enter Url link",
|
|
5862
5870
|
type: "text",
|
|
5863
|
-
className:
|
|
5871
|
+
className: W(
|
|
5864
5872
|
"field-control",
|
|
5865
5873
|
c && "!pl-16",
|
|
5866
5874
|
i == null ? void 0 : i.customClass
|
|
@@ -5938,7 +5946,7 @@ const ne = {
|
|
|
5938
5946
|
}, vn = ({ col: i, children: e, customClass: o }) => /* @__PURE__ */ n(
|
|
5939
5947
|
"div",
|
|
5940
5948
|
{
|
|
5941
|
-
className:
|
|
5949
|
+
className: W("w-full bg-white min-w-0", o),
|
|
5942
5950
|
style: { gridColumn: i },
|
|
5943
5951
|
children: e
|
|
5944
5952
|
}
|
|
@@ -6050,7 +6058,7 @@ const ne = {
|
|
|
6050
6058
|
onDragEnter: (B) => g(B, x),
|
|
6051
6059
|
onDragOver: (B) => y(B, x),
|
|
6052
6060
|
onDragLeave: (B) => p(B, x),
|
|
6053
|
-
className:
|
|
6061
|
+
className: W(
|
|
6054
6062
|
"relative border rounded-lg min-h-[110px] min-w-0",
|
|
6055
6063
|
"flex items-center justify-center",
|
|
6056
6064
|
"transition-all duration-200 ease-in-out",
|
|
@@ -6064,20 +6072,20 @@ const ne = {
|
|
|
6064
6072
|
q && w && "bg-orange-50 border-orange-400 border-dashed shadow-inner scale-[1.01] text-orange-500"
|
|
6065
6073
|
),
|
|
6066
6074
|
children: [
|
|
6067
|
-
w && S === "edit" && /* @__PURE__ */ n("div", { className: "absolute top-1 left-1/2 -translate-x-1/2 flex items-center gap-0.5 px-2 py-0.5 rounded-full bg-gray-100 hover:bg-blue-100 text-gray-400 hover:text-blue-500 cursor-grab active:cursor-grabbing transition-colors z-10 opacity-60 hover:opacity-100 pointer-events-none select-none", children: /* @__PURE__ */ n(
|
|
6075
|
+
w && S === "edit" && /* @__PURE__ */ n("div", { className: "absolute top-1 left-1/2 -translate-x-1/2 flex items-center gap-0.5 px-2 py-0.5 rounded-full bg-gray-100 hover:bg-blue-100 text-gray-400 hover:text-blue-500 cursor-grab active:cursor-grabbing transition-colors z-10 opacity-60 hover:opacity-100 pointer-events-none select-none", children: /* @__PURE__ */ n(U, { icon: "ph:dots-six-bold" }) }),
|
|
6068
6076
|
q && !w && /* @__PURE__ */ v("span", { className: "absolute inset-0 flex flex-col items-center justify-center gap-1 text-blue-400 text-xs font-medium pointer-events-none", children: [
|
|
6069
|
-
/* @__PURE__ */ n(
|
|
6077
|
+
/* @__PURE__ */ n(U, { icon: "ph:plus-bold" }),
|
|
6070
6078
|
"Drop here"
|
|
6071
6079
|
] }),
|
|
6072
6080
|
q && w && /* @__PURE__ */ n("span", { className: "absolute top-1 right-1 text-xs text-orange-400 font-medium pointer-events-none px-1 py-0.5 bg-orange-50 rounded", children: "Replace" }),
|
|
6073
6081
|
/* @__PURE__ */ n(
|
|
6074
6082
|
"div",
|
|
6075
6083
|
{
|
|
6076
|
-
className:
|
|
6084
|
+
className: W(
|
|
6077
6085
|
"w-full select-none min-w-0",
|
|
6078
6086
|
q && "opacity-50 pointer-events-none"
|
|
6079
6087
|
),
|
|
6080
|
-
children: z || /* @__PURE__ */ n("span", { className: "flex items-center justify-center text-gray-300", children: S === "edit" && /* @__PURE__ */ n(
|
|
6088
|
+
children: z || /* @__PURE__ */ n("span", { className: "flex items-center justify-center text-gray-300", children: S === "edit" && /* @__PURE__ */ n(U, { icon: "ph:plus-bold" }) })
|
|
6081
6089
|
}
|
|
6082
6090
|
)
|
|
6083
6091
|
]
|
|
@@ -6121,13 +6129,13 @@ function Zi({
|
|
|
6121
6129
|
l(!1), o();
|
|
6122
6130
|
},
|
|
6123
6131
|
style: { height: `${a ? 52 : s ? 28 : 4}px` },
|
|
6124
|
-
className:
|
|
6132
|
+
className: W(
|
|
6125
6133
|
"w-full rounded-md flex items-center justify-center",
|
|
6126
6134
|
"transition-all duration-150 ease-in-out overflow-hidden",
|
|
6127
6135
|
a ? "bg-blue-50 border-2 border-blue-300 border-dashed" : s ? "border-2 border-blue-200 border-dashed" : "border-2 border-transparent"
|
|
6128
6136
|
),
|
|
6129
6137
|
children: a && /* @__PURE__ */ v("span", { className: "flex items-center gap-1 text-blue-500 text-xs font-medium select-none pointer-events-none", children: [
|
|
6130
|
-
/* @__PURE__ */ n(
|
|
6138
|
+
/* @__PURE__ */ n(U, { icon: "octicon:plus-16" }),
|
|
6131
6139
|
"Drop here"
|
|
6132
6140
|
] })
|
|
6133
6141
|
}
|
|
@@ -6201,7 +6209,7 @@ function Pa({ elementData: i, sectionId: e }) {
|
|
|
6201
6209
|
},
|
|
6202
6210
|
onDrop: A ? void 0 : m,
|
|
6203
6211
|
onDragEnd: h,
|
|
6204
|
-
className:
|
|
6212
|
+
className: W(
|
|
6205
6213
|
"cursor-grab active:cursor-grabbing border p-4 w-full rounded-lg",
|
|
6206
6214
|
"transition-all duration-200 ease-in-out",
|
|
6207
6215
|
u === p.id ? "opacity-40 scale-[0.98] bg-gray-100 border-dashed border-blue-300 shadow-inner" : u ? "bg-white border-dashed border-blue-200 shadow-sm" : "bg-white border-gray-200 shadow-sm hover:border-blue-300 hover:shadow-md"
|
|
@@ -6250,7 +6258,7 @@ function Pa({ elementData: i, sectionId: e }) {
|
|
|
6250
6258
|
},
|
|
6251
6259
|
onDrop: m,
|
|
6252
6260
|
onDragEnd: h,
|
|
6253
|
-
className:
|
|
6261
|
+
className: W(
|
|
6254
6262
|
"w-full p-4 border rounded-lg cursor-grab active:cursor-grabbing",
|
|
6255
6263
|
"transition-all duration-200 ease-in-out",
|
|
6256
6264
|
x ? "opacity-40 scale-[0.98] bg-gray-100 border-dashed border-blue-400 shadow-inner" : k ? "bg-white border-dashed border-blue-200" : "bg-white border-gray-200 shadow-sm hover:border-blue-300 hover:shadow-md"
|
|
@@ -6328,7 +6336,7 @@ const Ea = Oi(Pa), Ra = M.object({
|
|
|
6328
6336
|
{
|
|
6329
6337
|
onClick: e,
|
|
6330
6338
|
className: "absolute right-4 top-4 p-2 text-[#98A2B3] hover:bg-gray-50 rounded-lg",
|
|
6331
|
-
children: /* @__PURE__ */ n(
|
|
6339
|
+
children: /* @__PURE__ */ n(U, { icon: "tabler:x" })
|
|
6332
6340
|
}
|
|
6333
6341
|
)
|
|
6334
6342
|
] }),
|
|
@@ -6456,7 +6464,7 @@ const Ea = Oi(Pa), Ra = M.object({
|
|
|
6456
6464
|
type: "button",
|
|
6457
6465
|
className: "p-1 text-xs border rounded-lg",
|
|
6458
6466
|
onClick: () => d(i),
|
|
6459
|
-
children: /* @__PURE__ */ n(
|
|
6467
|
+
children: /* @__PURE__ */ n(U, { icon: "fluent:edit-28-regular" })
|
|
6460
6468
|
}
|
|
6461
6469
|
),
|
|
6462
6470
|
c > 1 && /* @__PURE__ */ n(
|
|
@@ -6465,7 +6473,7 @@ const Ea = Oi(Pa), Ra = M.object({
|
|
|
6465
6473
|
type: "button",
|
|
6466
6474
|
className: "p-1 text-xs border rounded-lg",
|
|
6467
6475
|
onClick: () => u(i.id),
|
|
6468
|
-
children: /* @__PURE__ */ n(
|
|
6476
|
+
children: /* @__PURE__ */ n(U, { icon: "lets-icons:trash-duotone-line" })
|
|
6469
6477
|
}
|
|
6470
6478
|
),
|
|
6471
6479
|
/* @__PURE__ */ n(
|
|
@@ -6475,7 +6483,7 @@ const Ea = Oi(Pa), Ra = M.object({
|
|
|
6475
6483
|
className: "p-1 text-xs rounded-lg",
|
|
6476
6484
|
onClick: () => l(e),
|
|
6477
6485
|
children: /* @__PURE__ */ n(
|
|
6478
|
-
|
|
6486
|
+
U,
|
|
6479
6487
|
{
|
|
6480
6488
|
icon: a.includes(e) ? "fa6-solid:chevron-up" : "fa6-solid:chevron-down",
|
|
6481
6489
|
iconClass: "text-base"
|
|
@@ -6744,7 +6752,7 @@ const Yi = [
|
|
|
6744
6752
|
active:opacity-50 element_class`,
|
|
6745
6753
|
draggable: !0,
|
|
6746
6754
|
children: /* @__PURE__ */ v("span", { className: "flex flex-col items-center justify-center w-full gap-2", children: [
|
|
6747
|
-
/* @__PURE__ */ n("span", { style: { color: c }, children: /* @__PURE__ */ n(
|
|
6755
|
+
/* @__PURE__ */ n("span", { style: { color: c }, children: /* @__PURE__ */ n(U, { icon: g.icon, iconClass: "w-6 h-6" }) }),
|
|
6748
6756
|
/* @__PURE__ */ n(
|
|
6749
6757
|
"span",
|
|
6750
6758
|
{
|
|
@@ -6775,7 +6783,7 @@ const Yi = [
|
|
|
6775
6783
|
style: h,
|
|
6776
6784
|
onClick: m
|
|
6777
6785
|
}) => {
|
|
6778
|
-
const b =
|
|
6786
|
+
const b = W(
|
|
6779
6787
|
"btn inline-flex justify-center",
|
|
6780
6788
|
{
|
|
6781
6789
|
"pointer-events-none": o,
|
|
@@ -6815,9 +6823,9 @@ const Yi = [
|
|
|
6815
6823
|
),
|
|
6816
6824
|
"Submitting..."
|
|
6817
6825
|
] }) : /* @__PURE__ */ v("span", { className: "flex items-center", children: [
|
|
6818
|
-
a && l === "left" && /* @__PURE__ */ n("span", { className: `mr-[6px] ${d}`, children: /* @__PURE__ */ n(
|
|
6826
|
+
a && l === "left" && /* @__PURE__ */ n("span", { className: `mr-[6px] ${d}`, children: /* @__PURE__ */ n(U, { icon: a }) }),
|
|
6819
6827
|
i && /* @__PURE__ */ n("span", { children: i }),
|
|
6820
|
-
a && l === "right" && /* @__PURE__ */ n("span", { className: `ml-[6px] ${d}`, children: /* @__PURE__ */ n(
|
|
6828
|
+
a && l === "right" && /* @__PURE__ */ n("span", { className: `ml-[6px] ${d}`, children: /* @__PURE__ */ n(U, { icon: a }) })
|
|
6821
6829
|
] });
|
|
6822
6830
|
return r ? /* @__PURE__ */ n("div", { className: b, children: f() }) : c ? /* @__PURE__ */ n(ge, { to: c, className: b, children: f() }) : /* @__PURE__ */ n(
|
|
6823
6831
|
"button",
|
|
@@ -6900,7 +6908,7 @@ const Fa = ({
|
|
|
6900
6908
|
) })
|
|
6901
6909
|
] });
|
|
6902
6910
|
};
|
|
6903
|
-
function
|
|
6911
|
+
function Ua() {
|
|
6904
6912
|
return /* @__PURE__ */ n("div", { children: /* @__PURE__ */ v(
|
|
6905
6913
|
"svg",
|
|
6906
6914
|
{
|
|
@@ -6925,7 +6933,7 @@ function Wa() {
|
|
|
6925
6933
|
}
|
|
6926
6934
|
) });
|
|
6927
6935
|
}
|
|
6928
|
-
function
|
|
6936
|
+
function Wa({
|
|
6929
6937
|
title: i,
|
|
6930
6938
|
goBackUrl: e,
|
|
6931
6939
|
onSubmit: o,
|
|
@@ -6954,7 +6962,7 @@ function Ua({
|
|
|
6954
6962
|
onClick: () => e(),
|
|
6955
6963
|
style: { color: (p == null ? void 0 : p.buttonColor) || "#333" },
|
|
6956
6964
|
className: "flex items-center gap-x-3",
|
|
6957
|
-
children: /* @__PURE__ */ n(
|
|
6965
|
+
children: /* @__PURE__ */ n(Ua, {})
|
|
6958
6966
|
}
|
|
6959
6967
|
),
|
|
6960
6968
|
" ",
|
|
@@ -7028,7 +7036,7 @@ function Ua({
|
|
|
7028
7036
|
] });
|
|
7029
7037
|
}
|
|
7030
7038
|
const ee = ({ loadingClass: i }) => {
|
|
7031
|
-
const e =
|
|
7039
|
+
const e = W(
|
|
7032
7040
|
"h-full w-full min-h-[300px] flex justify-center items-center",
|
|
7033
7041
|
i
|
|
7034
7042
|
);
|
|
@@ -7056,7 +7064,7 @@ function za({
|
|
|
7056
7064
|
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("div", { className: "w-[250px] h-screen border-r border-[#E4E7EC] bg-white ", children: /* @__PURE__ */ n(ja, {}) }) }),
|
|
7057
7065
|
/* @__PURE__ */ v("div", { className: "flex-1 h-full max-h-full z-[1] w-[calc(100%-250px)]", children: [
|
|
7058
7066
|
/* @__PURE__ */ n("div", { className: " h-[70px]", children: /* @__PURE__ */ n(
|
|
7059
|
-
|
|
7067
|
+
Wa,
|
|
7060
7068
|
{
|
|
7061
7069
|
title: o,
|
|
7062
7070
|
goBackUrl: s,
|
|
@@ -7272,7 +7280,7 @@ function $a({ form_data: i, options: e }) {
|
|
|
7272
7280
|
return /* @__PURE__ */ v(
|
|
7273
7281
|
"div",
|
|
7274
7282
|
{
|
|
7275
|
-
className:
|
|
7283
|
+
className: W("group relative grid gap-y-[6px] min-w-0", a.elementClass),
|
|
7276
7284
|
children: [
|
|
7277
7285
|
/* @__PURE__ */ n(
|
|
7278
7286
|
Di,
|
|
@@ -7344,7 +7352,7 @@ function Qa({ form_data: i, options: e, current: o }) {
|
|
|
7344
7352
|
return a.gridId ? null : /* @__PURE__ */ v(
|
|
7345
7353
|
"div",
|
|
7346
7354
|
{
|
|
7347
|
-
className:
|
|
7355
|
+
className: W(
|
|
7348
7356
|
"group relative grid gap-y-[6px] min-w-0",
|
|
7349
7357
|
a.elementClass
|
|
7350
7358
|
),
|