@feedmepos/mf-inventory-portal 0.0.25-dev.50 → 0.0.25-dev.51

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-B7fIlPKw.js → App-Bf7Ef5j4.js} +2 -2
  2. package/dist/{ApprovalView-Dp20w8em.js → ApprovalView-CTKJY1vM.js} +12 -12
  3. package/dist/{BindingsDialog-BIHCuoDe.js → BindingsDialog-Cb7aRRNk.js} +4 -4
  4. package/dist/{BindingsPicker-DoM1Dh1y.js → BindingsPicker-DOI78hCt.js} +7 -7
  5. package/dist/{BindingsTable-ChJYIxrf.js → BindingsTable-CZE4g-lw.js} +1 -1
  6. package/dist/{ClosingDraftView-L4EHR0Sb.js → ClosingDraftView-ChjnuJSG.js} +47 -47
  7. package/dist/{ClosingTemplateView-CFVINyCr.js → ClosingTemplateView-gSQqeQ_q.js} +53 -53
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn-DgO81.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMFxe5xn.js} +37 -37
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CdWkJ2U-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-PmKyuRhO.js} +32 -32
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BN2ec0EU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CnRG4x74.js} +1 -1
  11. package/dist/{IngredientGroupView-Vz6XV_-q.js → IngredientGroupView-CaF4rmHy.js} +1 -1
  12. package/dist/{IngredientsView-D1lmg_97.js → IngredientsView-CX_MSjT3.js} +4 -4
  13. package/dist/{IntegrationView-CfDmLYwt.js → IntegrationView-BRkcILmI.js} +62 -62
  14. package/dist/{InventoryBindingForm-C68ZfWme.js → InventoryBindingForm-BK7OBXJt.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bd13FqsE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-D81eO5Mu.js} +15 -15
  16. package/dist/{InventoryBindingSummary-DT9cg2b4.js → InventoryBindingSummary-B3m-PoE-.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfhvXVHK.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DsTKgxFv.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dvj1F-DM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-8Sa_WUWa.js} +3 -3
  19. package/dist/{PublishView-DMzULnCX.js → PublishView-DZR7-XFd.js} +18 -18
  20. package/dist/{PurchaseOrderPrintPreview-D6wcth8H.js → PurchaseOrderPrintPreview-BT5Khjs6.js} +1 -1
  21. package/dist/{ReceiveRequestView-DsX41zj-.js → ReceiveRequestView-3nhyFqXE.js} +50 -50
  22. package/dist/{RecipeView-DlKk9-tm.js → RecipeView-R-lqVFmh.js} +3 -3
  23. package/dist/{StockView-CNmvVK0V.js → StockView-Did7vk97.js} +571 -567
  24. package/dist/{SupplierView-BcoOgM67.js → SupplierView-BGHR6LD2.js} +4 -4
  25. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CDDvq_mI.js → TransferDetails.vue_vue_type_script_setup_true_lang-vjDgXu5D.js} +120 -120
  26. package/dist/{TransferTemplateView-BI96LQfP.js → TransferTemplateView-Dh1iZbPZ.js} +116 -116
  27. package/dist/{UnitView-BF2eBWtF.js → UnitView-DE9WIvA-.js} +3 -3
  28. package/dist/{WarehouseView-joOR4EsJ.js → WarehouseView-CgurMkHh.js} +19 -19
  29. package/dist/{app-DavuMSpS.js → app-BoT0hU4y.js} +1947 -1952
  30. package/dist/app.js +1 -1
  31. package/dist/{decimal-C_LJTg2_.js → decimal-CpTYRDjJ.js} +1 -1
  32. package/dist/{feature-D3M-bziy.js → feature-CW1D96VL.js} +1 -1
  33. package/dist/{format-unit-display-BebmN2s-.js → format-unit-display-D6lsq-iX.js} +30 -30
  34. package/dist/helper/number.d.ts +1 -1
  35. package/dist/{index-BDEeA1dY.js → index-TqOHI1Dk.js} +1 -1
  36. package/dist/{index-DzshvJTA.js → index-tTGOQaym.js} +1 -1
  37. package/dist/{stock-CHVVTrSI.js → stock-Cnh2comB.js} +1 -1
  38. package/dist/{supplier-Ddl4sUpm.js → supplier-BY8xacQQ.js} +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/{use-ingredient-select-dialog-Z6bbIKfM.js → use-ingredient-select-dialog-BwbzsMlI.js} +1 -1
  41. package/dist/{use-inventory-binding-dialog-Dj45RBWc.js → use-inventory-binding-dialog-3srettA-.js} +1 -1
  42. package/dist/{vue-i18n-Cak3W4nS.js → vue-i18n-C9tRTjjd.js} +206 -206
  43. package/package.json +3 -3
@@ -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 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-DavuMSpS.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 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, aD as he, t as Le, I as nt, aE as at, aF as rt, i as te, aG as it, b as ut, a as Ke, $ as Be, l as ge, P as ve, K as fe, A as _e, M as dt, E as J, u as Ge, ag as mt, V as pt, ah as ct, C as We, d as de, aH as ye, ad as ft, a1 as yt, z as vt, h as qe, _ as bt, B as ht } from "./app-BoT0hU4y.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-BebmN2s-.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-D6lsq-iX.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 Ct, b as It, F as St, a as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CdWkJ2U-.js";
8
- import { c as Ot, u as Mt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dn-DgO81.js";
9
- import { u as Dt } from "./supplier-Ddl4sUpm.js";
10
- import { u as Rt } from "./use-ingredient-select-dialog-Z6bbIKfM.js";
11
- import { u as At } from "./feature-D3M-bziy.js";
7
+ import { _ as It, b as Ct, F as St, a as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-PmKyuRhO.js";
8
+ import { c as Mt, u as Ot, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BMFxe5xn.js";
9
+ import { u as Dt } from "./supplier-BY8xacQQ.js";
10
+ import { u as Rt } from "./use-ingredient-select-dialog-BwbzsMlI.js";
11
+ import { u as At } from "./feature-CW1D96VL.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(), I = z(), $ = z(!1), w = z(!1), O = H(() => $.value || w.value), b = H(() => [...[
83
+ const h = Symbol.for("fm:form-state"), _ = Ye(h, null), O = H(() => y.disabled ?? (_ == null ? void 0 : _.getDisabled()) ?? !1), B = z(), C = z(), $ = z(!1), w = z(!1), M = 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 C(), N("div", Ut, [
93
+ return I(), N("div", Ut, [
94
94
  l("div", Pt, [
95
95
  l("div", Lt, [
96
96
  m(g, {
@@ -100,7 +100,7 @@ const Ut = { class: "flex flex-col" }, Pt = { class: "flex flex-col" }, Lt = { c
100
100
  optional: p.labelMark === "optional"
101
101
  }, null, 8, ["label", "disabled", "required", "optional"])
102
102
  ]),
103
- m(i, { focused: O.value }, {
103
+ m(i, { focused: M.value }, {
104
104
  default: L(() => [
105
105
  l("div", Bt, [
106
106
  Ae(p.$slots, "prepend"),
@@ -115,8 +115,8 @@ const Ut = { class: "flex flex-col" }, Pt = { class: "flex flex-col" }, Lt = { c
115
115
  "onUpdate:modelValue": d[2] || (d[2] = (V) => o.value = V),
116
116
  class: ne({
117
117
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
118
- "text-fm-color-typo-primary": !M.value,
119
- "text-fm-color-typo-disabled": M.value
118
+ "text-fm-color-typo-primary": !O.value,
119
+ "text-fm-color-typo-disabled": O.value
120
120
  })
121
121
  }, null, 34), [
122
122
  [Pe, o.value]
@@ -128,14 +128,14 @@ 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: I,
131
+ ref: C,
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),
135
135
  class: ne({
136
136
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
137
- "text-fm-color-typo-primary": !M.value,
138
- "text-fm-color-typo-disabled": M.value
137
+ "text-fm-color-typo-primary": !O.value,
138
+ "text-fm-color-typo-disabled": O.value
139
139
  })
140
140
  }, null, 34), [
141
141
  [Pe, a.value]
@@ -208,7 +208,7 @@ function jt(c) {
208
208
  for (const u of c.items) {
209
209
  if (!u.totalCost)
210
210
  continue;
211
- const o = Ot(u.sku, u.quantity, u.measurement, {
211
+ const o = Mt(u.sku, u.quantity, u.measurement, {
212
212
  supplier: c.supplier
213
213
  }), a = u.totalCost ?? Be.reset();
214
214
  o ? t[u.sku._id] = o.amount !== a.amount || o.precision !== a.precision : t[u.sku._id] = !0;
@@ -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((I) => {
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) => {
268
268
  var $;
269
- return (($ = o.measurement) == null ? void 0 : $.id) === I.id;
270
- }), M = o.sku.unit._id !== a.unit._id || !h || o.measurement && !_;
271
- return le(Ct, {
269
+ return (($ = o.measurement) == null ? void 0 : $.id) === C.id;
270
+ }), O = o.sku.unit._id !== a.unit._id || !h || o.measurement && !_;
271
+ return le(It, {
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": (I) => {
283
+ "onUpdate:modelValue": (C) => {
284
284
  ze.validateUnitInput(
285
285
  o,
286
286
  a,
287
- I,
287
+ C,
288
288
  ($) => {
289
289
  c.updateItem({
290
290
  ...o,
@@ -297,7 +297,7 @@ function jt(c) {
297
297
  );
298
298
  },
299
299
  rules: [
300
- It(o.quantityStep),
300
+ Ct(o.quantityStep),
301
301
  ...+te(o.quantity) ? [
302
302
  St(
303
303
  +te(
@@ -313,7 +313,7 @@ function jt(c) {
313
313
  o.maximumQuantity ? +te(o.maximumQuantity) : 1 / 0
314
314
  ),
315
315
  function($) {
316
- return M ? "This item is no longer valid due to change in unit. Please reapply unit." : !0;
316
+ return O ? "This item is no longer valid due to change in unit. Please reapply unit." : !0;
317
317
  }
318
318
  ],
319
319
  applyDefaultRules: !0
@@ -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, I, $, 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, _, O, B, C, $, w, M, 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 C(), N("div", Kt, [
479
+ return I(), 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),
@@ -485,7 +485,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
485
485
  l("div", null, [
486
486
  m(e(J), {
487
487
  render: (h = (a = (o = t.cellByColId.Delete) == null ? void 0 : o.column) == null ? void 0 : a.columnDef) == null ? void 0 : h.cell,
488
- props: (M = (_ = t.cellByColId.Delete) == null ? void 0 : _.getContext) == null ? void 0 : M.call(_)
488
+ props: (O = (_ = t.cellByColId.Delete) == null ? void 0 : _.getContext) == null ? void 0 : O.call(_)
489
489
  }, null, 8, ["render", "props"])
490
490
  ])
491
491
  ]),
@@ -495,8 +495,8 @@ 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: ($ = (I = (B = t.cellByColId[e(j).Code]) == null ? void 0 : B.column) == null ? void 0 : I.columnDef) == null ? void 0 : $.cell,
499
- props: (O = (w = t.cellByColId[e(j).Code]) == null ? void 0 : w.getContext) == null ? void 0 : O.call(w)
498
+ render: ($ = (C = (B = t.cellByColId[e(j).Code]) == null ? void 0 : B.column) == null ? void 0 : C.columnDef) == null ? void 0 : $.cell,
499
+ props: (M = (w = t.cellByColId[e(j).Code]) == null ? void 0 : w.getContext) == null ? void 0 : M.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))
502
502
  ]),
@@ -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 ? (C(), N("div", to, [
514
+ t.row.original ? (I(), 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) => (C(), N("tr", ro, [
563
- (C(!0), N(me, null, Te(v.row.getVisibleCells(), (r) => {
562
+ return (v, t) => (I(), N("tr", ro, [
563
+ (I(!0), N(me, null, Te(v.row.getVisibleCells(), (r) => {
564
564
  var u, o, a, h, _;
565
- return C(), N("td", {
565
+ return I(), 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({
@@ -609,7 +609,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
609
609
  ), u.watchLocation(async () => {
610
610
  location && (t.purchaseOrder.supplier || (t.purchaseOrder.supplier = a.suppliers.find((s) => s) ?? t.purchaseOrder.supplier));
611
611
  });
612
- const _ = Mt(
612
+ const _ = Ot(
613
613
  () => t.purchaseOrder,
614
614
  (s) => {
615
615
  t.purchaseOrder = {
@@ -617,7 +617,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
617
617
  supplier: s.supplier ?? (t == null ? void 0 : t.purchaseOrder.supplier)
618
618
  };
619
619
  }
620
- ), M = H({
620
+ ), O = H({
621
621
  get() {
622
622
  var s, n;
623
623
  return typeof ((n = (s = t.purchaseOrder) == null ? void 0 : s.supplier) == null ? void 0 : n.internal) == "string" ? Y.TRANSFER : Y.PURCHASE;
@@ -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), I = H({
630
+ }), B = H(() => _.transferLocationOptions.value), C = H({
631
631
  get() {
632
632
  var s;
633
633
  return (s = t.purchaseOrder.supplier) == null ? void 0 : s._id;
@@ -638,7 +638,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
638
638
  }), {
639
639
  promptSelectLocations: $,
640
640
  columnDefs: w,
641
- rowData: O,
641
+ rowData: M,
642
642
  hasCustomTag: b,
643
643
  locationTagModel: p,
644
644
  locationTagAutocomplete: d,
@@ -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 C(), ee(X, {
782
+ return I(), ee(X, {
783
783
  ref_key: "formRef",
784
784
  ref: S,
785
785
  class: "flex flex-col gap-32",
@@ -799,8 +799,8 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
799
799
  }, null, 8, ["label", "modelValue", "rules"]),
800
800
  m(R, {
801
801
  label: e(r)("inventory.transfer.form.type.title"),
802
- "model-value": M.value,
803
- "onUpdate:modelValue": n[1] || (n[1] = (x) => M.value = x),
802
+ "model-value": O.value,
803
+ "onUpdate:modelValue": n[1] || (n[1] = (x) => O.value = x),
804
804
  items: [
805
805
  {
806
806
  label: e(r)("inventory.transfer.form.type.purchase"),
@@ -823,14 +823,14 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
823
823
  "line-clamp-1 fm-typo-en-body-lg-400",
824
824
  s.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
825
825
  ])
826
- }, D(e(pt)(M.value)), 3)
826
+ }, D(e(pt)(O.value)), 3)
827
827
  ]),
828
828
  _: 1
829
829
  }, 8, ["label", "model-value", "items", "rules"]),
830
830
  m(R, {
831
- label: M.value === e(Y).PURCHASE ? e(r)("inventory.transfer.form.purchaseFrom") : e(r)("inventory.transfer.form.transferFrom"),
832
- modelValue: I.value,
833
- "onUpdate:modelValue": n[2] || (n[2] = (x) => I.value = x),
831
+ label: O.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),
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 === I.value)) == null ? void 0 : x.label), 3)
853
+ }, D((x = B.value.find((G) => G.value === C.value)) == null ? void 0 : x.label), 3)
854
854
  ];
855
855
  }),
856
856
  _: 1
@@ -885,7 +885,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
885
885
  ]),
886
886
  m(k, {
887
887
  "column-defs": e(w),
888
- "row-data": e(O),
888
+ "row-data": e(M),
889
889
  "shrink-at": 9999,
890
890
  onRowClick: e($),
891
891
  "hide-footer": ""
@@ -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) ? (C(), ee(ct, {
902
+ e(b) ? (I(), 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) ? (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. ")),
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. ")),
914
914
  l("div", go, [
915
- (C(!0), N(me, null, Te(s.modelValue.locationTags, (x, G) => (C(), ee(Q, {
915
+ (I(!0), N(me, null, Te(s.modelValue.locationTags, (x, G) => (I(), 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
- (C(), ee(k, {
955
+ (I(), 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
- (C(), ee(We, {
970
+ (I(), 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" }, Co = { class: "flex gap-4" }, Io = /* @__PURE__ */ ae({
998
+ }), wo = { class: "flex items-center" }, Fo = { class: "fm-typo-en-title-md-800" }, Io = { class: "flex gap-4" }, Co = /* @__PURE__ */ ae({
999
999
  __name: "TransferTemplateDialog",
1000
1000
  props: {
1001
1001
  mode: {},
@@ -1036,15 +1036,15 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1036
1036
  }
1037
1037
  };
1038
1038
  }
1039
- const M = z(t.modelValue ?? _()), B = z(((g = t.modelValue) == null ? void 0 : g._id) ?? `${Math.random()}`);
1039
+ const O = z(t.modelValue ?? _()), B = z(((g = t.modelValue) == null ? void 0 : g._id) ?? `${Math.random()}`);
1040
1040
  be(
1041
1041
  () => t.show,
1042
1042
  (i) => {
1043
1043
  var f;
1044
- i && (M.value = t.modelValue ?? _(), B.value = ((f = t.modelValue) == null ? void 0 : f._id) ?? `${Math.random()}`);
1044
+ i && (O.value = t.modelValue ?? _(), B.value = ((f = t.modelValue) == null ? void 0 : f._id) ?? `${Math.random()}`);
1045
1045
  }
1046
1046
  );
1047
- const I = z(!1), $ = H(() => {
1047
+ const C = z(!1), $ = H(() => {
1048
1048
  switch (t.mode) {
1049
1049
  case de.READ:
1050
1050
  return "";
@@ -1069,11 +1069,11 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1069
1069
  (f = (i = w.value) == null ? void 0 : i.resetInputs) == null || f.call(i);
1070
1070
  }
1071
1071
  });
1072
- async function O() {
1072
+ async function M() {
1073
1073
  var f, V;
1074
- const i = M.value;
1074
+ const i = O.value;
1075
1075
  if (i) {
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(
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(
1077
1077
  ({ totalCost: F, ...S }) => S
1078
1078
  ));
1079
1079
  try {
@@ -1089,15 +1089,15 @@ 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
- I.value = !1;
1092
+ C.value = !1;
1093
1093
  }
1094
1094
  }
1095
1095
  }
1096
1096
  async function b() {
1097
1097
  var f, V;
1098
- const i = M.value;
1098
+ const i = O.value;
1099
1099
  if (i) {
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(
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(
1101
1101
  ({ totalCost: F, ...S }) => S
1102
1102
  ));
1103
1103
  try {
@@ -1113,14 +1113,14 @@ 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
- I.value = !1;
1116
+ C.value = !1;
1117
1117
  }
1118
1118
  }
1119
1119
  }
1120
1120
  function p() {
1121
1121
  switch (t.mode) {
1122
1122
  case de.CREATE:
1123
- return O();
1123
+ return M();
1124
1124
  case de.UPDATE:
1125
1125
  return b();
1126
1126
  }
@@ -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 C(), ee(F, {
1134
+ return I(), 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
- (C(), ee(ko, {
1147
+ (I(), ee(ko, {
1148
1148
  class: "w-full",
1149
1149
  ref_key: "formRef",
1150
1150
  ref: w,
1151
1151
  onValidationSuccess: p,
1152
- "model-value": M.value,
1153
- "onUpdate:modelValue": f[0] || (f[0] = (S) => M.value = S),
1154
- disabled: I.value,
1152
+ "model-value": O.value,
1153
+ "onUpdate:modelValue": f[0] || (f[0] = (S) => O.value = S),
1154
+ disabled: C.value,
1155
1155
  key: B.value
1156
1156
  }, null, 8, ["model-value", "disabled"]))
1157
1157
  ]),
1158
1158
  "side-sheet-footer": L(() => [
1159
- l("div", Co, [
1159
+ l("div", Io, [
1160
1160
  m(V, {
1161
- loading: I.value,
1161
+ loading: C.value,
1162
1162
  label: e(a)("common.save"),
1163
1163
  onClick: d
1164
1164
  }, null, 8, ["loading", "label"]),
1165
1165
  m(V, {
1166
- disabled: I.value,
1166
+ disabled: C.value,
1167
1167
  variant: "tertiary",
1168
1168
  label: e(a)("common.close"),
1169
1169
  onClick: f[1] || (f[1] = (S) => r("update:show", !1))
@@ -1174,7 +1174,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1174
1174
  }, 8, ["modelValue"]);
1175
1175
  };
1176
1176
  }
1177
- }), So = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, $o = { class: "flex justify-between" }, Oo = { class: "fm-typo-en-body-lg-600" }, Mo = { class: "fm-status-badge fm-status-badge-info-secondary" }, Vo = { class: "flex flex-col gap-8" }, Do = { class: "flex flex-col gap-4" }, Ro = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ao = { class: "flex gap-1" }, Uo = { class: "fm-typo-en-body-lg-600" }, Po = {
1177
+ }), So = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, $o = { class: "flex justify-between" }, Mo = { class: "fm-typo-en-body-lg-600" }, Oo = { class: "fm-status-badge fm-status-badge-info-secondary" }, Vo = { class: "flex flex-col gap-8" }, Do = { class: "flex flex-col gap-4" }, Ro = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ao = { class: "flex gap-1" }, Uo = { class: "fm-typo-en-body-lg-600" }, Po = {
1178
1178
  key: 0,
1179
1179
  class: "flex flex-col gap-4"
1180
1180
  }, Lo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bo = { class: "fm-typo-en-body-lg-600" }, qo = {
@@ -1198,33 +1198,33 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1198
1198
  emits: ["update:show", "action:edit"],
1199
1199
  setup(c, { emit: y }) {
1200
1200
  const v = c, t = y, r = At(), { t: u } = ue(), o = H(() => {
1201
- var O;
1202
- return (O = v.template) == null ? void 0 : O.purchaseOrder;
1201
+ var M;
1202
+ return (M = v.template) == null ? void 0 : M.purchaseOrder;
1203
1203
  }), a = z(""), h = [
1204
1204
  { accessorKey: "name", header: () => "Name" },
1205
1205
  { accessorKey: "type", header: () => "Type" }
1206
- ], _ = z(""), M = H(
1206
+ ], _ = z(""), O = H(
1207
1207
  () => {
1208
- var O, b, p, d;
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;
1208
+ var M, b, p, d;
1209
+ return ((b = (M = o.value) == null ? void 0 : M.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), I = Ze(v, "show"), $ = z(!1);
1211
+ ), B = z(!0), C = Ze(v, "show"), $ = z(!1);
1212
1212
  be(
1213
1213
  () => v.show,
1214
- (O) => {
1215
- O && ($.value = !0, setTimeout(() => $.value = !1, 300));
1214
+ (M) => {
1215
+ M && ($.value = !0, setTimeout(() => $.value = !1, 300));
1216
1216
  }
1217
1217
  );
1218
- function w(O) {
1219
- return O.original;
1218
+ function w(M) {
1219
+ return M.original;
1220
1220
  }
1221
- return (O, b) => {
1221
+ return (M, 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 C(), ee(S, {
1225
- header: e(u)("inventory.transfer.template.details.view", { template: (Z = O.template) == null ? void 0 : Z.name }),
1226
- modelValue: e(I),
1227
- "onUpdate:modelValue": b[3] || (b[3] = (W) => ke(I) ? I.value = W : null),
1224
+ return I(), ee(S, {
1225
+ header: e(u)("inventory.transfer.template.details.view", { template: (Z = M.template) == null ? void 0 : Z.name }),
1226
+ modelValue: e(C),
1227
+ "onUpdate:modelValue": b[3] || (b[3] = (W) => ke(C) ? C.value = W : null),
1228
1228
  "dismiss-away": B.value,
1229
1229
  "close-button": "",
1230
1230
  "max-width": 600
@@ -1242,9 +1242,9 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1242
1242
  var s, n, T, R, K, q, k;
1243
1243
  return [
1244
1244
  l("div", $o, [
1245
- l("div", Oo, D(e(u)("inventory.transfer.template.details.templateSummary")), 1),
1246
- l("div", Mo, D(e(u)(
1247
- `inventory.transfer.receiveRequest.details.type.${M.value.toLocaleLowerCase("en-US")}`
1245
+ l("div", Mo, D(e(u)("inventory.transfer.template.details.templateSummary")), 1),
1246
+ l("div", Oo, D(e(u)(
1247
+ `inventory.transfer.receiveRequest.details.type.${O.value.toLocaleLowerCase("en-US")}`
1248
1248
  )), 1)
1249
1249
  ]),
1250
1250
  m(p),
@@ -1253,17 +1253,17 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1253
1253
  l("div", Ro, [
1254
1254
  l("div", Ao, D(e(u)("inventory.transfer.receiveRequest.details.createdAt")), 1)
1255
1255
  ]),
1256
- l("div", Uo, D(e(ft)(((s = O.template) == null ? void 0 : s._id) ?? "")), 1)
1256
+ l("div", Uo, D(e(ft)(((s = M.template) == null ? void 0 : s._id) ?? "")), 1)
1257
1257
  ]),
1258
- (T = (n = o.value) == null ? void 0 : n.supplier) != null && T.name ? (C(), N("div", Po, [
1258
+ (T = (n = o.value) == null ? void 0 : n.supplier) != null && T.name ? (I(), 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 ? (C(), N("div", qo, [
1262
+ (q = o.value) != null && q.ref ? (I(), 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 ? (C(), N("div", zo, [
1266
+ (k = o.value) != null && k.remark ? (I(), 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)
@@ -1285,7 +1285,7 @@ const Kt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
1285
1285
  m(f, {
1286
1286
  "shrink-at": -1,
1287
1287
  "column-defs": [{ accessorKey: "code" }, { accessorKey: "name" }],
1288
- "row-data": ((W = O.template) == null ? void 0 : W.purchaseOrder.items) ?? [],
1288
+ "row-data": ((W = M.template) == null ? void 0 : W.purchaseOrder.items) ?? [],
1289
1289
  "search-value": a.value,
1290
1290
  "force-mobile-footer": "",
1291
1291
  "hide-header-row": "",
@@ -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 ? (C(), N("div", ol, " (" + D(e(yt)(w(s).totalCost)) + ") ", 1)) : se("", !0)
1307
+ w(s).totalCost && e(r).enableTotalCost ? (I(), N("div", ol, " (" + D(e(yt)(w(s).totalCost)) + ") ", 1)) : se("", !0)
1308
1308
  ]),
1309
- e(xt)(w(s)) ? (C(), N("div", ll, [
1309
+ e(xt)(w(s)) ? (I(), 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 ? (C(), N(me, { key: 0 }, [
1327
+ (E = M.template) != null && E.locationTags ? (I(), 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
- (C(!0), N(me, null, Te(O.template.locationTags, (s, n) => (C(), ee(V, {
1333
+ (I(!0), N(me, null, Te(M.template.locationTags, (s, n) => (I(), ee(V, {
1334
1334
  label: s,
1335
1335
  key: n
1336
1336
  }, null, 8, ["label"]))), 128))
@@ -1374,14 +1374,14 @@ 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" }, Il = /* @__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" }, Cl = /* @__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), I = 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: O } = Ne(h), B = z(!1), C = vt(), $ = Ge(), { breakpoints: w } = wt();
1381
1381
  xe(h.fetchTemplates);
1382
- const O = H(
1382
+ const M = H(
1383
1383
  () => B.value || _.value || !$._currentLocation
1384
- ), b = H(() => M.value), p = z(""), d = H(() => w.value.xs || w.value.sm), g = H(() => d.value ? 10 : 20);
1384
+ ), b = H(() => O.value), p = z(""), d = H(() => w.value.xs || w.value.sm), g = H(() => d.value ? 10 : 20);
1385
1385
  function i(F) {
1386
1386
  switch (F) {
1387
1387
  case qe.Add:
@@ -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 C(), N(me, null, [
1425
+ return I(), N(me, null, [
1426
1426
  m(bt, {
1427
1427
  title: e(y)("inventory.transfer.template.title2"),
1428
1428
  actions: V.value,
@@ -1445,12 +1445,12 @@ 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
- (C(), ee(Z, {
1449
- style: He(e(I).tableHeight),
1448
+ (I(), ee(Z, {
1449
+ style: He(e(C).tableHeight),
1450
1450
  "column-defs": e(h).columnDefs,
1451
1451
  "row-data": b.value,
1452
1452
  "search-value": p.value,
1453
- loading: O.value,
1453
+ loading: M.value,
1454
1454
  key: (W = e($)._currentLocation) == null ? void 0 : W.dbName,
1455
1455
  onRowClick: S[1] || (S[1] = (E) => e(t)(E.original)),
1456
1456
  "page-size": g.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, Ce, Ie, 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, Ie, Ce, Se, $e, pe, Me, Oe, Ve, De, ce, Re;
1465
1465
  return [
1466
1466
  l("div", ul, [
1467
1467
  l("div", dl, [
@@ -1483,18 +1483,18 @@ 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 ${(Ce = E.original.locations) == null ? void 0 : Ce.length} outlets` : "Enabled for all outlets"), 1),
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),
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 = (Ie = U.ref) == null ? void 0 : Ie.column) == null ? void 0 : Se.columnDef) == null ? void 0 : $e.cell,
1491
- props: (Oe = (pe = U.ref) == null ? void 0 : pe.getContext) == null ? void 0 : Oe.call(pe)
1490
+ render: ($e = (Se = (Ce = U.ref) == null ? void 0 : Ce.column) == null ? void 0 : Se.columnDef) == null ? void 0 : $e.cell,
1491
+ props: (Me = (pe = U.ref) == null ? void 0 : pe.getContext) == null ? void 0 : Me.call(pe)
1492
1492
  }, null, 8, ["render", "props"])
1493
1493
  ])
1494
1494
  ]),
1495
1495
  l("div", null, [
1496
1496
  m(e(J), {
1497
- render: (De = (Ve = (Me = U.type) == null ? void 0 : Me.column) == null ? void 0 : Ve.columnDef) == null ? void 0 : De.cell,
1497
+ render: (De = (Ve = (Oe = U.type) == null ? void 0 : Oe.column) == null ? void 0 : Ve.columnDef) == null ? void 0 : De.cell,
1498
1498
  props: (Re = (ce = U.type) == null ? void 0 : ce.getContext) == null ? void 0 : Re.call(ce)
1499
1499
  }, null, 8, ["render", "props"])
1500
1500
  ])
@@ -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
- (C(), ee(ot, { to: "body" }, [
1514
+ (I(), ee(ot, { to: "body" }, [
1515
1515
  m(il, lt(st(e(a))), null, 16),
1516
- m(Io, Qe(e(o), {
1516
+ m(Co, 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
- Il as default
1525
+ Cl as default
1526
1526
  };