@feedmepos/mf-inventory-portal 0.0.23-dev.24 → 0.0.23-dev.26

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 (49) hide show
  1. package/dist/{App-dQy0_X6Q.js → App-C0hXAs5E.js} +49 -45
  2. package/dist/{ApprovalView-CxwAuXae.js → ApprovalView-Db5Aq3gK.js} +15 -15
  3. package/dist/{BindingsDialog-BX8J03Uc.js → BindingsDialog-dKNKrWKv.js} +9 -9
  4. package/dist/{BindingsPicker-CAW_3sSv.js → BindingsPicker-dN1bNnc0.js} +5 -5
  5. package/dist/{BindingsTable-7UmxSmdW.js → BindingsTable-BA461fcU.js} +8 -8
  6. package/dist/{ClosingDraftView-DukJAMlK.js → ClosingDraftView-aRHVKTA6.js} +68 -69
  7. package/dist/{ClosingTemplateView-Dm7_gMTo.js → ClosingTemplateView-BYnC4Whw.js} +58 -61
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DN3N20Nb.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BdjeCWX1.js} +13 -13
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BrPRiS_u.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CP2euPwM.js} +46 -46
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bln1lReW.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-C4aYGbW2.js} +7 -7
  11. package/dist/{IngredientGroupView-BKIJHeh9.js → IngredientGroupView-vdG6npct.js} +40 -40
  12. package/dist/{IngredientsView-Blnohl3I.js → IngredientsView-DWRAoLHx.js} +207 -210
  13. package/dist/{IntegrationView-Dna4bUA7.js → IntegrationView-Dp_A-Swf.js} +89 -90
  14. package/dist/{InventoryBindingForm-D6HSF8Wn.js → InventoryBindingForm-D_wSUUKv.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CnWvwNjJ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-2Mnqz6HN.js} +27 -27
  16. package/dist/{InventoryBindingSummary-CNNCv8NX.js → InventoryBindingSummary-oyRdM7Pd.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CrMkMTAt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSabNdfV.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Cw3E2NKS.js → PremiumBadge.vue_vue_type_script_setup_true_lang-tu1Al7wM.js} +17 -18
  19. package/dist/{PurchaseOrderPrintPreview-PEN03dZK.js → PurchaseOrderPrintPreview-B4m8t90I.js} +1 -1
  20. package/dist/{ReceiveRequestView-rTUhjMLY.js → ReceiveRequestView-DIJb_dU2.js} +26 -27
  21. package/dist/{RecipeView-V1hx1AUG.js → RecipeView-Ch5KMGLJ.js} +47 -48
  22. package/dist/{StockView-B5nDn8nO.js → StockView-BVuzsMG7.js} +7 -7
  23. package/dist/{SupplierView-DyyRxm6k.js → SupplierView-DEC2LmtN.js} +203 -206
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D6oZOwHL.js → TransferDetails.vue_vue_type_script_setup_true_lang-9UZWws3P.js} +61 -62
  25. package/dist/{TransferTemplateView-OTR9Re51.js → TransferTemplateView-DAMQ_Whn.js} +144 -145
  26. package/dist/{UnitView-DGhm1JXD.js → UnitView-CFwHRgQ-.js} +3 -3
  27. package/dist/{WarehouseView-DMAvFisd.js → WarehouseView-HE71bVOX.js} +52 -52
  28. package/dist/app-CRSuR04o.js +84133 -0
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-DuJEFEYp.js → decimal-B5DqWjel.js} +1 -1
  31. package/dist/{feature-BRqas45f.js → feature-DxNphYNO.js} +1 -1
  32. package/dist/{format-unit-display-G6VtlQe7.js → format-unit-display-D40MKAIU.js} +50 -53
  33. package/dist/{index-D3f51k-I.js → index-BWDsx2Ik.js} +1 -1
  34. package/dist/{stock-DZkj2LE0.js → stock-BAPZYfON.js} +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/{supplier-Cm5Cw3u7.js → supplier-Bp7xaTFX.js} +1 -1
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{use-inventory-binding-dialog-DCt0wUiw.js → use-inventory-binding-dialog-cxY29PPx.js} +1 -1
  39. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
  40. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
  41. package/dist/views/adjustment-template/import/export.d.ts +60 -0
  42. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1 -1
  43. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1 -1
  44. package/package.json +1 -1
  45. package/dist/FmDroppableField-BqZcDO2v.js +0 -154
  46. package/dist/app-DQRbwx-z.js +0 -58903
  47. package/dist/netsuite-D4b5JceM.js +0 -251
  48. package/dist/xlsx-9Gc42bxv.js +0 -24004
  49. package/dist/xlsx.util-CEvUL8mk.js +0 -78
@@ -1,11 +1,8 @@
1
- import { ref as D, h as F, defineComponent as O, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as G, createVNode as T, withCtx as P, Fragment as H, renderList as J, computed as E, watch as Re, createSlots as Pe, createBlock as V, isRef as je, normalizeStyle as Ye, Teleport as Ke, normalizeProps as Ge, guardReactiveProps as Je, mergeProps as We } from "vue";
2
- import { N as qe, u as le, a6 as Qe, D as Se, f as N, e as Xe, d as Ae, n as Ze, a as ae, o as et, c as z, v as j, w as tt, a7 as nt, k as ot, s as Ee, A as st, x as lt, _ as at, a8 as ne, p as rt, q as it, r as ct } from "./app-DQRbwx-z.js";
1
+ import { ref as D, h as F, defineComponent as O, resolveComponent as R, openBlock as k, createElementBlock as I, createElementVNode as _, normalizeClass as Y, createTextVNode as Fe, toDisplayString as C, unref as v, createCommentVNode as K, createVNode as T, withCtx as P, Fragment as H, renderList as W, computed as E, watch as Re, createSlots as Pe, createBlock as V, isRef as je, normalizeStyle as Ye, Teleport as Ge, normalizeProps as Ke, guardReactiveProps as We, mergeProps as Je } from "vue";
2
+ import { W as qe, u as le, ac as Qe, D as Se, h as N, f as Xe, e as Ae, ad as oe, p as Ze, ae as Ee, q as Ue, a as ae, b as et, r as tt, s as Ve, v as nt, w as ot, d as z, E as j, G as st, af as lt, l as at, B as Ne, A as rt, H as it, _ as ct, ag as ne, x as mt, y as ut, z as dt } from "./app-CRSuR04o.js";
3
3
  import { useCoreStore as re, useI18n as B } from "@feedmepos/mf-common";
4
- import { useDialogChild as mt, useSnackbar as Z, useDialog as ie, FmButtonVariant as De, components as L, useProxiedModel as ut, useBreakpoints as dt } from "@feedmepos/ui-library";
5
- import { defineStore as Ue, storeToRefs as Ve } from "pinia";
6
- import { a as oe, b as Ne, d as Be, s as Le, r as pt } from "./xlsx.util-CEvUL8mk.js";
7
- import { F as ft } from "./FmDroppableField-BqZcDO2v.js";
8
- import { u as vt } from "./netsuite-D4b5JceM.js";
4
+ import { useDialogChild as pt, useSnackbar as Z, useDialog as ie, FmButtonVariant as De, components as L, useProxiedModel as ft, useBreakpoints as vt } from "@feedmepos/ui-library";
5
+ import { defineStore as Be, storeToRefs as Le } from "pinia";
9
6
  const ee = qe((r, s) => {
10
7
  function o() {
11
8
  var t;
@@ -45,8 +42,8 @@ const ee = qe((r, s) => {
45
42
  return s.post(t, l);
46
43
  }
47
44
  };
48
- }), te = Ue(
49
- "closingTable",
45
+ }), te = Be(
46
+ "closingTemplateTable",
50
47
  function() {
51
48
  const { t: s } = B(), o = se(), l = D({}), e = D(new Array()), t = D(!1), g = le(), f = ee();
52
49
  async function p() {
@@ -257,11 +254,11 @@ function gt(r) {
257
254
  sheets: {},
258
255
  sheetOccurence: {}
259
256
  }
260
- )) == null ? void 0 : f.sheets, t = `${o == null ? void 0 : o.name} closing templates (${Ze(/* @__PURE__ */ new Date())}).xlsx`, g = Ne(e);
261
- return Be(g, t), t;
257
+ )) == null ? void 0 : f.sheets, t = `${o == null ? void 0 : o.name} closing templates (${Ze(/* @__PURE__ */ new Date())}).xlsx`, g = Ee(e);
258
+ return Ue(g, t), t;
262
259
  }
263
260
  function yt() {
264
- const r = re(), s = ae(), o = vt(), l = ze({
261
+ const r = re(), s = ae(), o = et(), l = ze({
265
262
  sku: {
266
263
  unit: {
267
264
  _id: "",
@@ -335,11 +332,11 @@ function yt() {
335
332
  "Enabled (true/false)",
336
333
  ...i.length ? ["Netsuite Parent"] : []
337
334
  ]
338
- ), y = Ne({
335
+ ), y = Ee({
339
336
  Template: p,
340
337
  Ingredients: m
341
338
  }), h = `${e == null ? void 0 : e.name} transfer templates import.xlsx`;
342
- return Be(y, h), h;
339
+ return Ue(y, h), h;
343
340
  }
344
341
  function ht(r) {
345
342
  if (!r.length || `${r[0]}`.toLocaleLowerCase() === "all")
@@ -372,7 +369,7 @@ function bt(r) {
372
369
  g,
373
370
  f,
374
371
  p
375
- ] = Le(r);
372
+ ] = Ve(r);
376
373
  return {
377
374
  id: `${o[1] ?? ""}`.trim(),
378
375
  name: `${l[1] ?? ""}`.trim(),
@@ -393,7 +390,7 @@ function _t(r) {
393
390
  i,
394
391
  d,
395
392
  ...m
396
- ] = Le(r);
393
+ ] = Ve(r);
397
394
  if (!s || !s.length || s.some((a) => a.length && !a.startsWith("system:")))
398
395
  throw new Error("Missing meta header. Excel file does not come from the template.");
399
396
  const y = s.map((a) => a.split(":")[1]), u = ["code", "name", "unit", "enabled"].filter((a) => !y.includes(a));
@@ -448,7 +445,7 @@ function wt(r) {
448
445
  function kt(r) {
449
446
  const s = r.SheetNames.filter(
450
447
  (t) => !Object.values(ce).map(String).includes(t)
451
- ), l = te().templates, e = et(l, "_id");
448
+ ), l = te().templates, e = tt(l, "_id");
452
449
  try {
453
450
  return s.reduce(
454
451
  (t, g) => {
@@ -550,13 +547,13 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
550
547
  })
551
548
  }, [
552
549
  Fe(C(o.name) + " ", 1),
553
- o.type === "create" ? (k(), I("span", It, "(" + C(v(s)("inventory.closing.template.import.new")) + ")", 1)) : G("", !0)
550
+ o.type === "create" ? (k(), I("span", It, "(" + C(v(s)("inventory.closing.template.import.new")) + ")", 1)) : K("", !0)
554
551
  ], 2),
555
552
  o.errors.length ? (k(), I("div", St, [
556
553
  T(t, { "z-index": 50 }, {
557
554
  content: P(() => [
558
555
  _("ol", null, [
559
- (k(!0), I(H, null, J(o.errors, (i, d) => (k(), I("li", { key: d }, C(i), 1))), 128))
556
+ (k(!0), I(H, null, W(o.errors, (i, d) => (k(), I("li", { key: d }, C(i), 1))), 128))
560
557
  ])
561
558
  ]),
562
559
  default: P(() => [
@@ -568,7 +565,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
568
565
  ]),
569
566
  _: 1
570
567
  })
571
- ])) : G("", !0)
568
+ ])) : K("", !0)
572
569
  ]),
573
570
  _("div", {
574
571
  class: Y([
@@ -598,7 +595,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
598
595
  }, Bt = { class: "fm-typo-en-body-lg-600" }, Lt = /* @__PURE__ */ O({
599
596
  __name: "ClosingTemplateImport",
600
597
  setup(r) {
601
- const s = D(null), o = mt(), l = Z(), e = D(!1), t = D(!1), g = D(new Array()), f = D([]), p = D([]), i = E(
598
+ const s = D(null), o = pt(), l = Z(), e = D(!1), t = D(!1), g = D(new Array()), f = D([]), p = D([]), i = E(
602
599
  () => !!g.value.length || f.value.some((h) => h.errors.length) || p.value.some((h) => h.errors.length)
603
600
  ), d = E(
604
601
  () => !!f.value.length || !!p.value.length
@@ -608,7 +605,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
608
605
  try {
609
606
  e.value = !0;
610
607
  const [u] = await Promise.all([
611
- pt(h),
608
+ ot(h),
612
609
  // fake buffer
613
610
  new Promise((c) => setTimeout(c, 1e3))
614
611
  ]);
@@ -658,7 +655,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
658
655
  ]),
659
656
  _("div", Rt, C(v(m)("inventory.formField.loading")), 1)
660
657
  ])) : (k(), I(H, { key: 1 }, [
661
- T(ft, {
658
+ T(nt, {
662
659
  class: Y({
663
660
  "w-full": !0,
664
661
  "h-[200px]": !s.value
@@ -703,7 +700,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
703
700
  }, [
704
701
  _("div", At, C(s.value.name), 1)
705
702
  ], 2),
706
- e.value ? G("", !0) : (k(), I("div", Et, [
703
+ e.value ? K("", !0) : (k(), I("div", Et, [
707
704
  T(x, {
708
705
  label: v(m)("inventory.ingredient.import.replaceFile"),
709
706
  variant: i.value ? "destructive" : "secondary",
@@ -713,7 +710,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
713
710
  ]))
714
711
  ], 2),
715
712
  g.value.length ? (k(), I("div", Ut, [
716
- (k(!0), I(H, null, J(g.value, ($, b) => (k(), I("div", {
713
+ (k(!0), I(H, null, W(g.value, ($, b) => (k(), I("div", {
717
714
  key: b,
718
715
  class: "flex gap-8 items-center"
719
716
  }, [
@@ -724,7 +721,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
724
721
  }),
725
722
  _("div", Vt, C($), 1)
726
723
  ]))), 128))
727
- ])) : G("", !0)
724
+ ])) : K("", !0)
728
725
  ])
729
726
  ]),
730
727
  key: "0"
@@ -732,7 +729,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
732
729
  ]), 1032, ["class", "label", "button-label"]),
733
730
  d.value ? (k(), I("div", Nt, [
734
731
  _("div", Bt, C(v(m)("inventory.ingredient.import.summary")), 1),
735
- (k(!0), I(H, null, J(f.value, (c, $) => (k(), V(Me, {
732
+ (k(!0), I(H, null, W(f.value, (c, $) => (k(), V(Me, {
736
733
  key: $,
737
734
  name: c.template.name,
738
735
  locations: c.template.locations,
@@ -740,7 +737,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
740
737
  errors: c.errors,
741
738
  type: "create"
742
739
  }, null, 8, ["name", "locations", "items", "errors"]))), 128)),
743
- (k(!0), I(H, null, J(p.value, (c) => (k(), V(Me, {
740
+ (k(!0), I(H, null, W(p.value, (c) => (k(), V(Me, {
744
741
  key: c.template._id,
745
742
  name: c.template.name,
746
743
  locations: c.template.locations,
@@ -748,13 +745,13 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
748
745
  errors: c.errors,
749
746
  type: "update"
750
747
  }, null, 8, ["name", "locations", "items", "errors"]))), 128))
751
- ])) : G("", !0)
748
+ ])) : K("", !0)
752
749
  ], 64))
753
750
  ]);
754
751
  };
755
752
  }
756
- }), se = Ue("closingTemplateActions", () => {
757
- const { t: r } = B(), s = ie(), o = Z(), l = ee(), e = te(), { loading: t } = Ve(e), g = D({});
753
+ }), se = Be("closingTemplateActions", () => {
754
+ const { t: r } = B(), s = ie(), o = Z(), l = ee(), e = te(), { loading: t } = Le(e), g = D({});
758
755
  function f() {
759
756
  g.value = {
760
757
  mode: z.CREATE,
@@ -936,7 +933,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
936
933
  templateDetailsProps: d
937
934
  };
938
935
  });
939
- var K = /* @__PURE__ */ ((r) => (r.Name = "Name", r.Unit = "Unit", r.Delete = "Delete", r))(K || {});
936
+ var G = /* @__PURE__ */ ((r) => (r.Name = "Name", r.Unit = "Unit", r.Delete = "Delete", r))(G || {});
940
937
  function zt(r) {
941
938
  return {
942
939
  columnDefs: E(() => {
@@ -1138,7 +1135,7 @@ function zt(r) {
1138
1135
  })
1139
1136
  };
1140
1137
  }
1141
- const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt = { class: "flex-1 flex flex-col" }, Yt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Kt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Gt = { class: "flex flex-col gap-4" }, Jt = /* @__PURE__ */ O({
1138
+ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt = { class: "flex-1 flex flex-col" }, Yt = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, Gt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Kt = { class: "flex flex-col gap-4" }, Wt = /* @__PURE__ */ O({
1142
1139
  __name: "ClosingTemplateItem",
1143
1140
  props: {
1144
1141
  cellByColId: {},
@@ -1146,7 +1143,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1146
1143
  },
1147
1144
  setup(r) {
1148
1145
  const s = r, o = E(() => s.row), l = E(
1149
- () => o.value.getVisibleCells().filter((e) => e.column.id !== K.Name && e.column.id !== K.Delete)
1146
+ () => o.value.getVisibleCells().filter((e) => e.column.id !== G.Name && e.column.id !== G.Delete)
1150
1147
  );
1151
1148
  return (e, t) => {
1152
1149
  var g, f, p, i, d;
@@ -1154,18 +1151,18 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1154
1151
  _("div", Ot, [
1155
1152
  _("div", jt, [
1156
1153
  _("div", Yt, C(o.value.original.sku.name), 1),
1157
- _("div", Kt, C(o.value.original.sku.code), 1)
1154
+ _("div", Gt, C(o.value.original.sku.code), 1)
1158
1155
  ]),
1159
1156
  _("div", null, [
1160
1157
  T(v(j), {
1161
- render: (p = (f = (g = e.cellByColId[v(K).Delete]) == null ? void 0 : g.column) == null ? void 0 : f.columnDef) == null ? void 0 : p.cell,
1162
- props: (d = (i = e.cellByColId[v(K).Delete]) == null ? void 0 : i.getContext) == null ? void 0 : d.call(i)
1158
+ render: (p = (f = (g = e.cellByColId[v(G).Delete]) == null ? void 0 : g.column) == null ? void 0 : f.columnDef) == null ? void 0 : p.cell,
1159
+ props: (d = (i = e.cellByColId[v(G).Delete]) == null ? void 0 : i.getContext) == null ? void 0 : d.call(i)
1163
1160
  }, null, 8, ["render", "props"])
1164
1161
  ])
1165
1162
  ]),
1166
- _("div", Gt, [
1163
+ _("div", Kt, [
1167
1164
  t[0] || (t[0] = _("div", { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, null, -1)),
1168
- (k(!0), I(H, null, J(l.value, (m) => {
1165
+ (k(!0), I(H, null, W(l.value, (m) => {
1169
1166
  var y, h, u;
1170
1167
  return k(), I("div", {
1171
1168
  key: m.id
@@ -1180,18 +1177,18 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1180
1177
  ]);
1181
1178
  };
1182
1179
  }
1183
- }), Wt = { class: "flex flex-col gap-16" }, qt = { class: "flex flex-col gap-24" }, Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center" }, Zt = { class: "flex-1 fm-typo-en-title-sm-600" }, en = { class: "flex flex-col gap-16" }, tn = { class: "flex items-center" }, nn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, on = /* @__PURE__ */ O({
1180
+ }), Jt = { class: "flex flex-col gap-16" }, qt = { class: "flex flex-col gap-24" }, Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center" }, Zt = { class: "flex-1 fm-typo-en-title-sm-600" }, en = { class: "flex flex-col gap-16" }, tn = { class: "flex items-center" }, nn = { class: "flex-1 gap-8 fm-typo-en-title-sm-600" }, on = /* @__PURE__ */ O({
1184
1181
  __name: "ClosingTemplateForm",
1185
1182
  props: {
1186
1183
  modelValue: {},
1187
1184
  disabled: { type: Boolean }
1188
1185
  },
1189
1186
  setup(r, { expose: s }) {
1190
- const o = r, l = tt(), { t: e } = B(), t = ae(), g = ie(), {
1187
+ const o = r, l = st(), { t: e } = B(), t = ae(), g = ie(), {
1191
1188
  promptSelectLocations: f,
1192
1189
  columnDefs: p,
1193
1190
  rowData: i
1194
- } = nt({
1191
+ } = lt({
1195
1192
  getLocations() {
1196
1193
  return l.locations;
1197
1194
  },
@@ -1239,7 +1236,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1239
1236
  g.open({
1240
1237
  title: e("inventory.closing.form.items.selectItem"),
1241
1238
  closeButton: !0,
1242
- contentComponent: lt,
1239
+ contentComponent: it,
1243
1240
  contentComponentProps: {
1244
1241
  modelValue: a,
1245
1242
  items: n,
@@ -1273,14 +1270,14 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1273
1270
  disabled: n.disabled
1274
1271
  }, {
1275
1272
  default: P(() => [
1276
- _("div", Wt, [
1273
+ _("div", Jt, [
1277
1274
  _("div", qt, [
1278
1275
  T(x, {
1279
1276
  label: v(e)("inventory.closing.form.name"),
1280
1277
  "label-mark": "required",
1281
1278
  modelValue: v(l).name,
1282
1279
  "onUpdate:modelValue": a[0] || (a[0] = (M) => v(l).name = M),
1283
- rules: [v(ot)()]
1280
+ rules: [v(at)()]
1284
1281
  }, null, 8, ["label", "modelValue", "rules"]),
1285
1282
  T(x, {
1286
1283
  label: v(e)("inventory.closing.form.reference"),
@@ -1349,12 +1346,12 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1349
1346
  "page-size": Math.min(10, v(l).items.length)
1350
1347
  }, {
1351
1348
  "list-row": P((M) => [
1352
- (k(), V(Ee, {
1349
+ (k(), V(Ne, {
1353
1350
  row: M,
1354
1351
  key: v(l).items.map((S) => S.sku._id).join(".")
1355
1352
  }, {
1356
1353
  default: P((S) => [
1357
- T(Jt, {
1354
+ T(Wt, {
1358
1355
  row: M,
1359
1356
  "cell-by-col-id": S
1360
1357
  }, null, 8, ["row", "cell-by-col-id"])
@@ -1366,7 +1363,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1366
1363
  }, 8, ["search-value", "column-defs", "row-data", "hide-footer", "page-size"])),
1367
1364
  T(w, {
1368
1365
  "model-value": v(l).items.length,
1369
- rules: [v(st)(1)]
1366
+ rules: [v(rt)(1)]
1370
1367
  }, null, 8, ["model-value", "rules"])
1371
1368
  ])
1372
1369
  ]),
@@ -1384,7 +1381,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1384
1381
  emits: ["update:show", "submitted"],
1385
1382
  setup(r, { expose: s, emit: o }) {
1386
1383
  var $;
1387
- const l = r, e = o, t = ee(), g = Z(), { t: f } = B(), p = ut(l, "show");
1384
+ const l = r, e = o, t = ee(), g = Z(), { t: f } = B(), p = ft(l, "show");
1388
1385
  function i() {
1389
1386
  return {
1390
1387
  _id: "",
@@ -1531,7 +1528,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1531
1528
  function mn(r, s) {
1532
1529
  return k(), I("div");
1533
1530
  }
1534
- const un = /* @__PURE__ */ at(cn, [["render", mn]]), dn = { class: "flex flex-col gap-40" }, pn = { key: 0 }, fn = {
1531
+ const un = /* @__PURE__ */ ct(cn, [["render", mn]]), dn = { class: "flex flex-col gap-40" }, pn = { key: 0 }, fn = {
1535
1532
  key: 1,
1536
1533
  class: "flex gap-8 items-center"
1537
1534
  }, vn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, gn = {
@@ -1632,10 +1629,10 @@ const un = /* @__PURE__ */ at(cn, [["render", mn]]), dn = { class: "flex flex-co
1632
1629
  ]);
1633
1630
  };
1634
1631
  }
1635
- }), $n = { class: "flex-1 flex flex-col gap-8" }, Cn = { class: "flex flex-col" }, In = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Dn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Mn = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Bn = /* @__PURE__ */ O({
1632
+ }), $n = { class: "flex-1 flex flex-col gap-8" }, Cn = { class: "flex flex-col" }, In = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Dn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Mn = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Un = /* @__PURE__ */ O({
1636
1633
  __name: "ClosingTemplateView",
1637
1634
  setup(r) {
1638
- const { t: s } = B(), { createTemplate: o, updateTemplate: l, exportTemplates: e, importTemplates: t } = se(), { templateDialogProps: g, templateDetailsProps: f } = Ve(se()), p = le(), i = ie(), d = te(), m = rt(), { breakpoints: y } = dt();
1635
+ const { t: s } = B(), { createTemplate: o, updateTemplate: l, exportTemplates: e, importTemplates: t } = se(), { templateDialogProps: g, templateDetailsProps: f } = Le(se()), p = le(), i = ie(), d = te(), m = mt(), { breakpoints: y } = vt();
1639
1636
  p.watchLocation(d.fetchTemplates);
1640
1637
  const h = E(() => d.loading), u = D(""), n = E(() => y.value.xs || y.value.sm), a = E(() => n.value ? 10 : 20);
1641
1638
  function x(w) {
@@ -1724,7 +1721,7 @@ const un = /* @__PURE__ */ at(cn, [["render", mn]]), dn = { class: "flex flex-co
1724
1721
  return (w, A) => {
1725
1722
  const M = R("FmTable");
1726
1723
  return k(), I(H, null, [
1727
- T(it, {
1724
+ T(ut, {
1728
1725
  title: v(s)("inventory.closing.template.title"),
1729
1726
  actions: b.value,
1730
1727
  "onClick:action": x
@@ -1739,7 +1736,7 @@ const un = /* @__PURE__ */ at(cn, [["render", mn]]), dn = { class: "flex flex-co
1739
1736
  }
1740
1737
  ])
1741
1738
  }, [
1742
- T(ct, {
1739
+ T(dt, {
1743
1740
  searchable: "",
1744
1741
  search: u.value,
1745
1742
  "onUpdate:search": A[0] || (A[0] = (S) => u.value = S)
@@ -1754,19 +1751,19 @@ const un = /* @__PURE__ */ at(cn, [["render", mn]]), dn = { class: "flex flex-co
1754
1751
  "page-size": a.value
1755
1752
  }, {
1756
1753
  "list-row": P((S) => [
1757
- T(Ee, {
1754
+ T(Ne, {
1758
1755
  row: S,
1759
1756
  onRowClick: (U) => v(l)(U)
1760
1757
  }, {
1761
1758
  default: P((U) => {
1762
- var me, ue, de, W, pe, fe, ve, ge, q, ye, he, be, _e, xe, we, Q, ke, Te, $e, Ce, X, Ie;
1759
+ var me, ue, de, J, pe, fe, ve, ge, q, ye, he, be, _e, xe, we, Q, ke, Te, $e, Ce, X, Ie;
1763
1760
  return [
1764
1761
  _("div", $n, [
1765
1762
  _("div", Cn, [
1766
1763
  _("div", In, [
1767
1764
  T(v(j), {
1768
1765
  render: (de = (ue = (me = U._id) == null ? void 0 : me.column) == null ? void 0 : ue.columnDef) == null ? void 0 : de.cell,
1769
- props: (pe = (W = U._id) == null ? void 0 : W.getContext) == null ? void 0 : pe.call(W)
1766
+ props: (pe = (J = U._id) == null ? void 0 : J.getContext) == null ? void 0 : pe.call(J)
1770
1767
  }, null, 8, ["render", "props"])
1771
1768
  ]),
1772
1769
  _("div", Sn, [
@@ -1807,9 +1804,9 @@ const un = /* @__PURE__ */ at(cn, [["render", mn]]), dn = { class: "flex flex-co
1807
1804
  ]),
1808
1805
  _: 1
1809
1806
  }, 8, ["title", "actions"]),
1810
- (k(), V(Ke, { to: "body" }, [
1811
- T(un, Ge(Je(v(f))), null, 16),
1812
- T(rn, We(v(g), {
1807
+ (k(), V(Ge, { to: "body" }, [
1808
+ T(un, Ke(We(v(f))), null, 16),
1809
+ T(rn, Je(v(g), {
1813
1810
  onSubmitted: A[2] || (A[2] = (S) => v(d).fetchTemplates())
1814
1811
  }), null, 16)
1815
1812
  ]))
@@ -1818,5 +1815,5 @@ const un = /* @__PURE__ */ at(cn, [["render", mn]]), dn = { class: "flex flex-co
1818
1815
  }
1819
1816
  });
1820
1817
  export {
1821
- Bn as default
1818
+ Un as default
1822
1819
  };
@@ -1,7 +1,7 @@
1
- import { h as k, t as B, ai as V, u as H, ao as I, aw as R, ax as M } from "./app-DQRbwx-z.js";
2
- import { u as j } from "./supplier-Cm5Cw3u7.js";
3
- import { P as S } from "./format-unit-display-G6VtlQe7.js";
4
- import { computed as y, defineComponent as $, mergeModels as W, useModel as J, resolveComponent as x, openBlock as T, createElementBlock as A, normalizeStyle as K, createElementVNode as N, createVNode as Q, withCtx as X, createBlock as U, createCommentVNode as D, Fragment as Y, renderList as Z, unref as w } from "vue";
1
+ import { i as k, t as H, aq as V, u as B, aw as I, aG as R, aH as M } from "./app-CRSuR04o.js";
2
+ import { u as j } from "./supplier-Bp7xaTFX.js";
3
+ import { P as S } from "./format-unit-display-D40MKAIU.js";
4
+ import { computed as y, defineComponent as $, mergeModels as W, useModel as J, resolveComponent as U, openBlock as T, createElementBlock as A, normalizeStyle as K, createElementVNode as N, createVNode as Q, withCtx as X, createBlock as w, createCommentVNode as D, Fragment as Y, renderList as Z, unref as x } from "vue";
5
5
  function z(l, r, e) {
6
6
  var s;
7
7
  if (!!r.measurement === !!e && ((s = r.measurement) == null ? void 0 : s.id) === e)
@@ -26,7 +26,7 @@ function oe(l, r, e, n) {
26
26
  (a) => a.skuId === l._id
27
27
  )) == null ? void 0 : u.defaultCost, o = l.defaultCost ? z(l.unit, l.defaultCost, l.trackingMeasurement) : void 0, s = t ?? o, i = s == null ? void 0 : s.costPerUnit, c = i ? s != null && s.measurement ? +k(i) / +k(s == null ? void 0 : s.measurement.conversion) : +k(i) : void 0, p = c ? e ? c * +k(e.conversion) : c : void 0, f = p ? +k(r) * p : void 0;
28
28
  return f ? {
29
- ...B(f ?? 0, 2),
29
+ ...H(f ?? 0, 2),
30
30
  currency: V()
31
31
  } : {
32
32
  amount: 0,
@@ -56,7 +56,7 @@ function C(l) {
56
56
  };
57
57
  }
58
58
  function re(l, r, e = !1, n = !1) {
59
- const t = j(), o = H();
59
+ const t = j(), o = B();
60
60
  o.watchLocation(async () => {
61
61
  var v;
62
62
  await t.readSuppliers();
@@ -231,7 +231,7 @@ const G = { class: "sticky top-0 bg-white mb-8" }, q = { class: "overflow-y-auto
231
231
  () => new P(r.items, ["label", "sublabel"], r.options)
232
232
  ), t = y(() => n.value.search(e.value));
233
233
  return (o, s) => {
234
- const i = x("FmButton"), c = x("FmTextField"), p = x("FmMenuItem");
234
+ const i = U("FmButton"), c = U("FmTextField"), p = U("FmMenuItem");
235
235
  return T(), A("div", {
236
236
  class: "relative",
237
237
  style: K({ maxHeight: `${o.maxHeight}px`, width: o.width })
@@ -243,7 +243,7 @@ const G = { class: "sticky top-0 bg-white mb-8" }, q = { class: "overflow-y-auto
243
243
  placeholder: "Filter options"
244
244
  }, {
245
245
  append: X(() => [
246
- e.value ? (T(), U(i, {
246
+ e.value ? (T(), w(i, {
247
247
  key: 0,
248
248
  variant: "tertiary",
249
249
  "prepend-icon": "close",
@@ -254,18 +254,18 @@ const G = { class: "sticky top-0 bg-white mb-8" }, q = { class: "overflow-y-auto
254
254
  }, 8, ["modelValue"])
255
255
  ]),
256
256
  N("div", q, [
257
- (T(!0), A(Y, null, Z(t.value, (f, L) => (T(), U(p, {
257
+ (T(!0), A(Y, null, Z(t.value, (f, L) => (T(), w(p, {
258
258
  key: L,
259
259
  label: f.label,
260
260
  sublabel: f.sublabel,
261
- "model-value": w(M)(o.modelValue, f.value),
262
- onClick: () => o.handleItemChange(w(M)(o.modelValue, f.value), f),
261
+ "model-value": x(M)(o.modelValue, f.value),
262
+ onClick: () => o.handleItemChange(x(M)(o.modelValue, f.value), f),
263
263
  onVnodeMounted: (b) => {
264
264
  var g;
265
- return w(M)(o.modelValue, f.value) && ((g = b.el) == null || g.scrollIntoView({ behavior: "smooth", block: "center" }), console.log("scrollTo", b.el)), void 0;
265
+ return x(M)(o.modelValue, f.value) && ((g = b.el) == null || g.scrollIntoView({ behavior: "smooth", block: "center" }), console.log("scrollTo", b.el)), void 0;
266
266
  }
267
267
  }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
268
- t.value.length ? D("", !0) : (T(), U(p, {
268
+ t.value.length ? D("", !0) : (T(), w(p, {
269
269
  key: 0,
270
270
  disabled: "",
271
271
  label: "No options available"