@feedmepos/mf-inventory-portal 1.8.0-dev.1 → 1.8.0-dev.3

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 (156) hide show
  1. package/dist/App-DRXADP0k.js +1498 -0
  2. package/dist/{ApprovalView-C8_ax05b.js → ApprovalView-hV1msz5Y.js} +9 -9
  3. package/dist/{BindingsDialog-t0ZY9eh5.js → BindingsDialog-BX1Lopf0.js} +2 -2
  4. package/dist/{BindingsPicker-C0Qblmml.js → BindingsPicker-BNKW8-XY.js} +2 -2
  5. package/dist/{BindingsTable-CsqUBbRA.js → BindingsTable-DiLDsL83.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-DAG-TMox.js → BulkReceiveRequestView-oQh6kFLc.js} +20 -20
  7. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BaMcGU-x.js +151 -0
  8. package/dist/{ClosingDraftView-CdKp4Ny6.js → ClosingDraftView-sgLoaSf4.js} +20 -20
  9. package/dist/{ClosingHistoryView-Blyq9-BS.js → ClosingHistoryView-BnE9HrzA.js} +5 -5
  10. package/dist/{ClosingTemplateView-C326DL4q.js → ClosingTemplateView-BD3Pa11r.js} +302 -291
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CXjubRbj.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DlbyxkMQ.js} +1 -1
  12. package/dist/{DefaultView-CsIMmQAY.js → DefaultView-CuzvVkfE.js} +5 -5
  13. package/dist/{DeliveryOrderPrintPreview-eTrMvJzA.js → DeliveryOrderPrintPreview-w-1aAOY1.js} +2 -2
  14. package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-Bp8bjDU1.js +58 -0
  15. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-B7nBbxMo.js → EmailDialog.vue_vue_type_script_setup_true_lang-CxD12Qct.js} +1668 -1671
  16. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CMoQKl_a.js +308 -0
  17. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CI2KTzDs.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BqCh_vTP.js} +1 -1
  18. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Db_FiSRe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CAXnmdUy.js} +2 -2
  19. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NhOdW33O.js +120 -0
  20. package/dist/{FmMultiselectDialog-BAw-gp5K.js → FmMultiselectDialog-BqZgHP8s.js} +1 -1
  21. package/dist/{FmMultiselectDialog-CYUxtxnS.js → FmMultiselectDialog-CULwA_hi.js} +2 -2
  22. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DOkV11NN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CI3Y9kDl.js} +6 -6
  23. package/dist/{ImportView-BmotFC-3.js → ImportView-DqQG673_.js} +6 -6
  24. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVCCpvS4.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DfvNUu80.js} +1 -1
  25. package/dist/IngredientGroupView-CyngKxPo.js +1000 -0
  26. package/dist/{IngredientsView-CZ6E7cXf.js → IngredientsView-pzpP6oXT.js} +309 -296
  27. package/dist/{IntegrationExplorerView-B15ND4Fg.js → IntegrationExplorerView-C5aAhB6e.js} +4 -4
  28. package/dist/{IntegrationView-hkNhsqx2.js → IntegrationView-Bqun7nX0.js} +2403 -2408
  29. package/dist/{InventoryBindingForm-SfuUF0_O.js → InventoryBindingForm-r_Ua1C4a.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Zq81p_MF.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYDuu4kU.js} +5 -5
  31. package/dist/{InventoryBindingSummary-DUcukkyJ.js → InventoryBindingSummary-BQuZLohR.js} +1 -1
  32. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmfROiLM.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-7r-QcJdU.js} +1 -1
  33. package/dist/{ProductionRunDetailView-BwgRX-14.js → ProductionRunDetailView-95fu_CfH.js} +4 -4
  34. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BbNXNhpr.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CdOca1tV.js} +7 -7
  35. package/dist/{ProductionRunView-CZU7LY9-.js → ProductionRunView-DIjor_Ix.js} +3 -3
  36. package/dist/{PublishView-DS2FZ66p.js → PublishView-DYObyHQq.js} +3 -3
  37. package/dist/{PurchaseOrderPrintPreview-CZa0MVAs.js → PurchaseOrderPrintPreview-C0jCmI9L.js} +2 -2
  38. package/dist/{ReceiveRequestView-Bk5b3nVB.js → ReceiveRequestView-i7ibPfIE.js} +14 -14
  39. package/dist/{RecipeView-DvI6X-uN.js → RecipeView-C5VO7yr3.js} +18 -18
  40. package/dist/SettingsView-CdBloj9k.js +983 -0
  41. package/dist/{StockView-Z9wGihT7.js → StockView-g_6eJ62R.js} +327 -322
  42. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DdZg9T4n.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C1rKc7MA.js} +1 -1
  43. package/dist/{SupplierView-D8q6siZW.js → SupplierView-DkYp_Frj.js} +451 -447
  44. package/dist/{SurchargeView-Db_5YFoR.js → SurchargeView-CfkV4Y3y.js} +7 -7
  45. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-WOVs4Fr1.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-2MtN1p5t.js} +2 -2
  46. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BtoP4XgE.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CYMjKXq4.js} +1 -1
  47. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bljc4Vuy.js → TransferDetails.vue_vue_type_script_setup_true_lang-D0zNr_vQ.js} +21 -21
  48. package/dist/{TransferTemplateView-DtsJzmUr.js → TransferTemplateView-Ne2gYUSn.js} +21 -21
  49. package/dist/{UnitCostHistoryView-BqDiQ4IE.js → UnitCostHistoryView-Db0_otOb.js} +4 -4
  50. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BjSmg5LX.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BzO1lq7j.js} +4 -4
  51. package/dist/{UnitView-CM695-VI.js → UnitView-CiCeQ63i.js} +8 -8
  52. package/dist/{WarehouseView-BdidU4p6.js → WarehouseView-BcuJSOMF.js} +193 -189
  53. package/dist/{WastageTemplateView-DdhwdXT6.js → WastageTemplateView-CPQmtOKQ.js} +15 -15
  54. package/dist/api/feature-flags.d.ts +10 -0
  55. package/dist/api/inventory.d.ts +9 -9
  56. package/dist/api/license.d.ts +9 -0
  57. package/dist/{app-Cb5s4jMu.js → app-DqJp3dcI.js} +146 -108
  58. package/dist/app.d.ts +36 -0
  59. package/dist/app.js +1 -1
  60. package/dist/{closing-template-DnqnpXxn.js → closing-template-BNlgZviN.js} +1 -1
  61. package/dist/components/ChangeLocationComponent.vue.d.ts +21 -14
  62. package/dist/components/DeprecateSoonWarningDialog.vue.d.ts +22 -0
  63. package/dist/components/FeatureCapabilityBadge.vue.d.ts +29 -0
  64. package/dist/components/{PreviewBadge.vue.d.ts → FeatureCapabilityGate.vue.d.ts} +10 -7
  65. package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
  66. package/dist/components/{PremiumBadge.vue.d.ts → PlanTierBadge.vue.d.ts} +5 -13
  67. package/dist/components/PlanUpgradeDialog.vue.d.ts +30 -0
  68. package/dist/composable/useNavigationMenu.d.ts +2 -1
  69. package/dist/{inventory-core-dart.default-DDRxXXnt.js → core-Js7d-3Pv.js} +121 -118
  70. package/dist/{date2-BPhD_1Of.js → date2-Ci7521dn.js} +1 -1
  71. package/dist/{dayjs.min-Zbd6-uVD.js → dayjs.min-Cyp32v4J.js} +1 -1
  72. package/dist/{decimal-Df6a50Ld.js → decimal-BGdm5R3A.js} +2 -2
  73. package/dist/{defineDeepModel-Brbsikbi.js → defineDeepModel-B2cJ-rtd.js} +1 -1
  74. package/dist/{duplicate-template-B9kuShaF.js → duplicate-template-By5WeKZ0.js} +1 -1
  75. package/dist/feature-fG7d73oi.js +371 -0
  76. package/dist/feature-flags/core.d.ts +27 -0
  77. package/dist/feature-flags/core.spec.d.ts +1 -0
  78. package/dist/feature-flags/navigation-capabilities.d.ts +23 -0
  79. package/dist/feature-flags/navigation-capabilities.spec.d.ts +1 -0
  80. package/dist/feature-flags/plan-tier.d.ts +6 -0
  81. package/dist/feature-flags/plan-tier.spec.d.ts +1 -0
  82. package/dist/feature-flags/portal-feature-catalog.d.ts +24 -0
  83. package/dist/feature-flags/vue.d.ts +14 -0
  84. package/dist/{format-time-from-id-DmUjUcVj.js → format-time-from-id-Q8C2P96H.js} +1 -1
  85. package/dist/{format-unit-display-CsQA0SQd.js → format-unit-display-CICrmm8r.js} +13 -13
  86. package/dist/id-to-date-DeN5x0LR.js +67 -0
  87. package/dist/{import-export.helper-DCQ6oX9s.js → import-export.helper-BOTQWxr6.js} +28 -28
  88. package/dist/{index-C-mazZwS.js → index-BbbqCCfp.js} +3 -3
  89. package/dist/{index-BXaIMGnI.js → index-Cxm3Sgfv.js} +1 -1
  90. package/dist/index-Dqf27vLH.js +841 -0
  91. package/dist/{index-UmM6gHJ1.js → index-tCYhLCKP.js} +1 -1
  92. package/dist/{lz-string-Bibw5D_6.js → lz-string-Dy4Pg8mh.js} +1 -1
  93. package/dist/{netsuite-Bev0OtQT.js → netsuite-BaJjkDM8.js} +2 -2
  94. package/dist/{number-y_W4pn_d.js → number-CB36d2PQ.js} +3 -3
  95. package/dist/{predefined-templates-BHvUnTk_.js → predefined-templates-DLm93Bpx.js} +1 -1
  96. package/dist/{purchase-order-template-DgOKEzhS.js → purchase-order-template-CDhn9ZIF.js} +1 -1
  97. package/dist/{recalculationUtils-Dv__DzZh.js → recalculationUtils-Cqvefakh.js} +1 -1
  98. package/dist/{row-action.enum-ncgDYAjP.js → row-action.enum-NTfVmGY8.js} +2 -2
  99. package/dist/{rules-CZTBvenw.js → rules-C8dfM84-.js} +2 -2
  100. package/dist/{stock-XINW8JOM.js → stock-BGB0Siue.js} +3 -3
  101. package/dist/{stock-CxCRZo_D.js → stock-Qu5IiN2_.js} +1 -1
  102. package/dist/stores/feature.d.ts +12 -0
  103. package/dist/stores/integration/netsuite.d.ts +2 -2
  104. package/dist/stores/location.d.ts +42 -42
  105. package/dist/stores/supplier.d.ts +48 -48
  106. package/dist/stores/warehouse.d.ts +1 -1
  107. package/dist/{supplier-CkZdeMcl.js → supplier-CZdNOSMN.js} +17 -17
  108. package/dist/{surcharge-FRSFqjGl.js → surcharge-Cm40oJvU.js} +1 -1
  109. package/dist/tsconfig.app.tsbuildinfo +1 -1
  110. package/dist/{uom-rules-Cm1styDr.js → uom-rules-L-IW4Nwk.js} +1 -1
  111. package/dist/{use-ingredient-select-dialog-ntAqHX04.js → use-ingredient-select-dialog-B2TDVJM6.js} +2 -2
  112. package/dist/{use-inventory-binding-dialog-DVIJO8Cl.js → use-inventory-binding-dialog-BJ00hl5f.js} +2 -2
  113. package/dist/{use-template-enabled-locations-CIZqw-Z8.js → use-template-enabled-locations-DYAPMvo9.js} +2 -2
  114. package/dist/{use-transfer-locations-CM5vNttA.js → use-transfer-locations-w-9tymYS.js} +2 -2
  115. package/dist/{useHrmPermission-CslLuBoP.js → useHrmPermission-BFCIo5sA.js} +1 -1
  116. package/dist/useNavigationMenu-BPHAH5sJ.js +352 -0
  117. package/dist/{useSseClient-CCV4mPzD.js → useSseClient-CWjRacRs.js} +1 -1
  118. package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
  119. package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
  120. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
  121. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
  122. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
  123. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
  124. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +18 -18
  125. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
  126. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
  127. package/dist/views/integration/components/IntegrationCard.vue.d.ts +38 -0
  128. package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
  129. package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
  130. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
  131. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +5 -5
  132. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +39 -39
  133. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +35 -35
  134. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +34 -34
  135. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +6 -6
  136. package/dist/views/settings/FeatureFlagView.vue.d.ts +2 -0
  137. package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
  138. package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
  139. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
  140. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
  141. package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
  142. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
  143. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
  144. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -2
  145. package/dist/{vue-i18n-C5j4EQhi.js → vue-i18n-S4YQ9w6a.js} +295 -295
  146. package/dist/{xlsx.util-B50OvX4z.js → xlsx.util-CP8_VajN.js} +2 -2
  147. package/package.json +5 -5
  148. package/dist/App-BXgpGzGR.js +0 -1476
  149. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js +0 -243
  150. package/dist/IngredientGroupView-qrR9ksEn.js +0 -985
  151. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-3e3kDsbN.js +0 -93
  152. package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js +0 -29
  153. package/dist/SettingsView-sThYErMz.js +0 -698
  154. package/dist/feature-Ckn5ra3z.js +0 -1136
  155. package/dist/useNavigationMenu-CSinmNCY.js +0 -172
  156. /package/dist/components/{FmFeatureFlagDialog.vue.d.ts → DeprecateSoonPill.vue.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { computed as o } from "vue";
2
- import { u } from "./netsuite-Bev0OtQT.js";
2
+ import { u } from "./netsuite-BaJjkDM8.js";
3
3
  function i(e) {
4
4
  const t = (n) => !!n && n.toLocaleLowerCase().includes("inactive");
5
5
  return t(e.name) || t(e.abbrev);
@@ -1,6 +1,6 @@
1
1
  import { defineStore as S } from "pinia";
2
- import { a as b } from "./app-Cb5s4jMu.js";
3
- import { a as A } from "./FmMultiselectDialog-CYUxtxnS.js";
2
+ import { a as b } from "./app-DqJp3dcI.js";
3
+ import { a as A } from "./FmMultiselectDialog-CULwA_hi.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(
@@ -1,5 +1,5 @@
1
- import { a as g } from "./FmMultiselectDialog-CYUxtxnS.js";
2
- import { a as P } from "./app-Cb5s4jMu.js";
1
+ import { a as g } from "./FmMultiselectDialog-CULwA_hi.js";
2
+ import { a as P } from "./app-DqJp3dcI.js";
3
3
  import { useDialog as E } from "@feedmepos/ui-library";
4
4
  function A() {
5
5
  const u = P(), _ = E();
@@ -1,5 +1,5 @@
1
- import { a as A } from "./FmMultiselectDialog-CYUxtxnS.js";
2
- import { u as S } from "./app-Cb5s4jMu.js";
1
+ import { a as A } from "./FmMultiselectDialog-CULwA_hi.js";
2
+ import { u as S } from "./app-DqJp3dcI.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-Cb5s4jMu.js";
2
- import { u as E } from "./supplier-CkZdeMcl.js";
1
+ import { u as g, r as l, $ as w, a2 as R } from "./app-DqJp3dcI.js";
2
+ import { u as E } from "./supplier-CZdNOSMN.js";
3
3
  import { computed as u } from "vue";
4
4
  function d(n) {
5
5
  const c = R.safeParse(n);
@@ -1,5 +1,5 @@
1
1
  import { computed as p, toValue as o } from "vue";
2
- import { ab as n } from "./app-Cb5s4jMu.js";
2
+ import { ab as n } from "./app-DqJp3dcI.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  function g(t, i = "all") {
5
5
  const m = c();
@@ -0,0 +1,352 @@
1
+ import { computed as E, h as P } from "vue";
2
+ import { R as e, ac as C, ad as f, ab as O } from "./app-DqJp3dcI.js";
3
+ import { useCoreStore as b, useI18n as _ } from "@feedmepos/mf-common";
4
+ import { useFeatureStore as U } from "./feature-fG7d73oi.js";
5
+ import { e as A, d as L, g as S, a as G } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CMoQKl_a.js";
6
+ const p = [
7
+ {
8
+ route: e.STOCK,
9
+ module: "Stock",
10
+ tier: "standard",
11
+ description: "View current stock balances and inventory movement."
12
+ },
13
+ {
14
+ route: e.PRODUCTION_RUN,
15
+ module: "Stock",
16
+ tier: "standard",
17
+ description: "Record production items and consume their component stock.",
18
+ featureKey: "production-runs"
19
+ },
20
+ {
21
+ route: e.UNIT_COST_HISTORY,
22
+ module: "Stock",
23
+ tier: "premium",
24
+ description: "Review unit-cost history and costing changes.",
25
+ featureKey: "total-cost"
26
+ },
27
+ {
28
+ route: e.WASTAGE_TEMPLATE,
29
+ module: "Stock",
30
+ tier: "premium",
31
+ description: "Create reusable wastage-adjustment templates.",
32
+ featureKey: "wastage-template"
33
+ },
34
+ {
35
+ route: e.CLOSING_HISTORY,
36
+ module: "Closing",
37
+ tier: "standard",
38
+ description: "Review completed inventory closings and their variances."
39
+ },
40
+ {
41
+ route: e.CLOSING_TEMPLATE,
42
+ module: "Closing",
43
+ tier: "premium",
44
+ description: "Set up reusable stock-closing templates.",
45
+ featureKey: "closing-template"
46
+ },
47
+ {
48
+ route: e.CLOSING_DRAFT,
49
+ module: "Closing",
50
+ tier: "premium",
51
+ description: "Prepare and continue draft stock closings.",
52
+ featureKey: "closing-template"
53
+ },
54
+ {
55
+ route: e.INGREDIENTS,
56
+ module: "Catalogue",
57
+ tier: "standard",
58
+ description: "Manage ingredients and SKUs."
59
+ },
60
+ {
61
+ route: e.INGREDIENT_GROUP,
62
+ module: "Catalogue",
63
+ tier: "standard",
64
+ description: "Organize ingredients into reusable groups.",
65
+ featureKey: "ingredient-group"
66
+ },
67
+ {
68
+ route: e.RECIPE,
69
+ module: "Catalogue",
70
+ tier: "standard",
71
+ description: "Create and maintain recipes and bills of materials."
72
+ },
73
+ {
74
+ route: e.UNIT,
75
+ module: "Catalogue",
76
+ tier: "standard",
77
+ description: "Manage inventory units of measure and conversions."
78
+ },
79
+ {
80
+ route: e.RECEIVE_REQUEST,
81
+ module: "Purchasing & transfers",
82
+ tier: "standard",
83
+ description: "Create, receive, and track purchase orders and transfers."
84
+ },
85
+ {
86
+ route: e.RECEIVE_REQUEST_BULK,
87
+ module: "Purchasing & transfers",
88
+ tier: "standard",
89
+ description: "Create and receive purchase orders across multiple locations.",
90
+ featureKey: "bulk-receive-transfer"
91
+ },
92
+ {
93
+ route: e.APPROVAL,
94
+ module: "Purchasing & transfers",
95
+ tier: "standard",
96
+ description: "Review and action stock-transfer approvals."
97
+ },
98
+ {
99
+ route: e.SURCHARGE,
100
+ module: "Purchasing & transfers",
101
+ tier: "standard",
102
+ description: "Configure purchase-order surcharges.",
103
+ featureKey: "surcharge"
104
+ },
105
+ {
106
+ route: e.TRANSFER_TEMPLATE,
107
+ module: "Purchasing & transfers",
108
+ tier: "premium",
109
+ description: "Create reusable purchase-order and transfer templates.",
110
+ featureKey: "purchase-order-template"
111
+ },
112
+ {
113
+ route: e.SUPPLIER,
114
+ module: "Suppliers",
115
+ tier: "standard",
116
+ description: "Manage supplier records and purchasing details."
117
+ },
118
+ {
119
+ route: e.WAREHOUSE,
120
+ module: "Warehouse",
121
+ tier: "standard",
122
+ description: "Manage warehouses; additional warehouse fees may apply."
123
+ },
124
+ {
125
+ route: e.PUBLISH,
126
+ module: "Publishing",
127
+ tier: "standard",
128
+ description: "Publish inventory catalogue changes to connected systems."
129
+ },
130
+ {
131
+ route: e.IMPORT,
132
+ module: "Data management",
133
+ tier: "standard",
134
+ description: "Bulk import units, ingredients, and recipes.",
135
+ featureKey: "bulk-import"
136
+ },
137
+ {
138
+ route: e.INTEGRATION,
139
+ module: "Integrations",
140
+ tier: "standard",
141
+ description: "Configure supported third-party inventory integrations."
142
+ },
143
+ {
144
+ route: e.INTEGRATION_EXPLORER,
145
+ module: "Integrations",
146
+ tier: "standard",
147
+ description: "Inspect and manage integration records and synchronization."
148
+ }
149
+ ], y = Object.fromEntries(
150
+ p.map((s) => {
151
+ var n, u;
152
+ return [
153
+ s.route,
154
+ L({
155
+ key: s.route,
156
+ minimumTier: s.tier,
157
+ release: s.release ?? ((u = (n = S(s.featureKey ?? "")) == null ? void 0 : n.definition) == null ? void 0 : u.release)
158
+ })
159
+ ];
160
+ })
161
+ );
162
+ function H(s) {
163
+ return p.find((n) => n.route === s) ?? null;
164
+ }
165
+ function K(s) {
166
+ return s ? y[s] ?? null : null;
167
+ }
168
+ function W(s, n) {
169
+ const u = K(s);
170
+ return u ? A(u, n) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
171
+ }
172
+ const M = f.reduce(
173
+ (s, n) => {
174
+ var u;
175
+ return n.name && (s[n.name] = (u = n.meta) == null ? void 0 : u.validationManifest), s;
176
+ },
177
+ {}
178
+ );
179
+ function w() {
180
+ const s = b(), n = U(), { t: u } = _(), t = (o) => C(o, u), g = E(
181
+ () => {
182
+ var o;
183
+ return ((o = s.sessionUser.value) == null ? void 0 : o.permissions) ?? [];
184
+ }
185
+ ), h = (o = []) => o.length === 0 ? !0 : O(o, g.value).granted, a = (o) => {
186
+ const r = M[o];
187
+ return h(r == null ? void 0 : r.requiredCaslPermissions);
188
+ }, R = (o) => o.filter((r) => !r.hide).map((r) => r.children ? { ...r, children: R(r.children) } : r).filter((r) => !r.children || r.children.length > 0), T = (o) => o.map((r) => {
189
+ const { hide: d, children: i, ...l } = r, c = { ...l };
190
+ return i && (c.children = T(i)), c;
191
+ }), I = (o) => o.map((r) => {
192
+ const d = r.value, i = H(d), l = S((i == null ? void 0 : i.featureKey) ?? ""), c = l == null ? void 0 : l.category, v = i && (i.tier === "premium" || c === "beta" || l != null && l.deprecateSoon) ? () => P(G, {
193
+ tier: i.tier,
194
+ category: c,
195
+ deprecateSoon: l == null ? void 0 : l.deprecateSoon,
196
+ featureKey: i.featureKey
197
+ }) : void 0;
198
+ return {
199
+ ...r,
200
+ badge: v,
201
+ children: r.children ? I(r.children) : void 0
202
+ };
203
+ }), m = E(() => {
204
+ var d;
205
+ const o = [
206
+ {
207
+ label: t(e.STOCK),
208
+ children: [
209
+ {
210
+ label: u("inventory.stock.stock_balance.title"),
211
+ value: e.STOCK,
212
+ hide: !a(e.STOCK)
213
+ },
214
+ {
215
+ label: t(e.PRODUCTION_RUN),
216
+ value: e.PRODUCTION_RUN,
217
+ hide: !a(e.PRODUCTION_RUN) || !n.enableProductionRun
218
+ },
219
+ {
220
+ label: t(e.UNIT_COST_HISTORY),
221
+ value: e.UNIT_COST_HISTORY,
222
+ hide: !a(e.UNIT_COST_HISTORY) || !n.enableTotalCost
223
+ },
224
+ {
225
+ label: t(e.WASTAGE_TEMPLATE),
226
+ value: e.WASTAGE_TEMPLATE,
227
+ hide: !a(e.WASTAGE_TEMPLATE) || !n.enableWastageTemplate
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ label: u("inventory.closing.title"),
233
+ children: [
234
+ {
235
+ label: t(e.CLOSING_HISTORY),
236
+ value: e.CLOSING_HISTORY,
237
+ hide: !a(e.CLOSING_HISTORY)
238
+ },
239
+ {
240
+ label: t(e.CLOSING_TEMPLATE),
241
+ value: e.CLOSING_TEMPLATE,
242
+ hide: !a(e.CLOSING_TEMPLATE) || !n.enableClosingTemplate
243
+ },
244
+ {
245
+ label: t(e.CLOSING_DRAFT),
246
+ value: e.CLOSING_DRAFT,
247
+ hide: !a(e.CLOSING_DRAFT) || !n.enableClosingTemplate
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ label: t(e.INGREDIENTS),
253
+ value: e.INGREDIENTS,
254
+ hide: !a(e.INGREDIENTS)
255
+ },
256
+ {
257
+ label: t(e.INGREDIENT_GROUP),
258
+ value: e.INGREDIENT_GROUP,
259
+ hide: !a(e.INGREDIENT_GROUP) || !n.enableIngredientGroup
260
+ },
261
+ {
262
+ label: t(e.RECIPE),
263
+ value: e.RECIPE,
264
+ hide: !a(e.RECIPE)
265
+ },
266
+ {
267
+ label: t(e.UNIT),
268
+ value: e.UNIT,
269
+ hide: !a(e.UNIT)
270
+ },
271
+ {
272
+ label: u("inventory.transfer.title"),
273
+ children: [
274
+ {
275
+ label: t(e.RECEIVE_REQUEST),
276
+ value: e.RECEIVE_REQUEST,
277
+ hide: !a(e.RECEIVE_REQUEST)
278
+ },
279
+ {
280
+ label: t(e.RECEIVE_REQUEST_BULK),
281
+ value: e.RECEIVE_REQUEST_BULK,
282
+ hide: !a(e.RECEIVE_REQUEST_BULK) || !n.enableReceiveRequestBeta
283
+ },
284
+ {
285
+ label: t(e.APPROVAL),
286
+ value: e.APPROVAL,
287
+ hide: !a(e.APPROVAL)
288
+ },
289
+ {
290
+ label: t(e.SURCHARGE),
291
+ value: e.SURCHARGE,
292
+ hide: !a(e.SURCHARGE) || !n.enableSurcharge
293
+ },
294
+ {
295
+ label: t(e.TRANSFER_TEMPLATE),
296
+ value: e.TRANSFER_TEMPLATE,
297
+ hide: !a(e.TRANSFER_TEMPLATE) || !n.enablePoTemplate
298
+ }
299
+ ]
300
+ },
301
+ {
302
+ label: t(e.SUPPLIER),
303
+ value: e.SUPPLIER,
304
+ hide: !a(e.SUPPLIER)
305
+ },
306
+ {
307
+ label: t(e.WAREHOUSE),
308
+ value: e.WAREHOUSE,
309
+ hide: !a(e.WAREHOUSE)
310
+ },
311
+ {
312
+ label: t(e.PUBLISH),
313
+ value: e.PUBLISH,
314
+ hide: !a(e.PUBLISH)
315
+ },
316
+ {
317
+ label: t(e.IMPORT),
318
+ value: e.IMPORT,
319
+ hide: !a(e.IMPORT) || !n.enableBulkImport
320
+ },
321
+ {
322
+ label: t(e.INTEGRATION),
323
+ value: e.INTEGRATION,
324
+ hide: !a(e.INTEGRATION)
325
+ },
326
+ {
327
+ label: t(e.SETTINGS),
328
+ value: e.SETTINGS,
329
+ hide: !a(e.SETTINGS)
330
+ }
331
+ ], r = I(T(R(o)));
332
+ return ((d = s.currentBusiness.value) == null ? void 0 : d.menuVersion) === "v3" ? r.filter(
333
+ (i) => i.value !== e.INGREDIENTS && i.value !== e.RECIPE && i.value !== e.UNIT && i.value !== e.PUBLISH
334
+ ) : r;
335
+ }), N = E(() => {
336
+ function o(d) {
337
+ for (const i of d)
338
+ if (i.children && i.children.length > 0) {
339
+ const l = o(i.children);
340
+ if (l) return l;
341
+ } else if (i.value)
342
+ return i.value;
343
+ }
344
+ return o(m.value) ?? null;
345
+ });
346
+ return { menuItems: m, firstAccessibleRouteName: N };
347
+ }
348
+ export {
349
+ W as e,
350
+ p as n,
351
+ w as u
352
+ };
@@ -1,4 +1,4 @@
1
- import { d as se } from "./app-Cb5s4jMu.js";
1
+ import { d as se } from "./app-DqJp3dcI.js";
2
2
  import { useCoreStore as ne } from "@feedmepos/mf-common";
3
3
  const re = se((e, t) => ({
4
4
  getSubscribeUrl(s, r, a) {