@feedmepos/mf-menu-portal 1.0.4 → 1.0.5-dev.1

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 (78) hide show
  1. package/dist/{App-CgYpEYgp.js → App-B2xq1U4S.js} +699 -687
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Hdsnu29V.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CPh1GBw9.js} +11 -10
  3. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-CWe5_Sm5.js → BindingTable.vue_vue_type_script_setup_true_lang-DCgMQJE-.js} +50 -46
  4. package/dist/Catalog-BEI73S_k.js +433 -0
  5. package/dist/{CatalogBinding-BjTeOA91.js → CatalogBinding-3rhuTWDD.js} +30 -29
  6. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-doB3hsWD.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CraEwqCY.js} +30 -29
  7. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BpBR-N_x.js → CatalogEditor.vue_vue_type_script_setup_true_lang-Dc72SNpI.js} +314 -304
  8. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-CMyubLvP.js +127 -0
  9. package/dist/{Category-6-ppsSmZ.js → Category-BVCdkA5K.js} +14 -13
  10. package/dist/{Category-CdsbuUqi.js → Category-P5DYjIeF.js} +2 -2
  11. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-DlNUOgyu.js → CategoryList.vue_vue_type_script_setup_true_lang-DyhW52Df.js} +274 -262
  12. package/dist/{CookingGuide-CRyRlBeV.js → CookingGuide-Y-c1NLP5.js} +144 -140
  13. package/dist/{Group-DVrUlq4i.js → Group-D6wA3jCF.js} +2 -2
  14. package/dist/{Group-DqyBHSFx.js → Group-qqr5SUIc.js} +17 -15
  15. package/dist/GroupList.vue_vue_type_script_setup_true_lang-DNTVfY2d.js +1996 -0
  16. package/dist/{Ingredient-CGLfhbvN.js → Ingredient-CJHkJZ0y.js} +94 -93
  17. package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js} +1 -1
  18. package/dist/{MenuSetting-Oct3vbHj.js → MenuSetting-YcEGo51l.js} +462 -446
  19. package/dist/{OrderPacing-BDkzflgE.js → OrderPacing-DwQU7c0Y.js} +207 -204
  20. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-B259anSs.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2Cdz70u-.js} +1 -2
  21. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-DrhsROXo.js +44 -0
  22. package/dist/PhoneFab.vue_vue_type_script_setup_true_lang-CipbTqbp.js +12 -0
  23. package/dist/{Preview-V9cSpevb.js → Preview-DLeXy5V-.js} +2 -2
  24. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-k5S4mGCN.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-D_OV9Z_4.js} +1 -1
  25. package/dist/{PrintRoute-3UwiMoBU.js → PrintRoute-R38w0-U2.js} +151 -150
  26. package/dist/{Product-LaB-YRTQ.js → Product-sbMCaVhM.js} +8 -7
  27. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-DoHQeOHy.js +7826 -0
  28. package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D9v88xZs.js +111 -0
  29. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-BBXGnZtc.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-DsIGLKNS.js} +17 -17
  30. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BUC6qUnG.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-CEliG36Z.js} +726 -726
  31. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CjQRRqBx.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B3bShTjM.js} +127 -124
  32. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-3yzUcogQ.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-BzctosMW.js} +820 -807
  33. package/dist/{ProductInternalTools-DWCgC825.js → ProductInternalTools-jE3Ovo4l.js} +3 -3
  34. package/dist/{ProductInventoryDialog-D0d5RywR.js → ProductInventoryDialog-EDlrXupB.js} +1 -1
  35. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-CmYKO0ZX.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-LOwSpoiA.js} +1 -1
  36. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-DeX8Exly.js → ProductList.vue_vue_type_script_setup_true_lang-rczFAWVa.js} +1135 -1098
  37. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-BFD6_Sbb.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-C4iK-sAd.js} +1 -1
  38. package/dist/{Products-BLUhwFT-.js → Products-DUE10OyS.js} +51 -49
  39. package/dist/Publish-BlMxKniP.js +1300 -0
  40. package/dist/{Recipe-BGfofjHT.js → Recipe-BhjPAidT.js} +83 -82
  41. package/dist/{Scheduler-BL7t8aS7.js → Scheduler-wKG3_D1f.js} +137 -136
  42. package/dist/{ServingSequence-CDFXMCiN.js → ServingSequence-B26BETQs.js} +63 -61
  43. package/dist/Setting-DBdNl3WL.js +185 -0
  44. package/dist/{Subcategory-CnlrVwCy.js → Subcategory-B06yMcuE.js} +147 -144
  45. package/dist/{Takeaway-D8FzvC2w.js → Takeaway-CFATfy-6.js} +2 -2
  46. package/dist/{Takeaway-BWVzwWnh.js → Takeaway-DFqOtls7.js} +17 -16
  47. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-CUHB-g9I.js +616 -0
  48. package/dist/TextChip.vue_vue_type_script_setup_true_lang-YkUjMTXo.js +32 -0
  49. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B8nXazx6.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoS4Btzj.js} +281 -308
  50. package/dist/{Unit-Do7Tt8U8.js → Unit-B5wKBmIT.js} +90 -89
  51. package/dist/{Variant-D1kLupxx.js → Variant-C5ePu0za.js} +167 -174
  52. package/dist/{_id_-DomaBHrh.js → _id_-HRDqt6oD.js} +3 -3
  53. package/dist/{app-C_XNYz8_.js → app-CxJjx2ma.js} +39 -39
  54. package/dist/app.js +1 -1
  55. package/dist/apps/mf-menu/src/app.d.ts +35 -0
  56. package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +8 -0
  57. package/dist/apps/mf-menu/src/components/Product/OrderFromChip.vue.d.ts +6 -0
  58. package/dist/apps/mf-menu/src/components/Product/ProductThumbnail.vue.d.ts +6 -0
  59. package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +4 -2
  60. package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +1 -1
  61. package/dist/apps/mf-menu/src/components/layout/MobileXScrollable.vue.d.ts +9 -0
  62. package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +7 -0
  63. package/dist/apps/mf-menu/src/components/layout/PhoneFab.vue.d.ts +9 -0
  64. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  65. package/dist/assets/{menu-compute-Did75Kp9.js → menu-compute-CQdeCEBO.js} +19 -19
  66. package/dist/assets/{validate-menu-DVMOLygB.js → validate-menu-BVo4fNWG.js} +14 -14
  67. package/dist/mf-menu-portal.css +1 -1
  68. package/dist/{provide-Bwf3KcOV.js → provide-BGLSDsuJ.js} +99817 -99565
  69. package/dist/{useActionFeedback-CXx7dOVc.js → useActionFeedback-CElXij1W.js} +1 -1
  70. package/package.json +1 -1
  71. package/dist/Catalog-BrHGEI3p.js +0 -374
  72. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-P59vHZEn.js +0 -117
  73. package/dist/GroupList.vue_vue_type_script_setup_true_lang-oGNs8e8f.js +0 -1807
  74. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +0 -41
  75. package/dist/ProductAttributeFilter.vue_vue_type_script_setup_true_lang-B2KdolJS.js +0 -7931
  76. package/dist/Publish-Dkjnls7p.js +0 -1337
  77. package/dist/Setting-gYZoZxQG.js +0 -179
  78. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-igS-FXq5.js +0 -554
@@ -1,42 +1,42 @@
1
- import { defineComponent as me, computed as O, toDisplayString as P, ref as se, watch as Ee, openBlock as g, createBlock as N, createSlots as Ke, withCtx as v, renderSlot as Le, createElementBlock as S, createVNode as s, createCommentVNode as E, nextTick as oo, resolveComponent as x, unref as n, createElementVNode as _, Fragment as J, renderList as ue, shallowRef as ne, onBeforeUnmount as Re, h as c, mergeProps as Te, defineAsyncComponent as je, onUnmounted as no, normalizeClass as lo, withModifiers as Ue } from "vue";
2
- import { useI18n as ce, CustomAttributesForm as Me } from "@feedmepos/mf-common";
3
- import { useDialog as He, components as T } from "@feedmepos/ui-library";
4
- import { _ as to } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
5
- import { _ as ae, b as ao } from "./TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js";
6
- import { a as Ye, _ as ke } from "./vuedraggable-CBtQLb_S.js";
7
- import { _ as Ne } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
8
- import { _ as io } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { RemyButton as Ge } from "@feedmepos/mf-remy-panel";
10
- import { _ as ro } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
11
- import { u as Ze } from "./useEditorValidation-Ctef5Bxt.js";
12
- import { b as De, u as Be } from "./provide-Bwf3KcOV.js";
13
- import { u as qe } from "./useActionFeedback-CXx7dOVc.js";
14
- import { a as so, A as uo, _ as mo } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-C0rc1FRO.js";
15
- const Je = /* @__PURE__ */ me({
1
+ import { defineComponent as ce, computed as O, toDisplayString as V, ref as ue, watch as ze, openBlock as g, createBlock as N, createSlots as je, withCtx as v, renderSlot as Be, createElementBlock as $, createVNode as s, createCommentVNode as E, nextTick as lo, resolveComponent as h, unref as n, createElementVNode as _, Fragment as J, renderList as me, shallowRef as ee, onBeforeUnmount as He, h as d, mergeProps as Ne, defineAsyncComponent as Ye, onUnmounted as to, normalizeClass as ao, withModifiers as Ge } from "vue";
2
+ import { useI18n as de, CustomAttributesForm as Ke } from "@feedmepos/mf-common";
3
+ import { useDialog as Ze, components as T, useBreakpoints as io } from "@feedmepos/ui-library";
4
+ import { _ as ro } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
5
+ import { _ as re, b as so } from "./TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js";
6
+ import { a as qe, _ as Ce } from "./vuedraggable-CBtQLb_S.js";
7
+ import { _ as Ee } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
8
+ import { _ as uo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ import { RemyButton as Re } from "@feedmepos/mf-remy-panel";
10
+ import { _ as mo } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
11
+ import { u as Je } from "./useEditorValidation-Ctef5Bxt.js";
12
+ import { b as Ae, u as De } from "./provide-BGLSDsuJ.js";
13
+ import { u as Qe } from "./useActionFeedback-CElXij1W.js";
14
+ import { a as co, A as po, _ as go } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-Cb6nO43H.js";
15
+ const We = /* @__PURE__ */ ce({
16
16
  __name: "LocalizedCurrencySymbol",
17
17
  props: {
18
18
  currency: {}
19
19
  },
20
- setup(G) {
21
- const B = G, { n: k } = ce(), F = O(() => {
20
+ setup(M) {
21
+ const B = M, { n: x } = de(), F = O(() => {
22
22
  if (!B.currency) return "";
23
- const u = k(0, {
23
+ const m = x(0, {
24
24
  useGrouping: !1,
25
25
  minimumFractionDigits: 0,
26
26
  maximumFractionDigits: 0
27
27
  });
28
- return k(0, {
28
+ return x(0, {
29
29
  style: "currency",
30
30
  currency: B.currency,
31
31
  currencyDisplay: "narrowSymbol",
32
32
  useGrouping: !1,
33
33
  minimumFractionDigits: 0,
34
34
  maximumFractionDigits: 0
35
- }).replace(u, "").trim() || B.currency;
35
+ }).replace(m, "").trim() || B.currency;
36
36
  });
37
- return (u, o) => P(F.value);
37
+ return (m, o) => V(F.value);
38
38
  }
39
- }), co = { key: 0 }, Fe = /* @__PURE__ */ me({
39
+ }), bo = { key: 0 }, Se = /* @__PURE__ */ ce({
40
40
  __name: "ProductMoneyField",
41
41
  props: {
42
42
  modelValue: {},
@@ -44,93 +44,93 @@ const Je = /* @__PURE__ */ me({
44
44
  commitOnInput: { type: Boolean }
45
45
  },
46
46
  emits: ["update:modelValue"],
47
- setup(G, { expose: B, emit: k }) {
48
- const F = G, u = k, { n: o, locale: D } = ce(), z = se();
47
+ setup(M, { expose: B, emit: x }) {
48
+ const F = M, m = x, { n: o, locale: D } = de(), I = ue();
49
49
  B({
50
50
  inputEl: O(() => {
51
- var m;
52
- return ((m = z.value) == null ? void 0 : m.inputEl) ?? null;
51
+ var c;
52
+ return ((c = I.value) == null ? void 0 : c.inputEl) ?? null;
53
53
  }),
54
54
  focus: () => {
55
- var m, i;
56
- return (i = (m = z.value) == null ? void 0 : m.inputEl) == null ? void 0 : i.focus();
55
+ var c, t;
56
+ return (t = (c = I.value) == null ? void 0 : c.inputEl) == null ? void 0 : t.focus();
57
57
  }
58
58
  });
59
- function h(m) {
60
- return m === null ? "" : o(m, {
59
+ function w(c) {
60
+ return c === null ? "" : o(c, {
61
61
  minimumFractionDigits: 2,
62
62
  maximumFractionDigits: 2,
63
63
  useGrouping: !1
64
64
  });
65
65
  }
66
- function V(m) {
66
+ function z(c) {
67
67
  var b;
68
- if (m.trim() === "") return null;
69
- const i = ((b = new Intl.NumberFormat(D.value).formatToParts(1.5).find((y) => y.type === "decimal")) == null ? void 0 : b.value) ?? ".", p = Number(m.replace(i, "."));
68
+ if (c.trim() === "") return null;
69
+ const t = ((b = new Intl.NumberFormat(D.value).formatToParts(1.5).find((P) => P.type === "decimal")) == null ? void 0 : b.value) ?? ".", p = Number(c.replace(t, "."));
70
70
  return Number.isFinite(p) ? p : void 0;
71
71
  }
72
- function d(m, i) {
73
- return m === null || i === null ? m === i : Math.round(m * 100) === Math.round(i * 100);
72
+ function H(c, t) {
73
+ return c === null || t === null ? c === t : Math.round(c * 100) === Math.round(t * 100);
74
74
  }
75
- const C = O(() => h(F.modelValue)), t = se(C.value), L = se(!1);
76
- Ee(C, (m) => {
77
- const i = V(t.value);
78
- L.value && i !== void 0 && d(i, F.modelValue) || (t.value = m);
75
+ const C = O(() => w(F.modelValue)), u = ue(C.value), Y = ue(!1);
76
+ ze(C, (c) => {
77
+ const t = z(u.value);
78
+ Y.value && t !== void 0 && H(t, F.modelValue) || (u.value = c);
79
79
  });
80
- async function Y() {
81
- var i, p;
82
- const m = V(((p = (i = z.value) == null ? void 0 : i.inputEl) == null ? void 0 : p.value) ?? "");
83
- m !== void 0 && u("update:modelValue", m), await oo(), t.value = C.value;
80
+ async function r() {
81
+ var t, p;
82
+ const c = z(((p = (t = I.value) == null ? void 0 : t.inputEl) == null ? void 0 : p.value) ?? "");
83
+ c !== void 0 && m("update:modelValue", c), await lo(), u.value = C.value;
84
84
  }
85
- function Z(m) {
86
- if (t.value = String(m ?? ""), !F.commitOnInput) return;
87
- const i = V(t.value);
88
- i !== void 0 && u("update:modelValue", i);
85
+ function A(c) {
86
+ if (u.value = String(c ?? ""), !F.commitOnInput) return;
87
+ const t = z(u.value);
88
+ t !== void 0 && m("update:modelValue", t);
89
89
  }
90
- function q(m) {
91
- var i, p;
92
- L.value = m, m ? (p = (i = z.value) == null ? void 0 : i.inputEl) == null || p.select() : Y();
90
+ function Z(c) {
91
+ var t, p;
92
+ Y.value = c, c ? (p = (t = I.value) == null ? void 0 : t.inputEl) == null || p.select() : r();
93
93
  }
94
- function A(m) {
95
- m.key === "Enter" && !m.isComposing && Y();
94
+ function G(c) {
95
+ c.key === "Enter" && !c.isComposing && r();
96
96
  }
97
- return Ee(
97
+ return ze(
98
98
  () => {
99
- var m;
100
- return ((m = z.value) == null ? void 0 : m.inputEl) ?? null;
99
+ var c;
100
+ return ((c = I.value) == null ? void 0 : c.inputEl) ?? null;
101
101
  },
102
- (m, i, p) => {
103
- m && (m.addEventListener("keydown", A), p(() => m.removeEventListener("keydown", A)));
102
+ (c, t, p) => {
103
+ c && (c.addEventListener("keydown", G), p(() => c.removeEventListener("keydown", G)));
104
104
  },
105
105
  { immediate: !0, flush: "post" }
106
- ), (m, i) => (g(), N(ae, {
106
+ ), (c, t) => (g(), N(re, {
107
107
  ref_key: "field",
108
- ref: z,
109
- "model-value": t.value,
108
+ ref: I,
109
+ "model-value": u.value,
110
110
  inputmode: "decimal",
111
- "onUpdate:modelValue": Z,
112
- onFocusChanged: q
113
- }, Ke({
111
+ "onUpdate:modelValue": A,
112
+ onFocusChanged: Z
113
+ }, je({
114
114
  prepend: v(() => [
115
- m.currency ? (g(), S("span", co, [
116
- s(Je, { currency: m.currency }, null, 8, ["currency"])
115
+ c.currency ? (g(), $("span", bo, [
116
+ s(We, { currency: c.currency }, null, 8, ["currency"])
117
117
  ])) : E("", !0)
118
118
  ]),
119
119
  append: v(() => [
120
- Le(m.$slots, "append")
120
+ Be(c.$slots, "append")
121
121
  ]),
122
122
  _: 2
123
123
  }, [
124
- m.$slots["helper-text"] ? {
124
+ c.$slots["helper-text"] ? {
125
125
  name: "helper-text",
126
126
  fn: v(() => [
127
- Le(m.$slots, "helper-text")
127
+ Be(c.$slots, "helper-text")
128
128
  ]),
129
129
  key: "0"
130
130
  } : void 0
131
131
  ]), 1032, ["model-value"]));
132
132
  }
133
- }), Qe = /* @__PURE__ */ me({
133
+ }), Xe = /* @__PURE__ */ ce({
134
134
  __name: "ProductPriceTierButton",
135
135
  props: {
136
136
  configured: { type: Boolean },
@@ -138,11 +138,11 @@ const Je = /* @__PURE__ */ me({
138
138
  disabled: { type: Boolean }
139
139
  },
140
140
  emits: ["open"],
141
- setup(G, { emit: B }) {
142
- const k = B, { t: F } = ce();
143
- return (u, o) => {
144
- const D = x("FmButton"), z = x("FmTooltip");
145
- return g(), N(z, {
141
+ setup(M, { emit: B }) {
142
+ const x = B, { t: F } = de();
143
+ return (m, o) => {
144
+ const D = h("FmButton"), I = h("FmTooltip");
145
+ return g(), N(I, {
146
146
  content: n(F)("menu.price_tier.price_tier_config"),
147
147
  "z-index": 999,
148
148
  placement: "top"
@@ -152,53 +152,53 @@ const Je = /* @__PURE__ */ me({
152
152
  icon: "price_change",
153
153
  variant: "tertiary",
154
154
  "text-color": "neutral-gray-400",
155
- "overwrite-icon-outline": u.configured ? "filled" : "outline",
156
- "aria-label": u.label,
157
- disabled: u.disabled,
158
- onClick: o[0] || (o[0] = (h) => k("open"))
155
+ "overwrite-icon-outline": m.configured ? "filled" : "outline",
156
+ "aria-label": m.label,
157
+ disabled: m.disabled,
158
+ onClick: o[0] || (o[0] = (w) => x("open"))
159
159
  }, null, 8, ["overwrite-icon-outline", "aria-label", "disabled"])
160
160
  ]),
161
161
  _: 1
162
162
  }, 8, ["content"]);
163
163
  };
164
164
  }
165
- }), po = { class: "flex flex-col gap-8 p-8" }, go = { class: "fm-typo-en-body-md-600" }, bo = { class: "flex flex-col gap-4" }, vo = { key: 0 }, Ae = /* @__PURE__ */ me({
165
+ }), vo = { class: "flex flex-col gap-8 p-8" }, _o = { class: "fm-typo-en-body-md-600" }, fo = { class: "flex flex-col gap-4" }, yo = { key: 0 }, Ue = /* @__PURE__ */ ce({
166
166
  __name: "ProductMemberPriceTooltip",
167
167
  props: {
168
168
  prices: {},
169
169
  currency: {}
170
170
  },
171
- setup(G) {
172
- const B = G, { t: k, n: F } = ce(), u = O(
171
+ setup(M) {
172
+ const B = M, { t: x, n: F } = de(), m = O(
173
173
  () => Object.entries(B.prices).flatMap(
174
174
  ([o, D]) => D === null ? [] : [{ name: o, amount: D }]
175
175
  )
176
176
  );
177
177
  return (o, D) => {
178
- const z = x("FmIcon"), h = x("FmTooltip");
179
- return g(), N(h, {
178
+ const I = h("FmIcon"), w = h("FmTooltip");
179
+ return g(), N(w, {
180
180
  variant: "plain",
181
181
  placement: "right",
182
182
  "z-index": 100
183
183
  }, {
184
184
  default: v(() => [
185
- s(z, {
185
+ s(I, {
186
186
  name: "info",
187
187
  outline: ""
188
188
  })
189
189
  ]),
190
190
  content: v(() => [
191
- _("div", po, [
192
- _("p", go, P(n(k)("menu.member_pricing.title")), 1),
193
- _("ul", bo, [
194
- u.value.length === 0 ? (g(), S("li", vo, P(n(k)("menu.member_pricing.tooltip.no_member_price")), 1)) : E("", !0),
195
- (g(!0), S(J, null, ue(u.value, (V) => (g(), S("li", {
196
- key: V.name,
191
+ _("div", vo, [
192
+ _("p", _o, V(n(x)("menu.member_pricing.title")), 1),
193
+ _("ul", fo, [
194
+ m.value.length === 0 ? (g(), $("li", yo, V(n(x)("menu.member_pricing.tooltip.no_member_price")), 1)) : E("", !0),
195
+ (g(!0), $(J, null, me(m.value, (z) => (g(), $("li", {
196
+ key: z.name,
197
197
  class: "fm-typo-en-body-md-400"
198
- }, P(n(k)("menu.common.labels.a11y_labelled_name", {
199
- label: V.name,
198
+ }, V(n(x)("menu.common.labels.a11y_labelled_name", {
199
+ label: z.name,
200
200
  name: n(F)(
201
- V.amount,
201
+ z.amount,
202
202
  o.currency ? { style: "currency", currency: o.currency, minimumFractionDigits: 2 } : { minimumFractionDigits: 2 }
203
203
  )
204
204
  })), 1))), 128))
@@ -209,16 +209,16 @@ const Je = /* @__PURE__ */ me({
209
209
  });
210
210
  };
211
211
  }
212
- }), _o = { class: "fm-typo-en-title-md-600" }, fo = {
212
+ }), wo = { class: "fm-typo-en-title-md-600" }, ho = {
213
213
  key: 0,
214
214
  class: "flex flex-col gap-32"
215
- }, yo = { class: "flex flex-col fm-corner-radius-lg p-16 border border-fm-color-neutral-gray-100 gap-4" }, wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ho = {
215
+ }, xo = { class: "flex flex-col fm-corner-radius-lg p-16 border border-fm-color-neutral-gray-100 gap-4" }, ko = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Fo = {
216
216
  key: 0,
217
217
  class: "fm-typo-en-body-lg-600"
218
- }, xo = { class: "flex flex-col gap-24" }, ko = { class: "fm-typo-en-title-sm-600" }, Fo = { class: "flex flex-col gap-16" }, Co = { class: "flex flex-col gap-4" }, So = { class: "fm-typo-en-body-lg-600" }, $o = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Po = {
218
+ }, Co = { class: "flex flex-col gap-24" }, So = { class: "fm-typo-en-title-sm-600" }, $o = { class: "flex flex-col gap-16" }, Po = { class: "flex flex-col gap-4" }, Oo = { class: "fm-typo-en-body-lg-600" }, Vo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, To = {
219
219
  key: 1,
220
220
  class: "py-16 space-y-32"
221
- }, Oo = { class: "space-y-8" }, Vo = { class: "flex items-center justify-between" }, To = { class: "space-y-8" }, No = { class: "fm-typo-en-body-lg-600" }, Eo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zo = { class: "flex gap-8" }, We = /* @__PURE__ */ me({
221
+ }, No = { class: "space-y-8" }, Eo = { class: "flex items-center justify-between" }, zo = { class: "space-y-8" }, Io = { class: "fm-typo-en-body-lg-600" }, Lo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bo = { class: "flex gap-8" }, eo = /* @__PURE__ */ ce({
222
222
  __name: "ProductPricingSheet",
223
223
  props: {
224
224
  session: {},
@@ -227,60 +227,60 @@ const Je = /* @__PURE__ */ me({
227
227
  mainPricingLabel: { type: Boolean, default: !0 }
228
228
  },
229
229
  emits: ["close", "suggest"],
230
- setup(G, { emit: B }) {
231
- const k = G, F = B, { t: u } = ce(), o = He(), D = De(), z = Be(k.session), h = O(
232
- () => z.value.status === "ready" ? z.value.value : null
233
- ), V = Ze(() => k.session);
234
- function d(i, p) {
235
- var y;
236
- const b = V.issue(((y = h.value) == null ? void 0 : y.fieldIssues) ?? {}, `rows.${i}.amount`) ?? p.issue;
230
+ setup(M, { emit: B }) {
231
+ const x = M, F = B, { t: m } = de(), o = Ze(), D = Ae(), I = De(x.session), w = O(
232
+ () => I.value.status === "ready" ? I.value.value : null
233
+ ), z = Je(() => x.session);
234
+ function H(t, p) {
235
+ var P;
236
+ const b = z.issue(((P = w.value) == null ? void 0 : P.fieldIssues) ?? {}, `rows.${t}.amount`) ?? p.issue;
237
237
  return b ? [D(b)] : [];
238
238
  }
239
- function C(i) {
239
+ function C(t) {
240
240
  var b;
241
- const p = V.issue(
242
- ((b = h.value) == null ? void 0 : b.fieldIssues) ?? {},
243
- `rows.0.members.${i.key}`
244
- ) ?? i.issue;
241
+ const p = z.issue(
242
+ ((b = w.value) == null ? void 0 : b.fieldIssues) ?? {},
243
+ `rows.0.members.${t.key}`
244
+ ) ?? t.issue;
245
245
  return p ? [D(p)] : [];
246
246
  }
247
- const t = ne(null);
248
- function L() {
249
- var i;
250
- (i = t.value) == null || i.dispose(), t.value = null;
247
+ const u = ee(null);
248
+ function Y() {
249
+ var t;
250
+ (t = u.value) == null || t.dispose(), u.value = null;
251
251
  }
252
- function Y(i) {
253
- L(), t.value = k.session.memberEditor(i);
252
+ function r(t) {
253
+ Y(), u.value = x.session.memberEditor(t);
254
254
  }
255
- Re(L);
256
- const Z = O(() => [
255
+ He(Y);
256
+ const A = O(() => [
257
257
  {
258
258
  accessorKey: "key",
259
- header: () => u(
259
+ header: () => m(
260
260
  "menu.product.form.member_price.configure.member_selling_price.table.tier"
261
261
  ),
262
262
  enableSorting: !1
263
263
  },
264
264
  {
265
265
  id: "amount",
266
- header: () => u(
266
+ header: () => m(
267
267
  "menu.product.form.member_price.configure.member_selling_price.table.selling_price"
268
268
  ),
269
269
  enableSorting: !1,
270
- cell: ({ row: i }) => c(
271
- Fe,
270
+ cell: ({ row: t }) => d(
271
+ Se,
272
272
  {
273
- modelValue: i.original.amount,
273
+ modelValue: t.original.amount,
274
274
  commitOnInput: !0,
275
- "aria-label": i.original.key,
276
- errorMessages: C(i.original),
277
- ...V.field(
278
- `rows.0.members.${i.original.key}`,
275
+ "aria-label": t.original.key,
276
+ errorMessages: C(t.original),
277
+ ...z.field(
278
+ `rows.0.members.${t.original.key}`,
279
279
  (p) => {
280
- var b, y;
281
- return k.session.setAmount(
282
- ((y = (b = h.value) == null ? void 0 : b.rows[0]) == null ? void 0 : y.tier) ?? null,
283
- i.original.key,
280
+ var b, P;
281
+ return x.session.setAmount(
282
+ ((P = (b = w.value) == null ? void 0 : b.rows[0]) == null ? void 0 : P.tier) ?? null,
283
+ t.original.key,
284
284
  p
285
285
  );
286
286
  }
@@ -289,61 +289,61 @@ const Je = /* @__PURE__ */ me({
289
289
  {
290
290
  append: () => {
291
291
  var p;
292
- return (p = h.value) != null && p.showSuggestion ? c(Ge, {
292
+ return (p = w.value) != null && p.showSuggestion ? d(Re, {
293
293
  pureStyling: !0,
294
294
  class: "shrink-0 scale-75",
295
- "aria-label": u("menu.product.remy.pricing"),
295
+ "aria-label": m("menu.product.remy.pricing"),
296
296
  onClick: () => F("suggest")
297
297
  }) : null;
298
298
  }
299
299
  }
300
300
  )
301
301
  }
302
- ]), q = O(() => [
302
+ ]), Z = O(() => [
303
303
  {
304
304
  accessorKey: "tier",
305
- header: () => u("menu.price_tier.form.table.columns.name"),
305
+ header: () => m("menu.price_tier.form.table.columns.name"),
306
306
  enableSorting: !1
307
307
  },
308
308
  {
309
309
  id: "amount",
310
- header: () => u("menu.price_tier.form.table.columns.price"),
310
+ header: () => m("menu.price_tier.form.table.columns.price"),
311
311
  enableSorting: !1,
312
- cell: ({ row: i }) => c(Fe, {
313
- modelValue: i.original.amount,
312
+ cell: ({ row: t }) => d(Se, {
313
+ modelValue: t.original.amount,
314
314
  commitOnInput: !0,
315
315
  // Every tier row rendered this field under one name, so a step naming
316
316
  // a particular tier's price had nothing to distinguish the rows by.
317
317
  // Qualify it with the tier, as the frozen baselines name it
318
318
  // ("Default selling price: DISC TIER CLEAR").
319
- "aria-label": i.original.tier ? u("menu.common.labels.a11y_labelled_name", {
320
- label: u(
319
+ "aria-label": t.original.tier ? m("menu.common.labels.a11y_labelled_name", {
320
+ label: m(
321
321
  "menu.product.form.member_price.configure.default_selling_price"
322
322
  ),
323
- name: i.original.tier
324
- }) : u(
323
+ name: t.original.tier
324
+ }) : m(
325
325
  "menu.product.form.member_price.configure.default_selling_price"
326
326
  ),
327
- errorMessages: d(i.index, i.original),
328
- ...V.field(
329
- `rows.${i.index}.amount`,
330
- (p) => k.session.setAmount(i.original.tier, null, p)
327
+ errorMessages: H(t.index, t.original),
328
+ ...z.field(
329
+ `rows.${t.index}.amount`,
330
+ (p) => x.session.setAmount(t.original.tier, null, p)
331
331
  )
332
332
  })
333
333
  },
334
334
  {
335
335
  id: "members",
336
- header: () => u("menu.price_tier.form.table.columns.member_price"),
336
+ header: () => m("menu.price_tier.form.table.columns.member_price"),
337
337
  enableSorting: !1,
338
- cell: ({ row: i }) => {
339
- var y;
340
- const p = i.original.members.filter(
338
+ cell: ({ row: t }) => {
339
+ var P;
340
+ const p = t.original.members.filter(
341
341
  (K) => K.amount !== null
342
- ).length, b = p ? u("menu.product.form.member_price.configure.title_with_tier", {
342
+ ).length, b = p ? m("menu.product.form.member_price.configure.title_with_tier", {
343
343
  num: p
344
- }) : u("menu.product.form.member_price.configure.title");
345
- return c("div", { class: "flex items-center justify-between" }, [
346
- c(
344
+ }) : m("menu.product.form.member_price.configure.title");
345
+ return d("div", { class: "flex items-center justify-between" }, [
346
+ d(
347
347
  T.FmButton,
348
348
  {
349
349
  variant: "plain",
@@ -352,178 +352,178 @@ const Je = /* @__PURE__ */ me({
352
352
  // the product form's row-level "Member price" action while
353
353
  // qualifying the tier, so both independently reachable surfaces
354
354
  // stay semantic.
355
- "aria-label": p ? b : i.original.tier ? u("menu.common.labels.a11y_labelled_name", {
356
- label: u(
355
+ "aria-label": p ? b : t.original.tier ? m("menu.common.labels.a11y_labelled_name", {
356
+ label: m(
357
357
  "menu.product.form.member_price.configure.title"
358
358
  ),
359
- name: i.original.tier
359
+ name: t.original.tier
360
360
  }) : void 0,
361
- onClick: () => i.original.tier && Y(i.original.tier)
361
+ onClick: () => t.original.tier && r(t.original.tier)
362
362
  },
363
363
  {
364
- default: () => c(
364
+ default: () => d(
365
365
  "span",
366
366
  { class: "underline line-clamp-2 break-all" },
367
367
  b
368
368
  )
369
369
  }
370
370
  ),
371
- c(Ae, {
371
+ d(Ue, {
372
372
  prices: Object.fromEntries(
373
- i.original.members.map((K) => [K.key, K.amount])
373
+ t.original.members.map((K) => [K.key, K.amount])
374
374
  ),
375
- currency: (y = h.value) == null ? void 0 : y.currency
375
+ currency: (P = w.value) == null ? void 0 : P.currency
376
376
  })
377
377
  ]);
378
378
  }
379
379
  }
380
380
  ]);
381
- function A() {
381
+ function G() {
382
382
  var p;
383
- if (k.session.apply()) {
383
+ if (x.session.apply()) {
384
384
  F("close");
385
385
  return;
386
386
  }
387
- const i = Object.entries(((p = h.value) == null ? void 0 : p.fieldIssues) ?? {}).flatMap(
388
- ([b, y]) => (y ?? []).map((K) => ({ ...K, field: b }))
387
+ const t = Object.entries(((p = w.value) == null ? void 0 : p.fieldIssues) ?? {}).flatMap(
388
+ ([b, P]) => (P ?? []).map((K) => ({ ...K, field: b }))
389
389
  );
390
- V.submit(async () => ({ kind: "rejected", issues: i }));
390
+ z.submit(async () => ({ kind: "rejected", issues: t }));
391
391
  }
392
- function m() {
393
- k.onCreatePriceGroup && o.open({
392
+ function c() {
393
+ x.onCreatePriceGroup && o.open({
394
394
  zIndex: 200,
395
- title: u("menu.price_tier.add_price_group"),
396
- contentComponent: ro,
395
+ title: m("menu.price_tier.add_price_group"),
396
+ contentComponent: mo,
397
397
  primaryActions: {
398
- text: u("menu.category.manager.dialog.add.action"),
398
+ text: m("menu.category.manager.dialog.add.action"),
399
399
  close: !1
400
400
  },
401
401
  secondaryActions: {
402
- text: u("menu.common.actions.cancel"),
402
+ text: m("menu.common.actions.cancel"),
403
403
  close: !0
404
404
  }
405
- }).onPrimary(async (i) => {
406
- const p = String(i ?? "");
407
- await k.onCreatePriceGroup(p) && (k.session.addTier(p), o.close());
405
+ }).onPrimary(async (t) => {
406
+ const p = String(t ?? "");
407
+ await x.onCreatePriceGroup(p) && (x.session.addTier(p), o.close());
408
408
  });
409
409
  }
410
- return (i, p) => {
411
- var ie;
412
- const b = x("FmTable"), y = x("FmButton"), K = x("FmSideSheet"), de = x("ProductPricingSheet", !0);
413
- return g(), S(J, null, [
410
+ return (t, p) => {
411
+ var pe;
412
+ const b = h("FmTable"), P = h("FmButton"), K = h("FmSideSheet"), R = h("ProductPricingSheet", !0);
413
+ return g(), $(J, null, [
414
414
  s(K, {
415
415
  "model-value": !0,
416
- "z-index": k.zIndex ?? 300,
417
- "max-width": ((ie = h.value) == null ? void 0 : ie.mode) === "members" ? 720 : 560,
416
+ "z-index": x.zIndex ?? 300,
417
+ "max-width": ((pe = w.value) == null ? void 0 : pe.mode) === "members" ? 720 : 560,
418
418
  "is-container": n(T).FmForm,
419
419
  "is-container-props": {
420
- onValidationSuccess: A,
420
+ onValidationSuccess: G,
421
421
  blameFormChildOnValidationFailed: !0
422
422
  },
423
- "onUpdate:modelValue": p[2] || (p[2] = (I) => !I && F("close"))
423
+ "onUpdate:modelValue": p[2] || (p[2] = (U) => !U && F("close"))
424
424
  }, {
425
425
  "side-sheet-header": v(() => {
426
- var I;
426
+ var U;
427
427
  return [
428
- _("p", _o, P(n(u)(
429
- ((I = h.value) == null ? void 0 : I.mode) === "tiers" ? "menu.price_tier.price_tier_config" : "menu.product.form.member_price.configure.title"
428
+ _("p", wo, V(n(m)(
429
+ ((U = w.value) == null ? void 0 : U.mode) === "tiers" ? "menu.price_tier.price_tier_config" : "menu.product.form.member_price.configure.title"
430
430
  )), 1)
431
431
  ];
432
432
  }),
433
433
  "side-sheet-footer": v(() => {
434
- var I, R, M;
434
+ var U, Q, L;
435
435
  return [
436
- _("div", zo, [
437
- s(y, {
438
- label: ((I = h.value) == null ? void 0 : I.mode) === "tiers" ? n(u)("menu.common.actions.update") : n(u)("menu.common.actions.apply"),
439
- "aria-label": ((R = h.value) == null ? void 0 : R.mode) === "tiers" ? n(u)("menu.price_tier.action.update") : void 0,
436
+ _("div", Bo, [
437
+ s(P, {
438
+ label: ((U = w.value) == null ? void 0 : U.mode) === "tiers" ? n(m)("menu.common.actions.update") : n(m)("menu.common.actions.apply"),
439
+ "aria-label": ((Q = w.value) == null ? void 0 : Q.mode) === "tiers" ? n(m)("menu.price_tier.action.update") : void 0,
440
440
  variant: "primary",
441
441
  size: "lg",
442
442
  type: "button",
443
- onClick: A
443
+ onClick: G
444
444
  }, null, 8, ["label", "aria-label"]),
445
- s(y, {
446
- label: n(u)("menu.common.actions.cancel"),
447
- "aria-label": ((M = h.value) == null ? void 0 : M.mode) === "tiers" ? n(u)("menu.price_tier.action.cancel") : n(u)("menu.product.form.member_price.configure.cancel"),
445
+ s(P, {
446
+ label: n(m)("menu.common.actions.cancel"),
447
+ "aria-label": ((L = w.value) == null ? void 0 : L.mode) === "tiers" ? n(m)("menu.price_tier.action.cancel") : n(m)("menu.product.form.member_price.configure.cancel"),
448
448
  variant: "tertiary",
449
449
  size: "lg",
450
- onClick: p[1] || (p[1] = (Q) => F("close"))
450
+ onClick: p[1] || (p[1] = (q) => F("close"))
451
451
  }, null, 8, ["label", "aria-label"])
452
452
  ])
453
453
  ];
454
454
  }),
455
455
  default: v(() => {
456
- var I, R;
456
+ var U, Q;
457
457
  return [
458
- ((I = h.value) == null ? void 0 : I.mode) === "members" ? (g(), S("div", fo, [
459
- _("div", yo, [
460
- _("p", wo, P(n(u)("menu.product.form.member_price.configure.current_configuration")), 1),
461
- h.value.configurationName || i.mainPricingLabel ? (g(), S("p", ho, P(h.value.configurationName ?? n(u)("menu.product.form.member_price.configure.main_pricing")), 1)) : E("", !0)
462
- ]),
458
+ ((U = w.value) == null ? void 0 : U.mode) === "members" ? (g(), $("div", ho, [
463
459
  _("div", xo, [
464
- _("p", ko, P(n(u)("menu.product.form.member_price.configure.pricing_grid")), 1),
465
- (g(!0), S(J, null, ue(h.value.rows, (M, Q) => (g(), N(Fe, Te(
460
+ _("p", ko, V(n(m)("menu.product.form.member_price.configure.current_configuration")), 1),
461
+ w.value.configurationName || t.mainPricingLabel ? (g(), $("p", Fo, V(w.value.configurationName ?? n(m)("menu.product.form.member_price.configure.main_pricing")), 1)) : E("", !0)
462
+ ]),
463
+ _("div", Co, [
464
+ _("p", So, V(n(m)("menu.product.form.member_price.configure.pricing_grid")), 1),
465
+ (g(!0), $(J, null, me(w.value.rows, (L, q) => (g(), N(Se, Ne(
466
466
  {
467
- key: M.tier ?? "base",
467
+ key: L.tier ?? "base",
468
468
  class: "w-[258px] xs:w-full",
469
- label: n(u)("menu.product.form.member_price.configure.default_selling_price"),
470
- "model-value": M.amount,
469
+ label: n(m)("menu.product.form.member_price.configure.default_selling_price"),
470
+ "model-value": L.amount,
471
471
  "commit-on-input": "",
472
- currency: h.value.currency,
473
- "error-messages": d(Q, M)
472
+ currency: w.value.currency,
473
+ "error-messages": H(q, L)
474
474
  },
475
475
  { ref_for: !0 },
476
- n(V).field(
477
- `rows.${Q}.amount`,
478
- (W) => i.session.setAmount(M.tier, null, W)
476
+ n(z).field(
477
+ `rows.${q}.amount`,
478
+ (W) => t.session.setAmount(L.tier, null, W)
479
479
  )
480
480
  ), {
481
481
  append: v(() => [
482
- h.value.showSuggestion ? (g(), N(n(Ge), {
482
+ w.value.showSuggestion ? (g(), N(n(Re), {
483
483
  key: 0,
484
484
  "pure-styling": "",
485
485
  class: "shrink-0 scale-75",
486
- "aria-label": n(u)("menu.product.remy.pricing"),
486
+ "aria-label": n(m)("menu.product.remy.pricing"),
487
487
  onClick: p[0] || (p[0] = (W) => F("suggest"))
488
488
  }, null, 8, ["aria-label"])) : E("", !0)
489
489
  ]),
490
490
  _: 2
491
491
  }, 1040, ["label", "model-value", "currency", "error-messages"]))), 128))
492
492
  ]),
493
- _("div", Fo, [
494
- _("div", Co, [
495
- _("p", So, P(n(u)(
493
+ _("div", $o, [
494
+ _("div", Po, [
495
+ _("p", Oo, V(n(m)(
496
496
  "menu.product.form.member_price.configure.member_selling_price.label"
497
497
  )), 1),
498
- _("p", $o, P(n(u)(
498
+ _("p", Vo, V(n(m)(
499
499
  "menu.product.form.member_price.configure.member_selling_price.sublabel"
500
500
  )), 1)
501
501
  ]),
502
502
  s(b, {
503
- "column-defs": Z.value,
504
- "row-data": [...((R = h.value.rows[0]) == null ? void 0 : R.members) ?? []],
503
+ "column-defs": A.value,
504
+ "row-data": [...((Q = w.value.rows[0]) == null ? void 0 : Q.members) ?? []],
505
505
  "hide-footer": ""
506
506
  }, null, 8, ["column-defs", "row-data"])
507
507
  ])
508
- ])) : h.value ? (g(), S("div", Po, [
509
- _("div", Oo, [
510
- _("div", Vo, [
511
- _("div", To, [
512
- _("p", No, P(n(u)("menu.price_tier.price_group")), 1),
513
- _("p", Eo, P(n(u)("menu.price_tier.description")), 1)
508
+ ])) : w.value ? (g(), $("div", To, [
509
+ _("div", No, [
510
+ _("div", Eo, [
511
+ _("div", zo, [
512
+ _("p", Io, V(n(m)("menu.price_tier.price_group")), 1),
513
+ _("p", Lo, V(n(m)("menu.price_tier.description")), 1)
514
514
  ]),
515
- k.onCreatePriceGroup ? (g(), N(y, {
515
+ x.onCreatePriceGroup ? (g(), N(P, {
516
516
  key: 0,
517
517
  class: "min-w-fit",
518
- label: n(u)("menu.price_tier.add_price_group"),
518
+ label: n(m)("menu.price_tier.add_price_group"),
519
519
  icon: "add",
520
520
  variant: "secondary",
521
- onClick: m
521
+ onClick: c
522
522
  }, null, 8, ["label"])) : E("", !0)
523
523
  ]),
524
524
  s(b, {
525
- "column-defs": q.value,
526
- "row-data": [...h.value.rows],
525
+ "column-defs": Z.value,
526
+ "row-data": [...w.value.rows],
527
527
  "hide-footer": ""
528
528
  }, null, 8, ["column-defs", "row-data"])
529
529
  ])
@@ -532,33 +532,33 @@ const Je = /* @__PURE__ */ me({
532
532
  }),
533
533
  _: 1
534
534
  }, 8, ["z-index", "max-width", "is-container", "is-container-props"]),
535
- t.value ? (g(), N(de, {
535
+ u.value ? (g(), N(R, {
536
536
  key: 0,
537
- session: t.value,
538
- "z-index": (k.zIndex ?? 300) + 100,
539
- "main-pricing-label": i.mainPricingLabel,
540
- onClose: L
537
+ session: u.value,
538
+ "z-index": (x.zIndex ?? 300) + 100,
539
+ "main-pricing-label": t.mainPricingLabel,
540
+ onClose: Y
541
541
  }, null, 8, ["session", "z-index", "main-pricing-label"])) : E("", !0)
542
542
  ], 64);
543
543
  };
544
544
  }
545
- }), Io = {}, Lo = { class: "flex gap-16" };
546
- function Bo(G, B) {
547
- return g(), S("div", Lo, [
548
- Le(G.$slots, "default")
545
+ }), Do = {}, Ao = { class: "flex gap-16" };
546
+ function Uo(M, B) {
547
+ return g(), $("div", Ao, [
548
+ Be(M.$slots, "default")
549
549
  ]);
550
550
  }
551
- const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
551
+ const oo = /* @__PURE__ */ uo(Do, [["render", Uo]]), Mo = {
552
552
  key: 0,
553
553
  class: "group-list-nested-sheet-marker sr-only",
554
554
  "aria-hidden": "true"
555
- }, Ao = { class: "mr-auto fm-typo-en-title-md-600" }, Uo = { class: "space-y-24 pt-16" }, Mo = { class: "rounded-md border border-fm-color-neutral-gray-200 px-16 py-12" }, Go = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ko = { class: "fm-typo-en-title-sm-600" }, Ro = { class: "space-y-16" }, jo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ho = {
555
+ }, Go = { class: "mr-auto fm-typo-en-title-md-600" }, Ko = { class: "space-y-24 pt-16" }, Ro = { class: "rounded-md border border-fm-color-neutral-gray-200 px-16 py-12" }, jo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ho = { class: "fm-typo-en-title-sm-600" }, Yo = { class: "space-y-16" }, Zo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, qo = {
556
556
  key: 0,
557
557
  class: "nested-group-editor-sheet-marker sr-only"
558
- }, Yo = { class: "fm-typo-en-title-md-600" }, Zo = { class: "pt-8 space-y-32" }, qo = { class: "space-y-16" }, Jo = {
558
+ }, Jo = { class: "fm-typo-en-title-md-600" }, Qo = { class: "pt-8 space-y-32" }, Wo = { class: "space-y-16" }, Xo = {
559
559
  key: 0,
560
560
  class: "nested-group-hidden-notice flex gap-8 rounded-md bg-fm-color-system-warning-100 p-12"
561
- }, Qo = { class: "space-y-4" }, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, Xo = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, en = { class: "xs:overflow-x-scroll" }, on = { class: "xs:min-w-[640px]" }, nn = { class: "flex gap-8" }, ln = /* @__PURE__ */ me({
561
+ }, en = { class: "space-y-4" }, on = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, nn = { class: "fm-typo-en-body-md-400 text-fm-color-system-warning-400" }, ln = { class: "xs:overflow-x-scroll" }, tn = { class: "xs:min-w-[640px]" }, an = { class: "flex gap-8" }, rn = /* @__PURE__ */ ce({
562
562
  __name: "NestedGroupOverrideSheets",
563
563
  props: {
564
564
  sdk: {},
@@ -566,13 +566,13 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
566
566
  currencyCode: {}
567
567
  },
568
568
  emits: ["close"],
569
- setup(G, { emit: B }) {
570
- const k = je(
571
- () => import("./ProductInventoryDialog-D0d5RywR.js")
572
- ), F = G, u = B, { t: o, n: D } = ce(), z = De(), { run: h } = qe();
573
- function V(l) {
569
+ setup(M, { emit: B }) {
570
+ const x = Ye(
571
+ () => import("./ProductInventoryDialog-EDlrXupB.js")
572
+ ), F = M, m = B, { t: o, n: D } = de(), I = Ae(), { run: w } = Qe();
573
+ function z(l) {
574
574
  if (!l) return "";
575
- const r = D(0, {
575
+ const i = D(0, {
576
576
  useGrouping: !1,
577
577
  minimumFractionDigits: 0,
578
578
  maximumFractionDigits: 0
@@ -584,21 +584,21 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
584
584
  useGrouping: !1,
585
585
  minimumFractionDigits: 0,
586
586
  maximumFractionDigits: 0
587
- }).replace(r, "").trim() || l;
587
+ }).replace(i, "").trim() || l;
588
588
  }
589
- const d = ne({
589
+ const H = ee({
590
590
  status: "loading"
591
- }), C = ne(null), t = ne({
591
+ }), C = ee(null), u = ee({
592
592
  status: "loading"
593
- }), L = O(() => F.session !== null), Y = O(() => C.value !== null);
594
- let Z = () => {
595
- }, q = () => {
593
+ }), Y = O(() => F.session !== null), r = O(() => C.value !== null);
594
+ let A = () => {
595
+ }, Z = () => {
596
596
  };
597
- const A = ne(null), m = ne(null), i = ne(""), p = O(
598
- () => d.value.status === "ready" ? d.value.value : null
597
+ const G = ee(null), c = ee(null), t = ee(""), p = O(
598
+ () => H.value.status === "ready" ? H.value.value : null
599
599
  ), b = O(
600
- () => t.value.status === "ready" ? t.value.value : null
601
- ), y = O(() => {
600
+ () => u.value.status === "ready" ? u.value.value : null
601
+ ), P = O(() => {
602
602
  var l;
603
603
  return [
604
604
  ...((l = b.value) == null ? void 0 : l.options) ?? []
@@ -608,7 +608,7 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
608
608
  return [
609
609
  ...((l = p.value) == null ? void 0 : l.groups) ?? []
610
610
  ];
611
- }), de = O(() => [
611
+ }), R = O(() => [
612
612
  {
613
613
  accessorKey: "name",
614
614
  header: () => o("menu.group.list.columns.name"),
@@ -619,7 +619,7 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
619
619
  header: () => o("menu.group.list.columns.products"),
620
620
  enableSorting: !1,
621
621
  size: 200,
622
- cell: (l) => c(
622
+ cell: (l) => d(
623
623
  "div",
624
624
  { class: "line-clamp-2 break-all" },
625
625
  l.row.original.products.join(", ")
@@ -630,8 +630,8 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
630
630
  header: "",
631
631
  size: 52,
632
632
  enableSorting: !1,
633
- cell: (l) => c("div", { class: "flex justify-end" }, [
634
- c(T.FmButton, {
633
+ cell: (l) => d("div", { class: "flex justify-end" }, [
634
+ d(T.FmButton, {
635
635
  "aria-label": o("menu.group.a11y.row", {
636
636
  label: o("menu.common.actions.edit"),
637
637
  index: l.row.index + 1
@@ -639,26 +639,26 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
639
639
  prependIcon: "edit",
640
640
  textColor: "neutral-gray-400",
641
641
  variant: "tertiary",
642
- onClick: () => _e(l.row.original.id)
642
+ onClick: () => fe(l.row.original.id)
643
643
  })
644
644
  ])
645
645
  }
646
646
  ]);
647
- function ie(l, r) {
647
+ function pe(l, i) {
648
648
  return l === null ? "" : D(l, {
649
649
  style: "currency",
650
- currency: r,
650
+ currency: i,
651
651
  currencyDisplay: "narrowSymbol"
652
652
  }).replaceAll(/\s/g, "");
653
653
  }
654
- const I = O(
654
+ const U = O(
655
655
  () => [
656
656
  {
657
657
  id: "default",
658
658
  size: 35,
659
659
  header: () => o("menu.group.option.is_default"),
660
660
  enableSorting: !1,
661
- cell: (l) => c(T.FmCheckbox, {
661
+ cell: (l) => d(T.FmCheckbox, {
662
662
  "aria-label": o("menu.group.a11y.row", {
663
663
  label: o("menu.group.option.is_default"),
664
664
  index: l.row.index + 1
@@ -666,11 +666,11 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
666
666
  disabled: l.row.original.orderFrom === "NONE",
667
667
  modelValue: l.row.original.isDefault,
668
668
  value: l.row.original.id,
669
- "onUpdate:modelValue": (r) => {
670
- var $;
671
- return ($ = C.value) == null ? void 0 : $.setOptionDefault(
669
+ "onUpdate:modelValue": (i) => {
670
+ var k;
671
+ return (k = C.value) == null ? void 0 : k.setOptionDefault(
672
672
  l.row.original.id,
673
- r,
673
+ i,
674
674
  l.row.original.target
675
675
  );
676
676
  }
@@ -684,11 +684,11 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
684
684
  },
685
685
  {
686
686
  id: "title",
687
- header: () => c("div", { class: "flex items-center w-full gap-8" }, [
688
- c("span", o("menu.group.option.product_title")),
687
+ header: () => d("div", { class: "flex items-center w-full gap-8" }, [
688
+ d("span", o("menu.group.option.product_title")),
689
689
  // `groupConfig().name` is off for an override, which disables the
690
690
  // option translation trigger rather than removing it.
691
- c(T.FmButton, {
691
+ d(T.FmButton, {
692
692
  disabled: !0,
693
693
  icon: "g_translate",
694
694
  textColor: "neutral-gray-400",
@@ -696,9 +696,9 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
696
696
  })
697
697
  ]),
698
698
  enableSorting: !1,
699
- cell: (l) => c(
699
+ cell: (l) => d(
700
700
  "div",
701
- c(ae, {
701
+ d(re, {
702
702
  "aria-label": o("menu.group.a11y.row", {
703
703
  label: o("menu.group.option.product_title"),
704
704
  index: l.row.index + 1
@@ -713,40 +713,40 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
713
713
  id: "price",
714
714
  size: 400,
715
715
  header: () => o("menu.group.option.price", {
716
- symbol: V(F.currencyCode)
716
+ symbol: z(F.currencyCode)
717
717
  }),
718
718
  enableSorting: !1,
719
719
  cell: (l) => {
720
- const r = l.row.original;
721
- return c("div", { class: "flex items-center gap-8" }, [
722
- c(Fe, {
720
+ const i = l.row.original;
721
+ return d("div", { class: "flex items-center gap-8" }, [
722
+ d(Se, {
723
723
  class: "min-w-[88px]",
724
724
  commitOnInput: !0,
725
- disabled: r.orderFrom === "NONE",
725
+ disabled: i.orderFrom === "NONE",
726
726
  inputmode: "decimal",
727
727
  "aria-label": o("menu.group.a11y.row", {
728
728
  label: o("menu.group.option.price", {
729
- symbol: V(r.currency)
729
+ symbol: z(i.currency)
730
730
  }),
731
731
  index: l.row.index + 1
732
732
  }),
733
- modelValue: r.priceAmount,
734
- placeholder: ie(
735
- r.inheritedPriceAmount,
736
- r.currency
733
+ modelValue: i.priceAmount,
734
+ placeholder: pe(
735
+ i.inheritedPriceAmount,
736
+ i.currency
737
737
  ),
738
- "onUpdate:modelValue": ($) => {
739
- var ee;
740
- return (ee = C.value) == null ? void 0 : ee.setOptionPrice(
741
- r.id,
742
- $,
743
- r.target
738
+ "onUpdate:modelValue": (k) => {
739
+ var ne;
740
+ return (ne = C.value) == null ? void 0 : ne.setOptionPrice(
741
+ i.id,
742
+ k,
743
+ i.target
744
744
  );
745
745
  }
746
746
  }),
747
- ...r.editPricing.state === "hidden" ? [] : [
748
- c("div", { class: "flex items-center gap-4" }, [
749
- c(
747
+ ...i.editPricing.state === "hidden" ? [] : [
748
+ d("div", { class: "flex items-center gap-4" }, [
749
+ d(
750
750
  T.FmButton,
751
751
  {
752
752
  variant: "plain",
@@ -759,23 +759,23 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
759
759
  ),
760
760
  index: l.row.index + 1
761
761
  }),
762
- disabled: r.editPricing.state !== "allowed",
763
- onClick: () => be(r, "members")
762
+ disabled: i.editPricing.state !== "allowed",
763
+ onClick: () => se(i, "members")
764
764
  },
765
765
  {
766
- default: () => c(
766
+ default: () => d(
767
767
  "span",
768
768
  { class: "underline line-clamp-2 break-all" },
769
- r.memberPriceCount ? o(
769
+ i.memberPriceCount ? o(
770
770
  "menu.product.form.member_price.configure.title_with_tier",
771
- { num: r.memberPriceCount }
771
+ { num: i.memberPriceCount }
772
772
  ) : o(
773
773
  "menu.product.form.member_price.configure.title"
774
774
  )
775
775
  )
776
776
  }
777
777
  ),
778
- c(Ae, { prices: r.memberPrices })
778
+ d(Ue, { prices: i.memberPrices })
779
779
  ])
780
780
  ]
781
781
  ]);
@@ -786,22 +786,22 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
786
786
  size: 100,
787
787
  header: () => o("menu.common.labels.order_from"),
788
788
  enableSorting: !1,
789
- cell: (l) => c(T.FmSelect, {
789
+ cell: (l) => d(T.FmSelect, {
790
790
  "aria-label": o("menu.group.a11y.row", {
791
791
  label: o("menu.common.labels.order_from"),
792
792
  index: l.row.index + 1
793
793
  }),
794
- items: R.value,
794
+ items: Q.value,
795
795
  // FmSelect teleports its menu below this z-index-200 sheet unless
796
796
  // it is pinned one above it (as ProductGroupSheet does).
797
797
  menuZIndex: 201,
798
798
  modelValue: l.row.original.orderFrom,
799
799
  shiftMenu: !0,
800
- "onUpdate:modelValue": (r) => {
801
- var $;
802
- r && (($ = C.value) == null || $.setOptionOrderFrom(
800
+ "onUpdate:modelValue": (i) => {
801
+ var k;
802
+ i && ((k = C.value) == null || k.setOptionOrderFrom(
803
803
  l.row.original.id,
804
- r,
804
+ i,
805
805
  l.row.original.target
806
806
  ));
807
807
  }
@@ -814,34 +814,34 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
814
814
  enableSorting: !1,
815
815
  meta: { cellClass: "" },
816
816
  cell: (l) => {
817
- const r = l.row.original;
818
- return c("div", { class: "flex items-center justify-end" }, [
819
- ...r.editPricing.state === "hidden" ? [] : [
820
- c(Qe, {
821
- configured: r.hasPriceTiers,
822
- disabled: r.editPricing.state !== "allowed",
817
+ const i = l.row.original;
818
+ return d("div", { class: "flex items-center justify-end" }, [
819
+ ...i.editPricing.state === "hidden" ? [] : [
820
+ d(Xe, {
821
+ configured: i.hasPriceTiers,
822
+ disabled: i.editPricing.state !== "allowed",
823
823
  label: o("menu.group.a11y.row", {
824
824
  label: o("menu.price_tier.price_tier_config"),
825
825
  index: l.row.index + 1
826
826
  }),
827
- onOpen: () => be(r, "tiers")
827
+ onOpen: () => se(i, "tiers")
828
828
  })
829
829
  ],
830
- c(T.FmButton, {
830
+ d(T.FmButton, {
831
831
  "aria-label": o("menu.group.a11y.row", {
832
832
  label: o("menu.inventory.title"),
833
833
  index: l.row.index + 1
834
834
  }),
835
- disabled: r.orderFrom === "NONE",
835
+ disabled: i.orderFrom === "NONE",
836
836
  icon: "inventory_2",
837
- overwriteIconOutline: r.inventory.bindings.length ? "filled" : "outline",
837
+ overwriteIconOutline: i.inventory.bindings.length ? "filled" : "outline",
838
838
  textColor: "neutral-gray-400",
839
839
  variant: "tertiary",
840
- onClick: () => ze(r)
840
+ onClick: () => ve(i)
841
841
  }),
842
842
  // A deeper nesting level is outside the approved nested-override
843
843
  // scope, so the trigger stays in legacy's disabled state.
844
- c(T.FmButton, {
844
+ d(T.FmButton, {
845
845
  "aria-label": o("menu.group.a11y.row", {
846
846
  label: o("menu.group.nested.title"),
847
847
  index: l.row.index + 1
@@ -855,125 +855,125 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
855
855
  }
856
856
  }
857
857
  ]
858
- ), R = O(() => [
858
+ ), Q = O(() => [
859
859
  { label: o("menu.order.from.options.all"), value: "ALL" },
860
860
  { label: o("menu.order.from.options.pos_only"), value: "POS_ONLY" },
861
861
  { label: o("menu.order.from.options.none"), value: "NONE" }
862
862
  ]);
863
- function M() {
863
+ function L() {
864
864
  var l;
865
- (l = A.value) == null || l.dispose(), A.value = null;
865
+ (l = G.value) == null || l.dispose(), G.value = null;
866
866
  }
867
- async function Q(l) {
868
- return (await h(() => F.sdk.priceTier.create(l), {
867
+ async function q(l) {
868
+ return (await w(() => F.sdk.priceTier.create(l), {
869
869
  successMessage: o("menu.price_tier.add_price_group_success")
870
870
  })).kind === "success";
871
871
  }
872
872
  function W() {
873
873
  var l;
874
- (l = m.value) == null || l.dispose(), m.value = null, i.value = "";
874
+ (l = c.value) == null || l.dispose(), c.value = null, t.value = "";
875
875
  }
876
- function be(l, r) {
877
- var $;
878
- M(), A.value = (($ = C.value) == null ? void 0 : $.pricingEditor(
876
+ function se(l, i) {
877
+ var k;
878
+ L(), G.value = ((k = C.value) == null ? void 0 : k.pricingEditor(
879
879
  l.id,
880
- r,
880
+ i,
881
881
  l.target
882
882
  )) ?? null;
883
883
  }
884
- function ze(l) {
885
- var r;
886
- W(), i.value = l.name, m.value = ((r = C.value) == null ? void 0 : r.inventoryEditor(l.id, l.target)) ?? null;
884
+ function ve(l) {
885
+ var i;
886
+ W(), t.value = l.name, c.value = ((i = C.value) == null ? void 0 : i.inventoryEditor(l.id, l.target)) ?? null;
887
887
  }
888
- function X() {
889
- var l, r;
890
- M(), W(), q(), q = () => {
891
- }, (l = C.value) == null || l.discard(), (r = C.value) == null || r.dispose(), C.value = null;
888
+ function oe() {
889
+ var l, i;
890
+ L(), W(), Z(), Z = () => {
891
+ }, (l = C.value) == null || l.discard(), (i = C.value) == null || i.dispose(), C.value = null;
892
892
  }
893
- function ve() {
894
- X(), u("close");
893
+ function _e() {
894
+ oe(), m("close");
895
895
  }
896
- function _e(l) {
897
- var $;
898
- X();
899
- const r = ($ = F.session) == null ? void 0 : $.editor(l);
900
- r && (C.value = r, t.value = r.get(), q = r.subscribe(
901
- (ee) => t.value = ee
896
+ function fe(l) {
897
+ var k;
898
+ oe();
899
+ const i = (k = F.session) == null ? void 0 : k.editor(l);
900
+ i && (C.value = i, u.value = i.get(), Z = i.subscribe(
901
+ (ne) => u.value = ne
902
902
  ));
903
903
  }
904
904
  function Ie() {
905
- var r;
906
- const l = (r = C.value) == null ? void 0 : r.submit();
907
- (l == null ? void 0 : l.kind) === "success" && fe();
905
+ var i;
906
+ const l = (i = C.value) == null ? void 0 : i.submit();
907
+ (l == null ? void 0 : l.kind) === "success" && ye();
908
908
  }
909
- function fe() {
909
+ function ye() {
910
910
  var l;
911
- q(), q = () => {
911
+ Z(), Z = () => {
912
912
  }, (l = C.value) == null || l.dispose(), C.value = null;
913
913
  }
914
- return Ee(
914
+ return ze(
915
915
  () => F.session,
916
916
  (l) => {
917
- X(), Z(), Z = () => {
918
- }, l && (d.value = l.get(), Z = l.subscribe(
919
- (r) => d.value = r
917
+ oe(), A(), A = () => {
918
+ }, l && (H.value = l.get(), A = l.subscribe(
919
+ (i) => H.value = i
920
920
  ));
921
921
  },
922
922
  { immediate: !0 }
923
- ), no(() => {
924
- X(), Z();
925
- }), (l, r) => {
926
- const $ = x("FmButton"), ee = x("FmTable"), Ce = x("FmSideSheet"), Se = x("FmStepperField"), e = x("FmSwitch"), a = x("FmIcon"), U = x("FmFormGroup"), le = x("FmHelperText");
927
- return g(), S(J, null, [
928
- A.value ? (g(), N(We, {
923
+ ), to(() => {
924
+ oe(), A();
925
+ }), (l, i) => {
926
+ const k = h("FmButton"), ne = h("FmTable"), we = h("FmSideSheet"), he = h("FmStepperField"), $e = h("FmSwitch"), Le = h("FmIcon"), e = h("FmFormGroup"), a = h("FmHelperText");
927
+ return g(), $(J, null, [
928
+ G.value ? (g(), N(eo, {
929
929
  key: 0,
930
- session: A.value,
931
- "on-create-price-group": Q,
932
- onClose: M
930
+ session: G.value,
931
+ "on-create-price-group": q,
932
+ onClose: L
933
933
  }, null, 8, ["session"])) : E("", !0),
934
- m.value ? (g(), N(n(k), {
934
+ c.value ? (g(), N(n(x), {
935
935
  key: 1,
936
- "product-name": i.value,
937
- session: m.value,
936
+ "product-name": t.value,
937
+ session: c.value,
938
938
  onClose: W
939
939
  }, null, 8, ["product-name", "session"])) : E("", !0),
940
- s(Ce, {
941
- "model-value": L.value,
940
+ s(we, {
941
+ "model-value": Y.value,
942
942
  "close-button": !1,
943
943
  "max-width": 800,
944
944
  "z-index": 100,
945
- "dismiss-away": !Y.value,
946
- "onUpdate:modelValue": r[0] || (r[0] = (H) => !H && ve())
945
+ "dismiss-away": !r.value,
946
+ "onUpdate:modelValue": i[0] || (i[0] = (S) => !S && _e())
947
947
  }, {
948
948
  "side-sheet-header": v(() => [
949
- s($, {
949
+ s(k, {
950
950
  "aria-label": n(o)("menu.common.actions.back"),
951
951
  icon: "arrow_back",
952
952
  variant: "tertiary",
953
- onClick: ve
953
+ onClick: _e
954
954
  }, null, 8, ["aria-label"]),
955
- L.value ? (g(), S("span", Do)) : E("", !0),
956
- _("p", Ao, P(n(o)("menu.group.nested.title")), 1)
955
+ Y.value ? (g(), $("span", Mo)) : E("", !0),
956
+ _("p", Go, V(n(o)("menu.group.nested.title")), 1)
957
957
  ]),
958
958
  "side-sheet-footer": v(() => [
959
- s($, {
959
+ s(k, {
960
960
  label: n(o)("menu.common.actions.ok"),
961
961
  size: "lg",
962
- onClick: ve
962
+ onClick: _e
963
963
  }, null, 8, ["label"])
964
964
  ]),
965
965
  default: v(() => {
966
- var H;
966
+ var S;
967
967
  return [
968
- _("div", Uo, [
969
- _("div", Mo, [
970
- _("p", Go, P(n(o)("menu.group.nested.currently_configuring")), 1),
971
- _("p", Ko, P((H = p.value) == null ? void 0 : H.optionName), 1)
972
- ]),
968
+ _("div", Ko, [
973
969
  _("div", Ro, [
974
- _("p", jo, P(n(o)("menu.group.nested.subtitle")), 1),
975
- s(ee, {
976
- "column-defs": de.value,
970
+ _("p", jo, V(n(o)("menu.group.nested.currently_configuring")), 1),
971
+ _("p", Ho, V((S = p.value) == null ? void 0 : S.optionName), 1)
972
+ ]),
973
+ _("div", Yo, [
974
+ _("p", Zo, V(n(o)("menu.group.nested.subtitle")), 1),
975
+ s(ne, {
976
+ "column-defs": R.value,
977
977
  "page-size": K.value.length,
978
978
  "row-data": K.value,
979
979
  "shrink-at": !1,
@@ -986,46 +986,46 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
986
986
  }),
987
987
  _: 1
988
988
  }, 8, ["model-value", "dismiss-away"]),
989
- s(Ce, {
990
- "model-value": Y.value,
989
+ s(we, {
990
+ "model-value": r.value,
991
991
  "max-width": 800,
992
992
  "z-index": 200,
993
- "onUpdate:modelValue": r[4] || (r[4] = (H) => !H && X())
993
+ "onUpdate:modelValue": i[4] || (i[4] = (S) => !S && oe())
994
994
  }, {
995
995
  "side-sheet-header": v(() => [
996
- Y.value ? (g(), S("span", Ho, P(n(o)("menu.common.labels.nested_group_override")), 1)) : E("", !0),
997
- _("p", Yo, P(n(o)("menu.group.update")), 1)
996
+ r.value ? (g(), $("span", qo, V(n(o)("menu.common.labels.nested_group_override")), 1)) : E("", !0),
997
+ _("p", Jo, V(n(o)("menu.group.update")), 1)
998
998
  ]),
999
999
  "side-sheet-footer": v(() => [
1000
- _("div", nn, [
1001
- s($, {
1000
+ _("div", an, [
1001
+ s(k, {
1002
1002
  label: n(o)("menu.common.actions.update"),
1003
1003
  size: "lg",
1004
- onClick: Ue(Ie, ["stop"])
1004
+ onClick: Ge(Ie, ["stop"])
1005
1005
  }, null, 8, ["label"]),
1006
- s($, {
1006
+ s(k, {
1007
1007
  label: n(o)("menu.common.actions.cancel"),
1008
1008
  size: "lg",
1009
1009
  variant: "tertiary",
1010
- onClick: Ue(X, ["stop"])
1010
+ onClick: Ge(oe, ["stop"])
1011
1011
  }, null, 8, ["label"])
1012
1012
  ])
1013
1013
  ]),
1014
1014
  default: v(() => {
1015
- var H, ye, $e, Pe, Oe;
1015
+ var S, X, xe, ke, Pe;
1016
1016
  return [
1017
- _("div", Zo, [
1018
- s(Ye, null, {
1017
+ _("div", Qo, [
1018
+ s(qe, null, {
1019
1019
  default: v(() => {
1020
- var te;
1020
+ var le;
1021
1021
  return [
1022
- s(ae, {
1022
+ s(re, {
1023
1023
  disabled: "",
1024
1024
  label: n(o)("menu.common.labels.group_name"),
1025
- placeholder: ((te = b.value) == null ? void 0 : te.groupName) ?? ""
1025
+ placeholder: ((le = b.value) == null ? void 0 : le.groupName) ?? ""
1026
1026
  }, {
1027
1027
  append: v(() => [
1028
- s($, {
1028
+ s(k, {
1029
1029
  disabled: "",
1030
1030
  icon: "g_translate",
1031
1031
  variant: "tertiary"
@@ -1033,61 +1033,61 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1033
1033
  ]),
1034
1034
  _: 1
1035
1035
  }, 8, ["label", "placeholder"]),
1036
- s(Xe, null, {
1036
+ s(oo, null, {
1037
1037
  default: v(() => {
1038
- var oe, pe, re, we, he, xe;
1038
+ var te, ge, ae, Oe, Ve, Fe;
1039
1039
  return [
1040
- s(Se, {
1040
+ s(he, {
1041
1041
  class: "flex-1",
1042
- disabled: ((oe = b.value) == null ? void 0 : oe.bounds.state) !== "allowed",
1043
- "helper-text": ((pe = b.value) == null ? void 0 : pe.bounds.state) === "disabled" ? n(z)(b.value.bounds.reason) : void 0,
1042
+ disabled: ((te = b.value) == null ? void 0 : te.bounds.state) !== "allowed",
1043
+ "helper-text": ((ge = b.value) == null ? void 0 : ge.bounds.state) === "disabled" ? n(I)(b.value.bounds.reason) : void 0,
1044
1044
  label: n(o)("menu.common.labels.min_select"),
1045
1045
  min: 0,
1046
- "model-value": ((re = b.value) == null ? void 0 : re.min) ?? 0,
1047
- "onUpdate:modelValue": r[1] || (r[1] = (ge) => {
1048
- var f;
1049
- return (f = C.value) == null ? void 0 : f.setMin(ge);
1046
+ "model-value": ((ae = b.value) == null ? void 0 : ae.min) ?? 0,
1047
+ "onUpdate:modelValue": i[1] || (i[1] = (be) => {
1048
+ var ie;
1049
+ return (ie = C.value) == null ? void 0 : ie.setMin(be);
1050
1050
  })
1051
1051
  }, null, 8, ["disabled", "helper-text", "label", "model-value"]),
1052
- s(Se, {
1052
+ s(he, {
1053
1053
  class: "flex-1",
1054
- disabled: ((we = b.value) == null ? void 0 : we.bounds.state) !== "allowed",
1054
+ disabled: ((Oe = b.value) == null ? void 0 : Oe.bounds.state) !== "allowed",
1055
1055
  label: n(o)("menu.common.labels.max_select"),
1056
- min: ((he = b.value) == null ? void 0 : he.min) ?? 0,
1057
- "model-value": ((xe = b.value) == null ? void 0 : xe.max) ?? 0,
1058
- "onUpdate:modelValue": r[2] || (r[2] = (ge) => {
1059
- var f;
1060
- return (f = C.value) == null ? void 0 : f.setMax(ge);
1056
+ min: ((Ve = b.value) == null ? void 0 : Ve.min) ?? 0,
1057
+ "model-value": ((Fe = b.value) == null ? void 0 : Fe.max) ?? 0,
1058
+ "onUpdate:modelValue": i[2] || (i[2] = (be) => {
1059
+ var ie;
1060
+ return (ie = C.value) == null ? void 0 : ie.setMax(be);
1061
1061
  })
1062
1062
  }, null, 8, ["disabled", "label", "min", "model-value"])
1063
1063
  ];
1064
1064
  }),
1065
1065
  _: 1
1066
1066
  }),
1067
- s(Ne, {
1067
+ s(Ee, {
1068
1068
  label: n(o)("menu.common.labels.configuration")
1069
1069
  }, {
1070
1070
  default: v(() => {
1071
- var oe;
1071
+ var te;
1072
1072
  return [
1073
- _("div", qo, [
1074
- s(e, {
1073
+ _("div", Wo, [
1074
+ s($e, {
1075
1075
  disabled: "",
1076
1076
  label: n(o)("menu.common.labels.stackable"),
1077
- "model-value": ((oe = b.value) == null ? void 0 : oe.stackable) ?? !1,
1077
+ "model-value": ((te = b.value) == null ? void 0 : te.stackable) ?? !1,
1078
1078
  sublabel: n(o)("menu.common.labels.stackable_sublabel"),
1079
1079
  "label-placement": "right"
1080
1080
  }, null, 8, ["label", "model-value", "sublabel"]),
1081
- b.value && b.value.hide.state !== "hidden" ? (g(), N(e, {
1081
+ b.value && b.value.hide.state !== "hidden" ? (g(), N($e, {
1082
1082
  key: 0,
1083
1083
  disabled: b.value.hide.state !== "allowed",
1084
1084
  label: n(o)("menu.common.labels.hide_group"),
1085
1085
  "model-value": b.value.hidden,
1086
1086
  sublabel: n(o)("menu.common.labels.hide_group_sublabel_product"),
1087
1087
  "label-placement": "right",
1088
- "onUpdate:modelValue": r[3] || (r[3] = (pe) => {
1089
- var re;
1090
- return (re = C.value) == null ? void 0 : re.setHidden(!!pe);
1088
+ "onUpdate:modelValue": i[3] || (i[3] = (ge) => {
1089
+ var ae;
1090
+ return (ae = C.value) == null ? void 0 : ae.setHidden(!!ge);
1091
1091
  })
1092
1092
  }, null, 8, ["disabled", "label", "model-value", "sublabel"])) : E("", !0)
1093
1093
  ])
@@ -1099,43 +1099,43 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1099
1099
  }),
1100
1100
  _: 1
1101
1101
  }),
1102
- (H = b.value) != null && H.hidden ? (g(), S("div", Jo, [
1103
- s(a, {
1102
+ (S = b.value) != null && S.hidden ? (g(), $("div", Xo, [
1103
+ s(Le, {
1104
1104
  class: "shrink-0",
1105
1105
  color: "system-warning-400",
1106
1106
  name: "visibility_off",
1107
1107
  outline: "",
1108
1108
  size: "sm"
1109
1109
  }),
1110
- _("div", Qo, [
1111
- _("p", Wo, P(n(o)("menu.common.labels.hide_group_notice")), 1),
1112
- _("p", Xo, P(n(o)("menu.common.labels.hide_group_notice_reset")), 1)
1110
+ _("div", en, [
1111
+ _("p", on, V(n(o)("menu.common.labels.hide_group_notice")), 1),
1112
+ _("p", nn, V(n(o)("menu.common.labels.hide_group_notice_reset")), 1)
1113
1113
  ])
1114
1114
  ])) : E("", !0),
1115
- s(U, {
1116
- class: lo([
1115
+ s(e, {
1116
+ class: ao([
1117
1117
  "!gap-16",
1118
- (ye = b.value) != null && ye.hidden ? "opacity-50 pointer-events-none" : ""
1118
+ (X = b.value) != null && X.hidden ? "opacity-50 pointer-events-none" : ""
1119
1119
  ]),
1120
- inert: (($e = b.value) == null ? void 0 : $e.hidden) || void 0,
1120
+ inert: ((xe = b.value) == null ? void 0 : xe.hidden) || void 0,
1121
1121
  tag: "div",
1122
1122
  "helper-text": n(o)("menu.common.validation.default_items_tip", {
1123
- count: y.value.filter((te) => te.isDefault).length,
1124
- max: ((Pe = b.value) == null ? void 0 : Pe.max) ?? 0
1123
+ count: P.value.filter((le) => le.isDefault).length,
1124
+ max: ((ke = b.value) == null ? void 0 : ke.max) ?? 0
1125
1125
  }),
1126
- "model-value": y.value
1126
+ "model-value": P.value
1127
1127
  }, {
1128
1128
  default: v(() => [
1129
- s(ke, {
1129
+ s(Ce, {
1130
1130
  title: n(o)("menu.group.option.title")
1131
1131
  }, {
1132
1132
  default: v(() => [
1133
- _("div", en, [
1134
- _("div", on, [
1135
- s(ee, {
1136
- "column-defs": I.value,
1137
- "page-size": Math.max(y.value.length, 1),
1138
- "row-data": y.value,
1133
+ _("div", ln, [
1134
+ _("div", tn, [
1135
+ s(ne, {
1136
+ "column-defs": U.value,
1137
+ "page-size": Math.max(P.value.length, 1),
1138
+ "row-data": P.value,
1139
1139
  "shrink-at": !1,
1140
1140
  "hide-footer": ""
1141
1141
  }, null, 8, ["column-defs", "page-size", "row-data"])
@@ -1147,10 +1147,10 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1147
1147
  ]),
1148
1148
  _: 1
1149
1149
  }, 8, ["class", "inert", "helper-text", "model-value"]),
1150
- (g(!0), S(J, null, ue(((Oe = b.value) == null ? void 0 : Oe.issues) ?? [], (te, oe) => (g(), N(le, {
1151
- key: `${te.code}-${oe}`,
1150
+ (g(!0), $(J, null, me(((Pe = b.value) == null ? void 0 : Pe.issues) ?? [], (le, te) => (g(), N(a, {
1151
+ key: `${le.code}-${te}`,
1152
1152
  state: "error",
1153
- text: n(z)(te)
1153
+ text: n(I)(le)
1154
1154
  }, null, 8, ["text"]))), 128))
1155
1155
  ])
1156
1156
  ];
@@ -1160,67 +1160,67 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1160
1160
  ], 64);
1161
1161
  };
1162
1162
  }
1163
- }), tn = { class: "fm-typo-en-title-md-600" }, an = {
1163
+ }), sn = { class: "fm-typo-en-title-md-600" }, un = {
1164
1164
  key: 0,
1165
1165
  class: "pt-8 space-y-32"
1166
- }, rn = { class: "xs:overflow-x-scroll" }, sn = { class: "xs:min-w-[640px]" }, un = { class: "flex gap-8 items-center justify-start" }, mn = { class: "fm-typo-en-title-md-600" }, cn = { class: "pt-8 space-y-24" }, dn = { class: "flex gap-8 flex-wrap" }, pn = { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, gn = { class: "flex gap-8" }, On = /* @__PURE__ */ me({
1166
+ }, mn = { class: "xs:overflow-x-scroll" }, cn = { class: "xs:min-w-[640px]" }, dn = { class: "flex gap-8 items-center justify-start" }, pn = { class: "fm-typo-en-title-md-600" }, gn = { class: "pt-8 space-y-24" }, bn = { class: "flex gap-8 flex-wrap" }, vn = { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, _n = { class: "flex gap-8" }, Nn = /* @__PURE__ */ ce({
1167
1167
  __name: "ProductGroupCreateSheet",
1168
1168
  props: {
1169
1169
  sdk: {},
1170
1170
  presentation: {}
1171
1171
  },
1172
1172
  emits: ["close", "created"],
1173
- setup(G, { emit: B }) {
1174
- const k = je(
1175
- () => import("./ProductInventoryDialog-D0d5RywR.js")
1176
- ), F = G, u = B, { t: o } = ce(), D = x("i18n-t"), z = De(), { run: h } = qe(), V = He(), d = F.sdk.group.creationEditor(
1173
+ setup(M, { emit: B }) {
1174
+ const x = Ye(
1175
+ () => import("./ProductInventoryDialog-EDlrXupB.js")
1176
+ ), F = M, m = B, { t: o } = de(), { breakpoints: D } = io(), I = O(() => D.value.xs), w = h("i18n-t"), z = Ae(), { run: H } = Qe(), C = Ze(), u = F.sdk.group.creationEditor(
1177
1177
  F.presentation === "tree" ? { surface: "editor" } : void 0
1178
- ), C = Be(d), t = O(
1179
- () => C.value.status === "ready" ? C.value.value : null
1180
- ), L = Ze(() => d), Y = O(
1178
+ ), Y = De(u), r = O(
1179
+ () => Y.value.status === "ready" ? Y.value.value : null
1180
+ ), A = Je(() => u), Z = O(
1181
1181
  () => {
1182
1182
  var e;
1183
1183
  return Object.fromEntries(
1184
- Object.entries(((e = t.value) == null ? void 0 : e.attributeValueOptions) ?? {}).map(
1185
- ([a, U]) => [a, [...U]]
1184
+ Object.entries(((e = r.value) == null ? void 0 : e.attributeValueOptions) ?? {}).map(
1185
+ ([a, S]) => [a, [...S]]
1186
1186
  )
1187
1187
  );
1188
1188
  }
1189
- ), Z = Be(F.sdk.linkProduct.catalogue), q = O(
1190
- () => Z.value.status === "ready" ? Z.value.value : null
1191
- ), A = se(!1), m = se({}), i = O(
1189
+ ), G = De(F.sdk.linkProduct.catalogue), c = O(
1190
+ () => G.value.status === "ready" ? G.value.value : null
1191
+ ), t = ue(!1), p = ue({}), b = O(
1192
1192
  () => {
1193
1193
  var e;
1194
- return (((e = t.value) == null ? void 0 : e.options) ?? []).map((a) => ({
1194
+ return (((e = r.value) == null ? void 0 : e.options) ?? []).map((a) => ({
1195
1195
  ...a,
1196
1196
  subRows: a.variants
1197
1197
  }));
1198
1198
  }
1199
- ), p = O(
1199
+ ), P = O(
1200
1200
  () => Math.max(
1201
- i.value.reduce(
1201
+ b.value.reduce(
1202
1202
  (e, a) => e + 1 + a.subRows.length,
1203
1203
  0
1204
1204
  ),
1205
1205
  1
1206
1206
  )
1207
- ), b = (e) => e.combinationKey ? `${e.id}:${e.combinationKey}` : e.id, y = (e, a, U, le) => e.combinationKey ? o("menu.common.labels.a11y_labelled_name", {
1208
- label: o(U),
1207
+ ), K = (e) => e.combinationKey ? `${e.id}:${e.combinationKey}` : e.id, R = (e, a, S, X) => e.combinationKey ? o("menu.common.labels.a11y_labelled_name", {
1208
+ label: o(S),
1209
1209
  name: e.name || e.inheritedName
1210
- }) : le ? o(le, { index: a + 1 }) : o("menu.group.a11y.row", { label: o(U), index: a + 1 });
1211
- function K(e) {
1212
- d.setProducts([...e]), A.value = !1;
1210
+ }) : X ? o(X, { index: a + 1 }) : o("menu.group.a11y.row", { label: o(S), index: a + 1 });
1211
+ function pe(e) {
1212
+ u.setProducts([...e]), t.value = !1;
1213
1213
  }
1214
- function de() {
1215
- d.cancelTranslation();
1214
+ function U() {
1215
+ u.cancelTranslation();
1216
1216
  }
1217
- function ie() {
1217
+ function Q() {
1218
1218
  var e;
1219
- if (!((e = t.value) != null && e.translationDirty)) {
1220
- d.cancelTranslation();
1219
+ if (!((e = r.value) != null && e.translationDirty)) {
1220
+ u.cancelTranslation();
1221
1221
  return;
1222
1222
  }
1223
- V.open({
1223
+ C.open({
1224
1224
  title: o("menu.common.dialog.discard.title"),
1225
1225
  message: o("menu.common.dialog.discard.message"),
1226
1226
  primaryActions: {
@@ -1232,74 +1232,74 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1232
1232
  text: o("menu.common.actions.cancel"),
1233
1233
  close: !0
1234
1234
  }
1235
- }).onPrimary(() => d.cancelTranslation());
1235
+ }).onPrimary(() => u.cancelTranslation());
1236
1236
  }
1237
- const I = ne(null), R = ne(null), M = se(""), Q = ne(null);
1238
- function W() {
1237
+ const L = ee(null), q = ee(null), W = ue(""), se = ee(null);
1238
+ function ve() {
1239
1239
  var e;
1240
- (e = I.value) == null || e.dispose(), I.value = null;
1240
+ (e = L.value) == null || e.dispose(), L.value = null;
1241
1241
  }
1242
- function be(e, a) {
1243
- W(), I.value = d.pricingEditor(
1242
+ function oe(e, a) {
1243
+ ve(), L.value = u.pricingEditor(
1244
1244
  e.id,
1245
1245
  a,
1246
1246
  e.combinationKey
1247
1247
  );
1248
1248
  }
1249
- async function ze(e) {
1250
- return (await h(() => F.sdk.priceTier.create(e), {
1249
+ async function _e(e) {
1250
+ return (await H(() => F.sdk.priceTier.create(e), {
1251
1251
  successMessage: o("menu.price_tier.add_price_group_success")
1252
1252
  })).kind === "success";
1253
1253
  }
1254
- function X() {
1254
+ function fe() {
1255
1255
  var e;
1256
- (e = R.value) == null || e.dispose(), R.value = null, M.value = "";
1256
+ (e = q.value) == null || e.dispose(), q.value = null, W.value = "";
1257
1257
  }
1258
- function ve(e) {
1259
- X(), M.value = e.name || e.inheritedName, R.value = d.inventoryEditor(e.id, e.combinationKey);
1258
+ function Ie(e) {
1259
+ fe(), W.value = e.name || e.inheritedName, q.value = u.inventoryEditor(e.id, e.combinationKey);
1260
1260
  }
1261
- function _e() {
1261
+ function ye() {
1262
1262
  var e;
1263
- (e = Q.value) == null || e.dispose(), Q.value = null;
1263
+ (e = se.value) == null || e.dispose(), se.value = null;
1264
1264
  }
1265
- function Ie(e) {
1266
- _e(), Q.value = d.nestedOverrides(e.id, e.combinationKey);
1265
+ function l(e) {
1266
+ ye(), se.value = u.nestedOverrides(e.id, e.combinationKey);
1267
1267
  }
1268
- Re(() => {
1269
- W(), X(), _e(), d.dispose();
1268
+ He(() => {
1269
+ ve(), fe(), ye(), u.dispose();
1270
1270
  });
1271
- const fe = (e) => t.value ? L.issue(t.value.fieldIssues, e) ?? t.value.issues.find((a) => a.field === e) : void 0, l = (e) => {
1272
- const a = fe(e);
1271
+ const i = (e) => r.value ? A.issue(r.value.fieldIssues, e) ?? r.value.issues.find((a) => a.field === e) : void 0, k = (e) => {
1272
+ const a = i(e);
1273
1273
  return a ? z(a) : "";
1274
- }, r = ["NORMAL", "PRODUCT", "DYNAMIC"], $ = se(0);
1275
- function ee() {
1276
- d.confirmTypeChange(!1), $.value += 1;
1274
+ }, ne = ["NORMAL", "PRODUCT", "DYNAMIC"], we = ue(0);
1275
+ function he() {
1276
+ u.confirmTypeChange(!1), we.value += 1;
1277
1277
  }
1278
- Ee(
1278
+ ze(
1279
1279
  () => {
1280
1280
  var e;
1281
- return (e = t.value) == null ? void 0 : e.typeChange;
1281
+ return (e = r.value) == null ? void 0 : e.typeChange;
1282
1282
  },
1283
1283
  (e) => {
1284
- e && V.open({
1284
+ e && C.open({
1285
1285
  title: o("menu.common.dialog.change_type.title"),
1286
1286
  message: o("menu.common.dialog.change_type.message"),
1287
1287
  primaryActions: { text: o("menu.common.actions.yes"), close: !0 },
1288
1288
  secondaryActions: { text: o("menu.common.actions.no"), close: !0 }
1289
- }).onPrimary(() => d.confirmTypeChange(!0)).onSecondary(() => ee()).onClose(() => ee());
1289
+ }).onPrimary(() => u.confirmTypeChange(!0)).onSecondary(() => he()).onClose(() => he());
1290
1290
  }
1291
1291
  );
1292
- async function Ce() {
1293
- var U;
1294
- const e = ((U = t.value) == null ? void 0 : U.name) ?? "";
1295
- (await h(() => L.submit(() => d.submit()), {
1292
+ async function $e() {
1293
+ var S;
1294
+ const e = ((S = r.value) == null ? void 0 : S.name) ?? "";
1295
+ (await H(() => A.submit(() => u.submit()), {
1296
1296
  showLoading: () => {
1297
- var le;
1298
- return ((le = t.value) == null ? void 0 : le.status) === "submitting";
1297
+ var X;
1298
+ return ((X = r.value) == null ? void 0 : X.status) === "submitting";
1299
1299
  }
1300
- })).kind === "success" && (u("created", e), u("close"));
1300
+ })).kind === "success" && (m("created", e), m("close"));
1301
1301
  }
1302
- const Se = O(() => [
1302
+ const Le = O(() => [
1303
1303
  {
1304
1304
  accessorKey: "isDefault",
1305
1305
  size: 35,
@@ -1308,20 +1308,20 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1308
1308
  cell: (e) => (
1309
1309
  // A product with variants has no default of its own; its
1310
1310
  // combinations do (OptionTable.vue:143-145).
1311
- e.row.original.variants.length ? null : c(T.FmCheckbox, {
1311
+ e.row.original.variants.length ? null : d(T.FmCheckbox, {
1312
1312
  modelValue: e.row.original.isDefault,
1313
- value: b(e.row.original),
1314
- "aria-label": y(
1313
+ value: K(e.row.original),
1314
+ "aria-label": R(
1315
1315
  e.row.original,
1316
1316
  e.row.index,
1317
1317
  "menu.group.option.is_default"
1318
1318
  ),
1319
1319
  "onUpdate:modelValue": (a) => {
1320
- d.setOption(
1320
+ u.setOption(
1321
1321
  e.row.original.id,
1322
1322
  { isDefault: a },
1323
1323
  e.row.original.combinationKey
1324
- ), L.touch("options");
1324
+ ), A.touch("options");
1325
1325
  }
1326
1326
  })
1327
1327
  )
@@ -1331,15 +1331,15 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1331
1331
  size: 100,
1332
1332
  header: () => o("menu.group.option.code"),
1333
1333
  enableSorting: !1,
1334
- cell: (e) => c("div", { class: "break-all max-w-[100px]" }, e.row.original.code)
1334
+ cell: (e) => d("div", { class: "break-all max-w-[100px]" }, e.row.original.code)
1335
1335
  },
1336
1336
  {
1337
1337
  accessorKey: "name",
1338
1338
  header: () => {
1339
1339
  var e;
1340
- return c("div", { class: "flex items-center w-full gap-8" }, [
1341
- c("span", o("menu.group.option.product_title")),
1342
- ((e = t.value) == null ? void 0 : e.showTranslation) === !1 ? null : c(T.FmButton, {
1340
+ return d("div", { class: "flex items-center w-full gap-8" }, [
1341
+ d("span", o("menu.group.option.product_title")),
1342
+ ((e = r.value) == null ? void 0 : e.showTranslation) === !1 ? null : d(T.FmButton, {
1343
1343
  icon: "g_translate",
1344
1344
  variant: "tertiary",
1345
1345
  textColor: "neutral-gray-400",
@@ -1355,18 +1355,18 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1355
1355
  // ADR-0003 §1 condition as on the option cells. Neither name is
1356
1356
  // visible, so this changes no rendering.
1357
1357
  "aria-label": o("menu.group.translation.translate_options"),
1358
- onClick: () => d.beginTranslation("options")
1358
+ onClick: () => u.beginTranslation("options")
1359
1359
  })
1360
1360
  ]);
1361
1361
  },
1362
1362
  enableSorting: !1,
1363
- cell: (e) => c(
1364
- ae,
1363
+ cell: (e) => d(
1364
+ re,
1365
1365
  {
1366
1366
  class: "min-w-[300px]",
1367
1367
  modelValue: e.row.original.name,
1368
1368
  placeholder: e.row.original.inheritedName,
1369
- errorMessages: fe(`option.${e.row.original.id}.name`) ? [l(`option.${e.row.original.id}.name`)] : [],
1369
+ errorMessages: i(`option.${e.row.original.id}.name`) ? [k(`option.${e.row.original.id}.name`)] : [],
1370
1370
  // Named PER ROW: "Option 1 title", "Option 2 title", …
1371
1371
  //
1372
1372
  // The accessible name is an addition the MIGRATED app owns — legacy
@@ -1383,15 +1383,15 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1383
1383
  //
1384
1384
  // The visible column header stays "Title", which is what the golden
1385
1385
  // shows; this is the accessible name only.
1386
- "aria-label": y(
1386
+ "aria-label": R(
1387
1387
  e.row.original,
1388
1388
  e.row.index,
1389
1389
  "menu.group.option.product_title",
1390
1390
  "menu.group.option.option_title_numbered"
1391
1391
  ),
1392
- ...L.field(
1392
+ ...A.field(
1393
1393
  `option.${e.row.original.id}.name`,
1394
- (a) => d.setOption(
1394
+ (a) => u.setOption(
1395
1395
  e.row.original.id,
1396
1396
  { name: a },
1397
1397
  e.row.original.combinationKey
@@ -1401,7 +1401,7 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1401
1401
  e.row.original.variants.length ? {
1402
1402
  // Legacy puts the toggle inside the title field
1403
1403
  // (OptionTable.vue:228-243).
1404
- append: () => c(
1404
+ append: () => d(
1405
1405
  "button",
1406
1406
  {
1407
1407
  type: "button",
@@ -1414,7 +1414,7 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1414
1414
  ),
1415
1415
  onClick: e.row.getToggleExpandedHandler()
1416
1416
  },
1417
- c(T.FmIcon, {
1417
+ d(T.FmIcon, {
1418
1418
  name: "keyboard_arrow_up",
1419
1419
  // Down while collapsed, up once expanded.
1420
1420
  class: [
@@ -1429,13 +1429,13 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1429
1429
  {
1430
1430
  accessorKey: "priceAmount",
1431
1431
  size: 400,
1432
- header: () => c(
1433
- D,
1432
+ header: () => d(
1433
+ w,
1434
1434
  { keypath: "menu.group.option.price", tag: "span" },
1435
1435
  {
1436
1436
  symbol: () => {
1437
1437
  var e;
1438
- return c(Je, { currency: (e = t.value) == null ? void 0 : e.currency });
1438
+ return d(We, { currency: (e = r.value) == null ? void 0 : e.currency });
1439
1439
  }
1440
1440
  }
1441
1441
  ),
@@ -1446,18 +1446,18 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1446
1446
  // its natural width inside the 400px column instead of stretching to
1447
1447
  // fill it. Without the wrapper the field runs ~127px wider than the
1448
1448
  // frozen `group/v3-create/form-normal` golden shows.
1449
- c("div", { class: "flex items-center gap-8" }, [
1450
- c(Fe, {
1449
+ d("div", { class: "flex items-center gap-8" }, [
1450
+ d(Se, {
1451
1451
  modelValue: e.row.original.priceAmount,
1452
1452
  // Indexed for the same reason as the title above; the visible
1453
1453
  // header keeps its currency symbol.
1454
- "aria-label": y(
1454
+ "aria-label": R(
1455
1455
  e.row.original,
1456
1456
  e.row.index,
1457
1457
  "menu.group.option.price",
1458
1458
  "menu.group.option.option_price_numbered"
1459
1459
  ),
1460
- "onUpdate:modelValue": (a) => d.setOption(
1460
+ "onUpdate:modelValue": (a) => u.setOption(
1461
1461
  e.row.original.id,
1462
1462
  { priceAmount: a },
1463
1463
  e.row.original.combinationKey
@@ -1467,24 +1467,24 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1467
1467
  // (`OptionTable.vue:333-382`); a row that cannot sell keeps it,
1468
1468
  // disabled.
1469
1469
  ...e.row.original.editPricing.state !== "hidden" ? [
1470
- c("div", { class: "flex items-center gap-4" }, [
1471
- c(
1470
+ d("div", { class: "flex items-center gap-4" }, [
1471
+ d(
1472
1472
  T.FmButton,
1473
1473
  {
1474
1474
  variant: "plain",
1475
1475
  label: o(
1476
1476
  "menu.product.form.member_price.configure.title"
1477
1477
  ),
1478
- "aria-label": y(
1478
+ "aria-label": R(
1479
1479
  e.row.original,
1480
1480
  e.row.index,
1481
1481
  "menu.product.form.member_price.configure.title"
1482
1482
  ),
1483
1483
  disabled: e.row.original.editPricing.state !== "allowed",
1484
- onClick: () => be(e.row.original, "members")
1484
+ onClick: () => oe(e.row.original, "members")
1485
1485
  },
1486
1486
  {
1487
- default: () => c(
1487
+ default: () => d(
1488
1488
  "span",
1489
1489
  { class: "underline line-clamp-2 break-all" },
1490
1490
  e.row.original.memberPriceCount ? o(
@@ -1496,7 +1496,7 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1496
1496
  )
1497
1497
  }
1498
1498
  ),
1499
- c(Ae, {
1499
+ d(Ue, {
1500
1500
  prices: e.row.original.memberPrices
1501
1501
  })
1502
1502
  ])
@@ -1509,19 +1509,19 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1509
1509
  size: 100,
1510
1510
  header: () => o("menu.common.labels.order_from"),
1511
1511
  enableSorting: !1,
1512
- cell: (e) => c(T.FmSelect, {
1512
+ cell: (e) => d(T.FmSelect, {
1513
1513
  modelValue: e.row.original.orderFrom,
1514
1514
  disabled: !e.row.original.editOrderFrom,
1515
- "aria-label": y(
1515
+ "aria-label": R(
1516
1516
  e.row.original,
1517
1517
  e.row.index,
1518
1518
  "menu.common.labels.order_from"
1519
1519
  ),
1520
1520
  items: ["ALL", "POS_ONLY", "NONE"].map((a) => ({
1521
1521
  value: a,
1522
- label: o(so[a])
1522
+ label: o(co[a])
1523
1523
  })),
1524
- "onUpdate:modelValue": (a) => d.setOption(
1524
+ "onUpdate:modelValue": (a) => u.setOption(
1525
1525
  e.row.original.id,
1526
1526
  { orderFrom: a },
1527
1527
  e.row.original.combinationKey
@@ -1533,153 +1533,153 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1533
1533
  meta: { cellClass: "" },
1534
1534
  size: 80,
1535
1535
  enableSorting: !1,
1536
- cell: (e) => c("div", { class: "flex items-center justify-end" }, [
1536
+ cell: (e) => d("div", { class: "flex items-center justify-end" }, [
1537
1537
  // Legacy's price-tier button, V4 only (`OptionTable.vue:505-524`).
1538
1538
  ...e.row.original.editPricing.state !== "hidden" ? [
1539
- c(Qe, {
1539
+ d(Xe, {
1540
1540
  configured: e.row.original.hasPriceTiers,
1541
1541
  disabled: e.row.original.editPricing.state !== "allowed",
1542
- label: y(
1542
+ label: R(
1543
1543
  e.row.original,
1544
1544
  e.row.index,
1545
1545
  "menu.price_tier.price_tier_config"
1546
1546
  ),
1547
- onOpen: () => be(e.row.original, "tiers")
1547
+ onOpen: () => oe(e.row.original, "tiers")
1548
1548
  })
1549
1549
  ] : [],
1550
1550
  // Inventory binding: every V4 row and, on V3, a NORMAL group's rows
1551
1551
  // (`AddForm.vue` `inventory`). The icon fills once a binding is
1552
1552
  // staged (`OptionTable.vue:556`).
1553
1553
  ...e.row.original.editInventory.state !== "hidden" ? [
1554
- c(T.FmButton, {
1554
+ d(T.FmButton, {
1555
1555
  prependIcon: "inventory_2",
1556
1556
  overwriteIconOutline: e.row.original.inventoryBound ? "filled" : "outline",
1557
1557
  variant: "tertiary",
1558
1558
  textColor: "neutral-gray-400",
1559
1559
  disabled: e.row.original.editInventory.state !== "allowed",
1560
- "aria-label": y(
1560
+ "aria-label": R(
1561
1561
  e.row.original,
1562
1562
  e.row.index,
1563
1563
  "menu.group.option.inventory"
1564
1564
  ),
1565
- onClick: () => ve(e.row.original)
1565
+ onClick: () => Ie(e.row.original)
1566
1566
  })
1567
1567
  ] : [],
1568
1568
  // Legacy keeps the nested-group button on every row, badged with the
1569
1569
  // count and enabled where the row's product links a group
1570
1570
  // (`OptionTable.vue:466-496`).
1571
1571
  ...e.row.original.nestedGroupCount ? [
1572
- c(
1572
+ d(
1573
1573
  T.FmBadge,
1574
1574
  {
1575
1575
  class: "bg-fm-color-primary text-fm-color-neutral-white !right-0 !top-0",
1576
1576
  value: e.row.original.nestedGroupCount
1577
1577
  },
1578
1578
  {
1579
- default: () => c(T.FmButton, {
1579
+ default: () => d(T.FmButton, {
1580
1580
  prependIcon: "arrow_split",
1581
1581
  variant: "tertiary",
1582
1582
  textColor: "neutral-gray-400",
1583
1583
  disabled: e.row.original.editNested.state !== "allowed",
1584
- "aria-label": y(
1584
+ "aria-label": R(
1585
1585
  e.row.original,
1586
1586
  e.row.index,
1587
1587
  "menu.group.nested.title"
1588
1588
  ),
1589
- onClick: () => Ie(e.row.original)
1589
+ onClick: () => l(e.row.original)
1590
1590
  })
1591
1591
  }
1592
1592
  )
1593
1593
  ] : [
1594
- c(T.FmButton, {
1594
+ d(T.FmButton, {
1595
1595
  prependIcon: "arrow_split",
1596
1596
  variant: "tertiary",
1597
1597
  textColor: "neutral-gray-400",
1598
1598
  disabled: !0,
1599
- "aria-label": y(
1599
+ "aria-label": R(
1600
1600
  e.row.original,
1601
1601
  e.row.index,
1602
1602
  "menu.group.nested.title"
1603
1603
  )
1604
1604
  })
1605
1605
  ],
1606
- c(T.FmButton, {
1606
+ d(T.FmButton, {
1607
1607
  prependIcon: "delete",
1608
1608
  variant: "tertiary",
1609
1609
  textColor: "neutral-gray-400",
1610
- "aria-label": y(
1610
+ "aria-label": R(
1611
1611
  e.row.original,
1612
1612
  e.row.index,
1613
1613
  "menu.common.actions.remove"
1614
1614
  ),
1615
1615
  // A combination is removed with its product (OptionTable.vue:547-556).
1616
1616
  disabled: !!e.row.original.combinationKey,
1617
- onClick: () => d.removeOption(e.row.original.id)
1617
+ onClick: () => u.removeOption(e.row.original.id)
1618
1618
  })
1619
1619
  ])
1620
1620
  }
1621
1621
  ]);
1622
1622
  return (e, a) => {
1623
- var we, he, xe, ge;
1624
- const U = x("FmButton"), le = x("FmTooltip"), H = x("FmStepperField"), ye = x("FmFormGroup"), $e = x("FmRadio"), Pe = x("FmRadioGroup"), Oe = x("FmSwitch"), te = x("FmTable"), oe = x("FmSideSheet"), pe = x("FmChip"), re = x("FmSelect");
1625
- return g(), S(J, null, [
1626
- s(oe, {
1623
+ var Fe, be, ie, Me;
1624
+ const S = h("FmButton"), X = h("FmTooltip"), xe = h("FmStepperField"), ke = h("FmFormGroup"), Pe = h("FmRadio"), le = h("FmRadioGroup"), te = h("FmSwitch"), ge = h("FmTable"), ae = h("FmSideSheet"), Oe = h("FmChip"), Ve = h("FmSelect");
1625
+ return g(), $(J, null, [
1626
+ s(ae, {
1627
1627
  "model-value": !0,
1628
1628
  "max-width": e.presentation === "tree" ? 720 : 800,
1629
1629
  "is-container": n(T).FmForm,
1630
- "is-container-props": { onValidationSuccess: Ce },
1631
- "onUpdate:modelValue": a[9] || (a[9] = (f) => !f && u("close"))
1630
+ "is-container-props": { onValidationSuccess: $e },
1631
+ "onUpdate:modelValue": a[9] || (a[9] = (f) => !f && m("close"))
1632
1632
  }, {
1633
1633
  "side-sheet-header": v(() => [
1634
- _("p", tn, P(n(o)("menu.group.add")), 1)
1634
+ _("p", sn, V(n(o)("menu.group.add")), 1)
1635
1635
  ]),
1636
1636
  "side-sheet-footer": v(() => {
1637
1637
  var f;
1638
1638
  return [
1639
- _("div", un, [
1640
- s(U, {
1639
+ _("div", dn, [
1640
+ s(S, {
1641
1641
  label: n(o)("menu.common.actions.add"),
1642
- disabled: ((f = t.value) == null ? void 0 : f.submit.state) !== "allowed",
1642
+ disabled: ((f = r.value) == null ? void 0 : f.submit.state) !== "allowed",
1643
1643
  size: "lg",
1644
1644
  type: "submit",
1645
1645
  variant: "primary"
1646
1646
  }, null, 8, ["label", "disabled"]),
1647
- s(U, {
1647
+ s(S, {
1648
1648
  label: n(o)("menu.common.actions.cancel"),
1649
1649
  size: "lg",
1650
1650
  variant: "tertiary",
1651
- onClick: a[8] || (a[8] = (w) => u("close"))
1651
+ onClick: a[8] || (a[8] = (y) => m("close"))
1652
1652
  }, null, 8, ["label"])
1653
1653
  ])
1654
1654
  ];
1655
1655
  }),
1656
1656
  default: v(() => [
1657
- t.value ? (g(), S("div", an, [
1658
- s(Ye, null, {
1657
+ r.value ? (g(), $("div", un, [
1658
+ s(qe, null, {
1659
1659
  default: v(() => {
1660
1660
  var f;
1661
1661
  return [
1662
- s(ae, Te({
1662
+ s(re, Ne({
1663
1663
  autofocus: "",
1664
1664
  label: n(o)("menu.common.labels.group_name"),
1665
- "model-value": t.value.name,
1666
- "error-messages": fe("name") ? [l("name")] : []
1667
- }, n(L).field("name", n(d).setName)), Ke({ _: 2 }, [
1668
- t.value.showTranslation !== !1 ? {
1665
+ "model-value": r.value.name,
1666
+ "error-messages": i("name") ? [k("name")] : []
1667
+ }, n(A).field("name", n(u).setName)), je({ _: 2 }, [
1668
+ r.value.showTranslation !== !1 ? {
1669
1669
  name: "append",
1670
1670
  fn: v(() => [
1671
- s(le, {
1671
+ s(X, {
1672
1672
  variant: "plain",
1673
1673
  placement: "top",
1674
1674
  "z-index": 999
1675
1675
  }, {
1676
1676
  default: v(() => [
1677
- s(U, {
1677
+ s(S, {
1678
1678
  variant: "tertiary",
1679
1679
  icon: "g_translate",
1680
- disabled: !t.value.canTranslateName,
1680
+ disabled: !r.value.canTranslateName,
1681
1681
  "aria-label": n(o)("menu.group.translation.translate_name"),
1682
- onClick: a[0] || (a[0] = (w) => n(d).beginTranslation("group"))
1682
+ onClick: a[0] || (a[0] = (y) => n(u).beginTranslation("group"))
1683
1683
  }, null, 8, ["disabled", "aria-label"])
1684
1684
  ]),
1685
1685
  _: 1
@@ -1688,47 +1688,47 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1688
1688
  key: "0"
1689
1689
  } : void 0
1690
1690
  ]), 1040, ["label", "model-value", "error-messages"]),
1691
- s(ye, {
1692
- "model-value": `${t.value.min} ${t.value.max}`,
1693
- invalid: !!l("bounds"),
1694
- "helper-text": l("bounds")
1691
+ s(ke, {
1692
+ "model-value": `${r.value.min} ${r.value.max}`,
1693
+ invalid: !!k("bounds"),
1694
+ "helper-text": k("bounds")
1695
1695
  }, {
1696
1696
  default: v(() => [
1697
- s(Xe, null, {
1697
+ s(oo, null, {
1698
1698
  default: v(() => [
1699
- s(H, Te({
1699
+ s(xe, Ne({
1700
1700
  class: "flex-1",
1701
1701
  min: 0,
1702
1702
  label: n(o)("menu.common.labels.min_select"),
1703
- "model-value": t.value.min
1704
- }, n(L).field("bounds", n(d).setMin)), null, 16, ["label", "model-value"]),
1705
- s(H, Te({
1703
+ "model-value": r.value.min
1704
+ }, n(A).field("bounds", n(u).setMin)), null, 16, ["label", "model-value"]),
1705
+ s(xe, Ne({
1706
1706
  class: "flex-1",
1707
- min: t.value.min,
1707
+ min: r.value.min,
1708
1708
  label: n(o)("menu.common.labels.max_select"),
1709
- "model-value": t.value.max
1710
- }, n(L).field("bounds", n(d).setMax)), null, 16, ["min", "label", "model-value"])
1709
+ "model-value": r.value.max
1710
+ }, n(A).field("bounds", n(u).setMax)), null, 16, ["min", "label", "model-value"])
1711
1711
  ]),
1712
1712
  _: 1
1713
1713
  })
1714
1714
  ]),
1715
1715
  _: 1
1716
1716
  }, 8, ["model-value", "invalid", "helper-text"]),
1717
- t.value.showType ? (g(), N(Ne, {
1717
+ r.value.showType ? (g(), N(Ee, {
1718
1718
  key: 0,
1719
1719
  label: n(o)("menu.common.labels.group_type")
1720
1720
  }, {
1721
1721
  default: v(() => [
1722
- (g(), N(Pe, {
1723
- key: $.value,
1724
- "model-value": t.value.type,
1725
- "onUpdate:modelValue": a[1] || (a[1] = (w) => n(d).setType(w))
1722
+ (g(), N(le, {
1723
+ key: we.value,
1724
+ "model-value": r.value.type,
1725
+ "onUpdate:modelValue": a[1] || (a[1] = (y) => n(u).setType(y))
1726
1726
  }, {
1727
1727
  default: v(() => [
1728
- (g(), S(J, null, ue(r, (w) => s($e, {
1729
- key: w,
1730
- value: w,
1731
- label: n(o)(n(uo)[w])
1728
+ (g(), $(J, null, me(ne, (y) => s(Pe, {
1729
+ key: y,
1730
+ value: y,
1731
+ label: n(o)(n(po)[y])
1732
1732
  }, null, 8, ["value", "label"])), 64))
1733
1733
  ]),
1734
1734
  _: 1
@@ -1736,38 +1736,38 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1736
1736
  ]),
1737
1737
  _: 1
1738
1738
  }, 8, ["label"])) : E("", !0),
1739
- s(Ne, {
1739
+ s(Ee, {
1740
1740
  label: n(o)("menu.common.labels.configuration")
1741
1741
  }, {
1742
1742
  default: v(() => [
1743
- s(Oe, {
1744
- "model-value": t.value.stackable,
1743
+ s(te, {
1744
+ "model-value": r.value.stackable,
1745
1745
  label: n(o)("menu.common.labels.stackable"),
1746
1746
  "label-placement": "right",
1747
1747
  sublabel: n(o)("menu.common.labels.stackable_sublabel"),
1748
- "onUpdate:modelValue": a[2] || (a[2] = (w) => n(d).setStackable(w))
1748
+ "onUpdate:modelValue": a[2] || (a[2] = (y) => n(u).setStackable(y))
1749
1749
  }, null, 8, ["model-value", "label", "sublabel"])
1750
1750
  ]),
1751
1751
  _: 1
1752
1752
  }, 8, ["label"]),
1753
- (f = t.value.tagging) != null && f.visible ? (g(), S(J, { key: 1 }, [
1754
- e.presentation === "tree" ? (g(), N(n(Me), {
1753
+ (f = r.value.tagging) != null && f.visible ? (g(), $(J, { key: 1 }, [
1754
+ e.presentation === "tree" ? (g(), N(n(Ke), {
1755
1755
  key: 0,
1756
1756
  entity: "group",
1757
- "model-value": t.value.customAttributes ?? {},
1758
- "value-options": Y.value,
1759
- "onUpdate:modelValue": a[3] || (a[3] = (w) => n(d).setCustomAttributes(w ?? null))
1760
- }, null, 8, ["model-value", "value-options"])) : (g(), N(ke, {
1757
+ "model-value": r.value.customAttributes ?? {},
1758
+ "value-options": Z.value,
1759
+ "onUpdate:modelValue": a[3] || (a[3] = (y) => n(u).setCustomAttributes(y ?? null))
1760
+ }, null, 8, ["model-value", "value-options"])) : (g(), N(Ce, {
1761
1761
  key: 1,
1762
1762
  title: n(o)("menu.group.form.tagging.title"),
1763
1763
  "sub-title": n(o)("menu.group.form.tagging.subtitle")
1764
1764
  }, {
1765
1765
  default: v(() => [
1766
- s(n(Me), {
1766
+ s(n(Ke), {
1767
1767
  entity: "group",
1768
- "model-value": t.value.customAttributes ?? {},
1769
- "value-options": Y.value,
1770
- "onUpdate:modelValue": a[4] || (a[4] = (w) => n(d).setCustomAttributes(w ?? null))
1768
+ "model-value": r.value.customAttributes ?? {},
1769
+ "value-options": Z.value,
1770
+ "onUpdate:modelValue": a[4] || (a[4] = (y) => n(u).setCustomAttributes(y ?? null))
1771
1771
  }, null, 8, ["model-value", "value-options"])
1772
1772
  ]),
1773
1773
  _: 1
@@ -1777,54 +1777,54 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1777
1777
  }),
1778
1778
  _: 1
1779
1779
  }),
1780
- s(ye, {
1780
+ s(ke, {
1781
1781
  tag: "div",
1782
- "model-value": t.value.options,
1783
- invalid: !!l("options"),
1784
- "helper-text": l("options") || n(o)("menu.common.validation.default_items_tip", {
1785
- count: t.value.defaultCount,
1786
- max: t.value.max
1782
+ "model-value": r.value.options,
1783
+ invalid: !!k("options"),
1784
+ "helper-text": k("options") || n(o)("menu.common.validation.default_items_tip", {
1785
+ count: r.value.defaultCount,
1786
+ max: r.value.max
1787
1787
  })
1788
1788
  }, {
1789
1789
  default: v(() => [
1790
- s(ke, {
1790
+ s(Ce, {
1791
1791
  title: n(o)("menu.group.option.title"),
1792
- "sub-title": t.value.linkProducts && e.presentation !== "tree" ? n(o)("menu.group.option.subtitle") : ""
1792
+ "sub-title": r.value.linkProducts && e.presentation !== "tree" ? n(o)("menu.group.option.subtitle") : ""
1793
1793
  }, {
1794
1794
  "append-title": v(() => [
1795
- s(U, {
1795
+ s(S, {
1796
1796
  variant: "secondary",
1797
1797
  "text-color": "primary",
1798
1798
  "border-color": "primary",
1799
- "prepend-icon": t.value.linkProducts ? "link" : "add",
1799
+ "prepend-icon": r.value.linkProducts ? "link" : "add",
1800
1800
  label: n(o)(
1801
- t.value.linkProducts ? "menu.group.option.link_products" : "menu.group.option.add_option"
1801
+ r.value.linkProducts ? "menu.group.option.link_products" : "menu.group.option.add_option"
1802
1802
  ),
1803
- onClick: a[5] || (a[5] = (f) => t.value.linkProducts ? A.value = !0 : n(d).addOption())
1803
+ onClick: a[5] || (a[5] = (f) => r.value.linkProducts ? t.value = !0 : n(u).addOption())
1804
1804
  }, null, 8, ["prepend-icon", "label"])
1805
1805
  ]),
1806
1806
  default: v(() => [
1807
- _("div", rn, [
1808
- _("div", sn, [
1809
- s(te, {
1810
- draggable: "",
1811
- onDndChanged: a[6] || (a[6] = (f) => n(d).reorderOptions(
1812
- f.map((w) => w.id)
1807
+ _("div", mn, [
1808
+ _("div", cn, [
1809
+ s(ge, {
1810
+ draggable: !I.value,
1811
+ onDndChanged: a[6] || (a[6] = (f) => n(u).reorderOptions(
1812
+ f.map((y) => y.id)
1813
1813
  )),
1814
- "column-defs": Se.value,
1814
+ "column-defs": Le.value,
1815
1815
  "column-visibility": {
1816
- code: t.value.showCode,
1817
- priceAmount: t.value.showPrice,
1818
- orderFrom: t.value.showOrderFrom
1816
+ code: r.value.showCode,
1817
+ priceAmount: r.value.showPrice,
1818
+ orderFrom: r.value.showOrderFrom
1819
1819
  },
1820
- "row-data": i.value,
1821
- "get-row-id": b,
1822
- "expanded-state": m.value,
1823
- "onUpdate:expandedState": a[7] || (a[7] = (f) => m.value = f),
1824
- "page-size": p.value,
1820
+ "row-data": b.value,
1821
+ "get-row-id": K,
1822
+ "expanded-state": p.value,
1823
+ "onUpdate:expandedState": a[7] || (a[7] = (f) => p.value = f),
1824
+ "page-size": P.value,
1825
1825
  "shrink-at": !1,
1826
1826
  "hide-footer": ""
1827
- }, null, 8, ["column-defs", "column-visibility", "row-data", "expanded-state", "page-size"])
1827
+ }, null, 8, ["draggable", "column-defs", "column-visibility", "row-data", "expanded-state", "page-size"])
1828
1828
  ])
1829
1829
  ])
1830
1830
  ]),
@@ -1837,80 +1837,80 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1837
1837
  ]),
1838
1838
  _: 1
1839
1839
  }, 8, ["max-width", "is-container", "is-container-props"]),
1840
- ((we = t.value) == null ? void 0 : we.translationMode) === "group" ? (g(), N(to, {
1840
+ ((Fe = r.value) == null ? void 0 : Fe.translationMode) === "group" ? (g(), N(ro, {
1841
1841
  key: 0,
1842
1842
  "model-value": !0,
1843
- name: t.value.name,
1844
- "name-locale": t.value.nameLocale,
1845
- "supported-locales": t.value.supportedLocales,
1846
- dirty: t.value.translationDirty,
1843
+ name: r.value.name,
1844
+ "name-locale": r.value.nameLocale,
1845
+ "supported-locales": r.value.supportedLocales,
1846
+ dirty: r.value.translationDirty,
1847
1847
  title: n(o)("menu.group.translation.title"),
1848
1848
  "name-section-label": n(o)("menu.common.translation.name_section", {
1849
1849
  entity: n(o)("menu.group.title")
1850
1850
  }),
1851
- "onUpdate:modelValue": a[10] || (a[10] = (f) => !f && de()),
1852
- "onUpdate:name": a[11] || (a[11] = (f) => n(d).setName(f)),
1853
- "onUpdate:nameLocale": a[12] || (a[12] = (f) => n(d).setNameLocale(f)),
1854
- onSave: a[13] || (a[13] = (f) => n(d).applyTranslation()),
1855
- onDiscard: a[14] || (a[14] = (f) => n(d).cancelTranslation())
1851
+ "onUpdate:modelValue": a[10] || (a[10] = (f) => !f && U()),
1852
+ "onUpdate:name": a[11] || (a[11] = (f) => n(u).setName(f)),
1853
+ "onUpdate:nameLocale": a[12] || (a[12] = (f) => n(u).setNameLocale(f)),
1854
+ onSave: a[13] || (a[13] = (f) => n(u).applyTranslation()),
1855
+ onDiscard: a[14] || (a[14] = (f) => n(u).cancelTranslation())
1856
1856
  }, null, 8, ["name", "name-locale", "supported-locales", "dirty", "title", "name-section-label"])) : E("", !0),
1857
- ((he = t.value) == null ? void 0 : he.translationMode) === "options" ? (g(), N(oe, {
1857
+ ((be = r.value) == null ? void 0 : be.translationMode) === "options" ? (g(), N(ae, {
1858
1858
  key: 1,
1859
1859
  "model-value": !0,
1860
1860
  "max-width": 720,
1861
- "onUpdate:modelValue": a[17] || (a[17] = (f) => !f && de()),
1862
- "onOn:clickedAway": ie
1861
+ "onUpdate:modelValue": a[17] || (a[17] = (f) => !f && U()),
1862
+ "onOn:clickedAway": Q
1863
1863
  }, {
1864
1864
  "side-sheet-header": v(() => [
1865
- _("p", mn, P(n(o)("menu.group.translation.title")), 1)
1865
+ _("p", pn, V(n(o)("menu.group.translation.title")), 1)
1866
1866
  ]),
1867
1867
  "side-sheet-footer": v(() => [
1868
- _("div", gn, [
1869
- s(U, {
1868
+ _("div", _n, [
1869
+ s(S, {
1870
1870
  label: n(o)("menu.common.actions.save"),
1871
1871
  size: "lg",
1872
- onClick: a[16] || (a[16] = (f) => n(d).applyTranslation())
1872
+ onClick: a[16] || (a[16] = (f) => n(u).applyTranslation())
1873
1873
  }, null, 8, ["label"]),
1874
- s(U, {
1874
+ s(S, {
1875
1875
  label: n(o)("menu.common.actions.cancel"),
1876
1876
  variant: "tertiary",
1877
1877
  size: "lg",
1878
- onClick: ie
1878
+ onClick: Q
1879
1879
  }, null, 8, ["label"])
1880
1880
  ])
1881
1881
  ]),
1882
1882
  default: v(() => [
1883
- _("div", cn, [
1884
- s(Ne, {
1883
+ _("div", gn, [
1884
+ s(Ee, {
1885
1885
  label: n(o)("menu.group.translation.language")
1886
1886
  }, {
1887
1887
  default: v(() => {
1888
1888
  var f;
1889
1889
  return [
1890
- _("div", dn, [
1891
- (g(!0), S(J, null, ue(t.value.optionTranslationLocales, (w) => {
1890
+ _("div", bn, [
1891
+ (g(!0), $(J, null, me(r.value.optionTranslationLocales, (y) => {
1892
1892
  var j;
1893
- return g(), N(pe, {
1894
- key: w,
1893
+ return g(), N(Oe, {
1894
+ key: y,
1895
1895
  removable: "",
1896
- label: ((j = t.value.supportedLocales.find((Ve) => Ve.code === w)) == null ? void 0 : j.name) ?? w,
1897
- onChipClosed: (Ve) => n(d).setOptionTranslationLocales(
1898
- t.value.optionTranslationLocales.filter((eo) => eo !== w)
1896
+ label: ((j = r.value.supportedLocales.find((Te) => Te.code === y)) == null ? void 0 : j.name) ?? y,
1897
+ onChipClosed: (Te) => n(u).setOptionTranslationLocales(
1898
+ r.value.optionTranslationLocales.filter((no) => no !== y)
1899
1899
  )
1900
1900
  }, null, 8, ["label", "onChipClosed"]);
1901
1901
  }), 128)),
1902
- s(re, {
1903
- items: (((f = t.value) == null ? void 0 : f.supportedLocales) ?? []).filter(
1904
- (w) => {
1902
+ s(Ve, {
1903
+ items: (((f = r.value) == null ? void 0 : f.supportedLocales) ?? []).filter(
1904
+ (y) => {
1905
1905
  var j;
1906
- return !(((j = t.value) == null ? void 0 : j.optionTranslationLocales) ?? []).includes(w.code);
1906
+ return !(((j = r.value) == null ? void 0 : j.optionTranslationLocales) ?? []).includes(y.code);
1907
1907
  }
1908
- ).map((w) => ({ value: w.code, label: w.name })),
1908
+ ).map((y) => ({ value: y.code, label: y.name })),
1909
1909
  placeholder: n(o)("menu.group.translation.add_language"),
1910
1910
  "model-value": null,
1911
- "onUpdate:modelValue": a[15] || (a[15] = (w) => n(d).setOptionTranslationLocales([
1912
- ...t.value.optionTranslationLocales,
1913
- w
1911
+ "onUpdate:modelValue": a[15] || (a[15] = (y) => n(u).setOptionTranslationLocales([
1912
+ ...r.value.optionTranslationLocales,
1913
+ y
1914
1914
  ]))
1915
1915
  }, null, 8, ["items", "placeholder"])
1916
1916
  ])
@@ -1918,47 +1918,47 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1918
1918
  }),
1919
1919
  _: 1
1920
1920
  }, 8, ["label"]),
1921
- s(ke, {
1921
+ s(Ce, {
1922
1922
  title: n(o)("menu.group.translation.group_name")
1923
1923
  }, {
1924
1924
  default: v(() => [
1925
- s(ae, {
1926
- "model-value": t.value.name,
1925
+ s(re, {
1926
+ "model-value": r.value.name,
1927
1927
  readonly: ""
1928
1928
  }, null, 8, ["model-value"])
1929
1929
  ]),
1930
1930
  _: 1
1931
1931
  }, 8, ["title"]),
1932
- s(ke, {
1932
+ s(Ce, {
1933
1933
  title: n(o)("menu.group.translation.product_name")
1934
1934
  }, {
1935
1935
  default: v(() => [
1936
- (g(!0), S(J, null, ue(t.value.options, (f, w) => (g(), S("div", {
1936
+ (g(!0), $(J, null, me(r.value.options, (f, y) => (g(), $("div", {
1937
1937
  key: f.id,
1938
1938
  class: "space-y-8"
1939
1939
  }, [
1940
- _("p", pn, P(n(o)("menu.group.translation.option", { number: w + 1 })), 1),
1941
- s(ae, {
1942
- label: n(o)("menu.group.translation.option_default", { number: w + 1 }),
1940
+ _("p", vn, V(n(o)("menu.group.translation.option", { number: y + 1 })), 1),
1941
+ s(re, {
1942
+ label: n(o)("menu.group.translation.option_default", { number: y + 1 }),
1943
1943
  "model-value": f.name,
1944
- "onUpdate:modelValue": (j) => n(d).setOption(f.id, { name: j })
1944
+ "onUpdate:modelValue": (j) => n(u).setOption(f.id, { name: j })
1945
1945
  }, null, 8, ["label", "model-value", "onUpdate:modelValue"]),
1946
- (g(!0), S(J, null, ue(t.value.optionTranslationLocales, (j) => (g(), S("div", {
1946
+ (g(!0), $(J, null, me(r.value.optionTranslationLocales, (j) => (g(), $("div", {
1947
1947
  key: j,
1948
1948
  class: "flex gap-8 items-center"
1949
1949
  }, [
1950
- s(ao, { code: j }, null, 8, ["code"]),
1951
- s(ae, {
1950
+ s(so, { code: j }, null, 8, ["code"]),
1951
+ s(re, {
1952
1952
  class: "flex-1",
1953
1953
  "aria-label": n(o)("menu.group.translation.option_translation", {
1954
- number: w + 1,
1954
+ number: y + 1,
1955
1955
  language: j
1956
1956
  }),
1957
1957
  "model-value": f.nameLocale[j] ?? "",
1958
1958
  placeholder: n(o)("menu.group.translation.placeholder"),
1959
- "onUpdate:modelValue": (Ve) => n(d).setOptionNameLocale(f.id, {
1959
+ "onUpdate:modelValue": (Te) => n(u).setOptionNameLocale(f.id, {
1960
1960
  ...f.nameLocale,
1961
- [j]: Ve
1961
+ [j]: Te
1962
1962
  })
1963
1963
  }, null, 8, ["aria-label", "model-value", "placeholder", "onUpdate:modelValue"])
1964
1964
  ]))), 128))
@@ -1970,42 +1970,42 @@ const Xe = /* @__PURE__ */ io(Io, [["render", Bo]]), Do = {
1970
1970
  ]),
1971
1971
  _: 1
1972
1972
  })) : E("", !0),
1973
- s(mo, {
1974
- modelValue: A.value,
1975
- "onUpdate:modelValue": a[18] || (a[18] = (f) => A.value = f),
1976
- catalogue: q.value,
1977
- "selected-product-ids": ((xe = t.value) == null ? void 0 : xe.selectedProductIds) ?? [],
1973
+ s(go, {
1974
+ modelValue: t.value,
1975
+ "onUpdate:modelValue": a[18] || (a[18] = (f) => t.value = f),
1976
+ catalogue: c.value,
1977
+ "selected-product-ids": ((ie = r.value) == null ? void 0 : ie.selectedProductIds) ?? [],
1978
1978
  title: n(o)("menu.group.option.link_products"),
1979
- onSubmit: K
1979
+ onSubmit: pe
1980
1980
  }, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"]),
1981
- I.value ? (g(), N(We, {
1981
+ L.value ? (g(), N(eo, {
1982
1982
  key: 2,
1983
- session: I.value,
1984
- "on-create-price-group": ze,
1985
- onClose: W
1983
+ session: L.value,
1984
+ "on-create-price-group": _e,
1985
+ onClose: ve
1986
1986
  }, null, 8, ["session"])) : E("", !0),
1987
- R.value ? (g(), N(n(k), {
1987
+ q.value ? (g(), N(n(x), {
1988
1988
  key: 3,
1989
- "product-name": M.value,
1990
- session: R.value,
1991
- onClose: X
1989
+ "product-name": W.value,
1990
+ session: q.value,
1991
+ onClose: fe
1992
1992
  }, null, 8, ["product-name", "session"])) : E("", !0),
1993
- s(ln, {
1993
+ s(rn, {
1994
1994
  sdk: e.sdk,
1995
- session: Q.value,
1996
- "currency-code": (ge = t.value) == null ? void 0 : ge.currency,
1997
- onClose: _e
1995
+ session: se.value,
1996
+ "currency-code": (Me = r.value) == null ? void 0 : Me.currency,
1997
+ onClose: ye
1998
1998
  }, null, 8, ["sdk", "session", "currency-code"])
1999
1999
  ], 64);
2000
2000
  };
2001
2001
  }
2002
2002
  });
2003
2003
  export {
2004
- Xe as F,
2005
- Fe as _,
2006
- Ae as a,
2007
- We as b,
2008
- Qe as c,
2009
- On as d,
2010
- ln as e
2004
+ oo as F,
2005
+ Se as _,
2006
+ Ue as a,
2007
+ eo as b,
2008
+ Xe as c,
2009
+ Nn as d,
2010
+ rn as e
2011
2011
  };