@feedmepos/mf-inventory-portal 1.5.11-dev.2 → 1.5.11-dev.3

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 (82) hide show
  1. package/dist/{App-CquCiNsy.js → App-t6gPmao7.js} +4 -4
  2. package/dist/{ApprovalView-CU-k06kj.js → ApprovalView-D4Wqhsua.js} +7 -7
  3. package/dist/{BindingsDialog-BPBKfeS6.js → BindingsDialog-BgJ1tEto.js} +2 -2
  4. package/dist/{BindingsPicker-DkBI7_0Y.js → BindingsPicker-Dc2IFjLi.js} +2 -2
  5. package/dist/{BindingsTable-C22g1gV7.js → BindingsTable-CfYp1p03.js} +3 -3
  6. package/dist/{ClosingDraftView-DgHvcVne.js → ClosingDraftView-Sc2BxLZ5.js} +15 -15
  7. package/dist/{ClosingHistoryView-Cjm39o7e.js → ClosingHistoryView-D8l29kr9.js} +5 -5
  8. package/dist/{ClosingTemplateView-BfO_HZS-.js → ClosingTemplateView-DrzWU7be.js} +14 -14
  9. package/dist/{DefaultView-Jl_IdT_Z.js → DefaultView-Do4Gc3-x.js} +2 -2
  10. package/dist/{DeliveryOrderPrintPreview-CaWTHT6h.js → DeliveryOrderPrintPreview-Cp0TLV28.js} +2 -2
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXmbD4jZ.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BJA5wTiE.js} +2 -2
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DWm36ZgX.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D_1_ijOK.js} +2 -2
  13. package/dist/{FmMultiselectDialog-CEsqNTCq.js → FmMultiselectDialog-BOSgMmVe.js} +2 -2
  14. package/dist/{FmMultiselectDialog-D4gqa0tb.js → FmMultiselectDialog-DPvFk4GL.js} +1 -1
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-4NtlySGX.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Ex8cHZaI.js} +5 -5
  16. package/dist/{ImportView-GTiAyijj.js → ImportView-DWK0W15d.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BHRq2v-2.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BFu71gqD.js} +1 -1
  18. package/dist/{IngredientGroupView-Kk002hXi.js → IngredientGroupView-Cn6gzOBy.js} +5 -5
  19. package/dist/{IngredientsView-8Dojrj1e.js → IngredientsView-D32kZ7d3.js} +15 -15
  20. package/dist/{IntegrationExplorerView-BVBqUc3k.js → IntegrationExplorerView-D2qnrmy6.js} +5 -5
  21. package/dist/{IntegrationView-eS-LnDeu.js → IntegrationView-C28JHFG3.js} +13 -13
  22. package/dist/{InventoryBindingForm-DitsFH4v.js → InventoryBindingForm-DoxN1NxS.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DncMbF6J.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BvdmF6fv.js} +145 -133
  24. package/dist/{InventoryBindingSummary-DIKZ_7lC.js → InventoryBindingSummary-Cdx5Jab9.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DJV_hhgt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-3nIQi_k-.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Pjde4sd6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DaRgO7fj.js} +1 -1
  27. package/dist/{PublishView-CTwkJWJj.js → PublishView-DzI-UU85.js} +3 -3
  28. package/dist/{PurchaseOrderPrintPreview-BuP85XCw.js → PurchaseOrderPrintPreview-CwNlIMsu.js} +2 -2
  29. package/dist/{ReceiveRequestView-CfWhi-qh.js → ReceiveRequestView-D6tSWtrn.js} +26 -26
  30. package/dist/{RecipeView-CaNmJwqf.js → RecipeView-BDgAMk-z.js} +676 -664
  31. package/dist/{SettingsView-DiMxunWj.js → SettingsView-Hf60Y0J0.js} +4 -4
  32. package/dist/{StockView-CWDb29Cp.js → StockView-1B-2Vf1V.js} +19 -19
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-0MNUfMmq.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Ba_wQ5Ju.js} +1 -1
  34. package/dist/{SupplierView-CLB-ASht.js → SupplierView-fHcYDGFM.js} +12 -12
  35. package/dist/{SurchargeView-C2clhhAW.js → SurchargeView-DkL78h98.js} +6 -6
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DF-LJ-3w.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-C6YVS0bk.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Ga9lkrf8.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-gO_Wtu02.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-R1t4S-6H.js → TransferDetails.vue_vue_type_script_setup_true_lang-BHKrq-iQ.js} +20 -20
  39. package/dist/{TransferTemplateView-7lXzFWv2.js → TransferTemplateView-BhGR0SDH.js} +18 -18
  40. package/dist/{UnitCostHistoryView-CZg_dxvk.js → UnitCostHistoryView-CPIJwYgP.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BB3dV6Gh.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DzseV5bD.js} +5 -5
  42. package/dist/{UnitView-BnZ_3MwD.js → UnitView-D8CvRusr.js} +7 -7
  43. package/dist/{WarehouseView-D7j9qMqP.js → WarehouseView-CGOjzNX2.js} +5 -5
  44. package/dist/{WastageTemplateView-Cl_9lPqx.js → WastageTemplateView-wJFwncFJ.js} +14 -14
  45. package/dist/{app-DMMqtQts.js → app-BW79dfel.js} +15 -15
  46. package/dist/app.js +1 -1
  47. package/dist/{closing-template-CiSNSKyE.js → closing-template-BrVS-MpK.js} +1 -1
  48. package/dist/{date2-Db-IPmri.js → date2-ClhppfDY.js} +1 -1
  49. package/dist/{dayjs.min-DD2BO69F.js → dayjs.min-DTgFIQkI.js} +1 -1
  50. package/dist/{decimal-Ds6h3ukt.js → decimal-ClPxw7qT.js} +2 -2
  51. package/dist/{defineDeepModel-BgonxmUi.js → defineDeepModel-Dmr5ASnP.js} +1 -1
  52. package/dist/{duplicate-template-L6x61phF.js → duplicate-template-BnJAqy44.js} +1 -1
  53. package/dist/{feature-C0UUWbkT.js → feature-BAZ0m6J0.js} +2 -2
  54. package/dist/{format-time-from-id-lrFC2RMu.js → format-time-from-id-CKgj656W.js} +1 -1
  55. package/dist/{format-unit-display-CpwFmpcL.js → format-unit-display-Lbm7q5cC.js} +11 -11
  56. package/dist/{import-export.helper-BtXLvHMF.js → import-export.helper-BRHo1Hi8.js} +6 -6
  57. package/dist/{index-mtJ1GhRU.js → index-B5QDO_WU.js} +1 -1
  58. package/dist/{index-Cej2xM-2.js → index-C4Qke4jw.js} +1 -1
  59. package/dist/{index-CxALGEZr.js → index-C8iWZSA_.js} +3 -3
  60. package/dist/{inventory-core-dart.default-CroeeGeI.js → inventory-core-dart.default-D7w9ZZFQ.js} +1 -1
  61. package/dist/{lz-string-TL3mT9nT.js → lz-string-DLIa3ELl.js} +1 -1
  62. package/dist/{netsuite-DOpNemik.js → netsuite-DC4pocTl.js} +2 -2
  63. package/dist/{number-DlYhqTV5.js → number-T0uPxOq3.js} +3 -3
  64. package/dist/{predefined-templates-DDpVS07Q.js → predefined-templates-Dkk6anWi.js} +1 -1
  65. package/dist/{purchase-order-template-K6HvK5h0.js → purchase-order-template-DWf8ItXq.js} +1 -1
  66. package/dist/{recalculationUtils-BHomSQPu.js → recalculationUtils-BAYpPYM2.js} +1 -1
  67. package/dist/{rules-r7ubhhR0.js → rules-wxLo26xP.js} +2 -2
  68. package/dist/{stock-BcLy5Ilr.js → stock-Ck-zidTo.js} +1 -1
  69. package/dist/{supplier-rNHLA7rt.js → supplier-jOv7SNpw.js} +2 -2
  70. package/dist/{surcharge-B5N4UzQl.js → surcharge-ujbP636S.js} +1 -1
  71. package/dist/{uom-rules-B51fYVj3.js → uom-rules-mz2HXBL-.js} +1 -1
  72. package/dist/{use-ingredient-select-dialog-C7NY9Kj6.js → use-ingredient-select-dialog-BusXVXZW.js} +2 -2
  73. package/dist/{use-inventory-binding-dialog-Ca4VaXkz.js → use-inventory-binding-dialog-DCRvIaOC.js} +2 -2
  74. package/dist/{use-template-enabled-locations-RiR-qhSs.js → use-template-enabled-locations-DEzvQah6.js} +2 -2
  75. package/dist/{use-transfer-locations-csQ1Ar0m.js → use-transfer-locations-ku-9ZBUn.js} +2 -2
  76. package/dist/{useHrmPermission-DHcinOeI.js → useHrmPermission-CEtD6BoY.js} +1 -1
  77. package/dist/{useNavigationMenu-u8V59Vtc.js → useNavigationMenu-BTYlf6zF.js} +2 -2
  78. package/dist/{useSseClient-UQLgDoDc.js → useSseClient-UFc2h6Hw.js} +3 -3
  79. package/dist/{vue-i18n-CD-rDdDv.js → vue-i18n-B4kzuMPA.js} +206 -206
  80. package/dist/{xlsx-BRq0kYfc.js → xlsx-lV47NWo8.js} +398 -398
  81. package/dist/{xlsx.util-ylgVcZid.js → xlsx.util-KjOwaQ_K.js} +3 -3
  82. package/package.json +4 -4
@@ -1,20 +1,20 @@
1
- import { defineComponent as oe, computed as x, reactive as te, resolveComponent as k, openBlock as r, createElementBlock as p, createVNode as m, withCtx as I, createElementVNode as n, toDisplayString as c, unref as i, createBlock as w, createCommentVNode as v, Fragment as F, renderList as G, nextTick as le } from "vue";
2
- import { a as ie, t as se, v as re, F as de } from "./app-DMMqtQts.js";
3
- import { a as h, c as ae } from "./number-DlYhqTV5.js";
4
- import { u as ue } from "./use-inventory-binding-dialog-Ca4VaXkz.js";
5
- import { b as z, c as A } from "./rules-r7ubhhR0.js";
6
- import { _ as me, c as ce, d as pe } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-4NtlySGX.js";
1
+ import { defineComponent as oe, computed as x, reactive as te, resolveComponent as B, openBlock as d, createElementBlock as c, createVNode as u, withCtx as I, createElementVNode as n, toDisplayString as p, unref as i, createBlock as w, createCommentVNode as v, Fragment as U, renderList as G, nextTick as le } from "vue";
2
+ import { a as ie, t as se, v as de, F as re } from "./app-BW79dfel.js";
3
+ import { a as h, c as ae } from "./number-T0uPxOq3.js";
4
+ import { u as ue } from "./use-inventory-binding-dialog-DCRvIaOC.js";
5
+ import { b as $, c as A } from "./rules-wxLo26xP.js";
6
+ import { _ as me, c as ce, d as pe } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Ex8cHZaI.js";
7
7
  import { useI18n as ye } from "@feedmepos/mf-common";
8
- const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-16" }, _e = { class: "flex items-center" }, be = { class: "flex-1 fm-typo-en-title-sm-600" }, xe = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, he = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ve = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, Be = {
8
+ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-16" }, be = { class: "flex items-center" }, _e = { class: "flex-1 fm-typo-en-title-sm-600" }, xe = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, he = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ve = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, ke = {
9
9
  class: "flex items-center",
10
10
  style: { "min-height": "48px" }
11
- }, ke = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ie = { class: "flex flex-col" }, we = { class: "line-clamp-1" }, Fe = { class: "w-[200px]" }, Ue = {
11
+ }, Be = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ie = { class: "flex flex-col" }, we = { class: "line-clamp-1" }, Fe = { class: "w-[200px]" }, Ue = {
12
12
  key: 0,
13
13
  class: "w-[52px]"
14
- }, Ee = {
14
+ }, Ce = {
15
15
  key: 0,
16
16
  class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-8"
17
- }, Ce = {
17
+ }, Ee = {
18
18
  key: 0,
19
19
  class: "flex flex-col gap-16"
20
20
  }, Ge = { class: "flex items-center" }, Ae = { class: "flex-1 fm-typo-en-title-sm-600" }, Re = { class: "flex flex-col" }, Se = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Pe = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Te = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, Me = {
@@ -23,7 +23,7 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
23
23
  }, Ne = {
24
24
  class: "flex items-center",
25
25
  style: { "min-height": "48px" }
26
- }, ze = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, De = { class: "flex flex-col" }, Ke = { class: "w-[200px]" }, $e = {
26
+ }, $e = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, ze = { class: "flex flex-col" }, De = { class: "w-[200px]" }, Ke = {
27
27
  key: 0,
28
28
  class: "w-[52px]"
29
29
  }, je = { class: "flex flex-col gap-16" }, Le = { class: "flex items-center" }, Oe = { class: "flex-1 fm-typo-en-title-sm-600" }, Ye = { class: "flex flex-col" }, We = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, qe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, He = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Je = {
@@ -32,16 +32,19 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
32
32
  }, Qe = {
33
33
  class: "flex items-center w-full",
34
34
  style: { "min-height": "48px" }
35
- }, Xe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12 text-fm-color-typo-secondary line-clamp-1" }, Ze = { class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-12 pb-4" }, en = {
35
+ }, Xe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12 text-fm-color-typo-secondary line-clamp-1" }, Ze = {
36
+ key: 0,
37
+ class: "w-[52px]"
38
+ }, en = { class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-12 pb-4" }, nn = {
36
39
  key: 1,
37
40
  class: "flex flex-col border-b border-fm-color-neutral-gray-100"
38
- }, nn = {
41
+ }, on = {
39
42
  class: "flex items-center w-full",
40
43
  style: { "min-height": "48px" }
41
- }, on = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, tn = { class: "line-clamp-1 w-full" }, ln = { class: "w-[150px]" }, sn = {
44
+ }, tn = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, ln = { class: "line-clamp-1 w-full" }, sn = { class: "w-[150px]" }, dn = {
42
45
  key: 0,
43
46
  class: "w-[52px]"
44
- }, rn = { class: "flex flex-col px-12 pb-4" }, fn = /* @__PURE__ */ oe({
47
+ }, rn = { class: "flex flex-col px-12 pb-4" }, vn = /* @__PURE__ */ oe({
45
48
  __name: "InventoryBindingForm",
46
49
  props: {
47
50
  id: {},
@@ -54,22 +57,22 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
54
57
  enableIngredientGroup: { type: Boolean }
55
58
  },
56
59
  emits: ["update:modelValue", "click:pick-inventory-bindings"],
57
- setup(D, { emit: K }) {
58
- const { t: u } = ye(), g = ie(), R = x(() => g.recipeById), V = x(() => g.skuById), $ = x(() => g.skuGroupById), s = D, _ = K, S = x(() => se({
60
+ setup(z, { emit: D }) {
61
+ const { t: m } = ye(), g = ie(), R = x(() => g.recipeById), V = x(() => g.skuById), K = x(() => g.skuGroupById), s = z, b = D, S = x(() => se({
59
62
  parentId: s.id,
60
63
  bindings: s.modelValue,
61
- recipes: g.recipes.map((o) => o._id === s.id ? {
62
- ...o,
64
+ recipes: g.recipes.map((t) => t._id === s.id ? {
65
+ ...t,
63
66
  contains: s.modelValue
64
- } : o),
65
- skus: g.skus.map((o) => o._id === s.id ? {
66
- ...o,
67
+ } : t),
68
+ skus: g.skus.map((t) => t._id === s.id ? {
69
+ ...t,
67
70
  convert: {
68
71
  inventoryBindings: s.modelValue
69
72
  }
70
- } : o),
73
+ } : t),
71
74
  skuGroups: g.skuGroups
72
- }).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === re.enum.circularDependency)), U = x(
75
+ }).inventoryBindings.filter((t) => "error" in t && t.error).map((t) => t).filter((t) => t.reason === de.enum.circularDependency)), C = x(
73
76
  () => new Set(S.value.map((e) => {
74
77
  var l;
75
78
  return (l = e.bindingPaths[0]) == null ? void 0 : l.id;
@@ -77,12 +80,12 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
77
80
  ), j = x(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: L, promptRecipesBinding: O, promptIngredientGroupsBinding: Y } = ue();
78
81
  async function W() {
79
82
  if (s.iframeMode) {
80
- _("click:pick-inventory-bindings", "RECIPE");
83
+ b("click:pick-inventory-bindings", "RECIPE");
81
84
  return;
82
85
  }
83
86
  O(
84
87
  s.modelValue,
85
- (e) => _("update:modelValue", e),
88
+ (e) => b("update:modelValue", e),
86
89
  s.id ? [s.id] : []
87
90
  );
88
91
  }
@@ -90,37 +93,37 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
90
93
  async function H() {
91
94
  Y(
92
95
  s.modelValue,
93
- (e) => _("update:modelValue", e),
96
+ (e) => b("update:modelValue", e),
94
97
  s.id ? [s.id] : []
95
98
  );
96
99
  }
97
100
  const P = x(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
98
101
  async function J() {
99
102
  if (s.iframeMode) {
100
- _("click:pick-inventory-bindings", "SKU");
103
+ b("click:pick-inventory-bindings", "SKU");
101
104
  return;
102
105
  }
103
106
  L(
104
107
  s.modelValue,
105
- (e) => _("update:modelValue", e),
108
+ (e) => b("update:modelValue", e),
106
109
  s.excludeBindingId,
107
110
  s.id ? [s.id] : []
108
111
  );
109
112
  }
110
- function T(e, l, o) {
113
+ function T(e, l, t) {
111
114
  const a = +l;
112
- let f = o;
113
- l.length > 0 && isFinite(a) ? f = o.map((y) => (y.id !== e || (y.amount = ae(a)), y)) : f = o.map((y) => (y.id !== e || (y.amount = { amount: 0, precision: 0 }), y)), _("update:modelValue", f);
115
+ let f = t;
116
+ l.length > 0 && isFinite(a) ? f = t.map((y) => (y.id !== e || (y.amount = ae(a)), y)) : f = t.map((y) => (y.id !== e || (y.amount = { amount: 0, precision: 0 }), y)), b("update:modelValue", f);
114
117
  }
115
- function E(e, l) {
116
- const o = l.filter((a) => a.id !== e);
117
- _("update:modelValue", o);
118
+ function F(e, l) {
119
+ const t = l.filter((a) => a.id !== e);
120
+ b("update:modelValue", t);
118
121
  }
119
122
  function M(e) {
120
- var o, a;
121
- if (e.type !== de.enum.SKU)
123
+ var t, a;
124
+ if (e.type !== re.enum.SKU)
122
125
  throw new Error("Non-SKU binding does not have unit");
123
- if (!((o = V.value[e.id]) == null ? void 0 : o.unit))
126
+ if (!((t = V.value[e.id]) == null ? void 0 : t.unit))
124
127
  throw new Error(`Cannot find ingredient: ${e.id}`);
125
128
  return (a = V.value[e.id]) == null ? void 0 : a.unit;
126
129
  }
@@ -130,13 +133,13 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
130
133
  function X(e) {
131
134
  return { amount: e.amount, measurement: e.measurement };
132
135
  }
133
- function Z(e, l, o) {
134
- const a = o.map((f) => f.id !== e ? f : {
136
+ function Z(e, l, t) {
137
+ const a = t.map((f) => f.id !== e ? f : {
135
138
  ...f,
136
139
  amount: l.amount,
137
140
  measurement: l.measurement
138
141
  });
139
- _("update:modelValue", a);
142
+ b("update:modelValue", a);
140
143
  }
141
144
  const N = te({});
142
145
  function ee(e) {
@@ -160,9 +163,9 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
160
163
  });
161
164
  }
162
165
  return (e, l) => {
163
- const o = k("FmFormGroup"), a = k("FmButton"), f = k("FmTooltip"), y = k("FmTextField"), C = k("FmIcon");
164
- return r(), p("div", fe, [
165
- m(o, {
166
+ const t = B("FmFormGroup"), a = B("FmButton"), f = B("FmTooltip"), y = B("FmTextField"), E = B("FmIcon");
167
+ return d(), c("div", fe, [
168
+ u(t, {
166
169
  disabled: e.disabled,
167
170
  "model-value": e.modelValue,
168
171
  rules: [
@@ -176,47 +179,47 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
176
179
  _: 1
177
180
  }, 8, ["disabled", "model-value", "rules"]),
178
181
  n("div", ve, [
179
- n("div", _e, [
180
- n("div", be, c(i(u)("inventory.inventoryBindings.recipe")), 1),
181
- e.readonly ? v("", !0) : (r(), w(a, {
182
+ n("div", be, [
183
+ n("div", _e, p(i(m)("inventory.inventoryBindings.recipe")), 1),
184
+ e.readonly ? v("", !0) : (d(), w(a, {
182
185
  key: 0,
183
186
  variant: "secondary",
184
187
  "text-color": "primary",
185
188
  "border-color": "primary",
186
- label: i(u)("inventory.inventoryBindings.linkRecipe"),
189
+ label: i(m)("inventory.inventoryBindings.linkRecipe"),
187
190
  "prepend-icon": "link",
188
191
  onClick: W
189
192
  }, null, 8, ["label"]))
190
193
  ]),
191
194
  n("div", xe, [
192
195
  n("div", ge, [
193
- n("div", he, c(i(u)("inventory.inventoryBindings.recipe")), 1),
196
+ n("div", he, p(i(m)("inventory.inventoryBindings.recipe")), 1),
194
197
  l[1] || (l[1] = n("div", { class: "w-[200px]" }, null, -1)),
195
198
  l[2] || (l[2] = n("div", { class: "w-[52px]" }, null, -1))
196
199
  ]),
197
- (r(!0), p(F, null, G(j.value, (t) => (r(), w(o, {
198
- key: t.id,
200
+ (d(!0), c(U, null, G(j.value, (o) => (d(), w(t, {
201
+ key: o.id,
199
202
  disabled: e.disabled,
200
- modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
201
- rules: [i(z)(0), i(A)(-1)]
203
+ modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
204
+ rules: [i($)(0), i(A)(-1)]
202
205
  }, {
203
- default: I(({ invalid: B }) => {
204
- var b;
206
+ default: I(({ invalid: k }) => {
207
+ var _;
205
208
  return [
206
209
  n("div", Ve, [
207
- n("div", Be, [
208
- n("div", ke, [
210
+ n("div", ke, [
211
+ n("div", Be, [
209
212
  n("div", Ie, [
210
- m(f, {
213
+ u(f, {
211
214
  zIndex: 51,
212
215
  variant: "plain",
213
216
  placement: "top",
214
- content: (b = R.value[t.id]) == null ? void 0 : b.name
217
+ content: (_ = R.value[o.id]) == null ? void 0 : _.name
215
218
  }, {
216
219
  default: I(() => {
217
- var d;
220
+ var r;
218
221
  return [
219
- n("span", we, c((d = R.value[t.id]) == null ? void 0 : d.name), 1)
222
+ n("span", we, p((r = R.value[o.id]) == null ? void 0 : r.name), 1)
220
223
  ];
221
224
  }),
222
225
  _: 2
@@ -224,32 +227,32 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
224
227
  ])
225
228
  ]),
226
229
  n("div", Fe, [
227
- m(y, {
230
+ u(y, {
228
231
  class: "w-full",
229
232
  disabled: e.disabled,
230
- modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
231
- "onUpdate:modelValue": (d) => T(t.id, d, e.modelValue),
232
- invalid: B
233
+ modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
234
+ "onUpdate:modelValue": (r) => T(o.id, r, e.modelValue),
235
+ invalid: k
233
236
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
234
237
  ]),
235
- e.readonly ? v("", !0) : (r(), p("div", Ue, [
236
- m(a, {
238
+ e.readonly ? v("", !0) : (d(), c("div", Ue, [
239
+ u(a, {
237
240
  disabled: e.disabled,
238
241
  type: "button",
239
242
  variant: "plain",
240
243
  icon: "delete",
241
244
  "icon-color": "#000000",
242
- onClick: (d) => E(t.id, e.modelValue)
245
+ onClick: (r) => F(o.id, e.modelValue)
243
246
  }, null, 8, ["disabled", "onClick"])
244
247
  ]))
245
248
  ]),
246
- U.value.has(t.id) ? (r(), p("div", Ee, [
247
- m(C, {
249
+ C.value.has(o.id) ? (d(), c("div", Ce, [
250
+ u(E, {
248
251
  name: "error",
249
252
  color: "system-error-300",
250
253
  size: "sm"
251
254
  }),
252
- n("div", null, c(i(u)("inventory.inventoryBindings.circularError")), 1)
255
+ n("div", null, p(i(m)("inventory.inventoryBindings.circularError")), 1)
253
256
  ])) : v("", !0)
254
257
  ])
255
258
  ];
@@ -258,64 +261,64 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
258
261
  }, 1032, ["disabled", "modelValue", "rules"]))), 128))
259
262
  ])
260
263
  ]),
261
- e.enableIngredientGroup ? (r(), p("div", Ce, [
264
+ e.enableIngredientGroup ? (d(), c("div", Ee, [
262
265
  n("div", Ge, [
263
- n("div", Ae, c(i(u)("inventory.inventoryBindings.ingredientGroup")), 1),
264
- e.readonly ? v("", !0) : (r(), w(a, {
266
+ n("div", Ae, p(i(m)("inventory.inventoryBindings.ingredientGroup")), 1),
267
+ e.readonly ? v("", !0) : (d(), w(a, {
265
268
  key: 0,
266
269
  variant: "secondary",
267
270
  "text-color": "primary",
268
271
  "border-color": "primary",
269
- label: i(u)("inventory.inventoryBindings.linkIngredientGroup"),
272
+ label: i(m)("inventory.inventoryBindings.linkIngredientGroup"),
270
273
  "prepend-icon": "link",
271
274
  onClick: H
272
275
  }, null, 8, ["label"]))
273
276
  ]),
274
277
  n("div", Re, [
275
278
  n("div", Se, [
276
- n("div", Pe, c(i(u)("inventory.inventoryBindings.ingredientGroup")), 1),
279
+ n("div", Pe, p(i(m)("inventory.inventoryBindings.ingredientGroup")), 1),
277
280
  l[3] || (l[3] = n("div", { class: "w-[200px]" }, null, -1)),
278
281
  l[4] || (l[4] = n("div", { class: "w-[52px]" }, null, -1))
279
282
  ]),
280
- (r(!0), p(F, null, G(q.value, (t) => (r(), w(o, {
281
- key: t.id,
283
+ (d(!0), c(U, null, G(q.value, (o) => (d(), w(t, {
284
+ key: o.id,
282
285
  disabled: e.disabled,
283
- modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
284
- rules: [i(z)(0), i(A)(0)]
286
+ modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
287
+ rules: [i($)(0), i(A)(0)]
285
288
  }, {
286
- default: I(({ invalid: B }) => {
287
- var b;
289
+ default: I(({ invalid: k }) => {
290
+ var _;
288
291
  return [
289
292
  n("div", Te, [
290
- U.value.has(t.id) ? (r(), p("div", Me, [
291
- m(C, {
293
+ C.value.has(o.id) ? (d(), c("div", Me, [
294
+ u(E, {
292
295
  name: "error",
293
296
  color: "system-error-300",
294
297
  size: "sm"
295
298
  }),
296
- n("div", null, c(i(u)("inventory.inventoryBindings.circularError")), 1)
299
+ n("div", null, p(i(m)("inventory.inventoryBindings.circularError")), 1)
297
300
  ])) : v("", !0),
298
301
  n("div", Ne, [
299
- n("div", ze, [
300
- n("div", De, c((b = $.value[t.id]) == null ? void 0 : b.name), 1)
302
+ n("div", $e, [
303
+ n("div", ze, p((_ = K.value[o.id]) == null ? void 0 : _.name), 1)
301
304
  ]),
302
- n("div", Ke, [
303
- m(y, {
305
+ n("div", De, [
306
+ u(y, {
304
307
  class: "w-full",
305
308
  disabled: e.disabled,
306
- modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
307
- "onUpdate:modelValue": (d) => T(t.id, d, e.modelValue),
308
- invalid: B
309
+ modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
310
+ "onUpdate:modelValue": (r) => T(o.id, r, e.modelValue),
311
+ invalid: k
309
312
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
310
313
  ]),
311
- e.readonly ? v("", !0) : (r(), p("div", $e, [
312
- m(a, {
314
+ e.readonly ? v("", !0) : (d(), c("div", Ke, [
315
+ u(a, {
313
316
  disabled: e.disabled,
314
317
  type: "button",
315
318
  variant: "plain",
316
319
  icon: "delete",
317
320
  "icon-color": "#000000",
318
- onClick: (d) => E(t.id, e.modelValue)
321
+ onClick: (r) => F(o.id, e.modelValue)
319
322
  }, null, 8, ["disabled", "onClick"])
320
323
  ]))
321
324
  ])
@@ -328,90 +331,99 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
328
331
  ])) : v("", !0),
329
332
  n("div", je, [
330
333
  n("div", Le, [
331
- n("div", Oe, c(i(u)("inventory.inventoryBindings.ingredient")), 1),
332
- e.readonly ? v("", !0) : (r(), w(a, {
334
+ n("div", Oe, p(i(m)("inventory.inventoryBindings.ingredient")), 1),
335
+ e.readonly ? v("", !0) : (d(), w(a, {
333
336
  key: 0,
334
337
  variant: "secondary",
335
338
  "text-color": "primary",
336
339
  "border-color": "primary",
337
- label: i(u)("inventory.inventoryBindings.linkIngredient"),
340
+ label: i(m)("inventory.inventoryBindings.linkIngredient"),
338
341
  "prepend-icon": "link",
339
342
  onClick: J
340
343
  }, null, 8, ["label"]))
341
344
  ]),
342
345
  n("div", Ye, [
343
346
  n("div", We, [
344
- n("div", qe, c(i(u)("inventory.inventoryBindings.ingredient")), 1),
345
- n("div", He, c(i(u)("inventory.inventoryBindings.amount")), 1),
347
+ n("div", qe, p(i(m)("inventory.inventoryBindings.ingredient")), 1),
348
+ n("div", He, p(i(m)("inventory.inventoryBindings.amount")), 1),
346
349
  l[5] || (l[5] = n("div", { class: "w-[52px]" }, null, -1))
347
350
  ]),
348
- (r(!0), p(F, null, G(P.value, (t, B) => {
349
- var b;
350
- return r(), p(F, {
351
- key: t.id
351
+ (d(!0), c(U, null, G(P.value, (o, k) => {
352
+ var _;
353
+ return d(), c(U, {
354
+ key: o.id
352
355
  }, [
353
- Q(t) ? (r(), p("div", Je, [
356
+ Q(o) ? (d(), c("div", Je, [
354
357
  n("div", Qe, [
355
- n("div", Xe, c(t.id), 1)
358
+ n("div", Xe, p(o.id), 1),
359
+ e.readonly ? v("", !0) : (d(), c("div", Ze, [
360
+ u(a, {
361
+ disabled: e.disabled,
362
+ type: "button",
363
+ variant: "tertiary",
364
+ icon: "delete",
365
+ onClick: (r) => F(o.id, e.modelValue)
366
+ }, null, 8, ["disabled", "onClick"])
367
+ ]))
356
368
  ]),
357
- n("div", Ze, [
358
- m(C, {
369
+ n("div", en, [
370
+ u(E, {
359
371
  name: "error",
360
372
  color: "system-error-300",
361
373
  size: "sm"
362
374
  }),
363
- n("div", null, c(i(u)("inventory.inventoryBindings.missingIngredient")), 1)
375
+ n("div", null, p(i(m)("inventory.inventoryBindings.missingIngredient")), 1)
364
376
  ])
365
- ])) : (r(), p("div", en, [
366
- n("div", nn, [
367
- n("div", on, [
368
- m(f, {
377
+ ])) : (d(), c("div", nn, [
378
+ n("div", on, [
379
+ n("div", tn, [
380
+ u(f, {
369
381
  zIndex: 51,
370
382
  variant: "plain",
371
383
  placement: "top",
372
- content: (b = V.value[t.id]) == null ? void 0 : b.name
384
+ content: (_ = V.value[o.id]) == null ? void 0 : _.name
373
385
  }, {
374
386
  default: I(() => {
375
- var d;
387
+ var r;
376
388
  return [
377
- n("span", tn, c((d = V.value[t.id]) == null ? void 0 : d.name), 1)
389
+ n("span", ln, p((r = V.value[o.id]) == null ? void 0 : r.name), 1)
378
390
  ];
379
391
  }),
380
392
  _: 2
381
393
  }, 1032, ["content"])
382
394
  ]),
383
- n("div", ln, [
384
- m(me, {
385
- "model-value": X(t),
386
- "onUpdate:modelValue": (d) => d && Z(t.id, d, e.modelValue),
387
- "onUpdate:amount": (d) => ne(t, d),
388
- unit: M(t),
389
- placement: B === P.value.length - 1 ? "top" : "bottom",
395
+ n("div", sn, [
396
+ u(me, {
397
+ "model-value": X(o),
398
+ "onUpdate:modelValue": (r) => r && Z(o.id, r, e.modelValue),
399
+ "onUpdate:amount": (r) => ne(o, r),
400
+ unit: M(o),
401
+ placement: k === P.value.length - 1 ? "top" : "bottom",
390
402
  "convert-amount-on-change-unit": "",
391
403
  disabled: e.readonly
392
404
  }, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
393
405
  ]),
394
- e.readonly ? v("", !0) : (r(), p("div", sn, [
395
- m(a, {
406
+ e.readonly ? v("", !0) : (d(), c("div", dn, [
407
+ u(a, {
396
408
  disabled: e.disabled,
397
409
  type: "button",
398
410
  variant: "tertiary",
399
411
  icon: "delete",
400
- onClick: (d) => E(t.id, e.modelValue)
412
+ onClick: (r) => F(o.id, e.modelValue)
401
413
  }, null, 8, ["disabled", "onClick"])
402
414
  ]))
403
415
  ]),
404
416
  n("div", rn, [
405
- m(o, {
406
- modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
417
+ u(t, {
418
+ modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
407
419
  rules: [i(A)(0)]
408
420
  }, null, 8, ["modelValue", "rules"]),
409
- m(o, {
410
- modelValue: ee(t),
421
+ u(t, {
422
+ modelValue: ee(o),
411
423
  rules: [
412
424
  i(ce)(),
413
- i(pe)(M(t)),
414
- () => U.value.has(t.id) ? i(u)("inventory.inventoryBindings.invalidWarning") : !0
425
+ i(pe)(M(o)),
426
+ () => C.value.has(o.id) ? i(m)("inventory.inventoryBindings.invalidWarning") : !0
415
427
  ]
416
428
  }, null, 8, ["modelValue", "rules"])
417
429
  ])
@@ -425,5 +437,5 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
425
437
  }
426
438
  });
427
439
  export {
428
- fn as _
440
+ vn as _
429
441
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, resolveComponent as m, openBlock as c, createBlock as d, h as g } from "vue";
2
2
  import { useI18n as p } from "@feedmepos/mf-common";
3
3
  import { components as u } from "@feedmepos/ui-library";
4
- import { F as r } from "./app-DMMqtQts.js";
4
+ import { F as r } from "./app-BW79dfel.js";
5
5
  const w = /* @__PURE__ */ l({
6
6
  __name: "InventoryBindingSummary",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as i, openBlock as F, createBlock as g, withCtx as d, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
2
- import { c as s } from "./number-DlYhqTV5.js";
2
+ import { c as s } from "./number-T0uPxOq3.js";
3
3
  const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { m as F, u as f } from "./app-DMMqtQts.js";
1
+ import { m as F, u as f } from "./app-BW79dfel.js";
2
2
  import { useCoreStore as v } from "@feedmepos/mf-common";
3
3
  import { ref as _, defineComponent as h, resolveComponent as l, openBlock as y, createElementBlock as g, renderSlot as k, createVNode as p, withCtx as S } from "vue";
4
4
  const m = F((e, t) => {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as D, ref as A, computed as i, watch as H, resolveComponent as u, openBlock as S, createBlock as x, unref as c, createSlots as Y, withCtx as h, createElementVNode as N, normalizeClass as $, createVNode as m, normalizeStyle as U, Teleport as q, h as p } from "vue";
2
- import { u as E, a as K, x as j } from "./app-DMMqtQts.js";
2
+ import { u as E, a as K, x as j } from "./app-BW79dfel.js";
3
3
  import { u as G, _ as J } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
4
4
  import { useBreakpoints as O, useDialog as Q, useSnackbar as R, components as I } from "@feedmepos/ui-library";
5
- import { u as X } from "./vue-i18n-CD-rDdDv.js";
6
- import { a as C } from "./date2-Db-IPmri.js";
5
+ import { u as X } from "./vue-i18n-B4kzuMPA.js";
6
+ import { a as C } from "./date2-ClhppfDY.js";
7
7
  const ie = /* @__PURE__ */ D({
8
8
  __name: "PublishView",
9
9
  setup(Z) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as b, computed as x, ref as f, onMounted as g, openBlock as n, createElementBlock as o, createElementVNode as t, toDisplayString as e, normalizeStyle as w, createTextVNode as u, Fragment as i, createCommentVNode as v, renderList as p } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { P as y } from "./app-DMMqtQts.js";
4
- import { L as C } from "./lz-string-TL3mT9nT.js";
3
+ import { P as y } from "./app-BW79dfel.js";
4
+ import { L as C } from "./lz-string-DLIa3ELl.js";
5
5
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "title" }, E = { class: "text-right" }, D = { class: "header" }, O = { class: "sub-header" }, S = { class: "caption" }, F = { class: "address" }, T = { class: "text-right" }, L = {
7
7
  key: 0,