@feedmepos/mf-menu 1.0.0 → 1.0.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-Dx2igC7a.js → App-CXamBqwS.js} +3 -3
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BFZokcY6.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js} +1 -1
- package/dist/{BindingTable.vue_vue_type_script_setup_true_lang-Cqo6_VtR.js → BindingTable.vue_vue_type_script_setup_true_lang-DzNuoUmQ.js} +1 -1
- package/dist/{Catalog-B-RloKQ4.js → Catalog-BHb5ZB6_.js} +4 -4
- package/dist/{CatalogBinding-CgIYwGGu.js → CatalogBinding-X-AHRvcJ.js} +3 -3
- package/dist/{CatalogEditTabs.vue_vue_type_script_setup_true_lang-DKHW_Iqx.js → CatalogEditTabs.vue_vue_type_script_setup_true_lang-NFeJpXLh.js} +3 -3
- package/dist/{CatalogEditor.vue_vue_type_script_setup_true_lang-BJXpYF1Z.js → CatalogEditor.vue_vue_type_script_setup_true_lang-CrrkUkfD.js} +7 -7
- package/dist/{CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-Oo24DDWy.js → CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-C43Ettr2.js} +3 -3
- package/dist/{Category-Buu8cQY6.js → Category-DsTyhvYK.js} +5 -5
- package/dist/{Category-Bk6LDBUg.js → Category-MXhBgKnb.js} +2 -2
- package/dist/{CategoryList.vue_vue_type_script_setup_true_lang-BF6z8ULI.js → CategoryList.vue_vue_type_script_setup_true_lang-BJTKjE25.js} +5 -5
- package/dist/{CookingGuide-Cf029w_4.js → CookingGuide-yBqMRWrs.js} +82 -82
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js +1774 -0
- package/dist/{Group-tqaxMELg.js → Group-CMKmmN3C.js} +5 -5
- package/dist/{Group-DEcK54PQ.js → Group-DINfX6Wn.js} +2 -2
- package/dist/{GroupList.vue_vue_type_script_setup_true_lang-BROG27Yx.js → GroupList.vue_vue_type_script_setup_true_lang-BEBZmPdu.js} +7 -7
- package/dist/{Ingredient-DB25SQ_o.js → Ingredient-BNQ2LIqN.js} +3 -3
- package/dist/{LinkProductSideSheet.vue_vue_type_script_setup_true_lang-BAp_X51e.js → LinkProductSideSheet.vue_vue_type_script_setup_true_lang-B8n517dM.js} +16 -16
- package/dist/{MenuSetting-DUYQvadY.js → MenuSetting-DARGZW4u.js} +62 -62
- package/dist/{OrderPacing-CjUkaRbu.js → OrderPacing-DuGDpSLN.js} +6 -6
- package/dist/{OrderPacingFields.vue_vue_type_script_setup_true_lang-DJXhbkeG.js → OrderPacingFields.vue_vue_type_script_setup_true_lang-2V1SiXyH.js} +2 -2
- package/dist/{PriceTierNotice.vue_vue_type_script_setup_true_lang-gfsuBoHt.js → PriceTierNotice.vue_vue_type_script_setup_true_lang-hbG9eqTr.js} +1 -1
- package/dist/{PrintRoute-CysE-4tE.js → PrintRoute-N0gXx2Wx.js} +4 -4
- package/dist/{Product-iVtmB1C8.js → Product-Cp2dYxav.js} +4 -4
- package/dist/{ProductEditorHost.vue_vue_type_script_setup_true_lang-B7eUmZuN.js → ProductEditorHost.vue_vue_type_script_setup_true_lang-imCNnKvi.js} +2 -2
- package/dist/{ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-b8DaMgRx.js → ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BqZ2jz39.js} +4 -4
- package/dist/{ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-B5vq5hbc.js → ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-KrQJLxU2.js} +1 -1
- package/dist/{ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-C1ghNMTf.js → ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-i0smKuFw.js} +11 -11
- package/dist/{ProductInternalTools-BQDxL6qv.js → ProductInternalTools-CJG8TsE4.js} +2 -2
- package/dist/{ProductInventoryDialog-W1F98eXc.js → ProductInventoryDialog-DmN4sXP_.js} +1 -1
- package/dist/{ProductInventoryDialog.vue_vue_type_script_setup_true_lang-Cp4ZIcMK.js → ProductInventoryDialog.vue_vue_type_script_setup_true_lang-UOIkIylV.js} +1 -1
- package/dist/{ProductList.vue_vue_type_script_setup_true_lang-B1N4e-Kd.js → ProductList.vue_vue_type_script_setup_true_lang-C262_Dsq.js} +9 -9
- package/dist/{ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-DengE8Aj.js → ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-wTwunTLr.js} +1 -1
- package/dist/{Products-C9O4viX6.js → Products-BSthFwvC.js} +3 -3
- package/dist/{Publish-B2-c2SAA.js → Publish-BcUXfV7Z.js} +3 -3
- package/dist/{Recipe-CU9raTsa.js → Recipe-Nhmop5G3.js} +3 -3
- package/dist/{Scheduler-BE0dziMd.js → Scheduler-DEMpmXNY.js} +4 -4
- package/dist/{ServingSequence-Bd99-lK0.js → ServingSequence-Dkd70bsy.js} +2 -2
- package/dist/{Setting-CEPdYW3h.js → Setting-LWEFUdQK.js} +6 -6
- package/dist/{Subcategory-BdcLXhuv.js → Subcategory-YvAbjlgi.js} +2 -2
- package/dist/{Takeaway-CmEdi9LZ.js → Takeaway-CoK-aka9.js} +2 -2
- package/dist/{Takeaway-DbAA4-wL.js → Takeaway-DUoXWAQT.js} +5 -5
- package/dist/{TakeawayList.vue_vue_type_script_setup_true_lang-b2AoUuPc.js → TakeawayList.vue_vue_type_script_setup_true_lang-D4xu-gHa.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ByHzS1zz.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-1iGMM-Xt.js} +7 -7
- package/dist/{Unit-Di23l3Rf.js → Unit-BIoPBeiP.js} +2 -2
- package/dist/{Variant-CrMulK0_.js → Variant-X4llcQO6.js} +19 -19
- package/dist/{_id_-B-xHjH3V.js → _id_-gKOWPBVp.js} +3 -3
- package/dist/{app-BiteOZSg.js → app-DUyvBFfY.js} +49 -69
- package/dist/app.js +2 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{menu-compute-Cf88Yt0l.js → menu-compute--bTrGqr1.js} +2 -2
- package/dist/assets/{validate-menu-DEpbyLnq.js → validate-menu-mv20U_e_.js} +2 -2
- package/dist/{provide-DHcnZPMQ.js → provide-CxmHxIEV.js} +4 -4
- package/dist/{useActionFeedback-B8L3Gpei.js → useActionFeedback-Di6FGqLG.js} +1 -1
- package/package.json +1 -1
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-DMTby3OA.js +0 -4473
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as l, computed as d, resolveComponent as p, openBlock as _, createBlock as f, unref as a, withCtx as e, createVNode as t } from "vue";
|
|
2
2
|
import { useRoute as g, RouterLink as k } from "vue-router";
|
|
3
3
|
import { useI18n as h } from "@feedmepos/mf-common";
|
|
4
|
-
import { _ as v } from "./GroupList.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as b } from "./CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { R } from "./app-
|
|
7
|
-
import { a as B, u as C } from "./provide-
|
|
8
|
-
import { _ as w } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as v } from "./GroupList.vue_vue_type_script_setup_true_lang-BEBZmPdu.js";
|
|
5
|
+
import { _ as b } from "./CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-C43Ettr2.js";
|
|
6
|
+
import { R } from "./app-DUyvBFfY.js";
|
|
7
|
+
import { a as B, u as C } from "./provide-CxmHxIEV.js";
|
|
8
|
+
import { _ as w } from "./CatalogEditTabs.vue_vue_type_script_setup_true_lang-NFeJpXLh.js";
|
|
9
9
|
const S = /* @__PURE__ */ l({
|
|
10
10
|
__name: "Group",
|
|
11
11
|
setup(x) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as r, createBlock as n, unref as s } from "vue";
|
|
2
|
-
import { _ as t } from "./GroupList.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { a as _ } from "./provide-
|
|
2
|
+
import { _ as t } from "./GroupList.vue_vue_type_script_setup_true_lang-BEBZmPdu.js";
|
|
3
|
+
import { a as _ } from "./provide-CxmHxIEV.js";
|
|
4
4
|
const d = /* @__PURE__ */ o({
|
|
5
5
|
__name: "Group",
|
|
6
6
|
setup(a) {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { defineComponent as hl, ref as $, watch as je, resolveComponent as F, openBlock as c, createBlock as h, withCtx as m, createElementVNode as d, createVNode as o, normalizeClass as ml, toDisplayString as y, unref as t, createElementBlock as b, Fragment as K, renderList as te, createCommentVNode as f, defineAsyncComponent as ql, computed as C, shallowRef as N, h as r, withModifiers as R, onUnmounted as Hl, renderSlot as Se, withDirectives as Ql } from "vue";
|
|
2
2
|
import { useI18n as kl, CustomAttributesForm as cl } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as Zl, useSnackbar as Jl, components as v, SnackbarPosition as Wl, FmButtonVariant as pl } from "@feedmepos/ui-library";
|
|
4
|
-
import { _ as Xl } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as Xl } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js";
|
|
5
5
|
import { _ as vl } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
6
6
|
import { a as ea, b as gl, _ as Y } from "./TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js";
|
|
7
|
-
import { A as bl, _ as fl } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { a as Be, _ as ce } from "./FormSection.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { A as bl, _ as fl } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-B8n517dM.js";
|
|
8
|
+
import { a as Be, _ as ce } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
9
9
|
import { _ as Ge } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
10
|
-
import { _ as yl, a as _l, c as wl, F as Re, b as la, d as aa } from "./ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as yl, a as _l, c as wl, F as Re, b as la, d as aa } from "./ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-BqZ2jz39.js";
|
|
11
11
|
import { _ as ta } from "./ListCountTag.vue_vue_type_script_setup_true_lang-0bjk8Aly.js";
|
|
12
12
|
import { _ as oa } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
13
13
|
import { _ as na } from "./ProductChipSummary.vue_vue_type_script_setup_true_lang-D8DygCBl.js";
|
|
14
14
|
import { _ as sa } from "./ProductFilterMenu.vue_vue_type_script_setup_true_lang-Cgc0Ms_n.js";
|
|
15
15
|
import { _ as ia } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js";
|
|
16
|
-
import { u as ra } from "./useActionFeedback-
|
|
17
|
-
import { b as ua, u as xl } from "./provide-
|
|
16
|
+
import { u as ra } from "./useActionFeedback-Di6FGqLG.js";
|
|
17
|
+
import { b as ua, u as xl } from "./provide-CxmHxIEV.js";
|
|
18
18
|
import { v as da } from "./tableSemantics-C9WFO_I_.js";
|
|
19
19
|
const ma = { class: "option-translation-sheet-marker sr-only" }, ca = { class: "fm-typo-en-title-md-600" }, pa = { class: "pt-8 space-y-24" }, va = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, ga = ["aria-expanded"], ba = { class: "fm-typo-en-body-lg-600" }, fa = {
|
|
20
20
|
key: 0,
|
|
@@ -242,7 +242,7 @@ const ma = { class: "option-translation-sheet-marker sr-only" }, ca = { class: "
|
|
|
242
242
|
},
|
|
243
243
|
setup(Pe) {
|
|
244
244
|
const Te = ql(
|
|
245
|
-
() => import("./ProductInventoryDialog-
|
|
245
|
+
() => import("./ProductInventoryDialog-DmN4sXP_.js")
|
|
246
246
|
), Ue = ["NORMAL", "PRODUCT", "DYNAMIC"], q = {
|
|
247
247
|
NORMAL: "menu.group.type.normal",
|
|
248
248
|
PRODUCT: "menu.group.type.product",
|
|
@@ -4,10 +4,10 @@ import { useI18n as Ve } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useDialog as $e, components as X, FmButtonVariant as Ae } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as Y } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
6
6
|
import { _ as Ne } from "./BindingLinkDialog.vue_vue_type_script_setup_true_lang-BZVQRyRI.js";
|
|
7
|
-
import { _ as Z } from "./BindingTable.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as Z } from "./BindingTable.vue_vue_type_script_setup_true_lang-DzNuoUmQ.js";
|
|
8
8
|
import { _ as De } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
9
|
-
import { u as Le } from "./useActionFeedback-
|
|
10
|
-
import { b as Te, u as ze, a as Ee } from "./provide-
|
|
9
|
+
import { u as Le } from "./useActionFeedback-Di6FGqLG.js";
|
|
10
|
+
import { b as Te, u as ze, a as Ee } from "./provide-CxmHxIEV.js";
|
|
11
11
|
const Re = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex-1 flex justify-between gap-8 pl-8"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as xe, ref as L, computed as h, watch as oe, resolveComponent as w, openBlock as m, createBlock as x, unref as n, withCtx as y, createElementBlock as g, createVNode as s, createElementVNode as r, toDisplayString as _, createCommentVNode as z, withModifiers as W, Fragment as q, renderList as H } from "vue";
|
|
2
|
+
import { d as Ve } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
3
3
|
import { useI18n as Fe, ItemSelector as Ie } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as Ee } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as Oe } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
@@ -34,7 +34,7 @@ const Ne = {
|
|
|
34
34
|
}, sl = {
|
|
35
35
|
key: 1,
|
|
36
36
|
class: "flex gap-8 items-center justify-start"
|
|
37
|
-
}, G = "__null__", vl = /* @__PURE__ */
|
|
37
|
+
}, G = "__null__", vl = /* @__PURE__ */ xe({
|
|
38
38
|
__name: "LinkProductSideSheet",
|
|
39
39
|
props: {
|
|
40
40
|
modelValue: { type: Boolean },
|
|
@@ -49,7 +49,7 @@ const Ne = {
|
|
|
49
49
|
},
|
|
50
50
|
emits: ["update:modelValue", "submit", "submitLinks", "submit-rules"],
|
|
51
51
|
setup(ne, { emit: ae }) {
|
|
52
|
-
const u = ne,
|
|
52
|
+
const u = ne, V = ae, { t: o } = Fe(), S = L("normal"), R = L(null), N = L([]), P = L([]), J = [
|
|
53
53
|
{ value: "in", label: "menu.rule_groups.condition_view.operator.in" },
|
|
54
54
|
{
|
|
55
55
|
value: "notIn",
|
|
@@ -177,7 +177,7 @@ const Ne = {
|
|
|
177
177
|
(e = u.rulesSession) == null || e.addRuleEditorCondition();
|
|
178
178
|
}
|
|
179
179
|
function ke() {
|
|
180
|
-
|
|
180
|
+
V("submit-rules");
|
|
181
181
|
}
|
|
182
182
|
function Z() {
|
|
183
183
|
return u.selectedProducts ?? u.selectedProductIds.map((e) => ({ itemId: e }));
|
|
@@ -260,22 +260,22 @@ const Ne = {
|
|
|
260
260
|
}
|
|
261
261
|
);
|
|
262
262
|
function Y() {
|
|
263
|
-
|
|
263
|
+
V("update:modelValue", !1);
|
|
264
264
|
}
|
|
265
265
|
function Se() {
|
|
266
|
-
u.selectedProducts !== void 0 ?
|
|
266
|
+
u.selectedProducts !== void 0 ? V(
|
|
267
267
|
"submitLinks",
|
|
268
268
|
K.value.map(
|
|
269
269
|
(e) => e.combinationKey ? { itemId: e._id, combinationKey: e.combinationKey } : { itemId: e._id }
|
|
270
270
|
)
|
|
271
|
-
) :
|
|
271
|
+
) : V(
|
|
272
272
|
"submit",
|
|
273
273
|
K.value.map((e) => e._id)
|
|
274
274
|
);
|
|
275
275
|
}
|
|
276
276
|
return (e, l) => {
|
|
277
277
|
const t = w("FmButton"), a = w("FmSwitch"), p = w("FmRadio"), j = w("FmRadioGroup"), Re = w("FmSearch"), Ce = w("FmMenuItem"), Le = w("FmMenu"), T = w("FmSelect"), le = w("FmSideSheet");
|
|
278
|
-
return m(),
|
|
278
|
+
return m(), x(le, {
|
|
279
279
|
"close-button": !1,
|
|
280
280
|
"is-container": n(Ee).FmForm,
|
|
281
281
|
"is-container-props": {
|
|
@@ -284,7 +284,7 @@ const Ne = {
|
|
|
284
284
|
"max-width": 760,
|
|
285
285
|
"model-value": u.modelValue,
|
|
286
286
|
"z-index": 100,
|
|
287
|
-
"onUpdate:modelValue": l[4] || (l[4] = (c) =>
|
|
287
|
+
"onUpdate:modelValue": l[4] || (l[4] = (c) => V("update:modelValue", c))
|
|
288
288
|
}, {
|
|
289
289
|
"side-sheet-header": y(() => [
|
|
290
290
|
s(t, {
|
|
@@ -295,7 +295,7 @@ const Ne = {
|
|
|
295
295
|
onClick: Y
|
|
296
296
|
}, null, 8, ["aria-label"]),
|
|
297
297
|
r("p", Pe, _(u.title ?? n(o)("menu.link_product.title")), 1),
|
|
298
|
-
B.value ? (m(),
|
|
298
|
+
B.value ? (m(), x(a, {
|
|
299
299
|
key: 0,
|
|
300
300
|
"model-value": S.value === "rules",
|
|
301
301
|
label: n(o)("menu.link_product.rules.section_title"),
|
|
@@ -351,7 +351,7 @@ const Ne = {
|
|
|
351
351
|
])) : (m(), g("div", Ae, [
|
|
352
352
|
r("p", je, _(n(o)("menu.link_product.rules.hint")), 1),
|
|
353
353
|
N.value.length > 0 ? (m(), g("p", ze, _(D(N.value[0] ?? null)), 1)) : z("", !0),
|
|
354
|
-
s(n(
|
|
354
|
+
s(n(Ve), {
|
|
355
355
|
"model-value": [...F.value],
|
|
356
356
|
"item-key": "id",
|
|
357
357
|
handle: ".link-product-rule-drag-handle",
|
|
@@ -442,7 +442,7 @@ const Ne = {
|
|
|
442
442
|
]),
|
|
443
443
|
_: 1
|
|
444
444
|
}, 8, ["model-value"]),
|
|
445
|
-
F.value.length === 0 ? (m(),
|
|
445
|
+
F.value.length === 0 ? (m(), x(n(Oe), {
|
|
446
446
|
key: 1,
|
|
447
447
|
title: n(o)("menu.rule_groups.condition_view.empty_data.no_rules_added"),
|
|
448
448
|
subtitle: n(o)("menu.rule_groups.condition_view.empty_data.subtitle"),
|
|
@@ -450,7 +450,7 @@ const Ne = {
|
|
|
450
450
|
text: n(o)("menu.link_product.rules.add_rule"),
|
|
451
451
|
callback: () => M()
|
|
452
452
|
}
|
|
453
|
-
}, null, 8, ["title", "subtitle", "action"])) : (m(),
|
|
453
|
+
}, null, 8, ["title", "subtitle", "action"])) : (m(), x(t, {
|
|
454
454
|
key: 2,
|
|
455
455
|
variant: "primary",
|
|
456
456
|
"prepend-icon": "add",
|
|
@@ -458,7 +458,7 @@ const Ne = {
|
|
|
458
458
|
onClick: l[1] || (l[1] = (c) => M())
|
|
459
459
|
}, null, 8, ["label"]))
|
|
460
460
|
])),
|
|
461
|
-
Q.value ? (m(),
|
|
461
|
+
Q.value ? (m(), x(le, {
|
|
462
462
|
key: 2,
|
|
463
463
|
"model-value": Q.value,
|
|
464
464
|
"max-width": 760,
|
|
@@ -545,7 +545,7 @@ const Ne = {
|
|
|
545
545
|
class: "w-[200px] px-8",
|
|
546
546
|
placeholder: n(o)("menu.link_product.rules.filter_result")
|
|
547
547
|
}, null, 8, ["model-value", "placeholder"]),
|
|
548
|
-
(m(!0), g(q, null, H(pe.value, (d) => (m(),
|
|
548
|
+
(m(!0), g(q, null, H(pe.value, (d) => (m(), x(Ce, {
|
|
549
549
|
key: d.id,
|
|
550
550
|
label: d.name,
|
|
551
551
|
"has-checkbox": "",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as N, onUnmounted as be, computed as M, resolveComponent as x, openBlock as r, createElementBlock as k, createVNode as i, unref as t, withCtx as b, createElementVNode as a, Fragment as
|
|
1
|
+
import { defineComponent as N, onUnmounted as be, computed as M, resolveComponent as x, openBlock as r, createElementBlock as k, createVNode as i, unref as t, withCtx as b, createElementVNode as a, Fragment as z, renderList as K, createBlock as F, createCommentVNode as L, ref as I, watch as ze, h as D, withModifiers as R, toDisplayString as h, shallowRef as ge } from "vue";
|
|
2
2
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as ee,
|
|
5
|
-
import { u as le } from "./useActionFeedback-
|
|
6
|
-
import { b as fe, u as W, a as Ee } from "./provide-
|
|
3
|
+
import { _ as De } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
4
|
+
import { _ as ee, d as Ne } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
5
|
+
import { u as le } from "./useActionFeedback-Di6FGqLG.js";
|
|
6
|
+
import { b as fe, u as W, a as Ee } from "./provide-CxmHxIEV.js";
|
|
7
7
|
import { useDialogChild as Oe, useDialog as ie, components as te, useBreakpoints as qe } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as ye } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
9
|
-
import { _ as he } from "./app-
|
|
9
|
+
import { _ as he } from "./app-DUyvBFfY.js";
|
|
10
10
|
import { _ as ke } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
11
11
|
import { _ as Ke } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
|
|
12
12
|
const We = {
|
|
@@ -32,7 +32,7 @@ const We = {
|
|
|
32
32
|
const u = Number(T);
|
|
33
33
|
return Number.isNaN(u) ? null : u;
|
|
34
34
|
});
|
|
35
|
-
async function
|
|
35
|
+
async function V() {
|
|
36
36
|
await S(() => f.submit(), {
|
|
37
37
|
successMessage: e("menu.menu_setting.fields.low_stock.updated"),
|
|
38
38
|
// A non-integer threshold is decided locally and never reaches the wire,
|
|
@@ -70,7 +70,7 @@ const We = {
|
|
|
70
70
|
_: 1
|
|
71
71
|
}, 8, ["model-value"]),
|
|
72
72
|
d.value.taxMode === "manual" ? (r(), k("div", He, [
|
|
73
|
-
(r(!0), k(
|
|
73
|
+
(r(!0), k(z, null, K(d.value.taxSystems, (g) => (r(), F(w, {
|
|
74
74
|
key: g.systemCode,
|
|
75
75
|
"model-value": g.inclusive,
|
|
76
76
|
value: !0,
|
|
@@ -79,13 +79,13 @@ const We = {
|
|
|
79
79
|
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
|
|
80
80
|
])) : L("", !0)
|
|
81
81
|
]),
|
|
82
|
-
d.value.statutoryChargeWaivers.length > 0 ? (r(), F(
|
|
82
|
+
d.value.statutoryChargeWaivers.length > 0 ? (r(), F(De, {
|
|
83
83
|
key: 0,
|
|
84
84
|
label: t(e)("menu.catalog.form.statutory_charges.title")
|
|
85
85
|
}, {
|
|
86
86
|
default: b(() => [
|
|
87
87
|
a("div", Je, [
|
|
88
|
-
(r(!0), k(
|
|
88
|
+
(r(!0), k(z, null, K(d.value.statutoryChargeWaivers, (g) => (r(), F(O, {
|
|
89
89
|
key: g.code,
|
|
90
90
|
"model-value": g.waived,
|
|
91
91
|
label: t(e)("menu.catalog.form.statutory_charges.waive", {
|
|
@@ -126,7 +126,7 @@ const We = {
|
|
|
126
126
|
label: t(e)("menu.common.actions.save"),
|
|
127
127
|
disabled: d.value.submit.state !== "allowed",
|
|
128
128
|
loading: d.value.status === "submitting",
|
|
129
|
-
onClick:
|
|
129
|
+
onClick: V
|
|
130
130
|
}, null, 8, ["label", "disabled", "loading"])
|
|
131
131
|
])) : L("", !0);
|
|
132
132
|
};
|
|
@@ -135,7 +135,7 @@ const We = {
|
|
|
135
135
|
__name: "AddMemberTierDialog",
|
|
136
136
|
setup(B) {
|
|
137
137
|
const { t: _ } = E(), { emitData: e } = Oe(), v = I("");
|
|
138
|
-
return
|
|
138
|
+
return ze(v, (S) => e(S)), (S, f) => {
|
|
139
139
|
const c = x("FmTextField");
|
|
140
140
|
return r(), F(c, {
|
|
141
141
|
modelValue: v.value,
|
|
@@ -208,7 +208,7 @@ const We = {
|
|
|
208
208
|
)).kind === "success" && v.close();
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function V(u) {
|
|
212
212
|
u.remove.state === "allowed" && v.open({
|
|
213
213
|
title: e("menu.member_pricing.delete_dialog.title"),
|
|
214
214
|
// Names the tier and says nothing about which products are priced
|
|
@@ -251,15 +251,15 @@ const We = {
|
|
|
251
251
|
// addition the new app owns. It is the screen-reader name, not a
|
|
252
252
|
// locator: "Remove member tier" contains no "delete", unlike the Price
|
|
253
253
|
// group tab's label, and must not be renamed toward one.
|
|
254
|
-
cell: (u) =>
|
|
255
|
-
|
|
254
|
+
cell: (u) => D("div", { class: "flex justify-end px-4" }, [
|
|
255
|
+
D(te.FmButton, {
|
|
256
256
|
icon: "delete",
|
|
257
257
|
variant: "tertiary",
|
|
258
258
|
textColor: "neutral-gray-400",
|
|
259
259
|
"aria-label": e("menu.member_pricing.table.actions.delete"),
|
|
260
260
|
disabled: u.row.original.remove.state !== "allowed",
|
|
261
|
-
onClick:
|
|
262
|
-
() =>
|
|
261
|
+
onClick: R(
|
|
262
|
+
() => V(u.row.original),
|
|
263
263
|
["stop", "prevent"]
|
|
264
264
|
)
|
|
265
265
|
})
|
|
@@ -367,7 +367,7 @@ const We = {
|
|
|
367
367
|
)).kind === "success" && v.close();
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function V(u) {
|
|
371
371
|
u.remove.state === "allowed" && v.open({
|
|
372
372
|
title: e("menu.price_tier.delete_dialog.title"),
|
|
373
373
|
message: e("menu.price_tier.delete_dialog.message", { name: u.key }),
|
|
@@ -399,15 +399,15 @@ const We = {
|
|
|
399
399
|
header: "",
|
|
400
400
|
// Legacy's control is icon-only with NO accessible name; the name is an
|
|
401
401
|
// addition the new app owns, naming the control for a screen reader.
|
|
402
|
-
cell: (u) =>
|
|
403
|
-
|
|
402
|
+
cell: (u) => D("div", { class: "flex justify-end px-4" }, [
|
|
403
|
+
D(te.FmButton, {
|
|
404
404
|
icon: "delete",
|
|
405
405
|
variant: "tertiary",
|
|
406
406
|
textColor: "neutral-gray-400",
|
|
407
407
|
"aria-label": e("menu.price_tier.settings_table.actions.delete"),
|
|
408
408
|
disabled: u.row.original.remove.state !== "allowed",
|
|
409
|
-
onClick:
|
|
410
|
-
() =>
|
|
409
|
+
onClick: R(
|
|
410
|
+
() => V(u.row.original),
|
|
411
411
|
["stop", "prevent"]
|
|
412
412
|
)
|
|
413
413
|
})
|
|
@@ -449,10 +449,10 @@ const We = {
|
|
|
449
449
|
}, mt = { class: "flex items-center justify-between p-8" }, pt = { class: "flex-1 mr-8" }, _t = { class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64" }, vt = ["onClick"], gt = { class: "flex-1 space-y-4" }, bt = { class: "fm-typo-en-body-lg-600" }, ft = {
|
|
450
450
|
key: 0,
|
|
451
451
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
452
|
-
}, yt = { class: "fm-typo-en-title-md-600 mr-auto" }, ht = { class: "py-8 px-8 overflow-y-auto space-y-24" }, kt = { class: "space-y-16" }, xt = { class: "rule-item" }, wt = { class: "flex items-center space-x-16" }, Ct = { class: "flex flex-col min-w-0 w-full" }, Ft = { class: "flex-1 relative border border-fm-color-neutral-gray-200 rounded-md p-16" }, St = { class: "flex items-center justify-between pb-8" }, $t = { class: "text-fm-color-neutral-gray-300" },
|
|
452
|
+
}, yt = { class: "fm-typo-en-title-md-600 mr-auto" }, ht = { class: "py-8 px-8 overflow-y-auto space-y-24" }, kt = { class: "space-y-16" }, xt = { class: "rule-item" }, wt = { class: "flex items-center space-x-16" }, Ct = { class: "flex flex-col min-w-0 w-full" }, Ft = { class: "flex-1 relative border border-fm-color-neutral-gray-200 rounded-md p-16" }, St = { class: "flex items-center justify-between pb-8" }, $t = { class: "text-fm-color-neutral-gray-300" }, Rt = { class: "flex gap-8" }, Vt = { class: "flex flex-col space-y-8" }, Tt = { class: "fm-typo-en-body-lg-600" }, Ut = { class: "w-24" }, Mt = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" }, At = { class: "whitespace-nowrap" }, Lt = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" }, Bt = ["onClick"], It = {
|
|
453
453
|
key: 0,
|
|
454
454
|
class: "flex items-center select-none ml-16"
|
|
455
|
-
}, jt = { class: "fm-typo-en-body-lg-400 text-fm-color-neutral-gray-300" }, Pt = { class: "flex gap-8 items-center justify-start" }, Gt = { class: "flex items-center gap-24" },
|
|
455
|
+
}, jt = { class: "fm-typo-en-body-lg-400 text-fm-color-neutral-gray-300" }, Pt = { class: "flex gap-8 items-center justify-start" }, Gt = { class: "flex items-center gap-24" }, zt = { class: "fm-typo-en-headline-lg-600" }, Dt = { class: "p-16 flex flex-col gap-16" }, Nt = { class: "fm-typo-en-body-lg-600" }, Et = { class: "flex flex-col gap-16" }, Ot = { class: "flex w-full justify-between gap-16" }, qt = { class: "break-all fm-typo-en-body-lg-400 line-clamp-1" }, Kt = { class: "flex gap-16 items-center" }, Z = "__null__", Wt = /* @__PURE__ */ N({
|
|
456
456
|
__name: "RuleGroupsTab",
|
|
457
457
|
props: {
|
|
458
458
|
sdk: {}
|
|
@@ -460,11 +460,11 @@ const We = {
|
|
|
460
460
|
setup(B) {
|
|
461
461
|
const _ = B, { t: e } = E(), v = fe(), S = ie(), { run: f } = le(), { breakpoints: c } = qe(), d = M(() => c.value.xs), A = W(
|
|
462
462
|
_.sdk.menuSetting.ruleGroupList
|
|
463
|
-
),
|
|
463
|
+
), V = M(
|
|
464
464
|
() => A.value.status === "ready" ? A.value.value : null
|
|
465
465
|
), T = M(() => {
|
|
466
466
|
var o;
|
|
467
|
-
return [...((o =
|
|
467
|
+
return [...((o = V.value) == null ? void 0 : o.rows) ?? []];
|
|
468
468
|
}), u = I(!1), m = ge(null), p = ge(null);
|
|
469
469
|
let w = null;
|
|
470
470
|
function O(o) {
|
|
@@ -585,11 +585,11 @@ const We = {
|
|
|
585
585
|
function $e() {
|
|
586
586
|
P.value = [...P.value, Q()];
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function Re(o) {
|
|
589
589
|
const l = P.value.filter((n) => n.key !== o);
|
|
590
590
|
P.value = l.length > 0 ? l : [Q()];
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function Ve(o, l) {
|
|
593
593
|
o.attribute = l, o.values = [];
|
|
594
594
|
}
|
|
595
595
|
function Te() {
|
|
@@ -683,25 +683,25 @@ const We = {
|
|
|
683
683
|
// Both actions are icon-only in legacy and carry NO accessible name.
|
|
684
684
|
// The new app gives them one here; without it neither a locator nor a
|
|
685
685
|
// screen reader can tell them apart.
|
|
686
|
-
cell: (o) =>
|
|
687
|
-
|
|
686
|
+
cell: (o) => D("div", { class: "px-4 flex justify-end" }, [
|
|
687
|
+
D(te.FmButton, {
|
|
688
688
|
icon: "file_copy",
|
|
689
689
|
variant: "tertiary",
|
|
690
690
|
textColor: "neutral-gray-400",
|
|
691
691
|
"aria-label": e("menu.menu_setting.rule_groups.copy_action"),
|
|
692
692
|
disabled: o.row.original.copy.state !== "allowed",
|
|
693
|
-
onClick:
|
|
693
|
+
onClick: R(
|
|
694
694
|
() => Ie(o.row.original),
|
|
695
695
|
["stop", "prevent"]
|
|
696
696
|
)
|
|
697
697
|
}),
|
|
698
|
-
|
|
698
|
+
D(te.FmButton, {
|
|
699
699
|
icon: "delete",
|
|
700
700
|
variant: "tertiary",
|
|
701
701
|
textColor: "neutral-gray-400",
|
|
702
702
|
"aria-label": e("menu.menu_setting.rule_groups.delete_action"),
|
|
703
703
|
disabled: o.row.original.remove.state !== "allowed",
|
|
704
|
-
onClick:
|
|
704
|
+
onClick: R(
|
|
705
705
|
() => me(o.row.original),
|
|
706
706
|
["stop", "prevent"]
|
|
707
707
|
)
|
|
@@ -711,12 +711,12 @@ const We = {
|
|
|
711
711
|
]);
|
|
712
712
|
return (o, l) => {
|
|
713
713
|
const n = x("FmButton"), y = x("FmSearch"), U = x("FmTable"), pe = x("FmTextField"), Pe = x("FmMenu"), Ge = x("FmHelperText"), _e = x("FmSideSheet"), ne = x("FmSelect");
|
|
714
|
-
return
|
|
714
|
+
return V.value ? (r(), k("div", at, [
|
|
715
715
|
d.value ? (r(), k("div", dt, [
|
|
716
716
|
a("div", mt, [
|
|
717
717
|
a("div", pt, [
|
|
718
718
|
i(y, {
|
|
719
|
-
"model-value":
|
|
719
|
+
"model-value": V.value.query,
|
|
720
720
|
autofocus: "",
|
|
721
721
|
class: "w-full",
|
|
722
722
|
placeholder: t(e)("menu.rule_groups.search_placeholder"),
|
|
@@ -727,12 +727,12 @@ const We = {
|
|
|
727
727
|
icon: "add",
|
|
728
728
|
variant: "secondary",
|
|
729
729
|
"aria-label": t(e)("menu.rule_groups.create_group"),
|
|
730
|
-
disabled:
|
|
730
|
+
disabled: V.value.create.state !== "allowed",
|
|
731
731
|
onClick: l[4] || (l[4] = (s) => O())
|
|
732
732
|
}, null, 8, ["aria-label", "disabled"])
|
|
733
733
|
]),
|
|
734
734
|
a("div", _t, [
|
|
735
|
-
(r(!0), k(
|
|
735
|
+
(r(!0), k(z, null, K(V.value.rows, (s) => (r(), k("div", {
|
|
736
736
|
key: s.id,
|
|
737
737
|
class: "flex flex-row py-12 px-16 cursor-pointer",
|
|
738
738
|
onClick: ($) => O(s.id)
|
|
@@ -747,7 +747,7 @@ const We = {
|
|
|
747
747
|
icon: "delete",
|
|
748
748
|
"aria-label": t(e)("menu.menu_setting.rule_groups.delete_action"),
|
|
749
749
|
disabled: s.remove.state !== "allowed",
|
|
750
|
-
onClick:
|
|
750
|
+
onClick: R(($) => me(s), ["stop"])
|
|
751
751
|
}, null, 8, ["aria-label", "disabled", "onClick"])
|
|
752
752
|
], 8, vt))), 128))
|
|
753
753
|
])
|
|
@@ -760,14 +760,14 @@ const We = {
|
|
|
760
760
|
i(n, {
|
|
761
761
|
label: t(e)("menu.rule_groups.create_group"),
|
|
762
762
|
"prepend-icon": "add",
|
|
763
|
-
disabled:
|
|
763
|
+
disabled: V.value.create.state !== "allowed",
|
|
764
764
|
onClick: l[0] || (l[0] = (s) => O())
|
|
765
765
|
}, null, 8, ["label", "disabled"])
|
|
766
766
|
]),
|
|
767
767
|
a("div", rt, [
|
|
768
768
|
a("div", ct, [
|
|
769
769
|
i(y, {
|
|
770
|
-
"model-value":
|
|
770
|
+
"model-value": V.value.query,
|
|
771
771
|
autofocus: "",
|
|
772
772
|
class: "mb-8",
|
|
773
773
|
placeholder: t(e)("menu.rule_groups.search_placeholder"),
|
|
@@ -860,7 +860,7 @@ const We = {
|
|
|
860
860
|
"sub-title": t(e)("menu.rule_groups.form.rules_description")
|
|
861
861
|
}, {
|
|
862
862
|
default: b(() => [
|
|
863
|
-
Y.value.length > 0 ? (r(), k(
|
|
863
|
+
Y.value.length > 0 ? (r(), k(z, { key: 0 }, [
|
|
864
864
|
i(t(Ne), {
|
|
865
865
|
"model-value": Y.value,
|
|
866
866
|
"item-key": "id",
|
|
@@ -880,14 +880,14 @@ const We = {
|
|
|
880
880
|
a("div", Ft, [
|
|
881
881
|
a("div", St, [
|
|
882
882
|
a("p", $t, h(Ue($)), 1),
|
|
883
|
-
a("div",
|
|
883
|
+
a("div", Rt, [
|
|
884
884
|
i(n, {
|
|
885
885
|
variant: "tertiary",
|
|
886
886
|
class: "cursor-pointer",
|
|
887
887
|
"prepend-icon": "edit",
|
|
888
888
|
"text-color": "primary",
|
|
889
889
|
"aria-label": t(e)("menu.link_product.rules.edit_rule"),
|
|
890
|
-
onClick:
|
|
890
|
+
onClick: R((C) => X(s.rule), ["stop"])
|
|
891
891
|
}, null, 8, ["aria-label", "onClick"]),
|
|
892
892
|
i(n, {
|
|
893
893
|
variant: "tertiary",
|
|
@@ -895,7 +895,7 @@ const We = {
|
|
|
895
895
|
"prepend-icon": "file_copy",
|
|
896
896
|
"text-color": "primary",
|
|
897
897
|
"aria-label": t(e)("menu.menu_setting.rule_groups.copy_rule"),
|
|
898
|
-
onClick:
|
|
898
|
+
onClick: R((C) => Ae(s.id), ["stop"])
|
|
899
899
|
}, null, 8, ["aria-label", "onClick"]),
|
|
900
900
|
i(n, {
|
|
901
901
|
variant: "tertiary",
|
|
@@ -903,13 +903,13 @@ const We = {
|
|
|
903
903
|
"prepend-icon": "delete",
|
|
904
904
|
"text-color": "typo-error",
|
|
905
905
|
"aria-label": t(e)("menu.menu_setting.rule_groups.remove_rule"),
|
|
906
|
-
onClick:
|
|
906
|
+
onClick: R((C) => Le(s.id), ["stop"])
|
|
907
907
|
}, null, 8, ["aria-label", "onClick"])
|
|
908
908
|
])
|
|
909
909
|
]),
|
|
910
|
-
a("div",
|
|
910
|
+
a("div", Vt, [
|
|
911
911
|
a("p", Tt, h(t(e)("menu.rule_groups.condition_view.when")), 1),
|
|
912
|
-
(r(!0), k(
|
|
912
|
+
(r(!0), k(z, null, K(s.rule.conditions, (C, ve) => (r(), k("div", {
|
|
913
913
|
key: ve,
|
|
914
914
|
class: "flex w-full items-center space-x-8"
|
|
915
915
|
}, [
|
|
@@ -924,11 +924,11 @@ const We = {
|
|
|
924
924
|
"menu-button": b(() => [
|
|
925
925
|
a("p", {
|
|
926
926
|
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate",
|
|
927
|
-
onClick:
|
|
927
|
+
onClick: R((se) => X(s.rule), ["stop"])
|
|
928
928
|
}, h(C.valueLabels.join(", ")), 9, Bt)
|
|
929
929
|
]),
|
|
930
930
|
default: b(() => [
|
|
931
|
-
(r(!0), k(
|
|
931
|
+
(r(!0), k(z, null, K(C.valueLabels, (se) => (r(), k("div", {
|
|
932
932
|
key: se,
|
|
933
933
|
class: "flex flex-col px-8 space-y-8"
|
|
934
934
|
}, [
|
|
@@ -955,7 +955,7 @@ const We = {
|
|
|
955
955
|
variant: "primary",
|
|
956
956
|
label: t(e)("menu.link_product.rules.add_rule"),
|
|
957
957
|
"prepend-icon": "add",
|
|
958
|
-
onClick: l[7] || (l[7] =
|
|
958
|
+
onClick: l[7] || (l[7] = R((s) => X(), ["stop"]))
|
|
959
959
|
}, null, 8, ["label"])
|
|
960
960
|
])
|
|
961
961
|
], 64)) : (r(), F(t(ye), {
|
|
@@ -992,9 +992,9 @@ const We = {
|
|
|
992
992
|
variant: "tertiary",
|
|
993
993
|
"prepend-icon": "arrow_back",
|
|
994
994
|
"aria-label": t(e)("menu.common.actions.back"),
|
|
995
|
-
onClick: l[8] || (l[8] =
|
|
995
|
+
onClick: l[8] || (l[8] = R((s) => g.value = !1, ["stop"]))
|
|
996
996
|
}, null, 8, ["aria-label"]),
|
|
997
|
-
a("div",
|
|
997
|
+
a("div", zt, h(ue.value ? t(e)("menu.rule_groups.condition_view.edit_condition") : t(e)("menu.rule_groups.condition_view.add_condition")), 1)
|
|
998
998
|
])
|
|
999
999
|
]),
|
|
1000
1000
|
"side-sheet-footer": b(() => [
|
|
@@ -1007,15 +1007,15 @@ const We = {
|
|
|
1007
1007
|
i(n, {
|
|
1008
1008
|
variant: "secondary",
|
|
1009
1009
|
label: t(e)("menu.common.actions.cancel"),
|
|
1010
|
-
onClick: l[14] || (l[14] =
|
|
1010
|
+
onClick: l[14] || (l[14] = R((s) => g.value = !1, ["stop"]))
|
|
1011
1011
|
}, null, 8, ["label"])
|
|
1012
1012
|
])
|
|
1013
1013
|
]),
|
|
1014
1014
|
default: b(() => [
|
|
1015
|
-
a("div",
|
|
1015
|
+
a("div", Dt, [
|
|
1016
1016
|
a("p", Nt, h(t(e)("menu.rule_groups.condition_view.condition")), 1),
|
|
1017
1017
|
a("div", Et, [
|
|
1018
|
-
(r(!0), k(
|
|
1018
|
+
(r(!0), k(z, null, K(P.value, (s, $) => (r(), k("div", {
|
|
1019
1019
|
key: s.key,
|
|
1020
1020
|
class: "flex justify-between gap-8"
|
|
1021
1021
|
}, [
|
|
@@ -1026,11 +1026,11 @@ const We = {
|
|
|
1026
1026
|
items: Ce(s),
|
|
1027
1027
|
placeholder: t(e)("menu.rule_groups.condition_view.select_item"),
|
|
1028
1028
|
"aria-label": t(e)("menu.menu_setting.rule_groups.condition.attribute"),
|
|
1029
|
-
"onUpdate:modelValue": (C) =>
|
|
1029
|
+
"onUpdate:modelValue": (C) => Ve(s, C)
|
|
1030
1030
|
}, {
|
|
1031
1031
|
"prepend-menu": b(() => [
|
|
1032
1032
|
a("div", {
|
|
1033
|
-
onClick: l[10] || (l[10] =
|
|
1033
|
+
onClick: l[10] || (l[10] = R(() => {
|
|
1034
1034
|
}, ["stop"]))
|
|
1035
1035
|
}, [
|
|
1036
1036
|
i(y, {
|
|
@@ -1071,7 +1071,7 @@ const We = {
|
|
|
1071
1071
|
"prepend-menu": b(() => [
|
|
1072
1072
|
a("div", {
|
|
1073
1073
|
class: "flex",
|
|
1074
|
-
onClick: l[12] || (l[12] =
|
|
1074
|
+
onClick: l[12] || (l[12] = R(() => {
|
|
1075
1075
|
}, ["stop"]))
|
|
1076
1076
|
}, [
|
|
1077
1077
|
i(y, {
|
|
@@ -1089,14 +1089,14 @@ const We = {
|
|
|
1089
1089
|
variant: "tertiary",
|
|
1090
1090
|
"prepend-icon": "close",
|
|
1091
1091
|
"aria-label": t(e)("menu.menu_setting.rule_groups.remove_condition"),
|
|
1092
|
-
onClick:
|
|
1092
|
+
onClick: R((C) => Re(s.key), ["stop"])
|
|
1093
1093
|
}, null, 8, ["aria-label", "onClick"])
|
|
1094
1094
|
]))), 128)),
|
|
1095
1095
|
i(n, {
|
|
1096
1096
|
variant: "plain",
|
|
1097
1097
|
"prepend-icon": "add",
|
|
1098
1098
|
label: t(e)("menu.rule_groups.condition_view.add_condition"),
|
|
1099
|
-
onClick: l[13] || (l[13] =
|
|
1099
|
+
onClick: l[13] || (l[13] = R((s) => $e(), ["stop"]))
|
|
1100
1100
|
}, null, 8, ["label"])
|
|
1101
1101
|
])
|
|
1102
1102
|
])
|
|
@@ -1133,12 +1133,12 @@ const We = {
|
|
|
1133
1133
|
}))
|
|
1134
1134
|
), c = I("configuration");
|
|
1135
1135
|
return (d, A) => {
|
|
1136
|
-
const
|
|
1136
|
+
const V = x("FmTabs");
|
|
1137
1137
|
return r(), F(ke, {
|
|
1138
1138
|
heading: t(e)("menu.menu_setting.title")
|
|
1139
1139
|
}, {
|
|
1140
1140
|
default: b(() => [
|
|
1141
|
-
i(
|
|
1141
|
+
i(V, {
|
|
1142
1142
|
"model-value": c.value,
|
|
1143
1143
|
items: f.value,
|
|
1144
1144
|
"onUpdate:modelValue": A[0] || (A[0] = (T) => c.value = T)
|
|
@@ -2,14 +2,14 @@ import { defineComponent as K, resolveComponent as b, openBlock as c, createElem
|
|
|
2
2
|
import { useI18n as ee } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialog as we, components as S, FmButtonColorThemeVariant as N } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Pe } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
5
|
-
import { _ as Ce } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as xe } from "./OrderPacingFields.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as Fe } from "./LinkProductSideSheet.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as Se } from "./FormSection.vue_vue_type_script_setup_true_lang-
|
|
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";
|
|
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-
|
|
12
|
-
import { b as De, u as Y, a as Ue } from "./provide-
|
|
11
|
+
import { u as $e } from "./useActionFeedback-Di6FGqLG.js";
|
|
12
|
+
import { b as De, u as Y, a as Ue } from "./provide-CxmHxIEV.js";
|
|
13
13
|
const ze = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "mt-4"
|