@feedmepos/mf-inventory-portal 0.0.23-dev.40 → 0.0.23-dev.42

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 (46) hide show
  1. package/dist/{App-D8DXxTIq.js → App-Cr-n7HVf.js} +104 -98
  2. package/dist/{ApprovalView-BWGXkHV6.js → ApprovalView-BYHDmt9W.js} +5 -5
  3. package/dist/{BindingsDialog-D7WypDot.js → BindingsDialog-CI0nYM1_.js} +2 -2
  4. package/dist/{BindingsPicker-DUlGwkwM.js → BindingsPicker-BVzF3C8O.js} +3 -3
  5. package/dist/{BindingsTable-BjeZYCaJ.js → BindingsTable-B21_9L2o.js} +1 -1
  6. package/dist/ClosingDraftView-k2Vsz8-W.js +1225 -0
  7. package/dist/{ClosingTemplateView-Dt983Cg4.js → ClosingTemplateView-BLda7tYC.js} +21 -21
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dc_7IyBG.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUDOaU6F.js} +8 -8
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-wocPyZls.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js} +3 -3
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DzoEp-Pg.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js} +12 -12
  11. package/dist/{IngredientGroupView-CIPpIpv1.js → IngredientGroupView-CgZ4YT3i.js} +1 -1
  12. package/dist/{IngredientsView-CFV3kX7Q.js → IngredientsView-tPERrF9O.js} +4 -4
  13. package/dist/{IntegrationView-DkW32m-t.js → IntegrationView-CoF_rdWv.js} +1 -1
  14. package/dist/{InventoryBindingForm-B4CBet9W.js → InventoryBindingForm-BSnofTIL.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DpdDVf6O.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-4d9oz7Xh.js} +18 -18
  16. package/dist/{InventoryBindingSummary-75ImZtqK.js → InventoryBindingSummary-qm9ZUFny.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DfpG3Fy8.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-B4d0c3nk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-NUkiVop4.js} +1 -1
  19. package/dist/{PurchaseOrderPrintPreview-BYO0JcQW.js → PurchaseOrderPrintPreview-CIWiq2NB.js} +1 -1
  20. package/dist/{ReceiveRequestView-cFLNExw9.js → ReceiveRequestView-Dgt3FeGb.js} +1424 -1413
  21. package/dist/{RecipeView-CjfpaHaT.js → RecipeView-CzWlx1Xv.js} +3 -3
  22. package/dist/{StockView-HMtD9qar.js → StockView-IPXGJNN8.js} +103 -103
  23. package/dist/{SupplierView-Cidfe-Xm.js → SupplierView-DuL3NXc0.js} +4 -4
  24. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-82Bu89OE.js +1327 -0
  25. package/dist/{TransferTemplateView-Doxr1fXP.js → TransferTemplateView-BEaRafuO.js} +25 -25
  26. package/dist/{UnitView-C1af71aM.js → UnitView-Cwo0mthQ.js} +14 -14
  27. package/dist/{WarehouseView-CviOLXfX.js → WarehouseView-DzjQrpyv.js} +140 -140
  28. package/dist/{app-BE8SgDqI.js → app-CpuFfqWF.js} +2938 -2877
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-xj3kVOP6.js → decimal-bSGrDlvd.js} +1 -1
  31. package/dist/{feature-CWpNYcWJ.js → feature-D8aRYGen.js} +199 -183
  32. package/dist/{format-unit-display-CZ835oaL.js → format-unit-display-D4gi2D-O.js} +58 -58
  33. package/dist/{index-B8IWDKYv.js → index-COeURijn.js} +3 -3
  34. package/dist/{index-C6SzYqK7.js → index-Cn1ato-l.js} +1 -1
  35. package/dist/{stock-C2xyYnS7.js → stock-B1Rchi6n.js} +1 -1
  36. package/dist/stores/feature.d.ts +3 -0
  37. package/dist/style.css +1 -1
  38. package/dist/{supplier-B-7o9hg1.js → supplier-CeY_Gro-.js} +1 -1
  39. package/dist/{use-inventory-binding-dialog-Dm8Ky1MH.js → use-inventory-binding-dialog-BXqY40wn.js} +1 -1
  40. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +11 -0
  41. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +30 -0
  42. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +45 -0
  43. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +45 -0
  44. package/package.json +3 -3
  45. package/dist/ClosingDraftView-o2LEUfo8.js +0 -1190
  46. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CdU3HPBC.js +0 -1275
@@ -1,14 +1,14 @@
1
- import { defineComponent as Z, onMounted as ce, computed as R, ref as E, watch as pe, inject as Je, resolveComponent as V, openBlock as D, createElementBlock as K, createElementVNode as t, createVNode as c, withCtx as q, renderSlot as Oe, withDirectives as Ve, normalizeClass as ie, vModelText as Ae, reactive as Ze, h as J, toDisplayString as O, unref as e, createBlock as W, mergeProps as Ee, isRef as Ue, createCommentVNode as Y, Fragment as qe, renderList as Xe, normalizeStyle as Ye, Teleport as et, normalizeProps as tt, guardReactiveProps as ot } from "vue";
2
- import { H as Ne, ax as ue, t as De, I as st, ay as lt, az as nt, i as G, aA as at, b as ze, $ as Re, l as me, a as He, P as re, L as rt, A as de, M as it, G as Q, u as je, ac as ut, E as Qe, J as mt, K as dt, d as ee, aB as ne, a9 as ct, a1 as pt, y as ft, h as Pe, z as yt, B as vt } from "./app-BE8SgDqI.js";
1
+ import { defineComponent as J, onMounted as ce, computed as R, ref as E, watch as pe, inject as Ze, resolveComponent as V, openBlock as D, createElementBlock as K, createElementVNode as t, createVNode as c, withCtx as q, renderSlot as Oe, withDirectives as Ve, normalizeClass as ie, vModelText as Ae, reactive as Je, h as Z, toDisplayString as O, unref as e, createBlock as W, mergeProps as Ee, isRef as Ue, createCommentVNode as Y, Fragment as qe, renderList as Xe, normalizeStyle as Ye, Teleport as et, normalizeProps as tt, guardReactiveProps as ot } from "vue";
2
+ import { G as Ne, ax as ue, t as De, I as st, ay as lt, az as nt, i as G, aA as at, b as ze, Z as Re, l as me, a as He, O as re, K as rt, A as de, M as it, E as Q, u as je, ab as ut, B as Qe, H as mt, J as dt, d as ee, aB as ne, a8 as ct, a0 as pt, y as ft, h as Pe, _ as yt, z as vt } from "./app-CpuFfqWF.js";
3
3
  import { useI18n as X } from "@feedmepos/mf-common";
4
- import { P as H, a as bt, f as xt, t as _t, b as Le, u as ht } from "./format-unit-display-CZ835oaL.js";
4
+ import { P as H, a as bt, f as xt, t as _t, b as Le, u as ht } from "./format-unit-display-D4gi2D-O.js";
5
5
  import { components as ae, useDialog as gt, useSnackbar as Tt, useProxiedModel as Ke, useBreakpoints as Ft } from "@feedmepos/ui-library";
6
6
  import { storeToRefs as Be } from "pinia";
7
- import { _ as wt, b as kt, F as St, a as Ct } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DzoEp-Pg.js";
8
- import { u as Ge } from "./feature-CWpNYcWJ.js";
9
- import { c as Mt, u as $t, _ as It } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-wocPyZls.js";
10
- import { u as Ot } from "./supplier-B-7o9hg1.js";
11
- const Vt = { class: "flex flex-col" }, At = { class: "flex flex-col" }, Dt = { class: "flex-1" }, Rt = { class: "flex items-center" }, Pt = { class: "flex-1" }, Lt = { class: "flex-1" }, Bt = /* @__PURE__ */ Z({
7
+ import { _ as wt, b as kt, F as St, a as Ct } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Ds3yBf9U.js";
8
+ import { u as Ge } from "./feature-D8aRYGen.js";
9
+ import { c as Mt, u as $t, _ as It } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CXuer_x5.js";
10
+ import { u as Ot } from "./supplier-CeY_Gro-.js";
11
+ const Vt = { class: "flex flex-col" }, At = { class: "flex flex-col" }, Dt = { class: "flex-1" }, Rt = { class: "flex items-center" }, Pt = { class: "flex-1" }, Lt = { class: "flex-1" }, Bt = /* @__PURE__ */ J({
12
12
  __name: "FmMinMaxInput",
13
13
  props: {
14
14
  rules: {},
@@ -79,7 +79,7 @@ const Vt = { class: "flex flex-col" }, At = { class: "flex flex-col" }, Dt = { c
79
79
  b.max = null;
80
80
  u.min = b.min, u.max = b.max;
81
81
  });
82
- const d = Symbol.for("fm:form-state"), k = Je(d, null), h = R(() => x.disabled ?? (k == null ? void 0 : k.getDisabled()) ?? !1), A = E(), F = E(), v = E(!1), g = E(!1), I = R(() => v.value || g.value), B = R(() => [...[
82
+ const d = Symbol.for("fm:form-state"), k = Ze(d, null), h = R(() => x.disabled ?? (k == null ? void 0 : k.getDisabled()) ?? !1), A = E(), F = E(), v = E(!1), g = E(!1), I = R(() => v.value || g.value), B = R(() => [...[
83
83
  function() {
84
84
  return typeof o(i.value) == "string" || typeof o(l.value) == "string" ? "Must be a number" : !0;
85
85
  },
@@ -177,7 +177,7 @@ function qt(y) {
177
177
  }
178
178
  var L = /* @__PURE__ */ ((y) => (y.Code = "Code", y.Name = "Name", y.DefaultAmount = "DefaultAmount", y.Limit = "Limit", y.MinimumAmount = "MinimumAmount", y.Step = "Step", y.Cost = "Cost", y.Delete = "Delete", y))(L || {});
179
179
  function Nt(y) {
180
- const { t: x } = X(), u = ze(), o = Ze({});
180
+ const { t: x } = X(), u = ze(), o = Je({});
181
181
  ce(() => {
182
182
  for (const i of y.items) {
183
183
  if (!i.totalCost)
@@ -196,7 +196,7 @@ function Nt(y) {
196
196
  size: 180,
197
197
  cell(i) {
198
198
  const l = i.row.original;
199
- return J(ae.FmTextField, {
199
+ return Z(ae.FmTextField, {
200
200
  modelValue: l.code,
201
201
  "onUpdate:modelValue": (d) => {
202
202
  y.updateItem({
@@ -217,7 +217,7 @@ function Nt(y) {
217
217
  minSize: 300,
218
218
  cell(i) {
219
219
  const l = i.row.original;
220
- return J(ae.FmTextField, {
220
+ return Z(ae.FmTextField, {
221
221
  modelValue: l.name,
222
222
  "onUpdate:modelValue": (d) => {
223
223
  y.updateItem({
@@ -242,7 +242,7 @@ function Nt(y) {
242
242
  var I;
243
243
  return ((I = l.measurement) == null ? void 0 : I.id) === g.id;
244
244
  }), F = l.sku.unit._id !== k.unit._id || !h || l.measurement && !A;
245
- return J(wt, {
245
+ return Z(wt, {
246
246
  style: {
247
247
  flex: "1 1 0%"
248
248
  },
@@ -299,7 +299,7 @@ function Nt(y) {
299
299
  minSize: 280,
300
300
  cell(i) {
301
301
  const l = i.row.original;
302
- return J(Bt, {
302
+ return Z(Bt, {
303
303
  style: {
304
304
  flex: "1 1 0%"
305
305
  },
@@ -336,7 +336,7 @@ function Nt(y) {
336
336
  minSize: 100,
337
337
  cell(i) {
338
338
  const l = i.row.original;
339
- return J(ae.FmTextField, {
339
+ return Z(ae.FmTextField, {
340
340
  modelValue: G(l.quantityStep ?? Re.reset(), !1),
341
341
  key: l.sku._id,
342
342
  "onUpdate:modelValue": (d) => {
@@ -361,7 +361,7 @@ function Nt(y) {
361
361
  header: "",
362
362
  cell(i) {
363
363
  const l = i.row.original;
364
- return J(ae.FmButton, {
364
+ return Z(ae.FmButton, {
365
365
  class: "delete-button",
366
366
  key: l.sku._id,
367
367
  type: "button",
@@ -386,7 +386,7 @@ function Nt(y) {
386
386
  columnDefs: R(() => Ge().enableTotalCost && y.transferType === H.PURCHASE ? m : m.filter((l) => l.id !== "Cost"))
387
387
  };
388
388
  }
389
- const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-center" }, jt = { class: "flex-1 flex gap-1 items-center" }, Qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Gt = { class: "flex gap-8 w-full" }, Wt = { class: "flex-1 flex flex-col gap-4" }, Jt = { class: "flex-1 flex flex-col gap-4" }, Zt = { class: "flex gap-8 w-full" }, Xt = { class: "flex-1 flex flex-col gap-4" }, Yt = { class: "flex-1 flex flex-col gap-4" }, eo = { class: "flex gap-8 w-full" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = /* @__PURE__ */ Z({
389
+ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-center" }, jt = { class: "flex-1 flex gap-1 items-center" }, Qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Gt = { class: "flex gap-8 w-full" }, Wt = { class: "flex-1 flex flex-col gap-4" }, Zt = { class: "flex-1 flex flex-col gap-4" }, Jt = { class: "flex gap-8 w-full" }, Xt = { class: "flex-1 flex flex-col gap-4" }, Yt = { class: "flex-1 flex flex-col gap-4" }, eo = { class: "flex gap-8 w-full" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = /* @__PURE__ */ J({
390
390
  __name: "TransferTemplateItem",
391
391
  props: {
392
392
  cellByColId: {},
@@ -421,7 +421,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
421
421
  }, null, 8, ["render", "props"]),
422
422
  o[0] || (o[0] = t("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
423
423
  ]),
424
- t("div", Jt, [
424
+ t("div", Zt, [
425
425
  c(m, {
426
426
  label: e(x)(`inventory.transfer.form.items.table.${e(L).Name}`)
427
427
  }, null, 8, ["label"]),
@@ -432,7 +432,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
432
432
  o[1] || (o[1] = t("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
433
433
  ])
434
434
  ]),
435
- t("div", Zt, [
435
+ t("div", Jt, [
436
436
  t("div", Xt, [
437
437
  c(m, {
438
438
  label: e(x)(`inventory.transfer.form.items.table.${e(L).DefaultAmount}`)
@@ -469,7 +469,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
469
469
  ]);
470
470
  };
471
471
  }
472
- }), so = { class: "flex flex-col gap-16" }, lo = { class: "flex flex-col gap-24" }, no = { class: "flex flex-col gap-16" }, ao = { class: "flex items-center" }, ro = { class: "flex flex-col" }, io = { class: "flex flex-col gap-16" }, uo = { class: "flex" }, mo = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, co = /* @__PURE__ */ Z({
472
+ }), so = { class: "flex flex-col gap-16" }, lo = { class: "flex flex-col gap-24" }, no = { class: "flex flex-col gap-16" }, ao = { class: "flex items-center" }, ro = { class: "flex flex-col" }, io = { class: "flex flex-col gap-16" }, uo = { class: "flex" }, mo = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, co = /* @__PURE__ */ J({
473
473
  __name: "TransferTemplateForm",
474
474
  props: {
475
475
  modelValue: {},
@@ -777,7 +777,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
777
777
  }, 8, ["disabled"]);
778
778
  };
779
779
  }
780
- }), po = { class: "flex items-center" }, fo = { class: "fm-typo-en-title-md-800" }, yo = { class: "flex gap-4" }, vo = /* @__PURE__ */ Z({
780
+ }), po = { class: "flex items-center" }, fo = { class: "fm-typo-en-title-md-800" }, yo = { class: "flex gap-4" }, vo = /* @__PURE__ */ J({
781
781
  __name: "TransferTemplateDialog",
782
782
  props: {
783
783
  mode: {},
@@ -971,7 +971,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
971
971
  }, Ho = {
972
972
  key: 0,
973
973
  class: "flex gap-4 items-center"
974
- }, jo = { class: "flex flex-col gap-12" }, Qo = { class: "flex flex-col gap-8" }, Ko = { class: "flex gap-8 xs:flex-col" }, Go = /* @__PURE__ */ Z({
974
+ }, jo = { class: "flex flex-col gap-12" }, Qo = { class: "flex flex-col gap-8" }, Ko = { class: "flex gap-8 xs:flex-col" }, Go = /* @__PURE__ */ J({
975
975
  __name: "TransferTemplateDetails",
976
976
  props: {
977
977
  template: {},
@@ -1112,7 +1112,7 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1112
1112
  }, 8, ["header", "modelValue", "dismiss-away"]);
1113
1113
  };
1114
1114
  }
1115
- }), Wo = { class: "flex-1 flex flex-col gap-8" }, Jo = { class: "flex flex-col" }, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Yo = { class: "fm-typo-en-body-lg-400" }, es = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, ts = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, cs = /* @__PURE__ */ Z({
1115
+ }), Wo = { class: "flex-1 flex flex-col gap-8" }, Zo = { class: "flex flex-col" }, Jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Yo = { class: "fm-typo-en-body-lg-400" }, es = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, ts = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, cs = /* @__PURE__ */ J({
1116
1116
  __name: "TransferTemplateView",
1117
1117
  setup(y) {
1118
1118
  const { t: x } = X(), { createTemplate: u, viewTemplate: o, importTemplates: m, exportTemplates: S } = Le(), { templateDialogProps: i, templateDetailsProps: l } = Be(Le()), d = ht(), { loading: k, templates: h } = Be(d), A = E(!1), F = ft(), v = je(), { breakpoints: g } = Ft();
@@ -1202,8 +1202,8 @@ const zt = { class: "flex flex-col gap-8 py-16" }, Ht = { class: "flex items-cen
1202
1202
  var P, U, N, j, T, z, fe, ye, te, ve, be, xe, _e, oe, he, ge, Te, Fe, we, ke, se, Se, Ce, Me, $e, le, Ie;
1203
1203
  return [
1204
1204
  t("div", Wo, [
1205
- t("div", Jo, [
1206
- t("div", Zo, [
1205
+ t("div", Zo, [
1206
+ t("div", Jo, [
1207
1207
  c(e(Q), {
1208
1208
  render: (N = (U = (P = _._id) == null ? void 0 : P.column) == null ? void 0 : U.columnDef) == null ? void 0 : N.cell,
1209
1209
  props: (T = (j = _._id) == null ? void 0 : j.getContext) == null ? void 0 : T.call(j)
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as H, computed as g, openBlock as v, createElementBlock as C, createElementVNode as l, Fragment as j, renderList as q, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as $, createBlock as T, withCtx as A, createVNode as y, unref as o, isRef as ee, normalizeClass as re, normalizeStyle as ie, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
2
- import { a as G, d as w, S as ce, f as pe, D as te, h as L, e as le, l as N, A as fe, i as J, L as ve, N as ye, o as ne, u as be, b as ge, y as xe, z as _e, B as he, E as Ve, G as Ue } from "./app-BE8SgDqI.js";
2
+ import { a as K, d as w, S as ce, f as pe, D as te, h as L, e as le, l as N, A as fe, i as J, K as ve, L as ye, o as ne, u as be, b as ge, y as xe, _ as _e, z as he, B as Ve, E as Ue } from "./app-CpuFfqWF.js";
3
3
  import { useDialog as we, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ce } from "@feedmepos/ui-library";
4
4
  import { i as Se, _ as ke } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { defineStore as Ee, storeToRefs as Fe } from "pinia";
6
- import { useI18n as K } from "@feedmepos/mf-common";
7
- import { F as $e } from "./decimal-xj3kVOP6.js";
8
- import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DfpG3Fy8.js";
6
+ import { useI18n as G } from "@feedmepos/mf-common";
7
+ import { F as $e } from "./decimal-bSGrDlvd.js";
8
+ import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CQY98Hj6.js";
9
9
  const De = { class: "flex flex-col gap-8" }, Ae = {
10
10
  key: 0,
11
11
  class: "flex flex-col"
@@ -30,7 +30,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
30
30
  unit: {}
31
31
  },
32
32
  setup(k) {
33
- const f = k, b = G(), i = g(() => b.validateUnitUsage(f.unit)), r = g(() => i.value.filter((c) => c.from === "INGREDIENT")), s = g(() => i.value.filter((c) => c.from === "RECIPE")), d = g(() => i.value.filter((c) => c.from === "MENU"));
33
+ const f = k, b = K(), i = g(() => b.validateUnitUsage(f.unit)), r = g(() => i.value.filter((c) => c.from === "INGREDIENT")), s = g(() => i.value.filter((c) => c.from === "RECIPE")), d = g(() => i.value.filter((c) => c.from === "MENU"));
34
34
  return (c, p) => (v(), C("div", De, [
35
35
  p[3] || (p[3] = l("div", { class: "fm-typo-en-body-md-400" }, "Sorry, this unit is used in the following modules:", -1)),
36
36
  r.value.length ? (v(), C("div", Ae, [
@@ -93,7 +93,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
93
93
  ]));
94
94
  }
95
95
  }), Q = Ee("unitForm", function() {
96
- const f = we(), b = se(), i = G(), r = M(!1), s = M();
96
+ const f = we(), b = se(), i = K(), r = M(!1), s = M();
97
97
  function d() {
98
98
  const n = {
99
99
  unit: {},
@@ -187,7 +187,7 @@ const De = { class: "flex flex-col gap-8" }, Ae = {
187
187
  };
188
188
  });
189
189
  function qe() {
190
- const { updateUnit: k, deleteUnit: f } = Q(), { t: b } = K();
190
+ const { updateUnit: k, deleteUnit: f } = Q(), { t: b } = G();
191
191
  async function i(s, d) {
192
192
  const c = le(d);
193
193
  if (s === L.Edit) {
@@ -232,7 +232,7 @@ function qe() {
232
232
  }
233
233
  ] };
234
234
  }
235
- const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke = { class: "flex-1" }, Oe = { class: "flex-1" }, Ye = { class: "flex" }, Je = { class: "flex items-center" }, Qe = { class: "fm-typo-en-body-lg-600 flex-grow" }, We = { class: "flex flex-col gap-24" }, Xe = { class: "flex gap-24" }, Ze = { class: "flex-1" }, et = { class: "flex-1" }, tt = /* @__PURE__ */ H({
235
+ const He = { class: "flex flex-col gap-24" }, Ke = { class: "flex gap-24" }, Ge = { class: "flex-1" }, Oe = { class: "flex-1" }, Ye = { class: "flex" }, Je = { class: "flex items-center" }, Qe = { class: "fm-typo-en-body-lg-600 flex-grow" }, We = { class: "flex flex-col gap-24" }, Xe = { class: "flex gap-24" }, Ze = { class: "flex-1" }, et = { class: "flex-1" }, tt = /* @__PURE__ */ H({
236
236
  __name: "UnitForm",
237
237
  props: {
238
238
  mode: {},
@@ -241,7 +241,7 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
241
241
  },
242
242
  emits: ["update:modelValue", "click:submit"],
243
243
  setup(k, { expose: f, emit: b }) {
244
- const i = k, r = b, { t: s } = K();
244
+ const i = k, r = b, { t: s } = G();
245
245
  function d() {
246
246
  r("click:submit");
247
247
  }
@@ -327,8 +327,8 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
327
327
  var E;
328
328
  return [
329
329
  l("div", He, [
330
- l("div", Ge, [
331
- l("div", Ke, [
330
+ l("div", Ke, [
331
+ l("div", Ge, [
332
332
  y(m, {
333
333
  disabled: e.disabled,
334
334
  label: o(s)("inventory.unit.name"),
@@ -450,7 +450,7 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
450
450
  },
451
451
  emits: ["update:show"],
452
452
  setup(k) {
453
- const f = k, b = G(), i = se(), { t: r } = K(), s = oe(f, "show"), d = oe(f, "unit"), c = g(() => {
453
+ const f = k, b = K(), i = se(), { t: r } = G(), s = oe(f, "show"), d = oe(f, "unit"), c = g(() => {
454
454
  switch (f.mode) {
455
455
  case w.READ:
456
456
  return "";
@@ -566,11 +566,11 @@ const He = { class: "flex flex-col gap-24" }, Ge = { class: "flex gap-24" }, Ke
566
566
  }), lt = { class: "flex flex-col py-8" }, st = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, at = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vt = /* @__PURE__ */ H({
567
567
  __name: "UnitView",
568
568
  setup(k) {
569
- const f = G(), b = be(), i = ge(), r = g(() => f.units), { createUnit: s, updateUnit: d } = Q(), { unitDialogProps: c, unitViewLoading: p } = Fe(Q()), { columnDefs: a } = qe();
569
+ const f = K(), b = be(), i = ge(), r = g(() => f.units), { createUnit: s, updateUnit: d } = Q(), { unitDialogProps: c, unitViewLoading: p } = Fe(Q()), { columnDefs: a } = qe();
570
570
  function n(D) {
571
571
  D === "add" && s();
572
572
  }
573
- const u = M(""), x = g(() => p.value), { breakpoints: _ } = Ce(), e = g(() => _.value.xs || _.value.sm), t = g(() => e.value ? 10 : 20), m = xe(), { t: I } = K();
573
+ const u = M(""), x = g(() => p.value), { breakpoints: _ } = Ce(), e = g(() => _.value.xs || _.value.sm), t = g(() => e.value ? 10 : 20), m = xe(), { t: I } = G();
574
574
  return (D, U) => {
575
575
  const O = $("FmTable");
576
576
  return v(), T(_e, {