@realtek/core-theme 0.0.139 → 0.0.140

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
@@ -5095,7 +5095,7 @@ async function Yl({ limit: e = 10, offset: t = 0, search: n = "", module: r = ""
5095
5095
  return n && s.append("search", n), r && s.append("module", r), i && s.append("keyword", i), a && s.append("tags", a), o != null && o !== "" && s.append("active", String(o)), Gl(`/lms-flows?${s.toString()}`);
5096
5096
  }
5097
5097
  async function Xl(e, t = 10, n = 0, r = {}) {
5098
- let { scope: i = "", sort: a = "", sortDir: o = "", filters: s = [] } = r;
5098
+ let { scope: i = "", sort: a = "", sortDir: o = "", search: s = "", filters: c = [] } = r;
5099
5099
  if (e === jl) {
5100
5100
  let e = await Jl({
5101
5101
  limit: t,
@@ -5130,33 +5130,33 @@ async function Xl(e, t = 10, n = 0, r = {}) {
5130
5130
  }]
5131
5131
  };
5132
5132
  }
5133
- let c = new URLSearchParams({
5133
+ let l = new URLSearchParams({
5134
5134
  module: e,
5135
5135
  limit: String(t),
5136
5136
  offset: String(n)
5137
- }), l = String(i ?? "").trim();
5138
- a && c.set("sort", a), o && c.set("sortDir", o);
5139
- let u = nu(s.filter((e) => e?.field));
5140
- u.length && c.set("filters", JSON.stringify(u));
5141
- let d = await Hl(b, `/module-data-list?${c.toString()}`), f = Zl(d), p = f.some((e) => eu(e)), m = f.some((e) => tu(e));
5142
- if (p || m) try {
5143
- let { transformDiceResponseToInternalFormat: e } = await Promise.resolve().then(() => ui), r = e(d, d), i = r?.data?.data ?? [];
5137
+ }), u = String(i ?? "").trim();
5138
+ u && l.set("scope", u), a && l.set("sort", a), o && l.set("sortDir", o), String(s ?? "").trim() && l.set("search", String(s).trim());
5139
+ let d = nu(c.filter((e) => e?.field));
5140
+ d.length && l.set("filters", JSON.stringify(d));
5141
+ let f = await Hl(b, `/module-data-list?${l.toString()}`), p = Zl(f), m = p.some((e) => eu(e)), h = p.some((e) => tu(e));
5142
+ if (m || h) try {
5143
+ let { transformDiceResponseToInternalFormat: e } = await Promise.resolve().then(() => ui), r = e(f, f), i = r?.data?.data ?? [];
5144
5144
  return {
5145
5145
  items: i,
5146
- total: $l(d, l) || $l(r, l) || i.length,
5146
+ total: $l(f, u) || $l(r, u) || i.length,
5147
5147
  limit: t,
5148
5148
  offset: n,
5149
- tabs: r?.data?.tabs ?? d?.tabs ?? d?.data?.tabs ?? [],
5150
- fields: r?.data?.fields ?? d?.fields ?? d?.data?.fields ?? [],
5151
- tabField: r?.data?.tabField ?? d?.tabField ?? d?.data?.tabField ?? "",
5152
- actionRules: r?.data?.actionRules ?? d?.data?.actionRules ?? [],
5153
- actions: r?.data?.actions ?? d?.data?.actions ?? [],
5154
- columnActions: r?.data?.columnActions ?? d?.data?.columnActions ?? []
5149
+ tabs: r?.data?.tabs ?? f?.tabs ?? f?.data?.tabs ?? [],
5150
+ fields: r?.data?.fields ?? f?.fields ?? f?.data?.fields ?? [],
5151
+ tabField: r?.data?.tabField ?? f?.tabField ?? f?.data?.tabField ?? "",
5152
+ actionRules: r?.data?.actionRules ?? f?.data?.actionRules ?? [],
5153
+ actions: r?.data?.actions ?? f?.data?.actions ?? [],
5154
+ columnActions: r?.data?.columnActions ?? f?.data?.columnActions ?? []
5155
5155
  };
5156
5156
  } catch (e) {
5157
5157
  console.error("[getModuleDataList] Dice transformation failed:", e);
5158
5158
  }
5159
- return d;
5159
+ return f;
5160
5160
  }
5161
5161
  function Zl(e) {
5162
5162
  let t = e?.data ?? e, n = Array.isArray(t) ? t : t?.rows ?? t?.records ?? t?.items ?? t?.list ?? t?.data ?? e?.items ?? e?.records ?? [];
@@ -7563,13 +7563,13 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7563
7563
  U,
7564
7564
  Ze,
7565
7565
  m
7566
- ]), Ut = Ht?.field ?? Ht?.fieldName ?? Ht?.filterField ?? Ht?.dataIndex ?? tt, Wt = $f(U) ? "" : U, Gt = !Wt && !$f(U) && Zf(Ut).length > 0, Kt = K.trim().length >= 3, qt = Ce.some((e) => e.field), Jt = mp({
7566
+ ]), Ut = Ht?.field ?? Ht?.fieldName ?? Ht?.filterField ?? Ht?.dataIndex ?? tt, Wt = $f(U) ? "" : U, Gt = !Wt && !$f(U) && Zf(Ut).length > 0, Kt = K.trim().length >= 3, qt = Kt ? K.trim() : "", Jt = Ce.some((e) => e.field), Xt = mp({
7567
7567
  moduleName: e,
7568
7568
  activeTabScope: Wt,
7569
7569
  pageSize: Me.pageSize,
7570
7570
  sort: Pe.sort,
7571
7571
  sortDir: Pe.sortDir
7572
- }), Xt = Me.current === 1 && ft?.key === Jt;
7572
+ }), Zt = Me.current === 1 && ft?.key === Xt;
7573
7573
  D(() => {
7574
7574
  if (gt) return;
7575
7575
  if (!jt) {
@@ -7577,16 +7577,17 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7577
7577
  return;
7578
7578
  }
7579
7579
  let t = !1, n = Kt && Je > Me.pageSize, r = n ? Je : Me.pageSize, i = n ? 0 : (Me.current - 1) * Me.pageSize;
7580
- return ct(!(!Kt && !qt && Me.current === 1 && Xt)), dt(null), ce(e, r, i, {
7580
+ return ct(!(!Kt && !Jt && Me.current === 1 && Zt)), dt(null), ce(e, r, i, {
7581
7581
  scope: Wt,
7582
7582
  sort: Pe.sort,
7583
7583
  sortDir: Pe.sortDir,
7584
+ search: qt,
7584
7585
  filters: Ce
7585
7586
  }).then((n) => {
7586
7587
  if (t) return;
7587
7588
  let { rows: r, total: i, tabs: a, fields: o, tabField: s, actions: c, actionRules: l } = le(n, e);
7588
- qe(r), Ye(i), Qe(a), et(o), nt(s), it(c), ot(l), !Kt && !qt && Me.current === 1 && pt({
7589
- key: Jt,
7589
+ qe(r), Ye(i), Qe(a), et(o), nt(s), it(c), ot(l), !Kt && !Jt && Me.current === 1 && pt({
7590
+ key: Xt,
7590
7591
  rows: r,
7591
7592
  total: i,
7592
7593
  tabs: a,
@@ -7603,14 +7604,15 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7603
7604
  t = !0;
7604
7605
  };
7605
7606
  }, [
7607
+ qt,
7606
7608
  Wt,
7607
7609
  Ce,
7608
- Jt,
7610
+ Xt,
7609
7611
  ce,
7610
- qt,
7612
+ Jt,
7611
7613
  Kt,
7612
7614
  jt,
7613
- Xt,
7615
+ Zt,
7614
7616
  e,
7615
7617
  Je,
7616
7618
  Me.current,
@@ -7620,7 +7622,7 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7620
7622
  Pe.sort,
7621
7623
  Pe.sortDir
7622
7624
  ]);
7623
- let Zt = O(() => {
7625
+ let Qt = O(() => {
7624
7626
  let e = gt && Array.isArray(g) && g.length, t = !gt && Array.isArray($e) && $e.length, n = !zt && Array.isArray(Lt) && Lt.length, r = e ? g : t ? $e : n ? Lt : [], i = new Map($e.map((e) => [of(e), e]).filter(([e]) => e));
7625
7627
  return If(r.map((e) => {
7626
7628
  let t = of(e), n = i.get(t) ?? {};
@@ -7637,65 +7639,65 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7637
7639
  g,
7638
7640
  gt,
7639
7641
  $e
7640
- ]), Qt = O(() => Zt.filter((e) => typeof e.isVisible == "boolean" ? e.isVisible : typeof e.isVisible == "string" ? e.isVisible.toLowerCase() === "true" : !0).map((e) => ({
7642
+ ]), $t = O(() => Qt.filter((e) => typeof e.isVisible == "boolean" ? e.isVisible : typeof e.isVisible == "string" ? e.isVisible.toLowerCase() === "true" : !0).map((e) => ({
7641
7643
  key: e.key,
7642
7644
  label: e.label
7643
- })), [Zt]), $t = Qt.map((e) => e.key), en = Ie.filter((e) => $t.includes(e)), tn = en.length ? en : Qt.slice(0, 6).map((e) => e.key), nn = Math.min(6, Qt.length), rn = tn.length > 6, an = O(() => Zt.filter((e) => !e.cardHidden && (e.tableHidden || tn.includes(e.key))), [Zt, tn]), on = O(() => {
7644
- let e = ve.toLowerCase(), t = vt, n = Gt ? t.filter((e) => ep(e, U, Ht, Zt, Ut)) : t;
7645
- return !e || e.length < 3 ? n : n.filter((t) => Zt.some((n) => String(mf(t, n.key)).toLowerCase().includes(e)));
7645
+ })), [Qt]), en = $t.map((e) => e.key), tn = Ie.filter((e) => en.includes(e)), nn = tn.length ? tn : $t.slice(0, 6).map((e) => e.key), rn = Math.min(6, $t.length), an = nn.length > 6, on = O(() => Qt.filter((e) => !e.cardHidden && (e.tableHidden || nn.includes(e.key))), [Qt, nn]), sn = O(() => {
7646
+ let e = ve.toLowerCase(), t = vt, n = Gt ? t.filter((e) => ep(e, U, Ht, Qt, Ut)) : t;
7647
+ return !e || e.length < 3 ? n : n.filter((t) => Qt.some((n) => String(mf(t, n.key)).toLowerCase().includes(e) || Hf(n).some((n) => String(mf(t, n)).toLowerCase().includes(e))));
7646
7648
  }, [
7647
7649
  U,
7648
7650
  Ht,
7649
7651
  Ut,
7650
7652
  Gt,
7651
7653
  vt,
7652
- Zt,
7654
+ Qt,
7653
7655
  ve
7654
- ]), sn = O(() => {
7655
- if (!Kt) return on;
7656
+ ]), cn = O(() => {
7657
+ if (!Kt) return sn;
7656
7658
  let e = (Me.current - 1) * Me.pageSize;
7657
- return on.slice(e, e + Me.pageSize);
7659
+ return sn.slice(e, e + Me.pageSize);
7658
7660
  }, [
7659
- on,
7661
+ sn,
7660
7662
  Kt,
7661
7663
  Me.current,
7662
7664
  Me.pageSize
7663
- ]), cn = Kt ? on.length : yt, ln = K.trim().length >= 3, fn = String(on.length).padStart(2, "0"), mn = yt > 0 || vt.length > 0, hn = jt ? lt ? "Invalid module name or data could not be loaded." : zt ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", gn = O(() => {
7665
+ ]), ln = Kt ? sn.length : yt, fn = K.trim().length >= 3, mn = String(sn.length).padStart(2, "0"), hn = yt > 0 || vt.length > 0, gn = jt ? lt ? "Invalid module name or data could not be loaded." : zt ? "Field configuration failed to load." : "No data found." : "Please provide a module name to view data.", _n = O(() => {
7664
7666
  let t = Array.isArray(m) ? m : [];
7665
7667
  return t.length ? t : Ze.length ? Ze : [{
7666
7668
  key: "all",
7667
7669
  title: e ?? "List",
7668
- count: cn
7670
+ count: ln
7669
7671
  }];
7670
7672
  }, [
7671
7673
  e,
7672
7674
  Ze,
7673
- cn,
7675
+ ln,
7674
7676
  m
7675
7677
  ]);
7676
7678
  D(() => {
7677
- if (gn.length && !gn.some((e) => String(e?.key ?? e?.value ?? e?.id) === U)) {
7678
- let e = gn[0]?.key ?? gn[0]?.value ?? gn[0]?.id;
7679
+ if (_n.length && !_n.some((e) => String(e?.key ?? e?.value ?? e?.id) === U)) {
7680
+ let e = _n[0]?.key ?? _n[0]?.value ?? _n[0]?.id;
7679
7681
  e && W(String(e));
7680
7682
  }
7681
- }, [U, gn]), D(() => {
7682
- if (!gt || !B || !gn.length) return;
7683
- let e = gn.find((e, t) => Zf(Qf(e, t)) === Zf(B)), t = e ? String(Qf(e)) : "";
7683
+ }, [U, _n]), D(() => {
7684
+ if (!gt || !B || !_n.length) return;
7685
+ let e = _n.find((e, t) => Zf(Qf(e, t)) === Zf(B)), t = e ? String(Qf(e)) : "";
7684
7686
  t && t !== U && W(t);
7685
7687
  }, [
7686
7688
  U,
7687
7689
  gt,
7688
- gn,
7690
+ _n,
7689
7691
  B
7690
7692
  ]);
7691
- let _n = (t) => {
7693
+ let vn = (t) => {
7692
7694
  ue("/popup/preview", { state: {
7693
7695
  background: H,
7694
7696
  moduleName: e,
7695
7697
  record: t,
7696
- fields: Zt
7698
+ fields: Qt
7697
7699
  } });
7698
- }, vn = (t, n) => {
7700
+ }, yn = (t, n) => {
7699
7701
  let r = Cf(t, n), i = r.startsWith("/") ? r : `/${r}`, a = n?._id ?? n?.id;
7700
7702
  ue(i, { state: {
7701
7703
  background: H,
@@ -7705,7 +7707,7 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7705
7707
  popupContext: {},
7706
7708
  popupAction: {}
7707
7709
  } });
7708
- }, yn = O(() => [{
7710
+ }, bn = O(() => [{
7709
7711
  dataIndex: "icons",
7710
7712
  key: "icons",
7711
7713
  visibilityKey: "jobsGroup",
@@ -7718,7 +7720,7 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7718
7720
  type: "button",
7719
7721
  className: "job-row-eye-button",
7720
7722
  "aria-label": "Preview job",
7721
- onClick: () => _n(t),
7723
+ onClick: () => vn(t),
7722
7724
  children: /* @__PURE__ */ Z("img", {
7723
7725
  src: tf,
7724
7726
  alt: "",
@@ -7729,21 +7731,21 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7729
7731
  children: /* @__PURE__ */ Z(_t, { className: "job-row-linkedin-icon" })
7730
7732
  })]
7731
7733
  })
7732
- }, ...Zt.filter((e) => tn.includes(e.key)).map((e, t) => {
7734
+ }, ...Qt.filter((e) => nn.includes(e.key)).map((e, t) => {
7733
7735
  let n = Pe.sort === e.key ? Pe.sortDir : "";
7734
7736
  return {
7735
7737
  title: pp({
7736
7738
  label: e.label,
7737
7739
  sortDir: n,
7738
- sortable: mn,
7740
+ sortable: hn,
7739
7741
  onSort: () => Bt(e.key)
7740
7742
  }),
7741
7743
  dataIndex: e.key,
7742
7744
  key: e.key,
7743
7745
  fixed: t === 0 ? "left" : void 0,
7744
7746
  ellipsis: { showTitle: !1 },
7745
- width: t === 0 ? 220 : rn ? 180 : Math.max(140, Math.floor(900 / Math.max(tn.length || 1, 1))),
7746
- render: (t, n) => Xf(e, n, K, vn, {
7747
+ width: t === 0 ? 220 : an ? 180 : Math.max(140, Math.floor(900 / Math.max(nn.length || 1, 1))),
7748
+ render: (t, n) => Xf(e, n, K, yn, {
7747
7749
  canAdd: fe,
7748
7750
  canEdit: pe,
7749
7751
  canDelete: me
@@ -7757,27 +7759,27 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7757
7759
  K,
7758
7760
  Tt,
7759
7761
  Bt,
7760
- rn,
7761
- mn,
7762
+ an,
7763
+ hn,
7762
7764
  H,
7763
7765
  e,
7764
7766
  ue,
7765
- Zt,
7767
+ Qt,
7766
7768
  Pe.sort,
7767
7769
  Pe.sortDir,
7768
7770
  kt,
7769
- tn
7770
- ]), bn = E((e) => {
7771
+ nn
7772
+ ]), xn = E((e) => {
7771
7773
  if (W(e), Ee([]), ke([]), It(), gt && typeof se == "function") {
7772
- let t = gn.find((t, n) => String(Qf(t, n)) === e);
7774
+ let t = _n.find((t, n) => String(Qf(t, n)) === e);
7773
7775
  se(t?.key ?? t?.value ?? t?.id ?? e);
7774
7776
  }
7775
7777
  }, [
7776
7778
  gt,
7777
7779
  se,
7778
- gn
7780
+ _n
7779
7781
  ]);
7780
- function xn(t, n, r) {
7782
+ function Sn(t, n, r) {
7781
7783
  let i = Ot.get(String(t));
7782
7784
  if (i && i.actionType !== "group") {
7783
7785
  if (typeof s == "function" && s({
@@ -7834,15 +7836,15 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7834
7836
  }
7835
7837
  }
7836
7838
  }
7837
- function Sn({ key: e }) {
7838
- xn(e, Te, De);
7839
+ function Cn({ key: e }) {
7840
+ Sn(e, Te, De);
7839
7841
  }
7840
- let Cn = tn.length === Qt.length, wn = tn.length > 0 && !Cn, Tn = (e, t) => {
7842
+ let wn = nn.length === $t.length, Tn = nn.length > 0 && !wn, En = (e, t) => {
7841
7843
  Le((n) => {
7842
- let r = Qt.slice(0, 6).map((e) => e.key), i = n.length ? n : r;
7843
- return t ? i.includes(e) ? i : [...i, e] : i.length <= nn ? i : i.filter((t) => t !== e);
7844
+ let r = $t.slice(0, 6).map((e) => e.key), i = n.length ? n : r;
7845
+ return t ? i.includes(e) ? i : [...i, e] : i.length <= rn ? i : i.filter((t) => t !== e);
7844
7846
  });
7845
- }, En = () => {
7847
+ }, Dn = () => {
7846
7848
  if (typeof c == "function") {
7847
7849
  c();
7848
7850
  return;
@@ -7860,16 +7862,16 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7860
7862
  };
7861
7863
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
7862
7864
  }, [mt]);
7863
- let Dn = () => {
7864
- Xt && (qe(ft.rows), Ye(ft.total), Qe(ft.tabs), et(ft.fields), nt(ft.tabField), it(ft.actions ?? []), ot(ft.actionRules ?? []), dt(null), ct(!1));
7865
- }, On = (e) => {
7865
+ let On = () => {
7866
+ Zt && (qe(ft.rows), Ye(ft.total), Qe(ft.tabs), et(ft.fields), nt(ft.tabField), it(ft.actions ?? []), ot(ft.actionRules ?? []), dt(null), ct(!1));
7867
+ }, kn = (e) => {
7866
7868
  let t = e.target.value, n = t.trim().length < 3, r = Ce.some((e) => e.field);
7867
- n && (xe(""), r || Dn()), ye(t), It();
7868
- }, kn = () => {
7869
+ n && (xe(""), r || On()), ye(t), It();
7870
+ }, An = () => {
7869
7871
  let e = ve.trim();
7870
7872
  e.length >= 3 && (xe(e), It());
7871
- }, An = () => {
7872
- Dn(), we([]), Ge([], []), It();
7873
+ }, jn = () => {
7874
+ On(), we([]), Ge([], []), It();
7873
7875
  };
7874
7876
  D(() => {
7875
7877
  Ct === "card" && (Ve([]), Ge([], []));
@@ -7879,25 +7881,25 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7879
7881
  U,
7880
7882
  Ct
7881
7883
  ]);
7882
- let jn = (e) => {
7884
+ let Mn = (e) => {
7883
7885
  Ve((t) => {
7884
7886
  let n = t.includes(e) ? t.filter((t) => t !== e) : [...t, e];
7885
- return Ge(n, sn.filter((e, t) => n.includes(String(tp(e, t, l))))), n;
7887
+ return Ge(n, cn.filter((e, t) => n.includes(String(tp(e, t, l))))), n;
7886
7888
  });
7887
- }, Mn = /* @__PURE__ */ Q("div", {
7889
+ }, Nn = /* @__PURE__ */ Q("div", {
7888
7890
  className: "column-visibility-menu",
7889
7891
  onClick: (e) => e.stopPropagation(),
7890
7892
  children: [/* @__PURE__ */ Z(te, {
7891
- checked: Cn,
7892
- indeterminate: wn,
7893
+ checked: wn,
7894
+ indeterminate: Tn,
7893
7895
  onChange: (e) => {
7894
- Le(e.target.checked ? Qt.map((e) => e.key) : Qt.slice(0, 6).map((e) => e.key));
7896
+ Le(e.target.checked ? $t.map((e) => e.key) : $t.slice(0, 6).map((e) => e.key));
7895
7897
  },
7896
7898
  children: "Select All"
7897
- }), Qt.map((e) => /* @__PURE__ */ Z(te, {
7898
- checked: tn.includes(e.key),
7899
- disabled: tn.includes(e.key) && tn.length <= nn,
7900
- onChange: (t) => Tn(e.key, t.target.checked),
7899
+ }), $t.map((e) => /* @__PURE__ */ Z(te, {
7900
+ checked: nn.includes(e.key),
7901
+ disabled: nn.includes(e.key) && nn.length <= rn,
7902
+ onChange: (t) => En(e.key, t.target.checked),
7901
7903
  children: e.label
7902
7904
  }, e.key))]
7903
7905
  });
@@ -7915,18 +7917,18 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7915
7917
  justify: "space-between",
7916
7918
  children: [/* @__PURE__ */ Z(hd, {
7917
7919
  activeKey: U,
7918
- tabs: gn,
7919
- onChange: bn
7920
+ tabs: _n,
7921
+ onChange: xn
7920
7922
  }), /* @__PURE__ */ Q(oe, {
7921
7923
  align: "center",
7922
7924
  gap: 8,
7923
7925
  children: [
7924
- mn && /* @__PURE__ */ Z(V, {
7926
+ hn && /* @__PURE__ */ Z(V, {
7925
7927
  prefix: /* @__PURE__ */ Z(Ft, { className: "job-search-icon" }),
7926
7928
  placeholder: "Min 3 Chars, press Enter to search",
7927
7929
  value: ve,
7928
- onChange: On,
7929
- onPressEnter: kn,
7930
+ onChange: kn,
7931
+ onPressEnter: An,
7930
7932
  allowClear: !0,
7931
7933
  className: "job-search-input"
7932
7934
  }),
@@ -7941,7 +7943,7 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7941
7943
  }
7942
7944
  })
7943
7945
  }),
7944
- mn && /* @__PURE__ */ Z(J, {
7946
+ hn && /* @__PURE__ */ Z(J, {
7945
7947
  title: "Filter",
7946
7948
  children: /* @__PURE__ */ Z(ee, {
7947
7949
  count: Ce.filter((e) => e.field && bp(e)).length,
@@ -7955,7 +7957,7 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7955
7957
  })
7956
7958
  })
7957
7959
  }),
7958
- j && mn && /* @__PURE__ */ Q(oe, {
7960
+ j && hn && /* @__PURE__ */ Q(oe, {
7959
7961
  align: "center",
7960
7962
  gap: 6,
7961
7963
  children: [/* @__PURE__ */ Z(J, {
@@ -7978,17 +7980,17 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7978
7980
  })
7979
7981
  })]
7980
7982
  }),
7981
- d && mn && /* @__PURE__ */ Z(F, {
7983
+ d && hn && /* @__PURE__ */ Z(F, {
7982
7984
  className: "job-summary-button",
7983
7985
  type: "primary",
7984
- onClick: En,
7986
+ onClick: Dn,
7985
7987
  children: f
7986
7988
  })
7987
7989
  ]
7988
7990
  })]
7989
7991
  })
7990
7992
  }),
7991
- mn && /* @__PURE__ */ Z(X, { children: /* @__PURE__ */ Z(I, {
7993
+ hn && /* @__PURE__ */ Z(X, { children: /* @__PURE__ */ Z(I, {
7992
7994
  className: "job-toolbar-card",
7993
7995
  children: /* @__PURE__ */ Q(oe, {
7994
7996
  className: "p-flex",
@@ -7999,14 +8001,14 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
7999
8001
  gap: 3,
8000
8002
  children: [
8001
8003
  Ct === "card" && /* @__PURE__ */ Z(te, {
8002
- checked: sn.length > 0 && Be.length >= sn.length,
8003
- indeterminate: Be.length > 0 && Be.length < sn.length,
8004
+ checked: cn.length > 0 && Be.length >= cn.length,
8005
+ indeterminate: Be.length > 0 && Be.length < cn.length,
8004
8006
  className: "param-card-view__select-all",
8005
8007
  onChange: () => {
8006
8008
  if (Be.length > 0) Ve([]), Ge([], []);
8007
8009
  else {
8008
- let e = sn.map((e, t) => String(tp(e, t, l)));
8009
- Ve(e), Ge(e, [...sn]);
8010
+ let e = cn.map((e, t) => String(tp(e, t, l)));
8011
+ Ve(e), Ge(e, [...cn]);
8010
8012
  }
8011
8013
  },
8012
8014
  children: "Select All"
@@ -8015,7 +8017,7 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
8015
8017
  open: Re,
8016
8018
  onOpenChange: ze,
8017
8019
  trigger: ["click"],
8018
- dropdownRender: () => Mn,
8020
+ dropdownRender: () => Nn,
8019
8021
  placement: "bottomLeft",
8020
8022
  overlayClassName: "column-visibility-dropdown",
8021
8023
  children: /* @__PURE__ */ Z(F, {
@@ -8034,7 +8036,7 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
8034
8036
  At.length > 0 && Te.length > 0 && /* @__PURE__ */ Z(ae, {
8035
8037
  menu: {
8036
8038
  items: At.map(op),
8037
- onClick: Sn
8039
+ onClick: Cn
8038
8040
  },
8039
8041
  trigger: ["click"],
8040
8042
  children: /* @__PURE__ */ Q(F, {
@@ -8061,28 +8063,28 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
8061
8063
  ]
8062
8064
  })
8063
8065
  ]
8064
- }), ln && /* @__PURE__ */ Q(rf, {
8066
+ }), fn && /* @__PURE__ */ Q(rf, {
8065
8067
  className: "job-search-results-count",
8066
8068
  children: [
8067
8069
  "Search Results (",
8068
- fn,
8070
+ mn,
8069
8071
  ")"
8070
8072
  ]
8071
8073
  })]
8072
8074
  })
8073
8075
  }) }),
8074
- qt && /* @__PURE__ */ Z(Cp, {
8076
+ Jt && /* @__PURE__ */ Z(Cp, {
8075
8077
  filters: Ce,
8076
8078
  onRemove: (e) => {
8077
8079
  we(Ce.filter((t, n) => n !== e)), It();
8078
8080
  },
8079
- onClearAll: An
8081
+ onClearAll: jn
8080
8082
  }),
8081
8083
  /* @__PURE__ */ Z(_e, {
8082
8084
  spinning: gt ? v : Rt || st,
8083
- children: Ct === "card" ? sn.length === 0 ? /* @__PURE__ */ Z(z, {
8085
+ children: Ct === "card" ? cn.length === 0 ? /* @__PURE__ */ Z(z, {
8084
8086
  image: z.PRESENTED_IMAGE_SIMPLE,
8085
- description: hn,
8087
+ description: gn,
8086
8088
  className: "param-card-view__empty",
8087
8089
  children: !gt && fe && Mt && !lt && /* @__PURE__ */ Z(F, {
8088
8090
  type: "primary",
@@ -8092,16 +8094,16 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
8092
8094
  })
8093
8095
  }) : /* @__PURE__ */ Z("div", {
8094
8096
  className: "param-card-view__grid",
8095
- children: sn.map((e, t) => {
8097
+ children: cn.map((e, t) => {
8096
8098
  let n = String(tp(e, t, l));
8097
8099
  return /* @__PURE__ */ Z(yp, {
8098
8100
  record: e,
8099
- fields: an,
8101
+ fields: on,
8100
8102
  selected: re === "checkbox" ? Be.includes(n) : Ue(e, t),
8101
8103
  isControlled: gt,
8102
- onPreview: () => _n(e),
8103
- onSelect: () => jn(n),
8104
- onPopupAction: vn,
8104
+ onPreview: () => vn(e),
8105
+ onSelect: () => Mn(n),
8106
+ onPopupAction: yn,
8105
8107
  onRecordClick: L ? () => We(e, t) : void 0,
8106
8108
  selectionMode: re,
8107
8109
  permissions: {
@@ -8112,7 +8114,7 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
8112
8114
  }, n);
8113
8115
  })
8114
8116
  }) : /* @__PURE__ */ Z(be, {
8115
- rowSelection: mn && re === "checkbox" ? {
8117
+ rowSelection: hn && re === "checkbox" ? {
8116
8118
  type: "checkbox",
8117
8119
  fixed: !0,
8118
8120
  columnWidth: 48,
@@ -8121,28 +8123,28 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
8121
8123
  Ge(e, t);
8122
8124
  },
8123
8125
  columnTitle: (() => {
8124
- let e = sn.length, t = e > 0 && Te.length >= e, n = Te.length > 0 && !t;
8126
+ let e = cn.length, t = e > 0 && Te.length >= e, n = Te.length > 0 && !t;
8125
8127
  return /* @__PURE__ */ Z(te, {
8126
8128
  checked: t,
8127
8129
  indeterminate: n,
8128
8130
  onChange: () => {
8129
- n || t ? Ge([], []) : Ge(sn.map((e, t) => tp(e, t, l)), [...sn]);
8131
+ n || t ? Ge([], []) : Ge(cn.map((e, t) => tp(e, t, l)), [...cn]);
8130
8132
  }
8131
8133
  });
8132
8134
  })()
8133
8135
  } : void 0,
8134
- columns: yn,
8135
- dataSource: sn,
8136
+ columns: bn,
8137
+ dataSource: cn,
8136
8138
  size: "middle",
8137
8139
  tableLayout: "fixed",
8138
8140
  scroll: {
8139
- x: rn || gt ? "max-content" : void 0,
8141
+ x: an || gt ? "max-content" : void 0,
8140
8142
  y: "calc(100vh - 300px)"
8141
8143
  },
8142
8144
  pagination: !1,
8143
8145
  locale: { emptyText: /* @__PURE__ */ Z(z, {
8144
8146
  image: z.PRESENTED_IMAGE_SIMPLE,
8145
- description: hn
8147
+ description: gn
8146
8148
  }) },
8147
8149
  className: `${h} ${ie ? "list-view-table--compact" : ""}`.trim(),
8148
8150
  onRow: L ? (e, t) => ({
@@ -8155,10 +8157,10 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
8155
8157
  rowKey: (e, t) => tp(e, t, l)
8156
8158
  })
8157
8159
  }),
8158
- mn ? /* @__PURE__ */ Z(dd, {
8160
+ hn ? /* @__PURE__ */ Z(dd, {
8159
8161
  current: Me.current,
8160
8162
  pageSize: Me.pageSize,
8161
- total: cn,
8163
+ total: ln,
8162
8164
  onChange: (e, t) => {
8163
8165
  if (gt && typeof C == "function") {
8164
8166
  C(e, t ?? Me.pageSize);
@@ -8185,14 +8187,14 @@ function wp({ moduleName: e, actions: t = [], actionRules: n = [], breadcrumbIte
8185
8187
  onApply: ({ filters: e }) => {
8186
8188
  we(e), It();
8187
8189
  },
8188
- onReset: An
8190
+ onReset: jn
8189
8191
  }),
8190
8192
  /* @__PURE__ */ Z(Vd, {
8191
8193
  moduleName: e,
8192
8194
  open: mt,
8193
8195
  rows: Ke,
8194
- tabs: gn,
8195
- total: cn,
8196
+ tabs: _n,
8197
+ total: ln,
8196
8198
  onClose: () => ht(!1)
8197
8199
  })
8198
8200
  ]