@feedmepos/mf-menu-portal 1.0.4-dev.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/{App-nS46pByh.js → App-CgYpEYgp.js} +3 -3
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js} +1 -1
  3. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-DnvN5R5w.js → BindingTable.vue_vue_type_script_setup_true_lang-CWe5_Sm5.js} +1 -1
  4. package/dist/{Catalog-B4RS8T29.js → Catalog-BrHGEI3p.js} +4 -4
  5. package/dist/{CatalogBinding-6_783kbu.js → CatalogBinding-BjTeOA91.js} +3 -3
  6. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-BawCLY5-.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-doB3hsWD.js} +3 -3
  7. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BjP8ZXyb.js → CatalogEditor.vue_vue_type_script_setup_true_lang-BpBR-N_x.js} +7 -7
  8. package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Diapahfp.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-P59vHZEn.js} +14 -14
  9. package/dist/{Category-CqneIGq4.js → Category-6-ppsSmZ.js} +5 -5
  10. package/dist/{Category-DNQH1CI7.js → Category-CdsbuUqi.js} +2 -2
  11. package/dist/CategoryList.vue_vue_type_script_setup_true_lang-DlNUOgyu.js +847 -0
  12. package/dist/{CookingGuide-DTAiFmEL.js → CookingGuide-CRyRlBeV.js} +5 -5
  13. package/dist/{Group-5xO2j3CL.js → Group-DVrUlq4i.js} +2 -2
  14. package/dist/{Group-DeUqUomY.js → Group-DqyBHSFx.js} +5 -5
  15. package/dist/GroupList.vue_vue_type_script_setup_true_lang-oGNs8e8f.js +1807 -0
  16. package/dist/Ingredient-CGLfhbvN.js +505 -0
  17. package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js +782 -0
  18. package/dist/{MenuSetting-DdekHsQy.js → MenuSetting-Oct3vbHj.js} +4 -4
  19. package/dist/OrderPacing-BDkzflgE.js +769 -0
  20. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-C3SqQPSr.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-B259anSs.js} +2 -2
  21. package/dist/{Preview-DGTw0POk.js → Preview-V9cSpevb.js} +1 -1
  22. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-DffhFv0Y.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-k5S4mGCN.js} +1 -1
  23. package/dist/PrintRoute-3UwiMoBU.js +518 -0
  24. package/dist/{Product-CsbcyIgD.js → Product-LaB-YRTQ.js} +4 -4
  25. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +7931 -0
  26. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang--rBKdKV7.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-BBXGnZtc.js} +9 -9
  27. package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BUC6qUnG.js +2011 -0
  28. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-DtCzHjpN.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CjQRRqBx.js} +1 -1
  29. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-aDx01-WW.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-3yzUcogQ.js} +630 -587
  30. package/dist/{ProductInternalTools-Ccd4dAmx.js → ProductInternalTools-DWCgC825.js} +2 -2
  31. package/dist/{ProductInventoryDialog-DYcKdKHi.js → ProductInventoryDialog-D0d5RywR.js} +1 -1
  32. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DySFcCJz.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-CmYKO0ZX.js} +1 -1
  33. package/dist/ProductList.vue_vue_type_script_setup_true_lang-DeX8Exly.js +2765 -0
  34. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Dw2xiPYX.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BFD6_Sbb.js} +1 -1
  35. package/dist/{Products-phZwCZhU.js → Products-BLUhwFT-.js} +3 -3
  36. package/dist/Publish-Dkjnls7p.js +1337 -0
  37. package/dist/Recipe-BGfofjHT.js +388 -0
  38. package/dist/{Scheduler-C-A5m92O.js → Scheduler-BL7t8aS7.js} +314 -254
  39. package/dist/ServingSequence-CDFXMCiN.js +374 -0
  40. package/dist/{Setting-C24V-lps.js → Setting-gYZoZxQG.js} +6 -6
  41. package/dist/Subcategory-CnlrVwCy.js +459 -0
  42. package/dist/{Takeaway-BFP2ohJn.js → Takeaway-BWVzwWnh.js} +5 -5
  43. package/dist/{Takeaway-DywX5BiX.js → Takeaway-D8FzvC2w.js} +2 -2
  44. package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-B3QS7o1v.js → TakeawayList.vue_vue_type_script_setup_true_lang-igS-FXq5.js} +4 -4
  45. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B8nXazx6.js +1291 -0
  46. package/dist/Unit-Do7Tt8U8.js +424 -0
  47. package/dist/{Variant-BBfWhH-s.js → Variant-D1kLupxx.js} +5 -5
  48. package/dist/{_id_-BooM3FX1.js → _id_-DomaBHrh.js} +3 -3
  49. package/dist/{app-Bmgb8ACe.js → app-C_XNYz8_.js} +312 -312
  50. package/dist/app.js +1 -1
  51. package/dist/apps/mf-menu/src/app.d.ts +60 -0
  52. package/dist/apps/mf-menu/src/components/Product/BulkCategorySelect.vue.d.ts +37 -0
  53. package/dist/apps/mf-menu/src/components/Product/ProductAttributeFilter.vue.d.ts +11 -1
  54. package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +2 -2
  55. package/dist/apps/mf-menu/src/components/feature/NestedGroupManager/NestedGroupOverrideSheets.vue.d.ts +27 -0
  56. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesFilter.vue.d.ts +20 -0
  57. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  58. package/dist/assets/{menu-compute-CG-fX5pi.js → menu-compute-Did75Kp9.js} +2 -2
  59. package/dist/assets/{validate-menu-BeGMWVns.js → validate-menu-DVMOLygB.js} +2 -2
  60. package/dist/mf-menu-portal.css +1 -1
  61. package/dist/{provide-CfF0FmUz.js → provide-Bwf3KcOV.js} +67991 -66892
  62. package/dist/{useActionFeedback-DyUCQl2x.js → useActionFeedback-CXx7dOVc.js} +1 -1
  63. package/dist/{FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js → vuedraggable-CBtQLb_S.js} +140 -139
  64. package/package.json +2 -2
  65. package/dist/CategoryList.vue_vue_type_script_setup_true_lang-Bt_onPrP.js +0 -797
  66. package/dist/GroupList.vue_vue_type_script_setup_true_lang-Dgya_JLB.js +0 -2183
  67. package/dist/Ingredient-BlDW3TfZ.js +0 -463
  68. package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-0tCpJlOf.js +0 -709
  69. package/dist/OrderPacing-Bb2n5wmI.js +0 -698
  70. package/dist/PrintRoute-CJB4gIP2.js +0 -473
  71. package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D8DygCBl.js +0 -110
  72. package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-J6LpJ5wT.js +0 -1257
  73. package/dist/ProductList.vue_vue_type_script_setup_true_lang-DTLslTpK.js +0 -10353
  74. package/dist/Publish-BeKIXu3z.js +0 -1261
  75. package/dist/Recipe-Fo4tBkBv.js +0 -350
  76. package/dist/ServingSequence-BrCwLSO7.js +0 -336
  77. package/dist/Subcategory-B0oZIKbw.js +0 -412
  78. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D7mhnrXx.js +0 -1213
  79. package/dist/Unit-NhEwH-kr.js +0 -385
  80. package/dist/apps/mf-menu/src/views/MenuManagementEditor/RestaurantAttributesFilter.vue.d.ts +0 -2
@@ -1,73 +1,79 @@
1
- import { defineComponent as te, computed as x, ref as Z, shallowRef as ee, h as z, withModifiers as xe, onUnmounted as Ve, resolveComponent as v, openBlock as n, createBlock as F, unref as l, withCtx as y, createElementBlock as c, toDisplayString as f, Fragment as L, createElementVNode as b, createVNode as s, createCommentVNode as _, mergeProps as Le, renderList as T, createTextVNode as Se } from "vue";
2
- import { useI18n as Pe, formatTimeOfDay as le } from "@feedmepos/mf-common";
3
- import { useDialog as Ue, components as ae, FmButtonVariant as Te } from "@feedmepos/ui-library";
4
- import { _ as $e } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
5
- import { _ as Me } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-0tCpJlOf.js";
6
- import { _ as $ } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
7
- import { _ as De } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
8
- import { u as Ee } from "./useActionFeedback-DyUCQl2x.js";
9
- import { u as Ie } from "./useEditorValidation-Ctef5Bxt.js";
10
- import { b as Ae, u as Re, a as ze } from "./provide-CfF0FmUz.js";
11
- const Be = {
1
+ import { defineComponent as ie, computed as x, ref as se, shallowRef as oe, h as j, withModifiers as ne, onUnmounted as Ue, resolveComponent as b, openBlock as s, createBlock as g, unref as l, withCtx as h, createElementBlock as c, toDisplayString as f, Fragment as V, createElementVNode as p, createVNode as o, renderList as S, createCommentVNode as F, mergeProps as $e, createTextVNode as Te } from "vue";
2
+ import { useI18n as Ie, formatTimeOfDay as ue } from "@feedmepos/mf-common";
3
+ import { useDialog as Me, useBreakpoints as De, components as de, FmButtonVariant as Ee } from "@feedmepos/ui-library";
4
+ import { _ as Ae } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
5
+ import { _ as ze } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js";
6
+ import { _ as T } from "./vuedraggable-CBtQLb_S.js";
7
+ import { _ as Be } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
8
+ import { u as Re } from "./useActionFeedback-CXx7dOVc.js";
9
+ import { u as je } from "./useEditorValidation-Ctef5Bxt.js";
10
+ import { b as Ne, u as Ge, a as Oe } from "./provide-Bwf3KcOV.js";
11
+ const He = {
12
12
  key: 0,
13
13
  class: "flex flex-1 justify-end"
14
- }, je = {
14
+ }, Ke = {
15
15
  key: 0,
16
16
  role: "alert",
17
17
  class: "text-fm-color-typo-secondary"
18
- }, Ne = { class: "flex justify-end" }, Ge = { class: "w-[320px]" }, Oe = { class: "space-y-0 py-8" }, He = {
18
+ }, qe = { class: "flex justify-end" }, Qe = { class: "w-[320px] xs:w-full xs:px-16 xs:mt-8" }, We = { class: "min-w-0 grow space-y-4" }, Je = { class: "fm-typo-en-body-lg-600 break-words" }, Xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words" }, Ze = {
19
+ key: 0,
20
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary break-words"
21
+ }, el = {
22
+ key: 2,
23
+ class: "fixed right-16 bottom-[72px] z-[100]"
24
+ }, ll = { class: "space-y-0 py-8" }, al = {
19
25
  key: 0,
20
26
  class: "grid grid-cols-4 gap-8 pl-32 pt-4"
21
- }, Ke = {
27
+ }, tl = {
22
28
  key: 0,
23
29
  class: "flex flex-col items-start gap-16 pl-32 pt-12"
24
- }, qe = {
30
+ }, sl = {
25
31
  key: 0,
26
32
  class: "-mt-16 space-y-16"
27
- }, Qe = {
33
+ }, ol = {
28
34
  key: 0,
29
35
  class: "flex items-center"
30
- }, We = {
36
+ }, nl = {
31
37
  key: 1,
32
38
  class: "text-fm-color-typo-secondary"
33
- }, Je = { class: "flex flex-1 flex-wrap items-center gap-4" }, Xe = { class: "sr-only" }, Ye = { class: "-mt-14" }, Ze = {
39
+ }, ul = { class: "flex flex-1 flex-wrap items-center gap-4" }, dl = { class: "sr-only" }, il = { class: "-mt-14" }, rl = {
34
40
  key: 0,
35
41
  class: "space-y-8"
36
- }, el = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, ll = { class: "flex gap-8" }, al = /* @__PURE__ */ te({
42
+ }, cl = { class: "bg-fm-color-neutral-gray-100 px-16 py-8" }, ml = { class: "flex gap-8" }, pl = /* @__PURE__ */ ie({
37
43
  __name: "SchedulerList",
38
44
  props: {
39
45
  sdk: {}
40
46
  },
41
- setup(B) {
42
- const w = B, { locale: C, t: e } = Pe(), A = Ae(), se = Ue(), { run: j } = Ee(), S = Re(w.sdk.scheduler.list), k = x(
43
- () => S.value.status === "ready" ? S.value.value : null
44
- ), oe = x(() => {
47
+ setup(N) {
48
+ const w = N, { locale: C, t: e } = Ie(), A = Ne(), re = Me(), { run: G } = Re(), P = Ge(w.sdk.scheduler.list), _ = x(
49
+ () => P.value.status === "ready" ? P.value.value : null
50
+ ), ce = x(() => {
45
51
  var a;
46
- return ((a = k.value) == null ? void 0 : a.query) ?? "";
47
- }), ne = x(() => {
52
+ return ((a = _.value) == null ? void 0 : a.query) ?? "";
53
+ }), { breakpoints: me } = De(), z = x(() => me.value.xs), pe = x(() => {
48
54
  var a;
49
- return [...((a = k.value) == null ? void 0 : a.rows) ?? []];
50
- }), V = Z(!1), M = Z(!1), u = ee(
55
+ return [...((a = _.value) == null ? void 0 : a.rows) ?? []];
56
+ }), L = se(!1), I = se(!1), u = oe(
51
57
  w.sdk.scheduler.editor()
52
- ), P = ee(
58
+ ), U = oe(
53
59
  u.value.get()
54
60
  );
55
- let R = u.value.subscribe(
61
+ let B = u.value.subscribe(
56
62
  (a) => {
57
- P.value = a;
63
+ U.value = a;
58
64
  }
59
65
  );
60
- const o = x(
61
- () => P.value.status === "ready" ? P.value.value : null
62
- ), D = Ie(() => u.value), N = x(
63
- () => o.value ? D.issue(o.value.fieldIssues, "name") ?? o.value.nameIssue : null
64
- ), G = x(
65
- () => o.value ? D.issue(o.value.fieldIssues, "periods") ?? o.value.periodIssue : null
66
- ), ue = (a) => z(
66
+ const n = x(
67
+ () => U.value.status === "ready" ? U.value.value : null
68
+ ), M = je(() => u.value), O = x(
69
+ () => n.value ? M.issue(n.value.fieldIssues, "name") ?? n.value.nameIssue : null
70
+ ), H = x(
71
+ () => n.value ? M.issue(n.value.fieldIssues, "periods") ?? n.value.periodIssue : null
72
+ ), ve = (a) => j(
67
73
  "div",
68
74
  { class: "relative -top-[2px] fm-typo-en-body-lg-400 tracking-normal" },
69
- z("span", a.message)
70
- ), re = [
75
+ j("span", a.message)
76
+ ), be = [
71
77
  "monday",
72
78
  "tuesday",
73
79
  "wednesday",
@@ -76,7 +82,7 @@ const Be = {
76
82
  "saturday",
77
83
  "sunday"
78
84
  ];
79
- function U(a) {
85
+ function $(a) {
80
86
  return {
81
87
  monday: e("menu.scheduler.days.monday"),
82
88
  tuesday: e("menu.scheduler.days.tuesday"),
@@ -87,34 +93,34 @@ const Be = {
87
93
  sunday: e("menu.scheduler.days.sunday")
88
94
  }[a];
89
95
  }
90
- function O(a) {
91
- R(), u.value.dispose(), u.value = w.sdk.scheduler.editor(a), P.value = u.value.get(), R = u.value.subscribe(
96
+ function K(a) {
97
+ B(), u.value.dispose(), u.value = w.sdk.scheduler.editor(a), U.value = u.value.get(), B = u.value.subscribe(
92
98
  (t) => {
93
- P.value = t;
99
+ U.value = t;
94
100
  }
95
101
  );
96
102
  }
97
- function H() {
103
+ function R() {
98
104
  var a;
99
- ((a = k.value) == null ? void 0 : a.create.state) === "allowed" && (O(), V.value = !0);
105
+ ((a = _.value) == null ? void 0 : a.create.state) === "allowed" && (K(), L.value = !0);
100
106
  }
101
- function de(a) {
102
- O(a.id), V.value = !0;
107
+ function q(a) {
108
+ K(a.id), L.value = !0;
103
109
  }
104
- function ie(a) {
110
+ function Q(a) {
105
111
  return a.periods.length ? a.periods.map(
106
112
  (t) => e("menu.scheduler.table.period_range", {
107
- start: le(
113
+ start: ue(
108
114
  t.start,
109
115
  C.value
110
116
  ).toLocaleLowerCase(C.value),
111
- end: le(t.end, C.value).toLocaleLowerCase(
117
+ end: ue(t.end, C.value).toLocaleLowerCase(
112
118
  C.value
113
119
  )
114
120
  })
115
121
  ).join(e("menu.scheduler.table.list_separator")) : e("menu.scheduler.dialog.sections.period.all_day");
116
122
  }
117
- function ce(a) {
123
+ function W(a) {
118
124
  const t = a.repeatPresentation;
119
125
  switch (t.kind) {
120
126
  case "daily":
@@ -125,39 +131,39 @@ const Be = {
125
131
  return e("menu.scheduler.repeat.weekends");
126
132
  case "except":
127
133
  return e("menu.scheduler.repeat.except", {
128
- day: U(t.day)
134
+ day: $(t.day)
129
135
  });
130
136
  case "range":
131
137
  return e("menu.scheduler.repeat.range", {
132
- start: U(t.start),
133
- end: U(t.end)
138
+ start: $(t.start),
139
+ end: $(t.end)
134
140
  });
135
141
  case "days":
136
- return t.days.map(U).join(e("menu.scheduler.repeat.list_separator"));
142
+ return t.days.map($).join(e("menu.scheduler.repeat.list_separator"));
137
143
  }
138
144
  }
139
- function me(a) {
140
- u.value.setLinkedProductIds(a), M.value = !1;
145
+ function ye(a) {
146
+ u.value.setLinkedProductIds(a), I.value = !1;
141
147
  }
142
- async function pe() {
148
+ async function he() {
143
149
  var t;
144
- (await j(
145
- () => D.submit(() => u.value.submit()),
150
+ (await G(
151
+ () => M.submit(() => u.value.submit()),
146
152
  {
147
153
  showLoading: () => {
148
- var h;
149
- return ((h = o.value) == null ? void 0 : h.status) === "submitting";
154
+ var k;
155
+ return ((k = n.value) == null ? void 0 : k.status) === "submitting";
150
156
  },
151
157
  successMessage: e("menu.scheduler.actions.saved", {
152
- name: ((t = o.value) == null ? void 0 : t.name.trim()) ?? ""
158
+ name: ((t = n.value) == null ? void 0 : t.name.trim()) ?? ""
153
159
  })
154
160
  }
155
- )).kind === "success" && (V.value = !1);
161
+ )).kind === "success" && (L.value = !1);
156
162
  }
157
- function ve(a) {
158
- a.remove.state === "allowed" && se.open({
163
+ function J(a) {
164
+ a.remove.state === "allowed" && re.open({
159
165
  title: e("menu.scheduler.dialogs.remove.title"),
160
- contentComponent: ue,
166
+ contentComponent: ve,
161
167
  contentComponentProps: {
162
168
  message: e("menu.scheduler.dialogs.remove.message", {
163
169
  name: a.name
@@ -168,21 +174,21 @@ const Be = {
168
174
  primaryActions: {
169
175
  text: e("menu.common.actions.remove"),
170
176
  close: !0,
171
- variant: Te.Destructive
177
+ variant: Ee.Destructive
172
178
  },
173
179
  secondaryActions: {
174
180
  text: e("menu.common.actions.cancel"),
175
181
  close: !0
176
182
  }
177
183
  }).onPrimary(async () => {
178
- await j(() => w.sdk.scheduler.remove(a.id), {
184
+ await G(() => w.sdk.scheduler.remove(a.id), {
179
185
  successMessage: e("menu.scheduler.actions.removed", {
180
186
  name: a.name
181
187
  })
182
188
  });
183
189
  });
184
190
  }
185
- const ye = x(() => [
191
+ const ke = x(() => [
186
192
  {
187
193
  accessorKey: "name",
188
194
  header: () => e("menu.scheduler.table.columns.name"),
@@ -191,13 +197,13 @@ const Be = {
191
197
  {
192
198
  id: "repeat",
193
199
  header: () => e("menu.scheduler.table.columns.repeat"),
194
- cell: (a) => ce(a.row.original),
200
+ cell: (a) => W(a.row.original),
195
201
  enableSorting: !1
196
202
  },
197
203
  {
198
204
  id: "period",
199
205
  header: () => e("menu.scheduler.table.columns.period"),
200
- cell: (a) => ie(a.row.original),
206
+ cell: (a) => Q(a.row.original),
201
207
  enableSorting: !1
202
208
  },
203
209
  {
@@ -213,7 +219,7 @@ const Be = {
213
219
  id: "actions",
214
220
  size: 52,
215
221
  header: "",
216
- cell: (a) => z(ae.FmButton, {
222
+ cell: (a) => j(de.FmButton, {
217
223
  icon: "delete",
218
224
  variant: "tertiary",
219
225
  textColor: "neutral-gray-400",
@@ -221,250 +227,304 @@ const Be = {
221
227
  "aria-label": e("menu.scheduler.table.delete.accessibility_label", {
222
228
  name: a.row.original.name
223
229
  }),
224
- onClick: xe(
225
- () => ve(a.row.original),
230
+ onClick: ne(
231
+ () => J(a.row.original),
226
232
  ["stop", "prevent"]
227
233
  )
228
234
  })
229
235
  }
230
236
  ]);
231
- return Ve(() => {
232
- R(), u.value.dispose(), w.sdk.scheduler.search("");
237
+ return Ue(() => {
238
+ B(), u.value.dispose(), w.sdk.scheduler.search("");
233
239
  }), (a, t) => {
234
- const h = v("FmButton"), be = v("FmCircularProgress"), he = v("FmSearch"), ge = v("FmTable"), K = v("FmTextField"), E = v("FmRadio"), q = v("FmRadioGroup"), ke = v("FmCheckbox"), fe = v("FmHelperText"), Q = v("FmTimePicker"), _e = v("FmSwitch"), Fe = v("FmIcon"), we = v("FmTooltip"), W = v("FmSelect"), Ce = v("FmSideSheet");
235
- return n(), F(De, {
240
+ const k = b("FmButton"), _e = b("FmCircularProgress"), fe = b("FmSearch"), ge = b("FmTable"), Fe = b("FmListItem"), we = b("FmList"), X = b("FmTextField"), D = b("FmRadio"), Y = b("FmRadioGroup"), xe = b("FmCheckbox"), Ce = b("FmHelperText"), Z = b("FmTimePicker"), Ve = b("FmSwitch"), Le = b("FmIcon"), Se = b("FmTooltip"), ee = b("FmSelect"), Pe = b("FmSideSheet");
241
+ return s(), g(Be, {
236
242
  "data-visual-root": "scheduler",
237
243
  heading: l(e)("menu.scheduler.title")
238
244
  }, {
239
- "append-heading": y(() => [
240
- k.value ? (n(), c("div", Be, [
241
- k.value.totalCount > 0 ? (n(), F(h, {
245
+ "append-heading": h(() => [
246
+ _.value ? (s(), c("div", He, [
247
+ _.value.totalCount > 0 && !z.value ? (s(), g(k, {
242
248
  key: 0,
243
- disabled: k.value.create.state !== "allowed",
249
+ disabled: _.value.create.state !== "allowed",
244
250
  label: l(e)("menu.scheduler.empty.action"),
245
251
  "prepend-icon": "add",
246
- onClick: H
247
- }, null, 8, ["disabled", "label"])) : _("", !0)
248
- ])) : _("", !0)
252
+ onClick: R
253
+ }, null, 8, ["disabled", "label"])) : F("", !0)
254
+ ])) : F("", !0)
249
255
  ]),
250
- default: y(() => {
251
- var J, X, Y;
256
+ default: h(() => {
257
+ var le, ae, te;
252
258
  return [
253
- l(S).status === "error" ? (n(), c("p", je, f(l(A)(l(S).error.message)), 1)) : l(S).status === "loading" ? (n(), F(be, { key: 1 })) : k.value && k.value.totalCount === 0 ? (n(), F(l($e), {
259
+ l(P).status === "error" ? (s(), c("p", Ke, f(l(A)(l(P).error.message)), 1)) : l(P).status === "loading" ? (s(), g(_e, { key: 1 })) : _.value && _.value.totalCount === 0 ? (s(), g(l(Ae), {
254
260
  key: 2,
255
- action: { text: l(e)("menu.scheduler.empty.action"), callback: H },
261
+ action: { text: l(e)("menu.scheduler.empty.action"), callback: R },
256
262
  title: l(e)("menu.scheduler.empty.title"),
257
263
  subtitle: l(e)("menu.scheduler.empty.subtitle")
258
- }, null, 8, ["action", "title", "subtitle"])) : k.value ? (n(), c(L, { key: 3 }, [
259
- b("div", Ne, [
260
- b("div", Ge, [
261
- s(he, {
264
+ }, null, 8, ["action", "title", "subtitle"])) : _.value ? (s(), c(V, { key: 3 }, [
265
+ p("div", qe, [
266
+ p("div", Qe, [
267
+ o(fe, {
262
268
  autofocus: "",
263
269
  "aria-label": l(e)("menu.scheduler.accessibility.search"),
264
270
  class: "mb-8",
265
- "model-value": oe.value,
271
+ "model-value": ce.value,
266
272
  placeholder: l(e)("menu.scheduler.table.search.placeholder"),
267
273
  "onUpdate:modelValue": w.sdk.scheduler.search
268
274
  }, null, 8, ["aria-label", "model-value", "placeholder", "onUpdate:modelValue"])
269
275
  ])
270
276
  ]),
271
- s(ge, {
272
- "column-defs": ye.value,
277
+ z.value ? (s(), g(we, {
278
+ key: 1,
279
+ class: "w-full px-16 flex-1 min-h-0 overflow-scroll pb-64",
280
+ separator: ""
281
+ }, {
282
+ default: h(() => [
283
+ (s(!0), c(V, null, S(_.value.rows, (i) => (s(), g(Fe, {
284
+ key: i.id,
285
+ class: "!py-12 !px-0",
286
+ onClick: (m) => q(i)
287
+ }, {
288
+ default: h(() => [
289
+ p("div", We, [
290
+ p("div", Je, f(i.name), 1),
291
+ p("div", null, [
292
+ p("div", Xe, f(l(e)("menu.common.labels.products_linked", {
293
+ count: i.linkedProductCount
294
+ })), 1),
295
+ p("div", Ye, f(l(e)("menu.common.labels.a11y_labelled_name", {
296
+ label: l(e)("menu.scheduler.table.columns.repeat"),
297
+ name: W(i)
298
+ })), 1),
299
+ i.periods.length > 0 ? (s(), c("div", Ze, f(l(e)("menu.common.labels.a11y_labelled_name", {
300
+ label: l(e)("menu.scheduler.table.columns.period"),
301
+ name: Q(i)
302
+ })), 1)) : F("", !0)
303
+ ])
304
+ ]),
305
+ o(k, {
306
+ class: "shrink-0",
307
+ "aria-label": l(e)("menu.scheduler.table.delete.accessibility_label", {
308
+ name: i.name
309
+ }),
310
+ disabled: i.remove.state !== "allowed",
311
+ icon: "delete",
312
+ "text-color": "neutral-gray-400",
313
+ variant: "tertiary",
314
+ onClick: ne((m) => J(i), ["stop"])
315
+ }, null, 8, ["aria-label", "disabled", "onClick"])
316
+ ]),
317
+ _: 2
318
+ }, 1032, ["onClick"]))), 128))
319
+ ]),
320
+ _: 1
321
+ })) : (s(), g(ge, {
322
+ key: 0,
323
+ "column-defs": ke.value,
273
324
  "hide-footer": "",
274
- "page-size": Math.max(k.value.rows.length, 1),
325
+ "page-size": Math.max(_.value.rows.length, 1),
275
326
  "pin-header-row": "",
276
- "row-data": ne.value,
327
+ "row-data": pe.value,
277
328
  "shrink-at": !1,
278
- onRowClick: t[0] || (t[0] = (g) => de(g.original))
279
- }, null, 8, ["column-defs", "page-size", "row-data"])
280
- ], 64)) : _("", !0),
281
- s(Ce, {
282
- modelValue: V.value,
283
- "onUpdate:modelValue": t[9] || (t[9] = (g) => V.value = g),
284
- header: ((J = o.value) == null ? void 0 : J.mode) === "update" ? l(e)("menu.scheduler.dialog.update.title") : l(e)("menu.scheduler.dialog.add.title"),
285
- "is-container": l(ae).FmForm,
286
- "is-container-props": { onValidationSuccess: pe },
329
+ onRowClick: t[0] || (t[0] = (i) => q(i.original))
330
+ }, null, 8, ["column-defs", "page-size", "row-data"])),
331
+ _.value.totalCount > 0 && z.value ? (s(), c("div", el, [
332
+ o(k, {
333
+ disabled: _.value.create.state !== "allowed",
334
+ label: l(e)("menu.scheduler.empty.action"),
335
+ "prepend-icon": "add",
336
+ variant: "fab",
337
+ onClick: R
338
+ }, null, 8, ["disabled", "label"])
339
+ ])) : F("", !0)
340
+ ], 64)) : F("", !0),
341
+ o(Pe, {
342
+ modelValue: L.value,
343
+ "onUpdate:modelValue": t[9] || (t[9] = (i) => L.value = i),
344
+ header: ((le = n.value) == null ? void 0 : le.mode) === "update" ? l(e)("menu.scheduler.dialog.update.title") : l(e)("menu.scheduler.dialog.add.title"),
345
+ "is-container": l(de).FmForm,
346
+ "is-container-props": { onValidationSuccess: he },
287
347
  "max-width": 560
288
348
  }, {
289
- "side-sheet-footer": y(() => {
290
- var g, i;
349
+ "side-sheet-footer": h(() => {
350
+ var i, m;
291
351
  return [
292
- b("div", ll, [
293
- s(h, {
294
- disabled: ((g = o.value) == null ? void 0 : g.submit.state) !== "allowed",
295
- label: ((i = o.value) == null ? void 0 : i.mode) === "update" ? l(e)("menu.scheduler.dialog.update.action") : l(e)("menu.scheduler.dialog.add.action"),
352
+ p("div", ml, [
353
+ o(k, {
354
+ disabled: ((i = n.value) == null ? void 0 : i.submit.state) !== "allowed",
355
+ label: ((m = n.value) == null ? void 0 : m.mode) === "update" ? l(e)("menu.scheduler.dialog.update.action") : l(e)("menu.scheduler.dialog.add.action"),
296
356
  size: "lg",
297
357
  type: "submit",
298
358
  variant: "primary"
299
359
  }, null, 8, ["disabled", "label"]),
300
- s(h, {
360
+ o(k, {
301
361
  label: l(e)("menu.scheduler.dialog.actions.cancel"),
302
362
  size: "lg",
303
363
  variant: "tertiary",
304
- onClick: t[8] || (t[8] = (m) => V.value = !1)
364
+ onClick: t[8] || (t[8] = (v) => L.value = !1)
305
365
  }, null, 8, ["label"])
306
366
  ])
307
367
  ];
308
368
  }),
309
- default: y(() => {
310
- var g;
369
+ default: h(() => {
370
+ var i;
311
371
  return [
312
- b("div", Oe, [
313
- s($, {
372
+ p("div", ll, [
373
+ o(T, {
314
374
  title: l(e)("menu.scheduler.dialog.sections.detail.title")
315
375
  }, {
316
- default: y(() => {
317
- var i;
376
+ default: h(() => {
377
+ var m;
318
378
  return [
319
- s(K, Le({
320
- "error-messages": N.value ? [l(A)(N.value)] : [],
379
+ o(X, $e({
380
+ "error-messages": O.value ? [l(A)(O.value)] : [],
321
381
  label: l(e)("menu.scheduler.dialog.sections.detail.name.label"),
322
- "model-value": ((i = o.value) == null ? void 0 : i.name) ?? "",
382
+ "model-value": ((m = n.value) == null ? void 0 : m.name) ?? "",
323
383
  placeholder: l(e)("menu.scheduler.dialog.sections.detail.name.placeholder")
324
- }, l(D).field("name", u.value.setName)), null, 16, ["error-messages", "label", "model-value", "placeholder"])
384
+ }, l(M).field("name", u.value.setName)), null, 16, ["error-messages", "label", "model-value", "placeholder"])
325
385
  ];
326
386
  }),
327
387
  _: 1
328
388
  }, 8, ["title"]),
329
- s($, {
389
+ o(T, {
330
390
  class: "mb-8",
331
391
  title: l(e)("menu.scheduler.dialog.sections.availability.title")
332
392
  }, {
333
- default: y(() => {
334
- var i, m;
393
+ default: h(() => {
394
+ var m, v;
335
395
  return [
336
- b("div", null, [
337
- s(q, {
338
- "model-value": ((i = o.value) == null ? void 0 : i.repeat) ?? "daily",
339
- "onUpdate:modelValue": t[1] || (t[1] = (r) => u.value.setRepeat(r))
396
+ p("div", null, [
397
+ o(Y, {
398
+ "model-value": ((m = n.value) == null ? void 0 : m.repeat) ?? "daily",
399
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => u.value.setRepeat(d))
340
400
  }, {
341
- default: y(() => [
342
- s(E, {
401
+ default: h(() => [
402
+ o(D, {
343
403
  value: "daily",
344
404
  label: l(e)("menu.scheduler.dialog.sections.availability.daily")
345
405
  }, null, 8, ["label"]),
346
- s(E, {
406
+ o(D, {
347
407
  value: "weekly",
348
408
  label: l(e)("menu.scheduler.dialog.sections.availability.weekly")
349
409
  }, null, 8, ["label"])
350
410
  ]),
351
411
  _: 1
352
412
  }, 8, ["model-value"]),
353
- ((m = o.value) == null ? void 0 : m.repeat) === "weekly" ? (n(), c("div", He, [
354
- (n(), c(L, null, T(re, (r) => {
355
- var p;
356
- return s(ke, {
357
- key: r,
358
- "model-value": [...((p = o.value) == null ? void 0 : p.weekDays) ?? []],
359
- value: r,
360
- label: U(r),
361
- "onUpdate:modelValue": t[2] || (t[2] = (d) => u.value.setWeekDays(d))
413
+ ((v = n.value) == null ? void 0 : v.repeat) === "weekly" ? (s(), c("div", al, [
414
+ (s(), c(V, null, S(be, (d) => {
415
+ var y;
416
+ return o(xe, {
417
+ key: d,
418
+ "model-value": [...((y = n.value) == null ? void 0 : y.weekDays) ?? []],
419
+ value: d,
420
+ label: $(d),
421
+ "onUpdate:modelValue": t[2] || (t[2] = (r) => u.value.setWeekDays(r))
362
422
  }, null, 8, ["model-value", "value", "label"]);
363
423
  }), 64))
364
- ])) : _("", !0)
424
+ ])) : F("", !0)
365
425
  ])
366
426
  ];
367
427
  }),
368
428
  _: 1
369
429
  }, 8, ["title"]),
370
- s($, {
430
+ o(T, {
371
431
  class: "-mt-4",
372
432
  title: l(e)("menu.scheduler.dialog.sections.period.title")
373
433
  }, {
374
- default: y(() => {
375
- var i, m, r;
434
+ default: h(() => {
435
+ var m, v, d;
376
436
  return [
377
- s(q, {
378
- "model-value": ((i = o.value) == null ? void 0 : i.periodMode) ?? "all",
379
- "onUpdate:modelValue": t[3] || (t[3] = (p) => u.value.setPeriodMode(p))
437
+ o(Y, {
438
+ "model-value": ((m = n.value) == null ? void 0 : m.periodMode) ?? "all",
439
+ "onUpdate:modelValue": t[3] || (t[3] = (y) => u.value.setPeriodMode(y))
380
440
  }, {
381
- default: y(() => [
382
- s(E, {
441
+ default: h(() => [
442
+ o(D, {
383
443
  label: l(e)("menu.scheduler.dialog.sections.period.all_day"),
384
444
  value: "all"
385
445
  }, null, 8, ["label"]),
386
- s(E, {
446
+ o(D, {
387
447
  label: l(e)("menu.scheduler.dialog.sections.period.custom"),
388
448
  value: "custom"
389
449
  }, null, 8, ["label"])
390
450
  ]),
391
451
  _: 1
392
452
  }, 8, ["model-value"]),
393
- ((m = o.value) == null ? void 0 : m.periodMode) === "custom" ? (n(), c("div", Ke, [
394
- G.value ? (n(), F(fe, {
453
+ ((v = n.value) == null ? void 0 : v.periodMode) === "custom" ? (s(), c("div", tl, [
454
+ H.value ? (s(), g(Ce, {
395
455
  key: 0,
396
456
  class: "text-red-500 text-sm leading-5 tracking-normal",
397
457
  role: "alert",
398
458
  state: "none",
399
- text: l(A)(G.value)
400
- }, null, 8, ["text"])) : _("", !0),
401
- (n(!0), c(L, null, T(((r = o.value) == null ? void 0 : r.periods) ?? [], (p, d) => (n(), c("div", {
402
- key: d,
459
+ text: l(A)(H.value)
460
+ }, null, 8, ["text"])) : F("", !0),
461
+ (s(!0), c(V, null, S(((d = n.value) == null ? void 0 : d.periods) ?? [], (y, r) => (s(), c("div", {
462
+ key: r,
403
463
  class: "flex w-full items-center gap-8"
404
464
  }, [
405
- s(Q, {
465
+ o(Z, {
406
466
  class: "flex-1",
407
467
  "aria-label": l(e)("menu.scheduler.accessibility.period_start", {
408
- number: d + 1
468
+ number: r + 1
409
469
  }),
410
470
  locale: l(C),
411
- "model-value": p.start,
412
- "onUpdate:modelValue": (I) => u.value.updatePeriod(d, "start", I)
471
+ "model-value": y.start,
472
+ "onUpdate:modelValue": (E) => u.value.updatePeriod(r, "start", E)
413
473
  }, null, 8, ["aria-label", "locale", "model-value", "onUpdate:modelValue"]),
414
- b("span", null, f(l(e)("menu.scheduler.dialog.sections.period.separator")), 1),
415
- s(Q, {
474
+ p("span", null, f(l(e)("menu.scheduler.dialog.sections.period.separator")), 1),
475
+ o(Z, {
416
476
  class: "flex-1",
417
477
  "aria-label": l(e)("menu.scheduler.accessibility.period_end", {
418
- number: d + 1
478
+ number: r + 1
419
479
  }),
420
480
  locale: l(C),
421
- "model-value": p.end,
422
- "onUpdate:modelValue": (I) => u.value.updatePeriod(d, "end", I)
481
+ "model-value": y.end,
482
+ "onUpdate:modelValue": (E) => u.value.updatePeriod(r, "end", E)
423
483
  }, null, 8, ["aria-label", "locale", "model-value", "onUpdate:modelValue"]),
424
- s(h, {
484
+ o(k, {
425
485
  "aria-label": l(e)("menu.scheduler.accessibility.remove_period", {
426
- number: d + 1
486
+ number: r + 1
427
487
  }),
428
488
  icon: "close",
429
489
  variant: "tertiary",
430
- onClick: (I) => u.value.removePeriod(d)
490
+ onClick: (E) => u.value.removePeriod(r)
431
491
  }, null, 8, ["aria-label", "onClick"])
432
492
  ]))), 128)),
433
- s(h, {
493
+ o(k, {
434
494
  label: l(e)("menu.scheduler.dialog.sections.period.add"),
435
495
  "prepend-icon": "add",
436
496
  variant: "secondary",
437
- onClick: t[4] || (t[4] = (p) => u.value.addPeriod())
497
+ onClick: t[4] || (t[4] = (y) => u.value.addPeriod())
438
498
  }, null, 8, ["label"])
439
- ])) : _("", !0)
499
+ ])) : F("", !0)
440
500
  ];
441
501
  }),
442
502
  _: 1
443
503
  }, 8, ["title"]),
444
- ((g = o.value) == null ? void 0 : g.autoLink.state) === "allowed" ? (n(), F($, {
504
+ ((i = n.value) == null ? void 0 : i.autoLink.state) === "allowed" ? (s(), g(T, {
445
505
  key: 0,
446
506
  title: l(e)("menu.scheduler.dialog.sections.autolink.title")
447
507
  }, {
448
- default: y(() => {
449
- var i;
508
+ default: h(() => {
509
+ var m;
450
510
  return [
451
- s(_e, {
511
+ o(Ve, {
452
512
  label: l(e)("menu.scheduler.dialog.sections.autolink.label"),
453
513
  "label-placement": "right",
454
- "model-value": o.value.autoLinkEnabled,
514
+ "model-value": n.value.autoLinkEnabled,
455
515
  sublabel: l(e)("menu.scheduler.dialog.sections.autolink.sublabel"),
456
- "onUpdate:modelValue": t[5] || (t[5] = (m) => u.value.setAutoLinkEnabled(m))
516
+ "onUpdate:modelValue": t[5] || (t[5] = (v) => u.value.setAutoLinkEnabled(v))
457
517
  }, null, 8, ["label", "model-value", "sublabel"]),
458
- o.value.autoLinkEnabled ? (n(), c("div", qe, [
459
- (i = o.value.autoLinkFilters) != null && i.length ? (n(), c("div", Qe, [
460
- b("span", null, f(l(e)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
461
- s(we, {
518
+ n.value.autoLinkEnabled ? (s(), c("div", sl, [
519
+ (m = n.value.autoLinkFilters) != null && m.length ? (s(), c("div", ol, [
520
+ p("span", null, f(l(e)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
521
+ o(Se, {
462
522
  content: l(e)("menu.scheduler.dialog.sections.autolink.tooltip"),
463
523
  variant: "plain",
464
524
  "z-index": 999
465
525
  }, {
466
- default: y(() => [
467
- s(Fe, {
526
+ default: h(() => [
527
+ o(Le, {
468
528
  name: "help",
469
529
  outline: "",
470
530
  class: "ml-4"
@@ -472,17 +532,17 @@ const Be = {
472
532
  ]),
473
533
  _: 1
474
534
  }, 8, ["content"])
475
- ])) : (n(), c("p", We, f(l(e)("menu.scheduler.dialog.sections.autolink.all_items")), 1)),
476
- (n(!0), c(L, null, T(o.value.autoLinkFilters ?? [], (m, r) => {
477
- var p;
478
- return n(), c("div", {
479
- key: r,
535
+ ])) : (s(), c("p", nl, f(l(e)("menu.scheduler.dialog.sections.autolink.all_items")), 1)),
536
+ (s(!0), c(V, null, S(n.value.autoLinkFilters ?? [], (v, d) => {
537
+ var y;
538
+ return s(), c("div", {
539
+ key: d,
480
540
  class: "flex w-full items-center gap-8"
481
541
  }, [
482
- b("div", Je, [
483
- s(W, {
542
+ p("div", ul, [
543
+ o(ee, {
484
544
  "aria-label": l(e)("menu.scheduler.accessibility.filter_type", {
485
- number: r + 1
545
+ number: d + 1
486
546
  }),
487
547
  items: [
488
548
  {
@@ -498,109 +558,109 @@ const Be = {
498
558
  value: "category"
499
559
  }
500
560
  ],
501
- "model-value": m.type,
502
- "onUpdate:modelValue": (d) => u.value.setAutoLinkFilterType(
503
- r,
504
- d
561
+ "model-value": v.type,
562
+ "onUpdate:modelValue": (r) => u.value.setAutoLinkFilterType(
563
+ d,
564
+ r
505
565
  )
506
566
  }, null, 8, ["aria-label", "items", "model-value", "onUpdate:modelValue"]),
507
- b("span", null, f(l(e)("menu.scheduler.dialog.sections.filter.matches")), 1),
508
- m.type === "category" ? (n(), F(W, {
567
+ p("span", null, f(l(e)("menu.scheduler.dialog.sections.filter.matches")), 1),
568
+ v.type === "category" ? (s(), g(ee, {
509
569
  key: 0,
510
570
  "aria-label": l(e)("menu.scheduler.accessibility.filter_category", {
511
- number: r + 1
571
+ number: d + 1
512
572
  }),
513
- items: (((p = o.value) == null ? void 0 : p.autoLinkCategoryOptions) ?? []).map(
514
- (d) => ({
515
- label: d.kind === "addon" ? l(e)("menu.tree_editor.labels.addon") : d.name,
516
- value: d.id
573
+ items: (((y = n.value) == null ? void 0 : y.autoLinkCategoryOptions) ?? []).map(
574
+ (r) => ({
575
+ label: r.kind === "addon" ? l(e)("menu.tree_editor.labels.addon") : r.name,
576
+ value: r.id
517
577
  })
518
578
  ),
519
- "model-value": [...m.values],
579
+ "model-value": [...v.values],
520
580
  multiselect: "",
521
581
  placeholder: l(e)(
522
582
  "menu.scheduler.dialog.sections.filter.placeholder.category"
523
583
  ),
524
- "onUpdate:modelValue": (d) => u.value.setAutoLinkFilterValues(
525
- r,
526
- d ?? []
584
+ "onUpdate:modelValue": (r) => u.value.setAutoLinkFilterValues(
585
+ d,
586
+ r ?? []
527
587
  )
528
- }, null, 8, ["aria-label", "items", "model-value", "placeholder", "onUpdate:modelValue"])) : (n(), F(K, {
588
+ }, null, 8, ["aria-label", "items", "model-value", "placeholder", "onUpdate:modelValue"])) : (s(), g(X, {
529
589
  key: 1,
530
590
  class: "flex-1",
531
- "model-value": m.values.join(", "),
532
- "onUpdate:modelValue": (d) => u.value.setAutoLinkCodeFilterInput(r, d)
591
+ "model-value": v.values.join(", "),
592
+ "onUpdate:modelValue": (r) => u.value.setAutoLinkCodeFilterInput(d, r)
533
593
  }, {
534
- label: y(() => [
535
- Se(f(l(e)("menu.scheduler.dialog.sections.filter.types.code")) + " ", 1),
536
- b("span", Xe, f(l(e)("menu.scheduler.accessibility.filter_code", {
537
- number: r + 1
594
+ label: h(() => [
595
+ Te(f(l(e)("menu.scheduler.dialog.sections.filter.types.code")) + " ", 1),
596
+ p("span", dl, f(l(e)("menu.scheduler.accessibility.filter_code", {
597
+ number: d + 1
538
598
  })), 1)
539
599
  ]),
540
600
  _: 2
541
601
  }, 1032, ["model-value", "onUpdate:modelValue"]))
542
602
  ]),
543
- s(h, {
603
+ o(k, {
544
604
  "aria-label": l(e)("menu.scheduler.accessibility.remove_filter", {
545
- number: r + 1
605
+ number: d + 1
546
606
  }),
547
607
  icon: "delete",
548
608
  variant: "secondary",
549
- onClick: (d) => u.value.removeAutoLinkFilter(r)
609
+ onClick: (r) => u.value.removeAutoLinkFilter(d)
550
610
  }, null, 8, ["aria-label", "onClick"])
551
611
  ]);
552
612
  }), 128)),
553
- s(h, {
613
+ o(k, {
554
614
  label: l(e)("menu.scheduler.dialog.sections.filter.add"),
555
615
  "prepend-icon": "add",
556
616
  variant: "secondary",
557
- onClick: t[6] || (t[6] = (m) => u.value.addAutoLinkFilter())
617
+ onClick: t[6] || (t[6] = (v) => u.value.addAutoLinkFilter())
558
618
  }, null, 8, ["label"])
559
- ])) : _("", !0)
619
+ ])) : F("", !0)
560
620
  ];
561
621
  }),
562
622
  _: 1
563
- }, 8, ["title"])) : _("", !0),
564
- b("div", Ye, [
565
- s($, {
623
+ }, 8, ["title"])) : F("", !0),
624
+ p("div", il, [
625
+ o(T, {
566
626
  title: l(e)("menu.scheduler.dialog.sections.products.title")
567
627
  }, {
568
- "append-title": y(() => [
569
- s(h, {
628
+ "append-title": h(() => [
629
+ o(k, {
570
630
  "border-color": "primary",
571
631
  label: l(e)("menu.scheduler.dialog.sections.products.link"),
572
632
  "prepend-icon": "link",
573
633
  size: "md",
574
634
  "text-color": "primary",
575
635
  variant: "secondary",
576
- onClick: t[7] || (t[7] = (i) => M.value = !0)
636
+ onClick: t[7] || (t[7] = (m) => I.value = !0)
577
637
  }, null, 8, ["label"])
578
638
  ]),
579
- default: y(() => {
580
- var i, m;
639
+ default: h(() => {
640
+ var m, v;
581
641
  return [
582
- (i = o.value) != null && i.linkedProductGroups.length ? (n(), c("div", Ze, [
583
- (n(!0), c(L, null, T(((m = o.value) == null ? void 0 : m.linkedProductGroups) ?? [], (r) => (n(), c("div", {
584
- key: r.id ?? "uncategorised"
642
+ (m = n.value) != null && m.linkedProductGroups.length ? (s(), c("div", rl, [
643
+ (s(!0), c(V, null, S(((v = n.value) == null ? void 0 : v.linkedProductGroups) ?? [], (d) => (s(), c("div", {
644
+ key: d.id ?? "uncategorised"
585
645
  }, [
586
- b("p", el, f(r.isSynthetic ? l(e)("menu.tree_editor.labels.addon") : r.name), 1),
587
- (n(!0), c(L, null, T(r.products, (p) => (n(), c("div", {
588
- key: p.id,
646
+ p("p", cl, f(d.isSynthetic ? l(e)("menu.tree_editor.labels.addon") : d.name), 1),
647
+ (s(!0), c(V, null, S(d.products, (y) => (s(), c("div", {
648
+ key: y.id,
589
649
  class: "flex items-center justify-between border-b border-fm-color-neutral-gray-200 px-16 py-12"
590
650
  }, [
591
- b("span", null, f(p.name), 1),
592
- s(h, {
651
+ p("span", null, f(y.name), 1),
652
+ o(k, {
593
653
  "aria-label": l(e)("menu.scheduler.accessibility.remove_product", {
594
- name: p.name
654
+ name: y.name
595
655
  }),
596
656
  icon: "delete",
597
657
  "text-color": "neutral-gray-400",
598
658
  variant: "tertiary",
599
- onClick: (d) => u.value.unlinkProduct(p.id)
659
+ onClick: (r) => u.value.unlinkProduct(y.id)
600
660
  }, null, 8, ["aria-label", "onClick"])
601
661
  ]))), 128))
602
662
  ]))), 128))
603
- ])) : _("", !0)
663
+ ])) : F("", !0)
604
664
  ];
605
665
  }),
606
666
  _: 1
@@ -611,13 +671,13 @@ const Be = {
611
671
  }),
612
672
  _: 1
613
673
  }, 8, ["modelValue", "header", "is-container", "is-container-props"]),
614
- s(Me, {
615
- modelValue: M.value,
616
- "onUpdate:modelValue": t[10] || (t[10] = (g) => M.value = g),
617
- catalogue: ((X = o.value) == null ? void 0 : X.productCatalogue) ?? null,
618
- "selected-product-ids": ((Y = o.value) == null ? void 0 : Y.linkedProductIds) ?? [],
674
+ o(ze, {
675
+ modelValue: I.value,
676
+ "onUpdate:modelValue": t[10] || (t[10] = (i) => I.value = i),
677
+ catalogue: ((ae = n.value) == null ? void 0 : ae.productCatalogue) ?? null,
678
+ "selected-product-ids": ((te = n.value) == null ? void 0 : te.linkedProductIds) ?? [],
619
679
  title: l(e)("menu.scheduler.dialog.sections.products.link"),
620
- onSubmit: me
680
+ onSubmit: ye
621
681
  }, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"])
622
682
  ];
623
683
  }),
@@ -625,13 +685,13 @@ const Be = {
625
685
  }, 8, ["heading"]);
626
686
  };
627
687
  }
628
- }), pl = /* @__PURE__ */ te({
688
+ }), xl = /* @__PURE__ */ ie({
629
689
  __name: "Scheduler",
630
- setup(B) {
631
- const w = ze();
632
- return (C, e) => (n(), F(al, { sdk: l(w) }, null, 8, ["sdk"]));
690
+ setup(N) {
691
+ const w = Oe();
692
+ return (C, e) => (s(), g(pl, { sdk: l(w) }, null, 8, ["sdk"]));
633
693
  }
634
694
  });
635
695
  export {
636
- pl as default
696
+ xl as default
637
697
  };