@feedmepos/mf-inventory-portal 0.0.23-dev.31 → 0.0.23-dev.4

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 (107) hide show
  1. package/dist/{App-CEmWJ9lp.js → App-DReDvY0M.js} +73 -85
  2. package/dist/{ApprovalView-jDll4AVe.js → ApprovalView-BMZlYmRk.js} +27 -24
  3. package/dist/{BindingsDialog-BC_gRSif.js → BindingsDialog-Y2K4I7H7.js} +4 -4
  4. package/dist/{BindingsPicker-BJsGoBzM.js → BindingsPicker-DKBq9c37.js} +9 -8
  5. package/dist/{BindingsTable-DSdwNK_q.js → BindingsTable-45v4SDfp.js} +22 -18
  6. package/dist/{ClosingTemplateView-BzG16gl5.js → ClosingTemplateView-CKJVYSbj.js} +286 -272
  7. package/dist/FmDroppableField-8RzKjEdL.js +154 -0
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DW2IOPST.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js} +23 -22
  9. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +436 -0
  10. package/dist/FmMultiselectDialog-D7YtdoyJ.js +415 -0
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DDuZEf_v.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js} +49 -48
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CiNvnaaE.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js} +5 -5
  13. package/dist/{IngredientGroupView-DL8eBhkk.js → IngredientGroupView-BuP-HGeg.js} +69 -63
  14. package/dist/IngredientsView-DMRN-odY.js +1613 -0
  15. package/dist/{IntegrationView-BeFT5S24.js → IntegrationView-kYCaKG0o.js} +95 -92
  16. package/dist/{InventoryBindingForm-DJ3uwq_X.js → InventoryBindingForm-BXHq4h-n.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIviTipZ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js} +27 -25
  18. package/dist/{InventoryBindingSummary-CvB5j9xq.js → InventoryBindingSummary-Bjasfc_v.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQPdnXEF.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BdscwUGn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js} +24 -23
  21. package/dist/{PurchaseOrderPrintPreview-3_6nBajH.js → PurchaseOrderPrintPreview-CmjkfTTS.js} +14 -13
  22. package/dist/{ReceiveRequestView-B_0UldQ7.js → ReceiveRequestView-aQZJO8sq.js} +1302 -1325
  23. package/dist/{RecipeView-D9p0Ou_I.js → RecipeView-DXO43tFi.js} +85 -79
  24. package/dist/{StockView-TIdUgG3O.js → StockView-D9no-mrA.js} +1446 -1338
  25. package/dist/{SupplierView-B1b9Otcr.js → SupplierView-DAx7E7sR.js} +787 -2325
  26. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js +1209 -0
  28. package/dist/TransferTemplateView-CfxdQF1t.js +1261 -0
  29. package/dist/{UnitView-BrpzJ7D3.js → UnitView-CQPGZ8-r.js} +44 -40
  30. package/dist/{WarehouseView-CjbdEy8o.js → WarehouseView-jy-RNCgy.js} +100 -94
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/api/closing.d.ts +0 -1
  33. package/dist/api/netsuite.d.ts +3 -3
  34. package/dist/app-KnSMkJBV.js +33496 -0
  35. package/dist/app.d.ts +0 -56
  36. package/dist/app.js +2 -2
  37. package/dist/components/FmMultiselectDialogProps.d.ts +0 -1
  38. package/dist/components/row-action.enum.d.ts +0 -1
  39. package/dist/composable/defineDeepModel.d.ts +1 -1
  40. package/dist/date2-CIeUqUIc.js +117 -0
  41. package/dist/dayjs.min-Df5jSnDJ.js +282 -0
  42. package/dist/{decimal-DHYZglKx.js → decimal-BAc9M88Q.js} +1 -1
  43. package/dist/defineDeepModel-BfuQAIoM.js +13 -0
  44. package/dist/{feature-G-NnqKcY.js → feature-dwB4OxRQ.js} +6 -12
  45. package/dist/format-time-from-id-BbvzyIN6.js +15 -0
  46. package/dist/{format-unit-display-BWqJsV_R.js → format-unit-display-BBWblJEt.js} +171 -162
  47. package/dist/fuzzy-B9ryZ9VZ.js +41 -0
  48. package/dist/index-BN0CY3sZ.js +22277 -0
  49. package/dist/index-Bj1fJum-.js +45 -0
  50. package/dist/index-C4yL_7rR.js +10545 -0
  51. package/dist/netsuite-ByWOS6tI.js +194 -0
  52. package/dist/normalizeArguments-DP7Hrren.js +1552 -0
  53. package/dist/router/name.d.ts +0 -2
  54. package/dist/row-action.enum-PMKMRrZR.js +50 -0
  55. package/dist/rules-C12nWDD1.js +198 -0
  56. package/dist/stores/feature.d.ts +0 -1
  57. package/dist/stores/integration/netsuite.d.ts +2 -70
  58. package/dist/stores/inventory.d.ts +4 -1
  59. package/dist/style.css +1 -1
  60. package/dist/{supplier-DTUUR48O.js → supplier-DJC0UZWv.js} +15 -15
  61. package/dist/tsconfig.app.tsbuildinfo +1 -1
  62. package/dist/{use-inventory-binding-dialog-DvC_i-Ih.js → use-inventory-binding-dialog-PEQbFRvO.js} +11 -10
  63. package/dist/use-template-enabled-locations-2-k9g5t8tt.js +86 -0
  64. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +192 -24
  65. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +193 -25
  66. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +0 -2
  67. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -6
  68. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -9
  69. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +0 -9
  70. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  71. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  72. package/dist/xlsx-B4XHad7S.js +24004 -0
  73. package/dist/xlsx.util-BSO4SHJi.js +78 -0
  74. package/package.json +3 -3
  75. package/dist/ClosingDraftView-UfWdRXb-.js +0 -1190
  76. package/dist/IngredientsView-B_HC9fgq.js +0 -1657
  77. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-jUYB4L8Y.js +0 -1275
  78. package/dist/TransferTemplateView-Dxk5b-2j.js +0 -1264
  79. package/dist/api/adjustment-template.d.ts +0 -23
  80. package/dist/api/closing-draft.d.ts +0 -6
  81. package/dist/app-AcMtTQ07.js +0 -84202
  82. package/dist/index-Bt8vaUdT.js +0 -12087
  83. package/dist/stock-VZXyPw2C.js +0 -125
  84. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +0 -2
  85. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +0 -18
  86. package/dist/views/adjustment-template/import/export.d.ts +0 -60
  87. package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +0 -2
  88. package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +0 -22
  89. package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +0 -6
  90. package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +0 -2
  91. package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -1295
  92. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +0 -16
  93. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +0 -35
  94. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +0 -20
  95. package/dist/views/adjustment-template/wastage-template/props.d.ts +0 -29
  96. package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -1273
  97. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +0 -2
  98. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +0 -22
  99. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -621
  100. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +0 -25
  101. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -3621
  102. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +0 -1
  103. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +0 -19
  104. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +0 -4
  105. package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +0 -12
  106. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +0 -13
  107. package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +0 -12
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
2
- import { i as a, J as y } from "./app-AcMtTQ07.js";
2
+ import { a, b as y } from "./rules-C12nWDD1.js";
3
3
  import { useI18n as _ } from "@feedmepos/mf-common";
4
- const v = { class: "flex flex-col" }, g = { 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" }, h = { class: "flex-1 py-8 px-16" }, b = {
4
+ const v = { class: "flex flex-col" }, b = { 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" }, g = { class: "flex-1 py-8 px-16" }, h = {
5
5
  class: "flex-0 py-8 px-16",
6
6
  style: { "flex-basis": "120px" }
7
7
  }, k = { class: "flex-1 py-8 px-16" }, B = {
@@ -32,9 +32,9 @@ const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-bod
32
32
  return e.unit !== void 0;
33
33
  }
34
34
  return (e, i) => (s(), n("div", v, [
35
- r("div", g, [
36
- r("div", h, o(e.name), 1),
37
- r("div", b, o(l(m)("inventory.ingredient.bindedItems.amount")), 1)
35
+ r("div", b, [
36
+ r("div", g, o(e.name), 1),
37
+ r("div", h, o(l(m)("inventory.ingredient.bindedItems.amount")), 1)
38
38
  ]),
39
39
  (s(!0), n(d, null, x(e.bindings, (t) => (s(), n("div", {
40
40
  key: t.id,
@@ -1,9 +1,15 @@
1
- import { ref as C, computed as F, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as j, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
2
- import { a as J, d as h, e as B, f as ye, D as oe, h as Q, G as be, l as _e, A as xe, H as ne, n as se, u as ke, x as he, y as we, z as Se, B as Ie, E as ae } from "./app-AcMtTQ07.js";
3
- import { useDialog as le, useSnackbar as Z, useProxiedModel as Fe, useBreakpoints as Ce } from "@feedmepos/ui-library";
1
+ import { ref as C, computed as I, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as H, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
2
+ import { a as J, c as B, h as oe, u as ye } from "./app-KnSMkJBV.js";
3
+ import { useDialog as le, useSnackbar as Z, useProxiedModel as be, useBreakpoints as _e } from "@feedmepos/ui-library";
4
+ import { F as h, D as ne, R as Q } from "./row-action.enum-PMKMRrZR.js";
4
5
  import { useI18n as W } from "@feedmepos/mf-common";
5
- import { defineStore as ie, storeToRefs as re } from "pinia";
6
+ import { defineStore as ie, storeToRefs as se } from "pinia";
7
+ import { c as xe, _ as ke, F as ae } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
8
+ import { u as he, _ as we, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js";
6
9
  import "./array-hChJVZLE.js";
10
+ import { d as Fe } from "./defineDeepModel-BfuQAIoM.js";
11
+ import { R as Ie, A as Ce } from "./rules-C12nWDD1.js";
12
+ import { F as re } from "./FmMultiselectDialog-D7YtdoyJ.js";
7
13
  const X = ie(
8
14
  "ingredientGroupactions",
9
15
  function() {
@@ -64,7 +70,7 @@ const X = ie(
64
70
  }
65
71
  }).onPrimary(() => f(d, a, s));
66
72
  }
67
- function G() {
73
+ function A() {
68
74
  }
69
75
  function b() {
70
76
  }
@@ -72,12 +78,12 @@ const X = ie(
72
78
  createIngredientGroup: p,
73
79
  updateIngredientGroup: v,
74
80
  deleteIngredientGroup: y,
75
- importIngredientGroups: G,
81
+ importIngredientGroups: A,
76
82
  exportIngredientGroups: b,
77
83
  ingredientGroupDialogProps: i
78
84
  };
79
85
  }
80
- ), Ge = ie(
86
+ ), Ae = ie(
81
87
  "ingredientGroupTable",
82
88
  function() {
83
89
  const c = C(!1), w = Z(), o = J(), r = X();
@@ -107,7 +113,7 @@ const X = ie(
107
113
  );
108
114
  }
109
115
  }
110
- const v = F(() => [
116
+ const v = I(() => [
111
117
  {
112
118
  accessorKey: "name",
113
119
  header: () => "Name"
@@ -124,8 +130,8 @@ const X = ie(
124
130
  id: "action",
125
131
  header: "",
126
132
  cell(f) {
127
- return ye(
128
- [oe[Q.Edit], oe[Q.Delete]],
133
+ return xe(
134
+ [ne[Q.Edit], ne[Q.Delete]],
129
135
  (y) => {
130
136
  p(y, f.row.original);
131
137
  }
@@ -145,7 +151,7 @@ const X = ie(
145
151
  columnDefs: v
146
152
  };
147
153
  }
148
- ), Ae = { class: "flex flex-col gap-16" }, De = { class: "flex flex-col gap-8 cursor-pointer" }, Ve = {
154
+ ), De = { class: "flex flex-col gap-16" }, Ge = { class: "flex flex-col gap-8 cursor-pointer" }, Ve = {
149
155
  key: 0,
150
156
  class: "text-fm-color-typo-primary fm-typo-en-body-lg-400 line-clamp-1 break-all"
151
157
  }, Ee = { class: "text-fm-color-typo-secondary" }, Re = {
@@ -160,7 +166,7 @@ const X = ie(
160
166
  },
161
167
  emits: ["validation-success"],
162
168
  setup(U, { expose: c, emit: w }) {
163
- const o = be("modelValue"), r = w, i = J(), p = le(), { t: v } = W(), f = C();
169
+ const o = Fe("modelValue"), r = w, i = J(), p = le(), { t: v } = W(), f = C();
164
170
  c({
165
171
  validateInputs: () => {
166
172
  var a;
@@ -175,8 +181,8 @@ const X = ie(
175
181
  return (a = f.value) == null ? void 0 : a.resetInputs();
176
182
  }
177
183
  });
178
- const y = F(() => i.skus.groupBy((a) => a.unit._id));
179
- function G() {
184
+ const y = I(() => i.skus.groupBy((a) => a.unit._id));
185
+ function A() {
180
186
  var s;
181
187
  const a = i.skus.filter((n) => {
182
188
  var t;
@@ -192,7 +198,7 @@ const X = ie(
192
198
  p.open({
193
199
  title: v("inventory.closing.form.items.selectItem"),
194
200
  closeButton: !0,
195
- contentComponent: ne,
201
+ contentComponent: re,
196
202
  contentComponentProps: {
197
203
  modelValue: [(s = o.skus) == null ? void 0 : s[0]],
198
204
  items: a,
@@ -231,7 +237,7 @@ const X = ie(
231
237
  p.open({
232
238
  title: v("inventory.closing.form.items.selectItem"),
233
239
  closeButton: !0,
234
- contentComponent: ne,
240
+ contentComponent: re,
235
241
  contentComponentProps: {
236
242
  modelValue: s,
237
243
  items: a,
@@ -249,8 +255,8 @@ const X = ie(
249
255
  }).onPrimary((n) => {
250
256
  var u, _;
251
257
  const t = ((u = o.skus) == null ? void 0 : u.slice(1)) ?? [], e = n.map((m) => {
252
- const A = t.find((D) => (D == null ? void 0 : D._id) === m._id);
253
- return A || B(m, ["unit"]);
258
+ const D = t.find((G) => (G == null ? void 0 : G._id) === m._id);
259
+ return D || B(m, ["unit"]);
254
260
  });
255
261
  o.skus = [(_ = o.skus) == null ? void 0 : _[0], ...e];
256
262
  });
@@ -268,21 +274,21 @@ const X = ie(
268
274
  }
269
275
  ];
270
276
  return (a, s) => {
271
- const n = S("FmTextField"), t = S("FmLabel"), e = S("FmField"), u = S("FmFormGroup"), _ = S("FmButton"), m = S("FmTable"), A = S("FmForm");
272
- return M(), O(A, {
273
- onValidationSuccess: s[5] || (s[5] = (I) => r("validation-success")),
277
+ const n = S("FmTextField"), t = S("FmLabel"), e = S("FmField"), u = S("FmFormGroup"), _ = S("FmButton"), m = S("FmTable"), D = S("FmForm");
278
+ return M(), O(D, {
279
+ onValidationSuccess: s[5] || (s[5] = (F) => r("validation-success")),
274
280
  ref_key: "formRef",
275
281
  ref: f,
276
282
  class: "flex flex-col gap-32"
277
283
  }, {
278
284
  default: R(() => {
279
- var I, D, V, T, z;
285
+ var F, G, V, T, L;
280
286
  return [
281
- x("div", Ae, [
287
+ x("div", De, [
282
288
  g(n, {
283
289
  label: "Name",
284
290
  "label-mark": "required",
285
- rules: [l(_e)()],
291
+ rules: [l(Ie)()],
286
292
  modelValue: l(o).name,
287
293
  "onUpdate:modelValue": s[0] || (s[0] = (k) => l(o).name = k)
288
294
  }, null, 8, ["rules", "modelValue"]),
@@ -292,30 +298,30 @@ const X = ie(
292
298
  modelValue: l(o).ref,
293
299
  "onUpdate:modelValue": s[1] || (s[1] = (k) => l(o).ref = k)
294
300
  }, null, 8, ["modelValue"]),
295
- x("div", De, [
301
+ x("div", Ge, [
296
302
  g(t, {
297
303
  label: "Main ingredient",
298
304
  required: ""
299
305
  }),
300
306
  g(e, {
301
- onClick: s[2] || (s[2] = (k) => G())
307
+ onClick: s[2] || (s[2] = (k) => A())
302
308
  }, {
303
309
  default: R(() => {
304
- var k, E, $, L, N, K, q, P, H;
310
+ var k, E, $, z, N, K, q, P, j;
305
311
  return [
306
312
  ($ = (E = (k = l(o)) == null ? void 0 : k.skus) == null ? void 0 : E[0]) != null && $.name ? (M(), ee("span", Ve, [
307
- x("span", Ee, "[" + j((K = (N = (L = l(o)) == null ? void 0 : L.skus) == null ? void 0 : N[0]) == null ? void 0 : K.code) + "]", 1),
308
- te(" " + j((H = (P = (q = l(o)) == null ? void 0 : q.skus) == null ? void 0 : P[0]) == null ? void 0 : H.name), 1)
309
- ])) : (M(), ee("span", Re, j("Click to select main item")))
313
+ x("span", Ee, "[" + H((K = (N = (z = l(o)) == null ? void 0 : z.skus) == null ? void 0 : N[0]) == null ? void 0 : K.code) + "]", 1),
314
+ te(" " + H((j = (P = (q = l(o)) == null ? void 0 : q.skus) == null ? void 0 : P[0]) == null ? void 0 : j.name), 1)
315
+ ])) : (M(), ee("span", Re, H("Click to select main item")))
310
316
  ];
311
317
  }),
312
318
  _: 1
313
319
  }),
314
320
  x("div", Te, [
315
- s[6] || (s[6] = te(j("Select a main item to filter out substitutable items with same unit.") + " ")),
321
+ s[6] || (s[6] = te(H("Select a main item to filter out substitutable items with same unit.") + " ")),
316
322
  g(u, {
317
- "model-value": ((I = l(o)) == null ? void 0 : I.skus) ?? [],
318
- rules: [l(xe)(1, "Required")]
323
+ "model-value": ((F = l(o)) == null ? void 0 : F.skus) ?? [],
324
+ rules: [l(Ce)(1, "Required")]
319
325
  }, null, 8, ["model-value", "rules"])
320
326
  ])
321
327
  ])
@@ -326,7 +332,7 @@ const X = ie(
326
332
  x("div", null, [
327
333
  g(_, {
328
334
  label: "Add items",
329
- disabled: (((V = (D = l(o)) == null ? void 0 : D.skus) == null ? void 0 : V.length) ?? 0) < 1,
335
+ disabled: (((V = (G = l(o)) == null ? void 0 : G.skus) == null ? void 0 : V.length) ?? 0) < 1,
330
336
  onClick: s[3] || (s[3] = (k) => b()),
331
337
  "prepend-icon": "add",
332
338
  variant: "secondary",
@@ -346,7 +352,7 @@ const X = ie(
346
352
  }),
347
353
  draggable: "",
348
354
  "hide-footer": "",
349
- "page-size": ((z = l(o).skus) == null ? void 0 : z.length) ?? 0
355
+ "page-size": ((L = l(o).skus) == null ? void 0 : L.length) ?? 0
350
356
  }, null, 8, ["row-data", "page-size"])
351
357
  ])
352
358
  ];
@@ -364,7 +370,7 @@ const X = ie(
364
370
  },
365
371
  emits: ["update:show"],
366
372
  setup(U) {
367
- const c = U, w = J(), o = Z(), { t: r } = W(), i = Fe(c, "show"), p = C({}), v = C(`${Math.random()}`);
373
+ const c = U, w = J(), o = Z(), { t: r } = W(), i = be(c, "show"), p = C({}), v = C(`${Math.random()}`);
368
374
  ue(
369
375
  () => c.show,
370
376
  (t) => {
@@ -376,7 +382,7 @@ const X = ie(
376
382
  }), v.value = `${Math.random()}`);
377
383
  }
378
384
  );
379
- const f = F(() => {
385
+ const f = I(() => {
380
386
  switch (c.mode) {
381
387
  case h.READ:
382
388
  return "";
@@ -386,7 +392,7 @@ const X = ie(
386
392
  return r("inventory.ingredient.create.title");
387
393
  }
388
394
  return "";
389
- }), y = F(() => {
395
+ }), y = I(() => {
390
396
  switch (c.mode) {
391
397
  case h.READ:
392
398
  return "";
@@ -396,7 +402,7 @@ const X = ie(
396
402
  return r("common.add");
397
403
  }
398
404
  return "";
399
- }), G = C(), b = C(!1);
405
+ }), A = C(), b = C(!1);
400
406
  async function d() {
401
407
  b.value = !0;
402
408
  const t = B(p.value);
@@ -407,7 +413,7 @@ const X = ie(
407
413
  type: "success"
408
414
  });
409
415
  } catch (e) {
410
- e instanceof se || o.open({
416
+ e instanceof oe || o.open({
411
417
  title: r("inventory.ingredient.create.error.title"),
412
418
  message: r("inventory.ingredient.create.error.message"),
413
419
  type: "error"
@@ -426,7 +432,7 @@ const X = ie(
426
432
  type: "success"
427
433
  });
428
434
  } catch (e) {
429
- e instanceof se || o.open({
435
+ e instanceof oe || o.open({
430
436
  title: r("inventory.ingredient.update.error.title"),
431
437
  message: r("inventory.ingredient.update.error.message"),
432
438
  type: "error"
@@ -437,7 +443,7 @@ const X = ie(
437
443
  }
438
444
  function s() {
439
445
  var t, e;
440
- (e = (t = G.value) == null ? void 0 : t.validateInputs) == null || e.call(t);
446
+ (e = (t = A.value) == null ? void 0 : t.validateInputs) == null || e.call(t);
441
447
  }
442
448
  function n() {
443
449
  switch (c.mode) {
@@ -478,7 +484,7 @@ const X = ie(
478
484
  (M(), O(Me, {
479
485
  class: "w-full",
480
486
  ref_key: "hasValidationExpose",
481
- ref: G,
487
+ ref: A,
482
488
  key: v.value,
483
489
  "model-value": p.value,
484
490
  "onUpdate:modelValue": e[0] || (e[0] = (m) => p.value = m),
@@ -491,17 +497,17 @@ const X = ie(
491
497
  }, 8, ["model-value", "header"]);
492
498
  };
493
499
  }
494
- }), ze = { class: "flex flex-col py-8" }, Le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Qe = /* @__PURE__ */ Y({
500
+ }), Le = { class: "flex flex-col py-8" }, ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, tt = /* @__PURE__ */ Y({
495
501
  __name: "IngredientGroupView",
496
502
  setup(U) {
497
- const c = J(), w = F(() => c.skuGroups), o = ke(), { t: r } = W(), {
503
+ const c = J(), w = I(() => c.skuGroups), o = ye(), { t: r } = W(), {
498
504
  createIngredientGroup: i,
499
505
  updateIngredientGroup: p,
500
506
  importIngredientGroups: v,
501
507
  exportIngredientGroups: f
502
- } = X(), { columnDefs: y, loading: G } = re(Ge()), { ingredientGroupDialogProps: b } = re(X());
503
- function d(A) {
504
- switch (A) {
508
+ } = X(), { columnDefs: y, loading: A } = se(Ae()), { ingredientGroupDialogProps: b } = se(X());
509
+ function d(D) {
510
+ switch (D) {
505
511
  case "add":
506
512
  return i();
507
513
  case "import":
@@ -510,7 +516,7 @@ const X = ie(
510
516
  return f();
511
517
  }
512
518
  }
513
- const a = C(""), s = C(!1), n = F(() => s.value || G.value), { breakpoints: t } = Ce(), e = F(() => t.value.xs || t.value.sm), u = F(() => e.value ? 10 : 20), _ = he(), m = F(() => [
519
+ const a = C(""), s = C(!1), n = I(() => s.value || A.value), { breakpoints: t } = _e(), e = I(() => t.value.xs || t.value.sm), u = I(() => e.value ? 10 : 20), _ = he(), m = I(() => [
514
520
  {
515
521
  label: r("inventory.ingredient.create.title"),
516
522
  value: "add",
@@ -520,8 +526,8 @@ const X = ie(
520
526
  { label: r("common.import"), value: "import" },
521
527
  { label: r("common.export"), value: "export" }
522
528
  ]);
523
- return (A, I) => {
524
- const D = S("FmTable");
529
+ return (D, F) => {
530
+ const G = S("FmTable");
525
531
  return M(), O(we, {
526
532
  title: l(r)("inventory.ingredientGroup.title"),
527
533
  actions: m.value,
@@ -540,37 +546,37 @@ const X = ie(
540
546
  g(Se, {
541
547
  searchable: "",
542
548
  search: a.value,
543
- "onUpdate:search": I[0] || (I[0] = (V) => a.value = V)
549
+ "onUpdate:search": F[0] || (F[0] = (V) => a.value = V)
544
550
  }, null, 8, ["search"]),
545
- g(D, {
551
+ g(G, {
546
552
  style: me(l(_).tableHeight),
547
553
  "column-defs": l(y),
548
554
  "row-data": w.value,
549
555
  "search-value": a.value,
550
556
  loading: !l(o)._currentLocation || n.value,
551
557
  "loading-text": "Loading",
552
- onRowClick: I[1] || (I[1] = (V) => l(p)(V.original)),
558
+ onRowClick: F[1] || (F[1] = (V) => l(p)(V.original)),
553
559
  "page-size": u.value
554
560
  }, {
555
561
  "list-row": R((V) => [
556
- g(Ie, {
562
+ g(ke, {
557
563
  row: V,
558
564
  onRowClick: l(p)
559
565
  }, pe({
560
566
  default: R((T) => {
561
- var z, k, E, $, L, N, K, q, P, H;
567
+ var L, k, E, $, z, N, K, q, P, j;
562
568
  return [
563
- x("div", ze, [
564
- x("div", Le, [
569
+ x("div", Le, [
570
+ x("div", ze, [
565
571
  g(l(ae), {
566
- render: (E = (k = (z = T.code) == null ? void 0 : z.column) == null ? void 0 : k.columnDef) == null ? void 0 : E.cell,
567
- props: (L = ($ = T.code) == null ? void 0 : $.getContext) == null ? void 0 : L.call($)
572
+ render: (E = (k = (L = T.code) == null ? void 0 : L.column) == null ? void 0 : k.columnDef) == null ? void 0 : E.cell,
573
+ props: (z = ($ = T.code) == null ? void 0 : $.getContext) == null ? void 0 : z.call($)
568
574
  }, null, 8, ["render", "props"])
569
575
  ]),
570
576
  x("div", Ne, [
571
577
  g(l(ae), {
572
578
  render: (q = (K = (N = T.name) == null ? void 0 : N.column) == null ? void 0 : K.columnDef) == null ? void 0 : q.cell,
573
- props: (H = (P = T.name) == null ? void 0 : P.getContext) == null ? void 0 : H.call(P)
579
+ props: (j = (P = T.name) == null ? void 0 : P.getContext) == null ? void 0 : j.call(P)
574
580
  }, null, 8, ["render", "props"])
575
581
  ])
576
582
  ])
@@ -581,7 +587,7 @@ const X = ie(
581
587
  s.value ? {
582
588
  name: "loading-text",
583
589
  fn: R(() => [
584
- x("div", null, j(l(r)("inventory.ingredient.table.importing")), 1)
590
+ x("div", null, H(l(r)("inventory.ingredient.table.importing")), 1)
585
591
  ]),
586
592
  key: "0"
587
593
  } : void 0
@@ -600,5 +606,5 @@ const X = ie(
600
606
  }
601
607
  });
602
608
  export {
603
- Qe as default
609
+ tt as default
604
610
  };