@feedmepos/mf-common 1.22.0 → 1.23.0

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.
@@ -1,7 +1,7 @@
1
1
  import { ref as C, computed as i, defineComponent as J, mergeModels as X, useModel as Y, watch as Z, resolveComponent as S, openBlock as v, createElementBlock as b, createElementVNode as k, createVNode as m, withCtx as O, normalizeClass as ee, toDisplayString as le, createCommentVNode as B, withModifiers as E, unref as y, Fragment as z, renderList as $, createBlock as D, renderSlot as te, nextTick as ae } from "vue";
2
2
  import { storeToRefs as ne } from "pinia";
3
3
  import { _ as L, h as re } from "./app-9575c6c7.js";
4
- import { n as ue, u as oe } from "./app-ee67eec0.js";
4
+ import { n as ue, u as oe } from "./app-1da70dba.js";
5
5
  import "@feedmepos/ui-library";
6
6
  import "vue-router";
7
7
  function se(p, t) {
@@ -58,7 +58,7 @@ const ie = { class: "w-full flex flex-col gap-8" }, ce = { class: "flex items-ce
58
58
  label: e.profile.name,
59
59
  value: e._id
60
60
  }))), c = i(
61
- () => g.value.filter((e) => t.managableOnly ? e.managable : !0).filter((e) => a.value ? e.profile.name.toLowerCase().includes(a.value.toLowerCase()) : !0).filter((e) => t.multiple ? !0 : L(e.customAttributes, d.value)).map((e) => ({
61
+ () => g.value.filter((e) => t.managableOnly ? e.managable : !0).filter((e) => a.value ? e.profile.name.toLowerCase().includes(a.value.toLowerCase()) : !0).filter((e) => t.multiple ? !0 : L(e.customAttributes || {}, d.value)).map((e) => ({
62
62
  label: e.profile.name,
63
63
  value: e._id
64
64
  })).filter((e) => {
@@ -97,10 +97,10 @@ const ie = { class: "w-full flex flex-col gap-8" }, ce = { class: "flex items-ce
97
97
  n.value = null;
98
98
  return;
99
99
  }
100
- const l = g.value.filter((o) => L(o.customAttributes, d.value));
100
+ const l = g.value.filter((o) => L(o.customAttributes || {}, d.value));
101
101
  n.value = l.map((o) => o._id);
102
102
  } else {
103
- const l = g.value.filter((o) => L(o.customAttributes, d.value));
103
+ const l = g.value.filter((o) => L(o.customAttributes || {}, d.value));
104
104
  l.length === 0 ? n.value = null : n.value = (e = l[0]) == null ? void 0 : e._id;
105
105
  }
106
106
  }), (e, l) => {