@feedmepos/mf-menu 1.0.1-dev.1 → 1.0.1-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/{App-CXamBqwS.js → App-DEoljb3M.js} +548 -534
  2. package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-DzNuoUmQ.js → BindingTable.vue_vue_type_script_setup_true_lang-DACfW6SY.js} +1 -1
  3. package/dist/{Catalog-BHb5ZB6_.js → Catalog-B6mXH-Ez.js} +4 -4
  4. package/dist/{CatalogBinding-X-AHRvcJ.js → CatalogBinding-CZbbxQCa.js} +3 -3
  5. package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-NFeJpXLh.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-CFjBkgkl.js} +3 -3
  6. package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-CrrkUkfD.js → CatalogEditor.vue_vue_type_script_setup_true_lang-owNQUf8y.js} +6 -6
  7. package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-C43Ettr2.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-DJLjbLGK.js} +3 -3
  8. package/dist/{Category-MXhBgKnb.js → Category-B37n9Row.js} +2 -2
  9. package/dist/{Category-DsTyhvYK.js → Category-DHGrowud.js} +5 -5
  10. package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-BJTKjE25.js → CategoryList.vue_vue_type_script_setup_true_lang-_Ux8uXwn.js} +92 -91
  11. package/dist/{CookingGuide-yBqMRWrs.js → CookingGuide-4i1KsBxo.js} +262 -256
  12. package/dist/{Group-CMKmmN3C.js → Group-DVB_G6lM.js} +5 -5
  13. package/dist/{Group-DINfX6Wn.js → Group-N5_9GK2v.js} +2 -2
  14. package/dist/{GroupList.vue_vue_type_script_setup_true_lang-BEBZmPdu.js → GroupList.vue_vue_type_script_setup_true_lang-BDWyiP8J.js} +5 -5
  15. package/dist/{Ingredient-BNQ2LIqN.js → Ingredient-C-puVgJK.js} +3 -3
  16. package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-ChDd6vJd.js +707 -0
  17. package/dist/{MenuSetting-DARGZW4u.js → MenuSetting-QhU37DTL.js} +546 -513
  18. package/dist/{OrderPacing-DuGDpSLN.js → OrderPacing-COY_HJ8I.js} +96 -93
  19. package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-2V1SiXyH.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-BAbojJnz.js} +1 -1
  20. package/dist/Preview-DrbsRznu.js +321 -0
  21. package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-hbG9eqTr.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-BTJwvrlT.js} +1 -1
  22. package/dist/{PrintRoute-N0gXx2Wx.js → PrintRoute-DVJAvYq-.js} +158 -152
  23. package/dist/{Product-Cp2dYxav.js → Product-ClT1oFVA.js} +4 -4
  24. package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-imCNnKvi.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-B4qpB-yA.js} +2 -2
  25. package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BqZ2jz39.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BWZwFal7.js} +3 -3
  26. package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-KrQJLxU2.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-yZSYrcYe.js} +1 -1
  27. package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-i0smKuFw.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-3SaYTgCI.js} +1181 -1174
  28. package/dist/ProductInternalTools-DRcfn5DE.js +2147 -0
  29. package/dist/{ProductInventoryDialog-DmN4sXP_.js → ProductInventoryDialog-i48yqlp_.js} +1 -1
  30. package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-UOIkIylV.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-C7z4BHKp.js} +1 -1
  31. package/dist/{ProductList.vue_vue_type_script_setup_true_lang-C262_Dsq.js → ProductList.vue_vue_type_script_setup_true_lang-DkIwQeby.js} +1990 -1967
  32. package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-wTwunTLr.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-Dr0r1hYM.js} +1 -1
  33. package/dist/{Products-BSthFwvC.js → Products-B4yaF9Y5.js} +3 -3
  34. package/dist/{Publish-BcUXfV7Z.js → Publish-D8pKpnju.js} +3 -3
  35. package/dist/{Recipe-Nhmop5G3.js → Recipe-Cz4s5W4k.js} +3 -3
  36. package/dist/{Scheduler-DEMpmXNY.js → Scheduler-xE_rjFjJ.js} +3 -3
  37. package/dist/{ServingSequence-Dkd70bsy.js → ServingSequence-BjD1Xn6Q.js} +103 -97
  38. package/dist/{Setting-LWEFUdQK.js → Setting-BrD0NB_a.js} +6 -6
  39. package/dist/{Subcategory-YvAbjlgi.js → Subcategory-wbHw1iCU.js} +141 -129
  40. package/dist/{Takeaway-DUoXWAQT.js → Takeaway-CIqSThUQ.js} +5 -5
  41. package/dist/{Takeaway-CoK-aka9.js → Takeaway-DM7weBPk.js} +2 -2
  42. package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-D4xu-gHa.js → TakeawayList.vue_vue_type_script_setup_true_lang-HZP5jmAy.js} +117 -111
  43. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-1iGMM-Xt.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CLeJxNfG.js} +6 -6
  44. package/dist/{Unit-BIoPBeiP.js → Unit-RHuHWCCg.js} +2 -2
  45. package/dist/{Variant-X4llcQO6.js → Variant-MA-mdYxx.js} +114 -108
  46. package/dist/{_id_-gKOWPBVp.js → _id_-CO1c1eIn.js} +3 -3
  47. package/dist/{app-DUyvBFfY.js → app-DnIyFwTs.js} +434 -397
  48. package/dist/app.js +1 -1
  49. package/dist/apps/mf-menu/src/app.d.ts +360 -0
  50. package/dist/apps/mf-menu/src/components/preview/MenuPreview.vue.d.ts +13 -0
  51. package/dist/apps/mf-menu/src/components/preview/simulatorPort.d.ts +23 -0
  52. package/dist/apps/mf-menu/src/router/shared.d.ts +34 -0
  53. package/dist/apps/mf-menu/src/sdk/import-export.d.ts +8 -2
  54. package/dist/apps/mf-menu/src/utils/ruleValueKey.d.ts +12 -0
  55. package/dist/apps/mf-menu/src/views/Preview/Preview.vue.d.ts +2 -0
  56. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  57. package/dist/assets/{menu-compute--bTrGqr1.js → menu-compute-BYzYhsd6.js} +36 -36
  58. package/dist/assets/{validate-menu-mv20U_e_.js → validate-menu-oaYEuMiz.js} +4 -4
  59. package/dist/mf-menu.css +1 -1
  60. package/dist/{provide-CxmHxIEV.js → provide-UZbVvMqZ.js} +57396 -55718
  61. package/dist/ruleValueKey-BF52PuHb.js +10 -0
  62. package/dist/{useActionFeedback-Di6FGqLG.js → useActionFeedback-CfPMryOm.js} +1 -1
  63. package/package.json +1 -1
  64. package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-B8n517dM.js +0 -671
  65. package/dist/ProductInternalTools-CJG8TsE4.js +0 -2906
@@ -1,15 +1,15 @@
1
- import { defineComponent as K, resolveComponent as b, openBlock as c, createElementBlock as y, createElementVNode as d, toDisplayString as k, unref as t, createVNode as i, withCtx as u, Fragment as A, renderList as Z, createBlock as C, createCommentVNode as V, computed as g, ref as z, shallowRef as X, h as v, withModifiers as R, onUnmounted as he } from "vue";
1
+ import { defineComponent as K, resolveComponent as b, openBlock as c, createElementBlock as y, createElementVNode as d, toDisplayString as k, unref as n, createVNode as i, withCtx as u, Fragment as A, renderList as Z, createBlock as C, createCommentVNode as V, computed as g, ref as z, shallowRef as X, h as v, withModifiers as N, onUnmounted as he } from "vue";
2
2
  import { useI18n as ee } from "@feedmepos/mf-common";
3
- import { useDialog as we, components as S, FmButtonColorThemeVariant as N } from "@feedmepos/ui-library";
3
+ import { useDialog as we, components as S, FmButtonColorThemeVariant as T } from "@feedmepos/ui-library";
4
4
  import { _ as Pe } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
5
5
  import { _ as Ce } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js";
6
- import { _ as xe } from "./OrderPacingFields.vue_vue_type_script_setup_true_lang-2V1SiXyH.js";
7
- import { _ as Fe } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-B8n517dM.js";
6
+ import { _ as xe } from "./OrderPacingFields.vue_vue_type_script_setup_true_lang-BAbojJnz.js";
7
+ import { _ as Fe } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-ChDd6vJd.js";
8
8
  import { _ as Se } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
9
9
  import { _ as Ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
10
10
  import { _ as Le } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
11
- import { u as $e } from "./useActionFeedback-Di6FGqLG.js";
12
- import { b as De, u as Y, a as Ue } from "./provide-CxmHxIEV.js";
11
+ import { u as $e } from "./useActionFeedback-CfPMryOm.js";
12
+ import { b as De, u as Y, a as Ue } from "./provide-UZbVvMqZ.js";
13
13
  const ze = {
14
14
  key: 0,
15
15
  class: "mt-4"
@@ -19,14 +19,14 @@ const ze = {
19
19
  name: {},
20
20
  linkedProductNames: {}
21
21
  },
22
- setup(T) {
22
+ setup(B) {
23
23
  const { t: m } = ee();
24
- return (a, B) => {
25
- const E = b("FmIcon"), I = b("FmListItem"), w = b("FmList");
24
+ return (a, E) => {
25
+ const O = b("FmIcon"), I = b("FmListItem"), w = b("FmList");
26
26
  return c(), y("div", null, [
27
- d("p", null, k(t(m)("menu.order_pacing.dialogs.delete.message", { name: a.name })), 1),
27
+ d("p", null, k(n(m)("menu.order_pacing.dialogs.delete.message", { name: a.name })), 1),
28
28
  a.linkedProductNames.length > 0 ? (c(), y("div", ze, [
29
- d("p", Ie, k(t(m)("menu.order_pacing.dialogs.delete.unlink_warning", {
29
+ d("p", Ie, k(n(m)("menu.order_pacing.dialogs.delete.unlink_warning", {
30
30
  count: a.linkedProductNames.length
31
31
  })), 1),
32
32
  i(w, { class: "mt-8" }, {
@@ -37,7 +37,7 @@ const ze = {
37
37
  clickable: !1
38
38
  }, {
39
39
  prepend: u(() => [
40
- i(E, {
40
+ i(O, {
41
41
  color: "typo-secondary",
42
42
  name: "fiber_manual_record",
43
43
  size: "sm"
@@ -69,8 +69,8 @@ const ze = {
69
69
  props: {
70
70
  sdk: {}
71
71
  },
72
- setup(T) {
73
- const m = T, { t: a, n: B } = ee(), E = De(), I = we(), { run: w } = $e(), _ = Y(m.sdk.orderPacing.list), p = g(
72
+ setup(B) {
73
+ const m = B, { t: a, n: E } = ee(), O = De(), I = we(), { run: w } = $e(), _ = Y(m.sdk.orderPacing.list), p = g(
74
74
  () => _.value.status === "ready" ? _.value.value : null
75
75
  ), q = g(() => {
76
76
  var e;
@@ -78,15 +78,15 @@ const ze = {
78
78
  }), ae = g(() => {
79
79
  var e;
80
80
  return [...((e = p.value) == null ? void 0 : e.rows) ?? []];
81
- }), x = z(!1), L = z(!1), F = z(!1), O = z(!1);
81
+ }), x = z(!1), L = z(!1), F = z(!1), M = z(!1);
82
82
  async function te() {
83
- O.value = !0;
83
+ M.value = !0;
84
84
  try {
85
85
  await w(() => m.sdk.orderPacing.retryRead(), {
86
86
  showLoading: !1
87
87
  });
88
88
  } finally {
89
- O.value = !1;
89
+ M.value = !1;
90
90
  }
91
91
  }
92
92
  const Q = Y(
@@ -98,7 +98,7 @@ const ze = {
98
98
  ), $ = X(
99
99
  s.value.get()
100
100
  );
101
- let M = s.value.subscribe((e) => {
101
+ let j = s.value.subscribe((e) => {
102
102
  $.value = e;
103
103
  });
104
104
  const l = g(
@@ -115,8 +115,8 @@ const ze = {
115
115
  }
116
116
  );
117
117
  function re(e) {
118
- var n, r;
119
- return ((r = (n = l.value) == null ? void 0 : n.supportedLocales.find(
118
+ var t, r;
119
+ return ((r = (t = l.value) == null ? void 0 : t.supportedLocales.find(
120
120
  (h) => h.code === e
121
121
  )) == null ? void 0 : r.name) ?? e;
122
122
  }
@@ -130,17 +130,17 @@ const ze = {
130
130
  function G() {
131
131
  s.value.discardTranslationEdit(), F.value = !1;
132
132
  }
133
- function j(e) {
134
- M(), s.value.dispose(), s.value = m.sdk.orderPacing.editor(e), $.value = s.value.get(), M = s.value.subscribe((n) => {
135
- $.value = n;
133
+ function R(e) {
134
+ j(), s.value.dispose(), s.value = m.sdk.orderPacing.editor(e), $.value = s.value.get(), j = s.value.subscribe((t) => {
135
+ $.value = t;
136
136
  });
137
137
  }
138
138
  function H() {
139
139
  var e;
140
- ((e = p.value) == null ? void 0 : e.create.state) === "allowed" && (j(), F.value = !1, x.value = !0);
140
+ ((e = p.value) == null ? void 0 : e.create.state) === "allowed" && (R(), F.value = !1, x.value = !0);
141
141
  }
142
142
  function de(e) {
143
- j(e.id), F.value = !1, x.value = !0;
143
+ R(e.id), F.value = !1, x.value = !0;
144
144
  }
145
145
  async function ue() {
146
146
  var r;
@@ -160,8 +160,8 @@ const ze = {
160
160
  }
161
161
  function ce(e) {
162
162
  if (e.remove.state !== "allowed") return;
163
- const n = m.sdk.orderPacing.describeDelete(e.id);
164
- n && I.open({
163
+ const t = m.sdk.orderPacing.describeDelete(e.id);
164
+ t && I.open({
165
165
  title: a("menu.order_pacing.dialogs.delete.title"),
166
166
  // Both sentences come from the SDK's view model: the names of the
167
167
  // products that will be unlinked are a join over the aggregate, and
@@ -179,7 +179,7 @@ const ze = {
179
179
  // (`portal .../manager/menu/order_pacing.ts:111-114`).
180
180
  contentComponent: v(Te, {
181
181
  name: e.name,
182
- linkedProductNames: n.linkedProductNames
182
+ linkedProductNames: t.linkedProductNames
183
183
  }),
184
184
  // `close: false` on purpose: two frozen pending states name `.fm-dialog`
185
185
  // as this module's delete pending surface, because legacy's manager
@@ -219,8 +219,8 @@ const ze = {
219
219
  function pe(e) {
220
220
  var r;
221
221
  if (((r = p.value) == null ? void 0 : r.reorder.state) !== "allowed") return;
222
- const n = e.map((h) => h.id);
223
- n.length && w(() => m.sdk.orderPacing.reorder(n), {
222
+ const t = e.map((h) => h.id);
223
+ t.length && w(() => m.sdk.orderPacing.reorder(t), {
224
224
  // A rearrange carries no single entity, so legacy fed the shared
225
225
  // `{name} saved` template the MODULE's own title and the toast reads
226
226
  // "Order pacing saved". Each locale carries the whole sentence rather
@@ -252,7 +252,7 @@ const ze = {
252
252
  count: e.row.original.linkedProductCount
253
253
  }),
254
254
  variant: "tertiary",
255
- onClick: R(
255
+ onClick: N(
256
256
  () => ge(e.row.original),
257
257
  ["stop", "prevent"]
258
258
  )
@@ -273,7 +273,7 @@ const ze = {
273
273
  // app: legacy's control is icon-only and unnamed, so no semantic
274
274
  // locator resolves against it.
275
275
  "aria-label": a("menu.common.actions.delete"),
276
- onClick: R(
276
+ onClick: N(
277
277
  () => ce(e.row.original),
278
278
  ["stop", "prevent"]
279
279
  )
@@ -282,17 +282,17 @@ const ze = {
282
282
  }
283
283
  ]), D = z(!1);
284
284
  function ge(e) {
285
- j(e.id), D.value = !0;
285
+ R(e.id), D.value = !0;
286
286
  }
287
287
  async function _e() {
288
- var n;
288
+ var t;
289
289
  (await w(() => s.value.submitLinks(), {
290
290
  showLoading: () => {
291
291
  var r;
292
292
  return ((r = l.value) == null ? void 0 : r.status) === "submitting";
293
293
  },
294
294
  successMessage: a("menu.order_pacing.form.saved", {
295
- name: ((n = l.value) == null ? void 0 : n.name) ?? a("menu.order_pacing.title")
295
+ name: ((t = l.value) == null ? void 0 : t.name) ?? a("menu.order_pacing.title")
296
296
  })
297
297
  })).kind === "success" && (D.value = !1);
298
298
  }
@@ -313,9 +313,9 @@ const ze = {
313
313
  // editor, so the control cannot hold a state the model does not have.
314
314
  // Legacy's does exactly that in create mode — it renders ticked while
315
315
  // `isDefault: false` goes to the wire — a defect approved for fixing.
316
- "onUpdate:modelValue": (n) => s.value.setProductDefault(
316
+ "onUpdate:modelValue": (t) => s.value.setProductDefault(
317
317
  e.row.original.productId,
318
- n
318
+ t
319
319
  )
320
320
  })
321
321
  },
@@ -355,14 +355,14 @@ const ze = {
355
355
  * with `FmChip` if the library ever ships an outlined variant.
356
356
  */
357
357
  cell: (e) => {
358
- const n = e.row.original.currentDefault;
358
+ const t = e.row.original.currentDefault;
359
359
  return v("div", { class: "pt-1" }, [
360
- n ? v(
360
+ t ? v(
361
361
  "span",
362
362
  {
363
363
  class: "text-fm-color-primary border border-fm-color-primary rounded-md px-8"
364
364
  },
365
- a("menu.order_pacing.columns.mins", { count: n.delay })
365
+ a("menu.order_pacing.columns.mins", { count: t.delay })
366
366
  ) : v(
367
367
  "span",
368
368
  {
@@ -411,7 +411,7 @@ const ze = {
411
411
  // 200-pixel patch is over a third of what
412
412
  // `serveDelay/create/form-with-linked-products` still had to close.
413
413
  "aria-label": a("menu.common.actions.delete"),
414
- onClick: R(
414
+ onClick: N(
415
415
  () => s.value.unlinkProduct(e.row.original.productId),
416
416
  ["stop", "prevent"]
417
417
  )
@@ -420,47 +420,47 @@ const ze = {
420
420
  }
421
421
  ]);
422
422
  he(() => {
423
- M(), s.value.dispose(), m.sdk.orderPacing.search("");
423
+ j(), s.value.dispose(), m.sdk.orderPacing.search("");
424
424
  });
425
425
  function be(e) {
426
426
  s.value.setLinkedProducts(e), L.value = !1;
427
427
  }
428
- return (e, n) => {
428
+ return (e, t) => {
429
429
  const r = b("FmButton"), h = b("FmCircularProgress"), ye = b("FmSearch"), J = b("FmTable"), ke = b("FmTooltip"), W = b("FmSideSheet");
430
430
  return c(), C(Ve, {
431
431
  "data-visual-root": "serveDelay",
432
- heading: t(a)("menu.order_pacing.title")
432
+ heading: n(a)("menu.order_pacing.title")
433
433
  }, {
434
434
  "append-heading": u(() => [
435
- t(_).status === "ready" && p.value ? (c(), y("div", Be, [
435
+ n(_).status === "ready" && p.value ? (c(), y("div", Be, [
436
436
  d("div", Ee, [
437
437
  d("div", Oe, [
438
- d("p", Me, k(t(B)(p.value.totalCount)), 1)
438
+ d("p", Me, k(n(E)(p.value.totalCount)), 1)
439
439
  ])
440
440
  ]),
441
441
  p.value.totalCount > 0 ? (c(), C(r, {
442
442
  key: 0,
443
443
  disabled: p.value.create.state !== "allowed",
444
- label: t(a)("menu.order_pacing.add"),
444
+ label: n(a)("menu.order_pacing.add"),
445
445
  "prepend-icon": "add",
446
446
  onClick: H
447
447
  }, null, 8, ["disabled", "label"])) : V("", !0)
448
448
  ])) : V("", !0)
449
449
  ]),
450
450
  default: u(() => [
451
- t(_).status === "error" ? (c(), y("div", je, [
452
- d("p", Re, k(t(E)(t(_).error.message)), 1),
451
+ n(_).status === "error" ? (c(), y("div", je, [
452
+ d("p", Re, k(n(O)(n(_).error.message)), 1),
453
453
  i(r, {
454
- label: t(a)("menu.common.actions.retry"),
455
- loading: O.value,
454
+ label: n(a)("menu.common.actions.retry"),
455
+ loading: M.value,
456
456
  variant: "secondary",
457
457
  onClick: te
458
458
  }, null, 8, ["label", "loading"])
459
- ])) : t(_).status === "loading" ? (c(), C(h, { key: 1 })) : p.value && p.value.rows.length === 0 && !q.value ? (c(), C(t(Pe), {
459
+ ])) : n(_).status === "loading" ? (c(), C(h, { key: 1 })) : p.value && p.value.rows.length === 0 && !q.value ? (c(), C(n(Pe), {
460
460
  key: 2,
461
- action: { text: t(a)("menu.order_pacing.add"), callback: H },
462
- title: t(a)("menu.order_pacing.empty.title"),
463
- subtitle: t(a)("menu.order_pacing.empty.subtitle")
461
+ action: { text: n(a)("menu.order_pacing.add"), callback: H },
462
+ title: n(a)("menu.order_pacing.empty.title"),
463
+ subtitle: n(a)("menu.order_pacing.empty.subtitle")
464
464
  }, null, 8, ["action", "title", "subtitle"])) : p.value ? (c(), y(A, { key: 3 }, [
465
465
  d("div", Ae, [
466
466
  d("div", Ke, [
@@ -468,8 +468,8 @@ const ze = {
468
468
  autofocus: "",
469
469
  class: "mb-8",
470
470
  "model-value": q.value,
471
- placeholder: t(a)("menu.common.labels.search_placeholder", {
472
- type: t(a)("menu.order_pacing.title")
471
+ placeholder: n(a)("menu.common.labels.search_placeholder", {
472
+ type: n(a)("menu.order_pacing.title")
473
473
  }),
474
474
  "onUpdate:modelValue": m.sdk.orderPacing.search
475
475
  }, null, 8, ["model-value", "placeholder", "onUpdate:modelValue"])
@@ -483,14 +483,14 @@ const ze = {
483
483
  "row-data": ae.value,
484
484
  "shrink-at": !1,
485
485
  draggable: me.value,
486
- onRowClick: n[0] || (n[0] = (o) => de(o.original)),
486
+ onRowClick: t[0] || (t[0] = (o) => de(o.original)),
487
487
  onDndChanged: pe
488
488
  }, null, 8, ["column-defs", "page-size", "row-data", "draggable"])
489
489
  ], 64)) : V("", !0),
490
490
  i(W, {
491
491
  modelValue: x.value,
492
- "onUpdate:modelValue": n[3] || (n[3] = (o) => x.value = o),
493
- "is-container": t(S).FmForm,
492
+ "onUpdate:modelValue": t[4] || (t[4] = (o) => x.value = o),
493
+ "is-container": n(S).FmForm,
494
494
  "is-container-props": {
495
495
  onValidationSuccess: ue,
496
496
  blameFormChildOnValidationFailed: !0
@@ -500,7 +500,7 @@ const ze = {
500
500
  "side-sheet-header": u(() => {
501
501
  var o;
502
502
  return [
503
- d("p", qe, k(((o = l.value) == null ? void 0 : o.mode) === "update" ? t(a)("menu.order_pacing.manager.dialog.update.title") : t(a)("menu.order_pacing.manager.dialog.add.title")), 1)
503
+ d("p", qe, k(((o = l.value) == null ? void 0 : o.mode) === "update" ? n(a)("menu.order_pacing.manager.dialog.update.title") : n(a)("menu.order_pacing.manager.dialog.add.title")), 1)
504
504
  ];
505
505
  }),
506
506
  "side-sheet-footer": u(() => {
@@ -509,16 +509,16 @@ const ze = {
509
509
  d("div", We, [
510
510
  i(r, {
511
511
  disabled: ((o = l.value) == null ? void 0 : o.submit.state) !== "allowed",
512
- label: ((f = l.value) == null ? void 0 : f.mode) === "update" ? t(a)("menu.common.actions.update") : t(a)("menu.order_pacing.manager.dialog.add.action"),
512
+ label: ((f = l.value) == null ? void 0 : f.mode) === "update" ? n(a)("menu.common.actions.update") : n(a)("menu.order_pacing.manager.dialog.add.action"),
513
513
  size: "lg",
514
514
  type: "submit",
515
515
  variant: "primary"
516
516
  }, null, 8, ["disabled", "label"]),
517
517
  i(r, {
518
- label: t(a)("menu.common.actions.cancel"),
518
+ label: n(a)("menu.common.actions.cancel"),
519
519
  size: "lg",
520
520
  variant: "tertiary",
521
- onClick: n[2] || (n[2] = (U) => x.value = !1)
521
+ onClick: t[3] || (t[3] = (U) => x.value = !1)
522
522
  }, null, 8, ["label"])
523
523
  ])
524
524
  ];
@@ -539,8 +539,8 @@ const ze = {
539
539
  var o, f;
540
540
  return [
541
541
  d("div", Ge, [
542
- Object.keys(((o = l.value) == null ? void 0 : o.nameLocale) ?? {}).length === 0 ? (c(), y("div", He, k(t(a)("menu.common.translation.translation_label")), 1)) : V("", !0),
543
- (c(!0), y(A, null, Z((f = l.value) == null ? void 0 : f.nameLocale, (U, P) => (c(), y("div", { key: P }, k(t(a)("menu.order_pacing.translation.tooltip_value", {
542
+ Object.keys(((o = l.value) == null ? void 0 : o.nameLocale) ?? {}).length === 0 ? (c(), y("div", He, k(n(a)("menu.common.translation.translation_label")), 1)) : V("", !0),
543
+ (c(!0), y(A, null, Z((f = l.value) == null ? void 0 : f.nameLocale, (U, P) => (c(), y("div", { key: P }, k(n(a)("menu.order_pacing.translation.tooltip_value", {
544
544
  value: U,
545
545
  locale: re(P)
546
546
  })), 1))), 128))
@@ -549,7 +549,7 @@ const ze = {
549
549
  }),
550
550
  default: u(() => [
551
551
  i(r, {
552
- "aria-label": t(a)("menu.common.translation.translation_label"),
552
+ "aria-label": n(a)("menu.common.translation.translation_label"),
553
553
  icon: "g_translate",
554
554
  variant: "tertiary",
555
555
  onClick: se
@@ -561,18 +561,21 @@ const ze = {
561
561
  _: 1
562
562
  }, 8, ["view", "session"]),
563
563
  i(Se, {
564
- title: t(a)("menu.order_pacing.product.title"),
565
- "sub-title": t(a)("menu.order_pacing.product.subtitle")
564
+ title: n(a)("menu.order_pacing.product.title"),
565
+ "sub-title": n(a)("menu.order_pacing.product.subtitle")
566
566
  }, {
567
567
  "append-title": u(() => [
568
568
  d("div", Je, [
569
569
  i(r, {
570
- "border-color": t(N).ColorPrimary,
571
- label: t(a)("menu.order_pacing.link_product.title"),
570
+ "border-color": n(T).ColorPrimary,
571
+ label: n(a)("menu.order_pacing.link_product.title"),
572
572
  "prepend-icon": "link",
573
- "text-color": t(N).ColorPrimary,
573
+ "text-color": n(T).ColorPrimary,
574
574
  variant: "secondary",
575
- onClick: n[1] || (n[1] = (o) => L.value = !0)
575
+ type: "button",
576
+ onPointerdown: t[1] || (t[1] = N(() => {
577
+ }, ["prevent"])),
578
+ onClick: t[2] || (t[2] = (o) => L.value = !0)
576
579
  }, null, 8, ["border-color", "label", "text-color"])
577
580
  ])
578
581
  ]),
@@ -594,13 +597,13 @@ const ze = {
594
597
  l.value ? (c(), C(Le, {
595
598
  key: 4,
596
599
  "model-value": F.value,
597
- "onUpdate:modelValue": n[4] || (n[4] = (o) => o || G()),
600
+ "onUpdate:modelValue": t[5] || (t[5] = (o) => o || G()),
598
601
  dirty: l.value.translationDirty,
599
602
  name: l.value.name,
600
603
  "name-locale": l.value.nameLocale,
601
- "name-section-label": t(a)("menu.order_pacing.translation.name_section"),
604
+ "name-section-label": n(a)("menu.order_pacing.translation.name_section"),
602
605
  "supported-locales": l.value.supportedLocales,
603
- title: t(a)("menu.order_pacing.translation.title"),
606
+ title: n(a)("menu.order_pacing.translation.title"),
604
607
  onDiscard: G,
605
608
  onSave: ie,
606
609
  "onUpdate:name": s.value.setName,
@@ -608,13 +611,13 @@ const ze = {
608
611
  }, null, 8, ["model-value", "dirty", "name", "name-locale", "name-section-label", "supported-locales", "title", "onUpdate:name", "onUpdate:nameLocale"])) : V("", !0),
609
612
  i(W, {
610
613
  modelValue: D.value,
611
- "onUpdate:modelValue": n[9] || (n[9] = (o) => D.value = o),
612
- "is-container": t(S).FmForm,
614
+ "onUpdate:modelValue": t[10] || (t[10] = (o) => D.value = o),
615
+ "is-container": n(S).FmForm,
613
616
  "is-container-props": { onValidationSuccess: _e },
614
617
  "max-width": 560
615
618
  }, {
616
619
  "side-sheet-header": u(() => [
617
- d("p", Xe, k(t(a)("menu.order_pacing.link_product.title")), 1)
620
+ d("p", Xe, k(n(a)("menu.order_pacing.link_product.title")), 1)
618
621
  ]),
619
622
  "side-sheet-footer": u(() => {
620
623
  var o;
@@ -622,16 +625,16 @@ const ze = {
622
625
  d("div", Ze, [
623
626
  i(r, {
624
627
  disabled: ((o = l.value) == null ? void 0 : o.submit.state) !== "allowed",
625
- label: t(a)("menu.common.actions.save"),
628
+ label: n(a)("menu.common.actions.save"),
626
629
  size: "lg",
627
630
  type: "submit",
628
631
  variant: "primary"
629
632
  }, null, 8, ["disabled", "label"]),
630
633
  i(r, {
631
- label: t(a)("menu.common.actions.cancel"),
634
+ label: n(a)("menu.common.actions.cancel"),
632
635
  size: "lg",
633
636
  variant: "tertiary",
634
- onClick: n[8] || (n[8] = (f) => D.value = !1)
637
+ onClick: t[9] || (t[9] = (f) => D.value = !1)
635
638
  }, null, 8, ["label"])
636
639
  ])
637
640
  ];
@@ -643,19 +646,19 @@ const ze = {
643
646
  "applied-count": ((o = l.value) == null ? void 0 : o.appliedProductCount) ?? 0,
644
647
  groups: ((f = l.value) == null ? void 0 : f.linkedGroups) ?? [],
645
648
  query: ((U = l.value) == null ? void 0 : U.linkedProductQuery) ?? "",
646
- title: t(a)("menu.order_pacing.product.title"),
647
- onUnapply: n[6] || (n[6] = (P) => s.value.unlinkProduct(P)),
648
- "onUpdate:query": n[7] || (n[7] = (P) => s.value.setLinkedProductQuery(P))
649
+ title: n(a)("menu.order_pacing.product.title"),
650
+ onUnapply: t[7] || (t[7] = (P) => s.value.unlinkProduct(P)),
651
+ "onUpdate:query": t[8] || (t[8] = (P) => s.value.setLinkedProductQuery(P))
649
652
  }, {
650
653
  "append-title": u(() => [
651
654
  d("div", Ye, [
652
655
  i(r, {
653
- "border-color": t(N).ColorPrimary,
654
- label: t(a)("menu.common.actions.apply_product"),
656
+ "border-color": n(T).ColorPrimary,
657
+ label: n(a)("menu.common.actions.apply_product"),
655
658
  "prepend-icon": "link",
656
- "text-color": t(N).ColorPrimary,
659
+ "text-color": n(T).ColorPrimary,
657
660
  variant: "secondary",
658
- onClick: n[5] || (n[5] = (P) => L.value = !0)
661
+ onClick: t[6] || (t[6] = (P) => L.value = !0)
659
662
  }, null, 8, ["border-color", "label", "text-color"])
660
663
  ])
661
664
  ]),
@@ -667,10 +670,10 @@ const ze = {
667
670
  }, 8, ["modelValue", "is-container", "is-container-props"]),
668
671
  i(Fe, {
669
672
  modelValue: L.value,
670
- "onUpdate:modelValue": n[10] || (n[10] = (o) => L.value = o),
673
+ "onUpdate:modelValue": t[11] || (t[11] = (o) => L.value = o),
671
674
  catalogue: ne.value,
672
675
  "selected-product-ids": le.value,
673
- title: t(a)("menu.order_pacing.link_product.title"),
676
+ title: n(a)("menu.order_pacing.link_product.title"),
674
677
  onSubmit: be
675
678
  }, null, 8, ["modelValue", "catalogue", "selected-product-ids", "title"])
676
679
  ]),
@@ -680,9 +683,9 @@ const ze = {
680
683
  }
681
684
  }), pa = /* @__PURE__ */ K({
682
685
  __name: "OrderPacing",
683
- setup(T) {
686
+ setup(B) {
684
687
  const m = Ue();
685
- return (a, B) => (c(), C(ea, { sdk: t(m) }, null, 8, ["sdk"]));
688
+ return (a, E) => (c(), C(ea, { sdk: n(m) }, null, 8, ["sdk"]));
686
689
  }
687
690
  });
688
691
  export {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as h, resolveComponent as v, openBlock as b, createBlock as y, unref as s, withCtx as F, createVNode as f, renderSlot as I } from "vue";
2
2
  import { useI18n as c } from "@feedmepos/mf-common";
3
3
  import { _ as g } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
4
- import { b as k } from "./provide-CxmHxIEV.js";
4
+ import { b as k } from "./provide-UZbVvMqZ.js";
5
5
  const T = /* @__PURE__ */ h({
6
6
  __name: "OrderPacingFields",
7
7
  props: {