@feedmepos/mf-inventory-portal 1.2.37 → 1.2.39

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 (72) hide show
  1. package/dist/{App-CeK_qF8S.js → App-CIBkRM7D.js} +3 -3
  2. package/dist/{ApprovalView-CRoApvXP.js → ApprovalView-acGeMlGB.js} +5 -5
  3. package/dist/{BindingsDialog-D7oWgao5.js → BindingsDialog-DGztM2kT.js} +11 -11
  4. package/dist/{BindingsPicker-DtBK6IiY.js → BindingsPicker-DEoJFqkW.js} +9 -9
  5. package/dist/{BindingsTable-DA78EnRr.js → BindingsTable-BaDD6xJn.js} +16 -16
  6. package/dist/{ClosingDraftView-QwoDNdEG.js → ClosingDraftView-Dm-oa8VO.js} +8 -8
  7. package/dist/{ClosingHistoryView-B0iTuNfi.js → ClosingHistoryView-CRTwFjLD.js} +3 -3
  8. package/dist/{ClosingTemplateView-DcrA94z5.js → ClosingTemplateView-DPHTHllg.js} +14 -14
  9. package/dist/{DeliveryOrderPrintPreview-Dq-J4tR9.js → DeliveryOrderPrintPreview-D0JzeOB_.js} +1 -1
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Cof8Bfgq.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B2vS9qrq.js} +5 -5
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUThFhNX.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CD0CVWjJ.js} +2 -2
  12. package/dist/{FmMultiselectDialog-Bb9NanTO.js → FmMultiselectDialog-BfyM9Aim.js} +1 -1
  13. package/dist/{FmMultiselectDialog-BGlvWlXa.js → FmMultiselectDialog-DbfSa7Af.js} +2 -2
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CElIKa2q.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BXzdPDiJ.js} +3 -3
  15. package/dist/{ImportView-DONs_LxT.js → ImportView-jTo95KlP.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BHpy10sR.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DOrmvi_R.js} +1 -1
  17. package/dist/{IngredientGroupView-B2PGNVgs.js → IngredientGroupView-toxANIcs.js} +49 -49
  18. package/dist/{IngredientsView-Csg56tMS.js → IngredientsView-D36Cuy5H.js} +14 -14
  19. package/dist/{IntegrationView-DTuA2HWr.js → IntegrationView-DNoz2268.js} +1663 -1572
  20. package/dist/{InventoryBindingForm-DEM4GIWm.js → InventoryBindingForm-FOhm2mBE.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CiVFTeH2.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-0TMI6d-2.js} +4 -4
  22. package/dist/{InventoryBindingSummary-25VjoY2Y.js → InventoryBindingSummary-CJCSUchK.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DXcXbuB4.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CgSXt7JR.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-06C-wQA_.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Cs1LhQK6.js} +2 -2
  25. package/dist/{PublishView-DlJ9F6qG.js → PublishView-DW6FWuud.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-BZ8Ed5WE.js → PurchaseOrderPrintPreview-CaNFD_ez.js} +1 -1
  27. package/dist/{ReceiveRequestView-CcUNprOo.js → ReceiveRequestView-uXDABU5j.js} +20 -20
  28. package/dist/{RecipeView-CRZ8J2aX.js → RecipeView-D7zYuQOn.js} +8 -8
  29. package/dist/{StockView-BmAN2RBF.js → StockView-DyTOR0VT.js} +305 -300
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DHQ9rh_K.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BCiej-RX.js} +1 -1
  31. package/dist/{SupplierView-Ql7Uv9o7.js → SupplierView-DpleePKA.js} +11 -11
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CvmQnM4U.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-1O_WeEfu.js} +2 -2
  33. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-RqkogK9x.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BGbKn2zV.js} +1 -1
  34. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Cc9kamH1.js → TransferDetails.vue_vue_type_script_setup_true_lang-DC5bpD6Q.js} +14 -14
  35. package/dist/{TransferTemplateView-6dljfxf0.js → TransferTemplateView-Bh0i-TC4.js} +15 -15
  36. package/dist/{UnitView-D_mpHVCT.js → UnitView-BcHTMxKk.js} +6 -6
  37. package/dist/{WarehouseView-PMFDsSw7.js → WarehouseView-DtwH98AD.js} +5 -5
  38. package/dist/{WastageTemplateView-DFTPlXGn.js → WastageTemplateView-C8HXxpHj.js} +14 -14
  39. package/dist/api/netsuite.d.ts +2 -0
  40. package/dist/{app-_CU3F6R4.js → app-DhFxvqnx.js} +5319 -5227
  41. package/dist/app.js +1 -1
  42. package/dist/{closing-template-BhS-0jIz.js → closing-template-BmKhQl3d.js} +1 -1
  43. package/dist/{date2-C6uzhgPn.js → date2-C0F8Lonz.js} +1 -1
  44. package/dist/{dayjs.min-CozQIYEl.js → dayjs.min-C2gv8YA9.js} +1 -1
  45. package/dist/{decimal-BBdSv1Ja.js → decimal-DVoxYJCT.js} +2 -2
  46. package/dist/{defineDeepModel-BfzQJIm7.js → defineDeepModel-C1y4Bro5.js} +1 -1
  47. package/dist/{duplicate-template-DaXBJZ_C.js → duplicate-template-DPPT910s.js} +1 -1
  48. package/dist/{feature-BmvwVQ_c.js → feature-BkCUjK_P.js} +2 -2
  49. package/dist/{format-time-from-id-DH9qF8CS.js → format-time-from-id-BJwy2_XI.js} +1 -1
  50. package/dist/{format-unit-display-QpP6LDiw.js → format-unit-display-BFTh1bsn.js} +11 -11
  51. package/dist/{import-export.helper-BOEHkn5c.js → import-export.helper-C5CLqr8_.js} +5 -5
  52. package/dist/{index-BAo9VZMM.js → index-Cn_wOWHP.js} +1 -1
  53. package/dist/{index-D6s0-V2x.js → index-k822y_3l.js} +1 -1
  54. package/dist/{index-D_UER6mr.js → index-kd2roCRE.js} +58 -58
  55. package/dist/{lodash-Cx9lFAWb.js → lodash-B8_imNSi.js} +1 -1
  56. package/dist/{netsuite-B_4zkdtB.js → netsuite-DMWR-vWb.js} +254 -239
  57. package/dist/{purchase-order-template-D1R5xTSO.js → purchase-order-template-CN9DXnSI.js} +1 -1
  58. package/dist/{rules-B7jgIAf1.js → rules-BsnWY2J0.js} +3 -3
  59. package/dist/{stock-3JD69pdx.js → stock-Ci_D4_Cv.js} +3 -3
  60. package/dist/{stock-Bqg8PTKL.js → stock-DhErnBiJ.js} +1 -1
  61. package/dist/stores/integration/netsuite.d.ts +86 -0
  62. package/dist/stores/inventory.d.ts +10 -669
  63. package/dist/supplier-WrNM5nC8.js +78 -0
  64. package/dist/tsconfig.app.tsbuildinfo +1 -1
  65. package/dist/{use-ingredient-select-dialog-A0HrT795.js → use-ingredient-select-dialog-DMCVXD5U.js} +2 -2
  66. package/dist/{use-inventory-binding-dialog-DoEc5HD3.js → use-inventory-binding-dialog-Mb72gcjQ.js} +2 -2
  67. package/dist/{use-template-enabled-locations-2-D3xMfpEA.js → use-template-enabled-locations-2-BpDpy47M.js} +2 -2
  68. package/dist/{vue-i18n-reLqSmov.js → vue-i18n-CmUEgchG.js} +295 -295
  69. package/dist/{xlsx-DE1KAgq6.js → xlsx-BMPJL3by.js} +1 -1
  70. package/dist/{xlsx.util-B0UlDwd3.js → xlsx.util-CuU0pOj7.js} +1 -1
  71. package/package.json +2 -2
  72. package/dist/supplier-CGzWOPkE.js +0 -78
@@ -1,5 +1,5 @@
1
- import { ref as A, computed as G, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as F, createElementBlock as B, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
2
- import { a as L, c as z, j as oe, u as Re } from "./app-_CU3F6R4.js";
1
+ import { ref as A, computed as G, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as F, createElementBlock as B, createVNode as b, unref as l, createElementVNode as c, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ge, createCommentVNode as se, isRef as ye, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
2
+ import { a as L, c as z, j as oe, u as Re } from "./app-DhFxvqnx.js";
3
3
  import { useDialog as Ie, useSnackbar as Y, components as U, useProxiedModel as Se, useBreakpoints as Fe } from "@feedmepos/ui-library";
4
4
  import { F as S } from "./form-mode.enum-BKiNVH6A.js";
5
5
  import { useI18n as P, useCoreStore as Ge } from "@feedmepos/mf-common";
@@ -7,11 +7,11 @@ import { defineStore as ue, storeToRefs as ae } from "pinia";
7
7
  import { D as le, R as K } from "./row-action.enum-BcW_L_nE.js";
8
8
  import { c as Ve, _ as Ce, F as ie } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
9
9
  import { u as De, _ as Ae } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
10
- import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUThFhNX.js";
11
- import { d as de } from "./defineDeepModel-BfzQJIm7.js";
12
- import { I as Te, A as Ee, U as Me, R as ce } from "./rules-B7jgIAf1.js";
10
+ import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CD0CVWjJ.js";
11
+ import { d as de } from "./defineDeepModel-C1y4Bro5.js";
12
+ import { I as Te, A as Ee, U as Me, R as ce } from "./rules-BsnWY2J0.js";
13
13
  import { x as Ue, N as Be, b as ze } from "./app-uBuHtW8m.js";
14
- import { u as Le } from "./FmMultiselectDialog-Bb9NanTO.js";
14
+ import { u as Le } from "./FmMultiselectDialog-BfyM9Aim.js";
15
15
  import { r as me } from "./random-CSbEbElR.js";
16
16
  import { u as Pe, R as Ne } from "./usePromise-CbVUCxhj.js";
17
17
  const H = ue(
@@ -48,12 +48,12 @@ const H = ue(
48
48
  message: `Deleted ${u.name}`,
49
49
  type: "success"
50
50
  });
51
- } catch (y) {
51
+ } catch (g) {
52
52
  f.open({
53
53
  title: `Cannot delete ${u.name}`,
54
54
  message: "Please try again.",
55
55
  type: "error"
56
- }), console.error("failed to delete ingredient", y);
56
+ }), console.error("failed to delete ingredient", g);
57
57
  } finally {
58
58
  m.value = !1, r();
59
59
  }
@@ -76,14 +76,14 @@ const H = ue(
76
76
  }
77
77
  function s() {
78
78
  }
79
- function g() {
79
+ function y() {
80
80
  }
81
81
  return {
82
82
  createIngredientGroup: e,
83
83
  updateIngredientGroup: a,
84
84
  deleteIngredientGroup: n,
85
85
  importIngredientGroups: s,
86
- exportIngredientGroups: g,
86
+ exportIngredientGroups: y,
87
87
  ingredientGroupDialogProps: v
88
88
  };
89
89
  }
@@ -94,7 +94,7 @@ const H = ue(
94
94
  async function v() {
95
95
  _.value = !0;
96
96
  try {
97
- await k.readInventory();
97
+ await k.fetchData();
98
98
  } catch (t) {
99
99
  console.error("error on reading inventory", t), f.open({
100
100
  title: "Error",
@@ -382,12 +382,12 @@ function fe(o) {
382
382
  sublabel: t.code,
383
383
  value: t._id
384
384
  })), e = (o.skuRefs ?? []).map((t) => t._id), a = await _.multiSelect(v, e, (t) => {
385
- var s, g, u, m, r, y;
385
+ var s, y, u, m, r, g;
386
386
  const n = (s = o.skuRefs) == null ? void 0 : s.findIndex((w) => w._id === t);
387
387
  return {
388
388
  _id: t,
389
- trackingMeasurement: typeof n != "number" || n == -1 ? (g = f.skuById[t]) == null ? void 0 : g.trackingMeasurement : (m = (u = o.skuRefs) == null ? void 0 : u[n]) == null ? void 0 : m.trackingMeasurement,
390
- priority: ((y = (r = o.skuRefs) == null ? void 0 : r[n]) == null ? void 0 : y.priority) ?? o.skuRefs.length,
389
+ trackingMeasurement: typeof n != "number" || n == -1 ? (y = f.skuById[t]) == null ? void 0 : y.trackingMeasurement : (m = (u = o.skuRefs) == null ? void 0 : u[n]) == null ? void 0 : m.trackingMeasurement,
390
+ priority: ((g = (r = o.skuRefs) == null ? void 0 : r[n]) == null ? void 0 : g.priority) ?? o.skuRefs.length,
391
391
  default: !1
392
392
  };
393
393
  });
@@ -412,18 +412,18 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
412
412
  },
413
413
  setup(o) {
414
414
  const _ = o, { t: f } = P(), k = Ge(), i = G(() => {
415
- var g;
415
+ var y;
416
416
  const n = /* @__PURE__ */ new Map(), s = k.restaurants.value.map((u) => u.customAttributes ?? {});
417
417
  for (const u of s)
418
418
  for (const [m, r] of Object.entries(u))
419
- n.has(m) || n.set(m, /* @__PURE__ */ new Set()), r && ((g = n.get(m)) == null || g.add(r));
419
+ n.has(m) || n.set(m, /* @__PURE__ */ new Set()), r && ((y = n.get(m)) == null || y.add(r));
420
420
  return n;
421
421
  }), v = G(() => [
422
- ...[...i.value.entries()].map(([s, g]) => ({
422
+ ...[...i.value.entries()].map(([s, y]) => ({
423
423
  type: "string",
424
424
  key: s,
425
425
  entity: "restaurant",
426
- values: [...g]
426
+ values: [...y]
427
427
  }))
428
428
  ]), e = de("modelValue", {
429
429
  get default() {
@@ -457,11 +457,11 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
457
457
  allowOverride: !1
458
458
  });
459
459
  return (n, s) => {
460
- const g = R("FmTextField"), u = R("FmLabel"), m = R("FmFormGroup"), r = R("FmTable");
460
+ const y = R("FmTextField"), u = R("FmLabel"), m = R("FmFormGroup"), r = R("FmTable");
461
461
  return F(), B("div", Ke, [
462
- b(g, {
462
+ b(y, {
463
463
  modelValue: l(e).name,
464
- "onUpdate:modelValue": s[0] || (s[0] = (y) => l(e).name = y),
464
+ "onUpdate:modelValue": s[0] || (s[0] = (g) => l(e).name = g),
465
465
  label: l(f)("inventory.ingredientGroup.form.rules.name"),
466
466
  "label-mark": "required",
467
467
  rules: [l(ce)()]
@@ -474,16 +474,16 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
474
474
  }, null, 8, ["label"]),
475
475
  b(l(ze), {
476
476
  modelValue: a.value,
477
- "onUpdate:modelValue": s[1] || (s[1] = (y) => a.value = y),
477
+ "onUpdate:modelValue": s[1] || (s[1] = (g) => a.value = g),
478
478
  attributes: v.value
479
479
  }, null, 8, ["modelValue", "attributes"])
480
480
  ]),
481
481
  b(m, {
482
482
  "model-value": a.value,
483
483
  rules: [
484
- (y) => {
484
+ (g) => {
485
485
  var w;
486
- return !!((w = y == null ? void 0 : y.rules) != null && w.length) || "At least one rule is required";
486
+ return !!((w = g == null ? void 0 : g.rules) != null && w.length) || "At least one rule is required";
487
487
  }
488
488
  ]
489
489
  }, null, 8, ["model-value", "rules"])
@@ -501,7 +501,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
501
501
  b(m, {
502
502
  "model-value": l(e).skuRefs,
503
503
  rules: [
504
- (y) => !!(y != null && y.length) || "At least one ingredient is required"
504
+ (g) => !!(g != null && g.length) || "At least one ingredient is required"
505
505
  ]
506
506
  }, null, 8, ["model-value", "rules"])
507
507
  ]),
@@ -521,7 +521,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
521
521
  }), Ze = { class: "flex flex-col gap-16" }, et = { class: "flex flex-col gap-16" }, tt = { class: "flex flex-col" }, nt = { class: "flex items-center" }, st = { class: "flex-1" }, ot = { class: "flex flex-col gap-8" }, at = { class: "flex-1 fm-typo-en-title-sm-600" }, lt = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary px-4" }, it = { class: "flex flex-col gap-16" }, rt = { class: "flex flex-col gap-8" }, ut = { class: "flex-1 fm-typo-en-title-sm-600" }, dt = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ct = { class: "flex flex-col gap-12" }, mt = { class: "flex items-center" }, ft = { class: "flex-1 fm-typo-en-body-lg-600 line-clamp-1" }, pt = { key: 0 }, vt = {
522
522
  key: 1,
523
523
  class: "fm-typo-en-body-lg-400"
524
- }, yt = /* @__PURE__ */ j({
524
+ }, gt = /* @__PURE__ */ j({
525
525
  __name: "IngredientGroupForm",
526
526
  props: {
527
527
  mode: {},
@@ -561,17 +561,17 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
561
561
  },
562
562
  set skuRefs(s) {
563
563
  i.defaultSkuRefs = s;
564
- const g = s.map((r) => r._id), u = i.rules;
564
+ const y = s.map((r) => r._id), u = i.rules;
565
565
  if (!u) return;
566
566
  const m = s.groupBy(
567
567
  (r) => r._id,
568
568
  (r) => r.trackingMeasurement
569
569
  );
570
570
  for (const r of u) {
571
- const y = r.skuRefs.filter((x) => g.includes(x._id)), w = s.filter(
572
- (x) => !y.some((I) => I._id === x._id)
571
+ const g = r.skuRefs.filter((x) => y.includes(x._id)), w = s.filter(
572
+ (x) => !g.some((I) => I._id === x._id)
573
573
  );
574
- r.skuRefs = [...y, ...w].map((x) => {
574
+ r.skuRefs = [...g, ...w].map((x) => {
575
575
  var I;
576
576
  return {
577
577
  ...x,
@@ -596,10 +596,10 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
596
596
  var s;
597
597
  return (s = n.value) == null ? void 0 : s.resetInputs();
598
598
  }
599
- }), (s, g) => {
600
- const u = R("FmTextField"), m = R("FmButton"), r = R("FmFormGroup"), y = R("FmTable"), w = R("FmCard"), x = R("FmForm");
599
+ }), (s, y) => {
600
+ const u = R("FmTextField"), m = R("FmButton"), r = R("FmFormGroup"), g = R("FmTable"), w = R("FmCard"), x = R("FmForm");
601
601
  return F(), M(x, {
602
- onValidationSuccess: g[2] || (g[2] = (I) => v("validation-success")),
602
+ onValidationSuccess: y[2] || (y[2] = (I) => v("validation-success")),
603
603
  ref_key: "formRef",
604
604
  ref: n,
605
605
  class: "flex flex-col gap-64"
@@ -613,13 +613,13 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
613
613
  "label-mark": "required",
614
614
  rules: [l(ce)()],
615
615
  modelValue: l(i).name,
616
- "onUpdate:modelValue": g[0] || (g[0] = (d) => l(i).name = d)
616
+ "onUpdate:modelValue": y[0] || (y[0] = (d) => l(i).name = d)
617
617
  }, null, 8, ["label", "rules", "modelValue"]),
618
618
  b(u, {
619
619
  label: l(e)("inventory.ingredientGroup.form.ref"),
620
620
  "label-mark": "optional",
621
621
  modelValue: l(i).ref,
622
- "onUpdate:modelValue": g[1] || (g[1] = (d) => l(i).ref = d)
622
+ "onUpdate:modelValue": y[1] || (y[1] = (d) => l(i).ref = d)
623
623
  }, null, 8, ["label", "modelValue"])
624
624
  ]),
625
625
  c("div", et, [
@@ -650,7 +650,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
650
650
  }, null, 8, ["model-value", "rules"])
651
651
  ]),
652
652
  c("div", null, [
653
- b(y, {
653
+ b(g, {
654
654
  "row-data": l(i).defaultSkuRefs ?? [],
655
655
  "column-defs": l(t).columnDefs,
656
656
  "column-visibility": l(t).columnVisibility,
@@ -675,7 +675,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
675
675
  c("div", ct, [
676
676
  c("div", mt, [
677
677
  c("div", ft, [
678
- ye($(l(e)("inventory.ingredientGroup.form.rules.rule_N", [p + 1])), 1),
678
+ ge($(l(e)("inventory.ingredientGroup.form.rules.rule_N", [p + 1])), 1),
679
679
  d.name ? (F(), B("span", pt, ": ")) : se("", !0),
680
680
  d.name ? (F(), B("span", vt, $(d.name), 1)) : se("", !0)
681
681
  ]),
@@ -713,7 +713,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
713
713
  }, 512);
714
714
  };
715
715
  }
716
- }), gt = {
716
+ }), yt = {
717
717
  key: 0,
718
718
  class: "text-fm-color-typo-primary fm-typo-en-body-lg-400"
719
719
  }, _t = { class: "flex gap-4" }, bt = /* @__PURE__ */ j({
@@ -755,7 +755,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
755
755
  n.value = p, s.value = p._id || `${Math.random()}`;
756
756
  }
757
757
  );
758
- const g = G(() => {
758
+ const y = G(() => {
759
759
  switch (_.mode) {
760
760
  case S.READ:
761
761
  return "";
@@ -776,7 +776,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
776
776
  }
777
777
  return "";
778
778
  }), m = A(), r = A(!1);
779
- async function y() {
779
+ async function g() {
780
780
  r.value = !0;
781
781
  const d = z(n.value);
782
782
  try {
@@ -825,15 +825,15 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
825
825
  case S.UPDATE:
826
826
  return w();
827
827
  case S.CREATE:
828
- return y();
828
+ return g();
829
829
  }
830
830
  }
831
831
  return (d, p) => {
832
832
  const h = R("FmButton"), V = R("FmSideSheet");
833
833
  return F(), M(V, {
834
834
  "model-value": l(a),
835
- "onUpdate:modelValue": p[3] || (p[3] = (D) => ge(a) ? a.value = D : null),
836
- header: g.value,
835
+ "onUpdate:modelValue": p[3] || (p[3] = (D) => ye(a) ? a.value = D : null),
836
+ header: y.value,
837
837
  "close-button": "",
838
838
  "dismiss-away": "",
839
839
  "max-width": 800
@@ -854,7 +854,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
854
854
  ])
855
855
  ]),
856
856
  default: T(() => [
857
- i.value ? (F(), M(yt, {
857
+ i.value ? (F(), M(gt, {
858
858
  menu: i.value,
859
859
  class: "w-full",
860
860
  ref_key: "hasValidationExpose",
@@ -865,7 +865,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
865
865
  mode: d.mode,
866
866
  disabled: r.value,
867
867
  onValidationSuccess: p[1] || (p[1] = (D) => I())
868
- }, null, 8, ["menu", "model-value", "mode", "disabled"])) : (F(), B("div", gt, "Loading.."))
868
+ }, null, 8, ["menu", "model-value", "mode", "disabled"])) : (F(), B("div", yt, "Loading.."))
869
869
  ]),
870
870
  _: 1
871
871
  }, 8, ["model-value", "header"]);
@@ -879,7 +879,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
879
879
  updateIngredientGroup: e,
880
880
  importIngredientGroups: a,
881
881
  exportIngredientGroups: t
882
- } = H(), { columnDefs: n, loading: s } = ae(Oe()), { ingredientGroupDialogProps: g } = ae(H());
882
+ } = H(), { columnDefs: n, loading: s } = ae(Oe()), { ingredientGroupDialogProps: y } = ae(H());
883
883
  function u(h) {
884
884
  switch (h) {
885
885
  case "add":
@@ -890,7 +890,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
890
890
  return t();
891
891
  }
892
892
  }
893
- const m = A(""), r = A(!1), y = G(() => r.value || s.value), { breakpoints: w } = Fe(), x = G(() => w.value.xs || w.value.sm), I = G(() => x.value ? 10 : 20), d = De(), p = G(() => [
893
+ const m = A(""), r = A(!1), g = G(() => r.value || s.value), { breakpoints: w } = Fe(), x = G(() => w.value.xs || w.value.sm), I = G(() => x.value ? 10 : 20), d = De(), p = G(() => [
894
894
  {
895
895
  label: i("inventory.ingredient.create.title"),
896
896
  value: "add",
@@ -927,7 +927,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
927
927
  "column-defs": l(n),
928
928
  "row-data": f.value,
929
929
  "search-value": m.value,
930
- loading: !l(k)._currentLocation || y.value,
930
+ loading: !l(k)._currentLocation || g.value,
931
931
  "loading-text": "Loading",
932
932
  onRowClick: V[1] || (V[1] = (E) => l(e)(E.original)),
933
933
  "page-size": I.value
@@ -971,7 +971,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
971
971
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
972
972
  ], 2),
973
973
  (F(), M(xe, { to: "body" }, [
974
- b(bt, he(we(l(g))), null, 16)
974
+ b(bt, he(we(l(y))), null, 16)
975
975
  ]))
976
976
  ]),
977
977
  _: 1
@@ -1,5 +1,5 @@
1
1
  import { ref as B, defineComponent as pe, computed as g, resolveComponent as F, openBlock as u, createElementBlock as w, Fragment as X, unref as l, createVNode as a, withModifiers as Bt, createCommentVNode as L, withCtx as y, createElementVNode as o, toDisplayString as A, normalizeClass as te, renderList as ue, createBlock as O, h as Q, renderSlot as xe, createSlots as Ye, createTextVNode as Ge, mergeModels as it, onMounted as Dt, watch as kt, useModel as Ot, isRef as dt, normalizeStyle as Nt, Teleport as ut, normalizeProps as zt, guardReactiveProps as Lt } from "vue";
2
- import { a as Ce, c as Tt, S as jt, d as ct, e as mt, f as Wt, h as pt, i as vt, j as ft, k as yt, u as Ht, l as qt } from "./app-_CU3F6R4.js";
2
+ import { a as Ce, c as Tt, S as jt, d as ct, e as mt, f as Wt, h as pt, i as vt, j as ft, k as yt, u as Ht, l as qt } from "./app-DhFxvqnx.js";
3
3
  import { useDialog as Re, useSnackbar as Fe, components as Oe, useProxiedModel as gt, useDialogChild as Yt, useBreakpoints as Gt } from "@feedmepos/ui-library";
4
4
  import { i as Kt, _ as Zt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { F as H } from "./form-mode.enum-BKiNVH6A.js";
@@ -7,23 +7,23 @@ import { useI18n as ve, useCoreStore as wt } from "@feedmepos/mf-common";
7
7
  import { defineStore as Jt, storeToRefs as Qt } from "pinia";
8
8
  import { D as bt, R as Me } from "./row-action.enum-BcW_L_nE.js";
9
9
  import { c as Xt, _ as en, F as ht } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
10
- import { u as Ae, _ as tn } from "./netsuite-B_4zkdtB.js";
10
+ import { u as Ae, _ as tn } from "./netsuite-DMWR-vWb.js";
11
11
  import { F as He, u as nn, _ as on } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
12
- import { A as Pe, a as ln, t as an, R as Ne, U as sn, M as rn, g as dn } from "./rules-B7jgIAf1.js";
13
- import { g as un, _ as ze, S as Le, a as cn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DHQ9rh_K.js";
14
- import { _ as mn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CiVFTeH2.js";
15
- import { _ as je } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-BHpy10sR.js";
16
- import { u as Vt } from "./feature-BmvwVQ_c.js";
12
+ import { A as Pe, a as ln, t as an, R as Ne, U as sn, M as rn, g as dn } from "./rules-BsnWY2J0.js";
13
+ import { g as un, _ as ze, S as Le, a as cn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BCiej-RX.js";
14
+ import { _ as mn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-0TMI6d-2.js";
15
+ import { _ as je } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DOrmvi_R.js";
16
+ import { u as Vt } from "./feature-BkCUjK_P.js";
17
17
  import { _ as he } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
18
- import { d as Ue, g as pn, e as vn, a as fn } from "./import-export.helper-BOEHkn5c.js";
18
+ import { d as Ue, g as pn, e as vn, a as fn } from "./import-export.helper-C5CLqr8_.js";
19
19
  import { _ as yn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
20
- import { F as gn, a as We } from "./FmMultiselectDialog-BGlvWlXa.js";
21
- import { u as It } from "./purchase-order-template-D1R5xTSO.js";
22
- import { u as St, a as Ct } from "./closing-template-BhS-0jIz.js";
23
- import { r as bn } from "./xlsx.util-B0UlDwd3.js";
20
+ import { F as gn, a as We } from "./FmMultiselectDialog-DbfSa7Af.js";
21
+ import { u as It } from "./purchase-order-template-CN9DXnSI.js";
22
+ import { u as St, a as Ct } from "./closing-template-BmKhQl3d.js";
23
+ import { r as bn } from "./xlsx.util-CuU0pOj7.js";
24
24
  import { F as hn } from "./FmDroppableField-J0xUsOTV.js";
25
- import { _ as _n } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CUThFhNX.js";
26
- import { u as xn } from "./FmMultiselectDialog-Bb9NanTO.js";
25
+ import { _ as _n } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CD0CVWjJ.js";
26
+ import { u as xn } from "./FmMultiselectDialog-BfyM9Aim.js";
27
27
  import { N as kn, H as Tn } from "./app-uBuHtW8m.js";
28
28
  const qe = Jt("ingredientForm", function() {
29
29
  const s = Re(), T = Fe(), r = Ce(), b = B(!1), { t: S } = ve(), U = B();