@feedmepos/mf-inventory-portal 1.8.0-dev.0 → 1.8.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App-BjFIh5km.js +1466 -0
- package/dist/{ApprovalView-BK6E_3Cw.js → ApprovalView-CauRuf64.js} +26 -25
- package/dist/{BindingsDialog-BAVPQ_Eq.js → BindingsDialog-U-tzIfGX.js} +2 -2
- package/dist/{BindingsPicker-bAuDX7Af.js → BindingsPicker-CV_oghtz.js} +2 -2
- package/dist/{BindingsTable-LGlvV0lt.js → BindingsTable-TKSQxAxV.js} +4 -4
- package/dist/{BulkReceiveRequestView-CQf7FYos.js → BulkReceiveRequestView-Cyeq26qc.js} +21 -21
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BpJhboKU.js +151 -0
- package/dist/{ClosingDraftView-DH7iYiE9.js → ClosingDraftView-UqeHsxyJ.js} +748 -746
- package/dist/ClosingHistoryView-Cr6cQq6j.js +769 -0
- package/dist/{ClosingTemplateView-D532GNTn.js → ClosingTemplateView-DZ0Mdc87.js} +303 -291
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CvqZGcvX.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-C-OsCTxZ.js} +1 -1
- package/dist/{DefaultView-DqqXJVba.js → DefaultView-DQKHG5Jl.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DkHNDEKP.js → DeliveryOrderPrintPreview-Z_kBbMMO.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-Cyj3ka37.js → EmailDialog.vue_vue_type_script_setup_true_lang-Ce6Ly9pT.js} +6228 -6216
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BUYI8koH.js +47 -0
- package/dist/FeatureCapabilityGate-DOn2IVJb.js +74 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BCuhx2cN.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BJuo4lEh.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CDNqm_9N.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZxz5hbo.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CiBhz5sq.js +120 -0
- package/dist/FmMultiselectDialog-Bx9cLdYs.js +123 -0
- package/dist/{FmMultiselectDialog-eH3nO3P3.js → FmMultiselectDialog-DvaWLGY5.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BCIkEl75.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D6f1M96D.js} +72 -73
- package/dist/ImportView-1-cjN7ay.js +1290 -0
- package/dist/{IngredientsView-DtDtzaMt.js → IngredientsView-JfKlUU2E.js} +656 -649
- package/dist/{IntegrationExplorerView-C4lYc_LH.js → IntegrationExplorerView-uElgWH8i.js} +602 -614
- package/dist/IntegrationPlatformView-g2dU5SG6.js +13061 -0
- package/dist/{IntegrationView-Bx5VdV5l.js → IntegrationView-B9g888K4.js} +2956 -2922
- package/dist/{InventoryBindingForm-DKa1DwYs.js → InventoryBindingForm-DfGOKZWg.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CNjTdNL7.js +472 -0
- package/dist/{InventoryBindingSummary-CNqwcsrX.js → InventoryBindingSummary-CSii8B2X.js} +1 -1
- package/dist/JsonViewer.vue_vue_type_script_setup_true_lang-C_hg75l0.js +25 -0
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D_Xk4SOH.js +79 -0
- package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-DJvfMOND.js +274 -0
- package/dist/PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-Bdjm0Y4w.js +79 -0
- package/dist/ProductionRunDetailView-HgH2Wp99.js +2312 -0
- package/dist/{production-run-prepare-sheet-aQOcxgaC.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-C88pjV2s.js} +11039 -3661
- package/dist/ProductionRunView-BkvQHeCP.js +931 -0
- package/dist/{PublishView-D0oSoJ5a.js → PublishView-CIei_T5e.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CE-l4mvB.js → PurchaseOrderPrintPreview-Wmv7676h.js} +2 -2
- package/dist/{ReceiveRequestView-B2z8Ji0e.js → ReceiveRequestView-MqOIpIDB.js} +15 -15
- package/dist/RecipeView-WzXJX4JU.js +3440 -0
- package/dist/SettingsView-1YlgjyzB.js +1032 -0
- package/dist/StockView-C-dIRXPv.js +2651 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BTh5E4Tt.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CewKTZzy.js} +1 -1
- package/dist/{SupplierView-qqhUQ-SY.js → SupplierView-53rHhQ63.js} +577 -571
- package/dist/{SurchargeView-B0TYUfqY.js → SurchargeView-DuJb5EUn.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-tfMHi9Yv.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-C_YmC-ZX.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js +71 -0
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Dxc-jNte.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CyQujMzv.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BX36zWMb.js → TransferDetails.vue_vue_type_script_setup_true_lang-CMwqjlb0.js} +1722 -1672
- package/dist/TransferTemplateView-B6OGfKQr.js +2343 -0
- package/dist/{UnitCostHistoryView-xdRSkjD7.js → UnitCostHistoryView-BVlq4BNG.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BT2v1gZv.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CULJEeCU.js} +4 -4
- package/dist/{UnitView-p-V_TMMo.js → UnitView-AuIJokVF.js} +84 -84
- package/dist/{WarehouseView-BOGYcUHH.js → WarehouseView-Cjv8S1ov.js} +194 -189
- package/dist/{WastageTemplateView-CiifZMq6.js → WastageTemplateView-mxSTzVSZ.js} +19 -18
- package/dist/api/bill.d.ts +144 -88
- package/dist/api/feature-flags.d.ts +12 -0
- package/dist/api/food-market-hub.d.ts +2 -2
- package/dist/api/integration-sync-log.d.ts +0 -13
- package/dist/api/inventory.d.ts +9 -9
- package/dist/api/license.d.ts +8 -0
- package/dist/{app-CGcDbrt8.js → app-OztWApio.js} +27841 -28064
- package/dist/app.d.ts +36 -150
- package/dist/app.js +1 -1
- package/dist/{closing-template-B4lQetjU.js → closing-template-DIxXDgZQ.js} +1 -1
- package/dist/components/ChangeLocationComponent.vue.d.ts +21 -14
- package/dist/components/DeprecateSoonWarningDialog.vue.d.ts +22 -0
- package/dist/components/FeatureCapabilityBadge.vue.d.ts +29 -0
- package/dist/components/FeatureCapabilityGate.vue.d.ts +29 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -1
- package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
- package/dist/components/{PreviewBadge.vue.d.ts → PlanTierBadge.vue.d.ts} +5 -13
- package/dist/components/PlanUpgradeDialog.vue.d.ts +30 -0
- package/dist/composable/useNavigationMenu.d.ts +2 -1
- package/dist/{date2-CHOcS7LX.js → date2-BTzYzk-x.js} +1 -1
- package/dist/{dayjs.min-DrqpmBJQ.js → dayjs.min-BIg6CfC4.js} +1 -1
- package/dist/{decimal-BJ-B2ZXz.js → decimal-B34w3X7O.js} +2 -2
- package/dist/{defineDeepModel-DLlTW3xL.js → defineDeepModel-CrZAv12u.js} +1 -1
- package/dist/{duplicate-template-Dyz7iXqd.js → duplicate-template-BKVPhi40.js} +1 -1
- package/dist/{inventory-core-dart.default-DGI40oFz.js → feature-BUVZ_ab3.js} +766 -398
- package/dist/feature-flags/core.d.ts +28 -0
- package/dist/feature-flags/navigation-capabilities.d.ts +23 -0
- package/dist/feature-flags/navigation-capabilities.spec.d.ts +1 -0
- package/dist/feature-flags/plan-tier.d.ts +6 -0
- package/dist/feature-flags/plan-tier.spec.d.ts +1 -0
- package/dist/feature-flags/portal-feature-catalog.d.ts +19 -0
- package/dist/feature-flags/portal-feature-catalog.spec.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +16 -0
- package/dist/feature-flags/vue.spec.d.ts +1 -0
- package/dist/{format-time-from-id-DBFdt14U.js → format-time-from-id-DGLxhRFH.js} +1 -1
- package/dist/{format-unit-display-BXCWhtXb.js → format-unit-display-BhudItCc.js} +118 -119
- package/dist/helper/menu-usage-module.d.ts +1 -1
- package/dist/helper/number.d.ts +5 -1
- package/dist/helper/rules.d.ts +1 -1
- package/dist/id-to-date-BfwadWDS.js +67 -0
- package/dist/{import-export.helper-BgaADwYQ.js → import-export.helper-BdQ_d-fT.js} +16 -17
- package/dist/{index-BT-a2SOP.js → index-BTNI4XZ2.js} +1 -1
- package/dist/{index-BS5wlvV_.js → index-B_hoeQNL.js} +3 -3
- package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
- package/dist/{index-CqgYx0tx.js → index-CCvxPS3E.js} +1 -1
- package/dist/index-eGvSlWMU.js +1892 -0
- package/dist/{lz-string-CRDgHWib.js → lz-string-CVEGZpSC.js} +1 -1
- package/dist/{netsuite-CaILEA4R.js → netsuite-DEhdSyBn.js} +9 -3
- package/dist/{predefined-templates-CTLn4dgR.js → predefined-templates-BTdQl7jj.js} +1 -1
- package/dist/{purchase-order-template-CE4_gQyK.js → purchase-order-template-DfMmpsrJ.js} +1 -1
- package/dist/{recalculationUtils-DoBJhZjA.js → recalculationUtils-Ds9Jcg0l.js} +1 -1
- package/dist/router/name.d.ts +2 -3
- package/dist/{row-action.enum-ncgDYAjP.js → row-action.enum-B2Y5YFbc.js} +2 -2
- package/dist/rules-D01xYhgI.js +238 -0
- package/dist/{stock-WxsPiRKa.js → stock-D3kBNq3e.js} +1 -1
- package/dist/stock-DyTC4Teu.js +74 -0
- package/dist/stores/feature.d.ts +20 -2
- package/dist/stores/integration/codemax.d.ts +2 -2
- package/dist/stores/integration/foodmarkethub.d.ts +2 -2
- package/dist/stores/integration/netsuite.d.ts +2 -2
- package/dist/stores/inventory.d.ts +0 -47
- package/dist/stores/inventory.no-location.spec.d.ts +1 -0
- package/dist/stores/location.d.ts +42 -42
- package/dist/stores/supplier.d.ts +49 -49
- package/dist/stores/warehouse.d.ts +3 -2
- package/dist/style.css +1 -1
- package/dist/{supplier-DbdPWPj7.js → supplier-DaidezrO.js} +2 -2
- package/dist/{surcharge-BsvY29nN.js → surcharge-C-PFvvlU.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-dxyRNetA.js → uom-rules-Un5bhcrm.js} +1 -1
- package/dist/{use-ingredient-select-dialog-eYM-6q4s.js → use-ingredient-select-dialog-DV_hkAt9.js} +2 -2
- package/dist/use-inventory-binding-dialog-CTceyFrg.js +113 -0
- package/dist/{use-template-enabled-locations-C0o5r4_0.js → use-template-enabled-locations-DGqw8tvz.js} +2 -2
- package/dist/{use-transfer-locations-CC35SlyA.js → use-transfer-locations-DgtKajec.js} +2 -2
- package/dist/{useHrmPermission-DxzYJX4n.js → useHrmPermission-BMpZlah6.js} +1 -1
- package/dist/useNavigationMenu-D0NtXAnB.js +346 -0
- package/dist/{useSseClient-ml-_A-4u.js → useSseClient-CHZZxy7Z.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
- package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +18 -18
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts +1 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -1
- package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +1 -1
- package/dist/{components/PremiumBadge.vue.d.ts → views/integration/IntegrationPlatformView.vue.d.ts} +11 -13
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +4 -4
- package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +4 -4
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +4 -4
- package/dist/views/integration/components/CodemaxDialog.vue.d.ts +4 -4
- package/dist/views/integration/components/IntegrationCard.vue.d.ts +38 -0
- package/dist/views/integration/components/Synergy/importFn.spec.d.ts +1 -0
- package/dist/views/integration/components/Xilnex/importFn.spec.d.ts +1 -0
- package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
- package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
- package/dist/views/integration/helper/opening-balance.d.ts +22 -0
- package/dist/views/integration/helper/opening-balance.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunDetailTabs.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/{ProductionRunTabs.vue.d.ts → ProductionRunDetailTabs.vue.d.ts} +4 -8
- package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +2 -2
- package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +4 -4
- package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +2 -2
- package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +2 -2
- package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +11 -11
- package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +2 -2
- package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +2 -2
- package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +3 -3
- package/dist/views/production-run/features/prepare/production-run-prepare-sheet.d.ts +0 -9
- package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +0 -2
- package/dist/views/production-run/shared/model/production-run-list.d.ts +0 -1
- package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +10 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
- package/dist/views/receive-request/composables/netsuite-order-label.d.ts +11 -0
- package/dist/views/receive-request/composables/netsuite-order-label.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +6 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +48 -48
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +42 -42
- package/dist/views/receive-request/import/export.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +42 -42
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +8 -8
- package/dist/views/recipe/components/recipe-bulk-editor/components/ModificationCard.spec.d.ts +1 -0
- package/dist/views/recipe/helper/bulk-edit-simulation.helper.d.ts +0 -1
- package/dist/views/recipe/helper/import-recipe.d.ts +2 -2
- package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
- package/dist/views/settings/PlanLicenseDisplay.spec.d.ts +1 -0
- package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → settings/PlanLicenseDisplay.vue.d.ts} +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +72 -44
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/ConvertSkuDialog.spec.d.ts +1 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
- package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +6 -4
- package/dist/{vue-i18n-DYapak10.js → vue-i18n-mXrQUZTi.js} +235 -235
- package/dist/{xlsx.util-DrElrKDx.js → xlsx.util-CKx0NYTq.js} +2 -2
- package/package.json +72 -67
- package/dist/App-CBS1Tqpl.js +0 -1476
- package/dist/ClosingHistoryView-3z17ZJzK.js +0 -761
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CB50Gqot.js +0 -243
- package/dist/FmMultiselectDialog-7xh6h5AX.js +0 -77
- package/dist/ImportView-C3Fc0e_X.js +0 -1302
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-6naVJEke.js +0 -51
- package/dist/IngredientGroupView-DA1buE1C.js +0 -985
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-tEKGPtHZ.js +0 -563
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cbg0j7Jz.js +0 -72
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-Btrg9HNc.js +0 -93
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js +0 -29
- package/dist/ProductionRunDetailView-DYeSPsIY.js +0 -2284
- package/dist/ProductionRunPreparePrintView-DJOejqOC.js +0 -34
- package/dist/ProductionRunTabs.vue_vue_type_script_setup_true_lang-JKMI-vVw.js +0 -7543
- package/dist/ProductionRunView-Cg3aYOg9.js +0 -911
- package/dist/RecipeView-DC0p9RKL.js +0 -3625
- package/dist/SettingsView-DaKfCVY5.js +0 -698
- package/dist/StockView-DdweBRFv.js +0 -2612
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
- package/dist/TransferTemplateView-CSXcAB3-.js +0 -2327
- package/dist/feature-DtpSrELx.js +0 -1136
- package/dist/number-DE6ovaTs.js +0 -138
- package/dist/random-CSbEbElR.js +0 -10
- package/dist/rules-CkaU7yFU.js +0 -98
- package/dist/stock-B3Q9e174.js +0 -75
- package/dist/use-inventory-binding-dialog-CCV1iieA.js +0 -152
- package/dist/useNavigationMenu-IKam6CEf.js +0 -172
- package/dist/usePromise-CbVUCxhj.js +0 -29
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -10
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -21
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
- package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +0 -37
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
- package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +0 -31
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -77
- package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
- /package/dist/components/{FmFeatureFlagDialog.vue.d.ts → DeprecateSoonPill.vue.d.ts} +0 -0
- /package/dist/{views/production-run/ProductionRunPreparePrintView.spec.d.ts → components/FeatureCapabilityGate.spec.d.ts} +0 -0
- /package/dist/{views/production-run/features/detail/ProductionRunTabs.spec.d.ts → components/NumberPrecisionInput.spec.d.ts} +0 -0
- /package/dist/{views/production-run/features/prepare/production-run-prepare-sheet-cleanup.spec.d.ts → feature-flags/core.spec.d.ts} +0 -0
- /package/dist/views/{production-run/ProductionRunPreparePrintView.vue.d.ts → settings/FeatureFlagView.vue.d.ts} +0 -0
package/dist/{use-ingredient-select-dialog-eYM-6q4s.js → use-ingredient-select-dialog-DV_hkAt9.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as S } from "pinia";
|
|
2
|
-
import { a as b } from "./app-
|
|
3
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
+
import { a as b } from "./app-OztWApio.js";
|
|
3
|
+
import { a as A } from "./FmMultiselectDialog-DvaWLGY5.js";
|
|
4
4
|
import { useDialog as I } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
6
6
|
const w = S(
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { a as y } from "./FmMultiselectDialog-DvaWLGY5.js";
|
|
2
|
+
import { a as S } from "./app-OztWApio.js";
|
|
3
|
+
import { useDialog as E } from "@feedmepos/ui-library";
|
|
4
|
+
function w() {
|
|
5
|
+
const c = S(), g = E();
|
|
6
|
+
async function _(s, p, d, f = []) {
|
|
7
|
+
var n, a;
|
|
8
|
+
const b = s.filter((i) => i.type === "SKU"), l = s.filter((i) => i.type !== "SKU"), r = /* @__PURE__ */ new Set();
|
|
9
|
+
if (d)
|
|
10
|
+
for (const i of c.skus)
|
|
11
|
+
!f.some((o) => o === i._id) && i._id !== d && !((a = (n = i.convert) == null ? void 0 : n.inventoryBindings) != null && a.some((o) => o.id === d)) || r.add(i._id);
|
|
12
|
+
const m = c.skus.map((i) => ({
|
|
13
|
+
label: i.name,
|
|
14
|
+
sublabel: `${i.code}${r.has(i._id) ? " (Cannot bind, will cause recursive binding)" : ""}`,
|
|
15
|
+
value: i,
|
|
16
|
+
disabled: r.has(i._id)
|
|
17
|
+
})), u = m.filter(
|
|
18
|
+
(i) => b.find((t) => t.id === i.value._id) && !r.has(i.value._id)
|
|
19
|
+
).map((i) => i.value);
|
|
20
|
+
g.open({
|
|
21
|
+
title: "Select ingredients",
|
|
22
|
+
contentComponent: y,
|
|
23
|
+
contentComponentProps: {
|
|
24
|
+
items: m,
|
|
25
|
+
modelValue: u,
|
|
26
|
+
virtualScroll: !0
|
|
27
|
+
},
|
|
28
|
+
primaryActions: {
|
|
29
|
+
text: "Confirm",
|
|
30
|
+
close: !0
|
|
31
|
+
},
|
|
32
|
+
secondaryActions: {
|
|
33
|
+
text: "Close",
|
|
34
|
+
close: !0,
|
|
35
|
+
variant: "tertiary"
|
|
36
|
+
}
|
|
37
|
+
}).onPrimary((i) => {
|
|
38
|
+
const t = [
|
|
39
|
+
...l,
|
|
40
|
+
...s.filter((o) => i.find((e) => e._id === o.id)),
|
|
41
|
+
...i.filter((o) => !s.find((e) => e.id === o._id)).map((o) => ({
|
|
42
|
+
type: "SKU",
|
|
43
|
+
id: o._id,
|
|
44
|
+
amount: {
|
|
45
|
+
amount: 1,
|
|
46
|
+
precision: 0
|
|
47
|
+
}
|
|
48
|
+
}))
|
|
49
|
+
];
|
|
50
|
+
p(t);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
async function v(s, p, d = []) {
|
|
54
|
+
var u;
|
|
55
|
+
const f = s.filter((n) => n.type === "RECIPE"), b = s.filter((n) => n.type !== "RECIPE"), l = /* @__PURE__ */ new Set();
|
|
56
|
+
if (d.length)
|
|
57
|
+
for (const n of c.recipes) {
|
|
58
|
+
const a = ((u = c.recipeBindingFlattenCache[n._id]) == null ? void 0 : u.inventoryBindings) ?? [], i = a.some(
|
|
59
|
+
(e) => e.bindingPaths.some((C) => d.some((h) => h === C.id))
|
|
60
|
+
), t = a.some(
|
|
61
|
+
(e) => "success" in e && d.includes(e.ingredient._id)
|
|
62
|
+
);
|
|
63
|
+
(d.some((e) => e === n._id) || i || t) && l.add(n._id);
|
|
64
|
+
}
|
|
65
|
+
const r = c.recipes.filter((n) => !d.includes(n._id)).map((n) => ({
|
|
66
|
+
label: n.name,
|
|
67
|
+
sublabel: l.has(n._id) ? "(Cannot bind, will cause recursive binding)" : `${n.contains.length} inventory bindings`,
|
|
68
|
+
value: n,
|
|
69
|
+
disabled: l.has(n._id)
|
|
70
|
+
})), m = r.filter(
|
|
71
|
+
(n) => f.find((a) => a.id === n.value._id) && !l.has(n.value._id)
|
|
72
|
+
).map((n) => n.value);
|
|
73
|
+
g.open({
|
|
74
|
+
title: "Select recipes",
|
|
75
|
+
contentComponent: y,
|
|
76
|
+
contentComponentProps: {
|
|
77
|
+
items: r,
|
|
78
|
+
modelValue: m,
|
|
79
|
+
virtualScroll: !0
|
|
80
|
+
},
|
|
81
|
+
primaryActions: {
|
|
82
|
+
text: "Confirm",
|
|
83
|
+
close: !0
|
|
84
|
+
},
|
|
85
|
+
secondaryActions: {
|
|
86
|
+
text: "Close",
|
|
87
|
+
close: !0,
|
|
88
|
+
variant: "tertiary"
|
|
89
|
+
}
|
|
90
|
+
}).onPrimary((n) => {
|
|
91
|
+
const a = [
|
|
92
|
+
...s.filter((i) => n.find((t) => t._id === i.id)),
|
|
93
|
+
...n.filter((i) => !s.find((t) => t.id === i._id)).map((i) => ({
|
|
94
|
+
type: "RECIPE",
|
|
95
|
+
id: i._id,
|
|
96
|
+
amount: {
|
|
97
|
+
amount: 1,
|
|
98
|
+
precision: 0
|
|
99
|
+
}
|
|
100
|
+
})),
|
|
101
|
+
...b
|
|
102
|
+
];
|
|
103
|
+
p(a);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
promptIngredientsBinding: _,
|
|
108
|
+
promptRecipesBinding: v
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
w as u
|
|
113
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
-
import { u as S } from "./app-
|
|
1
|
+
import { a as A } from "./FmMultiselectDialog-DvaWLGY5.js";
|
|
2
|
+
import { u as S } from "./app-OztWApio.js";
|
|
3
3
|
import { useI18n as w, useCoreStore as i, useCustomAttributes as _ } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as C, components as p } from "@feedmepos/ui-library";
|
|
5
5
|
import { computed as r, h as c } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as g, r as l, $ as w, a2 as R } from "./app-
|
|
2
|
-
import { u as E } from "./supplier-
|
|
1
|
+
import { u as g, r as l, $ as w, a2 as R } from "./app-OztWApio.js";
|
|
2
|
+
import { u as E } from "./supplier-DaidezrO.js";
|
|
3
3
|
import { computed as u } from "vue";
|
|
4
4
|
function d(n) {
|
|
5
5
|
const c = R.safeParse(n);
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import { computed as R, h as P } from "vue";
|
|
2
|
+
import { R as e, ac as O, ad as A, ab as U } from "./app-OztWApio.js";
|
|
3
|
+
import { useCoreStore as b, useI18n as L } from "@feedmepos/mf-common";
|
|
4
|
+
import { u as y, I as E, f as v } from "./feature-BUVZ_ab3.js";
|
|
5
|
+
import { e as G, g, d as M, i as H } from "./PlanTierBadge.vue_vue_type_script_setup_true_lang-DJvfMOND.js";
|
|
6
|
+
import { _ as K } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BUYI8koH.js";
|
|
7
|
+
const _ = [
|
|
8
|
+
{
|
|
9
|
+
route: e.STOCK,
|
|
10
|
+
module: "Stock",
|
|
11
|
+
tier: "standard",
|
|
12
|
+
description: "View current stock balances and inventory movement."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
route: e.PRODUCTION_RUN,
|
|
16
|
+
module: "Stock",
|
|
17
|
+
tier: "standard",
|
|
18
|
+
description: "Record production items and consume their component stock.",
|
|
19
|
+
featureKey: "production-runs"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
route: e.UNIT_COST_HISTORY,
|
|
23
|
+
module: "Costing",
|
|
24
|
+
tier: "premium",
|
|
25
|
+
description: "Review unit-cost history and costing changes.",
|
|
26
|
+
featureKey: "unit-cost"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
route: e.WASTAGE_TEMPLATE,
|
|
30
|
+
module: "Stock",
|
|
31
|
+
tier: "premium",
|
|
32
|
+
description: "Create reusable wastage-adjustment templates.",
|
|
33
|
+
featureKey: "wastage-template"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
route: e.CLOSING_HISTORY,
|
|
37
|
+
module: "Closing",
|
|
38
|
+
tier: "standard",
|
|
39
|
+
description: "Review completed inventory closings and their variances."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
route: e.CLOSING_TEMPLATE,
|
|
43
|
+
module: "Closing",
|
|
44
|
+
tier: "premium",
|
|
45
|
+
description: "Set up reusable stock-closing templates.",
|
|
46
|
+
featureKey: "closing-template"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
route: e.CLOSING_DRAFT,
|
|
50
|
+
module: "Closing",
|
|
51
|
+
tier: "premium",
|
|
52
|
+
description: "Prepare and continue draft stock closings.",
|
|
53
|
+
featureKey: "closing-template"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
route: e.INGREDIENTS,
|
|
57
|
+
module: "Catalogue",
|
|
58
|
+
tier: "standard",
|
|
59
|
+
description: "Manage ingredients and SKUs."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
route: e.RECIPE,
|
|
63
|
+
module: "Catalogue",
|
|
64
|
+
tier: "standard",
|
|
65
|
+
description: "Create and maintain recipes and bills of materials."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
route: e.UNIT,
|
|
69
|
+
module: "Catalogue",
|
|
70
|
+
tier: "standard",
|
|
71
|
+
description: "Manage inventory units of measure and conversions."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
route: e.RECEIVE_REQUEST,
|
|
75
|
+
module: "Purchasing & transfers",
|
|
76
|
+
tier: "standard",
|
|
77
|
+
description: "Create, receive, and track purchase orders and transfers."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
route: e.RECEIVE_REQUEST_BULK,
|
|
81
|
+
module: "Purchasing & transfers",
|
|
82
|
+
tier: "standard",
|
|
83
|
+
description: "Create and receive purchase orders across multiple locations.",
|
|
84
|
+
featureKey: "bulk-receive-transfer"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
route: e.APPROVAL,
|
|
88
|
+
module: "Purchasing & transfers",
|
|
89
|
+
tier: "standard",
|
|
90
|
+
description: "Review and action stock-transfer approvals."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
route: e.SURCHARGE,
|
|
94
|
+
module: "Purchasing & transfers",
|
|
95
|
+
tier: "standard",
|
|
96
|
+
description: "Configure purchase-order surcharges.",
|
|
97
|
+
featureKey: "surcharge"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
route: e.TRANSFER_TEMPLATE,
|
|
101
|
+
module: "Purchasing & transfers",
|
|
102
|
+
tier: "premium",
|
|
103
|
+
description: "Create reusable purchase-order and transfer templates.",
|
|
104
|
+
featureKey: "purchase-order-template"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
route: e.SUPPLIER,
|
|
108
|
+
module: "Suppliers",
|
|
109
|
+
tier: "standard",
|
|
110
|
+
description: "Manage supplier records and purchasing details."
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
route: e.WAREHOUSE,
|
|
114
|
+
module: "Warehouse",
|
|
115
|
+
tier: "standard",
|
|
116
|
+
description: "Manage warehouses; additional warehouse fees may apply."
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
route: e.PUBLISH,
|
|
120
|
+
module: "Publishing",
|
|
121
|
+
tier: "standard",
|
|
122
|
+
description: "Publish inventory catalogue changes to connected systems."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
route: e.IMPORT,
|
|
126
|
+
module: "Data management",
|
|
127
|
+
tier: "standard",
|
|
128
|
+
description: "Bulk import units, ingredients, and recipes.",
|
|
129
|
+
featureKey: "bulk-import"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
route: e.INTEGRATION,
|
|
133
|
+
module: "Integrations",
|
|
134
|
+
tier: "standard",
|
|
135
|
+
description: "Configure supported third-party inventory integrations."
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
route: e.INTEGRATION_EXPLORER,
|
|
139
|
+
module: "Integrations",
|
|
140
|
+
tier: "standard",
|
|
141
|
+
description: "Inspect and manage integration records and synchronization."
|
|
142
|
+
}
|
|
143
|
+
], F = Object.fromEntries(
|
|
144
|
+
_.map((s) => {
|
|
145
|
+
var u;
|
|
146
|
+
const o = g(s.featureKey ?? "");
|
|
147
|
+
return [
|
|
148
|
+
s.route,
|
|
149
|
+
M({
|
|
150
|
+
key: s.route,
|
|
151
|
+
minimumTier: s.tier,
|
|
152
|
+
release: s.release ?? ((u = o == null ? void 0 : o.definition) == null ? void 0 : u.release),
|
|
153
|
+
flagKeys: o == null ? void 0 : o.flagKeys
|
|
154
|
+
})
|
|
155
|
+
];
|
|
156
|
+
})
|
|
157
|
+
);
|
|
158
|
+
function k(s) {
|
|
159
|
+
return _.find((o) => o.route === s) ?? null;
|
|
160
|
+
}
|
|
161
|
+
function B(s) {
|
|
162
|
+
return s ? F[s] ?? null : null;
|
|
163
|
+
}
|
|
164
|
+
function q(s, o) {
|
|
165
|
+
const u = B(s);
|
|
166
|
+
return u ? G(u, o) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
|
|
167
|
+
}
|
|
168
|
+
const D = A.reduce(
|
|
169
|
+
(s, o) => {
|
|
170
|
+
var u;
|
|
171
|
+
return o.name && (s[o.name] = (u = o.meta) == null ? void 0 : u.validationManifest), s;
|
|
172
|
+
},
|
|
173
|
+
{}
|
|
174
|
+
);
|
|
175
|
+
function x() {
|
|
176
|
+
const s = b(), o = y(), { t: u } = L(), a = (t) => O(t, u), h = R(
|
|
177
|
+
() => {
|
|
178
|
+
var t;
|
|
179
|
+
return ((t = s.sessionUser.value) == null ? void 0 : t.permissions) ?? [];
|
|
180
|
+
}
|
|
181
|
+
), N = (t = []) => t.length === 0 ? !0 : U(t, h.value).granted, n = (t) => {
|
|
182
|
+
const r = D[t];
|
|
183
|
+
return N(r == null ? void 0 : r.requiredCaslPermissions);
|
|
184
|
+
}, c = (t) => {
|
|
185
|
+
var r;
|
|
186
|
+
return ((r = o.flags.find((d) => d.name === t)) == null ? void 0 : r.beta) !== !1 && !o.isFlagOn(t);
|
|
187
|
+
}, m = (t) => t.filter((r) => !r.hide).map((r) => r.children ? { ...r, children: m(r.children) } : r).filter((r) => !r.children || r.children.length > 0), I = (t) => t.map((r) => {
|
|
188
|
+
const { hide: d, children: i, ...l } = r, T = { ...l };
|
|
189
|
+
return i && (T.children = I(i)), T;
|
|
190
|
+
}), p = (t) => t.map((r) => {
|
|
191
|
+
const d = r.value, i = k(d), l = g((i == null ? void 0 : i.featureKey) ?? ""), T = l == null ? void 0 : l.category, C = i && (i.tier === "premium" || T === "beta" || l != null && l.deprecateSoon) ? () => P(K, {
|
|
192
|
+
tier: i.tier,
|
|
193
|
+
category: T,
|
|
194
|
+
deprecateSoon: l == null ? void 0 : l.deprecateSoon,
|
|
195
|
+
featureKey: i.featureKey
|
|
196
|
+
}) : void 0;
|
|
197
|
+
return {
|
|
198
|
+
...r,
|
|
199
|
+
badge: C,
|
|
200
|
+
children: r.children ? p(r.children) : void 0
|
|
201
|
+
};
|
|
202
|
+
}), S = R(() => {
|
|
203
|
+
var d;
|
|
204
|
+
const t = [
|
|
205
|
+
{
|
|
206
|
+
label: a(e.STOCK),
|
|
207
|
+
children: [
|
|
208
|
+
{
|
|
209
|
+
label: u("inventory.stock.stock_balance.title"),
|
|
210
|
+
value: e.STOCK,
|
|
211
|
+
hide: !n(e.STOCK)
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
label: a(e.PRODUCTION_RUN),
|
|
215
|
+
value: e.PRODUCTION_RUN,
|
|
216
|
+
hide: !n(e.PRODUCTION_RUN) || c(E.inventory_portal_production_item)
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
label: a(e.WASTAGE_TEMPLATE),
|
|
220
|
+
value: e.WASTAGE_TEMPLATE,
|
|
221
|
+
hide: !n(e.WASTAGE_TEMPLATE) || c(E.inventory_pos_adjust_v2_wastage)
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
label: a(e.UNIT_COST_HISTORY),
|
|
225
|
+
value: e.UNIT_COST_HISTORY,
|
|
226
|
+
hide: !n(e.UNIT_COST_HISTORY) || o.isModuleBeta(v.Costing) && !o.isModuleEnabled(v.Costing)
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
label: u("inventory.closing.title"),
|
|
232
|
+
children: [
|
|
233
|
+
{
|
|
234
|
+
label: a(e.CLOSING_HISTORY),
|
|
235
|
+
value: e.CLOSING_HISTORY,
|
|
236
|
+
hide: !n(e.CLOSING_HISTORY)
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
label: a(e.CLOSING_TEMPLATE),
|
|
240
|
+
value: e.CLOSING_TEMPLATE,
|
|
241
|
+
hide: !n(e.CLOSING_TEMPLATE) || c(E.inventory_pos_closing_v2)
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
label: a(e.CLOSING_DRAFT),
|
|
245
|
+
value: e.CLOSING_DRAFT,
|
|
246
|
+
hide: !n(e.CLOSING_DRAFT) || c(E.inventory_pos_closing_v2)
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
label: a(e.INGREDIENTS),
|
|
252
|
+
value: e.INGREDIENTS,
|
|
253
|
+
hide: !n(e.INGREDIENTS)
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
label: a(e.RECIPE),
|
|
257
|
+
value: e.RECIPE,
|
|
258
|
+
hide: !n(e.RECIPE)
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
label: a(e.UNIT),
|
|
262
|
+
value: e.UNIT,
|
|
263
|
+
hide: !n(e.UNIT)
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
label: u("inventory.transfer.title"),
|
|
267
|
+
children: [
|
|
268
|
+
{
|
|
269
|
+
label: a(e.RECEIVE_REQUEST),
|
|
270
|
+
value: e.RECEIVE_REQUEST,
|
|
271
|
+
hide: !n(e.RECEIVE_REQUEST)
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
label: a(e.RECEIVE_REQUEST_BULK),
|
|
275
|
+
value: e.RECEIVE_REQUEST_BULK,
|
|
276
|
+
hide: !n(e.RECEIVE_REQUEST_BULK) || c(E.inventory_receive_request_beta)
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
label: a(e.APPROVAL),
|
|
280
|
+
value: e.APPROVAL,
|
|
281
|
+
hide: !n(e.APPROVAL)
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
label: a(e.SURCHARGE),
|
|
285
|
+
value: e.SURCHARGE,
|
|
286
|
+
hide: !n(e.SURCHARGE) || c(E.inventory_portal_surcharge)
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
label: a(e.TRANSFER_TEMPLATE),
|
|
290
|
+
value: e.TRANSFER_TEMPLATE,
|
|
291
|
+
hide: !n(e.TRANSFER_TEMPLATE) || c(E.inventory_portal_must_use_transfer_template) && !H("purchase-order-template")
|
|
292
|
+
}
|
|
293
|
+
]
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
label: a(e.SUPPLIER),
|
|
297
|
+
value: e.SUPPLIER,
|
|
298
|
+
hide: !n(e.SUPPLIER)
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
label: a(e.WAREHOUSE),
|
|
302
|
+
value: e.WAREHOUSE,
|
|
303
|
+
hide: !n(e.WAREHOUSE)
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
label: a(e.PUBLISH),
|
|
307
|
+
value: e.PUBLISH,
|
|
308
|
+
hide: !n(e.PUBLISH)
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
label: a(e.IMPORT),
|
|
312
|
+
value: e.IMPORT,
|
|
313
|
+
hide: !n(e.IMPORT) || c(E.inventory_bulk_import)
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
label: a(e.INTEGRATION),
|
|
317
|
+
value: e.INTEGRATION,
|
|
318
|
+
hide: !n(e.INTEGRATION)
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
label: a(e.SETTINGS),
|
|
322
|
+
value: e.SETTINGS,
|
|
323
|
+
hide: !n(e.SETTINGS)
|
|
324
|
+
}
|
|
325
|
+
], r = p(I(m(t)));
|
|
326
|
+
return ((d = s.currentBusiness.value) == null ? void 0 : d.menuVersion) === "v3" ? r.filter(
|
|
327
|
+
(i) => i.value !== e.INGREDIENTS && i.value !== e.RECIPE && i.value !== e.UNIT && i.value !== e.PUBLISH
|
|
328
|
+
) : r;
|
|
329
|
+
}), f = R(() => {
|
|
330
|
+
function t(d) {
|
|
331
|
+
for (const i of d)
|
|
332
|
+
if (i.children && i.children.length > 0) {
|
|
333
|
+
const l = t(i.children);
|
|
334
|
+
if (l) return l;
|
|
335
|
+
} else if (i.value)
|
|
336
|
+
return i.value;
|
|
337
|
+
}
|
|
338
|
+
return t(S.value) ?? null;
|
|
339
|
+
});
|
|
340
|
+
return { menuItems: S, firstAccessibleRouteName: f };
|
|
341
|
+
}
|
|
342
|
+
export {
|
|
343
|
+
q as e,
|
|
344
|
+
_ as n,
|
|
345
|
+
x as u
|
|
346
|
+
};
|