@feedmepos/mf-inventory-portal 0.0.5 → 0.0.7-dev.1

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.
Files changed (74) hide show
  1. package/dist/{ApprovalView-CTQdDgGH.js → ApprovalView-BYZcvkso.js} +6 -6
  2. package/dist/BindingsDialog-pdS86VDU.js +94 -0
  3. package/dist/{BindingsPicker-CQIGhTCR.js → BindingsPicker-D891Cfzu.js} +2 -2
  4. package/dist/{BindingsTable-Da4BLkvc.js → BindingsTable-tmr6QwLk.js} +30 -31
  5. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DcixBOcX.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Bss0q2Zt.js} +7 -7
  6. package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-BXU7x6di.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-BHcLUkdm.js} +19 -20
  7. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CD89qCIa.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BIww2Noe.js} +1 -1
  8. package/dist/IngredientsView-BH6G7830.js +819 -0
  9. package/dist/{IntegrationView-BRWYO3VE.js → IntegrationView-CfJn6Fzn.js} +3 -3
  10. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-39U8Iavr.js +258 -0
  11. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DBK7mpQS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-nDxqau1g.js} +1 -1
  12. package/dist/{PurchaseOrderPrintPreview-CH9gVYDg.js → PurchaseOrderPrintPreview-Db2U_IQL.js} +1 -1
  13. package/dist/ReceiveRequestView-CgVfcS8C.js +1483 -0
  14. package/dist/{RecipeView-DFG9Wkx-.js → RecipeView-C9_Y_A9b.js} +58 -58
  15. package/dist/StockView-CoUI3Faj.js +1916 -0
  16. package/dist/SupplierView-CNq6wVfN.js +818 -0
  17. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Ffe9bhq8.js → TransferDetails.vue_vue_type_script_setup_true_lang-Cmajrg-9.js} +5 -5
  18. package/dist/{UnitView-C3XVSbJY.js → UnitView-Buyp4Gnc.js} +190 -177
  19. package/dist/{WarehouseView-BntzAdz3.js → WarehouseView-DbUib0PR.js} +56 -56
  20. package/dist/api/inventory.d.ts +33 -0
  21. package/dist/api/stock-estimate.d.ts +16 -0
  22. package/dist/api/stock.d.ts +8 -0
  23. package/dist/app-DM4Thqjw.js +42756 -0
  24. package/dist/app.js +1 -1
  25. package/dist/components/StockForecast.vue.d.ts +12 -0
  26. package/dist/components/StockForecastProps.d.ts +3 -0
  27. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +16 -0
  28. package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -0
  29. package/dist/core.d.ts +3 -2
  30. package/dist/date2-DpU4LDaP.js +199 -0
  31. package/dist/dayjs.min-D4Q_pHH9.js +13556 -0
  32. package/dist/{decimal-D3a0BwVj.js → decimal-M4vjE6Br.js} +1 -1
  33. package/dist/{fuzzy-BW8ZYsDG.js → fuzzy-fD_FTJWH.js} +1 -1
  34. package/dist/helper/number.d.ts +1 -0
  35. package/dist/{init-date-range-M3Q03-Fd.js → init-date-range-DJ1Nl5TB.js} +1 -1
  36. package/dist/{layout-BvUjg6JS.js → layout-kY567oHX.js} +1 -1
  37. package/dist/{rules-DHfAMDW3.js → rules-CVxh5XVG.js} +3 -3
  38. package/dist/stock-estimate-lkaYlz7I.js +90 -0
  39. package/dist/stores/api.d.ts +1 -0
  40. package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
  41. package/dist/stores/inventory.d.ts +64 -0
  42. package/dist/stores/stock-estimate.d.ts +11 -0
  43. package/dist/stores/supplier.d.ts +19 -1
  44. package/dist/style.css +1 -1
  45. package/dist/{supplier-DTiiOLtg.js → supplier-evd71Y1H.js} +3 -3
  46. package/dist/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/{use-inventory-binding-dialog-B6JO7050.js → use-inventory-binding-dialog-CGuXojFC.js} +2 -2
  48. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -0
  49. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +16 -0
  50. package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +23 -0
  51. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +213 -7
  52. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +102 -2
  53. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +306 -6
  54. package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +9 -0
  55. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +32 -0
  56. package/dist/views/stock/type.d.ts +1 -0
  57. package/dist/views/supplier/components/SupplierForm.vue.d.ts +38 -2
  58. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +45 -0
  59. package/dist/views/supplier/composables/use-supplier-table.d.ts +19 -1
  60. package/dist/{xlsx-BljO4Lx2.js → xlsx-DpBw8KA4.js} +1010 -1010
  61. package/package.json +13 -7
  62. package/dist/BindingsDialog-DvX_DRsO.js +0 -82
  63. package/dist/IngredientsView-2ZKdzsgI.js +0 -739
  64. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CnsDmPTe.js +0 -240
  65. package/dist/ReceiveRequestView-DQBqc3GF.js +0 -1298
  66. package/dist/StockView-DLWMp_I5.js +0 -1733
  67. package/dist/SupplierView-CZhM2ie3.js +0 -607
  68. package/dist/app-BzDhmCVx.js +0 -36639
  69. package/dist/components/shell/inventory/binding-ui.test.d.ts +0 -1
  70. package/dist/components/ui-library/FmSpecialChip.vue.d.ts +0 -79
  71. package/dist/date2-C7HiAWQG.js +0 -209
  72. package/dist/dayjs.min-Db57WhI9.js +0 -282
  73. package/dist/id-to-date-ReZIpUDw.js +0 -30
  74. package/dist/index-D46it8Rk.js +0 -12956
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Z, ref as v, watch as B, computed as I, resolveComponent as ee, openBlock as h, createBlock as P, withCtx as D, createElementVNode as o, createVNode as r, normalizeStyle as te, unref as e, toDisplayString as ae, createElementBlock as oe, createCommentVNode as re, Teleport as se, mergeProps as ne } from "vue";
2
- import { o as d, b as le } from "./app-BzDhmCVx.js";
3
- import { a as pe } from "./init-date-range-M3Q03-Fd.js";
4
- import { a as ce, b as ie, _ as me } from "./TransferDetails.vue_vue_type_script_setup_true_lang-Ffe9bhq8.js";
5
- import { q as H } from "./date2-C7HiAWQG.js";
2
+ import { o as d, e as le } from "./app-DM4Thqjw.js";
3
+ import { a as pe } from "./init-date-range-DJ1Nl5TB.js";
4
+ import { a as ce, b as ie, _ as me } from "./TransferDetails.vue_vue_type_script_setup_true_lang-Cmajrg-9.js";
5
+ import { q as H } from "./date2-DpU4LDaP.js";
6
6
  import { _ as ue } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js";
7
- import { _ as de } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DcixBOcX.js";
8
- import { _ as fe, F as f, u as _e } from "./layout-BvUjg6JS.js";
7
+ import { _ as de } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Bss0q2Zt.js";
8
+ import { _ as fe, F as f, u as _e } from "./layout-kY567oHX.js";
9
9
  import { useBreakpoints as ve } from "@feedmepos/ui-library";
10
10
  const he = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, De = { class: "px-8 flex gap-8 items-center xs:gap-0 xs:flex-col-reverse sm:gap-0 sm:flex-col-reverse" }, xe = { class: "xs:w-full sm:w-full flex gap-8 items-center overflow-x-auto no-scrollbar py-8" }, ge = /* @__PURE__ */ o("div", { class: "h-32" }, null, -1), be = { class: "flex flex-col py-8" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Oe = {
11
11
  key: 0,
@@ -0,0 +1,94 @@
1
+ import { defineComponent as C, ref as o, onMounted as M, onUnmounted as x, watch as F, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-39U8Iavr.js";
3
+ import { u as L, x as S } from "./app-DM4Thqjw.js";
4
+ const U = {
5
+ key: 0,
6
+ class: "flex justify-end gap-8 items-center"
7
+ }, E = {
8
+ key: 1,
9
+ class: "p-24 flex items-center justify-center gap-16"
10
+ }, N = /* @__PURE__ */ P("div", null, "Loading bindings dialog...", -1), O = /* @__PURE__ */ C({
11
+ __name: "BindingsDialog",
12
+ setup(j) {
13
+ const p = L(), d = o(!0), s = o(new Array()), u = o(), n = S(y);
14
+ async function y() {
15
+ await p.readInventory(), u.value = n.onMessage("props:inventory-bindings", (e) => {
16
+ d.value = !1, s.value = e;
17
+ }).onMessage("props:inventory-bindings:validate", () => {
18
+ var e;
19
+ (e = f.value) == null || e.validateInputs();
20
+ }), n.sendMessage("props:inventory-bindings");
21
+ }
22
+ function b() {
23
+ n.sendMessage("@submit:inventory-bindings", s.value);
24
+ }
25
+ function _() {
26
+ n.sendMessage("@close:inventory-bindings");
27
+ }
28
+ function k(e) {
29
+ n.sendMessage("@click:pick-inventory-bindings", e);
30
+ }
31
+ const m = o(), r = o(!0);
32
+ M(() => {
33
+ v();
34
+ const e = m.value;
35
+ e && new ResizeObserver(() => {
36
+ n.sendMessage("resize", e.scrollHeight);
37
+ }).observe(e);
38
+ }), x(() => {
39
+ var e, t;
40
+ (t = (e = u.value) == null ? void 0 : e.removeEventListener) == null || t.call(e);
41
+ }), F([() => s.value], ([e]) => {
42
+ n.sendMessage("@update:inventory-bindings", e);
43
+ });
44
+ function v() {
45
+ const e = new URLSearchParams(window.location.href.split("?")[1] || "");
46
+ console.log(v.name, e, e.has("hideButton")), r.value = e.has("hideButton");
47
+ }
48
+ const f = o();
49
+ return (e, t) => {
50
+ const g = l("FmButton"), h = l("FmForm"), B = l("FmCircularProgress");
51
+ return i(), c("div", {
52
+ class: "bg-white",
53
+ ref_key: "resizeableRef",
54
+ ref: m
55
+ }, [
56
+ d.value ? (i(), c("div", E, [
57
+ a(B, { size: "md" }),
58
+ N
59
+ ])) : (i(), I(h, {
60
+ key: 0,
61
+ onValidationSuccess: t[1] || (t[1] = () => r.value ? void 0 : b()),
62
+ ref_key: "formRef",
63
+ ref: f,
64
+ class: "flex flex-col gap-16"
65
+ }, {
66
+ default: R(() => [
67
+ a(V, {
68
+ "model-value": s.value,
69
+ "onUpdate:modelValue": t[0] || (t[0] = (w) => s.value = w),
70
+ "iframe-mode": "",
71
+ "onClick:pickInventoryBindings": k
72
+ }, null, 8, ["model-value"]),
73
+ r.value ? z("", !0) : (i(), c("div", U, [
74
+ a(g, {
75
+ type: "button",
76
+ variant: "tertiary",
77
+ label: "Close",
78
+ onClick: _
79
+ }),
80
+ a(g, {
81
+ type: "submit",
82
+ label: "Submit"
83
+ })
84
+ ]))
85
+ ]),
86
+ _: 1
87
+ }, 512))
88
+ ], 512);
89
+ };
90
+ }
91
+ });
92
+ export {
93
+ O as default
94
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
- import { _ as x } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-BXU7x6di.js";
3
- import { u as M, x as h } from "./app-BzDhmCVx.js";
2
+ import { _ as x } from "./FmMultiselectDialog.vue_vue_type_script_setup_true_lang-BHcLUkdm.js";
3
+ import { u as M, x as h } from "./app-DM4Thqjw.js";
4
4
  const z = {
5
5
  key: 0,
6
6
  class: "flex flex-col gap-16"
@@ -1,10 +1,9 @@
1
- import { defineComponent as x, ref as o, provide as C, computed as v, resolveComponent as h, openBlock as r, createElementBlock as u, Fragment as I, renderList as L, createElementVNode as p, toDisplayString as k, createVNode as w, withModifiers as F, createStaticVNode as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
2
- import { e as b, u as P, x as R } from "./app-BzDhmCVx.js";
1
+ import { defineComponent as h, ref as o, provide as C, computed as v, resolveComponent as x, openBlock as r, createElementBlock as u, Fragment as L, renderList as F, createElementVNode as p, toDisplayString as k, createVNode as w, withModifiers as I, createStaticVNode as N, onMounted as E, onUnmounted as z, createBlock as M } from "vue";
2
+ import { h as b, u as P, x as R } from "./app-DM4Thqjw.js";
3
+ import "./dayjs.min-D4Q_pHH9.js";
3
4
  import "@feedmepos/ui-library";
4
- import "./fuzzy-BW8ZYsDG.js";
5
- import "./dayjs.min-Db57WhI9.js";
6
- import "./index-D46it8Rk.js";
7
- const U = { class: "" }, D = /* @__PURE__ */ N('<div class="text-title font-bold mb-16">Inventory</div><div class="flex font-bold bg-[#F7F8FA]"><div class="flex-grow-0 flex-shrink-0 basis-5/12 py-8"></div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Ingredient</div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Recipe</div><div class="flex-grow-0 flex-shrink-0 basis-1/12 py-8"></div></div>', 2), O = ["onClick"], V = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, T = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, A = /* @__PURE__ */ x({
5
+ import "./fuzzy-fD_FTJWH.js";
6
+ const U = { class: "" }, D = /* @__PURE__ */ N('<div class="flex font-bold bg-[#F7F8FA]"><div class="flex-grow-0 flex-shrink-0 basis-5/12 py-8"></div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Ingredient</div><div class="flex-grow-0 flex-shrink-0 basis-3/12 py-8">Recipe</div><div class="flex-grow-0 flex-shrink-0 basis-1/12 py-8"></div></div>', 1), O = ["onClick"], V = { class: "flex-grow-0 flex-shrink-0 basis-5/12 py-8 pl-8" }, $ = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, S = { class: "flex-grow-0 flex-shrink-0 basis-3/12 py-8" }, T = { class: "flex-grow-0 flex-shrink-0 basis-1/12 py-4" }, A = /* @__PURE__ */ h({
8
7
  __name: "binding-ui",
9
8
  props: {
10
9
  items: { default: () => [] },
@@ -24,24 +23,24 @@ const U = { class: "" }, D = /* @__PURE__ */ N('<div class="text-title font-bold
24
23
  C("closeDialog", () => {
25
24
  a.value.isOpen = !a.value.isOpen;
26
25
  });
27
- const n = g, f = l, m = v(() => n.items.map((i) => ({
28
- key: i.key,
29
- name: i.name,
30
- _skuLinked: i.bindings.filter(
31
- ({ type: t, id: e }) => t === b.enum.SKU && n.skus.some((c) => c._id === e)
26
+ const i = g, f = l, _ = v(() => i.items.map((n) => ({
27
+ key: n.key,
28
+ name: n.name,
29
+ _skuLinked: n.bindings.filter(
30
+ ({ type: t, id: e }) => t === b.enum.SKU && i.skus.some((c) => c._id === e)
32
31
  ).length,
33
- _recipeLinked: i.bindings.filter(
34
- ({ type: t, id: e }) => t === b.enum.RECIPE && n.recipes.some((c) => c._id === e)
32
+ _recipeLinked: n.bindings.filter(
33
+ ({ type: t, id: e }) => t === b.enum.RECIPE && i.recipes.some((c) => c._id === e)
35
34
  ).length,
36
35
  onUpdate: async () => {
37
- n.editable && f("click:open-binding-dialog", n.type, i);
36
+ i.editable && f("click:open-binding-dialog", i.type, n);
38
37
  }
39
38
  })));
40
- return (_, i) => {
41
- const t = h("FmButton");
39
+ return (m, n) => {
40
+ const t = x("FmButton");
42
41
  return r(), u("div", U, [
43
42
  D,
44
- (r(!0), u(I, null, L(m.value, (e) => (r(), u("div", {
43
+ (r(!0), u(L, null, F(_.value, (e) => (r(), u("div", {
45
44
  key: e.key,
46
45
  class: "cursor-pointer flex border-t border-[rgba(17,32,47,0.15] items-center",
47
46
  onClick: e.onUpdate
@@ -55,9 +54,9 @@ const U = { class: "" }, D = /* @__PURE__ */ N('<div class="text-title font-bold
55
54
  icon: "edit",
56
55
  "icon-color": "#000",
57
56
  size: "md",
58
- disabled: !n.editable,
57
+ disabled: !i.editable,
59
58
  type: "button",
60
- onClick: F(e.onUpdate, ["stop"])
59
+ onClick: I(e.onUpdate, ["stop"])
61
60
  }, null, 8, ["disabled", "onClick"])
62
61
  ])
63
62
  ], 8, O))), 128))
@@ -67,20 +66,20 @@ const U = { class: "" }, D = /* @__PURE__ */ N('<div class="text-title font-bold
67
66
  }), Y = {
68
67
  key: 1,
69
68
  class: "p-24 flex items-center justify-center gap-16"
70
- }, j = /* @__PURE__ */ p("div", null, "Loading bindings table...", -1), W = /* @__PURE__ */ x({
69
+ }, j = /* @__PURE__ */ p("div", null, "Loading bindings table...", -1), Q = /* @__PURE__ */ h({
71
70
  __name: "BindingsTable",
72
71
  setup(g) {
73
- const l = P(), a = o(!0), n = o(new Array()), f = v(() => l.recipes), m = v(() => l.skus), _ = o(""), i = R(e), t = o();
72
+ const l = P(), a = o(!0), i = o(new Array()), f = v(() => l.recipes), _ = v(() => l.skus), m = o(""), n = R(e), t = o();
74
73
  async function e() {
75
- await l.readInventory(), t.value = i.onMessage(
74
+ await l.readInventory(), t.value = n.onMessage(
76
75
  "props:grouped-bindings",
77
76
  (s) => {
78
- a.value = !1, n.value = s;
77
+ a.value = !1, i.value = s;
79
78
  }
80
- ), i.sendMessage("props:grouped-bindings");
79
+ ), n.sendMessage("props:grouped-bindings");
81
80
  }
82
81
  async function c(s, d) {
83
- i.sendMessage("@click:open-binding-dialog", {
82
+ n.sendMessage("@click:open-binding-dialog", {
84
83
  key: s,
85
84
  binding: d
86
85
  });
@@ -89,13 +88,13 @@ const U = { class: "" }, D = /* @__PURE__ */ N('<div class="text-title font-bold
89
88
  return E(() => {
90
89
  const s = y.value;
91
90
  s && new ResizeObserver(() => {
92
- i.sendMessage("resize", s.scrollHeight);
91
+ n.sendMessage("resize", s.scrollHeight);
93
92
  }).observe(s);
94
93
  }), z(() => {
95
94
  var s, d;
96
95
  (d = (s = t.value) == null ? void 0 : s.removeEventListener) == null || d.call(s);
97
96
  }), (s, d) => {
98
- const B = h("FmCircularProgress");
97
+ const B = x("FmCircularProgress");
99
98
  return r(), u("div", {
100
99
  class: "bg-white",
101
100
  ref_key: "resizeableRef",
@@ -106,10 +105,10 @@ const U = { class: "" }, D = /* @__PURE__ */ N('<div class="text-title font-bold
106
105
  j
107
106
  ])) : (r(), M(A, {
108
107
  key: 0,
109
- items: n.value,
108
+ items: i.value,
110
109
  recipes: f.value,
111
- skus: m.value,
112
- type: _.value,
110
+ skus: _.value,
111
+ type: m.value,
113
112
  editable: "",
114
113
  "onClick:openBindingDialog": c
115
114
  }, null, 8, ["items", "recipes", "skus", "type"]))
@@ -118,5 +117,5 @@ const U = { class: "" }, D = /* @__PURE__ */ N('<div class="text-title font-bold
118
117
  }
119
118
  });
120
119
  export {
121
- W as default
120
+ Q as default
122
121
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, ref as V, computed as p, resolveComponent as a, openBlock as t, createElementBlock as v, createVNode as l, withCtx as w, createElementVNode as i, toDisplayString as H, unref as _, Fragment as k, renderList as C, createBlock as d, createCommentVNode as L } from "vue";
2
- import { b as I } from "./app-BzDhmCVx.js";
2
+ import { e as I } from "./app-DM4Thqjw.js";
3
3
  const B = { class: "inline-flex" }, D = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, z = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, E = {
4
4
  class: "overflow-hidden overflow-y-scroll",
5
5
  style: { maxHeight: "105px" }
@@ -13,9 +13,9 @@ const B = { class: "inline-flex" }, D = { class: "inline-flex rounded-md items-c
13
13
  () => n.locations.map((o) => ({ label: o.name, value: o.dbName, type: o.type })).filter(
14
14
  (o) => s.value ? o.label.toLocaleLowerCase().includes(s.value.toLocaleLowerCase()) : !0
15
15
  )
16
- ), b = p(
17
- () => f.value.filter((o) => o.type === "restaurant")
18
16
  ), h = p(
17
+ () => f.value.filter((o) => o.type === "restaurant")
18
+ ), b = p(
19
19
  () => f.value.filter((o) => o.type === "warehouse")
20
20
  );
21
21
  function y({ value: o }) {
@@ -52,7 +52,7 @@ const B = { class: "inline-flex" }, D = { class: "inline-flex rounded-md items-c
52
52
  l(F, { label: "Restaurant" }),
53
53
  l(m),
54
54
  i("div", E, [
55
- (t(!0), v(k, null, C(b.value, (e) => {
55
+ (t(!0), v(k, null, C(h.value, (e) => {
56
56
  var r;
57
57
  return t(), d(u, {
58
58
  key: e.value,
@@ -62,7 +62,7 @@ const B = { class: "inline-flex" }, D = { class: "inline-flex rounded-md items-c
62
62
  }, null, 8, ["model-value", "label", "onClick"]);
63
63
  }), 128))
64
64
  ]),
65
- b.value.length ? L("", !0) : (t(), d(u, {
65
+ h.value.length ? L("", !0) : (t(), d(u, {
66
66
  key: 0,
67
67
  disabled: "",
68
68
  label: "No result found"
@@ -70,7 +70,7 @@ const B = { class: "inline-flex" }, D = { class: "inline-flex rounded-md items-c
70
70
  l(F, { label: "Warehouse" }),
71
71
  l(m),
72
72
  i("div", R, [
73
- (t(!0), v(k, null, C(h.value, (e) => {
73
+ (t(!0), v(k, null, C(b.value, (e) => {
74
74
  var r;
75
75
  return t(), d(u, {
76
76
  key: e.value,
@@ -80,7 +80,7 @@ const B = { class: "inline-flex" }, D = { class: "inline-flex rounded-md items-c
80
80
  }, null, 8, ["model-value", "label", "onClick"]);
81
81
  }), 128))
82
82
  ]),
83
- h.value.length ? L("", !0) : (t(), d(u, {
83
+ b.value.length ? L("", !0) : (t(), d(u, {
84
84
  key: 1,
85
85
  disabled: "",
86
86
  label: "No result found"
@@ -1,7 +1,7 @@
1
- import { defineComponent as $, ref as C, onMounted as N, watch as E, computed as f, resolveComponent as m, openBlock as v, createElementBlock as _, createElementVNode as s, createVNode as i, createTextVNode as M, toDisplayString as T, createSlots as U, withCtx as h, createBlock as I, Fragment as j, renderList as z } from "vue";
1
+ import { defineComponent as $, ref as C, onMounted as N, watch as E, computed as f, resolveComponent as m, openBlock as v, createElementBlock as _, createElementVNode as s, createVNode as d, createTextVNode as M, toDisplayString as T, createSlots as U, withCtx as h, createBlock as I, Fragment as j, renderList as z } from "vue";
2
2
  import { useDialogChild as q } from "@feedmepos/ui-library";
3
- import { v as c } from "./app-BzDhmCVx.js";
4
- import { f as H } from "./fuzzy-BW8ZYsDG.js";
3
+ import { v as c } from "./app-DM4Thqjw.js";
4
+ import { f as H } from "./fuzzy-fD_FTJWH.js";
5
5
  const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-between py-24 items-center relative" }, J = { class: "flex gap-16 basis-1/2" }, K = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, O = /* @__PURE__ */ s("span", { class: "xs:hidden" }, "selected", -1), P = /* @__PURE__ */ s("div", { class: "absolute pointer-events-none -bottom-[304px] left-0 w-full h-[308px] overflow-hidden flex flex-col justify-between" }, [
6
6
  /* @__PURE__ */ s("div", { class: "h-1 fm-shadow-light-200" }),
7
7
  /* @__PURE__ */ s("div", {
@@ -24,18 +24,18 @@ const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-betwe
24
24
  },
25
25
  emits: ["update:modelValue"],
26
26
  setup(L, { emit: B }) {
27
- const g = q(), b = L, D = B, t = C(b.modelValue ?? []);
27
+ const y = q(), b = L, D = B, t = C(b.modelValue ?? []);
28
28
  N(() => {
29
- g.emitData(t.value);
29
+ y.emitData(t.value);
30
30
  }), E([() => t.value], ([l]) => {
31
- g.emitData(l), D("update:modelValue", l);
31
+ y.emitData(l), D("update:modelValue", l);
32
32
  });
33
33
  function x(l) {
34
34
  return !!t.value.find((e) => c(e, l));
35
35
  }
36
- function y(l, e) {
37
- const d = x(l);
38
- if (!(e && d || !e && !d))
36
+ function g(l, e) {
37
+ const i = x(l);
38
+ if (!(e && i || !e && !i))
39
39
  if (e) {
40
40
  const a = [...t.value, l];
41
41
  t.value = a;
@@ -64,17 +64,17 @@ const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-betwe
64
64
  ).map((l) => l.value);
65
65
  }
66
66
  return (l, e) => {
67
- const d = m("FmIcon"), a = m("FmTextField"), p = m("FmCheckbox"), k = m("FmListItem"), A = m("FmList");
67
+ const i = m("FmIcon"), a = m("FmTextField"), p = m("FmCheckbox"), k = m("FmListItem"), A = m("FmList");
68
68
  return v(), _("div", R, [
69
69
  s("div", G, [
70
70
  s("div", J, [
71
- i(d, { name: "autorenew" }),
71
+ d(i, { name: "autorenew" }),
72
72
  s("span", K, [
73
73
  M(T(t.value.length) + " item(s) ", 1),
74
74
  O
75
75
  ])
76
76
  ]),
77
- i(a, {
77
+ d(a, {
78
78
  class: "basis-1/2",
79
79
  modelValue: n.value,
80
80
  "onUpdate:modelValue": e[1] || (e[1] = (o) => n.value = o),
@@ -84,7 +84,7 @@ const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-betwe
84
84
  n.value.length ? {
85
85
  name: "append",
86
86
  fn: h(() => [
87
- i(d, {
87
+ d(i, {
88
88
  class: "cursor-pointer",
89
89
  name: "close",
90
90
  onClick: e[0] || (e[0] = (o) => n.value = "")
@@ -98,15 +98,14 @@ const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-betwe
98
98
  s("div", Q, [
99
99
  u.value.length ? (v(), I(A, { key: 0 }, {
100
100
  default: h(() => [
101
- i(k, {
101
+ d(k, {
102
102
  "model-value": r.value,
103
103
  indeterminate: F.value,
104
104
  value: "",
105
- onClick: e[2] || (e[2] = (o) => S()),
106
- style: { "padding-top": "0", "padding-bottom": "0" }
105
+ onClick: e[2] || (e[2] = (o) => S())
107
106
  }, {
108
107
  prepend: h(() => [
109
- i(p, {
108
+ d(p, {
110
109
  "model-value": r.value,
111
110
  indeterminate: F.value,
112
111
  label: r.value ? "Remove all" : "Select all",
@@ -119,13 +118,13 @@ const R = { class: "flex flex-col h-[400px]" }, G = { class: "flex justify-betwe
119
118
  key: o.value,
120
119
  label: o.label,
121
120
  sublabel: o.sublabel,
122
- onClick: (w) => y(o.value, !x(o.value)),
121
+ onClick: (w) => g(o.value, !x(o.value)),
123
122
  style: { "padding-top": "4px", "padding-bottom": "4px", "padding-left": "32px" }
124
123
  }, {
125
124
  prepend: h(() => [
126
- i(p, {
125
+ d(p, {
127
126
  "model-value": x(o.value),
128
- "onUpdate:modelValue": (w) => y(o.value, w),
127
+ "onUpdate:modelValue": (w) => g(o.value, w),
129
128
  value: o.value
130
129
  }, null, 8, ["model-value", "onUpdate:modelValue", "value"])
131
130
  ]),
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, Fragment as u, renderList as p, unref as x } from "vue";
2
- import { a, b as d } from "./date2-C7HiAWQG.js";
2
+ import { a, b as d } from "./date2-DpU4LDaP.js";
3
3
  const y = { class: "flex flex-col" }, _ = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, v = { class: "flex-1 py-8 px-16" }, h = /* @__PURE__ */ r("div", {
4
4
  class: "flex-0 py-8 px-16",
5
5
  style: { "flex-basis": "120px" }