@feedmepos/mf-order-setting 0.0.105 → 0.0.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/DisplaySystemView-aLqc6lz9.js +9068 -0
  2. package/dist/{FoodCourtInvitationsView-Bo174yfB.js → FoodCourtInvitationsView-B30qld2i.js} +4 -4
  3. package/dist/{FoodCourtOrderSettingsView-uUe53O0Z.js → FoodCourtOrderSettingsView-CWmaKgbe.js} +1 -1
  4. package/dist/{FoodCourtOrdersView-CxC5oGp2.js → FoodCourtOrdersView-FfrganVo.js} +4 -4
  5. package/dist/{FoodCourtStallsView-BEpRBmSL.js → FoodCourtStallsView-CpGZNP6p.js} +2 -2
  6. package/dist/{FoodCourtStatusView-DA7mdsuf.js → FoodCourtStatusView-ljQUwIwk.js} +1 -1
  7. package/dist/{KioskDevicesView-BY9Egk75.js → KioskDevicesView-BwDAYIhX.js} +1 -1
  8. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CxroxD-b.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-VidDJfGG.js} +487 -473
  9. package/dist/KioskSettingView-mfhi9vuf.js +1240 -0
  10. package/dist/{KioskView-BYL0u6kj.js → KioskView-6p5h92fk.js} +173 -167
  11. package/dist/{OrderSettingsView-BBHAhgE9.js → OrderSettingsView-Cf_Ye9U_.js} +11 -11
  12. package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang--9bdtLE1.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-TJJ3PBlq.js} +1 -1
  13. package/dist/{app-BV2USn83.js → app-BorqCaJT.js} +6965 -6415
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-Bp4Kgnt_.js → dayjs.min-CTTY2vkL.js} +1 -1
  16. package/dist/display-preview/assets/{BandBoard-DIcfXsNV.js → BandBoard-BLwgs3WX.js} +1 -1
  17. package/dist/display-preview/assets/{CarouselBlock-XAhTyEWB.js → CarouselBlock-CUrVSbQp.js} +1 -1
  18. package/dist/display-preview/assets/{CategoryBoard-DBKe18hv.js → CategoryBoard-BkvpcxHR.js} +1 -1
  19. package/dist/display-preview/assets/{ImageBlock-BCbnYSHq.js → ImageBlock-0UYDHTm0.js} +1 -1
  20. package/dist/display-preview/assets/{PickupMode-Df_TPCh8.js → PickupMode-BY4iL0BH.js} +1 -1
  21. package/dist/display-preview/assets/{StatusBoard-28z3bPOf.js → StatusBoard-DGEZ6hvH.js} +1 -1
  22. package/dist/display-preview/assets/{TextBlock-CvJKITtx.js → TextBlock-CxKwtqoO.js} +1 -1
  23. package/dist/display-preview/assets/{VideoBlock-Dop43wDv.js → VideoBlock-BKkxdLAd.js} +1 -1
  24. package/dist/display-preview/assets/{index-cqMoOpSN.js → index-B1olKQmQ.js} +2 -2
  25. package/dist/display-preview/assets/{pickupView-DRMVXqrc.js → pickupView-CB9fV5jD.js} +1 -1
  26. package/dist/display-preview/images/feedme-bg-left-image.png +0 -0
  27. package/dist/display-preview/index.html +1 -1
  28. package/dist/{featureFlag-C1uGG7u6.js → featureFlag-DFenoxmg.js} +1 -1
  29. package/dist/frontend/mf-order/src/api/display-system/index.d.ts +2 -2
  30. package/dist/frontend/mf-order/src/app.d.ts +118 -12
  31. package/dist/frontend/mf-order/src/composables/useDisplaySystemPermission.d.ts +5 -0
  32. package/dist/frontend/mf-order/src/main.d.ts +118 -12
  33. package/dist/frontend/mf-order/src/modules/display-system/interface.d.ts +9 -11
  34. package/dist/frontend/mf-order/src/modules/display-system/legacy-ods/convert.d.ts +10 -0
  35. package/dist/frontend/mf-order/src/modules/kiosk/deviceCount.d.ts +18 -0
  36. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +12 -0
  37. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/tableNumberHint.d.ts +33 -0
  38. package/dist/frontend/mf-order/src/stores/display-system/index.d.ts +10 -70
  39. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +51 -0
  40. package/dist/frontend/mf-order/src/views/display-system/DisplayTemplateEditor.vue.d.ts +2 -0
  41. package/dist/frontend/mf-order/src/views/display-system/legacy-ods/LegacyOdsTemplateList.vue.d.ts +11 -2
  42. package/dist/frontend/mf-order/src/views/display-system/view-selection.d.ts +1 -2
  43. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/{index-0GuybwuA.js → index-BZkJr7iu.js} +1 -1
  45. package/dist/{index-HF3qh9qG.js → index-C4Isv-r7.js} +1 -1
  46. package/dist/{index-CRNutZC_.js → index-DuJOWWP8.js} +4 -4
  47. package/dist/{index-D0ZIByef.js → index-nUvyt9Wm.js} +1 -1
  48. package/dist/{index-KWOCCun9.js → index-tLkJL436.js} +2 -2
  49. package/dist/{order.dto-GQaBESZq.js → order.dto-nVwtcdX2.js} +6049 -5992
  50. package/dist/package/entity/display/mediaHosts.d.ts +4 -0
  51. package/dist/package/entity/food-court/order-v2.do.d.ts +667 -0
  52. package/dist/package/entity/food-court/order-v2.dto.d.ts +262 -0
  53. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +16 -0
  54. package/dist/package/entity/order-platform/menu.dto.d.ts +44 -44
  55. package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +52 -0
  56. package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +293 -0
  57. package/dist/package/entity/order-setting/order-setting.do.d.ts +42 -0
  58. package/dist/package/entity/order-setting/order-setting.dto.d.ts +174 -0
  59. package/dist/package/entity/restaurant/restaurant.dto.d.ts +42 -0
  60. package/dist/package/entity/websocket/websocket.dto.d.ts +92 -0
  61. package/dist/style.css +1 -1
  62. package/dist/{useInternalUser-C39xpsBU.js → useInternalUser-HhxjbzGl.js} +1 -1
  63. package/package.json +3 -3
  64. package/src/api/display-system/index.ts +2 -2
  65. package/src/composables/useDisplaySystemPermission.spec.ts +27 -0
  66. package/src/composables/useDisplaySystemPermission.ts +16 -0
  67. package/src/locales/en-US.json +51 -17
  68. package/src/locales/ja-JP.json +26 -11
  69. package/src/locales/th-TH.json +32 -17
  70. package/src/locales/zh-CN.json +51 -17
  71. package/src/modules/display-system/interface.spec.ts +1 -32
  72. package/src/modules/display-system/interface.ts +7 -24
  73. package/src/modules/display-system/legacy-ods/convert.spec.ts +65 -0
  74. package/src/modules/display-system/legacy-ods/convert.ts +95 -0
  75. package/src/modules/display-system/legacy-ods/media.spec.ts +16 -0
  76. package/src/modules/kiosk/deviceCount.spec.ts +23 -0
  77. package/src/modules/kiosk/deviceCount.ts +21 -0
  78. package/src/modules/order-setting/kiosk/interface.ts +13 -0
  79. package/src/modules/order-setting/kiosk/tableNumberHint.spec.ts +68 -0
  80. package/src/modules/order-setting/kiosk/tableNumberHint.ts +71 -0
  81. package/src/router/display-system-permission.spec.ts +13 -0
  82. package/src/router/routes.ts +2 -1
  83. package/src/stores/display-system/index.spec.ts +104 -0
  84. package/src/stores/display-system/index.ts +18 -7
  85. package/src/stores/order-setting/mapper.ts +11 -2
  86. package/src/views/display-system/DisplayInspector.vue +3 -0
  87. package/src/views/display-system/DisplayModulePickerDialog.vue +8 -0
  88. package/src/views/display-system/DisplaySystemView.conversion.spec.ts +164 -0
  89. package/src/views/display-system/DisplaySystemView.vue +72 -26
  90. package/src/views/display-system/DisplayTemplateEditor.spec.ts +18 -0
  91. package/src/views/display-system/DisplayTemplateEditor.vue +8 -2
  92. package/src/views/display-system/legacy-ods/LegacyOdsTemplateList.spec.ts +44 -4
  93. package/src/views/display-system/legacy-ods/LegacyOdsTemplateList.vue +12 -4
  94. package/src/views/display-system/view-selection.spec.ts +4 -17
  95. package/src/views/display-system/view-selection.ts +3 -4
  96. package/src/views/kiosk/devices/KioskDevicesView.vue +6 -2
  97. package/src/views/kiosk/devices/KioskLicenseSummary.spec.ts +45 -0
  98. package/src/views/kiosk/devices/KioskLicenseSummary.vue +9 -2
  99. package/src/views/kiosk/settings/KioskSettingView.vue +140 -6
  100. package/vitest.config.ts +1 -0
  101. package/dist/DisplaySystemView-CFr9DnaD.js +0 -8926
  102. package/dist/KioskSettingView-DPaQ7YFV.js +0 -1124
@@ -1,20 +1,20 @@
1
- import { defineComponent as z, computed as I, h as L, resolveComponent as C, openBlock as y, createElementBlock as h, createElementVNode as f, toDisplayString as _, unref as i, createVNode as P, Fragment as g, renderList as de, createBlock as A, resolveDynamicComponent as Le, createCommentVNode as F, normalizeClass as Ae, ref as x, defineAsyncComponent as Ee, watch as j, withDirectives as Re, withCtx as X, vShow as Ke } from "vue";
2
- import { s as oe, l as N, _ as Fe, a as De, b as Ue, u as ge, c as Ne, d as $e, e as re } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-CxroxD-b.js";
3
- import { d as qe } from "./dayjs.min-Bp4Kgnt_.js";
1
+ import { defineComponent as z, computed as I, h as L, resolveComponent as C, openBlock as b, createElementBlock as h, createElementVNode as y, toDisplayString as _, unref as i, createVNode as P, Fragment as g, renderList as de, createBlock as A, resolveDynamicComponent as Le, createCommentVNode as F, normalizeClass as Ae, ref as x, defineAsyncComponent as Ee, watch as j, withDirectives as Re, withCtx as X, vShow as Ke } from "vue";
2
+ import { s as re, l as N, _ as Fe, a as De, b as Ue, u as ge, c as Ne, d as $e, e as oe } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-VidDJfGG.js";
3
+ import { d as qe } from "./dayjs.min-CTTY2vkL.js";
4
4
  import { useI18n as Q, useCoreStore as Be } from "@feedmepos/mf-common";
5
5
  import { components as Me, useDialog as Ve, useSnackbar as je } from "@feedmepos/ui-library";
6
6
  import { onBeforeRouteLeave as Xe } from "vue-router";
7
- import { S as H, a as se } from "./index-HF3qh9qG.js";
7
+ import { S as H, a as se } from "./index-C4Isv-r7.js";
8
8
  import { defineStore as We } from "pinia";
9
- import { O as W } from "./index-KWOCCun9.js";
10
- import { F as Ge, a as He } from "./order.dto-GQaBESZq.js";
11
- import { u as Ye } from "./app-BV2USn83.js";
12
- import { u as ze } from "./useInternalUser-C39xpsBU.js";
9
+ import { O as W } from "./index-tLkJL436.js";
10
+ import { F as Ge, a as He } from "./order.dto-nVwtcdX2.js";
11
+ import { u as Ye } from "./app-BorqCaJT.js";
12
+ import { u as ze } from "./useInternalUser-HhxjbzGl.js";
13
13
  import { _ as Qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const Je = { class: "flex flex-col gap-4" }, Ze = { class: "fm-typo-en-title-sm-600 block" }, Se = {
15
15
  class: "hidden xs:flex flex-col gap-8",
16
16
  "data-testid": "license-list"
17
- }, Oe = { class: "flex items-center justify-between gap-8" }, ke = { class: "flex flex-col min-w-0" }, ea = { class: "fm-typo-en-body-md-600" }, aa = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary font-mono" }, ta = { class: "grid grid-cols-[auto_1fr] gap-x-12 gap-y-4 fm-typo-en-body-sm-400" }, na = { class: "text-fm-color-typo-secondary" }, la = { key: 1 }, oa = { class: "text-fm-color-typo-secondary" }, ra = { class: "min-w-0 break-words" }, sa = { class: "text-fm-color-typo-secondary" }, ca = {
17
+ }, Oe = { class: "flex items-center justify-between gap-8" }, ke = { class: "flex flex-col min-w-0" }, ea = { class: "fm-typo-en-body-md-600" }, aa = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary font-mono" }, ta = { class: "grid grid-cols-[auto_1fr] gap-x-12 gap-y-4 fm-typo-en-body-sm-400" }, na = { class: "text-fm-color-typo-secondary" }, la = { key: 1 }, ra = { class: "text-fm-color-typo-secondary" }, oa = { class: "min-w-0 break-words" }, sa = { class: "text-fm-color-typo-secondary" }, ca = {
18
18
  key: 1,
19
19
  class: "text-center py-32 text-fm-color-typo-secondary fm-typo-en-body-md-400"
20
20
  }, ua = /* @__PURE__ */ z({
@@ -23,42 +23,42 @@ const Je = { class: "flex flex-col gap-4" }, Ze = { class: "fm-typo-en-title-sm-
23
23
  licenses: {}
24
24
  },
25
25
  setup(e) {
26
- const { t: a } = Q(), l = e, r = { IN_USE: 0, FREE: 1, EXPIRED: 2 }, t = I(
26
+ const { t: a } = Q(), l = e, o = { IN_USE: 0, FREE: 1, EXPIRED: 2 }, t = I(
27
27
  () => {
28
28
  var s;
29
29
  return [...((s = l.licenses) == null ? void 0 : s.licenses) ?? []].sort(
30
- (m, b) => r[m.status] - r[b.status] || m.expiredAt.localeCompare(b.expiredAt)
30
+ (d, f) => o[d.status] - o[f.status] || d.expiredAt.localeCompare(f.expiredAt)
31
31
  );
32
32
  }
33
33
  );
34
34
  function n(s) {
35
35
  return qe(s).format("DD MMM YYYY");
36
36
  }
37
- function o(s) {
37
+ function r(s) {
38
38
  return a(s === "TABLET" ? "order.licenseTypeTablet" : "order.licenseTypeKiosk");
39
39
  }
40
40
  function u(s) {
41
41
  if (!s.device) return "-";
42
- const m = De(s.device.deviceAppType, s.type), b = s.device.deviceAppType === "TABLET_APP" ? "licenseTypeTablet" : "licenseTypeKiosk";
42
+ const d = De(s.device.deviceAppType, s.type), f = s.device.deviceAppType === "TABLET_APP" ? "licenseTypeTablet" : "licenseTypeKiosk";
43
43
  return L("div", { class: "flex flex-col min-w-0" }, [
44
44
  L("span", s.device.name || s.device.machineId),
45
45
  L(
46
46
  "span",
47
47
  { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" },
48
- m ? `${a(`order.${b}`)} · ${a(m)}` : a(`order.${b}`)
48
+ d ? `${a(`order.${f}`)} · ${a(d)}` : a(`order.${f}`)
49
49
  )
50
50
  ]);
51
51
  }
52
- const d = I(() => [
52
+ const p = I(() => [
53
53
  {
54
54
  id: "type",
55
55
  header: () => a("order.licenseColumnType"),
56
56
  cell: ({ row: s }) => L("div", { class: "flex flex-col" }, [
57
- L("span", o(s.original.type)),
57
+ L("span", r(s.original.type)),
58
58
  L(
59
59
  "span",
60
60
  { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary font-mono" },
61
- oe(s.original.id)
61
+ re(s.original.id)
62
62
  )
63
63
  ]),
64
64
  enableSorting: !1
@@ -67,8 +67,8 @@ const Je = { class: "flex flex-col gap-4" }, Ze = { class: "fm-typo-en-title-sm-
67
67
  id: "status",
68
68
  header: () => a("order.licenseColumnStatus"),
69
69
  cell: ({ row: s }) => {
70
- const m = N(s.original);
71
- return L(Me.FmChip, { variant: m.variant, label: a(m.labelKey, m.params) });
70
+ const d = N(s.original);
71
+ return L(Me.FmChip, { variant: d.variant, label: a(d.labelKey, d.params) });
72
72
  },
73
73
  enableSorting: !1
74
74
  },
@@ -82,8 +82,8 @@ const Je = { class: "flex flex-col gap-4" }, Ze = { class: "fm-typo-en-title-sm-
82
82
  id: "outlet",
83
83
  header: () => a("order.licenseColumnOutlet"),
84
84
  cell: ({ row: s }) => {
85
- var m;
86
- return ((m = s.original.device) == null ? void 0 : m.restaurantName) || "-";
85
+ var d;
86
+ return ((d = s.original.device) == null ? void 0 : d.restaurantName) || "-";
87
87
  },
88
88
  enableSorting: !1
89
89
  },
@@ -94,54 +94,54 @@ const Je = { class: "flex flex-col gap-4" }, Ze = { class: "fm-typo-en-title-sm-
94
94
  enableSorting: !1
95
95
  }
96
96
  ]);
97
- return (s, m) => {
97
+ return (s, d) => {
98
98
  var w;
99
- const b = C("FmTable"), T = C("FmChip");
100
- return y(), h("div", Je, [
101
- f("span", Ze, _(i(a)("order.licensesTab")), 1),
99
+ const f = C("FmTable"), T = C("FmChip");
100
+ return b(), h("div", Je, [
101
+ y("span", Ze, _(i(a)("order.licensesTab")), 1),
102
102
  P(Fe, { licenses: e.licenses }, null, 8, ["licenses"]),
103
- (w = e.licenses) != null && w.verified ? (y(), h(g, { key: 0 }, [
104
- t.value.length ? (y(), h(g, { key: 0 }, [
105
- P(b, {
103
+ (w = e.licenses) != null && w.verified ? (b(), h(g, { key: 0 }, [
104
+ t.value.length ? (b(), h(g, { key: 0 }, [
105
+ P(f, {
106
106
  "row-data": t.value,
107
- "column-defs": d.value,
107
+ "column-defs": p.value,
108
108
  "hide-footer": !0,
109
109
  "page-size": 1e3,
110
110
  class: "w-full xs:hidden",
111
111
  "data-testid": "license-table"
112
112
  }, null, 8, ["row-data", "column-defs"]),
113
- f("div", Se, [
114
- (y(!0), h(g, null, de(t.value, (v) => {
113
+ y("div", Se, [
114
+ (b(!0), h(g, null, de(t.value, (v) => {
115
115
  var E;
116
- return y(), h("div", {
116
+ return b(), h("div", {
117
117
  key: v.id,
118
118
  class: "border fm-corner-radius-lg p-12 flex flex-col gap-8"
119
119
  }, [
120
- f("div", Oe, [
121
- f("div", ke, [
122
- f("span", ea, _(o(v.type)), 1),
123
- f("span", aa, _(i(oe)(v.id)), 1)
120
+ y("div", Oe, [
121
+ y("div", ke, [
122
+ y("span", ea, _(r(v.type)), 1),
123
+ y("span", aa, _(i(re)(v.id)), 1)
124
124
  ]),
125
125
  P(T, {
126
126
  variant: i(N)(v).variant,
127
127
  label: i(a)(i(N)(v).labelKey, i(N)(v).params)
128
128
  }, null, 8, ["variant", "label"])
129
129
  ]),
130
- f("div", ta, [
131
- f("span", na, _(i(a)("order.licenseColumnDevice")), 1),
132
- v.device ? (y(), A(Le(u(v)), {
130
+ y("div", ta, [
131
+ y("span", na, _(i(a)("order.licenseColumnDevice")), 1),
132
+ v.device ? (b(), A(Le(u(v)), {
133
133
  key: 0,
134
134
  class: "min-w-0 break-words"
135
- })) : (y(), h("span", la, "-")),
136
- f("span", oa, _(i(a)("order.licenseColumnOutlet")), 1),
137
- f("span", ra, _(((E = v.device) == null ? void 0 : E.restaurantName) || "-"), 1),
138
- f("span", sa, _(i(a)("order.licenseColumnExpires")), 1),
139
- f("span", null, _(n(v.expiredAt)), 1)
135
+ })) : (b(), h("span", la, "-")),
136
+ y("span", ra, _(i(a)("order.licenseColumnOutlet")), 1),
137
+ y("span", oa, _(((E = v.device) == null ? void 0 : E.restaurantName) || "-"), 1),
138
+ y("span", sa, _(i(a)("order.licenseColumnExpires")), 1),
139
+ y("span", null, _(n(v.expiredAt)), 1)
140
140
  ])
141
141
  ]);
142
142
  }), 128))
143
143
  ])
144
- ], 64)) : (y(), h("div", ca, _(i(a)("order.licensesEmpty")), 1))
144
+ ], 64)) : (b(), h("div", ca, _(i(a)("order.licensesEmpty")), 1))
145
145
  ], 64)) : F("", !0)
146
146
  ]);
147
147
  };
@@ -150,14 +150,14 @@ const Je = { class: "flex flex-col gap-4" }, Ze = { class: "fm-typo-en-title-sm-
150
150
  key: 0,
151
151
  class: "flex flex-col gap-2 border-t pt-4",
152
152
  "data-testid": "bind-license-plan"
153
- }, fa = { class: "fm-typo-en-body-md-600" }, va = /* @__PURE__ */ z({
153
+ }, fa = { class: "fm-typo-en-body-md-600" }, ya = /* @__PURE__ */ z({
154
154
  __name: "KioskOtpDialog",
155
155
  props: {
156
156
  otp: {},
157
157
  licenses: {}
158
158
  },
159
159
  setup(e) {
160
- const { t: a } = Q(), l = e, r = I(() => {
160
+ const { t: a } = Q(), l = e, o = I(() => {
161
161
  const t = l.licenses;
162
162
  if (!(t != null && t.verified)) return [];
163
163
  if (t.unlimited)
@@ -169,28 +169,28 @@ const Je = { class: "flex flex-col gap-4" }, Ze = { class: "fm-typo-en-title-sm-
169
169
  ];
170
170
  });
171
171
  return (t, n) => {
172
- const o = C("FmIcon");
173
- return y(), h("div", ia, [
174
- f("span", da, _(i(a)("order.bindDeviceMessage")), 1),
175
- f("div", pa, _(e.otp), 1),
176
- r.value.length ? (y(), h("div", ma, [
177
- f("span", fa, _(i(a)("order.bindLicenseTitle")), 1),
178
- (y(!0), h(g, null, de(r.value, (u) => (y(), h("div", {
172
+ const r = C("FmIcon");
173
+ return b(), h("div", ia, [
174
+ y("span", da, _(i(a)("order.bindDeviceMessage")), 1),
175
+ y("div", pa, _(e.otp), 1),
176
+ o.value.length ? (b(), h("div", ma, [
177
+ y("span", fa, _(i(a)("order.bindLicenseTitle")), 1),
178
+ (b(!0), h(g, null, de(o.value, (u) => (b(), h("div", {
179
179
  key: u.key,
180
180
  class: Ae(["flex items-start gap-2 fm-typo-en-body-md-400", u.warn ? "text-fm-color-system-warning-400" : "text-fm-color-typo-secondary"])
181
181
  }, [
182
- P(o, {
182
+ P(r, {
183
183
  name: u.icon
184
184
  }, null, 8, ["name"]),
185
- f("span", null, _(i(a)(u.key)), 1)
185
+ y("span", null, _(i(a)(u.key)), 1)
186
186
  ], 2))), 128))
187
187
  ])) : F("", !0)
188
188
  ]);
189
189
  };
190
190
  }
191
- }), ya = "KIOSK_LICENSE_QUOTA_EXHAUSTED";
191
+ }), va = "KIOSK_LICENSE_QUOTA_EXHAUSTED";
192
192
  function ba(e) {
193
- return e ? e.status === 403 ? "order.bindDevicePermissionDenied" : e.code === ya || /no quota available/i.test(e.message ?? "") ? "order.bindDeviceNoQuota" : e.status === void 0 ? "order.bindDeviceNetworkError" : "order.bindDeviceFailed" : "order.bindDeviceFailed";
193
+ return e ? e.status === 403 ? "order.bindDevicePermissionDenied" : e.code === va || /no quota available/i.test(e.message ?? "") ? "order.bindDeviceNoQuota" : e.status === void 0 ? "order.bindDeviceNetworkError" : "order.bindDeviceFailed" : "order.bindDeviceFailed";
194
194
  }
195
195
  const _a = {
196
196
  enabled: !1,
@@ -204,7 +204,8 @@ const _a = {
204
204
  submitOrderInstruction: {
205
205
  payAtCounter: null,
206
206
  paid: null
207
- }
207
+ },
208
+ hint: { show: !0, messages: null }
208
209
  }, ha = {
209
210
  enabled: !1,
210
211
  submitOrderInstruction: {
@@ -223,7 +224,7 @@ const Y = {
223
224
  kiosk: xa(e.kioskSettings, (a = e.sequenceSettings) == null ? void 0 : a.kioskDineIn, (l = e.sequenceSettings) == null ? void 0 : l.kioskShareNumber)
224
225
  };
225
226
  }, xa = (e, a, l) => {
226
- var r, t, n, o, u, d, s, m, b, T, w, v;
227
+ var o, t, n, r, u, p, s, d, f, T, w, v;
227
228
  return {
228
229
  dineIn: Ia(
229
230
  a ?? {
@@ -234,14 +235,14 @@ const Y = {
234
235
  ),
235
236
  takeaway: {
236
237
  enabled: (e == null ? void 0 : e.canTakeaway) ?? !1,
237
- submitOrderInstruction: (r = e == null ? void 0 : e.takeaway) != null && r.submitOrderInstruction ? {
238
- payAtCounter: ((o = (n = (t = e == null ? void 0 : e.takeaway) == null ? void 0 : t.submitOrderInstruction) == null ? void 0 : n.payAtCounter) == null ? void 0 : o.en) ?? null,
239
- paid: ((s = (d = (u = e == null ? void 0 : e.takeaway) == null ? void 0 : u.submitOrderInstruction) == null ? void 0 : d.paid) == null ? void 0 : s.en) ?? null
238
+ submitOrderInstruction: (o = e == null ? void 0 : e.takeaway) != null && o.submitOrderInstruction ? {
239
+ payAtCounter: ((r = (n = (t = e == null ? void 0 : e.takeaway) == null ? void 0 : t.submitOrderInstruction) == null ? void 0 : n.payAtCounter) == null ? void 0 : r.en) ?? null,
240
+ paid: ((s = (p = (u = e == null ? void 0 : e.takeaway) == null ? void 0 : u.submitOrderInstruction) == null ? void 0 : p.paid) == null ? void 0 : s.en) ?? null
240
241
  } : Y
241
242
  },
242
243
  paymentSetting: {
243
- paymentTypes: ((m = e == null ? void 0 : e.paymentSetting) == null ? void 0 : m.paymentTypes) ?? [],
244
- offlinePaymentTypes: ((b = e == null ? void 0 : e.paymentSetting) == null ? void 0 : b.offlinePaymentTypes) ?? [],
244
+ paymentTypes: ((d = e == null ? void 0 : e.paymentSetting) == null ? void 0 : d.paymentTypes) ?? [],
245
+ offlinePaymentTypes: ((f = e == null ? void 0 : e.paymentSetting) == null ? void 0 : f.offlinePaymentTypes) ?? [],
245
246
  ePaymentTypes: ((T = e == null ? void 0 : e.paymentSetting) == null ? void 0 : T.ePaymentTypes) ?? Ge.parse({
246
247
  card: {
247
248
  terminal: !1,
@@ -283,20 +284,20 @@ const Y = {
283
284
  };
284
285
  }, ce = "#K", Ca = (e, a) => {
285
286
  var t;
286
- const l = { ...a ?? {} }, r = ((t = e.dineIn.sequenceNumber.prefix) == null ? void 0 : t.trim()) || ce;
287
- return (a != null && a.kioskDineIn || r !== ce) && (l.kioskDineIn = {
287
+ const l = { ...a ?? {} }, o = ((t = e.dineIn.sequenceNumber.prefix) == null ? void 0 : t.trim()) || ce;
288
+ return (a != null && a.kioskDineIn || o !== ce) && (l.kioskDineIn = {
288
289
  ...(a == null ? void 0 : a.kioskDineIn) ?? { current: 0 },
289
- prefix: r
290
+ prefix: o
290
291
  }), (e.shareNumber || (a == null ? void 0 : a.kioskShareNumber) != null) && (l.kioskShareNumber = e.shareNumber), l;
291
292
  }, Ia = (e, a) => {
292
- var l, r, t, n, o, u, d, s;
293
+ var l, o, t, n, r, u, p, s, d, f;
293
294
  return {
294
295
  enabled: !!a,
295
296
  sequenceNumber: e,
296
297
  pickUp: a != null && a.pickUp ? {
297
298
  ...a.pickUp,
298
299
  submitOrderInstruction: a.pickUp.submitOrderInstruction ? {
299
- payAtCounter: ((r = (l = a.pickUp.submitOrderInstruction) == null ? void 0 : l.payAtCounter) == null ? void 0 : r.en) ?? null,
300
+ payAtCounter: ((o = (l = a.pickUp.submitOrderInstruction) == null ? void 0 : l.payAtCounter) == null ? void 0 : o.en) ?? null,
300
301
  paid: ((n = (t = a.pickUp.submitOrderInstruction) == null ? void 0 : t.paid) == null ? void 0 : n.en) ?? null
301
302
  } : Y,
302
303
  enablePaxDialog: a.pickUp.enablePaxDialog ? a.pickUp.enablePaxDialog : !1
@@ -308,14 +309,19 @@ const Y = {
308
309
  padDigit: a.displayStand.padDigit,
309
310
  enablePaxDialog: a.displayStand.enablePaxDialog ?? !1,
310
311
  submitOrderInstruction: a.displayStand.submitOrderInstruction ? {
311
- payAtCounter: ((u = (o = a.displayStand.submitOrderInstruction) == null ? void 0 : o.payAtCounter) == null ? void 0 : u.en) ?? null,
312
- paid: ((s = (d = a.displayStand.submitOrderInstruction) == null ? void 0 : d.paid) == null ? void 0 : s.en) ?? null
313
- } : Y
312
+ payAtCounter: ((u = (r = a.displayStand.submitOrderInstruction) == null ? void 0 : r.payAtCounter) == null ? void 0 : u.en) ?? null,
313
+ paid: ((s = (p = a.displayStand.submitOrderInstruction) == null ? void 0 : p.paid) == null ? void 0 : s.en) ?? null
314
+ } : Y,
315
+ // Absent (older documents) = the hint shows, with the kiosk's own text.
316
+ hint: {
317
+ show: ((d = a.displayStand.hint) == null ? void 0 : d.show) ?? !0,
318
+ messages: ((f = a.displayStand.hint) == null ? void 0 : f.messages) ?? null
319
+ }
314
320
  } : _a
315
321
  };
316
322
  }, Pa = (e) => {
317
323
  const a = (t) => {
318
- var n, o, u, d;
324
+ var n, r, u, p;
319
325
  return {
320
326
  requiredSlot: !!t.displayStand,
321
327
  displayStand: {
@@ -324,7 +330,7 @@ const Y = {
324
330
  payAtCounter: (n = t.displayStand.submitOrderInstruction) != null && n.payAtCounter ? {
325
331
  en: t.displayStand.submitOrderInstruction.payAtCounter
326
332
  } : null,
327
- paid: (o = t.displayStand.submitOrderInstruction) != null && o.paid ? {
333
+ paid: (r = t.displayStand.submitOrderInstruction) != null && r.paid ? {
328
334
  en: t.displayStand.submitOrderInstruction.paid
329
335
  } : null
330
336
  }
@@ -335,7 +341,7 @@ const Y = {
335
341
  payAtCounter: (u = t.pickUp.submitOrderInstruction) != null && u.payAtCounter ? {
336
342
  en: t.pickUp.submitOrderInstruction.payAtCounter
337
343
  } : null,
338
- paid: (d = t.pickUp.submitOrderInstruction) != null && d.paid ? {
344
+ paid: (p = t.pickUp.submitOrderInstruction) != null && p.paid ? {
339
345
  en: t.pickUp.submitOrderInstruction.paid
340
346
  } : null
341
347
  }
@@ -364,7 +370,7 @@ const Y = {
364
370
  // Omitted when unset: the backend $sets the whole kiosk subdocument, so a
365
371
  // cleared minimum is removed instead of being stored as null.
366
372
  minWeighGrams: e.minWeighGrams ?? void 0,
367
- paymentSetting: r(e.paymentSetting),
373
+ paymentSetting: o(e.paymentSetting),
368
374
  takeaway: e.takeaway.submitOrderInstruction ? {
369
375
  submitOrderInstruction: {
370
376
  payAtCounter: e.takeaway.submitOrderInstruction.payAtCounter ? {
@@ -376,7 +382,7 @@ const Y = {
376
382
  }
377
383
  } : void 0
378
384
  };
379
- }, r = (t) => ({
385
+ }, o = (t) => ({
380
386
  paymentTypes: t.paymentTypes,
381
387
  offlinePaymentTypes: t.offlinePaymentTypes,
382
388
  ePaymentTypes: t.ePaymentTypes
@@ -394,34 +400,34 @@ const Y = {
394
400
  }, Ta = We("orderSetting", () => {
395
401
  const e = x({});
396
402
  async function a(n = () => !0) {
397
- const o = H.getRestaurantId() ?? void 0, u = await W.getOrderSetting();
398
- n() && t(u, o);
403
+ const r = H.getRestaurantId() ?? void 0, u = await W.getOrderSetting();
404
+ n() && t(u, r);
399
405
  }
400
406
  function l() {
401
407
  e.value.orderSetting = void 0, e.value.kiosk = void 0, e.value.restaurantId = void 0;
402
408
  }
403
- async function r(n) {
404
- const o = e.value.orderSetting, u = H.getRestaurantId() ?? void 0;
405
- if (!o || !u || e.value.restaurantId !== u)
409
+ async function o(n) {
410
+ const r = e.value.orderSetting, u = H.getRestaurantId() ?? void 0;
411
+ if (!r || !u || e.value.restaurantId !== u)
406
412
  throw new Error("Order settings are not loaded for this outlet");
407
- const { _id: d, ...s } = o, m = G.toOrderKioskSettingsDto(n), b = await W.getOrderSetting(), T = {
413
+ const { _id: p, ...s } = r, d = G.toOrderKioskSettingsDto(n), f = await W.getOrderSetting(), T = {
408
414
  ...s,
409
- kioskSettings: m.kioskSettings,
415
+ kioskSettings: d.kioskSettings,
410
416
  sequenceSettings: G.toKioskSequenceSettings(
411
417
  n,
412
- b.sequenceSettings
418
+ f.sequenceSettings
413
419
  )
414
420
  }, w = await W.updateOrderSetting(T);
415
421
  t(w, u);
416
422
  }
417
- function t(n, o) {
418
- e.value.orderSetting = n, e.value.kiosk = G.convertOrderSettingDto(n).kiosk, e.value.restaurantId = o;
423
+ function t(n, r) {
424
+ e.value.orderSetting = n, e.value.kiosk = G.convertOrderSettingDto(n).kiosk, e.value.restaurantId = r;
419
425
  }
420
426
  return {
421
427
  state: e.value,
422
428
  getSetting: a,
423
429
  reset: l,
424
- updateKioskSetting: r
430
+ updateKioskSetting: o
425
431
  };
426
432
  });
427
433
  function La(e, a) {
@@ -429,58 +435,58 @@ function La(e, a) {
429
435
  }
430
436
  function Aa(e, a) {
431
437
  const l = x("idle");
432
- let r = 0;
438
+ let o = 0;
433
439
  async function t() {
434
- const u = ++r, d = () => u === r;
440
+ const u = ++o, p = () => u === o;
435
441
  e.reset(), l.value = "loading";
436
442
  try {
437
- await e.getSetting(d), d() && (l.value = "ready");
443
+ await e.getSetting(p), p() && (l.value = "ready");
438
444
  } catch {
439
- d() && (l.value = "error");
445
+ p() && (l.value = "error");
440
446
  }
441
447
  }
442
448
  const n = I(
443
449
  () => l.value === "ready" ? e.state.kiosk ?? null : null
444
450
  );
445
- async function o(u) {
451
+ async function r(u) {
446
452
  try {
447
453
  if (l.value !== "ready")
448
454
  throw new Error("Kiosk settings are not loaded for this outlet");
449
455
  await e.updateKioskSetting(u);
450
- } catch (d) {
451
- throw a.onFailed(), d;
456
+ } catch (p) {
457
+ throw a.onFailed(), p;
452
458
  }
453
459
  a.onSaved();
454
460
  }
455
- return { status: l, form: n, load: t, save: o };
461
+ return { status: l, form: n, load: t, save: r };
456
462
  }
457
463
  const Ea = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), Ra = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), Ka = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), Fa = /[^\p{L}\d]+/giu, ue = "$1\0$2", ie = "";
458
464
  function pe(e) {
459
465
  let a = e.trim();
460
466
  a = a.replace(Ea, ue).replace(Ra, ue), a = a.replace(Fa, "\0");
461
- let l = 0, r = a.length;
467
+ let l = 0, o = a.length;
462
468
  for (; a.charAt(l) === "\0"; )
463
469
  l++;
464
- if (l === r)
470
+ if (l === o)
465
471
  return [];
466
- for (; a.charAt(r - 1) === "\0"; )
467
- r--;
468
- return a.slice(l, r).split(/\0/g);
472
+ for (; a.charAt(o - 1) === "\0"; )
473
+ o--;
474
+ return a.slice(l, o).split(/\0/g);
469
475
  }
470
476
  function Da(e) {
471
477
  const a = pe(e);
472
478
  for (let l = 0; l < a.length; l++) {
473
- const r = a[l], t = Ka.exec(r);
479
+ const o = a[l], t = Ka.exec(o);
474
480
  if (t) {
475
481
  const n = t.index + (t[1] ?? t[2]).length;
476
- a.splice(l, 1, r.slice(0, n), r.slice(n));
482
+ a.splice(l, 1, o.slice(0, n), o.slice(n));
477
483
  }
478
484
  }
479
485
  return a;
480
486
  }
481
487
  function Ua(e, a) {
482
- const [l, r, t] = qa(e, a), n = ga(a == null ? void 0 : a.locale), o = Na(a == null ? void 0 : a.locale);
483
- return l + r.map($a(n, o)).join(" ") + t;
488
+ const [l, o, t] = qa(e, a), n = ga(a == null ? void 0 : a.locale), r = Na(a == null ? void 0 : a.locale);
489
+ return l + o.map($a(n, r)).join(" ") + t;
484
490
  }
485
491
  function ga(e) {
486
492
  return (a) => a.toLocaleLowerCase(e);
@@ -492,57 +498,57 @@ function $a(e, a) {
492
498
  return (l) => `${a(l[0])}${e(l.slice(1))}`;
493
499
  }
494
500
  function qa(e, a = {}) {
495
- const l = a.split ?? (a.separateNumbers ? Da : pe), r = a.prefixCharacters ?? ie, t = a.suffixCharacters ?? ie;
496
- let n = 0, o = e.length;
501
+ const l = a.split ?? (a.separateNumbers ? Da : pe), o = a.prefixCharacters ?? ie, t = a.suffixCharacters ?? ie;
502
+ let n = 0, r = e.length;
497
503
  for (; n < e.length; ) {
498
504
  const u = e.charAt(n);
499
- if (!r.includes(u))
505
+ if (!o.includes(u))
500
506
  break;
501
507
  n++;
502
508
  }
503
- for (; o > n; ) {
504
- const u = o - 1, d = e.charAt(u);
505
- if (!t.includes(d))
509
+ for (; r > n; ) {
510
+ const u = r - 1, p = e.charAt(u);
511
+ if (!t.includes(p))
506
512
  break;
507
- o = u;
513
+ r = u;
508
514
  }
509
515
  return [
510
516
  e.slice(0, n),
511
- l(e.slice(n, o)),
512
- e.slice(o)
517
+ l(e.slice(n, r)),
518
+ e.slice(r)
513
519
  ];
514
520
  }
515
521
  const Ba = { class: "py-[1.5rem]" }, Ma = { class: "px-[1.5rem]" }, Va = { class: "flex flex-wrap items-center justify-between gap-x-24 gap-y-8 xs:flex-col xs:items-stretch" }, ja = ["title"], Xa = { class: "pt-[1.5rem]" }, Wa = { class: "flex flex-col gap-10" }, Ga = /* @__PURE__ */ z({
516
522
  __name: "KioskView",
517
523
  setup(e) {
518
524
  var ne;
519
- const { t: a } = Q(), { canManageOrderSetting: l } = Ye(), { isInternal: r } = ze(), t = Ee(
520
- () => import("./KioskSettingView-DPaQ7YFV.js")
521
- ), n = x("device"), o = ge(), u = Ta(), d = Ne(), s = Ve(), { currentRestaurant: m, restaurants: b, changeRestaurant: T } = Be(), w = je(), v = x(((ne = m.value) == null ? void 0 : ne._id) ?? void 0), E = x(null), $ = x(""), J = x(null), Z = I(() => {
525
+ const { t: a } = Q(), { canManageOrderSetting: l } = Ye(), { isInternal: o } = ze(), t = Ee(
526
+ () => import("./KioskSettingView-mfhi9vuf.js")
527
+ ), n = x("device"), r = ge(), u = Ta(), p = Ne(), s = Ve(), { currentRestaurant: d, restaurants: f, changeRestaurant: T } = Be(), w = je(), v = x(((ne = d.value) == null ? void 0 : ne._id) ?? void 0), E = x(null), $ = x(""), J = x(null), Z = I(() => {
522
528
  const c = $.value.trim().toLowerCase();
523
- return b.value.filter(
524
- (p) => !c || p.profile.name.toLowerCase().includes(c) || p._id.toLowerCase().includes(c)
525
- ).map((p) => ({
526
- label: p.profile.name,
527
- value: p._id
529
+ return f.value.filter(
530
+ (m) => !c || m.profile.name.toLowerCase().includes(c) || m._id.toLowerCase().includes(c)
531
+ ).map((m) => ({
532
+ label: m.profile.name,
533
+ value: m._id
528
534
  }));
529
535
  });
530
536
  async function me(c) {
531
537
  $.value = c;
532
538
  }
533
539
  function fe(c) {
534
- var p, K;
540
+ var m, K;
535
541
  if (!c) {
536
542
  $.value = "";
537
543
  return;
538
544
  }
539
- (K = (p = J.value) == null ? void 0 : p.querySelector("input")) == null || K.select();
545
+ (K = (m = J.value) == null ? void 0 : m.querySelector("input")) == null || K.select();
540
546
  }
541
547
  const D = x(""), q = x(null), B = x(!1), {
542
- status: ve,
548
+ status: ye,
543
549
  form: S,
544
550
  load: O,
545
- save: ye
551
+ save: ve
546
552
  } = Aa(u, {
547
553
  onSaved: () => w.open({ title: a("order.kioskSettingSuccess"), type: "success" }),
548
554
  onFailed: () => w.open({ title: a("order.kioskSettingFailed"), type: "error" })
@@ -554,45 +560,45 @@ const Ba = { class: "py-[1.5rem]" }, Ma = { class: "px-[1.5rem]" }, Va = { class
554
560
  return;
555
561
  }
556
562
  R.value = !1;
557
- const p = b.value.find((K) => K._id == c);
558
- v.value = c, await T(p);
563
+ const m = f.value.find((K) => K._id == c);
564
+ v.value = c, await T(m);
559
565
  }
560
566
  j(
561
567
  () => {
562
568
  var c;
563
569
  return {
564
570
  hasToken: !!H.getIdToken(),
565
- restaurantId: (c = m.value) == null ? void 0 : c._id
571
+ restaurantId: (c = d.value) == null ? void 0 : c._id
566
572
  };
567
573
  },
568
574
  (c) => {
569
- const p = La(c, q.value);
570
- p && (q.value = p, D.value = p, v.value = p, be());
575
+ const m = La(c, q.value);
576
+ m && (q.value = m, D.value = m, v.value = m, be());
571
577
  },
572
578
  { immediate: !0 }
573
579
  );
574
580
  async function be() {
575
- o.state.devices = [], o.state.licenses = null, await Promise.all([
581
+ r.state.devices = [], r.state.licenses = null, await Promise.all([
576
582
  l.value ? O() : Promise.resolve(),
577
- d.loadCheckouts(),
583
+ p.loadCheckouts(),
578
584
  ee(),
579
585
  M()
580
586
  ]);
581
587
  }
582
588
  function ee() {
583
- return r.value ? d.loadPaymentDevices() : (d.clearPaymentDevices(), Promise.resolve());
589
+ return o.value ? p.loadPaymentDevices() : (p.clearPaymentDevices(), Promise.resolve());
584
590
  }
585
- j(r, (c) => {
586
- q.value ? ee() : c || d.clearPaymentDevices();
591
+ j(o, (c) => {
592
+ q.value ? ee() : c || p.clearPaymentDevices();
587
593
  });
588
594
  async function M() {
589
595
  E.value = null, B.value = !0, await Promise.all([
590
- o.getDevices().catch((c) => {
596
+ r.getDevices().catch((c) => {
591
597
  E.value = c instanceof se && c.status === 403 ? "forbidden" : "error";
592
598
  }),
593
599
  // Licences are extra information on top of the devices: a failure only shows
594
600
  // a note in the summary (the store leaves `licenses` null).
595
- o.getLicenses().catch(() => {
601
+ r.getLicenses().catch(() => {
596
602
  })
597
603
  ]), B.value = !1;
598
604
  }
@@ -601,8 +607,8 @@ const Ba = { class: "py-[1.5rem]" }, Ma = { class: "px-[1.5rem]" }, Va = { class
601
607
  set: (c) => {
602
608
  if (c !== n.value) {
603
609
  if (n.value === "setting" && R.value) {
604
- V().then((p) => {
605
- p && (R.value = !1, n.value = c);
610
+ V().then((m) => {
611
+ m && (R.value = !1, n.value = c);
606
612
  });
607
613
  return;
608
614
  }
@@ -627,10 +633,10 @@ const Ba = { class: "py-[1.5rem]" }, Ma = { class: "px-[1.5rem]" }, Va = { class
627
633
  { label: a("order.licensesTab"), value: "licenses" }
628
634
  ];
629
635
  return l.value && c.push({ label: a("order.settings"), value: "setting" }), c;
630
- }), he = I(() => o.state.devices), te = I(() => o.state.licenses);
636
+ }), he = I(() => r.state.devices), te = I(() => r.state.licenses);
631
637
  async function we() {
632
638
  try {
633
- await o.requestOtp();
639
+ await r.requestOtp();
634
640
  } catch (c) {
635
641
  w.open({
636
642
  title: a(ba(c instanceof se ? c : null)),
@@ -640,45 +646,45 @@ const Ba = { class: "py-[1.5rem]" }, Ma = { class: "px-[1.5rem]" }, Va = { class
640
646
  }
641
647
  s.open({
642
648
  title: Ua(a("order.bindDevice")),
643
- contentComponent: va,
649
+ contentComponent: ya,
644
650
  contentComponentProps: {
645
- otp: o.state.otp,
646
- licenses: o.state.licenses
651
+ otp: r.state.otp,
652
+ licenses: r.state.licenses
647
653
  }
648
654
  }).onClose(async () => {
649
655
  await M();
650
656
  });
651
657
  }
652
658
  return j(
653
- () => b.value.length,
659
+ () => f.value.length,
654
660
  async (c) => {
655
- !m.value && v.value === void 0 && b.value.length > 0 && await k(b.value[0]._id);
661
+ !d.value && v.value === void 0 && f.value.length > 0 && await k(f.value[0]._id);
656
662
  },
657
663
  { immediate: !0 }
658
- ), (c, p) => {
664
+ ), (c, m) => {
659
665
  var le;
660
666
  const K = C("FmPageHead"), xe = C("FmTabs"), Ce = C("FmIcon"), Ie = C("FmMenuItem"), Pe = C("FmSelect"), Te = C("FmButton");
661
- return y(), h("div", Ba, [
667
+ return b(), h("div", Ba, [
662
668
  P(K, {
663
669
  title: i(a)("order.kiosk")
664
670
  }, null, 8, ["title"]),
665
- f("div", Ma, [
666
- f("div", Va, [
671
+ y("div", Ma, [
672
+ y("div", Va, [
667
673
  P(xe, {
668
674
  "model-value": ae.value,
669
- "onUpdate:modelValue": p[0] || (p[0] = (U) => ae.value = U),
675
+ "onUpdate:modelValue": m[0] || (m[0] = (U) => ae.value = U),
670
676
  items: _e.value
671
677
  }, null, 8, ["model-value", "items"]),
672
- Re(f("div", {
678
+ Re(y("div", {
673
679
  class: "kiosk-outlet-picker w-[360px] max-w-full xs:w-full",
674
680
  ref_key: "restaurantPicker",
675
681
  ref: J,
676
- title: (le = i(m)) == null ? void 0 : le.profile.name
682
+ title: (le = i(d)) == null ? void 0 : le.profile.name
677
683
  }, [
678
684
  P(Pe, {
679
685
  modelValue: v.value,
680
686
  "onUpdate:modelValue": [
681
- p[1] || (p[1] = (U) => v.value = U),
687
+ m[1] || (m[1] = (U) => v.value = U),
682
688
  k
683
689
  ],
684
690
  items: Z.value,
@@ -697,7 +703,7 @@ const Ba = { class: "py-[1.5rem]" }, Ma = { class: "px-[1.5rem]" }, Va = { class
697
703
  })
698
704
  ]),
699
705
  "append-menu": X(() => [
700
- Z.value.length ? F("", !0) : (y(), A(Ie, {
706
+ Z.value.length ? F("", !0) : (b(), A(Ie, {
701
707
  key: 0,
702
708
  disabled: "",
703
709
  label: i(a)("order.noRestaurantFound")
@@ -709,9 +715,9 @@ const Ba = { class: "py-[1.5rem]" }, Ma = { class: "px-[1.5rem]" }, Va = { class
709
715
  [Ke, n.value != "licenses"]
710
716
  ])
711
717
  ]),
712
- f("div", Xa, [
713
- f("div", Wa, [
714
- n.value == "device" ? (y(), A($e, {
718
+ y("div", Xa, [
719
+ y("div", Wa, [
720
+ n.value == "device" ? (b(), A($e, {
715
721
  key: 0,
716
722
  devices: he.value,
717
723
  licenses: te.value,
@@ -720,12 +726,12 @@ const Ba = { class: "py-[1.5rem]" }, Ma = { class: "px-[1.5rem]" }, Va = { class
720
726
  onRequestOtp: we,
721
727
  onRetry: M
722
728
  }, null, 8, ["devices", "licenses", "load-error", "loading"])) : F("", !0),
723
- n.value == "licenses" ? (y(), A(ua, {
729
+ n.value == "licenses" ? (b(), A(ua, {
724
730
  key: 1,
725
731
  licenses: te.value
726
732
  }, null, 8, ["licenses"])) : F("", !0),
727
- n.value == "setting" && i(l) ? (y(), h(g, { key: 2 }, [
728
- i(ve) === "error" ? (y(), A(re, {
733
+ n.value == "setting" && i(l) ? (b(), h(g, { key: 2 }, [
734
+ i(ye) === "error" ? (b(), A(oe, {
729
735
  key: 0,
730
736
  icon: "error",
731
737
  title: i(a)("order.settingsLoadErrorTitle"),
@@ -740,13 +746,13 @@ const Ba = { class: "py-[1.5rem]" }, Ma = { class: "px-[1.5rem]" }, Va = { class
740
746
  }, null, 8, ["label", "onClick"])
741
747
  ]),
742
748
  _: 1
743
- }, 8, ["title", "message"])) : i(S) ? (y(), A(i(t), {
749
+ }, 8, ["title", "message"])) : i(S) ? (b(), A(i(t), {
744
750
  key: `KioskSettingView-${D.value}`,
745
751
  "restaurant-id": D.value,
746
752
  form: i(S),
747
- save: i(ye),
748
- onDirtyChange: p[2] || (p[2] = (U) => R.value = U)
749
- }, null, 8, ["restaurant-id", "form", "save"])) : (y(), A(re, {
753
+ save: i(ve),
754
+ onDirtyChange: m[2] || (m[2] = (U) => R.value = U)
755
+ }, null, 8, ["restaurant-id", "form", "save"])) : (b(), A(oe, {
750
756
  key: 1,
751
757
  icon: "hourglass_empty",
752
758
  title: i(a)("order.settingsLoading"),