@feedmepos/mf-mdm 1.6.7-beta.232 → 1.6.7-beta.233

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.
@@ -1,7 +1,7 @@
1
- import { defineComponent as Ne, resolveComponent as I, openBlock as p, createElementBlock as g, createElementVNode as r, toDisplayString as h, unref as a, createVNode as f, computed as Q, ref as N, watch as je, onMounted as mt, createBlock as V, isRef as nn, createSlots as On, withCtx as k, createCommentVNode as C, Fragment as oe, renderList as me, normalizeClass as on, withModifiers as Rt, nextTick as sn, createTextVNode as Ct, Teleport as Sn, h as Z } from "vue";
2
- import { b as An, C as Dn, r as Wt, h as nt, c as xn, w as zn, e as Nn, S as Pn, x as Un, F as Ln, u as an, y as X, z as Mn, A as J, B as Tt, D as we, G as pt, H as ln, I as lt, v as Bn } from "./index-b553bf22.js";
3
- import { useI18n as Se, useCoreStore as ft } from "@feedmepos/mf-common";
4
- import { useProxiedModel as dt, useSnackbar as qe, SnackbarPosition as W, useBreakpoints as Ot, useDialog as St, useDialogChild as rn, components as $e } from "@feedmepos/ui-library";
1
+ import { defineComponent as Ne, resolveComponent as I, openBlock as p, createElementBlock as g, createElementVNode as r, toDisplayString as h, unref as a, createVNode as f, computed as Q, ref as N, watch as je, onMounted as ut, createBlock as V, isRef as nn, createSlots as Sn, withCtx as R, createCommentVNode as k, Fragment as ae, renderList as me, normalizeClass as on, withModifiers as Rt, nextTick as sn, createTextVNode as Ct, Teleport as On, h as Z } from "vue";
2
+ import { b as Dn, C as An, r as Gt, h as tt, c as xn, w as zn, e as Nn, S as Pn, x as Un, F as Ln, u as an, y as X, z as Mn, A as J, B as Tt, D as Ee, G as dt, H as ln, I as at, v as Bn } from "./index-b553bf22.js";
3
+ import { useI18n as Se, useCoreStore as mt } from "@feedmepos/mf-common";
4
+ import { useProxiedModel as ct, useSnackbar as qe, SnackbarPosition as G, useBreakpoints as St, useDialog as Ot, useDialogChild as rn, components as $e } from "@feedmepos/ui-library";
5
5
  import { storeToRefs as $n } from "pinia";
6
6
  const Vn = { class: "flex flex-col gap-16" }, jn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, qn = {
7
7
  key: 0,
@@ -9,7 +9,7 @@ const Vn = { class: "flex flex-col gap-16" }, jn = { class: "fm-typo-en-body-md-
9
9
  }, Hn = {
10
10
  key: 1,
11
11
  class: "flex justify-start"
12
- }, Wn = /* @__PURE__ */ Ne({
12
+ }, Gn = /* @__PURE__ */ Ne({
13
13
  __name: "BindOtpDialog",
14
14
  props: {
15
15
  restaurantId: {
@@ -22,18 +22,18 @@ const Vn = { class: "flex flex-col gap-16" }, jn = { class: "fm-typo-en-body-md-
22
22
  }
23
23
  },
24
24
  setup(e) {
25
- const { t } = Se(), o = dt(e, "otp"), s = qe(), c = async (d) => {
26
- const i = "text/plain", v = new Blob([d], { type: i }), y = [new ClipboardItem({ [i]: v })];
25
+ const { t } = Se(), o = ct(e, "otp"), s = qe(), c = async (m) => {
26
+ const i = "text/plain", _ = new Blob([m], { type: i }), y = [new ClipboardItem({ [i]: _ })];
27
27
  await navigator.clipboard.write(y).then(() => {
28
28
  s.open({
29
29
  message: t("device.otp.otpCopiedMessage"),
30
30
  type: "success",
31
- position: W.BOTTOM
31
+ position: G.BOTTOM
32
32
  });
33
33
  });
34
34
  };
35
- return (d, i) => {
36
- const v = I("FmCircularProgress");
35
+ return (m, i) => {
36
+ const _ = I("FmCircularProgress");
37
37
  return p(), g("div", Vn, [
38
38
  r("div", jn, h(a(t)("device.otp.otpExpiryMessage")), 1),
39
39
  a(o) ? (p(), g("div", qn, [
@@ -42,7 +42,7 @@ const Vn = { class: "flex flex-col gap-16" }, jn = { class: "fm-typo-en-body-md-
42
42
  onClick: i[0] || (i[0] = (y) => c(a(o)))
43
43
  }, h(a(o)), 1)
44
44
  ])) : (p(), g("div", Hn, [
45
- f(v, { size: "lg" })
45
+ f(_, { size: "lg" })
46
46
  ]))
47
47
  ]);
48
48
  };
@@ -64,7 +64,7 @@ const Vn = { class: "flex flex-col gap-16" }, jn = { class: "fm-typo-en-body-md-
64
64
  * See the License for the specific language governing permissions and
65
65
  * limitations under the License.
66
66
  */
67
- const cn = "firebasestorage.googleapis.com", un = "storageBucket", Gn = 2 * 60 * 1e3, Yn = 10 * 60 * 1e3;
67
+ const cn = "firebasestorage.googleapis.com", un = "storageBucket", Wn = 2 * 60 * 1e3, Yn = 10 * 60 * 1e3;
68
68
  /**
69
69
  * @license
70
70
  * Copyright 2017 Google LLC
@@ -121,7 +121,7 @@ var q;
121
121
  function It(e) {
122
122
  return "storage/" + e;
123
123
  }
124
- function At() {
124
+ function Dt() {
125
125
  const e = "An unknown error occurred, please check the error payload for server response.";
126
126
  return new H(q.UNKNOWN, e);
127
127
  }
@@ -174,10 +174,10 @@ function dn() {
174
174
  function ro(e) {
175
175
  return new H(q.INVALID_ROOT_OPERATION, "The operation '" + e + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
176
176
  }
177
- function tt(e, t) {
177
+ function et(e, t) {
178
178
  return new H(q.INVALID_FORMAT, "String does not match format '" + e + "': " + t);
179
179
  }
180
- function et(e) {
180
+ function Je(e) {
181
181
  throw new H(q.INTERNAL_ERROR, "Internal error: " + e);
182
182
  }
183
183
  /**
@@ -196,7 +196,7 @@ function et(e) {
196
196
  * See the License for the specific language governing permissions and
197
197
  * limitations under the License.
198
198
  */
199
- class le {
199
+ class re {
200
200
  constructor(t, n) {
201
201
  this.bucket = t, this.path_ = n;
202
202
  }
@@ -216,9 +216,9 @@ class le {
216
216
  static makeFromBucketSpec(t, n) {
217
217
  let o;
218
218
  try {
219
- o = le.makeFromUrl(t, n);
219
+ o = re.makeFromUrl(t, n);
220
220
  } catch {
221
- return new le(t, "");
221
+ return new re(t, "");
222
222
  }
223
223
  if (o.path === "")
224
224
  return o;
@@ -230,15 +230,15 @@ class le {
230
230
  function c(E) {
231
231
  E.path.charAt(E.path.length - 1) === "/" && (E.path_ = E.path_.slice(0, -1));
232
232
  }
233
- const d = "(/(.*))?$", i = new RegExp("^gs://" + s + d, "i"), v = { bucket: 1, path: 3 };
233
+ const m = "(/(.*))?$", i = new RegExp("^gs://" + s + m, "i"), _ = { bucket: 1, path: 3 };
234
234
  function y(E) {
235
235
  E.path_ = decodeURIComponent(E.path);
236
236
  }
237
- const F = "v[A-Za-z0-9_]+", A = n.replace(/[.]/g, "\\."), x = "(/([^?#]*).*)?$", D = new RegExp(`^https?://${A}/${F}/b/${s}/o${x}`, "i"), S = { bucket: 1, path: 3 }, P = n === cn ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, L = "([^?#]*)", j = new RegExp(`^https?://${P}/${s}/${L}`, "i"), O = [
238
- { regex: i, indices: v, postModify: c },
237
+ const F = "v[A-Za-z0-9_]+", A = n.replace(/[.]/g, "\\."), z = "(/([^?#]*).*)?$", x = new RegExp(`^https?://${A}/${F}/b/${s}/o${z}`, "i"), O = { bucket: 1, path: 3 }, P = n === cn ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, M = "([^?#]*)", j = new RegExp(`^https?://${P}/${s}/${M}`, "i"), S = [
238
+ { regex: i, indices: _, postModify: c },
239
239
  {
240
- regex: D,
241
- indices: S,
240
+ regex: x,
241
+ indices: O,
242
242
  postModify: y
243
243
  },
244
244
  {
@@ -247,12 +247,12 @@ class le {
247
247
  postModify: y
248
248
  }
249
249
  ];
250
- for (let E = 0; E < O.length; E++) {
251
- const T = O[E], U = T.regex.exec(t);
250
+ for (let E = 0; E < S.length; E++) {
251
+ const T = S[E], U = T.regex.exec(t);
252
252
  if (U) {
253
- const se = U[T.indices.bucket];
253
+ const ne = U[T.indices.bucket];
254
254
  let $ = U[T.indices.path];
255
- $ || ($ = ""), o = new le(se, $), T.postModify(o);
255
+ $ || ($ = ""), o = new re(ne, $), T.postModify(o);
256
256
  break;
257
257
  }
258
258
  }
@@ -290,45 +290,45 @@ class co {
290
290
  * limitations under the License.
291
291
  */
292
292
  function uo(e, t, n) {
293
- let o = 1, s = null, c = null, d = !1, i = 0;
294
- function v() {
293
+ let o = 1, s = null, c = null, m = !1, i = 0;
294
+ function _() {
295
295
  return i === 2;
296
296
  }
297
297
  let y = !1;
298
- function F(...L) {
299
- y || (y = !0, t.apply(null, L));
298
+ function F(...M) {
299
+ y || (y = !0, t.apply(null, M));
300
300
  }
301
- function A(L) {
301
+ function A(M) {
302
302
  s = setTimeout(() => {
303
- s = null, e(D, v());
304
- }, L);
303
+ s = null, e(x, _());
304
+ }, M);
305
305
  }
306
- function x() {
306
+ function z() {
307
307
  c && clearTimeout(c);
308
308
  }
309
- function D(L, ...j) {
309
+ function x(M, ...j) {
310
310
  if (y) {
311
- x();
311
+ z();
312
312
  return;
313
313
  }
314
- if (L) {
315
- x(), F.call(null, L, ...j);
314
+ if (M) {
315
+ z(), F.call(null, M, ...j);
316
316
  return;
317
317
  }
318
- if (v() || d) {
319
- x(), F.call(null, L, ...j);
318
+ if (_() || m) {
319
+ z(), F.call(null, M, ...j);
320
320
  return;
321
321
  }
322
322
  o < 64 && (o *= 2);
323
- let O;
324
- i === 1 ? (i = 2, O = 0) : O = (o + Math.random()) * 1e3, A(O);
323
+ let S;
324
+ i === 1 ? (i = 2, S = 0) : S = (o + Math.random()) * 1e3, A(S);
325
325
  }
326
- let S = !1;
327
- function P(L) {
328
- S || (S = !0, x(), !y && (s !== null ? (L || (i = 2), clearTimeout(s), A(0)) : L || (i = 1)));
326
+ let O = !1;
327
+ function P(M) {
328
+ O || (O = !0, z(), !y && (s !== null ? (M || (i = 2), clearTimeout(s), A(0)) : M || (i = 1)));
329
329
  }
330
330
  return A(0), c = setTimeout(() => {
331
- d = !0, P(!0);
331
+ m = !0, P(!0);
332
332
  }, n), P;
333
333
  }
334
334
  function mo(e) {
@@ -356,10 +356,10 @@ function po(e) {
356
356
  function fo(e) {
357
357
  return typeof e == "object" && !Array.isArray(e);
358
358
  }
359
- function Dt(e) {
359
+ function At(e) {
360
360
  return typeof e == "string" || e instanceof String;
361
361
  }
362
- function Gt(e) {
362
+ function Wt(e) {
363
363
  return xt() && e instanceof Blob;
364
364
  }
365
365
  function xt() {
@@ -387,7 +387,7 @@ function Yt(e, t, n, o) {
387
387
  * See the License for the specific language governing permissions and
388
388
  * limitations under the License.
389
389
  */
390
- function ht(e, t, n) {
390
+ function pt(e, t, n) {
391
391
  let o = t;
392
392
  return n == null && (o = `https://${t}`), `${n}://${o}/v0${e}`;
393
393
  }
@@ -462,10 +462,10 @@ function ho(e, t) {
462
462
  * See the License for the specific language governing permissions and
463
463
  * limitations under the License.
464
464
  */
465
- class vo {
466
- constructor(t, n, o, s, c, d, i, v, y, F, A, x = !0) {
467
- this.url_ = t, this.method_ = n, this.headers_ = o, this.body_ = s, this.successCodes_ = c, this.additionalRetryCodes_ = d, this.callback_ = i, this.errorCallback_ = v, this.timeout_ = y, this.progressCallback_ = F, this.connectionFactory_ = A, this.retry = x, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((D, S) => {
468
- this.resolve_ = D, this.reject_ = S, this.start_();
465
+ class _o {
466
+ constructor(t, n, o, s, c, m, i, _, y, F, A, z = !0) {
467
+ this.url_ = t, this.method_ = n, this.headers_ = o, this.body_ = s, this.successCodes_ = c, this.additionalRetryCodes_ = m, this.callback_ = i, this.errorCallback_ = _, this.timeout_ = y, this.progressCallback_ = F, this.connectionFactory_ = A, this.retry = z, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((x, O) => {
468
+ this.resolve_ = x, this.reject_ = O, this.start_();
469
469
  });
470
470
  }
471
471
  /**
@@ -474,47 +474,47 @@ class vo {
474
474
  start_() {
475
475
  const t = (o, s) => {
476
476
  if (s) {
477
- o(!1, new rt(!1, null, !0));
477
+ o(!1, new it(!1, null, !0));
478
478
  return;
479
479
  }
480
480
  const c = this.connectionFactory_();
481
481
  this.pendingConnection_ = c;
482
- const d = (i) => {
483
- const v = i.loaded, y = i.lengthComputable ? i.total : -1;
484
- this.progressCallback_ !== null && this.progressCallback_(v, y);
482
+ const m = (i) => {
483
+ const _ = i.loaded, y = i.lengthComputable ? i.total : -1;
484
+ this.progressCallback_ !== null && this.progressCallback_(_, y);
485
485
  };
486
- this.progressCallback_ !== null && c.addUploadProgressListener(d), c.send(this.url_, this.method_, this.body_, this.headers_).then(() => {
487
- this.progressCallback_ !== null && c.removeUploadProgressListener(d), this.pendingConnection_ = null;
488
- const i = c.getErrorCode() === xe.NO_ERROR, v = c.getStatus();
489
- if (!i || ho(v, this.additionalRetryCodes_) && this.retry) {
486
+ this.progressCallback_ !== null && c.addUploadProgressListener(m), c.send(this.url_, this.method_, this.body_, this.headers_).then(() => {
487
+ this.progressCallback_ !== null && c.removeUploadProgressListener(m), this.pendingConnection_ = null;
488
+ const i = c.getErrorCode() === xe.NO_ERROR, _ = c.getStatus();
489
+ if (!i || ho(_, this.additionalRetryCodes_) && this.retry) {
490
490
  const F = c.getErrorCode() === xe.ABORT;
491
- o(!1, new rt(!1, null, F));
491
+ o(!1, new it(!1, null, F));
492
492
  return;
493
493
  }
494
- const y = this.successCodes_.indexOf(v) !== -1;
495
- o(!0, new rt(y, c));
494
+ const y = this.successCodes_.indexOf(_) !== -1;
495
+ o(!0, new it(y, c));
496
496
  });
497
497
  }, n = (o, s) => {
498
- const c = this.resolve_, d = this.reject_, i = s.connection;
498
+ const c = this.resolve_, m = this.reject_, i = s.connection;
499
499
  if (s.wasSuccessCode)
500
500
  try {
501
- const v = this.callback_(i, i.getResponse());
502
- po(v) ? c(v) : c();
503
- } catch (v) {
504
- d(v);
501
+ const _ = this.callback_(i, i.getResponse());
502
+ po(_) ? c(_) : c();
503
+ } catch (_) {
504
+ m(_);
505
505
  }
506
506
  else if (i !== null) {
507
- const v = At();
508
- v.serverResponse = i.getErrorText(), this.errorCallback_ ? d(this.errorCallback_(i, v)) : d(v);
507
+ const _ = Dt();
508
+ _.serverResponse = i.getErrorText(), this.errorCallback_ ? m(this.errorCallback_(i, _)) : m(_);
509
509
  } else if (s.canceled) {
510
- const v = this.appDelete_ ? dn() : to();
511
- d(v);
510
+ const _ = this.appDelete_ ? dn() : to();
511
+ m(_);
512
512
  } else {
513
- const v = eo();
514
- d(v);
513
+ const _ = eo();
514
+ m(_);
515
515
  }
516
516
  };
517
- this.canceled_ ? n(!1, new rt(!1, null, !0)) : this.backoffId_ = uo(t, n, this.timeout_);
517
+ this.canceled_ ? n(!1, new it(!1, null, !0)) : this.backoffId_ = uo(t, n, this.timeout_);
518
518
  }
519
519
  /** @inheritDoc */
520
520
  getPromise() {
@@ -525,12 +525,12 @@ class vo {
525
525
  this.canceled_ = !0, this.appDelete_ = t || !1, this.backoffId_ !== null && mo(this.backoffId_), this.pendingConnection_ !== null && this.pendingConnection_.abort();
526
526
  }
527
527
  }
528
- class rt {
528
+ class it {
529
529
  constructor(t, n, o) {
530
530
  this.wasSuccessCode = t, this.connection = n, this.canceled = !!o;
531
531
  }
532
532
  }
533
- function _o(e, t) {
533
+ function vo(e, t) {
534
534
  t !== null && t.length > 0 && (e.Authorization = "Firebase " + t);
535
535
  }
536
536
  function go(e, t) {
@@ -542,9 +542,9 @@ function bo(e, t) {
542
542
  function yo(e, t) {
543
543
  t !== null && (e["X-Firebase-AppCheck"] = t);
544
544
  }
545
- function To(e, t, n, o, s, c, d = !0) {
546
- const i = mn(e.urlParams), v = e.url + i, y = Object.assign({}, e.headers);
547
- return bo(y, t), _o(y, n), go(y, c), yo(y, o), new vo(v, e.method, y, e.body, e.successCodes, e.additionalRetryCodes, e.handler, e.errorHandler, e.timeout, e.progressCallback, s, d);
545
+ function To(e, t, n, o, s, c, m = !0) {
546
+ const i = mn(e.urlParams), _ = e.url + i, y = Object.assign({}, e.headers);
547
+ return bo(y, t), vo(y, n), go(y, c), yo(y, o), new _o(_, e.method, y, e.body, e.successCodes, e.additionalRetryCodes, e.handler, e.errorHandler, e.timeout, e.progressCallback, s, m);
548
548
  }
549
549
  /**
550
550
  * @license
@@ -618,7 +618,7 @@ function Fo(e) {
618
618
  * See the License for the specific language governing permissions and
619
619
  * limitations under the License.
620
620
  */
621
- const ye = {
621
+ const ge = {
622
622
  /**
623
623
  * Indicates the string should be interpreted "raw", that is, as normal text.
624
624
  * The string will be interpreted as UTF-16, then uploaded as a UTF-8 byte
@@ -659,15 +659,15 @@ class Et {
659
659
  }
660
660
  function Co(e, t) {
661
661
  switch (e) {
662
- case ye.RAW:
662
+ case ge.RAW:
663
663
  return new Et(pn(t));
664
- case ye.BASE64:
665
- case ye.BASE64URL:
664
+ case ge.BASE64:
665
+ case ge.BASE64URL:
666
666
  return new Et(fn(e, t));
667
- case ye.DATA_URL:
668
- return new Et(Ro(t), Oo(t));
667
+ case ge.DATA_URL:
668
+ return new Et(Ro(t), So(t));
669
669
  }
670
- throw At();
670
+ throw Dt();
671
671
  }
672
672
  function pn(e) {
673
673
  const t = [];
@@ -681,8 +681,8 @@ function pn(e) {
681
681
  if (!(n < e.length - 1 && (e.charCodeAt(n + 1) & 64512) === 56320))
682
682
  t.push(239, 191, 189);
683
683
  else {
684
- const c = o, d = e.charCodeAt(++n);
685
- o = 65536 | (c & 1023) << 10 | d & 1023, t.push(240 | o >> 18, 128 | o >> 12 & 63, 128 | o >> 6 & 63, 128 | o & 63);
684
+ const c = o, m = e.charCodeAt(++n);
685
+ o = 65536 | (c & 1023) << 10 | m & 1023, t.push(240 | o >> 18, 128 | o >> 12 & 63, 128 | o >> 6 & 63, 128 | o & 63);
686
686
  }
687
687
  else
688
688
  (o & 64512) === 56320 ? t.push(239, 191, 189) : t.push(224 | o >> 12, 128 | o >> 6 & 63, 128 | o & 63);
@@ -694,22 +694,22 @@ function ko(e) {
694
694
  try {
695
695
  t = decodeURIComponent(e);
696
696
  } catch {
697
- throw tt(ye.DATA_URL, "Malformed data URL.");
697
+ throw et(ge.DATA_URL, "Malformed data URL.");
698
698
  }
699
699
  return pn(t);
700
700
  }
701
701
  function fn(e, t) {
702
702
  switch (e) {
703
- case ye.BASE64: {
703
+ case ge.BASE64: {
704
704
  const s = t.indexOf("-") !== -1, c = t.indexOf("_") !== -1;
705
705
  if (s || c)
706
- throw tt(e, "Invalid character '" + (s ? "-" : "_") + "' found: is it base64url encoded?");
706
+ throw et(e, "Invalid character '" + (s ? "-" : "_") + "' found: is it base64url encoded?");
707
707
  break;
708
708
  }
709
- case ye.BASE64URL: {
709
+ case ge.BASE64URL: {
710
710
  const s = t.indexOf("+") !== -1, c = t.indexOf("/") !== -1;
711
711
  if (s || c)
712
- throw tt(e, "Invalid character '" + (s ? "+" : "/") + "' found: is it base64 encoded?");
712
+ throw et(e, "Invalid character '" + (s ? "+" : "/") + "' found: is it base64 encoded?");
713
713
  t = t.replace(/-/g, "+").replace(/_/g, "/");
714
714
  break;
715
715
  }
@@ -718,7 +718,7 @@ function fn(e, t) {
718
718
  try {
719
719
  n = Fo(t);
720
720
  } catch (s) {
721
- throw s.message.includes("polyfill") ? s : tt(e, "Invalid character found");
721
+ throw s.message.includes("polyfill") ? s : et(e, "Invalid character found");
722
722
  }
723
723
  const o = new Uint8Array(n.length);
724
724
  for (let s = 0; s < n.length; s++)
@@ -730,19 +730,19 @@ class hn {
730
730
  this.base64 = !1, this.contentType = null;
731
731
  const n = t.match(/^data:([^,]+)?,/);
732
732
  if (n === null)
733
- throw tt(ye.DATA_URL, "Must be formatted 'data:[<mediatype>][;base64],<data>");
733
+ throw et(ge.DATA_URL, "Must be formatted 'data:[<mediatype>][;base64],<data>");
734
734
  const o = n[1] || null;
735
- o != null && (this.base64 = So(o, ";base64"), this.contentType = this.base64 ? o.substring(0, o.length - 7) : o), this.rest = t.substring(t.indexOf(",") + 1);
735
+ o != null && (this.base64 = Oo(o, ";base64"), this.contentType = this.base64 ? o.substring(0, o.length - 7) : o), this.rest = t.substring(t.indexOf(",") + 1);
736
736
  }
737
737
  }
738
738
  function Ro(e) {
739
739
  const t = new hn(e);
740
- return t.base64 ? fn(ye.BASE64, t.rest) : ko(t.rest);
740
+ return t.base64 ? fn(ge.BASE64, t.rest) : ko(t.rest);
741
741
  }
742
- function Oo(e) {
742
+ function So(e) {
743
743
  return new hn(e).contentType;
744
744
  }
745
- function So(e, t) {
745
+ function Oo(e, t) {
746
746
  return e.length >= t.length ? e.substring(e.length - t.length) === t : !1;
747
747
  }
748
748
  /**
@@ -761,10 +761,10 @@ function So(e, t) {
761
761
  * See the License for the specific language governing permissions and
762
762
  * limitations under the License.
763
763
  */
764
- class Oe {
764
+ class Re {
765
765
  constructor(t, n) {
766
766
  let o = 0, s = "";
767
- Gt(t) ? (this.data_ = t, o = t.size, s = t.type) : t instanceof ArrayBuffer ? (n ? this.data_ = new Uint8Array(t) : (this.data_ = new Uint8Array(t.byteLength), this.data_.set(new Uint8Array(t))), o = this.data_.length) : t instanceof Uint8Array && (n ? this.data_ = t : (this.data_ = new Uint8Array(t.length), this.data_.set(t)), o = t.length), this.size_ = o, this.type_ = s;
767
+ Wt(t) ? (this.data_ = t, o = t.size, s = t.type) : t instanceof ArrayBuffer ? (n ? this.data_ = new Uint8Array(t) : (this.data_ = new Uint8Array(t.byteLength), this.data_.set(new Uint8Array(t))), o = this.data_.length) : t instanceof Uint8Array && (n ? this.data_ = t : (this.data_ = new Uint8Array(t.length), this.data_.set(t)), o = t.length), this.size_ = o, this.type_ = s;
768
768
  }
769
769
  size() {
770
770
  return this.size_;
@@ -773,30 +773,30 @@ class Oe {
773
773
  return this.type_;
774
774
  }
775
775
  slice(t, n) {
776
- if (Gt(this.data_)) {
776
+ if (Wt(this.data_)) {
777
777
  const o = this.data_, s = wo(o, t, n);
778
- return s === null ? null : new Oe(s);
778
+ return s === null ? null : new Re(s);
779
779
  } else {
780
780
  const o = new Uint8Array(this.data_.buffer, t, n - t);
781
- return new Oe(o, !0);
781
+ return new Re(o, !0);
782
782
  }
783
783
  }
784
784
  static getBlob(...t) {
785
785
  if (xt()) {
786
- const n = t.map((o) => o instanceof Oe ? o.data_ : o);
787
- return new Oe(Eo.apply(null, n));
786
+ const n = t.map((o) => o instanceof Re ? o.data_ : o);
787
+ return new Re(Eo.apply(null, n));
788
788
  } else {
789
- const n = t.map((d) => Dt(d) ? Co(ye.RAW, d).data : d.data_);
789
+ const n = t.map((m) => At(m) ? Co(ge.RAW, m).data : m.data_);
790
790
  let o = 0;
791
- n.forEach((d) => {
792
- o += d.byteLength;
791
+ n.forEach((m) => {
792
+ o += m.byteLength;
793
793
  });
794
794
  const s = new Uint8Array(o);
795
795
  let c = 0;
796
- return n.forEach((d) => {
797
- for (let i = 0; i < d.length; i++)
798
- s[c++] = d[i];
799
- }), new Oe(s, !0);
796
+ return n.forEach((m) => {
797
+ for (let i = 0; i < m.length; i++)
798
+ s[c++] = m[i];
799
+ }), new Re(s, !0);
800
800
  }
801
801
  }
802
802
  uploadData() {
@@ -819,7 +819,7 @@ class Oe {
819
819
  * See the License for the specific language governing permissions and
820
820
  * limitations under the License.
821
821
  */
822
- function vn(e) {
822
+ function _n(e) {
823
823
  let t;
824
824
  try {
825
825
  t = JSON.parse(e);
@@ -844,17 +844,17 @@ function vn(e) {
844
844
  * See the License for the specific language governing permissions and
845
845
  * limitations under the License.
846
846
  */
847
- function Ao(e) {
847
+ function Do(e) {
848
848
  if (e.length === 0)
849
849
  return null;
850
850
  const t = e.lastIndexOf("/");
851
851
  return t === -1 ? "" : e.slice(0, t);
852
852
  }
853
- function Do(e, t) {
853
+ function Ao(e, t) {
854
854
  const n = t.split("/").filter((o) => o.length > 0).join("/");
855
855
  return e.length === 0 ? n : e + "/" + n;
856
856
  }
857
- function _n(e) {
857
+ function vn(e) {
858
858
  const t = e.lastIndexOf("/", e.length - 2);
859
859
  return t === -1 ? e : e.slice(t + 1);
860
860
  }
@@ -877,34 +877,34 @@ function _n(e) {
877
877
  function xo(e, t) {
878
878
  return t;
879
879
  }
880
- class ne {
880
+ class se {
881
881
  constructor(t, n, o, s) {
882
882
  this.server = t, this.local = n || t, this.writable = !!o, this.xform = s || xo;
883
883
  }
884
884
  }
885
- let ct = null;
885
+ let lt = null;
886
886
  function zo(e) {
887
- return !Dt(e) || e.length < 2 ? e : _n(e);
887
+ return !At(e) || e.length < 2 ? e : vn(e);
888
888
  }
889
889
  function gn() {
890
- if (ct)
891
- return ct;
890
+ if (lt)
891
+ return lt;
892
892
  const e = [];
893
- e.push(new ne("bucket")), e.push(new ne("generation")), e.push(new ne("metageneration")), e.push(new ne("name", "fullPath", !0));
894
- function t(c, d) {
895
- return zo(d);
893
+ e.push(new se("bucket")), e.push(new se("generation")), e.push(new se("metageneration")), e.push(new se("name", "fullPath", !0));
894
+ function t(c, m) {
895
+ return zo(m);
896
896
  }
897
- const n = new ne("name");
897
+ const n = new se("name");
898
898
  n.xform = t, e.push(n);
899
- function o(c, d) {
900
- return d !== void 0 ? Number(d) : d;
899
+ function o(c, m) {
900
+ return m !== void 0 ? Number(m) : m;
901
901
  }
902
- const s = new ne("size");
903
- return s.xform = o, e.push(s), e.push(new ne("timeCreated")), e.push(new ne("updated")), e.push(new ne("md5Hash", null, !0)), e.push(new ne("cacheControl", null, !0)), e.push(new ne("contentDisposition", null, !0)), e.push(new ne("contentEncoding", null, !0)), e.push(new ne("contentLanguage", null, !0)), e.push(new ne("contentType", null, !0)), e.push(new ne("metadata", "customMetadata", !0)), ct = e, ct;
902
+ const s = new se("size");
903
+ return s.xform = o, e.push(s), e.push(new se("timeCreated")), e.push(new se("updated")), e.push(new se("md5Hash", null, !0)), e.push(new se("cacheControl", null, !0)), e.push(new se("contentDisposition", null, !0)), e.push(new se("contentEncoding", null, !0)), e.push(new se("contentLanguage", null, !0)), e.push(new se("contentType", null, !0)), e.push(new se("metadata", "customMetadata", !0)), lt = e, lt;
904
904
  }
905
905
  function No(e, t) {
906
906
  function n() {
907
- const o = e.bucket, s = e.fullPath, c = new le(o, s);
907
+ const o = e.bucket, s = e.fullPath, c = new re(o, s);
908
908
  return t._makeStorageReference(c);
909
909
  }
910
910
  Object.defineProperty(e, "ref", { get: n });
@@ -914,29 +914,29 @@ function Po(e, t, n) {
914
914
  o.type = "file";
915
915
  const s = n.length;
916
916
  for (let c = 0; c < s; c++) {
917
- const d = n[c];
918
- o[d.local] = d.xform(o, t[d.server]);
917
+ const m = n[c];
918
+ o[m.local] = m.xform(o, t[m.server]);
919
919
  }
920
920
  return No(o, e), o;
921
921
  }
922
922
  function bn(e, t, n) {
923
- const o = vn(t);
923
+ const o = _n(t);
924
924
  return o === null ? null : Po(e, o, n);
925
925
  }
926
926
  function Uo(e, t, n, o) {
927
- const s = vn(t);
928
- if (s === null || !Dt(s.downloadTokens))
927
+ const s = _n(t);
928
+ if (s === null || !At(s.downloadTokens))
929
929
  return null;
930
930
  const c = s.downloadTokens;
931
931
  if (c.length === 0)
932
932
  return null;
933
- const d = encodeURIComponent;
933
+ const m = encodeURIComponent;
934
934
  return c.split(",").map((y) => {
935
- const F = e.bucket, A = e.fullPath, x = "/b/" + d(F) + "/o/" + d(A), D = ht(x, n, o), S = mn({
935
+ const F = e.bucket, A = e.fullPath, z = "/b/" + m(F) + "/o/" + m(A), x = pt(z, n, o), O = mn({
936
936
  alt: "media",
937
937
  token: y
938
938
  });
939
- return D + S;
939
+ return x + O;
940
940
  })[0];
941
941
  }
942
942
  function Lo(e, t) {
@@ -970,7 +970,7 @@ class zt {
970
970
  */
971
971
  function yn(e) {
972
972
  if (!e)
973
- throw At();
973
+ throw Dt();
974
974
  }
975
975
  function Mo(e, t) {
976
976
  function n(o, s) {
@@ -1002,14 +1002,14 @@ function In(e) {
1002
1002
  return n;
1003
1003
  }
1004
1004
  function $o(e, t, n) {
1005
- const o = t.fullServerUrl(), s = ht(o, e.host, e._protocol), c = "GET", d = e.maxOperationRetryTime, i = new zt(s, c, Bo(e, n), d);
1005
+ const o = t.fullServerUrl(), s = pt(o, e.host, e._protocol), c = "GET", m = e.maxOperationRetryTime, i = new zt(s, c, Bo(e, n), m);
1006
1006
  return i.errorHandler = In(t), i;
1007
1007
  }
1008
1008
  function Vo(e, t) {
1009
- const n = t.fullServerUrl(), o = ht(n, e.host, e._protocol), s = "DELETE", c = e.maxOperationRetryTime;
1010
- function d(v, y) {
1009
+ const n = t.fullServerUrl(), o = pt(n, e.host, e._protocol), s = "DELETE", c = e.maxOperationRetryTime;
1010
+ function m(_, y) {
1011
1011
  }
1012
- const i = new zt(o, s, d, c);
1012
+ const i = new zt(o, s, m, c);
1013
1013
  return i.successCodes = [200, 204], i.errorHandler = In(t), i;
1014
1014
  }
1015
1015
  function jo(e, t) {
@@ -1020,32 +1020,32 @@ function qo(e, t, n) {
1020
1020
  return o.fullPath = e.path, o.size = t.size(), o.contentType || (o.contentType = jo(null, t)), o;
1021
1021
  }
1022
1022
  function Ho(e, t, n, o, s) {
1023
- const c = t.bucketOnlyServerUrl(), d = {
1023
+ const c = t.bucketOnlyServerUrl(), m = {
1024
1024
  "X-Goog-Upload-Protocol": "multipart"
1025
1025
  };
1026
1026
  function i() {
1027
- let O = "";
1027
+ let S = "";
1028
1028
  for (let E = 0; E < 2; E++)
1029
- O = O + Math.random().toString().slice(2);
1030
- return O;
1029
+ S = S + Math.random().toString().slice(2);
1030
+ return S;
1031
1031
  }
1032
- const v = i();
1033
- d["Content-Type"] = "multipart/related; boundary=" + v;
1034
- const y = qo(t, o, s), F = Lo(y, n), A = "--" + v + `\r
1032
+ const _ = i();
1033
+ m["Content-Type"] = "multipart/related; boundary=" + _;
1034
+ const y = qo(t, o, s), F = Lo(y, n), A = "--" + _ + `\r
1035
1035
  Content-Type: application/json; charset=utf-8\r
1036
1036
  \r
1037
1037
  ` + F + `\r
1038
- --` + v + `\r
1038
+ --` + _ + `\r
1039
1039
  Content-Type: ` + y.contentType + `\r
1040
1040
  \r
1041
- `, x = `\r
1042
- --` + v + "--", D = Oe.getBlob(A, o, x);
1043
- if (D === null)
1041
+ `, z = `\r
1042
+ --` + _ + "--", x = Re.getBlob(A, o, z);
1043
+ if (x === null)
1044
1044
  throw ao();
1045
- const S = { name: y.fullPath }, P = ht(c, e.host, e._protocol), L = "POST", j = e.maxUploadRetryTime, G = new zt(P, L, Mo(e, n), j);
1046
- return G.urlParams = S, G.headers = d, G.body = D.uploadData(), G.errorHandler = Tn(t), G;
1045
+ const O = { name: y.fullPath }, P = pt(c, e.host, e._protocol), M = "POST", j = e.maxUploadRetryTime, W = new zt(P, M, Mo(e, n), j);
1046
+ return W.urlParams = O, W.headers = m, W.body = x.uploadData(), W.errorHandler = Tn(t), W;
1047
1047
  }
1048
- class Wo {
1048
+ class Go {
1049
1049
  constructor() {
1050
1050
  this.sent_ = !1, this.xhr_ = new XMLHttpRequest(), this.initXhr(), this.errorCode_ = xe.NO_ERROR, this.sendPromise_ = new Promise((t) => {
1051
1051
  this.xhr_.addEventListener("abort", () => {
@@ -1059,7 +1059,7 @@ class Wo {
1059
1059
  }
1060
1060
  send(t, n, o, s) {
1061
1061
  if (this.sent_)
1062
- throw et("cannot .send() more than once");
1062
+ throw Je("cannot .send() more than once");
1063
1063
  if (this.sent_ = !0, this.xhr_.open(n, t, !0), s !== void 0)
1064
1064
  for (const c in s)
1065
1065
  s.hasOwnProperty(c) && this.xhr_.setRequestHeader(c, s[c].toString());
@@ -1067,12 +1067,12 @@ class Wo {
1067
1067
  }
1068
1068
  getErrorCode() {
1069
1069
  if (!this.sent_)
1070
- throw et("cannot .getErrorCode() before sending");
1070
+ throw Je("cannot .getErrorCode() before sending");
1071
1071
  return this.errorCode_;
1072
1072
  }
1073
1073
  getStatus() {
1074
1074
  if (!this.sent_)
1075
- throw et("cannot .getStatus() before sending");
1075
+ throw Je("cannot .getStatus() before sending");
1076
1076
  try {
1077
1077
  return this.xhr_.status;
1078
1078
  } catch {
@@ -1081,12 +1081,12 @@ class Wo {
1081
1081
  }
1082
1082
  getResponse() {
1083
1083
  if (!this.sent_)
1084
- throw et("cannot .getResponse() before sending");
1084
+ throw Je("cannot .getResponse() before sending");
1085
1085
  return this.xhr_.response;
1086
1086
  }
1087
1087
  getErrorText() {
1088
1088
  if (!this.sent_)
1089
- throw et("cannot .getErrorText() before sending");
1089
+ throw Je("cannot .getErrorText() before sending");
1090
1090
  return this.xhr_.statusText;
1091
1091
  }
1092
1092
  /** Aborts the request. */
@@ -1103,13 +1103,13 @@ class Wo {
1103
1103
  this.xhr_.upload != null && this.xhr_.upload.removeEventListener("progress", t);
1104
1104
  }
1105
1105
  }
1106
- class Go extends Wo {
1106
+ class Wo extends Go {
1107
1107
  initXhr() {
1108
1108
  this.xhr_.responseType = "text";
1109
1109
  }
1110
1110
  }
1111
1111
  function Nt() {
1112
- return new Go();
1112
+ return new Wo();
1113
1113
  }
1114
1114
  /**
1115
1115
  * @license
@@ -1129,7 +1129,7 @@ function Nt() {
1129
1129
  */
1130
1130
  class ze {
1131
1131
  constructor(t, n) {
1132
- this._service = t, n instanceof le ? this._location = n : this._location = le.makeFromUrl(n, t.host);
1132
+ this._service = t, n instanceof re ? this._location = n : this._location = re.makeFromUrl(n, t.host);
1133
1133
  }
1134
1134
  /**
1135
1135
  * Returns the URL for the bucket and path this object references,
@@ -1146,7 +1146,7 @@ class ze {
1146
1146
  * A reference to the root of this object's bucket.
1147
1147
  */
1148
1148
  get root() {
1149
- const t = new le(this._location.bucket, "");
1149
+ const t = new re(this._location.bucket, "");
1150
1150
  return this._newRef(this._service, t);
1151
1151
  }
1152
1152
  /**
@@ -1166,7 +1166,7 @@ class ze {
1166
1166
  * For example, if fullPath is 'full/path/image.png', name is 'image.png'.
1167
1167
  */
1168
1168
  get name() {
1169
- return _n(this._location.path);
1169
+ return vn(this._location.path);
1170
1170
  }
1171
1171
  /**
1172
1172
  * The `StorageService` instance this `StorageReference` is associated with.
@@ -1179,10 +1179,10 @@ class ze {
1179
1179
  * this reference is the root.
1180
1180
  */
1181
1181
  get parent() {
1182
- const t = Ao(this._location.path);
1182
+ const t = Do(this._location.path);
1183
1183
  if (t === null)
1184
1184
  return null;
1185
- const n = new le(this._location.bucket, t);
1185
+ const n = new re(this._location.bucket, t);
1186
1186
  return new ze(this._service, n);
1187
1187
  }
1188
1188
  /**
@@ -1195,7 +1195,7 @@ class ze {
1195
1195
  }
1196
1196
  function Yo(e, t, n) {
1197
1197
  e._throwIfRoot("uploadBytes");
1198
- const o = Ho(e.storage, e._location, gn(), new Oe(t, !0), n);
1198
+ const o = Ho(e.storage, e._location, gn(), new Re(t, !0), n);
1199
1199
  return e.storage.makeRequestWithTokens(o, Nt).then((s) => ({
1200
1200
  metadata: s,
1201
1201
  ref: e
@@ -1216,7 +1216,7 @@ function Xo(e) {
1216
1216
  return e.storage.makeRequestWithTokens(t, Nt);
1217
1217
  }
1218
1218
  function Zo(e, t) {
1219
- const n = Do(e._location.path, t), o = new le(e._location.bucket, n);
1219
+ const n = Ao(e._location.path, t), o = new re(e._location.bucket, n);
1220
1220
  return new ze(e.storage, o);
1221
1221
  }
1222
1222
  /**
@@ -1261,7 +1261,7 @@ function es(e, t) {
1261
1261
  }
1262
1262
  function Kt(e, t) {
1263
1263
  const n = t == null ? void 0 : t[un];
1264
- return n == null ? null : le.makeFromBucketSpec(n, e);
1264
+ return n == null ? null : re.makeFromBucketSpec(n, e);
1265
1265
  }
1266
1266
  function ts(e, t, n, o = {}) {
1267
1267
  e.host = `${t}:${n}`, e._protocol = "http";
@@ -1270,7 +1270,7 @@ function ts(e, t, n, o = {}) {
1270
1270
  }
1271
1271
  class Pt {
1272
1272
  constructor(t, n, o, s, c) {
1273
- this.app = t, this._authProvider = n, this._appCheckProvider = o, this._url = s, this._firebaseVersion = c, this._bucket = null, this._host = cn, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = Gn, this._maxUploadRetryTime = Yn, this._requests = /* @__PURE__ */ new Set(), s != null ? this._bucket = le.makeFromBucketSpec(s, this._host) : this._bucket = Kt(this._host, this.app.options);
1273
+ this.app = t, this._authProvider = n, this._appCheckProvider = o, this._url = s, this._firebaseVersion = c, this._bucket = null, this._host = cn, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = Wn, this._maxUploadRetryTime = Yn, this._requests = /* @__PURE__ */ new Set(), s != null ? this._bucket = re.makeFromBucketSpec(s, this._host) : this._bucket = Kt(this._host, this.app.options);
1274
1274
  }
1275
1275
  /**
1276
1276
  * The host string for this service, in the form of `host` or
@@ -1280,7 +1280,7 @@ class Pt {
1280
1280
  return this._host;
1281
1281
  }
1282
1282
  set host(t) {
1283
- this._host = t, this._url != null ? this._bucket = le.makeFromBucketSpec(this._url, t) : this._bucket = Kt(t, this.app.options);
1283
+ this._host = t, this._url != null ? this._bucket = re.makeFromBucketSpec(this._url, t) : this._bucket = Kt(t, this.app.options);
1284
1284
  }
1285
1285
  /**
1286
1286
  * The maximum time to retry uploads in milliseconds.
@@ -1351,8 +1351,8 @@ class Pt {
1351
1351
  if (this._deleted)
1352
1352
  return new co(dn());
1353
1353
  {
1354
- const d = To(t, this._appId, o, s, n, this._firebaseVersion, c);
1355
- return this._requests.add(d), d.getPromise().then(() => this._requests.delete(d), () => this._requests.delete(d)), d;
1354
+ const m = To(t, this._appId, o, s, n, this._firebaseVersion, c);
1355
+ return this._requests.add(m), m.getPromise().then(() => this._requests.delete(m), () => this._requests.delete(m)), m;
1356
1356
  }
1357
1357
  }
1358
1358
  async makeRequestWithTokens(t, n) {
@@ -1382,19 +1382,19 @@ const Xt = "@firebase/storage", Zt = "0.12.5";
1382
1382
  */
1383
1383
  const wn = "storage";
1384
1384
  function ns(e, t, n) {
1385
- return e = nt(e), Yo(e, t, n);
1385
+ return e = tt(e), Yo(e, t, n);
1386
1386
  }
1387
1387
  function os(e) {
1388
- return e = nt(e), Ko(e);
1388
+ return e = tt(e), Ko(e);
1389
1389
  }
1390
1390
  function ss(e) {
1391
- return e = nt(e), Xo(e);
1391
+ return e = tt(e), Xo(e);
1392
1392
  }
1393
1393
  function Qt(e, t) {
1394
- return e = nt(e), es(e, t);
1394
+ return e = tt(e), es(e, t);
1395
1395
  }
1396
1396
  function Jt(e = Nn(), t) {
1397
- e = nt(e);
1397
+ e = tt(e);
1398
1398
  const o = xn(e, wn).getImmediate({
1399
1399
  identifier: t
1400
1400
  }), s = zn("storage");
@@ -1408,12 +1408,12 @@ function is(e, { instanceIdentifier: t }) {
1408
1408
  return new Pt(n, o, s, t, Pn);
1409
1409
  }
1410
1410
  function ls() {
1411
- An(new Dn(
1411
+ Dn(new An(
1412
1412
  wn,
1413
1413
  is,
1414
1414
  "PUBLIC"
1415
1415
  /* ComponentType.PUBLIC */
1416
- ).setMultipleInstances(!0)), Wt(Xt, Zt, ""), Wt(Xt, Zt, "esm2017");
1416
+ ).setMultipleInstances(!0)), Gt(Xt, Zt, ""), Gt(Xt, Zt, "esm2017");
1417
1417
  }
1418
1418
  ls();
1419
1419
  const en = {
@@ -1425,16 +1425,16 @@ const en = {
1425
1425
  const t = Jt(), n = Qt(t, e);
1426
1426
  await ss(n);
1427
1427
  }
1428
- }, rs = { class: "w-full flex flex-col gap-5" }, cs = { class: "flex flex-col gap-4" }, us = { class: "fm-typo-en-body-lg-400" }, ds = { class: "fm-typo-en-body-lg-600" }, ms = { class: "flex flex-col gap-4" }, ps = { class: "fm-typo-en-body-lg-400" }, fs = { class: "fm-typo-en-body-lg-600" }, hs = { class: "flex flex-col gap-4" }, vs = { class: "fm-typo-en-body-lg-400" }, _s = { class: "fm-typo-en-body-lg-600" }, gs = { class: "flex flex-col gap-4" }, bs = { class: "fm-typo-en-body-lg-400" }, ys = { class: "fm-typo-en-body-lg-600" }, Ts = { class: "flex flex-col gap-4" }, Is = { class: "fm-typo-en-body-lg-400" }, Es = { class: "flex flex-row items-center gap-1" }, ws = { class: "fm-typo-en-body-lg-600" }, Fs = {
1428
+ }, rs = { class: "w-full flex flex-col gap-5" }, cs = { class: "flex flex-col gap-4" }, us = { class: "fm-typo-en-body-lg-400" }, ds = { class: "fm-typo-en-body-lg-600" }, ms = { class: "flex flex-col gap-4" }, ps = { class: "fm-typo-en-body-lg-400" }, fs = { class: "fm-typo-en-body-lg-600" }, hs = { class: "flex flex-col gap-4" }, _s = { class: "fm-typo-en-body-lg-400" }, vs = { class: "fm-typo-en-body-lg-600" }, gs = { class: "flex flex-col gap-4" }, bs = { class: "fm-typo-en-body-lg-400" }, ys = { class: "fm-typo-en-body-lg-600" }, Ts = { class: "flex flex-col gap-4" }, Is = { class: "fm-typo-en-body-lg-400" }, Es = { class: "flex flex-row items-center gap-1" }, ws = { class: "fm-typo-en-body-lg-600" }, Fs = {
1429
1429
  key: 0,
1430
1430
  class: "flex flex-col gap-4"
1431
1431
  }, Cs = { class: "fm-typo-en-body-lg-400" }, ks = { class: "fm-typo-en-body-lg-600" }, Rs = {
1432
1432
  key: 1,
1433
1433
  class: "flex flex-col gap-4"
1434
- }, Os = { class: "fm-typo-en-body-lg-400" }, Ss = { class: "fm-typo-en-body-lg-600" }, As = {
1434
+ }, Ss = { class: "fm-typo-en-body-lg-400" }, Os = { class: "fm-typo-en-body-lg-600" }, Ds = {
1435
1435
  key: 2,
1436
1436
  class: "flex flex-col gap-4"
1437
- }, Ds = { class: "fm-typo-en-body-lg-400" }, xs = { class: "fm-typo-en-body-lg-600" }, zs = {
1437
+ }, As = { class: "fm-typo-en-body-lg-400" }, xs = { class: "fm-typo-en-body-lg-600" }, zs = {
1438
1438
  key: 3,
1439
1439
  class: "flex flex-col gap-4"
1440
1440
  }, Ns = { class: "fm-typo-en-body-lg-400" }, Ps = { class: "fm-typo-en-body-lg-600" }, Us = {
@@ -1446,10 +1446,10 @@ const en = {
1446
1446
  }, Vs = { class: "fm-typo-en-body-lg-600" }, js = {
1447
1447
  key: 0,
1448
1448
  class: "flex flex-col gap-4"
1449
- }, qs = { class: "fm-typo-en-body-lg-400" }, Hs = { class: "fm-typo-en-body-lg-600" }, Ws = {
1449
+ }, qs = { class: "fm-typo-en-body-lg-400" }, Hs = { class: "fm-typo-en-body-lg-600" }, Gs = {
1450
1450
  key: 1,
1451
1451
  class: "flex flex-col gap-4"
1452
- }, Gs = { class: "fm-typo-en-body-lg-400" }, Ys = { class: "fm-typo-en-body-lg-600 break-words" }, Ks = {
1452
+ }, Ws = { class: "fm-typo-en-body-lg-400" }, Ys = { class: "fm-typo-en-body-lg-600 break-words" }, Ks = {
1453
1453
  key: 2,
1454
1454
  class: "flex flex-col gap-4"
1455
1455
  }, Xs = { class: "fm-typo-en-body-lg-400" }, Zs = { class: "fm-typo-en-body-lg-600" }, Qs = {
@@ -1470,10 +1470,10 @@ const en = {
1470
1470
  }, da = { class: "fm-typo-en-body-lg-400" }, ma = { class: "fm-typo-en-body-lg-600 break-words" }, pa = {
1471
1471
  key: 0,
1472
1472
  class: "flex flex-col gap-4"
1473
- }, fa = { class: "fm-typo-en-body-lg-400" }, ha = { class: "fm-typo-en-body-lg-600" }, va = {
1473
+ }, fa = { class: "fm-typo-en-body-lg-400" }, ha = { class: "fm-typo-en-body-lg-600" }, _a = {
1474
1474
  key: 6,
1475
1475
  class: "flex flex-col gap-8"
1476
- }, _a = { class: "fm-typo-en-title-sm-800" }, ga = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ba = {
1476
+ }, va = { class: "fm-typo-en-title-sm-800" }, ga = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ba = {
1477
1477
  key: 0,
1478
1478
  class: "flex h-full justify-center items-center"
1479
1479
  }, ya = {
@@ -1488,7 +1488,7 @@ const en = {
1488
1488
  }, Ca = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ka = {
1489
1489
  key: 7,
1490
1490
  class: "flex flex-col gap-8"
1491
- }, Ra = { class: "fm-typo-en-title-sm-600" }, Oa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sa = { class: "flex flex-col gap-3" }, Aa = { class: "flex gap-8 items-center justify-start" }, Da = /* @__PURE__ */ Ne({
1491
+ }, Ra = { class: "fm-typo-en-title-sm-600" }, Sa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oa = { class: "flex flex-col gap-3" }, Da = { class: "flex gap-8 items-center justify-start" }, Aa = /* @__PURE__ */ Ne({
1492
1492
  __name: "DeviceInformationSideSheet",
1493
1493
  props: {
1494
1494
  visible: { type: Boolean },
@@ -1497,133 +1497,133 @@ const en = {
1497
1497
  formUpdated: { type: Boolean }
1498
1498
  },
1499
1499
  setup(e) {
1500
- const { t } = Se(), { isAtMost: n } = Ot(), o = e, s = dt(o, "visible"), c = dt(o, "formUpdated"), d = ft(), i = Q(() => d.restaurants.value), v = Q(() => d.currentBusiness.value), y = (m) => {
1501
- var z, Y;
1502
- return m ? m.name ?? ((z = i.value.find((K) => K._id === m.restaurantId)) == null ? void 0 : z.profile.name) : o.device.name ?? ((Y = i.value.find((K) => K._id === o.device.restaurantId)) == null ? void 0 : Y.profile.name);
1503
- }, F = N({}), A = Q(() => Object.entries(F.value).filter(([, { deleted: m }]) => !m).map(([m]) => m)), x = an(), D = Q(() => x.getCustomerDisplayImages()), S = () => {
1504
- var m;
1505
- F.value = D.value.reduce((z, Y) => (z[Y.url] = {
1500
+ const { t } = Se(), { isAtMost: n } = St(), o = e, s = ct(o, "visible"), c = ct(o, "formUpdated"), m = mt(), i = Q(() => m.restaurants.value), _ = Q(() => m.currentBusiness.value), y = (d) => {
1501
+ var D, Y;
1502
+ return d ? d.name ?? ((D = i.value.find((ee) => ee._id === d.restaurantId)) == null ? void 0 : D.profile.name) : o.device.name ?? ((Y = i.value.find((ee) => ee._id === o.device.restaurantId)) == null ? void 0 : Y.profile.name);
1503
+ }, F = N({}), A = Q(() => Object.entries(F.value).filter(([, { deleted: d }]) => !d).map(([d]) => d)), z = an(), x = Q(() => z.getCustomerDisplayImages()), O = () => {
1504
+ var d;
1505
+ F.value = x.value.reduce((D, Y) => (D[Y.url] = {
1506
1506
  restaurantIds: Y.restaurantIds,
1507
1507
  deleted: !1
1508
- }, z), {}), P.value = (m = D.value) != null && m.length ? D.value[0].url : "";
1508
+ }, D), {}), P.value = (d = x.value) != null && d.length ? x.value[0].url : "";
1509
1509
  }, P = N(A.value.length > 0 ? A.value[0] : "");
1510
- function L(m) {
1511
- P.value = m;
1510
+ function M(d) {
1511
+ P.value = d;
1512
1512
  }
1513
1513
  function j() {
1514
- const m = A.value;
1514
+ const d = A.value;
1515
1515
  F.value[P.value].deleted = !0;
1516
- const z = m.findIndex((Y) => Y === P.value);
1517
- z >= 0 && (P.value = m[z - 1] || m[z + 1] || "");
1516
+ const D = d.findIndex((Y) => Y === P.value);
1517
+ D >= 0 && (P.value = d[D - 1] || d[D + 1] || "");
1518
1518
  }
1519
- const G = Q(
1520
- () => i.value.map((m) => m._id).every((m) => E.value.includes(m))
1521
- ), O = (m) => {
1522
- m ? F.value[P.value].restaurantIds = i.value.map((z) => z._id) : F.value[P.value].restaurantIds = [];
1523
- }, E = Q(() => F.value[P.value].restaurantIds), T = (m) => {
1524
- F.value[P.value].restaurantIds = m;
1525
- }, U = N(null), se = N(!1);
1526
- async function $(m) {
1527
- var K;
1528
- const z = `business/${(K = v.value) == null ? void 0 : K._id}/customer-display/${(/* @__PURE__ */ new Date()).toISOString()}`;
1529
- se.value = !0, await en.update(z, m).then((re) => {
1530
- F.value[re] = {
1519
+ const W = Q(
1520
+ () => i.value.map((d) => d._id).every((d) => E.value.includes(d))
1521
+ ), S = (d) => {
1522
+ d ? F.value[P.value].restaurantIds = i.value.map((D) => D._id) : F.value[P.value].restaurantIds = [];
1523
+ }, E = Q(() => F.value[P.value].restaurantIds), T = (d) => {
1524
+ F.value[P.value].restaurantIds = d;
1525
+ }, U = N(null), ne = N(!1);
1526
+ async function $(d) {
1527
+ var ee;
1528
+ const D = `business/${(ee = _.value) == null ? void 0 : ee._id}/customer-display/${(/* @__PURE__ */ new Date()).toISOString()}`;
1529
+ ne.value = !0, await en.update(D, d).then((oe) => {
1530
+ F.value[oe] = {
1531
1531
  restaurantIds: [],
1532
1532
  deleted: !1
1533
- }, P.value = re;
1534
- }), se.value = !1, await sn(), U.value.scrollIntoView(!1);
1533
+ }, P.value = oe;
1534
+ }), ne.value = !1, await sn(), U.value.scrollIntoView(!1);
1535
1535
  }
1536
- const ae = N(!1), ce = qe();
1537
- async function ee() {
1538
- ae.value = !0;
1539
- const m = Pe();
1540
- await x.updateCustomerDisplay(m).then(async () => {
1541
- ce.open({
1536
+ const ie = N(!1), be = qe();
1537
+ async function K() {
1538
+ ie.value = !0;
1539
+ const d = Pe();
1540
+ await z.updateCustomerDisplay(d).then(async () => {
1541
+ be.open({
1542
1542
  message: t("device.customerDisplay.update.success", { name: y() }),
1543
1543
  type: "success",
1544
- position: W.BOTTOM
1544
+ position: G.BOTTOM
1545
1545
  });
1546
- }).catch((z) => {
1547
- ce.open({
1546
+ }).catch((D) => {
1547
+ be.open({
1548
1548
  message: t("device.error.general"),
1549
1549
  type: "error",
1550
- position: W.BOTTOM
1550
+ position: G.BOTTOM
1551
1551
  });
1552
- }), c.value = !0, s.value = !1, await Fe(), ae.value = !1;
1552
+ }), c.value = !0, s.value = !1, await we(), ie.value = !1;
1553
1553
  }
1554
1554
  function Pe() {
1555
1555
  return {
1556
- images: A.value.map((m) => ({
1557
- url: m,
1558
- restaurantIds: F.value[m].restaurantIds
1556
+ images: A.value.map((d) => ({
1557
+ url: d,
1558
+ restaurantIds: F.value[d].restaurantIds
1559
1559
  })),
1560
- publishRestaurants: i.value.map((m) => m._id)
1560
+ publishRestaurants: i.value.map((d) => d._id)
1561
1561
  };
1562
1562
  }
1563
- async function Fe() {
1564
- const m = Object.entries(F.value).filter(([, { deleted: z }]) => z).map(([z]) => z);
1563
+ async function we() {
1564
+ const d = Object.entries(F.value).filter(([, { deleted: D }]) => D).map(([D]) => D);
1565
1565
  await Promise.all(
1566
- m.map(async (z) => {
1567
- await en.delete(z);
1566
+ d.map(async (D) => {
1567
+ await en.delete(D);
1568
1568
  })
1569
1569
  );
1570
1570
  }
1571
- const fe = (m) => new Date(m).toLocaleDateString("en-GB", {
1571
+ const fe = (d) => new Date(d).toLocaleDateString("en-GB", {
1572
1572
  day: "2-digit",
1573
1573
  month: "short",
1574
1574
  year: "numeric",
1575
1575
  hour: "2-digit",
1576
1576
  minute: "2-digit",
1577
1577
  hour12: !0
1578
- }).replace(",", "").toUpperCase(), ue = (m) => {
1579
- const z = m.replace(/([A-Z])/g, " $1").toLowerCase();
1580
- return z.charAt(0).toUpperCase() + z.slice(1);
1581
- }, de = (m) => Date.now() - new Date(m).getTime() < 6e5;
1582
- return je(s, (m) => {
1583
- m && S();
1584
- }), mt(() => {
1585
- S();
1586
- }), (m, z) => {
1587
- const Y = I("FmCardHeader"), K = I("FmCardSection"), re = I("FmCard"), st = I("FmIcon"), Ue = I("FmCircularProgress"), Ce = I("FmButton"), ke = I("FmThumbnail"), he = I("FmDropField"), at = I("FmCheckbox"), yt = I("FmForm"), Ae = I("FmSideSheet");
1588
- return p(), V(Ae, {
1578
+ }).replace(",", "").toUpperCase(), he = (d) => {
1579
+ const D = d.replace(/([A-Z])/g, " $1").toLowerCase();
1580
+ return D.charAt(0).toUpperCase() + D.slice(1);
1581
+ }, Fe = (d) => Date.now() - new Date(d).getTime() < 6e5;
1582
+ return je(s, (d) => {
1583
+ d && O();
1584
+ }), ut(() => {
1585
+ O();
1586
+ }), (d, D) => {
1587
+ const Y = I("FmCardHeader"), ee = I("FmCardSection"), oe = I("FmCard"), gt = I("FmIcon"), ot = I("FmCircularProgress"), Ce = I("FmButton"), Ue = I("FmThumbnail"), ke = I("FmDropField"), ue = I("FmCheckbox"), bt = I("FmForm"), yt = I("FmSideSheet");
1588
+ return p(), V(yt, {
1589
1589
  header: a(t)("device.information.title"),
1590
1590
  "max-width": 560,
1591
1591
  modelValue: a(s),
1592
- "onUpdate:modelValue": z[2] || (z[2] = (ve) => nn(s) ? s.value = ve : null),
1593
- "close-button": !ae.value,
1592
+ "onUpdate:modelValue": D[2] || (D[2] = (de) => nn(s) ? s.value = de : null),
1593
+ "close-button": !ie.value,
1594
1594
  "dismiss-away": !0
1595
- }, On({
1596
- default: k(() => [
1597
- f(yt, null, {
1598
- default: k(() => {
1599
- var ve, l, u, _, B, _e, He, it, Le, Me, Be, Re;
1595
+ }, Sn({
1596
+ default: R(() => [
1597
+ f(bt, null, {
1598
+ default: R(() => {
1599
+ var de, Oe, l, u, v, B, ce, He, st, Le, Me, Be;
1600
1600
  return [
1601
1601
  r("div", rs, [
1602
- f(re, { variant: "outlined" }, {
1603
- default: k(() => [
1602
+ f(oe, { variant: "outlined" }, {
1603
+ default: R(() => [
1604
1604
  f(Y, {
1605
1605
  title: a(t)("device.information.sections.deviceInfo"),
1606
1606
  class: "pb-8 px-16"
1607
1607
  }, null, 8, ["title"]),
1608
- f(K, { class: "pt-0 flex flex-col gap-8" }, {
1609
- default: k(() => {
1610
- var R, M, ge, be;
1608
+ f(ee, { class: "pt-0 flex flex-col gap-8" }, {
1609
+ default: R(() => {
1610
+ var C, L, _e, ve;
1611
1611
  return [
1612
1612
  r("div", cs, [
1613
1613
  r("div", us, h(a(t)("device.information.main.id")), 1),
1614
- r("div", ds, h(((R = m.device) == null ? void 0 : R.machineId) ?? "-"), 1)
1614
+ r("div", ds, h(((C = d.device) == null ? void 0 : C.machineId) ?? "-"), 1)
1615
1615
  ]),
1616
1616
  r("div", ms, [
1617
1617
  r("div", ps, h(a(t)("device.information.main.name")), 1),
1618
1618
  r("div", fs, h(y()), 1)
1619
1619
  ]),
1620
1620
  r("div", hs, [
1621
- r("div", vs, h(a(t)("device.information.main.type")), 1),
1622
- r("div", _s, h((M = m.device) == null ? void 0 : M.type), 1)
1621
+ r("div", _s, h(a(t)("device.information.main.type")), 1),
1622
+ r("div", vs, h((L = d.device) == null ? void 0 : L.type), 1)
1623
1623
  ]),
1624
1624
  r("div", gs, [
1625
1625
  r("div", bs, h(a(t)("device.information.main.bindingAt")), 1),
1626
- r("div", ys, h((ge = m.device) != null && ge.bindAt ? fe((be = m.device) == null ? void 0 : be.bindAt) : "-"), 1)
1626
+ r("div", ys, h((_e = d.device) != null && _e.bindAt ? fe((ve = d.device) == null ? void 0 : ve.bindAt) : "-"), 1)
1627
1627
  ])
1628
1628
  ];
1629
1629
  }),
@@ -1632,209 +1632,209 @@ const en = {
1632
1632
  ]),
1633
1633
  _: 1
1634
1634
  }),
1635
- (ve = m.device.heartbeatInfo) != null && ve.updatedAt ? (p(), V(re, {
1635
+ (de = d.device.heartbeatInfo) != null && de.updatedAt ? (p(), V(oe, {
1636
1636
  key: 0,
1637
1637
  variant: "outlined"
1638
1638
  }, {
1639
- default: k(() => [
1639
+ default: R(() => [
1640
1640
  f(Y, {
1641
1641
  title: a(t)("device.information.sections.heartbeatStatus"),
1642
1642
  class: "pb-8 px-16"
1643
1643
  }, null, 8, ["title"]),
1644
- f(K, { class: "pt-0 flex flex-col gap-8" }, {
1645
- default: k(() => {
1646
- var R, M, ge, be, De, b, te, Te, We, Ge, Ye, Ke, Xe, Ze, Qe, Je;
1644
+ f(ee, { class: "pt-0 flex flex-col gap-8" }, {
1645
+ default: R(() => {
1646
+ var C, L, _e, ve, De, Ae, b, te, ye, Ge, We, Ye, Ke, Xe, Ze, Qe;
1647
1647
  return [
1648
1648
  r("div", Ts, [
1649
1649
  r("div", Is, h(a(t)("device.information.heartbeat.lastSyncAt")), 1),
1650
1650
  r("div", Es, [
1651
- f(st, {
1651
+ f(gt, {
1652
1652
  class: "motion-safe:animate-pulse",
1653
1653
  name: "radio_button_unchecked",
1654
1654
  size: "sm",
1655
- color: de((M = (R = m.device) == null ? void 0 : R.heartbeatInfo) == null ? void 0 : M.updatedAt) ? "system-success-300" : "system-error-300"
1655
+ color: Fe((L = (C = d.device) == null ? void 0 : C.heartbeatInfo) == null ? void 0 : L.updatedAt) ? "system-success-300" : "system-error-300"
1656
1656
  }, null, 8, ["color"]),
1657
- r("div", ws, h(fe((be = (ge = m.device) == null ? void 0 : ge.heartbeatInfo) == null ? void 0 : be.updatedAt)), 1)
1657
+ r("div", ws, h(fe((ve = (_e = d.device) == null ? void 0 : _e.heartbeatInfo) == null ? void 0 : ve.updatedAt)), 1)
1658
1658
  ])
1659
1659
  ]),
1660
- (b = (De = m.device) == null ? void 0 : De.heartbeatInfo) != null && b.freeMemory ? (p(), g("div", Fs, [
1660
+ (Ae = (De = d.device) == null ? void 0 : De.heartbeatInfo) != null && Ae.freeMemory ? (p(), g("div", Fs, [
1661
1661
  r("div", Cs, h(a(t)("device.information.heartbeat.freeMemory")), 1),
1662
- r("div", ks, h((Te = (te = m.device) == null ? void 0 : te.heartbeatInfo) == null ? void 0 : Te.freeMemory.toFixed(2)) + " MB", 1)
1663
- ])) : C("", !0),
1664
- (We = m.device.heartbeatInfo) != null && We.appMemory ? (p(), g("div", Rs, [
1665
- r("div", Os, h(a(t)("device.information.heartbeat.appMemory")), 1),
1666
- r("div", Ss, h((Ge = m.device.heartbeatInfo) == null ? void 0 : Ge.appMemory.toFixed(2)) + " MB", 1)
1667
- ])) : C("", !0),
1668
- (Ye = m.device.heartbeatInfo) != null && Ye.totalMemory ? (p(), g("div", As, [
1669
- r("div", Ds, h(a(t)("device.information.heartbeat.totalMemory")), 1),
1670
- r("div", xs, h((Ke = m.device.heartbeatInfo) == null ? void 0 : Ke.totalMemory.toFixed(2)) + " MB", 1)
1671
- ])) : C("", !0),
1672
- (Xe = m.device.heartbeatInfo) != null && Xe.freeSpace ? (p(), g("div", zs, [
1662
+ r("div", ks, h((te = (b = d.device) == null ? void 0 : b.heartbeatInfo) == null ? void 0 : te.freeMemory.toFixed(2)) + " MB", 1)
1663
+ ])) : k("", !0),
1664
+ (ye = d.device.heartbeatInfo) != null && ye.appMemory ? (p(), g("div", Rs, [
1665
+ r("div", Ss, h(a(t)("device.information.heartbeat.appMemory")), 1),
1666
+ r("div", Os, h((Ge = d.device.heartbeatInfo) == null ? void 0 : Ge.appMemory.toFixed(2)) + " MB", 1)
1667
+ ])) : k("", !0),
1668
+ (We = d.device.heartbeatInfo) != null && We.totalMemory ? (p(), g("div", Ds, [
1669
+ r("div", As, h(a(t)("device.information.heartbeat.totalMemory")), 1),
1670
+ r("div", xs, h((Ye = d.device.heartbeatInfo) == null ? void 0 : Ye.totalMemory.toFixed(2)) + " MB", 1)
1671
+ ])) : k("", !0),
1672
+ (Ke = d.device.heartbeatInfo) != null && Ke.freeSpace ? (p(), g("div", zs, [
1673
1673
  r("div", Ns, h(a(t)("device.information.heartbeat.freeSpace")), 1),
1674
- r("div", Ps, h((Ze = m.device.heartbeatInfo) == null ? void 0 : Ze.freeSpace.toFixed(2)) + " MB", 1)
1675
- ])) : C("", !0),
1676
- (Qe = m.device.heartbeatInfo) != null && Qe.totalSpace ? (p(), g("div", Us, [
1674
+ r("div", Ps, h((Xe = d.device.heartbeatInfo) == null ? void 0 : Xe.freeSpace.toFixed(2)) + " MB", 1)
1675
+ ])) : k("", !0),
1676
+ (Ze = d.device.heartbeatInfo) != null && Ze.totalSpace ? (p(), g("div", Us, [
1677
1677
  r("div", Ls, h(a(t)("device.information.heartbeat.totalSpace")), 1),
1678
- r("div", Ms, h((Je = m.device.heartbeatInfo) == null ? void 0 : Je.totalSpace.toFixed(2)) + " MB", 1)
1679
- ])) : C("", !0)
1678
+ r("div", Ms, h((Qe = d.device.heartbeatInfo) == null ? void 0 : Qe.totalSpace.toFixed(2)) + " MB", 1)
1679
+ ])) : k("", !0)
1680
1680
  ];
1681
1681
  }),
1682
1682
  _: 1
1683
1683
  })
1684
1684
  ]),
1685
1685
  _: 1
1686
- })) : C("", !0),
1687
- (l = m.device) != null && l.appVersion && Object.values((u = m.device) == null ? void 0 : u.appVersion).some((R) => R) ? (p(), V(re, {
1686
+ })) : k("", !0),
1687
+ (Oe = d.device) != null && Oe.appVersion && Object.values((l = d.device) == null ? void 0 : l.appVersion).some((C) => C) ? (p(), V(oe, {
1688
1688
  key: 1,
1689
1689
  variant: "outlined"
1690
1690
  }, {
1691
- default: k(() => [
1691
+ default: R(() => [
1692
1692
  f(Y, {
1693
1693
  title: a(t)("device.information.sections.applicationInfo"),
1694
1694
  class: "pb-8 px-16"
1695
1695
  }, null, 8, ["title"]),
1696
- f(K, { class: "pt-0 flex flex-col gap-8" }, {
1697
- default: k(() => {
1698
- var R, M, ge, be, De, b, te, Te, We, Ge, Ye, Ke, Xe, Ze, Qe, Je, Lt, Mt, Bt, $t, Vt, jt, qt, Ht;
1696
+ f(ee, { class: "pt-0 flex flex-col gap-8" }, {
1697
+ default: R(() => {
1698
+ var C, L, _e, ve, De, Ae, b, te, ye, Ge, We, Ye, Ke, Xe, Ze, Qe, Lt, Mt, Bt, $t, Vt, jt, qt, Ht;
1699
1699
  return [
1700
1700
  r("div", Bs, [
1701
- (M = (R = m.device) == null ? void 0 : R.appVersion) != null && M.appName ? (p(), g("div", $s, h(a(t)("device.information.app.name")), 1)) : C("", !0),
1702
- r("div", Vs, h((be = (ge = m.device) == null ? void 0 : ge.appVersion) == null ? void 0 : be.appName), 1)
1701
+ (L = (C = d.device) == null ? void 0 : C.appVersion) != null && L.appName ? (p(), g("div", $s, h(a(t)("device.information.app.name")), 1)) : k("", !0),
1702
+ r("div", Vs, h((ve = (_e = d.device) == null ? void 0 : _e.appVersion) == null ? void 0 : ve.appName), 1)
1703
1703
  ]),
1704
- (b = (De = m.device) == null ? void 0 : De.appVersion) != null && b.buildNumber ? (p(), g("div", js, [
1704
+ (Ae = (De = d.device) == null ? void 0 : De.appVersion) != null && Ae.buildNumber ? (p(), g("div", js, [
1705
1705
  r("div", qs, h(a(t)("device.information.app.buildNumber")), 1),
1706
- r("div", Hs, h((Te = (te = m.device) == null ? void 0 : te.appVersion) == null ? void 0 : Te.buildNumber), 1)
1707
- ])) : C("", !0),
1708
- (Ge = (We = m.device) == null ? void 0 : We.appVersion) != null && Ge.buildSignature ? (p(), g("div", Ws, [
1709
- r("div", Gs, h(a(t)("device.information.app.buildSignature")), 1),
1710
- r("div", Ys, h((Ke = (Ye = m.device) == null ? void 0 : Ye.appVersion) == null ? void 0 : Ke.buildSignature), 1)
1711
- ])) : C("", !0),
1712
- (Ze = (Xe = m.device) == null ? void 0 : Xe.appVersion) != null && Ze.installerStore ? (p(), g("div", Ks, [
1706
+ r("div", Hs, h((te = (b = d.device) == null ? void 0 : b.appVersion) == null ? void 0 : te.buildNumber), 1)
1707
+ ])) : k("", !0),
1708
+ (Ge = (ye = d.device) == null ? void 0 : ye.appVersion) != null && Ge.buildSignature ? (p(), g("div", Gs, [
1709
+ r("div", Ws, h(a(t)("device.information.app.buildSignature")), 1),
1710
+ r("div", Ys, h((Ye = (We = d.device) == null ? void 0 : We.appVersion) == null ? void 0 : Ye.buildSignature), 1)
1711
+ ])) : k("", !0),
1712
+ (Xe = (Ke = d.device) == null ? void 0 : Ke.appVersion) != null && Xe.installerStore ? (p(), g("div", Ks, [
1713
1713
  r("div", Xs, h(a(t)("device.information.app.installerStore")), 1),
1714
- r("div", Zs, h((Je = (Qe = m.device) == null ? void 0 : Qe.appVersion) == null ? void 0 : Je.installerStore), 1)
1715
- ])) : C("", !0),
1716
- (Mt = (Lt = m.device) == null ? void 0 : Lt.appVersion) != null && Mt.packageName ? (p(), g("div", Qs, [
1714
+ r("div", Zs, h((Qe = (Ze = d.device) == null ? void 0 : Ze.appVersion) == null ? void 0 : Qe.installerStore), 1)
1715
+ ])) : k("", !0),
1716
+ (Mt = (Lt = d.device) == null ? void 0 : Lt.appVersion) != null && Mt.packageName ? (p(), g("div", Qs, [
1717
1717
  r("div", Js, h(a(t)("device.information.app.packageName")), 1),
1718
- r("div", ea, h(($t = (Bt = m.device) == null ? void 0 : Bt.appVersion) == null ? void 0 : $t.packageName), 1)
1719
- ])) : C("", !0),
1720
- (jt = (Vt = m.device) == null ? void 0 : Vt.appVersion) != null && jt.version ? (p(), g("div", ta, [
1718
+ r("div", ea, h(($t = (Bt = d.device) == null ? void 0 : Bt.appVersion) == null ? void 0 : $t.packageName), 1)
1719
+ ])) : k("", !0),
1720
+ (jt = (Vt = d.device) == null ? void 0 : Vt.appVersion) != null && jt.version ? (p(), g("div", ta, [
1721
1721
  r("div", na, h(a(t)("device.information.app.version")), 1),
1722
- r("div", oa, h((Ht = (qt = m.device) == null ? void 0 : qt.appVersion) == null ? void 0 : Ht.version), 1)
1723
- ])) : C("", !0)
1722
+ r("div", oa, h((Ht = (qt = d.device) == null ? void 0 : qt.appVersion) == null ? void 0 : Ht.version), 1)
1723
+ ])) : k("", !0)
1724
1724
  ];
1725
1725
  }),
1726
1726
  _: 1
1727
1727
  })
1728
1728
  ]),
1729
1729
  _: 1
1730
- })) : C("", !0),
1731
- (_ = m.device.os) != null && _.system ? (p(), V(re, {
1730
+ })) : k("", !0),
1731
+ (u = d.device.os) != null && u.system ? (p(), V(oe, {
1732
1732
  key: 2,
1733
1733
  variant: "outlined"
1734
1734
  }, {
1735
- default: k(() => [
1735
+ default: R(() => [
1736
1736
  f(Y, {
1737
1737
  title: a(t)("device.information.sections.systemInfo"),
1738
1738
  class: "pb-8 px-16"
1739
1739
  }, null, 8, ["title"]),
1740
- f(K, { class: "pt-0 flex flex-col gap-8" }, {
1741
- default: k(() => [
1742
- (p(!0), g(oe, null, me(m.device.os.system, (R, M) => (p(), g(oe, { key: M }, [
1743
- R && !(R instanceof Object) ? (p(), g("div", sa, [
1744
- r("div", aa, h(a(t)(`device.information.system.${M}`) || ue(M)), 1),
1740
+ f(ee, { class: "pt-0 flex flex-col gap-8" }, {
1741
+ default: R(() => [
1742
+ (p(!0), g(ae, null, me(d.device.os.system, (C, L) => (p(), g(ae, { key: L }, [
1743
+ C && !(C instanceof Object) ? (p(), g("div", sa, [
1744
+ r("div", aa, h(a(t)(`device.information.system.${L}`) || he(L)), 1),
1745
1745
  r("div", null, [
1746
- r("div", ia, h(R), 1)
1746
+ r("div", ia, h(C), 1)
1747
1747
  ])
1748
- ])) : C("", !0)
1748
+ ])) : k("", !0)
1749
1749
  ], 64))), 128))
1750
1750
  ]),
1751
1751
  _: 1
1752
1752
  })
1753
1753
  ]),
1754
1754
  _: 1
1755
- })) : C("", !0),
1756
- (_e = (B = m.device) == null ? void 0 : B.os) != null && _e.android ? (p(), V(re, {
1755
+ })) : k("", !0),
1756
+ (B = (v = d.device) == null ? void 0 : v.os) != null && B.android ? (p(), V(oe, {
1757
1757
  key: 3,
1758
1758
  variant: "outlined"
1759
1759
  }, {
1760
- default: k(() => [
1760
+ default: R(() => [
1761
1761
  f(Y, {
1762
1762
  title: a(t)("device.information.sections.androidOS"),
1763
1763
  class: "pb-8 px-16"
1764
1764
  }, null, 8, ["title"]),
1765
- f(K, { class: "pt-0 flex flex-col gap-8" }, {
1766
- default: k(() => [
1767
- (p(!0), g(oe, null, me(m.device.os.android, (R, M) => (p(), g(oe, { key: M }, [
1768
- R && !(R instanceof Object) ? (p(), g("div", la, [
1769
- r("div", ra, h(a(t)(`device.information.android.${M}`) || ue(M)), 1),
1765
+ f(ee, { class: "pt-0 flex flex-col gap-8" }, {
1766
+ default: R(() => [
1767
+ (p(!0), g(ae, null, me(d.device.os.android, (C, L) => (p(), g(ae, { key: L }, [
1768
+ C && !(C instanceof Object) ? (p(), g("div", la, [
1769
+ r("div", ra, h(a(t)(`device.information.android.${L}`) || he(L)), 1),
1770
1770
  r("div", null, [
1771
- r("div", ca, h(R), 1)
1771
+ r("div", ca, h(C), 1)
1772
1772
  ])
1773
- ])) : C("", !0)
1773
+ ])) : k("", !0)
1774
1774
  ], 64))), 128))
1775
1775
  ]),
1776
1776
  _: 1
1777
1777
  })
1778
1778
  ]),
1779
1779
  _: 1
1780
- })) : C("", !0),
1781
- (He = m.device.os) != null && He.iOS ? (p(), V(re, {
1780
+ })) : k("", !0),
1781
+ (ce = d.device.os) != null && ce.iOS ? (p(), V(oe, {
1782
1782
  key: 4,
1783
1783
  variant: "outlined"
1784
1784
  }, {
1785
- default: k(() => [
1785
+ default: R(() => [
1786
1786
  f(Y, {
1787
1787
  title: a(t)("device.information.sections.iOSOS"),
1788
1788
  class: "pb-8 px-16"
1789
1789
  }, null, 8, ["title"]),
1790
- f(K, { class: "pt-0 flex flex-col gap-8" }, {
1791
- default: k(() => [
1792
- (p(!0), g(oe, null, me(m.device.os.iOS, (R, M) => (p(), g(oe, { key: M }, [
1793
- R && !(R instanceof Object) ? (p(), g("div", ua, [
1794
- r("div", da, h(a(t)(`device.information.ios.${M}`) || ue(M)), 1),
1790
+ f(ee, { class: "pt-0 flex flex-col gap-8" }, {
1791
+ default: R(() => [
1792
+ (p(!0), g(ae, null, me(d.device.os.iOS, (C, L) => (p(), g(ae, { key: L }, [
1793
+ C && !(C instanceof Object) ? (p(), g("div", ua, [
1794
+ r("div", da, h(a(t)(`device.information.ios.${L}`) || he(L)), 1),
1795
1795
  r("div", null, [
1796
- r("div", ma, h(R), 1)
1796
+ r("div", ma, h(C), 1)
1797
1797
  ])
1798
- ])) : C("", !0)
1798
+ ])) : k("", !0)
1799
1799
  ], 64))), 128))
1800
1800
  ]),
1801
1801
  _: 1
1802
1802
  })
1803
1803
  ]),
1804
1804
  _: 1
1805
- })) : C("", !0),
1806
- (it = m.device.os) != null && it.windows ? (p(), V(re, {
1805
+ })) : k("", !0),
1806
+ (He = d.device.os) != null && He.windows ? (p(), V(oe, {
1807
1807
  key: 5,
1808
1808
  variant: "outlined"
1809
1809
  }, {
1810
- default: k(() => [
1810
+ default: R(() => [
1811
1811
  f(Y, {
1812
1812
  title: a(t)("device.information.sections.windowsOS"),
1813
1813
  class: "pb-8 px-16"
1814
1814
  }, null, 8, ["title"]),
1815
- f(K, { class: "pt-0 flex flex-col gap-8" }, {
1816
- default: k(() => [
1817
- (p(!0), g(oe, null, me(m.device.os.windows, (R, M) => (p(), g(oe, { key: M }, [
1818
- R && !(R instanceof Object) ? (p(), g("div", pa, [
1819
- r("div", fa, h(a(t)(`device.information.windows.${M}`) || ue(M)), 1),
1815
+ f(ee, { class: "pt-0 flex flex-col gap-8" }, {
1816
+ default: R(() => [
1817
+ (p(!0), g(ae, null, me(d.device.os.windows, (C, L) => (p(), g(ae, { key: L }, [
1818
+ C && !(C instanceof Object) ? (p(), g("div", pa, [
1819
+ r("div", fa, h(a(t)(`device.information.windows.${L}`) || he(L)), 1),
1820
1820
  r("div", null, [
1821
- r("div", ha, h(R), 1)
1821
+ r("div", ha, h(C), 1)
1822
1822
  ])
1823
- ])) : C("", !0)
1823
+ ])) : k("", !0)
1824
1824
  ], 64))), 128))
1825
1825
  ]),
1826
1826
  _: 1
1827
1827
  })
1828
1828
  ]),
1829
1829
  _: 1
1830
- })) : C("", !0),
1831
- m.device.type === a(X).Enum.MAIN ? (p(), g("div", va, [
1832
- r("div", _a, h(a(t)("device.customerDisplay.title")), 1),
1830
+ })) : k("", !0),
1831
+ d.device.type === a(X).Enum.MAIN ? (p(), g("div", _a, [
1832
+ r("div", va, h(a(t)("device.customerDisplay.title")), 1),
1833
1833
  r("div", ga, h(a(t)("device.customerDisplay.description")), 1),
1834
- se.value ? (p(), g("div", ba, [
1835
- f(Ue, { size: "lg" })
1834
+ ne.value ? (p(), g("div", ba, [
1835
+ f(ot, { size: "lg" })
1836
1836
  ])) : (p(), g("div", ya, [
1837
- (Le = A.value) != null && Le.length ? (p(), g("div", Ta, [
1837
+ (st = A.value) != null && st.length ? (p(), g("div", Ta, [
1838
1838
  r("img", {
1839
1839
  class: "object-cover w-full h-[264px] xs:h-[175px]",
1840
1840
  src: P.value
@@ -1848,26 +1848,26 @@ const en = {
1848
1848
  "bg-color": "neutral-white"
1849
1849
  })
1850
1850
  ])
1851
- ])) : C("", !0),
1851
+ ])) : k("", !0),
1852
1852
  r("div", wa, [
1853
- (Me = A.value) != null && Me.length ? (p(), g("div", Fa, [
1854
- (p(!0), g(oe, null, me(A.value, (R) => (p(), V(ke, {
1855
- key: R,
1856
- src: R,
1853
+ (Le = A.value) != null && Le.length ? (p(), g("div", Fa, [
1854
+ (p(!0), g(ae, null, me(A.value, (C) => (p(), V(Ue, {
1855
+ key: C,
1856
+ src: C,
1857
1857
  size: a(n)("xs") ? "lg" : "xl",
1858
- class: on(["cursor-pointer mr-1", P.value == R ? "border-fm-color-primary border-[2px]" : ""]),
1859
- onClick: (M) => L(R)
1858
+ class: on(["cursor-pointer mr-1", P.value == C ? "border-fm-color-primary border-[2px]" : ""]),
1859
+ onClick: (L) => M(C)
1860
1860
  }, null, 8, ["src", "size", "class", "onClick"]))), 128))
1861
- ])) : C("", !0),
1862
- f(he, {
1861
+ ])) : k("", !0),
1862
+ f(ke, {
1863
1863
  class: "w-[200px] h-[170px]",
1864
- onFileUpload: z[0] || (z[0] = (R) => $(R)),
1864
+ onFileUpload: D[0] || (D[0] = (C) => $(C)),
1865
1865
  accept: "image/*"
1866
1866
  }, {
1867
- "accept-text": k(() => z[3] || (z[3] = [
1867
+ "accept-text": R(() => D[3] || (D[3] = [
1868
1868
  r("div", null, null, -1)
1869
1869
  ])),
1870
- "helper-text": k(() => [
1870
+ "helper-text": R(() => [
1871
1871
  r("div", Ca, [
1872
1872
  r("div", null, h(a(t)("device.customerDisplay.imageSize.recommendation")), 1),
1873
1873
  r("div", null, h(a(t)("device.customerDisplay.imageSize.dimensions")), 1)
@@ -1877,31 +1877,31 @@ const en = {
1877
1877
  })
1878
1878
  ])
1879
1879
  ]))
1880
- ])) : C("", !0),
1880
+ ])) : k("", !0),
1881
1881
  r("div", {
1882
1882
  ref_key: "bottomDiv",
1883
1883
  ref: U
1884
1884
  }, null, 512),
1885
- (Be = A.value) != null && Be.length && m.device.type === a(X).Enum.MAIN ? (p(), g("div", ka, [
1885
+ (Me = A.value) != null && Me.length && d.device.type === a(X).Enum.MAIN ? (p(), g("div", ka, [
1886
1886
  r("div", Ra, h(a(t)("device.customerDisplay.selection.title")), 1),
1887
- r("div", Oa, h(a(t)("device.customerDisplay.selection.description")), 1),
1888
- r("div", Sa, [
1889
- f(at, {
1890
- "model-value": G.value,
1887
+ r("div", Sa, h(a(t)("device.customerDisplay.selection.description")), 1),
1888
+ r("div", Oa, [
1889
+ f(ue, {
1890
+ "model-value": W.value,
1891
1891
  label: a(t)("device.filters.all"),
1892
1892
  value: "1",
1893
- indeterminate: ((Re = E.value) == null ? void 0 : Re.length) > 0,
1894
- "onUpdate:modelValue": O
1893
+ indeterminate: ((Be = E.value) == null ? void 0 : Be.length) > 0,
1894
+ "onUpdate:modelValue": S
1895
1895
  }, null, 8, ["model-value", "label", "indeterminate"]),
1896
- (p(!0), g(oe, null, me(m.devices.filter((R) => R.restaurantId && R.type === a(X).Enum.MAIN), (R, M) => (p(), V(at, {
1897
- key: M,
1896
+ (p(!0), g(ae, null, me(d.devices.filter((C) => C.restaurantId && C.type === a(X).Enum.MAIN), (C, L) => (p(), V(ue, {
1897
+ key: L,
1898
1898
  "model-value": E.value,
1899
- label: y(R),
1900
- value: R.restaurantId,
1899
+ label: y(C),
1900
+ value: C.restaurantId,
1901
1901
  "onUpdate:modelValue": T
1902
1902
  }, null, 8, ["model-value", "label", "value"]))), 128))
1903
1903
  ])
1904
- ])) : C("", !0)
1904
+ ])) : k("", !0)
1905
1905
  ])
1906
1906
  ];
1907
1907
  }),
@@ -1910,22 +1910,22 @@ const en = {
1910
1910
  ]),
1911
1911
  _: 2
1912
1912
  }, [
1913
- m.device.type === a(X).Enum.MAIN ? {
1913
+ d.device.type === a(X).Enum.MAIN ? {
1914
1914
  name: "side-sheet-footer",
1915
- fn: k(() => [
1916
- r("div", Aa, [
1915
+ fn: R(() => [
1916
+ r("div", Da, [
1917
1917
  f(Ce, {
1918
- loading: ae.value,
1919
- disabled: ae.value,
1918
+ loading: ie.value,
1919
+ disabled: ie.value,
1920
1920
  variant: "primary",
1921
1921
  label: a(t)("device.actions.update"),
1922
- onClick: Rt(ee, ["prevent"])
1922
+ onClick: Rt(K, ["prevent"])
1923
1923
  }, null, 8, ["loading", "disabled", "label"]),
1924
1924
  f(Ce, {
1925
- disabled: ae.value,
1925
+ disabled: ie.value,
1926
1926
  variant: "secondary",
1927
1927
  label: a(t)("device.actions.cancel"),
1928
- onClick: z[1] || (z[1] = (ve) => s.value = !1)
1928
+ onClick: D[1] || (D[1] = (de) => s.value = !1)
1929
1929
  }, null, 8, ["disabled", "label"])
1930
1930
  ])
1931
1931
  ]),
@@ -1940,10 +1940,10 @@ const en = {
1940
1940
  }, Pa = { class: "flex flex-col gap-8" }, Ua = { class: "flex flex-col gap-4" }, La = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ma = { class: "fm-typo-en-body-lg-600" }, Ba = { class: "flex flex-col gap-4" }, $a = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Va = { class: "fm-typo-en-body-lg-600" }, ja = {
1941
1941
  key: 0,
1942
1942
  class: "flex flex-col gap-4"
1943
- }, qa = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ha = { class: "fm-typo-en-body-lg-600" }, Wa = {
1943
+ }, qa = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ha = { class: "fm-typo-en-body-lg-600" }, Ga = {
1944
1944
  key: 1,
1945
1945
  class: "flex flex-col gap-4"
1946
- }, Ga = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ya = { class: "fm-typo-en-body-lg-600" }, Ka = {
1946
+ }, Wa = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ya = { class: "fm-typo-en-body-lg-600" }, Ka = {
1947
1947
  key: 2,
1948
1948
  class: "flex flex-col gap-4"
1949
1949
  }, Xa = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Za = { class: "fm-typo-en-body-lg-600" }, Qa = {
@@ -1986,7 +1986,7 @@ const en = {
1986
1986
  default:
1987
1987
  return "error";
1988
1988
  }
1989
- }, d = (T) => {
1989
+ }, m = (T) => {
1990
1990
  switch (T) {
1991
1991
  case "online":
1992
1992
  return "#34C759";
@@ -1997,28 +1997,28 @@ const en = {
1997
1997
  default:
1998
1998
  return "#FF3B30";
1999
1999
  }
2000
- }, i = N(), v = N(!1), y = N(!1), F = N(!1), A = () => {
2000
+ }, i = N(), _ = N(!1), y = N(!1), F = N(!1), A = () => {
2001
2001
  var $;
2002
- const U = ($ = ft().sessionUser.value) == null ? void 0 : $.id;
2002
+ const U = ($ = mt().sessionUser.value) == null ? void 0 : $.id;
2003
2003
  return {
2004
2004
  machineId: t.machineId,
2005
2005
  userId: U ?? ""
2006
2006
  };
2007
- }, x = qe(), D = async () => {
2008
- v.value = !0, i.value = void 0;
2007
+ }, z = qe(), x = async () => {
2008
+ _.value = !0, i.value = void 0;
2009
2009
  try {
2010
2010
  const T = A(), U = await J.getLogRequest(T);
2011
2011
  i.value = U;
2012
2012
  } catch (T) {
2013
- x.open({
2013
+ z.open({
2014
2014
  message: s("device.status.logs.fetchError", { error: T }),
2015
2015
  type: "error",
2016
- position: W.BOTTOM
2016
+ position: G.BOTTOM
2017
2017
  });
2018
2018
  } finally {
2019
- v.value = !1;
2019
+ _.value = !1;
2020
2020
  }
2021
- }, S = async () => {
2021
+ }, O = async () => {
2022
2022
  F.value = !0;
2023
2023
  try {
2024
2024
  if (i.value) {
@@ -2029,39 +2029,39 @@ const en = {
2029
2029
  n.value = T.status, o.value = T.message;
2030
2030
  }
2031
2031
  } catch (T) {
2032
- x.open({
2032
+ z.open({
2033
2033
  message: s("device.status.logs.refreshError", { error: T }),
2034
2034
  type: "error",
2035
- position: W.BOTTOM
2035
+ position: G.BOTTOM
2036
2036
  });
2037
2037
  } finally {
2038
2038
  F.value = !1;
2039
2039
  }
2040
2040
  }, P = async () => {
2041
- i.value && i.value.requestId && await J.deleteLogRequest(i.value.requestId), v.value = !0, i.value = void 0;
2041
+ i.value && i.value.requestId && await J.deleteLogRequest(i.value.requestId), _.value = !0, i.value = void 0;
2042
2042
  try {
2043
2043
  const T = A(), U = await J.createLogRequest(T);
2044
2044
  i.value = U;
2045
2045
  } catch (T) {
2046
- x.open({
2046
+ z.open({
2047
2047
  message: s("device.status.logs.createError", { error: T }),
2048
2048
  type: "error",
2049
- position: W.BOTTOM
2049
+ position: G.BOTTOM
2050
2050
  });
2051
2051
  } finally {
2052
- v.value = !1;
2052
+ _.value = !1;
2053
2053
  }
2054
- }, L = async () => {
2054
+ }, M = async () => {
2055
2055
  var T;
2056
2056
  if ((T = i.value) != null && T.requestId) {
2057
2057
  y.value = !0;
2058
2058
  try {
2059
- await J.deleteLogRequest(i.value.requestId), await D();
2059
+ await J.deleteLogRequest(i.value.requestId), await x();
2060
2060
  } catch (U) {
2061
- x.open({
2061
+ z.open({
2062
2062
  message: s("device.status.logs.deleteError", { error: U }),
2063
2063
  type: "error",
2064
- position: W.BOTTOM
2064
+ position: G.BOTTOM
2065
2065
  });
2066
2066
  } finally {
2067
2067
  y.value = !1;
@@ -2074,54 +2074,54 @@ const en = {
2074
2074
  hour: "2-digit",
2075
2075
  minute: "2-digit",
2076
2076
  hour12: !0
2077
- }).toUpperCase(), G = () => {
2077
+ }).toUpperCase(), W = () => {
2078
2078
  var T, U;
2079
- (T = i.value) != null && T.downloadUrl && (window.open((U = i.value) == null ? void 0 : U.downloadUrl, "_blank"), setTimeout(() => L(), 1500));
2080
- }, O = () => {
2079
+ (T = i.value) != null && T.downloadUrl && (window.open((U = i.value) == null ? void 0 : U.downloadUrl, "_blank"), setTimeout(() => M(), 1500));
2080
+ }, S = () => {
2081
2081
  var T, U;
2082
2082
  if ((T = i.value) != null && T.fileSize)
2083
2083
  return `${Math.max(0.01, Math.round(((U = i.value) == null ? void 0 : U.fileSize) / 1024 / 1024 * 100) / 100)} MB`;
2084
- }, E = St();
2085
- return mt(async () => {
2086
- await D();
2084
+ }, E = Ot();
2085
+ return ut(async () => {
2086
+ await x();
2087
2087
  }), (T, U) => {
2088
- const se = I("FmIcon"), $ = I("FmButton"), ae = I("FmListItem"), ce = I("FmCardHeader"), ee = I("FmCardSection"), Pe = I("FmCard");
2088
+ const ne = I("FmIcon"), $ = I("FmButton"), ie = I("FmListItem"), be = I("FmCardHeader"), K = I("FmCardSection"), Pe = I("FmCard");
2089
2089
  return p(), g("div", xa, [
2090
2090
  r("div", za, [
2091
- f(ae, {
2091
+ f(ie, {
2092
2092
  label: a(s)("device.logs.download.deviceStatus"),
2093
2093
  sublabel: o.value,
2094
2094
  clickable: !1
2095
2095
  }, {
2096
- prepend: k(() => [
2097
- f(se, {
2096
+ prepend: R(() => [
2097
+ f(ne, {
2098
2098
  name: c(n.value),
2099
- color: d(n.value)
2099
+ color: m(n.value)
2100
2100
  }, null, 8, ["name", "color"])
2101
2101
  ]),
2102
- append: k(() => [
2103
- v.value ? C("", !0) : (p(), V($, {
2102
+ append: R(() => [
2103
+ _.value ? k("", !0) : (p(), V($, {
2104
2104
  key: 0,
2105
2105
  variant: "tertiary",
2106
2106
  size: "md",
2107
2107
  "prepend-icon": "sync",
2108
- onClick: S
2108
+ onClick: O
2109
2109
  }))
2110
2110
  ]),
2111
2111
  _: 1
2112
2112
  }, 8, ["label", "sublabel"])
2113
2113
  ]),
2114
- !v.value && i.value ? (p(), g("div", Na, [
2114
+ !_.value && i.value ? (p(), g("div", Na, [
2115
2115
  f(Pe, { variant: "outlined" }, {
2116
- default: k(() => {
2117
- var Fe;
2116
+ default: R(() => {
2117
+ var we;
2118
2118
  return [
2119
- f(ce, {
2120
- title: (Fe = i.value) == null ? void 0 : Fe.status.replace(/\b\w/g, (fe) => fe.toUpperCase())
2119
+ f(be, {
2120
+ title: (we = i.value) == null ? void 0 : we.status.replace(/\b\w/g, (fe) => fe.toUpperCase())
2121
2121
  }, null, 8, ["title"]),
2122
- f(ee, { class: "gap-8 pt-0" }, {
2123
- default: k(() => {
2124
- var fe, ue, de, m;
2122
+ f(K, { class: "gap-8 pt-0" }, {
2123
+ default: R(() => {
2124
+ var fe, he, Fe, d;
2125
2125
  return [
2126
2126
  r("div", Pa, [
2127
2127
  r("div", Ua, [
@@ -2135,23 +2135,23 @@ const en = {
2135
2135
  i.value.fileName ? (p(), g("div", ja, [
2136
2136
  r("div", qa, h(a(s)("device.logs.download.fields.fileName")), 1),
2137
2137
  r("div", Ha, h(i.value.fileName), 1)
2138
- ])) : C("", !0),
2139
- i.value.fileSize ? (p(), g("div", Wa, [
2140
- r("div", Ga, h(a(s)("device.logs.download.fields.fileSize")), 1),
2141
- r("div", Ya, h(i.value.fileSize ? O() : "Unknown"), 1)
2142
- ])) : C("", !0),
2138
+ ])) : k("", !0),
2139
+ i.value.fileSize ? (p(), g("div", Ga, [
2140
+ r("div", Wa, h(a(s)("device.logs.download.fields.fileSize")), 1),
2141
+ r("div", Ya, h(i.value.fileSize ? S() : "Unknown"), 1)
2142
+ ])) : k("", !0),
2143
2143
  i.value.completedAt ? (p(), g("div", Ka, [
2144
2144
  r("div", Xa, h(a(s)("device.logs.download.fields.completedAt")), 1),
2145
- r("div", Za, h(j((ue = i.value) == null ? void 0 : ue.completedAt)), 1)
2146
- ])) : C("", !0),
2145
+ r("div", Za, h(j((he = i.value) == null ? void 0 : he.completedAt)), 1)
2146
+ ])) : k("", !0),
2147
2147
  i.value.expiresAt ? (p(), g("div", Qa, [
2148
2148
  r("div", Ja, h(a(s)("device.logs.download.fields.expiredAt")), 1),
2149
- r("div", ei, h(j((de = i.value) == null ? void 0 : de.expiresAt)), 1)
2150
- ])) : C("", !0),
2149
+ r("div", ei, h(j((Fe = i.value) == null ? void 0 : Fe.expiresAt)), 1)
2150
+ ])) : k("", !0),
2151
2151
  i.value.error ? (p(), g("div", ti, [
2152
2152
  r("div", ni, h(a(s)("device.logs.download.fields.error")), 1),
2153
- r("div", oi, h((m = i.value) == null ? void 0 : m.error), 1)
2154
- ])) : C("", !0)
2153
+ r("div", oi, h((d = i.value) == null ? void 0 : d.error), 1)
2154
+ ])) : k("", !0)
2155
2155
  ])
2156
2156
  ];
2157
2157
  }),
@@ -2162,7 +2162,7 @@ const en = {
2162
2162
  _: 1
2163
2163
  }),
2164
2164
  i.value.status !== a(Mn).Enum.completed ? (p(), g("div", si, h(a(s)("device.logs.download.messages.pendingDownload")), 1)) : (p(), g("div", ai, h(a(s)("device.logs.download.messages.downloadExpiry")), 1))
2165
- ])) : C("", !0),
2165
+ ])) : k("", !0),
2166
2166
  r("div", ii, [
2167
2167
  r("div", li, [
2168
2168
  f($, {
@@ -2178,14 +2178,14 @@ const en = {
2178
2178
  label: a(s)("device.actions.cancel"),
2179
2179
  size: "md",
2180
2180
  variant: "tertiary",
2181
- onClick: U[0] || (U[0] = (Fe) => a(E).close())
2181
+ onClick: U[0] || (U[0] = (we) => a(E).close())
2182
2182
  }, null, 8, ["label"]),
2183
2183
  f($, {
2184
2184
  disabled: !i.value || !i.value.downloadUrl,
2185
2185
  label: a(s)("device.logs.download.downloadButton"),
2186
2186
  size: "md",
2187
2187
  variant: "primary",
2188
- onClick: G
2188
+ onClick: W
2189
2189
  }, null, 8, ["disabled", "label"])
2190
2190
  ])
2191
2191
  ])
@@ -2206,7 +2206,7 @@ function Ve(e, t, n) {
2206
2206
  const { t: o } = Se();
2207
2207
  return (s) => e(s) || o(t, ui(n));
2208
2208
  }
2209
- const Ie = {
2209
+ const Te = {
2210
2210
  required() {
2211
2211
  return Ve((e) => {
2212
2212
  var t;
@@ -2238,58 +2238,58 @@ const Ie = {
2238
2238
  visible: { type: Boolean }
2239
2239
  },
2240
2240
  setup(e) {
2241
- const { t } = Se(), { isAtMost: n } = Ot(), o = e, s = dt(o, "visible"), c = N(), d = N(), i = N(), v = N(), y = Q(
2242
- () => Object.values(Tt.enum).map((D) => ({
2243
- label: D,
2244
- value: D
2241
+ const { t } = Se(), { isAtMost: n } = St(), o = e, s = ct(o, "visible"), c = N(), m = N(), i = N(), _ = N(), y = Q(
2242
+ () => Object.values(Tt.enum).map((x) => ({
2243
+ label: x,
2244
+ value: x
2245
2245
  }))
2246
2246
  ), F = qe(), A = async () => {
2247
2247
  if (!i.value || i.value > 30 || i.value < 5)
2248
2248
  return;
2249
- const D = {
2249
+ const x = {
2250
2250
  logging: {
2251
2251
  enable: c.value,
2252
- level: d.value,
2252
+ level: m.value,
2253
2253
  ttl: i.value
2254
2254
  },
2255
2255
  telemetry: {
2256
- enable: v.value
2256
+ enable: _.value
2257
2257
  }
2258
2258
  };
2259
- await J.updateDeviceConfig(o.device.deviceId, D).then(async () => {
2260
- x(), setTimeout(() => {
2259
+ await J.updateDeviceConfig(o.device.deviceId, x).then(async () => {
2260
+ z(), setTimeout(() => {
2261
2261
  F.open({
2262
2262
  message: t("device.status.config.success", { deviceName: o.device.name ?? o.device.restaurantName }),
2263
2263
  type: "success",
2264
- position: W.BOTTOM
2264
+ position: G.BOTTOM
2265
2265
  });
2266
2266
  }, 100);
2267
- }).catch((S) => {
2267
+ }).catch((O) => {
2268
2268
  F.open({
2269
- message: t("device.status.config.error", { error: S }),
2269
+ message: t("device.status.config.error", { error: O }),
2270
2270
  type: "error",
2271
- position: W.BOTTOM
2271
+ position: G.BOTTOM
2272
2272
  });
2273
2273
  });
2274
- }, x = () => {
2274
+ }, z = () => {
2275
2275
  s.value = !1;
2276
2276
  };
2277
- return mt(async () => {
2278
- await J.getDeviceConfig(o.device.deviceId).then((D) => {
2279
- var S, P, L, j;
2280
- c.value = ((S = D.logging) == null ? void 0 : S.enable) ?? !0, d.value = ((P = D.logging) == null ? void 0 : P.level) ?? Tt.Enum.ALL, i.value = ((L = D.logging) == null ? void 0 : L.ttl) ?? 30, v.value = ((j = D.telemetry) == null ? void 0 : j.enable) ?? !1;
2277
+ return ut(async () => {
2278
+ await J.getDeviceConfig(o.device.deviceId).then((x) => {
2279
+ var O, P, M, j;
2280
+ c.value = ((O = x.logging) == null ? void 0 : O.enable) ?? !0, m.value = ((P = x.logging) == null ? void 0 : P.level) ?? Tt.Enum.ALL, i.value = ((M = x.logging) == null ? void 0 : M.ttl) ?? 30, _.value = ((j = x.telemetry) == null ? void 0 : j.enable) ?? !1;
2281
2281
  }).catch(() => {
2282
- c.value = !0, d.value = Tt.Enum.ALL, i.value = 30, v.value = !1;
2282
+ c.value = !0, m.value = Tt.Enum.ALL, i.value = 30, _.value = !1;
2283
2283
  });
2284
- }), (D, S) => {
2285
- const P = I("FmCardHeader"), L = I("FmSwitch"), j = I("FmSelect"), G = I("FmStepperField"), O = I("FmCardSection"), E = I("FmCard"), T = I("FmForm"), U = I("FmButton"), se = I("FmSideSheet");
2286
- return p(), V(se, {
2284
+ }), (x, O) => {
2285
+ const P = I("FmCardHeader"), M = I("FmSwitch"), j = I("FmSelect"), W = I("FmStepperField"), S = I("FmCardSection"), E = I("FmCard"), T = I("FmForm"), U = I("FmButton"), ne = I("FmSideSheet");
2286
+ return p(), V(ne, {
2287
2287
  header: a(t)("device.config.title"),
2288
2288
  modelValue: a(s),
2289
- "onUpdate:modelValue": S[4] || (S[4] = ($) => nn(s) ? s.value = $ : null),
2289
+ "onUpdate:modelValue": O[4] || (O[4] = ($) => nn(s) ? s.value = $ : null),
2290
2290
  "max-width": a(n)("xs") ? 560 : 470
2291
2291
  }, {
2292
- "side-sheet-footer": k(() => [
2292
+ "side-sheet-footer": R(() => [
2293
2293
  r("div", mi, [
2294
2294
  f(U, {
2295
2295
  variant: "primary",
@@ -2299,24 +2299,24 @@ const Ie = {
2299
2299
  f(U, {
2300
2300
  variant: "secondary",
2301
2301
  label: a(t)("device.actions.cancel"),
2302
- onClick: x
2302
+ onClick: z
2303
2303
  }, null, 8, ["label"])
2304
2304
  ])
2305
2305
  ]),
2306
- default: k(() => [
2306
+ default: R(() => [
2307
2307
  f(T, null, {
2308
- default: k(() => [
2308
+ default: R(() => [
2309
2309
  f(E, { variant: "flat" }, {
2310
- default: k(() => [
2310
+ default: R(() => [
2311
2311
  f(P, {
2312
2312
  title: a(t)("device.config.logging.title"),
2313
2313
  class: "p-1"
2314
2314
  }, null, 8, ["title"]),
2315
- f(O, { class: "p-1 flex gap-6 flex-col" }, {
2316
- default: k(() => [
2317
- f(L, {
2315
+ f(S, { class: "p-1 flex gap-6 flex-col" }, {
2316
+ default: R(() => [
2317
+ f(M, {
2318
2318
  modelValue: c.value,
2319
- "onUpdate:modelValue": S[0] || (S[0] = ($) => c.value = $),
2319
+ "onUpdate:modelValue": O[0] || (O[0] = ($) => c.value = $),
2320
2320
  value: "first",
2321
2321
  label: a(t)("device.config.logging.enable.label"),
2322
2322
  sublabel: a(t)("device.config.logging.enable.sublabel"),
@@ -2324,20 +2324,20 @@ const Ie = {
2324
2324
  }, null, 8, ["modelValue", "label", "sublabel"]),
2325
2325
  f(j, {
2326
2326
  width: 150,
2327
- modelValue: d.value,
2328
- "onUpdate:modelValue": S[1] || (S[1] = ($) => d.value = $),
2327
+ modelValue: m.value,
2328
+ "onUpdate:modelValue": O[1] || (O[1] = ($) => m.value = $),
2329
2329
  label: a(t)("device.config.logging.logLevel"),
2330
2330
  items: y.value
2331
2331
  }, null, 8, ["modelValue", "label", "items"]),
2332
- f(G, {
2332
+ f(W, {
2333
2333
  modelValue: i.value,
2334
- "onUpdate:modelValue": S[2] || (S[2] = ($) => i.value = $),
2334
+ "onUpdate:modelValue": O[2] || (O[2] = ($) => i.value = $),
2335
2335
  label: a(t)("device.config.logging.ttl.label"),
2336
2336
  placeholder: "5",
2337
2337
  step: 1,
2338
2338
  min: 5,
2339
2339
  max: 30,
2340
- rules: [a(Ie).required(), a(Ie).number(), a(Ie).min(5), a(Ie).max(30)],
2340
+ rules: [a(Te).required(), a(Te).number(), a(Te).min(5), a(Te).max(30)],
2341
2341
  "append-text": a(t)("device.config.logging.ttl.unit")
2342
2342
  }, null, 8, ["modelValue", "label", "rules", "append-text"])
2343
2343
  ]),
@@ -2347,16 +2347,16 @@ const Ie = {
2347
2347
  _: 1
2348
2348
  }),
2349
2349
  f(E, { variant: "flat" }, {
2350
- default: k(() => [
2350
+ default: R(() => [
2351
2351
  f(P, {
2352
2352
  title: a(t)("device.config.telemetry.title"),
2353
2353
  class: "p-1"
2354
2354
  }, null, 8, ["title"]),
2355
- f(O, { class: "p-1 flex gap-6 flex-col" }, {
2356
- default: k(() => [
2357
- f(L, {
2358
- modelValue: v.value,
2359
- "onUpdate:modelValue": S[3] || (S[3] = ($) => v.value = $),
2355
+ f(S, { class: "p-1 flex gap-6 flex-col" }, {
2356
+ default: R(() => [
2357
+ f(M, {
2358
+ modelValue: _.value,
2359
+ "onUpdate:modelValue": O[3] || (O[3] = ($) => _.value = $),
2360
2360
  value: "first",
2361
2361
  label: a(t)("device.config.telemetry.enable.label"),
2362
2362
  sublabel: a(t)("device.config.telemetry.enable.sublabel"),
@@ -2376,7 +2376,7 @@ const Ie = {
2376
2376
  }, 8, ["header", "modelValue", "max-width"]);
2377
2377
  };
2378
2378
  }
2379
- }), fi = { class: "flex flex-col gap-24 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, hi = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, vi = /* @__PURE__ */ Ne({
2379
+ }), fi = { class: "flex flex-col gap-24 fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, hi = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, _i = /* @__PURE__ */ Ne({
2380
2380
  __name: "UnbindDeviceDialog",
2381
2381
  props: {
2382
2382
  restaurantName: {
@@ -2393,8 +2393,8 @@ const Ie = {
2393
2393
  o.value = c, n(o.value);
2394
2394
  }
2395
2395
  });
2396
- return (c, d) => {
2397
- const i = I("FmTextField"), v = I("FmForm");
2396
+ return (c, m) => {
2397
+ const i = I("FmTextField"), _ = I("FmForm");
2398
2398
  return p(), g("div", fi, [
2399
2399
  r("div", null, h(a(t)("device.unbindDevice.unbindConfirmationMessage")), 1),
2400
2400
  r("div", null, [
@@ -2402,12 +2402,12 @@ const Ie = {
2402
2402
  r("span", hi, h(e.restaurantName), 1),
2403
2403
  Ct(" " + h(a(t)("device.unbindDevice.confirmationInstructionPart2")), 1)
2404
2404
  ]),
2405
- f(v, null, {
2406
- default: k(() => [
2405
+ f(_, null, {
2406
+ default: R(() => [
2407
2407
  f(i, {
2408
2408
  modelValue: s.value,
2409
- "onUpdate:modelValue": d[0] || (d[0] = (y) => s.value = y),
2410
- rules: [a(Ie).required(), a(Ie).matches(e.restaurantName)],
2409
+ "onUpdate:modelValue": m[0] || (m[0] = (y) => s.value = y),
2410
+ rules: [a(Te).required(), a(Te).matches(e.restaurantName)],
2411
2411
  required: ""
2412
2412
  }, null, 8, ["modelValue", "rules"])
2413
2413
  ]),
@@ -2420,18 +2420,20 @@ const Ie = {
2420
2420
  function wt(e) {
2421
2421
  return e && (e = e.replace(/_/g, " ").toLowerCase(), e.split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" "));
2422
2422
  }
2423
- var Fn = /* @__PURE__ */ ((e) => (e.licensePosCreateSubPos = "license_pos_create_subpos", e))(Fn || {}), _i = {}, Ee = {};
2424
- Object.defineProperty(Ee, "__esModule", { value: !0 });
2425
- Ee.F_DISPLAY_NOTIFICATION_TYPE = Ee.F_DISPLAY_ACTION_EVENT = Ee.F_DISPLAY_SYSTEM_EVENT = void 0;
2426
- const Ut = we;
2427
- Ee.F_DISPLAY_SYSTEM_EVENT = Ut.z.enum([
2423
+ var Fn = /* @__PURE__ */ ((e) => (e.licensePosCreateSubPos = "license_pos_create_subpos", e))(Fn || {});
2424
+ const vi = "ee5tjb68adwjkb/pos-dashboard-quickwit", gi = "b61ac933-5533-4e2f-b0b5-d600a51e5a3f/kds-dashboard";
2425
+ var bi = {}, Ie = {};
2426
+ Object.defineProperty(Ie, "__esModule", { value: !0 });
2427
+ Ie.F_DISPLAY_NOTIFICATION_TYPE = Ie.F_DISPLAY_ACTION_EVENT = Ie.F_DISPLAY_SYSTEM_EVENT = void 0;
2428
+ const Ut = Ee;
2429
+ Ie.F_DISPLAY_SYSTEM_EVENT = Ut.z.enum([
2428
2430
  "restaurantInfo",
2429
2431
  "order",
2430
2432
  "orders",
2431
2433
  "action",
2432
2434
  "notification"
2433
2435
  ]);
2434
- Ee.F_DISPLAY_ACTION_EVENT = Ut.z.enum([
2436
+ Ie.F_DISPLAY_ACTION_EVENT = Ut.z.enum([
2435
2437
  "Serve",
2436
2438
  "StartCook",
2437
2439
  "FinishCook",
@@ -2439,50 +2441,50 @@ Ee.F_DISPLAY_ACTION_EVENT = Ut.z.enum([
2439
2441
  "bind",
2440
2442
  "unbind"
2441
2443
  ]);
2442
- Ee.F_DISPLAY_NOTIFICATION_TYPE = Ut.z.enum([
2444
+ Ie.F_DISPLAY_NOTIFICATION_TYPE = Ut.z.enum([
2443
2445
  "Information",
2444
2446
  "Warning",
2445
2447
  "Error"
2446
2448
  ]);
2447
- var vt = {}, ie = {};
2448
- Object.defineProperty(ie, "__esModule", { value: !0 });
2449
- ie.F_PRINTER_PRINT_CUSTOMIZE = ie.F_PAPER_DIRECTION = ie.F_PRINTER_TYPE = ie.F_PRINTER_CONNECTOR = ie.F_STAR_EMULATION_MODE = void 0;
2450
- const ot = we;
2451
- ie.F_STAR_EMULATION_MODE = ot.z.enum([
2449
+ var ft = {}, le = {};
2450
+ Object.defineProperty(le, "__esModule", { value: !0 });
2451
+ le.F_PRINTER_PRINT_CUSTOMIZE = le.F_PAPER_DIRECTION = le.F_PRINTER_TYPE = le.F_PRINTER_CONNECTOR = le.F_STAR_EMULATION_MODE = void 0;
2452
+ const nt = Ee;
2453
+ le.F_STAR_EMULATION_MODE = nt.z.enum([
2452
2454
  "StarPRNT",
2453
2455
  "StarLine",
2454
2456
  "StarGraphic"
2455
2457
  ]);
2456
- ie.F_PRINTER_CONNECTOR = ot.z.enum([
2458
+ le.F_PRINTER_CONNECTOR = nt.z.enum([
2457
2459
  "IP",
2458
2460
  "USB",
2459
2461
  "BLUETOOTH",
2460
2462
  "STAR"
2461
2463
  ]);
2462
- ie.F_PRINTER_TYPE = ot.z.enum([
2464
+ le.F_PRINTER_TYPE = nt.z.enum([
2463
2465
  "ESCPOS",
2464
2466
  "TSPL",
2465
2467
  "STAR",
2466
2468
  "KITCHEN_KDS",
2467
2469
  "WINDOW_KDS"
2468
2470
  ]);
2469
- ie.F_PAPER_DIRECTION = ot.z.nativeEnum({
2471
+ le.F_PAPER_DIRECTION = nt.z.nativeEnum({
2470
2472
  NORMAL: "0",
2471
2473
  REVERSE: "1"
2472
2474
  });
2473
- ie.F_PRINTER_PRINT_CUSTOMIZE = ot.z.enum([
2475
+ le.F_PRINTER_PRINT_CUSTOMIZE = nt.z.enum([
2474
2476
  "ALL",
2475
2477
  "ITEMS",
2476
2478
  "DEPARTMENTS"
2477
2479
  ]);
2478
- Object.defineProperty(vt, "__esModule", { value: !0 });
2479
- vt.FdoPrinterInfo = void 0;
2480
- const w = we, gi = pt, ut = ie;
2481
- vt.FdoPrinterInfo = w.z.object({
2480
+ Object.defineProperty(ft, "__esModule", { value: !0 });
2481
+ ft.FdoPrinterInfo = void 0;
2482
+ const w = Ee, yi = dt, rt = le;
2483
+ ft.FdoPrinterInfo = w.z.object({
2482
2484
  _id: w.z.string(),
2483
- connector: ut.F_PRINTER_CONNECTOR,
2484
- type: ut.F_PRINTER_TYPE,
2485
- emulationMode: ut.F_STAR_EMULATION_MODE.nullish(),
2485
+ connector: rt.F_PRINTER_CONNECTOR,
2486
+ type: rt.F_PRINTER_TYPE,
2487
+ emulationMode: rt.F_STAR_EMULATION_MODE.nullish(),
2486
2488
  machineId: w.z.string().nullish(),
2487
2489
  billPrintTemplateId: w.z.string(),
2488
2490
  orderPrintTemplateId: w.z.string(),
@@ -2513,7 +2515,7 @@ vt.FdoPrinterInfo = w.z.object({
2513
2515
  binded: w.z.boolean().nullish(),
2514
2516
  backupToUsb: w.z.boolean().nullish(),
2515
2517
  backupPrinterId: w.z.string(),
2516
- printCustomize: ut.F_PRINTER_PRINT_CUSTOMIZE.nullish(),
2518
+ printCustomize: rt.F_PRINTER_PRINT_CUSTOMIZE.nullish(),
2517
2519
  printingDepartments: w.z.array(w.z.string()).nullish(),
2518
2520
  printingProducts: w.z.array(w.z.string()),
2519
2521
  filterSlot: w.z.array(w.z.string()).nullish(),
@@ -2526,12 +2528,12 @@ vt.FdoPrinterInfo = w.z.object({
2526
2528
  waitForStatus: w.z.boolean().nullish(),
2527
2529
  printFinishCook: w.z.boolean().nullish(),
2528
2530
  isTextEncoding: w.z.boolean().nullish()
2529
- }).describe(gi.ZodMeta.couch().repo("printerInfo").build());
2530
- var _t = {};
2531
- Object.defineProperty(_t, "__esModule", { value: !0 });
2532
- _t.FdtoFlatItem = void 0;
2533
- const tn = ln, Ft = we;
2534
- _t.FdtoFlatItem = Ft.z.object({
2531
+ }).describe(yi.ZodMeta.couch().repo("printerInfo").build());
2532
+ var ht = {};
2533
+ Object.defineProperty(ht, "__esModule", { value: !0 });
2534
+ ht.FdtoFlatItem = void 0;
2535
+ const tn = ln, Ft = Ee;
2536
+ ht.FdtoFlatItem = Ft.z.object({
2535
2537
  itemKey: Ft.z.string(),
2536
2538
  item: tn.FdoBillItem,
2537
2539
  parentKey: Ft.z.string().nullish(),
@@ -2540,8 +2542,8 @@ _t.FdtoFlatItem = Ft.z.object({
2540
2542
  var pe = {};
2541
2543
  Object.defineProperty(pe, "__esModule", { value: !0 });
2542
2544
  pe.F_CELL_WIDTH_TYPE = pe.F_TEXT_ALIGN = pe.F_WIDGET_ALIGNMENT = pe.F_WIDGET_TEMPLATE_TYPE = void 0;
2543
- const gt = we;
2544
- pe.F_WIDGET_TEMPLATE_TYPE = gt.z.enum([
2545
+ const _t = Ee;
2546
+ pe.F_WIDGET_TEMPLATE_TYPE = _t.z.enum([
2545
2547
  "TEXT",
2546
2548
  "CHECKBOX",
2547
2549
  "DIVIDER",
@@ -2549,7 +2551,7 @@ pe.F_WIDGET_TEMPLATE_TYPE = gt.z.enum([
2549
2551
  "IMAGE",
2550
2552
  "QR"
2551
2553
  ]);
2552
- pe.F_WIDGET_ALIGNMENT = gt.z.enum([
2554
+ pe.F_WIDGET_ALIGNMENT = _t.z.enum([
2553
2555
  "TOP_LEFT",
2554
2556
  "TOP_CENTER",
2555
2557
  "TOP_RIGHT",
@@ -2560,19 +2562,19 @@ pe.F_WIDGET_ALIGNMENT = gt.z.enum([
2560
2562
  "BOTTOM_CENTER",
2561
2563
  "BOTTOM_RIGHT"
2562
2564
  ]);
2563
- pe.F_TEXT_ALIGN = gt.z.enum([
2565
+ pe.F_TEXT_ALIGN = _t.z.enum([
2564
2566
  "LEFT",
2565
2567
  "CENTER",
2566
2568
  "RIGHT"
2567
2569
  ]);
2568
- pe.F_CELL_WIDTH_TYPE = gt.z.enum([
2570
+ pe.F_CELL_WIDTH_TYPE = _t.z.enum([
2569
2571
  "FLEX",
2570
2572
  "FIXED"
2571
2573
  ]);
2572
2574
  var Cn = {};
2573
2575
  (function(e) {
2574
2576
  Object.defineProperty(e, "__esModule", { value: !0 }), e.FdtoTicketItem = e.FdtoTicketSubItem = e.FdtoDisplayOrder = e.FdtoDisplayOrderConfig = e.FdtoDisplayNotification = e.FdtoDisplayAction = void 0;
2575
- const t = ln, n = we, o = Ee;
2577
+ const t = ln, n = Ee, o = Ie;
2576
2578
  e.FdtoDisplayAction = n.z.object({
2577
2579
  type: o.F_DISPLAY_ACTION_EVENT,
2578
2580
  id: n.z.string(),
@@ -2621,10 +2623,10 @@ var Cn = {};
2621
2623
  subItems: n.z.array(e.FdtoTicketSubItem).nullish()
2622
2624
  });
2623
2625
  })(Cn);
2624
- var bt = {};
2626
+ var vt = {};
2625
2627
  (function(e) {
2626
2628
  Object.defineProperty(e, "__esModule", { value: !0 }), e.FdoEditorGroup = e.FdoAdvanceEditorRow = e.FdoAdvanceEditorColumn = e.FdoFixedCellWidth = e.FdoFlexCellWidth = e.FdoBaseCellWidth = e.FdoEditorConfig = e.FdoQrEditorConfig = e.FdoImageEditorConfig = e.FdoCheckboxEditorConfig = e.FdoDividerEditorConfig = e.FdoTextEditorConfig = e.FdoEmptyEditorConfig = e.FdoBaseEditorConfig = e.FdoCellEdgeInset = void 0;
2627
- const t = pt, n = we, o = pe;
2629
+ const t = dt, n = Ee, o = pe;
2628
2630
  e.FdoCellEdgeInset = n.z.object({
2629
2631
  top: n.z.number(),
2630
2632
  right: n.z.number(),
@@ -2696,11 +2698,11 @@ var bt = {};
2696
2698
  }), e.FdoEditorGroup = n.z.object({
2697
2699
  rows: n.z.array(e.FdoAdvanceEditorRow)
2698
2700
  });
2699
- })(bt);
2701
+ })(vt);
2700
2702
  var kn = {};
2701
2703
  (function(e) {
2702
2704
  Object.defineProperty(e, "__esModule", { value: !0 }), e.FdoOrderTemplateV4 = e.FdoOrderTemplateData = void 0;
2703
- const t = pt, n = we, o = bt;
2705
+ const t = dt, n = Ee, o = vt;
2704
2706
  e.FdoOrderTemplateData = n.z.object({
2705
2707
  header: o.FdoEditorGroup,
2706
2708
  body: o.FdoEditorGroup,
@@ -2717,7 +2719,7 @@ var kn = {};
2717
2719
  var Rn = {};
2718
2720
  (function(e) {
2719
2721
  Object.defineProperty(e, "__esModule", { value: !0 }), e.FdoReceiptTemplate = e.FdoTemplateSection = e.F_RECEIPT_SECTION = e.FdoReceiptInfo = void 0;
2720
- const t = pt, n = we, o = bt;
2722
+ const t = dt, n = Ee, o = vt;
2721
2723
  e.FdoReceiptInfo = n.z.object({
2722
2724
  _id: n.z.string(),
2723
2725
  imgData: n.z.string(),
@@ -2751,107 +2753,107 @@ var Rn = {};
2751
2753
  }).describe(t.ZodMeta.couch().repo("receiptTemplate").build());
2752
2754
  })(Rn);
2753
2755
  (function(e) {
2754
- var t = lt && lt.__createBinding || (Object.create ? function(o, s, c, d) {
2755
- d === void 0 && (d = c);
2756
+ var t = at && at.__createBinding || (Object.create ? function(o, s, c, m) {
2757
+ m === void 0 && (m = c);
2756
2758
  var i = Object.getOwnPropertyDescriptor(s, c);
2757
2759
  (!i || ("get" in i ? !s.__esModule : i.writable || i.configurable)) && (i = { enumerable: !0, get: function() {
2758
2760
  return s[c];
2759
- } }), Object.defineProperty(o, d, i);
2760
- } : function(o, s, c, d) {
2761
- d === void 0 && (d = c), o[d] = s[c];
2762
- }), n = lt && lt.__exportStar || function(o, s) {
2761
+ } }), Object.defineProperty(o, m, i);
2762
+ } : function(o, s, c, m) {
2763
+ m === void 0 && (m = c), o[m] = s[c];
2764
+ }), n = at && at.__exportStar || function(o, s) {
2763
2765
  for (var c in o)
2764
2766
  c !== "default" && !Object.prototype.hasOwnProperty.call(s, c) && t(s, o, c);
2765
2767
  };
2766
- Object.defineProperty(e, "__esModule", { value: !0 }), n(Ee, e), n(vt, e), n(_t, e), n(ie, e), n(pe, e), n(Cn, e), n(bt, e), n(kn, e), n(Rn, e);
2767
- })(_i);
2768
- const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-reverse flex items-center justify-end gap-8 sm:flex-col-reverse" }, Ti = /* @__PURE__ */ Ne({
2768
+ Object.defineProperty(e, "__esModule", { value: !0 }), n(Ie, e), n(ft, e), n(ht, e), n(le, e), n(pe, e), n(Cn, e), n(vt, e), n(kn, e), n(Rn, e);
2769
+ })(bi);
2770
+ const Ti = { class: "fm-typo-en-body-md-400" }, Ii = { class: "xs:flex-col-reverse flex items-center justify-end gap-8 sm:flex-col-reverse" }, Ei = /* @__PURE__ */ Ne({
2769
2771
  __name: "CreateDeviceDialog",
2770
2772
  setup(e) {
2771
- const { t } = Se(), n = ft(), o = Q(
2772
- () => n.restaurants.value.map((O) => ({
2773
- label: O.profile.name,
2774
- value: O._id
2775
- })).sort((O, E) => O.label.toLowerCase().localeCompare(E.label.toLowerCase()))
2773
+ const { t } = Se(), n = mt(), o = Q(
2774
+ () => n.restaurants.value.map((S) => ({
2775
+ label: S.profile.name,
2776
+ value: S._id
2777
+ })).sort((S, E) => S.label.toLowerCase().localeCompare(E.label.toLowerCase()))
2776
2778
  ), s = N([]), c = async () => {
2777
2779
  i.value && (s.value = await J.getPrinters(i.value), F.value = []);
2778
- }, d = Q(
2779
- () => s.value.map((O) => ({
2780
- label: O.name,
2781
- value: O._id
2780
+ }, m = Q(
2781
+ () => s.value.map((S) => ({
2782
+ label: S.name,
2783
+ value: S._id
2782
2784
  }))
2783
- ), i = N(o.value.length === 1 ? o.value[0].value : ""), v = N(""), y = N(X.Enum.COUNTER), F = N([]), { emitData: A } = rn(), x = Q(() => ({
2785
+ ), i = N(o.value.length === 1 ? o.value[0].value : ""), _ = N(""), y = N(X.Enum.COUNTER), F = N([]), { emitData: A } = rn(), z = Q(() => ({
2784
2786
  restaurantId: i.value,
2785
- name: v.value,
2787
+ name: _.value,
2786
2788
  type: y.value,
2787
2789
  printers: F.value
2788
2790
  }));
2789
2791
  je(
2790
- [i, v, y, F],
2792
+ [i, _, y, F],
2791
2793
  () => {
2792
- A(x.value);
2794
+ A(z.value);
2793
2795
  },
2794
2796
  { deep: !0 }
2795
2797
  );
2796
- const D = N();
2797
- function S(O) {
2798
- F.value = O ? d.value.map((E) => E.value) : [];
2798
+ const x = N();
2799
+ function O(S) {
2800
+ F.value = S ? m.value.map((E) => E.value) : [];
2799
2801
  }
2800
- const P = qe(), L = St(), { getUserFlagValue: j } = Bn(), G = async () => {
2802
+ const P = qe(), M = Ot(), { getUserFlagValue: j } = Bn(), W = async () => {
2801
2803
  try {
2802
- const O = (await J.getDevices(i.value)).filter((T) => T.type != X.Enum.MAIN), E = await j(i.value, Fn.licensePosCreateSubPos, 3);
2803
- if (E && O.length >= E) {
2804
+ const S = (await J.getDevices(i.value)).filter((T) => T.type != X.Enum.MAIN), E = await j(i.value, Fn.licensePosCreateSubPos, 3);
2805
+ if (E && S.length >= E) {
2804
2806
  P.open({
2805
2807
  message: t("device.status.creation.limitError", { limit: E }),
2806
2808
  type: "error",
2807
- position: W.BOTTOM
2809
+ position: G.BOTTOM
2808
2810
  });
2809
2811
  return;
2810
2812
  }
2811
- await J.createSubDevice(x.value).then(() => {
2813
+ await J.createSubDevice(z.value).then(() => {
2812
2814
  P.open({
2813
- message: t("device.status.creation.success", { name: x.value.name }),
2815
+ message: t("device.status.creation.success", { name: z.value.name }),
2814
2816
  type: "success",
2815
- position: W.BOTTOM
2817
+ position: G.BOTTOM
2816
2818
  });
2817
2819
  });
2818
- } catch (O) {
2820
+ } catch (S) {
2819
2821
  P.open({
2820
- message: t("device.status.creation.error", { error: O }),
2822
+ message: t("device.status.creation.error", { error: S }),
2821
2823
  type: "error",
2822
- position: W.BOTTOM
2824
+ position: G.BOTTOM
2823
2825
  });
2824
2826
  } finally {
2825
- L.close();
2827
+ M.close();
2826
2828
  }
2827
2829
  };
2828
- return je(F, (O) => {
2829
- D.value = O.length === d.value.length;
2830
- }), je(i, c), (O, E) => {
2831
- const T = I("FmSelect"), U = I("FmTextField"), se = I("FmCheckbox"), $ = I("FmSpacer"), ae = I("FmButton"), ce = I("FmForm");
2832
- return p(), V(ce, {
2833
- onValidationSuccess: G,
2830
+ return je(F, (S) => {
2831
+ x.value = S.length === m.value.length;
2832
+ }), je(i, c), (S, E) => {
2833
+ const T = I("FmSelect"), U = I("FmTextField"), ne = I("FmCheckbox"), $ = I("FmSpacer"), ie = I("FmButton"), be = I("FmForm");
2834
+ return p(), V(be, {
2835
+ onValidationSuccess: W,
2834
2836
  class: "flex flex-col gap-5 py-2"
2835
2837
  }, {
2836
- default: k(() => [
2838
+ default: R(() => [
2837
2839
  f(T, {
2838
2840
  modelValue: i.value,
2839
- "onUpdate:modelValue": E[0] || (E[0] = (ee) => i.value = ee),
2841
+ "onUpdate:modelValue": E[0] || (E[0] = (K) => i.value = K),
2840
2842
  label: a(t)("device.creation.fields.restaurant.label"),
2841
2843
  items: o.value,
2842
2844
  placeholder: a(t)("device.creation.fields.restaurant.label"),
2843
- rules: [a(Ie).required()]
2845
+ rules: [a(Te).required()]
2844
2846
  }, null, 8, ["modelValue", "label", "items", "placeholder", "rules"]),
2845
2847
  f(U, {
2846
- modelValue: v.value,
2847
- "onUpdate:modelValue": E[1] || (E[1] = (ee) => v.value = ee),
2848
+ modelValue: _.value,
2849
+ "onUpdate:modelValue": E[1] || (E[1] = (K) => _.value = K),
2848
2850
  label: a(t)("device.creation.fields.name.label"),
2849
2851
  placeholder: a(t)("device.creation.fields.name.placeholder"),
2850
- rules: [a(Ie).nonEmpty()]
2852
+ rules: [a(Te).nonEmpty()]
2851
2853
  }, null, 8, ["modelValue", "label", "placeholder", "rules"]),
2852
2854
  f(T, {
2853
2855
  modelValue: y.value,
2854
- "onUpdate:modelValue": E[2] || (E[2] = (ee) => y.value = ee),
2856
+ "onUpdate:modelValue": E[2] || (E[2] = (K) => y.value = K),
2855
2857
  items: [
2856
2858
  {
2857
2859
  label: a(t)("device.creation.fields.type.options.counter"),
@@ -2864,44 +2866,44 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
2864
2866
  ],
2865
2867
  label: a(t)("device.creation.fields.type.label"),
2866
2868
  placeholder: a(t)("device.creation.fields.type.placeholder"),
2867
- rules: [a(Ie).required()]
2869
+ rules: [a(Te).required()]
2868
2870
  }, null, 8, ["modelValue", "items", "label", "placeholder", "rules"]),
2869
- i.value && d.value.length ? (p(), V(T, {
2871
+ i.value && m.value.length ? (p(), V(T, {
2870
2872
  key: 0,
2871
2873
  multiselect: "",
2872
2874
  modelValue: F.value,
2873
- "onUpdate:modelValue": E[4] || (E[4] = (ee) => F.value = ee),
2874
- items: d.value,
2875
+ "onUpdate:modelValue": E[4] || (E[4] = (K) => F.value = K),
2876
+ items: m.value,
2875
2877
  label: a(t)("device.creation.fields.printer.label"),
2876
2878
  placeholder: a(t)("device.creation.fields.printer.placeholder")
2877
2879
  }, {
2878
- "prepend-menu": k(() => [
2879
- f(se, {
2880
+ "prepend-menu": R(() => [
2881
+ f(ne, {
2880
2882
  class: "ml-1",
2881
2883
  indeterminate: F.value.length > 0,
2882
- "model-value": D.value,
2883
- "onUpdate:modelValue": E[3] || (E[3] = (ee) => S(ee)),
2884
+ "model-value": x.value,
2885
+ "onUpdate:modelValue": E[3] || (E[3] = (K) => O(K)),
2884
2886
  label: " ",
2885
2887
  value: !0
2886
2888
  }, {
2887
- label: k(() => [
2888
- r("div", bi, h(a(t)("device.filters.all")), 1)
2889
+ label: R(() => [
2890
+ r("div", Ti, h(a(t)("device.filters.all")), 1)
2889
2891
  ]),
2890
2892
  _: 1
2891
2893
  }, 8, ["indeterminate", "model-value"])
2892
2894
  ]),
2893
2895
  _: 1
2894
- }, 8, ["modelValue", "items", "label", "placeholder"])) : C("", !0),
2895
- r("div", yi, [
2896
+ }, 8, ["modelValue", "items", "label", "placeholder"])) : k("", !0),
2897
+ r("div", Ii, [
2896
2898
  f($, { class: "xs:hidden sm:hidden" }),
2897
- f(ae, {
2899
+ f(ie, {
2898
2900
  class: "xs:w-full sm:w-full",
2899
2901
  variant: "secondary",
2900
2902
  label: a(t)("device.actions.cancel"),
2901
2903
  size: "md",
2902
- onClick: E[5] || (E[5] = (ee) => a(L).close())
2904
+ onClick: E[5] || (E[5] = (K) => a(M).close())
2903
2905
  }, null, 8, ["label"]),
2904
- f(ae, {
2906
+ f(ie, {
2905
2907
  class: "xs:w-full sm:w-full",
2906
2908
  variant: "primary",
2907
2909
  label: a(t)("device.actions.create"),
@@ -2914,75 +2916,85 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
2914
2916
  });
2915
2917
  };
2916
2918
  }
2917
- }), Ii = { class: "flex flex-col p-5 bg-white gap-5" }, Ei = { class: "flex items-center" }, wi = { class: "fm-typo-en-title-md-600" }, Fi = {
2919
+ }), wi = { class: "flex flex-col p-5 bg-white gap-5" }, Fi = { class: "flex items-center" }, Ci = { class: "fm-typo-en-title-md-600" }, ki = {
2918
2920
  key: 0,
2919
2921
  class: "flex gap-8"
2920
- }, Ci = { class: "flex gap-4 pb-5" }, ki = { key: 0 }, Ri = { class: "flex flex-col gap-1 overflow-y-auto h-full" }, Oi = { class: "flex w-full justify-between" }, Si = { class: "w-full" }, Ai = { class: "max-w-[250px]" }, Di = { class: "max-h-[310px] overflow-y-auto" }, xi = { class: "w-full" }, zi = { class: "w-[200px]" }, Ni = { class: "grow flex flex-col gap-8" }, Pi = { class: "flex flex-row gap-4 flex-wrap items-center" }, Ui = { class: "fm-typo-en-body-lg-600" }, Li = { key: 0 }, Mi = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bi = {
2922
+ }, Ri = { class: "flex gap-4 pb-5" }, Si = { key: 0 }, Oi = { class: "flex flex-col gap-1 overflow-y-auto h-full" }, Di = { class: "flex w-full justify-between" }, Ai = { class: "w-full" }, xi = { class: "max-w-[250px]" }, zi = { class: "max-h-[310px] overflow-y-auto" }, Ni = { class: "w-full" }, Pi = { class: "w-[200px]" }, Ui = { class: "grow flex flex-col gap-8" }, Li = { class: "flex flex-row gap-4 flex-wrap items-center" }, Mi = { class: "fm-typo-en-body-lg-600" }, Bi = { key: 0 }, $i = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Vi = {
2921
2923
  key: 0,
2922
2924
  class: "flex gap-8"
2923
- }, $i = {
2925
+ }, ji = {
2924
2926
  key: 0,
2925
2927
  class: "flex items-center"
2926
- }, Vi = { class: "flex flex-row gap-4" }, ji = {
2928
+ }, qi = { class: "flex flex-row gap-4" }, Hi = {
2927
2929
  key: 3,
2928
2930
  class: "fixed bottom-72 right-16"
2929
- }, Ki = /* @__PURE__ */ Ne({
2931
+ }, Zi = /* @__PURE__ */ Ne({
2930
2932
  __name: "DeviceList",
2931
2933
  setup(e) {
2932
- const { t } = Se(), { isAtMost: n } = Ot(), o = ft(), s = an(), c = St(), d = qe(), i = Q(() => {
2934
+ const { t } = Se(), { isAtMost: n } = St(), o = mt(), s = an(), c = Ot(), m = qe(), i = Q(() => {
2933
2935
  var l;
2934
2936
  return (l = o.restaurants.value) == null ? void 0 : l.filter((u) => u.managable);
2935
- }), v = Q(() => s.getCustomerDisplayImages()), y = N(!1), F = N([]), A = N([]), x = N([]), D = N(""), S = N(!0), P = async () => {
2937
+ }), _ = Q(() => s.getCustomerDisplayImages()), y = N(!1), F = N([]), A = N([]), z = N([]), x = N(""), O = N(!0), P = async () => {
2936
2938
  var l;
2937
2939
  try {
2938
2940
  const u = await J.getDevicesFromRestaurants();
2939
- F.value = u.map((_) => ({
2940
- ..._,
2941
- type: _.type ?? "UNASSIGNED",
2942
- restaurantName: fe(_.restaurantId),
2943
- images: _.type === X.Enum.MAIN ? de(_.restaurantId) : []
2944
- })), A.value = (l = i.value) == null ? void 0 : l.map((_) => _._id), x.value = O.value.map((_) => _.value);
2941
+ F.value = u.map((v) => ({
2942
+ ...v,
2943
+ type: v.type ?? "UNASSIGNED",
2944
+ restaurantName: he(v.restaurantId),
2945
+ images: v.type === X.Enum.MAIN ? d(v.restaurantId) : []
2946
+ })), A.value = (l = i.value) == null ? void 0 : l.map((v) => v._id), z.value = S.value.map((v) => v.value);
2945
2947
  } catch (u) {
2946
2948
  console.error("Failed to get restaurants devices:", u);
2947
2949
  }
2948
- }, L = (l, u) => l.type === X.Enum.MAIN ? -1 : u.type === X.Enum.MAIN ? 1 : l.type.toLowerCase() !== u.type.toLowerCase() ? l.type.toLowerCase() > u.type.toLowerCase() ? 1 : -1 : l.createdAt && u.createdAt ? l.createdAt < u.createdAt ? 1 : -1 : 0, j = Q(() => {
2949
- if (S.value)
2950
+ }, M = (l, u) => l.type === X.Enum.MAIN ? -1 : u.type === X.Enum.MAIN ? 1 : l.type.toLowerCase() !== u.type.toLowerCase() ? l.type.toLowerCase() > u.type.toLowerCase() ? 1 : -1 : l.createdAt && u.createdAt ? l.createdAt < u.createdAt ? 1 : -1 : 0, j = Q(() => {
2951
+ if (O.value)
2950
2952
  return [];
2951
- const l = D.value.toLowerCase(), u = F.value.filter((_) => {
2952
- const B = A.value.includes(_.restaurantId), _e = x.value.includes(_.type);
2953
- return B && _e;
2953
+ const l = x.value.toLowerCase(), u = F.value.filter((v) => {
2954
+ const B = A.value.includes(v.restaurantId), ce = z.value.includes(v.type);
2955
+ return B && ce;
2954
2956
  });
2955
2957
  return l ? u.filter(
2956
- (_) => JSON.stringify({ ..._ }).toLowerCase().includes(l)
2957
- ).sort(L) : u.sort(L);
2958
- }), G = Q(
2958
+ (v) => JSON.stringify({ ...v }).toLowerCase().includes(l)
2959
+ ).sort(M) : u.sort(M);
2960
+ }), W = Q(
2959
2961
  () => i.value.map((l) => ({
2960
2962
  label: l.profile.name,
2961
2963
  value: l._id
2962
2964
  }))
2963
- ), O = Q(
2965
+ ), S = Q(
2964
2966
  () => F.value.map((l) => ({
2965
2967
  label: l.type ? wt(l.type) : l.type,
2966
2968
  value: l.type
2967
- })).filter((l, u) => u === F.value.findIndex((_) => l.value === _.type))
2969
+ })).filter((l, u) => u === F.value.findIndex((v) => l.value === v.type))
2968
2970
  ), E = (l, u) => {
2969
- const _ = l.indexOf(u.value);
2970
- _ === -1 ? l.push(u.value) : l.splice(_, 1);
2971
+ const v = l.indexOf(u.value);
2972
+ v === -1 ? l.push(u.value) : l.splice(v, 1);
2971
2973
  }, T = (l, u) => {
2972
- l.splice(0, l.length, ...l.length ? [] : u.map((_) => _.value));
2973
- }, U = (l, u, _) => {
2974
+ l.splice(0, l.length, ...l.length ? [] : u.map((v) => v.value));
2975
+ }, U = (l, u, v) => {
2974
2976
  var B;
2975
- return l.length === 0 ? "" : l.length === u.length ? `${_}: ${t("device.filters.all")}` : l.length === 1 && !n("sm") ? (B = u.find((_e) => _e.value === l[0])) == null ? void 0 : B.label : t("device.filters.selected", { count: l.length });
2976
- }, se = (l) => {
2977
+ return l.length === 0 ? "" : l.length === u.length ? `${v}: ${t("device.filters.all")}` : l.length === 1 && !n("sm") ? (B = u.find((ce) => ce.value === l[0])) == null ? void 0 : B.label : t("device.filters.selected", { count: l.length });
2978
+ }, ne = (l, u, v) => {
2979
+ const B = "https://grafana.feedme.farm/d", ce = new URLSearchParams({
2980
+ orgId: "1",
2981
+ "var-maxRows": "1000",
2982
+ "var-severity": "All",
2983
+ "var-env": u,
2984
+ "var-country": "All",
2985
+ "var-restaurantId": v
2986
+ });
2987
+ return `${B}/${l}?${ce.toString()}`;
2988
+ }, $ = (l) => {
2977
2989
  if (!l.restaurantId)
2978
2990
  return;
2979
- const u = "dev", _ = `https://grafana.feedme.farm/d/ee5tjb68adwjkb/pos-dashboard-quickwit?orgId=1&var-maxRows=1000&var-severity=All&var-env=${u}&var-country=All&var-restaurantId=${l.restaurantId}`, B = `https://grafana.feedme.farm/d/b61ac933-5533-4e2f-b0b5-d600a51e5a3f/kds-dashboard?orgId=1&var-maxRows=1000&var-severity=All&var-env=${u}&var-country=All&var-type=$__all&var-restaurantId=${l.restaurantId}`;
2980
- d.open({
2981
- message: t("device.logs.redirect", { name: l.name ?? fe(l.restaurantId) }),
2991
+ const u = "dev", v = l.type === X.Enum.KDS, B = ne(v ? gi : vi, u, l.restaurantId);
2992
+ m.open({
2993
+ message: t("device.logs.redirect", { name: l.name ?? he(l.restaurantId) }),
2982
2994
  type: "success",
2983
- position: W.BOTTOM
2984
- }), setTimeout(() => window.open(l.type === X.Enum.KDS ? B : _, "_blank"), 500);
2985
- }, $ = async (l) => {
2995
+ position: G.BOTTOM
2996
+ }), setTimeout(() => window.open(B, "_blank"), 500);
2997
+ }, ie = async (l) => {
2986
2998
  l.machineId && await J.checkDeviceStatus(l.machineId).then((u) => {
2987
2999
  c.open({
2988
3000
  title: t("device.logs.download.title"),
@@ -2994,82 +3006,82 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
2994
3006
  }
2995
3007
  });
2996
3008
  }).catch((u) => {
2997
- d.open({
3009
+ m.open({
2998
3010
  message: t("device.error.general", { error: u }),
2999
3011
  type: "error",
3000
- position: W.BOTTOM
3012
+ position: G.BOTTOM
3001
3013
  });
3002
3014
  });
3003
- }, ae = (l) => {
3015
+ }, be = (l) => {
3004
3016
  l.restaurantId && c.open({
3005
3017
  title: t("device.actions.unbindDevice"),
3006
- contentComponent: vi,
3018
+ contentComponent: _i,
3007
3019
  contentComponentProps: {
3008
3020
  restaurantName: l.restaurantName
3009
3021
  },
3010
3022
  primaryActions: { text: t("device.actions.unbind"), close: !1, variant: "destructive" },
3011
3023
  secondaryActions: { text: t("device.actions.cancel"), close: !0 }
3012
3024
  }).onPrimary(async (u) => {
3013
- u != l.restaurantName || !l.restaurantId || (await J.unbindDevice(l.restaurantId).catch(async (_) => {
3014
- if (_ === "Restaurant has no machine" && l.machineId)
3025
+ u != l.restaurantName || !l.restaurantId || (await J.unbindDevice(l.restaurantId).catch(async (v) => {
3026
+ if (v === "Restaurant has no machine" && l.machineId)
3015
3027
  await J.mdmUnbindDevice(l.machineId);
3016
3028
  else
3017
- throw _;
3029
+ throw v;
3018
3030
  }).then(async () => {
3019
- await he(), d.open({
3031
+ await ue(), m.open({
3020
3032
  message: t("device.status.unbind.success", { name: u }),
3021
3033
  type: "success",
3022
- position: W.BOTTOM
3034
+ position: G.BOTTOM
3023
3035
  });
3024
- }).catch((_) => {
3025
- d.open({
3026
- message: t("device.error.general", { error: _ }),
3036
+ }).catch((v) => {
3037
+ m.open({
3038
+ message: t("device.error.general", { error: v }),
3027
3039
  type: "error",
3028
- position: W.BOTTOM
3040
+ position: G.BOTTOM
3029
3041
  });
3030
3042
  }), c.close());
3031
3043
  });
3032
- }, ce = N(""), ee = async (l) => {
3033
- ce.value = "";
3044
+ }, K = N(""), Pe = async (l) => {
3045
+ K.value = "";
3034
3046
  const u = await J.generateDeviceOtp(l);
3035
- ce.value = u.machineOtp ?? "";
3036
- }, Pe = async (l) => {
3037
- l.restaurantId && await ee(l.restaurantId).then(() => {
3047
+ K.value = u.machineOtp ?? "";
3048
+ }, we = async (l) => {
3049
+ l.restaurantId && await Pe(l.restaurantId).then(() => {
3038
3050
  c.open({
3039
3051
  title: t("device.actions.bindDevice"),
3040
- contentComponent: Wn,
3052
+ contentComponent: Gn,
3041
3053
  contentComponentProps: {
3042
3054
  restaurantId: l.restaurantId,
3043
3055
  get otp() {
3044
- return ce.value;
3056
+ return K.value;
3045
3057
  },
3046
3058
  "onUpdate:otp"(u) {
3047
- ce.value = u;
3059
+ K.value = u;
3048
3060
  }
3049
3061
  },
3050
3062
  primaryActions: { text: t("device.actions.regenerate"), close: !1 },
3051
3063
  secondaryActions: { text: t("device.actions.cancel"), close: !0 }
3052
3064
  }).onPrimary(async () => {
3053
- l.restaurantId && await ee(l.restaurantId);
3065
+ l.restaurantId && await Pe(l.restaurantId);
3054
3066
  }).onClose(async () => {
3055
- await he();
3067
+ await ue();
3056
3068
  let u = F.value.find(
3057
- (_) => _.restaurantId === l.restaurantId && _.type === X.Enum.MAIN && _.machineId
3069
+ (v) => v.restaurantId === l.restaurantId && v.type === X.Enum.MAIN && v.machineId
3058
3070
  );
3059
- u && u.restaurantId && d.open({
3071
+ u && u.restaurantId && m.open({
3060
3072
  message: t("device.status.bind.success", { name: l.restaurantName }),
3061
3073
  type: "success",
3062
- position: W.BOTTOM
3074
+ position: G.BOTTOM
3063
3075
  });
3064
3076
  });
3065
3077
  }).catch((u) => {
3066
- d.open({
3078
+ m.open({
3067
3079
  message: t("device.error.general", { error: u }),
3068
3080
  type: "error",
3069
- position: W.BOTTOM
3081
+ position: G.BOTTOM
3070
3082
  });
3071
3083
  });
3072
- }, Fe = () => {
3084
+ }, fe = () => {
3073
3085
  c.open({
3074
3086
  title: t("device.actions.forceSync"),
3075
3087
  message: t("device.status.sync.confirmation"),
@@ -3077,57 +3089,57 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3077
3089
  secondaryActions: { text: t("device.actions.cancel"), close: !0 }
3078
3090
  }).onPrimary(async () => {
3079
3091
  c.close();
3080
- const l = d.open({
3092
+ const l = m.open({
3081
3093
  message: t("device.status.sync.inProgress"),
3082
3094
  spinner: !0,
3083
3095
  type: "info",
3084
- position: W.BOTTOM
3096
+ position: G.BOTTOM
3085
3097
  });
3086
3098
  await J.forceSync().then(async () => {
3087
- await he(), setTimeout(() => {
3088
- d.updateSnackbar(l, {
3099
+ await ue(), setTimeout(() => {
3100
+ m.updateSnackbar(l, {
3089
3101
  message: t("device.status.sync.success"),
3090
3102
  spinner: !1,
3091
3103
  type: "success",
3092
- position: W.BOTTOM
3104
+ position: G.BOTTOM
3093
3105
  });
3094
3106
  }, 500);
3095
3107
  }).catch((u) => {
3096
- d.updateSnackbar(l, {
3108
+ m.updateSnackbar(l, {
3097
3109
  message: t("device.status.sync.error", { error: u }),
3098
3110
  spinner: !1,
3099
3111
  type: "error",
3100
- position: W.BOTTOM
3112
+ position: G.BOTTOM
3101
3113
  });
3102
3114
  });
3103
3115
  });
3104
- }, fe = (l) => {
3105
- var u, _;
3106
- return (_ = (u = i.value) == null ? void 0 : u.find((B) => B._id === l)) == null ? void 0 : _.profile.name;
3107
- }, ue = (l) => new Date(l).toLocaleDateString("en-GB", {
3116
+ }, he = (l) => {
3117
+ var u, v;
3118
+ return (v = (u = i.value) == null ? void 0 : u.find((B) => B._id === l)) == null ? void 0 : v.profile.name;
3119
+ }, Fe = (l) => new Date(l).toLocaleDateString("en-GB", {
3108
3120
  day: "2-digit",
3109
3121
  month: "short",
3110
3122
  year: "numeric",
3111
3123
  hour: "2-digit",
3112
3124
  minute: "2-digit",
3113
3125
  hour12: !0
3114
- }).toUpperCase().split(","), de = (l) => v.value.filter((u) => u.restaurantIds.includes(l)).map((u) => u.url), m = (l) => l.slice(0, 3), z = (l) => {
3115
- const u = [{ label: t("device.menu.logs"), value: "logs", onClick: () => se(l) }];
3116
- return l.machineId && u.push({ label: t("device.menu.downloadLogs"), value: "download_logs", onClick: () => $(l) }), l.deviceId && u.push({
3126
+ }).toUpperCase().split(","), d = (l) => _.value.filter((u) => u.restaurantIds.includes(l)).map((u) => u.url), D = (l) => l.slice(0, 3), Y = (l) => {
3127
+ const u = [{ label: t("device.menu.logs"), value: "logs", onClick: () => $(l) }];
3128
+ return l.machineId && u.push({ label: t("device.menu.downloadLogs"), value: "download_logs", onClick: () => ie(l) }), l.deviceId && u.push({
3117
3129
  label: t("device.menu.configurations"),
3118
3130
  value: "configurations",
3119
3131
  onClick: () => {
3120
- Ae.value = l, ve.value = !0;
3132
+ de.value = l, Oe.value = !0;
3121
3133
  }
3122
3134
  }), u;
3123
- }, Y = [
3135
+ }, ee = [
3124
3136
  {
3125
3137
  id: "deviceName",
3126
3138
  accessorKey: "name",
3127
3139
  header: () => t("device.table.columns.deviceName"),
3128
3140
  cell: (l) => {
3129
- let u = l.row.original, _ = u.name;
3130
- return l.row.original.type === X.Enum.MAIN && (_ = u.restaurantName), Z("div", { class: "text-ellipsis overflow-hidden text-balance" }, _ ?? "-");
3141
+ let u = l.row.original, v = u.name;
3142
+ return l.row.original.type === X.Enum.MAIN && (v = u.restaurantName), Z("div", { class: "text-ellipsis overflow-hidden text-balance" }, v ?? "-");
3131
3143
  },
3132
3144
  meta: {
3133
3145
  width: "220px"
@@ -3138,7 +3150,7 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3138
3150
  accessorKey: "images",
3139
3151
  header: () => t("device.table.columns.displayImage"),
3140
3152
  cell(l) {
3141
- const u = m(l.getValue()), _ = l.getValue().length - u.length;
3153
+ const u = D(l.getValue()), v = l.getValue().length - u.length;
3142
3154
  return u.length > 0 ? Z("div", { class: "flex gap-8" }, [
3143
3155
  ...u.map(
3144
3156
  (B) => Z($e.FmThumbnail, {
@@ -3147,7 +3159,7 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3147
3159
  key: B
3148
3160
  })
3149
3161
  ),
3150
- _ > 0 && Z("span", { class: "flex items-center" }, `+${_}`)
3162
+ v > 0 && Z("span", { class: "flex items-center" }, `+${v}`)
3151
3163
  ]) : Z("div", "-");
3152
3164
  },
3153
3165
  meta: {
@@ -3185,8 +3197,8 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3185
3197
  header: () => t("device.table.columns.bindingAt"),
3186
3198
  cell: (l) => {
3187
3199
  if (l.getValue()) {
3188
- const [u, _] = ue(l.getValue());
3189
- return Z("div", [Z("div", u), Z("div", _)]);
3200
+ const [u, v] = Fe(l.getValue());
3201
+ return Z("div", [Z("div", u), Z("div", v)]);
3190
3202
  }
3191
3203
  return Z("div", "-");
3192
3204
  },
@@ -3198,17 +3210,17 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3198
3210
  id: "bind-device",
3199
3211
  cell(l) {
3200
3212
  let u = l.row.original;
3201
- const _ = !!u.machineId;
3213
+ const v = !!u.machineId;
3202
3214
  if (u.type === X.Enum.MAIN)
3203
3215
  return Z(
3204
3216
  "div",
3205
3217
  { class: "flex items-center justify-center" },
3206
3218
  Z($e.FmButton, {
3207
- prependIcon: _ ? "link_off" : "link",
3219
+ prependIcon: v ? "link_off" : "link",
3208
3220
  variant: "secondary",
3209
- label: n("sm") ? void 0 : t(_ ? "device.actions.unbindDevice" : "device.actions.bindDevice"),
3221
+ label: n("sm") ? void 0 : t(v ? "device.actions.unbindDevice" : "device.actions.bindDevice"),
3210
3222
  onClick(B) {
3211
- B.stopPropagation(), _ ? ae(u) : Pe(u);
3223
+ B.stopPropagation(), v ? be(u) : we(u);
3212
3224
  }
3213
3225
  })
3214
3226
  );
@@ -3220,9 +3232,9 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3220
3232
  {
3221
3233
  id: "logs",
3222
3234
  cell(l) {
3223
- var _;
3235
+ var v;
3224
3236
  let u = l.row.original;
3225
- return (_ = o.sessionUser.value) != null && _.role.isAdmin ? Z(
3237
+ return (v = o.sessionUser.value) != null && v.role.isAdmin ? Z(
3226
3238
  "div",
3227
3239
  Z(
3228
3240
  $e.FmMenu,
@@ -3234,7 +3246,7 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3234
3246
  minHeight: 3e3
3235
3247
  },
3236
3248
  {
3237
- default: () => z(u).map(
3249
+ default: () => Y(u).map(
3238
3250
  (B) => Z($e.FmMenuItem, {
3239
3251
  key: B.value,
3240
3252
  label: B.label,
@@ -3253,55 +3265,55 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3253
3265
  width: "1px"
3254
3266
  }
3255
3267
  }
3256
- ], K = N(""), re = Q(
3257
- () => G.value.filter(
3258
- (l) => K.value ? l.label.toLowerCase().includes(K.value.toLowerCase()) : !0
3268
+ ], oe = N(""), gt = Q(
3269
+ () => W.value.filter(
3270
+ (l) => oe.value ? l.label.toLowerCase().includes(oe.value.toLowerCase()) : !0
3259
3271
  )
3260
- ), st = () => {
3272
+ ), ot = () => {
3261
3273
  c.open({
3262
3274
  title: t("device.creation.title"),
3263
- contentComponent: Ti
3275
+ contentComponent: Ei
3264
3276
  }).onClose(async () => {
3265
- await he();
3277
+ await ue();
3266
3278
  });
3267
- }, Ue = N(!1), Ce = N(!1), ke = N(), he = async () => {
3268
- S.value = !0, await o.readRestaurants(), await P(), await sn(), S.value = !1;
3269
- }, { currentBusinessWithDisplayImages: at } = $n(s), yt = Q(() => o.currentBusiness.value);
3270
- je(Ce, async (l) => {
3279
+ }, Ce = N(!1), Ue = N(!1), ke = N(), ue = async () => {
3280
+ O.value = !0, await o.readRestaurants(), await P(), await sn(), O.value = !1;
3281
+ }, { currentBusinessWithDisplayImages: bt } = $n(s), yt = Q(() => o.currentBusiness.value);
3282
+ je(Ue, async (l) => {
3271
3283
  var u;
3272
- l && ((u = ke.value) == null ? void 0 : u.type) === X.Enum.MAIN && (ke.value = void 0, await he()), Ce.value = !1;
3284
+ l && ((u = ke.value) == null ? void 0 : u.type) === X.Enum.MAIN && (ke.value = void 0, await ue()), Ue.value = !1;
3273
3285
  });
3274
- const Ae = N(), ve = N(!1);
3275
- return je(ve, (l) => {
3276
- l || (Ae.value = void 0);
3277
- }), mt(async () => {
3278
- at.value = yt.value, await J.forceSync(), await he();
3286
+ const de = N(), Oe = N(!1);
3287
+ return je(Oe, (l) => {
3288
+ l || (de.value = void 0);
3289
+ }), ut(async () => {
3290
+ bt.value = yt.value, await J.forceSync(), await ue();
3279
3291
  }), (l, u) => {
3280
- const _ = I("FmSpacer"), B = I("FmButton"), _e = I("FmListItem"), He = I("FmList"), it = I("FmBottomSheet"), Le = I("FmMenuDivider"), Me = I("FmSearch"), Be = I("FmChip"), Re = I("FmMenuItem"), R = I("FmMenu"), M = I("FmTableToolbar"), ge = I("FmTable"), be = I("FmThumbnail"), De = I("FmCircularProgress");
3281
- return p(), g("div", Ii, [
3282
- r("div", Ei, [
3283
- r("div", wi, h(a(t)("device.title")), 1),
3284
- f(_),
3285
- a(n)("sm") ? C("", !0) : (p(), g("div", Fi, [
3292
+ const v = I("FmSpacer"), B = I("FmButton"), ce = I("FmListItem"), He = I("FmList"), st = I("FmBottomSheet"), Le = I("FmMenuDivider"), Me = I("FmSearch"), Be = I("FmChip"), C = I("FmMenuItem"), L = I("FmMenu"), _e = I("FmTableToolbar"), ve = I("FmTable"), De = I("FmThumbnail"), Ae = I("FmCircularProgress");
3293
+ return p(), g("div", wi, [
3294
+ r("div", Fi, [
3295
+ r("div", Ci, h(a(t)("device.title")), 1),
3296
+ f(v),
3297
+ a(n)("sm") ? k("", !0) : (p(), g("div", ki, [
3286
3298
  f(B, {
3287
3299
  bgColor: "neutral-gray-100",
3288
3300
  textColor: "typo-secondary",
3289
3301
  label: a(t)("device.actions.refresh"),
3290
3302
  variant: "tertiary",
3291
- onClick: he
3303
+ onClick: ue
3292
3304
  }, null, 8, ["label"]),
3293
3305
  f(B, {
3294
3306
  bgColor: "neutral-gray-100",
3295
3307
  textColor: "typo-secondary",
3296
3308
  label: a(t)("device.actions.forceSync"),
3297
3309
  variant: "tertiary",
3298
- onClick: Fe
3310
+ onClick: fe
3299
3311
  }, null, 8, ["label"]),
3300
3312
  f(B, {
3301
3313
  icon: "add",
3302
3314
  label: a(t)("device.actions.addDevice"),
3303
3315
  variant: "primary",
3304
- onClick: st
3316
+ onClick: ot
3305
3317
  }, null, 8, ["label"])
3306
3318
  ])),
3307
3319
  a(n)("sm") ? (p(), V(B, {
@@ -3309,25 +3321,25 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3309
3321
  "prepend-icon": "more_vert",
3310
3322
  variant: "tertiary",
3311
3323
  onClick: u[0] || (u[0] = (b) => y.value = !0)
3312
- })) : C("", !0),
3313
- f(it, {
3324
+ })) : k("", !0),
3325
+ f(st, {
3314
3326
  zIndex: 100,
3315
3327
  modelValue: y.value,
3316
3328
  "onUpdate:modelValue": u[1] || (u[1] = (b) => y.value = b),
3317
3329
  "dismiss-away": "",
3318
3330
  "no-header": ""
3319
3331
  }, {
3320
- default: k(() => [
3321
- r("div", Ci, [
3332
+ default: R(() => [
3333
+ r("div", Ri, [
3322
3334
  f(He, { class: "w-full" }, {
3323
- default: k(() => [
3324
- f(_e, {
3335
+ default: R(() => [
3336
+ f(ce, {
3325
3337
  label: a(t)("device.actions.refresh"),
3326
- onClick: he
3338
+ onClick: ue
3327
3339
  }, null, 8, ["label"]),
3328
- f(_e, {
3340
+ f(ce, {
3329
3341
  label: a(t)("device.actions.forceSync"),
3330
- onClick: Fe
3342
+ onClick: fe
3331
3343
  }, null, 8, ["label"])
3332
3344
  ]),
3333
3345
  _: 1
@@ -3337,52 +3349,52 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3337
3349
  _: 1
3338
3350
  }, 8, ["modelValue"])
3339
3351
  ]),
3340
- a(n)("sm") ? (p(), g("div", ki, [
3352
+ a(n)("sm") ? (p(), g("div", Si, [
3341
3353
  f(Le),
3342
3354
  f(Me, {
3343
- modelValue: D.value,
3344
- "onUpdate:modelValue": u[2] || (u[2] = (b) => D.value = b),
3355
+ modelValue: x.value,
3356
+ "onUpdate:modelValue": u[2] || (u[2] = (b) => x.value = b),
3345
3357
  placeholder: a(t)("device.actions.search")
3346
3358
  }, null, 8, ["modelValue", "placeholder"]),
3347
3359
  f(Le)
3348
- ])) : C("", !0),
3349
- r("div", Ri, [
3350
- f(M, { class: "gap-x-0" }, {
3351
- chips: k(() => [
3352
- r("div", Oi, [
3360
+ ])) : k("", !0),
3361
+ r("div", Oi, [
3362
+ f(_e, { class: "gap-x-0" }, {
3363
+ chips: R(() => [
3364
+ r("div", Di, [
3353
3365
  r("div", {
3354
3366
  class: on(["flex flex-row gap-2 mb-4 items-end", a(n)("sm") ? "w-full justify-between" : ""])
3355
3367
  }, [
3356
- r("div", Si, [
3357
- f(R, { "close-on-click": !1 }, {
3358
- "menu-button": k(() => [
3368
+ r("div", Ai, [
3369
+ f(L, { "close-on-click": !1 }, {
3370
+ "menu-button": R(() => [
3359
3371
  f(Be, {
3360
- label: U(A.value, G.value, a(t)("device.filters.restaurant.label")),
3372
+ label: U(A.value, W.value, a(t)("device.filters.restaurant.label")),
3361
3373
  icon: "storefront",
3362
3374
  "right-icon": "keyboard_arrow_down",
3363
3375
  class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400 w-full"
3364
3376
  }, null, 8, ["label"])
3365
3377
  ]),
3366
- default: k(() => [
3367
- r("div", Ai, [
3378
+ default: R(() => [
3379
+ r("div", xi, [
3368
3380
  f(Me, {
3369
- "model-value": K.value,
3370
- "onUpdate:modelValue": u[3] || (u[3] = (b) => K.value = b),
3381
+ "model-value": oe.value,
3382
+ "onUpdate:modelValue": u[3] || (u[3] = (b) => oe.value = b),
3371
3383
  placeholder: a(t)("device.filters.restaurant.search"),
3372
3384
  collapsible: !1
3373
3385
  }, null, 8, ["model-value", "placeholder"]),
3374
3386
  f(Le),
3375
- r("div", Di, [
3376
- f(Re, {
3377
- "model-value": A.value.length === G.value.length,
3387
+ r("div", zi, [
3388
+ f(C, {
3389
+ "model-value": A.value.length === W.value.length,
3378
3390
  label: a(t)("device.filters.all"),
3379
3391
  "has-checkbox": !0,
3380
3392
  indeterminate: A.value.length > 0,
3381
- onClick: u[4] || (u[4] = () => T(A.value, G.value))
3393
+ onClick: u[4] || (u[4] = () => T(A.value, W.value))
3382
3394
  }, null, 8, ["model-value", "label", "indeterminate"]),
3383
- (p(!0), g(oe, null, me(re.value, (b, te) => (p(), V(Re, {
3395
+ (p(!0), g(ae, null, me(gt.value, (b, te) => (p(), V(C, {
3384
3396
  key: te,
3385
- "model-value": !!A.value.find((Te) => Te === b.value),
3397
+ "model-value": !!A.value.find((ye) => ye === b.value),
3386
3398
  label: b.label,
3387
3399
  "has-checkbox": !0,
3388
3400
  onClick: () => E(A.value, b)
@@ -3393,31 +3405,31 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3393
3405
  _: 1
3394
3406
  })
3395
3407
  ]),
3396
- r("div", xi, [
3397
- f(R, { "close-on-click": !1 }, {
3398
- "menu-button": k(() => [
3408
+ r("div", Ni, [
3409
+ f(L, { "close-on-click": !1 }, {
3410
+ "menu-button": R(() => [
3399
3411
  f(Be, {
3400
- label: U(x.value, O.value, a(t)("device.filters.deviceType")),
3412
+ label: U(z.value, S.value, a(t)("device.filters.deviceType")),
3401
3413
  icon: "monitor",
3402
3414
  "right-icon": "keyboard_arrow_down",
3403
3415
  class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400 w-full"
3404
3416
  }, null, 8, ["label"])
3405
3417
  ]),
3406
- default: k(() => [
3407
- r("div", zi, [
3408
- f(Re, {
3409
- "model-value": x.value.length === O.value.length,
3418
+ default: R(() => [
3419
+ r("div", Pi, [
3420
+ f(C, {
3421
+ "model-value": z.value.length === S.value.length,
3410
3422
  label: a(t)("device.filters.all"),
3411
3423
  "has-checkbox": !0,
3412
- indeterminate: x.value.length > 0,
3413
- onClick: u[5] || (u[5] = () => T(x.value, O.value))
3424
+ indeterminate: z.value.length > 0,
3425
+ onClick: u[5] || (u[5] = () => T(z.value, S.value))
3414
3426
  }, null, 8, ["model-value", "label", "indeterminate"]),
3415
- (p(!0), g(oe, null, me(O.value, (b, te) => (p(), V(Re, {
3427
+ (p(!0), g(ae, null, me(S.value, (b, te) => (p(), V(C, {
3416
3428
  key: te,
3417
- "model-value": !!x.value.find((Te) => Te === b.value),
3429
+ "model-value": !!z.value.find((ye) => ye === b.value),
3418
3430
  label: b.label ?? "",
3419
3431
  "has-checkbox": !0,
3420
- onClick: () => E(x.value, b)
3432
+ onClick: () => E(z.value, b)
3421
3433
  }, null, 8, ["model-value", "label", "onClick"]))), 128))
3422
3434
  ])
3423
3435
  ]),
@@ -3425,10 +3437,10 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3425
3437
  })
3426
3438
  ])
3427
3439
  ], 2),
3428
- a(n)("sm") ? C("", !0) : (p(), V(Me, {
3440
+ a(n)("sm") ? k("", !0) : (p(), V(Me, {
3429
3441
  key: 0,
3430
- "model-value": D.value,
3431
- "onUpdate:modelValue": u[6] || (u[6] = (b) => D.value = b),
3442
+ "model-value": x.value,
3443
+ "onUpdate:modelValue": u[6] || (u[6] = (b) => x.value = b),
3432
3444
  placeholder: a(t)("device.actions.search"),
3433
3445
  collapsible: !1,
3434
3446
  class: "w-[343px]"
@@ -3437,78 +3449,78 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3437
3449
  ]),
3438
3450
  _: 1
3439
3451
  }),
3440
- a(n)("sm") ? C("", !0) : (p(), V(ge, {
3452
+ a(n)("sm") ? k("", !0) : (p(), V(ve, {
3441
3453
  key: 0,
3442
3454
  "shrink-at": !1,
3443
3455
  "auto-reset-page-index": !0,
3444
3456
  class: "flex-1 overflow-y-auto",
3445
- "column-defs": Y,
3457
+ "column-defs": ee,
3446
3458
  "row-data": j.value,
3447
- loading: S.value,
3459
+ loading: O.value,
3448
3460
  "hide-footer": j.value.length < 11,
3449
3461
  "on-row-click": (b) => {
3450
- ke.value = b.original, Ue.value = !0;
3462
+ ke.value = b.original, Ce.value = !0;
3451
3463
  }
3452
3464
  }, null, 8, ["row-data", "loading", "hide-footer", "on-row-click"])),
3453
- a(n)("sm") && !S.value ? (p(), V(He, {
3465
+ a(n)("sm") && !O.value ? (p(), V(He, {
3454
3466
  key: 1,
3455
3467
  class: "w-full",
3456
3468
  separator: ""
3457
3469
  }, {
3458
- default: k(() => [
3459
- (p(!0), g(oe, null, me(j.value, (b) => (p(), V(_e, {
3470
+ default: R(() => [
3471
+ (p(!0), g(ae, null, me(j.value, (b) => (p(), V(ce, {
3460
3472
  key: b._id,
3461
3473
  style: { padding: "12px 0 !important" },
3462
3474
  onClick: () => {
3463
- ke.value = b, Ue.value = !0;
3475
+ ke.value = b, Ce.value = !0;
3464
3476
  }
3465
3477
  }, {
3466
- default: k(() => [
3467
- r("div", Ni, [
3468
- r("div", Pi, [
3478
+ default: R(() => [
3479
+ r("div", Ui, [
3480
+ r("div", Li, [
3469
3481
  f(Be, {
3470
3482
  label: a(wt)(b.type),
3471
3483
  variant: "plain",
3472
3484
  compact: ""
3473
3485
  }, null, 8, ["label"])
3474
3486
  ]),
3475
- r("div", Ui, [
3487
+ r("div", Mi, [
3476
3488
  Ct(h(b.restaurantName) + " ", 1),
3477
- b.type != a(X).Enum.MAIN ? (p(), g("span", Li, " - " + h(b.name), 1)) : C("", !0)
3489
+ b.type != a(X).Enum.MAIN ? (p(), g("span", Bi, " - " + h(b.name), 1)) : k("", !0)
3478
3490
  ]),
3479
- r("div", Mi, h(ue(b.createdAt)[0]) + " " + h(ue(b.createdAt)[1]), 1),
3480
- v.value.length && b.type === a(X).Enum.MAIN ? (p(), g("div", Bi, [
3481
- (p(!0), g(oe, null, me(m(de(b.restaurantId)), (te) => (p(), g("div", { key: te }, [
3482
- f(be, {
3491
+ r("div", $i, h(Fe(b.createdAt)[0]) + " " + h(Fe(b.createdAt)[1]), 1),
3492
+ _.value.length && b.type === a(X).Enum.MAIN ? (p(), g("div", Vi, [
3493
+ (p(!0), g(ae, null, me(D(d(b.restaurantId)), (te) => (p(), g("div", { key: te }, [
3494
+ f(De, {
3483
3495
  src: te,
3484
3496
  size: "md"
3485
3497
  }, null, 8, ["src"])
3486
3498
  ]))), 128)),
3487
- de(b.restaurantId).length - m(de(b.restaurantId)).length > 0 ? (p(), g("span", $i, "+" + h(de(b.restaurantId).length - m(de(b.restaurantId)).length), 1)) : C("", !0)
3488
- ])) : C("", !0)
3499
+ d(b.restaurantId).length - D(d(b.restaurantId)).length > 0 ? (p(), g("span", ji, "+" + h(d(b.restaurantId).length - D(d(b.restaurantId)).length), 1)) : k("", !0)
3500
+ ])) : k("", !0)
3489
3501
  ]),
3490
- r("div", Vi, [
3502
+ r("div", qi, [
3491
3503
  b.type === a(X).Enum.MAIN ? (p(), V(B, {
3492
3504
  key: 0,
3493
3505
  "prepend-icon": b.machineId ? "link_off" : "link",
3494
3506
  variant: "tertiary",
3495
- onClick: Rt(() => b.machineId ? ae(b) : Pe(b), ["stop"])
3496
- }, null, 8, ["prepend-icon", "onClick"])) : C("", !0),
3497
- f(R, {
3507
+ onClick: Rt(() => b.machineId ? be(b) : we(b), ["stop"])
3508
+ }, null, 8, ["prepend-icon", "onClick"])) : k("", !0),
3509
+ f(L, {
3498
3510
  stopClickPropagation: !0,
3499
3511
  shift: "",
3500
3512
  placement: "bottom-end",
3501
3513
  width: 180,
3502
3514
  minHeight: 3e3
3503
3515
  }, {
3504
- "menu-button": k(() => [
3516
+ "menu-button": R(() => [
3505
3517
  f(B, {
3506
3518
  variant: "tertiary",
3507
3519
  prependIcon: "more_vert"
3508
3520
  })
3509
3521
  ]),
3510
- default: k(() => [
3511
- (p(!0), g(oe, null, me(z(b), (te) => (p(), V(Re, {
3522
+ default: R(() => [
3523
+ (p(!0), g(ae, null, me(Y(b), (te) => (p(), V(C, {
3512
3524
  key: te.value,
3513
3525
  label: te.label,
3514
3526
  onClick: te.onClick
@@ -3522,40 +3534,40 @@ const bi = { class: "fm-typo-en-body-md-400" }, yi = { class: "xs:flex-col-rever
3522
3534
  }, 1032, ["onClick"]))), 128))
3523
3535
  ]),
3524
3536
  _: 1
3525
- })) : (p(), V(De, {
3537
+ })) : (p(), V(Ae, {
3526
3538
  key: 2,
3527
3539
  class: "hidden sm:block xs:block"
3528
3540
  })),
3529
- a(n)("sm") ? (p(), g("div", ji, [
3541
+ a(n)("sm") ? (p(), g("div", Hi, [
3530
3542
  f(B, {
3531
3543
  icon: "add",
3532
3544
  label: a(t)("device.actions.addDevice"),
3533
- onClick: st,
3545
+ onClick: ot,
3534
3546
  size: "lg"
3535
3547
  }, null, 8, ["label"])
3536
- ])) : C("", !0)
3548
+ ])) : k("", !0)
3537
3549
  ]),
3538
- (p(), V(Sn, { to: "body" }, [
3539
- ke.value ? (p(), V(Da, {
3550
+ (p(), V(On, { to: "body" }, [
3551
+ ke.value ? (p(), V(Aa, {
3540
3552
  key: 0,
3541
- visible: Ue.value,
3542
- "onUpdate:visible": u[7] || (u[7] = (b) => Ue.value = b),
3553
+ visible: Ce.value,
3554
+ "onUpdate:visible": u[7] || (u[7] = (b) => Ce.value = b),
3543
3555
  device: ke.value,
3544
3556
  devices: F.value,
3545
- "form-updated": Ce.value,
3546
- "onUpdate:formUpdated": u[8] || (u[8] = (b) => Ce.value = b)
3547
- }, null, 8, ["visible", "device", "devices", "form-updated"])) : C("", !0),
3548
- Ae.value && Ae.value.deviceId ? (p(), V(pi, {
3557
+ "form-updated": Ue.value,
3558
+ "onUpdate:formUpdated": u[8] || (u[8] = (b) => Ue.value = b)
3559
+ }, null, 8, ["visible", "device", "devices", "form-updated"])) : k("", !0),
3560
+ de.value && de.value.deviceId ? (p(), V(pi, {
3549
3561
  key: 1,
3550
- visible: ve.value,
3551
- "onUpdate:visible": u[9] || (u[9] = (b) => ve.value = b),
3552
- device: Ae.value
3553
- }, null, 8, ["visible", "device"])) : C("", !0)
3562
+ visible: Oe.value,
3563
+ "onUpdate:visible": u[9] || (u[9] = (b) => Oe.value = b),
3564
+ device: de.value
3565
+ }, null, 8, ["visible", "device"])) : k("", !0)
3554
3566
  ]))
3555
3567
  ]);
3556
3568
  };
3557
3569
  }
3558
3570
  });
3559
3571
  export {
3560
- Ki as default
3572
+ Zi as default
3561
3573
  };