@feedmepos/mf-menu-portal 1.0.4-dev.2 → 1.0.4-dev.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 (82) hide show
  1. package/dist/{App-DtX4DyDA.js → App-CrpoLCjA.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-BJN8ajuD.js → BindingTable.vue_vue_type_script_setup_true_lang-D3CmOOPY.js} +1 -1
  4. package/dist/{Catalog-Dly_r1yA.js → Catalog-VU3HhNro.js} +4 -4
  5. package/dist/{CatalogBinding-CNG4YcVq.js → CatalogBinding-BNATtZEY.js} +3 -3
  6. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-Cy2culdR.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-BmG-xpW4.js} +3 -3
  7. package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-BFsRDFpj.js +784 -0
  8. package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-4EZ4yM_N.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Bk4FqVmx.js} +14 -14
  9. package/dist/{Category-Dz1yFYyY.js → Category-DMoXTsfG.js} +5 -5
  10. package/dist/{Category-BS-vFDYy.js → Category-DxjdQ-NN.js} +2 -2
  11. package/dist/CategoryList.vue_vue_type_script_setup_true_lang-B3Ts1O-9.js +847 -0
  12. package/dist/{CookingGuide-CmbvWFgp.js → CookingGuide-DiZZDYD-.js} +5 -5
  13. package/dist/{Group-B7s-vPXb.js → Group-DFR8q-tt.js} +5 -5
  14. package/dist/{Group-BRmWZnHh.js → Group-rzfh_o6r.js} +2 -2
  15. package/dist/GroupList.vue_vue_type_script_setup_true_lang-DiN-wQXX.js +1807 -0
  16. package/dist/Ingredient-DpjGIuH9.js +505 -0
  17. package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js +782 -0
  18. package/dist/{MenuSetting-Ci7V_Jxn.js → MenuSetting-DR-pDSF_.js} +4 -4
  19. package/dist/OrderPacing-JcTuweqF.js +769 -0
  20. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-NCH-SrZU.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js} +2 -2
  21. package/dist/{Preview-BBGNaj1F.js → Preview-BZyun5lZ.js} +1 -1
  22. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-BXJDpDCm.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js} +1 -1
  23. package/dist/PrintRoute-CzEx2dCt.js +518 -0
  24. package/dist/{Product-DqN0NFUU.js → Product-CQb0n06E.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-Fkiw4lZp.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-CBlDEjqF.js} +9 -9
  27. package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js +2011 -0
  28. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CNWCT1OB.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js} +1 -1
  29. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BoQ9mVPY.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-0UwUcA2L.js} +800 -749
  30. package/dist/{ProductInternalTools-CC3SWSlT.js → ProductInternalTools-QrBR1nFp.js} +2 -2
  31. package/dist/{ProductInventoryDialog-SAhsVekx.js → ProductInventoryDialog-fV38GO1a.js} +1 -1
  32. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-BB8UIIsW.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js} +1 -1
  33. package/dist/ProductList.vue_vue_type_script_setup_true_lang-BwKQESr3.js +2765 -0
  34. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BMDSkfcn.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js} +1 -1
  35. package/dist/{Products-Cn6j1DOQ.js → Products-B8tysOAL.js} +3 -3
  36. package/dist/Publish-DTvOvFNa.js +1337 -0
  37. package/dist/Recipe-Ddx31csF.js +388 -0
  38. package/dist/{Scheduler-DlaSVACJ.js → Scheduler-CST5L_cw.js} +314 -254
  39. package/dist/ServingSequence-DYyEZI2S.js +374 -0
  40. package/dist/{Setting-CyCp2uw4.js → Setting-Ip0pGjks.js} +6 -6
  41. package/dist/Subcategory-BIgjzVta.js +459 -0
  42. package/dist/{Takeaway-sVVykWDg.js → Takeaway-CekhGM-m.js} +2 -2
  43. package/dist/{Takeaway-tYHCAXYU.js → Takeaway-aXsPg4JT.js} +5 -5
  44. package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-CV24v8Zg.js → TakeawayList.vue_vue_type_script_setup_true_lang-CaRR4_j3.js} +4 -4
  45. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CshqYpc9.js +1291 -0
  46. package/dist/Unit-BMW8u0Us.js +424 -0
  47. package/dist/{Variant-BNnR5rLv.js → Variant-CZsrYRMU.js} +5 -5
  48. package/dist/{_id_-a9ZtdjtT.js → _id_-D4swrvNa.js} +3 -3
  49. package/dist/{app-CmElp8cO.js → app-BWwwHsWi.js} +337 -337
  50. package/dist/app.js +1 -1
  51. package/dist/apps/mf-menu/src/app.d.ts +80 -0
  52. package/dist/apps/mf-menu/src/components/PriceTier/LinkPriceTierSection.vue.d.ts +9 -0
  53. package/dist/apps/mf-menu/src/components/Product/BulkCategorySelect.vue.d.ts +37 -0
  54. package/dist/apps/mf-menu/src/components/Product/ProductAttributeFilter.vue.d.ts +11 -1
  55. package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +2 -2
  56. package/dist/apps/mf-menu/src/components/feature/NestedGroupManager/NestedGroupOverrideSheets.vue.d.ts +27 -0
  57. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesFilter.vue.d.ts +20 -0
  58. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  59. package/dist/assets/{menu-compute-B_wpWLAj.js → menu-compute-D7TdiHt4.js} +4 -4
  60. package/dist/assets/{validate-menu-DjxNxUxH.js → validate-menu-DXppWUVq.js} +2 -2
  61. package/dist/mf-menu-portal.css +1 -1
  62. package/dist/{provide-BJRbSauL.js → provide-CDmXzkhz.js} +67539 -65978
  63. package/dist/{useActionFeedback-89GwO41T.js → useActionFeedback-Dm2HDa_2.js} +1 -1
  64. package/dist/{FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js → vuedraggable-CBtQLb_S.js} +140 -139
  65. package/package.json +2 -2
  66. package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-Byp1db9_.js +0 -484
  67. package/dist/CategoryList.vue_vue_type_script_setup_true_lang-CrHYjrTn.js +0 -797
  68. package/dist/GroupList.vue_vue_type_script_setup_true_lang-CWr52_a-.js +0 -2183
  69. package/dist/Ingredient-BMAlctE4.js +0 -463
  70. package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CR99740r.js +0 -709
  71. package/dist/OrderPacing-Bz5kn6DY.js +0 -698
  72. package/dist/PrintRoute-BnARWdR2.js +0 -473
  73. package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D8DygCBl.js +0 -110
  74. package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-DryxrG-x.js +0 -1257
  75. package/dist/ProductList.vue_vue_type_script_setup_true_lang-BDnTs366.js +0 -10353
  76. package/dist/Publish-BPJhG39B.js +0 -1261
  77. package/dist/Recipe-mt1vec5-.js +0 -350
  78. package/dist/ServingSequence-Cr1REWZP.js +0 -336
  79. package/dist/Subcategory-kuB7gYvc.js +0 -412
  80. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dz-Chgek.js +0 -1213
  81. package/dist/Unit-BSOvZxRy.js +0 -385
  82. package/dist/apps/mf-menu/src/views/MenuManagementEditor/RestaurantAttributesFilter.vue.d.ts +0 -2
@@ -1,24 +1,54 @@
1
- import { defineComponent as ce, openBlock as r, createBlock as T, unref as e, withCtx as v, createElementVNode as n, renderSlot as We, resolveComponent as N, toDisplayString as I, createElementBlock as S, createCommentVNode as y, createVNode as s, ref as X, computed as R, toRaw as Je, onBeforeUnmount as ke, Fragment as ie, renderList as Fe, shallowRef as ye, watch as Ae, onMounted as Bl, createTextVNode as sl, withModifiers as Ee, normalizeClass as Be, h as H, createSlots as cl, nextTick as el, normalizeStyle as pl, isRef as Ol, mergeProps as Ce, withDirectives as ul } from "vue";
1
+ import { ref as W, computed as R, nextTick as Je, defineComponent as ce, openBlock as r, createBlock as T, unref as e, withCtx as p, createElementVNode as n, renderSlot as We, resolveComponent as M, toDisplayString as I, createElementBlock as S, createCommentVNode as y, createVNode as s, toRaw as el, onBeforeUnmount as ke, Fragment as re, renderList as Fe, shallowRef as ye, watch as Ae, onMounted as Bl, createTextVNode as sl, withModifiers as Ee, normalizeClass as Be, h as H, createSlots as cl, normalizeStyle as pl, isRef as Ol, mergeProps as Ce, withDirectives as ul } from "vue";
2
2
  import { _ as ge, a as Hl, b as $l, u as Xl } from "./TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js";
3
3
  import { useI18n as be, CustomAttributesForm as Wl } from "@feedmepos/mf-common";
4
4
  import { useAppStore as Ll, RemyButton as Sl } from "@feedmepos/mf-remy-panel";
5
5
  import { InventoryBindingSummary as Yl } from "@feedmepos/mf-inventory-portal";
6
- import { components as O, useDialog as Qe, useSnackbar as Zl, FmButtonVariant as Me, FmButtonColorThemeVariant as Vl } from "@feedmepos/ui-library";
7
- import { b as Jl } from "./app-CmElp8cO.js";
6
+ import { components as B, useDialog as Qe, useSnackbar as Zl, FmButtonVariant as Ne, FmButtonColorThemeVariant as Vl } from "@feedmepos/ui-library";
7
+ import { b as Jl } from "./app-BWwwHsWi.js";
8
8
  import { _ as Oe } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
9
- import { d as ea, _ as qe, a as la } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
10
- import { b as Pe, u as Le, A as aa } from "./provide-BJRbSauL.js";
11
- import { u as Ue } from "./useActionFeedback-89GwO41T.js";
12
- import { a as dl, b as Pl, t as Ul, r as ta, d as oa, c as na } from "./ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CNWCT1OB.js";
13
- import { _ as Ke, a as nl, F as sa, b as Dl, c as ia, d as ra } from "./ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-DryxrG-x.js";
14
- import { a as zl, A as Il, _ as ua } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CR99740r.js";
15
- import { _ as Rl } from "./ProductInventoryDialog.vue_vue_type_script_setup_true_lang-BB8UIIsW.js";
16
- import { _ as da } from "./PriceTierNotice.vue_vue_type_script_setup_true_lang-BXJDpDCm.js";
9
+ import { d as ea, _ as qe, a as la } from "./vuedraggable-CBtQLb_S.js";
10
+ import { b as Pe, u as Le, A as aa } from "./provide-CDmXzkhz.js";
11
+ import { u as Ue } from "./useActionFeedback-Dm2HDa_2.js";
12
+ import { a as dl, b as Pl, t as Ul, r as ta, d as oa, c as na } from "./ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-cG47Pu-6.js";
13
+ import { _ as Ke, a as nl, F as sa, b as zl, c as ia, d as ra } from "./ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-D8NQTCLx.js";
14
+ import { a as Dl, A as Il, _ as ua } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CnI80Ojd.js";
15
+ import { _ as Rl } from "./ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Bzb3RrMg.js";
16
+ import { _ as da } from "./PriceTierNotice.vue_vue_type_script_setup_true_lang-DquqNbE1.js";
17
17
  import { _ as ma } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
18
18
  import { _ as il } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
19
- import { _ as ca } from "./OrderPacingFields.vue_vue_type_script_setup_true_lang-NCH-SrZU.js";
19
+ import { _ as ca } from "./OrderPacingFields.vue_vue_type_script_setup_true_lang-HwwJ2mGv.js";
20
20
  import { u as ll } from "./useEditorValidation-Ctef5Bxt.js";
21
- import { _ as pa } from "./ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BMDSkfcn.js";
21
+ import { _ as pa } from "./ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-CDYcHXo1.js";
22
+ function Ml(Y, V) {
23
+ const i = W(""), x = R(() => i.value.trim().toLowerCase()), o = R(
24
+ () => x.value ? Y().filter(
25
+ (C) => V(C).toLowerCase().includes(x.value)
26
+ ) : Y()
27
+ ), d = R(
28
+ () => x.value !== "" && o.value.length === 0
29
+ );
30
+ function w() {
31
+ i.value = "";
32
+ }
33
+ return { search: i, filtered: o, noMatches: d, reset: w };
34
+ }
35
+ function Nl() {
36
+ const Y = W(), V = W();
37
+ let i = !1;
38
+ async function x(d) {
39
+ var P;
40
+ if (i = d, V.value = void 0, !d) return;
41
+ await Je(), await new Promise(requestAnimationFrame);
42
+ const w = (P = Y.value) == null ? void 0 : P.parentElement;
43
+ if (!i || !w) return;
44
+ const C = getComputedStyle(w);
45
+ V.value = w.clientHeight - parseFloat(C.paddingTop) - parseFloat(C.paddingBottom);
46
+ }
47
+ const o = R(
48
+ () => V.value ? { minHeight: `${V.value}px` } : void 0
49
+ );
50
+ return { content: Y, contentStyle: o, onMenuChanged: x };
51
+ }
22
52
  const ml = /* @__PURE__ */ ce({
23
53
  __name: "FlatInlineSort",
24
54
  props: {
@@ -27,8 +57,8 @@ const ml = /* @__PURE__ */ ce({
27
57
  lockLast: { type: Boolean }
28
58
  },
29
59
  emits: ["reorder"],
30
- setup(W, { emit: V }) {
31
- const i = W, x = V;
60
+ setup(Y, { emit: V }) {
61
+ const i = Y, x = V;
32
62
  function o(w) {
33
63
  x(
34
64
  "reorder",
@@ -46,7 +76,7 @@ const ml = /* @__PURE__ */ ce({
46
76
  class: "space-y-16",
47
77
  "onUpdate:modelValue": o
48
78
  }, {
49
- item: v(({ element: P, index: m }) => [
79
+ item: p(({ element: P, index: m }) => [
50
80
  n("div", null, [
51
81
  We(w.$slots, "item", {
52
82
  element: P,
@@ -72,20 +102,20 @@ const ml = /* @__PURE__ */ ce({
72
102
  anchor: {}
73
103
  },
74
104
  emits: ["update:enabled"],
75
- setup(W, { emit: V }) {
76
- const i = W, x = V;
105
+ setup(Y, { emit: V }) {
106
+ const i = Y, x = V;
77
107
  return (o, d) => {
78
- const w = N("FmSwitch"), C = N("FmCard");
108
+ const w = M("FmSwitch"), C = M("FmCard");
79
109
  return i.section.toggle === "none" ? (r(), T(qe, {
80
110
  key: 0,
81
111
  id: i.anchor,
82
112
  title: i.title,
83
113
  "sub-title": i.subtitle
84
114
  }, {
85
- "append-title": v(() => [
115
+ "append-title": p(() => [
86
116
  We(o.$slots, "append-title")
87
117
  ]),
88
- default: v(() => [
118
+ default: p(() => [
89
119
  We(o.$slots, "default")
90
120
  ]),
91
121
  _: 3
@@ -94,7 +124,7 @@ const ml = /* @__PURE__ */ ce({
94
124
  class: "p-16 space-y-24",
95
125
  variant: "outlined"
96
126
  }, {
97
- default: v(() => [
127
+ default: p(() => [
98
128
  n("div", va, [
99
129
  n("div", ba, [
100
130
  n("p", fa, I(i.overrideTitle ?? i.title), 1),
@@ -106,7 +136,7 @@ const ml = /* @__PURE__ */ ce({
106
136
  value: "",
107
137
  "onUpdate:modelValue": d[0] || (d[0] = (P) => x("update:enabled", P))
108
138
  }, {
109
- label: v(() => [
139
+ label: p(() => [
110
140
  n("span", ya, I(i.toggleLabel ?? i.title), 1)
111
141
  ]),
112
142
  _: 1
@@ -119,10 +149,10 @@ const ml = /* @__PURE__ */ ce({
119
149
  title: i.title,
120
150
  "sub-title": i.subtitle
121
151
  }, {
122
- "append-title": v(() => [
152
+ "append-title": p(() => [
123
153
  We(o.$slots, "append-title")
124
154
  ]),
125
- default: v(() => [
155
+ default: p(() => [
126
156
  We(o.$slots, "default")
127
157
  ]),
128
158
  _: 3
@@ -143,8 +173,8 @@ const ml = /* @__PURE__ */ ce({
143
173
  existingIds: {}
144
174
  },
145
175
  emits: ["close", "confirm"],
146
- setup(W, { emit: V }) {
147
- const i = W, x = V, { t: o } = be(), { run: d } = Ue(), w = X(""), C = X(""), P = X(!0);
176
+ setup(Y, { emit: V }) {
177
+ const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = W(""), C = W(""), P = W(!0);
148
178
  function m() {
149
179
  P.value = !1, x("close");
150
180
  }
@@ -165,39 +195,39 @@ const ml = /* @__PURE__ */ ce({
165
195
  }
166
196
  x("confirm", _);
167
197
  }
168
- return (_, F) => (r(), T(e(O).FmDialog, {
198
+ return (_, F) => (r(), T(e(B).FmDialog, {
169
199
  modelValue: P.value,
170
200
  "onUpdate:modelValue": [
171
- F[2] || (F[2] = (z) => P.value = z),
172
- F[3] || (F[3] = (z) => !z && x("close"))
201
+ F[2] || (F[2] = (L) => P.value = L),
202
+ F[3] || (F[3] = (L) => !L && x("close"))
173
203
  ],
174
204
  "max-width": 560
175
205
  }, {
176
- "dialog-header": v(() => [
206
+ "dialog-header": p(() => [
177
207
  n("p", ha, I(e(o)("menu.product_image.custom.title")), 1)
178
208
  ]),
179
- "dialog-footer": v(() => [
209
+ "dialog-footer": p(() => [
180
210
  n("div", Va, [
181
- s(e(O).FmButton, {
211
+ s(e(B).FmButton, {
182
212
  label: e(o)("menu.common.actions.cancel"),
183
213
  variant: "tertiary",
184
214
  onClick: m
185
215
  }, null, 8, ["label"]),
186
- s(e(O).FmButton, {
216
+ s(e(B).FmButton, {
187
217
  label: e(o)("menu.common.actions.confirm"),
188
218
  variant: "primary",
189
219
  onClick: $
190
220
  }, null, 8, ["label"])
191
221
  ])
192
222
  ]),
193
- default: v(() => [
223
+ default: p(() => [
194
224
  n("div", ka, [
195
225
  n("p", wa, I(e(o)("menu.product_image.custom.hint")), 1),
196
226
  n("div", xa, [
197
227
  n("div", Ca, [
198
- s(e(O).FmTextField, {
228
+ s(e(B).FmTextField, {
199
229
  modelValue: w.value,
200
- "onUpdate:modelValue": F[0] || (F[0] = (z) => w.value = z),
230
+ "onUpdate:modelValue": F[0] || (F[0] = (L) => w.value = L),
201
231
  label: e(o)("menu.product_image.custom.width"),
202
232
  placeholder: e(o)("menu.product_image.custom.width"),
203
233
  type: "number"
@@ -205,9 +235,9 @@ const ml = /* @__PURE__ */ ce({
205
235
  ]),
206
236
  n("p", Fa, I(e(o)("menu.product_image.custom.separator")), 1),
207
237
  n("div", $a, [
208
- s(e(O).FmTextField, {
238
+ s(e(B).FmTextField, {
209
239
  modelValue: C.value,
210
- "onUpdate:modelValue": F[1] || (F[1] = (z) => C.value = z),
240
+ "onUpdate:modelValue": F[1] || (F[1] = (L) => C.value = L),
211
241
  label: e(o)("menu.product_image.custom.height"),
212
242
  placeholder: e(o)("menu.product_image.custom.height"),
213
243
  type: "number"
@@ -230,8 +260,8 @@ const ml = /* @__PURE__ */ ce({
230
260
  canRegenerateFromOriginal: { type: Boolean }
231
261
  },
232
262
  emits: ["close", "confirm"],
233
- setup(W, { emit: V }) {
234
- const i = W, x = V, { t: o } = be(), d = X(""), w = X(!1), C = X(!0);
263
+ setup(Y, { emit: V }) {
264
+ const i = Y, x = V, { t: o } = be(), d = W(""), w = W(!1), C = W(!0);
235
265
  function P() {
236
266
  C.value = !1, x("close");
237
267
  }
@@ -241,7 +271,7 @@ const ml = /* @__PURE__ */ ce({
241
271
  fromOriginal: w.value
242
272
  }), C.value = !1;
243
273
  }
244
- return (l, $) => (r(), T(e(O).FmDialog, {
274
+ return (l, $) => (r(), T(e(B).FmDialog, {
245
275
  modelValue: C.value,
246
276
  "onUpdate:modelValue": [
247
277
  $[3] || ($[3] = (_) => C.value = _),
@@ -249,34 +279,34 @@ const ml = /* @__PURE__ */ ce({
249
279
  ],
250
280
  "max-width": 560
251
281
  }, {
252
- "dialog-header": v(() => [
282
+ "dialog-header": p(() => [
253
283
  n("p", Ua, I(e(o)("menu.product_image.regenerate.title")), 1)
254
284
  ]),
255
- "dialog-footer": v(() => [
285
+ "dialog-footer": p(() => [
256
286
  n("div", Ba, [
257
- s(e(O).FmButton, {
287
+ s(e(B).FmButton, {
258
288
  label: e(o)("menu.common.actions.cancel"),
259
289
  variant: "tertiary",
260
290
  onClick: P
261
291
  }, null, 8, ["label"]),
262
- s(e(O).FmButton, {
292
+ s(e(B).FmButton, {
263
293
  label: e(o)("menu.product_image.regenerate.action"),
264
294
  variant: "primary",
265
295
  onClick: m
266
296
  }, null, 8, ["label"])
267
297
  ])
268
298
  ]),
269
- default: v(() => [
299
+ default: p(() => [
270
300
  n("div", Ia, [
271
301
  n("p", Ta, I(e(o)("menu.product_image.regenerate.hint", { ratio: i.ratioLabel })), 1),
272
302
  i.canRegenerateFromOriginal ? (r(), S("div", Aa, [
273
- s(e(O).FmRadio, {
303
+ s(e(B).FmRadio, {
274
304
  modelValue: w.value,
275
305
  "onUpdate:modelValue": $[0] || ($[0] = (_) => w.value = _),
276
306
  label: e(o)("menu.product_image.regenerate.base_current"),
277
307
  value: !1
278
308
  }, null, 8, ["modelValue", "label"]),
279
- s(e(O).FmRadio, {
309
+ s(e(B).FmRadio, {
280
310
  modelValue: w.value,
281
311
  "onUpdate:modelValue": $[1] || ($[1] = (_) => w.value = _),
282
312
  label: e(o)("menu.product_image.regenerate.base_original"),
@@ -284,7 +314,7 @@ const ml = /* @__PURE__ */ ce({
284
314
  value: !0
285
315
  }, null, 8, ["modelValue", "label", "sublabel"])
286
316
  ])) : y("", !0),
287
- s(e(O).FmTextarea, {
317
+ s(e(B).FmTextarea, {
288
318
  modelValue: d.value,
289
319
  "onUpdate:modelValue": $[2] || ($[2] = (_) => d.value = _),
290
320
  label: e(o)("menu.product_image.regenerate.instruction"),
@@ -296,13 +326,13 @@ const ml = /* @__PURE__ */ ce({
296
326
  _: 1
297
327
  }, 8, ["modelValue"]));
298
328
  }
299
- }), La = { class: "fm-typo-en-title-md-600 mr-auto" }, Da = {
329
+ }), La = { class: "fm-typo-en-title-md-600 mr-auto" }, za = {
300
330
  key: 0,
301
331
  class: "space-y-32 p-24 text-fm-color-typo-primary"
302
- }, za = {
332
+ }, Da = {
303
333
  key: 0,
304
334
  class: "flex items-center gap-16"
305
- }, Ra = ["alt", "src"], Na = { class: "fm-typo-en-body-lg-600" }, Ma = {
335
+ }, Ra = ["alt", "src"], Ma = { class: "fm-typo-en-body-lg-600" }, Na = {
306
336
  key: 1,
307
337
  class: "space-y-16"
308
338
  }, Ea = { class: "flex items-start gap-16" }, qa = { class: "mr-auto" }, Ga = { class: "fm-typo-en-title-sm-600" }, ja = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ka = { class: "divide-y divide-fm-color-neutral-gray-100" }, Qa = ["aria-label"], Ha = ["alt", "src"], Xa = { class: "fm-typo-en-body-lg-600" }, Wa = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ya = ["aria-label"], Za = ["alt", "src"], Ja = { class: "mr-auto" }, et = { class: "flex items-center gap-8" }, lt = { class: "fm-typo-en-body-lg-600" }, at = {
@@ -319,20 +349,20 @@ const ml = /* @__PURE__ */ ce({
319
349
  imageRef: {}
320
350
  },
321
351
  emits: ["close"],
322
- setup(W, { emit: V }) {
323
- const i = W, x = V, { t: o } = be(), { run: d } = Ue(), w = Qe(), C = Pe(), P = X(null), m = X("");
352
+ setup(Y, { emit: V }) {
353
+ const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = Qe(), C = Pe(), P = W(null), m = W("");
324
354
  function l(q, Z) {
325
355
  m.value = Z, P.value = q;
326
356
  }
327
- const $ = Je(i.target), _ = Je(i.imageRef), F = i.sdk.productImage.manage($, _), z = Le(F);
357
+ const $ = el(i.target), _ = el(i.imageRef), F = i.sdk.productImage.manage($, _), L = Le(F);
328
358
  ke(() => F.dispose());
329
359
  const E = R(
330
- () => z.value.status === "ready" ? z.value.value : null
360
+ () => L.value.status === "ready" ? L.value.value : null
331
361
  ), G = R(() => {
332
362
  var q;
333
363
  return ((q = E.value) == null ? void 0 : q.ratios) ?? [];
334
- }), A = R(() => G.value.map((q) => q.id)), p = X(!0), g = X(!1), f = X(null), k = X(null);
335
- function B(q) {
364
+ }), A = R(() => G.value.map((q) => q.id)), v = W(!0), g = W(!1), f = W(null), k = W(null);
365
+ function O(q) {
336
366
  return q.status === "pending" ? o("menu.product_image.status.pending") : q.status === "failed" ? o("menu.product_image.status.failed") : "";
337
367
  }
338
368
  function Q(q) {
@@ -342,7 +372,7 @@ const ml = /* @__PURE__ */ ce({
342
372
  g.value = !1, await d(() => F.addFormats([q]), { showLoading: !1 });
343
373
  }
344
374
  function a() {
345
- p.value = !1, x("close");
375
+ v.value = !1, x("close");
346
376
  }
347
377
  function c() {
348
378
  F.update(), a();
@@ -377,11 +407,11 @@ const ml = /* @__PURE__ */ ce({
377
407
  async function b(q) {
378
408
  const Z = k.value;
379
409
  if (k.value = null, !Z) return;
380
- const M = q ? await h(q.blob) : "";
410
+ const N = q ? await h(q.blob) : "";
381
411
  await d(
382
412
  () => F.replaceRatio(
383
413
  Z.id,
384
- q ? { base64: M, contentType: q.blob.type } : null
414
+ q ? { base64: N, contentType: q.blob.type } : null
385
415
  ),
386
416
  {
387
417
  successMessage: o("menu.product_image.replace.queued"),
@@ -395,11 +425,11 @@ const ml = /* @__PURE__ */ ce({
395
425
  }
396
426
  function h(q) {
397
427
  return new Promise((Z) => {
398
- const M = new FileReader();
399
- M.onerror = () => Z(""), M.onload = () => Z(typeof M.result == "string" ? M.result : ""), M.readAsDataURL(q);
428
+ const N = new FileReader();
429
+ N.onerror = () => Z(""), N.onload = () => Z(typeof N.result == "string" ? N.result : ""), N.readAsDataURL(q);
400
430
  });
401
431
  }
402
- const se = X(null);
432
+ const se = W(null);
403
433
  function de(q) {
404
434
  if (!q.removeNeedsConfirmation) {
405
435
  fe(q);
@@ -430,29 +460,29 @@ const ml = /* @__PURE__ */ ce({
430
460
  async function fe(q) {
431
461
  await d(() => F.removeRatio(q.id), { showLoading: !1 });
432
462
  }
433
- return (q, Z) => (r(), S(ie, null, [
434
- s(e(O).FmSideSheet, {
463
+ return (q, Z) => (r(), S(re, null, [
464
+ s(e(B).FmSideSheet, {
435
465
  id: "manage-product-image",
436
- modelValue: p.value,
466
+ modelValue: v.value,
437
467
  "onUpdate:modelValue": [
438
- Z[2] || (Z[2] = (M) => p.value = M),
439
- Z[3] || (Z[3] = (M) => !M && x("close"))
468
+ Z[2] || (Z[2] = (N) => v.value = N),
469
+ Z[3] || (Z[3] = (N) => !N && x("close"))
440
470
  ],
441
471
  "close-button": "",
442
472
  "max-width": 860
443
473
  }, {
444
- "side-sheet-header": v(() => [
474
+ "side-sheet-header": p(() => [
445
475
  n("p", La, I(e(o)("menu.product_image.manage.title")), 1)
446
476
  ]),
447
- "side-sheet-footer": v(() => [
477
+ "side-sheet-footer": p(() => [
448
478
  n("div", mt, [
449
- s(e(O).FmButton, {
479
+ s(e(B).FmButton, {
450
480
  label: e(o)("menu.common.actions.update"),
451
481
  size: "lg",
452
482
  variant: "primary",
453
483
  onClick: c
454
484
  }, null, 8, ["label"]),
455
- s(e(O).FmButton, {
485
+ s(e(B).FmButton, {
456
486
  label: e(o)("menu.common.actions.cancel"),
457
487
  size: "lg",
458
488
  variant: "tertiary",
@@ -460,14 +490,14 @@ const ml = /* @__PURE__ */ ce({
460
490
  }, null, 8, ["label"])
461
491
  ])
462
492
  ]),
463
- default: v(() => [
464
- E.value ? (r(), S("div", Da, [
465
- E.value.addFormat.state !== "allowed" ? (r(), S("section", za, [
466
- s(e(O).FmCard, {
493
+ default: p(() => [
494
+ E.value ? (r(), S("div", za, [
495
+ E.value.addFormat.state !== "allowed" ? (r(), S("section", Da, [
496
+ s(e(B).FmCard, {
467
497
  class: "!h-80 !w-80 rounded-md",
468
498
  variant: "outlined"
469
499
  }, {
470
- default: v(() => [
500
+ default: p(() => [
471
501
  n("img", {
472
502
  alt: e(o)("menu.product_image.manage.original"),
473
503
  class: "h-full w-full object-cover",
@@ -476,21 +506,21 @@ const ml = /* @__PURE__ */ ce({
476
506
  ]),
477
507
  _: 1
478
508
  }),
479
- n("p", Na, I(e(o)("menu.product_image.manage.original")), 1)
509
+ n("p", Ma, I(e(o)("menu.product_image.manage.original")), 1)
480
510
  ])) : y("", !0),
481
- E.value.addFormat.state === "allowed" ? (r(), S("section", Ma, [
511
+ E.value.addFormat.state === "allowed" ? (r(), S("section", Na, [
482
512
  n("div", Ea, [
483
513
  n("div", qa, [
484
514
  n("p", Ga, I(e(o)("menu.product_image.manage.aspect_ratio")), 1),
485
515
  n("p", ja, I(e(o)("menu.product_image.manage.aspect_ratio_hint")), 1)
486
516
  ]),
487
- s(e(O).FmButton, {
517
+ s(e(B).FmButton, {
488
518
  disabled: E.value.addFormat.state !== "allowed",
489
519
  label: e(o)("menu.product_image.manage.add_format"),
490
520
  "aria-label": e(o)("menu.product_image.manage.add_format"),
491
521
  "prepend-icon": "add",
492
522
  variant: "primary",
493
- onClick: Z[0] || (Z[0] = (M) => g.value = !0)
523
+ onClick: Z[0] || (Z[0] = (N) => g.value = !0)
494
524
  }, null, 8, ["disabled", "label", "aria-label"])
495
525
  ]),
496
526
  n("div", Ka, [
@@ -499,122 +529,162 @@ const ml = /* @__PURE__ */ ce({
499
529
  role: "group",
500
530
  "aria-label": e(o)("menu.product_image.manage.original")
501
531
  }, [
502
- s(e(O).FmButton, {
503
- "aria-label": e(o)("menu.product_image.preview.title"),
504
- label: e(o)("menu.product_image.preview.title"),
505
- class: "!h-80 !w-80 shrink-0 !overflow-hidden !rounded-md !p-0",
506
- variant: "plain",
507
- onClick: Z[1] || (Z[1] = (M) => l(
508
- E.value.originalUrl,
509
- e(o)("menu.product_image.manage.original")
510
- ))
532
+ s(e(B).FmTooltip, {
533
+ class: "shrink-0",
534
+ content: e(o)("menu.product_image.preview.title"),
535
+ placement: "top",
536
+ "z-index": 999
511
537
  }, {
512
- default: v(() => [
513
- s(e(O).FmCard, {
514
- class: "!h-80 !w-80 rounded-md",
515
- variant: "outlined"
538
+ default: p(() => [
539
+ s(e(B).FmButton, {
540
+ "aria-label": e(o)("menu.product_image.preview.title"),
541
+ label: e(o)("menu.product_image.preview.title"),
542
+ class: "!h-80 !w-80 shrink-0 !overflow-hidden !rounded-md !p-0",
543
+ variant: "plain",
544
+ onClick: Z[1] || (Z[1] = (N) => l(
545
+ E.value.originalUrl,
546
+ e(o)("menu.product_image.manage.original")
547
+ ))
516
548
  }, {
517
- default: v(() => [
518
- n("img", {
519
- alt: e(o)("menu.product_image.manage.original"),
520
- class: "h-full w-full object-cover",
521
- src: E.value.originalUrl
522
- }, null, 8, Ha)
549
+ default: p(() => [
550
+ s(e(B).FmCard, {
551
+ class: "!h-80 !w-80 rounded-md",
552
+ variant: "outlined"
553
+ }, {
554
+ default: p(() => [
555
+ n("img", {
556
+ alt: e(o)("menu.product_image.manage.original"),
557
+ class: "h-full w-full object-cover",
558
+ src: E.value.originalUrl
559
+ }, null, 8, Ha)
560
+ ]),
561
+ _: 1
562
+ })
523
563
  ]),
524
564
  _: 1
525
- })
565
+ }, 8, ["aria-label", "label"])
526
566
  ]),
527
567
  _: 1
528
- }, 8, ["aria-label", "label"]),
568
+ }, 8, ["content"]),
529
569
  n("div", null, [
530
570
  n("p", Xa, I(e(o)("menu.product_image.manage.original")), 1),
531
571
  n("p", Wa, I(e(o)("menu.product_image.manage.custom_sizing")), 1)
532
572
  ])
533
573
  ], 8, Qa),
534
- (r(!0), S(ie, null, Fe(G.value, (M) => (r(), S("div", {
535
- key: M.label,
574
+ (r(!0), S(re, null, Fe(G.value, (N) => (r(), S("div", {
575
+ key: N.label,
536
576
  class: "product-image-ratio-row flex items-center gap-16 py-12",
537
577
  role: "group",
538
- "aria-label": M.label
578
+ "aria-label": N.label
539
579
  }, [
540
- s(e(O).FmButton, {
541
- "aria-label": e(o)("menu.product_image.preview.title"),
542
- label: e(o)("menu.product_image.preview.title"),
543
- class: "!h-80 !w-80 shrink-0 !overflow-hidden !rounded-md !p-0 disabled:opacity-40",
544
- disabled: !M.previewUrl,
545
- variant: "plain",
546
- onClick: (Ie) => l(M.previewUrl, M.label)
580
+ s(e(B).FmTooltip, {
581
+ class: "shrink-0",
582
+ content: e(o)("menu.product_image.preview.title"),
583
+ placement: "top",
584
+ "z-index": 999
547
585
  }, {
548
- default: v(() => [
549
- s(e(O).FmCard, {
550
- class: "flex !h-80 !w-80 items-center justify-center rounded-md",
551
- variant: "outlined"
586
+ default: p(() => [
587
+ s(e(B).FmButton, {
588
+ "aria-label": e(o)("menu.product_image.preview.title"),
589
+ label: e(o)("menu.product_image.preview.title"),
590
+ class: "!h-80 !w-80 shrink-0 !overflow-hidden !rounded-md !p-0 disabled:opacity-40",
591
+ disabled: !N.previewUrl,
592
+ variant: "plain",
593
+ onClick: (Ie) => l(N.previewUrl, N.label)
552
594
  }, {
553
- default: v(() => [
554
- M.previewUrl ? (r(), S("img", {
555
- key: 0,
556
- alt: M.label,
557
- class: "h-full w-full object-cover",
558
- src: M.previewUrl
559
- }, null, 8, Za)) : (r(), T(e(O).FmIcon, {
560
- key: 1,
561
- color: "neutral-gray-300",
562
- name: "image",
563
- outline: ""
564
- }))
595
+ default: p(() => [
596
+ s(e(B).FmCard, {
597
+ class: "flex !h-80 !w-80 items-center justify-center rounded-md",
598
+ variant: "outlined"
599
+ }, {
600
+ default: p(() => [
601
+ N.previewUrl ? (r(), S("img", {
602
+ key: 0,
603
+ alt: N.label,
604
+ class: "h-full w-full object-cover",
605
+ src: N.previewUrl
606
+ }, null, 8, Za)) : (r(), T(e(B).FmIcon, {
607
+ key: 1,
608
+ color: "neutral-gray-300",
609
+ name: "image",
610
+ outline: ""
611
+ }))
612
+ ]),
613
+ _: 2
614
+ }, 1024)
565
615
  ]),
566
616
  _: 2
567
- }, 1024)
617
+ }, 1032, ["aria-label", "label", "disabled", "onClick"])
568
618
  ]),
569
619
  _: 2
570
- }, 1032, ["aria-label", "label", "disabled", "onClick"]),
620
+ }, 1032, ["content"]),
571
621
  n("div", Ja, [
572
622
  n("div", et, [
573
- n("p", lt, I(M.label), 1),
574
- M.required ? (r(), T(e(O).FmChip, {
623
+ n("p", lt, I(N.label), 1),
624
+ N.required ? (r(), T(e(B).FmChip, {
575
625
  key: 0,
576
626
  color: "negative",
577
627
  label: e(o)("menu.product_image.manage.required"),
578
628
  size: "sm"
579
629
  }, null, 8, ["label"])) : y("", !0),
580
- B(M) ? (r(), T(e(O).FmChip, {
630
+ O(N) ? (r(), T(e(B).FmChip, {
581
631
  key: 1,
582
- color: M.status === "pending" ? "warning" : "negative",
583
- label: B(M),
632
+ color: N.status === "pending" ? "warning" : "negative",
633
+ label: O(N),
584
634
  size: "sm"
585
635
  }, null, 8, ["color", "label"])) : y("", !0)
586
636
  ]),
587
- M.purpose ? (r(), S("p", at, I(e(C)(M.purpose)), 1)) : y("", !0),
588
- !M.required && !M.previewUrl ? (r(), S("p", tt, I(e(o)("menu.product_image.manage.custom_image_hint")), 1)) : y("", !0)
637
+ N.purpose ? (r(), S("p", at, I(e(C)(N.purpose)), 1)) : y("", !0),
638
+ !N.required && !N.previewUrl ? (r(), S("p", tt, I(e(o)("menu.product_image.manage.custom_image_hint")), 1)) : y("", !0)
589
639
  ]),
590
640
  n("div", ot, [
591
- s(e(O).FmButton, {
592
- "aria-label": e(o)("menu.product_image.replace.action_for", {
593
- ratio: M.label
594
- }),
595
- disabled: M.replace.state !== "allowed",
596
- icon: "image",
597
- variant: "tertiary",
598
- onClick: (Ie) => k.value = M
599
- }, null, 8, ["aria-label", "disabled", "onClick"]),
600
- s(e(O).FmButton, {
601
- "aria-label": e(o)("menu.product_image.regenerate.action_for", {
602
- ratio: M.label
603
- }),
604
- disabled: M.regenerate.state !== "allowed",
605
- icon: "autorenew",
606
- variant: "tertiary",
607
- onClick: (Ie) => pe(M)
608
- }, null, 8, ["aria-label", "disabled", "onClick"]),
609
- M.canRemove ? (r(), T(e(O).FmButton, {
641
+ s(e(B).FmTooltip, {
642
+ content: e(o)("menu.product_image.replace.action"),
643
+ placement: "top",
644
+ "z-index": 999
645
+ }, {
646
+ default: p(() => [
647
+ s(e(B).FmButton, {
648
+ "aria-label": e(o)("menu.product_image.replace.action_for", {
649
+ ratio: N.label
650
+ }),
651
+ disabled: N.replace.state !== "allowed",
652
+ class: "w-full",
653
+ icon: "image",
654
+ variant: "tertiary",
655
+ onClick: (Ie) => k.value = N
656
+ }, null, 8, ["aria-label", "disabled", "onClick"])
657
+ ]),
658
+ _: 2
659
+ }, 1032, ["content"]),
660
+ s(e(B).FmTooltip, {
661
+ content: e(o)("menu.product_image.regenerate.action"),
662
+ placement: "top",
663
+ "z-index": 999
664
+ }, {
665
+ default: p(() => [
666
+ s(e(B).FmButton, {
667
+ "aria-label": e(o)("menu.product_image.regenerate.action_for", {
668
+ ratio: N.label
669
+ }),
670
+ disabled: N.regenerate.state !== "allowed",
671
+ class: "w-full",
672
+ icon: "autorenew",
673
+ variant: "tertiary",
674
+ onClick: (Ie) => pe(N)
675
+ }, null, 8, ["aria-label", "disabled", "onClick"])
676
+ ]),
677
+ _: 2
678
+ }, 1032, ["content"]),
679
+ N.canRemove ? (r(), T(e(B).FmButton, {
610
680
  key: 0,
611
681
  "aria-label": e(o)("menu.product_image.manage.remove_ratio.action_for", {
612
- ratio: M.label
682
+ ratio: N.label
613
683
  }),
614
684
  disabled: se.value !== null,
615
685
  icon: "close",
616
686
  variant: "tertiary",
617
- onClick: (Ie) => de(M)
687
+ onClick: (Ie) => de(N)
618
688
  }, null, 8, ["aria-label", "disabled", "onClick"])) : y("", !0)
619
689
  ])
620
690
  ], 8, Ya))), 128))
@@ -623,13 +693,13 @@ const ml = /* @__PURE__ */ ce({
623
693
  n("section", nt, [
624
694
  n("p", st, I(e(o)("menu.product_image.manage.cover_photo")), 1),
625
695
  n("div", it, [
626
- s(e(O).FmSwitch, {
696
+ s(e(B).FmSwitch, {
627
697
  "aria-label": e(o)("menu.product_image.manage.set_as_cover"),
628
698
  disabled: E.value.isCover && !E.value.canClearCover,
629
699
  "model-value": E.value.isCover,
630
700
  "onUpdate:modelValue": Q
631
701
  }, {
632
- label: v(() => [
702
+ label: p(() => [
633
703
  n("span", rt, I(e(o)("menu.product_image.manage.set_as_cover")), 1)
634
704
  ]),
635
705
  _: 1
@@ -644,15 +714,15 @@ const ml = /* @__PURE__ */ ce({
644
714
  ]),
645
715
  _: 1
646
716
  }, 8, ["modelValue"]),
647
- s(e(O).FmDialog, {
717
+ s(e(B).FmDialog, {
648
718
  "model-value": P.value !== null,
649
719
  "max-width": 560,
650
- "onUpdate:modelValue": Z[4] || (Z[4] = (M) => !M && (P.value = null))
720
+ "onUpdate:modelValue": Z[4] || (Z[4] = (N) => !N && (P.value = null))
651
721
  }, {
652
- "dialog-header": v(() => [
722
+ "dialog-header": p(() => [
653
723
  n("p", ct, I(m.value), 1)
654
724
  ]),
655
- default: v(() => [
725
+ default: p(() => [
656
726
  n("div", pt, [
657
727
  P.value ? (r(), S("img", {
658
728
  key: 0,
@@ -668,7 +738,7 @@ const ml = /* @__PURE__ */ ce({
668
738
  key: 0,
669
739
  "existing-ids": A.value,
670
740
  sdk: i.sdk,
671
- onClose: Z[5] || (Z[5] = (M) => g.value = !1),
741
+ onClose: Z[5] || (Z[5] = (N) => g.value = !1),
672
742
  onConfirm: ee
673
743
  }, null, 8, ["existing-ids", "sdk"])) : y("", !0),
674
744
  k.value ? (r(), T(dl, {
@@ -676,14 +746,14 @@ const ml = /* @__PURE__ */ ce({
676
746
  mode: "replace",
677
747
  "ratio-label": k.value.label,
678
748
  "aspect-ratio": k.value.aspectRatio,
679
- onCancel: Z[6] || (Z[6] = (M) => k.value = null),
749
+ onCancel: Z[6] || (Z[6] = (N) => k.value = null),
680
750
  onConfirm: b
681
751
  }, null, 8, ["ratio-label", "aspect-ratio"])) : y("", !0),
682
752
  f.value ? (r(), T(Oa, {
683
753
  key: 2,
684
754
  "can-regenerate-from-original": f.value.canRegenerateFromOriginal,
685
755
  "ratio-label": f.value.label,
686
- onClose: Z[7] || (Z[7] = (M) => f.value = null),
756
+ onClose: Z[7] || (Z[7] = (N) => f.value = null),
687
757
  onConfirm: le
688
758
  }, null, 8, ["can-regenerate-from-original", "ratio-label"])) : y("", !0)
689
759
  ], 64));
@@ -694,84 +764,84 @@ const ml = /* @__PURE__ */ ce({
694
764
  sdk: {},
695
765
  target: {}
696
766
  },
697
- setup(W) {
698
- const V = W, { t: i, n: x } = be(), { run: o } = Ue(), d = Qe(), w = Zl(), C = Pe(), P = Ll(), m = R(() => Je(V.target)), l = ye({
767
+ setup(Y) {
768
+ const V = Y, { t: i, n: x } = be(), { run: o } = Ue(), d = Qe(), w = Zl(), C = Pe(), P = Ll(), m = R(() => el(V.target)), l = ye({
699
769
  status: "loading"
700
770
  });
701
771
  let $ = null, _ = null;
702
- function F(L) {
703
- _ == null || _(), $ == null || $.dispose(), $ = V.sdk.productImage.gallery(L), _ = $.subscribe((D) => {
772
+ function F(z) {
773
+ _ == null || _(), $ == null || $.dispose(), $ = V.sdk.productImage.gallery(z), _ = $.subscribe((D) => {
704
774
  l.value = D;
705
775
  });
706
776
  }
707
777
  F(m.value), ke(() => {
708
778
  _ == null || _(), $ == null || $.dispose();
709
779
  });
710
- const z = R(
780
+ const L = R(
711
781
  () => l.value.status === "ready" ? l.value.value : null
712
782
  ), E = R(
713
783
  () => {
714
- var L;
715
- return ((L = z.value) == null ? void 0 : L.tiles) ?? [];
784
+ var z;
785
+ return ((z = L.value) == null ? void 0 : z.tiles) ?? [];
716
786
  }
717
- ), G = aa.join(","), A = X(null), p = X(!1), g = X([]), f = X(0), k = X([]), B = X(null);
787
+ ), G = aa.join(","), A = W(null), v = W(!1), g = W([]), f = W(0), k = W([]), O = W(null);
718
788
  let Q = null;
719
789
  function ee() {
720
790
  g.value = [], f.value = 0, k.value = [], Q = null;
721
791
  }
722
- Ae(m, (L, D) => {
723
- L !== D && (B.value = null, ee(), M(), F(L));
792
+ Ae(m, (z, D) => {
793
+ z !== D && (O.value = null, ee(), N(), F(z));
724
794
  });
725
795
  const a = R(
726
796
  () => g.value[f.value] ?? null
727
797
  ), c = R(() => {
728
- var L;
729
- return ((L = z.value) == null ? void 0 : L.addImage.state) !== "allowed";
798
+ var z;
799
+ return ((z = L.value) == null ? void 0 : z.addImage.state) !== "allowed";
730
800
  });
731
801
  function ne() {
732
- var L;
733
- (L = A.value) == null || L.click();
802
+ var z;
803
+ (z = A.value) == null || z.click();
734
804
  }
735
- function pe(L) {
736
- const D = L.target;
805
+ function pe(z) {
806
+ const D = z.target;
737
807
  ve(Array.from(D.files ?? [])), D.value = "";
738
808
  }
739
- function le(L) {
809
+ function le(z) {
740
810
  var D;
741
- p.value = !1, !c.value && ve(Array.from(((D = L.dataTransfer) == null ? void 0 : D.files) ?? []));
811
+ v.value = !1, !c.value && ve(Array.from(((D = z.dataTransfer) == null ? void 0 : D.files) ?? []));
742
812
  }
743
- function ve(L) {
744
- if (c.value || L.length === 0) return;
813
+ function ve(z) {
814
+ if (c.value || z.length === 0) return;
745
815
  const D = [];
746
- for (const Y of L) {
747
- const re = V.sdk.productImage.screenFile(Y.type);
748
- if (re) {
749
- o(async () => ({ kind: "rejected", issues: [re] }), {
816
+ for (const X of z) {
817
+ const ie = V.sdk.productImage.screenFile(X.type);
818
+ if (ie) {
819
+ o(async () => ({ kind: "rejected", issues: [ie] }), {
750
820
  showLoading: !1
751
821
  });
752
822
  continue;
753
823
  }
754
- D.push(Y);
824
+ D.push(X);
755
825
  }
756
826
  D.length !== 0 && (g.value = D, f.value = 0, k.value = [], Q = m.value);
757
827
  }
758
- function b(L) {
828
+ function b(z) {
759
829
  const D = V.sdk.productImage.screenDecoded(
760
- L ? { width: L.width, height: L.height } : null
830
+ z ? { width: z.width, height: z.height } : null
761
831
  );
762
- if (D || !L) {
832
+ if (D || !z) {
763
833
  D && o(async () => ({ kind: "rejected", issues: [D] }), {
764
834
  showLoading: !1
765
835
  }), se();
766
836
  return;
767
837
  }
768
838
  k.value.push({
769
- contentType: L.blob.type,
770
- fileName: L.fileName,
771
- width: L.width,
772
- height: L.height,
773
- byteLength: L.blob.size,
774
- bytes: L.blob
839
+ contentType: z.blob.type,
840
+ fileName: z.fileName,
841
+ width: z.width,
842
+ height: z.height,
843
+ byteLength: z.blob.size,
844
+ bytes: z.blob
775
845
  }), se();
776
846
  }
777
847
  function h() {
@@ -782,68 +852,76 @@ const ml = /* @__PURE__ */ ce({
782
852
  f.value += 1;
783
853
  return;
784
854
  }
785
- const L = k.value, D = Q;
786
- ee(), L.length > 0 && D && de(D, L);
855
+ const z = k.value, D = Q;
856
+ ee(), z.length > 0 && D && de(D, z);
787
857
  }
788
- async function de(L, D) {
789
- await o(() => V.sdk.productImage.upload(L, D), {
790
- loadingMessage: i("menu.product_image.uploading"),
791
- successMessage: i("menu.product_image.uploaded")
792
- });
858
+ async function de(z, D) {
859
+ var ie;
860
+ const X = ((ie = L.value) == null ? void 0 : ie.defersUpload) === !0;
861
+ await o(
862
+ () => V.sdk.productImage.upload(z, D),
863
+ X ? {
864
+ showLoading: !1,
865
+ successMessage: i("menu.product_image.staged_added")
866
+ } : {
867
+ loadingMessage: i("menu.product_image.uploading"),
868
+ successMessage: i("menu.product_image.uploaded")
869
+ }
870
+ );
793
871
  }
794
872
  const $e = ye(null), fe = ye(null);
795
873
  let q = null, Z = null;
796
- function M() {
874
+ function N() {
797
875
  q == null || q.dispose(), Z == null || Z(), q = null, Z = null, $e.value = null, fe.value = null;
798
876
  }
799
- function Ie(L) {
877
+ function Ie(z) {
800
878
  const D = m.value;
801
879
  if (!D) return null;
802
- M();
803
- const Y = V.sdk.productImage.edit(D, Je(L.imageRef));
804
- return q = Y, Z = Y.subscribe((re) => {
805
- fe.value = re.status === "ready" ? re.value : null, fe.value || ($e.value = null);
806
- }), Y;
880
+ N();
881
+ const X = V.sdk.productImage.edit(D, el(z.imageRef));
882
+ return q = X, Z = X.subscribe((ie) => {
883
+ fe.value = ie.status === "ready" ? ie.value : null, fe.value || ($e.value = null);
884
+ }), X;
807
885
  }
808
- async function De(L, D) {
809
- const Y = await o(L, {
886
+ async function ze(z, D) {
887
+ const X = await o(z, {
810
888
  loadingMessage: D,
811
889
  showLoading: !!D
812
890
  });
813
- return Y.kind === "success" && w.open({
814
- type: Y.value.severity,
815
- [Y.value.presentation]: C(Y.value.message)
816
- }), Y;
891
+ return X.kind === "success" && w.open({
892
+ type: X.value.severity,
893
+ [X.value.presentation]: C(X.value.message)
894
+ }), X;
817
895
  }
818
- async function Ge(L) {
819
- const D = Ie(L), Y = fe.value;
820
- if (!(!D || !Y))
896
+ async function Ge(z) {
897
+ const D = Ie(z), X = fe.value;
898
+ if (!(!D || !X))
821
899
  try {
822
- const re = await Pl(Y.sourceUrl);
823
- q === D && ($e.value = re);
900
+ const ie = await Pl(X.sourceUrl);
901
+ q === D && ($e.value = ie);
824
902
  } catch {
825
- q === D && await De(() => D.confirmCrop(null));
903
+ q === D && await ze(() => D.confirmCrop(null));
826
904
  }
827
905
  }
828
- async function Ye(L) {
829
- const D = q, Y = fe.value;
830
- if ($e.value = null, !D || !Y) return;
831
- let re = null;
906
+ async function Ye(z) {
907
+ const D = q, X = fe.value;
908
+ if ($e.value = null, !D || !X) return;
909
+ let ie = null;
832
910
  try {
833
- re = await Ul(L);
911
+ ie = await Ul(z);
834
912
  } catch {
835
913
  }
836
- await De(
837
- () => D.confirmCrop(re),
838
- L ? C(Y.loadingMessage) : void 0
839
- ), q === D && M();
914
+ await ze(
915
+ () => D.confirmCrop(ie),
916
+ z ? C(X.loadingMessage) : void 0
917
+ ), q === D && N();
840
918
  }
841
- async function He(L) {
842
- const D = Ie(L), Y = fe.value;
843
- if (!D || !Y) return;
844
- const re = await o(
919
+ async function He(z) {
920
+ const D = Ie(z), X = fe.value;
921
+ if (!D || !X) return;
922
+ const ie = await o(
845
923
  () => D.prepareRemy(async () => {
846
- const _e = await Pl(Y.sourceUrl);
924
+ const _e = await Pl(X.sourceUrl);
847
925
  return {
848
926
  contentType: _e.type,
849
927
  byteLength: _e.size,
@@ -852,16 +930,16 @@ const ml = /* @__PURE__ */ ce({
852
930
  }),
853
931
  { showLoading: !1 }
854
932
  );
855
- re.kind === "success" && q === D && P.activate({
856
- imageData: re.value.imageData,
933
+ ie.kind === "success" && q === D && P.activate({
934
+ imageData: ie.value.imageData,
857
935
  command: "modifyImage"
858
936
  });
859
937
  }
860
- function J(L) {
861
- var re;
862
- const D = (re = L.detail) == null ? void 0 : re.imageData, Y = q;
863
- !Y || typeof D != "string" || !D || De(
864
- () => Y.applyRemy(async () => {
938
+ function J(z) {
939
+ var ie;
940
+ const D = (ie = z.detail) == null ? void 0 : ie.imageData, X = q;
941
+ !X || typeof D != "string" || !D || ze(
942
+ () => X.applyRemy(async () => {
865
943
  const _e = await oa(D);
866
944
  return V.sdk.productImage.screenFile(_e.type) ? {
867
945
  contentType: _e.type,
@@ -877,9 +955,9 @@ const ml = /* @__PURE__ */ ce({
877
955
  );
878
956
  }
879
957
  Bl(() => window.addEventListener("apply-image", J)), ke(() => {
880
- window.removeEventListener("apply-image", J), M();
958
+ window.removeEventListener("apply-image", J), N();
881
959
  });
882
- function we(L) {
960
+ function we(z) {
883
961
  const D = m.value;
884
962
  D && d.open({
885
963
  title: i("menu.product_image.delete.title"),
@@ -894,23 +972,23 @@ const ml = /* @__PURE__ */ ce({
894
972
  }
895
973
  }).onPrimary(async () => {
896
974
  await o(
897
- async () => V.sdk.productImage.removeImage(D, Je(L.imageRef)),
975
+ async () => V.sdk.productImage.removeImage(D, el(z.imageRef)),
898
976
  { showLoading: !1 }
899
977
  );
900
978
  });
901
979
  }
902
- return (L, D) => (r(), T(e(O).FmFormGroup, {
980
+ return (z, D) => (r(), T(e(B).FmFormGroup, {
903
981
  class: "product-image-field pb-8 text-fm-color-typo-primary",
904
982
  tag: "div",
905
983
  label: e(i)("menu.common.labels.product_image"),
906
984
  "label-mark": "optional",
907
985
  "model-value": E.value.length
908
986
  }, {
909
- default: v(() => [
987
+ default: p(() => [
910
988
  n("p", ft, [
911
989
  sl(I(e(i)("menu.product_image.hint")) + " ", 1),
912
- c.value ? y("", !0) : (r(), S(ie, { key: 0 }, [
913
- s(e(O).FmIcon, {
990
+ c.value ? y("", !0) : (r(), S(re, { key: 0 }, [
991
+ s(e(B).FmIcon, {
914
992
  class: "mr-4 align-text-bottom",
915
993
  color: "neutral-gray-400",
916
994
  name: "crop",
@@ -923,20 +1001,20 @@ const ml = /* @__PURE__ */ ce({
923
1001
  n("div", gt, [
924
1002
  n("div", {
925
1003
  class: Be(["product-image-drop aspect-square rounded-md border border-dashed flex flex-col items-center justify-center gap-8", [
926
- p.value ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300",
1004
+ v.value ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300",
927
1005
  c.value ? "opacity-50 cursor-not-allowed" : ""
928
1006
  ]]),
929
- onDragleave: D[0] || (D[0] = Ee((Y) => p.value = !1, ["prevent"])),
930
- onDragover: D[1] || (D[1] = Ee((Y) => p.value = !c.value, ["prevent"])),
1007
+ onDragleave: D[0] || (D[0] = Ee((X) => v.value = !1, ["prevent"])),
1008
+ onDragover: D[1] || (D[1] = Ee((X) => v.value = !c.value, ["prevent"])),
931
1009
  onDrop: Ee(le, ["prevent"])
932
1010
  }, [
933
- s(e(O).FmIcon, {
1011
+ s(e(B).FmIcon, {
934
1012
  color: "neutral-gray-400",
935
1013
  name: "cloud_upload",
936
1014
  outline: ""
937
1015
  }),
938
1016
  n("p", yt, I(e(i)("menu.product_image.drop_hint")), 1),
939
- s(e(O).FmButton, {
1017
+ s(e(B).FmButton, {
940
1018
  disabled: c.value,
941
1019
  label: e(i)("menu.product_image.add_file"),
942
1020
  variant: "secondary",
@@ -952,31 +1030,31 @@ const ml = /* @__PURE__ */ ce({
952
1030
  onChange: pe
953
1031
  }, null, 40, _t)
954
1032
  ], 34),
955
- (r(!0), S(ie, null, Fe(E.value, (Y, re) => {
956
- var _e, Xe, ze;
1033
+ (r(!0), S(re, null, Fe(E.value, (X, ie) => {
1034
+ var _e, Xe, De;
957
1035
  return r(), S("div", {
958
- key: Y.url,
1036
+ key: X.url,
959
1037
  class: "product-image-tile relative aspect-square"
960
1038
  }, [
961
- s(e(O).FmButton, {
962
- "aria-label": e(i)("menu.product_image.manage.action_for", { index: re + 1 }),
1039
+ s(e(B).FmButton, {
1040
+ "aria-label": e(i)("menu.product_image.manage.action_for", { index: ie + 1 }),
963
1041
  class: "!block !h-full !w-full !overflow-hidden !rounded-md !p-0",
964
1042
  label: e(i)("menu.product_image.manage.title"),
965
- disabled: Y.manage.state !== "allowed",
1043
+ disabled: X.manage.state !== "allowed",
966
1044
  variant: "plain",
967
- onClick: (je) => B.value = Y.imageRef
1045
+ onClick: (je) => O.value = X.imageRef
968
1046
  }, {
969
- default: v(() => [
1047
+ default: p(() => [
970
1048
  n("div", ht, [
971
- s(e(O).FmCard, {
1049
+ s(e(B).FmCard, {
972
1050
  class: "flex !h-[180px] !w-[180px] !border-0 items-center justify-center rounded-md",
973
1051
  variant: "outlined"
974
1052
  }, {
975
- default: v(() => [
1053
+ default: p(() => [
976
1054
  n("img", {
977
- alt: e(i)("menu.product_image.tile_alt", { index: re + 1 }),
1055
+ alt: e(i)("menu.product_image.tile_alt", { index: ie + 1 }),
978
1056
  class: "h-full w-full object-cover",
979
- src: Y.url
1057
+ src: X.url
980
1058
  }, null, 8, kt)
981
1059
  ]),
982
1060
  _: 2
@@ -986,18 +1064,18 @@ const ml = /* @__PURE__ */ ce({
986
1064
  _: 2
987
1065
  }, 1032, ["aria-label", "label", "disabled", "onClick"]),
988
1066
  n("div", wt, [
989
- Y.isCover ? (r(), T(e(O).FmChip, {
1067
+ X.isCover ? (r(), T(e(B).FmChip, {
990
1068
  key: 0,
991
1069
  label: e(i)("menu.product_image.cover_badge")
992
1070
  }, null, 8, ["label"])) : y("", !0),
993
- Y.formatCount !== null && Y.formatCount !== void 0 ? (r(), T(e(O).FmChip, {
1071
+ X.formatCount !== null && X.formatCount !== void 0 ? (r(), T(e(B).FmChip, {
994
1072
  key: 1,
995
- label: e(x)(Y.formatCount),
1073
+ label: e(x)(X.formatCount),
996
1074
  "right-icon": "resize"
997
1075
  }, null, 8, ["label"])) : y("", !0)
998
1076
  ]),
999
1077
  n("div", xt, [
1000
- ((_e = Y.crop) == null ? void 0 : _e.state) === "allowed" ? (r(), T(e(O).FmButton, {
1078
+ ((_e = X.crop) == null ? void 0 : _e.state) === "allowed" ? (r(), T(e(B).FmButton, {
1001
1079
  key: 0,
1002
1080
  label: e(i)("menu.product_image.editor.title"),
1003
1081
  "aria-label": e(i)("menu.product_image.editor.title"),
@@ -1005,29 +1083,29 @@ const ml = /* @__PURE__ */ ce({
1005
1083
  class: "!h-32 !w-32 !rounded-full !p-0 shadow-sm",
1006
1084
  "bg-color": "neutral-white",
1007
1085
  variant: "tertiary",
1008
- onClick: Ee((je) => Ge(Y), ["stop"])
1086
+ onClick: Ee((je) => Ge(X), ["stop"])
1009
1087
  }, {
1010
- default: v(() => [
1011
- s(e(O).FmIcon, {
1088
+ default: p(() => [
1089
+ s(e(B).FmIcon, {
1012
1090
  name: "crop",
1013
1091
  size: "sm"
1014
1092
  })
1015
1093
  ]),
1016
1094
  _: 2
1017
1095
  }, 1032, ["label", "aria-label", "title", "onClick"])) : y("", !0),
1018
- ((Xe = Y.remy) == null ? void 0 : Xe.state) === "allowed" ? (r(), T(e(O).FmButton, {
1096
+ ((Xe = X.remy) == null ? void 0 : Xe.state) === "allowed" ? (r(), T(e(B).FmButton, {
1019
1097
  key: 1,
1020
1098
  label: e(i)("menu.remy.title"),
1021
1099
  "aria-label": e(i)("menu.remy.title"),
1022
1100
  title: e(i)("menu.remy.title"),
1023
- disabled: (ze = fe.value) == null ? void 0 : ze.busy,
1101
+ disabled: (De = fe.value) == null ? void 0 : De.busy,
1024
1102
  class: "!h-32 !w-32 !rounded-full !p-0 shadow-sm",
1025
1103
  "bg-color": "neutral-white",
1026
1104
  variant: "tertiary",
1027
- onClick: Ee((je) => He(Y), ["stop"])
1105
+ onClick: Ee((je) => He(X), ["stop"])
1028
1106
  }, {
1029
- default: v(() => [
1030
- s(e(O).FmIcon, {
1107
+ default: p(() => [
1108
+ s(e(B).FmIcon, {
1031
1109
  name: "auto_awesome",
1032
1110
  size: "sm"
1033
1111
  })
@@ -1035,25 +1113,26 @@ const ml = /* @__PURE__ */ ce({
1035
1113
  _: 2
1036
1114
  }, 1032, ["label", "aria-label", "title", "disabled", "onClick"])) : y("", !0)
1037
1115
  ]),
1038
- s(e(O).FmButton, {
1039
- label: e(i)("menu.product_image.remove.action_for", { index: re + 1 }),
1040
- "aria-label": e(i)("menu.product_image.remove.action_for", { index: re + 1 }),
1116
+ X.remove.state !== "hidden" ? (r(), T(e(B).FmButton, {
1117
+ key: 0,
1118
+ label: e(i)("menu.product_image.remove.action_for", { index: ie + 1 }),
1119
+ "aria-label": e(i)("menu.product_image.remove.action_for", { index: ie + 1 }),
1041
1120
  class: "!absolute -right-8 -top-8 !h-24 !w-24 !rounded-full !p-0",
1042
- disabled: Y.remove.state !== "allowed",
1121
+ disabled: X.remove.state !== "allowed",
1043
1122
  "bg-color": "neutral-black",
1044
1123
  "icon-color": "neutral-white",
1045
1124
  variant: "tertiary",
1046
- onClick: (je) => we(Y)
1125
+ onClick: (je) => we(X)
1047
1126
  }, {
1048
- default: v(() => [
1049
- s(e(O).FmIcon, {
1127
+ default: p(() => [
1128
+ s(e(B).FmIcon, {
1050
1129
  name: "close",
1051
1130
  size: "sm",
1052
1131
  color: "neutral-white"
1053
1132
  })
1054
1133
  ]),
1055
1134
  _: 2
1056
- }, 1032, ["label", "aria-label", "disabled", "onClick"])
1135
+ }, 1032, ["label", "aria-label", "disabled", "onClick"])) : y("", !0)
1057
1136
  ]);
1058
1137
  }), 128))
1059
1138
  ]),
@@ -1070,15 +1149,15 @@ const ml = /* @__PURE__ */ ce({
1070
1149
  file: $e.value,
1071
1150
  mode: fe.value.mode,
1072
1151
  "edit-view": fe.value,
1073
- onCancel: M,
1152
+ onCancel: N,
1074
1153
  onConfirm: Ye
1075
1154
  }, null, 8, ["file", "mode", "edit-view"])) : y("", !0),
1076
- B.value && V.target ? (r(), T(bt, {
1155
+ O.value && V.target ? (r(), T(bt, {
1077
1156
  key: 2,
1078
- "image-ref": B.value,
1157
+ "image-ref": O.value,
1079
1158
  sdk: V.sdk,
1080
1159
  target: V.target,
1081
- onClose: D[2] || (D[2] = (Y) => B.value = null)
1160
+ onClose: D[2] || (D[2] = (X) => O.value = null)
1082
1161
  }, null, 8, ["image-ref", "sdk", "target"])) : y("", !0)
1083
1162
  ]),
1084
1163
  _: 1
@@ -1099,8 +1178,8 @@ const ml = /* @__PURE__ */ ce({
1099
1178
  create: { type: Function },
1100
1179
  dialogCancelName: {}
1101
1180
  },
1102
- setup(W) {
1103
- const V = W, { t: i } = be(), x = R(
1181
+ setup(Y) {
1182
+ const V = Y, { t: i } = be(), x = R(
1104
1183
  () => V.kind === "group" ? {
1105
1184
  search: "menu.common.labels.search_groups",
1106
1185
  add: "menu.common.actions.add_group",
@@ -1133,19 +1212,19 @@ const ml = /* @__PURE__ */ ce({
1133
1212
  const _ = V.session.applyWithOutcome();
1134
1213
  _.kind !== "cancelled" && ((F = V.close) == null || F.call(V)), await o(() => Promise.resolve(_), { showLoading: !1 });
1135
1214
  }
1136
- const m = X(null);
1215
+ const m = W(null);
1137
1216
  Ae(
1138
1217
  m,
1139
1218
  (_) => {
1140
1219
  var E;
1141
1220
  if (!_ || !V.dialogCancelName) return;
1142
- const F = i("menu.common.actions.cancel"), z = [
1221
+ const F = i("menu.common.actions.cancel"), L = [
1143
1222
  ...((E = _.closest(".fm-dialog")) == null ? void 0 : E.querySelectorAll("button")) ?? []
1144
1223
  ].find((G) => {
1145
1224
  var A;
1146
1225
  return ((A = G.textContent) == null ? void 0 : A.trim()) === F;
1147
1226
  });
1148
- z == null || z.setAttribute("aria-label", V.dialogCancelName);
1227
+ L == null || L.setAttribute("aria-label", V.dialogCancelName);
1149
1228
  },
1150
1229
  { flush: "post" }
1151
1230
  );
@@ -1153,7 +1232,7 @@ const ml = /* @__PURE__ */ ce({
1153
1232
  () => l.value.status === "ready" ? l.value.value : null
1154
1233
  );
1155
1234
  return (_, F) => {
1156
- const z = N("FmSearch"), E = N("FmCheckbox"), G = N("FmButton");
1235
+ const L = M("FmSearch"), E = M("FmCheckbox"), G = M("FmButton");
1157
1236
  return $.value && (!_.kind || $.value.totalCount > 0) ? (r(), S("div", {
1158
1237
  key: 0,
1159
1238
  ref_key: "root",
@@ -1164,7 +1243,7 @@ const ml = /* @__PURE__ */ ce({
1164
1243
  ])
1165
1244
  }, [
1166
1245
  n("div", null, [
1167
- s(z, {
1246
+ s(L, {
1168
1247
  "model-value": $.value.query,
1169
1248
  placeholder: e(i)(_.kind ? x.value.search : "menu.common.actions.search"),
1170
1249
  autofocus: !!_.kind,
@@ -1176,7 +1255,7 @@ const ml = /* @__PURE__ */ ce({
1176
1255
  _.kind ? "flex-1 min-h-0 overflow-y-auto p-8" : "flex flex-col gap-8"
1177
1256
  )
1178
1257
  }, [
1179
- (r(!0), S(ie, null, Fe($.value.choices, (A) => (r(), S("div", {
1258
+ (r(!0), S(re, null, Fe($.value.choices, (A) => (r(), S("div", {
1180
1259
  key: A.id,
1181
1260
  class: Be(_.kind ? void 0 : "contents")
1182
1261
  }, [
@@ -1184,7 +1263,7 @@ const ml = /* @__PURE__ */ ce({
1184
1263
  "model-value": [...$.value.selectedIds],
1185
1264
  value: A.id,
1186
1265
  label: C(A),
1187
- "onUpdate:modelValue": F[1] || (F[1] = (p) => _.session.select(p))
1266
+ "onUpdate:modelValue": F[1] || (F[1] = (v) => _.session.select(v))
1188
1267
  }, null, 8, ["model-value", "value", "label"])
1189
1268
  ], 2))), 128))
1190
1269
  ], 2),
@@ -1203,8 +1282,8 @@ const ml = /* @__PURE__ */ ce({
1203
1282
  "aria-label": e(i)(x.value.cancelSelection),
1204
1283
  variant: "tertiary",
1205
1284
  onClick: F[3] || (F[3] = (A) => {
1206
- var p;
1207
- return (p = _.close) == null ? void 0 : p.call(_);
1285
+ var v;
1286
+ return (v = _.close) == null ? void 0 : v.call(_);
1208
1287
  })
1209
1288
  }, null, 8, ["label", "aria-label"]),
1210
1289
  s(G, {
@@ -1240,8 +1319,8 @@ const ml = /* @__PURE__ */ ce({
1240
1319
  min: {}
1241
1320
  },
1242
1321
  emits: ["update:modelValue", "update:enabled"],
1243
- setup(W, { emit: V }) {
1244
- const i = W, x = V, o = Pe(), d = X(i.modelValue !== null);
1322
+ setup(Y, { emit: V }) {
1323
+ const i = Y, x = V, o = Pe(), d = W(i.modelValue !== null);
1245
1324
  let w = !1;
1246
1325
  Ae(
1247
1326
  () => i.modelValue,
@@ -1257,7 +1336,7 @@ const ml = /* @__PURE__ */ ce({
1257
1336
  w = l === null, x("update:modelValue", l);
1258
1337
  }
1259
1338
  return (m, l) => {
1260
- const $ = N("FmSwitch"), _ = N("FmStepperField");
1339
+ const $ = M("FmSwitch"), _ = M("FmStepperField");
1261
1340
  return r(), S("div", Tt, [
1262
1341
  n("div", At, [
1263
1342
  n("p", Bt, I(m.label), 1),
@@ -1267,7 +1346,7 @@ const ml = /* @__PURE__ */ ce({
1267
1346
  "onUpdate:modelValue": C,
1268
1347
  label: ""
1269
1348
  }, {
1270
- label: v(() => [
1349
+ label: p(() => [
1271
1350
  n("span", Ot, I(m.toggleAccessibleName ?? m.accessibleName), 1)
1272
1351
  ]),
1273
1352
  _: 1
@@ -1286,7 +1365,7 @@ const ml = /* @__PURE__ */ ce({
1286
1365
  ]);
1287
1366
  };
1288
1367
  }
1289
- }), Dt = ["data-scope-title"], zt = { class: "fm-typo-en-title-md-600 mr-auto" }, Rt = { class: "pt-8 space-y-32" }, Nt = { class: "fm-typo-en-title-sm-600" }, Mt = { class: "flex items-end space-x-24" }, Et = { class: "flex" }, qt = { key: 0 }, Gt = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, jt = { class: "flex flex-wrap gap-8 mt-8" }, Kt = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 mt-8" }, Qt = { class: "space-y-16" }, Ht = {
1368
+ }), zt = ["data-scope-title"], Dt = { class: "fm-typo-en-title-md-600 mr-auto" }, Rt = { class: "pt-8 space-y-32" }, Mt = { class: "fm-typo-en-title-sm-600" }, Nt = { class: "flex items-end space-x-24" }, Et = { class: "flex" }, qt = { key: 0 }, Gt = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, jt = { class: "flex flex-wrap gap-8 mt-8" }, Kt = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 mt-8" }, Qt = { class: "space-y-16" }, Ht = {
1290
1369
  key: 1,
1291
1370
  class: "flex gap-8 rounded-md bg-fm-color-system-warning-100 p-12"
1292
1371
  }, Xt = { class: "space-y-4" }, Wt = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, Yt = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, Zt = { class: "xs:overflow-x-scroll" }, Jt = { class: "xs:min-w-[640px]" }, eo = { class: "flex gap-8 items-center justify-start" }, lo = { class: "flex items-center gap-8" }, ao = { class: "grow" }, to = { class: "pt-16 space-y-24" }, oo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, no = { class: "fm-typo-en-title-sm-600" }, so = { class: "space-y-16" }, io = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ro = /* @__PURE__ */ ce({
@@ -1302,8 +1381,8 @@ const ml = /* @__PURE__ */ ce({
1302
1381
  createPriceGroup: { type: Function }
1303
1382
  },
1304
1383
  emits: ["update:modelValue"],
1305
- setup(W, { emit: V }) {
1306
- const i = W, x = R(
1384
+ setup(Y, { emit: V }) {
1385
+ const i = Y, x = R(
1307
1386
  () => i.presentation === "tree" ? 720 : 800
1308
1387
  ), o = V, { t: d, n: w } = be(), C = (b) => {
1309
1388
  const h = b.code ? d("menu.group.list.product_code_name", {
@@ -1319,25 +1398,25 @@ const ml = /* @__PURE__ */ ce({
1319
1398
  }, P = (b) => b.reduce((h, se) => {
1320
1399
  const de = C(se);
1321
1400
  return h ? d("menu.group.list.join_products", { list: h, item: de }) : de;
1322
- }, ""), m = X({}), l = ye(null), $ = ye(null);
1401
+ }, ""), m = W({}), l = ye(null), $ = ye(null);
1323
1402
  function _() {
1324
1403
  var b;
1325
1404
  (b = $.value) == null || b.dispose(), $.value = null;
1326
1405
  }
1327
1406
  ke(_);
1328
1407
  const F = ye(null);
1329
- function z() {
1408
+ function L() {
1330
1409
  var b;
1331
1410
  (b = F.value) == null || b.dispose(), F.value = null;
1332
1411
  }
1333
1412
  function E(b, h) {
1334
- z(), F.value = i.session.pricingEditor(
1413
+ L(), F.value = i.session.pricingEditor(
1335
1414
  b.id,
1336
1415
  b.combinationKey,
1337
1416
  h
1338
1417
  );
1339
1418
  }
1340
- ke(z);
1419
+ ke(L);
1341
1420
  const G = ye(null), A = R(() => [
1342
1421
  {
1343
1422
  accessorKey: "label",
@@ -1359,7 +1438,7 @@ const ml = /* @__PURE__ */ ce({
1359
1438
  id: "action",
1360
1439
  size: 52,
1361
1440
  enableSorting: !1,
1362
- cell: (b) => H(O.FmButton, {
1441
+ cell: (b) => H(B.FmButton, {
1363
1442
  prependIcon: "edit",
1364
1443
  variant: "tertiary",
1365
1444
  // The same row action as the product form's group table, so it takes
@@ -1373,14 +1452,14 @@ const ml = /* @__PURE__ */ ce({
1373
1452
  onClick: () => G.value && Q(G.value, b.row.original.id)
1374
1453
  })
1375
1454
  }
1376
- ]), p = X(!1), g = ye(null), f = ye(null);
1455
+ ]), v = W(!1), g = ye(null), f = ye(null);
1377
1456
  let k = null;
1378
- function B() {
1457
+ function O() {
1379
1458
  var b;
1380
- p.value = !1, k == null || k(), k = null, (b = g.value) == null || b.dispose(), g.value = null, f.value = null;
1459
+ v.value = !1, k == null || k(), k = null, (b = g.value) == null || b.dispose(), g.value = null, f.value = null;
1381
1460
  }
1382
1461
  function Q(b, h) {
1383
- B();
1462
+ O();
1384
1463
  const se = i.session.nestedGroupEditor(
1385
1464
  b.id,
1386
1465
  b.combinationKey,
@@ -1388,16 +1467,16 @@ const ml = /* @__PURE__ */ ce({
1388
1467
  );
1389
1468
  se && (g.value = se, k = se.subscribe((de) => {
1390
1469
  f.value = de.status === "ready" ? de.value : null;
1391
- }), p.value = !0);
1470
+ }), v.value = !0);
1392
1471
  }
1393
- ke(B);
1472
+ ke(O);
1394
1473
  const ee = R(() => (i.zIndex ?? 200) + 1), a = R(() => [
1395
1474
  {
1396
1475
  label: d("menu.product.form.variant.placeholders.follow_general"),
1397
1476
  value: null
1398
1477
  },
1399
1478
  ...i.orderFromOptions.map((b) => ({
1400
- label: d(zl[b]),
1479
+ label: d(Dl[b]),
1401
1480
  value: b
1402
1481
  }))
1403
1482
  ]), c = (b) => b === "" || b === null || b === void 0 ? null : Number(b), ne = R(
@@ -1416,7 +1495,7 @@ const ml = /* @__PURE__ */ ce({
1416
1495
  cell: (b) => {
1417
1496
  var se;
1418
1497
  const h = b.row.original;
1419
- return (se = h.children) != null && se.length ? null : H(O.FmCheckbox, {
1498
+ return (se = h.children) != null && se.length ? null : H(B.FmCheckbox, {
1420
1499
  modelValue: h.isDefault,
1421
1500
  value: "",
1422
1501
  "aria-label": d("menu.common.labels.a11y_labelled_name", {
@@ -1439,7 +1518,7 @@ const ml = /* @__PURE__ */ ce({
1439
1518
  H("span", d("menu.group.option.product_title")),
1440
1519
  // The editor's legacy copy has no translation column
1441
1520
  // (TreeEditor/form/GroupManager/OptionTable.vue:187-189).
1442
- i.presentation === "tree" ? null : H(O.FmButton, {
1521
+ i.presentation === "tree" ? null : H(B.FmButton, {
1443
1522
  icon: "g_translate",
1444
1523
  variant: "tertiary",
1445
1524
  textColor: "neutral-gray-400",
@@ -1462,7 +1541,7 @@ const ml = /* @__PURE__ */ ce({
1462
1541
  // `getCanExpand()` is true for every FmTable row; legacy asks
1463
1542
  // whether the option carries combination entries (`items?.length`).
1464
1543
  b.row.original.children.length > 0 ? {
1465
- append: () => H(O.FmIcon, {
1544
+ append: () => H(B.FmIcon, {
1466
1545
  name: "keyboard_arrow_up",
1467
1546
  // Legacy greys the toggle when the title is not
1468
1547
  // editable (`NeutralGray200`), which it never is here.
@@ -1474,10 +1553,11 @@ const ml = /* @__PURE__ */ ce({
1474
1553
  }) : d("menu.apply_product.table.expand_combinations", {
1475
1554
  name: b.row.original.name
1476
1555
  }),
1556
+ // Down while collapsed, up once expanded.
1477
1557
  class: [
1478
1558
  "cursor-pointer",
1479
1559
  "transition-transform",
1480
- h ? "transform rotate-180" : ""
1560
+ h ? "" : "transform rotate-180"
1481
1561
  ],
1482
1562
  onClick: b.row.getToggleExpandedHandler()
1483
1563
  })
@@ -1532,7 +1612,7 @@ const ml = /* @__PURE__ */ ce({
1532
1612
  ...h.editPricing.state === "hidden" ? [] : [
1533
1613
  H("div", { class: "flex items-center gap-4" }, [
1534
1614
  H(
1535
- O.FmButton,
1615
+ B.FmButton,
1536
1616
  {
1537
1617
  variant: "plain",
1538
1618
  label: d(
@@ -1579,7 +1659,7 @@ const ml = /* @__PURE__ */ ce({
1579
1659
  size: 100,
1580
1660
  cell: (b) => {
1581
1661
  const h = b.row.original;
1582
- return H(O.FmSelect, {
1662
+ return H(B.FmSelect, {
1583
1663
  items: a.value,
1584
1664
  modelValue: h.displayOrderFrom,
1585
1665
  shiftMenu: !0,
@@ -1605,7 +1685,7 @@ const ml = /* @__PURE__ */ ce({
1605
1685
  const h = b.row.original;
1606
1686
  return H("div", { class: "flex items-center justify-end" }, [
1607
1687
  ...h.editPricing.state === "hidden" ? [] : [
1608
- H(O.FmButton, {
1688
+ H(B.FmButton, {
1609
1689
  icon: "price_change",
1610
1690
  variant: "tertiary",
1611
1691
  // Match the neutral-grey action buttons beside it and the
@@ -1619,7 +1699,7 @@ const ml = /* @__PURE__ */ ce({
1619
1699
  onClick: () => E(h, "tiers")
1620
1700
  })
1621
1701
  ],
1622
- H(O.FmButton, {
1702
+ H(B.FmButton, {
1623
1703
  prependIcon: "inventory_2",
1624
1704
  textColor: "neutral-gray-400",
1625
1705
  variant: "tertiary",
@@ -1635,7 +1715,7 @@ const ml = /* @__PURE__ */ ce({
1635
1715
  );
1636
1716
  }
1637
1717
  }),
1638
- H(O.FmButton, {
1718
+ H(B.FmButton, {
1639
1719
  prependIcon: "arrow_split",
1640
1720
  textColor: "neutral-gray-400",
1641
1721
  variant: "tertiary",
@@ -1655,22 +1735,22 @@ const ml = /* @__PURE__ */ ce({
1655
1735
  }
1656
1736
  return (b, h) => {
1657
1737
  var He;
1658
- const se = N("FmSelect"), de = N("FmButton"), $e = N("FmChip"), fe = N("FmCard"), q = N("FmStepperField"), Z = N("FmFormGroup"), M = N("FmSwitch"), Ie = N("FmIcon"), De = N("FmTable"), Ge = N("FmSideSheet"), Ye = N("ProductGroupSheet", !0);
1659
- return r(), S(ie, null, [
1738
+ const se = M("FmSelect"), de = M("FmButton"), $e = M("FmChip"), fe = M("FmCard"), q = M("FmStepperField"), Z = M("FmFormGroup"), N = M("FmSwitch"), Ie = M("FmIcon"), ze = M("FmTable"), Ge = M("FmSideSheet"), Ye = M("ProductGroupSheet", !0);
1739
+ return r(), S(re, null, [
1660
1740
  s(Ge, {
1661
1741
  "model-value": b.modelValue,
1662
1742
  "max-width": x.value,
1663
1743
  "z-index": i.zIndex ?? 200,
1664
1744
  "onUpdate:modelValue": h[8] || (h[8] = (J) => o("update:modelValue", J))
1665
1745
  }, {
1666
- "side-sheet-header": v(() => [
1746
+ "side-sheet-header": p(() => [
1667
1747
  n("span", {
1668
1748
  class: "nested-group-editor-sheet-marker sr-only",
1669
1749
  "data-scope-title": e(d)("menu.common.labels.nested_group_override")
1670
- }, I(e(d)("menu.common.labels.nested_group_override")), 9, Dt),
1671
- n("p", zt, I(e(d)("menu.group.update")), 1)
1750
+ }, I(e(d)("menu.common.labels.nested_group_override")), 9, zt),
1751
+ n("p", Dt, I(e(d)("menu.group.update")), 1)
1672
1752
  ]),
1673
- "side-sheet-footer": v(() => [
1753
+ "side-sheet-footer": p(() => [
1674
1754
  n("div", eo, [
1675
1755
  s(de, {
1676
1756
  label: e(d)("menu.common.actions.update"),
@@ -1692,16 +1772,16 @@ const ml = /* @__PURE__ */ ce({
1692
1772
  }, null, 8, ["label", "aria-label"])
1693
1773
  ])
1694
1774
  ]),
1695
- default: v(() => [
1775
+ default: p(() => [
1696
1776
  n("div", Rt, [
1697
1777
  b.view.combinations.length > 0 ? (r(), T(fe, {
1698
1778
  key: 0,
1699
1779
  class: "p-16 bg-fm-color-neutral-gray-100 space-y-24",
1700
1780
  variant: "outlined"
1701
1781
  }, {
1702
- default: v(() => [
1703
- n("p", Nt, I(e(d)("menu.group.option.variant")), 1),
1704
- n("div", Mt, [
1782
+ default: p(() => [
1783
+ n("p", Mt, I(e(d)("menu.group.option.variant")), 1),
1784
+ n("div", Nt, [
1705
1785
  s(se, {
1706
1786
  class: "flex-1",
1707
1787
  "aria-label": e(d)("menu.group.option.variant"),
@@ -1715,14 +1795,14 @@ const ml = /* @__PURE__ */ ce({
1715
1795
  }, null, 8, ["aria-label", "menu-z-index", "items", "model-value"]),
1716
1796
  n("div", Et, [
1717
1797
  s(de, {
1718
- variant: e(Me).Tertiary,
1798
+ variant: e(Ne).Tertiary,
1719
1799
  "prepend-icon": "keyboard_arrow_left",
1720
1800
  size: "lg",
1721
1801
  "aria-label": e(d)("menu.product.form.group.combination.previous"),
1722
1802
  onClick: h[1] || (h[1] = (J) => b.session.stepCombination("previous"))
1723
1803
  }, null, 8, ["variant", "aria-label"]),
1724
1804
  s(de, {
1725
- variant: e(Me).Tertiary,
1805
+ variant: e(Ne).Tertiary,
1726
1806
  "prepend-icon": "keyboard_arrow_right",
1727
1807
  size: "lg",
1728
1808
  "aria-label": e(d)("menu.product.form.group.combination.next"),
@@ -1733,7 +1813,7 @@ const ml = /* @__PURE__ */ ce({
1733
1813
  b.view.combinations.length > 1 ? (r(), S("div", qt, [
1734
1814
  n("p", Gt, I(e(d)("menu.group.option.show_in_variants")), 1),
1735
1815
  n("div", jt, [
1736
- (r(!0), S(ie, null, Fe(b.view.combinations, (J) => (r(), T($e, {
1816
+ (r(!0), S(re, null, Fe(b.view.combinations, (J) => (r(), T($e, {
1737
1817
  key: J.id,
1738
1818
  icon: J.hidden ? "visibility_off" : "check",
1739
1819
  label: J.label,
@@ -1752,7 +1832,7 @@ const ml = /* @__PURE__ */ ce({
1752
1832
  _: 1
1753
1833
  })) : y("", !0),
1754
1834
  s(la, null, {
1755
- default: v(() => [
1835
+ default: p(() => [
1756
1836
  s(ge, {
1757
1837
  label: e(d)("menu.common.labels.group_name"),
1758
1838
  placeholder: b.view.name,
@@ -1760,7 +1840,7 @@ const ml = /* @__PURE__ */ ce({
1760
1840
  }, cl({ _: 2 }, [
1761
1841
  b.presentation !== "tree" ? {
1762
1842
  name: "append",
1763
- fn: v(() => [
1843
+ fn: p(() => [
1764
1844
  s(de, {
1765
1845
  variant: "tertiary",
1766
1846
  icon: "g_translate",
@@ -1773,9 +1853,9 @@ const ml = /* @__PURE__ */ ce({
1773
1853
  s(Z, {
1774
1854
  "model-value": b.view.minSelect + " " + b.view.maxSelect
1775
1855
  }, {
1776
- default: v(() => [
1856
+ default: p(() => [
1777
1857
  s(sa, null, {
1778
- default: v(() => [
1858
+ default: p(() => [
1779
1859
  s(q, {
1780
1860
  class: "flex-1",
1781
1861
  label: e(d)("menu.common.labels.min_select"),
@@ -1803,18 +1883,18 @@ const ml = /* @__PURE__ */ ce({
1803
1883
  s(Oe, {
1804
1884
  label: e(d)("menu.common.labels.configuration")
1805
1885
  }, {
1806
- default: v(() => {
1886
+ default: p(() => {
1807
1887
  var J;
1808
1888
  return [
1809
1889
  n("div", Qt, [
1810
- s(M, {
1890
+ s(N, {
1811
1891
  "model-value": b.view.stackable,
1812
1892
  disabled: "",
1813
1893
  label: e(d)("menu.common.labels.stackable"),
1814
1894
  "label-placement": "right",
1815
1895
  sublabel: e(d)("menu.common.labels.stackable_sublabel")
1816
1896
  }, null, 8, ["model-value", "label", "sublabel"]),
1817
- s(M, {
1897
+ s(N, {
1818
1898
  "model-value": b.view.hidden,
1819
1899
  label: e(d)("menu.common.labels.hide_group"),
1820
1900
  "label-placement": "right",
@@ -1856,14 +1936,14 @@ const ml = /* @__PURE__ */ ce({
1856
1936
  max: b.view.maxSelect
1857
1937
  })
1858
1938
  }, {
1859
- default: v(() => [
1939
+ default: p(() => [
1860
1940
  s(qe, {
1861
1941
  title: e(d)("menu.common.labels.product")
1862
1942
  }, {
1863
- default: v(() => [
1943
+ default: p(() => [
1864
1944
  n("div", Zt, [
1865
1945
  n("div", Jt, [
1866
- s(De, {
1946
+ s(ze, {
1867
1947
  "column-defs": le.value,
1868
1948
  "row-data": pe.value,
1869
1949
  "column-visibility": { code: b.view.showCode },
@@ -1893,7 +1973,7 @@ const ml = /* @__PURE__ */ ce({
1893
1973
  "onUpdate:modelValue": h[11] || (h[11] = (J) => !J && (G.value = null)),
1894
1974
  "onOn:clickedAway": h[12] || (h[12] = (J) => G.value = null)
1895
1975
  }, {
1896
- "side-sheet-header": v(() => [
1976
+ "side-sheet-header": p(() => [
1897
1977
  n("div", lo, [
1898
1978
  h[14] || (h[14] = n("span", {
1899
1979
  class: "nested-group-sheet-marker",
@@ -1909,7 +1989,7 @@ const ml = /* @__PURE__ */ ce({
1909
1989
  n("div", ao, I(e(d)("menu.group.nested.title")), 1)
1910
1990
  ])
1911
1991
  ]),
1912
- "side-sheet-footer": v(() => [
1992
+ "side-sheet-footer": p(() => [
1913
1993
  s(de, {
1914
1994
  label: e(d)("menu.common.actions.ok"),
1915
1995
  size: "lg",
@@ -1917,7 +1997,7 @@ const ml = /* @__PURE__ */ ce({
1917
1997
  onClick: h[10] || (h[10] = (J) => G.value = null)
1918
1998
  }, null, 8, ["label"])
1919
1999
  ]),
1920
- default: v(() => {
2000
+ default: p(() => {
1921
2001
  var J, we;
1922
2002
  return [
1923
2003
  n("div", to, [
@@ -1925,18 +2005,18 @@ const ml = /* @__PURE__ */ ce({
1925
2005
  variant: "outlined",
1926
2006
  class: "px-16 py-12"
1927
2007
  }, {
1928
- default: v(() => {
1929
- var L;
2008
+ default: p(() => {
2009
+ var z;
1930
2010
  return [
1931
2011
  n("p", oo, I(e(d)("menu.group.nested.currently_configuring")), 1),
1932
- n("p", no, I((L = G.value) == null ? void 0 : L.name), 1)
2012
+ n("p", no, I((z = G.value) == null ? void 0 : z.name), 1)
1933
2013
  ];
1934
2014
  }),
1935
2015
  _: 1
1936
2016
  }),
1937
2017
  n("div", so, [
1938
2018
  n("p", io, I(e(d)("menu.group.nested.subtitle")), 1),
1939
- s(De, {
2019
+ s(ze, {
1940
2020
  "column-defs": A.value,
1941
2021
  "row-data": [...((J = G.value) == null ? void 0 : J.nestedGroups) ?? []],
1942
2022
  "page-size": ((we = G.value) == null ? void 0 : we.nestedGroups.length) ?? 0,
@@ -1956,17 +2036,17 @@ const ml = /* @__PURE__ */ ce({
1956
2036
  "product-name": ((He = l.value) == null ? void 0 : He.name) ?? "",
1957
2037
  onClose: _
1958
2038
  }, null, 8, ["session", "product-name"])) : y("", !0),
1959
- F.value ? (r(), T(Dl, {
2039
+ F.value ? (r(), T(zl, {
1960
2040
  key: 1,
1961
2041
  session: F.value,
1962
2042
  "z-index": (i.zIndex ?? 200) + 100,
1963
2043
  "on-create-price-group": b.createPriceGroup,
1964
2044
  "main-pricing-label": !1,
1965
- onClose: z
2045
+ onClose: L
1966
2046
  }, null, 8, ["session", "z-index", "on-create-price-group"])) : y("", !0),
1967
2047
  g.value && f.value ? (r(), T(Ye, {
1968
2048
  key: 2,
1969
- "model-value": p.value,
2049
+ "model-value": v.value,
1970
2050
  view: f.value,
1971
2051
  session: g.value,
1972
2052
  "order-from-options": b.orderFromOptions,
@@ -1974,7 +2054,7 @@ const ml = /* @__PURE__ */ ce({
1974
2054
  presentation: b.presentation,
1975
2055
  "create-price-group": b.createPriceGroup,
1976
2056
  nested: "",
1977
- "onUpdate:modelValue": h[13] || (h[13] = (J) => !J && B())
2057
+ "onUpdate:modelValue": h[13] || (h[13] = (J) => !J && O())
1978
2058
  }, null, 8, ["model-value", "view", "session", "order-from-options", "z-index", "presentation", "create-price-group"])) : y("", !0)
1979
2059
  ], 64);
1980
2060
  };
@@ -1988,8 +2068,8 @@ const ml = /* @__PURE__ */ ce({
1988
2068
  summary: {},
1989
2069
  variant: { default: "full" }
1990
2070
  },
1991
- setup(W) {
1992
- const V = W, i = Qe(), { t: x, n: o } = be(), d = x("menu.product.form.summary.empty_value"), w = R(() => [
2071
+ setup(Y) {
2072
+ const V = Y, i = Qe(), { t: x, n: o } = be(), d = x("menu.product.form.summary.empty_value"), w = R(() => [
1993
2073
  {
1994
2074
  name: x("menu.product.form.summary.fields.code"),
1995
2075
  value: V.summary.code ?? d
@@ -2055,11 +2135,11 @@ const ml = /* @__PURE__ */ ce({
2055
2135
  });
2056
2136
  }
2057
2137
  return (P, m) => {
2058
- const l = N("FmButton");
2138
+ const l = M("FmButton");
2059
2139
  return P.variant === "full" ? (r(), S("div", uo, [
2060
2140
  n("div", mo, I(e(x)("menu.product.form.summary.title")), 1),
2061
2141
  m[0] || (m[0] = n("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)),
2062
- (r(!0), S(ie, null, Fe(w.value, ($) => (r(), S("div", {
2142
+ (r(!0), S(re, null, Fe(w.value, ($) => (r(), S("div", {
2063
2143
  key: $.name,
2064
2144
  class: "space-y-4"
2065
2145
  }, [
@@ -2075,38 +2155,7 @@ const ml = /* @__PURE__ */ ce({
2075
2155
  }, null, 8, ["aria-label"]));
2076
2156
  };
2077
2157
  }
2078
- });
2079
- function Nl(W, V) {
2080
- const i = X(""), x = R(() => i.value.trim().toLowerCase()), o = R(
2081
- () => x.value ? W().filter(
2082
- (C) => V(C).toLowerCase().includes(x.value)
2083
- ) : W()
2084
- ), d = R(
2085
- () => x.value !== "" && o.value.length === 0
2086
- );
2087
- function w() {
2088
- i.value = "";
2089
- }
2090
- return { search: i, filtered: o, noMatches: d, reset: w };
2091
- }
2092
- function Ml() {
2093
- const W = X(), V = X();
2094
- let i = !1;
2095
- async function x(d) {
2096
- var P;
2097
- if (i = d, V.value = void 0, !d) return;
2098
- await el(), await new Promise(requestAnimationFrame);
2099
- const w = (P = W.value) == null ? void 0 : P.parentElement;
2100
- if (!i || !w) return;
2101
- const C = getComputedStyle(w);
2102
- V.value = w.clientHeight - parseFloat(C.paddingTop) - parseFloat(C.paddingBottom);
2103
- }
2104
- const o = R(
2105
- () => V.value ? { minHeight: `${V.value}px` } : void 0
2106
- );
2107
- return { content: W, contentStyle: o, onMenuChanged: x };
2108
- }
2109
- const bo = {
2158
+ }), bo = {
2110
2159
  key: 0,
2111
2160
  class: "sticky top-0 z-10 px-8 pb-8 bg-fm-color-neutral-white"
2112
2161
  }, fo = {
@@ -2121,27 +2170,27 @@ const bo = {
2121
2170
  placeholder: {}
2122
2171
  },
2123
2172
  emits: ["update:modelValue", "create"],
2124
- setup(W, { emit: V }) {
2125
- const i = W, x = V, { t: o } = be(), { search: d, filtered: w, noMatches: C, reset: P } = Nl(
2173
+ setup(Y, { emit: V }) {
2174
+ const i = Y, x = V, { t: o } = be(), { search: d, filtered: w, noMatches: C, reset: P } = Ml(
2126
2175
  () => i.items,
2127
2176
  (F) => F.label
2128
- ), { content: m, contentStyle: l, onMenuChanged: $ } = Ml();
2177
+ ), { content: m, contentStyle: l, onMenuChanged: $ } = Nl();
2129
2178
  function _(F) {
2130
2179
  F || P(), $(F);
2131
2180
  }
2132
- return (F, z) => {
2133
- const E = N("FmSearch"), G = N("FmMenuItem"), A = N("FmButton"), p = N("FmSelect");
2134
- return r(), T(p, {
2181
+ return (F, L) => {
2182
+ const E = M("FmSearch"), G = M("FmMenuItem"), A = M("FmButton"), v = M("FmSelect");
2183
+ return r(), T(v, {
2135
2184
  items: F.items,
2136
2185
  disabled: F.disabled,
2137
2186
  multiselect: "",
2138
2187
  "keep-selection-order": "",
2139
2188
  "model-value": F.modelValue,
2140
2189
  placeholder: F.placeholder,
2141
- "onUpdate:modelValue": z[2] || (z[2] = (g) => x("update:modelValue", g ?? [])),
2190
+ "onUpdate:modelValue": L[2] || (L[2] = (g) => x("update:modelValue", g ?? [])),
2142
2191
  onDropdownChanged: _
2143
2192
  }, {
2144
- "menu-wrapper": v(({ handleItemChange: g }) => [
2193
+ "menu-wrapper": p(({ handleItemChange: g }) => [
2145
2194
  n("div", {
2146
2195
  ref_key: "content",
2147
2196
  ref: m,
@@ -2151,12 +2200,12 @@ const bo = {
2151
2200
  F.items.length ? (r(), S("div", bo, [
2152
2201
  s(E, {
2153
2202
  modelValue: e(d),
2154
- "onUpdate:modelValue": z[0] || (z[0] = (f) => Ol(d) ? d.value = f : null),
2203
+ "onUpdate:modelValue": L[0] || (L[0] = (f) => Ol(d) ? d.value = f : null),
2155
2204
  autofocus: "",
2156
2205
  placeholder: e(o)("menu.common.actions.search")
2157
2206
  }, null, 8, ["modelValue", "placeholder"])
2158
2207
  ])) : y("", !0),
2159
- (r(!0), S(ie, null, Fe(e(w), (f) => (r(), T(G, {
2208
+ (r(!0), S(re, null, Fe(e(w), (f) => (r(), T(G, {
2160
2209
  key: f.value,
2161
2210
  label: f.label,
2162
2211
  "has-checkbox": "",
@@ -2171,7 +2220,7 @@ const bo = {
2171
2220
  "prepend-icon": "add",
2172
2221
  class: "w-full justify-start",
2173
2222
  label: e(o)("menu.product.form.detail.category.add_new"),
2174
- onClick: z[1] || (z[1] = (f) => x("create"))
2223
+ onClick: L[1] || (L[1] = (f) => x("create"))
2175
2224
  }, null, 8, ["label"])
2176
2225
  ], 4)
2177
2226
  ]),
@@ -2195,15 +2244,15 @@ const bo = {
2195
2244
  session: {}
2196
2245
  },
2197
2246
  emits: ["create"],
2198
- setup(W, { emit: V }) {
2199
- const i = W, x = V, { t: o } = be(), d = Pe(), w = (g) => g.labelMessage ? d(g.labelMessage) : g.label, C = X(!1), P = X(), { search: m, filtered: l, noMatches: $, reset: _ } = Nl(
2247
+ setup(Y, { emit: V }) {
2248
+ const i = Y, x = V, { t: o } = be(), d = Pe(), w = (g) => g.labelMessage ? d(g.labelMessage) : g.label, C = W(!1), P = W(), { search: m, filtered: l, noMatches: $, reset: _ } = Ml(
2200
2249
  () => i.view.categoryOptions,
2201
2250
  w
2202
2251
  ), {
2203
2252
  content: F,
2204
- contentStyle: z,
2253
+ contentStyle: L,
2205
2254
  onMenuChanged: E
2206
- } = Ml();
2255
+ } = Nl();
2207
2256
  function G(g) {
2208
2257
  C.value = g, g || _(), E(g);
2209
2258
  }
@@ -2212,12 +2261,12 @@ const bo = {
2212
2261
  (g) => g.id === i.view.categoryId
2213
2262
  )
2214
2263
  );
2215
- function p(g, f) {
2264
+ function v(g, f) {
2216
2265
  var k;
2217
2266
  i.session.selectCategory(g, f), f && ((k = P.value) == null || k.toggleMenu(!1));
2218
2267
  }
2219
2268
  return (g, f) => {
2220
- const k = N("FmIcon"), B = N("FmField"), Q = N("FmSearch"), ee = N("FmMenuItem"), a = N("FmButton"), c = N("FmMenu"), ne = N("FmFormGroup"), pe = N("FmChipGroup");
2269
+ const k = M("FmIcon"), O = M("FmField"), Q = M("FmSearch"), ee = M("FmMenuItem"), a = M("FmButton"), c = M("FmMenu"), ne = M("FmFormGroup"), pe = M("FmChipGroup");
2221
2270
  return r(), S("div", {
2222
2271
  class: "flex flex-col gap-4",
2223
2272
  "aria-label": g.view.categoryLabel === "plural" ? e(o)("menu.product.form.detail.category.label") : e(o)("menu.product.form.detail.category.label_singular")
@@ -2227,7 +2276,7 @@ const bo = {
2227
2276
  disabled: g.view.editClassification.state !== "allowed",
2228
2277
  focused: C.value
2229
2278
  }, {
2230
- default: v(() => [
2279
+ default: p(() => [
2231
2280
  s(c, {
2232
2281
  ref_key: "menu",
2233
2282
  ref: P,
@@ -2235,30 +2284,30 @@ const bo = {
2235
2284
  "close-on-click": !1,
2236
2285
  onMenuChanged: G
2237
2286
  }, {
2238
- "menu-button": v(() => [
2239
- s(B, {
2287
+ "menu-button": p(() => [
2288
+ s(O, {
2240
2289
  class: "cursor-pointer",
2241
2290
  disabled: g.view.editClassification.state !== "allowed",
2242
2291
  focused: C.value
2243
2292
  }, {
2244
- append: v(() => [
2293
+ append: p(() => [
2245
2294
  s(k, {
2246
2295
  name: C.value ? "expand_less" : "expand_more",
2247
2296
  size: "md"
2248
2297
  }, null, 8, ["name"])
2249
2298
  ]),
2250
- default: v(() => [
2299
+ default: p(() => [
2251
2300
  n("div", _o, I(e(o)("menu.product.form.detail.category.placeholder")), 1)
2252
2301
  ]),
2253
2302
  _: 1
2254
2303
  }, 8, ["disabled", "focused"])
2255
2304
  ]),
2256
- default: v(() => [
2305
+ default: p(() => [
2257
2306
  n("div", {
2258
2307
  ref_key: "content",
2259
2308
  ref: F,
2260
2309
  class: "relative min-w-[112px] py-12 px-4 flex flex-col overflow-y-auto bg-fm-color-neutral-white shadow-light-300 rounded-md",
2261
- style: pl(e(z))
2310
+ style: pl(e(L))
2262
2311
  }, [
2263
2312
  g.view.categoryOptions.length ? (r(), S("div", ho, [
2264
2313
  s(Q, {
@@ -2268,12 +2317,12 @@ const bo = {
2268
2317
  placeholder: e(o)("menu.common.actions.search")
2269
2318
  }, null, 8, ["modelValue", "placeholder"])
2270
2319
  ])) : y("", !0),
2271
- (r(!0), S(ie, null, Fe(e(l), (le) => (r(), T(ee, {
2320
+ (r(!0), S(re, null, Fe(e(l), (le) => (r(), T(ee, {
2272
2321
  key: le.id,
2273
2322
  label: w(le),
2274
2323
  "has-checkbox": "",
2275
2324
  "model-value": g.view.categoryId === le.id,
2276
- "onUpdate:modelValue": (ve) => p(le.id, ve)
2325
+ "onUpdate:modelValue": (ve) => v(le.id, ve)
2277
2326
  }, null, 8, ["label", "model-value", "onUpdate:modelValue"]))), 128)),
2278
2327
  e($) ? (r(), S("p", ko, I(e(o)("menu.product.form.detail.category.no_results")), 1)) : y("", !0),
2279
2328
  s(a, {
@@ -2307,10 +2356,10 @@ const bo = {
2307
2356
  }, Uo = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Io = {
2308
2357
  key: 0,
2309
2358
  class: "space-y-8"
2310
- }, To = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Ao = { class: "flex w-[100px] items-center gap-8" }, Bo = { class: "fm-typo-en-body-md-400" }, Oo = { class: "flex-1" }, Lo = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, Do = ["aria-expanded"], zo = { class: "fm-typo-en-body-lg-600" }, Ro = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, No = {
2359
+ }, To = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Ao = { class: "flex w-[100px] items-center gap-8" }, Bo = { class: "fm-typo-en-body-md-400" }, Oo = { class: "flex-1" }, Lo = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, zo = ["aria-expanded"], Do = { class: "fm-typo-en-body-lg-600" }, Ro = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Mo = {
2311
2360
  key: 0,
2312
2361
  class: "flex flex-col gap-32 pl-32"
2313
- }, Mo = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Eo = {
2362
+ }, No = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Eo = {
2314
2363
  key: 0,
2315
2364
  class: "space-y-8"
2316
2365
  }, qo = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4 mb-8" }, Go = { class: "flex w-[100px] items-center gap-8 pt-12" }, jo = { class: "fm-typo-en-body-md-400" }, Ko = { class: "flex-1" }, Qo = { class: "w-full flex gap-8 items-center justify-end relative -top-px" }, Ho = /* @__PURE__ */ ce({
@@ -2322,13 +2371,13 @@ const bo = {
2322
2371
  initialSection: { default: "name" }
2323
2372
  },
2324
2373
  emits: ["update:modelValue"],
2325
- setup(W, { emit: V }) {
2326
- const i = W, x = V, { t: o } = be(), d = Qe(), w = R({
2374
+ setup(Y, { emit: V }) {
2375
+ const i = Y, x = V, { t: o } = be(), d = Qe(), w = R({
2327
2376
  get: () => i.modelValue,
2328
2377
  set: (f) => {
2329
- f ? x("update:modelValue", f) : p();
2378
+ f ? x("update:modelValue", f) : v();
2330
2379
  }
2331
- }), C = X(!0), P = X(!1);
2380
+ }), C = W(!0), P = W(!1);
2332
2381
  Ae(
2333
2382
  () => [i.modelValue, i.initialSection],
2334
2383
  ([f, k]) => {
@@ -2360,23 +2409,23 @@ const bo = {
2360
2409
  const k = f.map((Q) => ({
2361
2410
  locale: Q.code,
2362
2411
  value: Q.name
2363
- })), B = f.map((Q) => ({
2412
+ })), O = f.map((Q) => ({
2364
2413
  locale: Q.code,
2365
2414
  value: Q.description
2366
2415
  }));
2367
- i.session.setNameLocales(k), i.session.setDescriptionLocales(B);
2416
+ i.session.setNameLocales(k), i.session.setDescriptionLocales(O);
2368
2417
  }
2369
2418
  function F(f, k) {
2370
2419
  _(
2371
2420
  m.value.map(
2372
- (B) => B.code === f ? { ...B, name: k } : B
2421
+ (O) => O.code === f ? { ...O, name: k } : O
2373
2422
  )
2374
2423
  );
2375
2424
  }
2376
- function z(f, k) {
2425
+ function L(f, k) {
2377
2426
  _(
2378
2427
  m.value.map(
2379
- (B) => B.code === f ? { ...B, description: k } : B
2428
+ (O) => O.code === f ? { ...O, description: k } : O
2380
2429
  )
2381
2430
  );
2382
2431
  }
@@ -2392,11 +2441,11 @@ const bo = {
2392
2441
  function A() {
2393
2442
  i.session.saveTranslationEdit(), x("update:modelValue", !1);
2394
2443
  }
2395
- function p() {
2444
+ function v() {
2396
2445
  i.session.discardTranslationEdit(), x("update:modelValue", !1);
2397
2446
  }
2398
2447
  function g() {
2399
- if (!i.view.translationDiscardConfirmation) return p();
2448
+ if (!i.view.translationDiscardConfirmation) return v();
2400
2449
  d.open({
2401
2450
  title: o("menu.common.dialog.dismiss.title"),
2402
2451
  message: o("menu.common.dialog.dismiss.message"),
@@ -2411,19 +2460,19 @@ const bo = {
2411
2460
  variant: "tertiary",
2412
2461
  close: !0
2413
2462
  }
2414
- }).onPrimary(p);
2463
+ }).onPrimary(v);
2415
2464
  }
2416
2465
  return (f, k) => {
2417
- const B = N("FmIcon"), Q = N("FmTextarea"), ee = N("FmButton"), a = N("FmDialog");
2466
+ const O = M("FmIcon"), Q = M("FmTextarea"), ee = M("FmButton"), a = M("FmDialog");
2418
2467
  return r(), T(a, {
2419
2468
  modelValue: w.value,
2420
2469
  "onUpdate:modelValue": k[4] || (k[4] = (c) => w.value = c),
2421
2470
  "max-width": 800
2422
2471
  }, {
2423
- "dialog-header": v(() => [
2472
+ "dialog-header": p(() => [
2424
2473
  n("p", Co, I(e(o)("menu.product.translation.title")), 1)
2425
2474
  ]),
2426
- "dialog-footer": v(() => [
2475
+ "dialog-footer": p(() => [
2427
2476
  n("div", Qo, [
2428
2477
  s(ee, {
2429
2478
  label: e(o)("menu.common.actions.cancel"),
@@ -2441,7 +2490,7 @@ const bo = {
2441
2490
  }, null, 8, ["label", "aria-label"])
2442
2491
  ])
2443
2492
  ]),
2444
- default: v(() => [
2493
+ default: p(() => [
2445
2494
  n("div", Fo, [
2446
2495
  s(Hl, {
2447
2496
  selected: m.value.map((c) => ({ code: c.code, name: c.label })),
@@ -2457,7 +2506,7 @@ const bo = {
2457
2506
  "aria-expanded": C.value,
2458
2507
  onClick: k[0] || (k[0] = (c) => C.value = !C.value)
2459
2508
  }, [
2460
- s(B, {
2509
+ s(O, {
2461
2510
  name: C.value ? "keyboard_arrow_down" : "keyboard_arrow_right"
2462
2511
  }, null, 8, ["name"]),
2463
2512
  n("p", Vo, I(e(o)("menu.product.translation.product_name")), 1)
@@ -2481,7 +2530,7 @@ const bo = {
2481
2530
  ]),
2482
2531
  m.value.length > 0 ? (r(), S("div", Io, [
2483
2532
  n("p", To, I(e(o)("menu.common.translation.translation_label")), 1),
2484
- (r(!0), S(ie, null, Fe(m.value, (c) => (r(), S("div", {
2533
+ (r(!0), S(re, null, Fe(m.value, (c) => (r(), S("div", {
2485
2534
  key: c.code,
2486
2535
  class: "flex gap-16 items-center"
2487
2536
  }, [
@@ -2512,17 +2561,17 @@ const bo = {
2512
2561
  "aria-expanded": P.value,
2513
2562
  onClick: k[2] || (k[2] = (c) => P.value = !P.value)
2514
2563
  }, [
2515
- s(B, {
2564
+ s(O, {
2516
2565
  name: P.value ? "keyboard_arrow_down" : "keyboard_arrow_right"
2517
2566
  }, null, 8, ["name"]),
2518
- n("p", zo, [
2567
+ n("p", Do, [
2519
2568
  sl(I(e(o)("menu.product.translation.description")) + " ", 1),
2520
2569
  n("span", Ro, I(e(o)("menu.product.translation.optional")), 1)
2521
2570
  ])
2522
- ], 8, Do),
2523
- P.value ? (r(), S("div", No, [
2571
+ ], 8, zo),
2572
+ P.value ? (r(), S("div", Mo, [
2524
2573
  n("div", null, [
2525
- n("p", Mo, I(e(o)("menu.common.translation.default")), 1),
2574
+ n("p", No, I(e(o)("menu.common.translation.default")), 1),
2526
2575
  n("div", {
2527
2576
  class: Be(["-mt-px", {
2528
2577
  "mb-px product-translation-empty-textarea": m.value.length === 0
@@ -2538,7 +2587,7 @@ const bo = {
2538
2587
  ]),
2539
2588
  m.value.length > 0 ? (r(), S("div", Eo, [
2540
2589
  n("p", qo, I(e(o)("menu.common.translation.translation_label")), 1),
2541
- (r(!0), S(ie, null, Fe(m.value, (c) => (r(), S("div", {
2590
+ (r(!0), S(re, null, Fe(m.value, (c) => (r(), S("div", {
2542
2591
  key: c.code,
2543
2592
  class: "flex gap-16 items-start"
2544
2593
  }, [
@@ -2553,7 +2602,7 @@ const bo = {
2553
2602
  "aria-label": l(c.label),
2554
2603
  "model-value": c.description,
2555
2604
  placeholder: e(o)("menu.product.translation.placeholder"),
2556
- "onUpdate:modelValue": (ne) => z(c.code, String(ne ?? ""))
2605
+ "onUpdate:modelValue": (ne) => L(c.code, String(ne ?? ""))
2557
2606
  }, null, 8, ["aria-label", "model-value", "placeholder", "onUpdate:modelValue"])
2558
2607
  ])
2559
2608
  ]))), 128))
@@ -2581,10 +2630,10 @@ const bo = {
2581
2630
  }, Un = { class: "flex flex-col space-y-4" }, In = { class: "fm-typo-en-body-lg-600" }, Tn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, An = { class: "flex items-center gap-16" }, Bn = { class: "space-y-16" }, On = { class: "space-y-8" }, Ln = {
2582
2631
  key: 0,
2583
2632
  class: "pl-32 pb-4 flex items-center gap-16"
2584
- }, Dn = { class: "fm-typo-en-body-lg-400" }, zn = { class: "w-[258px]" }, Rn = { class: "w-[117px]" }, Nn = {
2633
+ }, zn = { class: "fm-typo-en-body-lg-400" }, Dn = { class: "w-[258px]" }, Rn = { class: "w-[117px]" }, Mn = {
2585
2634
  key: 0,
2586
2635
  class: "space-y-8"
2587
- }, Mn = {
2636
+ }, Nn = {
2588
2637
  key: 0,
2589
2638
  class: "pl-32 pb-4 flex space-x-16"
2590
2639
  }, En = { class: "w-[258px] xs:w-full" }, qn = {
@@ -2632,14 +2681,14 @@ const bo = {
2632
2681
  sdk: {}
2633
2682
  },
2634
2683
  emits: ["select-scope", "create-entity"],
2635
- setup(W, { emit: V }) {
2636
- const i = W, x = X(null);
2684
+ setup(Y, { emit: V }) {
2685
+ const i = Y, x = W(null);
2637
2686
  Ae(
2638
2687
  () => [i.treeSelection, i.view.itemId],
2639
2688
  async ([u]) => {
2640
2689
  var te, oe;
2641
2690
  if (!u) return;
2642
- await el();
2691
+ await Je();
2643
2692
  const t = x.value;
2644
2693
  if (!t) return;
2645
2694
  const j = u.kind === "item" ? t : [
@@ -2692,7 +2741,7 @@ const bo = {
2692
2741
  count: u.variantCount
2693
2742
  })
2694
2743
  }) : t;
2695
- }, z = (u) => u.reduce((t, j) => {
2744
+ }, L = (u) => u.reduce((t, j) => {
2696
2745
  const te = F(j);
2697
2746
  return t ? l("menu.group.list.join_products", { list: t, item: te }) : te;
2698
2747
  }, ""), E = Qe();
@@ -2735,18 +2784,18 @@ const bo = {
2735
2784
  },
2736
2785
  tertiaryActions: {
2737
2786
  text: l("menu.product.form.order_pacing.time_presets.add_preset"),
2738
- variant: Me.Plain,
2787
+ variant: Ne.Plain,
2739
2788
  close: !1
2740
2789
  }
2741
2790
  }).onPrimary(() => {
2742
2791
  u.apply() && E.close();
2743
2792
  }).onTertiary(() => o("create-entity", "pacing")).onClose(() => u.dispose());
2744
2793
  }
2745
- const p = Pe(), g = X(
2794
+ const v = Pe(), g = W(
2746
2795
  null
2747
2796
  ), f = R(
2748
2797
  () => (i.itemBreadcrumb ?? []).map((u) => ({
2749
- label: u.labelMessage ? p(u.labelMessage) : u.label,
2798
+ label: u.labelMessage ? v(u.labelMessage) : u.label,
2750
2799
  route: ""
2751
2800
  }))
2752
2801
  );
@@ -2760,8 +2809,8 @@ const bo = {
2760
2809
  },
2761
2810
  { flush: "post" }
2762
2811
  );
2763
- const k = X(null);
2764
- function B(u) {
2812
+ const k = W(null);
2813
+ function O(u) {
2765
2814
  var j, te;
2766
2815
  const t = i.session.prepareSuggestion(u);
2767
2816
  if (!t) {
@@ -2799,7 +2848,7 @@ const bo = {
2799
2848
  return (u = a.value.nameIssue) == null ? void 0 : u.code;
2800
2849
  },
2801
2850
  (u) => {
2802
- u && el(() => {
2851
+ u && Je(() => {
2803
2852
  var t, j;
2804
2853
  return (j = (t = k.value) == null ? void 0 : t.focus) == null ? void 0 : j.call(t);
2805
2854
  });
@@ -2818,7 +2867,7 @@ const bo = {
2818
2867
  currency: u.unitAmount.currency,
2819
2868
  currencyDisplay: "narrowSymbol",
2820
2869
  minimumFractionDigits: u.unitAmount.precision
2821
- }).replaceAll(/\s/g, ""), b = X(!1), h = X("name"), se = Xl();
2870
+ }).replaceAll(/\s/g, ""), b = W(!1), h = W("name"), se = Xl();
2822
2871
  function de(u = "name") {
2823
2872
  var j, te;
2824
2873
  const t = u === "name" ? (j = a.value) == null ? void 0 : j.nameTranslation : (te = a.value) == null ? void 0 : te.descriptionTranslation;
@@ -2838,12 +2887,12 @@ const bo = {
2838
2887
  ...a.value.additionalCategoryIds
2839
2888
  ]), Z = R(
2840
2889
  () => a.value.formOrderFromOptions.map((u) => ({
2841
- label: l(u === null ? "menu.product.form.detail.order_from.default" : zl[u]),
2890
+ label: l(u === null ? "menu.product.form.detail.order_from.default" : Dl[u]),
2842
2891
  value: u
2843
2892
  }))
2844
- ), M = R(() => [...a.value.priceTierRows]), Ie = R(
2893
+ ), N = R(() => [...a.value.priceTierRows]), Ie = R(
2845
2894
  () => a.value.showVariantMemberPricing
2846
- ), De = R(() => [
2895
+ ), ze = R(() => [
2847
2896
  {
2848
2897
  accessorKey: "tier",
2849
2898
  header: () => l("menu.price_tier.form.table.columns.name"),
@@ -2872,10 +2921,10 @@ const bo = {
2872
2921
  var t;
2873
2922
  return H("div", { class: "flex items-center justify-between" }, [
2874
2923
  H(
2875
- O.FmButton,
2924
+ B.FmButton,
2876
2925
  {
2877
2926
  label: l("menu.product.form.member_price.configure.title"),
2878
- variant: Me.Plain,
2927
+ variant: Ne.Plain,
2879
2928
  // This is the product form's per-tier member-price action. Its
2880
2929
  // nested pricing-sheet counterpart uses "Configure member price",
2881
2930
  // so the two independently addressable surfaces stay distinct.
@@ -2932,7 +2981,7 @@ const bo = {
2932
2981
  label: l("menu.product.form.variant.input_labels.code"),
2933
2982
  name: t.label
2934
2983
  }),
2935
- errorMessages: t.codeIssue ? [p(t.codeIssue)] : [],
2984
+ errorMessages: t.codeIssue ? [v(t.codeIssue)] : [],
2936
2985
  "onUpdate:modelValue": (j) => c.value.setCombination(t.key, {
2937
2986
  code: String(j ?? "")
2938
2987
  })
@@ -2955,7 +3004,7 @@ const bo = {
2955
3004
  role: "combobox"
2956
3005
  },
2957
3006
  [
2958
- H(O.FmSelect, {
3007
+ H(B.FmSelect, {
2959
3008
  items: [
2960
3009
  {
2961
3010
  label: l(
@@ -3016,9 +3065,9 @@ const bo = {
3016
3065
  ...a.value.showVariantMemberPricing ? [
3017
3066
  H("div", { class: "flex items-center gap-8" }, [
3018
3067
  H(
3019
- O.FmButton,
3068
+ B.FmButton,
3020
3069
  {
3021
- variant: Me.Plain,
3070
+ variant: Ne.Plain,
3022
3071
  label: l(
3023
3072
  "menu.product.form.member_price.configure.title"
3024
3073
  ),
@@ -3100,7 +3149,7 @@ const bo = {
3100
3149
  label: l("menu.product.form.variant.columns.min_price"),
3101
3150
  name: u.original.label
3102
3151
  }),
3103
- errorMessages: u.original.minPriceIssue ? [p(u.original.minPriceIssue)] : [],
3152
+ errorMessages: u.original.minPriceIssue ? [v(u.original.minPriceIssue)] : [],
3104
3153
  "onUpdate:modelValue": (t) => c.value.setCombination(u.original.key, {
3105
3154
  minPriceAmount: t
3106
3155
  })
@@ -3134,7 +3183,7 @@ const bo = {
3134
3183
  header: () => l("menu.group.list.columns.products"),
3135
3184
  enableSorting: !1,
3136
3185
  size: 200,
3137
- cell: (u) => z(u.getValue())
3186
+ cell: (u) => L(u.getValue())
3138
3187
  },
3139
3188
  {
3140
3189
  id: "actions",
@@ -3147,9 +3196,9 @@ const bo = {
3147
3196
  "div",
3148
3197
  { class: "flex justify-end", "data-product-group-id": t.id },
3149
3198
  [
3150
- H(O.FmButton, {
3199
+ H(B.FmButton, {
3151
3200
  icon: "delete",
3152
- variant: Me.Tertiary,
3201
+ variant: Ne.Tertiary,
3153
3202
  textColor: "neutral-gray-400",
3154
3203
  "aria-label": l("menu.common.labels.a11y_labelled_name", {
3155
3204
  label: l("menu.product.form.group.actions.detach"),
@@ -3157,9 +3206,9 @@ const bo = {
3157
3206
  }),
3158
3207
  onClick: () => c.value.removeGroup(t.id)
3159
3208
  }),
3160
- H(O.FmButton, {
3209
+ H(B.FmButton, {
3161
3210
  icon: "edit",
3162
- variant: Me.Tertiary,
3211
+ variant: Ne.Tertiary,
3163
3212
  textColor: "neutral-gray-400",
3164
3213
  // A normal group is never editable from the product form, a dynamic
3165
3214
  // one always is, and a product group only under
@@ -3169,24 +3218,24 @@ const bo = {
3169
3218
  label: l("menu.product.form.group.actions.edit"),
3170
3219
  name: t.label
3171
3220
  }),
3172
- onClick: () => re(t)
3221
+ onClick: () => ie(t)
3173
3222
  })
3174
3223
  ]
3175
3224
  );
3176
3225
  }
3177
3226
  }
3178
- ]), J = X(!1), we = ye(
3227
+ ]), J = W(!1), we = ye(
3179
3228
  null
3180
3229
  );
3181
- let L = null, D = null;
3182
- function Y() {
3183
- D == null || D(), D = null, L == null || L.dispose(), L = null, we.value = null, J.value = !1;
3230
+ let z = null, D = null;
3231
+ function X() {
3232
+ D == null || D(), D = null, z == null || z.dispose(), z = null, we.value = null, J.value = !1;
3184
3233
  }
3185
- function re(u) {
3234
+ function ie(u) {
3186
3235
  if (u.edit.state !== "allowed") return;
3187
- Y();
3236
+ X();
3188
3237
  const t = i.session.groupEditor(u.id);
3189
- L = t, we.value = t.get(), D = t.subscribe((j) => {
3238
+ z = t, we.value = t.get(), D = t.subscribe((j) => {
3190
3239
  we.value = j;
3191
3240
  }), J.value = !0;
3192
3241
  }
@@ -3196,7 +3245,7 @@ const bo = {
3196
3245
  return ((u = we.value) == null ? void 0 : u.status) === "ready" ? we.value.value : null;
3197
3246
  }
3198
3247
  );
3199
- ke(Y);
3248
+ ke(X);
3200
3249
  const Xe = R(
3201
3250
  () => a.value.inventoryRows.map((u) => ({
3202
3251
  _id: u.key,
@@ -3204,18 +3253,18 @@ const bo = {
3204
3253
  // The SDK carries the binding opaquely; its shape is this component's.
3205
3254
  binding: [...u.bindings]
3206
3255
  }))
3207
- ), ze = ye(null);
3256
+ ), De = ye(null);
3208
3257
  function je() {
3209
3258
  var u;
3210
- (u = ze.value) == null || u.dispose(), ze.value = null;
3259
+ (u = De.value) == null || u.dispose(), De.value = null;
3211
3260
  }
3212
3261
  function El(u) {
3213
- je(), ze.value = c.value.inventoryEditor(u._id);
3262
+ je(), De.value = c.value.inventoryEditor(u._id);
3214
3263
  }
3215
3264
  ke(je);
3216
- const vl = X(null);
3265
+ const vl = W(null);
3217
3266
  async function bl() {
3218
- await el();
3267
+ await Je();
3219
3268
  const u = vl.value;
3220
3269
  if (!u) return;
3221
3270
  const t = u.querySelectorAll("tbody tr");
@@ -3257,7 +3306,7 @@ const bo = {
3257
3306
  },
3258
3307
  [
3259
3308
  H(
3260
- O.FmSelect,
3309
+ B.FmSelect,
3261
3310
  {
3262
3311
  items: [
3263
3312
  {
@@ -3279,8 +3328,8 @@ const bo = {
3279
3328
  {
3280
3329
  // Legacy appends the same "Add new" row to this menu
3281
3330
  // (`ProductTakeaway.vue:108-128`).
3282
- "append-menu": () => H(O.FmButton, {
3283
- variant: Me.Plain,
3331
+ "append-menu": () => H(B.FmButton, {
3332
+ variant: Ne.Plain,
3284
3333
  prependIcon: "add",
3285
3334
  class: "w-full justify-start",
3286
3335
  label: l("menu.product.form.takeaway.options.add_new"),
@@ -3299,7 +3348,7 @@ const bo = {
3299
3348
  size: 75,
3300
3349
  cell: (u) => {
3301
3350
  const t = u.row.original;
3302
- return H(O.FmCheckbox, {
3351
+ return H(B.FmCheckbox, {
3303
3352
  modelValue: t.isDefault,
3304
3353
  value: "",
3305
3354
  "aria-label": l("menu.common.labels.a11y_labelled_name", {
@@ -3321,7 +3370,7 @@ const bo = {
3321
3370
  header: () => l("menu.product.form.order_pacing.time_presets.columns.delay"),
3322
3371
  cell: (u) => $(u.getValue())
3323
3372
  }
3324
- ]), fl = X(null), jl = Jl(fl), xe = (u) => {
3373
+ ]), fl = W(null), jl = Jl(fl), xe = (u) => {
3325
3374
  var t;
3326
3375
  return (t = i.validation) == null ? void 0 : t.touch(u);
3327
3376
  };
@@ -3347,7 +3396,7 @@ const bo = {
3347
3396
  return t != null && t.length ? i.validation ? i.validation.issue(a.value.fieldIssues, u) ?? void 0 : t[0] : a.value.issues.find((te) => te.field === u);
3348
3397
  }, gl = R(
3349
3398
  () => ue("name") ?? a.value.nameIssue
3350
- ), yl = X();
3399
+ ), yl = W();
3351
3400
  return Ae(
3352
3401
  () => ue("category"),
3353
3402
  (u) => {
@@ -3357,8 +3406,8 @@ const bo = {
3357
3406
  { flush: "pre" }
3358
3407
  ), (u, t) => {
3359
3408
  var xl;
3360
- const j = N("FmBreadcrumb"), te = N("FmSelect"), oe = N("FmButton"), Ve = N("FmTooltip"), al = N("FmTextarea"), tl = N("FmRadio"), Kl = N("FmSnackbar"), _l = N("FmRadioGroup"), hl = N("FmFormGroup"), kl = N("FmStepperField"), Ql = N("FmIcon"), Ze = N("FmTable"), Ne = N("FmCheckbox"), wl = N("FmSwitch");
3361
- return r(), S(ie, null, [
3409
+ const j = M("FmBreadcrumb"), te = M("FmSelect"), oe = M("FmButton"), Ve = M("FmTooltip"), al = M("FmTextarea"), tl = M("FmRadio"), Kl = M("FmSnackbar"), _l = M("FmRadioGroup"), hl = M("FmFormGroup"), kl = M("FmStepperField"), Ql = M("FmIcon"), Ze = M("FmTable"), Me = M("FmCheckbox"), wl = M("FmSwitch");
3410
+ return r(), S(re, null, [
3362
3411
  n("div", {
3363
3412
  ref_key: "formRoot",
3364
3413
  ref: x,
@@ -3427,7 +3476,7 @@ const bo = {
3427
3476
  "toggle-label": e(l)("menu.product.form.sections.general.description"),
3428
3477
  "onUpdate:enabled": t[22] || (t[22] = (K) => ne("general", K))
3429
3478
  }, {
3430
- default: v(() => {
3479
+ default: p(() => {
3431
3480
  var K, me, ae, Se;
3432
3481
  return [
3433
3482
  n("div", on, [
@@ -3438,7 +3487,7 @@ const bo = {
3438
3487
  "model-value": a.value.code,
3439
3488
  disabled: a.value.editCode.state !== "allowed",
3440
3489
  placeholder: ((K = a.value.inherited) == null ? void 0 : K.code) || e(l)("menu.product.form.detail.fields.code.placeholder"),
3441
- "error-messages": ue("code") ? [e(p)(ue("code"))] : [],
3490
+ "error-messages": ue("code") ? [e(v)(ue("code"))] : [],
3442
3491
  "helper-text": a.value.duplicateCodeCount > 0 ? e(l)("menu.product.form.detail.fields.code.duplicate_hint", {
3443
3492
  count: a.value.duplicateCodeCount
3444
3493
  }) : ""
@@ -3457,7 +3506,7 @@ const bo = {
3457
3506
  "model-value": a.value.name,
3458
3507
  disabled: a.value.editIdentity.state !== "allowed",
3459
3508
  placeholder: ((me = a.value.inherited) == null ? void 0 : me.name) ?? "",
3460
- "error-messages": gl.value ? [e(p)(gl.value)] : [],
3509
+ "error-messages": gl.value ? [e(v)(gl.value)] : [],
3461
3510
  "helper-text": a.value.duplicateNameCount > 0 ? e(l)(
3462
3511
  "menu.product.form.detail.fields.name.duplicate_warning",
3463
3512
  { count: a.value.duplicateNameCount }
@@ -3465,15 +3514,15 @@ const bo = {
3465
3514
  "onUpdate:modelValue": t[5] || (t[5] = (U) => (xe("name"), c.value.setName(String(U ?? "")))),
3466
3515
  onFocusChanged: t[6] || (t[6] = (U) => !U && xe("name"))
3467
3516
  }, {
3468
- append: v(() => [
3517
+ append: p(() => [
3469
3518
  s(Ve, {
3470
3519
  variant: "plain",
3471
3520
  placement: "top",
3472
3521
  "z-index": 999
3473
3522
  }, {
3474
- content: v(() => [
3523
+ content: p(() => [
3475
3524
  n("div", un, [
3476
- (r(!0), S(ie, null, Fe(a.value.nameTranslationTooltip, (U) => (r(), S("div", {
3525
+ (r(!0), S(re, null, Fe(a.value.nameTranslationTooltip, (U) => (r(), S("div", {
3477
3526
  key: U.locale
3478
3527
  }, I(e(l)("menu.common.translation.tooltip_value", {
3479
3528
  value: U.value,
@@ -3481,7 +3530,7 @@ const bo = {
3481
3530
  })), 1))), 128))
3482
3531
  ])
3483
3532
  ]),
3484
- default: v(() => [
3533
+ default: p(() => [
3485
3534
  s(oe, {
3486
3535
  disabled: a.value.nameTranslation.state !== "allowed",
3487
3536
  icon: "g_translate",
@@ -3516,7 +3565,7 @@ const bo = {
3516
3565
  "onUpdate:modelValue": t[9] || (t[9] = (U) => c.value.setDescription(String(U ?? ""))),
3517
3566
  onFocusout: t[10] || (t[10] = (U) => c.value.normalizeTextField("description"))
3518
3567
  }, {
3519
- label: v(() => [
3568
+ label: p(() => [
3520
3569
  n("p", mn, [
3521
3570
  sl(I(e(l)("menu.product.form.detail.fields.description.label")) + " ", 1),
3522
3571
  n("span", cn, I(e(l)("menu.product.form.detail.fields.description.optional")), 1)
@@ -3530,9 +3579,9 @@ const bo = {
3530
3579
  placement: "top",
3531
3580
  "z-index": 999
3532
3581
  }, {
3533
- content: v(() => [
3582
+ content: p(() => [
3534
3583
  n("div", vn, [
3535
- (r(!0), S(ie, null, Fe(a.value.descriptionTranslationTooltip, (U) => (r(), S("div", {
3584
+ (r(!0), S(re, null, Fe(a.value.descriptionTranslationTooltip, (U) => (r(), S("div", {
3536
3585
  key: U.locale
3537
3586
  }, I(e(l)("menu.common.translation.tooltip_value", {
3538
3587
  value: U.value,
@@ -3540,7 +3589,7 @@ const bo = {
3540
3589
  })), 1))), 128))
3541
3590
  ])
3542
3591
  ]),
3543
- default: v(() => [
3592
+ default: p(() => [
3544
3593
  s(oe, {
3545
3594
  disabled: a.value.descriptionTranslation.state !== "allowed",
3546
3595
  icon: "g_translate",
@@ -3553,7 +3602,7 @@ const bo = {
3553
3602
  }),
3554
3603
  s(e(Sl), {
3555
3604
  "aria-label": e(l)("menu.product.remy.description"),
3556
- onClick: t[12] || (t[12] = (U) => B("description"))
3605
+ onClick: t[12] || (t[12] = (U) => O("description"))
3557
3606
  }, null, 8, ["aria-label"])
3558
3607
  ])
3559
3608
  ]),
@@ -3565,14 +3614,14 @@ const bo = {
3565
3614
  s(Oe, {
3566
3615
  label: a.value.categoryLabel === "plural" ? e(l)("menu.product.form.detail.category.label") : e(l)("menu.product.form.detail.category.label_singular")
3567
3616
  }, {
3568
- default: v(() => [
3617
+ default: p(() => [
3569
3618
  a.value.canChooseAddon ? (r(), T(_l, {
3570
3619
  key: 0,
3571
3620
  "model-value": fe.value,
3572
3621
  disabled: a.value.editClassification.state !== "allowed",
3573
3622
  "onUpdate:modelValue": t[16] || (t[16] = (U) => c.value.setAddon(U === "ADD_ON"))
3574
3623
  }, {
3575
- default: v(() => [
3624
+ default: p(() => [
3576
3625
  n("div", bn, [
3577
3626
  n("div", fn, [
3578
3627
  s(tl, {
@@ -3629,9 +3678,9 @@ const bo = {
3629
3678
  ref_key: "categoryField",
3630
3679
  ref: yl,
3631
3680
  "model-value": a.value.categoryId,
3632
- "error-messages": ue("category") ? [e(p)(ue("category"))] : []
3681
+ "error-messages": ue("category") ? [e(v)(ue("category"))] : []
3633
3682
  }, {
3634
- default: v(() => [
3683
+ default: p(() => [
3635
3684
  s(xo, {
3636
3685
  view: a.value,
3637
3686
  session: c.value,
@@ -3647,7 +3696,7 @@ const bo = {
3647
3696
  key: 0,
3648
3697
  label: e(l)("menu.product.form.detail.path.label")
3649
3698
  }, {
3650
- default: v(() => [
3699
+ default: p(() => [
3651
3700
  ul((r(), S("div", null, [
3652
3701
  s(te, {
3653
3702
  items: a.value.subcategoryOptions.map((U) => ({
@@ -3661,7 +3710,7 @@ const bo = {
3661
3710
  placeholder: a.value.inheritedSubcategoryLabel ?? e(l)("menu.product.form.detail.path.placeholder"),
3662
3711
  "onUpdate:modelValue": t[19] || (t[19] = (U) => c.value.setSubcategories(U ?? []))
3663
3712
  }, cl({
3664
- "append-menu": v(() => [
3713
+ "append-menu": p(() => [
3665
3714
  s(oe, {
3666
3715
  variant: "plain",
3667
3716
  size: "lg",
@@ -3676,7 +3725,7 @@ const bo = {
3676
3725
  }, [
3677
3726
  a.value.subcategoryIds.length ? {
3678
3727
  name: "default",
3679
- fn: v(() => [
3728
+ fn: p(() => [
3680
3729
  n("div", {
3681
3730
  class: Be([
3682
3731
  "break-all fm-typo-en-body-lg-400 line-clamp-1",
@@ -3710,9 +3759,9 @@ const bo = {
3710
3759
  title: e(l)("menu.product.form.item_quantity.title"),
3711
3760
  "sub-title": e(l)("menu.product.form.item_quantity.subtitle")
3712
3761
  }, {
3713
- default: v(() => [
3762
+ default: p(() => [
3714
3763
  n("div", hn, [
3715
- (r(), S(ie, null, Fe(["perBill", "perOrderSession"], (U) => n("div", {
3764
+ (r(), S(re, null, Fe(["perBill", "perOrderSession"], (U) => n("div", {
3716
3765
  key: U,
3717
3766
  class: "flex flex-col gap-16 p-16 border-b last:border-b-0 border-fm-color-neutral-gray-100"
3718
3767
  }, [
@@ -3732,7 +3781,7 @@ const bo = {
3732
3781
  ])
3733
3782
  ]),
3734
3783
  n("div", Fn, [
3735
- (r(), S(ie, null, Fe(["min", "max"], (he) => {
3784
+ (r(), S(re, null, Fe(["min", "max"], (he) => {
3736
3785
  var ol;
3737
3786
  return s(Lt, {
3738
3787
  key: he,
@@ -3804,7 +3853,7 @@ const bo = {
3804
3853
  title: e(l)("menu.product.form.sections.tagging.title"),
3805
3854
  subtitle: e(l)("menu.product.form.sections.tagging.subtitle")
3806
3855
  }, {
3807
- default: v(() => [
3856
+ default: p(() => [
3808
3857
  s(e(Wl), {
3809
3858
  entity: "item",
3810
3859
  "model-value": a.value.customAttributes ?? {},
@@ -3824,7 +3873,7 @@ const bo = {
3824
3873
  "toggle-label": e(l)("menu.product.form.sections.price.description"),
3825
3874
  "onUpdate:enabled": t[37] || (t[37] = (K) => ne("price", K))
3826
3875
  }, {
3827
- default: v(() => {
3876
+ default: p(() => {
3828
3877
  var K, me;
3829
3878
  return [
3830
3879
  n("div", Vn, [
@@ -3844,17 +3893,17 @@ const bo = {
3844
3893
  maximumFractionDigits: 2,
3845
3894
  useGrouping: !1
3846
3895
  }),
3847
- "error-messages": ue("price") ? [e(p)(ue("price"))] : [],
3848
- "helper-text": a.value.editPrice.state === "disabled" ? e(p)(a.value.editPrice.reason) : ""
3896
+ "error-messages": ue("price") ? [e(v)(ue("price"))] : [],
3897
+ "helper-text": a.value.editPrice.state === "disabled" ? e(v)(a.value.editPrice.reason) : ""
3849
3898
  }, Re("price"), {
3850
3899
  "onUpdate:modelValue": t[25] || (t[25] = (ae) => (xe("price"), c.value.setPriceAmount(le(ae))))
3851
3900
  }), {
3852
- append: v(() => [
3901
+ append: p(() => [
3853
3902
  s(e(Sl), {
3854
3903
  "pure-styling": "",
3855
3904
  class: "shrink-0 scale-75",
3856
3905
  "aria-label": e(l)("menu.product.remy.pricing"),
3857
- onClick: t[24] || (t[24] = (ae) => B("pricing"))
3906
+ onClick: t[24] || (t[24] = (ae) => O("pricing"))
3858
3907
  }, null, 8, ["aria-label"])
3859
3908
  ]),
3860
3909
  _: 1
@@ -3910,7 +3959,7 @@ const bo = {
3910
3959
  label: e(l)("menu.price_tier.price_group"),
3911
3960
  description: e(l)("menu.price_tier.description")
3912
3961
  }, {
3913
- append: v(() => [
3962
+ append: p(() => [
3914
3963
  s(oe, {
3915
3964
  label: e(l)("menu.price_tier.add_price_group"),
3916
3965
  icon: "add",
@@ -3918,11 +3967,11 @@ const bo = {
3918
3967
  onClick: t[28] || (t[28] = (ae) => o("create-entity", "priceGroup"))
3919
3968
  }, null, 8, ["label"])
3920
3969
  ]),
3921
- default: v(() => [
3970
+ default: p(() => [
3922
3971
  s(Ze, {
3923
- "column-defs": De.value,
3924
- "row-data": M.value,
3925
- "page-size": M.value.length,
3972
+ "column-defs": ze.value,
3973
+ "row-data": N.value,
3974
+ "page-size": N.value.length,
3926
3975
  "hide-footer": ""
3927
3976
  }, null, 8, ["column-defs", "row-data", "page-size"])
3928
3977
  ]),
@@ -3931,11 +3980,11 @@ const bo = {
3931
3980
  s(Oe, {
3932
3981
  label: e(l)("menu.product.form.price.settings.title")
3933
3982
  }, {
3934
- default: v(() => {
3983
+ default: p(() => {
3935
3984
  var ae, Se;
3936
3985
  return [
3937
3986
  n("div", Bn, [
3938
- s(Ne, {
3987
+ s(Me, {
3939
3988
  disabled: a.value.editOpenPrice.state !== "allowed",
3940
3989
  label: e(l)("menu.product.form.price.settings.open_price.label"),
3941
3990
  sublabel: e(l)("menu.product.form.price.settings.open_price.sublabel"),
@@ -3944,7 +3993,7 @@ const bo = {
3944
3993
  "onUpdate:modelValue": t[29] || (t[29] = (U) => c.value.setOpenPrice(!!U))
3945
3994
  }, null, 8, ["disabled", "label", "sublabel", "model-value"]),
3946
3995
  n("div", On, [
3947
- s(Ne, {
3996
+ s(Me, {
3948
3997
  disabled: a.value.editUnitSale.state !== "allowed",
3949
3998
  label: e(l)("menu.product.form.price.settings.sell_by_unit.label"),
3950
3999
  sublabel: e(l)("menu.product.form.price.settings.sell_by_unit.sublabel"),
@@ -3960,10 +4009,10 @@ const bo = {
3960
4009
  }))
3961
4010
  }, null, 8, ["disabled", "label", "sublabel", "model-value"]),
3962
4011
  a.value.unitSale.enabled ? (r(), S("div", Ln, [
3963
- n("p", Dn, I(e(l)(
4012
+ n("p", zn, I(e(l)(
3964
4013
  "menu.product.form.price.settings.sell_by_unit.per_unit.label"
3965
4014
  )), 1),
3966
- n("div", zn, [
4015
+ n("div", Dn, [
3967
4016
  s(ge, Ce({
3968
4017
  disabled: a.value.editUnitSale.state !== "allowed",
3969
4018
  "aria-label": e(l)(
@@ -3971,7 +4020,7 @@ const bo = {
3971
4020
  ),
3972
4021
  type: "number",
3973
4022
  inputmode: "numeric",
3974
- "error-messages": ue("perXUnit") ? [e(p)(ue("perXUnit"))] : [],
4023
+ "error-messages": ue("perXUnit") ? [e(v)(ue("perXUnit"))] : [],
3975
4024
  "model-value": a.value.unitSale.perXUnit,
3976
4025
  placeholder: e(l)(
3977
4026
  "menu.product.form.price.settings.sell_by_unit.per_unit.placeholder"
@@ -3990,7 +4039,7 @@ const bo = {
3990
4039
  "aria-label": e(l)(
3991
4040
  "menu.product.form.price.settings.sell_by_unit.unit.label"
3992
4041
  ),
3993
- "error-messages": ue("unit") ? [e(p)(ue("unit"))] : [],
4042
+ "error-messages": ue("unit") ? [e(v)(ue("unit"))] : [],
3994
4043
  "model-value": a.value.unitSale.unit ?? "",
3995
4044
  placeholder: e(l)(
3996
4045
  "menu.product.form.price.settings.sell_by_unit.unit.placeholder"
@@ -4005,14 +4054,14 @@ const bo = {
4005
4054
  ])
4006
4055
  ])) : y("", !0)
4007
4056
  ]),
4008
- a.value.editCosting.state === "allowed" ? (r(), S("div", Nn, [
4009
- s(Ne, {
4057
+ a.value.editCosting.state === "allowed" ? (r(), S("div", Mn, [
4058
+ s(Me, {
4010
4059
  label: e(l)("menu.product.form.price.settings.track_costing.label"),
4011
4060
  "model-value": a.value.costingAmount !== null,
4012
4061
  value: "",
4013
4062
  "onUpdate:modelValue": t[33] || (t[33] = (U) => c.value.setCostingAmount(U ? 0 : null))
4014
4063
  }, null, 8, ["label", "model-value"]),
4015
- a.value.costingAmount !== null ? (r(), S("div", Mn, [
4064
+ a.value.costingAmount !== null ? (r(), S("div", Nn, [
4016
4065
  n("div", En, [
4017
4066
  s(Ke, Ce({
4018
4067
  class: "w-full",
@@ -4021,7 +4070,7 @@ const bo = {
4021
4070
  ),
4022
4071
  currency: (ae = a.value.summary.sellingPrice) == null ? void 0 : ae.currency,
4023
4072
  "model-value": a.value.costingAmount,
4024
- "error-messages": ue("costing") ? [e(p)(ue("costing"))] : []
4073
+ "error-messages": ue("costing") ? [e(v)(ue("costing"))] : []
4025
4074
  }, Re("costing"), {
4026
4075
  "onUpdate:modelValue": t[34] || (t[34] = (U) => (xe("costing"), c.value.setCostingAmount(U ?? 0)))
4027
4076
  }), null, 16, ["aria-label", "currency", "model-value", "error-messages"])
@@ -4029,7 +4078,7 @@ const bo = {
4029
4078
  ])) : y("", !0)
4030
4079
  ])) : y("", !0),
4031
4080
  a.value.editMinimumPrice.state !== "hidden" ? (r(), S("div", qn, [
4032
- s(Ne, {
4081
+ s(Me, {
4033
4082
  label: e(l)("menu.product.form.price.settings.min_price.label"),
4034
4083
  disabled: a.value.editMinimumPrice.state !== "allowed",
4035
4084
  "model-value": a.value.minimumPriceAmount !== null,
@@ -4044,7 +4093,7 @@ const bo = {
4044
4093
  "menu.product.form.price.settings.min_price.input_label"
4045
4094
  ),
4046
4095
  currency: (Se = a.value.summary.sellingPrice) == null ? void 0 : Se.currency,
4047
- "error-messages": ue("minPrice") ? [e(p)(ue("minPrice"))] : [],
4096
+ "error-messages": ue("minPrice") ? [e(v)(ue("minPrice"))] : [],
4048
4097
  "model-value": a.value.minimumPriceAmount
4049
4098
  }, Re("minPrice"), {
4050
4099
  "onUpdate:modelValue": t[36] || (t[36] = (U) => (xe("minPrice"), c.value.setMinimumPriceAmount(U ?? 0)))
@@ -4061,13 +4110,13 @@ const bo = {
4061
4110
  key: 2,
4062
4111
  label: e(l)("menu.product.form.price.statutory_charges.title")
4063
4112
  }, {
4064
- default: v(() => [
4113
+ default: p(() => [
4065
4114
  n("div", Kn, [
4066
- (r(!0), S(ie, null, Fe(a.value.statutoryCharges, (ae) => (r(), S("div", {
4115
+ (r(!0), S(re, null, Fe(a.value.statutoryCharges, (ae) => (r(), S("div", {
4067
4116
  key: ae.code,
4068
4117
  class: "space-y-8"
4069
4118
  }, [
4070
- s(Ne, {
4119
+ s(Me, {
4071
4120
  label: ae.name,
4072
4121
  sublabel: e(l)("menu.product.form.price.statutory_charges.unit_amount", {
4073
4122
  amount: ve(ae)
@@ -4091,7 +4140,7 @@ const bo = {
4091
4140
  type: "number",
4092
4141
  inputmode: "numeric",
4093
4142
  "error-messages": ue(`statutoryCharges.${ae.code}`) ? [
4094
- e(p)(
4143
+ e(v)(
4095
4144
  ue(`statutoryCharges.${ae.code}`)
4096
4145
  )
4097
4146
  ] : [],
@@ -4122,14 +4171,14 @@ const bo = {
4122
4171
  section: a.value.sections.print,
4123
4172
  title: e(l)("menu.product.form.print.title")
4124
4173
  }, {
4125
- default: v(() => {
4174
+ default: p(() => {
4126
4175
  var K;
4127
4176
  return [
4128
4177
  a.value.printConfig.state === "allowed" ? (r(), T(Oe, {
4129
4178
  key: 0,
4130
4179
  label: e(l)("menu.product.form.print.config.label")
4131
4180
  }, {
4132
- default: v(() => {
4181
+ default: p(() => {
4133
4182
  var me;
4134
4183
  return [
4135
4184
  s(wl, {
@@ -4149,7 +4198,7 @@ const bo = {
4149
4198
  "model-value": ((K = a.value.print) == null ? void 0 : K.sequential) ?? !1,
4150
4199
  "onUpdate:modelValue": t[39] || (t[39] = (me) => c.value.setPrintSequential(!!me))
4151
4200
  }, {
4152
- default: v(() => [
4201
+ default: p(() => [
4153
4202
  n("div", Yn, [
4154
4203
  s(tl, {
4155
4204
  value: !1,
@@ -4168,14 +4217,14 @@ const bo = {
4168
4217
  s(Oe, {
4169
4218
  label: e(l)("menu.product.form.print.routes.label")
4170
4219
  }, {
4171
- default: v(() => [
4220
+ default: p(() => [
4172
4221
  a.value.printDepartmentOptions.length ? (r(), T(ml, {
4173
4222
  key: 0,
4174
4223
  items: a.value.printDepartmentOptions,
4175
4224
  handle: ".print-route-handle",
4176
4225
  onReorder: t[42] || (t[42] = (me) => c.value.reorderPrintDepartments(me))
4177
4226
  }, {
4178
- item: v(({ element: me }) => {
4227
+ item: p(({ element: me }) => {
4179
4228
  var ae, Se;
4180
4229
  return [
4181
4230
  n("div", Zn, [
@@ -4193,7 +4242,7 @@ const bo = {
4193
4242
  }, ["stop"]))
4194
4243
  }, null, 8, ["disabled", "aria-label"])) : y("", !0)
4195
4244
  ]),
4196
- s(Ne, {
4245
+ s(Me, {
4197
4246
  class: "flex-1",
4198
4247
  label: me.label,
4199
4248
  "model-value": [...((Se = a.value.print) == null ? void 0 : Se.departmentIds) ?? []],
@@ -4233,7 +4282,7 @@ const bo = {
4233
4282
  "toggle-label": e(l)("menu.product.form.sections.variant.description"),
4234
4283
  "onUpdate:enabled": t[46] || (t[46] = (K) => ne("variant", K))
4235
4284
  }, {
4236
- "append-title": v(() => [
4285
+ "append-title": p(() => [
4237
4286
  a.value.editVariantGroups.state === "allowed" ? (r(), T(oe, {
4238
4287
  key: 0,
4239
4288
  "aria-label": e(l)("menu.product.form.variant.add"),
@@ -4243,19 +4292,19 @@ const bo = {
4243
4292
  onClick: t[44] || (t[44] = (K) => G("variant"))
4244
4293
  }, null, 8, ["aria-label", "label"])) : y("", !0)
4245
4294
  ]),
4246
- default: v(() => [
4295
+ default: p(() => [
4247
4296
  n("div", ls, [
4248
4297
  s(hl, {
4249
4298
  "model-value": void 0,
4250
- "error-messages": ue("variant") ? [e(p)(ue("variant"))] : []
4299
+ "error-messages": ue("variant") ? [e(v)(ue("variant"))] : []
4251
4300
  }, {
4252
- default: v(() => [
4301
+ default: p(() => [
4253
4302
  s(ml, {
4254
4303
  items: a.value.variantGroups,
4255
4304
  handle: ".handle",
4256
4305
  onReorder: t[45] || (t[45] = (K) => c.value.setVariantGroups(K))
4257
4306
  }, {
4258
- item: v(({ element: K }) => [
4307
+ item: p(({ element: K }) => [
4259
4308
  n("div", as, [
4260
4309
  s(oe, {
4261
4310
  class: "handle",
@@ -4318,7 +4367,7 @@ const bo = {
4318
4367
  description: e(l)("menu.product.form.sections.group.description"),
4319
4368
  "onUpdate:enabled": t[48] || (t[48] = (K) => ne("group", K))
4320
4369
  }, {
4321
- "append-title": v(() => [
4370
+ "append-title": p(() => [
4322
4371
  s(oe, {
4323
4372
  "aria-label": e(l)("menu.product.form.group.add"),
4324
4373
  label: e(l)("menu.product.form.group.add"),
@@ -4327,7 +4376,7 @@ const bo = {
4327
4376
  onClick: t[47] || (t[47] = (K) => G("group"))
4328
4377
  }, null, 8, ["aria-label", "label"])
4329
4378
  ]),
4330
- default: v(() => [
4379
+ default: p(() => [
4331
4380
  n("div", is, [
4332
4381
  a.value.groupRows.length > 0 ? (r(), T(Ze, {
4333
4382
  key: 0,
@@ -4353,7 +4402,7 @@ const bo = {
4353
4402
  "toggle-label": e(l)("menu.product.form.sections.inventory.description"),
4354
4403
  "onUpdate:enabled": t[49] || (t[49] = (K) => ne("inventory", K))
4355
4404
  }, {
4356
- default: v(() => [
4405
+ default: p(() => [
4357
4406
  n("div", us, [
4358
4407
  n("div", {
4359
4408
  ref_key: "inventorySummaryRoot",
@@ -4377,13 +4426,13 @@ const bo = {
4377
4426
  title: e(l)("menu.inventory.threshold.title"),
4378
4427
  subtitle: e(l)("menu.inventory.threshold.subtitle")
4379
4428
  }, {
4380
- default: v(() => [
4429
+ default: p(() => [
4381
4430
  s(kl, Ce({
4382
4431
  "aria-label": e(l)("menu.inventory.threshold.title"),
4383
4432
  "model-value": a.value.lowStockThreshold,
4384
4433
  step: 1,
4385
4434
  placeholder: a.value.lowStockThresholdDefault === null ? e(l)("menu.inventory.threshold.not_set") : e($)(a.value.lowStockThresholdDefault),
4386
- "error-messages": ue("lowStockThreshold") ? [e(p)(ue("lowStockThreshold"))] : [],
4435
+ "error-messages": ue("lowStockThreshold") ? [e(v)(ue("lowStockThreshold"))] : [],
4387
4436
  "helper-text": e(l)("menu.inventory.threshold.helper_text")
4388
4437
  }, Re("lowStockThreshold"), {
4389
4438
  "onUpdate:modelValue": t[50] || (t[50] = (K) => (xe("lowStockThreshold"), c.value.setLowStockThreshold(le(K))))
@@ -4402,9 +4451,9 @@ const bo = {
4402
4451
  "toggle-label": e(l)("menu.product.form.sections.takeaway.description"),
4403
4452
  "onUpdate:enabled": t[53] || (t[53] = (K) => ne("takeaway", K))
4404
4453
  }, {
4405
- default: v(() => [
4454
+ default: p(() => [
4406
4455
  u.presentation !== "tree" || a.value.editTakeawayPos.state === "allowed" || a.value.editTakeawayApp.state === "allowed" ? (r(), S("div", cs, [
4407
- a.value.editTakeawayPos.state === "allowed" ? (r(), T(Ne, {
4456
+ a.value.editTakeawayPos.state === "allowed" ? (r(), T(Me, {
4408
4457
  key: 0,
4409
4458
  label: e(l)("menu.product.form.takeaway.takeawayConfig.pos.label"),
4410
4459
  sublabel: e(l)("menu.product.form.takeaway.takeawayConfig.pos.sublabel"),
@@ -4412,7 +4461,7 @@ const bo = {
4412
4461
  value: "",
4413
4462
  "onUpdate:modelValue": t[51] || (t[51] = (K) => c.value.setTakeawayConfig({ pos: !!K }))
4414
4463
  }, null, 8, ["label", "sublabel", "model-value"])) : y("", !0),
4415
- a.value.editTakeawayApp.state === "allowed" ? (r(), T(Ne, {
4464
+ a.value.editTakeawayApp.state === "allowed" ? (r(), T(Me, {
4416
4465
  key: 1,
4417
4466
  label: e(l)("menu.product.form.takeaway.takeawayConfig.app.label"),
4418
4467
  sublabel: e(l)("menu.product.form.takeaway.takeawayConfig.app.sublabel"),
@@ -4439,7 +4488,7 @@ const bo = {
4439
4488
  section: a.value.sections.serveDelay,
4440
4489
  title: e(l)("menu.product.form.order_pacing.title")
4441
4490
  }, {
4442
- default: v(() => {
4491
+ default: p(() => {
4443
4492
  var K, me;
4444
4493
  return [
4445
4494
  s(wl, {
@@ -4455,7 +4504,7 @@ const bo = {
4455
4504
  title: e(l)("menu.product.form.order_pacing.time_presets.title"),
4456
4505
  "sub-title": e(l)("menu.product.form.order_pacing.time_presets.subtitle")
4457
4506
  }, {
4458
- "append-title": v(() => [
4507
+ "append-title": p(() => [
4459
4508
  s(oe, {
4460
4509
  class: "flex-shrink-0",
4461
4510
  "aria-label": e(l)("menu.product.form.order_pacing.time_presets.add"),
@@ -4504,25 +4553,25 @@ const bo = {
4504
4553
  key: 1,
4505
4554
  "model-value": J.value,
4506
4555
  view: _e.value,
4507
- session: e(L),
4556
+ session: e(z),
4508
4557
  "order-from-options": a.value.orderFromOptions,
4509
4558
  presentation: u.presentation,
4510
4559
  "create-price-group": w,
4511
- "onUpdate:modelValue": t[56] || (t[56] = (K) => K || Y())
4560
+ "onUpdate:modelValue": t[56] || (t[56] = (K) => K || X())
4512
4561
  }, null, 8, ["model-value", "view", "session", "order-from-options", "presentation"])) : y("", !0),
4513
- ze.value ? (r(), T(Rl, {
4562
+ De.value ? (r(), T(Rl, {
4514
4563
  key: 2,
4515
- session: ze.value,
4564
+ session: De.value,
4516
4565
  "product-name": a.value.name || ((xl = a.value.inherited) == null ? void 0 : xl.name) || "",
4517
4566
  disabled: a.value.editInventory.state !== "allowed",
4518
4567
  onClose: je
4519
4568
  }, null, 8, ["session", "product-name", "disabled"])) : y("", !0)
4520
4569
  ], 2),
4521
- C.value ? (r(), T(Dl, {
4570
+ C.value ? (r(), T(zl, {
4522
4571
  key: 0,
4523
4572
  session: C.value,
4524
4573
  "on-create-price-group": w,
4525
- onSuggest: t[57] || (t[57] = (K) => B("pricing")),
4574
+ onSuggest: t[57] || (t[57] = (K) => O("pricing")),
4526
4575
  onClose: P
4527
4576
  }, null, 8, ["session"])) : y("", !0)
4528
4577
  ], 64);
@@ -4535,46 +4584,46 @@ const bo = {
4535
4584
  label: {},
4536
4585
  validation: {}
4537
4586
  },
4538
- setup(W) {
4539
- const V = W, { t: i } = be(), x = Pe(), { run: o } = Ue(), d = Le(V.session), w = R(
4587
+ setup(Y) {
4588
+ const V = Y, { t: i } = be(), x = Pe(), { run: o } = Ue(), d = Le(V.session), w = R(
4540
4589
  () => d.value.status === "ready" ? d.value.value : null
4541
4590
  ), C = R(
4542
4591
  () => w.value ? V.validation.issue(w.value.fieldIssues, "name") ?? w.value.nameIssue : null
4543
- ), P = ye(null), m = ye(null), l = X(!1);
4592
+ ), P = ye(null), m = ye(null), l = W(!1);
4544
4593
  let $ = null;
4545
4594
  const _ = R(
4546
4595
  () => {
4547
- var p;
4548
- return ((p = m.value) == null ? void 0 : p.status) === "ready" ? m.value.value : null;
4596
+ var v;
4597
+ return ((v = m.value) == null ? void 0 : v.status) === "ready" ? m.value.value : null;
4549
4598
  }
4550
4599
  );
4551
- function F(p) {
4600
+ function F(v) {
4552
4601
  var g;
4553
- $ == null || $(), $ = null, p && ((g = P.value) == null || g.dispose()), P.value = null, m.value = null, l.value = !1;
4602
+ $ == null || $(), $ = null, v && ((g = P.value) == null || g.dispose()), P.value = null, m.value = null, l.value = !1;
4554
4603
  }
4555
- function z() {
4604
+ function L() {
4556
4605
  var g;
4557
4606
  if (((g = w.value) == null ? void 0 : g.translation.state) !== "allowed") return;
4558
4607
  F(!0);
4559
- const p = V.session.translationEditor();
4560
- P.value = p, m.value = p.get(), $ = p.subscribe((f) => {
4608
+ const v = V.session.translationEditor();
4609
+ P.value = v, m.value = v.get(), $ = v.subscribe((f) => {
4561
4610
  m.value = f;
4562
4611
  }), l.value = !0;
4563
4612
  }
4564
- function E(p) {
4613
+ function E(v) {
4565
4614
  var k;
4566
4615
  const g = P.value, f = (k = _.value) == null ? void 0 : k.nameLocale;
4567
4616
  if (!(!g || !f)) {
4568
- for (const B of Object.keys(f))
4569
- B in p || g.removeLocale(B);
4570
- for (const [B, Q] of Object.entries(p))
4571
- B in f || g.addLocale(B), g.setNameLocale(B, Q);
4617
+ for (const O of Object.keys(f))
4618
+ O in v || g.removeLocale(O);
4619
+ for (const [O, Q] of Object.entries(v))
4620
+ O in f || g.addLocale(O), g.setNameLocale(O, Q);
4572
4621
  }
4573
4622
  }
4574
4623
  async function G() {
4575
- const p = P.value;
4576
- if (!p) return;
4577
- (await o(async () => p.apply(), {
4624
+ const v = P.value;
4625
+ if (!v) return;
4626
+ (await o(async () => v.apply(), {
4578
4627
  showLoading: !1
4579
4628
  })).kind === "success" && F(!1);
4580
4629
  }
@@ -4583,32 +4632,32 @@ const bo = {
4583
4632
  }
4584
4633
  return ke(() => {
4585
4634
  F(!0), V.session.dispose();
4586
- }), (p, g) => {
4635
+ }), (v, g) => {
4587
4636
  var k;
4588
- const f = N("FmButton");
4589
- return r(), S(ie, null, [
4637
+ const f = M("FmButton");
4638
+ return r(), S(re, null, [
4590
4639
  s(ge, Ce(
4591
4640
  {
4592
4641
  "model-value": ((k = w.value) == null ? void 0 : k.name) ?? "",
4593
- label: p.label,
4642
+ label: v.label,
4594
4643
  autofocus: "",
4595
4644
  "error-messages": C.value ? [e(x)(C.value)] : []
4596
4645
  },
4597
- p.validation.field(
4646
+ v.validation.field(
4598
4647
  "name",
4599
- (B) => p.session.setName(String(B ?? ""))
4648
+ (O) => v.session.setName(String(O ?? ""))
4600
4649
  )
4601
4650
  ), {
4602
- append: v(() => {
4603
- var B;
4651
+ append: p(() => {
4652
+ var O;
4604
4653
  return [
4605
4654
  s(f, {
4606
4655
  "aria-label": e(i)("menu.common.translation.translation_label"),
4607
- disabled: ((B = w.value) == null ? void 0 : B.translation.state) !== "allowed",
4656
+ disabled: ((O = w.value) == null ? void 0 : O.translation.state) !== "allowed",
4608
4657
  class: "!p-0",
4609
4658
  icon: "g_translate",
4610
4659
  variant: "tertiary",
4611
- onClick: z
4660
+ onClick: L
4612
4661
  }, null, 8, ["aria-label", "disabled"])
4613
4662
  ];
4614
4663
  }),
@@ -4630,10 +4679,10 @@ const bo = {
4630
4679
  "z-index": 200,
4631
4680
  onDiscard: A,
4632
4681
  onSave: G,
4633
- "onUpdate:modelValue": g[0] || (g[0] = (B) => !B && A()),
4634
- "onUpdate:name": g[1] || (g[1] = (B) => {
4682
+ "onUpdate:modelValue": g[0] || (g[0] = (O) => !O && A()),
4683
+ "onUpdate:name": g[1] || (g[1] = (O) => {
4635
4684
  var Q;
4636
- return (Q = P.value) == null ? void 0 : Q.setName(B);
4685
+ return (Q = P.value) == null ? void 0 : Q.setName(O);
4637
4686
  }),
4638
4687
  "onUpdate:nameLocale": E
4639
4688
  }, null, 8, ["model-value", "dirty", "name", "name-locale", "supported-locales", "title", "name-section-label"])) : y("", !0)
@@ -4647,12 +4696,12 @@ const bo = {
4647
4696
  label: {},
4648
4697
  validation: {}
4649
4698
  },
4650
- setup(W) {
4651
- const V = W, { t: i } = be(), x = Pe(), o = Le(V.session), d = R(
4699
+ setup(Y) {
4700
+ const V = Y, { t: i } = be(), x = Pe(), o = Le(V.session), d = R(
4652
4701
  () => o.value.status === "ready" ? o.value.value : null
4653
4702
  ), w = R(
4654
4703
  () => d.value ? V.validation.issue(d.value.fieldIssues, "name") ?? d.value.nameIssue : null
4655
- ), C = X(!1);
4704
+ ), C = W(!1);
4656
4705
  function P() {
4657
4706
  var $;
4658
4707
  (($ = d.value) == null ? void 0 : $.translation.state) === "allowed" && (V.session.beginTranslationEdit(), C.value = !0);
@@ -4665,9 +4714,9 @@ const bo = {
4665
4714
  }
4666
4715
  return ke(() => V.session.dispose()), ($, _) => {
4667
4716
  var E;
4668
- const F = N("FmButton"), z = N("FmTextField");
4669
- return r(), S(ie, null, [
4670
- s(z, Ce(
4717
+ const F = M("FmButton"), L = M("FmTextField");
4718
+ return r(), S(re, null, [
4719
+ s(L, Ce(
4671
4720
  {
4672
4721
  autofocus: "",
4673
4722
  "error-messages": w.value ? [e(x)(w.value)] : [],
@@ -4680,7 +4729,7 @@ const bo = {
4680
4729
  (G) => $.session.setName(String(G ?? ""))
4681
4730
  )
4682
4731
  ), {
4683
- append: v(() => {
4732
+ append: p(() => {
4684
4733
  var G;
4685
4734
  return [
4686
4735
  s(F, {
@@ -4718,8 +4767,8 @@ const bo = {
4718
4767
  initialProductIds: {}
4719
4768
  },
4720
4769
  emits: ["close", "created"],
4721
- setup(W, { emit: V }) {
4722
- const i = W, x = V, { t: o } = be(), { run: d } = Ue(), w = i.sdk.orderPacing.editor(), C = ll(() => w);
4770
+ setup(Y, { emit: V }) {
4771
+ const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = i.sdk.orderPacing.editor(), C = ll(() => w);
4723
4772
  w.setLinkedProducts(i.initialProductIds);
4724
4773
  const P = Le(w), m = R(
4725
4774
  () => P.value.status === "ready" ? P.value.value : null
@@ -4731,7 +4780,7 @@ const bo = {
4731
4780
  size: 75,
4732
4781
  enableSorting: !1,
4733
4782
  header: () => o("menu.order_pacing.link_product.table.column.default"),
4734
- cell: (f) => H(O.FmCheckbox, {
4783
+ cell: (f) => H(B.FmCheckbox, {
4735
4784
  modelValue: f.row.original.isDefault,
4736
4785
  value: "",
4737
4786
  "aria-label": o("menu.product.form.order_pacing.default_product", {
@@ -4757,7 +4806,7 @@ const bo = {
4757
4806
  cell: (f) => {
4758
4807
  const k = f.row.original.currentDefault;
4759
4808
  return H("div", { class: "pt-1" }, [
4760
- H(O.FmChip, {
4809
+ H(B.FmChip, {
4761
4810
  label: k ? o("menu.order_pacing.columns.mins", { count: k.delay }) : o("menu.order_pacing.columns.none"),
4762
4811
  variant: "plain",
4763
4812
  compact: !0,
@@ -4771,7 +4820,7 @@ const bo = {
4771
4820
  size: 40,
4772
4821
  meta: { cellClass: "" },
4773
4822
  enableSorting: !1,
4774
- cell: (f) => H(O.FmButton, {
4823
+ cell: (f) => H(B.FmButton, {
4775
4824
  prependIcon: "delete",
4776
4825
  variant: "tertiary",
4777
4826
  "aria-label": o("menu.common.labels.a11y_labelled_name", {
@@ -4781,21 +4830,21 @@ const bo = {
4781
4830
  onClick: () => w.unlinkProduct(f.row.original.productId)
4782
4831
  })
4783
4832
  }
4784
- ]), F = X(!1), z = X(!1);
4833
+ ]), F = W(!1), L = W(!1);
4785
4834
  function E() {
4786
4835
  var f;
4787
- ((f = m.value) == null ? void 0 : f.translation.state) === "allowed" && (w.beginTranslationEdit(), z.value = !0);
4836
+ ((f = m.value) == null ? void 0 : f.translation.state) === "allowed" && (w.beginTranslationEdit(), L.value = !0);
4788
4837
  }
4789
4838
  function G() {
4790
- w.saveTranslationEdit(), z.value = !1;
4839
+ w.saveTranslationEdit(), L.value = !1;
4791
4840
  }
4792
4841
  function A() {
4793
- w.discardTranslationEdit(), z.value = !1;
4842
+ w.discardTranslationEdit(), L.value = !1;
4794
4843
  }
4795
4844
  ke(() => w.dispose());
4796
- async function p() {
4797
- var B;
4798
- const f = ((B = m.value) == null ? void 0 : B.name) ?? "";
4845
+ async function v() {
4846
+ var O;
4847
+ const f = ((O = m.value) == null ? void 0 : O.name) ?? "";
4799
4848
  (await d(() => C.submit(() => w.submit()), {
4800
4849
  showLoading: () => {
4801
4850
  var Q;
@@ -4808,30 +4857,30 @@ const bo = {
4808
4857
  }
4809
4858
  return (f, k) => {
4810
4859
  var a;
4811
- const B = N("FmButton"), Q = N("FmTable"), ee = N("FmSideSheet");
4812
- return r(), S(ie, null, [
4860
+ const O = M("FmButton"), Q = M("FmTable"), ee = M("FmSideSheet");
4861
+ return r(), S(re, null, [
4813
4862
  s(ee, {
4814
4863
  "model-value": !0,
4815
- "is-container": e(O).FmForm,
4816
- "is-container-props": { onValidationSuccess: p },
4864
+ "is-container": e(B).FmForm,
4865
+ "is-container-props": { onValidationSuccess: v },
4817
4866
  "max-width": 600,
4818
4867
  "onUpdate:modelValue": k[2] || (k[2] = (c) => !c && x("close"))
4819
4868
  }, {
4820
- "side-sheet-header": v(() => [
4869
+ "side-sheet-header": p(() => [
4821
4870
  n("p", ys, I(e(o)("menu.order_pacing.manager.dialog.add.title")), 1)
4822
4871
  ]),
4823
- "side-sheet-footer": v(() => {
4872
+ "side-sheet-footer": p(() => {
4824
4873
  var c;
4825
4874
  return [
4826
4875
  n("div", ks, [
4827
- s(B, {
4876
+ s(O, {
4828
4877
  label: e(o)("menu.order_pacing.manager.dialog.add.action"),
4829
4878
  disabled: ((c = m.value) == null ? void 0 : c.submit.state) !== "allowed",
4830
4879
  variant: "primary",
4831
4880
  size: "lg",
4832
4881
  type: "submit"
4833
4882
  }, null, 8, ["label", "disabled"]),
4834
- s(B, {
4883
+ s(O, {
4835
4884
  label: e(o)("menu.common.actions.cancel"),
4836
4885
  size: "lg",
4837
4886
  variant: "tertiary",
@@ -4840,17 +4889,17 @@ const bo = {
4840
4889
  ])
4841
4890
  ];
4842
4891
  }),
4843
- default: v(() => [
4892
+ default: p(() => [
4844
4893
  n("div", _s, [
4845
4894
  s(ca, {
4846
4895
  view: m.value,
4847
4896
  session: e(w),
4848
4897
  validation: e(C)
4849
4898
  }, {
4850
- "name-append": v(() => {
4899
+ "name-append": p(() => {
4851
4900
  var c;
4852
4901
  return [
4853
- s(B, {
4902
+ s(O, {
4854
4903
  "aria-label": e(o)("menu.common.translation.translation_label"),
4855
4904
  icon: "g_translate",
4856
4905
  variant: "tertiary",
@@ -4865,9 +4914,9 @@ const bo = {
4865
4914
  title: e(o)("menu.order_pacing.product.title"),
4866
4915
  "sub-title": e(o)("menu.order_pacing.product.subtitle")
4867
4916
  }, {
4868
- "append-title": v(() => [
4917
+ "append-title": p(() => [
4869
4918
  n("div", hs, [
4870
- s(B, {
4919
+ s(O, {
4871
4920
  "border-color": e(Vl).ColorPrimary,
4872
4921
  label: e(o)("menu.order_pacing.link_product.title"),
4873
4922
  "prepend-icon": "link",
@@ -4877,7 +4926,7 @@ const bo = {
4877
4926
  }, null, 8, ["border-color", "label", "text-color"])
4878
4927
  ])
4879
4928
  ]),
4880
- default: v(() => {
4929
+ default: p(() => {
4881
4930
  var c;
4882
4931
  return [
4883
4932
  s(Q, {
@@ -4897,8 +4946,8 @@ const bo = {
4897
4946
  }, 8, ["is-container", "is-container-props"]),
4898
4947
  m.value ? (r(), T(il, {
4899
4948
  key: 0,
4900
- modelValue: z.value,
4901
- "onUpdate:modelValue": k[3] || (k[3] = (c) => z.value = c),
4949
+ modelValue: L.value,
4950
+ "onUpdate:modelValue": k[3] || (k[3] = (c) => L.value = c),
4902
4951
  dirty: m.value.translationDirty,
4903
4952
  name: m.value.name,
4904
4953
  "name-locale": m.value.nameLocale,
@@ -4926,50 +4975,50 @@ const bo = {
4926
4975
  sdk: {}
4927
4976
  },
4928
4977
  emits: ["close", "created"],
4929
- setup(W, { emit: V }) {
4930
- const i = W, x = V, { t: o } = be(), d = Pe(), { run: w } = Ue(), C = i.sdk.printDepartment.editor(), P = Le(C), m = R(
4978
+ setup(Y, { emit: V }) {
4979
+ const i = Y, x = V, { t: o } = be(), d = Pe(), { run: w } = Ue(), C = i.sdk.printDepartment.editor(), P = Le(C), m = R(
4931
4980
  () => P.value.status === "ready" ? P.value.value : null
4932
4981
  ), l = ll(() => C), $ = R(
4933
4982
  () => m.value ? l.issue(m.value.fieldIssues, "name") : null
4934
4983
  );
4935
4984
  ke(() => C.dispose());
4936
4985
  const _ = R(() => {
4937
- const z = $.value;
4938
- return z ? z.code !== $s ? d(z) : o("menu.print_dept.validation.name_required") : "";
4986
+ const L = $.value;
4987
+ return L ? L.code !== $s ? d(L) : o("menu.print_dept.validation.name_required") : "";
4939
4988
  });
4940
4989
  async function F() {
4941
4990
  var G;
4942
- const z = ((G = m.value) == null ? void 0 : G.name) ?? "";
4991
+ const L = ((G = m.value) == null ? void 0 : G.name) ?? "";
4943
4992
  (await w(() => l.submit(() => C.submit()), {
4944
4993
  showLoading: () => {
4945
4994
  var A;
4946
4995
  return ((A = m.value) == null ? void 0 : A.status) === "submitting";
4947
4996
  }
4948
- })).kind === "success" && (x("created", z), x("close"));
4997
+ })).kind === "success" && (x("created", L), x("close"));
4949
4998
  }
4950
- return (z, E) => {
4951
- const G = N("FmButton"), A = N("FmSideSheet");
4999
+ return (L, E) => {
5000
+ const G = M("FmButton"), A = M("FmSideSheet");
4952
5001
  return r(), T(A, {
4953
5002
  "model-value": !0,
4954
- "is-container": e(O).FmForm,
5003
+ "is-container": e(B).FmForm,
4955
5004
  "is-container-props": { onValidationSuccess: F },
4956
5005
  "max-width": 560,
4957
5006
  "z-index": 100,
4958
5007
  "dismiss-away": "",
4959
- "onUpdate:modelValue": E[1] || (E[1] = (p) => p || x("close"))
5008
+ "onUpdate:modelValue": E[1] || (E[1] = (v) => v || x("close"))
4960
5009
  }, {
4961
- "side-sheet-header": v(() => [
5010
+ "side-sheet-header": p(() => [
4962
5011
  n("p", xs, I(e(o)("menu.print_dept.add")), 1)
4963
5012
  ]),
4964
- "side-sheet-footer": v(() => {
4965
- var p, g;
5013
+ "side-sheet-footer": p(() => {
5014
+ var v, g;
4966
5015
  return [
4967
5016
  n("div", Fs, [
4968
5017
  s(G, {
4969
5018
  label: e(o)("menu.common.actions.add"),
4970
5019
  size: "lg",
4971
5020
  type: "submit",
4972
- loading: ((p = m.value) == null ? void 0 : p.status) === "submitting",
5021
+ loading: ((v = m.value) == null ? void 0 : v.status) === "submitting",
4973
5022
  disabled: ((g = m.value) == null ? void 0 : g.submit.state) !== "allowed"
4974
5023
  }, null, 8, ["label", "loading", "disabled"]),
4975
5024
  s(G, {
@@ -4981,14 +5030,14 @@ const bo = {
4981
5030
  ])
4982
5031
  ];
4983
5032
  }),
4984
- default: v(() => {
4985
- var p;
5033
+ default: p(() => {
5034
+ var v;
4986
5035
  return [
4987
5036
  n("div", Cs, [
4988
5037
  s(ge, Ce({
4989
5038
  autofocus: "",
4990
5039
  label: e(o)("menu.print_dept.columns.name"),
4991
- "model-value": ((p = m.value) == null ? void 0 : p.name) ?? "",
5040
+ "model-value": ((v = m.value) == null ? void 0 : v.name) ?? "",
4992
5041
  "error-messages": $.value ? [_.value] : []
4993
5042
  }, e(l).field("name", e(C).setName)), null, 16, ["label", "model-value", "error-messages"])
4994
5043
  ])
@@ -5004,19 +5053,19 @@ const bo = {
5004
5053
  sdk: {}
5005
5054
  },
5006
5055
  emits: ["close", "created"],
5007
- setup(W, { emit: V }) {
5008
- const i = W, x = V, { t: o } = be(), d = Pe(), { run: w } = Ue(), C = i.sdk.takeaway.editor(), P = Le(C), m = R(
5056
+ setup(Y, { emit: V }) {
5057
+ const i = Y, x = V, { t: o } = be(), d = Pe(), { run: w } = Ue(), C = i.sdk.takeaway.editor(), P = Le(C), m = R(
5009
5058
  () => P.value.status === "ready" ? P.value.value : null
5010
5059
  ), l = ll(() => C), $ = R(
5011
5060
  () => m.value ? l.issue(m.value.fieldIssues, "name") : null
5012
5061
  );
5013
5062
  ke(() => C.dispose());
5014
- const _ = X(!1);
5063
+ const _ = W(!1);
5015
5064
  function F() {
5016
5065
  var A;
5017
5066
  ((A = m.value) == null ? void 0 : A.translation.state) === "allowed" && (C.beginTranslationEdit(), _.value = !0);
5018
5067
  }
5019
- function z() {
5068
+ function L() {
5020
5069
  C.saveTranslationEdit(), _.value = !1;
5021
5070
  }
5022
5071
  function E() {
@@ -5032,21 +5081,21 @@ const bo = {
5032
5081
  }
5033
5082
  })).kind === "success" && (x("created", A), x("close"));
5034
5083
  }
5035
- return (A, p) => {
5036
- const g = N("FmButton"), f = N("FmSideSheet");
5037
- return r(), S(ie, null, [
5084
+ return (A, v) => {
5085
+ const g = M("FmButton"), f = M("FmSideSheet");
5086
+ return r(), S(re, null, [
5038
5087
  s(f, {
5039
5088
  "model-value": !0,
5040
- "is-container": e(O).FmForm,
5089
+ "is-container": e(B).FmForm,
5041
5090
  "is-container-props": { onValidationSuccess: G },
5042
5091
  "max-width": 560,
5043
- "onUpdate:modelValue": p[2] || (p[2] = (k) => k || x("close"))
5092
+ "onUpdate:modelValue": v[2] || (v[2] = (k) => k || x("close"))
5044
5093
  }, {
5045
- "side-sheet-header": v(() => [
5094
+ "side-sheet-header": p(() => [
5046
5095
  n("p", Vs, I(e(o)("menu.takeaway.add")), 1)
5047
5096
  ]),
5048
- "side-sheet-footer": v(() => {
5049
- var k, B;
5097
+ "side-sheet-footer": p(() => {
5098
+ var k, O;
5050
5099
  return [
5051
5100
  n("div", Ps, [
5052
5101
  s(g, {
@@ -5054,21 +5103,21 @@ const bo = {
5054
5103
  size: "lg",
5055
5104
  type: "submit",
5056
5105
  loading: ((k = m.value) == null ? void 0 : k.status) === "submitting",
5057
- disabled: ((B = m.value) == null ? void 0 : B.submit.state) !== "allowed"
5106
+ disabled: ((O = m.value) == null ? void 0 : O.submit.state) !== "allowed"
5058
5107
  }, null, 8, ["label", "loading", "disabled"]),
5059
5108
  s(g, {
5060
5109
  label: e(o)("menu.common.actions.cancel"),
5061
5110
  size: "lg",
5062
5111
  variant: "tertiary",
5063
- onClick: p[1] || (p[1] = (Q) => x("close"))
5112
+ onClick: v[1] || (v[1] = (Q) => x("close"))
5064
5113
  }, null, 8, ["label"])
5065
5114
  ])
5066
5115
  ];
5067
5116
  }),
5068
- default: v(() => [
5117
+ default: p(() => [
5069
5118
  s(qe, null, {
5070
- default: v(() => {
5071
- var k, B;
5119
+ default: p(() => {
5120
+ var k, O;
5072
5121
  return [
5073
5122
  s(ge, Ce({
5074
5123
  autofocus: "",
@@ -5077,7 +5126,7 @@ const bo = {
5077
5126
  "model-value": ((k = m.value) == null ? void 0 : k.name) ?? "",
5078
5127
  "error-messages": $.value ? [e(d)($.value)] : []
5079
5128
  }, e(l).field("name", e(C).setName)), {
5080
- append: v(() => {
5129
+ append: p(() => {
5081
5130
  var Q;
5082
5131
  return [
5083
5132
  s(g, {
@@ -5095,10 +5144,10 @@ const bo = {
5095
5144
  inputmode: "decimal",
5096
5145
  label: e(o)("menu.takeaway.columns.price"),
5097
5146
  placeholder: e(o)("menu.takeaway.placeholders.price"),
5098
- "model-value": ((B = m.value) == null ? void 0 : B.price) ?? "",
5099
- "onUpdate:modelValue": p[0] || (p[0] = (Q) => e(C).setPrice(Q))
5147
+ "model-value": ((O = m.value) == null ? void 0 : O.price) ?? "",
5148
+ "onUpdate:modelValue": v[0] || (v[0] = (Q) => e(C).setPrice(Q))
5100
5149
  }, {
5101
- prepend: v(() => {
5150
+ prepend: p(() => {
5102
5151
  var Q;
5103
5152
  return [
5104
5153
  n("span", null, I((Q = m.value) == null ? void 0 : Q.currencySymbol), 1)
@@ -5116,7 +5165,7 @@ const bo = {
5116
5165
  m.value ? (r(), T(il, {
5117
5166
  key: 0,
5118
5167
  modelValue: _.value,
5119
- "onUpdate:modelValue": p[3] || (p[3] = (k) => _.value = k),
5168
+ "onUpdate:modelValue": v[3] || (v[3] = (k) => _.value = k),
5120
5169
  dirty: m.value.translationDirty,
5121
5170
  name: m.value.name,
5122
5171
  "name-locale": m.value.nameLocale,
@@ -5128,7 +5177,7 @@ const bo = {
5128
5177
  entity: e(o)("menu.takeaway.title")
5129
5178
  }),
5130
5179
  onDiscard: E,
5131
- onSave: z,
5180
+ onSave: L,
5132
5181
  "onUpdate:name": e(C).setName,
5133
5182
  "onUpdate:nameLocale": e(C).setNameLocale
5134
5183
  }, null, 8, ["modelValue", "dirty", "name", "name-locale", "supported-locales", "title", "name-section-label", "onUpdate:name", "onUpdate:nameLocale"])) : y("", !0)
@@ -5141,25 +5190,25 @@ const bo = {
5141
5190
  }, As = ["data-not-allow-sort"], Bs = {
5142
5191
  key: 1,
5143
5192
  class: "w-24"
5144
- }, Os = { class: "flex-1" }, Ls = { class: "flex items-center gap-8" }, Ds = {
5193
+ }, Os = { class: "flex-1" }, Ls = { class: "flex items-center gap-8" }, zs = {
5145
5194
  key: 0,
5146
5195
  role: "alert",
5147
5196
  class: "text-fm-color-danger"
5148
- }, zs = { class: "flex gap-8 items-center justify-start" }, Rs = /* @__PURE__ */ ce({
5197
+ }, Ds = { class: "flex gap-8 items-center justify-start" }, Rs = /* @__PURE__ */ ce({
5149
5198
  __name: "ProductVariantCreateSheet",
5150
5199
  props: {
5151
5200
  sdk: {}
5152
5201
  },
5153
5202
  emits: ["close", "created"],
5154
- setup(W, { emit: V }) {
5155
- const i = W, x = V, { t: o } = be(), d = Qe(), w = Pe(), { run: C } = Ue(), P = i.sdk.variant.editor(), m = Le(P), l = R(
5203
+ setup(Y, { emit: V }) {
5204
+ const i = Y, x = V, { t: o } = be(), d = Qe(), w = Pe(), { run: C } = Ue(), P = i.sdk.variant.editor(), m = Le(P), l = R(
5156
5205
  () => m.value.status === "ready" ? m.value.value : null
5157
5206
  ), $ = ll(() => P), _ = R(
5158
5207
  () => l.value ? $.issue(l.value.fieldIssues, "name") ?? l.value.nameIssue : null
5159
5208
  ), F = R(
5160
5209
  () => l.value ? $.issue(l.value.fieldIssues, "options") ?? l.value.optionsIssue : null
5161
5210
  );
5162
- function z(ee) {
5211
+ function L(ee) {
5163
5212
  const { ref: a, ...c } = $.field(
5164
5213
  "options",
5165
5214
  (ne) => P.setOptionName(ee, ne)
@@ -5170,13 +5219,13 @@ const bo = {
5170
5219
  function G(ee, a) {
5171
5220
  a && typeof a.focus == "function" ? E.set(ee, a) : E.delete(ee);
5172
5221
  }
5173
- const A = ye(null), p = ye("variant");
5222
+ const A = ye(null), v = ye("variant");
5174
5223
  function g() {
5175
5224
  var ee;
5176
5225
  (ee = A.value) == null || ee.dispose(), A.value = null;
5177
5226
  }
5178
5227
  function f(ee) {
5179
- g(), p.value = ee, A.value = P.translationEditor();
5228
+ g(), v.value = ee, A.value = P.translationEditor();
5180
5229
  }
5181
5230
  function k() {
5182
5231
  var ee;
@@ -5198,7 +5247,7 @@ const bo = {
5198
5247
  }
5199
5248
  }).onPrimary(() => x("close"));
5200
5249
  }
5201
- async function B() {
5250
+ async function O() {
5202
5251
  var pe, le, ve, b;
5203
5252
  const ee = ((pe = l.value) == null ? void 0 : pe.name) ?? "", a = await C(() => $.submit(() => P.submit()), {
5204
5253
  showLoading: () => {
@@ -5213,7 +5262,7 @@ const bo = {
5213
5262
  const c = ((le = l.value) == null ? void 0 : le.options) ?? [], ne = c.findIndex(
5214
5263
  (h, se) => se < c.length - 1 && !h.name.trim()
5215
5264
  );
5216
- a.kind === "rejected" && a.issues.some((h) => h.field === "options") && ((ve = F.value) == null ? void 0 : ve.code) === "menu.variant.form.options.name_required" && ne >= 0 && (await el(), (b = E.get(ne)) == null || b.focus());
5265
+ a.kind === "rejected" && a.issues.some((h) => h.field === "options") && ((ve = F.value) == null ? void 0 : ve.code) === "menu.variant.form.options.name_required" && ne >= 0 && (await Je(), (b = E.get(ne)) == null || b.focus());
5217
5266
  }
5218
5267
  const Q = R(
5219
5268
  () => {
@@ -5227,22 +5276,22 @@ const bo = {
5227
5276
  return ke(() => {
5228
5277
  g(), P.dispose();
5229
5278
  }), (ee, a) => {
5230
- const c = N("FmButton"), ne = N("FmSideSheet");
5231
- return r(), S(ie, null, [
5279
+ const c = M("FmButton"), ne = M("FmSideSheet");
5280
+ return r(), S(re, null, [
5232
5281
  s(ne, {
5233
5282
  "model-value": !0,
5234
5283
  "max-width": 560,
5235
- "is-container": e(O).FmForm,
5236
- "is-container-props": { onValidationSuccess: B },
5284
+ "is-container": e(B).FmForm,
5285
+ "is-container-props": { onValidationSuccess: O },
5237
5286
  "onOn:clickedAway": k
5238
5287
  }, {
5239
- "side-sheet-header": v(() => [
5288
+ "side-sheet-header": p(() => [
5240
5289
  n("p", Is, I(e(o)("menu.variant.form.title.add")), 1)
5241
5290
  ]),
5242
- "side-sheet-footer": v(() => {
5291
+ "side-sheet-footer": p(() => {
5243
5292
  var pe;
5244
5293
  return [
5245
- n("div", zs, [
5294
+ n("div", Ds, [
5246
5295
  s(c, {
5247
5296
  label: e(o)("menu.common.actions.add"),
5248
5297
  disabled: ((pe = l.value) == null ? void 0 : pe.submit.state) !== "allowed",
@@ -5259,12 +5308,12 @@ const bo = {
5259
5308
  ])
5260
5309
  ];
5261
5310
  }),
5262
- default: v(() => [
5311
+ default: p(() => [
5263
5312
  l.value ? (r(), S("div", Ts, [
5264
5313
  s(qe, {
5265
5314
  title: e(o)("menu.variant.form.detail")
5266
5315
  }, {
5267
- default: v(() => [
5316
+ default: p(() => [
5268
5317
  s(ge, Ce({
5269
5318
  autofocus: "",
5270
5319
  "model-value": l.value.name,
@@ -5273,7 +5322,7 @@ const bo = {
5273
5322
  "error-messages": _.value ? [e(w)(_.value)] : [],
5274
5323
  "helper-text": e(o)("menu.variant.form.name.helper")
5275
5324
  }, e($).field("name", e(P).setName)), {
5276
- append: v(() => [
5325
+ append: p(() => [
5277
5326
  s(c, {
5278
5327
  class: "!p-0",
5279
5328
  icon: "g_translate",
@@ -5287,7 +5336,7 @@ const bo = {
5287
5336
  s(Oe, {
5288
5337
  label: e(o)("menu.variant.form.options.title")
5289
5338
  }, {
5290
- default: v(() => [
5339
+ default: p(() => [
5291
5340
  n("div", null, [
5292
5341
  s(ml, {
5293
5342
  items: Q.value,
@@ -5295,7 +5344,7 @@ const bo = {
5295
5344
  "lock-last": "",
5296
5345
  onReorder: a[3] || (a[3] = (pe) => e(P).reorderOptions(pe))
5297
5346
  }, {
5298
- item: v(({ element: pe, index: le }) => [
5347
+ item: p(({ element: pe, index: le }) => [
5299
5348
  n("div", {
5300
5349
  class: "flex items-center space-x-8",
5301
5350
  "data-not-allow-sort": le === l.value.options.length - 1
@@ -5319,10 +5368,10 @@ const bo = {
5319
5368
  }),
5320
5369
  class: "flex-1",
5321
5370
  ref: (ve) => G(le, ve)
5322
- }, z(le)), cl({ _: 2 }, [
5371
+ }, L(le)), cl({ _: 2 }, [
5323
5372
  le !== l.value.options.length - 1 ? {
5324
5373
  name: "append",
5325
- fn: v(() => [
5374
+ fn: p(() => [
5326
5375
  n("div", Ls, [
5327
5376
  s(c, {
5328
5377
  class: "!p-0",
@@ -5352,7 +5401,7 @@ const bo = {
5352
5401
  ]),
5353
5402
  _: 1
5354
5403
  }, 8, ["items"]),
5355
- F.value ? (r(), S("p", Ds, I(e(w)(F.value)), 1)) : y("", !0)
5404
+ F.value ? (r(), S("p", zs, I(e(w)(F.value)), 1)) : y("", !0)
5356
5405
  ])
5357
5406
  ]),
5358
5407
  _: 1
@@ -5367,7 +5416,7 @@ const bo = {
5367
5416
  A.value ? (r(), T(pa, {
5368
5417
  key: 0,
5369
5418
  session: A.value,
5370
- "expanded-section": p.value,
5419
+ "expanded-section": v.value,
5371
5420
  onClose: g
5372
5421
  }, null, 8, ["session", "expanded-section"])) : y("", !0)
5373
5422
  ], 64);
@@ -5394,11 +5443,11 @@ const bo = {
5394
5443
  presentation: {}
5395
5444
  },
5396
5445
  emits: ["created"],
5397
- setup(W, { expose: V, emit: i }) {
5398
- const x = W, o = i, d = (A, p) => o("created", { kind: A, name: p }), { t: w } = be(), C = Qe(), { run: P } = Ue(), m = ye(null), l = ll(() => m.value), $ = X(!1), _ = X(!1), F = X(!1), z = X(!1), E = X(!1);
5446
+ setup(Y, { expose: V, emit: i }) {
5447
+ const x = Y, o = i, d = (A, v) => o("created", { kind: A, name: v }), { t: w } = be(), C = Qe(), { run: P } = Ue(), m = ye(null), l = ll(() => m.value), $ = W(!1), _ = W(!1), F = W(!1), L = W(!1), E = W(!1);
5399
5448
  function G(A) {
5400
5449
  if (A === "printRoute") {
5401
- z.value = !0;
5450
+ L.value = !0;
5402
5451
  return;
5403
5452
  }
5404
5453
  if (A === "takeaway") {
@@ -5429,22 +5478,22 @@ const bo = {
5429
5478
  text: w("menu.common.actions.cancel"),
5430
5479
  close: !0
5431
5480
  }
5432
- }).onPrimary(async (p) => {
5481
+ }).onPrimary(async (v) => {
5433
5482
  (await P(
5434
- () => x.sdk.priceTier.create(String(p ?? ""))
5435
- )).kind === "success" && (d("priceGroup", String(p ?? "")), C.close());
5483
+ () => x.sdk.priceTier.create(String(v ?? ""))
5484
+ )).kind === "success" && (d("priceGroup", String(v ?? "")), C.close());
5436
5485
  });
5437
5486
  return;
5438
5487
  }
5439
5488
  if (A === "category") {
5440
- const p = x.sdk.category.editor();
5441
- m.value = p;
5489
+ const v = x.sdk.category.editor();
5490
+ m.value = v;
5442
5491
  const g = Al.category;
5443
5492
  C.open({
5444
5493
  title: w(g.title),
5445
5494
  contentComponent: fs,
5446
5495
  contentComponentProps: {
5447
- session: p,
5496
+ session: v,
5448
5497
  label: w(g.label),
5449
5498
  validation: l
5450
5499
  },
@@ -5454,22 +5503,22 @@ const bo = {
5454
5503
  close: !0
5455
5504
  }
5456
5505
  }).onPrimary(async () => {
5457
- const f = p.get(), k = f.status === "ready" ? f.value.name : "";
5506
+ const f = v.get(), k = f.status === "ready" ? f.value.name : "";
5458
5507
  (await P(
5459
- () => l.submit(() => p.submit())
5508
+ () => l.submit(() => v.submit())
5460
5509
  )).kind === "success" && (d("category", k), C.close());
5461
- }).onClose(() => p.dispose());
5510
+ }).onClose(() => v.dispose());
5462
5511
  return;
5463
5512
  }
5464
5513
  if (A === "subcategory") {
5465
- const p = x.sdk.subCategory.editor();
5466
- m.value = p;
5514
+ const v = x.sdk.subCategory.editor();
5515
+ m.value = v;
5467
5516
  const g = Al.subcategory;
5468
5517
  C.open({
5469
5518
  title: w(g.title),
5470
5519
  contentComponent: gs,
5471
5520
  contentComponentProps: {
5472
- session: p,
5521
+ session: v,
5473
5522
  label: w(g.label),
5474
5523
  validation: l
5475
5524
  },
@@ -5479,45 +5528,45 @@ const bo = {
5479
5528
  close: !0
5480
5529
  }
5481
5530
  }).onPrimary(async () => {
5482
- const f = p.get(), k = f.status === "ready" ? f.value.name : "";
5531
+ const f = v.get(), k = f.status === "ready" ? f.value.name : "";
5483
5532
  (await P(
5484
- () => l.submit(() => p.submit())
5533
+ () => l.submit(() => v.submit())
5485
5534
  )).kind === "success" && (d("subcategory", k), C.close());
5486
5535
  });
5487
5536
  }
5488
5537
  }
5489
- return V({ open: G }), (A, p) => (r(), S(ie, null, [
5538
+ return V({ open: G }), (A, v) => (r(), S(re, null, [
5490
5539
  $.value ? (r(), T(ra, {
5491
5540
  key: 0,
5492
5541
  presentation: A.presentation,
5493
5542
  sdk: A.sdk,
5494
- onClose: p[0] || (p[0] = (g) => $.value = !1),
5495
- onCreated: p[1] || (p[1] = (g) => d("group", g))
5543
+ onClose: v[0] || (v[0] = (g) => $.value = !1),
5544
+ onCreated: v[1] || (v[1] = (g) => d("group", g))
5496
5545
  }, null, 8, ["presentation", "sdk"])) : y("", !0),
5497
5546
  _.value ? (r(), T(Rs, {
5498
5547
  key: 1,
5499
5548
  sdk: A.sdk,
5500
- onClose: p[2] || (p[2] = (g) => _.value = !1),
5501
- onCreated: p[3] || (p[3] = (g) => d("variant", g))
5549
+ onClose: v[2] || (v[2] = (g) => _.value = !1),
5550
+ onCreated: v[3] || (v[3] = (g) => d("variant", g))
5502
5551
  }, null, 8, ["sdk"])) : y("", !0),
5503
5552
  F.value ? (r(), T(ws, {
5504
5553
  key: 2,
5505
5554
  "initial-product-ids": A.itemId ? [A.itemId] : [],
5506
5555
  sdk: A.sdk,
5507
- onClose: p[4] || (p[4] = (g) => F.value = !1),
5508
- onCreated: p[5] || (p[5] = (g) => d("pacing", g))
5556
+ onClose: v[4] || (v[4] = (g) => F.value = !1),
5557
+ onCreated: v[5] || (v[5] = (g) => d("pacing", g))
5509
5558
  }, null, 8, ["initial-product-ids", "sdk"])) : y("", !0),
5510
- z.value ? (r(), T(Ss, {
5559
+ L.value ? (r(), T(Ss, {
5511
5560
  key: 3,
5512
5561
  sdk: A.sdk,
5513
- onClose: p[6] || (p[6] = (g) => z.value = !1),
5514
- onCreated: p[7] || (p[7] = (g) => d("printRoute", g))
5562
+ onClose: v[6] || (v[6] = (g) => L.value = !1),
5563
+ onCreated: v[7] || (v[7] = (g) => d("printRoute", g))
5515
5564
  }, null, 8, ["sdk"])) : y("", !0),
5516
5565
  E.value ? (r(), T(Us, {
5517
5566
  key: 4,
5518
5567
  sdk: A.sdk,
5519
- onClose: p[8] || (p[8] = (g) => E.value = !1),
5520
- onCreated: p[9] || (p[9] = (g) => d("takeaway", g))
5568
+ onClose: v[8] || (v[8] = (g) => E.value = !1),
5569
+ onCreated: v[9] || (v[9] = (g) => d("takeaway", g))
5521
5570
  }, null, 8, ["sdk"])) : y("", !0)
5522
5571
  ], 64));
5523
5572
  }
@@ -5525,6 +5574,8 @@ const bo = {
5525
5574
  export {
5526
5575
  Al as I,
5527
5576
  ii as _,
5528
- ri as a,
5529
- vo as b
5577
+ Nl as a,
5578
+ ri as b,
5579
+ vo as c,
5580
+ Ml as u
5530
5581
  };