@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,55 @@
|
|
|
1
|
+
import { defineComponent as g, computed as m, resolveComponent as d, openBlock as F, createBlock as w, unref as s, withCtx as p, createVNode as u, mergeProps as c, renderSlot as b } from "vue";
|
|
2
|
+
import { useI18n as y } from "@feedmepos/mf-common";
|
|
3
|
+
import { _ as k } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
|
|
4
|
+
import { b as h } from "./provide-Tmjfji09.js";
|
|
5
|
+
const P = /* @__PURE__ */ g({
|
|
6
|
+
__name: "OrderPacingFields",
|
|
7
|
+
props: {
|
|
8
|
+
view: {},
|
|
9
|
+
session: {},
|
|
10
|
+
validation: {}
|
|
11
|
+
},
|
|
12
|
+
setup(v) {
|
|
13
|
+
const e = v, { t: l } = y(), o = h(), r = m(
|
|
14
|
+
() => e.view ? e.validation.issue(e.view.fieldIssues, "name") ?? e.view.nameIssue : null
|
|
15
|
+
), n = m(
|
|
16
|
+
() => e.view ? e.validation.issue(e.view.fieldIssues, "delay") ?? e.view.delayIssue : null
|
|
17
|
+
);
|
|
18
|
+
return (a, I) => {
|
|
19
|
+
const _ = d("FmTextField"), f = d("FmStepperField");
|
|
20
|
+
return F(), w(k, {
|
|
21
|
+
title: s(l)("menu.order_pacing.time_preset.label")
|
|
22
|
+
}, {
|
|
23
|
+
default: p(() => {
|
|
24
|
+
var i, t;
|
|
25
|
+
return [
|
|
26
|
+
u(_, c({
|
|
27
|
+
autofocus: "",
|
|
28
|
+
"error-messages": r.value ? [s(o)(r.value)] : [],
|
|
29
|
+
label: s(l)("menu.order_pacing.time_preset.preset_name"),
|
|
30
|
+
"label-mark": "required",
|
|
31
|
+
"model-value": ((i = a.view) == null ? void 0 : i.name) ?? "",
|
|
32
|
+
placeholder: s(l)("menu.order_pacing.time_preset.placeholder")
|
|
33
|
+
}, a.validation.field("name", a.session.setName)), {
|
|
34
|
+
append: p(() => [
|
|
35
|
+
b(a.$slots, "name-append")
|
|
36
|
+
]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 16, ["error-messages", "label", "model-value", "placeholder"]),
|
|
39
|
+
u(f, c({
|
|
40
|
+
"error-messages": n.value ? [s(o)(n.value)] : [],
|
|
41
|
+
label: s(l)("menu.order_pacing.time_preset.delay"),
|
|
42
|
+
min: 0,
|
|
43
|
+
"model-value": ((t = a.view) == null ? void 0 : t.delay) ?? 0,
|
|
44
|
+
step: 5
|
|
45
|
+
}, a.validation.field("delay", a.session.setDelay)), null, 16, ["error-messages", "label", "model-value"])
|
|
46
|
+
];
|
|
47
|
+
}),
|
|
48
|
+
_: 3
|
|
49
|
+
}, 8, ["title"]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
P as _
|
|
55
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as r, openBlock as t, createElementBlock as n, createElementVNode as s, renderSlot as o, toDisplayString as a, createCommentVNode as d, normalizeClass as l } from "vue";
|
|
2
|
+
const c = {
|
|
3
|
+
class: /* @__PURE__ */ l([
|
|
4
|
+
"flex flex-col",
|
|
5
|
+
"p-24 xs:p-0",
|
|
6
|
+
"bg-fm-color-neutral-white",
|
|
7
|
+
"min-h-[calc(100dvh-56px)]",
|
|
8
|
+
"xs:max-h-[calc(100dvh-56px)]"
|
|
9
|
+
])
|
|
10
|
+
}, i = {
|
|
11
|
+
class: /* @__PURE__ */ l([
|
|
12
|
+
"flex items-center",
|
|
13
|
+
"mb-24 xs:mb-0 xs:p-16",
|
|
14
|
+
"xs:border-b border-fm-color-neutral-gray-100"
|
|
15
|
+
])
|
|
16
|
+
}, p = { class: "flex flex-col gap-4" }, m = { class: "fm-typo-en-title-md-600" }, h = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "text-fm-color-typo-secondary pt-4"
|
|
19
|
+
}, u = /* @__PURE__ */ r({
|
|
20
|
+
__name: "PageLayout",
|
|
21
|
+
props: {
|
|
22
|
+
heading: {},
|
|
23
|
+
subheading: {}
|
|
24
|
+
},
|
|
25
|
+
setup(f) {
|
|
26
|
+
return (e, _) => (t(), n("div", c, [
|
|
27
|
+
s("div", i, [
|
|
28
|
+
o(e.$slots, "prepend-heading"),
|
|
29
|
+
s("div", p, [
|
|
30
|
+
s("h1", m, a(e.heading), 1),
|
|
31
|
+
e.subheading ? (t(), n("p", h, a(e.subheading), 1)) : d("", !0)
|
|
32
|
+
]),
|
|
33
|
+
o(e.$slots, "append-heading")
|
|
34
|
+
]),
|
|
35
|
+
o(e.$slots, "default")
|
|
36
|
+
]));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
u as _
|
|
41
|
+
};
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
import { defineComponent as N, ref as J, computed as i, shallowRef as K, watch as Q, onBeforeUnmount as X, resolveComponent as F, openBlock as n, createBlock as _, unref as t, withCtx as Y, createElementBlock as I, createElementVNode as o, createCommentVNode as w, toDisplayString as k, createVNode as D, withDirectives as Z, vShow as ee } from "vue";
|
|
2
|
+
import { useI18n as le } from "@feedmepos/mf-common";
|
|
3
|
+
import { _ as U } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
|
|
4
|
+
import { _ as te } from "./PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js";
|
|
5
|
+
import { b as ae, u as ue, a as se } from "./provide-Tmjfji09.js";
|
|
6
|
+
function ne(g, r) {
|
|
7
|
+
const l = new URL(g);
|
|
8
|
+
return l.searchParams.set("parent", r), { src: l.toString(), origin: l.origin };
|
|
9
|
+
}
|
|
10
|
+
function ie(g, r, l = window) {
|
|
11
|
+
return {
|
|
12
|
+
post(x) {
|
|
13
|
+
var d, v;
|
|
14
|
+
(v = (d = g()) == null ? void 0 : d.contentWindow) == null || v.postMessage(x, r);
|
|
15
|
+
},
|
|
16
|
+
subscribe(x) {
|
|
17
|
+
const d = (v) => {
|
|
18
|
+
var s;
|
|
19
|
+
if (v.origin !== r) return;
|
|
20
|
+
const f = (s = g()) == null ? void 0 : s.contentWindow;
|
|
21
|
+
!f || v.source !== f || x(v.data);
|
|
22
|
+
};
|
|
23
|
+
return l.addEventListener("message", d), () => l.removeEventListener("message", d);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const oe = {
|
|
28
|
+
key: 3,
|
|
29
|
+
class: "flex flex-wrap items-start gap-24"
|
|
30
|
+
}, re = { class: "flex w-[320px] max-w-full shrink-0 flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = {
|
|
31
|
+
key: 4,
|
|
32
|
+
class: "flex flex-col gap-4",
|
|
33
|
+
role: "group",
|
|
34
|
+
"aria-labelledby": "menu-preview-device-label"
|
|
35
|
+
}, de = {
|
|
36
|
+
id: "menu-preview-device-label",
|
|
37
|
+
class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary"
|
|
38
|
+
}, ve = ["aria-label"], pe = { class: "fm-typo-en-body-lg-600" }, _e = { class: "flex list-disc flex-col gap-4 pl-16" }, fe = { class: "relative flex min-w-0 flex-[1_1_480px] flex-col items-center rounded-lg bg-fm-color-neutral-gray-100 p-16" }, we = ["src", "title"], ge = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "absolute inset-0 flex flex-col items-center justify-center gap-8",
|
|
41
|
+
"data-testid": "menu-preview-loading",
|
|
42
|
+
role: "status"
|
|
43
|
+
}, be = { class: "text-fm-color-typo-secondary" }, he = {
|
|
44
|
+
key: 2,
|
|
45
|
+
class: "pt-8 text-fm-color-typo-secondary",
|
|
46
|
+
"data-testid": "menu-preview-summary"
|
|
47
|
+
}, B = "$main", ke = /* @__PURE__ */ N({
|
|
48
|
+
__name: "MenuPreview",
|
|
49
|
+
props: {
|
|
50
|
+
sdk: {},
|
|
51
|
+
simulatorUrl: {},
|
|
52
|
+
parentOrigin: {}
|
|
53
|
+
},
|
|
54
|
+
setup(g) {
|
|
55
|
+
const r = g, { t: l, locale: x } = le(), d = ae(), v = J(null), f = i(
|
|
56
|
+
() => r.simulatorUrl ? ne(
|
|
57
|
+
r.simulatorUrl,
|
|
58
|
+
r.parentOrigin ?? window.location.origin
|
|
59
|
+
) : null
|
|
60
|
+
), s = f.value ? r.sdk.preview.open({ appLocale: x.value }) : null, b = s ? ue(s.view) : K({ status: "loading" }), u = i(
|
|
61
|
+
() => b.value.status === "ready" ? b.value.value : null
|
|
62
|
+
);
|
|
63
|
+
let h = null;
|
|
64
|
+
Q(
|
|
65
|
+
v,
|
|
66
|
+
(e) => {
|
|
67
|
+
h == null || h(), h = e && f.value && s ? s.attach(
|
|
68
|
+
ie(() => v.value, f.value.origin)
|
|
69
|
+
) : null;
|
|
70
|
+
},
|
|
71
|
+
{ flush: "post" }
|
|
72
|
+
), X(() => {
|
|
73
|
+
h == null || h(), s == null || s.dispose();
|
|
74
|
+
});
|
|
75
|
+
const S = (e) => !!e && e.state !== "hidden", L = (e) => (e == null ? void 0 : e.state) === "disabled", R = i(
|
|
76
|
+
() => {
|
|
77
|
+
var e;
|
|
78
|
+
return (((e = u.value) == null ? void 0 : e.restaurants) ?? []).map((a) => ({
|
|
79
|
+
label: a.label,
|
|
80
|
+
value: a.id
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
), A = {
|
|
84
|
+
default: "menu.menu_preview.usage.default",
|
|
85
|
+
pickup: "menu.menu_preview.usage.pickup",
|
|
86
|
+
takeaway: "menu.menu_preview.usage.takeaway",
|
|
87
|
+
additional: "menu.menu_preview.usage.additional"
|
|
88
|
+
}, G = i(
|
|
89
|
+
() => {
|
|
90
|
+
var e;
|
|
91
|
+
return (((e = u.value) == null ? void 0 : e.catalogs) ?? []).map((a) => ({
|
|
92
|
+
label: a.name ?? l("menu.menu_preview.labels.main_catalog"),
|
|
93
|
+
value: a.id ?? B,
|
|
94
|
+
...a.usages.length > 0 ? {
|
|
95
|
+
sublabel: a.usages.map((m) => l(A[m])).join(l("menu.common.labels.list_separator"))
|
|
96
|
+
} : {}
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
), O = i(
|
|
100
|
+
() => {
|
|
101
|
+
var e;
|
|
102
|
+
return (((e = u.value) == null ? void 0 : e.schedulers) ?? []).map((a) => ({
|
|
103
|
+
label: a.name,
|
|
104
|
+
value: a.id
|
|
105
|
+
}));
|
|
106
|
+
}
|
|
107
|
+
), $ = i(
|
|
108
|
+
() => {
|
|
109
|
+
var e;
|
|
110
|
+
return (((e = u.value) == null ? void 0 : e.locales) ?? []).map((a) => ({
|
|
111
|
+
label: a.name,
|
|
112
|
+
value: a.code
|
|
113
|
+
}));
|
|
114
|
+
}
|
|
115
|
+
), j = {
|
|
116
|
+
phone: "menu.menu_preview.device.phone",
|
|
117
|
+
tablet: "menu.menu_preview.device.tablet",
|
|
118
|
+
kiosk: "menu.menu_preview.device.kiosk"
|
|
119
|
+
}, T = {
|
|
120
|
+
phone: "smartphone",
|
|
121
|
+
tablet: "tablet",
|
|
122
|
+
kiosk: "tv"
|
|
123
|
+
}, V = i(
|
|
124
|
+
() => {
|
|
125
|
+
var e;
|
|
126
|
+
return (((e = u.value) == null ? void 0 : e.devices) ?? []).map((a) => ({
|
|
127
|
+
device: a,
|
|
128
|
+
item: {
|
|
129
|
+
label: l(j[a]),
|
|
130
|
+
icon: T[a]
|
|
131
|
+
}
|
|
132
|
+
}));
|
|
133
|
+
}
|
|
134
|
+
), W = i(
|
|
135
|
+
() => {
|
|
136
|
+
var e;
|
|
137
|
+
return ((e = V.value.find((a) => {
|
|
138
|
+
var m;
|
|
139
|
+
return a.device === ((m = u.value) == null ? void 0 : m.device);
|
|
140
|
+
})) == null ? void 0 : e.item) ?? null;
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
function q(e) {
|
|
144
|
+
const a = V.value.find((m) => m.item === e);
|
|
145
|
+
a && (s == null || s.selectDevice(a.device));
|
|
146
|
+
}
|
|
147
|
+
const y = i(() => {
|
|
148
|
+
var e;
|
|
149
|
+
return ((e = u.value) == null ? void 0 : e.simulator) ?? null;
|
|
150
|
+
}), E = i(() => {
|
|
151
|
+
var e, a;
|
|
152
|
+
return b.value.status === "loading" ? l("menu.menu_preview.status.loading") : ((e = y.value) == null ? void 0 : e.status) === "connecting" ? l("menu.menu_preview.status.connecting") : ((a = y.value) == null ? void 0 : a.status) === "building" ? l("menu.menu_preview.status.building") : null;
|
|
153
|
+
}), C = i(
|
|
154
|
+
() => {
|
|
155
|
+
var e;
|
|
156
|
+
return ((e = y.value) == null ? void 0 : e.status) === "failed" ? y.value : null;
|
|
157
|
+
}
|
|
158
|
+
), M = i(() => {
|
|
159
|
+
const e = y.value;
|
|
160
|
+
return (e == null ? void 0 : e.status) !== "ready" ? null : l("menu.menu_preview.status.summary", {
|
|
161
|
+
categories: l(
|
|
162
|
+
"menu.menu_preview.status.categories",
|
|
163
|
+
{ count: e.categoryCount },
|
|
164
|
+
e.categoryCount
|
|
165
|
+
),
|
|
166
|
+
items: l(
|
|
167
|
+
"menu.menu_preview.status.items",
|
|
168
|
+
{ count: e.itemCount },
|
|
169
|
+
e.itemCount
|
|
170
|
+
)
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
function P() {
|
|
174
|
+
s == null || s.retry();
|
|
175
|
+
}
|
|
176
|
+
return (e, a) => {
|
|
177
|
+
const m = F("FmSelect"), z = F("FmButtonGroup"), H = F("FmCircularProgress");
|
|
178
|
+
return n(), _(te, {
|
|
179
|
+
heading: t(l)("menu.menu_preview.title"),
|
|
180
|
+
subheading: t(l)("menu.menu_preview.subtitle")
|
|
181
|
+
}, {
|
|
182
|
+
default: Y(() => [
|
|
183
|
+
f.value ? t(b).status === "error" ? (n(), _(t(U), {
|
|
184
|
+
key: 1,
|
|
185
|
+
title: t(l)("menu.menu_preview.load_failed.title"),
|
|
186
|
+
subtitle: t(d)(t(b).error.message),
|
|
187
|
+
action: {
|
|
188
|
+
text: t(l)("menu.menu_preview.actions.retry"),
|
|
189
|
+
icon: "refresh",
|
|
190
|
+
callback: P
|
|
191
|
+
}
|
|
192
|
+
}, null, 8, ["title", "subtitle", "action"])) : t(b).status === "unavailable" ? (n(), _(t(U), {
|
|
193
|
+
key: 2,
|
|
194
|
+
title: t(l)("menu.menu_preview.title"),
|
|
195
|
+
subtitle: t(d)(t(b).reason)
|
|
196
|
+
}, null, 8, ["title", "subtitle"])) : (n(), I("div", oe, [
|
|
197
|
+
o("aside", re, [
|
|
198
|
+
o("div", me, [
|
|
199
|
+
u.value && S(u.value.restaurantSelector) ? (n(), _(m, {
|
|
200
|
+
key: 0,
|
|
201
|
+
class: "w-full",
|
|
202
|
+
"data-testid": "menu-preview-restaurant",
|
|
203
|
+
label: t(l)("menu.menu_preview.labels.restaurant"),
|
|
204
|
+
items: R.value,
|
|
205
|
+
"model-value": u.value.restaurantId,
|
|
206
|
+
disabled: L(u.value.restaurantSelector),
|
|
207
|
+
searchable: "",
|
|
208
|
+
"onUpdate:modelValue": a[0] || (a[0] = (p) => {
|
|
209
|
+
var c;
|
|
210
|
+
return (c = t(s)) == null ? void 0 : c.selectRestaurant(p);
|
|
211
|
+
})
|
|
212
|
+
}, null, 8, ["label", "items", "model-value", "disabled"])) : w("", !0),
|
|
213
|
+
u.value && S(u.value.catalogSelector) ? (n(), _(m, {
|
|
214
|
+
key: 1,
|
|
215
|
+
class: "w-full",
|
|
216
|
+
"data-testid": "menu-preview-catalog",
|
|
217
|
+
label: t(l)("menu.menu_preview.labels.catalog"),
|
|
218
|
+
items: G.value,
|
|
219
|
+
"model-value": u.value.catalogId ?? B,
|
|
220
|
+
disabled: L(u.value.catalogSelector),
|
|
221
|
+
"onUpdate:modelValue": a[1] || (a[1] = (p) => {
|
|
222
|
+
var c;
|
|
223
|
+
return (c = t(s)) == null ? void 0 : c.selectCatalog(
|
|
224
|
+
p === B ? null : p
|
|
225
|
+
);
|
|
226
|
+
})
|
|
227
|
+
}, null, 8, ["label", "items", "model-value", "disabled"])) : w("", !0),
|
|
228
|
+
u.value && S(u.value.schedulerSelector) ? (n(), _(m, {
|
|
229
|
+
key: 2,
|
|
230
|
+
class: "w-full",
|
|
231
|
+
"data-testid": "menu-preview-scheduler",
|
|
232
|
+
label: t(l)("menu.menu_preview.labels.scheduler"),
|
|
233
|
+
items: O.value,
|
|
234
|
+
"model-value": u.value.schedulerId,
|
|
235
|
+
disabled: L(u.value.schedulerSelector),
|
|
236
|
+
"onUpdate:modelValue": a[2] || (a[2] = (p) => {
|
|
237
|
+
var c;
|
|
238
|
+
return (c = t(s)) == null ? void 0 : c.selectScheduler(p);
|
|
239
|
+
})
|
|
240
|
+
}, null, 8, ["label", "items", "model-value", "disabled"])) : w("", !0),
|
|
241
|
+
u.value && S(u.value.localeSelector) ? (n(), _(m, {
|
|
242
|
+
key: 3,
|
|
243
|
+
class: "w-full",
|
|
244
|
+
"data-testid": "menu-preview-locale",
|
|
245
|
+
label: t(l)("menu.menu_preview.labels.menu_language"),
|
|
246
|
+
"label-info": t(l)("menu.menu_preview.labels.menu_language_info"),
|
|
247
|
+
items: $.value,
|
|
248
|
+
"model-value": u.value.locale,
|
|
249
|
+
"onUpdate:modelValue": a[3] || (a[3] = (p) => {
|
|
250
|
+
var c;
|
|
251
|
+
return (c = t(s)) == null ? void 0 : c.selectLocale(p);
|
|
252
|
+
})
|
|
253
|
+
}, null, 8, ["label", "label-info", "items", "model-value"])) : w("", !0),
|
|
254
|
+
u.value ? (n(), I("div", ce, [
|
|
255
|
+
o("span", de, k(t(l)("menu.menu_preview.labels.device")), 1),
|
|
256
|
+
D(z, {
|
|
257
|
+
"data-testid": "menu-preview-device",
|
|
258
|
+
items: V.value.map((p) => p.item),
|
|
259
|
+
"model-value": W.value,
|
|
260
|
+
"onUpdate:modelValue": q
|
|
261
|
+
}, null, 8, ["items", "model-value"])
|
|
262
|
+
])) : w("", !0)
|
|
263
|
+
]),
|
|
264
|
+
o("section", {
|
|
265
|
+
class: "flex flex-col gap-8 rounded-lg border border-fm-color-neutral-gray-200 p-16",
|
|
266
|
+
"aria-label": t(l)("menu.menu_preview.limits.title")
|
|
267
|
+
}, [
|
|
268
|
+
o("h2", pe, k(t(l)("menu.menu_preview.limits.title")), 1),
|
|
269
|
+
o("ul", _e, [
|
|
270
|
+
o("li", null, k(t(l)("menu.menu_preview.limits.stock")), 1),
|
|
271
|
+
o("li", null, k(t(l)("menu.menu_preview.limits.pricing")), 1),
|
|
272
|
+
o("li", null, k(t(l)("menu.menu_preview.limits.checkout")), 1)
|
|
273
|
+
])
|
|
274
|
+
], 8, ve)
|
|
275
|
+
]),
|
|
276
|
+
o("div", fe, [
|
|
277
|
+
Z(o("iframe", {
|
|
278
|
+
ref_key: "frameElement",
|
|
279
|
+
ref: v,
|
|
280
|
+
class: "h-[880px] w-full border-0 lg:h-[calc(100dvh-256px)] lg:min-h-[560px]",
|
|
281
|
+
"data-testid": "menu-preview-frame",
|
|
282
|
+
src: f.value.src,
|
|
283
|
+
title: t(l)("menu.menu_preview.frame_title"),
|
|
284
|
+
sandbox: "allow-scripts allow-same-origin"
|
|
285
|
+
}, null, 8, we), [
|
|
286
|
+
[ee, !C.value]
|
|
287
|
+
]),
|
|
288
|
+
E.value ? (n(), I("div", ge, [
|
|
289
|
+
D(H),
|
|
290
|
+
o("span", be, k(E.value), 1)
|
|
291
|
+
])) : w("", !0),
|
|
292
|
+
C.value ? (n(), _(t(U), {
|
|
293
|
+
key: 1,
|
|
294
|
+
"data-testid": "menu-preview-failed",
|
|
295
|
+
title: t(l)("menu.menu_preview.failed.title"),
|
|
296
|
+
subtitle: t(d)(C.value.reason),
|
|
297
|
+
action: C.value.retryable ? {
|
|
298
|
+
text: t(l)("menu.menu_preview.actions.retry"),
|
|
299
|
+
icon: "refresh",
|
|
300
|
+
callback: P
|
|
301
|
+
} : void 0
|
|
302
|
+
}, null, 8, ["title", "subtitle", "action"])) : w("", !0),
|
|
303
|
+
M.value ? (n(), I("p", he, k(M.value), 1)) : w("", !0)
|
|
304
|
+
])
|
|
305
|
+
])) : (n(), _(t(U), {
|
|
306
|
+
key: 0,
|
|
307
|
+
title: t(l)("menu.menu_preview.not_configured.title"),
|
|
308
|
+
subtitle: t(l)("menu.menu_preview.not_configured.subtitle")
|
|
309
|
+
}, null, 8, ["title", "subtitle"]))
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
}, 8, ["heading", "subheading"]);
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
}), Ue = /* @__PURE__ */ N({
|
|
316
|
+
__name: "Preview",
|
|
317
|
+
setup(g) {
|
|
318
|
+
const r = se(), l = "https://menu-simulator-dev.feedme-dev.workers.dev";
|
|
319
|
+
return (x, d) => (n(), _(ke, {
|
|
320
|
+
sdk: t(r),
|
|
321
|
+
"simulator-url": t(l)
|
|
322
|
+
}, null, 8, ["sdk", "simulator-url"]));
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
export {
|
|
326
|
+
Ue as default
|
|
327
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as a, computed as c, resolveComponent as m, openBlock as l, createBlock as u, unref as p, createCommentVNode as i } from "vue";
|
|
2
|
+
import { useI18n as d } from "@feedmepos/mf-common";
|
|
3
|
+
import { u as _ } from "./provide-Tmjfji09.js";
|
|
4
|
+
const b = /* @__PURE__ */ a({
|
|
5
|
+
__name: "PriceTierNotice",
|
|
6
|
+
props: {
|
|
7
|
+
sdk: {}
|
|
8
|
+
},
|
|
9
|
+
setup(o) {
|
|
10
|
+
const n = o, { t: s } = d(), e = _(n.sdk.priceTier.notice), t = c(
|
|
11
|
+
() => e.value.status === "ready" ? e.value.value.message : null
|
|
12
|
+
);
|
|
13
|
+
return (f, k) => {
|
|
14
|
+
const r = m("FmSnackbar");
|
|
15
|
+
return t.value ? (l(), u(r, {
|
|
16
|
+
key: 0,
|
|
17
|
+
"z-index": 0,
|
|
18
|
+
class: "!max-w-full",
|
|
19
|
+
title: p(s)(t.value.code)
|
|
20
|
+
}, null, 8, ["title"])) : i("", !0);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
b as _
|
|
26
|
+
};
|