@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.
Files changed (263) hide show
  1. package/README.md +30 -2
  2. package/dist/AddPriceGroupDialog.vue_vue_type_script_setup_true_lang-DhKyG3gY.js +20 -0
  3. package/dist/App-C6k--u1c.js +8316 -0
  4. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-C9OSr8ft.js +98 -0
  5. package/dist/BindingLinkDialog.vue_vue_type_script_setup_true_lang-BZVQRyRI.js +180 -0
  6. package/dist/BindingTable.vue_vue_type_script_setup_true_lang-DBzjWI_6.js +179 -0
  7. package/dist/Catalog-DEYN4dMN.js +374 -0
  8. package/dist/CatalogBinding-NnPKdPvx.js +315 -0
  9. package/dist/CatalogEditTabs.vue_vue_type_script_setup_true_lang-OshqaPTE.js +97 -0
  10. package/dist/CatalogEditor.vue_vue_type_script_setup_true_lang-poznuDXu.js +447 -0
  11. package/dist/CatalogLinkProductAction.vue_vue_type_script_setup_true_lang-BSMAIkQ2.js +117 -0
  12. package/dist/Category-BdUP0o34.js +13 -0
  13. package/dist/Category-CkQiwP9e.js +52 -0
  14. package/dist/CategoryList.vue_vue_type_script_setup_true_lang-UgNVpYgp.js +797 -0
  15. package/dist/CookingGuide-CtDkm74r.js +842 -0
  16. package/dist/FormItem.vue_vue_type_script_setup_true_lang-C2S6QCyR.js +26 -0
  17. package/dist/FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js +1774 -0
  18. package/dist/Group-D2HngOjr.js +52 -0
  19. package/dist/Group-DSj7_16V.js +13 -0
  20. package/dist/GroupList.vue_vue_type_script_setup_true_lang-BmmsSKTt.js +2183 -0
  21. package/dist/Ingredient-BHqz7kjQ.js +463 -0
  22. package/dist/LinkProductSideSheet.vue_vue_type_script_setup_true_lang-D9jK-Fhn.js +709 -0
  23. package/dist/ListCountTag.vue_vue_type_script_setup_true_lang-0bjk8Aly.js +15 -0
  24. package/dist/MenuSetting-DF-cJH7N.js +1228 -0
  25. package/dist/OrderPacing-CejS9dEI.js +698 -0
  26. package/dist/OrderPacingFields.vue_vue_type_script_setup_true_lang-C2mixGUk.js +55 -0
  27. package/dist/PageLayout.vue_vue_type_script_setup_true_lang-B3szUH39.js +41 -0
  28. package/dist/Preview-1C7jGJuY.js +327 -0
  29. package/dist/PriceTierNotice.vue_vue_type_script_setup_true_lang-CxKHCptJ.js +26 -0
  30. package/dist/PrintRoute-BNnMcgTf.js +473 -0
  31. package/dist/Product-BoUKxogB.js +44 -0
  32. package/dist/ProductChipSummary.vue_vue_type_script_setup_true_lang-D8DygCBl.js +110 -0
  33. package/dist/ProductEditorHost.vue_vue_type_script_setup_true_lang-Bm8_FTvr.js +83 -0
  34. package/dist/ProductFilterMenu.vue_vue_type_script_setup_true_lang-Cgc0Ms_n.js +101 -0
  35. package/dist/ProductGroupCreateSheet.vue_vue_type_script_setup_true_lang-Cx_mW05R.js +1246 -0
  36. package/dist/ProductImageEditorDialog.vue_vue_type_script_setup_true_lang-CUeYaXYg.js +1955 -0
  37. package/dist/ProductInlineCreateHost.vue_vue_type_script_setup_true_lang-CeYyZX7g.js +5401 -0
  38. package/dist/ProductInternalTools-b3sy8bWy.js +2147 -0
  39. package/dist/ProductInventoryDialog-DO0D8e3Z.js +4 -0
  40. package/dist/ProductInventoryDialog.vue_vue_type_script_setup_true_lang-y9Mz__o9.js +187 -0
  41. package/dist/ProductList.vue_vue_type_script_setup_true_lang-n_UYIwwt.js +10353 -0
  42. package/dist/ProductVariantTranslationSheet.vue_vue_type_script_setup_true_lang-ClG3Prfm.js +218 -0
  43. package/dist/Products-7vlFJB0P.js +155 -0
  44. package/dist/Publish-DTP-CgV-.js +1261 -0
  45. package/dist/Recipe-C1W8_15H.js +350 -0
  46. package/dist/Scheduler-JRjozwP_.js +637 -0
  47. package/dist/ServingSequence-BGT5m7JB.js +336 -0
  48. package/dist/Setting-CS_M1gMN.js +173 -0
  49. package/dist/Subcategory-Cgy9CQCz.js +412 -0
  50. package/dist/Takeaway-Bpo9XA-j.js +48 -0
  51. package/dist/Takeaway-DO2dmFGP.js +13 -0
  52. package/dist/TakeawayList.vue_vue_type_script_setup_true_lang-C7KexF7H.js +554 -0
  53. package/dist/TranslationLanguageSelector.vue_vue_type_script_setup_true_lang-BJZ6VcrT.js +161 -0
  54. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-B0j2PNih.js +158 -0
  55. package/dist/TranslationViewChip.vue_vue_type_script_setup_true_lang-CAkLEmSA.js +69 -0
  56. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BHxmPO7F.js +1213 -0
  57. package/dist/Unit-Bn5UzMp1.js +385 -0
  58. package/dist/Variant-DmeGEEkw.js +538 -0
  59. package/dist/_id_-DC1dJIaj.js +28 -0
  60. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  61. package/dist/app-Bd7W2PYm.js +2008 -0
  62. package/dist/app.js +8 -0
  63. package/dist/apps/mf-menu/src/App.vue.d.ts +2 -0
  64. package/dist/apps/mf-menu/src/Entry.vue.d.ts +4 -0
  65. package/dist/apps/mf-menu/src/app.d.ts +16771 -0
  66. package/dist/apps/mf-menu/src/assets/icons/index.d.ts +4 -0
  67. package/dist/apps/mf-menu/src/components/CatalogBindingList.vue.d.ts +9 -0
  68. package/dist/apps/mf-menu/src/components/CatalogList.vue.d.ts +6 -0
  69. package/dist/apps/mf-menu/src/components/CategoryImageField.vue.d.ts +17 -0
  70. package/dist/apps/mf-menu/src/components/CategoryList.vue.d.ts +28 -0
  71. package/dist/apps/mf-menu/src/components/Fields/RangeSlider.vue.d.ts +23 -0
  72. package/dist/apps/mf-menu/src/components/GroupList.vue.d.ts +28 -0
  73. package/dist/apps/mf-menu/src/components/GroupTranslationSideSheet.vue.d.ts +14 -0
  74. package/dist/apps/mf-menu/src/components/IngredientList.vue.d.ts +15 -0
  75. package/dist/apps/mf-menu/src/components/MenuHeaderContext.vue.d.ts +2 -0
  76. package/dist/apps/mf-menu/src/components/MenuRestaurantSelector.vue.d.ts +7 -0
  77. package/dist/apps/mf-menu/src/components/MenuSetting/AddMemberTierDialog.vue.d.ts +2 -0
  78. package/dist/apps/mf-menu/src/components/MenuSetting/AddPriceGroupDialog.vue.d.ts +2 -0
  79. package/dist/apps/mf-menu/src/components/MenuSetting/ConfigurationTab.vue.d.ts +6 -0
  80. package/dist/apps/mf-menu/src/components/MenuSetting/MemberPricingTab.vue.d.ts +6 -0
  81. package/dist/apps/mf-menu/src/components/MenuSetting/PriceGroupTab.vue.d.ts +6 -0
  82. package/dist/apps/mf-menu/src/components/MenuSetting/RuleGroupsTab.vue.d.ts +6 -0
  83. package/dist/apps/mf-menu/src/components/Navigator.vue.d.ts +2 -0
  84. package/dist/apps/mf-menu/src/components/OrderPacingList.vue.d.ts +6 -0
  85. package/dist/apps/mf-menu/src/components/PriceTier/PriceTierNotice.vue.d.ts +6 -0
  86. package/dist/apps/mf-menu/src/components/PrintRouteList.vue.d.ts +6 -0
  87. package/dist/apps/mf-menu/src/components/Product/LocalizedCurrencySymbol.vue.d.ts +5 -0
  88. package/dist/apps/mf-menu/src/components/Product/ProductAttributeFilter.vue.d.ts +13 -0
  89. package/dist/apps/mf-menu/src/components/Product/ProductCategorySelector.vue.d.ts +11 -0
  90. package/dist/apps/mf-menu/src/components/Product/ProductChipSummary.vue.d.ts +9 -0
  91. package/dist/apps/mf-menu/src/components/Product/ProductChoicePicker.vue.d.ts +15 -0
  92. package/dist/apps/mf-menu/src/components/Product/ProductEditorHost.vue.d.ts +26 -0
  93. package/dist/apps/mf-menu/src/components/Product/ProductFilterMenu.vue.d.ts +26 -0
  94. package/dist/apps/mf-menu/src/components/Product/ProductForm.vue.d.ts +42 -0
  95. package/dist/apps/mf-menu/src/components/Product/ProductFormSection.vue.d.ts +41 -0
  96. package/dist/apps/mf-menu/src/components/Product/ProductGroupCreateSheet.vue.d.ts +19 -0
  97. package/dist/apps/mf-menu/src/components/Product/ProductGroupSheet.vue.d.ts +56 -0
  98. package/dist/apps/mf-menu/src/components/Product/ProductInlineCategoryCreateField.vue.d.ts +10 -0
  99. package/dist/apps/mf-menu/src/components/Product/ProductInlineCreateHost.vue.d.ts +38 -0
  100. package/dist/apps/mf-menu/src/components/Product/ProductInlineSubcategoryCreateField.vue.d.ts +10 -0
  101. package/dist/apps/mf-menu/src/components/Product/ProductInventoryDialog.vue.d.ts +12 -0
  102. package/dist/apps/mf-menu/src/components/Product/ProductLocaleBadge.vue.d.ts +6 -0
  103. package/dist/apps/mf-menu/src/components/Product/ProductMemberPriceTooltip.vue.d.ts +6 -0
  104. package/dist/apps/mf-menu/src/components/Product/ProductMoneyField.vue.d.ts +25 -0
  105. package/dist/apps/mf-menu/src/components/Product/ProductOverviewSheet.vue.d.ts +11 -0
  106. package/dist/apps/mf-menu/src/components/Product/ProductPacingSheet.vue.d.ts +13 -0
  107. package/dist/apps/mf-menu/src/components/Product/ProductPriceTierButton.vue.d.ts +11 -0
  108. package/dist/apps/mf-menu/src/components/Product/ProductPricingSheet.vue.d.ts +26 -0
  109. package/dist/apps/mf-menu/src/components/Product/ProductPrintRouteSheet.vue.d.ts +12 -0
  110. package/dist/apps/mf-menu/src/components/Product/ProductQuantityField.vue.d.ts +16 -0
  111. package/dist/apps/mf-menu/src/components/Product/ProductSummaryCard.vue.d.ts +9 -0
  112. package/dist/apps/mf-menu/src/components/Product/ProductTakeawaySheet.vue.d.ts +12 -0
  113. package/dist/apps/mf-menu/src/components/Product/ProductTranslationDialog.vue.d.ts +16 -0
  114. package/dist/apps/mf-menu/src/components/Product/ProductVariantCreateSheet.vue.d.ts +12 -0
  115. package/dist/apps/mf-menu/src/components/Product/ProductVariantTranslationSheet.vue.d.ts +13 -0
  116. package/dist/apps/mf-menu/src/components/Product/inlineCreate.d.ts +23 -0
  117. package/dist/apps/mf-menu/src/components/Product/labels.d.ts +15 -0
  118. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageBadge.vue.d.ts +7 -0
  119. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageDownloadDialog.vue.d.ts +15 -0
  120. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageFormatChips.vue.d.ts +13 -0
  121. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageLegacyChip.vue.d.ts +2 -0
  122. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageProgressDialog.vue.d.ts +11 -0
  123. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageResult.vue.d.ts +14 -0
  124. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageReview.vue.d.ts +21 -0
  125. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageThumb.vue.d.ts +15 -0
  126. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageUpdateFlow.vue.d.ts +6 -0
  127. package/dist/apps/mf-menu/src/components/ProductBatchImage/BatchImageUpdateSheet.vue.d.ts +34 -0
  128. package/dist/apps/mf-menu/src/components/ProductBatchImage/batchImageFiles.d.ts +53 -0
  129. package/dist/apps/mf-menu/src/components/ProductImage/ProductImageCustomFormatDialog.vue.d.ts +40 -0
  130. package/dist/apps/mf-menu/src/components/ProductImage/ProductImageEditorDialog.vue.d.ts +82 -0
  131. package/dist/apps/mf-menu/src/components/ProductImage/ProductImageField.vue.d.ts +42 -0
  132. package/dist/apps/mf-menu/src/components/ProductImage/ProductImageManageSheet.vue.d.ts +47 -0
  133. package/dist/apps/mf-menu/src/components/ProductImage/ProductImageRegenerateDialog.vue.d.ts +44 -0
  134. package/dist/apps/mf-menu/src/components/ProductImage/imageBrowser.d.ts +18 -0
  135. package/dist/apps/mf-menu/src/components/ProductList.vue.d.ts +18 -0
  136. package/dist/apps/mf-menu/src/components/PublishList.vue.d.ts +14 -0
  137. package/dist/apps/mf-menu/src/components/RecipeList.vue.d.ts +11 -0
  138. package/dist/apps/mf-menu/src/components/SchedulerList.vue.d.ts +6 -0
  139. package/dist/apps/mf-menu/src/components/ServingSequenceList.vue.d.ts +6 -0
  140. package/dist/apps/mf-menu/src/components/SubcategoryList.vue.d.ts +6 -0
  141. package/dist/apps/mf-menu/src/components/TakeawayList.vue.d.ts +26 -0
  142. package/dist/apps/mf-menu/src/components/TranslationSideSheet.vue.d.ts +36 -0
  143. package/dist/apps/mf-menu/src/components/UnitList.vue.d.ts +6 -0
  144. package/dist/apps/mf-menu/src/components/V3ToV4MigrationBanner.vue.d.ts +6 -0
  145. package/dist/apps/mf-menu/src/components/V3ToV4MigrationConfirmDialog.vue.d.ts +12 -0
  146. package/dist/apps/mf-menu/src/components/VariantList.vue.d.ts +6 -0
  147. package/dist/apps/mf-menu/src/components/catalog/CatalogEditor.vue.d.ts +14 -0
  148. package/dist/apps/mf-menu/src/components/catalog/CatalogLinkProductAction.vue.d.ts +7 -0
  149. package/dist/apps/mf-menu/src/components/catalog/CatalogUsage.vue.d.ts +6 -0
  150. package/dist/apps/mf-menu/src/components/catalog/tableSemantics.d.ts +7 -0
  151. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +33 -0
  152. package/dist/apps/mf-menu/src/components/feature/CookingGuide/RemoveCookingGuideConfirmation.vue.d.ts +6 -0
  153. package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/Icon.vue.d.ts +2 -0
  154. package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/index.d.ts +1 -0
  155. package/dist/apps/mf-menu/src/components/feature/EmptyDataTemplate/index.vue.d.ts +18 -0
  156. package/dist/apps/mf-menu/src/components/feature/InventoryBinding/BindingLinkDialog.vue.d.ts +49 -0
  157. package/dist/apps/mf-menu/src/components/feature/InventoryBinding/BindingTable.vue.d.ts +38 -0
  158. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +65 -0
  159. package/dist/apps/mf-menu/src/components/feature/OrderPacing/DeleteOrderPacingConfirmation.vue.d.ts +6 -0
  160. package/dist/apps/mf-menu/src/components/feature/OrderPacing/OrderPacingFields.vue.d.ts +17 -0
  161. package/dist/apps/mf-menu/src/components/feature/PrintRoute/RemoveRouteConfirmation.vue.d.ts +6 -0
  162. package/dist/apps/mf-menu/src/components/feature/TreeEditor/TreeEditorOpenner.vue.d.ts +18 -0
  163. package/dist/apps/mf-menu/src/components/feature/TreeEditor/openner.d.ts +7 -0
  164. package/dist/apps/mf-menu/src/components/info/TextChip.vue.d.ts +13 -0
  165. package/dist/apps/mf-menu/src/components/layout/FlatInlineSort.vue.d.ts +25 -0
  166. package/dist/apps/mf-menu/src/components/layout/FormColumn.vue.d.ts +12 -0
  167. package/dist/apps/mf-menu/src/components/layout/FormItem.vue.d.ts +17 -0
  168. package/dist/apps/mf-menu/src/components/layout/FormRow.vue.d.ts +9 -0
  169. package/dist/apps/mf-menu/src/components/layout/FormSection.vue.d.ts +18 -0
  170. package/dist/apps/mf-menu/src/components/layout/FullScreenForm.vue.d.ts +31 -0
  171. package/dist/apps/mf-menu/src/components/layout/FullWrapper.vue.d.ts +9 -0
  172. package/dist/apps/mf-menu/src/components/layout/LabeledTextField.vue.d.ts +16 -0
  173. package/dist/apps/mf-menu/src/components/layout/ListCountTag.vue.d.ts +5 -0
  174. package/dist/apps/mf-menu/src/components/layout/LottieAnimation.vue.d.ts +39 -0
  175. package/dist/apps/mf-menu/src/components/layout/PageLayout.vue.d.ts +19 -0
  176. package/dist/apps/mf-menu/src/components/layout/ProgressBar.vue.d.ts +9 -0
  177. package/dist/apps/mf-menu/src/components/loading/AppLoading.vue.d.ts +20 -0
  178. package/dist/apps/mf-menu/src/components/loading/PageLoading.vue.d.ts +2 -0
  179. package/dist/apps/mf-menu/src/components/loading/index.d.ts +1 -0
  180. package/dist/apps/mf-menu/src/components/placeholder/PlaceholderView.vue.d.ts +5 -0
  181. package/dist/apps/mf-menu/src/components/preview/MenuPreview.vue.d.ts +13 -0
  182. package/dist/apps/mf-menu/src/components/preview/simulatorPort.d.ts +23 -0
  183. package/dist/apps/mf-menu/src/components/publish/PublishRevertPreview.vue.d.ts +6 -0
  184. package/dist/apps/mf-menu/src/components/publish/PublishScheduleDetails.vue.d.ts +6 -0
  185. package/dist/apps/mf-menu/src/components/publish/publishStatus.d.ts +15 -0
  186. package/dist/apps/mf-menu/src/components/translation/TranslationLanguageSelector.vue.d.ts +21 -0
  187. package/dist/apps/mf-menu/src/components/translation/TranslationViewChip.vue.d.ts +12 -0
  188. package/dist/apps/mf-menu/src/components/translation/localeName.d.ts +11 -0
  189. package/dist/apps/mf-menu/src/components/translation/localeSymbol.d.ts +15 -0
  190. package/dist/apps/mf-menu/src/composable/elementPosition.d.ts +17 -0
  191. package/dist/apps/mf-menu/src/composable/menuNotifier.d.ts +14 -0
  192. package/dist/apps/mf-menu/src/composable/navigator.d.ts +16 -0
  193. package/dist/apps/mf-menu/src/composable/useActionFeedback.d.ts +81 -0
  194. package/dist/apps/mf-menu/src/composable/useEditorValidation.d.ts +21 -0
  195. package/dist/apps/mf-menu/src/init.d.ts +1 -0
  196. package/dist/apps/mf-menu/src/main.d.ts +2 -0
  197. package/dist/apps/mf-menu/src/plugins.d.ts +4 -0
  198. package/dist/apps/mf-menu/src/router/index.d.ts +2 -0
  199. package/dist/apps/mf-menu/src/router/shared.d.ts +65 -0
  200. package/dist/apps/mf-menu/src/sdk/host.d.ts +9 -0
  201. package/dist/apps/mf-menu/src/sdk/import-export.d.ts +9 -0
  202. package/dist/apps/mf-menu/src/sdk/provide.d.ts +33 -0
  203. package/dist/apps/mf-menu/src/sdk/useReadModel.d.ts +16 -0
  204. package/dist/apps/mf-menu/src/sdk/useSdkMessage.d.ts +11 -0
  205. package/dist/apps/mf-menu/src/stores/app.d.ts +17 -0
  206. package/dist/apps/mf-menu/src/utils/ruleValueKey.d.ts +12 -0
  207. package/dist/apps/mf-menu/src/utils/worker-loader.d.ts +12 -0
  208. package/dist/apps/mf-menu/src/utils/worker.d.ts +4 -0
  209. package/dist/apps/mf-menu/src/views/Catalog/Catalog.vue.d.ts +2 -0
  210. package/dist/apps/mf-menu/src/views/Catalog/Edit/CatalogEditTabs.vue.d.ts +2 -0
  211. package/dist/apps/mf-menu/src/views/Catalog/Edit/Category.vue.d.ts +2 -0
  212. package/dist/apps/mf-menu/src/views/Catalog/Edit/Group.vue.d.ts +2 -0
  213. package/dist/apps/mf-menu/src/views/Catalog/Edit/MainSetting.vue.d.ts +2 -0
  214. package/dist/apps/mf-menu/src/views/Catalog/Edit/NamedSetting.vue.d.ts +5 -0
  215. package/dist/apps/mf-menu/src/views/Catalog/Edit/Product.vue.d.ts +2 -0
  216. package/dist/apps/mf-menu/src/views/Catalog/Edit/Setting.vue.d.ts +2 -0
  217. package/dist/apps/mf-menu/src/views/Catalog/Edit/Takeaway.vue.d.ts +2 -0
  218. package/dist/apps/mf-menu/src/views/Catalog/Edit/[id].vue.d.ts +2 -0
  219. package/dist/apps/mf-menu/src/views/CatalogBinding/CatalogBinding.vue.d.ts +2 -0
  220. package/dist/apps/mf-menu/src/views/Category/Category.vue.d.ts +2 -0
  221. package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuide.vue.d.ts +2 -0
  222. package/dist/apps/mf-menu/src/views/Group/Group.vue.d.ts +2 -0
  223. package/dist/apps/mf-menu/src/views/ImportExport/ImportDiffPreview.vue.d.ts +25 -0
  224. package/dist/apps/mf-menu/src/views/ImportExport/ImportExport.vue.d.ts +9 -0
  225. package/dist/apps/mf-menu/src/views/ImportExport/ImportV3DiffPreview.vue.d.ts +26 -0
  226. package/dist/apps/mf-menu/src/views/ImportExport/PreviewImportTable.vue.d.ts +30 -0
  227. package/dist/apps/mf-menu/src/views/Ingredient/Ingredient.vue.d.ts +2 -0
  228. package/dist/apps/mf-menu/src/views/MenuManagementEditor/CategoryRenameDialog.vue.d.ts +26 -0
  229. package/dist/apps/mf-menu/src/views/MenuManagementEditor/DetailPane.vue.d.ts +23 -0
  230. package/dist/apps/mf-menu/src/views/MenuManagementEditor/EditorHistoryControls.vue.d.ts +22 -0
  231. package/dist/apps/mf-menu/src/views/MenuManagementEditor/MenuManagementEditor.vue.d.ts +10 -0
  232. package/dist/apps/mf-menu/src/views/MenuManagementEditor/RestaurantAttributesFilter.vue.d.ts +2 -0
  233. package/dist/apps/mf-menu/src/views/MenuManagementEditor/ScopeSwitcher.vue.d.ts +2 -0
  234. package/dist/apps/mf-menu/src/views/MenuManagementEditor/TreeFilter.vue.d.ts +2 -0
  235. package/dist/apps/mf-menu/src/views/MenuManagementEditor/TreePanel.vue.d.ts +9 -0
  236. package/dist/apps/mf-menu/src/views/MenuManagementEditor/TreeRow.vue.d.ts +25 -0
  237. package/dist/apps/mf-menu/src/views/MenuSetting/MenuSetting.vue.d.ts +2 -0
  238. package/dist/apps/mf-menu/src/views/OrderPacing/OrderPacing.vue.d.ts +2 -0
  239. package/dist/apps/mf-menu/src/views/Preview/Preview.vue.d.ts +2 -0
  240. package/dist/apps/mf-menu/src/views/PrintRoute/PrintRoute.vue.d.ts +2 -0
  241. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  242. package/dist/apps/mf-menu/src/views/Product/Products.vue.d.ts +2 -0
  243. package/dist/apps/mf-menu/src/views/Publish/Publish.vue.d.ts +2 -0
  244. package/dist/apps/mf-menu/src/views/Recipe/Recipe.vue.d.ts +2 -0
  245. package/dist/apps/mf-menu/src/views/Scheduler/Scheduler.vue.d.ts +2 -0
  246. package/dist/apps/mf-menu/src/views/ServingSequence/ServingSequence.vue.d.ts +2 -0
  247. package/dist/apps/mf-menu/src/views/Subcategory/Subcategory.vue.d.ts +2 -0
  248. package/dist/apps/mf-menu/src/views/Takeaway/Takeaway.vue.d.ts +2 -0
  249. package/dist/apps/mf-menu/src/views/Unit/Unit.vue.d.ts +2 -0
  250. package/dist/apps/mf-menu/src/views/Variant/Variant.vue.d.ts +2 -0
  251. package/dist/apps/mf-menu/src/workers/menu-compute.d.ts +1 -0
  252. package/dist/apps/mf-menu/src/workers/validate-menu.d.ts +1 -0
  253. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -0
  254. package/dist/assets/menu-compute-okel5FLc.js +260 -0
  255. package/dist/assets/validate-menu-DEFGpnQh.js +130 -0
  256. package/dist/index.vue_vue_type_script_setup_true_lang-CGPDazqs.js +57 -0
  257. package/dist/mf-menu-portal.css +1 -0
  258. package/dist/provide-Tmjfji09.js +190840 -0
  259. package/dist/ruleValueKey-BF52PuHb.js +10 -0
  260. package/dist/tableSemantics-C9WFO_I_.js +22 -0
  261. package/dist/useActionFeedback-DoFeBFpl.js +95 -0
  262. package/dist/useEditorValidation-Ctef5Bxt.js +63 -0
  263. package/package.json +79 -3
@@ -0,0 +1,709 @@
1
+ import { defineComponent as Le, ref as L, computed as h, watch as ae, resolveComponent as S, openBlock as m, createBlock as V, unref as a, withCtx as k, createElementBlock as g, createVNode as r, createElementVNode as i, toDisplayString as b, createCommentVNode as B, withModifiers as W, Fragment as H, renderList as J, withDirectives as Ee } from "vue";
2
+ import { d as Oe } from "./FormSection.vue_vue_type_script_setup_true_lang-pY-_msnM.js";
3
+ import { useI18n as xe, ItemSelector as Ne } from "@feedmepos/mf-common";
4
+ import { components as Pe } from "@feedmepos/ui-library";
5
+ import { r as Ae } from "./provide-Tmjfji09.js";
6
+ import { r as Ue, a as ne } from "./ruleValueKey-BF52PuHb.js";
7
+ import { _ as je } from "./index.vue_vue_type_script_setup_true_lang-CGPDazqs.js";
8
+ import { u as ze } from "./useEditorValidation-Ctef5Bxt.js";
9
+ const Ge = {
10
+ ALL: "menu.order.from.options.all",
11
+ POS_ONLY: "menu.order.from.options.pos_only",
12
+ NONE: "menu.order.from.options.none"
13
+ }, wl = {
14
+ NORMAL: "menu.group.list.types.normal",
15
+ PRODUCT: "menu.group.list.types.product",
16
+ DYNAMIC: "menu.group.list.types.dynamic"
17
+ }, Rl = {
18
+ ALL: "menu.product.table.availability.all",
19
+ POS_ONLY: "menu.product.table.availability.pos_only",
20
+ NONE: "menu.product.table.availability.none"
21
+ }, Be = { class: "fm-typo-en-title-md-600 mr-auto" }, Me = {
22
+ key: 0,
23
+ class: "py-8 px-8 overflow-y-auto"
24
+ }, $e = {
25
+ key: 1,
26
+ class: "p-8 overflow-y-auto flex flex-col gap-16"
27
+ }, De = { class: "relative top-0 -mb-8 leading-6 tracking-normal fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ke = {
28
+ key: 0,
29
+ class: "text-fm-color-typo-error",
30
+ role: "alert"
31
+ }, Te = { class: "flex flex-col gap-8" }, Ye = { class: "border border-fm-color-neutral-gray-200 rounded-md p-16" }, qe = { class: "flex items-center justify-between gap-8" }, We = { class: "flex items-center gap-8 min-w-0" }, He = { class: "text-fm-color-neutral-gray-300" }, Je = { class: "flex gap-8" }, Qe = { class: "flex flex-col gap-8 mt-8" }, Xe = { class: "fm-typo-en-body-lg-600" }, Ze = { class: "flex gap-8" }, el = { class: "fm-typo-en-body-lg-600" }, ll = {
32
+ key: 0,
33
+ class: "text-fm-color-neutral-gray-300 pl-16"
34
+ }, tl = { class: "flex items-center gap-24" }, ol = { class: "fm-typo-en-headline-lg-600" }, al = { class: "overflow-y-auto" }, nl = { class: "mt-24 flex flex-col gap-16" }, ul = { class: "text-fm-color-typo-primary fm-typo-en-body-lg-600" }, sl = { class: "mt-24 flex flex-col gap-16" }, rl = { class: "link-product-rule-editor-sheet-marker fm-typo-en-body-lg-600" }, il = { class: "flex w-full justify-between gap-16" }, dl = {
35
+ key: 0,
36
+ class: "flex w-full [&>*]:w-full"
37
+ }, cl = { class: "break-all fm-typo-en-body-lg-400 line-clamp-1" }, ml = { class: "flex w-full items-center justify-end gap-16" }, pl = {
38
+ key: 0,
39
+ class: "flex gap-8 items-center justify-start"
40
+ }, _l = {
41
+ key: 1,
42
+ class: "flex gap-8 items-center justify-start"
43
+ }, Vl = /* @__PURE__ */ Le({
44
+ __name: "LinkProductSideSheet",
45
+ props: {
46
+ modelValue: { type: Boolean },
47
+ catalogue: {},
48
+ selectedProductIds: { default: () => [] },
49
+ selectedProducts: { default: void 0 },
50
+ selectVariant: { type: Boolean, default: !1 },
51
+ title: {},
52
+ rulesSession: { default: null },
53
+ rulesView: { default: null },
54
+ selectionSession: { default: null }
55
+ },
56
+ emits: ["update:modelValue", "submit", "submitLinks", "submit-rules"],
57
+ setup(ue, { emit: se }) {
58
+ const u = ue, E = se, { t: o } = xe(), re = {
59
+ mounted: (e, t) => {
60
+ var l;
61
+ (l = e.querySelector("input")) == null || l.setAttribute("aria-label", t.value);
62
+ },
63
+ updated: (e, t) => {
64
+ var l;
65
+ (l = e.querySelector("input")) == null || l.setAttribute("aria-label", t.value);
66
+ }
67
+ }, w = L("normal"), R = L(null), A = L([]), Q = ze(() => R.value), U = L([]), X = [
68
+ { value: "in", label: "menu.rule_groups.condition_view.operator.in" },
69
+ {
70
+ value: "notIn",
71
+ label: "menu.rule_groups.condition_view.operator.not_in"
72
+ },
73
+ {
74
+ value: "startsWith",
75
+ label: "menu.rule_groups.condition_view.operator.starts_with"
76
+ }
77
+ ], f = h(() => u.rulesView ?? null), M = h(
78
+ () => {
79
+ var e;
80
+ return !!u.rulesSession && ((e = f.value) == null ? void 0 : e.rulesCapability.state) === "allowed";
81
+ }
82
+ ), O = h(() => {
83
+ var e;
84
+ return ((e = f.value) == null ? void 0 : e.rules) ?? [];
85
+ }), Z = h(() => R.value !== null), ie = h(
86
+ () => X.map((e) => ({ label: o(e.label), value: e.value }))
87
+ );
88
+ function de() {
89
+ var e;
90
+ return (((e = f.value) == null ? void 0 : e.attributeOptions) ?? []).map((t) => ({
91
+ label: o(t.label, t.labelParams ?? {}),
92
+ value: t.key
93
+ }));
94
+ }
95
+ function ce(e) {
96
+ var t, l;
97
+ return (((l = (t = f.value) == null ? void 0 : t.attributeOptions.find(
98
+ (n) => n.key === e.attribute
99
+ )) == null ? void 0 : l.values) ?? []).map((n) => ({
100
+ label: n.value === null ? o("menu.link_product.rules.addon") : n.label,
101
+ // FmSelect needs a primitive; a value travels as its key.
102
+ value: ne(n.value)
103
+ }));
104
+ }
105
+ function me(e) {
106
+ var l;
107
+ const t = (l = f.value) == null ? void 0 : l.attributeOptions.find(
108
+ (n) => n.key === e.attribute
109
+ );
110
+ return e.values.map((n) => {
111
+ const p = t == null ? void 0 : t.values.find(
112
+ (I) => I.value === n
113
+ );
114
+ return (p == null ? void 0 : p.value) === null ? o("menu.link_product.rules.addon") : (p == null ? void 0 : p.label) ?? String(n);
115
+ }).join(o("menu.link_product.rules.value_separator"));
116
+ }
117
+ function pe(e, t) {
118
+ return e.values[t] === null ? o("menu.link_product.rules.addon") : e.valueLabels[t] ?? "";
119
+ }
120
+ function _e(e) {
121
+ return e.values.map(
122
+ (t, l) => pe(e, l)
123
+ ).join(o("menu.link_product.rules.value_separator"));
124
+ }
125
+ function $(e) {
126
+ const t = u.rulesSession;
127
+ if (!t) return;
128
+ const l = (e == null ? void 0 : e.id) ?? t.addRule();
129
+ l && t.openRuleEditor(l) && (U.value = [], R.value = l);
130
+ }
131
+ function x() {
132
+ var e;
133
+ (e = u.rulesSession) == null || e.closeRuleEditor(), R.value = null, U.value = [];
134
+ }
135
+ function ve() {
136
+ const e = R.value, t = u.rulesSession;
137
+ if (!e || !t) return;
138
+ const l = t.saveRuleEditor();
139
+ l.kind === "accepted" ? x() : l.kind === "rejected" && (U.value = l.issues, Q.submit(
140
+ async () => ({ kind: "rejected", issues: l.issues })
141
+ ));
142
+ }
143
+ const D = L(""), ee = h(
144
+ () => {
145
+ var e;
146
+ return ((e = P.value) == null ? void 0 : e.ruleGroupIds) ?? [];
147
+ }
148
+ ), be = h(() => {
149
+ var l;
150
+ const e = ((l = f.value) == null ? void 0 : l.ruleGroupOptions) ?? [], t = D.value.trim().toLowerCase();
151
+ return t ? e.filter(
152
+ (n) => n.name.toLowerCase().includes(t)
153
+ ) : e;
154
+ });
155
+ function fe(e) {
156
+ const t = u.rulesSession;
157
+ if (!t) return;
158
+ const l = ee.value;
159
+ t.setRuleEditorGroupIds(
160
+ l.includes(e) ? l.filter((n) => n !== e) : [...l, e]
161
+ );
162
+ }
163
+ function C(e, t) {
164
+ var I, G;
165
+ const l = `conditions.${e}.${t}`, n = (I = f.value) == null ? void 0 : I.editor, p = n ? n.issues : U.value;
166
+ return Q.issue(((G = P.value) == null ? void 0 : G.fieldIssues) ?? {}, l) ?? p.find((Y) => Y.field === l) ?? null;
167
+ }
168
+ function j(e) {
169
+ return e ? o(e.code) : "";
170
+ }
171
+ function ye(e) {
172
+ var l;
173
+ const t = (l = u.rulesSession) == null ? void 0 : l.reorderRules(e.map((n) => n.id));
174
+ A.value = (t == null ? void 0 : t.kind) === "rejected" ? t.issues : [];
175
+ }
176
+ function ge(e) {
177
+ var l;
178
+ const t = (l = u.rulesSession) == null ? void 0 : l.duplicateRule(e);
179
+ A.value = (t == null ? void 0 : t.kind) === "rejected" ? t.issues : [];
180
+ }
181
+ function ke(e) {
182
+ return o(Ge[e]);
183
+ }
184
+ function N(e) {
185
+ return o("menu.link_product.rules.rule_number", { index: e + 1 });
186
+ }
187
+ function F(e) {
188
+ return o("menu.link_product.rules.condition_number", { index: e + 1 });
189
+ }
190
+ function he(e) {
191
+ var t;
192
+ (t = u.rulesSession) == null || t.removeRuleEditorCondition(e);
193
+ }
194
+ function Se() {
195
+ var e;
196
+ (e = u.rulesSession) == null || e.addRuleEditorCondition();
197
+ }
198
+ function we() {
199
+ E("submit-rules");
200
+ }
201
+ function le() {
202
+ return u.selectedProducts ?? u.selectedProductIds.map((e) => ({ itemId: e }));
203
+ }
204
+ function te(e) {
205
+ const t = {};
206
+ for (const l of e) {
207
+ const n = t[l.itemId] ?? [];
208
+ n.push(
209
+ l.combinationKey ? { _id: l.itemId, combinationKey: l.combinationKey } : { _id: l.itemId }
210
+ ), t[l.itemId] = n;
211
+ }
212
+ return t;
213
+ }
214
+ const z = L(te(le()));
215
+ function Re(e) {
216
+ z.value = e, u.selectionSession && u.selectionSession.setSelectedProductIds([
217
+ ...new Set(
218
+ Object.values(e).flat().map((t) => t._id)
219
+ )
220
+ ]);
221
+ }
222
+ ae(
223
+ () => u.modelValue,
224
+ (e) => {
225
+ var t;
226
+ if (e) {
227
+ const l = (t = u.selectionSession) == null ? void 0 : t.get(), n = (l == null ? void 0 : l.status) === "ready" ? l.value.selectedProductIds : void 0;
228
+ z.value = te(
229
+ n ? n.map((p) => ({ itemId: p })) : le()
230
+ ), w.value = M.value && O.value.length > 0 ? "rules" : "normal";
231
+ } else
232
+ x();
233
+ }
234
+ ), ae(O, (e) => {
235
+ u.modelValue && M.value && e.length > 0 && R.value === null && w.value === "normal" && (w.value = "rules");
236
+ });
237
+ const K = h(() => Object.values(z.value).flat()), P = h(() => {
238
+ var t, l;
239
+ if ((t = f.value) != null && t.editor) return f.value.editor;
240
+ const e = (l = f.value) == null ? void 0 : l.rules.find(
241
+ (n) => n.id === R.value
242
+ );
243
+ return e ? {
244
+ ruleId: e.id,
245
+ mode: "update",
246
+ orderFrom: e.orderFrom,
247
+ ruleGroupIds: e.ruleGroupIds,
248
+ conditions: e.conditions.map((n) => ({
249
+ attribute: n.attribute,
250
+ operator: n.operator,
251
+ values: n.values
252
+ })),
253
+ issues: [],
254
+ fieldIssues: {}
255
+ } : null;
256
+ }), Ve = h(
257
+ () => {
258
+ var e;
259
+ return (((e = u.catalogue) == null ? void 0 : e.groups) ?? []).map((t) => ({
260
+ id: t.id,
261
+ name: t.isSynthetic ? o("menu.tree_editor.labels.addon") : t.name,
262
+ items: t.products.map((l) => ({
263
+ _id: l.id,
264
+ name: l.name,
265
+ code: l.code,
266
+ codeName: l.label,
267
+ // `ItemSelector` reads combinations off `variant.variantCombinations`
268
+ // and labels them by `codeName` (mf-common ItemSelector.vue:83-107); it
269
+ // only maps them when `selectVariant` is on, so this is inert for the
270
+ // hosts that link whole products.
271
+ variant: {
272
+ variantCombinations: l.variants.map((n) => ({
273
+ combinationKey: n.combinationKey,
274
+ codeName: n.label
275
+ }))
276
+ },
277
+ customAttributes: l.customAttributes
278
+ }))
279
+ }));
280
+ }
281
+ );
282
+ function T() {
283
+ E("update:modelValue", !1);
284
+ }
285
+ function Ce() {
286
+ u.selectedProducts !== void 0 ? E(
287
+ "submitLinks",
288
+ K.value.map(
289
+ (e) => e.combinationKey ? { itemId: e._id, combinationKey: e.combinationKey } : { itemId: e._id }
290
+ )
291
+ ) : E(
292
+ "submit",
293
+ K.value.map((e) => e._id)
294
+ );
295
+ }
296
+ return (e, t) => {
297
+ const l = S("FmButton"), n = S("FmSwitch"), p = S("FmRadio"), I = S("FmRadioGroup"), G = S("FmSearch"), Y = S("FmMenuItem"), Fe = S("FmMenu"), q = S("FmSelect"), Ie = S("FmTextField"), oe = S("FmSideSheet");
298
+ return m(), V(oe, {
299
+ "close-button": !1,
300
+ "is-container": a(Pe).FmForm,
301
+ "is-container-props": {
302
+ onValidationSuccess: w.value === "normal" ? Ce : we
303
+ },
304
+ "max-width": 760,
305
+ "model-value": u.modelValue,
306
+ "z-index": 100,
307
+ "onUpdate:modelValue": t[4] || (t[4] = (c) => E("update:modelValue", c))
308
+ }, {
309
+ "side-sheet-header": k(() => [
310
+ r(l, {
311
+ "aria-label": a(o)("menu.common.actions.back"),
312
+ class: "cursor-pointer mr-4",
313
+ "prepend-icon": "arrow_back",
314
+ variant: "tertiary",
315
+ onClick: T
316
+ }, null, 8, ["aria-label"]),
317
+ i("p", Be, b(u.title ?? a(o)("menu.link_product.title")), 1),
318
+ M.value ? (m(), V(n, {
319
+ key: 0,
320
+ "model-value": w.value === "rules",
321
+ label: a(o)("menu.link_product.rules.section_title"),
322
+ "onUpdate:modelValue": t[0] || (t[0] = (c) => w.value = c ? "rules" : "normal")
323
+ }, null, 8, ["model-value", "label"])) : B("", !0)
324
+ ]),
325
+ "side-sheet-footer": k(() => {
326
+ var c, y;
327
+ return [
328
+ w.value === "normal" ? (m(), g("div", pl, [
329
+ r(l, {
330
+ label: a(o)("menu.common.actions.confirm"),
331
+ size: "lg",
332
+ type: "submit",
333
+ variant: "primary"
334
+ }, null, 8, ["label"]),
335
+ r(l, {
336
+ label: a(o)("menu.common.actions.cancel"),
337
+ size: "lg",
338
+ variant: "tertiary",
339
+ onClick: T
340
+ }, null, 8, ["label"])
341
+ ])) : (m(), g("div", _l, [
342
+ r(l, {
343
+ label: a(o)("menu.common.actions.confirm"),
344
+ size: "lg",
345
+ variant: "primary",
346
+ disabled: ((c = f.value) == null ? void 0 : c.submit.state) !== "allowed",
347
+ loading: ((y = f.value) == null ? void 0 : y.status) === "submitting",
348
+ type: "submit"
349
+ }, null, 8, ["label", "disabled", "loading"]),
350
+ r(l, {
351
+ label: a(o)("common.cancel"),
352
+ size: "lg",
353
+ variant: "tertiary",
354
+ onClick: T
355
+ }, null, 8, ["label"])
356
+ ]))
357
+ ];
358
+ }),
359
+ default: k(() => [
360
+ w.value === "normal" ? (m(), g("div", Me, [
361
+ r(a(Ne), {
362
+ "auto-focus-search": !0,
363
+ "categorized-items": Ve.value,
364
+ data: z.value,
365
+ "select-variant": u.selectVariant,
366
+ "selected-items": K.value,
367
+ "show-addon": !0,
368
+ "show-variant": u.selectVariant,
369
+ "onUpdate:data": Re
370
+ }, null, 8, ["categorized-items", "data", "select-variant", "selected-items", "show-variant"])
371
+ ])) : (m(), g("div", $e, [
372
+ i("p", De, b(a(o)("menu.link_product.rules.hint")), 1),
373
+ A.value.length > 0 ? (m(), g("p", Ke, b(j(A.value[0] ?? null)), 1)) : B("", !0),
374
+ r(a(Oe), {
375
+ "model-value": [...O.value],
376
+ "item-key": "id",
377
+ handle: ".link-product-rule-drag-handle",
378
+ class: "flex flex-col gap-8",
379
+ "onUpdate:modelValue": ye
380
+ }, {
381
+ item: k(({ element: c, index: y }) => [
382
+ i("div", Te, [
383
+ i("div", Ye, [
384
+ i("div", qe, [
385
+ i("div", We, [
386
+ r(l, {
387
+ class: "link-product-rule-drag-handle cursor-grab",
388
+ variant: "tertiary",
389
+ "prepend-icon": "drag_indicator",
390
+ "aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
391
+ label: a(o)("menu.menu_setting.rule_groups.reorder_rule"),
392
+ name: N(y)
393
+ })
394
+ }, null, 8, ["aria-label"]),
395
+ i("p", He, b(N(y)), 1)
396
+ ]),
397
+ i("div", Je, [
398
+ r(l, {
399
+ variant: "tertiary",
400
+ "prepend-icon": "edit",
401
+ "aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
402
+ label: a(o)("menu.link_product.rules.edit_rule"),
403
+ name: N(y)
404
+ }),
405
+ onClick: W((d) => $(c), ["stop"])
406
+ }, null, 8, ["aria-label", "onClick"]),
407
+ r(l, {
408
+ variant: "tertiary",
409
+ "prepend-icon": "file_copy",
410
+ "aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
411
+ label: a(o)("menu.menu_setting.rule_groups.copy_rule"),
412
+ name: N(y)
413
+ }),
414
+ onClick: W((d) => ge(c.id), ["stop"])
415
+ }, null, 8, ["aria-label", "onClick"]),
416
+ r(l, {
417
+ variant: "tertiary",
418
+ "prepend-icon": "delete",
419
+ "text-color": "typo-error",
420
+ "aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
421
+ label: a(o)("menu.menu_setting.rule_groups.remove_rule"),
422
+ name: N(y)
423
+ }),
424
+ onClick: W((d) => {
425
+ var s;
426
+ return (s = u.rulesSession) == null ? void 0 : s.removeRule(c.id);
427
+ }, ["stop"])
428
+ }, null, 8, ["aria-label", "onClick"])
429
+ ])
430
+ ]),
431
+ i("div", Qe, [
432
+ i("div", Xe, b(a(o)("menu.rule_groups.condition_view.when")), 1),
433
+ (m(!0), g(H, null, J(c.conditions, (d, s) => {
434
+ var _;
435
+ return m(), g("div", {
436
+ key: `${c.id}-${s}`,
437
+ class: "flex gap-8"
438
+ }, [
439
+ i("span", null, b(a(o)("menu.link_product.rules.condition_summary", {
440
+ condition: F(s),
441
+ attribute: a(o)(
442
+ d.attributeLabel,
443
+ d.attributeLabelParams ?? {}
444
+ ),
445
+ operator: a(o)(
446
+ ((_ = X.find(
447
+ (v) => v.value === d.operator
448
+ )) == null ? void 0 : _.label) ?? ""
449
+ ),
450
+ value: _e(d)
451
+ })), 1)
452
+ ]);
453
+ }), 128)),
454
+ i("div", Ze, [
455
+ i("span", el, b(a(o)("menu.rule_groups.condition_view.then")), 1),
456
+ i("span", null, b(a(o)("menu.link_product.rules.order_from_summary", {
457
+ label: a(o)("menu.link_product.rules.order_from"),
458
+ value: ke(c.orderFrom)
459
+ })), 1)
460
+ ])
461
+ ])
462
+ ]),
463
+ y < O.value.length - 1 ? (m(), g("div", ll, b(a(o)("menu.link_product.rules.or")), 1)) : B("", !0)
464
+ ])
465
+ ]),
466
+ _: 1
467
+ }, 8, ["model-value"]),
468
+ O.value.length === 0 ? (m(), V(a(je), {
469
+ key: 1,
470
+ title: a(o)("menu.rule_groups.condition_view.empty_data.no_rules_added"),
471
+ subtitle: a(o)("menu.rule_groups.condition_view.empty_data.subtitle"),
472
+ action: {
473
+ text: a(o)("menu.link_product.rules.add_rule"),
474
+ callback: () => $()
475
+ }
476
+ }, null, 8, ["title", "subtitle", "action"])) : (m(), V(l, {
477
+ key: 2,
478
+ variant: "primary",
479
+ "prepend-icon": "add",
480
+ label: a(o)("menu.link_product.rules.add_rule"),
481
+ onClick: t[1] || (t[1] = (c) => $())
482
+ }, null, 8, ["label"]))
483
+ ])),
484
+ Z.value ? (m(), V(oe, {
485
+ key: 2,
486
+ "model-value": Z.value,
487
+ "max-width": 760,
488
+ "z-index": 101,
489
+ "close-button": !1,
490
+ "onUpdate:modelValue": x
491
+ }, {
492
+ "side-sheet-header": k(() => {
493
+ var c;
494
+ return [
495
+ i("div", tl, [
496
+ r(l, {
497
+ variant: "tertiary",
498
+ "prepend-icon": "arrow_back",
499
+ "aria-label": a(o)("menu.common.actions.back"),
500
+ onClick: x
501
+ }, null, 8, ["aria-label"]),
502
+ i("p", ol, b(a(o)(
503
+ ((c = P.value) == null ? void 0 : c.mode) === "create" ? "menu.link_product.rules.add_rule" : "menu.link_product.rules.edit_rule"
504
+ )), 1)
505
+ ])
506
+ ];
507
+ }),
508
+ "side-sheet-footer": k(() => [
509
+ i("div", ml, [
510
+ r(l, {
511
+ label: a(o)("common.cancel"),
512
+ variant: "secondary",
513
+ onClick: x
514
+ }, null, 8, ["label"]),
515
+ r(l, {
516
+ label: a(o)("common.save"),
517
+ variant: "primary",
518
+ onClick: ve
519
+ }, null, 8, ["label"])
520
+ ])
521
+ ]),
522
+ default: k(() => {
523
+ var c, y;
524
+ return [
525
+ i("div", al, [
526
+ r(I, {
527
+ "model-value": ((c = P.value) == null ? void 0 : c.orderFrom) ?? "ALL",
528
+ label: a(o)("menu.link_product.rules.availability"),
529
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => {
530
+ var s;
531
+ return (s = u.rulesSession) == null ? void 0 : s.setRuleEditorOrderFrom(
532
+ d
533
+ );
534
+ })
535
+ }, {
536
+ default: k(() => [
537
+ r(p, {
538
+ label: a(o)("menu.link_product.rules.all"),
539
+ value: "ALL"
540
+ }, null, 8, ["label"]),
541
+ r(p, {
542
+ label: a(o)("menu.link_product.rules.pos_only"),
543
+ value: "POS_ONLY"
544
+ }, null, 8, ["label"]),
545
+ r(p, {
546
+ label: a(o)("menu.link_product.rules.none"),
547
+ value: "NONE"
548
+ }, null, 8, ["label"])
549
+ ]),
550
+ _: 1
551
+ }, 8, ["model-value", "label"]),
552
+ t[5] || (t[5] = i("div", { class: "mt-24 h-px w-full bg-fm-color-neutral-gray-100" }, null, -1)),
553
+ i("div", nl, [
554
+ i("p", ul, b(a(o)("menu.link_product.rules.use_rule_group")), 1),
555
+ r(Fe, { "close-on-click": !1 }, {
556
+ "menu-button": k(() => [
557
+ r(l, {
558
+ variant: "plain",
559
+ "prepend-icon": "add",
560
+ class: "self-start",
561
+ label: a(o)("menu.link_product.rules.add_rule_group")
562
+ }, null, 8, ["label"])
563
+ ]),
564
+ default: k(() => [
565
+ r(G, {
566
+ "model-value": D.value,
567
+ "onUpdate:modelValue": t[3] || (t[3] = (d) => D.value = d),
568
+ class: "w-[200px] px-8",
569
+ placeholder: a(o)("menu.link_product.rules.filter_result")
570
+ }, null, 8, ["model-value", "placeholder"]),
571
+ (m(!0), g(H, null, J(be.value, (d) => (m(), V(Y, {
572
+ key: d.id,
573
+ label: d.name,
574
+ "has-checkbox": "",
575
+ "model-value": ee.value.includes(d.id),
576
+ onClick: (s) => fe(d.id)
577
+ }, null, 8, ["label", "model-value", "onClick"]))), 128))
578
+ ]),
579
+ _: 1
580
+ })
581
+ ]),
582
+ i("div", sl, [
583
+ i("p", rl, b(a(o)("menu.rule_groups.condition_view.condition")), 1),
584
+ (m(!0), g(H, null, J(((y = P.value) == null ? void 0 : y.conditions) ?? [], (d, s) => (m(), g("div", {
585
+ key: s,
586
+ class: "flex justify-between gap-8"
587
+ }, [
588
+ i("div", il, [
589
+ r(q, {
590
+ class: "flex w-full",
591
+ "menu-z-index": 102,
592
+ "model-value": d.attribute,
593
+ items: de(),
594
+ placeholder: a(o)("menu.rule_groups.condition_view.select_item"),
595
+ "aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
596
+ label: a(o)(
597
+ "menu.menu_setting.rule_groups.condition.attribute"
598
+ ),
599
+ name: F(s)
600
+ }),
601
+ "onUpdate:modelValue": (_) => {
602
+ var v;
603
+ (v = u.rulesSession) == null || v.setRuleEditorCondition(s, {
604
+ attribute: _,
605
+ values: []
606
+ });
607
+ }
608
+ }, null, 8, ["model-value", "items", "placeholder", "aria-label", "onUpdate:modelValue"]),
609
+ r(q, {
610
+ class: "flex w-full",
611
+ "menu-z-index": 102,
612
+ "model-value": d.operator,
613
+ items: ie.value,
614
+ placeholder: a(o)("menu.rule_groups.condition_view.select_item"),
615
+ "aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
616
+ label: a(o)(
617
+ "menu.menu_setting.rule_groups.condition.operator"
618
+ ),
619
+ name: F(s)
620
+ }),
621
+ "error-messages": C(s, "operator") ? [j(C(s, "operator"))] : [],
622
+ "onUpdate:modelValue": (_) => {
623
+ var v;
624
+ return (v = u.rulesSession) == null ? void 0 : v.setRuleEditorCondition(s, {
625
+ operator: _
626
+ });
627
+ }
628
+ }, null, 8, ["model-value", "items", "placeholder", "aria-label", "error-messages", "onUpdate:modelValue"]),
629
+ a(Ae)(d.operator) === "text" ? Ee((m(), g("div", dl, [
630
+ r(Ie, {
631
+ "model-value": String(d.values[0] ?? ""),
632
+ placeholder: a(o)("menu.menu_setting.rule_groups.condition.value"),
633
+ "error-messages": C(s, "values") ? [j(C(s, "values"))] : [],
634
+ "onUpdate:modelValue": (_) => {
635
+ var v;
636
+ return (v = u.rulesSession) == null ? void 0 : v.setRuleEditorCondition(s, {
637
+ values: _ === "" || _ == null ? [] : [String(_)]
638
+ });
639
+ }
640
+ }, null, 8, ["model-value", "placeholder", "error-messages", "onUpdate:modelValue"])
641
+ ])), [
642
+ [
643
+ re,
644
+ a(o)("menu.common.labels.a11y_labelled_name", {
645
+ label: a(o)("menu.menu_setting.rule_groups.condition.value"),
646
+ name: F(s)
647
+ })
648
+ ]
649
+ ]) : (m(), V(q, {
650
+ key: 1,
651
+ class: "flex w-full",
652
+ "menu-z-index": 102,
653
+ "model-value": d.values.map(a(ne)),
654
+ items: ce(d),
655
+ multiselect: "",
656
+ "hide-chips": "",
657
+ placeholder: a(o)("menu.rule_groups.condition_view.select_item"),
658
+ "aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
659
+ label: a(o)("menu.menu_setting.rule_groups.condition.value"),
660
+ name: F(s)
661
+ }),
662
+ "error-messages": C(s, "values") ? [j(C(s, "values"))] : [],
663
+ "onUpdate:modelValue": (_) => {
664
+ var v;
665
+ return (v = u.rulesSession) == null ? void 0 : v.setRuleEditorCondition(s, {
666
+ values: _.map(a(Ue))
667
+ });
668
+ }
669
+ }, {
670
+ default: k(() => [
671
+ i("div", cl, b(me(d)), 1)
672
+ ]),
673
+ _: 2
674
+ }, 1032, ["model-value", "items", "placeholder", "aria-label", "error-messages", "onUpdate:modelValue"]))
675
+ ]),
676
+ r(l, {
677
+ variant: "tertiary",
678
+ "prepend-icon": "close",
679
+ "aria-label": a(o)("menu.common.labels.a11y_labelled_name", {
680
+ label: a(o)("menu.menu_setting.rule_groups.remove_condition"),
681
+ name: F(s)
682
+ }),
683
+ onClick: (_) => he(s)
684
+ }, null, 8, ["aria-label", "onClick"])
685
+ ]))), 128)),
686
+ r(l, {
687
+ variant: "plain",
688
+ "prepend-icon": "add",
689
+ label: a(o)("menu.rule_groups.condition_view.add_condition"),
690
+ onClick: Se
691
+ }, null, 8, ["label"])
692
+ ])
693
+ ])
694
+ ];
695
+ }),
696
+ _: 1
697
+ }, 8, ["model-value"])) : B("", !0)
698
+ ]),
699
+ _: 1
700
+ }, 8, ["is-container", "is-container-props", "model-value"]);
701
+ };
702
+ }
703
+ });
704
+ export {
705
+ wl as A,
706
+ Rl as O,
707
+ Vl as _,
708
+ Ge as a
709
+ };