@feedmepos/mf-inventory-portal 0.0.25-dev.41 → 0.0.25-dev.43

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 (43) hide show
  1. package/dist/{App-BqAbcrCa.js → App-DXrm29Xt.js} +2 -2
  2. package/dist/{ApprovalView-CstNyWuq.js → ApprovalView-CdkO81D-.js} +17 -17
  3. package/dist/{BindingsDialog-B2POgTvT.js → BindingsDialog-C3LDf8O0.js} +2 -2
  4. package/dist/{BindingsPicker-Bp8wNAW0.js → BindingsPicker-WoF8gzVL.js} +1 -1
  5. package/dist/{BindingsTable-C5ToIwJw.js → BindingsTable-BiMt6dtC.js} +1 -1
  6. package/dist/{ClosingDraftView-B5KgTQOB.js → ClosingDraftView-DoQT7i-e.js} +2 -2
  7. package/dist/{ClosingTemplateView-B6gT5-A_.js → ClosingTemplateView-BQTlHSOP.js} +2 -2
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcedQV1P.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BsNSEdH_.js} +3 -3
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bc6eTKR-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-EAfn_gI2.js} +1 -1
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C76t4wed.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bt0MPl6I.js} +1 -1
  11. package/dist/{IngredientGroupView-Bo18pDpd.js → IngredientGroupView-KPqbuUdq.js} +14 -14
  12. package/dist/{IngredientsView-D4Tx5h1N.js → IngredientsView-btkrzfUb.js} +492 -504
  13. package/dist/{IntegrationView-5cTVErK7.js → IntegrationView-CPganv5I.js} +1 -1
  14. package/dist/{InventoryBindingForm-D_JUD2PF.js → InventoryBindingForm-Cm69z42D.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Co33Sz1A.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-ByzbgoCW.js} +3 -3
  16. package/dist/{InventoryBindingSummary-DsQqzLxI.js → InventoryBindingSummary-C7EeAVAs.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKCHqrFd.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CtfmvGMA.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-NhSXPpV1.js → PremiumBadge.vue_vue_type_script_setup_true_lang-6RHBNS7-.js} +1 -1
  19. package/dist/{PublishView-CVReC-7J.js → PublishView-C7s9DTwV.js} +7 -7
  20. package/dist/{PurchaseOrderPrintPreview-kHtSdc_I.js → PurchaseOrderPrintPreview-Bp8w6vni.js} +1 -1
  21. package/dist/{ReceiveRequestView-JJdBl6jR.js → ReceiveRequestView-VMEuhH5P.js} +163 -161
  22. package/dist/{RecipeView-BAZzsPdQ.js → RecipeView-Dh0WI3gA.js} +21 -21
  23. package/dist/{StockView-Dwzf7ewT.js → StockView-CQziShwK.js} +1526 -1539
  24. package/dist/{SupplierView-BoTsfsYX.js → SupplierView-BnXohTy2.js} +441 -453
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-C2ZBmCNY.js → TransferDetails.vue_vue_type_script_setup_true_lang-DCjg5ptE.js} +4 -4
  26. package/dist/{TransferTemplateView-BLO1uHet.js → TransferTemplateView-BNIFmGRO.js} +68 -68
  27. package/dist/{UnitView-DfJ-huaQ.js → UnitView-B0QQr63Q.js} +3 -3
  28. package/dist/{WarehouseView-h5_GDAYM.js → WarehouseView-COD-NsAu.js} +1 -1
  29. package/dist/{app-CRWxxzQN.js → app-Bs9204PI.js} +3475 -3454
  30. package/dist/app.js +1 -1
  31. package/dist/{decimal-BDt03-KF.js → decimal-Cwq4YmHr.js} +1 -1
  32. package/dist/{feature-D_c7uzcV.js → feature-aOw02w8c.js} +1 -1
  33. package/dist/{format-unit-display-CsfojMpU.js → format-unit-display-B0097Dbk.js} +2 -2
  34. package/dist/helper/country.d.ts +1 -0
  35. package/dist/{index-BbwuhE-c.js → index-DIrzS8cU.js} +2 -2
  36. package/dist/{stock-DSyF_gBG.js → stock-DqesOQBC.js} +1 -1
  37. package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
  38. package/dist/{supplier-BLqNIQG9.js → supplier-BGNg5AzJ.js} +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{use-ingredient-select-dialog-BSxFzWSk.js → use-ingredient-select-dialog-B3WOWtBJ.js} +1 -1
  41. package/dist/{use-inventory-binding-dialog-DyIQsTTm.js → use-inventory-binding-dialog-CTu19_Bj.js} +1 -1
  42. package/dist/{vue-i18n-ZO6qpjnw.js → vue-i18n-uf0PuoRa.js} +79 -79
  43. package/package.json +3 -3
@@ -1,11 +1,11 @@
1
- import { W as ze, u as we, aL as N, a5 as Qe, a7 as Ye, a8 as We, aM as Xe, d as Ce, e as Be, au as U, T as Le, aN as Je, Y as Oe, K as be, i as fe, aO as Me, ac as ge, f as Ie, D as Q, h as j, b as je, a6 as Ze, ar as Fe, a0 as ve, ai as Ue } from "./app-CRWxxzQN.js";
1
+ import { W as ze, u as we, aL as N, a5 as Qe, a7 as Ye, a8 as We, aM as Xe, d as Ce, e as Be, au as U, T as Le, aN as Je, Y as Oe, K as be, i as fe, aO as Me, ac as ge, f as Ie, D as Q, h as j, b as je, a6 as Ze, ar as Fe, a0 as ve, ai as Ue } from "./app-Bs9204PI.js";
2
2
  import { ref as H, computed as Y, h as x, defineComponent as xe, onMounted as et, unref as u, openBlock as y, createElementBlock as w, createElementVNode as t, toDisplayString as g, createCommentVNode as A, resolveComponent as ae, createVNode as V, watch as tt, createBlock as te, isRef as rt, withCtx as de, Fragment as le, normalizeClass as he, createTextVNode as _e, renderList as pe, resolveDynamicComponent as st } from "vue";
3
- import { F as at } from "./decimal-BDt03-KF.js";
4
- import { b as nt, u as ot, f as Ve, P as ue } from "./format-unit-display-CsfojMpU.js";
3
+ import { F as at } from "./decimal-Cwq4YmHr.js";
4
+ import { b as nt, u as ot, f as Ve, P as ue } from "./format-unit-display-B0097Dbk.js";
5
5
  import { useI18n as Ke } from "@feedmepos/mf-common";
6
6
  import { E as lt } from "./empty-placeholder-wf6-BWE8.js";
7
7
  import { useDialog as Ne, useSnackbar as De, useProxiedModel as ct } from "@feedmepos/ui-library";
8
- import { u as Ge } from "./feature-D_c7uzcV.js";
8
+ import { u as Ge } from "./feature-aOw02w8c.js";
9
9
  const ke = ze((m, f) => {
10
10
  const l = we();
11
11
  return {
@@ -1,14 +1,14 @@
1
- import { defineComponent as ae, onMounted as xe, computed as H, ref as z, watch as be, inject as Ye, resolveComponent as A, openBlock as I, createElementBlock as N, createElementVNode as l, createVNode as m, withCtx as L, renderSlot as Ae, withDirectives as Ue, normalizeClass as ne, vModelText as Pe, reactive as et, h as le, toDisplayString as D, unref as e, createCommentVNode as se, Fragment as me, renderList as Te, normalizeStyle as He, createBlock as ee, mergeProps as Qe, isRef as ke, createSlots as tt, Teleport as ot, normalizeProps as lt, guardReactiveProps as st } from "vue";
2
- import { G as je, aC as he, t as Le, I as nt, aD as at, aE as rt, i as te, aF as it, b as ut, a as Ke, Z as Be, l as ge, O as ve, K as fe, A as _e, M as dt, E as J, u as Ge, af as mt, T as pt, ag as ct, B as We, d as de, aG as ye, ac as ft, a0 as yt, y as vt, h as qe, _ as bt, z as ht } from "./app-CRWxxzQN.js";
1
+ import { defineComponent as ae, onMounted as xe, computed as H, ref as z, watch as be, inject as Ye, resolveComponent as A, openBlock as C, createElementBlock as N, createElementVNode as l, createVNode as m, withCtx as L, renderSlot as Ae, withDirectives as Ue, normalizeClass as ne, vModelText as Pe, reactive as et, h as le, toDisplayString as D, unref as e, createCommentVNode as se, Fragment as me, renderList as Te, normalizeStyle as He, createBlock as ee, mergeProps as Qe, isRef as ke, createSlots as tt, Teleport as ot, normalizeProps as lt, guardReactiveProps as st } from "vue";
2
+ import { G as je, aC as he, t as Le, I as nt, aD as at, aE as rt, i as te, aF as it, b as ut, a as Ke, Z as Be, l as ge, O as ve, K as fe, A as _e, M as dt, E as J, u as Ge, af as mt, T as pt, ag as ct, C as We, d as de, aG as ye, ac as ft, a0 as yt, z as vt, h as qe, _ as bt, B as ht } from "./app-Bs9204PI.js";
3
3
  import { useI18n as ue } from "@feedmepos/mf-common";
4
- import { P as Y, a as gt, f as _t, t as xt, b as Ee, u as Tt } from "./format-unit-display-CsfojMpU.js";
4
+ import { P as Y, a as gt, f as _t, t as xt, b as Ee, u as Tt } from "./format-unit-display-B0097Dbk.js";
5
5
  import { components as ie, useSnackbar as kt, useProxiedModel as Ze, useBreakpoints as wt } from "@feedmepos/ui-library";
6
6
  import { defineStore as Ft, storeToRefs as Ne } from "pinia";
7
- import { _ as It, b as Ct, F as St, a as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Bc6eTKR-.js";
8
- import { c as Ot, u as Mt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcedQV1P.js";
9
- import { u as Dt } from "./supplier-BLqNIQG9.js";
10
- import { u as Rt } from "./use-ingredient-select-dialog-BSxFzWSk.js";
11
- import { u as At } from "./feature-D_c7uzcV.js";
7
+ import { _ as Ct, b as It, F as St, a as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-EAfn_gI2.js";
8
+ import { c as Ot, u as Mt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BsNSEdH_.js";
9
+ import { u as Dt } from "./supplier-BGNg5AzJ.js";
10
+ import { u as Rt } from "./use-ingredient-select-dialog-B3WOWtBJ.js";
11
+ import { u as At } from "./feature-aOw02w8c.js";
12
12
  const Ut = { class: "flex flex-col" }, Pt = { class: "flex flex-col" }, Lt = { class: "flex-1" }, Bt = { class: "flex items-center" }, qt = { class: "flex-1" }, Et = { class: "flex-1" }, Nt = /* @__PURE__ */ ae({
13
13
  __name: "FmMinMaxInput",
14
14
  props: {
@@ -80,7 +80,7 @@ const Ut = { class: "flex flex-col" }, Pt = { class: "flex flex-col" }, Lt = { c
80
80
  g.max = null;
81
81
  v.min = g.min, v.max = g.max;
82
82
  });
83
- const h = Symbol.for("fm:form-state"), _ = Ye(h, null), M = H(() => y.disabled ?? (_ == null ? void 0 : _.getDisabled()) ?? !1), B = z(), C = z(), $ = z(!1), w = z(!1), O = H(() => $.value || w.value), b = H(() => [...[
83
+ const h = Symbol.for("fm:form-state"), _ = Ye(h, null), M = H(() => y.disabled ?? (_ == null ? void 0 : _.getDisabled()) ?? !1), B = z(), I = z(), $ = z(!1), w = z(!1), O = H(() => $.value || w.value), b = H(() => [...[
84
84
  function() {
85
85
  return typeof t(o.value) == "string" || typeof t(a.value) == "string" ? "Must be a number" : !0;
86
86
  },
@@ -90,7 +90,7 @@ const Ut = { class: "flex flex-col" }, Pt = { class: "flex flex-col" }, Lt = { c
90
90
  ], ...y.rules ?? []]);
91
91
  return (p, d) => {
92
92
  const g = A("FmLabel"), i = A("FmField"), f = A("FmFormGroup");
93
- return I(), N("div", Ut, [
93
+ return C(), N("div", Ut, [
94
94
  l("div", Pt, [
95
95
  l("div", Lt, [
96
96
  m(g, {
@@ -128,7 +128,7 @@ const Ut = { class: "flex flex-col" }, Pt = { class: "flex flex-col" }, Lt = { c
128
128
  Ue(l("input", {
129
129
  type: "text",
130
130
  ref_key: "maxInputRef",
131
- ref: C,
131
+ ref: I,
132
132
  onFocus: d[3] || (d[3] = () => w.value = !0),
133
133
  onBlur: d[4] || (d[4] = () => w.value = !1),
134
134
  "onUpdate:modelValue": d[5] || (d[5] = (V) => a.value = V),
@@ -264,11 +264,11 @@ function jt(c) {
264
264
  minSize: 200,
265
265
  cell(u) {
266
266
  var B;
267
- const o = u.row.original, a = v.skuById[o.sku._id], h = v.unitById[(B = a.unit) == null ? void 0 : B._id], _ = h.measurements.find((C) => {
267
+ const o = u.row.original, a = v.skuById[o.sku._id], h = v.unitById[(B = a.unit) == null ? void 0 : B._id], _ = h.measurements.find((I) => {
268
268
  var $;
269
- return (($ = o.measurement) == null ? void 0 : $.id) === C.id;
269
+ return (($ = o.measurement) == null ? void 0 : $.id) === I.id;
270
270
  }), M = o.sku.unit._id !== a.unit._id || !h || o.measurement && !_;
271
- return le(It, {
271
+ return le(Ct, {
272
272
  style: {
273
273
  flex: "1 1 0%"
274
274
  },
@@ -280,11 +280,11 @@ function jt(c) {
280
280
  disabled: c.disabled,
281
281
  key: o.id ?? o.sku._id,
282
282
  unit: h,
283
- "onUpdate:modelValue": (C) => {
283
+ "onUpdate:modelValue": (I) => {
284
284
  ze.validateUnitInput(
285
285
  o,
286
286
  a,
287
- C,
287
+ I,
288
288
  ($) => {
289
289
  c.updateItem({
290
290
  ...o,
@@ -297,7 +297,7 @@ function jt(c) {
297
297
  );
298
298
  },
299
299
  rules: [
300
- Ct(o.quantityStep),
300
+ It(o.quantityStep),
301
301
  ...+te(o.quantity) ? [
302
302
  St(
303
303
  +te(
@@ -474,9 +474,9 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
474
474
  return t;
475
475
  }
476
476
  return (t, r) => {
477
- var o, a, h, _, M, B, C, $, w, O, b, p, d, g, i, f, V, F, S, Z, W, E, U, s, n, T, R, K, q, k;
477
+ var o, a, h, _, M, B, I, $, w, O, b, p, d, g, i, f, V, F, S, Z, W, E, U, s, n, T, R, K, q, k;
478
478
  const u = A("FmLabel");
479
- return I(), N("div", Kt, [
479
+ return C(), N("div", Kt, [
480
480
  l("div", Gt, [
481
481
  l("div", Wt, [
482
482
  l("span", Zt, " (" + D(t.row.original.sku.code) + ") ", 1),
@@ -495,7 +495,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
495
495
  label: e(y)(`inventory.transfer.form.items.table.${e(j).Code}`)
496
496
  }, null, 8, ["label"]),
497
497
  m(e(J), {
498
- render: ($ = (C = (B = t.cellByColId[e(j).Code]) == null ? void 0 : B.column) == null ? void 0 : C.columnDef) == null ? void 0 : $.cell,
498
+ render: ($ = (I = (B = t.cellByColId[e(j).Code]) == null ? void 0 : B.column) == null ? void 0 : I.columnDef) == null ? void 0 : $.cell,
499
499
  props: (O = (w = t.cellByColId[e(j).Code]) == null ? void 0 : w.getContext) == null ? void 0 : O.call(w)
500
500
  }, null, 8, ["render", "props"]),
501
501
  r[0] || (r[0] = l("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
@@ -511,7 +511,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
511
511
  r[1] || (r[1] = l("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
512
512
  ])
513
513
  ]),
514
- t.row.original ? (I(), N("div", to, [
514
+ t.row.original ? (C(), N("div", to, [
515
515
  l("div", oo, [
516
516
  m(u, {
517
517
  label: e(y)(`inventory.transfer.form.items.table.${e(j).DefaultAmount}`)
@@ -559,10 +559,10 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
559
559
  function y(v) {
560
560
  return v.column.columnDef.meta;
561
561
  }
562
- return (v, t) => (I(), N("tr", ro, [
563
- (I(!0), N(me, null, Te(v.row.getVisibleCells(), (r) => {
562
+ return (v, t) => (C(), N("tr", ro, [
563
+ (C(!0), N(me, null, Te(v.row.getVisibleCells(), (r) => {
564
564
  var u, o, a, h, _;
565
- return I(), N("td", {
565
+ return C(), N("td", {
566
566
  key: r.id,
567
567
  class: ne(["text-fm-color-typo-primary", ((u = y(r)) == null ? void 0 : u.cellClass) ?? "px-16"]),
568
568
  style: He({
@@ -627,7 +627,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
627
627
  const n = typeof ((R = (T = t.purchaseOrder) == null ? void 0 : T.supplier) == null ? void 0 : R.internal) == "string" ? Y.TRANSFER : Y.PURCHASE;
628
628
  s !== n && (t.purchaseOrder.supplier = s === Y.PURCHASE ? _.locationOptionsTypePurchase.value[0] : _.locationOptionsTypeTransfer.value[0]);
629
629
  }
630
- }), B = H(() => _.transferLocationOptions.value), C = H({
630
+ }), B = H(() => _.transferLocationOptions.value), I = H({
631
631
  get() {
632
632
  var s;
633
633
  return (s = t.purchaseOrder.supplier) == null ? void 0 : s._id;
@@ -779,7 +779,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
779
779
  }
780
780
  return (s, n) => {
781
781
  const T = A("FmTextField"), R = A("FmSelect"), K = A("FmTextarea"), q = A("FmButton"), k = A("FmTable"), P = A("FmFormGroup"), Q = A("FmChip"), X = A("FmForm");
782
- return I(), ee(X, {
782
+ return C(), ee(X, {
783
783
  ref_key: "formRef",
784
784
  ref: S,
785
785
  class: "flex flex-col gap-32",
@@ -829,8 +829,8 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
829
829
  }, 8, ["label", "model-value", "items", "rules"]),
830
830
  m(R, {
831
831
  label: M.value === e(Y).PURCHASE ? e(r)("inventory.transfer.form.purchaseFrom") : e(r)("inventory.transfer.form.transferFrom"),
832
- modelValue: C.value,
833
- "onUpdate:modelValue": n[2] || (n[2] = (x) => C.value = x),
832
+ modelValue: I.value,
833
+ "onUpdate:modelValue": n[2] || (n[2] = (x) => I.value = x),
834
834
  items: B.value
835
835
  }, {
836
836
  "menu-wrapper": L((x) => {
@@ -850,7 +850,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
850
850
  "line-clamp-1 fm-typo-en-body-lg-400",
851
851
  s.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
852
852
  ])
853
- }, D((x = B.value.find((G) => G.value === C.value)) == null ? void 0 : x.label), 3)
853
+ }, D((x = B.value.find((G) => G.value === I.value)) == null ? void 0 : x.label), 3)
854
854
  ];
855
855
  }),
856
856
  _: 1
@@ -899,7 +899,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
899
899
  rules: [V]
900
900
  }, null, 8, ["model-value", "rules"])
901
901
  ]),
902
- e(b) ? (I(), ee(ct, {
902
+ e(b) ? (C(), ee(ct, {
903
903
  key: 0,
904
904
  label: "Location tag",
905
905
  modelValue: e(p),
@@ -910,9 +910,9 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
910
910
  }, tt({
911
911
  "helper-text": L(() => [
912
912
  l("div", vo, [
913
- e(f) ? (I(), N("div", bo, D(e(f)), 1)) : (I(), N("div", ho, " This will match all locations under these values. Tag is configured in the restaurant/warehouse settings. ")),
913
+ e(f) ? (C(), N("div", bo, D(e(f)), 1)) : (C(), N("div", ho, " This will match all locations under these values. Tag is configured in the restaurant/warehouse settings. ")),
914
914
  l("div", go, [
915
- (I(!0), N(me, null, Te(s.modelValue.locationTags, (x, G) => (I(), ee(Q, {
915
+ (C(!0), N(me, null, Te(s.modelValue.locationTags, (x, G) => (C(), ee(Q, {
916
916
  key: G,
917
917
  label: x,
918
918
  removable: "",
@@ -952,7 +952,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
952
952
  size: "md"
953
953
  }, null, 8, ["disabled", "label"])
954
954
  ]),
955
- (I(), ee(k, {
955
+ (C(), ee(k, {
956
956
  "column-defs": e(W).columnDefs,
957
957
  "row-data": e(t).purchaseOrder.items,
958
958
  key: e(t).purchaseOrder.items.map((x) => x.sku._id).join("."),
@@ -967,7 +967,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
967
967
  }, null, 8, ["row", "disabled"])
968
968
  ]),
969
969
  "list-row": L((x) => [
970
- (I(), ee(We, {
970
+ (C(), ee(We, {
971
971
  row: x,
972
972
  key: e(t).purchaseOrder.items.map((G) => G.sku._id).join(".")
973
973
  }, {
@@ -995,7 +995,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
995
995
  }, 8, ["disabled"]);
996
996
  };
997
997
  }
998
- }), wo = { class: "flex items-center" }, Fo = { class: "fm-typo-en-title-md-800" }, Io = { class: "flex gap-4" }, Co = /* @__PURE__ */ ae({
998
+ }), wo = { class: "flex items-center" }, Fo = { class: "fm-typo-en-title-md-800" }, Co = { class: "flex gap-4" }, Io = /* @__PURE__ */ ae({
999
999
  __name: "TransferTemplateDialog",
1000
1000
  props: {
1001
1001
  mode: {},
@@ -1044,7 +1044,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1044
1044
  i && (M.value = t.modelValue ?? _(), B.value = ((f = t.modelValue) == null ? void 0 : f._id) ?? `${Math.random()}`);
1045
1045
  }
1046
1046
  );
1047
- const C = z(!1), $ = H(() => {
1047
+ const I = z(!1), $ = H(() => {
1048
1048
  switch (t.mode) {
1049
1049
  case de.READ:
1050
1050
  return "";
@@ -1073,7 +1073,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1073
1073
  var f, V;
1074
1074
  const i = M.value;
1075
1075
  if (i) {
1076
- C.value = !0, (((f = i.purchaseOrder.supplier) == null ? void 0 : f.internal) === ye.enum.warehouse || ((V = i.purchaseOrder.supplier) == null ? void 0 : V.internal) === ye.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
1076
+ I.value = !0, (((f = i.purchaseOrder.supplier) == null ? void 0 : f.internal) === ye.enum.warehouse || ((V = i.purchaseOrder.supplier) == null ? void 0 : V.internal) === ye.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
1077
1077
  ({ totalCost: F, ...S }) => S
1078
1078
  ));
1079
1079
  try {
@@ -1089,7 +1089,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1089
1089
  type: "error"
1090
1090
  }), console.error("Error in creating transfer template", F);
1091
1091
  } finally {
1092
- C.value = !1;
1092
+ I.value = !1;
1093
1093
  }
1094
1094
  }
1095
1095
  }
@@ -1097,7 +1097,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1097
1097
  var f, V;
1098
1098
  const i = M.value;
1099
1099
  if (i) {
1100
- C.value = !0, (((f = i.purchaseOrder.supplier) == null ? void 0 : f.internal) === ye.enum.warehouse || ((V = i.purchaseOrder.supplier) == null ? void 0 : V.internal) === ye.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
1100
+ I.value = !0, (((f = i.purchaseOrder.supplier) == null ? void 0 : f.internal) === ye.enum.warehouse || ((V = i.purchaseOrder.supplier) == null ? void 0 : V.internal) === ye.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
1101
1101
  ({ totalCost: F, ...S }) => S
1102
1102
  ));
1103
1103
  try {
@@ -1113,7 +1113,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1113
1113
  type: "error"
1114
1114
  }), console.error("Error in updating transfer template", F);
1115
1115
  } finally {
1116
- C.value = !1;
1116
+ I.value = !1;
1117
1117
  }
1118
1118
  }
1119
1119
  }
@@ -1131,7 +1131,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1131
1131
  }
1132
1132
  return (i, f) => {
1133
1133
  const V = A("FmButton"), F = A("FmSideSheet");
1134
- return I(), ee(F, {
1134
+ return C(), ee(F, {
1135
1135
  modelValue: e(h),
1136
1136
  "onUpdate:modelValue": f[2] || (f[2] = (S) => ke(h) ? h.value = S : null),
1137
1137
  "dismiss-away": "",
@@ -1144,26 +1144,26 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1144
1144
  ])
1145
1145
  ]),
1146
1146
  default: L(() => [
1147
- (I(), ee(ko, {
1147
+ (C(), ee(ko, {
1148
1148
  class: "w-full",
1149
1149
  ref_key: "formRef",
1150
1150
  ref: w,
1151
1151
  onValidationSuccess: p,
1152
1152
  "model-value": M.value,
1153
1153
  "onUpdate:modelValue": f[0] || (f[0] = (S) => M.value = S),
1154
- disabled: C.value,
1154
+ disabled: I.value,
1155
1155
  key: B.value
1156
1156
  }, null, 8, ["model-value", "disabled"]))
1157
1157
  ]),
1158
1158
  "side-sheet-footer": L(() => [
1159
- l("div", Io, [
1159
+ l("div", Co, [
1160
1160
  m(V, {
1161
- loading: C.value,
1161
+ loading: I.value,
1162
1162
  label: e(a)("common.save"),
1163
1163
  onClick: d
1164
1164
  }, null, 8, ["loading", "label"]),
1165
1165
  m(V, {
1166
- disabled: C.value,
1166
+ disabled: I.value,
1167
1167
  variant: "tertiary",
1168
1168
  label: e(a)("common.close"),
1169
1169
  onClick: f[1] || (f[1] = (S) => r("update:show", !1))
@@ -1208,7 +1208,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1208
1208
  var O, b, p, d;
1209
1209
  return ((b = (O = o.value) == null ? void 0 : O.supplier) == null ? void 0 : b.internal) === "restaurant" || ((d = (p = o.value) == null ? void 0 : p.supplier) == null ? void 0 : d.internal) === "warehouse" ? Y.TRANSFER : Y.PURCHASE;
1210
1210
  }
1211
- ), B = z(!0), C = Ze(v, "show"), $ = z(!1);
1211
+ ), B = z(!0), I = Ze(v, "show"), $ = z(!1);
1212
1212
  be(
1213
1213
  () => v.show,
1214
1214
  (O) => {
@@ -1221,10 +1221,10 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1221
1221
  return (O, b) => {
1222
1222
  var Z;
1223
1223
  const p = A("FmMenuDivider"), d = A("FmCard"), g = A("FmTextField"), i = A("FmIcon"), f = A("FmTable"), V = A("FmChip"), F = A("FmButton"), S = A("FmSideSheet");
1224
- return I(), ee(S, {
1224
+ return C(), ee(S, {
1225
1225
  header: e(u)("inventory.transfer.template.details.view", { template: (Z = O.template) == null ? void 0 : Z.name }),
1226
- modelValue: e(C),
1227
- "onUpdate:modelValue": b[3] || (b[3] = (W) => ke(C) ? C.value = W : null),
1226
+ modelValue: e(I),
1227
+ "onUpdate:modelValue": b[3] || (b[3] = (W) => ke(I) ? I.value = W : null),
1228
1228
  "dismiss-away": B.value,
1229
1229
  "close-button": "",
1230
1230
  "max-width": 600
@@ -1255,15 +1255,15 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1255
1255
  ]),
1256
1256
  l("div", Uo, D(e(ft)(((s = O.template) == null ? void 0 : s._id) ?? "")), 1)
1257
1257
  ]),
1258
- (T = (n = o.value) == null ? void 0 : n.supplier) != null && T.name ? (I(), N("div", Po, [
1258
+ (T = (n = o.value) == null ? void 0 : n.supplier) != null && T.name ? (C(), N("div", Po, [
1259
1259
  l("div", Lo, D(e(u)("inventory.transfer.receiveRequest.details.from")), 1),
1260
1260
  l("div", Bo, D((K = (R = o.value) == null ? void 0 : R.supplier) == null ? void 0 : K.name), 1)
1261
1261
  ])) : se("", !0),
1262
- (q = o.value) != null && q.ref ? (I(), N("div", qo, [
1262
+ (q = o.value) != null && q.ref ? (C(), N("div", qo, [
1263
1263
  l("div", Eo, D(e(u)("inventory.transfer.receiveRequest.details.reference")), 1),
1264
1264
  l("div", No, D(o.value.ref), 1)
1265
1265
  ])) : se("", !0),
1266
- (k = o.value) != null && k.remark ? (I(), N("div", zo, [
1266
+ (k = o.value) != null && k.remark ? (C(), N("div", zo, [
1267
1267
  l("div", Ho, D(e(u)("inventory.transfer.receiveRequest.details.remark")), 1),
1268
1268
  l("div", Qo, D(o.value.remark), 1)
1269
1269
  ])) : se("", !0)
@@ -1304,9 +1304,9 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1304
1304
  ]),
1305
1305
  l("div", el, [
1306
1306
  l("div", tl, D(w(s).code), 1),
1307
- w(s).totalCost && e(r).enableTotalCost ? (I(), N("div", ol, " (" + D(e(yt)(w(s).totalCost)) + ") ", 1)) : se("", !0)
1307
+ w(s).totalCost && e(r).enableTotalCost ? (C(), N("div", ol, " (" + D(e(yt)(w(s).totalCost)) + ") ", 1)) : se("", !0)
1308
1308
  ]),
1309
- e(xt)(w(s)) ? (I(), N("div", ll, [
1309
+ e(xt)(w(s)) ? (C(), N("div", ll, [
1310
1310
  m(i, {
1311
1311
  name: "error",
1312
1312
  color: "system-error-300",
@@ -1324,13 +1324,13 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1324
1324
  b[10] || (b[10] = l("div", null, null, -1)),
1325
1325
  b[11] || (b[11] = l("div", null, null, -1)),
1326
1326
  l("div", sl, [
1327
- (E = O.template) != null && E.locationTags ? (I(), N(me, { key: 0 }, [
1327
+ (E = O.template) != null && E.locationTags ? (C(), N(me, { key: 0 }, [
1328
1328
  b[6] || (b[6] = l("div", { class: "flex flex-col" }, [
1329
1329
  l("div", { class: "fm-typo-en-body-lg-600" }, "Enabled location tags"),
1330
1330
  l("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " This template is enabled for the following location tags. ")
1331
1331
  ], -1)),
1332
1332
  l("div", nl, [
1333
- (I(!0), N(me, null, Te(O.template.locationTags, (s, n) => (I(), ee(V, {
1333
+ (C(!0), N(me, null, Te(O.template.locationTags, (s, n) => (C(), ee(V, {
1334
1334
  label: s,
1335
1335
  key: n
1336
1336
  }, null, 8, ["label"]))), 128))
@@ -1374,10 +1374,10 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1374
1374
  }, 8, ["header", "modelValue", "dismiss-away"]);
1375
1375
  };
1376
1376
  }
1377
- }), ul = { class: "flex-1 flex flex-col gap-8" }, dl = { class: "flex flex-col" }, ml = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, cl = { class: "fm-typo-en-body-lg-400" }, fl = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, yl = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Cl = /* @__PURE__ */ ae({
1377
+ }), ul = { class: "flex-1 flex flex-col gap-8" }, dl = { class: "flex flex-col" }, ml = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, cl = { class: "fm-typo-en-body-lg-400" }, fl = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, yl = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Il = /* @__PURE__ */ ae({
1378
1378
  __name: "TransferTemplateView",
1379
1379
  setup(c) {
1380
- const { t: y } = ue(), { createTemplate: v, viewTemplate: t, importTemplates: r, exportTemplates: u } = Ee(), { templateDialogProps: o, templateDetailsProps: a } = Ne(Ee()), h = Tt(), { loading: _, templates: M } = Ne(h), B = z(!1), C = vt(), $ = Ge(), { breakpoints: w } = wt();
1380
+ const { t: y } = ue(), { createTemplate: v, viewTemplate: t, importTemplates: r, exportTemplates: u } = Ee(), { templateDialogProps: o, templateDetailsProps: a } = Ne(Ee()), h = Tt(), { loading: _, templates: M } = Ne(h), B = z(!1), I = vt(), $ = Ge(), { breakpoints: w } = wt();
1381
1381
  xe(h.fetchTemplates);
1382
1382
  const O = H(
1383
1383
  () => B.value || _.value || !$._currentLocation
@@ -1422,7 +1422,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1422
1422
  ]);
1423
1423
  return (F, S) => {
1424
1424
  const Z = A("FmTable");
1425
- return I(), N(me, null, [
1425
+ return C(), N(me, null, [
1426
1426
  m(bt, {
1427
1427
  title: e(y)("inventory.transfer.template.title2"),
1428
1428
  actions: V.value,
@@ -1445,8 +1445,8 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1445
1445
  search: p.value,
1446
1446
  "onUpdate:search": S[0] || (S[0] = (E) => p.value = E)
1447
1447
  }, null, 8, ["search"]),
1448
- (I(), ee(Z, {
1449
- style: He(e(C).tableHeight),
1448
+ (C(), ee(Z, {
1449
+ style: He(e(I).tableHeight),
1450
1450
  "column-defs": e(h).columnDefs,
1451
1451
  "row-data": b.value,
1452
1452
  "search-value": p.value,
@@ -1461,7 +1461,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1461
1461
  onRowClick: (U) => e(t)(U)
1462
1462
  }, {
1463
1463
  default: L((U) => {
1464
- var s, n, T, R, K, q, k, P, Q, X, oe, x, G, re, we, Fe, Ie, Ce, Se, $e, pe, Oe, Me, Ve, De, ce, Re;
1464
+ var s, n, T, R, K, q, k, P, Q, X, oe, x, G, re, we, Fe, Ce, Ie, Se, $e, pe, Oe, Me, Ve, De, ce, Re;
1465
1465
  return [
1466
1466
  l("div", ul, [
1467
1467
  l("div", dl, [
@@ -1483,11 +1483,11 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1483
1483
  props: (we = (re = U.supplier) == null ? void 0 : re.getContext) == null ? void 0 : we.call(re)
1484
1484
  }, null, 8, ["render", "props"])
1485
1485
  ]),
1486
- l("div", null, D((Fe = E.original.locations) != null && Fe.length ? `Enabled for ${(Ie = E.original.locations) == null ? void 0 : Ie.length} outlets` : "Enabled for all outlets"), 1),
1486
+ l("div", null, D((Fe = E.original.locations) != null && Fe.length ? `Enabled for ${(Ce = E.original.locations) == null ? void 0 : Ce.length} outlets` : "Enabled for all outlets"), 1),
1487
1487
  l("div", fl, D(E.original.purchaseOrder.items.length ? E.original.purchaseOrder.items.map((Xe) => Xe.name).join(", ") : "No items"), 1),
1488
1488
  l("div", yl, [
1489
1489
  m(e(J), {
1490
- render: ($e = (Se = (Ce = U.ref) == null ? void 0 : Ce.column) == null ? void 0 : Se.columnDef) == null ? void 0 : $e.cell,
1490
+ render: ($e = (Se = (Ie = U.ref) == null ? void 0 : Ie.column) == null ? void 0 : Se.columnDef) == null ? void 0 : $e.cell,
1491
1491
  props: (Oe = (pe = U.ref) == null ? void 0 : pe.getContext) == null ? void 0 : Oe.call(pe)
1492
1492
  }, null, 8, ["render", "props"])
1493
1493
  ])
@@ -1511,9 +1511,9 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1511
1511
  }),
1512
1512
  _: 1
1513
1513
  }, 8, ["title", "actions"]),
1514
- (I(), ee(ot, { to: "body" }, [
1514
+ (C(), ee(ot, { to: "body" }, [
1515
1515
  m(il, lt(st(e(a))), null, 16),
1516
- m(Co, Qe(e(o), {
1516
+ m(Io, Qe(e(o), {
1517
1517
  onSubmitted: S[2] || (S[2] = (W) => e(h).fetchTemplates())
1518
1518
  }), null, 16)
1519
1519
  ]))
@@ -1522,5 +1522,5 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1522
1522
  }
1523
1523
  });
1524
1524
  export {
1525
- Cl as default
1525
+ Il as default
1526
1526
  };
@@ -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 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-CRWxxzQN.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, p as ne, u as be, b as ge, z as xe, _ as _e, B as he, C as Ve, E as Ue } from "./app-Bs9204PI.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
6
  import { useI18n as G } from "@feedmepos/mf-common";
7
- import { F as $e } from "./decimal-BDt03-KF.js";
8
- import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKCHqrFd.js";
7
+ import { F as $e } from "./decimal-Cwq4YmHr.js";
8
+ import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CtfmvGMA.js";
9
9
  const De = { class: "flex flex-col gap-8" }, Ae = {
10
10
  key: 0,
11
11
  class: "flex flex-col"
@@ -1,5 +1,5 @@
1
1
  import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as xe, openBlock as R, createElementBlock as z, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as L, unref as c, createVNode as V, resolveComponent as B, createSlots as $e, withCtx as q, createTextVNode as Se, renderSlot as We, createBlock as I, createCommentVNode as Ae, computed as $, isRef as we, normalizeClass as De, normalizeStyle as Pe } from "vue";
2
- import { W as Re, ao as Ue, ap as Ee, f as Te, D as Ve, h as Q, e as G, aq as Le, ah as Ne, l as N, d as T, S as Be, u as qe, y as ze, _ as Ie, z as je, B as Oe, E as X } from "./app-CRWxxzQN.js";
2
+ import { W as Re, ao as Ue, ap as Ee, f as Te, D as Ve, h as Q, e as G, aq as Le, ah as Ne, l as N, d as T, S as Be, u as qe, z as ze, _ as Ie, B as je, C as Oe, E as X } from "./app-Bs9204PI.js";
3
3
  import { useCoreStore as Ge, useI18n as O } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as Ke, useDialog as Me, 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";