@gemafajarramadhan/dynamic-ui 1.3.74 → 1.3.75
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/dynamic-ui.es.js +814 -814
- package/dist/dynamic-ui.umd.js +10 -10
- package/package.json +1 -1
package/dist/dynamic-ui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var lm = Object.defineProperty;
|
|
2
2
|
var cm = (e, t, n) => t in e ? lm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Ke = (e, t, n) => cm(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { computed as H, ref as ce, shallowRef as xl, watch as $e, getCurrentScope as dm, onScopeDispose as um, shallowReadonly as Zo, unref as E, defineComponent as Le, useAttrs as Kt, inject as bt, onMounted as _t, onBeforeUnmount as en, withDirectives as Jt, openBlock as b, createElementBlock as M, normalizeClass as ve, Fragment as Pe, createCommentVNode as ne, createElementVNode as D, createTextVNode as Ue, toDisplayString as
|
|
4
|
+
import { computed as H, ref as ce, shallowRef as xl, watch as $e, getCurrentScope as dm, onScopeDispose as um, shallowReadonly as Zo, unref as E, defineComponent as Le, useAttrs as Kt, inject as bt, onMounted as _t, onBeforeUnmount as en, withDirectives as Jt, openBlock as b, createElementBlock as M, normalizeClass as ve, Fragment as Pe, createCommentVNode as ne, createElementVNode as D, createTextVNode as Ue, toDisplayString as ae, renderSlot as Xe, createBlock as Me, resolveDynamicComponent as Dt, mergeProps as st, withModifiers as St, createVNode as ue, Teleport as zs, normalizeStyle as ut, renderList as Ge, vShow as xn, onUnmounted as wo, withCtx as _e, normalizeProps as Zn, guardReactiveProps as eo, nextTick as rn, vModelText as js, toRef as bf, createSlots as Yr, withKeys as Fo, Transition as In, reactive as kt, toRaw as dn, isRef as Ki, createApp as fm, h as Ia, isVNode as yf, cloneVNode as hm, watchEffect as jr, getCurrentInstance as Ur, resolveComponent as pm, provide as gm, defineCustomElement as vf } from "vue";
|
|
5
5
|
import * as fn from "lucide-vue-next";
|
|
6
6
|
import { ChevronDown as Ho, Check as Jr, Eye as ma, EyeOff as xf, Minus as mm, Loader2 as Ht, AlertCircle as wr, X as bo, Calendar as kl, CheckCircle2 as Jc, Upload as bm, FileText as ba, Pencil as kf, Trash2 as wl, Clock as ss, Circle as ym, UploadCloud as vm, ChevronRight as Cl, Terminal as xm, User as km, ShieldCheck as wm, Settings as Cm, Globe as _m, Activity as Am, RefreshCw as Vr, Download as xs, AlertTriangle as qi, ImageIcon as Qc, ExternalLink as Zc, Minimize2 as Sm, Maximize2 as Dm, FileWarning as ed, MoreHorizontal as Em, ChevronLeftIcon as wf, ChevronRightIcon as Cf, ChevronUp as Mm, Search as $a, ChevronsLeft as Tm, ChevronLeft as Rm, ChevronsRight as Om, SlidersHorizontal as Pm, Plus as Lm, CheckCircle as Im, SquarePen as $m, ToggleLeft as Fm, Slash as Bm, Home as Nm } from "lucide-vue-next";
|
|
7
7
|
import { Primitive as zm, useForwardPropsEmits as Ko, TooltipRoot as jm, TooltipPortal as Um, TooltipContent as Vm, TooltipProvider as Wm, TooltipTrigger as Hm, Label as Km, DialogRoot as qm, DialogPortal as Gm, DialogOverlay as Xm, DialogContent as Ym, DialogClose as Jm, useForwardProps as $n, DialogDescription as Qm, DialogTitle as Zm, AvatarRoot as e0, AvatarFallback as t0, AvatarImage as n0, Separator as o0, PaginationRoot as r0, PaginationList as a0, PaginationEllipsis as s0, PaginationFirst as i0, PaginationListItem as l0, PaginationLast as c0, PaginationNext as d0, PaginationPrev as u0, SelectRoot as f0, SelectPortal as h0, SelectContent as p0, SelectViewport as g0, SelectItem as m0, SelectItemIndicator as b0, SelectItemText as y0, SelectScrollDownButton as v0, SelectScrollUpButton as x0, SelectTrigger as k0, SelectIcon as w0, SelectValue as C0 } from "reka-ui";
|
|
@@ -1253,7 +1253,7 @@ const hb = ["aria-busy"], pb = {
|
|
|
1253
1253
|
if (typeof le == "string" || typeof le == "number") return String(le);
|
|
1254
1254
|
const be = l.value;
|
|
1255
1255
|
return typeof be == "function" ? be(le) : (le == null ? void 0 : le[be]) ?? (le == null ? void 0 : le.name) ?? (le == null ? void 0 : le.nama) ?? (le == null ? void 0 : le.label) ?? (le == null ? void 0 : le.title) ?? "-";
|
|
1256
|
-
},
|
|
1256
|
+
}, ie = (le) => {
|
|
1257
1257
|
if (le == null) return null;
|
|
1258
1258
|
if (typeof le == "string" || typeof le == "number") return le;
|
|
1259
1259
|
const be = c.value;
|
|
@@ -1263,7 +1263,7 @@ const hb = ["aria-busy"], pb = {
|
|
|
1263
1263
|
if (le == null || le === "") return "";
|
|
1264
1264
|
const be = (Re, ge) => {
|
|
1265
1265
|
if (Re == null || ge == null) return !1;
|
|
1266
|
-
const xe =
|
|
1266
|
+
const xe = ie(ge), Ae = ge == null ? void 0 : ge.id, ze = ge == null ? void 0 : ge.code, Je = Y(ge);
|
|
1267
1267
|
return String(Re) === String(xe) || Ae != null && String(Re) === String(Ae) || ze != null && String(Re) === String(ze) || Je != null && String(Re) === String(Je);
|
|
1268
1268
|
};
|
|
1269
1269
|
if (Array.isArray(le))
|
|
@@ -1281,7 +1281,7 @@ const hb = ["aria-busy"], pb = {
|
|
|
1281
1281
|
let ge = le;
|
|
1282
1282
|
if (Re || (ge = le.filter((xe) => Y(xe).toLowerCase().includes(be))), ge.length > 0) {
|
|
1283
1283
|
const xe = (Ae) => {
|
|
1284
|
-
const ze =
|
|
1284
|
+
const ze = ie(Ae);
|
|
1285
1285
|
return Array.isArray(C.value) ? C.value.some((Je) => Je == ze) : C.value == ze;
|
|
1286
1286
|
};
|
|
1287
1287
|
ge = [...ge].sort((Ae, ze) => {
|
|
@@ -1309,13 +1309,13 @@ const hb = ["aria-busy"], pb = {
|
|
|
1309
1309
|
}, Z = () => {
|
|
1310
1310
|
T.value = !1, N.value = -1, V.value = J.value || "";
|
|
1311
1311
|
}, he = (le) => {
|
|
1312
|
-
const be = h.value ? le :
|
|
1312
|
+
const be = h.value ? le : ie(le);
|
|
1313
1313
|
let ye = be;
|
|
1314
1314
|
const Re = s("multiple");
|
|
1315
1315
|
Array.isArray(C.value) && Re && (ye = [be]), C.value = ye, o("update:modelValue", ye), F.value = null, W(ye), V.value = Y(le), Z();
|
|
1316
1316
|
}, Te = (le = !0) => {
|
|
1317
1317
|
I.value = [], v.value = !1, le && (C.value = Array.isArray(C.value) ? [] : null, o("update:modelValue", C.value), V.value = ""), F.value = null;
|
|
1318
|
-
},
|
|
1318
|
+
}, re = () => {
|
|
1319
1319
|
i.value = !0, Te(), Z(), setTimeout(() => {
|
|
1320
1320
|
i.value = !1;
|
|
1321
1321
|
}, 0);
|
|
@@ -1398,7 +1398,7 @@ const hb = ["aria-busy"], pb = {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
1400
|
}, Se = (le) => {
|
|
1401
|
-
const be =
|
|
1401
|
+
const be = ie(le), ye = le == null ? void 0 : le.id, Re = le == null ? void 0 : le.code, ge = Y(le), xe = (Ae) => Ae == null ? !1 : String(Ae) === String(be) || ye != null && String(Ae) === String(ye) || Re != null && String(Ae) === String(Re) || ge != null && String(Ae) === String(ge);
|
|
1402
1402
|
return h.value ? C.value ? Array.isArray(C.value) ? C.value.some((Ae) => xe(Ae)) : xe(C.value) : !1 : Array.isArray(C.value) ? C.value.some((Ae) => xe(Ae)) : xe(C.value);
|
|
1403
1403
|
};
|
|
1404
1404
|
$e(
|
|
@@ -1428,11 +1428,11 @@ const hb = ["aria-busy"], pb = {
|
|
|
1428
1428
|
let ye = !1, Re = be;
|
|
1429
1429
|
const ge = (xe) => {
|
|
1430
1430
|
const Ae = le.find((ze) => {
|
|
1431
|
-
const Je =
|
|
1431
|
+
const Je = ie(ze), lt = ze == null ? void 0 : ze.id, Et = ze == null ? void 0 : ze.code, Zt = Y(ze);
|
|
1432
1432
|
return String(xe) === String(Je) || lt != null && String(xe) === String(lt) || Et != null && String(xe) === String(Et) || Zt != null && String(xe) === String(Zt);
|
|
1433
1433
|
});
|
|
1434
1434
|
if (Ae) {
|
|
1435
|
-
const ze = h.value ? Ae :
|
|
1435
|
+
const ze = h.value ? Ae : ie(Ae);
|
|
1436
1436
|
if (String(xe) !== String(ze) && typeof xe != "object")
|
|
1437
1437
|
return { updated: !0, value: ze };
|
|
1438
1438
|
}
|
|
@@ -1481,7 +1481,7 @@ const hb = ["aria-busy"], pb = {
|
|
|
1481
1481
|
for: x.value,
|
|
1482
1482
|
class: "mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100"
|
|
1483
1483
|
}, [
|
|
1484
|
-
Ue(
|
|
1484
|
+
Ue(ae(a.value) + " ", 1),
|
|
1485
1485
|
p.value ? (b(), M("span", mb, "*")) : ne("", !0)
|
|
1486
1486
|
], 8, gb)) : ne("", !0),
|
|
1487
1487
|
D("div", bb, [
|
|
@@ -1539,7 +1539,7 @@ const hb = ["aria-busy"], pb = {
|
|
|
1539
1539
|
class: "shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300",
|
|
1540
1540
|
onMousedown: be[3] || (be[3] = St(() => {
|
|
1541
1541
|
}, ["prevent"])),
|
|
1542
|
-
onClick: St(
|
|
1542
|
+
onClick: St(re, ["stop"]),
|
|
1543
1543
|
"aria-label": "Clear"
|
|
1544
1544
|
}, " ✕ ", 32)) : (b(), M("button", {
|
|
1545
1545
|
key: 3,
|
|
@@ -1564,7 +1564,7 @@ const hb = ["aria-busy"], pb = {
|
|
|
1564
1564
|
}, [
|
|
1565
1565
|
D("div", wb, [
|
|
1566
1566
|
fe.value.length ? (b(!0), M(Pe, { key: 0 }, Ge(fe.value, (ye, Re) => (b(), M("button", {
|
|
1567
|
-
key:
|
|
1567
|
+
key: ie(ye) ?? Re,
|
|
1568
1568
|
type: "button",
|
|
1569
1569
|
class: ve([
|
|
1570
1570
|
"w-full flex justify-between text-left px-3 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-neutral-800",
|
|
@@ -1575,20 +1575,20 @@ const hb = ["aria-busy"], pb = {
|
|
|
1575
1575
|
}, ["prevent"])),
|
|
1576
1576
|
onClick: St((ge) => he(ye), ["stop"])
|
|
1577
1577
|
}, [
|
|
1578
|
-
Ue(
|
|
1578
|
+
Ue(ae(Y(ye)) + " ", 1),
|
|
1579
1579
|
Se(ye) ? (b(), M("span", _b, [
|
|
1580
1580
|
ue(E(Jr), { class: "h-4 w-4" })
|
|
1581
1581
|
])) : ne("", !0)
|
|
1582
1582
|
], 42, Cb))), 128)) : Xe(le.$slots, "no-data", { key: 1 }, () => [
|
|
1583
1583
|
D("div", Ab, [
|
|
1584
|
-
P.value ? (b(), M("span", Sb, "Loading data…")) : q.value ? (b(), M("span", Db,
|
|
1584
|
+
P.value ? (b(), M("span", Sb, "Loading data…")) : q.value ? (b(), M("span", Db, ae(q.value), 1)) : (b(), M("span", Eb, "No data available"))
|
|
1585
1585
|
])
|
|
1586
1586
|
])
|
|
1587
1587
|
])
|
|
1588
1588
|
], 4)) : ne("", !0)
|
|
1589
1589
|
]))
|
|
1590
1590
|
]),
|
|
1591
|
-
F.value || g.value ? (b(), M("p", Mb,
|
|
1591
|
+
F.value || g.value ? (b(), M("p", Mb, ae(F.value || g.value), 1)) : ne("", !0)
|
|
1592
1592
|
], 64))
|
|
1593
1593
|
], 10, hb)), [
|
|
1594
1594
|
[xn, e.visible]
|
|
@@ -1728,13 +1728,13 @@ const hb = ["aria-busy"], pb = {
|
|
|
1728
1728
|
if (n.disabled || n.readonly || g.value) return;
|
|
1729
1729
|
g.value = !0;
|
|
1730
1730
|
const J = $.value || "";
|
|
1731
|
-
f.value = J, P.value = J, C.value = !0, n.autoFetchOnOpen && !p.value &&
|
|
1731
|
+
f.value = J, P.value = J, C.value = !0, n.autoFetchOnOpen && !p.value && ie(!0, !0);
|
|
1732
1732
|
}, V = (J) => {
|
|
1733
1733
|
if (n.disabled || n.readonly) return;
|
|
1734
1734
|
const fe = g.value;
|
|
1735
1735
|
if (g.value = !0, !fe) {
|
|
1736
1736
|
const pe = $.value || "";
|
|
1737
|
-
f.value = pe, P.value = pe, C.value = !0, n.autoFetchOnOpen && !p.value &&
|
|
1737
|
+
f.value = pe, P.value = pe, C.value = !0, n.autoFetchOnOpen && !p.value && ie(!0, !0);
|
|
1738
1738
|
}
|
|
1739
1739
|
o("focus", J);
|
|
1740
1740
|
}, N = (J) => {
|
|
@@ -1744,7 +1744,7 @@ const hb = ["aria-busy"], pb = {
|
|
|
1744
1744
|
}, F = (J) => {
|
|
1745
1745
|
const fe = J.target;
|
|
1746
1746
|
C.value = !0, f.value = fe.value, P.value = fe.value, g.value || (g.value = !0), v.value && clearTimeout(v.value), v.value = setTimeout(() => {
|
|
1747
|
-
o("search", f.value), m.value = 1, w.value = !0,
|
|
1747
|
+
o("search", f.value), m.value = 1, w.value = !0, ie(!0);
|
|
1748
1748
|
}, n.debounceMs);
|
|
1749
1749
|
}, q = (J) => {
|
|
1750
1750
|
if (g.value)
|
|
@@ -1765,8 +1765,8 @@ const hb = ["aria-busy"], pb = {
|
|
|
1765
1765
|
}, Y = (J) => {
|
|
1766
1766
|
if (!w.value || p.value) return;
|
|
1767
1767
|
const fe = J.target, { scrollTop: pe, scrollHeight: W, clientHeight: G } = fe;
|
|
1768
|
-
pe + G >= W - n.threshold &&
|
|
1769
|
-
},
|
|
1768
|
+
pe + G >= W - n.threshold && ie();
|
|
1769
|
+
}, ie = async (J = !1, fe = !1) => {
|
|
1770
1770
|
if (p.value) return;
|
|
1771
1771
|
p.value = !0;
|
|
1772
1772
|
const pe = ++_.value;
|
|
@@ -1775,7 +1775,7 @@ const hb = ["aria-busy"], pb = {
|
|
|
1775
1775
|
if (n.fetchItems)
|
|
1776
1776
|
W = await n.fetchItems();
|
|
1777
1777
|
else if (I != null && I.apiUrl) {
|
|
1778
|
-
const G = n.endpoint || {}, Z = G.apiModule || n.apiModule, he = G.apiAction || n.apiAction, Te = G.apiUrl || n.apiUrl,
|
|
1778
|
+
const G = n.endpoint || {}, Z = G.apiModule || n.apiModule, he = G.apiAction || n.apiAction, Te = G.apiUrl || n.apiUrl, re = G.apiMethod || n.apiMethod || "GET", Ce = {
|
|
1779
1779
|
page: J ? 1 : m.value,
|
|
1780
1780
|
[n.pageSizeParamName]: n.pageSize,
|
|
1781
1781
|
[n.searchParamName]: fe ? "" : f.value,
|
|
@@ -1783,11 +1783,11 @@ const hb = ["aria-busy"], pb = {
|
|
|
1783
1783
|
};
|
|
1784
1784
|
let we;
|
|
1785
1785
|
if (Te)
|
|
1786
|
-
we = await I.apiUrl(Te,
|
|
1786
|
+
we = await I.apiUrl(Te, re, Ce, { _url: Te, _method: re });
|
|
1787
1787
|
else {
|
|
1788
1788
|
if (!Z || !he)
|
|
1789
1789
|
throw new Error("API module and action or apiUrl are required");
|
|
1790
|
-
we = await I.apiUrl(`/${Z}/${he}`,
|
|
1790
|
+
we = await I.apiUrl(`/${Z}/${he}`, re, Ce);
|
|
1791
1791
|
}
|
|
1792
1792
|
W = we.data || we.items || we || [], x.value = we.total || we.totalItems || we.totalData || (Array.isArray(we) ? we.length : 0);
|
|
1793
1793
|
}
|
|
@@ -1806,9 +1806,9 @@ const hb = ["aria-busy"], pb = {
|
|
|
1806
1806
|
};
|
|
1807
1807
|
return $e(() => n.apiParams, (J, fe) => {
|
|
1808
1808
|
if (JSON.stringify(J) === JSON.stringify(fe)) return;
|
|
1809
|
-
h.value = [], m.value = 1, w.value = !0, A.value && J != null && (o("update:modelValue", null), $.value = "", f.value = ""), J != null &&
|
|
1809
|
+
h.value = [], m.value = 1, w.value = !0, A.value && J != null && (o("update:modelValue", null), $.value = "", f.value = ""), J != null && ie(!0);
|
|
1810
1810
|
}, { deep: !0 }), _t(() => {
|
|
1811
|
-
n.autoFetchOnMount &&
|
|
1811
|
+
n.autoFetchOnMount && ie();
|
|
1812
1812
|
}), wo(() => {
|
|
1813
1813
|
v.value && clearTimeout(v.value);
|
|
1814
1814
|
}), $e(() => n.modelValue, (J) => {
|
|
@@ -1841,7 +1841,7 @@ const hb = ["aria-busy"], pb = {
|
|
|
1841
1841
|
for: d.value,
|
|
1842
1842
|
class: "mb-1 block text-sm font-medium text-gray-900 dark:text-gray-100"
|
|
1843
1843
|
}, [
|
|
1844
|
-
Ue(
|
|
1844
|
+
Ue(ae(e.label) + " ", 1),
|
|
1845
1845
|
e.required ? (b(), M("span", Pb, "*")) : ne("", !0)
|
|
1846
1846
|
], 8, Ob)) : ne("", !0),
|
|
1847
1847
|
D("div", Lb, [
|
|
@@ -1926,7 +1926,7 @@ const hb = ["aria-busy"], pb = {
|
|
|
1926
1926
|
class: "overflow-auto",
|
|
1927
1927
|
onScroll: Y
|
|
1928
1928
|
}, [
|
|
1929
|
-
p.value && h.value.length === 0 && !A.value ? (b(), M("div", Nb,
|
|
1929
|
+
p.value && h.value.length === 0 && !A.value ? (b(), M("div", Nb, ae(e.loadingText), 1)) : L.value.length ? (b(!0), M(Pe, { key: 1 }, Ge(L.value, (pe, W) => (b(), M("button", {
|
|
1930
1930
|
key: K(pe) ?? W,
|
|
1931
1931
|
type: "button",
|
|
1932
1932
|
class: ve(["w-full flex justify-between text-left px-3 py-2 text-sm hover:bg-neutral-100 dark:hover:bg-neutral-800", W === y.value ? "bg-neutral-100 dark:bg-neutral-800" : ""]),
|
|
@@ -1941,8 +1941,8 @@ const hb = ["aria-busy"], pb = {
|
|
|
1941
1941
|
}, () => [
|
|
1942
1942
|
D("div", jb, [
|
|
1943
1943
|
D("div", Ub, [
|
|
1944
|
-
D("div", Vb,
|
|
1945
|
-
e.itemSubtitle ? (b(), M("div", Wb,
|
|
1944
|
+
D("div", Vb, ae(oe(pe)), 1),
|
|
1945
|
+
e.itemSubtitle ? (b(), M("div", Wb, ae(S(pe)), 1)) : ne("", !0)
|
|
1946
1946
|
])
|
|
1947
1947
|
])
|
|
1948
1948
|
]),
|
|
@@ -1950,15 +1950,15 @@ const hb = ["aria-busy"], pb = {
|
|
|
1950
1950
|
], 42, zb))), 128)) : w.value && h.value.length > 0 ? (b(), M("div", {
|
|
1951
1951
|
key: 2,
|
|
1952
1952
|
class: "h-10 flex items-center px-3 cursor-pointer",
|
|
1953
|
-
onClick: fe[3] || (fe[3] = (pe) =>
|
|
1953
|
+
onClick: fe[3] || (fe[3] = (pe) => ie())
|
|
1954
1954
|
}, [
|
|
1955
|
-
D("div", Kb,
|
|
1956
|
-
])) : !p.value && h.value.length === 0 ? (b(), M("div", qb,
|
|
1955
|
+
D("div", Kb, ae(e.loadingText), 1)
|
|
1956
|
+
])) : !p.value && h.value.length === 0 ? (b(), M("div", qb, ae(e.noResultsText), 1)) : ne("", !0)
|
|
1957
1957
|
], 36)
|
|
1958
1958
|
], 4)) : ne("", !0)
|
|
1959
1959
|
]))
|
|
1960
1960
|
]),
|
|
1961
|
-
e.error ? (b(), M("p", Gb,
|
|
1961
|
+
e.error ? (b(), M("p", Gb, ae(e.errorMessage || e.error), 1)) : e.helperText ? (b(), M("p", Xb, ae(e.helperText), 1)) : ne("", !0)
|
|
1962
1962
|
], 64))
|
|
1963
1963
|
], 10, Tb)), [
|
|
1964
1964
|
[xn, e.visible]
|
|
@@ -2298,7 +2298,7 @@ const Yb = (e, t) => {
|
|
|
2298
2298
|
c,
|
|
2299
2299
|
qe,
|
|
2300
2300
|
He
|
|
2301
|
-
], Y = () => ["", it, Tr, To],
|
|
2301
|
+
], Y = () => ["", it, Tr, To], ie = () => ["solid", "dashed", "dotted", "double"], J = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], fe = () => [it, wi, bd, md], pe = () => [
|
|
2302
2302
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2303
2303
|
"",
|
|
2304
2304
|
"none",
|
|
@@ -3242,7 +3242,7 @@ const Yb = (e, t) => {
|
|
|
3242
3242
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
3243
3243
|
*/
|
|
3244
3244
|
"text-decoration-style": [{
|
|
3245
|
-
decoration: [...
|
|
3245
|
+
decoration: [...ie(), "wavy"]
|
|
3246
3246
|
}],
|
|
3247
3247
|
/**
|
|
3248
3248
|
* Text Decoration Thickness
|
|
@@ -3652,14 +3652,14 @@ const Yb = (e, t) => {
|
|
|
3652
3652
|
* @see https://tailwindcss.com/docs/border-style
|
|
3653
3653
|
*/
|
|
3654
3654
|
"border-style": [{
|
|
3655
|
-
border: [...
|
|
3655
|
+
border: [...ie(), "hidden", "none"]
|
|
3656
3656
|
}],
|
|
3657
3657
|
/**
|
|
3658
3658
|
* Divide Style
|
|
3659
3659
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
3660
3660
|
*/
|
|
3661
3661
|
"divide-style": [{
|
|
3662
|
-
divide: [...
|
|
3662
|
+
divide: [...ie(), "hidden", "none"]
|
|
3663
3663
|
}],
|
|
3664
3664
|
/**
|
|
3665
3665
|
* Border Color
|
|
@@ -3750,7 +3750,7 @@ const Yb = (e, t) => {
|
|
|
3750
3750
|
* @see https://tailwindcss.com/docs/outline-style
|
|
3751
3751
|
*/
|
|
3752
3752
|
"outline-style": [{
|
|
3753
|
-
outline: [...
|
|
3753
|
+
outline: [...ie(), "none", "hidden"]
|
|
3754
3754
|
}],
|
|
3755
3755
|
/**
|
|
3756
3756
|
* Outline Offset
|
|
@@ -5838,7 +5838,7 @@ const Yy = (e) => new Intl.NumberFormat("id-ID", {
|
|
|
5838
5838
|
}, A = (N, F) => {
|
|
5839
5839
|
const q = v(N);
|
|
5840
5840
|
if (!q) return N;
|
|
5841
|
-
const Y = (
|
|
5841
|
+
const Y = (ie) => Math.max(0, Math.min(255, Math.round(ie)));
|
|
5842
5842
|
return `rgba(${Y(q.r * (1 - F))}, ${Y(q.g * (1 - F))}, ${Y(
|
|
5843
5843
|
q.b * (1 - F)
|
|
5844
5844
|
)}, ${q.a})`;
|
|
@@ -5871,8 +5871,8 @@ const Yy = (e) => new Intl.NumberFormat("id-ID", {
|
|
|
5871
5871
|
_.value = null;
|
|
5872
5872
|
return;
|
|
5873
5873
|
}
|
|
5874
|
-
const F = X(N), q = F == null ? void 0 : F.colorName, Y = (F == null ? void 0 : F.shade) ?? null,
|
|
5875
|
-
if (!
|
|
5874
|
+
const F = X(N), q = F == null ? void 0 : F.colorName, Y = (F == null ? void 0 : F.shade) ?? null, ie = (q ? U(q, Y) : null) ?? R(N);
|
|
5875
|
+
if (!ie) {
|
|
5876
5876
|
_.value = null;
|
|
5877
5877
|
return;
|
|
5878
5878
|
}
|
|
@@ -5882,11 +5882,11 @@ const Yy = (e) => new Intl.NumberFormat("id-ID", {
|
|
|
5882
5882
|
J = pe;
|
|
5883
5883
|
else if (q && Y) {
|
|
5884
5884
|
const W = P(Y);
|
|
5885
|
-
J = U(q, W) ?? A(
|
|
5885
|
+
J = U(q, W) ?? A(ie, 0.2);
|
|
5886
5886
|
} else
|
|
5887
|
-
J = A(
|
|
5887
|
+
J = A(ie, 0.2);
|
|
5888
5888
|
_.value = {
|
|
5889
|
-
"--btn-color":
|
|
5889
|
+
"--btn-color": ie,
|
|
5890
5890
|
"--btn-color-hover": J
|
|
5891
5891
|
};
|
|
5892
5892
|
};
|
|
@@ -6005,8 +6005,8 @@ const Yy = (e) => new Intl.NumberFormat("id-ID", {
|
|
|
6005
6005
|
hover: "hover:from-emerald-600 hover:to-teal-600"
|
|
6006
6006
|
}
|
|
6007
6007
|
}, T = H(() => {
|
|
6008
|
-
const N = [], F = i.value, q = String(n.borderColor || "").toLowerCase(), Y = F ? B[F] : null,
|
|
6009
|
-
return F && (Y ? J && q !== F ? (N.push(Y.bg, J.hoverBg), n.textColor || N.push(Y.text, J.hoverText)) : (N.push(Y.bg, Y.hoverBg), n.textColor || N.push(Y.text, Y.hoverText)) :
|
|
6008
|
+
const N = [], F = i.value, q = String(n.borderColor || "").toLowerCase(), Y = F ? B[F] : null, ie = F ? j[F] : null, J = q ? B[q] : null;
|
|
6009
|
+
return F && (Y ? J && q !== F ? (N.push(Y.bg, J.hoverBg), n.textColor || N.push(Y.text, J.hoverText)) : (N.push(Y.bg, Y.hoverBg), n.textColor || N.push(Y.text, Y.hoverText)) : ie ? (N.push(ie.bg, ie.hover), n.textColor || N.push(ie.text)) : F === "transparent" ? J ? (N.push("bg-transparent", J.hoverBg), n.textColor || N.push("text-inherit", J.hoverText)) : N.push("bg-transparent hover:bg-black/5 dark:hover:bg-white/5") : N.push(F)), q ? J ? N.push(J.border, J.hoverBorder) : N.push(q) : Y && s.value !== "ghost" && s.value !== "link" && N.push(Y.border, Y.hoverBorder), n.textColor && N.push(n.textColor), N.join(" ");
|
|
6010
6010
|
}), V = H(
|
|
6011
6011
|
() => ht(
|
|
6012
6012
|
ev,
|
|
@@ -6048,7 +6048,7 @@ const Yy = (e) => new Intl.NumberFormat("id-ID", {
|
|
|
6048
6048
|
n.text ? (b(), M("span", {
|
|
6049
6049
|
key: 1,
|
|
6050
6050
|
class: ve(o.value ? "ml-1" : "")
|
|
6051
|
-
},
|
|
6051
|
+
}, ae(n.text), 3)) : ne("", !0)
|
|
6052
6052
|
]),
|
|
6053
6053
|
_: 1
|
|
6054
6054
|
}, 16, ["variant", "size", "disabled", "type", "class", "style"])
|
|
@@ -6061,7 +6061,7 @@ const Yy = (e) => new Intl.NumberFormat("id-ID", {
|
|
|
6061
6061
|
class: "z-[100] animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 bg-gray-900 dark:bg-gray-100 text-white dark:text-gray-900 px-3 py-2 rounded-lg text-sm font-medium shadow-xl border-0"
|
|
6062
6062
|
}, {
|
|
6063
6063
|
default: _e(() => [
|
|
6064
|
-
D("span", Zy,
|
|
6064
|
+
D("span", Zy, ae(n.tooltip), 1)
|
|
6065
6065
|
]),
|
|
6066
6066
|
_: 1
|
|
6067
6067
|
})
|
|
@@ -6085,7 +6085,7 @@ const Yy = (e) => new Intl.NumberFormat("id-ID", {
|
|
|
6085
6085
|
n.text ? (b(), M("span", {
|
|
6086
6086
|
key: 1,
|
|
6087
6087
|
class: ve(o.value ? "ml-1" : "")
|
|
6088
|
-
},
|
|
6088
|
+
}, ae(n.text), 3)) : ne("", !0)
|
|
6089
6089
|
], !0)
|
|
6090
6090
|
]),
|
|
6091
6091
|
_: 3
|
|
@@ -6100,7 +6100,7 @@ const Yy = (e) => new Intl.NumberFormat("id-ID", {
|
|
|
6100
6100
|
for (const [o, r] of t)
|
|
6101
6101
|
n[o] = r;
|
|
6102
6102
|
return n;
|
|
6103
|
-
},
|
|
6103
|
+
}, Tt = /* @__PURE__ */ jt(tv, [["__scopeId", "data-v-4e15b37e"]]), nv = { class: "flex flex-col gap-1" }, ov = {
|
|
6104
6104
|
key: 0,
|
|
6105
6105
|
class: "text-sm font-semibold text-neutral-900 dark:text-neutral-100 leading-tight"
|
|
6106
6106
|
}, rv = {
|
|
@@ -6152,8 +6152,8 @@ const Yy = (e) => new Intl.NumberFormat("id-ID", {
|
|
|
6152
6152
|
}, [
|
|
6153
6153
|
D("div", nv, [
|
|
6154
6154
|
Xe(o.$slots, "header", {}, () => [
|
|
6155
|
-
e.title ? (b(), M("h3", ov,
|
|
6156
|
-
e.subtitle ? (b(), M("p", rv,
|
|
6155
|
+
e.title ? (b(), M("h3", ov, ae(e.title), 1)) : ne("", !0),
|
|
6156
|
+
e.subtitle ? (b(), M("p", rv, ae(e.subtitle), 1)) : ne("", !0)
|
|
6157
6157
|
])
|
|
6158
6158
|
]),
|
|
6159
6159
|
o.$slots.actions ? (b(), M("div", av, [
|
|
@@ -7756,13 +7756,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), T = S, j = O), B ===
|
|
|
7756
7756
|
let ye = me.keywordPatternRe.exec(De), Re = "";
|
|
7757
7757
|
for (; ye; ) {
|
|
7758
7758
|
Re += De.substring(be, ye.index);
|
|
7759
|
-
const ge =
|
|
7759
|
+
const ge = re.case_insensitive ? ye[0].toLowerCase() : ye[0], xe = V(me, ge);
|
|
7760
7760
|
if (xe) {
|
|
7761
7761
|
const [Ae, ze] = xe;
|
|
7762
7762
|
if (Ee.addText(Re), Re = "", T[ge] = (T[ge] || 0) + 1, T[ge] <= lx && (Be += ze), Ae.startsWith("_"))
|
|
7763
7763
|
Re += ye[0];
|
|
7764
7764
|
else {
|
|
7765
|
-
const Je =
|
|
7765
|
+
const Je = re.classNameAliases[Ae] || Ae;
|
|
7766
7766
|
Y(ye[0], Je);
|
|
7767
7767
|
}
|
|
7768
7768
|
} else
|
|
@@ -7791,7 +7791,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), T = S, j = O), B ===
|
|
|
7791
7791
|
function Y(be, ye) {
|
|
7792
7792
|
be !== "" && (Ee.startScope(ye), Ee.addText(be), Ee.endScope());
|
|
7793
7793
|
}
|
|
7794
|
-
function
|
|
7794
|
+
function ie(be, ye) {
|
|
7795
7795
|
let Re = 1;
|
|
7796
7796
|
const ge = ye.length - 1;
|
|
7797
7797
|
for (; Re <= ge; ) {
|
|
@@ -7799,12 +7799,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), T = S, j = O), B ===
|
|
|
7799
7799
|
Re++;
|
|
7800
7800
|
continue;
|
|
7801
7801
|
}
|
|
7802
|
-
const xe =
|
|
7802
|
+
const xe = re.classNameAliases[be[Re]] || be[Re], Ae = ye[Re];
|
|
7803
7803
|
xe ? Y(Ae, xe) : (De = Ae, N(), De = ""), Re++;
|
|
7804
7804
|
}
|
|
7805
7805
|
}
|
|
7806
7806
|
function J(be, ye) {
|
|
7807
|
-
return be.scope && typeof be.scope == "string" && Ee.openNode(
|
|
7807
|
+
return be.scope && typeof be.scope == "string" && Ee.openNode(re.classNameAliases[be.scope] || be.scope), be.beginScope && (be.beginScope._wrap ? (Y(De, re.classNameAliases[be.beginScope._wrap] || be.beginScope._wrap), De = "") : be.beginScope._multi && (ie(be.beginScope, ye), De = "")), me = Object.create(be, { parent: { value: me } }), me;
|
|
7808
7808
|
}
|
|
7809
7809
|
function fe(be, ye, Re) {
|
|
7810
7810
|
let ge = _v(be.endRe, Re);
|
|
@@ -7837,7 +7837,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), T = S, j = O), B ===
|
|
|
7837
7837
|
if (!ge)
|
|
7838
7838
|
return Od;
|
|
7839
7839
|
const xe = me;
|
|
7840
|
-
me.endScope && me.endScope._wrap ? (q(), Y(ye, me.endScope._wrap)) : me.endScope && me.endScope._multi ? (q(),
|
|
7840
|
+
me.endScope && me.endScope._wrap ? (q(), Y(ye, me.endScope._wrap)) : me.endScope && me.endScope._multi ? (q(), ie(me.endScope, be)) : xe.skip ? De += ye : (xe.returnEnd || xe.excludeEnd || (De += ye), q(), xe.excludeEnd && (De = ye));
|
|
7841
7841
|
do
|
|
7842
7842
|
me.scope && Ee.closeNode(), !me.skip && !me.subLanguage && (Be += me.relevance), me = me.parent;
|
|
7843
7843
|
while (me !== ge.parent);
|
|
@@ -7845,7 +7845,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), T = S, j = O), B ===
|
|
|
7845
7845
|
}
|
|
7846
7846
|
function Z() {
|
|
7847
7847
|
const be = [];
|
|
7848
|
-
for (let ye = me; ye !==
|
|
7848
|
+
for (let ye = me; ye !== re; ye = ye.parent)
|
|
7849
7849
|
ye.scope && be.unshift(ye.scope);
|
|
7850
7850
|
be.forEach((ye) => Ee.openNode(ye));
|
|
7851
7851
|
}
|
|
@@ -7877,17 +7877,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), T = S, j = O), B ===
|
|
|
7877
7877
|
throw new Error("potential infinite loop, way more iterations than matches");
|
|
7878
7878
|
return De += Re, Re.length;
|
|
7879
7879
|
}
|
|
7880
|
-
const
|
|
7881
|
-
if (!
|
|
7880
|
+
const re = A(S);
|
|
7881
|
+
if (!re)
|
|
7882
7882
|
throw No(a.replace("{}", S)), new Error('Unknown language: "' + S + '"');
|
|
7883
|
-
const Ce = rx(
|
|
7883
|
+
const Ce = rx(re);
|
|
7884
7884
|
let we = "", me = j || Ce;
|
|
7885
7885
|
const Se = {}, Ee = new i.__emitter(i);
|
|
7886
7886
|
Z();
|
|
7887
7887
|
let De = "", Be = 0, Fe = 0, Ne = 0, le = !1;
|
|
7888
7888
|
try {
|
|
7889
|
-
if (
|
|
7890
|
-
|
|
7889
|
+
if (re.__emitTokens)
|
|
7890
|
+
re.__emitTokens(O, Ee);
|
|
7891
7891
|
else {
|
|
7892
7892
|
for (me.matcher.considerAll(); ; ) {
|
|
7893
7893
|
Ne++, le ? le = !1 : me.matcher.considerAll(), me.matcher.lastIndex = Fe;
|
|
@@ -11119,7 +11119,7 @@ const Dx = { key: 0 }, Ex = /* @__PURE__ */ D("td", {
|
|
|
11119
11119
|
"blob-num-context": r.line.type === E(Ve).EQUAL,
|
|
11120
11120
|
"blob-num-hunk": r.line.hide !== void 0
|
|
11121
11121
|
}])
|
|
11122
|
-
},
|
|
11122
|
+
}, ae(r.line.delNum), 3),
|
|
11123
11123
|
D("td", {
|
|
11124
11124
|
class: ve(["blob-num", {
|
|
11125
11125
|
"blob-num-deletion": r.line.type === E(Ve).DELETE,
|
|
@@ -11127,7 +11127,7 @@ const Dx = { key: 0 }, Ex = /* @__PURE__ */ D("td", {
|
|
|
11127
11127
|
"blob-num-context": r.line.type === E(Ve).EQUAL,
|
|
11128
11128
|
"blob-num-hunk": r.line.hide !== void 0
|
|
11129
11129
|
}])
|
|
11130
|
-
},
|
|
11130
|
+
}, ae(r.line.addNum), 3),
|
|
11131
11131
|
D("td", {
|
|
11132
11132
|
class: ve(["blob-code", {
|
|
11133
11133
|
"blob-code-deletion": r.line.type === E(Ve).DELETE,
|
|
@@ -11211,7 +11211,7 @@ const Dx = { key: 0 }, Ex = /* @__PURE__ */ D("td", {
|
|
|
11211
11211
|
"blob-num-context": i.type === E(Ve).EQUAL,
|
|
11212
11212
|
"blob-num-hunk": a.splitLine.hide !== void 0
|
|
11213
11213
|
}])
|
|
11214
|
-
},
|
|
11214
|
+
}, ae(i.num), 3),
|
|
11215
11215
|
D("td", {
|
|
11216
11216
|
class: ve(["blob-code", {
|
|
11217
11217
|
"blob-code-deletion": i.type === E(Ve).DELETE,
|
|
@@ -11370,8 +11370,8 @@ const $d = /* @__PURE__ */ Dh(Yx, [["render", e1]]), t1 = ["theme"], n1 = {
|
|
|
11370
11370
|
p.hideHeader ? ne("", !0) : (b(), M("div", n1, [
|
|
11371
11371
|
E(r) ? (b(), M("div", o1, [
|
|
11372
11372
|
D("span", null, [
|
|
11373
|
-
D("div", r1,
|
|
11374
|
-
D("div", a1,
|
|
11373
|
+
D("div", r1, ae(p.filename), 1),
|
|
11374
|
+
D("div", a1, ae(p.newFilename), 1)
|
|
11375
11375
|
]),
|
|
11376
11376
|
D("span", s1, [
|
|
11377
11377
|
D("button", {
|
|
@@ -11393,14 +11393,14 @@ const $d = /* @__PURE__ */ Dh(Yx, [["render", e1]]), t1 = ["theme"], n1 = {
|
|
|
11393
11393
|
Xe(p.$slots, "stat", {
|
|
11394
11394
|
stat: E(l).stat
|
|
11395
11395
|
}, () => [
|
|
11396
|
-
D("span", l1, "+" +
|
|
11397
|
-
D("span", c1, "-" +
|
|
11396
|
+
D("span", l1, "+" + ae(E(l).stat.additionsNum) + " additions", 1),
|
|
11397
|
+
D("span", c1, "-" + ae(E(l).stat.deletionsNum) + " deletions", 1)
|
|
11398
11398
|
])
|
|
11399
11399
|
]))
|
|
11400
11400
|
])) : (b(), M("div", d1, [
|
|
11401
|
-
D("span", u1,
|
|
11401
|
+
D("span", u1, ae(p.filename), 1),
|
|
11402
11402
|
D("span", f1, [
|
|
11403
|
-
D("span", h1,
|
|
11403
|
+
D("span", h1, ae(p.newFilename), 1),
|
|
11404
11404
|
D("span", p1, [
|
|
11405
11405
|
D("button", {
|
|
11406
11406
|
class: "command-item-button",
|
|
@@ -11421,8 +11421,8 @@ const $d = /* @__PURE__ */ Dh(Yx, [["render", e1]]), t1 = ["theme"], n1 = {
|
|
|
11421
11421
|
Xe(p.$slots, "stat", {
|
|
11422
11422
|
stat: E(l).stat
|
|
11423
11423
|
}, () => [
|
|
11424
|
-
D("span", m1, "+" +
|
|
11425
|
-
D("span", b1, "-" +
|
|
11424
|
+
D("span", m1, "+" + ae(E(l).stat.additionsNum) + " additions", 1),
|
|
11425
|
+
D("span", b1, "-" + ae(E(l).stat.deletionsNum) + " deletions", 1)
|
|
11426
11426
|
])
|
|
11427
11427
|
]))
|
|
11428
11428
|
])
|
|
@@ -11518,8 +11518,8 @@ const _1 = () => ({
|
|
|
11518
11518
|
}, {
|
|
11519
11519
|
actions: _e(() => [
|
|
11520
11520
|
D("div", A1, [
|
|
11521
|
-
D("span", S1,
|
|
11522
|
-
D("span", D1,
|
|
11521
|
+
D("span", S1, ae(E(t)("beforeAfter.original") || "Original"), 1),
|
|
11522
|
+
D("span", D1, ae(E(t)("beforeAfter.modified") || "Modified"), 1)
|
|
11523
11523
|
])
|
|
11524
11524
|
]),
|
|
11525
11525
|
default: _e(() => [
|
|
@@ -11616,9 +11616,9 @@ const _1 = () => ({
|
|
|
11616
11616
|
id: Z,
|
|
11617
11617
|
required: he,
|
|
11618
11618
|
"aria-required": Te,
|
|
11619
|
-
...
|
|
11619
|
+
...re
|
|
11620
11620
|
} = n;
|
|
11621
|
-
return
|
|
11621
|
+
return re;
|
|
11622
11622
|
}), h = H(() => {
|
|
11623
11623
|
var G, Z;
|
|
11624
11624
|
const W = { ...f.value };
|
|
@@ -11682,8 +11682,8 @@ const _1 = () => ({
|
|
|
11682
11682
|
const G = (we = i.valueType) == null ? void 0 : we.toLowerCase();
|
|
11683
11683
|
if (G === "free" || G === "email" || G === "password")
|
|
11684
11684
|
return !0;
|
|
11685
|
-
const Z = W === " ", he = /\d/.test(W), Te = new RegExp("\\p{L}", "u").test(W),
|
|
11686
|
-
return G === "number" ? he : G === "letter" ? Te || Ce || i.allowSpaces && Z : G === "letternumber" ? Te ||
|
|
11685
|
+
const Z = W === " ", he = /\d/.test(W), Te = new RegExp("\\p{L}", "u").test(W), re = new RegExp("\\p{N}", "u").test(W), Ce = /[\/\-_.,]/.test(W);
|
|
11686
|
+
return G === "number" ? he : G === "letter" ? Te || Ce || i.allowSpaces && Z : G === "letternumber" ? Te || re || Ce || i.allowSpaces && Z : !0;
|
|
11687
11687
|
}, P = (W) => {
|
|
11688
11688
|
let G = "";
|
|
11689
11689
|
for (const Z of W) {
|
|
@@ -11716,9 +11716,9 @@ const _1 = () => ({
|
|
|
11716
11716
|
if (!G) return;
|
|
11717
11717
|
const Z = G.selectionStart ?? G.value.length, he = G.selectionEnd ?? G.value.length;
|
|
11718
11718
|
if (U.value > 0) {
|
|
11719
|
-
const Te = G.value.length - (he - Z),
|
|
11720
|
-
if (
|
|
11721
|
-
W = W.slice(0,
|
|
11719
|
+
const Te = G.value.length - (he - Z), re = U.value - Te;
|
|
11720
|
+
if (re <= 0) return;
|
|
11721
|
+
W = W.slice(0, re);
|
|
11722
11722
|
}
|
|
11723
11723
|
G.setRangeText(W, Z, he, "end"), j(G, S(G.value));
|
|
11724
11724
|
}, V = (W) => {
|
|
@@ -11751,7 +11751,7 @@ const _1 = () => ({
|
|
|
11751
11751
|
Z === G ? B(Z) : j(W, Z);
|
|
11752
11752
|
}), en(() => {
|
|
11753
11753
|
});
|
|
11754
|
-
const
|
|
11754
|
+
const ie = () => {
|
|
11755
11755
|
y.value = "", m.value && (m.value.value = ""), s("update:modelValue", null), s("clear");
|
|
11756
11756
|
}, J = H(
|
|
11757
11757
|
() => oe.value && X.value > 0
|
|
@@ -11774,7 +11774,7 @@ const _1 = () => ({
|
|
|
11774
11774
|
for: d.value,
|
|
11775
11775
|
class: "text-sm font-medium"
|
|
11776
11776
|
}, [
|
|
11777
|
-
Ue(
|
|
11777
|
+
Ue(ae(l.value) + " ", 1),
|
|
11778
11778
|
u.value ? (b(), M("span", P1, "*")) : ne("", !0)
|
|
11779
11779
|
], 8, O1)) : ne("", !0),
|
|
11780
11780
|
D("div", L1, [
|
|
@@ -11783,7 +11783,7 @@ const _1 = () => ({
|
|
|
11783
11783
|
i.icon ? (b(), Me(Dt(i.icon), {
|
|
11784
11784
|
key: 0,
|
|
11785
11785
|
class: "h-4 w-4"
|
|
11786
|
-
})) : i.prependInner ? (b(), M("span", $1,
|
|
11786
|
+
})) : i.prependInner ? (b(), M("span", $1, ae(i.prependInner), 1)) : ne("", !0)
|
|
11787
11787
|
])
|
|
11788
11788
|
])) : ne("", !0),
|
|
11789
11789
|
D("div", {
|
|
@@ -11796,7 +11796,7 @@ const _1 = () => ({
|
|
|
11796
11796
|
])
|
|
11797
11797
|
}, [
|
|
11798
11798
|
i.prefix ? (b(), M("div", F1, [
|
|
11799
|
-
D("span", B1,
|
|
11799
|
+
D("span", B1, ae(i.prefix), 1)
|
|
11800
11800
|
])) : ne("", !0),
|
|
11801
11801
|
i.icon ? (b(), Me(Dt(i.icon), {
|
|
11802
11802
|
key: 1,
|
|
@@ -11822,7 +11822,7 @@ const _1 = () => ({
|
|
|
11822
11822
|
type: "button",
|
|
11823
11823
|
class: "p-1.5 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 transition-colors",
|
|
11824
11824
|
"aria-label": "Clear input",
|
|
11825
|
-
onClick:
|
|
11825
|
+
onClick: ie,
|
|
11826
11826
|
disabled: i.disabled || i.readonly
|
|
11827
11827
|
}, [...G[2] || (G[2] = [
|
|
11828
11828
|
D("span", { class: "text-lg leading-none" }, "✕", -1)
|
|
@@ -11838,12 +11838,12 @@ const _1 = () => ({
|
|
|
11838
11838
|
])) : ne("", !0)
|
|
11839
11839
|
]),
|
|
11840
11840
|
i.suffix ? (b(), M("div", U1, [
|
|
11841
|
-
D("span", V1,
|
|
11841
|
+
D("span", V1, ae(i.suffix), 1)
|
|
11842
11842
|
])) : ne("", !0)
|
|
11843
11843
|
], 2),
|
|
11844
|
-
J.value && !pe.value ? (b(), M("p", W1,
|
|
11844
|
+
J.value && !pe.value ? (b(), M("p", W1, ae(fe.value), 1)) : ne("", !0)
|
|
11845
11845
|
]),
|
|
11846
|
-
pe.value ? (b(), M("p", H1,
|
|
11846
|
+
pe.value ? (b(), M("p", H1, ae(i.error), 1)) : ne("", !0)
|
|
11847
11847
|
], 64))
|
|
11848
11848
|
], 10, M1)), [
|
|
11849
11849
|
[xn, e.visible]
|
|
@@ -11888,9 +11888,9 @@ const _1 = () => ({
|
|
|
11888
11888
|
D("div", X1, [
|
|
11889
11889
|
D("h3", Y1, [
|
|
11890
11890
|
c[0] || (c[0] = D("span", { class: "w-2 h-2 rounded-full bg-danger-500 shadow-[0_0_8px_rgba(239,68,68,0.5)]" }, null, -1)),
|
|
11891
|
-
Ue(" " +
|
|
11891
|
+
Ue(" " + ae(E(t)("beforeAfter.dataBefore")), 1)
|
|
11892
11892
|
]),
|
|
11893
|
-
D("span", J1,
|
|
11893
|
+
D("span", J1, ae(E(t)("beforeAfter.original")), 1)
|
|
11894
11894
|
])
|
|
11895
11895
|
]),
|
|
11896
11896
|
D("div", Q1, [
|
|
@@ -11912,9 +11912,9 @@ const _1 = () => ({
|
|
|
11912
11912
|
D("div", ok, [
|
|
11913
11913
|
D("h3", rk, [
|
|
11914
11914
|
c[1] || (c[1] = D("span", { class: "w-2 h-2 rounded-full bg-success-500 shadow-[0_0_8px_rgba(34,197,94,0.5)]" }, null, -1)),
|
|
11915
|
-
Ue(" " +
|
|
11915
|
+
Ue(" " + ae(E(t)("beforeAfter.dataAfter")), 1)
|
|
11916
11916
|
]),
|
|
11917
|
-
D("span", ak,
|
|
11917
|
+
D("span", ak, ae(E(t)("beforeAfter.modified")), 1)
|
|
11918
11918
|
])
|
|
11919
11919
|
]),
|
|
11920
11920
|
D("div", sk, [
|
|
@@ -11927,7 +11927,7 @@ const _1 = () => ({
|
|
|
11927
11927
|
variant: "underlined",
|
|
11928
11928
|
class: "w-full"
|
|
11929
11929
|
}, null, 8, ["model-value", "label"]))), 128)),
|
|
11930
|
-
Object.keys(a.value).length === 0 ? (b(), M("div", lk,
|
|
11930
|
+
Object.keys(a.value).length === 0 ? (b(), M("div", lk, ae(E(t)("beforeAfter.noModifiedData")), 1)) : ne("", !0)
|
|
11931
11931
|
])
|
|
11932
11932
|
])
|
|
11933
11933
|
])
|
|
@@ -12513,7 +12513,7 @@ const aa = (e) => typeof e < "u", ko = (e) => typeof e == "function", Vd = (e, t
|
|
|
12513
12513
|
function Fk(e) {
|
|
12514
12514
|
return e.type === "mouseup" || e.type === "click" || e.type === "contextmenu";
|
|
12515
12515
|
}
|
|
12516
|
-
const Ct = Math.PI,
|
|
12516
|
+
const Ct = Math.PI, Rt = 2 * Ct, Bk = Rt + Ct, Ms = Number.POSITIVE_INFINITY, Nk = Ct / 180, Nt = Ct / 2, Ro = Ct / 4, Wd = Ct * 2 / 3, Ih = Math.log10, Ln = Math.sign;
|
|
12517
12517
|
function Hr(e, t, n) {
|
|
12518
12518
|
return Math.abs(e - t) < n;
|
|
12519
12519
|
}
|
|
@@ -12562,7 +12562,7 @@ function Kd(e) {
|
|
|
12562
12562
|
function $h(e, t) {
|
|
12563
12563
|
const n = t.x - e.x, o = t.y - e.y, r = Math.sqrt(n * n + o * o);
|
|
12564
12564
|
let a = Math.atan2(o, n);
|
|
12565
|
-
return a < -0.5 * Ct && (a +=
|
|
12565
|
+
return a < -0.5 * Ct && (a += Rt), {
|
|
12566
12566
|
angle: a,
|
|
12567
12567
|
distance: r
|
|
12568
12568
|
};
|
|
@@ -12571,10 +12571,10 @@ function nl(e, t) {
|
|
|
12571
12571
|
return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
|
|
12572
12572
|
}
|
|
12573
12573
|
function Hk(e, t) {
|
|
12574
|
-
return (e - t + Bk) %
|
|
12574
|
+
return (e - t + Bk) % Rt - Ct;
|
|
12575
12575
|
}
|
|
12576
12576
|
function sn(e) {
|
|
12577
|
-
return (e %
|
|
12577
|
+
return (e % Rt + Rt) % Rt;
|
|
12578
12578
|
}
|
|
12579
12579
|
function ia(e, t, n, o) {
|
|
12580
12580
|
const r = sn(e), a = sn(t), s = sn(n), i = sn(a - r), l = sn(s - r), c = sn(r - a), d = sn(r - s);
|
|
@@ -12727,7 +12727,7 @@ function Zk(e) {
|
|
|
12727
12727
|
const a = o.xmin !== t.min || o.xmax !== t.max || o.ymin !== n.min || o.ymax !== n.max;
|
|
12728
12728
|
return Object.assign(o, r), a;
|
|
12729
12729
|
}
|
|
12730
|
-
const qa = (e) => e === 0 || e === 1, Gd = (e, t, n) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) *
|
|
12730
|
+
const qa = (e) => e === 0 || e === 1, Gd = (e, t, n) => -(Math.pow(2, 10 * (e -= 1)) * Math.sin((e - t) * Rt / n)), Xd = (e, t, n) => Math.pow(2, -10 * e) * Math.sin((e - t) * Rt / n) + 1, Kr = {
|
|
12731
12731
|
linear: (e) => e,
|
|
12732
12732
|
easeInQuad: (e) => e * e,
|
|
12733
12733
|
easeOutQuad: (e) => -e * (e - 2),
|
|
@@ -13082,7 +13082,7 @@ function Uh(e, t, n, o, r) {
|
|
|
13082
13082
|
switch (e.beginPath(), h) {
|
|
13083
13083
|
// Default includes circle
|
|
13084
13084
|
default:
|
|
13085
|
-
r ? e.ellipse(n, o, r / 2, g, 0, 0,
|
|
13085
|
+
r ? e.ellipse(n, o, r / 2, g, 0, 0, Rt) : e.arc(n, o, g, 0, Rt), e.closePath();
|
|
13086
13086
|
break;
|
|
13087
13087
|
case "triangle":
|
|
13088
13088
|
d = r ? r / 2 : g, e.moveTo(n + Math.sin(y) * d, o - Math.cos(y) * g), y += Wd, e.lineTo(n + Math.sin(y) * d, o - Math.cos(y) * g), y += Wd, e.lineTo(n + Math.sin(y) * d, o - Math.cos(y) * g), e.closePath();
|
|
@@ -14973,7 +14973,7 @@ Ke(cs, "id", "bar"), Ke(cs, "defaults", {
|
|
|
14973
14973
|
});
|
|
14974
14974
|
function _2(e, t, n) {
|
|
14975
14975
|
let o = 1, r = 1, a = 0, s = 0;
|
|
14976
|
-
if (t <
|
|
14976
|
+
if (t < Rt) {
|
|
14977
14977
|
const i = e, l = i + t, c = Math.cos(i), d = Math.sin(i), u = Math.cos(l), f = Math.sin(l), h = (x, C, $) => ia(x, i, l, !0) ? 1 : Math.max(C, C * n, $, $ * n), p = (x, C, $) => ia(x, i, l, !0) ? -1 : Math.min(C, C * n, $, $ * n), g = h(0, c, u), y = h(Nt, d, f), m = p(Ct, c, u), w = p(Ct + Nt, d, f);
|
|
14978
14978
|
o = (g - m) / 2, r = (y - w) / 2, a = -(g + m) / 2, s = -(y + w) / 2;
|
|
14979
14979
|
}
|
|
@@ -15012,7 +15012,7 @@ class ar extends jo {
|
|
|
15012
15012
|
return Yn(this.options.circumference);
|
|
15013
15013
|
}
|
|
15014
15014
|
_getRotationExtents() {
|
|
15015
|
-
let t =
|
|
15015
|
+
let t = Rt, n = -Rt;
|
|
15016
15016
|
for (let o = 0; o < this.chart.data.datasets.length; ++o)
|
|
15017
15017
|
if (this.chart.isDatasetVisible(o) && this.chart.getDatasetMeta(o).type === this._type) {
|
|
15018
15018
|
const r = this.chart.getDatasetMeta(o).controller, a = r._getRotation(), s = r._getCircumference();
|
|
@@ -15029,7 +15029,7 @@ class ar extends jo {
|
|
|
15029
15029
|
}
|
|
15030
15030
|
_circumference(t, n) {
|
|
15031
15031
|
const o = this.options, r = this._cachedMeta, a = this._getCircumference();
|
|
15032
|
-
return n && o.animation.animateRotate || !this.chart.getDataVisibility(t) || r._parsed[t] === null || r.data[t].hidden ? 0 : this.calculateCircumference(r._parsed[t] * a /
|
|
15032
|
+
return n && o.animation.animateRotate || !this.chart.getDataVisibility(t) || r._parsed[t] === null || r.data[t].hidden ? 0 : this.calculateCircumference(r._parsed[t] * a / Rt);
|
|
15033
15033
|
}
|
|
15034
15034
|
updateElements(t, n, o, r) {
|
|
15035
15035
|
const a = r === "reset", s = this.chart, i = s.chartArea, c = s.options.animation, d = (i.left + i.right) / 2, u = (i.top + i.bottom) / 2, f = a && c.animateScale, h = f ? 0 : this.innerRadius, p = f ? 0 : this.outerRadius, { sharedOptions: g, includeOptions: y } = this._getSharedOptions(n, r);
|
|
@@ -15060,7 +15060,7 @@ class ar extends jo {
|
|
|
15060
15060
|
}
|
|
15061
15061
|
calculateCircumference(t) {
|
|
15062
15062
|
const n = this._cachedMeta.total;
|
|
15063
|
-
return n > 0 && !isNaN(t) ?
|
|
15063
|
+
return n > 0 && !isNaN(t) ? Rt * (Math.abs(t) / n) : 0;
|
|
15064
15064
|
}
|
|
15065
15065
|
getLabelAndValue(t) {
|
|
15066
15066
|
const n = this._cachedMeta, o = this.chart, r = o.data.labels || [], a = Yl(n._parsed[t], o.options.locale);
|
|
@@ -17726,7 +17726,7 @@ function BC(e, t, n, o, r) {
|
|
|
17726
17726
|
Ps(e, t, n, o, l, r);
|
|
17727
17727
|
for (let c = 0; c < a; ++c)
|
|
17728
17728
|
e.fill();
|
|
17729
|
-
isNaN(i) || (l = s + (i %
|
|
17729
|
+
isNaN(i) || (l = s + (i % Rt || Rt));
|
|
17730
17730
|
}
|
|
17731
17731
|
return Ps(e, t, n, o, l, r), e.fill(), l;
|
|
17732
17732
|
}
|
|
@@ -17740,7 +17740,7 @@ function NC(e, t, n, o, r) {
|
|
|
17740
17740
|
Ps(e, t, n, o, g, r);
|
|
17741
17741
|
for (let y = 0; y < a; ++y)
|
|
17742
17742
|
e.stroke();
|
|
17743
|
-
isNaN(i) || (g = s + (i %
|
|
17743
|
+
isNaN(i) || (g = s + (i % Rt || Rt));
|
|
17744
17744
|
}
|
|
17745
17745
|
p && IC(e, t, g), l.selfJoin && g - s >= Ct && h === 0 && d !== "miter" && LC(e, t, g), a || (Ps(e, t, n, o, g, r), e.stroke());
|
|
17746
17746
|
}
|
|
@@ -17769,7 +17769,7 @@ class Nr extends oo {
|
|
|
17769
17769
|
"innerRadius",
|
|
17770
17770
|
"outerRadius",
|
|
17771
17771
|
"circumference"
|
|
17772
|
-
], r), h = (this.options.spacing + this.options.borderWidth) / 2, p = at(f, c - l), g = ia(s, l, c) && l !== c, y = p >=
|
|
17772
|
+
], r), h = (this.options.spacing + this.options.borderWidth) / 2, p = at(f, c - l), g = ia(s, l, c) && l !== c, y = p >= Rt || g, m = Jn(i, d + h, u + h);
|
|
17773
17773
|
return y && m;
|
|
17774
17774
|
}
|
|
17775
17775
|
getCenterPoint(n) {
|
|
@@ -17791,7 +17791,7 @@ class Nr extends oo {
|
|
|
17791
17791
|
}
|
|
17792
17792
|
draw(n) {
|
|
17793
17793
|
const { options: o, circumference: r } = this, a = (o.offset || 0) / 4, s = (o.spacing || 0) / 2, i = o.circular;
|
|
17794
|
-
if (this.pixelMargin = o.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = r >
|
|
17794
|
+
if (this.pixelMargin = o.borderAlign === "inner" ? 0.33 : 0, this.fullCircles = r > Rt ? Math.floor(r / Rt) : 0, r === 0 || this.innerRadius < 0 || this.outerRadius < 0)
|
|
17795
17795
|
return;
|
|
17796
17796
|
n.save();
|
|
17797
17797
|
const l = (this.startAngle + this.endAngle) / 2;
|
|
@@ -18367,7 +18367,7 @@ class bp {
|
|
|
18367
18367
|
const { x: r, y: a, radius: s } = this;
|
|
18368
18368
|
return n = n || {
|
|
18369
18369
|
start: 0,
|
|
18370
|
-
end:
|
|
18370
|
+
end: Rt
|
|
18371
18371
|
}, t.arc(r, a, s, n.end, n.start, !0), !o.bounds;
|
|
18372
18372
|
}
|
|
18373
18373
|
interpolate(t) {
|
|
@@ -20225,7 +20225,7 @@ const W_ = {
|
|
|
20225
20225
|
class: ve(["d-code-chart", l.value])
|
|
20226
20226
|
}, [
|
|
20227
20227
|
e.label ? (b(), M("div", W_, [
|
|
20228
|
-
Ue(
|
|
20228
|
+
Ue(ae(e.label) + " ", 1),
|
|
20229
20229
|
e.required ? (b(), M("span", H_, "*")) : ne("", !0)
|
|
20230
20230
|
])) : ne("", !0),
|
|
20231
20231
|
D("div", {
|
|
@@ -20240,11 +20240,11 @@ const W_ = {
|
|
|
20240
20240
|
D("div", { class: "animate-pulse-slow rounded-full h-8 w-8 border-b-2 border-blue-600" }, null, -1)
|
|
20241
20241
|
])])) : ne("", !0),
|
|
20242
20242
|
e.error ? (b(), M("div", q_, [
|
|
20243
|
-
D("div", G_,
|
|
20243
|
+
D("div", G_, ae(e.error), 1)
|
|
20244
20244
|
])) : ne("", !0)
|
|
20245
20245
|
], 4),
|
|
20246
20246
|
e.showInfo && i.value ? (b(), M("div", X_, [
|
|
20247
|
-
i.value.datasets ? (b(), M("div", Y_,
|
|
20247
|
+
i.value.datasets ? (b(), M("div", Y_, ae(i.value.datasets.length) + " dataset(s) • " + ae(i.value.labels ? i.value.labels.length : 0) + " data points ", 1)) : ne("", !0)
|
|
20248
20248
|
])) : ne("", !0)
|
|
20249
20249
|
], 2));
|
|
20250
20250
|
}
|
|
@@ -20321,7 +20321,7 @@ const W_ = {
|
|
|
20321
20321
|
class: "text-sm font-medium mb-1"
|
|
20322
20322
|
}, {
|
|
20323
20323
|
default: _e(() => [
|
|
20324
|
-
Ue(
|
|
20324
|
+
Ue(ae(e.label) + " ", 1),
|
|
20325
20325
|
e.required ? (b(), M("span", Z_, "*")) : ne("", !0)
|
|
20326
20326
|
]),
|
|
20327
20327
|
_: 1
|
|
@@ -20377,7 +20377,7 @@ const W_ = {
|
|
|
20377
20377
|
class: ve(["text-sm leading-relaxed select-none transition-colors", [
|
|
20378
20378
|
e.disabled ? "text-gray-400 dark:text-gray-500" : "text-gray-700 dark:text-gray-300 group-hover:text-gray-900 dark:group-hover:text-gray-100"
|
|
20379
20379
|
]])
|
|
20380
|
-
},
|
|
20380
|
+
}, ae(e.title), 3)) : ne("", !0)
|
|
20381
20381
|
], 2)
|
|
20382
20382
|
]))
|
|
20383
20383
|
], 10, eA), [
|
|
@@ -20527,7 +20527,7 @@ const W_ = {
|
|
|
20527
20527
|
return (I, _) => Jt((b(), M("div", aA, [
|
|
20528
20528
|
e.label || x.value ? (b(), M("div", sA, [
|
|
20529
20529
|
x.value ? (b(), M("div", iA)) : (b(), M("h3", lA, [
|
|
20530
|
-
Ue(
|
|
20530
|
+
Ue(ae(e.label) + " ", 1),
|
|
20531
20531
|
e.required ? (b(), M("span", cA, "*")) : ne("", !0)
|
|
20532
20532
|
]))
|
|
20533
20533
|
])) : ne("", !0),
|
|
@@ -20561,7 +20561,7 @@ const W_ = {
|
|
|
20561
20561
|
], 64)),
|
|
20562
20562
|
C.value && $.value ? (b(), M("div", pA, [
|
|
20563
20563
|
ue(E(wr), { class: "w-4 h-4 flex-shrink-0" }),
|
|
20564
|
-
Ue(" " +
|
|
20564
|
+
Ue(" " + ae($.value), 1)
|
|
20565
20565
|
])) : ne("", !0)
|
|
20566
20566
|
])
|
|
20567
20567
|
], 512)), [
|
|
@@ -20688,7 +20688,7 @@ const W_ = {
|
|
|
20688
20688
|
for: s.value,
|
|
20689
20689
|
class: "text-sm font-medium text-gray-700 dark:text-gray-300"
|
|
20690
20690
|
}, [
|
|
20691
|
-
Ue(
|
|
20691
|
+
Ue(ae(e.label) + " ", 1),
|
|
20692
20692
|
i.value ? (b(), M("span", xA, "*")) : ne("", !0)
|
|
20693
20693
|
], 8, vA)) : ne("", !0),
|
|
20694
20694
|
D("div", kA, [
|
|
@@ -20702,7 +20702,7 @@ const W_ = {
|
|
|
20702
20702
|
])
|
|
20703
20703
|
}, [
|
|
20704
20704
|
D("div", wA, [
|
|
20705
|
-
D("span", CA,
|
|
20705
|
+
D("span", CA, ae(d.value), 1)
|
|
20706
20706
|
]),
|
|
20707
20707
|
Jt(D("input", st({
|
|
20708
20708
|
id: s.value,
|
|
@@ -20733,11 +20733,11 @@ const W_ = {
|
|
|
20733
20733
|
ue(E(bo), { class: "w-3.5 h-3.5" })
|
|
20734
20734
|
])) : ne("", !0)
|
|
20735
20735
|
], 2),
|
|
20736
|
-
R.value ? (b(), M("p", AA,
|
|
20736
|
+
R.value ? (b(), M("p", AA, ae(L.value), 1)) : ne("", !0)
|
|
20737
20737
|
]),
|
|
20738
20738
|
$.value ? (b(), M("p", SA, [
|
|
20739
20739
|
ue(E(wr), { class: "w-3.5 h-3.5 flex-shrink-0" }),
|
|
20740
|
-
Ue(" " +
|
|
20740
|
+
Ue(" " + ae(I.value || r.error), 1)
|
|
20741
20741
|
])) : ne("", !0)
|
|
20742
20742
|
], 64))
|
|
20743
20743
|
], 10, mA));
|
|
@@ -20889,7 +20889,7 @@ const W_ = {
|
|
|
20889
20889
|
for: s.value,
|
|
20890
20890
|
class: "text-sm font-medium text-gray-700 dark:text-gray-300"
|
|
20891
20891
|
}, [
|
|
20892
|
-
Ue(
|
|
20892
|
+
Ue(ae(e.label) + " ", 1),
|
|
20893
20893
|
i.value ? (b(), M("span", RA, "*")) : ne("", !0)
|
|
20894
20894
|
], 8, TA)) : ne("", !0),
|
|
20895
20895
|
D("div", OA, [
|
|
@@ -20930,14 +20930,14 @@ const W_ = {
|
|
|
20930
20930
|
ue(E(bo), { class: "w-3.5 h-3.5" })
|
|
20931
20931
|
])) : ne("", !0),
|
|
20932
20932
|
D("div", LA, [
|
|
20933
|
-
D("span", IA,
|
|
20933
|
+
D("span", IA, ae(e.suffix), 1)
|
|
20934
20934
|
])
|
|
20935
20935
|
], 2),
|
|
20936
|
-
A.value ? (b(), M("p", $A,
|
|
20936
|
+
A.value ? (b(), M("p", $A, ae(R.value), 1)) : ne("", !0)
|
|
20937
20937
|
]),
|
|
20938
20938
|
C.value ? (b(), M("p", FA, [
|
|
20939
20939
|
ue(E(wr), { class: "w-3.5 h-3.5 flex-shrink-0" }),
|
|
20940
|
-
Ue(" " +
|
|
20940
|
+
Ue(" " + ae($.value || r.error), 1)
|
|
20941
20941
|
])) : ne("", !0)
|
|
20942
20942
|
], 64))
|
|
20943
20943
|
], 10, DA));
|
|
@@ -22967,8 +22967,8 @@ const P5 = {
|
|
|
22967
22967
|
o.disablePast && q < S && (q = S);
|
|
22968
22968
|
let Y = F;
|
|
22969
22969
|
if (o.autoRangeDays && o.autoRangeDays > 0) {
|
|
22970
|
-
const
|
|
22971
|
-
Y >
|
|
22970
|
+
const ie = h(p(q, o.autoRangeDays - 1));
|
|
22971
|
+
Y > ie && (Y = ie);
|
|
22972
22972
|
}
|
|
22973
22973
|
return Y < q && (Y = h(new Date(q))), [q, Y];
|
|
22974
22974
|
};
|
|
@@ -23010,7 +23010,7 @@ const P5 = {
|
|
|
23010
23010
|
for: s.value,
|
|
23011
23011
|
class: "text-sm font-medium"
|
|
23012
23012
|
}, [
|
|
23013
|
-
Ue(
|
|
23013
|
+
Ue(ae(e.label) + " ", 1),
|
|
23014
23014
|
i.value ? (b(), M("span", I5, "*")) : ne("", !0)
|
|
23015
23015
|
], 8, L5)) : ne("", !0),
|
|
23016
23016
|
ue(E(_f), {
|
|
@@ -23064,7 +23064,7 @@ const P5 = {
|
|
|
23064
23064
|
]),
|
|
23065
23065
|
S[4] || (S[4] = D("span", { class: "w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0" }, null, -1)),
|
|
23066
23066
|
e.prependInner ? (b(), M(Pe, { key: 0 }, [
|
|
23067
|
-
D("span", F5,
|
|
23067
|
+
D("span", F5, ae(e.prependInner), 1),
|
|
23068
23068
|
S[3] || (S[3] = D("span", { class: "w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0" }, null, -1))
|
|
23069
23069
|
], 64)) : ne("", !0),
|
|
23070
23070
|
D("input", {
|
|
@@ -23096,13 +23096,13 @@ const P5 = {
|
|
|
23096
23096
|
var T;
|
|
23097
23097
|
return (T = m.value) == null ? void 0 : T.closeMenu();
|
|
23098
23098
|
})
|
|
23099
|
-
},
|
|
23099
|
+
}, ae(e.cancelLabel), 1),
|
|
23100
23100
|
D("button", {
|
|
23101
23101
|
type: "button",
|
|
23102
23102
|
disabled: B,
|
|
23103
23103
|
class: "inline-flex items-center justify-center rounded-md text-sm font-medium bg-primary text-primary-foreground hover:bg-primary/90 h-9 px-4 py-2 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-400 disabled:pointer-events-none disabled:opacity-50",
|
|
23104
23104
|
onClick: (j) => O()
|
|
23105
|
-
},
|
|
23105
|
+
}, ae(e.selectLabel), 9, U5)
|
|
23106
23106
|
])
|
|
23107
23107
|
]),
|
|
23108
23108
|
_: 2
|
|
@@ -23116,13 +23116,13 @@ const P5 = {
|
|
|
23116
23116
|
type: "button",
|
|
23117
23117
|
class: "w-full inline-flex items-center justify-center rounded-md text-sm font-medium bg-primary text-primary-foreground hover:bg-primary/90 h-9 px-4 py-2 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-neutral-400",
|
|
23118
23118
|
onClick: (B) => oe(O.range)
|
|
23119
|
-
},
|
|
23119
|
+
}, ae(O.label), 9, z5))), 128)) : ne("", !0)
|
|
23120
23120
|
])
|
|
23121
23121
|
]),
|
|
23122
23122
|
key: "0"
|
|
23123
23123
|
} : void 0
|
|
23124
23124
|
]), 1032, ["modelValue", "dark", "range", "multi-calendars", "auto-range", "max-range", "disabled", "auto-apply", "locale", "model-type", "formats", "min-date", "max-date", "floating"]),
|
|
23125
|
-
l.value ? (b(), M("p", V5,
|
|
23125
|
+
l.value ? (b(), M("p", V5, ae(o.error), 1)) : ne("", !0)
|
|
23126
23126
|
], 64))
|
|
23127
23127
|
], 2));
|
|
23128
23128
|
}
|
|
@@ -23208,7 +23208,7 @@ const P5 = {
|
|
|
23208
23208
|
for: s.value,
|
|
23209
23209
|
class: "text-sm font-medium"
|
|
23210
23210
|
}, [
|
|
23211
|
-
Ue(
|
|
23211
|
+
Ue(ae(e.label) + " ", 1),
|
|
23212
23212
|
i.value ? (b(), M("span", K5, "*")) : ne("", !0)
|
|
23213
23213
|
], 8, H5)) : ne("", !0),
|
|
23214
23214
|
D("div", q5, [
|
|
@@ -23253,7 +23253,7 @@ const P5 = {
|
|
|
23253
23253
|
]),
|
|
23254
23254
|
x[5] || (x[5] = D("span", { class: "w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0" }, null, -1)),
|
|
23255
23255
|
e.prependInner ? (b(), M(Pe, { key: 0 }, [
|
|
23256
|
-
D("span", X5,
|
|
23256
|
+
D("span", X5, ae(e.prependInner), 1),
|
|
23257
23257
|
x[4] || (x[4] = D("span", { class: "w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0" }, null, -1))
|
|
23258
23258
|
], 64)) : ne("", !0),
|
|
23259
23259
|
D("input", {
|
|
@@ -23270,7 +23270,7 @@ const P5 = {
|
|
|
23270
23270
|
_: 1
|
|
23271
23271
|
}, 8, ["modelValue", "dark", "disabled", "locale", "model-type", "formats", "floating"])
|
|
23272
23272
|
]),
|
|
23273
|
-
l.value ? (b(), M("p", J5,
|
|
23273
|
+
l.value ? (b(), M("p", J5, ae(o.error), 1)) : ne("", !0)
|
|
23274
23274
|
], 64))
|
|
23275
23275
|
], 2));
|
|
23276
23276
|
}
|
|
@@ -23436,7 +23436,7 @@ const P5 = {
|
|
|
23436
23436
|
D("div", rD, [
|
|
23437
23437
|
ue(E(tD), { class: "text-lg font-bold text-neutral-900 dark:text-neutral-50 leading-tight" }, {
|
|
23438
23438
|
default: _e(() => [
|
|
23439
|
-
Ue(
|
|
23439
|
+
Ue(ae(e.title), 1)
|
|
23440
23440
|
]),
|
|
23441
23441
|
_: 1
|
|
23442
23442
|
}),
|
|
@@ -23445,7 +23445,7 @@ const P5 = {
|
|
|
23445
23445
|
class: "text-sm text-neutral-500 dark:text-neutral-400 mt-0.5"
|
|
23446
23446
|
}, {
|
|
23447
23447
|
default: _e(() => [
|
|
23448
|
-
Ue(
|
|
23448
|
+
Ue(ae(e.description), 1)
|
|
23449
23449
|
]),
|
|
23450
23450
|
_: 1
|
|
23451
23451
|
})) : (b(), Me(E(ff), {
|
|
@@ -23453,7 +23453,7 @@ const P5 = {
|
|
|
23453
23453
|
class: "hidden"
|
|
23454
23454
|
}, {
|
|
23455
23455
|
default: _e(() => [
|
|
23456
|
-
Ue(
|
|
23456
|
+
Ue(ae(e.title || "Dialog Content"), 1)
|
|
23457
23457
|
]),
|
|
23458
23458
|
_: 1
|
|
23459
23459
|
}))
|
|
@@ -23521,7 +23521,7 @@ const P5 = {
|
|
|
23521
23521
|
key: 0,
|
|
23522
23522
|
class: ve(["shrink-0", s.value, e.iconClass])
|
|
23523
23523
|
}, null, 8, ["class"])) : ne("", !0),
|
|
23524
|
-
Ue(" " +
|
|
23524
|
+
Ue(" " + ae(e.label || e.text), 1)
|
|
23525
23525
|
], 16));
|
|
23526
23526
|
}
|
|
23527
23527
|
}), cD = { class: "flex flex-col gap-3 w-full" }, dD = {
|
|
@@ -23734,7 +23734,7 @@ const P5 = {
|
|
|
23734
23734
|
B
|
|
23735
23735
|
), T = Array.isArray(j == null ? void 0 : j.data) ? j.data[0] : (j == null ? void 0 : j.data) || j, V = (T == null ? void 0 : T.url) || (T == null ? void 0 : T.document) || P.name, N = (T == null ? void 0 : T.id) || null, F = (T == null ? void 0 : T.filename) || (T == null ? void 0 : T.name) || P.name, q = [...d.value], Y = q.findIndex((J) => w(J, v));
|
|
23736
23736
|
(O = q[Y]) != null && O._localPreviewUrl && URL.revokeObjectURL(q[Y]._localPreviewUrl);
|
|
23737
|
-
const
|
|
23737
|
+
const ie = {
|
|
23738
23738
|
...T,
|
|
23739
23739
|
id: N || (T == null ? void 0 : T.idDocument) || (T == null ? void 0 : T.id_document) || null,
|
|
23740
23740
|
idDocument: (T == null ? void 0 : T.idDocument) || N || (T == null ? void 0 : T.id_document) || null,
|
|
@@ -23748,7 +23748,7 @@ const P5 = {
|
|
|
23748
23748
|
_localPreviewUrl: X,
|
|
23749
23749
|
_fileType: P.type
|
|
23750
23750
|
};
|
|
23751
|
-
Y > -1 ? q[Y] = { ...q[Y], ...
|
|
23751
|
+
Y > -1 ? q[Y] = { ...q[Y], ...ie } : q.push(ie), d.value = q, o("update:modelValue", q), o("uploaded", T), o("success", T);
|
|
23752
23752
|
} catch (B) {
|
|
23753
23753
|
console.error("Upload failed", B);
|
|
23754
23754
|
} finally {
|
|
@@ -23800,7 +23800,7 @@ const P5 = {
|
|
|
23800
23800
|
])
|
|
23801
23801
|
])) : c.value.length === 0 && !f.value ? (b(), M("div", fD, [
|
|
23802
23802
|
ue(E(Jc), { class: "w-6 h-6 text-slate-400" }),
|
|
23803
|
-
D("span", hD,
|
|
23803
|
+
D("span", hD, ae(E(r)("dynamicUploadList.noDocsRequired")), 1)
|
|
23804
23804
|
])) : ne("", !0),
|
|
23805
23805
|
(b(!0), M(Pe, null, Ge(c.value, (R, L) => {
|
|
23806
23806
|
var P;
|
|
@@ -23824,7 +23824,7 @@ const P5 = {
|
|
|
23824
23824
|
]),
|
|
23825
23825
|
x(R) ? (b(), M("div", mD, [
|
|
23826
23826
|
ue(E(Jc), { class: "w-4 h-4 text-green-600 shrink-0" }),
|
|
23827
|
-
D("span", bD,
|
|
23827
|
+
D("span", bD, ae(((P = x(R)) == null ? void 0 : P.filename) || E(r)("dynamicUploadList.fileUploaded")), 1),
|
|
23828
23828
|
e.disabled ? ne("", !0) : (b(), M("button", {
|
|
23829
23829
|
key: 0,
|
|
23830
23830
|
type: "button",
|
|
@@ -23851,8 +23851,8 @@ const P5 = {
|
|
|
23851
23851
|
key: 1,
|
|
23852
23852
|
class: "w-6 h-6 text-slate-400"
|
|
23853
23853
|
})),
|
|
23854
|
-
D("span", xD,
|
|
23855
|
-
e.typeFile ? (b(), M("span", kD,
|
|
23854
|
+
D("span", xD, ae(u.value.has(L) ? E(r)("dynamicUploadList.uploading") : E(r)("dynamicUploadList.clickOrDrag")), 1),
|
|
23855
|
+
e.typeFile ? (b(), M("span", kD, ae(e.typeFile), 1)) : ne("", !0),
|
|
23856
23856
|
D("input", {
|
|
23857
23857
|
id: `dyn-upload-input-${L}`,
|
|
23858
23858
|
type: "file",
|
|
@@ -23877,7 +23877,7 @@ const P5 = {
|
|
|
23877
23877
|
type: "button",
|
|
23878
23878
|
class: "px-4 py-2 border border-slate-200 dark:border-zinc-700 rounded-md text-sm font-medium hover:bg-slate-50 dark:hover:bg-zinc-800 transition-colors",
|
|
23879
23879
|
onClick: A[1] || (A[1] = (R) => h.value = !1)
|
|
23880
|
-
},
|
|
23880
|
+
}, ae(E(r)("common.close") || "Close"), 1)
|
|
23881
23881
|
]),
|
|
23882
23882
|
default: _e(() => [
|
|
23883
23883
|
D("div", CD, [
|
|
@@ -23893,12 +23893,12 @@ const P5 = {
|
|
|
23893
23893
|
title: "Document Preview"
|
|
23894
23894
|
}, null, 8, AD)) : (b(), M("div", SD, [
|
|
23895
23895
|
ue(E(ba), { class: "w-16 h-16 stroke-1" }),
|
|
23896
|
-
D("span", DD,
|
|
23896
|
+
D("span", DD, ae(E(r)("dynamicUploadList.noSupportPreview") || "Preview not supported for this file type"), 1),
|
|
23897
23897
|
D("a", {
|
|
23898
23898
|
href: p.value,
|
|
23899
23899
|
target: "_blank",
|
|
23900
23900
|
class: "px-4 py-2 bg-primary-500 text-white rounded-md text-sm font-semibold hover:bg-primary-600 transition-colors"
|
|
23901
|
-
},
|
|
23901
|
+
}, ae(E(r)("dynamicUploadList.viewOriginal") || "View Original"), 9, ED)
|
|
23902
23902
|
]))
|
|
23903
23903
|
])
|
|
23904
23904
|
]),
|
|
@@ -24157,7 +24157,7 @@ const P5 = {
|
|
|
24157
24157
|
default: _e(() => [
|
|
24158
24158
|
ue(E(Sa), { class: "text-sm font-semibold dark:text-neutral-100" }, {
|
|
24159
24159
|
default: _e(() => [
|
|
24160
|
-
Ue(
|
|
24160
|
+
Ue(ae(e.label), 1)
|
|
24161
24161
|
]),
|
|
24162
24162
|
_: 1
|
|
24163
24163
|
})
|
|
@@ -24192,7 +24192,7 @@ const P5 = {
|
|
|
24192
24192
|
class: "text-[11px] dark:bg-neutral-800 dark:text-neutral-300"
|
|
24193
24193
|
}, {
|
|
24194
24194
|
default: _e(() => [
|
|
24195
|
-
Ue(" Allowed: " +
|
|
24195
|
+
Ue(" Allowed: " + ae(C.value), 1)
|
|
24196
24196
|
]),
|
|
24197
24197
|
_: 1
|
|
24198
24198
|
}),
|
|
@@ -24201,7 +24201,7 @@ const P5 = {
|
|
|
24201
24201
|
class: "text-[11px] dark:bg-neutral-800 dark:text-neutral-300"
|
|
24202
24202
|
}, {
|
|
24203
24203
|
default: _e(() => [
|
|
24204
|
-
Ue(" Max: " +
|
|
24204
|
+
Ue(" Max: " + ae(n.maxSizeMb) + "MB ", 1)
|
|
24205
24205
|
]),
|
|
24206
24206
|
_: 1
|
|
24207
24207
|
})
|
|
@@ -24212,7 +24212,7 @@ const P5 = {
|
|
|
24212
24212
|
class: "mt-2 dark:bg-neutral-800 dark:text-neutral-300"
|
|
24213
24213
|
}, {
|
|
24214
24214
|
default: _e(() => [
|
|
24215
|
-
Ue(
|
|
24215
|
+
Ue(ae(i.value) + " • " + ae(l.value ? u(l.value) : ""), 1)
|
|
24216
24216
|
]),
|
|
24217
24217
|
_: 1
|
|
24218
24218
|
})) : ne("", !0)
|
|
@@ -24235,7 +24235,7 @@ const P5 = {
|
|
|
24235
24235
|
default: _e(() => [
|
|
24236
24236
|
ue(E(RD), { class: "text-sm" }, {
|
|
24237
24237
|
default: _e(() => [
|
|
24238
|
-
Ue(
|
|
24238
|
+
Ue(ae(c.value), 1)
|
|
24239
24239
|
]),
|
|
24240
24240
|
_: 1
|
|
24241
24241
|
})
|
|
@@ -24324,11 +24324,11 @@ const P5 = {
|
|
|
24324
24324
|
default: _e(() => [
|
|
24325
24325
|
ue(Sa, { class: "text-sm font-semibold dark:text-neutral-100" }, {
|
|
24326
24326
|
default: _e(() => [
|
|
24327
|
-
Ue(
|
|
24327
|
+
Ue(ae(e.title), 1)
|
|
24328
24328
|
]),
|
|
24329
24329
|
_: 1
|
|
24330
24330
|
}),
|
|
24331
|
-
e.description ? (b(), M("div", BD,
|
|
24331
|
+
e.description ? (b(), M("div", BD, ae(e.description), 1)) : ne("", !0)
|
|
24332
24332
|
]),
|
|
24333
24333
|
_: 1
|
|
24334
24334
|
}),
|
|
@@ -24350,8 +24350,8 @@ const P5 = {
|
|
|
24350
24350
|
}, null, 8, ND)) : (b(), M("div", zD, [
|
|
24351
24351
|
ue(E(ba), { class: "w-10 h-10" }),
|
|
24352
24352
|
D("div", jD, [
|
|
24353
|
-
D("p", UD,
|
|
24354
|
-
D("p", VD,
|
|
24353
|
+
D("p", UD, ae((g = i.value) == null ? void 0 : g.name), 1),
|
|
24354
|
+
D("p", VD, ae((y = i.value) == null ? void 0 : y.size), 1)
|
|
24355
24355
|
])
|
|
24356
24356
|
])),
|
|
24357
24357
|
D("div", {
|
|
@@ -24459,15 +24459,15 @@ const P5 = {
|
|
|
24459
24459
|
D("div", GD, [
|
|
24460
24460
|
D("div", XD, [
|
|
24461
24461
|
p[5] || (p[5] = D("span", { class: "w-14 shrink-0 text-muted-foreground dark:text-neutral-400" }, "Nama", -1)),
|
|
24462
|
-
D("span", YD,
|
|
24462
|
+
D("span", YD, ae((m = i.value) == null ? void 0 : m.name), 1)
|
|
24463
24463
|
]),
|
|
24464
24464
|
D("div", JD, [
|
|
24465
24465
|
p[6] || (p[6] = D("span", { class: "w-14 shrink-0 text-muted-foreground dark:text-neutral-400" }, "Ukuran", -1)),
|
|
24466
|
-
D("span", QD,
|
|
24466
|
+
D("span", QD, ae((w = i.value) == null ? void 0 : w.size), 1)
|
|
24467
24467
|
]),
|
|
24468
24468
|
D("div", ZD, [
|
|
24469
24469
|
p[7] || (p[7] = D("span", { class: "w-14 shrink-0 text-muted-foreground dark:text-neutral-400" }, "Tipe", -1)),
|
|
24470
|
-
D("span", eE,
|
|
24470
|
+
D("span", eE, ae((x = i.value) == null ? void 0 : x.type), 1)
|
|
24471
24471
|
])
|
|
24472
24472
|
])
|
|
24473
24473
|
], 4)
|
|
@@ -24664,7 +24664,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
24664
24664
|
default: _e(() => [
|
|
24665
24665
|
ue(E(Sa), { class: "text-sm font-semibold dark:text-neutral-100" }, {
|
|
24666
24666
|
default: _e(() => [
|
|
24667
|
-
Ue(
|
|
24667
|
+
Ue(ae(e.label), 1)
|
|
24668
24668
|
]),
|
|
24669
24669
|
_: 1
|
|
24670
24670
|
})
|
|
@@ -24720,7 +24720,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
24720
24720
|
type: "button",
|
|
24721
24721
|
class: "px-4 py-2 border border-slate-200 dark:border-zinc-700 rounded-md text-sm font-medium hover:bg-slate-50 dark:hover:bg-zinc-800 transition-colors",
|
|
24722
24722
|
onClick: U[1] || (U[1] = (X) => _.value = !1)
|
|
24723
|
-
},
|
|
24723
|
+
}, ae(E(I)("common.close") || "Close"), 1)
|
|
24724
24724
|
]),
|
|
24725
24725
|
default: _e(() => [
|
|
24726
24726
|
D("div", rE, [
|
|
@@ -24736,12 +24736,12 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
24736
24736
|
title: "Document Preview"
|
|
24737
24737
|
}, null, 8, sE)) : (b(), M("div", iE, [
|
|
24738
24738
|
ue(E(ba), { class: "w-16 h-16 stroke-1" }),
|
|
24739
|
-
D("span", lE,
|
|
24739
|
+
D("span", lE, ae(E(I)("dynamicUploadList.noSupportPreview") || "Preview not supported for this file type"), 1),
|
|
24740
24740
|
D("a", {
|
|
24741
24741
|
href: v.value,
|
|
24742
24742
|
target: "_blank",
|
|
24743
24743
|
class: "px-4 py-2 bg-primary-500 text-white rounded-md text-sm font-semibold hover:bg-primary-600 transition-colors"
|
|
24744
|
-
},
|
|
24744
|
+
}, ae(E(I)("dynamicUploadList.viewOriginal") || "View Original"), 9, cE)
|
|
24745
24745
|
]))
|
|
24746
24746
|
])
|
|
24747
24747
|
]),
|
|
@@ -24893,7 +24893,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
24893
24893
|
for: l.value,
|
|
24894
24894
|
class: "!text-sm !font-medium !mb-1 !block"
|
|
24895
24895
|
}, [
|
|
24896
|
-
Ue(
|
|
24896
|
+
Ue(ae(n.label) + " ", 1),
|
|
24897
24897
|
n.required ? (b(), M("span", uE, "*")) : ne("", !0)
|
|
24898
24898
|
], 8, dE)) : ne("", !0),
|
|
24899
24899
|
D("div", fE, [
|
|
@@ -24967,11 +24967,11 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
24967
24967
|
class: "shrink-0"
|
|
24968
24968
|
}, null, 8, ["size"]))
|
|
24969
24969
|
]),
|
|
24970
|
-
D("span", wE,
|
|
24970
|
+
D("span", wE, ae(V), 1)
|
|
24971
24971
|
])
|
|
24972
24972
|
], 10, vE))), 128))
|
|
24973
24973
|
], 2)),
|
|
24974
|
-
h.value && I.value.length > 0 ? (b(), M("div", CE, " Showing " +
|
|
24974
|
+
h.value && I.value.length > 0 ? (b(), M("div", CE, " Showing " + ae(_.value.length) + " / " + ae(I.value.length), 1)) : ne("", !0)
|
|
24975
24975
|
], 36)
|
|
24976
24976
|
])) : ne("", !0)
|
|
24977
24977
|
])
|
|
@@ -25279,11 +25279,11 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
25279
25279
|
default: _e(() => [
|
|
25280
25280
|
ue(Sa, { class: "text-sm font-semibold dark:text-neutral-100" }, {
|
|
25281
25281
|
default: _e(() => [
|
|
25282
|
-
Ue(
|
|
25282
|
+
Ue(ae(e.title), 1)
|
|
25283
25283
|
]),
|
|
25284
25284
|
_: 1
|
|
25285
25285
|
}),
|
|
25286
|
-
e.description ? (b(), M("div", EE,
|
|
25286
|
+
e.description ? (b(), M("div", EE, ae(e.description), 1)) : ne("", !0)
|
|
25287
25287
|
]),
|
|
25288
25288
|
_: 1
|
|
25289
25289
|
}),
|
|
@@ -25391,15 +25391,15 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
25391
25391
|
D("div", OE, [
|
|
25392
25392
|
D("div", PE, [
|
|
25393
25393
|
h[4] || (h[4] = D("span", { class: "w-14 shrink-0 text-muted-foreground dark:text-neutral-400" }, "Nama", -1)),
|
|
25394
|
-
D("span", LE,
|
|
25394
|
+
D("span", LE, ae((p = s.value) == null ? void 0 : p.name), 1)
|
|
25395
25395
|
]),
|
|
25396
25396
|
D("div", IE, [
|
|
25397
25397
|
h[5] || (h[5] = D("span", { class: "w-14 shrink-0 text-muted-foreground dark:text-neutral-400" }, "Ukuran", -1)),
|
|
25398
|
-
D("span", $E,
|
|
25398
|
+
D("span", $E, ae((g = s.value) == null ? void 0 : g.size), 1)
|
|
25399
25399
|
]),
|
|
25400
25400
|
D("div", FE, [
|
|
25401
25401
|
h[6] || (h[6] = D("span", { class: "w-14 shrink-0 text-muted-foreground dark:text-neutral-400" }, "Tipe", -1)),
|
|
25402
|
-
D("span", BE,
|
|
25402
|
+
D("span", BE, ae((y = s.value) == null ? void 0 : y.type), 1)
|
|
25403
25403
|
])
|
|
25404
25404
|
])
|
|
25405
25405
|
], 4)
|
|
@@ -25595,7 +25595,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
25595
25595
|
default: _e(() => [
|
|
25596
25596
|
ue(E(Sa), { class: "text-sm font-semibold dark:text-neutral-100" }, {
|
|
25597
25597
|
default: _e(() => [
|
|
25598
|
-
Ue(
|
|
25598
|
+
Ue(ae(e.label), 1)
|
|
25599
25599
|
]),
|
|
25600
25600
|
_: 1
|
|
25601
25601
|
})
|
|
@@ -25852,7 +25852,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
25852
25852
|
const ge = Number(r.maxRows);
|
|
25853
25853
|
return Number.isFinite(ge) && ge > 0 ? ge : 5;
|
|
25854
25854
|
});
|
|
25855
|
-
async function
|
|
25855
|
+
async function ie() {
|
|
25856
25856
|
r.disabled || r.readonly || (j.value = !0, N.value = 0, requestAnimationFrame(() => {
|
|
25857
25857
|
B.value && (B.value.scrollTop = 0), V.value = 0;
|
|
25858
25858
|
}), g.value && r.autoFetchOnOpen && (r.refreshOnOpen || !x.value) && !w.value && await _());
|
|
@@ -25861,7 +25861,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
25861
25861
|
j.value = !1;
|
|
25862
25862
|
}
|
|
25863
25863
|
function fe() {
|
|
25864
|
-
j.value ? J() :
|
|
25864
|
+
j.value ? J() : ie();
|
|
25865
25865
|
}
|
|
25866
25866
|
function pe(ge) {
|
|
25867
25867
|
var Ae, ze;
|
|
@@ -25917,13 +25917,13 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
25917
25917
|
$e(j, (ge) => {
|
|
25918
25918
|
ge || (T.value = "");
|
|
25919
25919
|
});
|
|
25920
|
-
const
|
|
25920
|
+
const re = H(() => {
|
|
25921
25921
|
if (K.value) return r.itemHeight;
|
|
25922
25922
|
const ge = Te.value;
|
|
25923
25923
|
return (ge <= 0 ? 1 : Math.min(ge, Y.value)) * r.itemHeight;
|
|
25924
25924
|
}), Ce = H(
|
|
25925
25925
|
() => r.virtual ? Te.value * r.itemHeight : 0
|
|
25926
|
-
), we = H(() => r.virtual ? Math.ceil(
|
|
25926
|
+
), we = H(() => r.virtual ? Math.ceil(re.value / r.itemHeight) + r.overscan : Te.value), me = H(() => {
|
|
25927
25927
|
if (!r.virtual) return 0;
|
|
25928
25928
|
const ge = Math.floor(V.value / r.itemHeight) - Math.floor(r.overscan / 2);
|
|
25929
25929
|
return Math.max(0, ge);
|
|
@@ -25970,7 +25970,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
25970
25970
|
for: l.value,
|
|
25971
25971
|
class: "text-sm font-medium"
|
|
25972
25972
|
}, [
|
|
25973
|
-
Ue(
|
|
25973
|
+
Ue(ae(a.value) + " ", 1),
|
|
25974
25974
|
c.value ? (b(), M("span", HE, "*")) : ne("", !0)
|
|
25975
25975
|
], 8, WE)) : ne("", !0),
|
|
25976
25976
|
D("div", {
|
|
@@ -25995,7 +25995,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
25995
25995
|
key: `chip-${h(Ae, ze)}`,
|
|
25996
25996
|
class: "inline-flex items-center rounded-md border px-1.5 py-0.5 text-xs font-medium bg-neutral-100 dark:bg-neutral-800 text-neutral-900 dark:text-neutral-100 border-transparent gap-1"
|
|
25997
25997
|
}, [
|
|
25998
|
-
D("span", XE,
|
|
25998
|
+
D("span", XE, ae(u(Ae)), 1),
|
|
25999
25999
|
r.disabled ? ne("", !0) : (b(), M("button", {
|
|
26000
26000
|
key: 0,
|
|
26001
26001
|
class: "ml-1 opacity-70 hover:opacity-100",
|
|
@@ -26003,8 +26003,8 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26003
26003
|
"aria-label": "Remove"
|
|
26004
26004
|
}, " ✕ ", 8, YE))
|
|
26005
26005
|
]))), 128)),
|
|
26006
|
-
r.maxChips !== null && v.value.length > r.maxChips ? (b(), M("div", JE, " +" +
|
|
26007
|
-
])) : (b(), M("div", QE,
|
|
26006
|
+
r.maxChips !== null && v.value.length > r.maxChips ? (b(), M("div", JE, " +" + ae(v.value.length - (r.maxChips ?? 0)), 1)) : ne("", !0)
|
|
26007
|
+
])) : (b(), M("div", QE, ae(r.placeholder), 1))
|
|
26008
26008
|
]),
|
|
26009
26009
|
D("div", ZE, [
|
|
26010
26010
|
ye.value ? (b(), M("button", {
|
|
@@ -26043,7 +26043,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26043
26043
|
ref_key: "listEl",
|
|
26044
26044
|
ref: B,
|
|
26045
26045
|
class: "relative overflow-auto",
|
|
26046
|
-
style: ut({ height:
|
|
26046
|
+
style: ut({ height: re.value + "px" }),
|
|
26047
26047
|
onScroll: Be
|
|
26048
26048
|
}, [
|
|
26049
26049
|
K.value ? (b(), M("div", nM, " All items have been selected ")) : (b(), M(Pe, { key: 1 }, [
|
|
@@ -26069,7 +26069,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26069
26069
|
disabled: r.disabled || U(Ae),
|
|
26070
26070
|
onClick: (Je) => W(Ae)
|
|
26071
26071
|
}, [
|
|
26072
|
-
D("span", rM,
|
|
26072
|
+
D("span", rM, ae(u(Ae)), 1),
|
|
26073
26073
|
R(Ae) ? (b(), M("span", aM, "✓")) : ne("", !0)
|
|
26074
26074
|
], 14, oM))), 128))
|
|
26075
26075
|
], 6),
|
|
@@ -26081,7 +26081,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26081
26081
|
], 4)) : ne("", !0)
|
|
26082
26082
|
]))
|
|
26083
26083
|
], 512),
|
|
26084
|
-
d.value ? (b(), M("p", cM,
|
|
26084
|
+
d.value ? (b(), M("p", cM, ae(r.error), 1)) : ne("", !0)
|
|
26085
26085
|
], 64))
|
|
26086
26086
|
], 10, UE)), [
|
|
26087
26087
|
[xn, s.value]
|
|
@@ -26211,12 +26211,12 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26211
26211
|
key: 0,
|
|
26212
26212
|
for: r.value,
|
|
26213
26213
|
class: "text-sm font-medium text-foreground"
|
|
26214
|
-
},
|
|
26214
|
+
}, ae(a.label), 9, fM)) : (b(), M("label", {
|
|
26215
26215
|
key: 1,
|
|
26216
26216
|
for: r.value,
|
|
26217
26217
|
class: "text-sm font-medium text-foreground"
|
|
26218
26218
|
}, " Enter security code ", 8, hM)),
|
|
26219
|
-
D("p", pM, " Type your " +
|
|
26219
|
+
D("p", pM, " Type your " + ae(f.value) + "-digit verification code ", 1)
|
|
26220
26220
|
])) : ne("", !0),
|
|
26221
26221
|
D("div", gM, [
|
|
26222
26222
|
(b(!0), M(Pe, null, Ge(f.value, (v) => (b(), M("input", {
|
|
@@ -26295,8 +26295,8 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26295
26295
|
}), s = H(() => `${Math.round(o.value)}%`);
|
|
26296
26296
|
return (i, l) => (b(), M("div", bM, [
|
|
26297
26297
|
e.label || e.showValue ? (b(), M("div", yM, [
|
|
26298
|
-
e.label ? (b(), M("span", vM,
|
|
26299
|
-
e.showValue ? (b(), M("span", xM,
|
|
26298
|
+
e.label ? (b(), M("span", vM, ae(e.label), 1)) : ne("", !0),
|
|
26299
|
+
e.showValue ? (b(), M("span", xM, ae(s.value), 1)) : ne("", !0)
|
|
26300
26300
|
])) : ne("", !0),
|
|
26301
26301
|
D("div", {
|
|
26302
26302
|
class: ve(r.value)
|
|
@@ -26451,7 +26451,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26451
26451
|
class: "text-sm font-medium"
|
|
26452
26452
|
}, {
|
|
26453
26453
|
default: _e(() => [
|
|
26454
|
-
Ue(
|
|
26454
|
+
Ue(ae(e.label) + " ", 1),
|
|
26455
26455
|
e.required ? (b(), M("span", SM, "*")) : ne("", !0)
|
|
26456
26456
|
]),
|
|
26457
26457
|
_: 1
|
|
@@ -26509,7 +26509,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26509
26509
|
e.disabled || e.readonly ? "cursor-not-allowed opacity-60" : ""
|
|
26510
26510
|
])
|
|
26511
26511
|
}, [
|
|
26512
|
-
Ue(
|
|
26512
|
+
Ue(ae(u($)) + " ", 1),
|
|
26513
26513
|
e.required && c.value.length === 1 && e.label ? (b(), M("span", PM, "*")) : ne("", !0)
|
|
26514
26514
|
], 10, OM)
|
|
26515
26515
|
], 10, RM)
|
|
@@ -26517,7 +26517,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26517
26517
|
], 2)),
|
|
26518
26518
|
h.value && p.value ? (b(), M("div", LM, [
|
|
26519
26519
|
ue(E(wr), { class: "w-4 h-4 flex-shrink-0" }),
|
|
26520
|
-
Ue(" " +
|
|
26520
|
+
Ue(" " + ae(p.value), 1)
|
|
26521
26521
|
])) : ne("", !0)
|
|
26522
26522
|
])
|
|
26523
26523
|
], 2));
|
|
@@ -26669,7 +26669,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26669
26669
|
class: "text-sm font-medium"
|
|
26670
26670
|
}, {
|
|
26671
26671
|
default: _e(() => [
|
|
26672
|
-
Ue(
|
|
26672
|
+
Ue(ae(e.label) + " ", 1),
|
|
26673
26673
|
e.required ? (b(), M("span", $M, "*")) : ne("", !0)
|
|
26674
26674
|
]),
|
|
26675
26675
|
_: 1
|
|
@@ -26733,14 +26733,14 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26733
26733
|
e.disabled ? "cursor-not-allowed" : "cursor-pointer"
|
|
26734
26734
|
])
|
|
26735
26735
|
}, [
|
|
26736
|
-
Ue(
|
|
26736
|
+
Ue(ae(y(P)) + " ", 1),
|
|
26737
26737
|
e.required && p.value.length === 1 && e.label ? (b(), M("span", VM, "*")) : ne("", !0)
|
|
26738
26738
|
], 10, UM)
|
|
26739
26739
|
], 10, NM))), 128))
|
|
26740
26740
|
], 2),
|
|
26741
26741
|
x.value && C.value ? (b(), M("div", WM, [
|
|
26742
26742
|
ue(E(wr), { class: "w-4 h-4 flex-shrink-0" }),
|
|
26743
|
-
Ue(" " +
|
|
26743
|
+
Ue(" " + ae(C.value), 1)
|
|
26744
26744
|
])) : ne("", !0)
|
|
26745
26745
|
])
|
|
26746
26746
|
]));
|
|
@@ -26879,16 +26879,16 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26879
26879
|
class: "text-sm font-medium"
|
|
26880
26880
|
}, {
|
|
26881
26881
|
default: _e(() => [
|
|
26882
|
-
Ue(
|
|
26882
|
+
Ue(ae(c.value) + " ", 1),
|
|
26883
26883
|
e.required ? (b(), M("span", HM, "*")) : ne("", !0)
|
|
26884
26884
|
]),
|
|
26885
26885
|
_: 1
|
|
26886
26886
|
}, 8, ["for"])) : ne("", !0),
|
|
26887
26887
|
D("div", KM, [
|
|
26888
26888
|
e.showValue ? (b(), M("div", qM, [
|
|
26889
|
-
D("span", GM,
|
|
26890
|
-
D("span", XM,
|
|
26891
|
-
D("span", YM,
|
|
26889
|
+
D("span", GM, ae(r.valuePrefix) + ae(e.min) + ae(r.valueSuffix), 1),
|
|
26890
|
+
D("span", XM, ae(h.value), 1),
|
|
26891
|
+
D("span", YM, ae(r.valuePrefix) + ae(e.max) + ae(r.valueSuffix), 1)
|
|
26892
26892
|
])) : ne("", !0),
|
|
26893
26893
|
D("div", JM, [
|
|
26894
26894
|
D("div", {
|
|
@@ -26930,7 +26930,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26930
26930
|
style: ut({ left: `${x(_.value)}%`, transform: "translateX(-50%)" })
|
|
26931
26931
|
}, [
|
|
26932
26932
|
I[0] || (I[0] = D("div", { class: "w-1 h-2 bg-gray-400 rounded-full" }, null, -1)),
|
|
26933
|
-
D("span", eT,
|
|
26933
|
+
D("span", eT, ae(_.label), 1)
|
|
26934
26934
|
], 4))), 128))
|
|
26935
26935
|
])) : ne("", !0)
|
|
26936
26936
|
]),
|
|
@@ -26948,11 +26948,11 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
26948
26948
|
d: "M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
26949
26949
|
})
|
|
26950
26950
|
], -1)),
|
|
26951
|
-
Ue(" " +
|
|
26951
|
+
Ue(" " + ae(e.error), 1)
|
|
26952
26952
|
])) : ne("", !0),
|
|
26953
26953
|
C.value ? (b(), Me(Dt("style"), { key: 2 }, {
|
|
26954
26954
|
default: _e(() => [
|
|
26955
|
-
Ue(
|
|
26955
|
+
Ue(ae(C.value), 1)
|
|
26956
26956
|
]),
|
|
26957
26957
|
_: 1
|
|
26958
26958
|
})) : ne("", !0)
|
|
@@ -27062,7 +27062,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27062
27062
|
class: "text-sm font-medium"
|
|
27063
27063
|
}, {
|
|
27064
27064
|
default: _e(() => [
|
|
27065
|
-
Ue(
|
|
27065
|
+
Ue(ae(e.title) + " ", 1),
|
|
27066
27066
|
e.required ? (b(), M("span", oT, "*")) : ne("", !0)
|
|
27067
27067
|
]),
|
|
27068
27068
|
_: 1
|
|
@@ -27175,7 +27175,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27175
27175
|
D("span", {
|
|
27176
27176
|
class: ve(["inline-block w-2 h-2 rounded-full animate-pulse", r.value ? "bg-green-200" : "bg-gray-300"])
|
|
27177
27177
|
}, null, 2),
|
|
27178
|
-
Ue(" " +
|
|
27178
|
+
Ue(" " + ae(d.value), 1)
|
|
27179
27179
|
])
|
|
27180
27180
|
]),
|
|
27181
27181
|
_: 1
|
|
@@ -27316,8 +27316,8 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27316
27316
|
id: Z,
|
|
27317
27317
|
required: he,
|
|
27318
27318
|
"aria-required": Te,
|
|
27319
|
-
...
|
|
27320
|
-
} = n, Ce = { ...
|
|
27319
|
+
...re
|
|
27320
|
+
} = n, Ce = { ...re };
|
|
27321
27321
|
return r.disabled && (Ce.disabled = !0), r.readonly && (Ce.readonly = !0), Ce;
|
|
27322
27322
|
}), u = H(() => {
|
|
27323
27323
|
const W = n.maxlength;
|
|
@@ -27407,9 +27407,9 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27407
27407
|
}, S = (W, G) => {
|
|
27408
27408
|
const Z = W.selectionStart ?? W.value.length, he = W.selectionEnd ?? W.value.length;
|
|
27409
27409
|
if (u.value > 0) {
|
|
27410
|
-
const Te = W.value.length - (he - Z),
|
|
27411
|
-
if (
|
|
27412
|
-
G = G.slice(0,
|
|
27410
|
+
const Te = W.value.length - (he - Z), re = u.value - Te;
|
|
27411
|
+
if (re <= 0) return;
|
|
27412
|
+
G = G.slice(0, re);
|
|
27413
27413
|
}
|
|
27414
27414
|
W.setRangeText(G, Z, he, "end"), K(W, P(W.value));
|
|
27415
27415
|
}, O = (W) => {
|
|
@@ -27431,18 +27431,18 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27431
27431
|
if (!G || y.value || m.value) return;
|
|
27432
27432
|
const Z = G.value ?? "", he = P(Z);
|
|
27433
27433
|
if (he === Z) {
|
|
27434
|
-
const Te = G.selectionStart ?? he.length,
|
|
27434
|
+
const Te = G.selectionStart ?? he.length, re = G.selectionEnd ?? he.length;
|
|
27435
27435
|
K(G, he), await rn();
|
|
27436
27436
|
try {
|
|
27437
|
-
G.setSelectionRange(Te,
|
|
27437
|
+
G.setSelectionRange(Te, re);
|
|
27438
27438
|
} catch {
|
|
27439
27439
|
}
|
|
27440
27440
|
oe(he);
|
|
27441
27441
|
} else {
|
|
27442
|
-
const Te = G.selectionStart ?? he.length,
|
|
27442
|
+
const Te = G.selectionStart ?? he.length, re = G.selectionEnd ?? he.length;
|
|
27443
27443
|
K(G, he), await rn();
|
|
27444
27444
|
try {
|
|
27445
|
-
G.setSelectionRange(Te,
|
|
27445
|
+
G.setSelectionRange(Te, re);
|
|
27446
27446
|
} catch {
|
|
27447
27447
|
}
|
|
27448
27448
|
}
|
|
@@ -27464,7 +27464,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27464
27464
|
g.value = "", U.value && (U.value.value = ""), o("update:modelValue", null), o("clear");
|
|
27465
27465
|
}, F = H(() => g.value.length), q = H(() => r.showCharCount ? u.value > 0 : !1), Y = H(
|
|
27466
27466
|
() => q.value && F.value > 0
|
|
27467
|
-
),
|
|
27467
|
+
), ie = H(() => `${F.value} / ${u.value}`), J = H(() => !!r.error), fe = H(() => {
|
|
27468
27468
|
const W = n.rows, G = typeof W == "number" ? W : Number.parseInt(String(W ?? ""), 10);
|
|
27469
27469
|
return Number.isFinite(G) && G > 0 ? G : 3;
|
|
27470
27470
|
}), pe = H(() => ({ height: `${fe.value * 24 + 16}px` }));
|
|
@@ -27484,7 +27484,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27484
27484
|
for: l.value,
|
|
27485
27485
|
class: "text-sm font-medium"
|
|
27486
27486
|
}, [
|
|
27487
|
-
Ue(
|
|
27487
|
+
Ue(ae(a.value) + " ", 1),
|
|
27488
27488
|
c.value ? (b(), M("span", mT, "*")) : ne("", !0)
|
|
27489
27489
|
], 8, gT)) : ne("", !0),
|
|
27490
27490
|
D("div", bT, [
|
|
@@ -27513,9 +27513,9 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27513
27513
|
onClick: N
|
|
27514
27514
|
}, " ✕ ")
|
|
27515
27515
|
])) : ne("", !0),
|
|
27516
|
-
Y.value && !J.value ? (b(), M("p", xT,
|
|
27516
|
+
Y.value && !J.value ? (b(), M("p", xT, ae(ie.value), 1)) : ne("", !0)
|
|
27517
27517
|
]),
|
|
27518
|
-
J.value ? (b(), M("p", kT,
|
|
27518
|
+
J.value ? (b(), M("p", kT, ae(r.error), 1)) : ne("", !0)
|
|
27519
27519
|
], 64))
|
|
27520
27520
|
], 10, hT)), [
|
|
27521
27521
|
[xn, s.value]
|
|
@@ -27718,7 +27718,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27718
27718
|
"stroke-width": "2.5"
|
|
27719
27719
|
}, null, 8, ["class"])) : ne("", !0),
|
|
27720
27720
|
Xe(u.$slots, "default", {}, () => [
|
|
27721
|
-
D("span", null,
|
|
27721
|
+
D("span", null, ae(e.text), 1)
|
|
27722
27722
|
], !0)
|
|
27723
27723
|
], 2))
|
|
27724
27724
|
])) : ne("", !0);
|
|
@@ -27957,7 +27957,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27957
27957
|
}).join("")) || "??";
|
|
27958
27958
|
return (g, y) => (b(), M("div", ET, [
|
|
27959
27959
|
D("div", MT, [
|
|
27960
|
-
D("h3", TT,
|
|
27960
|
+
D("h3", TT, ae(e.title), 1)
|
|
27961
27961
|
]),
|
|
27962
27962
|
D("div", RT, [
|
|
27963
27963
|
o.value ? (b(), M("div", OT, [
|
|
@@ -27965,7 +27965,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27965
27965
|
y[0] || (y[0] = D("p", { class: "text-xs font-bold uppercase tracking-widest text-muted-foreground animate-pulse" }, "Syncing CBAS Data...", -1))
|
|
27966
27966
|
])) : r.value ? (b(), M("div", PT, [
|
|
27967
27967
|
ue(E(wr), { class: "w-8 h-8 text-destructive mx-auto" }),
|
|
27968
|
-
D("p", LT,
|
|
27968
|
+
D("p", LT, ae(r.value), 1),
|
|
27969
27969
|
D("button", {
|
|
27970
27970
|
onClick: i,
|
|
27971
27971
|
class: "text-xs font-black uppercase underline tracking-wider opacity-60 hover:opacity-100"
|
|
@@ -27980,15 +27980,15 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
27980
27980
|
m && m.name ? (b(), M("div", FT, [
|
|
27981
27981
|
D("div", BT, [
|
|
27982
27982
|
D("div", NT, [
|
|
27983
|
-
Ue(" Phase: " +
|
|
27984
|
-
m.noRef ? (b(), M("span", zT, "#" +
|
|
27983
|
+
Ue(" Phase: " + ae(m.name) + " ", 1),
|
|
27984
|
+
m.noRef ? (b(), M("span", zT, "#" + ae(m.noRef), 1)) : ne("", !0)
|
|
27985
27985
|
]),
|
|
27986
27986
|
m.duration || m.startTime ? (b(), M("div", jT, [
|
|
27987
27987
|
m.startTime ? (b(), M("div", UT, [
|
|
27988
27988
|
ue(E(ss), { class: "w-3 h-3" }),
|
|
27989
|
-
Ue(" " +
|
|
27989
|
+
Ue(" " + ae(c(m.startTime)) + " - " + ae(c(m.endTime)), 1)
|
|
27990
27990
|
])) : ne("", !0),
|
|
27991
|
-
m.duration ? (b(), M("div", VT, " Total: " +
|
|
27991
|
+
m.duration ? (b(), M("div", VT, " Total: " + ae(d(m.duration)), 1)) : ne("", !0)
|
|
27992
27992
|
])) : ne("", !0)
|
|
27993
27993
|
])
|
|
27994
27994
|
])) : ne("", !0),
|
|
@@ -28015,36 +28015,36 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28015
28015
|
D("div", {
|
|
28016
28016
|
class: ve(["flex items-center gap-2", C % 2 === 0 ? "md:justify-end" : ""])
|
|
28017
28017
|
}, [
|
|
28018
|
-
D("h4", GT,
|
|
28018
|
+
D("h4", GT, ae(x.name), 1),
|
|
28019
28019
|
x.status ? (b(), Me(ha, {
|
|
28020
28020
|
key: 0,
|
|
28021
28021
|
variant: h(x.color),
|
|
28022
28022
|
class: "h-4 px-1.5 text-[8px] uppercase font-black tracking-widest"
|
|
28023
28023
|
}, {
|
|
28024
28024
|
default: _e(() => [
|
|
28025
|
-
Ue(
|
|
28025
|
+
Ue(ae(x.status), 1)
|
|
28026
28026
|
]),
|
|
28027
28027
|
_: 2
|
|
28028
28028
|
}, 1032, ["variant"])) : ne("", !0)
|
|
28029
28029
|
], 2),
|
|
28030
|
-
D("p", XT, " #" +
|
|
28030
|
+
D("p", XT, " #" + ae(x.noRef), 1)
|
|
28031
28031
|
], 2),
|
|
28032
28032
|
D("div", {
|
|
28033
28033
|
class: ve(["text-left sm:text-right shrink-0", C % 2 === 0 ? "md:text-left" : ""])
|
|
28034
28034
|
}, [
|
|
28035
|
-
D("p", YT,
|
|
28035
|
+
D("p", YT, ae(l(x.startTime)), 1),
|
|
28036
28036
|
D("p", {
|
|
28037
28037
|
class: ve(["mt-1 text-[11px] font-bold text-primary flex items-center justify-start sm:justify-end gap-1.5", C % 2 === 0 ? "md:justify-start" : ""])
|
|
28038
28038
|
}, [
|
|
28039
28039
|
ue(E(ss), { class: "w-3 h-3" }),
|
|
28040
|
-
Ue(" " +
|
|
28040
|
+
Ue(" " + ae(d(x.duration)), 1)
|
|
28041
28041
|
], 2)
|
|
28042
28042
|
], 2)
|
|
28043
28043
|
], 2),
|
|
28044
28044
|
x.desc ? (b(), M("div", {
|
|
28045
28045
|
key: 0,
|
|
28046
28046
|
class: ve(["mt-4 text-sm text-neutral-600 dark:text-neutral-400 leading-relaxed font-medium", C % 2 === 0 ? "md:text-right" : ""])
|
|
28047
|
-
},
|
|
28047
|
+
}, ae(x.desc), 3)) : ne("", !0),
|
|
28048
28048
|
x.personName ? (b(), M("div", {
|
|
28049
28049
|
key: 1,
|
|
28050
28050
|
class: ve(["mt-4 pt-4 border-t border-neutral-100 dark:border-neutral-800 flex items-center gap-3", C % 2 === 0 ? "md:flex-row-reverse md:text-right" : ""])
|
|
@@ -28057,7 +28057,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28057
28057
|
}, null, 8, ["src"])) : ne("", !0),
|
|
28058
28058
|
ue(E(AT), { class: "bg-neutral-100 text-neutral-400 text-[10px] font-bold" }, {
|
|
28059
28059
|
default: _e(() => [
|
|
28060
|
-
Ue(
|
|
28060
|
+
Ue(ae(p(x.personName)), 1)
|
|
28061
28061
|
]),
|
|
28062
28062
|
_: 2
|
|
28063
28063
|
}, 1024)
|
|
@@ -28065,8 +28065,8 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28065
28065
|
_: 2
|
|
28066
28066
|
}, 1024),
|
|
28067
28067
|
D("div", JT, [
|
|
28068
|
-
D("p", QT,
|
|
28069
|
-
D("p", ZT,
|
|
28068
|
+
D("p", QT, ae(x.personName), 1),
|
|
28069
|
+
D("p", ZT, ae(x.personRole || "Process Specialist"), 1)
|
|
28070
28070
|
])
|
|
28071
28071
|
], 2)) : ne("", !0)
|
|
28072
28072
|
])
|
|
@@ -28119,7 +28119,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28119
28119
|
D("span", { class: "font-medium text-primary-600" }, "Click to upload"),
|
|
28120
28120
|
Ue(" or drag and drop ")
|
|
28121
28121
|
], -1)),
|
|
28122
|
-
e.accept ? (b(), M("p", a3,
|
|
28122
|
+
e.accept ? (b(), M("p", a3, ae(e.accept), 1)) : ne("", !0),
|
|
28123
28123
|
D("input", {
|
|
28124
28124
|
type: "file",
|
|
28125
28125
|
class: "hidden",
|
|
@@ -28127,7 +28127,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28127
28127
|
accept: e.accept
|
|
28128
28128
|
}, null, 40, s3)
|
|
28129
28129
|
]),
|
|
28130
|
-
e.errorMessage ? (b(), M("p", i3,
|
|
28130
|
+
e.errorMessage ? (b(), M("p", i3, ae(e.errorMessage), 1)) : ne("", !0)
|
|
28131
28131
|
]));
|
|
28132
28132
|
}
|
|
28133
28133
|
}), c3 = /* @__PURE__ */ Le({
|
|
@@ -28356,12 +28356,12 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28356
28356
|
key: 0,
|
|
28357
28357
|
class: "w-4 h-4"
|
|
28358
28358
|
})) : e.typeWizard === "number" || !L.icon && e.typeWizard !== "none" ? (b(), M("span", h3, [
|
|
28359
|
-
P < i.value ? (b(), M("span", p3, "✓")) : (b(), M("span", g3,
|
|
28359
|
+
P < i.value ? (b(), M("span", p3, "✓")) : (b(), M("span", g3, ae(P + 1), 1))
|
|
28360
28360
|
])) : (b(), M("span", m3))
|
|
28361
28361
|
], 2),
|
|
28362
28362
|
D("span", {
|
|
28363
28363
|
class: ve(["text-xs font-semibold whitespace-normal px-2 py-1 rounded transition-colors text-left", P === i.value ? "text-[#2563eb] dark:text-[#3b82f6]" : "text-[#64748b] dark:text-[#a1a1aa]"])
|
|
28364
|
-
},
|
|
28364
|
+
}, ae(L.title), 3)
|
|
28365
28365
|
]))), 128)) : (b(!0), M(Pe, { key: 0 }, Ge(e.tabs, (L, P) => (b(), M("div", {
|
|
28366
28366
|
key: L.key,
|
|
28367
28367
|
onClick: (U) => x(P),
|
|
@@ -28377,8 +28377,8 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28377
28377
|
e.typeWizard === "icon" && L.icon ? (b(), Me(Dt(u(L.icon)), {
|
|
28378
28378
|
key: 0,
|
|
28379
28379
|
class: "w-4 h-4 mr-2 shrink-0"
|
|
28380
|
-
})) : e.typeWizard === "number" ? (b(), M("span", u3,
|
|
28381
|
-
D("span", f3,
|
|
28380
|
+
})) : e.typeWizard === "number" ? (b(), M("span", u3, ae(P + 1), 1)) : ne("", !0),
|
|
28381
|
+
D("span", f3, ae(L.title), 1)
|
|
28382
28382
|
], 2),
|
|
28383
28383
|
P < e.tabs.length - 1 ? (b(), M("svg", {
|
|
28384
28384
|
key: 0,
|
|
@@ -28411,8 +28411,8 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28411
28411
|
e.typeWizard === "icon" && L.icon ? (b(), Me(Dt(u(L.icon)), {
|
|
28412
28412
|
key: 0,
|
|
28413
28413
|
class: "h-4 w-4 shrink-0"
|
|
28414
|
-
})) : e.typeWizard === "number" ? (b(), M("span", y3,
|
|
28415
|
-
D("span", v3,
|
|
28414
|
+
})) : e.typeWizard === "number" ? (b(), M("span", y3, ae(P + 1), 1)) : ne("", !0),
|
|
28415
|
+
D("span", v3, ae(L.title), 1)
|
|
28416
28416
|
], 10, b3))), 128))
|
|
28417
28417
|
], 2))
|
|
28418
28418
|
], 2)
|
|
@@ -28453,7 +28453,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28453
28453
|
}, () => [
|
|
28454
28454
|
D("div", w3, [
|
|
28455
28455
|
R[2] || (R[2] = Ue(" Slot ", -1)),
|
|
28456
|
-
D("code", C3, "tab-" +
|
|
28456
|
+
D("code", C3, "tab-" + ae(c.value.key), 1),
|
|
28457
28457
|
R[3] || (R[3] = Ue(" belum dibuat. ", -1))
|
|
28458
28458
|
])
|
|
28459
28459
|
], !0)
|
|
@@ -28502,7 +28502,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28502
28502
|
key: 0,
|
|
28503
28503
|
class: "w-4 h-4 mr-2 animate-spin"
|
|
28504
28504
|
})) : ne("", !0),
|
|
28505
|
-
Ue(" " +
|
|
28505
|
+
Ue(" " + ae(e.submitText), 1)
|
|
28506
28506
|
], 8, S3)) : ne("", !0)
|
|
28507
28507
|
], 2)) : ne("", !0)
|
|
28508
28508
|
])
|
|
@@ -28721,12 +28721,12 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28721
28721
|
class: ve([P.icon, "text-2xl"])
|
|
28722
28722
|
}, null, 2)
|
|
28723
28723
|
])) : ne("", !0),
|
|
28724
|
-
D("h3", I3,
|
|
28724
|
+
D("h3", I3, ae(P.name), 1)
|
|
28725
28725
|
])
|
|
28726
28726
|
])
|
|
28727
28727
|
]),
|
|
28728
28728
|
P.permission && P.permission.length > 0 ? (b(), M("div", $3, [
|
|
28729
|
-
D("h4", F3,
|
|
28729
|
+
D("h4", F3, ae(E(o)("common.permissions")) + ": ", 1),
|
|
28730
28730
|
D("div", B3, [
|
|
28731
28731
|
(b(!0), M(Pe, null, Ge(w(P), (U) => (b(), M("label", {
|
|
28732
28732
|
key: U.id,
|
|
@@ -28738,7 +28738,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28738
28738
|
onChange: (X) => m(P.id, U.id, X, !1),
|
|
28739
28739
|
class: "w-4 h-4 text-blue-600 border-gray-300 dark:border-neutral-600 dark:bg-zinc-800 rounded focus:ring-blue-500 dark:focus:ring-blue-600 cursor-pointer"
|
|
28740
28740
|
}, null, 40, N3),
|
|
28741
|
-
D("span", z3,
|
|
28741
|
+
D("span", z3, ae(U.name), 1)
|
|
28742
28742
|
]))), 128))
|
|
28743
28743
|
])
|
|
28744
28744
|
])) : ne("", !0),
|
|
@@ -28754,7 +28754,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28754
28754
|
c(P) && p(P.id) ? (b(), M("div", j3, [
|
|
28755
28755
|
D("h4", U3, [
|
|
28756
28756
|
L[0] || (L[0] = D("span", { class: "w-1 h-4 bg-blue-500 rounded" }, null, -1)),
|
|
28757
|
-
Ue(" " +
|
|
28757
|
+
Ue(" " + ae(E(o)("common.subMenus")), 1)
|
|
28758
28758
|
]),
|
|
28759
28759
|
(b(!0), M(Pe, null, Ge(P.detail, (U) => (b(), M("div", {
|
|
28760
28760
|
key: U.id,
|
|
@@ -28768,8 +28768,8 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28768
28768
|
class: ve([U.icon, "text-xl"])
|
|
28769
28769
|
}, null, 2)
|
|
28770
28770
|
])) : ne("", !0),
|
|
28771
|
-
D("h5", q3,
|
|
28772
|
-
U.path ? (b(), M("span", G3,
|
|
28771
|
+
D("h5", q3, ae(U.name), 1),
|
|
28772
|
+
U.path ? (b(), M("span", G3, ae(U.path), 1)) : ne("", !0),
|
|
28773
28773
|
D("label", X3, [
|
|
28774
28774
|
D("input", {
|
|
28775
28775
|
type: "checkbox",
|
|
@@ -28777,7 +28777,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28777
28777
|
onChange: (X) => x(P, U, X),
|
|
28778
28778
|
class: "w-3.5 h-3.5 text-pink-600 border-gray-300 dark:border-neutral-600 dark:bg-zinc-800 rounded focus:ring-pink-500 dark:focus:ring-pink-600 cursor-pointer"
|
|
28779
28779
|
}, null, 40, Y3),
|
|
28780
|
-
D("span", J3,
|
|
28780
|
+
D("span", J3, ae(E(o)("common.selectAll")), 1)
|
|
28781
28781
|
])
|
|
28782
28782
|
])
|
|
28783
28783
|
])
|
|
@@ -28794,7 +28794,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
28794
28794
|
onChange: (oe) => m(U.id, X.id, oe, !0),
|
|
28795
28795
|
class: "w-3.5 h-3.5 text-pink-600 border-gray-300 dark:border-neutral-600 dark:bg-zinc-800 rounded focus:ring-pink-500 dark:focus:ring-pink-600 cursor-pointer"
|
|
28796
28796
|
}, null, 40, e4),
|
|
28797
|
-
D("span", t4,
|
|
28797
|
+
D("span", t4, ae(X.name), 1)
|
|
28798
28798
|
]))), 128))
|
|
28799
28799
|
])
|
|
28800
28800
|
])) : ne("", !0)
|
|
@@ -29014,7 +29014,7 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
29014
29014
|
{ deep: !0 }
|
|
29015
29015
|
), _t(u), (m, w) => (b(), M("div", o4, [
|
|
29016
29016
|
e.label ? (b(), M("label", r4, [
|
|
29017
|
-
Ue(
|
|
29017
|
+
Ue(ae(e.label) + " ", 1),
|
|
29018
29018
|
e.required ? (b(), M("span", a4, "*")) : ne("", !0)
|
|
29019
29019
|
])) : ne("", !0),
|
|
29020
29020
|
a.value ? (b(), M("div", s4, [
|
|
@@ -29022,9 +29022,9 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
29022
29022
|
class: "animate-spin text-primary-600 mr-2",
|
|
29023
29023
|
size: 24
|
|
29024
29024
|
}),
|
|
29025
|
-
D("span", i4,
|
|
29025
|
+
D("span", i4, ae(E(r)("common.loadingPermissions")), 1)
|
|
29026
29026
|
])) : s.value.length === 0 ? (b(), M("div", l4, [
|
|
29027
|
-
D("p", c4,
|
|
29027
|
+
D("p", c4, ae(E(r)("common.noPermissions")), 1)
|
|
29028
29028
|
])) : (b(), M("div", d4, [
|
|
29029
29029
|
(b(!0), M(Pe, null, Ge(s.value, (x) => (b(), M("div", {
|
|
29030
29030
|
key: x.module,
|
|
@@ -29039,12 +29039,12 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
29039
29039
|
disabled: e.disabled
|
|
29040
29040
|
}, null, 8, ["modelValue", "indeterminate", "onUpdate:modelValue", "disabled"]),
|
|
29041
29041
|
D("div", null, [
|
|
29042
|
-
D("div", h4,
|
|
29043
|
-
D("div", p4,
|
|
29042
|
+
D("div", h4, ae(x.label || x.module), 1),
|
|
29043
|
+
D("div", p4, ae(f(x)) + " " + ae(E(r)("common.from")) + " " + ae(x.permissions.length) + " " + ae(E(r)("common.selected")), 1)
|
|
29044
29044
|
])
|
|
29045
29045
|
]),
|
|
29046
29046
|
D("div", g4, [
|
|
29047
|
-
D("div", m4,
|
|
29047
|
+
D("div", m4, ae(f(x)) + "/" + ae(x.permissions.length), 1)
|
|
29048
29048
|
])
|
|
29049
29049
|
]),
|
|
29050
29050
|
D("div", b4, [
|
|
@@ -29063,15 +29063,15 @@ const nE = { class: "space-y-3" }, oE = {
|
|
|
29063
29063
|
D("label", {
|
|
29064
29064
|
for: `perm-${C.id}`,
|
|
29065
29065
|
class: "text-sm font-medium text-gray-700 dark:text-gray-300 cursor-pointer block"
|
|
29066
|
-
},
|
|
29067
|
-
C.description ? (b(), M("p", k4,
|
|
29066
|
+
}, ae(C.label || C.key), 9, x4),
|
|
29067
|
+
C.description ? (b(), M("p", k4, ae(C.description), 1)) : ne("", !0)
|
|
29068
29068
|
])
|
|
29069
29069
|
]))), 128))
|
|
29070
29070
|
])
|
|
29071
29071
|
])
|
|
29072
29072
|
]))), 128))
|
|
29073
29073
|
])),
|
|
29074
|
-
e.error ? (b(), M("p", w4,
|
|
29074
|
+
e.error ? (b(), M("p", w4, ae(e.error), 1)) : ne("", !0)
|
|
29075
29075
|
]));
|
|
29076
29076
|
}
|
|
29077
29077
|
});
|
|
@@ -29171,7 +29171,7 @@ const Ze = (e, t) => {
|
|
|
29171
29171
|
}), (a, s) => (b(), M("div", null, [
|
|
29172
29172
|
D("div", { onClick: o }, [
|
|
29173
29173
|
Xe(a.$slots, "trigger", {}, () => [
|
|
29174
|
-
ue(
|
|
29174
|
+
ue(Tt, {
|
|
29175
29175
|
variant: "outline",
|
|
29176
29176
|
class: "gap-2",
|
|
29177
29177
|
icon: "Search",
|
|
@@ -29212,10 +29212,10 @@ const Ze = (e, t) => {
|
|
|
29212
29212
|
n.value ? (b(), M("div", _4, [
|
|
29213
29213
|
D("div", A4, [
|
|
29214
29214
|
D("div", null, [
|
|
29215
|
-
D("h3", S4,
|
|
29216
|
-
e.description ? (b(), M("p", D4,
|
|
29215
|
+
D("h3", S4, ae(e.title), 1),
|
|
29216
|
+
e.description ? (b(), M("p", D4, ae(e.description), 1)) : ne("", !0)
|
|
29217
29217
|
]),
|
|
29218
|
-
ue(
|
|
29218
|
+
ue(Tt, {
|
|
29219
29219
|
variant: "ghost",
|
|
29220
29220
|
size: "icon",
|
|
29221
29221
|
onClick: r,
|
|
@@ -29437,8 +29437,8 @@ const Ze = (e, t) => {
|
|
|
29437
29437
|
ue(E(xm), { class: "w-5 h-5 text-primary-500" })
|
|
29438
29438
|
]),
|
|
29439
29439
|
D("div", null, [
|
|
29440
|
-
D("div", F4,
|
|
29441
|
-
D("div", B4,
|
|
29440
|
+
D("div", F4, ae(A.name), 1),
|
|
29441
|
+
D("div", B4, ae(A.code), 1)
|
|
29442
29442
|
])
|
|
29443
29443
|
])
|
|
29444
29444
|
]),
|
|
@@ -29446,11 +29446,11 @@ const Ze = (e, t) => {
|
|
|
29446
29446
|
D("div", z4, [
|
|
29447
29447
|
D("div", j4, [
|
|
29448
29448
|
ue(E(km), { class: "w-3 h-3 text-neutral-400" }),
|
|
29449
|
-
D("span", U4,
|
|
29449
|
+
D("span", U4, ae(((R = A.operator) == null ? void 0 : R.name) || "-"), 1)
|
|
29450
29450
|
]),
|
|
29451
29451
|
D("div", V4, [
|
|
29452
29452
|
ue(E(wm), { class: "w-3 h-3 text-neutral-400" }),
|
|
29453
|
-
D("span", W4,
|
|
29453
|
+
D("span", W4, ae(((L = A.supervisor) == null ? void 0 : L.name) || "-"), 1)
|
|
29454
29454
|
])
|
|
29455
29455
|
])
|
|
29456
29456
|
]),
|
|
@@ -29458,11 +29458,11 @@ const Ze = (e, t) => {
|
|
|
29458
29458
|
D("div", K4, [
|
|
29459
29459
|
D("div", q4, [
|
|
29460
29460
|
ue(E(Cm), { class: "w-3 h-3 text-neutral-400" }),
|
|
29461
|
-
D("span", G4,
|
|
29461
|
+
D("span", G4, ae(((P = A.robotRole) == null ? void 0 : P.name) || "-"), 1)
|
|
29462
29462
|
]),
|
|
29463
29463
|
D("div", X4, [
|
|
29464
29464
|
ue(E(_m), { class: "w-3 h-3 text-neutral-400" }),
|
|
29465
|
-
D("span", Y4,
|
|
29465
|
+
D("span", Y4, ae(((U = A.channel) == null ? void 0 : U.name) || "-"), 1)
|
|
29466
29466
|
])
|
|
29467
29467
|
])
|
|
29468
29468
|
]),
|
|
@@ -29473,7 +29473,7 @@ const Ze = (e, t) => {
|
|
|
29473
29473
|
class: "px-3 py-1 text-[9px] font-black uppercase tracking-wider"
|
|
29474
29474
|
}, {
|
|
29475
29475
|
default: _e(() => [
|
|
29476
|
-
Ue(
|
|
29476
|
+
Ue(ae(A.healthStatus), 1)
|
|
29477
29477
|
]),
|
|
29478
29478
|
_: 2
|
|
29479
29479
|
}, 1032, ["variant"])
|
|
@@ -29486,14 +29486,14 @@ const Ze = (e, t) => {
|
|
|
29486
29486
|
class: "px-2 py-0.5 text-[9px] font-black uppercase"
|
|
29487
29487
|
}, {
|
|
29488
29488
|
default: _e(() => [
|
|
29489
|
-
Ue(
|
|
29489
|
+
Ue(ae(A.statusProcessing), 1)
|
|
29490
29490
|
]),
|
|
29491
29491
|
_: 2
|
|
29492
29492
|
}, 1032, ["variant"])
|
|
29493
29493
|
]),
|
|
29494
29494
|
D("td", Z4, [
|
|
29495
|
-
D("div", eR,
|
|
29496
|
-
D("div", tR,
|
|
29495
|
+
D("div", eR, ae(((X = A.lastUpdate) == null ? void 0 : X.split(" ")[1]) || "-"), 1),
|
|
29496
|
+
D("div", tR, ae(((oe = A.lastUpdate) == null ? void 0 : oe.split(" ")[0]) || "-"), 1)
|
|
29497
29497
|
])
|
|
29498
29498
|
]);
|
|
29499
29499
|
}), 128))
|
|
@@ -29663,7 +29663,7 @@ const Ze = (e, t) => {
|
|
|
29663
29663
|
D("span", {
|
|
29664
29664
|
class: "text-sm font-mono font-medium truncate block",
|
|
29665
29665
|
title: String(o.value || "")
|
|
29666
|
-
},
|
|
29666
|
+
}, ae(i.value), 9, uR),
|
|
29667
29667
|
D("button", {
|
|
29668
29668
|
type: "button",
|
|
29669
29669
|
class: "p-1 hover:bg-neutral-100 dark:hover:bg-neutral-800 rounded transition-colors text-neutral-500 hover:text-neutral-800 dark:hover:text-neutral-200",
|
|
@@ -29680,20 +29680,20 @@ const Ze = (e, t) => {
|
|
|
29680
29680
|
], 64)) : r.value === "BADGE" ? (b(), M("span", {
|
|
29681
29681
|
key: 1,
|
|
29682
29682
|
class: ve(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-semibold border transition-all duration-200", s.value])
|
|
29683
|
-
},
|
|
29683
|
+
}, ae(i.value), 3)) : r.value === "FILE" && o.value && o.value !== e.placeholder ? (b(), M("a", {
|
|
29684
29684
|
key: 2,
|
|
29685
29685
|
href: String(o.value),
|
|
29686
29686
|
target: "_blank",
|
|
29687
29687
|
class: "inline-flex items-center gap-1.5 text-xs font-semibold text-blue-600 dark:text-blue-400 hover:underline transition-all"
|
|
29688
29688
|
}, [
|
|
29689
29689
|
ue(E(ba), { class: "w-3.5 h-3.5" }),
|
|
29690
|
-
D("span", hR,
|
|
29690
|
+
D("span", hR, ae(i.value), 1),
|
|
29691
29691
|
ue(E(xs), { class: "w-3 h-3 text-neutral-400" })
|
|
29692
29692
|
], 8, fR)) : (b(), M("span", {
|
|
29693
29693
|
key: 3,
|
|
29694
29694
|
class: "text-sm font-medium truncate block",
|
|
29695
29695
|
title: i.value
|
|
29696
|
-
},
|
|
29696
|
+
}, ae(i.value), 9, pR))
|
|
29697
29697
|
], !0)
|
|
29698
29698
|
])
|
|
29699
29699
|
], 64))
|
|
@@ -29863,7 +29863,7 @@ const Ze = (e, t) => {
|
|
|
29863
29863
|
x[0] || (x[0] = D("p", { class: "text-[10px] font-black uppercase tracking-widest text-neutral-400 animate-pulse" }, "Syncing Visual Data...", -1))
|
|
29864
29864
|
])) : a.value ? (b(), M("div", vR, [
|
|
29865
29865
|
ue(E(qi), { class: "h-8 w-8 text-red-500 mb-4 opacity-80" }),
|
|
29866
|
-
D("span", xR,
|
|
29866
|
+
D("span", xR, ae(a.value), 1),
|
|
29867
29867
|
D("button", {
|
|
29868
29868
|
onClick: l,
|
|
29869
29869
|
class: "text-[10px] font-black uppercase underline tracking-wider opacity-60 hover:opacity-100"
|
|
@@ -29872,7 +29872,7 @@ const Ze = (e, t) => {
|
|
|
29872
29872
|
D("div", wR, [
|
|
29873
29873
|
ue(E(Qc), { class: "h-8 w-8 text-neutral-400 dark:text-neutral-500 opacity-60" })
|
|
29874
29874
|
]),
|
|
29875
|
-
D("span", CR,
|
|
29875
|
+
D("span", CR, ae(E(t)("common.noData")), 1),
|
|
29876
29876
|
x[1] || (x[1] = D("p", { class: "text-[10px] text-neutral-400 dark:text-neutral-500 mt-1 uppercase tracking-widest font-medium" }, "No visual records found", -1))
|
|
29877
29877
|
])) : (b(), M("div", _R, [
|
|
29878
29878
|
(b(!0), M(Pe, null, Ge(d.value, (C, $) => (b(), M("div", {
|
|
@@ -29882,21 +29882,21 @@ const Ze = (e, t) => {
|
|
|
29882
29882
|
ue(xo, null, {
|
|
29883
29883
|
header: _e(() => [
|
|
29884
29884
|
D("h4", AR, [
|
|
29885
|
-
Ue(
|
|
29886
|
-
C.noRef ? (b(), M("span", SR,
|
|
29885
|
+
Ue(ae(C.name) + " ", 1),
|
|
29886
|
+
C.noRef ? (b(), M("span", SR, ae(C.noRef), 1)) : ne("", !0)
|
|
29887
29887
|
])
|
|
29888
29888
|
]),
|
|
29889
29889
|
actions: _e(() => [
|
|
29890
29890
|
D("div", DR, [
|
|
29891
29891
|
D("span", ER, [
|
|
29892
29892
|
ue(E(kl), { class: "w-3.5 h-3.5" }),
|
|
29893
|
-
Ue(" " +
|
|
29893
|
+
Ue(" " + ae(y(C.startTime)), 1)
|
|
29894
29894
|
]),
|
|
29895
29895
|
D("span", MR, [
|
|
29896
29896
|
ue(E(ss), { class: "w-3.5 h-3.5" }),
|
|
29897
|
-
Ue(" " +
|
|
29897
|
+
Ue(" " + ae(g(C.startTime)) + " - " + ae(g(C.endTime)), 1)
|
|
29898
29898
|
]),
|
|
29899
|
-
D("span", TR,
|
|
29899
|
+
D("span", TR, ae(m(C.duration)), 1)
|
|
29900
29900
|
])
|
|
29901
29901
|
]),
|
|
29902
29902
|
default: _e(() => [
|
|
@@ -29939,7 +29939,7 @@ const Ze = (e, t) => {
|
|
|
29939
29939
|
x[4] || (x[4] = D("p", { class: "text-[10px] font-black uppercase tracking-widest text-neutral-400 animate-pulse" }, "Syncing Visual Data...", -1))
|
|
29940
29940
|
])) : a.value ? (b(), M("div", jR, [
|
|
29941
29941
|
ue(E(qi), { class: "h-8 w-8 text-red-500 mb-4 opacity-80" }),
|
|
29942
|
-
D("span", UR,
|
|
29942
|
+
D("span", UR, ae(a.value), 1),
|
|
29943
29943
|
D("button", {
|
|
29944
29944
|
onClick: l,
|
|
29945
29945
|
class: "text-[10px] font-black uppercase underline tracking-wider opacity-60 hover:opacity-100"
|
|
@@ -29948,7 +29948,7 @@ const Ze = (e, t) => {
|
|
|
29948
29948
|
D("div", WR, [
|
|
29949
29949
|
ue(E(Qc), { class: "h-8 w-8 text-neutral-400 dark:text-neutral-500 opacity-60" })
|
|
29950
29950
|
]),
|
|
29951
|
-
D("span", HR,
|
|
29951
|
+
D("span", HR, ae(E(t)("common.noData")), 1),
|
|
29952
29952
|
x[5] || (x[5] = D("p", { class: "text-[10px] text-neutral-400 dark:text-neutral-500 mt-1 uppercase tracking-widest font-medium" }, "No visual records found", -1))
|
|
29953
29953
|
])) : (b(), M("div", {
|
|
29954
29954
|
key: 3,
|
|
@@ -29977,15 +29977,15 @@ const Ze = (e, t) => {
|
|
|
29977
29977
|
D("div", qR, [
|
|
29978
29978
|
D("div", GR, [
|
|
29979
29979
|
x[6] || (x[6] = D("span", { class: "w-12 shrink-0 text-neutral-500 font-medium tracking-tight" }, "Name", -1)),
|
|
29980
|
-
D("span", XR,
|
|
29980
|
+
D("span", XR, ae(((I = C.src) == null ? void 0 : I.split("/").pop()) || "Untitled"), 1)
|
|
29981
29981
|
]),
|
|
29982
29982
|
C.label ? (b(), M("div", YR, [
|
|
29983
29983
|
x[7] || (x[7] = D("span", { class: "w-12 shrink-0 text-neutral-500 font-medium tracking-tight" }, "Label", -1)),
|
|
29984
|
-
D("span", JR,
|
|
29984
|
+
D("span", JR, ae(C.label), 1)
|
|
29985
29985
|
])) : ne("", !0),
|
|
29986
29986
|
e.label ? (b(), M("div", QR, [
|
|
29987
29987
|
x[8] || (x[8] = D("span", { class: "w-12 shrink-0 text-neutral-500 font-medium tracking-tight" }, "Gallery", -1)),
|
|
29988
|
-
D("span", ZR,
|
|
29988
|
+
D("span", ZR, ae(e.label), 1)
|
|
29989
29989
|
])) : ne("", !0)
|
|
29990
29990
|
])
|
|
29991
29991
|
])
|
|
@@ -30102,8 +30102,8 @@ const Ze = (e, t) => {
|
|
|
30102
30102
|
D("div", rO, [
|
|
30103
30103
|
ue(E(qi), { class: "h-10 w-10 mx-auto mb-3 opacity-80" }),
|
|
30104
30104
|
h[2] || (h[2] = D("h4", { class: "text-base font-bold mb-2" }, "Error", -1)),
|
|
30105
|
-
D("p", aO,
|
|
30106
|
-
ue(
|
|
30105
|
+
D("p", aO, ae(a.value), 1),
|
|
30106
|
+
ue(Tt, {
|
|
30107
30107
|
variant: "outline",
|
|
30108
30108
|
size: "sm",
|
|
30109
30109
|
class: "mt-4 mx-auto border-red-200 dark:border-red-800 hover:bg-red-100 dark:hover:bg-red-900/50",
|
|
@@ -30127,7 +30127,7 @@ const Ze = (e, t) => {
|
|
|
30127
30127
|
key: 1,
|
|
30128
30128
|
innerHTML: s.value,
|
|
30129
30129
|
class: "svg-viewer w-full h-full flex items-center justify-center"
|
|
30130
|
-
}, null, 8, cO)) : s.value ? (b(), M("div", dO,
|
|
30130
|
+
}, null, 8, cO)) : s.value ? (b(), M("div", dO, ae(s.value), 1)) : (b(), M("div", uO, " No diagram data available "))
|
|
30131
30131
|
])
|
|
30132
30132
|
]))
|
|
30133
30133
|
])
|
|
@@ -30274,7 +30274,7 @@ const Ze = (e, t) => {
|
|
|
30274
30274
|
D("div", gO, [
|
|
30275
30275
|
ue(E(ba), { class: "h-4 w-4" })
|
|
30276
30276
|
]),
|
|
30277
|
-
D("span", mO,
|
|
30277
|
+
D("span", mO, ae(e.label), 1)
|
|
30278
30278
|
]),
|
|
30279
30279
|
D("div", bO, [
|
|
30280
30280
|
D("button", {
|
|
@@ -30325,7 +30325,7 @@ const Ze = (e, t) => {
|
|
|
30325
30325
|
ue(E(ed), { class: "h-10 w-10 text-amber-500 dark:text-amber-400" })
|
|
30326
30326
|
]),
|
|
30327
30327
|
D("div", CO, [
|
|
30328
|
-
D("h3", _O,
|
|
30328
|
+
D("h3", _O, ae(r.value ? "Keamanan Browser Memblokir" : "Gagal Memuat PDF"), 1),
|
|
30329
30329
|
D("p", AO, [
|
|
30330
30330
|
r.value ? (b(), M(Pe, { key: 0 }, [
|
|
30331
30331
|
Ue(" Dokumen ini berasal dari sumber yang tidak aman (HTTP) dan diblokir oleh browser (HTTPS). Silakan buka di tab baru atau unduh file untuk melihatnya. ")
|
|
@@ -30430,7 +30430,7 @@ const Ze = (e, t) => {
|
|
|
30430
30430
|
DCodeImageField: lc,
|
|
30431
30431
|
DCodeSlider: dc,
|
|
30432
30432
|
DCodeRadio: jp,
|
|
30433
|
-
DCodeButton:
|
|
30433
|
+
DCodeButton: Tt,
|
|
30434
30434
|
DCodeRadioCustom: Up,
|
|
30435
30435
|
DCodeDynamicUploadList: Ip,
|
|
30436
30436
|
DCodeMultiSelect: zp,
|
|
@@ -30586,7 +30586,7 @@ const Ze = (e, t) => {
|
|
|
30586
30586
|
name: e.field.model
|
|
30587
30587
|
}, null, 8, OO)
|
|
30588
30588
|
])) : e.viewOnly ? (b(), M("div", PO, [
|
|
30589
|
-
D("span", LO,
|
|
30589
|
+
D("span", LO, ae(d.value), 1),
|
|
30590
30590
|
l.value ? (b(), M(Pe, { key: 0 }, [
|
|
30591
30591
|
u.value ? (b(), M("img", {
|
|
30592
30592
|
key: 0,
|
|
@@ -30600,11 +30600,11 @@ const Ze = (e, t) => {
|
|
|
30600
30600
|
"inline-flex items-center gap-1 text-sm font-medium",
|
|
30601
30601
|
u.value ? "text-green-600 dark:text-green-400" : "text-neutral-400"
|
|
30602
30602
|
])
|
|
30603
|
-
},
|
|
30603
|
+
}, ae(u.value ? "✓ Ya" : "✗ Tidak"), 3)) : (b(), M("span", FO, ae(u.value || "-"), 1))
|
|
30604
30604
|
])) : i.value ? (b(), Me(Dt(i.value), st({ key: 2 }, g.value, {
|
|
30605
30605
|
"model-value": a.value,
|
|
30606
30606
|
"onUpdate:modelValue": y
|
|
30607
|
-
}), null, 16, ["model-value"])) : (b(), M("div", BO, " Unknown field: " +
|
|
30607
|
+
}), null, 16, ["model-value"])) : (b(), M("div", BO, " Unknown field: " + ae(e.field.component), 1));
|
|
30608
30608
|
}
|
|
30609
30609
|
}), NO = /* @__PURE__ */ Le({
|
|
30610
30610
|
__name: "Input",
|
|
@@ -32527,13 +32527,13 @@ function vl({
|
|
|
32527
32527
|
} : B;
|
|
32528
32528
|
const q = N.itemValue || "code", Y = F.find(
|
|
32529
32529
|
(G) => String(G[q]) === String(B) || String(G.code) === String(B) || String(G.id) === String(B)
|
|
32530
|
-
),
|
|
32530
|
+
), ie = ["DCodeAutoComplete", "DCodeSelect", "DCodeRadio", "DCodeRadioCustom"].includes(V.component) || !!(N.endpoint || N.endpointReference || N.items);
|
|
32531
32531
|
return Y ? {
|
|
32532
32532
|
...Y,
|
|
32533
32533
|
id: Y.id ?? Y[q] ?? B,
|
|
32534
32534
|
code: Y.code ?? Y[q] ?? B,
|
|
32535
32535
|
_isLogicValue: !0
|
|
32536
|
-
} :
|
|
32536
|
+
} : ie ? {
|
|
32537
32537
|
id: (T == null ? void 0 : T.id) ?? B,
|
|
32538
32538
|
code: (T == null ? void 0 : T.code) ?? B,
|
|
32539
32539
|
value: (T == null ? void 0 : T.value) ?? B,
|
|
@@ -32542,16 +32542,16 @@ function vl({
|
|
|
32542
32542
|
} : B;
|
|
32543
32543
|
}, u = (O, B, j = "LOGIC") => {
|
|
32544
32544
|
const T = (V, N) => {
|
|
32545
|
-
var q, Y,
|
|
32545
|
+
var q, Y, ie, J, fe, pe, W, G, Z, he, Te, re;
|
|
32546
32546
|
if (V == null || typeof V == "object" && V._isLogicValue || typeof V == "boolean" || ((Ce) => {
|
|
32547
32547
|
var we;
|
|
32548
32548
|
return !Ce || typeof Ce != "object" ? !1 : Ce instanceof File || Ce instanceof Blob || ((we = Ce.constructor) == null ? void 0 : we.name) === "File" || Ce.size !== void 0 && typeof Ce.name == "string";
|
|
32549
32549
|
})(V)) return V;
|
|
32550
32550
|
if (typeof V == "number" || typeof V == "string")
|
|
32551
|
-
return N && (((Y = (q = n.value) == null ? void 0 : q.paths) == null ? void 0 : Y.has(N)) || ((J = (
|
|
32551
|
+
return N && (((Y = (q = n.value) == null ? void 0 : q.paths) == null ? void 0 : Y.has(N)) || ((J = (ie = n.value) == null ? void 0 : ie.models) == null ? void 0 : J.has(N))) ? d(N, V) : V;
|
|
32552
32552
|
if (typeof V == "object" && !Array.isArray(V)) {
|
|
32553
32553
|
const Ce = N ? ((pe = (fe = n.value) == null ? void 0 : fe.paths) == null ? void 0 : pe.get(N)) || ((Z = (G = (W = n.value) == null ? void 0 : W.models) == null ? void 0 : G.get(N)) == null ? void 0 : Z[0]) : null, we = Ce == null ? void 0 : Ce.field;
|
|
32554
|
-
if (we && (["DCodeAutoComplete", "DCodeSelect", "DCodeRadio", "DCodeRadioCustom"].includes(we.component) || !!((he = we.props) != null && he.endpoint || (Te = we.props) != null && Te.endpointReference || (
|
|
32554
|
+
if (we && (["DCodeAutoComplete", "DCodeSelect", "DCodeRadio", "DCodeRadioCustom"].includes(we.component) || !!((he = we.props) != null && he.endpoint || (Te = we.props) != null && Te.endpointReference || (re = we.props) != null && re.items))) {
|
|
32555
32555
|
const Se = (V == null ? void 0 : V.id) ?? (V == null ? void 0 : V.code) ?? (V == null ? void 0 : V.value) ?? (V == null ? void 0 : V.key) ?? V, Ee = typeof Se == "string" || typeof Se == "number" ? d(N, Se, we, V) : Se;
|
|
32556
32556
|
if (Ee && typeof Ee == "object")
|
|
32557
32557
|
return { ...V, ...Ee, _isLogicValue: !0 };
|
|
@@ -32613,8 +32613,8 @@ function vl({
|
|
|
32613
32613
|
}
|
|
32614
32614
|
if (De !== void 0) return De;
|
|
32615
32615
|
}
|
|
32616
|
-
const
|
|
32617
|
-
if (
|
|
32616
|
+
const re = O[Z];
|
|
32617
|
+
if (re !== void 0) return re;
|
|
32618
32618
|
};
|
|
32619
32619
|
const F = B ? `${B}.${N}` : N;
|
|
32620
32620
|
j !== "VISIBILITY-SILENT" && !N.startsWith("__v_") && N !== "_isNormalizedProxy" && console.log(`[Proxy][GET] ${F} (Target: ${B || "ROOT"}, Debug: ${j})`);
|
|
@@ -32629,15 +32629,15 @@ function vl({
|
|
|
32629
32629
|
if (Array.isArray(Y) && Y.length > 0) {
|
|
32630
32630
|
const G = B != null && B.includes(".") ? B.split(".").slice(0, -1).join(".") : B;
|
|
32631
32631
|
if (G) {
|
|
32632
|
-
const Te = Y.find((
|
|
32632
|
+
const Te = Y.find((re) => {
|
|
32633
32633
|
var Ce;
|
|
32634
|
-
return (Ce =
|
|
32634
|
+
return (Ce = re == null ? void 0 : re.path) == null ? void 0 : Ce.startsWith(`${G}.`);
|
|
32635
32635
|
});
|
|
32636
32636
|
if (Te) {
|
|
32637
|
-
const
|
|
32638
|
-
if (
|
|
32639
|
-
return u(
|
|
32640
|
-
if (
|
|
32637
|
+
const re = Ze(e, Te.path);
|
|
32638
|
+
if (re && typeof re == "object" && !Array.isArray(re) && !re._isLogicValue && !re._isNormalizedProxy)
|
|
32639
|
+
return u(re, F, j);
|
|
32640
|
+
if (re !== void 0) return T(re, N);
|
|
32641
32641
|
}
|
|
32642
32642
|
}
|
|
32643
32643
|
const Z = Y[0], he = Ze(e, Z.path);
|
|
@@ -32645,19 +32645,19 @@ function vl({
|
|
|
32645
32645
|
return u(he, F, j);
|
|
32646
32646
|
if (he !== void 0) return T(he, N);
|
|
32647
32647
|
}
|
|
32648
|
-
let
|
|
32649
|
-
if (
|
|
32648
|
+
let ie = V[N];
|
|
32649
|
+
if (ie === void 0 && s && typeof N == "string" && (ie = s[N], ie === void 0 && N.includes(".") && (ie = Ze(s, N))), ie === void 0 && typeof N == "string") {
|
|
32650
32650
|
const G = Object.keys(V).some((Z) => Z.startsWith(`${N}.`));
|
|
32651
32651
|
if (!G && s && Object.keys(s).some((he) => he.startsWith(`${N}.`)))
|
|
32652
32652
|
return u(s, F, j);
|
|
32653
32653
|
if (G)
|
|
32654
32654
|
return u(V, F, j);
|
|
32655
32655
|
}
|
|
32656
|
-
if ((N === "id" || N === "code") &&
|
|
32656
|
+
if ((N === "id" || N === "code") && ie === void 0) {
|
|
32657
32657
|
const Z = V[N === "id" ? "code" : "id"];
|
|
32658
|
-
Z !== void 0 && (
|
|
32658
|
+
Z !== void 0 && (ie = Z);
|
|
32659
32659
|
}
|
|
32660
|
-
return
|
|
32660
|
+
return ie && typeof ie == "object" && !Array.isArray(ie) && !ie._isLogicValue && !ie._isNormalizedProxy ? u(ie, F, j) : T(ie, F);
|
|
32661
32661
|
}
|
|
32662
32662
|
});
|
|
32663
32663
|
}, f = ce(/* @__PURE__ */ new Set());
|
|
@@ -32678,9 +32678,9 @@ function vl({
|
|
|
32678
32678
|
var fe, pe;
|
|
32679
32679
|
if (!q || typeof q != "object") return q;
|
|
32680
32680
|
if (Array.isArray(q)) return q.map(N);
|
|
32681
|
-
const Y = Object.keys(q)[0],
|
|
32682
|
-
if (["==", "!=", "in", "!==", "==="].includes(Y) && Array.isArray(
|
|
32683
|
-
let W =
|
|
32681
|
+
const Y = Object.keys(q)[0], ie = q[Y];
|
|
32682
|
+
if (["==", "!=", "in", "!==", "==="].includes(Y) && Array.isArray(ie) && ie.length === 2) {
|
|
32683
|
+
let W = ie[0], G = ie[1];
|
|
32684
32684
|
if ((fe = W == null ? void 0 : W.var) != null && fe.endsWith(".id") && typeof G == "string" && isNaN(Number(G))) {
|
|
32685
32685
|
const Z = W.var.replace(/\.id$/, ".code");
|
|
32686
32686
|
return { [Y]: [{ var: Z }, G] };
|
|
@@ -32759,12 +32759,12 @@ function vl({
|
|
|
32759
32759
|
const j = O.propsForm || O.propsFormStep || O.propsTable || O.propsTableStep || O.propsDataTableWizard || O.propsWizard || O.props || {}, T = (q = O.logic || j.logic) == null ? void 0 : q.visibleRule, V = B ? u(B) : c.value;
|
|
32760
32760
|
if (T != null) {
|
|
32761
32761
|
const Y = g(T, V, "VISIBLE-SEC");
|
|
32762
|
-
let
|
|
32763
|
-
if (Y === null ?
|
|
32762
|
+
let ie = !0;
|
|
32763
|
+
if (Y === null ? ie = !0 : typeof Y == "object" ? ie = !!p(Y, V, "VISIBLE-SEC") : ie = !!Y, i) {
|
|
32764
32764
|
const J = dt(O);
|
|
32765
32765
|
if (J && i[J]) return !0;
|
|
32766
32766
|
}
|
|
32767
|
-
return
|
|
32767
|
+
return ie;
|
|
32768
32768
|
}
|
|
32769
32769
|
const N = dt(O);
|
|
32770
32770
|
if (N && f.value.has(N))
|
|
@@ -32819,8 +32819,8 @@ function vl({
|
|
|
32819
32819
|
return q;
|
|
32820
32820
|
if (!F.values)
|
|
32821
32821
|
return V;
|
|
32822
|
-
const Y = new Set((F.values || []).map(String)),
|
|
32823
|
-
return V.filter((pe) => pe == null ? !1 : typeof pe != "object" ? Y.has(String(pe)) : [
|
|
32822
|
+
const Y = new Set((F.values || []).map(String)), ie = T.itemValue || "id";
|
|
32823
|
+
return V.filter((pe) => pe == null ? !1 : typeof pe != "object" ? Y.has(String(pe)) : [ie, "code", "id", "value", "key"].some((W) => {
|
|
32824
32824
|
const G = pe[W];
|
|
32825
32825
|
return G != null && Y.has(String(G));
|
|
32826
32826
|
}));
|
|
@@ -32828,7 +32828,7 @@ function vl({
|
|
|
32828
32828
|
function L(O) {
|
|
32829
32829
|
var j;
|
|
32830
32830
|
return (((j = O.propsWizard) == null ? void 0 : j.propsSteps) || []).filter((T) => I(T)).map((T, V) => {
|
|
32831
|
-
var
|
|
32831
|
+
var ie, J, fe;
|
|
32832
32832
|
const N = T.sectionsWizard || T.sections || [], q = (Array.isArray(N) ? N : [N]).map((pe) => {
|
|
32833
32833
|
var G;
|
|
32834
32834
|
let W = (G = pe.type) == null ? void 0 : G.toUpperCase();
|
|
@@ -32840,7 +32840,7 @@ function vl({
|
|
|
32840
32840
|
description: Y.description,
|
|
32841
32841
|
icon: T.icon || void 0,
|
|
32842
32842
|
sections: q,
|
|
32843
|
-
actions: ((
|
|
32843
|
+
actions: ((ie = T.propsComponent) == null ? void 0 : ie.actionComponent) || T.actionComponent || [],
|
|
32844
32844
|
isSubmit: T.isSubmit || !1,
|
|
32845
32845
|
endpointActionStepNext: T.endpointActionStepNext,
|
|
32846
32846
|
endpointActionStepPrev: T.endpointActionStepPrev,
|
|
@@ -32865,8 +32865,8 @@ function vl({
|
|
|
32865
32865
|
).forEach((G) => {
|
|
32866
32866
|
const Z = pe.logic[G], he = Object.keys(Z)[0];
|
|
32867
32867
|
if (!he) return;
|
|
32868
|
-
const Te = q ? `${q}.${he}` : he,
|
|
32869
|
-
|
|
32868
|
+
const Te = q ? `${q}.${he}` : he, re = p(Z[he], e, `CALC-${he}`, Te), Ce = Ze(e, Te);
|
|
32869
|
+
re !== void 0 && Ce !== re && (mt(e, Te, re), j = !0);
|
|
32870
32870
|
});
|
|
32871
32871
|
}), ((J = N.type) == null ? void 0 : J.toUpperCase()) === "WIZARD" && (((fe = N.propsWizard) == null ? void 0 : fe.propsSteps) || []).forEach((W) => {
|
|
32872
32872
|
const G = W.key || W.id, Z = W.sectionsWizard || W.sections || [];
|
|
@@ -32900,13 +32900,13 @@ function vl({
|
|
|
32900
32900
|
function T(V) {
|
|
32901
32901
|
V.forEach((N) => {
|
|
32902
32902
|
var Y;
|
|
32903
|
-
((N.propsForm || N.propsFormStep || N.propsTable || N.propsTableStep || N.props || {}).fields || N.fields || []).forEach((
|
|
32903
|
+
((N.propsForm || N.propsFormStep || N.propsTable || N.propsTableStep || N.props || {}).fields || N.fields || []).forEach((ie) => {
|
|
32904
32904
|
var fe, pe;
|
|
32905
|
-
(Array.isArray((fe =
|
|
32905
|
+
(Array.isArray((fe = ie.logic) == null ? void 0 : fe.fetchRule) ? ie.logic.fetchRule : [(pe = ie.logic) == null ? void 0 : pe.fetchRule].filter(Boolean)).forEach((W) => {
|
|
32906
32906
|
Array.isArray(W.revealSections) && W.revealSections.forEach((G) => B.add(G));
|
|
32907
32907
|
});
|
|
32908
|
-
}), N.type === "WIZARD" && ((Y = N.propsWizard) != null && Y.propsSteps) && N.propsWizard.propsSteps.forEach((
|
|
32909
|
-
Array.isArray(
|
|
32908
|
+
}), N.type === "WIZARD" && ((Y = N.propsWizard) != null && Y.propsSteps) && N.propsWizard.propsSteps.forEach((ie) => {
|
|
32909
|
+
Array.isArray(ie.sectionsWizard) ? T(ie.sectionsWizard) : ie.sectionsWizard && T([ie.sectionsWizard]);
|
|
32910
32910
|
});
|
|
32911
32911
|
});
|
|
32912
32912
|
}
|
|
@@ -33030,8 +33030,8 @@ function vl({
|
|
|
33030
33030
|
default:
|
|
33031
33031
|
F = 1;
|
|
33032
33032
|
}
|
|
33033
|
-
const
|
|
33034
|
-
return V === 1 ? "col-span-1" : `col-span-1 ${j[
|
|
33033
|
+
const ie = Math.min(V, F);
|
|
33034
|
+
return V === 1 ? "col-span-1" : `col-span-1 ${j[ie] || "md:col-span-1"}`;
|
|
33035
33035
|
}
|
|
33036
33036
|
};
|
|
33037
33037
|
}
|
|
@@ -33139,15 +33139,15 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33139
33139
|
var k;
|
|
33140
33140
|
return p ? typeof p.isConnected == "function" ? p.isConnected() : typeof p.isConnected == "boolean" ? p.isConnected : ((k = p.isConnected) == null ? void 0 : k.value) !== void 0 ? p.isConnected.value : !0 : (i && (i.tableRowFormData || (i.tableRowFormData = kt({}))), !1);
|
|
33141
33141
|
}), C = bt("hasActionAccess", void 0), $ = bt("userPermissions", null), I = bt("baseUrl", ""), _ = H(() => {
|
|
33142
|
-
var
|
|
33142
|
+
var se, de, ke;
|
|
33143
33143
|
const k = o.selectedTokenCore || (i == null ? void 0 : i.selectedTokenCore);
|
|
33144
33144
|
if (typeof (k == null ? void 0 : k.address) == "string") return k.address;
|
|
33145
33145
|
if (typeof o.baseUrl == "string" && o.baseUrl !== "") return o.baseUrl;
|
|
33146
33146
|
const z = i == null ? void 0 : i.resolvedBaseUrl, ee = typeof z == "object" && z !== null && "value" in z ? z.value : z;
|
|
33147
33147
|
if (typeof ee == "string" && ee !== "") return ee;
|
|
33148
|
-
const Q = o.tokenCores && o.tokenCores.length > 0 ? o.tokenCores : (i == null ? void 0 : i.tokenCores) || [], te = ((
|
|
33148
|
+
const Q = o.tokenCores && o.tokenCores.length > 0 ? o.tokenCores : (i == null ? void 0 : i.tokenCores) || [], te = ((se = Z.value) == null ? void 0 : se.idTokenCore) || ((de = o.tableConfig) == null ? void 0 : de.idTokenCore);
|
|
33149
33149
|
if (te && Array.isArray(Q) && Q.length > 0) {
|
|
33150
|
-
const Ie = String(te), Qe = Q.find((
|
|
33150
|
+
const Ie = String(te), Qe = Q.find((tt) => String(tt.id) === Ie);
|
|
33151
33151
|
if (Qe != null && Qe.address) return Qe.address;
|
|
33152
33152
|
}
|
|
33153
33153
|
return I || ((ke = window.CONFIG) == null ? void 0 : ke.apiUrl) || "";
|
|
@@ -33174,10 +33174,10 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33174
33174
|
const R = ce(""), L = ce(o.page || 1), P = ce(o.perPage), U = ce({
|
|
33175
33175
|
key: "",
|
|
33176
33176
|
direction: "asc"
|
|
33177
|
-
}), X = ce([]), oe = ce(!1), K = ce(0), S = ce(null), O = ce(!0), B = ce(!0), j = ce(!0), T = ce([]), V = ce([]), N = ce(!1), F = ce(!1), q = ce(!1), Y = ce(null),
|
|
33177
|
+
}), X = ce([]), oe = ce(!1), K = ce(0), S = ce(null), O = ce(!0), B = ce(!0), j = ce(!0), T = ce([]), V = ce([]), N = ce(!1), F = ce(!1), q = ce(!1), Y = ce(null), ie = ce(o.filters ? { ...o.filters } : {});
|
|
33178
33178
|
$e(() => o.filters, (k) => {
|
|
33179
|
-
k && (
|
|
33180
|
-
}, { deep: !0 }), $e(
|
|
33179
|
+
k && (ie.value = { ...k });
|
|
33180
|
+
}, { deep: !0 }), $e(ie, (k) => {
|
|
33181
33181
|
r("update:filters", k);
|
|
33182
33182
|
}, { deep: !0 });
|
|
33183
33183
|
const J = ce([]), fe = H(() => !J.value || J.value.length === 0 ? [] : [...J.value].sort((k, z) => (k.seq || 0) - (z.seq || 0))), pe = (k) => {
|
|
@@ -33192,8 +33192,8 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33192
33192
|
const ke = z.models.get(te.model) || [];
|
|
33193
33193
|
ke.push(de), z.models.set(te.model, ke);
|
|
33194
33194
|
}
|
|
33195
|
-
const
|
|
33196
|
-
Array.isArray(
|
|
33195
|
+
const se = te.fields || te.props && te.props.fields;
|
|
33196
|
+
Array.isArray(se) && ee(se);
|
|
33197
33197
|
});
|
|
33198
33198
|
};
|
|
33199
33199
|
return ee(k), z;
|
|
@@ -33203,7 +33203,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33203
33203
|
fields: fe.value
|
|
33204
33204
|
}
|
|
33205
33205
|
]
|
|
33206
|
-
})), Z = ce(null), he = ce(null), Te = ce(null),
|
|
33206
|
+
})), Z = ce(null), he = ce(null), Te = ce(null), re = kt({}), Ce = kt({}), we = kt({}), me = H(() => {
|
|
33207
33207
|
var Oe, We, je, ot;
|
|
33208
33208
|
if (!Z.value) return !1;
|
|
33209
33209
|
const k = Z.value, z = k.isViewOnly ?? ((Oe = k.propsActionGlobal) == null ? void 0 : Oe.isViewOnly) ?? ((We = k.propsActionCustom) == null ? void 0 : We.isViewOnly);
|
|
@@ -33234,16 +33234,16 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33234
33234
|
"EXECUTE"
|
|
33235
33235
|
].includes(Q)) return !1;
|
|
33236
33236
|
const de = (k.key || k.action || "").toLowerCase(), ke = ee === "VIEW" || ee === "READ" || ee === "DETAIL", Ie = Q === "READ" || Q === "VIEW" || Q === "DETAIL", Qe = de === "detail" || de === "view" || de === "read" || de === "show" || de.startsWith("view_");
|
|
33237
|
-
let
|
|
33238
|
-
if (!
|
|
33239
|
-
const
|
|
33237
|
+
let tt = ke || Ie || Qe;
|
|
33238
|
+
if (!tt && Se.value && Se.value.length > 0) {
|
|
33239
|
+
const nt = ["DCodePdfViewer", "DCodeWorkflowDiagram"];
|
|
33240
33240
|
Se.value.every(
|
|
33241
|
-
(gt) =>
|
|
33242
|
-
) && (
|
|
33241
|
+
(gt) => nt.includes(gt.component)
|
|
33242
|
+
) && (tt = !0);
|
|
33243
33243
|
}
|
|
33244
|
-
return
|
|
33244
|
+
return tt;
|
|
33245
33245
|
});
|
|
33246
|
-
$e(
|
|
33246
|
+
$e(re, (k) => {
|
|
33247
33247
|
i != null && i.tableRowFormData && Object.keys(k).forEach((z) => {
|
|
33248
33248
|
i.tableRowFormData[z] = k[z];
|
|
33249
33249
|
});
|
|
@@ -33286,7 +33286,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33286
33286
|
resolveSectionGridClass: lt,
|
|
33287
33287
|
resolveFieldColumnClass: Et
|
|
33288
33288
|
} = vl({
|
|
33289
|
-
formData:
|
|
33289
|
+
formData: re,
|
|
33290
33290
|
errors: Ce,
|
|
33291
33291
|
fieldMap: Ee,
|
|
33292
33292
|
rawItemsCache: we,
|
|
@@ -33302,7 +33302,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33302
33302
|
getFilteredItems: bc,
|
|
33303
33303
|
resolveFieldColumnClass: yc
|
|
33304
33304
|
} = vl({
|
|
33305
|
-
formData:
|
|
33305
|
+
formData: ie,
|
|
33306
33306
|
errors: {},
|
|
33307
33307
|
fieldMap: W,
|
|
33308
33308
|
rawItemsCache: {},
|
|
@@ -33311,11 +33311,11 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33311
33311
|
}), vc = H(() => {
|
|
33312
33312
|
if (Do.value || J.value.some((ee) => {
|
|
33313
33313
|
if (!Zt(ee)) return !1;
|
|
33314
|
-
const Q =
|
|
33314
|
+
const Q = ie.value[ee.model], te = ii(ee);
|
|
33315
33315
|
return !!(Jo(ee) && (Q == null || Q === "") || Q && (te == null ? void 0 : te.minLength) !== void 0 && String(Q).length < Number(te.minLength));
|
|
33316
33316
|
})) return !0;
|
|
33317
33317
|
const z = J.value.filter((ee) => Zt(ee));
|
|
33318
|
-
return !!(z.length > 0 && z.every((Q) => !
|
|
33318
|
+
return !!(z.length > 0 && z.every((Q) => !ie.value[Q.model]));
|
|
33319
33319
|
}), ro = ce([]), xc = H(() => {
|
|
33320
33320
|
var ee, Q, te;
|
|
33321
33321
|
if (!((ee = Z.value) != null && ee.dialogConfig)) return ((Q = Z.value) == null ? void 0 : Q.label) || u("common.actions");
|
|
@@ -33327,13 +33327,13 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33327
33327
|
const k = Z.value.dialogConfig;
|
|
33328
33328
|
return c.value === "kr" || c.value === "ko" ? k.descriptionKR || k.descriptionEN : c.value === "id" ? k.descriptionID : k.descriptionEN;
|
|
33329
33329
|
}), wc = H(() => {
|
|
33330
|
-
var Q, te,
|
|
33330
|
+
var Q, te, se, de, ke;
|
|
33331
33331
|
if ((Se.value || []).some(
|
|
33332
33332
|
(Ie) => Ie.component === "DCodePdfViewer" || Ie.component === "DCodeWorkflowDiagram"
|
|
33333
33333
|
)) return "95vw";
|
|
33334
33334
|
if (!((Q = Z.value) != null && Q.dialogConfig) && !((te = Z.value) != null && te.openDialog)) return 450;
|
|
33335
33335
|
const ee = String(
|
|
33336
|
-
((de = (
|
|
33336
|
+
((de = (se = Z.value) == null ? void 0 : se.dialogConfig) == null ? void 0 : de.layoutColumns) || ((ke = Z.value) == null ? void 0 : ke.layoutColumns) || "1"
|
|
33337
33337
|
).toUpperCase();
|
|
33338
33338
|
return ee === "FULL" || ee === "1" || ee === "ONE" ? 450 : 800;
|
|
33339
33339
|
}), So = async (k, z = !1) => {
|
|
@@ -33365,31 +33365,31 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33365
33365
|
const Qe = Gn(ke.apiUrl, Ie);
|
|
33366
33366
|
console.log(`[prefetchDialogFieldItems][FETCHING] ${de}.
|
|
33367
33367
|
BaseUrl: ${Ie || "NONE"}, Final: ${Qe}`);
|
|
33368
|
-
const
|
|
33368
|
+
const tt = {
|
|
33369
33369
|
page: 1,
|
|
33370
33370
|
perPage: 100
|
|
33371
33371
|
};
|
|
33372
33372
|
if (Array.isArray(ke.keyParam)) {
|
|
33373
|
-
let
|
|
33374
|
-
if (ke.keyParam.forEach((
|
|
33373
|
+
let nt = !1;
|
|
33374
|
+
if (ke.keyParam.forEach((Pt) => {
|
|
33375
33375
|
let gt = "", Vt = "";
|
|
33376
|
-
if (typeof
|
|
33377
|
-
gt =
|
|
33378
|
-
else if (typeof
|
|
33379
|
-
const Ye = Object.entries(
|
|
33376
|
+
if (typeof Pt == "string")
|
|
33377
|
+
gt = Pt, Vt = Pt;
|
|
33378
|
+
else if (typeof Pt == "object" && Pt !== null) {
|
|
33379
|
+
const Ye = Object.entries(Pt)[0];
|
|
33380
33380
|
Ye && (gt = Ye[0], Vt = Ye[1]);
|
|
33381
33381
|
}
|
|
33382
33382
|
if (!gt || !Vt) return;
|
|
33383
|
-
const rt = ze(
|
|
33384
|
-
rt == null || rt === "" ?
|
|
33385
|
-
}),
|
|
33383
|
+
const rt = ze(re)[Vt];
|
|
33384
|
+
rt == null || rt === "" ? nt = !0 : tt[gt] = rt && typeof rt == "object" ? rt.id ?? rt.code ?? rt.value ?? rt : rt;
|
|
33385
|
+
}), nt) {
|
|
33386
33386
|
we[de] = [];
|
|
33387
33387
|
return;
|
|
33388
33388
|
}
|
|
33389
33389
|
}
|
|
33390
33390
|
const Oe = { ...ke.config || {} };
|
|
33391
33391
|
ke.accept && (Oe.headers || (Oe.headers = {}), Oe.headers.Accept = ke.accept, Oe.headers.accept = ke.accept);
|
|
33392
|
-
const We = await l(Qe, ke.apiMethod || "GET",
|
|
33392
|
+
const We = await l(Qe, ke.apiMethod || "GET", tt, Oe), je = (We == null ? void 0 : We.data) || We;
|
|
33393
33393
|
console.log(`[prefetchDialogFieldItems][RESPONSE] ${de}`, je);
|
|
33394
33394
|
let ot = [];
|
|
33395
33395
|
Array.isArray(je) ? ot = je : je && (ot = [je]), console.log(`[prefetchDialogFieldItems][STORE] ${de} items count: ${ot.length}`), we[de] = ot;
|
|
@@ -33397,7 +33397,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33397
33397
|
console.error(`[prefetchDialogFieldItems] Error fetching items for ${de}:`, Ie), we[de] = [];
|
|
33398
33398
|
}
|
|
33399
33399
|
};
|
|
33400
|
-
$e(
|
|
33400
|
+
$e(re, (k, z) => {
|
|
33401
33401
|
F.value && (Ae(), Se.value.forEach((ee) => {
|
|
33402
33402
|
const Q = ee.props || {}, te = Q.endpoint || Q.endpointReference;
|
|
33403
33403
|
Array.isArray(te == null ? void 0 : te.keyParam) && te.keyParam.length > 0 && So(ee, !0);
|
|
@@ -33406,10 +33406,10 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33406
33406
|
const li = () => {
|
|
33407
33407
|
Se.value.length && Se.value.forEach((k) => {
|
|
33408
33408
|
var ee;
|
|
33409
|
-
const z = Je(k,
|
|
33409
|
+
const z = Je(k, re);
|
|
33410
33410
|
if (z != null) {
|
|
33411
|
-
const Q =
|
|
33412
|
-
(Q == null || Q === "" ||
|
|
33411
|
+
const Q = re[k.model], se = (k.props || {}).returnObject || ((ee = k.logic) == null ? void 0 : ee.returnObject);
|
|
33412
|
+
(Q == null || Q === "" || se && (typeof Q == "string" || typeof Q == "number") && (typeof z == "object" && z !== null)) && (re[k.model] = z);
|
|
33413
33413
|
}
|
|
33414
33414
|
});
|
|
33415
33415
|
};
|
|
@@ -33417,9 +33417,9 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33417
33417
|
F.value && li();
|
|
33418
33418
|
}, { deep: !0 });
|
|
33419
33419
|
const qt = ce([]), Ar = ce(/* @__PURE__ */ new Map()), fg = H(() => Array.from(Ar.value.values())), ao = H(() => {
|
|
33420
|
-
var ee, Q, te,
|
|
33420
|
+
var ee, Q, te, se, de, ke, Ie, Qe, tt;
|
|
33421
33421
|
const k = pn.value.find((Oe) => ["CHECKBOX", "checkbox"].includes(Oe.type ?? ""));
|
|
33422
|
-
return (k == null ? void 0 : k.keyCheckbox) || ((te = (Q = (ee = S.value) == null ? void 0 : ee.endpointTable) == null ? void 0 : Q.keyParam) == null ? void 0 : te[0]) || ((ke = (de = (
|
|
33422
|
+
return (k == null ? void 0 : k.keyCheckbox) || ((te = (Q = (ee = S.value) == null ? void 0 : ee.endpointTable) == null ? void 0 : Q.keyParam) == null ? void 0 : te[0]) || ((ke = (de = (se = S.value) == null ? void 0 : se.endpointGlobal) == null ? void 0 : de.keyParam) == null ? void 0 : ke[0]) || ((tt = (Qe = (Ie = S.value) == null ? void 0 : Ie.endpoint) == null ? void 0 : Qe.keyParam) == null ? void 0 : tt[0]) || "id";
|
|
33423
33423
|
}), Cc = () => {
|
|
33424
33424
|
const k = pn.value.find((z) => ["CHECKBOX", "checkbox"].includes(z.type ?? ""));
|
|
33425
33425
|
return (k == null ? void 0 : k.keyPayload) || null;
|
|
@@ -33443,22 +33443,22 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33443
33443
|
var Q;
|
|
33444
33444
|
const z = typeof k == "boolean" ? k : ((Q = k == null ? void 0 : k.target) == null ? void 0 : Q.checked) ?? !!k, ee = ci.value;
|
|
33445
33445
|
if (z) {
|
|
33446
|
-
const te = Ma.value,
|
|
33446
|
+
const te = Ma.value, se = [...qt.value];
|
|
33447
33447
|
An.value.forEach((de) => {
|
|
33448
33448
|
const ke = de[ao.value];
|
|
33449
|
-
ke != null && !te.has(String(ke)) && (
|
|
33450
|
-
}), qt.value =
|
|
33449
|
+
ke != null && !te.has(String(ke)) && (se.push(ke), Ar.value.set(String(ke), de));
|
|
33450
|
+
}), qt.value = se;
|
|
33451
33451
|
} else {
|
|
33452
|
-
const te = new Set(ee.map((
|
|
33452
|
+
const te = new Set(ee.map((se) => String(se)));
|
|
33453
33453
|
qt.value = qt.value.filter(
|
|
33454
|
-
(
|
|
33455
|
-
), te.forEach((
|
|
33456
|
-
Ar.value.delete(
|
|
33454
|
+
(se) => !te.has(String(se))
|
|
33455
|
+
), te.forEach((se) => {
|
|
33456
|
+
Ar.value.delete(se);
|
|
33457
33457
|
});
|
|
33458
33458
|
}
|
|
33459
33459
|
}, mg = (k, z) => {
|
|
33460
|
-
var
|
|
33461
|
-
const ee = typeof z == "boolean" ? z : ((
|
|
33460
|
+
var se;
|
|
33461
|
+
const ee = typeof z == "boolean" ? z : ((se = z == null ? void 0 : z.target) == null ? void 0 : se.checked) ?? !!z, Q = k[ao.value];
|
|
33462
33462
|
if (Q == null) return;
|
|
33463
33463
|
const te = String(Q);
|
|
33464
33464
|
ee ? qt.value.some((de) => String(de) === te) || (qt.value.push(Q), Ar.value.set(te, k)) : (qt.value = qt.value.filter(
|
|
@@ -33478,101 +33478,101 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33478
33478
|
r("selection-change", fg.value);
|
|
33479
33479
|
const ee = _c.value || k.length > 1;
|
|
33480
33480
|
(Q = V.value) != null && Q.length && V.value.forEach((te) => {
|
|
33481
|
-
var
|
|
33482
|
-
(
|
|
33481
|
+
var se;
|
|
33482
|
+
(se = te.fieldActionGlobal) != null && se.length && te.fieldActionGlobal.forEach((de) => {
|
|
33483
33483
|
var Oe, We;
|
|
33484
33484
|
const ke = te.endpoint || ((Oe = te.propsActionGlobal) == null ? void 0 : Oe.endpointPropAction) || te.propsActionGlobal, Ie = (We = ke == null ? void 0 : ke.keyParam) == null ? void 0 : We[0], Qe = ["DCodeAutoComplete", "DCodeInfiniteAutoComplete", "DCodeMultiSelect", "DCodeSelect"].includes(de.component);
|
|
33485
|
-
(Ie && de.model === Ie || !Ie && /^(id|ids|idAuditTrail|idAppRequest)$/i.test(de.model)) && ee && (!Qe || Ie && de.model === Ie) && de.model && (
|
|
33485
|
+
(Ie && de.model === Ie || !Ie && /^(id|ids|idAuditTrail|idAppRequest)$/i.test(de.model)) && ee && (!Qe || Ie && de.model === Ie) && de.model && (re[de.model] = k);
|
|
33486
33486
|
});
|
|
33487
33487
|
});
|
|
33488
33488
|
},
|
|
33489
33489
|
{ deep: !0 }
|
|
33490
33490
|
);
|
|
33491
33491
|
const bg = (k) => {
|
|
33492
|
-
const z = (te,
|
|
33493
|
-
if (!
|
|
33494
|
-
const ke =
|
|
33492
|
+
const z = (te, se, de) => {
|
|
33493
|
+
if (!se) return;
|
|
33494
|
+
const ke = se.split(".");
|
|
33495
33495
|
let Ie = te;
|
|
33496
33496
|
for (let Qe = 0; Qe < ke.length - 1; Qe++) {
|
|
33497
|
-
const
|
|
33498
|
-
Ie[
|
|
33497
|
+
const tt = ke[Qe];
|
|
33498
|
+
Ie[tt] || (Ie[tt] = {}), Ie = Ie[tt];
|
|
33499
33499
|
}
|
|
33500
33500
|
Ie[ke[ke.length - 1]] = de;
|
|
33501
|
-
}, ee = (te,
|
|
33501
|
+
}, ee = (te, se) => {
|
|
33502
33502
|
if (Array.isArray(te.condition) && te.condition.length > 0)
|
|
33503
|
-
return te.condition[
|
|
33503
|
+
return te.condition[se % te.condition.length].value;
|
|
33504
33504
|
const de = ["Active", "Pending", "Inactive", "Success", "Failed"];
|
|
33505
|
-
return de[
|
|
33506
|
-
}, Q = (te,
|
|
33507
|
-
var
|
|
33508
|
-
if (["no", "action"].includes(
|
|
33509
|
-
const Ie = (
|
|
33510
|
-
if (Ie === "BADGE" ||
|
|
33511
|
-
z(te,
|
|
33505
|
+
return de[se % de.length];
|
|
33506
|
+
}, Q = (te, se, de) => {
|
|
33507
|
+
var tt, Oe, We, je;
|
|
33508
|
+
if (["no", "action"].includes(se.key) || ["ACTION", "action"].includes(se.type)) return;
|
|
33509
|
+
const Ie = (se.type || "").toUpperCase(), Qe = `Data ${se.label} ${de + 1}`;
|
|
33510
|
+
if (Ie === "BADGE" || se.condition) {
|
|
33511
|
+
z(te, se.key, ee(se, de));
|
|
33512
33512
|
return;
|
|
33513
33513
|
}
|
|
33514
33514
|
switch (Ie) {
|
|
33515
33515
|
case "CHECKBOX":
|
|
33516
|
-
z(te,
|
|
33516
|
+
z(te, se.keyCheckbox || "id", de + 1);
|
|
33517
33517
|
break;
|
|
33518
33518
|
case "HYPERLINK":
|
|
33519
|
-
z(te,
|
|
33519
|
+
z(te, se.key, `Link ${de + 1}`), (Oe = (tt = se.propsCustom) == null ? void 0 : tt[0]) != null && Oe.urlLink && z(te, se.propsCustom[0].urlLink, `https://example.com/page/${de + 1}`);
|
|
33520
33520
|
break;
|
|
33521
33521
|
case "CURRENCY":
|
|
33522
|
-
z(te,
|
|
33522
|
+
z(te, se.key, 1e6 + de * 5e4);
|
|
33523
33523
|
break;
|
|
33524
33524
|
case "DATE":
|
|
33525
33525
|
case "DATA":
|
|
33526
|
-
z(te,
|
|
33526
|
+
z(te, se.key, new Date(Date.now() - de * 864e5).toISOString().split("T")[0]);
|
|
33527
33527
|
break;
|
|
33528
33528
|
case "DATETIME":
|
|
33529
|
-
z(te,
|
|
33529
|
+
z(te, se.key, new Date(Date.now() - de * 36e5).toISOString());
|
|
33530
33530
|
break;
|
|
33531
33531
|
case "TEXT":
|
|
33532
|
-
(je = (We =
|
|
33532
|
+
(je = (We = se.propsCustom) == null ? void 0 : We[0]) != null && je.value ? z(te, `${se.key}.${se.propsCustom[0].value}`, Qe) : z(te, se.key, Qe);
|
|
33533
33533
|
break;
|
|
33534
33534
|
default:
|
|
33535
|
-
z(te,
|
|
33535
|
+
z(te, se.key, Qe);
|
|
33536
33536
|
}
|
|
33537
33537
|
};
|
|
33538
|
-
return Array.from({ length: k }).map((te,
|
|
33539
|
-
const de = { id:
|
|
33540
|
-
return pn.value.forEach((ke) => Q(de, ke,
|
|
33538
|
+
return Array.from({ length: k }).map((te, se) => {
|
|
33539
|
+
const de = { id: se + 1, no: se + 1 };
|
|
33540
|
+
return pn.value.forEach((ke) => Q(de, ke, se)), de;
|
|
33541
33541
|
});
|
|
33542
|
-
}, Sr = (k) => String(k) === "true" || k === !0,
|
|
33542
|
+
}, Sr = (k) => String(k) === "true" || k === !0, Ot = (k) => k && typeof k == "string" && k.trim() ? k : void 0, Ta = H(
|
|
33543
33543
|
() => {
|
|
33544
|
-
var k, z, ee, Q, te,
|
|
33545
|
-
return
|
|
33544
|
+
var k, z, ee, Q, te, se;
|
|
33545
|
+
return Ot((z = (k = S.value) == null ? void 0 : k.endpoint) == null ? void 0 : z.apiModule) || Ot((Q = (ee = S.value) == null ? void 0 : ee.endpointTable) == null ? void 0 : Q.apiModule) || Ot((se = (te = S.value) == null ? void 0 : te.endpointGlobal) == null ? void 0 : se.apiModule) || o.apiModule;
|
|
33546
33546
|
}
|
|
33547
33547
|
), yg = H(
|
|
33548
33548
|
() => {
|
|
33549
|
-
var k, z, ee, Q, te,
|
|
33550
|
-
return
|
|
33549
|
+
var k, z, ee, Q, te, se;
|
|
33550
|
+
return Ot((z = (k = S.value) == null ? void 0 : k.endpoint) == null ? void 0 : z.apiAction) || Ot((Q = (ee = S.value) == null ? void 0 : ee.endpointTable) == null ? void 0 : Q.apiAction) || Ot((se = (te = S.value) == null ? void 0 : te.endpointGlobal) == null ? void 0 : se.apiAction) || o.apiAction;
|
|
33551
33551
|
}
|
|
33552
33552
|
), vg = H(
|
|
33553
33553
|
() => {
|
|
33554
|
-
var k, z, ee, Q, te,
|
|
33555
|
-
return
|
|
33554
|
+
var k, z, ee, Q, te, se, de, ke;
|
|
33555
|
+
return Ot((z = (k = S.value) == null ? void 0 : k.endpoint) == null ? void 0 : z.apiMethod) || Ot((Q = (ee = S.value) == null ? void 0 : ee.endpointSection) == null ? void 0 : Q.apiMethod) || Ot((se = (te = S.value) == null ? void 0 : te.endpointTable) == null ? void 0 : se.apiMethod) || Ot((ke = (de = S.value) == null ? void 0 : de.endpointGlobal) == null ? void 0 : ke.apiMethod) || o.apiMethod || "GET";
|
|
33556
33556
|
}
|
|
33557
33557
|
), Ra = H(
|
|
33558
33558
|
() => {
|
|
33559
|
-
var k, z, ee, Q, te,
|
|
33560
|
-
return
|
|
33559
|
+
var k, z, ee, Q, te, se, de, ke;
|
|
33560
|
+
return Ot((z = (k = S.value) == null ? void 0 : k.endpoint) == null ? void 0 : z.apiUrl) || Ot((Q = (ee = S.value) == null ? void 0 : ee.endpointSection) == null ? void 0 : Q.apiUrl) || Ot((se = (te = S.value) == null ? void 0 : te.endpointTable) == null ? void 0 : se.apiUrl) || Ot((ke = (de = S.value) == null ? void 0 : de.endpointGlobal) == null ? void 0 : ke.apiUrl) || o.apiUrl;
|
|
33561
33561
|
}
|
|
33562
33562
|
), di = H(
|
|
33563
33563
|
() => {
|
|
33564
|
-
var k, z, ee, Q, te,
|
|
33565
|
-
return
|
|
33564
|
+
var k, z, ee, Q, te, se, de, ke;
|
|
33565
|
+
return Ot((z = (k = S.value) == null ? void 0 : k.endpoint) == null ? void 0 : z.accept) || Ot((Q = (ee = S.value) == null ? void 0 : ee.endpointSection) == null ? void 0 : Q.accept) || Ot((se = (te = S.value) == null ? void 0 : te.endpointTable) == null ? void 0 : se.accept) || Ot((ke = (de = S.value) == null ? void 0 : de.endpointGlobal) == null ? void 0 : ke.accept) || o.accept;
|
|
33566
33566
|
}
|
|
33567
33567
|
), Qo = H(
|
|
33568
33568
|
() => {
|
|
33569
|
-
var k, z, ee, Q, te,
|
|
33570
|
-
return
|
|
33569
|
+
var k, z, ee, Q, te, se, de, ke;
|
|
33570
|
+
return Ot((z = (k = S.value) == null ? void 0 : k.endpoint) == null ? void 0 : z.socket) || Ot((Q = (ee = S.value) == null ? void 0 : ee.endpointSection) == null ? void 0 : Q.socket) || Ot((se = (te = S.value) == null ? void 0 : te.endpointTable) == null ? void 0 : se.socket) || Ot((ke = (de = S.value) == null ? void 0 : de.endpointGlobal) == null ? void 0 : ke.socket) || o.socketEndpoint;
|
|
33571
33571
|
}
|
|
33572
33572
|
), ui = H(
|
|
33573
33573
|
() => {
|
|
33574
|
-
var k, z, ee, Q, te,
|
|
33575
|
-
return ((z = (k = S.value) == null ? void 0 : k.endpoint) == null ? void 0 : z.socketParams) || ((Q = (ee = S.value) == null ? void 0 : ee.endpointSection) == null ? void 0 : Q.socketParams) || ((
|
|
33574
|
+
var k, z, ee, Q, te, se, de, ke;
|
|
33575
|
+
return ((z = (k = S.value) == null ? void 0 : k.endpoint) == null ? void 0 : z.socketParams) || ((Q = (ee = S.value) == null ? void 0 : ee.endpointSection) == null ? void 0 : Q.socketParams) || ((se = (te = S.value) == null ? void 0 : te.endpointTable) == null ? void 0 : se.socketParams) || ((ke = (de = S.value) == null ? void 0 : de.endpointGlobal) == null ? void 0 : ke.socketParams) || o.socketParams || {};
|
|
33576
33576
|
}
|
|
33577
33577
|
), Ac = H(() => !!Qo.value), xg = H(() => {
|
|
33578
33578
|
var k;
|
|
@@ -33582,14 +33582,14 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33582
33582
|
let k = null;
|
|
33583
33583
|
if (o.tableConfig && (k = o.tableConfig), k) {
|
|
33584
33584
|
S.value = k, T.value = [], V.value = [], q.value = !1, k.headers ? ro.value = k.headers.map((Q) => {
|
|
33585
|
-
var Ie, Qe,
|
|
33585
|
+
var Ie, Qe, tt, Oe, We, je, ot, nt, Pt;
|
|
33586
33586
|
const te = (((Ie = Q.custom) == null ? void 0 : Ie.type) || Q.type || "").toUpperCase();
|
|
33587
33587
|
if (Q.key === "action" || te === "ACTION") {
|
|
33588
33588
|
Sr(Q.isHidden) && (q.value = !0);
|
|
33589
|
-
const gt = ((Qe = Q.custom) == null ? void 0 : Qe.actionCustom) || ((
|
|
33589
|
+
const gt = ((Qe = Q.custom) == null ? void 0 : Qe.actionCustom) || ((tt = Q.custom) == null ? void 0 : tt.action);
|
|
33590
33590
|
if (gt) {
|
|
33591
33591
|
const Vt = gt.map((rt) => {
|
|
33592
|
-
const Ye = rt.propsActionCustom || rt.props || {},
|
|
33592
|
+
const Ye = rt.propsActionCustom || rt.props || {}, Mt = rt.propCustomMessage || {};
|
|
33593
33593
|
return {
|
|
33594
33594
|
permission: rt.permission,
|
|
33595
33595
|
label: c.value === "kr" || c.value === "ko" ? Ye.labelKR || Ye.labelEN : c.value === "id" ? Ye.labelID : Ye.labelEN,
|
|
@@ -33606,7 +33606,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33606
33606
|
rounded: Ye.rounded,
|
|
33607
33607
|
endpoint: Er(rt),
|
|
33608
33608
|
propsActionCustom: Ye,
|
|
33609
|
-
_customMsg:
|
|
33609
|
+
_customMsg: Mt,
|
|
33610
33610
|
requiredCondition: rt.requiredCondition || !1,
|
|
33611
33611
|
propCustomCondition: rt.propCustomCondition || [],
|
|
33612
33612
|
fieldMapping: rt.fieldMapping || Ye.fieldMapping || null,
|
|
@@ -33628,8 +33628,8 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33628
33628
|
),
|
|
33629
33629
|
condition: rt.visibleRule || rt.propCustomCondition || Ye.visibleRule || Ye.propCustomCondition || null,
|
|
33630
33630
|
requireConfirm: rt.requireConfirm || Ye.requireConfirm || !1,
|
|
33631
|
-
confirmTitle: c.value === "kr" || c.value === "ko" ?
|
|
33632
|
-
confirmMessage: c.value === "kr" || c.value === "ko" ?
|
|
33631
|
+
confirmTitle: c.value === "kr" || c.value === "ko" ? Mt.titleKR || Ye.confirmTitleKR || "확인" : c.value === "id" ? Mt.titleID || Ye.confirmTitleID || "Konfirmasi" : Mt.titleEN || Ye.confirmTitleEN || "Confirm",
|
|
33632
|
+
confirmMessage: c.value === "kr" || c.value === "ko" ? Mt.messageKR || Ye.confirmMessageKR || "정말로 진행하시겠습니까?" : c.value === "id" ? Mt.messageID || Ye.confirmMessageID || "Apakah Anda yakin?" : Mt.messageEN || Ye.confirmMessageEN || "Are you sure?",
|
|
33633
33633
|
isHidden: rt.isHidden || Ye.isHidden,
|
|
33634
33634
|
routeBack: Ye.routeBack,
|
|
33635
33635
|
pathBack: Ye.pathBack
|
|
@@ -33659,8 +33659,8 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33659
33659
|
type: ((je = Q.custom) == null ? void 0 : je.type) || Q.type,
|
|
33660
33660
|
condition: de,
|
|
33661
33661
|
keyCheckbox: (ot = Q.custom) == null ? void 0 : ot.keyCheckbox,
|
|
33662
|
-
keyPayload: (
|
|
33663
|
-
propsCustom: (
|
|
33662
|
+
keyPayload: (nt = Q.custom) == null ? void 0 : nt.keyPayload,
|
|
33663
|
+
propsCustom: (Pt = Q.custom) == null ? void 0 : Pt.propsCustom,
|
|
33664
33664
|
isHidden: Q.isHidden
|
|
33665
33665
|
};
|
|
33666
33666
|
}).filter((Q) => Q !== null) : ro.value = [];
|
|
@@ -33669,11 +33669,11 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33669
33669
|
...Q,
|
|
33670
33670
|
props: Q.propsFilters || Q.props || {}
|
|
33671
33671
|
})), J.value.forEach((Q) => {
|
|
33672
|
-
|
|
33672
|
+
ie.value[Q.model] = "";
|
|
33673
33673
|
}));
|
|
33674
33674
|
const ee = k.actionTableGlobal || k.actionGlobal || k.actionSection || k.actionGlobalStep || k.action;
|
|
33675
33675
|
ee && Array.isArray(ee) && (V.value = ee.map((Q) => {
|
|
33676
|
-
const te = Q.propsActionGlobal || Q.props || {},
|
|
33676
|
+
const te = Q.propsActionGlobal || Q.props || {}, se = Q.propCustomMessage || {};
|
|
33677
33677
|
return {
|
|
33678
33678
|
key: te.key,
|
|
33679
33679
|
permission: Q.permission,
|
|
@@ -33691,15 +33691,15 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33691
33691
|
rounded: te.rounded,
|
|
33692
33692
|
endpoint: te.endpointDialogActionSave || te.endpointDialogAction || te.endpointAction || te.endpointPropAction || Q.endpoint,
|
|
33693
33693
|
propsActionGlobal: te,
|
|
33694
|
-
_customMsg:
|
|
33694
|
+
_customMsg: se,
|
|
33695
33695
|
fieldMapping: Q.fieldMapping || te.fieldMapping || null,
|
|
33696
33696
|
visibleRule: Q.visibleRule || te.visibleRule || Q.propCustomCondition || te.propCustomCondition || null,
|
|
33697
33697
|
openDialog: Q.openDialog ?? te.openDialog ?? !1,
|
|
33698
33698
|
dialogConfig: Q.dialogConfig || te.dialogConfig || null,
|
|
33699
33699
|
layoutColumns: Q.layoutColumns || te.layoutColumns || Q.layout || te.layout,
|
|
33700
33700
|
requireConfirm: Q.requireConfirm || te.requireConfirm || !1,
|
|
33701
|
-
confirmTitle: c.value === "kr" || c.value === "ko" ?
|
|
33702
|
-
confirmMessage: c.value === "kr" || c.value === "ko" ?
|
|
33701
|
+
confirmTitle: c.value === "kr" || c.value === "ko" ? se.titleKR || te.confirmTitleKR || "확인" : c.value === "id" ? se.titleID || te.confirmTitleID || "Konfirmasi" : se.titleEN || te.confirmTitleEN || "Confirm",
|
|
33702
|
+
confirmMessage: c.value === "kr" || c.value === "ko" ? se.messageKR || te.confirmMessageKR || "정말로 진행하시겠습니까?" : c.value === "id" ? se.messageID || te.confirmMessageID || "Apakah Anda yakin?" : se.messageEN || te.confirmMessageEN || "Are you sure?",
|
|
33703
33703
|
fieldActionGlobal: (Q.fieldActionGlobal || Q.fieldActionCustom || Q.field || []).map(
|
|
33704
33704
|
(de) => {
|
|
33705
33705
|
const ke = de.propsFieldCustom || de.propsFieldGlobal || de.propsFilters || de.props || {};
|
|
@@ -33750,13 +33750,13 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33750
33750
|
const z = k.headers || [];
|
|
33751
33751
|
ro.value = ro.value.map((ee) => {
|
|
33752
33752
|
var te;
|
|
33753
|
-
const Q = z.find((
|
|
33753
|
+
const Q = z.find((se) => se.key === ee.key);
|
|
33754
33754
|
return Q ? {
|
|
33755
33755
|
...ee,
|
|
33756
33756
|
label: c.value === "kr" || c.value === "ko" ? Q.labelKR || Q.labelEN || Q.label : (c.value === "id" ? Q.labelID : Q.labelEN) || Q.label || Q.labelID || Q.labelEN,
|
|
33757
|
-
condition: (te = ee.condition) == null ? void 0 : te.map((
|
|
33758
|
-
...
|
|
33759
|
-
label: c.value === "kr" || c.value === "ko" ?
|
|
33757
|
+
condition: (te = ee.condition) == null ? void 0 : te.map((se) => ({
|
|
33758
|
+
...se,
|
|
33759
|
+
label: c.value === "kr" || c.value === "ko" ? se.labelKR || se.labelEN || se.label : c.value === "id" ? se.labelID || se.label : se.labelEN || se.label
|
|
33760
33760
|
}))
|
|
33761
33761
|
} : ee;
|
|
33762
33762
|
});
|
|
@@ -33771,10 +33771,10 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33771
33771
|
var te;
|
|
33772
33772
|
if (!((te = o.menuPermissions) != null && te.length)) return;
|
|
33773
33773
|
const z = o.menuPermissions.find(
|
|
33774
|
-
(
|
|
33774
|
+
(se) => v.path.startsWith(se.path)
|
|
33775
33775
|
);
|
|
33776
33776
|
if (!(z != null && z.actions)) return;
|
|
33777
|
-
const ee = k.toUpperCase(), Q = z.actions.find((
|
|
33777
|
+
const ee = k.toUpperCase(), Q = z.actions.find((se) => se.code === ee);
|
|
33778
33778
|
return Q == null ? void 0 : Q.checked;
|
|
33779
33779
|
}, hi = (k, z, ee) => {
|
|
33780
33780
|
let Q = k(z, ee);
|
|
@@ -33787,8 +33787,8 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33787
33787
|
let Q = hi(k, z, ee);
|
|
33788
33788
|
if (Q) return !0;
|
|
33789
33789
|
if (v.path) {
|
|
33790
|
-
const
|
|
33791
|
-
|
|
33790
|
+
const se = v.path.split("/").find(Boolean)[0];
|
|
33791
|
+
se && se !== z && (Q = hi(k, se, ee));
|
|
33792
33792
|
}
|
|
33793
33793
|
return Q || (z !== "" && (Q = hi(k, "", ee)), Q) ? !0 : Cg(ee, z);
|
|
33794
33794
|
}, Sc = (k) => {
|
|
@@ -33799,7 +33799,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33799
33799
|
if (Q)
|
|
33800
33800
|
return _g(Q, ee, k);
|
|
33801
33801
|
const te = k.toUpperCase();
|
|
33802
|
-
return kg.value.some((
|
|
33802
|
+
return kg.value.some((se) => se.code === te);
|
|
33803
33803
|
}, Ag = (k, z) => {
|
|
33804
33804
|
if (k.condition)
|
|
33805
33805
|
try {
|
|
@@ -33808,22 +33808,22 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33808
33808
|
return console.warn("Row action jsonLogic error:", de), !1;
|
|
33809
33809
|
}
|
|
33810
33810
|
if (!k.visibilityCondition) return !0;
|
|
33811
|
-
const { field: ee, operator: Q, value: te } = k.visibilityCondition,
|
|
33811
|
+
const { field: ee, operator: Q, value: te } = k.visibilityCondition, se = yt(z, ee);
|
|
33812
33812
|
switch (Q) {
|
|
33813
33813
|
case "equals":
|
|
33814
|
-
return
|
|
33814
|
+
return se === te;
|
|
33815
33815
|
case "notEquals":
|
|
33816
|
-
return
|
|
33816
|
+
return se !== te;
|
|
33817
33817
|
case "in":
|
|
33818
|
-
return Array.isArray(te) && te.includes(
|
|
33818
|
+
return Array.isArray(te) && te.includes(se);
|
|
33819
33819
|
case "notIn":
|
|
33820
|
-
return Array.isArray(te) && !te.includes(
|
|
33820
|
+
return Array.isArray(te) && !te.includes(se);
|
|
33821
33821
|
case "greaterThan":
|
|
33822
|
-
return
|
|
33822
|
+
return se > te;
|
|
33823
33823
|
case "lessThan":
|
|
33824
|
-
return
|
|
33824
|
+
return se < te;
|
|
33825
33825
|
case "contains":
|
|
33826
|
-
return String(
|
|
33826
|
+
return String(se).includes(String(te));
|
|
33827
33827
|
default:
|
|
33828
33828
|
return !0;
|
|
33829
33829
|
}
|
|
@@ -33850,7 +33850,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33850
33850
|
}), Ec = H(() => T.value.length === 0 ? T.value : T.value.filter((k) => k.isHidden === !0 || k.isHidden === "true" ? !1 : o.ignorePermissions || o.dummyMode || !k.permission ? !0 : o.checkPermission ? o.checkPermission(k.permission) : o.permissions ? o.permissions.includes(k.permission) : Sc(k.permission))), pi = (k) => Ec.value.filter(
|
|
33851
33851
|
(z) => Ag(z, k)
|
|
33852
33852
|
), Mc = (k, z) => {
|
|
33853
|
-
var te,
|
|
33853
|
+
var te, se;
|
|
33854
33854
|
if (k.requiredCondition && ((te = k.propCustomCondition) == null ? void 0 : te.length) > 0) {
|
|
33855
33855
|
const de = yt(z, "status"), ke = k.propCustomCondition.find(
|
|
33856
33856
|
(Ie) => Ie.value === de
|
|
@@ -33859,7 +33859,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33859
33859
|
}
|
|
33860
33860
|
if (!k.dynamicColor || !k.colorCondition)
|
|
33861
33861
|
return k.bgColor || "primary";
|
|
33862
|
-
const ee = yt(z, k.colorCondition.field), Q = (
|
|
33862
|
+
const ee = yt(z, k.colorCondition.field), Q = (se = k.colorCondition.conditions) == null ? void 0 : se.find(
|
|
33863
33863
|
(de) => de.value === ee
|
|
33864
33864
|
);
|
|
33865
33865
|
return (Q == null ? void 0 : Q.bgColor) || k.bgColor || "primary";
|
|
@@ -33883,11 +33883,11 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33883
33883
|
}), yt = (k, z) => {
|
|
33884
33884
|
if (!k || !z) return;
|
|
33885
33885
|
if (z.includes(".")) {
|
|
33886
|
-
const te = z.split(".").reduce((
|
|
33886
|
+
const te = z.split(".").reduce((se, de) => se && se[de], k);
|
|
33887
33887
|
if (te != null) return te;
|
|
33888
33888
|
}
|
|
33889
33889
|
if (z in k) return k[z];
|
|
33890
|
-
const ee = z.split(".").reduce((te,
|
|
33890
|
+
const ee = z.split(".").reduce((te, se) => te && te[se], k);
|
|
33891
33891
|
if (ee != null) return ee;
|
|
33892
33892
|
const Q = z.split(".");
|
|
33893
33893
|
if (Q.length > 1) {
|
|
@@ -33903,23 +33903,23 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33903
33903
|
}));
|
|
33904
33904
|
if (R.value) {
|
|
33905
33905
|
const Q = R.value.toLowerCase();
|
|
33906
|
-
ee = ee.filter((te) => pn.value.some((
|
|
33907
|
-
const de = yt(te,
|
|
33906
|
+
ee = ee.filter((te) => pn.value.some((se) => {
|
|
33907
|
+
const de = yt(te, se.key);
|
|
33908
33908
|
return de == null ? !1 : String(de).toLowerCase().includes(Q);
|
|
33909
33909
|
}));
|
|
33910
33910
|
}
|
|
33911
|
-
return !$t.value && Object.keys(
|
|
33912
|
-
if (
|
|
33911
|
+
return !$t.value && Object.keys(ie.value).length > 0 && (ee = ee.filter((Q) => Object.entries(ie.value).every(([te, se]) => {
|
|
33912
|
+
if (se == null || se === "") return !0;
|
|
33913
33913
|
const de = yt(Q, te);
|
|
33914
33914
|
if (de == null) return !1;
|
|
33915
|
-
const ke = String(de).toLowerCase(), Ie = String(
|
|
33915
|
+
const ke = String(de).toLowerCase(), Ie = String(se).toLowerCase();
|
|
33916
33916
|
return ke.includes(Ie);
|
|
33917
33917
|
}))), ee;
|
|
33918
33918
|
}), Tc = H(() => U.value.key ? [...gi.value].sort((z, ee) => {
|
|
33919
33919
|
const Q = yt(z, U.value.key), te = yt(ee, U.value.key);
|
|
33920
33920
|
if (Q === te) return 0;
|
|
33921
|
-
let
|
|
33922
|
-
return typeof Q == "number" && typeof te == "number" ?
|
|
33921
|
+
let se = 0;
|
|
33922
|
+
return typeof Q == "number" && typeof te == "number" ? se = Q - te : se = String(Q).localeCompare(String(te)), U.value.direction === "asc" ? se : -se;
|
|
33923
33923
|
}) : gi.value), Rg = H(() => {
|
|
33924
33924
|
if ($t.value)
|
|
33925
33925
|
return Tc.value.map((ee, Q) => ({
|
|
@@ -33932,14 +33932,14 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33932
33932
|
no: k + Q + 1
|
|
33933
33933
|
}));
|
|
33934
33934
|
}), Og = (k, z) => {
|
|
33935
|
-
var te,
|
|
33935
|
+
var te, se, de, ke;
|
|
33936
33936
|
const ee = yt(k, z.key);
|
|
33937
33937
|
if (ee == null || ee === "") return "-";
|
|
33938
|
-
if ((z.type === "TEXT" || z.type === "text") && ((
|
|
33938
|
+
if ((z.type === "TEXT" || z.type === "text") && ((se = (te = z.propsCustom) == null ? void 0 : te[0]) != null && se.value)) {
|
|
33939
33939
|
const Ie = z.propsCustom[0].value;
|
|
33940
33940
|
if (ee && typeof ee == "object")
|
|
33941
33941
|
return yt(ee, Ie) || "-";
|
|
33942
|
-
const Qe = z.key.split(".").reduce((
|
|
33942
|
+
const Qe = z.key.split(".").reduce((tt, Oe) => tt && tt[Oe], k);
|
|
33943
33943
|
if (Qe && typeof Qe == "object")
|
|
33944
33944
|
return yt(Qe, Ie) || "-";
|
|
33945
33945
|
}
|
|
@@ -33952,8 +33952,8 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33952
33952
|
return th(ee, Ie);
|
|
33953
33953
|
}
|
|
33954
33954
|
return z.format ? z.format(ee) : ee;
|
|
33955
|
-
}, Rc = H(() => $t.value ? Object.values(
|
|
33956
|
-
$t.value && (
|
|
33955
|
+
}, Rc = H(() => $t.value ? Object.values(ie.value).some((k) => !!k) : !!R.value), Pg = [10, 25, 50, 100], Oc = () => {
|
|
33956
|
+
$t.value && (ie.value = { ...ie.value, keyword: R.value }, L.value = 1, Ut());
|
|
33957
33957
|
};
|
|
33958
33958
|
let mi;
|
|
33959
33959
|
const Lg = () => {
|
|
@@ -33979,22 +33979,22 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
33979
33979
|
const Ut = async () => {
|
|
33980
33980
|
var ee, Q;
|
|
33981
33981
|
if (o.dummyMode || !$t.value || oe.value || !Ta.value && !Ra.value) return;
|
|
33982
|
-
const k = o.data && o.data.length > 0, z = L.value === 1 && Object.keys(
|
|
33982
|
+
const k = o.data && o.data.length > 0, z = L.value === 1 && Object.keys(ie.value).length === 0 && !R.value;
|
|
33983
33983
|
if (!(k && z && !X.value.length && !oe.value))
|
|
33984
33984
|
try {
|
|
33985
33985
|
oe.value = !0;
|
|
33986
33986
|
const te = {
|
|
33987
33987
|
page: L.value,
|
|
33988
33988
|
perPage: P.value,
|
|
33989
|
-
...
|
|
33989
|
+
...ie.value,
|
|
33990
33990
|
...o.apiParams
|
|
33991
33991
|
};
|
|
33992
33992
|
R.value && (te.keyword = R.value), Object.keys(te).forEach((de) => {
|
|
33993
33993
|
(te[de] === "" || te[de] === null || te[de] === void 0) && delete te[de];
|
|
33994
33994
|
});
|
|
33995
|
-
let
|
|
33995
|
+
let se;
|
|
33996
33996
|
if (Ta.value)
|
|
33997
|
-
|
|
33997
|
+
se = await l(
|
|
33998
33998
|
Ta.value,
|
|
33999
33999
|
yg.value,
|
|
34000
34000
|
te
|
|
@@ -34006,14 +34006,14 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34006
34006
|
de = `${Ie}${Qe}`;
|
|
34007
34007
|
}
|
|
34008
34008
|
const ke = { ...((Q = (ee = S.value) == null ? void 0 : ee.endpoint) == null ? void 0 : Q.config) || {} };
|
|
34009
|
-
di.value && (ke.headers || (ke.headers = {}), ke.headers.Accept = di.value, ke.headers.accept = di.value),
|
|
34009
|
+
di.value && (ke.headers || (ke.headers = {}), ke.headers.Accept = di.value, ke.headers.accept = di.value), se = await l(
|
|
34010
34010
|
de,
|
|
34011
34011
|
vg.value,
|
|
34012
34012
|
te,
|
|
34013
34013
|
ke
|
|
34014
34014
|
);
|
|
34015
34015
|
}
|
|
34016
|
-
Ic(
|
|
34016
|
+
Ic(se);
|
|
34017
34017
|
} catch (te) {
|
|
34018
34018
|
console.error("DataTable fetch error", te), oe.value = !1;
|
|
34019
34019
|
}
|
|
@@ -34065,11 +34065,11 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34065
34065
|
clearTimeout(mi), clearTimeout(bi);
|
|
34066
34066
|
});
|
|
34067
34067
|
const $c = () => {
|
|
34068
|
-
Object.keys(
|
|
34069
|
-
|
|
34068
|
+
Object.keys(ie.value).forEach((k) => {
|
|
34069
|
+
ie.value[k] = "";
|
|
34070
34070
|
}), r("reset"), Fc();
|
|
34071
34071
|
}, Fc = () => {
|
|
34072
|
-
L.value = 1, r("search",
|
|
34072
|
+
L.value = 1, r("search", ie.value), Ut();
|
|
34073
34073
|
}, yi = (k, z) => k == null || z === void 0 || z === null ? !1 : typeof k == "string" && typeof z == "string" ? k.toLowerCase().trim() === z.toLowerCase().trim() : k == z, $g = (k) => {
|
|
34074
34074
|
if (typeof k == "boolean") return k ? "true" : "false";
|
|
34075
34075
|
if (typeof k == "object" && k !== null) {
|
|
@@ -34089,15 +34089,15 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34089
34089
|
if (k.logic || typeof k.value == "object" && k.value !== null)
|
|
34090
34090
|
try {
|
|
34091
34091
|
return Tn.apply(k.logic || k.value, z);
|
|
34092
|
-
} catch (
|
|
34093
|
-
return console.warn("Badge logic error:",
|
|
34092
|
+
} catch (se) {
|
|
34093
|
+
return console.warn("Badge logic error:", se), !1;
|
|
34094
34094
|
}
|
|
34095
34095
|
const te = $g(ee);
|
|
34096
34096
|
if (yi(k.value, te) || typeof ee == "object" && ee !== null && ["code", "id", "name", "value", "val", "label", "key", "status", "statusRequest.name", "description"].some((de) => yi(k.value, yt(ee, de))))
|
|
34097
34097
|
return !0;
|
|
34098
34098
|
if (typeof ee == "boolean") return Fg(ee, k.value);
|
|
34099
34099
|
if (Q.includes(".")) {
|
|
34100
|
-
const
|
|
34100
|
+
const se = Q.split(".").slice(0, -1).join("."), de = yt(z, se);
|
|
34101
34101
|
if (de && typeof de == "object" && ["code", "id", "name", "value", "val", "label", "key", "status", "statusRequest.name", "description"].some((Ie) => yi(k.value, yt(de, Ie))))
|
|
34102
34102
|
return !0;
|
|
34103
34103
|
}
|
|
@@ -34108,10 +34108,10 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34108
34108
|
...Array.isArray(z.condition) ? z.condition : [],
|
|
34109
34109
|
...Array.isArray(z.propsCustom) ? z.propsCustom : [],
|
|
34110
34110
|
...Array.isArray((ke = z.custom) == null ? void 0 : ke.propsCustom) ? z.custom.propsCustom : []
|
|
34111
|
-
].find((Ie) => Bg(Ie, k, ee, z.key)),
|
|
34111
|
+
].find((Ie) => Bg(Ie, k, ee, z.key)), se = (Ie) => typeof Ie == "object" ? (Ie == null ? void 0 : Ie.name) || (Ie == null ? void 0 : Ie.code) || "-" : Ie, de = {
|
|
34112
34112
|
variant: (te == null ? void 0 : te.variant) || "secondary",
|
|
34113
34113
|
class: "",
|
|
34114
|
-
label:
|
|
34114
|
+
label: se(ee),
|
|
34115
34115
|
color: te == null ? void 0 : te.color
|
|
34116
34116
|
};
|
|
34117
34117
|
return te && (te.labelEN || te.labelID) && (de.label = c.value === "id" ? te.labelID || te.labelEN : te.labelEN || te.labelID), de;
|
|
@@ -34127,17 +34127,17 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34127
34127
|
const z = 1, ee = k;
|
|
34128
34128
|
r("update:perPage", k), r("update:page", 1), r("update:startIndex", z), r("update:endIndex", ee);
|
|
34129
34129
|
}, Nc = () => {
|
|
34130
|
-
R.value = "",
|
|
34130
|
+
R.value = "", ie.value = {}, L.value = 1, Ut();
|
|
34131
34131
|
}, jg = (k) => {
|
|
34132
34132
|
var Q, te;
|
|
34133
34133
|
if (!k) return k;
|
|
34134
|
-
const z = pn.value.find((
|
|
34134
|
+
const z = pn.value.find((se) => se.key === k.model), ee = ["DCodeAutoComplete", "DCodeInfiniteAutoComplete", "DCodeMultiSelect"].includes(k.component);
|
|
34135
34135
|
if ((te = (Q = z == null ? void 0 : z.propsCustom) == null ? void 0 : Q[0]) != null && te.value && ee) {
|
|
34136
|
-
const
|
|
34137
|
-
return
|
|
34136
|
+
const se = { ...k }, de = k.props || k.propsFieldGlobal || k.propsFieldCustom || {};
|
|
34137
|
+
return se.props = {
|
|
34138
34138
|
...de,
|
|
34139
34139
|
returnObject: !0
|
|
34140
|
-
},
|
|
34140
|
+
}, se;
|
|
34141
34141
|
}
|
|
34142
34142
|
return k;
|
|
34143
34143
|
};
|
|
@@ -34174,21 +34174,21 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34174
34174
|
const ee = k.path ? { code: k.path } : {};
|
|
34175
34175
|
k.fieldMapping && typeof k.fieldMapping == "object" && Object.entries(k.fieldMapping).forEach(([Q, te]) => {
|
|
34176
34176
|
if (typeof te == "string") {
|
|
34177
|
-
const
|
|
34178
|
-
|
|
34177
|
+
const se = re[Q];
|
|
34178
|
+
se !== void 0 && (ee[te] = se);
|
|
34179
34179
|
}
|
|
34180
34180
|
}), r("navigate", { route: k.route, path: k.path, query: ee }), A == null || A.push({ path: k.route, query: ee });
|
|
34181
34181
|
} else if (k.openDialog || o.dummyMode && k.route) {
|
|
34182
|
-
Z.value = k, he.value = null, Te.value = null, Object.keys(
|
|
34182
|
+
Z.value = k, he.value = null, Te.value = null, Object.keys(re).forEach((Q) => delete re[Q]);
|
|
34183
34183
|
const ee = k.fieldActionGlobal || k.fieldActionCustom || k.field || [];
|
|
34184
34184
|
ee.length && ee.forEach((Q) => {
|
|
34185
34185
|
So(Q);
|
|
34186
|
-
const te = Er(k),
|
|
34186
|
+
const te = Er(k), se = te != null && te.keyParam && te.keyParam.length > 0 ? te.keyParam[0] : null, de = ["DCodeAutoComplete", "DCodeInfiniteAutoComplete", "DCodeMultiSelect", "DCodeSelect"].includes(Q.component), ke = se && Q.model === se, Ie = !se && /^(id|ids|idAuditTrail|idAppRequest)$/i.test(Q.model);
|
|
34187
34187
|
if (ke || Ie && !de)
|
|
34188
|
-
|
|
34189
|
-
else if (
|
|
34190
|
-
const Qe = Je(Q,
|
|
34191
|
-
|
|
34188
|
+
re[Q.model] = qt.value;
|
|
34189
|
+
else if (re[Q.model] === void 0 || re[Q.model] === "") {
|
|
34190
|
+
const Qe = Je(Q, re);
|
|
34191
|
+
re[Q.model] = Qe !== void 0 ? Qe : null;
|
|
34192
34192
|
}
|
|
34193
34193
|
}), F.value = !0, setTimeout(() => {
|
|
34194
34194
|
li();
|
|
@@ -34203,35 +34203,35 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34203
34203
|
ao.value;
|
|
34204
34204
|
const ee = pa(z);
|
|
34205
34205
|
Object.keys(ee).forEach((te) => {
|
|
34206
|
-
|
|
34207
|
-
}), k.fieldMapping && typeof k.fieldMapping == "object" && Object.entries(k.fieldMapping).forEach(([te,
|
|
34208
|
-
if (typeof
|
|
34206
|
+
re[te] = ee[te];
|
|
34207
|
+
}), k.fieldMapping && typeof k.fieldMapping == "object" && Object.entries(k.fieldMapping).forEach(([te, se]) => {
|
|
34208
|
+
if (typeof se == "string") {
|
|
34209
34209
|
const de = yt(z, te);
|
|
34210
|
-
de !== void 0 && (
|
|
34210
|
+
de !== void 0 && (re[se] = de);
|
|
34211
34211
|
}
|
|
34212
34212
|
});
|
|
34213
34213
|
const Q = Se.value;
|
|
34214
34214
|
console.log(`[initializeDialogData] Processing ${Q.length} fields:`, Q.map((te) => te.key || te.model)), Q.length > 0 && Q.forEach((te) => {
|
|
34215
34215
|
So(te, !0);
|
|
34216
|
-
const
|
|
34217
|
-
if (!
|
|
34216
|
+
const se = te.model || te.key;
|
|
34217
|
+
if (!se) return;
|
|
34218
34218
|
const de = ["DCodeAutoComplete", "DCodeInfiniteAutoComplete", "DCodeMultiSelect", "DCodeSelect"].includes(te.component);
|
|
34219
|
-
if (/^(id|ids|idAuditTrail|idAppRequest)$/i.test(
|
|
34220
|
-
const ke = z[ao.value] || ee[
|
|
34221
|
-
|
|
34222
|
-
} else if (k.action === "showToken" &&
|
|
34223
|
-
|
|
34219
|
+
if (/^(id|ids|idAuditTrail|idAppRequest)$/i.test(se) && (!de || se === "idAppRequest")) {
|
|
34220
|
+
const ke = z[ao.value] || ee[se] || z.id;
|
|
34221
|
+
re[se] = /id$|idAppRequest|idSlikLogin/i.test(se) ? ke : [ke];
|
|
34222
|
+
} else if (k.action === "showToken" && se === "token")
|
|
34223
|
+
re[se] = z.token ?? ee.token ?? "";
|
|
34224
34224
|
else {
|
|
34225
|
-
let ke = yt(z,
|
|
34225
|
+
let ke = yt(z, se);
|
|
34226
34226
|
if (ke == null) {
|
|
34227
|
-
const Ie =
|
|
34227
|
+
const Ie = se.includes(".") ? se.split(".").pop() : null;
|
|
34228
34228
|
Ie && (ke = yt(z, Ie));
|
|
34229
34229
|
}
|
|
34230
34230
|
if (ke != null)
|
|
34231
|
-
|
|
34231
|
+
re[se] = ke;
|
|
34232
34232
|
else {
|
|
34233
|
-
const Ie = Je(te,
|
|
34234
|
-
|
|
34233
|
+
const Ie = Je(te, re);
|
|
34234
|
+
re[se] = Ie !== void 0 ? Ie : null;
|
|
34235
34235
|
}
|
|
34236
34236
|
}
|
|
34237
34237
|
}), setTimeout(() => {
|
|
@@ -34241,11 +34241,11 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34241
34241
|
const ee = {};
|
|
34242
34242
|
if (z.keyParam && Array.isArray(z.keyParam) && z.keyParam.forEach((Q, te) => {
|
|
34243
34243
|
if (typeof Q == "string") {
|
|
34244
|
-
const
|
|
34245
|
-
de !== void 0 && (ee[
|
|
34246
|
-
} else typeof Q == "object" && Q !== null && Object.entries(Q).forEach(([
|
|
34244
|
+
const se = z.model && te === 0 ? z.model : Q, de = yt(k, Q);
|
|
34245
|
+
de !== void 0 && (ee[se] = de);
|
|
34246
|
+
} else typeof Q == "object" && Q !== null && Object.entries(Q).forEach(([se, de]) => {
|
|
34247
34247
|
const ke = yt(k, de);
|
|
34248
|
-
ke !== void 0 && (ee[
|
|
34248
|
+
ke !== void 0 && (ee[se] = ke);
|
|
34249
34249
|
});
|
|
34250
34250
|
}), Object.keys(ee).length === 0 && k) {
|
|
34251
34251
|
const Q = ao.value;
|
|
@@ -34257,23 +34257,23 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34257
34257
|
z.item && (z = z.item), Array.isArray(z) && (z = z[0] || {});
|
|
34258
34258
|
const ee = pa(z);
|
|
34259
34259
|
if (Object.keys(ee).forEach((Q) => {
|
|
34260
|
-
|
|
34260
|
+
re[Q] = ee[Q];
|
|
34261
34261
|
}), Object.keys(z).forEach((Q) => {
|
|
34262
34262
|
he.value && (he.value[Q] = z[Q]);
|
|
34263
|
-
}), !
|
|
34263
|
+
}), !re.token) {
|
|
34264
34264
|
const Q = Object.keys(z).find((te) => te.toLowerCase().includes("token"));
|
|
34265
|
-
Q && (
|
|
34265
|
+
Q && (re.token = z[Q]);
|
|
34266
34266
|
}
|
|
34267
34267
|
}, Hg = (k, z, ee, Q, te) => {
|
|
34268
|
-
const
|
|
34269
|
-
|
|
34268
|
+
const se = (k == null ? void 0 : k.data) ?? (k == null ? void 0 : k.result) ?? k;
|
|
34269
|
+
se && typeof se == "object" ? Wg(se) : typeof se == "string" && "token" in re && (re.token = se), Q && te !== "delete" && r("action", { action: z.action || te, row: he.value || ee });
|
|
34270
34270
|
}, Kg = async (k, z, ee, Q, te) => {
|
|
34271
34271
|
oe.value = !0;
|
|
34272
|
-
const
|
|
34272
|
+
const se = Vg(z, ee);
|
|
34273
34273
|
try {
|
|
34274
34274
|
const de = { ...ee.config || {} };
|
|
34275
34275
|
ee.accept && (de.headers || (de.headers = {}), de.headers.Accept = ee.accept, de.headers.accept = ee.accept);
|
|
34276
|
-
const ke = await l(ee.apiUrl, "GET",
|
|
34276
|
+
const ke = await l(ee.apiUrl, "GET", se, de);
|
|
34277
34277
|
Hg(ke, k, z, Q, te);
|
|
34278
34278
|
} catch (de) {
|
|
34279
34279
|
console.error("Fetch Data Failed", de);
|
|
@@ -34287,13 +34287,13 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34287
34287
|
return;
|
|
34288
34288
|
}
|
|
34289
34289
|
if (k.openDialog) {
|
|
34290
|
-
Z.value = k, he.value = z, Te.value = ee !== void 0 ? ee : null, Object.keys(
|
|
34291
|
-
const te = k.propsActionCustom || k.props || k.propsActionGlobal || {},
|
|
34292
|
-
if (F.value = !0, ke && !(
|
|
34290
|
+
Z.value = k, he.value = z, Te.value = ee !== void 0 ? ee : null, Object.keys(re).forEach((Ie) => delete re[Ie]), Ug(k, z);
|
|
34291
|
+
const te = k.propsActionCustom || k.props || k.propsActionGlobal || {}, se = Er(k), de = (k.actionType || k.permission || "").toLowerCase(), ke = /detail|view|edit|update|delete|destroy/i.test(de) || /detail|view|edit|update|delete|destroy/i.test(k.action || "");
|
|
34292
|
+
if (F.value = !0, ke && !(se != null && se.apiUrl)) {
|
|
34293
34293
|
(!C || !k.permission || C("", k.permission)) && r("action", { action: k.action || de, row: z });
|
|
34294
34294
|
return;
|
|
34295
34295
|
}
|
|
34296
|
-
((Q =
|
|
34296
|
+
((Q = se == null ? void 0 : se.apiMethod) == null ? void 0 : Q.toUpperCase()) === "GET" && se.apiUrl && (se === k.endpointDialogActionSave || se === te.endpointDialogActionSave || Kg(k, z, se, ke, de));
|
|
34297
34297
|
return;
|
|
34298
34298
|
}
|
|
34299
34299
|
Qg(k, z);
|
|
@@ -34303,19 +34303,19 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34303
34303
|
}, Gg = (k, z, ee) => {
|
|
34304
34304
|
if (!k.fieldMapping || typeof k.fieldMapping != "object") return;
|
|
34305
34305
|
const Q = [];
|
|
34306
|
-
if (Object.entries(k.fieldMapping).forEach(([te,
|
|
34307
|
-
if (typeof
|
|
34306
|
+
if (Object.entries(k.fieldMapping).forEach(([te, se]) => {
|
|
34307
|
+
if (typeof se == "string") {
|
|
34308
34308
|
const de = yt(z, te);
|
|
34309
34309
|
if (de === void 0)
|
|
34310
34310
|
Q.push(te);
|
|
34311
34311
|
else {
|
|
34312
34312
|
let ke = de;
|
|
34313
|
-
de && typeof de == "object" && !Array.isArray(de) && /id|code|idSlik|idOperator|idSupervisor/i.test(
|
|
34313
|
+
de && typeof de == "object" && !Array.isArray(de) && /id|code|idSlik|idOperator|idSupervisor/i.test(se) && (ke = de.id ?? de.code ?? de.value ?? de), ee[se] = ke;
|
|
34314
34314
|
}
|
|
34315
34315
|
}
|
|
34316
34316
|
}), Q.length > 0) {
|
|
34317
|
-
const te = c.value || "en",
|
|
34318
|
-
et.warning(`${
|
|
34317
|
+
const te = c.value || "en", se = te === "id" ? "Masalah Sinkronisasi Data" : "Data Synchronization Issue", de = te === "id" ? `Terdapat ketidaksesuaian skema pada field: ${Q.join(", ")}. Harap hubungi tim pengembang.` : `Schema mismatch detected in fields: ${Q.join(", ")}. Please contact the development team.`;
|
|
34318
|
+
et.warning(`${se}: ${de}`, { autoClose: 5e3, position: "top-right" });
|
|
34319
34319
|
}
|
|
34320
34320
|
}, Xg = (k, z) => {
|
|
34321
34321
|
if (k.path) {
|
|
@@ -34325,23 +34325,23 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34325
34325
|
let ee = qg(k, z);
|
|
34326
34326
|
const Q = k.path ? { code: k.path } : {};
|
|
34327
34327
|
if (ee && ee.includes("?")) {
|
|
34328
|
-
const [te,
|
|
34328
|
+
const [te, se] = ee.split("?");
|
|
34329
34329
|
ee = te;
|
|
34330
|
-
const de = new URLSearchParams(
|
|
34330
|
+
const de = new URLSearchParams(se);
|
|
34331
34331
|
for (const [ke, Ie] of de.entries())
|
|
34332
34332
|
Q[ke] = Ie;
|
|
34333
34333
|
}
|
|
34334
|
-
k.fieldMapping && typeof k.fieldMapping == "object" && Object.entries(k.fieldMapping).forEach(([te,
|
|
34335
|
-
if (typeof
|
|
34334
|
+
k.fieldMapping && typeof k.fieldMapping == "object" && Object.entries(k.fieldMapping).forEach(([te, se]) => {
|
|
34335
|
+
if (typeof se == "string") {
|
|
34336
34336
|
const de = yt(z, te);
|
|
34337
|
-
de !== void 0 && (Q[
|
|
34337
|
+
de !== void 0 && (Q[se] = de);
|
|
34338
34338
|
}
|
|
34339
34339
|
}), r("navigate", { route: ee, path: k.path, query: Q }), A == null || A.push({ path: ee, query: Q });
|
|
34340
34340
|
}, Yg = (k, z, ee) => {
|
|
34341
34341
|
const Q = {};
|
|
34342
|
-
return Gg(k, z, Q), ee.keyParam && Array.isArray(ee.keyParam) && ee.keyParam.forEach((te,
|
|
34342
|
+
return Gg(k, z, Q), ee.keyParam && Array.isArray(ee.keyParam) && ee.keyParam.forEach((te, se) => {
|
|
34343
34343
|
if (typeof te == "string") {
|
|
34344
|
-
const de = ee.model &&
|
|
34344
|
+
const de = ee.model && se === 0 ? ee.model : te, ke = yt(z, te);
|
|
34345
34345
|
ke !== void 0 && (Q[de] = ke);
|
|
34346
34346
|
} else typeof te == "object" && te !== null && Object.entries(te).forEach(([de, ke]) => {
|
|
34347
34347
|
const Ie = yt(z, ke);
|
|
@@ -34352,27 +34352,27 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34352
34352
|
oe.value = !0;
|
|
34353
34353
|
const Q = Yg(k, z, ee), te = et.loading(
|
|
34354
34354
|
c.value === "id" ? "Memproses..." : "Processing..."
|
|
34355
|
-
),
|
|
34356
|
-
ee.accept && (de.headers || (de.headers = {}), de.headers.Accept = ee.accept, de.headers.accept = ee.accept),
|
|
34357
|
-
var
|
|
34358
|
-
if (
|
|
34355
|
+
), se = ee.responseType === "blob" || ee.responseType === "arraybuffer" || ee.accept && !ee.accept.includes("json") || ee.apiUrl && (ee.apiUrl.includes("/export") || ee.apiUrl.includes("/download")) || k.actionType === "EXPORT" || k.permission === "EXPORT", de = { ...ee.config || {} };
|
|
34356
|
+
ee.accept && (de.headers || (de.headers = {}), de.headers.Accept = ee.accept, de.headers.accept = ee.accept), se && (de.responseType = ee.responseType || "blob"), l(ee.apiUrl, ee.apiMethod || "POST", Q, de).then((ke) => {
|
|
34357
|
+
var tt;
|
|
34358
|
+
if (se && (ke instanceof Blob || ((tt = ke == null ? void 0 : ke.constructor) == null ? void 0 : tt.name) === "Blob" || (ke == null ? void 0 : ke.size) !== void 0)) {
|
|
34359
34359
|
const Oe = ke instanceof Blob ? ke : new Blob([ke], { type: ee.accept || "application/octet-stream" });
|
|
34360
34360
|
if (Oe.type === "application/json") {
|
|
34361
34361
|
const rt = new FileReader();
|
|
34362
34362
|
rt.onload = () => {
|
|
34363
34363
|
try {
|
|
34364
|
-
const
|
|
34364
|
+
const Mt = JSON.parse(rt.result).message || (c.value === "id" ? "Gagal mengunduh file" : "Failed to download file");
|
|
34365
34365
|
et.update(te, {
|
|
34366
|
-
render:
|
|
34366
|
+
render: Mt,
|
|
34367
34367
|
type: "error",
|
|
34368
34368
|
isLoading: !1,
|
|
34369
34369
|
autoClose: 5e3
|
|
34370
34370
|
});
|
|
34371
34371
|
} catch {
|
|
34372
|
-
const
|
|
34373
|
-
Ft.href =
|
|
34372
|
+
const Mt = window.URL.createObjectURL(Oe), Ft = document.createElement("a");
|
|
34373
|
+
Ft.href = Mt;
|
|
34374
34374
|
const La = `${k.label || k.text || k.tooltip || "Export"}_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.pdf`;
|
|
34375
|
-
Ft.setAttribute("download", La), document.body.appendChild(Ft), Ft.click(), Ft.remove(), window.URL.revokeObjectURL(
|
|
34375
|
+
Ft.setAttribute("download", La), document.body.appendChild(Ft), Ft.click(), Ft.remove(), window.URL.revokeObjectURL(Mt), et.update(te, {
|
|
34376
34376
|
render: c.value === "id" ? "File berhasil diunduh!" : "File downloaded successfully!",
|
|
34377
34377
|
type: "success",
|
|
34378
34378
|
isLoading: !1,
|
|
@@ -34384,9 +34384,9 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34384
34384
|
}
|
|
34385
34385
|
const We = window.URL.createObjectURL(Oe), je = document.createElement("a");
|
|
34386
34386
|
je.href = We;
|
|
34387
|
-
let ot = "
|
|
34388
|
-
const
|
|
34389
|
-
|
|
34387
|
+
let ot = "txt";
|
|
34388
|
+
const nt = (ee.accept || "").toLowerCase(), Pt = (ee.apiUrl || "").toLowerCase();
|
|
34389
|
+
re != null && re.format ? ot = String(re.format).toLowerCase() : nt.includes("pdf") ? ot = "pdf" : nt.includes("excel") || nt.includes("sheet") || nt.includes("spreadsheet") || nt.includes("xlsx") ? ot = "xlsx" : nt.includes("csv") ? ot = "csv" : nt.includes("zip") ? ot = "zip" : Pt.includes("pdf") ? ot = "pdf" : Pt.includes("excel") || Pt.includes("xlsx") ? ot = "xlsx" : Pt.includes("csv") ? ot = "csv" : Pt.includes("zip") && (ot = "zip");
|
|
34390
34390
|
const Vt = `${k.label || k.text || k.tooltip || "Export"}_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.${ot}`;
|
|
34391
34391
|
je.setAttribute("download", Vt), document.body.appendChild(je), je.click(), je.remove(), window.URL.revokeObjectURL(We), et.update(te, {
|
|
34392
34392
|
render: c.value === "id" ? "File berhasil diunduh!" : "File downloaded successfully!",
|
|
@@ -34434,42 +34434,42 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34434
34434
|
if (ee) return ee;
|
|
34435
34435
|
const Q = Cc();
|
|
34436
34436
|
if (Q) return Q;
|
|
34437
|
-
const
|
|
34437
|
+
const se = (k.fieldActionGlobal || k.fieldActionCustom || k.field || []).find((de) => {
|
|
34438
34438
|
const ke = ["DCodeAutoComplete", "DCodeInfiniteAutoComplete", "DCodeMultiSelect", "DCodeSelect"].includes(de.component);
|
|
34439
34439
|
return /^(id|ids|idAuditTrail|idAppRequest)$/i.test(de.model) && !ke;
|
|
34440
34440
|
});
|
|
34441
|
-
return
|
|
34441
|
+
return se ? se.model : "ids";
|
|
34442
34442
|
}, tm = (k, z, ee) => {
|
|
34443
|
-
let Q = { ...
|
|
34443
|
+
let Q = { ...re };
|
|
34444
34444
|
const te = k.fieldMapping;
|
|
34445
34445
|
if (he.value) {
|
|
34446
|
-
const
|
|
34446
|
+
const se = ao.value, de = he.value[se];
|
|
34447
34447
|
Q[ee] || (/id$|idAppRequest|idSlikLogin/i.test(ee) || z != null && z.model ? Q[ee] = de : Q[ee] = [de]);
|
|
34448
34448
|
} else Q[ee] || (Q[ee] = qt.value || []);
|
|
34449
34449
|
if (te && typeof te == "object") {
|
|
34450
|
-
const
|
|
34450
|
+
const se = {}, de = Object.keys(te), ke = (k.fieldActionCustom || []).map((Qe) => Qe.model);
|
|
34451
34451
|
[.../* @__PURE__ */ new Set([...ke, ee])].forEach((Qe) => {
|
|
34452
|
-
Qe && !de.includes(Qe) && Q[Qe] !== void 0 && (
|
|
34453
|
-
}), Object.entries(te).forEach(([Qe,
|
|
34454
|
-
if (typeof
|
|
34452
|
+
Qe && !de.includes(Qe) && Q[Qe] !== void 0 && (se[Qe] = Q[Qe]);
|
|
34453
|
+
}), Object.entries(te).forEach(([Qe, tt]) => {
|
|
34454
|
+
if (typeof tt == "string") {
|
|
34455
34455
|
const Oe = yt(Q, Qe) ?? (he.value ? yt(he.value, Qe) : void 0);
|
|
34456
34456
|
if (Oe !== void 0) {
|
|
34457
34457
|
let We = Oe;
|
|
34458
|
-
Oe && typeof Oe == "object" && !Array.isArray(Oe) && /id|code|idSlik|idOperator|idSupervisor/i.test(
|
|
34458
|
+
Oe && typeof Oe == "object" && !Array.isArray(Oe) && /id|code|idSlik|idOperator|idSupervisor/i.test(tt) && (We = Oe.id ?? Oe.code ?? Oe.value ?? Oe), se[tt] = /id$|idAppRequest|idSlikLogin/i.test(tt) && Array.isArray(We) ? We[0] : We;
|
|
34459
34459
|
}
|
|
34460
34460
|
}
|
|
34461
|
-
}), Q =
|
|
34461
|
+
}), Q = se;
|
|
34462
34462
|
}
|
|
34463
34463
|
return Q;
|
|
34464
34464
|
}, nm = (k, z, ee) => {
|
|
34465
34465
|
const Q = et.loading(
|
|
34466
34466
|
c.value === "id" ? "Memproses..." : "Processing..."
|
|
34467
|
-
), te = z.responseType === "blob" || z.responseType === "arraybuffer" || z.accept && !z.accept.includes("json") || z.apiUrl && (z.apiUrl.includes("/export") || z.apiUrl.includes("/download")) || k.actionType === "EXPORT" || k.permission === "EXPORT",
|
|
34468
|
-
z.accept && (
|
|
34467
|
+
), te = z.responseType === "blob" || z.responseType === "arraybuffer" || z.accept && !z.accept.includes("json") || z.apiUrl && (z.apiUrl.includes("/export") || z.apiUrl.includes("/download")) || k.actionType === "EXPORT" || k.permission === "EXPORT", se = { ...z.config || {} };
|
|
34468
|
+
z.accept && (se.headers || (se.headers = {}), se.headers.Accept = z.accept, se.headers.accept = z.accept), te && (se.responseType = z.responseType || "blob"), l(z.apiUrl, z.apiMethod || "POST", ee, se).then((de) => {
|
|
34469
34469
|
var Qe;
|
|
34470
34470
|
if (te && (de instanceof Blob || ((Qe = de == null ? void 0 : de.constructor) == null ? void 0 : Qe.name) === "Blob" || (de == null ? void 0 : de.size) !== void 0)) {
|
|
34471
|
-
const
|
|
34472
|
-
if (
|
|
34471
|
+
const tt = de instanceof Blob ? de : new Blob([de], { type: z.accept || "application/octet-stream" });
|
|
34472
|
+
if (tt.type === "application/json") {
|
|
34473
34473
|
const Vt = new FileReader();
|
|
34474
34474
|
Vt.onload = () => {
|
|
34475
34475
|
try {
|
|
@@ -34481,24 +34481,24 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34481
34481
|
autoClose: 5e3
|
|
34482
34482
|
});
|
|
34483
34483
|
} catch {
|
|
34484
|
-
const Ye = window.URL.createObjectURL(
|
|
34485
|
-
|
|
34484
|
+
const Ye = window.URL.createObjectURL(tt), Mt = document.createElement("a");
|
|
34485
|
+
Mt.href = Ye;
|
|
34486
34486
|
const Sn = `${k.label || k.text || k.tooltip || "Export"}_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.pdf`;
|
|
34487
|
-
|
|
34487
|
+
Mt.setAttribute("download", Sn), document.body.appendChild(Mt), Mt.click(), Mt.remove(), window.URL.revokeObjectURL(Ye), et.update(Q, {
|
|
34488
34488
|
render: c.value === "id" ? "File berhasil diunduh!" : "File downloaded successfully!",
|
|
34489
34489
|
type: "success",
|
|
34490
34490
|
isLoading: !1,
|
|
34491
34491
|
autoClose: 2e3
|
|
34492
34492
|
});
|
|
34493
34493
|
}
|
|
34494
|
-
}, Vt.readAsText(
|
|
34494
|
+
}, Vt.readAsText(tt);
|
|
34495
34495
|
return;
|
|
34496
34496
|
}
|
|
34497
|
-
const Oe = window.URL.createObjectURL(
|
|
34497
|
+
const Oe = window.URL.createObjectURL(tt), We = document.createElement("a");
|
|
34498
34498
|
We.href = Oe;
|
|
34499
|
-
let je = "
|
|
34500
|
-
const ot = (z.accept || "").toLowerCase(),
|
|
34501
|
-
ot.includes("pdf") ? je = "pdf" : ot.includes("excel") || ot.includes("sheet") || ot.includes("spreadsheet") || ot.includes("xlsx") ? je = "xlsx" : ot.includes("csv") ? je = "csv" : ot.includes("zip") ? je = "zip" :
|
|
34499
|
+
let je = "txt";
|
|
34500
|
+
const ot = (z.accept || "").toLowerCase(), nt = (z.apiUrl || "").toLowerCase();
|
|
34501
|
+
re != null && re.format ? je = String(re.format).toLowerCase() : ee != null && ee.format ? je = String(ee.format).toLowerCase() : ot.includes("pdf") ? je = "pdf" : ot.includes("excel") || ot.includes("sheet") || ot.includes("spreadsheet") || ot.includes("xlsx") ? je = "xlsx" : ot.includes("csv") ? je = "csv" : ot.includes("zip") ? je = "zip" : nt.includes("pdf") ? je = "pdf" : nt.includes("excel") || nt.includes("xlsx") ? je = "xlsx" : nt.includes("csv") ? je = "csv" : nt.includes("zip") && (je = "zip");
|
|
34502
34502
|
const gt = `${k.label || k.text || k.tooltip || "Export"}_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.${je}`;
|
|
34503
34503
|
We.setAttribute("download", gt), document.body.appendChild(We), We.click(), We.remove(), window.URL.revokeObjectURL(Oe), et.update(Q, {
|
|
34504
34504
|
render: c.value === "id" ? "File berhasil diunduh!" : "File downloaded successfully!",
|
|
@@ -34528,12 +34528,12 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34528
34528
|
const z = (k == null ? void 0 : k.routeBack) || (k == null ? void 0 : k.pathBack) || ((ee = S.value) == null ? void 0 : ee.routeBack) || ((Q = S.value) == null ? void 0 : Q.pathBack);
|
|
34529
34529
|
z && A.push(z);
|
|
34530
34530
|
}, om = (k, z) => {
|
|
34531
|
-
var Q, te,
|
|
34532
|
-
const ee = { ...
|
|
34531
|
+
var Q, te, se, de, ke;
|
|
34532
|
+
const ee = { ...re };
|
|
34533
34533
|
if (he.value) {
|
|
34534
34534
|
const Ie = ((Q = o.tableConfig) == null ? void 0 : Q.modelDatatable) || ((te = S.value) == null ? void 0 : te.modelDatatable) || k.modelDatatable;
|
|
34535
34535
|
r("action", {
|
|
34536
|
-
action: ((
|
|
34536
|
+
action: ((se = k.propsActionGlobal) == null ? void 0 : se.key) || k.key || z,
|
|
34537
34537
|
row: ee,
|
|
34538
34538
|
originalRow: he.value,
|
|
34539
34539
|
rowIndex: Te.value,
|
|
@@ -34555,16 +34555,16 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34555
34555
|
}
|
|
34556
34556
|
F.value = !1, he.value || (qt.value = []), vi(k);
|
|
34557
34557
|
}, rm = () => {
|
|
34558
|
-
var
|
|
34558
|
+
var se, de, ke, Ie;
|
|
34559
34559
|
if (!Z.value) return;
|
|
34560
|
-
const k = Z.value, z = Er(k), ee = (k.actionType || k.permission || "").toLowerCase(), Q = !!((
|
|
34560
|
+
const k = Z.value, z = Er(k), ee = (k.actionType || k.permission || "").toLowerCase(), Q = !!((se = k.endpointDialogActionSave) != null && se.apiUrl || (ke = (de = k.propsActionGlobal) == null ? void 0 : de.endpointDialogActionSave) != null && ke.apiUrl);
|
|
34561
34561
|
if ((z == null ? void 0 : z.apiUrl) && (((Ie = z.apiMethod) == null ? void 0 : Ie.toUpperCase()) !== "GET" || Q)) {
|
|
34562
|
-
const Qe = em(k, z),
|
|
34563
|
-
nm(k, z,
|
|
34562
|
+
const Qe = em(k, z), tt = tm(k, z, Qe);
|
|
34563
|
+
nm(k, z, tt);
|
|
34564
34564
|
} else
|
|
34565
34565
|
om(k, ee);
|
|
34566
34566
|
}, am = (k) => {
|
|
34567
|
-
const z =
|
|
34567
|
+
const z = re[k];
|
|
34568
34568
|
z && Qy(String(z)).then(() => {
|
|
34569
34569
|
et.success(u("datatable.copiedSuccess"), { autoClose: 2e3, theme: "dark", pauseOnHover: !1 });
|
|
34570
34570
|
}).catch((ee) => {
|
|
@@ -34575,7 +34575,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34575
34575
|
}, sm = H(() => Y.value ? Y.value.button.confirmTitle || u("common.confirm") : ""), im = H(() => Y.value ? Y.value.button.confirmMessage || u("common.confirmMessage") : "");
|
|
34576
34576
|
t({
|
|
34577
34577
|
fetchData: Ut,
|
|
34578
|
-
filters:
|
|
34578
|
+
filters: ie,
|
|
34579
34579
|
resetFilters: $c,
|
|
34580
34580
|
handleRefresh: Nc,
|
|
34581
34581
|
currentPage: L,
|
|
@@ -34668,12 +34668,12 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34668
34668
|
k !== Eo.value && (Eo.value = k, oe.value = !0, Ut());
|
|
34669
34669
|
}
|
|
34670
34670
|
}), (k, z) => {
|
|
34671
|
-
var ee, Q, te,
|
|
34671
|
+
var ee, Q, te, se, de, ke, Ie, Qe, tt;
|
|
34672
34672
|
return b(), M("div", hL, [
|
|
34673
34673
|
Sr((ee = S.value) == null ? void 0 : ee.isHidden) ? ne("", !0) : (b(), M("div", pL, [
|
|
34674
34674
|
e.nested ? (b(), M("div", gL, [
|
|
34675
34675
|
z[9] || (z[9] = D("div", { class: "h-4 w-1 bg-white/50 rounded-full" }, null, -1)),
|
|
34676
|
-
D("span", mL,
|
|
34676
|
+
D("span", mL, ae(E(c) === "kr" || E(c) === "ko" ? ((Q = S.value) == null ? void 0 : Q.titleKR) || ((te = S.value) == null ? void 0 : te.titleEN) || ((se = S.value) == null ? void 0 : se.titleID) : E(c) === "id" ? (de = S.value) == null ? void 0 : de.titleID : ((ke = S.value) == null ? void 0 : ke.titleEN) || ((Ie = S.value) == null ? void 0 : Ie.titleID)), 1)
|
|
34677
34677
|
])) : ne("", !0),
|
|
34678
34678
|
D("div", bL, [
|
|
34679
34679
|
!e.nested || e.dummyMode || B.value ? (b(), M("div", yL, [
|
|
@@ -34694,7 +34694,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34694
34694
|
description: h.value
|
|
34695
34695
|
}, {
|
|
34696
34696
|
trigger: _e(() => [
|
|
34697
|
-
ue(
|
|
34697
|
+
ue(Tt, {
|
|
34698
34698
|
variant: "secondary",
|
|
34699
34699
|
icon: "SlidersHorizontal",
|
|
34700
34700
|
tooltip: u("common.advanceSearch"),
|
|
@@ -34703,7 +34703,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34703
34703
|
]),
|
|
34704
34704
|
default: _e(() => [
|
|
34705
34705
|
D("div", kL, [
|
|
34706
|
-
Xe(k.$slots, "filter-form", { filters:
|
|
34706
|
+
Xe(k.$slots, "filter-form", { filters: ie.value }, () => [
|
|
34707
34707
|
J.value.length > 0 ? (b(), M("div", wL, [
|
|
34708
34708
|
D("div", CL, [
|
|
34709
34709
|
(b(!0), M(Pe, null, Ge(fe.value, (Oe, We) => (b(), M(Pe, { key: We }, [
|
|
@@ -34713,8 +34713,8 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34713
34713
|
}, [
|
|
34714
34714
|
ue(iR, {
|
|
34715
34715
|
field: Oe,
|
|
34716
|
-
modelValue:
|
|
34717
|
-
"onUpdate:modelValue": (je) =>
|
|
34716
|
+
modelValue: ie.value[Oe.model],
|
|
34717
|
+
"onUpdate:modelValue": (je) => ie.value[Oe.model] = je,
|
|
34718
34718
|
disabled: E(pc)(Oe),
|
|
34719
34719
|
required: E(Jo)(Oe),
|
|
34720
34720
|
readonly: E(gc)(Oe),
|
|
@@ -34737,7 +34737,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34737
34737
|
}, {
|
|
34738
34738
|
default: _e(() => [
|
|
34739
34739
|
ue(E(Vr), { class: "w-4 h-4" }),
|
|
34740
|
-
Ue(" " +
|
|
34740
|
+
Ue(" " + ae(u("common.reset")), 1)
|
|
34741
34741
|
]),
|
|
34742
34742
|
_: 1
|
|
34743
34743
|
}, 8, ["disabled"]),
|
|
@@ -34748,7 +34748,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34748
34748
|
}, {
|
|
34749
34749
|
default: _e(() => [
|
|
34750
34750
|
ue(E($a), { class: "w-4 h-4" }),
|
|
34751
|
-
Ue(" " +
|
|
34751
|
+
Ue(" " + ae(u("common.search")), 1)
|
|
34752
34752
|
]),
|
|
34753
34753
|
_: 1
|
|
34754
34754
|
}, 8, ["disabled"])
|
|
@@ -34763,7 +34763,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34763
34763
|
D("div", {
|
|
34764
34764
|
class: ve(["flex items-center gap-2 flex-wrap", { "ml-auto": e.nested }])
|
|
34765
34765
|
}, [
|
|
34766
|
-
(!e.nested || e.dummyMode || j.value) && $t.value ? (b(), Me(
|
|
34766
|
+
(!e.nested || e.dummyMode || j.value) && $t.value ? (b(), Me(Tt, {
|
|
34767
34767
|
key: 0,
|
|
34768
34768
|
variant: "secondary",
|
|
34769
34769
|
icon: "RefreshCw",
|
|
@@ -34780,7 +34780,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34780
34780
|
]),
|
|
34781
34781
|
_: 1
|
|
34782
34782
|
}, 8, ["text", "tooltip", "disabled"])) : ne("", !0),
|
|
34783
|
-
(b(!0), M(Pe, null, Ge(Dc.value, (Oe, We) => (b(), Me(
|
|
34783
|
+
(b(!0), M(Pe, null, Ge(Dc.value, (Oe, We) => (b(), Me(Tt, {
|
|
34784
34784
|
key: We,
|
|
34785
34785
|
icon: Oe.icon,
|
|
34786
34786
|
text: Oe.label,
|
|
@@ -34829,11 +34829,11 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34829
34829
|
key: 1,
|
|
34830
34830
|
class: ve(["flex items-center gap-2 w-full", Sg(Oe.align)])
|
|
34831
34831
|
}, [
|
|
34832
|
-
D("span", null,
|
|
34832
|
+
D("span", null, ae(Oe.label), 1)
|
|
34833
34833
|
], 2))
|
|
34834
34834
|
], 14, TL))), 128)),
|
|
34835
34835
|
Dr.value ? (b(), M("th", PL, [
|
|
34836
|
-
D("div", LL,
|
|
34836
|
+
D("div", LL, ae(u("common.actions")), 1)
|
|
34837
34837
|
])) : ne("", !0)
|
|
34838
34838
|
])
|
|
34839
34839
|
]),
|
|
@@ -34877,8 +34877,8 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34877
34877
|
width: 200
|
|
34878
34878
|
}, null, 8, ["animationData"]),
|
|
34879
34879
|
D("div", null, [
|
|
34880
|
-
D("p", zL,
|
|
34881
|
-
D("p", jL,
|
|
34880
|
+
D("p", zL, ae(Rc.value ? u("datatable.noSearchResults") : u("common.noData")), 1),
|
|
34881
|
+
D("p", jL, ae(Rc.value ? u("datatable.tryChangingKeywords") : u("datatable.noDataAdded")), 1)
|
|
34882
34882
|
])
|
|
34883
34883
|
])
|
|
34884
34884
|
], 8, BL)
|
|
@@ -34895,7 +34895,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34895
34895
|
row: Oe,
|
|
34896
34896
|
value: yt(Oe, je.key)
|
|
34897
34897
|
}, () => {
|
|
34898
|
-
var ot,
|
|
34898
|
+
var ot, nt, Pt, gt, Vt, rt, Ye, Mt;
|
|
34899
34899
|
return [
|
|
34900
34900
|
["CHECKBOX", "checkbox"].includes(je.type ?? "") && !Sr(je.isHidden) ? (b(), M("div", VL, [
|
|
34901
34901
|
D("input", {
|
|
@@ -34906,7 +34906,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34906
34906
|
onClick: z[3] || (z[3] = St(() => {
|
|
34907
34907
|
}, ["stop"]))
|
|
34908
34908
|
}, null, 40, WL)
|
|
34909
|
-
])) : je.type === "badge" || je.type === "BADGE" || ((ot = je.custom) == null ? void 0 : ot.type) === "badge" || ((
|
|
34909
|
+
])) : je.type === "badge" || je.type === "BADGE" || ((ot = je.custom) == null ? void 0 : ot.type) === "badge" || ((nt = je.custom) == null ? void 0 : nt.type) === "BADGE" || je.condition ? (b(), M("div", {
|
|
34910
34910
|
key: 1,
|
|
34911
34911
|
class: ve(["flex items-center gap-1.5 flex-wrap md:flex-nowrap", [
|
|
34912
34912
|
je.align ? `justify-${je.align.toLowerCase()}` : "justify-start"
|
|
@@ -34921,20 +34921,20 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34921
34921
|
])
|
|
34922
34922
|
}, {
|
|
34923
34923
|
default: _e(() => [
|
|
34924
|
-
Ue(
|
|
34924
|
+
Ue(ae(Pa(Oe, je).label), 1)
|
|
34925
34925
|
]),
|
|
34926
34926
|
_: 2
|
|
34927
34927
|
}, 1032, ["variant", "color", "class"])
|
|
34928
34928
|
], 2)) : je.key === "no" ? (b(), M(Pe, { key: 2 }, [
|
|
34929
|
-
Ue(
|
|
34929
|
+
Ue(ae((L.value - 1) * P.value + We + 1), 1)
|
|
34930
34930
|
], 64)) : je.type === "HYPERLINK" || je.type === "hyperlink" ? (b(), M("a", {
|
|
34931
34931
|
key: 3,
|
|
34932
|
-
href: yt(Oe, (gt = (
|
|
34932
|
+
href: yt(Oe, (gt = (Pt = je.propsCustom) == null ? void 0 : Pt[0]) == null ? void 0 : gt.urlLink) || "#",
|
|
34933
34933
|
target: ((rt = (Vt = je.propsCustom) == null ? void 0 : Vt[0]) == null ? void 0 : rt.target) || "_blank",
|
|
34934
34934
|
class: "text-blue-600 dark:text-blue-400 hover:underline inline-flex items-center gap-1 font-medium"
|
|
34935
34935
|
}, [
|
|
34936
|
-
Ue(
|
|
34937
|
-
((
|
|
34936
|
+
Ue(ae(yt(Oe, je.key) || "-") + " ", 1),
|
|
34937
|
+
((Mt = (Ye = je.propsCustom) == null ? void 0 : Ye[0]) == null ? void 0 : Mt.target) === "_blank" ? (b(), M("span", KL, [...z[12] || (z[12] = [
|
|
34938
34938
|
D("svg", {
|
|
34939
34939
|
xmlns: "http://www.w3.org/2000/svg",
|
|
34940
34940
|
width: "12",
|
|
@@ -34957,7 +34957,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34957
34957
|
], -1)
|
|
34958
34958
|
])])) : ne("", !0)
|
|
34959
34959
|
], 8, HL)) : (b(), M(Pe, { key: 4 }, [
|
|
34960
|
-
Ue(
|
|
34960
|
+
Ue(ae(Og(Oe, je)), 1)
|
|
34961
34961
|
], 64))
|
|
34962
34962
|
];
|
|
34963
34963
|
})
|
|
@@ -34974,7 +34974,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34974
34974
|
key: ot,
|
|
34975
34975
|
class: "group relative"
|
|
34976
34976
|
}, [
|
|
34977
|
-
ue(
|
|
34977
|
+
ue(Tt, {
|
|
34978
34978
|
tooltip: je.tooltip || je.label,
|
|
34979
34979
|
icon: je.icon,
|
|
34980
34980
|
text: je.icon ? "" : je.label || u("common.actions"),
|
|
@@ -34984,7 +34984,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
34984
34984
|
"border-color": je.borderColor,
|
|
34985
34985
|
variant: je.variant || "ghost",
|
|
34986
34986
|
"bg-color": Mc(je, Oe),
|
|
34987
|
-
onClick: (
|
|
34987
|
+
onClick: (nt) => jc(je, Oe, We)
|
|
34988
34988
|
}, null, 8, ["tooltip", "icon", "text", "size", "rounded", "border-style", "border-color", "variant", "bg-color", "onClick"])
|
|
34989
34989
|
]))), 128))
|
|
34990
34990
|
])) : ne("", !0)
|
|
@@ -35028,7 +35028,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
35028
35028
|
value: String(Oe)
|
|
35029
35029
|
}, {
|
|
35030
35030
|
default: _e(() => [
|
|
35031
|
-
Ue(
|
|
35031
|
+
Ue(ae(Oe), 1)
|
|
35032
35032
|
]),
|
|
35033
35033
|
_: 2
|
|
35034
35034
|
}, 1032, ["value"])), 64))
|
|
@@ -35041,11 +35041,11 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
35041
35041
|
z[17] || (z[17] = D("div", { class: "h-5 w-px bg-zinc-300 dark:bg-zinc-600" }, null, -1)),
|
|
35042
35042
|
D("span", ZL, [
|
|
35043
35043
|
z[13] || (z[13] = Ue(" Showing ", -1)),
|
|
35044
|
-
D("span", eI,
|
|
35044
|
+
D("span", eI, ae(Mg.value), 1),
|
|
35045
35045
|
z[14] || (z[14] = Ue(" to ", -1)),
|
|
35046
|
-
D("span", tI,
|
|
35046
|
+
D("span", tI, ae(Tg.value), 1),
|
|
35047
35047
|
z[15] || (z[15] = Ue(" of ", -1)),
|
|
35048
|
-
D("span", nI,
|
|
35048
|
+
D("span", nI, ae(Oa.value), 1),
|
|
35049
35049
|
z[16] || (z[16] = Ue(" items ", -1))
|
|
35050
35050
|
])
|
|
35051
35051
|
]),
|
|
@@ -35088,7 +35088,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
35088
35088
|
onClick: (ot) => Bc(We.value)
|
|
35089
35089
|
}, {
|
|
35090
35090
|
default: _e(() => [
|
|
35091
|
-
Ue(
|
|
35091
|
+
Ue(ae(We.value), 1)
|
|
35092
35092
|
]),
|
|
35093
35093
|
_: 2
|
|
35094
35094
|
}, 1032, ["variant", "disabled", "onClick"])
|
|
@@ -35128,12 +35128,12 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
35128
35128
|
persistent: !1
|
|
35129
35129
|
}, {
|
|
35130
35130
|
actions: _e(() => [
|
|
35131
|
-
ue(
|
|
35131
|
+
ue(Tt, {
|
|
35132
35132
|
variant: "outline",
|
|
35133
35133
|
onClick: Uc,
|
|
35134
35134
|
text: u("common.cancel")
|
|
35135
35135
|
}, null, 8, ["text"]),
|
|
35136
|
-
ue(
|
|
35136
|
+
ue(Tt, {
|
|
35137
35137
|
variant: "default",
|
|
35138
35138
|
onClick: Zg,
|
|
35139
35139
|
text: u("common.yes")
|
|
@@ -35141,7 +35141,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
35141
35141
|
]),
|
|
35142
35142
|
default: _e(() => [
|
|
35143
35143
|
D("div", rI, [
|
|
35144
|
-
D("p", aI,
|
|
35144
|
+
D("p", aI, ae(im.value), 1)
|
|
35145
35145
|
])
|
|
35146
35146
|
]),
|
|
35147
35147
|
_: 1
|
|
@@ -35152,23 +35152,23 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
35152
35152
|
title: xc.value,
|
|
35153
35153
|
description: kc.value,
|
|
35154
35154
|
icon: "AlertCircle",
|
|
35155
|
-
size: (((
|
|
35155
|
+
size: (((tt = (Qe = Z.value) == null ? void 0 : Qe.dialogConfig) == null ? void 0 : tt.layoutSize) || "md").toLowerCase()
|
|
35156
35156
|
}, {
|
|
35157
35157
|
actions: _e(() => {
|
|
35158
35158
|
var Oe, We;
|
|
35159
35159
|
return [
|
|
35160
|
-
ue(
|
|
35160
|
+
ue(Tt, {
|
|
35161
35161
|
variant: "outline",
|
|
35162
35162
|
onClick: z[6] || (z[6] = (je) => F.value = !1),
|
|
35163
35163
|
text: me.value ? u("common.close") : u("common.cancel")
|
|
35164
35164
|
}, null, 8, ["text"]),
|
|
35165
|
-
!me.value && !(e.dummyMode && ((Oe = Z.value) != null && Oe.route)) ? (b(), Me(
|
|
35165
|
+
!me.value && !(e.dummyMode && ((Oe = Z.value) != null && Oe.route)) ? (b(), Me(Tt, {
|
|
35166
35166
|
key: 0,
|
|
35167
35167
|
variant: "default",
|
|
35168
35168
|
onClick: rm,
|
|
35169
35169
|
text: u("common.save")
|
|
35170
35170
|
}, null, 8, ["text"])) : ne("", !0),
|
|
35171
|
-
!me.value && e.dummyMode && ((We = Z.value) != null && We.route) ? (b(), Me(
|
|
35171
|
+
!me.value && e.dummyMode && ((We = Z.value) != null && We.route) ? (b(), Me(Tt, {
|
|
35172
35172
|
key: 1,
|
|
35173
35173
|
variant: "default",
|
|
35174
35174
|
onClick: z[7] || (z[7] = (je) => F.value = !1),
|
|
@@ -35185,7 +35185,7 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
35185
35185
|
oe.value ? (b(), M("div", sI, [
|
|
35186
35186
|
D("div", iI, [
|
|
35187
35187
|
z[18] || (z[18] = D("div", { class: "w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin" }, null, -1)),
|
|
35188
|
-
D("span", lI,
|
|
35188
|
+
D("span", lI, ae(u("datatable.loadingData")), 1)
|
|
35189
35189
|
])
|
|
35190
35190
|
])) : ne("", !0),
|
|
35191
35191
|
e.dummyMode && ((ot = Z.value) != null && ot.route) ? (b(), M("div", cI, [
|
|
@@ -35193,39 +35193,39 @@ const hL = { class: "dcode-card animate-slide-up" }, pL = {
|
|
|
35193
35193
|
ue(E($a), { class: "w-4 h-4" })
|
|
35194
35194
|
]),
|
|
35195
35195
|
D("div", uI, [
|
|
35196
|
-
D("span", fI,
|
|
35197
|
-
D("p", hI,
|
|
35196
|
+
D("span", fI, ae(u("datatable.navigationInfo")), 1),
|
|
35197
|
+
D("p", hI, ae(u("datatable.navigationRouteInfo", { route: Z.value.route })), 1)
|
|
35198
35198
|
])
|
|
35199
35199
|
])) : ne("", !0),
|
|
35200
|
-
(b(!0), M(Pe, null, Ge(Se.value, (
|
|
35201
|
-
var gt, Vt, rt, Ye,
|
|
35202
|
-
return b(), M(Pe, { key:
|
|
35203
|
-
!
|
|
35200
|
+
(b(!0), M(Pe, null, Ge(Se.value, (nt, Pt) => {
|
|
35201
|
+
var gt, Vt, rt, Ye, Mt, Ft, Sn;
|
|
35202
|
+
return b(), M(Pe, { key: Pt }, [
|
|
35203
|
+
!nt.isHidden && !E(ye)(nt) && E(Fe)(nt) && !(e.dummyMode && ((gt = Z.value) != null && gt.route)) ? (b(), M("div", {
|
|
35204
35204
|
key: 0,
|
|
35205
|
-
class: ve(E(Et)(
|
|
35205
|
+
class: ve(E(Et)(nt, ((rt = (Vt = Z.value) == null ? void 0 : Vt.dialogConfig) == null ? void 0 : rt.layoutColumns) || ((Ye = Z.value) == null ? void 0 : Ye.layoutColumns)))
|
|
35206
35206
|
}, [
|
|
35207
35207
|
D("div", pI, [
|
|
35208
35208
|
ue(Da, {
|
|
35209
35209
|
class: "flex-1 w-full",
|
|
35210
|
-
field: jg(
|
|
35211
|
-
"model-value":
|
|
35212
|
-
"form-data":
|
|
35213
|
-
required: E(Ne)(
|
|
35214
|
-
disabled: E(le)(
|
|
35215
|
-
readonly: E(be)(
|
|
35216
|
-
options: E(xe)(
|
|
35217
|
-
"dynamic-labels": E(Re)(
|
|
35218
|
-
"dynamic-length": E(ge)(
|
|
35210
|
+
field: jg(nt),
|
|
35211
|
+
"model-value": re[nt.model],
|
|
35212
|
+
"form-data": re,
|
|
35213
|
+
required: E(Ne)(nt),
|
|
35214
|
+
disabled: E(le)(nt),
|
|
35215
|
+
readonly: E(be)(nt),
|
|
35216
|
+
options: E(xe)(nt),
|
|
35217
|
+
"dynamic-labels": E(Re)(nt),
|
|
35218
|
+
"dynamic-length": E(ge)(nt),
|
|
35219
35219
|
"dummy-mode": e.dummyMode,
|
|
35220
|
-
"onUpdate:modelValue": (La) =>
|
|
35220
|
+
"onUpdate:modelValue": (La) => re[nt.model] = La
|
|
35221
35221
|
}, null, 8, ["field", "model-value", "form-data", "required", "disabled", "readonly", "options", "dynamic-labels", "dynamic-length", "dummy-mode", "onUpdate:modelValue"]),
|
|
35222
|
-
|
|
35222
|
+
nt.isCopyable || (Mt = nt.props) != null && Mt.isCopyable || ((Ft = Z.value) == null ? void 0 : Ft.action) === "showToken" || ((Sn = Z.value) == null ? void 0 : Sn.action) === "copyToken" ? (b(), Me(Tt, {
|
|
35223
35223
|
key: 0,
|
|
35224
35224
|
icon: "Copy",
|
|
35225
35225
|
variant: "outline",
|
|
35226
35226
|
class: "h-10 w-10 p-0 flex-shrink-0",
|
|
35227
35227
|
tooltip: u("common.copy"),
|
|
35228
|
-
onClick: (La) => am(
|
|
35228
|
+
onClick: (La) => am(nt.model)
|
|
35229
35229
|
}, null, 8, ["tooltip", "onClick"])) : ne("", !0)
|
|
35230
35230
|
])
|
|
35231
35231
|
], 2)) : ne("", !0)
|
|
@@ -35629,8 +35629,8 @@ function yI({
|
|
|
35629
35629
|
let N = "bin";
|
|
35630
35630
|
const F = (v.accept || "").toLowerCase(), q = (v.apiUrl || "").toLowerCase();
|
|
35631
35631
|
F.includes("pdf") ? N = "pdf" : F.includes("excel") || F.includes("sheet") || F.includes("spreadsheet") || F.includes("xlsx") ? N = "xlsx" : F.includes("csv") ? N = "csv" : F.includes("zip") ? N = "zip" : q.includes("pdf") ? N = "pdf" : q.includes("excel") || q.includes("xlsx") ? N = "xlsx" : q.includes("csv") ? N = "csv" : q.includes("zip") && (N = "zip");
|
|
35632
|
-
const
|
|
35633
|
-
V.setAttribute("download",
|
|
35632
|
+
const ie = `${x.label || C.labelID || C.labelEN || "Export"}_${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}.${N}`;
|
|
35633
|
+
V.setAttribute("download", ie), document.body.appendChild(V), V.click(), V.remove(), window.URL.revokeObjectURL(T), et.update(P, {
|
|
35634
35634
|
render: a.value === "id" ? "File berhasil diunduh!" : "File downloaded successfully!",
|
|
35635
35635
|
type: "success",
|
|
35636
35636
|
isLoading: !1,
|
|
@@ -35681,12 +35681,12 @@ function yI({
|
|
|
35681
35681
|
const V = { ...(((L = r.currentRoute) == null ? void 0 : L.value) || r.currentRoute || {}).query || {} };
|
|
35682
35682
|
let N = !1;
|
|
35683
35683
|
const F = pa(j), q = ["status", "success", "code", "message", "error", "errorCode", "errorMessage"];
|
|
35684
|
-
if (Object.entries(F).forEach(([Y,
|
|
35685
|
-
!q.includes(Y) &&
|
|
35684
|
+
if (Object.entries(F).forEach(([Y, ie]) => {
|
|
35685
|
+
!q.includes(Y) && ie !== null && ie !== void 0 && (typeof ie == "string" || typeof ie == "number" || typeof ie == "boolean") && V[Y] !== String(ie) && (V[Y] = String(ie), N = !0);
|
|
35686
35686
|
}), N && typeof window < "u" && window.history) {
|
|
35687
35687
|
const Y = new URL(window.location.href);
|
|
35688
|
-
Object.entries(V).forEach(([
|
|
35689
|
-
J != null && Y.searchParams.set(
|
|
35688
|
+
Object.entries(V).forEach(([ie, J]) => {
|
|
35689
|
+
J != null && Y.searchParams.set(ie, String(J));
|
|
35690
35690
|
}), window.history.replaceState(window.history.state, "", Y.toString());
|
|
35691
35691
|
}
|
|
35692
35692
|
}
|
|
@@ -35782,30 +35782,30 @@ function vI(e) {
|
|
|
35782
35782
|
disabledRule: (W = T.logic) == null ? void 0 : W.disabledRule,
|
|
35783
35783
|
optionsFilterRule: (G = T.logic) == null ? void 0 : G.optionsFilterRule,
|
|
35784
35784
|
lengthRule: (Z = T.logic) == null ? void 0 : Z.lengthRule
|
|
35785
|
-
}, Y = {},
|
|
35785
|
+
}, Y = {}, ie = T.props || T.propsFieldCustom || T.propsFieldGlobal || {}, J = ie.endpoint || ie.endpointReference || ie.endpointComponent || ie.endpointPropAction;
|
|
35786
35786
|
if (Object.entries(q).forEach(([he, Te]) => {
|
|
35787
35787
|
if (!Te) return;
|
|
35788
|
-
let
|
|
35789
|
-
he === "visibleRule" ?
|
|
35790
|
-
const Ce = JSON.stringify(
|
|
35788
|
+
let re;
|
|
35789
|
+
he === "visibleRule" ? re = s.isFieldVisible(T, y) : he === "disabledRule" ? re = s.isFieldDisabled(T, y) : he === "optionsFilterRule" ? re = s.getFilteredItems(T, y) : he === "lengthRule" && (re = s.resolveFieldLength(T, y));
|
|
35790
|
+
const Ce = JSON.stringify(re);
|
|
35791
35791
|
Y[he] = Ce;
|
|
35792
35792
|
const we = _.get(N);
|
|
35793
|
-
(we == null ? void 0 : we[he]) !== void 0 && we[he] !== Ce && (he === "visibleRule" &&
|
|
35793
|
+
(we == null ? void 0 : we[he]) !== void 0 && we[he] !== Ce && (he === "visibleRule" && re === !1 || he === "disabledRule" && re === !0 || he === "optionsFilterRule" || he === "lengthRule") && (y[F] = null);
|
|
35794
35794
|
}), Array.isArray(J == null ? void 0 : J.keyParam) && J.keyParam.forEach((he) => {
|
|
35795
35795
|
var me;
|
|
35796
|
-
let Te,
|
|
35796
|
+
let Te, re;
|
|
35797
35797
|
if (typeof he == "string")
|
|
35798
|
-
Te = y[he],
|
|
35798
|
+
Te = y[he], re = `kp-${he}`;
|
|
35799
35799
|
else if (typeof he == "object" && he !== null)
|
|
35800
|
-
Te = Object.values(he).map((Ee) => y[Ee]),
|
|
35800
|
+
Te = Object.values(he).map((Ee) => y[Ee]), re = `kp-${JSON.stringify(he)}`;
|
|
35801
35801
|
else
|
|
35802
35802
|
return;
|
|
35803
35803
|
const Ce = JSON.stringify(Te);
|
|
35804
|
-
Y[
|
|
35804
|
+
Y[re] = Ce;
|
|
35805
35805
|
const we = _.get(N);
|
|
35806
|
-
if (we == null || we[
|
|
35806
|
+
if (we == null || we[re], Ce !== (we == null ? void 0 : we[re])) {
|
|
35807
35807
|
c && c(T, !0, F, y), d && ((me = T.props) != null && me.fetchRule) && d(T, T.props.fetchRule, F, y);
|
|
35808
|
-
const Se = (we == null ? void 0 : we[
|
|
35808
|
+
const Se = (we == null ? void 0 : we[re]) === "null" || (we == null ? void 0 : we[re]) === "undefined" || !we, Ee = Ce === "null" || Ce === "undefined", De = typeof he == "string" && (he === T.key || he === T.model);
|
|
35809
35809
|
(!Se || Ee) && !De && (y[F] = null);
|
|
35810
35810
|
}
|
|
35811
35811
|
}), _.set(N, Y), !s.isFieldVisible(T, y)) {
|
|
@@ -35815,7 +35815,7 @@ function vI(e) {
|
|
|
35815
35815
|
});
|
|
35816
35816
|
}, A = () => {
|
|
35817
35817
|
!s || !p.value.length || (v(), p.value.forEach((T) => {
|
|
35818
|
-
var Y,
|
|
35818
|
+
var Y, ie, J;
|
|
35819
35819
|
const V = T.model;
|
|
35820
35820
|
if (!V) return;
|
|
35821
35821
|
const N = s.resolveDefaultValue(T, y);
|
|
@@ -35823,7 +35823,7 @@ function vI(e) {
|
|
|
35823
35823
|
const fe = y[V], W = (T.props || T.propsFieldCustom || T.propsFieldGlobal || {}).returnObject || ((Y = T.logic) == null ? void 0 : Y.returnObject);
|
|
35824
35824
|
(fe == null || fe === "" || W && (typeof fe == "string" || typeof fe == "number") && (typeof N == "object" && N !== null)) && (y[V] = N);
|
|
35825
35825
|
}
|
|
35826
|
-
const F = T.props || T.propsFieldCustom || T.propsFieldGlobal || {}, q = ((
|
|
35826
|
+
const F = T.props || T.propsFieldCustom || T.propsFieldGlobal || {}, q = ((ie = T.logic) == null ? void 0 : ie.autoSelect) || F.autoSelect || "single";
|
|
35827
35827
|
if (q !== "none" && (i != null && i.rawItemsCache)) {
|
|
35828
35828
|
const fe = i.rawItemsCache[T.key] || [];
|
|
35829
35829
|
if (fe.length > 0) {
|
|
@@ -35860,7 +35860,7 @@ function vI(e) {
|
|
|
35860
35860
|
var q, Y;
|
|
35861
35861
|
const V = T.modelKey || T.modelDatatable, N = T.key || T.id, F = (l == null ? void 0 : l.value) || ((q = i == null ? void 0 : i.internalSchema) == null ? void 0 : q.value) || ((Y = s == null ? void 0 : s.activeSchema) == null ? void 0 : Y.value);
|
|
35862
35862
|
if (F != null && F.sections && N) {
|
|
35863
|
-
const
|
|
35863
|
+
const ie = (fe, pe) => {
|
|
35864
35864
|
var W;
|
|
35865
35865
|
for (const G of fe)
|
|
35866
35866
|
if (G.type === "WIZARD" && ((W = G.propsWizard) != null && W.propsSteps))
|
|
@@ -35871,11 +35871,11 @@ function vI(e) {
|
|
|
35871
35871
|
return (Ce.key || Ce.id || ((me = Ce.propsTable) == null ? void 0 : me.key) || ((Se = Ce.propsTableStep) == null ? void 0 : Se.key) || ((Ee = Ce.propsForm) == null ? void 0 : Ee.key) || ((De = Ce.propsFormStep) == null ? void 0 : De.key)) === pe;
|
|
35872
35872
|
}))
|
|
35873
35873
|
return Z.modelKey || Z.key || null;
|
|
35874
|
-
const
|
|
35875
|
-
if (
|
|
35874
|
+
const re = ie(he, pe);
|
|
35875
|
+
if (re) return re;
|
|
35876
35876
|
}
|
|
35877
35877
|
return null;
|
|
35878
|
-
}, J =
|
|
35878
|
+
}, J = ie(F.sections, N);
|
|
35879
35879
|
if (J) {
|
|
35880
35880
|
const fe = `${J}.${V || N}`;
|
|
35881
35881
|
return console.log(`[resolveTableDataKey][WIZARD-MATCH] Resolved nested path: "${fe}" for section: "${N}"`), fe;
|
|
@@ -35923,13 +35923,13 @@ function vI(e) {
|
|
|
35923
35923
|
const Y = JSON.stringify(
|
|
35924
35924
|
V,
|
|
35925
35925
|
(J, fe) => ["no", "_index"].includes(J) ? void 0 : fe
|
|
35926
|
-
),
|
|
35926
|
+
), ie = F.findIndex(
|
|
35927
35927
|
(J) => JSON.stringify(
|
|
35928
35928
|
J,
|
|
35929
35929
|
(fe, pe) => ["no", "_index"].includes(fe) ? void 0 : pe
|
|
35930
35930
|
) === Y
|
|
35931
35931
|
);
|
|
35932
|
-
|
|
35932
|
+
ie !== -1 && F.splice(ie, 1);
|
|
35933
35933
|
}
|
|
35934
35934
|
mt(t, N, [...F]), n("update:model", o.getCleanPayload());
|
|
35935
35935
|
}
|
|
@@ -35941,14 +35941,14 @@ function vI(e) {
|
|
|
35941
35941
|
F ? m[T] = F : delete m[T];
|
|
35942
35942
|
}
|
|
35943
35943
|
}, O = (T, V, N) => {
|
|
35944
|
-
var
|
|
35944
|
+
var ie, J;
|
|
35945
35945
|
const F = "[FORM-TABLE-TRACER]";
|
|
35946
35946
|
console.log(`${F} Starting openTableRowDialog`, {
|
|
35947
35947
|
sectionKey: T.modelKey || T.key || T.id,
|
|
35948
35948
|
action: V.key || V.permission,
|
|
35949
35949
|
hasRowData: !!N
|
|
35950
35950
|
}), N && console.log(`${F} Raw Row Data Received:`, JSON.parse(JSON.stringify(N))), w.value = P(T), console.log(`${F} Resolved activeTableKey: "${w.value}"`), C.value = L(V), x.value = null, f.value = a.value === "id" ? V.labelID || "Tambah Data" : V.labelEN || "Add Data", h.value = V.icon || "Plus";
|
|
35951
|
-
const q = (((
|
|
35951
|
+
const q = (((ie = V.dialogConfig) == null ? void 0 : ie.layoutSize) || "md").toLowerCase();
|
|
35952
35952
|
g.value = q, console.log(`[useFormTable][DEBUG] Opening Dialog with size: "${q}" (from ${(J = V.dialogConfig) == null ? void 0 : J.layoutSize})`);
|
|
35953
35953
|
const Y = V.fieldActionCustom || V.fieldActionGlobal || X(T);
|
|
35954
35954
|
p.value = Y, console.log(`${F} Dialog Fields Count:`, Y.length), Object.keys(y).forEach((fe) => {
|
|
@@ -35991,7 +35991,7 @@ function vI(e) {
|
|
|
35991
35991
|
handleTableRowUpdate: S,
|
|
35992
35992
|
openTableRowDialog: O,
|
|
35993
35993
|
handleDataTableAction: (T, V) => {
|
|
35994
|
-
var fe, pe, W, G, Z, he, Te,
|
|
35994
|
+
var fe, pe, W, G, Z, he, Te, re, Ce;
|
|
35995
35995
|
const { action: N, row: F } = V, q = N.toLowerCase();
|
|
35996
35996
|
if (V.isLocalSave || V.actionType === "CREATE" || V.actionType === "UPDATE") {
|
|
35997
35997
|
const we = V.modelDatatable || P(T);
|
|
@@ -36035,15 +36035,15 @@ function vI(e) {
|
|
|
36035
36035
|
return;
|
|
36036
36036
|
}
|
|
36037
36037
|
let Y = null;
|
|
36038
|
-
const
|
|
36038
|
+
const ie = (we) => Array.isArray(we) ? we.find((me) => {
|
|
36039
36039
|
var De, Be, Fe, Ne;
|
|
36040
36040
|
const Se = (me.key || ((De = me.propsActionGlobal) == null ? void 0 : De.key) || ((Be = me.propsActionCustom) == null ? void 0 : Be.key) || "").toLowerCase(), Ee = (me.actionType || ((Fe = me.propsActionGlobal) == null ? void 0 : Fe.actionType) || ((Ne = me.propsActionCustom) == null ? void 0 : Ne.actionType) || "").toLowerCase();
|
|
36041
36041
|
return Se === q || Ee === q;
|
|
36042
36042
|
}) : null;
|
|
36043
|
-
Y =
|
|
36043
|
+
Y = ie(T.actionTableGlobal) || ie(T.actionTableLine), !Y && Array.isArray(T.headers) && T.headers.forEach((we) => {
|
|
36044
36044
|
var me;
|
|
36045
36045
|
if (((me = we.custom) == null ? void 0 : me.type) === "ACTION") {
|
|
36046
|
-
const Se =
|
|
36046
|
+
const Se = ie(we.custom.actionCustom);
|
|
36047
36047
|
Se && (Y = Se);
|
|
36048
36048
|
}
|
|
36049
36049
|
});
|
|
@@ -36082,7 +36082,7 @@ function vI(e) {
|
|
|
36082
36082
|
return;
|
|
36083
36083
|
}
|
|
36084
36084
|
if (F && typeof F == "object" && !((Z = Y == null ? void 0 : Y.endpoint) != null && Z.apiUrl) && !((Te = (he = Y == null ? void 0 : Y.propsActionGlobal) == null ? void 0 : he.endpointPropAction) != null && Te.apiUrl)) {
|
|
36085
|
-
const we = T.modelDatatable, me = Ze(t, we) || [], Se = Array.isArray(me) ? [...me] : [], Ee = (
|
|
36085
|
+
const we = T.modelDatatable, me = Ze(t, we) || [], Se = Array.isArray(me) ? [...me] : [], Ee = (re = T.headers) == null ? void 0 : re.find((Ne) => {
|
|
36086
36086
|
var le;
|
|
36087
36087
|
return ((le = Ne.custom) == null ? void 0 : le.type) === "CHECKBOX" || Ne.keyCheckbox;
|
|
36088
36088
|
}), De = (Ee == null ? void 0 : Ee.keyCheckbox) || ((Ce = Ee == null ? void 0 : Ee.custom) == null ? void 0 : Ce.keyCheckbox) || "id";
|
|
@@ -36097,8 +36097,8 @@ function vI(e) {
|
|
|
36097
36097
|
});
|
|
36098
36098
|
let V = !0;
|
|
36099
36099
|
if (p.value.forEach((Y) => {
|
|
36100
|
-
const
|
|
36101
|
-
|
|
36100
|
+
const ie = r.validateField(Y, y[Y.model]);
|
|
36101
|
+
ie && (m[Y.model] = ie, V = !1);
|
|
36102
36102
|
}), !V) return;
|
|
36103
36103
|
const N = w.value;
|
|
36104
36104
|
if (!N) return;
|
|
@@ -36142,37 +36142,37 @@ function xI(e) {
|
|
|
36142
36142
|
"optionsFilterRule",
|
|
36143
36143
|
"visibleRule",
|
|
36144
36144
|
"disabledRule"
|
|
36145
|
-
].forEach((
|
|
36146
|
-
const Ce = V == null ? void 0 : V[
|
|
36145
|
+
].forEach((re) => {
|
|
36146
|
+
const Ce = V == null ? void 0 : V[re];
|
|
36147
36147
|
if (!Ce) return;
|
|
36148
36148
|
let we;
|
|
36149
|
-
if (
|
|
36150
|
-
else if (
|
|
36151
|
-
else if (
|
|
36152
|
-
else if (
|
|
36149
|
+
if (re === "visibleRule") we = r.isFieldVisible(K, B, S);
|
|
36150
|
+
else if (re === "disabledRule") we = r.isFieldDisabled(K, B, S);
|
|
36151
|
+
else if (re === "requiredRule") we = r.isFieldRequired(K, B, S);
|
|
36152
|
+
else if (re === "lengthRule") we = r.resolveFieldLength(K, B);
|
|
36153
36153
|
else {
|
|
36154
|
-
const Ee = r.resolveActiveRule(Ce, B, `${
|
|
36155
|
-
we = Ee ? r.evaluateLogic(Ee, B, `${
|
|
36154
|
+
const Ee = r.resolveActiveRule(Ce, B, `${re}-${T}`, S);
|
|
36155
|
+
we = Ee ? r.evaluateLogic(Ee, B, `${re}-${T}`, S) : null;
|
|
36156
36156
|
}
|
|
36157
36157
|
const me = JSON.stringify(we);
|
|
36158
|
-
Y[
|
|
36158
|
+
Y[re] = me;
|
|
36159
36159
|
const Se = m.get(T);
|
|
36160
|
-
(Se == null ? void 0 : Se[
|
|
36160
|
+
(Se == null ? void 0 : Se[re]) !== void 0 && Se[re] !== me && j && (re === "visibleRule" && we === !1 || re === "disabledRule" && we === !0 || re === "optionsFilterRule" || re === "lengthRule") && mt(t.formData, S, null);
|
|
36161
36161
|
}), j && !O) {
|
|
36162
|
-
const
|
|
36163
|
-
|
|
36162
|
+
const re = Ze(t.formData, S);
|
|
36163
|
+
re != null && re !== "" && mt(t.formData, S, null);
|
|
36164
36164
|
}
|
|
36165
|
-
Array.isArray(F == null ? void 0 : F.keyParam) && F.keyParam.forEach((
|
|
36165
|
+
Array.isArray(F == null ? void 0 : F.keyParam) && F.keyParam.forEach((re) => {
|
|
36166
36166
|
var Be;
|
|
36167
36167
|
let Ce, we;
|
|
36168
36168
|
const me = S.includes(".") ? S.split(".").slice(0, -1).join(".") : void 0, Se = r.getNormalizedData(_, me);
|
|
36169
|
-
if (typeof
|
|
36170
|
-
Ce = ((Be = Se._resolveLogicVar) == null ? void 0 : Be.call(Se,
|
|
36171
|
-
else if (typeof
|
|
36172
|
-
Ce = Object.values(
|
|
36169
|
+
if (typeof re == "string")
|
|
36170
|
+
Ce = ((Be = Se._resolveLogicVar) == null ? void 0 : Be.call(Se, re)) ?? Se[re], we = `kp-${re}`;
|
|
36171
|
+
else if (typeof re == "object" && re !== null)
|
|
36172
|
+
Ce = Object.values(re).map((Ne) => {
|
|
36173
36173
|
var le;
|
|
36174
36174
|
return ((le = Se._resolveLogicVar) == null ? void 0 : le.call(Se, Ne)) ?? Se[Ne];
|
|
36175
|
-
}), we = `kp-${JSON.stringify(
|
|
36175
|
+
}), we = `kp-${JSON.stringify(re)}`;
|
|
36176
36176
|
else
|
|
36177
36177
|
return;
|
|
36178
36178
|
const Ee = JSON.stringify(Ce);
|
|
@@ -36180,16 +36180,16 @@ function xI(e) {
|
|
|
36180
36180
|
const De = m.get(T);
|
|
36181
36181
|
if ((De == null ? void 0 : De[we]) !== void 0 && De[we] !== Ee) {
|
|
36182
36182
|
O && l(K, !0, S);
|
|
36183
|
-
const Fe = De[we] === "null" || De[we] === "undefined", Ne = Ee === "null" || Ee === "undefined", le = typeof
|
|
36183
|
+
const Fe = De[we] === "null" || De[we] === "undefined", Ne = Ee === "null" || Ee === "undefined", le = typeof re == "string" && (re === K.key || re === K.model);
|
|
36184
36184
|
j && (!Fe || Ne) && !le && mt(t.formData, S, null);
|
|
36185
36185
|
}
|
|
36186
|
-
}), (Array.isArray(V == null ? void 0 : V.fetchRule) ? V.fetchRule : [V == null ? void 0 : V.fetchRule].filter(Boolean)).forEach((
|
|
36186
|
+
}), (Array.isArray(V == null ? void 0 : V.fetchRule) ? V.fetchRule : [V == null ? void 0 : V.fetchRule].filter(Boolean)).forEach((re, Ce) => {
|
|
36187
36187
|
var Fe;
|
|
36188
|
-
const we = `fetch-${Ce}`, me = r.evaluateLogic(
|
|
36188
|
+
const we = `fetch-${Ce}`, me = r.evaluateLogic(re.condition, B, `FETCH-${T}`, S), Se = JSON.stringify(me);
|
|
36189
36189
|
B[T], Y[we] = Se;
|
|
36190
36190
|
const Ee = m.get(T), De = (Ee == null ? void 0 : Ee[we]) === "true";
|
|
36191
36191
|
let Be = !1;
|
|
36192
|
-
me && !De && (Be = !0), me && Array.isArray((Fe =
|
|
36192
|
+
me && !De && (Be = !0), me && Array.isArray((Fe = re.endpoint) == null ? void 0 : Fe.keyParam) && re.endpoint.keyParam.forEach((Ne) => {
|
|
36193
36193
|
let le, be;
|
|
36194
36194
|
if (typeof Ne == "string")
|
|
36195
36195
|
le = B[Ne], le === void 0 && K && K.key === Ne && (le = B[K.model]), be = `kp-${Ne}`;
|
|
@@ -36199,11 +36199,11 @@ function xI(e) {
|
|
|
36199
36199
|
return;
|
|
36200
36200
|
const ye = JSON.stringify(le);
|
|
36201
36201
|
(Ee == null ? void 0 : Ee[be]) !== void 0 && Ee[be] !== ye && (Be = !0), Y[be] = ye;
|
|
36202
|
-
}), Be && O && c(K,
|
|
36203
|
-
}), (Array.isArray(V == null ? void 0 : V.copyRule) ? V.copyRule : [V == null ? void 0 : V.copyRule].filter(Boolean)).forEach((
|
|
36204
|
-
const we = `copy-${Ce}`, me =
|
|
36202
|
+
}), Be && O && c(K, re, S);
|
|
36203
|
+
}), (Array.isArray(V == null ? void 0 : V.copyRule) ? V.copyRule : [V == null ? void 0 : V.copyRule].filter(Boolean)).forEach((re, Ce) => {
|
|
36204
|
+
const we = `copy-${Ce}`, me = re.condition ? r.evaluateLogic(re.condition, B, `COPY-COND-${T}`, S) : !0;
|
|
36205
36205
|
let Se;
|
|
36206
|
-
typeof
|
|
36206
|
+
typeof re.source == "string" ? Se = B[re.source] : re.source && typeof re.source == "object" && (Se = r.evaluateLogic(re.source, B, `COPY-SRC-${T}`, S));
|
|
36207
36207
|
const Ee = JSON.stringify({ conditionMet: me, sourceVal: Se }), De = m.get(T);
|
|
36208
36208
|
if ((De == null ? void 0 : De[we]) !== Ee && me) {
|
|
36209
36209
|
const Fe = Ze(t.formData, S);
|
|
@@ -36213,17 +36213,17 @@ function xI(e) {
|
|
|
36213
36213
|
});
|
|
36214
36214
|
const pe = r.resolveDefaultValue(K, B, S);
|
|
36215
36215
|
if (pe != null) {
|
|
36216
|
-
const
|
|
36217
|
-
(
|
|
36216
|
+
const re = Ze(t.formData, S), we = (K.props || K.propsFieldCustom || K.propsFieldGlobal || {}).returnObject || ((Z = K.logic) == null ? void 0 : Z.returnObject);
|
|
36217
|
+
(re == null || re === "" || we && (typeof re == "string" || typeof re == "number") && (typeof pe == "object" && pe !== null)) && mt(t.formData, S, pe);
|
|
36218
36218
|
}
|
|
36219
36219
|
const W = K.props || K.propsFieldCustom || K.propsFieldGlobal || {}, G = ((he = K.logic) == null ? void 0 : he.autoSelect) || W.autoSelect || "none";
|
|
36220
36220
|
if (G !== "none") {
|
|
36221
|
-
const
|
|
36222
|
-
if (
|
|
36221
|
+
const re = t.rawItemsCache[K.key] || [];
|
|
36222
|
+
if (re.length > 0) {
|
|
36223
36223
|
const Ce = Ze(t.formData, S);
|
|
36224
36224
|
if (Ce == null || Ce === "") {
|
|
36225
|
-
const we = W.returnObject || ((Te = K.logic) == null ? void 0 : Te.returnObject), me =
|
|
36226
|
-
if (G === "single" &&
|
|
36225
|
+
const we = W.returnObject || ((Te = K.logic) == null ? void 0 : Te.returnObject), me = re[0];
|
|
36226
|
+
if (G === "single" && re.length === 1) {
|
|
36227
36227
|
const Se = we ? me : me.id ?? me.value ?? me.code;
|
|
36228
36228
|
mt(t.formData, S, Se);
|
|
36229
36229
|
} else if (G === "first") {
|
|
@@ -36239,8 +36239,8 @@ function xI(e) {
|
|
|
36239
36239
|
if (K.type !== "WIZARD") return;
|
|
36240
36240
|
const B = ((V = K.propsWizard) == null ? void 0 : V.propsSteps) || [], j = dt(K), T = t.wizardState[j] ?? 0;
|
|
36241
36241
|
for (let N = 0; N < B.length; N++) {
|
|
36242
|
-
const F = B[N],
|
|
36243
|
-
Array.isArray(F.sectionsWizard) ? await X(F.sectionsWizard,
|
|
36242
|
+
const F = B[N], ie = r.isSectionVisible(F, O) && S && N === T, J = F.modelKey || F.key || F.id;
|
|
36243
|
+
Array.isArray(F.sectionsWizard) ? await X(F.sectionsWizard, ie, J) : F.sectionsWizard && await X([F.sectionsWizard], ie, J);
|
|
36244
36244
|
}
|
|
36245
36245
|
}, X = async (K, S = !0, O) => {
|
|
36246
36246
|
if (K)
|
|
@@ -36255,8 +36255,8 @@ function xI(e) {
|
|
|
36255
36255
|
}
|
|
36256
36256
|
const Y = y.get(N);
|
|
36257
36257
|
T && (Y === !1 || Y === void 0) ? (y.set(N, !0), (q.endpointSection || q.endpointForm || q.endpointTable) && (console.log(`[useFormWatcher][TRIGGER] Auto-fetching section: ${N}`), await d(N, B, F))) : y.set(N, T);
|
|
36258
|
-
const
|
|
36259
|
-
for (const J of
|
|
36258
|
+
const ie = q.fields || B.fields || [];
|
|
36259
|
+
for (const J of ie) {
|
|
36260
36260
|
if (!J.model) continue;
|
|
36261
36261
|
const fe = F ? `${F}.${J.model}` : J.model, pe = L(J, fe, T, _);
|
|
36262
36262
|
P(J, fe, pe, R, v);
|
|
@@ -36288,7 +36288,7 @@ function xI(e) {
|
|
|
36288
36288
|
}
|
|
36289
36289
|
};
|
|
36290
36290
|
function R(L, P) {
|
|
36291
|
-
var K, S, O, B, j, T, V, N, F, q, Y,
|
|
36291
|
+
var K, S, O, B, j, T, V, N, F, q, Y, ie, J, fe, pe;
|
|
36292
36292
|
const U = dt(L) || P, X = L.propsForm || L.propsFormStep || L.propsTable || L.propsTableStep || L.propsDataTableWizard || L.props || {};
|
|
36293
36293
|
A(L.logic || X.logic);
|
|
36294
36294
|
const oe = X.fields || L.fields || [];
|
|
@@ -36300,8 +36300,8 @@ function xI(e) {
|
|
|
36300
36300
|
console.log(`[initSection][SKIP] Field "${W.model}" has keyParam dependencies — deferring fetch until parent is selected.`);
|
|
36301
36301
|
continue;
|
|
36302
36302
|
}
|
|
36303
|
-
const
|
|
36304
|
-
l(W, !1,
|
|
36303
|
+
const re = U ? `${U}.${W.model}` : W.model;
|
|
36304
|
+
l(W, !1, re);
|
|
36305
36305
|
}
|
|
36306
36306
|
}
|
|
36307
36307
|
if ((L.type === "TABLE" || L.isDataTable) && ((S = L.propsTable) != null && S.modelKey || (O = L.propsTable) != null && O.modelDatatable || (B = L.propsTableStep) != null && B.modelKey || (j = L.propsTableStep) != null && j.modelDatatable || (T = L.propsTable) != null && T.key || L.key)) {
|
|
@@ -36309,11 +36309,11 @@ function xI(e) {
|
|
|
36309
36309
|
W && (t.formData[W] = t.formData[W] || []);
|
|
36310
36310
|
}
|
|
36311
36311
|
if (L.type === "WIZARD") {
|
|
36312
|
-
const W = dt(L), G = (fe = (J = (
|
|
36312
|
+
const W = dt(L), G = (fe = (J = (ie = u == null ? void 0 : u.currentRoute) == null ? void 0 : ie.value) == null ? void 0 : J.query) == null ? void 0 : fe[`step_${W}`];
|
|
36313
36313
|
G !== void 0 && !isNaN(Number(G)) ? t.wizardState[W] = Number(G) : t.wizardState[W] === void 0 && (t.wizardState[W] = 0);
|
|
36314
36314
|
for (const Z of ((pe = L.propsWizard) == null ? void 0 : pe.propsSteps) || []) {
|
|
36315
36315
|
const he = Z.modelKey || Z.key || Z.id;
|
|
36316
|
-
A(Z.logic), Z.sectionsWizard && (Array.isArray(Z.sectionsWizard) ? Z.sectionsWizard : [Z.sectionsWizard]).forEach((
|
|
36316
|
+
A(Z.logic), Z.sectionsWizard && (Array.isArray(Z.sectionsWizard) ? Z.sectionsWizard : [Z.sectionsWizard]).forEach((re) => R(re, he));
|
|
36317
36317
|
}
|
|
36318
36318
|
}
|
|
36319
36319
|
}
|
|
@@ -36495,13 +36495,13 @@ function kI(e, t) {
|
|
|
36495
36495
|
for (const q in F) {
|
|
36496
36496
|
const Y = F[q];
|
|
36497
36497
|
if (O[q] || (O[q] = {}), Array.isArray(Y))
|
|
36498
|
-
Y.forEach((
|
|
36499
|
-
|
|
36498
|
+
Y.forEach((ie) => {
|
|
36499
|
+
ie && typeof ie == "object" && Object.assign(O[q], ie);
|
|
36500
36500
|
});
|
|
36501
36501
|
else if (Y && typeof Y == "object")
|
|
36502
|
-
for (const
|
|
36503
|
-
const J = Y[
|
|
36504
|
-
J && typeof J == "object" && (O[q][
|
|
36502
|
+
for (const ie in Y) {
|
|
36503
|
+
const J = Y[ie];
|
|
36504
|
+
J && typeof J == "object" && (O[q][ie] || (O[q][ie] = {}), Object.assign(O[q][ie], J));
|
|
36505
36505
|
}
|
|
36506
36506
|
}
|
|
36507
36507
|
});
|
|
@@ -36626,7 +36626,7 @@ function kI(e, t) {
|
|
|
36626
36626
|
return Ze(B, G);
|
|
36627
36627
|
}
|
|
36628
36628
|
}
|
|
36629
|
-
},
|
|
36629
|
+
}, ie = (J) => {
|
|
36630
36630
|
var W;
|
|
36631
36631
|
if (J.startsWith("$")) return Y(J);
|
|
36632
36632
|
const fe = J.replace(/^formData\./, "");
|
|
@@ -36643,14 +36643,14 @@ function kI(e, t) {
|
|
|
36643
36643
|
return pe == null && O && O.key === J && (pe = Ze(B || i.formData, O.model)), pe;
|
|
36644
36644
|
};
|
|
36645
36645
|
if (typeof F == "string") {
|
|
36646
|
-
let J =
|
|
36646
|
+
let J = ie(F);
|
|
36647
36647
|
if (J != null && J !== "") {
|
|
36648
36648
|
J = mf(J), typeof J == "object" && !Array.isArray(J) && !(J instanceof Date) && !Hi(J) && (J = J.id ?? J.value ?? J.code ?? J);
|
|
36649
36649
|
const fe = F.startsWith("$") && F.split(".").pop() || F;
|
|
36650
36650
|
j[fe] = q(J);
|
|
36651
36651
|
}
|
|
36652
36652
|
} else typeof F == "object" && F !== null && Object.entries(F).forEach(([J, fe]) => {
|
|
36653
|
-
let W =
|
|
36653
|
+
let W = ie(fe);
|
|
36654
36654
|
W != null && W !== "" && (W = mf(W), typeof W == "object" && !Array.isArray(W) && !(W instanceof Date) && !Hi(W) && (W = W.id ?? W.value ?? W.code ?? W), j[J] = q(W));
|
|
36655
36655
|
});
|
|
36656
36656
|
}), Object.keys(j).length > 0 && console.log(`[resolveKeyParams][DEBUG] Resolved params for ${S || "root"}:`, j), j;
|
|
@@ -36677,7 +36677,7 @@ function kI(e, t) {
|
|
|
36677
36677
|
console.log(`[prefetchFieldItems] Executing request for ${K.key} with params:`, q);
|
|
36678
36678
|
const Y = { ...T.config || {} };
|
|
36679
36679
|
T.accept && (Y.headers || (Y.headers = {}), Y.headers.Accept = T.accept, Y.headers.accept = T.accept);
|
|
36680
|
-
const
|
|
36680
|
+
const ie = await a(F, T.apiMethod || "GET", q, Y), J = (ie == null ? void 0 : ie.data) !== void 0 ? ie.data : ie;
|
|
36681
36681
|
let fe = [];
|
|
36682
36682
|
Array.isArray(J) ? fe = J : J && (fe = [J]), i.rawItemsCache[K.key] = fe;
|
|
36683
36683
|
} catch (F) {
|
|
@@ -36694,9 +36694,9 @@ function kI(e, t) {
|
|
|
36694
36694
|
try {
|
|
36695
36695
|
const q = Gn(S.apiUrl, c.value), Y = _(S.keyParam || []);
|
|
36696
36696
|
console.log("[fetchFormData][GLOBAL] Executing request with params:", Y);
|
|
36697
|
-
const
|
|
36698
|
-
S.accept && (
|
|
36699
|
-
const J = await a(q, S.apiMethod || "GET", Y,
|
|
36697
|
+
const ie = { ...S.config || {} };
|
|
36698
|
+
S.accept && (ie.headers || (ie.headers = {}), ie.headers.Accept = S.accept, ie.headers.accept = S.accept);
|
|
36699
|
+
const J = await a(q, S.apiMethod || "GET", Y, ie);
|
|
36700
36700
|
if ((J == null ? void 0 : J.status) === !0 || (J == null ? void 0 : J.success) === !0 || (J == null ? void 0 : J.code) === 200 || (J == null ? void 0 : J.code) === "00" || (J == null ? void 0 : J.status) === "SUCCESS") {
|
|
36701
36701
|
const pe = (J == null ? void 0 : J.data) !== void 0 ? J.data : J;
|
|
36702
36702
|
if (Array.isArray(pe)) {
|
|
@@ -36746,15 +36746,15 @@ function kI(e, t) {
|
|
|
36746
36746
|
const q = { ...j.config };
|
|
36747
36747
|
j.accept && (q.headers || (q.headers = {}), q.headers.Accept = j.accept, q.headers.accept = j.accept), N.includes("/api/auto-layout") && (q.isAutoLayout = !0);
|
|
36748
36748
|
const Y = Object.values(F).some((pe) => Hi(pe));
|
|
36749
|
-
let
|
|
36749
|
+
let ie = F;
|
|
36750
36750
|
if (Y && (j.apiMethod || "POST").toUpperCase() !== "GET") {
|
|
36751
36751
|
const pe = new FormData();
|
|
36752
36752
|
Object.entries(F).forEach(([W, G]) => {
|
|
36753
36753
|
G != null && (Array.isArray(G) ? G.forEach((Z) => pe.append(W, Z)) : pe.append(W, G));
|
|
36754
|
-
}),
|
|
36754
|
+
}), ie = pe, q.headers && (delete q.headers["Content-Type"], delete q.headers["content-type"]);
|
|
36755
36755
|
}
|
|
36756
36756
|
console.log(`[triggerFetchRule] Executing request for ${K.key}. Method: ${j.apiMethod || "GET"}, Has File: ${Y}`, F);
|
|
36757
|
-
const J = await a(N, j.apiMethod || "GET",
|
|
36757
|
+
const J = await a(N, j.apiMethod || "GET", ie, q);
|
|
36758
36758
|
if ((J == null ? void 0 : J.status) === !0 || (J == null ? void 0 : J.success) === !0 || (J == null ? void 0 : J.code) === 200 || (J == null ? void 0 : J.code) === "00" || (J == null ? void 0 : J.status) === "SUCCESS") {
|
|
36759
36759
|
const pe = O != null && O.includes(".") ? O.split(".").slice(0, -1).join(".") : void 0;
|
|
36760
36760
|
x.handleResponseMapping(J, S.mapping || {}, pe), i.formData[`_fetchStatus_${K.model}`] = !0;
|
|
@@ -36798,12 +36798,12 @@ function kI(e, t) {
|
|
|
36798
36798
|
const V = O;
|
|
36799
36799
|
i.sectionLoading[K] = !0, B.key && (i.sectionLoading[B.key] = !0);
|
|
36800
36800
|
try {
|
|
36801
|
-
const Y = T.keyParam || [],
|
|
36802
|
-
if (J && !e.isEditMode && fe && !
|
|
36801
|
+
const Y = T.keyParam || [], ie = Array.isArray(Y) && Y.includes("$bypassMode"), J = B.type === "FORM" || !!B.propsForm, fe = (T.apiMethod || "GET").toUpperCase() === "GET";
|
|
36802
|
+
if (J && !e.isEditMode && fe && !ie) {
|
|
36803
36803
|
i.sectionLoading[K] = !1;
|
|
36804
36804
|
return;
|
|
36805
36805
|
}
|
|
36806
|
-
const pe = Gn(T.apiUrl, c.value), W = B.type === "TABLE" || !!B.propsTable, G =
|
|
36806
|
+
const pe = Gn(T.apiUrl, c.value), W = B.type === "TABLE" || !!B.propsTable, G = ie ? Y.filter((we) => we !== "$bypassMode") : Y, Z = _(G, V);
|
|
36807
36807
|
if (W && (Z.page === void 0 && (Z.page = 1), Z.perPage === void 0)) {
|
|
36808
36808
|
const we = B.propsTable || B.propsTableStep || {};
|
|
36809
36809
|
Z.perPage = we.perPage || 10;
|
|
@@ -36814,12 +36814,12 @@ function kI(e, t) {
|
|
|
36814
36814
|
}
|
|
36815
36815
|
const Te = { ...T.config };
|
|
36816
36816
|
T.accept && (Te.headers || (Te.headers = {}), Te.headers.Accept = T.accept, Te.headers.accept = T.accept), pe.includes("/api/auto-layout") && (Te.isAutoLayout = !0), console.log(`[fetchSectionData] Executing request for ${K} with params:`, Z);
|
|
36817
|
-
const
|
|
36818
|
-
if ((
|
|
36817
|
+
const re = await a(pe, T.apiMethod || "GET", Z, Te);
|
|
36818
|
+
if ((re == null ? void 0 : re.status) === !0 || (re == null ? void 0 : re.success) === !0 || (re == null ? void 0 : re.code) === 200 || (re == null ? void 0 : re.code) === "00" || (re == null ? void 0 : re.status) === "SUCCESS")
|
|
36819
36819
|
if (T.mapping && Object.keys(T.mapping).length > 0)
|
|
36820
|
-
x.handleResponseMapping(
|
|
36820
|
+
x.handleResponseMapping(re, T.mapping, V);
|
|
36821
36821
|
else {
|
|
36822
|
-
const we = (
|
|
36822
|
+
const we = (re == null ? void 0 : re.data) || (re == null ? void 0 : re.payload) || re, me = Array.isArray(we) && !W ? we[0] : we;
|
|
36823
36823
|
if (me && (typeof me == "object" || Array.isArray(me))) {
|
|
36824
36824
|
const Se = $(me, B, V);
|
|
36825
36825
|
if (W && Array.isArray(me)) {
|
|
@@ -36924,17 +36924,17 @@ function kI(e, t) {
|
|
|
36924
36924
|
return S != null && S.sections && S.sections.forEach((O) => {
|
|
36925
36925
|
var j, T, V;
|
|
36926
36926
|
(((j = O.propsForm) == null ? void 0 : j.fields) || ((T = O.propsTable) == null ? void 0 : T.fields) || ((V = O.props) == null ? void 0 : V.fields) || []).forEach((N) => {
|
|
36927
|
-
var F, q, Y,
|
|
36927
|
+
var F, q, Y, ie, J, fe, pe, W, G, Z, he;
|
|
36928
36928
|
if (N.component === "DCodeRadioCustom") {
|
|
36929
36929
|
const Te = ((F = N.props) == null ? void 0 : F.name) || "default-group";
|
|
36930
36930
|
K[Te] || (K[Te] = []);
|
|
36931
|
-
let
|
|
36932
|
-
|
|
36931
|
+
let re = ((Y = (q = N.props) == null ? void 0 : q.endpoint) == null ? void 0 : Y.apiUrl) || ((ie = N.props) == null ? void 0 : ie.apiUrl);
|
|
36932
|
+
re = Gn(re, c.value), K[Te].push({
|
|
36933
36933
|
key: N.key,
|
|
36934
36934
|
value: (J = N.props) == null ? void 0 : J.value,
|
|
36935
36935
|
label: ((fe = N.props) == null ? void 0 : fe.labelID) || ((pe = N.props) == null ? void 0 : pe.labelEN) || N.key,
|
|
36936
36936
|
model: N.model || N.key,
|
|
36937
|
-
apiUrl:
|
|
36937
|
+
apiUrl: re,
|
|
36938
36938
|
apiMethod: ((G = (W = N.props) == null ? void 0 : W.endpoint) == null ? void 0 : G.apiMethod) || ((Z = N.props) == null ? void 0 : Z.apiMethod),
|
|
36939
36939
|
icon: (he = N.props) == null ? void 0 : he.icon,
|
|
36940
36940
|
name: Te
|
|
@@ -37047,13 +37047,13 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37047
37047
|
class: ve(["p-4 grid gap-4", E(R)(((j = (B = e.section) == null ? void 0 : B.propsForm) == null ? void 0 : j.layoutColumns) || ((T = e.section) == null ? void 0 : T.layoutColumns))])
|
|
37048
37048
|
}, [
|
|
37049
37049
|
(b(!0), M(Pe, null, Ge(oe(((N = (V = e.section) == null ? void 0 : V.propsForm) == null ? void 0 : N.fields) || ((F = e.section) == null ? void 0 : F.fields)), (q) => {
|
|
37050
|
-
var Y,
|
|
37050
|
+
var Y, ie, J, fe, pe, W, G, Z, he;
|
|
37051
37051
|
return b(), M(Pe, {
|
|
37052
37052
|
key: q == null ? void 0 : q.key
|
|
37053
37053
|
}, [
|
|
37054
37054
|
E(d)(q, void 0, q.model) ? Jt((b(), M("div", {
|
|
37055
37055
|
key: 0,
|
|
37056
|
-
class: ve(E(L)(q, ((
|
|
37056
|
+
class: ve(E(L)(q, ((ie = (Y = e.section) == null ? void 0 : Y.propsForm) == null ? void 0 : ie.layoutColumns) || ((J = e.section) == null ? void 0 : J.layoutColumns)))
|
|
37057
37057
|
}, [
|
|
37058
37058
|
ue(Da, {
|
|
37059
37059
|
field: q,
|
|
@@ -37089,23 +37089,23 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37089
37089
|
return [
|
|
37090
37090
|
D("div", wI, [
|
|
37091
37091
|
(T = (j = (B = e.section) == null ? void 0 : B.propsForm) == null ? void 0 : j.actionSection) != null && T.length ? (b(!0), M(Pe, { key: 0 }, Ge(e.section.propsForm.actionSection, (N, F) => {
|
|
37092
|
-
var q, Y,
|
|
37092
|
+
var q, Y, ie, J, fe, pe, W, G, Z, he;
|
|
37093
37093
|
return b(), M(Pe, { key: F }, [
|
|
37094
|
-
(q = E(r)) != null && q(N) ? (b(), Me(
|
|
37094
|
+
(q = E(r)) != null && q(N) ? (b(), Me(Tt, {
|
|
37095
37095
|
key: 0,
|
|
37096
37096
|
icon: N.icon || ((Y = N.propsActionGlobal) == null ? void 0 : Y.icon),
|
|
37097
|
-
text: E(s) === "kr" || E(s) === "ko" ? N.labelKR || ((
|
|
37097
|
+
text: E(s) === "kr" || E(s) === "ko" ? N.labelKR || ((ie = N.propsActionGlobal) == null ? void 0 : ie.labelKR) || N.labelEN || ((J = N.propsActionGlobal) == null ? void 0 : J.labelEN) : E(s) === "id" ? N.labelID || ((fe = N.propsActionGlobal) == null ? void 0 : fe.labelID) : N.labelEN || ((pe = N.propsActionGlobal) == null ? void 0 : pe.labelEN),
|
|
37098
37098
|
"bg-color": ((G = N.bgColor || ((W = N.propsActionGlobal) == null ? void 0 : W.bgColor)) == null ? void 0 : G.toLowerCase()) || "primary",
|
|
37099
37099
|
variant: ((he = N.variant || ((Z = N.propsActionGlobal) == null ? void 0 : Z.variant)) == null ? void 0 : he.toLowerCase()) || "outline",
|
|
37100
37100
|
size: "sm",
|
|
37101
37101
|
onClick: (Te) => {
|
|
37102
|
-
var
|
|
37103
|
-
return (
|
|
37102
|
+
var re;
|
|
37103
|
+
return (re = E(a)) == null ? void 0 : re(N);
|
|
37104
37104
|
}
|
|
37105
37105
|
}, null, 8, ["icon", "text", "bg-color", "variant", "onClick"])) : ne("", !0)
|
|
37106
37106
|
], 64);
|
|
37107
37107
|
}), 128)) : ne("", !0),
|
|
37108
|
-
e.sIdx === 0 ? (b(), Me(
|
|
37108
|
+
e.sIdx === 0 ? (b(), Me(Tt, {
|
|
37109
37109
|
key: 1,
|
|
37110
37110
|
size: "sm",
|
|
37111
37111
|
icon: "List",
|
|
@@ -37230,12 +37230,12 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37230
37230
|
checkPermission: F,
|
|
37231
37231
|
tokenCores: q = [],
|
|
37232
37232
|
selectedTokenCore: Y = null
|
|
37233
|
-
} = n,
|
|
37234
|
-
const
|
|
37235
|
-
return Ce &&
|
|
37233
|
+
} = n, ie = (Z, he, Te) => {
|
|
37234
|
+
const re = dt(he), Ce = Z.modelKey || Z.key || Z.id;
|
|
37235
|
+
return Ce && re ? `${Ce}.${re}.${Te.model}` : Ce ? `${Ce}.${Te.model}` : Te.model;
|
|
37236
37236
|
}, J = (Z, he) => {
|
|
37237
|
-
const Te = Z.modelKey || Z.key || Z.id,
|
|
37238
|
-
return Te ?
|
|
37237
|
+
const Te = Z.modelKey || Z.key || Z.id, re = dt(he);
|
|
37238
|
+
return Te ? re ? `${Te}.${re}` : Te : re || "ROOT";
|
|
37239
37239
|
}, fe = (Z) => {
|
|
37240
37240
|
var Ce, we, me;
|
|
37241
37241
|
const he = {
|
|
@@ -37254,10 +37254,10 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37254
37254
|
}
|
|
37255
37255
|
return null;
|
|
37256
37256
|
};
|
|
37257
|
-
let
|
|
37258
|
-
return
|
|
37257
|
+
let re = he.modelDatatable || he.model || Z.modelDatatable || Z.model;
|
|
37258
|
+
return re || (re = he.key), re || (re = Te(Z)), he.modelDatatable = re, he;
|
|
37259
37259
|
}, pe = (Z, he) => {
|
|
37260
|
-
const Te = fe(he),
|
|
37260
|
+
const Te = fe(he), re = Z.modelKey || Z.key || Z.id, Ce = re ? `${re}.${Te.modelDatatable}` : Te.modelDatatable, we = x({ ...Te, modelDatatable: Ce });
|
|
37261
37261
|
return {
|
|
37262
37262
|
config: Te,
|
|
37263
37263
|
fullModel: Ce,
|
|
@@ -37272,10 +37272,10 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37272
37272
|
Object.values(X).forEach((De) => {
|
|
37273
37273
|
De && typeof De == "object" && Object.assign(Te, De);
|
|
37274
37274
|
});
|
|
37275
|
-
const
|
|
37275
|
+
const re = {
|
|
37276
37276
|
...U()
|
|
37277
37277
|
}, Ce = Z.fieldMapping || {};
|
|
37278
|
-
let we = Object.keys(Ce).length > 0 ? P(
|
|
37278
|
+
let we = Object.keys(Ce).length > 0 ? P(re, Ce) : re;
|
|
37279
37279
|
we = {
|
|
37280
37280
|
...we
|
|
37281
37281
|
};
|
|
@@ -37312,7 +37312,7 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37312
37312
|
const he = Z.endpointActionStepPrev;
|
|
37313
37313
|
if (!(he != null && he.apiUrl)) return !0;
|
|
37314
37314
|
try {
|
|
37315
|
-
const Te = Gn(he.apiUrl, m.value),
|
|
37315
|
+
const Te = Gn(he.apiUrl, m.value), re = r(t.section), Ce = re.findIndex((Fe) => (Fe.key || Fe.id) === (Z.key || Z.id)), we = Ce > 0 ? re[Ce - 1] : null, me = we ? we.key || we.id : null, Se = me ? X[me] : null;
|
|
37316
37316
|
let Ee = {};
|
|
37317
37317
|
Se ? Ee = Array.isArray(Se) ? Se[0] || {} : Se : Ee = oe(he.keyParam || [], Z.key);
|
|
37318
37318
|
const De = await R(Te, he.apiMethod || "POST", Ee);
|
|
@@ -37322,7 +37322,7 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37322
37322
|
}
|
|
37323
37323
|
};
|
|
37324
37324
|
return (Z, he) => {
|
|
37325
|
-
var
|
|
37325
|
+
var re;
|
|
37326
37326
|
const Te = pm("DCodeButton");
|
|
37327
37327
|
return b(), M("div", AI, [
|
|
37328
37328
|
ue(Wp, {
|
|
@@ -37331,7 +37331,7 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37331
37331
|
"onUpdate:modelValue": he[0] || (he[0] = (Ce) => E(a)[E(dt)(e.section)] = Ce),
|
|
37332
37332
|
"is-vertical": e.section.propsWizard.isVertical,
|
|
37333
37333
|
"is-wizard": e.section.propsWizard.isWizard,
|
|
37334
|
-
"type-wizard": ((
|
|
37334
|
+
"type-wizard": ((re = e.section.propsWizard.typeWizard) == null ? void 0 : re.toLowerCase()) || "icon",
|
|
37335
37335
|
loading: E(s),
|
|
37336
37336
|
"before-next": W,
|
|
37337
37337
|
"before-prev": G
|
|
@@ -37382,7 +37382,7 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37382
37382
|
(b(!0), M(Pe, null, Ge(E(qp)(me.fields || ((ge = me.propsForm) == null ? void 0 : ge.fields) || ((xe = me.propsFormStep) == null ? void 0 : xe.fields)), (Ae) => (b(), M(Pe, {
|
|
37383
37383
|
key: Ae.key
|
|
37384
37384
|
}, [
|
|
37385
|
-
E(l)(Ae, void 0,
|
|
37385
|
+
E(l)(Ae, void 0, ie(Ce, me, Ae)) || E(V)[Ee] ? (b(!0), M(Pe, { key: 0 }, Ge([ie(Ce, me, Ae)], (ze) => {
|
|
37386
37386
|
var Je, lt;
|
|
37387
37387
|
return Jt((b(), M("div", {
|
|
37388
37388
|
key: ze,
|
|
@@ -37404,7 +37404,7 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37404
37404
|
"onUpdate:modelValue": (Et) => E(w)(Ae.model, Et, Ce.key ? E(dt)(me) ? `${Ce.key}.${E(dt)(me)}` : Ce.key : void 0)
|
|
37405
37405
|
}, null, 8, ["field", "model-value", "form-data", "required", "disabled", "options", "error", "dynamic-labels", "dynamic-length", "base-url", "skeleton", "dummy-mode", "onUpdate:modelValue"])
|
|
37406
37406
|
], 2)), [
|
|
37407
|
-
[xn, !E(c)(Ae, void 0,
|
|
37407
|
+
[xn, !E(c)(Ae, void 0, ie(Ce, me, Ae))]
|
|
37408
37408
|
]);
|
|
37409
37409
|
}), 128)) : ne("", !0)
|
|
37410
37410
|
], 64))), 128))
|
|
@@ -37471,7 +37471,7 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37471
37471
|
}), 128))
|
|
37472
37472
|
]),
|
|
37473
37473
|
_: 2
|
|
37474
|
-
}, 1032, ["title"])) : (b(), M("div", TI, " Unknown section type: " +
|
|
37474
|
+
}, 1032, ["title"])) : (b(), M("div", TI, " Unknown section type: " + ae(me.type), 1))
|
|
37475
37475
|
], 64)) : ne("", !0)
|
|
37476
37476
|
], 64);
|
|
37477
37477
|
}), 128))
|
|
@@ -37531,19 +37531,19 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37531
37531
|
persistent: E(n).isBlocking
|
|
37532
37532
|
}, {
|
|
37533
37533
|
actions: _e(() => [
|
|
37534
|
-
E(n).showCancel ? (b(), Me(
|
|
37534
|
+
E(n).showCancel ? (b(), Me(Tt, {
|
|
37535
37535
|
key: 0,
|
|
37536
37536
|
variant: "outline",
|
|
37537
37537
|
text: E(n).cancelText || E(o)("common.cancel"),
|
|
37538
37538
|
onClick: P[0] || (P[0] = (U) => E(n).visible = !1)
|
|
37539
37539
|
}, null, 8, ["text"])) : ne("", !0),
|
|
37540
|
-
ue(
|
|
37540
|
+
ue(Tt, {
|
|
37541
37541
|
text: E(n).okText || E(o)("common.confirm"),
|
|
37542
37542
|
onClick: E(r)
|
|
37543
37543
|
}, null, 8, ["text", "onClick"])
|
|
37544
37544
|
]),
|
|
37545
37545
|
default: _e(() => [
|
|
37546
|
-
D("div", OI,
|
|
37546
|
+
D("div", OI, ae(E(n).message), 1)
|
|
37547
37547
|
]),
|
|
37548
37548
|
_: 1
|
|
37549
37549
|
}, 8, ["modelValue", "title", "persistent"]),
|
|
@@ -37588,12 +37588,12 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37588
37588
|
R.value ? void 0 : {
|
|
37589
37589
|
name: "actions",
|
|
37590
37590
|
fn: _e(() => [
|
|
37591
|
-
ue(
|
|
37591
|
+
ue(Tt, {
|
|
37592
37592
|
variant: "outline",
|
|
37593
37593
|
text: E(f) ? E($) === "id" ? "Tutup" : "Close" : E($) === "id" ? "Batal" : "Cancel",
|
|
37594
37594
|
onClick: P[2] || (P[2] = (U) => a.value = !1)
|
|
37595
37595
|
}, null, 8, ["text"]),
|
|
37596
|
-
E(f) ? ne("", !0) : (b(), Me(
|
|
37596
|
+
E(f) ? ne("", !0) : (b(), Me(Tt, {
|
|
37597
37597
|
key: 0,
|
|
37598
37598
|
text: "Save",
|
|
37599
37599
|
onClick: E(I)
|
|
@@ -37610,12 +37610,12 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37610
37610
|
"max-width": 440
|
|
37611
37611
|
}, {
|
|
37612
37612
|
actions: _e(() => [
|
|
37613
|
-
ue(
|
|
37613
|
+
ue(Tt, {
|
|
37614
37614
|
variant: "outline",
|
|
37615
37615
|
text: E($) === "id" ? "Batal" : "Cancel",
|
|
37616
37616
|
onClick: P[4] || (P[4] = (U) => _.value = !1)
|
|
37617
37617
|
}, null, 8, ["text"]),
|
|
37618
|
-
ue(
|
|
37618
|
+
ue(Tt, {
|
|
37619
37619
|
variant: "default",
|
|
37620
37620
|
"bg-color": "danger",
|
|
37621
37621
|
icon: "Trash2",
|
|
@@ -37624,7 +37624,7 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37624
37624
|
}, null, 8, ["text", "onClick"])
|
|
37625
37625
|
]),
|
|
37626
37626
|
default: _e(() => [
|
|
37627
|
-
D("div", LI,
|
|
37627
|
+
D("div", LI, ae(E($) === "id" ? "Apakah Anda yakin ingin menghapus data ini? Tindakan ini tidak dapat dibatalkan." : "Are you sure you want to delete this row? This action cannot be undone."), 1)
|
|
37628
37628
|
]),
|
|
37629
37629
|
_: 1
|
|
37630
37630
|
}, 8, ["modelValue", "title"])
|
|
@@ -37695,7 +37695,7 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37695
37695
|
($ = (C = E(a)) == null ? void 0 : C.actionGlobal) != null && $.length ? (b(!0), M(Pe, { key: 0 }, Ge(E(a).actionGlobal, (I, _) => {
|
|
37696
37696
|
var v, A, R;
|
|
37697
37697
|
return b(), M(Pe, { key: _ }, [
|
|
37698
|
-
I.propsActionGlobal && E(l)(I) ? (b(), Me(
|
|
37698
|
+
I.propsActionGlobal && E(l)(I) ? (b(), Me(Tt, {
|
|
37699
37699
|
key: 0,
|
|
37700
37700
|
icon: I.propsActionGlobal.icon,
|
|
37701
37701
|
text: E(c) === "kr" || E(c) === "ko" ? I.propsActionGlobal.labelKR || I.propsActionGlobal.labelEN : E(c) === "id" ? I.propsActionGlobal.labelID : I.propsActionGlobal.labelEN,
|
|
@@ -37748,7 +37748,7 @@ const wI = { class: "flex items-center gap-2" }, CI = /* @__PURE__ */ Le({
|
|
|
37748
37748
|
]),
|
|
37749
37749
|
"stroke-width": e.strokeWidth
|
|
37750
37750
|
}, null, 8, ["size", "class", "stroke-width"])) : ne("", !0),
|
|
37751
|
-
D("span", zI,
|
|
37751
|
+
D("span", zI, ae(s.label), 1)
|
|
37752
37752
|
]),
|
|
37753
37753
|
_: 2
|
|
37754
37754
|
}, 1032, ["to", "class"])),
|
|
@@ -37864,14 +37864,14 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
37864
37864
|
window.location.href = F;
|
|
37865
37865
|
else if (F && (F.path || F.name)) {
|
|
37866
37866
|
const q = F.path || "/", Y = new URL(q, window.location.origin);
|
|
37867
|
-
F.query && Object.entries(F.query).forEach(([
|
|
37867
|
+
F.query && Object.entries(F.query).forEach(([ie, J]) => Y.searchParams.set(ie, String(J))), window.location.href = Y.toString();
|
|
37868
37868
|
}
|
|
37869
37869
|
}
|
|
37870
37870
|
},
|
|
37871
37871
|
replace: async (F) => {
|
|
37872
37872
|
if (typeof window < "u" && window.history) {
|
|
37873
37873
|
const q = new URL(window.location.href);
|
|
37874
|
-
F.query && Object.entries(F.query).forEach(([Y,
|
|
37874
|
+
F.query && Object.entries(F.query).forEach(([Y, ie]) => q.searchParams.set(Y, String(ie))), window.history.replaceState({}, "", q.toString());
|
|
37875
37875
|
}
|
|
37876
37876
|
},
|
|
37877
37877
|
currentRoute: H(() => ({
|
|
@@ -37908,9 +37908,9 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
37908
37908
|
const F = a.path.match(/\/edit\/([^\/]+)$/);
|
|
37909
37909
|
return F ? F[1] : null;
|
|
37910
37910
|
}), h = ce({}), p = ce(null), g = ce(!0), y = ce(!1), m = ce(null), w = "/api/auto-layout/form/form-dynamic?code=", x = "/api/auto-layout/datatable/form-dynamic?code=", C = ce(n.layoutCode), $ = H(() => {
|
|
37911
|
-
var
|
|
37911
|
+
var ie;
|
|
37912
37912
|
if (!p.value) return "";
|
|
37913
|
-
const F = ((
|
|
37913
|
+
const F = ((ie = c == null ? void 0 : c.value) == null ? void 0 : ie.toLowerCase()) || "en", q = F === "kr" || F === "ko" || F.startsWith("kr-") || F.startsWith("ko-"), Y = F === "en" || F.startsWith("en-");
|
|
37914
37914
|
return (q ? p.value.titleKR || p.value.titleEN : Y ? p.value.titleEN : p.value.titleID) || p.value.title || n.layoutCode;
|
|
37915
37915
|
});
|
|
37916
37916
|
$e(
|
|
@@ -37921,21 +37921,21 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
37921
37921
|
{ immediate: !0 }
|
|
37922
37922
|
);
|
|
37923
37923
|
const I = (F, q = {}) => (!F || typeof F != "object" || Object.keys(F).forEach((Y) => {
|
|
37924
|
-
const
|
|
37925
|
-
q[Y] =
|
|
37924
|
+
const ie = F[Y];
|
|
37925
|
+
q[Y] = ie, ie && typeof ie == "object" && !Array.isArray(ie) && !(ie instanceof Date) && !ie._isLogicValue && I(ie, q);
|
|
37926
37926
|
}), q), _ = (F) => {
|
|
37927
37927
|
var J;
|
|
37928
37928
|
if (!F || typeof F != "string" || F.startsWith("http")) return F;
|
|
37929
37929
|
const q = (J = n.selectedTokenCore) == null ? void 0 : J.address;
|
|
37930
37930
|
if (!q || typeof q != "string") return F;
|
|
37931
|
-
const Y = q.replace(/\/$/, ""),
|
|
37932
|
-
return `${Y}${
|
|
37931
|
+
const Y = q.replace(/\/$/, ""), ie = F.startsWith("/") ? F : `/${F}`;
|
|
37932
|
+
return `${Y}${ie}`;
|
|
37933
37933
|
}, v = (F) => {
|
|
37934
37934
|
var q;
|
|
37935
37935
|
if (!F) return !1;
|
|
37936
37936
|
for (const Y of F) {
|
|
37937
|
-
const
|
|
37938
|
-
if (
|
|
37937
|
+
const ie = Y.propsForm || Y.propsFormStep || Y.propsTable || Y.propsTableStep || Y.props || {};
|
|
37938
|
+
if (ie.endpointForm || ie.endpointTable || Y.endpointForm) return !0;
|
|
37939
37939
|
if (Y.type === "WIZARD" && ((q = Y.propsWizard) != null && q.propsSteps))
|
|
37940
37940
|
for (const J of Y.propsWizard.propsSteps) {
|
|
37941
37941
|
const fe = Array.isArray(J.sectionsWizard) ? J.sectionsWizard : [J.sectionsWizard].filter(Boolean);
|
|
@@ -37944,7 +37944,7 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
37944
37944
|
}
|
|
37945
37945
|
return !1;
|
|
37946
37946
|
}, A = async () => {
|
|
37947
|
-
var F, q, Y,
|
|
37947
|
+
var F, q, Y, ie, J, fe, pe;
|
|
37948
37948
|
g.value = !0;
|
|
37949
37949
|
try {
|
|
37950
37950
|
let W = n.layoutCode;
|
|
@@ -37953,37 +37953,37 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
37953
37953
|
let Te = await i(he, "GET", null, Z);
|
|
37954
37954
|
if (!Te.status || !Te.data || Array.isArray(Te.data) && Te.data.length === 0)
|
|
37955
37955
|
try {
|
|
37956
|
-
const
|
|
37956
|
+
const re = _(`${x}${W}`), Ce = await i(re, "GET", null, Z);
|
|
37957
37957
|
if (Ce.status) {
|
|
37958
37958
|
const we = Array.isArray(Ce.data) ? Ce.data[0] : Ce.data;
|
|
37959
37959
|
we && we.code && (W = we.code, C.value = W, Te = await i(_(`${w}${W}`), "GET", null, Z));
|
|
37960
37960
|
}
|
|
37961
|
-
} catch (
|
|
37962
|
-
console.warn("Failed to resolve layout code via datatable",
|
|
37961
|
+
} catch (re) {
|
|
37962
|
+
console.warn("Failed to resolve layout code via datatable", re);
|
|
37963
37963
|
}
|
|
37964
37964
|
if (Te.status) {
|
|
37965
37965
|
p.value = Array.isArray(Te.data) ? Te.data[0] : Te.data;
|
|
37966
|
-
const
|
|
37966
|
+
const re = {};
|
|
37967
37967
|
if ((F = p.value) != null && F.sections && p.value.sections.forEach((Ce) => {
|
|
37968
37968
|
var Se, Ee;
|
|
37969
37969
|
((Ce.propsForm || Ce.props || {}).fields || Ce.fields || []).forEach((De) => {
|
|
37970
37970
|
var Fe;
|
|
37971
37971
|
const Be = De.model || ((Fe = De.props) == null ? void 0 : Fe.model) || De.key;
|
|
37972
|
-
Be && (
|
|
37972
|
+
Be && (re[Be] = null);
|
|
37973
37973
|
}), ((Se = Ce.type) == null ? void 0 : Se.toUpperCase()) === "WIZARD" && ((Ee = Ce.propsWizard) != null && Ee.propsSteps) && Ce.propsWizard.propsSteps.forEach((De) => {
|
|
37974
37974
|
(Array.isArray(De.sectionsWizard) ? De.sectionsWizard : [De.sectionsWizard].filter(Boolean)).forEach((Fe) => {
|
|
37975
37975
|
var le;
|
|
37976
37976
|
(Fe.fields || ((le = Fe.propsFormStep) == null ? void 0 : le.fields) || []).forEach((be) => {
|
|
37977
37977
|
var Re;
|
|
37978
37978
|
const ye = be.model || ((Re = be.props) == null ? void 0 : Re.model) || be.key;
|
|
37979
|
-
ye && (
|
|
37979
|
+
ye && (re[ye] = null);
|
|
37980
37980
|
});
|
|
37981
37981
|
});
|
|
37982
37982
|
});
|
|
37983
|
-
}), h.value =
|
|
37983
|
+
}), h.value = re, u.value && f.value && (h.value.id = f.value), g.value = !1, u.value && f.value) {
|
|
37984
37984
|
y.value = !0;
|
|
37985
37985
|
try {
|
|
37986
|
-
const Ce = ((Y = (q = p.value.sections) == null ? void 0 : q[0]) == null ? void 0 : Y.propsForm) || ((J = (
|
|
37986
|
+
const Ce = ((Y = (q = p.value.sections) == null ? void 0 : q[0]) == null ? void 0 : Y.propsForm) || ((J = (ie = p.value.sections) == null ? void 0 : ie[0]) == null ? void 0 : J.props), we = (Ce == null ? void 0 : Ce.endpointSection) || (Ce == null ? void 0 : Ce.endpointForm), me = p.value.endpointForm, Se = we || me;
|
|
37987
37987
|
if (Se != null && Se.apiUrl) {
|
|
37988
37988
|
y.value = !0;
|
|
37989
37989
|
const Ee = Se.apiUrl, De = Se.apiMethod || "GET", Be = Se.keyParam || [], Fe = {};
|
|
@@ -38054,7 +38054,7 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
38054
38054
|
console.error("Failed to load form layout:", W), g.value = !1;
|
|
38055
38055
|
}
|
|
38056
38056
|
}, R = (F) => {
|
|
38057
|
-
const q = Object.keys(h.value || {}).filter((
|
|
38057
|
+
const q = Object.keys(h.value || {}).filter((ie) => h.value[ie] !== null && h.value[ie] !== void 0), Y = Object.keys(F || {}).filter((ie) => F[ie] !== null && F[ie] !== void 0);
|
|
38058
38058
|
if (q.length > 3 && Y.length < q.length / 2) {
|
|
38059
38059
|
console.warn('[AutoLayoutForm] Circuit breaker triggered: Ignoring likely erroneous "empty" update from child.', {
|
|
38060
38060
|
currentCount: q.length,
|
|
@@ -38065,17 +38065,17 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
38065
38065
|
}
|
|
38066
38066
|
h.value = F, o("update:model", F);
|
|
38067
38067
|
}, L = (F) => {
|
|
38068
|
-
var Y,
|
|
38069
|
-
const q = (F == null ? void 0 : F.routeBack) || (F == null ? void 0 : F.pathBack) || ((Y = p.value) == null ? void 0 : Y.routeBack) || ((
|
|
38068
|
+
var Y, ie;
|
|
38069
|
+
const q = (F == null ? void 0 : F.routeBack) || (F == null ? void 0 : F.pathBack) || ((Y = p.value) == null ? void 0 : Y.routeBack) || ((ie = p.value) == null ? void 0 : ie.pathBack);
|
|
38070
38070
|
q ? s.push(q) : s.back();
|
|
38071
38071
|
}, P = async (F) => {
|
|
38072
|
-
var q, Y,
|
|
38072
|
+
var q, Y, ie;
|
|
38073
38073
|
if (n.dummyMode) {
|
|
38074
38074
|
o("submit-success", F), L();
|
|
38075
38075
|
return;
|
|
38076
38076
|
}
|
|
38077
38077
|
try {
|
|
38078
|
-
const J = (
|
|
38078
|
+
const J = (ie = (Y = (q = p.value.sections) == null ? void 0 : q[0]) == null ? void 0 : Y.propsForm) == null ? void 0 : ie.endpointForm, fe = p.value.endpointGlobal || p.value.endpoint, pe = (J == null ? void 0 : J.submitUrl) || (fe == null ? void 0 : fe.submitUrl) || `/api/generic/${n.layoutCode}`, W = (J == null ? void 0 : J.submitMethod) || (fe == null ? void 0 : fe.submitMethod) || (u.value ? "PUT" : "POST"), G = Object.values(F).some(
|
|
38079
38079
|
(me) => me instanceof File || me instanceof Blob
|
|
38080
38080
|
);
|
|
38081
38081
|
let Z = F;
|
|
@@ -38090,9 +38090,9 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
38090
38090
|
const Se = Z[me];
|
|
38091
38091
|
Se != null && (Array.isArray(Se) ? Se.forEach((Ee) => he.append(`${me}[]`, Ee)) : he.append(me, Se));
|
|
38092
38092
|
})) : (he = { ...Z }, u.value && f.value && !he.id && (he.id = f.value));
|
|
38093
|
-
const Te = J || fe,
|
|
38094
|
-
Te != null && Te.accept && (
|
|
38095
|
-
const Ce = await i(_(pe), W, he,
|
|
38093
|
+
const Te = J || fe, re = { ...Te == null ? void 0 : Te.config };
|
|
38094
|
+
Te != null && Te.accept && (re.headers || (re.headers = {}), re.headers.Accept = Te.accept, re.headers.accept = Te.accept);
|
|
38095
|
+
const Ce = await i(_(pe), W, he, re), we = (Ce == null ? void 0 : Ce.status) === !0 || (Ce == null ? void 0 : Ce.success) === !0 || (Ce == null ? void 0 : Ce.code) === 200 || (Ce == null ? void 0 : Ce.code) === "00" || (Ce == null ? void 0 : Ce.status) === "SUCCESS";
|
|
38096
38096
|
if (we) {
|
|
38097
38097
|
let me = (Ce == null ? void 0 : Ce.data) || (Ce == null ? void 0 : Ce.payload) || Ce;
|
|
38098
38098
|
if (Array.isArray(me) && me.length > 0 && (me = me[0]), me && typeof me == "object") {
|
|
@@ -38117,8 +38117,8 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
38117
38117
|
X();
|
|
38118
38118
|
return;
|
|
38119
38119
|
}
|
|
38120
|
-
const
|
|
38121
|
-
if (
|
|
38120
|
+
const ie = q.endpointPropAction || q.propsActionGlobal && q.propsActionGlobal.endpointPropAction;
|
|
38121
|
+
if (ie) {
|
|
38122
38122
|
if (n.dummyMode) {
|
|
38123
38123
|
o("action-success", F, q, Y || h.value);
|
|
38124
38124
|
return;
|
|
@@ -38127,7 +38127,7 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
38127
38127
|
g.value = !0;
|
|
38128
38128
|
const J = Y ? { ...Y } : { ...h.value };
|
|
38129
38129
|
u.value && q.model && f.value && (J[q.model] = f.value);
|
|
38130
|
-
const fe =
|
|
38130
|
+
const fe = ie.apiUrl, pe = ie.apiMethod || "POST";
|
|
38131
38131
|
(await l(_(fe), pe, J)).status && (o("action-success", F, q, J), L(q));
|
|
38132
38132
|
} catch (J) {
|
|
38133
38133
|
console.error("Action failed:", J);
|
|
@@ -38159,7 +38159,7 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
38159
38159
|
default: _e(() => [
|
|
38160
38160
|
!g.value && p.value ? (b(), M("div", qI, [
|
|
38161
38161
|
D("div", GI, [
|
|
38162
|
-
D("p", XI,
|
|
38162
|
+
D("p", XI, ae(p.value.description), 1)
|
|
38163
38163
|
]),
|
|
38164
38164
|
ue(lg, {
|
|
38165
38165
|
schema: p.value,
|
|
@@ -38181,7 +38181,7 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
38181
38181
|
}, null, 8, ["schema", "model", "is-edit-mode", "loading", "selected-token-core", "router", "permission-base", "user-permissions", "check-permission", "dummy-mode"])
|
|
38182
38182
|
])) : g.value ? (b(), M("div", YI, [
|
|
38183
38183
|
ue(WI)
|
|
38184
|
-
])) : (b(), M("div", JI, " Failed to load form configuration for " +
|
|
38184
|
+
])) : (b(), M("div", JI, " Failed to load form configuration for " + ae(n.layoutCode), 1))
|
|
38185
38185
|
]),
|
|
38186
38186
|
_: 1
|
|
38187
38187
|
})
|
|
@@ -38295,7 +38295,7 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
38295
38295
|
_: 1
|
|
38296
38296
|
}, 8, ["api-url", "table-config", "permission-base", "dummy-mode", "user-permissions", "permission-checker", "checkPermission"])) : u.value ? (b(), M("div", e$, [...P[1] || (P[1] = [
|
|
38297
38297
|
D("i", { class: "mdi mdi-loading mdi-spin text-4xl text-primary-600" }, null, -1)
|
|
38298
|
-
])])) : (b(), M("div", t$, " Failed to load configuration for " +
|
|
38298
|
+
])])) : (b(), M("div", t$, " Failed to load configuration for " + ae(n.layoutCode), 1))
|
|
38299
38299
|
]));
|
|
38300
38300
|
}
|
|
38301
38301
|
}), n$ = { class: "flex items-start justify-between" }, o$ = { class: "flex-1" }, r$ = { class: "text-sm font-medium text-zinc-600 dark:text-zinc-400 mb-2" }, a$ = { class: "text-3xl font-display font-semibold text-zinc-900 dark:text-zinc-100 mb-2" }, s$ = ["innerHTML"], A$ = /* @__PURE__ */ Le({
|
|
@@ -38325,8 +38325,8 @@ const UI = { class: "w-full space-y-6 animate-pulse" }, VI = { class: "p-4 grid
|
|
|
38325
38325
|
default: _e(() => [
|
|
38326
38326
|
D("div", n$, [
|
|
38327
38327
|
D("div", o$, [
|
|
38328
|
-
D("p", r$,
|
|
38329
|
-
D("p", a$,
|
|
38328
|
+
D("p", r$, ae(e.title), 1),
|
|
38329
|
+
D("p", a$, ae(r.value), 1)
|
|
38330
38330
|
]),
|
|
38331
38331
|
D("div", {
|
|
38332
38332
|
class: ve(["w-14 h-14 rounded-xl flex items-center justify-center flex-shrink-0", a.value])
|
|
@@ -38350,7 +38350,7 @@ typeof customElements < "u" && (customElements.get("micro-dynamic-form") || cust
|
|
|
38350
38350
|
const c$ = [
|
|
38351
38351
|
Il,
|
|
38352
38352
|
$f,
|
|
38353
|
-
|
|
38353
|
+
Tt,
|
|
38354
38354
|
xo,
|
|
38355
38355
|
Eh,
|
|
38356
38356
|
Mh,
|
|
@@ -38415,7 +38415,7 @@ export {
|
|
|
38415
38415
|
Il as DCodeAutoComplete,
|
|
38416
38416
|
ha as DCodeBadge,
|
|
38417
38417
|
Eh as DCodeBeforeAfter,
|
|
38418
|
-
|
|
38418
|
+
Tt as DCodeButton,
|
|
38419
38419
|
xo as DCodeCard,
|
|
38420
38420
|
kp as DCodeCardCheckboxList,
|
|
38421
38421
|
Q_ as DCodeChart,
|