@feedmepos/mf-inventory-portal 0.0.19-dev.13 → 0.0.19-dev.14

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 (178) hide show
  1. package/dist/App.vue.d.ts +1 -1
  2. package/dist/{ApprovalView-9MdmwrUz.js → ApprovalView-BY13XuOu.js} +5 -5
  3. package/dist/{BindingsDialog-C-q6Y04n.js → BindingsDialog-B3PP-XkE.js} +22 -22
  4. package/dist/{BindingsPicker-syyx9h8v.js → BindingsPicker-DL17pRty.js} +17 -17
  5. package/dist/{BindingsTable-CQ0WyX2i.js → BindingsTable-CjKOv7Yw.js} +29 -29
  6. package/dist/Entry.vue.d.ts +1 -1
  7. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoF7wwNT.js +306 -0
  8. package/dist/{IngredientsView-Ofs2UG-9.js → IngredientsView-C-rsKAsF.js} +294 -294
  9. package/dist/{IntegrationView-BCruLSTA.js → IntegrationView-BkhfPSjM.js} +278 -278
  10. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bvw_BkWY.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Buc21sEN.js} +1 -1
  11. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BLVAIHDv.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BRijSilS.js} +1 -1
  12. package/dist/PurchaseOrderPrintPreview-CGMMozPA.js +152 -0
  13. package/dist/{ReceiveRequestView-Dw-AC1Mw.js → ReceiveRequestView-Bk0pUeEm.js} +7 -7
  14. package/dist/{RecipeView-B5WkUzLO.js → RecipeView-kzA9kIg8.js} +181 -181
  15. package/dist/Standalone.vue.d.ts +1 -1
  16. package/dist/{StockView-CMTxj8Ly.js → StockView-DF-ucES_.js} +23 -23
  17. package/dist/SupplierView-XlzsU00G.js +813 -0
  18. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-B8IGZmDZ.js → TransferDetails.vue_vue_type_script_setup_true_lang-Bp7AJiJ-.js} +106 -106
  19. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-D1NAkXMT.js +1690 -0
  20. package/dist/TransferTemplateView-CsA2SzQY.js +1279 -0
  21. package/dist/{UnitView-CExCsCFg.js → UnitView-9VMIlEZ_.js} +242 -242
  22. package/dist/{WarehouseView-DuPizg7w.js → WarehouseView-JTYLFBsu.js} +360 -362
  23. package/dist/api/bill.d.ts +238 -84
  24. package/dist/api/supplier.d.ts +4 -4
  25. package/dist/app-kYGuBDV8.js +68549 -0
  26. package/dist/app.d.ts +14 -0
  27. package/dist/app.js +3 -3
  28. package/dist/components/ChangeLocationComponent.vue.d.ts +11 -1
  29. package/dist/components/DeferableLoading.vue.d.ts +1 -1
  30. package/dist/components/DeleteDialog.vue.d.ts +1 -1
  31. package/dist/components/FmCoordinateInput.vue.d.ts +3 -3
  32. package/dist/components/FmDroppableField.vue.d.ts +6 -6
  33. package/dist/components/FmFilterableSelect.vue.d.ts +3 -3
  34. package/dist/components/FmInventoryTableToolbar.vue.d.ts +21 -10
  35. package/dist/components/FmMinMaxInput.vue.d.ts +20 -0
  36. package/dist/components/FmMinMaxInputProps.d.ts +16 -0
  37. package/dist/components/FmMinMaxInputRules.d.ts +4 -0
  38. package/dist/components/FmMultiselectDialog.vue.d.ts +5 -5
  39. package/dist/components/FmMultiselectDialogProps.d.ts +3 -0
  40. package/dist/components/FmUnitInputRules.d.ts +1 -0
  41. package/dist/components/MultiSelectDialog.vue.d.ts +1 -1
  42. package/dist/components/NavigationTab.vue.d.ts +1 -1
  43. package/dist/components/NumberPrecisionInput.vue.d.ts +3 -3
  44. package/dist/components/PremiumBadge.vue.d.ts +3 -3
  45. package/dist/components/PreviewBadge.vue.d.ts +3 -3
  46. package/dist/components/StockForecast.vue.d.ts +1 -1
  47. package/dist/components/TableActionableRow.vue.d.ts +4 -4
  48. package/dist/components/UnitDisplayControl.vue.d.ts +1 -1
  49. package/dist/components/icons/IconCommunity.vue.d.ts +1 -1
  50. package/dist/components/icons/IconDocumentation.vue.d.ts +1 -1
  51. package/dist/components/icons/IconEcosystem.vue.d.ts +1 -1
  52. package/dist/components/icons/IconSupport.vue.d.ts +1 -1
  53. package/dist/components/icons/IconTooling.vue.d.ts +1 -1
  54. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
  55. package/dist/components/map/CoordinateDialog.vue.d.ts +4 -4
  56. package/dist/components/map/GoogleMap.vue.d.ts +6 -6
  57. package/dist/components/nested-multiselect/FmNestedMultiselectDialog.vue.d.ts +3 -3
  58. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +3 -3
  59. package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
  60. package/dist/components/ui-library/FmDateRangePickerChip.vue.d.ts +5 -5
  61. package/dist/composable/useIframe.d.ts +1 -1
  62. package/dist/composable/useSearch.d.ts +1 -1
  63. package/dist/{decimal-GwZ2MmM_.js → decimal-E3w4eGHF.js} +1 -1
  64. package/dist/helper/number.d.ts +2 -0
  65. package/dist/{id-to-date-CMUZ2glF.js → id-to-date-gyR82hWy.js} +1 -1
  66. package/dist/is-linked-ingredient-error-fJ2TJb3z.js +37 -0
  67. package/dist/layout/InventoryLayout.vue.d.ts +1 -1
  68. package/dist/layout/SingleColumnLayout.vue.d.ts +5 -5
  69. package/dist/layout/components/NavigationButton.vue.d.ts +4 -4
  70. package/dist/{layout-C3IEOm7C.js → layout-BTYR4n3X.js} +1 -1
  71. package/dist/{purchase-order-transaction-type-DpZQe_jA.js → purchase-order-transaction-type-CUtdDhYo.js} +2 -2
  72. package/dist/stores/feature.d.ts +2 -1
  73. package/dist/stores/location.d.ts +108 -148
  74. package/dist/stores/supplier.d.ts +672 -18
  75. package/dist/stores/warehouse.d.ts +9 -5
  76. package/dist/supplier-Ed-Bva_-.js +60 -0
  77. package/dist/tsconfig.app.tsbuildinfo +1 -1
  78. package/dist/views/InventoryView.vue.d.ts +1 -1
  79. package/dist/views/SelectBussinessDialog.vue.d.ts +1 -1
  80. package/dist/views/approval/ApprovalView.vue.d.ts +1 -1
  81. package/dist/views/dev/ComponentPreview.vue.d.ts +1 -1
  82. package/dist/views/dev/components/CoordinateTest.vue.d.ts +1 -1
  83. package/dist/views/dev/components/DateRange.vue.d.ts +1 -1
  84. package/dist/views/dev/components/FmDecimalInputTest.vue.d.ts +1 -1
  85. package/dist/views/dev/components/FmMultiselectDialogGrouped.vue.d.ts +1 -1
  86. package/dist/views/dev/components/FmSelectTest.vue.d.ts +1 -1
  87. package/dist/views/dev/components/InventoryIframe.vue.d.ts +1 -1
  88. package/dist/views/dev/components/LayoutDev.vue.d.ts +1 -1
  89. package/dist/views/dev/components/MfCommontTest.vue.d.ts +1 -1
  90. package/dist/views/dev/components/NestedSelection.vue.d.ts +1 -1
  91. package/dist/views/dev/components/NumberStepper.vue.d.ts +1 -1
  92. package/dist/views/dev/components/TabStorageTest.vue.d.ts +1 -1
  93. package/dist/views/dev/components/UnitInput.vue.d.ts +1 -1
  94. package/dist/views/dev/helpers/pinia-test.d.ts +1 -1
  95. package/dist/views/home/HomeView.vue.d.ts +1 -1
  96. package/dist/views/iframe/inventory-bindings/bindings-dialog/BindingsDialog.vue.d.ts +1 -1
  97. package/dist/views/iframe/inventory-bindings/bindings-picker/BindingsPicker.vue.d.ts +1 -1
  98. package/dist/views/iframe/inventory-bindings/bindings-table/BindingsTable.vue.d.ts +1 -1
  99. package/dist/views/ingredients/IngredientsView.vue.d.ts +1 -1
  100. package/dist/views/ingredients/components/cannot-delete/CannotDelete.vue.d.ts +4 -4
  101. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +3 -3
  102. package/dist/views/ingredients/components/import-ingredients/ImportIngredientItem.vue.d.ts +1 -1
  103. package/dist/views/ingredients/components/import-ingredients/ImportIngredients.vue.d.ts +1 -1
  104. package/dist/views/ingredients/components/ingredient-binded-item/IngredientBindedItem.vue.d.ts +1 -1
  105. package/dist/views/ingredients/components/ingredient-dialog/IngredientDialog.vue.d.ts +5 -5
  106. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -4
  107. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
  108. package/dist/views/ingredients/components/inventory-binding/InventoryBindingSummary.vue.d.ts +3 -3
  109. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +8 -8
  110. package/dist/views/integration/IntegrationView.vue.d.ts +1 -1
  111. package/dist/views/integration/components/ApplyAddon.vue.d.ts +5 -5
  112. package/dist/views/integration/components/ApplyProduct.vue.d.ts +5 -5
  113. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +5 -5
  114. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +5 -5
  115. package/dist/views/receive-request/ReceiveRequestView.vue.d.ts +1 -1
  116. package/dist/views/receive-request/components/supplier-price-history/SupplierPriceHistory.vue.d.ts +1 -1
  117. package/dist/views/receive-request/components/transfer-details/TransferDetails.vue.d.ts +3 -3
  118. package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +4 -4
  119. package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +4 -4
  120. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +27 -27
  121. package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +4 -4
  122. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -4
  123. package/dist/views/receive-request/components/transfer-form/components/TransferItem.vue.d.ts +3 -3
  124. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +3 -3
  125. package/dist/views/receive-request/components/transfer-form/composables/use-backdate-po.d.ts +4 -4
  126. package/dist/views/receive-request/components/transfer-form/composables/use-compare-price.d.ts +3 -3
  127. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -8
  128. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1012 -66
  129. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +24 -24
  130. package/dist/views/receive-request/print-preview/PurchaseOrderPrintPreview.vue.d.ts +1 -1
  131. package/dist/views/recipe/RecipeView.vue.d.ts +1 -1
  132. package/dist/views/recipe/components/recipe-dialog/RecipeDialog.vue.d.ts +5 -5
  133. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +4 -4
  134. package/dist/views/recipe/composables/use-recipe-form.d.ts +8 -8
  135. package/dist/views/stock/StockView.vue.d.ts +1 -1
  136. package/dist/views/stock/components/StockHeaderPreview.vue.d.ts +1 -1
  137. package/dist/views/stock/components/StockHistory.vue.d.ts +3 -3
  138. package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +2 -2
  139. package/dist/views/stock/components/StockRecordCard.vue.d.ts +123 -46
  140. package/dist/views/stock/components/dialog/AdjustSkuDialog.vue.d.ts +4 -4
  141. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +3 -3
  142. package/dist/views/stock/components/dialog/ConvertSkuDialog.vue.d.ts +4 -4
  143. package/dist/views/stock/composables/use-stock-action.d.ts +11 -11
  144. package/dist/views/supplier/SupplierView.vue.d.ts +1 -1
  145. package/dist/views/supplier/components/SupplierDialog.vue.d.ts +4 -4
  146. package/dist/views/supplier/components/SupplierDialogProps.d.ts +1 -0
  147. package/dist/views/supplier/components/SupplierForm.vue.d.ts +10 -10
  148. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -3
  149. package/dist/views/supplier/composables/use-supplier-table.d.ts +3 -3
  150. package/dist/views/transfer-template/TransferTemplateView.vue.d.ts +1 -1
  151. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +3 -3
  152. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +4 -4
  153. package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts +2 -2
  154. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +3 -3
  155. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +7 -7
  156. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +13 -8
  157. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1020 -79
  158. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +309 -11
  159. package/dist/views/unit/UnitView.vue.d.ts +1 -1
  160. package/dist/views/unit/components/unit-dialog/UnitDialog.vue.d.ts +5 -5
  161. package/dist/views/unit/components/unit-form/UnitForm.vue.d.ts +4 -4
  162. package/dist/views/unit/components/unit-summary/UnitSummary.vue.d.ts +3 -3
  163. package/dist/views/unit/components/unit-used-by/UnitUsedBy.vue.d.ts +1 -1
  164. package/dist/views/unit/composables/use-unit-form.d.ts +8 -8
  165. package/dist/views/warehouse/WarehouseView.vue.d.ts +1 -1
  166. package/dist/views/warehouse/components/WarehouseDialog.vue.d.ts +4 -4
  167. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +22 -14
  168. package/dist/{xlsx-CjErNF-B.js → xlsx-q6Ctgevr.js} +2759 -2759
  169. package/dist/{xlsx.util-CMXCCmUA.js → xlsx.util-Cvqg56mI.js} +2 -2
  170. package/package.json +2 -1
  171. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DlIq3AyC.js +0 -272
  172. package/dist/PurchaseOrderPrintPreview-Do2KxBzF.js +0 -152
  173. package/dist/SupplierView-OmZ0X1E1.js +0 -801
  174. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-BJMBsA9j.js +0 -1672
  175. package/dist/TransferTemplateView-Da6ehaJF.js +0 -1101
  176. package/dist/app-Chj8x632.js +0 -67206
  177. package/dist/is-linked-ingredient-error-C6AghEwR.js +0 -37
  178. package/dist/supplier-dG_APcwB.js +0 -54
@@ -1,17 +1,17 @@
1
- import { defineComponent as Y, ref as E, onMounted as se, resolveComponent as k, openBlock as x, createElementBlock as $, Fragment as le, createElementVNode as g, toDisplayString as re, createVNode as y, createCommentVNode as H, computed as V, watch as ie, createBlock as T, withCtx as A, unref as v, isRef as X, normalizeStyle as ce, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
2
- import { u as I, c as G, S as pe, a as q, R as fe, U as ve, _ as ye, A as _e, e as Z, f as ge, j as be } from "./app-Chj8x632.js";
3
- import { useDialog as he, useSnackbar as ne, useProxiedModel as ee, useBreakpoints as we } from "@feedmepos/ui-library";
4
- import { i as Re, _ as xe } from "./is-linked-ingredient-error-C6AghEwR.js";
5
- import { F as R, D as te, R as N } from "./row-action.enum-PMKMRrZR.js";
6
- import { _ as ae, t as Ce, d as Ee } from "./xlsx.util-CMXCCmUA.js";
1
+ import { defineComponent as Y, ref as E, onMounted as se, resolveComponent as k, openBlock as x, createElementBlock as A, Fragment as le, createElementVNode as _, toDisplayString as re, createVNode as y, createCommentVNode as H, computed as V, watch as ie, createBlock as T, withCtx as $, unref as v, isRef as X, normalizeStyle as ce, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
2
+ import { u as I, c as G, S as pe, a as q, R as fe, U as ve, _ as ye, A as ge, e as Z, f as _e, j as be } from "./app-kYGuBDV8.js";
3
+ import { useDialog as we, useSnackbar as oe, useProxiedModel as ee, useBreakpoints as Re } from "@feedmepos/ui-library";
4
+ import { i as he, _ as xe } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
+ import { F as h, D as te, R as N } from "./row-action.enum-PMKMRrZR.js";
6
+ import { _ as ae, t as Ce, d as Ee } from "./xlsx.util-Cvqg56mI.js";
7
7
  import { defineStore as Fe, storeToRefs as ke } from "pinia";
8
- import { c as Ve, _ as Se, F as oe, u as De } from "./layout-C3IEOm7C.js";
8
+ import { c as Ve, _ as Se, F as ne, u as De } from "./layout-BTYR4n3X.js";
9
9
  import { useI18n as j } from "@feedmepos/mf-common";
10
- import { _ as $e, a as Ae } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DlIq3AyC.js";
10
+ import { _ as Ae, a as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoF7wwNT.js";
11
11
  const Ie = {
12
12
  key: 0,
13
13
  class: "flex flex-col items-center w-full h-full gap-24"
14
- }, Pe = /* @__PURE__ */ g("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1), Te = { key: 1 }, Me = /* @__PURE__ */ g("br", null, null, -1), Ue = { key: 0 }, Be = /* @__PURE__ */ g("p", { class: "fm-typo-en-body-lg-600" }, "Affected menu items:", -1), Le = /* @__PURE__ */ Y({
14
+ }, Pe = { key: 1 }, Te = { key: 0 }, Me = /* @__PURE__ */ Y({
15
15
  __name: "DeleteDialog",
16
16
  props: {
17
17
  type: {},
@@ -20,29 +20,29 @@ const Ie = {
20
20
  bindedItems: {}
21
21
  },
22
22
  setup(b) {
23
- const d = b, p = E(d.bindedItems || []), s = E(!1);
23
+ const d = b, p = E(d.bindedItems || []), l = E(!1);
24
24
  se(() => {
25
- n();
25
+ a();
26
26
  });
27
- async function n() {
28
- var r, l;
29
- !s.value && ((r = d.data) != null && r._id) && (s.value = !0, p.value = await I().getAffectedMenu((l = d.data) == null ? void 0 : l._id), s.value = !1);
27
+ async function a() {
28
+ var r, o;
29
+ !l.value && ((r = d.data) != null && r._id) && (l.value = !0, p.value = await I().getAffectedMenu((o = d.data) == null ? void 0 : o._id), l.value = !1);
30
30
  }
31
- return (r, l) => {
31
+ return (r, o) => {
32
32
  const c = k("FmSpacer"), f = k("FmCircularProgress");
33
- return x(), $(le, null, [
34
- g("p", null, re(r.message), 1),
35
- s.value ? (x(), $("div", Ie, [
33
+ return x(), A(le, null, [
34
+ _("p", null, re(r.message), 1),
35
+ l.value ? (x(), A("div", Ie, [
36
36
  y(c),
37
- g("div", null, [
37
+ _("div", null, [
38
38
  y(f, { size: "xl" })
39
39
  ]),
40
- Pe,
40
+ o[0] || (o[0] = _("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1)),
41
41
  y(c)
42
- ])) : (x(), $("div", Te, [
43
- Me,
44
- p.value.length > 0 ? (x(), $("div", Ue, [
45
- Be,
42
+ ])) : (x(), A("div", Pe, [
43
+ o[2] || (o[2] = _("br", null, null, -1)),
44
+ p.value.length > 0 ? (x(), A("div", Te, [
45
+ o[1] || (o[1] = _("p", { class: "fm-typo-en-body-lg-600" }, "Affected menu items:", -1)),
46
46
  y(ae, {
47
47
  name: "Menu",
48
48
  bindings: p.value
@@ -53,11 +53,11 @@ const Ie = {
53
53
  };
54
54
  }
55
55
  }), K = Fe("recipeForm", function() {
56
- const d = he(), p = ne(), s = I(), n = E(!1), r = E();
57
- function l() {
56
+ const d = we(), p = oe(), l = I(), a = E(!1), r = E();
57
+ function o() {
58
58
  const t = {
59
59
  recipe: {},
60
- mode: R.CREATE,
60
+ mode: h.CREATE,
61
61
  show: !0,
62
62
  "onUpdate:show"(u) {
63
63
  r.value.show = u;
@@ -68,24 +68,24 @@ const Ie = {
68
68
  async function c(t) {
69
69
  const u = {
70
70
  recipe: G(t),
71
- mode: R.UPDATE,
71
+ mode: h.UPDATE,
72
72
  show: !0,
73
- "onUpdate:show"(a) {
74
- r.value.show = a;
73
+ "onUpdate:show"(s) {
74
+ r.value.show = s;
75
75
  }
76
76
  };
77
77
  r.value = u;
78
78
  }
79
79
  async function f(t) {
80
- n.value = !0;
80
+ a.value = !0;
81
81
  try {
82
- await s.deleteRecipe(t), p.open({
82
+ await l.deleteRecipe(t), p.open({
83
83
  title: "Success",
84
84
  message: `Deleted ${t.name}`,
85
85
  type: "success"
86
86
  });
87
87
  } catch (u) {
88
- u instanceof pe && Re(u) ? d.open({
88
+ u instanceof pe && he(u) ? d.open({
89
89
  title: "Cannot delete recipe",
90
90
  contentComponent: xe,
91
91
  contentComponentProps: {
@@ -102,7 +102,7 @@ const Ie = {
102
102
  type: "error"
103
103
  }), console.error("failed to delete recipe", u);
104
104
  } finally {
105
- n.value = !1;
105
+ a.value = !1;
106
106
  }
107
107
  }
108
108
  function m(t) {
@@ -118,7 +118,7 @@ const Ie = {
118
118
  text: "Cancel",
119
119
  close: !0
120
120
  },
121
- contentComponent: Le,
121
+ contentComponent: Me,
122
122
  contentComponentProps: {
123
123
  type: "menu",
124
124
  data: t,
@@ -127,27 +127,27 @@ const Ie = {
127
127
  }).onPrimary(() => f(t));
128
128
  }
129
129
  return {
130
- createRecipe: l,
130
+ createRecipe: o,
131
131
  updateRecipe: c,
132
132
  deleteRecipe: m,
133
133
  recipeDialogProps: r,
134
- recipeViewLoading: n
134
+ recipeViewLoading: a
135
135
  };
136
136
  });
137
- function ze() {
137
+ function Ue() {
138
138
  const { updateRecipe: b, deleteRecipe: d } = K(), { t: p } = j();
139
- async function s(l, c) {
139
+ async function l(o, c) {
140
140
  const f = G(c);
141
- if (l === N.Edit) {
141
+ if (o === N.Edit) {
142
142
  await b(f);
143
143
  return;
144
144
  }
145
- if (l === N.Delete) {
145
+ if (o === N.Delete) {
146
146
  await d(f);
147
147
  return;
148
148
  }
149
149
  }
150
- const n = [
150
+ const a = [
151
151
  {
152
152
  accessorKey: "recipe",
153
153
  header: () => p("inventory.recipe.name"),
@@ -161,11 +161,11 @@ function ze() {
161
161
  {
162
162
  id: "action",
163
163
  header: "",
164
- cell(l) {
164
+ cell(o) {
165
165
  return Ve(
166
166
  [te[N.Edit], te[N.Delete]],
167
167
  (c) => {
168
- s(c, l.row.original.original);
168
+ l(c, o.row.original.original);
169
169
  }
170
170
  );
171
171
  },
@@ -177,27 +177,27 @@ function ze() {
177
177
  }
178
178
  }
179
179
  ];
180
- function r(l) {
180
+ function r(o) {
181
181
  const c = I();
182
- return l.map((f) => ({
182
+ return o.map((f) => ({
183
183
  recipe: f.name,
184
184
  ingredients: f.contains.map((m) => {
185
- var u, a;
185
+ var u, s;
186
186
  const t = c.skuById[m.id];
187
- return t ? `${t.name} (${q(m.amount)}${((u = m.measurement) == null ? void 0 : u.abbrev) ?? ((a = t == null ? void 0 : t.unit) == null ? void 0 : a.abbrev)})` : null;
187
+ return t ? `${t.name} (${q(m.amount)}${((u = m.measurement) == null ? void 0 : u.abbrev) ?? ((s = t == null ? void 0 : t.unit) == null ? void 0 : s.abbrev)})` : null;
188
188
  }).filter((m) => m).join(", "),
189
189
  original: f
190
190
  }));
191
191
  }
192
- return { columnDefs: n, formatRowData: r };
192
+ return { columnDefs: a, formatRowData: r };
193
193
  }
194
- const Ne = { class: "flex flex-col gap-40" }, Ye = {
194
+ const Be = { class: "flex flex-col gap-40" }, Le = {
195
195
  key: 0,
196
196
  class: "col-span-2 mt-16 border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
197
- }, je = {
197
+ }, ze = {
198
198
  key: 0,
199
199
  class: "flex flex-col items-center w-full h-full gap-24"
200
- }, He = /* @__PURE__ */ g("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1), qe = { key: 1 }, Ke = /* @__PURE__ */ Y({
200
+ }, Ne = { key: 1 }, Ye = /* @__PURE__ */ Y({
201
201
  __name: "RecipeForm",
202
202
  props: {
203
203
  mode: {},
@@ -207,71 +207,71 @@ const Ne = { class: "flex flex-col gap-40" }, Ye = {
207
207
  emits: ["update:modelValue", "click:submit"],
208
208
  setup(b, { expose: d, emit: p }) {
209
209
  var F;
210
- const s = b, n = p, { t: r } = j(), l = V({
210
+ const l = b, a = p, { t: r } = j(), o = V({
211
211
  get() {
212
212
  var e;
213
- return ((e = s.modelValue) == null ? void 0 : e.name) ?? "";
213
+ return ((e = l.modelValue) == null ? void 0 : e.name) ?? "";
214
214
  },
215
215
  set(e) {
216
- const o = s.modelValue ?? {};
217
- o.name = e, n("update:modelValue", o);
216
+ const n = l.modelValue ?? {};
217
+ n.name = e, a("update:modelValue", n);
218
218
  }
219
219
  }), c = V({
220
220
  get() {
221
221
  var e;
222
- return ((e = s.modelValue) == null ? void 0 : e.contains) ?? [];
222
+ return ((e = l.modelValue) == null ? void 0 : e.contains) ?? [];
223
223
  },
224
224
  set(e) {
225
- const o = s.modelValue ?? {};
226
- o.contains = e, n("update:modelValue", o);
225
+ const n = l.modelValue ?? {};
226
+ n.contains = e, a("update:modelValue", n);
227
227
  }
228
228
  });
229
229
  function f() {
230
- n("click:submit");
230
+ a("click:submit");
231
231
  }
232
232
  const m = E();
233
233
  d({
234
234
  validateInputs: () => {
235
- var e, o;
236
- (o = (e = m.value) == null ? void 0 : e.validateInputs) == null || o.call(e);
235
+ var e, n;
236
+ (n = (e = m.value) == null ? void 0 : e.validateInputs) == null || n.call(e);
237
237
  },
238
238
  resetInputsValidation: () => {
239
- var e, o;
240
- (o = (e = m.value) == null ? void 0 : e.resetInputsValidation) == null || o.call(e);
239
+ var e, n;
240
+ (n = (e = m.value) == null ? void 0 : e.resetInputsValidation) == null || n.call(e);
241
241
  },
242
242
  resetInputs: () => {
243
- var e, o;
244
- (o = (e = m.value) == null ? void 0 : e.resetInputs) == null || o.call(e);
243
+ var e, n;
244
+ (n = (e = m.value) == null ? void 0 : e.resetInputs) == null || n.call(e);
245
245
  }
246
246
  });
247
- const t = I(), u = E([]), a = E(!1), h = E(!1);
248
- ie(a, async (e) => {
247
+ const t = I(), u = E([]), s = E(!1), w = E(!1);
248
+ ie(s, async (e) => {
249
249
  C(e);
250
250
  });
251
251
  async function C(e) {
252
- var o, P;
253
- e && !h.value && ((o = s.modelValue) != null && o._id) && (h.value = !0, u.value = await t.getAffectedMenu((P = s.modelValue) == null ? void 0 : P._id), h.value = !1);
252
+ var n, P;
253
+ e && !w.value && ((n = l.modelValue) != null && n._id) && (w.value = !0, u.value = await t.getAffectedMenu((P = l.modelValue) == null ? void 0 : P._id), w.value = !1);
254
254
  }
255
255
  const i = V(
256
256
  () => t.recipes.map((e) => ({ label: e.name, value: e.name }))
257
- ), _ = E((F = s.modelValue) == null ? void 0 : F.name);
258
- return (e, o) => {
257
+ ), g = E((F = l.modelValue) == null ? void 0 : F.name);
258
+ return (e, n) => {
259
259
  const P = k("FmTextField"), D = k("FmCard"), S = k("FmSwitch"), M = k("FmSpacer"), U = k("FmCircularProgress"), B = k("FmForm");
260
260
  return x(), T(B, {
261
261
  ref_key: "formRef",
262
262
  ref: m,
263
263
  onValidationSuccess: f
264
264
  }, {
265
- default: A(() => [
266
- g("div", Ne, [
265
+ default: $(() => [
266
+ _("div", Be, [
267
267
  y(P, {
268
268
  disabled: e.disabled,
269
269
  label: v(r)("inventory.recipe.name"),
270
- "model-value": l.value,
271
- "onUpdate:modelValue": o[0] || (o[0] = (w) => l.value = w),
270
+ "model-value": o.value,
271
+ "onUpdate:modelValue": n[0] || (n[0] = (R) => o.value = R),
272
272
  rules: [
273
273
  v(fe)(),
274
- v(ve)(i.value, _.value, (w) => `[${w.value}] already exists`)
274
+ v(ve)(i.value, g.value, (R) => `[${R.value}] already exists`)
275
275
  ],
276
276
  "label-mark": "required"
277
277
  }, null, 8, ["disabled", "label", "model-value", "rules"]),
@@ -279,40 +279,40 @@ const Ne = { class: "flex flex-col gap-40" }, Ye = {
279
279
  variant: "outlined",
280
280
  class: "p-16"
281
281
  }, {
282
- default: A(() => {
283
- var w;
282
+ default: $(() => {
283
+ var R;
284
284
  return [
285
285
  y(ye, {
286
- id: (w = e.modelValue) == null ? void 0 : w._id,
286
+ id: (R = e.modelValue) == null ? void 0 : R._id,
287
287
  disabled: e.disabled,
288
288
  "model-value": c.value,
289
- "onUpdate:modelValue": o[1] || (o[1] = (L) => c.value = L),
290
- rules: [v(_e)(1)]
289
+ "onUpdate:modelValue": n[1] || (n[1] = (L) => c.value = L),
290
+ rules: [v(ge)(1)]
291
291
  }, null, 8, ["id", "disabled", "model-value", "rules"])
292
292
  ];
293
293
  }),
294
294
  _: 1
295
295
  })
296
296
  ]),
297
- e.mode !== v(R).CREATE ? (x(), $("div", Ye, [
298
- g("div", null, [
297
+ e.mode !== v(h).CREATE ? (x(), A("div", Le, [
298
+ _("div", null, [
299
299
  y(S, {
300
300
  label: "Show binded items",
301
- modelValue: a.value,
302
- "onUpdate:modelValue": o[2] || (o[2] = (w) => a.value = w),
301
+ modelValue: s.value,
302
+ "onUpdate:modelValue": n[2] || (n[2] = (R) => s.value = R),
303
303
  "label-placement": "right",
304
- disabled: h.value
304
+ disabled: w.value
305
305
  }, null, 8, ["modelValue", "disabled"])
306
306
  ]),
307
- h.value ? (x(), $("div", je, [
307
+ w.value ? (x(), A("div", ze, [
308
308
  y(M),
309
- g("div", null, [
309
+ _("div", null, [
310
310
  y(U, { size: "xl" })
311
311
  ]),
312
- He,
312
+ n[3] || (n[3] = _("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading...", -1)),
313
313
  y(M)
314
- ])) : (x(), $("div", qe, [
315
- a.value && u.value.length ? (x(), T(ae, {
314
+ ])) : (x(), A("div", Ne, [
315
+ s.value && u.value.length ? (x(), T(ae, {
316
316
  key: 0,
317
317
  name: "Menu",
318
318
  bindings: u.value
@@ -324,122 +324,122 @@ const Ne = { class: "flex flex-col gap-40" }, Ye = {
324
324
  }, 512);
325
325
  };
326
326
  }
327
- }), Ge = { class: "flex gap-4" }, Je = /* @__PURE__ */ Y({
327
+ }), je = { class: "flex gap-4" }, He = /* @__PURE__ */ Y({
328
328
  __name: "RecipeDialog",
329
329
  props: {
330
330
  show: { type: Boolean },
331
331
  recipe: {},
332
- mode: { default: R.READ }
332
+ mode: { default: h.READ }
333
333
  },
334
334
  emits: ["update:show"],
335
335
  setup(b) {
336
- const d = b, p = I(), s = ne(), { t: n } = j(), r = ee(d, "show"), l = ee(d, "recipe"), c = V(() => {
336
+ const d = b, p = I(), l = oe(), { t: a } = j(), r = ee(d, "show"), o = ee(d, "recipe"), c = V(() => {
337
337
  switch (d.mode) {
338
- case R.READ:
338
+ case h.READ:
339
339
  return "";
340
- case R.UPDATE:
341
- return n("inventory.recipe.update.title");
342
- case R.CREATE:
343
- return n("inventory.recipe.create.title");
340
+ case h.UPDATE:
341
+ return a("inventory.recipe.update.title");
342
+ case h.CREATE:
343
+ return a("inventory.recipe.create.title");
344
344
  }
345
345
  return "";
346
346
  }), f = V(() => {
347
347
  switch (d.mode) {
348
- case R.READ:
348
+ case h.READ:
349
349
  return "";
350
- case R.UPDATE:
351
- return n("common.save");
352
- case R.CREATE:
353
- return n("common.add");
350
+ case h.UPDATE:
351
+ return a("common.save");
352
+ case h.CREATE:
353
+ return a("common.add");
354
354
  }
355
355
  return "";
356
356
  }), m = E(), t = E(!1);
357
357
  async function u() {
358
358
  t.value = !0;
359
359
  try {
360
- const i = G(l.value);
361
- i.precision ?? (i.precision = 0), i.measurements ?? (i.measurements = []), await p.createRecipe(i), r.value = !1, s.open({
362
- title: n("common.success"),
363
- message: n("inventory.recipe.create.success", { name: l.value.name }),
360
+ const i = G(o.value);
361
+ i.precision ?? (i.precision = 0), i.measurements ?? (i.measurements = []), await p.createRecipe(i), r.value = !1, l.open({
362
+ title: a("common.success"),
363
+ message: a("inventory.recipe.create.success", { name: o.value.name }),
364
364
  type: "success"
365
365
  });
366
366
  } catch (i) {
367
- i instanceof Z || s.open({
368
- title: n("inventory.recipe.create.error.title"),
369
- message: n("inventory.recipe.create.error.message"),
367
+ i instanceof Z || l.open({
368
+ title: a("inventory.recipe.create.error.title"),
369
+ message: a("inventory.recipe.create.error.message"),
370
370
  type: "error"
371
371
  });
372
372
  } finally {
373
373
  t.value = !1;
374
374
  }
375
375
  }
376
- async function a() {
376
+ async function s() {
377
377
  t.value = !0;
378
378
  try {
379
- await p.updateRecipe(l.value), r.value = !1, s.open({
380
- title: n("common.success"),
381
- message: n("inventory.recipe.update.success", { name: l.value.name }),
379
+ await p.updateRecipe(o.value), r.value = !1, l.open({
380
+ title: a("common.success"),
381
+ message: a("inventory.recipe.update.success", { name: o.value.name }),
382
382
  type: "success"
383
383
  });
384
384
  } catch (i) {
385
- i instanceof Z || s.open({
386
- title: n("inventory.recipe.update.error.title"),
387
- message: n("inventory.recipe.update.error.message"),
385
+ i instanceof Z || l.open({
386
+ title: a("inventory.recipe.update.error.title"),
387
+ message: a("inventory.recipe.update.error.message"),
388
388
  type: "error"
389
389
  });
390
390
  } finally {
391
391
  t.value = !1;
392
392
  }
393
393
  }
394
- function h() {
395
- var i, _;
396
- (_ = (i = m.value) == null ? void 0 : i.validateInputs) == null || _.call(i);
394
+ function w() {
395
+ var i, g;
396
+ (g = (i = m.value) == null ? void 0 : i.validateInputs) == null || g.call(i);
397
397
  }
398
398
  function C() {
399
399
  switch (d.mode) {
400
- case R.READ:
400
+ case h.READ:
401
401
  return;
402
- case R.UPDATE:
403
- return a();
404
- case R.CREATE:
402
+ case h.UPDATE:
403
+ return s();
404
+ case h.CREATE:
405
405
  return u();
406
406
  }
407
407
  }
408
- return (i, _) => {
408
+ return (i, g) => {
409
409
  const F = k("FmButton"), e = k("FmSideSheet");
410
410
  return x(), T(e, {
411
411
  "model-value": v(r),
412
- "onUpdate:modelValue": _[3] || (_[3] = (o) => X(r) ? r.value = o : null),
412
+ "onUpdate:modelValue": g[3] || (g[3] = (n) => X(r) ? r.value = n : null),
413
413
  header: c.value,
414
414
  "close-button": "",
415
415
  "dismiss-away": "",
416
416
  "max-width": 500
417
417
  }, {
418
- "side-sheet-footer": A(() => [
419
- g("div", Ge, [
418
+ "side-sheet-footer": $(() => [
419
+ _("div", je, [
420
420
  y(F, {
421
421
  loading: t.value,
422
422
  label: f.value,
423
- onClick: h
423
+ onClick: w
424
424
  }, null, 8, ["loading", "label"]),
425
425
  y(F, {
426
426
  disabled: t.value,
427
- label: v(n)("common.close"),
427
+ label: v(a)("common.close"),
428
428
  variant: "tertiary",
429
- onClick: _[2] || (_[2] = (o) => r.value = !1)
429
+ onClick: g[2] || (g[2] = (n) => r.value = !1)
430
430
  }, null, 8, ["disabled", "label"])
431
431
  ])
432
432
  ]),
433
- default: A(() => [
434
- y(Ke, {
433
+ default: $(() => [
434
+ y(Ye, {
435
435
  class: "w-full",
436
436
  ref_key: "hasValidationExpose",
437
437
  ref: m,
438
- modelValue: v(l),
439
- "onUpdate:modelValue": _[0] || (_[0] = (o) => X(l) ? l.value = o : null),
438
+ modelValue: v(o),
439
+ "onUpdate:modelValue": g[0] || (g[0] = (n) => X(o) ? o.value = n : null),
440
440
  mode: i.mode,
441
441
  disabled: t.value,
442
- "onClick:submit": _[1] || (_[1] = (o) => C())
442
+ "onClick:submit": g[1] || (g[1] = (n) => C())
443
443
  }, null, 8, ["modelValue", "mode", "disabled"])
444
444
  ]),
445
445
  _: 1
@@ -447,36 +447,36 @@ const Ne = { class: "flex flex-col gap-40" }, Ye = {
447
447
  };
448
448
  }
449
449
  });
450
- function Oe() {
451
- const b = I(), d = b.recipes, p = b.recipeById, s = b.skuById, n = d.flatMap((c, f) => {
450
+ function qe() {
451
+ const b = I(), d = b.recipes, p = b.recipeById, l = b.skuById, a = d.flatMap((c, f) => {
452
452
  var m;
453
453
  if ((m = c.contains) != null && m.length) {
454
- const t = c.contains.filter((a) => a.type === "RECIPE"), u = c.contains.filter((a) => a.type === "SKU");
454
+ const t = c.contains.filter((s) => s.type === "RECIPE"), u = c.contains.filter((s) => s.type === "SKU");
455
455
  return [
456
456
  ...f === 0 ? [] : [["", "", "", "", "", ""]],
457
457
  ...t.map(
458
- (a, h) => {
458
+ (s, w) => {
459
459
  var C;
460
460
  return [
461
- h === 0 ? c.name : "",
461
+ w === 0 ? c.name : "",
462
462
  "RECIPE",
463
463
  "",
464
- (C = p[a.id]) == null ? void 0 : C.name,
465
- q(a.amount),
464
+ (C = p[s.id]) == null ? void 0 : C.name,
465
+ q(s.amount),
466
466
  "UNIT"
467
467
  ];
468
468
  }
469
469
  ),
470
470
  ...u.map(
471
- (a, h) => {
472
- var C, i, _, F;
471
+ (s, w) => {
472
+ var C, i, g, F;
473
473
  return [
474
- !t.length && h === 0 ? c.name : "",
474
+ !t.length && w === 0 ? c.name : "",
475
475
  "INGREDIENT",
476
- (C = s[a.id]) == null ? void 0 : C.code,
477
- (i = s[a.id]) == null ? void 0 : i.name,
478
- q(a.amount),
479
- a.measurement ? a.measurement.abbrev : (F = (_ = s[a.id]) == null ? void 0 : _.unit) == null ? void 0 : F.abbrev
476
+ (C = l[s.id]) == null ? void 0 : C.code,
477
+ (i = l[s.id]) == null ? void 0 : i.name,
478
+ q(s.amount),
479
+ s.measurement ? s.measurement.abbrev : (F = (g = l[s.id]) == null ? void 0 : g.unit) == null ? void 0 : F.abbrev
480
480
  ];
481
481
  }
482
482
  )
@@ -486,20 +486,20 @@ function Oe() {
486
486
  ...f === 0 ? [] : [["", "", "", "", "", ""]],
487
487
  [c.name, "No bindings", "", "", "", ""]
488
488
  ];
489
- }), l = Ce(n, ["Name", "Type", "Code", "Item", "Amount", "Unit"]);
490
- Ee(l, `RECIPE_${ge(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
489
+ }), o = Ce(a, ["Name", "Type", "Code", "Item", "Amount", "Unit"]);
490
+ Ee(o, `RECIPE_${_e(/* @__PURE__ */ new Date(), "-", "-")}.xlsx`);
491
491
  }
492
- const Qe = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, We = { class: "flex flex-col py-8" }, Xe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ut = /* @__PURE__ */ Y({
492
+ const Ke = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ge = { class: "flex flex-col py-8" }, Je = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, lt = /* @__PURE__ */ Y({
493
493
  __name: "RecipeView",
494
494
  setup(b) {
495
- const d = I(), p = V(() => d.recipes), s = be(), { createRecipe: n, updateRecipe: r } = K(), { recipeDialogProps: l, recipeViewLoading: c } = ke(K()), { columnDefs: f, formatRowData: m } = ze(), t = V(() => m(p.value));
495
+ const d = I(), p = V(() => d.recipes), l = be(), { createRecipe: a, updateRecipe: r } = K(), { recipeDialogProps: o, recipeViewLoading: c } = ke(K()), { columnDefs: f, formatRowData: m } = Ue(), t = V(() => m(p.value));
496
496
  function u(e) {
497
- e === "add" && n();
497
+ e === "add" && a();
498
498
  }
499
- const a = E(""), h = V(() => c.value), { breakpoints: C } = we(), i = V(() => C.value.xs || C.value.sm ? 10 : 20), _ = De(), { t: F } = j();
500
- return (e, o) => {
499
+ const s = E(""), w = V(() => c.value), { breakpoints: C } = Re(), i = V(() => C.value.xs || C.value.sm ? 10 : 20), g = De(), { t: F } = j();
500
+ return (e, n) => {
501
501
  const P = k("FmTable");
502
- return x(), T($e, {
502
+ return x(), T(Ae, {
503
503
  title: v(F)("inventory.recipe.title"),
504
504
  actions: [
505
505
  {
@@ -511,41 +511,41 @@ const Qe = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, We =
511
511
  ],
512
512
  "onClick:action": u
513
513
  }, {
514
- default: A(() => [
515
- g("div", Qe, [
516
- y(Ae, {
514
+ default: $(() => [
515
+ _("div", Ke, [
516
+ y($e, {
517
517
  searchable: "",
518
- search: a.value,
519
- "onUpdate:search": o[0] || (o[0] = (D) => a.value = D),
520
- actions: [{ icon: "ios_share", onClick: v(Oe) }]
518
+ search: s.value,
519
+ "onUpdate:search": n[0] || (n[0] = (D) => s.value = D),
520
+ actions: [{ icon: "ios_share", onClick: v(qe) }]
521
521
  }, null, 8, ["search", "actions"]),
522
522
  (x(), T(P, {
523
- style: ce(v(_).tableHeight),
523
+ style: ce(v(g).tableHeight),
524
524
  "column-defs": v(f),
525
525
  "row-data": t.value,
526
- "search-value": a.value,
527
- loading: !v(s)._currentLocation || h.value,
528
- onRowClick: o[1] || (o[1] = (D) => v(r)(D.original.original)),
526
+ "search-value": s.value,
527
+ loading: !v(l)._currentLocation || w.value,
528
+ onRowClick: n[1] || (n[1] = (D) => v(r)(D.original.original)),
529
529
  key: p.value.length,
530
530
  "page-size": i.value
531
531
  }, {
532
- "list-row": A((D) => [
532
+ "list-row": $((D) => [
533
533
  y(Se, {
534
534
  row: D,
535
535
  onRowClick: (S) => v(r)(S.original)
536
536
  }, {
537
- default: A((S) => {
538
- var M, U, B, w, L, J, O, Q, z, W;
537
+ default: $((S) => {
538
+ var M, U, B, R, L, J, O, Q, z, W;
539
539
  return [
540
- g("div", We, [
541
- g("div", Xe, [
542
- y(v(oe), {
540
+ _("div", Ge, [
541
+ _("div", Je, [
542
+ y(v(ne), {
543
543
  render: (B = (U = (M = S.recipe) == null ? void 0 : M.column) == null ? void 0 : U.columnDef) == null ? void 0 : B.cell,
544
- props: (L = (w = S.recipe) == null ? void 0 : w.getContext) == null ? void 0 : L.call(w)
544
+ props: (L = (R = S.recipe) == null ? void 0 : R.getContext) == null ? void 0 : L.call(R)
545
545
  }, null, 8, ["render", "props"])
546
546
  ]),
547
- g("div", Ze, [
548
- y(v(oe), {
547
+ _("div", Oe, [
548
+ y(v(ne), {
549
549
  render: (Q = (O = (J = S.ingredients) == null ? void 0 : J.column) == null ? void 0 : O.columnDef) == null ? void 0 : Q.cell,
550
550
  props: (W = (z = S.ingredients) == null ? void 0 : z.getContext) == null ? void 0 : W.call(z)
551
551
  }, null, 8, ["render", "props"])
@@ -560,7 +560,7 @@ const Qe = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, We =
560
560
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
561
561
  ]),
562
562
  (x(), T(ue, { to: "body" }, [
563
- y(Je, de(me(v(l))), null, 16)
563
+ y(He, de(me(v(o))), null, 16)
564
564
  ]))
565
565
  ]),
566
566
  _: 1
@@ -569,5 +569,5 @@ const Qe = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, We =
569
569
  }
570
570
  });
571
571
  export {
572
- ut as default
572
+ lt as default
573
573
  };