@feedmepos/mf-inventory-portal 1.2.50-dev.2 → 1.2.50

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 (90) hide show
  1. package/dist/{App-DAO7XF9h.js → App-DssF0b6P.js} +68 -72
  2. package/dist/{ApprovalView-BUHefc15.js → ApprovalView-DTCayLqE.js} +34 -34
  3. package/dist/{BindingsDialog-Cx9ngX7X.js → BindingsDialog-C2-THIG0.js} +2 -2
  4. package/dist/{BindingsPicker-CIZ9FVgv.js → BindingsPicker-Q9W92GzO.js} +2 -2
  5. package/dist/{BindingsTable-CMyZkvyn.js → BindingsTable-BQo8HpbF.js} +4 -4
  6. package/dist/{ClosingDraftView-D4CMfSvf.js → ClosingDraftView-B0spMbZd.js} +18 -19
  7. package/dist/{ClosingHistoryView-J_2EA-F4.js → ClosingHistoryView-DDVibMzL.js} +3 -3
  8. package/dist/{ClosingTemplateView-Bz21bJLn.js → ClosingTemplateView-BSiNTpkH.js} +17 -18
  9. package/dist/{DeliveryOrderPrintPreview-D9xRJSBT.js → DeliveryOrderPrintPreview-P9JASYcM.js} +1 -1
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ifkxhq6-.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DkvLYf5A.js} +4 -4
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BcJ1ydJ1.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CaQq9jpc.js} +12 -12
  12. package/dist/FmMultiselectDialog-BgLyRNeD.js +598 -0
  13. package/dist/{FmMultiselectDialog-Cxj6_Bbq.js → FmMultiselectDialog-DKEGwdyz.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CJsg-6qm.js → FmUnitInput.vue_vue_type_script_setup_true_lang-H5xYFc6B.js} +3 -3
  15. package/dist/{ImportView-mq9p_YKN.js → ImportView-CKg0Z3Bz.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CvdNblLJ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-y1qeqeUV.js} +1 -1
  17. package/dist/{IngredientGroupView-1YQdweWW.js → IngredientGroupView-DntDNlVX.js} +107 -108
  18. package/dist/{IngredientsView-rZZDO37M.js → IngredientsView-B93tavZW.js} +125 -126
  19. package/dist/{IntegrationView-0KCNTL9w.js → IntegrationView-CqEe7SWR.js} +80 -80
  20. package/dist/{InventoryBindingForm-Cz6tMVlQ.js → InventoryBindingForm-9E3VsD4v.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-9jHxMOEn.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dgy_eFxJ.js} +4 -4
  22. package/dist/{InventoryBindingSummary-DarjH7Dn.js → InventoryBindingSummary-DTcoWk_n.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BR6U0SpT.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CIDw4WOz.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C9ffyR0d.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dao7XifY.js} +2 -2
  25. package/dist/{PublishView-Bam4W7ko.js → PublishView-GDJsOfeY.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-DEKkUMB6.js → PurchaseOrderPrintPreview-DFeZT5Zi.js} +1 -1
  27. package/dist/ReceiveRequestView-BvYpGKEB.js +2913 -0
  28. package/dist/{RecipeView-CwwKtDRg.js → RecipeView-DyJs2lsk.js} +82 -83
  29. package/dist/{StockView-CVN5MKbj.js → StockView-Cvwfcsf7.js} +112 -113
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bm1MxmBR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CMFiW6FL.js} +1 -1
  31. package/dist/{SupplierView-BhnmPv7N.js → SupplierView-C6rIxQOg.js} +27 -28
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DdPVsOZY.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-6C5vAumx.js} +2 -2
  33. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +162 -0
  34. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bp49G_dV.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bc0MVyK_.js} +13 -13
  35. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BQFBZ0CH.js → TransferDetails.vue_vue_type_script_setup_true_lang-BSNIRZx3.js} +15 -15
  36. package/dist/{TransferTemplateView-7AJGTAAy.js → TransferTemplateView-BVRXLZGK.js} +16 -16
  37. package/dist/{UnitView-Dz4bgzmW.js → UnitView-B9n1vDtN.js} +19 -20
  38. package/dist/{WarehouseView-DEYOa_Ol.js → WarehouseView-oyEVpI9M.js} +20 -21
  39. package/dist/{WastageTemplateView-DdPkFfyQ.js → WastageTemplateView-DCdR4fhu.js} +164 -165
  40. package/dist/api/netsuite.d.ts +0 -8
  41. package/dist/{app-kim0oKgm.js → app-_hCz0958.js} +4408 -4511
  42. package/dist/app-uBuHtW8m.js +8127 -0
  43. package/dist/app.d.ts +0 -52
  44. package/dist/app.js +1 -1
  45. package/dist/{closing-template-MLHUWgwA.js → closing-template-y0kvKjaN.js} +1 -1
  46. package/dist/components/FmInventoryTableToolbar.vue.d.ts +0 -8
  47. package/dist/components/FmMultiselectDialogProps.d.ts +0 -5
  48. package/dist/{date2-Ck1fxOS1.js → date2-Ct3mwV73.js} +1 -1
  49. package/dist/{dayjs.min-CgHxLw1P.js → dayjs.min-iDh15Qvq.js} +1 -1
  50. package/dist/{decimal-DVjzMCmx.js → decimal-DliTT0vp.js} +2 -2
  51. package/dist/{defineDeepModel-CLo1ie3w.js → defineDeepModel-DmVg-VGa.js} +1 -1
  52. package/dist/{duplicate-template-B_f_fYhs.js → duplicate-template-BO8LvPWq.js} +1 -1
  53. package/dist/{feature-D4HcMaGK.js → feature-Dk3_0hiC.js} +2810 -3440
  54. package/dist/{format-time-from-id-CwtHJpC0.js → format-time-from-id-DOmxxVYQ.js} +1 -1
  55. package/dist/{format-unit-display-DRIOlVir.js → format-unit-display-BuliV6Fn.js} +11 -11
  56. package/dist/{import-export.helper-BrcydEPI.js → import-export.helper-DpWf4zh7.js} +5 -5
  57. package/dist/{index-D9dtwK1d.js → index-BZ9fyZbO.js} +1 -1
  58. package/dist/{index-ChruXaud.js → index-C6nEuFpg.js} +1 -1
  59. package/dist/{index-Wd74fJNj.js → index-CY6-px7W.js} +3 -3
  60. package/dist/{lodash-MkfFbMhZ.js → lodash-DDMf37Aw.js} +1 -1
  61. package/dist/netsuite-CVg13Lx5.js +5131 -0
  62. package/dist/{purchase-order-template-BdKUiSPI.js → purchase-order-template-C9GqlQL3.js} +1 -1
  63. package/dist/router/name.d.ts +0 -1
  64. package/dist/{rules-KSzt3qOJ.js → rules-9-OxHCjJ.js} +3 -3
  65. package/dist/{stock-DZliLQNR.js → stock-CjJKvKsB.js} +3 -3
  66. package/dist/{stock-BHWNLsBc.js → stock-D7gYQHth.js} +1 -1
  67. package/dist/stores/integration/netsuite.d.ts +0 -5
  68. package/dist/style.css +1 -1
  69. package/dist/{supplier-CiMOpHKx.js → supplier-z1X1B4yZ.js} +2 -2
  70. package/dist/tsconfig.app.tsbuildinfo +1 -1
  71. package/dist/{use-ingredient-select-dialog-CK_Ldhwm.js → use-ingredient-select-dialog-B4u8ttOK.js} +2 -2
  72. package/dist/{use-inventory-binding-dialog-jfME3m3c.js → use-inventory-binding-dialog-CaFu9DlH.js} +2 -2
  73. package/dist/{use-template-enabled-locations-2-Dbk_RoRj.js → use-template-enabled-locations-2-KQU0hLX3.js} +2 -2
  74. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +0 -714
  75. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -5
  76. package/dist/{vue-i18n-DUlOMRWF.js → vue-i18n-UG5lCeUG.js} +533 -533
  77. package/dist/{xlsx-CiNXr9Ie.js → xlsx-INrtkMe5.js} +1 -1
  78. package/dist/{xlsx.util-D81JjCsx.js → xlsx.util-OqI8IJfw.js} +1 -1
  79. package/package.json +4 -4
  80. package/dist/FmMultiselectDialog-B5F93-xV.js +0 -621
  81. package/dist/ReceiveRequestView-DDfHVcG2.js +0 -3028
  82. package/dist/SurchargeView-nlkL3YIK.js +0 -460
  83. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +0 -84
  84. package/dist/api/surcharge.d.ts +0 -31
  85. package/dist/app-DiX-EfV6.js +0 -8167
  86. package/dist/component-DpCUABT3.js +0 -82
  87. package/dist/netsuite-D4cXyIr7.js +0 -5402
  88. package/dist/stores/surcharge.d.ts +0 -18
  89. package/dist/surcharge-CjdNdcm1.js +0 -71
  90. package/dist/views/surcharge/SurchargeView.vue.d.ts +0 -2
@@ -1,24 +1,23 @@
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 i, 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 P, c as L, j as oe, u as Re } from "./app-kim0oKgm.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 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-_hCz0958.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
- import { useI18n as z, useCoreStore as Ge } from "@feedmepos/mf-common";
5
+ import { useI18n as P, useCoreStore as Ge } from "@feedmepos/mf-common";
6
6
  import { defineStore as ue, storeToRefs as ae } from "pinia";
7
- import { D as ie, R as K } from "./row-action.enum-BcW_L_nE.js";
8
- import { c as Ve } from "./component-DpCUABT3.js";
9
- import { u as Ce, _ as De } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
10
- import { _ as Ae, F as le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
11
- import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BcJ1ydJ1.js";
12
- import { d as de } from "./defineDeepModel-CLo1ie3w.js";
13
- import { I as Te, A as Ee, U as Me, R as ce } from "./rules-KSzt3qOJ.js";
14
- import { L as Ue, P as Be, D as Le } from "./app-DiX-EfV6.js";
15
- import { u as Pe } from "./FmMultiselectDialog-Cxj6_Bbq.js";
7
+ import { D as le, R as K } from "./row-action.enum-BcW_L_nE.js";
8
+ import { c as Ve, _ as Ce, F as ie } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js";
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-CaQq9jpc.js";
11
+ import { d as de } from "./defineDeepModel-DmVg-VGa.js";
12
+ import { I as Te, A as Ee, U as Me, R as ce } from "./rules-9-OxHCjJ.js";
13
+ import { x as Ue, N as Be, b as ze } from "./app-uBuHtW8m.js";
14
+ import { u as Le } from "./FmMultiselectDialog-DKEGwdyz.js";
16
15
  import { r as me } from "./random-CSbEbElR.js";
17
- import { u as ze, R as Ne } from "./usePromise-CbVUCxhj.js";
16
+ import { u as Pe, R as Ne } from "./usePromise-CbVUCxhj.js";
18
17
  const H = ue(
19
18
  "ingredientGroupactions",
20
19
  function() {
21
- const _ = Ie(), f = Y(), k = P(), { t: l } = z(), v = A();
20
+ const _ = Ie(), f = Y(), k = L(), { t: i } = P(), v = A();
22
21
  function e() {
23
22
  const u = {
24
23
  modelValue: {},
@@ -32,7 +31,7 @@ const H = ue(
32
31
  }
33
32
  async function a(u) {
34
33
  const m = {
35
- modelValue: L(u),
34
+ modelValue: z(u),
36
35
  mode: S.UPDATE,
37
36
  show: !0,
38
37
  "onUpdate:show"(r) {
@@ -61,16 +60,16 @@ const H = ue(
61
60
  }
62
61
  function n(u, m, r) {
63
62
  _.open({
64
- title: l("inventory.ingredient.delete.title", [(u == null ? void 0 : u.name) ?? ""]),
63
+ title: i("inventory.ingredient.delete.title", [(u == null ? void 0 : u.name) ?? ""]),
65
64
  closeButton: !1,
66
- message: l("inventory.ingredient.delete.message"),
65
+ message: i("inventory.ingredient.delete.message"),
67
66
  primaryActions: {
68
- text: l("common.delete"),
67
+ text: i("common.delete"),
69
68
  close: !0,
70
69
  variant: "destructive"
71
70
  },
72
71
  secondaryActions: {
73
- text: l("common.cancel"),
72
+ text: i("common.cancel"),
74
73
  close: !0
75
74
  }
76
75
  }).onPrimary(() => t(u, m, r));
@@ -91,7 +90,7 @@ const H = ue(
91
90
  ), Oe = ue(
92
91
  "ingredientGroupTable",
93
92
  function() {
94
- const _ = A(!1), f = Y(), k = P(), l = H();
93
+ const _ = A(!1), f = Y(), k = L(), i = H();
95
94
  async function v() {
96
95
  _.value = !0;
97
96
  try {
@@ -107,11 +106,11 @@ const H = ue(
107
106
  }
108
107
  }
109
108
  function e(t, n) {
110
- switch (n = L(n), t) {
109
+ switch (n = z(n), t) {
111
110
  case K.Edit:
112
- return l.updateIngredientGroup(n);
111
+ return i.updateIngredientGroup(n);
113
112
  case K.Delete:
114
- return l.deleteIngredientGroup(
113
+ return i.deleteIngredientGroup(
115
114
  n,
116
115
  _,
117
116
  () => v()
@@ -136,7 +135,7 @@ const H = ue(
136
135
  header: "",
137
136
  cell(t) {
138
137
  return Ve(
139
- [ie[K.Edit], ie[K.Delete]],
138
+ [le[K.Edit], le[K.Delete]],
140
139
  (n) => {
141
140
  e(n, t.row.original);
142
141
  }
@@ -160,21 +159,21 @@ const H = ue(
160
159
  function qe(o) {
161
160
  return {
162
161
  addItem: () => {
163
- const l = o.create();
164
- o.items = [...o.items, l];
162
+ const i = o.create();
163
+ o.items = [...o.items, i];
165
164
  },
166
- updateItem: (l) => {
167
- l && (o.items = o.items.map(
168
- (v) => o.id(v) === o.id(l) ? l : v
165
+ updateItem: (i) => {
166
+ i && (o.items = o.items.map(
167
+ (v) => o.id(v) === o.id(i) ? i : v
169
168
  ));
170
169
  },
171
- removeItem: (l) => {
172
- o.items = o.items.filter((v) => o.id(v) !== o.id(l));
170
+ removeItem: (i) => {
171
+ o.items = o.items.filter((v) => o.id(v) !== o.id(i));
173
172
  }
174
173
  };
175
174
  }
176
175
  function fe(o) {
177
- const _ = Pe(), f = P(), k = G(() => [
176
+ const _ = Le(), f = L(), k = G(() => [
178
177
  {
179
178
  id: "delete",
180
179
  header: "",
@@ -412,7 +411,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
412
411
  modelValue: {}
413
412
  },
414
413
  setup(o) {
415
- const _ = o, { t: f } = z(), k = Ge(), l = G(() => {
414
+ const _ = o, { t: f } = P(), k = Ge(), i = G(() => {
416
415
  var g;
417
416
  const n = /* @__PURE__ */ new Map(), s = k.restaurants.value.map((u) => u.customAttributes ?? {});
418
417
  for (const u of s)
@@ -420,7 +419,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
420
419
  n.has(m) || n.set(m, /* @__PURE__ */ new Set()), r && ((g = n.get(m)) == null || g.add(r));
421
420
  return n;
422
421
  }), v = G(() => [
423
- ...[...l.value.entries()].map(([s, g]) => ({
422
+ ...[...i.value.entries()].map(([s, g]) => ({
424
423
  type: "string",
425
424
  key: s,
426
425
  entity: "restaurant",
@@ -461,19 +460,19 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
461
460
  const g = R("FmTextField"), u = R("FmLabel"), m = R("FmFormGroup"), r = R("FmTable");
462
461
  return F(), B("div", Ke, [
463
462
  b(g, {
464
- modelValue: i(e).name,
465
- "onUpdate:modelValue": s[0] || (s[0] = (y) => i(e).name = y),
466
- label: i(f)("inventory.ingredientGroup.form.rules.name"),
463
+ modelValue: l(e).name,
464
+ "onUpdate:modelValue": s[0] || (s[0] = (y) => l(e).name = y),
465
+ label: l(f)("inventory.ingredientGroup.form.rules.name"),
467
466
  "label-mark": "required",
468
- rules: [i(ce)()]
467
+ rules: [l(ce)()]
469
468
  }, null, 8, ["modelValue", "label", "rules"]),
470
469
  c("div", je, [
471
470
  c("div", He, [
472
471
  b(u, {
473
- label: i(f)("inventory.ingredientGroup.form.rules.title"),
472
+ label: l(f)("inventory.ingredientGroup.form.rules.title"),
474
473
  required: ""
475
474
  }, null, 8, ["label"]),
476
- b(i(Le), {
475
+ b(l(ze), {
477
476
  modelValue: a.value,
478
477
  "onUpdate:modelValue": s[1] || (s[1] = (y) => a.value = y),
479
478
  attributes: v.value
@@ -494,32 +493,32 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
494
493
  c("div", Qe, [
495
494
  c("div", null, [
496
495
  b(u, {
497
- label: i(f)("inventory.ingredientGroup.form.rules.ingredients"),
496
+ label: l(f)("inventory.ingredientGroup.form.rules.ingredients"),
498
497
  required: ""
499
498
  }, null, 8, ["label"])
500
499
  ])
501
500
  ]),
502
501
  b(m, {
503
- "model-value": i(e).skuRefs,
502
+ "model-value": l(e).skuRefs,
504
503
  rules: [
505
504
  (y) => !!(y != null && y.length) || "At least one ingredient is required"
506
505
  ]
507
506
  }, null, 8, ["model-value", "rules"])
508
507
  ]),
509
508
  b(r, {
510
- "row-data": i(e).skuRefs,
511
- "column-defs": i(t).columnDefs,
512
- "page-size": i(e).skuRefs.length,
509
+ "row-data": l(e).skuRefs,
510
+ "column-defs": l(t).columnDefs,
511
+ "page-size": l(e).skuRefs.length,
513
512
  "shrink-at": 9999,
514
- "column-visibility": i(t).columnVisibility,
513
+ "column-visibility": l(t).columnVisibility,
515
514
  "hide-footer": ""
516
515
  }, null, 8, ["row-data", "column-defs", "page-size", "column-visibility"])
517
516
  ]),
518
- c("div", We, $(i(f)("inventory.ingredientGroup.form.defaultRule.defaultCheckbox")), 1)
517
+ c("div", We, $(l(f)("inventory.ingredientGroup.form.defaultRule.defaultCheckbox")), 1)
519
518
  ]);
520
519
  };
521
520
  }
522
- }), 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" }, it = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary px-4" }, lt = { 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 = {
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 = {
523
522
  key: 1,
524
523
  class: "fm-typo-en-body-lg-400"
525
524
  }, yt = /* @__PURE__ */ j({
@@ -532,14 +531,14 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
532
531
  },
533
532
  emits: ["validation-success"],
534
533
  setup(o, { expose: _, emit: f }) {
535
- const k = o, l = de("modelValue", {
534
+ const k = o, i = de("modelValue", {
536
535
  watchProps: !0
537
- }), v = f, { t: e } = z(), a = qe({
536
+ }), v = f, { t: e } = P(), a = qe({
538
537
  get items() {
539
- return l.rules ?? [];
538
+ return i.rules ?? [];
540
539
  },
541
540
  set items(s) {
542
- l.rules = s;
541
+ i.rules = s;
543
542
  },
544
543
  create: function() {
545
544
  var s;
@@ -558,11 +557,11 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
558
557
  return k.disabled;
559
558
  },
560
559
  get skuRefs() {
561
- return l.defaultSkuRefs ?? [];
560
+ return i.defaultSkuRefs ?? [];
562
561
  },
563
562
  set skuRefs(s) {
564
- l.defaultSkuRefs = s;
565
- const g = s.map((r) => r._id), u = l.rules;
563
+ i.defaultSkuRefs = s;
564
+ const g = s.map((r) => r._id), u = i.rules;
566
565
  if (!u) return;
567
566
  const m = s.groupBy(
568
567
  (r) => r._id,
@@ -580,7 +579,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
580
579
  };
581
580
  });
582
581
  }
583
- l.rules = [...u];
582
+ i.rules = [...u];
584
583
  },
585
584
  isDefaultList: !0
586
585
  }), n = A();
@@ -610,17 +609,17 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
610
609
  return [
611
610
  c("div", Ze, [
612
611
  b(u, {
613
- label: i(e)("inventory.ingredientGroup.form.name"),
612
+ label: l(e)("inventory.ingredientGroup.form.name"),
614
613
  "label-mark": "required",
615
- rules: [i(ce)()],
616
- modelValue: i(l).name,
617
- "onUpdate:modelValue": g[0] || (g[0] = (d) => i(l).name = d)
614
+ rules: [l(ce)()],
615
+ modelValue: l(i).name,
616
+ "onUpdate:modelValue": g[0] || (g[0] = (d) => l(i).name = d)
618
617
  }, null, 8, ["label", "rules", "modelValue"]),
619
618
  b(u, {
620
- label: i(e)("inventory.ingredientGroup.form.ref"),
619
+ label: l(e)("inventory.ingredientGroup.form.ref"),
621
620
  "label-mark": "optional",
622
- modelValue: i(l).ref,
623
- "onUpdate:modelValue": g[1] || (g[1] = (d) => i(l).ref = d)
621
+ modelValue: l(i).ref,
622
+ "onUpdate:modelValue": g[1] || (g[1] = (d) => l(i).ref = d)
624
623
  }, null, 8, ["label", "modelValue"])
625
624
  ]),
626
625
  c("div", et, [
@@ -628,7 +627,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
628
627
  c("div", nt, [
629
628
  c("div", st, [
630
629
  c("div", ot, [
631
- c("div", at, $(i(e)("inventory.ingredientGroup.form.defaultRule.title")), 1)
630
+ c("div", at, $(l(e)("inventory.ingredientGroup.form.defaultRule.title")), 1)
632
631
  ])
633
632
  ]),
634
633
  c("div", null, [
@@ -638,13 +637,13 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
638
637
  "prepend-icon": "link",
639
638
  variant: "plain",
640
639
  class: "border-1 rounded-lg border-fm-color-primary",
641
- onClick: i(t).promptAddIngredient,
640
+ onClick: l(t).promptAddIngredient,
642
641
  size: "md"
643
642
  }, null, 8, ["disabled", "onClick"])
644
643
  ])
645
644
  ]),
646
645
  b(r, {
647
- "model-value": i(l).defaultSkuRefs,
646
+ "model-value": l(i).defaultSkuRefs,
648
647
  rules: [
649
648
  (d) => !!(d != null && d.length) || "At least one ingredient is required"
650
649
  ]
@@ -652,22 +651,22 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
652
651
  ]),
653
652
  c("div", null, [
654
653
  b(y, {
655
- "row-data": i(l).defaultSkuRefs ?? [],
656
- "column-defs": i(t).columnDefs,
657
- "column-visibility": i(t).columnVisibility,
658
- "page-size": (I = i(l).defaultSkuRefs) == null ? void 0 : I.length,
654
+ "row-data": l(i).defaultSkuRefs ?? [],
655
+ "column-defs": l(t).columnDefs,
656
+ "column-visibility": l(t).columnVisibility,
657
+ "page-size": (I = l(i).defaultSkuRefs) == null ? void 0 : I.length,
659
658
  "shrink-at": 9999,
660
659
  "hide-footer": ""
661
660
  }, null, 8, ["row-data", "column-defs", "column-visibility", "page-size"])
662
661
  ]),
663
- c("div", it, $(i(e)("inventory.ingredientGroup.form.defaultRule.defaultCheckbox")), 1)
662
+ c("div", lt, $(l(e)("inventory.ingredientGroup.form.defaultRule.defaultCheckbox")), 1)
664
663
  ]),
665
- c("div", lt, [
664
+ c("div", it, [
666
665
  c("div", rt, [
667
- c("div", ut, $(i(e)("inventory.ingredientGroup.form.rules.title")), 1),
668
- c("div", dt, $(i(e)("inventory.ingredientGroup.form.rules.description")), 1)
666
+ c("div", ut, $(l(e)("inventory.ingredientGroup.form.rules.title")), 1),
667
+ c("div", dt, $(l(e)("inventory.ingredientGroup.form.rules.description")), 1)
669
668
  ]),
670
- (F(!0), B(pe, null, ve(i(l).rules, (d, p) => (F(), M(w, {
669
+ (F(!0), B(pe, null, ve(l(i).rules, (d, p) => (F(), M(w, {
671
670
  key: d.id,
672
671
  variant: "outlined",
673
672
  class: "p-16"
@@ -676,21 +675,21 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
676
675
  c("div", ct, [
677
676
  c("div", mt, [
678
677
  c("div", ft, [
679
- ye($(i(e)("inventory.ingredientGroup.form.rules.rule_N", [p + 1])), 1),
678
+ ye($(l(e)("inventory.ingredientGroup.form.rules.rule_N", [p + 1])), 1),
680
679
  d.name ? (F(), B("span", pt, ": ")) : se("", !0),
681
680
  d.name ? (F(), B("span", vt, $(d.name), 1)) : se("", !0)
682
681
  ]),
683
682
  b(m, {
684
683
  variant: "tertiary",
685
684
  icon: "delete",
686
- onClick: (h) => i(a).removeItem(d)
685
+ onClick: (h) => l(a).removeItem(d)
687
686
  }, null, 8, ["onClick"])
688
687
  ]),
689
688
  c("div", null, [
690
689
  (F(), M(Xe, {
691
690
  key: d._id,
692
691
  "model-value": d,
693
- "onUpdate:modelValue": i(a).updateItem,
692
+ "onUpdate:modelValue": l(a).updateItem,
694
693
  disabled: s.disabled,
695
694
  menu: s.menu
696
695
  }, null, 8, ["model-value", "onUpdate:modelValue", "disabled", "menu"]))
@@ -703,8 +702,8 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
703
702
  b(m, {
704
703
  variant: "plain",
705
704
  icon: "add",
706
- label: i(e)("inventory.ingredientGroup.form.rules.addRule"),
707
- onClick: i(a).addItem
705
+ label: l(e)("inventory.ingredientGroup.form.rules.addRule"),
706
+ onClick: l(a).addItem
708
707
  }, null, 8, ["label", "onClick"])
709
708
  ])
710
709
  ])
@@ -726,9 +725,9 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
726
725
  },
727
726
  emits: ["update:show"],
728
727
  setup(o) {
729
- const _ = o, f = P(), k = ze(() => f.readCachedMenu()), l = G(
728
+ const _ = o, f = L(), k = Pe(() => f.readCachedMenu()), i = G(
730
729
  () => k.result.value.state === Ne.success ? k.result.value.data : void 0
731
- ), v = Y(), { t: e } = z(), a = Se(_, "show");
730
+ ), v = Y(), { t: e } = P(), a = Se(_, "show");
732
731
  function t() {
733
732
  return {
734
733
  _id: "",
@@ -741,7 +740,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
741
740
  () => _.show,
742
741
  (d) => {
743
742
  if (!d) return;
744
- let p = L(_.modelValue ?? t());
743
+ let p = z(_.modelValue ?? t());
745
744
  p.defaultSkuRefs && (p.defaultSkuRefs = p.defaultSkuRefs.map((h, V) => ({
746
745
  ...h,
747
746
  priority: h.priority ?? V + 1
@@ -779,7 +778,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
779
778
  }), m = A(), r = A(!1);
780
779
  async function y() {
781
780
  r.value = !0;
782
- const d = L(n.value);
781
+ const d = z(n.value);
783
782
  try {
784
783
  await f.createSkuGroup(d), a.value = !1, v.open({
785
784
  title: e("inventory.common.success"),
@@ -798,7 +797,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
798
797
  }
799
798
  async function w() {
800
799
  r.value = !0;
801
- const d = L(n.value);
800
+ const d = z(n.value);
802
801
  try {
803
802
  await f.updateSkuGroup(d), r.value = !1, a.value = !1, v.open({
804
803
  title: e("inventory.common.success"),
@@ -832,7 +831,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
832
831
  return (d, p) => {
833
832
  const h = R("FmButton"), V = R("FmSideSheet");
834
833
  return F(), M(V, {
835
- "model-value": i(a),
834
+ "model-value": l(a),
836
835
  "onUpdate:modelValue": p[3] || (p[3] = (D) => ge(a) ? a.value = D : null),
837
836
  header: g.value,
838
837
  "close-button": "",
@@ -848,15 +847,15 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
848
847
  }, null, 8, ["loading", "label"]),
849
848
  b(h, {
850
849
  disabled: r.value,
851
- label: i(e)("common.close"),
850
+ label: l(e)("common.close"),
852
851
  variant: "tertiary",
853
852
  onClick: p[2] || (p[2] = (D) => a.value = !1)
854
853
  }, null, 8, ["disabled", "label"])
855
854
  ])
856
855
  ]),
857
856
  default: T(() => [
858
- l.value ? (F(), M(yt, {
859
- menu: l.value,
857
+ i.value ? (F(), M(yt, {
858
+ menu: i.value,
860
859
  class: "w-full",
861
860
  ref_key: "hasValidationExpose",
862
861
  ref: m,
@@ -872,10 +871,10 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
872
871
  }, 8, ["model-value", "header"]);
873
872
  };
874
873
  }
875
- }), kt = { class: "flex flex-col py-8" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ht = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Pt = /* @__PURE__ */ j({
874
+ }), kt = { class: "flex flex-col py-8" }, xt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ht = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, zt = /* @__PURE__ */ j({
876
875
  __name: "IngredientGroupView",
877
876
  setup(o) {
878
- const _ = P(), f = G(() => _.skuGroups), k = Re(), { t: l } = z(), {
877
+ const _ = L(), f = G(() => _.skuGroups), k = Re(), { t: i } = P(), {
879
878
  createIngredientGroup: v,
880
879
  updateIngredientGroup: e,
881
880
  importIngredientGroups: a,
@@ -891,20 +890,20 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
891
890
  return t();
892
891
  }
893
892
  }
894
- 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 = Ce(), p = G(() => [
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(() => [
895
894
  {
896
- label: l("inventory.ingredient.create.title"),
895
+ label: i("inventory.ingredient.create.title"),
897
896
  value: "add",
898
897
  isPrimary: !0,
899
898
  prependIcon: "add"
900
899
  },
901
- { label: l("common.import"), value: "import" },
902
- { label: l("common.export"), value: "export" }
900
+ { label: i("common.import"), value: "import" },
901
+ { label: i("common.export"), value: "export" }
903
902
  ]);
904
903
  return (h, V) => {
905
904
  const D = R("FmTable");
906
- return F(), M(De, {
907
- title: i(l)("inventory.ingredientGroup.title"),
905
+ return F(), M(Ae, {
906
+ title: l(i)("inventory.ingredientGroup.title"),
908
907
  actions: p.value,
909
908
  "onClick:action": u
910
909
  }, {
@@ -924,32 +923,32 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
924
923
  "onUpdate:search": V[0] || (V[0] = (E) => m.value = E)
925
924
  }, null, 8, ["search"]),
926
925
  b(D, {
927
- style: be(i(d).tableHeight),
928
- "column-defs": i(n),
926
+ style: be(l(d).tableHeight),
927
+ "column-defs": l(n),
929
928
  "row-data": f.value,
930
929
  "search-value": m.value,
931
- loading: !i(k)._currentLocation || y.value,
930
+ loading: !l(k)._currentLocation || y.value,
932
931
  "loading-text": "Loading",
933
- onRowClick: V[1] || (V[1] = (E) => i(e)(E.original)),
932
+ onRowClick: V[1] || (V[1] = (E) => l(e)(E.original)),
934
933
  "page-size": I.value
935
934
  }, {
936
935
  "list-row": T((E) => [
937
- b(Ae, {
936
+ b(Ce, {
938
937
  row: E,
939
- onRowClick: i(e)
938
+ onRowClick: l(e)
940
939
  }, ke({
941
940
  default: T((N) => {
942
941
  var J, Q, W, O, X, Z, ee, te, q, ne;
943
942
  return [
944
943
  c("div", kt, [
945
944
  c("div", xt, [
946
- b(i(le), {
945
+ b(l(ie), {
947
946
  render: (W = (Q = (J = N.code) == null ? void 0 : J.column) == null ? void 0 : Q.columnDef) == null ? void 0 : W.cell,
948
947
  props: (X = (O = N.code) == null ? void 0 : O.getContext) == null ? void 0 : X.call(O)
949
948
  }, null, 8, ["render", "props"])
950
949
  ]),
951
950
  c("div", ht, [
952
- b(i(le), {
951
+ b(l(ie), {
953
952
  render: (te = (ee = (Z = N.name) == null ? void 0 : Z.column) == null ? void 0 : ee.columnDef) == null ? void 0 : te.cell,
954
953
  props: (ne = (q = N.name) == null ? void 0 : q.getContext) == null ? void 0 : ne.call(q)
955
954
  }, null, 8, ["render", "props"])
@@ -962,7 +961,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
962
961
  r.value ? {
963
962
  name: "loading-text",
964
963
  fn: T(() => [
965
- c("div", null, $(i(l)("inventory.ingredient.table.importing")), 1)
964
+ c("div", null, $(l(i)("inventory.ingredient.table.importing")), 1)
966
965
  ]),
967
966
  key: "0"
968
967
  } : void 0
@@ -972,7 +971,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
972
971
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
973
972
  ], 2),
974
973
  (F(), M(xe, { to: "body" }, [
975
- b(bt, he(we(i(g))), null, 16)
974
+ b(bt, he(we(l(g))), null, 16)
976
975
  ]))
977
976
  ]),
978
977
  _: 1
@@ -981,5 +980,5 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
981
980
  }
982
981
  });
983
982
  export {
984
- Pt as default
983
+ zt as default
985
984
  };