@feedmepos/mf-order-setting 0.0.95-dev.20261027T061604Z.40459675234 → 0.0.95

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 (87) hide show
  1. package/dist/{DisplaySystemView-BMWPYbOu.js → DisplaySystemView-rCw3DE0u.js} +612 -607
  2. package/dist/FoodCourtOrderSettingsView-DUQXCKzB.js +323 -0
  3. package/dist/{KioskDevicesView-ClDKCPwG.js → KioskDevicesView-B4dgvMq_.js} +1 -1
  4. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-DP-UUeFY.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-B-Oi8ZLq.js} +6 -7
  5. package/dist/KioskSettingView-DXx6wQQQ.js +880 -0
  6. package/dist/{KioskView-B-JJ-f6C.js → KioskView-BmSHCl13.js} +173 -159
  7. package/dist/{OrderSettingsView-wKCLTUUP.js → OrderSettingsView-9NOSAxLf.js} +13262 -13235
  8. package/dist/{app-DNwEUaev.js → app-y20uA-tu.js} +1929 -2351
  9. package/dist/app.js +1 -1
  10. package/dist/{featureFlag-BAd4ZqFP.js → featureFlag-GHmH1G2d.js} +1 -1
  11. package/dist/frontend/mf-order/src/api/food-court/index.d.ts +0 -71
  12. package/dist/frontend/mf-order/src/app.d.ts +28 -420
  13. package/dist/frontend/mf-order/src/main.d.ts +28 -420
  14. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +2 -0
  15. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
  16. package/dist/frontend/mf-order/src/stores/order-setting/mapper.d.ts +2 -1
  17. package/dist/frontend/mf-order/src/utils/constants/route.d.ts +0 -3
  18. package/dist/frontend/mf-order/src/views/order-settings/queue/code-setting-band.d.ts +23 -1
  19. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  20. package/dist/{index-BkGit1_q.js → index-BlG6mIU4.js} +3 -3
  21. package/dist/index-CUI1lL9F.js +1347 -0
  22. package/dist/{index-DmCJx0fk.js → index-CmdP_QXF.js} +1 -1
  23. package/dist/{index-x4lCYgle.js → index-wMygvJpP.js} +2 -2
  24. package/dist/{order.dto-D4lmFkH4.js → order.dto-CyHtvyly.js} +13 -3
  25. package/dist/package/entity/food-court/food-court.do.d.ts +1 -1
  26. package/dist/package/entity/food-court/food-court.dto.d.ts +7 -7
  27. package/dist/package/entity/food-court/order-v2.do.d.ts +24 -0
  28. package/dist/package/entity/food-court/order-v2.dto.d.ts +1484 -0
  29. package/dist/package/entity/index.d.ts +1 -0
  30. package/dist/package/entity/order-platform/external/reconciliation/external-reconciliation.do.d.ts +2 -2
  31. package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -0
  32. package/dist/package/entity/order-setting/order-setting.dto.d.ts +10 -0
  33. package/dist/package/entity/order-setting/sequence/sequence.do.d.ts +3 -0
  34. package/dist/package/entity/order-setting/sequence/sequence.dto.d.ts +3 -0
  35. package/dist/package/entity/queue/queue.do.d.ts +2 -1
  36. package/dist/package/entity/queue/queue.dto.d.ts +82 -0
  37. package/package.json +1 -1
  38. package/src/api/brandkit/index.ts +10 -1
  39. package/src/api/food-court/index.ts +0 -124
  40. package/src/locales/en-US.json +8 -106
  41. package/src/locales/ja-JP.json +8 -106
  42. package/src/locales/th-TH.json +8 -106
  43. package/src/locales/zh-CN.json +8 -106
  44. package/src/modules/order-setting/kiosk/interface.ts +8 -0
  45. package/src/router/routes.ts +0 -28
  46. package/src/stores/order-setting/index.ts +8 -1
  47. package/src/stores/order-setting/mapper.spec.ts +57 -0
  48. package/src/stores/order-setting/mapper.ts +42 -5
  49. package/src/utils/constants/route.ts +0 -6
  50. package/src/views/display-system/legacy-ods/brandkit.spec.ts +28 -3
  51. package/src/views/kiosk/settings/KioskSettingView.vue +21 -0
  52. package/src/views/order-settings/queue/QueueSetting.source.spec.ts +36 -0
  53. package/src/views/order-settings/queue/QueueSetting.vue +42 -3
  54. package/src/views/order-settings/queue/code-setting-band.spec.ts +85 -29
  55. package/src/views/order-settings/queue/code-setting-band.ts +39 -9
  56. package/dist/FoodCourtInvitationsView-DPyPlHqR.js +0 -425
  57. package/dist/FoodCourtOrderSettingsView-CR-utcF-.js +0 -293
  58. package/dist/FoodCourtStallsView-o43Xp3hO.js +0 -550
  59. package/dist/FoodCourtStatusView-BwAXynLR.js +0 -109
  60. package/dist/KioskSettingView-CDGe_9mu.js +0 -861
  61. package/dist/dayjs.min-IVBfXZp4.js +0 -285
  62. package/dist/food-court-member-CndyUoSh.js +0 -58
  63. package/dist/frontend/mf-order/src/api/food-court/invitation.d.ts +0 -30
  64. package/dist/frontend/mf-order/src/views/food-court/FoodCourtInvitationsView.vue.d.ts +0 -2
  65. package/dist/frontend/mf-order/src/views/food-court/FoodCourtStallsView.vue.d.ts +0 -2
  66. package/dist/frontend/mf-order/src/views/food-court/FoodCourtStatusView.vue.d.ts +0 -2
  67. package/dist/frontend/mf-order/src/views/food-court/food-court-member.d.ts +0 -34
  68. package/dist/frontend/mf-order/src/views/food-court/invitations/InvitationReviewDialog.vue.d.ts +0 -21
  69. package/dist/frontend/mf-order/src/views/food-court/invitations/InvitationRowActions.vue.d.ts +0 -13
  70. package/dist/frontend/mf-order/src/views/food-court/stalls/EditStallSheet.vue.d.ts +0 -15
  71. package/dist/frontend/mf-order/src/views/food-court/stalls/InviteStallSheet.vue.d.ts +0 -18
  72. package/dist/frontend/mf-order/src/views/food-court/stalls/StallAssignmentFields.vue.d.ts +0 -16
  73. package/dist/frontend/mf-order/src/views/food-court/stalls/StallRowActions.vue.d.ts +0 -12
  74. package/dist/index-C8vu-M08.js +0 -1065
  75. package/dist/index-CGreXXfV.js +0 -84
  76. package/dist/search-BAPEUu1R.js +0 -15
  77. package/src/api/food-court/invitation.ts +0 -70
  78. package/src/views/food-court/FoodCourtInvitationsView.vue +0 -192
  79. package/src/views/food-court/FoodCourtStallsView.vue +0 -267
  80. package/src/views/food-court/FoodCourtStatusView.vue +0 -107
  81. package/src/views/food-court/food-court-member.ts +0 -95
  82. package/src/views/food-court/invitations/InvitationReviewDialog.vue +0 -225
  83. package/src/views/food-court/invitations/InvitationRowActions.vue +0 -29
  84. package/src/views/food-court/stalls/EditStallSheet.vue +0 -91
  85. package/src/views/food-court/stalls/InviteStallSheet.vue +0 -192
  86. package/src/views/food-court/stalls/StallAssignmentFields.vue +0 -35
  87. package/src/views/food-court/stalls/StallRowActions.vue +0 -27
@@ -1,14 +1,14 @@
1
- import { ref as K, defineComponent as he, computed as V, watch as be, resolveComponent as ae, openBlock as f, createBlock as re, Teleport as No, createElementBlock as b, withModifiers as Ve, createElementVNode as r, toDisplayString as w, unref as d, createCommentVNode as z, createVNode as B, withCtx as $e, normalizeStyle as de, normalizeClass as me, Fragment as ie, createTextVNode as Ie, onScopeDispose as Wn, renderList as ve, resolveDirective as qa, withDirectives as no, useModel as qn, mergeModels as Gn, withKeys as Ga, vModelText as Hn, onMounted as Vo, onBeforeUnmount as Ha, nextTick as Kn, useTemplateRef as Jn, reactive as Zn, renderSlot as Et, onUnmounted as Yn, Transition as Xn } from "vue";
2
- import { useRoute as Qn, useRouter as es } from "vue-router";
3
- import { useI18n as Pe, useCoreStore as at, RestaurantSelector as ts } from "@feedmepos/mf-common";
1
+ import { ref as K, defineComponent as he, computed as V, watch as be, resolveComponent as ae, openBlock as f, createBlock as re, Teleport as No, createElementBlock as b, withModifiers as Ve, createElementVNode as r, toDisplayString as w, unref as d, createCommentVNode as z, createVNode as B, withCtx as $e, normalizeStyle as de, normalizeClass as me, Fragment as ie, createTextVNode as Ie, onScopeDispose as qn, renderList as ve, resolveDirective as qa, withDirectives as no, useModel as Gn, mergeModels as Hn, withKeys as Ga, vModelText as Kn, onMounted as Vo, onBeforeUnmount as Ha, nextTick as Jn, useTemplateRef as Zn, reactive as Yn, renderSlot as Et, onUnmounted as Xn, Transition as Qn } from "vue";
2
+ import { useRoute as es, useRouter as ts } from "vue-router";
3
+ import { useI18n as Pe, useCoreStore as at, RestaurantSelector as os } from "@feedmepos/mf-common";
4
4
  import { u as Ka } from "./snackbar-DZQ0_reQ.js";
5
- import { D as Ja } from "./order.dto-D4lmFkH4.js";
6
- import { defineStore as os } from "pinia";
7
- import { g as nt, a as as, d as ns, c as so } from "./index-DmCJx0fk.js";
8
- import { useDialogChild as ss, useDialog as Za } from "@feedmepos/ui-library";
9
- import { _ as We, u as ls, e as rs } from "./featureFlag-BAd4ZqFP.js";
10
- import { A as is, v as Ya, u as ds } from "./app-DNwEUaev.js";
11
- function Xa(e) {
5
+ import { D as Ja } from "./order.dto-CyHtvyly.js";
6
+ import { defineStore as as } from "pinia";
7
+ import { g as nt, a as Za, d as ns, c as so } from "./index-CmdP_QXF.js";
8
+ import { useDialogChild as ss, useDialog as Ya } from "@feedmepos/ui-library";
9
+ import { _ as We, u as ls, e as rs } from "./featureFlag-GHmH1G2d.js";
10
+ import { A as is, v as Xa, u as ds } from "./app-y20uA-tu.js";
11
+ function Qa(e) {
12
12
  return JSON.parse(JSON.stringify(e));
13
13
  }
14
14
  function us(e, t) {
@@ -26,7 +26,7 @@ const cs = {
26
26
  "media.carousel": { items: [{ kind: "IMAGE", url: "", objectFit: "COVER" }], intervalMs: 8e3, transition: "FADE" },
27
27
  "info.text": { text: "Welcome", size: "MD", align: "CENTER" }
28
28
  };
29
- function wt(e, t = en(e.replace(".", "_"))) {
29
+ function wt(e, t = tn(e.replace(".", "_"))) {
30
30
  return { id: t, type: e, props: structuredClone(cs[e] ?? {}) };
31
31
  }
32
32
  function Zt(e = "pickup") {
@@ -48,10 +48,10 @@ function Zt(e = "pickup") {
48
48
  ] } }
49
49
  ] } : l(`${e}_zone`, e === "queue" ? o : e === "media" ? a : t) };
50
50
  }
51
- function Qa(e) {
51
+ function en(e) {
52
52
  if (!e) return Zt();
53
53
  const { label: t, orientation: o, schemaVersion: a, theme: n, filter: s, scale: l, hideFooter: i, root: u } = e;
54
- return Xa({
54
+ return Qa({
55
55
  label: t,
56
56
  orientation: o,
57
57
  schemaVersion: a,
@@ -63,17 +63,17 @@ function Qa(e) {
63
63
  });
64
64
  }
65
65
  function ma(e) {
66
- const t = Xa(e);
66
+ const t = Qa(e);
67
67
  return (t.scale === void 0 || t.scale === 1) && delete t.scale, t.hideFooter || delete t.hideFooter, t;
68
68
  }
69
- function en(e) {
69
+ function tn(e) {
70
70
  const t = Math.random().toString(36).slice(2, 8);
71
71
  return `${e.toLowerCase().replace(/[^a-z0-9_-]+/g, "_").replace(/^[^a-z0-9]+/, "").slice(0, 31 - t.length) || "block"}_${t}`;
72
72
  }
73
73
  function ut(e) {
74
74
  return e.kind === "ZONE" ? [e] : e.children.flatMap((t) => ut(t.node));
75
75
  }
76
- function tn(e) {
76
+ function on(e) {
77
77
  var o;
78
78
  const t = /* @__PURE__ */ new Set();
79
79
  for (const a of ut(e.root)) {
@@ -118,22 +118,22 @@ function fa(e) {
118
118
  return e.map((o) => Math.round(Math.max(1, o.weight) / t * 100));
119
119
  }
120
120
  function jo(e) {
121
- return { kind: "ZONE", id: en("zone"), block: e };
121
+ return { kind: "ZONE", id: tn("zone"), block: e };
122
122
  }
123
- function on(e, t, o) {
123
+ function an(e, t, o) {
124
124
  const a = e.children[t], n = Math.max(1, Math.floor(a.weight / 2));
125
125
  a.weight = Math.max(1, a.weight - n), e.children.push({ weight: n, node: o });
126
126
  }
127
127
  function Wo(e) {
128
128
  return e === "ROW" ? "COLUMN" : "ROW";
129
129
  }
130
- function an(e, t) {
130
+ function nn(e, t) {
131
131
  e.direction = t;
132
132
  for (const o of e.children)
133
- o.node.kind === "SPLIT" && an(o.node, Wo(t));
133
+ o.node.kind === "SPLIT" && nn(o.node, Wo(t));
134
134
  }
135
135
  const $t = 6;
136
- function nn(e, t, o) {
136
+ function sn(e, t, o) {
137
137
  const a = jo(o);
138
138
  if (e.root.kind === "ZONE")
139
139
  return e.root = {
@@ -145,17 +145,17 @@ function nn(e, t, o) {
145
145
  ]
146
146
  }, a.id;
147
147
  if (!(e.root.children.length >= $t))
148
- return on(e.root, e.root.children.length - 1, a), a.id;
148
+ return an(e.root, e.root.children.length - 1, a), a.id;
149
149
  }
150
150
  function fs(e, t, o) {
151
151
  const a = zo(e.root, t);
152
152
  if (!a || a.split.children.length >= $t) return;
153
153
  const n = jo(o);
154
- return on(a.split, a.index, n), n.id;
154
+ return an(a.split, a.index, n), n.id;
155
155
  }
156
156
  function ys(e, t, o) {
157
157
  if (e.root.kind === "ZONE")
158
- return e.root.id === t ? nn(e, "ROW", o) : void 0;
158
+ return e.root.id === t ? sn(e, "ROW", o) : void 0;
159
159
  const a = zo(e.root, t);
160
160
  if (!a || a.depth !== 1) return;
161
161
  const n = a.split.children[a.index], s = jo(o);
@@ -210,7 +210,7 @@ function ws(e, t, o) {
210
210
  a.weight = Math.max(1, Math.round(s * l)), n.weight = Math.max(1, s - a.weight);
211
211
  }
212
212
  function Je() {
213
- const e = as.getBusinessId();
213
+ const e = Za.getBusinessId();
214
214
  if (!e) throw new Error("Invalid business");
215
215
  return ns(e);
216
216
  }
@@ -218,7 +218,7 @@ const ks = async (e) => nt(await Je().get("/display/screen-capabilities", { para
218
218
  await Je().delete(`/display/screens/${t}`, { params: { restaurantId: e } });
219
219
  }, Ps = async (e, t, o) => nt(await Je().patch(`/display/screens/${t}/status`, { status: o }, { params: { restaurantId: e } })), Cs = async (e) => nt(await Je().get("/display/templates", { params: { restaurantId: e } })), Es = async (e) => nt(await Je().post("/display/templates", e)), Ts = async (e, t) => nt(await Je().put(`/display/templates/${e}`, t)), Is = async (e) => {
220
220
  await Je().delete(`/display/templates/${e}`);
221
- }, He = { getScreenCapabilities: ks, listScreens: Ss, createScreen: xs, updateScreen: _s, deleteScreen: Os, updateScreenStatus: Ps, listTemplates: Cs, createTemplate: Es, updateTemplate: Ts, deleteTemplate: Is }, Rs = os("display-system", () => {
221
+ }, He = { getScreenCapabilities: ks, listScreens: Ss, createScreen: xs, updateScreen: _s, deleteScreen: Os, updateScreenStatus: Ps, listTemplates: Cs, createTemplate: Es, updateTemplate: Ts, deleteTemplate: Is }, Rs = as("display-system", () => {
222
222
  const e = K([]), t = K(), o = K([]), a = K(!1), n = K(!1), s = K(!1);
223
223
  async function l(C) {
224
224
  n.value = !0;
@@ -386,12 +386,12 @@ const ks = async (e) => nt(await Je().get("/display/screen-capabilities", { para
386
386
  };
387
387
  }
388
388
  });
389
- function sn(e, t) {
389
+ function ln(e, t) {
390
390
  return function() {
391
391
  return e.apply(t, arguments);
392
392
  };
393
393
  }
394
- const { toString: Vs } = Object.prototype, { getPrototypeOf: St } = Object, { iterator: Lt, toStringTag: ln } = Symbol, ro = (({ hasOwnProperty: e }) => (t, o) => e.call(t, o))(Object.prototype), Mt = (e, t) => {
394
+ const { toString: Vs } = Object.prototype, { getPrototypeOf: St } = Object, { iterator: Lt, toStringTag: rn } = Symbol, ro = (({ hasOwnProperty: e }) => (t, o) => e.call(t, o))(Object.prototype), Mt = (e, t) => {
395
395
  let o = e;
396
396
  const a = [];
397
397
  for (; o != null && o !== Object.prototype; ) {
@@ -409,19 +409,19 @@ const { toString: Vs } = Object.prototype, { getPrototypeOf: St } = Object, { it
409
409
  function _t(e) {
410
410
  return e !== null && !xt(e) && e.constructor !== null && !xt(e.constructor) && Fe(e.constructor.isBuffer) && e.constructor.isBuffer(e);
411
411
  }
412
- const rn = qe("ArrayBuffer");
412
+ const dn = qe("ArrayBuffer");
413
413
  function js(e) {
414
414
  let t;
415
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && rn(e.buffer), t;
415
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && dn(e.buffer), t;
416
416
  }
417
- const Ws = yo("string"), Fe = yo("function"), dn = yo("number"), Ot = (e) => e !== null && typeof e == "object", qs = (e) => e === !0 || e === !1, Yt = (e) => {
417
+ const Ws = yo("string"), Fe = yo("function"), un = yo("number"), Ot = (e) => e !== null && typeof e == "object", qs = (e) => e === !0 || e === !1, Yt = (e) => {
418
418
  if (!Ot(e))
419
419
  return !1;
420
420
  const t = St(e);
421
421
  return (t === null || t === Object.prototype || St(t) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
422
422
  // Symbol.iterator as evidence the value is a tagged/iterable type rather
423
423
  // than a plain object, while ignoring keys injected onto Object.prototype.
424
- !Mt(e, ln) && !Mt(e, Lt);
424
+ !Mt(e, rn) && !Mt(e, Lt);
425
425
  }, Gs = (e) => {
426
426
  if (!Ot(e) || _t(e))
427
427
  return !1;
@@ -467,7 +467,7 @@ function Nt(e, t, { allOwnKeys: o = !1 } = {}) {
467
467
  i = s[a], t.call(null, e[i], i, e);
468
468
  }
469
469
  }
470
- function un(e, t) {
470
+ function cn(e, t) {
471
471
  if (_t(e))
472
472
  return null;
473
473
  t = t.toLowerCase();
@@ -478,12 +478,12 @@ function un(e, t) {
478
478
  return n;
479
479
  return null;
480
480
  }
481
- const dt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, cn = (e) => !xt(e) && e !== dt;
481
+ const dt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, pn = (e) => !xt(e) && e !== dt;
482
482
  function $o(...e) {
483
- const { caseless: t, skipUndefined: o } = cn(this) && this || {}, a = {}, n = (s, l) => {
483
+ const { caseless: t, skipUndefined: o } = pn(this) && this || {}, a = {}, n = (s, l) => {
484
484
  if (l === "__proto__" || l === "constructor" || l === "prototype")
485
485
  return;
486
- const i = t && typeof l == "string" && un(a, l) || l, u = ro(a, i) ? a[i] : void 0;
486
+ const i = t && typeof l == "string" && cn(a, l) || l, u = ro(a, i) ? a[i] : void 0;
487
487
  Yt(u) && Yt(s) ? a[i] = $o(u, s) : Yt(s) ? a[i] = $o({}, s) : ct(s) ? a[i] = s.slice() : (!o || !xt(s)) && (a[i] = s);
488
488
  };
489
489
  for (let s = 0, l = e.length; s < l; s++) {
@@ -505,7 +505,7 @@ const il = (e, t, o, { allOwnKeys: a } = {}) => (Nt(
505
505
  // Null-proto descriptor so a polluted Object.prototype.get cannot
506
506
  // hijack defineProperty's accessor-vs-data resolution.
507
507
  __proto__: null,
508
- value: sn(n, o),
508
+ value: ln(n, o),
509
509
  writable: !0,
510
510
  enumerable: !0,
511
511
  configurable: !0
@@ -550,7 +550,7 @@ const il = (e, t, o, { allOwnKeys: a } = {}) => (Nt(
550
550
  if (ct(e))
551
551
  return e;
552
552
  let t = e.length;
553
- if (!dn(t))
553
+ if (!un(t))
554
554
  return null;
555
555
  const o = new Array(t);
556
556
  for (; t-- > 0; )
@@ -571,14 +571,14 @@ const il = (e, t, o, { allOwnKeys: a } = {}) => (Nt(
571
571
  return a;
572
572
  }, gl = qe("HTMLFormElement"), bl = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(t, o, a) {
573
573
  return o.toUpperCase() + a;
574
- }), { propertyIsEnumerable: hl } = Object.prototype, wl = qe("RegExp"), pn = (e, t) => {
574
+ }), { propertyIsEnumerable: hl } = Object.prototype, wl = qe("RegExp"), mn = (e, t) => {
575
575
  const o = Object.getOwnPropertyDescriptors(e), a = {};
576
576
  Nt(o, (n, s) => {
577
577
  let l;
578
578
  (l = t(n, s, e)) !== !1 && (a[s] = l || n);
579
579
  }), Object.defineProperties(e, a);
580
580
  }, kl = (e) => {
581
- pn(e, (t, o) => {
581
+ mn(e, (t, o) => {
582
582
  if (Fe(e) && ["arguments", "caller", "callee"].includes(o))
583
583
  return !1;
584
584
  const a = e[o];
@@ -602,7 +602,7 @@ const il = (e, t, o, { allOwnKeys: a } = {}) => (Nt(
602
602
  }, xl = () => {
603
603
  }, _l = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
604
604
  function Ol(e) {
605
- return !!(e && Fe(e.append) && e[ln] === "FormData" && e[Lt]);
605
+ return !!(e && Fe(e.append) && e[rn] === "FormData" && e[Lt]);
606
606
  }
607
607
  const Pl = (e) => {
608
608
  const t = /* @__PURE__ */ new WeakSet(), o = (a) => {
@@ -623,7 +623,7 @@ const Pl = (e) => {
623
623
  return a;
624
624
  };
625
625
  return o(e);
626
- }, Cl = qe("AsyncFunction"), El = (e) => e && (Ot(e) || Fe(e)) && Fe(e.then) && Fe(e.catch), mn = ((e, t) => e ? setImmediate : t ? ((o, a) => (dt.addEventListener(
626
+ }, Cl = qe("AsyncFunction"), El = (e) => e && (Ot(e) || Fe(e)) && Fe(e.then) && Fe(e.catch), fn = ((e, t) => e ? setImmediate : t ? ((o, a) => (dt.addEventListener(
627
627
  "message",
628
628
  ({ source: n, data: s }) => {
629
629
  n === dt && s === o && a.length && a.shift()();
@@ -631,14 +631,14 @@ const Pl = (e) => {
631
631
  !1
632
632
  ), (n) => {
633
633
  a.push(n), dt.postMessage(o, "*");
634
- }))(`axios@${Math.random()}`, []) : (o) => setTimeout(o))(typeof setImmediate == "function", Fe(dt.postMessage)), Tl = typeof queueMicrotask < "u" ? queueMicrotask.bind(dt) : typeof process < "u" && process.nextTick || mn, fn = (e) => e != null && Fe(e[Lt]), Il = (e) => e != null && Mt(e, Lt) && fn(e), g = {
634
+ }))(`axios@${Math.random()}`, []) : (o) => setTimeout(o))(typeof setImmediate == "function", Fe(dt.postMessage)), Tl = typeof queueMicrotask < "u" ? queueMicrotask.bind(dt) : typeof process < "u" && process.nextTick || fn, yn = (e) => e != null && Fe(e[Lt]), Il = (e) => e != null && Mt(e, Lt) && yn(e), g = {
635
635
  isArray: ct,
636
- isArrayBuffer: rn,
636
+ isArrayBuffer: dn,
637
637
  isBuffer: _t,
638
638
  isFormData: tl,
639
639
  isArrayBufferView: js,
640
640
  isString: Ws,
641
- isNumber: dn,
641
+ isNumber: un,
642
642
  isBoolean: qs,
643
643
  isObject: Ot,
644
644
  isPlainObject: Yt,
@@ -678,22 +678,22 @@ const Pl = (e) => {
678
678
  // an alias to avoid ESLint no-prototype-builtins detection
679
679
  hasOwnInPrototypeChain: Mt,
680
680
  getSafeProp: zs,
681
- reduceDescriptors: pn,
681
+ reduceDescriptors: mn,
682
682
  freezeMethods: kl,
683
683
  toObjectSet: Sl,
684
684
  toCamelCase: bl,
685
685
  noop: xl,
686
686
  toFiniteNumber: _l,
687
- findKey: un,
687
+ findKey: cn,
688
688
  global: dt,
689
- isContextDefined: cn,
689
+ isContextDefined: pn,
690
690
  isSpecCompliantForm: Ol,
691
691
  toJSONObject: Pl,
692
692
  isAsyncFn: Cl,
693
693
  isThenable: El,
694
- setImmediate: mn,
694
+ setImmediate: fn,
695
695
  asap: Tl,
696
- isIterable: fn,
696
+ isIterable: yn,
697
697
  isSafeIterable: Il
698
698
  }, Rl = g.toObjectSet([
699
699
  "age",
@@ -742,7 +742,7 @@ function Go(e, t) {
742
742
  return g.isArray(e) ? e.map((o) => Go(o, t)) : Dl(String(e).replace(t, ""));
743
743
  }
744
744
  const Ml = (e) => Go(e, Bl), Fl = (e) => Go(e, $l);
745
- function yn(e) {
745
+ function vn(e) {
746
746
  const t = /* @__PURE__ */ Object.create(null);
747
747
  return g.forEach(e.toJSON(), (o, a) => {
748
748
  t[a] = Fl(o);
@@ -1040,16 +1040,16 @@ Re.ERR_CANCELED = "ERR_CANCELED";
1040
1040
  Re.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
1041
1041
  Re.ERR_INVALID_URL = "ERR_INVALID_URL";
1042
1042
  Re.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
1043
- const te = Re, ql = null, vn = 100;
1043
+ const te = Re, ql = null, gn = 100;
1044
1044
  function Mo(e) {
1045
1045
  return g.isPlainObject(e) || g.isArray(e);
1046
1046
  }
1047
- function gn(e) {
1047
+ function bn(e) {
1048
1048
  return g.endsWith(e, "[]") ? e.slice(0, -2) : e;
1049
1049
  }
1050
1050
  function Po(e, t, o) {
1051
1051
  return e ? e.concat(t).map(function(a, n) {
1052
- return a = gn(a), !o && n ? "[" + a + "]" : a;
1052
+ return a = bn(a), !o && n ? "[" + a + "]" : a;
1053
1053
  }).join(o ? "." : "") : t;
1054
1054
  }
1055
1055
  function Gl(e) {
@@ -1073,7 +1073,7 @@ function go(e, t, o) {
1073
1073
  return !g.isUndefined(k[p]);
1074
1074
  }
1075
1075
  );
1076
- const a = o.metaTokens, n = o.visitor || A, s = o.dots, l = o.indexes, i = o.Blob || typeof Blob < "u" && Blob, u = o.maxDepth === void 0 ? vn : o.maxDepth, c = i && g.isSpecCompliantForm(t), m = [];
1076
+ const a = o.metaTokens, n = o.visitor || A, s = o.dots, l = o.indexes, i = o.Blob || typeof Blob < "u" && Blob, u = o.maxDepth === void 0 ? gn : o.maxDepth, c = i && g.isSpecCompliantForm(t), m = [];
1077
1077
  if (!g.isFunction(n))
1078
1078
  throw new TypeError("visitor must be a function");
1079
1079
  function h(p) {
@@ -1121,7 +1121,7 @@ function go(e, t, o) {
1121
1121
  if (g.endsWith(k, "{}"))
1122
1122
  k = a ? k : k.slice(0, -2), p = j(p, 1);
1123
1123
  else if (g.isArray(p) && Gl(p) || (g.isFileList(p) || g.endsWith(k, "[]")) && (P = g.toArray(p)))
1124
- return k = gn(k), P.forEach(function(M, q) {
1124
+ return k = bn(k), P.forEach(function(M, q) {
1125
1125
  !(g.isUndefined(M) || M === null) && t.append(
1126
1126
  // eslint-disable-next-line no-nested-ternary
1127
1127
  l === !0 ? Po([k], q, s) : l === null ? k : k + "[]",
@@ -1165,11 +1165,11 @@ function wa(e) {
1165
1165
  function Ho(e, t) {
1166
1166
  this._pairs = [], e && go(e, this, t);
1167
1167
  }
1168
- const bn = Ho.prototype;
1169
- bn.append = function(e, t) {
1168
+ const hn = Ho.prototype;
1169
+ hn.append = function(e, t) {
1170
1170
  this._pairs.push([e, t]);
1171
1171
  };
1172
- bn.toString = function(e) {
1172
+ hn.toString = function(e) {
1173
1173
  const t = e ? (o) => e.call(this, o, wa) : wa;
1174
1174
  return this._pairs.map(function(o) {
1175
1175
  return t(o[0]) + "=" + t(o[1]);
@@ -1178,7 +1178,7 @@ bn.toString = function(e) {
1178
1178
  function Kl(e) {
1179
1179
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
1180
1180
  }
1181
- function hn(e, t, o) {
1181
+ function wn(e, t, o) {
1182
1182
  if (!t)
1183
1183
  return e;
1184
1184
  e = e || "";
@@ -1282,8 +1282,8 @@ function nr(e, t) {
1282
1282
  ...t
1283
1283
  });
1284
1284
  }
1285
- const Sa = vn;
1286
- function wn(e) {
1285
+ const Sa = gn;
1286
+ function kn(e) {
1287
1287
  if (e > Sa)
1288
1288
  throw new te(
1289
1289
  "FormData field is too deeply nested (" + e + " levels). Max depth: " + Sa,
@@ -1294,7 +1294,7 @@ function sr(e) {
1294
1294
  const t = [], o = /\w+|\[(\w*)]/g;
1295
1295
  let a;
1296
1296
  for (; (a = o.exec(e)) !== null; )
1297
- wn(t.length), t.push(a[0] === "[]" ? "" : a[1] || a[0]);
1297
+ kn(t.length), t.push(a[0] === "[]" ? "" : a[1] || a[0]);
1298
1298
  return t;
1299
1299
  }
1300
1300
  function lr(e) {
@@ -1306,9 +1306,9 @@ function lr(e) {
1306
1306
  s = o[a], t[s] = e[s];
1307
1307
  return t;
1308
1308
  }
1309
- function kn(e) {
1309
+ function Sn(e) {
1310
1310
  function t(o, a, n, s) {
1311
- wn(s);
1311
+ kn(s);
1312
1312
  let l = o[s++];
1313
1313
  if (l === "__proto__")
1314
1314
  return !0;
@@ -1341,7 +1341,7 @@ const Zo = {
1341
1341
  function(e, t) {
1342
1342
  const o = t.getContentType() || "", a = o.indexOf("application/json") > -1, n = g.isObject(e);
1343
1343
  if (n && g.isHTMLForm(e) && (e = new FormData(e)), g.isFormData(e))
1344
- return a ? JSON.stringify(kn(e)) : e;
1344
+ return a ? JSON.stringify(Sn(e)) : e;
1345
1345
  if (g.isArrayBuffer(e) || g.isBuffer(e) || g.isStream(e) || g.isFile(e) || g.isBlob(e) || g.isReadableStream(e))
1346
1346
  return e;
1347
1347
  if (g.isArrayBufferView(e))
@@ -1416,7 +1416,7 @@ function Co(e, t) {
1416
1416
  s = l.call(o, s, n.normalize(), t ? t.status : void 0);
1417
1417
  }), n.normalize(), s;
1418
1418
  }
1419
- function Sn(e) {
1419
+ function xn(e) {
1420
1420
  return !!(e && e.__CANCEL__);
1421
1421
  }
1422
1422
  class ir extends te {
@@ -1434,7 +1434,7 @@ class ir extends te {
1434
1434
  }
1435
1435
  }
1436
1436
  const Vt = ir;
1437
- function xn(e, t, o) {
1437
+ function _n(e, t, o) {
1438
1438
  const a = o.config.validateStatus;
1439
1439
  !o.status || !a || a(o.status) ? e(o) : t(new te(
1440
1440
  "Request failed with status code " + o.status,
@@ -1574,7 +1574,7 @@ function Oa(e, t) {
1574
1574
  t
1575
1575
  );
1576
1576
  }
1577
- function _n(e, t, o, a) {
1577
+ function On(e, t, o, a) {
1578
1578
  Oa(t, a);
1579
1579
  let n = !fr(t);
1580
1580
  return e && (n || o === !1) ? (Oa(e, a), yr(e, t)) : t;
@@ -1684,14 +1684,14 @@ const Sr = (e) => encodeURIComponent(e).replace(
1684
1684
  /%([0-9A-F]{2})/gi,
1685
1685
  (t, o) => String.fromCharCode(parseInt(o, 16))
1686
1686
  );
1687
- function On(e) {
1687
+ function Pn(e) {
1688
1688
  const t = pt({}, e), o = (R) => g.hasOwnProp(t, R) ? t[R] : void 0, a = o("data");
1689
1689
  let n = o("withXSRFToken");
1690
1690
  const s = o("xsrfHeaderName"), l = o("xsrfCookieName");
1691
1691
  let i = o("headers");
1692
1692
  const u = o("auth"), c = o("baseURL"), m = o("allowAbsoluteUrls"), h = o("url");
1693
- if (t.headers = i = Le.from(i), t.url = hn(
1694
- _n(c, h, m, t),
1693
+ if (t.headers = i = Le.from(i), t.url = wn(
1694
+ On(c, h, m, t),
1695
1695
  o("params"),
1696
1696
  o("paramsSerializer")
1697
1697
  ), u) {
@@ -1713,7 +1713,7 @@ function On(e) {
1713
1713
  }
1714
1714
  const xr = typeof XMLHttpRequest < "u", _r = xr && function(e) {
1715
1715
  return new Promise(function(t, o) {
1716
- const a = On(e);
1716
+ const a = Pn(e);
1717
1717
  let n = a.data;
1718
1718
  const s = Le.from(a.headers).normalize();
1719
1719
  let { responseType: l, onUploadProgress: i, onDownloadProgress: u } = a, c, m, h, R, j;
@@ -1735,7 +1735,7 @@ const xr = typeof XMLHttpRequest < "u", _r = xr && function(e) {
1735
1735
  config: e,
1736
1736
  request: D
1737
1737
  };
1738
- xn(
1738
+ _n(
1739
1739
  function(P) {
1740
1740
  t(P), A();
1741
1741
  },
@@ -1763,7 +1763,7 @@ const xr = typeof XMLHttpRequest < "u", _r = xr && function(e) {
1763
1763
  D
1764
1764
  )
1765
1765
  ), A(), D = null;
1766
- }, n === void 0 && s.setContentType(null), "setRequestHeader" in D && g.forEach(yn(s), function(k, N) {
1766
+ }, n === void 0 && s.setContentType(null), "setRequestHeader" in D && g.forEach(vn(s), function(k, N) {
1767
1767
  D.setRequestHeader(N, k);
1768
1768
  }), g.isUndefined(a.withCredentials) || (D.withCredentials = !!a.withCredentials), l && l !== "json" && (D.responseType = a.responseType), u && ([h, j] = io(u, !0), D.addEventListener("progress", h)), i && D.upload && ([m, R] = io(i), D.upload.addEventListener("progress", m), D.upload.addEventListener("loadend", R)), (a.cancelToken || a.signal) && (c = (k) => {
1769
1769
  D && (o(!k || k.type ? new Vt(null, e, D) : k), D.abort(), A(), D = null);
@@ -1999,7 +1999,7 @@ const Xo = "1.18.1", Ea = 64 * 1024, { isFunction: Wt } = g, Ar = (e) => encodeU
1999
1999
  fetchOptions: O,
2000
2000
  maxContentLength: x,
2001
2001
  maxBodyLength: v
2002
- } = On(p);
2002
+ } = Pn(p);
2003
2003
  const y = g.isNumber(x) && x > -1, W = g.isNumber(v) && v > -1, oe = (pe) => g.hasOwnProp(p, pe) ? p[pe] : void 0;
2004
2004
  let G = n || fetch;
2005
2005
  F = F ? (F + "").toLowerCase() : "text";
@@ -2098,7 +2098,7 @@ const Xo = "1.18.1", Ea = 64 * 1024, { isFunction: Wt } = g, Ar = (e) => encodeU
2098
2098
  ...O,
2099
2099
  signal: J,
2100
2100
  method: N.toUpperCase(),
2101
- headers: yn(T.normalize()),
2101
+ headers: vn(T.normalize()),
2102
2102
  body: P,
2103
2103
  duplex: "half",
2104
2104
  credentials: ze ? $ : void 0
@@ -2160,7 +2160,7 @@ const Xo = "1.18.1", Ea = 64 * 1024, { isFunction: Wt } = g, Ar = (e) => encodeU
2160
2160
  );
2161
2161
  }
2162
2162
  return !L && ge && ge(), await new Promise((Z, ce) => {
2163
- xn(Z, ce, {
2163
+ _n(Z, ce, {
2164
2164
  data: H,
2165
2165
  headers: Le.from(Ce.headers),
2166
2166
  status: Ce.status,
@@ -2203,7 +2203,7 @@ const Xo = "1.18.1", Ea = 64 * 1024, { isFunction: Wt } = g, Ar = (e) => encodeU
2203
2203
  throw te.from(pe, pe && pe.code, p, ne, pe && pe.response);
2204
2204
  }
2205
2205
  };
2206
- }, $r = /* @__PURE__ */ new Map(), Pn = (e) => {
2206
+ }, $r = /* @__PURE__ */ new Map(), Cn = (e) => {
2207
2207
  let t = e && e.env || {};
2208
2208
  const { fetch: o, Request: a, Response: n } = t, s = [a, n, o];
2209
2209
  let l = s.length, i = l, u, c, m = $r;
@@ -2211,12 +2211,12 @@ const Xo = "1.18.1", Ea = 64 * 1024, { isFunction: Wt } = g, Ar = (e) => encodeU
2211
2211
  u = s[i], c = m.get(u), c === void 0 && m.set(u, c = i ? /* @__PURE__ */ new Map() : Br(t)), m = c;
2212
2212
  return c;
2213
2213
  };
2214
- Pn();
2214
+ Cn();
2215
2215
  const Qo = {
2216
2216
  http: ql,
2217
2217
  xhr: _r,
2218
2218
  fetch: {
2219
- get: Pn
2219
+ get: Cn
2220
2220
  }
2221
2221
  };
2222
2222
  g.forEach(Qo, (e, t) => {
@@ -2257,7 +2257,7 @@ function Fr(e, t) {
2257
2257
  }
2258
2258
  return n;
2259
2259
  }
2260
- const Cn = {
2260
+ const En = {
2261
2261
  /**
2262
2262
  * Resolve an adapter from a list of adapter names or functions.
2263
2263
  * @type {Function}
@@ -2274,7 +2274,7 @@ function Eo(e) {
2274
2274
  throw new Vt(null, e);
2275
2275
  }
2276
2276
  function Aa(e) {
2277
- return Eo(e), e.headers = Le.from(e.headers), e.data = Co.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Cn.getAdapter(e.adapter || Yo.adapter, e)(e).then(
2277
+ return Eo(e), e.headers = Le.from(e.headers), e.data = Co.call(e, e.transformRequest), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), En.getAdapter(e.adapter || Yo.adapter, e)(e).then(
2278
2278
  function(t) {
2279
2279
  Eo(e), e.response = t;
2280
2280
  try {
@@ -2285,7 +2285,7 @@ function Aa(e) {
2285
2285
  return t.headers = Le.from(t.headers), t;
2286
2286
  },
2287
2287
  function(t) {
2288
- if (!Sn(t) && (Eo(e), t && t.response)) {
2288
+ if (!xn(t) && (Eo(e), t && t.response)) {
2289
2289
  e.response = t.response;
2290
2290
  try {
2291
2291
  t.response.data = Co.call(
@@ -2476,8 +2476,8 @@ class co {
2476
2476
  }
2477
2477
  getUri(t) {
2478
2478
  t = pt(this.defaults, t);
2479
- const o = _n(t.baseURL, t.url, t.allowAbsoluteUrls, t);
2480
- return hn(o, t.params, t.paramsSerializer);
2479
+ const o = On(t.baseURL, t.url, t.allowAbsoluteUrls, t);
2480
+ return wn(o, t.params, t.paramsSerializer);
2481
2481
  }
2482
2482
  }
2483
2483
  g.forEach(["delete", "get", "head", "options"], function(e) {
@@ -2509,7 +2509,7 @@ g.forEach(["post", "put", "patch", "query"], function(e) {
2509
2509
  co.prototype[e] = t(), e !== "query" && (co.prototype[e + "Form"] = t(!0));
2510
2510
  });
2511
2511
  const eo = co;
2512
- let Lr = class En {
2512
+ let Lr = class Tn {
2513
2513
  constructor(t) {
2514
2514
  if (typeof t != "function")
2515
2515
  throw new TypeError("executor must be a function.");
@@ -2576,7 +2576,7 @@ let Lr = class En {
2576
2576
  static source() {
2577
2577
  let t;
2578
2578
  return {
2579
- token: new En(function(o) {
2579
+ token: new Tn(function(o) {
2580
2580
  t = o;
2581
2581
  }),
2582
2582
  cancel: t
@@ -2667,17 +2667,17 @@ Object.entries(Uo).forEach(([e, t]) => {
2667
2667
  Uo[t] = e;
2668
2668
  });
2669
2669
  const jr = Uo;
2670
- function Tn(e) {
2671
- const t = new eo(e), o = sn(eo.prototype.request, t);
2670
+ function In(e) {
2671
+ const t = new eo(e), o = ln(eo.prototype.request, t);
2672
2672
  return g.extend(o, eo.prototype, t, { allOwnKeys: !0 }), g.extend(o, t, null, { allOwnKeys: !0 }), o.create = function(a) {
2673
- return Tn(pt(e, a));
2673
+ return In(pt(e, a));
2674
2674
  }, o;
2675
2675
  }
2676
- const Se = Tn(Yo);
2676
+ const Se = In(Yo);
2677
2677
  Se.Axios = eo;
2678
2678
  Se.CanceledError = Vt;
2679
2679
  Se.CancelToken = Nr;
2680
- Se.isCancel = Sn;
2680
+ Se.isCancel = xn;
2681
2681
  Se.VERSION = Xo;
2682
2682
  Se.toFormData = go;
2683
2683
  Se.AxiosError = te;
@@ -2689,8 +2689,8 @@ Se.spread = Vr;
2689
2689
  Se.isAxiosError = zr;
2690
2690
  Se.mergeConfig = pt;
2691
2691
  Se.AxiosHeaders = Le;
2692
- Se.formToJSON = (e) => kn(g.isHTMLForm(e) ? new FormData(e) : e);
2693
- Se.getAdapter = Cn.getAdapter;
2692
+ Se.formToJSON = (e) => Sn(g.isHTMLForm(e) ? new FormData(e) : e);
2693
+ Se.getAdapter = En.getAdapter;
2694
2694
  Se.HttpStatusCode = jr;
2695
2695
  Se.default = Se;
2696
2696
  const Wr = Se;
@@ -2715,11 +2715,11 @@ function Kr(e) {
2715
2715
  const t = e.filter((o) => o.status === "active").length;
2716
2716
  return { tone: e.some((o) => o.status === "pending") ? "progress" : e.some((o) => o.status === "failed") ? "warning" : "done", active: t, total: e.length };
2717
2717
  }
2718
- function In(e) {
2718
+ function Rn(e) {
2719
2719
  return e.kind ?? "image";
2720
2720
  }
2721
2721
  function it(e) {
2722
- return In(e) === "video";
2722
+ return Rn(e) === "video";
2723
2723
  }
2724
2724
  function Jr(e) {
2725
2725
  return e.hasPoster && e.posterUrl ? e.posterUrl : null;
@@ -2729,7 +2729,7 @@ function to(e) {
2729
2729
  }
2730
2730
  function To(e, t, o) {
2731
2731
  if (t === null)
2732
- return { asset: e, ratio: null, url: e.url, kind: In(e) };
2732
+ return { asset: e, ratio: null, url: e.url, kind: Rn(e) };
2733
2733
  if (it(e))
2734
2734
  return null;
2735
2735
  const a = o.find((n) => n.aspectRatio === t);
@@ -2738,7 +2738,7 @@ function To(e, t, o) {
2738
2738
  function Zr(e) {
2739
2739
  return e >= 1024 * 1024 ? `${(e / 1024 / 1024).toFixed(1)} MB` : `${Math.round(e / 1024)} KB`;
2740
2740
  }
2741
- const Rn = "ai-draft";
2741
+ const An = "ai-draft";
2742
2742
  function Yr() {
2743
2743
  var e;
2744
2744
  const { sessionUser: t, namespace: o, currentCountry: a } = at(), n = (e = t.value) == null ? void 0 : e.token;
@@ -2755,14 +2755,14 @@ async function Xr(e) {
2755
2755
  const { businessId: t, ...o } = e, { data: a } = await st().get(ta(t), { params: o });
2756
2756
  return a;
2757
2757
  }
2758
- async function An(e) {
2758
+ async function Dn(e) {
2759
2759
  const { data: t } = await st().get(`${ta(e)}/tags`, {
2760
- params: { excludeTags: [Rn] }
2760
+ params: { excludeTags: [An] }
2761
2761
  });
2762
2762
  return t;
2763
2763
  }
2764
2764
  async function Qr(e) {
2765
- const { tags: t } = await An(e);
2765
+ const { tags: t } = await Dn(e);
2766
2766
  return t.map((o) => o.tag);
2767
2767
  }
2768
2768
  async function ei(e, t, o) {
@@ -2786,15 +2786,15 @@ async function ai(e, t) {
2786
2786
  const { data: o } = await st().post(`${oa(e)}/confirm`, t);
2787
2787
  return o;
2788
2788
  }
2789
- function Dn(e) {
2789
+ function Bn(e) {
2790
2790
  return `/media-v1/businesses/${e}/videos`;
2791
2791
  }
2792
2792
  async function ni(e, t) {
2793
- const { data: o } = await st().post(`${Dn(e)}/upload-intent`, t);
2793
+ const { data: o } = await st().post(`${Bn(e)}/upload-intent`, t);
2794
2794
  return o;
2795
2795
  }
2796
2796
  async function si(e, t) {
2797
- const { data: o } = await st().post(`${Dn(e)}/confirm`, t);
2797
+ const { data: o } = await st().post(`${Bn(e)}/confirm`, t);
2798
2798
  return o;
2799
2799
  }
2800
2800
  const je = "var(--fm-color-brand-primary, #FF7823)", aa = "#FFF7F0", Ba = "40px 56px minmax(160px, 2.2fr) 110px 90px 150px 120px 40px", Oe = "font-size:11px", Io = "padding:2px 6px", li = "background:#FFFBEB;border-color:#FCD34D", ri = "color:#B45309", ii = {
@@ -3484,14 +3484,14 @@ const je = "var(--fm-color-brand-primary, #FF7823)", aa = "#FFF7F0", Ba = "40px
3484
3484
  "ja-JP": yi,
3485
3485
  "id-ID": mi,
3486
3486
  "fr-MA": ci
3487
- }, Bn = 15e3, Si = 0.92, xi = 0.1;
3487
+ }, $n = 15e3, Si = 0.92, xi = 0.1;
3488
3488
  function _i(e) {
3489
3489
  return new Promise((t) => {
3490
3490
  const o = document.createElement("video");
3491
3491
  let a = !1;
3492
3492
  const n = (l) => {
3493
3493
  a || (a = !0, clearTimeout(s), o.removeAttribute("src"), o.load(), t(l));
3494
- }, s = setTimeout(() => n(null), Bn);
3494
+ }, s = setTimeout(() => n(null), $n);
3495
3495
  o.preload = "metadata", o.muted = !0, o.onloadedmetadata = () => {
3496
3496
  const l = o.videoWidth, i = o.videoHeight, u = o.duration;
3497
3497
  if (!l || !i || !Number.isFinite(u) || u <= 0) {
@@ -3508,7 +3508,7 @@ function Oi(e) {
3508
3508
  let a = !1;
3509
3509
  const n = (i) => {
3510
3510
  a || (a = !0, clearTimeout(s), o.removeAttribute("src"), o.load(), t(i));
3511
- }, s = setTimeout(() => n(null), Bn), l = () => {
3511
+ }, s = setTimeout(() => n(null), $n), l = () => {
3512
3512
  try {
3513
3513
  const i = document.createElement("canvas");
3514
3514
  if (i.width = o.videoWidth, i.height = o.videoHeight, !i.width || !i.height) {
@@ -3539,7 +3539,7 @@ function Oi(e) {
3539
3539
  }, o.onerror = () => n(null), o.src = e;
3540
3540
  });
3541
3541
  }
3542
- function $n(e) {
3542
+ function Mn(e) {
3543
3543
  if (!Number.isFinite(e))
3544
3544
  return "0:00";
3545
3545
  const t = Math.max(0, Math.round(e / 1e3)), o = Math.floor(t / 3600), a = Math.floor(t % 3600 / 60), n = t % 60, s = (l) => String(l).padStart(2, "0");
@@ -3612,7 +3612,7 @@ const Pi = {
3612
3612
  return it(C) ? Jr(C) : C.url;
3613
3613
  }
3614
3614
  function u(C) {
3615
- return it(C) && C.durationMs ? $n(C.durationMs) : null;
3615
+ return it(C) && C.durationMs ? Mn(C.durationMs) : null;
3616
3616
  }
3617
3617
  function c(C) {
3618
3618
  s(C) || R("open", C);
@@ -3884,7 +3884,7 @@ const Pi = {
3884
3884
  class: "text-xs text-fm-color-typo-secondary shrink-0"
3885
3885
  }, sd = /* @__PURE__ */ he({
3886
3886
  __name: "RatioPickerBar",
3887
- props: /* @__PURE__ */ Gn({
3887
+ props: /* @__PURE__ */ Hn({
3888
3888
  facts: {},
3889
3889
  locked: { type: Boolean },
3890
3890
  unavailableRatios: {}
@@ -3894,7 +3894,7 @@ const Pi = {
3894
3894
  }),
3895
3895
  emits: ["update:modelValue"],
3896
3896
  setup(e) {
3897
- const { t } = Pe({ messages: mt }), o = e, a = qn(e, "modelValue");
3897
+ const { t } = Pe({ messages: mt }), o = e, a = Gn(e, "modelValue");
3898
3898
  function n(u) {
3899
3899
  var c;
3900
3900
  o.locked || u !== null && (c = o.unavailableRatios) != null && c.has(u) || (a.value = u);
@@ -4050,7 +4050,7 @@ const pd = { class: "flex flex-wrap items-center gap-8" }, md = {
4050
4050
  style: { width: "88px" },
4051
4051
  onKeyup: Ga(i, ["enter"])
4052
4052
  }, null, 40, fd), [
4053
- [Hn, l.value]
4053
+ [Kn, l.value]
4054
4054
  ]),
4055
4055
  r("button", {
4056
4056
  class: "p-2",
@@ -4065,14 +4065,14 @@ const pd = { class: "flex flex-wrap items-center gap-8" }, md = {
4065
4065
  ]);
4066
4066
  };
4067
4067
  }
4068
- }), Mn = 10 * 1024 * 1024, Fn = 512 * 1024 * 1024, vd = ["image/jpeg", "image/png", "image/webp"], gd = ["video/mp4", "video/quicktime", "video/webm"], Ma = ["image", "video"];
4068
+ }), Fn = 10 * 1024 * 1024, Un = 512 * 1024 * 1024, vd = ["image/jpeg", "image/png", "image/webp"], gd = ["video/mp4", "video/quicktime", "video/webm"], Ma = ["image", "video"];
4069
4069
  function ho(e) {
4070
4070
  return !e || e.length === 0 ? Ma : Ma.filter((t) => e.includes(t));
4071
4071
  }
4072
4072
  function bd(e) {
4073
4073
  return ho(e).includes("image");
4074
4074
  }
4075
- function Un(e) {
4075
+ function Ln(e) {
4076
4076
  return ho(e).includes("video");
4077
4077
  }
4078
4078
  function hd(e) {
@@ -4080,13 +4080,13 @@ function hd(e) {
4080
4080
  return t.includes("image") && o.push(...vd), t.includes("video") && o.push(...gd), o.join(",");
4081
4081
  }
4082
4082
  function wd(e) {
4083
- return Un(e) ? Fn : Mn;
4083
+ return Ln(e) ? Un : Fn;
4084
4084
  }
4085
4085
  function na(e) {
4086
4086
  return e.type.startsWith("video/") ? "video" : "image";
4087
4087
  }
4088
4088
  function kd(e) {
4089
- return na(e) === "video" ? Fn : Mn;
4089
+ return na(e) === "video" ? Un : Fn;
4090
4090
  }
4091
4091
  function Sd(e, t) {
4092
4092
  return ho(t).includes(na(e));
@@ -4111,7 +4111,7 @@ const xd = { class: "space-y-16" }, _d = {
4111
4111
  },
4112
4112
  emits: ["tag-created", "uploaded"],
4113
4113
  setup(e, { expose: t, emit: o }) {
4114
- const { t: a } = Pe({ messages: mt }), n = e, s = o, l = K([]), i = K([]), u = K([]), c = K(!1), m = V(() => l.value.length), h = V(() => n.availableTags.filter((v) => !i.value.includes(v)).slice(0, 6)), R = V(() => l.value.some((v) => v.isVideo)), j = V(() => l.value.some((v) => !v.isVideo)), A = V(() => hd(n.kinds)), D = V(() => wd(n.kinds)), C = V(() => bd(n.kinds)), p = V(() => Un(n.kinds)), k = V(() => p.value ? C.value ? a("mediaPicker.uploadPanel.dropLabel") : a("mediaPicker.uploadPanel.dropLabelVideos") : a("mediaPicker.uploadPanel.dropLabelImages")), N = V(() => p.value ? C.value ? a("mediaPicker.uploadPanel.helperText") : a("mediaPicker.uploadPanel.helperTextVideos") : a("mediaPicker.uploadPanel.helperTextImages"));
4114
+ const { t: a } = Pe({ messages: mt }), n = e, s = o, l = K([]), i = K([]), u = K([]), c = K(!1), m = V(() => l.value.length), h = V(() => n.availableTags.filter((v) => !i.value.includes(v)).slice(0, 6)), R = V(() => l.value.some((v) => v.isVideo)), j = V(() => l.value.some((v) => !v.isVideo)), A = V(() => hd(n.kinds)), D = V(() => wd(n.kinds)), C = V(() => bd(n.kinds)), p = V(() => Ln(n.kinds)), k = V(() => p.value ? C.value ? a("mediaPicker.uploadPanel.dropLabel") : a("mediaPicker.uploadPanel.dropLabelVideos") : a("mediaPicker.uploadPanel.dropLabelImages")), N = V(() => p.value ? C.value ? a("mediaPicker.uploadPanel.helperText") : a("mediaPicker.uploadPanel.helperTextVideos") : a("mediaPicker.uploadPanel.helperTextImages"));
4115
4115
  function P(v) {
4116
4116
  URL.revokeObjectURL(v.previewUrl), v.posterPreviewUrl && URL.revokeObjectURL(v.posterPreviewUrl);
4117
4117
  }
@@ -4152,7 +4152,7 @@ const xd = { class: "space-y-16" }, _d = {
4152
4152
  return v.isVideo && v.probed && v.dimensions === null;
4153
4153
  }
4154
4154
  function le(v) {
4155
- return v.durationMs === null ? null : $n(v.durationMs);
4155
+ return v.durationMs === null ? null : Mn(v.durationMs);
4156
4156
  }
4157
4157
  function Y(v) {
4158
4158
  const y = l.value.find((W) => W.id === v);
@@ -4372,7 +4372,7 @@ function Ud(e) {
4372
4372
  }
4373
4373
  await l();
4374
4374
  }
4375
- return Wn(s), { byRefId: t, load: i, stop: s };
4375
+ return qn(s), { byRefId: t, load: i, stop: s };
4376
4376
  }
4377
4377
  const Ld = { class: "w-full flex items-center justify-between gap-16 pr-8" }, Nd = { class: "text-xs font-normal text-fm-color-typo-secondary" }, Vd = { class: "relative" }, zd = {
4378
4378
  key: 0,
@@ -4386,7 +4386,7 @@ const Ld = { class: "w-full flex items-center justify-between gap-16 pr-8" }, Nd
4386
4386
  }, Gd = { class: "flex items-center justify-between w-full" }, Hd = {
4387
4387
  key: 0,
4388
4388
  class: "text-xs text-fm-color-typo-secondary"
4389
- }, Kd = { key: 1 }, Jd = { class: "flex gap-8" }, Ln = /* @__PURE__ */ he({
4389
+ }, Kd = { key: 1 }, Jd = { class: "flex gap-8" }, Nn = /* @__PURE__ */ he({
4390
4390
  __name: "MediaPickerModal",
4391
4391
  props: {
4392
4392
  open: { type: Boolean },
@@ -4414,7 +4414,7 @@ const Ld = { class: "w-full flex items-center justify-between gap-16 pr-8" }, Nd
4414
4414
  try {
4415
4415
  const v = await Xr({
4416
4416
  // Never offer an unconfirmed AI draft as a pickable image.
4417
- excludeTags: [Rn],
4417
+ excludeTags: [An],
4418
4418
  businessId: a.businessId,
4419
4419
  restaurantId: a.restaurantId,
4420
4420
  search: i.value || void 0,
@@ -4435,7 +4435,7 @@ const Ld = { class: "w-full flex items-center justify-between gap-16 pr-8" }, Nd
4435
4435
  async function C() {
4436
4436
  if (!a.businessId)
4437
4437
  return;
4438
- const [v, y] = await Promise.all([An(a.businessId), Qr(a.businessId)]);
4438
+ const [v, y] = await Promise.all([Dn(a.businessId), Qr(a.businessId)]);
4439
4439
  h.value = v.tags, R.value = v.total, j.value = y;
4440
4440
  }
4441
4441
  be(
@@ -4666,7 +4666,11 @@ const Ld = { class: "w-full flex items-center justify-between gap-16 pr-8" }, Nd
4666
4666
  function sa(e) {
4667
4667
  return e === "prod" ? "https://api.feedme.vip" : "https://api.feedmedev.vip";
4668
4668
  }
4669
- async function Zd(e, t, o) {
4669
+ function Zd() {
4670
+ const e = Za.getIdToken();
4671
+ return e ? { Authorization: `Bearer ${e}` } : {};
4672
+ }
4673
+ async function Yd(e, t, o) {
4670
4674
  var a;
4671
4675
  try {
4672
4676
  return (await so.get(
@@ -4683,25 +4687,26 @@ async function la(e, t) {
4683
4687
  `${sa(t)}/metadata/${encodeURIComponent(e)}/brandkit`
4684
4688
  )).data;
4685
4689
  }
4686
- async function Yd(e, t, o) {
4690
+ async function Xd(e, t, o) {
4687
4691
  const a = await la(e, o);
4688
4692
  await so.post(
4689
4693
  `${sa(o)}/metadata/${encodeURIComponent(e)}/brandkit`,
4690
- { ...a, ods: t }
4694
+ { ...a, ods: t },
4695
+ { headers: Zd() }
4691
4696
  );
4692
4697
  }
4693
- const Xd = "feedme-display-preview";
4698
+ const Qd = "feedme-display-preview";
4694
4699
  function Fa(e) {
4695
4700
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
4696
4701
  }
4697
- function Qd(e, t, o) {
4702
+ function eu(e, t, o) {
4698
4703
  const a = new URL(".", t).href, n = [
4699
4704
  `<base href="${Fa(a)}">`,
4700
- `<meta name="${Xd}" content="${Fa(o)}">`
4705
+ `<meta name="${Qd}" content="${Fa(o)}">`
4701
4706
  ].join(""), s = /<head(?:\s[^>]*)?>/i;
4702
4707
  return s.test(e) ? e.replace(s, (l) => `${l}${n}`) : `${n}${e}`;
4703
4708
  }
4704
- const eu = {
4709
+ const tu = {
4705
4710
  preparing: [
4706
4711
  { id: "pickup-a12", code: "A12", slot: "A12", source: "POS", departments: ["FOOD"] },
4707
4712
  { id: "pickup-a13", code: "A13", slot: "A13", source: "POS", departments: ["DRINKS"] },
@@ -4716,7 +4721,7 @@ const eu = {
4716
4721
  ],
4717
4722
  stats: { orders: 8, food: 6, drinks: 2 },
4718
4723
  waitingTimeMinutes: 8
4719
- }, tu = {
4724
+ }, ou = {
4720
4725
  groups: [
4721
4726
  {
4722
4727
  id: "pax-1-2",
@@ -4760,13 +4765,13 @@ const eu = {
4760
4765
  }
4761
4766
  ]
4762
4767
  };
4763
- function ou(e) {
4768
+ function au(e) {
4764
4769
  const { orientation: t, schemaVersion: o, theme: a, scale: n, hideFooter: s, root: l } = e;
4765
4770
  return JSON.parse(
4766
4771
  JSON.stringify({ orientation: t, schemaVersion: o, theme: a, scale: n, hideFooter: s, root: l })
4767
4772
  );
4768
4773
  }
4769
- function au(e = {}, t = {}) {
4774
+ function nu(e = {}, t = {}) {
4770
4775
  return {
4771
4776
  ...e,
4772
4777
  ...t,
@@ -4776,31 +4781,31 @@ function au(e = {}, t = {}) {
4776
4781
  status: { ...e.status, ...t.status }
4777
4782
  };
4778
4783
  }
4779
- function nu(e, t) {
4784
+ function su(e, t) {
4780
4785
  var s, l, i, u;
4781
4786
  if (!(e != null && e.colors)) return;
4782
4787
  const o = (s = e.ods) == null ? void 0 : s.find((c) => {
4783
4788
  var m;
4784
4789
  return (m = c.restaurantIds) == null ? void 0 : m.includes(t);
4785
4790
  }), a = (l = e.ods) == null ? void 0 : l.find((c) => c.isDefault), n = ((i = o == null ? void 0 : o.brandkitOverride) == null ? void 0 : i.colors) ?? ((u = a == null ? void 0 : a.brandkitOverride) == null ? void 0 : u.colors);
4786
- return { colors: au(e.colors, n) };
4791
+ return { colors: nu(e.colors, n) };
4787
4792
  }
4788
- function su(e, t, o = "1", a = {}) {
4789
- const n = (/* @__PURE__ */ new Date()).toISOString(), s = tn(e), l = [];
4793
+ function lu(e, t, o = "1", a = {}) {
4794
+ const n = (/* @__PURE__ */ new Date()).toISOString(), s = on(e), l = [];
4790
4795
  return s.includes("PICKUP") && l.push({
4791
4796
  v: 1,
4792
4797
  type: "SERVER_MESSAGE_TYPE_SNAPSHOT",
4793
4798
  ts: n,
4794
4799
  topic: "TOPIC_PICKUP",
4795
4800
  revision: o,
4796
- pickup: eu
4801
+ pickup: tu
4797
4802
  }), s.includes("QUEUE") && l.push({
4798
4803
  v: 1,
4799
4804
  type: "SERVER_MESSAGE_TYPE_SNAPSHOT",
4800
4805
  ts: n,
4801
4806
  topic: "TOPIC_QUEUE",
4802
4807
  revision: o,
4803
- queue: tu
4808
+ queue: ou
4804
4809
  }), {
4805
4810
  source: "feedme-display-editor",
4806
4811
  type: "snapshot",
@@ -4816,7 +4821,7 @@ function su(e, t, o = "1", a = {}) {
4816
4821
  name: "Portal preview",
4817
4822
  filter: e.filter,
4818
4823
  licensed: !0,
4819
- config: ou(e)
4824
+ config: au(e)
4820
4825
  }
4821
4826
  },
4822
4827
  {
@@ -4829,7 +4834,7 @@ function su(e, t, o = "1", a = {}) {
4829
4834
  restaurantId: a.restaurantId ?? "portal-preview",
4830
4835
  businessId: a.businessId ?? "portal-preview",
4831
4836
  name: a.name ?? "FeedMe Demo",
4832
- brandKit: nu(
4837
+ brandKit: su(
4833
4838
  a.brandKit,
4834
4839
  a.restaurantId ?? "portal-preview"
4835
4840
  )
@@ -4839,13 +4844,13 @@ function su(e, t, o = "1", a = {}) {
4839
4844
  ]
4840
4845
  };
4841
4846
  }
4842
- const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
4847
+ const ru = { class: "preview-frame" }, iu = ["srcdoc", "title"], du = {
4843
4848
  key: 1,
4844
4849
  class: "preview-status"
4845
- }, du = {
4850
+ }, uu = {
4846
4851
  key: 1,
4847
4852
  class: "preview-loading"
4848
- }, uu = /* @__PURE__ */ he({
4853
+ }, cu = /* @__PURE__ */ he({
4849
4854
  __name: "DisplayPreview",
4850
4855
  props: {
4851
4856
  config: {},
@@ -4874,7 +4879,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
4874
4879
  var M;
4875
4880
  const P = (M = a.value) == null ? void 0 : M.contentWindow;
4876
4881
  !n.value || !P || (u += 1, P.postMessage(
4877
- su(t.config, R.value, String(u), t.restaurant),
4882
+ lu(t.config, R.value, String(u), t.restaurant),
4878
4883
  j
4879
4884
  ));
4880
4885
  }
@@ -4889,7 +4894,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
4889
4894
  try {
4890
4895
  const P = await fetch(R.value, { signal: m.signal });
4891
4896
  if (!P.ok) throw new Error(`Display preview returned HTTP ${P.status}`);
4892
- i.value = Qd(
4897
+ i.value = eu(
4893
4898
  await P.text(),
4894
4899
  R.value,
4895
4900
  j
@@ -4911,7 +4916,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
4911
4916
  { deep: !0, flush: "post" }
4912
4917
  ), (P, M) => {
4913
4918
  const q = ae("FmButton");
4914
- return f(), b("div", lu, [
4919
+ return f(), b("div", ru, [
4915
4920
  i.value ? (f(), b("iframe", {
4916
4921
  key: l.value,
4917
4922
  ref_key: "frame",
@@ -4921,15 +4926,15 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
4921
4926
  title: d(o)("order.displaySystem.configEditor.livePreview"),
4922
4927
  sandbox: "allow-scripts allow-same-origin",
4923
4928
  referrerpolicy: "no-referrer"
4924
- }, null, 8, ru)) : z("", !0),
4925
- n.value ? z("", !0) : (f(), b("div", iu, [
4929
+ }, null, 8, iu)) : z("", !0),
4930
+ n.value ? z("", !0) : (f(), b("div", du, [
4926
4931
  s.value ? (f(), b(ie, { key: 0 }, [
4927
4932
  r("p", null, w(d(o)("order.displaySystem.configEditor.previewUnavailable")), 1),
4928
4933
  B(q, {
4929
4934
  label: d(o)("order.displaySystem.configEditor.previewRetry"),
4930
4935
  onClick: N
4931
4936
  }, null, 8, ["label"])
4932
- ], 64)) : (f(), b("div", du, [
4937
+ ], 64)) : (f(), b("div", uu, [
4933
4938
  M[0] || (M[0] = r("span", { "aria-hidden": "true" }, null, -1)),
4934
4939
  r("p", null, w(d(o)("order.displaySystem.configEditor.previewLoading")), 1)
4935
4940
  ]))
@@ -4937,7 +4942,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
4937
4942
  ]);
4938
4943
  };
4939
4944
  }
4940
- }), cu = /* @__PURE__ */ We(uu, [["__scopeId", "data-v-bd8d2976"]]), pu = { class: "canvas-area-head" }, mu = { class: "canvas-area-name" }, fu = { class: "canvas-area-share" }, yu = ["title"], vu = { class: "canvas-chips" }, gu = { class: "canvas-chip-label" }, bu = ["title"], hu = ["title", "onClick"], wu = /* @__PURE__ */ he({
4945
+ }), pu = /* @__PURE__ */ We(cu, [["__scopeId", "data-v-bd8d2976"]]), mu = { class: "canvas-area-head" }, fu = { class: "canvas-area-name" }, yu = { class: "canvas-area-share" }, vu = ["title"], gu = { class: "canvas-chips" }, bu = { class: "canvas-chip-label" }, hu = ["title"], wu = ["title", "onClick"], ku = /* @__PURE__ */ he({
4941
4946
  __name: "CanvasArea",
4942
4947
  props: {
4943
4948
  zone: {},
@@ -4984,9 +4989,9 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
4984
4989
  "canvas-area-drop-over": e.dropZoneId === e.zone.id
4985
4990
  }])
4986
4991
  }, [
4987
- r("header", pu, [
4988
- r("span", mu, w(d(a)("order.displaySystem.editor.ui.area", { index: e.areaNumber })), 1),
4989
- r("span", fu, w(e.percent) + "%", 1),
4992
+ r("header", mu, [
4993
+ r("span", fu, w(d(a)("order.displaySystem.editor.ui.area", { index: e.areaNumber })), 1),
4994
+ r("span", yu, w(e.percent) + "%", 1),
4990
4995
  e.removable ? (f(), b("button", {
4991
4996
  key: 0,
4992
4997
  type: "button",
@@ -4998,9 +5003,9 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
4998
5003
  name: "close",
4999
5004
  size: "sm"
5000
5005
  })
5001
- ], 8, yu)) : z("", !0)
5006
+ ], 8, vu)) : z("", !0)
5002
5007
  ]),
5003
- r("div", vu, [
5008
+ r("div", gu, [
5004
5009
  e.zone.block ? (f(), b("div", {
5005
5010
  key: 0,
5006
5011
  class: me(["canvas-chip", {
@@ -5022,7 +5027,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5022
5027
  name: s(e.zone.block.type),
5023
5028
  size: "sm"
5024
5029
  }, null, 8, ["name"]),
5025
- r("span", gu, w(n(e.zone.block.type)), 1),
5030
+ r("span", bu, w(n(e.zone.block.type)), 1),
5026
5031
  r("button", {
5027
5032
  type: "button",
5028
5033
  class: "canvas-chip-swap",
@@ -5033,7 +5038,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5033
5038
  name: "sync_alt",
5034
5039
  size: "sm"
5035
5040
  })
5036
- ], 8, bu)
5041
+ ], 8, hu)
5037
5042
  ], 34)) : (f(), b("button", {
5038
5043
  key: 1,
5039
5044
  type: "button",
@@ -5055,11 +5060,11 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5055
5060
  name: "add",
5056
5061
  size: "sm"
5057
5062
  })
5058
- ], 10, hu))), 128))
5063
+ ], 10, wu))), 128))
5059
5064
  ], 36);
5060
5065
  };
5061
5066
  }
5062
- }), Ua = /* @__PURE__ */ We(wu, [["__scopeId", "data-v-cdd742c6"]]), ku = ["onPointerdown"], Su = ["onPointerdown"], xu = /* @__PURE__ */ he({
5067
+ }), Ua = /* @__PURE__ */ We(ku, [["__scopeId", "data-v-cdd742c6"]]), Su = ["onPointerdown"], xu = ["onPointerdown"], _u = /* @__PURE__ */ he({
5063
5068
  __name: "DisplayLayoutCanvas",
5064
5069
  props: {
5065
5070
  root: {},
@@ -5166,7 +5171,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5166
5171
  onPointercancel: Y
5167
5172
  }, [...$[8] || ($[8] = [
5168
5173
  r("span", { class: "canvas-divider-grip" }, null, -1)
5169
- ])], 46, ku)) : z("", !0),
5174
+ ])], 46, Su)) : z("", !0),
5170
5175
  O.zone ? (f(), re(Ua, {
5171
5176
  key: 1,
5172
5177
  zone: O.zone,
@@ -5215,7 +5220,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5215
5220
  onPointercancel: Y
5216
5221
  }, [...$[9] || ($[9] = [
5217
5222
  r("span", { class: "canvas-divider-grip" }, null, -1)
5218
- ])], 46, Su)) : z("", !0),
5223
+ ])], 46, xu)) : z("", !0),
5219
5224
  B(Ua, {
5220
5225
  zone: y,
5221
5226
  "area-number": i.value.get(y.id) ?? W + 1,
@@ -5246,7 +5251,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5246
5251
  }), 128))
5247
5252
  ], 2));
5248
5253
  }
5249
- }), _u = /* @__PURE__ */ We(xu, [["__scopeId", "data-v-eb790981"]]), Ou = { class: "module-picker" }, Pu = { class: "module-picker-hint" }, Cu = { class: "module-picker-group-label" }, Eu = { class: "module-picker-grid" }, Tu = ["onClick"], Iu = { class: "module-picker-icon" }, Ru = { class: "module-picker-label" }, Au = /* @__PURE__ */ he({
5254
+ }), Ou = /* @__PURE__ */ We(_u, [["__scopeId", "data-v-eb790981"]]), Pu = { class: "module-picker" }, Cu = { class: "module-picker-hint" }, Eu = { class: "module-picker-group-label" }, Tu = { class: "module-picker-grid" }, Iu = ["onClick"], Ru = { class: "module-picker-icon" }, Au = { class: "module-picker-label" }, Du = /* @__PURE__ */ he({
5250
5255
  __name: "DisplayModulePickerDialog",
5251
5256
  setup(e) {
5252
5257
  const { t } = Pe(), { emitData: o, emitAction: a } = ss(), n = ["pickup", "queue", "media", "info"], s = V(
@@ -5261,43 +5266,43 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5261
5266
  }
5262
5267
  return (i, u) => {
5263
5268
  const c = ae("FmIcon");
5264
- return f(), b("div", Ou, [
5265
- r("p", Pu, w(d(t)("order.displaySystem.editor.ui.pickModuleHint")), 1),
5269
+ return f(), b("div", Pu, [
5270
+ r("p", Cu, w(d(t)("order.displaySystem.editor.ui.pickModuleHint")), 1),
5266
5271
  (f(!0), b(ie, null, ve(s.value, (m) => (f(), b("section", {
5267
5272
  key: m.group,
5268
5273
  class: "module-picker-group"
5269
5274
  }, [
5270
- r("h4", Cu, w(m.label), 1),
5271
- r("div", Eu, [
5275
+ r("h4", Eu, w(m.label), 1),
5276
+ r("div", Tu, [
5272
5277
  (f(!0), b(ie, null, ve(m.items, (h) => (f(), b("button", {
5273
5278
  key: h.type,
5274
5279
  type: "button",
5275
5280
  class: "module-picker-card",
5276
5281
  onClick: (R) => l(h.type)
5277
5282
  }, [
5278
- r("span", Iu, [
5283
+ r("span", Ru, [
5279
5284
  B(c, {
5280
5285
  name: h.editor.icon,
5281
5286
  size: "sm"
5282
5287
  }, null, 8, ["name"])
5283
5288
  ]),
5284
- r("span", Ru, w(d(t)(h.editor.labelKey)), 1)
5285
- ], 8, Tu))), 128))
5289
+ r("span", Au, w(d(t)(h.editor.labelKey)), 1)
5290
+ ], 8, Iu))), 128))
5286
5291
  ])
5287
5292
  ]))), 128))
5288
5293
  ]);
5289
5294
  };
5290
5295
  }
5291
- }), Du = /* @__PURE__ */ We(Au, [["__scopeId", "data-v-2892f182"]]), Bu = {
5296
+ }), Bu = /* @__PURE__ */ We(Du, [["__scopeId", "data-v-2892f182"]]), $u = {
5292
5297
  key: 4,
5293
5298
  class: "media-field"
5294
- }, $u = { class: "media-label" }, Mu = ["src"], Fu = { class: "media-actions" }, Uu = {
5299
+ }, Mu = { class: "media-label" }, Fu = ["src"], Uu = { class: "media-actions" }, Lu = {
5295
5300
  key: 5,
5296
5301
  class: "media-field"
5297
- }, Lu = { class: "media-label" }, Nu = ["src"], Vu = {
5302
+ }, Nu = { class: "media-label" }, Vu = ["src"], zu = {
5298
5303
  key: 1,
5299
5304
  class: "media-empty"
5300
- }, zu = { class: "media-actions" }, ju = /* @__PURE__ */ he({
5305
+ }, ju = { class: "media-actions" }, Wu = /* @__PURE__ */ he({
5301
5306
  __name: "DisplayFieldControl",
5302
5307
  props: {
5303
5308
  field: {},
@@ -5345,19 +5350,19 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5345
5350
  max: e.field.max,
5346
5351
  step: e.field.step ?? 1,
5347
5352
  "onUpdate:modelValue": h[3] || (h[3] = (p) => a("update", p))
5348
- }, null, 8, ["model-value", "label", "min", "max", "step"])) : e.field.control === "video" ? (f(), b("div", Bu, [
5349
- r("span", $u, w(d(n)(e.field.labelKey)), 1),
5353
+ }, null, 8, ["model-value", "label", "min", "max", "step"])) : e.field.control === "video" ? (f(), b("div", $u, [
5354
+ r("span", Mu, w(d(n)(e.field.labelKey)), 1),
5350
5355
  e.imageIsUsable(u.value) ? (f(), b("img", {
5351
5356
  key: 0,
5352
5357
  class: "media-thumb",
5353
5358
  src: u.value,
5354
5359
  alt: "",
5355
5360
  onError: h[4] || (h[4] = (p) => a("image-error", u.value))
5356
- }, null, 40, Mu)) : (f(), b("span", {
5361
+ }, null, 40, Fu)) : (f(), b("span", {
5357
5362
  key: 1,
5358
5363
  class: me(i.value ? "media-warning" : "media-empty")
5359
5364
  }, w(i.value ? d(n)("order.displaySystem.editor.ui.videoUndecodable") : d(n)("order.displaySystem.editor.ui.noVideo")), 3)),
5360
- r("div", Fu, [
5365
+ r("div", Uu, [
5361
5366
  B(D, {
5362
5367
  variant: "secondary",
5363
5368
  label: i.value ? d(n)("order.displaySystem.editor.ui.replaceVideo") : d(n)("order.displaySystem.editor.ui.chooseVideo"),
@@ -5371,16 +5376,16 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5371
5376
  onClick: h[6] || (h[6] = (p) => a("clear-image"))
5372
5377
  }, null, 8, ["label"])) : z("", !0)
5373
5378
  ])
5374
- ])) : e.field.control === "image" ? (f(), b("div", Uu, [
5375
- r("span", Lu, w(d(n)(e.field.labelKey)), 1),
5379
+ ])) : e.field.control === "image" ? (f(), b("div", Lu, [
5380
+ r("span", Nu, w(d(n)(e.field.labelKey)), 1),
5376
5381
  e.imageIsUsable(i.value) ? (f(), b("img", {
5377
5382
  key: 0,
5378
5383
  class: "media-thumb",
5379
5384
  src: i.value,
5380
5385
  alt: "",
5381
5386
  onError: h[7] || (h[7] = (p) => a("image-error", i.value))
5382
- }, null, 40, Nu)) : (f(), b("span", Vu, w(d(n)("order.displaySystem.editor.ui.noImage")), 1)),
5383
- r("div", zu, [
5387
+ }, null, 40, Vu)) : (f(), b("span", zu, w(d(n)("order.displaySystem.editor.ui.noImage")), 1)),
5388
+ r("div", ju, [
5384
5389
  B(D, {
5385
5390
  variant: "secondary",
5386
5391
  label: i.value ? d(n)("order.displaySystem.editor.ui.replaceImage") : d(n)("order.displaySystem.editor.ui.chooseImage"),
@@ -5402,25 +5407,25 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5402
5407
  }, null, 8, ["model-value", "label"]));
5403
5408
  };
5404
5409
  }
5405
- }), La = /* @__PURE__ */ We(ju, [["__scopeId", "data-v-839ff846"]]), Wu = { class: "inspector" }, qu = { class: "inspector-breadcrumb" }, Gu = {
5410
+ }), La = /* @__PURE__ */ We(Wu, [["__scopeId", "data-v-839ff846"]]), qu = { class: "inspector" }, Gu = { class: "inspector-breadcrumb" }, Hu = {
5406
5411
  key: 0,
5407
5412
  class: "inspector-warning"
5408
- }, Hu = { class: "media-field" }, Ku = { class: "media-label" }, Ju = ["src"], Zu = {
5413
+ }, Ku = { class: "media-field" }, Ju = { class: "media-label" }, Zu = ["src"], Yu = {
5409
5414
  key: 1,
5410
5415
  class: "media-empty"
5411
- }, Yu = { class: "media-actions" }, Xu = {
5416
+ }, Xu = { class: "media-actions" }, Qu = {
5412
5417
  key: 0,
5413
5418
  class: "inspector-section"
5414
- }, Qu = { class: "inspector-section-title" }, ec = {
5419
+ }, ec = { class: "inspector-section-title" }, tc = {
5415
5420
  key: 0,
5416
5421
  class: "inspector-list"
5417
- }, tc = { class: "inspector-list-head" }, oc = { class: "media-label" }, ac = { class: "inspector-list-count" }, nc = { class: "inspector-item-head" }, sc = { class: "inspector-item-name" }, lc = ["disabled", "title", "onClick"], rc = ["disabled", "title", "onClick"], ic = ["disabled", "title", "onClick"], dc = { class: "inspector-list-add" }, uc = {
5422
+ }, oc = { class: "inspector-list-head" }, ac = { class: "media-label" }, nc = { class: "inspector-list-count" }, sc = { class: "inspector-item-head" }, lc = { class: "inspector-item-name" }, rc = ["disabled", "title", "onClick"], ic = ["disabled", "title", "onClick"], dc = ["disabled", "title", "onClick"], uc = { class: "inspector-list-add" }, cc = {
5418
5423
  key: 1,
5419
5424
  class: "inspector-section"
5420
- }, cc = { class: "inspector-section-title" }, pc = {
5425
+ }, pc = { class: "inspector-section-title" }, mc = {
5421
5426
  key: 2,
5422
5427
  class: "inspector-note"
5423
- }, mc = /* @__PURE__ */ he({
5428
+ }, fc = /* @__PURE__ */ he({
5424
5429
  __name: "DisplayInspector",
5425
5430
  props: {
5426
5431
  scope: {},
@@ -5471,14 +5476,14 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5471
5476
  return (p, k) => {
5472
5477
  var le, Y, F, T, $, O;
5473
5478
  const N = ae("FmTabs"), P = ae("FmIcon"), M = ae("FmStepperField"), q = ae("FmButton"), U = ae("FmSwitch");
5474
- return f(), b("aside", Wu, [
5479
+ return f(), b("aside", qu, [
5475
5480
  B(N, {
5476
5481
  class: "inspector-scope",
5477
5482
  "model-value": e.scope,
5478
5483
  items: m.value,
5479
5484
  "onUpdate:modelValue": k[0] || (k[0] = (x) => a("update:scope", x))
5480
5485
  }, null, 8, ["model-value", "items"]),
5481
- r("p", qu, [
5486
+ r("p", Gu, [
5482
5487
  Ie(w(d(n)("order.displaySystem.editor.ui.area", { index: e.areaIndex })) + " ", 1),
5483
5488
  e.scope === "module" && e.block ? (f(), b(ie, { key: 0 }, [
5484
5489
  B(P, {
@@ -5489,7 +5494,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5489
5494
  ], 64)) : z("", !0)
5490
5495
  ]),
5491
5496
  e.scope === "area" ? (f(), b(ie, { key: 0 }, [
5492
- e.tooSmallFor ? (f(), b("p", Gu, [
5497
+ e.tooSmallFor ? (f(), b("p", Hu, [
5493
5498
  B(P, {
5494
5499
  name: "warning",
5495
5500
  size: "sm"
@@ -5506,8 +5511,8 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5506
5511
  "append-text": "%",
5507
5512
  "onUpdate:modelValue": k[1] || (k[1] = (x) => a("set-padding", x ?? 0))
5508
5513
  }, null, 8, ["model-value", "label"])) : z("", !0),
5509
- r("div", Hu, [
5510
- r("span", Ku, w(d(n)("order.displaySystem.editor.ui.background")), 1),
5514
+ r("div", Ku, [
5515
+ r("span", Ju, w(d(n)("order.displaySystem.editor.ui.background")), 1),
5511
5516
  e.imageIsUsable(((Y = (le = e.zone) == null ? void 0 : le.background) == null ? void 0 : Y.url) ?? "") ? (f(), b("img", {
5512
5517
  key: 0,
5513
5518
  class: "media-thumb",
@@ -5517,8 +5522,8 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5517
5522
  var v, y;
5518
5523
  return a("image-error", ((y = (v = e.zone) == null ? void 0 : v.background) == null ? void 0 : y.url) ?? "");
5519
5524
  })
5520
- }, null, 40, Ju)) : (f(), b("span", Zu, w(d(n)("order.displaySystem.editor.ui.noImage")), 1)),
5521
- r("div", Yu, [
5525
+ }, null, 40, Zu)) : (f(), b("span", Yu, w(d(n)("order.displaySystem.editor.ui.noImage")), 1)),
5526
+ r("div", Xu, [
5522
5527
  B(q, {
5523
5528
  variant: "secondary",
5524
5529
  label: (T = (F = e.zone) == null ? void 0 : F.background) != null && T.url ? d(n)("order.displaySystem.editor.ui.replaceImage") : d(n)("order.displaySystem.editor.ui.chooseImage"),
@@ -5534,17 +5539,17 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5534
5539
  ])
5535
5540
  ])
5536
5541
  ], 64)) : e.block && s.value ? (f(), b(ie, { key: 1 }, [
5537
- u.value.length ? (f(), b("section", Xu, [
5538
- r("h4", Qu, w(d(n)("order.displaySystem.editor.ui.sectionContent")), 1),
5542
+ u.value.length ? (f(), b("section", Qu, [
5543
+ r("h4", ec, w(d(n)("order.displaySystem.editor.ui.sectionContent")), 1),
5539
5544
  (f(!0), b(ie, null, ve(u.value, (x) => {
5540
5545
  var v;
5541
5546
  return f(), b(ie, {
5542
5547
  key: x.path
5543
5548
  }, [
5544
- x.control === "list" ? (f(), b("div", ec, [
5545
- r("div", tc, [
5546
- r("span", oc, w(d(n)(x.labelKey)), 1),
5547
- r("span", ac, w(R(x).length), 1)
5549
+ x.control === "list" ? (f(), b("div", tc, [
5550
+ r("div", oc, [
5551
+ r("span", ac, w(d(n)(x.labelKey)), 1),
5552
+ r("span", nc, w(R(x).length), 1)
5548
5553
  ]),
5549
5554
  (f(!0), b(ie, null, ve(R(x), (y, W) => {
5550
5555
  var oe, G;
@@ -5552,8 +5557,8 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5552
5557
  key: W,
5553
5558
  class: "inspector-item"
5554
5559
  }, [
5555
- r("header", nc, [
5556
- r("span", sc, w(j(x, y) ? d(n)(j(x, y).labelKey) : String(y[((oe = x.item) == null ? void 0 : oe.discriminator) ?? "kind"] ?? "")) + " · " + w(W + 1), 1),
5560
+ r("header", sc, [
5561
+ r("span", lc, w(j(x, y) ? d(n)(j(x, y).labelKey) : String(y[((oe = x.item) == null ? void 0 : oe.discriminator) ?? "kind"] ?? "")) + " · " + w(W + 1), 1),
5557
5562
  r("button", {
5558
5563
  type: "button",
5559
5564
  class: "inspector-item-action",
@@ -5565,7 +5570,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5565
5570
  name: "arrow_upward",
5566
5571
  size: "sm"
5567
5572
  })
5568
- ], 8, lc),
5573
+ ], 8, rc),
5569
5574
  r("button", {
5570
5575
  type: "button",
5571
5576
  class: "inspector-item-action",
@@ -5577,7 +5582,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5577
5582
  name: "arrow_downward",
5578
5583
  size: "sm"
5579
5584
  })
5580
- ], 8, rc),
5585
+ ], 8, ic),
5581
5586
  r("button", {
5582
5587
  type: "button",
5583
5588
  class: "inspector-item-action",
@@ -5589,7 +5594,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5589
5594
  name: "delete",
5590
5595
  size: "sm"
5591
5596
  })
5592
- ], 8, ic)
5597
+ ], 8, dc)
5593
5598
  ]),
5594
5599
  (f(!0), b(ie, null, ve(((G = j(x, y)) == null ? void 0 : G.fields) ?? [], (J) => (f(), re(La, {
5595
5600
  key: J.path,
@@ -5608,7 +5613,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5608
5613
  }, null, 8, ["field", "value", "media-enabled", "image-is-usable", "onUpdate", "onPickMedia", "onClearImage"]))), 128))
5609
5614
  ]);
5610
5615
  }), 128)),
5611
- r("div", dc, [
5616
+ r("div", uc, [
5612
5617
  (f(!0), b(ie, null, ve(((v = x.item) == null ? void 0 : v.variants) ?? [], (y) => (f(), re(q, {
5613
5618
  key: y.value,
5614
5619
  variant: "secondary",
@@ -5637,8 +5642,8 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5637
5642
  ], 64);
5638
5643
  }), 128))
5639
5644
  ])) : z("", !0),
5640
- c.value.length ? (f(), b("section", uc, [
5641
- r("h4", cc, w(d(n)("order.displaySystem.editor.ui.sectionAnnounce")), 1),
5645
+ c.value.length ? (f(), b("section", cc, [
5646
+ r("h4", pc, w(d(n)("order.displaySystem.editor.ui.sectionAnnounce")), 1),
5642
5647
  (f(!0), b(ie, null, ve(c.value, (x) => (f(), re(U, {
5643
5648
  key: x.path,
5644
5649
  "model-value": l.value[x.path] === !0,
@@ -5653,23 +5658,23 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5653
5658
  label: d(n)("order.displaySystem.editor.ui.removeModule"),
5654
5659
  onClick: k[7] || (k[7] = (x) => a("remove-module"))
5655
5660
  }, null, 8, ["label"])
5656
- ], 64)) : (f(), b("p", pc, w(d(n)("order.displaySystem.editor.ui.inspectorEmpty")), 1))
5661
+ ], 64)) : (f(), b("p", mc, w(d(n)("order.displaySystem.editor.ui.inspectorEmpty")), 1))
5657
5662
  ]);
5658
5663
  };
5659
5664
  }
5660
- }), fc = /* @__PURE__ */ We(mc, [["__scopeId", "data-v-4cc442cf"]]), yc = {
5665
+ }), yc = /* @__PURE__ */ We(fc, [["__scopeId", "data-v-4cc442cf"]]), vc = {
5661
5666
  key: 0,
5662
5667
  class: "fixed inset-0 z-[60] bg-black/40 p-12"
5663
- }, vc = { class: "mx-auto flex h-[calc(100vh-1.5rem)] max-w-[1600px] flex-col overflow-hidden rounded-xl bg-white shadow-xl" }, gc = { class: "editor-head" }, bc = { class: "editor-identity" }, hc = { class: "editor-name" }, wc = { class: "editor-orientation" }, kc = { class: "flex gap-8" }, Sc = {
5668
+ }, gc = { class: "mx-auto flex h-[calc(100vh-1.5rem)] max-w-[1600px] flex-col overflow-hidden rounded-xl bg-white shadow-xl" }, bc = { class: "editor-head" }, hc = { class: "editor-identity" }, wc = { class: "editor-name" }, kc = { class: "editor-orientation" }, Sc = { class: "flex gap-8" }, xc = {
5664
5669
  key: 0,
5665
5670
  class: "editor-error"
5666
- }, xc = { class: "editor-body" }, _c = { class: "editor-rail" }, Oc = { class: "rail-scale" }, Pc = { class: "rail-scale-label" }, Cc = { class: "rail-scale-hint" }, Ec = {
5671
+ }, _c = { class: "editor-body" }, Oc = { class: "editor-rail" }, Pc = { class: "rail-scale" }, Cc = { class: "rail-scale-label" }, Ec = { class: "rail-scale-hint" }, Tc = {
5667
5672
  key: 0,
5668
5673
  class: "rail-scale-warning"
5669
- }, Tc = { class: "editor-stage" }, Ic = { class: "layout-bar" }, Rc = { class: "layout-bar-title" }, Ac = { class: "layout-title" }, Dc = { class: "layout-hint" }, Bc = { class: "layout-actions" }, $c = {
5674
+ }, Ic = { class: "editor-stage" }, Rc = { class: "layout-bar" }, Ac = { class: "layout-bar-title" }, Dc = { class: "layout-title" }, Bc = { class: "layout-hint" }, $c = { class: "layout-actions" }, Mc = {
5670
5675
  key: 0,
5671
5676
  class: "preset-row"
5672
- }, Mc = ["onClick"], Fc = { class: "preset-label" }, Uc = { class: "stage-preview" }, Lc = { class: "preview-frame" }, Na = 50, Va = 150, Ro = 5, Nc = /* @__PURE__ */ he({
5677
+ }, Fc = ["onClick"], Uc = { class: "preset-label" }, Lc = { class: "stage-preview" }, Nc = { class: "preview-frame" }, Na = 50, Va = 150, Ro = 5, Vc = /* @__PURE__ */ he({
5673
5678
  __name: "DisplayTemplateEditor",
5674
5679
  props: {
5675
5680
  modelValue: { type: Boolean },
@@ -5680,7 +5685,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5680
5685
  },
5681
5686
  emits: ["update:modelValue", "save"],
5682
5687
  setup(e, { emit: t }) {
5683
- const o = e, a = t, { t: n } = Pe(), { currentBusiness: s, currentCountry: l, namespace: i, restaurants: u } = at(), c = Za(), m = K(Zt()), h = K(), R = K(""), j = K(""), A = K("module"), D = K(!1), C = K(""), p = K(!1), k = K(!1), N = K(!1), P = K({ kind: "background" }), M = K(/* @__PURE__ */ new Set());
5688
+ const o = e, a = t, { t: n } = Pe(), { currentBusiness: s, currentCountry: l, namespace: i, restaurants: u } = at(), c = Ya(), m = K(Zt()), h = K(), R = K(""), j = K(""), A = K("module"), D = K(!1), C = K(""), p = K(!1), k = K(!1), N = K(!1), P = K({ kind: "background" }), M = K(/* @__PURE__ */ new Set());
5684
5689
  let q = 0;
5685
5690
  const U = V(() => {
5686
5691
  var I;
@@ -5741,7 +5746,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5741
5746
  const I = ++q, E = o.previewRestaurantId;
5742
5747
  if (h.value = void 0, !!E)
5743
5748
  try {
5744
- const X = await Zd(
5749
+ const X = await Yd(
5745
5750
  E,
5746
5751
  String(l.value || "MY"),
5747
5752
  i.value
@@ -5754,7 +5759,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5754
5759
  be(
5755
5760
  () => o.modelValue,
5756
5761
  (I) => {
5757
- I && (m.value = o.template ? Qa(o.template) : Zt("pickup"), D.value = !o.template, J(), C.value = "", ne());
5762
+ I && (m.value = o.template ? en(o.template) : Zt("pickup"), D.value = !o.template, J(), C.value = "", ne());
5758
5763
  }
5759
5764
  ), be(
5760
5765
  () => [o.previewRestaurantId, l.value, i.value],
@@ -5802,10 +5807,10 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5802
5807
  function pe(I) {
5803
5808
  c.open({
5804
5809
  title: n("order.displaySystem.editor.ui.pickModuleTitle"),
5805
- contentComponent: Du,
5810
+ contentComponent: Bu,
5806
5811
  zIndex: 70
5807
5812
  }).onPrimary((E) => {
5808
- c.close(), Kn(() => we(E, I));
5813
+ c.close(), Jn(() => we(E, I));
5809
5814
  });
5810
5815
  }
5811
5816
  function ke(I) {
@@ -5826,7 +5831,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5826
5831
  E && ws(E.children, I.index, I.ratio);
5827
5832
  }
5828
5833
  function ze(I) {
5829
- const E = nn(m.value, I);
5834
+ const E = sn(m.value, I);
5830
5835
  E && (ye(E), pe(E));
5831
5836
  }
5832
5837
  function Ye(I) {
@@ -5854,7 +5859,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5854
5859
  }).onPrimary(X);
5855
5860
  }
5856
5861
  function L() {
5857
- W.value && an(W.value, oe.value ? "ROW" : "COLUMN");
5862
+ W.value && nn(W.value, oe.value ? "ROW" : "COLUMN");
5858
5863
  }
5859
5864
  function H() {
5860
5865
  const I = F.value;
@@ -5987,18 +5992,18 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
5987
5992
  var Ae;
5988
5993
  const X = ae("FmTextField"), _ = ae("FmSelect"), S = ae("FmButton"), Q = ae("FmStepperField"), ue = ae("FmSwitch"), _e = ae("FmTooltip");
5989
5994
  return f(), re(No, { to: "body" }, [
5990
- e.modelValue ? (f(), b("div", yc, [
5991
- r("section", vc, [
5992
- r("header", gc, [
5993
- r("div", bc, [
5994
- r("div", hc, [
5995
+ e.modelValue ? (f(), b("div", vc, [
5996
+ r("section", gc, [
5997
+ r("header", bc, [
5998
+ r("div", hc, [
5999
+ r("div", wc, [
5995
6000
  B(X, {
5996
6001
  modelValue: m.value.label,
5997
6002
  "onUpdate:modelValue": E[0] || (E[0] = (fe) => m.value.label = fe),
5998
6003
  placeholder: d(n)("order.displaySystem.editor.ui.templateName")
5999
6004
  }, null, 8, ["modelValue", "placeholder"])
6000
6005
  ]),
6001
- r("div", wc, [
6006
+ r("div", kc, [
6002
6007
  B(_, {
6003
6008
  modelValue: m.value.orientation,
6004
6009
  "onUpdate:modelValue": E[1] || (E[1] = (fe) => m.value.orientation = fe),
@@ -6006,7 +6011,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
6006
6011
  }, null, 8, ["modelValue", "items"])
6007
6012
  ])
6008
6013
  ]),
6009
- r("div", kc, [
6014
+ r("div", Sc, [
6010
6015
  B(S, {
6011
6016
  variant: "secondary",
6012
6017
  label: d(n)("order.displaySystem.common.cancel"),
@@ -6019,11 +6024,11 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
6019
6024
  }, null, 8, ["label", "disabled"])
6020
6025
  ])
6021
6026
  ]),
6022
- C.value ? (f(), b("p", Sc, w(C.value), 1)) : z("", !0),
6023
- r("div", xc, [
6024
- r("aside", _c, [
6025
- r("div", Oc, [
6026
- r("span", Pc, w(d(n)("order.displaySystem.editor.ui.uiScale")), 1),
6027
+ C.value ? (f(), b("p", xc, w(C.value), 1)) : z("", !0),
6028
+ r("div", _c, [
6029
+ r("aside", Oc, [
6030
+ r("div", Pc, [
6031
+ r("span", Cc, w(d(n)("order.displaySystem.editor.ui.uiScale")), 1),
6027
6032
  B(Q, {
6028
6033
  "model-value": Pt.value,
6029
6034
  min: Na,
@@ -6032,23 +6037,23 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
6032
6037
  "append-text": "%",
6033
6038
  "onUpdate:modelValue": Ct
6034
6039
  }, null, 8, ["model-value"]),
6035
- r("p", Cc, w(d(n)("order.displaySystem.editor.ui.uiScaleHint")), 1),
6040
+ r("p", Ec, w(d(n)("order.displaySystem.editor.ui.uiScaleHint")), 1),
6036
6041
  B(ue, {
6037
6042
  "model-value": m.value.hideFooter === !0,
6038
6043
  label: d(n)("order.displaySystem.editor.ui.hideFooter"),
6039
6044
  "label-placement": "right",
6040
6045
  "onUpdate:modelValue": lt
6041
6046
  }, null, 8, ["model-value", "label"]),
6042
- yt.value ? (f(), b("p", Ec, w(yt.value), 1)) : z("", !0)
6047
+ yt.value ? (f(), b("p", Tc, w(yt.value), 1)) : z("", !0)
6043
6048
  ])
6044
6049
  ]),
6045
- r("main", Tc, [
6046
- r("div", Ic, [
6047
- r("div", Rc, [
6048
- r("h3", Ac, w(d(n)("order.displaySystem.editor.ui.layoutTitle")), 1),
6049
- r("p", Dc, w(d(n)("order.displaySystem.editor.ui.layoutHint")), 1)
6050
+ r("main", Ic, [
6051
+ r("div", Rc, [
6052
+ r("div", Ac, [
6053
+ r("h3", Dc, w(d(n)("order.displaySystem.editor.ui.layoutTitle")), 1),
6054
+ r("p", Bc, w(d(n)("order.displaySystem.editor.ui.layoutHint")), 1)
6050
6055
  ]),
6051
- r("div", Bc, [
6056
+ r("div", $c, [
6052
6057
  B(S, {
6053
6058
  variant: "secondary",
6054
6059
  "prepend-icon": "add",
@@ -6081,7 +6086,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
6081
6086
  }, null, 8, ["label"])
6082
6087
  ])
6083
6088
  ]),
6084
- D.value ? (f(), b("div", $c, [
6089
+ D.value ? (f(), b("div", Mc, [
6085
6090
  (f(), b(ie, null, ve(x, (fe) => r("button", {
6086
6091
  key: fe.key,
6087
6092
  type: "button",
@@ -6097,15 +6102,15 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
6097
6102
  style: de({ flexGrow: ot })
6098
6103
  }, null, 4))), 128))
6099
6104
  ], 2),
6100
- r("span", Fc, w(d(n)(`order.displaySystem.editor.ui.${fe.labelKey}`)), 1)
6101
- ], 8, Mc)), 64))
6105
+ r("span", Uc, w(d(n)(`order.displaySystem.editor.ui.${fe.labelKey}`)), 1)
6106
+ ], 8, Fc)), 64))
6102
6107
  ])) : z("", !0),
6103
- r("section", Uc, [
6108
+ r("section", Lc, [
6104
6109
  r("div", {
6105
6110
  class: me(["preview-box", m.value.orientation === "PORTRAIT" ? "preview-portrait" : "preview-landscape"])
6106
6111
  }, [
6107
- r("div", Lc, [
6108
- B(cu, {
6112
+ r("div", Nc, [
6113
+ B(pu, {
6109
6114
  config: m.value,
6110
6115
  restaurant: le.value
6111
6116
  }, null, 8, ["config", "restaurant"])
@@ -6114,7 +6119,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
6114
6119
  class: me(["preview-edit-overlay", { "preview-edit-overlay-active": p.value || k.value }]),
6115
6120
  style: de({ bottom: `${y.value}%` })
6116
6121
  }, [
6117
- B(_u, {
6122
+ B(Ou, {
6118
6123
  root: m.value.root,
6119
6124
  "selected-zone-id": ((Ae = F.value) == null ? void 0 : Ae.id) ?? "",
6120
6125
  "selected-block-id": j.value,
@@ -6138,7 +6143,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
6138
6143
  ], 2)
6139
6144
  ])
6140
6145
  ]),
6141
- B(fc, {
6146
+ B(yc, {
6142
6147
  class: "editor-inspector",
6143
6148
  scope: A.value,
6144
6149
  zone: F.value,
@@ -6161,7 +6166,7 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
6161
6166
  }, null, 8, ["scope", "zone", "area-index", "block", "too-small-for", "media-enabled"])
6162
6167
  ])
6163
6168
  ]),
6164
- B(d(Ln), {
6169
+ B(d(Nn), {
6165
6170
  open: N.value,
6166
6171
  "onUpdate:open": E[10] || (E[10] = (fe) => N.value = fe),
6167
6172
  "z-index": 70,
@@ -6174,10 +6179,10 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
6174
6179
  ]);
6175
6180
  };
6176
6181
  }
6177
- }), Vc = /* @__PURE__ */ We(Nc, [["__scopeId", "data-v-a673333e"]]), zc = { class: "layout-zone-index" }, jc = { class: "layout-zone-blocks" }, Wc = {
6182
+ }), zc = /* @__PURE__ */ We(Vc, [["__scopeId", "data-v-a673333e"]]), jc = { class: "layout-zone-index" }, Wc = { class: "layout-zone-blocks" }, qc = {
6178
6183
  key: 0,
6179
6184
  class: "layout-zone-chip"
6180
- }, qc = { class: "truncate" }, Gc = /* @__PURE__ */ he({
6185
+ }, Gc = { class: "truncate" }, Hc = /* @__PURE__ */ he({
6181
6186
  __name: "DisplayLayoutMap",
6182
6187
  props: {
6183
6188
  node: {},
@@ -6217,14 +6222,14 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
6217
6222
  class: me(["layout-zone", { "layout-zone-selected": c(e.node) }]),
6218
6223
  onClick: h[0] || (h[0] = Ve((A) => a("select", e.node.id), ["stop"]))
6219
6224
  }, [
6220
- r("span", zc, w(d(n)("order.displaySystem.editor.ui.area", { index: e.startIndex ?? 1 })), 1),
6221
- r("span", jc, [
6222
- e.node.block ? (f(), b("span", Wc, [
6225
+ r("span", jc, w(d(n)("order.displaySystem.editor.ui.area", { index: e.startIndex ?? 1 })), 1),
6226
+ r("span", Wc, [
6227
+ e.node.block ? (f(), b("span", qc, [
6223
6228
  B(R, {
6224
6229
  name: u(e.node.block.type),
6225
6230
  size: "sm"
6226
6231
  }, null, 8, ["name"]),
6227
- r("span", qc, w(i(e.node.block.type)), 1)
6232
+ r("span", Gc, w(i(e.node.block.type)), 1)
6228
6233
  ])) : z("", !0)
6229
6234
  ])
6230
6235
  ], 2)) : (f(), b("div", {
@@ -6242,14 +6247,14 @@ const lu = { class: "preview-frame" }, ru = ["srcdoc", "title"], iu = {
6242
6247
  ], 2));
6243
6248
  };
6244
6249
  }
6245
- }), Hc = /* @__PURE__ */ We(Gc, [["__scopeId", "data-v-5595b416"]]), Kc = (e) => ({ action: e, subject: Ya.Subject.Business.miniProgram_brandkit });
6246
- function Jc() {
6250
+ }), Kc = /* @__PURE__ */ We(Hc, [["__scopeId", "data-v-5595b416"]]), Jc = (e) => ({ action: e, subject: Xa.Subject.Business.miniProgram_brandkit });
6251
+ function Zc() {
6247
6252
  const e = at();
6248
6253
  return { canManageBrandkit: V(
6249
6254
  () => {
6250
6255
  var o;
6251
6256
  return is(
6252
- [Kc(Ya.Action.manage)],
6257
+ [Jc(Xa.Action.manage)],
6253
6258
  ((o = e.sessionUser.value) == null ? void 0 : o.permissions) ?? []
6254
6259
  ).granted;
6255
6260
  }
@@ -6259,11 +6264,11 @@ function po(e) {
6259
6264
  return e ? parseInt(e.split(".")[0]) >= 8 : !1;
6260
6265
  }
6261
6266
  const Lo = (e) => !!e.posVersion && !po(e.posVersion);
6262
- function Zc(e) {
6267
+ function Yc(e) {
6263
6268
  const t = e.canManageOrderSetting ? ["v8"] : [];
6264
6269
  return e.canManageBrandkit && (e.outlets.some(Lo) || e.hasLegacyOdsConfigs) && t.push("v7"), t;
6265
6270
  }
6266
- function Yc(e, t, o) {
6271
+ function Xc(e, t, o) {
6267
6272
  if (e.length < 2) return e[0];
6268
6273
  const a = t.filter((s) => s.posVersion);
6269
6274
  if (a.length && a.every(Lo)) return "v7";
@@ -6271,11 +6276,11 @@ function Yc(e, t, o) {
6271
6276
  const n = t.find((s) => s._id === o);
6272
6277
  return n && Lo(n) ? "v7" : "v8";
6273
6278
  }
6274
- function Xc(e) {
6279
+ function Qc(e) {
6275
6280
  if (e.view === "v7" || e.tab === "legacy-ods") return "v7";
6276
6281
  if (e.view === "v8") return "v8";
6277
6282
  }
6278
- function Qc(e, t) {
6283
+ function ep(e, t) {
6279
6284
  if (!e) return [];
6280
6285
  if (Array.isArray(e)) return e;
6281
6286
  const o = e, a = { label: t, isDefault: !0 };
@@ -6284,7 +6289,7 @@ function Qc(e, t) {
6284
6289
  function Ut(e, t, o) {
6285
6290
  return Math.max(t, Math.min(e, o));
6286
6291
  }
6287
- function ep(e, t) {
6292
+ function tp(e, t) {
6288
6293
  if (typeof e == "string" || typeof t == "string")
6289
6294
  return e === t;
6290
6295
  for (const o in e)
@@ -6305,7 +6310,7 @@ function qt(e) {
6305
6310
  a: t[3]
6306
6311
  };
6307
6312
  }
6308
- function Nn(e) {
6313
+ function Vn(e) {
6309
6314
  const t = e.l / 100, o = t + e.s / 100 * Math.min(t, 1 - t), a = o === 0 ? 0 : 200 * (1 - t / o);
6310
6315
  return {
6311
6316
  h: e.h,
@@ -6329,7 +6334,7 @@ function Ao(e, t, o, a) {
6329
6334
  const n = (e + t / 30) % 12, s = o * Math.min(a, 1 - a);
6330
6335
  return a - s * Math.max(-1, Math.min(n - 3, 9 - n, 1));
6331
6336
  }
6332
- function Vn(e) {
6337
+ function zn(e) {
6333
6338
  const t = e.s / 100, o = e.v / 100, a = o * (1 - t / 2);
6334
6339
  return {
6335
6340
  h: e.h,
@@ -6338,7 +6343,7 @@ function Vn(e) {
6338
6343
  a: e.a
6339
6344
  };
6340
6345
  }
6341
- function zn(e) {
6346
+ function jn(e) {
6342
6347
  return {
6343
6348
  h: e.h,
6344
6349
  w: e.v * (100 - e.s) / 100,
@@ -6347,7 +6352,7 @@ function zn(e) {
6347
6352
  };
6348
6353
  }
6349
6354
  function It(e) {
6350
- return oo(Vn(e));
6355
+ return oo(zn(e));
6351
6356
  }
6352
6357
  function ht(e) {
6353
6358
  const t = e.w / 100, o = e.b / 100;
@@ -6376,9 +6381,9 @@ function Gt(e) {
6376
6381
  return "#" + Object.values(e).map((t, o) => Math.round(o === 3 ? t * 255 : t).toString(16).padStart(2, "0")).join("");
6377
6382
  }
6378
6383
  function Rt(e) {
6379
- return zn(Nn(ao(e)));
6384
+ return jn(Vn(ao(e)));
6380
6385
  }
6381
- const tp = {
6386
+ const op = {
6382
6387
  hex: {
6383
6388
  hex: (e) => e,
6384
6389
  hsl: (e) => ao(qt(e)),
@@ -6389,15 +6394,15 @@ const tp = {
6389
6394
  hsl: {
6390
6395
  hex: (e) => Gt(oo(e)),
6391
6396
  hsl: (e) => e,
6392
- hsv: Nn,
6397
+ hsv: Vn,
6393
6398
  hwb: (e) => Rt(oo(e)),
6394
6399
  rgb: oo
6395
6400
  },
6396
6401
  hsv: {
6397
6402
  hex: (e) => Gt(It(e)),
6398
- hsl: Vn,
6403
+ hsl: zn,
6399
6404
  hsv: (e) => e,
6400
- hwb: zn,
6405
+ hwb: jn,
6401
6406
  rgb: It
6402
6407
  },
6403
6408
  hwb: {
@@ -6415,14 +6420,14 @@ const tp = {
6415
6420
  rgb: (e) => e
6416
6421
  }
6417
6422
  };
6418
- function op(e, t, o) {
6419
- return tp[e][t](o);
6423
+ function ap(e, t, o) {
6424
+ return op[e][t](o);
6420
6425
  }
6421
- function ap(e, t) {
6426
+ function np(e, t) {
6422
6427
  const o = e.toFixed(t);
6423
6428
  return o.includes(".") ? o.replace(/\.?0+$/, "") : o;
6424
6429
  }
6425
- const np = {
6430
+ const sp = {
6426
6431
  deg: 1,
6427
6432
  grad: 0.9,
6428
6433
  rad: 180 / Math.PI,
@@ -6440,7 +6445,7 @@ const np = {
6440
6445
  if (t === null)
6441
6446
  return tt.from(e);
6442
6447
  const o = t[0];
6443
- return tt.from(e.slice(0, -o.length)) * np[o];
6448
+ return tt.from(e.slice(0, -o.length)) * sp[o];
6444
6449
  },
6445
6450
  to(e) {
6446
6451
  return tt.to(e);
@@ -6450,7 +6455,7 @@ const np = {
6450
6455
  return e.endsWith(".") ? NaN : Ut(Number(e), t, o);
6451
6456
  },
6452
6457
  to(e) {
6453
- return ap(e, 2);
6458
+ return np(e, 2);
6454
6459
  }
6455
6460
  }, kt = {
6456
6461
  from(e, { referenceValue: t = 100, min: o = 0, max: a = 100 } = {}) {
@@ -6466,7 +6471,7 @@ const np = {
6466
6471
  to(e) {
6467
6472
  return tt.to(e);
6468
6473
  }
6469
- }, sp = {
6474
+ }, lp = {
6470
6475
  hsl: {
6471
6476
  h: za,
6472
6477
  s: kt,
@@ -6484,7 +6489,7 @@ const np = {
6484
6489
  }
6485
6490
  };
6486
6491
  function fo(e, t) {
6487
- return sp[e][t];
6492
+ return lp[e][t];
6488
6493
  }
6489
6494
  function Bo({ format: e, color: t }, o) {
6490
6495
  if (e === "hex")
@@ -6495,10 +6500,10 @@ function Bo({ format: e, color: t }, o) {
6495
6500
  });
6496
6501
  return `${e}(${a.join(" ")})`;
6497
6502
  }
6498
- function jn(e) {
6503
+ function Wn(e) {
6499
6504
  return /^#(?:(?:[A-F0-9]{2}){3,4}|[A-F0-9]{3,4})$/i.test(e);
6500
6505
  }
6501
- function lp(e) {
6506
+ function rp(e) {
6502
6507
  return "r" in e ? "rgb" : "w" in e ? "hwb" : "v" in e ? "hsv" : "s" in e ? "hsl" : null;
6503
6508
  }
6504
6509
  const ja = {
@@ -6506,13 +6511,13 @@ const ja = {
6506
6511
  hwb: ["h", "w", "b", "a"],
6507
6512
  rgb: ["r", "g", "b", "a"]
6508
6513
  };
6509
- function rp(e) {
6514
+ function ip(e) {
6510
6515
  if (typeof e != "string") {
6511
- const i = lp(e);
6516
+ const i = rp(e);
6512
6517
  return i === null ? null : { format: i, color: e };
6513
6518
  }
6514
6519
  if (e.startsWith("#"))
6515
- return jn(e) ? { format: "hex", color: e } : null;
6520
+ return Wn(e) ? { format: "hex", color: e } : null;
6516
6521
  if (!e.includes("(")) {
6517
6522
  const i = document.createElement("canvas").getContext("2d");
6518
6523
  i.fillStyle = e;
@@ -6533,14 +6538,14 @@ function rp(e) {
6533
6538
  }));
6534
6539
  return { format: a, color: l };
6535
6540
  }
6536
- function ip(e, t, o) {
6541
+ function dp(e, t, o) {
6537
6542
  const a = e.getBoundingClientRect(), n = t - a.left, s = o - a.top;
6538
6543
  return {
6539
6544
  x: a.width === 0 ? 0 : Ut(n / a.width * 100, 0, 100),
6540
6545
  y: a.height === 0 ? 0 : Ut((1 - s / a.height) * 100, 0, 100)
6541
6546
  };
6542
6547
  }
6543
- const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vacp-range-input-label-text vacp-range-input-label-text--hue" }, pp = ["id", "value"], mp = ["for"], fp = { class: "vacp-range-input-label-text vacp-range-input-label-text--alpha" }, yp = ["id", "value"], vp = { class: "vacp-actions" }, gp = { class: "vacp-color-inputs" }, bp = { class: "vacp-color-input-group" }, hp = ["for"], wp = ["id", "value"], kp = ["id", "for", "onInput"], Sp = { class: "vacp-color-input-label-text" }, xp = ["id", "value", "onInput"], _p = /* @__PURE__ */ he({
6548
+ const up = { class: "vacp-range-input-group" }, cp = ["for"], pp = { class: "vacp-range-input-label-text vacp-range-input-label-text--hue" }, mp = ["id", "value"], fp = ["for"], yp = { class: "vacp-range-input-label-text vacp-range-input-label-text--alpha" }, vp = ["id", "value"], gp = { class: "vacp-actions" }, bp = { class: "vacp-color-inputs" }, hp = { class: "vacp-color-input-group" }, wp = ["for"], kp = ["id", "value"], Sp = ["id", "for", "onInput"], xp = { class: "vacp-color-input-label-text" }, _p = ["id", "value", "onInput"], Op = /* @__PURE__ */ he({
6544
6549
  __name: "ColorPicker",
6545
6550
  props: {
6546
6551
  color: { default: "#ffffffff" },
@@ -6557,9 +6562,9 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6557
6562
  copyColor: F,
6558
6563
  switchFormat: j
6559
6564
  });
6560
- const l = Jn("colorSpaceRef");
6565
+ const l = Zn("colorSpaceRef");
6561
6566
  let i = !1;
6562
- const u = K(n.visibleFormats.includes(n.defaultFormat) ? n.defaultFormat : n.visibleFormats[0]), c = Zn({
6567
+ const u = K(n.visibleFormats.includes(n.defaultFormat) ? n.defaultFormat : n.visibleFormats[0]), c = Yn({
6563
6568
  hex: "#ffffffff",
6564
6569
  hsl: { h: 0, s: 0, l: 100, a: 1 },
6565
6570
  hsv: { h: 0, s: 0, v: 100, a: 1 },
@@ -6613,7 +6618,7 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6613
6618
  N(l.value, x.clientX, x.clientY);
6614
6619
  }
6615
6620
  function N(O, x, v) {
6616
- const y = ip(O, x, v), W = Object.assign({}, c.hsv);
6621
+ const y = dp(O, x, v), W = Object.assign({}, c.hsv);
6617
6622
  W.s = y.x, W.v = y.y, Y("hsv", W);
6618
6623
  }
6619
6624
  function P(O) {
@@ -6624,7 +6629,7 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6624
6629
  oe[v] = Ut(W, 0, 100), Y("hsv", oe);
6625
6630
  }
6626
6631
  function M(O) {
6627
- const x = rp(O);
6632
+ const x = ip(O);
6628
6633
  x !== null && Y(x.format, x.color);
6629
6634
  }
6630
6635
  function q(O, x) {
@@ -6633,7 +6638,7 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6633
6638
  }
6634
6639
  function U(O) {
6635
6640
  const x = O.target;
6636
- jn(x.value) && Y("hex", x.value);
6641
+ Wn(x.value) && Y("hex", x.value);
6637
6642
  }
6638
6643
  function le(O, x) {
6639
6644
  const v = O.target, y = u.value, W = Object.assign({}, c[y]), oe = (x === "a" ? mo : fo(y, x)).from(v.value);
@@ -6648,10 +6653,10 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6648
6653
  const y = (x.length - 1) / 4;
6649
6654
  v = x.substring(0, x.length - y) + "f".repeat(y);
6650
6655
  } else [4, 7].includes(x.length) && (v = x + "f".repeat((x.length - 1) / 3));
6651
- if (!ep(c[O], v)) {
6656
+ if (!tp(c[O], v)) {
6652
6657
  c[O] = v;
6653
6658
  for (const y of a)
6654
- y !== O && (c[y] = op(O, y, v));
6659
+ y !== O && (c[y] = ap(O, y, v));
6655
6660
  s("color-change", T());
6656
6661
  }
6657
6662
  }
@@ -6692,12 +6697,12 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6692
6697
  onKeydown: P
6693
6698
  }, null, 36)
6694
6699
  ], 36),
6695
- r("div", dp, [
6700
+ r("div", up, [
6696
6701
  r("label", {
6697
6702
  class: "vacp-range-input-label vacp-range-input-label--hue",
6698
6703
  for: `${O.id}-hue-slider`
6699
6704
  }, [
6700
- r("span", cp, [
6705
+ r("span", pp, [
6701
6706
  Et(O.$slots, "hue-range-input-label", {}, () => [
6702
6707
  x[2] || (x[2] = Ie("Hue", -1))
6703
6708
  ])
@@ -6712,14 +6717,14 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6712
6717
  step: "1",
6713
6718
  onKeydownPassive: $,
6714
6719
  onInput: x[0] || (x[0] = (v) => q(v, "h"))
6715
- }, null, 40, pp)
6716
- ], 8, up),
6720
+ }, null, 40, mp)
6721
+ ], 8, cp),
6717
6722
  O.alphaChannel === "show" ? (f(), b("label", {
6718
6723
  key: 0,
6719
6724
  class: "vacp-range-input-label vacp-range-input-label--alpha",
6720
6725
  for: `${O.id}-alpha-slider`
6721
6726
  }, [
6722
- r("span", fp, [
6727
+ r("span", yp, [
6723
6728
  Et(O.$slots, "alpha-range-input-label", {}, () => [
6724
6729
  x[3] || (x[3] = Ie("Alpha", -1))
6725
6730
  ])
@@ -6734,10 +6739,10 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6734
6739
  step: "0.01",
6735
6740
  onKeydownPassive: $,
6736
6741
  onInput: x[1] || (x[1] = (v) => q(v, "a"))
6737
- }, null, 40, yp)
6738
- ], 8, mp)) : z("", !0)
6742
+ }, null, 40, vp)
6743
+ ], 8, fp)) : z("", !0)
6739
6744
  ]),
6740
- r("div", vp, [
6745
+ r("div", gp, [
6741
6746
  r("button", {
6742
6747
  class: "vacp-copy-button",
6743
6748
  type: "button",
@@ -6762,8 +6767,8 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6762
6767
  ]),
6763
6768
  Et(O.$slots, "actions")
6764
6769
  ]),
6765
- r("div", gp, [
6766
- r("div", bp, [
6770
+ r("div", bp, [
6771
+ r("div", hp, [
6767
6772
  u.value === "hex" ? (f(), b("label", {
6768
6773
  key: 0,
6769
6774
  class: "vacp-color-input-label",
@@ -6776,23 +6781,23 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6776
6781
  type: "text",
6777
6782
  value: h.value,
6778
6783
  onInput: U
6779
- }, null, 40, wp)
6780
- ], 8, hp)) : (f(!0), b(ie, { key: 1 }, ve(m.value, ({ value: v, channel: y, label: W }) => (f(), b("label", {
6784
+ }, null, 40, kp)
6785
+ ], 8, wp)) : (f(!0), b(ie, { key: 1 }, ve(m.value, ({ value: v, channel: y, label: W }) => (f(), b("label", {
6781
6786
  id: `${O.id}-color-${u.value}-${y}-label`,
6782
6787
  key: `${O.id}-color-${u.value}-${y}-label`,
6783
6788
  class: "vacp-color-input-label",
6784
6789
  for: `${O.id}-color-${u.value}-${y}`,
6785
6790
  onInput: (oe) => le(oe, y)
6786
6791
  }, [
6787
- r("span", Sp, w(W), 1),
6792
+ r("span", xp, w(W), 1),
6788
6793
  r("input", {
6789
6794
  id: `${O.id}-color-${u.value}-${y}`,
6790
6795
  class: "vacp-color-input",
6791
6796
  type: "text",
6792
6797
  value: v,
6793
6798
  onInput: (oe) => le(oe, y)
6794
- }, null, 40, xp)
6795
- ], 40, kp))), 128))
6799
+ }, null, 40, _p)
6800
+ ], 40, Sp))), 128))
6796
6801
  ]),
6797
6802
  O.visibleFormats.length > 1 ? (f(), b("button", {
6798
6803
  key: 0,
@@ -6819,10 +6824,10 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6819
6824
  ])
6820
6825
  ], 4));
6821
6826
  }
6822
- }), Op = { class: "fm-typo-en-body-md-400" }, Pp = { class: "flex gap-8 items-center" }, Cp = { class: "p-4 relative" }, Ep = { class: "shadow-lg rounded-lg p-8" }, Tp = {
6827
+ }), Pp = { class: "fm-typo-en-body-md-400" }, Cp = { class: "flex gap-8 items-center" }, Ep = { class: "p-4 relative" }, Tp = { class: "shadow-lg rounded-lg p-8" }, Ip = {
6823
6828
  key: 0,
6824
6829
  class: "absolute top-8 right-8"
6825
- }, Ip = { class: "space-y-4" }, Rp = { class: "text-fm-color-typo-secondary" }, Ap = { class: "text-fm-color-typo-secondary px-4" }, Dp = /* @__PURE__ */ he({
6830
+ }, Rp = { class: "space-y-4" }, Ap = { class: "text-fm-color-typo-secondary" }, Dp = { class: "text-fm-color-typo-secondary px-4" }, Bp = /* @__PURE__ */ he({
6826
6831
  __name: "ColorSelection",
6827
6832
  props: {
6828
6833
  initialColor: {},
@@ -6836,9 +6841,9 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6836
6841
  }, a = t;
6837
6842
  return (n, s) => {
6838
6843
  const l = ae("FmButton"), i = ae("FmPopover"), u = ae("FmIcon");
6839
- return f(), b("div", Op, [
6840
- r("div", Pp, [
6841
- r("div", Cp, [
6844
+ return f(), b("div", Pp, [
6845
+ r("div", Cp, [
6846
+ r("div", Ep, [
6842
6847
  B(i, null, {
6843
6848
  "popover-button": $e(() => [
6844
6849
  r("div", {
@@ -6849,8 +6854,8 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6849
6854
  }, null, 4)
6850
6855
  ]),
6851
6856
  default: $e(() => [
6852
- r("div", Ep, [
6853
- B(d(_p), {
6857
+ r("div", Tp, [
6858
+ B(d(Op), {
6854
6859
  copy: o,
6855
6860
  onColorCopy: s[0] || (s[0] = (c) => o(c.cssColor)),
6856
6861
  "default-format": "hex",
@@ -6870,7 +6875,7 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6870
6875
  ]),
6871
6876
  _: 1
6872
6877
  }),
6873
- e.initialColor != e.color ? (f(), b("div", Tp, [
6878
+ e.initialColor != e.color ? (f(), b("div", Ip, [
6874
6879
  r("div", {
6875
6880
  onClick: s[2] || (s[2] = (c) => a("remove")),
6876
6881
  class: "h-16 w-16 rounded-full bg-fm-color-neutral-white flex items-center justify-center cursor-pointer"
@@ -6882,16 +6887,16 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6882
6887
  ])
6883
6888
  ])) : z("", !0)
6884
6889
  ]),
6885
- r("div", Ip, [
6890
+ r("div", Rp, [
6886
6891
  r("div", null, w(e.title), 1),
6887
- r("div", Rp, w(e.description), 1)
6892
+ r("div", Ap, w(e.description), 1)
6888
6893
  ])
6889
6894
  ]),
6890
- r("div", Ap, w(e.color), 1)
6895
+ r("div", Dp, w(e.color), 1)
6891
6896
  ]);
6892
6897
  };
6893
6898
  }
6894
- }), Bp = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, $p = { class: "space-y-16 max-h-[70vh] overflow-y-auto" }, Mp = { class: "flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, Fp = { class: "flex flex-col gap-4" }, Up = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Lp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Np = { class: "w-full flex justify-end gap-8" }, Vp = /* @__PURE__ */ he({
6899
+ }), $p = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Mp = { class: "space-y-16 max-h-[70vh] overflow-y-auto" }, Fp = { class: "flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, Up = { class: "flex flex-col gap-4" }, Lp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Np = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Vp = { class: "w-full flex justify-end gap-8" }, zp = /* @__PURE__ */ he({
6895
6900
  __name: "ColorOverrideDialog",
6896
6901
  props: {
6897
6902
  modelValue: { type: Boolean },
@@ -6991,10 +6996,10 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
6991
6996
  "max-width": 720
6992
6997
  }, {
6993
6998
  "dialog-header": $e(() => [
6994
- r("div", Bp, w(e.title), 1)
6999
+ r("div", $p, w(e.title), 1)
6995
7000
  ]),
6996
7001
  "dialog-footer": $e(() => [
6997
- r("div", Np, [
7002
+ r("div", Vp, [
6998
7003
  B(le, {
6999
7004
  variant: "secondary",
7000
7005
  label: d(n)("order.displaySystem.legacyOds.close"),
@@ -7007,15 +7012,15 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
7007
7012
  ])
7008
7013
  ]),
7009
7014
  default: $e(() => [
7010
- r("div", $p, [
7015
+ r("div", Mp, [
7011
7016
  (f(!0), b(ie, null, ve(e.colorFields, (F) => (f(), b("div", {
7012
7017
  key: F.key,
7013
7018
  class: "border border-fm-color-neutral-gray-100 rounded-lg overflow-hidden"
7014
7019
  }, [
7015
- r("div", Mp, [
7016
- r("div", Fp, [
7017
- r("div", Up, w(F.title), 1),
7018
- r("div", Lp, w(F.description), 1)
7020
+ r("div", Fp, [
7021
+ r("div", Up, [
7022
+ r("div", Lp, w(F.title), 1),
7023
+ r("div", Np, w(F.description), 1)
7019
7024
  ]),
7020
7025
  B(U, {
7021
7026
  "model-value": k(F.key),
@@ -7027,7 +7032,7 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
7027
7032
  "opacity-50 pointer-events-none": !k(F.key)
7028
7033
  }])
7029
7034
  }, [
7030
- B(Dp, {
7035
+ B(Bp, {
7031
7036
  "initial-color": j(F.key),
7032
7037
  color: A(F.key),
7033
7038
  onUpdate: (T) => p(F.key, T),
@@ -7044,7 +7049,7 @@ const dp = { class: "vacp-range-input-group" }, up = ["for"], cp = { class: "vac
7044
7049
  };
7045
7050
  }
7046
7051
  });
7047
- function zp(e) {
7052
+ function jp(e) {
7048
7053
  try {
7049
7054
  const t = typeof e == "string" ? JSON.parse(e) : e;
7050
7055
  return t === !0 || t === "true" || (t == null ? void 0 : t.enabled) === !0 || (t == null ? void 0 : t.enabled) === "true";
@@ -7066,7 +7071,7 @@ function Wa(e) {
7066
7071
  }), a.value = !1, !!n && (await rs(o, s === "dev" ? "dev" : "prod"), !(!o.isInitialized.value || u)))
7067
7072
  try {
7068
7073
  const c = await o.getBusinessFlagValue(n, e, !1);
7069
- u || (a.value = zp(c));
7074
+ u || (a.value = jp(c));
7070
7075
  } catch {
7071
7076
  u || (a.value = !1);
7072
7077
  }
@@ -7074,7 +7079,7 @@ function Wa(e) {
7074
7079
  { immediate: !0 }
7075
7080
  ), { value: a };
7076
7081
  }
7077
- function jp() {
7082
+ function Wp() {
7078
7083
  const e = at(), t = V(() => {
7079
7084
  var i;
7080
7085
  const s = (i = e.sessionUser.value) == null ? void 0 : i.role, l = typeof s == "string" ? s : (s == null ? void 0 : s.name) ?? (s == null ? void 0 : s.type) ?? (s == null ? void 0 : s.key);
@@ -7088,76 +7093,76 @@ function jp() {
7088
7093
  () => t.value || o.value
7089
7094
  ), isAdvancedCustomizationEnabled: a };
7090
7095
  }
7091
- const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color-neutral-gray-100 space-x-4" }, qp = { class: "fm-typo-en-title-sm-600 mr-auto" }, Gp = { class: "flex flex-col flex-1 overflow-scroll w-full px-24 py-24" }, Hp = { class: "flex flex-col gap-24 max-w-[1600px] w-full mx-auto" }, Kp = { class: "rounded-lg border border-fm-color-neutral-gray-100 p-16 space-y-12" }, Jp = { class: "grid grid-cols-1 md:grid-cols-2 gap-12" }, Zp = { class: "flex items-center gap-12 pt-24" }, Yp = {
7096
+ const qp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color-neutral-gray-100 space-x-4" }, Gp = { class: "fm-typo-en-title-sm-600 mr-auto" }, Hp = { class: "flex flex-col flex-1 overflow-scroll w-full px-24 py-24" }, Kp = { class: "flex flex-col gap-24 max-w-[1600px] w-full mx-auto" }, Jp = { class: "rounded-lg border border-fm-color-neutral-gray-100 p-16 space-y-12" }, Zp = { class: "grid grid-cols-1 md:grid-cols-2 gap-12" }, Yp = { class: "flex items-center gap-12 pt-24" }, Xp = {
7092
7097
  key: 0,
7093
7098
  class: "flex items-start gap-8 rounded-lg bg-fm-color-warning-50 border border-fm-color-warning-200 px-12 py-8"
7094
- }, Xp = { class: "fm-typo-en-body-sm-400 text-fm-color-warning-700" }, Qp = { key: 1 }, em = {
7099
+ }, Qp = { class: "fm-typo-en-body-sm-400 text-fm-color-warning-700" }, em = { key: 1 }, tm = {
7095
7100
  key: 2,
7096
7101
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
7097
- }, tm = { class: "grid grid-cols-1 lg:grid-cols-2 gap-24 items-start" }, om = { class: "space-y-24" }, am = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, nm = { class: "py-16 px-24 bg-fm-color-neutral-gray-50 border-b border-fm-color-neutral-gray-100" }, sm = { class: "flex items-center gap-12 mb-8" }, lm = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-neutral-gray-100 rounded-full" }, rm = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, im = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, dm = { class: "px-24 py-12" }, um = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, cm = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, pm = { class: "py-16 px-24 bg-fm-color-neutral-gray-50 border-b border-fm-color-neutral-gray-100" }, mm = { class: "flex items-center gap-12 mb-8" }, fm = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-neutral-gray-100 rounded-full" }, ym = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, vm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, gm = { class: "px-24 py-12" }, bm = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, hm = {
7102
+ }, om = { class: "grid grid-cols-1 lg:grid-cols-2 gap-24 items-start" }, am = { class: "space-y-24" }, nm = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, sm = { class: "py-16 px-24 bg-fm-color-neutral-gray-50 border-b border-fm-color-neutral-gray-100" }, lm = { class: "flex items-center gap-12 mb-8" }, rm = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-neutral-gray-100 rounded-full" }, im = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, dm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, um = { class: "px-24 py-12" }, cm = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, pm = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, mm = { class: "py-16 px-24 bg-fm-color-neutral-gray-50 border-b border-fm-color-neutral-gray-100" }, fm = { class: "flex items-center gap-12 mb-8" }, ym = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-neutral-gray-100 rounded-full" }, vm = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, gm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, bm = { class: "px-24 py-12" }, hm = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, wm = {
7098
7103
  key: 0,
7099
7104
  class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100"
7100
- }, wm = { class: "py-16 px-24 bg-fm-color-secondary-50 border-b border-fm-color-neutral-gray-100" }, km = { class: "flex items-center gap-12 mb-8" }, Sm = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-secondary-100 rounded-full" }, xm = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, _m = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Om = { class: "px-24 py-12" }, Pm = { class: "flex items-center justify-end gap-8" }, Cm = { class: "px-24 py-12" }, Em = { class: "space-y-12" }, Tm = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Im = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Rm = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Am = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Dm = { class: "px-24 py-12" }, Bm = { class: "space-y-12" }, $m = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Mm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Fm = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Um = { class: "px-24 py-12" }, Lm = { class: "space-y-12" }, Nm = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Vm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, zm = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, jm = {
7105
+ }, km = { class: "py-16 px-24 bg-fm-color-secondary-50 border-b border-fm-color-neutral-gray-100" }, Sm = { class: "flex items-center gap-12 mb-8" }, xm = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-secondary-100 rounded-full" }, _m = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Om = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Pm = { class: "px-24 py-12" }, Cm = { class: "flex items-center justify-end gap-8" }, Em = { class: "px-24 py-12" }, Tm = { class: "space-y-12" }, Im = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Rm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Am = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Dm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Bm = { class: "px-24 py-12" }, $m = { class: "space-y-12" }, Mm = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Fm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Um = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Lm = { class: "px-24 py-12" }, Nm = { class: "space-y-12" }, Vm = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, zm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, jm = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Wm = {
7101
7106
  key: 0,
7102
7107
  class: "px-24 py-12"
7103
- }, Wm = { class: "space-y-12" }, qm = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Gm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Hm = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Km = {
7108
+ }, qm = { class: "space-y-12" }, Gm = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Hm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Km = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Jm = {
7104
7109
  key: 1,
7105
7110
  class: "px-24 py-12"
7106
- }, Jm = { class: "space-y-12" }, Zm = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Ym = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Xm = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Qm = {
7111
+ }, Zm = { class: "space-y-12" }, Ym = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Xm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Qm = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, ef = {
7107
7112
  key: 2,
7108
7113
  class: "px-24 py-12"
7109
- }, ef = { class: "space-y-12" }, tf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, of = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, af = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, nf = {
7114
+ }, tf = { class: "space-y-12" }, of = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, af = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, nf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, sf = {
7110
7115
  key: 3,
7111
7116
  class: "px-24 py-12"
7112
- }, sf = { class: "space-y-12" }, lf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, rf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, df = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, uf = {
7117
+ }, lf = { class: "space-y-12" }, rf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, df = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, uf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, cf = {
7113
7118
  key: 4,
7114
7119
  class: "px-24 py-12"
7115
- }, cf = { class: "space-y-12" }, pf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, mf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ff = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, yf = {
7120
+ }, pf = { class: "space-y-12" }, mf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, ff = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, yf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, vf = {
7116
7121
  key: 5,
7117
7122
  class: "px-24 py-12"
7118
- }, vf = { class: "space-y-12" }, gf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, bf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, hf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, wf = {
7123
+ }, gf = { class: "space-y-12" }, bf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, hf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, wf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, kf = {
7119
7124
  key: 6,
7120
7125
  class: "px-24 py-12"
7121
- }, kf = { class: "space-y-12" }, Sf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, xf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, _f = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Of = {
7126
+ }, Sf = { class: "space-y-12" }, xf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, _f = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Of = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Pf = {
7122
7127
  key: 7,
7123
7128
  class: "px-24 py-12"
7124
- }, Pf = { class: "space-y-12" }, Cf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Ef = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Tf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, If = {
7129
+ }, Cf = { class: "space-y-12" }, Ef = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Tf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, If = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Rf = {
7125
7130
  key: 8,
7126
7131
  class: "px-24 py-12"
7127
- }, Rf = { class: "space-y-12" }, Af = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Df = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Bf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, $f = {
7132
+ }, Af = { class: "space-y-12" }, Df = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Bf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, $f = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Mf = {
7128
7133
  key: 1,
7129
7134
  class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100"
7130
- }, Mf = { class: "py-16 px-24 bg-fm-color-primary-50 border-b border-fm-color-neutral-gray-100" }, Ff = { class: "flex items-center gap-12 mb-8" }, Uf = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-primary-100 rounded-full" }, Lf = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Nf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Vf = { class: "px-24 py-12" }, zf = { class: "flex items-center justify-end gap-8" }, jf = { class: "px-24 py-12" }, Wf = { class: "space-y-12" }, qf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Gf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Hf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 space-y-12" }, Kf = { class: "flex flex-wrap gap-12" }, Jf = {
7135
+ }, Ff = { class: "py-16 px-24 bg-fm-color-primary-50 border-b border-fm-color-neutral-gray-100" }, Uf = { class: "flex items-center gap-12 mb-8" }, Lf = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-primary-100 rounded-full" }, Nf = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Vf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, zf = { class: "px-24 py-12" }, jf = { class: "flex items-center justify-end gap-8" }, Wf = { class: "px-24 py-12" }, qf = { class: "space-y-12" }, Gf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Hf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Kf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 space-y-12" }, Jf = { class: "flex flex-wrap gap-12" }, Zf = {
7131
7136
  key: 0,
7132
7137
  class: "relative"
7133
- }, Zf = { class: "w-full h-[120px] border border-fm-color-neutral-gray-200 rounded-lg overflow-hidden bg-fm-color-neutral-white" }, Yf = ["src"], Xf = {
7138
+ }, Yf = { class: "w-full h-[120px] border border-fm-color-neutral-gray-200 rounded-lg overflow-hidden bg-fm-color-neutral-white" }, Xf = ["src"], Qf = {
7134
7139
  key: 0,
7135
7140
  class: "mt-8 flex items-center gap-8"
7136
- }, Qf = {
7141
+ }, ey = {
7137
7142
  key: 2,
7138
7143
  class: "rounded-lg border border-dashed border-fm-color-neutral-gray-200 bg-white px-16 py-16"
7139
- }, ey = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ty = { class: "px-24 py-12" }, oy = { class: "space-y-12" }, ay = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, ny = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, sy = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 space-y-12" }, ly = { class: "flex flex-wrap gap-12" }, ry = {
7144
+ }, ty = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, oy = { class: "px-24 py-12" }, ay = { class: "space-y-12" }, ny = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, sy = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ly = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 space-y-12" }, ry = { class: "flex flex-wrap gap-12" }, iy = {
7140
7145
  key: 0,
7141
7146
  class: "rounded-lg border border-dashed border-fm-color-neutral-gray-200 bg-white px-16 py-16"
7142
- }, iy = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, dy = {
7147
+ }, dy = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, uy = {
7143
7148
  key: 0,
7144
7149
  class: "relative"
7145
- }, uy = { class: "w-full h-[120px] border border-fm-color-neutral-gray-200 rounded-lg overflow-hidden bg-fm-color-neutral-white" }, cy = ["src"], py = {
7150
+ }, cy = { class: "w-full h-[120px] border border-fm-color-neutral-gray-200 rounded-lg overflow-hidden bg-fm-color-neutral-white" }, py = ["src"], my = {
7146
7151
  key: 0,
7147
7152
  class: "mt-8 flex items-center gap-8"
7148
- }, my = {
7153
+ }, fy = {
7149
7154
  key: 2,
7150
7155
  class: "grid grid-cols-1 lg:grid-cols-2 gap-12"
7151
- }, fy = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-primary mb-4" }, yy = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-primary mb-4" }, vy = { class: "px-24 py-12" }, gy = { class: "space-y-12" }, by = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, hy = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, wy = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, ky = {
7156
+ }, yy = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-primary mb-4" }, vy = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-primary mb-4" }, gy = { class: "px-24 py-12" }, by = { class: "space-y-12" }, hy = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, wy = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ky = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Sy = {
7152
7157
  key: 0,
7153
7158
  class: "px-24 py-12"
7154
- }, Sy = { class: "space-y-12" }, xy = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, _y = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Oy = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Py = {
7159
+ }, xy = { class: "space-y-12" }, _y = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Oy = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Py = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Cy = {
7155
7160
  key: 1,
7156
7161
  class: "px-24 py-12"
7157
- }, Cy = { class: "space-y-12" }, Ey = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Ty = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Iy = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Ry = { class: "min-w-0 lg:sticky lg:top-24" }, Ay = { class: "overflow-hidden rounded-lg border border-fm-color-neutral-gray-100 bg-white" }, Dy = { class: "border-b border-fm-color-neutral-gray-100 bg-fm-color-neutral-gray-50 px-24 py-16" }, By = { class: "flex flex-col gap-12 lg:flex-row lg:items-start lg:justify-between" }, $y = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, My = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Fy = { class: "flex flex-wrap items-center gap-8" }, Uy = { class: "bg-fm-color-neutral-gray-50 p-16" }, Ly = ["src"], Ny = {
7162
+ }, Ey = { class: "space-y-12" }, Ty = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Iy = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ry = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Ay = { class: "min-w-0 lg:sticky lg:top-24" }, Dy = { class: "overflow-hidden rounded-lg border border-fm-color-neutral-gray-100 bg-white" }, By = { class: "border-b border-fm-color-neutral-gray-100 bg-fm-color-neutral-gray-50 px-24 py-16" }, $y = { class: "flex flex-col gap-12 lg:flex-row lg:items-start lg:justify-between" }, My = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Fy = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Uy = { class: "flex flex-wrap items-center gap-8" }, Ly = { class: "bg-fm-color-neutral-gray-50 p-16" }, Ny = ["src"], Vy = {
7158
7163
  key: 1,
7159
7164
  class: "flex h-[200px] items-center justify-center rounded-[16px] border border-dashed border-fm-color-neutral-gray-200 bg-white px-24 text-center"
7160
- }, Vy = { class: "space-y-8" }, zy = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, At = "/images/feedme-bg.png", Ht = "/images/feedme-bg-left-image.png", Dt = "/images/feedme-side.png", Kt = 1920, Jt = 1080, jy = /* @__PURE__ */ he({
7165
+ }, zy = { class: "space-y-8" }, jy = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, At = "/images/feedme-bg.png", Ht = "/images/feedme-bg-left-image.png", Dt = "/images/feedme-side.png", Kt = 1920, Jt = 1080, Wy = /* @__PURE__ */ he({
7161
7166
  __name: "LegacyOdsEditorDialog",
7162
7167
  props: {
7163
7168
  modelValue: { type: Boolean },
@@ -7170,7 +7175,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7170
7175
  },
7171
7176
  emits: ["update:modelValue", "save", "cancel"],
7172
7177
  setup(e, { emit: t }) {
7173
- const o = e, a = t, n = at(), { t: s } = Pe(), { canAccessOdsTemplateSettings: l, isAdvancedCustomizationEnabled: i } = jp(), u = V({
7178
+ const o = e, a = t, n = at(), { t: s } = Pe(), { canAccessOdsTemplateSettings: l, isAdvancedCustomizationEnabled: i } = Wp(), u = V({
7174
7179
  get: () => o.modelValue,
7175
7180
  set: (_) => a("update:modelValue", _)
7176
7181
  }), c = K({ isDefault: !1 }), m = () => JSON.parse(JSON.stringify(o.entry)), h = () => {
@@ -7522,7 +7527,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7522
7527
  (_) => {
7523
7528
  _ && (ge(), ke());
7524
7529
  }
7525
- ), Yn(() => Be == null ? void 0 : Be.disconnect());
7530
+ ), Xn(() => Be == null ? void 0 : Be.disconnect());
7526
7531
  const E = () => {
7527
7532
  Be == null || Be.disconnect(), Be = null, a("cancel"), u.value = !1;
7528
7533
  }, X = () => {
@@ -7536,7 +7541,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7536
7541
  const Q = ae("FmButton"), ue = ae("FmTextField"), _e = ae("FmSwitch"), Ae = ae("FmIcon"), fe = ae("FmButtonGroup"), ot = ae("FmStepperField"), et = ae("FmRadio");
7537
7542
  return f(), b(ie, null, [
7538
7543
  (f(), re(No, { to: "body" }, [
7539
- B(Xn, { name: "fade" }, {
7544
+ B(Qn, { name: "fade" }, {
7540
7545
  default: $e(() => {
7541
7546
  var gt, ia, da, ua, ca;
7542
7547
  return [
@@ -7547,8 +7552,8 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7547
7552
  tabindex: "-1",
7548
7553
  onKeyup: Ga(E, ["esc"])
7549
7554
  }, [
7550
- r("div", Wp, [
7551
- r("p", qp, w(d(s)("order.displaySystem.legacyOds.odsConfiguration")) + w(c.value.label ? ` - ${c.value.label}` : ""), 1),
7555
+ r("div", qp, [
7556
+ r("p", Gp, w(d(s)("order.displaySystem.legacyOds.odsConfiguration")) + w(c.value.label ? ` - ${c.value.label}` : ""), 1),
7552
7557
  B(Q, {
7553
7558
  label: d(s)("order.displaySystem.legacyOds.cancel"),
7554
7559
  variant: "tertiary",
@@ -7561,17 +7566,17 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7561
7566
  onClick: X
7562
7567
  }, null, 8, ["label", "disabled"])
7563
7568
  ]),
7564
- r("div", Gp, [
7565
- r("div", Hp, [
7566
- r("div", Kp, [
7567
- r("div", Jp, [
7569
+ r("div", Hp, [
7570
+ r("div", Kp, [
7571
+ r("div", Jp, [
7572
+ r("div", Zp, [
7568
7573
  B(ue, {
7569
7574
  modelValue: c.value.label,
7570
7575
  "onUpdate:modelValue": S[0] || (S[0] = (ee) => c.value.label = ee),
7571
7576
  label: d(s)("order.displaySystem.legacyOds.label"),
7572
7577
  placeholder: "e.g. Default, Flagship, Express"
7573
7578
  }, null, 8, ["modelValue", "label"]),
7574
- r("div", Zp, [
7579
+ r("div", Yp, [
7575
7580
  B(_e, {
7576
7581
  modelValue: c.value.isDefault,
7577
7582
  "onUpdate:modelValue": S[1] || (S[1] = (ee) => c.value.isDefault = ee),
@@ -7579,16 +7584,16 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7579
7584
  }, null, 8, ["modelValue", "label"])
7580
7585
  ])
7581
7586
  ]),
7582
- c.value.isDefault && R.value ? (f(), b("div", Yp, [
7587
+ c.value.isDefault && R.value ? (f(), b("div", Xp, [
7583
7588
  B(Ae, {
7584
7589
  name: "warning",
7585
7590
  size: "sm",
7586
7591
  class: "text-fm-color-warning-500 flex-shrink-0 mt-2"
7587
7592
  }),
7588
- r("span", Xp, w(d(s)("order.displaySystem.legacyOds.defaultWarning")), 1)
7593
+ r("span", Qp, w(d(s)("order.displaySystem.legacyOds.defaultWarning")), 1)
7589
7594
  ])) : z("", !0),
7590
- c.value.isDefault ? (f(), b("div", em, w(d(s)("order.displaySystem.legacyOds.restaurantInfo")), 1)) : (f(), b("div", Qp, [
7591
- B(d(ts), {
7595
+ c.value.isDefault ? (f(), b("div", tm, w(d(s)("order.displaySystem.legacyOds.restaurantInfo")), 1)) : (f(), b("div", em, [
7596
+ B(d(os), {
7592
7597
  modelValue: j.value,
7593
7598
  "onUpdate:modelValue": S[2] || (S[2] = (ee) => j.value = ee),
7594
7599
  multiple: "",
@@ -7596,12 +7601,12 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7596
7601
  }, null, 8, ["modelValue"])
7597
7602
  ]))
7598
7603
  ]),
7599
- r("div", tm, [
7600
- r("div", om, [
7601
- r("div", am, [
7602
- r("div", nm, [
7603
- r("div", sm, [
7604
- r("div", lm, [
7604
+ r("div", om, [
7605
+ r("div", am, [
7606
+ r("div", nm, [
7607
+ r("div", sm, [
7608
+ r("div", lm, [
7609
+ r("div", rm, [
7605
7610
  B(Ae, {
7606
7611
  name: "dashboard_customize",
7607
7612
  class: "text-fm-color-typo-secondary",
@@ -7609,12 +7614,12 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7609
7614
  outline: ""
7610
7615
  })
7611
7616
  ]),
7612
- r("div", rm, w(d(s)("order.displaySystem.legacyOds.selectPreset")), 1)
7617
+ r("div", im, w(d(s)("order.displaySystem.legacyOds.selectPreset")), 1)
7613
7618
  ]),
7614
- r("div", im, w(d(s)("order.displaySystem.legacyOds.selectPresetDescription")), 1)
7619
+ r("div", dm, w(d(s)("order.displaySystem.legacyOds.selectPresetDescription")), 1)
7615
7620
  ]),
7616
- r("div", dm, [
7617
- r("div", um, [
7621
+ r("div", um, [
7622
+ r("div", cm, [
7618
7623
  B(fe, {
7619
7624
  items: v.value,
7620
7625
  "model-value": v.value.find((ee) => ee.value === oe.value) ?? null,
@@ -7623,10 +7628,10 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7623
7628
  ])
7624
7629
  ])
7625
7630
  ]),
7626
- r("div", cm, [
7627
- r("div", pm, [
7628
- r("div", mm, [
7629
- r("div", fm, [
7631
+ r("div", pm, [
7632
+ r("div", mm, [
7633
+ r("div", fm, [
7634
+ r("div", ym, [
7630
7635
  B(Ae, {
7631
7636
  name: "visibility_off",
7632
7637
  class: "text-fm-color-typo-secondary",
@@ -7634,12 +7639,12 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7634
7639
  outline: ""
7635
7640
  })
7636
7641
  ]),
7637
- r("div", ym, w(d(s)("order.displaySystem.legacyOds.hideCollectedOrders")), 1)
7642
+ r("div", vm, w(d(s)("order.displaySystem.legacyOds.hideCollectedOrders")), 1)
7638
7643
  ]),
7639
- r("div", vm, w(d(s)("order.displaySystem.legacyOds.hideCollectedOrdersDescription")), 1)
7644
+ r("div", gm, w(d(s)("order.displaySystem.legacyOds.hideCollectedOrdersDescription")), 1)
7640
7645
  ]),
7641
- r("div", gm, [
7642
- r("div", bm, [
7646
+ r("div", bm, [
7647
+ r("div", hm, [
7643
7648
  B(_e, {
7644
7649
  label: d(s)("order.displaySystem.legacyOds.hideCollectedOrders"),
7645
7650
  "model-value": P.value.hideCompletedOrders ?? !1,
@@ -7648,10 +7653,10 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7648
7653
  ])
7649
7654
  ])
7650
7655
  ]),
7651
- d(l) ? (f(), b("div", hm, [
7652
- r("div", wm, [
7653
- r("div", km, [
7654
- r("div", Sm, [
7656
+ d(l) ? (f(), b("div", wm, [
7657
+ r("div", km, [
7658
+ r("div", Sm, [
7659
+ r("div", xm, [
7655
7660
  B(Ae, {
7656
7661
  name: "monitor",
7657
7662
  class: "text-fm-color-secondary-500",
@@ -7659,12 +7664,12 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7659
7664
  outline: ""
7660
7665
  })
7661
7666
  ]),
7662
- r("div", xm, w(d(s)("order.displaySystem.legacyOds.displaySettings")), 1)
7667
+ r("div", _m, w(d(s)("order.displaySystem.legacyOds.displaySettings")), 1)
7663
7668
  ]),
7664
- r("div", _m, w(d(s)("order.displaySystem.legacyOds.displaySettingsDescription")), 1)
7669
+ r("div", Om, w(d(s)("order.displaySystem.legacyOds.displaySettingsDescription")), 1)
7665
7670
  ]),
7666
- r("div", Om, [
7667
- r("div", Pm, [
7671
+ r("div", Pm, [
7672
+ r("div", Cm, [
7668
7673
  B(Q, {
7669
7674
  icon: "autorenew",
7670
7675
  label: d(s)("order.displaySystem.legacyOds.resetToDefault"),
@@ -7674,14 +7679,14 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7674
7679
  }, null, 8, ["label", "disabled"])
7675
7680
  ])
7676
7681
  ]),
7677
- r("div", Cm, [
7678
- r("div", Em, [
7682
+ r("div", Em, [
7683
+ r("div", Tm, [
7679
7684
  r("div", null, [
7680
- r("div", Tm, w(d(s)("order.displaySystem.legacyOds.colorOverride")), 1),
7681
- r("div", Im, w(d(s)("order.displaySystem.legacyOds.colorOverrideConfigDescription")), 1)
7685
+ r("div", Im, w(d(s)("order.displaySystem.legacyOds.colorOverride")), 1),
7686
+ r("div", Rm, w(d(s)("order.displaySystem.legacyOds.colorOverrideConfigDescription")), 1)
7682
7687
  ]),
7683
- r("div", Rm, [
7684
- r("div", Am, w(d(s)("order.displaySystem.legacyOds.colorsOverridden", {
7688
+ r("div", Am, [
7689
+ r("div", Dm, w(d(s)("order.displaySystem.legacyOds.colorsOverridden", {
7685
7690
  count: Ue.value
7686
7691
  })), 1),
7687
7692
  B(Q, {
@@ -7694,13 +7699,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7694
7699
  ])
7695
7700
  ])
7696
7701
  ]),
7697
- r("div", Dm, [
7698
- r("div", Bm, [
7702
+ r("div", Bm, [
7703
+ r("div", $m, [
7699
7704
  r("div", null, [
7700
- r("div", $m, w(d(s)("order.displaySystem.legacyOds.groupOrdersBy")), 1),
7701
- r("div", Mm, w(d(s)("order.displaySystem.legacyOds.groupOrdersByDescription")), 1)
7705
+ r("div", Mm, w(d(s)("order.displaySystem.legacyOds.groupOrdersBy")), 1),
7706
+ r("div", Fm, w(d(s)("order.displaySystem.legacyOds.groupOrdersByDescription")), 1)
7702
7707
  ]),
7703
- r("div", Fm, [
7708
+ r("div", Um, [
7704
7709
  B(fe, {
7705
7710
  items: Ge.value,
7706
7711
  "model-value": Ge.value.find((ee) => ee.value === P.value.groupBy) ?? Ge.value[0],
@@ -7710,13 +7715,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7710
7715
  ])
7711
7716
  ])
7712
7717
  ]),
7713
- r("div", Um, [
7714
- r("div", Lm, [
7718
+ r("div", Lm, [
7719
+ r("div", Nm, [
7715
7720
  r("div", null, [
7716
- r("div", Nm, w(d(s)("order.displaySystem.legacyOds.showCurrentOrder")), 1),
7717
- r("div", Vm, w(d(s)("order.displaySystem.legacyOds.showCurrentOrderDescription")), 1)
7721
+ r("div", Vm, w(d(s)("order.displaySystem.legacyOds.showCurrentOrder")), 1),
7722
+ r("div", zm, w(d(s)("order.displaySystem.legacyOds.showCurrentOrderDescription")), 1)
7718
7723
  ]),
7719
- r("div", zm, [
7724
+ r("div", jm, [
7720
7725
  B(_e, {
7721
7726
  label: d(s)("order.displaySystem.legacyOds.showCurrentOrder"),
7722
7727
  "model-value": ((gt = P.value.currentOrder) == null ? void 0 : gt.enabled) ?? !0,
@@ -7726,13 +7731,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7726
7731
  ])
7727
7732
  ])
7728
7733
  ]),
7729
- P.value.groupBy === "status" ? (f(), b("div", jm, [
7730
- r("div", Wm, [
7734
+ P.value.groupBy === "status" ? (f(), b("div", Wm, [
7735
+ r("div", qm, [
7731
7736
  r("div", null, [
7732
- r("div", qm, w(d(s)("order.displaySystem.legacyOds.statusBoardLayout")), 1),
7733
- r("div", Gm, w(d(s)("order.displaySystem.legacyOds.statusBoardLayoutDescription")), 1)
7737
+ r("div", Gm, w(d(s)("order.displaySystem.legacyOds.statusBoardLayout")), 1),
7738
+ r("div", Hm, w(d(s)("order.displaySystem.legacyOds.statusBoardLayoutDescription")), 1)
7734
7739
  ]),
7735
- r("div", Hm, [
7740
+ r("div", Km, [
7736
7741
  B(fe, {
7737
7742
  items: se.value,
7738
7743
  "model-value": se.value.find((ee) => ee.value === P.value.statusLayout) ?? se.value[0],
@@ -7742,13 +7747,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7742
7747
  ])
7743
7748
  ])
7744
7749
  ])) : z("", !0),
7745
- P.value.groupBy === "status" && P.value.statusLayout !== "vertical" ? (f(), b("div", Km, [
7746
- r("div", Jm, [
7750
+ P.value.groupBy === "status" && P.value.statusLayout !== "vertical" ? (f(), b("div", Jm, [
7751
+ r("div", Zm, [
7747
7752
  r("div", null, [
7748
- r("div", Zm, w(d(s)("order.displaySystem.legacyOds.statusColumnCount")), 1),
7749
- r("div", Ym, w(d(s)("order.displaySystem.legacyOds.statusColumnCountDescription")), 1)
7753
+ r("div", Ym, w(d(s)("order.displaySystem.legacyOds.statusColumnCount")), 1),
7754
+ r("div", Xm, w(d(s)("order.displaySystem.legacyOds.statusColumnCountDescription")), 1)
7750
7755
  ]),
7751
- r("div", Xm, [
7756
+ r("div", Qm, [
7752
7757
  B(fe, {
7753
7758
  items: Me,
7754
7759
  "model-value": Me.find(
@@ -7760,13 +7765,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7760
7765
  ])
7761
7766
  ])
7762
7767
  ])) : z("", !0),
7763
- P.value.groupBy === "status" ? (f(), b("div", Qm, [
7764
- r("div", ef, [
7768
+ P.value.groupBy === "status" ? (f(), b("div", ef, [
7769
+ r("div", tf, [
7765
7770
  r("div", null, [
7766
- r("div", tf, w(d(s)("order.displaySystem.legacyOds.slidingInterval")), 1),
7767
- r("div", of, w(d(s)("order.displaySystem.legacyOds.slidingIntervalDescription")), 1)
7771
+ r("div", of, w(d(s)("order.displaySystem.legacyOds.slidingInterval")), 1),
7772
+ r("div", af, w(d(s)("order.displaySystem.legacyOds.slidingIntervalDescription")), 1)
7768
7773
  ]),
7769
- r("div", af, [
7774
+ r("div", nf, [
7770
7775
  B(ot, {
7771
7776
  "model-value": P.value.statusSlidingPeriod / 1e3,
7772
7777
  label: "Sliding interval (seconds)",
@@ -7784,13 +7789,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7784
7789
  ])
7785
7790
  ])
7786
7791
  ])) : z("", !0),
7787
- P.value.groupBy === "status" ? (f(), b("div", nf, [
7788
- r("div", sf, [
7792
+ P.value.groupBy === "status" ? (f(), b("div", sf, [
7793
+ r("div", lf, [
7789
7794
  r("div", null, [
7790
- r("div", lf, w(d(s)("order.displaySystem.legacyOds.showDeliveryIcons")), 1),
7791
- r("div", rf, w(d(s)("order.displaySystem.legacyOds.showDeliveryIconsDescription")), 1)
7795
+ r("div", rf, w(d(s)("order.displaySystem.legacyOds.showDeliveryIcons")), 1),
7796
+ r("div", df, w(d(s)("order.displaySystem.legacyOds.showDeliveryIconsDescription")), 1)
7792
7797
  ]),
7793
- r("div", df, [
7798
+ r("div", uf, [
7794
7799
  B(_e, {
7795
7800
  label: d(s)("order.displaySystem.legacyOds.showDeliveryIcons"),
7796
7801
  "model-value": P.value.showDeliveryIcons,
@@ -7800,13 +7805,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7800
7805
  ])
7801
7806
  ])
7802
7807
  ])) : z("", !0),
7803
- P.value.groupBy === "status" ? (f(), b("div", uf, [
7804
- r("div", cf, [
7808
+ P.value.groupBy === "status" ? (f(), b("div", cf, [
7809
+ r("div", pf, [
7805
7810
  r("div", null, [
7806
- r("div", pf, w(d(s)("order.displaySystem.legacyOds.showOrderCount")), 1),
7807
- r("div", mf, w(d(s)("order.displaySystem.legacyOds.showOrderCountDescription")), 1)
7811
+ r("div", mf, w(d(s)("order.displaySystem.legacyOds.showOrderCount")), 1),
7812
+ r("div", ff, w(d(s)("order.displaySystem.legacyOds.showOrderCountDescription")), 1)
7808
7813
  ]),
7809
- r("div", ff, [
7814
+ r("div", yf, [
7810
7815
  B(_e, {
7811
7816
  label: d(s)("order.displaySystem.legacyOds.showOrderCount"),
7812
7817
  "model-value": P.value.showOrderCount,
@@ -7816,13 +7821,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7816
7821
  ])
7817
7822
  ])
7818
7823
  ])) : z("", !0),
7819
- P.value.groupBy === "status" ? (f(), b("div", yf, [
7820
- r("div", vf, [
7824
+ P.value.groupBy === "status" ? (f(), b("div", vf, [
7825
+ r("div", gf, [
7821
7826
  r("div", null, [
7822
- r("div", gf, w(d(s)("order.displaySystem.legacyOds.showEstimatedTime")), 1),
7823
- r("div", bf, w(d(s)("order.displaySystem.legacyOds.showEstimatedTimeDescription")), 1)
7827
+ r("div", bf, w(d(s)("order.displaySystem.legacyOds.showEstimatedTime")), 1),
7828
+ r("div", hf, w(d(s)("order.displaySystem.legacyOds.showEstimatedTimeDescription")), 1)
7824
7829
  ]),
7825
- r("div", hf, [
7830
+ r("div", wf, [
7826
7831
  B(_e, {
7827
7832
  label: d(s)("order.displaySystem.legacyOds.showEstimatedTime"),
7828
7833
  "model-value": P.value.showEstimatedTime,
@@ -7832,13 +7837,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7832
7837
  ])
7833
7838
  ])
7834
7839
  ])) : z("", !0),
7835
- P.value.groupBy === "type" ? (f(), b("div", wf, [
7836
- r("div", kf, [
7840
+ P.value.groupBy === "type" ? (f(), b("div", kf, [
7841
+ r("div", Sf, [
7837
7842
  r("div", null, [
7838
- r("div", Sf, w(d(s)("order.displaySystem.legacyOds.showOrderTypeTabs")), 1),
7839
- r("div", xf, w(d(s)("order.displaySystem.legacyOds.showOrderTypeTabsDescription")), 1)
7843
+ r("div", xf, w(d(s)("order.displaySystem.legacyOds.showOrderTypeTabs")), 1),
7844
+ r("div", _f, w(d(s)("order.displaySystem.legacyOds.showOrderTypeTabsDescription")), 1)
7840
7845
  ]),
7841
- r("div", _f, [
7846
+ r("div", Of, [
7842
7847
  B(_e, {
7843
7848
  label: d(s)("order.displaySystem.legacyOds.showOrderTypeTabs"),
7844
7849
  "model-value": P.value.showOrderTypeTabs,
@@ -7848,13 +7853,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7848
7853
  ])
7849
7854
  ])
7850
7855
  ])) : z("", !0),
7851
- P.value.groupBy !== "status" ? (f(), b("div", Of, [
7852
- r("div", Pf, [
7856
+ P.value.groupBy !== "status" ? (f(), b("div", Pf, [
7857
+ r("div", Cf, [
7853
7858
  r("div", null, [
7854
- r("div", Cf, w(d(s)("order.displaySystem.legacyOds.showProgressBar")), 1),
7855
- r("div", Ef, w(d(s)("order.displaySystem.legacyOds.showProgressBarDescription")), 1)
7859
+ r("div", Ef, w(d(s)("order.displaySystem.legacyOds.showProgressBar")), 1),
7860
+ r("div", Tf, w(d(s)("order.displaySystem.legacyOds.showProgressBarDescription")), 1)
7856
7861
  ]),
7857
- r("div", Tf, [
7862
+ r("div", If, [
7858
7863
  B(_e, {
7859
7864
  label: d(s)("order.displaySystem.legacyOds.showProgressBar"),
7860
7865
  "model-value": P.value.showProgressBar,
@@ -7864,13 +7869,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7864
7869
  ])
7865
7870
  ])
7866
7871
  ])) : z("", !0),
7867
- d(i) && P.value.groupBy === "status" && P.value.statusLayout === "horizontal" ? (f(), b("div", If, [
7868
- r("div", Rf, [
7872
+ d(i) && P.value.groupBy === "status" && P.value.statusLayout === "horizontal" ? (f(), b("div", Rf, [
7873
+ r("div", Af, [
7869
7874
  r("div", null, [
7870
- r("div", Af, w(d(s)("order.displaySystem.legacyOds.statusTemplate")), 1),
7871
- r("div", Df, w(d(s)("order.displaySystem.legacyOds.statusTemplateDescription")), 1)
7875
+ r("div", Df, w(d(s)("order.displaySystem.legacyOds.statusTemplate")), 1),
7876
+ r("div", Bf, w(d(s)("order.displaySystem.legacyOds.statusTemplateDescription")), 1)
7872
7877
  ]),
7873
- r("div", Bf, [
7878
+ r("div", $f, [
7874
7879
  B(fe, {
7875
7880
  items: zt.value,
7876
7881
  "model-value": zt.value.find(
@@ -7883,10 +7888,10 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7883
7888
  ])
7884
7889
  ])) : z("", !0)
7885
7890
  ])) : z("", !0),
7886
- d(l) ? (f(), b("div", $f, [
7887
- r("div", Mf, [
7888
- r("div", Ff, [
7889
- r("div", Uf, [
7891
+ d(l) ? (f(), b("div", Mf, [
7892
+ r("div", Ff, [
7893
+ r("div", Uf, [
7894
+ r("div", Lf, [
7890
7895
  B(Ae, {
7891
7896
  name: "dashboard",
7892
7897
  class: "text-fm-color-primary-500",
@@ -7894,12 +7899,12 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7894
7899
  outline: ""
7895
7900
  })
7896
7901
  ]),
7897
- r("div", Lf, w(d(s)("order.displaySystem.legacyOds.layoutSettings")), 1)
7902
+ r("div", Nf, w(d(s)("order.displaySystem.legacyOds.layoutSettings")), 1)
7898
7903
  ]),
7899
- r("div", Nf, w(d(s)("order.displaySystem.legacyOds.layoutSettingsDescription")), 1)
7904
+ r("div", Vf, w(d(s)("order.displaySystem.legacyOds.layoutSettingsDescription")), 1)
7900
7905
  ]),
7901
- r("div", Vf, [
7902
- r("div", zf, [
7906
+ r("div", zf, [
7907
+ r("div", jf, [
7903
7908
  B(Q, {
7904
7909
  icon: "autorenew",
7905
7910
  label: d(s)("order.displaySystem.legacyOds.resetToDefault"),
@@ -7909,14 +7914,14 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7909
7914
  }, null, 8, ["label", "disabled"])
7910
7915
  ])
7911
7916
  ]),
7912
- r("div", jf, [
7913
- r("div", Wf, [
7917
+ r("div", Wf, [
7918
+ r("div", qf, [
7914
7919
  r("div", null, [
7915
- r("div", qf, w(d(s)("order.displaySystem.legacyOds.backgroundImage")), 1),
7916
- r("div", Gf, w(d(s)("order.displaySystem.legacyOds.backgroundImageDescription")), 1)
7920
+ r("div", Gf, w(d(s)("order.displaySystem.legacyOds.backgroundImage")), 1),
7921
+ r("div", Hf, w(d(s)("order.displaySystem.legacyOds.backgroundImageDescription")), 1)
7917
7922
  ]),
7918
- r("div", Hf, [
7919
- r("div", Kf, [
7923
+ r("div", Kf, [
7924
+ r("div", Jf, [
7920
7925
  B(et, {
7921
7926
  "model-value": J.value,
7922
7927
  label: d(s)("order.displaySystem.legacyOds.disable"),
@@ -7946,14 +7951,14 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7946
7951
  "onUpdate:modelValue": S[20] || (S[20] = () => ye("custom"))
7947
7952
  }, null, 8, ["model-value", "label", "disabled"])
7948
7953
  ]),
7949
- J.value !== "disable" && (J.value !== "custom" || xe.value) ? (f(), b("div", Jf, [
7950
- r("div", Zf, [
7954
+ J.value !== "disable" && (J.value !== "custom" || xe.value) ? (f(), b("div", Zf, [
7955
+ r("div", Yf, [
7951
7956
  r("img", {
7952
7957
  src: jt(((ia = T.value.background) == null ? void 0 : ia.url) ?? ""),
7953
7958
  class: "w-full h-full object-contain"
7954
- }, null, 8, Yf)
7959
+ }, null, 8, Xf)
7955
7960
  ]),
7956
- J.value === "custom" ? (f(), b("div", Xf, [
7961
+ J.value === "custom" ? (f(), b("div", Qf, [
7957
7962
  B(Q, {
7958
7963
  variant: "secondary",
7959
7964
  icon: "photo_library",
@@ -7971,20 +7976,20 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
7971
7976
  disabled: !d(l),
7972
7977
  onClick: S[22] || (S[22] = (ee) => Ce("background"))
7973
7978
  }, null, 8, ["label", "disabled"])) : z("", !0),
7974
- J.value === "disable" ? (f(), b("div", Qf, [
7975
- r("div", ey, w(d(s)("order.displaySystem.legacyOds.backgroundDisabled")), 1)
7979
+ J.value === "disable" ? (f(), b("div", ey, [
7980
+ r("div", ty, w(d(s)("order.displaySystem.legacyOds.backgroundDisabled")), 1)
7976
7981
  ])) : z("", !0)
7977
7982
  ])
7978
7983
  ])
7979
7984
  ]),
7980
- r("div", ty, [
7981
- r("div", oy, [
7985
+ r("div", oy, [
7986
+ r("div", ay, [
7982
7987
  r("div", null, [
7983
- r("div", ay, w(d(s)("order.displaySystem.legacyOds.sidePanelImage")), 1),
7984
- r("div", ny, w(d(s)("order.displaySystem.legacyOds.sidePanelImageDescription")), 1)
7988
+ r("div", ny, w(d(s)("order.displaySystem.legacyOds.sidePanelImage")), 1),
7989
+ r("div", sy, w(d(s)("order.displaySystem.legacyOds.sidePanelImageDescription")), 1)
7985
7990
  ]),
7986
- r("div", sy, [
7987
- r("div", ly, [
7991
+ r("div", ly, [
7992
+ r("div", ry, [
7988
7993
  B(et, {
7989
7994
  "model-value": we.value,
7990
7995
  label: d(s)("order.displaySystem.legacyOds.disable"),
@@ -8007,17 +8012,17 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8007
8012
  "onUpdate:modelValue": S[25] || (S[25] = () => Ne("custom"))
8008
8013
  }, null, 8, ["model-value", "label", "disabled"])
8009
8014
  ]),
8010
- we.value === "disable" ? (f(), b("div", ry, [
8011
- r("div", iy, w(d(s)("order.displaySystem.legacyOds.sidePanelDisabled")), 1)
8015
+ we.value === "disable" ? (f(), b("div", iy, [
8016
+ r("div", dy, w(d(s)("order.displaySystem.legacyOds.sidePanelDisabled")), 1)
8012
8017
  ])) : (f(), b(ie, { key: 1 }, [
8013
- we.value !== "custom" || Ze.value ? (f(), b("div", dy, [
8014
- r("div", uy, [
8018
+ we.value !== "custom" || Ze.value ? (f(), b("div", uy, [
8019
+ r("div", cy, [
8015
8020
  r("img", {
8016
8021
  src: jt(((da = T.value.sidePanel) == null ? void 0 : da.url) ?? ""),
8017
8022
  class: "w-full h-full object-contain"
8018
- }, null, 8, cy)
8023
+ }, null, 8, py)
8019
8024
  ]),
8020
- we.value === "custom" ? (f(), b("div", py, [
8025
+ we.value === "custom" ? (f(), b("div", my, [
8021
8026
  B(Q, {
8022
8027
  variant: "secondary",
8023
8028
  icon: "photo_library",
@@ -8035,9 +8040,9 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8035
8040
  disabled: !d(l),
8036
8041
  onClick: S[27] || (S[27] = (ee) => Ce("sidePanel"))
8037
8042
  }, null, 8, ["label", "disabled"])) : z("", !0),
8038
- (ua = c.value.layout) != null && ua.sidePanel ? (f(), b("div", my, [
8043
+ (ua = c.value.layout) != null && ua.sidePanel ? (f(), b("div", fy, [
8039
8044
  r("div", null, [
8040
- r("div", fy, w(d(s)("order.displaySystem.legacyOds.position")), 1),
8045
+ r("div", yy, w(d(s)("order.displaySystem.legacyOds.position")), 1),
8041
8046
  B(fe, {
8042
8047
  items: Ct.value,
8043
8048
  "model-value": Ct.value.find(
@@ -8053,7 +8058,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8053
8058
  }, null, 8, ["items", "model-value", "disabled"])
8054
8059
  ]),
8055
8060
  r("div", null, [
8056
- r("div", yy, w(d(s)("order.displaySystem.legacyOds.widthPercent")), 1),
8061
+ r("div", vy, w(d(s)("order.displaySystem.legacyOds.widthPercent")), 1),
8057
8062
  B(ue, {
8058
8063
  type: "number",
8059
8064
  "model-value": String(((ca = T.value.sidePanel) == null ? void 0 : ca.widthPercent) ?? 30),
@@ -8072,13 +8077,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8072
8077
  ])
8073
8078
  ])
8074
8079
  ]),
8075
- r("div", vy, [
8076
- r("div", gy, [
8080
+ r("div", gy, [
8081
+ r("div", by, [
8077
8082
  r("div", null, [
8078
- r("div", by, w(d(s)("order.displaySystem.legacyOds.boardWidth")), 1),
8079
- r("div", hy, w(d(s)("order.displaySystem.legacyOds.boardWidthDescription")), 1)
8083
+ r("div", hy, w(d(s)("order.displaySystem.legacyOds.boardWidth")), 1),
8084
+ r("div", wy, w(d(s)("order.displaySystem.legacyOds.boardWidthDescription")), 1)
8080
8085
  ]),
8081
- r("div", wy, [
8086
+ r("div", ky, [
8082
8087
  B(ot, {
8083
8088
  "model-value": T.value.boardWidthPercent ?? 100,
8084
8089
  label: "Board width percent",
@@ -8096,13 +8101,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8096
8101
  ])
8097
8102
  ])
8098
8103
  ]),
8099
- (T.value.boardWidthPercent ?? 100) < 100 ? (f(), b("div", ky, [
8100
- r("div", Sy, [
8104
+ (T.value.boardWidthPercent ?? 100) < 100 ? (f(), b("div", Sy, [
8105
+ r("div", xy, [
8101
8106
  r("div", null, [
8102
- r("div", xy, w(d(s)("order.displaySystem.legacyOds.boardAlignment")), 1),
8103
- r("div", _y, w(d(s)("order.displaySystem.legacyOds.boardAlignmentDescription")), 1)
8107
+ r("div", _y, w(d(s)("order.displaySystem.legacyOds.boardAlignment")), 1),
8108
+ r("div", Oy, w(d(s)("order.displaySystem.legacyOds.boardAlignmentDescription")), 1)
8104
8109
  ]),
8105
- r("div", Oy, [
8110
+ r("div", Py, [
8106
8111
  B(fe, {
8107
8112
  items: Pt.value,
8108
8113
  "model-value": Pt.value.find(
@@ -8117,13 +8122,13 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8117
8122
  ])
8118
8123
  ])
8119
8124
  ])) : z("", !0),
8120
- d(i) ? (f(), b("div", Py, [
8121
- r("div", Cy, [
8125
+ d(i) ? (f(), b("div", Cy, [
8126
+ r("div", Ey, [
8122
8127
  r("div", null, [
8123
- r("div", Ey, w(d(s)("order.displaySystem.legacyOds.footerMode")), 1),
8124
- r("div", Ty, w(d(s)("order.displaySystem.legacyOds.footerModeDescription")), 1)
8128
+ r("div", Ty, w(d(s)("order.displaySystem.legacyOds.footerMode")), 1),
8129
+ r("div", Iy, w(d(s)("order.displaySystem.legacyOds.footerModeDescription")), 1)
8125
8130
  ]),
8126
- r("div", Iy, [
8131
+ r("div", Ry, [
8127
8132
  B(fe, {
8128
8133
  items: ft.value,
8129
8134
  "model-value": ft.value.find(
@@ -8137,15 +8142,15 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8137
8142
  ])) : z("", !0)
8138
8143
  ])) : z("", !0)
8139
8144
  ]),
8140
- r("div", Ry, [
8141
- r("div", Ay, [
8142
- r("div", Dy, [
8143
- r("div", By, [
8145
+ r("div", Ay, [
8146
+ r("div", Dy, [
8147
+ r("div", By, [
8148
+ r("div", $y, [
8144
8149
  r("div", null, [
8145
- r("div", $y, w(d(s)("order.displaySystem.legacyOds.odsPreview")), 1),
8146
- r("div", My, w(d(s)("order.displaySystem.legacyOds.previewDescription")), 1)
8150
+ r("div", My, w(d(s)("order.displaySystem.legacyOds.odsPreview")), 1),
8151
+ r("div", Fy, w(d(s)("order.displaySystem.legacyOds.previewDescription")), 1)
8147
8152
  ]),
8148
- r("div", Fy, [
8153
+ r("div", Uy, [
8149
8154
  B(Q, {
8150
8155
  variant: "secondary",
8151
8156
  label: d(s)("order.displaySystem.legacyOds.openInNewTab"),
@@ -8155,7 +8160,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8155
8160
  ])
8156
8161
  ])
8157
8162
  ]),
8158
- r("div", Uy, [
8163
+ r("div", Ly, [
8159
8164
  rt.value ? (f(), b("div", {
8160
8165
  key: 0,
8161
8166
  ref_key: "previewViewportRef",
@@ -8183,12 +8188,12 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8183
8188
  width: Kt,
8184
8189
  height: Jt,
8185
8190
  class: "block border-0"
8186
- }, null, 8, Ly)
8191
+ }, null, 8, Ny)
8187
8192
  ], 4)
8188
8193
  ], 4)
8189
- ], 512)) : (f(), b("div", Ny, [
8190
- r("div", Vy, [
8191
- r("div", zy, w(d(s)("order.displaySystem.legacyOds.previewUnavailable")), 1),
8194
+ ], 512)) : (f(), b("div", Vy, [
8195
+ r("div", zy, [
8196
+ r("div", jy, w(d(s)("order.displaySystem.legacyOds.previewUnavailable")), 1),
8192
8197
  S[35] || (S[35] = r("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, [
8193
8198
  Ie(" Set a valid "),
8194
8199
  r("code", null, "VITE_ODS_PREVIEW_URL"),
@@ -8207,7 +8212,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8207
8212
  }),
8208
8213
  _: 1
8209
8214
  }),
8210
- B(d(Ln), {
8215
+ B(d(Nn), {
8211
8216
  open: ze.value,
8212
8217
  "onUpdate:open": S[33] || (S[33] = (gt) => ze.value = gt),
8213
8218
  "z-index": 70,
@@ -8216,7 +8221,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8216
8221
  onSelect: Xe
8217
8222
  }, null, 8, ["open", "business-id"])
8218
8223
  ])),
8219
- B(Vp, {
8224
+ B(zp, {
8220
8225
  modelValue: L.value,
8221
8226
  "onUpdate:modelValue": S[34] || (S[34] = (gt) => L.value = gt),
8222
8227
  title: d(s)("order.displaySystem.legacyOds.colorOverrideTitle"),
@@ -8229,23 +8234,23 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8229
8234
  ], 64);
8230
8235
  };
8231
8236
  }
8232
- }), Wy = /* @__PURE__ */ We(jy, [["__scopeId", "data-v-8a6a557f"]]), qy = { class: "mt-12" }, Gy = {
8237
+ }), qy = /* @__PURE__ */ We(Wy, [["__scopeId", "data-v-8a6a557f"]]), Gy = { class: "mt-12" }, Hy = {
8233
8238
  key: 0,
8234
8239
  class: "flex justify-center py-40"
8235
- }, Hy = {
8240
+ }, Ky = {
8236
8241
  key: 0,
8237
8242
  class: "empty-state"
8238
- }, Ky = {
8243
+ }, Jy = {
8239
8244
  key: 1,
8240
8245
  class: "grid grid-cols-1 gap-16 xl:grid-cols-2"
8241
- }, Jy = { class: "flex justify-between gap-12" }, Zy = { class: "min-w-0" }, Yy = { class: "flex items-center gap-8" }, Xy = { class: "truncate text-lg font-semibold" }, Qy = {
8246
+ }, Zy = { class: "flex justify-between gap-12" }, Yy = { class: "min-w-0" }, Xy = { class: "flex items-center gap-8" }, Qy = { class: "truncate text-lg font-semibold" }, ev = {
8242
8247
  key: 0,
8243
8248
  class: "default-badge"
8244
- }, ev = { class: "mt-4 truncate text-sm text-gray-500" }, tv = { class: "flex gap-4" }, ov = /* @__PURE__ */ he({
8249
+ }, tv = { class: "mt-4 truncate text-sm text-gray-500" }, ov = { class: "flex gap-4" }, av = /* @__PURE__ */ he({
8245
8250
  __name: "LegacyOdsTemplateList",
8246
8251
  setup(e, { expose: t }) {
8247
- const o = at(), { t: a } = Pe(), n = Za(), { showError: s, showSuccess: l } = Ka(), i = K({}), u = K(!0), c = K(!1), m = K(!1), h = V(
8248
- () => Qc(i.value.ods, a("order.displaySystem.legacyOds.default"))
8252
+ const o = at(), { t: a } = Pe(), n = Ya(), { showError: s, showSuccess: l } = Ka(), i = K({}), u = K(!0), c = K(!1), m = K(!1), h = V(
8253
+ () => ep(i.value.ods, a("order.displaySystem.legacyOds.default"))
8249
8254
  ), R = V(() => [
8250
8255
  {
8251
8256
  key: "colors.primary",
@@ -8314,7 +8319,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8314
8319
  if (!T || !m.value || c.value) return !1;
8315
8320
  c.value = !0;
8316
8321
  try {
8317
- return await Yd(T, F, $), ((x = o.currentBusiness.value) == null ? void 0 : x._id) !== T || o.namespace.value !== $ ? !1 : (i.value = { ...i.value, ods: F }, l(a("order.displaySystem.legacyOds.saved")), !0);
8322
+ return await Xd(T, F, $), ((x = o.currentBusiness.value) == null ? void 0 : x._id) !== T || o.namespace.value !== $ ? !1 : (i.value = { ...i.value, ods: F }, l(a("order.displaySystem.legacyOds.saved")), !0);
8318
8323
  } catch (v) {
8319
8324
  return s(v instanceof Error ? v.message : a("order.displaySystem.saveFailed")), !1;
8320
8325
  } finally {
@@ -8410,24 +8415,24 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8410
8415
  { immediate: !0 }
8411
8416
  ), t({ addOdsEntry: N }), (F, T) => {
8412
8417
  const $ = ae("FmCircularProgress"), O = ae("FmButton");
8413
- return f(), b("section", qy, [
8414
- u.value ? (f(), b("div", Gy, [
8418
+ return f(), b("section", Gy, [
8419
+ u.value ? (f(), b("div", Hy, [
8415
8420
  B($, { size: "lg" })
8416
8421
  ])) : m.value ? (f(), b(ie, { key: 1 }, [
8417
- h.value.length ? (f(), b("div", Ky, [
8422
+ h.value.length ? (f(), b("div", Jy, [
8418
8423
  (f(!0), b(ie, null, ve(h.value, (x, v) => (f(), b("article", {
8419
8424
  key: v,
8420
8425
  class: "resource-card"
8421
8426
  }, [
8422
- r("div", Jy, [
8423
- r("div", Zy, [
8424
- r("div", Yy, [
8425
- r("h3", Xy, w(p(x, v)), 1),
8426
- x.isDefault ? (f(), b("span", Qy, w(d(a)("order.displaySystem.legacyOds.default")), 1)) : z("", !0)
8427
+ r("div", Zy, [
8428
+ r("div", Yy, [
8429
+ r("div", Xy, [
8430
+ r("h3", Qy, w(p(x, v)), 1),
8431
+ x.isDefault ? (f(), b("span", ev, w(d(a)("order.displaySystem.legacyOds.default")), 1)) : z("", !0)
8427
8432
  ]),
8428
- r("p", ev, w(Y(x)), 1)
8433
+ r("p", tv, w(Y(x)), 1)
8429
8434
  ]),
8430
- r("div", tv, [
8435
+ r("div", ov, [
8431
8436
  B(O, {
8432
8437
  icon: "edit",
8433
8438
  variant: "plain",
@@ -8450,12 +8455,12 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8450
8455
  ])
8451
8456
  ])
8452
8457
  ]))), 128))
8453
- ])) : (f(), b("div", Hy, [
8458
+ ])) : (f(), b("div", Ky, [
8454
8459
  r("strong", null, w(d(a)("order.displaySystem.legacyOds.noConfigsYet")), 1),
8455
8460
  r("span", null, w(d(a)("order.displaySystem.legacyOds.noConfigsDescription")), 1)
8456
8461
  ]))
8457
8462
  ], 64)) : z("", !0),
8458
- B(Wy, {
8463
+ B(qy, {
8459
8464
  modelValue: j.value,
8460
8465
  "onUpdate:modelValue": T[0] || (T[0] = (x) => j.value = x),
8461
8466
  entry: D.value,
@@ -8470,57 +8475,57 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8470
8475
  ]);
8471
8476
  };
8472
8477
  }
8473
- }), av = /* @__PURE__ */ We(ov, [["__scopeId", "data-v-89811f78"]]), nv = { class: "py-[1.5rem]" }, sv = { class: "px-[1.5rem]" }, lv = { class: "display-toolbar" }, rv = { class: "text-sm text-gray-500" }, iv = { class: "display-actions" }, dv = { class: "display-controls" }, uv = {
8478
+ }), nv = /* @__PURE__ */ We(av, [["__scopeId", "data-v-89811f78"]]), sv = { class: "py-[1.5rem]" }, lv = { class: "px-[1.5rem]" }, rv = { class: "display-toolbar" }, iv = { class: "text-sm text-gray-500" }, dv = { class: "display-actions" }, uv = { class: "display-controls" }, cv = {
8474
8479
  key: 0,
8475
8480
  class: "display-outlet"
8476
- }, cv = {
8481
+ }, pv = {
8477
8482
  key: 0,
8478
8483
  class: "display-entitlement"
8479
- }, pv = {
8484
+ }, mv = {
8480
8485
  key: 0,
8481
8486
  class: "restriction-note"
8482
- }, mv = {
8487
+ }, fv = {
8483
8488
  key: 1,
8484
8489
  class: "restriction-note"
8485
- }, fv = {
8490
+ }, yv = {
8486
8491
  key: 2,
8487
8492
  class: "mt-12"
8488
- }, yv = {
8493
+ }, vv = {
8489
8494
  key: 0,
8490
8495
  class: "flex justify-center py-40"
8491
- }, vv = {
8496
+ }, gv = {
8492
8497
  key: 1,
8493
8498
  class: "empty-state"
8494
- }, gv = {
8499
+ }, bv = {
8495
8500
  key: 2,
8496
8501
  class: "grid grid-cols-1 gap-16 xl:grid-cols-2"
8497
- }, bv = { class: "flex justify-between gap-12" }, hv = { class: "min-w-0" }, wv = { class: "flex flex-wrap items-center gap-8" }, kv = { class: "truncate text-lg font-semibold" }, Sv = {
8502
+ }, hv = { class: "flex justify-between gap-12" }, wv = { class: "min-w-0" }, kv = { class: "flex flex-wrap items-center gap-8" }, Sv = { class: "truncate text-lg font-semibold" }, xv = {
8498
8503
  key: 0,
8499
8504
  class: "status-badge unlicensed"
8500
- }, xv = { class: "mt-4 text-sm text-gray-500" }, _v = {
8505
+ }, _v = { class: "mt-4 text-sm text-gray-500" }, Ov = {
8501
8506
  key: 0,
8502
8507
  class: "mt-2 text-xs text-orange-700"
8503
- }, Ov = {
8508
+ }, Pv = {
8504
8509
  key: 1,
8505
8510
  class: "mt-2 text-xs text-red-700"
8506
- }, Pv = { class: "flex gap-4" }, Cv = { class: "meta-grid" }, Ev = {
8511
+ }, Cv = { class: "flex gap-4" }, Ev = { class: "meta-grid" }, Tv = {
8507
8512
  key: 3,
8508
8513
  class: "mt-12"
8509
- }, Tv = {
8514
+ }, Iv = {
8510
8515
  key: 0,
8511
8516
  class: "flex justify-center py-40"
8512
- }, Iv = {
8517
+ }, Rv = {
8513
8518
  key: 1,
8514
8519
  class: "empty-state"
8515
- }, Rv = {
8520
+ }, Av = {
8516
8521
  key: 2,
8517
8522
  class: "grid grid-cols-1 gap-16 xl:grid-cols-2"
8518
- }, Av = { class: "flex justify-between gap-12" }, Dv = { class: "min-w-0" }, Bv = { class: "flex items-center gap-8" }, $v = { class: "truncate text-lg font-semibold" }, Mv = { class: "mode-badge" }, Fv = { class: "mt-2 text-xs text-gray-500" }, Uv = { class: "flex gap-4" }, Lv = { class: "layout-thumb" }, Nv = { class: "thumb-caption" }, Vv = /* @__PURE__ */ he({
8523
+ }, Dv = { class: "flex justify-between gap-12" }, Bv = { class: "min-w-0" }, $v = { class: "flex items-center gap-8" }, Mv = { class: "truncate text-lg font-semibold" }, Fv = { class: "mode-badge" }, Uv = { class: "mt-2 text-xs text-gray-500" }, Lv = { class: "flex gap-4" }, Nv = { class: "layout-thumb" }, Vv = { class: "thumb-caption" }, zv = /* @__PURE__ */ he({
8519
8524
  __name: "DisplaySystemView",
8520
8525
  setup(e) {
8521
8526
  var Xe;
8522
- const { t } = Pe(), { showError: o, showSuccess: a } = Ka(), n = Qn(), s = es(), l = at(), i = Rs(), { canManageOrderSetting: u } = ds(), { canManageBrandkit: c } = Jc(), m = K(!1), h = V(
8523
- () => Zc({
8527
+ const { t } = Pe(), { showError: o, showSuccess: a } = Ka(), n = es(), s = ts(), l = at(), i = Rs(), { canManageOrderSetting: u } = ds(), { canManageBrandkit: c } = Zc(), m = K(!1), h = V(
8528
+ () => Yc({
8524
8529
  canManageOrderSetting: u.value,
8525
8530
  canManageBrandkit: c.value,
8526
8531
  outlets: l.restaurants.value,
@@ -8534,8 +8539,8 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8534
8539
  return (L = l.currentRestaurant.value) == null ? void 0 : L._id;
8535
8540
  }],
8536
8541
  ([L, H, Z]) => {
8537
- const ce = Xc(n.query);
8538
- ce && L.includes(ce) ? (R.value = ce, j = !0) : (!j || !R.value || !L.includes(R.value)) && (R.value = Yc(L, l.restaurants.value, Z), j = !!(H && Z));
8542
+ const ce = Qc(n.query);
8543
+ ce && L.includes(ce) ? (R.value = ce, j = !0) : (!j || !R.value || !L.includes(R.value)) && (R.value = Xc(L, l.restaurants.value, Z), j = !!(H && Z));
8539
8544
  },
8540
8545
  { immediate: !0 }
8541
8546
  );
@@ -8632,7 +8637,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8632
8637
  }
8633
8638
  async function Ne(L) {
8634
8639
  try {
8635
- const H = Qa(L);
8640
+ const H = en(L);
8636
8641
  H.label = `${L.label} ${t("order.displaySystem.copySuffix")}`, await i.createTemplate(ma(H)), a(t("order.displaySystem.templateSaved"));
8637
8642
  } catch (H) {
8638
8643
  o(H instanceof Error ? H.message : t("order.displaySystem.saveFailed"));
@@ -8689,14 +8694,14 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8689
8694
  var Ge;
8690
8695
  const Z = ae("FmPageHead"), ce = ae("FmButton"), Ee = ae("FmTabs"), Ue = ae("FmSelect"), Qe = ae("FmCircularProgress");
8691
8696
  return f(), b(ie, null, [
8692
- r("div", nv, [
8697
+ r("div", sv, [
8693
8698
  B(Z, {
8694
8699
  title: R.value === "v7" ? d(t)("order.displaySystem.legacyOds.title") : d(t)("order.displaySystem.title")
8695
8700
  }, null, 8, ["title"]),
8696
- r("div", sv, [
8697
- r("div", lv, [
8698
- r("p", rv, w(R.value === "v7" ? d(t)("order.displaySystem.legacyOds.description") : d(t)("order.displaySystem.description")), 1),
8699
- r("div", iv, [
8701
+ r("div", lv, [
8702
+ r("div", rv, [
8703
+ r("p", iv, w(R.value === "v7" ? d(t)("order.displaySystem.legacyOds.description") : d(t)("order.displaySystem.description")), 1),
8704
+ r("div", dv, [
8700
8705
  A.value ? (f(), re(ce, {
8701
8706
  key: 0,
8702
8707
  variant: "plain",
@@ -8724,14 +8729,14 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8724
8729
  ])
8725
8730
  ]),
8726
8731
  R.value === "v8" ? (f(), b(ie, { key: 0 }, [
8727
- r("div", dv, [
8732
+ r("div", uv, [
8728
8733
  B(Ee, {
8729
8734
  "model-value": C.value,
8730
8735
  "onUpdate:modelValue": H[3] || (H[3] = (se) => C.value = se),
8731
8736
  items: le.value
8732
8737
  }, null, 8, ["model-value", "items"]),
8733
- C.value === "screens" ? (f(), b("div", uv, [
8734
- $.value ? (f(), b("p", cv, w(d(t)("order.displaySystem.screensUsed", { used: $.value.screenUsed, limit: $.value.screenLimit })) + " · " + w($.value.capabilities.join(", ") || d(t)("order.displaySystem.noModulesLicensed")), 1)) : z("", !0),
8738
+ C.value === "screens" ? (f(), b("div", cv, [
8739
+ $.value ? (f(), b("p", pv, w(d(t)("order.displaySystem.screensUsed", { used: $.value.screenUsed, limit: $.value.screenLimit })) + " · " + w($.value.capabilities.join(", ") || d(t)("order.displaySystem.noModulesLicensed")), 1)) : z("", !0),
8735
8740
  B(Ue, {
8736
8741
  class: "display-restaurant-select",
8737
8742
  "model-value": p.value,
@@ -8742,7 +8747,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8742
8747
  }, null, 8, ["model-value", "items", "placeholder"])
8743
8748
  ])) : z("", !0)
8744
8749
  ]),
8745
- C.value === "screens" && Y.value && !F.value ? (f(), b("div", pv, [
8750
+ C.value === "screens" && Y.value && !F.value ? (f(), b("div", mv, [
8746
8751
  r("p", null, w(Y.value.posVersion ? d(t)("order.displaySystem.posV8RequiredVersion", { version: Y.value.posVersion }) : d(t)("order.displaySystem.posV8Required")), 1),
8747
8752
  h.value.includes("v7") ? (f(), re(ce, {
8748
8753
  key: 0,
@@ -8750,32 +8755,32 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8750
8755
  label: d(t)("order.displaySystem.legacyOds.openLegacyTab"),
8751
8756
  onClick: H[4] || (H[4] = (se) => D("v7"))
8752
8757
  }, null, 8, ["label"])) : z("", !0)
8753
- ])) : C.value === "screens" && !y.value && !d(i).loadingScreenCapabilities ? (f(), b("p", mv, w(v.value.length ? d(t)("order.displaySystem.screenLimitReached") : d(t)("order.displaySystem.noTemplatesDescription")), 1)) : z("", !0),
8754
- C.value === "screens" ? (f(), b("section", fv, [
8755
- d(i).loadingScreens ? (f(), b("div", yv, [
8758
+ ])) : C.value === "screens" && !y.value && !d(i).loadingScreenCapabilities ? (f(), b("p", fv, w(v.value.length ? d(t)("order.displaySystem.screenLimitReached") : d(t)("order.displaySystem.noTemplatesDescription")), 1)) : z("", !0),
8759
+ C.value === "screens" ? (f(), b("section", yv, [
8760
+ d(i).loadingScreens ? (f(), b("div", vv, [
8756
8761
  B(Qe, { size: "lg" })
8757
- ])) : d(i).screens.length ? (f(), b("div", gv, [
8762
+ ])) : d(i).screens.length ? (f(), b("div", bv, [
8758
8763
  (f(!0), b(ie, null, ve(d(i).screens, (se) => (f(), b("article", {
8759
8764
  key: se._id,
8760
8765
  class: "resource-card"
8761
8766
  }, [
8762
- r("div", bv, [
8763
- r("div", hv, [
8764
- r("div", wv, [
8765
- r("h3", kv, w(se.name), 1),
8767
+ r("div", hv, [
8768
+ r("div", wv, [
8769
+ r("div", kv, [
8770
+ r("h3", Sv, w(se.name), 1),
8766
8771
  r("span", {
8767
8772
  class: me(["status-badge", se.status.toLowerCase()])
8768
8773
  }, w(se.status), 3),
8769
8774
  r("span", {
8770
8775
  class: me(["online-dot", { online: J(se) }])
8771
8776
  }, w(J(se) ? d(t)("order.displaySystem.online") : d(t)("order.displaySystem.offline")), 3),
8772
- O.value.has(se._id) ? (f(), b("span", Sv, w(d(t)("order.displaySystem.unlicensed")), 1)) : z("", !0)
8777
+ O.value.has(se._id) ? (f(), b("span", xv, w(d(t)("order.displaySystem.unlicensed")), 1)) : z("", !0)
8773
8778
  ]),
8774
- r("p", xv, w(W(se.templateId)), 1),
8775
- oe(se) ? (f(), b("p", _v, "Reported viewport orientation does not match the template.")) : z("", !0),
8776
- O.value.has(se._id) ? (f(), b("p", Ov, w(d(t)("order.displaySystem.unlicensedNote")), 1)) : z("", !0)
8779
+ r("p", _v, w(W(se.templateId)), 1),
8780
+ oe(se) ? (f(), b("p", Ov, "Reported viewport orientation does not match the template.")) : z("", !0),
8781
+ O.value.has(se._id) ? (f(), b("p", Pv, w(d(t)("order.displaySystem.unlicensedNote")), 1)) : z("", !0)
8777
8782
  ]),
8778
- r("div", Pv, [
8783
+ r("div", Cv, [
8779
8784
  B(ce, {
8780
8785
  icon: se.status === "DISABLED" ? "play_arrow" : "pause",
8781
8786
  variant: "plain",
@@ -8793,7 +8798,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8793
8798
  }, null, 8, ["onClick"])
8794
8799
  ])
8795
8800
  ]),
8796
- r("dl", Cv, [
8801
+ r("dl", Ev, [
8797
8802
  r("div", null, [
8798
8803
  r("dt", null, w(d(t)("order.displaySystem.deviceId")), 1),
8799
8804
  r("dd", null, w(se.deviceId || "—"), 1)
@@ -8804,27 +8809,27 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8804
8809
  ])
8805
8810
  ])
8806
8811
  ]))), 128))
8807
- ])) : (f(), b("div", vv, [
8812
+ ])) : (f(), b("div", gv, [
8808
8813
  r("strong", null, w(d(t)("order.displaySystem.noScreens")), 1),
8809
8814
  H[7] || (H[7] = r("span", null, "Create a screen and assign one applicable template.", -1))
8810
8815
  ]))
8811
- ])) : C.value === "templates" ? (f(), b("section", Ev, [
8812
- d(i).loadingTemplates ? (f(), b("div", Tv, [
8816
+ ])) : C.value === "templates" ? (f(), b("section", Tv, [
8817
+ d(i).loadingTemplates ? (f(), b("div", Iv, [
8813
8818
  B(Qe, { size: "lg" })
8814
- ])) : d(i).templates.length ? (f(), b("div", Rv, [
8819
+ ])) : d(i).templates.length ? (f(), b("div", Av, [
8815
8820
  (f(!0), b(ie, null, ve(d(i).templates, (se) => (f(), b("article", {
8816
8821
  key: se._id,
8817
8822
  class: "resource-card"
8818
8823
  }, [
8819
- r("div", Av, [
8820
- r("div", Dv, [
8821
- r("div", Bv, [
8822
- r("h3", $v, w(se.label), 1),
8823
- r("span", Mv, w(se.orientation), 1)
8824
+ r("div", Dv, [
8825
+ r("div", Bv, [
8826
+ r("div", $v, [
8827
+ r("h3", Mv, w(se.label), 1),
8828
+ r("span", Fv, w(se.orientation), 1)
8824
8829
  ]),
8825
- r("p", Fv, w(d(tn)(se).join(", ") || "INFO"), 1)
8830
+ r("p", Uv, w(d(on)(se).join(", ") || "INFO"), 1)
8826
8831
  ]),
8827
- r("div", Uv, [
8832
+ r("div", Lv, [
8828
8833
  B(ce, {
8829
8834
  icon: "edit",
8830
8835
  variant: "plain",
@@ -8842,28 +8847,28 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8842
8847
  }, null, 8, ["onClick"])
8843
8848
  ])
8844
8849
  ]),
8845
- r("div", Lv, [
8846
- B(Hc, {
8850
+ r("div", Nv, [
8851
+ B(Kc, {
8847
8852
  node: se.root,
8848
8853
  "selected-zone-id": "",
8849
8854
  "start-index": 1
8850
8855
  }, null, 8, ["node"])
8851
8856
  ]),
8852
- r("p", Nv, w(d(t)("order.displaySystem.areasCount", { count: G(se).areas })) + " · " + w(d(t)("order.displaySystem.modulesCount", { count: G(se).modules })), 1)
8857
+ r("p", Vv, w(d(t)("order.displaySystem.areasCount", { count: G(se).areas })) + " · " + w(d(t)("order.displaySystem.modulesCount", { count: G(se).modules })), 1)
8853
8858
  ]))), 128))
8854
- ])) : (f(), b("div", Iv, [
8859
+ ])) : (f(), b("div", Rv, [
8855
8860
  r("strong", null, w(d(t)("order.displaySystem.noTemplates")), 1),
8856
8861
  r("span", null, w(d(t)("order.displaySystem.noTemplatesDescription")), 1)
8857
8862
  ]))
8858
8863
  ])) : z("", !0)
8859
- ], 64)) : R.value === "v7" ? (f(), re(av, {
8864
+ ], 64)) : R.value === "v7" ? (f(), re(nv, {
8860
8865
  key: 1,
8861
8866
  ref_key: "legacyOdsList",
8862
8867
  ref: U
8863
8868
  }, null, 512)) : z("", !0)
8864
8869
  ])
8865
8870
  ]),
8866
- d(u) ? (f(), re(Vc, {
8871
+ d(u) ? (f(), re(zc, {
8867
8872
  key: 0,
8868
8873
  modelValue: k.value,
8869
8874
  "onUpdate:modelValue": H[5] || (H[5] = (se) => k.value = se),
@@ -8886,7 +8891,7 @@ const Wp = { class: "flex items-center px-24 pt-16 pb-8 border-b border-fm-color
8886
8891
  ], 64);
8887
8892
  };
8888
8893
  }
8889
- }), Qv = /* @__PURE__ */ We(Vv, [["__scopeId", "data-v-7d7f3bb9"]]);
8894
+ }), eg = /* @__PURE__ */ We(zv, [["__scopeId", "data-v-7d7f3bb9"]]);
8890
8895
  export {
8891
- Qv as default
8896
+ eg as default
8892
8897
  };