@feedmepos/mf-inventory-portal 1.2.53 → 1.2.55-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 (98) hide show
  1. package/dist/{App-BsfuPPE8.js → App-Dr4bSbWV.js} +75 -70
  2. package/dist/{ApprovalView-DpYZ90XA.js → ApprovalView-BrUi6das.js} +34 -34
  3. package/dist/{BindingsDialog-BV-jLs8M.js → BindingsDialog-DtsEDaFx.js} +2 -2
  4. package/dist/{BindingsPicker-B1hTzIMf.js → BindingsPicker-BDSimsxV.js} +2 -2
  5. package/dist/{BindingsTable-LQX4W3ew.js → BindingsTable-ArpmNkQm.js} +4 -4
  6. package/dist/{ClosingDraftView-BmeO2Js_.js → ClosingDraftView-D7qz1YGt.js} +19 -18
  7. package/dist/{ClosingHistoryView--gDKiBmN.js → ClosingHistoryView-ND9smQRb.js} +27 -27
  8. package/dist/{ClosingTemplateView-CeH6R1_D.js → ClosingTemplateView--1tzOPIu.js} +18 -17
  9. package/dist/{DeliveryOrderPrintPreview-uf9jap78.js → DeliveryOrderPrintPreview-Ctv1Qp_a.js} +1 -1
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lA-iPoWZ.js +188 -0
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-mZtCQnzs.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UJewH4Il.js} +12 -12
  12. package/dist/FmMultiselectDialog-Br5_D-b5.js +618 -0
  13. package/dist/{FmMultiselectDialog-B9qB5-LO.js → FmMultiselectDialog-BrJlUxMZ.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-27q4Oj88.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BvIdnKjl.js} +3 -3
  15. package/dist/{ImportView-D4k9msYw.js → ImportView-fEnHrPWZ.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BYoVIP2q.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVELkyVY.js} +1 -1
  17. package/dist/{IngredientGroupView-C20V_hvY.js → IngredientGroupView-B1owkM3C.js} +108 -107
  18. package/dist/{IngredientsView-DzsB-qrK.js → IngredientsView-BTKXnnw5.js} +126 -125
  19. package/dist/{IntegrationView-DFSUowj3.js → IntegrationView-C2jarXxh.js} +80 -80
  20. package/dist/{InventoryBindingForm-Dlnx6-L7.js → InventoryBindingForm-Gq8XfKbC.js} +1 -1
  21. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-BVkTXQvA.js +403 -0
  22. package/dist/{InventoryBindingSummary-CgpN2hF0.js → InventoryBindingSummary-CqQu65hi.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-tv-itLDe.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DIukT297.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-3BHMqt41.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D2aU4Ij2.js} +2 -2
  25. package/dist/{PublishView-BtMTxpSh.js → PublishView-CBYg-KST.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-DGCQUgF5.js → PurchaseOrderPrintPreview-C_jrGksW.js} +1 -1
  27. package/dist/ReceiveRequestView-iawt5dnN.js +2915 -0
  28. package/dist/{RecipeView-CPnCVxz2.js → RecipeView-Dv5BTxLT.js} +83 -82
  29. package/dist/{StockView-DYHl_yAy.js → StockView-oSkKCORB.js} +113 -112
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Desv7VmF.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BJ3gnpTq.js} +1 -1
  31. package/dist/{SupplierView-BtKlc0mc.js → SupplierView-tipIYgX7.js} +28 -27
  32. package/dist/SurchargeView-CW1lsyEC.js +460 -0
  33. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-C2fsq7Kj.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-B3FZqxjr.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-C6utSuyH.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D86rTw7c.js} +17 -17
  36. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BMhCFnlM.js → TransferDetails.vue_vue_type_script_setup_true_lang-cGzs-dHw.js} +15 -15
  37. package/dist/{TransferTemplateView-D0_xhGDZ.js → TransferTemplateView-dSJSgnil.js} +82 -81
  38. package/dist/{UnitView-BAX2GeM3.js → UnitView-VHi5WMrF.js} +20 -19
  39. package/dist/{WarehouseView-CccEHOZw.js → WarehouseView-DLZaux-w.js} +21 -20
  40. package/dist/{WastageTemplateView-CMNtM1FX.js → WastageTemplateView-KyvwCkdu.js} +67 -66
  41. package/dist/api/netsuite.d.ts +8 -0
  42. package/dist/api/stock-estimate.d.ts +1 -0
  43. package/dist/api/surcharge.d.ts +31 -0
  44. package/dist/{app-D_U5i9il.js → app-Cq2T5z21.js} +4511 -4405
  45. package/dist/app-DiX-EfV6.js +8167 -0
  46. package/dist/app.d.ts +52 -0
  47. package/dist/app.js +1 -1
  48. package/dist/{closing-template-Bl0MMVQ3.js → closing-template-TwdeC6qT.js} +1 -1
  49. package/dist/component-DpCUABT3.js +82 -0
  50. package/dist/components/FmInventoryTableToolbar.vue.d.ts +8 -0
  51. package/dist/components/FmMultiselectDialogProps.d.ts +5 -0
  52. package/dist/{date2-bUTaCyeL.js → date2-Dunl1OWI.js} +1 -1
  53. package/dist/{dayjs.min-CsC_tYI1.js → dayjs.min-D_81k3gd.js} +26 -26
  54. package/dist/{decimal-DLO8y7yi.js → decimal-B9DLzi9Y.js} +2 -2
  55. package/dist/{defineDeepModel-Qi54tGyL.js → defineDeepModel-B15nBS96.js} +1 -1
  56. package/dist/{duplicate-template-CMQSNAkP.js → duplicate-template-BSxFsv2u.js} +1 -1
  57. package/dist/{feature-C3Qi_YOQ.js → feature-KwyjpPTq.js} +8956 -6221
  58. package/dist/{format-time-from-id-CiF32HPN.js → format-time-from-id-BfL9V23H.js} +1 -1
  59. package/dist/{format-unit-display-CWaFU32C.js → format-unit-display-BfSLhflE.js} +11 -11
  60. package/dist/{import-export.helper-CmZ04MNQ.js → import-export.helper-TUsgMxew.js} +5 -5
  61. package/dist/{index-DWbh3c13.js → index-C2H5HeFF.js} +1 -1
  62. package/dist/{index-BV6lZh0u.js → index-CXtJlhZZ.js} +3 -3
  63. package/dist/{index-v0HfyjdJ.js → index-DTnKa-sF.js} +1 -1
  64. package/dist/{lodash-l5GzTb80.js → lodash-DRR2nS2T.js} +1 -1
  65. package/dist/{netsuite-DlEPiEX1.js → netsuite-CAFiEoX5.js} +2034 -1687
  66. package/dist/{purchase-order-template-C-MSW7Bo.js → purchase-order-template-CSJXceBK.js} +1 -1
  67. package/dist/router/name.d.ts +1 -0
  68. package/dist/{rules-BF70lxi7.js → rules-BdFLL1aa.js} +9 -9
  69. package/dist/{stock-CU4n1u6e.js → stock-B80FaSS2.js} +1 -1
  70. package/dist/{stock-FcnkYSxh.js → stock-CgsgvX9b.js} +3 -3
  71. package/dist/stores/feature.d.ts +4 -0
  72. package/dist/stores/integration/netsuite.d.ts +5 -0
  73. package/dist/stores/surcharge.d.ts +18 -0
  74. package/dist/style.css +1 -1
  75. package/dist/{supplier-BV8FzK18.js → supplier-BsycjnD1.js} +2 -2
  76. package/dist/surcharge-BH6kETCu.js +71 -0
  77. package/dist/tsconfig.app.tsbuildinfo +1 -1
  78. package/dist/{use-ingredient-select-dialog-FCv8J6-r.js → use-ingredient-select-dialog-B2cFOc3t.js} +2 -2
  79. package/dist/{use-inventory-binding-dialog-UNAoymW3.js → use-inventory-binding-dialog-CKUtJDHW.js} +2 -2
  80. package/dist/{use-template-enabled-locations-2-6TzeRZSX.js → use-template-enabled-locations-2-tPL4lEZ_.js} +2 -2
  81. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +1 -0
  82. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -0
  83. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
  84. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  85. package/dist/views/surcharge/SurchargeView.vue.d.ts +2 -0
  86. package/dist/{vue-i18n-W40GsXxp.js → vue-i18n-BhCaMx-9.js} +213 -213
  87. package/dist/{xlsx-BD3jzYqf.js → xlsx-DJaY2xSF.js} +398 -398
  88. package/dist/{xlsx.util-DA4HjNKa.js → xlsx.util-CZq_uKdw.js} +1 -1
  89. package/package.json +3 -4
  90. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BPPKetxg.js +0 -231
  91. package/dist/FmMultiselectDialog-C9pVEMlL.js +0 -598
  92. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DiKt7AYo.js +0 -375
  93. package/dist/ReceiveRequestView-AY3n7b7j.js +0 -2923
  94. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +0 -162
  95. package/dist/app-uBuHtW8m.js +0 -8127
  96. package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +0 -2
  97. package/dist/views/ingredients/helper/calculate-default-cost.d.ts +0 -9
  98. 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-D_U5i9il.js";
5
- import { _ as pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-mZtCQnzs.js";
4
+ import { E as Q, B as V, u as ye } from "./app-Cq2T5z21.js";
5
+ import { _ as pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UJewH4Il.js";
6
6
  import { useSnackbar as W, useDialog as ge } from "@feedmepos/ui-library";
7
- import { u as _e } from "./stock-CU4n1u6e.js";
7
+ import { u as _e } from "./stock-B80FaSS2.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-Bl0MMVQ3.js";
8
- import { u as fe, c as Ne, a as ve, n as ot } from "./app-D_U5i9il.js";
9
- import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-DA4HjNKa.js";
7
+ import { a as me } from "./closing-template-TwdeC6qT.js";
8
+ import { u as fe, c as Ne, a as ve, n as ot } from "./app-Cq2T5z21.js";
9
+ import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-CZq_uKdw.js";
10
10
  import { F as lt } from "./FmDroppableField-J0xUsOTV.js";
11
- import { f as Be, a as le } from "./date2-bUTaCyeL.js";
11
+ import { f as Be, a as le } from "./date2-Dunl1OWI.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-CiF32HPN.js";
15
- import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C6utSuyH.js";
16
- import { u as ct } from "./netsuite-DlEPiEX1.js";
17
- import { u as mt } from "./duplicate-template-CMQSNAkP.js";
18
- import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-mZtCQnzs.js";
19
- import { R as dt, A as pt } from "./rules-BF70lxi7.js";
20
- import { u as ft } from "./use-ingredient-select-dialog-FCv8J6-r.js";
21
- import { d as vt } from "./defineDeepModel-Qi54tGyL.js";
22
- import { u as gt } from "./use-template-enabled-locations-2-6TzeRZSX.js";
23
- import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-C2fsq7Kj.js";
13
+ import { c as at } from "./component-DpCUABT3.js";
14
+ import { f as rt } from "./format-time-from-id-BfL9V23H.js";
15
+ import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D86rTw7c.js";
16
+ import { u as ct } from "./netsuite-CAFiEoX5.js";
17
+ import { u as mt } from "./duplicate-template-BSxFsv2u.js";
18
+ import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-UJewH4Il.js";
19
+ import { R as dt, A as pt } from "./rules-BdFLL1aa.js";
20
+ import { u as ft } from "./use-ingredient-select-dialog-B2cFOc3t.js";
21
+ import { d as vt } from "./defineDeepModel-B15nBS96.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-tPL4lEZ_.js";
24
+ import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-B3FZqxjr.js";
24
25
  import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
25
26
  const ue = Ve(
26
27
  "closingTemplateTable",
@@ -1881,7 +1882,7 @@ const Tn = /* @__PURE__ */ ht(wn, [["render", kn]]), $n = { class: "flex flex-co
1881
1882
  ]);
1882
1883
  };
1883
1884
  }
1884
- }), 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({
1885
+ }), 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({
1885
1886
  __name: "ClosingTemplateView",
1886
1887
  setup(m) {
1887
1888
  const { t: r } = W(), { createTemplate: a, updateTemplate: u, exportTemplates: t, importTemplates: n } = ie(), { templateDialogProps: p, templateDetailsProps: b } = Ue(ie()), c = fe(), l = pe(), g = ue(), i = Xe(), { breakpoints: h } = nt();
@@ -2067,5 +2068,5 @@ const Tn = /* @__PURE__ */ ht(wn, [["render", kn]]), $n = { class: "flex flex-co
2067
2068
  }
2068
2069
  });
2069
2070
  export {
2070
- vo as default
2071
+ go as default
2071
2072
  };
@@ -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-D_U5i9il.js";
3
+ import { M as y } from "./app-Cq2T5z21.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-Cq2T5z21.js";
2
+ import { u as z } from "./supplier-BsycjnD1.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-Br5_D-b5.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-D_U5i9il.js";
4
- import { d as U } from "./date2-bUTaCyeL.js";
3
+ import { u as q } from "./app-Cq2T5z21.js";
4
+ import { d as U } from "./date2-Dunl1OWI.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