@feedmepos/mf-inventory-portal 1.9.0-dev.2 → 1.9.0-dev.5

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 (107) hide show
  1. package/dist/{App-0333Hh25.js → App-DDALXIcF.js} +10 -10
  2. package/dist/{ApprovalView-CZLYqnnT.js → ApprovalView-BJVCW2q7.js} +9 -9
  3. package/dist/{BindingsDialog-CA02lqel.js → BindingsDialog-DDMJjWjv.js} +2 -2
  4. package/dist/{BindingsPicker-CwDLZ-ki.js → BindingsPicker-twbdYEAL.js} +2 -2
  5. package/dist/{BindingsTable-BX87v_kq.js → BindingsTable-Cpx3vSvk.js} +4 -4
  6. package/dist/{BulkReceiveRequestPage-Vh0Rfa8e.js → BulkReceiveRequestPage-DD33ulSC.js} +21 -21
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-0fI4-Pao.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CtHsMnkV.js} +1 -1
  8. package/dist/{ClosingDraftView-CxNgkVY_.js → ClosingDraftView-BUc5bGIU.js} +19 -19
  9. package/dist/{ClosingHistoryView-CUCepuA7.js → ClosingHistoryView-DPz6D5S2.js} +7 -7
  10. package/dist/ClosingTemplateView-DabFVZCc.js +2392 -0
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-B6Ge_6VY.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-izGh8Myj.js} +1 -1
  12. package/dist/{DefaultView-V-9a_YfK.js → DefaultView-DURO6g6_.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-BiwT9953.js → DeliveryOrderPrintPreview-BJBheF-Y.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-I_6Wu-P-.js → EmailDialog.vue_vue_type_script_setup_true_lang-BDZaoowM.js} +8430 -8430
  15. package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BV5mX5w5.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-lABO5UTH.js} +1 -1
  16. package/dist/{FeatureCapabilityGate-B4VGdv_F.js → FeatureCapabilityGate-4YBofjM5.js} +2 -2
  17. package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-CvFbN-7h.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-VwGbsXYy.js} +1 -1
  18. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Qd3R-TWu.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CrYonFQ4.js} +1 -1
  19. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C8QTtw9i.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D0cZr3AO.js} +2 -2
  20. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cz5saN2u.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvIVLMp-.js} +2 -2
  21. package/dist/{FmMultiselectDialog-CFx8Qcyc.js → FmMultiselectDialog-Cwd47xa5.js} +2 -2
  22. package/dist/{FmMultiselectDialog-BK0r-tyZ.js → FmMultiselectDialog-lXXaY5lK.js} +2 -2
  23. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Cuyu_K9x.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CqqOESle.js} +5 -5
  24. package/dist/{ImportView-Ci9vufCx.js → ImportView-hEJUxq3v.js} +7 -7
  25. package/dist/{IngredientsView-4s7vcW9U.js → IngredientsView-DEhTu1Jk.js} +15 -15
  26. package/dist/{IntegrationExplorerView-CtGuW0uI.js → IntegrationExplorerView-KpAJ2V3E.js} +6 -6
  27. package/dist/{IntegrationPlatformView-SpCAu3Fu.js → IntegrationPlatformView-qrPYWqT5.js} +4472 -4425
  28. package/dist/{IntegrationView-DjQ4wbXh.js → IntegrationView-BcZjB2Df.js} +15 -15
  29. package/dist/{InventoryBindingForm-Bb5k9tav.js → InventoryBindingForm-BVW5nyBI.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CISHYfRi.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-ClC9JScP.js} +4 -4
  31. package/dist/{InventoryBindingSummary-CkN9QdNL.js → InventoryBindingSummary-karaxDWz.js} +1 -1
  32. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C9hasqsO.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DC-dWx9K.js} +2 -2
  33. package/dist/{ProductionRunDetailPage-BTNY3v9C.js → ProductionRunDetailPage-CRoWs8GL.js} +4 -4
  34. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CTOibYjJ.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-lzagKc6P.js} +8 -8
  35. package/dist/{ProductionRunPage-GrWt4iw2.js → ProductionRunPage-DeEzvebS.js} +4 -4
  36. package/dist/{PublishView-1sBMVk4p.js → PublishView-BG0YVyQ_.js} +5 -5
  37. package/dist/{PurchaseOrderPrintPreview-DYwbSUVy.js → PurchaseOrderPrintPreview-DZs6nzcB.js} +2 -2
  38. package/dist/{ReceiveRequestView-DuU5hqQU.js → ReceiveRequestView-B5jmw3_m.js} +16 -16
  39. package/dist/{RecipeView-CGkE2cX2.js → RecipeView-D-u82Imb.js} +16 -16
  40. package/dist/{SettingsView-j5UKU2Z5.js → SettingsView-CavH72Zf.js} +7 -7
  41. package/dist/{StockView-CMYUShkK.js → StockView-Mbbag4gi.js} +21 -21
  42. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CcomAJoj.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-I8S3lE8n.js} +1 -1
  43. package/dist/{SupplierView-whYEtaTf.js → SupplierView-BKjQQMUB.js} +13 -13
  44. package/dist/{SurchargeView-BqT_PfTk.js → SurchargeView-tG9jxSHT.js} +7 -7
  45. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpiuOVuT.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-f3MH8VXz.js} +2 -2
  46. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C5GOz40T.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CVPc0HNQ.js} +1 -1
  47. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BzJkA7ub.js +5002 -0
  48. package/dist/{TransferTemplateView-ZJYWzTCZ.js → TransferTemplateView-DUvgcoFR.js} +19 -19
  49. package/dist/{UnitCostHistoryView-DWcB9nbL.js → UnitCostHistoryView-DXFlnpzI.js} +4 -4
  50. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-60B3tkI-.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-T4rShFa9.js} +4 -4
  51. package/dist/{UnitView-BWX8BecE.js → UnitView-ChPy6-nH.js} +7 -7
  52. package/dist/{WarehouseView-CfWLJlP2.js → WarehouseView-B4rRtSI3.js} +8 -8
  53. package/dist/{WastageTemplateView-Gb64MBgD.js → WastageTemplateView-BWvFXjS6.js} +15 -15
  54. package/dist/api/purchase-order-template.d.ts +1 -1
  55. package/dist/{app-Coquqqkh.js → app-DMflhu6b.js} +7535 -6901
  56. package/dist/app.js +1 -1
  57. package/dist/{bulk-edit-simulation.helper-DUAiYzrr.js → bulk-edit-simulation.helper-DezcOq8o.js} +2 -2
  58. package/dist/{closing-template-BK-yS2H4.js → closing-template-BGERrbIQ.js} +1 -1
  59. package/dist/{date2-79rkBzVf.js → date2-DIxf2HSS.js} +1 -1
  60. package/dist/{dayjs.min-CciBGvaL.js → dayjs.min-W80OrMgJ.js} +1 -1
  61. package/dist/{decimal--BREmfoS.js → decimal-BTK7NAET.js} +2 -2
  62. package/dist/{defineDeepModel-BRSFHwsW.js → defineDeepModel-DJ9LqqzR.js} +1 -1
  63. package/dist/{duplicate-template-CcEqsP8Q.js → duplicate-template-BC7pMF-s.js} +1 -1
  64. package/dist/feature-flags/plan-tier.d.ts +0 -2
  65. package/dist/{feature-DdZZAV6X.js → feature-h3MFKUcz.js} +3 -3
  66. package/dist/{format-time-from-id-C7YvcXDM.js → format-time-from-id-DSAFHO8d.js} +1 -1
  67. package/dist/{format-unit-display-Dfiq_rw7.js → format-unit-display-wiLcRFDI.js} +99 -101
  68. package/dist/{id-to-date-6hzUYycs.js → id-to-date-Di8Eschw.js} +1 -1
  69. package/dist/{import-export.helper-D5QuDEDV.js → import-export.helper-avwvLBKD.js} +5 -5
  70. package/dist/{index-CPFsBIFO.js → index-C-uWBaU4.js} +3 -3
  71. package/dist/{index-CD9IHjp3.js → index-CXhgWYdX.js} +1 -1
  72. package/dist/{index-Crdk73ES.js → index-CcmysfjG.js} +1 -1
  73. package/dist/{lz-string-CCRQaGZF.js → lz-string-MCnthIwP.js} +1 -1
  74. package/dist/{netsuite-C_VLrQoH.js → netsuite-CsMFS8uH.js} +2522 -2505
  75. package/dist/{netsuite-explorer-BCuM8JZ1.js → netsuite-explorer-CLsdKVZp.js} +1 -1
  76. package/dist/{predefined-templates-BV4NkB9O.js → predefined-templates-B4URhizE.js} +1 -1
  77. package/dist/{publish-versions-BinCKAtn.js → publish-versions-BGoX_gD4.js} +1 -1
  78. package/dist/purchase-order-template-Cn2JQYD0.js +41 -0
  79. package/dist/{recalculationUtils-ISOYv_rW.js → recalculationUtils-sCuVobBd.js} +1 -1
  80. package/dist/{row-action.enum-BQCb8S3i.js → row-action.enum-BM2HgD4R.js} +1 -1
  81. package/dist/{rules-CW08Pe1t.js → rules-BaYKzbRv.js} +3 -3
  82. package/dist/{stock-Cv_zWpOe.js → stock-B4uI5_D4.js} +2 -2
  83. package/dist/{stock-Bh5IJNfM.js → stock-BZMbxbyg.js} +1 -1
  84. package/dist/stores/inventory.in-flight.spec.d.ts +1 -0
  85. package/dist/{supplier-D3h2DfJz.js → supplier-B0dtsWm4.js} +2 -2
  86. package/dist/{surcharge-9e8wa-vK.js → surcharge-Djbv5SzM.js} +1 -1
  87. package/dist/tsconfig.app.tsbuildinfo +1 -1
  88. package/dist/{uom-rules-BRmDOW0t.js → uom-rules-jR6owpw7.js} +1 -1
  89. package/dist/{use-ingredient-select-dialog-D8ibotty.js → use-ingredient-select-dialog-VfIKtgzP.js} +2 -2
  90. package/dist/{use-inventory-binding-dialog-D2xL-vbo.js → use-inventory-binding-dialog-BdgHGwC_.js} +2 -2
  91. package/dist/{use-template-enabled-locations-Bb7vUiAf.js → use-template-enabled-locations-B1xMD71z.js} +2 -2
  92. package/dist/{use-transfer-locations-B2yday-I.js → use-transfer-locations-NrMDt6DD.js} +2 -2
  93. package/dist/{useHrmPermission-CPEJKpoy.js → useHrmPermission-DT0o2-yP.js} +1 -1
  94. package/dist/{useNavigationMenu-SHKOcKP-.js → useNavigationMenu-CMjxTTiM.js} +5 -5
  95. package/dist/{useSseClient-ED9mFSXt.js → useSseClient-D4n-A1ST.js} +1 -1
  96. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +5 -0
  97. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.spec.d.ts +1 -0
  98. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-total-cost.d.ts +24 -0
  99. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-total-cost.spec.d.ts +1 -0
  100. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +3 -3
  101. package/dist/{vue-Tmyz7_6a.js → vue-BOcyAWzp.js} +37 -30
  102. package/dist/{vue-i18n-BY0GeUdz.js → vue-i18n-69kj_U4j.js} +381 -381
  103. package/dist/{xlsx.util-DQnB9ape.js → xlsx.util-CJm8uh4D.js} +2 -2
  104. package/package.json +6 -8
  105. package/dist/ClosingTemplateView-BHe5gCFH.js +0 -2358
  106. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ajtRmauo.js +0 -4961
  107. package/dist/purchase-order-template-BZUOWGmV.js +0 -41
@@ -1,5 +1,5 @@
1
1
  import { computed as o } from "vue";
2
- import { u } from "./netsuite-C_VLrQoH.js";
2
+ import { u } from "./netsuite-CsMFS8uH.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-Coquqqkh.js";
3
- import { a as A } from "./FmMultiselectDialog-CFx8Qcyc.js";
2
+ import { a as b } from "./app-DMflhu6b.js";
3
+ import { a as A } from "./FmMultiselectDialog-Cwd47xa5.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 y } from "./FmMultiselectDialog-CFx8Qcyc.js";
2
- import { a as S } from "./app-Coquqqkh.js";
1
+ import { a as y } from "./FmMultiselectDialog-Cwd47xa5.js";
2
+ import { a as S } from "./app-DMflhu6b.js";
3
3
  import { useDialog as E } from "@feedmepos/ui-library";
4
4
  function w() {
5
5
  const c = S(), g = E();
@@ -1,5 +1,5 @@
1
- import { a as A } from "./FmMultiselectDialog-CFx8Qcyc.js";
2
- import { u as S } from "./app-Coquqqkh.js";
1
+ import { a as A } from "./FmMultiselectDialog-Cwd47xa5.js";
2
+ import { u as S } from "./app-DMflhu6b.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, a3 as w, a5 as R } from "./app-Coquqqkh.js";
2
- import { u as E } from "./supplier-D3h2DfJz.js";
1
+ import { u as g, r as l, a3 as w, a5 as R } from "./app-DMflhu6b.js";
2
+ import { u as E } from "./supplier-B0dtsWm4.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 { ae as n } from "./app-Coquqqkh.js";
2
+ import { ae as n } from "./app-DMflhu6b.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  function g(t, i = "all") {
5
5
  const m = c();
@@ -1,11 +1,11 @@
1
1
  import { computed as R, h as p } from "vue";
2
2
  import { components as U } from "@feedmepos/ui-library";
3
- import { R as e, a as L, af as y, ag as G, ae as M } from "./app-Coquqqkh.js";
3
+ import { R as e, a as L, af as y, ag as G, ae as M } from "./app-DMflhu6b.js";
4
4
  import { useCoreStore as H, useI18n as K } from "@feedmepos/mf-common";
5
- import { u as F } from "./publish-versions-BinCKAtn.js";
6
- import { u as k, I as E, e as f } from "./feature-DdZZAV6X.js";
7
- import { e as V, g as _, d as B, f as D } from "./vue-Tmyz7_6a.js";
8
- import { _ as w } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BV5mX5w5.js";
5
+ import { u as F } from "./publish-versions-BGoX_gD4.js";
6
+ import { u as k, I as E, e as f } from "./feature-h3MFKUcz.js";
7
+ import { e as V, g as _, d as B, f as D } from "./vue-BOcyAWzp.js";
8
+ import { _ as w } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-lABO5UTH.js";
9
9
  const C = [
10
10
  {
11
11
  route: e.STOCK,
@@ -1,4 +1,4 @@
1
- import { d as se } from "./app-Coquqqkh.js";
1
+ import { d as se } from "./app-DMflhu6b.js";
2
2
  import { useCoreStore as ne } from "@feedmepos/mf-common";
3
3
  const re = se((e, t) => ({
4
4
  getSubscribeUrl(s, r, a) {
@@ -23,3 +23,8 @@ export declare function templateItemActiveLabels(item: FdoClosingTemplateItem):
23
23
  * not allowed (never disable the last enabled unit).
24
24
  */
25
25
  export declare function toggleTemplateItemUnit(item: FdoClosingTemplateItem, chip: UnitChip): FdoClosingTemplateItem | null;
26
+ /**
27
+ * Enable or disable every unit in `ids` at once. When disabling would leave no
28
+ * unit enabled, the base unit stays on.
29
+ */
30
+ export declare function setTemplateItemUnits(item: FdoClosingTemplateItem, ids: string[], enabled: boolean): FdoClosingTemplateItem;
@@ -0,0 +1,24 @@
1
+ import { type Ref } from 'vue';
2
+ import type { PurchaseOrderFormController, PurchaseOrderFormState } from '@feedmepos/inventory-core-dart';
3
+ import type { FdoDinero } from '@feedmepos/mf-common';
4
+ /**
5
+ * The form total (the "Total cost" footer of the transfer form) as display text, without currency.
6
+ *
7
+ * `controller.getTotalCosts()` reads the Dart controller state, which Vue cannot track. A bare call
8
+ * in a template only refreshes when the component that owns that template renders again. The
9
+ * footer sits in the slot of `FeatureCapabilityGate`, a child component that has no other
10
+ * dependency, so the bare call rendered once and kept its first value (0.00).
11
+ *
12
+ * `use-purchase-order-form-controller` calls `triggerRef(state)` after every change of an item,
13
+ * quantity, cost or supplier. This composable recomputes the text on each of those, so the footer
14
+ * always renders a ref that changes.
15
+ */
16
+ export declare function useTransferTotalCost(options: {
17
+ controller: Ref<PurchaseOrderFormController>;
18
+ state: Ref<PurchaseOrderFormState>;
19
+ /** Currency code that the total is formatted with. */
20
+ getCurrency: () => FdoDinero['currency'];
21
+ }): {
22
+ totalCostText: Ref<string, string>;
23
+ hasTotalCost: Ref<boolean, boolean>;
24
+ };
@@ -1020,7 +1020,7 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
1020
1020
  name: string;
1021
1021
  }[]>;
1022
1022
  loading: import("vue").Ref<boolean, boolean>;
1023
- fetchTemplates: () => Promise<void>;
1023
+ fetchTemplates: (signal?: AbortSignal) => Promise<void>;
1024
1024
  loadTemplate: (templateId: string) => Promise<void>;
1025
1025
  }, "loading" | "columnDefs" | "templates">>, Pick<{
1026
1026
  columnDefs: ColumnDef<{
@@ -2042,7 +2042,7 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
2042
2042
  name: string;
2043
2043
  }[]>;
2044
2044
  loading: import("vue").Ref<boolean, boolean>;
2045
- fetchTemplates: () => Promise<void>;
2045
+ fetchTemplates: (signal?: AbortSignal) => Promise<void>;
2046
2046
  loadTemplate: (templateId: string) => Promise<void>;
2047
2047
  }, never>, Pick<{
2048
2048
  columnDefs: ColumnDef<{
@@ -3064,6 +3064,6 @@ export declare const useTransferTemplateTable: import("pinia").StoreDefinition<"
3064
3064
  name: string;
3065
3065
  }[]>;
3066
3066
  loading: import("vue").Ref<boolean, boolean>;
3067
- fetchTemplates: () => Promise<void>;
3067
+ fetchTemplates: (signal?: AbortSignal) => Promise<void>;
3068
3068
  loadTemplate: (templateId: string) => Promise<void>;
3069
3069
  }, "loadTemplate" | "fetchTemplates">>;
@@ -1,16 +1,16 @@
1
- import { computed as i, unref as p, toValue as y } from "vue";
2
- import { u as s } from "./feature-DdZZAV6X.js";
1
+ import { computed as l, unref as p, toValue as y } from "vue";
2
+ import { u as s } from "./feature-h3MFKUcz.js";
3
3
  import { useCoreStore as b } from "@feedmepos/mf-common";
4
- import { u as g } from "./app-Coquqqkh.js";
5
- function S(t) {
4
+ import { u as d } from "./app-DMflhu6b.js";
5
+ function F(t) {
6
6
  return t;
7
7
  }
8
- function d(t, r) {
8
+ function g(t, r) {
9
9
  var n;
10
- const e = t.release ?? { stage: "ga" }, a = (n = t.flagKeys) != null && n.length ? t.flagKeys.some(r.isFlagOn) : t.minimumTier !== "premium" || r.premium === !0, o = e.stage === "ga" || e.stage === "beta", l = a && o, u = a ? e.stage === "off" ? "This feature is not currently available." : void 0 : `Requires the ${t.minimumTier} plan.`;
10
+ const e = t.release ?? { stage: "ga" }, a = (n = t.flagKeys) != null && n.length ? t.flagKeys.some(r.isFlagOn) : t.minimumTier !== "premium" || r.premium === !0, o = e.stage === "ga" || e.stage === "beta", i = a && o, u = a ? e.stage === "off" ? "This feature is not currently available." : void 0 : `Requires the ${t.minimumTier} plan.`;
11
11
  return {
12
- enabled: l,
13
- disabled: !l,
12
+ enabled: i,
13
+ disabled: !i,
14
14
  stage: e.stage,
15
15
  eligible: o,
16
16
  reason: u
@@ -80,6 +80,13 @@ const v = [
80
80
  flagKeys: ["inventory_receive_request_beta"],
81
81
  controls: "Purchase / Transfer in (New) navigation and bulk receive page."
82
82
  },
83
+ {
84
+ key: "create-order-dialog-v2",
85
+ label: "Create Order Dialog V2",
86
+ category: "beta",
87
+ flagKeys: ["inventory_portal_purchase_order_create_v2"],
88
+ controls: "Sidebar create order dialog replacing the Create transfer dialog."
89
+ },
83
90
  {
84
91
  key: "surcharge",
85
92
  label: "Surcharge",
@@ -212,53 +219,53 @@ const v = [
212
219
  function c(t) {
213
220
  return m.find((r) => r.key === t);
214
221
  }
215
- function T(t) {
222
+ function C(t) {
216
223
  return m.filter((r) => {
217
224
  var e;
218
225
  return (e = r.flagKeys) == null ? void 0 : e.includes(t);
219
226
  });
220
227
  }
221
228
  function k(t) {
222
- const r = _(), e = i(() => {
229
+ const r = _(), e = l(() => {
223
230
  const a = p(t);
224
- return a ? d(a, r.value) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
231
+ return a ? g(a, r.value) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
225
232
  });
226
233
  return {
227
234
  result: e,
228
- enabled: i(() => e.value.enabled),
229
- disabled: i(() => e.value.disabled),
230
- stage: i(() => e.value.stage),
231
- eligible: i(() => e.value.eligible),
232
- reason: i(() => e.value.reason)
235
+ enabled: l(() => e.value.enabled),
236
+ disabled: l(() => e.value.disabled),
237
+ stage: l(() => e.value.stage),
238
+ eligible: l(() => e.value.eligible),
239
+ reason: l(() => e.value.reason)
233
240
  };
234
241
  }
235
242
  function _() {
236
- const t = s(), r = b(), e = g();
237
- return i(() => {
243
+ const t = s(), r = b(), e = d();
244
+ return l(() => {
238
245
  var a, o;
239
246
  return {
240
- isFlagOn: (l) => t.isFlagOn(l),
247
+ isFlagOn: (i) => t.isFlagOn(i),
241
248
  premium: t.premium,
242
249
  businessId: (a = r.currentBusiness.value) == null ? void 0 : a._id,
243
250
  locationId: (o = e._currentLocation) == null ? void 0 : o.doc._id
244
251
  };
245
252
  });
246
253
  }
247
- function C(t) {
248
- const r = s(), e = g(), a = i(() => c(y(t))), o = k(i(() => {
254
+ function T(t) {
255
+ const r = s(), e = d(), a = l(() => c(y(t))), o = k(l(() => {
249
256
  var n;
250
257
  return ((n = a.value) == null ? void 0 : n.definition) ?? null;
251
- })), l = i(() => {
258
+ })), i = l(() => {
252
259
  var n;
253
260
  return ((n = e._currentLocation) == null ? void 0 : n.dbName) ?? null;
254
261
  });
255
262
  return {
256
- state: i(() => {
263
+ state: l(() => {
257
264
  const n = r.loadState;
258
- return !l.value || n.dbName !== l.value ? "loading" : n.status === "error" ? "error" : n.status !== "ready" ? "loading" : a.value ? o.enabled.value ? "enabled" : a.value.category === "premium" ? "upgrade" : "unavailable" : "unavailable";
265
+ return !i.value || n.dbName !== i.value ? "loading" : n.status === "error" ? "error" : n.status !== "ready" ? "loading" : a.value ? o.enabled.value ? "enabled" : a.value.category === "premium" ? "upgrade" : "unavailable" : "unavailable";
259
266
  }),
260
267
  feature: a,
261
- dbName: l,
268
+ dbName: i,
262
269
  result: o.result,
263
270
  retry: () => r.retryLoad()
264
271
  };
@@ -268,7 +275,7 @@ function w(t) {
268
275
  const r = (a = c(t)) == null ? void 0 : a.definition;
269
276
  if (!r) return { enabled: !1, disabled: !0, stage: "off", eligible: !1 };
270
277
  const e = s();
271
- return d(r, {
278
+ return g(r, {
272
279
  isFlagOn: (o) => e.isFlagOn(o),
273
280
  premium: e.premium
274
281
  });
@@ -279,11 +286,11 @@ function K(t) {
279
286
  return (a = e == null ? void 0 : e.flagKeys) != null && a.length ? e.flagKeys.some((o) => r.isFlagOn(o)) : (e == null ? void 0 : e.category) !== "premium" || r.premium;
280
287
  }
281
288
  export {
282
- T as a,
283
- C as b,
289
+ C as a,
290
+ T as b,
284
291
  k as c,
285
- S as d,
286
- d as e,
292
+ F as d,
293
+ g as e,
287
294
  w as f,
288
295
  c as g,
289
296
  K as i,