@feedmepos/mf-inventory-portal 1.2.50 → 1.2.51-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 (96) hide show
  1. package/dist/{App-DssF0b6P.js → App-bY_YcLwH.js} +75 -70
  2. package/dist/{ApprovalView-DTCayLqE.js → ApprovalView-vzIiBqt2.js} +34 -34
  3. package/dist/{BindingsDialog-C2-THIG0.js → BindingsDialog-DCh2ORem.js} +2 -2
  4. package/dist/{BindingsPicker-Q9W92GzO.js → BindingsPicker-DcNG03p-.js} +2 -2
  5. package/dist/{BindingsTable-BQo8HpbF.js → BindingsTable-B_Yaq-z3.js} +4 -4
  6. package/dist/{ClosingDraftView-B0spMbZd.js → ClosingDraftView-C0T8cWEB.js} +19 -18
  7. package/dist/{ClosingHistoryView-DDVibMzL.js → ClosingHistoryView-DkKAjh7T.js} +27 -27
  8. package/dist/{ClosingTemplateView-BSiNTpkH.js → ClosingTemplateView-DpH1EyW5.js} +18 -17
  9. package/dist/{DeliveryOrderPrintPreview-P9JASYcM.js → DeliveryOrderPrintPreview-B2ecLaLu.js} +1 -1
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CI4z5XYQ.js +188 -0
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CaQq9jpc.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js} +12 -12
  12. package/dist/FmMultiselectDialog-BviFuAM5.js +618 -0
  13. package/dist/{FmMultiselectDialog-DKEGwdyz.js → FmMultiselectDialog-DGUwruxs.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-H5xYFc6B.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CRTG3VFo.js} +3 -3
  15. package/dist/{ImportView-CKg0Z3Bz.js → ImportView-Bk4Z7nGh.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-y1qeqeUV.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BEJ19Uej.js} +1 -1
  17. package/dist/{IngredientGroupView-DntDNlVX.js → IngredientGroupView-8GHMMOux.js} +108 -107
  18. package/dist/{IngredientsView-B93tavZW.js → IngredientsView-DbmODx-v.js} +126 -125
  19. package/dist/{IntegrationView-CqEe7SWR.js → IntegrationView-DC0O_Lk4.js} +80 -80
  20. package/dist/{InventoryBindingForm-9E3VsD4v.js → InventoryBindingForm-ln0q25n_.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dgy_eFxJ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFgk9rSe.js} +21 -21
  22. package/dist/{InventoryBindingSummary-DTcoWk_n.js → InventoryBindingSummary-BlNXhS4v.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CIDw4WOz.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BY_mXqPr.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dao7XifY.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BhNjwE3X.js} +2 -2
  25. package/dist/{PublishView-GDJsOfeY.js → PublishView-5GkTzxbi.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-DFeZT5Zi.js → PurchaseOrderPrintPreview-Dj5lJ5Ou.js} +1 -1
  27. package/dist/ReceiveRequestView-BAYczSpW.js +2913 -0
  28. package/dist/{RecipeView-DyJs2lsk.js → RecipeView-OLPRwnVx.js} +83 -82
  29. package/dist/{StockView-Cvwfcsf7.js → StockView-TcA5zJqr.js} +113 -112
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CMFiW6FL.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DZ6TDkKR.js} +1 -1
  31. package/dist/{SupplierView-C6rIxQOg.js → SupplierView-77qI9YCg.js} +28 -27
  32. package/dist/SurchargeView-CxW2ZZ8a.js +460 -0
  33. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-6C5vAumx.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js} +2 -2
  34. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +84 -0
  35. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bc0MVyK_.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js} +13 -13
  36. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BSNIRZx3.js → TransferDetails.vue_vue_type_script_setup_true_lang-7BoFD5wV.js} +129 -129
  37. package/dist/{TransferTemplateView-BVRXLZGK.js → TransferTemplateView-CI0U36Tr.js} +82 -81
  38. package/dist/{UnitView-B9n1vDtN.js → UnitView-fNFFUNlb.js} +20 -19
  39. package/dist/{WarehouseView-oyEVpI9M.js → WarehouseView-BAXgnZnO.js} +21 -20
  40. package/dist/{WastageTemplateView-DCdR4fhu.js → WastageTemplateView-C5qCXWqZ.js} +165 -164
  41. package/dist/api/netsuite.d.ts +8 -0
  42. package/dist/api/surcharge.d.ts +31 -0
  43. package/dist/{app-_hCz0958.js → app-CddcvygU.js} +4513 -4410
  44. package/dist/app-DiX-EfV6.js +8167 -0
  45. package/dist/app.d.ts +52 -0
  46. package/dist/app.js +1 -1
  47. package/dist/{closing-template-y0kvKjaN.js → closing-template-DxdLqlb1.js} +1 -1
  48. package/dist/component-DpCUABT3.js +82 -0
  49. package/dist/components/FmInventoryTableToolbar.vue.d.ts +8 -0
  50. package/dist/components/FmMultiselectDialogProps.d.ts +5 -0
  51. package/dist/{date2-Ct3mwV73.js → date2-CVZy20Q_.js} +1 -1
  52. package/dist/{dayjs.min-iDh15Qvq.js → dayjs.min-NrRtjg32.js} +26 -26
  53. package/dist/{decimal-DliTT0vp.js → decimal-Du3Grkk9.js} +2 -2
  54. package/dist/{defineDeepModel-DmVg-VGa.js → defineDeepModel-DgRoiQBp.js} +1 -1
  55. package/dist/{duplicate-template-BO8LvPWq.js → duplicate-template-DvnZ4BW6.js} +1 -1
  56. package/dist/{feature-Dk3_0hiC.js → feature-CTA18HlL.js} +8947 -6212
  57. package/dist/{format-time-from-id-DOmxxVYQ.js → format-time-from-id-6kt1RMWs.js} +1 -1
  58. package/dist/{format-unit-display-BuliV6Fn.js → format-unit-display-mVJ-nuJe.js} +11 -11
  59. package/dist/{import-export.helper-DpWf4zh7.js → import-export.helper-DWwlJy7N.js} +5 -5
  60. package/dist/{index-CY6-px7W.js → index-BEcj1jGd.js} +3 -3
  61. package/dist/{index-C6nEuFpg.js → index-BfcdagSF.js} +1 -1
  62. package/dist/{index-BZ9fyZbO.js → index-By-jyWOP.js} +1 -1
  63. package/dist/{lodash-DDMf37Aw.js → lodash-D0COOw3m.js} +1 -1
  64. package/dist/netsuite-3LgQ5ztL.js +5402 -0
  65. package/dist/{purchase-order-template-C9GqlQL3.js → purchase-order-template-CJCmABzP.js} +1 -1
  66. package/dist/router/name.d.ts +1 -0
  67. package/dist/{rules-9-OxHCjJ.js → rules-hQBVd1Mn.js} +9 -9
  68. package/dist/{stock-CjJKvKsB.js → stock-4xGaezEy.js} +3 -3
  69. package/dist/{stock-D7gYQHth.js → stock-B6QW-S14.js} +1 -1
  70. package/dist/stores/feature.d.ts +4 -0
  71. package/dist/stores/integration/netsuite.d.ts +5 -0
  72. package/dist/stores/surcharge.d.ts +18 -0
  73. package/dist/style.css +1 -1
  74. package/dist/{supplier-z1X1B4yZ.js → supplier-C-dmFnqw.js} +2 -2
  75. package/dist/surcharge-Db4IiSEQ.js +71 -0
  76. package/dist/tsconfig.app.tsbuildinfo +1 -1
  77. package/dist/{use-ingredient-select-dialog-B4u8ttOK.js → use-ingredient-select-dialog-DgYSZDN8.js} +2 -2
  78. package/dist/{use-inventory-binding-dialog-CaFu9DlH.js → use-inventory-binding-dialog-CnYcA_Fo.js} +2 -2
  79. package/dist/{use-template-enabled-locations-2-KQU0hLX3.js → use-template-enabled-locations-2-B_aZrMUU.js} +2 -2
  80. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +714 -0
  81. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
  82. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  83. package/dist/views/surcharge/SurchargeView.vue.d.ts +2 -0
  84. package/dist/{vue-i18n-UG5lCeUG.js → vue-i18n-BCEDBY4T.js} +563 -563
  85. package/dist/{xlsx-INrtkMe5.js → xlsx-CJsXiiEq.js} +398 -398
  86. package/dist/{xlsx.util-OqI8IJfw.js → xlsx.util-CSudzOii.js} +1 -1
  87. package/package.json +5 -5
  88. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DkvLYf5A.js +0 -231
  89. package/dist/FmMultiselectDialog-BgLyRNeD.js +0 -598
  90. package/dist/ReceiveRequestView-BvYpGKEB.js +0 -2913
  91. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +0 -162
  92. package/dist/app-uBuHtW8m.js +0 -8127
  93. package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +0 -2
  94. package/dist/netsuite-CVg13Lx5.js +0 -5131
  95. package/dist/views/ingredients/helper/calculate-default-cost.d.ts +0 -9
  96. package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +0 -22
@@ -1,10 +1,10 @@
1
- import { defineComponent as G, ref as v, computed as D, watch as se, resolveComponent as S, openBlock as i, createElementBlock as f, createVNode as g, withModifiers as ie, withCtx as B, createElementVNode as n, toDisplayString as s, unref as a, Fragment as E, createTextVNode as N, createBlock as T, createCommentVNode as k, renderList as z, normalizeClass as ce, h as re, onMounted as de, Teleport as ue } from "vue";
1
+ import { defineComponent as G, ref as v, computed as D, watch as se, resolveComponent as S, openBlock as i, createElementBlock as f, createVNode as g, withModifiers as ie, withCtx as L, createElementVNode as n, toDisplayString as s, unref as a, Fragment as $, createTextVNode as N, createBlock as T, createCommentVNode as k, renderList as z, normalizeClass as ce, h as re, onMounted as de, Teleport as ue } from "vue";
2
2
  import { F as me, _ as fe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
3
3
  import { useI18n as J, useCoreStore as ve } from "@feedmepos/mf-common";
4
- import { D as Q, A as V, u as ye } from "./app-_hCz0958.js";
5
- import { _ as pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CaQq9jpc.js";
4
+ import { E as Q, B as V, u as ye } from "./app-CddcvygU.js";
5
+ import { _ as pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js";
6
6
  import { useSnackbar as W, useDialog as ge } from "@feedmepos/ui-library";
7
- import { u as _e } from "./stock-D7gYQHth.js";
7
+ import { u as _e } from "./stock-B6QW-S14.js";
8
8
  const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col gap-16" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col gap-8" }, De = { class: "fm-typo-en-body-md-600" }, we = { class: "flex flex-col gap-8" }, Se = { class: "fm-typo-en-body-md-600" }, Ve = { class: "flex items-center gap-8 mb-8" }, Ae = {
9
9
  key: 2,
10
10
  class: "text-red-500 text-sm mt-2"
@@ -14,13 +14,13 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
14
14
  }, Re = {
15
15
  key: 0,
16
16
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
17
- }, Le = {
17
+ }, Be = {
18
18
  key: 1,
19
19
  class: "flex flex-col gap-8"
20
- }, Be = { class: "fm-typo-en-body-sm-600" }, Te = { class: "flex flex-col gap-4" }, Ie = { key: 0 }, Oe = {
20
+ }, Le = { class: "fm-typo-en-body-sm-600" }, Te = { class: "flex flex-col gap-4" }, Ie = { key: 0 }, Oe = {
21
21
  key: 1,
22
22
  class: "flex flex-col gap-8"
23
- }, $e = { class: "fm-typo-en-body-md-600" }, Ee = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, Ne = { class: "flex items-center justify-between" }, Pe = { class: "fm-typo-en-body-sm-600" }, Ue = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Me = {
23
+ }, Ee = { class: "fm-typo-en-body-md-600" }, $e = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, Ne = { class: "flex items-center justify-between" }, Pe = { class: "fm-typo-en-body-sm-600" }, Ue = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Me = {
24
24
  key: 0,
25
25
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
26
26
  }, He = {
@@ -65,7 +65,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
65
65
  } catch (e) {
66
66
  console.error("Error parsing date from closing ID:", e);
67
67
  }
68
- }), L = D(() => {
68
+ }), B = D(() => {
69
69
  if (!d.value || !c.value) return "";
70
70
  const e = V(d.value), o = c.value;
71
71
  if (e && o) {
@@ -74,7 +74,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
74
74
  return l("inventory.stock.recalculation.error.endDateBeforeOpening");
75
75
  }
76
76
  return "";
77
- }), U = D(() => !!d.value && !!c.value && !L.value), K = D(() => w.value.some(
77
+ }), U = D(() => !!d.value && !!c.value && !B.value), K = D(() => w.value.some(
78
78
  (e) => !e.completedAt && !e.failedReason
79
79
  ));
80
80
  async function M() {
@@ -138,7 +138,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
138
138
  se(
139
139
  [d, c],
140
140
  () => {
141
- d.value && c.value && !L.value ? te() : r.value = [];
141
+ d.value && c.value && !B.value ? te() : r.value = [];
142
142
  },
143
143
  { immediate: !1 }
144
144
  );
@@ -167,7 +167,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
167
167
  }
168
168
  }
169
169
  return (e, o) => {
170
- const b = S("FmButton"), $ = S("FmSelect"), j = S("FmRadio"), le = S("FmDatePicker"), ae = S("FmAlert"), ne = S("FmDialog");
170
+ const b = S("FmButton"), E = S("FmSelect"), j = S("FmRadio"), le = S("FmDatePicker"), ae = S("FmAlert"), ne = S("FmDialog");
171
171
  return i(), f("div", null, [
172
172
  g(b, {
173
173
  "prepend-icon": "info",
@@ -181,10 +181,10 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
181
181
  dismissAway: "",
182
182
  "max-width": "600px"
183
183
  }, {
184
- "dialog-header": B(() => [
184
+ "dialog-header": L(() => [
185
185
  n("div", be, s(a(l)("inventory.stock.recalculation.title")), 1)
186
186
  ]),
187
- "dialog-footer": B(() => [
187
+ "dialog-footer": L(() => [
188
188
  K.value ? (i(), f("div", Ge, [
189
189
  g(b, {
190
190
  variant: "tertiary",
@@ -207,17 +207,17 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
207
207
  }, null, 8, ["disabled", "loading", "label"])
208
208
  ]))
209
209
  ]),
210
- default: B(() => [
210
+ default: L(() => [
211
211
  n("div", he, [
212
212
  n("div", ke, s(a(l)("inventory.stock.recalculation.description")), 1),
213
- K.value ? k("", !0) : (i(), f(E, { key: 0 }, [
213
+ K.value ? k("", !0) : (i(), f($, { key: 0 }, [
214
214
  n("div", xe, [
215
215
  n("p", De, [
216
216
  N(s(a(l)("inventory.stock.recalculation.openingDate")) + " ", 1),
217
217
  o[8] || (o[8] = n("span", { class: "text-fm-color-system-error-300" }, "*", -1))
218
218
  ]),
219
219
  o[9] || (o[9] = n("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mb-4" }, " Showing the last 30 closing records. Select the opening date to start recalculation. ", -1)),
220
- g($, {
220
+ g(E, {
221
221
  modelValue: d.value,
222
222
  "onUpdate:modelValue": o[0] || (o[0] = (t) => d.value = t),
223
223
  items: R.value,
@@ -245,7 +245,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
245
245
  label: a(l)("inventory.stock.recalculation.selectByClosing")
246
246
  }, null, 8, ["modelValue", "label"])
247
247
  ]),
248
- _.value ? (i(), T($, {
248
+ _.value ? (i(), T(E, {
249
249
  key: 1,
250
250
  modelValue: P.value,
251
251
  "onUpdate:modelValue": o[4] || (o[4] = (t) => P.value = t),
@@ -261,22 +261,22 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
261
261
  min: Z.value,
262
262
  disabled: !d.value || u.value
263
263
  }, null, 8, ["modelValue", "placeholder", "min", "disabled"])),
264
- L.value ? (i(), f("div", Ae, s(L.value), 1)) : k("", !0)
264
+ B.value ? (i(), f("div", Ae, s(B.value), 1)) : k("", !0)
265
265
  ]),
266
- d.value && c.value && !L.value ? (i(), T(ae, {
266
+ d.value && c.value && !B.value ? (i(), T(ae, {
267
267
  key: 0,
268
268
  type: "info"
269
269
  }, {
270
- default: B(() => [
270
+ default: L(() => [
271
271
  n("div", Ce, s(a(l)("inventory.stock.recalculation.info")), 1)
272
272
  ]),
273
273
  _: 1
274
274
  })) : k("", !0),
275
275
  r.value.length > 0 ? (i(), f("div", Fe, [
276
- p.value ? (i(), f("div", Re, " Loading affected closing drafts... ")) : (i(), f("div", Le, [
277
- n("div", Be, " Affected closing draft(s): " + s(r.value.length), 1),
276
+ p.value ? (i(), f("div", Re, " Loading affected closing drafts... ")) : (i(), f("div", Be, [
277
+ n("div", Le, " Affected closing draft(s): " + s(r.value.length), 1),
278
278
  n("div", Te, [
279
- (i(!0), f(E, null, z(r.value, (t) => (i(), f("div", {
279
+ (i(!0), f($, null, z(r.value, (t) => (i(), f("div", {
280
280
  key: t._id,
281
281
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
282
282
  }, [
@@ -288,9 +288,9 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
288
288
  ])) : k("", !0)
289
289
  ], 64)),
290
290
  w.value.length > 0 ? (i(), f("div", Oe, [
291
- n("p", $e, s(a(l)("inventory.stock.recalculation.recentRequests")), 1),
292
- n("div", Ee, [
293
- (i(!0), f(E, null, z(w.value, (t) => (i(), f("div", {
291
+ n("p", Ee, s(a(l)("inventory.stock.recalculation.recentRequests")), 1),
292
+ n("div", $e, [
293
+ (i(!0), f($, null, z(w.value, (t) => (i(), f("div", {
294
294
  key: t._id,
295
295
  class: "p-12 border border-fm-color-border-primary rounded-8 flex flex-col gap-4"
296
296
  }, [
@@ -416,7 +416,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
416
416
  title: a(h)("inventory.closing.history.title"),
417
417
  "onClick:action": _
418
418
  }, {
419
- default: B(() => [
419
+ default: L(() => [
420
420
  n("div", Qe, [
421
421
  g(pe, {
422
422
  "change-location": "",
@@ -4,23 +4,24 @@ import { useI18n as W, useCoreStore as de } from "@feedmepos/mf-common";
4
4
  import { useDialog as pe, useDialogChild as Ze, useSnackbar as ce, FmButtonVariant as oe, components as Y, FmAdvancedSort as et, useProxiedModel as tt, useBreakpoints as nt } from "@feedmepos/ui-library";
5
5
  import { defineStore as Ve, storeToRefs as Ue } from "pinia";
6
6
  import { F as G } from "./form-mode.enum-BKiNVH6A.js";
7
- import { a as me } from "./closing-template-y0kvKjaN.js";
8
- import { u as fe, c as Ne, a as ve, n as ot } from "./app-_hCz0958.js";
9
- import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-OqI8IJfw.js";
7
+ import { a as me } from "./closing-template-DxdLqlb1.js";
8
+ import { u as fe, c as Ne, a as ve, n as ot } from "./app-CddcvygU.js";
9
+ import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-CSudzOii.js";
10
10
  import { F as lt } from "./FmDroppableField-J0xUsOTV.js";
11
- import { f as Be, a as le } from "./date2-Ct3mwV73.js";
11
+ import { f as Be, a as le } from "./date2-CVZy20Q_.js";
12
12
  import { D as se, R as z } from "./row-action.enum-BcW_L_nE.js";
13
- import { c as at, F as X, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js";
14
- import { f as rt } from "./format-time-from-id-DOmxxVYQ.js";
15
- import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bc0MVyK_.js";
16
- import { u as ct } from "./netsuite-CVg13Lx5.js";
17
- import { u as mt } from "./duplicate-template-BO8LvPWq.js";
18
- import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CaQq9jpc.js";
19
- import { R as dt, A as pt } from "./rules-9-OxHCjJ.js";
20
- import { u as ft } from "./use-ingredient-select-dialog-B4u8ttOK.js";
21
- import { d as vt } from "./defineDeepModel-DmVg-VGa.js";
22
- import { u as gt } from "./use-template-enabled-locations-2-KQU0hLX3.js";
23
- import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-6C5vAumx.js";
13
+ import { c as at } from "./component-DpCUABT3.js";
14
+ import { f as rt } from "./format-time-from-id-6kt1RMWs.js";
15
+ import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js";
16
+ import { u as ct } from "./netsuite-3LgQ5ztL.js";
17
+ import { u as mt } from "./duplicate-template-DvnZ4BW6.js";
18
+ import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js";
19
+ import { R as dt, A as pt } from "./rules-hQBVd1Mn.js";
20
+ import { u as ft } from "./use-ingredient-select-dialog-DgYSZDN8.js";
21
+ import { d as vt } from "./defineDeepModel-DgRoiQBp.js";
22
+ import { F as X, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
23
+ import { u as gt } from "./use-template-enabled-locations-2-B_aZrMUU.js";
24
+ import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js";
24
25
  import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
25
26
  const ue = Ve(
26
27
  "closingTemplateTable",
@@ -1868,7 +1869,7 @@ const Tn = /* @__PURE__ */ ht(wn, [["render", kn]]), $n = { class: "flex flex-co
1868
1869
  ]);
1869
1870
  };
1870
1871
  }
1871
- }), Nn = { class: "flex-1 flex flex-col gap-8" }, Ln = { class: "flex flex-col" }, Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Hn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, On = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, vo = /* @__PURE__ */ K({
1872
+ }), Nn = { class: "flex-1 flex flex-col gap-8" }, Ln = { class: "flex flex-col" }, Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Hn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, On = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, go = /* @__PURE__ */ K({
1872
1873
  __name: "ClosingTemplateView",
1873
1874
  setup(m) {
1874
1875
  const { t: r } = W(), { createTemplate: l, updateTemplate: d, exportTemplates: t, importTemplates: n } = ie(), { templateDialogProps: f, templateDetailsProps: b } = Ue(ie()), c = fe(), a = pe(), g = ue(), i = Xe(), { breakpoints: h } = nt();
@@ -2054,5 +2055,5 @@ const Tn = /* @__PURE__ */ ht(wn, [["render", kn]]), $n = { class: "flex flex-co
2054
2055
  }
2055
2056
  });
2056
2057
  export {
2057
- vo as default
2058
+ go as default
2058
2059
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as x, computed as f, ref as h, onMounted as _, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as g } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { M as y } from "./app-_hCz0958.js";
3
+ import { M as y } from "./app-CddcvygU.js";
4
4
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
6
6
  key: 0,
@@ -0,0 +1,188 @@
1
+ import { u as B, t as h, T as E, V as R, z as w } from "./app-CddcvygU.js";
2
+ import { u as z } from "./supplier-C-dmFnqw.js";
3
+ import { computed as u, defineComponent as A, mergeModels as q, useModel as D, ref as H, resolveComponent as g, openBlock as y, createElementBlock as O, normalizeStyle as U, createElementVNode as M, createVNode as $, withCtx as x, createBlock as I, createCommentVNode as C, Fragment as W, renderList as Y, unref as N } from "vue";
4
+ import { F as j } from "./FmMultiselectDialog-BviFuAM5.js";
5
+ function _(o) {
6
+ const c = R.safeParse(o);
7
+ if (c.success) return c.data;
8
+ throw new Error("Invalid supplier data");
9
+ }
10
+ function S(o) {
11
+ return {
12
+ _id: o.doc._id,
13
+ internal: o.type,
14
+ contactName: o.doc.profile.name,
15
+ name: o.doc.profile.name ?? "",
16
+ email: o.doc.profile.email,
17
+ phoneNumber: o.doc.profile.phoneNo,
18
+ registrationNumber: o.doc.profile.regNo,
19
+ address: o.doc.profile.address ?? {
20
+ line1: "",
21
+ state: "",
22
+ city: "",
23
+ postcode: "",
24
+ country: ""
25
+ },
26
+ preparationTime: o.preparationTime
27
+ };
28
+ }
29
+ function G(o, c, p = !1, f = !1) {
30
+ const r = z(), n = B();
31
+ n.watchLocation(async () => {
32
+ var m;
33
+ await r.readSuppliers();
34
+ const s = o();
35
+ if ((m = s.supplier) != null && m._id) return;
36
+ const e = f ? r.suppliers[0] : r.businessSuppliers[0], t = (p ? n.locations.filter((a) => a.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
37
+ c({
38
+ ...s,
39
+ supplier: e ? _(e) : t ? S(t) : s.supplier
40
+ });
41
+ });
42
+ const d = u(
43
+ () => {
44
+ var s, e;
45
+ return typeof ((e = (s = o()) == null ? void 0 : s.supplier) == null ? void 0 : e.internal) == "string" ? h.enum.transfer : h.enum.purchase;
46
+ }
47
+ ), v = u({
48
+ get() {
49
+ var s, e;
50
+ return (e = (s = o()) == null ? void 0 : s.supplier) == null ? void 0 : e._id;
51
+ },
52
+ set(s) {
53
+ const e = o() ?? {};
54
+ if (d.value === h.enum.purchase) {
55
+ const k = (f ? r.suppliers : r.businessSuppliers).find((P) => P._id === s);
56
+ c({
57
+ ...e,
58
+ supplier: k ? _(k) : e.supplier
59
+ });
60
+ return;
61
+ }
62
+ const m = (p ? n.allLocations.filter(
63
+ (a) => a.doc._id !== n.currentLocation.doc._id
64
+ ) : n.allLocations).find((a) => a.doc._id === s);
65
+ c({
66
+ ...e,
67
+ supplier: m ? S(m) : e.supplier
68
+ });
69
+ }
70
+ }), b = u(() => r.locationSuppliers.map(_)), L = u(() => r.businessSuppliers.map(_)), F = u(() => {
71
+ const s = [...b.value], e = [...L.value];
72
+ return f ? [...e, ...s] : e;
73
+ }), l = u(() => {
74
+ var i;
75
+ const s = ((i = n._currentLocation) == null ? void 0 : i.type) === E.warehouse;
76
+ return (p ? n.allLocations.filter(
77
+ (t) => t.doc._id !== n.currentLocation.doc._id
78
+ ) : n.allLocations).filter((t) => s || t.acceptRequest).map(S);
79
+ }), V = u(() => {
80
+ if (d.value === h.enum.purchase) {
81
+ const e = b.value.map((t) => ({
82
+ label: t.name,
83
+ value: t._id
84
+ })), i = L.value.map((t) => ({
85
+ label: t.name,
86
+ sublabel: "Business supplier",
87
+ value: t._id
88
+ }));
89
+ return f ? [...e, ...i] : i;
90
+ }
91
+ return l.value.map((e) => ({
92
+ label: e.name,
93
+ sublabel: e.internal ? `${e.internal}` : void 0,
94
+ value: e._id
95
+ }));
96
+ }), T = u(() => {
97
+ var t, m;
98
+ const s = (m = (t = o()) == null ? void 0 : t.supplier) == null ? void 0 : m._id;
99
+ if (d.value === h.enum.purchase) {
100
+ const a = r.suppliers.find((k) => k._id === s);
101
+ return a ? _(a) : null;
102
+ }
103
+ const i = n.allLocations.find((a) => a.doc._id);
104
+ return i ? S(i) : null;
105
+ });
106
+ return {
107
+ transferLocationModel: v,
108
+ transferLocationOptions: V,
109
+ locationOptionsTypePurchase: F,
110
+ locationOptionsTypePurchaseLocationLevel: b,
111
+ locationOptionsTypeTransfer: l,
112
+ selectedLocation: T
113
+ };
114
+ }
115
+ const J = { class: "overflow-y-auto h-full pb-8" }, ee = /* @__PURE__ */ A({
116
+ __name: "FmFilterableMenuOptions",
117
+ props: /* @__PURE__ */ q({
118
+ modelValue: {},
119
+ maxHeight: {},
120
+ width: {},
121
+ handleItemChange: { type: Function },
122
+ items: {},
123
+ options: {}
124
+ }, {
125
+ search: {},
126
+ searchModifiers: {}
127
+ }),
128
+ emits: ["update:search"],
129
+ setup(o) {
130
+ const c = o, p = D(o, "search"), f = u(
131
+ () => new j(c.items, ["label", "sublabel"], {
132
+ caseSensitive: !1,
133
+ sort: !0
134
+ })
135
+ ), r = u(() => f.value.search(p.value)), n = H();
136
+ return console.log({ stickyRef: n }), (d, v) => {
137
+ const b = g("FmButton"), L = g("FmTextField"), F = g("FmMenuItem");
138
+ return y(), O("div", {
139
+ class: "relative",
140
+ style: U({ width: d.width })
141
+ }, [
142
+ M("div", {
143
+ class: "sticky top-0 bg-white mb-8",
144
+ ref_key: "stickyRef",
145
+ ref: n
146
+ }, [
147
+ $(L, {
148
+ modelValue: p.value,
149
+ "onUpdate:modelValue": v[1] || (v[1] = (l) => p.value = l),
150
+ placeholder: "Filter options"
151
+ }, {
152
+ append: x(() => [
153
+ p.value ? (y(), I(b, {
154
+ key: 0,
155
+ variant: "tertiary",
156
+ "prepend-icon": "close",
157
+ onClick: v[0] || (v[0] = (l) => p.value = "")
158
+ })) : C("", !0)
159
+ ]),
160
+ _: 1
161
+ }, 8, ["modelValue"])
162
+ ], 512),
163
+ M("div", J, [
164
+ (y(!0), O(W, null, Y(r.value, (l, V) => (y(), I(F, {
165
+ key: V,
166
+ label: l.label,
167
+ sublabel: l.sublabel,
168
+ "model-value": N(w)(d.modelValue, l.value),
169
+ onClick: () => d.handleItemChange(N(w)(d.modelValue, l.value), l),
170
+ onVnodeMounted: (T) => {
171
+ var s, e;
172
+ return N(w)(d.modelValue, l.value) && ((s = T.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (e = T.el) == null || e.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
173
+ }
174
+ }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
175
+ r.value.length ? C("", !0) : (y(), I(F, {
176
+ key: 0,
177
+ disabled: "",
178
+ label: "No options available"
179
+ }))
180
+ ])
181
+ ], 4);
182
+ };
183
+ }
184
+ });
185
+ export {
186
+ ee as _,
187
+ G as u
188
+ };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as I, computed as g, ref as z, resolveComponent as h, openBlock as n, createElementBlock as y, createVNode as _, withCtx as L, createElementVNode as f, toDisplayString as Y, unref as u, createBlock as p, createCommentVNode as w, Fragment as $, renderList as R, watch as E, mergeModels as O, useModel as C, renderSlot as H, normalizeClass as S } from "vue";
2
2
  import { useCoreStore as W, useI18n as P } from "@feedmepos/mf-common";
3
- import { u as q } from "./app-_hCz0958.js";
4
- import { d as U } from "./date2-Ct3mwV73.js";
3
+ import { u as q } from "./app-CddcvygU.js";
4
+ import { d as U } from "./date2-CVZy20Q_.js";
5
5
  import { useBreakpoints as G } from "@feedmepos/ui-library";
6
6
  import { u as J, F as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
7
- import { b as A } from "./app-uBuHtW8m.js";
7
+ import { D as A } from "./app-DiX-EfV6.js";
8
8
  const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, ee = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, te = { class: "relative" }, oe = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, ne = /* @__PURE__ */ I({
9
9
  __name: "ChangeLocationComponent",
10
10
  props: {
@@ -34,19 +34,19 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
34
34
  a.value = !1, o.selectLocation(o.locations.find((t) => t.dbName === e));
35
35
  }
36
36
  return (e, t) => {
37
- const M = h("FmIcon"), Q = h("FmSearch"), D = h("FmMenuItem"), j = h("FmMenu");
37
+ const D = h("FmIcon"), Q = h("FmSearch"), M = h("FmMenuItem"), j = h("FmMenu");
38
38
  return n(), y("div", X, [
39
39
  _(j, { "close-on-click": !0 }, {
40
40
  "menu-button": L(() => {
41
41
  var r;
42
42
  return [
43
43
  f("div", Z, [
44
- _(M, {
44
+ _(D, {
45
45
  name: e.showBusiness && a.value ? "store" : "storefront",
46
46
  size: "sm"
47
47
  }, null, 8, ["name"]),
48
48
  f("div", ee, Y(e.showBusiness && a.value ? c.value : ((r = u(o)._currentLocation) == null ? void 0 : r.name) ?? u(v)("inventory.common.noLocationSelected")), 1),
49
- _(M, {
49
+ _(D, {
50
50
  name: "expand_more",
51
51
  size: "sm"
52
52
  })
@@ -63,7 +63,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
63
63
  }, null, 8, ["model-value", "placeholder"])
64
64
  ]),
65
65
  f("div", null, [
66
- e.showBusiness ? (n(), p(D, {
66
+ e.showBusiness ? (n(), p(M, {
67
67
  key: 0,
68
68
  "model-value": a.value,
69
69
  label: c.value,
@@ -72,7 +72,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
72
72
  }, null, 8, ["model-value", "label"])) : w("", !0),
73
73
  (n(!0), y($, null, R(l.value, (r) => {
74
74
  var V;
75
- return n(), p(D, {
75
+ return n(), p(M, {
76
76
  key: r.value,
77
77
  "model-value": !a.value && ((V = u(o)._currentLocation) == null ? void 0 : V.dbName) === r.value,
78
78
  label: r.label,
@@ -86,7 +86,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
86
86
  }), 128)),
87
87
  (n(!0), y($, null, R(s.value, (r) => {
88
88
  var V;
89
- return n(), p(D, {
89
+ return n(), p(M, {
90
90
  key: r.value,
91
91
  "model-value": !a.value && ((V = u(o)._currentLocation) == null ? void 0 : V.dbName) === r.value,
92
92
  label: r.label,
@@ -98,7 +98,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
98
98
  }
99
99
  }, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
100
100
  }), 128)),
101
- !e.showBusiness && !l.value.length && !s.value.length ? (n(), p(D, {
101
+ !e.showBusiness && !l.value.length && !s.value.length ? (n(), p(M, {
102
102
  key: 1,
103
103
  disabled: "",
104
104
  label: u(v)("inventory.common.noResultFound")
@@ -260,8 +260,8 @@ const le = { class: "inline-flex rounded-md items-center gap-4 justify-center h-
260
260
  class: "w-full"
261
261
  }, null, 8, ["model-value", "placeholder"])) : w("", !0)
262
262
  ]),
263
- (n(!0), y($, null, R(l.actions, (t, M) => (n(), p(e, {
264
- key: M,
263
+ (n(!0), y($, null, R(l.actions, (t, D) => (n(), p(e, {
264
+ key: D,
265
265
  variant: "tertiary",
266
266
  "prepend-icon": t.icon,
267
267
  onClick: t.onClick