@feedmepos/mf-menu 0.32.69 → 0.32.71

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 (73) hide show
  1. package/dist/{App-CkqcWg7S.js → App-Bay6p3xd.js} +8 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BhG20Otb.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Je_NoQ3y.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-VtSDhyxF.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DBjYkJhB.js} +3 -3
  4. package/dist/{Catalog-DFt5sHAc.js → Catalog-DfWHNm4n.js} +6 -6
  5. package/dist/{Category-Ky71Gp-v.js → Category-51BrJsdv.js} +4 -4
  6. package/dist/{Category-CsunLGhh.js → Category-m45WrP7O.js} +4 -4
  7. package/dist/{CookingGuide-CCtT6m33.js → CookingGuide-Dk-ibGYd.js} +5 -5
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BoL0i1uZ.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CzpScELw.js} +1 -1
  9. package/dist/{Group-llBpSqev.js → Group-CZDoqPK7.js} +3 -3
  10. package/dist/{Group-CPF8_pyC.js → Group-NUWfR17j.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-B1eL9TxG.js → Group.vue_vue_type_script_setup_true_lang-h8zygLBJ.js} +7 -7
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXWmmLn6.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dq5jMv3_.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-xAjv38VK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-EsQKUSJa.js} +7 -7
  14. package/dist/{Ingredient-10tyBIdU.js → Ingredient-CcnUyiM5.js} +4 -4
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DHdCl7qE.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BwxZEDVT.js} +2 -2
  16. package/dist/{LinkProductSideSheet-DvzRszmI.js → LinkProductSideSheet-ClMiajzX.js} +4 -4
  17. package/dist/{MenuSetting-D_fJ0Nh1.js → MenuSetting-Dw3lVHtp.js} +7 -7
  18. package/dist/{OrderPacing-BLGBL00l.js → OrderPacing-Dh8T7OKW.js} +5 -5
  19. package/dist/{PrintRoute-CTJePpsK.js → PrintRoute-BrSaSZI3.js} +5 -5
  20. package/dist/{Product-B1BEM32b.js → Product-CQ7AuhbY.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-lUGzPr_a.js → Product.vue_vue_type_script_setup_true_lang-Bw6l2IEC.js} +14 -14
  22. package/dist/{ProductInternalTools-DO1On9V6.js → ProductInternalTools-2rYX2GR0.js} +7 -7
  23. package/dist/{Products-Dw1aYtPB.js → Products-CoL7S7-1.js} +65 -65
  24. package/dist/Publish-C_lOqrSX.js +1581 -0
  25. package/dist/{Recipe-p8OmyzT8.js → Recipe-Ce8qXnG5.js} +5 -5
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-7Ab3OzAU.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DMB9bFg9.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DMRyx0V7.js → RuleView.vue_vue_type_script_setup_true_lang-D9i9tMAj.js} +722 -722
  28. package/dist/{Scheduler-bJIwoxJQ.js → Scheduler-B2ZtWIPp.js} +65 -64
  29. package/dist/{ServingSequence-DXpq5-Sv.js → ServingSequence-BWZ1YpzI.js} +3 -3
  30. package/dist/{Setting-BOxDPwyd.js → Setting-CdxNVi7G.js} +5 -5
  31. package/dist/{Subcategory-CtapgQWV.js → Subcategory-Bn0O6i5t.js} +6 -6
  32. package/dist/{Takeaway-BOvGqe0f.js → Takeaway-luRkknPl.js} +1 -1
  33. package/dist/{Takeaway-CKo0enwK.js → Takeaway-yE0GhL5I.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BWoq54ru.js → Takeaway.vue_vue_type_script_setup_true_lang-CnZTbF3e.js} +5 -5
  35. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-VYrjC7c8.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-B3N7_zfR.js} +1 -1
  36. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CGCx6D5Y.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BLzzBcqV.js} +2 -2
  37. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-xHzhKbpN.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BvnoCeCw.js} +15 -15
  38. package/dist/{Unit-CtFTRvvy.js → Unit-JPFtrbuS.js} +2 -2
  39. package/dist/{Variant-D4QMrOee.js → Variant-BGJ-aKF1.js} +3 -3
  40. package/dist/{_id_-BYr-NECf.js → _id_-BUlkRwgU.js} +10 -10
  41. package/dist/{app-DNh5SqEy.js → app-2VeaJE9t.js} +37 -37
  42. package/dist/{app-B0TUeVKL.js → app-CMjz-bvL.js} +1 -1
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +29 -17
  45. package/dist/apps/mf-menu/src/components/feature/publish.d.ts +2 -2
  46. package/dist/assets/{linked-status-VS3D4vr6.js → linked-status-B9caUckb.js} +2 -2
  47. package/dist/assets/{menu-export-wMnl913u.js → menu-export-DYfPYpgS.js} +34 -34
  48. package/dist/assets/{override-menu-0N_qNcuX.js → override-menu-uNjUqcak.js} +2 -2
  49. package/dist/assets/{validate-menu-CUOc0Cpy.js → validate-menu-BiXMOXpN.js} +2 -2
  50. package/dist/{catalog-D7lA7mT_.js → catalog--64fgdzd.js} +1 -1
  51. package/dist/{catalogSetting-O0tJo-T7.js → catalogSetting-CplTgRmk.js} +1 -1
  52. package/dist/{currency-CHsj_J0b.js → currency-CjYkQ4FL.js} +1 -1
  53. package/dist/{dayjs.min-DeBV2WG7.js → dayjs.min-DCMtwvjf.js} +2 -2
  54. package/dist/{discardConfirm-CYxTrfx-.js → discardConfirm-DOc0ieeO.js} +1 -1
  55. package/dist/{index-BFldIBpf.js → index-BrtZ42qx.js} +6 -6
  56. package/dist/{index-DQUODrNy.js → index-CTA48kW2.js} +1 -1
  57. package/dist/{index-D5gtDsAd.js → index-Dw_Fw5ni.js} +5 -5
  58. package/dist/{index.vue_vue_type_script_setup_true_lang-C7ZQI7Ck.js → index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js} +10760 -10755
  59. package/dist/{item-KLAdfYvM.js → item-DL0lbXPC.js} +592 -586
  60. package/dist/{jszip.min-Vn2-CH88.js → jszip.min-CTn9qnAT.js} +167 -167
  61. package/dist/{linkProducts-BC3LTMzZ.js → linkProducts-DNPyRjOC.js} +4 -4
  62. package/dist/{memberPricing-CoFY9U1J.js → memberPricing-ByMD7Sun.js} +1 -1
  63. package/dist/{menu-BwtqZ_Yz.js → menu-C77otNXH.js} +1 -1
  64. package/dist/{menuV2-Cadt2gJu.js → menuV2-Bi_EMfOM.js} +38 -38
  65. package/dist/mf-menu.css +1 -1
  66. package/dist/{order_pacing-Dr7DHsai.js → order_pacing-29v64nh0.js} +5 -5
  67. package/dist/{priceTier-DnD28JYo.js → priceTier-BscL3YjX.js} +1 -1
  68. package/dist/{rules-BL4uMD7m.js → rules-BYL-otiB.js} +3 -3
  69. package/dist/{scheduler-B0UE4CHB.js → scheduler-Cqvnr0u1.js} +166 -166
  70. package/dist/{toExcel-OdTMnhFs.js → toExcel-421pbm-Z.js} +2 -2
  71. package/dist/{unit-MUk9trKB.js → unit-DDtyAbV0.js} +3 -3
  72. package/package.json +2 -2
  73. package/dist/Publish-ZTiUf2NT.js +0 -1565
@@ -1,71 +1,71 @@
1
- import { defineComponent as ce, computed as T, resolveComponent as p, createElementBlock as r, openBlock as u, createVNode as t, createCommentVNode as V, unref as a, toDisplayString as D, createElementVNode as y, withCtx as m, Fragment as $, renderList as I, createBlock as K, ref as Y, Transition as de, createTextVNode as _e } from "vue";
2
- import { u as he, l as ge } from "./discardConfirm-CYxTrfx-.js";
3
- import { d as w, z as U, u as Ve, F as ke, A as H, g as ie, h as re, P as me } from "./index.vue_vue_type_script_setup_true_lang-C7ZQI7Ck.js";
4
- import { useI18n as pe, useAppLocale as Fe, prefersHour12 as be } from "@feedmepos/mf-common";
5
- import { components as xe } from "@feedmepos/ui-library";
6
- import { _ as Ce } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
7
- import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-DMRyx0V7.js";
8
- import { u as Se } from "./menu-BwtqZ_Yz.js";
9
- import { L as we } from "./LinkProductSideSheet-DvzRszmI.js";
10
- const Pe = { class: "space-y-8" }, Ee = {
1
+ import { defineComponent as ce, computed as T, resolveComponent as p, createElementBlock as r, openBlock as s, createVNode as t, createCommentVNode as k, unref as a, toDisplayString as D, createElementVNode as y, withCtx as m, Fragment as $, renderList as N, createBlock as Y, ref as L, Transition as de, createTextVNode as he } from "vue";
2
+ import { u as ge, l as Ve } from "./discardConfirm-DOc0ieeO.js";
3
+ import { d as w, z as U, u as ke, F as Fe, A as q, g as ie, h as re, P as me } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
4
+ import { useI18n as pe, useAppLocale as be, prefersHour12 as xe } from "@feedmepos/mf-common";
5
+ import { components as Ce } from "@feedmepos/ui-library";
6
+ import { _ as Se } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
7
+ import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-D9i9tMAj.js";
8
+ import { u as we } from "./menu-C77otNXH.js";
9
+ import { L as Pe } from "./LinkProductSideSheet-ClMiajzX.js";
10
+ const Ee = { class: "space-y-8" }, Ue = {
11
11
  key: 0,
12
12
  class: "space-y-16"
13
- }, Ue = { key: 0 }, Te = {
13
+ }, Te = { key: 0 }, De = {
14
14
  key: 1,
15
15
  class: "flex items-center"
16
- }, De = { class: "flex flex-row items-center gap-8" }, $e = { class: "flex flex-1 flex-wrap flex-row items-center gap-4" }, Ae = { key: 0 }, Oe = { class: "w-[120px]" }, Re = "code", Ne = /* @__PURE__ */ ce({
16
+ }, $e = { class: "flex flex-row items-center gap-8" }, Ae = { class: "flex flex-1 flex-wrap flex-row items-center gap-4" }, Oe = { key: 0 }, Re = { class: "w-[120px]" }, Ne = "code", Ie = /* @__PURE__ */ ce({
17
17
  __name: "FilterForm",
18
18
  props: {
19
19
  modelValue: {}
20
20
  },
21
21
  emits: ["update:modelValue"],
22
- setup(g, { emit: X }) {
23
- const v = g, e = X, { categories: M } = Se(), j = T(() => M.value.map((s) => s.id === null ? { label: s.name, value: "" } : {
24
- label: s.name,
25
- value: s.id
26
- })), Z = (s) => {
27
- s ? e("update:modelValue", []) : e("update:modelValue", void 0);
28
- }, { t: _ } = pe(), ee = [
22
+ setup(g, { emit: J }) {
23
+ const v = g, e = J, { categories: I } = we(), W = T(() => I.value.map((u) => u.id === null ? { label: u.name, value: "" } : {
24
+ label: u.name,
25
+ value: u.id
26
+ })), H = (u) => {
27
+ u ? e("update:modelValue", []) : e("update:modelValue", void 0);
28
+ }, { t: _ } = pe(), X = [
29
29
  { label: _("menu.scheduler.dialog.sections.filter.types.code"), value: "code" },
30
30
  { label: _("menu.scheduler.dialog.sections.filter.types.category"), value: "category" }
31
- ], z = () => {
32
- e("update:modelValue", [...v.modelValue || [], { type: Re, value: [""] }]);
33
- }, le = (s) => {
34
- const d = w(v.modelValue || []);
35
- d.splice(s, 1), e("update:modelValue", d);
36
- }, te = (s, d) => {
31
+ ], Z = () => {
32
+ e("update:modelValue", [...v.modelValue || [], { type: Ne, value: [""] }]);
33
+ }, M = (u) => {
37
34
  const c = w(v.modelValue || []);
38
- c[s].type = d, d === "category" ? c[s].value = [] : c[s].value = [""], e("update:modelValue", c);
39
- }, x = (s) => {
35
+ c.splice(u, 1), e("update:modelValue", c);
36
+ }, ee = (u, c) => {
40
37
  const d = w(v.modelValue || []);
41
- d[s].value.push(""), e("update:modelValue", d);
42
- }, G = (s, d) => {
43
- const c = w(v.modelValue || []);
44
- c[s].value.splice(d, 1), e("update:modelValue", c);
45
- }, o = (s, d) => {
38
+ d[u].type = c, c === "category" ? d[u].value = [] : d[u].value = [""], e("update:modelValue", d);
39
+ }, le = (u) => {
46
40
  const c = w(v.modelValue || []);
47
- c[s].value = d, e("update:modelValue", c);
48
- }, P = (s, d, c) => {
41
+ c[u].value.push(""), e("update:modelValue", c);
42
+ }, x = (u, c) => {
43
+ const d = w(v.modelValue || []);
44
+ d[u].value.splice(c, 1), e("update:modelValue", d);
45
+ }, K = (u, c) => {
46
+ const d = w(v.modelValue || []);
47
+ d[u].value = c, e("update:modelValue", d);
48
+ }, o = (u, c, d) => {
49
49
  const A = w(v.modelValue || []);
50
- A[s].value[d] = c, e("update:modelValue", A);
50
+ A[u].value[c] = d, e("update:modelValue", A);
51
51
  };
52
- return (s, d) => {
53
- var L, q;
54
- const c = p("FmSwitch"), A = p("FmIcon"), Q = p("FmTooltip"), B = p("FmSelect"), O = p("FmButton"), ae = p("FmTextField");
55
- return u(), r("div", Pe, [
56
- t(c, {
52
+ return (u, c) => {
53
+ var j, B;
54
+ const d = p("FmSwitch"), A = p("FmIcon"), te = p("FmTooltip"), z = p("FmSelect"), P = p("FmButton"), ae = p("FmTextField");
55
+ return s(), r("div", Ee, [
56
+ t(d, {
57
57
  "model-value": !!v.modelValue,
58
58
  value: "autoLink",
59
59
  label: a(_)("menu.scheduler.dialog.sections.autolink.label"),
60
60
  sublabel: a(_)("menu.scheduler.dialog.sections.autolink.sublabel"),
61
61
  "label-placement": "right",
62
- "onUpdate:modelValue": Z
62
+ "onUpdate:modelValue": H
63
63
  }, null, 8, ["model-value", "label", "sublabel"]),
64
- v.modelValue ? (u(), r("div", Ee, [
65
- ((L = v.modelValue) == null ? void 0 : L.length) === 0 ? (u(), r("div", Ue, D(a(_)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : V("", !0),
66
- ((q = v.modelValue) == null ? void 0 : q.length) > 0 ? (u(), r("div", Te, [
64
+ v.modelValue ? (s(), r("div", Ue, [
65
+ ((j = v.modelValue) == null ? void 0 : j.length) === 0 ? (s(), r("div", Te, D(a(_)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : k("", !0),
66
+ ((B = v.modelValue) == null ? void 0 : B.length) > 0 ? (s(), r("div", De, [
67
67
  y("div", null, D(a(_)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
68
- t(Q, {
68
+ t(te, {
69
69
  content: a(_)("menu.scheduler.dialog.sections.autolink.tooltip"),
70
70
  variant: "plain",
71
71
  "z-index": 999
@@ -79,79 +79,79 @@ const Pe = { class: "space-y-8" }, Ee = {
79
79
  ]),
80
80
  _: 1
81
81
  }, 8, ["content"])
82
- ])) : V("", !0),
83
- (u(!0), r($, null, I(v.modelValue || [], (C, k) => (u(), r("div", { key: k }, [
84
- y("div", De, [
85
- y("div", $e, [
86
- t(B, {
82
+ ])) : k("", !0),
83
+ (s(!0), r($, null, N(v.modelValue || [], (C, V) => (s(), r("div", { key: V }, [
84
+ y("div", $e, [
85
+ y("div", Ae, [
86
+ t(z, {
87
87
  "model-value": C.type,
88
- items: ee,
89
- "onUpdate:modelValue": (F) => te(k, F)
88
+ items: X,
89
+ "onUpdate:modelValue": (F) => ee(V, F)
90
90
  }, null, 8, ["model-value", "onUpdate:modelValue"]),
91
91
  y("div", null, D(a(_)("menu.scheduler.dialog.sections.filter.matches")), 1),
92
- C.type === "category" ? (u(), K(B, {
92
+ C.type === "category" ? (s(), Y(z, {
93
93
  key: 0,
94
94
  "model-value": C.value,
95
- "onUpdate:modelValue": (F) => o(k, F),
96
- items: j.value || [],
95
+ "onUpdate:modelValue": (F) => K(V, F),
96
+ items: W.value || [],
97
97
  multiselect: "",
98
98
  placeholder: a(_)("menu.scheduler.dialog.sections.filter.placeholder.category")
99
- }, null, 8, ["model-value", "onUpdate:modelValue", "items", "placeholder"])) : (u(), r($, { key: 1 }, [
100
- (u(!0), r($, null, I(C.value, (F, R) => (u(), r("div", {
99
+ }, null, 8, ["model-value", "onUpdate:modelValue", "items", "placeholder"])) : (s(), r($, { key: 1 }, [
100
+ (s(!0), r($, null, N(C.value, (F, O) => (s(), r("div", {
101
101
  class: "flex items-center gap-4",
102
- key: R
102
+ key: O
103
103
  }, [
104
- R > 0 ? (u(), r("div", Ae, D(a(_)("menu.scheduler.dialog.sections.filter.or")), 1)) : V("", !0),
105
- y("div", Oe, [
104
+ O > 0 ? (s(), r("div", Oe, D(a(_)("menu.scheduler.dialog.sections.filter.or")), 1)) : k("", !0),
105
+ y("div", Re, [
106
106
  t(ae, {
107
107
  "model-value": F,
108
- "onUpdate:modelValue": (J) => P(k, R, J)
108
+ "onUpdate:modelValue": (G) => o(V, O, G)
109
109
  }, {
110
110
  append: m(() => [
111
- C.value.length > 1 ? (u(), K(O, {
111
+ C.value.length > 1 ? (s(), Y(P, {
112
112
  key: 0,
113
113
  icon: "close",
114
- onClick: (J) => G(k, R),
114
+ onClick: (G) => x(V, O),
115
115
  variant: "tertiary"
116
- }, null, 8, ["onClick"])) : V("", !0)
116
+ }, null, 8, ["onClick"])) : k("", !0)
117
117
  ]),
118
118
  _: 2
119
119
  }, 1032, ["model-value", "onUpdate:modelValue"])
120
120
  ])
121
121
  ]))), 128)),
122
- t(O, {
122
+ t(P, {
123
123
  icon: "add",
124
- onClick: (F) => x(k),
124
+ onClick: (F) => le(V),
125
125
  variant: "tertiary"
126
126
  }, null, 8, ["onClick"])
127
127
  ], 64))
128
128
  ]),
129
- t(O, {
129
+ t(P, {
130
130
  variant: "secondary",
131
131
  icon: "delete",
132
- onClick: (F) => le(k)
132
+ onClick: (F) => M(V)
133
133
  }, null, 8, ["onClick"])
134
134
  ])
135
135
  ]))), 128)),
136
- t(O, {
136
+ t(P, {
137
137
  variant: "secondary",
138
138
  label: a(_)("menu.scheduler.dialog.sections.filter.add"),
139
- onClick: z
139
+ onClick: Z
140
140
  }, null, 8, ["label"])
141
- ])) : V("", !0)
141
+ ])) : k("", !0)
142
142
  ]);
143
143
  };
144
144
  }
145
- }), Ie = {
145
+ }), Me = {
146
146
  key: 0,
147
147
  class: "pl-32"
148
- }, Me = { class: "flex flex-wrap gap-8" }, ze = {
148
+ }, ze = { class: "flex flex-wrap gap-8" }, Be = {
149
149
  key: 0,
150
150
  class: "pl-32 flex flex-col items-start gap-16"
151
- }, Be = { class: "w-full" }, Le = {
151
+ }, Le = { class: "w-full" }, qe = {
152
152
  key: 0,
153
153
  class: "mt-8"
154
- }, qe = { class: "text-red-500 text-sm" }, Ye = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, He = { class: "px-16 py-8 flex-1" }, Ke = { class: "px-16 py-8" }, je = { class: "flex gap-8 items-center justify-start" }, al = /* @__PURE__ */ ce({
154
+ }, Ye = { class: "text-red-500 text-sm" }, He = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ke = { class: "px-16 py-8 flex-1" }, je = { class: "px-16 py-8" }, Ge = { class: "flex gap-8 items-center justify-start" }, ol = /* @__PURE__ */ ce({
155
155
  __name: "SchedulerDialog",
156
156
  props: {
157
157
  categorizedItems: {
@@ -164,13 +164,13 @@ const Pe = { class: "space-y-8" }, Ee = {
164
164
  }
165
165
  },
166
166
  emits: ["onComplete"],
167
- setup(g, { expose: X, emit: v }) {
168
- const { t: e } = pe(), { locale: M } = Fe(), j = T(() => be(M.value)), Z = g;
169
- X({
170
- show: s,
167
+ setup(g, { expose: J, emit: v }) {
168
+ const { t: e } = pe(), { locale: I, country: W } = be(), H = T(() => xe(I.value, W.value)), _ = g;
169
+ J({
170
+ show: c,
171
171
  hide: d
172
172
  });
173
- const _ = {
173
+ const X = {
174
174
  [U.enum.monday]: e("menu.scheduler.days.monday"),
175
175
  [U.enum.tuesday]: e("menu.scheduler.days.tuesday"),
176
176
  [U.enum.wednesday]: e("menu.scheduler.days.wednesday"),
@@ -178,40 +178,40 @@ const Pe = { class: "space-y-8" }, Ee = {
178
178
  [U.enum.friday]: e("menu.scheduler.days.friday"),
179
179
  [U.enum.saturday]: e("menu.scheduler.days.saturday"),
180
180
  [U.enum.sunday]: e("menu.scheduler.days.sunday")
181
- }, ee = v;
182
- function z() {
181
+ }, Z = v;
182
+ function M() {
183
183
  return {
184
184
  _id: "",
185
185
  name: "",
186
186
  items: [],
187
187
  groups: [],
188
- repeat: H.enum.daily,
188
+ repeat: q.enum.daily,
189
189
  timePeriod: [],
190
190
  weekDay: []
191
191
  };
192
192
  }
193
- const le = Ve(), te = T(() => le.version === ke.enum.v4), x = Y("all"), G = Y(z()), o = Y(z()), P = Y(!1);
194
- function s(i) {
195
- o.value = i ? w(i) : z(), G.value = w(o.value), x.value = o.value.timePeriod.length === 0 ? "all" : "custom", P.value = !0;
193
+ const ee = ke(), le = T(() => ee.version === Fe.enum.v4), x = L("all"), K = L(M()), o = L(M()), u = L(!1);
194
+ function c(i) {
195
+ o.value = i ? w(i) : M(), K.value = w(o.value), x.value = o.value.timePeriod.length === 0 ? "all" : "custom", u.value = !0;
196
196
  }
197
197
  function d() {
198
- P.value = !1;
198
+ u.value = !1;
199
199
  }
200
- function c() {
200
+ function A() {
201
201
  o.value.timePeriod.push({
202
202
  start: "00:00",
203
203
  end: "23:59"
204
204
  });
205
205
  }
206
- function A(i) {
206
+ function te(i) {
207
207
  o.value.timePeriod.splice(i, 1);
208
208
  }
209
- function Q(i) {
209
+ function z(i) {
210
210
  const [l, f] = i.split(":").map(Number);
211
211
  return l * 60 + f;
212
212
  }
213
- function B(i, l) {
214
- const f = Q(i), h = Q(l);
213
+ function P(i, l) {
214
+ const f = z(i), h = z(l);
215
215
  return f <= h ? [{ start: f, end: h }] : [
216
216
  { start: f, end: 24 * 60 - 1 },
217
217
  // Until end of day (23:59)
@@ -219,71 +219,71 @@ const Pe = { class: "space-y-8" }, Ee = {
219
219
  // From start of next day
220
220
  ];
221
221
  }
222
- function O(i, l) {
222
+ function ae(i, l) {
223
223
  return Math.max(i.start, l.start) <= Math.min(i.end, l.end);
224
224
  }
225
- function ae(i) {
225
+ function j(i) {
226
226
  if (i.length <= 1) return null;
227
227
  for (let l = 0; l < i.length; l++)
228
228
  for (let f = l + 1; f < i.length; f++) {
229
- const h = i[l], E = i[f], ne = B(h.start, h.end), W = B(E.start, E.end);
229
+ const h = i[l], E = i[f], ne = P(h.start, h.end), Q = P(E.start, E.end);
230
230
  for (const S of ne)
231
- for (const ue of W)
232
- if (O(S, ue))
231
+ for (const ue of Q)
232
+ if (ae(S, ue))
233
233
  return e("menu.scheduler.dialog.sections.period.overlap");
234
234
  }
235
235
  return null;
236
236
  }
237
- const L = Y();
238
- function q() {
237
+ const B = L();
238
+ function C() {
239
239
  return {
240
240
  ...o.value,
241
241
  timePeriod: x.value === "all" ? [] : o.value.timePeriod,
242
- weekDay: o.value.repeat === H.enum.daily ? [] : o.value.weekDay
242
+ weekDay: o.value.repeat === q.enum.daily ? [] : o.value.weekDay
243
243
  };
244
244
  }
245
- async function C() {
246
- oe.value || (ee("onComplete", q()), d());
245
+ async function V() {
246
+ oe.value || (Z("onComplete", C()), d());
247
247
  }
248
- const k = T(() => o.value._id ? e("menu.scheduler.dialog.update.title") : e("menu.scheduler.dialog.add.title")), F = T(() => o.value._id ? e("menu.scheduler.dialog.update.action") : e("menu.scheduler.dialog.add.action"));
249
- function R(i) {
248
+ const F = T(() => o.value._id ? e("menu.scheduler.dialog.update.title") : e("menu.scheduler.dialog.add.title")), O = T(() => o.value._id ? e("menu.scheduler.dialog.update.action") : e("menu.scheduler.dialog.add.action"));
249
+ function G(i) {
250
250
  o.value.items = o.value.items.filter((l) => l._id !== i);
251
251
  }
252
- const J = T(() => Z.categorizedItems.reduce((i, l) => {
252
+ const ve = T(() => _.categorizedItems.reduce((i, l) => {
253
253
  const f = l.items.filter(
254
254
  (h) => o.value.items.some(({ _id: E }) => h._id === E)
255
255
  );
256
256
  return f.length && i.push({ ...l, items: f }), i;
257
- }, [])), oe = T(() => x.value === "custom" && o.value.timePeriod.length > 0 ? ae(o.value.timePeriod) : null), ve = he(
258
- () => !ge.isEqual(G.value, q()),
257
+ }, [])), oe = T(() => x.value === "custom" && o.value.timePeriod.length > 0 ? j(o.value.timePeriod) : null), fe = ge(
258
+ () => !Ve.isEqual(K.value, C()),
259
259
  () => {
260
- P.value = !1;
260
+ u.value = !1;
261
261
  }
262
262
  );
263
263
  return (i, l) => {
264
- const f = p("FmTextField"), h = p("FmRadio"), E = p("FmRadioGroup"), ne = p("FmCheckbox"), W = p("FmTimePicker"), S = p("FmButton"), ue = p("FmSpacer"), fe = p("FmForm"), ye = p("FmSideSheet");
265
- return u(), K(ye, {
266
- modelValue: P.value,
267
- "onUpdate:modelValue": l[7] || (l[7] = (n) => P.value = n),
268
- header: k.value,
264
+ const f = p("FmTextField"), h = p("FmRadio"), E = p("FmRadioGroup"), ne = p("FmCheckbox"), Q = p("FmTimePicker"), S = p("FmButton"), ue = p("FmSpacer"), ye = p("FmForm"), _e = p("FmSideSheet");
265
+ return s(), Y(_e, {
266
+ modelValue: u.value,
267
+ "onUpdate:modelValue": l[7] || (l[7] = (n) => u.value = n),
268
+ header: F.value,
269
269
  "max-width": 560,
270
- "is-container": a(xe).FmForm,
270
+ "is-container": a(Ce).FmForm,
271
271
  "is-container-props": {
272
- onValidationSuccess: C,
272
+ onValidationSuccess: V,
273
273
  blameFormChildOnValidationFailed: !0,
274
274
  class: "flex flex-col h-full"
275
275
  },
276
- "onOn:clickedAway": a(ve)
276
+ "onOn:clickedAway": a(fe)
277
277
  }, {
278
278
  "side-sheet-footer": m(() => [
279
- y("div", je, [
279
+ y("div", Ge, [
280
280
  t(S, {
281
- label: F.value,
281
+ label: O.value,
282
282
  size: "lg",
283
283
  variant: "primary",
284
284
  onClick: l[6] || (l[6] = () => {
285
285
  var n;
286
- return (n = L.value) == null ? void 0 : n.validateInputs();
286
+ return (n = B.value) == null ? void 0 : n.validateInputs();
287
287
  })
288
288
  }, null, 8, ["label"]),
289
289
  t(S, {
@@ -295,11 +295,11 @@ const Pe = { class: "space-y-8" }, Ee = {
295
295
  ])
296
296
  ]),
297
297
  default: m(() => [
298
- t(fe, {
298
+ t(ye, {
299
299
  ref_key: "formRef",
300
- ref: L,
300
+ ref: B,
301
301
  class: "flex flex-col flex-1 overflow-hidden",
302
- onValidationSuccess: C
302
+ onValidationSuccess: V
303
303
  }, {
304
304
  default: m(() => [
305
305
  t(se, {
@@ -329,28 +329,28 @@ const Pe = { class: "space-y-8" }, Ee = {
329
329
  default: m(() => [
330
330
  t(h, {
331
331
  label: a(e)("menu.scheduler.dialog.sections.availability.daily"),
332
- value: a(H).enum.daily
332
+ value: a(q).enum.daily
333
333
  }, null, 8, ["label", "value"]),
334
334
  t(h, {
335
335
  label: a(e)("menu.scheduler.dialog.sections.availability.weekly"),
336
- value: a(H).enum.weekly
336
+ value: a(q).enum.weekly
337
337
  }, null, 8, ["label", "value"])
338
338
  ]),
339
339
  _: 1
340
340
  }, 8, ["modelValue"]),
341
341
  t(de, { name: "expand" }, {
342
342
  default: m(() => [
343
- o.value.repeat === a(H).enum.weekly ? (u(), r("div", Ie, [
344
- y("div", Me, [
345
- (u(), r($, null, I(_, (n, b) => t(ne, {
343
+ o.value.repeat === a(q).enum.weekly ? (s(), r("div", Me, [
344
+ y("div", ze, [
345
+ (s(), r($, null, N(X, (n, b) => t(ne, {
346
346
  key: b,
347
347
  modelValue: o.value.weekDay,
348
- "onUpdate:modelValue": l[2] || (l[2] = (N) => o.value.weekDay = N),
348
+ "onUpdate:modelValue": l[2] || (l[2] = (R) => o.value.weekDay = R),
349
349
  label: n,
350
350
  value: b
351
351
  }, null, 8, ["modelValue", "label", "value"])), 64))
352
352
  ])
353
- ])) : V("", !0)
353
+ ])) : k("", !0)
354
354
  ]),
355
355
  _: 1
356
356
  })
@@ -375,36 +375,36 @@ const Pe = { class: "space-y-8" }, Ee = {
375
375
  }, 8, ["label", "modelValue"]),
376
376
  t(de, { name: "expand" }, {
377
377
  default: m(() => [
378
- x.value === "custom" ? (u(), r("div", ze, [
379
- y("div", Be, [
380
- (u(!0), r($, null, I(o.value.timePeriod, (n, b) => (u(), r("div", {
378
+ x.value === "custom" ? (s(), r("div", Be, [
379
+ y("div", Le, [
380
+ (s(!0), r($, null, N(o.value.timePeriod, (n, b) => (s(), r("div", {
381
381
  key: b,
382
382
  class: "w-full flex gap-8 items-center"
383
383
  }, [
384
- t(W, {
384
+ t(Q, {
385
385
  modelValue: n.start,
386
- "onUpdate:modelValue": (N) => n.start = N,
387
- locale: a(M),
388
- hour12: j.value,
386
+ "onUpdate:modelValue": (R) => n.start = R,
387
+ locale: a(I),
388
+ hour12: H.value,
389
389
  class: "flex-1"
390
390
  }, null, 8, ["modelValue", "onUpdate:modelValue", "locale", "hour12"]),
391
- l[8] || (l[8] = _e(" - ")),
392
- t(W, {
391
+ l[8] || (l[8] = he(" - ")),
392
+ t(Q, {
393
393
  modelValue: n.end,
394
- "onUpdate:modelValue": (N) => n.end = N,
395
- locale: a(M),
396
- hour12: j.value,
394
+ "onUpdate:modelValue": (R) => n.end = R,
395
+ locale: a(I),
396
+ hour12: H.value,
397
397
  class: "flex-1"
398
398
  }, null, 8, ["modelValue", "onUpdate:modelValue", "locale", "hour12"]),
399
399
  t(S, {
400
400
  icon: "close",
401
401
  variant: "tertiary",
402
- onClick: (N) => A(b)
402
+ onClick: (R) => te(b)
403
403
  }, null, 8, ["onClick"])
404
404
  ]))), 128)),
405
- oe.value ? (u(), r("div", Le, [
406
- y("div", qe, D(oe.value), 1)
407
- ])) : V("", !0)
405
+ oe.value ? (s(), r("div", qe, [
406
+ y("div", Ye, D(oe.value), 1)
407
+ ])) : k("", !0)
408
408
  ]),
409
409
  t(S, {
410
410
  icon: "add",
@@ -412,35 +412,35 @@ const Pe = { class: "space-y-8" }, Ee = {
412
412
  variant: "secondary",
413
413
  "text-color": "primary",
414
414
  "border-color": "primary",
415
- onClick: c
415
+ onClick: A
416
416
  }, null, 8, ["label"])
417
- ])) : V("", !0)
417
+ ])) : k("", !0)
418
418
  ]),
419
419
  _: 1
420
420
  })
421
421
  ]),
422
- te.value ? (u(), K(Ce, {
422
+ le.value ? (s(), Y(Se, {
423
423
  key: 0,
424
424
  label: a(e)("menu.scheduler.dialog.sections.autolink.title")
425
425
  }, {
426
426
  default: m(() => [
427
- t(Ne, {
427
+ t(Ie, {
428
428
  modelValue: o.value.filters,
429
429
  "onUpdate:modelValue": l[4] || (l[4] = (n) => o.value.filters = n)
430
430
  }, null, 8, ["modelValue"])
431
431
  ]),
432
432
  _: 1
433
- }, 8, ["label"])) : V("", !0)
433
+ }, 8, ["label"])) : k("", !0)
434
434
  ]),
435
435
  _: 1
436
436
  }, 8, ["title"]),
437
- g.canApplyItems ? (u(), K(se, {
437
+ g.canApplyItems ? (s(), Y(se, {
438
438
  key: 0,
439
439
  title: a(e)("menu.scheduler.dialog.sections.products.title")
440
440
  }, {
441
441
  "append-title": m(() => [
442
442
  t(ue),
443
- t(we, {
443
+ t(Pe, {
444
444
  "categorized-items": g.categorizedItems,
445
445
  "initial-value": o.value.items,
446
446
  onSubmit: l[5] || (l[5] = ({ items: n }) => o.value.items = n)
@@ -459,28 +459,28 @@ const Pe = { class: "space-y-8" }, Ee = {
459
459
  }, 8, ["categorized-items", "initial-value"])
460
460
  ]),
461
461
  default: m(() => [
462
- (u(!0), r($, null, I(J.value, (n) => (u(), r("div", {
462
+ (s(!0), r($, null, N(ve.value, (n) => (s(), r("div", {
463
463
  key: n.id
464
464
  }, [
465
- y("div", Ye, D(n.name), 1),
466
- (u(!0), r($, null, I(n.items, (b) => (u(), r("div", {
465
+ y("div", He, D(n.name), 1),
466
+ (s(!0), r($, null, N(n.items, (b) => (s(), r("div", {
467
467
  key: b._id,
468
468
  class: "flex border-b border-b-gray-100 items-center"
469
469
  }, [
470
- y("div", He, D(b.name), 1),
471
- y("div", Ke, [
470
+ y("div", Ke, D(b.name), 1),
471
+ y("div", je, [
472
472
  t(S, {
473
473
  icon: "delete",
474
474
  variant: "tertiary",
475
475
  "text-color": "neutral-gray-400",
476
- onClick: () => R(b._id)
476
+ onClick: () => G(b._id)
477
477
  }, null, 8, ["onClick"])
478
478
  ])
479
479
  ]))), 128))
480
480
  ]))), 128))
481
481
  ]),
482
482
  _: 1
483
- }, 8, ["title"])) : V("", !0)
483
+ }, 8, ["title"])) : k("", !0)
484
484
  ]),
485
485
  _: 1
486
486
  }, 512)
@@ -490,21 +490,21 @@ const Pe = { class: "space-y-8" }, Ee = {
490
490
  };
491
491
  }
492
492
  });
493
- function ol(g) {
493
+ function nl(g) {
494
494
  return {
495
495
  module: re.enum.scheduler,
496
496
  operation: ie.F_OPERATION_TYPE.create,
497
497
  data: me.parse(g)
498
498
  };
499
499
  }
500
- function nl(g) {
500
+ function ul(g) {
501
501
  return {
502
502
  module: re.enum.scheduler,
503
503
  operation: ie.F_OPERATION_TYPE.update,
504
504
  data: me.parse(g)
505
505
  };
506
506
  }
507
- function ul(g) {
507
+ function sl(g) {
508
508
  return {
509
509
  module: re.enum.scheduler,
510
510
  operation: ie.F_OPERATION_TYPE.delete,
@@ -512,8 +512,8 @@ function ul(g) {
512
512
  };
513
513
  }
514
514
  export {
515
- al as _,
516
- ol as c,
517
- ul as d,
518
- nl as u
515
+ ol as _,
516
+ nl as c,
517
+ sl as d,
518
+ ul as u
519
519
  };
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-xAjv38VK.js";
2
- import "./discardConfirm-CYxTrfx-.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-EsQKUSJa.js";
2
+ import "./discardConfirm-DOc0ieeO.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,12 +1,12 @@
1
1
  import { defineStore as H } from "pinia";
2
2
  import { defineComponent as M, computed as x, ref as A, watch as S, resolveComponent as V, createBlock as J, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as C, toDisplayString as k, unref as l, Fragment as N, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { D as O, E as te, B as P, d as E, i as $, b as j, m as h, C as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-C7ZQI7Ck.js";
3
+ import { D as O, E as te, B as P, d as E, i as $, b as j, m as h, C as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-BCZZq6zJ.js";
4
4
  import { useI18n as q } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as I, components as ae, useDialog as le, FmButtonVariant as ue } from "@feedmepos/ui-library";
6
- import { u as ie, l as se } from "./discardConfirm-CYxTrfx-.js";
6
+ import { u as ie, l as se } from "./discardConfirm-DOc0ieeO.js";
7
7
  import { c as re } from "./check-C9mY6LiX.js";
8
8
  import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
9
- import "./menuV2-Cadt2gJu.js";
9
+ import "./menuV2-Bi_EMfOM.js";
10
10
  import "./app-5fxKLAzS.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";