@realtek/core-theme 0.0.215 → 0.0.216

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
@@ -11586,8 +11586,19 @@ function f_({ moduleName: e, id: t, customConfigName: n, authToken: r, onAction:
11586
11586
  let be = (n) => {
11587
11587
  let r = [...ve, ...ye].find((e) => e.key === n);
11588
11588
  if (r?.actionType === "document" && r.documentField) {
11589
- let e = d_(g, r.documentField);
11590
- e.length ? (T(e), C(!0)) : J.warning(`No ${(r.label || "document").toLowerCase()} available`);
11589
+ let n = d_(g, r.documentField);
11590
+ if (n.length) {
11591
+ T(n), C(!0);
11592
+ return;
11593
+ }
11594
+ At(r.documentModule || e, r.documentIdField ? o_(oe, r.documentIdField) : t, r.documentField).then((e) => {
11595
+ let t = (e?.data ?? []).map((e) => ({
11596
+ name: e.fileName || e.name || e.uploadedFileName || r.documentField,
11597
+ url: e.fileUrl || e.url || "",
11598
+ type: "file"
11599
+ })).filter((e) => e.url);
11600
+ t.length ? (T(t), C(!0)) : J.warning(`No ${(r.label || "document").toLowerCase()} available`);
11601
+ }).catch(() => J.warning(`No ${(r.label || "document").toLowerCase()} available`));
11591
11602
  return;
11592
11603
  }
11593
11604
  if (r?.actionType === "copy") {
@@ -16832,7 +16843,17 @@ function cb({ type: e, record: t, lookups: n, identity: r, referralOptions: i, o
16832
16843
  children: nb(r?.employerLocation, t?.submission?.city, t?.job?.jobLocation)
16833
16844
  })
16834
16845
  }),
16835
- /* @__PURE__ */ X(ob, {
16846
+ !P.isW2 && !P.employerVmsRequired ? /* @__PURE__ */ X(ob, {
16847
+ label: /* @__PURE__ */ X("span", {
16848
+ className: "fa-locked-label",
16849
+ children: "Employer VMS"
16850
+ }),
16851
+ sub: "VMS not required",
16852
+ value: /* @__PURE__ */ X("span", {
16853
+ className: "fa-vms-none",
16854
+ children: "Not required"
16855
+ })
16856
+ }) : /* @__PURE__ */ X(ob, {
16836
16857
  label: P.isW2 ? P.employerDeductionLabel : /* @__PURE__ */ Z("span", {
16837
16858
  className: "fa-locked-label",
16838
16859
  children: [P.employerDeductionLabel, /* @__PURE__ */ X("span", {