@feedmepos/mf-inventory-portal 1.2.21 → 1.2.22-dev.2

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 (58) hide show
  1. package/dist/{App-W6D-o08-.js → App-DtwLZ9Ng.js} +1 -1
  2. package/dist/{ApprovalView-BZbz53sS.js → ApprovalView-DTiPzA1y.js} +9 -9
  3. package/dist/{BindingsDialog-Dfz4UC2D.js → BindingsDialog--1wB_TX2.js} +2 -2
  4. package/dist/{BindingsPicker-CUZ6fUJL.js → BindingsPicker-JjZfjlvz.js} +9 -9
  5. package/dist/{BindingsTable-DLyW3TKI.js → BindingsTable-M2CGWdTD.js} +1 -1
  6. package/dist/{ClosingDraftView-D8rYJLzL.js → ClosingDraftView-B800NjEZ.js} +101 -101
  7. package/dist/ClosingTemplateView-B1TVIzzy.js +2001 -0
  8. package/dist/{DeliveryOrderPrintPreview-DsA24Pnj.js → DeliveryOrderPrintPreview-CUXfCixj.js} +8 -8
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CSgZa48L.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bdw3Q4Dz.js} +33 -33
  10. package/dist/{FmMultiselectDialog-cBcJaj1q.js → FmMultiselectDialog-CyYcvvyg.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B7bQq5iJ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D-FDSjxY.js} +49 -49
  12. package/dist/{ImportView-BiGFDwgB.js → ImportView-BR7JpsG8.js} +27 -27
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BxMg3wSa.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bae5DUA9.js} +8 -8
  14. package/dist/{IngredientGroupView-cOtXBmbd.js → IngredientGroupView-c6XH5Fzg.js} +17 -17
  15. package/dist/{IngredientsView-CZ5DxCkP.js → IngredientsView-D4JiQ6Bp.js} +72 -73
  16. package/dist/{IntegrationView-DhBH_Vdb.js → IntegrationView-BdOTe6FG.js} +3 -3
  17. package/dist/{InventoryBindingForm-CDD_kUI6.js → InventoryBindingForm-kqrZutMr.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-SyVUEz6e.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DZ-Mr8-U.js} +12 -12
  19. package/dist/{InventoryBindingSummary-BqTUX2Vr.js → InventoryBindingSummary-D4p9cOiy.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bobv93nw.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Bj_2aQiY.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-TA0bATB6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CX9H2gLU.js} +7 -7
  22. package/dist/{PublishView-CN3AcICc.js → PublishView-DcQQtuF8.js} +10 -10
  23. package/dist/{PurchaseOrderPrintPreview-DkCHxiUR.js → PurchaseOrderPrintPreview-Ueo4Yftu.js} +13 -13
  24. package/dist/{ReceiveRequestView-Cnk3y0pY.js → ReceiveRequestView-Cikz66hY.js} +115 -115
  25. package/dist/{RecipeView-h5BAcpPp.js → RecipeView-DL1kKy2w.js} +50 -50
  26. package/dist/StockView-DzaCcxc5.js +2384 -0
  27. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BtAp8Jyl.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DP5AFZM2.js} +1 -1
  28. package/dist/{SupplierView-mV32uCUV.js → SupplierView-CJuI_jPc.js} +93 -93
  29. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BoZEbHkN.js +3233 -0
  30. package/dist/{TransferTemplateView-0fDZ7h02.js → TransferTemplateView-DiGdnr0-.js} +140 -140
  31. package/dist/{UnitView-BWeYh3xJ.js → UnitView-CA2isH5r.js} +44 -44
  32. package/dist/{WarehouseView-CgOBUpUw.js → WarehouseView-BMUJN1D1.js} +66 -66
  33. package/dist/api/adjustment-template.d.ts +1 -0
  34. package/dist/api/closing-template.d.ts +1 -0
  35. package/dist/{app-DZsfOzL0.js → app-DdrL4md8.js} +11518 -11220
  36. package/dist/app.d.ts +21 -0
  37. package/dist/app.js +4 -4
  38. package/dist/{decimal-utpTSxBA.js → decimal-DJjE7Vf3.js} +1 -1
  39. package/dist/{format-unit-display-JVq8RwWN.js → format-unit-display-CK-PNM0G.js} +33 -33
  40. package/dist/{import-export.helper-DHZ7P1SR.js → import-export.helper-CJeCekEB.js} +6 -6
  41. package/dist/{index-DNzkuf7T.js → index-Crgf6sCC.js} +1 -1
  42. package/dist/{index-Db0orR3s.js → index-D4F6boO1.js} +1 -1
  43. package/dist/layout/SingleColumnLayout.vue.d.ts +6 -3
  44. package/dist/{purchase-order-template-CkUvuhlD.js → purchase-order-template-BOLP3UzN.js} +1 -1
  45. package/dist/{stock-Cbg0VYIw.js → stock-DqL6z9wL.js} +1 -1
  46. package/dist/{supplier-kyi141cP.js → supplier-CW3GGX9U.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-ingredient-select-dialog-ByVlB3un.js → use-ingredient-select-dialog-CrCo-DHA.js} +1 -1
  49. package/dist/{use-inventory-binding-dialog-DhuHKXCT.js → use-inventory-binding-dialog-RdX9Q4q9.js} +1 -1
  50. package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
  51. package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
  52. package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +8 -4
  53. package/dist/views/stock/components/dialog/StockAdjustmentSideSheet.vue.d.ts +20 -0
  54. package/package.json +1 -1
  55. package/dist/ClosingTemplateView-BFMoAEiM.js +0 -1970
  56. package/dist/StockView-D_ACLa2e.js +0 -2160
  57. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BXtVtPx2.js +0 -3394
  58. package/dist/closing-template-ixqnpXdN.js +0 -53
@@ -1,7 +1,7 @@
1
- import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as q, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as L, createTextVNode as Me, renderSlot as De, createBlock as z, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Pe } from "vue";
2
- import { a7 as Re, aB as Ue, aC as Ee, i as Ne, D as _e, j as Z, f as G, aD as Ie, au as Le, aE as Be, q as I, c as qe, e as U, S as ze, u as je, E as Oe, G as Ge, I as Ke, J as He, K as Q } from "./app-DZsfOzL0.js";
1
+ import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as q, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as I, createTextVNode as Me, renderSlot as De, createBlock as z, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Pe } from "vue";
2
+ import { aa as Re, aD as Ue, aE as Ee, i as Ne, D as _e, j as Z, f as G, aF as Le, aw as Ie, aG as Be, r as L, c as qe, e as U, S as ze, u as je, G as Oe, I as Ge, J as Ke, K as He, L as Q } from "./app-DdrL4md8.js";
3
3
  import { useCoreStore as Ce, useI18n as O } from "@feedmepos/mf-common";
4
- import { useDialogChild as Je, useDialog as xe, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Ye } from "@feedmepos/ui-library";
4
+ import { useDialogChild as Je, useDialog as Fe, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Ye } from "@feedmepos/ui-library";
5
5
  import { c as se, u as re } from "./googlemap-Dm8ERVai.js";
6
6
  import { _ as Ze } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
7
7
  const X = Re((v, h) => {
@@ -35,7 +35,7 @@ function Qe() {
35
35
  };
36
36
  }
37
37
  const ke = D(Qe());
38
- function Fe() {
38
+ function xe() {
39
39
  return {
40
40
  // state
41
41
  get warehouses() {
@@ -187,12 +187,12 @@ const eo = /* @__PURE__ */ j({
187
187
  const p = i.maps.event.addListener(s, y, _);
188
188
  d.push(p);
189
189
  }
190
- const x = D([]);
190
+ const F = D([]);
191
191
  function T(s, y, _) {
192
192
  w(s, y, _);
193
193
  }
194
- function F(s) {
195
- R(null), x.value = s.map((y, _) => {
194
+ function x(s) {
195
+ R(null), F.value = s.map((y, _) => {
196
196
  const p = new i.maps.Marker({
197
197
  position: y,
198
198
  draggable: !0
@@ -203,7 +203,7 @@ const eo = /* @__PURE__ */ j({
203
203
  }), R(l.value);
204
204
  }
205
205
  function R(s) {
206
- x.value.map((y) => we(y).setMap(s));
206
+ F.value.map((y) => we(y).setMap(s));
207
207
  }
208
208
  const c = D([]);
209
209
  function C(s, y, _) {
@@ -259,8 +259,8 @@ const eo = /* @__PURE__ */ j({
259
259
  scrollwheel: !0
260
260
  }), e(l.value, "click", (s) => n("map-click", M(s)));
261
261
  }
262
- return ee(() => a.markers, F, { deep: !0 }), ee(() => a.polygons, V, { deep: !0 }), te(() => {
263
- !r.value || !i || (t(), F(a.markers), V(a.polygons));
262
+ return ee(() => a.markers, x, { deep: !0 }), ee(() => a.polygons, V, { deep: !0 }), te(() => {
263
+ !r.value || !i || (t(), x(a.markers), V(a.polygons));
264
264
  }), $e(() => {
265
265
  d.forEach((s) => s.remove());
266
266
  }), (s, y) => (W(), q("div", {
@@ -284,7 +284,7 @@ const eo = /* @__PURE__ */ j({
284
284
  setup(v) {
285
285
  const h = v, b = Je(), a = re(), { t: n } = O(), i = Se(
286
286
  G(h.coordinate ? h.coordinate : se.jb)
287
- ), r = D(""), l = Ie(async function() {
287
+ ), r = D(""), l = Le(async function() {
288
288
  r.value = await a.getFirstMatchingAddress(
289
289
  i.lat,
290
290
  i.lng
@@ -297,7 +297,7 @@ const eo = /* @__PURE__ */ j({
297
297
  i.lat = w.lat, i.lng = w.lng, b.emitData(G(i)), l();
298
298
  }
299
299
  const M = D();
300
- return (w, x) => (W(), q("div", oo, [
300
+ return (w, F) => (W(), q("div", oo, [
301
301
  g("div", to, [
302
302
  g("div", null, [
303
303
  g("span", ao, E(u(n)("inventory.formField.coordinate.address")) + ": ", 1),
@@ -320,11 +320,11 @@ const eo = /* @__PURE__ */ j({
320
320
  center: i,
321
321
  markers: [i],
322
322
  onMarkerChange: d,
323
- onMapClick: x[0] || (x[0] = (T) => d({ position: T }))
323
+ onMapClick: F[0] || (F[0] = (T) => d({ position: T }))
324
324
  }, null, 8, ["center", "markers"])
325
325
  ]));
326
326
  }
327
- }), co = /* @__PURE__ */ Le(io, [["__scopeId", "data-v-272f5e8b"]]);
327
+ }), co = /* @__PURE__ */ Ie(io, [["__scopeId", "data-v-272f5e8b"]]);
328
328
  function Ae([v, h]) {
329
329
  return {
330
330
  lat: h,
@@ -351,12 +351,12 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
351
351
  },
352
352
  emits: ["update:modelValue"],
353
353
  setup(v, { emit: h }) {
354
- const b = v, a = h, n = re(), i = xe(), r = le(), l = oe(b, "modelValue"), d = D(!1), { t: M } = O();
354
+ const b = v, a = h, n = re(), i = Fe(), r = le(), l = oe(b, "modelValue"), d = D(!1), { t: M } = O();
355
355
  function w(c) {
356
356
  if (c != null && c[0] && (c != null && c[1]))
357
357
  return M("inventory.formField.coordinate.longLat", [c[0].toFixed(3), c[1].toFixed(3)]);
358
358
  }
359
- async function x(c) {
359
+ async function F(c) {
360
360
  var f, A;
361
361
  const C = b.modelValue, S = !C && ((f = b.address) != null && f.formatted) ? await n.getFirstMatchingCoordinate(b.address.formatted) : null, m = C ? Ae(C) : S ? Ae(S) : se.jb;
362
362
  i.open({
@@ -378,7 +378,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
378
378
  }).onPrimary(c);
379
379
  }
380
380
  const T = (c) => a("update:modelValue", c ? po(c) : null);
381
- async function F() {
381
+ async function x() {
382
382
  if (!b.disabled) {
383
383
  if (!n.isGoogleMapReady) {
384
384
  r.open({
@@ -388,7 +388,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
388
388
  });
389
389
  return;
390
390
  }
391
- x(T);
391
+ F(T);
392
392
  }
393
393
  }
394
394
  function R() {
@@ -409,15 +409,15 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
409
409
  focused: d.value,
410
410
  "helper-text": c.helperText,
411
411
  "helper-state": c.helperState,
412
- onClick: C[0] || (C[0] = (A) => F())
412
+ onClick: C[0] || (C[0] = (A) => x())
413
413
  }, Te({
414
- default: L(({ invalid: A }) => [
414
+ default: I(({ invalid: A }) => [
415
415
  c.modelValue && c.modelValue[0] && c.modelValue[1] ? (W(), q("div", fo, [
416
416
  k(S, {
417
417
  invalid: A,
418
418
  class: "fm-typo-en-body-lg-400"
419
419
  }, {
420
- default: L(() => [
420
+ default: I(() => [
421
421
  Me(E(w(c.modelValue)), 1)
422
422
  ]),
423
423
  _: 2
@@ -434,7 +434,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
434
434
  }, [
435
435
  c.$slots.label ? {
436
436
  name: "label",
437
- fn: L(() => [
437
+ fn: I(() => [
438
438
  De(c.$slots, "label")
439
439
  ]),
440
440
  key: "0"
@@ -452,7 +452,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
452
452
  }), ho = { class: "flex flex-col gap-40" }, bo = { class: "flex flex-col gap-16" }, go = { class: "flex flex-col gap-8" }, wo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "grid grid-cols-2 gap-24" }, _o = { class: "flex flex-col gap-8" }, ko = { class: "fm-typo-en-title-sm-600" }, Ao = {
453
453
  key: 0,
454
454
  class: "flex flex-col gap-8"
455
- }, Mo = { class: "fm-typo-en-title-sm-600" }, Co = { class: "flex flex-col gap-8" }, xo = { class: "fm-typo-en-title-sm-600" }, Fo = { class: "flex flex-col gap-16" }, $o = /* @__PURE__ */ j({
455
+ }, Mo = { class: "fm-typo-en-title-sm-600" }, Co = { class: "flex flex-col gap-8" }, Fo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "flex flex-col gap-16" }, $o = /* @__PURE__ */ j({
456
456
  __name: "WarehouseForm",
457
457
  props: {
458
458
  modelValue: {},
@@ -498,7 +498,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
498
498
  const e = a.modelValue ?? {};
499
499
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
500
500
  }
501
- }), x = $({
501
+ }), F = $({
502
502
  get() {
503
503
  var o, e, t;
504
504
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
@@ -518,7 +518,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
518
518
  const e = a.modelValue ?? {};
519
519
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.postcode = o, n("update:modelValue", e);
520
520
  }
521
- }), F = $({
521
+ }), x = $({
522
522
  get() {
523
523
  var o, e, t;
524
524
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.state) ?? "";
@@ -611,12 +611,12 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
611
611
  ref: V,
612
612
  onValidationSuccess: e[13] || (e[13] = (p) => n("validation-success"))
613
613
  }, {
614
- default: L(() => [
614
+ default: I(() => [
615
615
  g("div", ho, [
616
616
  g("div", bo, [
617
617
  k(t, {
618
618
  disabled: o.disabled,
619
- rules: [u(I)()],
619
+ rules: [u(L)()],
620
620
  "label-mark": "required",
621
621
  label: u(r)("inventory.warehouse.companyName"),
622
622
  modelValue: l.value,
@@ -624,7 +624,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
624
624
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
625
625
  k(t, {
626
626
  disabled: o.disabled,
627
- rules: [u(I)()],
627
+ rules: [u(L)()],
628
628
  "label-mark": "required",
629
629
  label: u(r)("inventory.warehouse.registrationNo"),
630
630
  modelValue: d.value,
@@ -636,7 +636,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
636
636
  g("div", Vo, [
637
637
  k(t, {
638
638
  disabled: o.disabled,
639
- rules: [u(I)()],
639
+ rules: [u(L)()],
640
640
  "label-mark": "required",
641
641
  label: u(r)("inventory.warehouse.address.line1"),
642
642
  modelValue: M.value,
@@ -651,15 +651,15 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
651
651
  }, null, 8, ["disabled", "label", "modelValue"]),
652
652
  k(t, {
653
653
  disabled: o.disabled,
654
- rules: [u(I)()],
654
+ rules: [u(L)()],
655
655
  "label-mark": "required",
656
656
  label: u(r)("inventory.warehouse.address.city"),
657
- modelValue: x.value,
658
- "onUpdate:modelValue": e[4] || (e[4] = (p) => x.value = p)
657
+ modelValue: F.value,
658
+ "onUpdate:modelValue": e[4] || (e[4] = (p) => F.value = p)
659
659
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
660
660
  k(t, {
661
661
  disabled: o.disabled,
662
- rules: [u(I)()],
662
+ rules: [u(L)()],
663
663
  "label-mark": "required",
664
664
  label: u(r)("inventory.warehouse.address.postcode"),
665
665
  modelValue: T.value,
@@ -667,15 +667,15 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
667
667
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
668
668
  k(t, {
669
669
  disabled: o.disabled,
670
- rules: [u(I)()],
670
+ rules: [u(L)()],
671
671
  "label-mark": "required",
672
672
  label: u(r)("inventory.warehouse.address.state"),
673
- modelValue: F.value,
674
- "onUpdate:modelValue": e[6] || (e[6] = (p) => F.value = p)
673
+ modelValue: x.value,
674
+ "onUpdate:modelValue": e[6] || (e[6] = (p) => x.value = p)
675
675
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
676
676
  k(t, {
677
677
  disabled: o.disabled,
678
- rules: [u(I)()],
678
+ rules: [u(L)()],
679
679
  "label-mark": "required",
680
680
  label: u(r)("inventory.warehouse.address.country"),
681
681
  modelValue: R.value,
@@ -687,7 +687,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
687
687
  g("div", ko, E(u(r)("inventory.warehouse.coordinate.title")), 1),
688
688
  k(vo, {
689
689
  disabled: o.disabled,
690
- rules: [u(I)()],
690
+ rules: [u(L)()],
691
691
  "label-mark": "required",
692
692
  modelValue: C.value,
693
693
  "onUpdate:modelValue": e[8] || (e[8] = (p) => C.value = p)
@@ -707,11 +707,11 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
707
707
  }, null, 8, ["disabled", "label", "modelValue"])
708
708
  ])) : ae("", !0),
709
709
  g("div", Co, [
710
- g("div", xo, E(u(r)("inventory.warehouse.contact.title")), 1),
711
- g("div", Fo, [
710
+ g("div", Fo, E(u(r)("inventory.warehouse.contact.title")), 1),
711
+ g("div", xo, [
712
712
  k(y, {
713
713
  disabled: o.disabled,
714
- rules: [u(I)()],
714
+ rules: [u(L)()],
715
715
  "label-mark": "required",
716
716
  label: u(r)("inventory.warehouse.contact.phoneNumber"),
717
717
  modelValue: S.value,
@@ -750,7 +750,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
750
750
  },
751
751
  emits: ["update:show", "submitted"],
752
752
  setup(v, { expose: h, emit: b }) {
753
- const a = v, n = b, i = D(!1), r = le(), { t: l } = O(), d = Fe(), M = $(() => {
753
+ const a = v, n = b, i = D(!1), r = le(), { t: l } = O(), d = xe(), M = $(() => {
754
754
  switch (a.mode) {
755
755
  case U.READ:
756
756
  return "";
@@ -770,25 +770,25 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
770
770
  return l("common.add");
771
771
  }
772
772
  return "";
773
- }), x = D();
773
+ }), F = D();
774
774
  h({
775
775
  validateInputs: () => {
776
776
  var m, f;
777
- (f = (m = x.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
777
+ (f = (m = F.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
778
778
  },
779
779
  resetInputsValidation: () => {
780
780
  var m, f;
781
- (f = (m = x.value) == null ? void 0 : m.resetInputsValidation) == null || f.call(m);
781
+ (f = (m = F.value) == null ? void 0 : m.resetInputsValidation) == null || f.call(m);
782
782
  },
783
783
  resetInputs: () => {
784
784
  var m, f;
785
- (f = (m = x.value) == null ? void 0 : m.resetInputs) == null || f.call(m);
785
+ (f = (m = F.value) == null ? void 0 : m.resetInputs) == null || f.call(m);
786
786
  }
787
787
  });
788
- const T = oe(a, "show"), F = oe(a, "warehouse");
788
+ const T = oe(a, "show"), x = oe(a, "warehouse");
789
789
  function R() {
790
790
  var m, f;
791
- (f = (m = x.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
791
+ (f = (m = F.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
792
792
  }
793
793
  function c() {
794
794
  switch (a.mode) {
@@ -805,11 +805,11 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
805
805
  i.value = !0;
806
806
  try {
807
807
  await Promise.all([
808
- d.createWarehouse(F.value),
808
+ d.createWarehouse(x.value),
809
809
  new Promise((A) => setTimeout(A, 1e3))
810
810
  ]), r.open({
811
811
  title: l("inventory.common.success"),
812
- message: l("inventory.warehouse.create.success", { name: (f = (m = F.value) == null ? void 0 : m.profile) == null ? void 0 : f.name }),
812
+ message: l("inventory.warehouse.create.success", { name: (f = (m = x.value) == null ? void 0 : m.profile) == null ? void 0 : f.name }),
813
813
  type: "success"
814
814
  }), n("update:show", !1), n("submitted");
815
815
  } catch (A) {
@@ -824,7 +824,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
824
824
  }
825
825
  async function S() {
826
826
  var m, f;
827
- if (F.value === null) {
827
+ if (x.value === null) {
828
828
  r.open({
829
829
  title: l("inventory.warehouse.update.error.title"),
830
830
  message: l("inventory.warehouse.update.error.emptyWarehouse"),
@@ -835,11 +835,11 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
835
835
  i.value = !0;
836
836
  try {
837
837
  await Promise.all([
838
- d.updateWarehouse(F.value),
838
+ d.updateWarehouse(x.value),
839
839
  new Promise((A) => setTimeout(A, 1e3))
840
840
  ]), r.open({
841
841
  title: l("inventory.common.success"),
842
- message: l("inventory.warehouse.update.success", { name: (f = (m = F.value) == null ? void 0 : m.profile) == null ? void 0 : f.name }),
842
+ message: l("inventory.warehouse.update.success", { name: (f = (m = x.value) == null ? void 0 : m.profile) == null ? void 0 : f.name }),
843
843
  type: "success"
844
844
  }), n("update:show", !1), n("submitted");
845
845
  } catch (A) {
@@ -862,22 +862,22 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
862
862
  "close-button": "",
863
863
  "max-width": 500
864
864
  }, {
865
- default: L(() => {
865
+ default: I(() => {
866
866
  var V;
867
867
  return [
868
868
  (W(), z($o, {
869
869
  class: "w-full",
870
870
  ref_key: "formRef",
871
- ref: x,
872
- modelValue: u(F),
873
- "onUpdate:modelValue": f[0] || (f[0] = (o) => Ve(F) ? F.value = o : null),
871
+ ref: F,
872
+ modelValue: u(x),
873
+ "onUpdate:modelValue": f[0] || (f[0] = (o) => Ve(x) ? x.value = o : null),
874
874
  onValidationSuccess: c,
875
875
  key: ((V = m.warehouse) == null ? void 0 : V._id) ?? "",
876
876
  disabled: i.value
877
877
  }, null, 8, ["modelValue", "disabled"]))
878
878
  ];
879
879
  }),
880
- "side-sheet-footer": L(() => [
880
+ "side-sheet-footer": I(() => [
881
881
  g("div", So, [
882
882
  k(A, {
883
883
  loading: i.value,
@@ -896,7 +896,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
896
896
  }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, zo = /* @__PURE__ */ j({
897
897
  __name: "WarehouseView",
898
898
  setup(v) {
899
- const h = Fe(), b = je(), a = $(() => h.warehouses), n = xe(), i = le(), r = D(!1), { t: l } = O();
899
+ const h = xe(), b = je(), a = $(() => h.warehouses), n = Fe(), i = le(), r = D(!1), { t: l } = O();
900
900
  te(() => {
901
901
  b._currentLocation && S();
902
902
  }), ee([() => b._currentLocation], () => {
@@ -909,7 +909,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
909
909
  function w(V) {
910
910
  d.value.mode = U.UPDATE, d.value.warehouse = V, d.value.show = !0;
911
911
  }
912
- async function x(V) {
912
+ async function F(V) {
913
913
  n.open({
914
914
  title: l("inventory.warehouse.delete.confirm"),
915
915
  message: l("inventory.warehouse.delete.confirmMessage", { name: V.profile.name }),
@@ -945,9 +945,9 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
945
945
  n.close();
946
946
  }
947
947
  }
948
- const { columnDefs: F, formatRowData: R } = Xe(
948
+ const { columnDefs: x, formatRowData: R } = Xe(
949
949
  w,
950
- x
950
+ F
951
951
  );
952
952
  function c(V) {
953
953
  V === "create" && M();
@@ -981,7 +981,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
981
981
  ],
982
982
  "onClick:action": c
983
983
  }, {
984
- default: L(() => [
984
+ default: I(() => [
985
985
  g("div", {
986
986
  class: We([
987
987
  "flex flex-col gap-8 max-h-full",
@@ -998,7 +998,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
998
998
  }, null, 8, ["search"]),
999
999
  (W(), z(e, {
1000
1000
  style: Pe(u(B).tableHeight),
1001
- "column-defs": u(F),
1001
+ "column-defs": u(x),
1002
1002
  "row-data": u(R)(a.value),
1003
1003
  "search-value": C.value,
1004
1004
  loading: !u(b)._currentLocation || r.value,
@@ -1006,12 +1006,12 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
1006
1006
  key: a.value.length,
1007
1007
  "page-size": A.value
1008
1008
  }, {
1009
- "list-row": L((t) => [
1009
+ "list-row": I((t) => [
1010
1010
  k(He, {
1011
1011
  row: t,
1012
1012
  onRowClick: (s) => w(s.original)
1013
1013
  }, {
1014
- default: L((s) => {
1014
+ default: I((s) => {
1015
1015
  var y, _, p, P, K, ne, ue, ie, H, de, ce, pe, me, fe, J, ye, ve, he, be, Y, ge;
1016
1016
  return [
1017
1017
  g("div", Do, [
@@ -24,4 +24,5 @@ export declare const useAdjustmentTemplateApi: () => {
24
24
  importTemplates(templates: Array<(FdoAdjustmentTemplate & RevisionIdMeta) | Omit<FdoAdjustmentTemplate, '_id'>>): Promise<any>;
25
25
  getReasons(): Promise<FdoAdjustmentTemplateReason>;
26
26
  update(reason: FdoAdjustmentTemplateReason): Promise<any>;
27
+ getAuditTrails(templateId: string): Promise<FdoInventorySystemTrail[]>;
27
28
  };
@@ -22,4 +22,5 @@ export declare const useClosingTemplateApi: () => {
22
22
  updateTemplate(template: FdoClosingTemplate & RevisionIdMeta): Promise<FdoClosingTemplate>;
23
23
  deleteTemplate(template: FdoClosingTemplate & RevisionIdMeta): Promise<any>;
24
24
  importTemplates(templates: Array<(FdoClosingTemplate & RevisionIdMeta) | Omit<FdoClosingTemplate, '_id'>>): Promise<any>;
25
+ getAuditTrails(templateId: string): Promise<FdoInventorySystemTrail[]>;
25
26
  };