@feedmepos/mf-menu 0.32.42-dev.2 → 0.32.42-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-DyZQZRjQ.js → App-1oMjfIcc.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-Dmc7Gawc.js → ApplyProduct.vue_vue_type_script_setup_true_lang-AIw0Zgzf.js} +3 -3
- package/dist/{Catalog-DJK-TFnH.js → Catalog-CvQo24ck.js} +6 -6
- package/dist/{Category-BuI4C-2a.js → Category-C8bM8EwO.js} +4 -4
- package/dist/{Category-CPzzDgEf.js → Category-DmIaxrrK.js} +4 -4
- package/dist/{CookingGuide-DUhJyB8k.js → CookingGuide-CKEbyk4o.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CNFPeZwz.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ci4gwgnH.js} +1 -1
- package/dist/{Group-BOzJII7-.js → Group-CoYyRvcx.js} +1 -1
- package/dist/{Group-B3FUEieg.js → Group-EnJDk54z.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-DnkI2_Oa.js → Group.vue_vue_type_script_setup_true_lang-tH2U82rV.js} +7 -7
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-KRANAiR_.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BDxjuWcY.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dossu1rN.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-gVXNoAaN.js} +210 -210
- package/dist/{Ingredient-D2ikFdFk.js → Ingredient-7PPPp7Yf.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-C_8s8d6S.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DQPjpqtv.js} +2 -2
- package/dist/{LinkProductSideSheet-D4rj-g7A.js → LinkProductSideSheet-BS-MEIOG.js} +3 -3
- package/dist/{MenuSetting-DoLdFE5R.js → MenuSetting-BNVyT0oG.js} +5 -5
- package/dist/{PrintRoute-CCmnaHAm.js → PrintRoute-BMdk0zDv.js} +4 -4
- package/dist/{Product-BN6HXtCO.js → Product-DbIK7Eog.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-C0G-qKY-.js → Product.vue_vue_type_script_setup_true_lang-FnX_M8lJ.js} +25 -25
- package/dist/{ProductInternalTools-C0z1uq-O.js → ProductInternalTools-BC8jWpQd.js} +5 -5
- package/dist/Products-CPi2vuUO.js +307 -0
- package/dist/{Publish-CH1SAEmF.js → Publish-BcxHXZ1J.js} +3 -3
- package/dist/{Recipe-Bv7Xvvig.js → Recipe-egyxyFfA.js} +4 -4
- package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CP1NjxzF.js +144 -0
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-yK04zs8F.js → RuleView.vue_vue_type_script_setup_true_lang-CPMCeAK9.js} +2 -2
- package/dist/{Scheduler-34IfrdGd.js → Scheduler-Cb-IJtj8.js} +3 -3
- package/dist/{ServingSequence-BZV2R5sJ.js → ServingSequence-B46n34xA.js} +3 -3
- package/dist/{Setting-C2tFfdTn.js → Setting-B_dZG5ZC.js} +5 -5
- package/dist/{Subcategory-867aDkMq.js → Subcategory-DbjLfXvf.js} +5 -5
- package/dist/{Takeaway-DG6W-5rb.js → Takeaway-D4axornr.js} +4 -4
- package/dist/{Takeaway-DA67zMKW.js → Takeaway-DNu6jYFC.js} +1 -1
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-oTjvIuW5.js → Takeaway.vue_vue_type_script_setup_true_lang-Dvm8Lfp3.js} +5 -5
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-XOx8U70f.js → Thumbnail.vue_vue_type_script_setup_true_lang-BjPOOURv.js} +4 -4
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-CaWVsB5J.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-CXGsdChM.js} +1 -1
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C9eskCL4.js +5767 -0
- package/dist/{Unit-BrnUnuKe.js → Unit-jV5Bee8E.js} +2 -2
- package/dist/{Variant-DNqNIjGo.js → Variant-jGcgA-W8.js} +3 -3
- package/dist/{_id_-C3f3DoB2.js → _id_-CtvQ64EN.js} +9 -9
- package/dist/app-B6laFmet.js +2286 -0
- package/dist/{app-B-QXUPPG.js → app-eq7TaFfk.js} +1 -1
- package/dist/app.js +2 -2
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-dZQn0E-t.js → linked-status-Db18QnYH.js} +2 -2
- package/dist/assets/{menu-export-DjmfmMlF.js → menu-export-24uzPEwW.js} +2 -2
- package/dist/assets/{override-menu-VI40pTYL.js → override-menu-DreGPEa-.js} +2 -2
- package/dist/assets/{validate-menu-Bx6Q4XmI.js → validate-menu-BSFHH8O3.js} +2 -2
- package/dist/{catalog-lpCtSLwi.js → catalog-CXcQ-QmP.js} +1 -1
- package/dist/{catalogSetting-CjkTvvES.js → catalogSetting-DnUHD0I1.js} +1 -1
- package/dist/{currency-CvxKEiUE.js → currency-CwtLEvAZ.js} +1 -1
- package/dist/{dayjs.min-CIOb7sxL.js → dayjs.min-BgQgGKeN.js} +2 -2
- package/dist/{index-D2CiC7yd.js → index-Cx1Nqii7.js} +5 -5
- package/dist/{index-vQOhdIJK.js → index-D-Saeea8.js} +3 -3
- package/dist/{index.vue_vue_type_script_setup_true_lang-DJ_7qEQX.js → index.vue_vue_type_script_setup_true_lang-CA1qH7Vf.js} +5 -5
- package/dist/{item-BpsW9Dh2.js → item-CKRLnCIs.js} +14 -14
- package/dist/{jszip.min-Cu3w0lqa.js → jszip.min-DOHC0a7i.js} +3 -3
- package/dist/{menu-BDPvT1K5.js → menu-BduvULfe.js} +1 -1
- package/dist/{menuV2-D_qXpcQq.js → menuV2-Da1zBhkS.js} +94 -94
- package/dist/{priceTier-BfGUaC4W.js → priceTier-tObdSj6z.js} +1 -1
- package/dist/{rules-Dyypmwof.js → rules-DD816lrT.js} +3 -3
- package/dist/{scheduler-4eaMAOaq.js → scheduler-CDhxmmVX.js} +4 -4
- package/dist/{toExcel-BBKjTeeK.js → toExcel-tz6MIiQY.js} +2 -2
- package/dist/{unit-gujLoxgg.js → unit-NGl3h7Qh.js} +2 -2
- package/package.json +1 -1
- package/dist/Products-TpbvQRuF.js +0 -334
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-EvzBnFBA.js +0 -6130
- package/dist/app-C6mqBuy7.js +0 -1643
- package/dist/index-ByYyYErE.js +0 -246
|
@@ -2,13 +2,13 @@ import { defineComponent as ie, computed as b, ref as $, reactive as Ve, watch a
|
|
|
2
2
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as W, components as se, useDialog as $e, FmButtonVariant as ue, useBreakpoints as Ue } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { O as re, B as X, u as Z, G as Oe, A as K, H as Be, a2 as ce, D as le, J as q, y as H } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { O as re, B as X, u as Z, G as Oe, A as K, H as Be, a2 as ce, D as le, J as q, y as H } from "./index.vue_vue_type_script_setup_true_lang-CA1qH7Vf.js";
|
|
6
6
|
import { _ as Te } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
7
|
import { defineStore as Ie } from "pinia";
|
|
8
|
-
import { _ as ae, g as Le } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as ae, g as Le } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-DQPjpqtv.js";
|
|
9
9
|
import { u as De } from "./discardConfirm-BHni0LNu.js";
|
|
10
10
|
import { c as Pe } from "./check-C9mY6LiX.js";
|
|
11
|
-
import { u as Re } from "./unit-
|
|
11
|
+
import { u as Re } from "./unit-NGl3h7Qh.js";
|
|
12
12
|
import { c as Ae } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
|
|
14
14
|
key: 0,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as et, watch as st, computed as ve, resolveComponent as qe, createElementBlock as Ne, openBlock as Ae, createElementVNode as Le, createVNode as He, toDisplayString as tt, unref as Oe, isRef as ut, createBlock as dt, createCommentVNode as $t, Fragment as mt, renderList as ct, h as Ie } from "vue";
|
|
2
|
-
import { u as pt, D as ze, z as We, a3 as Qe, c as gt, a4 as Ft } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as pt, D as ze, z as We, a3 as Qe, c as gt, a4 as Ft } from "./index.vue_vue_type_script_setup_true_lang-CA1qH7Vf.js";
|
|
3
3
|
import { useI18n as nt } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as ft, useProxiedModel as It, useDialog as yt, components as we, FmButtonColorThemeVariant as Ze, FmButtonVariant as Ke } from "@feedmepos/ui-library";
|
|
5
5
|
import { u as St } from "./search-BAPEUu1R.js";
|
|
6
|
-
var Be = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
6
|
+
var Be = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_f10f467a-1681-460d-8f0b-0d465e57495c", 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_f10f467a-1681-460d-8f0b-0d465e57495c", 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: "1875", ACTIONS_ORCHESTRATION_ID: "1dad8870-dd14-4007-b340-4d465c5a0de7.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:15133", 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: "25556701180", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "1ff6ad531426774a00b8be3c89f124ecaefb4c05", 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_c0d7d2c5-6437-4bcc-90c2-ee2d8861e969", INVOCATION_ID: "621776799d8b4cdba0a5669b5dadf9d4", 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: "553", GITHUB_TRIGGERING_ACTOR: "victorchai", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-759WBZPF06", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", VITE_LICENSE_API_URL: "https://license-v2-dev.feedmeapi.com", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000067239", 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.42-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: "1ff6ad531426774a00b8be3c89f124ecaefb4c05", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", GITHUB_REF: "refs/heads/main", GITHUB_ACTOR: "victorchai", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_f10f467a-1681-460d-8f0b-0d465e57495c", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/portal/portal/apps/mf-menu", GITHUB_ACTOR_ID: "49786844", RUNNER_WORKSPACE: "/home/runner/work/portal", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@10.8.0/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "workflow_dispatch", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_f10f467a-1681-460d-8f0b-0d465e57495c", 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_f10f467a-1681-460d-8f0b-0d465e57495c", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } }, rt = typeof Be < "u" && (Be.versions || {}).hasOwnProperty("node"), D = rt ? Object.create(globalThis) : globalThis;
|
|
7
7
|
D.scheduleImmediate = typeof setImmediate < "u" ? function(ge) {
|
|
8
8
|
setImmediate(ge);
|
|
9
9
|
} : function(ge) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createElementBlock as R, openBlock as i, createElementVNode as F, defineComponent as ae, ref as A, computed as j, resolveComponent as x, createBlock as T, unref as u, withCtx as M, createVNode as y, toDisplayString as E, Fragment as z, renderList as X, createCommentVNode as Y, withModifiers as oe, watch as re, renderSlot as pe } from "vue";
|
|
2
|
-
import { u as le, y as ue, G as ee, a2 as ve, H as ie } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as le, y as ue, G as ee, a2 as ve, H as ie } from "./index.vue_vue_type_script_setup_true_lang-CA1qH7Vf.js";
|
|
3
3
|
import { useI18n as se, ItemSelector as fe } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as de, FmButtonVariant as Z } from "@feedmepos/ui-library";
|
|
5
5
|
import { u as _e } from "./discardConfirm-BHni0LNu.js";
|
|
6
|
-
import { u as ye } from "./menuV2-
|
|
6
|
+
import { u as ye } from "./menuV2-Da1zBhkS.js";
|
|
7
7
|
import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
import { m as O, g as Re, h as be, b as ge, u as he, f as te } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { m as O, g as Re, h as be, b as ge, u as he, f as te } from "./RuleView.vue_vue_type_script_setup_true_lang-CPMCeAK9.js";
|
|
9
9
|
import { c as Ce } from "./check-C9mY6LiX.js";
|
|
10
10
|
/* empty css */
|
|
11
11
|
const Ae = {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as X, ref as C, computed as $, watch as j, resolveComponent as g, createBlock as L, openBlock as d, unref as t, withCtx as y, createElementVNode as r, createVNode as u, createElementBlock as h, Fragment as q, renderList as Y, createCommentVNode as I, toDisplayString as A, withModifiers as oe } from "vue";
|
|
2
|
-
import { u as Z, H as K, a2 as ae, B as ne, z as re, G as le } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as Z, H as K, a2 as ae, B as ne, z as re, G as le } from "./index.vue_vue_type_script_setup_true_lang-CA1qH7Vf.js";
|
|
3
3
|
import { useI18n as ee, useCoreStore as ie } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as te, FmButtonVariant as N, useDialog as ce, useSnackbar as ue, useBreakpoints as me, FmButtonColorThemeVariant as W } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as de, m as E, _ as Q, b as pe, c as _e, f as P } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as se } from "./app-
|
|
5
|
+
import { u as de, m as E, _ as Q, b as pe, c as _e, f as P } from "./RuleView.vue_vue_type_script_setup_true_lang-CPMCeAK9.js";
|
|
6
|
+
import { _ as se } from "./app-B6laFmet.js";
|
|
7
7
|
import { u as ve } from "./discardConfirm-BHni0LNu.js";
|
|
8
8
|
import { _ as fe } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
9
|
-
import { C as O, a as B } from "./catalogSetting-
|
|
10
|
-
import { u as ge } from "./priceTier-
|
|
9
|
+
import { C as O, a as B } from "./catalogSetting-DnUHD0I1.js";
|
|
10
|
+
import { u as ge } from "./priceTier-tObdSj6z.js";
|
|
11
11
|
const be = {
|
|
12
12
|
class: "fm-typo-en-title-md-600 mr-auto"
|
|
13
13
|
}, ye = {
|
|
@@ -2,11 +2,11 @@ import { defineComponent as H, ref as T, computed as p, resolveComponent as g, c
|
|
|
2
2
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as W, useBreakpoints as te, useSnackbar as oe, useDialog as ne } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
-
import { _ as le } from "./app-
|
|
6
|
-
import { G as j, H as re, J as Y, y as V, u as se, O as ie, B as ue, a2 as de } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le } from "./app-B6laFmet.js";
|
|
6
|
+
import { G as j, H as re, J as Y, y as V, u as se, O as ie, B as ue, a2 as de } from "./index.vue_vue_type_script_setup_true_lang-CA1qH7Vf.js";
|
|
7
|
+
import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-CPMCeAK9.js";
|
|
8
8
|
import { u as ce } from "./discardConfirm-BHni0LNu.js";
|
|
9
|
-
import { L as me } from "./LinkProductSideSheet-
|
|
9
|
+
import { L as me } from "./LinkProductSideSheet-BS-MEIOG.js";
|
|
10
10
|
import { _ as pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
11
11
|
const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, ve = { class: "space-y-16" }, ye = { class: "flex items-center gap-8" }, ge = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, he = { class: "flex-1" }, be = { class: "grow overflow-y-auto" }, ke = { class: "text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-fm-color-neutral-gray-200" }, xe = { class: "px-16 py-8 flex-1" }, Fe = { class: "py-8" }, Ie = { class: "flex gap-8 items-center justify-start" }, Ce = /* @__PURE__ */ H({
|
|
12
12
|
__name: "PrintDepartmentDialog",
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { ref as F, computed as x, defineComponent as B, resolveComponent as j, createBlock as I, openBlock as m, withCtx as T, createElementVNode as g, createVNode as d, unref as a, createElementBlock as w, Fragment as pe, renderList as we, createCommentVNode as M, normalizeClass as ve, toDisplayString as N, withModifiers as fe, mergeModels as Je, useModel as Xe, renderSlot as _e, watch as de, createTextVNode as et, watchEffect as tt, nextTick as Ae, resolveDynamicComponent as lt, onMounted as at, h as D, isRef as Be, normalizeStyle as ft } from "vue";
|
|
2
|
-
import { u as Fe, Q as Ce, z as me, G as Re, H as ge, T as gt, ac as bt, ad as _t, ae as Pe, af as yt, P as ht, a2 as be, ag as Ee } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as Fe, Q as Ce, z as me, G as Re, H as ge, T as gt, ac as bt, ad as _t, ae as Pe, af as yt, P as ht, a2 as be, ag as Ee } from "./index.vue_vue_type_script_setup_true_lang-CA1qH7Vf.js";
|
|
3
3
|
import { useI18n as Ie, useCoreStore as ze, useCustomAttributes as xt } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as Se } from "./menu-
|
|
5
|
-
import { L as Ge } from "./LinkProductSideSheet-
|
|
6
|
-
import {
|
|
7
|
-
import { _ as Me, a as qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as Ue, u as
|
|
9
|
-
import { f as
|
|
10
|
-
import { u as ot, C as
|
|
11
|
-
import { b as We, H as
|
|
12
|
-
import { useBreakpoints as rt, components as te, useDialog as
|
|
13
|
-
import { F as
|
|
14
|
-
import { _ as Oe,
|
|
4
|
+
import { u as Se } from "./menu-BduvULfe.js";
|
|
5
|
+
import { L as Ge } from "./LinkProductSideSheet-BS-MEIOG.js";
|
|
6
|
+
import { _ as Le } from "./RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CP1NjxzF.js";
|
|
7
|
+
import { _ as Me, a as qe } from "./CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ci4gwgnH.js";
|
|
8
|
+
import { _ as Ue, u as Ct } from "./Thumbnail.vue_vue_type_script_setup_true_lang-BjPOOURv.js";
|
|
9
|
+
import { f as kt, o as wt, a as St, m as Vt } from "./menuV2-Da1zBhkS.js";
|
|
10
|
+
import { u as ot, C as Ft } from "./item-CKRLnCIs.js";
|
|
11
|
+
import { b as We, H as It } from "./app-5fxKLAzS.js";
|
|
12
|
+
import { useBreakpoints as rt, components as te, useDialog as $t, FmButtonColorThemeVariant as W, FmButtonVariant as ee } from "@feedmepos/ui-library";
|
|
13
|
+
import { F as Tt } from "./index-CisutoS9.js";
|
|
14
|
+
import { _ as Oe, d as Pt, e as At } from "./app-B6laFmet.js";
|
|
15
15
|
import { _ as ke } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
16
|
-
import { _ as Rt } from "./index-
|
|
17
|
-
import { r as Mt, _ as Ut } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-
|
|
16
|
+
import { _ as Rt } from "./index-Cx1Nqii7.js";
|
|
17
|
+
import { r as Mt, _ as Ut } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-gVXNoAaN.js";
|
|
18
18
|
import { c as zt } from "./check-C9mY6LiX.js";
|
|
19
|
-
import { f as Ot } from "./currency-
|
|
19
|
+
import { f as Ot } from "./currency-CwtLEvAZ.js";
|
|
20
20
|
import { w as Dt } from "./tooltip-B5BiPMx9.js";
|
|
21
21
|
import { g as jt } from "./translation-Cdap0IVg.js";
|
|
22
22
|
function Kt(k, e, i = k) {
|
|
@@ -434,7 +434,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
|
|
|
434
434
|
b.badge = () => d(te.FmCircularProgress, {
|
|
435
435
|
size: "md"
|
|
436
436
|
}, null);
|
|
437
|
-
const y = await
|
|
437
|
+
const y = await kt(Re(e.menu), s, e.itemId);
|
|
438
438
|
b.badge = y.length, b.disabled = y.length <= 0, b.itemInGroup = y;
|
|
439
439
|
}
|
|
440
440
|
}
|
|
@@ -522,7 +522,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
|
|
|
522
522
|
var l;
|
|
523
523
|
return t(u, ((l = e.menu.modules.scheduler.find((v) => v._id === u)) == null ? void 0 : l.name) || "Unknown");
|
|
524
524
|
})], n.value.forEach(async (u) => {
|
|
525
|
-
const v = (await
|
|
525
|
+
const v = (await wt(Re(e.menu), e.catalogId, u.schedulerId)).modules.item.find((s) => s._id === e.itemId), f = n.value.findIndex((s) => s.schedulerId === u.schedulerId);
|
|
526
526
|
if (v) {
|
|
527
527
|
const s = Re(n.value);
|
|
528
528
|
s[f].loading = !1, s[f].code = v.code || "--", s[f].productName = v.name || "--", s[f].price = me.Dinero.fromFdoDinero(v.price).toFormat(), s[f].orderFrom = v.orderFrom || "--", n.value = s;
|
|
@@ -552,7 +552,7 @@ const Nt = { class: "inline-flex items-center" }, Bt = {
|
|
|
552
552
|
setup(k) {
|
|
553
553
|
const e = k, i = F(null);
|
|
554
554
|
tt(async () => {
|
|
555
|
-
i.value = await
|
|
555
|
+
i.value = await St(e.menu, e.itemId), await Ae(), n.value = t.value[0].value;
|
|
556
556
|
});
|
|
557
557
|
const n = F(""), t = x(() => {
|
|
558
558
|
var f, s;
|
|
@@ -848,7 +848,7 @@ const Ye = /* @__PURE__ */ B({
|
|
|
848
848
|
}) {
|
|
849
849
|
const n = k, {
|
|
850
850
|
t
|
|
851
|
-
} = Ie(), u = ze(), l = Fe(), v =
|
|
851
|
+
} = Ie(), u = ze(), l = Fe(), v = $t(), f = ot(), s = u.currentCountry, b = x(() => s.value ? me.Country.getCountry(s.value) : null), y = x(() => l.rules.item), {
|
|
852
852
|
selectedCategories: S
|
|
853
853
|
} = Se(), z = x(() => {
|
|
854
854
|
const o = ge.flatten(S.value.map((r) => r.items));
|
|
@@ -873,11 +873,11 @@ const Ye = /* @__PURE__ */ B({
|
|
|
873
873
|
} = xt({
|
|
874
874
|
valueSource: z,
|
|
875
875
|
entity: "item"
|
|
876
|
-
}), J = F(""), ne =
|
|
876
|
+
}), J = F(""), ne = Pt(J, 300), Q = x(() => {
|
|
877
877
|
const o = (c) => {
|
|
878
878
|
var h;
|
|
879
879
|
return !ne.value || !ne.value.trim() ? !0 : [c.code, c.name, je(c), ...Pe(se.value, c), (h = Ce()[c.orderFrom]) == null ? void 0 : h.label, Object.values(c.customAttributes ?? {}).join(" ")].join(" ").toLowerCase().includes(ne.value.toLowerCase());
|
|
880
|
-
}, r = (c) => H.value ?
|
|
880
|
+
}, r = (c) => H.value ? It(c.customAttributes, H.value) : !0;
|
|
881
881
|
return z.value.filter((c) => o(c) && r(c));
|
|
882
882
|
}), {
|
|
883
883
|
categories: se
|
|
@@ -1031,7 +1031,7 @@ const Ye = /* @__PURE__ */ B({
|
|
|
1031
1031
|
categories: Pe(se.value, r)
|
|
1032
1032
|
});
|
|
1033
1033
|
const c = yt(n.originalValue, n.modelValue, r._id) ?? ht(r), p = (c == null ? void 0 : c.map((C) => C._id)) ?? [], h = c == null ? void 0 : c.reduce((C, _) => (C[_._id] = _, C), {});
|
|
1034
|
-
return D(
|
|
1034
|
+
return D(Ft, {
|
|
1035
1035
|
shouldShowChips: !1,
|
|
1036
1036
|
shouldShowSelectedItemsWithinPlaceholder: !0,
|
|
1037
1037
|
modelValue: p.length > 0 ? p : [null],
|
|
@@ -1345,7 +1345,7 @@ const Ye = /* @__PURE__ */ B({
|
|
|
1345
1345
|
}, null, 8, ["borderColor", "textColor", "variant", "label"])])) : M("", !0), g("div", {
|
|
1346
1346
|
ref_key: "tableWrapper",
|
|
1347
1347
|
ref: Ke
|
|
1348
|
-
}, [(m(), I(lt(V.value ?
|
|
1348
|
+
}, [(m(), I(lt(V.value ? Tt : "div"), {
|
|
1349
1349
|
ref: "fullWrapper",
|
|
1350
1350
|
title: V.value ? a(t)("menu.product.table.bulk_edit.title") : "",
|
|
1351
1351
|
show: V.value,
|
|
@@ -1438,7 +1438,7 @@ const Ye = /* @__PURE__ */ B({
|
|
|
1438
1438
|
}), b = F({}), y = F({}), S = async () => {
|
|
1439
1439
|
var ue, q;
|
|
1440
1440
|
f.value = !0;
|
|
1441
|
-
const R = !!s.value, $ = ge.flatten(Y.value.map((E) => E.items)), P = R && v.value ? await
|
|
1441
|
+
const R = !!s.value, $ = ge.flatten(Y.value.map((E) => E.items)), P = R && v.value ? await Vt(
|
|
1442
1442
|
e.mergedMenu,
|
|
1443
1443
|
$,
|
|
1444
1444
|
e.state.menu,
|
|
@@ -1488,7 +1488,7 @@ const Ye = /* @__PURE__ */ B({
|
|
|
1488
1488
|
handleSubmit: ne,
|
|
1489
1489
|
catalogManager: Q,
|
|
1490
1490
|
schedulerManager: se
|
|
1491
|
-
} =
|
|
1491
|
+
} = Ct(!1);
|
|
1492
1492
|
return (R, $) => {
|
|
1493
1493
|
const P = j("fm-button");
|
|
1494
1494
|
return a(z).length ? (m(), w("div", ta, [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as v, computed as z, resolveComponent as W, createElementBlock as c, openBlock as r, createElementVNode as s, createVNode as I, unref as h, createCommentVNode as T, normalizeClass as B, toDisplayString as U, createStaticVNode as E, Fragment as P, renderList as R, createBlock as oe, withCtx as A } from "vue";
|
|
2
|
-
import { J as O, F as ne } from "./jszip.min-
|
|
3
|
-
import { B as le, u as ie, H as D, a0 as re, K as ce, M as de, N as me } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { J as O, F as ne } from "./jszip.min-DOHC0a7i.js";
|
|
3
|
+
import { B as le, u as ie, H as D, a0 as re, K as ce, M as de, N as me } from "./index.vue_vue_type_script_setup_true_lang-CA1qH7Vf.js";
|
|
4
4
|
import { useI18n as ue } from "@feedmepos/mf-common";
|
|
5
5
|
import { FmButtonVariant as $, useSnackbar as V, useDialog as ge, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { u as fe, a as he } from "./menu-
|
|
8
|
-
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { x as be, y as ve, z as _e } from "./item-
|
|
7
|
+
import { u as fe, a as he } from "./menu-BduvULfe.js";
|
|
8
|
+
import { a as ye } from "./Product.vue_vue_type_script_setup_true_lang-FnX_M8lJ.js";
|
|
9
|
+
import { x as be, y as ve, z as _e } from "./item-CKRLnCIs.js";
|
|
10
10
|
const we = { class: "h-full flex flex-col" }, xe = { class: "flex items-center justify-between p-16 border-b border-gray-200" }, Ie = { class: "flex gap-8" }, ke = { class: "border-b border-gray-200" }, Ce = { class: "flex" }, Ue = { class: "flex-1 overflow-hidden" }, je = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "h-full flex flex-col"
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import { defineComponent as I, computed as m, ref as J, resolveComponent as w, createBlock as c, openBlock as l, unref as e, withCtx as _, createElementVNode as d, toDisplayString as Z, createVNode as u, createCommentVNode as M, createElementBlock as j, Fragment as z } from "vue";
|
|
2
|
+
import { D as V } from "./dayjs.min-BgQgGKeN.js";
|
|
3
|
+
import { J as re, F as ie } from "./jszip.min-DOHC0a7i.js";
|
|
4
|
+
import { u as K, B as Q, z as R, D as H, y as X, A as le, G as ue, H as L, I as ce } from "./index.vue_vue_type_script_setup_true_lang-CA1qH7Vf.js";
|
|
5
|
+
import { w as me } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-gVXNoAaN.js";
|
|
6
|
+
import { h as F, A as O } from "./app-B6laFmet.js";
|
|
7
|
+
import { useCoreStore as ee, useI18n as de } from "@feedmepos/mf-common";
|
|
8
|
+
import { useDialog as te, useDialogChild as pe, useSnackbar as ne, useBreakpoints as _e, FmButtonVariant as E, FmButtonColorThemeVariant as h } from "@feedmepos/ui-library";
|
|
9
|
+
import { _ as T } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
10
|
+
import { _ as fe, a as q } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
|
|
11
|
+
import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
12
|
+
import { u as ge, a as be } from "./menu-BduvULfe.js";
|
|
13
|
+
import { u as ye } from "./item-CKRLnCIs.js";
|
|
14
|
+
import { _ as G, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-FnX_M8lJ.js";
|
|
15
|
+
import { L as W } from "./LinkProductSideSheet-BS-MEIOG.js";
|
|
16
|
+
import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C9eskCL4.js";
|
|
17
|
+
import { u as Se } from "./Thumbnail.vue_vue_type_script_setup_true_lang-BjPOOURv.js";
|
|
18
|
+
import { m as he } from "./toExcel-tz6MIiQY.js";
|
|
19
|
+
const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "flex justify-end gap-8" }, Fe = /* @__PURE__ */ I({
|
|
20
|
+
__name: "ConfirmActionDialog",
|
|
21
|
+
props: {
|
|
22
|
+
description: {},
|
|
23
|
+
value: {},
|
|
24
|
+
message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
|
|
25
|
+
},
|
|
26
|
+
setup($) {
|
|
27
|
+
const n = $, y = m(() => n.message.replace("[[value]]", n.value)), x = J(""), s = te(), { emitAction: S } = pe();
|
|
28
|
+
return (f, i) => {
|
|
29
|
+
const v = w("FmTextField"), g = w("FmButton"), b = w("FmForm");
|
|
30
|
+
return l(), c(b, {
|
|
31
|
+
"on-validation-success": () => e(S)("primary"),
|
|
32
|
+
"blame-form-child-on-validation-failed": ""
|
|
33
|
+
}, {
|
|
34
|
+
default: _(() => [
|
|
35
|
+
d("div", Me, [
|
|
36
|
+
d("div", null, Z(f.description), 1),
|
|
37
|
+
d("div", { innerHTML: y.value }, null, 8, we),
|
|
38
|
+
d("div", null, [
|
|
39
|
+
u(v, {
|
|
40
|
+
modelValue: x.value,
|
|
41
|
+
"onUpdate:modelValue": [
|
|
42
|
+
i[0] || (i[0] = (p) => x.value = p),
|
|
43
|
+
i[1] || (i[1] = () => {
|
|
44
|
+
})
|
|
45
|
+
],
|
|
46
|
+
placeholder: f.value,
|
|
47
|
+
rules: [(p) => p === f.value || "Value does not match"]
|
|
48
|
+
}, null, 8, ["modelValue", "placeholder", "rules"])
|
|
49
|
+
]),
|
|
50
|
+
d("div", Ce, [
|
|
51
|
+
u(g, {
|
|
52
|
+
label: "Cancel",
|
|
53
|
+
variant: "secondary",
|
|
54
|
+
onClick: i[2] || (i[2] = (p) => e(s).close())
|
|
55
|
+
}),
|
|
56
|
+
u(g, {
|
|
57
|
+
label: "Confirm",
|
|
58
|
+
type: "submit"
|
|
59
|
+
})
|
|
60
|
+
])
|
|
61
|
+
])
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}, 8, ["on-validation-success"]);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
}), $e = /* @__PURE__ */ I({
|
|
68
|
+
__name: "Migrate",
|
|
69
|
+
setup($) {
|
|
70
|
+
const n = K(), y = ee(), x = ne(), { minor: s } = Q(x), S = J(!1), f = te();
|
|
71
|
+
async function i() {
|
|
72
|
+
v.value || S.value || f.open({
|
|
73
|
+
title: "Migrate to new version",
|
|
74
|
+
contentComponent: Fe,
|
|
75
|
+
contentComponentProps: {
|
|
76
|
+
value: "MIGRATE",
|
|
77
|
+
description: "Do you want to migrate to new version? Once migrate it will unable to revert to the older version."
|
|
78
|
+
}
|
|
79
|
+
}).onPrimary(async () => {
|
|
80
|
+
f.close(), await s(
|
|
81
|
+
async () => {
|
|
82
|
+
await n.migrate(), setTimeout(() => {
|
|
83
|
+
window.location.reload();
|
|
84
|
+
}, 2e3);
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
isLoading: S,
|
|
88
|
+
customId: n.state.menu._id,
|
|
89
|
+
message: "Migrating menu",
|
|
90
|
+
successMessage: "Migration completed"
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
const v = m(() => {
|
|
96
|
+
const g = y.restaurants.value;
|
|
97
|
+
if (!g.length) return "Required at least one restaurant to migrate";
|
|
98
|
+
const b = g.filter((k) => !k.posVersion || !R.Pos.canUse({ feature: H.F_FEATURE.enum.menuV4, posVersion: k.posVersion }));
|
|
99
|
+
return b.length ? `Upgrade POS to V${R.Pos.minVersionToUse(H.F_FEATURE.enum.menuV4)} to use new menu: ${b.map((k) => k.profile.name).join(", ")}` : null;
|
|
100
|
+
});
|
|
101
|
+
return m(() => v.value ? v.value : "Migrate your menu to new version to enjoy more features. Content of new menu will remain the same as current."), (g, b) => {
|
|
102
|
+
const p = w("FmSnackbar");
|
|
103
|
+
return !v.value && e(n).version !== e(X.F_MENU_VERSION).enum.v4 ? (l(), c(p, {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "!max-w-full",
|
|
106
|
+
title: "New version of menu is out now!",
|
|
107
|
+
description: "Migrate your current menu version to the latest to enjoy more features such as product sequential dispatch, serving sequence, scheduler and more! Your content and current setting will be preserved.",
|
|
108
|
+
variant: "info",
|
|
109
|
+
action: "Migrate",
|
|
110
|
+
"z-index": 0,
|
|
111
|
+
onOnAction: i
|
|
112
|
+
})) : M("", !0);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
}), Ve = "/assets/menu-export-24uzPEwW.js", Ee = { class: "flex-1 flex justify-between gap-8 pl-8" }, Te = { class: "flex items-center" }, Ie = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ae = { class: "fm-typo-en-body-md-600 font-semibold" }, De = { class: "flex gap-8" }, Xe = /* @__PURE__ */ I({
|
|
116
|
+
__name: "Products",
|
|
117
|
+
setup($) {
|
|
118
|
+
const { t: n } = de(), y = ee(), x = Q(ne()), s = K(), S = m(() => s.rules.item), f = ye(), i = m(() => !s.state.currentSchedulerId), { selectedCategories: v } = ge(), g = m(() => ({
|
|
119
|
+
...le.menuV4ToV3(ue(s.state.menu)),
|
|
120
|
+
_id: s.state.menu._id,
|
|
121
|
+
_rev: s.state.menu._rev
|
|
122
|
+
})), b = m(() => {
|
|
123
|
+
const r = L.flatten(v.value.map((t) => t.items));
|
|
124
|
+
return L.uniqBy(r, (t) => t._id).length;
|
|
125
|
+
});
|
|
126
|
+
async function p(r, t) {
|
|
127
|
+
const o = new re();
|
|
128
|
+
for (let C = 0; C < r.length; C++)
|
|
129
|
+
o.file(`${t[C]}.xlsx`, r[C]);
|
|
130
|
+
const a = await o.generateAsync({ type: "blob" });
|
|
131
|
+
ie.saveAs(a, `books_${V().format("DD-MM-YYYY_HH-mm")}.zip`);
|
|
132
|
+
}
|
|
133
|
+
async function k() {
|
|
134
|
+
await x.minor(
|
|
135
|
+
async () => {
|
|
136
|
+
if (await s.readMenu(), s.version === X.F_MENU_VERSION.enum.v4) {
|
|
137
|
+
const r = s.state.menu, t = V().format("DD-MM-YYYY_HH-mm"), o = [
|
|
138
|
+
`menu_${t}`,
|
|
139
|
+
`addonGroup_${t}`,
|
|
140
|
+
`itemLinkedAddon_${t}`
|
|
141
|
+
], a = await ce(
|
|
142
|
+
Ve,
|
|
143
|
+
JSON.stringify({
|
|
144
|
+
menu: r,
|
|
145
|
+
attributeSettings: y.itemAttributeSettings.value
|
|
146
|
+
})
|
|
147
|
+
);
|
|
148
|
+
await p(a, o);
|
|
149
|
+
} else {
|
|
150
|
+
const r = he(g.value), t = `menu_${V().format("DD-MM-YYYY_HH-mm")}`;
|
|
151
|
+
await me(r, `${t}.xlsx`, {
|
|
152
|
+
bookType: "xlsx",
|
|
153
|
+
bookSST: !0,
|
|
154
|
+
type: "array",
|
|
155
|
+
compression: !0
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{ successMessage: "Menu exported", customId: s.state.menu._id }
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
const {
|
|
163
|
+
menuItems: A,
|
|
164
|
+
categories: D,
|
|
165
|
+
linkItemRules: B,
|
|
166
|
+
handleSubmit: N,
|
|
167
|
+
catalogManager: Y,
|
|
168
|
+
schedulerManager: P
|
|
169
|
+
} = Se(!1), oe = _e(), ae = m(() => oe.breakpoints.value.xs), se = m(() => {
|
|
170
|
+
var o;
|
|
171
|
+
const r = ((o = y.sessionUser.value) == null ? void 0 : o.permissions) ?? [], t = {
|
|
172
|
+
action: F.Action.manage,
|
|
173
|
+
subject: F.Subject.Business.menu_menuManagement
|
|
174
|
+
};
|
|
175
|
+
return O([t], r).granted;
|
|
176
|
+
}), U = m(() => {
|
|
177
|
+
var o;
|
|
178
|
+
const r = ((o = y.sessionUser.value) == null ? void 0 : o.permissions) ?? [], t = {
|
|
179
|
+
action: F.Action.manage,
|
|
180
|
+
subject: F.Subject.Business.menu_importExport
|
|
181
|
+
};
|
|
182
|
+
return O([t], r).granted;
|
|
183
|
+
});
|
|
184
|
+
return be().resetOnMount(), (r, t) => {
|
|
185
|
+
const o = w("fm-button");
|
|
186
|
+
return l(), c(ve, {
|
|
187
|
+
heading: e(n)("menu.products.title")
|
|
188
|
+
}, {
|
|
189
|
+
default: _(() => [
|
|
190
|
+
u($e),
|
|
191
|
+
u(ke)
|
|
192
|
+
]),
|
|
193
|
+
"append-heading": _(() => [
|
|
194
|
+
d("div", Ee, [
|
|
195
|
+
d("div", Te, [
|
|
196
|
+
d("div", Ie, [
|
|
197
|
+
d("p", Ae, Z(b.value), 1)
|
|
198
|
+
])
|
|
199
|
+
]),
|
|
200
|
+
d("div", De, [
|
|
201
|
+
ae.value ? (l(), c(G, { key: 1 }, {
|
|
202
|
+
default: _(({ trigger: a }) => [
|
|
203
|
+
u(fe, null, {
|
|
204
|
+
default: _(() => [
|
|
205
|
+
u(q, {
|
|
206
|
+
label: e(n)("menu.products.actions.export"),
|
|
207
|
+
onClick: k
|
|
208
|
+
}, null, 8, ["label"]),
|
|
209
|
+
u(q, {
|
|
210
|
+
label: e(n)("menu.products.actions.import"),
|
|
211
|
+
onClick: a
|
|
212
|
+
}, null, 8, ["label", "onClick"])
|
|
213
|
+
]),
|
|
214
|
+
_: 2
|
|
215
|
+
}, 1024)
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
})) : (l(), j(z, { key: 0 }, [
|
|
219
|
+
se.value ? (l(), c(xe, { key: 0 }, {
|
|
220
|
+
default: _(({ trigger: a }) => [
|
|
221
|
+
u(o, {
|
|
222
|
+
label: e(n)("menu.tree_editor.title"),
|
|
223
|
+
"bg-color": e(h).NeutralGray100,
|
|
224
|
+
"text-color": e(h).TypoSecondary,
|
|
225
|
+
variant: e(E).Primary,
|
|
226
|
+
onClick: a
|
|
227
|
+
}, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
|
|
228
|
+
]),
|
|
229
|
+
_: 1
|
|
230
|
+
})) : M("", !0),
|
|
231
|
+
U.value ? (l(), c(o, {
|
|
232
|
+
key: 1,
|
|
233
|
+
"bg-color": e(h).NeutralGray100,
|
|
234
|
+
"text-color": e(h).TypoSecondary,
|
|
235
|
+
variant: e(E).Primary,
|
|
236
|
+
label: e(n)("menu.products.actions.export"),
|
|
237
|
+
onClick: k
|
|
238
|
+
}, null, 8, ["bg-color", "text-color", "variant", "label"])) : M("", !0),
|
|
239
|
+
U.value ? (l(), c(G, { key: 2 }, {
|
|
240
|
+
default: _(({ trigger: a }) => [
|
|
241
|
+
u(o, {
|
|
242
|
+
"bg-color": e(h).NeutralGray100,
|
|
243
|
+
"text-color": e(h).TypoSecondary,
|
|
244
|
+
variant: e(E).Primary,
|
|
245
|
+
label: e(n)("menu.products.actions.import"),
|
|
246
|
+
onClick: a
|
|
247
|
+
}, null, 8, ["bg-color", "text-color", "variant", "label", "onClick"])
|
|
248
|
+
]),
|
|
249
|
+
_: 1
|
|
250
|
+
})) : M("", !0)
|
|
251
|
+
], 64)),
|
|
252
|
+
b.value > 0 ? (l(), j(z, { key: 2 }, [
|
|
253
|
+
S.value.create ? (l(), c(T, {
|
|
254
|
+
key: 0,
|
|
255
|
+
label: e(n)("menu.products.actions.add"),
|
|
256
|
+
"prepend-icon": "add",
|
|
257
|
+
onClick: t[0] || (t[0] = (a) => e(f).create(null))
|
|
258
|
+
}, null, 8, ["label"])) : i.value ? (l(), c(W, {
|
|
259
|
+
key: 1,
|
|
260
|
+
"categorized-items": e(Y).linkableItems.value,
|
|
261
|
+
"initial-value": e(Y).currentItems.value,
|
|
262
|
+
"show-variant": !1,
|
|
263
|
+
"menu-items": e(A),
|
|
264
|
+
categories: e(D),
|
|
265
|
+
"link-item-rules": e(B),
|
|
266
|
+
"no-scheduler": i.value,
|
|
267
|
+
onSubmit: e(N)
|
|
268
|
+
}, {
|
|
269
|
+
default: _(({ trigger: a }) => [
|
|
270
|
+
u(T, {
|
|
271
|
+
label: e(n)("menu.products.actions.link"),
|
|
272
|
+
"prepend-icon": "link",
|
|
273
|
+
onClick: a
|
|
274
|
+
}, null, 8, ["label", "onClick"])
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), c(W, {
|
|
278
|
+
key: 2,
|
|
279
|
+
"categorized-items": e(P).linkableItems.value,
|
|
280
|
+
"initial-value": e(P).currentItems.value,
|
|
281
|
+
"show-variant": !1,
|
|
282
|
+
"menu-items": e(A),
|
|
283
|
+
categories: e(D),
|
|
284
|
+
"link-item-rules": e(B),
|
|
285
|
+
"no-scheduler": i.value,
|
|
286
|
+
onSubmit: e(N)
|
|
287
|
+
}, {
|
|
288
|
+
default: _(({ trigger: a }) => [
|
|
289
|
+
u(T, {
|
|
290
|
+
label: e(n)("menu.products.actions.apply_scheduler"),
|
|
291
|
+
onClick: a
|
|
292
|
+
}, null, 8, ["label", "onClick"])
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
}, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"]))
|
|
296
|
+
], 64)) : M("", !0)
|
|
297
|
+
])
|
|
298
|
+
])
|
|
299
|
+
]),
|
|
300
|
+
_: 1
|
|
301
|
+
}, 8, ["heading"]);
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
export {
|
|
306
|
+
Xe as default
|
|
307
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as G, ref as M, computed as R, onMounted as ie, resolveComponent as $, createElementBlock as V, openBlock as y, createVNode as h, createElementVNode as f, toDisplayString as L, unref as p, Fragment as j, renderList as Q, createBlock as Y, watch as de, withCtx as E, h as T, normalizeClass as re, createCommentVNode as X, createTextVNode as me, mergeProps as $e, normalizeStyle as Ae, renderSlot as Ue, withModifiers as te, onUnmounted as Be } from "vue";
|
|
2
|
-
import { D as z } from "./dayjs.min-
|
|
2
|
+
import { D as z } from "./dayjs.min-BgQgGKeN.js";
|
|
3
3
|
import { useRouter as De } from "vue-router";
|
|
4
4
|
import { O as Oe, b as Te } from "./app-5fxKLAzS.js";
|
|
5
|
-
import { z as Ne, D as Re, B as ve, aa as Ee, a2 as be, y as q, u as _e, G as pe, H as Le } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { z as Ne, D as Re, B as ve, aa as Ee, a2 as be, y as q, u as _e, G as pe, H as Le } from "./index.vue_vue_type_script_setup_true_lang-CA1qH7Vf.js";
|
|
6
6
|
import { useI18n as Z, useCoreStore as ge, RestaurantSelector as ye } from "@feedmepos/mf-common";
|
|
7
7
|
import { useSnackbar as ce, useDialogChild as ze, useProxiedModel as je, useDialog as ke, FmButtonVariant as fe, components as W } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as He } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
|
|
9
|
-
import { _ as Ce } from "./app-
|
|
9
|
+
import { _ as Ce } from "./app-B6laFmet.js";
|
|
10
10
|
import { a as Ye, w as Ke } from "./tooltip-B5BiPMx9.js";
|
|
11
11
|
import { u as we } from "./discardConfirm-BHni0LNu.js";
|
|
12
12
|
import { _ as xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|