@feedmepos/mf-inventory-portal 1.0.7 → 1.0.8-dev.2

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 (95) hide show
  1. package/dist/{App-DF14rGlK.js → App-VjopKXRf.js} +50 -49
  2. package/dist/{ApprovalView-C_xhq-_c.js → ApprovalView-Bc8OqfVg.js} +24 -24
  3. package/dist/{BindingsDialog-CCY1fDj8.js → BindingsDialog-zWAOfSXc.js} +4 -4
  4. package/dist/{BindingsPicker-CnXbK5O3.js → BindingsPicker-Bf5LuJiL.js} +6 -6
  5. package/dist/{BindingsTable-cQIUUuVv.js → BindingsTable-D2N-3mnJ.js} +8 -8
  6. package/dist/{ClosingDraftView-DUZ31x3s.js → ClosingDraftView-BwbzajJY.js} +464 -463
  7. package/dist/{ClosingTemplateView-6ysEDEcV.js → ClosingTemplateView-CsAIbfui.js} +10 -10
  8. package/dist/{DeliveryOrderPrintPreview-BGjFS8h7.js → DeliveryOrderPrintPreview-CjylpaJj.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CanJ2fzb.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C_xdzdLD.js} +32 -32
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BcKtJQMt.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DhgHX4S_.js} +86 -86
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bb9xMoX-.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DPa8Pto8.js} +1 -1
  12. package/dist/{IngredientGroupView-i08KHlW7.js → IngredientGroupView-D6YzbWdd.js} +11 -11
  13. package/dist/{IngredientsView-D0tBukwK.js → IngredientsView-g-73afqm.js} +15 -14
  14. package/dist/{IntegrationView-BqCrKL13.js → IntegrationView-CEML0dP4.js} +86 -85
  15. package/dist/{InventoryBindingForm-BJwIFQVS.js → InventoryBindingForm-E0wJOA8L.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DU9j1Q8M.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DFXmypAs.js} +27 -27
  17. package/dist/{InventoryBindingSummary-B2M3Th8T.js → InventoryBindingSummary-sBQvAPBw.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BH4A_Lc5.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DOeDgymo.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CdxCyEBi.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DIqYY1-C.js} +10 -10
  20. package/dist/{PublishView-B9x92vDM.js → PublishView-D_psCmiQ.js} +7 -7
  21. package/dist/{PurchaseOrderPrintPreview-MbGDNmgh.js → PurchaseOrderPrintPreview-5QqjPwWN.js} +4 -4
  22. package/dist/{ReceiveRequestView-CTNycYUr.js → ReceiveRequestView-CBGxqac6.js} +53 -52
  23. package/dist/{RecipeView-sHTcJgzP.js → RecipeView-BAjHNWST.js} +32 -32
  24. package/dist/{StockView-CUv4dcGJ.js → StockView-Bc62jbCV.js} +73 -72
  25. package/dist/{SupplierView-hu6OhDss.js → SupplierView-Cyucz_US.js} +159 -159
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CljJoB4v.js +1895 -0
  27. package/dist/{TransferTemplateView-DMSkUc0D.js → TransferTemplateView-BWURlmou.js} +291 -290
  28. package/dist/{UnitView-B5q7IVbT.js → UnitView-cjLpKfoN.js} +23 -23
  29. package/dist/{WarehouseView-Ds6z4Vz6.js → WarehouseView-CUtg5Aiw.js} +26 -26
  30. package/dist/api/bill.d.ts +2 -2
  31. package/dist/api/food-market-hub.d.ts +1 -1
  32. package/dist/api/inventory.d.ts +44 -44
  33. package/dist/api/netsuite.d.ts +3 -3
  34. package/dist/api/purchase-order.d.ts +5 -1
  35. package/dist/{app-BmsY87Mv.js → app-Dgg5mqsW.js} +17155 -17625
  36. package/dist/app.d.ts +7 -7
  37. package/dist/app.js +1 -1
  38. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +8 -8
  39. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  40. package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
  41. package/dist/composable/usePromise.d.ts +41 -0
  42. package/dist/{decimal-Baw9w4_A.js → decimal-DcqP_fAm.js} +1 -1
  43. package/dist/feature-C4mZ_d2m.js +17352 -0
  44. package/dist/{format-unit-display-D0_KiU3j.js → format-unit-display-D2Uk9Ze_.js} +60 -60
  45. package/dist/{index-CDydl7WA.js → index-YuTB_T1B.js} +1 -1
  46. package/dist/{index-C_GU5Tc8.js → index-peSGn9vg.js} +7 -6
  47. package/dist/{stock-C-hm8Kdq.js → stock-CDP8ZqBZ.js} +1 -1
  48. package/dist/stores/feature.d.ts +3 -20
  49. package/dist/stores/integration/foodmarkethub.d.ts +1 -1
  50. package/dist/stores/integration/netsuite.d.ts +7 -7
  51. package/dist/stores/inventory.d.ts +44 -44
  52. package/dist/stores/location.d.ts +137 -137
  53. package/dist/{supplier-RX_yr24c.js → supplier-C5GbDMxT.js} +4 -4
  54. package/dist/tsconfig.app.tsbuildinfo +1 -1
  55. package/dist/{use-ingredient-select-dialog-BZhczMUl.js → use-ingredient-select-dialog-nH01sayt.js} +1 -1
  56. package/dist/{use-inventory-binding-dialog-dV-92pLe.js → use-inventory-binding-dialog-CJe6QdGb.js} +1 -1
  57. package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
  58. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
  59. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
  60. package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
  61. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +68 -68
  62. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +408 -408
  63. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
  64. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
  65. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
  66. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
  67. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  68. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
  69. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
  70. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
  71. package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
  72. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
  73. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
  74. package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +204 -204
  75. package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +2 -2
  76. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +665 -637
  77. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
  78. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
  79. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
  80. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +614 -0
  81. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1190 -1142
  82. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1192 -1144
  83. package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +6 -0
  84. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  85. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  86. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
  87. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
  88. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
  89. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
  90. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +805 -805
  91. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +805 -805
  92. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
  93. package/dist/{vue-i18n-sbHu6D5a.js → vue-i18n-NNRWZURD.js} +284 -284
  94. package/package.json +5 -3
  95. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CCKlQGMf.js +0 -1746
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as H, computed as g, openBlock as v, createElementBlock as C, createElementVNode as l, Fragment as j, renderList as q, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as $, createBlock as T, withCtx as A, createVNode as y, unref as o, isRef as ee, normalizeClass as re, normalizeStyle as ie, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
2
- import { a as G, e as w, S as ce, h as pe, D as te, i as z, f as le, m as N, A as fe, j as J, L as ve, N as ye, q as ne, u as be, b as ge, B as xe, _ as _e, C as he, E as Ve, G as Ue } from "./app-BmsY87Mv.js";
2
+ import { a as K, d as w, S as ce, f as pe, D as te, h as L, e as le, l as N, A as fe, i as J, K as ve, L as ye, p as ne, u as be, b as ge, z as xe, _ as _e, B as he, C as Ve, E as Ue } from "./app-Dgg5mqsW.js";
3
3
  import { useDialog as we, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ce } from "@feedmepos/ui-library";
4
4
  import { i as Se, _ as ke } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { defineStore as Ee, storeToRefs as Fe } from "pinia";
6
- import { useI18n as K } from "@feedmepos/mf-common";
7
- import { F as $e } from "./decimal-Baw9w4_A.js";
8
- import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BH4A_Lc5.js";
6
+ import { useI18n as G } from "@feedmepos/mf-common";
7
+ import { F as $e } from "./decimal-DcqP_fAm.js";
8
+ import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DOeDgymo.js";
9
9
  const De = { class: "flex flex-col gap-8" }, Ae = {
10
10
  key: 0,
11
11
  class: "flex flex-col"
@@ -18,10 +18,10 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
18
18
  }, Te = { class: "flex-1 py-8 px-16" }, Be = {
19
19
  class: "flex-0 py-8 px-16",
20
20
  style: { "flex-basis": "240px" }
21
- }, Le = {
21
+ }, ze = {
22
22
  key: 2,
23
23
  class: "flex flex-col"
24
- }, ze = { class: "flex-1 py-8 px-16" }, Ne = {
24
+ }, Le = { class: "flex-1 py-8 px-16" }, Ne = {
25
25
  class: "flex-0 py-8 px-16",
26
26
  style: { "flex-basis": "240px" }
27
27
  }, je = /* @__PURE__ */ H({
@@ -30,7 +30,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
30
30
  unit: {}
31
31
  },
32
32
  setup(k) {
33
- const f = k, b = G(), i = g(() => b.validateUnitUsage(f.unit)), r = g(() => i.value.filter((c) => c.from === "INGREDIENT")), s = g(() => i.value.filter((c) => c.from === "RECIPE")), d = g(() => i.value.filter((c) => c.from === "MENU"));
33
+ const f = k, b = K(), i = g(() => b.validateUnitUsage(f.unit)), r = g(() => i.value.filter((c) => c.from === "INGREDIENT")), s = g(() => i.value.filter((c) => c.from === "RECIPE")), d = g(() => i.value.filter((c) => c.from === "MENU"));
34
34
  return (c, p) => (v(), C("div", De, [
35
35
  p[3] || (p[3] = l("div", { class: "fm-typo-en-body-md-400" }, "Sorry, this unit is used in the following modules:", -1)),
36
36
  r.value.length ? (v(), C("div", Ae, [
@@ -71,7 +71,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
71
71
  ]);
72
72
  }), 128))
73
73
  ])) : Y("", !0),
74
- d.value.length ? (v(), C("div", Le, [
74
+ d.value.length ? (v(), C("div", ze, [
75
75
  p[2] || (p[2] = l("div", { 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" }, [
76
76
  l("div", { class: "flex-1 py-8 px-16" }, "Menu"),
77
77
  l("div", {
@@ -85,7 +85,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
85
85
  key: a.code,
86
86
  class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
87
87
  }, [
88
- l("div", ze, V(a.code) + " " + V(a.name), 1),
88
+ l("div", Le, V(a.code) + " " + V(a.name), 1),
89
89
  l("div", Ne, V((n = a.bindedIngredient) == null ? void 0 : n.slice(0, 3).map((_) => _.code).join(", ")) + " " + V(a.bindedIngredient && ((u = a.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((x = a.bindedIngredient) == null ? void 0 : x.length) - 3} more` : ""), 1)
90
90
  ]);
91
91
  }), 128))
@@ -93,7 +93,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
93
93
  ]));
94
94
  }
95
95
  }), Q = Ee("unitForm", function() {
96
- const f = we(), b = se(), i = G(), r = M(!1), s = M();
96
+ const f = we(), b = se(), i = K(), r = M(!1), s = M();
97
97
  function d() {
98
98
  const n = {
99
99
  unit: {},
@@ -187,14 +187,14 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
187
187
  };
188
188
  });
189
189
  function qe() {
190
- const { updateUnit: k, deleteUnit: f } = Q(), { t: b } = K();
190
+ const { updateUnit: k, deleteUnit: f } = Q(), { t: b } = G();
191
191
  async function i(s, d) {
192
192
  const c = le(d);
193
- if (s === z.Edit) {
193
+ if (s === L.Edit) {
194
194
  await k(c);
195
195
  return;
196
196
  }
197
- if (s === z.Delete) {
197
+ if (s === L.Delete) {
198
198
  await f(c);
199
199
  return;
200
200
  }
@@ -217,7 +217,7 @@ function qe() {
217
217
  header: "",
218
218
  cell(s) {
219
219
  return pe(
220
- [te[z.Edit], te[z.Delete]],
220
+ [te[L.Edit], te[L.Delete]],
221
221
  (d) => {
222
222
  i(d, s.row.original);
223
223
  }
@@ -232,7 +232,7 @@ function qe() {
232
232
  }
233
233
  ] };
234
234
  }
235
- const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke = { class: "flex-1" }, Oe = { class: "flex-1" }, Ye = { class: "flex" }, Je = { class: "flex items-center" }, Qe = { class: "fm-typo-en-body-lg-600 flex-grow" }, We = { class: "flex flex-col gap-24" }, Xe = { class: "flex gap-24" }, Ze = { class: "flex-1" }, et = { class: "flex-1" }, tt = /* @__PURE__ */ H({
235
+ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge = { class: "flex-1" }, Oe = { class: "flex-1" }, Ye = { class: "flex" }, Je = { class: "flex items-center" }, Qe = { class: "fm-typo-en-body-lg-600 flex-grow" }, We = { class: "flex flex-col gap-24" }, Xe = { class: "flex gap-24" }, Ze = { class: "flex-1" }, et = { class: "flex-1" }, tt = /* @__PURE__ */ H({
236
236
  __name: "UnitForm",
237
237
  props: {
238
238
  mode: {},
@@ -241,7 +241,7 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
241
241
  },
242
242
  emits: ["update:modelValue", "click:submit"],
243
243
  setup(k, { expose: f, emit: b }) {
244
- const i = k, r = b, { t: s } = K();
244
+ const i = k, r = b, { t: s } = G();
245
245
  function d() {
246
246
  r("click:submit");
247
247
  }
@@ -327,8 +327,8 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
327
327
  var E;
328
328
  return [
329
329
  l("div", He, [
330
- l("div", Ge, [
331
- l("div", Ke, [
330
+ l("div", Ke, [
331
+ l("div", Ge, [
332
332
  y(m, {
333
333
  disabled: e.disabled,
334
334
  label: o(s)("inventory.unit.name"),
@@ -450,7 +450,7 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
450
450
  },
451
451
  emits: ["update:show"],
452
452
  setup(k) {
453
- const f = k, b = G(), i = se(), { t: r } = K(), s = oe(f, "show"), d = oe(f, "unit"), c = g(() => {
453
+ const f = k, b = K(), i = se(), { t: r } = G(), s = oe(f, "show"), d = oe(f, "unit"), c = g(() => {
454
454
  switch (f.mode) {
455
455
  case w.READ:
456
456
  return "";
@@ -566,11 +566,11 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
566
566
  }), lt = { class: "flex flex-col py-8" }, st = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, at = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vt = /* @__PURE__ */ H({
567
567
  __name: "UnitView",
568
568
  setup(k) {
569
- const f = G(), b = be(), i = ge(), r = g(() => f.units), { createUnit: s, updateUnit: d } = Q(), { unitDialogProps: c, unitViewLoading: p } = Fe(Q()), { columnDefs: a } = qe();
569
+ const f = K(), b = be(), i = ge(), r = g(() => f.units), { createUnit: s, updateUnit: d } = Q(), { unitDialogProps: c, unitViewLoading: p } = Fe(Q()), { columnDefs: a } = qe();
570
570
  function n(D) {
571
571
  D === "add" && s();
572
572
  }
573
- const u = M(""), x = g(() => p.value), { breakpoints: _ } = Ce(), e = g(() => _.value.xs || _.value.sm), t = g(() => e.value ? 10 : 20), m = xe(), { t: I } = K();
573
+ const u = M(""), x = g(() => p.value), { breakpoints: _ } = Ce(), e = g(() => _.value.xs || _.value.sm), t = g(() => e.value ? 10 : 20), m = xe(), { t: I } = G();
574
574
  return (D, U) => {
575
575
  const O = $("FmTable");
576
576
  return v(), T(_e, {
@@ -615,7 +615,7 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
615
615
  onRowClick: o(d)
616
616
  }, {
617
617
  default: A((S) => {
618
- var h, F, P, R, W, B, X, L, Z;
618
+ var h, F, P, R, W, B, X, z, Z;
619
619
  return [
620
620
  l("div", lt, [
621
621
  l("div", st, [
@@ -624,7 +624,7 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
624
624
  props: (W = (R = S.name) == null ? void 0 : R.getContext) == null ? void 0 : W.call(R)
625
625
  }, null, 8, ["render", "props"])
626
626
  ]),
627
- l("div", at, V((Z = (L = (X = (B = E.original.measurements) == null ? void 0 : B.map) == null ? void 0 : X.call(B, (ae) => ae.name)) == null ? void 0 : L.join) == null ? void 0 : Z.call(L, ", ")), 1)
627
+ l("div", at, V((Z = (z = (X = (B = E.original.measurements) == null ? void 0 : B.map) == null ? void 0 : X.call(B, (ae) => ae.name)) == null ? void 0 : z.join) == null ? void 0 : Z.call(z, ", ")), 1)
628
628
  ])
629
629
  ];
630
630
  }),
@@ -1,11 +1,11 @@
1
1
  import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as xe, openBlock as R, createElementBlock as z, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as L, unref as c, createVNode as V, resolveComponent as B, createSlots as $e, withCtx as q, createTextVNode as Se, renderSlot as We, createBlock as I, createCommentVNode as Ae, computed as $, isRef as we, normalizeClass as De, normalizeStyle as Pe } from "vue";
2
- import { Y as Re, al as Ue, am as Ee, h as Te, D as Ve, i as J, f as O, an as Le, ae as Ne, m as N, e as T, S as Be, u as qe, B as ze, _ as Ie, C as je, E as Ge, G as Q } from "./app-BmsY87Mv.js";
3
- import { useCoreStore as Oe, useI18n as G } from "@feedmepos/mf-common";
2
+ import { X as Re, ak as Ue, al as Ee, f as Te, D as Ve, h as J, e as G, am as Le, ad as Ne, l as N, d as T, S as Be, u as qe, z as ze, _ as Ie, B as je, C as Oe, E as Q } from "./app-Dgg5mqsW.js";
3
+ import { useCoreStore as Ge, useI18n as O } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as Ke, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as He } from "@feedmepos/ui-library";
5
5
  import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
6
- import { _ as Ye } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
7
- const X = Re((m, h) => {
8
- const y = Oe();
6
+ import { _ as Xe } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
7
+ const Y = Re((m, h) => {
8
+ const y = Ge();
9
9
  return {
10
10
  async readWarehouses() {
11
11
  var l;
@@ -46,17 +46,17 @@ function Ce() {
46
46
  },
47
47
  // actions
48
48
  async readWarehouses() {
49
- const m = X();
49
+ const m = Y();
50
50
  this.warehouses = await m.readWarehouses();
51
51
  },
52
52
  async createWarehouse(m) {
53
- await X().createWarehouse(m);
53
+ await Y().createWarehouse(m);
54
54
  },
55
55
  async updateWarehouse(m) {
56
- await X().updateWarehouse(m._id, m.profile);
56
+ await Y().updateWarehouse(m._id, m.profile);
57
57
  },
58
58
  async deleteWarehouse(m) {
59
- await X().deleteWarehouse(m._id);
59
+ await Y().deleteWarehouse(m._id);
60
60
  },
61
61
  async init() {
62
62
  const m = Ue();
@@ -71,15 +71,15 @@ function Ce() {
71
71
  function Je(m, h) {
72
72
  function y(p, s) {
73
73
  if (p === J.Edit) {
74
- m(O(s));
74
+ m(G(s));
75
75
  return;
76
76
  }
77
77
  if (p === J.Delete) {
78
- h(O(s));
78
+ h(G(s));
79
79
  return;
80
80
  }
81
81
  }
82
- const { t } = G(), n = [
82
+ const { t } = O(), n = [
83
83
  {
84
84
  accessorKey: "warehouse",
85
85
  header: () => t("inventory.warehouse.table.warehouse"),
@@ -266,7 +266,7 @@ const Qe = /* @__PURE__ */ j({
266
266
  class: "map app-map"
267
267
  }, null, 512));
268
268
  }
269
- }), Xe = { class: "flex flex-col gap-24" }, eo = { class: "flex flex-col gap-8" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ro = { class: "fm-typo-en-body-lg-600" }, no = /* @__PURE__ */ j({
269
+ }), Ye = { class: "flex flex-col gap-24" }, eo = { class: "flex flex-col gap-8" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ro = { class: "fm-typo-en-body-lg-600" }, no = /* @__PURE__ */ j({
270
270
  __name: "CoordinateDialog",
271
271
  props: {
272
272
  address: {
@@ -279,8 +279,8 @@ const Qe = /* @__PURE__ */ j({
279
279
  }
280
280
  },
281
281
  setup(m) {
282
- const h = m, y = Ke(), t = se(), { t: n } = G(), l = Fe(
283
- O(h.coordinate ? h.coordinate : le.jb)
282
+ const h = m, y = Ke(), t = se(), { t: n } = O(), l = Fe(
283
+ G(h.coordinate ? h.coordinate : le.jb)
284
284
  ), p = D(""), s = Le(async function() {
285
285
  p.value = await t.getFirstMatchingAddress(
286
286
  l.lat,
@@ -288,13 +288,13 @@ const Qe = /* @__PURE__ */ j({
288
288
  );
289
289
  }, 1e3);
290
290
  te(() => {
291
- y.emitData(O(l)), s();
291
+ y.emitData(G(l)), s();
292
292
  });
293
293
  function u({ position: b }) {
294
- l.lat = b.lat, l.lng = b.lng, y.emitData(O(l)), s();
294
+ l.lat = b.lat, l.lng = b.lng, y.emitData(G(l)), s();
295
295
  }
296
296
  const k = D();
297
- return (b, M) => (R(), z("div", Xe, [
297
+ return (b, M) => (R(), z("div", Ye, [
298
298
  g("div", eo, [
299
299
  g("div", null, [
300
300
  g("span", oo, L(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
@@ -348,7 +348,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
348
348
  },
349
349
  emits: ["update:modelValue"],
350
350
  setup(m, { emit: h }) {
351
- const y = m, t = h, n = se(), l = Me(), p = ae(), s = oe(y, "modelValue"), u = D(!1), { t: k } = G();
351
+ const y = m, t = h, n = se(), l = Me(), p = ae(), s = oe(y, "modelValue"), u = D(!1), { t: k } = O();
352
352
  function b(d) {
353
353
  if (d != null && d[0] && (d != null && d[1]))
354
354
  return k("inventory.formField.coordinate.longLat", [d[0].toFixed(3), d[1].toFixed(3)]);
@@ -454,7 +454,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
454
454
  },
455
455
  emits: ["update:modelValue", "validation-success"],
456
456
  setup(m, { expose: h, emit: y }) {
457
- const t = m, n = y, { t: l } = G(), p = $({
457
+ const t = m, n = y, { t: l } = O(), p = $({
458
458
  get() {
459
459
  var o, e;
460
460
  return ((e = (o = t.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
@@ -695,7 +695,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
695
695
  ])
696
696
  ]),
697
697
  g("div", null, [
698
- V(Ye, {
698
+ V(Xe, {
699
699
  entity: "warehouse",
700
700
  modelValue: F.value,
701
701
  "onUpdate:modelValue": e[11] || (e[11] = (v) => F.value = v)
@@ -716,7 +716,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
716
716
  },
717
717
  emits: ["update:show", "submitted"],
718
718
  setup(m, { expose: h, emit: y }) {
719
- const t = m, n = y, l = D(!1), p = ae(), { t: s } = G(), u = Ce(), k = $(() => {
719
+ const t = m, n = y, l = D(!1), p = ae(), { t: s } = O(), u = Ce(), k = $(() => {
720
720
  switch (t.mode) {
721
721
  case T.READ:
722
722
  return "";
@@ -862,7 +862,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
862
862
  }, Do = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, No = /* @__PURE__ */ j({
863
863
  __name: "WarehouseView",
864
864
  setup(m) {
865
- const h = Ce(), y = qe(), t = $(() => h.warehouses), n = Me(), l = ae(), p = D(!1), { t: s } = G();
865
+ const h = Ce(), y = qe(), t = $(() => h.warehouses), n = Me(), l = ae(), p = D(!1), { t: s } = O();
866
866
  te(() => {
867
867
  y._currentLocation && F();
868
868
  }), ee([() => y._currentLocation], () => {
@@ -973,12 +973,12 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
973
973
  "page-size": e.value
974
974
  }, {
975
975
  "list-row": q((E) => [
976
- V(Ge, {
976
+ V(Oe, {
977
977
  row: E,
978
978
  onRowClick: (r) => b(r.original)
979
979
  }, {
980
980
  default: q((r) => {
981
- var f, w, S, P, K, re, ne, ue, H, ie, de, ce, pe, me, Y, fe, he, ye, ve, Z, ge;
981
+ var f, w, S, P, K, re, ne, ue, H, ie, de, ce, pe, me, X, fe, he, ye, ve, Z, ge;
982
982
  return [
983
983
  g("div", Fo, [
984
984
  g("div", $o, [
@@ -996,7 +996,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
996
996
  (de = E.original) != null && de.email ? (R(), z("div", Wo, [
997
997
  V(c(Q), {
998
998
  render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
999
- props: (fe = (Y = r.email) == null ? void 0 : Y.getContext) == null ? void 0 : fe.call(Y)
999
+ props: (fe = (X = r.email) == null ? void 0 : X.getContext) == null ? void 0 : fe.call(X)
1000
1000
  }, null, 8, ["render", "props"])
1001
1001
  ])) : Ae("", !0),
1002
1002
  g("div", Do, [
@@ -397,7 +397,7 @@ export declare const useBillApi: () => {
397
397
  calculatorVersion?: number | null | undefined;
398
398
  minPriceMode?: "PRODUCT_ONLY" | null | undefined;
399
399
  slot: string;
400
- status: "DRAFT" | "COMPLETED" | "BILLED" | "REFUNDED" | "VOIDED" | "PREORDER";
400
+ status: "DRAFT" | "BILLED" | "REFUNDED" | "COMPLETED" | "VOIDED" | "PREORDER";
401
401
  items: Record<string, {
402
402
  createdBy?: {
403
403
  name: string;
@@ -1161,7 +1161,7 @@ export declare const useBillApi: () => {
1161
1161
  calculatorVersion?: number | null | undefined;
1162
1162
  minPriceMode?: "PRODUCT_ONLY" | null | undefined;
1163
1163
  slot: string;
1164
- status: "DRAFT" | "COMPLETED" | "BILLED" | "REFUNDED" | "VOIDED" | "PREORDER";
1164
+ status: "DRAFT" | "BILLED" | "REFUNDED" | "COMPLETED" | "VOIDED" | "PREORDER";
1165
1165
  items: Record<string, {
1166
1166
  createdBy?: {
1167
1167
  name: string;
@@ -7,8 +7,8 @@ export declare const useFMHApi: () => {
7
7
  enable: boolean;
8
8
  bindings: {
9
9
  combinationKey?: string | null | undefined;
10
- code: string;
11
10
  productId: string;
11
+ code: string;
12
12
  }[];
13
13
  modifiers: {
14
14
  code: string;
@@ -5,8 +5,8 @@ export declare const useInventoryApi: () => {
5
5
  _id: string;
6
6
  updatedAt: string;
7
7
  } | null | undefined;
8
- type: "restaurant" | "warehouse";
9
8
  name: string;
9
+ type: "restaurant" | "warehouse";
10
10
  acceptRequest: boolean;
11
11
  dbName: string;
12
12
  doc: {
@@ -14,26 +14,14 @@ export declare const useInventoryApi: () => {
14
14
  businessId: string;
15
15
  profile: {
16
16
  code?: string | null | undefined;
17
+ url?: string | null | undefined;
18
+ description?: string | null | undefined;
17
19
  _id?: string | null | undefined;
18
- name?: string | undefined;
19
- address?: {
20
- coordinates?: number[] | null | undefined;
21
- line2?: string | null | undefined;
22
- state: string;
23
- country: string;
24
- line1: string;
25
- city: string;
26
- postcode: string;
27
- } | undefined;
28
- email?: string | undefined;
29
- regNo?: string | undefined;
30
- sstRegNo?: string | null | undefined;
31
- phoneNo?: string | undefined;
32
20
  legalName?: string | null | undefined;
21
+ sstRegNo?: string | null | undefined;
33
22
  discovery?: boolean | null | undefined;
34
23
  coverPhoto?: string | null | undefined;
35
24
  thumbnailPhoto?: string | null | undefined;
36
- description?: string | null | undefined;
37
25
  photos?: string[] | null | undefined;
38
26
  operatingHours?: {
39
27
  0: {
@@ -87,7 +75,19 @@ export declare const useInventoryApi: () => {
87
75
  };
88
76
  } | null | undefined;
89
77
  tags?: string[] | null | undefined;
90
- url?: string | null | undefined;
78
+ name: string;
79
+ address: {
80
+ coordinates?: number[] | null | undefined;
81
+ line2?: string | null | undefined;
82
+ state: string;
83
+ country: string;
84
+ line1: string;
85
+ city: string;
86
+ postcode: string;
87
+ };
88
+ email: string;
89
+ phoneNo: string;
90
+ regNo: string;
91
91
  };
92
92
  };
93
93
  }[]>;
@@ -121,12 +121,12 @@ export declare const useInventoryApi: () => {
121
121
  precision: number;
122
122
  };
123
123
  } | null | undefined;
124
+ id: string;
124
125
  type: "RECIPE" | "SKU" | "SKU_GROUP";
125
126
  amount: {
126
127
  amount: number;
127
128
  precision: number;
128
129
  };
129
- id: string;
130
130
  }[] | null | undefined;
131
131
  } | null | undefined;
132
132
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -152,6 +152,9 @@ export declare const useInventoryApi: () => {
152
152
  mid: number;
153
153
  } | null | undefined;
154
154
  customAttributes?: Record<string, any> | null | undefined;
155
+ _id: string;
156
+ name: string;
157
+ code: string;
155
158
  unit: {
156
159
  _id: string;
157
160
  name: string;
@@ -167,9 +170,6 @@ export declare const useInventoryApi: () => {
167
170
  };
168
171
  }[];
169
172
  };
170
- code: string;
171
- _id: string;
172
- name: string;
173
173
  }[] | null | undefined;
174
174
  recipe?: {
175
175
  customAttributes?: Record<string, any> | null | undefined;
@@ -185,16 +185,18 @@ export declare const useInventoryApi: () => {
185
185
  precision: number;
186
186
  };
187
187
  } | null | undefined;
188
+ id: string;
188
189
  type: "RECIPE" | "SKU" | "SKU_GROUP";
189
190
  amount: {
190
191
  amount: number;
191
192
  precision: number;
192
193
  };
193
- id: string;
194
194
  }[];
195
195
  }[] | null | undefined;
196
196
  skuGroup?: {
197
197
  ref?: string | null | undefined;
198
+ _id: string;
199
+ name: string;
198
200
  unit: {
199
201
  _id: string;
200
202
  name: string;
@@ -210,8 +212,6 @@ export declare const useInventoryApi: () => {
210
212
  };
211
213
  }[];
212
214
  };
213
- _id: string;
214
- name: string;
215
215
  skus: {
216
216
  trackingMeasurement?: string | null | undefined;
217
217
  convert?: {
@@ -226,12 +226,12 @@ export declare const useInventoryApi: () => {
226
226
  precision: number;
227
227
  };
228
228
  } | null | undefined;
229
+ id: string;
229
230
  type: "RECIPE" | "SKU" | "SKU_GROUP";
230
231
  amount: {
231
232
  amount: number;
232
233
  precision: number;
233
234
  };
234
- id: string;
235
235
  }[] | null | undefined;
236
236
  } | null | undefined;
237
237
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -257,9 +257,9 @@ export declare const useInventoryApi: () => {
257
257
  mid: number;
258
258
  } | null | undefined;
259
259
  customAttributes?: Record<string, any> | null | undefined;
260
- code: string;
261
260
  _id: string;
262
261
  name: string;
262
+ code: string;
263
263
  }[];
264
264
  }[] | null | undefined;
265
265
  updatedAt?: string | null | undefined;
@@ -295,12 +295,12 @@ export declare const useInventoryApi: () => {
295
295
  precision: number;
296
296
  };
297
297
  } | null | undefined;
298
+ id: string;
298
299
  type: "RECIPE" | "SKU" | "SKU_GROUP";
299
300
  amount: {
300
301
  amount: number;
301
302
  precision: number;
302
303
  };
303
- id: string;
304
304
  }[] | null | undefined;
305
305
  } | null | undefined;
306
306
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -326,6 +326,9 @@ export declare const useInventoryApi: () => {
326
326
  mid: number;
327
327
  } | null | undefined;
328
328
  customAttributes?: Record<string, any> | null | undefined;
329
+ _id: string;
330
+ name: string;
331
+ code: string;
329
332
  unit: {
330
333
  _id: string;
331
334
  name: string;
@@ -341,9 +344,6 @@ export declare const useInventoryApi: () => {
341
344
  };
342
345
  }[];
343
346
  };
344
- code: string;
345
- _id: string;
346
- name: string;
347
347
  }[] | null | undefined;
348
348
  recipe?: {
349
349
  customAttributes?: Record<string, any> | null | undefined;
@@ -359,16 +359,18 @@ export declare const useInventoryApi: () => {
359
359
  precision: number;
360
360
  };
361
361
  } | null | undefined;
362
+ id: string;
362
363
  type: "RECIPE" | "SKU" | "SKU_GROUP";
363
364
  amount: {
364
365
  amount: number;
365
366
  precision: number;
366
367
  };
367
- id: string;
368
368
  }[];
369
369
  }[] | null | undefined;
370
370
  skuGroup?: {
371
371
  ref?: string | null | undefined;
372
+ _id: string;
373
+ name: string;
372
374
  unit: {
373
375
  _id: string;
374
376
  name: string;
@@ -384,8 +386,6 @@ export declare const useInventoryApi: () => {
384
386
  };
385
387
  }[];
386
388
  };
387
- _id: string;
388
- name: string;
389
389
  skus: {
390
390
  trackingMeasurement?: string | null | undefined;
391
391
  convert?: {
@@ -400,12 +400,12 @@ export declare const useInventoryApi: () => {
400
400
  precision: number;
401
401
  };
402
402
  } | null | undefined;
403
+ id: string;
403
404
  type: "RECIPE" | "SKU" | "SKU_GROUP";
404
405
  amount: {
405
406
  amount: number;
406
407
  precision: number;
407
408
  };
408
- id: string;
409
409
  }[] | null | undefined;
410
410
  } | null | undefined;
411
411
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -431,9 +431,9 @@ export declare const useInventoryApi: () => {
431
431
  mid: number;
432
432
  } | null | undefined;
433
433
  customAttributes?: Record<string, any> | null | undefined;
434
- code: string;
435
434
  _id: string;
436
435
  name: string;
436
+ code: string;
437
437
  }[];
438
438
  }[] | null | undefined;
439
439
  updatedAt?: string | null | undefined;
@@ -469,12 +469,12 @@ export declare const useInventoryApi: () => {
469
469
  precision: number;
470
470
  };
471
471
  } | null | undefined;
472
+ id: string;
472
473
  type: "RECIPE" | "SKU" | "SKU_GROUP";
473
474
  amount: {
474
475
  amount: number;
475
476
  precision: number;
476
477
  };
477
- id: string;
478
478
  }[] | null | undefined;
479
479
  } | null | undefined;
480
480
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -500,6 +500,9 @@ export declare const useInventoryApi: () => {
500
500
  mid: number;
501
501
  } | null | undefined;
502
502
  customAttributes?: Record<string, any> | null | undefined;
503
+ _id: string;
504
+ name: string;
505
+ code: string;
503
506
  unit: {
504
507
  _id: string;
505
508
  name: string;
@@ -515,9 +518,6 @@ export declare const useInventoryApi: () => {
515
518
  };
516
519
  }[];
517
520
  };
518
- code: string;
519
- _id: string;
520
- name: string;
521
521
  }[] | null | undefined;
522
522
  recipe?: {
523
523
  customAttributes?: Record<string, any> | null | undefined;
@@ -533,16 +533,18 @@ export declare const useInventoryApi: () => {
533
533
  precision: number;
534
534
  };
535
535
  } | null | undefined;
536
+ id: string;
536
537
  type: "RECIPE" | "SKU" | "SKU_GROUP";
537
538
  amount: {
538
539
  amount: number;
539
540
  precision: number;
540
541
  };
541
- id: string;
542
542
  }[];
543
543
  }[] | null | undefined;
544
544
  skuGroup?: {
545
545
  ref?: string | null | undefined;
546
+ _id: string;
547
+ name: string;
546
548
  unit: {
547
549
  _id: string;
548
550
  name: string;
@@ -558,8 +560,6 @@ export declare const useInventoryApi: () => {
558
560
  };
559
561
  }[];
560
562
  };
561
- _id: string;
562
- name: string;
563
563
  skus: {
564
564
  trackingMeasurement?: string | null | undefined;
565
565
  convert?: {
@@ -574,12 +574,12 @@ export declare const useInventoryApi: () => {
574
574
  precision: number;
575
575
  };
576
576
  } | null | undefined;
577
+ id: string;
577
578
  type: "RECIPE" | "SKU" | "SKU_GROUP";
578
579
  amount: {
579
580
  amount: number;
580
581
  precision: number;
581
582
  };
582
- id: string;
583
583
  }[] | null | undefined;
584
584
  } | null | undefined;
585
585
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -605,9 +605,9 @@ export declare const useInventoryApi: () => {
605
605
  mid: number;
606
606
  } | null | undefined;
607
607
  customAttributes?: Record<string, any> | null | undefined;
608
- code: string;
609
608
  _id: string;
610
609
  name: string;
610
+ code: string;
611
611
  }[];
612
612
  }[] | null | undefined;
613
613
  updatedAt?: string | null | undefined;