@feedmepos/mf-menu 0.32.39 → 0.32.40
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-Dg5GweBn.js → App-DqpxV0zp.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DliryTNe.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BQM40AWC.js} +3 -3
- package/dist/{Catalog-Cb66nkUU.js → Catalog-RdpK3RmL.js} +6 -6
- package/dist/{Category-CPFnvBBy.js → Category-DbvCHZU4.js} +5 -5
- package/dist/{Category-Cfd8CPSx.js → Category-ar15UpWV.js} +4 -4
- package/dist/{CookingGuide-DSHWh9Gt.js → CookingGuide-x2w_WTnE.js} +4 -4
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DaCFX7KY.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-pRoVDEEM.js} +1 -1
- package/dist/{Group-DMmXyHKE.js → Group-D30WEl2L.js} +1 -1
- package/dist/{Group-CULwhVe7.js → Group-DevhimQn.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-BPXbprJG.js → Group.vue_vue_type_script_setup_true_lang-BY3nr67e.js} +116 -116
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-7y3GRcrl.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CPvumpiM.js} +5 -5
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BrMdia8X.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-hEPchEwW.js} +1958 -1942
- package/dist/{Ingredient-BTeAgBic.js → Ingredient-CiJSeTgO.js} +3 -3
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B373qMOc.js → InventoryBinding.vue_vue_type_script_setup_true_lang-Cnq9QAeQ.js} +2 -2
- package/dist/{LinkProductSideSheet-BQC5B7VR.js → LinkProductSideSheet-CJxffg6I.js} +3 -3
- package/dist/{MenuSetting-QrTjKewy.js → MenuSetting-BMuUIgLN.js} +5 -5
- package/dist/{PrintRoute-Cw_fjZuS.js → PrintRoute-Uu2n0dAY.js} +4 -4
- package/dist/{Product-TfZZCFxL.js → Product-e81DLAaw.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-Cf02oa8B.js → Product.vue_vue_type_script_setup_true_lang-1axfwskP.js} +13 -13
- package/dist/{ProductInternalTools--2ISZa9C.js → ProductInternalTools-BiK5b7KA.js} +5 -5
- package/dist/{Products-CU17YbjY.js → Products-DOIcfgzd.js} +65 -65
- package/dist/{Publish-C92_8tJc.js → Publish-d_T1ROxG.js} +3 -3
- package/dist/{Recipe-rN_AUIzI.js → Recipe-QIACzb3h.js} +4 -4
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-Be33vMlU.js → RuleView.vue_vue_type_script_setup_true_lang-01qpukRE.js} +2 -2
- package/dist/{Scheduler-udXY9Nxw.js → Scheduler-VxoCoh9o.js} +3 -3
- package/dist/{ServingSequence-lqstj5IH.js → ServingSequence-C7aNpyh4.js} +3 -3
- package/dist/{Setting-C8hhG68F.js → Setting-BzoqHU2T.js} +5 -5
- package/dist/Subcategory-dyK9h6SV.js +349 -0
- package/dist/{Takeaway-_ZUqMNYd.js → Takeaway-C3UnFVOa.js} +1 -1
- package/dist/{Takeaway-BNXBkxY3.js → Takeaway-DxLGfrmv.js} +4 -4
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DpIu-F5W.js → Takeaway.vue_vue_type_script_setup_true_lang-zsgXKNRt.js} +6 -6
- package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-D7Rx1dQ0.js → Thumbnail.vue_vue_type_script_setup_true_lang-Ba0ZuCdS.js} +4 -4
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-Xfmvx9wx.js +194 -0
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-blAi_T2i.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang--vNq7F0Z.js} +1907 -1899
- package/dist/{Unit-Cb5D0Twk.js → Unit-Clc8AYHy.js} +2 -2
- package/dist/{Variant-CFwv2HLG.js → Variant-DOGe2aJK.js} +4 -4
- package/dist/{_id_-DfRWmsAf.js → _id_-Bbc2mu9G.js} +9 -9
- package/dist/{app-H7J5uHZg.js → app-BSpY6Pgy.js} +26 -26
- package/dist/{app-CEN10-4D.js → app-DQD4sPc8.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/components/ProductTranslationDialog.vue.d.ts +4 -0
- package/dist/apps/mf-menu/src/components/TranslationFieldSection.vue.d.ts +7 -3
- package/dist/apps/mf-menu/src/components/TranslationSideSheet.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +3 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +3 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +3 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +3 -0
- package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +17 -0
- package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +3 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +3 -0
- package/dist/apps/mf-menu/src/helper/menuExport.d.ts +2 -2
- package/dist/apps/mf-menu/src/helper/menuImport.d.ts +7 -0
- package/dist/apps/mf-menu/src/helper/menuSanitizer.d.ts +7 -0
- package/dist/apps/mf-menu/src/manager/menu/item.d.ts +7 -0
- package/dist/apps/mf-menu/src/stores/manager/item.d.ts +9 -0
- package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +3 -0
- package/dist/apps/mf-menu/src/stores/menu.d.ts +7 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +6 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/linked-status-DojmxFzq.js +13 -0
- package/dist/assets/{menu-export-B_zRmLzS.js → menu-export-rmsdV9dK.js} +45 -45
- package/dist/assets/override-menu-CVjWw9he.js +13 -0
- package/dist/assets/{validate-menu-D4jvSNmz.js → validate-menu-BB1XuZ9d.js} +6 -6
- package/dist/{catalog-CTuBk61t.js → catalog-ku3nqGmL.js} +1 -1
- package/dist/{catalogSetting-DKVNY3JC.js → catalogSetting-CpgLgy9o.js} +1 -1
- package/dist/{currency--QAX2jgM.js → currency-B58wqs-1.js} +1 -1
- package/dist/{dayjs.min-Dyhv-966.js → dayjs.min-Dj2ONTtr.js} +1 -1
- package/dist/index-BGm9S8Ih.js +545 -0
- package/dist/{index-CCM6nQtW.js → index-ByMVMoTu.js} +1 -1
- package/dist/{index-IWdfpOvK.js → index-CPY_DjD2.js} +58 -54
- package/dist/{index.vue_vue_type_script_setup_true_lang-90aRfAsI.js → index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js} +13190 -13149
- package/dist/{item-CKij6BhH.js → item-DotiWZRv.js} +2967 -2925
- package/dist/{jszip.min-C-AOVv_w.js → jszip.min-OZZMb1gD.js} +2 -2
- package/dist/{menu-CX5qZa4q.js → menu-v_Cm5BNh.js} +1 -1
- package/dist/{menuV2-CgfWTiZp.js → menuV2-DsvYmLeh.js} +139 -139
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-CKw6yKzC.js → priceTier-BQeJLJUu.js} +1 -1
- package/dist/rules-D3qosTfl.js +216 -0
- package/dist/{scheduler-CbytS4GA.js → scheduler-B32ag1lR.js} +4 -4
- package/dist/{toExcel-1Ir0pgiS.js → toExcel-CIrCsrWL.js} +2 -2
- package/dist/translation-Cdap0IVg.js +79 -0
- package/dist/{unit-DQOMjCVi.js → unit-y1on6-W3.js} +2 -2
- package/package.json +3 -3
- package/dist/Subcategory-BSAn0r8r.js +0 -345
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-C9byidEd.js +0 -185
- package/dist/assets/linked-status-D22Wz7QM.js +0 -13
- package/dist/assets/override-menu-96YpbKTz.js +0 -13
- package/dist/index-ulGt0shB.js +0 -539
- package/dist/rules-CoyaaNMj.js +0 -212
- package/dist/translation-BeqjfyEb.js +0 -75
|
@@ -2,7 +2,7 @@ import { defineComponent as ie, createElementBlock as Y, openBlock as x, normali
|
|
|
2
2
|
import { x as xn, N as Kn } from "./app-5fxKLAzS.js";
|
|
3
3
|
import { useCoreStore as Dt, useI18n as Ge, useCustomAttributes as Bt, EMPTY_RULE as Yn, isEmptyMongoQuery as jn, isEmptyRule as Xn } from "@feedmepos/mf-common";
|
|
4
4
|
import "@vue/devtools-api";
|
|
5
|
-
import { u as Tn, J as xt, A as bt } from "./index.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as Tn, J as xt, A as bt } from "./index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js";
|
|
6
6
|
import { FmButtonVariant as Fe, components as qn } from "@feedmepos/ui-library";
|
|
7
7
|
const Jn = /* @__PURE__ */ ie({
|
|
8
8
|
__name: "FormColumn",
|
|
@@ -1891,7 +1891,7 @@ function Vo(e, t, n, r) {
|
|
|
1891
1891
|
return e.processor && (E.processor = e.processor), r.list && (E.list = r.list), r.named && (E.named = r.named), ee(r.plural) && (E.pluralIndex = r.plural), E;
|
|
1892
1892
|
}
|
|
1893
1893
|
wr();
|
|
1894
|
-
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
1894
|
+
var $o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_5d0c02e3-530d-402b-9bed-92b1f56a7096", 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_5d0c02e3-530d-402b-9bed-92b1f56a7096", PIPX_HOME: "/opt/pipx", FIREBASE_DATABASE_URL: "https://feedme-253402.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.feedmeapi.com", GTM_ID: "GTM-WR8XHXLH", FIREBASE_MESSAGING_SENDER_ID: "128512026847", HOME: "/home/runner", VITE_FEED_ME_NAMESPACE: "production", 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-zzez732dna-as.a.run.app", VITE_FEATURE_FLAG_API_KEY: "6GhcttsJ9Rj9cTevcdrpin", SYSTEMD_EXEC_PID: "1868", ACTIONS_ORCHESTRATION_ID: "9952fef5-0807-46e1-b6f8-6b17adf90dd6.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.feedmeapi.com", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.12/x64", JOURNAL_STREAM: "9:13224", GITHUB_WORKFLOW: "Publish mf-menu prod", _: "/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.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: "25308217003", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapi.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a4e7a976d314867ad01aceee244f7001e6aade84", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GTM_ENV: "production", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", GITHUB_WORKFLOW_REF: "feedmepos/portal/.github/workflows/publish-mf-menu-prod.yml@refs/heads/main", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", FIREBASE_AUTH_DOMAIN: "feedme-253402.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_591c07bb-99e8-4bb7-baac-eb201bf4a6c3", INVOCATION_ID: "20a3d788a6744153927c02f4ff66dd82", 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: "162", GITHUB_TRIGGERING_ACTOR: "victorchai", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", GTM_SERVER_MEASUREMENT_ID: "G-2MP52PC24R", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", VITE_LICENSE_API_URL: "https://license-v2.feedmeapi.com", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 1000065383", 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.40", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "true", GTM_DEBUG: "false", FIREBASE_PROJECT_ID: "feedme-253402", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "a4e7a976d314867ad01aceee244f7001e6aade84", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", 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_5d0c02e3-530d-402b-9bed-92b1f56a7096", 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_5d0c02e3-530d-402b-9bed-92b1f56a7096", 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: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", 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: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_5d0c02e3-530d-402b-9bed-92b1f56a7096", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
1895
1895
|
const Ho = "10.0.5";
|
|
1896
1896
|
function Go() {
|
|
1897
1897
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (he().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (he().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (he().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (he().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as N, computed as y, h as p, withModifiers as U, ref as V, resolveComponent as _, createBlock as k, openBlock as i, unref as d, withCtx as h, createElementBlock as D, createVNode as f, Fragment as H, createElementVNode as s, renderList as T, toDisplayString as S, createCommentVNode as I } from "vue";
|
|
2
|
-
import { A as c, Q as W, u as Q, G, a4 as J } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { A as c, Q as W, u as Q, G, a4 as J } from "./index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js";
|
|
3
3
|
import { useI18n as X } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as Z, useDialog as ee, useSnackbar as te } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
|
-
import { _ as ae } from "./app-
|
|
7
|
-
import { d as oe, _ as le, u as se, c as re } from "./scheduler-
|
|
6
|
+
import { _ as ae } from "./app-BSpY6Pgy.js";
|
|
7
|
+
import { d as oe, _ as le, u as se, c as re } from "./scheduler-B32ag1lR.js";
|
|
8
8
|
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
9
9
|
const ce = {
|
|
10
10
|
class: "flex flex-1 justify-end"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as H, ref as I, computed as L, resolveComponent as h, createElementBlock as g, openBlock as d, Fragment as x, renderSlot as ae, createVNode as l, unref as t, withCtx as m, createElementVNode as y, toDisplayString as z, onBeforeMount as oe, watch as F, watchEffect as se, h as $, getCurrentInstance as le, onMounted as re, createBlock as j, createCommentVNode as G, isRef as ie, normalizeClass as J, renderList as ue } from "vue";
|
|
2
2
|
import { useRouter as ce } from "vue-router";
|
|
3
|
-
import { I as Q, u as W, G as X, Q as Z, M as O, A as S, a4 as de } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { I as Q, u as W, G as X, Q as Z, M as O, A as S, a4 as de } from "./index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js";
|
|
4
4
|
import { useI18n as ee, ItemSelector as me, useCoreStore as pe } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as ne, components as Y, useDialog as _e, FmButtonVariant as A, useBreakpoints as fe } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as ge } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
7
|
-
import { _ as ve, R as he } from "./app-
|
|
7
|
+
import { _ as ve, R as he } from "./app-BSpY6Pgy.js";
|
|
8
8
|
import { c as ye } from "./check-C9mY6LiX.js";
|
|
9
9
|
import { _ as be } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
10
10
|
import { u as ke } from "./search-BAPEUu1R.js";
|
|
11
|
-
import { u as xe } from "./app-
|
|
11
|
+
import { u as xe } from "./app-DQD4sPc8.js";
|
|
12
12
|
import { c as Se } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
13
13
|
const Ce = { class: "fm-typo-en-title-md-600" }, qe = { class: "space-y-32 flex flex-col h-full" }, Ee = { class: "flex gap-8 items-center justify-start" }, Ve = /* @__PURE__ */ H({
|
|
14
14
|
__name: "Form",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ne, computed as p, ref as se, watch as ue, watchEffect as ie, resolveComponent as m, createElementBlock as V, openBlock as r, normalizeClass as H, createVNode as s, withCtx as c, createElementVNode as v, createBlock as g, createCommentVNode as k, unref as e, Fragment as D, renderList as B, createTextVNode as re, toDisplayString as N } from "vue";
|
|
2
|
-
import { u as me, G as ce, A as f, Q as de, B as pe, I as w } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as me, G as ce, A as f, Q as de, B as pe, I as w } from "./index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js";
|
|
3
3
|
import { useCoreStore as ve, useI18n as ge } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as fe, useDialog as _e, FmButtonVariant as $, FmButtonColorThemeVariant as P, components as be } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as E } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
|
-
import { _ as ye } from "./RuleView.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { C as _, a as x } from "./catalogSetting-
|
|
9
|
-
import { C as xe } from "./catalog-
|
|
6
|
+
import { _ as ye } from "./RuleView.vue_vue_type_script_setup_true_lang-01qpukRE.js";
|
|
7
|
+
import { _ as z, a as ke } from "./GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CPvumpiM.js";
|
|
8
|
+
import { C as _, a as x } from "./catalogSetting-CpgLgy9o.js";
|
|
9
|
+
import { C as xe } from "./catalog-ku3nqGmL.js";
|
|
10
10
|
const Ce = {
|
|
11
11
|
class: /* @__PURE__ */ H(["overflow-scroll", "flex-1", "xs:px-16 xs:py-16", "pt-16"])
|
|
12
12
|
}, Oe = {
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { defineComponent as z, ref as x, computed as V, watch as te, resolveComponent as C, createElementBlock as k, openBlock as p, Fragment as A, renderSlot as oe, createVNode as m, unref as n, withCtx as y, createElementVNode as c, renderList as H, toDisplayString as T, h as N, withModifiers as J, getCurrentInstance as ne, createBlock as U, createCommentVNode as le } from "vue";
|
|
2
|
+
import { useI18n as R } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as P, components as W, useDialog as X, FmButtonVariant as q, useBreakpoints as se, FmButtonColorThemeVariant as ie } from "@feedmepos/ui-library";
|
|
4
|
+
import { _ as re } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
5
|
+
import { G as Y, u as K, Q as G, M as Z, A as ee, a4 as ce } from "./index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js";
|
|
6
|
+
import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
+
import { _ as me } from "./app-BSpY6Pgy.js";
|
|
8
|
+
import { c as de } from "./createForm-BoUQeZTd.js";
|
|
9
|
+
import { u as pe } from "./discardConfirm-BHni0LNu.js";
|
|
10
|
+
import { c as Q } from "./object-DVUNCr7w.js";
|
|
11
|
+
import { r as _e, u as ae } from "./rules-D3qosTfl.js";
|
|
12
|
+
import { _ as fe } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-Xfmvx9wx.js";
|
|
13
|
+
import { c as ve } from "./check-C9mY6LiX.js";
|
|
14
|
+
import { g as I } from "./translation-Cdap0IVg.js";
|
|
15
|
+
import { a as ge } from "./menu-v_Cm5BNh.js";
|
|
16
|
+
const ye = {
|
|
17
|
+
class: "fm-typo-en-title-md-600"
|
|
18
|
+
}, be = {
|
|
19
|
+
class: "flex flex-col gap-32 h-full min-h-0 py-16"
|
|
20
|
+
}, he = {
|
|
21
|
+
class: "py-12 px-16 space-y-4"
|
|
22
|
+
}, xe = {
|
|
23
|
+
class: "flex gap-8 items-center justify-start"
|
|
24
|
+
}, Ce = /* @__PURE__ */ z({
|
|
25
|
+
__name: "Form",
|
|
26
|
+
props: {
|
|
27
|
+
initialValue: {}
|
|
28
|
+
},
|
|
29
|
+
setup(D, {
|
|
30
|
+
expose: w
|
|
31
|
+
}) {
|
|
32
|
+
const h = D, S = P(), F = Y(S), E = G(F), d = K(), {
|
|
33
|
+
t: l
|
|
34
|
+
} = R(), L = x(!1), o = x(!1), $ = x(!1), u = x(void 0), M = (e) => {
|
|
35
|
+
ve.isBoolean(e) ? o.value = e : o.value = !o.value;
|
|
36
|
+
}, s = x(Q(h.initialValue)), O = V(() => !!s.value.name), B = V(() => {
|
|
37
|
+
var b;
|
|
38
|
+
const e = [], t = "en-US", a = (b = u.value) == null ? void 0 : b[t];
|
|
39
|
+
return s.value.name && !a && e.push({
|
|
40
|
+
locale: t,
|
|
41
|
+
name: s.value.name,
|
|
42
|
+
localeDisplay: I(t)
|
|
43
|
+
}), u.value && Object.entries(u.value).filter(([g, f]) => f && f.trim()).sort(([g], [f]) => g.localeCompare(f)).forEach(([g, f]) => {
|
|
44
|
+
e.push({
|
|
45
|
+
locale: g,
|
|
46
|
+
name: f,
|
|
47
|
+
localeDisplay: I(g)
|
|
48
|
+
});
|
|
49
|
+
}), e;
|
|
50
|
+
});
|
|
51
|
+
function j(e) {
|
|
52
|
+
u.value = e;
|
|
53
|
+
}
|
|
54
|
+
function i(e) {
|
|
55
|
+
s.value.name = e;
|
|
56
|
+
}
|
|
57
|
+
const r = pe(() => {
|
|
58
|
+
const e = d.subcategories.find((f) => f._id === s.value._id), t = s.value.name !== (e == null ? void 0 : e.name), a = (e == null ? void 0 : e.name_locale) || {}, b = u.value || {}, g = JSON.stringify(a) !== JSON.stringify(b);
|
|
59
|
+
return t || g;
|
|
60
|
+
}, () => {
|
|
61
|
+
o.value = !1;
|
|
62
|
+
});
|
|
63
|
+
async function _() {
|
|
64
|
+
const e = d.subcategories.find((a) => a._id === s.value._id), {
|
|
65
|
+
updateMenu: t
|
|
66
|
+
} = E;
|
|
67
|
+
await t({
|
|
68
|
+
module: ee.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
69
|
+
operation: Z.F_OPERATION_TYPE.update,
|
|
70
|
+
// @ts-ignore FIXME: The backend hasn't exported SubcategoryRequest yet. Fix this once it's available.
|
|
71
|
+
data: {
|
|
72
|
+
...e,
|
|
73
|
+
name: s.value.name ?? (e == null ? void 0 : e.name),
|
|
74
|
+
...u.value && {
|
|
75
|
+
name_locale: u.value
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}, s.value.name), M(!1);
|
|
79
|
+
}
|
|
80
|
+
return te(() => o.value, () => {
|
|
81
|
+
if (!o.value) return;
|
|
82
|
+
s.value = Q(h.initialValue);
|
|
83
|
+
const e = d.subcategories.find((t) => t._id === s.value._id);
|
|
84
|
+
u.value = e == null ? void 0 : e.name_locale;
|
|
85
|
+
}), w({
|
|
86
|
+
trigger: M,
|
|
87
|
+
show: o
|
|
88
|
+
}), (e, t) => {
|
|
89
|
+
const a = C("fm-button"), b = C("FmTooltip"), g = C("FmTextField"), f = C("fm-side-sheet");
|
|
90
|
+
return p(), k(A, null, [oe(e.$slots, "default", {
|
|
91
|
+
trigger: M
|
|
92
|
+
}), m(f, {
|
|
93
|
+
id: "group-form",
|
|
94
|
+
modelValue: o.value,
|
|
95
|
+
"onUpdate:modelValue": t[3] || (t[3] = (v) => o.value = v),
|
|
96
|
+
"is-container": n(W).FmForm,
|
|
97
|
+
"is-container-props": {
|
|
98
|
+
onValidationSuccess: _,
|
|
99
|
+
blameFormChildOnValidationFailed: !0
|
|
100
|
+
},
|
|
101
|
+
"max-width": 560,
|
|
102
|
+
"onOn:clickedAway": n(r)
|
|
103
|
+
}, {
|
|
104
|
+
"side-sheet-header": y(() => [c("p", ye, T(n(l)("menu.subcategory.title")), 1)]),
|
|
105
|
+
"side-sheet-footer": y(() => [c("div", xe, [m(a, {
|
|
106
|
+
label: n(l)("menu.common.actions.update"),
|
|
107
|
+
loading: L.value,
|
|
108
|
+
size: "lg",
|
|
109
|
+
type: "submit",
|
|
110
|
+
variant: "primary",
|
|
111
|
+
disabled: !s.value._id
|
|
112
|
+
}, null, 8, ["label", "loading", "disabled"]), m(a, {
|
|
113
|
+
label: n(l)("menu.common.actions.cancel"),
|
|
114
|
+
size: "lg",
|
|
115
|
+
variant: "tertiary",
|
|
116
|
+
onClick: t[2] || (t[2] = () => o.value = !1)
|
|
117
|
+
}, null, 8, ["label"])])]),
|
|
118
|
+
default: y(() => [c("div", be, [m(g, {
|
|
119
|
+
label: n(l)("menu.subcategory.name"),
|
|
120
|
+
modelValue: s.value.name,
|
|
121
|
+
"onUpdate:modelValue": t[1] || (t[1] = (v) => s.value.name = v),
|
|
122
|
+
disabled: !s.value._id,
|
|
123
|
+
rules: [n(_e)]
|
|
124
|
+
}, {
|
|
125
|
+
append: y(() => [m(b, {
|
|
126
|
+
variant: "plain",
|
|
127
|
+
placement: "top",
|
|
128
|
+
"z-index": 999
|
|
129
|
+
}, {
|
|
130
|
+
content: y(() => [c("div", he, [(p(!0), k(A, null, H(B.value, (v) => (p(), k("div", {
|
|
131
|
+
key: v.locale
|
|
132
|
+
}, T(v.name) + " (" + T(v.localeDisplay) + ") ", 1))), 128))])]),
|
|
133
|
+
default: y(() => [m(a, {
|
|
134
|
+
variant: "tertiary",
|
|
135
|
+
icon: "g_translate",
|
|
136
|
+
onClick: t[0] || (t[0] = (v) => $.value = !0),
|
|
137
|
+
disabled: !O.value
|
|
138
|
+
}, null, 8, ["disabled"])]),
|
|
139
|
+
_: 1
|
|
140
|
+
})]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 8, ["label", "modelValue", "disabled", "rules"])])]),
|
|
143
|
+
_: 1
|
|
144
|
+
}, 8, ["modelValue", "is-container", "is-container-props", "onOn:clickedAway"]), m(fe, {
|
|
145
|
+
modelValue: $.value,
|
|
146
|
+
"onUpdate:modelValue": t[4] || (t[4] = (v) => $.value = v),
|
|
147
|
+
title: n(l)("menu.subcategory.title"),
|
|
148
|
+
name: s.value.name,
|
|
149
|
+
"name-locale": u.value,
|
|
150
|
+
"onUpdate:name": i,
|
|
151
|
+
"onUpdate:nameLocale": j
|
|
152
|
+
}, null, 8, ["modelValue", "title", "name", "name-locale"])], 64);
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
}), ke = Ce, Ve = {
|
|
156
|
+
key: 0
|
|
157
|
+
}, we = {
|
|
158
|
+
class: "flex justify-end items-center"
|
|
159
|
+
}, Fe = {
|
|
160
|
+
class: "w-[320px]"
|
|
161
|
+
}, Le = {
|
|
162
|
+
key: 1,
|
|
163
|
+
class: "flex-1 flex flex-col min-h-0"
|
|
164
|
+
}, $e = {
|
|
165
|
+
class: "p-8"
|
|
166
|
+
}, Se = {
|
|
167
|
+
class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64"
|
|
168
|
+
}, Ee = ["onClick"], Me = {
|
|
169
|
+
class: "flex-1 space-y-4"
|
|
170
|
+
}, Ne = {
|
|
171
|
+
class: "fm-typo-en-body-lg-600"
|
|
172
|
+
}, Te = /* @__PURE__ */ z({
|
|
173
|
+
__name: "SubcategoryTable",
|
|
174
|
+
setup(D) {
|
|
175
|
+
const w = X(), h = P(), S = Y(h), F = G(S), E = ae({
|
|
176
|
+
dialog: w,
|
|
177
|
+
menuLoader: F
|
|
178
|
+
}), d = V(() => K().subcategories), l = x(""), L = V(() => d.value.filter((i) => i.name.toLowerCase().includes(l.value.toLowerCase()))), {
|
|
179
|
+
t: o
|
|
180
|
+
} = R(), $ = x([{
|
|
181
|
+
accessorKey: "name",
|
|
182
|
+
header: () => o("menu.subcategory.columns.title"),
|
|
183
|
+
enableSorting: !1,
|
|
184
|
+
meta: {
|
|
185
|
+
width: "auto"
|
|
186
|
+
},
|
|
187
|
+
cell: (i) => {
|
|
188
|
+
const r = i.row.original, _ = i.getValue(), t = Object.keys(r.name_locale ?? {}).map((a) => I(a));
|
|
189
|
+
return N("div", {
|
|
190
|
+
class: "flex items-center gap-8"
|
|
191
|
+
}, [N("span", {
|
|
192
|
+
class: "break-all"
|
|
193
|
+
}, _), ...t.map((a) => N("div", {
|
|
194
|
+
class: "rounded-lg border border-fm-color-primary text-fm-color-primary flex items-center justify-center fm-typo-en-body-sm-600 px-8"
|
|
195
|
+
}, a))]);
|
|
196
|
+
}
|
|
197
|
+
}, {
|
|
198
|
+
id: "actions",
|
|
199
|
+
size: 52,
|
|
200
|
+
meta: {
|
|
201
|
+
cellClass: "pl-16",
|
|
202
|
+
headerContentClass: "-mx-16"
|
|
203
|
+
},
|
|
204
|
+
header: "",
|
|
205
|
+
cell: (i) => {
|
|
206
|
+
const r = i.row.original;
|
|
207
|
+
return N("div", {
|
|
208
|
+
class: "flex justify-end"
|
|
209
|
+
}, [N(W.FmButton, {
|
|
210
|
+
icon: "delete",
|
|
211
|
+
disabled: !r._id,
|
|
212
|
+
variant: "tertiary",
|
|
213
|
+
textColor: "neutral-gray-400",
|
|
214
|
+
onClick: J(async () => {
|
|
215
|
+
await u(r);
|
|
216
|
+
}, ["stop", "prevent"])
|
|
217
|
+
})]);
|
|
218
|
+
}
|
|
219
|
+
}]);
|
|
220
|
+
async function u(i) {
|
|
221
|
+
if (!i._id) {
|
|
222
|
+
h.open({
|
|
223
|
+
message: o("menu.subcategory.dialog.remove.error"),
|
|
224
|
+
type: "warning"
|
|
225
|
+
});
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
w.open({
|
|
229
|
+
title: o("menu.subcategory.dialog.remove.title"),
|
|
230
|
+
message: o("menu.common.dialog.remove_confirmation", {
|
|
231
|
+
name: i.name
|
|
232
|
+
}),
|
|
233
|
+
primaryActions: {
|
|
234
|
+
text: "Remove",
|
|
235
|
+
close: !0,
|
|
236
|
+
variant: q.Destructive
|
|
237
|
+
},
|
|
238
|
+
secondaryActions: {
|
|
239
|
+
text: "Cancel",
|
|
240
|
+
close: !0
|
|
241
|
+
}
|
|
242
|
+
}).onPrimary(async () => {
|
|
243
|
+
await F.updateMenu({
|
|
244
|
+
module: ee.F_MENU_MODULE_V4_KEY.enum.subCategory,
|
|
245
|
+
operation: Z.F_OPERATION_TYPE.delete,
|
|
246
|
+
data: i._id
|
|
247
|
+
}, i.name, !0);
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
async function M(i) {
|
|
251
|
+
const r = i.map((_) => _._id).filter((_) => !!_);
|
|
252
|
+
await E.rearrange(r);
|
|
253
|
+
}
|
|
254
|
+
const s = ne();
|
|
255
|
+
async function O(i) {
|
|
256
|
+
de(s, ke, {
|
|
257
|
+
initialValue: i
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
const B = se(), j = V(() => B.breakpoints.value.xs);
|
|
261
|
+
return (i, r) => {
|
|
262
|
+
const _ = C("FmSearch"), e = C("FmTable"), t = C("FmButton");
|
|
263
|
+
return j.value ? (p(), k("div", Le, [c("div", $e, [m(_, {
|
|
264
|
+
autofocus: "",
|
|
265
|
+
modelValue: l.value,
|
|
266
|
+
"onUpdate:modelValue": r[2] || (r[2] = (a) => l.value = a),
|
|
267
|
+
class: "w-full",
|
|
268
|
+
placeholder: n(o)("menu.common.labels.search_placeholder", {
|
|
269
|
+
type: "categories"
|
|
270
|
+
})
|
|
271
|
+
}, null, 8, ["modelValue", "placeholder"])]), c("div", Se, [(p(!0), k(A, null, H(L.value, (a) => (p(), k("div", {
|
|
272
|
+
key: a._id || "",
|
|
273
|
+
class: "flex flex-row py-12 px-16",
|
|
274
|
+
onClick: (b) => O(a)
|
|
275
|
+
}, [c("div", Me, [c("p", Ne, T(a.name), 1)]), m(t, {
|
|
276
|
+
"text-color": n(ie).NeutralGray400,
|
|
277
|
+
variant: n(q).Tertiary,
|
|
278
|
+
"prepend-icon": "delete",
|
|
279
|
+
disabled: !a._id,
|
|
280
|
+
onClick: J((b) => u(a), ["stop"])
|
|
281
|
+
}, null, 8, ["text-color", "variant", "disabled", "onClick"])], 8, Ee))), 128))])])) : (p(), k("div", Ve, [c("div", we, [c("div", Fe, [m(_, {
|
|
282
|
+
modelValue: l.value,
|
|
283
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => l.value = a),
|
|
284
|
+
autofocus: "",
|
|
285
|
+
class: "mb-8",
|
|
286
|
+
placeholder: n(o)("menu.common.labels.search_placeholder", {
|
|
287
|
+
type: n(o)("menu.subcategory.title")
|
|
288
|
+
})
|
|
289
|
+
}, null, 8, ["modelValue", "placeholder"])])]), m(me, null, {
|
|
290
|
+
default: y(() => [m(e, {
|
|
291
|
+
"column-defs": $.value,
|
|
292
|
+
draggable: !0,
|
|
293
|
+
"page-size": d.value.length,
|
|
294
|
+
"row-data": d.value,
|
|
295
|
+
"search-value": l.value,
|
|
296
|
+
"shrink-at": !1,
|
|
297
|
+
"hide-footer": "",
|
|
298
|
+
"pin-header-row": "",
|
|
299
|
+
onDndChanged: M,
|
|
300
|
+
onRowClick: r[1] || (r[1] = (a) => O(a.original))
|
|
301
|
+
}, null, 8, ["column-defs", "page-size", "row-data", "search-value"])]),
|
|
302
|
+
_: 1
|
|
303
|
+
})]));
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
}), Oe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Ue = { class: "flex items-center" }, De = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Be = { class: "fm-typo-en-body-md-600 font-semibold" }, Ze = /* @__PURE__ */ z({
|
|
307
|
+
__name: "Subcategory",
|
|
308
|
+
setup(D) {
|
|
309
|
+
const w = X(), h = P(), S = Y(h), F = G(S), E = ae({ dialog: w, menuLoader: F }), d = V(() => K().subcategories), { t: l } = R();
|
|
310
|
+
function L() {
|
|
311
|
+
E.create();
|
|
312
|
+
}
|
|
313
|
+
const o = V(() => d.value.length);
|
|
314
|
+
return ge().resetOnMount(), ($, u) => (p(), U(ue, {
|
|
315
|
+
heading: n(l)("menu.subcategory.title")
|
|
316
|
+
}, {
|
|
317
|
+
default: y(() => [
|
|
318
|
+
d.value.length > 0 ? (p(), U(Te, { key: 0 })) : (p(), U(n(ce), {
|
|
319
|
+
key: 1,
|
|
320
|
+
action: {
|
|
321
|
+
text: n(l)("menu.subcategory.add"),
|
|
322
|
+
callback: L
|
|
323
|
+
},
|
|
324
|
+
subtitle: n(l)("menu.subcategory.empty.subtitle"),
|
|
325
|
+
title: n(l)("menu.subcategory.empty.title")
|
|
326
|
+
}, null, 8, ["action", "subtitle", "title"]))
|
|
327
|
+
]),
|
|
328
|
+
"append-heading": y(() => [
|
|
329
|
+
c("div", Oe, [
|
|
330
|
+
c("div", Ue, [
|
|
331
|
+
c("div", De, [
|
|
332
|
+
c("p", Be, T(o.value), 1)
|
|
333
|
+
])
|
|
334
|
+
]),
|
|
335
|
+
d.value.length > 0 ? (p(), U(re, {
|
|
336
|
+
key: 0,
|
|
337
|
+
label: n(l)("menu.subcategory.add"),
|
|
338
|
+
"prepend-icon": "add",
|
|
339
|
+
onClick: L
|
|
340
|
+
}, null, 8, ["label"])) : le("", !0)
|
|
341
|
+
])
|
|
342
|
+
]),
|
|
343
|
+
_: 1
|
|
344
|
+
}, 8, ["heading"]));
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
export {
|
|
348
|
+
Ze as default
|
|
349
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as f, computed as y, ref as k, createBlock as i, openBlock as d, unref as a, withCtx as s, createElementVNode as t, toDisplayString as b, createCommentVNode as g, createVNode as m } from "vue";
|
|
2
|
-
import { G as x, u as v, Q as w, M as E, A as M } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { G as x, u as v, Q as w, M as E, A as M } from "./index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js";
|
|
3
3
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as V } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as h } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
|
|
6
6
|
import { _ as C } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
|
|
7
|
-
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { T as S, l as L } from "./index-
|
|
9
|
-
import { a as O } from "./menu-
|
|
7
|
+
import { _ as N } from "./Takeaway.vue_vue_type_script_setup_true_lang-zsgXKNRt.js";
|
|
8
|
+
import { T as S, l as L } from "./index-CPY_DjD2.js";
|
|
9
|
+
import { a as O } from "./menu-v_Cm5BNh.js";
|
|
10
10
|
const U = { class: "flex-1 flex justify-between gap-8 pl-8" }, B = { class: "flex items-center" }, F = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, A = { class: "fm-typo-en-body-md-600 font-semibold" }, z = /* @__PURE__ */ f({
|
|
11
11
|
__name: "Takeaway",
|
|
12
12
|
setup(D) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { getCurrentInstance as te, defineComponent as oe, computed as x, watch as ne, h as E, resolveComponent as O, createElementBlock as C, openBlock as _, Fragment as P, normalizeClass as Y, createElementVNode as k, createVNode as V, unref as n, isRef as j, withCtx as F, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as S, withModifiers as Q } from "vue";
|
|
2
|
-
import { G as H, u as J, Q as W, M as N, A as z, I as A, B as se, ap as q, a4 as re } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { G as H, u as J, Q as W, M as N, A as z, I as A, B as se, ap as q, a4 as re } from "./index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js";
|
|
3
3
|
import { useI18n as X, useCoreStore as le } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as ce, useSnackbar as Z, FmButtonVariant as D, components as de, useBreakpoints as me } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ue } from "./app-
|
|
6
|
-
import { a as pe, l as ee, T as ye } from "./index-
|
|
5
|
+
import { _ as ue } from "./app-BSpY6Pgy.js";
|
|
6
|
+
import { a as pe, l as ee, T as ye } from "./index-CPY_DjD2.js";
|
|
7
7
|
import { u as fe } from "./search-BAPEUu1R.js";
|
|
8
|
-
import { f as L } from "./currency
|
|
8
|
+
import { f as L } from "./currency-B58wqs-1.js";
|
|
9
9
|
import { defineStore as _e } from "pinia";
|
|
10
|
-
import { C as ke } from "./catalog-
|
|
10
|
+
import { C as ke } from "./catalog-ku3nqGmL.js";
|
|
11
11
|
import { c as ve } from "./createComponentProgrammatically-Bt2rn1IQ.js";
|
|
12
|
-
import { g as we } from "./translation-
|
|
12
|
+
import { g as we } from "./translation-Cdap0IVg.js";
|
|
13
13
|
function ge(T, M, l, p) {
|
|
14
14
|
var y, v, w, g;
|
|
15
15
|
const s = A(T);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed as d, defineComponent as x, ref as F, resolveComponent as b, createElementBlock as L, openBlock as w, normalizeClass as R, createVNode as K, normalizeStyle as $, withCtx as B, createBlock as U, createCommentVNode as j } from "vue";
|
|
2
|
-
import { A as h, M as E, G as C, Q as O, al as Y, u as y, a as G } from "./index.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as S } from "./menuV2-
|
|
4
|
-
import { C as v, h as N } from "./catalog-
|
|
2
|
+
import { A as h, M as E, G as C, Q as O, al as Y, u as y, a as G } from "./index.vue_vue_type_script_setup_true_lang-IHmRgZTC.js";
|
|
3
|
+
import { u as S } from "./menuV2-DsvYmLeh.js";
|
|
4
|
+
import { C as v, h as N } from "./catalog-ku3nqGmL.js";
|
|
5
5
|
import { useSnackbar as P, useDialog as z } from "@feedmepos/ui-library";
|
|
6
|
-
import { a as T } from "./LinkProductSideSheet-
|
|
6
|
+
import { a as T } from "./LinkProductSideSheet-CJxffg6I.js";
|
|
7
7
|
import { useI18n as Q } from "@feedmepos/mf-common";
|
|
8
8
|
function q() {
|
|
9
9
|
const t = S(), o = d(() => t.categorizedRawMenuItems.filter((u) => u.items.length > 0)), i = d(() => {
|