@feedmepos/mf-inventory-portal 0.0.25-dev.2 → 0.0.25-dev.21

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 (115) hide show
  1. package/dist/App-D6WBVERc.js +278 -0
  2. package/dist/ApprovalView-BIBoagE8.js +146 -0
  3. package/dist/{BindingsDialog-qeGh3ND8.js → BindingsDialog-DHRRkK1Z.js} +6 -6
  4. package/dist/{BindingsPicker-SfiA8fmD.js → BindingsPicker-DohvMDDF.js} +3 -3
  5. package/dist/{BindingsTable-BjW-eJr6.js → BindingsTable-C_JwU9ei.js} +6 -6
  6. package/dist/ClosingDraftView-BBebhUj-.js +1308 -0
  7. package/dist/ClosingTemplateView-CXRN19-D.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-BJufUQNE.js +215 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-5rldKjyh.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C5Xk19jY.js} +52 -52
  11. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-7HNI82u-.js +51 -0
  12. package/dist/{IngredientGroupView-CGyyFyvj.js → IngredientGroupView-l2bAc1Kj.js} +1 -1
  13. package/dist/{IngredientsView-BLKk-VxQ.js → IngredientsView-zDXt7KEx.js} +394 -382
  14. package/dist/{IntegrationView-C6gwvZ9b.js → IntegrationView-BYnlAPrP.js} +660 -623
  15. package/dist/{InventoryBindingForm-BB3ZN3Lx.js → InventoryBindingForm-BuweG4Vl.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-PT7Quw7j.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DgxN0U4N.js} +99 -99
  17. package/dist/{InventoryBindingSummary-yr0oie3c.js → InventoryBindingSummary-BpEo0JsK.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DjJGUE9a.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CcjzkzCt.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-O1mYRa5W.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Ej20iSHA.js} +15 -15
  20. package/dist/PublishView-DCZ0zIaP.js +222 -0
  21. package/dist/{PurchaseOrderPrintPreview-Q_9-KVNj.js → PurchaseOrderPrintPreview-Cag7UEvz.js} +1 -1
  22. package/dist/ReceiveRequestView-ChIJGA98.js +2319 -0
  23. package/dist/{RecipeView-DBfugmRY.js → RecipeView-bBshe0eF.js} +32 -31
  24. package/dist/{index-CgspzSQi.js → StockView-D6-oKpAC.js} +3577 -1764
  25. package/dist/{SupplierView-BQViPyfj.js → SupplierView-dyIcGp9Q.js} +12 -11
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C_7wbQow.js +1771 -0
  27. package/dist/TransferTemplateView-D2rxV0k_.js +1660 -0
  28. package/dist/{UnitView-CrbFeWaB.js → UnitView-DVS5Az5c.js} +14 -14
  29. package/dist/{WarehouseView-Dy5GljxY.js → WarehouseView-CR03TpnA.js} +332 -314
  30. package/dist/api/closing-draft.d.ts +1 -0
  31. package/dist/api/inventory.d.ts +9 -6
  32. package/dist/api/purchase-order.d.ts +2 -1
  33. package/dist/{app-D0O4wr2X.js → app-oV9ISfFL.js} +28343 -28141
  34. package/dist/app.js +1 -1
  35. package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
  36. package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
  37. package/dist/components/FmLockableField.vue.d.ts +3 -0
  38. package/dist/components/FmMultiselectDialog.d.ts +46 -0
  39. package/dist/components/FmMultiselectDialog.vue.d.ts +20 -3
  40. package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
  41. package/dist/components/MountListener.vue.d.ts +15 -0
  42. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  43. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  44. package/dist/{decimal-CPGmj9BT.js → decimal-C7zgfr5G.js} +1 -1
  45. package/dist/feature-CDQQ-mV9.js +1003 -0
  46. package/dist/{format-unit-display-CMM6DZJj.js → format-unit-display-CVBzrNQ4.js} +334 -327
  47. package/dist/helper/fuzzy.d.ts +10 -0
  48. package/dist/index-0VS4cuk3.js +35546 -0
  49. package/dist/{stock-9nTT4Amy.js → stock-BIP_NIK_.js} +3 -3
  50. package/dist/stores/feature.d.ts +4 -7
  51. package/dist/stores/integration/netsuite.d.ts +5 -0
  52. package/dist/stores/inventory.d.ts +135 -8
  53. package/dist/stores/location.d.ts +100 -0
  54. package/dist/stores/warehouse.d.ts +1 -0
  55. package/dist/style.css +1 -1
  56. package/dist/{supplier-CH4EwBZM.js → supplier-DUQ2VSMg.js} +1 -1
  57. package/dist/tsconfig.app.tsbuildinfo +1 -1
  58. package/dist/use-ingredient-select-dialog-VkU5_Aaj.js +51 -0
  59. package/dist/{use-inventory-binding-dialog-Dli3xtq4.js → use-inventory-binding-dialog-BXp0z3v_.js} +1 -1
  60. package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
  61. package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
  62. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  63. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  64. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
  65. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
  66. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  67. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +36 -12
  68. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
  69. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
  70. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  71. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  72. package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
  73. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  74. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
  75. package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +1387 -0
  76. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +5 -1
  77. package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +3 -0
  78. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -2
  79. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +48 -2
  80. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +490 -2
  81. package/dist/views/receive-request/components/transfer-form/components/TransferSubItemTable.vue.d.ts +72 -0
  82. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +25 -2
  83. package/dist/views/receive-request/components/transfer-form/helpers/calculate-sub-item-total.helper.d.ts +4 -0
  84. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +693 -35
  85. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +684 -35
  86. package/dist/views/receive-request/helper/po-to-po-template.util.d.ts +1 -0
  87. package/dist/views/receive-request/helper/print-po.d.ts +9 -2
  88. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  89. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +270 -2
  90. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +286 -0
  91. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateSubItem.vue.d.ts +74 -0
  92. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateSubItemTable.vue.d.ts +92 -0
  93. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
  94. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
  95. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +36 -2
  96. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +456 -12
  97. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +456 -12
  98. package/dist/views/transfer-template/helpers/location-to-po-supplier.util.d.ts +75 -0
  99. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
  100. package/dist/{vue-i18n-BcYt8MNZ.js → vue-i18n-CCd5_SRR.js} +212 -212
  101. package/package.json +3 -3
  102. package/dist/App-oKNdl2la.js +0 -276
  103. package/dist/ApprovalView-hDGkcBDy.js +0 -138
  104. package/dist/ClosingDraftView-CEeeL7W4.js +0 -1225
  105. package/dist/ClosingTemplateView-CkS9e0MV.js +0 -1819
  106. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-CIBSvY0s.js +0 -142
  107. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dg_7ELeT.js +0 -286
  108. package/dist/PublishView-ByXdmuJL.js +0 -192
  109. package/dist/ReceiveRequestView-CApg7LGM.js +0 -1876
  110. package/dist/StockView-D6o_oUlz.js +0 -1817
  111. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D2skLe2M.js +0 -1327
  112. package/dist/TransferTemplateView-DVesObTd.js +0 -1284
  113. package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
  114. package/dist/index-P5iEcRw3.js +0 -29202
  115. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -2628
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-PT7Quw7j.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DgxN0U4N.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-D0O4wr2X.js";
3
- import { u as ie } from "./use-inventory-binding-dialog-Dli3xtq4.js";
4
- import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-5rldKjyh.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-oV9ISfFL.js";
3
+ import { u as le } from "./use-inventory-binding-dialog-BXp0z3v_.js";
4
+ import { _ as re, c as se, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-C5Xk19jY.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,71 +30,71 @@ 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({
35
- bindings: s.modelValue,
36
- recipes: I.value.map((t) => t._id === s.id ? {
37
- ...t,
38
- contains: s.modelValue
39
- } : t),
33
+ setup(P, { emit: M }) {
34
+ const { t: p } = ae(), F = Z(), I = _(() => F.inventory.recipe ?? []), h = _(() => F.inventory.sku ?? []), r = P, f = M, w = _(() => ee({
35
+ bindings: r.modelValue,
36
+ recipes: I.value.map((o) => o._id === r.id ? {
37
+ ...o,
38
+ contains: r.modelValue
39
+ } : o),
40
40
  skus: h.value
41
- }).inventoryBindings.filter((t) => t.error).filter((t) => t.reason === ne.enum.circularDependency)), D = _(
41
+ }).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === ne.enum.circularDependency)), K = _(
42
42
  () => new Set(w.value.map((e) => {
43
- var o;
44
- return (o = e.bindingPaths[0]) == null ? void 0 : o.id;
43
+ var t;
44
+ return (t = e.bindingPaths[0]) == null ? void 0 : t.id;
45
45
  }))
46
- ), K = _(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: j } = ie();
47
- async function z() {
48
- if (s.iframeMode) {
46
+ ), D = _(() => r.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: z } = le();
47
+ async function G() {
48
+ if (r.iframeMode) {
49
49
  f("click:pick-inventory-bindings", "RECIPE");
50
50
  return;
51
51
  }
52
- j(
53
- s.modelValue,
52
+ z(
53
+ r.modelValue,
54
54
  (e) => f("update:modelValue", e),
55
- s.id ? [s.id] : []
55
+ r.id ? [r.id] : []
56
56
  );
57
57
  }
58
- const U = _(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
59
- async function G() {
60
- if (s.iframeMode) {
58
+ const U = _(() => r.modelValue.filter((e) => e.type === "SKU") ?? []);
59
+ async function L() {
60
+ if (r.iframeMode) {
61
61
  f("click:pick-inventory-bindings", "SKU");
62
62
  return;
63
63
  }
64
64
  $(
65
- s.modelValue,
65
+ r.modelValue,
66
66
  (e) => f("update:modelValue", e),
67
- s.excludeBindingId,
68
- s.id ? [s.id] : []
67
+ r.excludeBindingId,
68
+ r.id ? [r.id] : []
69
69
  );
70
70
  }
71
- function L(e, o, t) {
72
- const r = +o;
73
- let d = t;
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);
71
+ function j(e, t, o) {
72
+ const s = +t;
73
+ let d = o;
74
+ t.length > 0 && isFinite(s) ? d = o.map((a) => (a.id !== e || (a.amount = te(s)), a)) : d = o.map((a) => (a.id !== e || (a.amount = { amount: 0, precision: 0 }), a)), f("update:modelValue", d);
75
75
  }
76
- function E(e, o) {
77
- const t = o.filter((r) => r.id !== e);
78
- f("update:modelValue", t);
76
+ function E(e, t) {
77
+ const o = t.filter((s) => s.id !== e);
78
+ f("update:modelValue", o);
79
79
  }
80
80
  function C(e) {
81
- var t, r;
82
- if (e.type !== le.enum.SKU)
81
+ var o, s;
82
+ if (e.type !== ie.enum.SKU)
83
83
  throw new Error("Non-SKU binding does not have unit");
84
- if (!((t = h.value.find((d) => d._id === e.id)) == null ? void 0 : t.unit))
84
+ if (!((o = h.value.find((d) => d._id === e.id)) == null ? void 0 : o.unit))
85
85
  throw new Error(`Cannot find ingredient: ${e.id}`);
86
- return (r = h.value.find((d) => d._id === e.id)) == null ? void 0 : r.unit;
86
+ return (s = h.value.find((d) => d._id === e.id)) == null ? void 0 : s.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) {
92
- const r = t.map((d) => d.id !== e ? d : {
91
+ function O(e, t, o) {
92
+ const s = o.map((d) => d.id !== e ? d : {
93
93
  ...d,
94
- amount: o.amount,
95
- measurement: o.measurement
94
+ amount: t.amount,
95
+ measurement: t.measurement
96
96
  });
97
- f("update:modelValue", r);
97
+ f("update:modelValue", s);
98
98
  }
99
99
  const A = Q({});
100
100
  function W(e) {
@@ -106,64 +106,64 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
106
106
  amountAsString: B(e.amount)
107
107
  };
108
108
  }
109
- function q(e, o) {
109
+ function q(e, t) {
110
110
  X(() => {
111
111
  A[e.id] = {
112
112
  modelValue: {
113
113
  amount: e.amount,
114
114
  measurement: e.measurement
115
115
  },
116
- amountAsString: o
116
+ amountAsString: t
117
117
  };
118
118
  });
119
119
  }
120
- return (e, o) => {
121
- const t = x("FmFormGroup"), r = x("FmButton"), d = x("FmIcon"), a = x("FmTextField"), H = x("FmTooltip");
120
+ return (e, t) => {
121
+ const o = x("FmFormGroup"), s = x("FmButton"), d = x("FmIcon"), a = x("FmTextField"), H = x("FmTooltip");
122
122
  return m(), y("div", ue, [
123
- c(t, {
123
+ c(o, {
124
124
  disabled: e.disabled,
125
125
  "model-value": e.modelValue,
126
126
  rules: e.rules
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),
131
- e.readonly ? g("", !0) : (m(), V(r, {
130
+ n("div", pe, v(l(p)("inventory.inventoryBindings.recipe")), 1),
131
+ e.readonly ? g("", !0) : (m(), V(s, {
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),
144
- o[0] || (o[0] = n("div", { class: "w-[200px]" }, null, -1)),
145
- o[1] || (o[1] = n("div", { class: "w-[52px]" }, null, -1))
143
+ n("div", ve, v(l(p)("inventory.inventoryBindings.recipe")), 1),
144
+ t[0] || (t[0] = n("div", { class: "w-[200px]" }, null, -1)),
145
+ t[1] || (t[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(o, {
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",
164
164
  size: "sm"
165
165
  }),
166
- o[2] || (o[2] = n("div", null, "There is circular linking in your binding.", -1))
166
+ t[2] || (t[2] = n("div", null, "There is circular linking in your binding.", -1))
167
167
  ])) : g("", !0)
168
168
  ])
169
169
  ]),
@@ -171,19 +171,19 @@ 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
  ]),
179
179
  e.readonly ? g("", !0) : (m(), y("div", Ve, [
180
- c(r, {
180
+ c(s, {
181
181
  disabled: e.disabled,
182
182
  type: "button",
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),
199
- e.readonly ? g("", !0) : (m(), V(r, {
198
+ n("div", Fe, v(l(p)("inventory.inventoryBindings.ingredient")), 1),
199
+ e.readonly ? g("", !0) : (m(), V(s, {
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),
213
- o[3] || (o[3] = n("div", { class: "w-[52px]" }, null, -1))
211
+ n("div", Ue, v(l(p)("inventory.inventoryBindings.ingredient")), 1),
212
+ n("div", Ee, v(l(p)("inventory.inventoryBindings.amount")), 1),
213
+ t[3] || (t[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, [
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),
242
+ n("div", Se, [
243
+ c(re, {
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, [
254
- c(r, {
253
+ e.readonly ? g("", !0) : (m(), y("div", Te, [
254
+ c(s, {
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, [
264
- c(t, {
265
- modelValue: +i(B)(l.amount ?? { amount: 1, precision: 0 }),
266
- rules: [i(T)(0)]
263
+ n("div", Ne, [
264
+ c(o, {
265
+ modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
266
+ rules: [l(N)(0)]
267
267
  }, null, 8, ["modelValue", "rules"]),
268
- c(t, {
269
- modelValue: W(l),
268
+ c(o, {
269
+ modelValue: W(i),
270
270
  rules: [
271
- i(re)(),
272
- i(de)(C(l))
271
+ l(se)(),
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-D0O4wr2X.js";
4
+ import { F as r } from "./app-oV9ISfFL.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-D0O4wr2X.js";
2
+ import { K as d } from "./app-oV9ISfFL.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-D0O4wr2X.js";
1
+ import { aA as d, aB as f, W as _, u as h } from "./app-oV9ISfFL.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
  };