@feedmepos/mf-menu 0.32.45-dev → 0.32.46-dev.2
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-u5AOIdU4.js → App-DnmPW7GQ.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-RTdI8EVk.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BN_pomak.js} +3 -3
- package/dist/{Catalog-DDMz6wD9.js → Catalog-gxj-MZB8.js} +44 -44
- package/dist/{Category-DoIleKPb.js → Category-CqWHFR6I.js} +19 -19
- package/dist/{Category-BE0d0_de.js → Category-JHb56PfQ.js} +24 -24
- package/dist/{CookingGuide-iP5hFtlB.js → CookingGuide-DNMfIDDf.js} +105 -105
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CSaMT7Gr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BYdToHa3.js} +1 -1
- package/dist/{Group-AXDRjsKC.js → Group-DXEgfQ_e.js} +3 -3
- package/dist/{Group-xjimyqnO.js → Group-bxjyN23A.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DB_X7ws3.js → Group.vue_vue_type_script_setup_true_lang-DPhYCl15.js} +19 -19
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D_IUSYDa.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DAsxXqGu.js} +30 -30
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Suib7m8i.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BuD8TeFi.js} +1991 -1990
- package/dist/{Ingredient-yr2DWIMw.js → Ingredient-BAnjcaO0.js} +20 -20
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BpiU1gRP.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CppjxcTA.js} +2 -2
- package/dist/{LinkProductSideSheet-2MbaATTn.js → LinkProductSideSheet-CvWcioxX.js} +45 -45
- package/dist/{MenuSetting-BhkjzPiN.js → MenuSetting-DCQM7rh6.js} +47 -47
- package/dist/{PrintRoute-ChqpbVo4.js → PrintRoute-Be0WG4oQ.js} +39 -39
- package/dist/{Product-BpnGnMzm.js → Product-DfYmo4vJ.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-COkk299w.js → Product.vue_vue_type_script_setup_true_lang-BsRZ0VVW.js} +93 -93
- package/dist/{ProductInternalTools-BEwLYcEn.js → ProductInternalTools-D2QTAjE7.js} +66 -66
- package/dist/{Products-lONe7x_i.js → Products-BhY4Cwaz.js} +42 -42
- package/dist/{Publish-CXRgBz-S.js → Publish-BfEtLeeh.js} +29 -29
- package/dist/{Recipe-Bbt3hG6N.js → Recipe-ssNUNy2j.js} +24 -24
- package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DHnuxBck.js +144 -0
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DXisBADc.js → RuleView.vue_vue_type_script_setup_true_lang-CkpwtUSB.js} +2 -2
- package/dist/{Scheduler-DJsgP_Hi.js → Scheduler-CAUHWrZs.js} +11 -11
- package/dist/{ServingSequence-DALjVV2I.js → ServingSequence-D12rqxa8.js} +44 -44
- package/dist/{Setting-B23o5SoS.js → Setting-pJ06C7wS.js} +17 -17
- package/dist/{Subcategory-CS4MEgtM.js → Subcategory-Dfd-qx6m.js} +54 -54
- package/dist/{Takeaway-CI2Y-_LF.js → Takeaway-Bnat0taD.js} +13 -13
- package/dist/{Takeaway-D27iA6M6.js → Takeaway-Cv-kA3M_.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Ca3qK9zO.js → Takeaway.vue_vue_type_script_setup_true_lang-9aZi7wvY.js} +33 -33
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Da2jQE45.js → Thumbnail.vue_vue_type_script_setup_true_lang-C3Sk0LVd.js} +27 -27
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DUScE-82.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-5RV7_0Wc.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-E3-hgVdd.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BBXAoJje.js} +5 -5
- package/dist/{TranslationViewChip.vue_vue_type_script_setup_true_lang-BlACWsDs.js → TranslationViewChip.vue_vue_type_script_setup_true_lang-CIGgeuKb.js} +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D9EEpjV6.js +5767 -0
- package/dist/{Unit-5pv3oxSc.js → Unit-DeegDDRz.js} +8 -8
- package/dist/{Variant-CTAI6p6r.js → Variant-D8WwGu3E.js} +14 -14
- package/dist/{_id_-D09xegPQ.js → _id_-BfOGbmqs.js} +28 -28
- package/dist/app-BmAr9vNI.js +2283 -0
- package/dist/{app-8-JCz9b5.js → app-DhZxk0zL.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/index.d.ts +1 -1
- package/dist/apps/mf-menu/src/api/menu.d.ts +14 -5
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-dENy3aw3.js → linked-status-CxpcEFX9.js} +2 -2
- package/dist/assets/{menu-export-E9V7bg-T.js → menu-export-C09ZbTRq.js} +2 -2
- package/dist/assets/{override-menu-HaI7O9Fu.js → override-menu-0rFjySh6.js} +2 -2
- package/dist/assets/{validate-menu-C8LhbVSM.js → validate-menu-cO19zy8y.js} +2 -2
- package/dist/{catalog-DhXoYsFF.js → catalog-tNpB0Dhn.js} +1 -1
- package/dist/{catalogSetting-DyRqWzdW.js → catalogSetting-BRnA4v49.js} +1 -1
- package/dist/{currency-BkmIftYM.js → currency-CyKauaRc.js} +1 -1
- package/dist/dayjs.min-ipgoM27T.js +7 -0
- package/dist/{index-BQ95VVc6.js → index-BGm2uHNk.js} +31 -31
- package/dist/{index-BXWquw9Z.js → index-CXquA22H.js} +30 -30
- package/dist/{index.vue_vue_type_script_setup_true_lang-CJO2XWIn.js → index.vue_vue_type_script_setup_true_lang-D6HyeIid.js} +6917 -6860
- package/dist/{item-DmTvGVsp.js → item-Cik-YX-L.js} +15 -15
- package/dist/{jszip.min-8Z5To_Pk.js → jszip.min-D22BefT1.js} +388 -387
- package/dist/{menu-Csu9X1_I.js → menu-ag-37Ofg.js} +1 -1
- package/dist/{menuV2-CC-vGiv5.js → menuV2-DZDWxmas.js} +135 -135
- package/dist/{priceTier-Bj9Y6SSr.js → priceTier-BmDl3J-3.js} +1 -1
- package/dist/{rules-Dod2cBHH.js → rules-pJdF9REd.js} +12 -12
- package/dist/{scheduler-B3M-715v.js → scheduler-DRHXK6kX.js} +29 -29
- package/dist/{toExcel-67ufpOxx.js → toExcel-5kDfvPVG.js} +2 -2
- package/dist/{unit-BQrnccs6.js → unit-CIlgFZ50.js} +35 -35
- package/package.json +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DnuNFxC7.js +0 -6130
- package/dist/app-Bk0DN7oZ.js +0 -363
- package/dist/dayjs.min-nQqVHQcC.js +0 -6
- package/dist/index-28XF3UnN.js +0 -246
|
@@ -2,13 +2,13 @@ import { defineComponent as ie, computed as b, ref as $, reactive as Ve, watch a
|
|
|
2
2
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as W, components as se, useDialog as $e, FmButtonVariant as ue, useBreakpoints as Ue } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import {
|
|
5
|
+
import { O as re, B as X, u as Z, G as Oe, A as K, H as Be, a2 as ce, D as le, J as q, y as H } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
6
6
|
import { _ as Te } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { defineStore as
|
|
8
|
-
import { _ as ae, g as Le } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { defineStore as Ie } from "pinia";
|
|
8
|
+
import { _ as ae, g as Le } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-CppjxcTA.js";
|
|
9
9
|
import { u as De } from "./discardConfirm-BHni0LNu.js";
|
|
10
10
|
import { c as Pe } from "./check-C9mY6LiX.js";
|
|
11
|
-
import { u as Re } from "./unit-
|
|
11
|
+
import { u as Re } from "./unit-CIlgFZ50.js";
|
|
12
12
|
import { c as Ae } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
14
14
|
key: 0,
|
|
@@ -23,12 +23,12 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
23
23
|
usedCodes: { default: () => [] },
|
|
24
24
|
invalidSkuAndRecipe: {}
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const { t: l } = Q(), r =
|
|
26
|
+
setup(I, { expose: N }) {
|
|
27
|
+
const { t: l } = Q(), r = I, u = re(X(W())), S = Re(), h = b(() => r.initialValue ? l("menu.sku.update") : l("menu.sku.add")), x = b(
|
|
28
28
|
() => r.initialValue ? l("menu.common.actions.update") : l("menu.common.actions.add")
|
|
29
29
|
), C = $(!1), f = $(!1), M = (t) => {
|
|
30
30
|
Pe.isBoolean(t) ? f.value = t : f.value = !f.value;
|
|
31
|
-
},
|
|
31
|
+
}, O = Z(), a = b(() => O.units), i = b(() => a.value.map(({ name: t, _id: o, abbrev: g, measurements: B }) => ({
|
|
32
32
|
label: t,
|
|
33
33
|
value: o,
|
|
34
34
|
options: [
|
|
@@ -36,13 +36,13 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
36
36
|
label: `${t} (${g})`,
|
|
37
37
|
value: null
|
|
38
38
|
},
|
|
39
|
-
...
|
|
39
|
+
...B.map(({ name: A, id: Y, abbrev: z }) => ({
|
|
40
40
|
label: `${A} (${z})`,
|
|
41
41
|
value: Y
|
|
42
42
|
}))
|
|
43
43
|
]
|
|
44
44
|
}))), c = b(() => a.value.length > 0), n = Ve(
|
|
45
|
-
r.initialValue ?
|
|
45
|
+
r.initialValue ? Oe(r.initialValue) : {
|
|
46
46
|
...K.generator.initSku(),
|
|
47
47
|
unit: a.value[0] || K.generator.initUnit()
|
|
48
48
|
}
|
|
@@ -53,7 +53,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
53
53
|
}), D = (t) => n.unit._id === t.value && n.trackingMeasurement === (t.value || null);
|
|
54
54
|
function _(t, o) {
|
|
55
55
|
const g = o || void 0;
|
|
56
|
-
n.unit._id === t && n.trackingMeasurement === g || (n.unit = a.value.find((
|
|
56
|
+
n.unit._id === t && n.trackingMeasurement === g || (n.unit = a.value.find((B) => B._id === t), n.trackingMeasurement = g, n.convert && (n.convert.measurement = g));
|
|
57
57
|
}
|
|
58
58
|
const de = b(() => {
|
|
59
59
|
const t = i.value.find((o) => o.value === n.unit._id);
|
|
@@ -84,7 +84,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
84
84
|
return R.value = (((t = n.convert) == null ? void 0 : t.inventoryBindings) || []).length === 0, !R.value;
|
|
85
85
|
}
|
|
86
86
|
const fe = De(
|
|
87
|
-
() => !
|
|
87
|
+
() => !Be.isEqual(n, r.initialValue || K.generator.initSku()),
|
|
88
88
|
() => {
|
|
89
89
|
f.value = !1;
|
|
90
90
|
}
|
|
@@ -122,7 +122,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
122
122
|
show: f,
|
|
123
123
|
trigger: M
|
|
124
124
|
}), (t, o) => {
|
|
125
|
-
const g = d("FmTextField"),
|
|
125
|
+
const g = d("FmTextField"), B = d("FmLabel"), A = d("FmField"), Y = d("FmMenuHeader"), z = d("FmMenuDivider"), ge = d("FmMenuItem"), ye = d("FmMenu"), ke = d("FmFormGroup"), he = d("FmSwitch"), xe = d("FmSelect"), Fe = d("FmCard"), ne = d("fm-button"), Se = d("fm-side-sheet");
|
|
126
126
|
return m(), y(V, null, [
|
|
127
127
|
Me(t.$slots, "default", { trigger: M }),
|
|
128
128
|
s(Se, {
|
|
@@ -190,7 +190,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
190
190
|
"model-value": L.value
|
|
191
191
|
}, {
|
|
192
192
|
label: k(() => [
|
|
193
|
-
s(
|
|
193
|
+
s(B, {
|
|
194
194
|
label: e(l)("menu.sku.columns.unit")
|
|
195
195
|
}, null, 8, ["label"])
|
|
196
196
|
]),
|
|
@@ -294,8 +294,8 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
294
294
|
], 64);
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
}), Je = He, Qe =
|
|
298
|
-
const
|
|
297
|
+
}), Je = He, Qe = Ie("sku-manager", () => {
|
|
298
|
+
const I = $e(), N = W(), l = X(N), r = re(l), u = Z(), S = Ee(), { t: h } = Q(), x = (a) => {
|
|
299
299
|
var c, n;
|
|
300
300
|
const { vNode: i } = Ae(
|
|
301
301
|
Je,
|
|
@@ -321,8 +321,8 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
321
321
|
async function M(a) {
|
|
322
322
|
C(a);
|
|
323
323
|
}
|
|
324
|
-
async function
|
|
325
|
-
|
|
324
|
+
async function O(a) {
|
|
325
|
+
I.open({
|
|
326
326
|
title: h("menu.common.dialog.remove.ingredient.title"),
|
|
327
327
|
message: h("menu.common.dialog.remove.ingredient.message", { name: a.name }),
|
|
328
328
|
primaryActions: {
|
|
@@ -349,7 +349,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
349
349
|
return {
|
|
350
350
|
createSku: f,
|
|
351
351
|
updateSku: M,
|
|
352
|
-
deleteSku:
|
|
352
|
+
deleteSku: O
|
|
353
353
|
};
|
|
354
354
|
}), We = {
|
|
355
355
|
key: 0,
|
|
@@ -378,7 +378,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
378
378
|
class: "fm-typo-en-body-md-600 font-semibold"
|
|
379
379
|
}, Vn = /* @__PURE__ */ ie({
|
|
380
380
|
__name: "Ingredient",
|
|
381
|
-
setup(
|
|
381
|
+
setup(I) {
|
|
382
382
|
const N = W();
|
|
383
383
|
X(N);
|
|
384
384
|
const l = Z(), r = Qe(), {
|
|
@@ -424,7 +424,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
|
424
424
|
function f(i) {
|
|
425
425
|
r.updateSku(i);
|
|
426
426
|
}
|
|
427
|
-
const M = b(() => S.value.length),
|
|
427
|
+
const M = b(() => S.value.length), O = Ue(), a = b(() => O.breakpoints.value.xs);
|
|
428
428
|
return (i, c) => {
|
|
429
429
|
const n = d("FmSearch"), F = d("FmTable"), L = d("fm-button"), D = d("FmSpacer");
|
|
430
430
|
return m(), T(Te, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as et, watch as st, computed as ve, resolveComponent as qe, createElementBlock as Ne, openBlock as Ae, createElementVNode as Le, createVNode as He, toDisplayString as tt, unref as Oe, isRef as ut, createBlock as dt, createCommentVNode as $t, Fragment as mt, renderList as ct, h as Ie } from "vue";
|
|
2
|
-
import { u as pt,
|
|
2
|
+
import { u as pt, D as ze, z as We, a3 as Qe, c as gt, a4 as Ft } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
3
3
|
import { useI18n as nt } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as ft, useProxiedModel as It, useDialog as yt, components as we, FmButtonColorThemeVariant as Ze, FmButtonVariant as Ke } from "@feedmepos/ui-library";
|
|
5
5
|
import { u as St } from "./search-BAPEUu1R.js";
|
|
6
|
-
var Be = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
6
|
+
var Be = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6fbeab60-3be2-4e26-bc6f-e62f4c681a24", DOTNET_NOLOGO: "1", USER: "runner", npm_config_user_agent: "pnpm/10.8.0 npm/? node/v18.20.8 linux x64", CI: "true", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6fbeab60-3be2-4e26-bc6f-e62f4c681a24", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", npm_node_execpath: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", GTM_ID: "GTM-P7Z9FMS6", FIREBASE_MESSAGING_SENDER_ID: "458797803788", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "development", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", NODE_OPTIONS: "--max-old-space-size=10240", GRADLE_HOME: "/usr/share/gradle-9.5.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/29.0.14206865", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", GTM_SERVER_URL: "https://server-side-tagging-rsrq3ogsuq-as.a.run.app", VITE_FEATURE_FLAG_API_KEY: "MaGoXrEWuEJNpWgKTqseee", SYSTEMD_EXEC_PID: "1871", ACTIONS_ORCHESTRATION_ID: "4c84571d-2995-46ee-985e-118cc2b64108.publish.deploy.__default", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20260513.135.3", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:11129", GITHUB_WORKFLOW: "Publish mf-menu dev", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", REMY_URL: "https://remy-dev.feedmeapi.com/v1", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.10/x64", GITHUB_RUN_ID: "26073576196", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "f0c842c2134817c1840d3d126b14136236b33353", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "development", FIREBASE_STORAGE_BUCKET: "image.feedmedev.cc", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu.yml@refs/heads/feat/mf-menu-hrm-permission", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/work/portal/portal/apps/mf-menu/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/portal/portal/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/18.20.8/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_77d89526-3b12-4cd3-850a-8743ca2e1014", INVOCATION_ID: "d9061940b4c74ea4b23487e725a9c130", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/18.20.8/x64/bin/node", npm_package_name: "@feedmepos/mf-menu", GITHUB_ACTION: "__run_4", GITHUB_RUN_NUMBER: "559", GITHUB_TRIGGERING_ACTOR: "victorchai", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", VITE_LICENSE_API_URL: "https://license-v2-dev.feedmeapi.com", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000069783", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "feat/mf-menu-hrm-permission", GITHUB_REPOSITORY: "feedmepos/portal", npm_lifecycle_script: "vite build --mode fmmf", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "705534668", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/bin/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules/vite/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/vite@6.3.5_@types+node@18.19.110_jiti@1.21.7_sass@1.69.5_terser@5.40.0_yaml@2.8.0/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules/dotenv-cli/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/dotenv-cli@7.4.4/node_modules:/home/runner/work/portal/portal/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.32.46-dev.2", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "f0c842c2134817c1840d3d126b14136236b33353", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", GITHUB_REF: "refs/heads/feat/mf-menu-hrm-permission", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6fbeab60-3be2-4e26-bc6f-e62f4c681a24", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "49786844", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6fbeab60-3be2-4e26-bc6f-e62f4c681a24", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/portal/portal/apps/mf-menu", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_14.6.0", CHROME_BIN: "/usr/bin/google-chrome", VITE_FEED_ME_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6fbeab60-3be2-4e26-bc6f-e62f4c681a24", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } }, rt = typeof Be < "u" && (Be.versions || {}).hasOwnProperty("node"), D = rt ? Object.create(globalThis) : globalThis;
|
|
7
7
|
D.scheduleImmediate = typeof setImmediate < "u" ? function(ge) {
|
|
8
8
|
setImmediate(ge);
|
|
9
9
|
} : function(ge) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createElementBlock as R, openBlock as i, createElementVNode as F, defineComponent as ae, ref as A, computed as j, resolveComponent as x, createBlock as T, unref as u, withCtx as M, createVNode as y, toDisplayString as E, Fragment as z, renderList as X, createCommentVNode as
|
|
2
|
-
import { u as le,
|
|
1
|
+
import { createElementBlock as R, openBlock as i, createElementVNode as F, defineComponent as ae, ref as A, computed as j, resolveComponent as x, createBlock as T, unref as u, withCtx as M, createVNode as y, toDisplayString as E, Fragment as z, renderList as X, createCommentVNode as Y, withModifiers as oe, watch as re, renderSlot as pe } from "vue";
|
|
2
|
+
import { u as le, y as ue, G as ee, a2 as ve, H as ie } from "./index.vue_vue_type_script_setup_true_lang-D6HyeIid.js";
|
|
3
3
|
import { useI18n as se, ItemSelector as fe } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as de, FmButtonVariant as Z } from "@feedmepos/ui-library";
|
|
5
5
|
import { u as _e } from "./discardConfirm-BHni0LNu.js";
|
|
6
|
-
import { u as ye } from "./menuV2-
|
|
6
|
+
import { u as ye } from "./menuV2-DZDWxmas.js";
|
|
7
7
|
import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
import { m as O, g as Re, h as be, b as ge, u as he, f as te } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { m as O, g as Re, h as be, b as ge, u as he, f as te } from "./RuleView.vue_vue_type_script_setup_true_lang-CkpwtUSB.js";
|
|
9
9
|
import { c as Ce } from "./check-C9mY6LiX.js";
|
|
10
10
|
/* empty css */
|
|
11
11
|
const Ae = {};
|
|
@@ -14,7 +14,7 @@ function ke(h, U) {
|
|
|
14
14
|
F("div", { class: "h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)
|
|
15
15
|
]));
|
|
16
16
|
}
|
|
17
|
-
const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]),
|
|
17
|
+
const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), we = { class: "flex items-center gap-24" }, Ie = { key: 0 }, Ve = { key: 1 }, xe = { class: "flex flex-col gap-24 h-full" }, $e = { class: "flex flex-col gap-24 overflow-y-auto flex-1" }, Se = { class: "flex flex-col gap-16" }, Ne = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, Ge = { class: "flex justify-between" }, Oe = { class: "text-fm-color-neutral-gray-400 fm-typo-en-body-lg-600" }, De = { key: 0 }, Me = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "text-fm-color-neutral-gray-300 p-16 ml-16"
|
|
20
20
|
}, Be = { class: "flex justify-end gap-16" }, Le = /* @__PURE__ */ ae({
|
|
@@ -48,7 +48,7 @@ const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), Ie = { class: "flex items-c
|
|
|
48
48
|
(o, s) => (o[s.id] = !0, o),
|
|
49
49
|
{}
|
|
50
50
|
)
|
|
51
|
-
),
|
|
51
|
+
), I = A({}), P = j(
|
|
52
52
|
() => {
|
|
53
53
|
var o;
|
|
54
54
|
return (((o = le().state.menu.ruleGroupSettings) == null ? void 0 : o.groups) || []).map((s) => ({
|
|
@@ -68,7 +68,7 @@ const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), Ie = { class: "flex items-c
|
|
|
68
68
|
const p = C.value[s.value] || !1, r = C.value[n.value] || !1;
|
|
69
69
|
return p && !r ? -1 : !p && r ? 1 : 0;
|
|
70
70
|
});
|
|
71
|
-
}),
|
|
71
|
+
}), J = j(() => {
|
|
72
72
|
var n;
|
|
73
73
|
const o = Object.entries(C.value).filter(([p, r]) => r).map(([p]) => p), s = ((n = le().state.menu.ruleGroupSettings) == null ? void 0 : n.groups) || [];
|
|
74
74
|
return o.map((p) => {
|
|
@@ -121,7 +121,7 @@ const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), Ie = { class: "flex items-c
|
|
|
121
121
|
}))
|
|
122
122
|
];
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function w() {
|
|
125
125
|
var k, S, N, _, W, m, t, l;
|
|
126
126
|
const o = L.groupCustomRule, s = Object.entries(C.value).filter(([e, G]) => G).map(([e]) => e), n = [], p = [], r = [], c = [];
|
|
127
127
|
d.value.length > 0 && (d.value.forEach((e) => {
|
|
@@ -183,18 +183,18 @@ const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), Ie = { class: "flex items-c
|
|
|
183
183
|
"close-button": !1,
|
|
184
184
|
"is-container": u(de).FmForm,
|
|
185
185
|
"is-container-props": {
|
|
186
|
-
onValidationSuccess:
|
|
186
|
+
onValidationSuccess: w,
|
|
187
187
|
blameFormChildOnValidationFailed: !0
|
|
188
188
|
}
|
|
189
189
|
}, {
|
|
190
190
|
"side-sheet-header": M(() => [
|
|
191
|
-
F("div",
|
|
191
|
+
F("div", we, [
|
|
192
192
|
y(n, {
|
|
193
193
|
variant: u(Z).Tertiary,
|
|
194
194
|
"prepend-icon": "arrow_back",
|
|
195
195
|
onClick: oe(f, ["stop"])
|
|
196
196
|
}, null, 8, ["variant"]),
|
|
197
|
-
h.isEditMode ? (i(), R("p",
|
|
197
|
+
h.isEditMode ? (i(), R("p", Ie, E(u(a)("menu.link_product.rules.edit_rule")), 1)) : (i(), R("p", Ve, E(u(a)("menu.link_product.rules.add_rule")), 1))
|
|
198
198
|
])
|
|
199
199
|
]),
|
|
200
200
|
"side-sheet-footer": M(() => [
|
|
@@ -238,7 +238,7 @@ const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), Ie = { class: "flex items-c
|
|
|
238
238
|
F("div", $e, [
|
|
239
239
|
F("div", Se, [
|
|
240
240
|
F("p", Ne, E(u(a)("menu.link_product.rules.use_rule_group")), 1),
|
|
241
|
-
(i(!0), R(z, null, X(
|
|
241
|
+
(i(!0), R(z, null, X(J.value, (m) => (i(), R("div", {
|
|
242
242
|
key: m._id
|
|
243
243
|
}, [
|
|
244
244
|
y(k, {
|
|
@@ -249,11 +249,11 @@ const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), Ie = { class: "flex items-c
|
|
|
249
249
|
F("div", Ge, [
|
|
250
250
|
F("p", Oe, E(m.name), 1),
|
|
251
251
|
y(c, {
|
|
252
|
-
name:
|
|
253
|
-
onClick: oe((t) =>
|
|
252
|
+
name: I.value[m._id] ? "expand_less" : "expand_more",
|
|
253
|
+
onClick: oe((t) => I.value[m._id] = !I.value[m._id], ["stop", "prevent"])
|
|
254
254
|
}, null, 8, ["name", "onClick"])
|
|
255
255
|
]),
|
|
256
|
-
|
|
256
|
+
I.value[m._id] ? (i(), R("div", De, [
|
|
257
257
|
(i(!0), R(z, null, X(m.rules, (t, l) => (i(), R("div", {
|
|
258
258
|
key: t._id
|
|
259
259
|
}, [
|
|
@@ -264,9 +264,9 @@ const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), Ie = { class: "flex items-c
|
|
|
264
264
|
operator: e.operator,
|
|
265
265
|
value: e.value
|
|
266
266
|
}, null, 8, ["number", "property", "operator", "value"]))), 128)),
|
|
267
|
-
l < m.rules.length - 1 ? (i(), R("p", Me, E(u(a)("menu.link_product.rules.or")), 1)) :
|
|
267
|
+
l < m.rules.length - 1 ? (i(), R("p", Me, E(u(a)("menu.link_product.rules.or")), 1)) : Y("", !0)
|
|
268
268
|
]))), 128))
|
|
269
|
-
])) :
|
|
269
|
+
])) : Y("", !0)
|
|
270
270
|
]),
|
|
271
271
|
_: 2
|
|
272
272
|
}, 1024)
|
|
@@ -350,11 +350,11 @@ const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), Ie = { class: "flex items-c
|
|
|
350
350
|
function b(d) {
|
|
351
351
|
return d.flatMap((g) => {
|
|
352
352
|
var o, s;
|
|
353
|
-
const
|
|
353
|
+
const w = ((o = q.value.find((n) => n._id === g)) == null ? void 0 : o.rules) || [], f = ((s = q.value.find((n) => n._id === g)) == null ? void 0 : s.name) || "";
|
|
354
354
|
return {
|
|
355
355
|
id: g,
|
|
356
356
|
name: f,
|
|
357
|
-
rules:
|
|
357
|
+
rules: w.map((n) => {
|
|
358
358
|
var p, r, c, k;
|
|
359
359
|
return {
|
|
360
360
|
...n,
|
|
@@ -371,13 +371,13 @@ const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), Ie = { class: "flex items-c
|
|
|
371
371
|
};
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
|
-
const C = A(b(v.modelValue.ruleGroupIds ?? [])),
|
|
374
|
+
const C = A(b(v.modelValue.ruleGroupIds ?? [])), I = A({
|
|
375
375
|
_id: "customRule",
|
|
376
376
|
restaurantRule: v.modelValue.restaurantRule,
|
|
377
377
|
itemRule: v.modelValue.itemRule
|
|
378
378
|
}), P = A(v.modelValue.orderFrom);
|
|
379
379
|
re(() => v.modelValue, (d) => {
|
|
380
|
-
C.value = b(d.ruleGroupIds ?? []),
|
|
380
|
+
C.value = b(d.ruleGroupIds ?? []), I.value = {
|
|
381
381
|
_id: "customRule",
|
|
382
382
|
restaurantRule: d.restaurantRule,
|
|
383
383
|
itemRule: d.itemRule
|
|
@@ -391,27 +391,27 @@ const Fe = /* @__PURE__ */ ce(Ae, [["render", ke]]), Ie = { class: "flex items-c
|
|
|
391
391
|
}), re(() => V.value, (d, g) => {
|
|
392
392
|
v.isDraft && g === !0 && d === !1 && $("delete-rule");
|
|
393
393
|
});
|
|
394
|
-
function
|
|
395
|
-
P.value = d.orderFrom,
|
|
394
|
+
function J(d) {
|
|
395
|
+
P.value = d.orderFrom, I.value.restaurantRule = d.restaurantRule, I.value.itemRule = d.itemRule, C.value = b(d.ruleGroupIds ?? []), $("update:model-value", d);
|
|
396
396
|
}
|
|
397
397
|
return (d, g) => V.value ? (i(), T(Le, {
|
|
398
398
|
key: 1,
|
|
399
399
|
"is-edit-mode": !h.isDraft,
|
|
400
400
|
"order-from": P.value,
|
|
401
401
|
"existing-rule-groups": C.value,
|
|
402
|
-
"group-custom-rule":
|
|
402
|
+
"group-custom-rule": I.value,
|
|
403
403
|
"convert-category-id-to-name": h.convertCategoryIdToName,
|
|
404
|
-
onCloseForm: g[2] || (g[2] = (
|
|
405
|
-
"onUpdate:modelValue": g[3] || (g[3] = (
|
|
404
|
+
onCloseForm: g[2] || (g[2] = (w) => V.value = !1),
|
|
405
|
+
"onUpdate:modelValue": g[3] || (g[3] = (w) => J(w))
|
|
406
406
|
}, null, 8, ["is-edit-mode", "order-from", "existing-rule-groups", "group-custom-rule", "convert-category-id-to-name"])) : (i(), T(ge, {
|
|
407
407
|
key: 0,
|
|
408
|
-
"model-value":
|
|
408
|
+
"model-value": I.value,
|
|
409
409
|
title: `${u(L)("menu.rule_groups.condition_view.rule")} ${h.index + 1}`,
|
|
410
410
|
"is-catalog-link-item-rule-view": !0,
|
|
411
|
-
"rule-group-names": C.value.map((
|
|
411
|
+
"rule-group-names": C.value.map((w) => w.name).filter((w) => w !== ""),
|
|
412
412
|
"order-from": P.value,
|
|
413
|
-
onOpenCatalogLinkItemRuleForm: g[0] || (g[0] = (
|
|
414
|
-
onDeleteRule: g[1] || (g[1] = (
|
|
413
|
+
onOpenCatalogLinkItemRuleForm: g[0] || (g[0] = (w) => V.value = !0),
|
|
414
|
+
onDeleteRule: g[1] || (g[1] = (w) => d.$emit("delete-rule"))
|
|
415
415
|
}, null, 8, ["model-value", "title", "rule-group-names", "order-from"]));
|
|
416
416
|
}
|
|
417
417
|
});
|
|
@@ -425,7 +425,7 @@ const Ee = { class: "fm-typo-en-title-md-600 mr-auto" }, Te = {
|
|
|
425
425
|
}, ze = { class: "flex-1 relative border border-fm-color-neutral-gray-200 rounded-md p-16" }, Pe = { class: "absolute -top-[10px] left-[50px] bg-white px-2 fm-typo-en-body-lg-400 text-fm-color-typo-secondary select-none z-10" }, We = {
|
|
426
426
|
key: 0,
|
|
427
427
|
class: "flex items-center select-none"
|
|
428
|
-
}, He = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Qe = { class: "flex gap-8 items-center justify-start" },
|
|
428
|
+
}, He = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Qe = { class: "flex gap-8 items-center justify-start" }, Ye = /* @__PURE__ */ ae({
|
|
429
429
|
__name: "LinkProductSideSheet",
|
|
430
430
|
props: {
|
|
431
431
|
initialValue: { default: () => [] },
|
|
@@ -450,18 +450,18 @@ const Ee = { class: "fm-typo-en-title-md-600 mr-auto" }, Te = {
|
|
|
450
450
|
const b = A(!1), C = (t) => {
|
|
451
451
|
Ce.isBoolean(t) ? b.value = t : b.value = !b.value;
|
|
452
452
|
};
|
|
453
|
-
function
|
|
453
|
+
function I(t) {
|
|
454
454
|
return t.reduce((l, e) => (l[e._id] = [...l[e._id] ?? [], e], l), {});
|
|
455
455
|
}
|
|
456
|
-
const P = a.initialValue, V = A(
|
|
456
|
+
const P = a.initialValue, V = A(I(ee(P))), J = j(() => Object.values(V.value).flatMap((t) => t)), { convertCategoryIdToName: d, convertCategoryNameToId: g } = he({
|
|
457
457
|
menuItems: j(() => a.menuItems || []),
|
|
458
458
|
categories: j(() => a.categories || [])
|
|
459
|
-
}),
|
|
459
|
+
}), w = A(
|
|
460
460
|
ee(a.linkItemRules)
|
|
461
461
|
), f = A();
|
|
462
462
|
function o() {
|
|
463
463
|
var t;
|
|
464
|
-
return (t =
|
|
464
|
+
return (t = w.value) == null ? void 0 : t.map((l) => {
|
|
465
465
|
var e, G, H, Q;
|
|
466
466
|
return {
|
|
467
467
|
...l,
|
|
@@ -497,7 +497,7 @@ const Ee = { class: "fm-typo-en-title-md-600 mr-auto" }, Te = {
|
|
|
497
497
|
const n = _e(
|
|
498
498
|
() => {
|
|
499
499
|
const t = s() ?? null;
|
|
500
|
-
return !ie.isEqual(
|
|
500
|
+
return !ie.isEqual(I(a.initialValue), V.value) || !ie.isEqual(a.linkItemRules, t);
|
|
501
501
|
},
|
|
502
502
|
() => {
|
|
503
503
|
b.value = !1;
|
|
@@ -509,13 +509,13 @@ const Ee = { class: "fm-typo-en-title-md-600 mr-auto" }, Te = {
|
|
|
509
509
|
linkItemRules: s() ?? []
|
|
510
510
|
}) : L("submit", {
|
|
511
511
|
mode: D.Normal,
|
|
512
|
-
items:
|
|
512
|
+
items: J.value
|
|
513
513
|
}), b.value = !1;
|
|
514
514
|
}
|
|
515
515
|
re(
|
|
516
516
|
() => b.value,
|
|
517
517
|
() => {
|
|
518
|
-
V.value =
|
|
518
|
+
V.value = I(ee(a.initialValue)), w.value = ee(a.linkItemRules), f.value = o(), r.value = null, c.value = !1, $.value = a.noScheduler && a.linkItemRules && a.linkItemRules.length > 0 ? D.Rules : D.Normal;
|
|
519
519
|
}
|
|
520
520
|
);
|
|
521
521
|
const r = A(null), c = A(!1), k = () => {
|
|
@@ -569,7 +569,7 @@ const Ee = { class: "fm-typo-en-title-md-600 mr-auto" }, Te = {
|
|
|
569
569
|
"onOn:clickedAway": u(n)
|
|
570
570
|
}, {
|
|
571
571
|
"side-sheet-header": M(() => [
|
|
572
|
-
t.useCloseBtn ?
|
|
572
|
+
t.useCloseBtn ? Y("", !0) : (i(), T(e, {
|
|
573
573
|
key: 0,
|
|
574
574
|
variant: u(Z).Tertiary,
|
|
575
575
|
class: "cursor-pointer mr-4",
|
|
@@ -585,7 +585,7 @@ const Ee = { class: "fm-typo-en-title-md-600 mr-auto" }, Te = {
|
|
|
585
585
|
"onUpdate:modelValue": l[0] || (l[0] = (B) => q(B ? u(D).Rules : u(D).Normal))
|
|
586
586
|
}, null, 8, ["label", "model-value"])
|
|
587
587
|
])
|
|
588
|
-
])) :
|
|
588
|
+
])) : Y("", !0)
|
|
589
589
|
]),
|
|
590
590
|
"side-sheet-footer": M(() => [
|
|
591
591
|
F("div", Qe, [
|
|
@@ -614,7 +614,7 @@ const Ee = { class: "fm-typo-en-title-md-600 mr-auto" }, Te = {
|
|
|
614
614
|
"categorized-items": t.categorizedItems,
|
|
615
615
|
data: V.value,
|
|
616
616
|
"select-variant": t.selectVariant,
|
|
617
|
-
"selected-items":
|
|
617
|
+
"selected-items": J.value,
|
|
618
618
|
"show-variant": t.showVariant,
|
|
619
619
|
"show-addon": t.showAddon,
|
|
620
620
|
"onUpdate:data": l[1] || (l[1] = (B) => V.value = B)
|
|
@@ -650,7 +650,7 @@ const Ee = { class: "fm-typo-en-title-md-600 mr-auto" }, Te = {
|
|
|
650
650
|
];
|
|
651
651
|
}),
|
|
652
652
|
_: 1
|
|
653
|
-
})) :
|
|
653
|
+
})) : Y("", !0),
|
|
654
654
|
(i(!0), R(z, null, X(f.value, (B, K) => (i(), R(z, { key: K }, [
|
|
655
655
|
F("div", ze, [
|
|
656
656
|
F("span", Pe, E(u(v)("menu.rule_groups.condition_view.and")), 1),
|
|
@@ -664,14 +664,14 @@ const Ee = { class: "fm-typo-en-title-md-600 mr-auto" }, Te = {
|
|
|
664
664
|
]),
|
|
665
665
|
f.value && f.value.length > 1 && K < f.value.length - 1 ? (i(), R("div", We, [
|
|
666
666
|
F("span", He, E(u(v)("menu.rule_groups.condition_view.or")), 1)
|
|
667
|
-
])) :
|
|
667
|
+
])) : Y("", !0)
|
|
668
668
|
], 64))), 128)),
|
|
669
669
|
y(e, {
|
|
670
670
|
label: u(v)("menu.link_product.rules.add_rule"),
|
|
671
671
|
onClick: k
|
|
672
672
|
}, null, 8, ["label"])
|
|
673
673
|
]))
|
|
674
|
-
], 64)) :
|
|
674
|
+
], 64)) : Y("", !0)
|
|
675
675
|
]))
|
|
676
676
|
]),
|
|
677
677
|
_: 1
|
|
@@ -679,7 +679,7 @@ const Ee = { class: "fm-typo-en-title-md-600 mr-auto" }, Te = {
|
|
|
679
679
|
], 64);
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
|
-
}), at = /* @__PURE__ */ ce(
|
|
682
|
+
}), at = /* @__PURE__ */ ce(Ye, [["__scopeId", "data-v-60163177"]]);
|
|
683
683
|
export {
|
|
684
684
|
Fe as H,
|
|
685
685
|
at as L,
|