@realtek/core-theme-live 0.0.387 → 0.0.388

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/index.js CHANGED
@@ -13409,8 +13409,8 @@ function Ix(e, t) {
13409
13409
  }
13410
13410
  return [];
13411
13411
  }
13412
- function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToken: i, onAction: a, onTabChange: o, onHeaderData: s, hideActions: c = !1, defaultTab: l, refreshKey: u = 0 }) {
13413
- let d = Rs(), f = Ls(), [p, h] = L([]), [g, _] = L([]), [v, y] = L([]), [b, S] = L(!1), [w, T] = L([]), [E, D] = L(0), O = n || e;
13412
+ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToken: i, onAction: a, onTabChange: o, onHeaderData: s, onRecordLoaded: c, hideActions: l = !1, defaultTab: u, refreshKey: d = 0 }) {
13413
+ let f = Rs(), p = Ls(), [h, g] = L([]), [_, v] = L([]), [y, b] = L([]), [S, w] = L(!1), [T, E] = L([]), [D, O] = L(0), A = n || e;
13414
13414
  F(() => (i && m(i), () => {
13415
13415
  i && C();
13416
13416
  }), [i]), F(() => {
@@ -13424,15 +13424,15 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13424
13424
  id: t,
13425
13425
  view: "detail"
13426
13426
  }),
13427
- pi(O).catch(() => ({
13427
+ pi(A).catch(() => ({
13428
13428
  actions: [],
13429
13429
  actionRules: []
13430
13430
  })),
13431
13431
  ee()
13432
13432
  ]);
13433
- n || (h(Array.isArray(r) ? r : []), _(i.actions ?? []), y(i.actionRules ?? []));
13433
+ n || (g(Array.isArray(r) ? r : []), v(i.actions ?? []), b(i.actionRules ?? []));
13434
13434
  } catch (t) {
13435
- console.error(`Failed to fetch ${e} header fields:`, t), n || (h([]), _([]), y([]));
13435
+ console.error(`Failed to fetch ${e} header fields:`, t), n || (g([]), v([]), b([]));
13436
13436
  }
13437
13437
  }
13438
13438
  return r(), () => {
@@ -13440,15 +13440,15 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13440
13440
  };
13441
13441
  }, [
13442
13442
  e,
13443
- O,
13443
+ A,
13444
13444
  t,
13445
- u,
13446
- E
13445
+ d,
13446
+ D
13447
13447
  ]);
13448
- let [A, j] = L({
13448
+ let [j, te] = L({
13449
13449
  signature: "",
13450
13450
  groups: {}
13451
- }), te = xb(r);
13451
+ }), M = xb(r);
13452
13452
  F(() => {
13453
13453
  let e = bb(r);
13454
13454
  if (!e.length) return;
@@ -13461,89 +13461,93 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13461
13461
  }).catch(() => []);
13462
13462
  return [e.key, Array.isArray(t) ? t : []];
13463
13463
  })).then((e) => {
13464
- t || j({
13465
- signature: te,
13464
+ t || te({
13465
+ signature: M,
13466
13466
  groups: Object.fromEntries(e)
13467
13467
  });
13468
13468
  }).catch(() => {
13469
- t || j({
13470
- signature: te,
13469
+ t || te({
13470
+ signature: M,
13471
13471
  groups: {}
13472
13472
  });
13473
13473
  }), () => {
13474
13474
  t = !0;
13475
13475
  };
13476
- }, [te, u]);
13477
- let M = I(() => Cb(A.signature === te ? A.groups : {}), [A, te]), ne = I(() => pb(O, p, { aux: M }), [
13478
- O,
13479
- p,
13480
- M
13476
+ }, [M, d]);
13477
+ let ne = I(() => Cb(j.signature === M ? j.groups : {}), [j, M]), N = I(() => pb(A, h, { aux: ne }), [
13478
+ A,
13479
+ h,
13480
+ ne
13481
13481
  ]);
13482
13482
  F(() => {
13483
- ne && s && s(ne);
13484
- }, [ne]);
13485
- let { eyebrow: N, title: ie = "-", status: ae, titleIds: oe = [], meta: P = [], ids: se = [], tabs: ce = [], stats: le = [], timestamp: ue = null } = ne ?? {}, { canAdd: de, canEdit: fe, canDelete: pe } = Nd(e), me = I(() => Ox(p, t), [p, t]), he = W_(ce, {
13483
+ N && s && s(N);
13484
+ }, [N]);
13485
+ let { eyebrow: ie, title: ae = "-", status: oe, titleIds: P = [], meta: se = [], ids: ce = [], tabs: le = [], stats: ue = [], timestamp: de = null } = N ?? {}, { canAdd: fe, canEdit: pe, canDelete: me } = Nd(e), he = I(() => Ox(h, t), [h, t]);
13486
+ F(() => {
13487
+ he && c && c(he);
13488
+ }, [he]);
13489
+ let ge = W_(le, {
13486
13490
  id: t,
13487
13491
  moduleName: e,
13488
- record: me
13489
- }), ge = fb(O)?.resolveScope, [_e, ve] = L(void 0);
13492
+ record: he
13493
+ }), _e = fb(A)?.resolveScope, [ve, ye] = L(void 0);
13490
13494
  F(() => {
13491
- if (typeof ge != "function" || !t) return;
13495
+ if (typeof _e != "function" || !t) return;
13492
13496
  let n = !1, r = Number(localStorage.getItem("userId")) || 0;
13493
- return Promise.resolve().then(() => ge({
13497
+ return Promise.resolve().then(() => _e({
13494
13498
  id: t,
13495
13499
  moduleName: e,
13496
- record: me,
13500
+ record: he,
13497
13501
  currentUserId: r
13498
13502
  })).then((e) => {
13499
- n || ve(e ?? null);
13503
+ n || ye(e ?? null);
13500
13504
  }).catch(() => {
13501
- n || ve(null);
13505
+ n || ye(null);
13502
13506
  }), () => {
13503
13507
  n = !0;
13504
13508
  };
13505
13509
  }, [
13506
- ge,
13510
+ _e,
13507
13511
  t,
13508
13512
  e,
13509
- p
13513
+ h
13510
13514
  ]);
13511
- let ye = typeof ge != "function" || _e !== void 0, be = I(() => ye ? g.filter((e) => e.showInDetail ?? e.showInList).map(Fx).filter((e) => !Nx(e, me, v, _e ?? void 0)) : [], [
13512
- v,
13513
- g,
13514
- me,
13515
- _e,
13516
- ye
13515
+ let be = typeof _e != "function" || ve !== void 0, xe = I(() => be ? _.filter((e) => e.showInDetail ?? e.showInList).map(Fx).filter((e) => !Nx(e, he, y, ve ?? void 0)) : [], [
13516
+ y,
13517
+ _,
13518
+ he,
13519
+ ve,
13520
+ be
13517
13521
  ]);
13518
- function xe(e) {
13522
+ function Se(e) {
13519
13523
  let t = Fd(e);
13520
- if (t === "add" && !de || t === "edit" && !fe || t === "delete" && !pe || !Ft(e.permission, O)) return !1;
13524
+ if (t === "add" && !fe || t === "edit" && !pe || t === "delete" && !me || !Ft(e.permission, A)) return !1;
13521
13525
  if (e.permissionKey) {
13522
- let t = jx(me, `actionPermission.${e.permissionKey}`);
13526
+ let t = jx(he, `actionPermission.${e.permissionKey}`);
13523
13527
  if (t === !1 || t === 0 || t === "0") return !1;
13524
13528
  }
13525
13529
  return !0;
13526
13530
  }
13527
- let [Se, Ce] = L({
13528
- sourceDefaultTab: l,
13529
- selectedTab: l
13530
- }), we = Se.sourceDefaultTab === l ? Se.selectedTab : l, Te = he.some((e) => e.key === we) ? we : he[0]?.key, Ee = new Set(he.map((e) => Mx(e.key))), De = (e) => {
13531
+ let [Ce, we] = L({
13532
+ sourceDefaultTab: u,
13533
+ selectedTab: u
13534
+ }), Te = Ce.sourceDefaultTab === u ? Ce.selectedTab : u, Ee = ge.some((e) => e.key === Te) ? Te : ge[0]?.key, De = new Set(ge.map((e) => Mx(e.key))), Oe = (e) => {
13531
13535
  let t = e.allowedTabs ?? [];
13532
- return !t.length || t.some((e) => Mx(e) === Mx(Te)) || _e && t.some((e) => Mx(e) === Mx(_e)) ? !0 : !t.some((e) => Ee.has(Mx(e))) && !_e;
13533
- }, Oe = be.filter((e) => e.detailPlacement === "primary" && xe(e) && De(e)), ke = be.filter((e) => e.detailPlacement !== "primary" && xe(e) && De(e));
13534
- if (!ne) return null;
13535
- let Ae = (n) => {
13536
- let r = [...Oe, ...ke].find((e) => e.key === n);
13536
+ return !t.length || t.some((e) => Mx(e) === Mx(Ee)) || ve && t.some((e) => Mx(e) === Mx(ve)) ? !0 : !t.some((e) => De.has(Mx(e))) && !ve;
13537
+ }, ke = xe.filter((e) => e.detailPlacement === "primary" && Se(e) && Oe(e)), Ae = xe.filter((e) => e.detailPlacement !== "primary" && Se(e) && Oe(e));
13538
+ if (!N) return null;
13539
+ let je = (n) => {
13540
+ let r = [...ke, ...Ae].find((e) => e.key === n);
13537
13541
  if (r?.actionType === "document" && r.documentField) {
13538
- let n = Ix(p, r.documentField);
13542
+ let n = Ix(h, r.documentField);
13539
13543
  if (n.length > 0 && n.every((e) => !e.needsAuthFetch)) {
13540
- T(n), S(!0);
13544
+ E(n), w(!0);
13541
13545
  return;
13542
13546
  }
13543
13547
  if (n.length) {
13544
- let i = r.documentModule || e, a = r.documentIdField ? jx(me, r.documentIdField) : t;
13548
+ let i = r.documentModule || e, a = r.documentIdField ? jx(he, r.documentIdField) : t;
13545
13549
  if (i && a) {
13546
- T(n.map((e) => ({
13550
+ E(n.map((e) => ({
13547
13551
  ...e,
13548
13552
  url: "",
13549
13553
  authSource: e.documentId ? { documentId: e.documentId } : {
@@ -13551,36 +13555,36 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13551
13555
  refId: a,
13552
13556
  fieldName: r.documentField
13553
13557
  }
13554
- }))), S(!0);
13558
+ }))), w(!0);
13555
13559
  return;
13556
13560
  }
13557
13561
  }
13558
- let i = r.documentModule || e, a = r.documentIdField ? jx(me, r.documentIdField) : t;
13562
+ let i = r.documentModule || e, a = r.documentIdField ? jx(he, r.documentIdField) : t;
13559
13563
  re(i, a, r.documentField).then((e) => {
13560
13564
  let t = (e?.data ?? []).map((e) => ({
13561
13565
  name: e.fileName || e.name || e.uploadedFileName || r.documentField,
13562
13566
  url: e.fileUrl || e.url || "",
13563
13567
  type: "file"
13564
13568
  })).filter((e) => e.url);
13565
- t.length ? (T(t), S(!0)) : q.warning(`No ${(r.label || "document").toLowerCase()} available`);
13569
+ t.length ? (E(t), w(!0)) : q.warning(`No ${(r.label || "document").toLowerCase()} available`);
13566
13570
  }).catch(() => q.warning(`No ${(r.label || "document").toLowerCase()} available`));
13567
13571
  return;
13568
13572
  }
13569
13573
  if (r?.actionType === "copy") {
13570
- let e = jx(me, r.copyField || "id");
13574
+ let e = jx(he, r.copyField || "id");
13571
13575
  navigator.clipboard.writeText(kx(e)).then(() => q.success("Copied to clipboard")).catch(() => q.error("Could not copy to clipboard"));
13572
13576
  return;
13573
13577
  }
13574
13578
  if (r?.actionType === "api" && r.apiPath) {
13575
- let i = Ax(r.apiPath, me), o = String(r.apiMethod || "POST").toUpperCase();
13579
+ let i = Ax(r.apiPath, he), o = String(r.apiMethod || "POST").toUpperCase();
13576
13580
  x(k, i.startsWith("/") ? i : `/${i}`, {
13577
13581
  method: o,
13578
13582
  body: ["GET", "DELETE"].includes(o) ? void 0 : JSON.stringify({
13579
13583
  ids: [t],
13580
- record: me
13584
+ record: he
13581
13585
  })
13582
13586
  }).then(() => {
13583
- q.success(`${r.label} completed`), D((e) => e + 1), a?.(n, {
13587
+ q.success(`${r.label} completed`), O((e) => e + 1), a?.(n, {
13584
13588
  moduleName: e,
13585
13589
  id: t,
13586
13590
  action: r,
@@ -13590,16 +13594,16 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13590
13594
  return;
13591
13595
  }
13592
13596
  if (r?.route) {
13593
- let n = typeof r.route == "function" ? r.route(t) : Ax(r.route, Ox(p, t));
13597
+ let n = typeof r.route == "function" ? r.route(t) : Ax(r.route, Ox(h, t));
13594
13598
  if (r.linkTarget === "_blank") {
13595
13599
  window.open(n, "_blank", "noopener");
13596
13600
  return;
13597
13601
  }
13598
- n.startsWith("/popup/") ? d(n, { state: {
13599
- background: f,
13602
+ n.startsWith("/popup/") ? f(n, { state: {
13603
+ background: p,
13600
13604
  moduleName: e,
13601
13605
  selectedIds: [t],
13602
- selectedRecords: [me],
13606
+ selectedRecords: [he],
13603
13607
  popupContext: r.popupState ?? {},
13604
13608
  popupAction: {
13605
13609
  key: r.key,
@@ -13610,7 +13614,7 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13610
13614
  requireJobId: r.requireJobId
13611
13615
  },
13612
13616
  ...r.popupState
13613
- } }) : d(n);
13617
+ } }) : f(n);
13614
13618
  return;
13615
13619
  }
13616
13620
  a?.(n, {
@@ -13618,37 +13622,37 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13618
13622
  id: t,
13619
13623
  action: r
13620
13624
  });
13621
- }, je = (n) => {
13622
- Ce({
13623
- sourceDefaultTab: l,
13625
+ }, Me = (n) => {
13626
+ we({
13627
+ sourceDefaultTab: u,
13624
13628
  selectedTab: n
13625
13629
  }), o?.(n, {
13626
13630
  moduleName: e,
13627
13631
  id: t
13628
13632
  });
13629
- }, Me = ke.map((e) => {
13630
- let t = Xd(e, me, _e ?? void 0), n = !t && Px(e, me, v, _e ?? void 0);
13633
+ }, Ne = Ae.map((e) => {
13634
+ let t = Xd(e, he, ve ?? void 0), n = !t && Px(e, he, y, ve ?? void 0);
13631
13635
  return {
13632
13636
  key: e.key,
13633
13637
  label: t ? t.label : e.label,
13634
13638
  danger: e.danger,
13635
13639
  disabled: !!t || !!n,
13636
13640
  title: n || void 0,
13637
- onClick: t || n ? void 0 : () => Ae(e.key)
13641
+ onClick: t || n ? void 0 : () => je(e.key)
13638
13642
  };
13639
- }), Ne = fb(O)?.header;
13640
- if (Ne?.variant === "finance") {
13643
+ }), Pe = fb(A)?.header;
13644
+ if (Pe?.variant === "finance") {
13641
13645
  let t = (e) => e == null ? "" : Array.isArray(e) ? e.map(t).filter(Boolean).join(", ") : String(typeof e == "object" ? e.value ?? e.label ?? e.name ?? e.id ?? "" : e), n = {};
13642
- for (let e of p ?? []) for (let t of e.fields ?? []) t?.field != null && (n[t.field] = t.value);
13643
- let r = (e) => t(n[e]), i = r(Ne.statusField), a = (Ne.chips ?? []).map((e) => ({
13646
+ for (let e of h ?? []) for (let t of e.fields ?? []) t?.field != null && (n[t.field] = t.value);
13647
+ let r = (e) => t(n[e]), i = r(Pe.statusField), a = (Pe.chips ?? []).map((e) => ({
13644
13648
  key: e.field,
13645
13649
  icon: e.icon ? Tx[e.icon] : void 0,
13646
13650
  label: e.label,
13647
13651
  value: r(e.field) || "—",
13648
13652
  badge: e.badgeField && r(e.badgeField) || void 0,
13649
13653
  tooltip: e.tooltip
13650
- })), o = c ? [] : Oe.map((e) => {
13651
- let t = Xd(e, me, _e ?? void 0), n = !t && Px(e, me, v, _e ?? void 0);
13654
+ })), o = l ? [] : ke.map((e) => {
13655
+ let t = Xd(e, he, ve ?? void 0), n = !t && Px(e, he, y, ve ?? void 0);
13652
13656
  return {
13653
13657
  key: e.key,
13654
13658
  label: t ? t.label : e.label,
@@ -13656,7 +13660,7 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13656
13660
  enabled: !t && !n,
13657
13661
  variant: e.tone,
13658
13662
  disabledReason: n || void 0,
13659
- onClick: t || n ? void 0 : () => Ae(e.key)
13663
+ onClick: t || n ? void 0 : () => je(e.key)
13660
13664
  };
13661
13665
  }), s = i ? zb(e, i) : [];
13662
13666
  return /* @__PURE__ */ X("div", {
@@ -13667,7 +13671,7 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13667
13671
  children: [/* @__PURE__ */ X("div", {
13668
13672
  className: "fin-dh__identity",
13669
13673
  children: [/* @__PURE__ */ Y(gx, {
13670
- name: ie,
13674
+ name: ae,
13671
13675
  size: "lg"
13672
13676
  }), /* @__PURE__ */ X("div", {
13673
13677
  className: "fin-dh__who",
@@ -13675,11 +13679,11 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13675
13679
  className: "fin-dh__name-row",
13676
13680
  children: [/* @__PURE__ */ Y("h2", {
13677
13681
  className: "fin-dh__name",
13678
- children: ie || "Details"
13682
+ children: ae || "Details"
13679
13683
  }), i ? /* @__PURE__ */ Y(nx, { status: i }) : null]
13680
- }), N ? /* @__PURE__ */ Y("span", {
13684
+ }), ie ? /* @__PURE__ */ Y("span", {
13681
13685
  className: "fin-dh__designation",
13682
- children: N
13686
+ children: ie
13683
13687
  }) : null]
13684
13688
  })]
13685
13689
  }), o.length ? /* @__PURE__ */ Y("div", {
@@ -13717,18 +13721,18 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13717
13721
  children: [/* @__PURE__ */ X("div", {
13718
13722
  className: "znx-dh-left",
13719
13723
  children: [
13720
- N && /* @__PURE__ */ Y("div", {
13724
+ ie && /* @__PURE__ */ Y("div", {
13721
13725
  className: "znx-dh-eyebrow",
13722
- children: N
13726
+ children: ie
13723
13727
  }),
13724
13728
  /* @__PURE__ */ X("div", {
13725
13729
  className: "znx-dh-titlerow",
13726
13730
  children: [
13727
13731
  /* @__PURE__ */ Y("span", {
13728
13732
  className: "znx-dh-title",
13729
- children: ie
13733
+ children: ae
13730
13734
  }),
13731
- oe.map((e) => /* @__PURE__ */ X("span", {
13735
+ P.map((e) => /* @__PURE__ */ X("span", {
13732
13736
  className: "znx-dh-titleid",
13733
13737
  children: [
13734
13738
  /* @__PURE__ */ X("span", {
@@ -13739,21 +13743,21 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13739
13743
  e.value
13740
13744
  ]
13741
13745
  }, e.label)),
13742
- ae && /* @__PURE__ */ Y(G, {
13743
- color: ae.color,
13746
+ oe && /* @__PURE__ */ Y(G, {
13747
+ color: oe.color,
13744
13748
  className: "znx-dh-status",
13745
13749
  style: {
13746
- backgroundColor: ae.backgroundColor ?? ae.color,
13747
- borderColor: ae.backgroundColor ?? ae.color,
13748
- color: ae.textColor
13750
+ backgroundColor: oe.backgroundColor ?? oe.color,
13751
+ borderColor: oe.backgroundColor ?? oe.color,
13752
+ color: oe.textColor
13749
13753
  },
13750
- children: ae.label
13754
+ children: oe.label
13751
13755
  })
13752
13756
  ]
13753
13757
  }),
13754
- se.length > 0 && /* @__PURE__ */ Y("div", {
13758
+ ce.length > 0 && /* @__PURE__ */ Y("div", {
13755
13759
  className: "znx-dh-ids",
13756
- children: se.map((e) => /* @__PURE__ */ X("span", {
13760
+ children: ce.map((e) => /* @__PURE__ */ X("span", {
13757
13761
  className: "znx-dh-id",
13758
13762
  children: [
13759
13763
  /* @__PURE__ */ X("span", {
@@ -13765,10 +13769,10 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13765
13769
  ]
13766
13770
  }, e.label))
13767
13771
  }),
13768
- P.length > 0 && /* @__PURE__ */ Y("div", {
13772
+ se.length > 0 && /* @__PURE__ */ Y("div", {
13769
13773
  className: "znx-dh-meta",
13770
- children: P.map((e, t) => {
13771
- let n = yb(e, (e) => jx(me, e) ?? me?.[e]);
13774
+ children: se.map((e, t) => {
13775
+ let n = yb(e, (e) => jx(he, e) ?? he?.[e]);
13772
13776
  return /* @__PURE__ */ X("span", {
13773
13777
  className: "znx-dh-meta-item",
13774
13778
  children: [n.icon && Tx[n.icon] && /* @__PURE__ */ Y("span", {
@@ -13787,28 +13791,28 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13787
13791
  })
13788
13792
  })
13789
13793
  ]
13790
- }), !c && /* @__PURE__ */ X("div", {
13794
+ }), !l && /* @__PURE__ */ X("div", {
13791
13795
  className: "znx-dh-actions-col",
13792
13796
  children: [
13793
13797
  /* @__PURE__ */ X("div", {
13794
13798
  className: "znx-dh-actions",
13795
- children: [Oe.map((e) => {
13796
- let t = Xd(e, me, _e ?? void 0), n = !t && Px(e, me, v, _e ?? void 0), r = /* @__PURE__ */ Y(R, {
13799
+ children: [ke.map((e) => {
13800
+ let t = Xd(e, he, ve ?? void 0), n = !t && Px(e, he, y, ve ?? void 0), r = /* @__PURE__ */ Y(R, {
13797
13801
  type: "text",
13798
13802
  disabled: !!t || !!n,
13799
13803
  className: `znx-dh-btn znx-dh-btn--${t ? t.tone : e.tone ?? "primary"}${t ? " znx-dh-btn--done" : ""}`,
13800
13804
  icon: t ? /* @__PURE__ */ Y(Ga, {}) : e.icon ? Tx[e.icon] : void 0,
13801
- onClick: t || n ? void 0 : () => Ae(e.key),
13805
+ onClick: t || n ? void 0 : () => je(e.key),
13802
13806
  children: t ? t.label : e.label
13803
13807
  }, e.key);
13804
13808
  return n ? /* @__PURE__ */ Y(K, {
13805
13809
  title: n,
13806
13810
  children: /* @__PURE__ */ Y("span", { children: r })
13807
13811
  }, e.key) : r;
13808
- }), ke.length > 0 && /* @__PURE__ */ Y(na, {
13812
+ }), Ae.length > 0 && /* @__PURE__ */ Y(na, {
13809
13813
  trigger: ["click"],
13810
13814
  placement: "bottomRight",
13811
- menu: { items: Me },
13815
+ menu: { items: Ne },
13812
13816
  children: /* @__PURE__ */ Y(R, {
13813
13817
  type: "text",
13814
13818
  className: "znx-dh-more",
@@ -13816,9 +13820,9 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13816
13820
  })
13817
13821
  })]
13818
13822
  }),
13819
- le.length > 0 && /* @__PURE__ */ Y("div", {
13823
+ ue.length > 0 && /* @__PURE__ */ Y("div", {
13820
13824
  className: "znx-dh-stats",
13821
- children: le.map((e) => /* @__PURE__ */ X("div", {
13825
+ children: ue.map((e) => /* @__PURE__ */ X("div", {
13822
13826
  className: "znx-dh-stat",
13823
13827
  children: [/* @__PURE__ */ Y("span", {
13824
13828
  className: "znx-dh-stat-value",
@@ -13829,25 +13833,25 @@ function Lx({ moduleName: e, id: t, customConfigName: n, auxRecords: r, authToke
13829
13833
  })]
13830
13834
  }, e.label))
13831
13835
  }),
13832
- ue?.value && /* @__PURE__ */ X("div", {
13836
+ de?.value && /* @__PURE__ */ X("div", {
13833
13837
  className: "znx-dh-created",
13834
- children: ["Created on ", ue.value]
13838
+ children: ["Created on ", de.value]
13835
13839
  })
13836
13840
  ]
13837
13841
  })]
13838
- }), he.length > 0 && /* @__PURE__ */ Y("div", {
13842
+ }), ge.length > 0 && /* @__PURE__ */ Y("div", {
13839
13843
  className: "znx-dh-tabs",
13840
- children: he.map((e) => /* @__PURE__ */ Y("button", {
13844
+ children: ge.map((e) => /* @__PURE__ */ Y("button", {
13841
13845
  type: "button",
13842
- className: `znx-dh-tab${Te === e.key ? " is-active" : ""}`,
13843
- onClick: () => je(e.key),
13846
+ className: `znx-dh-tab${Ee === e.key ? " is-active" : ""}`,
13847
+ onClick: () => Me(e.key),
13844
13848
  children: e.label
13845
13849
  }, e.key))
13846
13850
  })]
13847
13851
  }), /* @__PURE__ */ Y(Ai, {
13848
- documents: w,
13849
- open: b,
13850
- onClose: () => S(!1)
13852
+ documents: T,
13853
+ open: S,
13854
+ onClose: () => w(!1)
13851
13855
  })] });
13852
13856
  }
13853
13857
  //#endregion
@@ -13889,13 +13893,14 @@ function Wx({ moduleName: e, id: t, backPath: n = "", showFooter: r = !1, custom
13889
13893
  n.set("tab", e), m(n, { replace: !0 }), l?.(e, t);
13890
13894
  }, S = () => y((e) => e + 1), C = (e, t) => {
13891
13895
  c?.(e, t);
13892
- }, w = I(() => fb(e)?.tabs ?? [], [e]), T = W_(w, {
13896
+ }, w = I(() => fb(e)?.tabs ?? [], [e]), [T, E] = L(null), D = W_(w, {
13893
13897
  id: g,
13894
- moduleName: e
13895
- }), E = _ === "details" || !w.some((e) => e.key === _ && typeof e.visibleWhen == "function") || T.some((e) => e.key === _), D = I(() => E ? Bx(e, _) : null, [
13898
+ moduleName: e,
13899
+ record: T
13900
+ }), O = _ === "details" || !w.some((e) => e.key === _ && typeof e.visibleWhen == "function") || D.some((e) => e.key === _), k = I(() => O ? Bx(e, _) : null, [
13896
13901
  e,
13897
13902
  _,
13898
- E
13903
+ O
13899
13904
  ]);
13900
13905
  return /* @__PURE__ */ X("div", {
13901
13906
  className: "v1-page v1-detail-page",
@@ -13909,9 +13914,10 @@ function Wx({ moduleName: e, id: t, backPath: n = "", showFooter: r = !1, custom
13909
13914
  onAction: C,
13910
13915
  onTabChange: x,
13911
13916
  onHeaderData: u,
13917
+ onRecordLoaded: E,
13912
13918
  refreshKey: b
13913
- }), D ? /* @__PURE__ */ Y(Hx, {
13914
- component: D,
13919
+ }), k ? /* @__PURE__ */ Y(Hx, {
13920
+ component: k,
13915
13921
  id: g,
13916
13922
  moduleName: e,
13917
13923
  onDescriptionSaved: S
@@ -61502,7 +61508,7 @@ async function XU(e, t, n, r = 10, i = 0, a = {}) {
61502
61508
  }
61503
61509
  //#endregion
61504
61510
  //#region src/index.js
61505
- typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-09-07T11:17:19.465Z");
61511
+ typeof window < "u" && (window.__CORE_THEME_BUILD__ = "2026-09-07T17:06:10.727Z");
61506
61512
  var ZU = pV, QU = Mk(dH), $U = Mk(pH), eW = Mk(OH), tW = Mk(BH), nW = Mk(YH), rW = Mk(QH), iW = Mk(tU), aW = Mk(iU), oW = Mk(oU), sW = Mk(yU), cW = Mk(xU);
61507
61513
  //#endregion
61508
61514
  export { D as ADMIN_API_URL, A as ADMIN_APP_ID, u as APP_ID, k as AUTH_URL, v_ as ActivityNotesCard, s_ as ActivityTab, qB as AddBatchCandidatePopup, Wg as AddFormV1, pV as AdminDashboard, _I as AdminDashboardContent, ZU as AdminPage, Gg as AppAlert, Ti as AppButton, tk as AppShell, mE as ApprovalActionBar, y_ as AssigneeAvatars, qO as AuthGuard, Fb as BILLING_STATUS_FLOW, eT as BOOLEAN_API_KEYS, zC as BOOLEAN_PARSEABLE_API_KEYS, b_ as BULK_UPLOAD_DEFAULT_ACCEPT, x_ as BULK_UPLOAD_DEFAULT_MAX_SIZE_MB, Gr as Breadcrumb, eW as BulkUploadPage, k_ as BulkUploadPanel, o as CANDIDATES_URL, RE as CONTRACT_C2C, LE as CONTRACT_W2, n as CORE_URL, Bv as CURRENCY_SYMBOLS, ic as CalendarCard, xI as CoreThemeAdminApp, bI as CoreThemeAdminRoutes, ol as CustomPagination, IT as DEFAULT_HOURS_POLICY, Xw as DEFAULT_RESULTS_VIEW, oE as DayLogModal, H_ as DescriptionBlock, Lx as DetailHeaderCard, Wx as DetailViewPage, Py as DetailViewV1, Ai as DocumentViewer, cu as DynamicCards, FR as DynamicPopup, QB as DynamicPopupRoute, cc as DynamicTabs, nC as EditFormV1, bw as FIELD_TYPE_REGISTRY, kE as FINANCE_APPROVAL_CONFIG, SE as FINANCE_TYPE_CFO, xE as FINANCE_TYPE_ONBOARDING_MANAGER, TE as FINANCE_TYPE_ONBOARDING_MANAGER_REAPPROVE, CE as FINANCE_TYPE_ONLY_FINANCE, bE as FINANCE_TYPE_SUBMISSION_MANAGER, wE as FINANCE_TYPE_SUBMISSION_MANAGER_REAPPROVE, UD as FileListCard, SD as FinanceApprovalPanel, gx as FinanceAvatar, bx as FinanceBadge, gE as FinanceDayCell, cx as FinanceDivider, _x as FinanceEmployeeCell, ax as FinanceEmptyState, lx as FinanceEquation, px as FinanceHistoryTimeline, ix as FinanceHoursGrid, rx as FinanceKpiRow, sx as FinanceLine, FT as FinanceListToolbar, xx as FinanceMarginBadge, yx as FinanceMoneyCell, wx as FinanceRecordsTable, Sx as FinanceRowChevron, ox as FinanceSection, nx as FinanceStatusPill, vx as FinanceTextCell, vE as FinanceTimesheetAnalysis, ux as FinanceWorkflowSteps, O as GATEWAY_URL, FF as GLOBAL_DEFAULT_FIELDS, LT as HOURS_MESSAGES, bO as Header, pu as HierarchyUserFilter, s as JOBS_URL, QU as LegacyAdminPage, _h as ListView, cW as LmsHomePage, sW as LmsTestForm, nk as Login, dL as MailPopup, rW as ManageModules, iW as ManageSubmodules, dC as ModuleRowActions, pE as NotesPanel, __ as NotesTab, Vw as OPEN_AS_OPTIONS, Ib as PAYROLL_STATUS_FLOW, MF as PLATFORM_SCOPES, RB as POPUP_CONFIGS, i as PYOPS_URL, vC as ParamCardView, wC as ParamListView, YT as PeriodBadgeTag, GF as PlatformSection, SL as PreviewPopup, jk as ProjectSelect, fE as ProofUploadPreview, lE as QuickLogBar, sE as QuickLogSelectionBar, Yw as RESULTS_VIEW_OPTIONS, fV as RegionBanner, cE as RejectionReasonModal, r as SUBMISSIONS_URL, ET as SearchBuilderV1, UO as Sidebar, OT as StatusBadge, JT as StatusBadgeTag, $U as StickyNotesFullPage, AT as StylishDynamicTabs, MT as TemplateEditor, tW as TestForm, oW as TestingHomePage, $g as TimelineGroups, rE as TimesheetDayCell, Ye as TipTapEditor, dV as UserForm, nV as VendorShareDrawer, cp as ViewSummaryWidget, OL as WizardPopup, a as ZINNEXT_URL, aW as ZinnextTableView, nW as ZinnextTestForm, Bt as appNow, Ur as applyIntegrationStatus, Bc as approveSubmission, E_ as buildAcceptAttr, aT as buildBooleanRequest, Xb as buildCsv, Wb as buildDailyRows, tE as buildDayGradient, lD as buildRateHistoryEntries, qb as buildWeeklyRollup, g as clearSelectedProject, P as colors, tD as computeFinance, UT as computeHoursPolicy, Jb as computeMarginBand, Fn as conditionMatches, v as configureCoreTheme, jr as configuredFieldLabel, JU as createAllWorkflowsListFetcher, HU as createMergedListFetcher, FU as createModuleListFetchAdapter, UU as createWorkflowStageListFetcher, Vv as currencySymbol, xF as deactivateRegion, DU as defaultMergeRow, yr as deleteIntegrationConfig, Ub as deriveDayStats, GT as describeCapacity, ex as downloadCsv, gr as evaluateShowIfWith, YE as findEmployerRow, qE as flattenGroups, qv as formatAmount, Ne as formatApp, It as formatAppDateTime, T_ as formatFileSize, uD as formatFinanceMoney, Eb as formatHours, Jv as formatMoney, Ob as formatPercent, Yv as formatRate, de as getActivity, YU as getAllWorkflowsModuleList, Wt as getAppTimeZone, Mb as getApprovalDate, tt as getBgcIntegrationConfig, ot as getBgcIntegrationSummary, Lb as getBillingActionStates, Ew as getBooleanEligibleTypes, d as getCurrentRoleName, vt as getDetailDisplayDefaults, Qb as getFieldLabel, Sw as getFieldType, w_ as getFileExtension, PE as getFinanceApprovalConfig, MD as getFormGroupsRaw, IF as getGlobalAiServices, NF as getGlobalDefaults, Oi as getIntegrationConfig, se as getIntegrationConfigs, Vt as getIntegrationSummary, nl as getModuleConfig, Mt as getModuleDataDetail, Rb as getPayrollActionStates, il as getPeriodBadgeConfig, OF as getRegionDetailDefaults, Rw as getSearchPopup, y as getSelectedProject, E as getStoredToken, f as getStoredUser, p as getUserRoles, Vc as getVMSApprove, $b as getValueStyle, XU as getWorkflowStageModuleList, zb as getWorkflowSteps, CF as grantPlatformAccess, TF as hasPlatformAccess, jb as humanizeEvent, Hh as i, Zb as indexFieldConfig, kb as initialsOf, UC as insertTokenAtCursor, Cw as isBooleanEligible, VC as isBooleanParsable, S as isTester, SF as listPlatformAccess, DF as listPlatformAudit, EF as listPlatformUsers, jF as listRegionRoles, AF as listRegionUsers, yF as listRegions, ee as loadDetailDefaults, h as logout, IE as marginIncludesReferral, eD as matchLocationTax, fS as n, ZE as normalizeContract, A_ as r, Uv as rateUnitLabel, Gv as rateUnitShort, Gw as readActionButtons, WT as reconcileHours, vF as regionPath, xw as registerFieldType, Lw as registerSearchPopup, Uc as rejectSubmission, xn as requiredWhenActive, dr as requiredWhenRule, i_ as resolveActivityMeta, nD as resolveAndCompute, VT as resolveDayKind, $E as resolveFinanceInputs, TU as resolveMergeKey, TU as resolveMergedListKey, Uw as resolveOpenAs, FE as resolveRejectionReason, $w as resolveResultsSearchPlaceholder, Qw as resolveResultsView, ND as resolveSubmissionFinance, wF as revokePlatformAccess, ni as saveBgcIntegrationConfig, LF as saveGlobalAiServices, PF as saveGlobalDefaults, Mr as saveIntegrationConfig, bF as saveRegion, kF as saveRegionDetailDefaults, c as setSelectedProject, Bn as showIfConditions, WU as stageCountKey, rk as t, _n as testIntegrationConnection, Ge as toApp, Kv as toNumber, Lr as tzLabel, Ve as tzShortLabel, zw as unregisterSearchPopup, Sd as useDropdownFields, lp as useDropdownValues, KD as useEditForm, Cd as useFieldConfig, wd as useFilterFields, Nd as useMenuPermission, iC as useModuleActions, Vx as useRecordRefresh, GD as useTabRows, HC as validateBooleanQuery, D_ as validateBulkFile, t as withAdminAppId, _ as withAppId, Mk as withAuthGuard };