@feedmepos/mf-inventory-portal 1.2.0 → 1.2.2-5.dev-1

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 (147) hide show
  1. package/dist/App-DMkUg806.js +297 -0
  2. package/dist/{ApprovalView-Dr-qd_Ai.js → ApprovalView-DWJh2K6W.js} +65 -64
  3. package/dist/{BindingsDialog-Chh00-83.js → BindingsDialog-EmHCvqJI.js} +2 -2
  4. package/dist/{BindingsPicker-DCTGJ8eM.js → BindingsPicker-h_9jm1s0.js} +3 -3
  5. package/dist/{BindingsTable-BsDs5d0V.js → BindingsTable-BAVWGUoa.js} +1 -1
  6. package/dist/ClosingDraftView-Du4kOwIg.js +1899 -0
  7. package/dist/ClosingHistoryView-DuW2Vtrs.js +355 -0
  8. package/dist/ClosingTemplateView-CfPY8R5M.js +2001 -0
  9. package/dist/{DeliveryOrderPrintPreview-CrH9UVdW.js → DeliveryOrderPrintPreview-C6Cj8mOp.js} +9 -9
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-WWIrybw_.js +230 -0
  11. package/dist/{FmMultiselectDialog-ypgaHejh.js → FmMultiselectDialog-BzWrQOS4.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DJctVhvZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DwqVRUFz.js} +36 -36
  13. package/dist/ImportView-lKlYeLay.js +1291 -0
  14. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D59M4Bl1.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-_2WZMZU2.js} +5 -5
  15. package/dist/{IngredientGroupView-Cf9ePE7_.js → IngredientGroupView-CrmwR2Xt.js} +34 -35
  16. package/dist/IngredientsView-1bAsyz-b.js +2254 -0
  17. package/dist/{IntegrationView-DEDn2mc5.js → IntegrationView-D16qeEc_.js} +1773 -1635
  18. package/dist/{InventoryBindingForm-AB8rum4-.js → InventoryBindingForm-BRwOXV_P.js} +1 -1
  19. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BgZt_9h1.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-NDbtbtqK.js} +28 -28
  20. package/dist/{InventoryBindingSummary-CWOG5DIz.js → InventoryBindingSummary-DKM2gX8_.js} +1 -1
  21. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CmN30iEZ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdaiYTdf.js} +4 -4
  22. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C1cUDp0u.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B0OKeK5O.js} +7 -7
  23. package/dist/{PublishView-FHyjjevA.js → PublishView-D0NnU22l.js} +73 -63
  24. package/dist/{PurchaseOrderPrintPreview-BPvvkjkR.js → PurchaseOrderPrintPreview-BmuwNbeL.js} +4 -4
  25. package/dist/{ReceiveRequestView-CoWU2g0R.js → ReceiveRequestView-j79m7TKk.js} +343 -333
  26. package/dist/RecipeView-D_fNQQ-C.js +636 -0
  27. package/dist/StockView-DX_xeFBT.js +2385 -0
  28. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bg49isUy.js +172 -0
  29. package/dist/{SupplierView-CJG2Idbl.js → SupplierView-DuFTqbOg.js} +1193 -1073
  30. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-c428GXwc.js +3233 -0
  31. package/dist/{TransferTemplateView-DZnPt5b5.js → TransferTemplateView-Ccsfcetz.js} +104 -103
  32. package/dist/UnitView-BklpNsFN.js +674 -0
  33. package/dist/WarehouseView-BrURbU67.js +1066 -0
  34. package/dist/api/adjustment-template.d.ts +1 -0
  35. package/dist/api/bill.d.ts +140 -2
  36. package/dist/api/closing-template.d.ts +1 -0
  37. package/dist/api/closing.d.ts +1 -0
  38. package/dist/api/inventory.d.ts +405 -0
  39. package/dist/api/netsuite.d.ts +5 -1
  40. package/dist/api/purchase-order-template.d.ts +1 -0
  41. package/dist/api/purchase-order.d.ts +3 -0
  42. package/dist/api/shipment.d.ts +11 -0
  43. package/dist/api/stock.d.ts +2 -44
  44. package/dist/api/warehouse.d.ts +3 -1
  45. package/dist/{app-B6mXF-3v.js → app-a9r50k3U.js} +68557 -67576
  46. package/dist/app.d.ts +646 -15
  47. package/dist/app.js +6 -6
  48. package/dist/components/FmAdminBadge.vue.d.ts +1 -4
  49. package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
  50. package/dist/components/FmInventoryTableToolbar.vue.d.ts +16 -2
  51. package/dist/components/FmLockableField.vue.d.ts +3 -0
  52. package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
  53. package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +2 -0
  54. package/dist/composable/defineApi.d.ts +1 -1
  55. package/dist/composable/useIframe.d.ts +2 -2
  56. package/dist/{decimal-DErYDfEJ.js → decimal-AusUnA1W.js} +1 -1
  57. package/dist/{format-unit-display-BtjJtmQp.js → format-unit-display-BqkHL-ph.js} +397 -429
  58. package/dist/helper/array.d.ts +1 -0
  59. package/dist/helper/core/country/utils.d.ts +3 -4
  60. package/dist/helper/country.d.ts +6 -255
  61. package/dist/helper/number.d.ts +1 -0
  62. package/dist/import-export.helper-PIyNeHfa.js +238 -0
  63. package/dist/{index-lj4ClRIU.js → index-CjxirPvn.js} +283 -268
  64. package/dist/{index-CvfUsVdt.js → index-Dj9-pdT9.js} +1 -1
  65. package/dist/layout/SingleColumnLayout.vue.d.ts +6 -3
  66. package/dist/purchase-order-template-CQikvY1p.js +41 -0
  67. package/dist/router/name.d.ts +2 -0
  68. package/dist/stock-CDZ2uWSF.js +83 -0
  69. package/dist/stock-Dw908dIC.js +74 -0
  70. package/dist/stores/feature.d.ts +12 -0
  71. package/dist/stores/integration/netsuite.d.ts +42 -0
  72. package/dist/stores/inventory.d.ts +28 -199
  73. package/dist/stores/location.d.ts +331 -1
  74. package/dist/stores/supplier.d.ts +96 -0
  75. package/dist/stores/warehouse.d.ts +4 -0
  76. package/dist/style.css +1 -1
  77. package/dist/{supplier-D_2yzArc.js → supplier-BPPBUudN.js} +1 -1
  78. package/dist/tsconfig.app.tsbuildinfo +1 -1
  79. package/dist/{use-ingredient-select-dialog-C9iEMCVA.js → use-ingredient-select-dialog-C_fSKN3_.js} +5 -5
  80. package/dist/{use-inventory-binding-dialog-CavX3SFd.js → use-inventory-binding-dialog-ClAkJ864.js} +8 -8
  81. package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
  82. package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
  83. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +56 -0
  84. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
  85. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +468 -0
  86. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +9 -2
  87. package/dist/views/closing-history/ClosingHistoryView.vue.d.ts +2 -0
  88. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +4 -1
  89. package/dist/views/closing-template/helpers/import-export.helper.d.ts +5 -0
  90. package/dist/views/import/ImportView.vue.d.ts +3 -0
  91. package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
  92. package/dist/views/import/helper/import-export.helper.d.ts +4 -0
  93. package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
  94. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +181 -12
  95. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +6 -0
  96. package/dist/views/ingredients/helper/import-export.helper.d.ts +4 -1
  97. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
  98. package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +16 -0
  99. package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +4 -0
  100. package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +16 -0
  101. package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +4 -0
  102. package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +21 -0
  103. package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
  104. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  105. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +420 -2
  106. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +99 -0
  107. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +644 -13
  108. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +711 -14
  109. package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
  110. package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
  111. package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
  112. package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
  113. package/dist/views/stock/components/StockRecordCard.vue.d.ts +70 -1
  114. package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +11 -0
  115. package/dist/views/stock/components/dialog/RecalculationDialogProps.d.ts +3 -0
  116. package/dist/views/stock/components/dialog/StockAdjustmentSideSheet.vue.d.ts +20 -0
  117. package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
  118. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
  119. package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
  120. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
  121. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
  122. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
  123. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
  124. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
  125. package/dist/views/unit/UnitView.vue.d.ts +1 -0
  126. package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
  127. package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
  128. package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
  129. package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
  130. package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
  131. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
  132. package/package.json +3 -3
  133. package/dist/App-Bs0pR0sL.js +0 -276
  134. package/dist/ClosingDraftView-Dyr4hrHk.js +0 -1687
  135. package/dist/ClosingTemplateView-Dw0Lld6E.js +0 -1908
  136. package/dist/FmAdminBadge-BUJh40aj.js +0 -34
  137. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B-p9ffPK.js +0 -224
  138. package/dist/IngredientsView-61WfWyGy.js +0 -1858
  139. package/dist/RecipeView-CznjQMrS.js +0 -621
  140. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
  141. package/dist/StockView-N-84Q5Ih.js +0 -2086
  142. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BmU-VLNN.js +0 -2336
  143. package/dist/UnitView-BrLjAWNq.js +0 -667
  144. package/dist/WarehouseView-CI-RuaPq.js +0 -1034
  145. package/dist/array-Ca8T3f_G.js +0 -44
  146. package/dist/helper/core/country/codes.d.ts +0 -255
  147. package/dist/stock-CIpuon0m.js +0 -146
@@ -1,5 +1,5 @@
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 { j as a, P as y } from "./app-B6mXF-3v.js";
1
+ import { defineComponent as p, openBlock as n, createElementBlock as s, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
2
+ import { n as a, Z as y } from "./app-a9r50k3U.js";
3
3
  import { useI18n as _ } from "@feedmepos/mf-common";
4
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 = {
5
5
  class: "flex-0 py-8 px-16",
@@ -31,17 +31,17 @@ const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-bod
31
31
  function f(e) {
32
32
  return e.unit !== void 0;
33
33
  }
34
- return (e, i) => (s(), n("div", v, [
34
+ return (e, i) => (n(), s("div", v, [
35
35
  r("div", g, [
36
36
  r("div", h, o(e.name), 1),
37
37
  r("div", b, o(l(m)("inventory.ingredient.bindedItems.amount")), 1)
38
38
  ]),
39
- (s(!0), n(d, null, x(e.bindings, (t) => (s(), n("div", {
39
+ (n(!0), s(d, null, x(e.bindings, (t) => (n(), s("div", {
40
40
  key: t.id,
41
41
  class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
42
42
  }, [
43
43
  r("div", k, o(t.name), 1),
44
- f(t) ? (s(), n("div", B, o(c(t, t.unit)), 1)) : (s(), n("div", I, o(l(a)(t.amount, !1)), 1))
44
+ f(t) ? (n(), s("div", B, o(c(t, t.unit)), 1)) : (n(), s("div", I, o(l(a)(t.amount, !1)), 1))
45
45
  ]))), 128))
46
46
  ]));
47
47
  }
@@ -1,16 +1,15 @@
1
- import { ref as A, computed as F, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as G, createElementBlock as U, 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 z, e as S, f as L, h as Re, D as oe, i as K, I as Ie, A as Se, U as Ge, K as ue, L as Fe, N as Ve, m as de, O as Ce, q as ae, u as De, B as Ae, _ as $e, C as Te, E as Ee, G as le } from "./app-B6mXF-3v.js";
3
- import { useDialog as Me, useSnackbar as Y, components as B, useProxiedModel as Be, useBreakpoints as Ue } from "@feedmepos/ui-library";
4
- import { useI18n as P, useCoreStore as Le } from "@feedmepos/mf-common";
1
+ import { ref as A, computed as F, h as C, defineComponent as j, watch as re, resolveComponent as R, openBlock as G, 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 P, e as S, f as L, i as Re, D as oe, j as K, P as Ie, A as Se, U as Ge, Q as ue, T as Fe, N as Ve, r as de, V as Ce, y as ae, u as De, G as Ae, I as $e, J as Te, K as Ee, L as le } from "./app-a9r50k3U.js";
3
+ import { useDialog as Me, useSnackbar as J, components as U, useProxiedModel as Ue, useBreakpoints as Be } from "@feedmepos/ui-library";
4
+ import { useI18n as z, useCoreStore as Le } from "@feedmepos/mf-common";
5
5
  import { defineStore as ce, storeToRefs as ie } from "pinia";
6
- import "./array-Ca8T3f_G.js";
7
- import { u as ze } from "./FmMultiselectDialog-ypgaHejh.js";
6
+ import { u as Pe } from "./FmMultiselectDialog-BzWrQOS4.js";
8
7
  import { r as me } from "./random-CSbEbElR.js";
9
- import { u as Pe, R as Ne } from "./usePromise-CbVUCxhj.js";
8
+ import { u as ze, R as Ne } from "./usePromise-CbVUCxhj.js";
10
9
  const H = ce(
11
10
  "ingredientGroupactions",
12
11
  function() {
13
- const _ = Me(), f = Y(), k = z(), { t: i } = P(), v = A();
12
+ const _ = Me(), f = J(), k = P(), { t: i } = z(), v = A();
14
13
  function e() {
15
14
  const u = {
16
15
  modelValue: {},
@@ -83,7 +82,7 @@ const H = ce(
83
82
  ), Oe = ce(
84
83
  "ingredientGroupTable",
85
84
  function() {
86
- const _ = A(!1), f = Y(), k = z(), i = H();
85
+ const _ = A(!1), f = J(), k = P(), i = H();
87
86
  async function v() {
88
87
  _.value = !0;
89
88
  try {
@@ -166,7 +165,7 @@ function qe(o) {
166
165
  };
167
166
  }
168
167
  function fe(o) {
169
- const _ = ze(), f = z(), k = F(() => [
168
+ const _ = Pe(), f = P(), k = F(() => [
170
169
  {
171
170
  id: "delete",
172
171
  header: "",
@@ -175,7 +174,7 @@ function fe(o) {
175
174
  return C(
176
175
  "div",
177
176
  { class: "w-full flex justify-end" },
178
- C(B.FmButton, {
177
+ C(U.FmButton, {
179
178
  class: "delete-button",
180
179
  key: a._id,
181
180
  type: "button",
@@ -253,7 +252,7 @@ function fe(o) {
253
252
  value: n.id
254
253
  }))
255
254
  ].filter((n) => !n.label.toLowerCase().includes("inactive"));
256
- return C(B.FmSelect, {
255
+ return C(U.FmSelect, {
257
256
  modelValue: e.row.original.trackingMeasurement ?? null,
258
257
  items: t,
259
258
  disabled: o.disabled ?? !1,
@@ -271,7 +270,7 @@ function fe(o) {
271
270
  enableSorting: !0,
272
271
  cell(e) {
273
272
  const a = e.row.original;
274
- return C(B.FmTextField, {
273
+ return C(U.FmTextField, {
275
274
  modelValue: a.priority ?? e.row.index + 1,
276
275
  rules: [
277
276
  Ie(),
@@ -299,7 +298,7 @@ function fe(o) {
299
298
  accessorKey: "default",
300
299
  cell(e) {
301
300
  const a = f.skuById[e.row.original._id];
302
- return a ? C(B.FmCheckbox, {
301
+ return a ? C(U.FmCheckbox, {
303
302
  modelValue: e.row.original.default ?? !1,
304
303
  value: a._id,
305
304
  disabled: o.disabled ?? !1,
@@ -321,7 +320,7 @@ function fe(o) {
321
320
  cell(e) {
322
321
  const a = e.row.original;
323
322
  return C("div", { class: "w-full flex justify-end" }, [
324
- C(B.FmButton, {
323
+ C(U.FmButton, {
325
324
  key: a._id,
326
325
  type: "button",
327
326
  icon: "keyboard_arrow_up",
@@ -337,7 +336,7 @@ function fe(o) {
337
336
  o.skuRefs = [...t];
338
337
  }
339
338
  }),
340
- C(B.FmButton, {
339
+ C(U.FmButton, {
341
340
  key: a._id,
342
341
  type: "button",
343
342
  icon: "keyboard_arrow_down",
@@ -397,14 +396,14 @@ function fe(o) {
397
396
  }
398
397
  };
399
398
  }
400
- const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, He = { class: "flex flex-col gap-4" }, Ye = { class: "flex flex-col gap-16" }, Je = { class: "flex flex-col" }, Qe = { class: "flex flex-col gap-4" }, We = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = /* @__PURE__ */ j({
399
+ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, He = { class: "flex flex-col gap-4" }, Je = { class: "flex flex-col gap-16" }, Qe = { class: "flex flex-col" }, Ye = { class: "flex flex-col gap-4" }, We = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xe = /* @__PURE__ */ j({
401
400
  __name: "IngredientGroupRuleField",
402
401
  props: {
403
402
  disabled: { type: Boolean },
404
403
  modelValue: {}
405
404
  },
406
405
  setup(o) {
407
- const _ = o, { t: f } = P(), k = Le(), i = F(() => {
406
+ const _ = o, { t: f } = z(), k = Le(), i = F(() => {
408
407
  var g;
409
408
  const n = /* @__PURE__ */ new Map(), s = k.restaurants.value.map((u) => u.customAttributes ?? {});
410
409
  for (const u of s)
@@ -451,7 +450,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
451
450
  });
452
451
  return (n, s) => {
453
452
  const g = R("FmTextField"), u = R("FmLabel"), m = R("FmFormGroup"), r = R("FmTable");
454
- return G(), U("div", Ke, [
453
+ return G(), B("div", Ke, [
455
454
  b(g, {
456
455
  modelValue: l(e).name,
457
456
  "onUpdate:modelValue": s[0] || (s[0] = (y) => l(e).name = y),
@@ -481,9 +480,9 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
481
480
  ]
482
481
  }, null, 8, ["model-value", "rules"])
483
482
  ]),
484
- c("div", Ye, [
485
- c("div", Je, [
486
- c("div", Qe, [
483
+ c("div", Je, [
484
+ c("div", Qe, [
485
+ c("div", Ye, [
487
486
  c("div", null, [
488
487
  b(u, {
489
488
  label: l(f)("inventory.ingredientGroup.form.rules.ingredients"),
@@ -526,7 +525,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
526
525
  setup(o, { expose: _, emit: f }) {
527
526
  const k = o, i = ue("modelValue", {
528
527
  watchProps: !0
529
- }), v = f, { t: e } = P(), a = qe({
528
+ }), v = f, { t: e } = z(), a = qe({
530
529
  get items() {
531
530
  return i.rules ?? [];
532
531
  },
@@ -659,7 +658,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
659
658
  c("div", ut, $(l(e)("inventory.ingredientGroup.form.rules.title")), 1),
660
659
  c("div", dt, $(l(e)("inventory.ingredientGroup.form.rules.description")), 1)
661
660
  ]),
662
- (G(!0), U(pe, null, ve(l(i).rules, (d, p) => (G(), M(w, {
661
+ (G(!0), B(pe, null, ve(l(i).rules, (d, p) => (G(), M(w, {
663
662
  key: d.id,
664
663
  variant: "outlined",
665
664
  class: "p-16"
@@ -669,8 +668,8 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
669
668
  c("div", mt, [
670
669
  c("div", ft, [
671
670
  ye($(l(e)("inventory.ingredientGroup.form.rules.rule_N", [p + 1])), 1),
672
- d.name ? (G(), U("span", pt, ": ")) : se("", !0),
673
- d.name ? (G(), U("span", vt, $(d.name), 1)) : se("", !0)
671
+ d.name ? (G(), B("span", pt, ": ")) : se("", !0),
672
+ d.name ? (G(), B("span", vt, $(d.name), 1)) : se("", !0)
674
673
  ]),
675
674
  b(m, {
676
675
  variant: "tertiary",
@@ -718,9 +717,9 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
718
717
  },
719
718
  emits: ["update:show"],
720
719
  setup(o) {
721
- const _ = o, f = z(), k = Pe(() => f.readCachedMenu()), i = F(
720
+ const _ = o, f = P(), k = ze(() => f.readCachedMenu()), i = F(
722
721
  () => k.result.value.state === Ne.success ? k.result.value.data : void 0
723
- ), v = Y(), { t: e } = P(), a = Be(_, "show");
722
+ ), v = J(), { t: e } = z(), a = Ue(_, "show");
724
723
  function t() {
725
724
  return {
726
725
  _id: "",
@@ -858,16 +857,16 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
858
857
  mode: d.mode,
859
858
  disabled: r.value,
860
859
  onValidationSuccess: p[1] || (p[1] = (D) => I())
861
- }, null, 8, ["menu", "model-value", "mode", "disabled"])) : (G(), U("div", gt, "Loading.."))
860
+ }, null, 8, ["menu", "model-value", "mode", "disabled"])) : (G(), B("div", gt, "Loading.."))
862
861
  ]),
863
862
  _: 1
864
863
  }, 8, ["model-value", "header"]);
865
864
  };
866
865
  }
867
- }), 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" }, At = /* @__PURE__ */ j({
866
+ }), 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" }, Dt = /* @__PURE__ */ j({
868
867
  __name: "IngredientGroupView",
869
868
  setup(o) {
870
- const _ = z(), f = F(() => _.skuGroups), k = De(), { t: i } = P(), {
869
+ const _ = P(), f = F(() => _.skuGroups), k = De(), { t: i } = z(), {
871
870
  createIngredientGroup: v,
872
871
  updateIngredientGroup: e,
873
872
  importIngredientGroups: a,
@@ -883,7 +882,7 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
883
882
  return t();
884
883
  }
885
884
  }
886
- const m = A(""), r = A(!1), y = F(() => r.value || s.value), { breakpoints: w } = Ue(), x = F(() => w.value.xs || w.value.sm), I = F(() => x.value ? 10 : 20), d = Ae(), p = F(() => [
885
+ const m = A(""), r = A(!1), y = F(() => r.value || s.value), { breakpoints: w } = Be(), x = F(() => w.value.xs || w.value.sm), I = F(() => x.value ? 10 : 20), d = Ae(), p = F(() => [
887
886
  {
888
887
  label: i("inventory.ingredient.create.title"),
889
888
  value: "add",
@@ -931,12 +930,12 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
931
930
  onRowClick: l(e)
932
931
  }, ke({
933
932
  default: T((N) => {
934
- var J, Q, W, O, X, Z, ee, te, q, ne;
933
+ var Q, Y, W, O, X, Z, ee, te, q, ne;
935
934
  return [
936
935
  c("div", kt, [
937
936
  c("div", xt, [
938
937
  b(l(le), {
939
- render: (W = (Q = (J = N.code) == null ? void 0 : J.column) == null ? void 0 : Q.columnDef) == null ? void 0 : W.cell,
938
+ render: (W = (Y = (Q = N.code) == null ? void 0 : Q.column) == null ? void 0 : Y.columnDef) == null ? void 0 : W.cell,
940
939
  props: (X = (O = N.code) == null ? void 0 : O.getContext) == null ? void 0 : X.call(O)
941
940
  }, null, 8, ["render", "props"])
942
941
  ]),
@@ -973,5 +972,5 @@ const Ke = { class: "flex flex-col gap-16" }, je = { class: "flex flex-col" }, H
973
972
  }
974
973
  });
975
974
  export {
976
- At as default
975
+ Dt as default
977
976
  };