@feedmepos/mf-inventory-portal 1.2.29 → 1.2.30

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 (80) hide show
  1. package/dist/{App-BcetoQcK.js → App-CZJre5y8.js} +56 -54
  2. package/dist/{ApprovalView-CyRCctkZ.js → ApprovalView-CnxHxojY.js} +34 -28
  3. package/dist/{BindingsDialog-DLN2RPYo.js → BindingsDialog-C6lCOPNs.js} +2 -2
  4. package/dist/{BindingsPicker-CDtYeSVh.js → BindingsPicker-DZtFKLQ5.js} +6 -5
  5. package/dist/{BindingsTable-C19Bm8d6.js → BindingsTable-BmQGLuJ4.js} +28 -24
  6. package/dist/{ClosingDraftView-DBFIR6Xv.js → ClosingDraftView-KLtlh31f.js} +184 -176
  7. package/dist/{ClosingHistoryView-BEZOwsPz.js → ClosingHistoryView-Rf1yMhMj.js} +43 -41
  8. package/dist/{ClosingTemplateView-COifu0I6.js → ClosingTemplateView-C_IiKnGx.js} +116 -98
  9. package/dist/{DeliveryOrderPrintPreview-lBFtH_Rm.js → DeliveryOrderPrintPreview-UF7V005U.js} +15 -14
  10. package/dist/FmDroppableField-J0xUsOTV.js +154 -0
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BhhmWaOl.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcMvEdc0.js} +74 -72
  12. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CqAeF0wL.js +279 -0
  13. package/dist/{FmMultiselectDialog-CBYvYJnE.js → FmMultiselectDialog-B0aKuf2o.js} +1 -1
  14. package/dist/FmMultiselectDialog-BasrjBFA.js +597 -0
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CLuceimk.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CaYJJkXz.js} +51 -49
  16. package/dist/{ImportView-DYNjmjys.js → ImportView-DRSoz0uM.js} +81 -74
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BXefPowE.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DA8SlWPy.js} +5 -5
  18. package/dist/{IngredientGroupView-CNzK_dDv.js → IngredientGroupView-D5Laak2-.js} +73 -65
  19. package/dist/{IngredientsView-BnrA0ijB.js → IngredientsView-TG3fPQhR.js} +358 -345
  20. package/dist/{IntegrationView-DwcP5MgB.js → IntegrationView-CElpjyo7.js} +219 -209
  21. package/dist/{InventoryBindingForm-DeqdcXzm.js → InventoryBindingForm-CBgxRYBd.js} +1 -1
  22. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-FuPTxo7z.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ys5GBHoQ.js} +41 -40
  23. package/dist/{InventoryBindingSummary-Dp0bshzL.js → InventoryBindingSummary-OK3vNWhi.js} +1 -1
  24. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DLvWaFvA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-9QRntUlk.js} +5 -5
  25. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-tLW9bojI.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bc01NoOn.js} +22 -21
  26. package/dist/{PublishView-CxIU1aI4.js → PublishView-CLMfiLjP.js} +26 -23
  27. package/dist/{PurchaseOrderPrintPreview-DWxp3cFM.js → PurchaseOrderPrintPreview-Dy77yWDC.js} +10 -9
  28. package/dist/{ReceiveRequestView-CF9ingct.js → ReceiveRequestView-BhD-NaHE.js} +324 -308
  29. package/dist/{RecipeView-B87vakmu.js → RecipeView-RWaO94w_.js} +73 -64
  30. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js +251 -0
  31. package/dist/{StockView-XJY3690u.js → StockView-D5t8OxaG.js} +292 -282
  32. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DY1iRl1F.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-3Asf1TGd.js} +1 -1
  33. package/dist/{SupplierView-Y2NqnJ6-.js → SupplierView-DiospFKq.js} +92 -80
  34. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DfCHteOF.js +177 -0
  35. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
  36. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CNtvx-LA.js +123 -0
  37. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-l0qRNa0W.js → TransferDetails.vue_vue_type_script_setup_true_lang-p959Op4k.js} +318 -305
  38. package/dist/{TransferTemplateView-DBlasHGY.js → TransferTemplateView-ePZFdZ0p.js} +228 -216
  39. package/dist/{UnitView-C8z90hHr.js → UnitView-Banlxw7y.js} +70 -63
  40. package/dist/{WarehouseView-egtnCnzo.js → WarehouseView-BL-p5hbi.js} +123 -114
  41. package/dist/WastageTemplateView-B1pmSuW0.js +2288 -0
  42. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  43. package/dist/app-EpEEb8EO.js +64040 -0
  44. package/dist/app-rgirz_52.js +8024 -0
  45. package/dist/app.js +6 -6
  46. package/dist/closing-template-zIjwO1_E.js +117 -0
  47. package/dist/date2-Dnc8Y81g.js +116 -0
  48. package/dist/dayjs.min-TdUgzmww.js +282 -0
  49. package/dist/{decimal-CLM3HUsc.js → decimal-C6s3GvGb.js} +4 -3
  50. package/dist/defineDeepModel-BSaaXVBF.js +19 -0
  51. package/dist/duplicate-template-Bw0H416G.js +34 -0
  52. package/dist/feature-C95Hao53.js +20162 -0
  53. package/dist/form-mode.enum-BKiNVH6A.js +4 -0
  54. package/dist/format-time-from-id-DlbHo6kY.js +15 -0
  55. package/dist/{format-unit-display-BWoznxQp.js → format-unit-display-QBS54q0R.js} +308 -297
  56. package/dist/{import-export.helper-DgKnsYRB.js → import-export.helper-CUKCKtP7.js} +56 -52
  57. package/dist/index-CFn_9RMm.js +45 -0
  58. package/dist/{index-CK61uHgW.js → index-S9Ak__QC.js} +1 -1
  59. package/dist/{index-tMZSFG5r.js → index-goD-WGVb.js} +16 -14
  60. package/dist/lodash-gq8IrP4j.js +3678 -0
  61. package/dist/netsuite-CnhAKyAO.js +4316 -0
  62. package/dist/{purchase-order-template-D7dkJMqf.js → purchase-order-template-CBIpWdEW.js} +1 -1
  63. package/dist/router/shared.spec.d.ts +1 -0
  64. package/dist/row-action.enum-BcW_L_nE.js +67 -0
  65. package/dist/rules-DKklsaS1.js +201 -0
  66. package/dist/{stock-B3EEUmkF.js → stock-3K93Mif9.js} +1 -1
  67. package/dist/{stock-DYBHa0KN.js → stock-BW8fen3H.js} +11 -10
  68. package/dist/style.css +1 -1
  69. package/dist/{supplier-CY7Hj_a2.js → supplier-CObCSfot.js} +27 -26
  70. package/dist/tsconfig.app.tsbuildinfo +1 -1
  71. package/dist/{use-ingredient-select-dialog-Dlv7Eowu.js → use-ingredient-select-dialog-DwvQiaVW.js} +4 -3
  72. package/dist/{use-inventory-binding-dialog-DOSfDQte.js → use-inventory-binding-dialog-CuLEHLDM.js} +4 -3
  73. package/dist/use-template-enabled-locations-2-DkUJeppb.js +111 -0
  74. package/dist/views/adjustment-template/wastage-template/table.d.ts +1 -1
  75. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -1
  76. package/dist/vue-i18n-CUznvVzc.js +2365 -0
  77. package/dist/xlsx-bT1p3YVR.js +24004 -0
  78. package/dist/xlsx.util-Cr9DpDFb.js +78 -0
  79. package/package.json +6 -6
  80. package/dist/app-B5p73NM9.js +0 -130949
@@ -1,11 +1,20 @@
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 L, createTextVNode as Me, renderSlot as De, createBlock as z, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Pe } from "vue";
2
- import { aa as Re, aF as Ue, aG as Ee, i as Ne, D as _e, j as Z, f as G, aH as Ie, aw as Le, aI as Be, r as I, c as qe, e as U, S as ze, u as je, G as Oe, I as Ge, J as Ke, K as He, L as Q } from "./app-B5p73NM9.js";
3
- import { useCoreStore as Ce, useI18n as O } from "@feedmepos/mf-common";
4
- import { useDialogChild as Je, useDialog as Fe, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Ye } from "@feedmepos/ui-library";
1
+ import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as B, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as I, createTextVNode as Me, renderSlot as De, createBlock as z, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Re } from "vue";
2
+ import { o as Pe, p as Ue, q as Ee, c as G, r as Ne, S as Le, u as Ie } from "./app-EpEEb8EO.js";
3
+ import { useCoreStore as Fe, useI18n as O } from "@feedmepos/mf-common";
4
+ import { D as _e, R as J } from "./row-action.enum-BcW_L_nE.js";
5
+ import { c as qe, _ as Be, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
+ import { u as ze, _ as je } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js";
7
+ import { F as U } from "./form-mode.enum-BKiNVH6A.js";
8
+ import { useDialogChild as Oe, useDialog as Ce, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Ge } from "@feedmepos/ui-library";
9
+ import { R as L } from "./rules-DKklsaS1.js";
5
10
  import { c as se, u as re } from "./googlemap-Dm8ERVai.js";
6
- import { _ as Ze } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
7
- const X = Re((v, h) => {
8
- const b = Ce();
11
+ import { d as Ke } from "./index-CFn_9RMm.js";
12
+ import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ import { _ as Ye } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
14
+ import { u as Ze } from "./feature-C95Hao53.js";
15
+ import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CqAeF0wL.js";
16
+ const X = Pe((v, h) => {
17
+ const b = Fe();
9
18
  return {
10
19
  async readWarehouses() {
11
20
  var i;
@@ -73,11 +82,11 @@ function xe() {
73
82
  }
74
83
  function Xe(v, h) {
75
84
  function b(r, l) {
76
- if (r === Z.Edit) {
85
+ if (r === J.Edit) {
77
86
  v(G(l));
78
87
  return;
79
88
  }
80
- if (r === Z.Delete) {
89
+ if (r === J.Delete) {
81
90
  h(G(l));
82
91
  return;
83
92
  }
@@ -107,8 +116,8 @@ function Xe(v, h) {
107
116
  id: "action",
108
117
  header: "",
109
118
  cell(r) {
110
- return Ne(
111
- [_e[Z.Edit], _e[Z.Delete]],
119
+ return qe(
120
+ [_e[J.Edit], _e[J.Delete]],
112
121
  (l) => {
113
122
  b(l, r.row.original.original);
114
123
  }
@@ -187,26 +196,26 @@ const eo = /* @__PURE__ */ j({
187
196
  const p = i.maps.event.addListener(s, y, _);
188
197
  d.push(p);
189
198
  }
190
- const F = D([]);
199
+ const C = D([]);
191
200
  function T(s, y, _) {
192
201
  w(s, y, _);
193
202
  }
194
203
  function x(s) {
195
- R(null), F.value = s.map((y, _) => {
204
+ P(null), C.value = s.map((y, _) => {
196
205
  const p = new i.maps.Marker({
197
206
  position: y,
198
207
  draggable: !0
199
208
  });
200
- return T(p, "dragend", (P) => {
201
- n("marker-change", { index: _, position: M(P) });
209
+ return T(p, "dragend", (R) => {
210
+ n("marker-change", { index: _, position: M(R) });
202
211
  }), p;
203
- }), R(l.value);
212
+ }), P(l.value);
204
213
  }
205
- function R(s) {
206
- F.value.map((y) => we(y).setMap(s));
214
+ function P(s) {
215
+ C.value.map((y) => we(y).setMap(s));
207
216
  }
208
217
  const c = D([]);
209
- function C(s, y, _) {
218
+ function F(s, y, _) {
210
219
  w(s, y, _);
211
220
  }
212
221
  function S(s, y, _) {
@@ -223,10 +232,10 @@ const eo = /* @__PURE__ */ j({
223
232
  n("polygon-change", { index: s, path: y });
224
233
  }
225
234
  function A(s, y) {
226
- const p = m(s).filter((P, K) => K !== y);
235
+ const p = m(s).filter((R, K) => K !== y);
227
236
  n("polygon-change", { index: s, path: p });
228
237
  }
229
- function B(s, y) {
238
+ function q(s, y) {
230
239
  y.vertex !== void 0 ? A(s, y.vertex) : n("polygon-right-click", s);
231
240
  }
232
241
  function V(s) {
@@ -238,8 +247,8 @@ const eo = /* @__PURE__ */ j({
238
247
  fillOpacity: 0.5,
239
248
  editable: a.editable
240
249
  });
241
- return C(p, "contextmenu", (P) => B(_, P)), p.getPaths().forEach((P) => {
242
- S(P, "insert_at", () => f(_)), S(P, "set_at", () => f(_));
250
+ return F(p, "contextmenu", (R) => q(_, R)), p.getPaths().forEach((R) => {
251
+ S(R, "insert_at", () => f(_)), S(R, "set_at", () => f(_));
243
252
  }), p;
244
253
  }), o(l.value);
245
254
  }
@@ -263,7 +272,7 @@ const eo = /* @__PURE__ */ j({
263
272
  !r.value || !i || (t(), x(a.markers), V(a.polygons));
264
273
  }), $e(() => {
265
274
  d.forEach((s) => s.remove());
266
- }), (s, y) => (W(), q("div", {
275
+ }), (s, y) => (W(), B("div", {
267
276
  ref_key: "mapRef",
268
277
  ref: r,
269
278
  class: "map app-map"
@@ -282,9 +291,9 @@ const eo = /* @__PURE__ */ j({
282
291
  }
283
292
  },
284
293
  setup(v) {
285
- const h = v, b = Je(), a = re(), { t: n } = O(), i = Se(
294
+ const h = v, b = Oe(), a = re(), { t: n } = O(), i = Se(
286
295
  G(h.coordinate ? h.coordinate : se.jb)
287
- ), r = D(""), l = Ie(async function() {
296
+ ), r = D(""), l = Ke(async function() {
288
297
  r.value = await a.getFirstMatchingAddress(
289
298
  i.lat,
290
299
  i.lng
@@ -297,7 +306,7 @@ const eo = /* @__PURE__ */ j({
297
306
  i.lat = w.lat, i.lng = w.lng, b.emitData(G(i)), l();
298
307
  }
299
308
  const M = D();
300
- return (w, F) => (W(), q("div", oo, [
309
+ return (w, C) => (W(), B("div", oo, [
301
310
  g("div", to, [
302
311
  g("div", null, [
303
312
  g("span", ao, E(u(n)("inventory.formField.coordinate.address")) + ": ", 1),
@@ -320,11 +329,11 @@ const eo = /* @__PURE__ */ j({
320
329
  center: i,
321
330
  markers: [i],
322
331
  onMarkerChange: d,
323
- onMapClick: F[0] || (F[0] = (T) => d({ position: T }))
332
+ onMapClick: C[0] || (C[0] = (T) => d({ position: T }))
324
333
  }, null, 8, ["center", "markers"])
325
334
  ]));
326
335
  }
327
- }), co = /* @__PURE__ */ Le(io, [["__scopeId", "data-v-272f5e8b"]]);
336
+ }), co = /* @__PURE__ */ He(io, [["__scopeId", "data-v-272f5e8b"]]);
328
337
  function Ae([v, h]) {
329
338
  return {
330
339
  lat: h,
@@ -351,14 +360,14 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
351
360
  },
352
361
  emits: ["update:modelValue"],
353
362
  setup(v, { emit: h }) {
354
- const b = v, a = h, n = re(), i = Fe(), r = le(), l = oe(b, "modelValue"), d = D(!1), { t: M } = O();
363
+ const b = v, a = h, n = re(), i = Ce(), r = le(), l = oe(b, "modelValue"), d = D(!1), { t: M } = O();
355
364
  function w(c) {
356
365
  if (c != null && c[0] && (c != null && c[1]))
357
366
  return M("inventory.formField.coordinate.longLat", [c[0].toFixed(3), c[1].toFixed(3)]);
358
367
  }
359
- async function F(c) {
368
+ async function C(c) {
360
369
  var f, A;
361
- 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;
370
+ 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;
362
371
  i.open({
363
372
  title: b.dialogTitle ?? b.label ?? M("inventory.formField.coordinate.pinLocation"),
364
373
  closeButton: !0,
@@ -388,15 +397,15 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
388
397
  });
389
398
  return;
390
399
  }
391
- F(T);
400
+ C(T);
392
401
  }
393
402
  }
394
- function R() {
403
+ function P() {
395
404
  a("update:modelValue", null);
396
405
  }
397
- return (c, C) => {
406
+ return (c, F) => {
398
407
  const S = N("FmField"), m = N("FmButton"), f = N("FmFormGroup");
399
- return W(), q("div", mo, [
408
+ return W(), B("div", mo, [
400
409
  k(f, {
401
410
  class: "flex-1",
402
411
  "model-value": u(l),
@@ -409,20 +418,20 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
409
418
  focused: d.value,
410
419
  "helper-text": c.helperText,
411
420
  "helper-state": c.helperState,
412
- onClick: C[0] || (C[0] = (A) => x())
421
+ onClick: F[0] || (F[0] = (A) => x())
413
422
  }, Te({
414
- default: L(({ invalid: A }) => [
415
- c.modelValue && c.modelValue[0] && c.modelValue[1] ? (W(), q("div", fo, [
423
+ default: I(({ invalid: A }) => [
424
+ c.modelValue && c.modelValue[0] && c.modelValue[1] ? (W(), B("div", fo, [
416
425
  k(S, {
417
426
  invalid: A,
418
427
  class: "fm-typo-en-body-lg-400"
419
428
  }, {
420
- default: L(() => [
429
+ default: I(() => [
421
430
  Me(E(w(c.modelValue)), 1)
422
431
  ]),
423
432
  _: 2
424
433
  }, 1032, ["invalid"])
425
- ])) : (W(), q("div", yo, [
434
+ ])) : (W(), B("div", yo, [
426
435
  k(m, {
427
436
  label: u(M)("inventory.formField.coordinate.addCoordinate"),
428
437
  "prepend-icon": "add",
@@ -434,7 +443,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
434
443
  }, [
435
444
  c.$slots.label ? {
436
445
  name: "label",
437
- fn: L(() => [
446
+ fn: I(() => [
438
447
  De(c.$slots, "label")
439
448
  ]),
440
449
  key: "0"
@@ -444,7 +453,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
444
453
  key: 0,
445
454
  "prepend-icon": "delete",
446
455
  variant: "tertiary",
447
- onClick: C[1] || (C[1] = (A) => R())
456
+ onClick: F[1] || (F[1] = (A) => P())
448
457
  })) : ae("", !0)
449
458
  ]);
450
459
  };
@@ -452,7 +461,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
452
461
  }), 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 = {
453
462
  key: 0,
454
463
  class: "flex flex-col gap-8"
455
- }, 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__ */ j({
464
+ }, 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({
456
465
  __name: "WarehouseForm",
457
466
  props: {
458
467
  modelValue: {},
@@ -460,7 +469,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
460
469
  },
461
470
  emits: ["update:modelValue", "validation-success"],
462
471
  setup(v, { expose: h, emit: b }) {
463
- const a = v, n = b, i = qe(), { t: r } = O(), l = $({
472
+ const a = v, n = b, i = Ze(), { t: r } = O(), l = $({
464
473
  get() {
465
474
  var o, e;
466
475
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
@@ -498,7 +507,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
498
507
  const e = a.modelValue ?? {};
499
508
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
500
509
  }
501
- }), F = $({
510
+ }), C = $({
502
511
  get() {
503
512
  var o, e, t;
504
513
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
@@ -528,7 +537,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
528
537
  const e = a.modelValue ?? {};
529
538
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.state = o, n("update:modelValue", e);
530
539
  }
531
- }), R = $({
540
+ }), P = $({
532
541
  get() {
533
542
  var o, e, t;
534
543
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.country) ?? "";
@@ -548,10 +557,10 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
548
557
  const e = a.modelValue ?? {};
549
558
  e.profile ?? (e.profile = {}), e.preparationTime = {
550
559
  value: parseInt(o),
551
- unit: Be.Enum.day
560
+ unit: Ne.Enum.day
552
561
  }, n("update:modelValue", e);
553
562
  }
554
- }), C = $({
563
+ }), F = $({
555
564
  get() {
556
565
  var o, e, t;
557
566
  return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.coordinates) ?? null;
@@ -570,7 +579,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
570
579
  const e = a.modelValue ?? {};
571
580
  e.profile ?? (e.profile = {}), e.profile.phoneNo = o, n("update:modelValue", e);
572
581
  }
573
- }), { enabledCountries: m, currentCountry: f } = Ce(), A = $({
582
+ }), { enabledCountries: m, currentCountry: f } = Fe(), A = $({
574
583
  get() {
575
584
  var o, e;
576
585
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
@@ -579,7 +588,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
579
588
  const e = a.modelValue ?? {};
580
589
  e.profile ?? (e.profile = {}), e.profile.email = o, n("update:modelValue", e);
581
590
  }
582
- }), B = $({
591
+ }), q = $({
583
592
  get() {
584
593
  var o;
585
594
  return ((o = a.modelValue) == null ? void 0 : o.customAttributes) ?? {};
@@ -611,12 +620,12 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
611
620
  ref: V,
612
621
  onValidationSuccess: e[13] || (e[13] = (p) => n("validation-success"))
613
622
  }, {
614
- default: L(() => [
623
+ default: I(() => [
615
624
  g("div", ho, [
616
625
  g("div", bo, [
617
626
  k(t, {
618
627
  disabled: o.disabled,
619
- rules: [u(I)()],
628
+ rules: [u(L)()],
620
629
  "label-mark": "required",
621
630
  label: u(r)("inventory.warehouse.companyName"),
622
631
  modelValue: l.value,
@@ -624,7 +633,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
624
633
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
625
634
  k(t, {
626
635
  disabled: o.disabled,
627
- rules: [u(I)()],
636
+ rules: [u(L)()],
628
637
  "label-mark": "required",
629
638
  label: u(r)("inventory.warehouse.registrationNo"),
630
639
  modelValue: d.value,
@@ -636,7 +645,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
636
645
  g("div", Vo, [
637
646
  k(t, {
638
647
  disabled: o.disabled,
639
- rules: [u(I)()],
648
+ rules: [u(L)()],
640
649
  "label-mark": "required",
641
650
  label: u(r)("inventory.warehouse.address.line1"),
642
651
  modelValue: M.value,
@@ -651,15 +660,15 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
651
660
  }, null, 8, ["disabled", "label", "modelValue"]),
652
661
  k(t, {
653
662
  disabled: o.disabled,
654
- rules: [u(I)()],
663
+ rules: [u(L)()],
655
664
  "label-mark": "required",
656
665
  label: u(r)("inventory.warehouse.address.city"),
657
- modelValue: F.value,
658
- "onUpdate:modelValue": e[4] || (e[4] = (p) => F.value = p)
666
+ modelValue: C.value,
667
+ "onUpdate:modelValue": e[4] || (e[4] = (p) => C.value = p)
659
668
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
660
669
  k(t, {
661
670
  disabled: o.disabled,
662
- rules: [u(I)()],
671
+ rules: [u(L)()],
663
672
  "label-mark": "required",
664
673
  label: u(r)("inventory.warehouse.address.postcode"),
665
674
  modelValue: T.value,
@@ -667,7 +676,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
667
676
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
668
677
  k(t, {
669
678
  disabled: o.disabled,
670
- rules: [u(I)()],
679
+ rules: [u(L)()],
671
680
  "label-mark": "required",
672
681
  label: u(r)("inventory.warehouse.address.state"),
673
682
  modelValue: x.value,
@@ -675,11 +684,11 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
675
684
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
676
685
  k(t, {
677
686
  disabled: o.disabled,
678
- rules: [u(I)()],
687
+ rules: [u(L)()],
679
688
  "label-mark": "required",
680
689
  label: u(r)("inventory.warehouse.address.country"),
681
- modelValue: R.value,
682
- "onUpdate:modelValue": e[7] || (e[7] = (p) => R.value = p)
690
+ modelValue: P.value,
691
+ "onUpdate:modelValue": e[7] || (e[7] = (p) => P.value = p)
683
692
  }, null, 8, ["disabled", "rules", "label", "modelValue"])
684
693
  ])
685
694
  ]),
@@ -687,13 +696,13 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
687
696
  g("div", ko, E(u(r)("inventory.warehouse.coordinate.title")), 1),
688
697
  k(vo, {
689
698
  disabled: o.disabled,
690
- rules: [u(I)()],
699
+ rules: [u(L)()],
691
700
  "label-mark": "required",
692
- modelValue: C.value,
693
- "onUpdate:modelValue": e[8] || (e[8] = (p) => C.value = p)
701
+ modelValue: F.value,
702
+ "onUpdate:modelValue": e[8] || (e[8] = (p) => F.value = p)
694
703
  }, null, 8, ["disabled", "rules", "modelValue"])
695
704
  ]),
696
- u(i).enableSupplierPreparationTime ? (W(), q("div", Ao, [
705
+ u(i).enableSupplierPreparationTime ? (W(), B("div", Ao, [
697
706
  g("div", Mo, [
698
707
  Me(E(u(r)("inventory.supplier.delivery.title")) + " ", 1),
699
708
  k(s, { variant: "beta" })
@@ -706,12 +715,12 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
706
715
  type: "number"
707
716
  }, null, 8, ["disabled", "label", "modelValue"])
708
717
  ])) : ae("", !0),
709
- g("div", Co, [
710
- g("div", Fo, E(u(r)("inventory.warehouse.contact.title")), 1),
718
+ g("div", Fo, [
719
+ g("div", Co, E(u(r)("inventory.warehouse.contact.title")), 1),
711
720
  g("div", xo, [
712
721
  k(y, {
713
722
  disabled: o.disabled,
714
- rules: [u(I)()],
723
+ rules: [u(L)()],
715
724
  "label-mark": "required",
716
725
  label: u(r)("inventory.warehouse.contact.phoneNumber"),
717
726
  modelValue: S.value,
@@ -729,10 +738,10 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
729
738
  ])
730
739
  ]),
731
740
  g("div", null, [
732
- k(Ze, {
741
+ k(Ye, {
733
742
  entity: "warehouse",
734
- modelValue: B.value,
735
- "onUpdate:modelValue": e[12] || (e[12] = (p) => B.value = p)
743
+ modelValue: q.value,
744
+ "onUpdate:modelValue": e[12] || (e[12] = (p) => q.value = p)
736
745
  }, null, 8, ["modelValue"])
737
746
  ])
738
747
  ])
@@ -770,25 +779,25 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
770
779
  return l("common.add");
771
780
  }
772
781
  return "";
773
- }), F = D();
782
+ }), C = D();
774
783
  h({
775
784
  validateInputs: () => {
776
785
  var m, f;
777
- (f = (m = F.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
786
+ (f = (m = C.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
778
787
  },
779
788
  resetInputsValidation: () => {
780
789
  var m, f;
781
- (f = (m = F.value) == null ? void 0 : m.resetInputsValidation) == null || f.call(m);
790
+ (f = (m = C.value) == null ? void 0 : m.resetInputsValidation) == null || f.call(m);
782
791
  },
783
792
  resetInputs: () => {
784
793
  var m, f;
785
- (f = (m = F.value) == null ? void 0 : m.resetInputs) == null || f.call(m);
794
+ (f = (m = C.value) == null ? void 0 : m.resetInputs) == null || f.call(m);
786
795
  }
787
796
  });
788
797
  const T = oe(a, "show"), x = oe(a, "warehouse");
789
- function R() {
798
+ function P() {
790
799
  var m, f;
791
- (f = (m = F.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
800
+ (f = (m = C.value) == null ? void 0 : m.validateInputs) == null || f.call(m);
792
801
  }
793
802
  function c() {
794
803
  switch (a.mode) {
@@ -797,10 +806,10 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
797
806
  case U.UPDATE:
798
807
  return S();
799
808
  case U.CREATE:
800
- return C();
809
+ return F();
801
810
  }
802
811
  }
803
- async function C() {
812
+ async function F() {
804
813
  var m, f;
805
814
  i.value = !0;
806
815
  try {
@@ -815,7 +824,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
815
824
  } catch (A) {
816
825
  r.open({
817
826
  title: l("inventory.warehouse.create.error.title"),
818
- message: A instanceof ze ? A.message : l("inventory.warehouse.create.error.message"),
827
+ message: A instanceof Le ? A.message : l("inventory.warehouse.create.error.message"),
819
828
  type: "error"
820
829
  }), console.error("cannot create warehouse", A);
821
830
  } finally {
@@ -853,8 +862,8 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
853
862
  }
854
863
  }
855
864
  return (m, f) => {
856
- const A = N("FmButton"), B = N("FmSideSheet");
857
- return W(), z(B, {
865
+ const A = N("FmButton"), q = N("FmSideSheet");
866
+ return W(), z(q, {
858
867
  header: M.value,
859
868
  modelValue: u(T),
860
869
  "onUpdate:modelValue": f[1] || (f[1] = (V) => Ve(T) ? T.value = V : null),
@@ -862,13 +871,13 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
862
871
  "close-button": "",
863
872
  "max-width": 500
864
873
  }, {
865
- default: L(() => {
874
+ default: I(() => {
866
875
  var V;
867
876
  return [
868
877
  (W(), z($o, {
869
878
  class: "w-full",
870
879
  ref_key: "formRef",
871
- ref: F,
880
+ ref: C,
872
881
  modelValue: u(x),
873
882
  "onUpdate:modelValue": f[0] || (f[0] = (o) => Ve(x) ? x.value = o : null),
874
883
  onValidationSuccess: c,
@@ -877,12 +886,12 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
877
886
  }, null, 8, ["modelValue", "disabled"]))
878
887
  ];
879
888
  }),
880
- "side-sheet-footer": L(() => [
889
+ "side-sheet-footer": I(() => [
881
890
  g("div", So, [
882
891
  k(A, {
883
892
  loading: i.value,
884
893
  label: w.value,
885
- onClick: R
894
+ onClick: P
886
895
  }, null, 8, ["loading", "label"])
887
896
  ])
888
897
  ]),
@@ -890,13 +899,13 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
890
899
  }, 8, ["header", "modelValue", "dismiss-away"]);
891
900
  };
892
901
  }
893
- }), Do = { class: "flex flex-col py-8" }, Wo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Po = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ro = {
902
+ }), 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 = {
894
903
  key: 0,
895
904
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
896
- }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, zo = /* @__PURE__ */ j({
905
+ }, Uo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, Qo = /* @__PURE__ */ j({
897
906
  __name: "WarehouseView",
898
907
  setup(v) {
899
- const h = xe(), b = je(), a = $(() => h.warehouses), n = Fe(), i = le(), r = D(!1), { t: l } = O();
908
+ const h = xe(), b = Ie(), a = $(() => h.warehouses), n = Ce(), i = le(), r = D(!1), { t: l } = O();
900
909
  te(() => {
901
910
  b._currentLocation && S();
902
911
  }), ee([() => b._currentLocation], () => {
@@ -909,7 +918,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
909
918
  function w(V) {
910
919
  d.value.mode = U.UPDATE, d.value.warehouse = V, d.value.show = !0;
911
920
  }
912
- async function F(V) {
921
+ async function C(V) {
913
922
  n.open({
914
923
  title: l("inventory.warehouse.delete.confirm"),
915
924
  message: l("inventory.warehouse.delete.confirmMessage", { name: V.profile.name }),
@@ -945,14 +954,14 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
945
954
  n.close();
946
955
  }
947
956
  }
948
- const { columnDefs: x, formatRowData: R } = Xe(
957
+ const { columnDefs: x, formatRowData: P } = Xe(
949
958
  w,
950
- F
959
+ C
951
960
  );
952
961
  function c(V) {
953
962
  V === "create" && M();
954
963
  }
955
- const C = D("");
964
+ const F = D("");
956
965
  async function S(V = !1) {
957
966
  r.value = !0;
958
967
  try {
@@ -966,10 +975,10 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
966
975
  r.value = !1;
967
976
  }
968
977
  }
969
- const { breakpoints: m } = Ye(), f = $(() => m.value.xs || m.value.sm), A = $(() => f.value ? 10 : 20), B = Oe();
978
+ const { breakpoints: m } = Ge(), f = $(() => m.value.xs || m.value.sm), A = $(() => f.value ? 10 : 20), q = ze();
970
979
  return (V, o) => {
971
980
  const e = N("FmTable");
972
- return W(), z(Ge, {
981
+ return W(), z(je, {
973
982
  title: u(l)("inventory.warehouse.title"),
974
983
  actions: [
975
984
  {
@@ -981,7 +990,7 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
981
990
  ],
982
991
  "onClick:action": c
983
992
  }, {
984
- default: L(() => [
993
+ default: I(() => [
985
994
  g("div", {
986
995
  class: We([
987
996
  "flex flex-col gap-8 max-h-full",
@@ -991,52 +1000,52 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
991
1000
  }
992
1001
  ])
993
1002
  }, [
994
- k(Ke, {
1003
+ k(Je, {
995
1004
  searchable: "",
996
- search: C.value,
997
- "onUpdate:search": o[0] || (o[0] = (t) => C.value = t)
1005
+ search: F.value,
1006
+ "onUpdate:search": o[0] || (o[0] = (t) => F.value = t)
998
1007
  }, null, 8, ["search"]),
999
1008
  (W(), z(e, {
1000
- style: Pe(u(B).tableHeight),
1009
+ style: Re(u(q).tableHeight),
1001
1010
  "column-defs": u(x),
1002
- "row-data": u(R)(a.value),
1003
- "search-value": C.value,
1011
+ "row-data": u(P)(a.value),
1012
+ "search-value": F.value,
1004
1013
  loading: !u(b)._currentLocation || r.value,
1005
1014
  onRowClick: o[1] || (o[1] = (t) => w(t.original.original)),
1006
1015
  key: a.value.length,
1007
1016
  "page-size": A.value
1008
1017
  }, {
1009
- "list-row": L((t) => [
1010
- k(He, {
1018
+ "list-row": I((t) => [
1019
+ k(Be, {
1011
1020
  row: t,
1012
1021
  onRowClick: (s) => w(s.original)
1013
1022
  }, {
1014
- default: L((s) => {
1015
- var y, _, p, P, K, ne, ue, ie, H, de, ce, pe, me, fe, J, ye, ve, he, be, Y, ge;
1023
+ default: I((s) => {
1024
+ var y, _, p, R, K, ne, ue, ie, H, de, ce, pe, me, fe, Y, ye, ve, he, be, Z, ge;
1016
1025
  return [
1017
1026
  g("div", Do, [
1018
1027
  g("div", Wo, [
1019
1028
  k(u(Q), {
1020
1029
  render: (p = (_ = (y = s.warehouse) == null ? void 0 : y.column) == null ? void 0 : _.columnDef) == null ? void 0 : p.cell,
1021
- props: (K = (P = s.warehouse) == null ? void 0 : P.getContext) == null ? void 0 : K.call(P)
1030
+ props: (K = (R = s.warehouse) == null ? void 0 : R.getContext) == null ? void 0 : K.call(R)
1022
1031
  }, null, 8, ["render", "props"])
1023
1032
  ]),
1024
- g("div", Po, [
1033
+ g("div", Ro, [
1025
1034
  k(u(Q), {
1026
1035
  render: (ie = (ue = (ne = s.contact) == null ? void 0 : ne.column) == null ? void 0 : ue.columnDef) == null ? void 0 : ie.cell,
1027
1036
  props: (de = (H = s.contact) == null ? void 0 : H.getContext) == null ? void 0 : de.call(H)
1028
1037
  }, null, 8, ["render", "props"])
1029
1038
  ]),
1030
- (ce = t.original) != null && ce.email ? (W(), q("div", Ro, [
1039
+ (ce = t.original) != null && ce.email ? (W(), B("div", Po, [
1031
1040
  k(u(Q), {
1032
1041
  render: (fe = (me = (pe = s.email) == null ? void 0 : pe.column) == null ? void 0 : me.columnDef) == null ? void 0 : fe.cell,
1033
- props: (ye = (J = s.email) == null ? void 0 : J.getContext) == null ? void 0 : ye.call(J)
1042
+ props: (ye = (Y = s.email) == null ? void 0 : Y.getContext) == null ? void 0 : ye.call(Y)
1034
1043
  }, null, 8, ["render", "props"])
1035
1044
  ])) : ae("", !0),
1036
1045
  g("div", Uo, [
1037
1046
  k(u(Q), {
1038
1047
  render: (be = (he = (ve = s.address) == null ? void 0 : ve.column) == null ? void 0 : he.columnDef) == null ? void 0 : be.cell,
1039
- props: (ge = (Y = s.address) == null ? void 0 : Y.getContext) == null ? void 0 : ge.call(Y)
1048
+ props: (ge = (Z = s.address) == null ? void 0 : Z.getContext) == null ? void 0 : ge.call(Z)
1040
1049
  }, null, 8, ["render", "props"])
1041
1050
  ])
1042
1051
  ])
@@ -1062,5 +1071,5 @@ const mo = { class: "flex gap-8 items-center" }, fo = { key: 0 }, yo = { key: 1
1062
1071
  }
1063
1072
  });
1064
1073
  export {
1065
- zo as default
1074
+ Qo as default
1066
1075
  };