@feedmepos/mf-menu 0.32.68 → 0.32.70
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.
- package/dist/{App-C_wzmb6P.js → App-D2qKBNOI.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DJ-Yyl-y.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DpuE1Txi.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-DHTKM2Rk.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CuhfoI6u.js} +3 -3
- package/dist/{Catalog-Brdx3vwv.js → Catalog-B8DQ8HuW.js} +6 -6
- package/dist/{Category-Kr7zDqaR.js → Category-BlfQyXMP.js} +4 -4
- package/dist/{Category-Clan4Fwx.js → Category-DXRKc5oR.js} +4 -4
- package/dist/{CookingGuide-D8K1T0Wk.js → CookingGuide-jNeTimU7.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DDAz6tmK.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BMKqOTc3.js} +1 -1
- package/dist/{Group-DkEH1W-l.js → Group-BDS80Kj0.js} +1 -1
- package/dist/{Group-DyOCkcWz.js → Group-BmU0_HFA.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CMvaZV7r.js → Group.vue_vue_type_script_setup_true_lang-hSxGRxop.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D0dxZUHg.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CUNcxRnJ.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BCKgLffo.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DjLnCfC5.js} +7 -7
- package/dist/{Ingredient-ele1Xkxq.js → Ingredient-Czl2K5rQ.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Cd5pXFbz.js → InventoryBinding.vue_vue_type_script_setup_true_lang-M8HxDzxj.js} +2 -2
- package/dist/{LinkProductSideSheet-BpRT3ZyK.js → LinkProductSideSheet-iwH-Ft7_.js} +4 -4
- package/dist/{MenuSetting-DlRwd2RR.js → MenuSetting-D-PtnHh_.js} +7 -7
- package/dist/{OrderPacing-bAAj3I9B.js → OrderPacing-DpajUDfR.js} +5 -5
- package/dist/{PrintRoute-DeiR2NvQ.js → PrintRoute-CWzUI3D1.js} +5 -5
- package/dist/{Product-VcKOCdv9.js → Product-C341g4w7.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Bz5Rr6Oo.js → Product.vue_vue_type_script_setup_true_lang-BRLo39YE.js} +14 -14
- package/dist/{ProductInternalTools-BnMKscNT.js → ProductInternalTools-BUku68VS.js} +6 -6
- package/dist/{Products-DFyBBzjn.js → Products-Dco1XgQd.js} +56 -56
- package/dist/Publish-sDveejeh.js +1581 -0
- package/dist/{Recipe-DFeTDvuk.js → Recipe-MfXgmqtt.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BX-hs3g7.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-vtJwWImA.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-D7TpK5fD.js → RuleView.vue_vue_type_script_setup_true_lang-ZnrzCXu3.js} +193 -193
- package/dist/{Scheduler-CacvSBtZ.js → Scheduler-DKyhr6p8.js} +65 -64
- package/dist/{ServingSequence-Dg0-u71Y.js → ServingSequence-nEoPok72.js} +3 -3
- package/dist/{Setting-BBVrC3ML.js → Setting-RWyx1jq2.js} +5 -5
- package/dist/{Subcategory-RhioZvac.js → Subcategory-B0smFoMD.js} +6 -6
- package/dist/{Takeaway-C_Yocsm8.js → Takeaway-BVMZewQ0.js} +4 -4
- package/dist/{Takeaway-DyIJ2dAt.js → Takeaway-BpwBR54Y.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-iIM7kEEk.js → Takeaway.vue_vue_type_script_setup_true_lang-BTnFR11p.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CyhcbrTQ.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-KNIxHJsf.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DQelKdQf.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-Dznh3-H8.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BN7PkI9l.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-k3m88FlR.js} +15 -15
- package/dist/{Unit-bu2YYoAr.js → Unit-BzbHDW_L.js} +2 -2
- package/dist/{Variant-D4HSAKaA.js → Variant-BF_zXLDM.js} +3 -3
- package/dist/{_id_-TNWD2yHG.js → _id_-BjGIzI2V.js} +10 -10
- package/dist/{app-D8hc9pO3.js → app-DDrm4hOt.js} +32 -32
- package/dist/{app-BwvStTgj.js → app-qoGPYaSq.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/feature/publish.d.ts +2 -2
- package/dist/assets/{linked-status-D3zBIZmV.js → linked-status-CXL9skR7.js} +4 -4
- package/dist/assets/{menu-export-DKP_2V0H.js → menu-export-rYnoju7h.js} +3 -3
- package/dist/assets/{override-menu-C_m4eXlt.js → override-menu-D1btUpWP.js} +4 -4
- package/dist/assets/{validate-menu-DF53PcFi.js → validate-menu-R6zi6RGb.js} +3 -3
- package/dist/{catalog-sB0wljWA.js → catalog-ByfbV1WF.js} +1 -1
- package/dist/{catalogSetting-DnRDwn_7.js → catalogSetting-qvKbsi8t.js} +1 -1
- package/dist/{currency-CJMH7GL8.js → currency-C5kmu6Ku.js} +1 -1
- package/dist/{dayjs.min-BPMljI-8.js → dayjs.min-D3WVCWf8.js} +2 -2
- package/dist/{discardConfirm-DVc_4r3v.js → discardConfirm-rDbUqsKj.js} +1 -1
- package/dist/{index-D02xcA-8.js → index-B2Hnb8WK.js} +6 -6
- package/dist/{index-BuyOfZQk.js → index-BoVuN9fk.js} +5 -5
- package/dist/{index-C3-Fsu9G.js → index-COu9fsyr.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-kdkFlB2a.js → index.vue_vue_type_script_setup_true_lang-Wm3L_CDm.js} +439 -439
- package/dist/{item-4qAhCGxc.js → item-CcaqdD88.js} +19 -19
- package/dist/{jszip.min-C7GdBMKl.js → jszip.min-B-GfzNS3.js} +384 -384
- package/dist/{linkProducts-Xj0pwao2.js → linkProducts-DXSk9ntt.js} +4 -4
- package/dist/{memberPricing-DrnYW8GA.js → memberPricing-Bmv0qRtK.js} +1 -1
- package/dist/{menu-AX8l-jmp.js → menu-BLbZDh7_.js} +1 -1
- package/dist/{menuV2-DyTvIOlq.js → menuV2-BSGYEEJI.js} +44 -44
- package/dist/{order_pacing-0tZW1wH_.js → order_pacing-DLrwnijs.js} +5 -5
- package/dist/{priceTier-C3S0kEKr.js → priceTier-Bw0-wJJ0.js} +1 -1
- package/dist/{rules-BrCS7pk7.js → rules-Ciu45JMO.js} +3 -3
- package/dist/{scheduler-Dgi_Z-de.js → scheduler-DYZ2PnDh.js} +166 -166
- package/dist/{toExcel-BmRSTeYh.js → toExcel-D6Rp5oOB.js} +2 -2
- package/dist/{unit-fWmA4WXX.js → unit-BR60ZgDQ.js} +3 -3
- package/package.json +2 -2
- package/dist/Publish-hJOLwfsE.js +0 -1565
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { defineComponent as ce, computed as T, resolveComponent as p, createElementBlock as r, openBlock as
|
|
2
|
-
import { u as
|
|
3
|
-
import { d as w, z as U, u as
|
|
4
|
-
import { useI18n as pe, useAppLocale as
|
|
5
|
-
import { components as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as se } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as
|
|
9
|
-
import { L as
|
|
10
|
-
const
|
|
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-rDbUqsKj.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-Wm3L_CDm.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-ZnrzCXu3.js";
|
|
8
|
+
import { u as we } from "./menu-BLbZDh7_.js";
|
|
9
|
+
import { L as Pe } from "./LinkProductSideSheet-iwH-Ft7_.js";
|
|
10
|
+
const Ee = { class: "space-y-8" }, Ue = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
13
|
-
},
|
|
13
|
+
}, Te = { key: 0 }, De = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "flex items-center"
|
|
16
|
-
},
|
|
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:
|
|
23
|
-
const v = g, e =
|
|
24
|
-
label:
|
|
25
|
-
value:
|
|
26
|
-
})),
|
|
27
|
-
|
|
28
|
-
}, { t: _ } = pe(),
|
|
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
|
-
],
|
|
32
|
-
e("update:modelValue", [...v.modelValue || [], { type:
|
|
33
|
-
},
|
|
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
|
|
39
|
-
},
|
|
35
|
+
c.splice(u, 1), e("update:modelValue", c);
|
|
36
|
+
}, ee = (u, c) => {
|
|
40
37
|
const d = w(v.modelValue || []);
|
|
41
|
-
d[
|
|
42
|
-
},
|
|
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[
|
|
48
|
-
},
|
|
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[
|
|
50
|
+
A[u].value[c] = d, e("update:modelValue", A);
|
|
51
51
|
};
|
|
52
|
-
return (
|
|
53
|
-
var
|
|
54
|
-
const
|
|
55
|
-
return
|
|
56
|
-
t(
|
|
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":
|
|
62
|
+
"onUpdate:modelValue": H
|
|
63
63
|
}, null, 8, ["model-value", "label", "sublabel"]),
|
|
64
|
-
v.modelValue ? (
|
|
65
|
-
((
|
|
66
|
-
((
|
|
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(
|
|
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
|
-
])) :
|
|
83
|
-
(
|
|
84
|
-
y("div",
|
|
85
|
-
y("div",
|
|
86
|
-
t(
|
|
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:
|
|
89
|
-
"onUpdate:modelValue": (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" ? (
|
|
92
|
+
C.type === "category" ? (s(), Y(z, {
|
|
93
93
|
key: 0,
|
|
94
94
|
"model-value": C.value,
|
|
95
|
-
"onUpdate:modelValue": (F) =>
|
|
96
|
-
items:
|
|
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"])) : (
|
|
100
|
-
(
|
|
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:
|
|
102
|
+
key: O
|
|
103
103
|
}, [
|
|
104
|
-
|
|
105
|
-
y("div",
|
|
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": (
|
|
108
|
+
"onUpdate:modelValue": (G) => o(V, O, G)
|
|
109
109
|
}, {
|
|
110
110
|
append: m(() => [
|
|
111
|
-
C.value.length > 1 ? (
|
|
111
|
+
C.value.length > 1 ? (s(), Y(P, {
|
|
112
112
|
key: 0,
|
|
113
113
|
icon: "close",
|
|
114
|
-
onClick: (
|
|
114
|
+
onClick: (G) => x(V, O),
|
|
115
115
|
variant: "tertiary"
|
|
116
|
-
}, null, 8, ["onClick"])) :
|
|
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(
|
|
122
|
+
t(P, {
|
|
123
123
|
icon: "add",
|
|
124
|
-
onClick: (F) =>
|
|
124
|
+
onClick: (F) => le(V),
|
|
125
125
|
variant: "tertiary"
|
|
126
126
|
}, null, 8, ["onClick"])
|
|
127
127
|
], 64))
|
|
128
128
|
]),
|
|
129
|
-
t(
|
|
129
|
+
t(P, {
|
|
130
130
|
variant: "secondary",
|
|
131
131
|
icon: "delete",
|
|
132
|
-
onClick: (F) =>
|
|
132
|
+
onClick: (F) => M(V)
|
|
133
133
|
}, null, 8, ["onClick"])
|
|
134
134
|
])
|
|
135
135
|
]))), 128)),
|
|
136
|
-
t(
|
|
136
|
+
t(P, {
|
|
137
137
|
variant: "secondary",
|
|
138
138
|
label: a(_)("menu.scheduler.dialog.sections.filter.add"),
|
|
139
|
-
onClick:
|
|
139
|
+
onClick: Z
|
|
140
140
|
}, null, 8, ["label"])
|
|
141
|
-
])) :
|
|
141
|
+
])) : k("", !0)
|
|
142
142
|
]);
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
}),
|
|
145
|
+
}), Me = {
|
|
146
146
|
key: 0,
|
|
147
147
|
class: "pl-32"
|
|
148
|
-
},
|
|
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
|
-
},
|
|
151
|
+
}, Le = { class: "w-full" }, qe = {
|
|
152
152
|
key: 0,
|
|
153
153
|
class: "mt-8"
|
|
154
|
-
},
|
|
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:
|
|
168
|
-
const { t: e } = pe(), { locale:
|
|
169
|
-
|
|
170
|
-
show:
|
|
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
|
-
},
|
|
182
|
-
function
|
|
181
|
+
}, Z = v;
|
|
182
|
+
function M() {
|
|
183
183
|
return {
|
|
184
184
|
_id: "",
|
|
185
185
|
name: "",
|
|
186
186
|
items: [],
|
|
187
187
|
groups: [],
|
|
188
|
-
repeat:
|
|
188
|
+
repeat: q.enum.daily,
|
|
189
189
|
timePeriod: [],
|
|
190
190
|
weekDay: []
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
o.value = i ? w(i) :
|
|
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
|
-
|
|
198
|
+
u.value = !1;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
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
|
|
206
|
+
function te(i) {
|
|
207
207
|
o.value.timePeriod.splice(i, 1);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function z(i) {
|
|
210
210
|
const [l, f] = i.split(":").map(Number);
|
|
211
211
|
return l * 60 + f;
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
const f =
|
|
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
|
|
222
|
+
function ae(i, l) {
|
|
223
223
|
return Math.max(i.start, l.start) <= Math.min(i.end, l.end);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
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 =
|
|
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
|
|
232
|
-
if (
|
|
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
|
|
238
|
-
function
|
|
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 ===
|
|
242
|
+
weekDay: o.value.repeat === q.enum.daily ? [] : o.value.weekDay
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
async function
|
|
246
|
-
oe.value || (
|
|
245
|
+
async function V() {
|
|
246
|
+
oe.value || (Z("onComplete", C()), d());
|
|
247
247
|
}
|
|
248
|
-
const
|
|
249
|
-
function
|
|
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
|
|
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 ?
|
|
258
|
-
() => !
|
|
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
|
-
|
|
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"),
|
|
265
|
-
return
|
|
266
|
-
modelValue:
|
|
267
|
-
"onUpdate:modelValue": l[7] || (l[7] = (n) =>
|
|
268
|
-
header:
|
|
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(
|
|
270
|
+
"is-container": a(Ce).FmForm,
|
|
271
271
|
"is-container-props": {
|
|
272
|
-
onValidationSuccess:
|
|
272
|
+
onValidationSuccess: V,
|
|
273
273
|
blameFormChildOnValidationFailed: !0,
|
|
274
274
|
class: "flex flex-col h-full"
|
|
275
275
|
},
|
|
276
|
-
"onOn:clickedAway": a(
|
|
276
|
+
"onOn:clickedAway": a(fe)
|
|
277
277
|
}, {
|
|
278
278
|
"side-sheet-footer": m(() => [
|
|
279
|
-
y("div",
|
|
279
|
+
y("div", Ge, [
|
|
280
280
|
t(S, {
|
|
281
|
-
label:
|
|
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 =
|
|
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(
|
|
298
|
+
t(ye, {
|
|
299
299
|
ref_key: "formRef",
|
|
300
|
-
ref:
|
|
300
|
+
ref: B,
|
|
301
301
|
class: "flex flex-col flex-1 overflow-hidden",
|
|
302
|
-
onValidationSuccess:
|
|
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(
|
|
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(
|
|
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(
|
|
344
|
-
y("div",
|
|
345
|
-
(
|
|
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] = (
|
|
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
|
-
])) :
|
|
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" ? (
|
|
379
|
-
y("div",
|
|
380
|
-
(
|
|
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(
|
|
384
|
+
t(Q, {
|
|
385
385
|
modelValue: n.start,
|
|
386
|
-
"onUpdate:modelValue": (
|
|
387
|
-
locale: a(
|
|
388
|
-
hour12:
|
|
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] =
|
|
392
|
-
t(
|
|
391
|
+
l[8] || (l[8] = he(" - ")),
|
|
392
|
+
t(Q, {
|
|
393
393
|
modelValue: n.end,
|
|
394
|
-
"onUpdate:modelValue": (
|
|
395
|
-
locale: a(
|
|
396
|
-
hour12:
|
|
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: (
|
|
402
|
+
onClick: (R) => te(b)
|
|
403
403
|
}, null, 8, ["onClick"])
|
|
404
404
|
]))), 128)),
|
|
405
|
-
oe.value ? (
|
|
406
|
-
y("div",
|
|
407
|
-
])) :
|
|
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:
|
|
415
|
+
onClick: A
|
|
416
416
|
}, null, 8, ["label"])
|
|
417
|
-
])) :
|
|
417
|
+
])) : k("", !0)
|
|
418
418
|
]),
|
|
419
419
|
_: 1
|
|
420
420
|
})
|
|
421
421
|
]),
|
|
422
|
-
|
|
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(
|
|
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"])) :
|
|
433
|
+
}, 8, ["label"])) : k("", !0)
|
|
434
434
|
]),
|
|
435
435
|
_: 1
|
|
436
436
|
}, 8, ["title"]),
|
|
437
|
-
g.canApplyItems ? (
|
|
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(
|
|
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
|
-
(
|
|
462
|
+
(s(!0), r($, null, N(ve.value, (n) => (s(), r("div", {
|
|
463
463
|
key: n.id
|
|
464
464
|
}, [
|
|
465
|
-
y("div",
|
|
466
|
-
(
|
|
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",
|
|
471
|
-
y("div",
|
|
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: () =>
|
|
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"])) :
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
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-
|
|
2
|
-
import "./discardConfirm-
|
|
1
|
+
import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DjLnCfC5.js";
|
|
2
|
+
import "./discardConfirm-rDbUqsKj.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-
|
|
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-Wm3L_CDm.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-
|
|
6
|
+
import { u as ie, l as se } from "./discardConfirm-rDbUqsKj.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-
|
|
9
|
+
import "./menuV2-BSGYEEJI.js";
|
|
10
10
|
import "./app-5fxKLAzS.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|