@feedmepos/mf-menu-portal 0.0.0-stage → 1.0.1-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/README.md +30 -2
- package/dist/AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js +20 -0
- package/dist/App-C6k--u1c.js +8316 -0
- package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js +98 -0
- package/dist/BindingLinkDialog.vue_vue_type_script_setup_true_lang-BZVQRyRI.js +180 -0
- package/dist/BindingTable.vue_vue_type_script_setup_true_lang-DBzjWI_6.js +179 -0
- package/dist/Catalog-DEYN4dMN.js +374 -0
- package/dist/CatalogBinding-NnPKdPvx.js +315 -0
- package/dist/CatalogEditTabs.vue_vue_type_script_setup_true_lang-OshqaPTE.js +97 -0
- package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-poznuDXu.js +447 -0
- package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-BSMAIkQ2.js +117 -0
- package/dist/Category-BdUP0o34.js +13 -0
- package/dist/Category-CkQiwP9e.js +52 -0
- package/dist/CategoryList.vue_vue_type_script_setup_true_lang-UgNVpYgp.js +797 -0
- package/dist/CookingGuide-CtDkm74r.js +842 -0
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js +26 -0
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js +1774 -0
- package/dist/Group-D2HngOjr.js +52 -0
- package/dist/Group-DSj7_16V.js +13 -0
- package/dist/GroupList.vue_vue_type_script_setup_true_lang-BmmsSKTt.js +2183 -0
- package/dist/Ingredient-BHqz7kjQ.js +463 -0
- package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-D9jK-Fhn.js +709 -0
- package/dist/ListCountTag.vue_vue_type_script_setup_true_lang-0bjk8Aly.js +15 -0
- package/dist/MenuSetting-DF-cJH7N.js +1228 -0
- package/dist/OrderPacing-CejS9dEI.js +698 -0
- package/dist/OrderPacingFields.vue_vue_type_script_setup_true_lang-C2mixGUk.js +55 -0
- package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +41 -0
- package/dist/Preview-1C7jGJuY.js +327 -0
- package/dist/PriceTierNotice.vue_vue_type_script_setup_true_lang-CxKHCptJ.js +26 -0
- package/dist/PrintRoute-BNnMcgTf.js +473 -0
- package/dist/Product-BoUKxogB.js +44 -0
- package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D8DygCBl.js +110 -0
- package/dist/ProductEditorHost.vue_vue_type_script_setup_true_lang-Bm8_FTvr.js +83 -0
- package/dist/ProductFilterMenu.vue_vue_type_script_setup_true_lang-Cgc0Ms_n.js +101 -0
- package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-Cx_mW05R.js +1246 -0
- package/dist/ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CUeYaXYg.js +1955 -0
- package/dist/ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-CeYyZX7g.js +5401 -0
- package/dist/ProductInternalTools-b3sy8bWy.js +2147 -0
- package/dist/ProductInventoryDialog-DO0D8e3Z.js +4 -0
- package/dist/ProductInventoryDialog.vue_vue_type_script_setup_true_lang-y9Mz__o9.js +187 -0
- package/dist/ProductList.vue_vue_type_script_setup_true_lang-n_UYIwwt.js +10353 -0
- package/dist/ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-ClG3Prfm.js +218 -0
- package/dist/Products-7vlFJB0P.js +155 -0
- package/dist/Publish-DTP-CgV-.js +1261 -0
- package/dist/Recipe-C1W8_15H.js +350 -0
- package/dist/Scheduler-JRjozwP_.js +637 -0
- package/dist/ServingSequence-BGT5m7JB.js +336 -0
- package/dist/Setting-CS_M1gMN.js +173 -0
- package/dist/Subcategory-Cgy9CQCz.js +412 -0
- package/dist/Takeaway-Bpo9XA-j.js +48 -0
- package/dist/Takeaway-DO2dmFGP.js +13 -0
- package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-C7KexF7H.js +554 -0
- package/dist/TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js +161 -0
- package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js +158 -0
- package/dist/TranslationViewChip.vue_vue_type_script_setup_true_lang-CAkLEmSA.js +69 -0
- package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BHxmPO7F.js +1213 -0
- package/dist/Unit-Bn5UzMp1.js +385 -0
- package/dist/Variant-DmeGEEkw.js +538 -0
- package/dist/_id_-DC1dJIaj.js +28 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/app-Bd7W2PYm.js +2008 -0
- package/dist/app.js +8 -0
- package/dist/apps/mf-menu/src/App.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/Entry.vue.d.ts +4 -0
- package/dist/apps/mf-menu/src/app.d.ts +16771 -0
- package/dist/apps/mf-menu/src/assets/icons/index.d.ts +4 -0
- package/dist/apps/mf-menu/src/components/CatalogBindingList.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/CatalogList.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/CategoryImageField.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/CategoryList.vue.d.ts +28 -0
- package/dist/apps/mf-menu/src/components/Fields/RangeSlider.vue.d.ts +23 -0
- package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +28 -0
- package/dist/apps/mf-menu/src/components/GroupTranslationSideSheet.vue.d.ts +14 -0
- package/dist/apps/mf-menu/src/components/IngredientList.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/MenuHeaderContext.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/MenuRestaurantSelector.vue.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/MenuSetting/AddMemberTierDialog.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/MenuSetting/AddPriceGroupDialog.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/MenuSetting/ConfigurationTab.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/MenuSetting/MemberPricingTab.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/MenuSetting/PriceGroupTab.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/MenuSetting/RuleGroupsTab.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/Navigator.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/OrderPacingList.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/PriceTier/PriceTierNotice.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/PrintRouteList.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/Product/LocalizedCurrencySymbol.vue.d.ts +5 -0
- package/dist/apps/mf-menu/src/components/Product/ProductAttributeFilter.vue.d.ts +13 -0
- package/dist/apps/mf-menu/src/components/Product/ProductCategorySelector.vue.d.ts +11 -0
- package/dist/apps/mf-menu/src/components/Product/ProductChipSummary.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/Product/ProductChoicePicker.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/Product/ProductEditorHost.vue.d.ts +26 -0
- package/dist/apps/mf-menu/src/components/Product/ProductFilterMenu.vue.d.ts +26 -0
- package/dist/apps/mf-menu/src/components/Product/ProductForm.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/Product/ProductFormSection.vue.d.ts +41 -0
- package/dist/apps/mf-menu/src/components/Product/ProductGroupCreateSheet.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/components/Product/ProductGroupSheet.vue.d.ts +56 -0
- package/dist/apps/mf-menu/src/components/Product/ProductInlineCategoryCreateField.vue.d.ts +10 -0
- package/dist/apps/mf-menu/src/components/Product/ProductInlineCreateHost.vue.d.ts +38 -0
- package/dist/apps/mf-menu/src/components/Product/ProductInlineSubcategoryCreateField.vue.d.ts +10 -0
- package/dist/apps/mf-menu/src/components/Product/ProductInventoryDialog.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/Product/ProductLocaleBadge.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/Product/ProductMemberPriceTooltip.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/Product/ProductMoneyField.vue.d.ts +25 -0
- package/dist/apps/mf-menu/src/components/Product/ProductOverviewSheet.vue.d.ts +11 -0
- package/dist/apps/mf-menu/src/components/Product/ProductPacingSheet.vue.d.ts +13 -0
- package/dist/apps/mf-menu/src/components/Product/ProductPriceTierButton.vue.d.ts +11 -0
- package/dist/apps/mf-menu/src/components/Product/ProductPricingSheet.vue.d.ts +26 -0
- package/dist/apps/mf-menu/src/components/Product/ProductPrintRouteSheet.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/Product/ProductQuantityField.vue.d.ts +16 -0
- package/dist/apps/mf-menu/src/components/Product/ProductSummaryCard.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/Product/ProductTakeawaySheet.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/Product/ProductTranslationDialog.vue.d.ts +16 -0
- package/dist/apps/mf-menu/src/components/Product/ProductVariantCreateSheet.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/Product/ProductVariantTranslationSheet.vue.d.ts +13 -0
- package/dist/apps/mf-menu/src/components/Product/inlineCreate.d.ts +23 -0
- package/dist/apps/mf-menu/src/components/Product/labels.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageBadge.vue.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageDownloadDialog.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageFormatChips.vue.d.ts +13 -0
- package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageLegacyChip.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageProgressDialog.vue.d.ts +11 -0
- package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageResult.vue.d.ts +14 -0
- package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageReview.vue.d.ts +21 -0
- package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageThumb.vue.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageUpdateFlow.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageUpdateSheet.vue.d.ts +34 -0
- package/dist/apps/mf-menu/src/components/ProductBatchImage/batchImageFiles.d.ts +53 -0
- package/dist/apps/mf-menu/src/components/ProductImage/ProductImageCustomFormatDialog.vue.d.ts +40 -0
- package/dist/apps/mf-menu/src/components/ProductImage/ProductImageEditorDialog.vue.d.ts +82 -0
- package/dist/apps/mf-menu/src/components/ProductImage/ProductImageField.vue.d.ts +42 -0
- package/dist/apps/mf-menu/src/components/ProductImage/ProductImageManageSheet.vue.d.ts +47 -0
- package/dist/apps/mf-menu/src/components/ProductImage/ProductImageRegenerateDialog.vue.d.ts +44 -0
- package/dist/apps/mf-menu/src/components/ProductImage/imageBrowser.d.ts +18 -0
- package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +18 -0
- package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +14 -0
- package/dist/apps/mf-menu/src/components/RecipeList.vue.d.ts +11 -0
- package/dist/apps/mf-menu/src/components/SchedulerList.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/ServingSequenceList.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/SubcategoryList.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/TakeawayList.vue.d.ts +26 -0
- package/dist/apps/mf-menu/src/components/TranslationSideSheet.vue.d.ts +36 -0
- package/dist/apps/mf-menu/src/components/UnitList.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/V3ToV4MigrationBanner.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/V3ToV4MigrationConfirmDialog.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/VariantList.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/catalog/CatalogEditor.vue.d.ts +14 -0
- package/dist/apps/mf-menu/src/components/catalog/CatalogLinkProductAction.vue.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/catalog/CatalogUsage.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/catalog/tableSemantics.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +33 -0
- package/dist/apps/mf-menu/src/components/feature/CookingGuide/RemoveCookingGuideConfirmation.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/Icon.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/index.d.ts +1 -0
- package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/index.vue.d.ts +18 -0
- package/dist/apps/mf-menu/src/components/feature/InventoryBinding/BindingLinkDialog.vue.d.ts +49 -0
- package/dist/apps/mf-menu/src/components/feature/InventoryBinding/BindingTable.vue.d.ts +38 -0
- package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +65 -0
- package/dist/apps/mf-menu/src/components/feature/OrderPacing/DeleteOrderPacingConfirmation.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/OrderPacing/OrderPacingFields.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/feature/PrintRoute/RemoveRouteConfirmation.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/TreeEditorOpenner.vue.d.ts +18 -0
- package/dist/apps/mf-menu/src/components/feature/TreeEditor/openner.d.ts +7 -0
- package/dist/apps/mf-menu/src/components/info/TextChip.vue.d.ts +13 -0
- package/dist/apps/mf-menu/src/components/layout/FlatInlineSort.vue.d.ts +25 -0
- package/dist/apps/mf-menu/src/components/layout/FormColumn.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/layout/FormItem.vue.d.ts +17 -0
- package/dist/apps/mf-menu/src/components/layout/FormRow.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/layout/FormSection.vue.d.ts +18 -0
- package/dist/apps/mf-menu/src/components/layout/FullScreenForm.vue.d.ts +31 -0
- package/dist/apps/mf-menu/src/components/layout/FullWrapper.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/layout/LabeledTextField.vue.d.ts +16 -0
- package/dist/apps/mf-menu/src/components/layout/ListCountTag.vue.d.ts +5 -0
- package/dist/apps/mf-menu/src/components/layout/LottieAnimation.vue.d.ts +39 -0
- package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +19 -0
- package/dist/apps/mf-menu/src/components/layout/ProgressBar.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/components/loading/AppLoading.vue.d.ts +20 -0
- package/dist/apps/mf-menu/src/components/loading/PageLoading.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/components/loading/index.d.ts +1 -0
- package/dist/apps/mf-menu/src/components/placeholder/PlaceholderView.vue.d.ts +5 -0
- package/dist/apps/mf-menu/src/components/preview/MenuPreview.vue.d.ts +13 -0
- package/dist/apps/mf-menu/src/components/preview/simulatorPort.d.ts +23 -0
- package/dist/apps/mf-menu/src/components/publish/PublishRevertPreview.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/publish/PublishScheduleDetails.vue.d.ts +6 -0
- package/dist/apps/mf-menu/src/components/publish/publishStatus.d.ts +15 -0
- package/dist/apps/mf-menu/src/components/translation/TranslationLanguageSelector.vue.d.ts +21 -0
- package/dist/apps/mf-menu/src/components/translation/TranslationViewChip.vue.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/translation/localeName.d.ts +11 -0
- package/dist/apps/mf-menu/src/components/translation/localeSymbol.d.ts +15 -0
- package/dist/apps/mf-menu/src/composable/elementPosition.d.ts +17 -0
- package/dist/apps/mf-menu/src/composable/menuNotifier.d.ts +14 -0
- package/dist/apps/mf-menu/src/composable/navigator.d.ts +16 -0
- package/dist/apps/mf-menu/src/composable/useActionFeedback.d.ts +81 -0
- package/dist/apps/mf-menu/src/composable/useEditorValidation.d.ts +21 -0
- package/dist/apps/mf-menu/src/init.d.ts +1 -0
- package/dist/apps/mf-menu/src/main.d.ts +2 -0
- package/dist/apps/mf-menu/src/plugins.d.ts +4 -0
- package/dist/apps/mf-menu/src/router/index.d.ts +2 -0
- package/dist/apps/mf-menu/src/router/shared.d.ts +65 -0
- package/dist/apps/mf-menu/src/sdk/host.d.ts +9 -0
- package/dist/apps/mf-menu/src/sdk/import-export.d.ts +9 -0
- package/dist/apps/mf-menu/src/sdk/provide.d.ts +33 -0
- package/dist/apps/mf-menu/src/sdk/useReadModel.d.ts +16 -0
- package/dist/apps/mf-menu/src/sdk/useSdkMessage.d.ts +11 -0
- package/dist/apps/mf-menu/src/stores/app.d.ts +17 -0
- package/dist/apps/mf-menu/src/utils/ruleValueKey.d.ts +12 -0
- package/dist/apps/mf-menu/src/utils/worker-loader.d.ts +12 -0
- package/dist/apps/mf-menu/src/utils/worker.d.ts +4 -0
- package/dist/apps/mf-menu/src/views/Catalog/Catalog.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/CatalogEditTabs.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/Category.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/Group.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/MainSetting.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/NamedSetting.vue.d.ts +5 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/Product.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/Setting.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/Takeaway.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Catalog/Edit/[id].vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/CatalogBinding/CatalogBinding.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Category/Category.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuide.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Group/Group.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/ImportExport/ImportDiffPreview.vue.d.ts +25 -0
- package/dist/apps/mf-menu/src/views/ImportExport/ImportExport.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/views/ImportExport/ImportV3DiffPreview.vue.d.ts +26 -0
- package/dist/apps/mf-menu/src/views/ImportExport/PreviewImportTable.vue.d.ts +30 -0
- package/dist/apps/mf-menu/src/views/Ingredient/Ingredient.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/CategoryRenameDialog.vue.d.ts +26 -0
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/DetailPane.vue.d.ts +23 -0
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/EditorHistoryControls.vue.d.ts +22 -0
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/MenuManagementEditor.vue.d.ts +10 -0
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/RestaurantAttributesFilter.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/ScopeSwitcher.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/TreeFilter.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/TreePanel.vue.d.ts +9 -0
- package/dist/apps/mf-menu/src/views/MenuManagementEditor/TreeRow.vue.d.ts +25 -0
- package/dist/apps/mf-menu/src/views/MenuSetting/MenuSetting.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/OrderPacing/OrderPacing.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Preview/Preview.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/PrintRoute/PrintRoute.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Product/Products.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Publish/Publish.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Recipe/Recipe.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Scheduler/Scheduler.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/ServingSequence/ServingSequence.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Subcategory/Subcategory.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Takeaway/Takeaway.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Unit/Unit.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/views/Variant/Variant.vue.d.ts +2 -0
- package/dist/apps/mf-menu/src/workers/menu-compute.d.ts +1 -0
- package/dist/apps/mf-menu/src/workers/validate-menu.d.ts +1 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -0
- package/dist/assets/menu-compute-okel5FLc.js +260 -0
- package/dist/assets/validate-menu-DEFGpnQh.js +130 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-CGPDazqs.js +57 -0
- package/dist/mf-menu-portal.css +1 -0
- package/dist/provide-Tmjfji09.js +190840 -0
- package/dist/ruleValueKey-BF52PuHb.js +10 -0
- package/dist/tableSemantics-C9WFO_I_.js +22 -0
- package/dist/useActionFeedback-DoFeBFpl.js +95 -0
- package/dist/useEditorValidation-Ctef5Bxt.js +63 -0
- package/package.json +79 -3
|
@@ -0,0 +1,1228 @@
|
|
|
1
|
+
import { defineComponent as E, onUnmounted as we, computed as V, resolveComponent as C, openBlock as i, createElementBlock as h, createVNode as u, unref as t, withCtx as v, createElementVNode as o, Fragment as O, renderList as W, createBlock as S, createCommentVNode as U, ref as P, watch as Qe, h as N, withModifiers as M, toDisplayString as w, shallowRef as ke, mergeProps as Xe, withDirectives as Ye } from "vue";
|
|
2
|
+
import { useI18n as q } from "@feedmepos/mf-common";
|
|
3
|
+
import { _ as Ze } from "./FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js";
|
|
4
|
+
import { _ as ae, d as et } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
5
|
+
import { u as ne } from "./useActionFeedback-DoFeBFpl.js";
|
|
6
|
+
import { b as Ce, u as H, r as re, a as tt } from "./provide-Tmjfji09.js";
|
|
7
|
+
import { useDialogChild as lt, useDialog as ce, components as oe, useBreakpoints as at } from "@feedmepos/ui-library";
|
|
8
|
+
import { _ as Fe } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
9
|
+
import { _ as Se } from "./app-Bd7W2PYm.js";
|
|
10
|
+
import { _ as $e } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
11
|
+
import { _ as ot } from "./AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js";
|
|
12
|
+
import { u as he } from "./useEditorValidation-Ctef5Bxt.js";
|
|
13
|
+
import { r as nt, a as xe } from "./ruleValueKey-BF52PuHb.js";
|
|
14
|
+
const st = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "space-y-32 max-w-[750px] xs:p-16"
|
|
17
|
+
}, ut = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "pl-32 space-x-8"
|
|
20
|
+
}, it = { class: "space-y-16" }, rt = /* @__PURE__ */ E({
|
|
21
|
+
__name: "ConfigurationTab",
|
|
22
|
+
props: {
|
|
23
|
+
sdk: {}
|
|
24
|
+
},
|
|
25
|
+
setup(L) {
|
|
26
|
+
const p = L, { t: e } = q(), f = Ce(), { run: F } = ne(), g = p.sdk.menuSetting.configuration();
|
|
27
|
+
we(() => g.dispose());
|
|
28
|
+
const d = H(g), m = V(
|
|
29
|
+
() => d.value.status === "ready" ? d.value.value : null
|
|
30
|
+
), A = V(() => {
|
|
31
|
+
var $;
|
|
32
|
+
const x = (($ = m.value) == null ? void 0 : $.lowStockThreshold) ?? "";
|
|
33
|
+
if (x.trim() === "") return null;
|
|
34
|
+
const r = Number(x);
|
|
35
|
+
return Number.isNaN(r) ? null : r;
|
|
36
|
+
});
|
|
37
|
+
async function B() {
|
|
38
|
+
await F(() => g.submit(), {
|
|
39
|
+
successMessage: e("menu.menu_setting.fields.low_stock.updated"),
|
|
40
|
+
// A non-integer threshold is decided locally and never reaches the wire,
|
|
41
|
+
// so a loading toast here would show an indicator legacy never had.
|
|
42
|
+
showLoading: () => {
|
|
43
|
+
var x;
|
|
44
|
+
return ((x = m.value) == null ? void 0 : x.status) === "submitting";
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return (x, r) => {
|
|
49
|
+
const $ = C("FmRadio"), b = C("FmRadioGroup"), c = C("FmCheckbox"), D = C("FmSwitch"), J = C("FmStepperField"), Q = C("FmButton");
|
|
50
|
+
return m.value ? (i(), h("div", st, [
|
|
51
|
+
u(ae, {
|
|
52
|
+
title: t(e)("menu.tax_setting.title")
|
|
53
|
+
}, {
|
|
54
|
+
default: v(() => [
|
|
55
|
+
o("div", null, [
|
|
56
|
+
u(b, {
|
|
57
|
+
"model-value": m.value.taxMode,
|
|
58
|
+
"onUpdate:modelValue": r[0] || (r[0] = (y) => t(g).setTaxMode(y))
|
|
59
|
+
}, {
|
|
60
|
+
default: v(() => [
|
|
61
|
+
u($, {
|
|
62
|
+
value: "automatic",
|
|
63
|
+
label: t(e)("menu.setting.tax.modes.auto.label"),
|
|
64
|
+
sublabel: t(e)("menu.setting.tax.modes.auto.sublabel")
|
|
65
|
+
}, null, 8, ["label", "sublabel"]),
|
|
66
|
+
u($, {
|
|
67
|
+
value: "manual",
|
|
68
|
+
label: t(e)("menu.setting.tax.modes.manual.label"),
|
|
69
|
+
sublabel: t(e)("menu.setting.tax.modes.manual.sublabel")
|
|
70
|
+
}, null, 8, ["label", "sublabel"])
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
}, 8, ["model-value"]),
|
|
74
|
+
m.value.taxMode === "manual" ? (i(), h("div", ut, [
|
|
75
|
+
(i(!0), h(O, null, W(m.value.taxSystems, (y) => (i(), S(c, {
|
|
76
|
+
key: y.systemCode,
|
|
77
|
+
"model-value": y.inclusive,
|
|
78
|
+
value: !0,
|
|
79
|
+
label: t(e)("menu.setting.tax.inclusive", { code: y.systemCode }),
|
|
80
|
+
"onUpdate:modelValue": (j) => t(g).setTaxInclusive(y.systemCode, !!j)
|
|
81
|
+
}, null, 8, ["model-value", "label", "onUpdate:modelValue"]))), 128))
|
|
82
|
+
])) : U("", !0)
|
|
83
|
+
]),
|
|
84
|
+
m.value.statutoryChargeWaivers.length > 0 ? (i(), S(Ze, {
|
|
85
|
+
key: 0,
|
|
86
|
+
label: t(e)("menu.catalog.form.statutory_charges.title")
|
|
87
|
+
}, {
|
|
88
|
+
default: v(() => [
|
|
89
|
+
o("div", it, [
|
|
90
|
+
(i(!0), h(O, null, W(m.value.statutoryChargeWaivers, (y) => (i(), S(D, {
|
|
91
|
+
key: y.code,
|
|
92
|
+
"model-value": y.waived,
|
|
93
|
+
label: t(e)("menu.catalog.form.statutory_charges.waive", {
|
|
94
|
+
name: y.name
|
|
95
|
+
}),
|
|
96
|
+
sublabel: t(e)("menu.menu_setting.statutory_charges.sublabel"),
|
|
97
|
+
"label-placement": "right",
|
|
98
|
+
"onUpdate:modelValue": (j) => t(g).setStatutoryChargeWaived(y.code, j)
|
|
99
|
+
}, null, 8, ["model-value", "label", "sublabel", "onUpdate:modelValue"]))), 128))
|
|
100
|
+
])
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
}, 8, ["label"])) : U("", !0)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["title"]),
|
|
107
|
+
u(ae, {
|
|
108
|
+
title: t(e)("menu.menu_setting.fields.low_stock.title"),
|
|
109
|
+
"sub-title": t(e)("menu.menu_setting.fields.low_stock.subtitle")
|
|
110
|
+
}, {
|
|
111
|
+
default: v(() => [
|
|
112
|
+
u(J, {
|
|
113
|
+
"model-value": A.value,
|
|
114
|
+
min: 0,
|
|
115
|
+
max: 1e3,
|
|
116
|
+
step: 1,
|
|
117
|
+
placeholder: t(e)("menu.menu_setting.fields.low_stock.not_set"),
|
|
118
|
+
"error-messages": m.value.lowStockIssue ? [t(f)(m.value.lowStockIssue)] : [],
|
|
119
|
+
"helper-text": t(e)("menu.menu_setting.fields.low_stock.helper_text"),
|
|
120
|
+
"onUpdate:modelValue": r[1] || (r[1] = (y) => t(g).setLowStockThreshold(
|
|
121
|
+
y == null ? "" : String(y)
|
|
122
|
+
))
|
|
123
|
+
}, null, 8, ["model-value", "placeholder", "error-messages", "helper-text"])
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["title", "sub-title"]),
|
|
127
|
+
u(Q, {
|
|
128
|
+
label: t(e)("menu.common.actions.save"),
|
|
129
|
+
disabled: m.value.submit.state !== "allowed",
|
|
130
|
+
loading: m.value.status === "submitting",
|
|
131
|
+
onClick: B
|
|
132
|
+
}, null, 8, ["label", "disabled", "loading"])
|
|
133
|
+
])) : U("", !0);
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
}), ct = /* @__PURE__ */ E({
|
|
137
|
+
__name: "AddMemberTierDialog",
|
|
138
|
+
setup(L) {
|
|
139
|
+
const { t: p } = q(), { emitData: e } = lt(), f = P("");
|
|
140
|
+
return Qe(f, (F) => e(F)), (F, g) => {
|
|
141
|
+
const d = C("FmTextField");
|
|
142
|
+
return i(), S(d, {
|
|
143
|
+
modelValue: f.value,
|
|
144
|
+
"onUpdate:modelValue": g[0] || (g[0] = (m) => f.value = m),
|
|
145
|
+
label: t(p)("menu.member_pricing.name_title")
|
|
146
|
+
}, null, 8, ["modelValue", "label"]);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
}), dt = /* @__PURE__ */ E({
|
|
150
|
+
__name: "MemberPricingTab",
|
|
151
|
+
props: {
|
|
152
|
+
sdk: {}
|
|
153
|
+
},
|
|
154
|
+
setup(L) {
|
|
155
|
+
const p = L, { t: e } = q(), f = ce(), { run: F } = ne(), g = H(p.sdk.memberPricing.list), d = V(
|
|
156
|
+
() => g.value.status === "ready" ? g.value.value : null
|
|
157
|
+
), m = V(() => {
|
|
158
|
+
var r;
|
|
159
|
+
return [...((r = d.value) == null ? void 0 : r.rows) ?? []];
|
|
160
|
+
});
|
|
161
|
+
function A() {
|
|
162
|
+
var r;
|
|
163
|
+
((r = d.value) == null ? void 0 : r.create.state) === "allowed" && f.open({
|
|
164
|
+
// The dialog wears the TAB's title, not an "Add…" phrasing — unlike
|
|
165
|
+
// the Price group tab beside it (`member-pricing/create/dialog-open`).
|
|
166
|
+
title: e("menu.member_pricing.title"),
|
|
167
|
+
contentComponent: ct,
|
|
168
|
+
primaryActions: {
|
|
169
|
+
text: e("menu.category.manager.dialog.add.action"),
|
|
170
|
+
close: !1
|
|
171
|
+
},
|
|
172
|
+
secondaryActions: {
|
|
173
|
+
text: e("menu.common.actions.cancel"),
|
|
174
|
+
close: !0
|
|
175
|
+
}
|
|
176
|
+
}).onPrimary(async ($) => {
|
|
177
|
+
(await F(
|
|
178
|
+
// An untouched field never emits, so it arrives as `undefined`. It is
|
|
179
|
+
// forwarded as the empty string rather than defended against here:
|
|
180
|
+
// whether an empty name is submittable is the SDK's rule.
|
|
181
|
+
() => p.sdk.memberPricing.create(String($ ?? "")),
|
|
182
|
+
{
|
|
183
|
+
// The success copy INTERPOLATES the tier name, unlike the Price
|
|
184
|
+
// group tab's generic line. The name comes back from the outcome
|
|
185
|
+
// rather than from the typed input, so the message can only ever
|
|
186
|
+
// describe the tier the write actually established.
|
|
187
|
+
successMessage: (c) => e("menu.member_pricing.add_member_tier_success", {
|
|
188
|
+
name: c.key
|
|
189
|
+
}),
|
|
190
|
+
// Two rejections settle here without a round trip and legacy shows
|
|
191
|
+
// no pending pill for either: the empty name is silent altogether
|
|
192
|
+
// (`member-pricing/create/empty-name`, frozen `silentDrop: true`),
|
|
193
|
+
// and the duplicate is refused client-side before any request
|
|
194
|
+
// (`member-pricing/create/duplicate-name`). The duplicate's issue
|
|
195
|
+
// is unanchored, so `useActionFeedback` opens its bottom error
|
|
196
|
+
// toast; the empty name's is field-anchored, so nothing renders.
|
|
197
|
+
//
|
|
198
|
+
// Whether the write reached the wire is READ FROM THE SDK, never
|
|
199
|
+
// recomputed here. `run` evaluates this after the intent has
|
|
200
|
+
// started, and the facade flips `create` to `disabled`
|
|
201
|
+
// synchronously before it awaits the transport while returning both
|
|
202
|
+
// local rejections without ever starting a write — so this is the
|
|
203
|
+
// SDK's own answer, and it keeps answering correctly if either
|
|
204
|
+
// guard ever moves.
|
|
205
|
+
showLoading: () => {
|
|
206
|
+
var c;
|
|
207
|
+
return ((c = d.value) == null ? void 0 : c.create.state) !== "allowed";
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
)).kind === "success" && f.close();
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function B(r) {
|
|
214
|
+
r.remove.state === "allowed" && f.open({
|
|
215
|
+
title: e("menu.member_pricing.delete_dialog.title"),
|
|
216
|
+
// Names the tier and says nothing about which products are priced
|
|
217
|
+
// against it, because legacy runs no reference check
|
|
218
|
+
// (`member-pricing/delete/confirmation`).
|
|
219
|
+
message: e("menu.member_pricing.delete_dialog.message", {
|
|
220
|
+
name: r.key
|
|
221
|
+
}),
|
|
222
|
+
primaryActions: {
|
|
223
|
+
text: e("menu.common.actions.remove"),
|
|
224
|
+
close: !1
|
|
225
|
+
},
|
|
226
|
+
secondaryActions: {
|
|
227
|
+
text: e("menu.common.actions.cancel"),
|
|
228
|
+
close: !0
|
|
229
|
+
}
|
|
230
|
+
}).onPrimary(async () => {
|
|
231
|
+
(await F(
|
|
232
|
+
() => p.sdk.memberPricing.remove(r.key),
|
|
233
|
+
{
|
|
234
|
+
// Generic, where create interpolates. That inconsistency is
|
|
235
|
+
// internal to this unit and is reproduced, not tidied.
|
|
236
|
+
successMessage: e("menu.member_pricing.delete_dialog.success")
|
|
237
|
+
}
|
|
238
|
+
)).kind === "success" && f.close();
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
const x = V(() => [
|
|
242
|
+
{
|
|
243
|
+
accessorKey: "key",
|
|
244
|
+
enableSorting: !1,
|
|
245
|
+
header: () => e("menu.member_pricing.table.columns.name")
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
id: "actions",
|
|
249
|
+
size: 50,
|
|
250
|
+
enableSorting: !1,
|
|
251
|
+
header: "",
|
|
252
|
+
// Legacy's control is icon-only with NO accessible name; the name is an
|
|
253
|
+
// addition the new app owns. It is the screen-reader name, not a
|
|
254
|
+
// locator: "Remove member tier" contains no "delete", unlike the Price
|
|
255
|
+
// group tab's label, and must not be renamed toward one.
|
|
256
|
+
cell: (r) => N("div", { class: "flex justify-end px-4" }, [
|
|
257
|
+
N(oe.FmButton, {
|
|
258
|
+
icon: "delete",
|
|
259
|
+
variant: "tertiary",
|
|
260
|
+
textColor: "neutral-gray-400",
|
|
261
|
+
"aria-label": e("menu.member_pricing.table.actions.delete"),
|
|
262
|
+
disabled: r.row.original.remove.state !== "allowed",
|
|
263
|
+
onClick: M(
|
|
264
|
+
() => B(r.row.original),
|
|
265
|
+
["stop", "prevent"]
|
|
266
|
+
)
|
|
267
|
+
})
|
|
268
|
+
])
|
|
269
|
+
}
|
|
270
|
+
]);
|
|
271
|
+
return (r, $) => {
|
|
272
|
+
const b = C("FmButton"), c = C("FmTable");
|
|
273
|
+
return d.value ? (i(), S($e, {
|
|
274
|
+
key: 0,
|
|
275
|
+
heading: t(e)("menu.member_pricing.title"),
|
|
276
|
+
subheading: t(e)("menu.member_pricing.description")
|
|
277
|
+
}, {
|
|
278
|
+
"append-heading": v(() => [
|
|
279
|
+
d.value.rows.length > 0 ? (i(), S(b, {
|
|
280
|
+
key: 0,
|
|
281
|
+
label: t(e)("menu.member_pricing.add_member_tier"),
|
|
282
|
+
disabled: d.value.create.state !== "allowed",
|
|
283
|
+
"prepend-icon": "add",
|
|
284
|
+
onClick: A
|
|
285
|
+
}, null, 8, ["label", "disabled"])) : U("", !0)
|
|
286
|
+
]),
|
|
287
|
+
default: v(() => [
|
|
288
|
+
d.value.rows.length === 0 ? (i(), S(t(Fe), {
|
|
289
|
+
key: 0,
|
|
290
|
+
action: {
|
|
291
|
+
text: t(e)("menu.member_pricing.add_member_tier"),
|
|
292
|
+
callback: A
|
|
293
|
+
},
|
|
294
|
+
subtitle: t(e)("menu.member_pricing.empty.subtitle"),
|
|
295
|
+
title: t(e)("menu.member_pricing.empty.title")
|
|
296
|
+
}, null, 8, ["action", "subtitle", "title"])) : (i(), S(Se, { key: 1 }, {
|
|
297
|
+
default: v(() => [
|
|
298
|
+
u(c, {
|
|
299
|
+
"column-defs": x.value,
|
|
300
|
+
"page-size": d.value.rows.length,
|
|
301
|
+
"row-data": m.value,
|
|
302
|
+
"shrink-at": !1,
|
|
303
|
+
"hide-footer": "",
|
|
304
|
+
"pin-header-row": ""
|
|
305
|
+
}, null, 8, ["column-defs", "page-size", "row-data"])
|
|
306
|
+
]),
|
|
307
|
+
_: 1
|
|
308
|
+
}))
|
|
309
|
+
]),
|
|
310
|
+
_: 1
|
|
311
|
+
}, 8, ["heading", "subheading"])) : U("", !0);
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
}), mt = {
|
|
315
|
+
key: 0,
|
|
316
|
+
class: "flex flex-col gap-16"
|
|
317
|
+
}, pt = { class: "flex items-center justify-between gap-16" }, _t = { class: "fm-typo-en-title-md-600" }, vt = { class: "text-fm-color-typo-secondary" }, gt = /* @__PURE__ */ E({
|
|
318
|
+
__name: "PriceGroupTab",
|
|
319
|
+
props: {
|
|
320
|
+
sdk: {}
|
|
321
|
+
},
|
|
322
|
+
setup(L) {
|
|
323
|
+
const p = L, { t: e } = q(), f = ce(), { run: F } = ne(), g = H(p.sdk.priceTier.list), d = V(
|
|
324
|
+
() => g.value.status === "ready" ? g.value.value : null
|
|
325
|
+
), m = V(() => {
|
|
326
|
+
var r;
|
|
327
|
+
return [...((r = d.value) == null ? void 0 : r.rows) ?? []];
|
|
328
|
+
});
|
|
329
|
+
function A() {
|
|
330
|
+
var r;
|
|
331
|
+
((r = d.value) == null ? void 0 : r.create.state) === "allowed" && f.open({
|
|
332
|
+
title: e("menu.price_tier.add_price_group"),
|
|
333
|
+
contentComponent: ot,
|
|
334
|
+
primaryActions: {
|
|
335
|
+
text: e("menu.category.manager.dialog.add.action"),
|
|
336
|
+
close: !1
|
|
337
|
+
},
|
|
338
|
+
secondaryActions: {
|
|
339
|
+
text: e("menu.common.actions.cancel"),
|
|
340
|
+
close: !0
|
|
341
|
+
}
|
|
342
|
+
}).onPrimary(async ($) => {
|
|
343
|
+
(await F(
|
|
344
|
+
// An untouched field never emits, so it arrives as `undefined`. It is
|
|
345
|
+
// forwarded as the empty string rather than defended against here:
|
|
346
|
+
// whether an empty title is submittable is the SDK's rule.
|
|
347
|
+
() => p.sdk.priceTier.create(String($ ?? "")),
|
|
348
|
+
{
|
|
349
|
+
successMessage: e("menu.price_tier.add_price_group_success"),
|
|
350
|
+
// The empty title is refused locally with no request, and legacy
|
|
351
|
+
// shows NOTHING for it — no pending pill, no toast, no inline error
|
|
352
|
+
// (`price-tier/create/empty-title`, frozen `silentDrop: true`). The
|
|
353
|
+
// rejection's issue is field-anchored, so `useActionFeedback` opens
|
|
354
|
+
// no snackbar for it; suppressing the spinner is what keeps the rest
|
|
355
|
+
// of that silence.
|
|
356
|
+
//
|
|
357
|
+
// Whether the write reached the wire is READ FROM THE SDK, never
|
|
358
|
+
// recomputed here. `run` evaluates this after the
|
|
359
|
+
// intent has started, and the facade flips `create` to `disabled`
|
|
360
|
+
// synchronously before it awaits the transport while returning a
|
|
361
|
+
// local rejection without ever starting a write — so this is the
|
|
362
|
+
// SDK's own answer, and it keeps answering correctly if the
|
|
363
|
+
// submittability rule ever moves.
|
|
364
|
+
showLoading: () => {
|
|
365
|
+
var c;
|
|
366
|
+
return ((c = d.value) == null ? void 0 : c.create.state) !== "allowed";
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
)).kind === "success" && f.close();
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
function B(r) {
|
|
373
|
+
r.remove.state === "allowed" && f.open({
|
|
374
|
+
title: e("menu.price_tier.delete_dialog.title"),
|
|
375
|
+
message: e("menu.price_tier.delete_dialog.message", { name: r.key }),
|
|
376
|
+
primaryActions: {
|
|
377
|
+
text: e("menu.common.actions.remove"),
|
|
378
|
+
close: !1
|
|
379
|
+
},
|
|
380
|
+
secondaryActions: {
|
|
381
|
+
text: e("menu.common.actions.cancel"),
|
|
382
|
+
close: !0
|
|
383
|
+
}
|
|
384
|
+
}).onPrimary(async () => {
|
|
385
|
+
(await F(
|
|
386
|
+
() => p.sdk.priceTier.remove(r.key),
|
|
387
|
+
{ successMessage: e("menu.price_tier.delete_dialog.success") }
|
|
388
|
+
)).kind === "success" && f.close();
|
|
389
|
+
});
|
|
390
|
+
}
|
|
391
|
+
const x = V(() => [
|
|
392
|
+
{
|
|
393
|
+
accessorKey: "key",
|
|
394
|
+
enableSorting: !1,
|
|
395
|
+
header: () => e("menu.price_tier.settings_table.columns.name")
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
id: "actions",
|
|
399
|
+
size: 50,
|
|
400
|
+
enableSorting: !1,
|
|
401
|
+
header: "",
|
|
402
|
+
// Legacy's control is icon-only with NO accessible name; the name is an
|
|
403
|
+
// addition the new app owns, naming the control for a screen reader.
|
|
404
|
+
cell: (r) => N("div", { class: "flex justify-end px-4" }, [
|
|
405
|
+
N(oe.FmButton, {
|
|
406
|
+
icon: "delete",
|
|
407
|
+
variant: "tertiary",
|
|
408
|
+
textColor: "neutral-gray-400",
|
|
409
|
+
"aria-label": e("menu.price_tier.settings_table.actions.delete"),
|
|
410
|
+
disabled: r.row.original.remove.state !== "allowed",
|
|
411
|
+
onClick: M(
|
|
412
|
+
() => B(r.row.original),
|
|
413
|
+
["stop", "prevent"]
|
|
414
|
+
)
|
|
415
|
+
})
|
|
416
|
+
])
|
|
417
|
+
}
|
|
418
|
+
]);
|
|
419
|
+
return (r, $) => {
|
|
420
|
+
const b = C("FmButton"), c = C("FmTable");
|
|
421
|
+
return d.value ? (i(), h("div", mt, [
|
|
422
|
+
o("div", pt, [
|
|
423
|
+
o("div", null, [
|
|
424
|
+
o("h1", _t, w(t(e)("menu.price_tier.price_group")), 1),
|
|
425
|
+
o("p", vt, w(t(e)("menu.price_tier.description")), 1)
|
|
426
|
+
]),
|
|
427
|
+
u(b, {
|
|
428
|
+
label: t(e)("menu.price_tier.add_price_group"),
|
|
429
|
+
disabled: d.value.create.state !== "allowed",
|
|
430
|
+
"prepend-icon": "add",
|
|
431
|
+
onClick: A
|
|
432
|
+
}, null, 8, ["label", "disabled"])
|
|
433
|
+
]),
|
|
434
|
+
u(c, {
|
|
435
|
+
"column-defs": x.value,
|
|
436
|
+
"page-size": Math.max(d.value.rows.length, 1),
|
|
437
|
+
"row-data": m.value,
|
|
438
|
+
"shrink-at": !1,
|
|
439
|
+
"hide-footer": "",
|
|
440
|
+
"pin-header-row": ""
|
|
441
|
+
}, null, 8, ["column-defs", "page-size", "row-data"])
|
|
442
|
+
])) : U("", !0);
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
}), bt = { key: 0 }, ft = {
|
|
446
|
+
key: 0,
|
|
447
|
+
class: "space-y-8"
|
|
448
|
+
}, yt = { class: "flex items-center justify-between" }, kt = { class: "fm-typo-en-title-md-600" }, ht = { class: "text-fm-color-typo-secondary" }, xt = { class: "flex justify-end items-center" }, wt = { class: "w-[320px]" }, Ct = {
|
|
449
|
+
key: 1,
|
|
450
|
+
class: "flex-1 flex flex-col min-h-0"
|
|
451
|
+
}, Ft = { class: "flex items-center justify-between p-8" }, St = { class: "flex-1 mr-8" }, $t = { class: "flex flex-1 flex-col min-h-0 overflow-scroll divide-y divide-fm-color-neutral-gray-100 pb-64" }, Vt = ["onClick"], Rt = { class: "flex-1 space-y-4" }, Tt = { class: "fm-typo-en-body-lg-600" }, Mt = {
|
|
452
|
+
key: 0,
|
|
453
|
+
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
454
|
+
}, Ut = { class: "fm-typo-en-title-md-600 mr-auto" }, At = { class: "py-8 px-8 overflow-y-auto space-y-24" }, Lt = { class: "space-y-16" }, Bt = { class: "rule-item" }, It = { class: "flex items-center space-x-16" }, Pt = { class: "flex flex-col min-w-0 w-full" }, jt = { class: "flex-1 relative border border-fm-color-neutral-gray-200 rounded-md p-16" }, Gt = { class: "flex items-center justify-between pb-8" }, Dt = { class: "text-fm-color-neutral-gray-300" }, zt = { class: "flex gap-8" }, Ot = { class: "flex flex-col space-y-8" }, Nt = { class: "fm-typo-en-body-lg-600" }, Et = { class: "w-24" }, qt = { class: "flex w-full fm-typo-en-body-lg-400 space-x-8 overflow-hidden" }, Kt = { class: "whitespace-nowrap" }, Wt = { class: "fm-typo-en-body-lg-600 whitespace-nowrap" }, Ht = ["onClick"], Jt = {
|
|
455
|
+
key: 0,
|
|
456
|
+
class: "flex items-center select-none ml-16"
|
|
457
|
+
}, Qt = { class: "fm-typo-en-body-lg-400 text-fm-color-neutral-gray-300" }, Xt = { class: "flex gap-8 items-center justify-start" }, Yt = { class: "flex items-center gap-24" }, Zt = { class: "fm-typo-en-headline-lg-600" }, el = { class: "p-16 flex flex-col gap-16" }, tl = { class: "fm-typo-en-body-lg-600" }, ll = { class: "flex flex-col gap-16" }, al = { class: "flex w-full justify-between gap-16" }, ol = {
|
|
458
|
+
key: 0,
|
|
459
|
+
class: "flex w-full [&>*]:w-full"
|
|
460
|
+
}, nl = { class: "break-all fm-typo-en-body-lg-400 line-clamp-1" }, sl = { class: "flex gap-16 items-center" }, ul = /* @__PURE__ */ E({
|
|
461
|
+
__name: "RuleGroupsTab",
|
|
462
|
+
props: {
|
|
463
|
+
sdk: {}
|
|
464
|
+
},
|
|
465
|
+
setup(L) {
|
|
466
|
+
const p = L, { t: e } = q(), f = {
|
|
467
|
+
mounted: (l, a) => {
|
|
468
|
+
var n;
|
|
469
|
+
(n = l.querySelector("input")) == null || n.setAttribute("aria-label", a.value);
|
|
470
|
+
},
|
|
471
|
+
updated: (l, a) => {
|
|
472
|
+
var n;
|
|
473
|
+
(n = l.querySelector("input")) == null || n.setAttribute("aria-label", a.value);
|
|
474
|
+
}
|
|
475
|
+
}, F = Ce(), g = ce(), { run: d } = ne(), { breakpoints: m } = at(), A = V(() => m.value.xs), B = H(
|
|
476
|
+
p.sdk.menuSetting.ruleGroupList
|
|
477
|
+
), x = V(
|
|
478
|
+
() => B.value.status === "ready" ? B.value.value : null
|
|
479
|
+
), r = V(() => {
|
|
480
|
+
var l;
|
|
481
|
+
return [...((l = x.value) == null ? void 0 : l.rows) ?? []];
|
|
482
|
+
}), $ = P(!1), b = ke(null), c = ke(null), D = he(() => b.value), J = V(
|
|
483
|
+
() => c.value ? D.issue(c.value.fieldIssues, "name") ?? c.value.nameIssue : null
|
|
484
|
+
), Q = V(
|
|
485
|
+
() => c.value ? D.issue(c.value.fieldIssues, "rules") ?? c.value.rulesIssue : null
|
|
486
|
+
);
|
|
487
|
+
let y = null;
|
|
488
|
+
function j(l) {
|
|
489
|
+
z();
|
|
490
|
+
const a = p.sdk.menuSetting.ruleGroupEditor(l);
|
|
491
|
+
b.value = a, y = a.subscribe(
|
|
492
|
+
(n) => {
|
|
493
|
+
c.value = n.status === "ready" ? n.value : null;
|
|
494
|
+
}
|
|
495
|
+
), $.value = !0;
|
|
496
|
+
}
|
|
497
|
+
function z() {
|
|
498
|
+
var l;
|
|
499
|
+
I.value = !1, y == null || y(), y = null, (l = b.value) == null || l.dispose(), b.value = null, c.value = null, $.value = !1;
|
|
500
|
+
}
|
|
501
|
+
we(() => z());
|
|
502
|
+
function Ve() {
|
|
503
|
+
var l;
|
|
504
|
+
if (!((l = c.value) != null && l.dirty)) {
|
|
505
|
+
z();
|
|
506
|
+
return;
|
|
507
|
+
}
|
|
508
|
+
g.open({
|
|
509
|
+
title: e("menu.common.dialog.dismiss.title"),
|
|
510
|
+
message: e("menu.common.dialog.dismiss.message"),
|
|
511
|
+
primaryActions: {
|
|
512
|
+
text: e("menu.common.dialog.dismiss.discard"),
|
|
513
|
+
close: !0
|
|
514
|
+
},
|
|
515
|
+
secondaryActions: {
|
|
516
|
+
text: e("menu.common.actions.cancel"),
|
|
517
|
+
close: !0
|
|
518
|
+
}
|
|
519
|
+
}).onPrimary(() => z());
|
|
520
|
+
}
|
|
521
|
+
const I = P(!1), X = P(null), de = P(!1), G = P([]), me = he(
|
|
522
|
+
() => I.value ? X.value ?? "new" : null
|
|
523
|
+
), Y = P(""), Z = P("");
|
|
524
|
+
let pe = 0;
|
|
525
|
+
function ee() {
|
|
526
|
+
return pe += 1, {
|
|
527
|
+
key: `condition-${pe}`,
|
|
528
|
+
attribute: null,
|
|
529
|
+
operator: null,
|
|
530
|
+
values: []
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
const _e = [
|
|
534
|
+
{ value: "in", label: "menu.rule_groups.condition_view.operator.in" },
|
|
535
|
+
{
|
|
536
|
+
value: "notIn",
|
|
537
|
+
label: "menu.rule_groups.condition_view.operator.not_in"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
value: "startsWith",
|
|
541
|
+
label: "menu.rule_groups.condition_view.operator.starts_with"
|
|
542
|
+
}
|
|
543
|
+
], Re = V(
|
|
544
|
+
() => _e.map((l) => ({ label: e(l.label), value: l.value }))
|
|
545
|
+
);
|
|
546
|
+
function Te(l) {
|
|
547
|
+
var n;
|
|
548
|
+
const a = (n = _e.find((k) => k.value === l)) == null ? void 0 : n.label;
|
|
549
|
+
return a ? e(a) : "";
|
|
550
|
+
}
|
|
551
|
+
function ve(l) {
|
|
552
|
+
var a;
|
|
553
|
+
return (((a = c.value) == null ? void 0 : a.attributeOptions) ?? []).find(
|
|
554
|
+
(n) => n.key === l
|
|
555
|
+
) ?? null;
|
|
556
|
+
}
|
|
557
|
+
function Me(l) {
|
|
558
|
+
var k;
|
|
559
|
+
const a = G.value.filter((R) => R.key !== l.key).map((R) => R.attribute), n = Y.value.trim().toLowerCase();
|
|
560
|
+
return (((k = c.value) == null ? void 0 : k.attributeOptions) ?? []).filter((R) => !a.includes(R.key)).map((R) => ({
|
|
561
|
+
label: e(R.label, R.labelParams ?? {}),
|
|
562
|
+
value: R.key
|
|
563
|
+
})).filter((R) => !n || R.label.toLowerCase().includes(n));
|
|
564
|
+
}
|
|
565
|
+
function Ue(l) {
|
|
566
|
+
var n;
|
|
567
|
+
const a = Z.value.trim().toLowerCase();
|
|
568
|
+
return (((n = ve(l.attribute)) == null ? void 0 : n.values) ?? []).map((k) => ({
|
|
569
|
+
// Display text, not a code: a value is business data shown verbatim.
|
|
570
|
+
label: k.label,
|
|
571
|
+
// FmSelect needs a primitive; a value travels as its key.
|
|
572
|
+
value: xe(k.value),
|
|
573
|
+
selected: l.values.includes(k.value)
|
|
574
|
+
})).filter(
|
|
575
|
+
(k) => !a || k.label.toLowerCase().includes(a) || // A chosen value stays listed while filtering, so FmSelect keeps it.
|
|
576
|
+
k.selected
|
|
577
|
+
).map(({ label: k, value: R }) => ({ label: k, value: R }));
|
|
578
|
+
}
|
|
579
|
+
function Ae(l) {
|
|
580
|
+
const a = ve(l.attribute);
|
|
581
|
+
return l.values.map(
|
|
582
|
+
(n) => {
|
|
583
|
+
var k;
|
|
584
|
+
return ((k = a == null ? void 0 : a.values.find((R) => R.value === n)) == null ? void 0 : k.label) ?? String(n);
|
|
585
|
+
}
|
|
586
|
+
).join(", ");
|
|
587
|
+
}
|
|
588
|
+
function ge() {
|
|
589
|
+
return G.value.map((l) => ({
|
|
590
|
+
attribute: l.attribute,
|
|
591
|
+
operator: l.operator,
|
|
592
|
+
values: [...l.values]
|
|
593
|
+
}));
|
|
594
|
+
}
|
|
595
|
+
const Le = V(
|
|
596
|
+
() => {
|
|
597
|
+
var l;
|
|
598
|
+
return ((l = b.value) == null ? void 0 : l.conditionFieldIssues(ge())) ?? {};
|
|
599
|
+
}
|
|
600
|
+
);
|
|
601
|
+
function K(l, a) {
|
|
602
|
+
return me.issue(
|
|
603
|
+
Le.value,
|
|
604
|
+
`conditions.${l}.${a}`
|
|
605
|
+
);
|
|
606
|
+
}
|
|
607
|
+
function te(l) {
|
|
608
|
+
X.value = (l == null ? void 0 : l.id) ?? null, de.value = !!l && l.conditions.length > 0, G.value = l != null && l.conditions.length ? l.conditions.map((a) => ({
|
|
609
|
+
...ee(),
|
|
610
|
+
attribute: a.attribute,
|
|
611
|
+
operator: a.operator,
|
|
612
|
+
values: [...a.values]
|
|
613
|
+
})) : [ee()], Y.value = "", Z.value = "", I.value = !0;
|
|
614
|
+
}
|
|
615
|
+
function Be() {
|
|
616
|
+
G.value = [...G.value, ee()];
|
|
617
|
+
}
|
|
618
|
+
function Ie(l) {
|
|
619
|
+
const a = G.value.filter((n) => n.key !== l);
|
|
620
|
+
G.value = a.length > 0 ? a : [ee()];
|
|
621
|
+
}
|
|
622
|
+
function Pe(l, a) {
|
|
623
|
+
l.attribute = a, l.values = [];
|
|
624
|
+
}
|
|
625
|
+
function je(l) {
|
|
626
|
+
return re(l.operator) === "text";
|
|
627
|
+
}
|
|
628
|
+
function Ge(l, a) {
|
|
629
|
+
const n = re(l.operator);
|
|
630
|
+
l.operator = a, re(l.operator) !== n && (l.values = []);
|
|
631
|
+
}
|
|
632
|
+
function De() {
|
|
633
|
+
if (!b.value) return;
|
|
634
|
+
const l = ge(), a = X.value ? b.value.updateRule(X.value, l) : b.value.addRule(l);
|
|
635
|
+
if (a.kind === "rejected") {
|
|
636
|
+
me.submit(
|
|
637
|
+
async () => ({ kind: "rejected", issues: a.issues })
|
|
638
|
+
);
|
|
639
|
+
return;
|
|
640
|
+
}
|
|
641
|
+
I.value = !1;
|
|
642
|
+
}
|
|
643
|
+
function ze(l) {
|
|
644
|
+
return `${e("menu.rule_groups.condition_view.rule")} ${l + 1}`;
|
|
645
|
+
}
|
|
646
|
+
const le = V(
|
|
647
|
+
() => {
|
|
648
|
+
var l;
|
|
649
|
+
return (((l = c.value) == null ? void 0 : l.rules) ?? []).map((a) => ({ id: a.id, rule: a }));
|
|
650
|
+
}
|
|
651
|
+
);
|
|
652
|
+
function Oe(l) {
|
|
653
|
+
var a;
|
|
654
|
+
(a = b.value) == null || a.reorderRules(l.map((n) => n.id));
|
|
655
|
+
}
|
|
656
|
+
function Ne(l) {
|
|
657
|
+
var a;
|
|
658
|
+
(a = b.value) == null || a.duplicateRule(l);
|
|
659
|
+
}
|
|
660
|
+
function Ee(l) {
|
|
661
|
+
var a;
|
|
662
|
+
(a = b.value) == null || a.removeRule(l), D.touch("rules");
|
|
663
|
+
}
|
|
664
|
+
async function qe() {
|
|
665
|
+
const l = b.value;
|
|
666
|
+
if (!l) return;
|
|
667
|
+
(await d(
|
|
668
|
+
() => D.submit(() => l.submit()),
|
|
669
|
+
{
|
|
670
|
+
successMessage: e("menu.rule_groups.saved_successfully"),
|
|
671
|
+
showLoading: () => {
|
|
672
|
+
var n;
|
|
673
|
+
return ((n = c.value) == null ? void 0 : n.status) === "submitting";
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
)).kind === "success" && z();
|
|
677
|
+
}
|
|
678
|
+
async function Ke(l) {
|
|
679
|
+
await d(() => p.sdk.menuSetting.copyRuleGroup(l.id), {
|
|
680
|
+
successMessage: e("menu.rule_groups.saved_successfully")
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
function be(l) {
|
|
684
|
+
g.open({
|
|
685
|
+
title: e("menu.rule_groups.delete_dialog.title"),
|
|
686
|
+
message: e("menu.rule_groups.delete_dialog.message", {
|
|
687
|
+
name: l.name
|
|
688
|
+
}),
|
|
689
|
+
// Destructive, as legacy renders it (`LinkProductRuleGroups.vue:123`).
|
|
690
|
+
primaryActions: {
|
|
691
|
+
text: e("menu.common.actions.remove"),
|
|
692
|
+
close: !1,
|
|
693
|
+
variant: "destructive"
|
|
694
|
+
},
|
|
695
|
+
secondaryActions: {
|
|
696
|
+
text: e("menu.common.actions.cancel"),
|
|
697
|
+
close: !0
|
|
698
|
+
}
|
|
699
|
+
}).onPrimary(async () => {
|
|
700
|
+
await d(() => p.sdk.menuSetting.removeRuleGroup(l.id), {
|
|
701
|
+
successMessage: e("menu.rule_groups.saved_successfully")
|
|
702
|
+
}), g.close();
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
const We = V(() => [
|
|
706
|
+
{
|
|
707
|
+
accessorKey: "name",
|
|
708
|
+
enableSorting: !0,
|
|
709
|
+
header: () => e("menu.rule_groups.table.columns.name")
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
accessorKey: "description",
|
|
713
|
+
enableSorting: !1,
|
|
714
|
+
header: () => e("menu.rule_groups.table.columns.description")
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
id: "actions",
|
|
718
|
+
size: 100,
|
|
719
|
+
enableSorting: !1,
|
|
720
|
+
header: "",
|
|
721
|
+
// Both actions are icon-only in legacy and carry NO accessible name.
|
|
722
|
+
// The new app gives them one here; without it neither a locator nor a
|
|
723
|
+
// screen reader can tell them apart.
|
|
724
|
+
cell: (l) => N("div", { class: "px-4 flex justify-end" }, [
|
|
725
|
+
N(oe.FmButton, {
|
|
726
|
+
icon: "file_copy",
|
|
727
|
+
variant: "tertiary",
|
|
728
|
+
textColor: "neutral-gray-400",
|
|
729
|
+
"aria-label": e("menu.menu_setting.rule_groups.copy_action"),
|
|
730
|
+
disabled: l.row.original.copy.state !== "allowed",
|
|
731
|
+
onClick: M(
|
|
732
|
+
() => Ke(l.row.original),
|
|
733
|
+
["stop", "prevent"]
|
|
734
|
+
)
|
|
735
|
+
}),
|
|
736
|
+
N(oe.FmButton, {
|
|
737
|
+
icon: "delete",
|
|
738
|
+
variant: "tertiary",
|
|
739
|
+
textColor: "neutral-gray-400",
|
|
740
|
+
"aria-label": e("menu.menu_setting.rule_groups.delete_action"),
|
|
741
|
+
disabled: l.row.original.remove.state !== "allowed",
|
|
742
|
+
onClick: M(
|
|
743
|
+
() => be(l.row.original),
|
|
744
|
+
["stop", "prevent"]
|
|
745
|
+
)
|
|
746
|
+
})
|
|
747
|
+
])
|
|
748
|
+
}
|
|
749
|
+
]);
|
|
750
|
+
return (l, a) => {
|
|
751
|
+
const n = C("FmButton"), k = C("FmSearch"), R = C("FmTable"), se = C("FmTextField"), He = C("FmMenu"), Je = C("FmHelperText"), fe = C("FmSideSheet"), ue = C("FmSelect");
|
|
752
|
+
return x.value ? (i(), h("div", bt, [
|
|
753
|
+
A.value ? (i(), h("div", Ct, [
|
|
754
|
+
o("div", Ft, [
|
|
755
|
+
o("div", St, [
|
|
756
|
+
u(k, {
|
|
757
|
+
"model-value": x.value.query,
|
|
758
|
+
autofocus: "",
|
|
759
|
+
class: "w-full",
|
|
760
|
+
placeholder: t(e)("menu.rule_groups.search_placeholder"),
|
|
761
|
+
"onUpdate:modelValue": a[3] || (a[3] = (s) => l.sdk.menuSetting.searchRuleGroups(String(s ?? "")))
|
|
762
|
+
}, null, 8, ["model-value", "placeholder"])
|
|
763
|
+
]),
|
|
764
|
+
u(n, {
|
|
765
|
+
icon: "add",
|
|
766
|
+
variant: "secondary",
|
|
767
|
+
"aria-label": t(e)("menu.rule_groups.create_group"),
|
|
768
|
+
disabled: x.value.create.state !== "allowed",
|
|
769
|
+
onClick: a[4] || (a[4] = (s) => j())
|
|
770
|
+
}, null, 8, ["aria-label", "disabled"])
|
|
771
|
+
]),
|
|
772
|
+
o("div", $t, [
|
|
773
|
+
(i(!0), h(O, null, W(x.value.rows, (s) => (i(), h("div", {
|
|
774
|
+
key: s.id,
|
|
775
|
+
class: "flex flex-row py-12 px-16 cursor-pointer",
|
|
776
|
+
onClick: (T) => j(s.id)
|
|
777
|
+
}, [
|
|
778
|
+
o("div", Rt, [
|
|
779
|
+
o("p", Tt, w(s.name), 1),
|
|
780
|
+
s.description ? (i(), h("p", Mt, w(s.description), 1)) : U("", !0)
|
|
781
|
+
]),
|
|
782
|
+
u(n, {
|
|
783
|
+
"text-color": "neutral-gray-400",
|
|
784
|
+
variant: "tertiary",
|
|
785
|
+
icon: "delete",
|
|
786
|
+
"aria-label": t(e)("menu.menu_setting.rule_groups.delete_action"),
|
|
787
|
+
disabled: s.remove.state !== "allowed",
|
|
788
|
+
onClick: M((T) => be(s), ["stop"])
|
|
789
|
+
}, null, 8, ["aria-label", "disabled", "onClick"])
|
|
790
|
+
], 8, Vt))), 128))
|
|
791
|
+
])
|
|
792
|
+
])) : (i(), h("div", ft, [
|
|
793
|
+
o("div", yt, [
|
|
794
|
+
o("div", null, [
|
|
795
|
+
o("h1", kt, w(t(e)("menu.rule_groups.title")), 1),
|
|
796
|
+
o("p", ht, w(t(e)("menu.rule_groups.description")), 1)
|
|
797
|
+
]),
|
|
798
|
+
u(n, {
|
|
799
|
+
label: t(e)("menu.rule_groups.create_group"),
|
|
800
|
+
"prepend-icon": "add",
|
|
801
|
+
disabled: x.value.create.state !== "allowed",
|
|
802
|
+
onClick: a[0] || (a[0] = (s) => j())
|
|
803
|
+
}, null, 8, ["label", "disabled"])
|
|
804
|
+
]),
|
|
805
|
+
o("div", xt, [
|
|
806
|
+
o("div", wt, [
|
|
807
|
+
u(k, {
|
|
808
|
+
"model-value": x.value.query,
|
|
809
|
+
autofocus: "",
|
|
810
|
+
class: "mb-8",
|
|
811
|
+
placeholder: t(e)("menu.rule_groups.search_placeholder"),
|
|
812
|
+
"onUpdate:modelValue": a[1] || (a[1] = (s) => l.sdk.menuSetting.searchRuleGroups(String(s ?? "")))
|
|
813
|
+
}, null, 8, ["model-value", "placeholder"])
|
|
814
|
+
])
|
|
815
|
+
]),
|
|
816
|
+
u(Se, null, {
|
|
817
|
+
default: v(() => [
|
|
818
|
+
u(R, {
|
|
819
|
+
"column-defs": We.value,
|
|
820
|
+
"row-data": r.value,
|
|
821
|
+
"page-size": Math.max(r.value.length, 1),
|
|
822
|
+
"hide-footer": "",
|
|
823
|
+
onRowClick: a[2] || (a[2] = (s) => j(s.original.id))
|
|
824
|
+
}, null, 8, ["column-defs", "row-data", "page-size"])
|
|
825
|
+
]),
|
|
826
|
+
_: 1
|
|
827
|
+
})
|
|
828
|
+
])),
|
|
829
|
+
$.value && c.value ? (i(), S(fe, {
|
|
830
|
+
key: 2,
|
|
831
|
+
"model-value": $.value,
|
|
832
|
+
"max-width": 760,
|
|
833
|
+
"onOn:clickedAway": Ve
|
|
834
|
+
}, {
|
|
835
|
+
"side-sheet-header": v(() => [
|
|
836
|
+
u(n, {
|
|
837
|
+
variant: "tertiary",
|
|
838
|
+
class: "cursor-pointer mr-4",
|
|
839
|
+
"prepend-icon": "arrow_back",
|
|
840
|
+
"aria-label": t(e)("menu.common.actions.back"),
|
|
841
|
+
onClick: z
|
|
842
|
+
}, null, 8, ["aria-label"]),
|
|
843
|
+
o("p", Ut, w(c.value.mode === "create" ? t(e)("menu.rule_groups.create_group") : t(e)("menu.rule_groups.edit_group")), 1)
|
|
844
|
+
]),
|
|
845
|
+
"side-sheet-footer": v(() => [
|
|
846
|
+
o("div", Xt, [
|
|
847
|
+
u(n, {
|
|
848
|
+
label: t(e)("menu.common.actions.save"),
|
|
849
|
+
size: "lg",
|
|
850
|
+
variant: "primary",
|
|
851
|
+
disabled: c.value.submit.state !== "allowed",
|
|
852
|
+
loading: c.value.status === "submitting",
|
|
853
|
+
onClick: qe
|
|
854
|
+
}, null, 8, ["label", "disabled", "loading"]),
|
|
855
|
+
u(n, {
|
|
856
|
+
label: t(e)("menu.common.actions.cancel"),
|
|
857
|
+
size: "lg",
|
|
858
|
+
variant: "tertiary",
|
|
859
|
+
onClick: z
|
|
860
|
+
}, null, 8, ["label"])
|
|
861
|
+
])
|
|
862
|
+
]),
|
|
863
|
+
default: v(() => [
|
|
864
|
+
o("div", At, [
|
|
865
|
+
u(ae, {
|
|
866
|
+
title: t(e)("menu.rule_groups.form.basic_info")
|
|
867
|
+
}, {
|
|
868
|
+
default: v(() => [
|
|
869
|
+
o("div", Lt, [
|
|
870
|
+
u(se, Xe(
|
|
871
|
+
{
|
|
872
|
+
"model-value": c.value.name,
|
|
873
|
+
label: t(e)("menu.rule_groups.form.name"),
|
|
874
|
+
"label-mark": "required",
|
|
875
|
+
placeholder: t(e)("menu.rule_groups.form.name_placeholder"),
|
|
876
|
+
"error-messages": J.value ? [t(F)(J.value)] : []
|
|
877
|
+
},
|
|
878
|
+
t(D).field(
|
|
879
|
+
"name",
|
|
880
|
+
(s) => {
|
|
881
|
+
var T;
|
|
882
|
+
return (T = b.value) == null ? void 0 : T.setName(String(s ?? ""));
|
|
883
|
+
}
|
|
884
|
+
)
|
|
885
|
+
), null, 16, ["model-value", "label", "placeholder", "error-messages"]),
|
|
886
|
+
u(se, {
|
|
887
|
+
"model-value": c.value.description,
|
|
888
|
+
label: t(e)("menu.rule_groups.form.description"),
|
|
889
|
+
"label-mark": "optional",
|
|
890
|
+
placeholder: t(e)("menu.rule_groups.form.description_placeholder"),
|
|
891
|
+
"onUpdate:modelValue": a[5] || (a[5] = (s) => {
|
|
892
|
+
var T;
|
|
893
|
+
return (T = b.value) == null ? void 0 : T.setDescription(String(s ?? ""));
|
|
894
|
+
})
|
|
895
|
+
}, null, 8, ["model-value", "label", "placeholder"])
|
|
896
|
+
])
|
|
897
|
+
]),
|
|
898
|
+
_: 1
|
|
899
|
+
}, 8, ["title"]),
|
|
900
|
+
u(ae, {
|
|
901
|
+
title: t(e)("menu.rule_groups.form.rules"),
|
|
902
|
+
"sub-title": t(e)("menu.rule_groups.form.rules_description")
|
|
903
|
+
}, {
|
|
904
|
+
default: v(() => [
|
|
905
|
+
le.value.length > 0 ? (i(), h(O, { key: 0 }, [
|
|
906
|
+
u(t(et), {
|
|
907
|
+
"model-value": le.value,
|
|
908
|
+
"item-key": "id",
|
|
909
|
+
handle: ".rule-drag-handle",
|
|
910
|
+
"onUpdate:modelValue": Oe
|
|
911
|
+
}, {
|
|
912
|
+
item: v(({ element: s, index: T }) => [
|
|
913
|
+
o("div", Bt, [
|
|
914
|
+
o("div", It, [
|
|
915
|
+
u(n, {
|
|
916
|
+
class: "rule-drag-handle cursor-grab",
|
|
917
|
+
variant: "tertiary",
|
|
918
|
+
"prepend-icon": "drag_indicator",
|
|
919
|
+
"aria-label": t(e)("menu.menu_setting.rule_groups.reorder_rule")
|
|
920
|
+
}, null, 8, ["aria-label"]),
|
|
921
|
+
o("div", Pt, [
|
|
922
|
+
o("div", jt, [
|
|
923
|
+
o("div", Gt, [
|
|
924
|
+
o("p", Dt, w(ze(T)), 1),
|
|
925
|
+
o("div", zt, [
|
|
926
|
+
u(n, {
|
|
927
|
+
variant: "tertiary",
|
|
928
|
+
class: "cursor-pointer",
|
|
929
|
+
"prepend-icon": "edit",
|
|
930
|
+
"text-color": "primary",
|
|
931
|
+
"aria-label": t(e)("menu.link_product.rules.edit_rule"),
|
|
932
|
+
onClick: M((_) => te(s.rule), ["stop"])
|
|
933
|
+
}, null, 8, ["aria-label", "onClick"]),
|
|
934
|
+
u(n, {
|
|
935
|
+
variant: "tertiary",
|
|
936
|
+
class: "cursor-pointer",
|
|
937
|
+
"prepend-icon": "file_copy",
|
|
938
|
+
"text-color": "primary",
|
|
939
|
+
"aria-label": t(e)("menu.menu_setting.rule_groups.copy_rule"),
|
|
940
|
+
onClick: M((_) => Ne(s.id), ["stop"])
|
|
941
|
+
}, null, 8, ["aria-label", "onClick"]),
|
|
942
|
+
u(n, {
|
|
943
|
+
variant: "tertiary",
|
|
944
|
+
class: "cursor-pointer",
|
|
945
|
+
"prepend-icon": "delete",
|
|
946
|
+
"text-color": "typo-error",
|
|
947
|
+
"aria-label": t(e)("menu.menu_setting.rule_groups.remove_rule"),
|
|
948
|
+
onClick: M((_) => Ee(s.id), ["stop"])
|
|
949
|
+
}, null, 8, ["aria-label", "onClick"])
|
|
950
|
+
])
|
|
951
|
+
]),
|
|
952
|
+
o("div", Ot, [
|
|
953
|
+
o("p", Nt, w(t(e)("menu.rule_groups.condition_view.when")), 1),
|
|
954
|
+
(i(!0), h(O, null, W(s.rule.conditions, (_, ye) => (i(), h("div", {
|
|
955
|
+
key: ye,
|
|
956
|
+
class: "flex w-full items-center space-x-8"
|
|
957
|
+
}, [
|
|
958
|
+
o("p", Et, w(ye + 1) + ".", 1),
|
|
959
|
+
o("div", qt, [
|
|
960
|
+
o("p", Kt, w(t(e)(
|
|
961
|
+
_.attributeLabel,
|
|
962
|
+
_.attributeLabelParams ?? {}
|
|
963
|
+
)), 1),
|
|
964
|
+
o("p", Wt, w(Te(_.operator)), 1),
|
|
965
|
+
u(He, {
|
|
966
|
+
trigger: "hover",
|
|
967
|
+
"close-on-mouse-leave": ""
|
|
968
|
+
}, {
|
|
969
|
+
"menu-button": v(() => [
|
|
970
|
+
o("p", {
|
|
971
|
+
class: "text-fm-color-primary underline underline-offset-2 cursor-pointer truncate",
|
|
972
|
+
onClick: M((ie) => te(s.rule), ["stop"])
|
|
973
|
+
}, w(_.valueLabels.join(", ")), 9, Ht)
|
|
974
|
+
]),
|
|
975
|
+
default: v(() => [
|
|
976
|
+
(i(!0), h(O, null, W(_.valueLabels, (ie) => (i(), h("div", {
|
|
977
|
+
key: ie,
|
|
978
|
+
class: "flex flex-col px-8 space-y-8"
|
|
979
|
+
}, [
|
|
980
|
+
o("p", null, w(ie), 1)
|
|
981
|
+
]))), 128))
|
|
982
|
+
]),
|
|
983
|
+
_: 2
|
|
984
|
+
}, 1024)
|
|
985
|
+
])
|
|
986
|
+
]))), 128))
|
|
987
|
+
])
|
|
988
|
+
])
|
|
989
|
+
])
|
|
990
|
+
]),
|
|
991
|
+
le.value.length > 1 && T < le.value.length - 1 ? (i(), h("div", Jt, [
|
|
992
|
+
o("span", Qt, w(t(e)("menu.rule_groups.condition_view.or")), 1)
|
|
993
|
+
])) : U("", !0)
|
|
994
|
+
])
|
|
995
|
+
]),
|
|
996
|
+
_: 1
|
|
997
|
+
}, 8, ["model-value"]),
|
|
998
|
+
o("div", null, [
|
|
999
|
+
u(n, {
|
|
1000
|
+
variant: "primary",
|
|
1001
|
+
label: t(e)("menu.link_product.rules.add_rule"),
|
|
1002
|
+
"prepend-icon": "add",
|
|
1003
|
+
onClick: a[6] || (a[6] = M((s) => te(), ["stop"]))
|
|
1004
|
+
}, null, 8, ["label"])
|
|
1005
|
+
])
|
|
1006
|
+
], 64)) : (i(), S(t(Fe), {
|
|
1007
|
+
key: 1,
|
|
1008
|
+
title: "",
|
|
1009
|
+
subtitle: t(e)("menu.rule_groups.condition_view.empty_data.no_rule_available"),
|
|
1010
|
+
action: {
|
|
1011
|
+
text: t(e)("menu.link_product.rules.add_rule"),
|
|
1012
|
+
callback: () => te()
|
|
1013
|
+
}
|
|
1014
|
+
}, null, 8, ["subtitle", "action"])),
|
|
1015
|
+
Q.value ? (i(), S(Je, {
|
|
1016
|
+
key: 2,
|
|
1017
|
+
state: "error",
|
|
1018
|
+
text: t(F)(Q.value)
|
|
1019
|
+
}, null, 8, ["text"])) : U("", !0)
|
|
1020
|
+
]),
|
|
1021
|
+
_: 1
|
|
1022
|
+
}, 8, ["title", "sub-title"])
|
|
1023
|
+
])
|
|
1024
|
+
]),
|
|
1025
|
+
_: 1
|
|
1026
|
+
}, 8, ["model-value"])) : U("", !0),
|
|
1027
|
+
I.value ? (i(), S(fe, {
|
|
1028
|
+
key: 3,
|
|
1029
|
+
"model-value": I.value,
|
|
1030
|
+
"max-width": 760,
|
|
1031
|
+
"close-button": !1,
|
|
1032
|
+
"onOn:clickedAway": a[14] || (a[14] = (s) => I.value = !1)
|
|
1033
|
+
}, {
|
|
1034
|
+
"side-sheet-header": v(() => [
|
|
1035
|
+
o("div", Yt, [
|
|
1036
|
+
u(n, {
|
|
1037
|
+
variant: "tertiary",
|
|
1038
|
+
"prepend-icon": "arrow_back",
|
|
1039
|
+
"aria-label": t(e)("menu.common.actions.back"),
|
|
1040
|
+
onClick: a[7] || (a[7] = M((s) => I.value = !1, ["stop"]))
|
|
1041
|
+
}, null, 8, ["aria-label"]),
|
|
1042
|
+
o("div", Zt, w(de.value ? t(e)("menu.rule_groups.condition_view.edit_condition") : t(e)("menu.rule_groups.condition_view.add_condition")), 1)
|
|
1043
|
+
])
|
|
1044
|
+
]),
|
|
1045
|
+
"side-sheet-footer": v(() => [
|
|
1046
|
+
o("div", sl, [
|
|
1047
|
+
u(n, {
|
|
1048
|
+
variant: "primary",
|
|
1049
|
+
label: t(e)("menu.common.actions.save"),
|
|
1050
|
+
onClick: De
|
|
1051
|
+
}, null, 8, ["label"]),
|
|
1052
|
+
u(n, {
|
|
1053
|
+
variant: "secondary",
|
|
1054
|
+
label: t(e)("menu.common.actions.cancel"),
|
|
1055
|
+
onClick: a[13] || (a[13] = M((s) => I.value = !1, ["stop"]))
|
|
1056
|
+
}, null, 8, ["label"])
|
|
1057
|
+
])
|
|
1058
|
+
]),
|
|
1059
|
+
default: v(() => [
|
|
1060
|
+
o("div", el, [
|
|
1061
|
+
o("p", tl, w(t(e)("menu.rule_groups.condition_view.condition")), 1),
|
|
1062
|
+
o("div", ll, [
|
|
1063
|
+
(i(!0), h(O, null, W(G.value, (s, T) => (i(), h("div", {
|
|
1064
|
+
key: s.key,
|
|
1065
|
+
class: "flex justify-between gap-8"
|
|
1066
|
+
}, [
|
|
1067
|
+
o("div", al, [
|
|
1068
|
+
u(ue, {
|
|
1069
|
+
class: "flex w-full",
|
|
1070
|
+
"model-value": s.attribute,
|
|
1071
|
+
items: Me(s),
|
|
1072
|
+
placeholder: t(e)("menu.rule_groups.condition_view.select_item"),
|
|
1073
|
+
"aria-label": t(e)("menu.menu_setting.rule_groups.condition.attribute"),
|
|
1074
|
+
"onUpdate:modelValue": (_) => Pe(s, _)
|
|
1075
|
+
}, {
|
|
1076
|
+
"prepend-menu": v(() => [
|
|
1077
|
+
o("div", {
|
|
1078
|
+
onClick: a[9] || (a[9] = M(() => {
|
|
1079
|
+
}, ["stop"]))
|
|
1080
|
+
}, [
|
|
1081
|
+
u(k, {
|
|
1082
|
+
modelValue: Y.value,
|
|
1083
|
+
"onUpdate:modelValue": a[8] || (a[8] = (_) => Y.value = _),
|
|
1084
|
+
class: "px-8",
|
|
1085
|
+
placeholder: t(e)("menu.menu_setting.rule_groups.filter_options")
|
|
1086
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1087
|
+
])
|
|
1088
|
+
]),
|
|
1089
|
+
_: 2
|
|
1090
|
+
}, 1032, ["model-value", "items", "placeholder", "aria-label", "onUpdate:modelValue"]),
|
|
1091
|
+
u(ue, {
|
|
1092
|
+
class: "flex w-full",
|
|
1093
|
+
"model-value": s.operator,
|
|
1094
|
+
items: Re.value,
|
|
1095
|
+
placeholder: t(e)("menu.rule_groups.condition_view.select_item"),
|
|
1096
|
+
"aria-label": t(e)("menu.menu_setting.rule_groups.condition.operator"),
|
|
1097
|
+
"error-messages": K(T, "operator") ? [t(F)(K(T, "operator"))] : [],
|
|
1098
|
+
"onUpdate:modelValue": (_) => Ge(s, _)
|
|
1099
|
+
}, null, 8, ["model-value", "items", "placeholder", "aria-label", "error-messages", "onUpdate:modelValue"]),
|
|
1100
|
+
je(s) ? Ye((i(), h("div", ol, [
|
|
1101
|
+
u(se, {
|
|
1102
|
+
"model-value": String(s.values[0] ?? ""),
|
|
1103
|
+
placeholder: t(e)("menu.menu_setting.rule_groups.condition.value"),
|
|
1104
|
+
"error-messages": K(T, "values") ? [t(F)(K(T, "values"))] : [],
|
|
1105
|
+
"onUpdate:modelValue": (_) => s.values = _ === "" || _ == null ? [] : [String(_)]
|
|
1106
|
+
}, null, 8, ["model-value", "placeholder", "error-messages", "onUpdate:modelValue"])
|
|
1107
|
+
])), [
|
|
1108
|
+
[
|
|
1109
|
+
f,
|
|
1110
|
+
t(e)("menu.menu_setting.rule_groups.condition.value")
|
|
1111
|
+
]
|
|
1112
|
+
]) : (i(), S(ue, {
|
|
1113
|
+
key: 1,
|
|
1114
|
+
class: "flex w-full",
|
|
1115
|
+
"model-value": s.values.map(t(xe)),
|
|
1116
|
+
items: Ue(s),
|
|
1117
|
+
multiselect: "",
|
|
1118
|
+
"hide-chips": "",
|
|
1119
|
+
placeholder: t(e)("menu.rule_groups.condition_view.select_item"),
|
|
1120
|
+
"aria-label": t(e)("menu.menu_setting.rule_groups.condition.value"),
|
|
1121
|
+
"error-messages": K(T, "values") ? [t(F)(K(T, "values"))] : [],
|
|
1122
|
+
"onUpdate:modelValue": (_) => s.values = _.map(t(nt))
|
|
1123
|
+
}, {
|
|
1124
|
+
default: v(() => [
|
|
1125
|
+
o("div", nl, w(Ae(s)), 1)
|
|
1126
|
+
]),
|
|
1127
|
+
"prepend-menu": v(() => [
|
|
1128
|
+
o("div", {
|
|
1129
|
+
class: "flex",
|
|
1130
|
+
onClick: a[11] || (a[11] = M(() => {
|
|
1131
|
+
}, ["stop"]))
|
|
1132
|
+
}, [
|
|
1133
|
+
u(k, {
|
|
1134
|
+
modelValue: Z.value,
|
|
1135
|
+
"onUpdate:modelValue": a[10] || (a[10] = (_) => Z.value = _),
|
|
1136
|
+
class: "px-8",
|
|
1137
|
+
placeholder: t(e)("menu.menu_setting.rule_groups.filter_options")
|
|
1138
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
1139
|
+
])
|
|
1140
|
+
]),
|
|
1141
|
+
_: 2
|
|
1142
|
+
}, 1032, ["model-value", "items", "placeholder", "aria-label", "error-messages", "onUpdate:modelValue"]))
|
|
1143
|
+
]),
|
|
1144
|
+
u(n, {
|
|
1145
|
+
variant: "tertiary",
|
|
1146
|
+
"prepend-icon": "close",
|
|
1147
|
+
"aria-label": t(e)("menu.menu_setting.rule_groups.remove_condition"),
|
|
1148
|
+
onClick: M((_) => Ie(s.key), ["stop"])
|
|
1149
|
+
}, null, 8, ["aria-label", "onClick"])
|
|
1150
|
+
]))), 128)),
|
|
1151
|
+
u(n, {
|
|
1152
|
+
variant: "plain",
|
|
1153
|
+
"prepend-icon": "add",
|
|
1154
|
+
label: t(e)("menu.rule_groups.condition_view.add_condition"),
|
|
1155
|
+
onClick: a[12] || (a[12] = M((s) => Be(), ["stop"]))
|
|
1156
|
+
}, null, 8, ["label"])
|
|
1157
|
+
])
|
|
1158
|
+
])
|
|
1159
|
+
]),
|
|
1160
|
+
_: 1
|
|
1161
|
+
}, 8, ["model-value"])) : U("", !0)
|
|
1162
|
+
])) : U("", !0);
|
|
1163
|
+
};
|
|
1164
|
+
}
|
|
1165
|
+
}), il = { class: "flex h-full min-h-[240px] flex-col items-center justify-center gap-8 p-24 text-center" }, rl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, cl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, dl = /* @__PURE__ */ E({
|
|
1166
|
+
__name: "PlaceholderView",
|
|
1167
|
+
props: {
|
|
1168
|
+
module: {}
|
|
1169
|
+
},
|
|
1170
|
+
setup(L) {
|
|
1171
|
+
const { t: p } = q();
|
|
1172
|
+
return (e, f) => (i(), h("div", il, [
|
|
1173
|
+
o("p", rl, w(e.module), 1),
|
|
1174
|
+
o("p", cl, w(t(p)("menu.common.placeholder.not_migrated")), 1)
|
|
1175
|
+
]));
|
|
1176
|
+
}
|
|
1177
|
+
}), ml = { class: "py-16" }, Sl = /* @__PURE__ */ E({
|
|
1178
|
+
__name: "MenuSetting",
|
|
1179
|
+
setup(L) {
|
|
1180
|
+
const p = tt(), { t: e } = q(), f = H(p.menuSetting.tabs), F = {
|
|
1181
|
+
configuration: "menu.menu_setting.tabs.menu_configuration",
|
|
1182
|
+
priceGroup: "menu.menu_setting.tabs.price_group",
|
|
1183
|
+
memberPricing: "menu.menu_setting.tabs.member_pricing",
|
|
1184
|
+
ruleGroups: "menu.menu_setting.tabs.link_product_rule_groups"
|
|
1185
|
+
}, g = V(
|
|
1186
|
+
() => (f.value.status === "ready" ? f.value.value.tabs : []).filter((m) => m.capability.state !== "hidden").map((m) => ({
|
|
1187
|
+
label: e(F[m.key]),
|
|
1188
|
+
value: m.key
|
|
1189
|
+
}))
|
|
1190
|
+
), d = P("configuration");
|
|
1191
|
+
return (m, A) => {
|
|
1192
|
+
const B = C("FmTabs");
|
|
1193
|
+
return i(), S($e, {
|
|
1194
|
+
heading: t(e)("menu.menu_setting.title")
|
|
1195
|
+
}, {
|
|
1196
|
+
default: v(() => [
|
|
1197
|
+
u(B, {
|
|
1198
|
+
"model-value": d.value,
|
|
1199
|
+
items: g.value,
|
|
1200
|
+
"onUpdate:modelValue": A[0] || (A[0] = (x) => d.value = x)
|
|
1201
|
+
}, null, 8, ["model-value", "items"]),
|
|
1202
|
+
o("div", ml, [
|
|
1203
|
+
d.value === "configuration" ? (i(), S(rt, {
|
|
1204
|
+
key: 0,
|
|
1205
|
+
sdk: t(p)
|
|
1206
|
+
}, null, 8, ["sdk"])) : d.value === "priceGroup" ? (i(), S(gt, {
|
|
1207
|
+
key: 1,
|
|
1208
|
+
sdk: t(p)
|
|
1209
|
+
}, null, 8, ["sdk"])) : d.value === "memberPricing" ? (i(), S(dt, {
|
|
1210
|
+
key: 2,
|
|
1211
|
+
sdk: t(p)
|
|
1212
|
+
}, null, 8, ["sdk"])) : d.value === "ruleGroups" ? (i(), S(ul, {
|
|
1213
|
+
key: 3,
|
|
1214
|
+
sdk: t(p)
|
|
1215
|
+
}, null, 8, ["sdk"])) : (i(), S(dl, {
|
|
1216
|
+
key: 4,
|
|
1217
|
+
module: t(e)(F[d.value])
|
|
1218
|
+
}, null, 8, ["module"]))
|
|
1219
|
+
])
|
|
1220
|
+
]),
|
|
1221
|
+
_: 1
|
|
1222
|
+
}, 8, ["heading"]);
|
|
1223
|
+
};
|
|
1224
|
+
}
|
|
1225
|
+
});
|
|
1226
|
+
export {
|
|
1227
|
+
Sl as default
|
|
1228
|
+
};
|