@feedmepos/mf-menu 0.32.66-dev.1 → 0.32.66-dev.3
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-CI_iNcgK.js → App-bCL9DMmd.js} +6 -6
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CYxG4ihX.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CnoYMg6T.js} +7 -7
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-UllnR0h6.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-Ccw08-Uw.js} +3 -3
- package/dist/{Catalog-Bh2SAffq.js → Catalog-Ds6GYriM.js} +6 -6
- package/dist/{Category-CVKnqszH.js → Category-CnFL0t4m.js} +4 -4
- package/dist/{Category-DfTtG9CR.js → Category-DY_XSrsn.js} +4 -4
- package/dist/{CookingGuide-ya45J1Mt.js → CookingGuide-BTk8BaAd.js} +5 -5
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-i6fzPFdp.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BgI4r-xU.js} +1 -1
- package/dist/{Group-d5ODb1qt.js → Group-860k7lB8.js} +3 -3
- package/dist/{Group-DLo3Tq5F.js → Group-BSMIM376.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-mJM1hfDS.js → Group.vue_vue_type_script_setup_true_lang-DWA-dDCM.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Ctw_g4uv.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-dKJjPwe3.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-OzkvL_JP.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-H2rtSZTK.js} +9 -8
- package/dist/{Ingredient-BT24CVH8.js → Ingredient-BYDjOmNr.js} +4 -4
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Cd2xFodR.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Bdhyk7wJ.js} +2 -2
- package/dist/{LinkProductSideSheet-CAjxumsy.js → LinkProductSideSheet-CQS8yW-C.js} +4 -4
- package/dist/{MenuSetting-CrKps0Pr.js → MenuSetting-BmK8AlkW.js} +7 -7
- package/dist/{OrderPacing-DV8YhW4M.js → OrderPacing-TJ6ZYLYV.js} +5 -5
- package/dist/{PrintRoute-N_c01sX7.js → PrintRoute-CR9yyKNK.js} +5 -5
- package/dist/{Product-i45cWBne.js → Product-UVz9VsGm.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-SBnKF6Dc.js → Product.vue_vue_type_script_setup_true_lang-DaUlfmGn.js} +622 -610
- package/dist/{ProductInternalTools-C10beN3h.js → ProductInternalTools-D-SOeCcO.js} +6 -6
- package/dist/{Products-Copz_NxK.js → Products-DhNIR6E7.js} +72 -72
- package/dist/{Publish-Dx9g-Iml.js → Publish-CsjlWTjc.js} +446 -444
- package/dist/{Recipe-B0dhSxLY.js → Recipe-uwZYJm_N.js} +5 -5
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BfTWVSgk.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CF-r4vAJ.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CGjp5ObO.js → RuleView.vue_vue_type_script_setup_true_lang-BfdS-xS1.js} +3 -3
- package/dist/{Scheduler-Bdy9DG0p.js → Scheduler-B1_i4bRR.js} +3 -3
- package/dist/{ServingSequence-onP8TGmt.js → ServingSequence-B7TO7rNV.js} +3 -3
- package/dist/{Setting-h1N-6VJG.js → Setting-ByrEh4BA.js} +5 -5
- package/dist/{Subcategory-uRvIJSP2.js → Subcategory-BWqzLw-d.js} +6 -6
- package/dist/{Takeaway-BVfssE0J.js → Takeaway-BDtDA3Oz.js} +1 -1
- package/dist/{Takeaway-1LAZ7cjz.js → Takeaway-BJpHwTck.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DQy0jvn3.js → Takeaway.vue_vue_type_script_setup_true_lang-DaqAIPrd.js} +10 -10
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CFfvrpnY.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-Ctua4piB.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DY_CAuFa.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CaIv_N0Y.js} +2 -2
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BL_x8Upd.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BXJsNMO4.js} +15 -15
- package/dist/{Unit-Bdjbice8.js → Unit-CztcKfU8.js} +2 -2
- package/dist/{Variant-D6lnVRhc.js → Variant-DoKsw2Kp.js} +3 -3
- package/dist/{_id_-_IoP91Df.js → _id_-Bm8i0F1E.js} +10 -10
- package/dist/{app-CHa-DBPQ.js → app-BGCDoU-0.js} +328 -328
- package/dist/{app-DuSxtjmC.js → app-Du5OtlE9.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +63 -10
- package/dist/apps/mf-menu/src/api/menu.d.ts +3 -3
- package/dist/apps/mf-menu/src/app.d.ts +120 -10
- package/dist/apps/mf-menu/src/components/feature/Fields/RangeSlider.vue.d.ts +62 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +95 -12
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageEditorDialog.vue.d.ts +56 -0
- package/dist/apps/mf-menu/src/composable/imageSource.d.ts +7 -0
- package/dist/apps/mf-menu/src/composable/imageVersion.d.ts +11 -0
- package/dist/apps/mf-menu/src/helper/itemOverrider.d.ts +10 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +5 -4
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{override-menu-CIRYGinT.js → linked-status-CGYWO8Yo.js} +4 -4
- package/dist/assets/{menu-export-UgrjUnN2.js → menu-export-D32WVYBV.js} +3 -3
- package/dist/assets/{linked-status-DBJxrh2U.js → override-menu-B2muNR2b.js} +4 -4
- package/dist/assets/{validate-menu-D8-_8UwY.js → validate-menu-DRc93ut_.js} +2 -2
- package/dist/{catalog-C_rhdKvu.js → catalog-B1szIMSS.js} +1 -1
- package/dist/{catalogSetting-SujM_d4-.js → catalogSetting-D317tpwX.js} +1 -1
- package/dist/{currency-CBsQulKD.js → currency-DDMkadDP.js} +1 -1
- package/dist/{dayjs.min-CBi2aUyP.js → dayjs.min-BAfSpgzt.js} +2 -2
- package/dist/{discardConfirm-BhV1iT_G.js → discardConfirm-ulS7oH8I.js} +1 -1
- package/dist/{index-aXVdUVi9.js → index-BNCGppNp.js} +6 -6
- package/dist/{index-D10URGOP.js → index-ClAWU743.js} +5 -5
- package/dist/{index-CtMD-H5N.js → index-DVh6Gi2K.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-cI7uKVre.js → index.vue_vue_type_script_setup_true_lang-Cf2AKbC7.js} +25712 -25587
- package/dist/{item-B7ovTnkT.js → item-D3jvuhGD.js} +5058 -4584
- package/dist/{jszip.min-nm6XtoQ3.js → jszip.min-t1qkoubE.js} +3 -3
- package/dist/{linkProducts-lOTzQqNK.js → linkProducts-IK0-iQJR.js} +4 -4
- package/dist/{memberPricing-BYT32y4D.js → memberPricing-DagiXBzk.js} +1 -1
- package/dist/{menu-6qHiTu0j.js → menu-B-BBAQKK.js} +1 -1
- package/dist/{menuV2-ILhcIRUD.js → menuV2-0X1EYaDt.js} +89 -89
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-Bq09k_C7.js → order_pacing-Cz0wFd_o.js} +5 -5
- package/dist/{priceTier-BzuYYCqN.js → priceTier-DBzOsSgm.js} +1 -1
- package/dist/{rules-BrliKHcG.js → rules-C6WjUylO.js} +3 -3
- package/dist/{scheduler-6lSaa1nT.js → scheduler-aKSniDdK.js} +5 -5
- package/dist/{toExcel-C8QPvQuM.js → toExcel-SxxuXoXI.js} +2 -2
- package/dist/{unit-s4XWrNN2.js → unit-CltVM3dM.js} +3 -3
- package/package.json +2 -2
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +0 -18
|
@@ -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-BGCDoU-0.js";
|
|
2
|
+
import { y as wt } from "./index.vue_vue_type_script_setup_true_lang-Cf2AKbC7.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_c2f1740a-d307-4f6a-9c65-c039f11da4c5", 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_c2f1740a-d307-4f6a-9c65-c039f11da4c5", 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: "1885", ACTIONS_ORCHESTRATION_ID: "fec249a1-b8de-48e5-96c4-2bc581a4d45b.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_c2f1740a-d307-4f6a-9c65-c039f11da4c5", 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:13445", 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: "32861336210", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "d1e3d6bcb29f0c3aa569d9b709ad5a7356d6cfb7", 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_de5a571f-bdc0-4485-a499-e3dcbefe10c4", INVOCATION_ID: "7b9e39b7cd6646928fc0cb92ca138e9e", 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: "589", 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 1000121828", 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.3", 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: "d1e3d6bcb29f0c3aa569d9b709ad5a7356d6cfb7", 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_c2f1740a-d307-4f6a-9c65-c039f11da4c5", 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_c2f1740a-d307-4f6a-9c65-c039f11da4c5", 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_c2f1740a-d307-4f6a-9c65-c039f11da4c5", 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_c2f1740a-d307-4f6a-9c65-c039f11da4c5", 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-Cf2AKbC7.js";
|
|
3
|
+
import { u as R } from "./menuV2-0X1EYaDt.js";
|
|
4
|
+
import { C as w, h as E } from "./catalog-B1szIMSS.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-CQS8yW-C.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-Cf2AKbC7.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-Cf2AKbC7.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-ulS7oH8I.js";
|
|
5
5
|
import { defineStore as qe } from "pinia";
|
|
6
6
|
import { shallowRef as N, ref as B, computed as S, shallowReactive as ze, effectScope as Be, watch as He } from "vue";
|
|
7
|
-
import { d as C, f as ue, m as T, k as ie,
|
|
7
|
+
import { d as C, f as ue, m as T, k as ie, aq as re, g as H, O as x, c as L, s as V, X as oe, ar as Ge, as as Ye, a as Je, Q as Qe, at as Xe, au as Ze, M as et } from "./index.vue_vue_type_script_setup_true_lang-Cf2AKbC7.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-CGYWO8Yo.js", ot = "/assets/override-menu-B2muNR2b.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((p) => p._id);
|
|
24
24
|
return [
|
|
25
|
-
...f.filter((
|
|
26
|
-
...Object.values(g).flatMap((
|
|
25
|
+
...f.filter((p) => !v.includes(p._id)),
|
|
26
|
+
...Object.values(g).flatMap((p) => p)
|
|
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 p;
|
|
69
|
+
const v = (p = a.items) == null ? void 0 : p.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
|
|
234
|
-
(
|
|
235
|
-
) : g, b =
|
|
233
|
+
const p = v.combinationKey ? (I = (M = g == null ? void 0 : g.variant) == null ? void 0 : M.variantCombinations) == null ? void 0 : I.find(
|
|
234
|
+
(E) => E.combinationKey === v.combinationKey
|
|
235
|
+
) : g, b = p && g ? u(g, p) : v;
|
|
236
236
|
return u(b, v);
|
|
237
237
|
});
|
|
238
238
|
r.push({
|
|
@@ -269,7 +269,7 @@ function O(e) {
|
|
|
269
269
|
function $(e) {
|
|
270
270
|
return e instanceof RegExp ? e.toString() : e;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function k(e) {
|
|
273
273
|
return typeof e == "object" && e !== null && !Array.isArray(e) && !(e instanceof Date) && !(e instanceof RegExp);
|
|
274
274
|
}
|
|
275
275
|
function P(e, t) {
|
|
@@ -285,7 +285,7 @@ function P(e, t) {
|
|
|
285
285
|
if (!P(e[n], t[n])) return !1;
|
|
286
286
|
return !0;
|
|
287
287
|
}
|
|
288
|
-
if (
|
|
288
|
+
if (k(e) && k(t)) {
|
|
289
289
|
const n = Object.keys(e), s = Object.keys(t);
|
|
290
290
|
if (n.length !== s.length) return !1;
|
|
291
291
|
for (const r of n)
|
|
@@ -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 p = k(e[0]) || Array.isArray(e[0]), b = a.length > 0;
|
|
323
|
+
if (p || 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((p) => p.leftIndex));
|
|
330
|
+
const d = new Set(a.map((p) => p.rightIndex)), l = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
331
|
+
for (const p of a)
|
|
332
|
+
l.set(p.leftIndex, p.rightIndex), g.set(p.rightIndex, p.leftIndex);
|
|
333
|
+
for (let p = 0; p < e.length; p++) {
|
|
334
|
+
const b = l.get(p);
|
|
335
335
|
if (b !== void 0) {
|
|
336
|
-
const M =
|
|
337
|
-
if (M !== void 0 && (s[b] = M), r && b !==
|
|
338
|
-
const I = `_${
|
|
339
|
-
s[I] =
|
|
336
|
+
const M = Y(e[p], t[b], n);
|
|
337
|
+
if (M !== void 0 && (s[b] = M), r && b !== p) {
|
|
338
|
+
const I = `_${p}`, E = u ? [e[p], b, K] : ["", b, K];
|
|
339
|
+
s[I] = E;
|
|
340
340
|
}
|
|
341
341
|
} else {
|
|
342
|
-
const M = `_${
|
|
343
|
-
s[M] = [e[
|
|
342
|
+
const M = `_${p}`;
|
|
343
|
+
s[M] = [e[p], w, w];
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
for (let
|
|
347
|
-
d.has(
|
|
346
|
+
for (let p = 0; p < t.length; p++)
|
|
347
|
+
d.has(p) || (s[p] = [t[p]]);
|
|
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 = Y(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 Y(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;
|
|
@@ -378,13 +378,13 @@ function J(e, t, n) {
|
|
|
378
378
|
}
|
|
379
379
|
if (Array.isArray(e) && Array.isArray(t))
|
|
380
380
|
return dt(e, t, n);
|
|
381
|
-
if (
|
|
381
|
+
if (k(e) && k(t))
|
|
382
382
|
return mt(e, t, n);
|
|
383
383
|
const u = n != null && n.cloneDiffValues ? O(e) : e, c = n != null && n.cloneDiffValues ? O(t) : t;
|
|
384
384
|
return [$(u), $(c)];
|
|
385
385
|
}
|
|
386
386
|
function ft(e, t, n) {
|
|
387
|
-
return
|
|
387
|
+
return Y(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(J(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] = J(s[r], u);
|
|
432
432
|
}
|
|
433
433
|
return s;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function J(e, t, n) {
|
|
436
436
|
if (t === void 0) return e;
|
|
437
437
|
if (Array.isArray(t)) {
|
|
438
438
|
if (t.length === 1)
|
|
@@ -442,10 +442,10 @@ function Y(e, t, n) {
|
|
|
442
442
|
if (t.length === 3 && t[2] === w)
|
|
443
443
|
return;
|
|
444
444
|
}
|
|
445
|
-
return
|
|
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 J(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 pt(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
|
|
500
|
+
return k(e) && e._t === "a" ? gt(e) : k(e) ? pt(e) : e;
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
function de(e) {
|
|
504
504
|
return Q(e);
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function ht(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 ht(t, n, this.options);
|
|
526
526
|
}
|
|
527
527
|
clone(t) {
|
|
528
528
|
return O(t);
|
|
@@ -547,8 +547,8 @@ function bt({
|
|
|
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 p = 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: p }), 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 p = 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 && (p = t.patch(p, M.delta));
|
|
563
563
|
}
|
|
564
|
-
return
|
|
564
|
+
return p;
|
|
565
565
|
}
|
|
566
566
|
function g() {
|
|
567
567
|
if (c.value) {
|
|
@@ -668,18 +668,18 @@ const $t = qe(
|
|
|
668
668
|
e.menu = { ...o, _rev: e.menu._rev }, i && D.push(e.menu);
|
|
669
669
|
}
|
|
670
670
|
const y = N(me()), f = B(!1), v = B(1);
|
|
671
|
-
async function
|
|
671
|
+
async function p() {
|
|
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 h = 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 === (h == null ? void 0 : h._id) ? h : _);
|
|
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 h = e.menu.modules.catalog.find(
|
|
697
697
|
(R) => R._id === e.currentCatalogId
|
|
698
|
-
), _ =
|
|
698
|
+
), _ = h ? h.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(
|
|
706
|
-
let I = null,
|
|
705
|
+
const M = ae.debounce(p, 200);
|
|
706
|
+
let I = null, E = null;
|
|
707
707
|
function X() {
|
|
708
|
-
|
|
708
|
+
E && (E(), E = null), I && I.stop(), I = Be(!0), E = I.run(() => He(
|
|
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((h) => {
|
|
746
746
|
var A;
|
|
747
|
-
const _ = (A = m == null ? void 0 : m[
|
|
747
|
+
const _ = (A = m == null ? void 0 : m[h._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, (h) => h.name).reduce(
|
|
756
|
+
(h, _, A) => (h[_._id] = A, h),
|
|
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
|
+
(h) => h.code || h.name
|
|
762
|
+
).reduce((h, _, A) => (h[_._id] = A + i[_.category || ""], h), {});
|
|
763
|
+
}), ge = S(() => oe(j.value, Z.value, ee.value)), pe = 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 he(o = []) {
|
|
782
|
+
const i = o.map((h) => j.value.find((_) => _._id === h)).filter((h) => !!h);
|
|
783
|
+
return T.fullVariantCombination(i).reduce((h, _) => (h[_.combinationKey] = _.selectionName.join(" / "), h), {});
|
|
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 = Ye(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, h;
|
|
796
|
+
i.code && o.set(i.code, (o.get(i.code) || 0) + 1), (h = (m = i.variant) == null ? void 0 : m.variantCombinations) == null || h.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, h = {
|
|
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
|
+
...h,
|
|
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
|
+
...h,
|
|
845
845
|
sort: o,
|
|
846
846
|
overrideSequence: i
|
|
847
847
|
},
|
|
848
848
|
group: {
|
|
849
|
-
...
|
|
849
|
+
...h,
|
|
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
|
+
...h,
|
|
864
864
|
edit: (i || o) && m,
|
|
865
865
|
name: o
|
|
866
866
|
},
|
|
@@ -874,16 +874,16 @@ const $t = qe(
|
|
|
874
874
|
function W(o) {
|
|
875
875
|
return `${o.systemCode}/${o.taxCode}`;
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function Ee(o) {
|
|
878
878
|
const [i, m] = o.split("/");
|
|
879
879
|
return { systemCode: i, taxCode: m };
|
|
880
880
|
}
|
|
881
|
-
function
|
|
882
|
-
return (o ?? i ?? []).map((
|
|
881
|
+
function ke(o, i, m) {
|
|
882
|
+
return (o ?? i ?? []).map((h) => W(h)).find((h) => m.some((_) => _.value === h));
|
|
883
883
|
}
|
|
884
884
|
const Re = S(() => {
|
|
885
|
-
var
|
|
886
|
-
const o = ["SV5", "SV10"], i =
|
|
885
|
+
var h;
|
|
886
|
+
const o = ["SV5", "SV10"], i = Je.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: (h = i[0]) == null ? void 0 : h.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 h = m.map((_) => ({
|
|
925
925
|
..._,
|
|
926
926
|
_id: e.menu._id,
|
|
927
927
|
_rev: e.menu._rev
|
|
928
928
|
}));
|
|
929
929
|
try {
|
|
930
|
-
if (i ||
|
|
930
|
+
if (i || h.some(
|
|
931
931
|
(A) => [H.F_OPERATION_TYPE.delete, H.F_OPERATION_TYPE.deleteMany].includes(A.operation)
|
|
932
932
|
)) {
|
|
933
|
-
const A = await Xe(
|
|
933
|
+
const A = await Xe(h, 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, h);
|
|
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: pe,
|
|
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: p,
|
|
1006
1006
|
// helper
|
|
1007
1007
|
encodeTax: W,
|
|
1008
|
-
decodeTax:
|
|
1009
|
-
getSelectedTax:
|
|
1010
|
-
mapVariant:
|
|
1008
|
+
decodeTax: Ee,
|
|
1009
|
+
getSelectedTax: ke,
|
|
1010
|
+
mapVariant: he,
|
|
1011
1011
|
// history
|
|
1012
1012
|
canUndoHistory: $e,
|
|
1013
1013
|
canRedoHistory: Fe,
|
|
@@ -1015,7 +1015,7 @@ const $t = qe(
|
|
|
1015
1015
|
redoHistory: je,
|
|
1016
1016
|
// cleanup
|
|
1017
1017
|
$dispose: () => {
|
|
1018
|
-
M.cancel(),
|
|
1018
|
+
M.cancel(), E && (E(), E = null), I && (I.stop(), I = null), Ue();
|
|
1019
1019
|
},
|
|
1020
1020
|
$reinitialize: () => {
|
|
1021
1021
|
X();
|