@realtek/core-theme-live 0.0.384 → 0.0.385
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-lib/LinkedRecordFileField-BE_T5cc6.cjs +5 -0
- package/dist-lib/{LinkedRecordFileField-D6C94D5-.cjs.map → LinkedRecordFileField-BE_T5cc6.cjs.map} +1 -1
- package/dist-lib/{LinkedRecordFileField-CAbfb_IO.js → LinkedRecordFileField-CiVlY8m5.js} +460 -439
- package/dist-lib/{LinkedRecordFileField-CAbfb_IO.js.map → LinkedRecordFileField-CiVlY8m5.js.map} +1 -1
- package/dist-lib/index.cjs +7 -7
- package/dist-lib/index.cjs.map +1 -1
- package/dist-lib/index.js +8663 -8571
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/style.css +1 -1
- package/package.json +1 -1
- package/dist-lib/LinkedRecordFileField-D6C94D5-.cjs +0 -5
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { D as e, S as t, T as n, a as r, d as i, o as a, t as o, x as s } from "./authApi-Flvm7WKc.js";
|
|
2
2
|
import { n as c, r as l } from "./diceCandidateMapper-DqBO4EhL.js";
|
|
3
3
|
import { Suspense as u, lazy as d, useCallback as f, useEffect as p, useMemo as m, useRef as h, useState as g } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { DownOutlined as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { Link as
|
|
11
|
-
import { EditorContent as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { Table as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
4
|
+
import { Alert as _, Breadcrumb as v, Button as y, Checkbox as b, Form as x, Modal as ee, Space as te, Spin as ne, Tooltip as re, Typography as ie, message as S } from "antd";
|
|
5
|
+
import { DownOutlined as ae, EditOutlined as oe, ExclamationCircleFilled as se, EyeOutlined as ce, FileOutlined as le, FilePdfOutlined as ue, FileTextOutlined as de, FileWordOutlined as fe, InfoCircleFilled as pe, PlusOutlined as me, UserOutlined as he } from "@ant-design/icons";
|
|
6
|
+
import { Fragment as ge, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
7
|
+
import T from "dayjs";
|
|
8
|
+
import _e from "dayjs/plugin/utc";
|
|
9
|
+
import ve from "dayjs/plugin/timezone";
|
|
10
|
+
import { Link as ye } from "react-router-dom";
|
|
11
|
+
import { EditorContent as be, useEditor as xe } from "@tiptap/react";
|
|
12
|
+
import Se from "@tiptap/starter-kit";
|
|
13
|
+
import Ce from "@tiptap/extension-link";
|
|
14
|
+
import we from "@tiptap/extension-underline";
|
|
15
|
+
import { Table as Te, TableCell as Ee, TableHeader as De, TableRow as Oe } from "@tiptap/extension-table";
|
|
16
|
+
import E from "prop-types";
|
|
17
|
+
import ke from "dompurify";
|
|
18
18
|
//#region src/services/adminApi.js
|
|
19
|
-
var
|
|
19
|
+
var Ae = "/admin/field-config", D = [
|
|
20
20
|
{
|
|
21
21
|
key: "clients",
|
|
22
22
|
apiModule: "clients"
|
|
@@ -46,17 +46,17 @@ var T = "/admin/field-config", E = [
|
|
|
46
46
|
apiModule: "payroll"
|
|
47
47
|
}
|
|
48
48
|
];
|
|
49
|
-
function
|
|
49
|
+
function O(...e) {
|
|
50
50
|
return e.find(Array.isArray) ?? [];
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function k(e, t, n) {
|
|
53
53
|
return t.map((t) => e?.[t]).find((e) => e != null && e !== "") ?? n;
|
|
54
54
|
}
|
|
55
55
|
function je(e, t) {
|
|
56
56
|
return e?.total ?? e?.totalCount ?? e?.count ?? e?.recordsTotal ?? e?.meta?.total ?? e?.pagination?.total ?? t.length;
|
|
57
57
|
}
|
|
58
58
|
function Me(e, t) {
|
|
59
|
-
let n =
|
|
59
|
+
let n = k(e, [
|
|
60
60
|
"label",
|
|
61
61
|
"Label",
|
|
62
62
|
"fieldName",
|
|
@@ -64,7 +64,7 @@ function Me(e, t) {
|
|
|
64
64
|
"name",
|
|
65
65
|
"fieldLabel",
|
|
66
66
|
"value"
|
|
67
|
-
], `Field ${t + 1}`), r =
|
|
67
|
+
], `Field ${t + 1}`), r = k(e, [
|
|
68
68
|
"field",
|
|
69
69
|
"Field",
|
|
70
70
|
"fieldKey",
|
|
@@ -73,7 +73,7 @@ function Me(e, t) {
|
|
|
73
73
|
"value",
|
|
74
74
|
"fieldName",
|
|
75
75
|
"name"
|
|
76
|
-
], n), i =
|
|
76
|
+
], n), i = k(e, [
|
|
77
77
|
"isVisible",
|
|
78
78
|
"is_visible",
|
|
79
79
|
"visible",
|
|
@@ -81,14 +81,14 @@ function Me(e, t) {
|
|
|
81
81
|
"is_show",
|
|
82
82
|
"isShow",
|
|
83
83
|
"enabled"
|
|
84
|
-
], !0), a =
|
|
84
|
+
], !0), a = k(e, [
|
|
85
85
|
"ismandatory",
|
|
86
86
|
"isMandatory",
|
|
87
87
|
"is_mandatory",
|
|
88
88
|
"mandatory",
|
|
89
89
|
"required",
|
|
90
90
|
"req"
|
|
91
|
-
], !1), o =
|
|
91
|
+
], !1), o = k(e, [
|
|
92
92
|
"order",
|
|
93
93
|
"Order",
|
|
94
94
|
"sortOrder",
|
|
@@ -98,7 +98,7 @@ function Me(e, t) {
|
|
|
98
98
|
...e,
|
|
99
99
|
fieldKey: r,
|
|
100
100
|
fieldName: n,
|
|
101
|
-
type:
|
|
101
|
+
type: k(e, ["type", "Type"], "text"),
|
|
102
102
|
isVisible: typeof i == "string" ? ![
|
|
103
103
|
"false",
|
|
104
104
|
"0",
|
|
@@ -153,7 +153,7 @@ function Ne(e) {
|
|
|
153
153
|
key: e,
|
|
154
154
|
apiModule: e
|
|
155
155
|
};
|
|
156
|
-
let t =
|
|
156
|
+
let t = k(e, [
|
|
157
157
|
"key",
|
|
158
158
|
"moduleKey",
|
|
159
159
|
"value",
|
|
@@ -165,7 +165,7 @@ function Ne(e) {
|
|
|
165
165
|
], "");
|
|
166
166
|
return t ? {
|
|
167
167
|
key: t,
|
|
168
|
-
apiModule:
|
|
168
|
+
apiModule: k(e, [
|
|
169
169
|
"apiModule",
|
|
170
170
|
"api_module",
|
|
171
171
|
"module",
|
|
@@ -177,8 +177,8 @@ function Ne(e) {
|
|
|
177
177
|
], t)
|
|
178
178
|
} : null;
|
|
179
179
|
}
|
|
180
|
-
function Pe(e =
|
|
181
|
-
let t = Array.isArray(e) && e.length ? e :
|
|
180
|
+
function Pe(e = D) {
|
|
181
|
+
let t = Array.isArray(e) && e.length ? e : D, n = /* @__PURE__ */ new Set();
|
|
182
182
|
return t.map(Ne).filter(Boolean).filter((e) => !n.has(e.key) && (n.add(e.key), !0));
|
|
183
183
|
}
|
|
184
184
|
var Fe = "/admin/modules";
|
|
@@ -418,17 +418,17 @@ async function vt() {
|
|
|
418
418
|
enabled: !0
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
|
-
var
|
|
421
|
+
var A = "/admin/integration-config";
|
|
422
422
|
async function yt() {
|
|
423
|
-
let e = await a(s,
|
|
423
|
+
let e = await a(s, A);
|
|
424
424
|
return e?.data ?? e ?? [];
|
|
425
425
|
}
|
|
426
426
|
async function bt(e) {
|
|
427
|
-
let t = await a(s, `${
|
|
427
|
+
let t = await a(s, `${A}/${encodeURIComponent(e)}`);
|
|
428
428
|
return t?.data ?? t;
|
|
429
429
|
}
|
|
430
430
|
async function xt(e) {
|
|
431
|
-
let t = e?.integrationKey, n = t ? `${
|
|
431
|
+
let t = e?.integrationKey, n = t ? `${A}/${encodeURIComponent(t)}` : A;
|
|
432
432
|
return a(s, n, {
|
|
433
433
|
method: t ? "PUT" : "POST",
|
|
434
434
|
headers: { "Content-Type": "application/json" },
|
|
@@ -436,10 +436,10 @@ async function xt(e) {
|
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
async function St(e) {
|
|
439
|
-
return a(s, `${
|
|
439
|
+
return a(s, `${A}/${encodeURIComponent(e)}`, { method: "DELETE" });
|
|
440
440
|
}
|
|
441
441
|
async function Ct(e) {
|
|
442
|
-
let t = await a(s, `${
|
|
442
|
+
let t = await a(s, `${A}/test`, {
|
|
443
443
|
method: "POST",
|
|
444
444
|
headers: { "Content-Type": "application/json" },
|
|
445
445
|
body: JSON.stringify(e)
|
|
@@ -469,11 +469,11 @@ function Et(e) {
|
|
|
469
469
|
raw: e
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function j(e) {
|
|
473
473
|
return e?.raw?.role_id ?? e?.roleId ?? e?.key;
|
|
474
474
|
}
|
|
475
475
|
async function Dt() {
|
|
476
|
-
let e = await a(s, "/get-roles"), t = e.data ?? e, n =
|
|
476
|
+
let e = await a(s, "/get-roles"), t = e.data ?? e, n = O(t?.zinnext_default).map(Et), r = O(t?.custom_roles).map(Et), i = [...n, ...r];
|
|
477
477
|
return {
|
|
478
478
|
roles: i,
|
|
479
479
|
total: i.length
|
|
@@ -487,8 +487,8 @@ function Ot(e) {
|
|
|
487
487
|
manager: e.reportingManager ?? "N/A",
|
|
488
488
|
managerId: e.reportingManagerId ?? 0,
|
|
489
489
|
memberCount: e.noOfTeamMembers ?? 0,
|
|
490
|
-
members:
|
|
491
|
-
memberIds:
|
|
490
|
+
members: O(e.teamMembers),
|
|
491
|
+
memberIds: O(e.teamMembersIds),
|
|
492
492
|
raw: e
|
|
493
493
|
};
|
|
494
494
|
}
|
|
@@ -501,7 +501,7 @@ async function At({ offset: e = 0, limit: t = 10, sortBy: n = "new", search: r =
|
|
|
501
501
|
sortBy: n,
|
|
502
502
|
limit: String(t),
|
|
503
503
|
offset: String(e)
|
|
504
|
-
}), o = await a(s, `/get-teams?${i}`), c = o.data ?? o, l =
|
|
504
|
+
}), o = await a(s, `/get-teams?${i}`), c = o.data ?? o, l = O(c?.teams, c, o?.teams), u = c?.totalCount ?? c?.total ?? l.length;
|
|
505
505
|
return {
|
|
506
506
|
teams: l.map(Ot),
|
|
507
507
|
total: u
|
|
@@ -527,15 +527,15 @@ async function Mt(e, t, n, r = "listView", i = !1) {
|
|
|
527
527
|
configType: r
|
|
528
528
|
});
|
|
529
529
|
i && (!r || r === "listView") && o.set("includeMeta", "1");
|
|
530
|
-
let c = await a(s, `${
|
|
530
|
+
let c = await a(s, `${Ae}?${o}`), l = c.data ?? c, u = O(l, l?.visibleFields, c?.visibleFields);
|
|
531
531
|
return i ? {
|
|
532
532
|
fields: u,
|
|
533
533
|
dataVisibilityMode: l?.dataVisibilityMode ?? c?.dataVisibilityMode ?? "all",
|
|
534
534
|
dataOwnerField: l?.dataOwnerField ?? c?.dataOwnerField ?? "createdBy"
|
|
535
535
|
} : u;
|
|
536
536
|
}
|
|
537
|
-
async function Nt(e, t = "listView", n =
|
|
538
|
-
let r =
|
|
537
|
+
async function Nt(e, t = "listView", n = D) {
|
|
538
|
+
let r = j(e), i = Pe(n), a = await Promise.all(i.map(async ({ key: e, apiModule: n }) => [e, (await Mt(n, "roleId", r, t)).map((t, i) => ({
|
|
539
539
|
...Me(t, i),
|
|
540
540
|
module: e,
|
|
541
541
|
apiModule: n,
|
|
@@ -543,8 +543,8 @@ async function Nt(e, t = "listView", n = E) {
|
|
|
543
543
|
}))]));
|
|
544
544
|
return Object.fromEntries(a);
|
|
545
545
|
}
|
|
546
|
-
async function Pt(e, t = "listView", n =
|
|
547
|
-
let r =
|
|
546
|
+
async function Pt(e, t = "listView", n = D) {
|
|
547
|
+
let r = j(e), i = Pe(n), a = await Promise.all(i.map(async ({ key: e, apiModule: n }) => {
|
|
548
548
|
let i = await Mt(n, "roleId", r, t, !0);
|
|
549
549
|
return [e, {
|
|
550
550
|
fields: i.fields.map((t, i) => ({
|
|
@@ -560,7 +560,7 @@ async function Pt(e, t = "listView", n = E) {
|
|
|
560
560
|
return Object.fromEntries(a);
|
|
561
561
|
}
|
|
562
562
|
async function Ft(e, t = "listView") {
|
|
563
|
-
let n = kt(e), r = await Promise.all(
|
|
563
|
+
let n = kt(e), r = await Promise.all(D.map(async ({ key: e, apiModule: r }) => [e, (await Mt(r, "teamId", n, t)).map((t, i) => ({
|
|
564
564
|
...Me(t, i),
|
|
565
565
|
module: e,
|
|
566
566
|
apiModule: r,
|
|
@@ -621,9 +621,9 @@ function Lt(e, t) {
|
|
|
621
621
|
].includes(e.type) && (i.dataSource = e.dataSource ?? "module", e.dataSource === "group" && (i.groupName = e.groupName ?? ""))), i;
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
async function Rt(e, t, n, r = "listView", i =
|
|
625
|
-
let l =
|
|
626
|
-
return a(s, `${
|
|
624
|
+
async function Rt(e, t, n, r = "listView", i = D, o = "", c = "createdBy") {
|
|
625
|
+
let l = j(e), u = Pe(i).find((e) => e.key === t)?.apiModule ?? t;
|
|
626
|
+
return a(s, `${Ae}/role`, {
|
|
627
627
|
method: "PUT",
|
|
628
628
|
body: JSON.stringify({
|
|
629
629
|
module: u,
|
|
@@ -642,7 +642,7 @@ function Bt(e) {
|
|
|
642
642
|
return `__group__:${e}`;
|
|
643
643
|
}
|
|
644
644
|
async function Vt(e, t, n = {}) {
|
|
645
|
-
let r =
|
|
645
|
+
let r = j(e), i = new URLSearchParams({
|
|
646
646
|
module: t,
|
|
647
647
|
roleId: String(r ?? "")
|
|
648
648
|
});
|
|
@@ -651,7 +651,7 @@ async function Vt(e, t, n = {}) {
|
|
|
651
651
|
return Array.isArray(c) ? c : [];
|
|
652
652
|
}
|
|
653
653
|
async function Ht(e, t, n) {
|
|
654
|
-
let r =
|
|
654
|
+
let r = j(e), i = [], o = 0;
|
|
655
655
|
for (let e of n) {
|
|
656
656
|
e.locked || i.push({
|
|
657
657
|
label: e.label,
|
|
@@ -668,7 +668,7 @@ async function Ht(e, t, n) {
|
|
|
668
668
|
order: o++
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
|
-
return a(s, `${
|
|
671
|
+
return a(s, `${Ae}/role`, {
|
|
672
672
|
method: "PUT",
|
|
673
673
|
body: JSON.stringify({
|
|
674
674
|
module: t,
|
|
@@ -679,8 +679,8 @@ async function Ht(e, t, n) {
|
|
|
679
679
|
});
|
|
680
680
|
}
|
|
681
681
|
async function Ut(e, t, n, r = "listView") {
|
|
682
|
-
let i = kt(e), o =
|
|
683
|
-
return a(s, `${
|
|
682
|
+
let i = kt(e), o = D.find((e) => e.key === t)?.apiModule ?? t;
|
|
683
|
+
return a(s, `${Ae}/team`, {
|
|
684
684
|
method: "PUT",
|
|
685
685
|
body: JSON.stringify({
|
|
686
686
|
module: o,
|
|
@@ -697,7 +697,7 @@ async function Wt({ offset: e = 0, limit: t = 10, sortBy: n = "new", searchQuery
|
|
|
697
697
|
sortBy: n
|
|
698
698
|
});
|
|
699
699
|
r && i.set("searchquery", r);
|
|
700
|
-
let o = await a(s, `/get-all-users?${i}`), c = o.data ?? o, l =
|
|
700
|
+
let o = await a(s, `/get-all-users?${i}`), c = o.data ?? o, l = O(c, o.users, o.rows, o.items, o.records, c?.users, c?.data, c?.rows, c?.items, c?.records, c?.docs, c?.result, c?.results);
|
|
701
701
|
return {
|
|
702
702
|
users: l,
|
|
703
703
|
total: je({
|
|
@@ -707,14 +707,14 @@ async function Wt({ offset: e = 0, limit: t = 10, sortBy: n = "new", searchQuery
|
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
709
|
async function Gt(e = []) {
|
|
710
|
-
return a(s, `${
|
|
710
|
+
return a(s, `${Ae}/seed`, {
|
|
711
711
|
method: "POST",
|
|
712
712
|
headers: { "Content-Type": "application/json" },
|
|
713
713
|
body: JSON.stringify({ collections: e })
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
716
|
async function Kt() {
|
|
717
|
-
let e = await a(s, `${
|
|
717
|
+
let e = await a(s, `${Ae}/seed-status`), t = e?.data ?? e ?? {};
|
|
718
718
|
return {
|
|
719
719
|
modules: Array.isArray(t.modules) ? t.modules : [],
|
|
720
720
|
seededModules: t.seededModules ?? {}
|
|
@@ -873,7 +873,7 @@ async function ln(e, t) {
|
|
|
873
873
|
}
|
|
874
874
|
async function un() {
|
|
875
875
|
let e = await a(s, "/admin/menu-modules");
|
|
876
|
-
return
|
|
876
|
+
return O(e.data, e);
|
|
877
877
|
}
|
|
878
878
|
async function dn({ menuName: e, apiUrl: t = "", menuType: n = "menu", parentMenuId: r = 0, displayOrder: i = 0 }) {
|
|
879
879
|
let o = await a(s, "/admin/menu-modules", {
|
|
@@ -901,7 +901,7 @@ async function pn(e) {
|
|
|
901
901
|
}
|
|
902
902
|
async function mn() {
|
|
903
903
|
let e = await a(s, "/admin/menu-actions");
|
|
904
|
-
return
|
|
904
|
+
return O(e.data, e);
|
|
905
905
|
}
|
|
906
906
|
async function hn({ permissionName: e, permissionKey: t }) {
|
|
907
907
|
let n = await a(s, "/admin/menu-actions", {
|
|
@@ -1070,22 +1070,22 @@ var Rn = Object.freeze({
|
|
|
1070
1070
|
],
|
|
1071
1071
|
phoneFormat: "3-3-4",
|
|
1072
1072
|
phoneCountryCode: ""
|
|
1073
|
-
}),
|
|
1074
|
-
function
|
|
1075
|
-
return
|
|
1073
|
+
}), M = { ...Rn }, zn = null;
|
|
1074
|
+
function N() {
|
|
1075
|
+
return M;
|
|
1076
1076
|
}
|
|
1077
1077
|
function Bn(e) {
|
|
1078
1078
|
if (!e || typeof e != "object") return {};
|
|
1079
1079
|
let t = {};
|
|
1080
1080
|
if (e.s3BaseUrl && (t.s3BaseUrl = String(e.s3BaseUrl).replace(/\/+$/, "")), e.dateFormat && (t.dateFormat = e.dateFormat), e.dateTimeFormat && (t.dateTimeFormat = e.dateTimeFormat), typeof e.showTimeZoneLabel == "boolean" && (t.showTimeZoneLabel = e.showTimeZoneLabel), typeof e.timeZone == "string" && (t.timeZone = e.timeZone.trim()), typeof e.region == "string" && (t.region = e.region.trim()), e.timeZoneAliases && typeof e.timeZoneAliases == "object" && !Array.isArray(e.timeZoneAliases) && (t.timeZoneAliases = {
|
|
1081
|
-
...
|
|
1081
|
+
...M.timeZoneAliases,
|
|
1082
1082
|
...e.timeZoneAliases
|
|
1083
1083
|
}), e.booleanTrueLabel && (t.booleanTrueLabel = e.booleanTrueLabel), e.booleanFalseLabel && (t.booleanFalseLabel = e.booleanFalseLabel), e.emptyPlaceholder && (t.emptyPlaceholder = e.emptyPlaceholder), e.emptyTexts && typeof e.emptyTexts == "object" && !Array.isArray(e.emptyTexts)) {
|
|
1084
1084
|
let n = {};
|
|
1085
1085
|
Object.entries(e.emptyTexts).forEach(([e, t]) => {
|
|
1086
1086
|
typeof t == "string" && t.trim() !== "" && (n[e] = t.trim());
|
|
1087
1087
|
}), Object.keys(n).length && (t.emptyTexts = {
|
|
1088
|
-
...
|
|
1088
|
+
...M.emptyTexts,
|
|
1089
1089
|
...n
|
|
1090
1090
|
});
|
|
1091
1091
|
}
|
|
@@ -1108,10 +1108,10 @@ function Vn(e = Hn()) {
|
|
|
1108
1108
|
};
|
|
1109
1109
|
}
|
|
1110
1110
|
function Hn() {
|
|
1111
|
-
return
|
|
1111
|
+
return M.phoneFormat || Rn.phoneFormat;
|
|
1112
1112
|
}
|
|
1113
1113
|
function Un() {
|
|
1114
|
-
return
|
|
1114
|
+
return M.phoneCountryCode ?? Rn.phoneCountryCode;
|
|
1115
1115
|
}
|
|
1116
1116
|
function Wn(e, t = Hn()) {
|
|
1117
1117
|
let { total: n } = Vn(t);
|
|
@@ -1128,19 +1128,19 @@ function Gn(e, t = Hn()) {
|
|
|
1128
1128
|
return a.join(r);
|
|
1129
1129
|
}
|
|
1130
1130
|
function Kn(e) {
|
|
1131
|
-
return
|
|
1132
|
-
...
|
|
1131
|
+
return M = {
|
|
1132
|
+
...M,
|
|
1133
1133
|
...Bn(e)
|
|
1134
|
-
},
|
|
1134
|
+
}, M;
|
|
1135
1135
|
}
|
|
1136
1136
|
function qn(e = !1) {
|
|
1137
|
-
return zn && !e || (zn = ct().then((e) => Kn(e)).catch(() =>
|
|
1137
|
+
return zn && !e || (zn = ct().then((e) => Kn(e)).catch(() => M)), zn;
|
|
1138
1138
|
}
|
|
1139
|
-
|
|
1139
|
+
T.extend(_e), T.extend(ve);
|
|
1140
1140
|
var Jn = null;
|
|
1141
1141
|
function Yn() {
|
|
1142
1142
|
if (Jn === null) try {
|
|
1143
|
-
Jn =
|
|
1143
|
+
Jn = T.tz.guess() || "UTC";
|
|
1144
1144
|
} catch {
|
|
1145
1145
|
Jn = "UTC";
|
|
1146
1146
|
}
|
|
@@ -1155,23 +1155,23 @@ function Xn(e) {
|
|
|
1155
1155
|
return !1;
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function P(e = N()) {
|
|
1159
1159
|
let t = String(e?.timeZone ?? "").trim();
|
|
1160
1160
|
return Xn(t) ? t : Yn();
|
|
1161
1161
|
}
|
|
1162
1162
|
function Zn(e) {
|
|
1163
|
-
return
|
|
1163
|
+
return T().tz(P(e));
|
|
1164
1164
|
}
|
|
1165
1165
|
function Qn(e, t) {
|
|
1166
|
-
let n =
|
|
1167
|
-
return n.isValid() ? n.tz(
|
|
1166
|
+
let n = T(e?.$date ?? e);
|
|
1167
|
+
return n.isValid() ? n.tz(P(t)) : n;
|
|
1168
1168
|
}
|
|
1169
|
-
function $n(e, t, n =
|
|
1169
|
+
function $n(e, t, n = N()) {
|
|
1170
1170
|
let r = Qn(e, n);
|
|
1171
1171
|
return r.isValid() ? r.format(t || n?.dateFormat || "DD MMM YYYY") : "";
|
|
1172
1172
|
}
|
|
1173
|
-
function er(e =
|
|
1174
|
-
let n =
|
|
1173
|
+
function er(e = N(), t) {
|
|
1174
|
+
let n = P(e), r = cr(n, e);
|
|
1175
1175
|
if (r && r.includes("/")) {
|
|
1176
1176
|
let e = tr(n, t);
|
|
1177
1177
|
if (e) return r.split("/").map((e) => e.trim()).find((t) => t.toUpperCase() === e.toUpperCase()) || e;
|
|
@@ -1180,7 +1180,7 @@ function er(e = M(), t) {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
function tr(e, t) {
|
|
1182
1182
|
try {
|
|
1183
|
-
let n = t === void 0 ? /* @__PURE__ */ new Date() : new Date(
|
|
1183
|
+
let n = t === void 0 ? /* @__PURE__ */ new Date() : new Date(T(t?.$date ?? t).valueOf());
|
|
1184
1184
|
if (Number.isNaN(n.valueOf())) return "";
|
|
1185
1185
|
let r = new Intl.DateTimeFormat("en-US", {
|
|
1186
1186
|
timeZone: e,
|
|
@@ -1191,7 +1191,7 @@ function tr(e, t) {
|
|
|
1191
1191
|
return "";
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
|
-
function nr(e, t =
|
|
1194
|
+
function nr(e, t = N()) {
|
|
1195
1195
|
let n = $n(e, t?.dateTimeFormat || "MMM DD, YYYY | hh:mm A", t);
|
|
1196
1196
|
if (!n) return "";
|
|
1197
1197
|
if (t?.showTimeZoneLabel === !1) return n;
|
|
@@ -1207,21 +1207,21 @@ function rr(e) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
function ir(e, t) {
|
|
1209
1209
|
if (e == null || e === "") return null;
|
|
1210
|
-
let n =
|
|
1210
|
+
let n = T(e);
|
|
1211
1211
|
if (!n.isValid()) return null;
|
|
1212
|
-
let r =
|
|
1213
|
-
return
|
|
1212
|
+
let r = P(t);
|
|
1213
|
+
return T.tz(n.format("YYYY-MM-DDTHH:mm:ss"), r);
|
|
1214
1214
|
}
|
|
1215
|
-
function ar(e =
|
|
1215
|
+
function ar(e = P()) {
|
|
1216
1216
|
try {
|
|
1217
|
-
let t =
|
|
1217
|
+
let t = T().tz(e).utcOffset(), n = t < 0 ? "-" : "+", r = Math.abs(t);
|
|
1218
1218
|
return `UTC${n}${String(Math.floor(r / 60)).padStart(2, "0")}:${String(r % 60).padStart(2, "0")}`;
|
|
1219
1219
|
} catch {
|
|
1220
1220
|
return "";
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
|
-
function or(e =
|
|
1224
|
-
let t =
|
|
1223
|
+
function or(e = N()) {
|
|
1224
|
+
let t = P(e);
|
|
1225
1225
|
return `${cr(t, e) || t} (${ar(t)})`;
|
|
1226
1226
|
}
|
|
1227
1227
|
var sr = Object.freeze({
|
|
@@ -1239,10 +1239,10 @@ var sr = Object.freeze({
|
|
|
1239
1239
|
"Asia/Tokyo": "JST",
|
|
1240
1240
|
"Australia/Sydney": "AEST/AEDT"
|
|
1241
1241
|
});
|
|
1242
|
-
function cr(e, t =
|
|
1242
|
+
function cr(e, t = N()) {
|
|
1243
1243
|
return (t?.timeZoneAliases ?? {})[e] ?? sr[e] ?? "";
|
|
1244
1244
|
}
|
|
1245
|
-
function lr(e =
|
|
1245
|
+
function lr(e = N()) {
|
|
1246
1246
|
let t = [];
|
|
1247
1247
|
try {
|
|
1248
1248
|
t = Intl.supportedValuesOf("timeZone") ?? [];
|
|
@@ -1257,7 +1257,7 @@ function lr(e = M()) {
|
|
|
1257
1257
|
return [.../* @__PURE__ */ new Set([...n, ...t])].filter(Xn).map((t) => {
|
|
1258
1258
|
let n = 0;
|
|
1259
1259
|
try {
|
|
1260
|
-
n =
|
|
1260
|
+
n = T().tz(t).utcOffset();
|
|
1261
1261
|
} catch {
|
|
1262
1262
|
return null;
|
|
1263
1263
|
}
|
|
@@ -1273,7 +1273,7 @@ function lr(e = M()) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
//#endregion
|
|
1275
1275
|
//#region src/theme/colors/colors.js
|
|
1276
|
-
var
|
|
1276
|
+
var F = {
|
|
1277
1277
|
brand: "#0053a5",
|
|
1278
1278
|
brandDark: "#1d4ed8",
|
|
1279
1279
|
brandDarker: "#1e40af",
|
|
@@ -1349,8 +1349,8 @@ var P = {
|
|
|
1349
1349
|
avatarGreen: "#10b981",
|
|
1350
1350
|
linkedIn: "#0077b5"
|
|
1351
1351
|
};
|
|
1352
|
-
|
|
1353
|
-
var
|
|
1352
|
+
F.textPrimary, F.textSecondary, F.textMuted, F.textSubtle, F.textInverse, F.textLink, F.danger, F.success, F.danger, F.textLink, F.surfaceSoft, F.textSecondary, F.success, F.warning;
|
|
1353
|
+
var I = {
|
|
1354
1354
|
brand: "var(--color-brand)",
|
|
1355
1355
|
brandDark: "var(--color-brand-dark)",
|
|
1356
1356
|
brandDarker: "var(--color-brand-darker)",
|
|
@@ -1458,14 +1458,14 @@ var F = {
|
|
|
1458
1458
|
normal: "var(--line-height-normal)",
|
|
1459
1459
|
relaxed: "var(--line-height-relaxed)"
|
|
1460
1460
|
}, vr = {
|
|
1461
|
-
primary:
|
|
1462
|
-
secondary:
|
|
1463
|
-
muted:
|
|
1464
|
-
subtle:
|
|
1465
|
-
inverse:
|
|
1466
|
-
link:
|
|
1467
|
-
danger:
|
|
1468
|
-
success:
|
|
1461
|
+
primary: I.textPrimary,
|
|
1462
|
+
secondary: I.textSecondary,
|
|
1463
|
+
muted: I.textMuted,
|
|
1464
|
+
subtle: I.textSubtle,
|
|
1465
|
+
inverse: I.textInverse,
|
|
1466
|
+
link: I.textLink,
|
|
1467
|
+
danger: I.danger,
|
|
1468
|
+
success: I.success
|
|
1469
1469
|
};
|
|
1470
1470
|
function yr(...e) {
|
|
1471
1471
|
return e.filter(Boolean).join(" ");
|
|
@@ -1495,7 +1495,7 @@ function Cr({ as: e, tag: t, variant: n = "body", color: r, size: i, weight: a,
|
|
|
1495
1495
|
display: l,
|
|
1496
1496
|
...d
|
|
1497
1497
|
};
|
|
1498
|
-
return /* @__PURE__ */
|
|
1498
|
+
return /* @__PURE__ */ C(h, {
|
|
1499
1499
|
...g ? { level: g } : {},
|
|
1500
1500
|
className: yr("app-typography", `app-typography--${n}`, r && vr[r] && `app-typography--${r}`, s && `app-typography--${s}`, c && "app-typography--truncate", u),
|
|
1501
1501
|
style: _,
|
|
@@ -1539,8 +1539,8 @@ var wr = (e = "") => e.trim().replace(/^\*\*(.*?)\*\*$/s, "$1").replace(/^__(.*?
|
|
|
1539
1539
|
});
|
|
1540
1540
|
return r.create(null, c);
|
|
1541
1541
|
};
|
|
1542
|
-
function
|
|
1543
|
-
return /* @__PURE__ */
|
|
1542
|
+
function L({ onClick: e, active: t, disabled: n, title: r, children: i }) {
|
|
1543
|
+
return /* @__PURE__ */ C("button", {
|
|
1544
1544
|
type: "button",
|
|
1545
1545
|
title: r,
|
|
1546
1546
|
disabled: n,
|
|
@@ -1552,55 +1552,55 @@ function I({ onClick: e, active: t, disabled: n, title: r, children: i }) {
|
|
|
1552
1552
|
});
|
|
1553
1553
|
}
|
|
1554
1554
|
function Or({ editor: e, disabled: t }) {
|
|
1555
|
-
return e ? /* @__PURE__ */
|
|
1555
|
+
return e ? /* @__PURE__ */ w("div", {
|
|
1556
1556
|
className: `tte-toolbar${t ? " tte-toolbar--disabled" : ""}`,
|
|
1557
1557
|
children: [
|
|
1558
|
-
/* @__PURE__ */
|
|
1558
|
+
/* @__PURE__ */ w("div", {
|
|
1559
1559
|
className: "tte-toolbar-group",
|
|
1560
1560
|
children: [
|
|
1561
|
-
/* @__PURE__ */
|
|
1561
|
+
/* @__PURE__ */ C(L, {
|
|
1562
1562
|
title: "Bold",
|
|
1563
1563
|
disabled: t,
|
|
1564
1564
|
active: e.isActive("bold"),
|
|
1565
1565
|
onClick: () => e.chain().focus().toggleBold().run(),
|
|
1566
|
-
children: /* @__PURE__ */
|
|
1566
|
+
children: /* @__PURE__ */ C("strong", { children: "B" })
|
|
1567
1567
|
}),
|
|
1568
|
-
/* @__PURE__ */
|
|
1568
|
+
/* @__PURE__ */ C(L, {
|
|
1569
1569
|
title: "Italic",
|
|
1570
1570
|
disabled: t,
|
|
1571
1571
|
active: e.isActive("italic"),
|
|
1572
1572
|
onClick: () => e.chain().focus().toggleItalic().run(),
|
|
1573
|
-
children: /* @__PURE__ */
|
|
1573
|
+
children: /* @__PURE__ */ C("em", { children: "I" })
|
|
1574
1574
|
}),
|
|
1575
|
-
/* @__PURE__ */
|
|
1575
|
+
/* @__PURE__ */ C(L, {
|
|
1576
1576
|
title: "Underline",
|
|
1577
1577
|
disabled: t,
|
|
1578
1578
|
active: e.isActive("underline"),
|
|
1579
1579
|
onClick: () => e.chain().focus().toggleUnderline().run(),
|
|
1580
|
-
children: /* @__PURE__ */
|
|
1580
|
+
children: /* @__PURE__ */ C("span", {
|
|
1581
1581
|
style: { textDecoration: "underline" },
|
|
1582
1582
|
children: "U"
|
|
1583
1583
|
})
|
|
1584
1584
|
}),
|
|
1585
|
-
/* @__PURE__ */
|
|
1585
|
+
/* @__PURE__ */ C(L, {
|
|
1586
1586
|
title: "Strikethrough",
|
|
1587
1587
|
disabled: t,
|
|
1588
1588
|
active: e.isActive("strike"),
|
|
1589
1589
|
onClick: () => e.chain().focus().toggleStrike().run(),
|
|
1590
|
-
children: /* @__PURE__ */
|
|
1590
|
+
children: /* @__PURE__ */ C("s", { children: "S" })
|
|
1591
1591
|
})
|
|
1592
1592
|
]
|
|
1593
1593
|
}),
|
|
1594
|
-
/* @__PURE__ */
|
|
1595
|
-
/* @__PURE__ */
|
|
1594
|
+
/* @__PURE__ */ C("div", { className: "tte-toolbar-divider" }),
|
|
1595
|
+
/* @__PURE__ */ w("div", {
|
|
1596
1596
|
className: "tte-toolbar-group",
|
|
1597
|
-
children: [/* @__PURE__ */
|
|
1597
|
+
children: [/* @__PURE__ */ C(L, {
|
|
1598
1598
|
title: "Bullet List",
|
|
1599
1599
|
disabled: t,
|
|
1600
1600
|
active: e.isActive("bulletList"),
|
|
1601
1601
|
onClick: () => e.chain().focus().toggleBulletList().run(),
|
|
1602
1602
|
children: "≡"
|
|
1603
|
-
}), /* @__PURE__ */
|
|
1603
|
+
}), /* @__PURE__ */ C(L, {
|
|
1604
1604
|
title: "Ordered List",
|
|
1605
1605
|
disabled: t,
|
|
1606
1606
|
active: e.isActive("orderedList"),
|
|
@@ -1608,10 +1608,10 @@ function Or({ editor: e, disabled: t }) {
|
|
|
1608
1608
|
children: "1."
|
|
1609
1609
|
})]
|
|
1610
1610
|
}),
|
|
1611
|
-
/* @__PURE__ */
|
|
1612
|
-
/* @__PURE__ */
|
|
1611
|
+
/* @__PURE__ */ C("div", { className: "tte-toolbar-divider" }),
|
|
1612
|
+
/* @__PURE__ */ C("div", {
|
|
1613
1613
|
className: "tte-toolbar-group",
|
|
1614
|
-
children: /* @__PURE__ */
|
|
1614
|
+
children: /* @__PURE__ */ C(L, {
|
|
1615
1615
|
title: "Link",
|
|
1616
1616
|
disabled: t,
|
|
1617
1617
|
active: e.isActive("link"),
|
|
@@ -1626,10 +1626,10 @@ function Or({ editor: e, disabled: t }) {
|
|
|
1626
1626
|
children: "🔗"
|
|
1627
1627
|
})
|
|
1628
1628
|
}),
|
|
1629
|
-
/* @__PURE__ */
|
|
1630
|
-
/* @__PURE__ */
|
|
1629
|
+
/* @__PURE__ */ C("div", { className: "tte-toolbar-divider" }),
|
|
1630
|
+
/* @__PURE__ */ w("div", {
|
|
1631
1631
|
className: "tte-toolbar-group tte-table-tools",
|
|
1632
|
-
children: [/* @__PURE__ */
|
|
1632
|
+
children: [/* @__PURE__ */ C(L, {
|
|
1633
1633
|
title: "Insert 3 × 3 table",
|
|
1634
1634
|
disabled: t,
|
|
1635
1635
|
active: e.isActive("table"),
|
|
@@ -1639,38 +1639,38 @@ function Or({ editor: e, disabled: t }) {
|
|
|
1639
1639
|
withHeaderRow: !0
|
|
1640
1640
|
}).run(),
|
|
1641
1641
|
children: "▦"
|
|
1642
|
-
}), e.isActive("table") && /* @__PURE__ */
|
|
1643
|
-
/* @__PURE__ */
|
|
1642
|
+
}), e.isActive("table") && /* @__PURE__ */ w(ge, { children: [
|
|
1643
|
+
/* @__PURE__ */ C(L, {
|
|
1644
1644
|
title: "Add column",
|
|
1645
1645
|
disabled: t || !e.can().addColumnAfter(),
|
|
1646
1646
|
onClick: () => e.chain().focus().addColumnAfter().run(),
|
|
1647
1647
|
children: "C+"
|
|
1648
1648
|
}),
|
|
1649
|
-
/* @__PURE__ */
|
|
1649
|
+
/* @__PURE__ */ C(L, {
|
|
1650
1650
|
title: "Delete column",
|
|
1651
1651
|
disabled: t || !e.can().deleteColumn(),
|
|
1652
1652
|
onClick: () => e.chain().focus().deleteColumn().run(),
|
|
1653
1653
|
children: "C−"
|
|
1654
1654
|
}),
|
|
1655
|
-
/* @__PURE__ */
|
|
1655
|
+
/* @__PURE__ */ C(L, {
|
|
1656
1656
|
title: "Add row",
|
|
1657
1657
|
disabled: t || !e.can().addRowAfter(),
|
|
1658
1658
|
onClick: () => e.chain().focus().addRowAfter().run(),
|
|
1659
1659
|
children: "R+"
|
|
1660
1660
|
}),
|
|
1661
|
-
/* @__PURE__ */
|
|
1661
|
+
/* @__PURE__ */ C(L, {
|
|
1662
1662
|
title: "Delete row",
|
|
1663
1663
|
disabled: t || !e.can().deleteRow(),
|
|
1664
1664
|
onClick: () => e.chain().focus().deleteRow().run(),
|
|
1665
1665
|
children: "R−"
|
|
1666
1666
|
}),
|
|
1667
|
-
/* @__PURE__ */
|
|
1667
|
+
/* @__PURE__ */ C(L, {
|
|
1668
1668
|
title: "Toggle header row",
|
|
1669
1669
|
disabled: t || !e.can().toggleHeaderRow(),
|
|
1670
1670
|
onClick: () => e.chain().focus().toggleHeaderRow().run(),
|
|
1671
1671
|
children: "H"
|
|
1672
1672
|
}),
|
|
1673
|
-
/* @__PURE__ */
|
|
1673
|
+
/* @__PURE__ */ C(L, {
|
|
1674
1674
|
title: "Delete table",
|
|
1675
1675
|
disabled: t || !e.can().deleteTable(),
|
|
1676
1676
|
onClick: () => e.chain().focus().deleteTable().run(),
|
|
@@ -1678,10 +1678,10 @@ function Or({ editor: e, disabled: t }) {
|
|
|
1678
1678
|
})
|
|
1679
1679
|
] })]
|
|
1680
1680
|
}),
|
|
1681
|
-
/* @__PURE__ */
|
|
1682
|
-
/* @__PURE__ */
|
|
1681
|
+
/* @__PURE__ */ C("div", { className: "tte-toolbar-divider" }),
|
|
1682
|
+
/* @__PURE__ */ C("div", {
|
|
1683
1683
|
className: "tte-toolbar-group",
|
|
1684
|
-
children: /* @__PURE__ */
|
|
1684
|
+
children: /* @__PURE__ */ C(L, {
|
|
1685
1685
|
title: "Clear formatting",
|
|
1686
1686
|
disabled: t,
|
|
1687
1687
|
onClick: () => e.chain().focus().clearNodes().unsetAllMarks().run(),
|
|
@@ -1692,21 +1692,21 @@ function Or({ editor: e, disabled: t }) {
|
|
|
1692
1692
|
}) : null;
|
|
1693
1693
|
}
|
|
1694
1694
|
function kr({ value: e = "", onChange: t, disabled: n = !1, placeholder: r = "" }) {
|
|
1695
|
-
let i = h(e ?? ""), a =
|
|
1695
|
+
let i = h(e ?? ""), a = xe({
|
|
1696
1696
|
extensions: [
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1697
|
+
Se,
|
|
1698
|
+
we,
|
|
1699
|
+
Ce.configure({
|
|
1700
1700
|
openOnClick: !1,
|
|
1701
1701
|
HTMLAttributes: { rel: "noopener noreferrer" }
|
|
1702
1702
|
}),
|
|
1703
|
-
|
|
1703
|
+
Te.configure({
|
|
1704
1704
|
resizable: !0,
|
|
1705
1705
|
HTMLAttributes: { class: "email-template-table" }
|
|
1706
1706
|
}),
|
|
1707
|
-
ke,
|
|
1708
1707
|
Oe,
|
|
1709
|
-
De
|
|
1708
|
+
De,
|
|
1709
|
+
Ee
|
|
1710
1710
|
],
|
|
1711
1711
|
content: e,
|
|
1712
1712
|
editable: !n,
|
|
@@ -1733,15 +1733,15 @@ function kr({ value: e = "", onChange: t, disabled: n = !1, placeholder: r = ""
|
|
|
1733
1733
|
t !== (i.current || "") && (i.current = t, a.commands.setContent(t, !1));
|
|
1734
1734
|
}, [e, a]), p(() => {
|
|
1735
1735
|
a && a.setEditable(!n);
|
|
1736
|
-
}, [n, a]), /* @__PURE__ */
|
|
1736
|
+
}, [n, a]), /* @__PURE__ */ w("div", {
|
|
1737
1737
|
className: `tte-wrapper${n ? " tte-wrapper--disabled" : ""}`,
|
|
1738
1738
|
children: [
|
|
1739
|
-
/* @__PURE__ */
|
|
1739
|
+
/* @__PURE__ */ C(Or, {
|
|
1740
1740
|
editor: a,
|
|
1741
1741
|
disabled: n
|
|
1742
1742
|
}),
|
|
1743
|
-
/* @__PURE__ */
|
|
1744
|
-
!e && !a?.isFocused && r && /* @__PURE__ */
|
|
1743
|
+
/* @__PURE__ */ C(be, { editor: a }),
|
|
1744
|
+
!e && !a?.isFocused && r && /* @__PURE__ */ C("div", {
|
|
1745
1745
|
className: "tte-placeholder",
|
|
1746
1746
|
children: r
|
|
1747
1747
|
})
|
|
@@ -2196,7 +2196,7 @@ function vi(e) {
|
|
|
2196
2196
|
return t = _i(t).replace(/\\x([0-9a-f]{2})/gi, (e, t) => String.fromCharCode(Number.parseInt(t, 16))).replace(/\\u([0-9a-f]{4})/gi, (e, t) => String.fromCharCode(Number.parseInt(t, 16))), t.normalize("NFC");
|
|
2197
2197
|
}
|
|
2198
2198
|
function yi(e) {
|
|
2199
|
-
return
|
|
2199
|
+
return ke.sanitize(String(e ?? ""), {
|
|
2200
2200
|
ALLOWED_TAGS: li,
|
|
2201
2201
|
ALLOWED_ATTR: ui,
|
|
2202
2202
|
ALLOW_DATA_ATTR: !1,
|
|
@@ -2363,7 +2363,7 @@ function Bi(e, t) {
|
|
|
2363
2363
|
}
|
|
2364
2364
|
//#endregion
|
|
2365
2365
|
//#region src/components/form/payloadTransformer.js
|
|
2366
|
-
var
|
|
2366
|
+
var R = (e) => e == null || e === "" || Array.isArray(e) && e.length === 0, Vi = (e) => e === !0 || e === 1 || e === "1", z = (e) => typeof e == "object" && !!e && !Array.isArray(e) && !Hi(e);
|
|
2367
2367
|
function Hi(e) {
|
|
2368
2368
|
return e && typeof e == "object" && typeof e.format == "function" && typeof e.isValid == "function";
|
|
2369
2369
|
}
|
|
@@ -2378,7 +2378,7 @@ function Gi(e, t) {
|
|
|
2378
2378
|
let n = ir(e);
|
|
2379
2379
|
return n ? n.toISOString() : Wi(e);
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function B(e, t) {
|
|
2382
2382
|
if (!t) return;
|
|
2383
2383
|
let n = String(t).split("."), r = e;
|
|
2384
2384
|
for (let e of n) {
|
|
@@ -2387,17 +2387,17 @@ function z(e, t) {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
return r;
|
|
2389
2389
|
}
|
|
2390
|
-
function B(e, t) {
|
|
2391
|
-
return e && Object.prototype.hasOwnProperty.call(e, t) ? e[t] : z(e, t);
|
|
2392
|
-
}
|
|
2393
2390
|
function V(e, t) {
|
|
2394
|
-
return e && Object.prototype.hasOwnProperty.call(e, t) ?
|
|
2391
|
+
return e && Object.prototype.hasOwnProperty.call(e, t) ? e[t] : B(e, t);
|
|
2392
|
+
}
|
|
2393
|
+
function H(e, t) {
|
|
2394
|
+
return e && Object.prototype.hasOwnProperty.call(e, t) ? !0 : B(e, t) !== void 0;
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function U(e, t, n) {
|
|
2397
2397
|
let r = String(t).split("."), i = e;
|
|
2398
2398
|
for (let e = 0; e < r.length - 1; e += 1) {
|
|
2399
2399
|
let t = r[e];
|
|
2400
|
-
|
|
2400
|
+
z(i[t]) || (i[t] = {}), i = i[t];
|
|
2401
2401
|
}
|
|
2402
2402
|
return i[r[r.length - 1]] = n, e;
|
|
2403
2403
|
}
|
|
@@ -2405,10 +2405,10 @@ function Ki(e, t, n) {
|
|
|
2405
2405
|
let r = String(t).split("."), i = e;
|
|
2406
2406
|
for (let e = 0; e < r.length - 1; e += 1) {
|
|
2407
2407
|
let t = r[e];
|
|
2408
|
-
|
|
2408
|
+
z(i[t]) || (i[t] = {}), i = i[t];
|
|
2409
2409
|
}
|
|
2410
2410
|
let a = r[r.length - 1];
|
|
2411
|
-
return i[a] =
|
|
2411
|
+
return i[a] = z(i[a]) && z(n) ? {
|
|
2412
2412
|
...n,
|
|
2413
2413
|
...i[a]
|
|
2414
2414
|
} : n, e;
|
|
@@ -2421,7 +2421,7 @@ function qi(e) {
|
|
|
2421
2421
|
}
|
|
2422
2422
|
function Ji(e, t) {
|
|
2423
2423
|
return Object.entries(t ?? {}).forEach(([t, n]) => {
|
|
2424
|
-
|
|
2424
|
+
z(n) && z(e[t]) ? Ji(e[t], n) : e[t] = n;
|
|
2425
2425
|
}), e;
|
|
2426
2426
|
}
|
|
2427
2427
|
function Yi(e, t) {
|
|
@@ -2431,7 +2431,7 @@ function Yi(e, t) {
|
|
|
2431
2431
|
} else if ((e.value ?? e.id ?? e.name ?? e.label) === t) return e.label ?? e.name ?? e.value;
|
|
2432
2432
|
}
|
|
2433
2433
|
function Xi(e, t) {
|
|
2434
|
-
if (
|
|
2434
|
+
if (z(e)) {
|
|
2435
2435
|
let n = (t.valueKey && e[t.valueKey]) ?? e.value ?? e.id ?? e._id ?? e.key ?? e.code;
|
|
2436
2436
|
return {
|
|
2437
2437
|
value: n,
|
|
@@ -2453,7 +2453,7 @@ function Zi(e = {}) {
|
|
|
2453
2453
|
default: return "auto";
|
|
2454
2454
|
}
|
|
2455
2455
|
}
|
|
2456
|
-
function
|
|
2456
|
+
function W(e, t, n = {}) {
|
|
2457
2457
|
if (Ui(e)) {
|
|
2458
2458
|
if (t === "string") return Gi(e, n);
|
|
2459
2459
|
if (t === "number") {
|
|
@@ -2465,16 +2465,16 @@ function U(e, t, n = {}) {
|
|
|
2465
2465
|
switch (t) {
|
|
2466
2466
|
case "string": return e == null ? "" : String(e);
|
|
2467
2467
|
case "number": {
|
|
2468
|
-
if (
|
|
2468
|
+
if (R(e)) return null;
|
|
2469
2469
|
let t = Number(e);
|
|
2470
2470
|
return Number.isNaN(t) ? null : t;
|
|
2471
2471
|
}
|
|
2472
2472
|
case "boolean": return e === !0 || e === 1 || e === "1" || e === "true";
|
|
2473
2473
|
case "array": {
|
|
2474
2474
|
let t;
|
|
2475
|
-
return t = Array.isArray(e) ? e :
|
|
2475
|
+
return t = Array.isArray(e) ? e : R(e) ? [] : typeof e == "string" && e.includes(",") ? e.split(",").map((e) => e.trim()).filter(Boolean) : [e], n.elementType ? t.map((e) => W(e, n.elementType, {})).filter((e) => e != null && e !== "") : t;
|
|
2476
2476
|
}
|
|
2477
|
-
case "object": return
|
|
2477
|
+
case "object": return z(e), e;
|
|
2478
2478
|
case "date": return Gi(e, n);
|
|
2479
2479
|
case "custom":
|
|
2480
2480
|
case "auto":
|
|
@@ -2515,7 +2515,7 @@ function ta(e, t) {
|
|
|
2515
2515
|
else if (n === "label") i = t.label;
|
|
2516
2516
|
else if (n === "raw") i = t.raw;
|
|
2517
2517
|
else return;
|
|
2518
|
-
return r.length ?
|
|
2518
|
+
return r.length ? B(i, r.join(".")) : i;
|
|
2519
2519
|
}
|
|
2520
2520
|
function na(e, t) {
|
|
2521
2521
|
if (typeof e == "string") {
|
|
@@ -2526,7 +2526,7 @@ function na(e, t) {
|
|
|
2526
2526
|
});
|
|
2527
2527
|
}
|
|
2528
2528
|
if (Array.isArray(e)) return e.map((e) => na(e, t));
|
|
2529
|
-
if (
|
|
2529
|
+
if (z(e)) {
|
|
2530
2530
|
let n = {};
|
|
2531
2531
|
return Object.entries(e).forEach(([e, r]) => {
|
|
2532
2532
|
n[e] = na(r, t);
|
|
@@ -2548,18 +2548,18 @@ function ia(e, t) {
|
|
|
2548
2548
|
switch (n) {
|
|
2549
2549
|
case "value": return {
|
|
2550
2550
|
kind: "scalar",
|
|
2551
|
-
out:
|
|
2551
|
+
out: W(i, r, e)
|
|
2552
2552
|
};
|
|
2553
2553
|
case "label": return {
|
|
2554
2554
|
kind: "scalar",
|
|
2555
|
-
out:
|
|
2555
|
+
out: W(a, e.dataType || "string", e)
|
|
2556
2556
|
};
|
|
2557
2557
|
case "object": {
|
|
2558
2558
|
let t = e.valueKey || "id", n = e.displayKey || "name";
|
|
2559
2559
|
return {
|
|
2560
2560
|
kind: "scalar",
|
|
2561
2561
|
out: {
|
|
2562
|
-
[t]:
|
|
2562
|
+
[t]: W(i, e.elementType || "auto", {}),
|
|
2563
2563
|
[n]: a
|
|
2564
2564
|
}
|
|
2565
2565
|
};
|
|
@@ -2569,10 +2569,10 @@ function ia(e, t) {
|
|
|
2569
2569
|
let n = ra(e.payloadTemplate);
|
|
2570
2570
|
if (!n) return {
|
|
2571
2571
|
kind: "scalar",
|
|
2572
|
-
out:
|
|
2572
|
+
out: W(i, r, e)
|
|
2573
2573
|
};
|
|
2574
2574
|
let o = na(n, {
|
|
2575
|
-
value:
|
|
2575
|
+
value: W(i, e.elementType || "auto", {}),
|
|
2576
2576
|
label: a,
|
|
2577
2577
|
raw: t
|
|
2578
2578
|
});
|
|
@@ -2583,14 +2583,14 @@ function ia(e, t) {
|
|
|
2583
2583
|
}
|
|
2584
2584
|
default: return {
|
|
2585
2585
|
kind: "scalar",
|
|
2586
|
-
out:
|
|
2586
|
+
out: W(i, r, e)
|
|
2587
2587
|
};
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
2590
|
function aa(e, t) {
|
|
2591
2591
|
if (e.payloadMode === "skip") return { kind: "skip" };
|
|
2592
2592
|
let n = t;
|
|
2593
|
-
return
|
|
2593
|
+
return R(n) && e.defaultValue !== void 0 && e.defaultValue !== "" && (n = e.defaultValue), n = $i(n, e.transformRule), R(n) && e.omitEmpty ? { kind: "skip" } : Array.isArray(n) && (Zi(e) === "array" || e.payloadMode === "object") && e.payloadMode && e.payloadMode !== "value" && e.payloadMode !== "auto" ? {
|
|
2594
2594
|
kind: "scalar",
|
|
2595
2595
|
out: n.map((t) => ia(e, t).out)
|
|
2596
2596
|
} : ia(e, n);
|
|
@@ -2606,7 +2606,7 @@ function oa(e = {}) {
|
|
|
2606
2606
|
function sa(e, t, n = []) {
|
|
2607
2607
|
if (!oa(e) || t == null) return t;
|
|
2608
2608
|
let r = (e) => {
|
|
2609
|
-
if (
|
|
2609
|
+
if (z(e) && e.value !== void 0) return e;
|
|
2610
2610
|
let t = n.find((t) => String(t?.value ?? "") === String(e) || String(t?.label ?? "") === String(e));
|
|
2611
2611
|
return {
|
|
2612
2612
|
value: t?.value ?? e,
|
|
@@ -2617,7 +2617,7 @@ function sa(e, t, n = []) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
function ca(e, t, n) {
|
|
2619
2619
|
if (!e?.field) return !0;
|
|
2620
|
-
let r =
|
|
2620
|
+
let r = H(t, e.field) ? V(t, e.field) : V(n ?? t, e.field), i = () => String(e.value ?? "").split(",").map((e) => e.trim());
|
|
2621
2621
|
switch (e.operator) {
|
|
2622
2622
|
case "eq": return String(r ?? "") === String(e.value ?? "");
|
|
2623
2623
|
case "neq": return String(r ?? "") !== String(e.value ?? "");
|
|
@@ -2664,7 +2664,7 @@ function fa(e = []) {
|
|
|
2664
2664
|
function pa(e = {}, { editing: t = !1 } = {}) {
|
|
2665
2665
|
let n = {};
|
|
2666
2666
|
return (e.fields ?? []).forEach((e) => {
|
|
2667
|
-
!e.field ||
|
|
2667
|
+
!e.field || G(e) || t && !e.defaultOnEdit || e.defaultValue !== void 0 && e.defaultValue !== "" && (n[e.field] = e.defaultValue);
|
|
2668
2668
|
}), n;
|
|
2669
2669
|
}
|
|
2670
2670
|
function ma(e = []) {
|
|
@@ -2685,11 +2685,11 @@ var ha = [
|
|
|
2685
2685
|
"upload",
|
|
2686
2686
|
"attachment"
|
|
2687
2687
|
];
|
|
2688
|
-
function
|
|
2688
|
+
function G(e) {
|
|
2689
2689
|
return ha.includes(String(e?.type ?? "").trim().toLowerCase());
|
|
2690
2690
|
}
|
|
2691
2691
|
function ga(e = []) {
|
|
2692
|
-
return ma(e).map(({ field: e }) => e).filter(
|
|
2692
|
+
return ma(e).map(({ field: e }) => e).filter(G);
|
|
2693
2693
|
}
|
|
2694
2694
|
function _a(e) {
|
|
2695
2695
|
return String(e ?? "").trim().toLowerCase();
|
|
@@ -2708,7 +2708,7 @@ function ya(e, t = [], n = {}) {
|
|
|
2708
2708
|
});
|
|
2709
2709
|
};
|
|
2710
2710
|
return (t ?? []).forEach((t) => {
|
|
2711
|
-
let r = (t.fields ?? []).filter(
|
|
2711
|
+
let r = (t.fields ?? []).filter(G);
|
|
2712
2712
|
if (!r.length) return;
|
|
2713
2713
|
let s = t.moduleName && !va(t, a), c = (e) => s ? `__mw__${t.moduleName}__${e}` : e;
|
|
2714
2714
|
if (t.addRow) {
|
|
@@ -2719,33 +2719,33 @@ function ya(e, t = [], n = {}) {
|
|
|
2719
2719
|
let t = e.fileKey ?? String(e.field).split(".")[0];
|
|
2720
2720
|
a.forEach((r, i) => {
|
|
2721
2721
|
let a = c(n.indexed ? `${t}[${i}]` : t);
|
|
2722
|
-
o(a,
|
|
2722
|
+
o(a, V(r, e.field));
|
|
2723
2723
|
});
|
|
2724
2724
|
});
|
|
2725
2725
|
return;
|
|
2726
2726
|
}
|
|
2727
2727
|
i !== "addRow" && r.forEach((t) => {
|
|
2728
2728
|
let n = c(t.fileKey ?? String(t.field).split(".")[0]);
|
|
2729
|
-
o(n,
|
|
2729
|
+
o(n, V(e, t.field));
|
|
2730
2730
|
});
|
|
2731
2731
|
}), r;
|
|
2732
2732
|
}
|
|
2733
2733
|
function ba(e, t, n = {}) {
|
|
2734
|
-
let r =
|
|
2734
|
+
let r = z(n.base) ? structuredClone(n.base) : {};
|
|
2735
2735
|
ga(t).forEach((e) => {
|
|
2736
2736
|
(e.payloadKey || e.field) && (Ca(r, e.payloadKey || e.field), Ca(r, e.field));
|
|
2737
2737
|
});
|
|
2738
2738
|
let i = _a(n.module), a = fa(t), o = /* @__PURE__ */ new Map(), s = (e) => !e.moduleName || va(e, i) ? r : (o.has(e.moduleName) || o.set(e.moduleName, {}), o.get(e.moduleName));
|
|
2739
2739
|
return (t ?? []).forEach((t) => {
|
|
2740
|
-
let n = s(t), r = t.fields ?? [], i = t.toggleEnabled && t.toggleField &&
|
|
2741
|
-
if (t.toggleEnabled && t.toggleField &&
|
|
2742
|
-
|
|
2740
|
+
let n = s(t), r = t.fields ?? [], i = t.toggleEnabled && t.toggleField && H(e, t.toggleField) ? !!V(e, t.toggleField) : !1;
|
|
2741
|
+
if (t.toggleEnabled && t.toggleField && H(e, t.toggleField) && (U(n, t.toggleField, i), i && t.addRow)) {
|
|
2742
|
+
U(n, t.payloadKey || t.name, []);
|
|
2743
2743
|
return;
|
|
2744
2744
|
}
|
|
2745
2745
|
if (t.addRow) {
|
|
2746
2746
|
let i = e[t.name];
|
|
2747
2747
|
if (!Array.isArray(i)) return;
|
|
2748
|
-
|
|
2748
|
+
U(n, t.payloadKey || t.name, i.map((t) => Sa(r, t, e, a)).filter((e) => e && Object.keys(e).length > 0));
|
|
2749
2749
|
return;
|
|
2750
2750
|
}
|
|
2751
2751
|
r.forEach((t) => xa(t, e, n, e, a));
|
|
@@ -2757,10 +2757,10 @@ function ba(e, t, n = {}) {
|
|
|
2757
2757
|
function xa(e, t, n, r, i) {
|
|
2758
2758
|
if (Oi(e) && ji(e)) {
|
|
2759
2759
|
let r = ki(e);
|
|
2760
|
-
|
|
2760
|
+
H(t, r) && U(n, r, !!V(t, r));
|
|
2761
2761
|
}
|
|
2762
|
-
if (
|
|
2763
|
-
let i = qi(
|
|
2762
|
+
if (G(e)) {
|
|
2763
|
+
let i = qi(V(t, e.field));
|
|
2764
2764
|
if (i !== void 0) {
|
|
2765
2765
|
let a = r !== void 0 && r !== t;
|
|
2766
2766
|
Ki(n, e.payloadKey || (a ? e.field : e.fileKey || e.field), i);
|
|
@@ -2768,30 +2768,30 @@ function xa(e, t, n, r, i) {
|
|
|
2768
2768
|
return;
|
|
2769
2769
|
}
|
|
2770
2770
|
if (la(e.showIf).length && !da(e, t, r, i)) {
|
|
2771
|
-
(r === void 0 || r === t) &&
|
|
2771
|
+
(r === void 0 || r === t) && H(t, e.field) && U(n, e.payloadKey || e.field, null);
|
|
2772
2772
|
return;
|
|
2773
2773
|
}
|
|
2774
2774
|
if (Array.isArray(e.subFields) && e.subFields.length > 0) {
|
|
2775
|
-
if (!
|
|
2776
|
-
let a =
|
|
2775
|
+
if (!H(t, e.field)) return;
|
|
2776
|
+
let a = V(t, e.field);
|
|
2777
2777
|
if (!Array.isArray(a)) return;
|
|
2778
2778
|
let o = a.map((t) => Sa(e.subFields, t, r, i)).filter((e) => e && Object.keys(e).length > 0);
|
|
2779
|
-
|
|
2779
|
+
U(n, e.payloadKey || e.field, o);
|
|
2780
2780
|
return;
|
|
2781
2781
|
}
|
|
2782
|
-
if (!
|
|
2782
|
+
if (!H(t, e.field)) return;
|
|
2783
2783
|
if (Vi(e.addRow) && (!Array.isArray(e.subFields) || e.subFields.length === 0)) {
|
|
2784
|
-
let r =
|
|
2785
|
-
|
|
2784
|
+
let r = V(t, e.field), i = Array.isArray(r) ? r : R(r) ? [] : [r], a = Ta(e), o = i.map((e) => aa(a, e)).filter((e) => e.kind !== "skip").map((e) => e.out);
|
|
2785
|
+
U(n, e.payloadKey || e.field, o);
|
|
2786
2786
|
return;
|
|
2787
2787
|
}
|
|
2788
|
-
let a = aa(e,
|
|
2788
|
+
let a = aa(e, V(t, e.field));
|
|
2789
2789
|
if (a.kind !== "skip") {
|
|
2790
|
-
if (a.kind === "spread" &&
|
|
2790
|
+
if (a.kind === "spread" && z(a.out)) {
|
|
2791
2791
|
Ji(n, a.out);
|
|
2792
2792
|
return;
|
|
2793
2793
|
}
|
|
2794
|
-
|
|
2794
|
+
U(n, e.payloadKey || e.field, a.out);
|
|
2795
2795
|
}
|
|
2796
2796
|
}
|
|
2797
2797
|
function Sa(e, t, n, r) {
|
|
@@ -2801,7 +2801,7 @@ function Sa(e, t, n, r) {
|
|
|
2801
2801
|
function Ca(e, t) {
|
|
2802
2802
|
let n = String(t).split("."), r = e;
|
|
2803
2803
|
for (let e = 0; e < n.length - 1; e += 1) {
|
|
2804
|
-
if (!
|
|
2804
|
+
if (!z(r[n[e]])) return;
|
|
2805
2805
|
r = r[n[e]];
|
|
2806
2806
|
}
|
|
2807
2807
|
delete r[n[n.length - 1]];
|
|
@@ -2818,23 +2818,23 @@ var wa = /* @__PURE__ */ new Set([
|
|
|
2818
2818
|
"datetime",
|
|
2819
2819
|
"password"
|
|
2820
2820
|
]);
|
|
2821
|
-
function
|
|
2821
|
+
function K(e, t) {
|
|
2822
2822
|
let n = (t) => (Array.isArray(e.emptyValues) ? e.emptyValues : []).some((e) => String(e) === String(t)), r = () => e.defaultOnEdit && e.defaultValue !== void 0 && e.defaultValue !== "" ? e.defaultValue : void 0;
|
|
2823
2823
|
if (t == null) return r() ?? t;
|
|
2824
2824
|
if (n(t)) return r();
|
|
2825
|
-
if (
|
|
2826
|
-
if (wa.has(e.type) &&
|
|
2825
|
+
if (R(t) && e.defaultOnEdit && e.defaultValue !== void 0 && e.defaultValue !== "") return e.defaultValue;
|
|
2826
|
+
if (wa.has(e.type) && z(t)) {
|
|
2827
2827
|
let n = String(e.payloadKey || e.field || "").split(".").pop(), r = n ? t[n] : void 0;
|
|
2828
|
-
if (r === void 0 ||
|
|
2828
|
+
if (r === void 0 || z(r)) return;
|
|
2829
2829
|
t = r;
|
|
2830
2830
|
}
|
|
2831
2831
|
if (e.type === "date" || e.type === "time") {
|
|
2832
2832
|
if (!t || t === "0001-01-01T00:00:00Z") return null;
|
|
2833
|
-
let e =
|
|
2833
|
+
let e = T(t);
|
|
2834
2834
|
return e.isValid() ? e : null;
|
|
2835
2835
|
}
|
|
2836
2836
|
t = Bi(e, t);
|
|
2837
|
-
let i = (t) =>
|
|
2837
|
+
let i = (t) => z(t) ? (e.valueKey && t[e.valueKey]) ?? t.id ?? t._id ?? t.value ?? t.userId ?? t.recruiterId : t, a = e.type !== "radio" && Zi(e) === "array", o = (t) => {
|
|
2838
2838
|
if (t == null || t === "" || !Array.isArray(e.options)) return t;
|
|
2839
2839
|
let n = e.options.find((e) => String(e?.value ?? "").toLowerCase() === String(t).toLowerCase());
|
|
2840
2840
|
return n ? n.value : t;
|
|
@@ -2862,9 +2862,9 @@ function Ea(e, t) {
|
|
|
2862
2862
|
Array.isArray(t) && (i = t.map((t) => {
|
|
2863
2863
|
let n = {};
|
|
2864
2864
|
return e.subFields.forEach((e) => {
|
|
2865
|
-
if (!e.field ||
|
|
2866
|
-
let r =
|
|
2867
|
-
r != null && (n[e.field] =
|
|
2865
|
+
if (!e.field || G(e)) return;
|
|
2866
|
+
let r = B(t ?? {}, e.field) ?? (t ?? {})[e.field];
|
|
2867
|
+
r != null && (n[e.field] = K(e, r));
|
|
2868
2868
|
}), n;
|
|
2869
2869
|
}));
|
|
2870
2870
|
let a = i.length > 0 ? n : Math.max(n, r);
|
|
@@ -2872,9 +2872,9 @@ function Ea(e, t) {
|
|
|
2872
2872
|
return i;
|
|
2873
2873
|
}
|
|
2874
2874
|
let i = Ta(e), a = [];
|
|
2875
|
-
if (Array.isArray(t)) a = t.map((e) =>
|
|
2875
|
+
if (Array.isArray(t)) a = t.map((e) => K(i, e)).filter((e) => e != null && e !== "");
|
|
2876
2876
|
else if (t != null && t !== "") {
|
|
2877
|
-
let e =
|
|
2877
|
+
let e = K(i, t);
|
|
2878
2878
|
e != null && e !== "" && (a = [e]);
|
|
2879
2879
|
}
|
|
2880
2880
|
let o = a.length > 0 ? n : Math.max(n, r);
|
|
@@ -2917,19 +2917,19 @@ function Aa(e, t = {}) {
|
|
|
2917
2917
|
var ja = {
|
|
2918
2918
|
duplicate: {
|
|
2919
2919
|
className: "fdd-tone-amber",
|
|
2920
|
-
Icon:
|
|
2920
|
+
Icon: he
|
|
2921
2921
|
},
|
|
2922
2922
|
overwrite: {
|
|
2923
2923
|
className: "fdd-tone-amber",
|
|
2924
|
-
Icon:
|
|
2924
|
+
Icon: se
|
|
2925
2925
|
},
|
|
2926
2926
|
suggestion: {
|
|
2927
2927
|
className: "fdd-tone-blue",
|
|
2928
|
-
Icon:
|
|
2928
|
+
Icon: pe
|
|
2929
2929
|
},
|
|
2930
2930
|
file: {
|
|
2931
2931
|
className: "fdd-tone-blue",
|
|
2932
|
-
Icon:
|
|
2932
|
+
Icon: de
|
|
2933
2933
|
}
|
|
2934
2934
|
};
|
|
2935
2935
|
function Ma({ tone: e = "suggestion", title: t, body: n, facts: r = [], okText: i = "Continue", cancelText: a = "Cancel", danger: o = !1, footnote: s } = {}) {
|
|
@@ -2947,32 +2947,32 @@ function Ma({ tone: e = "suggestion", title: t, body: n, facts: r = [], okText:
|
|
|
2947
2947
|
size: "large"
|
|
2948
2948
|
},
|
|
2949
2949
|
cancelButtonProps: { size: "large" },
|
|
2950
|
-
content: /* @__PURE__ */
|
|
2950
|
+
content: /* @__PURE__ */ w("div", {
|
|
2951
2951
|
className: "fdd",
|
|
2952
2952
|
children: [
|
|
2953
|
-
/* @__PURE__ */
|
|
2953
|
+
/* @__PURE__ */ w("div", {
|
|
2954
2954
|
className: "fdd-head",
|
|
2955
|
-
children: [/* @__PURE__ */
|
|
2955
|
+
children: [/* @__PURE__ */ C("span", {
|
|
2956
2956
|
className: "fdd-icon",
|
|
2957
2957
|
"aria-hidden": "true",
|
|
2958
|
-
children: /* @__PURE__ */
|
|
2959
|
-
}), /* @__PURE__ */
|
|
2958
|
+
children: /* @__PURE__ */ C(l, {})
|
|
2959
|
+
}), /* @__PURE__ */ C("h3", {
|
|
2960
2960
|
className: "fdd-title",
|
|
2961
2961
|
children: t
|
|
2962
2962
|
})]
|
|
2963
2963
|
}),
|
|
2964
|
-
u.length > 0 && /* @__PURE__ */
|
|
2964
|
+
u.length > 0 && /* @__PURE__ */ C("dl", {
|
|
2965
2965
|
className: "fdd-facts",
|
|
2966
|
-
children: u.map((e) => /* @__PURE__ */
|
|
2966
|
+
children: u.map((e) => /* @__PURE__ */ w("div", {
|
|
2967
2967
|
className: "fdd-fact",
|
|
2968
|
-
children: [/* @__PURE__ */
|
|
2968
|
+
children: [/* @__PURE__ */ C("dt", { children: e.label }), /* @__PURE__ */ C("dd", { children: e.value })]
|
|
2969
2969
|
}, e.label))
|
|
2970
2970
|
}),
|
|
2971
|
-
n && /* @__PURE__ */
|
|
2971
|
+
n && /* @__PURE__ */ C("p", {
|
|
2972
2972
|
className: "fdd-body",
|
|
2973
2973
|
children: n
|
|
2974
2974
|
}),
|
|
2975
|
-
s && /* @__PURE__ */
|
|
2975
|
+
s && /* @__PURE__ */ C("p", {
|
|
2976
2976
|
className: "fdd-footnote",
|
|
2977
2977
|
children: s
|
|
2978
2978
|
})
|
|
@@ -2993,28 +2993,28 @@ function Na({ tone: e = "duplicate", title: t, body: n, facts: r = [], okText: i
|
|
|
2993
2993
|
className: `fdd-modal ${a}`,
|
|
2994
2994
|
okText: i,
|
|
2995
2995
|
okButtonProps: { size: "large" },
|
|
2996
|
-
content: /* @__PURE__ */
|
|
2996
|
+
content: /* @__PURE__ */ w("div", {
|
|
2997
2997
|
className: "fdd",
|
|
2998
2998
|
children: [
|
|
2999
|
-
/* @__PURE__ */
|
|
2999
|
+
/* @__PURE__ */ w("div", {
|
|
3000
3000
|
className: "fdd-head",
|
|
3001
|
-
children: [/* @__PURE__ */
|
|
3001
|
+
children: [/* @__PURE__ */ C("span", {
|
|
3002
3002
|
className: "fdd-icon",
|
|
3003
3003
|
"aria-hidden": "true",
|
|
3004
|
-
children: /* @__PURE__ */
|
|
3005
|
-
}), /* @__PURE__ */
|
|
3004
|
+
children: /* @__PURE__ */ C(o, {})
|
|
3005
|
+
}), /* @__PURE__ */ C("h3", {
|
|
3006
3006
|
className: "fdd-title",
|
|
3007
3007
|
children: t
|
|
3008
3008
|
})]
|
|
3009
3009
|
}),
|
|
3010
|
-
s.length > 0 && /* @__PURE__ */
|
|
3010
|
+
s.length > 0 && /* @__PURE__ */ C("dl", {
|
|
3011
3011
|
className: "fdd-facts",
|
|
3012
|
-
children: s.map((e) => /* @__PURE__ */
|
|
3012
|
+
children: s.map((e) => /* @__PURE__ */ w("div", {
|
|
3013
3013
|
className: "fdd-fact",
|
|
3014
|
-
children: [/* @__PURE__ */
|
|
3014
|
+
children: [/* @__PURE__ */ C("dt", { children: e.label }), /* @__PURE__ */ C("dd", { children: e.value })]
|
|
3015
3015
|
}, e.label))
|
|
3016
3016
|
}),
|
|
3017
|
-
n && /* @__PURE__ */
|
|
3017
|
+
n && /* @__PURE__ */ C("p", {
|
|
3018
3018
|
className: "fdd-body",
|
|
3019
3019
|
children: n
|
|
3020
3020
|
})
|
|
@@ -3246,7 +3246,7 @@ function ro(e) {
|
|
|
3246
3246
|
return typeof e == "string" ? e.includes("/") ? e : "" : !e || typeof e != "object" ? "" : Qa(e, Ka) || $a(e, qa);
|
|
3247
3247
|
}
|
|
3248
3248
|
function io(e) {
|
|
3249
|
-
return e ? typeof e == "string" ? eo(e) || e : typeof e == "object" && (Qa(e,
|
|
3249
|
+
return e ? typeof e == "string" ? eo(e) || e : typeof e == "object" && (Qa(e, N().documentNameOrder ?? []) || $a(e, Ja) || eo(ro(e)) || $a(e, Ya)) || "Document" : "Document";
|
|
3250
3250
|
}
|
|
3251
3251
|
function ao(e) {
|
|
3252
3252
|
if (Za(e)) return [];
|
|
@@ -3291,7 +3291,7 @@ var co = (e) => e === !0 || e === 1 || e === "1", lo = (e) => e == null || e ===
|
|
|
3291
3291
|
function uo(e) {
|
|
3292
3292
|
return String(e ?? "").split(".").map((e) => e.trim()).filter(Boolean);
|
|
3293
3293
|
}
|
|
3294
|
-
function
|
|
3294
|
+
function q(e, t, n) {
|
|
3295
3295
|
let r = Array.isArray(t) ? t : uo(t);
|
|
3296
3296
|
if (!r.length) return e;
|
|
3297
3297
|
let i = e;
|
|
@@ -3304,7 +3304,7 @@ function K(e, t, n) {
|
|
|
3304
3304
|
function fo(e, t = []) {
|
|
3305
3305
|
if (!(!e || typeof e != "object")) for (let n of t) {
|
|
3306
3306
|
if (!n) continue;
|
|
3307
|
-
let t =
|
|
3307
|
+
let t = B(e, n);
|
|
3308
3308
|
if (!lo(t)) return t;
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
@@ -3361,9 +3361,9 @@ function go(e, t, n, r) {
|
|
|
3361
3361
|
e.verifyTimestampField,
|
|
3362
3362
|
...String(e.verifyLockedWhenFields ?? "").split(/[,\s]+/)
|
|
3363
3363
|
].map((e) => String(e ?? "").trim()).filter(Boolean).forEach((e) => {
|
|
3364
|
-
if (
|
|
3364
|
+
if (B(n, e) !== void 0) return;
|
|
3365
3365
|
let i = r(t, { field: e });
|
|
3366
|
-
i != null &&
|
|
3366
|
+
i != null && q(n, e, i);
|
|
3367
3367
|
});
|
|
3368
3368
|
});
|
|
3369
3369
|
}
|
|
@@ -3374,19 +3374,19 @@ function _o(e) {
|
|
|
3374
3374
|
if (!e.field) return;
|
|
3375
3375
|
if (e.type === "file") {
|
|
3376
3376
|
let r = n(t, e);
|
|
3377
|
-
r &&
|
|
3377
|
+
r && q(i, e.field, r);
|
|
3378
3378
|
return;
|
|
3379
3379
|
}
|
|
3380
3380
|
let a = r(t, e);
|
|
3381
3381
|
if (a == null) {
|
|
3382
|
-
e.defaultOnEdit && e.defaultValue !== void 0 && e.defaultValue !== "" &&
|
|
3382
|
+
e.defaultOnEdit && e.defaultValue !== void 0 && e.defaultValue !== "" && q(i, e.field, e.defaultValue);
|
|
3383
3383
|
return;
|
|
3384
3384
|
}
|
|
3385
|
-
|
|
3385
|
+
q(i, e.field, co(e.addRow) ? Ea(e, a) : K(e, a));
|
|
3386
3386
|
}), go(e, t, i, r), i;
|
|
3387
3387
|
}, i = pa(e, { editing: !0 });
|
|
3388
3388
|
if (t && t.length > 0) {
|
|
3389
|
-
let e = t.map((e) => r(e, (e, t) => ho(e, t), (e, t) =>
|
|
3389
|
+
let e = t.map((e) => r(e, (e, t) => ho(e, t), (e, t) => B(e, t.field)));
|
|
3390
3390
|
for (; e.length < n;) e.push({ ...i });
|
|
3391
3391
|
return e;
|
|
3392
3392
|
}
|
|
@@ -3397,12 +3397,12 @@ function _o(e) {
|
|
|
3397
3397
|
function vo(e, t = []) {
|
|
3398
3398
|
let n = {};
|
|
3399
3399
|
return t.forEach((e) => {
|
|
3400
|
-
e.toggleEnabled && e.toggleField &&
|
|
3400
|
+
e.toggleEnabled && e.toggleField && q(n, e.toggleField, !!e.toggleValue), !e.addRow && (e.fields ?? []).forEach((e) => {
|
|
3401
3401
|
if (!e.field || e.addRow) return;
|
|
3402
3402
|
let t = e.value, r = e.field;
|
|
3403
3403
|
if (e.type === "file") {
|
|
3404
3404
|
let i = mo(t, e);
|
|
3405
|
-
i &&
|
|
3405
|
+
i && q(n, r, i);
|
|
3406
3406
|
return;
|
|
3407
3407
|
}
|
|
3408
3408
|
if (t == null) return;
|
|
@@ -3410,17 +3410,17 @@ function vo(e, t = []) {
|
|
|
3410
3410
|
let i = e.transformRule?.map;
|
|
3411
3411
|
if (i) {
|
|
3412
3412
|
let e = Object.entries(i).find(([, e]) => String(e) === String(t));
|
|
3413
|
-
|
|
3414
|
-
} else
|
|
3413
|
+
q(n, r, e ? [e[0]] : []);
|
|
3414
|
+
} else q(n, r, Bi(e, Array.isArray(t) ? t : [t]));
|
|
3415
3415
|
return;
|
|
3416
3416
|
}
|
|
3417
3417
|
let i = e.splitDialCodeInto;
|
|
3418
3418
|
if (i && typeof t == "string") {
|
|
3419
3419
|
let { code: a, rest: o } = Ba(t), s = La(a);
|
|
3420
|
-
s &&
|
|
3420
|
+
s && q(n, i, s), q(n, r, K(e, o || t));
|
|
3421
3421
|
return;
|
|
3422
3422
|
}
|
|
3423
|
-
|
|
3423
|
+
q(n, r, K(e, t));
|
|
3424
3424
|
});
|
|
3425
3425
|
}), Object.keys(n).length > 0 && e.setFieldsValue(n), n;
|
|
3426
3426
|
}
|
|
@@ -3526,7 +3526,7 @@ function Po(e = []) {
|
|
|
3526
3526
|
}), t;
|
|
3527
3527
|
}
|
|
3528
3528
|
function Fo({ form: e, groups: t, module: n, onApplied: r, onParsed: i, treatPrefilledAsData: a = !1 }) {
|
|
3529
|
-
let [o, s] = g(null), [c, l] = g(""), u =
|
|
3529
|
+
let [o, s] = g(null), [c, l] = g(""), u = x.useWatch((e) => e, e), d = f((e) => wo(e, (e) => (u || {})[e]), [u]), p = f((t) => {
|
|
3530
3530
|
if (!Array.isArray(t) || t.length === 0) return !1;
|
|
3531
3531
|
let n = vo(e, t.filter((e) => !e.addRow)), r = Object.keys(n).length > 0;
|
|
3532
3532
|
return t.forEach((t) => {
|
|
@@ -3621,7 +3621,7 @@ function Fo({ form: e, groups: t, module: n, onApplied: r, onParsed: i, treatPre
|
|
|
3621
3621
|
body: e.body || "We found details you can use. Applying them will replace what you have already entered in those boxes.",
|
|
3622
3622
|
okText: e.ok || "Use these details",
|
|
3623
3623
|
cancelText: e.cancel || "Keep what I typed"
|
|
3624
|
-
})) return
|
|
3624
|
+
})) return S.info(`${d} cancelled — your entries were kept.`), l;
|
|
3625
3625
|
}
|
|
3626
3626
|
if (i) {
|
|
3627
3627
|
let e = await i({
|
|
@@ -3634,13 +3634,13 @@ function Fo({ form: e, groups: t, module: n, onApplied: r, onParsed: i, treatPre
|
|
|
3634
3634
|
if (e === !1 || e === "abort") return l;
|
|
3635
3635
|
}
|
|
3636
3636
|
let m = p(f);
|
|
3637
|
-
return m ?
|
|
3637
|
+
return m ? S.success(`${d} completed successfully.`) : S.info(`${d} completed, but no matching details were found.`), m && r && await r({
|
|
3638
3638
|
action: c,
|
|
3639
3639
|
field: o,
|
|
3640
3640
|
groupName: t
|
|
3641
3641
|
}), l;
|
|
3642
3642
|
} catch (e) {
|
|
3643
|
-
|
|
3643
|
+
S.error(e?.message || `${c.label || "AI action"} failed`);
|
|
3644
3644
|
return;
|
|
3645
3645
|
} finally {
|
|
3646
3646
|
s(null), l("");
|
|
@@ -3664,14 +3664,14 @@ function Fo({ form: e, groups: t, module: n, onApplied: r, onParsed: i, treatPre
|
|
|
3664
3664
|
function Io({ position: e, actions: t, aiActions: n, groupName: r, field: i }) {
|
|
3665
3665
|
if (!t || t.length === 0) return null;
|
|
3666
3666
|
let a = e.endsWith("center") ? "center" : e.endsWith("right") ? "flex-end" : "flex-start";
|
|
3667
|
-
return /* @__PURE__ */
|
|
3667
|
+
return /* @__PURE__ */ C(te, {
|
|
3668
3668
|
size: 8,
|
|
3669
3669
|
className: "v1-ai-action-buttons",
|
|
3670
3670
|
style: {
|
|
3671
3671
|
width: "100%",
|
|
3672
3672
|
justifyContent: a
|
|
3673
3673
|
},
|
|
3674
|
-
children: t.map((e) => /* @__PURE__ */
|
|
3674
|
+
children: t.map((e) => /* @__PURE__ */ C(y, {
|
|
3675
3675
|
size: "small",
|
|
3676
3676
|
loading: n.loadingKey === e.key,
|
|
3677
3677
|
disabled: n.busy || !n.isActionEnabled(e),
|
|
@@ -3948,7 +3948,7 @@ function Xo(e, t) {
|
|
|
3948
3948
|
function Zo(e) {
|
|
3949
3949
|
return !e || e.validateOn === "submit" ? [] : e.validateOn === "change" ? ["onChange", "onBlur"] : ["onBlur"];
|
|
3950
3950
|
}
|
|
3951
|
-
var
|
|
3951
|
+
var J = {
|
|
3952
3952
|
SKIPPED: "skipped",
|
|
3953
3953
|
AVAILABLE: "available",
|
|
3954
3954
|
DUPLICATE: "duplicate",
|
|
@@ -3964,7 +3964,7 @@ function $o({ checkFieldUnique: e, onPendingChange: t } = {}) {
|
|
|
3964
3964
|
a = e, typeof t == "function" && t(a);
|
|
3965
3965
|
}
|
|
3966
3966
|
async function s({ module: t, field: s, rule: c, value: l, recordId: u, clientId: d, region: f } = {}) {
|
|
3967
|
-
if (!c || !t || !s || typeof e != "function" || !Xo(c, l)) return { status:
|
|
3967
|
+
if (!c || !t || !s || typeof e != "function" || !Xo(c, l)) return { status: J.SKIPPED };
|
|
3968
3968
|
let p = Qo({
|
|
3969
3969
|
module: t,
|
|
3970
3970
|
field: s,
|
|
@@ -3984,17 +3984,17 @@ function $o({ checkFieldUnique: e, onPendingChange: t } = {}) {
|
|
|
3984
3984
|
clientId: d,
|
|
3985
3985
|
region: f
|
|
3986
3986
|
});
|
|
3987
|
-
if (r.get(s) !== m) return { status:
|
|
3987
|
+
if (r.get(s) !== m) return { status: J.STALE };
|
|
3988
3988
|
let a = i?.available === !1 ? {
|
|
3989
|
-
status:
|
|
3989
|
+
status: J.DUPLICATE,
|
|
3990
3990
|
message: es(i) || c.message || Uo
|
|
3991
|
-
} : { status:
|
|
3991
|
+
} : { status: J.AVAILABLE };
|
|
3992
3992
|
return n.set(p, a), a;
|
|
3993
3993
|
} catch (e) {
|
|
3994
3994
|
return r.get(s) === m ? {
|
|
3995
|
-
status:
|
|
3995
|
+
status: J.ERROR,
|
|
3996
3996
|
error: e
|
|
3997
|
-
} : { status:
|
|
3997
|
+
} : { status: J.STALE };
|
|
3998
3998
|
} finally {
|
|
3999
3999
|
o(Math.max(0, a - 1));
|
|
4000
4000
|
}
|
|
@@ -4029,7 +4029,7 @@ function ns({ field: e, validation: t, context: n }) {
|
|
|
4029
4029
|
clientId: n.clientId,
|
|
4030
4030
|
region: n.region
|
|
4031
4031
|
});
|
|
4032
|
-
return a.status ===
|
|
4032
|
+
return a.status === J.DUPLICATE ? Promise.reject(Error(a.message || r.message)) : Promise.resolve();
|
|
4033
4033
|
}
|
|
4034
4034
|
};
|
|
4035
4035
|
}
|
|
@@ -4272,7 +4272,7 @@ function bs(e) {
|
|
|
4272
4272
|
let n = t.toLowerCase();
|
|
4273
4273
|
return ys[n] ? ys[n] : /[^aeiou]ies$/i.test(t) ? t.slice(0, -3) + "y" : /(s|x|z|ch|sh)es$/i.test(t) ? t.slice(0, -2) : /[^s]s$/i.test(t) ? t.slice(0, -1) : t;
|
|
4274
4274
|
}
|
|
4275
|
-
function
|
|
4275
|
+
function Y(e) {
|
|
4276
4276
|
let t = String(e ?? "").trim();
|
|
4277
4277
|
if (!t) return "";
|
|
4278
4278
|
let n = t.replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_\-.]+/g, " ").split(/\s+/).filter(Boolean);
|
|
@@ -4286,29 +4286,29 @@ function J(e) {
|
|
|
4286
4286
|
function xs(e, t) {
|
|
4287
4287
|
let n = String(e?.quickCreateLabel ?? "").trim();
|
|
4288
4288
|
if (n && n.toLowerCase() !== "add more") return n;
|
|
4289
|
-
let r =
|
|
4289
|
+
let r = Y(e?.quickCreateModule || t);
|
|
4290
4290
|
return r ? `Add New ${r}` : "Add New";
|
|
4291
4291
|
}
|
|
4292
4292
|
function Ss(e, t) {
|
|
4293
4293
|
let n = String(e?.quickEditLabel ?? "").trim();
|
|
4294
4294
|
if (n && n.toLowerCase() !== "add more") return n;
|
|
4295
|
-
let r =
|
|
4295
|
+
let r = Y(e?.quickEditModule || t);
|
|
4296
4296
|
return r ? `Edit ${r}` : "Edit";
|
|
4297
4297
|
}
|
|
4298
4298
|
function Cs(e, t, n) {
|
|
4299
|
-
let r =
|
|
4299
|
+
let r = Y((e === "create" ? t?.quickCreateModule : t?.quickEditModule) || n);
|
|
4300
4300
|
return e === "create" ? String(t?.quickCreateTitle ?? "").trim() || (r ? `Add New ${r}` : xs(t, n)) : String(t?.quickEditTitle ?? "").trim() || (r ? `Edit ${r}` : Ss(t, n));
|
|
4301
4301
|
}
|
|
4302
4302
|
//#endregion
|
|
4303
4303
|
//#region src/components/AppButton.jsx
|
|
4304
4304
|
function ws({ children: e, className: t = "", icon: n, to: r, variant: i = "default", ...a }) {
|
|
4305
|
-
let o = /* @__PURE__ */
|
|
4305
|
+
let o = /* @__PURE__ */ C(y, {
|
|
4306
4306
|
className: `app-button app-button--${i} ${t}`.trim(),
|
|
4307
4307
|
icon: n,
|
|
4308
4308
|
...a,
|
|
4309
4309
|
children: e
|
|
4310
4310
|
});
|
|
4311
|
-
return r ? /* @__PURE__ */
|
|
4311
|
+
return r ? /* @__PURE__ */ C(ye, {
|
|
4312
4312
|
className: "app-button-link",
|
|
4313
4313
|
to: r,
|
|
4314
4314
|
children: o
|
|
@@ -4344,18 +4344,18 @@ function Os(e) {
|
|
|
4344
4344
|
let n = a(s, `/get-detailed-view?userId=${encodeURIComponent(t)}`).then((e) => Ts(e?.data ?? e ?? null)).catch(() => "");
|
|
4345
4345
|
return Ds.set(t, n), n;
|
|
4346
4346
|
}
|
|
4347
|
-
var
|
|
4347
|
+
var X = (e) => e == null ? "" : String(e).trim();
|
|
4348
4348
|
function ks(e) {
|
|
4349
4349
|
let t = e?.quickCreateNotice;
|
|
4350
4350
|
return !t || typeof t != "object" || t.enabled === !1 ? null : {
|
|
4351
4351
|
enabled: !0,
|
|
4352
|
-
title:
|
|
4353
|
-
message:
|
|
4352
|
+
title: X(t.title) || "New record created",
|
|
4353
|
+
message: X(t.message) || "A new client has been created successfully. Please contact your Organization Admin to configure the required forms, workflows, permissions, and client-specific details before proceeding with further operations.",
|
|
4354
4354
|
showCreator: t.showCreator !== !1,
|
|
4355
4355
|
showRecordName: t.showRecordName !== !1,
|
|
4356
|
-
recordNameField:
|
|
4357
|
-
recordLabel:
|
|
4358
|
-
creatorLabel:
|
|
4356
|
+
recordNameField: X(t.recordNameField),
|
|
4357
|
+
recordLabel: X(t.recordLabel) || "Record name",
|
|
4358
|
+
creatorLabel: X(t.creatorLabel) || "Created by"
|
|
4359
4359
|
};
|
|
4360
4360
|
}
|
|
4361
4361
|
var As = [
|
|
@@ -4370,7 +4370,7 @@ var As = [
|
|
|
4370
4370
|
"vendorName"
|
|
4371
4371
|
], js = (e, t) => {
|
|
4372
4372
|
if (!(!e || !t)) return String(t).split(".").reduce((e, t) => e && typeof e == "object" ? e[t] : void 0, e);
|
|
4373
|
-
}, Ms = (e) => typeof e == "string" || typeof e == "number" ?
|
|
4373
|
+
}, Ms = (e) => typeof e == "string" || typeof e == "number" ? X(e) : e && typeof e == "object" ? X(e.label ?? e.name ?? e.title ?? "") : "";
|
|
4374
4374
|
function Ns(e, { recordNameField: t = "", displayField: n = "" } = {}) {
|
|
4375
4375
|
if (!e || typeof e != "object") return "";
|
|
4376
4376
|
for (let r of [
|
|
@@ -4383,7 +4383,7 @@ function Ns(e, { recordNameField: t = "", displayField: n = "" } = {}) {
|
|
|
4383
4383
|
if (t) return t;
|
|
4384
4384
|
}
|
|
4385
4385
|
let r = Object.keys(e).find((t) => /name$/i.test(t) && typeof e[t] == "string" && e[t].trim());
|
|
4386
|
-
return r ?
|
|
4386
|
+
return r ? X(e[r]) : "";
|
|
4387
4387
|
}
|
|
4388
4388
|
function Ps(e) {
|
|
4389
4389
|
if (!e || typeof e != "object") return "";
|
|
@@ -4398,11 +4398,11 @@ function Ps(e) {
|
|
|
4398
4398
|
for (let e of t) {
|
|
4399
4399
|
if (e == null || e === "") continue;
|
|
4400
4400
|
if (typeof e == "object") {
|
|
4401
|
-
let t =
|
|
4401
|
+
let t = X(e.$oid ?? e.userId ?? e._id ?? e.id);
|
|
4402
4402
|
if (t) return t;
|
|
4403
4403
|
continue;
|
|
4404
4404
|
}
|
|
4405
|
-
let t =
|
|
4405
|
+
let t = X(e);
|
|
4406
4406
|
if (t) return t;
|
|
4407
4407
|
}
|
|
4408
4408
|
return "";
|
|
@@ -4432,7 +4432,7 @@ async function Ls({ module: e, recordId: t, notice: n, displayField: r = "", dep
|
|
|
4432
4432
|
if (n?.showCreator !== !1) {
|
|
4433
4433
|
let e = Ps(l);
|
|
4434
4434
|
if (e) try {
|
|
4435
|
-
d =
|
|
4435
|
+
d = X(await s(e));
|
|
4436
4436
|
} catch {
|
|
4437
4437
|
d = "";
|
|
4438
4438
|
}
|
|
@@ -4455,7 +4455,7 @@ function Hs(e, t, n, r, i) {
|
|
|
4455
4455
|
return i && typeof i == "object" ? i.value ?? null : Bs(i) ? null : i;
|
|
4456
4456
|
}
|
|
4457
4457
|
function Us({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValue: a, onDone: o }) {
|
|
4458
|
-
let [s, c] = g(null), [l, d] = g(null), f = !!e?.quickCreate, p = !!e?.quickEdit, h = e?.quickCreateModule || e?.lookupCollection || "", _ = e?.quickEditModule || e?.lookupCollection || "",
|
|
4458
|
+
let [s, c] = g(null), [l, d] = g(null), f = !!e?.quickCreate, p = !!e?.quickEdit, h = e?.quickCreateModule || e?.lookupCollection || "", _ = e?.quickEditModule || e?.lookupCollection || "", v = m(() => p ? Hs(e, t, n, i, a) : null, [
|
|
4459
4459
|
p,
|
|
4460
4460
|
e,
|
|
4461
4461
|
t,
|
|
@@ -4467,7 +4467,7 @@ function Us({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4467
4467
|
footer: null,
|
|
4468
4468
|
modal: null
|
|
4469
4469
|
};
|
|
4470
|
-
let b = () => c(null),
|
|
4470
|
+
let b = () => c(null), x = () => {
|
|
4471
4471
|
if (e?.quickCreateOnClick) {
|
|
4472
4472
|
e.quickCreateOnClick(), document.activeElement?.blur?.();
|
|
4473
4473
|
return;
|
|
@@ -4480,11 +4480,11 @@ function Us({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4480
4480
|
mode: "create",
|
|
4481
4481
|
module: h
|
|
4482
4482
|
});
|
|
4483
|
-
},
|
|
4483
|
+
}, re = () => _ && v && c({
|
|
4484
4484
|
mode: "edit",
|
|
4485
4485
|
module: _,
|
|
4486
|
-
recordId: String(
|
|
4487
|
-
}),
|
|
4486
|
+
recordId: String(v)
|
|
4487
|
+
}), ie = (t) => {
|
|
4488
4488
|
let n = ks(e);
|
|
4489
4489
|
n && (d({
|
|
4490
4490
|
...n,
|
|
@@ -4502,7 +4502,7 @@ function Us({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4502
4502
|
creatorName: t
|
|
4503
4503
|
});
|
|
4504
4504
|
}).catch(() => {}));
|
|
4505
|
-
},
|
|
4505
|
+
}, S = /* @__PURE__ */ C("div", {
|
|
4506
4506
|
className: "v1-quick-actions",
|
|
4507
4507
|
role: "presentation",
|
|
4508
4508
|
onMouseDown: (e) => e.preventDefault(),
|
|
@@ -4512,26 +4512,26 @@ function Us({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4512
4512
|
padding: "6px 8px",
|
|
4513
4513
|
borderTop: "1px solid rgba(0,0,0,0.06)"
|
|
4514
4514
|
},
|
|
4515
|
-
children: /* @__PURE__ */
|
|
4515
|
+
children: /* @__PURE__ */ w(te, {
|
|
4516
4516
|
size: 8,
|
|
4517
|
-
children: [f && /* @__PURE__ */
|
|
4517
|
+
children: [f && /* @__PURE__ */ C(y, {
|
|
4518
4518
|
type: "link",
|
|
4519
4519
|
size: "small",
|
|
4520
|
-
icon: /* @__PURE__ */
|
|
4521
|
-
onClick:
|
|
4520
|
+
icon: /* @__PURE__ */ C(me, {}),
|
|
4521
|
+
onClick: x,
|
|
4522
4522
|
style: { paddingLeft: 0 },
|
|
4523
4523
|
children: xs(e, h)
|
|
4524
|
-
}), p && /* @__PURE__ */
|
|
4524
|
+
}), p && /* @__PURE__ */ C(y, {
|
|
4525
4525
|
type: "link",
|
|
4526
4526
|
size: "small",
|
|
4527
|
-
icon: /* @__PURE__ */
|
|
4528
|
-
onClick:
|
|
4529
|
-
disabled: !
|
|
4530
|
-
title:
|
|
4527
|
+
icon: /* @__PURE__ */ C(oe, {}),
|
|
4528
|
+
onClick: re,
|
|
4529
|
+
disabled: !v,
|
|
4530
|
+
title: v ? void 0 : `Choose a ${Y(_) || "record"} above first, then edit it here`,
|
|
4531
4531
|
children: Ss(e, _)
|
|
4532
4532
|
})]
|
|
4533
4533
|
})
|
|
4534
|
-
}),
|
|
4534
|
+
}), ae = s ? /* @__PURE__ */ C(ee, {
|
|
4535
4535
|
open: !0,
|
|
4536
4536
|
title: Cs(s.mode, e, s.mode === "create" ? h : _),
|
|
4537
4537
|
width: "min(1080px, 96vw)",
|
|
@@ -4543,23 +4543,23 @@ function Us({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4543
4543
|
maxHeight: "78vh",
|
|
4544
4544
|
overflowY: "auto"
|
|
4545
4545
|
} },
|
|
4546
|
-
children: /* @__PURE__ */
|
|
4547
|
-
fallback: /* @__PURE__ */
|
|
4546
|
+
children: /* @__PURE__ */ C(u, {
|
|
4547
|
+
fallback: /* @__PURE__ */ C("div", {
|
|
4548
4548
|
style: {
|
|
4549
4549
|
padding: 48,
|
|
4550
4550
|
textAlign: "center"
|
|
4551
4551
|
},
|
|
4552
|
-
children: /* @__PURE__ */
|
|
4552
|
+
children: /* @__PURE__ */ C(ne, {})
|
|
4553
4553
|
}),
|
|
4554
|
-
children: s.mode === "create" ? /* @__PURE__ */
|
|
4554
|
+
children: s.mode === "create" ? /* @__PURE__ */ C(Rs, {
|
|
4555
4555
|
moduleName: s.module,
|
|
4556
4556
|
embedded: !0,
|
|
4557
4557
|
breadcrumbItems: [],
|
|
4558
4558
|
onCancel: b,
|
|
4559
4559
|
onSuccess: (e) => {
|
|
4560
|
-
b(),
|
|
4560
|
+
b(), ie(e), o?.("create", e);
|
|
4561
4561
|
}
|
|
4562
|
-
}) : /* @__PURE__ */
|
|
4562
|
+
}) : /* @__PURE__ */ C(zs, {
|
|
4563
4563
|
moduleName: s.module,
|
|
4564
4564
|
recordId: s.recordId,
|
|
4565
4565
|
embedded: !0,
|
|
@@ -4570,32 +4570,32 @@ function Us({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4570
4570
|
}
|
|
4571
4571
|
})
|
|
4572
4572
|
})
|
|
4573
|
-
}) : null,
|
|
4573
|
+
}) : null, ce = l ? /* @__PURE__ */ w(ee, {
|
|
4574
4574
|
open: !0,
|
|
4575
|
-
title: /* @__PURE__ */
|
|
4575
|
+
title: /* @__PURE__ */ w("span", {
|
|
4576
4576
|
style: {
|
|
4577
4577
|
display: "inline-flex",
|
|
4578
4578
|
alignItems: "center",
|
|
4579
4579
|
gap: 8
|
|
4580
4580
|
},
|
|
4581
|
-
children: [/* @__PURE__ */
|
|
4581
|
+
children: [/* @__PURE__ */ C(se, { style: { color: "#faad14" } }), l.title]
|
|
4582
4582
|
}),
|
|
4583
4583
|
width: "min(520px, 94vw)",
|
|
4584
4584
|
maskClosable: !1,
|
|
4585
4585
|
onCancel: () => d(null),
|
|
4586
|
-
footer: /* @__PURE__ */
|
|
4586
|
+
footer: /* @__PURE__ */ C(ws, {
|
|
4587
4587
|
variant: "primary",
|
|
4588
4588
|
type: "primary",
|
|
4589
4589
|
onClick: () => d(null),
|
|
4590
4590
|
children: "OK"
|
|
4591
4591
|
}),
|
|
4592
|
-
children: [/* @__PURE__ */
|
|
4592
|
+
children: [/* @__PURE__ */ C("p", {
|
|
4593
4593
|
style: {
|
|
4594
4594
|
marginTop: 0,
|
|
4595
4595
|
marginBottom: 16
|
|
4596
4596
|
},
|
|
4597
4597
|
children: l.message
|
|
4598
|
-
}), (l.recordName || l.creatorName) && /* @__PURE__ */
|
|
4598
|
+
}), (l.recordName || l.creatorName) && /* @__PURE__ */ w("div", {
|
|
4599
4599
|
style: {
|
|
4600
4600
|
display: "grid",
|
|
4601
4601
|
gridTemplateColumns: "auto 1fr",
|
|
@@ -4604,18 +4604,18 @@ function Us({ field: e, form: t, name: n, moduleName: r, scopeValues: i, ownValu
|
|
|
4604
4604
|
borderRadius: 6,
|
|
4605
4605
|
background: "rgba(0,0,0,0.03)"
|
|
4606
4606
|
},
|
|
4607
|
-
children: [l.recordName && /* @__PURE__ */
|
|
4607
|
+
children: [l.recordName && /* @__PURE__ */ w(ge, { children: [/* @__PURE__ */ C("span", {
|
|
4608
4608
|
style: { color: "rgba(0,0,0,0.55)" },
|
|
4609
4609
|
children: l.recordLabel
|
|
4610
|
-
}), /* @__PURE__ */
|
|
4610
|
+
}), /* @__PURE__ */ C("strong", { children: l.recordName })] }), l.creatorName && /* @__PURE__ */ w(ge, { children: [/* @__PURE__ */ C("span", {
|
|
4611
4611
|
style: { color: "rgba(0,0,0,0.55)" },
|
|
4612
4612
|
children: l.creatorLabel
|
|
4613
|
-
}), /* @__PURE__ */
|
|
4613
|
+
}), /* @__PURE__ */ C("strong", { children: l.creatorName })] })]
|
|
4614
4614
|
})]
|
|
4615
4615
|
}) : null;
|
|
4616
4616
|
return {
|
|
4617
|
-
footer:
|
|
4618
|
-
modal:
|
|
4617
|
+
footer: S,
|
|
4618
|
+
modal: ae || ce ? /* @__PURE__ */ w(ge, { children: [ae, ce] }) : null
|
|
4619
4619
|
};
|
|
4620
4620
|
}
|
|
4621
4621
|
//#endregion
|
|
@@ -4758,13 +4758,13 @@ function sc(e, t) {
|
|
|
4758
4758
|
]) {
|
|
4759
4759
|
if (!n) continue;
|
|
4760
4760
|
let t = e[n];
|
|
4761
|
-
if (t ??=
|
|
4761
|
+
if (t ??= B(e, n), t ??= oc(e, n), t != null) return t;
|
|
4762
4762
|
}
|
|
4763
4763
|
}
|
|
4764
4764
|
//#endregion
|
|
4765
4765
|
//#region src/components/form/ValidationOverrideCheckbox.jsx
|
|
4766
4766
|
function cc({ form: e, field: t, flagPath: n, fieldPath: r, disabled: i }) {
|
|
4767
|
-
let a = Oi(t), o =
|
|
4767
|
+
let a = Oi(t), o = x.useWatch(n, e);
|
|
4768
4768
|
if (!a) return null;
|
|
4769
4769
|
let s = a.label || "Allow beyond the limit", c = () => {
|
|
4770
4770
|
setTimeout(() => {
|
|
@@ -4778,11 +4778,11 @@ function cc({ form: e, field: t, flagPath: n, fieldPath: r, disabled: i }) {
|
|
|
4778
4778
|
let i = await Ma(Fi(t));
|
|
4779
4779
|
e.setFieldValue(n, !!i), c();
|
|
4780
4780
|
}, u = a.help ? `${s} — ${a.help}` : s;
|
|
4781
|
-
return /* @__PURE__ */
|
|
4781
|
+
return /* @__PURE__ */ C(re, {
|
|
4782
4782
|
title: u,
|
|
4783
|
-
children: /* @__PURE__ */
|
|
4783
|
+
children: /* @__PURE__ */ C("span", {
|
|
4784
4784
|
className: "v1-override-wrap",
|
|
4785
|
-
children: /* @__PURE__ */
|
|
4785
|
+
children: /* @__PURE__ */ C(b, {
|
|
4786
4786
|
className: "v1-override-checkbox",
|
|
4787
4787
|
checked: !!o,
|
|
4788
4788
|
disabled: i,
|
|
@@ -4820,7 +4820,7 @@ function pc({ rules: e, watched: t = {}, current: n, lastApplied: r, clearOnMism
|
|
|
4820
4820
|
}
|
|
4821
4821
|
//#endregion
|
|
4822
4822
|
//#region src/components/form/optionConstraints.js
|
|
4823
|
-
var
|
|
4823
|
+
var Z = (e) => String(e ?? "").trim().toLowerCase();
|
|
4824
4824
|
function mc(e) {
|
|
4825
4825
|
let t = Array.isArray(e) ? e : [e], n = [];
|
|
4826
4826
|
return t.forEach((e) => {
|
|
@@ -4833,24 +4833,24 @@ function mc(e) {
|
|
|
4833
4833
|
e.label,
|
|
4834
4834
|
e.name
|
|
4835
4835
|
].forEach((e) => {
|
|
4836
|
-
e != null && e !== "" && n.push(
|
|
4836
|
+
e != null && e !== "" && n.push(Z(e));
|
|
4837
4837
|
});
|
|
4838
4838
|
return;
|
|
4839
4839
|
}
|
|
4840
|
-
n.push(
|
|
4840
|
+
n.push(Z(e));
|
|
4841
4841
|
}
|
|
4842
4842
|
}), n;
|
|
4843
4843
|
}
|
|
4844
4844
|
function hc(e = [], t) {
|
|
4845
4845
|
let n = mc(t);
|
|
4846
4846
|
if (!n.length || !Array.isArray(e) || e.length === 0) return e;
|
|
4847
|
-
let r = new Set(n), i = e.filter((e) => e == null ? !1 : typeof e == "object" ? r.has(
|
|
4847
|
+
let r = new Set(n), i = e.filter((e) => e == null ? !1 : typeof e == "object" ? r.has(Z(e.value)) || r.has(Z(e.label)) : r.has(Z(e)));
|
|
4848
4848
|
return i.length > 0 ? i : e;
|
|
4849
4849
|
}
|
|
4850
4850
|
function gc(e) {
|
|
4851
4851
|
let t = [];
|
|
4852
4852
|
return [e?.setValue, e?.setValueLabel].forEach((e) => {
|
|
4853
|
-
e != null && e !== "" && t.push(
|
|
4853
|
+
e != null && e !== "" && t.push(Z(e));
|
|
4854
4854
|
}), t;
|
|
4855
4855
|
}
|
|
4856
4856
|
function _c(e, t = {}) {
|
|
@@ -4867,16 +4867,16 @@ function vc(e = [], t, n) {
|
|
|
4867
4867
|
let r = _c(t, n);
|
|
4868
4868
|
if (!r.length || !Array.isArray(e) || e.length === 0) return e;
|
|
4869
4869
|
let i = new Set(r);
|
|
4870
|
-
return e.filter((e) => e == null ? !0 : typeof e == "object" ? !(i.has(
|
|
4870
|
+
return e.filter((e) => e == null ? !0 : typeof e == "object" ? !(i.has(Z(e.value)) || i.has(Z(e.label))) : !i.has(Z(e)));
|
|
4871
4871
|
}
|
|
4872
4872
|
function yc(e, t = {}, n) {
|
|
4873
4873
|
let r = Array.isArray(e) ? e : [];
|
|
4874
4874
|
if (n == null || n === "") return [];
|
|
4875
|
-
let i =
|
|
4875
|
+
let i = Z(n), a = [], o = /* @__PURE__ */ new Set();
|
|
4876
4876
|
return r.forEach((e) => {
|
|
4877
4877
|
if (!e || e.clearValue) return;
|
|
4878
4878
|
let { setValue: n, setValueLabel: r } = e;
|
|
4879
|
-
n != null && n !== "" && r &&
|
|
4879
|
+
n != null && n !== "" && r && Z(n) === i && fc(e, t) && (o.has(Z(n)) || (o.add(Z(n)), a.push({
|
|
4880
4880
|
value: n,
|
|
4881
4881
|
label: r
|
|
4882
4882
|
})));
|
|
@@ -4893,10 +4893,10 @@ function xc(e) {
|
|
|
4893
4893
|
return "";
|
|
4894
4894
|
}
|
|
4895
4895
|
}
|
|
4896
|
-
var
|
|
4896
|
+
var Q = (e) => String(e ?? "").trim().toLowerCase(), Sc = (e) => e != null && String(e).trim() !== "";
|
|
4897
4897
|
function Cc(e) {
|
|
4898
4898
|
let t = Array.isArray(e) ? e : String(e ?? "").split(",");
|
|
4899
|
-
return new Set(t.map(
|
|
4899
|
+
return new Set(t.map(Q).filter((e) => e !== ""));
|
|
4900
4900
|
}
|
|
4901
4901
|
function wc(e, t) {
|
|
4902
4902
|
return !t || !Array.isArray(e) || e.length === 0 ? !1 : e.some((e) => Sc(e?.extraData?.[t]));
|
|
@@ -4905,19 +4905,19 @@ function Tc(e, t, n) {
|
|
|
4905
4905
|
let r = e?.extraData?.[t];
|
|
4906
4906
|
if (!Sc(n)) return r === !0;
|
|
4907
4907
|
let i = Cc(n);
|
|
4908
|
-
return i.size === 0 ? r === !0 : i.has(
|
|
4908
|
+
return i.size === 0 ? r === !0 : i.has(Q(r));
|
|
4909
4909
|
}
|
|
4910
4910
|
function Ec(e, t) {
|
|
4911
4911
|
let n = /* @__PURE__ */ new Map();
|
|
4912
4912
|
return (Array.isArray(e) ? e : []).forEach((e) => {
|
|
4913
|
-
let r =
|
|
4914
|
-
r && n.set(r,
|
|
4913
|
+
let r = Q(e?.value);
|
|
4914
|
+
r && n.set(r, Q(e?.extraData?.[t]));
|
|
4915
4915
|
}), n;
|
|
4916
4916
|
}
|
|
4917
4917
|
function Dc(e, t, n) {
|
|
4918
|
-
let r =
|
|
4918
|
+
let r = Q(n);
|
|
4919
4919
|
if (!r) return !1;
|
|
4920
|
-
let i = /* @__PURE__ */ new Set(), a =
|
|
4920
|
+
let i = /* @__PURE__ */ new Set(), a = Q(e);
|
|
4921
4921
|
if (!a) return !1;
|
|
4922
4922
|
i.add(a);
|
|
4923
4923
|
for (let e = 0; e < bc; e += 1) {
|
|
@@ -5042,7 +5042,7 @@ function Qc(e, t = {}) {
|
|
|
5042
5042
|
for (let t of [n, r]) {
|
|
5043
5043
|
let n = e?.[t];
|
|
5044
5044
|
if (n == null || n === "") continue;
|
|
5045
|
-
let r =
|
|
5045
|
+
let r = T(n);
|
|
5046
5046
|
if (r.isValid()) return r.valueOf();
|
|
5047
5047
|
}
|
|
5048
5048
|
return null;
|
|
@@ -5287,14 +5287,14 @@ function wl(e) {
|
|
|
5287
5287
|
let t = new Date(e).getTime();
|
|
5288
5288
|
return Number.isNaN(t) ? null : t;
|
|
5289
5289
|
}
|
|
5290
|
-
function
|
|
5290
|
+
function $(e) {
|
|
5291
5291
|
if (!e) return null;
|
|
5292
|
-
let t =
|
|
5292
|
+
let t = T(e);
|
|
5293
5293
|
return t.isValid() ? t.startOf("day").valueOf() : null;
|
|
5294
5294
|
}
|
|
5295
5295
|
function Tl(e) {
|
|
5296
5296
|
if (!e) return null;
|
|
5297
|
-
let t =
|
|
5297
|
+
let t = T(e);
|
|
5298
5298
|
return t.isValid() ? t.hour() * 60 + t.minute() : null;
|
|
5299
5299
|
}
|
|
5300
5300
|
var El = {
|
|
@@ -5342,7 +5342,7 @@ function Ol(e, t) {
|
|
|
5342
5342
|
}
|
|
5343
5343
|
function kl(e, t, n, r) {
|
|
5344
5344
|
if (t === null) return null;
|
|
5345
|
-
let i = Ol(n, r), a =
|
|
5345
|
+
let i = Ol(n, r), a = T(t);
|
|
5346
5346
|
return i && (a = e === "dateAfterField" ? a.add(i.value, i.unit) : a.subtract(i.value, i.unit)), a.startOf("day").valueOf();
|
|
5347
5347
|
}
|
|
5348
5348
|
function Al(e, t, n, r, i) {
|
|
@@ -5367,7 +5367,7 @@ function Ml({ type: e, label: t, rule: n, readSibling: r }) {
|
|
|
5367
5367
|
if (!o || Cl(a)) return Promise.resolve();
|
|
5368
5368
|
let s = r(o);
|
|
5369
5369
|
if (Cl(s)) return Promise.resolve();
|
|
5370
|
-
let c =
|
|
5370
|
+
let c = $(a), l = $(s);
|
|
5371
5371
|
return c === null || l === null ? Promise.resolve() : Al(e, c, l, n, r) ? Promise.reject(Error(jl(e, t, n, r))) : Promise.resolve();
|
|
5372
5372
|
} };
|
|
5373
5373
|
}
|
|
@@ -5375,12 +5375,12 @@ function Nl(e, t, { rows: n, rowIndex: r } = {}) {
|
|
|
5375
5375
|
if (e === null || !t || !Array.isArray(n) || r == null || (t.mode ?? "newestFirst") !== "newestFirst") return !1;
|
|
5376
5376
|
let i = t.startField ?? "startDate", a = t.endField ?? "endDate", o = n[r - 1];
|
|
5377
5377
|
if (o) {
|
|
5378
|
-
let t =
|
|
5378
|
+
let t = $(o[i]);
|
|
5379
5379
|
if (t !== null && e >= t) return !0;
|
|
5380
5380
|
}
|
|
5381
5381
|
let s = n[r + 1];
|
|
5382
5382
|
if (s) {
|
|
5383
|
-
let t =
|
|
5383
|
+
let t = $(s[a]) ?? $(s[i]);
|
|
5384
5384
|
if (t !== null && e <= t) return !0;
|
|
5385
5385
|
}
|
|
5386
5386
|
return !1;
|
|
@@ -5393,9 +5393,9 @@ function Fl({ field: e, readSibling: t, rows: n, rowIndex: r, now: i = Zn }) {
|
|
|
5393
5393
|
let a = e?.validations ?? e?.validation ?? e?.rules ?? [], o = [];
|
|
5394
5394
|
for (let e of a) {
|
|
5395
5395
|
let n = typeof e == "string" ? { type: e } : e, r = n?.type;
|
|
5396
|
-
if (r === "noPastDate" && o.push((e) => e ?
|
|
5396
|
+
if (r === "noPastDate" && o.push((e) => e ? $(e) < i().startOf("day").valueOf() : !1), r === "noFutureDate" && o.push((e) => e ? $(e) > i().startOf("day").valueOf() : !1), r === "minAge") {
|
|
5397
5397
|
let e = Number(n?.value ?? 18);
|
|
5398
|
-
o.push((t) => t ?
|
|
5398
|
+
o.push((t) => t ? $(t) > i().subtract(e, "year").startOf("day").valueOf() : !1);
|
|
5399
5399
|
}
|
|
5400
5400
|
if (r === "dateAfterField" || r === "dateBeforeField") {
|
|
5401
5401
|
let e = n?.value ?? n?.compareField ?? n?.field;
|
|
@@ -5403,11 +5403,11 @@ function Fl({ field: e, readSibling: t, rows: n, rowIndex: r, now: i = Zn }) {
|
|
|
5403
5403
|
o.push((i) => {
|
|
5404
5404
|
if (!i) return !1;
|
|
5405
5405
|
let a = t(e);
|
|
5406
|
-
return !Cl(a) && Al(r,
|
|
5406
|
+
return !Cl(a) && Al(r, $(i), $(a), n, t);
|
|
5407
5407
|
});
|
|
5408
5408
|
}
|
|
5409
5409
|
}
|
|
5410
|
-
return e?.rowHierarchy && Array.isArray(n) && r != null && o.push((t) => t ? Nl(
|
|
5410
|
+
return e?.rowHierarchy && Array.isArray(n) && r != null && o.push((t) => t ? Nl($(t), e.rowHierarchy, {
|
|
5411
5411
|
rows: n,
|
|
5412
5412
|
rowIndex: r
|
|
5413
5413
|
}) : !1), o.length ? (e) => o.some((t) => t(e)) : void 0;
|
|
@@ -5424,12 +5424,12 @@ function Ll({ field: e, rows: t, rowIndex: n }) {
|
|
|
5424
5424
|
let r = e?.rowHierarchy;
|
|
5425
5425
|
return { validator: async (e, i) => {
|
|
5426
5426
|
if (!r || Cl(i) || !Array.isArray(t) || n == null) return Promise.resolve();
|
|
5427
|
-
let a =
|
|
5427
|
+
let a = $(i);
|
|
5428
5428
|
if (a === null || !Nl(a, r, {
|
|
5429
5429
|
rows: t,
|
|
5430
5430
|
rowIndex: n
|
|
5431
5431
|
})) return Promise.resolve();
|
|
5432
|
-
let o = r.startField ?? "startDate", s = t[n - 1], c = s ?
|
|
5432
|
+
let o = r.startField ?? "startDate", s = t[n - 1], c = s ? $(s[o]) : null, l = c !== null && a >= c ? "above" : "below";
|
|
5433
5433
|
return Promise.reject(Error(Pl(r, l)));
|
|
5434
5434
|
} };
|
|
5435
5435
|
}
|
|
@@ -5438,26 +5438,26 @@ function Ll({ field: e, rows: t, rowIndex: n }) {
|
|
|
5438
5438
|
function Rl(e) {
|
|
5439
5439
|
return (e ?? []).filter((e) => e?.submitMessages && typeof e.submitMessages == "object").sort((e, t) => (e.order ?? 0) - (t.order ?? 0))[0]?.submitMessages ?? null;
|
|
5440
5440
|
}
|
|
5441
|
-
function
|
|
5441
|
+
function zl(e) {
|
|
5442
5442
|
let t = String(e ?? "").trim();
|
|
5443
5443
|
return t ? t.charAt(0).toUpperCase() + t.slice(1) : "Record";
|
|
5444
5444
|
}
|
|
5445
|
-
function
|
|
5446
|
-
return String(e).replaceAll("${module}",
|
|
5445
|
+
function Bl(e, t) {
|
|
5446
|
+
return String(e).replaceAll("${module}", zl(t)).replaceAll("${moduleName}", zl(t));
|
|
5447
5447
|
}
|
|
5448
|
-
function
|
|
5448
|
+
function Vl(e, t, n) {
|
|
5449
5449
|
let r = Rl(e);
|
|
5450
5450
|
if (r?.suppress) return null;
|
|
5451
5451
|
let i = n === "edit" ? r?.editSuccess : r?.addSuccess;
|
|
5452
|
-
return i && String(i).trim() ?
|
|
5452
|
+
return i && String(i).trim() ? Bl(i, t) : n === "edit" ? `${zl(t)} has Updated successfully` : `${zl(t)} has added successfully`;
|
|
5453
5453
|
}
|
|
5454
|
-
function
|
|
5454
|
+
function Hl(e, t, n, r) {
|
|
5455
5455
|
let i = Rl(e), a = n === "edit" ? i?.editError : i?.addError;
|
|
5456
|
-
return a && String(a).trim() ?
|
|
5456
|
+
return a && String(a).trim() ? Bl(a, t) : r && String(r).trim() ? String(r) : n === "edit" ? `Failed to update ${zl(t)}` : `Failed to create ${zl(t)}`;
|
|
5457
5457
|
}
|
|
5458
5458
|
//#endregion
|
|
5459
5459
|
//#region src/utils/scrollToFirstFormError.js
|
|
5460
|
-
function
|
|
5460
|
+
function Ul({ errorFields: e } = {}, t, { root: n = document } = {}) {
|
|
5461
5461
|
if (!e?.length) return;
|
|
5462
5462
|
let r = e[0]?.name;
|
|
5463
5463
|
setTimeout(() => {
|
|
@@ -5482,10 +5482,10 @@ function Hl({ errorFields: e } = {}, t, { root: n = document } = {}) {
|
|
|
5482
5482
|
}
|
|
5483
5483
|
//#endregion
|
|
5484
5484
|
//#region src/components/form/conditionalFieldLabel.js
|
|
5485
|
-
function
|
|
5485
|
+
function Wl(e) {
|
|
5486
5486
|
return Array.isArray(e) ? e.map((e) => String(e ?? "").trim()) : String(e ?? "").split(",").map((e) => e.trim());
|
|
5487
5487
|
}
|
|
5488
|
-
function
|
|
5488
|
+
function Gl(e, t) {
|
|
5489
5489
|
if (!e?.field) return !1;
|
|
5490
5490
|
switch (e.operator ?? "eq") {
|
|
5491
5491
|
case "eq": return String(t ?? "") === String(e.value ?? "");
|
|
@@ -5493,103 +5493,103 @@ function Wl(e, t) {
|
|
|
5493
5493
|
case "truthy": return t != null && t !== "" && t !== !1;
|
|
5494
5494
|
case "falsy": return t == null || t === "" || t === !1;
|
|
5495
5495
|
case "notEmpty": return Array.isArray(t) ? t.length > 0 : !!t;
|
|
5496
|
-
case "in": return
|
|
5497
|
-
case "notIn": return !
|
|
5496
|
+
case "in": return Wl(e.value).includes(String(t ?? ""));
|
|
5497
|
+
case "notIn": return !Wl(e.value).includes(String(t ?? ""));
|
|
5498
5498
|
default: return !1;
|
|
5499
5499
|
}
|
|
5500
5500
|
}
|
|
5501
|
-
function
|
|
5501
|
+
function Kl(e, t, n = !1) {
|
|
5502
5502
|
let r = n ? e?.combineLabel ?? e?.label : e?.label, i = e?.labelWhen;
|
|
5503
|
-
return
|
|
5503
|
+
return Gl(i, t) && i?.label ? i.label : r;
|
|
5504
5504
|
}
|
|
5505
|
-
function
|
|
5505
|
+
function ql(e) {
|
|
5506
5506
|
return e ? [...e.field ? [e] : [], ...(e.conditions ?? []).filter((e) => e?.field)] : [];
|
|
5507
5507
|
}
|
|
5508
|
-
function
|
|
5509
|
-
let n =
|
|
5508
|
+
function Jl(e, t) {
|
|
5509
|
+
let n = ql(e);
|
|
5510
5510
|
if (!n.length) return !0;
|
|
5511
|
-
let r = n.map((e) =>
|
|
5511
|
+
let r = n.map((e) => Gl(e, t(e.field)));
|
|
5512
5512
|
return e.logic === "or" ? r.some(Boolean) : r.every(Boolean);
|
|
5513
5513
|
}
|
|
5514
|
-
function
|
|
5514
|
+
function Yl(e) {
|
|
5515
5515
|
let t = e?.colWhen;
|
|
5516
5516
|
return t ? (Array.isArray(t) ? t : [t]).filter((e) => e?.field && Number(e?.col) > 0) : [];
|
|
5517
5517
|
}
|
|
5518
|
-
function
|
|
5519
|
-
for (let t of
|
|
5518
|
+
function Xl(e, t, n) {
|
|
5519
|
+
for (let t of Yl(e)) if (Gl(t, n(t))) return Number(t.col);
|
|
5520
5520
|
return t;
|
|
5521
5521
|
}
|
|
5522
|
-
function
|
|
5522
|
+
function Zl(e, t) {
|
|
5523
5523
|
return e?.field ? t == null ? [e.field] : [...Array.isArray(t) ? t : [t], e.field] : ["__noop_conditional_label__"];
|
|
5524
5524
|
}
|
|
5525
5525
|
//#endregion
|
|
5526
5526
|
//#region src/components/form/conditionalRequired.js
|
|
5527
|
-
function
|
|
5527
|
+
function Ql(e, t) {
|
|
5528
5528
|
return (n) => {
|
|
5529
5529
|
if (!e || !n) return;
|
|
5530
5530
|
let r = Array.isArray(t) && t.length > 1 ? [...t.slice(0, -1), n] : [n], i = e.getFieldValue(r);
|
|
5531
5531
|
return i === void 0 ? e.getFieldValue([n]) : i;
|
|
5532
5532
|
};
|
|
5533
5533
|
}
|
|
5534
|
-
function
|
|
5534
|
+
function $l(e, t, n) {
|
|
5535
5535
|
let r = e?.requiredWhen;
|
|
5536
|
-
return !r || !t || !r.field && !(r.conditions ?? []).some((e) => e?.field) ? !1 :
|
|
5536
|
+
return !r || !t || !r.field && !(r.conditions ?? []).some((e) => e?.field) ? !1 : Jl(r, Ql(t, n));
|
|
5537
5537
|
}
|
|
5538
|
-
function
|
|
5538
|
+
function eu(e, t, n) {
|
|
5539
5539
|
return { validator: (r, i) => {
|
|
5540
|
-
if (
|
|
5540
|
+
if (!$l(e, t, n) || !(i == null || i === "" || Array.isArray(i) && i.length === 0)) return Promise.resolve();
|
|
5541
5541
|
let a = e?.label ?? e?.field ?? "This field";
|
|
5542
5542
|
return Promise.reject(Error(e?.requiredWhen?.message ?? `${a} is required`));
|
|
5543
5543
|
} };
|
|
5544
5544
|
}
|
|
5545
5545
|
//#endregion
|
|
5546
5546
|
//#region src/components/Breadcrumb.jsx
|
|
5547
|
-
function
|
|
5548
|
-
let t = e.map((t, n) => ({ title: n === e.length - 1 ? /* @__PURE__ */
|
|
5547
|
+
function tu({ items: e = [] }) {
|
|
5548
|
+
let t = e.map((t, n) => ({ title: n === e.length - 1 ? /* @__PURE__ */ C(Cr, {
|
|
5549
5549
|
variant: "body",
|
|
5550
5550
|
weight: "medium",
|
|
5551
5551
|
color: "link",
|
|
5552
5552
|
children: t.label
|
|
5553
|
-
}) : /* @__PURE__ */
|
|
5553
|
+
}) : /* @__PURE__ */ w(ye, {
|
|
5554
5554
|
to: t.href,
|
|
5555
|
-
children: [/* @__PURE__ */
|
|
5555
|
+
children: [/* @__PURE__ */ C(Cr, {
|
|
5556
5556
|
variant: "body",
|
|
5557
5557
|
color: "secondary",
|
|
5558
5558
|
children: t.label
|
|
5559
|
-
}), t.dropdown && /* @__PURE__ */
|
|
5559
|
+
}), t.dropdown && /* @__PURE__ */ C(ae, {})]
|
|
5560
5560
|
}) }));
|
|
5561
|
-
return /* @__PURE__ */
|
|
5561
|
+
return /* @__PURE__ */ C(v, { items: t });
|
|
5562
5562
|
}
|
|
5563
5563
|
//#endregion
|
|
5564
5564
|
//#region src/components/form/canonicalOption.js
|
|
5565
|
-
var
|
|
5566
|
-
function
|
|
5565
|
+
var nu = (e) => String(e ?? "").trim().replace(/\s+/g, " ").toLowerCase();
|
|
5566
|
+
function ru(e = []) {
|
|
5567
5567
|
let t = /* @__PURE__ */ new Map();
|
|
5568
5568
|
for (let n of e) {
|
|
5569
5569
|
if (n == null) continue;
|
|
5570
5570
|
let e = typeof n == "object" ? n.value : n;
|
|
5571
5571
|
if (e != null && e !== "") for (let r of [n?.label, e]) {
|
|
5572
|
-
let n =
|
|
5572
|
+
let n = nu(r);
|
|
5573
5573
|
n && !t.has(n) && t.set(n, e);
|
|
5574
5574
|
}
|
|
5575
5575
|
}
|
|
5576
5576
|
return t;
|
|
5577
5577
|
}
|
|
5578
|
-
function
|
|
5578
|
+
function iu(e, t) {
|
|
5579
5579
|
if (!Array.isArray(e)) {
|
|
5580
|
-
let n =
|
|
5580
|
+
let n = iu([e], t);
|
|
5581
5581
|
return n.length ? n[0] : e;
|
|
5582
5582
|
}
|
|
5583
|
-
let n =
|
|
5583
|
+
let n = ru(t), r = /* @__PURE__ */ new Set(), i = [];
|
|
5584
5584
|
for (let t of e) {
|
|
5585
|
-
let e = typeof t == "object" && t ? t.value : t, a = n.get(
|
|
5585
|
+
let e = typeof t == "object" && t ? t.value : t, a = n.get(nu(e)) ?? e, o = nu(a);
|
|
5586
5586
|
o && r.has(o) || (o && r.add(o), i.push(a));
|
|
5587
5587
|
}
|
|
5588
5588
|
return i;
|
|
5589
5589
|
}
|
|
5590
5590
|
//#endregion
|
|
5591
5591
|
//#region src/components/form/dependencyBusy.js
|
|
5592
|
-
function
|
|
5592
|
+
function au(e, t = []) {
|
|
5593
5593
|
if (!e) return [];
|
|
5594
5594
|
let n = /* @__PURE__ */ new Set();
|
|
5595
5595
|
for (let r of t) for (let t of r?.fields ?? []) if (t?.field) {
|
|
@@ -5599,21 +5599,35 @@ function iu(e, t = []) {
|
|
|
5599
5599
|
}
|
|
5600
5600
|
return n.delete(e), [...n];
|
|
5601
5601
|
}
|
|
5602
|
-
function
|
|
5603
|
-
return e?.blockWhileResolving ?
|
|
5602
|
+
function ou(e, t = []) {
|
|
5603
|
+
return e?.blockWhileResolving ? au(e.field, t).length > 0 : !1;
|
|
5604
5604
|
}
|
|
5605
|
-
function
|
|
5605
|
+
function su(e) {
|
|
5606
5606
|
let t = String(e?.label ?? "").trim();
|
|
5607
5607
|
return t ? `Applying ${t}…` : "Applying your selection…";
|
|
5608
5608
|
}
|
|
5609
|
+
function cu(e, t = []) {
|
|
5610
|
+
if (!e?.field) return [];
|
|
5611
|
+
let n = new Set(au(e.field, t));
|
|
5612
|
+
if (n.size === 0) return [];
|
|
5613
|
+
let r = [];
|
|
5614
|
+
for (let e of t) {
|
|
5615
|
+
let t = e?.name ?? e?.id;
|
|
5616
|
+
t && (e.fields ?? []).some((e) => e?.field && n.has(e.field)) && r.push(t);
|
|
5617
|
+
}
|
|
5618
|
+
return r;
|
|
5619
|
+
}
|
|
5620
|
+
function lu(e) {
|
|
5621
|
+
return String(e?.blockScope ?? "").toLowerCase() === "group";
|
|
5622
|
+
}
|
|
5609
5623
|
//#endregion
|
|
5610
5624
|
//#region src/components/form/LinkedRecordFileField.jsx
|
|
5611
|
-
var
|
|
5612
|
-
function
|
|
5625
|
+
var uu = d(() => import("./index.js").then((e) => e.n)), du = d(() => import("./DocumentViewer-DA2IOO5w.js").then((e) => e.n));
|
|
5626
|
+
function fu(e) {
|
|
5613
5627
|
let t = String(e ?? "").split(".").pop()?.toLowerCase();
|
|
5614
|
-
return
|
|
5628
|
+
return C(t === "pdf" ? ue : t === "doc" || t === "docx" ? fe : le, { className: "v1-file-chip__icon" });
|
|
5615
5629
|
}
|
|
5616
|
-
function
|
|
5630
|
+
function pu({ field: e, recordMeta: t }) {
|
|
5617
5631
|
let n = e?.linkedModule, r = e?.linkedFileField, i = m(() => {
|
|
5618
5632
|
let r = tc(n, t);
|
|
5619
5633
|
if (r) return r;
|
|
@@ -5649,67 +5663,67 @@ function uu({ field: e, recordMeta: t }) {
|
|
|
5649
5663
|
r,
|
|
5650
5664
|
f
|
|
5651
5665
|
]);
|
|
5652
|
-
let
|
|
5653
|
-
if (!i) return /* @__PURE__ */
|
|
5666
|
+
let v = m(() => ao(a.fileValue), [a.fileValue])[0], y = !!v, b = e?.label ?? "File", x = Y(n) || "record";
|
|
5667
|
+
if (!i) return /* @__PURE__ */ C("div", {
|
|
5654
5668
|
className: "v1-linked-file v1-linked-file--empty",
|
|
5655
|
-
children: /* @__PURE__ */
|
|
5669
|
+
children: /* @__PURE__ */ C("span", { children: e?.unlinkedText ?? `Not available until the ${x} is set.` })
|
|
5656
5670
|
});
|
|
5657
|
-
if (a.loading) return /* @__PURE__ */
|
|
5671
|
+
if (a.loading) return /* @__PURE__ */ C("div", {
|
|
5658
5672
|
className: "v1-linked-file v1-linked-file--loading",
|
|
5659
|
-
children: /* @__PURE__ */
|
|
5673
|
+
children: /* @__PURE__ */ C(ne, { size: "small" })
|
|
5660
5674
|
});
|
|
5661
|
-
let te =
|
|
5662
|
-
...
|
|
5663
|
-
url:
|
|
5664
|
-
authSource:
|
|
5675
|
+
let te = v ? {
|
|
5676
|
+
...v,
|
|
5677
|
+
url: v.needsAuthFetch ? "" : v.url,
|
|
5678
|
+
authSource: v.needsAuthFetch ? {
|
|
5665
5679
|
module: n,
|
|
5666
5680
|
refId: i,
|
|
5667
5681
|
fieldName: r
|
|
5668
5682
|
} : void 0
|
|
5669
|
-
} : null, re = () => d(!1)
|
|
5670
|
-
return /* @__PURE__ */
|
|
5671
|
-
/* @__PURE__ */
|
|
5672
|
-
className: `v1-linked-file-row ${
|
|
5673
|
-
children: [/* @__PURE__ */
|
|
5683
|
+
} : null, re = () => d(!1), ie = e?.emptyText ?? `No ${b.toLowerCase()} on file yet`, S = e?.reuploadLabel ?? `${y ? "Reupload" : "Upload"} in ${x}`, ae = e?.reuploadWarning ?? `The ${b.toLowerCase()} belongs to the ${x.toLowerCase()}, not to this record. Changing it here updates the ${x.toLowerCase()} everywhere it is used.`;
|
|
5684
|
+
return /* @__PURE__ */ w(ge, { children: [
|
|
5685
|
+
/* @__PURE__ */ w("div", {
|
|
5686
|
+
className: `v1-linked-file-row ${y ? "" : "v1-linked-file--empty"}`,
|
|
5687
|
+
children: [/* @__PURE__ */ w("button", {
|
|
5674
5688
|
type: "button",
|
|
5675
5689
|
className: "v1-linked-file v1-file-chip",
|
|
5676
|
-
disabled: !
|
|
5677
|
-
onClick: () =>
|
|
5678
|
-
title:
|
|
5690
|
+
disabled: !y,
|
|
5691
|
+
onClick: () => y && c(!0),
|
|
5692
|
+
title: y ? `Preview or download ${v.name}` : ie,
|
|
5679
5693
|
children: [
|
|
5680
|
-
|
|
5681
|
-
/* @__PURE__ */
|
|
5694
|
+
y ? fu(v.name) : /* @__PURE__ */ C(le, { className: "v1-file-chip__icon" }),
|
|
5695
|
+
/* @__PURE__ */ C("span", {
|
|
5682
5696
|
className: "v1-file-chip__name",
|
|
5683
|
-
children:
|
|
5697
|
+
children: y ? v.name : ie
|
|
5684
5698
|
}),
|
|
5685
|
-
|
|
5699
|
+
y && /* @__PURE__ */ C(ce, {
|
|
5686
5700
|
className: "v1-file-chip__action",
|
|
5687
5701
|
"aria-hidden": "true"
|
|
5688
5702
|
})
|
|
5689
5703
|
]
|
|
5690
|
-
}), /* @__PURE__ */
|
|
5704
|
+
}), /* @__PURE__ */ w("button", {
|
|
5691
5705
|
type: "button",
|
|
5692
5706
|
className: "v1-linked-file__edit-btn",
|
|
5693
5707
|
onClick: () => d(!0),
|
|
5694
|
-
title:
|
|
5708
|
+
title: ae,
|
|
5695
5709
|
children: [
|
|
5696
|
-
/* @__PURE__ */
|
|
5697
|
-
"
|
|
5698
|
-
|
|
5710
|
+
/* @__PURE__ */ C(oe, {}),
|
|
5711
|
+
" ",
|
|
5712
|
+
S
|
|
5699
5713
|
]
|
|
5700
5714
|
})]
|
|
5701
5715
|
}),
|
|
5702
|
-
s && te && /* @__PURE__ */
|
|
5716
|
+
s && te && /* @__PURE__ */ C(u, {
|
|
5703
5717
|
fallback: null,
|
|
5704
|
-
children: /* @__PURE__ */
|
|
5718
|
+
children: /* @__PURE__ */ C(du, {
|
|
5705
5719
|
open: s,
|
|
5706
5720
|
onClose: () => c(!1),
|
|
5707
5721
|
documents: [te]
|
|
5708
5722
|
})
|
|
5709
5723
|
}),
|
|
5710
|
-
l && /* @__PURE__ */
|
|
5724
|
+
l && /* @__PURE__ */ w(ee, {
|
|
5711
5725
|
open: !0,
|
|
5712
|
-
title:
|
|
5726
|
+
title: S,
|
|
5713
5727
|
width: "min(1080px, 96vw)",
|
|
5714
5728
|
footer: null,
|
|
5715
5729
|
destroyOnClose: !0,
|
|
@@ -5719,15 +5733,20 @@ function uu({ field: e, recordMeta: t }) {
|
|
|
5719
5733
|
maxHeight: "78vh",
|
|
5720
5734
|
overflowY: "auto"
|
|
5721
5735
|
} },
|
|
5722
|
-
children: /* @__PURE__ */
|
|
5723
|
-
|
|
5736
|
+
children: [/* @__PURE__ */ C(_, {
|
|
5737
|
+
type: "warning",
|
|
5738
|
+
showIcon: !0,
|
|
5739
|
+
message: ae,
|
|
5740
|
+
style: { marginBottom: 16 }
|
|
5741
|
+
}), /* @__PURE__ */ C(u, {
|
|
5742
|
+
fallback: /* @__PURE__ */ C("div", {
|
|
5724
5743
|
style: {
|
|
5725
5744
|
padding: 48,
|
|
5726
5745
|
textAlign: "center"
|
|
5727
5746
|
},
|
|
5728
|
-
children: /* @__PURE__ */
|
|
5747
|
+
children: /* @__PURE__ */ C(ne, {})
|
|
5729
5748
|
}),
|
|
5730
|
-
children: /* @__PURE__ */
|
|
5749
|
+
children: /* @__PURE__ */ C(uu, {
|
|
5731
5750
|
moduleName: n,
|
|
5732
5751
|
recordId: i,
|
|
5733
5752
|
embedded: !0,
|
|
@@ -5737,22 +5756,24 @@ function uu({ field: e, recordMeta: t }) {
|
|
|
5737
5756
|
re(), h((e) => e + 1);
|
|
5738
5757
|
}
|
|
5739
5758
|
})
|
|
5740
|
-
})
|
|
5759
|
+
})]
|
|
5741
5760
|
})
|
|
5742
5761
|
] });
|
|
5743
5762
|
}
|
|
5744
|
-
|
|
5745
|
-
field:
|
|
5746
|
-
label:
|
|
5747
|
-
linkedModule:
|
|
5748
|
-
linkedFileField:
|
|
5749
|
-
linkedIdField:
|
|
5750
|
-
emptyText:
|
|
5751
|
-
unlinkedText:
|
|
5763
|
+
pu.propTypes = {
|
|
5764
|
+
field: E.shape({
|
|
5765
|
+
label: E.string,
|
|
5766
|
+
linkedModule: E.string,
|
|
5767
|
+
linkedFileField: E.string,
|
|
5768
|
+
linkedIdField: E.string,
|
|
5769
|
+
emptyText: E.string,
|
|
5770
|
+
unlinkedText: E.string,
|
|
5771
|
+
reuploadLabel: E.string,
|
|
5772
|
+
reuploadWarning: E.string
|
|
5752
5773
|
}).isRequired,
|
|
5753
|
-
recordMeta:
|
|
5754
|
-
},
|
|
5774
|
+
recordMeta: E.object
|
|
5775
|
+
}, pu.defaultProps = { recordMeta: void 0 };
|
|
5755
5776
|
//#endregion
|
|
5756
|
-
export {
|
|
5777
|
+
export { dc as $, qn as $n, Nt as $r, Oa as $t, Zc as A, jt as Ai, qr as An, sn as Ar, $o as At, zc as B, F as Bn, yt as Br, vo as Bt, Il as C, gn as Ci, ri as Cn, Xe as Cr, ms as Ct, Sl as D, Rt as Di, Qr as Dn, At as Dr, rs as Dt, xl as E, Zt as Ei, ii as En, Dt as Er, ls as Et, dl as F, jr as Fn, Cn as Fr, Ro as Ft, Ic as G, lr as Gn, un as Gr, Ua as Gt, Lc as H, $n as Hn, $t as Hr, uo as Ht, ml as I, Ar as In, it as Ir, Lo as It, Oc as J, er as Jn, Ue as Jr, ao as Jt, Mc as K, Qn as Kn, Pn as Kr, Ga as Kt, ll as L, kr as Ln, ct as Lr, Io as Lt, Kc as M, qt as Mi, Rr as Mn, gt as Mr, zo as Mt, Yc as N, on as Ni, zr as Nn, vt as Nr, Ho as Nt, bl as O, xn as Oi, $r as On, Wt as Or, ns as Ot, qc as P, Vr as Pn, cn as Pr, Vo as Pt, uc as Q, N as Qn, j as Qr, Na as Qt, Gc as R, Cr as Rn, Kt as Rr, Po as Rt, Ll as S, Tn as Si, ai as Sn, Jt as Sr, Ss as St, Tl as T, In as Ti, Xr as Tn, dt as Tr, us as Tt, Rc as U, nr as Un, en as Ur, q as Ut, Bc as V, Zn as Vn, wt as Vr, _o as Vt, Nc as W, P as Wn, mn as Wr, Wa as Wt, yc as X, Kn as Xn, Ze as Xr, Ha as Xt, hc as Y, Rn as Yn, rn as Yr, Ra as Yt, vc as Z, Gn as Zn, Vt as Zr, Ma as Zt, Ul as _, Ht as _i, wi as _n, Ln as _r, Os as _t, ou as a, Re as ai, ya as an, wn as ar, ac as at, Fl as b, Ct as bi, ci as bn, Mn as br, Y as bt, $l as c, tt as ci, G as cn, Fn as cr, oc as ct, Zl as d, at as di, sa as dn, et as dr, Ys as dt, Pt as ei, ka as en, Vn as er, pc as et, Gl as f, lt as fi, oa as fn, pt as fr, Js as ft, ql as g, ze as gi, yi as gn, pn as gr, Us as gt, Xl as h, an as hi, Pi as hn, _n as hr, Gs as ht, su as i, Yt as ii, Ea as in, Qe as ir, ic as it, ul as j, Ut as ji, Kr as jn, He as jr, cs as jt, vl as k, jn as ki, Jr as kn, ln as kr, qo as kt, eu as l, ft as li, pa as ln, Xt as lr, Qs as lt, Jl as m, Ve as mi, Mi as mn, St as mr, Ks as mt, lu as n, kn as ni, K as nn, nt as nr, nc as nt, iu as o, tn as oi, Zi as on, hn as or, rc as ot, Kl as p, xt as pi, Oi as pn, En as pr, qs as pt, kc as q, or as qn, Le as qr, to as qt, cu as r, Ft as ri, ba as rn, Tt as rr, tc as rt, tu as s, nn as si, B as sn, dn as sr, sc as st, pu as t, bn as ti, Aa as tn, Wn as tr, cc as tt, Yl as u, _t as ui, Ta as un, An as ur, Xs as ut, Hl as v, Gt as vi, Ci as vn, Qt as vr, Es as vt, wl as w, fn as wi, Zr as wn, Ye as wr, _s as wt, Ml as x, $e as xi, oi as xn, ot as xr, xs as xt, Vl as y, mt as yi, si as yn, Be as yr, ws as yt, Uc as z, I as zn, bt as zr, Fo as zt };
|
|
5757
5778
|
|
|
5758
|
-
//# sourceMappingURL=LinkedRecordFileField-
|
|
5779
|
+
//# sourceMappingURL=LinkedRecordFileField-CiVlY8m5.js.map
|