@feedmepos/mf-menu 0.32.36-dev.1 → 0.32.36-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-kWM-c-VW.js → App-i-a1N6gr.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-vDhIkU2x.js → ApplyProduct.vue_vue_type_script_setup_true_lang-B9Gifb4b.js} +3 -3
- package/dist/{Catalog-BPoH4ou0.js → Catalog-XpqUQEl-.js} +6 -6
- package/dist/{Category-DB-KS-aK.js → Category-CbhKjYH-.js} +6 -6
- package/dist/{Category-Ctk82ElE.js → Category-Ira-TjqG.js} +4 -4
- package/dist/{CookingGuide-DzFvMR3f.js → CookingGuide-vOwwyCC0.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cw7Tp2RF.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-hYpKpq4e.js} +1 -1
- package/dist/{Group-QG_Ff94I.js → Group-C31bGUDu.js} +3 -3
- package/dist/{Group-X4-dsPOl.js → Group-DKkLJ3xn.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-TEoT7IZF.js → Group.vue_vue_type_script_setup_true_lang-BJ_Ne9V0.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B1HQJLwH.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BW4vFpLk.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BgQmfOu2.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CYutw0eY.js} +6 -6
- package/dist/{Ingredient-CpQdtgXp.js → Ingredient-BRn-pTRn.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DpHPBnQM.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BIfGFknQ.js} +2 -2
- package/dist/{LinkProductSideSheet-DXlvmEZP.js → LinkProductSideSheet-CLTathBT.js} +3 -3
- package/dist/{MenuSetting-zVwkpCbK.js → MenuSetting-CH2tN3h3.js} +5 -5
- package/dist/{PrintRoute-DCTnn1M7.js → PrintRoute-BLpBuDkx.js} +4 -4
- package/dist/{Product-CNRye8qG.js → Product-D8UwdQip.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Bb7MbAoZ.js → Product.vue_vue_type_script_setup_true_lang-B9X8ofgT.js} +12 -12
- package/dist/{ProductInternalTools-DFu1CuFV.js → ProductInternalTools-CXXlfjUe.js} +5 -5
- package/dist/{Products-B7L8MHTg.js → Products-O_Bfv8jZ.js} +45 -45
- package/dist/{Publish-CzyoIX4w.js → Publish-D_wFGRvm.js} +3 -3
- package/dist/{Recipe-D8onc4OT.js → Recipe-BUkdYiTr.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-BiXzW8v5.js → RuleView.vue_vue_type_script_setup_true_lang-BpX4iYy1.js} +2 -2
- package/dist/{Scheduler-BkRm9pR4.js → Scheduler-C45rKFNf.js} +3 -3
- package/dist/{ServingSequence-CD-hyRYh.js → ServingSequence-B_FBZlsa.js} +3 -3
- package/dist/{Setting-Bl0uxXi6.js → Setting-ftZMtI65.js} +5 -5
- package/dist/{Subcategory-CkwPg8j4.js → Subcategory-CfRtnAL4.js} +4 -4
- package/dist/{Takeaway-Cn09BIs1.js → Takeaway-DJrQfujQ.js} +4 -4
- package/dist/{Takeaway-C17N0zyz.js → Takeaway-b51ve8Js.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CtlLkLly.js → Takeaway.vue_vue_type_script_setup_true_lang-CZ-UQ-ro.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CkpqKq3F.js → Thumbnail.vue_vue_type_script_setup_true_lang-DVHme_sc.js} +4 -4
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-D2EQcPaF.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CePjOdRN.js} +13 -13
- package/dist/{Unit-CAnjVbQm.js → Unit-0YfP5uOC.js} +2 -2
- package/dist/{Variant-AsnLx8Ws.js → Variant-BT17nrjR.js} +3 -3
- package/dist/{_id_-B5kpkFyK.js → _id_-DSTEZTWU.js} +9 -9
- package/dist/{app-CDdYcVGO.js → app-Ck9XuPtb.js} +26 -26
- package/dist/{app-NWN4S3De.js → app-D_qC9W0i.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/assets/{linked-status-BZaDgV3u.js → linked-status-C08g3mzJ.js} +2 -2
- package/dist/assets/{menu-export-B_RGFj3F.js → menu-export-5JUPjPDN.js} +2 -2
- package/dist/assets/{override-menu-C1rIbWBa.js → override-menu-CX6Zp8Yp.js} +2 -2
- package/dist/assets/{validate-menu-BZP2c3zS.js → validate-menu-CHsDW5tX.js} +2 -2
- package/dist/{catalog-clvUbIAb.js → catalog-2TDl7vk-.js} +1 -1
- package/dist/{catalogSetting-CZbKkSmd.js → catalogSetting-Cu0BH0Or.js} +1 -1
- package/dist/{category-BKJHt8sh.js → category-Bv0X5TzQ.js} +1 -1
- package/dist/{currency-9hqzsdqQ.js → currency-DTgHGJ_e.js} +1 -1
- package/dist/{dayjs.min-C_28H85r.js → dayjs.min-CmYRq-9r.js} +1 -1
- package/dist/{index-DnTkUiQQ.js → index-B-dfTI2o.js} +3 -3
- package/dist/{index-D2mrEWgo.js → index-BWlqdvE7.js} +4 -4
- package/dist/{index-CdbnjPVv.js → index-DPjLRFJr.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DeuSsFSp.js → index.vue_vue_type_script_setup_true_lang-B_eAqoib.js} +1332 -1332
- package/dist/{item-DJA_J021.js → item-B17ad9Tk.js} +13 -13
- package/dist/{jszip.min-a5FfgkE7.js → jszip.min-Bv5pTgw3.js} +2 -2
- package/dist/{menu-yHs0crhG.js → menu-B4cZkcAZ.js} +1 -1
- package/dist/{menuV2-jTodF9bX.js → menuV2-CLBA9fXn.js} +96 -96
- package/dist/{priceTier-C3RCME-L.js → priceTier-D2LO_mon.js} +1 -1
- package/dist/{scheduler-BZkCxoqa.js → scheduler-Bf29JNYL.js} +4 -4
- package/dist/{subcategory-BzAh1Gbf.js → subcategory-DHEp0V8L.js} +2 -2
- package/dist/{toExcel-J8jNwGpd.js → toExcel-D3-BZ31Q.js} +2 -2
- package/dist/{unit-DAfSEviZ.js → unit-B1tQkskS.js} +2 -2
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { defineStore as Oi } from "pinia";
|
|
2
2
|
import { defineComponent as de, resolveComponent as L, createElementBlock as ne, createBlock as H, openBlock as O, createElementVNode as $, createVNode as g, toDisplayString as ce, Fragment as Se, renderList as $e, h as Ce, ref as ie, computed as M, watch as Ae, unref as h, renderSlot as fe, withCtx as N, createCommentVNode as te, Transition as gn, normalizeClass as Fe, resolveDynamicComponent as St, withDirectives as ut, vShow as Ct, mergeProps as Fi, withModifiers as kt, onMounted as ot, onUnmounted as bn, createTextVNode as Vt, resolveDirective as zi, getCurrentInstance as Ii, markRaw as yn, render as Ut, mergeModels as _n, useModel as wn, nextTick as Ei, normalizeProps as Sn, guardReactiveProps as Cn, normalizeStyle as kn } from "vue";
|
|
3
|
-
import { M as ke, A as Y, am as xn, ao as Rn, $ as An, I as ue, D as Ee, B as Re, W as Mn, u as ye, J as Te, G as Xe, Q as qe, R as On, T as Fn, U as zn, V as Ft, ag as In, X as En, O as Tn, N as hi } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { M as ke, A as Y, am as xn, ao as Rn, $ as An, I as ue, D as Ee, B as Re, W as Mn, u as ye, J as Te, G as Xe, Q as qe, R as On, T as Fn, U as zn, V as Ft, ag as In, X as En, O as Tn, N as hi } from "./index.vue_vue_type_script_setup_true_lang-B_eAqoib.js";
|
|
4
4
|
import { useI18n as pe, useCoreStore as pt, CustomAttributesForm as Ti } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as Le, useSnackbar as Ne, components as Me, FmButtonColorThemeVariant as je, FmButtonVariant as Ze, useBreakpoints as Di, useDialogChild as Pi } from "@feedmepos/ui-library";
|
|
6
|
-
import { C as Ke } from "./catalog-
|
|
6
|
+
import { C as Ke } from "./catalog-2TDl7vk-.js";
|
|
7
7
|
import { c as Dn } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
8
8
|
import { a as fi, _ as Vi } from "./tooltip-B5BiPMx9.js";
|
|
9
|
-
import { H as Pn, L as Vn } from "./LinkProductSideSheet-
|
|
10
|
-
import { e as Un, _ as De, a as $n } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { H as Pn, L as Vn } from "./LinkProductSideSheet-CLTathBT.js";
|
|
10
|
+
import { e as Un, _ as De, a as $n } from "./RuleView.vue_vue_type_script_setup_true_lang-BpX4iYy1.js";
|
|
11
11
|
import { s as $t, F as Nn, _ as Bn } from "./index-CisutoS9.js";
|
|
12
|
-
import { a as Ln } from "./app-
|
|
12
|
+
import { a as Ln } from "./app-Ck9XuPtb.js";
|
|
13
13
|
import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
import { g as Ui, b as Gn, c as jn, a as Kn, m as Wn } from "./menuV2-
|
|
14
|
+
import { g as Ui, b as Gn, c as jn, a as Kn, m as Wn } from "./menuV2-CLBA9fXn.js";
|
|
15
15
|
import { useAppStore as Ht, RemyButton as $i } from "@feedmepos/mf-remy-panel";
|
|
16
16
|
import { _ as Ye } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
17
|
-
import { u as Yn } from "./subcategory-
|
|
18
|
-
import { u as Hn } from "./category-
|
|
17
|
+
import { u as Yn } from "./subcategory-DHEp0V8L.js";
|
|
18
|
+
import { u as Hn } from "./category-Bv0X5TzQ.js";
|
|
19
19
|
import { u as Xt } from "./discardConfirm-BHni0LNu.js";
|
|
20
|
-
import { _ as et, l as Nt, T as Xn } from "./index-
|
|
20
|
+
import { _ as et, l as Nt, T as Xn } from "./index-BWlqdvE7.js";
|
|
21
21
|
import { useInventoryStore as Ni, InventoryBindingForm as qn, InventoryBindingSummary as Zn } from "@feedmepos/mf-inventory-portal";
|
|
22
22
|
import { c as ht } from "./check-C9mY6LiX.js";
|
|
23
23
|
import { c as Qn } from "./object-DVUNCr7w.js";
|
|
24
|
-
import { f as at } from "./currency-
|
|
25
|
-
import { u as Bi } from "./priceTier-
|
|
24
|
+
import { f as at } from "./currency-DTgHGJ_e.js";
|
|
25
|
+
import { u as Bi } from "./priceTier-D2LO_mon.js";
|
|
26
26
|
import { u as Jn } from "./search-BAPEUu1R.js";
|
|
27
27
|
import { c as eo } from "./string-DpfFixWH.js";
|
|
28
28
|
import { d as Li } from "./vuedraggable-CK8z7qA8.js";
|
|
29
|
-
import { _ as to } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-
|
|
30
|
-
import { V as vi } from "./index-
|
|
29
|
+
import { _ as to } from "./ApplyProduct.vue_vue_type_script_setup_true_lang-B9Gifb4b.js";
|
|
30
|
+
import { V as vi } from "./index-B-dfTI2o.js";
|
|
31
31
|
class _t {
|
|
32
32
|
constructor(i, t, n, a) {
|
|
33
33
|
this.scheduler = i, this.menuStore = t, this.updateMenu = n, this.dialog = a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ct, a3 as wt, g as Bt } from "./index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { c as ct, a3 as wt, g as Bt } from "./index.vue_vue_type_script_setup_true_lang-B_eAqoib.js";
|
|
2
2
|
var yt = { exports: {} }, Nt = yt.exports, It;
|
|
3
3
|
function Dt() {
|
|
4
4
|
return It || (It = 1, function(kt, Ot) {
|
|
@@ -73,7 +73,7 @@ function Dt() {
|
|
|
73
73
|
var Lt = Dt(), At = { exports: {} }, Rt;
|
|
74
74
|
function Ut() {
|
|
75
75
|
return Rt || (Rt = 1, function(kt, Ot) {
|
|
76
|
-
var gt = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
76
|
+
var gt = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_e9593f8d-c15d-42a4-b87b-fb48a9732d85", 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_e9593f8d-c15d-42a4-b87b-fb48a9732d85", 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", MENU_BACKEND_URL: "https://menu-v4-dev.feedmeapi.com", 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.4.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-ubuntu24", 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: "1876", ACTIONS_ORCHESTRATION_ID: "8c079e10-1953-4080-bafc-9f32c0c0f8f2.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: "20260413.86.1", 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:14758", 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.9/x64", GITHUB_RUN_ID: "24878400241", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "fb4c49b3c384ff88f57c14cca968d3e8c257a305", 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_2d8c5401-8b5e-4eba-8b2b-cf7178751127", INVOCATION_ID: "4b1cacd626214e149f3f806d454eceef", 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: "540", GITHUB_TRIGGERING_ACTOR: "CXinyii", 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 1000062959", 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.36-dev.2", 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: "fb4c49b3c384ff88f57c14cca968d3e8c257a305", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "CXinyii", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_e9593f8d-c15d-42a4-b87b-fb48a9732d85", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "139468922", 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_e9593f8d-c15d-42a4-b87b-fb48a9732d85", 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_e9593f8d-c15d-42a4-b87b-fb48a9732d85", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
77
77
|
/*!
|
|
78
78
|
|
|
79
79
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
@@ -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-B_eAqoib.js";
|
|
3
3
|
import "@feedmepos/mf-common";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
function p() {
|
|
@@ -1,12 +1,12 @@
|
|
|
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 { K as ae, I as C, D as T, A as ue, aq as re, M as
|
|
5
|
-
import { defineStore as
|
|
6
|
-
import { shallowRef as N, ref as
|
|
4
|
+
import { K as ae, I as C, D as T, A as ue, aq as re, M as G, J as ie, ae as x, a as L, $ as V, ao as oe, ar as qe, as as ze, B as Ge, ag as Be, at as He, au as Je, ad as Ye } from "./index.vue_vue_type_script_setup_true_lang-B_eAqoib.js";
|
|
5
|
+
import { defineStore as Xe } from "pinia";
|
|
6
|
+
import { shallowRef as N, ref as B, computed as S, shallowReactive as Ze, effectScope as Qe, watch as et } from "vue";
|
|
7
7
|
import { useCoreStore as se } from "@feedmepos/mf-common";
|
|
8
8
|
import { useSnackbar as tt } from "@feedmepos/ui-library";
|
|
9
|
-
const nt = "/assets/linked-status-
|
|
9
|
+
const nt = "/assets/linked-status-C08g3mzJ.js", rt = "/assets/override-menu-CX6Zp8Yp.js";
|
|
10
10
|
function ot(e) {
|
|
11
11
|
var o;
|
|
12
12
|
const t = C(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
|
|
@@ -14,11 +14,11 @@ function ot(e) {
|
|
|
14
14
|
}
|
|
15
15
|
function st(e, t, n, o) {
|
|
16
16
|
const r = C(t), u = n ? r.modules.catalog.find((v) => v._id === n) : null, l = o ? r.modules.scheduler.find((v) => v._id === o) : null, a = u ? C(u) : void 0, c = n ? r.modules.catalog.filter((v) => v._id !== n) : [], i = l ? C(l) : void 0, f = e.reduce((v, y) => (v[y._id] = ot(y), v), {});
|
|
17
|
-
function
|
|
18
|
-
const y = e.map((
|
|
17
|
+
function p(v = []) {
|
|
18
|
+
const y = e.map((h) => h._id);
|
|
19
19
|
return [
|
|
20
|
-
...v.filter((
|
|
21
|
-
...Object.values(f).flatMap((
|
|
20
|
+
...v.filter((h) => !y.includes(h._id)),
|
|
21
|
+
...Object.values(f).flatMap((h) => h)
|
|
22
22
|
];
|
|
23
23
|
}
|
|
24
24
|
return a && o ? (a.override.scheduler = {
|
|
@@ -26,7 +26,7 @@ function st(e, t, n, o) {
|
|
|
26
26
|
[o]: {
|
|
27
27
|
...a.override.scheduler[o],
|
|
28
28
|
_id: o,
|
|
29
|
-
items:
|
|
29
|
+
items: p(i == null ? void 0 : i.items).map((v) => ({
|
|
30
30
|
...v,
|
|
31
31
|
orderFrom: ue.F_ORDER_FROM.enum.ALL
|
|
32
32
|
}))
|
|
@@ -34,7 +34,7 @@ function st(e, t, n, o) {
|
|
|
34
34
|
}, r.modules.catalog = [...c, a], r) : a ? (a.override.items = {
|
|
35
35
|
...a.override.items,
|
|
36
36
|
...f
|
|
37
|
-
}, r.modules.catalog = [...c, a], r) : i ? (i.items =
|
|
37
|
+
}, r.modules.catalog = [...c, a], r) : i ? (i.items = p(i.items), r.modules.scheduler = [
|
|
38
38
|
...r.modules.scheduler.filter((v) => v._id !== o),
|
|
39
39
|
i
|
|
40
40
|
], r) : {
|
|
@@ -56,16 +56,16 @@ function P(e, t, n) {
|
|
|
56
56
|
if (!o)
|
|
57
57
|
throw new Error(`_insertItemOverriders - Item not found - ${e._id}`);
|
|
58
58
|
const r = (u = o.groups) == null ? void 0 : u.map((l) => {
|
|
59
|
-
var i, f,
|
|
59
|
+
var i, f, p;
|
|
60
60
|
const a = (i = e == null ? void 0 : e.groups) == null ? void 0 : i.find((v) => v._id === l._id);
|
|
61
61
|
let c;
|
|
62
62
|
return a ? c = ((f = l.items) == null ? void 0 : f.map((v) => {
|
|
63
|
-
var
|
|
64
|
-
const y = (
|
|
63
|
+
var h;
|
|
64
|
+
const y = (h = a.items) == null ? void 0 : h.find(
|
|
65
65
|
(b) => b._id === v._id && b.combinationKey === v.combinationKey
|
|
66
66
|
);
|
|
67
67
|
return P(y || v, t, n + 1);
|
|
68
|
-
})) ?? [] : c = ((
|
|
68
|
+
})) ?? [] : c = ((p = l.items) == null ? void 0 : p.map((v) => P(v, t, n + 1))) ?? [], {
|
|
69
69
|
...l,
|
|
70
70
|
items: c
|
|
71
71
|
};
|
|
@@ -81,8 +81,8 @@ function P(e, t, n) {
|
|
|
81
81
|
function at(e, t) {
|
|
82
82
|
const n = e.groups.map((u) => {
|
|
83
83
|
const l = t.modules.group.find((c) => c._id === u._id), a = ((l == null ? void 0 : l.items) || []).map((c) => {
|
|
84
|
-
var
|
|
85
|
-
const i = (
|
|
84
|
+
var p;
|
|
85
|
+
const i = (p = u.items) == null ? void 0 : p.find(
|
|
86
86
|
(v) => v._id === c._id && v.combinationKey === c.combinationKey
|
|
87
87
|
);
|
|
88
88
|
if (i)
|
|
@@ -115,7 +115,7 @@ function H(e, t) {
|
|
|
115
115
|
return r.items = (a = r.items) == null ? void 0 : a.map((c) => {
|
|
116
116
|
var f;
|
|
117
117
|
const i = (f = u == null ? void 0 : u.items) == null ? void 0 : f.find(
|
|
118
|
-
(
|
|
118
|
+
(p) => p._id === c._id && p.combinationKey === c.combinationKey
|
|
119
119
|
);
|
|
120
120
|
return H(c, i);
|
|
121
121
|
}), r;
|
|
@@ -153,17 +153,17 @@ function ut(e, t) {
|
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
async function Dt(e, t, n, o, r, u = !0) {
|
|
156
|
-
const l = C(n), a = u ? st(t, l, o, r) : l, c = t.reduce((
|
|
156
|
+
const l = C(n), a = u ? st(t, l, o, r) : l, c = t.reduce((p, v) => (p[v._id] = a.modules.item.find((y) => y._id === v._id), p), {}), i = t.reduce((p, v) => {
|
|
157
157
|
const y = v._id;
|
|
158
|
-
return
|
|
158
|
+
return p[y] = at(c[y], e), p;
|
|
159
159
|
}, {}), f = T.getFallbackPrices({
|
|
160
160
|
rawMenu: a,
|
|
161
161
|
items: i,
|
|
162
162
|
catalogId: o || void 0,
|
|
163
163
|
schedulerId: r
|
|
164
164
|
});
|
|
165
|
-
return t.map((
|
|
166
|
-
const v =
|
|
165
|
+
return t.map((p) => {
|
|
166
|
+
const v = p._id, y = c[v];
|
|
167
167
|
return {
|
|
168
168
|
...ut(f, y),
|
|
169
169
|
category: o || r ? y == null ? void 0 : y.category : null
|
|
@@ -234,30 +234,30 @@ function $t(e, t, n) {
|
|
|
234
234
|
}
|
|
235
235
|
return r(t, n);
|
|
236
236
|
}
|
|
237
|
-
const
|
|
237
|
+
const z = /* @__PURE__ */ new Map();
|
|
238
238
|
async function it(e, t, n) {
|
|
239
239
|
const o = `${e._id}-${e.updatedAt}-${t || "null"}-${n || "null"}`;
|
|
240
|
-
if (
|
|
241
|
-
return
|
|
240
|
+
if (z.has(o))
|
|
241
|
+
return z.get(o);
|
|
242
242
|
const r = await ce(e, t, n);
|
|
243
|
-
return
|
|
243
|
+
return z.set(o, r), r;
|
|
244
244
|
}
|
|
245
245
|
async function Ft(e, t, n) {
|
|
246
246
|
var l, a;
|
|
247
247
|
const o = await it(e, t, null), r = [], u = (c, i) => {
|
|
248
248
|
const f = C(c);
|
|
249
|
-
for (const
|
|
250
|
-
i[
|
|
249
|
+
for (const p in i)
|
|
250
|
+
i[p] && (f[p] = i[p]);
|
|
251
251
|
return f;
|
|
252
252
|
};
|
|
253
253
|
for (const c of o.modules.group) {
|
|
254
|
-
const i = (l = c.items) == null ? void 0 : l.find((
|
|
254
|
+
const i = (l = c.items) == null ? void 0 : l.find((p) => p._id === n && !p.combinationKey), f = e.modules.item.find((p) => p._id === n);
|
|
255
255
|
if (i) {
|
|
256
|
-
const
|
|
256
|
+
const p = (a = c.items) == null ? void 0 : a.filter((y) => y._id === n && y.combinationKey), v = [i, ...p].map((y) => {
|
|
257
257
|
var w, I;
|
|
258
|
-
const
|
|
258
|
+
const h = y.combinationKey ? (I = (w = f == null ? void 0 : f.variant) == null ? void 0 : w.variantCombinations) == null ? void 0 : I.find(
|
|
259
259
|
(k) => k.combinationKey === y.combinationKey
|
|
260
|
-
) : f, b =
|
|
260
|
+
) : f, b = h && f ? u(f, h) : y;
|
|
261
261
|
return u(b, y);
|
|
262
262
|
});
|
|
263
263
|
r.push({
|
|
@@ -327,9 +327,9 @@ function lt(e, t, n) {
|
|
|
327
327
|
}
|
|
328
328
|
const l = [], a = /* @__PURE__ */ new Set();
|
|
329
329
|
for (let c = 0; c < o; c++) {
|
|
330
|
-
const i = e[c], f = n ? n(i) : JSON.stringify(i),
|
|
331
|
-
if (
|
|
332
|
-
for (const v of
|
|
330
|
+
const i = e[c], f = n ? n(i) : JSON.stringify(i), p = u.get(f);
|
|
331
|
+
if (p) {
|
|
332
|
+
for (const v of p)
|
|
333
333
|
if (!a.has(v) && $(i, t[v])) {
|
|
334
334
|
l.push({ leftIndex: c, rightIndex: v }), a.add(v);
|
|
335
335
|
break;
|
|
@@ -344,34 +344,34 @@ function dt(e, t, n) {
|
|
|
344
344
|
const o = { _t: "a" }, r = ((v = n == null ? void 0 : n.arrays) == null ? void 0 : v.detectMove) !== !1, u = ((y = n == null ? void 0 : n.arrays) == null ? void 0 : y.includeValueOnMove) === !0, l = n == null ? void 0 : n.objectHash;
|
|
345
345
|
let a = r ? lt(e, t, l) : [];
|
|
346
346
|
if (!l && e.length === t.length && e.length > 0 && a.length < e.length) {
|
|
347
|
-
const
|
|
348
|
-
if (
|
|
347
|
+
const h = E(e[0]) || Array.isArray(e[0]), b = a.length > 0;
|
|
348
|
+
if (h || b) {
|
|
349
349
|
a = [];
|
|
350
350
|
for (let w = 0; w < e.length; w++)
|
|
351
351
|
a.push({ leftIndex: w, rightIndex: w });
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
new Set(a.map((
|
|
355
|
-
const c = new Set(a.map((
|
|
356
|
-
for (const
|
|
357
|
-
i.set(
|
|
358
|
-
for (let
|
|
359
|
-
const b = i.get(
|
|
354
|
+
new Set(a.map((h) => h.leftIndex));
|
|
355
|
+
const c = new Set(a.map((h) => h.rightIndex)), i = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
|
|
356
|
+
for (const h of a)
|
|
357
|
+
i.set(h.leftIndex, h.rightIndex), f.set(h.rightIndex, h.leftIndex);
|
|
358
|
+
for (let h = 0; h < e.length; h++) {
|
|
359
|
+
const b = i.get(h);
|
|
360
360
|
if (b !== void 0) {
|
|
361
|
-
const w = J(e[
|
|
362
|
-
if (w !== void 0 && (o[b] = w), r && b !==
|
|
363
|
-
const I = `_${
|
|
361
|
+
const w = J(e[h], t[b], n);
|
|
362
|
+
if (w !== void 0 && (o[b] = w), r && b !== h) {
|
|
363
|
+
const I = `_${h}`, k = u ? [e[h], b, K] : ["", b, K];
|
|
364
364
|
o[I] = k;
|
|
365
365
|
}
|
|
366
366
|
} else {
|
|
367
|
-
const w = `_${
|
|
368
|
-
o[w] = [e[
|
|
367
|
+
const w = `_${h}`;
|
|
368
|
+
o[w] = [e[h], M, M];
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
for (let
|
|
372
|
-
c.has(
|
|
373
|
-
const
|
|
374
|
-
if (!(
|
|
371
|
+
for (let h = 0; h < t.length; h++)
|
|
372
|
+
c.has(h) || (o[h] = [t[h]]);
|
|
373
|
+
const p = Object.keys(o);
|
|
374
|
+
if (!(p.length === 1 && p[0] === "_t"))
|
|
375
375
|
return o;
|
|
376
376
|
}
|
|
377
377
|
function ft(e, t, n) {
|
|
@@ -432,9 +432,9 @@ function vt(e, t, n) {
|
|
|
432
432
|
}
|
|
433
433
|
else {
|
|
434
434
|
let f = !1;
|
|
435
|
-
for (const [
|
|
435
|
+
for (const [p, v] of r.entries())
|
|
436
436
|
if (v === a) {
|
|
437
|
-
u.push(e[
|
|
437
|
+
u.push(e[p]), f = !0;
|
|
438
438
|
break;
|
|
439
439
|
}
|
|
440
440
|
if (!f) {
|
|
@@ -472,7 +472,7 @@ function Y(e, t, n) {
|
|
|
472
472
|
function le(e, t, n) {
|
|
473
473
|
return Y(e, t);
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function pt(e) {
|
|
476
476
|
const t = { _t: "a" };
|
|
477
477
|
for (const n in e)
|
|
478
478
|
if (n !== "_t")
|
|
@@ -491,26 +491,26 @@ function ht(e) {
|
|
|
491
491
|
if (Array.isArray(r) && r.length === 1)
|
|
492
492
|
t[`_${o}`] = [r[0], M, M];
|
|
493
493
|
else {
|
|
494
|
-
const u =
|
|
494
|
+
const u = X(r);
|
|
495
495
|
u !== void 0 && (t[n] = u);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
return t;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function ht(e) {
|
|
501
501
|
const t = {};
|
|
502
502
|
for (const n in e) {
|
|
503
503
|
const o = e[n];
|
|
504
504
|
if (Array.isArray(o))
|
|
505
505
|
o.length === 1 ? t[n] = [o[0], M, M] : o.length === 3 && o[2] === M ? t[n] = [o[0]] : o.length === 2 && (t[n] = [o[1], o[0]]);
|
|
506
506
|
else {
|
|
507
|
-
const r =
|
|
507
|
+
const r = X(o);
|
|
508
508
|
r !== void 0 && (t[n] = r);
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
return t;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function X(e) {
|
|
514
514
|
if (e !== void 0) {
|
|
515
515
|
if (Array.isArray(e)) {
|
|
516
516
|
if (e.length === 1)
|
|
@@ -522,11 +522,11 @@ function Z(e) {
|
|
|
522
522
|
if (e.length === 3 && e[2] === K)
|
|
523
523
|
return e;
|
|
524
524
|
}
|
|
525
|
-
return E(e) && e._t === "a" ?
|
|
525
|
+
return E(e) && e._t === "a" ? pt(e) : E(e) ? ht(e) : e;
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
function de(e) {
|
|
529
|
-
return
|
|
529
|
+
return X(e);
|
|
530
530
|
}
|
|
531
531
|
function gt(e, t, n) {
|
|
532
532
|
const o = de(t);
|
|
@@ -566,14 +566,14 @@ function bt({
|
|
|
566
566
|
includeValueOnMove: !1
|
|
567
567
|
},
|
|
568
568
|
cloneDiffValues: !1
|
|
569
|
-
}), n = N(null), o = N([]), r =
|
|
569
|
+
}), n = N(null), o = N([]), r = B(-1), u = N(null), l = S(() => r.value > 0), a = S(() => r.value < o.value.length - 1);
|
|
570
570
|
function c(y) {
|
|
571
571
|
if (n.value === null) {
|
|
572
572
|
n.value = C(y), u.value = C(y), o.value = [{ delta: null }], r.value = 0;
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
|
-
const
|
|
576
|
-
if (r.value < o.value.length - 1 && (o.value = o.value.slice(0, r.value + 1)), o.value.push({ delta:
|
|
575
|
+
const h = t.diff(u.value, y);
|
|
576
|
+
if (r.value < o.value.length - 1 && (o.value = o.value.slice(0, r.value + 1)), o.value.push({ delta: h }), r.value++, u.value = C(y), o.value.length > e) {
|
|
577
577
|
const b = o.value[1].delta;
|
|
578
578
|
b && n.value && (n.value = t.patch(C(n.value), b)), o.value.shift(), r.value--;
|
|
579
579
|
}
|
|
@@ -581,12 +581,12 @@ function bt({
|
|
|
581
581
|
function i(y) {
|
|
582
582
|
if (!n.value || y < 0 || y >= o.value.length)
|
|
583
583
|
return;
|
|
584
|
-
let
|
|
584
|
+
let h = C(n.value);
|
|
585
585
|
for (let b = 1; b <= y; b++) {
|
|
586
586
|
const w = o.value[b];
|
|
587
|
-
w.delta && (
|
|
587
|
+
w.delta && (h = t.patch(h, w.delta));
|
|
588
588
|
}
|
|
589
|
-
return
|
|
589
|
+
return h;
|
|
590
590
|
}
|
|
591
591
|
function f() {
|
|
592
592
|
if (l.value) {
|
|
@@ -595,7 +595,7 @@ function bt({
|
|
|
595
595
|
return y && (u.value = C(y)), y;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function p() {
|
|
599
599
|
if (a.value) {
|
|
600
600
|
r.value++;
|
|
601
601
|
const y = i(r.value);
|
|
@@ -610,13 +610,13 @@ function bt({
|
|
|
610
610
|
canUndo: l,
|
|
611
611
|
canRedo: a,
|
|
612
612
|
undo: f,
|
|
613
|
-
redo:
|
|
613
|
+
redo: p,
|
|
614
614
|
clear: v
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
const wt = {
|
|
618
618
|
async updateMenuModule(e, t) {
|
|
619
|
-
const n =
|
|
619
|
+
const n = G.RequestRunner.operation(t, e.modules);
|
|
620
620
|
if (n.validateError.length > 0)
|
|
621
621
|
throw new Error(n.validateError.join(`
|
|
622
622
|
`));
|
|
@@ -664,10 +664,10 @@ function Mt() {
|
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
const Pt =
|
|
667
|
+
const Pt = Xe(
|
|
668
668
|
"mf-menu-store-v2",
|
|
669
669
|
() => {
|
|
670
|
-
const e =
|
|
670
|
+
const e = Ze(Mt()), t = se(), n = tt(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
|
|
671
671
|
selector: "position"
|
|
672
672
|
}) : []), r = S(() => {
|
|
673
673
|
var s;
|
|
@@ -686,14 +686,14 @@ const Pt = Ze(
|
|
|
686
686
|
items: e.menu.modules.item,
|
|
687
687
|
...e.currentRestaurantAttrParams ?? {}
|
|
688
688
|
})), s;
|
|
689
|
-
}), c = S(() => x(
|
|
689
|
+
}), c = S(() => x(p.value.modules.scheduler, { selector: "name" })), i = S(() => e.menu.modules.scheduler.find(
|
|
690
690
|
(s) => s._id === e.currentSchedulerId
|
|
691
691
|
));
|
|
692
692
|
function f(s, d = !0) {
|
|
693
693
|
e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
|
|
694
694
|
}
|
|
695
|
-
const
|
|
696
|
-
async function
|
|
695
|
+
const p = N(fe()), v = B(!1), y = B(1);
|
|
696
|
+
async function h() {
|
|
697
697
|
var m;
|
|
698
698
|
v.value = !0;
|
|
699
699
|
let s = e.menu.modules.catalog;
|
|
@@ -725,19 +725,19 @@ const Pt = Ze(
|
|
|
725
725
|
), A = new Set(((_ == null ? void 0 : _.items) || []).map((R) => R._id));
|
|
726
726
|
d.modules.item = d.modules.item.filter((R) => A.has(R._id));
|
|
727
727
|
}
|
|
728
|
-
return
|
|
728
|
+
return p.value = d, v.value = !1, y.value = y.value + 1, d;
|
|
729
729
|
}
|
|
730
|
-
const w = ie.debounce(
|
|
730
|
+
const w = ie.debounce(h, 200);
|
|
731
731
|
let I = null, k = null;
|
|
732
|
-
function
|
|
733
|
-
k && (k(), k = null), I && I.stop(), I =
|
|
732
|
+
function Z() {
|
|
733
|
+
k && (k(), k = null), I && I.stop(), I = Qe(!0), k = I.run(() => et(
|
|
734
734
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
735
735
|
() => {
|
|
736
736
|
v.value || w();
|
|
737
737
|
}
|
|
738
738
|
)) || null;
|
|
739
739
|
}
|
|
740
|
-
|
|
740
|
+
Z();
|
|
741
741
|
const me = S(() => [
|
|
742
742
|
{
|
|
743
743
|
label: "Main",
|
|
@@ -747,8 +747,8 @@ const Pt = Ze(
|
|
|
747
747
|
label: s.name,
|
|
748
748
|
value: s._id
|
|
749
749
|
}))
|
|
750
|
-
]),
|
|
751
|
-
const s =
|
|
750
|
+
]), Q = S(() => {
|
|
751
|
+
const s = p.value.modules.category;
|
|
752
752
|
return [
|
|
753
753
|
...U.value.item.addon ? [
|
|
754
754
|
{
|
|
@@ -760,11 +760,11 @@ const Pt = Ze(
|
|
|
760
760
|
...V(s, (d) => d.name)
|
|
761
761
|
];
|
|
762
762
|
}), ve = S(() => {
|
|
763
|
-
const s =
|
|
763
|
+
const s = p.value.modules.subCategory || [];
|
|
764
764
|
return V(s, (d) => d.name);
|
|
765
765
|
}), ee = S(() => {
|
|
766
766
|
var d;
|
|
767
|
-
let s =
|
|
767
|
+
let s = p.value.modules.item;
|
|
768
768
|
if (a.value) {
|
|
769
769
|
const m = (d = a.value) == null ? void 0 : d.override.items;
|
|
770
770
|
s = s.filter((g) => {
|
|
@@ -785,7 +785,7 @@ const Pt = Ze(
|
|
|
785
785
|
m,
|
|
786
786
|
(g) => g.code || g.name
|
|
787
787
|
).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
|
|
788
|
-
}),
|
|
788
|
+
}), pe = S(() => oe(j.value, Q.value, ee.value)), he = S(() => {
|
|
789
789
|
const s = U.value.item.addon ? [
|
|
790
790
|
{
|
|
791
791
|
_id: e.currentCatalogId ? "" : null,
|
|
@@ -800,19 +800,19 @@ const Pt = Ze(
|
|
|
800
800
|
e.menu.modules.item
|
|
801
801
|
);
|
|
802
802
|
}), j = S(() => {
|
|
803
|
-
const s =
|
|
803
|
+
const s = p.value.modules.variant;
|
|
804
804
|
return x(s, { selector: "name" });
|
|
805
805
|
});
|
|
806
806
|
function ge(s = []) {
|
|
807
807
|
const d = s.map((g) => j.value.find((_) => _._id === g)).filter((g) => !!g);
|
|
808
808
|
return T.fullVariantCombination(d).reduce((g, _) => (g[_.combinationKey] = _.selectionName.join(" / "), g), {});
|
|
809
809
|
}
|
|
810
|
-
const _e = S(() => V(
|
|
810
|
+
const _e = S(() => V(p.value.modules.group, (s) => s.name)), Se = S(() => x(p.value.modules.takeaway, { selector: "name" })), be = S(() => x(e.menu.modules.printDepartment || [], {
|
|
811
811
|
selector: "name"
|
|
812
812
|
})), we = S(() => x(e.menu.modules.unit, { selector: "name" })), Me = S(() => x(qe(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
813
813
|
selector: "name"
|
|
814
814
|
})), Ae = S(() => e.menu.modules.cookingGuide), Ce = S(() => {
|
|
815
|
-
const s =
|
|
815
|
+
const s = ze(e.menu.modules.sku);
|
|
816
816
|
return x(s, { selector: "code" });
|
|
817
817
|
}), Ie = S(() => {
|
|
818
818
|
const s = /* @__PURE__ */ new Map();
|
|
@@ -906,10 +906,10 @@ const Pt = Ze(
|
|
|
906
906
|
}
|
|
907
907
|
const Re = S(() => {
|
|
908
908
|
var g;
|
|
909
|
-
const s = ["SV5", "SV10"], d =
|
|
909
|
+
const s = ["SV5", "SV10"], d = Ge.Country.getCountryFlattenTaxes(
|
|
910
910
|
se().currentCountry.value
|
|
911
911
|
), m = d.filter((_) => u.value || !s.includes(_.taxCode)).map((_) => ({
|
|
912
|
-
label: `${_.name} (${
|
|
912
|
+
label: `${_.name} (${Be(_.rate)}%)`,
|
|
913
913
|
value: W(_),
|
|
914
914
|
meta: {
|
|
915
915
|
rate: _.rate
|
|
@@ -947,7 +947,7 @@ const Pt = Ze(
|
|
|
947
947
|
}));
|
|
948
948
|
try {
|
|
949
949
|
if (d || g.some(
|
|
950
|
-
(A) => [
|
|
950
|
+
(A) => [G.F_OPERATION_TYPE.delete, G.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
951
951
|
)) {
|
|
952
952
|
const A = await He(g, e.menu.modules);
|
|
953
953
|
if (A !== !0) throw new Error(A);
|
|
@@ -984,7 +984,7 @@ const Pt = Ze(
|
|
|
984
984
|
workerIsComputing: v,
|
|
985
985
|
mergedMenuChangeId: y,
|
|
986
986
|
// async computed state
|
|
987
|
-
mergedMenu:
|
|
987
|
+
mergedMenu: p,
|
|
988
988
|
// Computed
|
|
989
989
|
version: r,
|
|
990
990
|
isV4: u,
|
|
@@ -994,13 +994,13 @@ const Pt = Ze(
|
|
|
994
994
|
schedulers: c,
|
|
995
995
|
currentScheduler: i,
|
|
996
996
|
catalogOptions: me,
|
|
997
|
-
categories:
|
|
997
|
+
categories: Q,
|
|
998
998
|
subcategories: ve,
|
|
999
999
|
items: ee,
|
|
1000
1000
|
sortedItems: ye,
|
|
1001
1001
|
itemCodeMap: Ie,
|
|
1002
|
-
categorizedItems:
|
|
1003
|
-
categorizedRawMenuItems:
|
|
1002
|
+
categorizedItems: pe,
|
|
1003
|
+
categorizedRawMenuItems: he,
|
|
1004
1004
|
variants: j,
|
|
1005
1005
|
groups: _e,
|
|
1006
1006
|
takeaways: Se,
|
|
@@ -1021,7 +1021,7 @@ const Pt = Ze(
|
|
|
1021
1021
|
setRestaurantAttrParams: Te,
|
|
1022
1022
|
updateMenu: Ke,
|
|
1023
1023
|
updateMenuSetting: $e,
|
|
1024
|
-
computeMergedMenu:
|
|
1024
|
+
computeMergedMenu: h,
|
|
1025
1025
|
// helper
|
|
1026
1026
|
encodeTax: W,
|
|
1027
1027
|
decodeTax: ke,
|
|
@@ -1037,7 +1037,7 @@ const Pt = Ze(
|
|
|
1037
1037
|
w.cancel(), k && (k(), k = null), I && (I.stop(), I = null), Ue();
|
|
1038
1038
|
},
|
|
1039
1039
|
$reinitialize: () => {
|
|
1040
|
-
|
|
1040
|
+
Z();
|
|
1041
1041
|
}
|
|
1042
1042
|
};
|
|
1043
1043
|
}
|