@feedmepos/mf-menu 0.32.66-dev.3 → 0.32.66-dev.4
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-bCL9DMmd.js → App-DdmEswyc.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CnoYMg6T.js → ApplyProduct.vue_vue_type_script_setup_true_lang-ChxM7qYy.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-Ccw08-Uw.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-bZiXME9Z.js} +3 -3
- package/dist/{Catalog-Ds6GYriM.js → Catalog-GcX5VX2M.js} +6 -6
- package/dist/{Category-DY_XSrsn.js → Category-B2Kv3yJp.js} +4 -4
- package/dist/{Category-CnFL0t4m.js → Category-BwH-wVv2.js} +4 -4
- package/dist/{CookingGuide-BTk8BaAd.js → CookingGuide-CWDprGu6.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BgI4r-xU.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CmACeNnV.js} +1 -1
- package/dist/{Group-860k7lB8.js → Group-BavmrRXD.js} +3 -3
- package/dist/{Group-BSMIM376.js → Group-YNbaHa27.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DWA-dDCM.js → Group.vue_vue_type_script_setup_true_lang-9rGR3rec.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-dKJjPwe3.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D12xx6Vd.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-H2rtSZTK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-NAKJ0sFP.js} +7 -7
- package/dist/{Ingredient-BYDjOmNr.js → Ingredient-DHjSUUIP.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Bdhyk7wJ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-U5AkGUri.js} +2 -2
- package/dist/{LinkProductSideSheet-CQS8yW-C.js → LinkProductSideSheet-BkNMJOiZ.js} +4 -4
- package/dist/{MenuSetting-BmK8AlkW.js → MenuSetting-Bm4O6MZ6.js} +7 -7
- package/dist/{OrderPacing-TJ6ZYLYV.js → OrderPacing-DliNofLl.js} +5 -5
- package/dist/{PrintRoute-CR9yyKNK.js → PrintRoute-1Py1_tzI.js} +5 -5
- package/dist/{Product-UVz9VsGm.js → Product-D3kyQmwQ.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DaUlfmGn.js → Product.vue_vue_type_script_setup_true_lang-D-heQeQu.js} +14 -14
- package/dist/{ProductInternalTools-D-SOeCcO.js → ProductInternalTools-87_B55Fr.js} +6 -6
- package/dist/{Products-DhNIR6E7.js → Products-B-J389Ks.js} +34 -34
- package/dist/Publish-BlYboQl0.js +1532 -0
- package/dist/{Recipe-uwZYJm_N.js → Recipe-qb3ZdJGw.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CF-r4vAJ.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CXqE4HLg.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-BfdS-xS1.js → RuleView.vue_vue_type_script_setup_true_lang-CODY5qdL.js} +3 -3
- package/dist/{Scheduler-B1_i4bRR.js → Scheduler-CeM3y0Ha.js} +3 -3
- package/dist/{ServingSequence-B7TO7rNV.js → ServingSequence-BCzXUO9n.js} +124 -121
- package/dist/{Setting-ByrEh4BA.js → Setting-sy6vMuPB.js} +5 -5
- package/dist/{Subcategory-BWqzLw-d.js → Subcategory-BZti9kYo.js} +6 -6
- package/dist/{Takeaway-BJpHwTck.js → Takeaway-C9puqL8n.js} +4 -4
- package/dist/{Takeaway-BDtDA3Oz.js → Takeaway-D5JlmD6u.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DaqAIPrd.js → Takeaway.vue_vue_type_script_setup_true_lang-j8d0lXOL.js} +5 -5
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-Ctua4piB.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-DX_DRNF2.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CaIv_N0Y.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DesC2w1k.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BXJsNMO4.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CmuuSoGs.js} +15 -15
- package/dist/{Unit-CztcKfU8.js → Unit-Cc42yyN6.js} +2 -2
- package/dist/{Variant-DoKsw2Kp.js → Variant-D19fCBB3.js} +3 -3
- package/dist/{_id_-Bm8i0F1E.js → _id_-B9MKg_D-.js} +10 -10
- package/dist/{app-BGCDoU-0.js → app-BN0HgwNB.js} +37 -37
- package/dist/{app-Du5OtlE9.js → app-kMpCkgGC.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +10 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Publish/publishStatus.d.ts +27 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-CGYWO8Yo.js → linked-status-CfzY6n0e.js} +2 -2
- package/dist/assets/{menu-export-D32WVYBV.js → menu-export-CALDQ8k1.js} +3 -3
- package/dist/assets/{override-menu-B2muNR2b.js → override-menu-CmqrughS.js} +2 -2
- package/dist/assets/{validate-menu-DRc93ut_.js → validate-menu-BgjAdwUE.js} +2 -2
- package/dist/{catalog-B1szIMSS.js → catalog-BuKsorK6.js} +1 -1
- package/dist/{catalogSetting-D317tpwX.js → catalogSetting-B5EtNHwb.js} +1 -1
- package/dist/{currency-DDMkadDP.js → currency-BTbX6PWL.js} +1 -1
- package/dist/{dayjs.min-BAfSpgzt.js → dayjs.min-KeFRLajb.js} +2 -2
- package/dist/{discardConfirm-ulS7oH8I.js → discardConfirm-zfX1nuye.js} +1 -1
- package/dist/{index-DVh6Gi2K.js → index-DDJHOjwR.js} +1 -1
- package/dist/{index-ClAWU743.js → index-DTakcRjO.js} +5 -5
- package/dist/{index-BNCGppNp.js → index-DfoDRA0k.js} +6 -6
- package/dist/{index.vue_vue_type_script_setup_true_lang-Cf2AKbC7.js → index.vue_vue_type_script_setup_true_lang-DybNA4Np.js} +8839 -8798
- package/dist/{item-D3jvuhGD.js → item-jpOmJGLW.js} +19 -19
- package/dist/{jszip.min-t1qkoubE.js → jszip.min-DyvQ41lT.js} +3 -3
- package/dist/{linkProducts-IK0-iQJR.js → linkProducts-DFJMpL5n.js} +4 -4
- package/dist/{memberPricing-DagiXBzk.js → memberPricing-BZgeIGmU.js} +1 -1
- package/dist/{menu-B-BBAQKK.js → menu-BupVgTY-.js} +1 -1
- package/dist/{menuV2-0X1EYaDt.js → menuV2-B9-ODrLW.js} +82 -82
- package/dist/{order_pacing-Cz0wFd_o.js → order_pacing-Dfey1efO.js} +5 -5
- package/dist/{priceTier-DBzOsSgm.js → priceTier-eGLFeyfY.js} +1 -1
- package/dist/{rules-C6WjUylO.js → rules-BS6BLc8X.js} +3 -3
- package/dist/{scheduler-aKSniDdK.js → scheduler-3BGOjjCO.js} +5 -5
- package/dist/{toExcel-SxxuXoXI.js → toExcel-BmTqFf7v.js} +2 -2
- package/dist/{unit-CltVM3dM.js → unit-D2oVUlp4.js} +3 -3
- package/package.json +1 -1
- package/dist/Publish-CsjlWTjc.js +0 -1434
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { defineStore as Xi } from "pinia";
|
|
2
2
|
import { defineComponent as ye, resolveComponent as V, createElementBlock as K, createBlock as te, openBlock as y, createElementVNode as _, createVNode as h, toDisplayString as ie, Fragment as Ce, renderList as Ie, h as ze, ref as W, computed as R, watch as Ae, unref as m, renderSlot as $e, withCtx as F, createCommentVNode as ne, Transition as fr, normalizeClass as Ge, resolveDynamicComponent as xn, withDirectives as qe, vShow as Vn, mergeProps as Zi, withModifiers as it, normalizeStyle as ho, onBeforeUnmount as Vo, resolveDirective as Vt, onMounted as Gt, onUnmounted as Mo, createTextVNode as Wt, getCurrentInstance as zo, render as An, useSlots as hr, markRaw as gr, mergeModels as oi, useModel as vr, isVNode as br, nextTick as Qi, normalizeProps as yr, guardReactiveProps as _r } from "vue";
|
|
3
|
-
import { V as wr, W as kr, g as Ne, h as Be, k as Pe, T as Cr, X as Sr, s as Ji, d as Te, m as st, j as Re, a as Ze, n as xr, u as De, b as ut, i as ft, Y as ii, Z as ai, $ as Kn, a0 as ea, a1 as ta, a2 as Ar, a3 as Tr, a4 as ri, a5 as qn, a6 as Ot, a7 as Rr, a8 as Ir, a9 as si, aa as Er, ab as Or, ac as li, ad as $r, ae as Dr, af as ui, ag as Pr, ah as Fr, ai as Vr, aj as ci, ak as di, al as Mr, t as na, am as zr, F as It, x as mi, r as Ur, o as Nr, l as Br, I as Yn, an as Lr, Q as jr, w as pi, v as Gr, ao as Wr } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { V as wr, W as kr, g as Ne, h as Be, k as Pe, T as Cr, X as Sr, s as Ji, d as Te, m as st, j as Re, a as Ze, n as xr, u as De, b as ut, i as ft, Y as ii, Z as ai, $ as Kn, a0 as ea, a1 as ta, a2 as Ar, a3 as Tr, a4 as ri, a5 as qn, a6 as Ot, a7 as Rr, a8 as Ir, a9 as si, aa as Er, ab as Or, ac as li, ad as $r, ae as Dr, af as ui, ag as Pr, ah as Fr, ai as Vr, aj as ci, ak as di, al as Mr, t as na, am as zr, F as It, x as mi, r as Ur, o as Nr, l as Br, I as Yn, an as Lr, Q as jr, w as pi, v as Gr, ao as Wr } from "./index.vue_vue_type_script_setup_true_lang-DybNA4Np.js";
|
|
4
4
|
import { useI18n as ke, useCoreStore as Ut, CustomAttributesForm as oa } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as nt, useSnackbar as Je, useDialogChild as Nt, FmButtonVariant as Ue, components as Oe, FmButtonColorThemeVariant as ot, useBreakpoints as ia } from "@feedmepos/ui-library";
|
|
6
|
-
import { g as Tn, f as tn, e as Hr, i as Kr, s as go, F as qr, _ as Yr, a as Xr } from "./index-
|
|
7
|
-
import { C as vt } from "./catalog-
|
|
8
|
-
import { g as vo, a as Zr, m as Qr, i as Jr } from "./menuV2-
|
|
6
|
+
import { g as Tn, f as tn, e as Hr, i as Kr, s as go, F as qr, _ as Yr, a as Xr } from "./index-DDJHOjwR.js";
|
|
7
|
+
import { C as vt } from "./catalog-BuKsorK6.js";
|
|
8
|
+
import { g as vo, a as Zr, m as Qr, i as Jr } from "./menuV2-B9-ODrLW.js";
|
|
9
9
|
import { c as aa } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
10
10
|
import { a as fi, _ as Ht } from "./tooltip-B5BiPMx9.js";
|
|
11
|
-
import { H as es, L as ts } from "./LinkProductSideSheet-
|
|
12
|
-
import { _ as Ye, u as ns, a as os } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { e as is } from "./app-
|
|
14
|
-
import { l as Fe, u as Xt } from "./discardConfirm-
|
|
11
|
+
import { H as es, L as ts } from "./LinkProductSideSheet-BkNMJOiZ.js";
|
|
12
|
+
import { _ as Ye, u as ns, a as os } from "./RuleView.vue_vue_type_script_setup_true_lang-CODY5qdL.js";
|
|
13
|
+
import { e as is } from "./app-BN0HgwNB.js";
|
|
14
|
+
import { l as Fe, u as Xt } from "./discardConfirm-zfX1nuye.js";
|
|
15
15
|
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
import { useAppStore as mn, RemyButton as Rn } from "@feedmepos/mf-remy-panel";
|
|
17
17
|
import { _ as _t } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
18
|
-
import { u as as, r as rs } from "./rules-
|
|
19
|
-
import { _ as ra, a as In, b as En, c as On } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-
|
|
18
|
+
import { u as as, r as rs } from "./rules-BS6BLc8X.js";
|
|
19
|
+
import { _ as ra, a as In, b as En, c as On } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-DX_DRNF2.js";
|
|
20
20
|
import { a as bo, g as At } from "./translation-fNx6yEpy.js";
|
|
21
21
|
import { c as $n } from "./object-DVUNCr7w.js";
|
|
22
|
-
import { _ as Uo } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-
|
|
23
|
-
import { u as ss } from "./menu-
|
|
22
|
+
import { _ as Uo } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DesC2w1k.js";
|
|
23
|
+
import { u as ss } from "./menu-BupVgTY-.js";
|
|
24
24
|
import { c as Bt } from "./check-C9mY6LiX.js";
|
|
25
|
-
import { _ as yt, l as yo, T as ls } from "./index-
|
|
25
|
+
import { _ as yt, l as yo, T as ls } from "./index-DfoDRA0k.js";
|
|
26
26
|
import { useInventoryStore as sa, InventoryBindingForm as us, InventoryBindingSummary as cs } from "@feedmepos/mf-inventory-portal";
|
|
27
|
-
import { f as lt } from "./currency-
|
|
28
|
-
import { u as Mn } from "./memberPricing-
|
|
29
|
-
import { u as la } from "./priceTier-
|
|
27
|
+
import { f as lt } from "./currency-BTbX6PWL.js";
|
|
28
|
+
import { u as Mn } from "./memberPricing-BZgeIGmU.js";
|
|
29
|
+
import { u as la } from "./priceTier-eGLFeyfY.js";
|
|
30
30
|
import { u as ds } from "./search-BAPEUu1R.js";
|
|
31
31
|
import { c as ms } from "./string-DpfFixWH.js";
|
|
32
32
|
import { d as ua } from "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
|
|
33
|
-
import { _ as ps } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
34
|
-
import { u as fs, a as hs } from "./order_pacing-
|
|
35
|
-
import { V as hi } from "./index-
|
|
33
|
+
import { _ as ps } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-ChxM7qYy.js";
|
|
34
|
+
import { u as fs, a as hs } from "./order_pacing-Dfey1efO.js";
|
|
35
|
+
import { V as hi } from "./index-DTakcRjO.js";
|
|
36
36
|
var Xn, fn, Zn = 0, Qn = 0;
|
|
37
37
|
function gs(e, t, n) {
|
|
38
38
|
var o = 0, i = new Array(16);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as ct, g as Bt } from "./app-
|
|
2
|
-
import { y as wt } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { c as ct, g as Bt } from "./app-BN0HgwNB.js";
|
|
2
|
+
import { y as wt } from "./index.vue_vue_type_script_setup_true_lang-DybNA4Np.js";
|
|
3
3
|
var yt = { exports: {} }, Nt = yt.exports, It;
|
|
4
4
|
function Dt() {
|
|
5
5
|
return It || (It = 1, function(kt, Ot) {
|
|
@@ -74,7 +74,7 @@ function Dt() {
|
|
|
74
74
|
var Mt = Dt(), At = { exports: {} }, Rt;
|
|
75
75
|
function Ut() {
|
|
76
76
|
return Rt || (Rt = 1, function(kt, Ot) {
|
|
77
|
-
var gt = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
77
|
+
var gt = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_42b86956-4163-44e3-95a8-ee692a701584", 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_42b86956-4163-44e3-95a8-ee692a701584", 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", HCA_CLOUD_PROVIDER: "azure", 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.7.0", 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: "1887", ACTIONS_ORCHESTRATION_ID: "6e82e2b1-c17a-4c73-8d70-d1d5530fbc45.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: "20260816.277.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_42b86956-4163-44e3-95a8-ee692a701584", SWIFT_PATH: "/usr/share/swift/usr/bin", PORTAL_BACKEND_URL: "https://portal-v2-dev.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "9:13085", 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.13/x64", GITHUB_RUN_ID: "32862973742", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "abfa928bfabc431ab9b32c959efc24e654f2805f", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.6/x64", 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/main", 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_4b49ad7c-95b5-4b09-aec1-046a813758b7", INVOCATION_ID: "2f907cc31a5942dab4091e2bbdb063a8", 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: "590", GITHUB_TRIGGERING_ACTOR: "heiseshandian", 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 1000121836", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "main", 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.66-dev.4", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "abfa928bfabc431ab9b32c959efc24e654f2805f", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_42b86956-4163-44e3-95a8-ee692a701584", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "7780463", 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_42b86956-4163-44e3-95a8-ee692a701584", 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", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_42b86956-4163-44e3-95a8-ee692a701584", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", 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_42b86956-4163-44e3-95a8-ee692a701584", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
78
78
|
/*!
|
|
79
79
|
|
|
80
80
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed as m } from "vue";
|
|
2
|
-
import { F, g as h, h as S, b as v, i as C, k as N, T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as R } from "./menuV2-
|
|
4
|
-
import { C as w, h as E } from "./catalog-
|
|
2
|
+
import { F, g as h, h as S, b as v, i as C, k as N, T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-DybNA4Np.js";
|
|
3
|
+
import { u as R } from "./menuV2-B9-ODrLW.js";
|
|
4
|
+
import { C as w, h as E } from "./catalog-BuKsorK6.js";
|
|
5
5
|
import { useSnackbar as O, useDialog as A } from "@feedmepos/ui-library";
|
|
6
|
-
import { a as b } from "./LinkProductSideSheet-
|
|
6
|
+
import { a as b } from "./LinkProductSideSheet-BkNMJOiZ.js";
|
|
7
7
|
function D() {
|
|
8
8
|
const e = R(), p = m(() => e.categorizedRawMenuItems.filter((o) => o.items.length > 0)), l = m(() => {
|
|
9
9
|
const o = e.currentCatalog;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, ref as _, watch as S, resolveComponent as b, createBlock as f, openBlock as y, unref as M, computed as T } from "vue";
|
|
2
|
-
import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-DybNA4Np.js";
|
|
3
3
|
import { useI18n as l } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as x, useDialog as C, useSnackbar as P } from "@feedmepos/ui-library";
|
|
5
5
|
const k = /* @__PURE__ */ d({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
|
|
2
|
-
import { u as c } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as c } from "./index.vue_vue_type_script_setup_true_lang-DybNA4Np.js";
|
|
3
3
|
import "@feedmepos/mf-common";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
function p() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var We = Object.defineProperty;
|
|
2
2
|
var Le = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var ne = (e, t, n) => Le(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { l as ae } from "./discardConfirm-
|
|
4
|
+
import { l as ae } from "./discardConfirm-zfX1nuye.js";
|
|
5
5
|
import { defineStore as qe } from "pinia";
|
|
6
|
-
import { shallowRef as N, ref as
|
|
7
|
-
import { d as C, f as ue, m as T, k as ie, aq as re, g as
|
|
6
|
+
import { shallowRef as N, ref as H, computed as S, shallowReactive as ze, effectScope as He, watch as Be } from "vue";
|
|
7
|
+
import { d as C, f as ue, m as T, k as ie, aq as re, g as B, O as x, c as L, s as V, X as oe, ar as Ge, as as Je, a as Ye, Q as Qe, at as Xe, au as Ze, M as et } from "./index.vue_vue_type_script_setup_true_lang-DybNA4Np.js";
|
|
8
8
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
9
9
|
import { useSnackbar as tt } from "@feedmepos/ui-library";
|
|
10
10
|
function nt(e) {
|
|
@@ -16,14 +16,14 @@ function nt(e) {
|
|
|
16
16
|
}
|
|
17
17
|
return delete t.variant, delete t.thumbnail, delete t.images, [t, ...n || []];
|
|
18
18
|
}
|
|
19
|
-
const rt = "/assets/linked-status-
|
|
19
|
+
const rt = "/assets/linked-status-CfzY6n0e.js", ot = "/assets/override-menu-CmqrughS.js";
|
|
20
20
|
function st(e, t, n, s) {
|
|
21
21
|
const r = C(t), u = n ? r.modules.catalog.find((f) => f._id === n) : null, c = s ? r.modules.scheduler.find((f) => f._id === s) : null, a = u ? C(u) : void 0, d = n ? r.modules.catalog.filter((f) => f._id !== n) : [], l = c ? C(c) : void 0, g = e.reduce((f, v) => (f[v._id] = nt(v), f), {});
|
|
22
22
|
function y(f = []) {
|
|
23
|
-
const v = e.map((
|
|
23
|
+
const v = e.map((h) => h._id);
|
|
24
24
|
return [
|
|
25
|
-
...f.filter((
|
|
26
|
-
...Object.values(g).flatMap((
|
|
25
|
+
...f.filter((h) => !v.includes(h._id)),
|
|
26
|
+
...Object.values(g).flatMap((h) => h)
|
|
27
27
|
];
|
|
28
28
|
}
|
|
29
29
|
return a && s ? (a.override.scheduler = {
|
|
@@ -65,8 +65,8 @@ function F(e, t, n) {
|
|
|
65
65
|
const a = (l = e == null ? void 0 : e.groups) == null ? void 0 : l.find((f) => f._id === c._id);
|
|
66
66
|
let d;
|
|
67
67
|
return a ? d = ((g = c.items) == null ? void 0 : g.map((f) => {
|
|
68
|
-
var
|
|
69
|
-
const v = (
|
|
68
|
+
var h;
|
|
69
|
+
const v = (h = a.items) == null ? void 0 : h.find(
|
|
70
70
|
(b) => b._id === f._id && b.combinationKey === f.combinationKey
|
|
71
71
|
);
|
|
72
72
|
return F(v || f, t, n + 1);
|
|
@@ -230,9 +230,9 @@ async function Pt(e, t, n) {
|
|
|
230
230
|
if (l) {
|
|
231
231
|
const y = (a = d.items) == null ? void 0 : a.filter((v) => v._id === n && v.combinationKey), f = [l, ...y].map((v) => {
|
|
232
232
|
var M, I;
|
|
233
|
-
const
|
|
233
|
+
const h = v.combinationKey ? (I = (M = g == null ? void 0 : g.variant) == null ? void 0 : M.variantCombinations) == null ? void 0 : I.find(
|
|
234
234
|
(E) => E.combinationKey === v.combinationKey
|
|
235
|
-
) : g, b =
|
|
235
|
+
) : g, b = h && g ? u(g, h) : v;
|
|
236
236
|
return u(b, v);
|
|
237
237
|
});
|
|
238
238
|
r.push({
|
|
@@ -319,32 +319,32 @@ function dt(e, t, n) {
|
|
|
319
319
|
const s = { _t: "a" }, r = ((f = n == null ? void 0 : n.arrays) == null ? void 0 : f.detectMove) !== !1, u = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.includeValueOnMove) === !0, c = n == null ? void 0 : n.objectHash;
|
|
320
320
|
let a = r ? lt(e, t, c) : [];
|
|
321
321
|
if (!c && e.length === t.length && e.length > 0 && a.length < e.length) {
|
|
322
|
-
const
|
|
323
|
-
if (
|
|
322
|
+
const h = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
|
|
323
|
+
if (h || b) {
|
|
324
324
|
a = [];
|
|
325
325
|
for (let M = 0; M < e.length; M++)
|
|
326
326
|
a.push({ leftIndex: M, rightIndex: M });
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
|
-
new Set(a.map((
|
|
330
|
-
const d = new Set(a.map((
|
|
331
|
-
for (const
|
|
332
|
-
l.set(
|
|
333
|
-
for (let
|
|
334
|
-
const b = l.get(
|
|
329
|
+
new Set(a.map((h) => h.leftIndex));
|
|
330
|
+
const d = new Set(a.map((h) => h.rightIndex)), l = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
331
|
+
for (const h of a)
|
|
332
|
+
l.set(h.leftIndex, h.rightIndex), g.set(h.rightIndex, h.leftIndex);
|
|
333
|
+
for (let h = 0; h < e.length; h++) {
|
|
334
|
+
const b = l.get(h);
|
|
335
335
|
if (b !== void 0) {
|
|
336
|
-
const M =
|
|
337
|
-
if (M !== void 0 && (s[b] = M), r && b !==
|
|
338
|
-
const I = `_${
|
|
336
|
+
const M = J(e[h], t[b], n);
|
|
337
|
+
if (M !== void 0 && (s[b] = M), r && b !== h) {
|
|
338
|
+
const I = `_${h}`, E = u ? [e[h], b, K] : ["", b, K];
|
|
339
339
|
s[I] = E;
|
|
340
340
|
}
|
|
341
341
|
} else {
|
|
342
|
-
const M = `_${
|
|
343
|
-
s[M] = [e[
|
|
342
|
+
const M = `_${h}`;
|
|
343
|
+
s[M] = [e[h], w, w];
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
for (let
|
|
347
|
-
d.has(
|
|
346
|
+
for (let h = 0; h < t.length; h++)
|
|
347
|
+
d.has(h) || (s[h] = [t[h]]);
|
|
348
348
|
const y = Object.keys(s);
|
|
349
349
|
if (!(y.length === 1 && y[0] === "_t"))
|
|
350
350
|
return s;
|
|
@@ -357,7 +357,7 @@ function mt(e, t, n) {
|
|
|
357
357
|
continue;
|
|
358
358
|
const d = Object.prototype.hasOwnProperty.call(e, a), l = Object.prototype.hasOwnProperty.call(t, a);
|
|
359
359
|
if (d && l) {
|
|
360
|
-
const g =
|
|
360
|
+
const g = J(e[a], t[a], n);
|
|
361
361
|
g !== void 0 && (s[a] = g);
|
|
362
362
|
} else if (d && !l) {
|
|
363
363
|
const g = n != null && n.omitRemovedValues ? 0 : e[a];
|
|
@@ -366,7 +366,7 @@ function mt(e, t, n) {
|
|
|
366
366
|
}
|
|
367
367
|
return Object.keys(s).length > 0 ? s : void 0;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function J(e, t, n) {
|
|
370
370
|
if (P(e, t)) return;
|
|
371
371
|
if (e === void 0 && t !== void 0) {
|
|
372
372
|
const a = n != null && n.cloneDiffValues ? O(t) : t;
|
|
@@ -384,7 +384,7 @@ function Y(e, t, n) {
|
|
|
384
384
|
return [$(u), $(c)];
|
|
385
385
|
}
|
|
386
386
|
function ft(e, t, n) {
|
|
387
|
-
return
|
|
387
|
+
return J(e, t, n);
|
|
388
388
|
}
|
|
389
389
|
function vt(e, t, n) {
|
|
390
390
|
const s = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
|
|
@@ -403,7 +403,7 @@ function vt(e, t, n) {
|
|
|
403
403
|
else {
|
|
404
404
|
for (; c < e.length && s.has(c); )
|
|
405
405
|
c++;
|
|
406
|
-
c < e.length && (u.push(
|
|
406
|
+
c < e.length && (u.push(Y(e[c], l)), c++);
|
|
407
407
|
}
|
|
408
408
|
else {
|
|
409
409
|
let g = !1;
|
|
@@ -428,11 +428,11 @@ function yt(e, t, n) {
|
|
|
428
428
|
const s = { ...e };
|
|
429
429
|
for (const r in t) {
|
|
430
430
|
const u = t[r];
|
|
431
|
-
Array.isArray(u) ? u.length === 1 ? s[r] = u[0] : u.length === 3 && u[2] === w ? delete s[r] : u.length === 2 && (s[r] = u[1]) : s[r] =
|
|
431
|
+
Array.isArray(u) ? u.length === 1 ? s[r] = u[0] : u.length === 3 && u[2] === w ? delete s[r] : u.length === 2 && (s[r] = u[1]) : s[r] = Y(s[r], u);
|
|
432
432
|
}
|
|
433
433
|
return s;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Y(e, t, n) {
|
|
436
436
|
if (t === void 0) return e;
|
|
437
437
|
if (Array.isArray(t)) {
|
|
438
438
|
if (t.length === 1)
|
|
@@ -445,7 +445,7 @@ function J(e, t, n) {
|
|
|
445
445
|
return k(t) && t._t === "a" ? vt(e, t) : k(t) && k(e) ? yt(e, t) : e;
|
|
446
446
|
}
|
|
447
447
|
function le(e, t, n) {
|
|
448
|
-
return
|
|
448
|
+
return Y(e, t);
|
|
449
449
|
}
|
|
450
450
|
function gt(e) {
|
|
451
451
|
const t = { _t: "a" };
|
|
@@ -472,7 +472,7 @@ function gt(e) {
|
|
|
472
472
|
}
|
|
473
473
|
return t;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function ht(e) {
|
|
476
476
|
const t = {};
|
|
477
477
|
for (const n in e) {
|
|
478
478
|
const s = e[n];
|
|
@@ -497,13 +497,13 @@ function Q(e) {
|
|
|
497
497
|
if (e.length === 3 && e[2] === K)
|
|
498
498
|
return e;
|
|
499
499
|
}
|
|
500
|
-
return k(e) && e._t === "a" ? gt(e) : k(e) ?
|
|
500
|
+
return k(e) && e._t === "a" ? gt(e) : k(e) ? ht(e) : e;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
function de(e) {
|
|
504
504
|
return Q(e);
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function pt(e, t, n) {
|
|
507
507
|
const s = de(t);
|
|
508
508
|
return le(e, s);
|
|
509
509
|
}
|
|
@@ -522,7 +522,7 @@ class _t {
|
|
|
522
522
|
return de(t);
|
|
523
523
|
}
|
|
524
524
|
unpatch(t, n) {
|
|
525
|
-
return
|
|
525
|
+
return pt(t, n, this.options);
|
|
526
526
|
}
|
|
527
527
|
clone(t) {
|
|
528
528
|
return O(t);
|
|
@@ -541,14 +541,14 @@ function bt({
|
|
|
541
541
|
includeValueOnMove: !1
|
|
542
542
|
},
|
|
543
543
|
cloneDiffValues: !1
|
|
544
|
-
}), n = N(null), s = N([]), r =
|
|
544
|
+
}), n = N(null), s = N([]), r = H(-1), u = N(null), c = S(() => r.value > 0), a = S(() => r.value < s.value.length - 1);
|
|
545
545
|
function d(v) {
|
|
546
546
|
if (n.value === null) {
|
|
547
547
|
n.value = C(v), u.value = C(v), s.value = [{ delta: null }], r.value = 0;
|
|
548
548
|
return;
|
|
549
549
|
}
|
|
550
|
-
const
|
|
551
|
-
if (r.value < s.value.length - 1 && (s.value = s.value.slice(0, r.value + 1)), s.value.push({ delta:
|
|
550
|
+
const h = t.diff(u.value, v);
|
|
551
|
+
if (r.value < s.value.length - 1 && (s.value = s.value.slice(0, r.value + 1)), s.value.push({ delta: h }), r.value++, u.value = C(v), s.value.length > e) {
|
|
552
552
|
const b = s.value[1].delta;
|
|
553
553
|
b && n.value && (n.value = t.patch(C(n.value), b)), s.value.shift(), r.value--;
|
|
554
554
|
}
|
|
@@ -556,12 +556,12 @@ function bt({
|
|
|
556
556
|
function l(v) {
|
|
557
557
|
if (!n.value || v < 0 || v >= s.value.length)
|
|
558
558
|
return;
|
|
559
|
-
let
|
|
559
|
+
let h = C(n.value);
|
|
560
560
|
for (let b = 1; b <= v; b++) {
|
|
561
561
|
const M = s.value[b];
|
|
562
|
-
M.delta && (
|
|
562
|
+
M.delta && (h = t.patch(h, M.delta));
|
|
563
563
|
}
|
|
564
|
-
return
|
|
564
|
+
return h;
|
|
565
565
|
}
|
|
566
566
|
function g() {
|
|
567
567
|
if (c.value) {
|
|
@@ -591,7 +591,7 @@ function bt({
|
|
|
591
591
|
}
|
|
592
592
|
const Mt = {
|
|
593
593
|
async updateMenuModule(e, t) {
|
|
594
|
-
const n =
|
|
594
|
+
const n = B.RequestRunner.operation(t, e.modules);
|
|
595
595
|
if (n.validateError.length > 0)
|
|
596
596
|
throw new Error(n.validateError.join(`
|
|
597
597
|
`));
|
|
@@ -667,19 +667,19 @@ const $t = qe(
|
|
|
667
667
|
function g(o, i = !0) {
|
|
668
668
|
e.menu = { ...o, _rev: e.menu._rev }, i && D.push(e.menu);
|
|
669
669
|
}
|
|
670
|
-
const y = N(me()), f =
|
|
671
|
-
async function
|
|
670
|
+
const y = N(me()), f = H(!1), v = H(1);
|
|
671
|
+
async function h() {
|
|
672
672
|
var m;
|
|
673
673
|
f.value = !0;
|
|
674
674
|
let o = e.menu.modules.catalog;
|
|
675
675
|
if (a.value && ((m = a.value.linkItemRules) != null && m.length)) {
|
|
676
|
-
const
|
|
676
|
+
const p = T.populateCatalog({
|
|
677
677
|
catalog: a.value,
|
|
678
678
|
ruleGroupSettings: e.menu.ruleGroupSettings,
|
|
679
679
|
items: e.menu.modules.item,
|
|
680
680
|
...e.currentRestaurantAttrParams ?? {}
|
|
681
681
|
});
|
|
682
|
-
o = e.menu.modules.catalog.map((_) => _._id === (
|
|
682
|
+
o = e.menu.modules.catalog.map((_) => _._id === (p == null ? void 0 : p._id) ? p : _);
|
|
683
683
|
}
|
|
684
684
|
const i = await ce(
|
|
685
685
|
{
|
|
@@ -693,19 +693,19 @@ const $t = qe(
|
|
|
693
693
|
e.currentSchedulerId
|
|
694
694
|
);
|
|
695
695
|
if (e.currentSchedulerId != null) {
|
|
696
|
-
const
|
|
696
|
+
const p = e.menu.modules.catalog.find(
|
|
697
697
|
(R) => R._id === e.currentCatalogId
|
|
698
|
-
), _ =
|
|
698
|
+
), _ = p ? p.override.scheduler[e.currentSchedulerId] : e.menu.modules.scheduler.find(
|
|
699
699
|
(R) => R._id === e.currentSchedulerId
|
|
700
700
|
), A = new Set(((_ == null ? void 0 : _.items) || []).map((R) => R._id));
|
|
701
701
|
i.modules.item = i.modules.item.filter((R) => A.has(R._id));
|
|
702
702
|
}
|
|
703
703
|
return y.value = i, f.value = !1, v.value = v.value + 1, i;
|
|
704
704
|
}
|
|
705
|
-
const M = ae.debounce(
|
|
705
|
+
const M = ae.debounce(h, 200);
|
|
706
706
|
let I = null, E = null;
|
|
707
707
|
function X() {
|
|
708
|
-
E && (E(), E = null), I && I.stop(), I =
|
|
708
|
+
E && (E(), E = null), I && I.stop(), I = He(!0), E = I.run(() => Be(
|
|
709
709
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
710
710
|
() => {
|
|
711
711
|
f.value || M();
|
|
@@ -742,9 +742,9 @@ const $t = qe(
|
|
|
742
742
|
let o = y.value.modules.item;
|
|
743
743
|
if (a.value) {
|
|
744
744
|
const m = (i = a.value) == null ? void 0 : i.override.items;
|
|
745
|
-
o = o.filter((
|
|
745
|
+
o = o.filter((p) => {
|
|
746
746
|
var A;
|
|
747
|
-
const _ = (A = m == null ? void 0 : m[
|
|
747
|
+
const _ = (A = m == null ? void 0 : m[p._id]) == null ? void 0 : A.find(
|
|
748
748
|
(R) => !R.combinationKey
|
|
749
749
|
);
|
|
750
750
|
return (_ == null ? void 0 : _.orderFrom) !== ie.enum.NONE;
|
|
@@ -752,15 +752,15 @@ const $t = qe(
|
|
|
752
752
|
}
|
|
753
753
|
return V(o, (m) => m.code || m.name);
|
|
754
754
|
}), ye = S(() => {
|
|
755
|
-
const o = e.menu.modules.category, i = V(o, (
|
|
756
|
-
(
|
|
755
|
+
const o = e.menu.modules.category, i = V(o, (p) => p.name).reduce(
|
|
756
|
+
(p, _, A) => (p[_._id] = A, p),
|
|
757
757
|
{ "": 0 }
|
|
758
758
|
), m = e.menu.modules.item;
|
|
759
759
|
return V(
|
|
760
760
|
m,
|
|
761
|
-
(
|
|
762
|
-
).reduce((
|
|
763
|
-
}), ge = S(() => oe(j.value, Z.value, ee.value)),
|
|
761
|
+
(p) => p.code || p.name
|
|
762
|
+
).reduce((p, _, A) => (p[_._id] = A + i[_.category || ""], p), {});
|
|
763
|
+
}), ge = S(() => oe(j.value, Z.value, ee.value)), he = S(() => {
|
|
764
764
|
const o = U.value.item.addon ? [
|
|
765
765
|
{
|
|
766
766
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -778,34 +778,34 @@ const $t = qe(
|
|
|
778
778
|
const o = y.value.modules.variant;
|
|
779
779
|
return x(o, { selector: "name" });
|
|
780
780
|
});
|
|
781
|
-
function
|
|
782
|
-
const i = o.map((
|
|
783
|
-
return T.fullVariantCombination(i).reduce((
|
|
781
|
+
function pe(o = []) {
|
|
782
|
+
const i = o.map((p) => j.value.find((_) => _._id === p)).filter((p) => !!p);
|
|
783
|
+
return T.fullVariantCombination(i).reduce((p, _) => (p[_.combinationKey] = _.selectionName.join(" / "), p), {});
|
|
784
784
|
}
|
|
785
785
|
const _e = S(() => V(y.value.modules.group, (o) => o.name)), Se = S(() => x(y.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
|
|
786
786
|
selector: "name"
|
|
787
787
|
})), Me = S(() => x(e.menu.modules.unit, { selector: "name" })), we = S(() => x(Ge(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
788
788
|
selector: "name"
|
|
789
789
|
})), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
|
|
790
|
-
const o =
|
|
790
|
+
const o = Je(e.menu.modules.sku);
|
|
791
791
|
return x(o, { selector: "code" });
|
|
792
792
|
}), Ie = S(() => {
|
|
793
793
|
const o = /* @__PURE__ */ new Map();
|
|
794
794
|
return e.menu.modules.item.forEach((i) => {
|
|
795
|
-
var m,
|
|
796
|
-
i.code && o.set(i.code, (o.get(i.code) || 0) + 1), (
|
|
795
|
+
var m, p;
|
|
796
|
+
i.code && o.set(i.code, (o.get(i.code) || 0) + 1), (p = (m = i.variant) == null ? void 0 : m.variantCombinations) == null || p.forEach((_) => {
|
|
797
797
|
_.code && o.set(_.code, (o.get(_.code) || 0) + 1);
|
|
798
798
|
});
|
|
799
799
|
}), o;
|
|
800
800
|
}), U = S(() => {
|
|
801
|
-
const o = !e.currentCatalogId, i = r.value === L.F_MENU_VERSION.v4, m = !e.currentSchedulerId,
|
|
801
|
+
const o = !e.currentCatalogId, i = r.value === L.F_MENU_VERSION.v4, m = !e.currentSchedulerId, p = {
|
|
802
802
|
create: o && m,
|
|
803
803
|
edit: o && m,
|
|
804
804
|
delete: o && m
|
|
805
805
|
};
|
|
806
806
|
return {
|
|
807
807
|
item: {
|
|
808
|
-
...
|
|
808
|
+
...p,
|
|
809
809
|
edit: i || m,
|
|
810
810
|
sort: i && o && m,
|
|
811
811
|
addon: i,
|
|
@@ -841,12 +841,12 @@ const $t = qe(
|
|
|
841
841
|
takeawayConfig: i
|
|
842
842
|
},
|
|
843
843
|
category: {
|
|
844
|
-
...
|
|
844
|
+
...p,
|
|
845
845
|
sort: o,
|
|
846
846
|
overrideSequence: i
|
|
847
847
|
},
|
|
848
848
|
group: {
|
|
849
|
-
...
|
|
849
|
+
...p,
|
|
850
850
|
edit: i || m,
|
|
851
851
|
sort: o,
|
|
852
852
|
applyProduct: o,
|
|
@@ -860,7 +860,7 @@ const $t = qe(
|
|
|
860
860
|
override: i
|
|
861
861
|
},
|
|
862
862
|
takeaway: {
|
|
863
|
-
...
|
|
863
|
+
...p,
|
|
864
864
|
edit: (i || o) && m,
|
|
865
865
|
name: o
|
|
866
866
|
},
|
|
@@ -879,11 +879,11 @@ const $t = qe(
|
|
|
879
879
|
return { systemCode: i, taxCode: m };
|
|
880
880
|
}
|
|
881
881
|
function ke(o, i, m) {
|
|
882
|
-
return (o ?? i ?? []).map((
|
|
882
|
+
return (o ?? i ?? []).map((p) => W(p)).find((p) => m.some((_) => _.value === p));
|
|
883
883
|
}
|
|
884
884
|
const Re = S(() => {
|
|
885
|
-
var
|
|
886
|
-
const o = ["SV5", "SV10"], i =
|
|
885
|
+
var p;
|
|
886
|
+
const o = ["SV5", "SV10"], i = Ye.Country.getCountryFlattenTaxes(
|
|
887
887
|
se().currentCountry.value
|
|
888
888
|
), m = i.filter((_) => u.value || !o.includes(_.taxCode)).map((_) => ({
|
|
889
889
|
label: `${_.name} (${Qe(_.rate)}%)`,
|
|
@@ -893,7 +893,7 @@ const $t = qe(
|
|
|
893
893
|
}
|
|
894
894
|
}));
|
|
895
895
|
return m.sort((_, A) => _.label.localeCompare(A.label, void 0, { numeric: !0 })), {
|
|
896
|
-
systemCode: (
|
|
896
|
+
systemCode: (p = i[0]) == null ? void 0 : p.systemCode,
|
|
897
897
|
countryTaxOptions: m
|
|
898
898
|
};
|
|
899
899
|
}), xe = async () => {
|
|
@@ -921,19 +921,19 @@ const $t = qe(
|
|
|
921
921
|
}, Ke = async (o, i) => {
|
|
922
922
|
const m = Array.isArray(o) ? o : [o];
|
|
923
923
|
if (!m.length) return;
|
|
924
|
-
const
|
|
924
|
+
const p = m.map((_) => ({
|
|
925
925
|
..._,
|
|
926
926
|
_id: e.menu._id,
|
|
927
927
|
_rev: e.menu._rev
|
|
928
928
|
}));
|
|
929
929
|
try {
|
|
930
|
-
if (i ||
|
|
931
|
-
(A) => [
|
|
930
|
+
if (i || p.some(
|
|
931
|
+
(A) => [B.F_OPERATION_TYPE.delete, B.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
932
932
|
)) {
|
|
933
|
-
const A = await Xe(
|
|
933
|
+
const A = await Xe(p, e.menu.modules);
|
|
934
934
|
if (A !== !0) throw new Error(A);
|
|
935
935
|
}
|
|
936
|
-
const _ = await Mt.updateMenuModule(e.menu,
|
|
936
|
+
const _ = await Mt.updateMenuModule(e.menu, p);
|
|
937
937
|
return g(_.menu), _;
|
|
938
938
|
} catch (_) {
|
|
939
939
|
n.open({
|
|
@@ -981,7 +981,7 @@ const $t = qe(
|
|
|
981
981
|
sortedItems: ye,
|
|
982
982
|
itemCodeMap: Ie,
|
|
983
983
|
categorizedItems: ge,
|
|
984
|
-
categorizedRawMenuItems:
|
|
984
|
+
categorizedRawMenuItems: he,
|
|
985
985
|
variants: j,
|
|
986
986
|
groups: _e,
|
|
987
987
|
takeaways: Se,
|
|
@@ -1002,12 +1002,12 @@ const $t = qe(
|
|
|
1002
1002
|
setRestaurantAttrParams: Te,
|
|
1003
1003
|
updateMenu: Ke,
|
|
1004
1004
|
updateMenuSetting: Pe,
|
|
1005
|
-
computeMergedMenu:
|
|
1005
|
+
computeMergedMenu: h,
|
|
1006
1006
|
// helper
|
|
1007
1007
|
encodeTax: W,
|
|
1008
1008
|
decodeTax: Ee,
|
|
1009
1009
|
getSelectedTax: ke,
|
|
1010
|
-
mapVariant:
|
|
1010
|
+
mapVariant: pe,
|
|
1011
1011
|
// history
|
|
1012
1012
|
canUndoHistory: $e,
|
|
1013
1013
|
canRedoHistory: Fe,
|