@feedmepos/mf-inventory-portal 1.2.3 → 1.2.4

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 (44) hide show
  1. package/dist/{App-CSdfULWS.js → App-BU_WSlx-.js} +1 -1
  2. package/dist/{ApprovalView-DTwnAFlM.js → ApprovalView-l2DdsNXH.js} +8 -8
  3. package/dist/{BindingsDialog-Bv24Ys1r.js → BindingsDialog-B4tQ9oQ2.js} +2 -2
  4. package/dist/{BindingsPicker-D-HNXv6l.js → BindingsPicker-mVGeJMi2.js} +1 -1
  5. package/dist/{BindingsTable-B5xE1kAV.js → BindingsTable-CQfPvj8g.js} +1 -1
  6. package/dist/{ClosingDraftView-BbLjS-QV.js → ClosingDraftView-BJOcWcjt.js} +93 -93
  7. package/dist/{ClosingTemplateView-Do0CkGUH.js → ClosingTemplateView-DaYjDBPc.js} +17 -17
  8. package/dist/{DeliveryOrderPrintPreview-B2YhyN59.js → DeliveryOrderPrintPreview-vHQa4Pma.js} +7 -7
  9. package/dist/{FmAdminBadge-Cj1R2Bi0.js → FmAdminBadge-DUYqoh_b.js} +3 -3
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C1pSdLfz.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-SmAbact2.js} +11 -11
  11. package/dist/{FmMultiselectDialog-eq994oQ-.js → FmMultiselectDialog-CKfAAKn7.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BheQFvJF.js → FmUnitInput.vue_vue_type_script_setup_true_lang-a967Y4eW.js} +24 -24
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DDbMiztC.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CBI-U1s2.js} +1 -1
  14. package/dist/{IngredientGroupView-DNAdO4WQ.js → IngredientGroupView-CeQ7PRmJ.js} +31 -31
  15. package/dist/{IngredientsView-d-wTEFTk.js → IngredientsView-BmN-1mUc.js} +689 -671
  16. package/dist/{IntegrationView-COWJlO4B.js → IntegrationView-Cm4jdNzA.js} +299 -297
  17. package/dist/{InventoryBindingForm-DngxfNzM.js → InventoryBindingForm-CbDjrC3O.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CfIUE7Oj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BLuD-xKb.js} +39 -39
  19. package/dist/{InventoryBindingSummary-ZepcUPQ3.js → InventoryBindingSummary-nBwMH1KR.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-rynZcLum.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-EAczeEql.js} +4 -4
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CDfN66ys.js → PremiumBadge.vue_vue_type_script_setup_true_lang-xF4w1bLo.js} +1 -1
  22. package/dist/{PublishView-DuRaDpQj.js → PublishView-CJbpgj4t.js} +1 -1
  23. package/dist/{PurchaseOrderPrintPreview-CiwFb-cX.js → PurchaseOrderPrintPreview-CKL-ESMG.js} +6 -6
  24. package/dist/{ReceiveRequestView-CMtXbZFg.js → ReceiveRequestView-BXup2Y5i.js} +110 -110
  25. package/dist/{RecipeView-C9MuhpHd.js → RecipeView-CYiaWfO2.js} +19 -19
  26. package/dist/{StockView-CzDFioRG.js → StockView-B5ZGzrsN.js} +135 -135
  27. package/dist/{SupplierView-BKHKbhGh.js → SupplierView-DpJB7y5J.js} +3 -3
  28. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-alkGEMZE.js → TransferDetails.vue_vue_type_script_setup_true_lang-Bnw-GVII.js} +6 -6
  29. package/dist/{TransferTemplateView-B-iTVtoR.js → TransferTemplateView-2x7CoPG6.js} +57 -57
  30. package/dist/{UnitView-9cX60HUq.js → UnitView-D7gJR81B.js} +27 -27
  31. package/dist/{WarehouseView-Bt54k8Fr.js → WarehouseView-Cdmvo8AX.js} +8 -8
  32. package/dist/{app-D68Nrj_W.js → app-7RQRfUWP.js} +9646 -9600
  33. package/dist/app.js +1 -1
  34. package/dist/{decimal-DwlcTwF4.js → decimal-BG61A172.js} +1 -1
  35. package/dist/{format-unit-display-B7zglpxP.js → format-unit-display-BcCVYu07.js} +57 -57
  36. package/dist/{index-CaMvI8x0.js → index-B9eaFsQz.js} +1 -1
  37. package/dist/{index-B4zWtnox.js → index-BP5fDtDw.js} +1 -1
  38. package/dist/{stock-FiZmySc9.js → stock-B59nAkMB.js} +1 -1
  39. package/dist/{supplier-AxlUb2WF.js → supplier-T0SjVZcK.js} +1 -1
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/{use-ingredient-select-dialog-BH-QS0jx.js → use-ingredient-select-dialog-Rvaune-D.js} +1 -1
  42. package/dist/{use-inventory-binding-dialog-TU1dCDcj.js → use-inventory-binding-dialog-DNSWmOzX.js} +1 -1
  43. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +157 -12
  44. package/package.json +3 -3
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as de, mergeModels as Bd, computed as x, useModel as Gd, resolveComponent as A, openBlock as N, createElementBlock as I, createElementVNode as b, createVNode as P, withCtx as L, toDisplayString as w, unref as c, Fragment as Q, renderList as te, ref as M, createBlock as Y, createCommentVNode as X, isRef as Qe, normalizeClass as ee, createTextVNode as Hd, watch as Od, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
2
- import { u as oe } from "./supplier-AxlUb2WF.js";
3
- import { b as we, h as Yd, D as ed, i as se, f as Ne, a as Fd, o as dd, p as td, k as Xd, a2 as Zd, w as wd, u as ye, m as K, c as ve, e as U, r as Ad, s as zd, v as Td, x as qd, y as Jd, z as Qd, B as et, _ as dt, C as tt, E as rt, G as ue } from "./app-D68Nrj_W.js";
2
+ import { u as oe } from "./supplier-T0SjVZcK.js";
3
+ import { b as we, h as Yd, D as ed, i as se, f as Ne, a as Fd, p as dd, q as td, k as Xd, a3 as Zd, x as wd, u as ye, n as K, c as ve, e as U, s as Ad, v as zd, w as Td, y as qd, z as Jd, B as Qd, C as et, _ as dt, E as tt, G as rt, J as ue } from "./app-7RQRfUWP.js";
4
4
  import { useI18n as z, useCoreStore as ge } from "@feedmepos/mf-common";
5
5
  import { useDialog as Ae, useSnackbar as he, useProxiedModel as rd, useDialogChild as nt, useBreakpoints as ot } from "@feedmepos/ui-library";
6
6
  import { _ as at } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
7
- import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BheQFvJF.js";
7
+ import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-a967Y4eW.js";
8
8
  import { defineStore as it } from "pinia";
9
9
  function lt(e, d) {
10
10
  const { t } = z(), r = we();
@@ -1,14 +1,14 @@
1
- import { a3 as gt, u as ge, aS as k, aT as Be, aA as W, c as Ve, b as Ue, ab as _t, ad as St, ae as wt, aU as Rt, e as nt, f as ct, a0 as Je, aV as xt, a8 as ut, T as dt, j as be, a6 as Ot, aW as mt, ai as Le, h as at, i as oe, D as ce, aX as ft, aY as pt, aZ as Ae, a_ as ze, ay as it, a$ as Se, Q as De, aa as Fe, a4 as Ge, a5 as Nt } from "./app-D68Nrj_W.js";
1
+ import { a4 as gt, u as ge, aS as k, aT as Be, aB as W, c as Ve, b as Ue, ac as _t, ae as St, af as wt, aU as Rt, e as nt, f as ct, a1 as Je, aV as xt, a9 as ut, V as dt, j as be, a7 as Ot, aW as mt, aj as Le, h as at, i as oe, D as ce, aX as ft, aY as pt, aZ as Ae, a_ as ze, az as it, a$ as Se, T as De, ab as Fe, a5 as Ge, a6 as Nt } from "./app-7RQRfUWP.js";
2
2
  import { ref as z, computed as re, h as C, defineComponent as Re, reactive as $t, onMounted as yt, resolveComponent as Z, openBlock as v, createBlock as ue, withCtx as se, createElementVNode as e, createVNode as F, unref as w, createElementBlock as x, toDisplayString as R, createCommentVNode as H, Fragment as ae, renderList as he, createTextVNode as Ne, normalizeClass as Te, watch as kt, isRef as Ct, resolveDynamicComponent as At } from "vue";
3
- import { F as Dt } from "./decimal-DwlcTwF4.js";
3
+ import { F as Dt } from "./decimal-BG61A172.js";
4
4
  import { useCoreStore as Me, useI18n as vt } from "@feedmepos/mf-common";
5
5
  import { useDialog as et, useSnackbar as Ke, components as Ye, FmButtonVariant as le, useProxiedModel as qt } from "@feedmepos/ui-library";
6
- import { F as $e } from "./FmAdminBadge-Cj1R2Bi0.js";
7
- import { b as Tt, u as Pt, P as we, f as It } from "./format-unit-display-B7zglpxP.js";
6
+ import { F as $e } from "./FmAdminBadge-DUYqoh_b.js";
7
+ import { b as Tt, u as Pt, P as we, f as It } from "./format-unit-display-BcCVYu07.js";
8
8
  import { E as Ft } from "./empty-placeholder-wf6-BWE8.js";
9
- import { _ as Lt, F as Et, a as Bt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BheQFvJF.js";
9
+ import { _ as Lt, F as Et, a as Bt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-a967Y4eW.js";
10
10
  import { u as Vt, R as lt } from "./usePromise-CbVUCxhj.js";
11
- import { u as Ut } from "./index-CaMvI8x0.js";
11
+ import { u as Ut } from "./index-B9eaFsQz.js";
12
12
  const je = gt((b, t) => {
13
13
  const s = ge(), _ = Me();
14
14
  return {
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as U, renderSlot as xe, withDirectives as Pe, normalizeClass as re, vModelText as Be, reactive as st, h as j, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as qe, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
2
- import { K as We, aJ as he, t as Ne, I as it, aK as ut, aL as dt, j as se, aM as mt, b as Ke, a as Ge, Q as Le, c as ge, m as ke, Y as be, T as ye, A as we, M as pt, G as ee, u as Je, an as ct, a0 as ft, E as Ze, e as ue, aN as ve, ai as yt, s as vt, aa as bt, B as gt, i as Ee, _ as ht, C as xt } from "./app-D68Nrj_W.js";
2
+ import { L as We, aK as he, t as Ne, I as it, aL as ut, aM as dt, j as se, aN as mt, b as Ge, a as Ke, T as Le, c as ge, n as ke, Z as be, V as ye, A as we, M as pt, J as ee, u as Ze, ao as ct, a1 as ft, G as Je, e as ue, aO as ve, aj as yt, v as vt, ab as bt, C as gt, i as Ee, _ as ht, E as xt } from "./app-7RQRfUWP.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
- import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-B7zglpxP.js";
4
+ import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-BcCVYu07.js";
5
5
  import { components as de, useSnackbar as Ct, useProxiedModel as Xe, useBreakpoints as Ft } from "@feedmepos/ui-library";
6
6
  import { defineStore as St, storeToRefs as He } from "pinia";
7
- import { _ as It, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BheQFvJF.js";
8
- import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C1pSdLfz.js";
9
- import { u as Rt } from "./supplier-AxlUb2WF.js";
10
- import { u as Ut } from "./use-ingredient-select-dialog-BH-QS0jx.js";
7
+ import { _ as It, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-a967Y4eW.js";
8
+ import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-SmAbact2.js";
9
+ import { u as Rt } from "./supplier-T0SjVZcK.js";
10
+ import { u as Ut } from "./use-ingredient-select-dialog-Rvaune-D.js";
11
11
  const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Lt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
12
12
  __name: "FmMinMaxInput",
13
13
  props: {
@@ -176,7 +176,7 @@ function Qt(p) {
176
176
  };
177
177
  }
178
178
  const et = St("netsuite-custom-field-helper", () => {
179
- const p = Ke();
179
+ const p = Ge();
180
180
  function h(v, a, r, s, u) {
181
181
  var F;
182
182
  if (!r) {
@@ -201,7 +201,7 @@ const et = St("netsuite-custom-field-helper", () => {
201
201
  });
202
202
  var Q = /* @__PURE__ */ ((p) => (p.Code = "Code", p.Name = "Name", p.DefaultAmount = "DefaultAmount", p.Limit = "Limit", p.Step = "Step", p.Cost = "Cost", p.Delete = "Delete", p))(Q || {});
203
203
  function Yt(p, h = {}) {
204
- const { t: v } = me(), a = Ge(), r = ge(), s = st({}), u = et();
204
+ const { t: v } = me(), a = Ke(), r = ge(), s = st({}), u = et();
205
205
  Te(() => {
206
206
  for (const c of p.items) {
207
207
  if (!c.totalCost)
@@ -492,7 +492,7 @@ function Yt(p, h = {}) {
492
492
  })
493
493
  };
494
494
  }
495
- const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-center" }, Gt = { class: "flex-1 flex gap-1 items-center" }, Jt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Zt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = {
495
+ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-center" }, Kt = { class: "flex-1 flex gap-1 items-center" }, Zt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Jt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = {
496
496
  key: 0,
497
497
  class: "flex gap-8 w-full"
498
498
  }, so = { class: "flex-1 flex flex-col gap-4" }, lo = { class: "flex-1 flex flex-col gap-4" }, no = { class: "flex gap-8 w-full" }, ao = { class: "flex-1 flex flex-col gap-4" }, ro = /* @__PURE__ */ ae({
@@ -507,13 +507,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
507
507
  return a;
508
508
  }
509
509
  return (a, r) => {
510
- var u, x, F, c, o, f, b, k, T, R, P, d, y, w, i, g, O, M, _, W, te, E, B, J, l, n, C, q, z, K;
510
+ var u, x, F, c, o, f, b, k, T, R, P, d, y, w, i, g, O, M, _, W, te, E, B, Z, l, n, C, q, z, G;
511
511
  const s = V("FmLabel");
512
512
  return $(), N("div", Wt, [
513
- e("div", Kt, [
514
- e("div", Gt, [
515
- e("span", Jt, " (" + I(a.row.original.sku.code) + ") ", 1),
516
- e("span", Zt, I(a.row.original.sku.name), 1)
513
+ e("div", Gt, [
514
+ e("div", Kt, [
515
+ e("span", Zt, " (" + I(a.row.original.sku.code) + ") ", 1),
516
+ e("span", Jt, I(a.row.original.sku.name), 1)
517
517
  ]),
518
518
  e("div", null, [
519
519
  m(t(ee), {
@@ -561,7 +561,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
561
561
  }, null, 8, ["label"]),
562
562
  m(t(ee), {
563
563
  render: (B = (E = (te = a.cellByColId[t(Q).Step]) == null ? void 0 : te.column) == null ? void 0 : E.columnDef) == null ? void 0 : B.cell,
564
- props: (l = (J = a.cellByColId[t(Q).Step]) == null ? void 0 : J.getContext) == null ? void 0 : l.call(J)
564
+ props: (l = (Z = a.cellByColId[t(Q).Step]) == null ? void 0 : Z.getContext) == null ? void 0 : l.call(Z)
565
565
  }, null, 8, ["render", "props"]),
566
566
  r[3] || (r[3] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
567
567
  ])
@@ -573,7 +573,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
573
573
  }, null, 8, ["label"]),
574
574
  m(t(ee), {
575
575
  render: (q = (C = (n = a.cellByColId[t(Q).Limit]) == null ? void 0 : n.column) == null ? void 0 : C.columnDef) == null ? void 0 : q.cell,
576
- props: (K = (z = a.cellByColId[t(Q).Limit]) == null ? void 0 : z.getContext) == null ? void 0 : K.call(z)
576
+ props: (G = (z = a.cellByColId[t(Q).Limit]) == null ? void 0 : z.getContext) == null ? void 0 : G.call(z)
577
577
  }, null, 8, ["render", "props"]),
578
578
  r[4] || (r[4] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
579
579
  ])
@@ -637,7 +637,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
637
637
  },
638
638
  emits: ["update:disabled"],
639
639
  setup(p, { expose: h, emit: v }) {
640
- const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Je(), c = Ge(), o = Rt(), f = ge(), b = Ke(), k = et();
640
+ const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Ze(), c = Ke(), o = Rt(), f = ge(), b = Ge(), k = et();
641
641
  Ce(
642
642
  () => s.purchaseOrder.items.length,
643
643
  () => {
@@ -773,39 +773,39 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
773
773
  }
774
774
  })
775
775
  ), E = L(() => te.columnDefs.value), { promptSelectIngredients: B } = Ut();
776
- async function J() {
776
+ async function Z() {
777
777
  const n = c.skus.map((D) => ({
778
778
  label: D.name,
779
779
  sublabel: D.code,
780
780
  value: D
781
781
  })).filter((D) => {
782
782
  var A;
783
- return (A = s.purchaseOrder.items) == null ? void 0 : A.find((G) => G.sku._id === D.value._id);
783
+ return (A = s.purchaseOrder.items) == null ? void 0 : A.find((K) => K.sku._id === D.value._id);
784
784
  }).map((D) => D.value), C = s.purchaseOrder.items ?? [], q = await B(
785
785
  n.map((D) => D._id),
786
786
  (D) => {
787
- const A = c.skuById[D], G = C.find((H) => H.sku._id === A._id);
788
- if (G)
789
- return G;
790
- const Z = { amount: 1, precision: be(A.unit) };
787
+ const A = c.skuById[D], K = C.find((H) => H.sku._id === A._id);
788
+ if (K)
789
+ return K;
790
+ const J = { amount: 1, precision: be(A.unit) };
791
791
  let S = {
792
792
  id: f.usePurchaseOrderV2 ? crypto.randomUUID() : void 0,
793
793
  sku: A,
794
794
  code: A.code,
795
795
  name: A.name,
796
- quantity: Z,
797
- minimumQuantity: Z,
796
+ quantity: J,
797
+ minimumQuantity: J,
798
798
  // maximumQuantity: adjustmentAmountMultiplyDecimal(minimumQuantity, {
799
799
  // amount: 100,
800
800
  // precision: 0
801
801
  // }),
802
- quantityStep: Z
802
+ quantityStep: J
803
803
  };
804
804
  return k.validateUnitInput(
805
805
  S,
806
806
  A,
807
807
  {
808
- amount: Z,
808
+ amount: J,
809
809
  measurement: null
810
810
  },
811
811
  (H) => {
@@ -815,28 +815,28 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
815
815
  }
816
816
  );
817
817
  if (!q) return;
818
- const z = q.map((D) => D.sku._id), K = [];
818
+ const z = q.map((D) => D.sku._id), G = [];
819
819
  for (const D of z) {
820
- const A = C.filter((G) => G.sku._id === D);
820
+ const A = C.filter((K) => K.sku._id === D);
821
821
  if (A.length > 0)
822
- K.push(...A);
822
+ G.push(...A);
823
823
  else {
824
- const G = q.find((Z) => Z.sku._id === D);
825
- G && K.push(G);
824
+ const K = q.find((J) => J.sku._id === D);
825
+ K && G.push(K);
826
826
  }
827
827
  }
828
- K.sort((D, A) => D.sku.code.localeCompare(A.sku.code)), s.purchaseOrder.items = K;
828
+ G.sort((D, A) => D.sku.code.localeCompare(A.sku.code)), s.purchaseOrder.items = G;
829
829
  }
830
830
  return (l, n) => {
831
- const C = V("FmTextField"), q = V("FmSelect"), z = V("FmTextarea"), K = V("FmButton"), D = V("FmTable"), A = V("FmFormGroup"), G = V("FmForm");
832
- return $(), le(G, {
831
+ const C = V("FmTextField"), q = V("FmSelect"), z = V("FmTextarea"), G = V("FmButton"), D = V("FmTable"), A = V("FmFormGroup"), K = V("FmForm");
832
+ return $(), le(K, {
833
833
  ref_key: "formRef",
834
834
  ref: _,
835
835
  class: "flex flex-col gap-32",
836
836
  disabled: l.disabled
837
837
  }, {
838
838
  default: U(() => {
839
- var Z;
839
+ var J;
840
840
  return [
841
841
  e("div", co, [
842
842
  e("div", fo, [
@@ -924,7 +924,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
924
924
  e("div", yo, [
925
925
  e("div", vo, [
926
926
  n[8] || (n[8] = e("div", { class: "flex-1 fm-typo-en-title-sm-600" }, "Locations", -1)),
927
- m(K, {
927
+ m(G, {
928
928
  disabled: l.disabled,
929
929
  label: "Select location",
930
930
  "prepend-icon": "add",
@@ -943,7 +943,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
943
943
  e("div", bo, [
944
944
  m(A, {
945
945
  "model-value": [
946
- (Z = a.modelValue.purchaseOrder.supplier) == null ? void 0 : Z._id,
946
+ (J = a.modelValue.purchaseOrder.supplier) == null ? void 0 : J._id,
947
947
  ...a.modelValue.locations ?? []
948
948
  ].join(","),
949
949
  rules: [O]
@@ -953,7 +953,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
953
953
  e("div", go, [
954
954
  e("div", ho, [
955
955
  e("div", xo, I(t(u)("inventory.transfer.form.items.title")), 1),
956
- t(b).isEnabled ? ($(), le(K, {
956
+ t(b).isEnabled ? ($(), le(G, {
957
957
  key: 0,
958
958
  label: "Check NetSuite",
959
959
  "prepend-icon": "troubleshoot",
@@ -961,13 +961,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
961
961
  onClick: y,
962
962
  size: "md"
963
963
  })) : oe("", !0),
964
- m(K, {
964
+ m(G, {
965
965
  disabled: l.disabled,
966
966
  label: t(u)("inventory.transfer.form.items.addItem"),
967
967
  "prepend-icon": "add",
968
968
  variant: "plain",
969
969
  class: "border-2 rounded-lg border-fm-color-primary",
970
- onClick: n[5] || (n[5] = (S) => J()),
970
+ onClick: n[5] || (n[5] = (S) => Z()),
971
971
  size: "md"
972
972
  }, null, 8, ["disabled", "label"])
973
973
  ]),
@@ -1006,7 +1006,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1006
1006
  }, null, 8, ["row", "errorMessage", "disabled"])
1007
1007
  ]),
1008
1008
  "list-row": U((S) => [
1009
- ($(), le(Ze, {
1009
+ ($(), le(Je, {
1010
1010
  row: S,
1011
1011
  key: t(s).purchaseOrder.items.map((H) => H.sku._id).join(".")
1012
1012
  }, {
@@ -1291,10 +1291,10 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1291
1291
  }, jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qo = { class: "fm-typo-en-body-lg-600" }, Yo = {
1292
1292
  key: 2,
1293
1293
  class: "flex flex-col gap-4"
1294
- }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ko = { class: "fm-typo-en-body-lg-600" }, Go = {
1294
+ }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Go = { class: "fm-typo-en-body-lg-600" }, Ko = {
1295
1295
  key: 3,
1296
1296
  class: "flex flex-col gap-4"
1297
- }, Jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Zo = { class: "fm-typo-en-body-lg-600" }, Xo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, es = { class: "flex flex-col gap-8" }, ts = { class: "fm-typo-en-body-lg-600" }, os = { class: "flex w-full gap-4" }, ss = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, ls = { class: "fm-typo-en-body-lg-600 shrink-0" }, ns = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, as = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, rs = {
1297
+ }, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jo = { class: "fm-typo-en-body-lg-600" }, Xo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, es = { class: "flex flex-col gap-8" }, ts = { class: "fm-typo-en-body-lg-600" }, os = { class: "flex w-full gap-4" }, ss = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, ls = { class: "fm-typo-en-body-lg-600 shrink-0" }, ns = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, as = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, rs = {
1298
1298
  key: 0,
1299
1299
  class: "shrink-0 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
1300
1300
  }, is = {
@@ -1341,7 +1341,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1341
1341
  class: "flex flex-col gap-8 px-12 py-16"
1342
1342
  }, {
1343
1343
  default: U(() => {
1344
- var _, W, te, E, B, J, l, n, C;
1344
+ var _, W, te, E, B, Z, l, n, C;
1345
1345
  return [
1346
1346
  e("div", Do, [
1347
1347
  e("div", Vo, I(t(s)("inventory.transfer.template.details.templateSummary")), 1),
@@ -1370,15 +1370,15 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1370
1370
  ])) : oe("", !0),
1371
1371
  (B = (E = u.value) == null ? void 0 : E.supplier) != null && B.name ? ($(), N("div", Ho, [
1372
1372
  e("div", jo, I(t(s)("inventory.transfer.receiveRequest.details.from")), 1),
1373
- e("div", Qo, I((l = (J = u.value) == null ? void 0 : J.supplier) == null ? void 0 : l.name), 1)
1373
+ e("div", Qo, I((l = (Z = u.value) == null ? void 0 : Z.supplier) == null ? void 0 : l.name), 1)
1374
1374
  ])) : oe("", !0),
1375
1375
  (n = u.value) != null && n.ref ? ($(), N("div", Yo, [
1376
1376
  e("div", Wo, I(t(s)("inventory.transfer.receiveRequest.details.reference")), 1),
1377
- e("div", Ko, I(u.value.ref), 1)
1377
+ e("div", Go, I(u.value.ref), 1)
1378
1378
  ])) : oe("", !0),
1379
- (C = u.value) != null && C.remark ? ($(), N("div", Go, [
1380
- e("div", Jo, I(t(s)("inventory.transfer.receiveRequest.details.remark")), 1),
1381
- e("div", Zo, I(u.value.remark), 1)
1379
+ (C = u.value) != null && C.remark ? ($(), N("div", Ko, [
1380
+ e("div", Zo, I(t(s)("inventory.transfer.receiveRequest.details.remark")), 1),
1381
+ e("div", Jo, I(u.value.remark), 1)
1382
1382
  ])) : oe("", !0)
1383
1383
  ])
1384
1384
  ];
@@ -1455,7 +1455,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1455
1455
  }), cs = { class: "flex-1 flex flex-col gap-8" }, fs = { class: "flex flex-col" }, ys = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vs = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, bs = { class: "fm-typo-en-body-lg-400" }, gs = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, hs = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, $s = /* @__PURE__ */ ae({
1456
1456
  __name: "TransferTemplateView",
1457
1457
  setup(p) {
1458
- const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = Tt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k = Je(), { breakpoints: T } = Ft();
1458
+ const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = Tt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k = Ze(), { breakpoints: T } = Ft();
1459
1459
  Te(F.fetchTemplates);
1460
1460
  const R = L(
1461
1461
  () => f.value || c.value || !k._currentLocation
@@ -1534,30 +1534,30 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1534
1534
  "page-size": w.value
1535
1535
  }, {
1536
1536
  "list-row": U((E) => [
1537
- m(Ze, {
1537
+ m(Je, {
1538
1538
  row: E,
1539
1539
  onRowClick: (B) => t(a)(B)
1540
1540
  }, {
1541
1541
  default: U((B) => {
1542
- var J, l, n, C, q, z, K, D, A, G, Z, S, H, ie, Fe, Se, Ie, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Ue;
1542
+ var Z, l, n, C, q, z, G, D, A, K, J, S, H, ie, Fe, Se, Ie, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Ue;
1543
1543
  return [
1544
1544
  e("div", cs, [
1545
1545
  e("div", fs, [
1546
1546
  e("div", ys, [
1547
1547
  m(t(ee), {
1548
- render: (n = (l = (J = B._id) == null ? void 0 : J.column) == null ? void 0 : l.columnDef) == null ? void 0 : n.cell,
1548
+ render: (n = (l = (Z = B._id) == null ? void 0 : Z.column) == null ? void 0 : l.columnDef) == null ? void 0 : n.cell,
1549
1549
  props: (q = (C = B._id) == null ? void 0 : C.getContext) == null ? void 0 : q.call(C)
1550
1550
  }, null, 8, ["render", "props"])
1551
1551
  ]),
1552
1552
  e("div", vs, [
1553
1553
  m(t(ee), {
1554
- render: (D = (K = (z = B.name) == null ? void 0 : z.column) == null ? void 0 : K.columnDef) == null ? void 0 : D.cell,
1555
- props: (G = (A = B.name) == null ? void 0 : A.getContext) == null ? void 0 : G.call(A)
1554
+ render: (D = (G = (z = B.name) == null ? void 0 : z.column) == null ? void 0 : G.columnDef) == null ? void 0 : D.cell,
1555
+ props: (K = (A = B.name) == null ? void 0 : A.getContext) == null ? void 0 : K.call(A)
1556
1556
  }, null, 8, ["render", "props"])
1557
1557
  ]),
1558
1558
  e("div", bs, [
1559
1559
  m(t(ee), {
1560
- render: (H = (S = (Z = B.supplier) == null ? void 0 : Z.column) == null ? void 0 : S.columnDef) == null ? void 0 : H.cell,
1560
+ render: (H = (S = (J = B.supplier) == null ? void 0 : J.column) == null ? void 0 : S.columnDef) == null ? void 0 : H.cell,
1561
1561
  props: (Fe = (ie = B.supplier) == null ? void 0 : ie.getContext) == null ? void 0 : Fe.call(ie)
1562
1562
  }, null, 8, ["render", "props"])
1563
1563
  ]),
@@ -1,11 +1,11 @@
1
- import { defineComponent as G, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as R, watch as ee, resolveComponent as I, createBlock as T, withCtx as A, createVNode as f, unref as l, isRef as te, normalizeClass as ie, normalizeStyle as ue, Teleport as de, normalizeProps as me, guardReactiveProps as ce } from "vue";
2
- import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, Q as fe, m as j, A as ye, j as J, T as be, V as ge, q as oe, u as xe, b as _e, B as he, _ as Ve, C as Ue, E as we, G as Ce } from "./app-D68Nrj_W.js";
1
+ import { defineComponent as G, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as W, ref as R, watch as ee, resolveComponent as I, createBlock as T, withCtx as A, createVNode as f, unref as l, isRef as te, normalizeClass as ie, normalizeStyle as ue, Teleport as de, normalizeProps as me, guardReactiveProps as ce } from "vue";
2
+ import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, T as fe, n as j, A as ye, j as Y, V as be, W as ge, r as oe, u as xe, b as _e, C as he, _ as Ve, E as Ue, G as we, J as Ce } from "./app-7RQRfUWP.js";
3
3
  import { useDialog as Se, useSnackbar as ae, useProxiedModel as le, useBreakpoints as ke } from "@feedmepos/ui-library";
4
4
  import { i as Fe, _ as Ee } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { defineStore as $e, storeToRefs as Ie } from "pinia";
6
- import { useI18n as O } from "@feedmepos/mf-common";
7
- import { F as De } from "./decimal-DwlcTwF4.js";
8
- import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-rynZcLum.js";
6
+ import { useI18n as J } from "@feedmepos/mf-common";
7
+ import { F as De } from "./decimal-BG61A172.js";
8
+ import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-EAczeEql.js";
9
9
  const Re = { class: "flex flex-col gap-8" }, Me = {
10
10
  key: 0,
11
11
  class: "flex flex-col"
@@ -51,7 +51,7 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
51
51
  s("div", Te, V((t = i.bindedIngredient) != null && t.length ? "Convert binding" : "Item unit"), 1)
52
52
  ]);
53
53
  }), 128))
54
- ])) : Y("", !0),
54
+ ])) : W("", !0),
55
55
  r.value.length ? (v(), w("div", Be, [
56
56
  p[1] || (p[1] = s("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
57
57
  s("div", { class: "flex-1 py-8 px-16" }, "Recipe"),
@@ -70,7 +70,7 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
70
70
  s("div", ze, V((t = i.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((C) => C.code).join(", ")) + " " + V(i.bindedIngredient && ((u = i.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((g = i.bindedIngredient) == null ? void 0 : g.length) - 3} more` : ""), 1)
71
71
  ]);
72
72
  }), 128))
73
- ])) : Y("", !0),
73
+ ])) : W("", !0),
74
74
  d.value.length ? (v(), w("div", Le, [
75
75
  p[2] || (p[2] = s("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
76
76
  s("div", { class: "flex-1 py-8 px-16" }, "Menu"),
@@ -89,10 +89,10 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
89
89
  s("div", qe, V((t = i.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((C) => C.code).join(", ")) + " " + V(i.bindedIngredient && ((u = i.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((g = i.bindedIngredient) == null ? void 0 : g.length) - 3} more` : ""), 1)
90
90
  ]);
91
91
  }), 128))
92
- ])) : Y("", !0)
92
+ ])) : W("", !0)
93
93
  ]));
94
94
  }
95
- }), W = $e("unitForm", function() {
95
+ }), Q = $e("unitForm", function() {
96
96
  const c = Se(), y = ae(), m = K(), a = R(!1), r = R();
97
97
  function d() {
98
98
  const t = {
@@ -187,7 +187,7 @@ const Re = { class: "flex flex-col gap-8" }, Me = {
187
187
  };
188
188
  });
189
189
  function Ge() {
190
- const { updateUnit: F, deleteUnit: c } = W(), { t: y } = O();
190
+ const { updateUnit: F, deleteUnit: c } = Q(), { t: y } = J();
191
191
  async function m(r, d) {
192
192
  const n = se(d);
193
193
  if (r === L.Edit) {
@@ -232,7 +232,7 @@ function Ge() {
232
232
  }
233
233
  ] };
234
234
  }
235
- const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe = { class: "flex-1" }, Ye = { class: "flex-1" }, Je = { class: "flex" }, We = { class: "flex items-center" }, Xe = { class: "fm-typo-en-body-lg-600 flex-grow" }, Ze = { class: "flex flex-col gap-24" }, et = { class: "flex gap-24" }, tt = { class: "flex-1" }, nt = { class: "flex-1" }, ot = /* @__PURE__ */ G({
235
+ const Ke = { class: "flex flex-col gap-24" }, Je = { class: "flex gap-24" }, Oe = { class: "flex-1" }, We = { class: "flex-1" }, Ye = { class: "flex" }, Qe = { class: "flex items-center" }, Xe = { class: "fm-typo-en-body-lg-600 flex-grow" }, Ze = { class: "flex flex-col gap-24" }, et = { class: "flex gap-24" }, tt = { class: "flex-1" }, nt = { class: "flex-1" }, ot = /* @__PURE__ */ G({
236
236
  __name: "UnitForm",
237
237
  props: {
238
238
  mode: {},
@@ -241,7 +241,7 @@ const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe
241
241
  },
242
242
  emits: ["update:modelValue", "click:submit"],
243
243
  setup(F, { expose: c, emit: y }) {
244
- const m = F, a = y, { t: r } = O();
244
+ const m = F, a = y, { t: r } = J();
245
245
  function d() {
246
246
  a("click:submit");
247
247
  }
@@ -335,7 +335,7 @@ const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe
335
335
  (o = (e = S.value) == null ? void 0 : e.resetInputs) == null || o.call(e);
336
336
  }
337
337
  }), (e, o) => {
338
- const x = I("FmTextField"), M = I("FmStepperField"), _ = I("FmButton"), Q = I("FmCard"), $ = I("FmForm");
338
+ const x = I("FmTextField"), M = I("FmStepperField"), _ = I("FmButton"), O = I("FmCard"), $ = I("FmForm");
339
339
  return v(), T($, {
340
340
  ref_key: "formRef",
341
341
  ref: S,
@@ -346,8 +346,8 @@ const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe
346
346
  var P;
347
347
  return [
348
348
  s("div", Ke, [
349
- s("div", Oe, [
350
- s("div", Qe, [
349
+ s("div", Je, [
350
+ s("div", Oe, [
351
351
  f(x, {
352
352
  disabled: e.disabled,
353
353
  label: l(r)("inventory.unit.name"),
@@ -357,7 +357,7 @@ const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe
357
357
  "label-mark": "required"
358
358
  }, null, 8, ["disabled", "label", "modelValue", "rules"])
359
359
  ]),
360
- s("div", Ye, [
360
+ s("div", We, [
361
361
  f(x, {
362
362
  disabled: e.disabled,
363
363
  label: l(r)("inventory.unit.symbol"),
@@ -379,7 +379,7 @@ const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe
379
379
  }, null, 8, ["disabled", "label", "modelValue", "rules"])
380
380
  ])
381
381
  ]),
382
- s("div", Je, [
382
+ s("div", Ye, [
383
383
  f(_, {
384
384
  disabled: e.disabled,
385
385
  type: "button",
@@ -389,13 +389,13 @@ const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe
389
389
  onClick: g
390
390
  }, null, 8, ["disabled", "label"])
391
391
  ]),
392
- (v(!0), w(q, null, H((P = e.modelValue) == null ? void 0 : P.measurements, (k, h) => (v(), T(Q, {
392
+ (v(!0), w(q, null, H((P = e.modelValue) == null ? void 0 : P.measurements, (k, h) => (v(), T(O, {
393
393
  class: "flex flex-col gap-16 p-16",
394
394
  variant: "outlined",
395
395
  key: k.id
396
396
  }, {
397
397
  default: A(() => [
398
- s("div", We, [
398
+ s("div", Qe, [
399
399
  s("div", Xe, V(l(r)("inventory.unit.measurement.measurementDefault", [h + 1])), 1),
400
400
  f(_, {
401
401
  disabled: e.disabled,
@@ -432,7 +432,7 @@ const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe
432
432
  disabled: e.disabled,
433
433
  class: "col-span-3",
434
434
  label: l(r)("inventory.unit.measurement.conversion"),
435
- "model-value": +l(J)(e.modelValue.measurements[h].conversion),
435
+ "model-value": +l(Y)(e.modelValue.measurements[h].conversion),
436
436
  "onUpdate:modelValue": (E) => u.value = u.value.map(
437
437
  (D, B) => B === h ? {
438
438
  ...D,
@@ -443,10 +443,10 @@ const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe
443
443
  } : D
444
444
  ),
445
445
  rules: [l(ge)(0)],
446
- step: +l(J)({ amount: 1, precision: t.value }),
446
+ step: +l(Y)({ amount: 1, precision: t.value }),
447
447
  "helper-text": l(r)("inventory.unit.measurement.conversionHelper", {
448
448
  measurementSymbol: e.modelValue.measurements[h].name || " measurement unit",
449
- conversion: +l(J)(e.modelValue.measurements[h].conversion),
449
+ conversion: +l(Y)(e.modelValue.measurements[h].conversion),
450
450
  unitSymbol: i.value || "base unit"
451
451
  })
452
452
  }, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue", "rules", "step", "helper-text"])
@@ -469,7 +469,7 @@ const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe
469
469
  },
470
470
  emits: ["update:show"],
471
471
  setup(F) {
472
- const c = F, y = K(), m = ae(), { t: a } = O(), r = le(c, "show"), d = le(c, "unit"), n = b(() => {
472
+ const c = F, y = K(), m = ae(), { t: a } = J(), r = le(c, "show"), d = le(c, "unit"), n = b(() => {
473
473
  switch (c.mode) {
474
474
  case U.READ:
475
475
  return "";
@@ -585,13 +585,13 @@ const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe
585
585
  }), at = { class: "flex flex-col py-8" }, rt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, bt = /* @__PURE__ */ G({
586
586
  __name: "UnitView",
587
587
  setup(F) {
588
- const c = K(), y = xe(), m = _e(), a = b(() => c.units), { createUnit: r, updateUnit: d } = W(), { unitDialogProps: n, unitViewLoading: p } = Ie(W()), { columnDefs: i } = Ge();
588
+ const c = K(), y = xe(), m = _e(), a = b(() => c.units), { createUnit: r, updateUnit: d } = Q(), { unitDialogProps: n, unitViewLoading: p } = Ie(Q()), { columnDefs: i } = Ge();
589
589
  function t(M) {
590
590
  M === "add" && r();
591
591
  }
592
- const u = R(""), g = b(() => p.value), { breakpoints: C } = ke(), S = b(() => C.value.xs || C.value.sm), e = b(() => S.value ? 10 : 20), o = he(), { t: x } = O();
592
+ const u = R(""), g = b(() => p.value), { breakpoints: C } = ke(), S = b(() => C.value.xs || C.value.sm), e = b(() => S.value ? 10 : 20), o = he(), { t: x } = J();
593
593
  return (M, _) => {
594
- const Q = I("FmTable");
594
+ const O = I("FmTable");
595
595
  return v(), T(Ve, {
596
596
  title: l(x)("inventory.unit.title"),
597
597
  actions: l(m).isEnabled ? [] : [
@@ -619,7 +619,7 @@ const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe
619
619
  search: u.value,
620
620
  "onUpdate:search": _[0] || (_[0] = ($) => u.value = $)
621
621
  }, null, 8, ["search"]),
622
- f(Q, {
622
+ f(O, {
623
623
  style: ue(l(o).tableHeight),
624
624
  "column-defs": l(i),
625
625
  "row-data": a.value,
@@ -1,9 +1,9 @@
1
1
  import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as R, createElementBlock as q, toRaw as ge, reactive as $e, createElementVNode as g, toDisplayString as T, unref as c, createVNode as _, resolveComponent as N, createSlots as Se, withCtx as B, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as x, isRef as we, normalizeClass as Pe, normalizeStyle as Re } from "vue";
2
- import { a3 as Ue, av as Ee, aw as Te, h as Le, D as Ve, i as Q, f as O, ax as Ne, ao as Be, m as L, e as E, S as qe, u as ze, B as Ie, _ as je, C as Ge, E as Oe, G as X } from "./app-D68Nrj_W.js";
2
+ import { a4 as Ue, aw as Ee, ax as Te, h as Le, D as Ve, i as Q, f as O, ay as Ne, ap as Be, n as L, e as E, S as qe, u as ze, C as Ie, _ as je, E as Ge, G as Oe, J as X } from "./app-7RQRfUWP.js";
3
3
  import { useCoreStore as Me, useI18n as j } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as Ke, useDialog as Ce, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as He } from "@feedmepos/ui-library";
5
5
  import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
6
- import { _ as Ze } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
6
+ import { _ as Je } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
7
7
  const Y = Ue((f, h) => {
8
8
  const v = Me();
9
9
  return {
@@ -29,12 +29,12 @@ const Y = Ue((f, h) => {
29
29
  }
30
30
  };
31
31
  });
32
- function Je() {
32
+ function Ze() {
33
33
  return {
34
34
  warehouses: []
35
35
  };
36
36
  }
37
- const _e = W(Je());
37
+ const _e = W(Ze());
38
38
  function xe() {
39
39
  return {
40
40
  // state
@@ -697,7 +697,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
697
697
  ])
698
698
  ]),
699
699
  g("div", null, [
700
- _(Ze, {
700
+ _(Je, {
701
701
  entity: "warehouse",
702
702
  modelValue: p.value,
703
703
  "onUpdate:modelValue": e[11] || (e[11] = (t) => p.value = t)
@@ -980,7 +980,7 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
980
980
  onRowClick: (t) => w(t.original)
981
981
  }, {
982
982
  default: B((t) => {
983
- var y, V, $, P, K, re, ne, ue, H, ie, de, ce, pe, me, Z, fe, ye, he, ve, J, be;
983
+ var y, V, $, P, K, re, ne, ue, H, ie, de, ce, pe, me, J, fe, ye, he, ve, Z, be;
984
984
  return [
985
985
  g("div", Fo, [
986
986
  g("div", $o, [
@@ -998,13 +998,13 @@ const co = { class: "flex gap-8 items-center" }, po = { key: 0 }, mo = { key: 1
998
998
  (de = D.original) != null && de.email ? (R(), q("div", Wo, [
999
999
  _(c(X), {
1000
1000
  render: (me = (pe = (ce = t.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
1001
- props: (fe = (Z = t.email) == null ? void 0 : Z.getContext) == null ? void 0 : fe.call(Z)
1001
+ props: (fe = (J = t.email) == null ? void 0 : J.getContext) == null ? void 0 : fe.call(J)
1002
1002
  }, null, 8, ["render", "props"])
1003
1003
  ])) : Ae("", !0),
1004
1004
  g("div", Do, [
1005
1005
  _(c(X), {
1006
1006
  render: (ve = (he = (ye = t.address) == null ? void 0 : ye.column) == null ? void 0 : he.columnDef) == null ? void 0 : ve.cell,
1007
- props: (be = (J = t.address) == null ? void 0 : J.getContext) == null ? void 0 : be.call(J)
1007
+ props: (be = (Z = t.address) == null ? void 0 : Z.getContext) == null ? void 0 : be.call(Z)
1008
1008
  }, null, 8, ["render", "props"])
1009
1009
  ])
1010
1010
  ])