@realtek/core-theme 0.0.196 → 0.0.198

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.
@@ -1,4 +1,4 @@
1
- import { b as e, i as t, r as n, t as r, v as i, x as a, y as o } from "./authApi-BPEW_c3Y.js";
1
+ import { C as e, S as t, a as n, b as r, i, t as a, x as o } from "./authApi-CVxnHdIU.js";
2
2
  import { i as s, r as c } from "./diceCandidateMapper-BKRGwz7g.js";
3
3
  import { Suspense as l, lazy as u, useCallback as d, useEffect as f, useMemo as p, useRef as m, useState as h } from "react";
4
4
  import { Breadcrumb as g, Button as _, Form as v, Modal as y, Space as ee, Spin as b, Tooltip as x, Typography as te, message as S } from "antd";
@@ -875,28 +875,28 @@ function ft(e, t) {
875
875
  });
876
876
  }), n;
877
877
  }
878
- async function pt(e, t, n = "", a = 50, o = 0, s = {}) {
878
+ async function pt(e, t, n = "", i = 50, o = 0, s = {}) {
879
879
  let c = new URLSearchParams({
880
880
  module: A(e),
881
881
  field: t,
882
882
  value: n,
883
- limit: String(a),
883
+ limit: String(i),
884
884
  offset: String(o)
885
885
  });
886
- return s.dataSource && c.set("dataSource", s.dataSource), s.masterName && c.set("masterName", s.masterName), s.groupName && c.set("groupName", s.groupName), r(i, `/filter-dropdown-values?${c}`);
886
+ return s.dataSource && c.set("dataSource", s.dataSource), s.masterName && c.set("masterName", s.masterName), s.groupName && c.set("groupName", s.groupName), a(r, `/filter-dropdown-values?${c}`);
887
887
  }
888
- async function mt(e, n = 10, r = 0, a = {}) {
888
+ async function mt(e, t = 10, i = 0, a = {}) {
889
889
  let { scope: o = "", sort: s = "", sortDir: c = "", filters: l = [] } = a;
890
890
  if (e === st) {
891
- let { getTestFlows: e } = await import("./index.js").then((e) => e.t), t = await e({
892
- limit: n,
893
- offset: r
894
- }), i = Array.isArray(t?.items) ? t.items : [], a = Number(t?.total) || 0;
891
+ let { getTestFlows: e } = await import("./index.js").then((e) => e.t), n = await e({
892
+ limit: t,
893
+ offset: i
894
+ }), r = Array.isArray(n?.items) ? n.items : [], a = Number(n?.total) || 0;
895
895
  return {
896
- items: i,
896
+ items: r,
897
897
  total: a,
898
- limit: n,
899
- offset: r,
898
+ limit: t,
899
+ offset: i,
900
900
  tabs: [{
901
901
  key: "all",
902
902
  title: "Test Cases",
@@ -905,15 +905,15 @@ async function mt(e, n = 10, r = 0, a = {}) {
905
905
  };
906
906
  }
907
907
  if (e === ct) {
908
- let { getLmsFlows: e } = await import("./index.js").then((e) => e.t), t = await e({
909
- limit: n,
910
- offset: r
911
- }), i = Array.isArray(t?.items) ? t.items : [], a = Number(t?.total) || 0;
908
+ let { getLmsFlows: e } = await import("./index.js").then((e) => e.t), n = await e({
909
+ limit: t,
910
+ offset: i
911
+ }), r = Array.isArray(n?.items) ? n.items : [], a = Number(n?.total) || 0;
912
912
  return {
913
- items: i,
913
+ items: r,
914
914
  total: a,
915
- limit: n,
916
- offset: r,
915
+ limit: t,
916
+ offset: i,
917
917
  tabs: [{
918
918
  key: "all",
919
919
  title: "LMS Cases",
@@ -923,19 +923,19 @@ async function mt(e, n = 10, r = 0, a = {}) {
923
923
  }
924
924
  let u = new URLSearchParams({
925
925
  module: A(e),
926
- limit: String(n),
927
- offset: String(r)
926
+ limit: String(t),
927
+ offset: String(i)
928
928
  }), d = String(o ?? "").trim();
929
- return d && u.set("scope", d), s && u.set("sort", s), c && u.set("sortDir", c), Array.isArray(l) && l.some((e) => e?.field) && u.set("filters", JSON.stringify(l)), t(i, `/module-data-list?${u.toString()}`);
929
+ return d && u.set("scope", d), s && u.set("sort", s), c && u.set("sortDir", c), Array.isArray(l) && l.some((e) => e?.field) && u.set("filters", JSON.stringify(l)), n(r, `/module-data-list?${u.toString()}`);
930
930
  }
931
- async function ht(e, n = {}, r = {}, a = {}) {
932
- let { limit: o = 10, offset: s = 0 } = r, { sort: c = "", sortDir: l = "", scope: u = "" } = a, d = lt(u || n.selectedSource), f = new URLSearchParams();
933
- f.append("module", A(e)), f.append("limit", String(o)), f.append("offset", String(s)), d && (f.set("scope", d), console.log("[searchModuleData] Adding scope to query:", d)), c && f.set("sort", c), l && f.set("sortDir", l), console.log("[searchModuleData] Final query string:", f.toString()), Object.entries(n).forEach(([e, t]) => {
931
+ async function ht(e, t = {}, i = {}, a = {}) {
932
+ let { limit: o = 10, offset: s = 0 } = i, { sort: c = "", sortDir: l = "", scope: u = "" } = a, d = lt(u || t.selectedSource), f = new URLSearchParams();
933
+ f.append("module", A(e)), f.append("limit", String(o)), f.append("offset", String(s)), d && (f.set("scope", d), console.log("[searchModuleData] Adding scope to query:", d)), c && f.set("sort", c), l && f.set("sortDir", l), console.log("[searchModuleData] Final query string:", f.toString()), Object.entries(t).forEach(([e, t]) => {
934
934
  if (t == null || t === "") return;
935
935
  let n = t;
936
936
  n = typeof t == "object" ? t.value ?? t.label ?? t.name ?? String(t) : String(t), f.append(e, n);
937
937
  });
938
- let p = await t(i, `/module-data-list?${f.toString()}`), m = p?.data ?? p, h = Array.isArray(m) ? m : m?.rows ?? m?.records ?? m?.items ?? m?.list ?? m?.data ?? [], g = dt(p, m, h, d), _ = ft(p, m);
938
+ let p = await n(r, `/module-data-list?${f.toString()}`), m = p?.data ?? p, h = Array.isArray(m) ? m : m?.rows ?? m?.records ?? m?.items ?? m?.list ?? m?.data ?? [], g = dt(p, m, h, d), _ = ft(p, m);
939
939
  d && _[d] === void 0 && Number.isFinite(g) && (_[d] = g);
940
940
  let v = h.some((e) => [
941
941
  e?.sourceType,
@@ -1012,11 +1012,11 @@ function yt(e) {
1012
1012
  let t = e?.data ?? e;
1013
1013
  return Array.isArray(t) ? t : Array.isArray(t?.groups) ? t.groups : Array.isArray(e?.groups) ? e.groups : [];
1014
1014
  }
1015
- async function bt({ module: e, id: t, action: r, clientId: a, region: o } = {}) {
1015
+ async function bt({ module: e, id: t, action: n, clientId: a, region: o } = {}) {
1016
1016
  if (!e) throw Error("module is required to fetch form groups");
1017
- let s = await n(), c = new URLSearchParams({ module: e });
1018
- t && c.set("id", t), r && c.set("action", r), a && c.set("clientId", a), o && c.set("region", o);
1019
- let l = await fetch(`${i}/admin/form-groups?${c.toString()}`, {
1017
+ let s = await i(), c = new URLSearchParams({ module: e });
1018
+ t && c.set("id", t), n && c.set("action", n), a && c.set("clientId", a), o && c.set("region", o);
1019
+ let l = await fetch(`${r}/admin/form-groups?${c.toString()}`, {
1020
1020
  method: "GET",
1021
1021
  headers: {
1022
1022
  "Content-Type": "application/json",
@@ -1027,11 +1027,11 @@ async function bt({ module: e, id: t, action: r, clientId: a, region: o } = {})
1027
1027
  return yt(await l.json());
1028
1028
  }
1029
1029
  async function xt(e, t) {
1030
- let r = await n(), a = await fetch(`${i}/module/create?module=${encodeURIComponent(e)}`, {
1030
+ let n = await i(), a = await fetch(`${r}/module/create?module=${encodeURIComponent(e)}`, {
1031
1031
  method: "POST",
1032
- headers: { Authorization: `Bearer ${r}` },
1032
+ headers: { Authorization: `Bearer ${n}` },
1033
1033
  body: t
1034
- }), { logout: o } = await import("./authApi-CZg3yPl9.js");
1034
+ }), { logout: o } = await import("./authApi-ex9uiaZ4.js");
1035
1035
  a.status === 401 && o();
1036
1036
  let s = (a.headers.get("content-type") || "").includes("application/json") ? await a.json() : await a.text();
1037
1037
  if (!a.ok) {
@@ -1202,37 +1202,37 @@ function Tt(e = M) {
1202
1202
  }
1203
1203
  var Et = "/admin/modules";
1204
1204
  async function Dt() {
1205
- let e = await t(i, Et), n = e?.data;
1206
- return Array.isArray(n) ? n : Array.isArray(e) ? e : [];
1205
+ let e = await n(r, Et), t = e?.data;
1206
+ return Array.isArray(t) ? t : Array.isArray(e) ? e : [];
1207
1207
  }
1208
1208
  async function Ot(e) {
1209
- let n = await t(i, `${Et}/${encodeURIComponent(e)}/automations`), r = n?.data ?? n ?? {};
1209
+ let t = await n(r, `${Et}/${encodeURIComponent(e)}/automations`), i = t?.data ?? t ?? {};
1210
1210
  return {
1211
- gateway: r.gateway ?? null,
1212
- strategies: r.strategies ?? null
1211
+ gateway: i.gateway ?? null,
1212
+ strategies: i.strategies ?? null
1213
1213
  };
1214
1214
  }
1215
1215
  async function kt(e) {
1216
- let n = await t(i, `/admin/platform/${e}`), r = n?.data ?? n;
1217
- return Array.isArray(r) ? r : [];
1216
+ let t = await n(r, `/admin/platform/${e}`), i = t?.data ?? t;
1217
+ return Array.isArray(i) ? i : [];
1218
1218
  }
1219
- async function At(e, n) {
1220
- return t(i, `/admin/platform/${e}`, {
1219
+ async function At(e, t) {
1220
+ return n(r, `/admin/platform/${e}`, {
1221
1221
  method: "POST",
1222
1222
  headers: { "Content-Type": "application/json" },
1223
- body: JSON.stringify(n)
1223
+ body: JSON.stringify(t)
1224
1224
  });
1225
1225
  }
1226
- async function jt(e, n) {
1227
- return t(i, `/admin/platform/${e}/${encodeURIComponent(n)}`, { method: "DELETE" });
1226
+ async function jt(e, t) {
1227
+ return n(r, `/admin/platform/${e}/${encodeURIComponent(t)}`, { method: "DELETE" });
1228
1228
  }
1229
- async function Mt(e, { gateway: n, strategies: r }) {
1230
- return t(i, `${Et}/${encodeURIComponent(e)}/automations`, {
1229
+ async function Mt(e, { gateway: t, strategies: i }) {
1230
+ return n(r, `${Et}/${encodeURIComponent(e)}/automations`, {
1231
1231
  method: "PUT",
1232
1232
  headers: { "Content-Type": "application/json" },
1233
1233
  body: JSON.stringify({
1234
- gateway: n,
1235
- strategies: r
1234
+ gateway: t,
1235
+ strategies: i
1236
1236
  })
1237
1237
  });
1238
1238
  }
@@ -1253,91 +1253,91 @@ function Ft(e = {}) {
1253
1253
  let n = t.toString();
1254
1254
  return n ? `?${n}` : "";
1255
1255
  }
1256
- async function It(e = "", n = {}) {
1257
- let r = await t(i, `${F}${Ft({
1258
- ...n,
1259
- module: e || n.module || ""
1260
- })}`), a = r?.data;
1261
- return Array.isArray(a) ? a : a && Array.isArray(a.groups) ? a.groups : Array.isArray(r) ? r : r && Array.isArray(r.groups) ? r.groups : [];
1256
+ async function It(e = "", t = {}) {
1257
+ let i = await n(r, `${F}${Ft({
1258
+ ...t,
1259
+ module: e || t.module || ""
1260
+ })}`), a = i?.data;
1261
+ return Array.isArray(a) ? a : a && Array.isArray(a.groups) ? a.groups : Array.isArray(i) ? i : i && Array.isArray(i.groups) ? i.groups : [];
1262
1262
  }
1263
- async function Lt({ offset: e = 0, limit: n = 100, sortBy: r = "new", searchvalue: a = "" } = {}) {
1263
+ async function Lt({ offset: e = 0, limit: t = 100, sortBy: i = "new", searchvalue: a = "" } = {}) {
1264
1264
  let o = new URLSearchParams({
1265
1265
  offset: String(e),
1266
- limit: String(n),
1267
- sortBy: r,
1266
+ limit: String(t),
1267
+ sortBy: i,
1268
1268
  searchvalue: a
1269
1269
  }), s = localStorage.getItem("tenantId") || "", c = localStorage.getItem("businessId") || "", l = localStorage.getItem("businessUnitId") || "";
1270
1270
  s && o.set("tenantId", s), c && o.set("businessId", c), l && o.set("businessUnitId", l);
1271
- let u = await t(i, `/client/view?${o.toString()}`), d = u?.data ?? u;
1271
+ let u = await n(r, `/client/view?${o.toString()}`), d = u?.data ?? u;
1272
1272
  return d?.clients ?? d?.Clients ?? d?.items ?? [];
1273
1273
  }
1274
1274
  async function Rt(e) {
1275
- let n = await t(i, `/filter-dropdown-fields?module=${encodeURIComponent(e)}`), r = n?.data ?? n;
1276
- return Array.isArray(r) ? r : [];
1275
+ let t = await n(r, `/filter-dropdown-fields?module=${encodeURIComponent(e)}`), i = t?.data ?? t;
1276
+ return Array.isArray(i) ? i : [];
1277
1277
  }
1278
- async function zt(e, n = {}) {
1279
- return t(i, `${F}${Ft(n)}`, {
1278
+ async function zt(e, t = {}) {
1279
+ return n(r, `${F}${Ft(t)}`, {
1280
1280
  method: "POST",
1281
1281
  headers: { "Content-Type": "application/json" },
1282
1282
  body: JSON.stringify(e)
1283
1283
  });
1284
1284
  }
1285
- async function Bt(e, n, r = {}) {
1286
- return t(i, `${F}/${e}${Ft(r)}`, {
1285
+ async function Bt(e, t, i = {}) {
1286
+ return n(r, `${F}/${e}${Ft(i)}`, {
1287
1287
  method: "PUT",
1288
1288
  headers: { "Content-Type": "application/json" },
1289
- body: JSON.stringify(n)
1289
+ body: JSON.stringify(t)
1290
1290
  });
1291
1291
  }
1292
1292
  async function Vt(e) {
1293
- return t(i, `${F}/${e}`, { method: "DELETE" });
1293
+ return n(r, `${F}/${e}`, { method: "DELETE" });
1294
1294
  }
1295
- async function Ht(e, n) {
1296
- return t(i, `${Pt}/request-otp`, {
1295
+ async function Ht(e, t) {
1296
+ return n(r, `${Pt}/request-otp`, {
1297
1297
  method: "POST",
1298
1298
  body: JSON.stringify({
1299
1299
  scope: e,
1300
- action: n
1300
+ action: t
1301
1301
  })
1302
1302
  });
1303
1303
  }
1304
- async function Ut(e, n, r) {
1305
- return t(i, `${Pt}/apply`, {
1304
+ async function Ut(e, t, i) {
1305
+ return n(r, `${Pt}/apply`, {
1306
1306
  method: "POST",
1307
1307
  body: JSON.stringify({
1308
1308
  scope: e,
1309
- action: n,
1310
- otp: r
1309
+ action: t,
1310
+ otp: i
1311
1311
  })
1312
1312
  });
1313
1313
  }
1314
1314
  var Wt = "/admin/detail-config";
1315
1315
  async function Gt(e) {
1316
- let n = await t(i, `${Wt}?module=${encodeURIComponent(e)}`), r = n?.data ?? n ?? {};
1316
+ let t = await n(r, `${Wt}?module=${encodeURIComponent(e)}`), i = t?.data ?? t ?? {};
1317
1317
  return {
1318
- module: r.module ?? e,
1319
- fields: Array.isArray(r.fields) ? r.fields : [],
1320
- merges: Array.isArray(r.merges) ? r.merges : []
1318
+ module: i.module ?? e,
1319
+ fields: Array.isArray(i.fields) ? i.fields : [],
1320
+ merges: Array.isArray(i.merges) ? i.merges : []
1321
1321
  };
1322
1322
  }
1323
- async function Kt({ module: e, fields: n = [], merges: r = [] }) {
1324
- return t(i, Wt, {
1323
+ async function Kt({ module: e, fields: t = [], merges: i = [] }) {
1324
+ return n(r, Wt, {
1325
1325
  method: "POST",
1326
1326
  headers: { "Content-Type": "application/json" },
1327
1327
  body: JSON.stringify({
1328
1328
  module: e,
1329
- fields: n,
1330
- merges: r
1329
+ fields: t,
1330
+ merges: i
1331
1331
  })
1332
1332
  });
1333
1333
  }
1334
1334
  var qt = "/admin/detail-defaults";
1335
1335
  async function Jt() {
1336
- let e = await t(i, qt);
1336
+ let e = await n(r, qt);
1337
1337
  return e?.data ?? e ?? {};
1338
1338
  }
1339
1339
  async function Yt(e) {
1340
- return t(i, qt, {
1340
+ return n(r, qt, {
1341
1341
  method: "POST",
1342
1342
  headers: { "Content-Type": "application/json" },
1343
1343
  body: JSON.stringify(e)
@@ -1345,36 +1345,36 @@ async function Yt(e) {
1345
1345
  }
1346
1346
  var Xt = "/admin/ai-service-config";
1347
1347
  async function Zt() {
1348
- let e = await t(i, Xt);
1348
+ let e = await n(r, Xt);
1349
1349
  return e?.data ?? e ?? [];
1350
1350
  }
1351
1351
  async function Qt(e) {
1352
- return t(i, Xt, {
1352
+ return n(r, Xt, {
1353
1353
  method: "POST",
1354
1354
  headers: { "Content-Type": "application/json" },
1355
1355
  body: JSON.stringify(e)
1356
1356
  });
1357
1357
  }
1358
1358
  async function $t(e) {
1359
- return t(i, `${Xt}?serviceKey=${encodeURIComponent(e)}`, { method: "DELETE" });
1359
+ return n(r, `${Xt}?serviceKey=${encodeURIComponent(e)}`, { method: "DELETE" });
1360
1360
  }
1361
1361
  var en = "/admin/bgc-integration-config";
1362
1362
  async function tn() {
1363
- let e = await t(i, en);
1363
+ let e = await n(r, en);
1364
1364
  return e?.data ?? e ?? {
1365
1365
  updateMethod: "MANUAL",
1366
1366
  enabled: !0
1367
1367
  };
1368
1368
  }
1369
1369
  async function nn(e) {
1370
- return t(i, en, {
1370
+ return n(r, en, {
1371
1371
  method: "PUT",
1372
1372
  headers: { "Content-Type": "application/json" },
1373
1373
  body: JSON.stringify(e)
1374
1374
  });
1375
1375
  }
1376
1376
  async function rn() {
1377
- let e = await t(i, "/integration-config/bgc/summary");
1377
+ let e = await n(r, "/integration-config/bgc/summary");
1378
1378
  return e?.data ?? e ?? {
1379
1379
  updateMethod: "MANUAL",
1380
1380
  enabled: !0
@@ -1382,46 +1382,46 @@ async function rn() {
1382
1382
  }
1383
1383
  var I = "/admin/integration-config";
1384
1384
  async function an() {
1385
- let e = await t(i, I);
1385
+ let e = await n(r, I);
1386
1386
  return e?.data ?? e ?? [];
1387
1387
  }
1388
1388
  async function on(e) {
1389
- let n = await t(i, `${I}/${encodeURIComponent(e)}`);
1390
- return n?.data ?? n;
1389
+ let t = await n(r, `${I}/${encodeURIComponent(e)}`);
1390
+ return t?.data ?? t;
1391
1391
  }
1392
1392
  async function sn(e) {
1393
- let n = e?.integrationKey;
1394
- return t(i, n ? `${I}/${encodeURIComponent(n)}` : I, {
1395
- method: n ? "PUT" : "POST",
1393
+ let t = e?.integrationKey;
1394
+ return n(r, t ? `${I}/${encodeURIComponent(t)}` : I, {
1395
+ method: t ? "PUT" : "POST",
1396
1396
  headers: { "Content-Type": "application/json" },
1397
1397
  body: JSON.stringify(e)
1398
1398
  });
1399
1399
  }
1400
1400
  async function cn(e) {
1401
- return t(i, `${I}/${encodeURIComponent(e)}`, { method: "DELETE" });
1401
+ return n(r, `${I}/${encodeURIComponent(e)}`, { method: "DELETE" });
1402
1402
  }
1403
1403
  async function ln(e) {
1404
- let n = await t(i, `${I}/test`, {
1404
+ let t = await n(r, `${I}/test`, {
1405
1405
  method: "POST",
1406
1406
  headers: { "Content-Type": "application/json" },
1407
1407
  body: JSON.stringify(e)
1408
1408
  });
1409
- return n?.data ?? n;
1409
+ return t?.data ?? t;
1410
1410
  }
1411
1411
  async function un(e) {
1412
- let n = await t(i, `/integration-config/${encodeURIComponent(e)}/summary`);
1413
- return n?.data ?? n;
1412
+ let t = await n(r, `/integration-config/${encodeURIComponent(e)}/summary`);
1413
+ return t?.data ?? t;
1414
1414
  }
1415
- async function dn(e, n, r) {
1416
- let a = await t(i, `/integration-config/${encodeURIComponent(e)}/apply-status/${encodeURIComponent(n)}`, {
1415
+ async function dn(e, t, i) {
1416
+ let a = await n(r, `/integration-config/${encodeURIComponent(e)}/apply-status/${encodeURIComponent(t)}`, {
1417
1417
  method: "POST",
1418
1418
  headers: { "Content-Type": "application/json" },
1419
- body: JSON.stringify(r)
1419
+ body: JSON.stringify(i)
1420
1420
  });
1421
1421
  return a?.data ?? a;
1422
1422
  }
1423
- async function fn(e, n) {
1424
- let r = await t(i, `${F}?module=${encodeURIComponent(e)}&id=${encodeURIComponent(n)}&view=detail`), a = r?.data ?? r;
1423
+ async function fn(e, t) {
1424
+ let i = await n(r, `${F}?module=${encodeURIComponent(e)}&id=${encodeURIComponent(t)}&view=detail`), a = i?.data ?? i;
1425
1425
  return Array.isArray(a) ? a : [];
1426
1426
  }
1427
1427
  function pn(e) {
@@ -1439,7 +1439,7 @@ function L(e) {
1439
1439
  return e?.raw?.role_id ?? e?.roleId ?? e?.key;
1440
1440
  }
1441
1441
  async function mn() {
1442
- let e = await t(i, "/get-roles"), n = e.data ?? e, r = N(n?.zinnext_default).map(pn), a = N(n?.custom_roles).map(pn), o = [...r, ...a];
1442
+ let e = await n(r, "/get-roles"), t = e.data ?? e, i = N(t?.zinnext_default).map(pn), a = N(t?.custom_roles).map(pn), o = [...i, ...a];
1443
1443
  return {
1444
1444
  roles: o,
1445
1445
  total: o.length
@@ -1461,11 +1461,11 @@ function hn(e) {
1461
1461
  function gn(e) {
1462
1462
  return e?.raw?.teamId ?? e?.teamId ?? e?.key;
1463
1463
  }
1464
- async function _n({ offset: e = 0, limit: n = 10, sortBy: r = "new", search: a = "" } = {}) {
1465
- let o = await t(i, `/get-teams?${new URLSearchParams({
1464
+ async function _n({ offset: e = 0, limit: t = 10, sortBy: i = "new", search: a = "" } = {}) {
1465
+ let o = await n(r, `/get-teams?${new URLSearchParams({
1466
1466
  searchquery: a,
1467
- sortBy: r,
1468
- limit: String(n),
1467
+ sortBy: i,
1468
+ limit: String(t),
1469
1469
  offset: String(e)
1470
1470
  })}`), s = o.data ?? o, c = N(s?.teams, s, o?.teams), l = s?.totalCount ?? s?.total ?? c.length;
1471
1471
  return {
@@ -1473,22 +1473,22 @@ async function _n({ offset: e = 0, limit: n = 10, sortBy: r = "new", search: a =
1473
1473
  total: l
1474
1474
  };
1475
1475
  }
1476
- async function vn(e, { teamName: n, managerId: r, memberIds: a = [] }) {
1477
- return t(i, `/team/edit?teamId=${gn(e)}`, {
1476
+ async function vn(e, { teamName: t, managerId: i, memberIds: a = [] }) {
1477
+ return n(r, `/team/edit?teamId=${gn(e)}`, {
1478
1478
  method: "PUT",
1479
1479
  body: JSON.stringify({
1480
- team_name: n,
1481
- team_manager: r,
1480
+ team_name: t,
1481
+ team_manager: i,
1482
1482
  other_team_members: a,
1483
1483
  reporting_team_member: []
1484
1484
  })
1485
1485
  });
1486
1486
  }
1487
- async function yn(e, n, r, a = "listView") {
1488
- let o = await t(i, `${j}?${new URLSearchParams({
1487
+ async function yn(e, t, i, a = "listView") {
1488
+ let o = await n(r, `${j}?${new URLSearchParams({
1489
1489
  module: e,
1490
1490
  userId: "0",
1491
- [n]: String(r),
1491
+ [t]: String(i),
1492
1492
  configType: a
1493
1493
  })}`), s = o.data ?? o;
1494
1494
  return N(s, s?.visibleFields, o?.visibleFields);
@@ -1547,15 +1547,15 @@ function Sn(e, t) {
1547
1547
  ].includes(e.type) && (i.dataSource = e.dataSource ?? "module", e.dataSource === "group" && (i.groupName = e.groupName ?? ""))), i;
1548
1548
  });
1549
1549
  }
1550
- async function Cn(e, n, r, a = "listView", o = M) {
1551
- let s = L(e), c = Tt(o).find((e) => e.key === n)?.apiModule ?? n;
1552
- return t(i, `${j}/role`, {
1550
+ async function Cn(e, t, i, a = "listView", o = M) {
1551
+ let s = L(e), c = Tt(o).find((e) => e.key === t)?.apiModule ?? t;
1552
+ return n(r, `${j}/role`, {
1553
1553
  method: "PUT",
1554
1554
  body: JSON.stringify({
1555
1555
  module: c,
1556
1556
  roleId: s,
1557
1557
  configType: a,
1558
- visibleFields: Sn(r, a)
1558
+ visibleFields: Sn(i, a)
1559
1559
  })
1560
1560
  });
1561
1561
  }
@@ -1563,18 +1563,18 @@ var wn = "/admin/role-form-permissions";
1563
1563
  function Tn(e) {
1564
1564
  return `__group__:${e}`;
1565
1565
  }
1566
- async function En(e, n, r = {}) {
1566
+ async function En(e, t, i = {}) {
1567
1567
  let a = L(e), o = new URLSearchParams({
1568
- module: n,
1568
+ module: t,
1569
1569
  roleId: String(a ?? "")
1570
1570
  });
1571
- r.clientId && o.set("clientId", r.clientId), r.region && o.set("region", r.region);
1572
- let s = await t(i, `${wn}?${o}`), c = s?.data ?? s;
1571
+ i.clientId && o.set("clientId", i.clientId), i.region && o.set("region", i.region);
1572
+ let s = await n(r, `${wn}?${o}`), c = s?.data ?? s;
1573
1573
  return Array.isArray(c) ? c : [];
1574
1574
  }
1575
- async function Dn(e, n, r) {
1575
+ async function Dn(e, t, i) {
1576
1576
  let a = L(e), o = [], s = 0;
1577
- for (let e of r) {
1577
+ for (let e of i) {
1578
1578
  e.locked || o.push({
1579
1579
  label: e.label,
1580
1580
  field: Tn(e.name),
@@ -1590,36 +1590,36 @@ async function Dn(e, n, r) {
1590
1590
  order: s++
1591
1591
  });
1592
1592
  }
1593
- return t(i, `${j}/role`, {
1593
+ return n(r, `${j}/role`, {
1594
1594
  method: "PUT",
1595
1595
  body: JSON.stringify({
1596
- module: n,
1596
+ module: t,
1597
1597
  roleId: a,
1598
1598
  configType: "form",
1599
1599
  visibleFields: o
1600
1600
  })
1601
1601
  });
1602
1602
  }
1603
- async function On(e, n, r, a = "listView") {
1604
- let o = gn(e), s = M.find((e) => e.key === n)?.apiModule ?? n;
1605
- return t(i, `${j}/team`, {
1603
+ async function On(e, t, i, a = "listView") {
1604
+ let o = gn(e), s = M.find((e) => e.key === t)?.apiModule ?? t;
1605
+ return n(r, `${j}/team`, {
1606
1606
  method: "PUT",
1607
1607
  body: JSON.stringify({
1608
1608
  module: s,
1609
1609
  teamId: o,
1610
1610
  configType: a,
1611
- visibleFields: Sn(r, a)
1611
+ visibleFields: Sn(i, a)
1612
1612
  })
1613
1613
  });
1614
1614
  }
1615
- async function kn({ offset: e = 0, limit: n = 10, sortBy: r = "new", searchQuery: a = "" } = {}) {
1615
+ async function kn({ offset: e = 0, limit: t = 10, sortBy: i = "new", searchQuery: a = "" } = {}) {
1616
1616
  let o = new URLSearchParams({
1617
1617
  offset: String(e),
1618
- limit: String(n),
1619
- sortBy: r
1618
+ limit: String(t),
1619
+ sortBy: i
1620
1620
  });
1621
1621
  a && o.set("searchquery", a);
1622
- let s = await t(i, `/get-all-users?${o}`), c = s.data ?? s, l = N(c, s.users, s.rows, s.items, s.records, c?.users, c?.data, c?.rows, c?.items, c?.records, c?.docs, c?.result, c?.results);
1622
+ let s = await n(r, `/get-all-users?${o}`), c = s.data ?? s, l = N(c, s.users, s.rows, s.items, s.records, c?.users, c?.data, c?.rows, c?.items, c?.records, c?.docs, c?.result, c?.results);
1623
1623
  return {
1624
1624
  users: l,
1625
1625
  total: St({
@@ -1629,32 +1629,32 @@ async function kn({ offset: e = 0, limit: n = 10, sortBy: r = "new", searchQuery
1629
1629
  };
1630
1630
  }
1631
1631
  async function An(e = []) {
1632
- return t(i, `${j}/seed`, {
1632
+ return n(r, `${j}/seed`, {
1633
1633
  method: "POST",
1634
1634
  headers: { "Content-Type": "application/json" },
1635
1635
  body: JSON.stringify({ collections: e })
1636
1636
  });
1637
1637
  }
1638
1638
  async function jn() {
1639
- let e = await t(i, `${j}/seed-status`), n = e?.data ?? e ?? {};
1639
+ let e = await n(r, `${j}/seed-status`), t = e?.data ?? e ?? {};
1640
1640
  return {
1641
- modules: Array.isArray(n.modules) ? n.modules : [],
1642
- seededModules: n.seededModules ?? {}
1641
+ modules: Array.isArray(t.modules) ? t.modules : [],
1642
+ seededModules: t.seededModules ?? {}
1643
1643
  };
1644
1644
  }
1645
1645
  async function Mn(e) {
1646
1646
  let t = localStorage.getItem("authToken"), n = new FormData();
1647
1647
  n.append("icon", e);
1648
- let r = await fetch(`${i}/admin/field-config/action-icon`, {
1648
+ let i = await fetch(`${r}/admin/field-config/action-icon`, {
1649
1649
  method: "POST",
1650
1650
  headers: { Authorization: `Bearer ${t}` },
1651
1651
  body: n
1652
1652
  });
1653
- if (!r.ok) {
1654
- let e = /* @__PURE__ */ Error(`Upload failed: ${r.status}`);
1655
- throw e.status = r.status, e;
1653
+ if (!i.ok) {
1654
+ let e = /* @__PURE__ */ Error(`Upload failed: ${i.status}`);
1655
+ throw e.status = i.status, e;
1656
1656
  }
1657
- let a = await r.json();
1657
+ let a = await i.json();
1658
1658
  return a.data ?? a;
1659
1659
  }
1660
1660
  async function Nn() {
@@ -1665,40 +1665,40 @@ async function Nn() {
1665
1665
  ...r
1666
1666
  ];
1667
1667
  }
1668
- async function Pn(e, { page: n = 1, limit: r = 100 } = {}) {
1669
- let a = await t(i, `/module/list?${new URLSearchParams({
1668
+ async function Pn(e, { page: t = 1, limit: i = 100 } = {}) {
1669
+ let a = await n(r, `/module/list?${new URLSearchParams({
1670
1670
  module: e,
1671
- page: String(n),
1672
- limit: String(r)
1671
+ page: String(t),
1672
+ limit: String(i)
1673
1673
  })}`), o = a?.data ?? a ?? {};
1674
1674
  return {
1675
1675
  items: Array.isArray(o.data) ? o.data : [],
1676
1676
  total: o.pagination?.total ?? 0
1677
1677
  };
1678
1678
  }
1679
- async function Fn(e, n) {
1680
- return t(i, `/module/create?module=${encodeURIComponent(e)}`, {
1679
+ async function Fn(e, t) {
1680
+ return n(r, `/module/create?module=${encodeURIComponent(e)}`, {
1681
1681
  method: "POST",
1682
1682
  headers: { "Content-Type": "application/json" },
1683
- body: JSON.stringify(n)
1683
+ body: JSON.stringify(t)
1684
1684
  });
1685
1685
  }
1686
- async function In(e, n, r) {
1687
- return t(i, `/module/update/${encodeURIComponent(n)}?module=${encodeURIComponent(e)}`, {
1686
+ async function In(e, t, i) {
1687
+ return n(r, `/module/update/${encodeURIComponent(t)}?module=${encodeURIComponent(e)}`, {
1688
1688
  method: "PUT",
1689
1689
  headers: { "Content-Type": "application/json" },
1690
- body: JSON.stringify(r)
1690
+ body: JSON.stringify(i)
1691
1691
  });
1692
1692
  }
1693
- async function Ln(e, n) {
1694
- return t(i, `/module/delete/${encodeURIComponent(n)}?module=${encodeURIComponent(e)}`, { method: "DELETE" });
1693
+ async function Ln(e, t) {
1694
+ return n(r, `/module/delete/${encodeURIComponent(t)}?module=${encodeURIComponent(e)}`, { method: "DELETE" });
1695
1695
  }
1696
- async function Rn(e = "", n = 50) {
1697
- let r = await t(i, `/admin/location-dropdown-values?${new URLSearchParams({
1696
+ async function Rn(e = "", t = 50) {
1697
+ let i = await n(r, `/admin/location-dropdown-values?${new URLSearchParams({
1698
1698
  search: e,
1699
- limit: String(n),
1699
+ limit: String(t),
1700
1700
  offset: "0"
1701
- })}`), a = r?.data ?? r ?? [];
1701
+ })}`), a = i?.data ?? i ?? [];
1702
1702
  return (Array.isArray(a) ? a : []).map((e) => {
1703
1703
  let t = typeof e == "string" ? e : e.label ?? e.value ?? "";
1704
1704
  return {
@@ -1707,196 +1707,196 @@ async function Rn(e = "", n = 50) {
1707
1707
  };
1708
1708
  }).filter((e) => e.label);
1709
1709
  }
1710
- async function zn(e, n, r = "_id") {
1711
- let a = await t(i, `/admin/lookup-dropdown-values?${new URLSearchParams({
1710
+ async function zn(e, t, i = "_id") {
1711
+ let a = await n(r, `/admin/lookup-dropdown-values?${new URLSearchParams({
1712
1712
  collection: String(e),
1713
- displayField: String(n),
1714
- valueField: String(r)
1713
+ displayField: String(t),
1714
+ valueField: String(i)
1715
1715
  })}`), o = a?.data ?? a ?? [];
1716
1716
  return (Array.isArray(o) ? o : []).map((e) => ({
1717
- label: e.label ?? e.displayValue ?? e[n] ?? String(e.value ?? ""),
1717
+ label: e.label ?? e.displayValue ?? e[t] ?? String(e.value ?? ""),
1718
1718
  value: String(e.value ?? e._id ?? e.id ?? "")
1719
1719
  })).filter((e) => e.value && e.label);
1720
1720
  }
1721
1721
  async function Bn(e) {
1722
- let n = await t(i, `/admin/default-fields?module=${encodeURIComponent(e)}`), r = n?.data ?? n ?? {};
1723
- return Array.isArray(r.fields) ? r.fields : [];
1722
+ let t = await n(r, `/admin/default-fields?module=${encodeURIComponent(e)}`), i = t?.data ?? t ?? {};
1723
+ return Array.isArray(i.fields) ? i.fields : [];
1724
1724
  }
1725
- async function Vn(e, n, r) {
1726
- return t(i, "/admin/default-fields", {
1725
+ async function Vn(e, t, i) {
1726
+ return n(r, "/admin/default-fields", {
1727
1727
  method: "PUT",
1728
1728
  headers: { "Content-Type": "application/json" },
1729
1729
  body: JSON.stringify({
1730
1730
  module: e,
1731
- fields: n,
1732
- otp: r
1731
+ fields: t,
1732
+ otp: i
1733
1733
  })
1734
1734
  });
1735
1735
  }
1736
1736
  async function Hn(e) {
1737
- let n = await t(i, "/email-verify", {
1737
+ let t = await n(r, "/email-verify", {
1738
1738
  method: "POST",
1739
1739
  headers: { "Content-Type": "application/json" },
1740
1740
  body: JSON.stringify({ email: e })
1741
- }), r = n?.data ?? n ?? {};
1741
+ }), i = t?.data ?? t ?? {};
1742
1742
  return {
1743
- valid: !!r.valid,
1744
- reason: r.reason ?? "",
1745
- result: r.result ?? "",
1746
- mailboxConfirmed: !!r.mailboxConfirmed,
1747
- catchAll: !!r.catchAll,
1748
- disposable: !!r.disposable,
1749
- roleAddress: !!r.roleAddress,
1750
- risk: r.risk ?? "",
1751
- checks: Array.isArray(r.checks) ? r.checks : []
1743
+ valid: !!i.valid,
1744
+ reason: i.reason ?? "",
1745
+ result: i.result ?? "",
1746
+ mailboxConfirmed: !!i.mailboxConfirmed,
1747
+ catchAll: !!i.catchAll,
1748
+ disposable: !!i.disposable,
1749
+ roleAddress: !!i.roleAddress,
1750
+ risk: i.risk ?? "",
1751
+ checks: Array.isArray(i.checks) ? i.checks : []
1752
1752
  };
1753
1753
  }
1754
1754
  async function Un() {
1755
- let e = await t(i, "/admin/lookup/collections"), n = e.data ?? e;
1756
- return Array.isArray(n) ? n : [];
1755
+ let e = await n(r, "/admin/lookup/collections"), t = e.data ?? e;
1756
+ return Array.isArray(t) ? t : [];
1757
1757
  }
1758
1758
  async function Wn(e) {
1759
- let n = await t(i, `/admin/lookup/collection-fields?collection=${encodeURIComponent(e)}`), r = n.data ?? n;
1760
- return Array.isArray(r) ? r : [];
1759
+ let t = await n(r, `/admin/lookup/collection-fields?collection=${encodeURIComponent(e)}`), i = t.data ?? t;
1760
+ return Array.isArray(i) ? i : [];
1761
1761
  }
1762
- async function Gn(e, n) {
1763
- let r = await t(i, `/admin/field-array-subfields?module=${encodeURIComponent(e)}&field=${encodeURIComponent(n)}`), a = r.data ?? r;
1762
+ async function Gn(e, t) {
1763
+ let i = await n(r, `/admin/field-array-subfields?module=${encodeURIComponent(e)}&field=${encodeURIComponent(t)}`), a = i.data ?? i;
1764
1764
  return Array.isArray(a?.fields) ? a.fields : [];
1765
1765
  }
1766
1766
  async function Kn() {
1767
- let e = await t(i, "/admin/menu-modules");
1767
+ let e = await n(r, "/admin/menu-modules");
1768
1768
  return N(e.data, e);
1769
1769
  }
1770
- async function qn({ menuName: e, apiUrl: n = "", menuType: r = "menu", parentMenuId: a = 0, displayOrder: o = 0 }) {
1771
- let s = await t(i, "/admin/menu-modules", {
1770
+ async function qn({ menuName: e, apiUrl: t = "", menuType: i = "menu", parentMenuId: a = 0, displayOrder: o = 0 }) {
1771
+ let s = await n(r, "/admin/menu-modules", {
1772
1772
  method: "POST",
1773
1773
  body: JSON.stringify({
1774
1774
  menuName: e,
1775
- apiUrl: n,
1776
- menuType: r,
1775
+ apiUrl: t,
1776
+ menuType: i,
1777
1777
  parentMenuId: a,
1778
1778
  displayOrder: o
1779
1779
  })
1780
1780
  });
1781
1781
  return s.data ?? s;
1782
1782
  }
1783
- async function Jn(e, { menuName: n }) {
1784
- let r = await t(i, `/admin/menu-modules/${e}`, {
1783
+ async function Jn(e, { menuName: t }) {
1784
+ let i = await n(r, `/admin/menu-modules/${e}`, {
1785
1785
  method: "PUT",
1786
- body: JSON.stringify({ menuName: n })
1786
+ body: JSON.stringify({ menuName: t })
1787
1787
  });
1788
- return r.data ?? r;
1788
+ return i.data ?? i;
1789
1789
  }
1790
1790
  async function Yn(e) {
1791
- let n = await t(i, `/admin/menu-modules/${e}`, { method: "DELETE" });
1792
- return n.data ?? n;
1791
+ let t = await n(r, `/admin/menu-modules/${e}`, { method: "DELETE" });
1792
+ return t.data ?? t;
1793
1793
  }
1794
1794
  async function Xn() {
1795
- let e = await t(i, "/admin/menu-actions");
1795
+ let e = await n(r, "/admin/menu-actions");
1796
1796
  return N(e.data, e);
1797
1797
  }
1798
- async function Zn({ permissionName: e, permissionKey: n }) {
1799
- let r = await t(i, "/admin/menu-actions", {
1798
+ async function Zn({ permissionName: e, permissionKey: t }) {
1799
+ let i = await n(r, "/admin/menu-actions", {
1800
1800
  method: "POST",
1801
1801
  body: JSON.stringify({
1802
1802
  permissionName: e,
1803
- permissionKey: n
1803
+ permissionKey: t
1804
1804
  })
1805
1805
  });
1806
- return r.data ?? r;
1806
+ return i.data ?? i;
1807
1807
  }
1808
- async function Qn(e, { permissionName: n }) {
1809
- let r = await t(i, `/admin/menu-actions/${e}`, {
1808
+ async function Qn(e, { permissionName: t }) {
1809
+ let i = await n(r, `/admin/menu-actions/${e}`, {
1810
1810
  method: "PUT",
1811
- body: JSON.stringify({ permissionName: n })
1811
+ body: JSON.stringify({ permissionName: t })
1812
1812
  });
1813
- return r.data ?? r;
1813
+ return i.data ?? i;
1814
1814
  }
1815
1815
  async function $n(e) {
1816
- let n = await t(i, `/admin/menu-actions/${e}`, { method: "DELETE" });
1817
- return n.data ?? n;
1816
+ let t = await n(r, `/admin/menu-actions/${e}`, { method: "DELETE" });
1817
+ return t.data ?? t;
1818
1818
  }
1819
1819
  async function er(e) {
1820
- let n = await t(i, `/get-role-details?roleid=${e}`);
1821
- return n?.data ?? n ?? {};
1820
+ let t = await n(r, `/get-role-details?roleid=${e}`);
1821
+ return t?.data ?? t ?? {};
1822
1822
  }
1823
- async function tr(e, n) {
1824
- return t(i, "/edit-role-details", {
1823
+ async function tr(e, t) {
1824
+ return n(r, "/edit-role-details", {
1825
1825
  method: "PUT",
1826
1826
  headers: { "Content-Type": "application/json" },
1827
1827
  body: JSON.stringify({
1828
1828
  roleId: e,
1829
- menus: n
1829
+ menus: t
1830
1830
  })
1831
1831
  });
1832
1832
  }
1833
1833
  var R = "/admin/custom-forms";
1834
- async function nr(e = "", n = "", r = "") {
1834
+ async function nr(e = "", t = "", i = "") {
1835
1835
  let a = new URLSearchParams();
1836
- e && a.append("module", e), n && a.append("formType", n), r && a.append("action", r);
1837
- let o = await t(i, `${R}?${a.toString()}`), s = o?.data;
1836
+ e && a.append("module", e), t && a.append("formType", t), i && a.append("action", i);
1837
+ let o = await n(r, `${R}?${a.toString()}`), s = o?.data;
1838
1838
  return Array.isArray(s) ? s : Array.isArray(o) ? o : [];
1839
1839
  }
1840
1840
  async function rr(e) {
1841
- return t(i, R, {
1841
+ return n(r, R, {
1842
1842
  method: "POST",
1843
1843
  headers: { "Content-Type": "application/json" },
1844
1844
  body: JSON.stringify(e)
1845
1845
  });
1846
1846
  }
1847
- async function ir(e, n) {
1848
- return t(i, `${R}/${e}`, {
1847
+ async function ir(e, t) {
1848
+ return n(r, `${R}/${e}`, {
1849
1849
  method: "PUT",
1850
1850
  headers: { "Content-Type": "application/json" },
1851
- body: JSON.stringify(n)
1851
+ body: JSON.stringify(t)
1852
1852
  });
1853
1853
  }
1854
1854
  async function ar(e) {
1855
- return t(i, `${R}/${e}`, { method: "DELETE" });
1855
+ return n(r, `${R}/${e}`, { method: "DELETE" });
1856
1856
  }
1857
1857
  var z = "/admin/row-action-config";
1858
1858
  function or(e) {
1859
1859
  return String(e ?? "").trim().toLowerCase();
1860
1860
  }
1861
1861
  async function sr(e = "") {
1862
- let n = or(e), r = await t(i, n ? `${z}?module=${encodeURIComponent(n)}` : z), a = r?.data;
1863
- return Array.isArray(a) ? a : Array.isArray(r) ? r : [];
1862
+ let t = or(e), i = await n(r, t ? `${z}?module=${encodeURIComponent(t)}` : z), a = i?.data;
1863
+ return Array.isArray(a) ? a : Array.isArray(i) ? i : [];
1864
1864
  }
1865
- async function cr({ module: e, roleId: n = 0, rowActions: r = [] }) {
1865
+ async function cr({ module: e, roleId: t = 0, rowActions: i = [] }) {
1866
1866
  let a = or(e);
1867
- return t(i, z, {
1867
+ return n(r, z, {
1868
1868
  method: "POST",
1869
1869
  headers: { "Content-Type": "application/json" },
1870
1870
  body: JSON.stringify({
1871
1871
  module: a,
1872
- roleId: n,
1873
- rowActions: r
1872
+ roleId: t,
1873
+ rowActions: i
1874
1874
  })
1875
1875
  });
1876
1876
  }
1877
- async function lr(e, n = []) {
1878
- return t(i, `${z}/${e}`, {
1877
+ async function lr(e, t = []) {
1878
+ return n(r, `${z}/${e}`, {
1879
1879
  method: "PUT",
1880
1880
  headers: { "Content-Type": "application/json" },
1881
- body: JSON.stringify({ rowActions: n })
1881
+ body: JSON.stringify({ rowActions: t })
1882
1882
  });
1883
1883
  }
1884
1884
  async function ur(e) {
1885
- return t(i, `${z}/${e}`, { method: "DELETE" });
1885
+ return n(r, `${z}/${e}`, { method: "DELETE" });
1886
1886
  }
1887
1887
  var B = "/admin/module-action-rules";
1888
1888
  async function dr(e) {
1889
- let n = await t(i, `${B}?module=${encodeURIComponent(e)}`), r = n?.data;
1890
- return Array.isArray(r) ? r : Array.isArray(n) ? n : [];
1889
+ let t = await n(r, `${B}?module=${encodeURIComponent(e)}`), i = t?.data;
1890
+ return Array.isArray(i) ? i : Array.isArray(t) ? t : [];
1891
1891
  }
1892
- async function fr({ module: e, name: n, description: r = "", conditions: a = [], blockedActions: o = [], disabledActions: s = [], isActive: c = !0 }) {
1893
- return t(i, B, {
1892
+ async function fr({ module: e, name: t, description: i = "", conditions: a = [], blockedActions: o = [], disabledActions: s = [], isActive: c = !0 }) {
1893
+ return n(r, B, {
1894
1894
  method: "POST",
1895
1895
  headers: { "Content-Type": "application/json" },
1896
1896
  body: JSON.stringify({
1897
1897
  module: e,
1898
- name: n,
1899
- description: r,
1898
+ name: t,
1899
+ description: i,
1900
1900
  conditions: a,
1901
1901
  blockedActions: o,
1902
1902
  disabledActions: s,
@@ -1904,13 +1904,13 @@ async function fr({ module: e, name: n, description: r = "", conditions: a = [],
1904
1904
  })
1905
1905
  });
1906
1906
  }
1907
- async function pr(e, { name: n, description: r = "", conditions: a = [], blockedActions: o = [], disabledActions: s = [], isActive: c = !0 }) {
1908
- return t(i, `${B}/${e}`, {
1907
+ async function pr(e, { name: t, description: i = "", conditions: a = [], blockedActions: o = [], disabledActions: s = [], isActive: c = !0 }) {
1908
+ return n(r, `${B}/${e}`, {
1909
1909
  method: "PUT",
1910
1910
  headers: { "Content-Type": "application/json" },
1911
1911
  body: JSON.stringify({
1912
- name: n,
1913
- description: r,
1912
+ name: t,
1913
+ description: i,
1914
1914
  conditions: a,
1915
1915
  blockedActions: o,
1916
1916
  disabledActions: s,
@@ -1919,55 +1919,55 @@ async function pr(e, { name: n, description: r = "", conditions: a = [], blocked
1919
1919
  });
1920
1920
  }
1921
1921
  async function mr(e) {
1922
- return t(i, `${B}/${e}`, { method: "DELETE" });
1922
+ return n(r, `${B}/${e}`, { method: "DELETE" });
1923
1923
  }
1924
1924
  //#endregion
1925
1925
  //#region src/services/detailedViewApi.js
1926
1926
  var hr = {
1927
- job: { fetchUrl: (t) => `${e}/edit/detailed-view/${encodeURIComponent(t)}` },
1927
+ job: { fetchUrl: (e) => `${t}/edit/detailed-view/${encodeURIComponent(e)}` },
1928
1928
  candidates: { fetchUrl: (e) => `${o}/edit/detailed-view?_id=${encodeURIComponent(e)}` },
1929
- submission: { fetchUrl: (e) => `${a}/edit/detailed-view?_id=${encodeURIComponent(e)}` }
1929
+ submission: { fetchUrl: (t) => `${e}/edit/detailed-view?_id=${encodeURIComponent(t)}` }
1930
1930
  };
1931
- async function gr(e, n) {
1932
- let r = String(e ?? "").trim().toLowerCase();
1933
- if (r === "job" || r === "jobs") {
1931
+ async function gr(e, t) {
1932
+ let i = String(e ?? "").trim().toLowerCase();
1933
+ if (i === "job" || i === "jobs") {
1934
1934
  let { getJobDetailView: e } = await import("./index.js").then((e) => e.r);
1935
- return e(n);
1935
+ return e(t);
1936
1936
  }
1937
- return t(i, `/module-data-detail?${new URLSearchParams({
1937
+ return n(r, `/module-data-detail?${new URLSearchParams({
1938
1938
  module: String(e ?? ""),
1939
- id: String(n)
1939
+ id: String(t)
1940
1940
  }).toString()}`);
1941
1941
  }
1942
1942
  async function _r(e) {
1943
- let n = await t(i, `/module-actions?module=${encodeURIComponent(e)}`), r = n?.data ?? n ?? {};
1943
+ let t = await n(r, `/module-actions?module=${encodeURIComponent(e)}`), i = t?.data ?? t ?? {};
1944
1944
  return {
1945
- actions: Array.isArray(r.actions) ? r.actions : [],
1946
- actionRules: Array.isArray(r.actionRules) ? r.actionRules : []
1945
+ actions: Array.isArray(i.actions) ? i.actions : [],
1946
+ actionRules: Array.isArray(i.actionRules) ? i.actionRules : []
1947
1947
  };
1948
1948
  }
1949
1949
  async function vr(e, t) {
1950
1950
  if (!e) throw Error("module is required");
1951
1951
  if (!t) throw Error("id is required");
1952
- let r = hr[e];
1953
- if (!r) throw Error(`No edit config for module: ${e}`);
1954
- let i = await n(), a = await fetch(r.fetchUrl(t), {
1952
+ let n = hr[e];
1953
+ if (!n) throw Error(`No edit config for module: ${e}`);
1954
+ let r = await i(), a = await fetch(n.fetchUrl(t), {
1955
1955
  method: "GET",
1956
1956
  headers: {
1957
1957
  "Content-Type": "application/json",
1958
- Authorization: `Bearer ${i}`
1958
+ Authorization: `Bearer ${r}`
1959
1959
  }
1960
1960
  });
1961
1961
  if (!a.ok) throw Error(`API ${a.status}: ${a.statusText}`);
1962
1962
  let o = await a.json();
1963
1963
  return o.data ?? o;
1964
1964
  }
1965
- async function yr(e, t, r, a = []) {
1965
+ async function yr(e, t, n, a = []) {
1966
1966
  if (!e) throw Error("module is required");
1967
1967
  if (!t) throw Error("id is required");
1968
- let o = await n(), s = new FormData();
1969
- s.append("json", JSON.stringify(r)), (a ?? []).forEach(({ formKey: e, file: t }) => s.append(e, t));
1970
- let c = await fetch(`${i}/module/update/${encodeURIComponent(t)}?module=${encodeURIComponent(e)}`, {
1968
+ let o = await i(), s = new FormData();
1969
+ s.append("json", JSON.stringify(n)), (a ?? []).forEach(({ formKey: e, file: t }) => s.append(e, t));
1970
+ let c = await fetch(`${r}/module/update/${encodeURIComponent(t)}?module=${encodeURIComponent(e)}`, {
1971
1971
  method: "PUT",
1972
1972
  headers: { Authorization: `Bearer ${o}` },
1973
1973
  body: s
@@ -1980,26 +1980,26 @@ async function yr(e, t, r, a = []) {
1980
1980
  return l.data ?? l;
1981
1981
  }
1982
1982
  var br = (e) => e?.data ?? e;
1983
- async function xr(e, n) {
1984
- if (!e || !n) return [];
1985
- let r = br(await t(i, `/module-activity?${new URLSearchParams({
1983
+ async function xr(e, t) {
1984
+ if (!e || !t) return [];
1985
+ let i = br(await n(r, `/module-activity?${new URLSearchParams({
1986
1986
  module: e,
1987
- id: String(n)
1987
+ id: String(t)
1988
1988
  }).toString()}`));
1989
- return Array.isArray(r) ? r : [];
1989
+ return Array.isArray(i) ? i : [];
1990
1990
  }
1991
1991
  async function Sr(e) {
1992
1992
  if (!e) return [];
1993
- let n = br(await t(i, `/notes?relatedId=${encodeURIComponent(e)}`));
1994
- return Array.isArray(n) ? n : [];
1993
+ let t = br(await n(r, `/notes?relatedId=${encodeURIComponent(e)}`));
1994
+ return Array.isArray(t) ? t : [];
1995
1995
  }
1996
- async function Cr({ relatedId: e, notes: n, title: r, notesFor: a }) {
1997
- return br(await t(i, "/notes", {
1996
+ async function Cr({ relatedId: e, notes: t, title: i, notesFor: a }) {
1997
+ return br(await n(r, "/notes", {
1998
1998
  method: "POST",
1999
1999
  body: JSON.stringify({
2000
2000
  relatedId: e,
2001
- notes: n,
2002
- title: r,
2001
+ notes: t,
2002
+ title: i,
2003
2003
  notesFor: a
2004
2004
  })
2005
2005
  }));
@@ -2744,22 +2744,22 @@ function zi(e, t = {}) {
2744
2744
  }
2745
2745
  //#endregion
2746
2746
  //#region src/services/aiActionApi.js
2747
- async function Bi({ module: e, group: t, field: r, actionKey: a, inputs: o = {}, files: s = {} }) {
2748
- if (!e || !t || !r || !a) throw Error("module, group, field and actionKey are required to run an AI action");
2749
- let c = await n(), l = new FormData();
2747
+ async function Bi({ module: e, group: t, field: n, actionKey: a, inputs: o = {}, files: s = {} }) {
2748
+ if (!e || !t || !n || !a) throw Error("module, group, field and actionKey are required to run an AI action");
2749
+ let c = await i(), l = new FormData();
2750
2750
  l.append("json", JSON.stringify({ inputs: o })), Object.entries(s).forEach(([e, t]) => {
2751
2751
  t && l.append(e, t);
2752
2752
  });
2753
2753
  let u = new URLSearchParams({
2754
2754
  module: e,
2755
2755
  group: t,
2756
- field: r,
2756
+ field: n,
2757
2757
  action: a
2758
- }), d = await fetch(`${i}/ai-action?${u.toString()}`, {
2758
+ }), d = await fetch(`${r}/ai-action?${u.toString()}`, {
2759
2759
  method: "POST",
2760
2760
  headers: { Authorization: `Bearer ${c}` },
2761
2761
  body: l
2762
- }), { logout: f } = await import("./authApi-CZg3yPl9.js");
2762
+ }), { logout: f } = await import("./authApi-ex9uiaZ4.js");
2763
2763
  d.status === 401 && f();
2764
2764
  let p = (d.headers.get("content-type") || "").includes("application/json") ? await d.json() : await d.text();
2765
2765
  if (!d.ok) {
@@ -3663,4 +3663,4 @@ function Qa({ items: e = [] }) {
3663
3663
  //#endregion
3664
3664
  export { Ar as $, fn as $t, Li as A, lr as An, mn as At, Pi as B, A as Bn, Gt as Bt, ca as C, ir as Cn, Ln as Ct, Ui as D, In as Dn, Lt as Dt, Vi as E, pr as En, Nn as Et, Fi as F, xt as Fn, Nt as Ft, Ir as G, D as Gn, un as Gt, _i as H, at as Hn, jn as Ht, ki as I, bt as In, tn as It, Mr as J, Xn as Jt, Pr as K, E as Kn, Rn as Kt, ci as L, pt as Ln, rn as Lt, zi as M, On as Mn, kn as Mt, Y as N, Mn as Nn, Gn as Nt, X as O, Cn as On, It as Ot, Ai as P, Hn as Pn, Un as Pt, Or as Q, Bn as Qt, W as R, mt as Rn, Wn as Rt, la as S, Bt as Sn, mr as St, Hi as T, Jn as Tn, ur as Tt, Qr as U, ze as Un, on as Ut, vi as V, ot as Vn, Jt as Vt, Fr as W, Le as Wn, an as Wt, Er as X, dr as Xt, jr as Y, Kn as Yt, Nr as Z, Ot as Zt, Ta as _, Vn as _n, $t as _t, qa as a, er as an, vr as at, va as b, An as bn, $n as bt, Va as c, Pn as cn, dn as ct, Ba as d, Qt as dn, Zn as dt, Rt as en, Cr as et, Ra as f, nn as fn, qn as ft, Ea as g, Mt as gn, Vt as gt, Ca as h, sn as hn, cr as ht, Xa as i, bn as in, Sr as it, Ri as j, vn as jn, _n as jt, ta as k, tr as kn, Zt as kt, Ha as l, kt as ln, zt as lt, Ma as m, Yt as mn, Fn as mt, Za as n, En as nn, _r as nt, Ka as o, sr as on, yr as ot, Aa as p, Kt as pn, fr as pt, wr as q, zn as qt, Ya as r, L as rn, gr as rt, Ga as s, xn as sn, Ut as st, Qa as t, Dt as tn, xr as tt, za as u, Ht as un, rr as ut, Sa as v, At as vn, ar as vt, ia as w, Qn as wn, jt as wt, ya as x, ln as xn, Yn as xt, ba as y, Dn as yn, cn as yt, wi as z, ht as zn, nr as zt };
3665
3665
 
3666
- //# sourceMappingURL=Breadcrumb-Ctv5bKNw.js.map
3666
+ //# sourceMappingURL=Breadcrumb-BfBZgTax.js.map