@feedmepos/mf-inventory-portal 1.2.8 → 1.2.10-dev.1

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 (51) hide show
  1. package/dist/{App-D1IJlQS8.js → App-Bg2M5RwP.js} +1 -1
  2. package/dist/{ApprovalView-GnDYWZHY.js → ApprovalView-C46UDXnc.js} +24 -24
  3. package/dist/{BindingsDialog-Bs00N9mp.js → BindingsDialog-CtJjpbw-.js} +2 -2
  4. package/dist/{BindingsPicker-LO15pMdZ.js → BindingsPicker-B6Er5Lea.js} +1 -1
  5. package/dist/{BindingsTable-g27KG9q4.js → BindingsTable-MPeTr_ip.js} +1 -1
  6. package/dist/{ClosingDraftView-Ddsgcrmg.js → ClosingDraftView-BaD3MLeG.js} +33 -33
  7. package/dist/{ClosingTemplateView-G8Ya81UZ.js → ClosingTemplateView-C4z3GXwd.js} +3 -3
  8. package/dist/{DeliveryOrderPrintPreview-qq1rhFKV.js → DeliveryOrderPrintPreview-BfafKFMa.js} +8 -8
  9. package/dist/{FmAdminBadge-B2NpMmJi.js → FmAdminBadge-Dg5rl1fj.js} +4 -4
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C1i9CHE1.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BATVvC9u.js} +11 -11
  11. package/dist/{FmMultiselectDialog-u2dbuZUp.js → FmMultiselectDialog-DJ-dIe8C.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-vpiiv6C1.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBWaPrlm.js} +38 -38
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-3T-d1pIb.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-oaujHoaU.js} +1 -1
  14. package/dist/{IngredientGroupView-CqB73-e4.js → IngredientGroupView-u4ubHtNF.js} +15 -15
  15. package/dist/{IngredientsView-Cq42ytcN.js → IngredientsView-CXbJifY6.js} +766 -744
  16. package/dist/{IntegrationView-OHnUGZst.js → IntegrationView-XEypfcAW.js} +137 -137
  17. package/dist/{InventoryBindingForm-DorgxR-Y.js → InventoryBindingForm-CETOb5Nj.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CZy77tY7.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DC52GJ2Y.js} +22 -22
  19. package/dist/{InventoryBindingSummary-B_YavyPb.js → InventoryBindingSummary-DbyJW8z0.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-XuEDo134.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BQWWQxaq.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Blq1oE5l.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BruydtsG.js} +9 -9
  22. package/dist/{PublishView-Ds_ztGcV.js → PublishView-Cl3IluMR.js} +12 -12
  23. package/dist/{PurchaseOrderPrintPreview-DnyqN_xE.js → PurchaseOrderPrintPreview-BG_uBL4o.js} +7 -7
  24. package/dist/{ReceiveRequestView-ChpKsDaF.js → ReceiveRequestView-BvGlUVTp.js} +191 -191
  25. package/dist/{RecipeView-Dyp9Xcme.js → RecipeView-C-7XU5F8.js} +12 -12
  26. package/dist/{StockView-D-iP52Zw.js → StockView-rYhlg4fr.js} +680 -665
  27. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D0kASPO9.js +158 -0
  28. package/dist/{SupplierView-BaEK3C8q.js → SupplierView-BoGoqUS-.js} +4 -4
  29. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-B_ravTwn.js → TransferDetails.vue_vue_type_script_setup_true_lang-D53vhWDq.js} +6 -6
  30. package/dist/{TransferTemplateView-3zS7hNZz.js → TransferTemplateView-DZIDXFp7.js} +143 -143
  31. package/dist/{UnitView-BP5eztAG.js → UnitView-CvHIFkue.js} +27 -27
  32. package/dist/{WarehouseView-DMY7Lgwq.js → WarehouseView-Dh_WZz5L.js} +18 -18
  33. package/dist/{app-P6XaUzjP.js → app-BT34Yv61.js} +8968 -8917
  34. package/dist/app.d.ts +6 -6
  35. package/dist/app.js +4 -4
  36. package/dist/{closing-template-BGYZPBty.js → closing-template-JDCk0_lU.js} +1 -1
  37. package/dist/{decimal-wz5HXhQ8.js → decimal-BTgTm2JD.js} +1 -1
  38. package/dist/{format-unit-display-DOOJqLop.js → format-unit-display-HHCA1rN3.js} +48 -48
  39. package/dist/{index-oR0svfBM.js → index-Bz_lEYOD.js} +1 -1
  40. package/dist/{index-CHTB43Wl.js → index-CdamrmzX.js} +1 -1
  41. package/dist/{purchase-order-template-BGunGekw.js → purchase-order-template-DJiYiY6t.js} +1 -1
  42. package/dist/{stock-TJayQnag.js → stock-C8afHO4C.js} +1 -1
  43. package/dist/stores/integration/netsuite.d.ts +1 -0
  44. package/dist/{supplier-C_vqpE92.js → supplier-C8RMKqQX.js} +1 -1
  45. package/dist/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/{use-ingredient-select-dialog-CIahwuTX.js → use-ingredient-select-dialog-fLK9yq-0.js} +1 -1
  47. package/dist/{use-inventory-binding-dialog-BiKRXVhY.js → use-inventory-binding-dialog--7tzpXgV.js} +1 -1
  48. package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
  49. package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
  50. package/package.json +2 -2
  51. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
@@ -1,15 +1,15 @@
1
- import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as P, renderSlot as xe, withDirectives as Ue, normalizeClass as re, vModelText as qe, reactive as st, h as j, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as Be, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
2
- import { T as We, aN as he, t as Ne, I as it, aO as ut, aP as dt, k as se, aQ as mt, b as Ke, a as Ge, Y as Le, c as ge, o as ke, w as be, Z as ye, A as we, M as pt, P as ee, u as Ze, aq as ct, a4 as ft, O as Je, e as ue, x as ve, al as yt, z as vt, ad as bt, K as gt, i as Ee, _ as ht, L as xt } from "./app-P6XaUzjP.js";
1
+ import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as M, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as P, renderSlot as xe, withDirectives as Ue, normalizeClass as re, vModelText as Be, reactive as st, h as Q, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as Qe, createBlock as le, mergeProps as je, createTextVNode as ne, mergeModels as qe, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
2
+ import { V as We, aO as he, t as Ne, I as it, aP as ut, aQ as dt, k as se, aR as mt, b as Ke, a as Ge, Z as Le, c as ge, o as ke, w as be, $ as ye, A as we, M as pt, Q as ee, u as Ze, ar as ct, a5 as ft, P as Je, e as ue, x as ve, am as yt, z as vt, ae as bt, K as gt, i as Ee, L as ht, O as xt } from "./app-BT34Yv61.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
- import { P as X, f as _t, t as kt, a as ze, u as wt } from "./format-unit-display-DOOJqLop.js";
4
+ import { P as X, f as _t, t as kt, a as ze, u as wt } from "./format-unit-display-HHCA1rN3.js";
5
5
  import { components as de, useSnackbar as Tt, useProxiedModel as Xe, useBreakpoints as Ct } from "@feedmepos/ui-library";
6
6
  import { defineStore as Ft, storeToRefs as He } from "pinia";
7
- import { _ as St, b as It, F as Mt, a as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-vpiiv6C1.js";
8
- import { c as Ot, u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C1i9CHE1.js";
9
- import { u as At } from "./supplier-C_vqpE92.js";
10
- import { u as Rt } from "./use-ingredient-select-dialog-CIahwuTX.js";
11
- import { u as Pt } from "./purchase-order-template-BGunGekw.js";
12
- const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Bt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Lt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
7
+ import { _ as St, b as It, F as $t, a as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BBWaPrlm.js";
8
+ import { c as Ot, u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BATVvC9u.js";
9
+ import { u as At } from "./supplier-C8RMKqQX.js";
10
+ import { u as Rt } from "./use-ingredient-select-dialog-fLK9yq-0.js";
11
+ import { u as Pt } from "./purchase-order-template-DJiYiY6t.js";
12
+ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Lt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
13
13
  __name: "FmMinMaxInput",
14
14
  props: {
15
15
  rules: {},
@@ -69,13 +69,13 @@ const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Bt = { c
69
69
  Ce([u, x], ([d, y]) => {
70
70
  const w = v ?? {}, i = a(d), g = a(y), O = r.value;
71
71
  if (d !== "" && i === !0) {
72
- const M = Ne(+d, O);
73
- w.min = M;
72
+ const $ = Ne(+d, O);
73
+ w.min = $;
74
74
  } else
75
75
  w.min = null;
76
76
  if (y !== "" && g === !0) {
77
- const M = Ne(+y, O);
78
- w.max = M;
77
+ const $ = Ne(+y, O);
78
+ w.max = $;
79
79
  } else
80
80
  w.max = null;
81
81
  v.min = w.min, v.max = w.max;
@@ -90,9 +90,9 @@ const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Bt = { c
90
90
  ], ...h.rules ?? []]);
91
91
  return (d, y) => {
92
92
  const w = V("FmLabel"), i = V("FmField"), g = V("FmFormGroup");
93
- return $(), N("div", Ut, [
94
- e("div", qt, [
95
- e("div", Bt, [
93
+ return M(), N("div", Ut, [
94
+ e("div", Bt, [
95
+ e("div", qt, [
96
96
  m(w, {
97
97
  label: d.label,
98
98
  disabled: d.disabled,
@@ -119,7 +119,7 @@ const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Bt = { c
119
119
  "text-fm-color-typo-disabled": o.value
120
120
  })
121
121
  }, null, 34), [
122
- [qe, u.value]
122
+ [Be, u.value]
123
123
  ])
124
124
  ]),
125
125
  y[7] || (y[7] = e("div", { class: "block h-32 mx-4 w-[1px] bg-fm-color-neutral-gray-200" }, null, -1)),
@@ -138,7 +138,7 @@ const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Bt = { c
138
138
  "text-fm-color-typo-disabled": o.value
139
139
  })
140
140
  }, null, 34), [
141
- [qe, x.value]
141
+ [Be, x.value]
142
142
  ])
143
143
  ]),
144
144
  xe(d.$slots, "append")
@@ -164,12 +164,12 @@ function Ht({ min: p, max: h } = { min: !0, max: !0 }) {
164
164
  return !a || !a.min && p != !1 || !a.max && h != !1 ? "Required" : !0;
165
165
  };
166
166
  }
167
- function jt(p, h) {
167
+ function Qt(p, h) {
168
168
  return function(a) {
169
169
  return !a || !a.min || !a.max ? !0 : +se(a.min) < p ? `Must be between ${p} and ${h}` : +se(a.max) > h ? `Must be between ${p} and ${h}` : !0;
170
170
  };
171
171
  }
172
- function Qt(p) {
172
+ function jt(p) {
173
173
  const h = mt(p), v = se(p);
174
174
  return function(r) {
175
175
  const s = !(r != null && r.min) || h(r.min) === !0, u = !(r != null && r.max) || h(r.max) === !0;
@@ -200,7 +200,7 @@ const et = Ft("netsuite-custom-field-helper", () => {
200
200
  validateUnitInput: h
201
201
  };
202
202
  });
203
- var Q = /* @__PURE__ */ ((p) => (p.Code = "Code", p.Name = "Name", p.DefaultAmount = "DefaultAmount", p.Limit = "Limit", p.Step = "Step", p.Cost = "Cost", p.Delete = "Delete", p))(Q || {});
203
+ var j = /* @__PURE__ */ ((p) => (p.Code = "Code", p.Name = "Name", p.DefaultAmount = "DefaultAmount", p.Limit = "Limit", p.Step = "Step", p.Cost = "Cost", p.Delete = "Delete", p))(j || {});
204
204
  function Yt(p, h = {}) {
205
205
  const { t: v } = me(), a = Ge(), r = ge(), s = st({}), u = et();
206
206
  Te(() => {
@@ -221,9 +221,9 @@ function Yt(p, h = {}) {
221
221
  const x = [
222
222
  {
223
223
  id: "Code",
224
- header: () => j("div", { class: "flex-col" }, [
225
- j("div", v("inventory.transfer.form.items.table.Code")),
226
- j(
224
+ header: () => Q("div", { class: "flex-col" }, [
225
+ Q("div", v("inventory.transfer.form.items.table.Code")),
226
+ Q(
227
227
  "div",
228
228
  { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
229
229
  "(original code)"
@@ -233,8 +233,8 @@ function Yt(p, h = {}) {
233
233
  size: 180,
234
234
  cell(c) {
235
235
  const o = c.row.original;
236
- return j("div", [
237
- j(de.FmTextField, {
236
+ return Q("div", [
237
+ Q(de.FmTextField, {
238
238
  modelValue: o.code,
239
239
  "onUpdate:modelValue": (f) => {
240
240
  p.updateItem({
@@ -253,9 +253,9 @@ function Yt(p, h = {}) {
253
253
  },
254
254
  {
255
255
  id: "Name",
256
- header: () => j("div", { class: "flex-col" }, [
257
- j("div", v("inventory.transfer.form.items.table.Name")),
258
- j(
256
+ header: () => Q("div", { class: "flex-col" }, [
257
+ Q("div", v("inventory.transfer.form.items.table.Name")),
258
+ Q(
259
259
  "div",
260
260
  { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
261
261
  "(original name)"
@@ -264,8 +264,8 @@ function Yt(p, h = {}) {
264
264
  minSize: 300,
265
265
  cell(c) {
266
266
  const o = c.row.original;
267
- return j("div", [
268
- j(de.FmTextField, {
267
+ return Q("div", [
268
+ Q(de.FmTextField, {
269
269
  modelValue: o.name,
270
270
  "onUpdate:modelValue": (f) => {
271
271
  p.updateItem({
@@ -292,7 +292,7 @@ function Yt(p, h = {}) {
292
292
  var d;
293
293
  return ((d = o.measurement) == null ? void 0 : d.id) === U.id;
294
294
  }), T = o.sku.unit._id !== f.unit._id || !b || o.measurement && !k;
295
- return j(St, {
295
+ return Q(St, {
296
296
  style: {
297
297
  flex: "1 1 0%"
298
298
  },
@@ -322,7 +322,7 @@ function Yt(p, h = {}) {
322
322
  rules: [
323
323
  It(o.quantityStep),
324
324
  ...+se(o.quantity) ? [
325
- Mt(
325
+ $t(
326
326
  +se(
327
327
  o.minimumQuantity ?? {
328
328
  amount: 1,
@@ -332,7 +332,7 @@ function Yt(p, h = {}) {
332
332
  )
333
333
  )
334
334
  ] : [],
335
- $t(
335
+ Mt(
336
336
  o.maximumQuantity ? +se(o.maximumQuantity) : 1 / 0
337
337
  ),
338
338
  function(d) {
@@ -351,7 +351,7 @@ function Yt(p, h = {}) {
351
351
  minSize: 280,
352
352
  cell(c) {
353
353
  const o = c.row.original;
354
- return j(zt, {
354
+ return Q(zt, {
355
355
  style: {
356
356
  flex: "1 1 0%"
357
357
  },
@@ -368,8 +368,8 @@ function Yt(p, h = {}) {
368
368
  },
369
369
  rules: [
370
370
  Ht({ max: !1 }),
371
- Qt(o.quantityStep),
372
- jt(
371
+ jt(o.quantityStep),
372
+ Qt(
373
373
  +se({
374
374
  amount: 0,
375
375
  precision: be(o.sku.unit, o.measurement)
@@ -388,7 +388,7 @@ function Yt(p, h = {}) {
388
388
  minSize: 100,
389
389
  cell(c) {
390
390
  const o = c.row.original;
391
- return j(de.FmTextField, {
391
+ return Q(de.FmTextField, {
392
392
  modelValue: se(o.quantityStep ?? Le.reset(), !1),
393
393
  key: o.sku._id,
394
394
  "onUpdate:modelValue": (f) => {
@@ -413,8 +413,8 @@ function Yt(p, h = {}) {
413
413
  header: "",
414
414
  cell(c) {
415
415
  const o = c.row.original;
416
- return j("div", { class: "flex items-center" }, [
417
- r.usePurchaseOrderV2 ? j(
416
+ return Q("div", { class: "flex items-center" }, [
417
+ r.usePurchaseOrderV2 ? Q(
418
418
  de.FmTooltip,
419
419
  {
420
420
  zIndex: 50,
@@ -422,7 +422,7 @@ function Yt(p, h = {}) {
422
422
  },
423
423
  {
424
424
  default() {
425
- return j(de.FmButton, {
425
+ return Q(de.FmButton, {
426
426
  key: o.sku._id,
427
427
  type: "button",
428
428
  icon: "add_circle",
@@ -458,7 +458,7 @@ function Yt(p, h = {}) {
458
458
  }
459
459
  }
460
460
  ) : null,
461
- j(de.FmButton, {
461
+ Q(de.FmButton, {
462
462
  class: "delete-button",
463
463
  key: o.sku._id,
464
464
  type: "button",
@@ -508,9 +508,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
508
508
  return a;
509
509
  }
510
510
  return (a, r) => {
511
- var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O, M, _, W, te, E, q, Z, l, n, C, B, z, K;
511
+ var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O, $, _, W, te, E, B, Z, l, n, C, q, z, K;
512
512
  const s = V("FmLabel");
513
- return $(), N("div", Wt, [
513
+ return M(), N("div", Wt, [
514
514
  e("div", Kt, [
515
515
  e("div", Gt, [
516
516
  e("span", Zt, " (" + I(a.row.original.sku.code) + ") ", 1),
@@ -526,43 +526,43 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
526
526
  e("div", Xt, [
527
527
  e("div", eo, [
528
528
  m(s, {
529
- label: t(h)(`inventory.transfer.form.items.table.${t(Q).Code}`)
529
+ label: t(h)(`inventory.transfer.form.items.table.${t(j).Code}`)
530
530
  }, null, 8, ["label"]),
531
531
  m(t(ee), {
532
- render: (k = (b = (f = a.cellByColId[t(Q).Code]) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : k.cell,
533
- props: (R = (T = a.cellByColId[t(Q).Code]) == null ? void 0 : T.getContext) == null ? void 0 : R.call(T)
532
+ render: (k = (b = (f = a.cellByColId[t(j).Code]) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : k.cell,
533
+ props: (R = (T = a.cellByColId[t(j).Code]) == null ? void 0 : T.getContext) == null ? void 0 : R.call(T)
534
534
  }, null, 8, ["render", "props"]),
535
535
  r[0] || (r[0] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
536
536
  ]),
537
537
  e("div", to, [
538
538
  m(s, {
539
- label: t(h)(`inventory.transfer.form.items.table.${t(Q).Name}`)
539
+ label: t(h)(`inventory.transfer.form.items.table.${t(j).Name}`)
540
540
  }, null, 8, ["label"]),
541
541
  m(t(ee), {
542
- render: (y = (d = (U = a.cellByColId[t(Q).Name]) == null ? void 0 : U.column) == null ? void 0 : d.columnDef) == null ? void 0 : y.cell,
543
- props: (i = (w = a.cellByColId[t(Q).Name]) == null ? void 0 : w.getContext) == null ? void 0 : i.call(w)
542
+ render: (y = (d = (U = a.cellByColId[t(j).Name]) == null ? void 0 : U.column) == null ? void 0 : d.columnDef) == null ? void 0 : y.cell,
543
+ props: (i = (w = a.cellByColId[t(j).Name]) == null ? void 0 : w.getContext) == null ? void 0 : i.call(w)
544
544
  }, null, 8, ["render", "props"]),
545
545
  r[1] || (r[1] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
546
546
  ])
547
547
  ]),
548
- a.row.original ? ($(), N("div", oo, [
548
+ a.row.original ? (M(), N("div", oo, [
549
549
  e("div", so, [
550
550
  m(s, {
551
- label: t(h)(`inventory.transfer.form.items.table.${t(Q).DefaultAmount}`)
551
+ label: t(h)(`inventory.transfer.form.items.table.${t(j).DefaultAmount}`)
552
552
  }, null, 8, ["label"]),
553
553
  m(t(ee), {
554
- render: (M = (O = (g = a.cellByColId[t(Q).DefaultAmount]) == null ? void 0 : g.column) == null ? void 0 : O.columnDef) == null ? void 0 : M.cell,
555
- props: (W = (_ = a.cellByColId[t(Q).DefaultAmount]) == null ? void 0 : _.getContext) == null ? void 0 : W.call(_)
554
+ render: ($ = (O = (g = a.cellByColId[t(j).DefaultAmount]) == null ? void 0 : g.column) == null ? void 0 : O.columnDef) == null ? void 0 : $.cell,
555
+ props: (W = (_ = a.cellByColId[t(j).DefaultAmount]) == null ? void 0 : _.getContext) == null ? void 0 : W.call(_)
556
556
  }, null, 8, ["render", "props"]),
557
557
  r[2] || (r[2] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
558
558
  ]),
559
559
  e("div", lo, [
560
560
  m(s, {
561
- label: t(h)(`inventory.transfer.form.items.table.${t(Q).Step}`)
561
+ label: t(h)(`inventory.transfer.form.items.table.${t(j).Step}`)
562
562
  }, null, 8, ["label"]),
563
563
  m(t(ee), {
564
- render: (q = (E = (te = a.cellByColId[t(Q).Step]) == null ? void 0 : te.column) == null ? void 0 : E.columnDef) == null ? void 0 : q.cell,
565
- props: (l = (Z = a.cellByColId[t(Q).Step]) == null ? void 0 : Z.getContext) == null ? void 0 : l.call(Z)
564
+ render: (B = (E = (te = a.cellByColId[t(j).Step]) == null ? void 0 : te.column) == null ? void 0 : E.columnDef) == null ? void 0 : B.cell,
565
+ props: (l = (Z = a.cellByColId[t(j).Step]) == null ? void 0 : Z.getContext) == null ? void 0 : l.call(Z)
566
566
  }, null, 8, ["render", "props"]),
567
567
  r[3] || (r[3] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
568
568
  ])
@@ -570,11 +570,11 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
570
570
  e("div", no, [
571
571
  e("div", ao, [
572
572
  m(s, {
573
- label: t(h)(`inventory.transfer.form.items.table.${t(Q).Limit}`)
573
+ label: t(h)(`inventory.transfer.form.items.table.${t(j).Limit}`)
574
574
  }, null, 8, ["label"]),
575
575
  m(t(ee), {
576
- render: (B = (C = (n = a.cellByColId[t(Q).Limit]) == null ? void 0 : n.column) == null ? void 0 : C.columnDef) == null ? void 0 : B.cell,
577
- props: (K = (z = a.cellByColId[t(Q).Limit]) == null ? void 0 : z.getContext) == null ? void 0 : K.call(z)
576
+ render: (q = (C = (n = a.cellByColId[t(j).Limit]) == null ? void 0 : n.column) == null ? void 0 : C.columnDef) == null ? void 0 : q.cell,
577
+ props: (K = (z = a.cellByColId[t(j).Limit]) == null ? void 0 : z.getContext) == null ? void 0 : K.call(z)
578
578
  }, null, 8, ["render", "props"]),
579
579
  r[4] || (r[4] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
580
580
  ])
@@ -594,14 +594,14 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
594
594
  function h(v) {
595
595
  return v.column.columnDef.meta;
596
596
  }
597
- return (v, a) => ($(), N(pe, null, [
597
+ return (v, a) => (M(), N(pe, null, [
598
598
  e("tr", {
599
599
  class: "hover:bg-fm-color-opacity-sm border-b border-fm-color-neutral-gray-100",
600
600
  style: _e({ backgroundColor: v.errorMessage ? "#ffd6d6" : void 0 })
601
601
  }, [
602
- ($(!0), N(pe, null, je(v.row.getVisibleCells(), (r) => {
602
+ (M(!0), N(pe, null, Qe(v.row.getVisibleCells(), (r) => {
603
603
  var s, u, x, F, c;
604
- return $(), N("td", {
604
+ return M(), N("td", {
605
605
  key: r.id,
606
606
  class: re(["text-fm-color-typo-primary", ((s = h(r)) == null ? void 0 : s.cellClass) ?? "px-16", "py-2"]),
607
607
  style: _e({
@@ -619,7 +619,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
619
619
  ], 6);
620
620
  }), 128))
621
621
  ], 4),
622
- v.errorMessage ? ($(), N("tr", uo, [
622
+ v.errorMessage ? (M(), N("tr", uo, [
623
623
  e("td", {
624
624
  colspan: v.row.getVisibleCells().length,
625
625
  class: "text-red-600 px-16 py-2"
@@ -661,8 +661,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
661
661
  return typeof ((n = (l = s.purchaseOrder) == null ? void 0 : l.supplier) == null ? void 0 : n.internal) == "string" ? X.TRANSFER : X.PURCHASE;
662
662
  },
663
663
  set(l) {
664
- var C, B;
665
- const n = typeof ((B = (C = s.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : B.internal) == "string" ? X.TRANSFER : X.PURCHASE;
664
+ var C, q;
665
+ const n = typeof ((q = (C = s.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : q.internal) == "string" ? X.TRANSFER : X.PURCHASE;
666
666
  l !== n && (s.purchaseOrder.supplier = l === X.PURCHASE ? T.locationOptionsTypePurchase.value[0] : T.locationOptionsTypeTransfer.value[0]);
667
667
  }
668
668
  }), U = L(() => T.transferLocationOptions.value), d = L({
@@ -698,11 +698,11 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
698
698
  function O() {
699
699
  var l, n;
700
700
  return (l = s.locations) != null && l.find((C) => {
701
- var B, z;
702
- return ((B = C.doc) == null ? void 0 : B._id) === ((z = s.purchaseOrder.supplier) == null ? void 0 : z._id);
701
+ var q, z;
702
+ return ((q = C.doc) == null ? void 0 : q._id) === ((z = s.purchaseOrder.supplier) == null ? void 0 : z._id);
703
703
  }) ? `Location ${(n = s.purchaseOrder.supplier) == null ? void 0 : n.name} must be removed because template cannot be used to transfer to itself.` : !0;
704
704
  }
705
- const M = L({
705
+ const $ = L({
706
706
  get() {
707
707
  return s.purchaseOrder.remark ?? void 0;
708
708
  },
@@ -761,7 +761,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
761
761
  }
762
762
  },
763
763
  b.transferTemplateColumnDefs({
764
- onUpdate: (l, n, C, B) => {
764
+ onUpdate: (l, n, C, q) => {
765
765
  if (l < 0 || l >= s.purchaseOrder.items.length) return;
766
766
  const z = s.purchaseOrder.items[l];
767
767
  z && W.value.updateItem({
@@ -769,11 +769,11 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
769
769
  sku: n,
770
770
  // Sku might be outdated, so we need to update it
771
771
  code: C,
772
- measurement: B
772
+ measurement: q
773
773
  });
774
774
  }
775
775
  })
776
- ), E = L(() => te.columnDefs.value), { promptSelectIngredients: q } = Rt();
776
+ ), E = L(() => te.columnDefs.value), { promptSelectIngredients: B } = Rt();
777
777
  async function Z() {
778
778
  const n = c.skus.map((D) => ({
779
779
  label: D.name,
@@ -782,7 +782,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
782
782
  })).filter((D) => {
783
783
  var A;
784
784
  return (A = s.purchaseOrder.items) == null ? void 0 : A.find((G) => G.sku._id === D.value._id);
785
- }).map((D) => D.value), C = s.purchaseOrder.items ?? [], B = await q(
785
+ }).map((D) => D.value), C = s.purchaseOrder.items ?? [], q = await B(
786
786
  n.map((D) => D._id),
787
787
  (D) => {
788
788
  const A = c.skuById[D], G = C.find((H) => H.sku._id === A._id);
@@ -815,22 +815,22 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
815
815
  ), S;
816
816
  }
817
817
  );
818
- if (!B) return;
819
- const z = B.map((D) => D.sku._id), K = [];
818
+ if (!q) return;
819
+ const z = q.map((D) => D.sku._id), K = [];
820
820
  for (const D of z) {
821
821
  const A = C.filter((G) => G.sku._id === D);
822
822
  if (A.length > 0)
823
823
  K.push(...A);
824
824
  else {
825
- const G = B.find((J) => J.sku._id === D);
825
+ const G = q.find((J) => J.sku._id === D);
826
826
  G && K.push(G);
827
827
  }
828
828
  }
829
829
  K.sort((D, A) => D.sku.code.localeCompare(A.sku.code)), s.purchaseOrder.items = K;
830
830
  }
831
831
  return (l, n) => {
832
- const C = V("FmTextField"), B = V("FmSelect"), z = V("FmTextarea"), K = V("FmButton"), D = V("FmTable"), A = V("FmFormGroup"), G = V("FmForm");
833
- return $(), le(G, {
832
+ const C = V("FmTextField"), q = V("FmSelect"), z = V("FmTextarea"), K = V("FmButton"), D = V("FmTable"), A = V("FmFormGroup"), G = V("FmForm");
833
+ return M(), le(G, {
834
834
  ref_key: "formRef",
835
835
  ref: _,
836
836
  class: "flex flex-col gap-32",
@@ -848,7 +848,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
848
848
  "onUpdate:modelValue": n[0] || (n[0] = (S) => t(s).name = S),
849
849
  rules: [t(ke)()]
850
850
  }, null, 8, ["label", "modelValue", "rules"]),
851
- m(B, {
851
+ m(q, {
852
852
  label: t(u)("inventory.transfer.form.type.title"),
853
853
  "model-value": R.value,
854
854
  "onUpdate:modelValue": n[1] || (n[1] = (S) => R.value = S),
@@ -878,7 +878,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
878
878
  ]),
879
879
  _: 1
880
880
  }, 8, ["label", "model-value", "items", "rules"]),
881
- m(B, {
881
+ m(q, {
882
882
  label: R.value === t(X).PURCHASE ? t(u)("inventory.transfer.form.purchaseFrom") : t(u)("inventory.transfer.form.transferFrom"),
883
883
  modelValue: d.value,
884
884
  "onUpdate:modelValue": n[2] || (n[2] = (S) => d.value = S),
@@ -887,7 +887,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
887
887
  "menu-wrapper": P((S) => {
888
888
  var H;
889
889
  return [
890
- m(Vt, Qe(S, {
890
+ m(Vt, je(S, {
891
891
  items: U.value,
892
892
  "model-value": (H = l.modelValue.purchaseOrder.supplier) == null ? void 0 : H._id
893
893
  }), null, 16, ["items", "model-value"])
@@ -916,8 +916,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
916
916
  label: t(u)("inventory.transfer.form.remark"),
917
917
  "label-mark": "optional",
918
918
  "max-length": 240,
919
- modelValue: M.value,
920
- "onUpdate:modelValue": n[4] || (n[4] = (S) => M.value = S),
919
+ modelValue: $.value,
920
+ "onUpdate:modelValue": n[4] || (n[4] = (S) => $.value = S),
921
921
  class: re({ "text-fm-color-typo-disabled": l.disabled })
922
922
  }, null, 8, ["label", "modelValue", "class"])
923
923
  ])
@@ -954,7 +954,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
954
954
  e("div", go, [
955
955
  e("div", ho, [
956
956
  e("div", xo, I(t(u)("inventory.transfer.form.items.title")), 1),
957
- t(b).isEnabled ? ($(), le(K, {
957
+ t(b).isEnabled ? (M(), le(K, {
958
958
  key: 0,
959
959
  label: "Check NetSuite",
960
960
  "prepend-icon": "troubleshoot",
@@ -972,7 +972,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
972
972
  size: "md"
973
973
  }, null, 8, ["disabled", "label"])
974
974
  ]),
975
- t(b).isEnabled ? ($(), N("div", _o, n[9] || (n[9] = [
975
+ t(b).isEnabled ? (M(), N("div", _o, n[9] || (n[9] = [
976
976
  ne(" NetSuite is enabled. "),
977
977
  e("ul", { style: { "list-style": "initial", "margin-left": "20px" } }, [
978
978
  e("li", null, ' When adding new item or changing UOM, the first match available custom code (if any) will be applied to "Code" for each item by default. '),
@@ -991,7 +991,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
991
991
  ]),
992
992
  n[13] || (n[13] = e("p", null, ' You can leave "Max" empty to remove the limit on the maximum quantity of the item when creating an order request. ', -1))
993
993
  ]),
994
- ($(), le(D, {
994
+ (M(), le(D, {
995
995
  "column-defs": E.value,
996
996
  "row-data": t(s).purchaseOrder.items,
997
997
  key: t(s).purchaseOrder.items.map((S) => S.sku._id).join("."),
@@ -1007,7 +1007,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1007
1007
  }, null, 8, ["row", "errorMessage", "disabled"])
1008
1008
  ]),
1009
1009
  "list-row": P((S) => [
1010
- ($(), le(Je, {
1010
+ (M(), le(Je, {
1011
1011
  row: S,
1012
1012
  key: t(s).purchaseOrder.items.map((H) => H.sku._id).join(".")
1013
1013
  }, {
@@ -1051,7 +1051,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1051
1051
  }
1052
1052
  return (u, x) => {
1053
1053
  const F = V("FmButton"), c = V("FmDialog");
1054
- return $(), N("div", null, [
1054
+ return M(), N("div", null, [
1055
1055
  m(F, {
1056
1056
  label: v.label,
1057
1057
  loading: v.loading,
@@ -1090,9 +1090,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1090
1090
  ]);
1091
1091
  };
1092
1092
  }
1093
- }), So = { class: "flex items-center" }, Io = { class: "fm-typo-en-title-md-800" }, Mo = { class: "flex gap-4" }, $o = /* @__PURE__ */ ae({
1093
+ }), So = { class: "flex items-center" }, Io = { class: "fm-typo-en-title-md-800" }, $o = { class: "flex gap-4" }, Mo = /* @__PURE__ */ ae({
1094
1094
  __name: "TransferTemplateDialog",
1095
- props: /* @__PURE__ */ Be({
1095
+ props: /* @__PURE__ */ qe({
1096
1096
  mode: {},
1097
1097
  modelValue: {},
1098
1098
  show: { type: Boolean }
@@ -1100,7 +1100,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1100
1100
  disabled: { type: Boolean },
1101
1101
  disabledModifiers: {}
1102
1102
  }),
1103
- emits: /* @__PURE__ */ Be(["update:show", "submitted"], ["update:disabled"]),
1103
+ emits: /* @__PURE__ */ qe(["update:show", "submitted"], ["update:disabled"]),
1104
1104
  setup(p, { expose: h, emit: v }) {
1105
1105
  var w;
1106
1106
  const a = p, r = v, s = Pt(), u = Tt(), { t: x } = me(), F = Xe(a, "show");
@@ -1172,20 +1172,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1172
1172
  const i = o.value;
1173
1173
  if (i) {
1174
1174
  b.value = !0, (((g = i.purchaseOrder.supplier) == null ? void 0 : g.internal) === ve.enum.warehouse || ((O = i.purchaseOrder.supplier) == null ? void 0 : O.internal) === ve.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
1175
- ({ totalCost: M, ..._ }) => _
1175
+ ({ totalCost: $, ..._ }) => _
1176
1176
  ));
1177
1177
  try {
1178
- await s.createTemplate(i), await new Promise((M) => setTimeout(M, 1e3)), u.open({
1178
+ await s.createTemplate(i), await new Promise(($) => setTimeout($, 1e3)), u.open({
1179
1179
  title: x("inventory.transfer.template.create.success"),
1180
1180
  message: x("inventory.transfer.template.create.successMessage"),
1181
1181
  type: "success"
1182
1182
  }), r("update:show", !1), r("submitted");
1183
- } catch (M) {
1183
+ } catch ($) {
1184
1184
  u.open({
1185
1185
  title: x("inventory.transfer.template.create.error"),
1186
1186
  message: x("inventory.transfer.template.create.errorMessage"),
1187
1187
  type: "error"
1188
- }), console.error("Error in creating transfer template", M);
1188
+ }), console.error("Error in creating transfer template", $);
1189
1189
  } finally {
1190
1190
  b.value = !1;
1191
1191
  }
@@ -1196,20 +1196,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1196
1196
  const i = o.value;
1197
1197
  if (i) {
1198
1198
  b.value = !0, (((g = i.purchaseOrder.supplier) == null ? void 0 : g.internal) === ve.enum.warehouse || ((O = i.purchaseOrder.supplier) == null ? void 0 : O.internal) === ve.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
1199
- ({ totalCost: M, ..._ }) => _
1199
+ ({ totalCost: $, ..._ }) => _
1200
1200
  ));
1201
1201
  try {
1202
- await s.updateTemplate(i), await new Promise((M) => setTimeout(M, 1e3)), u.open({
1202
+ await s.updateTemplate(i), await new Promise(($) => setTimeout($, 1e3)), u.open({
1203
1203
  title: x("inventory.transfer.template.update.success"),
1204
1204
  message: x("inventory.transfer.template.update.successMessage"),
1205
1205
  type: "success"
1206
1206
  }), r("update:show", !1), r("submitted");
1207
- } catch (M) {
1207
+ } catch ($) {
1208
1208
  u.open({
1209
1209
  title: x("inventory.transfer.template.update.error"),
1210
1210
  message: x("inventory.transfer.template.update.errorMessage"),
1211
1211
  type: "error"
1212
- }), console.error("Error in updating transfer template", M);
1212
+ }), console.error("Error in updating transfer template", $);
1213
1213
  } finally {
1214
1214
  b.value = !1;
1215
1215
  }
@@ -1228,8 +1228,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1228
1228
  (g = (i = T.value) == null ? void 0 : i.validateInputs) == null || g.call(i);
1229
1229
  }
1230
1230
  return (i, g) => {
1231
- const O = V("FmButton"), M = V("FmSideSheet");
1232
- return $(), le(M, {
1231
+ const O = V("FmButton"), $ = V("FmSideSheet");
1232
+ return M(), le($, {
1233
1233
  modelValue: t(F),
1234
1234
  "onUpdate:modelValue": g[3] || (g[3] = (_) => Ye(F) ? F.value = _ : null),
1235
1235
  "dismiss-away": "",
@@ -1242,7 +1242,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1242
1242
  ])
1243
1243
  ]),
1244
1244
  default: P(() => [
1245
- ($(), le(To, {
1245
+ (M(), le(To, {
1246
1246
  class: "w-full",
1247
1247
  ref_key: "formRef",
1248
1248
  ref: T,
@@ -1255,7 +1255,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1255
1255
  }, null, 8, ["model-value", "disabled"]))
1256
1256
  ]),
1257
1257
  "side-sheet-footer": P(() => [
1258
- e("div", Mo, [
1258
+ e("div", $o, [
1259
1259
  m(Fo, {
1260
1260
  loading: b.value,
1261
1261
  label: t(x)("common.save"),
@@ -1283,13 +1283,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1283
1283
  }, 8, ["modelValue"]);
1284
1284
  };
1285
1285
  }
1286
- }), Oo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, Do = { class: "flex justify-between" }, Vo = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "fm-status-badge fm-status-badge-info-secondary" }, Ro = { class: "flex flex-col gap-8" }, Po = { class: "flex flex-col gap-4" }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qo = { class: "flex gap-1" }, Bo = { class: "fm-typo-en-body-lg-600" }, No = {
1286
+ }), Oo = { class: "flex flex-col gap-16 w-full h-full overflow-y-auto" }, Do = { class: "flex justify-between" }, Vo = { class: "fm-typo-en-body-lg-600" }, Ao = { class: "fm-status-badge fm-status-badge-info-secondary" }, Ro = { class: "flex flex-col gap-8" }, Po = { class: "flex flex-col gap-4" }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bo = { class: "flex gap-1" }, qo = { class: "fm-typo-en-body-lg-600" }, No = {
1287
1287
  key: 0,
1288
1288
  class: "flex flex-col gap-4"
1289
1289
  }, Lo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Eo = { class: "flex gap-1" }, zo = { class: "fm-typo-en-body-lg-600" }, Ho = {
1290
1290
  key: 1,
1291
1291
  class: "flex flex-col gap-4"
1292
- }, jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qo = { class: "fm-typo-en-body-lg-600" }, Yo = {
1292
+ }, Qo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, jo = { class: "fm-typo-en-body-lg-600" }, Yo = {
1293
1293
  key: 2,
1294
1294
  class: "flex flex-col gap-4"
1295
1295
  }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ko = { class: "fm-typo-en-body-lg-600" }, Go = {
@@ -1324,7 +1324,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1324
1324
  return (b, k) => {
1325
1325
  var g;
1326
1326
  const T = V("FmMenuDivider"), R = V("FmCard"), U = V("FmIcon"), d = V("FmTextField"), y = V("FmTable"), w = V("FmButton"), i = V("FmSideSheet");
1327
- return $(), le(i, {
1327
+ return M(), le(i, {
1328
1328
  header: t(s)("inventory.transfer.template.details.view", { template: (g = b.template) == null ? void 0 : g.name }),
1329
1329
  modelValue: t(f),
1330
1330
  "onUpdate:modelValue": k[2] || (k[2] = (O) => Ye(f) ? f.value = O : null),
@@ -1333,7 +1333,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1333
1333
  "max-width": 1200
1334
1334
  }, {
1335
1335
  default: P(() => {
1336
- var O, M;
1336
+ var O, $;
1337
1337
  return [
1338
1338
  e("div", Oo, [
1339
1339
  e("div", null, [
@@ -1342,7 +1342,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1342
1342
  class: "flex flex-col gap-8 px-12 py-16"
1343
1343
  }, {
1344
1344
  default: P(() => {
1345
- var _, W, te, E, q, Z, l, n, C;
1345
+ var _, W, te, E, B, Z, l, n, C;
1346
1346
  return [
1347
1347
  e("div", Do, [
1348
1348
  e("div", Vo, I(t(s)("inventory.transfer.template.details.templateSummary")), 1),
@@ -1354,30 +1354,30 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1354
1354
  e("div", Ro, [
1355
1355
  e("div", Po, [
1356
1356
  e("div", Uo, [
1357
- e("div", qo, I(t(s)("inventory.transfer.receiveRequest.details.createdAt")), 1)
1357
+ e("div", Bo, I(t(s)("inventory.transfer.receiveRequest.details.createdAt")), 1)
1358
1358
  ]),
1359
- e("div", Bo, I(t(yt)(((_ = b.template) == null ? void 0 : _._id) ?? "")), 1)
1359
+ e("div", qo, I(t(yt)(((_ = b.template) == null ? void 0 : _._id) ?? "")), 1)
1360
1360
  ]),
1361
- (W = b.template) != null && W.updatedAt ? ($(), N("div", No, [
1361
+ (W = b.template) != null && W.updatedAt ? (M(), N("div", No, [
1362
1362
  e("div", Lo, [
1363
1363
  e("div", Eo, I(t(s)("inventory.transfer.receiveRequest.details.updatedAt")), 1)
1364
1364
  ]),
1365
1365
  e("div", zo, [
1366
1366
  ne(I(t(vt)(new Date(b.template.updatedAt))) + " ", 1),
1367
- (te = b.template.updatedBy) != null && te.name ? ($(), N(pe, { key: 0 }, [
1367
+ (te = b.template.updatedBy) != null && te.name ? (M(), N(pe, { key: 0 }, [
1368
1368
  ne(" (" + I(b.template.updatedBy.name) + ") ", 1)
1369
1369
  ], 64)) : oe("", !0)
1370
1370
  ])
1371
1371
  ])) : oe("", !0),
1372
- (q = (E = u.value) == null ? void 0 : E.supplier) != null && q.name ? ($(), N("div", Ho, [
1373
- e("div", jo, I(t(s)("inventory.transfer.receiveRequest.details.from")), 1),
1374
- e("div", Qo, I((l = (Z = u.value) == null ? void 0 : Z.supplier) == null ? void 0 : l.name), 1)
1372
+ (B = (E = u.value) == null ? void 0 : E.supplier) != null && B.name ? (M(), N("div", Ho, [
1373
+ e("div", Qo, I(t(s)("inventory.transfer.receiveRequest.details.from")), 1),
1374
+ e("div", jo, I((l = (Z = u.value) == null ? void 0 : Z.supplier) == null ? void 0 : l.name), 1)
1375
1375
  ])) : oe("", !0),
1376
- (n = u.value) != null && n.ref ? ($(), N("div", Yo, [
1376
+ (n = u.value) != null && n.ref ? (M(), N("div", Yo, [
1377
1377
  e("div", Wo, I(t(s)("inventory.transfer.receiveRequest.details.reference")), 1),
1378
1378
  e("div", Ko, I(u.value.ref), 1)
1379
1379
  ])) : oe("", !0),
1380
- (C = u.value) != null && C.remark ? ($(), N("div", Go, [
1380
+ (C = u.value) != null && C.remark ? (M(), N("div", Go, [
1381
1381
  e("div", Zo, I(t(s)("inventory.transfer.receiveRequest.details.remark")), 1),
1382
1382
  e("div", Jo, I(u.value.remark), 1)
1383
1383
  ])) : oe("", !0)
@@ -1390,7 +1390,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1390
1390
  e("div", Xo, [
1391
1391
  e("div", es, [
1392
1392
  e("div", ts, I(t(s)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
1393
- ($(!0), N(pe, null, je(((O = u.value) == null ? void 0 : O.items) ?? [], (_) => ($(), N("div", {
1393
+ (M(!0), N(pe, null, Qe(((O = u.value) == null ? void 0 : O.items) ?? [], (_) => (M(), N("div", {
1394
1394
  key: _.code,
1395
1395
  class: "flex flex-col"
1396
1396
  }, [
@@ -1401,9 +1401,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1401
1401
  ]),
1402
1402
  e("div", ns, [
1403
1403
  e("div", as, I(_.code), 1),
1404
- _.totalCost && t(r).enableTotalCost ? ($(), N("div", rs, " (" + I(t(bt)(_.totalCost)) + ") ", 1)) : oe("", !0)
1404
+ _.totalCost && t(r).enableTotalCost ? (M(), N("div", rs, " (" + I(t(bt)(_.totalCost)) + ") ", 1)) : oe("", !0)
1405
1405
  ]),
1406
- t(kt)(_) ? ($(), N("div", is, [
1406
+ t(kt)(_) ? (M(), N("div", is, [
1407
1407
  m(U, {
1408
1408
  name: "error",
1409
1409
  color: "system-error-300",
@@ -1433,7 +1433,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1433
1433
  style: { height: "500px" },
1434
1434
  "column-defs": x,
1435
1435
  "search-value": F.value,
1436
- "row-data": ((M = v.template) == null ? void 0 : M.locations) ?? [{ name: "All locations" }]
1436
+ "row-data": (($ = v.template) == null ? void 0 : $.locations) ?? [{ name: "All locations" }]
1437
1437
  }, null, 8, ["search-value", "row-data"])
1438
1438
  ])
1439
1439
  ])
@@ -1461,8 +1461,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1461
1461
  const R = L(
1462
1462
  () => f.value || c.value || !k._currentLocation
1463
1463
  ), U = L(() => o.value), d = Y(""), y = L(() => T.value.xs || T.value.sm), w = L(() => y.value ? 10 : 20);
1464
- function i(M) {
1465
- switch (M) {
1464
+ function i($) {
1465
+ switch ($) {
1466
1466
  case Ee.Add:
1467
1467
  return v();
1468
1468
  case "refresh":
@@ -1473,8 +1473,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1473
1473
  return s();
1474
1474
  }
1475
1475
  }
1476
- function g(M) {
1477
- return M;
1476
+ function g($) {
1477
+ return $;
1478
1478
  }
1479
1479
  const O = L(() => [
1480
1480
  {
@@ -1499,9 +1499,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1499
1499
  isPrimary: !1
1500
1500
  }
1501
1501
  ]);
1502
- return (M, _) => {
1502
+ return ($, _) => {
1503
1503
  const W = V("FmTable");
1504
- return $(), N(pe, null, [
1504
+ return M(), N(pe, null, [
1505
1505
  m(ht, {
1506
1506
  title: t(h)("inventory.transfer.template.title2"),
1507
1507
  actions: O.value,
@@ -1524,7 +1524,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1524
1524
  search: d.value,
1525
1525
  "onUpdate:search": _[0] || (_[0] = (E) => d.value = E)
1526
1526
  }, null, 8, ["search"]),
1527
- ($(), le(W, {
1527
+ (M(), le(W, {
1528
1528
  style: _e(t(b).tableHeight),
1529
1529
  "column-defs": t(F).columnDefs,
1530
1530
  "row-data": U.value,
@@ -1537,44 +1537,44 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1537
1537
  "list-row": P((E) => [
1538
1538
  m(Je, {
1539
1539
  row: E,
1540
- onRowClick: (q) => t(a)(q)
1540
+ onRowClick: (B) => t(a)(B)
1541
1541
  }, {
1542
- default: P((q) => {
1543
- var Z, l, n, C, B, z, K, D, A, G, J, S, H, ie, Fe, Se, Ie, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Pe;
1542
+ default: P((B) => {
1543
+ var Z, l, n, C, q, z, K, D, A, G, J, S, H, ie, Fe, Se, Ie, $e, Me, Oe, ce, De, Ve, Ae, Re, fe, Pe;
1544
1544
  return [
1545
1545
  e("div", cs, [
1546
1546
  e("div", fs, [
1547
1547
  e("div", ys, [
1548
1548
  m(t(ee), {
1549
- render: (n = (l = (Z = q._id) == null ? void 0 : Z.column) == null ? void 0 : l.columnDef) == null ? void 0 : n.cell,
1550
- props: (B = (C = q._id) == null ? void 0 : C.getContext) == null ? void 0 : B.call(C)
1549
+ render: (n = (l = (Z = B._id) == null ? void 0 : Z.column) == null ? void 0 : l.columnDef) == null ? void 0 : n.cell,
1550
+ props: (q = (C = B._id) == null ? void 0 : C.getContext) == null ? void 0 : q.call(C)
1551
1551
  }, null, 8, ["render", "props"])
1552
1552
  ]),
1553
1553
  e("div", vs, [
1554
1554
  m(t(ee), {
1555
- render: (D = (K = (z = q.name) == null ? void 0 : z.column) == null ? void 0 : K.columnDef) == null ? void 0 : D.cell,
1556
- props: (G = (A = q.name) == null ? void 0 : A.getContext) == null ? void 0 : G.call(A)
1555
+ render: (D = (K = (z = B.name) == null ? void 0 : z.column) == null ? void 0 : K.columnDef) == null ? void 0 : D.cell,
1556
+ props: (G = (A = B.name) == null ? void 0 : A.getContext) == null ? void 0 : G.call(A)
1557
1557
  }, null, 8, ["render", "props"])
1558
1558
  ]),
1559
1559
  e("div", bs, [
1560
1560
  m(t(ee), {
1561
- render: (H = (S = (J = q.supplier) == null ? void 0 : J.column) == null ? void 0 : S.columnDef) == null ? void 0 : H.cell,
1562
- props: (Fe = (ie = q.supplier) == null ? void 0 : ie.getContext) == null ? void 0 : Fe.call(ie)
1561
+ render: (H = (S = (J = B.supplier) == null ? void 0 : J.column) == null ? void 0 : S.columnDef) == null ? void 0 : H.cell,
1562
+ props: (Fe = (ie = B.supplier) == null ? void 0 : ie.getContext) == null ? void 0 : Fe.call(ie)
1563
1563
  }, null, 8, ["render", "props"])
1564
1564
  ]),
1565
1565
  e("div", null, I((Se = E.original.locations) != null && Se.length ? `Enabled for ${(Ie = E.original.locations) == null ? void 0 : Ie.length} outlets` : "Enabled for all outlets"), 1),
1566
1566
  e("div", gs, I(E.original.purchaseOrder.items.length ? E.original.purchaseOrder.items.map((tt) => tt.name).join(", ") : "No items"), 1),
1567
1567
  e("div", hs, [
1568
1568
  m(t(ee), {
1569
- render: (Oe = ($e = (Me = q.ref) == null ? void 0 : Me.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Oe.cell,
1570
- props: (De = (ce = q.ref) == null ? void 0 : ce.getContext) == null ? void 0 : De.call(ce)
1569
+ render: (Oe = (Me = ($e = B.ref) == null ? void 0 : $e.column) == null ? void 0 : Me.columnDef) == null ? void 0 : Oe.cell,
1570
+ props: (De = (ce = B.ref) == null ? void 0 : ce.getContext) == null ? void 0 : De.call(ce)
1571
1571
  }, null, 8, ["render", "props"])
1572
1572
  ])
1573
1573
  ]),
1574
1574
  e("div", null, [
1575
1575
  m(t(ee), {
1576
- render: (Re = (Ae = (Ve = q.type) == null ? void 0 : Ve.column) == null ? void 0 : Ae.columnDef) == null ? void 0 : Re.cell,
1577
- props: (Pe = (fe = q.type) == null ? void 0 : fe.getContext) == null ? void 0 : Pe.call(fe)
1576
+ render: (Re = (Ae = (Ve = B.type) == null ? void 0 : Ve.column) == null ? void 0 : Ae.columnDef) == null ? void 0 : Re.cell,
1577
+ props: (Pe = (fe = B.type) == null ? void 0 : fe.getContext) == null ? void 0 : Pe.call(fe)
1578
1578
  }, null, 8, ["render", "props"])
1579
1579
  ])
1580
1580
  ])
@@ -1590,9 +1590,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1590
1590
  }),
1591
1591
  _: 1
1592
1592
  }, 8, ["title", "actions"]),
1593
- ($(), le(nt, { to: "body" }, [
1593
+ (M(), le(nt, { to: "body" }, [
1594
1594
  m(ps, at(rt(t(x))), null, 16),
1595
- m($o, Qe(t(u), {
1595
+ m(Mo, je(t(u), {
1596
1596
  onSubmitted: _[2] || (_[2] = (te) => t(F).fetchTemplates())
1597
1597
  }), null, 16)
1598
1598
  ]))