@feedmepos/mf-inventory-portal 1.2.3 → 1.2.4-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 (44) hide show
  1. package/dist/{App-CSdfULWS.js → App-CdweYGJb.js} +1 -1
  2. package/dist/{ApprovalView-DTwnAFlM.js → ApprovalView-N5aTAawv.js} +8 -8
  3. package/dist/{BindingsDialog-Bv24Ys1r.js → BindingsDialog-CF43nBIL.js} +2 -2
  4. package/dist/{BindingsPicker-D-HNXv6l.js → BindingsPicker-UXffTvIT.js} +1 -1
  5. package/dist/{BindingsTable-B5xE1kAV.js → BindingsTable-bGEdChlq.js} +1 -1
  6. package/dist/{ClosingDraftView-BbLjS-QV.js → ClosingDraftView-CU6ncRGd.js} +93 -93
  7. package/dist/{ClosingTemplateView-Do0CkGUH.js → ClosingTemplateView-B7hlv-ol.js} +17 -17
  8. package/dist/{DeliveryOrderPrintPreview-B2YhyN59.js → DeliveryOrderPrintPreview-BHsASpvc.js} +7 -7
  9. package/dist/{FmAdminBadge-Cj1R2Bi0.js → FmAdminBadge-phxApe08.js} +3 -3
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C1pSdLfz.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CQi8T-o4.js} +11 -11
  11. package/dist/{FmMultiselectDialog-eq994oQ-.js → FmMultiselectDialog-Cw7978N9.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BheQFvJF.js → FmUnitInput.vue_vue_type_script_setup_true_lang-m_DVEWZp.js} +24 -24
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DDbMiztC.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CK2uHzWs.js} +1 -1
  14. package/dist/{IngredientGroupView-DNAdO4WQ.js → IngredientGroupView-BLlM22XE.js} +31 -31
  15. package/dist/{IngredientsView-d-wTEFTk.js → IngredientsView-D-MLnQUs.js} +689 -671
  16. package/dist/{IntegrationView-COWJlO4B.js → IntegrationView-DS8GfDcu.js} +299 -297
  17. package/dist/{InventoryBindingForm-DngxfNzM.js → InventoryBindingForm-Cxl3010v.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CfIUE7Oj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DVytESGu.js} +39 -39
  19. package/dist/{InventoryBindingSummary-ZepcUPQ3.js → InventoryBindingSummary-BPLbgkdU.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-rynZcLum.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6G0tvu8.js} +4 -4
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CDfN66ys.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DIgC7Vso.js} +1 -1
  22. package/dist/{PublishView-DuRaDpQj.js → PublishView-C7M3-gQh.js} +1 -1
  23. package/dist/{PurchaseOrderPrintPreview-CiwFb-cX.js → PurchaseOrderPrintPreview-ZhFYuurj.js} +6 -6
  24. package/dist/{ReceiveRequestView-CMtXbZFg.js → ReceiveRequestView-BCdKPhsr.js} +110 -110
  25. package/dist/{RecipeView-C9MuhpHd.js → RecipeView-DUmXQOxV.js} +19 -19
  26. package/dist/{StockView-CzDFioRG.js → StockView-BcxAyI7w.js} +135 -135
  27. package/dist/{SupplierView-BKHKbhGh.js → SupplierView-q04_80bh.js} +3 -3
  28. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-alkGEMZE.js → TransferDetails.vue_vue_type_script_setup_true_lang-CBFgpKee.js} +6 -6
  29. package/dist/{TransferTemplateView-B-iTVtoR.js → TransferTemplateView-Cfcu-qeJ.js} +57 -57
  30. package/dist/{UnitView-9cX60HUq.js → UnitView-BAPZkTQp.js} +27 -27
  31. package/dist/{WarehouseView-Bt54k8Fr.js → WarehouseView-9AkOoqZV.js} +8 -8
  32. package/dist/{app-D68Nrj_W.js → app-Bcq0U90V.js} +9646 -9600
  33. package/dist/app.js +1 -1
  34. package/dist/{decimal-DwlcTwF4.js → decimal-Dhnp84Mk.js} +1 -1
  35. package/dist/{format-unit-display-B7zglpxP.js → format-unit-display-X0is3zJN.js} +57 -57
  36. package/dist/{index-CaMvI8x0.js → index-Bb9d1Qcc.js} +1 -1
  37. package/dist/{index-B4zWtnox.js → index-CnqZ1tak.js} +1 -1
  38. package/dist/{stock-FiZmySc9.js → stock-DcD5Tbqe.js} +1 -1
  39. package/dist/{supplier-AxlUb2WF.js → supplier-njZB-A08.js} +1 -1
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/{use-ingredient-select-dialog-BH-QS0jx.js → use-ingredient-select-dialog-CFxbHyQu.js} +1 -1
  42. package/dist/{use-inventory-binding-dialog-TU1dCDcj.js → use-inventory-binding-dialog-CtvdrDNH.js} +1 -1
  43. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +157 -12
  44. package/package.json +1 -1
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { bh as a, bi as e, bj as o, bg as i, bk as t, a as m } from "./app-D68Nrj_W.js";
2
+ import { bh as a, bi as e, bj as o, bg as i, bk as t, a as m } from "./app-Bcq0U90V.js";
3
3
  export {
4
4
  a as FmApp,
5
5
  e as InventoryBindingForm,
@@ -1,4 +1,4 @@
1
- import "./app-D68Nrj_W.js";
1
+ import "./app-Bcq0U90V.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -1,11 +1,11 @@
1
- import { a3 as Ae, a as q, T as Ie, ak as M, s as De, al as he, v as ve, u as Z, j as B, w as Oe, aN as ce, x as ge, b as te, t as G, Y as J, aM as Fe, aE as Pe, a0 as Ue, y as Me, z as Be, am as Le, e as me, f as re, R as ue, a2 as Qe, ai as He, D as j, i as I, h as Ve } from "./app-D68Nrj_W.js";
1
+ import { a4 as Ae, a as q, V as Ie, al as M, v as De, am as he, w as ve, u as Z, j as B, x as Oe, aO as ce, y as ge, b as te, t as G, Z as J, aN as Fe, aF as Pe, a1 as Ue, z as Me, B as Be, an as Le, e as me, f as re, R as ue, a3 as Qe, aj as He, D as j, i as I, h as Ve } from "./app-Bcq0U90V.js";
2
2
  import { useCoreStore as ne, useI18n as oe } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as qe, useSnackbar as be, useDialog as je, FmButtonVariant as z, components as X } from "@feedmepos/ui-library";
4
4
  import { defineStore as xe } from "pinia";
5
- import { defineComponent as ae, resolveComponent as Q, openBlock as _, createElementBlock as k, createElementVNode as C, normalizeClass as H, createTextVNode as ze, toDisplayString as D, unref as A, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as L, renderList as K, ref as N, onMounted as Ye, computed as de, watch as Ke, createSlots as We, createBlock as Y, h as W } from "vue";
5
+ import { defineComponent as ae, resolveComponent as Q, openBlock as _, createElementBlock as k, createElementVNode as C, normalizeClass as H, createTextVNode as ze, toDisplayString as D, unref as A, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as L, renderList as Y, ref as N, onMounted as Ke, computed as de, watch as Ye, createSlots as We, createBlock as K, h as W } from "vue";
6
6
  import { useRouter as Ge } from "vue-router";
7
- import { u as se } from "./supplier-AxlUb2WF.js";
8
- const Te = Ae((e, t) => {
7
+ import { u as se } from "./supplier-njZB-A08.js";
8
+ const Se = Ae((e, t) => {
9
9
  function s() {
10
10
  var o;
11
11
  return `business_${((o = ne().currentBusiness.value) == null ? void 0 : o._id) ?? ""}`;
@@ -37,7 +37,7 @@ const Te = Ae((e, t) => {
37
37
  }
38
38
  };
39
39
  });
40
- function Se(e) {
40
+ function Te(e) {
41
41
  const t = q(), s = e.sku, l = t.skuById[s._id];
42
42
  if (l.unit._id !== s.unit._id) return !0;
43
43
  const i = e.measurement;
@@ -207,13 +207,13 @@ function Je() {
207
207
  r.address.country
208
208
  ]),
209
209
  ...s.locations.map((r) => {
210
- var x, $, T, p, n, y;
210
+ var x, $, S, p, n, y;
211
211
  return [
212
212
  `${r.name} (${r.dbName})`,
213
213
  "Transfer",
214
214
  (x = r.doc.profile.address) == null ? void 0 : x.line1,
215
215
  ($ = r.doc.profile.address) == null ? void 0 : $.line2,
216
- (T = r.doc.profile.address) == null ? void 0 : T.city,
216
+ (S = r.doc.profile.address) == null ? void 0 : S.city,
217
217
  (p = r.doc.profile.address) == null ? void 0 : p.postcode,
218
218
  (n = r.doc.profile.address) == null ? void 0 : n.state,
219
219
  (y = r.doc.profile.address) == null ? void 0 : y.country
@@ -223,12 +223,12 @@ function Je() {
223
223
  ["Name", "Type", "Line 1", "Line 2", "City", "Postal", "State", "Country"]
224
224
  ), d = M(
225
225
  s.locations.map((r) => {
226
- var x, $, T, p, n, y;
226
+ var x, $, S, p, n, y;
227
227
  return [
228
228
  `${r.name} (${r.dbName})`,
229
229
  (x = r.doc.profile.address) == null ? void 0 : x.line1,
230
230
  ($ = r.doc.profile.address) == null ? void 0 : $.line2,
231
- (T = r.doc.profile.address) == null ? void 0 : T.city,
231
+ (S = r.doc.profile.address) == null ? void 0 : S.city,
232
232
  (p = r.doc.profile.address) == null ? void 0 : p.postcode,
233
233
  (n = r.doc.profile.address) == null ? void 0 : n.state,
234
234
  (y = r.doc.profile.address) == null ? void 0 : y.country
@@ -372,9 +372,9 @@ function rt(e) {
372
372
  );
373
373
  return b.map((p, n) => {
374
374
  const y = {};
375
- for (const S in r) {
376
- const w = r[S];
377
- Object.assign(y, { [w]: p[S] });
375
+ for (const T in r) {
376
+ const w = r[T];
377
+ Object.assign(y, { [w]: p[T] });
378
378
  }
379
379
  return {
380
380
  index: n,
@@ -444,7 +444,7 @@ function ot(e, t, s) {
444
444
  typeof x == "string" && f.push(`Default amount: ${x}`);
445
445
  const $ = d.min && d.max ? b(`${e.defaultQuantity}`) : null;
446
446
  typeof $ == "string" && f.push(`Default amount: ${$}`);
447
- const T = {
447
+ const S = {
448
448
  sku: o,
449
449
  code: e.overrideCode || o.code,
450
450
  name: e.name || o.name,
@@ -457,7 +457,7 @@ function ot(e, t, s) {
457
457
  return {
458
458
  index: t,
459
459
  errors: f,
460
- templateItem: T
460
+ templateItem: S
461
461
  };
462
462
  }
463
463
  function at(e) {
@@ -484,7 +484,7 @@ function at(e) {
484
484
  if (m.id) {
485
485
  const n = i[m.id];
486
486
  if (!n) {
487
- const S = {
487
+ const T = {
488
488
  _id: m.id,
489
489
  _rev: "",
490
490
  name: m.name || `(unnamed from sheet ${f || "<unnamed sheet>"})`,
@@ -492,8 +492,8 @@ function at(e) {
492
492
  };
493
493
  return c.push(`Template ID ${m.id} is not found.`), o.importUpdateResult.push({
494
494
  type: "update",
495
- original: S,
496
- template: S,
495
+ original: T,
496
+ template: T,
497
497
  excelSheetName: f,
498
498
  errors: c
499
499
  }), o;
@@ -518,7 +518,7 @@ function at(e) {
518
518
  };
519
519
  return o.importUpdateResult.push(y), o;
520
520
  }
521
- const T = {
521
+ const S = {
522
522
  type: "create",
523
523
  template: {
524
524
  name: m.name,
@@ -533,7 +533,7 @@ function at(e) {
533
533
  excelSheetName: f,
534
534
  errors: c
535
535
  };
536
- return o.importCreateResult.push(T), o;
536
+ return o.importCreateResult.push(S), o;
537
537
  },
538
538
  {
539
539
  invalidExcel: !1,
@@ -606,7 +606,7 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
606
606
  P(i, { "z-index": 50 }, {
607
607
  content: ee(() => [
608
608
  C("ol", null, [
609
- (_(!0), k(L, null, K(t.errors, (a, m) => (_(), k("li", { key: m }, D(a), 1))), 128))
609
+ (_(!0), k(L, null, Y(t.errors, (a, m) => (_(), k("li", { key: m }, D(a), 1))), 128))
610
610
  ])
611
611
  ]),
612
612
  default: ee(() => [
@@ -645,11 +645,11 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
645
645
  }, bt = { class: "text-fm-color-system-error-300 fm-typo-en-body-sm-400" }, xt = {
646
646
  key: 0,
647
647
  class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
648
- }, Tt = { class: "fm-typo-en-body-lg-600" }, St = /* @__PURE__ */ ae({
648
+ }, St = { class: "fm-typo-en-body-lg-600" }, Tt = /* @__PURE__ */ ae({
649
649
  __name: "TransferTemplateImport",
650
650
  setup(e) {
651
651
  const t = N(null), s = qe(), l = be(), i = N(!1), o = N(!1), f = se();
652
- Ye(async () => {
652
+ Ke(async () => {
653
653
  o.value = !0;
654
654
  try {
655
655
  await f.readSuppliers().delayed(1e3);
@@ -683,18 +683,18 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
683
683
  c.value.push(u("inventory.ingredient.import.fileError.noSheet"));
684
684
  return;
685
685
  }
686
- const T = at(r);
687
- if (T.invalidExcel) {
686
+ const S = at(r);
687
+ if (S.invalidExcel) {
688
688
  c.value.push(
689
- T.invalidExcelMessage ?? u("inventory.ingredient.import.fileError.invalidExcel")
689
+ S.invalidExcelMessage ?? u("inventory.ingredient.import.fileError.invalidExcel")
690
690
  );
691
691
  return;
692
692
  }
693
- if (a.value = T.importCreateResult, m.value = T.importUpdateResult, !a.value.length && !m.value.length) {
693
+ if (a.value = S.importCreateResult, m.value = S.importUpdateResult, !a.value.length && !m.value.length) {
694
694
  c.value.push(u("inventory.ingredient.import.fileError.noData"));
695
695
  return;
696
696
  }
697
- s.emitData(T);
697
+ s.emitData(S);
698
698
  } catch (r) {
699
699
  l.open({
700
700
  title: u("inventory.ingredient.import.fileError.unableToRead"),
@@ -708,10 +708,10 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
708
708
  }), i.value = !1;
709
709
  }
710
710
  }
711
- return Ke(t, (b) => {
711
+ return Ye(t, (b) => {
712
712
  b && v(b);
713
713
  }), (b, r) => {
714
- const x = Q("FmCircularProgress"), $ = Q("FmIcon"), T = Q("FmButton");
714
+ const x = Q("FmCircularProgress"), $ = Q("FmIcon"), S = Q("FmButton");
715
715
  return _(), k("div", pt, [
716
716
  r[2] || (r[2] = C("div", { class: "fm-typo-en-body-md-400" }, "Import transfer templates from excel sheets.", -1)),
717
717
  o.value ? (_(), k("div", ft, [
@@ -747,11 +747,11 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
747
747
  }
748
748
  ])
749
749
  }, [
750
- i.value ? (_(), Y(x, {
750
+ i.value ? (_(), K(x, {
751
751
  key: 0,
752
752
  size: "md",
753
753
  color: "neutral-gray-200"
754
- })) : (_(), Y($, {
754
+ })) : (_(), K($, {
755
755
  key: 1,
756
756
  name: h.value ? "error" : "attach_file",
757
757
  outline: "",
@@ -769,7 +769,7 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
769
769
  C("div", ht, D(t.value.name), 1)
770
770
  ], 2),
771
771
  i.value ? V("", !0) : (_(), k("div", vt, [
772
- P(T, {
772
+ P(S, {
773
773
  label: A(u)("inventory.ingredient.import.replaceFile"),
774
774
  variant: h.value ? "destructive" : "secondary",
775
775
  "prepend-icon": h.value ? void 0 : "autorenew",
@@ -778,7 +778,7 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
778
778
  ]))
779
779
  ], 2),
780
780
  c.value.length ? (_(), k("div", gt, [
781
- (_(!0), k(L, null, K(c.value, (n, y) => (_(), k("div", {
781
+ (_(!0), k(L, null, Y(c.value, (n, y) => (_(), k("div", {
782
782
  key: y,
783
783
  class: "flex gap-8 items-center"
784
784
  }, [
@@ -796,8 +796,8 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
796
796
  } : void 0
797
797
  ]), 1032, ["class", "label", "button-label"]),
798
798
  d.value ? (_(), k("div", xt, [
799
- C("div", Tt, D(A(u)("inventory.ingredient.import.summary")), 1),
800
- (_(!0), k(L, null, K(a.value, (p, n) => (_(), Y(fe, {
799
+ C("div", St, D(A(u)("inventory.ingredient.import.summary")), 1),
800
+ (_(!0), k(L, null, Y(a.value, (p, n) => (_(), K(fe, {
801
801
  key: n,
802
802
  name: p.template.name,
803
803
  "transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? A(R).TRANSFER : A(R).PURCHASE,
@@ -806,7 +806,7 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
806
806
  errors: p.errors,
807
807
  type: "create"
808
808
  }, null, 8, ["name", "transfer-type", "locations", "items", "errors"]))), 128)),
809
- (_(!0), k(L, null, K(m.value, (p) => (_(), Y(fe, {
809
+ (_(!0), k(L, null, Y(m.value, (p) => (_(), K(fe, {
810
810
  key: p.template._id,
811
811
  name: p.template.name,
812
812
  "transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? A(R).TRANSFER : A(R).PURCHASE,
@@ -833,7 +833,7 @@ function _t(e) {
833
833
  return l && l == i;
834
834
  }
835
835
  const $t = xe("transferTemplateActions", () => {
836
- const e = je(), t = be(), s = Z(), l = Ce(), i = Le(), o = Te(), f = te(), c = Ge(), { t: a } = oe(), m = N({});
836
+ const e = je(), t = be(), s = Z(), l = Ce(), i = Le(), o = Se(), f = te(), c = Ge(), { t: a } = oe(), m = N({});
837
837
  function h() {
838
838
  m.value = {
839
839
  mode: me.CREATE,
@@ -853,7 +853,7 @@ const $t = xe("transferTemplateActions", () => {
853
853
  }
854
854
  };
855
855
  }
856
- function u(n, y, S) {
856
+ function u(n, y, T) {
857
857
  e.open({
858
858
  title: `Confirm deleting template ${n.name}?`,
859
859
  message: "Deleted template can no longer be retrieved",
@@ -890,11 +890,11 @@ const $t = xe("transferTemplateActions", () => {
890
890
  type: "error"
891
891
  }), console.error("error on deleting purchase order template", w);
892
892
  } finally {
893
- y.value = !1, S();
893
+ y.value = !1, T();
894
894
  }
895
895
  });
896
896
  }
897
- function v(n, y, S) {
897
+ function v(n, y, T) {
898
898
  let w;
899
899
  e.open({
900
900
  title: `Confirm duplicating template "${n.name}"?`,
@@ -945,7 +945,7 @@ const $t = xe("transferTemplateActions", () => {
945
945
  type: "error"
946
946
  }), console.error("error on duplicating purchase order template", E);
947
947
  } finally {
948
- y.value = !1, S();
948
+ y.value = !1, T();
949
949
  }
950
950
  });
951
951
  }
@@ -963,7 +963,7 @@ const $t = xe("transferTemplateActions", () => {
963
963
  };
964
964
  }
965
965
  function x() {
966
- const { promise: n, resolve: y } = Promise.withResolvers(), S = (g) => {
966
+ const { promise: n, resolve: y } = Promise.withResolvers(), T = (g) => {
967
967
  y(g);
968
968
  }, w = l.templates.filter((g) => {
969
969
  var O, F;
@@ -982,11 +982,11 @@ const $t = xe("transferTemplateActions", () => {
982
982
  close: !0
983
983
  }
984
984
  }).onPrimary(() => {
985
- c.push({ name: ue.TRANSFER_TEMPLATE }), S(void 0);
986
- }).onSecondary(() => S(void 0)).onClose(() => S(void 0)), n;
985
+ c.push({ name: ue.TRANSFER_TEMPLATE }), T(void 0);
986
+ }).onSecondary(() => T(void 0)).onClose(() => T(void 0)), n;
987
987
  const E = w.map((g) => {
988
988
  var le;
989
- const O = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(Se), F = !_t(g.purchaseOrder.supplier), U = g.purchaseOrder.supplier.internal ? f.getNetSuiteLocation(
989
+ const O = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(Te), F = !_t(g.purchaseOrder.supplier), U = g.purchaseOrder.supplier.internal ? f.getNetSuiteLocation(
990
990
  `${g.purchaseOrder.supplier.internal}_${g.purchaseOrder.supplier._id}`
991
991
  ) : f.getNetSuiteVendor(g.purchaseOrder.supplier._id), ke = F ? `The subsidiary of the request
992
992
  location is ${(le = f.getLocationSubsidiary(U == null ? void 0 : U.netSuiteId)) == null ? void 0 : le.fullName}.` : void 0, Ee = O || F, Ne = O ? "This template is invalid. Update this template." : F ? ke : void 0, Re = `${g.purchaseOrder.supplier.internal ? "Transfer" : "Purchase"} from ${g.purchaseOrder.supplier.name}`;
@@ -1016,14 +1016,14 @@ const $t = xe("transferTemplateActions", () => {
1016
1016
  text: "Templates",
1017
1017
  close: !0
1018
1018
  }
1019
- }).onPrimary((g) => Array.isArray(g) ? S(g[0]) : null).onSecondary(() => S(void 0)).onTertiary(() => {
1020
- c.push({ name: ue.TRANSFER_TEMPLATE }), S(void 0);
1021
- }).onClose(() => S(void 0)), n;
1019
+ }).onPrimary((g) => Array.isArray(g) ? T(g[0]) : null).onSecondary(() => T(void 0)).onTertiary(() => {
1020
+ c.push({ name: ue.TRANSFER_TEMPLATE }), T(void 0);
1021
+ }).onClose(() => T(void 0)), n;
1022
1022
  }
1023
1023
  function $() {
1024
1024
  e.open({
1025
1025
  title: a("inventory.ingredient.import.title"),
1026
- contentComponent: St,
1026
+ contentComponent: Tt,
1027
1027
  overlay: !0,
1028
1028
  closeButton: !0,
1029
1029
  primaryActions: {
@@ -1063,10 +1063,10 @@ const $t = xe("transferTemplateActions", () => {
1063
1063
  });
1064
1064
  return;
1065
1065
  }
1066
- e.close(), T(n);
1066
+ e.close(), S(n);
1067
1067
  }).onTertiary(Je);
1068
1068
  }
1069
- async function T(n) {
1069
+ async function S(n) {
1070
1070
  try {
1071
1071
  const y = [
1072
1072
  ...n.importCreateResult.map(
@@ -1075,10 +1075,10 @@ const $t = xe("transferTemplateActions", () => {
1075
1075
  ...n.importUpdateResult.map(
1076
1076
  (g) => g.template
1077
1077
  )
1078
- ], S = 100;
1078
+ ], T = 100;
1079
1079
  let w = 0;
1080
1080
  const E = () => {
1081
- w += S, t.open({
1081
+ w += T, t.open({
1082
1082
  title: a("inventory.ingredient.import.progress", [
1083
1083
  Math.min(w, y.length),
1084
1084
  y.length
@@ -1129,7 +1129,7 @@ function ye(e) {
1129
1129
  const Ce = xe(
1130
1130
  "transferTemplateTable",
1131
1131
  function() {
1132
- const { t } = oe(), s = $t(), l = N(!1), i = N(new Array()), o = Te(), f = q();
1132
+ const { t } = oe(), s = $t(), l = N(!1), i = N(new Array()), o = Se(), f = q();
1133
1133
  async function c() {
1134
1134
  i.value = [], l.value = !0;
1135
1135
  try {
@@ -1205,7 +1205,7 @@ const Ce = xe(
1205
1205
  textAlign: "right"
1206
1206
  },
1207
1207
  cell(d) {
1208
- const u = Number(d.getValue()) || 0, v = d.row.original.purchaseOrder.items.some(Se);
1208
+ const u = Number(d.getValue()) || 0, v = d.row.original.purchaseOrder.items.some(Te);
1209
1209
  return u === 0 || v ? W("div", { class: "flex justify-end gap-4 items-center" }, [
1210
1210
  W(
1211
1211
  X.FmTooltip,
@@ -1281,9 +1281,9 @@ function Dt(e, t, s) {
1281
1281
  }
1282
1282
  export {
1283
1283
  R as P,
1284
- Te as a,
1284
+ Se as a,
1285
1285
  $t as b,
1286
1286
  Dt as f,
1287
- Se as t,
1287
+ Te as t,
1288
1288
  Ce as u
1289
1289
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as b, computed as u } from "vue";
2
- import { u as d, b2 as p, aU as v, c as m, b as h } from "./app-D68Nrj_W.js";
2
+ import { u as d, b2 as p, aU as v, c as m, b as h } from "./app-Bcq0U90V.js";
3
3
  import { useSnackbar as E } from "@feedmepos/ui-library";
4
4
  function I() {
5
5
  return {
@@ -1,4 +1,4 @@
1
- import { b1 as x, b8 as V, b9 as q, ba as Re, bb as cl, bc as sr, bd as Lt, be as fl, bf as $l } from "./app-D68Nrj_W.js";
1
+ import { b1 as x, b8 as V, b9 as q, ba as Re, bb as cl, bc as sr, bd as Lt, be as fl, bf as $l } from "./app-Bcq0U90V.js";
2
2
  function vl(t, e) {
3
3
  for (var r = 0; r < e.length; r++) {
4
4
  const n = e[r];
@@ -1,4 +1,4 @@
1
- import { a3 as m, u as k, a as l, au as B, T as p } from "./app-D68Nrj_W.js";
1
+ import { a4 as m, u as k, a as l, av as B, V as p } from "./app-Bcq0U90V.js";
2
2
  import { useCoreStore as v } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as $ } from "@feedmepos/ui-library";
4
4
  import { ref as y, computed as b } from "vue";
@@ -1,4 +1,4 @@
1
- import { a3 as m, u, c as b, w, av as v, aw as $ } from "./app-D68Nrj_W.js";
1
+ import { a4 as m, u, c as b, x as w, aw as v, ax as $ } from "./app-Bcq0U90V.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  import { defineStore as A } from "pinia";
4
4
  import { ref as l, computed as d } from "vue";