@feedmepos/mf-inventory-portal 0.0.22-dev.30 → 0.0.22-dev.32

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 (33) hide show
  1. package/dist/{ApprovalView-BowcCo8d.js → ApprovalView-COJaxxIv.js} +4 -4
  2. package/dist/{BindingsDialog-CmmLVQTN.js → BindingsDialog-BZ_Xi4WF.js} +1 -1
  3. package/dist/{BindingsPicker-BErHbcxb.js → BindingsPicker-CT7cW6T6.js} +1 -1
  4. package/dist/{BindingsTable-hrfbN6tX.js → BindingsTable-D01Xf3rR.js} +1 -1
  5. package/dist/{ClosingTemplateView-BVefCGpC.js → ClosingTemplateView-1KqjE0Fw.js} +5 -5
  6. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CXHh_Bti.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnCOKma5.js} +1 -1
  7. package/dist/IngredientsView-N3D-1BPD.js +1755 -0
  8. package/dist/{IntegrationView-BEdAKS1I.js → IntegrationView-CSv7EbNg.js} +2 -2
  9. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-pr7Sb7Om.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D2IFaLGH.js} +1 -1
  10. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DsYwNO5N.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Cz_ykc82.js} +1 -1
  11. package/dist/{PurchaseOrderPrintPreview-DzaS_c8R.js → PurchaseOrderPrintPreview-CIVEoeLg.js} +1 -1
  12. package/dist/{ReceiveRequestView-CU-bhIjl.js → ReceiveRequestView-mkNXM5bz.js} +6 -6
  13. package/dist/{RecipeView-CmETsz5e.js → RecipeView-B7EJV9Fd.js} +3 -3
  14. package/dist/{StockView-BgmjwPbh.js → StockView-BL2JzJoE.js} +6 -6
  15. package/dist/{SupplierView-CDm5q1th.js → SupplierView-taLOqF4j.js} +3 -3
  16. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BZJyhJu4.js → TransferDetails.vue_vue_type_script_setup_true_lang-DIERlQsA.js} +4 -4
  17. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-lybenWiw.js → TransferDialog.vue_vue_type_script_setup_true_lang-Cccb5NAv.js} +81 -81
  18. package/dist/{TransferTemplateView-CSQ2XxFU.js → TransferTemplateView-CukOHvNg.js} +8 -8
  19. package/dist/{UnitView-D7bcDkOX.js → UnitView-DYeZDXzf.js} +4 -4
  20. package/dist/{WarehouseView-BJAKVdRs.js → WarehouseView-B9TG01jw.js} +181 -182
  21. package/dist/{app-A8ykBdGf.js → app-pztf5tL8.js} +169 -169
  22. package/dist/app.js +1 -1
  23. package/dist/{decimal-BC4EGBAX.js → decimal-ICTuLpM4.js} +1 -1
  24. package/dist/{defineDeepModel-Ckfkwau_.js → defineDeepModel-Cep_eUEL.js} +1 -1
  25. package/dist/{format-time-from-id-o1plVFRH.js → format-time-from-id-CLQWiF0h.js} +1 -1
  26. package/dist/{id-to-date-DyPIToei.js → id-to-date-BwmfqnWe.js} +1 -1
  27. package/dist/{purchase-order-transaction-type-skN4AmEj.js → purchase-order-transaction-type-B2W6wDCt.js} +3 -3
  28. package/dist/{supplier-DV3Tg4TT.js → supplier-_yZrMtoz.js} +1 -1
  29. package/dist/{use-template-enabled-locations-2-u_kejm-N.js → use-template-enabled-locations-2-j_9uepqV.js} +1 -1
  30. package/dist/{xlsx-CrHTSBmd.js → xlsx-Cz8iRYr9.js} +1 -1
  31. package/dist/{xlsx.util-hjzkZFnf.js → xlsx.util-Dz3iSFMT.js} +2 -2
  32. package/package.json +1 -1
  33. package/dist/IngredientsView-BqnUckSv.js +0 -1817
@@ -1,11 +1,11 @@
1
- import { ref as W, defineComponent as j, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as z, toRaw as be, reactive as xe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as I, createCommentVNode as Ae, computed as F, isRef as we, normalizeClass as Se, normalizeStyle as Re } from "vue";
2
- import { o as Pe, V as Te, W as Ue, c as G, X as ae, Y as le, Z as Ee, i as Le, R as E, j as Ne } from "./app-A8ykBdGf.js";
3
- import { useCoreStore as Be, useI18n as q } from "@feedmepos/mf-common";
4
- import { D as Ve, R as Y, F as T } from "./row-action.enum-PMKMRrZR.js";
5
- import { c as qe, _ as ze, F as J } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
- import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CXHh_Bti.js";
1
+ import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as S, createElementBlock as q, toRaw as be, reactive as xe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as F, isRef as we, normalizeClass as Se, normalizeStyle as Re } from "vue";
2
+ import { o as Pe, V as Te, W as Ue, c as O, X as ae, Y as le, Z as Ee, i as Le, R as E, j as Ne } from "./app-pztf5tL8.js";
3
+ import { useCoreStore as Be, useI18n as j } from "@feedmepos/mf-common";
4
+ import { D as Ve, R as X, F as T } from "./row-action.enum-PMKMRrZR.js";
5
+ import { c as qe, _ as ze, F as Y } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
+ import { u as Ie, _ as je, a as Oe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnCOKma5.js";
7
7
  import { useDialogChild as Ge, useDialog as Me, useSnackbar as se, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
8
- const Q = Pe((m, h) => {
8
+ const J = Pe((m, h) => {
9
9
  const y = Be();
10
10
  return {
11
11
  async readWarehouses() {
@@ -19,8 +19,8 @@ const Q = Pe((m, h) => {
19
19
  return await h.post(l, a);
20
20
  },
21
21
  async updateWarehouse(a, n) {
22
- var r;
23
- const l = ((r = y.currentBusiness.value) == null ? void 0 : r._id) ?? "", p = `${m.inventoryBackendUrl}/businesses/${l}/warehouse/${a}`;
22
+ var s;
23
+ const l = ((s = y.currentBusiness.value) == null ? void 0 : s._id) ?? "", p = `${m.inventoryBackendUrl}/businesses/${l}/warehouse/${a}`;
24
24
  return await h.put(p, n);
25
25
  },
26
26
  async deleteWarehouse(a) {
@@ -47,17 +47,17 @@ function Ce() {
47
47
  },
48
48
  // actions
49
49
  async readWarehouses() {
50
- const m = Q();
50
+ const m = J();
51
51
  this.warehouses = await m.readWarehouses();
52
52
  },
53
53
  async createWarehouse(m) {
54
- await Q().createWarehouse(m);
54
+ await J().createWarehouse(m);
55
55
  },
56
56
  async updateWarehouse(m) {
57
- await Q().updateWarehouse(m._id, m.profile);
57
+ await J().updateWarehouse(m._id, m.profile);
58
58
  },
59
59
  async deleteWarehouse(m) {
60
- await Q().deleteWarehouse(m._id);
60
+ await J().deleteWarehouse(m._id);
61
61
  },
62
62
  async init() {
63
63
  const m = Te();
@@ -70,17 +70,17 @@ function Ce() {
70
70
  };
71
71
  }
72
72
  function Ze(m, h) {
73
- function y(p, r) {
74
- if (p === Y.Edit) {
75
- m(G(r));
73
+ function y(p, s) {
74
+ if (p === X.Edit) {
75
+ m(O(s));
76
76
  return;
77
77
  }
78
- if (p === Y.Delete) {
79
- h(G(r));
78
+ if (p === X.Delete) {
79
+ h(O(s));
80
80
  return;
81
81
  }
82
82
  }
83
- const { t: a } = q(), n = [
83
+ const { t: a } = j(), n = [
84
84
  {
85
85
  accessorKey: "warehouse",
86
86
  header: () => a("inventory.warehouse.table.warehouse"),
@@ -106,9 +106,9 @@ function Ze(m, h) {
106
106
  header: "",
107
107
  cell(p) {
108
108
  return qe(
109
- [Ve[Y.Edit], Ve[Y.Delete]],
110
- (r) => {
111
- y(r, p.row.original.original);
109
+ [Ve[X.Edit], Ve[X.Delete]],
110
+ (s) => {
111
+ y(s, p.row.original.original);
112
112
  }
113
113
  );
114
114
  },
@@ -121,13 +121,13 @@ function Ze(m, h) {
121
121
  }
122
122
  ];
123
123
  function l(p) {
124
- return p.map((r) => ({
125
- original: r,
126
- warehouse: r.profile.name,
127
- contact: r.profile.phoneNo,
128
- email: r.profile.email,
124
+ return p.map((s) => ({
125
+ original: s,
126
+ warehouse: s.profile.name,
127
+ contact: s.profile.phoneNo,
128
+ email: s.profile.email,
129
129
  get address() {
130
- const u = r.profile.address;
130
+ const u = s.profile.address;
131
131
  return [
132
132
  u == null ? void 0 : u.line1,
133
133
  u == null ? void 0 : u.line2,
@@ -141,7 +141,7 @@ function Ze(m, h) {
141
141
  }
142
142
  return { columnDefs: n, formatRowData: l };
143
143
  }
144
- const Xe = /* @__PURE__ */ j({
144
+ const Xe = /* @__PURE__ */ I({
145
145
  __name: "GoogleMap",
146
146
  props: {
147
147
  markers: {
@@ -169,28 +169,28 @@ const Xe = /* @__PURE__ */ j({
169
169
  setup(m, { expose: h, emit: y }) {
170
170
  const a = m, n = y;
171
171
  h({
172
- setCenter: (s) => {
172
+ setCenter: (r) => {
173
173
  var f, b;
174
- (f = r.value) == null || f.setCenter(s), (b = r.value) == null || b.setZoom(18);
174
+ (f = s.value) == null || f.setCenter(r), (b = s.value) == null || b.setZoom(18);
175
175
  }
176
176
  });
177
- const { googleMap: l } = le(), p = W(), r = W(null), u = [];
178
- function _(s) {
177
+ const { googleMap: l } = le(), p = W(), s = W(null), u = [];
178
+ function _(r) {
179
179
  return {
180
- lat: s.latLng.lat(),
181
- lng: s.latLng.lng()
180
+ lat: r.latLng.lat(),
181
+ lng: r.latLng.lng()
182
182
  };
183
183
  }
184
- function v(s, f, b) {
185
- const x = l.maps.event.addListener(s, f, b);
184
+ function v(r, f, b) {
185
+ const x = l.maps.event.addListener(r, f, b);
186
186
  u.push(x);
187
187
  }
188
188
  const M = W([]);
189
- function $(s, f, b) {
190
- v(s, f, b);
189
+ function $(r, f, b) {
190
+ v(r, f, b);
191
191
  }
192
- function C(s) {
193
- R(null), M.value = s.map((f, b) => {
192
+ function C(r) {
193
+ R(null), M.value = r.map((f, b) => {
194
194
  const x = new l.maps.Marker({
195
195
  position: f,
196
196
  draggable: !0
@@ -198,37 +198,37 @@ const Xe = /* @__PURE__ */ j({
198
198
  return $(x, "dragend", (D) => {
199
199
  n("marker-change", { index: b, position: _(D) });
200
200
  }), x;
201
- }), R(r.value);
201
+ }), R(s.value);
202
202
  }
203
- function R(s) {
204
- M.value.map((f) => be(f).setMap(s));
203
+ function R(r) {
204
+ M.value.map((f) => be(f).setMap(r));
205
205
  }
206
- const d = W([]);
207
- function k(s, f, b) {
208
- v(s, f, b);
206
+ const i = W([]);
207
+ function k(r, f, b) {
208
+ v(r, f, b);
209
209
  }
210
- function A(s, f, b) {
211
- v(s, f, b);
210
+ function A(r, f, b) {
211
+ v(r, f, b);
212
212
  }
213
- function o(s) {
214
- return d.value[s].getPath().getArray().map(({ lat: b, lng: x }) => ({
213
+ function o(r) {
214
+ return i.value[r].getPath().getArray().map(({ lat: b, lng: x }) => ({
215
215
  lat: b(),
216
216
  lng: x()
217
217
  }));
218
218
  }
219
- function e(s) {
220
- const f = o(s);
221
- n("polygon-change", { index: s, path: f });
219
+ function e(r) {
220
+ const f = o(r);
221
+ n("polygon-change", { index: r, path: f });
222
222
  }
223
- function t(s, f) {
224
- const x = o(s).filter((D, K) => K !== f);
225
- n("polygon-change", { index: s, path: x });
223
+ function t(r, f) {
224
+ const x = o(r).filter((D, G) => G !== f);
225
+ n("polygon-change", { index: r, path: x });
226
226
  }
227
- function B(s, f) {
228
- f.vertex !== void 0 ? t(s, f.vertex) : n("polygon-right-click", s);
227
+ function B(r, f) {
228
+ f.vertex !== void 0 ? t(r, f.vertex) : n("polygon-right-click", r);
229
229
  }
230
- function w(s) {
231
- i(null), d.value = s.map((f, b) => {
230
+ function w(r) {
231
+ d(null), i.value = r.map((f, b) => {
232
232
  const x = new l.maps.Polygon({
233
233
  paths: f.paths,
234
234
  strokeColor: f.strokeColor,
@@ -239,35 +239,35 @@ const Xe = /* @__PURE__ */ j({
239
239
  return k(x, "contextmenu", (D) => B(b, D)), x.getPaths().forEach((D) => {
240
240
  A(D, "insert_at", () => e(b)), A(D, "set_at", () => e(b));
241
241
  }), x;
242
- }), i(r.value);
242
+ }), d(s.value);
243
243
  }
244
- function i(s) {
245
- d.value.map((f) => be(f).setMap(s));
244
+ function d(r) {
245
+ i.value.map((f) => be(f).setMap(r));
246
246
  }
247
- function O(s, f, b) {
248
- v(s, f, b);
247
+ function Q(r, f, b) {
248
+ v(r, f, b);
249
249
  }
250
250
  function P() {
251
- r.value = new l.maps.Map(p.value, {
251
+ s.value = new l.maps.Map(p.value, {
252
252
  center: a.center,
253
253
  zoom: a.zoom,
254
254
  mapTypeControl: !1,
255
255
  streetViewControl: !1,
256
256
  draggable: !0,
257
257
  scrollwheel: !0
258
- }), O(r.value, "click", (s) => n("map-click", _(s)));
258
+ }), Q(s.value, "click", (r) => n("map-click", _(r)));
259
259
  }
260
260
  return ee(() => a.markers, C, { deep: !0 }), ee(() => a.polygons, w, { deep: !0 }), te(() => {
261
261
  !p.value || !l || (P(), C(a.markers), w(a.polygons));
262
262
  }), Fe(() => {
263
- u.forEach((s) => s.remove());
264
- }), (s, f) => (S(), z("div", {
263
+ u.forEach((r) => r.remove());
264
+ }), (r, f) => (S(), q("div", {
265
265
  ref_key: "mapRef",
266
266
  ref: p,
267
267
  class: "map app-map"
268
268
  }, null, 512));
269
269
  }
270
- }), Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex flex-col gap-8" }, Qe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ j({
270
+ }), Ye = { class: "flex flex-col gap-24" }, Je = { class: "flex flex-col gap-8" }, Qe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, eo = { class: "fm-typo-en-body-lg-600" }, oo = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, to = { class: "fm-typo-en-body-lg-600" }, ao = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, lo = { class: "fm-typo-en-body-lg-600" }, so = /* @__PURE__ */ I({
271
271
  __name: "CoordinateDialog",
272
272
  props: {
273
273
  address: {
@@ -280,22 +280,22 @@ const Xe = /* @__PURE__ */ j({
280
280
  }
281
281
  },
282
282
  setup(m) {
283
- const h = m, y = Ge(), a = le(), { t: n } = q(), l = xe(
284
- G(h.coordinate ? h.coordinate : ae.jb)
285
- ), p = W(""), r = Ee(async function() {
283
+ const h = m, y = Ge(), a = le(), { t: n } = j(), l = xe(
284
+ O(h.coordinate ? h.coordinate : ae.jb)
285
+ ), p = W(""), s = Ee(async function() {
286
286
  p.value = await a.getFirstMatchingAddress(
287
287
  l.lat,
288
288
  l.lng
289
289
  );
290
290
  }, 1e3);
291
291
  te(() => {
292
- y.emitData(G(l)), r();
292
+ y.emitData(O(l)), s();
293
293
  });
294
294
  function u({ position: v }) {
295
- l.lat = v.lat, l.lng = v.lng, y.emitData(G(l)), r();
295
+ l.lat = v.lat, l.lng = v.lng, y.emitData(O(l)), s();
296
296
  }
297
297
  const _ = W();
298
- return (v, M) => (S(), z("div", Ye, [
298
+ return (v, M) => (S(), q("div", Ye, [
299
299
  g("div", Je, [
300
300
  g("div", null, [
301
301
  g("span", Qe, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
@@ -332,7 +332,7 @@ function ke([m, h]) {
332
332
  function no({ lng: m, lat: h }) {
333
333
  return [m, h];
334
334
  }
335
- const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1 }, po = /* @__PURE__ */ j({
335
+ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1 }, po = /* @__PURE__ */ I({
336
336
  __name: "FmCoordinateInput",
337
337
  props: {
338
338
  address: {},
@@ -349,12 +349,12 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
349
349
  },
350
350
  emits: ["update:modelValue"],
351
351
  setup(m, { emit: h }) {
352
- const y = m, a = h, n = le(), l = Me(), p = se(), r = oe(y, "modelValue"), u = W(!1), { t: _ } = q();
353
- function v(d) {
354
- if (d != null && d[0] && (d != null && d[1]))
355
- return _("inventory.formField.coordinate.longLat", [d[0].toFixed(3), d[1].toFixed(3)]);
352
+ const y = m, a = h, n = le(), l = Me(), p = se(), s = oe(y, "modelValue"), u = W(!1), { t: _ } = j();
353
+ function v(i) {
354
+ if (i != null && i[0] && (i != null && i[1]))
355
+ return _("inventory.formField.coordinate.longLat", [i[0].toFixed(3), i[1].toFixed(3)]);
356
356
  }
357
- async function M(d) {
357
+ async function M(i) {
358
358
  var e, t;
359
359
  const k = y.modelValue, A = !k && ((e = y.address) != null && e.formatted) ? await n.getFirstMatchingCoordinate(y.address.formatted) : null, o = k ? ke(k) : A ? ke(A) : ae.jb;
360
360
  l.open({
@@ -373,9 +373,9 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
373
373
  text: _("common.close"),
374
374
  close: !0
375
375
  }
376
- }).onPrimary(d);
376
+ }).onPrimary(i);
377
377
  }
378
- const $ = (d) => a("update:modelValue", d ? no(d) : null);
378
+ const $ = (i) => a("update:modelValue", i ? no(i) : null);
379
379
  async function C() {
380
380
  if (!y.disabled) {
381
381
  if (!n.isGoogleMapReady) {
@@ -392,35 +392,35 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
392
392
  function R() {
393
393
  a("update:modelValue", null);
394
394
  }
395
- return (d, k) => {
395
+ return (i, k) => {
396
396
  const A = L("FmField"), o = L("FmButton"), e = L("FmFormGroup");
397
- return S(), z("div", uo, [
397
+ return S(), q("div", uo, [
398
398
  V(e, {
399
399
  class: "flex-1",
400
- "model-value": c(r),
401
- label: d.label,
402
- disabled: d.disabled,
403
- required: d.labelMark === "required",
404
- optional: d.labelMark === "optional",
405
- info: d.labelInfo,
406
- rules: d.rules,
400
+ "model-value": c(s),
401
+ label: i.label,
402
+ disabled: i.disabled,
403
+ required: i.labelMark === "required",
404
+ optional: i.labelMark === "optional",
405
+ info: i.labelInfo,
406
+ rules: i.rules,
407
407
  focused: u.value,
408
- "helper-text": d.helperText,
409
- "helper-state": d.helperState,
408
+ "helper-text": i.helperText,
409
+ "helper-state": i.helperState,
410
410
  onClick: k[0] || (k[0] = (t) => C())
411
411
  }, $e({
412
412
  default: N(({ invalid: t }) => [
413
- d.modelValue && d.modelValue[0] && d.modelValue[1] ? (S(), z("div", io, [
413
+ i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(), q("div", io, [
414
414
  V(A, {
415
415
  invalid: t,
416
416
  class: "fm-typo-en-body-lg-400"
417
417
  }, {
418
418
  default: N(() => [
419
- We(U(v(d.modelValue)), 1)
419
+ We(U(v(i.modelValue)), 1)
420
420
  ]),
421
421
  _: 2
422
422
  }, 1032, ["invalid"])
423
- ])) : (S(), z("div", co, [
423
+ ])) : (S(), q("div", co, [
424
424
  V(o, {
425
425
  label: c(_)("inventory.formField.coordinate.addCoordinate"),
426
426
  "prepend-icon": "add",
@@ -430,15 +430,15 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
430
430
  ]),
431
431
  _: 2
432
432
  }, [
433
- d.$slots.label ? {
433
+ i.$slots.label ? {
434
434
  name: "label",
435
435
  fn: N(() => [
436
- De(d.$slots, "label")
436
+ De(i.$slots, "label")
437
437
  ]),
438
438
  key: "0"
439
439
  } : void 0
440
440
  ]), 1032, ["model-value", "label", "disabled", "required", "optional", "info", "rules", "focused", "helper-text", "helper-state"]),
441
- d.modelValue && d.modelValue[0] && d.modelValue[1] ? (S(), I(o, {
441
+ i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(), z(o, {
442
442
  key: 0,
443
443
  "prepend-icon": "delete",
444
444
  variant: "tertiary",
@@ -447,7 +447,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
447
447
  ]);
448
448
  };
449
449
  }
450
- }), mo = { class: "flex flex-col gap-40" }, fo = { class: "flex flex-col gap-16" }, ho = { class: "flex flex-col gap-8" }, yo = { class: "fm-typo-en-title-sm-800" }, vo = { class: "grid grid-cols-2 gap-24" }, go = { class: "flex flex-col gap-8" }, bo = { class: "fm-typo-en-title-sm-800" }, wo = { class: "flex flex-col gap-8" }, Vo = { class: "fm-typo-en-title-sm-800" }, _o = { class: "flex flex-col gap-16" }, ko = /* @__PURE__ */ j({
450
+ }), mo = { class: "flex flex-col gap-40" }, fo = { class: "flex flex-col gap-16" }, ho = { class: "flex flex-col gap-8" }, yo = { class: "fm-typo-en-title-sm-800" }, vo = { class: "grid grid-cols-2 gap-24" }, go = { class: "flex flex-col gap-8" }, bo = { class: "fm-typo-en-title-sm-800" }, wo = { class: "flex flex-col gap-8" }, Vo = { class: "fm-typo-en-title-sm-800" }, _o = { class: "flex flex-col gap-16" }, ko = /* @__PURE__ */ I({
451
451
  __name: "WarehouseForm",
452
452
  props: {
453
453
  modelValue: {},
@@ -455,7 +455,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
455
455
  },
456
456
  emits: ["update:modelValue", "validation-success"],
457
457
  setup(m, { expose: h, emit: y }) {
458
- const a = m, n = y, { t: l } = q(), p = F({
458
+ const a = m, n = y, { t: l } = j(), p = F({
459
459
  get() {
460
460
  var o, e;
461
461
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
@@ -464,7 +464,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
464
464
  const e = a.modelValue ?? {};
465
465
  e.profile ?? (e.profile = {}), e.profile.name = o, n("update:modelValue", e);
466
466
  }
467
- }), r = F({
467
+ }), s = F({
468
468
  get() {
469
469
  var o, e;
470
470
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.regNo) ?? "";
@@ -543,7 +543,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
543
543
  const e = a.modelValue ?? {};
544
544
  e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.coordinates = o, n("update:modelValue", e);
545
545
  }
546
- }), d = F({
546
+ }), i = F({
547
547
  get() {
548
548
  var o, e;
549
549
  return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
@@ -577,10 +577,10 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
577
577
  }
578
578
  }), (o, e) => {
579
579
  const t = L("FmTextField"), B = L("FmPhoneNumber"), w = L("FmForm");
580
- return S(), I(w, {
580
+ return S(), z(w, {
581
581
  ref_key: "formRef",
582
582
  ref: A,
583
- onValidationSuccess: e[11] || (e[11] = (i) => n("validation-success"))
583
+ onValidationSuccess: e[11] || (e[11] = (d) => n("validation-success"))
584
584
  }, {
585
585
  default: N(() => [
586
586
  g("div", mo, [
@@ -591,15 +591,15 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
591
591
  "label-mark": "required",
592
592
  label: c(l)("inventory.warehouse.companyName"),
593
593
  modelValue: p.value,
594
- "onUpdate:modelValue": e[0] || (e[0] = (i) => p.value = i)
594
+ "onUpdate:modelValue": e[0] || (e[0] = (d) => p.value = d)
595
595
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
596
596
  V(t, {
597
597
  disabled: o.disabled,
598
598
  rules: [c(E)()],
599
599
  "label-mark": "required",
600
600
  label: c(l)("inventory.warehouse.registrationNo"),
601
- modelValue: r.value,
602
- "onUpdate:modelValue": e[1] || (e[1] = (i) => r.value = i)
601
+ modelValue: s.value,
602
+ "onUpdate:modelValue": e[1] || (e[1] = (d) => s.value = d)
603
603
  }, null, 8, ["disabled", "rules", "label", "modelValue"])
604
604
  ]),
605
605
  g("div", ho, [
@@ -611,14 +611,14 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
611
611
  "label-mark": "required",
612
612
  label: c(l)("inventory.warehouse.address.line1"),
613
613
  modelValue: u.value,
614
- "onUpdate:modelValue": e[2] || (e[2] = (i) => u.value = i)
614
+ "onUpdate:modelValue": e[2] || (e[2] = (d) => u.value = d)
615
615
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
616
616
  V(t, {
617
617
  disabled: o.disabled,
618
618
  "label-mark": "optional",
619
619
  label: c(l)("inventory.warehouse.address.line2"),
620
620
  modelValue: _.value,
621
- "onUpdate:modelValue": e[3] || (e[3] = (i) => _.value = i)
621
+ "onUpdate:modelValue": e[3] || (e[3] = (d) => _.value = d)
622
622
  }, null, 8, ["disabled", "label", "modelValue"]),
623
623
  V(t, {
624
624
  disabled: o.disabled,
@@ -626,7 +626,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
626
626
  "label-mark": "required",
627
627
  label: c(l)("inventory.warehouse.address.city"),
628
628
  modelValue: v.value,
629
- "onUpdate:modelValue": e[4] || (e[4] = (i) => v.value = i)
629
+ "onUpdate:modelValue": e[4] || (e[4] = (d) => v.value = d)
630
630
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
631
631
  V(t, {
632
632
  disabled: o.disabled,
@@ -634,7 +634,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
634
634
  "label-mark": "required",
635
635
  label: c(l)("inventory.warehouse.address.postcode"),
636
636
  modelValue: M.value,
637
- "onUpdate:modelValue": e[5] || (e[5] = (i) => M.value = i)
637
+ "onUpdate:modelValue": e[5] || (e[5] = (d) => M.value = d)
638
638
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
639
639
  V(t, {
640
640
  disabled: o.disabled,
@@ -642,7 +642,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
642
642
  "label-mark": "required",
643
643
  label: c(l)("inventory.warehouse.address.state"),
644
644
  modelValue: $.value,
645
- "onUpdate:modelValue": e[6] || (e[6] = (i) => $.value = i)
645
+ "onUpdate:modelValue": e[6] || (e[6] = (d) => $.value = d)
646
646
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
647
647
  V(t, {
648
648
  disabled: o.disabled,
@@ -650,7 +650,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
650
650
  "label-mark": "required",
651
651
  label: c(l)("inventory.warehouse.address.country"),
652
652
  modelValue: C.value,
653
- "onUpdate:modelValue": e[7] || (e[7] = (i) => C.value = i)
653
+ "onUpdate:modelValue": e[7] || (e[7] = (d) => C.value = d)
654
654
  }, null, 8, ["disabled", "rules", "label", "modelValue"])
655
655
  ])
656
656
  ]),
@@ -661,7 +661,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
661
661
  rules: [c(E)()],
662
662
  "label-mark": "required",
663
663
  modelValue: R.value,
664
- "onUpdate:modelValue": e[8] || (e[8] = (i) => R.value = i)
664
+ "onUpdate:modelValue": e[8] || (e[8] = (d) => R.value = d)
665
665
  }, null, 8, ["disabled", "rules", "modelValue"])
666
666
  ]),
667
667
  g("div", wo, [
@@ -672,15 +672,15 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
672
672
  rules: [c(E)()],
673
673
  "label-mark": "required",
674
674
  label: c(l)("inventory.warehouse.contact.phoneNumber"),
675
- modelValue: d.value,
676
- "onUpdate:modelValue": e[9] || (e[9] = (i) => d.value = i)
675
+ modelValue: i.value,
676
+ "onUpdate:modelValue": e[9] || (e[9] = (d) => i.value = d)
677
677
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
678
678
  V(t, {
679
679
  disabled: o.disabled,
680
680
  "label-mark": "optional",
681
681
  label: c(l)("inventory.warehouse.contact.email"),
682
682
  modelValue: k.value,
683
- "onUpdate:modelValue": e[10] || (e[10] = (i) => k.value = i)
683
+ "onUpdate:modelValue": e[10] || (e[10] = (d) => k.value = d)
684
684
  }, null, 8, ["disabled", "label", "modelValue"])
685
685
  ])
686
686
  ])
@@ -690,7 +690,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
690
690
  }, 512);
691
691
  };
692
692
  }
693
- }), Ao = { class: "flex gap-4" }, Mo = /* @__PURE__ */ j({
693
+ }), Ao = { class: "flex gap-4" }, Mo = /* @__PURE__ */ I({
694
694
  __name: "WarehouseDialog",
695
695
  props: {
696
696
  mode: {},
@@ -699,14 +699,14 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
699
699
  },
700
700
  emits: ["update:show", "submitted"],
701
701
  setup(m, { expose: h, emit: y }) {
702
- const a = m, n = y, l = W(!1), p = se(), { t: r } = q(), u = Ce(), _ = F(() => {
702
+ const a = m, n = y, l = W(!1), p = se(), { t: s } = j(), u = Ce(), _ = F(() => {
703
703
  switch (a.mode) {
704
704
  case T.READ:
705
705
  return "";
706
706
  case T.UPDATE:
707
- return r("inventory.warehouse.update.title");
707
+ return s("inventory.warehouse.update.title");
708
708
  case T.CREATE:
709
- return r("inventory.warehouse.create.title");
709
+ return s("inventory.warehouse.create.title");
710
710
  }
711
711
  return "";
712
712
  }), v = F(() => {
@@ -714,9 +714,9 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
714
714
  case T.READ:
715
715
  return "";
716
716
  case T.UPDATE:
717
- return r("common.save");
717
+ return s("common.save");
718
718
  case T.CREATE:
719
- return r("common.add");
719
+ return s("common.add");
720
720
  }
721
721
  return "";
722
722
  }), M = W();
@@ -739,7 +739,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
739
739
  var o, e;
740
740
  (e = (o = M.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
741
741
  }
742
- function d() {
742
+ function i() {
743
743
  switch (a.mode) {
744
744
  case T.READ:
745
745
  return;
@@ -757,14 +757,14 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
757
757
  u.createWarehouse(C.value),
758
758
  new Promise((t) => setTimeout(t, 1e3))
759
759
  ]), p.open({
760
- title: r("inventory.common.success"),
761
- message: r("inventory.warehouse.create.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
760
+ title: s("inventory.common.success"),
761
+ message: s("inventory.warehouse.create.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
762
762
  type: "success"
763
763
  }), n("update:show", !1), n("submitted");
764
764
  } catch (t) {
765
765
  p.open({
766
- title: r("inventory.warehouse.create.error.title"),
767
- message: r("inventory.warehouse.create.error.message"),
766
+ title: s("inventory.warehouse.create.error.title"),
767
+ message: s("inventory.warehouse.create.error.message"),
768
768
  type: "error"
769
769
  }), console.error("cannot create warehouse", t);
770
770
  } finally {
@@ -775,8 +775,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
775
775
  var o, e;
776
776
  if (C.value === null) {
777
777
  p.open({
778
- title: r("inventory.warehouse.update.error.title"),
779
- message: r("inventory.warehouse.update.error.emptyWarehouse"),
778
+ title: s("inventory.warehouse.update.error.title"),
779
+ message: s("inventory.warehouse.update.error.emptyWarehouse"),
780
780
  type: "error"
781
781
  });
782
782
  return;
@@ -787,14 +787,14 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
787
787
  u.updateWarehouse(C.value),
788
788
  new Promise((t) => setTimeout(t, 1e3))
789
789
  ]), p.open({
790
- title: r("inventory.common.success"),
791
- message: r("inventory.warehouse.update.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
790
+ title: s("inventory.common.success"),
791
+ message: s("inventory.warehouse.update.success", { name: (e = (o = C.value) == null ? void 0 : o.profile) == null ? void 0 : e.name }),
792
792
  type: "success"
793
793
  }), n("update:show", !1), n("submitted");
794
794
  } catch (t) {
795
795
  p.open({
796
- title: r("inventory.warehouse.update.error.title"),
797
- message: r("inventory.warehouse.update.error.message"),
796
+ title: s("inventory.warehouse.update.error.title"),
797
+ message: s("inventory.warehouse.update.error.message"),
798
798
  type: "error"
799
799
  }), console.error("cannot update warehouse", t);
800
800
  } finally {
@@ -803,7 +803,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
803
803
  }
804
804
  return (o, e) => {
805
805
  const t = L("FmButton"), B = L("FmSideSheet");
806
- return S(), I(B, {
806
+ return S(), z(B, {
807
807
  header: _.value,
808
808
  modelValue: c($),
809
809
  "onUpdate:modelValue": e[1] || (e[1] = (w) => we($) ? $.value = w : null),
@@ -814,13 +814,13 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
814
814
  default: N(() => {
815
815
  var w;
816
816
  return [
817
- (S(), I(ko, {
817
+ (S(), z(ko, {
818
818
  class: "w-full",
819
819
  ref_key: "formRef",
820
820
  ref: M,
821
821
  modelValue: c(C),
822
- "onUpdate:modelValue": e[0] || (e[0] = (i) => we(C) ? C.value = i : null),
823
- onValidationSuccess: d,
822
+ "onUpdate:modelValue": e[0] || (e[0] = (d) => we(C) ? C.value = d : null),
823
+ onValidationSuccess: i,
824
824
  key: ((w = o.warehouse) == null ? void 0 : w._id) ?? "",
825
825
  disabled: l.value
826
826
  }, null, 8, ["modelValue", "disabled"]))
@@ -842,10 +842,10 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
842
842
  }), Co = { class: "flex flex-col py-8" }, Fo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $o = {
843
843
  key: 0,
844
844
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
845
- }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, Lo = /* @__PURE__ */ j({
845
+ }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, Lo = /* @__PURE__ */ I({
846
846
  __name: "WarehouseView",
847
847
  setup(m) {
848
- const h = Ce(), y = Ne(), a = F(() => h.warehouses), n = Me(), l = se(), p = W(!1), { t: r } = q();
848
+ const h = Ce(), y = Ne(), a = F(() => h.warehouses), n = Me(), l = se(), p = W(!1), { t: s } = j();
849
849
  te(() => {
850
850
  y._currentLocation && A();
851
851
  }), ee([() => y._currentLocation], () => {
@@ -860,8 +860,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
860
860
  }
861
861
  async function M(w) {
862
862
  n.open({
863
- title: r("inventory.warehouse.delete.confirm"),
864
- message: r("inventory.warehouse.delete.confirmMessage", { name: w.profile.name }),
863
+ title: s("inventory.warehouse.delete.confirm"),
864
+ message: s("inventory.warehouse.delete.confirmMessage", { name: w.profile.name }),
865
865
  primaryActions: {
866
866
  text: "Delete",
867
867
  close: !0,
@@ -874,23 +874,22 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
874
874
  }).onPrimary(() => $(w));
875
875
  }
876
876
  async function $(w) {
877
- const { t: i } = q();
878
877
  n.open({
879
- title: i("inventory.warehouse.delete.deletingWarehouse"),
878
+ title: s("inventory.warehouse.delete.deletingWarehouse"),
880
879
  closeButton: !1
881
880
  });
882
881
  try {
883
882
  await h.deleteWarehouse(w), l.open({
884
- title: i("inventory.warehouse.delete.success"),
885
- message: i("inventory.warehouse.delete.deletedWarehouse", { name: w.profile.name }),
883
+ title: s("inventory.warehouse.delete.success"),
884
+ message: s("inventory.warehouse.delete.deletedWarehouse", { name: w.profile.name }),
886
885
  type: "success"
887
886
  }), await A(!0);
888
- } catch (O) {
887
+ } catch (d) {
889
888
  l.open({
890
- title: i("inventory.warehouse.delete.error"),
891
- message: i("inventory.warehouse.delete.errorMessage", { name: w.profile.name }),
889
+ title: s("inventory.warehouse.delete.error"),
890
+ message: s("inventory.warehouse.delete.errorMessage", { name: w.profile.name }),
892
891
  type: "error"
893
- }), console.error("failed to delete warehouse", O);
892
+ }), console.error("failed to delete warehouse", d);
894
893
  } finally {
895
894
  n.close();
896
895
  }
@@ -899,7 +898,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
899
898
  v,
900
899
  M
901
900
  );
902
- function d(w) {
901
+ function i(w) {
903
902
  w === "create" && _();
904
903
  }
905
904
  const k = W("");
@@ -917,19 +916,19 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
917
916
  }
918
917
  }
919
918
  const { breakpoints: o } = Ke(), e = F(() => o.value.xs || o.value.sm), t = F(() => e.value ? 10 : 20), B = Ie();
920
- return (w, i) => {
921
- const O = L("FmTable");
922
- return S(), I(je, {
923
- title: c(r)("inventory.warehouse.title"),
919
+ return (w, d) => {
920
+ const Q = L("FmTable");
921
+ return S(), z(je, {
922
+ title: c(s)("inventory.warehouse.title"),
924
923
  actions: [
925
924
  {
926
- label: c(r)("inventory.warehouse.create.title"),
925
+ label: c(s)("inventory.warehouse.create.title"),
927
926
  value: "create",
928
927
  isPrimary: !0,
929
928
  prependIcon: "add"
930
929
  }
931
930
  ],
932
- "onClick:action": d
931
+ "onClick:action": i
933
932
  }, {
934
933
  default: N(() => [
935
934
  g("div", {
@@ -945,49 +944,49 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
945
944
  searchable: "",
946
945
  "change-location": "",
947
946
  search: k.value,
948
- "onUpdate:search": i[0] || (i[0] = (P) => k.value = P)
947
+ "onUpdate:search": d[0] || (d[0] = (P) => k.value = P)
949
948
  }, null, 8, ["search"]),
950
- (S(), I(O, {
949
+ (S(), z(Q, {
951
950
  style: Re(c(B).tableHeight),
952
951
  "column-defs": c(C),
953
952
  "row-data": c(R)(a.value),
954
953
  "search-value": k.value,
955
954
  loading: !c(y)._currentLocation || p.value,
956
- onRowClick: i[1] || (i[1] = (P) => v(P.original.original)),
955
+ onRowClick: d[1] || (d[1] = (P) => v(P.original.original)),
957
956
  key: a.value.length,
958
957
  "page-size": t.value
959
958
  }, {
960
959
  "list-row": N((P) => [
961
960
  V(ze, {
962
961
  row: P,
963
- onRowClick: (s) => v(s.original)
962
+ onRowClick: (r) => v(r.original)
964
963
  }, {
965
- default: N((s) => {
966
- var f, b, x, D, K, re, ne, ue, H, ie, de, ce, pe, me, Z, fe, he, ye, ve, X, ge;
964
+ default: N((r) => {
965
+ var f, b, x, D, G, re, ne, ue, K, ie, de, ce, pe, me, H, fe, he, ye, ve, Z, ge;
967
966
  return [
968
967
  g("div", Co, [
969
968
  g("div", Fo, [
970
- V(c(J), {
971
- render: (x = (b = (f = s.warehouse) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : x.cell,
972
- props: (K = (D = s.warehouse) == null ? void 0 : D.getContext) == null ? void 0 : K.call(D)
969
+ V(c(Y), {
970
+ render: (x = (b = (f = r.warehouse) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : x.cell,
971
+ props: (G = (D = r.warehouse) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
973
972
  }, null, 8, ["render", "props"])
974
973
  ]),
975
974
  g("div", xo, [
976
- V(c(J), {
977
- render: (ue = (ne = (re = s.contact) == null ? void 0 : re.column) == null ? void 0 : ne.columnDef) == null ? void 0 : ue.cell,
978
- props: (ie = (H = s.contact) == null ? void 0 : H.getContext) == null ? void 0 : ie.call(H)
975
+ V(c(Y), {
976
+ render: (ue = (ne = (re = r.contact) == null ? void 0 : re.column) == null ? void 0 : ne.columnDef) == null ? void 0 : ue.cell,
977
+ props: (ie = (K = r.contact) == null ? void 0 : K.getContext) == null ? void 0 : ie.call(K)
979
978
  }, null, 8, ["render", "props"])
980
979
  ]),
981
- (de = P.original) != null && de.email ? (S(), z("div", $o, [
982
- V(c(J), {
983
- render: (me = (pe = (ce = s.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
984
- props: (fe = (Z = s.email) == null ? void 0 : Z.getContext) == null ? void 0 : fe.call(Z)
980
+ (de = P.original) != null && de.email ? (S(), q("div", $o, [
981
+ V(c(Y), {
982
+ render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
983
+ props: (fe = (H = r.email) == null ? void 0 : H.getContext) == null ? void 0 : fe.call(H)
985
984
  }, null, 8, ["render", "props"])
986
985
  ])) : Ae("", !0),
987
986
  g("div", Wo, [
988
- V(c(J), {
989
- render: (ve = (ye = (he = s.address) == null ? void 0 : he.column) == null ? void 0 : ye.columnDef) == null ? void 0 : ve.cell,
990
- props: (ge = (X = s.address) == null ? void 0 : X.getContext) == null ? void 0 : ge.call(X)
987
+ V(c(Y), {
988
+ render: (ve = (ye = (he = r.address) == null ? void 0 : he.column) == null ? void 0 : ye.columnDef) == null ? void 0 : ve.cell,
989
+ props: (ge = (Z = r.address) == null ? void 0 : Z.getContext) == null ? void 0 : ge.call(Z)
991
990
  }, null, 8, ["render", "props"])
992
991
  ])
993
992
  ])
@@ -1001,10 +1000,10 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
1001
1000
  ], 2),
1002
1001
  V(Mo, {
1003
1002
  show: u.value.show,
1004
- "onUpdate:show": i[2] || (i[2] = (P) => u.value.show = P),
1003
+ "onUpdate:show": d[2] || (d[2] = (P) => u.value.show = P),
1005
1004
  warehouse: u.value.warehouse,
1006
1005
  mode: u.value.mode,
1007
- onSubmitted: i[3] || (i[3] = (P) => A(!0))
1006
+ onSubmitted: d[3] || (d[3] = (P) => A(!0))
1008
1007
  }, null, 8, ["show", "warehouse", "mode"])
1009
1008
  ]),
1010
1009
  _: 1