@feedmepos/mf-inventory-portal 0.0.25-dev.7 → 0.0.25-dev.9

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 (86) hide show
  1. package/dist/{App-qJehfAde.js → App-9zSE_swt.js} +35 -34
  2. package/dist/{ApprovalView-BuqKIEPL.js → ApprovalView-C2tg-wsm.js} +18 -18
  3. package/dist/{BindingsDialog-BrF-YAJ2.js → BindingsDialog-eGbOIQkw.js} +6 -6
  4. package/dist/{BindingsPicker-DK41dcoG.js → BindingsPicker-CVXrd29s.js} +3 -3
  5. package/dist/{BindingsTable-DxlRhKzN.js → BindingsTable-CCsQEFnu.js} +6 -6
  6. package/dist/{ClosingDraftView-CpGQMN37.js → ClosingDraftView-BI8b3CJ9.js} +47 -47
  7. package/dist/ClosingTemplateView-miJnC-ML.js +1859 -0
  8. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
  9. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9un0wCK.js +211 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-3LU_3Y8h.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BRSABJnM.js} +52 -52
  11. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeRvrF7O.js +51 -0
  12. package/dist/{IngredientGroupView-Bjv9Kih7.js → IngredientGroupView-ZWCOAljO.js} +1 -1
  13. package/dist/{IngredientsView-ChJbe-U_.js → IngredientsView-5-pSX6y_.js} +394 -382
  14. package/dist/{IntegrationView-Cmh47qP7.js → IntegrationView-DO3Ambro.js} +660 -623
  15. package/dist/{InventoryBindingForm-GmcCTBqN.js → InventoryBindingForm-BjtFP29c.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CQrjMOFh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js} +55 -55
  17. package/dist/{InventoryBindingSummary-w1pFGR3C.js → InventoryBindingSummary-C6DkVX-B.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cxr2xhRR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-nb1t6u2V.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CzxVUAC8.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BcMAXo4F.js} +15 -15
  20. package/dist/{PublishView-pWAEdGLi.js → PublishView-DOMQdIJ7.js} +7 -7
  21. package/dist/{PurchaseOrderPrintPreview-CZczBXL2.js → PurchaseOrderPrintPreview-_MCAsdw9.js} +1 -1
  22. package/dist/{ReceiveRequestView-tWyQCrIN.js → ReceiveRequestView-902hWGtz.js} +56 -55
  23. package/dist/{RecipeView-Dy1BBW3o.js → RecipeView-dmmjklwh.js} +32 -31
  24. package/dist/{index-cY9fiIBU.js → StockView-C4lEYLXU.js} +3577 -1764
  25. package/dist/{SupplierView-BUs8xZPq.js → SupplierView-CO5460uC.js} +12 -11
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BA0HIuSW.js → TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js} +195 -194
  27. package/dist/TransferTemplateView-C9UwNTnY.js +1371 -0
  28. package/dist/{UnitView-GBK0ovxt.js → UnitView-DbYzxCXF.js} +14 -14
  29. package/dist/{WarehouseView-CXoj99HO.js → WarehouseView-BII4SEVC.js} +332 -314
  30. package/dist/api/inventory.d.ts +7 -6
  31. package/dist/{app-Du-JrqLm.js → app-IM1yJnE8.js} +15144 -15889
  32. package/dist/app.js +1 -1
  33. package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
  34. package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
  35. package/dist/components/FmLockableField.vue.d.ts +3 -0
  36. package/dist/components/FmMultiselectDialog.vue.d.ts +9 -1
  37. package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
  38. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  39. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  40. package/dist/{decimal-BXePRNLM.js → decimal-DQUpCN-B.js} +1 -1
  41. package/dist/feature-DMBVVBsQ.js +1005 -0
  42. package/dist/{format-unit-display-BdC0fMRb.js → format-unit-display-COuIZISg.js} +242 -238
  43. package/dist/helper/fuzzy.d.ts +10 -0
  44. package/dist/index-CIrsMt6f.js +35546 -0
  45. package/dist/{stock-CE5Qq59r.js → stock-BJUTiXXk.js} +3 -3
  46. package/dist/stores/inventory.d.ts +8 -8
  47. package/dist/stores/location.d.ts +9 -0
  48. package/dist/stores/warehouse.d.ts +1 -0
  49. package/dist/style.css +1 -1
  50. package/dist/{supplier-Cy-jlD0j.js → supplier-CM-qQVyI.js} +1 -1
  51. package/dist/tsconfig.app.tsbuildinfo +1 -1
  52. package/dist/use-ingredient-select-dialog-Cn79xFNg.js +51 -0
  53. package/dist/{use-inventory-binding-dialog-nHDQBRL3.js → use-inventory-binding-dialog-zwOG19YV.js} +1 -1
  54. package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
  55. package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
  56. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  57. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  58. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  59. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
  60. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
  61. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
  62. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  63. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  64. package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
  65. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  66. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +25 -17
  67. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  68. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  69. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +36 -24
  70. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +36 -24
  71. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  72. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
  73. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
  74. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  75. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +36 -12
  76. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +36 -12
  77. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
  78. package/dist/{vue-i18n-DIA7c33f.js → vue-i18n-CzPFJ9JY.js} +2 -2
  79. package/package.json +2 -2
  80. package/dist/ClosingTemplateView-4l891KsC.js +0 -1819
  81. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-CyHyOhG6.js +0 -142
  82. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DRqpc9k0.js +0 -286
  83. package/dist/StockView-B0c0FiPr.js +0 -1817
  84. package/dist/TransferTemplateView-MSbvSo96.js +0 -1286
  85. package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
  86. package/dist/index-irnhqIWw.js +0 -29202
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CQrjMOFh.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as y, createVNode as c, createElementVNode as n, toDisplayString as v, unref as i, createBlock as V, createCommentVNode as g, Fragment as R, renderList as N, withCtx as S, nextTick as X } from "vue";
2
- import { a as Z, aM as ee, aN as ne, j as B, aO as oe, N as T, L as te, F as le } from "./app-Du-JrqLm.js";
3
- import { u as ie } from "./use-inventory-binding-dialog-nHDQBRL3.js";
4
- import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-3LU_3Y8h.js";
1
+ import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as y, createVNode as c, createElementVNode as n, toDisplayString as v, unref as l, createBlock as V, createCommentVNode as g, Fragment as R, renderList as S, withCtx as T, nextTick as X } from "vue";
2
+ import { a as Z, aR as ee, aS as ne, i as B, aT as oe, L as N, K as te, F as ie } from "./app-IM1yJnE8.js";
3
+ import { u as le } from "./use-inventory-binding-dialog-zwOG19YV.js";
4
+ import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BRSABJnM.js";
5
5
  import { useI18n as ae } from "@feedmepos/mf-common";
6
6
  const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = { class: "flex items-center" }, pe = { class: "flex-1 fm-typo-en-title-sm-600" }, fe = { class: "flex flex-col" }, ye = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ve = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, _e = {
7
7
  class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
@@ -15,10 +15,10 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
15
15
  }, Be = { class: "flex flex-col gap-16" }, ke = { class: "flex items-center" }, Fe = { class: "flex-1 fm-typo-en-title-sm-600" }, Ie = { class: "flex flex-col" }, we = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Ue = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ee = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Ce = {
16
16
  class: "flex items-center w-full",
17
17
  style: { "min-height": "48px" }
18
- }, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" }, Ne = { class: "w-[150px]" }, Se = {
18
+ }, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" }, Se = { class: "w-[150px]" }, Te = {
19
19
  key: 0,
20
20
  class: "w-[52px]"
21
- }, Te = { class: "flex flex-col px-12 pb-4" }, je = /* @__PURE__ */ J({
21
+ }, Ne = { class: "flex flex-col px-12 pb-4" }, ze = /* @__PURE__ */ J({
22
22
  __name: "InventoryBindingForm",
23
23
  props: {
24
24
  id: {},
@@ -30,33 +30,33 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
30
30
  readonly: { type: Boolean }
31
31
  },
32
32
  emits: ["update:modelValue", "click:pick-inventory-bindings"],
33
- setup(M, { emit: P }) {
34
- const { t: p } = ae(), F = Z(), I = _(() => F.inventory.recipe ?? []), h = _(() => F.inventory.sku ?? []), s = M, f = P, w = _(() => ee({
33
+ setup(P, { emit: M }) {
34
+ const { t: p } = ae(), F = Z(), I = _(() => F.inventory.recipe ?? []), h = _(() => F.inventory.sku ?? []), s = P, f = M, w = _(() => ee({
35
35
  bindings: s.modelValue,
36
36
  recipes: I.value.map((t) => t._id === s.id ? {
37
37
  ...t,
38
38
  contains: s.modelValue
39
39
  } : t),
40
40
  skus: h.value
41
- }).inventoryBindings.filter((t) => t.error).filter((t) => t.reason === ne.enum.circularDependency)), D = _(
41
+ }).inventoryBindings.filter((t) => t.error).filter((t) => t.reason === ne.enum.circularDependency)), K = _(
42
42
  () => new Set(w.value.map((e) => {
43
43
  var o;
44
44
  return (o = e.bindingPaths[0]) == null ? void 0 : o.id;
45
45
  }))
46
- ), K = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: j } = ie();
47
- async function z() {
46
+ ), D = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: z } = le();
47
+ async function G() {
48
48
  if (s.iframeMode) {
49
49
  f("click:pick-inventory-bindings", "RECIPE");
50
50
  return;
51
51
  }
52
- j(
52
+ z(
53
53
  s.modelValue,
54
54
  (e) => f("update:modelValue", e),
55
55
  s.id ? [s.id] : []
56
56
  );
57
57
  }
58
58
  const U = _(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
59
- async function G() {
59
+ async function L() {
60
60
  if (s.iframeMode) {
61
61
  f("click:pick-inventory-bindings", "SKU");
62
62
  return;
@@ -68,7 +68,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
68
68
  s.id ? [s.id] : []
69
69
  );
70
70
  }
71
- function L(e, o, t) {
71
+ function j(e, o, t) {
72
72
  const r = +o;
73
73
  let d = t;
74
74
  o.length > 0 && isFinite(r) ? d = t.map((a) => (a.id !== e || (a.amount = te(r)), a)) : d = t.map((a) => (a.id !== e || (a.amount = { amount: 0, precision: 0 }), a)), f("update:modelValue", d);
@@ -79,16 +79,16 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
79
79
  }
80
80
  function C(e) {
81
81
  var t, r;
82
- if (e.type !== le.enum.SKU)
82
+ if (e.type !== ie.enum.SKU)
83
83
  throw new Error("Non-SKU binding does not have unit");
84
84
  if (!((t = h.value.find((d) => d._id === e.id)) == null ? void 0 : t.unit))
85
85
  throw new Error(`Cannot find ingredient: ${e.id}`);
86
86
  return (r = h.value.find((d) => d._id === e.id)) == null ? void 0 : r.unit;
87
87
  }
88
- function O(e) {
88
+ function Y(e) {
89
89
  return { amount: e.amount, measurement: e.measurement };
90
90
  }
91
- function Y(e, o, t) {
91
+ function O(e, o, t) {
92
92
  const r = t.map((d) => d.id !== e ? d : {
93
93
  ...d,
94
94
  amount: o.amount,
@@ -127,37 +127,37 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
127
127
  }, null, 8, ["disabled", "model-value", "rules"]),
128
128
  n("div", me, [
129
129
  n("div", ce, [
130
- n("div", pe, v(i(p)("inventory.inventoryBindings.recipe")), 1),
130
+ n("div", pe, v(l(p)("inventory.inventoryBindings.recipe")), 1),
131
131
  e.readonly ? g("", !0) : (m(), V(r, {
132
132
  key: 0,
133
133
  variant: "secondary",
134
134
  "text-color": "primary",
135
135
  "border-color": "primary",
136
- label: i(p)("inventory.inventoryBindings.linkRecipe"),
136
+ label: l(p)("inventory.inventoryBindings.linkRecipe"),
137
137
  "prepend-icon": "link",
138
- onClick: z
138
+ onClick: G
139
139
  }, null, 8, ["label"]))
140
140
  ]),
141
141
  n("div", fe, [
142
142
  n("div", ye, [
143
- n("div", ve, v(i(p)("inventory.inventoryBindings.recipe")), 1),
143
+ n("div", ve, v(l(p)("inventory.inventoryBindings.recipe")), 1),
144
144
  o[0] || (o[0] = n("div", { class: "w-[200px]" }, null, -1)),
145
145
  o[1] || (o[1] = n("div", { class: "w-[52px]" }, null, -1))
146
146
  ]),
147
- (m(!0), y(R, null, N(K.value, (l) => (m(), V(t, {
148
- key: l.id,
147
+ (m(!0), y(R, null, S(D.value, (i) => (m(), V(t, {
148
+ key: i.id,
149
149
  disabled: e.disabled,
150
- modelValue: +i(B)(l.amount ?? { amount: 1, precision: 0 }),
151
- rules: [i(oe)(0), i(T)(0)]
150
+ modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
151
+ rules: [l(oe)(0), l(N)(0)]
152
152
  }, {
153
- default: S(({ invalid: k }) => {
153
+ default: T(({ invalid: k }) => {
154
154
  var b;
155
155
  return [
156
156
  n("div", _e, [
157
157
  n("div", ge, [
158
158
  n("div", be, [
159
- n("div", null, v((b = I.value.find((u) => u._id === l.id)) == null ? void 0 : b.name), 1),
160
- D.value.has(l.id) ? (m(), y("div", xe, [
159
+ n("div", null, v((b = I.value.find((u) => u._id === i.id)) == null ? void 0 : b.name), 1),
160
+ K.value.has(i.id) ? (m(), y("div", xe, [
161
161
  c(d, {
162
162
  name: "error",
163
163
  color: "system-error-400",
@@ -171,8 +171,8 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
171
171
  c(a, {
172
172
  class: "w-full",
173
173
  disabled: e.disabled,
174
- modelValue: +i(B)(l.amount ?? { amount: 1, precision: 0 }),
175
- "onUpdate:modelValue": (u) => L(l.id, u, e.modelValue),
174
+ modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
175
+ "onUpdate:modelValue": (u) => j(i.id, u, e.modelValue),
176
176
  invalid: k
177
177
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
178
178
  ]),
@@ -183,7 +183,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
183
183
  variant: "plain",
184
184
  icon: "delete",
185
185
  "icon-color": "#000000",
186
- onClick: (u) => E(l.id, e.modelValue)
186
+ onClick: (u) => E(i.id, e.modelValue)
187
187
  }, null, 8, ["disabled", "onClick"])
188
188
  ]))
189
189
  ])
@@ -195,41 +195,41 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
195
195
  ]),
196
196
  n("div", Be, [
197
197
  n("div", ke, [
198
- n("div", Fe, v(i(p)("inventory.inventoryBindings.ingredient")), 1),
198
+ n("div", Fe, v(l(p)("inventory.inventoryBindings.ingredient")), 1),
199
199
  e.readonly ? g("", !0) : (m(), V(r, {
200
200
  key: 0,
201
201
  variant: "secondary",
202
202
  "text-color": "primary",
203
203
  "border-color": "primary",
204
- label: i(p)("inventory.inventoryBindings.linkIngredient"),
204
+ label: l(p)("inventory.inventoryBindings.linkIngredient"),
205
205
  "prepend-icon": "link",
206
- onClick: G
206
+ onClick: L
207
207
  }, null, 8, ["label"]))
208
208
  ]),
209
209
  n("div", Ie, [
210
210
  n("div", we, [
211
- n("div", Ue, v(i(p)("inventory.inventoryBindings.ingredient")), 1),
212
- n("div", Ee, v(i(p)("inventory.inventoryBindings.amount")), 1),
211
+ n("div", Ue, v(l(p)("inventory.inventoryBindings.ingredient")), 1),
212
+ n("div", Ee, v(l(p)("inventory.inventoryBindings.amount")), 1),
213
213
  o[3] || (o[3] = n("div", { class: "w-[52px]" }, null, -1))
214
214
  ]),
215
- (m(!0), y(R, null, N(U.value, (l, k) => {
215
+ (m(!0), y(R, null, S(U.value, (i, k) => {
216
216
  var b;
217
217
  return m(), y("div", {
218
- key: l.id,
218
+ key: i.id,
219
219
  class: "flex flex-col border-b border-fm-color-neutral-gray-100"
220
220
  }, [
221
221
  n("div", Ce, [
222
222
  n("div", Ae, [
223
- n("span", Re, v((b = h.value.find((u) => u._id === l.id)) == null ? void 0 : b.name), 1),
223
+ n("span", Re, v((b = h.value.find((u) => u._id === i.id)) == null ? void 0 : b.name), 1),
224
224
  w.value.length ? (m(), V(H, {
225
225
  key: 0,
226
226
  variant: "plain",
227
227
  placement: "bottom",
228
- content: i(p)("inventory.inventoryBindings.invalidWarning"),
228
+ content: l(p)("inventory.inventoryBindings.invalidWarning"),
229
229
  "hide-arrow": !0,
230
230
  "z-index": 50
231
231
  }, {
232
- default: S(() => [
232
+ default: T(() => [
233
233
  c(d, {
234
234
  name: "error",
235
235
  size: "sm",
@@ -239,37 +239,37 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
239
239
  _: 1
240
240
  }, 8, ["content"])) : g("", !0)
241
241
  ]),
242
- n("div", Ne, [
242
+ n("div", Se, [
243
243
  c(se, {
244
- "model-value": O(l),
245
- "onUpdate:modelValue": (u) => Y(l.id, u, e.modelValue),
246
- "onUpdate:amount": (u) => q(l, u),
247
- unit: C(l),
244
+ "model-value": Y(i),
245
+ "onUpdate:modelValue": (u) => O(i.id, u, e.modelValue),
246
+ "onUpdate:amount": (u) => q(i, u),
247
+ unit: C(i),
248
248
  placement: k === U.value.length - 1 ? "top" : "bottom",
249
249
  "convert-amount-on-change-unit": "",
250
250
  disabled: e.readonly
251
251
  }, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
252
252
  ]),
253
- e.readonly ? g("", !0) : (m(), y("div", Se, [
253
+ e.readonly ? g("", !0) : (m(), y("div", Te, [
254
254
  c(r, {
255
255
  disabled: e.disabled,
256
256
  type: "button",
257
257
  variant: "tertiary",
258
258
  icon: "delete",
259
- onClick: (u) => E(l.id, e.modelValue)
259
+ onClick: (u) => E(i.id, e.modelValue)
260
260
  }, null, 8, ["disabled", "onClick"])
261
261
  ]))
262
262
  ]),
263
- n("div", Te, [
263
+ n("div", Ne, [
264
264
  c(t, {
265
- modelValue: +i(B)(l.amount ?? { amount: 1, precision: 0 }),
266
- rules: [i(T)(0)]
265
+ modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
266
+ rules: [l(N)(0)]
267
267
  }, null, 8, ["modelValue", "rules"]),
268
268
  c(t, {
269
- modelValue: W(l),
269
+ modelValue: W(i),
270
270
  rules: [
271
- i(re)(),
272
- i(de)(C(l))
271
+ l(re)(),
272
+ l(de)(C(i))
273
273
  ]
274
274
  }, null, 8, ["modelValue", "rules"])
275
275
  ])
@@ -282,5 +282,5 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
282
282
  }
283
283
  });
284
284
  export {
285
- je as _
285
+ ze as _
286
286
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as s, resolveComponent as c, openBlock as m, createBlock as d, h as g } from "vue";
2
2
  import { useI18n as p } from "@feedmepos/mf-common";
3
3
  import { components as u } from "@feedmepos/ui-library";
4
- import { F as r } from "./app-Du-JrqLm.js";
4
+ import { F as r } from "./app-IM1yJnE8.js";
5
5
  const B = /* @__PURE__ */ s({
6
6
  __name: "InventoryBindingSummary",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
2
- import { L as d } from "./app-Du-JrqLm.js";
2
+ import { K as d } from "./app-IM1yJnE8.js";
3
3
  const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,17 +1,17 @@
1
- import { aw as d, ax as f, X as _, u as h } from "./app-Du-JrqLm.js";
1
+ import { aA as d, aB as f, W as _, u as h } from "./app-IM1yJnE8.js";
2
2
  import { useCoreStore as F } from "@feedmepos/mf-common";
3
- import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as x, createVNode as l, withCtx as S } from "vue";
4
- function w(e, t) {
3
+ import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as S, createVNode as l, withCtx as x } from "vue";
4
+ function I(e, t) {
5
5
  return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
6
6
  }
7
- function I(e, t) {
8
- const r = t.map((o) => o.name), n = e.map((o) => w(o, t));
7
+ function O(e, t) {
8
+ const r = t.map((o) => o.name), n = e.map((o) => I(o, t));
9
9
  return d.aoa_to_sheet([r, ...n]);
10
10
  }
11
- async function A(e, t) {
11
+ async function z(e, t) {
12
12
  const r = d.book_new();
13
13
  for (const n of e) {
14
- const o = I(
14
+ const o = O(
15
15
  n.data,
16
16
  n.columns.map((a) => typeof a == "string" ? {
17
17
  name: a,
@@ -45,13 +45,13 @@ const m = _((e, t) => {
45
45
  }
46
46
  };
47
47
  });
48
- function O() {
48
+ function w() {
49
49
  return {
50
50
  inventoryForecast: { skus: [] },
51
51
  purchaseOrderForecast: { skus: [] }
52
52
  };
53
53
  }
54
- const c = y(O());
54
+ const c = y(w());
55
55
  function C() {
56
56
  return {
57
57
  // state
@@ -82,7 +82,7 @@ function D(e) {
82
82
  let t = e.substring(e.indexOf("_") + 1);
83
83
  return t.includes("_") && (t = t.substring(0, t.lastIndexOf("_"))), Number.isNaN(Date.parse(t)) ? null : new Date(t).toISOString();
84
84
  }
85
- const b = { class: "flex items-center gap-8" }, B = "Experience enhanced inventory features with premium plan.", N = /* @__PURE__ */ v({
85
+ const B = { class: "flex items-center gap-8" }, b = "Experience enhanced inventory features with premium plan.", N = /* @__PURE__ */ v({
86
86
  __name: "PremiumBadge",
87
87
  props: {
88
88
  zIndex: {}
@@ -90,15 +90,15 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
90
90
  setup(e) {
91
91
  return (t, r) => {
92
92
  const n = p("FmPill"), o = p("FmTooltip");
93
- return k(), g("div", b, [
94
- x(t.$slots, "default"),
93
+ return k(), g("div", B, [
94
+ S(t.$slots, "default"),
95
95
  l(o, {
96
96
  variant: "plain",
97
97
  placement: "top",
98
- content: B,
98
+ content: b,
99
99
  "z-index": t.zIndex
100
100
  }, {
101
- default: S(() => [
101
+ default: x(() => [
102
102
  l(n, { variant: "premium" })
103
103
  ]),
104
104
  _: 1
@@ -109,7 +109,7 @@ const b = { class: "flex items-center gap-8" }, B = "Experience enhanced invento
109
109
  });
110
110
  export {
111
111
  N as _,
112
- A as e,
112
+ z as e,
113
113
  D as i,
114
114
  C as u
115
115
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as j, computed as i, ref as q, resolveComponent as a, openBlock as k, createBlock as D, unref as p, createSlots as G, withCtx as r, createElementVNode as b, normalizeClass as J, createVNode as n, normalizeStyle as Q, Teleport as W, h } from "vue";
2
- import { u as X, a as Z, z as ee, _ as te, ae as P } from "./app-Du-JrqLm.js";
1
+ import { defineComponent as j, computed as i, ref as q, resolveComponent as a, openBlock as z, createBlock as D, unref as p, createSlots as G, withCtx as r, createElementVNode as b, normalizeClass as J, createVNode as n, normalizeStyle as Q, Teleport as W, h } from "vue";
2
+ import { u as X, a as Z, y as ee, _ as te, ai as P } from "./app-IM1yJnE8.js";
3
3
  import { useBreakpoints as oe, components as ne } from "@feedmepos/ui-library";
4
- import { u as le } from "./vue-i18n-DIA7c33f.js";
4
+ import { u as le } from "./vue-i18n-CzPFJ9JY.js";
5
5
  const ae = { class: "flex flex-col py-8" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, pe = /* @__PURE__ */ j({
6
6
  __name: "PublishView",
7
7
  setup(re) {
@@ -101,7 +101,7 @@ const ae = { class: "flex flex-col py-8" }, se = { class: "fm-typo-en-body-md-40
101
101
  ];
102
102
  return (e, t) => {
103
103
  const o = a("FmChip"), x = a("FlexRender"), $ = a("TableActionableRow"), E = a("FmTable"), K = a("FmCollapsibleTabs"), O = a("FmBottomSheet");
104
- return k(), D(te, {
104
+ return z(), D(te, {
105
105
  title: p(l)("inventory.publish.title"),
106
106
  actions: Y.value,
107
107
  "onClick:action": B
@@ -129,7 +129,7 @@ const ae = { class: "flex flex-col py-8" }, se = { class: "fm-typo-en-body-md-40
129
129
  "list-row": r((s) => [
130
130
  n($, { row: s }, {
131
131
  default: r((c) => {
132
- var S, A, F, d, M, C, T, V, m, z;
132
+ var S, A, F, d, M, C, T, V, m, k;
133
133
  return [
134
134
  b("div", ae, [
135
135
  b("div", se, [
@@ -141,7 +141,7 @@ const ae = { class: "flex flex-col py-8" }, se = { class: "fm-typo-en-body-md-40
141
141
  b("div", ie, [
142
142
  n(x, {
143
143
  render: (V = (T = (C = c.name) == null ? void 0 : C.column) == null ? void 0 : T.columnDef) == null ? void 0 : V.cell,
144
- props: (z = (m = c.name) == null ? void 0 : m.getContext) == null ? void 0 : z.call(m)
144
+ props: (k = (m = c.name) == null ? void 0 : m.getContext) == null ? void 0 : k.call(m)
145
145
  }, null, 8, ["render", "props"])
146
146
  ])
147
147
  ])
@@ -153,7 +153,7 @@ const ae = { class: "flex flex-col py-8" }, se = { class: "fm-typo-en-body-md-40
153
153
  _: 1
154
154
  }, 8, ["style", "row-data", "loading", "page-size"])
155
155
  ], 2),
156
- (k(), D(W, { to: "body" }, [
156
+ (z(), D(W, { to: "body" }, [
157
157
  n(O, {
158
158
  "dismiss-away": "",
159
159
  modelValue: v.value,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { ar as y, ad as C } from "./app-Du-JrqLm.js";
3
+ import { av as y, ah as C } from "./app-IM1yJnE8.js";
4
4
  const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
5
5
  class: "text-left",
6
6
  style: { width: "20%" }