@feedmepos/mf-menu 0.32.61-dev.3 → 0.32.63-dev.1
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-TgWTfhbY.js → App-DhfTGlgM.js} +466 -461
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BeW-aCRL.js → ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js} +3 -3
- package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-C8il14gy.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js} +8 -8
- package/dist/{Catalog-hnhpn9Of.js → Catalog-WuZJfM6l.js} +78 -78
- package/dist/{Category-DIubPG8Y.js → Category-BeIo7XWY.js} +20 -20
- package/dist/{Category-wXfspM5v.js → Category-D-cQQCPS.js} +19 -19
- package/dist/{CookingGuide-CR1cBZ3S.js → CookingGuide-B-yvD9ZA.js} +88 -88
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DlpZfbx-.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js} +1 -1
- package/dist/{Group-DbG3cLfp.js → Group-13i5igrS.js} +5 -5
- package/dist/{Group-DTzbprcr.js → Group-CY8lUzQG.js} +1 -1
- package/dist/{Group.vue_vue_type_script_setup_true_lang-CMEdW613.js → Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js} +95 -94
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-aLcNgJLb.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js} +13 -13
- package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CnChdePY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js} +219 -220
- package/dist/{Ingredient-BBGzGfS2.js → Ingredient-vrUOW6gk.js} +49 -49
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-B9CfZ7oA.js → InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js} +2 -2
- package/dist/{LinkProductSideSheet-CLd4LEy4.js → LinkProductSideSheet-DMbJG6wf.js} +8 -8
- package/dist/{MenuSetting-BuS9_e0y.js → MenuSetting-Di2xwm00.js} +10 -10
- package/dist/{OrderPacing-2QPouAql.js → OrderPacing-CCe-IcGO.js} +28 -28
- package/dist/{PrintRoute-D-SiyoaP.js → PrintRoute-CcfObcHY.js} +27 -27
- package/dist/{Product-nmlc3rrr.js → Product-ChUVnMgG.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DYn_bqcn.js → Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js} +153 -152
- package/dist/{ProductInternalTools-BgDSe1XP.js → ProductInternalTools-D9HXhgo5.js} +80 -79
- package/dist/{Products-BPa6wC-o.js → Products-Bly2ktEC.js} +82 -81
- package/dist/{Publish-DbI1wemN.js → Publish-C8ubb8Qf.js} +113 -113
- package/dist/{Recipe-CAgscHCL.js → Recipe-BpMRLsyO.js} +32 -32
- package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-DNG5WX4W.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js} +1 -1
- package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DNk48PUl.js → RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js} +313 -312
- package/dist/{Scheduler-C8TXHcb2.js → Scheduler-CiB4b2Fn.js} +9 -9
- package/dist/{ServingSequence-CQzQWvUA.js → ServingSequence-BlcyW-dv.js} +18 -18
- package/dist/{Setting-gun4ZUQ4.js → Setting-DqkL6YYU.js} +31 -31
- package/dist/{Subcategory-CqcWpp94.js → Subcategory-B4Jg_wtT.js} +43 -43
- package/dist/{Takeaway-DV_ND3Ts.js → Takeaway-5G3f7jWT.js} +1 -1
- package/dist/{Takeaway-DsRU9wBO.js → Takeaway-5rFPYYNA.js} +16 -16
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-GMA7-Hrb.js → Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js} +23 -23
- package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-DAwsbPs4.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js} +1 -1
- package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DYVBVDBy.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js} +8 -9
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +5836 -0
- package/dist/{Unit-BcPn6opY.js → Unit-CAkdmQLg.js} +2 -2
- package/dist/{Variant-Wkd9mHWk.js → Variant-BbLQqbAK.js} +13 -13
- package/dist/{_id_-CuOgqnZ3.js → _id_-Dzacr40I.js} +13 -13
- package/dist/{app-BsNMWUZ9.js → app-4yWs09Fr.js} +495 -495
- package/dist/{app-kS8tUq_w.js → app-Deov1985.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/api/media.d.ts +161 -0
- package/dist/apps/mf-menu/src/app.d.ts +340 -0
- package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +150 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/CustomDimensionDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadDialog.vue.d.ts +16 -1
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +75 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ProductDetail.vue.d.ts +3 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
- package/dist/apps/mf-menu/src/composable/remyImageTarget.d.ts +5 -0
- package/dist/apps/mf-menu/src/helper/menu.d.ts +14 -1
- package/dist/apps/mf-menu/src/stores/menu.d.ts +1 -0
- package/dist/apps/mf-menu/src/types/rule.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +3 -2
- package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/ProductDetail.vue.d.ts +8 -8
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-CHvHJGH9.js → linked-status-B2WLhKkV.js} +4 -4
- package/dist/assets/{menu-export-Bd2A9o3e.js → menu-export-Dcw5a_dN.js} +3 -3
- package/dist/assets/{override-menu-cifFGmrk.js → override-menu-cBe2aMY6.js} +4 -4
- package/dist/assets/{validate-menu-B8cp1kCt.js → validate-menu-BM-5GK85.js} +3 -3
- package/dist/{catalog-BxfmkFrE.js → catalog-DKygS2Cs.js} +6 -6
- package/dist/{catalogSetting-ebS4mr1i.js → catalogSetting-Bn2TplvM.js} +1 -1
- package/dist/currency-DXgNHtK8.js +7 -0
- package/dist/dayjs.min-DpX65tgj.js +7 -0
- package/dist/discardConfirm-DZwzKO-Q.js +3704 -0
- package/dist/{index-CUrfs4iN.js → index-B48KLyqg.js} +61 -61
- package/dist/{index-BxvnAb0l.js → index-BEocaqRK.js} +30 -30
- package/dist/index-K-MBqJJo.js +222 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-C3c2B-qJ.js → index.vue_vue_type_script_setup_true_lang-Nl505vPi.js} +44918 -51563
- package/dist/item-Da3ArD-G.js +13213 -0
- package/dist/{jszip.min-DccvCJln.js → jszip.min-Cc2eR4Cq.js} +52 -52
- package/dist/linkProducts-GNuUxFEE.js +331 -0
- package/dist/{memberPricing-FatZi_6k.js → memberPricing-T-jr7tn1.js} +1 -1
- package/dist/{menu-DcPMF0nf.js → menu-DSDRAil-.js} +1 -1
- package/dist/{menuV2-CVo-19H-.js → menuV2-fTlJdjxi.js} +89 -87
- package/dist/mf-menu.css +1 -1
- package/dist/{order_pacing-CWDYwJcW.js → order_pacing-Dgo1fySS.js} +17 -17
- package/dist/packages/shared/src/helpers/agentCode.d.ts +9 -0
- package/dist/{priceTier-C58Ixr5m.js → priceTier-aT_gIfrN.js} +3 -3
- package/dist/{rules-DwomOoC9.js → rules-Cx2hkV20.js} +8 -8
- package/dist/{scheduler-CJcxPgeF.js → scheduler-Bd-q7yF8.js} +62 -62
- package/dist/{toExcel-DjWt9SEm.js → toExcel-qfjR83qT.js} +2 -2
- package/dist/{unit-KhTILQfe.js → unit-n1T9grbM.js} +64 -64
- package/package.json +3 -3
- package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-C5hn1NYM.js +0 -399
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BFUOqfDO.js +0 -6058
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/thumbnailUpload.d.ts +0 -6
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ImageUploadForm.vue.d.ts +0 -38
- package/dist/currency-BM5m7MDE.js +0 -7
- package/dist/dayjs.min-X4vHGjJn.js +0 -7
- package/dist/discardConfirm-BHni0LNu.js +0 -28
- package/dist/index-CisutoS9.js +0 -156
- package/dist/item-26-Gw7Ug.js +0 -9098
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as ct, g as Bt } from "./app-
|
|
2
|
-
import {
|
|
1
|
+
import { c as ct, g as Bt } from "./app-4yWs09Fr.js";
|
|
2
|
+
import { t as wt } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.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/save_state_71e56bf4-5107-442d-8523-afe71c8fb543", 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_71e56bf4-5107-442d-8523-afe71c8fb543", 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.6.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-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: "1922", ACTIONS_ORCHESTRATION_ID: "8182ff27-17da-4226-9516-c1cc0707b4c0.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: "20260720.247.2", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_71e56bf4-5107-442d-8523-afe71c8fb543", 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:12960", 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.12/x64", GITHUB_RUN_ID: "30822935074", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "26bb7a5e33cdaf5bb21609f07729bbe0bf062dd5", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/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_60282d2d-cab8-49a0-8759-85d6075cda31", INVOCATION_ID: "422c9330c5ce4113b42f446513092bfa", 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: "579", 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 1000103271", 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.61-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: "26bb7a5e33cdaf5bb21609f07729bbe0bf062dd5", 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_71e56bf4-5107-442d-8523-afe71c8fb543", 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_71e56bf4-5107-442d-8523-afe71c8fb543", 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_71e56bf4-5107-442d-8523-afe71c8fb543", 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_71e56bf4-5107-442d-8523-afe71c8fb543", INIT_CWD: "/home/runner/work/portal/portal/apps/mf-menu", NODE_ENV: "production" } };
|
|
77
|
+
var gt = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_7568684a-b6a9-48f6-b82b-c05a92ab0064", 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_7568684a-b6a9-48f6-b82b-c05a92ab0064", 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.6.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-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: "1802", ACTIONS_ORCHESTRATION_ID: "03686535-356d-4815-a3a1-1bfe0edc3374.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: "20260720.247.2", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_7568684a-b6a9-48f6-b82b-c05a92ab0064", 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:12630", 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.12/x64", GITHUB_RUN_ID: "31193639463", VITE_REMY_BACKEND_URL: "https://remy-agent-api.feedmeapidev.com", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "b26c69a65b69f0618de8663106f6f6255e8fd04b", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.5/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/KDI-5049-multiple-images-aspect-ratios", 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_3b8bf86f-521b-47fd-b285-36a33db911d5", INVOCATION_ID: "046a3876256a428fa8fe2bfb6c4c299b", 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: "580", 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 1000106815", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "KDI-5049-multiple-images-aspect-ratios", 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.63-dev.1", npm_config_verify_deps_before_run: "false", npm_lifecycle_event: "build:mf", GITHUB_REF_PROTECTED: "false", GTM_DEBUG: "true", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", GITHUB_WORKSPACE: "/home/runner/work/portal/portal", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", GITHUB_SHA: "b26c69a65b69f0618de8663106f6f6255e8fd04b", GITHUB_RUN_ATTEMPT: "1", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/heads/KDI-5049-multiple-images-aspect-ratios", GITHUB_ACTOR: "heiseshandian", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_7568684a-b6a9-48f6-b82b-c05a92ab0064", 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_7568684a-b6a9-48f6-b82b-c05a92ab0064", 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_7568684a-b6a9-48f6-b82b-c05a92ab0064", 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_7568684a-b6a9-48f6-b82b-c05a92ab0064", 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
|
|
@@ -1461,24 +1461,24 @@ function Ut() {
|
|
|
1461
1461
|
t.pending_buf[t.pending++] = z >>> 8 & 255, t.pending_buf[t.pending++] = 255 & z;
|
|
1462
1462
|
}
|
|
1463
1463
|
function W(t, z) {
|
|
1464
|
-
var R, d, o = t.max_chain_length, k = t.strstart, D = t.prev_length, U = t.nice_match, S = t.strstart > t.w_size - Y ? t.strstart - (t.w_size - Y) : 0, j = t.window,
|
|
1464
|
+
var R, d, o = t.max_chain_length, k = t.strstart, D = t.prev_length, U = t.nice_match, S = t.strstart > t.w_size - Y ? t.strstart - (t.w_size - Y) : 0, j = t.window, K = t.w_mask, G = t.prev, V = t.strstart + H, rt = j[k + D - 1], tt = j[k + D];
|
|
1465
1465
|
t.prev_length >= t.good_match && (o >>= 2), U > t.lookahead && (U = t.lookahead);
|
|
1466
1466
|
do
|
|
1467
1467
|
if (j[(R = z) + D] === tt && j[R + D - 1] === rt && j[R] === j[k] && j[++R] === j[k + 1]) {
|
|
1468
1468
|
k += 2, R++;
|
|
1469
1469
|
do
|
|
1470
1470
|
;
|
|
1471
|
-
while (j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && k <
|
|
1472
|
-
if (d = H - (
|
|
1471
|
+
while (j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && j[++k] === j[++R] && k < V);
|
|
1472
|
+
if (d = H - (V - k), k = V - H, D < d) {
|
|
1473
1473
|
if (t.match_start = z, U <= (D = d)) break;
|
|
1474
1474
|
rt = j[k + D - 1], tt = j[k + D];
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
|
-
while ((z = G[z &
|
|
1477
|
+
while ((z = G[z & K]) > S && --o != 0);
|
|
1478
1478
|
return D <= t.lookahead ? D : t.lookahead;
|
|
1479
1479
|
}
|
|
1480
1480
|
function nt(t) {
|
|
1481
|
-
var z, R, d, o, k, D, U, S, j,
|
|
1481
|
+
var z, R, d, o, k, D, U, S, j, K, G = t.w_size;
|
|
1482
1482
|
do {
|
|
1483
1483
|
if (o = t.window_size - t.lookahead - t.strstart, t.strstart >= G + (G - Y)) {
|
|
1484
1484
|
for (l.arraySet(t.window, t.window, G, G, 0), t.match_start -= G, t.strstart -= G, t.block_start -= G, z = R = t.hash_size; d = t.head[--z], t.head[z] = G <= d ? d - G : 0, --R; ) ;
|
|
@@ -1486,7 +1486,7 @@ function Ut() {
|
|
|
1486
1486
|
o += G;
|
|
1487
1487
|
}
|
|
1488
1488
|
if (t.strm.avail_in === 0) break;
|
|
1489
|
-
if (D = t.strm, U = t.window, S = t.strstart + t.lookahead, j = o,
|
|
1489
|
+
if (D = t.strm, U = t.window, S = t.strstart + t.lookahead, j = o, K = void 0, K = D.avail_in, j < K && (K = j), R = K === 0 ? 0 : (D.avail_in -= K, l.arraySet(U, D.input, D.next_in, K, S), D.state.wrap === 1 ? D.adler = a(D.adler, U, K, S) : D.state.wrap === 2 && (D.adler = m(D.adler, U, K, S)), D.next_in += K, D.total_in += K, K), t.lookahead += R, t.lookahead + t.insert >= O) for (k = t.strstart - t.insert, t.ins_h = t.window[k], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[k + 1]) & t.hash_mask; t.insert && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[k + O - 1]) & t.hash_mask, t.prev[k & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = k, k++, t.insert--, !(t.lookahead + t.insert < O)); ) ;
|
|
1490
1490
|
} while (t.lookahead < Y && t.strm.avail_in !== 0);
|
|
1491
1491
|
}
|
|
1492
1492
|
function ot(t, z) {
|
|
@@ -1600,28 +1600,28 @@ function Ut() {
|
|
|
1600
1600
|
if (d.status === 666 && t.avail_in !== 0) return Q(t, -5);
|
|
1601
1601
|
if (t.avail_in !== 0 || d.lookahead !== 0 || z !== f && d.status !== 666) {
|
|
1602
1602
|
var U = d.strategy === 2 ? function(S, j) {
|
|
1603
|
-
for (var
|
|
1603
|
+
for (var K; ; ) {
|
|
1604
1604
|
if (S.lookahead === 0 && (nt(S), S.lookahead === 0)) {
|
|
1605
1605
|
if (j === f) return e;
|
|
1606
1606
|
break;
|
|
1607
1607
|
}
|
|
1608
|
-
if (S.match_length = 0,
|
|
1608
|
+
if (S.match_length = 0, K = n._tr_tally(S, 0, S.window[S.strstart]), S.lookahead--, S.strstart++, K && (x(S, !1), S.strm.avail_out === 0)) return e;
|
|
1609
1609
|
}
|
|
1610
1610
|
return S.insert = 0, j === _ ? (x(S, !0), S.strm.avail_out === 0 ? q : P) : S.last_lit && (x(S, !1), S.strm.avail_out === 0) ? e : B;
|
|
1611
1611
|
}(d, z) : d.strategy === 3 ? function(S, j) {
|
|
1612
|
-
for (var
|
|
1612
|
+
for (var K, G, V, rt, tt = S.window; ; ) {
|
|
1613
1613
|
if (S.lookahead <= H) {
|
|
1614
1614
|
if (nt(S), S.lookahead <= H && j === f) return e;
|
|
1615
1615
|
if (S.lookahead === 0) break;
|
|
1616
1616
|
}
|
|
1617
|
-
if (S.match_length = 0, S.lookahead >= O && 0 < S.strstart && (G = tt[
|
|
1617
|
+
if (S.match_length = 0, S.lookahead >= O && 0 < S.strstart && (G = tt[V = S.strstart - 1]) === tt[++V] && G === tt[++V] && G === tt[++V]) {
|
|
1618
1618
|
rt = S.strstart + H;
|
|
1619
1619
|
do
|
|
1620
1620
|
;
|
|
1621
|
-
while (G === tt[++
|
|
1622
|
-
S.match_length = H - (rt -
|
|
1621
|
+
while (G === tt[++V] && G === tt[++V] && G === tt[++V] && G === tt[++V] && G === tt[++V] && G === tt[++V] && G === tt[++V] && G === tt[++V] && V < rt);
|
|
1622
|
+
S.match_length = H - (rt - V), S.match_length > S.lookahead && (S.match_length = S.lookahead);
|
|
1623
1623
|
}
|
|
1624
|
-
if (S.match_length >= O ? (
|
|
1624
|
+
if (S.match_length >= O ? (K = n._tr_tally(S, 1, S.match_length - O), S.lookahead -= S.match_length, S.strstart += S.match_length, S.match_length = 0) : (K = n._tr_tally(S, 0, S.window[S.strstart]), S.lookahead--, S.strstart++), K && (x(S, !1), S.strm.avail_out === 0)) return e;
|
|
1625
1625
|
}
|
|
1626
1626
|
return S.insert = 0, j === _ ? (x(S, !0), S.strm.avail_out === 0 ? q : P) : S.last_lit && (x(S, !1), S.strm.avail_out === 0) ? e : B;
|
|
1627
1627
|
}(d, z) : u[d.level].func(d, z);
|
|
@@ -1633,9 +1633,9 @@ function Ut() {
|
|
|
1633
1633
|
var z;
|
|
1634
1634
|
return t && t.state ? (z = t.state.status) !== g && z !== 69 && z !== 73 && z !== 91 && z !== 103 && z !== C && z !== 666 ? Q(t, c) : (t.state = null, z === C ? Q(t, -3) : i) : c;
|
|
1635
1635
|
}, y.deflateSetDictionary = function(t, z) {
|
|
1636
|
-
var R, d, o, k, D, U, S, j,
|
|
1636
|
+
var R, d, o, k, D, U, S, j, K = z.length;
|
|
1637
1637
|
if (!t || !t.state || (k = (R = t.state).wrap) === 2 || k === 1 && R.status !== g || R.lookahead) return c;
|
|
1638
|
-
for (k === 1 && (t.adler = a(t.adler, z,
|
|
1638
|
+
for (k === 1 && (t.adler = a(t.adler, z, K, 0)), R.wrap = 0, K >= R.w_size && (k === 0 && (J(R.head), R.strstart = 0, R.block_start = 0, R.insert = 0), j = new l.Buf8(R.w_size), l.arraySet(j, z, K - R.w_size, R.w_size, 0), z = j, K = R.w_size), D = t.avail_in, U = t.next_in, S = t.input, t.avail_in = K, t.next_in = 0, t.input = z, nt(R); R.lookahead >= O; ) {
|
|
1639
1639
|
for (d = R.strstart, o = R.lookahead - (O - 1); R.ins_h = (R.ins_h << R.hash_shift ^ R.window[d + O - 1]) & R.hash_mask, R.prev[d & R.w_mask] = R.head[R.ins_h], R.head[R.ins_h] = d, d++, --o; ) ;
|
|
1640
1640
|
R.strstart = d, R.lookahead = O - 1, nt(R);
|
|
1641
1641
|
}
|
|
@@ -2196,8 +2196,8 @@ function Ut() {
|
|
|
2196
2196
|
return D >>> 1;
|
|
2197
2197
|
}
|
|
2198
2198
|
function ot(o, k, D) {
|
|
2199
|
-
var U, S, j = new Array(h + 1),
|
|
2200
|
-
for (U = 1; U <= h; U++) j[U] =
|
|
2199
|
+
var U, S, j = new Array(h + 1), K = 0;
|
|
2200
|
+
for (U = 1; U <= h; U++) j[U] = K = K + D[U - 1] << 1;
|
|
2201
2201
|
for (S = 0; S <= k; S++) {
|
|
2202
2202
|
var G = o[2 * S + 1];
|
|
2203
2203
|
G !== 0 && (o[2 * S] = nt(j[G]++, G));
|
|
@@ -2222,16 +2222,16 @@ function Ut() {
|
|
|
2222
2222
|
o.heap[D] = U;
|
|
2223
2223
|
}
|
|
2224
2224
|
function ht(o, k, D) {
|
|
2225
|
-
var U, S, j,
|
|
2226
|
-
if (o.last_lit !== 0) for (; U = o.pending_buf[o.d_buf + 2 * G] << 8 | o.pending_buf[o.d_buf + 2 * G + 1], S = o.pending_buf[o.l_buf + G], G++, U === 0 ? W(o, S, k) : (W(o, (j = e[S]) + f + 1, k), (
|
|
2225
|
+
var U, S, j, K, G = 0;
|
|
2226
|
+
if (o.last_lit !== 0) for (; U = o.pending_buf[o.d_buf + 2 * G] << 8 | o.pending_buf[o.d_buf + 2 * G + 1], S = o.pending_buf[o.l_buf + G], G++, U === 0 ? W(o, S, k) : (W(o, (j = e[S]) + f + 1, k), (K = T[j]) !== 0 && Z(o, S -= B[j], K), W(o, j = x(--U), D), (K = L[j]) !== 0 && Z(o, U -= M[j], K)), G < o.last_lit; ) ;
|
|
2227
2227
|
W(o, w, k);
|
|
2228
2228
|
}
|
|
2229
2229
|
function lt(o, k) {
|
|
2230
|
-
var D, U, S, j = k.dyn_tree,
|
|
2231
|
-
for (o.heap_len = 0, o.heap_max = r, D = 0; D <
|
|
2232
|
-
for (; o.heap_len < 2; ) j[2 * (S = o.heap[++o.heap_len] = rt < 2 ? ++rt : 0)] = 1, o.depth[S] = 0, o.opt_len--, G && (o.static_len -=
|
|
2230
|
+
var D, U, S, j = k.dyn_tree, K = k.stat_desc.static_tree, G = k.stat_desc.has_stree, V = k.stat_desc.elems, rt = -1;
|
|
2231
|
+
for (o.heap_len = 0, o.heap_max = r, D = 0; D < V; D++) j[2 * D] !== 0 ? (o.heap[++o.heap_len] = rt = D, o.depth[D] = 0) : j[2 * D + 1] = 0;
|
|
2232
|
+
for (; o.heap_len < 2; ) j[2 * (S = o.heap[++o.heap_len] = rt < 2 ? ++rt : 0)] = 1, o.depth[S] = 0, o.opt_len--, G && (o.static_len -= K[2 * S + 1]);
|
|
2233
2233
|
for (k.max_code = rt, D = o.heap_len >> 1; 1 <= D; D--) it(o, j, D);
|
|
2234
|
-
for (S =
|
|
2234
|
+
for (S = V; D = o.heap[1], o.heap[1] = o.heap[o.heap_len--], it(o, j, 1), U = o.heap[1], o.heap[--o.heap_max] = D, o.heap[--o.heap_max] = U, j[2 * S] = j[2 * D] + j[2 * U], o.depth[S] = (o.depth[D] >= o.depth[U] ? o.depth[D] : o.depth[U]) + 1, j[2 * D + 1] = j[2 * U + 1] = S, o.heap[1] = S++, it(o, j, 1), 2 <= o.heap_len; ) ;
|
|
2235
2235
|
o.heap[--o.heap_max] = o.heap[1], function(tt, ut) {
|
|
2236
2236
|
var pt, dt, mt, at, bt, Et, ft = ut.dyn_tree, St = ut.max_code, Tt = ut.stat_desc.static_tree, Ct = ut.stat_desc.has_stree, zt = ut.stat_desc.extra_bits, xt = ut.stat_desc.extra_base, _t = ut.stat_desc.max_length, vt = 0;
|
|
2237
2237
|
for (at = 0; at <= h; at++) tt.bl_count[at] = 0;
|
|
@@ -2246,55 +2246,55 @@ function Ut() {
|
|
|
2246
2246
|
}(o, k), ot(j, rt, o.bl_count);
|
|
2247
2247
|
}
|
|
2248
2248
|
function t(o, k, D) {
|
|
2249
|
-
var U, S, j = -1,
|
|
2250
|
-
for (
|
|
2249
|
+
var U, S, j = -1, K = k[1], G = 0, V = 7, rt = 4;
|
|
2250
|
+
for (K === 0 && (V = 138, rt = 3), k[2 * (D + 1) + 1] = 65535, U = 0; U <= D; U++) S = K, K = k[2 * (U + 1) + 1], ++G < V && S === K || (G < rt ? o.bl_tree[2 * S] += G : S !== 0 ? (S !== j && o.bl_tree[2 * S]++, o.bl_tree[2 * A]++) : G <= 10 ? o.bl_tree[2 * E]++ : o.bl_tree[2 * N]++, j = S, rt = (G = 0) === K ? (V = 138, 3) : S === K ? (V = 6, 3) : (V = 7, 4));
|
|
2251
2251
|
}
|
|
2252
2252
|
function z(o, k, D) {
|
|
2253
|
-
var U, S, j = -1,
|
|
2254
|
-
for (
|
|
2253
|
+
var U, S, j = -1, K = k[1], G = 0, V = 7, rt = 4;
|
|
2254
|
+
for (K === 0 && (V = 138, rt = 3), U = 0; U <= D; U++) if (S = K, K = k[2 * (U + 1) + 1], !(++G < V && S === K)) {
|
|
2255
2255
|
if (G < rt) for (; W(o, S, o.bl_tree), --G != 0; ) ;
|
|
2256
2256
|
else S !== 0 ? (S !== j && (W(o, S, o.bl_tree), G--), W(o, A, o.bl_tree), Z(o, G - 3, 2)) : G <= 10 ? (W(o, E, o.bl_tree), Z(o, G - 3, 3)) : (W(o, N, o.bl_tree), Z(o, G - 11, 7));
|
|
2257
|
-
j = S, rt = (G = 0) ===
|
|
2257
|
+
j = S, rt = (G = 0) === K ? (V = 138, 3) : S === K ? (V = 6, 3) : (V = 7, 4);
|
|
2258
2258
|
}
|
|
2259
2259
|
}
|
|
2260
2260
|
a(M);
|
|
2261
2261
|
var R = !1;
|
|
2262
2262
|
function d(o, k, D, U) {
|
|
2263
|
-
Z(o, (m << 1) + (U ? 1 : 0), 3), function(S, j,
|
|
2264
|
-
et(S), X(S,
|
|
2263
|
+
Z(o, (m << 1) + (U ? 1 : 0), 3), function(S, j, K, G) {
|
|
2264
|
+
et(S), X(S, K), X(S, ~K), u.arraySet(S.pending_buf, S.window, j, K, S.pending), S.pending += K;
|
|
2265
2265
|
}(o, k, D);
|
|
2266
2266
|
}
|
|
2267
2267
|
y._tr_init = function(o) {
|
|
2268
2268
|
R || (function() {
|
|
2269
|
-
var k, D, U, S, j,
|
|
2269
|
+
var k, D, U, S, j, K = new Array(h + 1);
|
|
2270
2270
|
for (S = U = 0; S < v - 1; S++) for (B[S] = U, k = 0; k < 1 << T[S]; k++) e[U++] = S;
|
|
2271
2271
|
for (e[U - 1] = S, S = j = 0; S < 16; S++) for (M[S] = j, k = 0; k < 1 << L[S]; k++) C[j++] = S;
|
|
2272
2272
|
for (j >>= 7; S < i; S++) for (M[S] = j << 7, k = 0; k < 1 << L[S] - 7; k++) C[256 + j++] = S;
|
|
2273
|
-
for (D = 0; D <= h; D++)
|
|
2274
|
-
for (k = 0; k <= 143; ) Y[2 * k + 1] = 8, k++,
|
|
2275
|
-
for (; k <= 255; ) Y[2 * k + 1] = 9, k++,
|
|
2276
|
-
for (; k <= 279; ) Y[2 * k + 1] = 7, k++,
|
|
2277
|
-
for (; k <= 287; ) Y[2 * k + 1] = 8, k++,
|
|
2278
|
-
for (ot(Y, _ + 1,
|
|
2273
|
+
for (D = 0; D <= h; D++) K[D] = 0;
|
|
2274
|
+
for (k = 0; k <= 143; ) Y[2 * k + 1] = 8, k++, K[8]++;
|
|
2275
|
+
for (; k <= 255; ) Y[2 * k + 1] = 9, k++, K[9]++;
|
|
2276
|
+
for (; k <= 279; ) Y[2 * k + 1] = 7, k++, K[7]++;
|
|
2277
|
+
for (; k <= 287; ) Y[2 * k + 1] = 8, k++, K[8]++;
|
|
2278
|
+
for (ot(Y, _ + 1, K), k = 0; k < i; k++) g[2 * k + 1] = 5, g[2 * k] = nt(k, 5);
|
|
2279
2279
|
q = new J(Y, T, f + 1, _, h), P = new J(g, L, 0, i, h), Q = new J(new Array(0), O, 0, c, p);
|
|
2280
2280
|
}(), R = !0), o.l_desc = new I(o.dyn_ltree, q), o.d_desc = new I(o.dyn_dtree, P), o.bl_desc = new I(o.bl_tree, Q), o.bi_buf = 0, o.bi_valid = 0, $(o);
|
|
2281
2281
|
}, y._tr_stored_block = d, y._tr_flush_block = function(o, k, D, U) {
|
|
2282
|
-
var S, j,
|
|
2282
|
+
var S, j, K = 0;
|
|
2283
2283
|
0 < o.level ? (o.strm.data_type === 2 && (o.strm.data_type = function(G) {
|
|
2284
|
-
var
|
|
2285
|
-
for (
|
|
2284
|
+
var V, rt = 4093624447;
|
|
2285
|
+
for (V = 0; V <= 31; V++, rt >>>= 1) if (1 & rt && G.dyn_ltree[2 * V] !== 0) return l;
|
|
2286
2286
|
if (G.dyn_ltree[18] !== 0 || G.dyn_ltree[20] !== 0 || G.dyn_ltree[26] !== 0) return n;
|
|
2287
|
-
for (
|
|
2287
|
+
for (V = 32; V < f; V++) if (G.dyn_ltree[2 * V] !== 0) return n;
|
|
2288
2288
|
return l;
|
|
2289
|
-
}(o)), lt(o, o.l_desc), lt(o, o.d_desc),
|
|
2290
|
-
var
|
|
2291
|
-
for (t(G, G.dyn_ltree, G.l_desc.max_code), t(G, G.dyn_dtree, G.d_desc.max_code), lt(G, G.bl_desc),
|
|
2292
|
-
return G.opt_len += 3 * (
|
|
2293
|
-
}(o), S = o.opt_len + 3 + 7 >>> 3, (j = o.static_len + 3 + 7 >>> 3) <= S && (S = j)) : S = j = D + 5, D + 4 <= S && k !== -1 ? d(o, k, D, U) : o.strategy === 4 || j === S ? (Z(o, 2 + (U ? 1 : 0), 3), ht(o, Y, g)) : (Z(o, 4 + (U ? 1 : 0), 3), function(G,
|
|
2289
|
+
}(o)), lt(o, o.l_desc), lt(o, o.d_desc), K = function(G) {
|
|
2290
|
+
var V;
|
|
2291
|
+
for (t(G, G.dyn_ltree, G.l_desc.max_code), t(G, G.dyn_dtree, G.d_desc.max_code), lt(G, G.bl_desc), V = c - 1; 3 <= V && G.bl_tree[2 * H[V] + 1] === 0; V--) ;
|
|
2292
|
+
return G.opt_len += 3 * (V + 1) + 5 + 5 + 4, V;
|
|
2293
|
+
}(o), S = o.opt_len + 3 + 7 >>> 3, (j = o.static_len + 3 + 7 >>> 3) <= S && (S = j)) : S = j = D + 5, D + 4 <= S && k !== -1 ? d(o, k, D, U) : o.strategy === 4 || j === S ? (Z(o, 2 + (U ? 1 : 0), 3), ht(o, Y, g)) : (Z(o, 4 + (U ? 1 : 0), 3), function(G, V, rt, tt) {
|
|
2294
2294
|
var ut;
|
|
2295
|
-
for (Z(G,
|
|
2296
|
-
z(G, G.dyn_ltree,
|
|
2297
|
-
}(o, o.l_desc.max_code + 1, o.d_desc.max_code + 1,
|
|
2295
|
+
for (Z(G, V - 257, 5), Z(G, rt - 1, 5), Z(G, tt - 4, 4), ut = 0; ut < tt; ut++) Z(G, G.bl_tree[2 * H[ut] + 1], 3);
|
|
2296
|
+
z(G, G.dyn_ltree, V - 1), z(G, G.dyn_dtree, rt - 1);
|
|
2297
|
+
}(o, o.l_desc.max_code + 1, o.d_desc.max_code + 1, K + 1), ht(o, o.dyn_ltree, o.dyn_dtree)), $(o), U && et(o);
|
|
2298
2298
|
}, y._tr_tally = function(o, k, D) {
|
|
2299
2299
|
return o.pending_buf[o.d_buf + 2 * o.last_lit] = k >>> 8 & 255, o.pending_buf[o.d_buf + 2 * o.last_lit + 1] = 255 & k, o.pending_buf[o.l_buf + o.last_lit] = 255 & D, o.last_lit++, k === 0 ? o.dyn_ltree[2 * D]++ : (o.matches++, k--, o.dyn_ltree[2 * (e[D] + f + 1)]++, o.dyn_dtree[2 * x(k)]++), o.last_lit === o.lit_bufsize - 1;
|
|
2300
2300
|
}, y._tr_align = function(o) {
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { computed as m } from "vue";
|
|
2
|
+
import { F, g as h, h as S, b as v, k as N, i as C, Q as T, u as P, c as z } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
|
|
3
|
+
import { u as R } from "./menuV2-fTlJdjxi.js";
|
|
4
|
+
import { C as w, h as E } from "./catalog-DKygS2Cs.js";
|
|
5
|
+
import { useSnackbar as O, useDialog as A } from "@feedmepos/ui-library";
|
|
6
|
+
import { a as b } from "./LinkProductSideSheet-DMbJG6wf.js";
|
|
7
|
+
function D() {
|
|
8
|
+
const e = R(), p = m(() => e.categorizedRawMenuItems.filter((o) => o.items.length > 0)), l = m(() => {
|
|
9
|
+
const o = e.currentCatalog;
|
|
10
|
+
return o ? w.getItemAvailable(o).map((a) => ({ _id: a })) : [];
|
|
11
|
+
});
|
|
12
|
+
async function i(o) {
|
|
13
|
+
const a = e.currentCatalog;
|
|
14
|
+
if (!a) return;
|
|
15
|
+
const n = new Set(o), r = e.state.menu.modules.item.map((c) => c._id).reduce(
|
|
16
|
+
(c, u) => {
|
|
17
|
+
const g = a.override.items[u];
|
|
18
|
+
return c[u] = E(
|
|
19
|
+
u,
|
|
20
|
+
g,
|
|
21
|
+
n.has(u),
|
|
22
|
+
e.version === F.enum.v3
|
|
23
|
+
), c;
|
|
24
|
+
},
|
|
25
|
+
{}
|
|
26
|
+
), s = {
|
|
27
|
+
...a,
|
|
28
|
+
override: {
|
|
29
|
+
...a.override,
|
|
30
|
+
items: r
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* linkItemRules and items under override are two ways to manage linked items under catalog,
|
|
34
|
+
* if we changed items under override, we should clear linkItemRules to avoid conflict.
|
|
35
|
+
*/
|
|
36
|
+
linkItemRules: null
|
|
37
|
+
};
|
|
38
|
+
await e.updateMenu({
|
|
39
|
+
module: S.enum.catalog,
|
|
40
|
+
operation: h.F_OPERATION_TYPE.update,
|
|
41
|
+
data: s
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
async function I(o) {
|
|
45
|
+
await y(o, !0);
|
|
46
|
+
}
|
|
47
|
+
async function f(o) {
|
|
48
|
+
await y(o, !1);
|
|
49
|
+
}
|
|
50
|
+
async function d(o) {
|
|
51
|
+
const a = e.currentCatalog;
|
|
52
|
+
if (!a) return;
|
|
53
|
+
const n = {
|
|
54
|
+
...a,
|
|
55
|
+
linkItemRules: o
|
|
56
|
+
};
|
|
57
|
+
await e.updateMenu({
|
|
58
|
+
module: S.enum.catalog,
|
|
59
|
+
operation: h.F_OPERATION_TYPE.update,
|
|
60
|
+
data: n
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
linkableItems: p,
|
|
65
|
+
currentItems: l,
|
|
66
|
+
applyProduct: i,
|
|
67
|
+
addProduct: I,
|
|
68
|
+
removeProduct: f,
|
|
69
|
+
saveLinkItemRules: d
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
async function y(e, p) {
|
|
73
|
+
var o;
|
|
74
|
+
const l = R(), i = l.currentCatalog;
|
|
75
|
+
if (!i || e.length === 0) return;
|
|
76
|
+
const I = l.version === F.enum.v3, f = e.reduce(
|
|
77
|
+
(a, n) => {
|
|
78
|
+
const t = i.override.items[n];
|
|
79
|
+
return a[n] = E(n, t, p, I), a;
|
|
80
|
+
},
|
|
81
|
+
{}
|
|
82
|
+
), d = {
|
|
83
|
+
...i,
|
|
84
|
+
override: {
|
|
85
|
+
...i.override,
|
|
86
|
+
items: {
|
|
87
|
+
...((o = i.override) == null ? void 0 : o.items) || {},
|
|
88
|
+
...f
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
await l.updateMenu({
|
|
93
|
+
module: S.enum.catalog,
|
|
94
|
+
operation: h.F_OPERATION_TYPE.update,
|
|
95
|
+
data: d
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function U() {
|
|
99
|
+
const e = R(), p = O(), l = A(), i = v(p), I = C(i), f = m(() => {
|
|
100
|
+
const a = e.categorizedRawMenuItems, n = new Set(
|
|
101
|
+
e.currentCatalog ? w.getItemAvailable(e.currentCatalog) : e.state.menu.modules.item.map((t) => t._id)
|
|
102
|
+
);
|
|
103
|
+
return a.map((t) => ({
|
|
104
|
+
...t,
|
|
105
|
+
items: t.items.filter((r) => n.has(r._id))
|
|
106
|
+
})).filter((t) => t.items.length > 0);
|
|
107
|
+
}), d = m(() => {
|
|
108
|
+
var r;
|
|
109
|
+
const a = e.currentScheduler;
|
|
110
|
+
if (!a) return [];
|
|
111
|
+
const n = e.currentCatalog, t = n ? ((r = n.override.scheduler[a._id]) == null ? void 0 : r.items) ?? [] : a.items;
|
|
112
|
+
return [
|
|
113
|
+
...new Set(t.filter((s) => s.orderFrom != N.enum.NONE).map((s) => s._id))
|
|
114
|
+
].map((s) => ({ _id: s }));
|
|
115
|
+
});
|
|
116
|
+
async function o(a) {
|
|
117
|
+
const n = e.currentScheduler;
|
|
118
|
+
if (!n) return;
|
|
119
|
+
const t = e.currentCatalog;
|
|
120
|
+
if (t && e.rules.scheduler.override) {
|
|
121
|
+
const r = new w(
|
|
122
|
+
t,
|
|
123
|
+
e,
|
|
124
|
+
I.updateMenu,
|
|
125
|
+
l
|
|
126
|
+
);
|
|
127
|
+
r.overrideCatalogSchedulerItems(a, n._id), await e.updateMenu({
|
|
128
|
+
module: S.enum.catalog,
|
|
129
|
+
operation: h.F_OPERATION_TYPE.update,
|
|
130
|
+
data: r.getCatalog()
|
|
131
|
+
});
|
|
132
|
+
} else {
|
|
133
|
+
const r = a.reduce(
|
|
134
|
+
(c, u) => {
|
|
135
|
+
const g = n.items.filter((_) => _._id == u) ?? [];
|
|
136
|
+
return c = c.concat(
|
|
137
|
+
T(u, g, (_) => ({
|
|
138
|
+
..._,
|
|
139
|
+
orderFrom: null
|
|
140
|
+
}))
|
|
141
|
+
), c;
|
|
142
|
+
},
|
|
143
|
+
[]
|
|
144
|
+
), s = {
|
|
145
|
+
...n,
|
|
146
|
+
items: r
|
|
147
|
+
};
|
|
148
|
+
await e.updateMenu({
|
|
149
|
+
module: S.enum.scheduler,
|
|
150
|
+
operation: h.F_OPERATION_TYPE.update,
|
|
151
|
+
data: s
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
linkableItems: f,
|
|
157
|
+
currentItems: d,
|
|
158
|
+
applyProduct: o
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
const V = () => {
|
|
162
|
+
const e = P(), p = O(), l = v(p), i = C(l), I = m(() => e.categorizedRawMenuItems.filter((a) => a.items.length > 0)), f = m(() => {
|
|
163
|
+
const a = e.currentCatalog;
|
|
164
|
+
return a ? w.getItemAvailable(a).map((n) => ({ _id: n })) : [];
|
|
165
|
+
});
|
|
166
|
+
async function d(a) {
|
|
167
|
+
const n = e.currentCatalog;
|
|
168
|
+
if (!n) return;
|
|
169
|
+
const t = new Set(a), s = e.state.menu.modules.item.map((u) => u._id).reduce(
|
|
170
|
+
(u, g) => {
|
|
171
|
+
const _ = n.override.items[g];
|
|
172
|
+
return u[g] = E(
|
|
173
|
+
g,
|
|
174
|
+
_,
|
|
175
|
+
t.has(g),
|
|
176
|
+
e.version === z.F_MENU_VERSION.v3
|
|
177
|
+
), u;
|
|
178
|
+
},
|
|
179
|
+
{}
|
|
180
|
+
), c = {
|
|
181
|
+
...n,
|
|
182
|
+
override: { ...n.override, items: s },
|
|
183
|
+
/**
|
|
184
|
+
* linkItemRules and items under override are two ways to manage linked items under catalog,
|
|
185
|
+
* if we changed items under override, we should clear linkItemRules to avoid conflict.
|
|
186
|
+
*/
|
|
187
|
+
linkItemRules: null
|
|
188
|
+
};
|
|
189
|
+
await i.updateMenu(
|
|
190
|
+
{
|
|
191
|
+
module: S.enum.catalog,
|
|
192
|
+
operation: h.F_OPERATION_TYPE.update,
|
|
193
|
+
data: c
|
|
194
|
+
},
|
|
195
|
+
c.name
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
async function o(a) {
|
|
199
|
+
const n = e.currentCatalog;
|
|
200
|
+
if (!n) return;
|
|
201
|
+
const t = {
|
|
202
|
+
...n,
|
|
203
|
+
linkItemRules: a
|
|
204
|
+
};
|
|
205
|
+
await i.updateMenu(
|
|
206
|
+
{
|
|
207
|
+
module: S.enum.catalog,
|
|
208
|
+
operation: h.F_OPERATION_TYPE.update,
|
|
209
|
+
data: t
|
|
210
|
+
},
|
|
211
|
+
t.name
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
return {
|
|
215
|
+
linkableItems: I,
|
|
216
|
+
currentItems: f,
|
|
217
|
+
applyProduct: d,
|
|
218
|
+
saveLinkItemRules: o
|
|
219
|
+
};
|
|
220
|
+
}, x = () => {
|
|
221
|
+
const e = P(), p = O(), l = A(), i = v(p), I = C(i), f = m(() => {
|
|
222
|
+
const a = e.categorizedRawMenuItems, n = new Set(
|
|
223
|
+
e.currentCatalog ? w.getItemAvailable(e.currentCatalog) : e.state.menu.modules.item.map((t) => t._id)
|
|
224
|
+
);
|
|
225
|
+
return a.map((t) => ({
|
|
226
|
+
...t,
|
|
227
|
+
items: t.items.filter((r) => n.has(r._id))
|
|
228
|
+
})).filter((t) => t.items.length > 0);
|
|
229
|
+
}), d = m(() => {
|
|
230
|
+
var r;
|
|
231
|
+
const a = e.currentScheduler;
|
|
232
|
+
if (!a) return [];
|
|
233
|
+
const n = e.currentCatalog, t = n ? ((r = n.override.scheduler[a._id]) == null ? void 0 : r.items) ?? [] : a.items;
|
|
234
|
+
return [
|
|
235
|
+
...new Set(t.filter((s) => s.orderFrom != N.enum.NONE).map((s) => s._id))
|
|
236
|
+
].map((s) => ({ _id: s }));
|
|
237
|
+
});
|
|
238
|
+
async function o(a) {
|
|
239
|
+
const n = e.currentScheduler;
|
|
240
|
+
if (!n) return;
|
|
241
|
+
const t = e.currentCatalog;
|
|
242
|
+
if (t && e.rules.scheduler.override) {
|
|
243
|
+
const r = new w(t, e, I.updateMenu, l);
|
|
244
|
+
r.overrideCatalogSchedulerItems(a, n._id), await r.update();
|
|
245
|
+
} else {
|
|
246
|
+
const r = a.reduce(
|
|
247
|
+
(c, u) => {
|
|
248
|
+
const g = n.items.filter((_) => _._id == u) ?? [];
|
|
249
|
+
return c = c.concat(
|
|
250
|
+
T(u, g, (_) => ({
|
|
251
|
+
..._,
|
|
252
|
+
orderFrom: null
|
|
253
|
+
}))
|
|
254
|
+
), c;
|
|
255
|
+
},
|
|
256
|
+
[]
|
|
257
|
+
), s = {
|
|
258
|
+
...n,
|
|
259
|
+
items: r
|
|
260
|
+
};
|
|
261
|
+
await I.updateMenu(
|
|
262
|
+
{
|
|
263
|
+
module: S.enum.scheduler,
|
|
264
|
+
operation: h.F_OPERATION_TYPE.update,
|
|
265
|
+
data: s
|
|
266
|
+
},
|
|
267
|
+
s.name
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return {
|
|
272
|
+
linkableItems: f,
|
|
273
|
+
currentItems: d,
|
|
274
|
+
applyProduct: o
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
function G(e) {
|
|
278
|
+
const p = {
|
|
279
|
+
// Under FdoMenuV4Category _id is string, but here we need null for Addon, so we bypass the type checking
|
|
280
|
+
// @ts-ignore
|
|
281
|
+
_id: null,
|
|
282
|
+
name: "Addon",
|
|
283
|
+
position: 0
|
|
284
|
+
};
|
|
285
|
+
if (!e) {
|
|
286
|
+
const t = P(), r = m(() => t.state.menu.modules.item ?? []), s = m(() => {
|
|
287
|
+
var M;
|
|
288
|
+
return ((M = t.currentCatalog) == null ? void 0 : M.linkItemRules) ?? null;
|
|
289
|
+
}), c = x(), u = V(), g = m(() => !t.state.currentSchedulerId), _ = (M) => {
|
|
290
|
+
if (M.mode === b.Rules)
|
|
291
|
+
u.saveLinkItemRules(M.linkItemRules);
|
|
292
|
+
else {
|
|
293
|
+
const k = M.items.map((Y) => Y._id);
|
|
294
|
+
g.value ? u.applyProduct(k) : c.applyProduct(k);
|
|
295
|
+
}
|
|
296
|
+
}, L = m(() => [p, ...t.state.menu.modules.category ?? []]);
|
|
297
|
+
return {
|
|
298
|
+
menuItems: r,
|
|
299
|
+
categories: L,
|
|
300
|
+
linkItemRules: s,
|
|
301
|
+
catalogManager: u,
|
|
302
|
+
schedulerManager: c,
|
|
303
|
+
noScheduler: g,
|
|
304
|
+
handleSubmit: _
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
const l = R(), i = m(() => l.state.menu.modules.item ?? []), I = m(() => {
|
|
308
|
+
var t;
|
|
309
|
+
return ((t = l.currentCatalog) == null ? void 0 : t.linkItemRules) ?? null;
|
|
310
|
+
}), f = U(), d = D(), o = m(() => !l.state.currentSchedulerId), a = (t) => {
|
|
311
|
+
if (t.mode === b.Rules)
|
|
312
|
+
d.saveLinkItemRules(t.linkItemRules);
|
|
313
|
+
else {
|
|
314
|
+
const r = t.items.map((s) => s._id);
|
|
315
|
+
o.value ? d.applyProduct(r) : f.applyProduct(r);
|
|
316
|
+
}
|
|
317
|
+
}, n = m(() => [p, ...l.state.menu.modules.category ?? []]);
|
|
318
|
+
return {
|
|
319
|
+
menuItems: i,
|
|
320
|
+
categories: n,
|
|
321
|
+
linkItemRules: I,
|
|
322
|
+
catalogManager: d,
|
|
323
|
+
schedulerManager: f,
|
|
324
|
+
noScheduler: o,
|
|
325
|
+
handleSubmit: a
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
export {
|
|
329
|
+
D as a,
|
|
330
|
+
G as u
|
|
331
|
+
};
|
|
@@ -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,
|
|
2
|
+
import { u as h, b as w } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.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-Nl505vPi.js";
|
|
3
3
|
import "@feedmepos/mf-common";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
5
|
function p() {
|