@feedmepos/mf-inventory-portal 1.2.33 → 1.2.36-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 (76) hide show
  1. package/dist/{App-DZlXTrHA.js → App-CTY_Q9-Q.js} +3 -3
  2. package/dist/{ApprovalView-n9R3_4n5.js → ApprovalView-DiXk36JT.js} +6 -6
  3. package/dist/{BindingsDialog-BpN38f-V.js → BindingsDialog-FdFnPvQn.js} +2 -2
  4. package/dist/{BindingsPicker-ZH-akaEr.js → BindingsPicker-DertVxse.js} +2 -2
  5. package/dist/{BindingsTable-VQxfC1oo.js → BindingsTable-DYPcKNUo.js} +4 -4
  6. package/dist/{ClosingDraftView-CQ4RbDCE.js → ClosingDraftView-DG9pDR5n.js} +8 -8
  7. package/dist/{ClosingHistoryView-B6msx1wN.js → ClosingHistoryView-BPwRoI-C.js} +3 -3
  8. package/dist/{ClosingTemplateView-CDl0lGcE.js → ClosingTemplateView-78Pq2yef.js} +63 -64
  9. package/dist/{DeliveryOrderPrintPreview-CqTgIT2-.js → DeliveryOrderPrintPreview-BZasxeDW.js} +1 -1
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ffgD46YJ.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CvirNvCa.js} +5 -5
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-3i6gta2_.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B_XFWx1-.js} +3 -3
  12. package/dist/{FmMultiselectDialog-Bxgel73A.js → FmMultiselectDialog-B19DpJoy.js} +63 -62
  13. package/dist/{FmMultiselectDialog-DXkviGM-.js → FmMultiselectDialog-qvmob-Xl.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-yODFPpfv.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DE8VqBVB.js} +3 -3
  15. package/dist/{ImportView-DW_diSKU.js → ImportView-Cqpy6p_A.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-9Xhcey42.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BRC3I-5-.js} +1 -1
  17. package/dist/{IngredientGroupView-BUlpqTe1.js → IngredientGroupView-E-7c3kkE.js} +6 -6
  18. package/dist/{IngredientsView-DgoIxgfz.js → IngredientsView-B1qi9Ovw.js} +15 -15
  19. package/dist/{IntegrationView-fa2TuRbS.js → IntegrationView-DHZtSQIh.js} +13 -13
  20. package/dist/{InventoryBindingForm-CKvPS4ju.js → InventoryBindingForm-BymjlJdn.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIK6Moxl.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-RC19AcZL.js} +4 -4
  22. package/dist/{InventoryBindingSummary-B6leDpQp.js → InventoryBindingSummary-WOMmDIec.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ByeH4ZWk.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BDlZe5O3.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-zBaUqEmu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DgqjGOzp.js} +2 -2
  25. package/dist/{PublishView-BwPcsPCK.js → PublishView-CVisOUSv.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-BHqtjXkv.js → PurchaseOrderPrintPreview-rWWfOSaq.js} +41 -37
  27. package/dist/{ReceiveRequestView-Cjwrk8VI.js → ReceiveRequestView-Jk5v5CqU.js} +21 -21
  28. package/dist/{RecipeView-Bkdzy3E6.js → RecipeView-JHHBMkwk.js} +8 -8
  29. package/dist/{StockView-DApHDcVz.js → StockView-2XnQxCXO.js} +16 -16
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DnWQA2Lt.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BcsYzEkh.js} +1 -1
  31. package/dist/{SupplierView-CV82IgOH.js → SupplierView-G6HQlhZi.js} +11 -11
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-VVu0no4P.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DEfBZp25.js} +2 -2
  33. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DCIG4vb3.js +153 -0
  34. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-6n3Y_OLH.js → TransferDetails.vue_vue_type_script_setup_true_lang-CFzf6vxK.js} +855 -850
  35. package/dist/{TransferTemplateView-DjFSGZMN.js → TransferTemplateView-BTXoU-DU.js} +15 -15
  36. package/dist/{UnitView-Dew8bmUZ.js → UnitView-B01l7Pfc.js} +6 -6
  37. package/dist/{WarehouseView-BOoWoUhp.js → WarehouseView-94IcWCcL.js} +5 -5
  38. package/dist/{WastageTemplateView-D9_1S5Tw.js → WastageTemplateView-DxwN9TD_.js} +54 -55
  39. package/dist/{app-2DwaW8bK.js → app-BLzzXeIE.js} +107 -104
  40. package/dist/{app-rgirz_52.js → app-uBuHtW8m.js} +2546 -2443
  41. package/dist/app.js +1 -1
  42. package/dist/{closing-template-Dani6mjY.js → closing-template-DpkVBXl0.js} +1 -1
  43. package/dist/components/FmMultiselectDialogProps.d.ts +7 -0
  44. package/dist/components/TemplatePublishDialog.d.ts +1 -1
  45. package/dist/{date2-DXkMIuu5.js → date2-Cff29_qv.js} +1 -1
  46. package/dist/{dayjs.min-B8waIhIC.js → dayjs.min-BZcZttKK.js} +1 -1
  47. package/dist/{decimal-VyBE91vW.js → decimal-D1uTRWeM.js} +2 -2
  48. package/dist/{defineDeepModel-PkrO2Wxs.js → defineDeepModel-Dda0vf9s.js} +1 -1
  49. package/dist/{duplicate-template-DeYKr2Bg.js → duplicate-template-CnDxTqeA.js} +1 -1
  50. package/dist/{feature-FgmkIF3B.js → feature-Dmp8LTbY.js} +2 -2
  51. package/dist/{format-time-from-id-CSWMUxAM.js → format-time-from-id-DeA1WyqH.js} +1 -1
  52. package/dist/{format-unit-display-CV9rAJTa.js → format-unit-display-Dtx2nwLE.js} +10 -10
  53. package/dist/{import-export.helper-CKUJ7xDX.js → import-export.helper-B5dobyTc.js} +5 -5
  54. package/dist/{index-D3awIcXu.js → index-B_mNrHmO.js} +1 -1
  55. package/dist/{index-I05S36-t.js → index-CSfFxy15.js} +1 -1
  56. package/dist/{index-DGP_gFqT.js → index-DcAMshU8.js} +3 -3
  57. package/dist/{lodash-D6Q1ZDRB.js → lodash-aQznORAq.js} +1 -1
  58. package/dist/{netsuite-DQY2wMLI.js → netsuite-Df9dhVB8.js} +3 -3
  59. package/dist/{purchase-order-template-CaLcx48T.js → purchase-order-template-VX-N0O8c.js} +1 -1
  60. package/dist/{rules-ZpDdGbPh.js → rules-CD5fiTtG.js} +3 -3
  61. package/dist/{stock-4SqXZuFG.js → stock-C7c2xYoH.js} +1 -1
  62. package/dist/{stock-Cz7v7D1F.js → stock-rJukALO2.js} +3 -3
  63. package/dist/stores/location.d.ts +2 -0
  64. package/dist/style.css +1 -1
  65. package/dist/{supplier-C-LaHjap.js → supplier-B2b_cNEF.js} +2 -2
  66. package/dist/tsconfig.app.tsbuildinfo +1 -1
  67. package/dist/{use-ingredient-select-dialog-CNTO2lW4.js → use-ingredient-select-dialog-SPDZuFRM.js} +2 -2
  68. package/dist/{use-inventory-binding-dialog-CXMe88xn.js → use-inventory-binding-dialog-D_JgW2yO.js} +2 -2
  69. package/dist/use-template-enabled-locations-2-Dy29_I7e.js +120 -0
  70. package/dist/views/receive-request/print-preview/PurchaseOrderPrintPreview.vue.d.ts +1 -0
  71. package/dist/{vue-i18n-BecZcJLf.js → vue-i18n-DiQOfdza.js} +376 -376
  72. package/dist/{xlsx-DBmWnfyv.js → xlsx-BbrzRons.js} +1 -1
  73. package/dist/{xlsx.util-D0WHz1Le.js → xlsx.util-BOmP544G.js} +1 -1
  74. package/package.json +2 -2
  75. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CukkNBfv.js +0 -123
  76. package/dist/use-template-enabled-locations-2-B7P6aGiv.js +0 -111
@@ -1,26 +1,26 @@
1
1
  import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Fe, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as U, renderSlot as xe, withDirectives as Pe, 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 Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
2
2
  import { u as it, _ as ut } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
- import { P as X, f as dt, t as mt, u as Ne, a as pt } from "./format-unit-display-CV9rAJTa.js";
4
+ import { P as X, f as dt, t as mt, u as Ne, a as pt } from "./format-unit-display-Dtx2nwLE.js";
5
5
  import { R as Le } from "./row-action.enum-BcW_L_nE.js";
6
- import { a as We, s as Ee, u as Ge, t as ct, k as ye } from "./app-2DwaW8bK.js";
7
- import { _ as ft } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-3i6gta2_.js";
6
+ import { a as We, s as Ee, u as Ge, t as ct, k as ye } from "./app-BLzzXeIE.js";
7
+ import { _ as ft } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B_XFWx1-.js";
8
8
  import { components as ue, useSnackbar as yt, useProxiedModel as Ke, useBreakpoints as vt } from "@feedmepos/ui-library";
9
9
  import { defineStore as bt, storeToRefs as ze } from "pinia";
10
10
  import { F as de } from "./form-mode.enum-BKiNVH6A.js";
11
- import { u as he, t as He, I as gt, b as ht, n as xt, a as se, c as _t, R as ke, g as be, d as ve, A as we, M as kt, e as wt } from "./rules-ZpDdGbPh.js";
12
- import { d as Ze } from "./defineDeepModel-PkrO2Wxs.js";
13
- import { _ as Tt, F as Ft, a as Ct, b as St } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-yODFPpfv.js";
14
- import { u as ge } from "./feature-FgmkIF3B.js";
15
- import { c as It, u as Mt, _ as $t } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ffgD46YJ.js";
16
- import { u as Je } from "./netsuite-DQY2wMLI.js";
17
- import { u as Ot } from "./supplier-C-LaHjap.js";
18
- import { u as Dt } from "./use-ingredient-select-dialog-CNTO2lW4.js";
11
+ import { u as he, t as He, I as gt, b as ht, n as xt, a as se, c as _t, R as ke, g as be, d as ve, A as we, M as kt, e as wt } from "./rules-CD5fiTtG.js";
12
+ import { d as Ze } from "./defineDeepModel-Dda0vf9s.js";
13
+ import { _ as Tt, F as Ft, a as Ct, b as St } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-DE8VqBVB.js";
14
+ import { u as ge } from "./feature-Dmp8LTbY.js";
15
+ import { c as It, u as Mt, _ as $t } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CvirNvCa.js";
16
+ import { u as Je } from "./netsuite-Df9dhVB8.js";
17
+ import { u as Ot } from "./supplier-B2b_cNEF.js";
18
+ import { u as Dt } from "./use-ingredient-select-dialog-SPDZuFRM.js";
19
19
  import { F as ee, _ as Xe } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
20
- import { u as Vt } from "./use-template-enabled-locations-2-B7P6aGiv.js";
21
- import { u as Rt } from "./purchase-order-template-CaLcx48T.js";
22
- import { f as At } from "./format-time-from-id-CSWMUxAM.js";
23
- import { f as Ut } from "./date2-DXkMIuu5.js";
20
+ import { u as Vt } from "./use-template-enabled-locations-2-Dy29_I7e.js";
21
+ import { u as Rt } from "./purchase-order-template-VX-N0O8c.js";
22
+ import { f as At } from "./format-time-from-id-DeA1WyqH.js";
23
+ import { f as Ut } from "./date2-Cff29_qv.js";
24
24
  const Pt = { 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({
25
25
  __name: "FmMinMaxInput",
26
26
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as O, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as K, renderList as G, toDisplayString as h, createCommentVNode as Q, ref as I, watch as oe, resolveComponent as $, createBlock as T, withCtx as A, createVNode as f, unref as i, isRef as le, normalizeClass as me, normalizeStyle as ce, Teleport as pe, normalizeProps as ve, guardReactiveProps as fe } from "vue";
2
- import { a as Y, S as ye, c as ie, s as be, j as se, u as ge } from "./app-2DwaW8bK.js";
2
+ import { a as Y, S as ye, c as ie, s as be, j as se, u as ge } from "./app-BLzzXeIE.js";
3
3
  import { useDialog as ue, useSnackbar as Z, useProxiedModel as ae, useBreakpoints as xe } from "@feedmepos/ui-library";
4
4
  import { i as _e, _ as he } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { F as U } from "./form-mode.enum-BKiNVH6A.js";
@@ -8,11 +8,11 @@ import { D as re, R as q } from "./row-action.enum-BcW_L_nE.js";
8
8
  import { c as we, _ as Ce, F as Se } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
9
9
  import { useI18n as J } from "@feedmepos/mf-common";
10
10
  import { u as Fe, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
11
- import { R as H, A as Ee, a as W, d as $e, h as Ie } from "./rules-ZpDdGbPh.js";
12
- import { F as Ae } from "./decimal-VyBE91vW.js";
13
- import { _ as De } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ByeH4ZWk.js";
14
- import { _ as Re } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-3i6gta2_.js";
15
- import { u as Me } from "./netsuite-DQY2wMLI.js";
11
+ import { R as H, A as Ee, a as W, d as $e, h as Ie } from "./rules-CD5fiTtG.js";
12
+ import { F as Ae } from "./decimal-D1uTRWeM.js";
13
+ import { _ as De } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BDlZe5O3.js";
14
+ import { _ as Re } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B_XFWx1-.js";
15
+ import { u as Me } from "./netsuite-Df9dhVB8.js";
16
16
  const Pe = { class: "flex flex-col gap-8" }, Te = {
17
17
  key: 0,
18
18
  class: "flex flex-col"
@@ -1,18 +1,18 @@
1
1
  import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as B, 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 Re } from "vue";
2
- import { o as Pe, p as Ue, q as Ee, c as G, r as Ne, S as Le, u as Ie } from "./app-2DwaW8bK.js";
2
+ import { o as Pe, p as Ue, q as Ee, c as G, r as Ne, S as Le, u as Ie } from "./app-BLzzXeIE.js";
3
3
  import { useCoreStore as Fe, useI18n as O } from "@feedmepos/mf-common";
4
4
  import { D as _e, R as J } from "./row-action.enum-BcW_L_nE.js";
5
5
  import { c as qe, _ as Be, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
6
  import { u as ze, _ as je } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
7
7
  import { F as U } from "./form-mode.enum-BKiNVH6A.js";
8
8
  import { useDialogChild as Oe, useDialog as Ce, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Ge } from "@feedmepos/ui-library";
9
- import { R as L } from "./rules-ZpDdGbPh.js";
9
+ import { R as L } from "./rules-CD5fiTtG.js";
10
10
  import { c as se, u as re } from "./googlemap-Dm8ERVai.js";
11
- import { d as Ke } from "./index-D3awIcXu.js";
11
+ import { d as Ke } from "./index-B_mNrHmO.js";
12
12
  import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  import { _ as Ye } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
14
- import { u as Ze } from "./feature-FgmkIF3B.js";
15
- import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-3i6gta2_.js";
14
+ import { u as Ze } from "./feature-Dmp8LTbY.js";
15
+ import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B_XFWx1-.js";
16
16
  const X = Pe((v, h) => {
17
17
  const b = Fe();
18
18
  return {
@@ -1,26 +1,26 @@
1
- import { ref as R, h as P, defineComponent as K, resolveComponent as D, openBlock as I, createElementBlock as A, createElementVNode as g, normalizeClass as H, createTextVNode as me, toDisplayString as C, unref as w, createCommentVNode as z, createVNode as S, createBlock as U, Fragment as Y, renderList as Q, computed as B, watch as ve, createSlots as Le, withCtx as V, isRef as Ue, normalizeStyle as Qe, Teleport as Xe, normalizeProps as Ze, guardReactiveProps as et, mergeProps as Ve } from "vue";
1
+ import { ref as R, h as P, defineComponent as K, resolveComponent as D, openBlock as I, createElementBlock as A, createElementVNode as g, normalizeClass as H, createTextVNode as me, toDisplayString as C, unref as w, createCommentVNode as z, createVNode as S, createBlock as L, Fragment as Y, renderList as Q, computed as B, watch as ve, createSlots as Ue, withCtx as V, isRef as Le, normalizeStyle as Qe, Teleport as Xe, normalizeProps as Ze, guardReactiveProps as et, mergeProps as Ve } from "vue";
2
2
  import { u as tt, _ as nt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
3
3
  import { useI18n as G, useCoreStore as Be } from "@feedmepos/mf-common";
4
- import { D as re, R as L } from "./row-action.enum-BcW_L_nE.js";
5
- import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-3i6gta2_.js";
4
+ import { D as re, R as U } from "./row-action.enum-BcW_L_nE.js";
5
+ import { _ as ot } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B_XFWx1-.js";
6
6
  import { useDialog as X, useDialogChild as st, useSnackbar as Z, FmButtonVariant as ie, components as W, useProxiedModel as Ne, useBreakpoints as at } from "@feedmepos/ui-library";
7
7
  import { defineStore as ze, storeToRefs as Oe } from "pinia";
8
8
  import { c as lt, _ as rt, F as ce } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
9
- import { u as ye, c as We, a as ee, C as j, n as it, A as de } from "./app-2DwaW8bK.js";
9
+ import { u as ye, c as We, a as ee, C as j, n as it, A as de } from "./app-BLzzXeIE.js";
10
10
  import { F as J } from "./form-mode.enum-BKiNVH6A.js";
11
- import { f as ct } from "./format-time-from-id-CSWMUxAM.js";
12
- import { u as te } from "./closing-template-Dani6mjY.js";
13
- import { _ as ut } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CukkNBfv.js";
14
- import { t as pe, a as He, d as Ye, s as Ke, r as mt } from "./xlsx.util-D0WHz1Le.js";
15
- import { f as dt, a as ue } from "./date2-DXkMIuu5.js";
16
- import { u as pt } from "./netsuite-DQY2wMLI.js";
11
+ import { f as ct } from "./format-time-from-id-DeA1WyqH.js";
12
+ import { u as te } from "./closing-template-DpkVBXl0.js";
13
+ import { _ as ut } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DCIG4vb3.js";
14
+ import { t as pe, a as He, d as Ye, s as Ke, r as mt } from "./xlsx.util-BOmP544G.js";
15
+ import { f as dt, a as ue } from "./date2-Cff29_qv.js";
16
+ import { u as pt } from "./netsuite-Df9dhVB8.js";
17
17
  import { F as ft } from "./FmDroppableField-J0xUsOTV.js";
18
- import { u as vt } from "./duplicate-template-DeYKr2Bg.js";
19
- import { A as yt, R as Ge } from "./rules-ZpDdGbPh.js";
20
- import { d as ht } from "./defineDeepModel-PkrO2Wxs.js";
21
- import { u as gt } from "./use-template-enabled-locations-2-B7P6aGiv.js";
22
- import { a as bt } from "./FmMultiselectDialog-Bxgel73A.js";
23
- import { _ as _t } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-VVu0no4P.js";
18
+ import { u as vt } from "./duplicate-template-CnDxTqeA.js";
19
+ import { A as yt, R as Ge } from "./rules-CD5fiTtG.js";
20
+ import { d as ht } from "./defineDeepModel-Dda0vf9s.js";
21
+ import { u as gt } from "./use-template-enabled-locations-2-Dy29_I7e.js";
22
+ import { a as bt } from "./FmMultiselectDialog-B19DpJoy.js";
23
+ import { _ as _t } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-DEfBZp25.js";
24
24
  import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
25
25
  const ne = ze(
26
26
  "wastageTable",
@@ -45,13 +45,12 @@ const ne = ze(
45
45
  title: n.name,
46
46
  doc: n,
47
47
  controller: {
48
- publishAll: async () => {
49
- var y;
50
- const i = await r.publishSingleDoc(
48
+ publishAll: async (i) => {
49
+ const y = i || n.locations, _ = await r.publishSingleDoc(
51
50
  n._id,
52
- (y = n.locations) == null ? void 0 : y.map((_) => _.dbName)
51
+ y == null ? void 0 : y.map(($) => $.dbName)
53
52
  );
54
- return o.value = i.publishedRevByLocation || {}, o.value;
53
+ return o.value = _.publishedRevByLocation || {}, o.value;
55
54
  },
56
55
  publishAtLocation: async (i) => {
57
56
  const y = await r.publishSingleDoc(n._id, [
@@ -111,15 +110,15 @@ const ne = ze(
111
110
  }
112
111
  function k(n, e) {
113
112
  switch (e = We(e), n) {
114
- case L.Details:
113
+ case U.Details:
115
114
  return h.viewTemplate(e);
116
- case L.Edit:
115
+ case U.Edit:
117
116
  return h.updateTemplate(e);
118
- case L.Delete:
117
+ case U.Delete:
119
118
  return h.deleteTemplate(e, l, d);
120
- case L.Publish:
119
+ case U.Publish:
121
120
  return T(e);
122
- case L.Duplicate:
121
+ case U.Duplicate:
123
122
  return h.duplicateTemplate(e, l, d);
124
123
  }
125
124
  }
@@ -194,10 +193,10 @@ const ne = ze(
194
193
  id: "action",
195
194
  cell(n) {
196
195
  const e = n.row.original, i = [
197
- re[L.Edit],
198
- re[L.Duplicate],
199
- re[L.Delete],
200
- re[L.Publish]
196
+ re[U.Edit],
197
+ re[U.Duplicate],
198
+ re[U.Delete],
199
+ re[U.Publish]
201
200
  ];
202
201
  return lt(i, (y) => k(y, e));
203
202
  },
@@ -668,7 +667,7 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
668
667
  }, C((r = c.locations) != null && r.length ? w(m)("inventory.closing.template.import.nLocations", { count: (o = c.locations) == null ? void 0 : o.length }) : w(m)("inventory.closing.template.import.allLocations")) + ", " + C(w(m)("inventory.closing.template.import.nItems", { count: (u = c.items) == null ? void 0 : u.length })), 3)
669
668
  ]),
670
669
  g("div", Vt, [
671
- c.errors.length ? (I(), U(t, {
670
+ c.errors.length ? (I(), L(t, {
672
671
  key: 0,
673
672
  name: h.value ? "keyboard_arrow_up" : "keyboard_arrow_down",
674
673
  size: "md"
@@ -692,7 +691,7 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
692
691
  ]);
693
692
  };
694
693
  }
695
- }), Lt = { class: "flex flex-col gap-24" }, Ut = { class: "fm-typo-en-body-md-400" }, Bt = {
694
+ }), Ut = { class: "flex flex-col gap-24" }, Lt = { class: "fm-typo-en-body-md-400" }, Bt = {
696
695
  key: 0,
697
696
  class: "flex items-center gap-8"
698
697
  }, Nt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zt = { class: "flex flex-col gap-8" }, Ot = { class: "line-clamp-2 text-ellipsis break-all" }, Wt = {
@@ -756,8 +755,8 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
756
755
  T && v(T);
757
756
  }), (T, d) => {
758
757
  const x = D("FmCircularProgress"), k = D("FmIcon"), p = D("FmButton");
759
- return I(), A("div", Lt, [
760
- g("div", Ut, C(w(b)("inventory.adjustment.template.import.message")), 1),
758
+ return I(), A("div", Ut, [
759
+ g("div", Lt, C(w(b)("inventory.adjustment.template.import.message")), 1),
761
760
  c.value ? (I(), A("div", Bt, [
762
761
  g("div", null, [
763
762
  S(x, {
@@ -776,7 +775,7 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
776
775
  onFileUpload: d[0] || (d[0] = (n) => s.value = n),
777
776
  label: w(b)("inventory.ingredient.import.uploadTemplate"),
778
777
  "button-label": w(b)("inventory.ingredient.import.selectFile")
779
- }, Le({ _: 2 }, [
778
+ }, Ue({ _: 2 }, [
780
779
  s.value ? {
781
780
  name: "default",
782
781
  fn: V(({ openFileDialog: n }) => [
@@ -791,11 +790,11 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
791
790
  }
792
791
  ])
793
792
  }, [
794
- a.value ? (I(), U(x, {
793
+ a.value ? (I(), L(x, {
795
794
  key: 0,
796
795
  size: "md",
797
796
  color: "neutral-gray-200"
798
- })) : (I(), U(k, {
797
+ })) : (I(), L(k, {
799
798
  key: 1,
800
799
  name: o.value ? "error" : "attach_file",
801
800
  outline: "",
@@ -841,7 +840,7 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
841
840
  ]), 1032, ["class", "label", "button-label"]),
842
841
  u.value ? (I(), A("div", Kt, [
843
842
  g("div", Gt, C(w(b)("inventory.ingredient.import.summary")), 1),
844
- (I(!0), A(Y, null, Q(t.value, (n, e) => (I(), U(je, {
843
+ (I(!0), A(Y, null, Q(t.value, (n, e) => (I(), L(je, {
845
844
  key: e,
846
845
  name: n.template.name,
847
846
  locations: n.template.locations,
@@ -849,7 +848,7 @@ const At = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Rt = { cla
849
848
  errors: n.errors,
850
849
  type: "create"
851
850
  }, null, 8, ["name", "locations", "items", "errors"]))), 128)),
852
- (I(!0), A(Y, null, Q(r.value, (n) => (I(), U(je, {
851
+ (I(!0), A(Y, null, Q(r.value, (n) => (I(), L(je, {
853
852
  key: n.template._id,
854
853
  name: n.template.name,
855
854
  locations: n.template.locations,
@@ -1493,7 +1492,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
1493
1492
  placeholder: "Filter items",
1494
1493
  modelValue: u.value,
1495
1494
  "onUpdate:modelValue": x[2] || (x[2] = (y) => u.value = y)
1496
- }, Le({ _: 2 }, [
1495
+ }, Ue({ _: 2 }, [
1497
1496
  u.value ? {
1498
1497
  name: "append",
1499
1498
  fn: V(() => [
@@ -1506,7 +1505,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
1506
1505
  key: "0"
1507
1506
  } : void 0
1508
1507
  ]), 1032, ["modelValue"]),
1509
- (I(), U(e, {
1508
+ (I(), L(e, {
1510
1509
  "search-value": u.value,
1511
1510
  "column-defs": v.value,
1512
1511
  "row-data": a.value,
@@ -1555,7 +1554,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
1555
1554
  }
1556
1555
  }), (r, o) => {
1557
1556
  const u = D("FmTextField"), b = D("FmButton"), v = D("FmTable"), T = D("FmForm");
1558
- return I(), U(T, {
1557
+ return I(), L(T, {
1559
1558
  ref_key: "formRef",
1560
1559
  ref: t,
1561
1560
  class: "flex flex-col gap-32",
@@ -1713,9 +1712,9 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
1713
1712
  }
1714
1713
  return (i, y) => {
1715
1714
  const _ = D("FmMenuDivider"), $ = D("FmCard"), F = D("FmButton"), M = D("FmSideSheet");
1716
- return I(), U(M, {
1715
+ return I(), L(M, {
1717
1716
  modelValue: w(r),
1718
- "onUpdate:modelValue": y[2] || (y[2] = (E) => Ue(r) ? r.value = E : null),
1717
+ "onUpdate:modelValue": y[2] || (y[2] = (E) => Le(r) ? r.value = E : null),
1719
1718
  "dismiss-away": "",
1720
1719
  "close-button": "",
1721
1720
  "max-width": 800
@@ -1727,7 +1726,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
1727
1726
  ]),
1728
1727
  default: V(() => [
1729
1728
  u.value.updatedAt ? (I(), A(Y, { key: 0 }, [
1730
- u.value.updatedAt ? (I(), U($, {
1729
+ u.value.updatedAt ? (I(), L($, {
1731
1730
  key: 0,
1732
1731
  variant: "outlined",
1733
1732
  class: "flex flex-col gap-8 px-12 py-16 mb-16"
@@ -1760,7 +1759,7 @@ const Qt = { class: "flex flex-col gap-16" }, Xt = { class: "flex items-center"
1760
1759
  _: 1
1761
1760
  })) : z("", !0)
1762
1761
  ], 64)) : z("", !0),
1763
- (I(), U(ln, {
1762
+ (I(), L(ln, {
1764
1763
  class: "w-full",
1765
1764
  ref_key: "formRef",
1766
1765
  ref: d,
@@ -1895,7 +1894,7 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
1895
1894
  ]);
1896
1895
  };
1897
1896
  }
1898
- }), Pn = { class: "flex flex-col gap-16" }, Vn = { class: "flex" }, jn = { class: "flex gap-24" }, Ln = { class: "flex" }, Un = { class: "flex-1" }, Bn = { class: "flex" }, Nn = { class: "flex gap-8 items-center justify-start" }, zn = /* @__PURE__ */ K({
1897
+ }), Pn = { class: "flex flex-col gap-16" }, Vn = { class: "flex" }, jn = { class: "flex gap-24" }, Un = { class: "flex" }, Ln = { class: "flex-1" }, Bn = { class: "flex" }, Nn = { class: "flex gap-8 items-center justify-start" }, zn = /* @__PURE__ */ K({
1899
1898
  __name: "WastageTemplateReason",
1900
1899
  props: {
1901
1900
  show: { type: Boolean }
@@ -1978,9 +1977,9 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
1978
1977
  };
1979
1978
  return (p, n) => {
1980
1979
  const e = D("FmButton"), i = D("FmAvatar"), y = D("FmTextField"), _ = D("FmList"), $ = D("FmForm"), F = D("FmSideSheet");
1981
- return I(), U(F, {
1980
+ return I(), L(F, {
1982
1981
  modelValue: w(h),
1983
- "onUpdate:modelValue": n[0] || (n[0] = (M) => Ue(h) ? h.value = M : null),
1982
+ "onUpdate:modelValue": n[0] || (n[0] = (M) => Le(h) ? h.value = M : null),
1984
1983
  header: "Reason for wastage",
1985
1984
  "close-button": "",
1986
1985
  "dismiss-away": !b.value,
@@ -2016,13 +2015,13 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
2016
2015
  key: E,
2017
2016
  class: "flex items-center gap-8 px-1 py-2"
2018
2017
  }, [
2019
- g("div", Ln, [
2018
+ g("div", Un, [
2020
2019
  S(i, {
2021
2020
  initials: String(E + 1),
2022
2021
  size: "sm"
2023
2022
  }, null, 8, ["initials"])
2024
2023
  ]),
2025
- g("div", Un, [
2024
+ g("div", Ln, [
2026
2025
  S(y, {
2027
2026
  class: "cursor-pointer text-fm-color-typo-tertiary",
2028
2027
  modelValue: t.value[E],
@@ -2079,7 +2078,7 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
2079
2078
  const x = B(() => v.loading), k = R(""), p = B(() => d.value.xs || d.value.sm), n = B(() => p.value ? 10 : 20);
2080
2079
  function e(F) {
2081
2080
  switch (F) {
2082
- case L.Add:
2081
+ case U.Add:
2083
2082
  return m();
2084
2083
  case "publish":
2085
2084
  return i();
@@ -2108,7 +2107,7 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
2108
2107
  const _ = B(() => p.value ? [
2109
2108
  {
2110
2109
  label: s("inventory.adjustment.template.create.title"),
2111
- value: L.Add,
2110
+ value: U.Add,
2112
2111
  isPrimary: !0,
2113
2112
  prependIcon: "add"
2114
2113
  },
@@ -2135,7 +2134,7 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
2135
2134
  ] : [
2136
2135
  {
2137
2136
  label: s("inventory.adjustment.template.create.title"),
2138
- value: L.Add,
2137
+ value: U.Add,
2139
2138
  isPrimary: !0,
2140
2139
  prependIcon: "add"
2141
2140
  },
@@ -2270,7 +2269,7 @@ const xn = /* @__PURE__ */ xt(bn, [["render", _n]]), wn = { class: "flex flex-co
2270
2269
  ]),
2271
2270
  _: 1
2272
2271
  }, 8, ["title", "actions"]),
2273
- (I(), U(Xe, { to: "body" }, [
2272
+ (I(), L(Xe, { to: "body" }, [
2274
2273
  S(xn, Ze(et(w(r))), null, 16),
2275
2274
  S(gn, Ve(w(t), {
2276
2275
  onSubmitted: M[2] || (M[2] = (N) => w(v).fetchTemplates())