@feedmepos/mf-menu 0.32.41-dev.2 → 0.32.41

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 (66) hide show
  1. package/dist/{App-mCGGnjeS.js → App-Bt5lFavE.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-MWoYiClD.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DpyJ5gr2.js} +3 -3
  3. package/dist/{Catalog-CM2wnQ4l.js → Catalog-DJyGxDRP.js} +44 -44
  4. package/dist/{Category-Bp9tGWwJ.js → Category-BlIUSUxn.js} +24 -24
  5. package/dist/{Category-bsL9IQ5n.js → Category-CNTOOIJE.js} +24 -24
  6. package/dist/{CookingGuide-Cy0Kt6Ys.js → CookingGuide-CpZfKE5H.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CX4s7NYy.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-QzZR2W1U.js} +1 -1
  8. package/dist/{Group-0hMArGNs.js → Group-B88fbCOf.js} +1 -1
  9. package/dist/{Group-BKFZMvZg.js → Group-Bhnov3p8.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-st4plK2R.js → Group.vue_vue_type_script_setup_true_lang-CRAX3mIt.js} +18 -18
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-8zW2KIMn.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Bqh6a0oO.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-UhuYuL-A.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DPAxkce6.js} +4109 -4110
  13. package/dist/{Ingredient-CvE0xujL.js → Ingredient-BORYH8yl.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-iEhZ4_5G.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Ci-CaBED.js} +2 -2
  15. package/dist/{LinkProductSideSheet-CbppLDSB.js → LinkProductSideSheet-DQN59t0a.js} +45 -45
  16. package/dist/{MenuSetting-CQ9HnQKx.js → MenuSetting-cI0j1omE.js} +47 -47
  17. package/dist/{PrintRoute-Cc81zV6Q.js → PrintRoute-CXSuomGR.js} +39 -39
  18. package/dist/{Product-kFoTn7zI.js → Product-DgbQeeKt.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-BVF9SBEL.js → Product.vue_vue_type_script_setup_true_lang-D0cnQC3i.js} +128 -128
  20. package/dist/{ProductInternalTools-CwxPRqTy.js → ProductInternalTools-B1zpNBze.js} +66 -66
  21. package/dist/Products-JodXj4IG.js +291 -0
  22. package/dist/{Publish-BE-PPNO8.js → Publish-Cqdk3SjG.js} +29 -29
  23. package/dist/{Recipe-Ddts2It2.js → Recipe-anT6QBZT.js} +24 -24
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js → RuleView.vue_vue_type_script_setup_true_lang-Cc_k57qi.js} +369 -369
  25. package/dist/{Scheduler-CqP0Ha2K.js → Scheduler-Z64VCw-y.js} +11 -11
  26. package/dist/{ServingSequence-WpneAUiB.js → ServingSequence-B7ZbvY1v.js} +44 -44
  27. package/dist/{Setting-CNGZaUUT.js → Setting-DnVCq2hY.js} +17 -17
  28. package/dist/{Subcategory-BVN0OH_q.js → Subcategory-dpz-Um56.js} +51 -51
  29. package/dist/{Takeaway-LFslRotB.js → Takeaway-DiyOBq1g.js} +13 -13
  30. package/dist/{Takeaway-BtnGTcvW.js → Takeaway-mwLXbT9q.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CJZfd5JB.js → Takeaway.vue_vue_type_script_setup_true_lang-tg3AJE3_.js} +28 -28
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CI8eK98T.js → Thumbnail.vue_vue_type_script_setup_true_lang-FRH0zCh6.js} +27 -27
  33. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CfA400oN.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-nGzNSAX9.js} +4 -4
  34. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-SNBrW4Or.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BzwlZ9jW.js} +13 -13
  35. package/dist/{Unit-kL0Wjfb6.js → Unit-CmF2olR8.js} +8 -8
  36. package/dist/{Variant-Cj82yGYE.js → Variant-C9-_-SLX.js} +24 -24
  37. package/dist/{_id_-B-guZ25K.js → _id_-C4Zpr6wS.js} +28 -28
  38. package/dist/app-BC-PDZ1J.js +363 -0
  39. package/dist/{app-DiVDYcc9.js → app-CrcPPLl1.js} +1 -1
  40. package/dist/app.js +2 -2
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-C4nECq-3.js → linked-status-68qGGp41.js} +5 -5
  43. package/dist/assets/{menu-export-PPICN1VA.js → menu-export-CRtF4W1I.js} +2 -2
  44. package/dist/assets/{override-menu-BaYdZfDk.js → override-menu-DB0DJf_x.js} +5 -5
  45. package/dist/assets/{validate-menu-DCyVSa7R.js → validate-menu-oi_J1ue-.js} +2 -2
  46. package/dist/{catalog-BTsgJdVe.js → catalog-Cp4kVRAL.js} +1 -1
  47. package/dist/{catalogSetting-BNYPChMH.js → catalogSetting-Cr0DX5kw.js} +1 -1
  48. package/dist/{currency-2KuoTCt5.js → currency-C_IuOt0j.js} +1 -1
  49. package/dist/dayjs.min-fN9Ef6y1.js +6 -0
  50. package/dist/{index-UthDVOpX.js → index-CXzIkkUH.js} +31 -31
  51. package/dist/{index-GaHNc4iH.js → index-DzLNqNMt.js} +43 -43
  52. package/dist/{index-fLVJt8Pt.js → index-vqNnqeRW.js} +1 -1
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js → index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js} +269 -244
  54. package/dist/{item-DYsNPLH9.js → item-C3_GKsNy.js} +15 -15
  55. package/dist/{jszip.min-CLQSAAHL.js → jszip.min-BiRK-xY3.js} +387 -388
  56. package/dist/{menu-Btb1sPTh.js → menu-CYrjppCV.js} +1 -1
  57. package/dist/{menuV2-Bfj5ljzI.js → menuV2-DWQ093x3.js} +93 -93
  58. package/dist/{priceTier-DHp_DiBo.js → priceTier-CD3j-Ccs.js} +1 -1
  59. package/dist/{rules-B5QEx6OC.js → rules-BTZh0AjD.js} +11 -11
  60. package/dist/{scheduler-CI-LJfho.js → scheduler-PVlNN-pB.js} +29 -29
  61. package/dist/{toExcel-CHdQxEnw.js → toExcel-lSyQhZQ9.js} +2 -2
  62. package/dist/{unit-D53f5n16.js → unit-1MnbZYm8.js} +35 -35
  63. package/package.json +1 -2
  64. package/dist/Products-IBe-R8XN.js +0 -334
  65. package/dist/app-D4se7Sr4.js +0 -1643
  66. package/dist/dayjs.min-BE8PtbAQ.js +0 -7
@@ -1,4 +1,4 @@
1
- import { u as h, y as n, J as d, ai as _ } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
1
+ import { u as h, A as n, M as d, al as _ } from "./index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js";
2
2
  import "@feedmepos/ui-library";
3
3
  class u {
4
4
  constructor(t, e, r, a) {
@@ -1,4 +1,4 @@
1
- import { y as u, G as i } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
1
+ import { A as u, I as i } from "./index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js";
2
2
  var a = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.MANUAL = "manual", e))(a || {}), m = /* @__PURE__ */ ((e) => (e[e.Normal = 0] = "Normal", e[e.Rules = 1] = "Rules", e))(m || {});
3
3
  class s {
4
4
  static fromCatalog(r, n) {
@@ -1,4 +1,4 @@
1
- import { z as e } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
1
+ import { B as e } from "./index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js";
2
2
  function n(r, o = !0) {
3
3
  return e.Dinero.fromFdoDinero(r).toFormat(o).replaceAll(" ", "");
4
4
  }
@@ -0,0 +1,6 @@
1
+ import { g as a, am as r } from "./index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js";
2
+ var s = r();
3
+ const t = /* @__PURE__ */ a(s);
4
+ export {
5
+ t as D
6
+ };
@@ -1,15 +1,15 @@
1
- import { z as $, y as Y, u as Z, G as Q, A as z, H as X } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
2
- import { defineComponent as R, ref as h, computed as _, watch as j, onMounted as ee, onBeforeUnmount as ae, resolveComponent as x, createBlock as H, openBlock as L, withModifiers as q, withCtx as k, renderSlot as P, createElementBlock as I, Fragment as A, createVNode as v, unref as i, createElementVNode as U, createCommentVNode as te, renderList as le, toDisplayString as O } from "vue";
1
+ import { B as $, A as Z, u as G, I as Q, D as A, J as X } from "./index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js";
2
+ import { defineComponent as R, ref as h, computed as _, watch as j, onMounted as ee, onBeforeUnmount as ae, resolveComponent as x, createBlock as J, openBlock as L, withModifiers as q, withCtx as k, renderSlot as P, createElementBlock as I, Fragment as K, createVNode as v, unref as i, createElementVNode as U, createCommentVNode as te, renderList as le, toDisplayString as O } from "vue";
3
3
  import { useI18n as W } from "@feedmepos/mf-common";
4
4
  import { components as ne } from "@feedmepos/ui-library";
5
- import { _ as oe } from "./RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js";
5
+ import { _ as oe } from "./RuleView.vue_vue_type_script_setup_true_lang-Cc_k57qi.js";
6
6
  import { u as ie } from "./discardConfirm-BHni0LNu.js";
7
- import { _ as re } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-MWoYiClD.js";
8
- import { _ as ue } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CfA400oN.js";
7
+ import { _ as re } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DpyJ5gr2.js";
8
+ import { _ as ue } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-nGzNSAX9.js";
9
9
  import { c as se } from "./check-C9mY6LiX.js";
10
- import { f as me } from "./currency-2KuoTCt5.js";
10
+ import { f as me } from "./currency-C_IuOt0j.js";
11
11
  import { c as de } from "./string-DpfFixWH.js";
12
- import { g as K } from "./translation-Cdap0IVg.js";
12
+ import { g as z } from "./translation-Cdap0IVg.js";
13
13
  const pe = /* @__PURE__ */ R({
14
14
  __name: "CurrencyInput",
15
15
  props: {
@@ -79,14 +79,14 @@ const pe = /* @__PURE__ */ R({
79
79
  n = Number.isNaN(n) ? 0 : n, N("update:model-value", $.Dinero.fromNumber({ number: n }).toObject());
80
80
  }
81
81
  }
82
- const F = _(() => typeof l.min == "number" && l.min >= 0), D = (e) => {
82
+ const D = _(() => typeof l.min == "number" && l.min >= 0), F = (e) => {
83
83
  var n, c, f;
84
84
  if (!(e.ctrlKey || e.metaKey)) {
85
85
  if (e.key === "Enter") {
86
86
  (n = r.value) != null && n.inputEl && s((f = (c = r.value) == null ? void 0 : c.inputEl) == null ? void 0 : f.value);
87
87
  return;
88
88
  }
89
- if (e.key === "-" && F.value) {
89
+ if (e.key === "-" && D.value) {
90
90
  e.preventDefault();
91
91
  return;
92
92
  }
@@ -95,13 +95,13 @@ const pe = /* @__PURE__ */ R({
95
95
  };
96
96
  return ee(() => {
97
97
  var e;
98
- r.value && ((e = r.value.inputEl) == null || e.addEventListener("keydown", D));
98
+ r.value && ((e = r.value.inputEl) == null || e.addEventListener("keydown", F));
99
99
  }), ae(() => {
100
100
  var e;
101
- r.value && ((e = r.value.inputEl) == null || e.removeEventListener("keydown", D));
101
+ r.value && ((e = r.value.inputEl) == null || e.removeEventListener("keydown", F));
102
102
  }), (e, n) => {
103
103
  const c = x("fm-text-field");
104
- return L(), H(c, {
104
+ return L(), J(c, {
105
105
  ref_key: "inputRef",
106
106
  ref: r,
107
107
  autofocus: l.autofocus,
@@ -130,7 +130,7 @@ const pe = /* @__PURE__ */ R({
130
130
  });
131
131
  function Le(B) {
132
132
  return B.map((g) => ({
133
- module: Y.F_MENU_MODULE_V4_KEY.enum.item,
133
+ module: Z.F_MENU_MODULE_V4_KEY.enum.item,
134
134
  id: g._id,
135
135
  discriminator: g.combinationKey,
136
136
  data: void 0
@@ -147,30 +147,30 @@ const ce = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
147
147
  },
148
148
  emits: ["update:takeaway"],
149
149
  setup(B, { expose: g, emit: l }) {
150
- const { t: o } = W(), m = B, E = l, r = Z(), M = _(() => r.rules.takeaway), N = h(!1), u = h(!1), C = h(!1), s = h(void 0), F = (a) => {
150
+ const { t: o } = W(), m = B, E = l, r = G(), M = _(() => r.rules.takeaway), N = h(!1), u = h(!1), C = h(!1), s = h(void 0), D = (a) => {
151
151
  se.isBoolean(a) ? u.value = a : u.value = !u.value;
152
152
  };
153
- function D() {
153
+ function F() {
154
154
  var t;
155
155
  const a = {
156
- ...z.generator.initMenuV4Takeaway(),
156
+ ...A.generator.initMenuV4Takeaway(),
157
157
  usedBy: [],
158
158
  ...Q(m.initialValue ?? {})
159
159
  };
160
160
  return (t = m.fallback) != null && t.price && (a.price = null), a;
161
161
  }
162
- const e = h(D()), n = _(() => m.action === "add" ? o("menu.takeaway.add") : o("menu.takeaway.update")), c = _(() => !!e.value.name), f = _(() => {
162
+ const e = h(F()), n = _(() => m.action === "add" ? o("menu.takeaway.add") : o("menu.takeaway.update")), c = _(() => !!e.value.name), f = _(() => {
163
163
  var V;
164
164
  const a = [], t = "en-US", w = (V = s.value) == null ? void 0 : V[t];
165
165
  return e.value.name && !w && a.push({
166
166
  locale: t,
167
167
  name: e.value.name,
168
- localeDisplay: K(t)
168
+ localeDisplay: z(t)
169
169
  }), s.value && Object.entries(s.value).filter(([d, y]) => y && y.trim()).sort(([d], [y]) => d.localeCompare(y)).forEach(([d, y]) => {
170
170
  a.push({
171
171
  locale: d,
172
172
  name: y,
173
- localeDisplay: K(d)
173
+ localeDisplay: z(d)
174
174
  });
175
175
  }), a;
176
176
  });
@@ -180,13 +180,13 @@ const ce = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
180
180
  function T(a) {
181
181
  e.value.name = a;
182
182
  }
183
- const J = ie(
183
+ const H = ie(
184
184
  () => {
185
185
  var d;
186
186
  const a = !X.isEqual(
187
187
  e.value,
188
188
  m.initialValue || {
189
- ...z.generator.initMenuV4Takeaway(),
189
+ ...A.generator.initMenuV4Takeaway(),
190
190
  usedBy: []
191
191
  }
192
192
  ), t = ((d = m.initialValue) == null ? void 0 : d.name_locale) || {}, w = s.value || {}, V = JSON.stringify(t) !== JSON.stringify(w);
@@ -194,36 +194,36 @@ const ce = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
194
194
  },
195
195
  () => u.value = !1
196
196
  );
197
- function G() {
197
+ function Y() {
198
198
  E("update:takeaway", {
199
199
  ...e.value,
200
200
  ...s.value && { name_locale: s.value }
201
- }), F(!1);
201
+ }), D(!1);
202
202
  }
203
203
  return j(
204
204
  () => u.value,
205
205
  () => {
206
206
  var a;
207
- u.value && (e.value = D(), s.value = (a = m.initialValue) == null ? void 0 : a.name_locale);
207
+ u.value && (e.value = F(), s.value = (a = m.initialValue) == null ? void 0 : a.name_locale);
208
208
  }
209
209
  ), g({
210
- trigger: F,
210
+ trigger: D,
211
211
  show: u
212
212
  }), (a, t) => {
213
213
  const w = x("fm-button"), V = x("FmTooltip"), d = x("fm-text-field"), y = x("fm-side-sheet");
214
- return L(), I(A, null, [
215
- P(a.$slots, "default", { trigger: F }),
214
+ return L(), I(K, null, [
215
+ P(a.$slots, "default", { trigger: D }),
216
216
  v(y, {
217
217
  id: "group-form",
218
218
  modelValue: u.value,
219
219
  "onUpdate:modelValue": t[5] || (t[5] = (b) => u.value = b),
220
220
  "is-container": i(ne).FmForm,
221
221
  "is-container-props": {
222
- onValidationSuccess: G,
222
+ onValidationSuccess: Y,
223
223
  blameFormChildOnValidationFailed: !0
224
224
  },
225
225
  "max-width": 560,
226
- "onOn:clickedAway": i(J)
226
+ "onOn:clickedAway": i(H)
227
227
  }, {
228
228
  "side-sheet-header": k(() => [
229
229
  U("p", ce, O(n.value), 1)
@@ -274,7 +274,7 @@ const ce = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
274
274
  }, {
275
275
  content: k(() => [
276
276
  U("div", ve, [
277
- (L(!0), I(A, null, le(f.value, (p) => (L(), I("div", {
277
+ (L(!0), I(K, null, le(f.value, (p) => (L(), I("div", {
278
278
  key: p.locale
279
279
  }, O(p.name) + " (" + O(p.localeDisplay) + ") ", 1))), 128))
280
280
  ])
@@ -306,7 +306,7 @@ const ce = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
306
306
  }),
307
307
  _: 1
308
308
  }),
309
- a.applyProduct ? (L(), H(re, {
309
+ a.applyProduct ? (L(), J(re, {
310
310
  key: 0,
311
311
  overrides: e.value.usedBy,
312
312
  "onUpdate:overrides": t[3] || (t[3] = (b) => e.value.usedBy = b),
@@ -1,27 +1,27 @@
1
- import { defineComponent as re, ref as _, computed as z, watch as ae, unref as t, resolveComponent as U, createBlock as H, openBlock as f, withCtx as k, createElementVNode as o, toDisplayString as x, createElementBlock as y, createCommentVNode as F, Fragment as B, renderList as A, createVNode as u, normalizeClass as te, renderSlot as me, createSlots as ve } from "vue";
2
- import { H as w, O as fe, B as pe, G as q, A as le, J as ne, y as oe } from "./index.vue_vue_type_script_setup_true_lang-CsnEYmWv.js";
1
+ import { defineComponent as re, ref as _, computed as z, watch as ae, unref as t, resolveComponent as U, createBlock as J, openBlock as f, withCtx as k, createElementVNode as o, toDisplayString as x, createElementBlock as y, createCommentVNode as D, Fragment as A, renderList as B, createVNode as u, normalizeClass as te, renderSlot as me, createSlots as ve } from "vue";
2
+ import { J as w, Q as fe, G as pe, I as q, D as le, M as ne, A as oe } from "./index.vue_vue_type_script_setup_true_lang-DyiwvQnC.js";
3
3
  import { d as _e } from "./vuedraggable-CK8z7qA8.js";
4
4
  import { useI18n as ce, useLocale as ye } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as he, components as be } from "@feedmepos/ui-library";
6
6
  import { _ as ge } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
7
- import { _ as xe } from "./RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js";
7
+ import { _ as xe } from "./RuleView.vue_vue_type_script_setup_true_lang-Cc_k57qi.js";
8
8
  import { u as de } from "./discardConfirm-BHni0LNu.js";
9
- import { _ as Ve } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-MWoYiClD.js";
9
+ import { _ as Ve } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-DpyJ5gr2.js";
10
10
  import { g as K, a as ee, _ as se, b as ie } from "./translation-Cdap0IVg.js";
11
11
  import { c as ke } from "./check-C9mY6LiX.js";
12
- const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24" }, we = { class: "flex flex-col gap-8" }, Oe = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, Ue = { class: "flex items-center gap-8 flex-wrap" }, $e = { class: "w-24 h-24 rounded-full bg-fm-color-primary-oats text-fm-color-primary flex items-center justify-center fm-typo-en-body-sm-600" }, Ne = { class: "fm-typo-en-body-md-600" }, je = ["onClick"], Le = { class: "flex items-center gap-8" }, Se = { class: "w-24 h-24 rounded-full bg-fm-color-opacity-sm flex items-center justify-center fm-typo-en-body-sm-600" }, Te = { class: "fm-typo-en-body-md-400" }, Fe = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, De = { class: "fm-typo-en-body-lg-600" }, Me = {
12
+ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24" }, we = { class: "flex flex-col gap-8" }, Oe = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, Ue = { class: "flex items-center gap-8 flex-wrap" }, $e = { class: "w-24 h-24 rounded-full bg-fm-color-primary-oats text-fm-color-primary flex items-center justify-center fm-typo-en-body-sm-600" }, Ne = { class: "fm-typo-en-body-md-600" }, je = ["onClick"], Le = { class: "flex items-center gap-8" }, Se = { class: "w-24 h-24 rounded-full bg-fm-color-opacity-sm flex items-center justify-center fm-typo-en-body-sm-600" }, Te = { class: "fm-typo-en-body-md-400" }, De = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, Fe = { class: "fm-typo-en-body-lg-600" }, Me = {
13
13
  key: 0,
14
14
  class: "flex flex-col gap-32 pl-32"
15
15
  }, Ie = {
16
16
  key: 0,
17
17
  class: "space-y-8"
18
- }, Be = { class: "flex w-[100px] items-center gap-8" }, Ae = { class: "w-24 h-24 rounded-full bg-fm-color-opacity-sm flex items-center justify-center fm-typo-en-body-sm-600" }, qe = { class: "fm-typo-en-body-md-400" }, ze = { class: "flex-1" }, Pe = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, Ye = { class: "fm-typo-en-body-lg-600" }, Ge = {
18
+ }, Ae = { class: "flex w-[100px] items-center gap-8" }, Be = { class: "w-24 h-24 rounded-full bg-fm-color-opacity-sm flex items-center justify-center fm-typo-en-body-sm-600" }, qe = { class: "fm-typo-en-body-md-400" }, ze = { class: "flex-1" }, Pe = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, Ye = { class: "fm-typo-en-body-lg-600" }, Ge = {
19
19
  key: 0,
20
20
  class: "flex flex-col gap-32 pl-32"
21
- }, Re = { class: "fm-typo-en-body-md-600 text-fm-color-primary border border-fm-color-primary inline-block rounded-md px-8 py-4" }, Ke = { class: "space-y-32" }, He = {
21
+ }, Re = { class: "fm-typo-en-body-md-600 text-fm-color-primary border border-fm-color-primary inline-block rounded-md px-8 py-4" }, Ke = { class: "space-y-32" }, Je = {
22
22
  key: 0,
23
23
  class: "space-y-8"
24
- }, Je = { class: "flex w-[100px] items-center gap-8" }, Qe = { class: "w-24 h-24 rounded-full bg-fm-color-opacity-sm flex items-center justify-center fm-typo-en-body-sm-600" }, We = { class: "fm-typo-en-body-md-400" }, Xe = { class: "flex-1" }, Ze = { class: "flex gap-8 items-center justify-start" }, ea = /* @__PURE__ */ re({
24
+ }, Qe = { class: "flex w-[100px] items-center gap-8" }, He = { class: "w-24 h-24 rounded-full bg-fm-color-opacity-sm flex items-center justify-center fm-typo-en-body-sm-600" }, We = { class: "fm-typo-en-body-md-400" }, Xe = { class: "flex-1" }, Ze = { class: "flex gap-8 items-center justify-start" }, ea = /* @__PURE__ */ re({
25
25
  __name: "ProductVariantTranslation",
26
26
  props: {
27
27
  modelValue: { type: Boolean },
@@ -29,8 +29,8 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
29
29
  expandSection: { default: "variant" }
30
30
  },
31
31
  emits: ["update:modelValue", "update:variant"],
32
- setup(J, { emit: Q }) {
33
- const m = J, S = Q, { t: r } = ce(), { localeList: $ } = ye(), N = _(!1), O = _(!1), a = _([]), D = _([]), p = _({}), M = _({}), E = _(""), I = _(""), h = _({}), P = _({}), j = _({}), Y = _({}), G = z(() => m.variant.options.map((s, e) => ({
32
+ setup(Q, { emit: H }) {
33
+ const m = Q, S = H, { t: r } = ce(), { localeList: $ } = ye(), N = _(!1), O = _(!1), a = _([]), F = _([]), p = _({}), M = _({}), E = _(""), I = _(""), h = _({}), P = _({}), j = _({}), Y = _({}), G = z(() => m.variant.options.map((s, e) => ({
34
34
  ...s,
35
35
  optionIndex: e + 1
36
36
  })).filter((s) => s.name.trim() !== ""));
@@ -63,7 +63,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
63
63
  ae(
64
64
  () => [m.modelValue, m.variant, m.expandSection],
65
65
  ([s, , e]) => {
66
- s && (W(), D.value = w.clone(a.value), M.value = w.clone(p.value), I.value = E.value, P.value = w.clone(h.value), Y.value = w.clone(j.value), e === "variant" ? (N.value = !0, O.value = !1) : (N.value = !1, O.value = !0));
66
+ s && (W(), F.value = w.clone(a.value), M.value = w.clone(p.value), I.value = E.value, P.value = w.clone(h.value), Y.value = w.clone(j.value), e === "variant" ? (N.value = !0, O.value = !1) : (N.value = !1, O.value = !0));
67
67
  },
68
68
  { immediate: !0, deep: !0 }
69
69
  );
@@ -91,7 +91,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
91
91
  });
92
92
  }
93
93
  function l() {
94
- return !w.isEqual(a.value, D.value) || !w.isEqual(p.value, M.value) || E.value !== I.value || !w.isEqual(h.value, P.value) || !w.isEqual(j.value, Y.value);
94
+ return !w.isEqual(a.value, F.value) || !w.isEqual(p.value, M.value) || E.value !== I.value || !w.isEqual(h.value, P.value) || !w.isEqual(j.value, Y.value);
95
95
  }
96
96
  function c() {
97
97
  const s = w.clone(m.variant);
@@ -121,7 +121,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
121
121
  });
122
122
  return (s, e) => {
123
123
  const i = U("FmIcon"), v = U("fm-button"), g = U("FmMenu"), d = U("fm-text-field"), V = U("fm-side-sheet");
124
- return f(), H(V, {
124
+ return f(), J(V, {
125
125
  modelValue: T.value,
126
126
  "onUpdate:modelValue": e[3] || (e[3] = (n) => T.value = n),
127
127
  "max-width": 720,
@@ -151,7 +151,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
151
151
  o("div", we, [
152
152
  o("p", Oe, x(t(r)("menu.variant.form.translation.language")), 1),
153
153
  o("div", Ue, [
154
- (f(!0), y(B, null, A(a.value, (n) => (f(), y("div", {
154
+ (f(!0), y(A, null, B(a.value, (n) => (f(), y("div", {
155
155
  key: n.localeCode,
156
156
  class: "flex items-center gap-8 p-8 border border-fm-color-primary text-fm-color-primary rounded-full"
157
157
  }, [
@@ -164,7 +164,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
164
164
  onClick: (C) => Z(n.localeCode)
165
165
  }, null, 8, ["onClick"])
166
166
  ]))), 128)),
167
- R.value.length > 0 ? (f(), H(g, { key: 0 }, {
167
+ R.value.length > 0 ? (f(), J(g, { key: 0 }, {
168
168
  "menu-button": k(() => [
169
169
  u(v, {
170
170
  variant: "secondary",
@@ -174,7 +174,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
174
174
  })
175
175
  ]),
176
176
  default: k(() => [
177
- (f(!0), y(B, null, A(R.value, (n) => (f(), y("div", {
177
+ (f(!0), y(A, null, B(R.value, (n) => (f(), y("div", {
178
178
  key: n.code,
179
179
  class: "p-12 cursor-pointer hover:bg-fm-color-opacity-md rounded-sm",
180
180
  onClick: (C) => X(n.code)
@@ -186,10 +186,10 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
186
186
  ], 8, je))), 128))
187
187
  ]),
188
188
  _: 1
189
- })) : F("", !0)
189
+ })) : D("", !0)
190
190
  ])
191
191
  ]),
192
- o("div", Fe, [
192
+ o("div", De, [
193
193
  o("div", {
194
194
  class: "flex items-center gap-16 cursor-pointer",
195
195
  onClick: e[0] || (e[0] = (n) => N.value = !N.value)
@@ -198,7 +198,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
198
198
  name: "keyboard_arrow_down",
199
199
  class: te(["transition-transform", N.value ? "transform rotate-180" : ""])
200
200
  }, null, 8, ["class"]),
201
- o("p", De, x(t(r)("menu.variant.form.translation.variant_name")), 1)
201
+ o("p", Fe, x(t(r)("menu.variant.form.translation.variant_name")), 1)
202
202
  ]),
203
203
  N.value ? (f(), y("div", Me, [
204
204
  u(se, {
@@ -210,12 +210,12 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
210
210
  u(ie, {
211
211
  label: t(r)("menu.variant.form.translation.translation")
212
212
  }, null, 8, ["label"]),
213
- (f(!0), y(B, null, A(a.value, (n) => (f(), y("div", {
213
+ (f(!0), y(A, null, B(a.value, (n) => (f(), y("div", {
214
214
  key: n.localeCode,
215
215
  class: "flex items-center gap-16"
216
216
  }, [
217
- o("div", Be, [
218
- o("div", Ae, x(t(K)(n.localeCode)), 1),
217
+ o("div", Ae, [
218
+ o("div", Be, x(t(K)(n.localeCode)), 1),
219
219
  o("span", qe, x(t(ee)(n.localeCode, t($))), 1)
220
220
  ]),
221
221
  o("div", ze, [
@@ -226,8 +226,8 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
226
226
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
227
227
  ])
228
228
  ]))), 128))
229
- ])) : F("", !0)
230
- ])) : F("", !0)
229
+ ])) : D("", !0)
230
+ ])) : D("", !0)
231
231
  ]),
232
232
  o("div", Pe, [
233
233
  o("div", {
@@ -241,7 +241,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
241
241
  o("p", Ye, x(t(r)("menu.variant.form.translation.option_value")), 1)
242
242
  ]),
243
243
  O.value ? (f(), y("div", Ge, [
244
- (f(!0), y(B, null, A(G.value, (n) => (f(), y("div", {
244
+ (f(!0), y(A, null, B(G.value, (n) => (f(), y("div", {
245
245
  key: n._id,
246
246
  class: "space-y-8"
247
247
  }, [
@@ -253,17 +253,17 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
253
253
  "onUpdate:modelValue": (C) => j.value[n._id] = C,
254
254
  spacing: "sm"
255
255
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue"]),
256
- a.value.length > 0 ? (f(), y("div", He, [
256
+ a.value.length > 0 ? (f(), y("div", Je, [
257
257
  u(ie, {
258
258
  label: t(r)("menu.variant.form.translation.translation"),
259
259
  spacing: "sm"
260
260
  }, null, 8, ["label"]),
261
- (f(!0), y(B, null, A(a.value, (C) => (f(), y("div", {
261
+ (f(!0), y(A, null, B(a.value, (C) => (f(), y("div", {
262
262
  key: C.localeCode,
263
263
  class: "flex items-center gap-16"
264
264
  }, [
265
- o("div", Je, [
266
- o("div", Qe, x(t(K)(C.localeCode)), 1),
265
+ o("div", Qe, [
266
+ o("div", He, x(t(K)(C.localeCode)), 1),
267
267
  o("span", We, x(t(ee)(C.localeCode, t($))), 1)
268
268
  ]),
269
269
  o("div", Xe, [
@@ -274,10 +274,10 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
274
274
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
275
275
  ])
276
276
  ]))), 128))
277
- ])) : F("", !0)
277
+ ])) : D("", !0)
278
278
  ])
279
279
  ]))), 128))
280
- ])) : F("", !0)
280
+ ])) : D("", !0)
281
281
  ])
282
282
  ])
283
283
  ]),
@@ -293,8 +293,8 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
293
293
  props: {
294
294
  initialValue: {}
295
295
  },
296
- setup(J, { expose: Q }) {
297
- const m = J, S = fe(pe(he())), { t: r } = ce(), $ = z(
296
+ setup(Q, { expose: H }) {
297
+ const m = Q, S = fe(pe(he())), { t: r } = ce(), $ = z(
298
298
  () => m.initialValue ? r("menu.variant.form.title.edit") : r("menu.variant.form.title.add")
299
299
  ), N = z(() => m.initialValue ? "Update" : "Add"), O = () => {
300
300
  if (m.initialValue) {
@@ -305,7 +305,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
305
305
  }), l;
306
306
  } else
307
307
  return { ...le.generator.initMenuV4VariantGroup(), usedBy: [] };
308
- }, a = _(O()), D = _(!1), p = _(!1), M = _(!1), E = _("variant"), I = (l) => {
308
+ }, a = _(O()), F = _(!1), p = _(!1), M = _(!1), E = _("variant"), I = (l) => {
309
309
  ke.isBoolean(l) ? p.value = l : p.value = !p.value;
310
310
  };
311
311
  function h(l) {
@@ -361,7 +361,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
361
361
  }
362
362
  ), Z = async () => {
363
363
  try {
364
- D.value = !0;
364
+ F.value = !0;
365
365
  const l = q(a.value);
366
366
  l.options = l.options.filter((c) => !!c.name.trim()), m.initialValue ? await S.updateMenu(
367
367
  {
@@ -379,7 +379,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
379
379
  l.name
380
380
  ), I(!1), a.value = { ...le.generator.initMenuV4VariantGroup(), usedBy: [] };
381
381
  } finally {
382
- D.value = !1;
382
+ F.value = !1;
383
383
  }
384
384
  };
385
385
  return ae(
@@ -387,12 +387,12 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
387
387
  (l) => {
388
388
  l && (a.value = O());
389
389
  }
390
- ), Q({
390
+ ), H({
391
391
  show: p,
392
392
  trigger: I
393
393
  }), (l, c) => {
394
394
  const b = U("fm-icon"), L = U("fm-text-field"), T = U("fm-button"), s = U("fm-side-sheet");
395
- return f(), y(B, null, [
395
+ return f(), y(A, null, [
396
396
  me(l.$slots, "default", { trigger: I }),
397
397
  u(s, {
398
398
  id: "variant-form",
@@ -413,7 +413,7 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
413
413
  o("div", ia, [
414
414
  u(T, {
415
415
  label: N.value,
416
- loading: D.value,
416
+ loading: F.value,
417
417
  size: "lg",
418
418
  type: "submit",
419
419
  variant: "primary"
@@ -471,11 +471,11 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
471
471
  class: te(["flex items-center", "space-x-8"]),
472
472
  "data-not-allow-sort": v === a.value.options.length - 1
473
473
  }, [
474
- v !== a.value.options.length - 1 ? (f(), H(b, {
474
+ v !== a.value.options.length - 1 ? (f(), J(b, {
475
475
  key: 0,
476
476
  class: "handle",
477
477
  name: "drag_handle"
478
- })) : v > 0 ? (f(), y("div", na)) : F("", !0),
478
+ })) : v > 0 ? (f(), y("div", na)) : D("", !0),
479
479
  o("div", oa, [
480
480
  u(L, {
481
481
  "model-value": i.name,
@@ -517,13 +517,13 @@ const Ce = { class: "fm-typo-en-title-md-600" }, Ee = { class: "pt-8 space-y-24"
517
517
  ]),
518
518
  _: 1
519
519
  }, 8, ["title"]),
520
- (e = a.value.usedBy) != null && e.length ? (f(), H(Ve, {
520
+ (e = a.value.usedBy) != null && e.length ? (f(), J(Ve, {
521
521
  key: 0,
522
522
  editable: !1,
523
523
  overrides: a.value.usedBy || [],
524
524
  "select-variant": !1,
525
525
  title: t(r)("menu.variant.form.applied_product")
526
- }, null, 8, ["overrides", "title"])) : F("", !0)
526
+ }, null, 8, ["overrides", "title"])) : D("", !0)
527
527
  ])
528
528
  ];
529
529
  }),
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as W, ref as A, resolveComponent as v, createElementBlock as E, openBlock as I, Fragment as B, createElementVNode as g, createVNode as c, normalizeClass as T, withCtx as _, toDisplayString as S, unref as i, h as G, watch as O, onMounted as K, nextTick as M, readonly as N, getCurrentInstance as U, getCurrentScope as L, onScopeDispose as $ } from "vue";
2
2
  import { useI18n as q, useCustomAttributes as H, useCoreStore as J } from "@feedmepos/mf-common";
3
3
  import { components as Q } from "@feedmepos/ui-library";
4
- import { d as X, _ as k } from "./RuleView.vue_vue_type_script_setup_true_lang-DQjE4JRi.js";
4
+ import { d as X, _ as k } from "./RuleView.vue_vue_type_script_setup_true_lang-Cc_k57qi.js";
5
5
  const Y = {
6
6
  class: /* @__PURE__ */ T(["fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap", "text-fm-color-neutral-gray-400"])
7
7
  }, Z = {