cm-reporting 0.8.12 → 0.8.13

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/index.js CHANGED
@@ -5577,17 +5577,17 @@ function _a(e) {
5577
5577
  return n ? e.currentRows.some((o) => o.id === e.currentRowId ? !1 : (o.metal?.trim() ?? "") === t && Ti(o) === n) : !1;
5578
5578
  }
5579
5579
  function US(e) {
5580
- const t = /* @__PURE__ */ new Map(), n = [];
5581
- return e.forEach((o, r) => {
5582
- const i = o.metal?.trim() ?? "", s = Ti(o);
5583
- if (!i || !s) return;
5584
- const a = `${i}${BS}${s}`, l = t.get(a);
5585
- if (l !== void 0) {
5586
- n.push({ index: r, firstIndex: l, selectionKey: s, metal: i });
5580
+ const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), o = [];
5581
+ return e.forEach((r, i) => {
5582
+ const s = r.metal?.trim() ?? "", a = Ti(r);
5583
+ if (!s || !a || n.has(s)) return;
5584
+ const l = `${s}${BS}${a}`, c = t.get(l);
5585
+ if (c !== void 0) {
5586
+ o.push({ index: i, firstIndex: c, selectionKey: a, metal: s }), n.add(s);
5587
5587
  return;
5588
5588
  }
5589
- t.set(a, r);
5590
- }), n;
5589
+ t.set(l, i);
5590
+ }), o;
5591
5591
  }
5592
5592
  const GS = [
5593
5593
  { key: "smelterName", labelKey: "tables.mineSmelterName" },