@26lights/orcha 0.42.246 → 0.42.247

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/orcha.es.js CHANGED
@@ -7955,16 +7955,17 @@ const J4 = { class: "ao-tasks__list" }, X4 = ["id", "value", "readonly", "onChan
7955
7955
  }), Ns(() => {
7956
7956
  s == null || s.disconnect(), a !== null && cancelAnimationFrame(a);
7957
7957
  });
7958
- const f = O(
7959
- () => {
7960
- var _;
7961
- return ((_ = o.users) == null ? void 0 : _.map((C) => ({
7962
- label: `${C.firstName} ${C.lastName}`,
7963
- value: C.id,
7964
- avatar: C.avatarUrl
7965
- }))) ?? [];
7966
- }
7967
- ), p = () => {
7958
+ const f = O(() => {
7959
+ var C;
7960
+ const _ = /* @__PURE__ */ new Map();
7961
+ return (C = o.users) == null || C.forEach((S) => {
7962
+ _.has(S.id) || _.set(S.id, {
7963
+ label: `${S.firstName} ${S.lastName}`,
7964
+ value: S.id,
7965
+ avatar: S.avatarUrl
7966
+ });
7967
+ }), Array.from(_.values());
7968
+ }), p = () => {
7968
7969
  const _ = o.tasks.length;
7969
7970
  r("add", {
7970
7971
  name: n("task.defaultName", { idx: _ + 1 }),