@feedmepos/mf-inventory-portal 1.0.7-dev.1 → 1.0.7

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-zspCOQeF.js → App-DF14rGlK.js} +49 -50
  2. package/dist/{ApprovalView-CKJV87es.js → ApprovalView-C_xhq-_c.js} +24 -24
  3. package/dist/{BindingsDialog-CTmuzAWi.js → BindingsDialog-CCY1fDj8.js} +4 -4
  4. package/dist/{BindingsPicker-Dabonsov.js → BindingsPicker-CnXbK5O3.js} +6 -6
  5. package/dist/{BindingsTable-L0yzAoQq.js → BindingsTable-cQIUUuVv.js} +8 -8
  6. package/dist/{ClosingDraftView-CddxqfNi.js → ClosingDraftView-DUZ31x3s.js} +463 -464
  7. package/dist/{ClosingTemplateView-BsW-nPec.js → ClosingTemplateView-6ysEDEcV.js} +10 -10
  8. package/dist/{DeliveryOrderPrintPreview-DQ4msDpJ.js → DeliveryOrderPrintPreview-BGjFS8h7.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-TnVI2vdF.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CanJ2fzb.js} +32 -32
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BRvXmLV6.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BcKtJQMt.js} +86 -86
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BHLx7Lbo.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bb9xMoX-.js} +1 -1
  12. package/dist/{IngredientGroupView-CF2GLMSD.js → IngredientGroupView-i08KHlW7.js} +11 -11
  13. package/dist/{IngredientsView-DopQVz7u.js → IngredientsView-D0tBukwK.js} +14 -15
  14. package/dist/{IntegrationView-EnD2l7af.js → IntegrationView-BqCrKL13.js} +85 -86
  15. package/dist/{InventoryBindingForm-VP2_coNH.js → InventoryBindingForm-BJwIFQVS.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-dQF7h_Jp.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DU9j1Q8M.js} +27 -27
  17. package/dist/{InventoryBindingSummary-BCEXzmFu.js → InventoryBindingSummary-B2M3Th8T.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-RfkBlwxw.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BH4A_Lc5.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CGgxjz4P.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CdxCyEBi.js} +10 -10
  20. package/dist/{PublishView-ExvxeKR_.js → PublishView-B9x92vDM.js} +7 -7
  21. package/dist/{PurchaseOrderPrintPreview-59AaXtZ_.js → PurchaseOrderPrintPreview-MbGDNmgh.js} +4 -4
  22. package/dist/{ReceiveRequestView-BxGss8gu.js → ReceiveRequestView-CTNycYUr.js} +52 -53
  23. package/dist/{RecipeView-BqTsG4xX.js → RecipeView-sHTcJgzP.js} +32 -32
  24. package/dist/{StockView-D-WvydHv.js → StockView-CUv4dcGJ.js} +72 -73
  25. package/dist/{SupplierView-C6ruAEih.js → SupplierView-hu6OhDss.js} +11 -12
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CCKlQGMf.js +1746 -0
  27. package/dist/{TransferTemplateView-qSA3Txpn.js → TransferTemplateView-DMSkUc0D.js} +290 -291
  28. package/dist/{UnitView-oHDOLM8k.js → UnitView-B5q7IVbT.js} +23 -23
  29. package/dist/{WarehouseView-C3EqYfCf.js → WarehouseView-Ds6z4Vz6.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 +1 -5
  35. package/dist/{app-DqrcGlGd.js → app-BmsY87Mv.js} +17641 -17171
  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/{decimal-rgCB5DGy.js → decimal-Baw9w4_A.js} +1 -1
  42. package/dist/{format-unit-display-DUWzu8vU.js → format-unit-display-D0_KiU3j.js} +60 -60
  43. package/dist/{index-YgIaxVhw.js → index-CDydl7WA.js} +1 -1
  44. package/dist/{index-CH3OzDYK.js → index-C_GU5Tc8.js} +6 -7
  45. package/dist/{stock-BPNYXwz1.js → stock-C-hm8Kdq.js} +1 -1
  46. package/dist/stores/feature.d.ts +20 -3
  47. package/dist/stores/integration/foodmarkethub.d.ts +1 -1
  48. package/dist/stores/integration/netsuite.d.ts +7 -7
  49. package/dist/stores/inventory.d.ts +44 -44
  50. package/dist/stores/location.d.ts +137 -137
  51. package/dist/{supplier-CnrH580K.js → supplier-RX_yr24c.js} +4 -4
  52. package/dist/tsconfig.app.tsbuildinfo +1 -1
  53. package/dist/{use-ingredient-select-dialog-CpnJoeWb.js → use-ingredient-select-dialog-BZhczMUl.js} +1 -1
  54. package/dist/{use-inventory-binding-dialog-DHvNwt_F.js → use-inventory-binding-dialog-dV-92pLe.js} +1 -1
  55. package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
  56. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
  57. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
  58. package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
  59. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +68 -68
  60. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +408 -408
  61. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
  62. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
  63. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
  64. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
  65. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  66. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
  67. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
  68. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
  69. package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
  70. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
  71. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
  72. package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +204 -204
  73. package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +2 -2
  74. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +647 -675
  75. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
  76. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
  77. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
  78. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1146 -1194
  79. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1170 -1218
  80. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  81. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  82. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
  83. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
  84. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
  85. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
  86. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +813 -813
  87. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +813 -813
  88. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
  89. package/dist/{vue-i18n-4m7yAqU2.js → vue-i18n-sbHu6D5a.js} +426 -426
  90. package/package.json +3 -5
  91. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CQ-Om_rI.js +0 -1894
  92. package/dist/composable/usePromise.d.ts +0 -41
  93. package/dist/feature-CifIpcNk.js +0 -17345
  94. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -614
  95. package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +0 -6
@@ -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 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-DqrcGlGd.js";
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";
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 G } from "@feedmepos/mf-common";
7
- import { F as $e } from "./decimal-rgCB5DGy.js";
8
- import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-RfkBlwxw.js";
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";
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
- }, ze = {
21
+ }, Le = {
22
22
  key: 2,
23
23
  class: "flex flex-col"
24
- }, Le = { class: "flex-1 py-8 px-16" }, Ne = {
24
+ }, ze = { 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 = 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"));
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"));
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", ze, [
74
+ d.value.length ? (v(), C("div", Le, [
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", Le, V(a.code) + " " + V(a.name), 1),
88
+ l("div", ze, 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 = K(), r = M(!1), s = M();
96
+ const f = we(), b = se(), i = G(), 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 } = G();
190
+ const { updateUnit: k, deleteUnit: f } = Q(), { t: b } = K();
191
191
  async function i(s, d) {
192
192
  const c = le(d);
193
- if (s === L.Edit) {
193
+ if (s === z.Edit) {
194
194
  await k(c);
195
195
  return;
196
196
  }
197
- if (s === L.Delete) {
197
+ if (s === z.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[L.Edit], te[L.Delete]],
220
+ [te[z.Edit], te[z.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" }, 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({
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({
236
236
  __name: "UnitForm",
237
237
  props: {
238
238
  mode: {},
@@ -241,7 +241,7 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
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 } = G();
244
+ const i = k, r = b, { t: s } = K();
245
245
  function d() {
246
246
  r("click:submit");
247
247
  }
@@ -327,8 +327,8 @@ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge
327
327
  var E;
328
328
  return [
329
329
  l("div", He, [
330
- l("div", Ke, [
331
- l("div", Ge, [
330
+ l("div", Ge, [
331
+ l("div", Ke, [
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" }, Ke = { class: "flex gap-24" }, Ge
450
450
  },
451
451
  emits: ["update:show"],
452
452
  setup(k) {
453
- const f = k, b = K(), i = se(), { t: r } = G(), s = oe(f, "show"), d = oe(f, "unit"), c = g(() => {
453
+ const f = k, b = G(), i = se(), { t: r } = K(), 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" }, Ke = { class: "flex gap-24" }, Ge
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 = K(), 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 = G(), 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 } = G();
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();
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" }, Ke = { class: "flex gap-24" }, Ge
615
615
  onRowClick: o(d)
616
616
  }, {
617
617
  default: A((S) => {
618
- var h, F, P, R, W, B, X, z, Z;
618
+ var h, F, P, R, W, B, X, L, 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" }, Ke = { class: "flex gap-24" }, Ge
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 = (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)
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)
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 { 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-DqrcGlGd.js";
3
- import { useCoreStore as Ge, useI18n as O } from "@feedmepos/mf-common";
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";
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 Xe } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
7
- const Y = Re((m, h) => {
8
- const y = Ge();
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();
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 = Y();
49
+ const m = X();
50
50
  this.warehouses = await m.readWarehouses();
51
51
  },
52
52
  async createWarehouse(m) {
53
- await Y().createWarehouse(m);
53
+ await X().createWarehouse(m);
54
54
  },
55
55
  async updateWarehouse(m) {
56
- await Y().updateWarehouse(m._id, m.profile);
56
+ await X().updateWarehouse(m._id, m.profile);
57
57
  },
58
58
  async deleteWarehouse(m) {
59
- await Y().deleteWarehouse(m._id);
59
+ await X().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(G(s));
74
+ m(O(s));
75
75
  return;
76
76
  }
77
77
  if (p === J.Delete) {
78
- h(G(s));
78
+ h(O(s));
79
79
  return;
80
80
  }
81
81
  }
82
- const { t } = O(), n = [
82
+ const { t } = G(), 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
- }), 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({
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({
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 } = O(), l = Fe(
283
- G(h.coordinate ? h.coordinate : le.jb)
282
+ const h = m, y = Ke(), t = se(), { t: n } = G(), l = Fe(
283
+ O(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(G(l)), s();
291
+ y.emitData(O(l)), s();
292
292
  });
293
293
  function u({ position: b }) {
294
- l.lat = b.lat, l.lng = b.lng, y.emitData(G(l)), s();
294
+ l.lat = b.lat, l.lng = b.lng, y.emitData(O(l)), s();
295
295
  }
296
296
  const k = D();
297
- return (b, M) => (R(), z("div", Ye, [
297
+ return (b, M) => (R(), z("div", Xe, [
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 } = O();
351
+ const y = m, t = h, n = se(), l = Me(), p = ae(), s = oe(y, "modelValue"), u = D(!1), { t: k } = G();
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 } = O(), p = $({
457
+ const t = m, n = y, { t: l } = G(), 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(Xe, {
698
+ V(Ye, {
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 } = O(), u = Ce(), k = $(() => {
719
+ const t = m, n = y, l = D(!1), p = ae(), { t: s } = G(), 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 } = O();
865
+ const h = Ce(), y = qe(), t = $(() => h.warehouses), n = Me(), l = ae(), p = D(!1), { t: s } = G();
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(Oe, {
976
+ V(Ge, {
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, X, fe, he, ye, ve, Z, ge;
981
+ var f, w, S, P, K, re, ne, ue, H, ie, de, ce, pe, me, Y, 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 = (X = r.email) == null ? void 0 : X.getContext) == null ? void 0 : fe.call(X)
999
+ props: (fe = (Y = r.email) == null ? void 0 : Y.getContext) == null ? void 0 : fe.call(Y)
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" | "BILLED" | "REFUNDED" | "COMPLETED" | "VOIDED" | "PREORDER";
400
+ status: "DRAFT" | "COMPLETED" | "BILLED" | "REFUNDED" | "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" | "BILLED" | "REFUNDED" | "COMPLETED" | "VOIDED" | "PREORDER";
1164
+ status: "DRAFT" | "COMPLETED" | "BILLED" | "REFUNDED" | "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
- productId: string;
11
10
  code: string;
11
+ productId: 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
- name: string;
9
8
  type: "restaurant" | "warehouse";
9
+ name: string;
10
10
  acceptRequest: boolean;
11
11
  dbName: string;
12
12
  doc: {
@@ -14,14 +14,26 @@ 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;
19
17
  _id?: string | null | undefined;
20
- legalName?: 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;
21
30
  sstRegNo?: string | null | undefined;
31
+ phoneNo?: string | undefined;
32
+ legalName?: string | null | undefined;
22
33
  discovery?: boolean | null | undefined;
23
34
  coverPhoto?: string | null | undefined;
24
35
  thumbnailPhoto?: string | null | undefined;
36
+ description?: string | null | undefined;
25
37
  photos?: string[] | null | undefined;
26
38
  operatingHours?: {
27
39
  0: {
@@ -75,19 +87,7 @@ export declare const useInventoryApi: () => {
75
87
  };
76
88
  } | null | undefined;
77
89
  tags?: 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;
90
+ url?: string | null | undefined;
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;
125
124
  type: "RECIPE" | "SKU" | "SKU_GROUP";
126
125
  amount: {
127
126
  amount: number;
128
127
  precision: number;
129
128
  };
129
+ id: string;
130
130
  }[] | null | undefined;
131
131
  } | null | undefined;
132
132
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -152,9 +152,6 @@ 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;
158
155
  unit: {
159
156
  _id: string;
160
157
  name: string;
@@ -170,6 +167,9 @@ export declare const useInventoryApi: () => {
170
167
  };
171
168
  }[];
172
169
  };
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,18 +185,16 @@ export declare const useInventoryApi: () => {
185
185
  precision: number;
186
186
  };
187
187
  } | null | undefined;
188
- id: string;
189
188
  type: "RECIPE" | "SKU" | "SKU_GROUP";
190
189
  amount: {
191
190
  amount: number;
192
191
  precision: number;
193
192
  };
193
+ id: string;
194
194
  }[];
195
195
  }[] | null | undefined;
196
196
  skuGroup?: {
197
197
  ref?: string | null | undefined;
198
- _id: string;
199
- name: string;
200
198
  unit: {
201
199
  _id: string;
202
200
  name: string;
@@ -212,6 +210,8 @@ export declare const useInventoryApi: () => {
212
210
  };
213
211
  }[];
214
212
  };
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;
230
229
  type: "RECIPE" | "SKU" | "SKU_GROUP";
231
230
  amount: {
232
231
  amount: number;
233
232
  precision: number;
234
233
  };
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;
260
261
  _id: string;
261
262
  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;
299
298
  type: "RECIPE" | "SKU" | "SKU_GROUP";
300
299
  amount: {
301
300
  amount: number;
302
301
  precision: number;
303
302
  };
303
+ id: string;
304
304
  }[] | null | undefined;
305
305
  } | null | undefined;
306
306
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -326,9 +326,6 @@ 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;
332
329
  unit: {
333
330
  _id: string;
334
331
  name: string;
@@ -344,6 +341,9 @@ export declare const useInventoryApi: () => {
344
341
  };
345
342
  }[];
346
343
  };
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,18 +359,16 @@ export declare const useInventoryApi: () => {
359
359
  precision: number;
360
360
  };
361
361
  } | null | undefined;
362
- id: string;
363
362
  type: "RECIPE" | "SKU" | "SKU_GROUP";
364
363
  amount: {
365
364
  amount: number;
366
365
  precision: number;
367
366
  };
367
+ id: string;
368
368
  }[];
369
369
  }[] | null | undefined;
370
370
  skuGroup?: {
371
371
  ref?: string | null | undefined;
372
- _id: string;
373
- name: string;
374
372
  unit: {
375
373
  _id: string;
376
374
  name: string;
@@ -386,6 +384,8 @@ export declare const useInventoryApi: () => {
386
384
  };
387
385
  }[];
388
386
  };
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;
404
403
  type: "RECIPE" | "SKU" | "SKU_GROUP";
405
404
  amount: {
406
405
  amount: number;
407
406
  precision: number;
408
407
  };
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;
434
435
  _id: string;
435
436
  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;
473
472
  type: "RECIPE" | "SKU" | "SKU_GROUP";
474
473
  amount: {
475
474
  amount: number;
476
475
  precision: number;
477
476
  };
477
+ id: string;
478
478
  }[] | null | undefined;
479
479
  } | null | undefined;
480
480
  valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
@@ -500,9 +500,6 @@ 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;
506
503
  unit: {
507
504
  _id: string;
508
505
  name: string;
@@ -518,6 +515,9 @@ export declare const useInventoryApi: () => {
518
515
  };
519
516
  }[];
520
517
  };
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,18 +533,16 @@ export declare const useInventoryApi: () => {
533
533
  precision: number;
534
534
  };
535
535
  } | null | undefined;
536
- id: string;
537
536
  type: "RECIPE" | "SKU" | "SKU_GROUP";
538
537
  amount: {
539
538
  amount: number;
540
539
  precision: number;
541
540
  };
541
+ id: string;
542
542
  }[];
543
543
  }[] | null | undefined;
544
544
  skuGroup?: {
545
545
  ref?: string | null | undefined;
546
- _id: string;
547
- name: string;
548
546
  unit: {
549
547
  _id: string;
550
548
  name: string;
@@ -560,6 +558,8 @@ export declare const useInventoryApi: () => {
560
558
  };
561
559
  }[];
562
560
  };
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;
578
577
  type: "RECIPE" | "SKU" | "SKU_GROUP";
579
578
  amount: {
580
579
  amount: number;
581
580
  precision: number;
582
581
  };
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;
608
609
  _id: string;
609
610
  name: string;
610
- code: string;
611
611
  }[];
612
612
  }[] | null | undefined;
613
613
  updatedAt?: string | null | undefined;