@feedmepos/mf-inventory-portal 1.8.0-dev.2 → 1.8.0-dev.4

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 (132) hide show
  1. package/dist/{App-DVHgBTHP.js → App-FeJnwZme.js} +364 -377
  2. package/dist/{ApprovalView-RaXuWWSu.js → ApprovalView-Eo-cGWyA.js} +9 -9
  3. package/dist/{BindingsDialog-DomvXijP.js → BindingsDialog-DkjuXydb.js} +2 -2
  4. package/dist/{BindingsPicker-DGnzxEs7.js → BindingsPicker-DUOQcOlj.js} +2 -2
  5. package/dist/{BindingsTable-DfG9kWrv.js → BindingsTable-CoDdU5xh.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-DxHWrfbi.js → BulkReceiveRequestView-BGh8fbEX.js} +19 -19
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CVekIoiN.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CStISRqy.js} +1 -1
  8. package/dist/{ClosingDraftView-C3n66bbh.js → ClosingDraftView-Cwnhrv5P.js} +20 -20
  9. package/dist/{ClosingHistoryView-kdpYGy1Y.js → ClosingHistoryView-oHf77Lal.js} +5 -5
  10. package/dist/{ClosingTemplateView-DwGloYxn.js → ClosingTemplateView-1P8J1vAn.js} +18 -18
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-9eY_r8LF.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuEPaqQK.js} +1 -1
  12. package/dist/{DefaultView-JC_e4xgC.js → DefaultView-3Z8aVFSU.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-BBCvI67S.js → DeliveryOrderPrintPreview-uT_e3Suw.js} +2 -2
  14. package/dist/{DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-5Cc08Svt.js → DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-D_vmtZDZ.js} +1 -1
  15. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-H4FWc9ga.js → EmailDialog.vue_vue_type_script_setup_true_lang-BCgnXxEi.js} +26 -25
  16. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-D-RzUmqA.js +81 -0
  17. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Q8Mptiv3.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BlKpGdCx.js} +1 -1
  18. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CE1_yyHe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DKkxn1J-.js} +2 -2
  19. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGJi3f86.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOXDST-E.js} +2 -2
  20. package/dist/{FmMultiselectDialog-yVPY5aBV.js → FmMultiselectDialog-C8uYx8rr.js} +1 -1
  21. package/dist/{FmMultiselectDialog-DCaRlBIy.js → FmMultiselectDialog-DRxZAkcu.js} +2 -2
  22. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-ClaLVtpK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DRSzQqVJ.js} +6 -6
  23. package/dist/{ImportView-DQrVMzxN.js → ImportView-Qigtf3ik.js} +6 -6
  24. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-7lT5UZc8.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B8PJeYrP.js} +1 -1
  25. package/dist/{IngredientGroupView-BMUnEaY7.js → IngredientGroupView-RNYZLkQu.js} +7 -7
  26. package/dist/{IngredientsView-DPj9lBTK.js → IngredientsView-N9U7tdI_.js} +29 -23
  27. package/dist/{IntegrationExplorerView-CO2wpUR_.js → IntegrationExplorerView-CjmeGQ14.js} +4 -4
  28. package/dist/{IntegrationView-DIeZoey0.js → IntegrationView-DAdpmuxx.js} +15 -15
  29. package/dist/{InventoryBindingForm-Cj4_Chue.js → InventoryBindingForm-CAj3MurI.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CaBOK7NC.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-3pYuu62C.js} +5 -5
  31. package/dist/{InventoryBindingSummary-yzGzd7jJ.js → InventoryBindingSummary-B-1OBUdw.js} +1 -1
  32. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DzzTPdyF.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CUYYEuW3.js} +1 -1
  33. package/dist/{ProductionRunDetailView-Cw-ecaey.js → ProductionRunDetailView-eFvl8-By.js} +4 -4
  34. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BYyiiAWb.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DaC7e4qS.js} +7 -7
  35. package/dist/{ProductionRunView-C11eseXQ.js → ProductionRunView-C_NJJKLr.js} +3 -3
  36. package/dist/{PublishView-CPK9NeVF.js → PublishView-BglAEkzU.js} +3 -3
  37. package/dist/{PurchaseOrderPrintPreview-DosqWQeN.js → PurchaseOrderPrintPreview-BTF9ikpQ.js} +2 -2
  38. package/dist/{ReceiveRequestView-BxSkpK2t.js → ReceiveRequestView-BUvehG10.js} +13 -13
  39. package/dist/{RecipeView-oHDWsT0P.js → RecipeView-DO5-jgwh.js} +17 -17
  40. package/dist/{SettingsView-QlUNwFhM.js → SettingsView-DRR86cHo.js} +12 -13
  41. package/dist/{StockView-a8LbVZ_7.js → StockView-D1oEnbZp.js} +25 -23
  42. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-GdGJCuc0.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxU92-io.js} +1 -1
  43. package/dist/{SupplierView-BKxKoi_0.js → SupplierView-D68wz0-g.js} +14 -14
  44. package/dist/{SurchargeView-Db4cwhZv.js → SurchargeView-Cw9rTw2h.js} +7 -7
  45. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpkF77Ow.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Az-a1Dsp.js} +2 -2
  46. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CCCj4WVF.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C-sxbacO.js} +1 -1
  47. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CFNPXqt5.js → TransferDetails.vue_vue_type_script_setup_true_lang-CsHfLaCv.js} +234 -234
  48. package/dist/{TransferTemplateView-CzwxOBMQ.js → TransferTemplateView-CHPJMjYC.js} +20 -20
  49. package/dist/{UnitCostHistoryView-CqcyjCCd.js → UnitCostHistoryView-DM8OzWhe.js} +4 -4
  50. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DO80_8SZ.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpwK5mFH.js} +4 -4
  51. package/dist/{UnitView-BqdK1AM_.js → UnitView-90uR-ZzQ.js} +8 -8
  52. package/dist/{WarehouseView-COJM9IXM.js → WarehouseView-Bulg6Vac.js} +8 -8
  53. package/dist/{WastageTemplateView-DW3viTHN.js → WastageTemplateView-BmAHnnwm.js} +15 -15
  54. package/dist/api/inventory.d.ts +9 -9
  55. package/dist/{app-yvK__CBL.js → app-Ccdgbe4f.js} +19 -18
  56. package/dist/app.js +1 -1
  57. package/dist/{closing-template-DezidSM0.js → closing-template-DuBZxoXx.js} +1 -1
  58. package/dist/components/FeatureCapabilityBadge.vue.d.ts +4 -0
  59. package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
  60. package/dist/{date2-2XjepIqc.js → date2-IBrLdtni.js} +1 -1
  61. package/dist/{dayjs.min-CNp5DLBB.js → dayjs.min-DEkq-Hpp.js} +1 -1
  62. package/dist/{decimal-Z7oJdGk8.js → decimal-g6jRdlSk.js} +2 -2
  63. package/dist/{defineDeepModel-CMxJn_H2.js → defineDeepModel-P5a5Ffpn.js} +1 -1
  64. package/dist/{duplicate-template-BetV5oy_.js → duplicate-template-Do8s80ei.js} +1 -1
  65. package/dist/{feature-CkWaZ-5K.js → feature-ChVm5JED.js} +875 -645
  66. package/dist/feature-flags/core.d.ts +3 -2
  67. package/dist/feature-flags/portal-feature-catalog.d.ts +2 -5
  68. package/dist/feature-flags/premium-flags.spec.d.ts +1 -0
  69. package/dist/feature-flags/vue.d.ts +2 -0
  70. package/dist/{format-time-from-id-DatSI9uD.js → format-time-from-id-BgbBOII7.js} +1 -1
  71. package/dist/{format-unit-display-DM5We5cx.js → format-unit-display-hSXy2iu6.js} +13 -13
  72. package/dist/{id-to-date-Dxw2jKhy.js → id-to-date-DlGYysU8.js} +1 -1
  73. package/dist/{import-export.helper-BOmADwUw.js → import-export.helper-LrZhiz2W.js} +6 -6
  74. package/dist/{index-7fz5sGDO.js → index-BTNJ1fk2.js} +3 -3
  75. package/dist/{index-ClYgfwW7.js → index-DCiNwlw2.js} +1 -1
  76. package/dist/{index-CIH9NCvs.js → index-DsOmtywr.js} +1 -1
  77. package/dist/{lz-string-CCsc2X7t.js → lz-string-DRuyjE9G.js} +1 -1
  78. package/dist/{netsuite-COumFXC2.js → netsuite-B6y8GZCP.js} +2 -2
  79. package/dist/{number-gSLvxNqA.js → number-Besn-1-5.js} +3 -3
  80. package/dist/{predefined-templates-Bw9A9LNA.js → predefined-templates-D92mN_2S.js} +1 -1
  81. package/dist/{purchase-order-template-BaZjdGq8.js → purchase-order-template-hvq2pfWx.js} +1 -1
  82. package/dist/{recalculationUtils-t32wAurN.js → recalculationUtils-BlZR5O2G.js} +1 -1
  83. package/dist/{row-action.enum-BDeudY4d.js → row-action.enum-R2bi3eAv.js} +1 -1
  84. package/dist/{rules-C1btu0Md.js → rules-DzwoRKUS.js} +2 -2
  85. package/dist/{stock-BF86TMW0.js → stock-Cq37EARQ.js} +3 -3
  86. package/dist/{stock-B59sfN28.js → stock-oJqnUrtt.js} +1 -1
  87. package/dist/stores/feature.d.ts +1 -0
  88. package/dist/stores/integration/netsuite.d.ts +2 -2
  89. package/dist/stores/location.d.ts +42 -42
  90. package/dist/stores/supplier.d.ts +48 -48
  91. package/dist/stores/warehouse.d.ts +1 -1
  92. package/dist/{supplier-DnbLJ_cS.js → supplier-DtdwvcPr.js} +2 -2
  93. package/dist/{surcharge-C1uE3uQa.js → surcharge-CjdJGIsM.js} +1 -1
  94. package/dist/tsconfig.app.tsbuildinfo +1 -1
  95. package/dist/{uom-rules-DjfyrFHJ.js → uom-rules-BqPn_GoZ.js} +1 -1
  96. package/dist/{use-ingredient-select-dialog-7A7fWyEH.js → use-ingredient-select-dialog-0hRCj6Fu.js} +2 -2
  97. package/dist/{use-inventory-binding-dialog-Cc1tjTfV.js → use-inventory-binding-dialog-BLRcIC1u.js} +2 -2
  98. package/dist/{use-template-enabled-locations-C-Hqqgzt.js → use-template-enabled-locations-8ZfTj4YB.js} +2 -2
  99. package/dist/{use-transfer-locations-CqsXvOI2.js → use-transfer-locations-BGS1EBEt.js} +2 -2
  100. package/dist/{useHrmPermission-BzwD3Ctc.js → useHrmPermission-BcQ2KPD-.js} +1 -1
  101. package/dist/{useNavigationMenu-PrZg9HS7.js → useNavigationMenu-DImtns81.js} +95 -93
  102. package/dist/{useSseClient-FCyLWq8k.js → useSseClient-DPSFFVci.js} +1 -1
  103. package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
  104. package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
  105. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
  106. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
  107. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
  108. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
  109. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +18 -18
  110. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
  111. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
  112. package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
  113. package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
  114. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
  115. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +5 -5
  116. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +39 -39
  117. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +35 -35
  118. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +34 -34
  119. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +6 -6
  120. package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
  121. package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
  122. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
  123. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
  124. package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
  125. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
  126. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
  127. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -2
  128. package/dist/{vue-i18n-C34f-Tph.js → vue-i18n-DTyGIjTI.js} +219 -219
  129. package/dist/{xlsx.util-X4amwe_k.js → xlsx.util-CK9Lnq3Q.js} +2 -2
  130. package/package.json +5 -5
  131. package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-C1C8aDA6.js +0 -61
  132. package/dist/portal-feature-catalog-yGIESKTc.js +0 -246
@@ -1,5 +1,5 @@
1
1
  import { computed as o } from "vue";
2
- import { u } from "./netsuite-COumFXC2.js";
2
+ import { u } from "./netsuite-B6y8GZCP.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-yvK__CBL.js";
3
- import { a as A } from "./FmMultiselectDialog-DCaRlBIy.js";
2
+ import { a as b } from "./app-Ccdgbe4f.js";
3
+ import { a as A } from "./FmMultiselectDialog-DRxZAkcu.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-DCaRlBIy.js";
2
- import { a as P } from "./app-yvK__CBL.js";
1
+ import { a as g } from "./FmMultiselectDialog-DRxZAkcu.js";
2
+ import { a as P } from "./app-Ccdgbe4f.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-DCaRlBIy.js";
2
- import { u as S } from "./app-yvK__CBL.js";
1
+ import { a as A } from "./FmMultiselectDialog-DRxZAkcu.js";
2
+ import { u as S } from "./app-Ccdgbe4f.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-yvK__CBL.js";
2
- import { u as E } from "./supplier-DnbLJ_cS.js";
1
+ import { u as g, r as l, $ as w, a2 as R } from "./app-Ccdgbe4f.js";
2
+ import { u as E } from "./supplier-DtdwvcPr.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-yvK__CBL.js";
2
+ import { ab as n } from "./app-Ccdgbe4f.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  function g(t, i = "all") {
5
5
  const m = c();
@@ -1,10 +1,9 @@
1
1
  import { computed as E, h as P } from "vue";
2
- import { R as e, ac as C, ad as O, ab as f } from "./app-yvK__CBL.js";
2
+ import { R as e, ac as C, ad as f, ab as O } from "./app-Ccdgbe4f.js";
3
3
  import { useCoreStore as b, useI18n as _ } from "@feedmepos/mf-common";
4
- import { u as U } from "./feature-CkWaZ-5K.js";
5
- import { e as A, d as L, g as p } from "./portal-feature-catalog-yGIESKTc.js";
6
- import { a as G } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-C1C8aDA6.js";
7
- const S = [
4
+ import { f as U, g as S, h as A, u as L } from "./feature-ChVm5JED.js";
5
+ import { a as G } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-D-RzUmqA.js";
6
+ const p = [
8
7
  {
9
8
  route: e.STOCK,
10
9
  module: "Stock",
@@ -148,83 +147,86 @@ const S = [
148
147
  description: "Inspect and manage integration records and synchronization."
149
148
  }
150
149
  ], y = Object.fromEntries(
151
- S.map((s) => {
152
- var n, u;
150
+ p.map((s) => {
151
+ var u;
152
+ const r = S(s.featureKey ?? "");
153
153
  return [
154
154
  s.route,
155
- L({
155
+ A({
156
156
  key: s.route,
157
157
  minimumTier: s.tier,
158
- release: s.release ?? ((u = (n = p(s.featureKey ?? "")) == null ? void 0 : n.definition) == null ? void 0 : u.release)
158
+ release: s.release ?? ((u = r == null ? void 0 : r.definition) == null ? void 0 : u.release),
159
+ flagKeys: r == null ? void 0 : r.flagKeys
159
160
  })
160
161
  ];
161
162
  })
162
163
  );
163
- function H(s) {
164
- return S.find((n) => n.route === s) ?? null;
164
+ function K(s) {
165
+ return p.find((r) => r.route === s) ?? null;
165
166
  }
166
- function M(s) {
167
+ function H(s) {
167
168
  return s ? y[s] ?? null : null;
168
169
  }
169
- function w(s, n) {
170
- const u = M(s);
171
- return u ? A(u, n) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
170
+ function W(s, r) {
171
+ const u = H(s);
172
+ return u ? U(u, r) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
172
173
  }
173
- const K = O.reduce(
174
- (s, n) => {
174
+ const M = f.reduce(
175
+ (s, r) => {
175
176
  var u;
176
- return n.name && (s[n.name] = (u = n.meta) == null ? void 0 : u.validationManifest), s;
177
+ return r.name && (s[r.name] = (u = r.meta) == null ? void 0 : u.validationManifest), s;
177
178
  },
178
179
  {}
179
180
  );
180
- function Q() {
181
- const s = b(), n = U(), { t: u } = _(), t = (i) => C(i, u), g = E(
181
+ function w() {
182
+ const s = b(), r = L(), { t: u } = _(), a = (o) => C(o, u), g = E(
182
183
  () => {
183
- var i;
184
- return ((i = s.sessionUser.value) == null ? void 0 : i.permissions) ?? [];
184
+ var o;
185
+ return ((o = s.sessionUser.value) == null ? void 0 : o.permissions) ?? [];
185
186
  }
186
- ), h = (i = []) => i.length === 0 ? !0 : f(i, g.value).granted, a = (i) => {
187
- const r = K[i];
188
- return h(r == null ? void 0 : r.requiredCaslPermissions);
189
- }, R = (i) => i.filter((r) => !r.hide).map((r) => r.children ? { ...r, children: R(r.children) } : r).filter((r) => !r.children || r.children.length > 0), T = (i) => i.map((r) => {
190
- const { hide: d, children: o, ...l } = r, c = { ...l };
191
- return o && (c.children = T(o)), c;
192
- }), I = (i) => i.map((r) => {
193
- const d = r.value, o = H(d), l = p((o == null ? void 0 : o.featureKey) ?? ""), c = l == null ? void 0 : l.category, v = o && (o.tier === "premium" || c === "beta" || l != null && l.deprecateSoon) ? () => P(G, {
194
- tier: o.tier,
187
+ ), h = (o = []) => o.length === 0 ? !0 : O(o, g.value).granted, n = (o) => {
188
+ const t = M[o];
189
+ return h(t == null ? void 0 : t.requiredCaslPermissions);
190
+ }, R = (o) => o.filter((t) => !t.hide).map((t) => t.children ? { ...t, children: R(t.children) } : t).filter((t) => !t.children || t.children.length > 0), T = (o) => o.map((t) => {
191
+ const { hide: d, children: i, ...l } = t, c = { ...l };
192
+ return i && (c.children = T(i)), c;
193
+ }), I = (o) => o.map((t) => {
194
+ const d = t.value, i = K(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, {
195
+ tier: i.tier,
195
196
  category: c,
196
- deprecateSoon: l == null ? void 0 : l.deprecateSoon
197
+ deprecateSoon: l == null ? void 0 : l.deprecateSoon,
198
+ featureKey: i.featureKey
197
199
  }) : void 0;
198
200
  return {
199
- ...r,
201
+ ...t,
200
202
  badge: v,
201
- children: r.children ? I(r.children) : void 0
203
+ children: t.children ? I(t.children) : void 0
202
204
  };
203
205
  }), m = E(() => {
204
206
  var d;
205
- const i = [
207
+ const o = [
206
208
  {
207
- label: t(e.STOCK),
209
+ label: a(e.STOCK),
208
210
  children: [
209
211
  {
210
212
  label: u("inventory.stock.stock_balance.title"),
211
213
  value: e.STOCK,
212
- hide: !a(e.STOCK)
214
+ hide: !n(e.STOCK)
213
215
  },
214
216
  {
215
- label: t(e.PRODUCTION_RUN),
217
+ label: a(e.PRODUCTION_RUN),
216
218
  value: e.PRODUCTION_RUN,
217
- hide: !a(e.PRODUCTION_RUN) || !n.enableProductionRun
219
+ hide: !n(e.PRODUCTION_RUN) || !r.enableProductionRun
218
220
  },
219
221
  {
220
- label: t(e.UNIT_COST_HISTORY),
222
+ label: a(e.UNIT_COST_HISTORY),
221
223
  value: e.UNIT_COST_HISTORY,
222
- hide: !a(e.UNIT_COST_HISTORY) || !n.enableTotalCost
224
+ hide: !n(e.UNIT_COST_HISTORY) || !r.enableTotalCost
223
225
  },
224
226
  {
225
- label: t(e.WASTAGE_TEMPLATE),
227
+ label: a(e.WASTAGE_TEMPLATE),
226
228
  value: e.WASTAGE_TEMPLATE,
227
- hide: !a(e.WASTAGE_TEMPLATE) || !n.enableWastageTemplate
229
+ hide: !n(e.WASTAGE_TEMPLATE) || !r.enableWastageTemplate
228
230
  }
229
231
  ]
230
232
  },
@@ -232,121 +234,121 @@ function Q() {
232
234
  label: u("inventory.closing.title"),
233
235
  children: [
234
236
  {
235
- label: t(e.CLOSING_HISTORY),
237
+ label: a(e.CLOSING_HISTORY),
236
238
  value: e.CLOSING_HISTORY,
237
- hide: !a(e.CLOSING_HISTORY)
239
+ hide: !n(e.CLOSING_HISTORY)
238
240
  },
239
241
  {
240
- label: t(e.CLOSING_TEMPLATE),
242
+ label: a(e.CLOSING_TEMPLATE),
241
243
  value: e.CLOSING_TEMPLATE,
242
- hide: !a(e.CLOSING_TEMPLATE) || !n.enableClosingTemplate
244
+ hide: !n(e.CLOSING_TEMPLATE) || !r.enableClosingTemplate
243
245
  },
244
246
  {
245
- label: t(e.CLOSING_DRAFT),
247
+ label: a(e.CLOSING_DRAFT),
246
248
  value: e.CLOSING_DRAFT,
247
- hide: !a(e.CLOSING_DRAFT) || !n.enableClosingTemplate
249
+ hide: !n(e.CLOSING_DRAFT) || !r.enableClosingTemplate
248
250
  }
249
251
  ]
250
252
  },
251
253
  {
252
- label: t(e.INGREDIENTS),
254
+ label: a(e.INGREDIENTS),
253
255
  value: e.INGREDIENTS,
254
- hide: !a(e.INGREDIENTS)
256
+ hide: !n(e.INGREDIENTS)
255
257
  },
256
258
  {
257
- label: t(e.INGREDIENT_GROUP),
259
+ label: a(e.INGREDIENT_GROUP),
258
260
  value: e.INGREDIENT_GROUP,
259
- hide: !a(e.INGREDIENT_GROUP) || !n.enableIngredientGroup
261
+ hide: !n(e.INGREDIENT_GROUP) || !r.enableIngredientGroup
260
262
  },
261
263
  {
262
- label: t(e.RECIPE),
264
+ label: a(e.RECIPE),
263
265
  value: e.RECIPE,
264
- hide: !a(e.RECIPE)
266
+ hide: !n(e.RECIPE)
265
267
  },
266
268
  {
267
- label: t(e.UNIT),
269
+ label: a(e.UNIT),
268
270
  value: e.UNIT,
269
- hide: !a(e.UNIT)
271
+ hide: !n(e.UNIT)
270
272
  },
271
273
  {
272
274
  label: u("inventory.transfer.title"),
273
275
  children: [
274
276
  {
275
- label: t(e.RECEIVE_REQUEST),
277
+ label: a(e.RECEIVE_REQUEST),
276
278
  value: e.RECEIVE_REQUEST,
277
- hide: !a(e.RECEIVE_REQUEST)
279
+ hide: !n(e.RECEIVE_REQUEST)
278
280
  },
279
281
  {
280
- label: t(e.RECEIVE_REQUEST_BULK),
282
+ label: a(e.RECEIVE_REQUEST_BULK),
281
283
  value: e.RECEIVE_REQUEST_BULK,
282
- hide: !a(e.RECEIVE_REQUEST_BULK) || !n.enableReceiveRequestBeta
284
+ hide: !n(e.RECEIVE_REQUEST_BULK) || !r.enableReceiveRequestBeta
283
285
  },
284
286
  {
285
- label: t(e.APPROVAL),
287
+ label: a(e.APPROVAL),
286
288
  value: e.APPROVAL,
287
- hide: !a(e.APPROVAL)
289
+ hide: !n(e.APPROVAL)
288
290
  },
289
291
  {
290
- label: t(e.SURCHARGE),
292
+ label: a(e.SURCHARGE),
291
293
  value: e.SURCHARGE,
292
- hide: !a(e.SURCHARGE) || !n.enableSurcharge
294
+ hide: !n(e.SURCHARGE) || !r.enableSurcharge
293
295
  },
294
296
  {
295
- label: t(e.TRANSFER_TEMPLATE),
297
+ label: a(e.TRANSFER_TEMPLATE),
296
298
  value: e.TRANSFER_TEMPLATE,
297
- hide: !a(e.TRANSFER_TEMPLATE) || !n.enablePoTemplate
299
+ hide: !n(e.TRANSFER_TEMPLATE) || !r.enablePoTemplate
298
300
  }
299
301
  ]
300
302
  },
301
303
  {
302
- label: t(e.SUPPLIER),
304
+ label: a(e.SUPPLIER),
303
305
  value: e.SUPPLIER,
304
- hide: !a(e.SUPPLIER)
306
+ hide: !n(e.SUPPLIER)
305
307
  },
306
308
  {
307
- label: t(e.WAREHOUSE),
309
+ label: a(e.WAREHOUSE),
308
310
  value: e.WAREHOUSE,
309
- hide: !a(e.WAREHOUSE)
311
+ hide: !n(e.WAREHOUSE)
310
312
  },
311
313
  {
312
- label: t(e.PUBLISH),
314
+ label: a(e.PUBLISH),
313
315
  value: e.PUBLISH,
314
- hide: !a(e.PUBLISH)
316
+ hide: !n(e.PUBLISH)
315
317
  },
316
318
  {
317
- label: t(e.IMPORT),
319
+ label: a(e.IMPORT),
318
320
  value: e.IMPORT,
319
- hide: !a(e.IMPORT) || !n.enableBulkImport
321
+ hide: !n(e.IMPORT) || !r.enableBulkImport
320
322
  },
321
323
  {
322
- label: t(e.INTEGRATION),
324
+ label: a(e.INTEGRATION),
323
325
  value: e.INTEGRATION,
324
- hide: !a(e.INTEGRATION)
326
+ hide: !n(e.INTEGRATION)
325
327
  },
326
328
  {
327
- label: t(e.SETTINGS),
329
+ label: a(e.SETTINGS),
328
330
  value: e.SETTINGS,
329
- hide: !a(e.SETTINGS)
331
+ hide: !n(e.SETTINGS)
330
332
  }
331
- ], r = I(T(R(i)));
332
- return ((d = s.currentBusiness.value) == null ? void 0 : d.menuVersion) === "v3" ? r.filter(
333
- (o) => o.value !== e.INGREDIENTS && o.value !== e.RECIPE && o.value !== e.UNIT && o.value !== e.PUBLISH
334
- ) : r;
333
+ ], t = I(T(R(o)));
334
+ return ((d = s.currentBusiness.value) == null ? void 0 : d.menuVersion) === "v3" ? t.filter(
335
+ (i) => i.value !== e.INGREDIENTS && i.value !== e.RECIPE && i.value !== e.UNIT && i.value !== e.PUBLISH
336
+ ) : t;
335
337
  }), N = E(() => {
336
- function i(d) {
337
- for (const o of d)
338
- if (o.children && o.children.length > 0) {
339
- const l = i(o.children);
338
+ function o(d) {
339
+ for (const i of d)
340
+ if (i.children && i.children.length > 0) {
341
+ const l = o(i.children);
340
342
  if (l) return l;
341
- } else if (o.value)
342
- return o.value;
343
+ } else if (i.value)
344
+ return i.value;
343
345
  }
344
- return i(m.value) ?? null;
346
+ return o(m.value) ?? null;
345
347
  });
346
348
  return { menuItems: m, firstAccessibleRouteName: N };
347
349
  }
348
350
  export {
349
- w as e,
350
- S as n,
351
- Q as u
351
+ W as e,
352
+ p as n,
353
+ w as u
352
354
  };
@@ -1,4 +1,4 @@
1
- import { d as se } from "./app-yvK__CBL.js";
1
+ import { d as se } from "./app-Ccdgbe4f.js";
2
2
  import { useCoreStore as ne } from "@feedmepos/mf-common";
3
3
  const re = se((e, t) => ({
4
4
  getSubscribeUrl(s, r, a) {