@feedmepos/mf-inventory-portal 1.5.7 → 1.5.9-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 (93) hide show
  1. package/dist/{App-DE6l-D4S.js → App-CRKhmCwm.js} +4 -4
  2. package/dist/{ApprovalView-rgqaceRG.js → ApprovalView-BdvNZ3Mi.js} +7 -7
  3. package/dist/{BindingsDialog-CaoCfpO5.js → BindingsDialog-UieCgCDS.js} +13 -13
  4. package/dist/{BindingsPicker-6ejmOZGg.js → BindingsPicker-Bo7xvsut.js} +2 -2
  5. package/dist/{BindingsTable-BYv0445O.js → BindingsTable-CUaQzSBn.js} +3 -3
  6. package/dist/ClosingDraftView-QgRaat2h.js +3335 -0
  7. package/dist/{ClosingHistoryView-FKmF3_d4.js → ClosingHistoryView-C_qw6v7h.js} +469 -459
  8. package/dist/{ClosingTemplateView-DZOFAxSC.js → ClosingTemplateView-BAsHjB3H.js} +14 -14
  9. package/dist/{DefaultView-Bmw-cwMP.js → DefaultView-CaWfkTXn.js} +2 -2
  10. package/dist/{DeliveryOrderPrintPreview-BAnulm_W.js → DeliveryOrderPrintPreview-Dv2fXveZ.js} +2 -2
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DnRZ48Us.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BFzPTyKA.js} +22 -22
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-pg3ieo_g.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Y_AhN6qb.js} +2 -2
  13. package/dist/{FmMultiselectDialog-BFhyKzpc.js → FmMultiselectDialog-DT28lMdK.js} +1 -1
  14. package/dist/{FmMultiselectDialog-BinKfvTl.js → FmMultiselectDialog-e4dbq-bB.js} +2 -2
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BgA6574c.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CO2Uom0f.js} +111 -110
  16. package/dist/{ImportView-CAM68Sd4.js → ImportView-Brvxm1EN.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CnO7Q7GW.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DSqbdU3A.js} +1 -1
  18. package/dist/{IngredientGroupView-DoJ7F14c.js → IngredientGroupView-CqqD1_5X.js} +5 -5
  19. package/dist/{IngredientsView-DAsMEwld.js → IngredientsView-BmOSo8oo.js} +17 -17
  20. package/dist/{IntegrationExplorerView-DclCC5r6.js → IntegrationExplorerView-CZH3568k.js} +5 -5
  21. package/dist/{IntegrationView-BXiSzB-N.js → IntegrationView-CJv9Ps4v.js} +13 -13
  22. package/dist/{InventoryBindingForm-CC76n6uE.js → InventoryBindingForm-BZVAC4x1.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-gP24UWKI.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BPl9weMj.js} +5 -5
  24. package/dist/{InventoryBindingSummary-BoYnVpYe.js → InventoryBindingSummary-C7Xl5Fd7.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C5mzh-X5.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CyjRq3A-.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CefSaFhj.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DIoYx-x4.js} +1 -1
  27. package/dist/{PublishView-BIPlQPqV.js → PublishView-DHK3MPsP.js} +3 -3
  28. package/dist/{PurchaseOrderPrintPreview-ChahKz9N.js → PurchaseOrderPrintPreview-DLg01buw.js} +2 -2
  29. package/dist/{ReceiveRequestView-BRPknQ4J.js → ReceiveRequestView-B1n42VJ5.js} +569 -570
  30. package/dist/{RecipeView-ifmP3yur.js → RecipeView-BOEfiTuN.js} +19 -19
  31. package/dist/{SettingsView-CHhME9fm.js → SettingsView-Bqx3woVD.js} +4 -4
  32. package/dist/{StockView-BYW7kSMB.js → StockView-UjWpz_eL.js} +775 -765
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-PX2cEVZi.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BxyFAK_X.js} +1 -1
  34. package/dist/{SupplierView-ChRNEURO.js → SupplierView-_zK2xohX.js} +12 -12
  35. package/dist/{SurchargeView-pRvo-1Pc.js → SurchargeView-BtUebfil.js} +6 -6
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-D1LOA32J.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DF3seGmT.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DgzLsKyB.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bpo1u5g2.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-pRcSERam.js → TransferDetails.vue_vue_type_script_setup_true_lang-B_kdNBCT.js} +20 -20
  39. package/dist/{TransferTemplateView-CeJn9pkT.js → TransferTemplateView-OlHTVdCG.js} +18 -18
  40. package/dist/{UnitCostHistoryView-GBZ7kLM2.js → UnitCostHistoryView-BIvYaMio.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CBRziJ6W.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DqTis1lE.js} +4 -4
  42. package/dist/{UnitView-D7qhcFMT.js → UnitView-DAtDiu3f.js} +9 -9
  43. package/dist/{WarehouseView-D1peFY-b.js → WarehouseView-B3mXQpoO.js} +70 -69
  44. package/dist/{WastageTemplateView-Cp6j79--.js → WastageTemplateView-BOoybeCb.js} +14 -14
  45. package/dist/api/error.d.ts +6 -3
  46. package/dist/{app-BYsl6Q0k.js → app-cwueji6m.js} +9477 -9400
  47. package/dist/app.d.ts +8 -0
  48. package/dist/app.js +4 -4
  49. package/dist/{closing-template-BqDEseEH.js → closing-template-CobmAqhD.js} +1 -1
  50. package/dist/{date2-ClEr4Hh1.js → date2-D_-j6u1x.js} +1 -1
  51. package/dist/{dayjs.min-D7rJ5XFt.js → dayjs.min-iDeAwg0n.js} +1 -1
  52. package/dist/{decimal-C-BtLmxu.js → decimal-DcHr_uvI.js} +2 -2
  53. package/dist/{defineDeepModel-CAsKxO2x.js → defineDeepModel-BhC1n6G-.js} +1 -1
  54. package/dist/{duplicate-template-BaLtrzTE.js → duplicate-template-Y9iggS9l.js} +1 -1
  55. package/dist/{export-CK6V100y.js → export-CAHG4EbP.js} +2 -2
  56. package/dist/{feature-C1s_dkeb.js → feature-BhK4XmmS.js} +86 -86
  57. package/dist/{format-time-from-id-BE25JynL.js → format-time-from-id-2IFiQNTX.js} +1 -1
  58. package/dist/{format-unit-display-6rk6Cvop.js → format-unit-display-CTYZvXcZ.js} +11 -11
  59. package/dist/helper/uom-rules.d.ts +12 -0
  60. package/dist/{import-export.helper-Vg3CSgTk.js → import-export.helper-DtWH9atw.js} +6 -6
  61. package/dist/{index-DkhSxroI.js → index-Ckhb0CMq.js} +1 -1
  62. package/dist/{index-Bw4sH5QZ.js → index-dfAAA8HA.js} +3 -3
  63. package/dist/{index-Ck1QT6n3.js → index-iGt85nBk.js} +1 -1
  64. package/dist/{inventory-core-dart.default-B2h72dXO.js → inventory-core-dart.default-R1tOn2RS.js} +372 -237
  65. package/dist/{lz-string-DL1izNj1.js → lz-string-DUT6tVSg.js} +1 -1
  66. package/dist/{menu-usage-module-BiCPifRX.js → menu-usage-module-D7cxkbEk.js} +11 -12
  67. package/dist/netsuite-BiF6Fo7G.js +9381 -0
  68. package/dist/{number-CG4iJNxT.js → number-Cqsx9s88.js} +3 -3
  69. package/dist/{predefined-templates-CBK89oKb.js → predefined-templates-CHExzSjx.js} +1 -1
  70. package/dist/{purchase-order-template-C2U5EzAN.js → purchase-order-template-_FfLY2u1.js} +1 -1
  71. package/dist/{recalculationUtils-C6ZDHlwr.js → recalculationUtils-KdVSBljW.js} +1 -1
  72. package/dist/{rules-BPgfm-C7.js → rules-DB26S6qs.js} +2 -2
  73. package/dist/{stock-uaUmLATC.js → stock-n6h8HkNk.js} +1 -1
  74. package/dist/{supplier-CAYiOj5U.js → supplier-6K9Cbfcf.js} +2 -2
  75. package/dist/{surcharge-BbOjhav8.js → surcharge-BV03ItuR.js} +1 -1
  76. package/dist/tsconfig.app.tsbuildinfo +1 -1
  77. package/dist/uom-rules-CzTxRiqL.js +21 -0
  78. package/dist/{use-ingredient-select-dialog-CqobC3-_.js → use-ingredient-select-dialog-Bs_4jjVy.js} +2 -2
  79. package/dist/{use-inventory-binding-dialog-BrAubA9c.js → use-inventory-binding-dialog-CgtoqJ2D.js} +2 -2
  80. package/dist/{use-template-enabled-locations-DtLAf3Ok.js → use-template-enabled-locations-C6fQtFF0.js} +2 -2
  81. package/dist/use-transfer-locations-DI48leYd.js +115 -0
  82. package/dist/{useHrmPermission-BjKDMF1Q.js → useHrmPermission-Co1Jgyvq.js} +1 -1
  83. package/dist/{useNavigationMenu-B_i92K8y.js → useNavigationMenu-JenXwvSv.js} +2 -2
  84. package/dist/{useSseClient-CPZj8tzu.js → useSseClient-gIA58rTS.js} +3 -3
  85. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +11 -2
  86. package/dist/{vue-i18n-DFNpQ_4n.js → vue-i18n-C3I0upD3.js} +331 -331
  87. package/dist/{xlsx-DuvGVByu.js → xlsx-4BYDayT5.js} +184 -184
  88. package/dist/{xlsx.util-NVQktAdj.js → xlsx.util-CD_xD6ZX.js} +3 -3
  89. package/package.json +3 -3
  90. package/dist/ClosingDraftView-BNjmxJNt.js +0 -3202
  91. package/dist/lodash-PCSvaIXr.js +0 -3678
  92. package/dist/netsuite-DC8EHD9N.js +0 -5708
  93. package/dist/use-transfer-locations-DK3Cx3XD.js +0 -116
@@ -1,21 +1,21 @@
1
- import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as q, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as I, createTextVNode as Me, renderSlot as De, createBlock as z, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Re } from "vue";
2
- import { m as Pe, n as Ue, o as Ee, c as G, p as Ne, S as Le, u as Ie } from "./app-BYsl6Q0k.js";
3
- import { useCoreStore as Fe, useI18n as O } from "@feedmepos/mf-common";
1
+ import { ref as D, defineComponent as O, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as q, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as I, createTextVNode as Me, renderSlot as De, createBlock as j, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Re } from "vue";
2
+ import { m as Pe, n as Ue, o as Ee, c as z, p as Ne, S as Le, u as Ie } from "./app-cwueji6m.js";
3
+ import { useCoreStore as Ce, useI18n as G } from "@feedmepos/mf-common";
4
4
  import { D as _e, R as J } from "./row-action.enum-DQ9bJ_uv.js";
5
5
  import { c as Be } from "./component-kqxARxvM.js";
6
6
  import { u as qe, _ as ze } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
7
7
  import { F as U } from "./form-mode.enum-BKiNVH6A.js";
8
- import { useDialogChild as je, useDialog as Ce, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Oe } from "@feedmepos/ui-library";
9
- import { R as L } from "./rules-BPgfm-C7.js";
8
+ import { useDialogChild as je, useDialog as Fe, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Oe } from "@feedmepos/ui-library";
9
+ import { R as L } from "./rules-DB26S6qs.js";
10
10
  import { c as se, u as re } from "./googlemap-BGi_aKUA.js";
11
- import { d as Ge } from "./index-Ck1QT6n3.js";
11
+ import { d as Ge } from "./index-iGt85nBk.js";
12
12
  import { _ as Ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  import { _ as He } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
14
- import { u as Ye } from "./feature-C1s_dkeb.js";
14
+ import { u as Ye } from "./feature-BhK4XmmS.js";
15
15
  import { _ as Ze, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
16
- import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-pg3ieo_g.js";
16
+ import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Y_AhN6qb.js";
17
17
  const X = Pe((v, h) => {
18
- const b = Fe();
18
+ const b = Ce();
19
19
  return {
20
20
  async readWarehouses() {
21
21
  var i;
@@ -84,15 +84,15 @@ function xe() {
84
84
  function Xe(v, h) {
85
85
  function b(r, l) {
86
86
  if (r === J.Edit) {
87
- v(G(l));
87
+ v(z(l));
88
88
  return;
89
89
  }
90
90
  if (r === J.Delete) {
91
- h(G(l));
91
+ h(z(l));
92
92
  return;
93
93
  }
94
94
  }
95
- const { t: a } = O(), n = [
95
+ const { t: a } = G(), n = [
96
96
  {
97
97
  accessorKey: "warehouse",
98
98
  header: () => a("inventory.warehouse.table.warehouse"),
@@ -153,7 +153,7 @@ function Xe(v, h) {
153
153
  }
154
154
  return { columnDefs: n, formatRowData: i };
155
155
  }
156
- const eo = /* @__PURE__ */ j({
156
+ const eo = /* @__PURE__ */ O({
157
157
  __name: "GoogleMap",
158
158
  props: {
159
159
  markers: {
@@ -197,12 +197,12 @@ const eo = /* @__PURE__ */ j({
197
197
  const p = i.maps.event.addListener(s, y, _);
198
198
  d.push(p);
199
199
  }
200
- const C = D([]);
200
+ const F = D([]);
201
201
  function T(s, y, _) {
202
202
  w(s, y, _);
203
203
  }
204
204
  function x(s) {
205
- P(null), C.value = s.map((y, _) => {
205
+ P(null), F.value = s.map((y, _) => {
206
206
  const p = new i.maps.Marker({
207
207
  position: y,
208
208
  draggable: !0
@@ -213,10 +213,10 @@ const eo = /* @__PURE__ */ j({
213
213
  }), P(l.value);
214
214
  }
215
215
  function P(s) {
216
- C.value.map((y) => we(y).setMap(s));
216
+ F.value.map((y) => we(y).setMap(s));
217
217
  }
218
218
  const c = D([]);
219
- function F(s, y, _) {
219
+ function C(s, y, _) {
220
220
  w(s, y, _);
221
221
  }
222
222
  function S(s, y, _) {
@@ -248,7 +248,7 @@ const eo = /* @__PURE__ */ j({
248
248
  fillOpacity: 0.5,
249
249
  editable: a.editable
250
250
  });
251
- return F(p, "contextmenu", (R) => B(_, R)), p.getPaths().forEach((R) => {
251
+ return C(p, "contextmenu", (R) => B(_, R)), p.getPaths().forEach((R) => {
252
252
  S(R, "insert_at", () => f(_)), S(R, "set_at", () => f(_));
253
253
  }), p;
254
254
  }), o(l.value);
@@ -279,7 +279,7 @@ const eo = /* @__PURE__ */ j({
279
279
  class: "map app-map"
280
280
  }, null, 512));
281
281
  }
282
- }), oo = { class: "flex flex-col gap-24" }, to = { class: "flex flex-col gap-8" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ro = { class: "fm-typo-en-body-lg-600" }, no = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, uo = { class: "fm-typo-en-body-lg-600" }, io = /* @__PURE__ */ j({
282
+ }), oo = { class: "flex flex-col gap-24" }, to = { class: "flex flex-col gap-8" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ro = { class: "fm-typo-en-body-lg-600" }, no = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, uo = { class: "fm-typo-en-body-lg-600" }, io = /* @__PURE__ */ O({
283
283
  __name: "CoordinateDialog",
284
284
  props: {
285
285
  address: {
@@ -292,8 +292,8 @@ const eo = /* @__PURE__ */ j({
292
292
  }
293
293
  },
294
294
  setup(v) {
295
- const h = v, b = je(), a = re(), { t: n } = O(), i = Se(
296
- G(h.coordinate ? h.coordinate : se.jb)
295
+ const h = v, b = je(), a = re(), { t: n } = G(), i = Se(
296
+ z(h.coordinate ? h.coordinate : se.jb)
297
297
  ), r = D(""), l = Ge(async function() {
298
298
  r.value = await a.getFirstMatchingAddress(
299
299
  i.lat,
@@ -301,13 +301,13 @@ const eo = /* @__PURE__ */ j({
301
301
  );
302
302
  }, 1e3);
303
303
  te(() => {
304
- b.emitData(G(i)), l();
304
+ b.emitData(z(i)), l();
305
305
  });
306
306
  function d({ position: w }) {
307
- i.lat = w.lat, i.lng = w.lng, b.emitData(G(i)), l();
307
+ i.lat = w.lat, i.lng = w.lng, b.emitData(z(i)), l();
308
308
  }
309
309
  const M = D();
310
- return (w, C) => (W(), q("div", oo, [
310
+ return (w, F) => (W(), q("div", oo, [
311
311
  g("div", to, [
312
312
  g("div", null, [
313
313
  g("span", ao, E(u(n)("inventory.formField.coordinate.address")) + ": ", 1),
@@ -330,7 +330,7 @@ const eo = /* @__PURE__ */ j({
330
330
  center: i,
331
331
  markers: [i],
332
332
  onMarkerChange: d,
333
- onMapClick: C[0] || (C[0] = (T) => d({ position: T }))
333
+ onMapClick: F[0] || (F[0] = (T) => d({ position: T }))
334
334
  }, null, 8, ["center", "markers"])
335
335
  ]));
336
336
  }
@@ -344,7 +344,7 @@ function Ae([v, h]) {
344
344
  function po({ lng: v, lat: h }) {
345
345
  return [v, h];
346
346
  }
347
- const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1 }, vo = /* @__PURE__ */ j({
347
+ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1 }, vo = /* @__PURE__ */ O({
348
348
  __name: "FmCoordinateInput",
349
349
  props: {
350
350
  address: {},
@@ -361,14 +361,14 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
361
361
  },
362
362
  emits: ["update:modelValue"],
363
363
  setup(v, { emit: h }) {
364
- const b = v, a = h, n = re(), i = Ce(), r = le(), l = oe(b, "modelValue"), d = D(!1), { t: M } = O();
364
+ const b = v, a = h, n = re(), i = Fe(), r = le(), l = oe(b, "modelValue"), d = D(!1), { t: M } = G();
365
365
  function w(c) {
366
366
  if (c != null && c[0] && (c != null && c[1]))
367
367
  return M("inventory.formField.coordinate.longLat", [c[0].toFixed(3), c[1].toFixed(3)]);
368
368
  }
369
- async function C(c) {
369
+ async function F(c) {
370
370
  var f, A;
371
- const F = b.modelValue, S = !F && ((f = b.address) != null && f.formatted) ? await n.getFirstMatchingCoordinate(b.address.formatted) : null, m = F ? Ae(F) : S ? Ae(S) : se.jb;
371
+ const C = b.modelValue, S = !C && ((f = b.address) != null && f.formatted) ? await n.getFirstMatchingCoordinate(b.address.formatted) : null, m = C ? Ae(C) : S ? Ae(S) : se.jb;
372
372
  i.open({
373
373
  title: b.dialogTitle ?? b.label ?? M("inventory.formField.coordinate.pinLocation"),
374
374
  closeButton: !0,
@@ -398,13 +398,13 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
398
398
  });
399
399
  return;
400
400
  }
401
- C(T);
401
+ F(T);
402
402
  }
403
403
  }
404
404
  function P() {
405
405
  a("update:modelValue", null);
406
406
  }
407
- return (c, F) => {
407
+ return (c, C) => {
408
408
  const S = N("FmField"), m = N("FmButton"), f = N("FmFormGroup");
409
409
  return W(), q("div", mo, [
410
410
  k(f, {
@@ -419,7 +419,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
419
419
  focused: d.value,
420
420
  "helper-text": c.helperText,
421
421
  "helper-state": c.helperState,
422
- onClick: F[0] || (F[0] = (A) => x())
422
+ onClick: C[0] || (C[0] = (A) => x())
423
423
  }, Te({
424
424
  default: I(({ invalid: A }) => [
425
425
  c.modelValue && c.modelValue[0] && c.modelValue[1] ? (W(), q("div", fo, [
@@ -450,11 +450,11 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
450
450
  key: "0"
451
451
  } : void 0
452
452
  ]), 1032, ["model-value", "label", "disabled", "required", "optional", "info", "rules", "focused", "helper-text", "helper-state"]),
453
- c.modelValue && c.modelValue[0] && c.modelValue[1] ? (W(), z(m, {
453
+ c.modelValue && c.modelValue[0] && c.modelValue[1] ? (W(), j(m, {
454
454
  key: 0,
455
455
  "prepend-icon": "delete",
456
456
  variant: "tertiary",
457
- onClick: F[1] || (F[1] = (A) => P())
457
+ onClick: C[1] || (C[1] = (A) => P())
458
458
  })) : ae("", !0)
459
459
  ]);
460
460
  };
@@ -462,7 +462,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
462
462
  }), ho = { class: "flex flex-col gap-40" }, bo = { class: "flex flex-col gap-16" }, go = { class: "flex flex-col gap-8" }, wo = { class: "fm-typo-en-title-sm-600" }, Vo = { class: "grid grid-cols-2 gap-24" }, _o = { class: "flex flex-col gap-8" }, ko = { class: "fm-typo-en-title-sm-600" }, Ao = {
463
463
  key: 0,
464
464
  class: "flex flex-col gap-8"
465
- }, Mo = { class: "fm-typo-en-title-sm-600" }, Fo = { class: "flex flex-col gap-8" }, Co = { class: "fm-typo-en-title-sm-600" }, xo = { class: "flex flex-col gap-16" }, $o = /* @__PURE__ */ j({
465
+ }, Mo = { class: "fm-typo-en-title-sm-600" }, Co = { class: "flex flex-col gap-8" }, Fo = { class: "fm-typo-en-title-sm-600" }, xo = { class: "flex flex-col gap-16" }, $o = /* @__PURE__ */ O({
466
466
  __name: "WarehouseForm",
467
467
  props: {
468
468
  modelValue: {},
@@ -470,7 +470,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
470
470
  },
471
471
  emits: ["update:modelValue", "validation-success"],
472
472
  setup(v, { expose: h, emit: b }) {
473
- const a = v, n = b, i = Ye(), { t: r } = O(), l = $({
473
+ const a = v, n = b, i = Ye(), { t: r } = G(), l = $({
474
474
  get() {
475
475
  var o, e;
476
476
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
@@ -508,7 +508,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
508
508
  const e = a.modelValue ?? {};
509
509
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
510
510
  }
511
- }), C = $({
511
+ }), F = $({
512
512
  get() {
513
513
  var o, e, t;
514
514
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
@@ -561,7 +561,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
561
561
  unit: Ne.Enum.day
562
562
  }, n("update:modelValue", e);
563
563
  }
564
- }), F = $({
564
+ }), C = $({
565
565
  get() {
566
566
  var o, e, t;
567
567
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.coordinates) ?? null;
@@ -580,7 +580,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
580
580
  const e = a.modelValue ?? {};
581
581
  e.profile ?? (e.profile = {}), e.profile.phoneNo = o, n("update:modelValue", e);
582
582
  }
583
- }), { enabledCountries: m, currentCountry: f } = Fe(), A = $({
583
+ }), { enabledCountries: m, currentCountry: f } = Ce(), A = $({
584
584
  get() {
585
585
  var o, e;
586
586
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
@@ -616,7 +616,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
616
616
  }
617
617
  }), (o, e) => {
618
618
  const t = N("FmTextField"), s = N("FmPill"), y = N("FmPhoneNumber"), _ = N("FmForm");
619
- return W(), z(_, {
619
+ return W(), j(_, {
620
620
  ref_key: "formRef",
621
621
  ref: V,
622
622
  onValidationSuccess: e[13] || (e[13] = (p) => n("validation-success"))
@@ -664,8 +664,8 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
664
664
  rules: [u(L)()],
665
665
  "label-mark": "required",
666
666
  label: u(r)("inventory.warehouse.address.city"),
667
- modelValue: C.value,
668
- "onUpdate:modelValue": e[4] || (e[4] = (p) => C.value = p)
667
+ modelValue: F.value,
668
+ "onUpdate:modelValue": e[4] || (e[4] = (p) => F.value = p)
669
669
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
670
670
  k(t, {
671
671
  disabled: o.disabled,
@@ -699,8 +699,8 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
699
699
  disabled: o.disabled,
700
700
  rules: [u(L)()],
701
701
  "label-mark": "required",
702
- modelValue: F.value,
703
- "onUpdate:modelValue": e[8] || (e[8] = (p) => F.value = p)
702
+ modelValue: C.value,
703
+ "onUpdate:modelValue": e[8] || (e[8] = (p) => C.value = p)
704
704
  }, null, 8, ["disabled", "rules", "modelValue"])
705
705
  ]),
706
706
  u(i).enableSupplierPreparationTime ? (W(), q("div", Ao, [
@@ -716,8 +716,8 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
716
716
  type: "number"
717
717
  }, null, 8, ["disabled", "label", "modelValue"])
718
718
  ])) : ae("", !0),
719
- g("div", Fo, [
720
- g("div", Co, E(u(r)("inventory.warehouse.contact.title")), 1),
719
+ g("div", Co, [
720
+ g("div", Fo, E(u(r)("inventory.warehouse.contact.title")), 1),
721
721
  g("div", xo, [
722
722
  k(y, {
723
723
  disabled: o.disabled,
@@ -751,7 +751,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
751
751
  }, 512);
752
752
  };
753
753
  }
754
- }), So = { class: "flex gap-4" }, To = /* @__PURE__ */ j({
754
+ }), So = { class: "flex gap-4" }, To = /* @__PURE__ */ O({
755
755
  __name: "WarehouseDialog",
756
756
  props: {
757
757
  mode: {},
@@ -760,7 +760,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
760
760
  },
761
761
  emits: ["update:show", "submitted"],
762
762
  setup(v, { expose: h, emit: b }) {
763
- const a = v, n = b, i = D(!1), r = le(), { t: l } = O(), d = xe(), M = $(() => {
763
+ const a = v, n = b, i = D(!1), r = le(), { t: l } = G(), d = xe(), M = $(() => {
764
764
  switch (a.mode) {
765
765
  case U.READ:
766
766
  return "";
@@ -780,25 +780,25 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
780
780
  return l("common.add");
781
781
  }
782
782
  return "";
783
- }), C = D();
783
+ }), F = D();
784
784
  h({
785
785
  validateInputs: () => {
786
786
  var m, f;
787
- (f = (m = C.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
787
+ (f = (m = F.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
788
788
  },
789
789
  resetInputsValidation: () => {
790
790
  var m, f;
791
- (f = (m = C.value) == null ? void 0 : m.resetInputsValidation) == null || f.call(m);
791
+ (f = (m = F.value) == null ? void 0 : m.resetInputsValidation) == null || f.call(m);
792
792
  },
793
793
  resetInputs: () => {
794
794
  var m, f;
795
- (f = (m = C.value) == null ? void 0 : m.resetInputs) == null || f.call(m);
795
+ (f = (m = F.value) == null ? void 0 : m.resetInputs) == null || f.call(m);
796
796
  }
797
797
  });
798
798
  const T = oe(a, "show"), x = oe(a, "warehouse");
799
799
  function P() {
800
800
  var m, f;
801
- (f = (m = C.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
801
+ (f = (m = F.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
802
802
  }
803
803
  function c() {
804
804
  switch (a.mode) {
@@ -807,10 +807,10 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
807
807
  case U.UPDATE:
808
808
  return S();
809
809
  case U.CREATE:
810
- return F();
810
+ return C();
811
811
  }
812
812
  }
813
- async function F() {
813
+ async function C() {
814
814
  var m, f;
815
815
  i.value = !0;
816
816
  try {
@@ -864,7 +864,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
864
864
  }
865
865
  return (m, f) => {
866
866
  const A = N("FmButton"), B = N("FmSideSheet");
867
- return W(), z(B, {
867
+ return W(), j(B, {
868
868
  header: M.value,
869
869
  modelValue: u(T),
870
870
  "onUpdate:modelValue": f[1] || (f[1] = (V) => Ve(T) ? T.value = V : null),
@@ -875,10 +875,10 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
875
875
  default: I(() => {
876
876
  var V;
877
877
  return [
878
- (W(), z($o, {
878
+ (W(), j($o, {
879
879
  class: "w-full",
880
880
  ref_key: "formRef",
881
- ref: C,
881
+ ref: F,
882
882
  modelValue: u(x),
883
883
  "onUpdate:modelValue": f[0] || (f[0] = (o) => Ve(x) ? x.value = o : null),
884
884
  onValidationSuccess: c,
@@ -903,10 +903,10 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
903
903
  }), Do = { class: "flex flex-col py-8" }, Wo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ro = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Po = {
904
904
  key: 0,
905
905
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
906
- }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, Xo = /* @__PURE__ */ j({
906
+ }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, Xo = /* @__PURE__ */ O({
907
907
  __name: "WarehouseView",
908
908
  setup(v) {
909
- const h = xe(), b = Ie(), a = $(() => h.warehouses), n = Ce(), i = le(), r = D(!1), { t: l } = O();
909
+ const h = xe(), b = Ie(), a = $(() => h.warehouses), n = Fe(), i = le(), r = D(!1), { t: l } = G();
910
910
  te(() => {
911
911
  b._currentLocation && S();
912
912
  }), ee([() => b._currentLocation], () => {
@@ -917,9 +917,10 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
917
917
  d.value.mode = U.CREATE, d.value.warehouse = {}, d.value.show = !0;
918
918
  }
919
919
  function w(V) {
920
- d.value.mode = U.UPDATE, d.value.warehouse = V, d.value.show = !0;
920
+ const o = z(V);
921
+ d.value.mode = U.UPDATE, d.value.warehouse = o, d.value.show = !0;
921
922
  }
922
- async function C(V) {
923
+ async function F(V) {
923
924
  n.open({
924
925
  title: l("inventory.warehouse.delete.confirm"),
925
926
  message: l("inventory.warehouse.delete.confirmMessage", { name: V.profile.name }),
@@ -957,12 +958,12 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
957
958
  }
958
959
  const { columnDefs: x, formatRowData: P } = Xe(
959
960
  w,
960
- C
961
+ F
961
962
  );
962
963
  function c(V) {
963
964
  V === "create" && M();
964
965
  }
965
- const F = D("");
966
+ const C = D("");
966
967
  async function S(V = !1) {
967
968
  r.value = !0;
968
969
  try {
@@ -979,7 +980,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
979
980
  const { breakpoints: m } = Oe(), f = $(() => m.value.xs || m.value.sm), A = $(() => f.value ? 10 : 20), B = qe();
980
981
  return (V, o) => {
981
982
  const e = N("FmTable");
982
- return W(), z(ze, {
983
+ return W(), j(ze, {
983
984
  title: u(l)("inventory.warehouse.title"),
984
985
  actions: [
985
986
  {
@@ -1003,14 +1004,14 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
1003
1004
  }, [
1004
1005
  k(Je, {
1005
1006
  searchable: "",
1006
- search: F.value,
1007
- "onUpdate:search": o[0] || (o[0] = (t) => F.value = t)
1007
+ search: C.value,
1008
+ "onUpdate:search": o[0] || (o[0] = (t) => C.value = t)
1008
1009
  }, null, 8, ["search"]),
1009
- (W(), z(e, {
1010
+ (W(), j(e, {
1010
1011
  style: Re(u(B).tableHeight),
1011
1012
  "column-defs": u(x),
1012
1013
  "row-data": u(P)(a.value),
1013
- "search-value": F.value,
1014
+ "search-value": C.value,
1014
1015
  loading: !u(b)._currentLocation || r.value,
1015
1016
  onRowClick: o[1] || (o[1] = (t) => w(t.original.original)),
1016
1017
  key: a.value.length,
@@ -2,26 +2,26 @@ import { ref as R, h as E, defineComponent as Y, resolveComponent as M, openBloc
2
2
  import { u as et, _ as tt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
3
3
  import { useI18n as G, useCoreStore as Ue } from "@feedmepos/mf-common";
4
4
  import { D as ae, R as B } from "./row-action.enum-DQ9bJ_uv.js";
5
- import { _ as nt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-pg3ieo_g.js";
5
+ import { _ as nt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Y_AhN6qb.js";
6
6
  import { useDialog as X, useDialogChild as ot, useSnackbar as ue, FmButtonVariant as q, components as H, useProxiedModel as Le, useBreakpoints as st } from "@feedmepos/ui-library";
7
7
  import { defineStore as Ne, storeToRefs as Be } from "pinia";
8
8
  import { _ as at, F as le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
9
- import { u as ye, c as ze, a as Z, I as L, l as lt, D as pe } from "./app-BYsl6Q0k.js";
9
+ import { u as ye, c as ze, a as Z, I as L, l as lt, D as pe } from "./app-cwueji6m.js";
10
10
  import { F as J } from "./form-mode.enum-BKiNVH6A.js";
11
11
  import { c as rt } from "./component-kqxARxvM.js";
12
- import { f as it } from "./format-time-from-id-BE25JynL.js";
13
- import { u as ce } from "./closing-template-BqDEseEH.js";
14
- import { _ as Ee } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DgzLsKyB.js";
15
- import { t as fe, a as Oe, d as He, s as We, r as ut } from "./xlsx.util-NVQktAdj.js";
16
- import { f as ct, a as mt } from "./date2-ClEr4Hh1.js";
17
- import { u as dt } from "./netsuite-DC8EHD9N.js";
12
+ import { f as it } from "./format-time-from-id-2IFiQNTX.js";
13
+ import { u as ce } from "./closing-template-CobmAqhD.js";
14
+ import { _ as Ee } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bpo1u5g2.js";
15
+ import { t as fe, a as Oe, d as He, s as We, r as ut } from "./xlsx.util-CD_xD6ZX.js";
16
+ import { f as ct, a as mt } from "./date2-D_-j6u1x.js";
17
+ import { u as dt } from "./netsuite-BiF6Fo7G.js";
18
18
  import { F as pt } from "./FmDroppableField-J0xUsOTV.js";
19
- import { u as ft } from "./duplicate-template-BaLtrzTE.js";
20
- import { A as vt, R as Ke } from "./rules-BPgfm-C7.js";
21
- import { d as yt } from "./defineDeepModel-CAsKxO2x.js";
22
- import { u as ht } from "./use-template-enabled-locations-DtLAf3Ok.js";
23
- import { a as gt } from "./FmMultiselectDialog-BinKfvTl.js";
24
- import { _ as bt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-D1LOA32J.js";
19
+ import { u as ft } from "./duplicate-template-Y9iggS9l.js";
20
+ import { A as vt, R as Ke } from "./rules-DB26S6qs.js";
21
+ import { d as yt } from "./defineDeepModel-BhC1n6G-.js";
22
+ import { u as ht } from "./use-template-enabled-locations-C6fQtFF0.js";
23
+ import { a as gt } from "./FmMultiselectDialog-e4dbq-bB.js";
24
+ import { _ as bt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-DF3seGmT.js";
25
25
  import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
26
26
  const me = Ne(
27
27
  "wastageTable",
@@ -1,9 +1,11 @@
1
1
  export declare class ApiError extends Error {
2
2
  constructor(message?: string);
3
3
  }
4
- export type ApiErrorResponse<T> = {
5
- error: string;
6
- message: T;
4
+ type DefaultErrorBody = {
5
+ error?: string;
6
+ message?: string;
7
+ };
8
+ export type ApiErrorResponse<T = DefaultErrorBody> = T & {
7
9
  statusCode: number;
8
10
  };
9
11
  export declare class SvcCompanyApiError<T = any> extends ApiError {
@@ -29,3 +31,4 @@ export declare class SvcBadResponseBody extends ApiError {
29
31
  readonly body: string;
30
32
  constructor(body: string, jsonParseError: any);
31
33
  }
34
+ export {};