@feedmepos/mf-inventory-portal 0.0.23-dev.18 → 0.0.23-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 (95) hide show
  1. package/dist/{App-Dfryh3pQ.js → App-DRE3c1lJ.js} +31 -36
  2. package/dist/{ApprovalView-CRrJeRCQ.js → ApprovalView-B4ZYcS3B.js} +4 -4
  3. package/dist/{BindingsDialog-Zh8FzTSI.js → BindingsDialog-Df1yrWHU.js} +2 -2
  4. package/dist/{BindingsPicker-BXChBNxv.js → BindingsPicker-BERMWh4w.js} +2 -2
  5. package/dist/{BindingsTable-BXB-X1N3.js → BindingsTable-DRIapOWW.js} +6 -6
  6. package/dist/{ClosingTemplateView-Bj6SiRlA.js → ClosingTemplateView-CbFn3Sdy.js} +31 -32
  7. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-7JYNssTm.js +267 -0
  8. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B8RhFmN_.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-KbYSywk2.js} +2 -2
  9. package/dist/{FmMultiselectDialog-DWMt9hvV.js → FmMultiselectDialog-Da9JMCYa.js} +15 -15
  10. package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-BHSGZyJL.js +326 -0
  11. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Be_B1iME.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DH5IQchQ.js} +1 -1
  12. package/dist/{IngredientGroupView-DCOz2AOB.js → IngredientGroupView-DoETcEvV.js} +11 -12
  13. package/dist/IngredientsView-DHAhj9pV.js +1613 -0
  14. package/dist/{IntegrationView-BfoCYVHZ.js → IntegrationView-D1HeBiGF.js} +50 -50
  15. package/dist/{InventoryBindingForm-2Gs2vUtC.js → InventoryBindingForm-Dmz9BQ37.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-D9Of6ewh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoyqVBOd.js} +13 -13
  17. package/dist/{InventoryBindingSummary-IUJt469w.js → InventoryBindingSummary-DrpwiRGZ.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtdmfQRZ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yNEswIEI.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C97vZfAO.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Br4_VUza.js} +2 -2
  20. package/dist/{PurchaseOrderPrintPreview-BRVCfgd3.js → PurchaseOrderPrintPreview-cp671yWE.js} +1 -1
  21. package/dist/ReceiveRequestView-C1WBlpho.js +4082 -0
  22. package/dist/{RecipeView-Br8u4xZZ.js → RecipeView-CD_dAWLo.js} +10 -11
  23. package/dist/{StockView-B2vBQLJf.js → StockView-DfUzFC1b.js} +1457 -1356
  24. package/dist/{SupplierView-S_qigSL4.js → SupplierView-DB-zrNxh.js} +783 -2352
  25. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-2mzqFGCz.js +1144 -0
  26. package/dist/TransferTemplateView-CaAJrqU6.js +1262 -0
  27. package/dist/{UnitView-CR019bWO.js → UnitView-BlC9-WOA.js} +80 -81
  28. package/dist/{WarehouseView-BX7K073o.js → WarehouseView-CgEY87Lo.js} +24 -25
  29. package/dist/api/bill.d.ts +2 -2
  30. package/dist/api/closing.d.ts +0 -1
  31. package/dist/api/netsuite.d.ts +0 -69
  32. package/dist/{app-BY6TZxqB.js → app-CAyFhmAz.js} +3343 -3426
  33. package/dist/app.d.ts +0 -5
  34. package/dist/app.js +1 -1
  35. package/dist/components/FmMinMaxInputRules.d.ts +1 -4
  36. package/dist/components/row-action.enum.d.ts +0 -1
  37. package/dist/{date2-C385gf6_.js → date2-D9i5izMt.js} +1 -1
  38. package/dist/{dayjs.min-CuXsxyJ4.js → dayjs.min-SJKP9zBL.js} +17 -17
  39. package/dist/{decimal-DmIrlkyN.js → decimal-D7BCubZO.js} +1 -1
  40. package/dist/{defineDeepModel-CJEdL37p.js → defineDeepModel-DS4Shctf.js} +1 -1
  41. package/dist/{feature-DM4scjOG.js → feature-BR-MsGYt.js} +9 -23
  42. package/dist/{format-time-from-id-DmDFxNOY.js → format-time-from-id-CUby60uW.js} +1 -1
  43. package/dist/format-unit-display-D25Al2JZ.js +1198 -0
  44. package/dist/{fuzzy-D2QbaWQl.js → fuzzy-BryBtMz_.js} +1 -1
  45. package/dist/{index-UtLEzrzf.js → index-ByJbUSIQ.js} +1 -1
  46. package/dist/index-CFA_VFyX.js +10545 -0
  47. package/dist/{index-BgM27D6z.js → index-CTvgBOum.js} +25 -28
  48. package/dist/netsuite-D0G4B60k.js +146 -0
  49. package/dist/normalizeArguments-DP7Hrren.js +1552 -0
  50. package/dist/router/name.d.ts +0 -1
  51. package/dist/{row-action.enum-7rGLGZ5v.js → row-action.enum-PMKMRrZR.js} +5 -10
  52. package/dist/{rules-WXcRCM31.js → rules-DxVY0b7F.js} +35 -40
  53. package/dist/stores/feature.d.ts +0 -2
  54. package/dist/stores/integration/netsuite.d.ts +0 -81
  55. package/dist/stores/inventory.d.ts +4 -1
  56. package/dist/style.css +1 -1
  57. package/dist/{supplier-Cg0hV-1Z.js → supplier-aBuwVukl.js} +22 -22
  58. package/dist/tsconfig.app.tsbuildinfo +1 -1
  59. package/dist/{use-inventory-binding-dialog-C4A0C-q4.js → use-inventory-binding-dialog-CLQ0LUmW.js} +2 -2
  60. package/dist/{use-template-enabled-locations-2-ClTvBbS6.js → use-template-enabled-locations-2-BgTiwy_3.js} +2 -2
  61. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +192 -24
  62. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +192 -24
  63. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
  64. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -1
  65. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +54 -54
  66. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
  67. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  68. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
  69. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
  70. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
  71. package/dist/{xlsx-jlUdZfql.js → xlsx-BbtURTDy.js} +1 -1
  72. package/dist/{xlsx.util-C4YF_j8p.js → xlsx.util-zYS4OJFi.js} +1 -1
  73. package/package.json +3 -3
  74. package/dist/ClosingDraftView-ZKdMqDrV.js +0 -1122
  75. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CZ1NPD07.js +0 -283
  76. package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-C--mzLIB.js +0 -329
  77. package/dist/IngredientsView-D3ptwZy1.js +0 -1666
  78. package/dist/ReceiveRequestView-Brh9jtUz.js +0 -4195
  79. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang--DGNx2VJ.js +0 -1235
  80. package/dist/TransferTemplateView-B0_EXehN.js +0 -1275
  81. package/dist/api/closing-draft.d.ts +0 -6
  82. package/dist/form-mode.enum-BKiNVH6A.js +0 -4
  83. package/dist/format-unit-display-DnZmCO-i.js +0 -1217
  84. package/dist/index-CKCFZ2N2.js +0 -12087
  85. package/dist/netsuite-CxzWHfIf.js +0 -251
  86. package/dist/stock-BVyJ8TZF.js +0 -111
  87. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +0 -2
  88. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +0 -22
  89. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -451
  90. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +0 -25
  91. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -2601
  92. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +0 -1
  93. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +0 -19
  94. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +0 -4
  95. package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +0 -1
@@ -1,9 +1,9 @@
1
- import { ref as L, onUnmounted as F, defineComponent as h, watch as b, onMounted as U, computed as R, resolveComponent as T, openBlock as S, createElementBlock as I, unref as v, createVNode as E, createElementVNode as p, toDisplayString as w, createBlock as B, createCommentVNode as k } from "vue";
2
- import { u as M, a as D, R as e, g as s, b as H } from "./app-BY6TZxqB.js";
3
- import { useCoreStore as A, useI18n as G } from "@feedmepos/mf-common";
4
- import { useRouter as C, useRoute as K } from "vue-router";
5
- import { u as O } from "./feature-DM4scjOG.js";
6
- import { u as $ } from "./netsuite-CxzWHfIf.js";
1
+ import { ref as L, onUnmounted as k, defineComponent as h, watch as b, onMounted as U, computed as R, resolveComponent as T, openBlock as S, createElementBlock as I, unref as v, createVNode as E, createElementVNode as p, toDisplayString as w, createBlock as B, createCommentVNode as F } from "vue";
2
+ import { u as M, a as D, R as e, g as s, b as H } from "./app-CAyFhmAz.js";
3
+ import { useCoreStore as x, useI18n as G } from "@feedmepos/mf-common";
4
+ import { useRouter as A, useRoute as K } from "vue-router";
5
+ import { u as V } from "./feature-BR-MsGYt.js";
6
+ import { u as $ } from "./netsuite-D0G4B60k.js";
7
7
  import { u as Q } from "./useTabStorage-BkIVScW_.js";
8
8
  import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  import { u as j } from "./googlemap-Dm8ERVai.js";
@@ -16,7 +16,7 @@ function z() {
16
16
  }
17
17
  const _ = L(z());
18
18
  function q() {
19
- const l = C();
19
+ const l = A();
20
20
  if (!_.value.loadingHookInstalled) {
21
21
  _.value.loadingHookInstalled = !0;
22
22
  const n = l.beforeEach(() => {
@@ -24,7 +24,7 @@ function q() {
24
24
  }), i = l.afterEach(() => {
25
25
  _.value.isLoading = !1;
26
26
  });
27
- F(() => {
27
+ k(() => {
28
28
  _.value.loadingHookInstalled = !1, n(), i();
29
29
  });
30
30
  }
@@ -43,18 +43,17 @@ const J = {
43
43
  }, Y = { class: "flex flex-col gap-12 items-center text-center px-24 max-w-[1000px]" }, Z = { class: "fm-typo-en-title-lg-600" }, ee = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, te = { class: "flex gap-16" }, oe = { href: "https://feedme.ai/product/inventory/features?tab=plans_%26_prices" }, ne = { href: "https://feedme.ai/form" }, re = /* @__PURE__ */ h({
44
44
  __name: "InventoryView",
45
45
  setup(l) {
46
- const n = M(), i = D(), u = $(), a = A(), c = C(), o = q(), y = O(), { t: d } = G();
46
+ const n = M(), i = D(), u = $(), a = x(), c = A(), o = q(), y = V(), { t: f } = G();
47
47
  b(
48
48
  [() => a.sessionUser.value, () => a.currentBusiness.value],
49
49
  ([t, r]) => {
50
- f(t, r);
50
+ d(t, r);
51
51
  }
52
- ), U(async () => {
53
- await a.readBusinesses();
52
+ ), U(() => {
54
53
  const t = a.sessionUser.value, r = a.currentBusiness.value;
55
- f(t, r);
54
+ d(t, r);
56
55
  });
57
- function f(t, r) {
56
+ function d(t, r) {
58
57
  !t || !r || g();
59
58
  }
60
59
  async function g() {
@@ -64,7 +63,7 @@ const J = {
64
63
  }
65
64
  const N = R(() => c.currentRoute.value.name === e.TRANSFER_TEMPLATE ? y.enablePoTemplate : !0);
66
65
  return (t, r) => {
67
- const m = T("FmSpacer"), P = T("FmCircularProgress"), x = T("FmButton"), V = T("RouterView");
66
+ const m = T("FmSpacer"), P = T("FmCircularProgress"), C = T("FmButton"), O = T("RouterView");
68
67
  return S(), I("div", null, [
69
68
  v(o).isLoading ? (S(), I("div", J, [
70
69
  E(m),
@@ -73,21 +72,21 @@ const J = {
73
72
  ]),
74
73
  r[0] || (r[0] = p("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary pl-8" }, "Loading page...", -1)),
75
74
  E(m)
76
- ])) : N.value ? v(a).sessionUser.value ? (S(), B(V, { key: 2 })) : k("", !0) : (S(), I("div", X, [
75
+ ])) : N.value ? v(a).sessionUser.value ? (S(), B(O, { key: 2 })) : F("", !0) : (S(), I("div", X, [
77
76
  p("div", Y, [
78
- p("div", Z, w(v(d)("inventory.common.proPlan.title")), 1),
79
- p("div", ee, w(v(d)("inventory.common.proPlan.subtitle")), 1)
77
+ p("div", Z, w(v(f)("inventory.common.proPlan.title")), 1),
78
+ p("div", ee, w(v(f)("inventory.common.proPlan.subtitle")), 1)
80
79
  ]),
81
80
  p("div", te, [
82
81
  p("a", oe, [
83
- E(x, {
84
- label: v(d)("inventory.common.proPlan.comparePlans"),
82
+ E(C, {
83
+ label: v(f)("inventory.common.proPlan.comparePlans"),
85
84
  variant: "secondary"
86
85
  }, null, 8, ["label"])
87
86
  ]),
88
87
  p("a", ne, [
89
- E(x, {
90
- label: v(d)("inventory.common.proPlan.callUs"),
88
+ E(C, {
89
+ label: v(f)("inventory.common.proPlan.callUs"),
91
90
  "prepend-icon": "call"
92
91
  }, null, 8, ["label"])
93
92
  ])
@@ -99,7 +98,7 @@ const J = {
99
98
  }), se = { class: "h-full flex flex-col overflow-auto py-16" }, ae = /* @__PURE__ */ h({
100
99
  __name: "NavigationTab",
101
100
  setup(l) {
102
- const n = K(), i = C(), u = A(), a = O(), c = Q(), { t: o } = G();
101
+ const n = K(), i = A(), u = x(), a = V(), c = Q(), { t: o } = G();
103
102
  b([() => u.currentBusiness.value, () => n.name], ([t, r]) => {
104
103
  (t == null ? void 0 : t.menuVersion) === "v3" && (r === e.INGREDIENTS || r === e.RECIPE || r === e.UNIT) && i.push({ name: e.STOCK });
105
104
  });
@@ -117,10 +116,6 @@ const J = {
117
116
  {
118
117
  label: s(e.CLOSING_TEMPLATE, o),
119
118
  value: e.CLOSING_TEMPLATE
120
- },
121
- {
122
- label: s(e.CLOSING_DRAFT, o),
123
- value: e.CLOSING_DRAFT
124
119
  }
125
120
  ]
126
121
  },
@@ -183,7 +178,7 @@ const J = {
183
178
  return ((r = u.currentBusiness.value) == null ? void 0 : r.menuVersion) === "v3" ? t.filter(
184
179
  (m) => m.value !== e.INGREDIENTS && m.value !== e.RECIPE && m.value !== e.UNIT
185
180
  ) : t;
186
- }), d = R({
181
+ }), f = R({
187
182
  get() {
188
183
  if (n.name)
189
184
  return String(n.name);
@@ -191,7 +186,7 @@ const J = {
191
186
  set(t) {
192
187
  t && i.push({ name: t });
193
188
  }
194
- }), f = R(
189
+ }), d = R(
195
190
  () => {
196
191
  var t;
197
192
  return `NavigationTab.${(t = u.currentBusiness.value) == null ? void 0 : t._id}`;
@@ -201,25 +196,25 @@ const J = {
201
196
  return g.value;
202
197
  },
203
198
  set(t) {
204
- g.value = t, t || c.setItem(f.value, "true");
199
+ g.value = t, t || c.setItem(d.value, "true");
205
200
  }
206
201
  });
207
- return b([() => f.value], () => {
202
+ return b([() => d.value], () => {
208
203
  g.value = !1, setTimeout(() => {
209
- N.value = !c.getItem(f.value);
204
+ N.value = !c.getItem(d.value);
210
205
  }, 2e3);
211
206
  }), (t, r) => {
212
207
  const m = T("FmCollapsibleTabs");
213
208
  return S(), I("div", se, [
214
209
  E(m, {
215
- modelValue: d.value,
216
- "onUpdate:modelValue": r[0] || (r[0] = (P) => d.value = P),
210
+ modelValue: f.value,
211
+ "onUpdate:modelValue": r[0] || (r[0] = (P) => f.value = P),
217
212
  items: y.value
218
213
  }, null, 8, ["modelValue", "items"])
219
214
  ]);
220
215
  };
221
216
  }
222
- }), le = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-070831e1"]]);
217
+ }), le = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-0fe980e2"]]);
223
218
  typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
224
219
  let l, n;
225
220
  return { promise: new Promise((u, a) => {
@@ -232,7 +227,7 @@ typeof Promise.prototype.delayed > "u" && (Promise.prototype.delayed = async fun
232
227
  const Se = /* @__PURE__ */ h({
233
228
  __name: "App",
234
229
  setup(l) {
235
- const n = A(), i = j(), u = H();
230
+ const n = x(), i = j(), u = H();
236
231
  U(() => {
237
232
  if (window.location.href.includes("print-preview")) {
238
233
  n.setEmbedded(!0);
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ce, createCommentVNode as ie, Teleport as pe, mergeProps as ue } from "vue";
2
- import { u as me, z as v } from "./app-BY6TZxqB.js";
3
- import { b as de, u as fe, _ as ve, a as _e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B8RhFmN_.js";
4
- import { a as he, b as De, _ as ge } from "./TransferDetails.vue_vue_type_script_setup_true_lang--DGNx2VJ.js";
5
- import { c as K } from "./date2-C385gf6_.js";
2
+ import { u as me, w as v } from "./app-CAyFhmAz.js";
3
+ import { b as de, u as fe, _ as ve, a as _e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-KbYSywk2.js";
4
+ import { a as he, b as De, _ as ge } from "./TransferDetails.vue_vue_type_script_setup_true_lang-2mzqFGCz.js";
5
+ import { c as K } from "./date2-D9i5izMt.js";
6
6
  import { _ as be, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
7
7
  import { useBreakpoints as xe } from "@feedmepos/ui-library";
8
8
  import { useI18n as ye } from "@feedmepos/mf-common";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
- import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-D9Of6ewh.js";
3
- import { a as L, J as S } from "./app-BY6TZxqB.js";
2
+ import { _ as V } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoyqVBOd.js";
3
+ import { a as L, G as S } from "./app-CAyFhmAz.js";
4
4
  const U = {
5
5
  key: 0,
6
6
  class: "flex justify-end gap-8 items-center"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
- import { F as M } from "./FmMultiselectDialog-DWMt9hvV.js";
3
- import { a as x, J as F } from "./app-BY6TZxqB.js";
2
+ import { F as M } from "./FmMultiselectDialog-Da9JMCYa.js";
3
+ import { a as x, G as F } from "./app-CAyFhmAz.js";
4
4
  const z = {
5
5
  key: 0,
6
6
  class: "flex flex-col gap-16"
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
2
- import { F as v, a as E, J as F } from "./app-BY6TZxqB.js";
3
- import "./index-BgM27D6z.js";
2
+ import { F as v, a as E, G as F } from "./app-CAyFhmAz.js";
3
+ import "./index-CTvgBOum.js";
4
4
  import { components as L } from "@feedmepos/ui-library";
5
- import "./fuzzy-D2QbaWQl.js";
5
+ import "./fuzzy-BryBtMz_.js";
6
6
  /* empty css */
7
7
  import "@feedmepos/mf-common";
8
- import "./dayjs.min-CuXsxyJ4.js";
8
+ import "./dayjs.min-SJKP9zBL.js";
9
9
  const P = /* @__PURE__ */ _({
10
10
  __name: "binding-ui",
11
11
  props: {
@@ -94,7 +94,7 @@ const P = /* @__PURE__ */ _({
94
94
  }), R = {
95
95
  key: 1,
96
96
  class: "p-24 flex items-center justify-center gap-16"
97
- }, S = /* @__PURE__ */ _({
97
+ }, K = /* @__PURE__ */ _({
98
98
  __name: "BindingsTable",
99
99
  setup(k) {
100
100
  const d = E(), u = c(!0), s = c(new Array()), m = f(() => d.recipes), a = f(() => d.skus), g = c(""), i = F(n), e = c();
@@ -145,5 +145,5 @@ const P = /* @__PURE__ */ _({
145
145
  }
146
146
  });
147
147
  export {
148
- S as default
148
+ K as default
149
149
  };
@@ -1,21 +1,20 @@
1
- import { ref as M, 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 { u as qe, _ as Qe, a as Xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B8RhFmN_.js";
1
+ import { ref as M, h as F, defineComponent as j, 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 Oe, normalizeStyle as Ye, Teleport as Ke, normalizeProps as Ge, guardReactiveProps as Je, mergeProps as We } from "vue";
2
+ import { u as qe, _ as Qe, a as Xe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-KbYSywk2.js";
3
3
  import { useCoreStore as le, useI18n as B } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as Ze, useSnackbar as Z, useDialog as ae, FmButtonVariant as Se, components as L, useProxiedModel as et, useBreakpoints as tt } from "@feedmepos/ui-library";
5
5
  import { defineStore as Ae, storeToRefs as Ee } from "pinia";
6
- import { F as z } from "./form-mode.enum-BKiNVH6A.js";
7
- import { k as nt, u as re, c as Ue, a as ie, i as ot } from "./app-BY6TZxqB.js";
8
- import { a as oe, b as Ve, d as Ne, s as Be, r as st } from "./xlsx.util-C4YF_j8p.js";
6
+ import { D as Me, R as N, F as z } from "./row-action.enum-PMKMRrZR.js";
7
+ import { j as nt, u as re, c as Ue, a as ie, i as ot } from "./app-CAyFhmAz.js";
8
+ import { a as oe, b as Ve, d as Ne, s as Be, r as st } from "./xlsx.util-zYS4OJFi.js";
9
9
  import { F as lt } from "./FmDroppableField-8RzKjEdL.js";
10
- import { f as at, d as ne } from "./date2-C385gf6_.js";
11
- import { D as Me, R as N } from "./row-action.enum-7rGLGZ5v.js";
12
- import { c as rt, F as j, _ as Le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
13
- import { f as it } from "./format-time-from-id-DmDFxNOY.js";
14
- import { u as ct } from "./netsuite-CxzWHfIf.js";
15
- import { R as mt, A as ut } from "./rules-WXcRCM31.js";
16
- import { F as dt } from "./FmMultiselectDialog-DWMt9hvV.js";
17
- import { d as pt } from "./defineDeepModel-CJEdL37p.js";
18
- import { u as ft } from "./use-template-enabled-locations-2-ClTvBbS6.js";
10
+ import { f as at, d as ne } from "./date2-D9i5izMt.js";
11
+ import { c as rt, F as O, _ as Le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
12
+ import { f as it } from "./format-time-from-id-CUby60uW.js";
13
+ import { u as ct } from "./netsuite-D0G4B60k.js";
14
+ import { R as mt, A as ut } from "./rules-DxVY0b7F.js";
15
+ import { F as dt } from "./FmMultiselectDialog-Da9JMCYa.js";
16
+ import { d as pt } from "./defineDeepModel-DS4Shctf.js";
17
+ import { u as ft } from "./use-template-enabled-locations-2-BgTiwy_3.js";
19
18
  import { _ as vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
19
  const ee = nt((r, s) => {
21
20
  function o() {
@@ -538,7 +537,7 @@ function kt(r) {
538
537
  const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-col" }, Ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, It = {
539
538
  key: 0,
540
539
  class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
541
- }, St = { key: 0 }, De = /* @__PURE__ */ O({
540
+ }, St = { key: 0 }, De = /* @__PURE__ */ j({
542
541
  __name: "ClosingTemplateImportItem",
543
542
  props: {
544
543
  type: {},
@@ -607,7 +606,7 @@ const Tt = { class: "flex items-center gap-12 pl-8" }, $t = { class: "flex flex-
607
606
  }, Vt = { class: "text-fm-color-system-error-300 fm-typo-en-body-sm-400" }, Nt = {
608
607
  key: 0,
609
608
  class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
610
- }, Bt = { class: "fm-typo-en-body-lg-600" }, Lt = /* @__PURE__ */ O({
609
+ }, Bt = { class: "fm-typo-en-body-lg-600" }, Lt = /* @__PURE__ */ j({
611
610
  __name: "ClosingTemplateImport",
612
611
  setup(r) {
613
612
  const s = M(null), o = Ze(), l = Z(), e = M(!1), t = M(!1), y = M(new Array()), p = M([]), f = M([]), i = E(
@@ -1150,7 +1149,7 @@ function zt(r) {
1150
1149
  })
1151
1150
  };
1152
1151
  }
1153
- 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({
1152
+ const Ht = { class: "flex flex-col gap-16 py-12" }, jt = { class: "flex" }, Ot = { 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__ */ j({
1154
1153
  __name: "ClosingTemplateItem",
1155
1154
  props: {
1156
1155
  cellByColId: {},
@@ -1163,13 +1162,13 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1163
1162
  return (e, t) => {
1164
1163
  var y, p, f, i, d;
1165
1164
  return k(), I("div", Ht, [
1166
- _("div", Ot, [
1167
- _("div", jt, [
1165
+ _("div", jt, [
1166
+ _("div", Ot, [
1168
1167
  _("div", Yt, C(o.value.original.sku.name), 1),
1169
1168
  _("div", Kt, C(o.value.original.sku.code), 1)
1170
1169
  ]),
1171
1170
  _("div", null, [
1172
- T(v(j), {
1171
+ T(v(O), {
1173
1172
  render: (f = (p = (y = e.cellByColId[v(K).Delete]) == null ? void 0 : y.column) == null ? void 0 : p.columnDef) == null ? void 0 : f.cell,
1174
1173
  props: (d = (i = e.cellByColId[v(K).Delete]) == null ? void 0 : i.getContext) == null ? void 0 : d.call(i)
1175
1174
  }, null, 8, ["render", "props"])
@@ -1182,7 +1181,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1182
1181
  return k(), I("div", {
1183
1182
  key: m.id
1184
1183
  }, [
1185
- T(v(j), {
1184
+ T(v(O), {
1186
1185
  render: (h = (g = m.column) == null ? void 0 : g.columnDef) == null ? void 0 : h.cell,
1187
1186
  props: (u = m.getContext) == null ? void 0 : u.call(m)
1188
1187
  }, null, 8, ["render", "props"])
@@ -1192,7 +1191,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1192
1191
  ]);
1193
1192
  };
1194
1193
  }
1195
- }), 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({
1194
+ }), 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__ */ j({
1196
1195
  __name: "ClosingTemplateForm",
1197
1196
  props: {
1198
1197
  modelValue: {},
@@ -1386,7 +1385,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1386
1385
  }, 8, ["disabled"]);
1387
1386
  };
1388
1387
  }
1389
- }), sn = { class: "flex items-center" }, ln = { class: "fm-typo-en-title-md-600" }, an = { class: "flex gap-4" }, rn = /* @__PURE__ */ O({
1388
+ }), sn = { class: "flex items-center" }, ln = { class: "fm-typo-en-title-md-600" }, an = { class: "flex gap-4" }, rn = /* @__PURE__ */ j({
1390
1389
  __name: "ClosingTemplateDialog",
1391
1390
  props: {
1392
1391
  mode: {},
@@ -1498,7 +1497,7 @@ const Ht = { class: "flex flex-col gap-16 py-12" }, Ot = { class: "flex" }, jt =
1498
1497
  const A = R("FmButton"), D = R("FmSideSheet");
1499
1498
  return k(), V(D, {
1500
1499
  modelValue: v(f),
1501
- "onUpdate:modelValue": w[2] || (w[2] = (S) => je(f) ? f.value = S : null),
1500
+ "onUpdate:modelValue": w[2] || (w[2] = (S) => Oe(f) ? f.value = S : null),
1502
1501
  "dismiss-away": "",
1503
1502
  "close-button": "",
1504
1503
  "max-width": 800
@@ -1552,7 +1551,7 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
1552
1551
  }, yn = {
1553
1552
  key: 3,
1554
1553
  class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex flex-col gap-12"
1555
- }, hn = { class: "fm-typo-en-body-md-600" }, bn = { class: "fm-typo-en-body-md-600" }, _n = { key: 4 }, xn = { class: "fm-typo-en-body-md-600" }, wn = { class: "fm-typo-en-body-md-600" }, kn = { class: "flex sm:flex-col xs:flex-col justify-end gap-8 w-full mb-16" }, Tn = /* @__PURE__ */ O({
1554
+ }, hn = { class: "fm-typo-en-body-md-600" }, bn = { class: "fm-typo-en-body-md-600" }, _n = { key: 4 }, xn = { class: "fm-typo-en-body-md-600" }, wn = { class: "fm-typo-en-body-md-600" }, kn = { class: "flex sm:flex-col xs:flex-col justify-end gap-8 w-full mb-16" }, Tn = /* @__PURE__ */ j({
1556
1555
  __name: "ClosingTemplatePublish",
1557
1556
  emits: ["close"],
1558
1557
  setup(r, { emit: s }) {
@@ -1644,7 +1643,7 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
1644
1643
  ]);
1645
1644
  };
1646
1645
  }
1647
- }), $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" }, Mn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Dn = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, qn = /* @__PURE__ */ O({
1646
+ }), $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" }, Mn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, Dn = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, Wn = /* @__PURE__ */ j({
1648
1647
  __name: "ClosingTemplateView",
1649
1648
  setup(r) {
1650
1649
  const { t: s } = B(), { createTemplate: o, updateTemplate: l, exportTemplates: e, importTemplates: t } = se(), { templateDialogProps: y, templateDetailsProps: p } = Ee(se()), f = re(), i = ae(), d = te(), m = qe(), { breakpoints: g } = tt();
@@ -1776,13 +1775,13 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
1776
1775
  _("div", $n, [
1777
1776
  _("div", Cn, [
1778
1777
  _("div", In, [
1779
- T(v(j), {
1778
+ T(v(O), {
1780
1779
  render: (de = (ue = (me = U._id) == null ? void 0 : me.column) == null ? void 0 : ue.columnDef) == null ? void 0 : de.cell,
1781
1780
  props: (pe = (W = U._id) == null ? void 0 : W.getContext) == null ? void 0 : pe.call(W)
1782
1781
  }, null, 8, ["render", "props"])
1783
1782
  ]),
1784
1783
  _("div", Sn, [
1785
- T(v(j), {
1784
+ T(v(O), {
1786
1785
  render: (ge = (ve = (fe = U.name) == null ? void 0 : fe.column) == null ? void 0 : ve.columnDef) == null ? void 0 : ge.cell,
1787
1786
  props: (ye = (q = U.name) == null ? void 0 : q.getContext) == null ? void 0 : ye.call(q)
1788
1787
  }, null, 8, ["render", "props"])
@@ -1791,18 +1790,18 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
1791
1790
  count: ((be = S.original.locations) == null ? void 0 : be.length) ?? 0
1792
1791
  }) : v(s)("inventory.closing.table.enabledForAll")), 1),
1793
1792
  _("div", Mn, C([
1794
- ...S.original.items.slice(0, 3).map((Oe) => Oe.sku.name),
1793
+ ...S.original.items.slice(0, 3).map((je) => je.sku.name),
1795
1794
  ...S.original.items.length >= 3 ? [`and ${S.original.items.length - 3} more items`] : []
1796
1795
  ].join(", ")), 1),
1797
1796
  _("div", Dn, [
1798
- T(v(j), {
1797
+ T(v(O), {
1799
1798
  render: (we = (xe = (_e = U.ref) == null ? void 0 : _e.column) == null ? void 0 : xe.columnDef) == null ? void 0 : we.cell,
1800
1799
  props: (ke = (Q = U.ref) == null ? void 0 : Q.getContext) == null ? void 0 : ke.call(Q)
1801
1800
  }, null, 8, ["render", "props"])
1802
1801
  ])
1803
1802
  ]),
1804
1803
  _("div", null, [
1805
- T(v(j), {
1804
+ T(v(O), {
1806
1805
  render: (Ce = ($e = (Te = U.status) == null ? void 0 : Te.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Ce.cell,
1807
1806
  props: (Ie = (X = U.status) == null ? void 0 : X.getContext) == null ? void 0 : Ie.call(X)
1808
1807
  }, null, 8, ["render", "props"])
@@ -1830,5 +1829,5 @@ const un = /* @__PURE__ */ vt(cn, [["render", mn]]), dn = { class: "flex flex-co
1830
1829
  }
1831
1830
  });
1832
1831
  export {
1833
- qn as default
1832
+ Wn as default
1834
1833
  };