@feedmepos/mf-inventory-portal 0.0.22-dev.11 → 0.0.22-dev.12

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 (33) hide show
  1. package/dist/{ApprovalView-D0WHopPL.js → ApprovalView-Cjeqabxg.js} +26 -26
  2. package/dist/{BindingsDialog-Ddv46-I4.js → BindingsDialog-DYf9izzO.js} +1 -1
  3. package/dist/{BindingsPicker-CbNehOQo.js → BindingsPicker--GhOF5Zy.js} +7 -7
  4. package/dist/{BindingsTable-C-z5jzGu.js → BindingsTable-DFGX1bO_.js} +1 -1
  5. package/dist/{ClosingTemplateView-Bs59bML_.js → ClosingTemplateView-D0ZehXOT.js} +23 -23
  6. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGIfL24N.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js} +8 -8
  7. package/dist/{IngredientsView-Bk0U9IrL.js → IngredientsView-D-M4VjtX.js} +3 -3
  8. package/dist/{IntegrationView-hEv2Fe67.js → IntegrationView-D29NyKuw.js} +2 -2
  9. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ButZx6Cm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMzUk8cN.js} +1 -1
  10. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D1WcEO5R.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CrYQR5oS.js} +1 -1
  11. package/dist/{PurchaseOrderPrintPreview-wJLaWy-I.js → PurchaseOrderPrintPreview-BmzWBQYf.js} +1 -1
  12. package/dist/{ReceiveRequestView-CT7_gSPj.js → ReceiveRequestView-D5uhgByr.js} +20 -20
  13. package/dist/{RecipeView-smOk18iy.js → RecipeView-CREeE1nK.js} +3 -3
  14. package/dist/{StockView-CE00jzyG.js → StockView-jAGaTT7q.js} +586 -568
  15. package/dist/{SupplierView-D346tx42.js → SupplierView-BjkhByNr.js} +3 -3
  16. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-ixxW-kNE.js → TransferDetails.vue_vue_type_script_setup_true_lang-CInXmMf_.js} +4 -4
  17. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-Cf9TVjj7.js → TransferDialog.vue_vue_type_script_setup_true_lang-CLiLhIMS.js} +56 -56
  18. package/dist/{TransferTemplateView-Cz6Hlmtm.js → TransferTemplateView-CUqEsRJ6.js} +68 -68
  19. package/dist/{UnitView-BdEvCjCv.js → UnitView-BrlpQn3T.js} +4 -4
  20. package/dist/{WarehouseView-CtqTSV9B.js → WarehouseView-CbTTIdv9.js} +15 -15
  21. package/dist/{app-BbLqKVBN.js → app-BDzV3RNp.js} +1627 -1581
  22. package/dist/app.js +1 -1
  23. package/dist/{decimal-BXH34eZD.js → decimal-CRTw2PGO.js} +1 -1
  24. package/dist/{defineDeepModel-CN2db5nM.js → defineDeepModel-BoSSw2c6.js} +4 -4
  25. package/dist/{format-time-from-id-mDqFHPw7.js → format-time-from-id-CxoHtJa5.js} +1 -1
  26. package/dist/{id-to-date-CRXORa4v.js → id-to-date-CJbxtIFh.js} +1 -1
  27. package/dist/{purchase-order-transaction-type-DHsIlV8_.js → purchase-order-transaction-type-0nZnCUE7.js} +38 -38
  28. package/dist/{supplier-DTKB6s-P.js → supplier-BA6jJGNv.js} +1 -1
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/dist/{use-template-enabled-locations-2-BVp9gXZX.js → use-template-enabled-locations-2-Di0NHn-g.js} +1 -1
  31. package/dist/{xlsx-CZubj3Ki.js → xlsx-BEDKASqP.js} +1 -1
  32. package/dist/{xlsx.util-DjhsRAqO.js → xlsx.util-MTUBPx67.js} +2 -2
  33. package/package.json +3 -3
@@ -1,19 +1,19 @@
1
- import { defineComponent as K, onMounted as me, computed as M, ref as B, watch as ce, inject as Ge, resolveComponent as R, openBlock as C, createElementBlock as N, createElementVNode as o, createVNode as p, withCtx as L, renderSlot as Me, withDirectives as De, normalizeClass as re, vModelText as Re, reactive as Ye, h as W, toDisplayString as S, unref as t, createBlock as H, isRef as Ee, createCommentVNode as X, Fragment as ue, renderList as Ae, normalizeStyle as We, Teleport as Ke, mergeProps as Ie, normalizeProps as Ze, guardReactiveProps as Je } from "vue";
2
- import { u as Xe, _ as et, a as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGIfL24N.js";
3
- import { useI18n as Y } from "@feedmepos/mf-common";
4
- import { P as U, a as ot, f as nt, b as Ve, c as st } from "./purchase-order-transaction-type-DHsIlV8_.js";
1
+ import { defineComponent as K, onMounted as me, computed as M, ref as B, watch as ce, inject as Ye, resolveComponent as A, openBlock as C, createElementBlock as N, createElementVNode as o, createVNode as p, withCtx as L, renderSlot as Me, withDirectives as Re, normalizeClass as re, vModelText as Ae, reactive as Ge, h as W, toDisplayString as S, unref as t, createBlock as H, isRef as Ee, createCommentVNode as X, Fragment as ue, renderList as De, normalizeStyle as We, Teleport as Ke, mergeProps as Ie, normalizeProps as Ze, guardReactiveProps as Je } from "vue";
2
+ import { u as Xe, _ as et, a as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js";
3
+ import { useI18n as G } from "@feedmepos/mf-common";
4
+ import { P as U, a as ot, f as nt, b as Ve, c as st } from "./purchase-order-transaction-type-0nZnCUE7.js";
5
5
  import { F as ee, R as Le } from "./row-action.enum-PMKMRrZR.js";
6
- import { a0 as ie, t as Oe, I as lt, a1 as at, a2 as rt, a as j, D as Pe, R as de, a3 as it, a4 as ut, r as ae, a5 as dt, l as mt, A as Be, M as ct, b as Ue, u as pt, j as pe, y as qe, k as ft, a6 as se, a7 as yt, G as vt, a8 as bt } from "./app-BbLqKVBN.js";
6
+ import { a1 as ie, t as Oe, I as lt, a2 as at, a3 as rt, a as j, E as Pe, R as de, a4 as it, a5 as ut, s as ae, a6 as dt, l as mt, A as Be, M as ct, b as Ue, u as pt, j as pe, z as qe, k as ft, a7 as se, a8 as yt, H as vt, a9 as bt } from "./app-BDzV3RNp.js";
7
7
  import { components as le, useDialog as Ne, useSnackbar as _t, useProxiedModel as ze, useBreakpoints as xt } from "@feedmepos/ui-library";
8
8
  import { storeToRefs as ht } from "pinia";
9
- import { d as He } from "./defineDeepModel-CN2db5nM.js";
10
- import { c as gt, u as kt, _ as wt } from "./TransferDialog.vue_vue_type_script_setup_true_lang-Cf9TVjj7.js";
9
+ import { d as He } from "./defineDeepModel-BoSSw2c6.js";
10
+ import { c as gt, u as kt, _ as wt } from "./TransferDialog.vue_vue_type_script_setup_true_lang-CLiLhIMS.js";
11
11
  import { useRouter as Tt } from "vue-router";
12
- import { u as Ft } from "./supplier-DTKB6s-P.js";
12
+ import { u as Ft } from "./supplier-BA6jJGNv.js";
13
13
  import { F as z, _ as je } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
14
- import { u as St } from "./use-template-enabled-locations-2-BVp9gXZX.js";
15
- import { f as Ct } from "./format-time-from-id-mDqFHPw7.js";
16
- const $t = { class: "flex flex-col" }, Mt = { class: "flex flex-col" }, Dt = { class: "flex-1" }, Rt = { class: "flex items-center" }, At = { class: "flex-1" }, It = { class: "flex-1" }, Vt = /* @__PURE__ */ K({
14
+ import { u as St } from "./use-template-enabled-locations-2-Di0NHn-g.js";
15
+ import { f as Ct } from "./format-time-from-id-CxoHtJa5.js";
16
+ const $t = { class: "flex flex-col" }, Mt = { class: "flex flex-col" }, Rt = { class: "flex-1" }, At = { class: "flex items-center" }, Dt = { class: "flex-1" }, It = { class: "flex-1" }, Vt = /* @__PURE__ */ K({
17
17
  __name: "FmMinMaxInput",
18
18
  props: {
19
19
  rules: {},
@@ -86,7 +86,7 @@ const $t = { class: "flex flex-col" }, Mt = { class: "flex flex-col" }, Dt = { c
86
86
  l.max = null;
87
87
  c.min = l.min, c.max = l.max;
88
88
  });
89
- const b = Symbol.for("fm:form-state"), h = Ge(b, null), k = M(() => _.disabled ?? (h == null ? void 0 : h.getDisabled()) ?? !1), g = B(), $ = B(), F = B(!1), O = B(!1), E = M(() => F.value || O.value), P = M(() => [...[
89
+ const b = Symbol.for("fm:form-state"), h = Ye(b, null), k = M(() => _.disabled ?? (h == null ? void 0 : h.getDisabled()) ?? !1), g = B(), $ = B(), F = B(!1), O = B(!1), E = M(() => F.value || O.value), P = M(() => [...[
90
90
  function() {
91
91
  return typeof n(r.value) == "string" || typeof n(x.value) == "string" ? "Must be a number" : !0;
92
92
  },
@@ -95,10 +95,10 @@ const $t = { class: "flex flex-col" }, Mt = { class: "flex flex-col" }, Dt = { c
95
95
  }
96
96
  ], ..._.rules ?? []]);
97
97
  return (f, i) => {
98
- const l = R("FmLabel"), e = R("FmField"), a = R("FmFormGroup");
98
+ const l = A("FmLabel"), e = A("FmField"), a = A("FmFormGroup");
99
99
  return C(), N("div", $t, [
100
100
  o("div", Mt, [
101
- o("div", Dt, [
101
+ o("div", Rt, [
102
102
  p(l, {
103
103
  label: f.label,
104
104
  disabled: f.disabled,
@@ -108,11 +108,11 @@ const $t = { class: "flex flex-col" }, Mt = { class: "flex flex-col" }, Dt = { c
108
108
  ]),
109
109
  p(e, { focused: E.value }, {
110
110
  default: L(() => [
111
- o("div", Rt, [
111
+ o("div", At, [
112
112
  Me(f.$slots, "prepend"),
113
113
  i[6] || (i[6] = o("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Min.", -1)),
114
- o("div", At, [
115
- De(o("input", {
114
+ o("div", Dt, [
115
+ Re(o("input", {
116
116
  type: "text",
117
117
  ref_key: "minInputRef",
118
118
  ref: g,
@@ -125,13 +125,13 @@ const $t = { class: "flex flex-col" }, Mt = { class: "flex flex-col" }, Dt = { c
125
125
  "text-fm-color-typo-disabled": k.value
126
126
  })
127
127
  }, null, 34), [
128
- [Re, r.value]
128
+ [Ae, r.value]
129
129
  ])
130
130
  ]),
131
131
  i[7] || (i[7] = o("div", { class: "block h-32 mx-4 w-[1px] bg-fm-color-neutral-gray-200" }, null, -1)),
132
132
  i[8] || (i[8] = o("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400 pr-4" }, "Max.", -1)),
133
133
  o("div", It, [
134
- De(o("input", {
134
+ Re(o("input", {
135
135
  type: "text",
136
136
  ref_key: "maxInputRef",
137
137
  ref: $,
@@ -144,7 +144,7 @@ const $t = { class: "flex flex-col" }, Mt = { class: "flex flex-col" }, Dt = { c
144
144
  "text-fm-color-typo-disabled": k.value
145
145
  })
146
146
  }, null, 34), [
147
- [Re, x.value]
147
+ [Ae, x.value]
148
148
  ])
149
149
  ]),
150
150
  Me(f.$slots, "append")
@@ -177,7 +177,7 @@ function Ot(m, _) {
177
177
  }
178
178
  var V = /* @__PURE__ */ ((m) => (m.Code = "Code", m.Name = "Name", m.DefaultAmount = "DefaultAmount", m.Limit = "Limit", m.MinimumAmount = "MinimumAmount", m.Step = "Step", m.Cost = "Cost", m.Delete = "Delete", m))(V || {});
179
179
  function Pt(m) {
180
- const { t: _ } = Y(), c = Ye({});
180
+ const { t: _ } = G(), c = Ge({});
181
181
  me(() => {
182
182
  for (const d of m.items) {
183
183
  if (!d.totalCost)
@@ -367,17 +367,17 @@ function Pt(m) {
367
367
  columnDefs: M(() => Ue().enableTotalCost && m.transferType === U.PURCHASE ? n : n.filter((s) => s.id !== "Cost"))
368
368
  };
369
369
  }
370
- const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-center" }, Ut = { class: "flex-1 flex gap-1 items-center" }, qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, zt = { class: "flex gap-8 w-full" }, Ht = { class: "flex-1 flex flex-col gap-4" }, jt = { class: "flex-1 flex flex-col gap-4" }, Qt = { class: "flex gap-8 w-full" }, Gt = { class: "flex-1 flex flex-col gap-4" }, Yt = { class: "flex-1 flex flex-col gap-4" }, Wt = { class: "flex gap-8 w-full" }, Kt = { class: "flex-1 flex flex-col gap-4" }, Zt = /* @__PURE__ */ K({
370
+ const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-center" }, Ut = { class: "flex-1 flex gap-1 items-center" }, qt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, zt = { class: "flex gap-8 w-full" }, Ht = { class: "flex-1 flex flex-col gap-4" }, jt = { class: "flex-1 flex flex-col gap-4" }, Qt = { class: "flex gap-8 w-full" }, Yt = { class: "flex-1 flex flex-col gap-4" }, Gt = { class: "flex-1 flex flex-col gap-4" }, Wt = { class: "flex gap-8 w-full" }, Kt = { class: "flex-1 flex flex-col gap-4" }, Zt = /* @__PURE__ */ K({
371
371
  __name: "TransferTemplateItem",
372
372
  props: {
373
373
  cellByColId: {},
374
374
  row: {}
375
375
  },
376
376
  setup(m) {
377
- const { t: _ } = Y();
377
+ const { t: _ } = G();
378
378
  return (c, n) => {
379
- var d, s, r, x, b, h, k, g, $, F, O, E, P, f, i, l, e, a, u, y, T, D, I, A, w, q, Z, J, Q, G;
380
- const v = R("FmLabel");
379
+ var d, s, r, x, b, h, k, g, $, F, O, E, P, f, i, l, e, a, u, y, T, R, I, D, w, q, Z, J, Q, Y;
380
+ const v = A("FmLabel");
381
381
  return C(), N("div", Et, [
382
382
  o("div", Bt, [
383
383
  o("div", Ut, [
@@ -414,7 +414,7 @@ const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-cen
414
414
  ])
415
415
  ]),
416
416
  o("div", Qt, [
417
- o("div", Gt, [
417
+ o("div", Yt, [
418
418
  p(v, {
419
419
  label: t(_)(`inventory.transfer.form.items.table.${t(V).DefaultAmount}`)
420
420
  }, null, 8, ["label"]),
@@ -424,13 +424,13 @@ const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-cen
424
424
  }, null, 8, ["render", "props"]),
425
425
  n[2] || (n[2] = o("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
426
426
  ]),
427
- o("div", Yt, [
427
+ o("div", Gt, [
428
428
  p(v, {
429
429
  label: t(_)(`inventory.transfer.form.items.table.${t(V).Step}`)
430
430
  }, null, 8, ["label"]),
431
431
  p(t(z), {
432
- render: (I = (D = (T = c.cellByColId[t(V).Step]) == null ? void 0 : T.column) == null ? void 0 : D.columnDef) == null ? void 0 : I.cell,
433
- props: (w = (A = c.cellByColId[t(V).Step]) == null ? void 0 : A.getContext) == null ? void 0 : w.call(A)
432
+ render: (I = (R = (T = c.cellByColId[t(V).Step]) == null ? void 0 : T.column) == null ? void 0 : R.columnDef) == null ? void 0 : I.cell,
433
+ props: (w = (D = c.cellByColId[t(V).Step]) == null ? void 0 : D.getContext) == null ? void 0 : w.call(D)
434
434
  }, null, 8, ["render", "props"]),
435
435
  n[3] || (n[3] = o("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
436
436
  ])
@@ -442,7 +442,7 @@ const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-cen
442
442
  }, null, 8, ["label"]),
443
443
  p(t(z), {
444
444
  render: (J = (Z = (q = c.cellByColId[t(V).Limit]) == null ? void 0 : q.column) == null ? void 0 : Z.columnDef) == null ? void 0 : J.cell,
445
- props: (G = (Q = c.cellByColId[t(V).Limit]) == null ? void 0 : Q.getContext) == null ? void 0 : G.call(Q)
445
+ props: (Y = (Q = c.cellByColId[t(V).Limit]) == null ? void 0 : Q.getContext) == null ? void 0 : Y.call(Q)
446
446
  }, null, 8, ["render", "props"]),
447
447
  n[4] || (n[4] = o("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
448
448
  ])
@@ -457,7 +457,7 @@ const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-cen
457
457
  disabled: { type: Boolean }
458
458
  },
459
459
  setup(m, { expose: _ }) {
460
- const c = m, n = He(), { t: v } = Y(), d = pe(), s = pt(), r = Ft();
460
+ const c = m, n = He(), { t: v } = G(), d = pe(), s = pt(), r = Ft();
461
461
  ce(
462
462
  () => c.modelValue,
463
463
  (e) => {
@@ -575,30 +575,30 @@ const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-cen
575
575
  variant: "tertiary"
576
576
  }
577
577
  }).onPrimary((u) => {
578
- const y = n.purchaseOrder.items ?? [], T = u.map((D) => {
579
- const I = y.find((q) => q.sku._id === D._id);
578
+ const y = n.purchaseOrder.items ?? [], T = u.map((R) => {
579
+ const I = y.find((q) => q.sku._id === R._id);
580
580
  if (I)
581
581
  return I;
582
- const A = { amount: 1, precision: ae(D.unit) };
582
+ const D = { amount: 1, precision: ae(R.unit) };
583
583
  return {
584
- sku: D,
585
- code: D.code,
586
- name: D.name,
587
- quantity: A,
588
- minimumQuantity: A,
589
- maximumQuantity: ft(A, {
584
+ sku: R,
585
+ code: R.code,
586
+ name: R.name,
587
+ quantity: D,
588
+ minimumQuantity: D,
589
+ maximumQuantity: ft(D, {
590
590
  amount: 100,
591
591
  precision: 0
592
592
  }),
593
- quantityStep: A
593
+ quantityStep: D
594
594
  };
595
595
  });
596
- T.sort((D, I) => D.sku.code.localeCompare(I.sku.code)), n.purchaseOrder.items = T;
596
+ T.sort((R, I) => R.sku.code.localeCompare(I.sku.code)), n.purchaseOrder.items = T;
597
597
  });
598
598
  }
599
599
  return (e, a) => {
600
- const u = R("FmTextField"), y = R("FmSelect"), T = R("FmTextarea"), D = R("FmButton"), I = R("FmTable"), A = R("FmForm");
601
- return C(), H(A, {
600
+ const u = A("FmTextField"), y = A("FmSelect"), T = A("FmTextarea"), R = A("FmButton"), I = A("FmTable"), D = A("FmForm");
601
+ return C(), H(D, {
602
602
  ref_key: "formRef",
603
603
  ref: P,
604
604
  class: "flex flex-col gap-32",
@@ -659,7 +659,7 @@ const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-cen
659
659
  o("div", eo, [
660
660
  o("div", to, [
661
661
  a[6] || (a[6] = o("div", { class: "flex-1 fm-typo-en-title-sm-600" }, "Locations", -1)),
662
- p(D, {
662
+ p(R, {
663
663
  disabled: e.disabled,
664
664
  label: "Select location",
665
665
  "prepend-icon": "add",
@@ -679,7 +679,7 @@ const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-cen
679
679
  o("div", oo, [
680
680
  o("div", no, [
681
681
  o("div", so, S(t(v)("inventory.transfer.form.items.title")), 1),
682
- p(D, {
682
+ p(R, {
683
683
  disabled: e.disabled,
684
684
  label: t(v)("inventory.transfer.form.items.addItem"),
685
685
  "prepend-icon": "add",
@@ -727,7 +727,7 @@ const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-cen
727
727
  emits: ["update:show", "submitted"],
728
728
  setup(m, { expose: _, emit: c }) {
729
729
  var i;
730
- const n = m, v = c, d = ot(), s = _t(), { t: r } = Y(), x = ze(n, "show");
730
+ const n = m, v = c, d = ot(), s = _t(), { t: r } = G(), x = ze(n, "show");
731
731
  function b() {
732
732
  return {
733
733
  _id: "",
@@ -854,7 +854,7 @@ const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-cen
854
854
  (e = (l = F.value) == null ? void 0 : l.validateInputs) == null || e.call(l);
855
855
  }
856
856
  return (l, e) => {
857
- const a = R("FmButton"), u = R("FmSideSheet");
857
+ const a = A("FmButton"), u = A("FmSideSheet");
858
858
  return C(), H(u, {
859
859
  modelValue: t(x),
860
860
  "onUpdate:modelValue": e[2] || (e[2] = (y) => Ee(x) ? x.value = y : null),
@@ -900,7 +900,7 @@ const Et = { class: "flex flex-col gap-8 py-16" }, Bt = { class: "flex items-cen
900
900
  }
901
901
  });
902
902
  function mo(m) {
903
- const _ = Ne(), c = pe(), { t: n } = Y(), v = M({
903
+ const _ = Ne(), c = pe(), { t: n } = G(), v = M({
904
904
  get() {
905
905
  return Array.isArray(m.getLocations());
906
906
  },
@@ -958,7 +958,7 @@ const co = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, po =
958
958
  }, Co = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $o = { class: "fm-typo-en-body-lg-600" }, Mo = {
959
959
  key: 2,
960
960
  class: "flex flex-col gap-4"
961
- }, Do = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ro = { class: "fm-typo-en-body-lg-600" }, Ao = {
961
+ }, Ro = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ao = { class: "fm-typo-en-body-lg-600" }, Do = {
962
962
  key: 3,
963
963
  class: "flex flex-col gap-4"
964
964
  }, Io = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Vo = { class: "fm-typo-en-body-lg-600" }, Lo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Oo = { class: "flex flex-col gap-8" }, Po = { class: "fm-typo-en-body-lg-600" }, Eo = { class: "flex w-full gap-4" }, Bo = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, Uo = { class: "fm-typo-en-body-lg-600 shrink-0" }, qo = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, No = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, zo = {
@@ -972,7 +972,7 @@ const co = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, po =
972
972
  },
973
973
  emits: ["update:show", "action:use", "action:edit"],
974
974
  setup(m, { emit: _ }) {
975
- const c = m, n = _, v = Ue(), { t: d } = Y(), s = M(() => {
975
+ const c = m, n = _, v = Ue(), { t: d } = G(), s = M(() => {
976
976
  var k;
977
977
  return (k = c.template) == null ? void 0 : k.purchaseOrder;
978
978
  }), { enabledLocations: r } = mo({
@@ -990,7 +990,7 @@ const co = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, po =
990
990
  ), b = B(!0), h = ze(c, "show");
991
991
  return (k, g) => {
992
992
  var i;
993
- const $ = R("FmMenuDivider"), F = R("FmCard"), O = R("FmButton"), E = R("FmListItem"), P = R("FmList"), f = R("FmSideSheet");
993
+ const $ = A("FmMenuDivider"), F = A("FmCard"), O = A("FmButton"), E = A("FmListItem"), P = A("FmList"), f = A("FmSideSheet");
994
994
  return C(), H(f, {
995
995
  header: t(d)("inventory.transfer.template.details.view", { template: (i = k.template) == null ? void 0 : i.name }),
996
996
  modelValue: t(h),
@@ -1009,7 +1009,7 @@ const co = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, po =
1009
1009
  class: "flex flex-col gap-8 px-12 py-16"
1010
1010
  }, {
1011
1011
  default: L(() => {
1012
- var e, a, u, y, T, D, I, A, w;
1012
+ var e, a, u, y, T, R, I, D, w;
1013
1013
  return [
1014
1014
  o("div", po, [
1015
1015
  o("div", fo, S(t(d)("inventory.transfer.template.details.templateSummary")), 1)
@@ -1034,13 +1034,13 @@ const co = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, po =
1034
1034
  ]),
1035
1035
  (T = (y = s.value) == null ? void 0 : y.supplier) != null && T.name ? (C(), N("div", So, [
1036
1036
  o("div", Co, S(t(d)("inventory.transfer.receiveRequest.details.from")), 1),
1037
- o("div", $o, S((I = (D = s.value) == null ? void 0 : D.supplier) == null ? void 0 : I.name), 1)
1037
+ o("div", $o, S((I = (R = s.value) == null ? void 0 : R.supplier) == null ? void 0 : I.name), 1)
1038
1038
  ])) : X("", !0),
1039
- (A = s.value) != null && A.ref ? (C(), N("div", Mo, [
1040
- o("div", Do, S(t(d)("inventory.transfer.receiveRequest.details.reference")), 1),
1041
- o("div", Ro, S(s.value.ref), 1)
1039
+ (D = s.value) != null && D.ref ? (C(), N("div", Mo, [
1040
+ o("div", Ro, S(t(d)("inventory.transfer.receiveRequest.details.reference")), 1),
1041
+ o("div", Ao, S(s.value.ref), 1)
1042
1042
  ])) : X("", !0),
1043
- (w = s.value) != null && w.remark ? (C(), N("div", Ao, [
1043
+ (w = s.value) != null && w.remark ? (C(), N("div", Do, [
1044
1044
  o("div", Io, S(t(d)("inventory.transfer.receiveRequest.details.remark")), 1),
1045
1045
  o("div", Vo, S(s.value.remark), 1)
1046
1046
  ])) : X("", !0)
@@ -1053,7 +1053,7 @@ const co = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, po =
1053
1053
  o("div", Lo, [
1054
1054
  o("div", Oo, [
1055
1055
  o("div", Po, S(t(d)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
1056
- (C(!0), N(ue, null, Ae(((l = s.value) == null ? void 0 : l.items) ?? [], (e) => (C(), N("div", {
1056
+ (C(!0), N(ue, null, De(((l = s.value) == null ? void 0 : l.items) ?? [], (e) => (C(), N("div", {
1057
1057
  key: e.code,
1058
1058
  class: "flex flex-col"
1059
1059
  }, [
@@ -1083,7 +1083,7 @@ const co = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, po =
1083
1083
  default: L(() => {
1084
1084
  var e;
1085
1085
  return [
1086
- (e = t(r)) != null && e.length ? (C(!0), N(ue, { key: 0 }, Ae(t(r), (a) => (C(), H(E, {
1086
+ (e = t(r)) != null && e.length ? (C(!0), N(ue, { key: 0 }, De(t(r), (a) => (C(), H(E, {
1087
1087
  key: a.doc._id,
1088
1088
  label: a.name,
1089
1089
  sublabel: a.type,
@@ -1124,10 +1124,10 @@ const co = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, po =
1124
1124
  }, 8, ["header", "modelValue", "dismiss-away"]);
1125
1125
  };
1126
1126
  }
1127
- }), Qo = { class: "flex-1 flex flex-col gap-8" }, Go = { class: "flex flex-col" }, Yo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Wo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ko = { class: "fm-typo-en-body-lg-400" }, Zo = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, Jo = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, yn = /* @__PURE__ */ K({
1127
+ }), Qo = { class: "flex-1 flex flex-col gap-8" }, Yo = { class: "flex flex-col" }, Go = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Wo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ko = { class: "fm-typo-en-body-lg-400" }, Zo = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, Jo = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, yn = /* @__PURE__ */ K({
1128
1128
  __name: "TransferTemplateView",
1129
1129
  setup(m) {
1130
- const { t: _ } = Y(), { createTemplate: c, viewTemplate: n } = Ve(), { templateDialogProps: v, transferFormDialogProps: d, templateDetailsProps: s } = ht(
1130
+ const { t: _ } = G(), { createTemplate: c, viewTemplate: n } = Ve(), { templateDialogProps: v, transferFormDialogProps: d, templateDetailsProps: s } = ht(
1131
1131
  Ve()
1132
1132
  ), r = st(), x = Xe(), b = pe(), { breakpoints: h } = xt();
1133
1133
  me(r.fetchTemplates);
@@ -1148,7 +1148,7 @@ const co = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, po =
1148
1148
  return l;
1149
1149
  }
1150
1150
  return (l, e) => {
1151
- const a = R("FmTable");
1151
+ const a = A("FmTable");
1152
1152
  return C(), N(ue, null, [
1153
1153
  p(et, {
1154
1154
  title: t(_)("inventory.transfer.template.title2"),
@@ -1196,20 +1196,20 @@ const co = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, po =
1196
1196
  onRowClick: (T) => t(n)(T)
1197
1197
  }, {
1198
1198
  default: L((T) => {
1199
- var D, I, A, w, q, Z, J, Q, G, fe, ye, ve, be, te, _e, xe, he, ge, ke, we, oe, Te, Fe, Se, Ce, ne, $e;
1199
+ var R, I, D, w, q, Z, J, Q, Y, fe, ye, ve, be, te, _e, xe, he, ge, ke, we, oe, Te, Fe, Se, Ce, ne, $e;
1200
1200
  return [
1201
1201
  o("div", Qo, [
1202
- o("div", Go, [
1203
- o("div", Yo, [
1202
+ o("div", Yo, [
1203
+ o("div", Go, [
1204
1204
  p(t(z), {
1205
- render: (A = (I = (D = T._id) == null ? void 0 : D.column) == null ? void 0 : I.columnDef) == null ? void 0 : A.cell,
1205
+ render: (D = (I = (R = T._id) == null ? void 0 : R.column) == null ? void 0 : I.columnDef) == null ? void 0 : D.cell,
1206
1206
  props: (q = (w = T._id) == null ? void 0 : w.getContext) == null ? void 0 : q.call(w)
1207
1207
  }, null, 8, ["render", "props"])
1208
1208
  ]),
1209
1209
  o("div", Wo, [
1210
1210
  p(t(z), {
1211
1211
  render: (Q = (J = (Z = T.name) == null ? void 0 : Z.column) == null ? void 0 : J.columnDef) == null ? void 0 : Q.cell,
1212
- props: (fe = (G = T.name) == null ? void 0 : G.getContext) == null ? void 0 : fe.call(G)
1212
+ props: (fe = (Y = T.name) == null ? void 0 : Y.getContext) == null ? void 0 : fe.call(Y)
1213
1213
  }, null, 8, ["render", "props"])
1214
1214
  ]),
1215
1215
  o("div", Ko, [
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as K, computed as _, openBlock as v, createElementBlock as w, createElementVNode as l, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as I, createBlock as T, withCtx as R, createVNode as y, unref as a, isRef as Z, normalizeClass as ae, normalizeStyle as re, Teleport as ie, normalizeProps as ue, guardReactiveProps as de } from "vue";
2
- import { u as G, S as me, c as oe, R as j, A as ce, a as J, l as pe, m as fe, e as ee, j as ve } from "./app-BbLqKVBN.js";
2
+ import { u as G, S as me, c as oe, R as j, A as ce, a as J, l as pe, m as fe, e as ee, j as ve } from "./app-BDzV3RNp.js";
3
3
  import { useDialog as ye, useSnackbar as le, useProxiedModel as te, useBreakpoints as be } from "@feedmepos/ui-library";
4
4
  import { i as ge, _ as xe } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { F as U, D as ne, R as N } from "./row-action.enum-PMKMRrZR.js";
6
6
  import { defineStore as _e, storeToRefs as he } from "pinia";
7
7
  import { c as Ve, _ as Ue, F as we } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
8
8
  import { useI18n as O } from "@feedmepos/mf-common";
9
- import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGIfL24N.js";
10
- import { F as Se } from "./decimal-BXH34eZD.js";
11
- import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ButZx6Cm.js";
9
+ import { u as Ce, _ as ke, a as Fe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js";
10
+ import { F as Se } from "./decimal-CRTw2PGO.js";
11
+ import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMzUk8cN.js";
12
12
  const Ee = { class: "flex flex-col gap-8" }, Ie = {
13
13
  key: 0,
14
14
  class: "flex flex-col"
@@ -1,9 +1,9 @@
1
1
  import { ref as W, defineComponent as j, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as z, toRaw as be, reactive as xe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as I, createCommentVNode as Ae, computed as F, isRef as we, normalizeClass as Se, normalizeStyle as Re } from "vue";
2
- import { n as Pe, T as Te, V as Ue, c as G, W as ae, X as le, Y as Ee, i as Le, R as E, j as Ne } from "./app-BbLqKVBN.js";
2
+ import { n as Pe, V as Te, W as Ue, c as G, X as ae, Y as le, Z as Ee, i as Le, R as E, j as Ne } from "./app-BDzV3RNp.js";
3
3
  import { useCoreStore as Be, useI18n as q } from "@feedmepos/mf-common";
4
- import { D as Ve, R as Z, F as T } from "./row-action.enum-PMKMRrZR.js";
4
+ import { D as Ve, R as Y, F as T } from "./row-action.enum-PMKMRrZR.js";
5
5
  import { c as qe, _ as ze, F as J } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
- import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGIfL24N.js";
6
+ import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CzXWOCCv.js";
7
7
  import { useDialogChild as Ge, useDialog as Me, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
8
8
  const Q = Pe((m, h) => {
9
9
  const y = Be();
@@ -69,13 +69,13 @@ function Ce() {
69
69
  }
70
70
  };
71
71
  }
72
- function Xe(m, h) {
72
+ function Ze(m, h) {
73
73
  function y(p, r) {
74
- if (p === Z.Edit) {
74
+ if (p === Y.Edit) {
75
75
  m(G(r));
76
76
  return;
77
77
  }
78
- if (p === Z.Delete) {
78
+ if (p === Y.Delete) {
79
79
  h(G(r));
80
80
  return;
81
81
  }
@@ -106,7 +106,7 @@ function Xe(m, h) {
106
106
  header: "",
107
107
  cell(p) {
108
108
  return qe(
109
- [Ve[Z.Edit], Ve[Z.Delete]],
109
+ [Ve[Y.Edit], Ve[Y.Delete]],
110
110
  (r) => {
111
111
  y(r, p.row.original.original);
112
112
  }
@@ -141,7 +141,7 @@ function Xe(m, h) {
141
141
  }
142
142
  return { columnDefs: n, formatRowData: l };
143
143
  }
144
- const Ye = /* @__PURE__ */ j({
144
+ const Xe = /* @__PURE__ */ j({
145
145
  __name: "GoogleMap",
146
146
  props: {
147
147
  markers: {
@@ -267,7 +267,7 @@ const Ye = /* @__PURE__ */ j({
267
267
  class: "map app-map"
268
268
  }, null, 512));
269
269
  }
270
- }), Ze = { class: "flex flex-col gap-24" }, Je = { class: "flex flex-col gap-8" }, Qe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ j({
270
+ }), Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex flex-col gap-8" }, Qe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ j({
271
271
  __name: "CoordinateDialog",
272
272
  props: {
273
273
  address: {
@@ -295,7 +295,7 @@ const Ye = /* @__PURE__ */ j({
295
295
  l.lat = v.lat, l.lng = v.lng, y.emitData(G(l)), r();
296
296
  }
297
297
  const _ = W();
298
- return (v, M) => (S(), z("div", Ze, [
298
+ return (v, M) => (S(), z("div", Ye, [
299
299
  g("div", Je, [
300
300
  g("div", null, [
301
301
  g("span", Qe, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
@@ -310,7 +310,7 @@ const Ye = /* @__PURE__ */ j({
310
310
  g("span", lo, U(l.lat), 1)
311
311
  ])
312
312
  ]),
313
- V(Ye, {
313
+ V(Xe, {
314
314
  ref_key: "gmapRef",
315
315
  ref: _,
316
316
  class: "h-[272px] sm:h-[240px] xs:h-[240px]",
@@ -895,7 +895,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
895
895
  n.close();
896
896
  }
897
897
  }
898
- const { columnDefs: C, formatRowData: R } = Xe(
898
+ const { columnDefs: C, formatRowData: R } = Ze(
899
899
  v,
900
900
  M
901
901
  );
@@ -963,7 +963,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
963
963
  onRowClick: (s) => v(s.original)
964
964
  }, {
965
965
  default: N((s) => {
966
- var f, b, x, D, K, re, ne, ue, H, ie, de, ce, pe, me, X, fe, he, ye, ve, Y, ge;
966
+ var f, b, x, D, K, re, ne, ue, H, ie, de, ce, pe, me, Z, fe, he, ye, ve, X, ge;
967
967
  return [
968
968
  g("div", Co, [
969
969
  g("div", Fo, [
@@ -981,13 +981,13 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
981
981
  (de = P.original) != null && de.email ? (S(), z("div", $o, [
982
982
  V(c(J), {
983
983
  render: (me = (pe = (ce = s.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
984
- props: (fe = (X = s.email) == null ? void 0 : X.getContext) == null ? void 0 : fe.call(X)
984
+ props: (fe = (Z = s.email) == null ? void 0 : Z.getContext) == null ? void 0 : fe.call(Z)
985
985
  }, null, 8, ["render", "props"])
986
986
  ])) : Ae("", !0),
987
987
  g("div", Wo, [
988
988
  V(c(J), {
989
989
  render: (ve = (ye = (he = s.address) == null ? void 0 : he.column) == null ? void 0 : ye.columnDef) == null ? void 0 : ve.cell,
990
- props: (ge = (Y = s.address) == null ? void 0 : Y.getContext) == null ? void 0 : ge.call(Y)
990
+ props: (ge = (X = s.address) == null ? void 0 : X.getContext) == null ? void 0 : ge.call(X)
991
991
  }, null, 8, ["render", "props"])
992
992
  ])
993
993
  ])