@feedmepos/mf-inventory-portal 1.2.10-dev.3 → 1.2.10-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/{App-D9otYMgh.js → App-DE0rygXX.js} +1 -1
  2. package/dist/{ApprovalView-Bue46U6e.js → ApprovalView-9H9G2OWv.js} +17 -17
  3. package/dist/{BindingsDialog-Xleskmvg.js → BindingsDialog-BjXHdsGH.js} +2 -2
  4. package/dist/{BindingsPicker-BeNF1NcZ.js → BindingsPicker-BijILjQH.js} +4 -4
  5. package/dist/{BindingsTable-ecWz3SHk.js → BindingsTable-DlSpPTRi.js} +1 -1
  6. package/dist/{ClosingDraftView-DkxOW9Ns.js → ClosingDraftView-BaDkJuyF.js} +123 -123
  7. package/dist/{ClosingTemplateView-BbnpVNYF.js → ClosingTemplateView-CdESDzwA.js} +26 -26
  8. package/dist/{DeliveryOrderPrintPreview-CH-IzSM9.js → DeliveryOrderPrintPreview-Bwrd33F_.js} +9 -9
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DOR_Iu0w.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-QlB_K9Yi.js} +16 -16
  10. package/dist/{FmMultiselectDialog-DBgk0_mV.js → FmMultiselectDialog-CLxZbi3l.js} +4 -4
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DdxSlJRz.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js} +43 -43
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C22gncaQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CtLFZtQZ.js} +7 -7
  13. package/dist/{IngredientGroupView-CrNLRll8.js → IngredientGroupView-DXQ2TKjI.js} +13 -13
  14. package/dist/IngredientsView-FLCGHbsn.js +2467 -0
  15. package/dist/{IntegrationView-DRwnqCf9.js → IntegrationView-BKI0tf68.js} +24 -25
  16. package/dist/{InventoryBindingForm-DU6B0J0B.js → InventoryBindingForm-BGov_1MJ.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CLCDb25h.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-4IM7dQuV.js} +12 -12
  18. package/dist/{InventoryBindingSummary-BH2bWICt.js → InventoryBindingSummary-BQA0Sm_K.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BD2hneTA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bc5diF2E.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-GabOf_-7.js → PremiumBadge.vue_vue_type_script_setup_true_lang-s529wQrr.js} +1 -1
  21. package/dist/{PublishView-B510iDYx.js → PublishView-DhZ5eMg0.js} +19 -19
  22. package/dist/{PurchaseOrderPrintPreview-Cbsl8gcZ.js → PurchaseOrderPrintPreview-cMNE8VTL.js} +7 -7
  23. package/dist/{ReceiveRequestView-rKyNjRbk.js → ReceiveRequestView-Cv-Cgi_o.js} +80 -80
  24. package/dist/{RecipeView-C9dw-1_E.js → RecipeView-ipT51Tbl.js} +39 -39
  25. package/dist/{StockView-scnHVHGB.js → StockView-CKok9_oG.js} +833 -830
  26. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BnAwlQE1.js +172 -0
  27. package/dist/{SupplierView-to6stKYV.js → SupplierView-cGpKVDGP.js} +4 -4
  28. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-laVp-HrL.js → TransferDetails.vue_vue_type_script_setup_true_lang-0ule7sK7.js} +11 -12
  29. package/dist/{TransferTemplateView-VOgIhPGW.js → TransferTemplateView-DrlLa0ed.js} +109 -109
  30. package/dist/{UnitView-sr5QkKex.js → UnitView-YFAtJ0CL.js} +16 -16
  31. package/dist/{WarehouseView-CB3luO1P.js → WarehouseView-CV5pg-4p.js} +16 -16
  32. package/dist/{app-BpyxIAaY.js → app-CUMtg_U0.js} +8610 -8548
  33. package/dist/app.js +1 -1
  34. package/dist/{closing-template-CEJaVQKn.js → closing-template-Cyva214n.js} +1 -1
  35. package/dist/components/FmInventoryTableToolbar.vue.d.ts +7 -0
  36. package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
  37. package/dist/{decimal-Dqff6QMJ.js → decimal-117ZlAfM.js} +1 -1
  38. package/dist/{format-unit-display-DcORb0K7.js → format-unit-display-BXHj4DAV.js} +3 -3
  39. package/dist/{index-CFfIlNHC.js → index-Da1f9OoS.js} +1 -1
  40. package/dist/{index-rTyWq-0n.js → index-PWnt_za9.js} +1 -1
  41. package/dist/{purchase-order-template-BFPrzfeR.js → purchase-order-template-AWsxLxPR.js} +1 -1
  42. package/dist/{stock-CkgmiPOr.js → stock-D7EiEqJe.js} +1 -1
  43. package/dist/stores/integration/netsuite.d.ts +25 -3
  44. package/dist/style.css +1 -1
  45. package/dist/{supplier-Db_-hKgm.js → supplier-DQmyhp0R.js} +1 -1
  46. package/dist/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/{use-ingredient-select-dialog-CEEFJa9x.js → use-ingredient-select-dialog-C37DLY6c.js} +4 -4
  48. package/dist/{use-inventory-binding-dialog-C6Ev4777.js → use-inventory-binding-dialog-CmZereh8.js} +1 -1
  49. package/package.json +2 -2
  50. package/dist/FmAdminBadge-D4rqYlKu.js +0 -44
  51. package/dist/IngredientsView-DLK0Seww.js +0 -2319
  52. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dt1S8tTH.js +0 -158
@@ -1,14 +1,14 @@
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-BpyxIAaY.js";
1
+ import { defineComponent as ae, onMounted as Te, computed as L, ref as W, 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 j, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as qe, useModel as lt, isRef as We, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
2
+ import { W as Ye, aP as he, t as Ne, I as it, aQ as ut, aR as dt, l as se, aS as mt, b as Ge, a as Ke, $ as Le, c as ge, p as ke, x as be, a0 as ye, A as we, M as pt, T as ee, u as Ze, as as ct, a6 as ft, Q as Je, e as ue, y as ve, an as yt, B as vt, af as bt, L as gt, j as Ee, O as ht, P as xt } from "./app-CUMtg_U0.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-DcORb0K7.js";
4
+ import { P as X, f as _t, t as kt, a as ze, u as wt } from "./format-unit-display-BXHj4DAV.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 $t, a as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DdxSlJRz.js";
8
- import { c as Ot, u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DOR_Iu0w.js";
9
- import { u as At } from "./supplier-Db_-hKgm.js";
10
- import { u as Rt } from "./use-ingredient-select-dialog-CEEFJa9x.js";
11
- import { u as Pt } from "./purchase-order-template-BFPrzfeR.js";
7
+ import { _ as St, b as It, F as $t, a as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B6TbIvQI.js";
8
+ import { c as Ot, u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-QlB_K9Yi.js";
9
+ import { u as At } from "./supplier-DQmyhp0R.js";
10
+ import { u as Rt } from "./use-ingredient-select-dialog-C37DLY6c.js";
11
+ import { u as Pt } from "./purchase-order-template-AWsxLxPR.js";
12
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: {
@@ -47,7 +47,7 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
47
47
  helperState: {}
48
48
  },
49
49
  setup(p) {
50
- const h = p, v = We("modelValue"), a = it();
50
+ const h = p, v = Ye("modelValue"), a = it();
51
51
  Te(() => {
52
52
  const { min: d, max: y } = v ?? {};
53
53
  if (!(!d || !y) && d.precision !== y.precision) {
@@ -65,7 +65,7 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
65
65
  +se(i),
66
66
  i.precision
67
67
  );
68
- }, u = Y(s(v.min)), x = Y(s(v.max));
68
+ }, u = W(s(v.min)), x = W(s(v.max));
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) {
@@ -80,7 +80,7 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
80
80
  w.max = null;
81
81
  v.min = w.min, v.max = w.max;
82
82
  });
83
- const F = Symbol.for("fm:form-state"), c = ot(F, null), o = L(() => h.disabled ?? (c == null ? void 0 : c.getDisabled()) ?? !1), f = Y(), b = Y(), k = Y(!1), T = Y(!1), R = L(() => k.value || T.value), U = L(() => [...[
83
+ const F = Symbol.for("fm:form-state"), c = ot(F, null), o = L(() => h.disabled ?? (c == null ? void 0 : c.getDisabled()) ?? !1), f = W(), b = W(), k = W(!1), T = W(!1), R = L(() => k.value || T.value), U = L(() => [...[
84
84
  function() {
85
85
  return typeof a(u.value) == "string" || typeof a(x.value) == "string" ? "Must be a number" : !0;
86
86
  },
@@ -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 Qt(p, h) {
167
+ function jt(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 jt(p) {
172
+ function Qt(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;
@@ -177,7 +177,7 @@ function jt(p) {
177
177
  };
178
178
  }
179
179
  const et = Ft("netsuite-custom-field-helper", () => {
180
- const p = Ke();
180
+ const p = Ge();
181
181
  function h(v, a, r, s, u) {
182
182
  var F;
183
183
  if (!r) {
@@ -200,9 +200,9 @@ const et = Ft("netsuite-custom-field-helper", () => {
200
200
  validateUnitInput: h
201
201
  };
202
202
  });
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
- function Yt(p, h = {}) {
205
- const { t: v } = me(), a = Ge(), r = ge(), s = st({}), u = et();
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 || {});
204
+ function Wt(p, h = {}) {
205
+ const { t: v } = me(), a = Ke(), r = ge(), s = st({}), u = et();
206
206
  Te(() => {
207
207
  for (const c of p.items) {
208
208
  if (!c.totalCost)
@@ -221,9 +221,9 @@ function Yt(p, h = {}) {
221
221
  const x = [
222
222
  {
223
223
  id: "Code",
224
- header: () => Q("div", { class: "flex-col" }, [
225
- Q("div", v("inventory.transfer.form.items.table.Code")),
226
- Q(
224
+ header: () => j("div", { class: "flex-col" }, [
225
+ j("div", v("inventory.transfer.form.items.table.Code")),
226
+ j(
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 Q("div", [
237
- Q(de.FmTextField, {
236
+ return j("div", [
237
+ j(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: () => Q("div", { class: "flex-col" }, [
257
- Q("div", v("inventory.transfer.form.items.table.Name")),
258
- Q(
256
+ header: () => j("div", { class: "flex-col" }, [
257
+ j("div", v("inventory.transfer.form.items.table.Name")),
258
+ j(
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 Q("div", [
268
- Q(de.FmTextField, {
267
+ return j("div", [
268
+ j(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 Q(St, {
295
+ return j(St, {
296
296
  style: {
297
297
  flex: "1 1 0%"
298
298
  },
@@ -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 Q(zt, {
354
+ return j(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
- jt(o.quantityStep),
372
- Qt(
371
+ Qt(o.quantityStep),
372
+ jt(
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 Q(de.FmTextField, {
391
+ return j(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 Q("div", { class: "flex items-center" }, [
417
- r.usePurchaseOrderV2 ? Q(
416
+ return j("div", { class: "flex items-center" }, [
417
+ r.usePurchaseOrderV2 ? j(
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 Q(de.FmButton, {
425
+ return j(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
- Q(de.FmButton, {
461
+ j(de.FmButton, {
462
462
  class: "delete-button",
463
463
  key: o.sku._id,
464
464
  type: "button",
@@ -493,7 +493,7 @@ function Yt(p, h = {}) {
493
493
  })
494
494
  };
495
495
  }
496
- const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-center" }, Gt = { class: "flex-1 flex gap-1 items-center" }, Zt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Jt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = {
496
+ const Yt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-center" }, Kt = { class: "flex-1 flex gap-1 items-center" }, Zt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Jt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = {
497
497
  key: 0,
498
498
  class: "flex gap-8 w-full"
499
499
  }, so = { class: "flex-1 flex flex-col gap-4" }, lo = { class: "flex-1 flex flex-col gap-4" }, no = { class: "flex gap-8 w-full" }, ao = { class: "flex-1 flex flex-col gap-4" }, ro = /* @__PURE__ */ ae({
@@ -508,11 +508,11 @@ 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, $, _, W, te, E, B, Z, l, n, C, q, z, K;
511
+ var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O, $, _, Y, te, E, B, Z, l, n, C, q, z, G;
512
512
  const s = V("FmLabel");
513
- return M(), N("div", Wt, [
514
- e("div", Kt, [
515
- e("div", Gt, [
513
+ return M(), N("div", Yt, [
514
+ e("div", Gt, [
515
+ e("div", Kt, [
516
516
  e("span", Zt, " (" + I(a.row.original.sku.code) + ") ", 1),
517
517
  e("span", Jt, I(a.row.original.sku.name), 1)
518
518
  ]),
@@ -526,21 +526,21 @@ 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(j).Code}`)
529
+ label: t(h)(`inventory.transfer.form.items.table.${t(Q).Code}`)
530
530
  }, null, 8, ["label"]),
531
531
  m(t(ee), {
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)
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)
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(j).Name}`)
539
+ label: t(h)(`inventory.transfer.form.items.table.${t(Q).Name}`)
540
540
  }, null, 8, ["label"]),
541
541
  m(t(ee), {
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)
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)
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
  ])
@@ -548,21 +548,21 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
548
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(j).DefaultAmount}`)
551
+ label: t(h)(`inventory.transfer.form.items.table.${t(Q).DefaultAmount}`)
552
552
  }, null, 8, ["label"]),
553
553
  m(t(ee), {
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(_)
554
+ render: ($ = (O = (g = a.cellByColId[t(Q).DefaultAmount]) == null ? void 0 : g.column) == null ? void 0 : O.columnDef) == null ? void 0 : $.cell,
555
+ props: (Y = (_ = a.cellByColId[t(Q).DefaultAmount]) == null ? void 0 : _.getContext) == null ? void 0 : Y.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(j).Step}`)
561
+ label: t(h)(`inventory.transfer.form.items.table.${t(Q).Step}`)
562
562
  }, null, 8, ["label"]),
563
563
  m(t(ee), {
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)
564
+ render: (B = (E = (te = a.cellByColId[t(Q).Step]) == null ? void 0 : te.column) == null ? void 0 : E.columnDef) == null ? void 0 : B.cell,
565
+ props: (l = (Z = a.cellByColId[t(Q).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(j).Limit}`)
573
+ label: t(h)(`inventory.transfer.form.items.table.${t(Q).Limit}`)
574
574
  }, null, 8, ["label"]),
575
575
  m(t(ee), {
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)
576
+ render: (q = (C = (n = a.cellByColId[t(Q).Limit]) == null ? void 0 : n.column) == null ? void 0 : C.columnDef) == null ? void 0 : q.cell,
577
+ props: (G = (z = a.cellByColId[t(Q).Limit]) == null ? void 0 : z.getContext) == null ? void 0 : G.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
  ])
@@ -599,7 +599,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
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
- (M(!0), N(pe, null, Qe(v.row.getVisibleCells(), (r) => {
602
+ (M(!0), N(pe, null, je(v.row.getVisibleCells(), (r) => {
603
603
  var s, u, x, F, c;
604
604
  return M(), N("td", {
605
605
  key: r.id,
@@ -638,7 +638,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
638
638
  },
639
639
  emits: ["update:disabled"],
640
640
  setup(p, { expose: h, emit: v }) {
641
- const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Ze(), c = Ge(), o = At(), f = ge(), b = Ke(), k = et();
641
+ const a = p, r = v, s = Ye(), { t: u } = me(), x = W({}), F = Ze(), c = Ke(), o = At(), f = ge(), b = Ge(), k = et();
642
642
  Ce(
643
643
  () => s.purchaseOrder.items.length,
644
644
  () => {
@@ -709,7 +709,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
709
709
  set(l) {
710
710
  s.purchaseOrder.remark = l;
711
711
  }
712
- }), _ = Y();
712
+ }), _ = W();
713
713
  h({
714
714
  validateInputs: () => {
715
715
  var l, n;
@@ -724,7 +724,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
724
724
  (n = (l = _.value) == null ? void 0 : l.resetInputs) == null || n.call(l);
725
725
  }
726
726
  });
727
- const W = L(() => ({
727
+ const Y = L(() => ({
728
728
  duplicateItem: (l) => {
729
729
  s.purchaseOrder.items = [
730
730
  ...s.purchaseOrder.items,
@@ -742,11 +742,11 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
742
742
  let n = [];
743
743
  l.id ? n = s.purchaseOrder.items.filter((C) => C.id !== l.id) : n = s.purchaseOrder.items.filter((C) => C.sku._id !== l.sku._id), s.purchaseOrder.items = n;
744
744
  }
745
- })), te = Yt(
745
+ })), te = Wt(
746
746
  {
747
- duplicateItem: W.value.duplicateItem,
748
- updateItem: W.value.updateItem,
749
- deleteItem: W.value.deleteItem,
747
+ duplicateItem: Y.value.duplicateItem,
748
+ updateItem: Y.value.updateItem,
749
+ deleteItem: Y.value.deleteItem,
750
750
  get supplier() {
751
751
  return s.purchaseOrder.supplier;
752
752
  },
@@ -764,7 +764,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
764
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
- z && W.value.updateItem({
767
+ z && Y.value.updateItem({
768
768
  ...z,
769
769
  sku: n,
770
770
  // Sku might be outdated, so we need to update it
@@ -781,13 +781,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
781
781
  value: D
782
782
  })).filter((D) => {
783
783
  var A;
784
- return (A = s.purchaseOrder.items) == null ? void 0 : A.find((G) => G.sku._id === D.value._id);
784
+ return (A = s.purchaseOrder.items) == null ? void 0 : A.find((K) => K.sku._id === D.value._id);
785
785
  }).map((D) => D.value), C = s.purchaseOrder.items ?? [], q = await B(
786
786
  n.map((D) => D._id),
787
787
  (D) => {
788
- const A = c.skuById[D], G = C.find((H) => H.sku._id === A._id);
789
- if (G)
790
- return G;
788
+ const A = c.skuById[D], K = C.find((H) => H.sku._id === A._id);
789
+ if (K)
790
+ return K;
791
791
  const J = { amount: 1, precision: be(A.unit) };
792
792
  let S = {
793
793
  id: f.usePurchaseOrderV2 ? crypto.randomUUID() : void 0,
@@ -816,21 +816,21 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
816
816
  }
817
817
  );
818
818
  if (!q) return;
819
- const z = q.map((D) => D.sku._id), K = [];
819
+ const z = q.map((D) => D.sku._id), G = [];
820
820
  for (const D of z) {
821
- const A = C.filter((G) => G.sku._id === D);
821
+ const A = C.filter((K) => K.sku._id === D);
822
822
  if (A.length > 0)
823
- K.push(...A);
823
+ G.push(...A);
824
824
  else {
825
- const G = q.find((J) => J.sku._id === D);
826
- G && K.push(G);
825
+ const K = q.find((J) => J.sku._id === D);
826
+ K && G.push(K);
827
827
  }
828
828
  }
829
- K.sort((D, A) => D.sku.code.localeCompare(A.sku.code)), s.purchaseOrder.items = K;
829
+ G.sort((D, A) => D.sku.code.localeCompare(A.sku.code)), s.purchaseOrder.items = G;
830
830
  }
831
831
  return (l, n) => {
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, {
832
+ const C = V("FmTextField"), q = V("FmSelect"), z = V("FmTextarea"), G = V("FmButton"), D = V("FmTable"), A = V("FmFormGroup"), K = V("FmForm");
833
+ return M(), le(K, {
834
834
  ref_key: "formRef",
835
835
  ref: _,
836
836
  class: "flex flex-col gap-32",
@@ -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, je(S, {
890
+ m(Vt, Qe(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"])
@@ -925,7 +925,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
925
925
  e("div", yo, [
926
926
  e("div", vo, [
927
927
  n[8] || (n[8] = e("div", { class: "flex-1 fm-typo-en-title-sm-600" }, "Locations", -1)),
928
- m(K, {
928
+ m(G, {
929
929
  disabled: l.disabled,
930
930
  label: "Select location",
931
931
  "prepend-icon": "add",
@@ -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 ? (M(), le(K, {
957
+ t(b).isEnabled ? (M(), le(G, {
958
958
  key: 0,
959
959
  label: "Check NetSuite",
960
960
  "prepend-icon": "troubleshoot",
@@ -962,7 +962,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
962
962
  onClick: y,
963
963
  size: "md"
964
964
  })) : oe("", !0),
965
- m(K, {
965
+ m(G, {
966
966
  disabled: l.disabled,
967
967
  label: t(u)("inventory.transfer.form.items.addItem"),
968
968
  "prepend-icon": "add",
@@ -1002,7 +1002,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1002
1002
  m(po, {
1003
1003
  row: S,
1004
1004
  errorMessage: x.value[S.index],
1005
- "onUpdate:item": n[6] || (n[6] = (H) => W.value.updateItem(H)),
1005
+ "onUpdate:item": n[6] || (n[6] = (H) => Y.value.updateItem(H)),
1006
1006
  disabled: l.disabled
1007
1007
  }, null, 8, ["row", "errorMessage", "disabled"])
1008
1008
  ]),
@@ -1015,7 +1015,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1015
1015
  m(ro, {
1016
1016
  row: S,
1017
1017
  "cell-by-col-id": H,
1018
- "onUpdate:item": n[7] || (n[7] = (ie) => W.value.updateItem(ie)),
1018
+ "onUpdate:item": n[7] || (n[7] = (ie) => Y.value.updateItem(ie)),
1019
1019
  disabled: l.disabled
1020
1020
  }, null, 8, ["row", "cell-by-col-id", "disabled"])
1021
1021
  ]),
@@ -1045,7 +1045,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1045
1045
  },
1046
1046
  emits: ["confirm"],
1047
1047
  setup(p, { emit: h }) {
1048
- const v = p, a = h, r = Y(!1);
1048
+ const v = p, a = h, r = W(!1);
1049
1049
  function s() {
1050
1050
  r.value = !1, a("confirm");
1051
1051
  }
@@ -1134,7 +1134,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1134
1134
  }
1135
1135
  };
1136
1136
  }
1137
- const o = Y(a.modelValue ?? c()), f = Y(((w = a.modelValue) == null ? void 0 : w._id) ?? `${Math.random()}`);
1137
+ const o = W(a.modelValue ?? c()), f = W(((w = a.modelValue) == null ? void 0 : w._id) ?? `${Math.random()}`);
1138
1138
  Ce(
1139
1139
  () => a.show,
1140
1140
  (i) => {
@@ -1152,7 +1152,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1152
1152
  return x("inventory.transfer.template.update.title");
1153
1153
  }
1154
1154
  return "";
1155
- }), T = Y();
1155
+ }), T = W();
1156
1156
  h({
1157
1157
  validateInputs: () => {
1158
1158
  var i, g;
@@ -1231,7 +1231,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1231
1231
  const O = V("FmButton"), $ = V("FmSideSheet");
1232
1232
  return M(), le($, {
1233
1233
  modelValue: t(F),
1234
- "onUpdate:modelValue": g[3] || (g[3] = (_) => Ye(F) ? F.value = _ : null),
1234
+ "onUpdate:modelValue": g[3] || (g[3] = (_) => We(F) ? F.value = _ : null),
1235
1235
  "dismiss-away": "",
1236
1236
  "close-button": "",
1237
1237
  "max-width": 1600
@@ -1289,10 +1289,10 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
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
- }, Qo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, jo = { class: "fm-typo-en-body-lg-600" }, Yo = {
1292
+ }, jo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qo = { class: "fm-typo-en-body-lg-600" }, Wo = {
1293
1293
  key: 2,
1294
1294
  class: "flex flex-col gap-4"
1295
- }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ko = { class: "fm-typo-en-body-lg-600" }, Go = {
1295
+ }, Yo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Go = { class: "fm-typo-en-body-lg-600" }, Ko = {
1296
1296
  key: 3,
1297
1297
  class: "flex flex-col gap-4"
1298
1298
  }, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jo = { class: "fm-typo-en-body-lg-600" }, Xo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, es = { class: "flex flex-col gap-8" }, ts = { class: "fm-typo-en-body-lg-600" }, os = { class: "flex w-full gap-4" }, ss = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, ls = { class: "fm-typo-en-body-lg-600 shrink-0" }, ns = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, as = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, rs = {
@@ -1315,19 +1315,19 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1315
1315
  }), x = [
1316
1316
  { accessorKey: "name", header: () => "Name" },
1317
1317
  { accessorKey: "type", header: () => "Type" }
1318
- ], F = Y(""), c = L(
1318
+ ], F = W(""), c = L(
1319
1319
  () => {
1320
1320
  var b, k, T, R;
1321
1321
  return ((k = (b = u.value) == null ? void 0 : b.supplier) == null ? void 0 : k.internal) === "restaurant" || ((R = (T = u.value) == null ? void 0 : T.supplier) == null ? void 0 : R.internal) === "warehouse" ? X.TRANSFER : X.PURCHASE;
1322
1322
  }
1323
- ), o = Y(!0), f = Xe(v, "show");
1323
+ ), o = W(!0), f = Xe(v, "show");
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
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
- "onUpdate:modelValue": k[2] || (k[2] = (O) => Ye(f) ? f.value = O : null),
1330
+ "onUpdate:modelValue": k[2] || (k[2] = (O) => We(f) ? f.value = O : null),
1331
1331
  "dismiss-away": o.value,
1332
1332
  "close-button": "",
1333
1333
  "max-width": 1200
@@ -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, B, Z, l, n, C;
1345
+ var _, Y, 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),
@@ -1358,7 +1358,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1358
1358
  ]),
1359
1359
  e("div", qo, I(t(yt)(((_ = b.template) == null ? void 0 : _._id) ?? "")), 1)
1360
1360
  ]),
1361
- (W = b.template) != null && W.updatedAt ? (M(), N("div", No, [
1361
+ (Y = b.template) != null && Y.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
  ]),
@@ -1370,14 +1370,14 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1370
1370
  ])
1371
1371
  ])) : oe("", !0),
1372
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)
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)
1375
1375
  ])) : oe("", !0),
1376
- (n = u.value) != null && n.ref ? (M(), N("div", Yo, [
1377
- e("div", Wo, I(t(s)("inventory.transfer.receiveRequest.details.reference")), 1),
1378
- e("div", Ko, I(u.value.ref), 1)
1376
+ (n = u.value) != null && n.ref ? (M(), N("div", Wo, [
1377
+ e("div", Yo, I(t(s)("inventory.transfer.receiveRequest.details.reference")), 1),
1378
+ e("div", Go, I(u.value.ref), 1)
1379
1379
  ])) : oe("", !0),
1380
- (C = u.value) != null && C.remark ? (M(), N("div", Go, [
1380
+ (C = u.value) != null && C.remark ? (M(), N("div", Ko, [
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
- (M(!0), N(pe, null, Qe(((O = u.value) == null ? void 0 : O.items) ?? [], (_) => (M(), N("div", {
1393
+ (M(!0), N(pe, null, je(((O = u.value) == null ? void 0 : O.items) ?? [], (_) => (M(), N("div", {
1394
1394
  key: _.code,
1395
1395
  class: "flex flex-col"
1396
1396
  }, [
@@ -1456,11 +1456,11 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1456
1456
  }), cs = { class: "flex-1 flex flex-col gap-8" }, fs = { class: "flex flex-col" }, ys = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vs = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, bs = { class: "fm-typo-en-body-lg-400" }, gs = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, hs = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Os = /* @__PURE__ */ ae({
1457
1457
  __name: "TransferTemplateView",
1458
1458
  setup(p) {
1459
- const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = wt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k = Ze(), { breakpoints: T } = Ct();
1459
+ const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = wt(), { loading: c, templates: o } = He(F), f = W(!1), b = gt(), k = Ze(), { breakpoints: T } = Ct();
1460
1460
  Te(F.fetchTemplates);
1461
1461
  const R = L(
1462
1462
  () => f.value || c.value || !k._currentLocation
1463
- ), U = L(() => o.value), d = Y(""), y = L(() => T.value.xs || T.value.sm), w = L(() => y.value ? 10 : 20);
1463
+ ), U = L(() => o.value), d = W(""), y = L(() => T.value.xs || T.value.sm), w = L(() => y.value ? 10 : 20);
1464
1464
  function i($) {
1465
1465
  switch ($) {
1466
1466
  case Ee.Add:
@@ -1500,7 +1500,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1500
1500
  }
1501
1501
  ]);
1502
1502
  return ($, _) => {
1503
- const W = V("FmTable");
1503
+ const Y = V("FmTable");
1504
1504
  return M(), N(pe, null, [
1505
1505
  m(ht, {
1506
1506
  title: t(h)("inventory.transfer.template.title2"),
@@ -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
- (M(), le(W, {
1527
+ (M(), le(Y, {
1528
1528
  style: _e(t(b).tableHeight),
1529
1529
  "column-defs": t(F).columnDefs,
1530
1530
  "row-data": U.value,
@@ -1540,7 +1540,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1540
1540
  onRowClick: (B) => t(a)(B)
1541
1541
  }, {
1542
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;
1543
+ var Z, l, n, C, q, z, G, D, A, K, 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, [
@@ -1552,8 +1552,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1552
1552
  ]),
1553
1553
  e("div", vs, [
1554
1554
  m(t(ee), {
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)
1555
+ render: (D = (G = (z = B.name) == null ? void 0 : z.column) == null ? void 0 : G.columnDef) == null ? void 0 : D.cell,
1556
+ props: (K = (A = B.name) == null ? void 0 : A.getContext) == null ? void 0 : K.call(A)
1557
1557
  }, null, 8, ["render", "props"])
1558
1558
  ]),
1559
1559
  e("div", bs, [
@@ -1592,7 +1592,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
1592
1592
  }, 8, ["title", "actions"]),
1593
1593
  (M(), le(nt, { to: "body" }, [
1594
1594
  m(ps, at(rt(t(x))), null, 16),
1595
- m(Mo, je(t(u), {
1595
+ m(Mo, Qe(t(u), {
1596
1596
  onSubmitted: _[2] || (_[2] = (te) => t(F).fetchTemplates())
1597
1597
  }), null, 16)
1598
1598
  ]))