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

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 (57) hide show
  1. package/dist/{App-DtX4DyDA.js → App-nS46pByh.js} +3 -3
  2. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-BJN8ajuD.js → BindingTable.vue_vue_type_script_setup_true_lang-DnvN5R5w.js} +1 -1
  3. package/dist/{Catalog-Dly_r1yA.js → Catalog-B4RS8T29.js} +4 -4
  4. package/dist/{CatalogBinding-CNG4YcVq.js → CatalogBinding-6_783kbu.js} +3 -3
  5. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-Cy2culdR.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-BawCLY5-.js} +3 -3
  6. package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-BjP8ZXyb.js +784 -0
  7. package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-4EZ4yM_N.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Diapahfp.js} +3 -3
  8. package/dist/{Category-Dz1yFYyY.js → Category-CqneIGq4.js} +5 -5
  9. package/dist/{Category-BS-vFDYy.js → Category-DNQH1CI7.js} +2 -2
  10. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-CrHYjrTn.js → CategoryList.vue_vue_type_script_setup_true_lang-Bt_onPrP.js} +4 -4
  11. package/dist/{CookingGuide-CmbvWFgp.js → CookingGuide-DTAiFmEL.js} +4 -4
  12. package/dist/{Group-BRmWZnHh.js → Group-5xO2j3CL.js} +2 -2
  13. package/dist/{Group-B7s-vPXb.js → Group-DeUqUomY.js} +5 -5
  14. package/dist/{GroupList.vue_vue_type_script_setup_true_lang-CWr52_a-.js → GroupList.vue_vue_type_script_setup_true_lang-Dgya_JLB.js} +5 -5
  15. package/dist/{Ingredient-BMAlctE4.js → Ingredient-BlDW3TfZ.js} +3 -3
  16. package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-CR99740r.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-0tCpJlOf.js} +1 -1
  17. package/dist/{MenuSetting-Ci7V_Jxn.js → MenuSetting-DdekHsQy.js} +3 -3
  18. package/dist/{OrderPacing-Bz5kn6DY.js → OrderPacing-Bb2n5wmI.js} +4 -4
  19. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-NCH-SrZU.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-C3SqQPSr.js} +1 -1
  20. package/dist/{Preview-BBGNaj1F.js → Preview-DGTw0POk.js} +1 -1
  21. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-BXJDpDCm.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-DffhFv0Y.js} +1 -1
  22. package/dist/{PrintRoute-BnARWdR2.js → PrintRoute-CJB4gIP2.js} +3 -3
  23. package/dist/{Product-DqN0NFUU.js → Product-CsbcyIgD.js} +4 -4
  24. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-Fkiw4lZp.js → ProductEditorHost.vue_vue_type_script_setup_true_lang--rBKdKV7.js} +2 -2
  25. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-DryxrG-x.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-J6LpJ5wT.js} +3 -3
  26. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CNWCT1OB.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-DtCzHjpN.js} +1 -1
  27. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BoQ9mVPY.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-aDx01-WW.js} +354 -346
  28. package/dist/{ProductInternalTools-CC3SWSlT.js → ProductInternalTools-Ccd4dAmx.js} +2 -2
  29. package/dist/{ProductInventoryDialog-SAhsVekx.js → ProductInventoryDialog-DYcKdKHi.js} +1 -1
  30. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-BB8UIIsW.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DySFcCJz.js} +1 -1
  31. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-BDnTs366.js → ProductList.vue_vue_type_script_setup_true_lang-DTLslTpK.js} +8 -8
  32. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BMDSkfcn.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Dw2xiPYX.js} +1 -1
  33. package/dist/{Products-Cn6j1DOQ.js → Products-phZwCZhU.js} +3 -3
  34. package/dist/{Publish-BPJhG39B.js → Publish-BeKIXu3z.js} +3 -3
  35. package/dist/{Recipe-mt1vec5-.js → Recipe-Fo4tBkBv.js} +3 -3
  36. package/dist/{Scheduler-DlaSVACJ.js → Scheduler-C-A5m92O.js} +3 -3
  37. package/dist/{ServingSequence-Cr1REWZP.js → ServingSequence-BrCwLSO7.js} +2 -2
  38. package/dist/{Setting-CyCp2uw4.js → Setting-C24V-lps.js} +6 -6
  39. package/dist/{Subcategory-kuB7gYvc.js → Subcategory-B0oZIKbw.js} +2 -2
  40. package/dist/{Takeaway-tYHCAXYU.js → Takeaway-BFP2ohJn.js} +5 -5
  41. package/dist/{Takeaway-sVVykWDg.js → Takeaway-DywX5BiX.js} +2 -2
  42. package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-CV24v8Zg.js → TakeawayList.vue_vue_type_script_setup_true_lang-B3QS7o1v.js} +3 -3
  43. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Dz-Chgek.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D7mhnrXx.js} +6 -6
  44. package/dist/{Unit-BSOvZxRy.js → Unit-NhEwH-kr.js} +2 -2
  45. package/dist/{Variant-BNnR5rLv.js → Variant-BBfWhH-s.js} +3 -3
  46. package/dist/{_id_-a9ZtdjtT.js → _id_-BooM3FX1.js} +3 -3
  47. package/dist/{app-CmElp8cO.js → app-Bmgb8ACe.js} +65 -65
  48. package/dist/app.js +1 -1
  49. package/dist/apps/mf-menu/src/app.d.ts +20 -0
  50. package/dist/apps/mf-menu/src/components/PriceTier/LinkPriceTierSection.vue.d.ts +9 -0
  51. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  52. package/dist/assets/{menu-compute-B_wpWLAj.js → menu-compute-CG-fX5pi.js} +2 -2
  53. package/dist/assets/{validate-menu-DjxNxUxH.js → validate-menu-BeGMWVns.js} +2 -2
  54. package/dist/{provide-BJRbSauL.js → provide-CfF0FmUz.js} +41824 -41362
  55. package/dist/{useActionFeedback-89GwO41T.js → useActionFeedback-DyUCQl2x.js} +1 -1
  56. package/package.json +1 -1
  57. package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-Byp1db9_.js +0 -484
@@ -1,24 +1,24 @@
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 { defineComponent as ce, openBlock as r, createBlock as T, unref as e, withCtx as v, createElementVNode as n, renderSlot as We, resolveComponent as M, 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 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, nextTick as el, 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 O, useDialog as Qe, useSnackbar as Zl, FmButtonVariant as Ne, FmButtonColorThemeVariant as Vl } from "@feedmepos/ui-library";
7
+ import { b as Jl } from "./app-Bmgb8ACe.js";
8
8
  import { _ as Oe } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
9
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";
10
+ import { b as Pe, u as Le, A as aa } from "./provide-CfF0FmUz.js";
11
+ import { u as Ue } from "./useActionFeedback-DyUCQl2x.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-DtCzHjpN.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-J6LpJ5wT.js";
14
+ import { a as zl, A as Il, _ as ua } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-0tCpJlOf.js";
15
+ import { _ as Rl } from "./ProductInventoryDialog.vue_vue_type_script_setup_true_lang-DySFcCJz.js";
16
+ import { _ as da } from "./PriceTierNotice.vue_vue_type_script_setup_true_lang-DffhFv0Y.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-C3SqQPSr.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-Dw2xiPYX.js";
22
22
  const ml = /* @__PURE__ */ ce({
23
23
  __name: "FlatInlineSort",
24
24
  props: {
@@ -27,8 +27,8 @@ const ml = /* @__PURE__ */ ce({
27
27
  lockLast: { type: Boolean }
28
28
  },
29
29
  emits: ["reorder"],
30
- setup(W, { emit: V }) {
31
- const i = W, x = V;
30
+ setup(Y, { emit: V }) {
31
+ const i = Y, x = V;
32
32
  function o(w) {
33
33
  x(
34
34
  "reorder",
@@ -72,10 +72,10 @@ const ml = /* @__PURE__ */ ce({
72
72
  anchor: {}
73
73
  },
74
74
  emits: ["update:enabled"],
75
- setup(W, { emit: V }) {
76
- const i = W, x = V;
75
+ setup(Y, { emit: V }) {
76
+ const i = Y, x = V;
77
77
  return (o, d) => {
78
- const w = N("FmSwitch"), C = N("FmCard");
78
+ const w = M("FmSwitch"), C = M("FmCard");
79
79
  return i.section.toggle === "none" ? (r(), T(qe, {
80
80
  key: 0,
81
81
  id: i.anchor,
@@ -143,8 +143,8 @@ const ml = /* @__PURE__ */ ce({
143
143
  existingIds: {}
144
144
  },
145
145
  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);
146
+ setup(Y, { emit: V }) {
147
+ const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = X(""), C = X(""), P = X(!0);
148
148
  function m() {
149
149
  P.value = !1, x("close");
150
150
  }
@@ -168,8 +168,8 @@ const ml = /* @__PURE__ */ ce({
168
168
  return (_, F) => (r(), T(e(O).FmDialog, {
169
169
  modelValue: P.value,
170
170
  "onUpdate:modelValue": [
171
- F[2] || (F[2] = (z) => P.value = z),
172
- F[3] || (F[3] = (z) => !z && x("close"))
171
+ F[2] || (F[2] = (L) => P.value = L),
172
+ F[3] || (F[3] = (L) => !L && x("close"))
173
173
  ],
174
174
  "max-width": 560
175
175
  }, {
@@ -197,7 +197,7 @@ const ml = /* @__PURE__ */ ce({
197
197
  n("div", Ca, [
198
198
  s(e(O).FmTextField, {
199
199
  modelValue: w.value,
200
- "onUpdate:modelValue": F[0] || (F[0] = (z) => w.value = z),
200
+ "onUpdate:modelValue": F[0] || (F[0] = (L) => w.value = L),
201
201
  label: e(o)("menu.product_image.custom.width"),
202
202
  placeholder: e(o)("menu.product_image.custom.width"),
203
203
  type: "number"
@@ -207,7 +207,7 @@ const ml = /* @__PURE__ */ ce({
207
207
  n("div", $a, [
208
208
  s(e(O).FmTextField, {
209
209
  modelValue: C.value,
210
- "onUpdate:modelValue": F[1] || (F[1] = (z) => C.value = z),
210
+ "onUpdate:modelValue": F[1] || (F[1] = (L) => C.value = L),
211
211
  label: e(o)("menu.product_image.custom.height"),
212
212
  placeholder: e(o)("menu.product_image.custom.height"),
213
213
  type: "number"
@@ -230,8 +230,8 @@ const ml = /* @__PURE__ */ ce({
230
230
  canRegenerateFromOriginal: { type: Boolean }
231
231
  },
232
232
  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);
233
+ setup(Y, { emit: V }) {
234
+ const i = Y, x = V, { t: o } = be(), d = X(""), w = X(!1), C = X(!0);
235
235
  function P() {
236
236
  C.value = !1, x("close");
237
237
  }
@@ -302,7 +302,7 @@ const ml = /* @__PURE__ */ ce({
302
302
  }, za = {
303
303
  key: 0,
304
304
  class: "flex items-center gap-16"
305
- }, Ra = ["alt", "src"], Na = { class: "fm-typo-en-body-lg-600" }, Ma = {
305
+ }, Ra = ["alt", "src"], Ma = { class: "fm-typo-en-body-lg-600" }, Na = {
306
306
  key: 1,
307
307
  class: "space-y-16"
308
308
  }, 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,15 +319,15 @@ const ml = /* @__PURE__ */ ce({
319
319
  imageRef: {}
320
320
  },
321
321
  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("");
322
+ setup(Y, { emit: V }) {
323
+ const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = Qe(), C = Pe(), P = X(null), m = X("");
324
324
  function l(q, Z) {
325
325
  m.value = Z, P.value = q;
326
326
  }
327
- const $ = Je(i.target), _ = Je(i.imageRef), F = i.sdk.productImage.manage($, _), z = Le(F);
327
+ const $ = Je(i.target), _ = Je(i.imageRef), F = i.sdk.productImage.manage($, _), L = Le(F);
328
328
  ke(() => F.dispose());
329
329
  const E = R(
330
- () => z.value.status === "ready" ? z.value.value : null
330
+ () => L.value.status === "ready" ? L.value.value : null
331
331
  ), G = R(() => {
332
332
  var q;
333
333
  return ((q = E.value) == null ? void 0 : q.ratios) ?? [];
@@ -377,11 +377,11 @@ const ml = /* @__PURE__ */ ce({
377
377
  async function b(q) {
378
378
  const Z = k.value;
379
379
  if (k.value = null, !Z) return;
380
- const M = q ? await h(q.blob) : "";
380
+ const N = q ? await h(q.blob) : "";
381
381
  await d(
382
382
  () => F.replaceRatio(
383
383
  Z.id,
384
- q ? { base64: M, contentType: q.blob.type } : null
384
+ q ? { base64: N, contentType: q.blob.type } : null
385
385
  ),
386
386
  {
387
387
  successMessage: o("menu.product_image.replace.queued"),
@@ -395,8 +395,8 @@ const ml = /* @__PURE__ */ ce({
395
395
  }
396
396
  function h(q) {
397
397
  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);
398
+ const N = new FileReader();
399
+ N.onerror = () => Z(""), N.onload = () => Z(typeof N.result == "string" ? N.result : ""), N.readAsDataURL(q);
400
400
  });
401
401
  }
402
402
  const se = X(null);
@@ -430,13 +430,13 @@ const ml = /* @__PURE__ */ ce({
430
430
  async function fe(q) {
431
431
  await d(() => F.removeRatio(q.id), { showLoading: !1 });
432
432
  }
433
- return (q, Z) => (r(), S(ie, null, [
433
+ return (q, Z) => (r(), S(re, null, [
434
434
  s(e(O).FmSideSheet, {
435
435
  id: "manage-product-image",
436
436
  modelValue: p.value,
437
437
  "onUpdate:modelValue": [
438
- Z[2] || (Z[2] = (M) => p.value = M),
439
- Z[3] || (Z[3] = (M) => !M && x("close"))
438
+ Z[2] || (Z[2] = (N) => p.value = N),
439
+ Z[3] || (Z[3] = (N) => !N && x("close"))
440
440
  ],
441
441
  "close-button": "",
442
442
  "max-width": 860
@@ -476,9 +476,9 @@ const ml = /* @__PURE__ */ ce({
476
476
  ]),
477
477
  _: 1
478
478
  }),
479
- n("p", Na, I(e(o)("menu.product_image.manage.original")), 1)
479
+ n("p", Ma, I(e(o)("menu.product_image.manage.original")), 1)
480
480
  ])) : y("", !0),
481
- E.value.addFormat.state === "allowed" ? (r(), S("section", Ma, [
481
+ E.value.addFormat.state === "allowed" ? (r(), S("section", Na, [
482
482
  n("div", Ea, [
483
483
  n("div", qa, [
484
484
  n("p", Ga, I(e(o)("menu.product_image.manage.aspect_ratio")), 1),
@@ -490,7 +490,7 @@ const ml = /* @__PURE__ */ ce({
490
490
  "aria-label": e(o)("menu.product_image.manage.add_format"),
491
491
  "prepend-icon": "add",
492
492
  variant: "primary",
493
- onClick: Z[0] || (Z[0] = (M) => g.value = !0)
493
+ onClick: Z[0] || (Z[0] = (N) => g.value = !0)
494
494
  }, null, 8, ["disabled", "label", "aria-label"])
495
495
  ]),
496
496
  n("div", Ka, [
@@ -504,7 +504,7 @@ const ml = /* @__PURE__ */ ce({
504
504
  label: e(o)("menu.product_image.preview.title"),
505
505
  class: "!h-80 !w-80 shrink-0 !overflow-hidden !rounded-md !p-0",
506
506
  variant: "plain",
507
- onClick: Z[1] || (Z[1] = (M) => l(
507
+ onClick: Z[1] || (Z[1] = (N) => l(
508
508
  E.value.originalUrl,
509
509
  e(o)("menu.product_image.manage.original")
510
510
  ))
@@ -531,19 +531,19 @@ const ml = /* @__PURE__ */ ce({
531
531
  n("p", Wa, I(e(o)("menu.product_image.manage.custom_sizing")), 1)
532
532
  ])
533
533
  ], 8, Qa),
534
- (r(!0), S(ie, null, Fe(G.value, (M) => (r(), S("div", {
535
- key: M.label,
534
+ (r(!0), S(re, null, Fe(G.value, (N) => (r(), S("div", {
535
+ key: N.label,
536
536
  class: "product-image-ratio-row flex items-center gap-16 py-12",
537
537
  role: "group",
538
- "aria-label": M.label
538
+ "aria-label": N.label
539
539
  }, [
540
540
  s(e(O).FmButton, {
541
541
  "aria-label": e(o)("menu.product_image.preview.title"),
542
542
  label: e(o)("menu.product_image.preview.title"),
543
543
  class: "!h-80 !w-80 shrink-0 !overflow-hidden !rounded-md !p-0 disabled:opacity-40",
544
- disabled: !M.previewUrl,
544
+ disabled: !N.previewUrl,
545
545
  variant: "plain",
546
- onClick: (Ie) => l(M.previewUrl, M.label)
546
+ onClick: (Ie) => l(N.previewUrl, N.label)
547
547
  }, {
548
548
  default: v(() => [
549
549
  s(e(O).FmCard, {
@@ -551,11 +551,11 @@ const ml = /* @__PURE__ */ ce({
551
551
  variant: "outlined"
552
552
  }, {
553
553
  default: v(() => [
554
- M.previewUrl ? (r(), S("img", {
554
+ N.previewUrl ? (r(), S("img", {
555
555
  key: 0,
556
- alt: M.label,
556
+ alt: N.label,
557
557
  class: "h-full w-full object-cover",
558
- src: M.previewUrl
558
+ src: N.previewUrl
559
559
  }, null, 8, Za)) : (r(), T(e(O).FmIcon, {
560
560
  key: 1,
561
561
  color: "neutral-gray-300",
@@ -570,51 +570,51 @@ const ml = /* @__PURE__ */ ce({
570
570
  }, 1032, ["aria-label", "label", "disabled", "onClick"]),
571
571
  n("div", Ja, [
572
572
  n("div", et, [
573
- n("p", lt, I(M.label), 1),
574
- M.required ? (r(), T(e(O).FmChip, {
573
+ n("p", lt, I(N.label), 1),
574
+ N.required ? (r(), T(e(O).FmChip, {
575
575
  key: 0,
576
576
  color: "negative",
577
577
  label: e(o)("menu.product_image.manage.required"),
578
578
  size: "sm"
579
579
  }, null, 8, ["label"])) : y("", !0),
580
- B(M) ? (r(), T(e(O).FmChip, {
580
+ B(N) ? (r(), T(e(O).FmChip, {
581
581
  key: 1,
582
- color: M.status === "pending" ? "warning" : "negative",
583
- label: B(M),
582
+ color: N.status === "pending" ? "warning" : "negative",
583
+ label: B(N),
584
584
  size: "sm"
585
585
  }, null, 8, ["color", "label"])) : y("", !0)
586
586
  ]),
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)
587
+ N.purpose ? (r(), S("p", at, I(e(C)(N.purpose)), 1)) : y("", !0),
588
+ !N.required && !N.previewUrl ? (r(), S("p", tt, I(e(o)("menu.product_image.manage.custom_image_hint")), 1)) : y("", !0)
589
589
  ]),
590
590
  n("div", ot, [
591
591
  s(e(O).FmButton, {
592
592
  "aria-label": e(o)("menu.product_image.replace.action_for", {
593
- ratio: M.label
593
+ ratio: N.label
594
594
  }),
595
- disabled: M.replace.state !== "allowed",
595
+ disabled: N.replace.state !== "allowed",
596
596
  icon: "image",
597
597
  variant: "tertiary",
598
- onClick: (Ie) => k.value = M
598
+ onClick: (Ie) => k.value = N
599
599
  }, null, 8, ["aria-label", "disabled", "onClick"]),
600
600
  s(e(O).FmButton, {
601
601
  "aria-label": e(o)("menu.product_image.regenerate.action_for", {
602
- ratio: M.label
602
+ ratio: N.label
603
603
  }),
604
- disabled: M.regenerate.state !== "allowed",
604
+ disabled: N.regenerate.state !== "allowed",
605
605
  icon: "autorenew",
606
606
  variant: "tertiary",
607
- onClick: (Ie) => pe(M)
607
+ onClick: (Ie) => pe(N)
608
608
  }, null, 8, ["aria-label", "disabled", "onClick"]),
609
- M.canRemove ? (r(), T(e(O).FmButton, {
609
+ N.canRemove ? (r(), T(e(O).FmButton, {
610
610
  key: 0,
611
611
  "aria-label": e(o)("menu.product_image.manage.remove_ratio.action_for", {
612
- ratio: M.label
612
+ ratio: N.label
613
613
  }),
614
614
  disabled: se.value !== null,
615
615
  icon: "close",
616
616
  variant: "tertiary",
617
- onClick: (Ie) => de(M)
617
+ onClick: (Ie) => de(N)
618
618
  }, null, 8, ["aria-label", "disabled", "onClick"])) : y("", !0)
619
619
  ])
620
620
  ], 8, Ya))), 128))
@@ -647,7 +647,7 @@ const ml = /* @__PURE__ */ ce({
647
647
  s(e(O).FmDialog, {
648
648
  "model-value": P.value !== null,
649
649
  "max-width": 560,
650
- "onUpdate:modelValue": Z[4] || (Z[4] = (M) => !M && (P.value = null))
650
+ "onUpdate:modelValue": Z[4] || (Z[4] = (N) => !N && (P.value = null))
651
651
  }, {
652
652
  "dialog-header": v(() => [
653
653
  n("p", ct, I(m.value), 1)
@@ -668,7 +668,7 @@ const ml = /* @__PURE__ */ ce({
668
668
  key: 0,
669
669
  "existing-ids": A.value,
670
670
  sdk: i.sdk,
671
- onClose: Z[5] || (Z[5] = (M) => g.value = !1),
671
+ onClose: Z[5] || (Z[5] = (N) => g.value = !1),
672
672
  onConfirm: ee
673
673
  }, null, 8, ["existing-ids", "sdk"])) : y("", !0),
674
674
  k.value ? (r(), T(dl, {
@@ -676,14 +676,14 @@ const ml = /* @__PURE__ */ ce({
676
676
  mode: "replace",
677
677
  "ratio-label": k.value.label,
678
678
  "aspect-ratio": k.value.aspectRatio,
679
- onCancel: Z[6] || (Z[6] = (M) => k.value = null),
679
+ onCancel: Z[6] || (Z[6] = (N) => k.value = null),
680
680
  onConfirm: b
681
681
  }, null, 8, ["ratio-label", "aspect-ratio"])) : y("", !0),
682
682
  f.value ? (r(), T(Oa, {
683
683
  key: 2,
684
684
  "can-regenerate-from-original": f.value.canRegenerateFromOriginal,
685
685
  "ratio-label": f.value.label,
686
- onClose: Z[7] || (Z[7] = (M) => f.value = null),
686
+ onClose: Z[7] || (Z[7] = (N) => f.value = null),
687
687
  onConfirm: le
688
688
  }, null, 8, ["can-regenerate-from-original", "ratio-label"])) : y("", !0)
689
689
  ], 64));
@@ -694,84 +694,84 @@ const ml = /* @__PURE__ */ ce({
694
694
  sdk: {},
695
695
  target: {}
696
696
  },
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({
697
+ setup(Y) {
698
+ const V = Y, { t: i, n: x } = be(), { run: o } = Ue(), d = Qe(), w = Zl(), C = Pe(), P = Ll(), m = R(() => Je(V.target)), l = ye({
699
699
  status: "loading"
700
700
  });
701
701
  let $ = null, _ = null;
702
- function F(L) {
703
- _ == null || _(), $ == null || $.dispose(), $ = V.sdk.productImage.gallery(L), _ = $.subscribe((D) => {
704
- l.value = D;
702
+ function F(D) {
703
+ _ == null || _(), $ == null || $.dispose(), $ = V.sdk.productImage.gallery(D), _ = $.subscribe((z) => {
704
+ l.value = z;
705
705
  });
706
706
  }
707
707
  F(m.value), ke(() => {
708
708
  _ == null || _(), $ == null || $.dispose();
709
709
  });
710
- const z = R(
710
+ const L = R(
711
711
  () => l.value.status === "ready" ? l.value.value : null
712
712
  ), E = R(
713
713
  () => {
714
- var L;
715
- return ((L = z.value) == null ? void 0 : L.tiles) ?? [];
714
+ var D;
715
+ return ((D = L.value) == null ? void 0 : D.tiles) ?? [];
716
716
  }
717
717
  ), G = aa.join(","), A = X(null), p = X(!1), g = X([]), f = X(0), k = X([]), B = X(null);
718
718
  let Q = null;
719
719
  function ee() {
720
720
  g.value = [], f.value = 0, k.value = [], Q = null;
721
721
  }
722
- Ae(m, (L, D) => {
723
- L !== D && (B.value = null, ee(), M(), F(L));
722
+ Ae(m, (D, z) => {
723
+ D !== z && (B.value = null, ee(), N(), F(D));
724
724
  });
725
725
  const a = R(
726
726
  () => g.value[f.value] ?? null
727
727
  ), c = R(() => {
728
- var L;
729
- return ((L = z.value) == null ? void 0 : L.addImage.state) !== "allowed";
728
+ var D;
729
+ return ((D = L.value) == null ? void 0 : D.addImage.state) !== "allowed";
730
730
  });
731
731
  function ne() {
732
- var L;
733
- (L = A.value) == null || L.click();
732
+ var D;
733
+ (D = A.value) == null || D.click();
734
734
  }
735
- function pe(L) {
736
- const D = L.target;
737
- ve(Array.from(D.files ?? [])), D.value = "";
735
+ function pe(D) {
736
+ const z = D.target;
737
+ ve(Array.from(z.files ?? [])), z.value = "";
738
738
  }
739
- function le(L) {
740
- var D;
741
- p.value = !1, !c.value && ve(Array.from(((D = L.dataTransfer) == null ? void 0 : D.files) ?? []));
739
+ function le(D) {
740
+ var z;
741
+ p.value = !1, !c.value && ve(Array.from(((z = D.dataTransfer) == null ? void 0 : z.files) ?? []));
742
742
  }
743
- function ve(L) {
744
- if (c.value || L.length === 0) return;
745
- 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] }), {
743
+ function ve(D) {
744
+ if (c.value || D.length === 0) return;
745
+ const z = [];
746
+ for (const W of D) {
747
+ const ie = V.sdk.productImage.screenFile(W.type);
748
+ if (ie) {
749
+ o(async () => ({ kind: "rejected", issues: [ie] }), {
750
750
  showLoading: !1
751
751
  });
752
752
  continue;
753
753
  }
754
- D.push(Y);
754
+ z.push(W);
755
755
  }
756
- D.length !== 0 && (g.value = D, f.value = 0, k.value = [], Q = m.value);
756
+ z.length !== 0 && (g.value = z, f.value = 0, k.value = [], Q = m.value);
757
757
  }
758
- function b(L) {
759
- const D = V.sdk.productImage.screenDecoded(
760
- L ? { width: L.width, height: L.height } : null
758
+ function b(D) {
759
+ const z = V.sdk.productImage.screenDecoded(
760
+ D ? { width: D.width, height: D.height } : null
761
761
  );
762
- if (D || !L) {
763
- D && o(async () => ({ kind: "rejected", issues: [D] }), {
762
+ if (z || !D) {
763
+ z && o(async () => ({ kind: "rejected", issues: [z] }), {
764
764
  showLoading: !1
765
765
  }), se();
766
766
  return;
767
767
  }
768
768
  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
769
+ contentType: D.blob.type,
770
+ fileName: D.fileName,
771
+ width: D.width,
772
+ height: D.height,
773
+ byteLength: D.blob.size,
774
+ bytes: D.blob
775
775
  }), se();
776
776
  }
777
777
  function h() {
@@ -782,68 +782,76 @@ const ml = /* @__PURE__ */ ce({
782
782
  f.value += 1;
783
783
  return;
784
784
  }
785
- const L = k.value, D = Q;
786
- ee(), L.length > 0 && D && de(D, L);
785
+ const D = k.value, z = Q;
786
+ ee(), D.length > 0 && z && de(z, D);
787
787
  }
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
- });
788
+ async function de(D, z) {
789
+ var ie;
790
+ const W = ((ie = L.value) == null ? void 0 : ie.defersUpload) === !0;
791
+ await o(
792
+ () => V.sdk.productImage.upload(D, z),
793
+ W ? {
794
+ showLoading: !1,
795
+ successMessage: i("menu.product_image.staged_added")
796
+ } : {
797
+ loadingMessage: i("menu.product_image.uploading"),
798
+ successMessage: i("menu.product_image.uploaded")
799
+ }
800
+ );
793
801
  }
794
802
  const $e = ye(null), fe = ye(null);
795
803
  let q = null, Z = null;
796
- function M() {
804
+ function N() {
797
805
  q == null || q.dispose(), Z == null || Z(), q = null, Z = null, $e.value = null, fe.value = null;
798
806
  }
799
- function Ie(L) {
800
- const D = m.value;
801
- 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;
807
+ function Ie(D) {
808
+ const z = m.value;
809
+ if (!z) return null;
810
+ N();
811
+ const W = V.sdk.productImage.edit(z, Je(D.imageRef));
812
+ return q = W, Z = W.subscribe((ie) => {
813
+ fe.value = ie.status === "ready" ? ie.value : null, fe.value || ($e.value = null);
814
+ }), W;
807
815
  }
808
- async function De(L, D) {
809
- const Y = await o(L, {
810
- loadingMessage: D,
811
- showLoading: !!D
816
+ async function De(D, z) {
817
+ const W = await o(D, {
818
+ loadingMessage: z,
819
+ showLoading: !!z
812
820
  });
813
- return Y.kind === "success" && w.open({
814
- type: Y.value.severity,
815
- [Y.value.presentation]: C(Y.value.message)
816
- }), Y;
821
+ return W.kind === "success" && w.open({
822
+ type: W.value.severity,
823
+ [W.value.presentation]: C(W.value.message)
824
+ }), W;
817
825
  }
818
- async function Ge(L) {
819
- const D = Ie(L), Y = fe.value;
820
- if (!(!D || !Y))
826
+ async function Ge(D) {
827
+ const z = Ie(D), W = fe.value;
828
+ if (!(!z || !W))
821
829
  try {
822
- const re = await Pl(Y.sourceUrl);
823
- q === D && ($e.value = re);
830
+ const ie = await Pl(W.sourceUrl);
831
+ q === z && ($e.value = ie);
824
832
  } catch {
825
- q === D && await De(() => D.confirmCrop(null));
833
+ q === z && await De(() => z.confirmCrop(null));
826
834
  }
827
835
  }
828
- async function Ye(L) {
829
- const D = q, Y = fe.value;
830
- if ($e.value = null, !D || !Y) return;
831
- let re = null;
836
+ async function Ye(D) {
837
+ const z = q, W = fe.value;
838
+ if ($e.value = null, !z || !W) return;
839
+ let ie = null;
832
840
  try {
833
- re = await Ul(L);
841
+ ie = await Ul(D);
834
842
  } catch {
835
843
  }
836
844
  await De(
837
- () => D.confirmCrop(re),
838
- L ? C(Y.loadingMessage) : void 0
839
- ), q === D && M();
845
+ () => z.confirmCrop(ie),
846
+ D ? C(W.loadingMessage) : void 0
847
+ ), q === z && N();
840
848
  }
841
- async function He(L) {
842
- const D = Ie(L), Y = fe.value;
843
- if (!D || !Y) return;
844
- const re = await o(
845
- () => D.prepareRemy(async () => {
846
- const _e = await Pl(Y.sourceUrl);
849
+ async function He(D) {
850
+ const z = Ie(D), W = fe.value;
851
+ if (!z || !W) return;
852
+ const ie = await o(
853
+ () => z.prepareRemy(async () => {
854
+ const _e = await Pl(W.sourceUrl);
847
855
  return {
848
856
  contentType: _e.type,
849
857
  byteLength: _e.size,
@@ -852,23 +860,23 @@ const ml = /* @__PURE__ */ ce({
852
860
  }),
853
861
  { showLoading: !1 }
854
862
  );
855
- re.kind === "success" && q === D && P.activate({
856
- imageData: re.value.imageData,
863
+ ie.kind === "success" && q === z && P.activate({
864
+ imageData: ie.value.imageData,
857
865
  command: "modifyImage"
858
866
  });
859
867
  }
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 () => {
865
- const _e = await oa(D);
868
+ function J(D) {
869
+ var ie;
870
+ const z = (ie = D.detail) == null ? void 0 : ie.imageData, W = q;
871
+ !W || typeof z != "string" || !z || De(
872
+ () => W.applyRemy(async () => {
873
+ const _e = await oa(z);
866
874
  return V.sdk.productImage.screenFile(_e.type) ? {
867
875
  contentType: _e.type,
868
876
  byteLength: _e.size,
869
877
  fileName: _e.name,
870
878
  bytes: _e,
871
- base64: D,
879
+ base64: z,
872
880
  width: 0,
873
881
  height: 0
874
882
  } : Ul(await na(_e));
@@ -877,11 +885,11 @@ const ml = /* @__PURE__ */ ce({
877
885
  );
878
886
  }
879
887
  Bl(() => window.addEventListener("apply-image", J)), ke(() => {
880
- window.removeEventListener("apply-image", J), M();
888
+ window.removeEventListener("apply-image", J), N();
881
889
  });
882
- function we(L) {
883
- const D = m.value;
884
- D && d.open({
890
+ function we(D) {
891
+ const z = m.value;
892
+ z && d.open({
885
893
  title: i("menu.product_image.delete.title"),
886
894
  message: i("menu.product_image.delete.message"),
887
895
  primaryActions: {
@@ -894,12 +902,12 @@ const ml = /* @__PURE__ */ ce({
894
902
  }
895
903
  }).onPrimary(async () => {
896
904
  await o(
897
- async () => V.sdk.productImage.removeImage(D, Je(L.imageRef)),
905
+ async () => V.sdk.productImage.removeImage(z, Je(D.imageRef)),
898
906
  { showLoading: !1 }
899
907
  );
900
908
  });
901
909
  }
902
- return (L, D) => (r(), T(e(O).FmFormGroup, {
910
+ return (D, z) => (r(), T(e(O).FmFormGroup, {
903
911
  class: "product-image-field pb-8 text-fm-color-typo-primary",
904
912
  tag: "div",
905
913
  label: e(i)("menu.common.labels.product_image"),
@@ -909,7 +917,7 @@ const ml = /* @__PURE__ */ ce({
909
917
  default: v(() => [
910
918
  n("p", ft, [
911
919
  sl(I(e(i)("menu.product_image.hint")) + " ", 1),
912
- c.value ? y("", !0) : (r(), S(ie, { key: 0 }, [
920
+ c.value ? y("", !0) : (r(), S(re, { key: 0 }, [
913
921
  s(e(O).FmIcon, {
914
922
  class: "mr-4 align-text-bottom",
915
923
  color: "neutral-gray-400",
@@ -926,8 +934,8 @@ const ml = /* @__PURE__ */ ce({
926
934
  p.value ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300",
927
935
  c.value ? "opacity-50 cursor-not-allowed" : ""
928
936
  ]]),
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"])),
937
+ onDragleave: z[0] || (z[0] = Ee((W) => p.value = !1, ["prevent"])),
938
+ onDragover: z[1] || (z[1] = Ee((W) => p.value = !c.value, ["prevent"])),
931
939
  onDrop: Ee(le, ["prevent"])
932
940
  }, [
933
941
  s(e(O).FmIcon, {
@@ -952,19 +960,19 @@ const ml = /* @__PURE__ */ ce({
952
960
  onChange: pe
953
961
  }, null, 40, _t)
954
962
  ], 34),
955
- (r(!0), S(ie, null, Fe(E.value, (Y, re) => {
963
+ (r(!0), S(re, null, Fe(E.value, (W, ie) => {
956
964
  var _e, Xe, ze;
957
965
  return r(), S("div", {
958
- key: Y.url,
966
+ key: W.url,
959
967
  class: "product-image-tile relative aspect-square"
960
968
  }, [
961
969
  s(e(O).FmButton, {
962
- "aria-label": e(i)("menu.product_image.manage.action_for", { index: re + 1 }),
970
+ "aria-label": e(i)("menu.product_image.manage.action_for", { index: ie + 1 }),
963
971
  class: "!block !h-full !w-full !overflow-hidden !rounded-md !p-0",
964
972
  label: e(i)("menu.product_image.manage.title"),
965
- disabled: Y.manage.state !== "allowed",
973
+ disabled: W.manage.state !== "allowed",
966
974
  variant: "plain",
967
- onClick: (je) => B.value = Y.imageRef
975
+ onClick: (je) => B.value = W.imageRef
968
976
  }, {
969
977
  default: v(() => [
970
978
  n("div", ht, [
@@ -974,9 +982,9 @@ const ml = /* @__PURE__ */ ce({
974
982
  }, {
975
983
  default: v(() => [
976
984
  n("img", {
977
- alt: e(i)("menu.product_image.tile_alt", { index: re + 1 }),
985
+ alt: e(i)("menu.product_image.tile_alt", { index: ie + 1 }),
978
986
  class: "h-full w-full object-cover",
979
- src: Y.url
987
+ src: W.url
980
988
  }, null, 8, kt)
981
989
  ]),
982
990
  _: 2
@@ -986,18 +994,18 @@ const ml = /* @__PURE__ */ ce({
986
994
  _: 2
987
995
  }, 1032, ["aria-label", "label", "disabled", "onClick"]),
988
996
  n("div", wt, [
989
- Y.isCover ? (r(), T(e(O).FmChip, {
997
+ W.isCover ? (r(), T(e(O).FmChip, {
990
998
  key: 0,
991
999
  label: e(i)("menu.product_image.cover_badge")
992
1000
  }, null, 8, ["label"])) : y("", !0),
993
- Y.formatCount !== null && Y.formatCount !== void 0 ? (r(), T(e(O).FmChip, {
1001
+ W.formatCount !== null && W.formatCount !== void 0 ? (r(), T(e(O).FmChip, {
994
1002
  key: 1,
995
- label: e(x)(Y.formatCount),
1003
+ label: e(x)(W.formatCount),
996
1004
  "right-icon": "resize"
997
1005
  }, null, 8, ["label"])) : y("", !0)
998
1006
  ]),
999
1007
  n("div", xt, [
1000
- ((_e = Y.crop) == null ? void 0 : _e.state) === "allowed" ? (r(), T(e(O).FmButton, {
1008
+ ((_e = W.crop) == null ? void 0 : _e.state) === "allowed" ? (r(), T(e(O).FmButton, {
1001
1009
  key: 0,
1002
1010
  label: e(i)("menu.product_image.editor.title"),
1003
1011
  "aria-label": e(i)("menu.product_image.editor.title"),
@@ -1005,7 +1013,7 @@ const ml = /* @__PURE__ */ ce({
1005
1013
  class: "!h-32 !w-32 !rounded-full !p-0 shadow-sm",
1006
1014
  "bg-color": "neutral-white",
1007
1015
  variant: "tertiary",
1008
- onClick: Ee((je) => Ge(Y), ["stop"])
1016
+ onClick: Ee((je) => Ge(W), ["stop"])
1009
1017
  }, {
1010
1018
  default: v(() => [
1011
1019
  s(e(O).FmIcon, {
@@ -1015,7 +1023,7 @@ const ml = /* @__PURE__ */ ce({
1015
1023
  ]),
1016
1024
  _: 2
1017
1025
  }, 1032, ["label", "aria-label", "title", "onClick"])) : y("", !0),
1018
- ((Xe = Y.remy) == null ? void 0 : Xe.state) === "allowed" ? (r(), T(e(O).FmButton, {
1026
+ ((Xe = W.remy) == null ? void 0 : Xe.state) === "allowed" ? (r(), T(e(O).FmButton, {
1019
1027
  key: 1,
1020
1028
  label: e(i)("menu.remy.title"),
1021
1029
  "aria-label": e(i)("menu.remy.title"),
@@ -1024,7 +1032,7 @@ const ml = /* @__PURE__ */ ce({
1024
1032
  class: "!h-32 !w-32 !rounded-full !p-0 shadow-sm",
1025
1033
  "bg-color": "neutral-white",
1026
1034
  variant: "tertiary",
1027
- onClick: Ee((je) => He(Y), ["stop"])
1035
+ onClick: Ee((je) => He(W), ["stop"])
1028
1036
  }, {
1029
1037
  default: v(() => [
1030
1038
  s(e(O).FmIcon, {
@@ -1036,14 +1044,14 @@ const ml = /* @__PURE__ */ ce({
1036
1044
  }, 1032, ["label", "aria-label", "title", "disabled", "onClick"])) : y("", !0)
1037
1045
  ]),
1038
1046
  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 }),
1047
+ label: e(i)("menu.product_image.remove.action_for", { index: ie + 1 }),
1048
+ "aria-label": e(i)("menu.product_image.remove.action_for", { index: ie + 1 }),
1041
1049
  class: "!absolute -right-8 -top-8 !h-24 !w-24 !rounded-full !p-0",
1042
- disabled: Y.remove.state !== "allowed",
1050
+ disabled: W.remove.state !== "allowed",
1043
1051
  "bg-color": "neutral-black",
1044
1052
  "icon-color": "neutral-white",
1045
1053
  variant: "tertiary",
1046
- onClick: (je) => we(Y)
1054
+ onClick: (je) => we(W)
1047
1055
  }, {
1048
1056
  default: v(() => [
1049
1057
  s(e(O).FmIcon, {
@@ -1070,7 +1078,7 @@ const ml = /* @__PURE__ */ ce({
1070
1078
  file: $e.value,
1071
1079
  mode: fe.value.mode,
1072
1080
  "edit-view": fe.value,
1073
- onCancel: M,
1081
+ onCancel: N,
1074
1082
  onConfirm: Ye
1075
1083
  }, null, 8, ["file", "mode", "edit-view"])) : y("", !0),
1076
1084
  B.value && V.target ? (r(), T(bt, {
@@ -1078,7 +1086,7 @@ const ml = /* @__PURE__ */ ce({
1078
1086
  "image-ref": B.value,
1079
1087
  sdk: V.sdk,
1080
1088
  target: V.target,
1081
- onClose: D[2] || (D[2] = (Y) => B.value = null)
1089
+ onClose: z[2] || (z[2] = (W) => B.value = null)
1082
1090
  }, null, 8, ["image-ref", "sdk", "target"])) : y("", !0)
1083
1091
  ]),
1084
1092
  _: 1
@@ -1099,8 +1107,8 @@ const ml = /* @__PURE__ */ ce({
1099
1107
  create: { type: Function },
1100
1108
  dialogCancelName: {}
1101
1109
  },
1102
- setup(W) {
1103
- const V = W, { t: i } = be(), x = R(
1110
+ setup(Y) {
1111
+ const V = Y, { t: i } = be(), x = R(
1104
1112
  () => V.kind === "group" ? {
1105
1113
  search: "menu.common.labels.search_groups",
1106
1114
  add: "menu.common.actions.add_group",
@@ -1139,13 +1147,13 @@ const ml = /* @__PURE__ */ ce({
1139
1147
  (_) => {
1140
1148
  var E;
1141
1149
  if (!_ || !V.dialogCancelName) return;
1142
- const F = i("menu.common.actions.cancel"), z = [
1150
+ const F = i("menu.common.actions.cancel"), L = [
1143
1151
  ...((E = _.closest(".fm-dialog")) == null ? void 0 : E.querySelectorAll("button")) ?? []
1144
1152
  ].find((G) => {
1145
1153
  var A;
1146
1154
  return ((A = G.textContent) == null ? void 0 : A.trim()) === F;
1147
1155
  });
1148
- z == null || z.setAttribute("aria-label", V.dialogCancelName);
1156
+ L == null || L.setAttribute("aria-label", V.dialogCancelName);
1149
1157
  },
1150
1158
  { flush: "post" }
1151
1159
  );
@@ -1153,7 +1161,7 @@ const ml = /* @__PURE__ */ ce({
1153
1161
  () => l.value.status === "ready" ? l.value.value : null
1154
1162
  );
1155
1163
  return (_, F) => {
1156
- const z = N("FmSearch"), E = N("FmCheckbox"), G = N("FmButton");
1164
+ const L = M("FmSearch"), E = M("FmCheckbox"), G = M("FmButton");
1157
1165
  return $.value && (!_.kind || $.value.totalCount > 0) ? (r(), S("div", {
1158
1166
  key: 0,
1159
1167
  ref_key: "root",
@@ -1164,7 +1172,7 @@ const ml = /* @__PURE__ */ ce({
1164
1172
  ])
1165
1173
  }, [
1166
1174
  n("div", null, [
1167
- s(z, {
1175
+ s(L, {
1168
1176
  "model-value": $.value.query,
1169
1177
  placeholder: e(i)(_.kind ? x.value.search : "menu.common.actions.search"),
1170
1178
  autofocus: !!_.kind,
@@ -1176,7 +1184,7 @@ const ml = /* @__PURE__ */ ce({
1176
1184
  _.kind ? "flex-1 min-h-0 overflow-y-auto p-8" : "flex flex-col gap-8"
1177
1185
  )
1178
1186
  }, [
1179
- (r(!0), S(ie, null, Fe($.value.choices, (A) => (r(), S("div", {
1187
+ (r(!0), S(re, null, Fe($.value.choices, (A) => (r(), S("div", {
1180
1188
  key: A.id,
1181
1189
  class: Be(_.kind ? void 0 : "contents")
1182
1190
  }, [
@@ -1240,8 +1248,8 @@ const ml = /* @__PURE__ */ ce({
1240
1248
  min: {}
1241
1249
  },
1242
1250
  emits: ["update:modelValue", "update:enabled"],
1243
- setup(W, { emit: V }) {
1244
- const i = W, x = V, o = Pe(), d = X(i.modelValue !== null);
1251
+ setup(Y, { emit: V }) {
1252
+ const i = Y, x = V, o = Pe(), d = X(i.modelValue !== null);
1245
1253
  let w = !1;
1246
1254
  Ae(
1247
1255
  () => i.modelValue,
@@ -1257,7 +1265,7 @@ const ml = /* @__PURE__ */ ce({
1257
1265
  w = l === null, x("update:modelValue", l);
1258
1266
  }
1259
1267
  return (m, l) => {
1260
- const $ = N("FmSwitch"), _ = N("FmStepperField");
1268
+ const $ = M("FmSwitch"), _ = M("FmStepperField");
1261
1269
  return r(), S("div", Tt, [
1262
1270
  n("div", At, [
1263
1271
  n("p", Bt, I(m.label), 1),
@@ -1286,7 +1294,7 @@ const ml = /* @__PURE__ */ ce({
1286
1294
  ]);
1287
1295
  };
1288
1296
  }
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 = {
1297
+ }), Dt = ["data-scope-title"], zt = { 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
1298
  key: 1,
1291
1299
  class: "flex gap-8 rounded-md bg-fm-color-system-warning-100 p-12"
1292
1300
  }, 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 +1310,8 @@ const ml = /* @__PURE__ */ ce({
1302
1310
  createPriceGroup: { type: Function }
1303
1311
  },
1304
1312
  emits: ["update:modelValue"],
1305
- setup(W, { emit: V }) {
1306
- const i = W, x = R(
1313
+ setup(Y, { emit: V }) {
1314
+ const i = Y, x = R(
1307
1315
  () => i.presentation === "tree" ? 720 : 800
1308
1316
  ), o = V, { t: d, n: w } = be(), C = (b) => {
1309
1317
  const h = b.code ? d("menu.group.list.product_code_name", {
@@ -1326,18 +1334,18 @@ const ml = /* @__PURE__ */ ce({
1326
1334
  }
1327
1335
  ke(_);
1328
1336
  const F = ye(null);
1329
- function z() {
1337
+ function L() {
1330
1338
  var b;
1331
1339
  (b = F.value) == null || b.dispose(), F.value = null;
1332
1340
  }
1333
1341
  function E(b, h) {
1334
- z(), F.value = i.session.pricingEditor(
1342
+ L(), F.value = i.session.pricingEditor(
1335
1343
  b.id,
1336
1344
  b.combinationKey,
1337
1345
  h
1338
1346
  );
1339
1347
  }
1340
- ke(z);
1348
+ ke(L);
1341
1349
  const G = ye(null), A = R(() => [
1342
1350
  {
1343
1351
  accessorKey: "label",
@@ -1655,8 +1663,8 @@ const ml = /* @__PURE__ */ ce({
1655
1663
  }
1656
1664
  return (b, h) => {
1657
1665
  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, [
1666
+ 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"), De = M("FmTable"), Ge = M("FmSideSheet"), Ye = M("ProductGroupSheet", !0);
1667
+ return r(), S(re, null, [
1660
1668
  s(Ge, {
1661
1669
  "model-value": b.modelValue,
1662
1670
  "max-width": x.value,
@@ -1700,8 +1708,8 @@ const ml = /* @__PURE__ */ ce({
1700
1708
  variant: "outlined"
1701
1709
  }, {
1702
1710
  default: v(() => [
1703
- n("p", Nt, I(e(d)("menu.group.option.variant")), 1),
1704
- n("div", Mt, [
1711
+ n("p", Mt, I(e(d)("menu.group.option.variant")), 1),
1712
+ n("div", Nt, [
1705
1713
  s(se, {
1706
1714
  class: "flex-1",
1707
1715
  "aria-label": e(d)("menu.group.option.variant"),
@@ -1715,14 +1723,14 @@ const ml = /* @__PURE__ */ ce({
1715
1723
  }, null, 8, ["aria-label", "menu-z-index", "items", "model-value"]),
1716
1724
  n("div", Et, [
1717
1725
  s(de, {
1718
- variant: e(Me).Tertiary,
1726
+ variant: e(Ne).Tertiary,
1719
1727
  "prepend-icon": "keyboard_arrow_left",
1720
1728
  size: "lg",
1721
1729
  "aria-label": e(d)("menu.product.form.group.combination.previous"),
1722
1730
  onClick: h[1] || (h[1] = (J) => b.session.stepCombination("previous"))
1723
1731
  }, null, 8, ["variant", "aria-label"]),
1724
1732
  s(de, {
1725
- variant: e(Me).Tertiary,
1733
+ variant: e(Ne).Tertiary,
1726
1734
  "prepend-icon": "keyboard_arrow_right",
1727
1735
  size: "lg",
1728
1736
  "aria-label": e(d)("menu.product.form.group.combination.next"),
@@ -1733,7 +1741,7 @@ const ml = /* @__PURE__ */ ce({
1733
1741
  b.view.combinations.length > 1 ? (r(), S("div", qt, [
1734
1742
  n("p", Gt, I(e(d)("menu.group.option.show_in_variants")), 1),
1735
1743
  n("div", jt, [
1736
- (r(!0), S(ie, null, Fe(b.view.combinations, (J) => (r(), T($e, {
1744
+ (r(!0), S(re, null, Fe(b.view.combinations, (J) => (r(), T($e, {
1737
1745
  key: J.id,
1738
1746
  icon: J.hidden ? "visibility_off" : "check",
1739
1747
  label: J.label,
@@ -1807,14 +1815,14 @@ const ml = /* @__PURE__ */ ce({
1807
1815
  var J;
1808
1816
  return [
1809
1817
  n("div", Qt, [
1810
- s(M, {
1818
+ s(N, {
1811
1819
  "model-value": b.view.stackable,
1812
1820
  disabled: "",
1813
1821
  label: e(d)("menu.common.labels.stackable"),
1814
1822
  "label-placement": "right",
1815
1823
  sublabel: e(d)("menu.common.labels.stackable_sublabel")
1816
1824
  }, null, 8, ["model-value", "label", "sublabel"]),
1817
- s(M, {
1825
+ s(N, {
1818
1826
  "model-value": b.view.hidden,
1819
1827
  label: e(d)("menu.common.labels.hide_group"),
1820
1828
  "label-placement": "right",
@@ -1926,10 +1934,10 @@ const ml = /* @__PURE__ */ ce({
1926
1934
  class: "px-16 py-12"
1927
1935
  }, {
1928
1936
  default: v(() => {
1929
- var L;
1937
+ var D;
1930
1938
  return [
1931
1939
  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)
1940
+ n("p", no, I((D = G.value) == null ? void 0 : D.name), 1)
1933
1941
  ];
1934
1942
  }),
1935
1943
  _: 1
@@ -1962,7 +1970,7 @@ const ml = /* @__PURE__ */ ce({
1962
1970
  "z-index": (i.zIndex ?? 200) + 100,
1963
1971
  "on-create-price-group": b.createPriceGroup,
1964
1972
  "main-pricing-label": !1,
1965
- onClose: z
1973
+ onClose: L
1966
1974
  }, null, 8, ["session", "z-index", "on-create-price-group"])) : y("", !0),
1967
1975
  g.value && f.value ? (r(), T(Ye, {
1968
1976
  key: 2,
@@ -1988,8 +1996,8 @@ const ml = /* @__PURE__ */ ce({
1988
1996
  summary: {},
1989
1997
  variant: { default: "full" }
1990
1998
  },
1991
- setup(W) {
1992
- const V = W, i = Qe(), { t: x, n: o } = be(), d = x("menu.product.form.summary.empty_value"), w = R(() => [
1999
+ setup(Y) {
2000
+ const V = Y, i = Qe(), { t: x, n: o } = be(), d = x("menu.product.form.summary.empty_value"), w = R(() => [
1993
2001
  {
1994
2002
  name: x("menu.product.form.summary.fields.code"),
1995
2003
  value: V.summary.code ?? d
@@ -2055,11 +2063,11 @@ const ml = /* @__PURE__ */ ce({
2055
2063
  });
2056
2064
  }
2057
2065
  return (P, m) => {
2058
- const l = N("FmButton");
2066
+ const l = M("FmButton");
2059
2067
  return P.variant === "full" ? (r(), S("div", uo, [
2060
2068
  n("div", mo, I(e(x)("menu.product.form.summary.title")), 1),
2061
2069
  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", {
2070
+ (r(!0), S(re, null, Fe(w.value, ($) => (r(), S("div", {
2063
2071
  key: $.name,
2064
2072
  class: "space-y-4"
2065
2073
  }, [
@@ -2076,11 +2084,11 @@ const ml = /* @__PURE__ */ ce({
2076
2084
  };
2077
2085
  }
2078
2086
  });
2079
- function Nl(W, V) {
2087
+ function Ml(Y, V) {
2080
2088
  const i = X(""), x = R(() => i.value.trim().toLowerCase()), o = R(
2081
- () => x.value ? W().filter(
2089
+ () => x.value ? Y().filter(
2082
2090
  (C) => V(C).toLowerCase().includes(x.value)
2083
- ) : W()
2091
+ ) : Y()
2084
2092
  ), d = R(
2085
2093
  () => x.value !== "" && o.value.length === 0
2086
2094
  );
@@ -2089,14 +2097,14 @@ function Nl(W, V) {
2089
2097
  }
2090
2098
  return { search: i, filtered: o, noMatches: d, reset: w };
2091
2099
  }
2092
- function Ml() {
2093
- const W = X(), V = X();
2100
+ function Nl() {
2101
+ const Y = X(), V = X();
2094
2102
  let i = !1;
2095
2103
  async function x(d) {
2096
2104
  var P;
2097
2105
  if (i = d, V.value = void 0, !d) return;
2098
2106
  await el(), await new Promise(requestAnimationFrame);
2099
- const w = (P = W.value) == null ? void 0 : P.parentElement;
2107
+ const w = (P = Y.value) == null ? void 0 : P.parentElement;
2100
2108
  if (!i || !w) return;
2101
2109
  const C = getComputedStyle(w);
2102
2110
  V.value = w.clientHeight - parseFloat(C.paddingTop) - parseFloat(C.paddingBottom);
@@ -2104,7 +2112,7 @@ function Ml() {
2104
2112
  const o = R(
2105
2113
  () => V.value ? { minHeight: `${V.value}px` } : void 0
2106
2114
  );
2107
- return { content: W, contentStyle: o, onMenuChanged: x };
2115
+ return { content: Y, contentStyle: o, onMenuChanged: x };
2108
2116
  }
2109
2117
  const bo = {
2110
2118
  key: 0,
@@ -2121,16 +2129,16 @@ const bo = {
2121
2129
  placeholder: {}
2122
2130
  },
2123
2131
  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(
2132
+ setup(Y, { emit: V }) {
2133
+ const i = Y, x = V, { t: o } = be(), { search: d, filtered: w, noMatches: C, reset: P } = Ml(
2126
2134
  () => i.items,
2127
2135
  (F) => F.label
2128
- ), { content: m, contentStyle: l, onMenuChanged: $ } = Ml();
2136
+ ), { content: m, contentStyle: l, onMenuChanged: $ } = Nl();
2129
2137
  function _(F) {
2130
2138
  F || P(), $(F);
2131
2139
  }
2132
- return (F, z) => {
2133
- const E = N("FmSearch"), G = N("FmMenuItem"), A = N("FmButton"), p = N("FmSelect");
2140
+ return (F, L) => {
2141
+ const E = M("FmSearch"), G = M("FmMenuItem"), A = M("FmButton"), p = M("FmSelect");
2134
2142
  return r(), T(p, {
2135
2143
  items: F.items,
2136
2144
  disabled: F.disabled,
@@ -2138,7 +2146,7 @@ const bo = {
2138
2146
  "keep-selection-order": "",
2139
2147
  "model-value": F.modelValue,
2140
2148
  placeholder: F.placeholder,
2141
- "onUpdate:modelValue": z[2] || (z[2] = (g) => x("update:modelValue", g ?? [])),
2149
+ "onUpdate:modelValue": L[2] || (L[2] = (g) => x("update:modelValue", g ?? [])),
2142
2150
  onDropdownChanged: _
2143
2151
  }, {
2144
2152
  "menu-wrapper": v(({ handleItemChange: g }) => [
@@ -2151,12 +2159,12 @@ const bo = {
2151
2159
  F.items.length ? (r(), S("div", bo, [
2152
2160
  s(E, {
2153
2161
  modelValue: e(d),
2154
- "onUpdate:modelValue": z[0] || (z[0] = (f) => Ol(d) ? d.value = f : null),
2162
+ "onUpdate:modelValue": L[0] || (L[0] = (f) => Ol(d) ? d.value = f : null),
2155
2163
  autofocus: "",
2156
2164
  placeholder: e(o)("menu.common.actions.search")
2157
2165
  }, null, 8, ["modelValue", "placeholder"])
2158
2166
  ])) : y("", !0),
2159
- (r(!0), S(ie, null, Fe(e(w), (f) => (r(), T(G, {
2167
+ (r(!0), S(re, null, Fe(e(w), (f) => (r(), T(G, {
2160
2168
  key: f.value,
2161
2169
  label: f.label,
2162
2170
  "has-checkbox": "",
@@ -2171,7 +2179,7 @@ const bo = {
2171
2179
  "prepend-icon": "add",
2172
2180
  class: "w-full justify-start",
2173
2181
  label: e(o)("menu.product.form.detail.category.add_new"),
2174
- onClick: z[1] || (z[1] = (f) => x("create"))
2182
+ onClick: L[1] || (L[1] = (f) => x("create"))
2175
2183
  }, null, 8, ["label"])
2176
2184
  ], 4)
2177
2185
  ]),
@@ -2195,15 +2203,15 @@ const bo = {
2195
2203
  session: {}
2196
2204
  },
2197
2205
  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(
2206
+ setup(Y, { emit: V }) {
2207
+ const i = Y, 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: _ } = Ml(
2200
2208
  () => i.view.categoryOptions,
2201
2209
  w
2202
2210
  ), {
2203
2211
  content: F,
2204
- contentStyle: z,
2212
+ contentStyle: L,
2205
2213
  onMenuChanged: E
2206
- } = Ml();
2214
+ } = Nl();
2207
2215
  function G(g) {
2208
2216
  C.value = g, g || _(), E(g);
2209
2217
  }
@@ -2217,7 +2225,7 @@ const bo = {
2217
2225
  i.session.selectCategory(g, f), f && ((k = P.value) == null || k.toggleMenu(!1));
2218
2226
  }
2219
2227
  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");
2228
+ const k = M("FmIcon"), B = M("FmField"), Q = M("FmSearch"), ee = M("FmMenuItem"), a = M("FmButton"), c = M("FmMenu"), ne = M("FmFormGroup"), pe = M("FmChipGroup");
2221
2229
  return r(), S("div", {
2222
2230
  class: "flex flex-col gap-4",
2223
2231
  "aria-label": g.view.categoryLabel === "plural" ? e(o)("menu.product.form.detail.category.label") : e(o)("menu.product.form.detail.category.label_singular")
@@ -2258,7 +2266,7 @@ const bo = {
2258
2266
  ref_key: "content",
2259
2267
  ref: F,
2260
2268
  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))
2269
+ style: pl(e(L))
2262
2270
  }, [
2263
2271
  g.view.categoryOptions.length ? (r(), S("div", ho, [
2264
2272
  s(Q, {
@@ -2268,7 +2276,7 @@ const bo = {
2268
2276
  placeholder: e(o)("menu.common.actions.search")
2269
2277
  }, null, 8, ["modelValue", "placeholder"])
2270
2278
  ])) : y("", !0),
2271
- (r(!0), S(ie, null, Fe(e(l), (le) => (r(), T(ee, {
2279
+ (r(!0), S(re, null, Fe(e(l), (le) => (r(), T(ee, {
2272
2280
  key: le.id,
2273
2281
  label: w(le),
2274
2282
  "has-checkbox": "",
@@ -2307,10 +2315,10 @@ const bo = {
2307
2315
  }, 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
2316
  key: 0,
2309
2317
  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 = {
2318
+ }, 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" }, Mo = {
2311
2319
  key: 0,
2312
2320
  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 = {
2321
+ }, 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
2322
  key: 0,
2315
2323
  class: "space-y-8"
2316
2324
  }, 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,8 +2330,8 @@ const bo = {
2322
2330
  initialSection: { default: "name" }
2323
2331
  },
2324
2332
  emits: ["update:modelValue"],
2325
- setup(W, { emit: V }) {
2326
- const i = W, x = V, { t: o } = be(), d = Qe(), w = R({
2333
+ setup(Y, { emit: V }) {
2334
+ const i = Y, x = V, { t: o } = be(), d = Qe(), w = R({
2327
2335
  get: () => i.modelValue,
2328
2336
  set: (f) => {
2329
2337
  f ? x("update:modelValue", f) : p();
@@ -2373,7 +2381,7 @@ const bo = {
2373
2381
  )
2374
2382
  );
2375
2383
  }
2376
- function z(f, k) {
2384
+ function L(f, k) {
2377
2385
  _(
2378
2386
  m.value.map(
2379
2387
  (B) => B.code === f ? { ...B, description: k } : B
@@ -2414,7 +2422,7 @@ const bo = {
2414
2422
  }).onPrimary(p);
2415
2423
  }
2416
2424
  return (f, k) => {
2417
- const B = N("FmIcon"), Q = N("FmTextarea"), ee = N("FmButton"), a = N("FmDialog");
2425
+ const B = M("FmIcon"), Q = M("FmTextarea"), ee = M("FmButton"), a = M("FmDialog");
2418
2426
  return r(), T(a, {
2419
2427
  modelValue: w.value,
2420
2428
  "onUpdate:modelValue": k[4] || (k[4] = (c) => w.value = c),
@@ -2481,7 +2489,7 @@ const bo = {
2481
2489
  ]),
2482
2490
  m.value.length > 0 ? (r(), S("div", Io, [
2483
2491
  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", {
2492
+ (r(!0), S(re, null, Fe(m.value, (c) => (r(), S("div", {
2485
2493
  key: c.code,
2486
2494
  class: "flex gap-16 items-center"
2487
2495
  }, [
@@ -2520,9 +2528,9 @@ const bo = {
2520
2528
  n("span", Ro, I(e(o)("menu.product.translation.optional")), 1)
2521
2529
  ])
2522
2530
  ], 8, Do),
2523
- P.value ? (r(), S("div", No, [
2531
+ P.value ? (r(), S("div", Mo, [
2524
2532
  n("div", null, [
2525
- n("p", Mo, I(e(o)("menu.common.translation.default")), 1),
2533
+ n("p", No, I(e(o)("menu.common.translation.default")), 1),
2526
2534
  n("div", {
2527
2535
  class: Be(["-mt-px", {
2528
2536
  "mb-px product-translation-empty-textarea": m.value.length === 0
@@ -2538,7 +2546,7 @@ const bo = {
2538
2546
  ]),
2539
2547
  m.value.length > 0 ? (r(), S("div", Eo, [
2540
2548
  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", {
2549
+ (r(!0), S(re, null, Fe(m.value, (c) => (r(), S("div", {
2542
2550
  key: c.code,
2543
2551
  class: "flex gap-16 items-start"
2544
2552
  }, [
@@ -2553,7 +2561,7 @@ const bo = {
2553
2561
  "aria-label": l(c.label),
2554
2562
  "model-value": c.description,
2555
2563
  placeholder: e(o)("menu.product.translation.placeholder"),
2556
- "onUpdate:modelValue": (ne) => z(c.code, String(ne ?? ""))
2564
+ "onUpdate:modelValue": (ne) => L(c.code, String(ne ?? ""))
2557
2565
  }, null, 8, ["aria-label", "model-value", "placeholder", "onUpdate:modelValue"])
2558
2566
  ])
2559
2567
  ]))), 128))
@@ -2581,10 +2589,10 @@ const bo = {
2581
2589
  }, 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
2590
  key: 0,
2583
2591
  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 = {
2592
+ }, Dn = { class: "fm-typo-en-body-lg-400" }, zn = { class: "w-[258px]" }, Rn = { class: "w-[117px]" }, Mn = {
2585
2593
  key: 0,
2586
2594
  class: "space-y-8"
2587
- }, Mn = {
2595
+ }, Nn = {
2588
2596
  key: 0,
2589
2597
  class: "pl-32 pb-4 flex space-x-16"
2590
2598
  }, En = { class: "w-[258px] xs:w-full" }, qn = {
@@ -2632,8 +2640,8 @@ const bo = {
2632
2640
  sdk: {}
2633
2641
  },
2634
2642
  emits: ["select-scope", "create-entity"],
2635
- setup(W, { emit: V }) {
2636
- const i = W, x = X(null);
2643
+ setup(Y, { emit: V }) {
2644
+ const i = Y, x = X(null);
2637
2645
  Ae(
2638
2646
  () => [i.treeSelection, i.view.itemId],
2639
2647
  async ([u]) => {
@@ -2692,7 +2700,7 @@ const bo = {
2692
2700
  count: u.variantCount
2693
2701
  })
2694
2702
  }) : t;
2695
- }, z = (u) => u.reduce((t, j) => {
2703
+ }, L = (u) => u.reduce((t, j) => {
2696
2704
  const te = F(j);
2697
2705
  return t ? l("menu.group.list.join_products", { list: t, item: te }) : te;
2698
2706
  }, ""), E = Qe();
@@ -2735,7 +2743,7 @@ const bo = {
2735
2743
  },
2736
2744
  tertiaryActions: {
2737
2745
  text: l("menu.product.form.order_pacing.time_presets.add_preset"),
2738
- variant: Me.Plain,
2746
+ variant: Ne.Plain,
2739
2747
  close: !1
2740
2748
  }
2741
2749
  }).onPrimary(() => {
@@ -2841,7 +2849,7 @@ const bo = {
2841
2849
  label: l(u === null ? "menu.product.form.detail.order_from.default" : zl[u]),
2842
2850
  value: u
2843
2851
  }))
2844
- ), M = R(() => [...a.value.priceTierRows]), Ie = R(
2852
+ ), N = R(() => [...a.value.priceTierRows]), Ie = R(
2845
2853
  () => a.value.showVariantMemberPricing
2846
2854
  ), De = R(() => [
2847
2855
  {
@@ -2875,7 +2883,7 @@ const bo = {
2875
2883
  O.FmButton,
2876
2884
  {
2877
2885
  label: l("menu.product.form.member_price.configure.title"),
2878
- variant: Me.Plain,
2886
+ variant: Ne.Plain,
2879
2887
  // This is the product form's per-tier member-price action. Its
2880
2888
  // nested pricing-sheet counterpart uses "Configure member price",
2881
2889
  // so the two independently addressable surfaces stay distinct.
@@ -3018,7 +3026,7 @@ const bo = {
3018
3026
  H(
3019
3027
  O.FmButton,
3020
3028
  {
3021
- variant: Me.Plain,
3029
+ variant: Ne.Plain,
3022
3030
  label: l(
3023
3031
  "menu.product.form.member_price.configure.title"
3024
3032
  ),
@@ -3134,7 +3142,7 @@ const bo = {
3134
3142
  header: () => l("menu.group.list.columns.products"),
3135
3143
  enableSorting: !1,
3136
3144
  size: 200,
3137
- cell: (u) => z(u.getValue())
3145
+ cell: (u) => L(u.getValue())
3138
3146
  },
3139
3147
  {
3140
3148
  id: "actions",
@@ -3149,7 +3157,7 @@ const bo = {
3149
3157
  [
3150
3158
  H(O.FmButton, {
3151
3159
  icon: "delete",
3152
- variant: Me.Tertiary,
3160
+ variant: Ne.Tertiary,
3153
3161
  textColor: "neutral-gray-400",
3154
3162
  "aria-label": l("menu.common.labels.a11y_labelled_name", {
3155
3163
  label: l("menu.product.form.group.actions.detach"),
@@ -3159,7 +3167,7 @@ const bo = {
3159
3167
  }),
3160
3168
  H(O.FmButton, {
3161
3169
  icon: "edit",
3162
- variant: Me.Tertiary,
3170
+ variant: Ne.Tertiary,
3163
3171
  textColor: "neutral-gray-400",
3164
3172
  // A normal group is never editable from the product form, a dynamic
3165
3173
  // one always is, and a product group only under
@@ -3169,7 +3177,7 @@ const bo = {
3169
3177
  label: l("menu.product.form.group.actions.edit"),
3170
3178
  name: t.label
3171
3179
  }),
3172
- onClick: () => re(t)
3180
+ onClick: () => ie(t)
3173
3181
  })
3174
3182
  ]
3175
3183
  );
@@ -3178,15 +3186,15 @@ const bo = {
3178
3186
  ]), J = X(!1), we = ye(
3179
3187
  null
3180
3188
  );
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;
3189
+ let D = null, z = null;
3190
+ function W() {
3191
+ z == null || z(), z = null, D == null || D.dispose(), D = null, we.value = null, J.value = !1;
3184
3192
  }
3185
- function re(u) {
3193
+ function ie(u) {
3186
3194
  if (u.edit.state !== "allowed") return;
3187
- Y();
3195
+ W();
3188
3196
  const t = i.session.groupEditor(u.id);
3189
- L = t, we.value = t.get(), D = t.subscribe((j) => {
3197
+ D = t, we.value = t.get(), z = t.subscribe((j) => {
3190
3198
  we.value = j;
3191
3199
  }), J.value = !0;
3192
3200
  }
@@ -3196,7 +3204,7 @@ const bo = {
3196
3204
  return ((u = we.value) == null ? void 0 : u.status) === "ready" ? we.value.value : null;
3197
3205
  }
3198
3206
  );
3199
- ke(Y);
3207
+ ke(W);
3200
3208
  const Xe = R(
3201
3209
  () => a.value.inventoryRows.map((u) => ({
3202
3210
  _id: u.key,
@@ -3280,7 +3288,7 @@ const bo = {
3280
3288
  // Legacy appends the same "Add new" row to this menu
3281
3289
  // (`ProductTakeaway.vue:108-128`).
3282
3290
  "append-menu": () => H(O.FmButton, {
3283
- variant: Me.Plain,
3291
+ variant: Ne.Plain,
3284
3292
  prependIcon: "add",
3285
3293
  class: "w-full justify-start",
3286
3294
  label: l("menu.product.form.takeaway.options.add_new"),
@@ -3357,8 +3365,8 @@ const bo = {
3357
3365
  { flush: "pre" }
3358
3366
  ), (u, t) => {
3359
3367
  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, [
3368
+ 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");
3369
+ return r(), S(re, null, [
3362
3370
  n("div", {
3363
3371
  ref_key: "formRoot",
3364
3372
  ref: x,
@@ -3473,7 +3481,7 @@ const bo = {
3473
3481
  }, {
3474
3482
  content: v(() => [
3475
3483
  n("div", un, [
3476
- (r(!0), S(ie, null, Fe(a.value.nameTranslationTooltip, (U) => (r(), S("div", {
3484
+ (r(!0), S(re, null, Fe(a.value.nameTranslationTooltip, (U) => (r(), S("div", {
3477
3485
  key: U.locale
3478
3486
  }, I(e(l)("menu.common.translation.tooltip_value", {
3479
3487
  value: U.value,
@@ -3532,7 +3540,7 @@ const bo = {
3532
3540
  }, {
3533
3541
  content: v(() => [
3534
3542
  n("div", vn, [
3535
- (r(!0), S(ie, null, Fe(a.value.descriptionTranslationTooltip, (U) => (r(), S("div", {
3543
+ (r(!0), S(re, null, Fe(a.value.descriptionTranslationTooltip, (U) => (r(), S("div", {
3536
3544
  key: U.locale
3537
3545
  }, I(e(l)("menu.common.translation.tooltip_value", {
3538
3546
  value: U.value,
@@ -3712,7 +3720,7 @@ const bo = {
3712
3720
  }, {
3713
3721
  default: v(() => [
3714
3722
  n("div", hn, [
3715
- (r(), S(ie, null, Fe(["perBill", "perOrderSession"], (U) => n("div", {
3723
+ (r(), S(re, null, Fe(["perBill", "perOrderSession"], (U) => n("div", {
3716
3724
  key: U,
3717
3725
  class: "flex flex-col gap-16 p-16 border-b last:border-b-0 border-fm-color-neutral-gray-100"
3718
3726
  }, [
@@ -3732,7 +3740,7 @@ const bo = {
3732
3740
  ])
3733
3741
  ]),
3734
3742
  n("div", Fn, [
3735
- (r(), S(ie, null, Fe(["min", "max"], (he) => {
3743
+ (r(), S(re, null, Fe(["min", "max"], (he) => {
3736
3744
  var ol;
3737
3745
  return s(Lt, {
3738
3746
  key: he,
@@ -3921,8 +3929,8 @@ const bo = {
3921
3929
  default: v(() => [
3922
3930
  s(Ze, {
3923
3931
  "column-defs": De.value,
3924
- "row-data": M.value,
3925
- "page-size": M.value.length,
3932
+ "row-data": N.value,
3933
+ "page-size": N.value.length,
3926
3934
  "hide-footer": ""
3927
3935
  }, null, 8, ["column-defs", "row-data", "page-size"])
3928
3936
  ]),
@@ -3935,7 +3943,7 @@ const bo = {
3935
3943
  var ae, Se;
3936
3944
  return [
3937
3945
  n("div", Bn, [
3938
- s(Ne, {
3946
+ s(Me, {
3939
3947
  disabled: a.value.editOpenPrice.state !== "allowed",
3940
3948
  label: e(l)("menu.product.form.price.settings.open_price.label"),
3941
3949
  sublabel: e(l)("menu.product.form.price.settings.open_price.sublabel"),
@@ -3944,7 +3952,7 @@ const bo = {
3944
3952
  "onUpdate:modelValue": t[29] || (t[29] = (U) => c.value.setOpenPrice(!!U))
3945
3953
  }, null, 8, ["disabled", "label", "sublabel", "model-value"]),
3946
3954
  n("div", On, [
3947
- s(Ne, {
3955
+ s(Me, {
3948
3956
  disabled: a.value.editUnitSale.state !== "allowed",
3949
3957
  label: e(l)("menu.product.form.price.settings.sell_by_unit.label"),
3950
3958
  sublabel: e(l)("menu.product.form.price.settings.sell_by_unit.sublabel"),
@@ -4005,14 +4013,14 @@ const bo = {
4005
4013
  ])
4006
4014
  ])) : y("", !0)
4007
4015
  ]),
4008
- a.value.editCosting.state === "allowed" ? (r(), S("div", Nn, [
4009
- s(Ne, {
4016
+ a.value.editCosting.state === "allowed" ? (r(), S("div", Mn, [
4017
+ s(Me, {
4010
4018
  label: e(l)("menu.product.form.price.settings.track_costing.label"),
4011
4019
  "model-value": a.value.costingAmount !== null,
4012
4020
  value: "",
4013
4021
  "onUpdate:modelValue": t[33] || (t[33] = (U) => c.value.setCostingAmount(U ? 0 : null))
4014
4022
  }, null, 8, ["label", "model-value"]),
4015
- a.value.costingAmount !== null ? (r(), S("div", Mn, [
4023
+ a.value.costingAmount !== null ? (r(), S("div", Nn, [
4016
4024
  n("div", En, [
4017
4025
  s(Ke, Ce({
4018
4026
  class: "w-full",
@@ -4029,7 +4037,7 @@ const bo = {
4029
4037
  ])) : y("", !0)
4030
4038
  ])) : y("", !0),
4031
4039
  a.value.editMinimumPrice.state !== "hidden" ? (r(), S("div", qn, [
4032
- s(Ne, {
4040
+ s(Me, {
4033
4041
  label: e(l)("menu.product.form.price.settings.min_price.label"),
4034
4042
  disabled: a.value.editMinimumPrice.state !== "allowed",
4035
4043
  "model-value": a.value.minimumPriceAmount !== null,
@@ -4063,11 +4071,11 @@ const bo = {
4063
4071
  }, {
4064
4072
  default: v(() => [
4065
4073
  n("div", Kn, [
4066
- (r(!0), S(ie, null, Fe(a.value.statutoryCharges, (ae) => (r(), S("div", {
4074
+ (r(!0), S(re, null, Fe(a.value.statutoryCharges, (ae) => (r(), S("div", {
4067
4075
  key: ae.code,
4068
4076
  class: "space-y-8"
4069
4077
  }, [
4070
- s(Ne, {
4078
+ s(Me, {
4071
4079
  label: ae.name,
4072
4080
  sublabel: e(l)("menu.product.form.price.statutory_charges.unit_amount", {
4073
4081
  amount: ve(ae)
@@ -4193,7 +4201,7 @@ const bo = {
4193
4201
  }, ["stop"]))
4194
4202
  }, null, 8, ["disabled", "aria-label"])) : y("", !0)
4195
4203
  ]),
4196
- s(Ne, {
4204
+ s(Me, {
4197
4205
  class: "flex-1",
4198
4206
  label: me.label,
4199
4207
  "model-value": [...((Se = a.value.print) == null ? void 0 : Se.departmentIds) ?? []],
@@ -4404,7 +4412,7 @@ const bo = {
4404
4412
  }, {
4405
4413
  default: v(() => [
4406
4414
  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, {
4415
+ a.value.editTakeawayPos.state === "allowed" ? (r(), T(Me, {
4408
4416
  key: 0,
4409
4417
  label: e(l)("menu.product.form.takeaway.takeawayConfig.pos.label"),
4410
4418
  sublabel: e(l)("menu.product.form.takeaway.takeawayConfig.pos.sublabel"),
@@ -4412,7 +4420,7 @@ const bo = {
4412
4420
  value: "",
4413
4421
  "onUpdate:modelValue": t[51] || (t[51] = (K) => c.value.setTakeawayConfig({ pos: !!K }))
4414
4422
  }, null, 8, ["label", "sublabel", "model-value"])) : y("", !0),
4415
- a.value.editTakeawayApp.state === "allowed" ? (r(), T(Ne, {
4423
+ a.value.editTakeawayApp.state === "allowed" ? (r(), T(Me, {
4416
4424
  key: 1,
4417
4425
  label: e(l)("menu.product.form.takeaway.takeawayConfig.app.label"),
4418
4426
  sublabel: e(l)("menu.product.form.takeaway.takeawayConfig.app.sublabel"),
@@ -4504,11 +4512,11 @@ const bo = {
4504
4512
  key: 1,
4505
4513
  "model-value": J.value,
4506
4514
  view: _e.value,
4507
- session: e(L),
4515
+ session: e(D),
4508
4516
  "order-from-options": a.value.orderFromOptions,
4509
4517
  presentation: u.presentation,
4510
4518
  "create-price-group": w,
4511
- "onUpdate:modelValue": t[56] || (t[56] = (K) => K || Y())
4519
+ "onUpdate:modelValue": t[56] || (t[56] = (K) => K || W())
4512
4520
  }, null, 8, ["model-value", "view", "session", "order-from-options", "presentation"])) : y("", !0),
4513
4521
  ze.value ? (r(), T(Rl, {
4514
4522
  key: 2,
@@ -4535,8 +4543,8 @@ const bo = {
4535
4543
  label: {},
4536
4544
  validation: {}
4537
4545
  },
4538
- setup(W) {
4539
- const V = W, { t: i } = be(), x = Pe(), { run: o } = Ue(), d = Le(V.session), w = R(
4546
+ setup(Y) {
4547
+ const V = Y, { t: i } = be(), x = Pe(), { run: o } = Ue(), d = Le(V.session), w = R(
4540
4548
  () => d.value.status === "ready" ? d.value.value : null
4541
4549
  ), C = R(
4542
4550
  () => w.value ? V.validation.issue(w.value.fieldIssues, "name") ?? w.value.nameIssue : null
@@ -4552,7 +4560,7 @@ const bo = {
4552
4560
  var g;
4553
4561
  $ == null || $(), $ = null, p && ((g = P.value) == null || g.dispose()), P.value = null, m.value = null, l.value = !1;
4554
4562
  }
4555
- function z() {
4563
+ function L() {
4556
4564
  var g;
4557
4565
  if (((g = w.value) == null ? void 0 : g.translation.state) !== "allowed") return;
4558
4566
  F(!0);
@@ -4585,8 +4593,8 @@ const bo = {
4585
4593
  F(!0), V.session.dispose();
4586
4594
  }), (p, g) => {
4587
4595
  var k;
4588
- const f = N("FmButton");
4589
- return r(), S(ie, null, [
4596
+ const f = M("FmButton");
4597
+ return r(), S(re, null, [
4590
4598
  s(ge, Ce(
4591
4599
  {
4592
4600
  "model-value": ((k = w.value) == null ? void 0 : k.name) ?? "",
@@ -4608,7 +4616,7 @@ const bo = {
4608
4616
  class: "!p-0",
4609
4617
  icon: "g_translate",
4610
4618
  variant: "tertiary",
4611
- onClick: z
4619
+ onClick: L
4612
4620
  }, null, 8, ["aria-label", "disabled"])
4613
4621
  ];
4614
4622
  }),
@@ -4647,8 +4655,8 @@ const bo = {
4647
4655
  label: {},
4648
4656
  validation: {}
4649
4657
  },
4650
- setup(W) {
4651
- const V = W, { t: i } = be(), x = Pe(), o = Le(V.session), d = R(
4658
+ setup(Y) {
4659
+ const V = Y, { t: i } = be(), x = Pe(), o = Le(V.session), d = R(
4652
4660
  () => o.value.status === "ready" ? o.value.value : null
4653
4661
  ), w = R(
4654
4662
  () => d.value ? V.validation.issue(d.value.fieldIssues, "name") ?? d.value.nameIssue : null
@@ -4665,9 +4673,9 @@ const bo = {
4665
4673
  }
4666
4674
  return ke(() => V.session.dispose()), ($, _) => {
4667
4675
  var E;
4668
- const F = N("FmButton"), z = N("FmTextField");
4669
- return r(), S(ie, null, [
4670
- s(z, Ce(
4676
+ const F = M("FmButton"), L = M("FmTextField");
4677
+ return r(), S(re, null, [
4678
+ s(L, Ce(
4671
4679
  {
4672
4680
  autofocus: "",
4673
4681
  "error-messages": w.value ? [e(x)(w.value)] : [],
@@ -4718,8 +4726,8 @@ const bo = {
4718
4726
  initialProductIds: {}
4719
4727
  },
4720
4728
  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);
4729
+ setup(Y, { emit: V }) {
4730
+ const i = Y, x = V, { t: o } = be(), { run: d } = Ue(), w = i.sdk.orderPacing.editor(), C = ll(() => w);
4723
4731
  w.setLinkedProducts(i.initialProductIds);
4724
4732
  const P = Le(w), m = R(
4725
4733
  () => P.value.status === "ready" ? P.value.value : null
@@ -4781,16 +4789,16 @@ const bo = {
4781
4789
  onClick: () => w.unlinkProduct(f.row.original.productId)
4782
4790
  })
4783
4791
  }
4784
- ]), F = X(!1), z = X(!1);
4792
+ ]), F = X(!1), L = X(!1);
4785
4793
  function E() {
4786
4794
  var f;
4787
- ((f = m.value) == null ? void 0 : f.translation.state) === "allowed" && (w.beginTranslationEdit(), z.value = !0);
4795
+ ((f = m.value) == null ? void 0 : f.translation.state) === "allowed" && (w.beginTranslationEdit(), L.value = !0);
4788
4796
  }
4789
4797
  function G() {
4790
- w.saveTranslationEdit(), z.value = !1;
4798
+ w.saveTranslationEdit(), L.value = !1;
4791
4799
  }
4792
4800
  function A() {
4793
- w.discardTranslationEdit(), z.value = !1;
4801
+ w.discardTranslationEdit(), L.value = !1;
4794
4802
  }
4795
4803
  ke(() => w.dispose());
4796
4804
  async function p() {
@@ -4808,8 +4816,8 @@ const bo = {
4808
4816
  }
4809
4817
  return (f, k) => {
4810
4818
  var a;
4811
- const B = N("FmButton"), Q = N("FmTable"), ee = N("FmSideSheet");
4812
- return r(), S(ie, null, [
4819
+ const B = M("FmButton"), Q = M("FmTable"), ee = M("FmSideSheet");
4820
+ return r(), S(re, null, [
4813
4821
  s(ee, {
4814
4822
  "model-value": !0,
4815
4823
  "is-container": e(O).FmForm,
@@ -4897,8 +4905,8 @@ const bo = {
4897
4905
  }, 8, ["is-container", "is-container-props"]),
4898
4906
  m.value ? (r(), T(il, {
4899
4907
  key: 0,
4900
- modelValue: z.value,
4901
- "onUpdate:modelValue": k[3] || (k[3] = (c) => z.value = c),
4908
+ modelValue: L.value,
4909
+ "onUpdate:modelValue": k[3] || (k[3] = (c) => L.value = c),
4902
4910
  dirty: m.value.translationDirty,
4903
4911
  name: m.value.name,
4904
4912
  "name-locale": m.value.nameLocale,
@@ -4926,29 +4934,29 @@ const bo = {
4926
4934
  sdk: {}
4927
4935
  },
4928
4936
  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(
4937
+ setup(Y, { emit: V }) {
4938
+ const i = Y, x = V, { t: o } = be(), d = Pe(), { run: w } = Ue(), C = i.sdk.printDepartment.editor(), P = Le(C), m = R(
4931
4939
  () => P.value.status === "ready" ? P.value.value : null
4932
4940
  ), l = ll(() => C), $ = R(
4933
4941
  () => m.value ? l.issue(m.value.fieldIssues, "name") : null
4934
4942
  );
4935
4943
  ke(() => C.dispose());
4936
4944
  const _ = R(() => {
4937
- const z = $.value;
4938
- return z ? z.code !== $s ? d(z) : o("menu.print_dept.validation.name_required") : "";
4945
+ const L = $.value;
4946
+ return L ? L.code !== $s ? d(L) : o("menu.print_dept.validation.name_required") : "";
4939
4947
  });
4940
4948
  async function F() {
4941
4949
  var G;
4942
- const z = ((G = m.value) == null ? void 0 : G.name) ?? "";
4950
+ const L = ((G = m.value) == null ? void 0 : G.name) ?? "";
4943
4951
  (await w(() => l.submit(() => C.submit()), {
4944
4952
  showLoading: () => {
4945
4953
  var A;
4946
4954
  return ((A = m.value) == null ? void 0 : A.status) === "submitting";
4947
4955
  }
4948
- })).kind === "success" && (x("created", z), x("close"));
4956
+ })).kind === "success" && (x("created", L), x("close"));
4949
4957
  }
4950
- return (z, E) => {
4951
- const G = N("FmButton"), A = N("FmSideSheet");
4958
+ return (L, E) => {
4959
+ const G = M("FmButton"), A = M("FmSideSheet");
4952
4960
  return r(), T(A, {
4953
4961
  "model-value": !0,
4954
4962
  "is-container": e(O).FmForm,
@@ -5004,8 +5012,8 @@ const bo = {
5004
5012
  sdk: {}
5005
5013
  },
5006
5014
  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(
5015
+ setup(Y, { emit: V }) {
5016
+ const i = Y, x = V, { t: o } = be(), d = Pe(), { run: w } = Ue(), C = i.sdk.takeaway.editor(), P = Le(C), m = R(
5009
5017
  () => P.value.status === "ready" ? P.value.value : null
5010
5018
  ), l = ll(() => C), $ = R(
5011
5019
  () => m.value ? l.issue(m.value.fieldIssues, "name") : null
@@ -5016,7 +5024,7 @@ const bo = {
5016
5024
  var A;
5017
5025
  ((A = m.value) == null ? void 0 : A.translation.state) === "allowed" && (C.beginTranslationEdit(), _.value = !0);
5018
5026
  }
5019
- function z() {
5027
+ function L() {
5020
5028
  C.saveTranslationEdit(), _.value = !1;
5021
5029
  }
5022
5030
  function E() {
@@ -5033,8 +5041,8 @@ const bo = {
5033
5041
  })).kind === "success" && (x("created", A), x("close"));
5034
5042
  }
5035
5043
  return (A, p) => {
5036
- const g = N("FmButton"), f = N("FmSideSheet");
5037
- return r(), S(ie, null, [
5044
+ const g = M("FmButton"), f = M("FmSideSheet");
5045
+ return r(), S(re, null, [
5038
5046
  s(f, {
5039
5047
  "model-value": !0,
5040
5048
  "is-container": e(O).FmForm,
@@ -5128,7 +5136,7 @@ const bo = {
5128
5136
  entity: e(o)("menu.takeaway.title")
5129
5137
  }),
5130
5138
  onDiscard: E,
5131
- onSave: z,
5139
+ onSave: L,
5132
5140
  "onUpdate:name": e(C).setName,
5133
5141
  "onUpdate:nameLocale": e(C).setNameLocale
5134
5142
  }, null, 8, ["modelValue", "dirty", "name", "name-locale", "supported-locales", "title", "name-section-label", "onUpdate:name", "onUpdate:nameLocale"])) : y("", !0)
@@ -5151,15 +5159,15 @@ const bo = {
5151
5159
  sdk: {}
5152
5160
  },
5153
5161
  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(
5162
+ setup(Y, { emit: V }) {
5163
+ 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
5164
  () => m.value.status === "ready" ? m.value.value : null
5157
5165
  ), $ = ll(() => P), _ = R(
5158
5166
  () => l.value ? $.issue(l.value.fieldIssues, "name") ?? l.value.nameIssue : null
5159
5167
  ), F = R(
5160
5168
  () => l.value ? $.issue(l.value.fieldIssues, "options") ?? l.value.optionsIssue : null
5161
5169
  );
5162
- function z(ee) {
5170
+ function L(ee) {
5163
5171
  const { ref: a, ...c } = $.field(
5164
5172
  "options",
5165
5173
  (ne) => P.setOptionName(ee, ne)
@@ -5227,8 +5235,8 @@ const bo = {
5227
5235
  return ke(() => {
5228
5236
  g(), P.dispose();
5229
5237
  }), (ee, a) => {
5230
- const c = N("FmButton"), ne = N("FmSideSheet");
5231
- return r(), S(ie, null, [
5238
+ const c = M("FmButton"), ne = M("FmSideSheet");
5239
+ return r(), S(re, null, [
5232
5240
  s(ne, {
5233
5241
  "model-value": !0,
5234
5242
  "max-width": 560,
@@ -5319,7 +5327,7 @@ const bo = {
5319
5327
  }),
5320
5328
  class: "flex-1",
5321
5329
  ref: (ve) => G(le, ve)
5322
- }, z(le)), cl({ _: 2 }, [
5330
+ }, L(le)), cl({ _: 2 }, [
5323
5331
  le !== l.value.options.length - 1 ? {
5324
5332
  name: "append",
5325
5333
  fn: v(() => [
@@ -5394,11 +5402,11 @@ const bo = {
5394
5402
  presentation: {}
5395
5403
  },
5396
5404
  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);
5405
+ setup(Y, { expose: V, emit: i }) {
5406
+ const x = Y, 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), L = X(!1), E = X(!1);
5399
5407
  function G(A) {
5400
5408
  if (A === "printRoute") {
5401
- z.value = !0;
5409
+ L.value = !0;
5402
5410
  return;
5403
5411
  }
5404
5412
  if (A === "takeaway") {
@@ -5486,7 +5494,7 @@ const bo = {
5486
5494
  });
5487
5495
  }
5488
5496
  }
5489
- return V({ open: G }), (A, p) => (r(), S(ie, null, [
5497
+ return V({ open: G }), (A, p) => (r(), S(re, null, [
5490
5498
  $.value ? (r(), T(ra, {
5491
5499
  key: 0,
5492
5500
  presentation: A.presentation,
@@ -5507,10 +5515,10 @@ const bo = {
5507
5515
  onClose: p[4] || (p[4] = (g) => F.value = !1),
5508
5516
  onCreated: p[5] || (p[5] = (g) => d("pacing", g))
5509
5517
  }, null, 8, ["initial-product-ids", "sdk"])) : y("", !0),
5510
- z.value ? (r(), T(Ss, {
5518
+ L.value ? (r(), T(Ss, {
5511
5519
  key: 3,
5512
5520
  sdk: A.sdk,
5513
- onClose: p[6] || (p[6] = (g) => z.value = !1),
5521
+ onClose: p[6] || (p[6] = (g) => L.value = !1),
5514
5522
  onCreated: p[7] || (p[7] = (g) => d("printRoute", g))
5515
5523
  }, null, 8, ["sdk"])) : y("", !0),
5516
5524
  E.value ? (r(), T(Us, {