@feedmepos/mf-inventory-portal 1.8.0-dev.3 → 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.
- package/dist/{App-DRXADP0k.js → App-FeJnwZme.js} +362 -374
- package/dist/{ApprovalView-hV1msz5Y.js → ApprovalView-Eo-cGWyA.js} +9 -9
- package/dist/{BindingsDialog-BX1Lopf0.js → BindingsDialog-DkjuXydb.js} +2 -2
- package/dist/{BindingsPicker-BNKW8-XY.js → BindingsPicker-DUOQcOlj.js} +2 -2
- package/dist/{BindingsTable-DiLDsL83.js → BindingsTable-CoDdU5xh.js} +4 -4
- package/dist/{BulkReceiveRequestView-oQh6kFLc.js → BulkReceiveRequestView-BGh8fbEX.js} +21 -22
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BaMcGU-x.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CStISRqy.js} +1 -1
- package/dist/{ClosingDraftView-sgLoaSf4.js → ClosingDraftView-Cwnhrv5P.js} +20 -20
- package/dist/{ClosingHistoryView-BnE9HrzA.js → ClosingHistoryView-oHf77Lal.js} +5 -5
- package/dist/{ClosingTemplateView-BD3Pa11r.js → ClosingTemplateView-1P8J1vAn.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DlbyxkMQ.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuEPaqQK.js} +1 -1
- package/dist/{DefaultView-CuzvVkfE.js → DefaultView-3Z8aVFSU.js} +5 -5
- package/dist/{DeliveryOrderPrintPreview-w-1aAOY1.js → DeliveryOrderPrintPreview-uT_e3Suw.js} +2 -2
- package/dist/{DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-Bp8bjDU1.js → DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-D_vmtZDZ.js} +1 -1
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-CxD12Qct.js → EmailDialog.vue_vue_type_script_setup_true_lang-BCgnXxEi.js} +29 -30
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-D-RzUmqA.js +81 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BqCh_vTP.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BlKpGdCx.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CAXnmdUy.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DKkxn1J-.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-NhOdW33O.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOXDST-E.js} +2 -2
- package/dist/{FmMultiselectDialog-BqZgHP8s.js → FmMultiselectDialog-C8uYx8rr.js} +1 -1
- package/dist/{FmMultiselectDialog-CULwA_hi.js → FmMultiselectDialog-DRxZAkcu.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CI3Y9kDl.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DRSzQqVJ.js} +6 -6
- package/dist/{ImportView-DqQG673_.js → ImportView-Qigtf3ik.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DfvNUu80.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B8PJeYrP.js} +1 -1
- package/dist/{IngredientGroupView-CyngKxPo.js → IngredientGroupView-RNYZLkQu.js} +7 -7
- package/dist/{IngredientsView-pzpP6oXT.js → IngredientsView-N9U7tdI_.js} +17 -17
- package/dist/{IntegrationExplorerView-C5aAhB6e.js → IntegrationExplorerView-CjmeGQ14.js} +4 -4
- package/dist/{IntegrationView-Bqun7nX0.js → IntegrationView-DAdpmuxx.js} +15 -15
- package/dist/{InventoryBindingForm-r_Ua1C4a.js → InventoryBindingForm-CAj3MurI.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CYDuu4kU.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-3pYuu62C.js} +5 -5
- package/dist/{InventoryBindingSummary-BQuZLohR.js → InventoryBindingSummary-B-1OBUdw.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-7r-QcJdU.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CUYYEuW3.js} +1 -1
- package/dist/{ProductionRunDetailView-95fu_CfH.js → ProductionRunDetailView-eFvl8-By.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CdOca1tV.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DaC7e4qS.js} +7 -7
- package/dist/{ProductionRunView-DIjor_Ix.js → ProductionRunView-C_NJJKLr.js} +3 -3
- package/dist/{PublishView-DYObyHQq.js → PublishView-BglAEkzU.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-C0jCmI9L.js → PurchaseOrderPrintPreview-BTF9ikpQ.js} +2 -2
- package/dist/{ReceiveRequestView-i7ibPfIE.js → ReceiveRequestView-BUvehG10.js} +15 -16
- package/dist/{RecipeView-C5VO7yr3.js → RecipeView-DO5-jgwh.js} +19 -20
- package/dist/{SettingsView-CdBloj9k.js → SettingsView-DRR86cHo.js} +10 -11
- package/dist/{StockView-g_6eJ62R.js → StockView-D1oEnbZp.js} +23 -24
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C1rKc7MA.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxU92-io.js} +1 -1
- package/dist/{SupplierView-DkYp_Frj.js → SupplierView-D68wz0-g.js} +14 -14
- package/dist/{SurchargeView-CfkV4Y3y.js → SurchargeView-Cw9rTw2h.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-2MtN1p5t.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Az-a1Dsp.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CYMjKXq4.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C-sxbacO.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D0zNr_vQ.js → TransferDetails.vue_vue_type_script_setup_true_lang-CsHfLaCv.js} +241 -242
- package/dist/{TransferTemplateView-Ne2gYUSn.js → TransferTemplateView-CHPJMjYC.js} +22 -23
- package/dist/{UnitCostHistoryView-Db0_otOb.js → UnitCostHistoryView-DM8OzWhe.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BzO1lq7j.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpwK5mFH.js} +4 -4
- package/dist/{UnitView-CiCeQ63i.js → UnitView-90uR-ZzQ.js} +8 -8
- package/dist/{WarehouseView-BcuJSOMF.js → WarehouseView-Bulg6Vac.js} +8 -8
- package/dist/{WastageTemplateView-CPQmtOKQ.js → WastageTemplateView-BmAHnnwm.js} +15 -15
- package/dist/{app-DqJp3dcI.js → app-Ccdgbe4f.js} +16 -16
- package/dist/app.js +1 -1
- package/dist/{closing-template-BNlgZviN.js → closing-template-DuBZxoXx.js} +1 -1
- package/dist/components/FeatureCapabilityBadge.vue.d.ts +1 -1
- package/dist/{date2-Ci7521dn.js → date2-IBrLdtni.js} +1 -1
- package/dist/{dayjs.min-Cyp32v4J.js → dayjs.min-DEkq-Hpp.js} +1 -1
- package/dist/{decimal-BGdm5R3A.js → decimal-g6jRdlSk.js} +2 -2
- package/dist/{defineDeepModel-B2cJ-rtd.js → defineDeepModel-P5a5Ffpn.js} +1 -1
- package/dist/{duplicate-template-By5WeKZ0.js → duplicate-template-Do8s80ei.js} +1 -1
- package/dist/{core-Js7d-3Pv.js → feature-ChVm5JED.js} +3296 -1860
- package/dist/feature-flags/core.d.ts +3 -2
- package/dist/feature-flags/portal-feature-catalog.d.ts +2 -5
- package/dist/feature-flags/premium-flags.spec.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +2 -0
- package/dist/{format-time-from-id-Q8C2P96H.js → format-time-from-id-BgbBOII7.js} +1 -1
- package/dist/{format-unit-display-CICrmm8r.js → format-unit-display-hSXy2iu6.js} +13 -13
- package/dist/{id-to-date-DeN5x0LR.js → id-to-date-DlGYysU8.js} +1 -1
- package/dist/{import-export.helper-BOTQWxr6.js → import-export.helper-LrZhiz2W.js} +28 -28
- package/dist/{index-BbbqCCfp.js → index-BTNJ1fk2.js} +3 -3
- package/dist/{index-Cxm3Sgfv.js → index-DCiNwlw2.js} +1 -1
- package/dist/{index-tCYhLCKP.js → index-DsOmtywr.js} +1 -1
- package/dist/{lz-string-Dy4Pg8mh.js → lz-string-DRuyjE9G.js} +1 -1
- package/dist/{netsuite-BaJjkDM8.js → netsuite-B6y8GZCP.js} +2 -2
- package/dist/{number-CB36d2PQ.js → number-Besn-1-5.js} +3 -3
- package/dist/{predefined-templates-DLm93Bpx.js → predefined-templates-D92mN_2S.js} +1 -1
- package/dist/{purchase-order-template-CDhn9ZIF.js → purchase-order-template-hvq2pfWx.js} +1 -1
- package/dist/{recalculationUtils-Cqvefakh.js → recalculationUtils-BlZR5O2G.js} +1 -1
- package/dist/{row-action.enum-NTfVmGY8.js → row-action.enum-R2bi3eAv.js} +1 -1
- package/dist/{rules-C8dfM84-.js → rules-DzwoRKUS.js} +2 -2
- package/dist/{stock-BGB0Siue.js → stock-Cq37EARQ.js} +3 -3
- package/dist/{stock-Qu5IiN2_.js → stock-oJqnUrtt.js} +1 -1
- package/dist/stores/feature.d.ts +1 -0
- package/dist/{supplier-CZdNOSMN.js → supplier-DtdwvcPr.js} +17 -17
- package/dist/{surcharge-Cm40oJvU.js → surcharge-CjdJGIsM.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-L-IW4Nwk.js → uom-rules-BqPn_GoZ.js} +1 -1
- package/dist/{use-ingredient-select-dialog-B2TDVJM6.js → use-ingredient-select-dialog-0hRCj6Fu.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BJ00hl5f.js → use-inventory-binding-dialog-BLRcIC1u.js} +2 -2
- package/dist/{use-template-enabled-locations-DYAPMvo9.js → use-template-enabled-locations-8ZfTj4YB.js} +2 -2
- package/dist/{use-transfer-locations-w-9tymYS.js → use-transfer-locations-BGS1EBEt.js} +2 -2
- package/dist/{useHrmPermission-BFCIo5sA.js → useHrmPermission-BcQ2KPD-.js} +1 -1
- package/dist/{useNavigationMenu-BPHAH5sJ.js → useNavigationMenu-DImtns81.js} +73 -71
- package/dist/{useSseClient-CWjRacRs.js → useSseClient-DPSFFVci.js} +1 -1
- package/dist/{vue-i18n-S4YQ9w6a.js → vue-i18n-DTyGIjTI.js} +1 -1
- package/dist/{xlsx.util-CP8_VajN.js → xlsx.util-CK9Lnq3Q.js} +2 -2
- package/package.json +6 -6
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CMoQKl_a.js +0 -308
- package/dist/feature-fG7d73oi.js +0 -371
- package/dist/index-Dqf27vLH.js +0 -841
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
import { defineComponent as g, resolveComponent as m, createBlock as c, createCommentVNode as u, openBlock as i, createElementBlock as y, createVNode as _, createTextVNode as k, computed as d } from "vue";
|
|
2
|
-
import { h as v, u as h } from "./index-Dqf27vLH.js";
|
|
3
|
-
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
function R(r) {
|
|
5
|
-
return r;
|
|
6
|
-
}
|
|
7
|
-
function D(r, t) {
|
|
8
|
-
const a = r.release ?? { stage: "ga" }, n = v(t.planTier, r.minimumTier), l = a.stage === "ga" || a.stage === "beta", o = n && l, s = n ? a.stage === "off" ? "This feature is not currently available." : void 0 : `Requires the ${r.minimumTier} plan.`;
|
|
9
|
-
return {
|
|
10
|
-
enabled: o,
|
|
11
|
-
disabled: !o,
|
|
12
|
-
stage: a.stage,
|
|
13
|
-
eligible: l,
|
|
14
|
-
reason: s
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
function e(r, t) {
|
|
18
|
-
return {
|
|
19
|
-
key: r,
|
|
20
|
-
minimumTier: t === "premium" ? "premium" : "standard",
|
|
21
|
-
release: { stage: t === "beta" ? "beta" : "ga" }
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
const f = [
|
|
25
|
-
{
|
|
26
|
-
key: "total-cost",
|
|
27
|
-
label: "Total Cost",
|
|
28
|
-
category: "premium",
|
|
29
|
-
flagKeys: ["inventory_pos_costing"],
|
|
30
|
-
controls: "Cost history, stock, ingredient, supplier, purchase-order, and template cost UI.",
|
|
31
|
-
definition: e("total-cost", "premium")
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
key: "wastage-template",
|
|
35
|
-
label: "Wastage Template",
|
|
36
|
-
category: "premium",
|
|
37
|
-
flagKeys: ["inventory_pos_adjust_v2_wastage"],
|
|
38
|
-
controls: "Wastage navigation, templates, and ingredient template links.",
|
|
39
|
-
definition: e("wastage-template", "premium")
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
key: "purchase-order-template",
|
|
43
|
-
label: "Purchase-Order Template",
|
|
44
|
-
category: "premium",
|
|
45
|
-
flagKeys: ["inventory_portal_must_use_transfer_template", "inventory_pos_allow_receive_order"],
|
|
46
|
-
controls: "Template navigation, forms, and ingredient template links.",
|
|
47
|
-
definition: e("purchase-order-template", "premium")
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
key: "closing-template",
|
|
51
|
-
label: "Closing Template",
|
|
52
|
-
category: "premium",
|
|
53
|
-
flagKeys: ["inventory_pos_closing_v2"],
|
|
54
|
-
controls: "Closing Template, Closing Draft, and ingredient template links.",
|
|
55
|
-
definition: e("closing-template", "premium")
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
key: "ingredient-group",
|
|
59
|
-
label: "Ingredient Group",
|
|
60
|
-
category: "standard",
|
|
61
|
-
deprecateSoon: !0,
|
|
62
|
-
controls: "Ingredient Group navigation and recipe group selection.",
|
|
63
|
-
definition: e("ingredient-group", "standard")
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
key: "production-runs",
|
|
67
|
-
label: "Production Runs",
|
|
68
|
-
category: "beta",
|
|
69
|
-
controls: "Production navigation, routes, and detail view.",
|
|
70
|
-
definition: e("production-runs", "beta")
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
key: "bulk-receive-transfer",
|
|
74
|
-
label: "Bulk Receive / Transfer",
|
|
75
|
-
category: "beta",
|
|
76
|
-
controls: "Purchase / Transfer in (New) navigation and bulk receive page.",
|
|
77
|
-
definition: e("bulk-receive-transfer", "beta")
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
key: "surcharge",
|
|
81
|
-
label: "Surcharge",
|
|
82
|
-
category: "beta",
|
|
83
|
-
controls: "Surcharge navigation and management page.",
|
|
84
|
-
definition: e("surcharge", "beta")
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
key: "bulk-import",
|
|
88
|
-
label: "Bulk Import",
|
|
89
|
-
category: "standard",
|
|
90
|
-
controls: "Import navigation and import page.",
|
|
91
|
-
definition: e("bulk-import", "standard")
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
key: "custom-po-cost",
|
|
95
|
-
label: "Custom PO Cost",
|
|
96
|
-
category: "premium",
|
|
97
|
-
flagKeys: ["inventory_purchase_order_custom_cost"],
|
|
98
|
-
controls: "Delivery-order create/edit cost override controls.",
|
|
99
|
-
definition: e("custom-po-cost", "premium")
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
key: "po-cost-edit",
|
|
103
|
-
label: "PO Cost Edit",
|
|
104
|
-
category: "premium",
|
|
105
|
-
flagKeys: ["inventory_purchase_order_cost_edit"],
|
|
106
|
-
controls: "Purchase/transfer item cost editing.",
|
|
107
|
-
definition: e("po-cost-edit", "premium")
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
key: "po-price-adjustment",
|
|
111
|
-
label: "PO Price Adjustment",
|
|
112
|
-
category: "premium",
|
|
113
|
-
flagKeys: ["inventory_purchase_order_price_adjustment"],
|
|
114
|
-
controls: "Purchase-order price-adjustment editor and list.",
|
|
115
|
-
definition: e("po-price-adjustment", "premium")
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "unit-cost-recalculation",
|
|
119
|
-
label: "Unit Cost / Recalculation",
|
|
120
|
-
category: "premium",
|
|
121
|
-
flagKeys: ["inventory_pos_closing_recalculation"],
|
|
122
|
-
controls: "Unit Cost History and recalculation dialog.",
|
|
123
|
-
definition: e("unit-cost-recalculation", "premium")
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
key: "backdated-po",
|
|
127
|
-
label: "Backdated PO",
|
|
128
|
-
category: "premium",
|
|
129
|
-
flagKeys: ["inventory_purchase_order_backdate", "inventory_backdate_receive"],
|
|
130
|
-
controls: "Purchase/transfer date controls and list columns.",
|
|
131
|
-
definition: e("backdated-po", "premium")
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
key: "po-email",
|
|
135
|
-
label: "PO Email",
|
|
136
|
-
category: "beta",
|
|
137
|
-
controls: "Purchase-order email actions.",
|
|
138
|
-
definition: e("po-email", "beta")
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
key: "print-templates",
|
|
142
|
-
label: "Print Templates",
|
|
143
|
-
category: "beta",
|
|
144
|
-
controls: "Custom purchase-order print actions.",
|
|
145
|
-
definition: e("print-templates", "beta")
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
key: "recipe-v2",
|
|
149
|
-
label: "Recipe V2",
|
|
150
|
-
category: "beta",
|
|
151
|
-
controls: "Recipe V2 fields and alternatives controls.",
|
|
152
|
-
definition: e("recipe-v2", "beta")
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
key: "recipe-bulk-edit",
|
|
156
|
-
label: "Recipe Bulk Edit",
|
|
157
|
-
category: "beta",
|
|
158
|
-
controls: "Recipe bulk-editor action and dialog.",
|
|
159
|
-
definition: e("recipe-bulk-edit", "beta")
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
key: "supplier-preparation-time",
|
|
163
|
-
label: "Supplier Preparation Time",
|
|
164
|
-
category: "beta",
|
|
165
|
-
controls: "Supplier and warehouse preparation-time fields.",
|
|
166
|
-
definition: e("supplier-preparation-time", "beta")
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
key: "xilnex-transfer-note",
|
|
170
|
-
label: "Xilnex Transfer Note",
|
|
171
|
-
category: "beta",
|
|
172
|
-
controls: "Purchase/transfer columns and Xilnex upload actions.",
|
|
173
|
-
definition: e("xilnex-transfer-note", "beta")
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
key: "purchase-order-v2",
|
|
177
|
-
label: "Purchase-Order V2 / Operate V2",
|
|
178
|
-
category: "premium",
|
|
179
|
-
flagKeys: ["inventory_portal_purchase_order_v2"],
|
|
180
|
-
controls: "All Premium plans use the new purchase-order workflow.",
|
|
181
|
-
definition: e("purchase-order-v2", "premium")
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
key: "transfer-fulfillment",
|
|
185
|
-
label: "Transfer Fulfillment",
|
|
186
|
-
category: "beta",
|
|
187
|
-
controls: "Transfer form fulfillment behavior.",
|
|
188
|
-
definition: e("transfer-fulfillment", "beta")
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
key: "po-workflow-completion",
|
|
192
|
-
label: "PO Workflow Completion",
|
|
193
|
-
category: "beta",
|
|
194
|
-
controls: "Mark-as-completed purchase-order action.",
|
|
195
|
-
definition: e("po-workflow-completion", "beta")
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
key: "opening-migration",
|
|
199
|
-
label: "Xilnex / Synergy Opening Migration",
|
|
200
|
-
category: "beta",
|
|
201
|
-
controls: "Xilnex and Synergy migration views.",
|
|
202
|
-
definition: e("opening-migration", "beta")
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
key: "netsuite-transfer-out",
|
|
206
|
-
label: "NetSuite Transfer Out",
|
|
207
|
-
category: "beta",
|
|
208
|
-
controls: "NetSuite integration transfer-out functionality.",
|
|
209
|
-
definition: e("netsuite-transfer-out", "beta")
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
key: "delivery-order-write",
|
|
213
|
-
label: "Delivery-Order Write",
|
|
214
|
-
category: "beta",
|
|
215
|
-
controls: "Delivery-order create/write UI.",
|
|
216
|
-
definition: e("delivery-order-write", "beta")
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
key: "custom-attributes",
|
|
220
|
-
label: "Custom Attributes",
|
|
221
|
-
category: "standard",
|
|
222
|
-
controls: "Inventory custom-attribute controls.",
|
|
223
|
-
definition: e("custom-attributes", "standard")
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
key: "legacy-receiving",
|
|
227
|
-
label: "Legacy Warehouse / Manual Receiving",
|
|
228
|
-
category: "standard",
|
|
229
|
-
deprecateSoon: !0,
|
|
230
|
-
controls: "Legacy receive-flow behavior.",
|
|
231
|
-
definition: e("legacy-receiving", "standard")
|
|
232
|
-
}
|
|
233
|
-
];
|
|
234
|
-
function w(r) {
|
|
235
|
-
return f.find((t) => t.key === r);
|
|
236
|
-
}
|
|
237
|
-
function V(r) {
|
|
238
|
-
return f.find((t) => {
|
|
239
|
-
var a;
|
|
240
|
-
return (a = t.flagKeys) == null ? void 0 : a.includes(r);
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
const T = /* @__PURE__ */ g({
|
|
244
|
-
__name: "PlanTierBadge",
|
|
245
|
-
props: {
|
|
246
|
-
tier: {}
|
|
247
|
-
},
|
|
248
|
-
setup(r) {
|
|
249
|
-
return (t, a) => {
|
|
250
|
-
const n = m("FmPill");
|
|
251
|
-
return t.tier === "premium" ? (i(), c(n, {
|
|
252
|
-
key: 0,
|
|
253
|
-
variant: "premium"
|
|
254
|
-
})) : u("", !0);
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
}), C = {}, F = { class: "inline-flex items-center gap-1 rounded-full border border-fm-color-state-warning-base bg-fm-color-state-warning-subtle px-2 py-0.5 text-xs font-medium text-fm-color-state-warning-base" };
|
|
258
|
-
function x(r, t) {
|
|
259
|
-
const a = m("FmIcon");
|
|
260
|
-
return i(), y("span", F, [
|
|
261
|
-
_(a, {
|
|
262
|
-
name: "warning",
|
|
263
|
-
size: "sm"
|
|
264
|
-
}),
|
|
265
|
-
t[0] || (t[0] = k(" Deprecate Soon "))
|
|
266
|
-
]);
|
|
267
|
-
}
|
|
268
|
-
const K = /* @__PURE__ */ P(C, [["render", x]]), S = { class: "inline-flex items-center gap-1" }, N = /* @__PURE__ */ g({
|
|
269
|
-
__name: "FeatureCapabilityBadge",
|
|
270
|
-
props: {
|
|
271
|
-
tier: {},
|
|
272
|
-
category: {},
|
|
273
|
-
deprecateSoon: { type: Boolean },
|
|
274
|
-
featureKey: {},
|
|
275
|
-
informative: { type: Boolean }
|
|
276
|
-
},
|
|
277
|
-
setup(r) {
|
|
278
|
-
const t = r, { getFlagValue: a } = h(), n = d(() => {
|
|
279
|
-
var s;
|
|
280
|
-
return (((s = w(t.featureKey ?? "")) == null ? void 0 : s.flagKeys) ?? []).some((p) => a(p, (b) => b === "true") === !0);
|
|
281
|
-
}), l = d(
|
|
282
|
-
() => t.tier === "premium" && (t.informative || !n.value)
|
|
283
|
-
);
|
|
284
|
-
return (o, s) => {
|
|
285
|
-
const p = m("FmPill");
|
|
286
|
-
return i(), y("span", S, [
|
|
287
|
-
o.deprecateSoon ? (i(), c(K, { key: 0 })) : u("", !0),
|
|
288
|
-
o.category === "beta" ? (i(), c(p, {
|
|
289
|
-
key: 1,
|
|
290
|
-
variant: "beta"
|
|
291
|
-
})) : u("", !0),
|
|
292
|
-
l.value ? (i(), c(T, {
|
|
293
|
-
key: 2,
|
|
294
|
-
tier: o.tier
|
|
295
|
-
}, null, 8, ["tier"])) : u("", !0)
|
|
296
|
-
]);
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
export {
|
|
301
|
-
K as D,
|
|
302
|
-
T as _,
|
|
303
|
-
N as a,
|
|
304
|
-
V as b,
|
|
305
|
-
R as d,
|
|
306
|
-
D as e,
|
|
307
|
-
w as g
|
|
308
|
-
};
|
package/dist/feature-fG7d73oi.js
DELETED
|
@@ -1,371 +0,0 @@
|
|
|
1
|
-
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
2
|
-
import { a as R, u as m, k as P } from "./app-DqJp3dcI.js";
|
|
3
|
-
import { u as p, h as I, p as x } from "./index-Dqf27vLH.js";
|
|
4
|
-
import { ref as C } from "vue";
|
|
5
|
-
import { I as n } from "./core-Js7d-3Pv.js";
|
|
6
|
-
var q = { development: { appEndpoint: { licenseV2: "https://license-v2-dev.feedmeapi.com" } } };
|
|
7
|
-
function W() {
|
|
8
|
-
return q.development.appEndpoint.licenseV2.replace(/\/$/, "");
|
|
9
|
-
}
|
|
10
|
-
async function T(a) {
|
|
11
|
-
var s;
|
|
12
|
-
const t = c(), o = await fetch(`${W()}${a}`, {
|
|
13
|
-
headers: { authorization: `Bearer ${((s = t.sessionUser.value) == null ? void 0 : s.token) ?? ""}` },
|
|
14
|
-
mode: "cors"
|
|
15
|
-
});
|
|
16
|
-
if (!o.ok)
|
|
17
|
-
throw new Error(`License API request failed (${o.status}): ${await o.text()}`);
|
|
18
|
-
return await o.text();
|
|
19
|
-
}
|
|
20
|
-
function F() {
|
|
21
|
-
return {
|
|
22
|
-
async getWarehouseQuota(a) {
|
|
23
|
-
const t = await T(`/api/business/${a}/feature/warehouse`);
|
|
24
|
-
return JSON.parse(t);
|
|
25
|
-
},
|
|
26
|
-
async getInventoryPlan(a) {
|
|
27
|
-
const t = (await T(`/api/restaurant-features/${a}/inventory`)).trim();
|
|
28
|
-
if (!t || t === "null") return null;
|
|
29
|
-
if (t === "Standard" || t === "Premium") return t;
|
|
30
|
-
throw new Error(`Unexpected inventory plan response: ${t}`);
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
const B = /* @__PURE__ */ new Set([
|
|
35
|
-
// vivo pizza prod
|
|
36
|
-
"business_6687e91fa7240b001ba3f4c2",
|
|
37
|
-
// vivo dev
|
|
38
|
-
"business_669a1d2efc050a001cfbb5a2"
|
|
39
|
-
]), L = /* @__PURE__ */ new Set([
|
|
40
|
-
// zus dev
|
|
41
|
-
"business_671005de24a7f4001c87e25e",
|
|
42
|
-
// zus prod
|
|
43
|
-
"business_6776a1fe205a52001c516efa"
|
|
44
|
-
]);
|
|
45
|
-
function w() {
|
|
46
|
-
return {
|
|
47
|
-
isLoaded: !1,
|
|
48
|
-
planTier: "standard",
|
|
49
|
-
inventoryPlan: null,
|
|
50
|
-
warehouseQuota: [],
|
|
51
|
-
autoReceiveWarehouse: !1,
|
|
52
|
-
businessSupplierOnly: !1,
|
|
53
|
-
enableBackdatePo: !1,
|
|
54
|
-
enableClosingTemplate: !1,
|
|
55
|
-
enableIngredientGroup: !1,
|
|
56
|
-
enablePoTemplate: !1,
|
|
57
|
-
enableTotalCost: !1,
|
|
58
|
-
enableWastageTemplate: !1,
|
|
59
|
-
manualReceive: !1,
|
|
60
|
-
mustUseDefaultCost: !1,
|
|
61
|
-
mustUsePoTemplate: !1,
|
|
62
|
-
enableXilnexTransferNote: !1,
|
|
63
|
-
enableCustomAttribute: !1,
|
|
64
|
-
usePurchaseOrderV2: !1,
|
|
65
|
-
acceptRequireFulfillment: !1,
|
|
66
|
-
useOperatePurchaseOrderV2: !1,
|
|
67
|
-
inventory_xilnex_opening_migration: !1,
|
|
68
|
-
inventory_synergy_opening_migration: !1,
|
|
69
|
-
inventory_netsuite_inventory_transfer_out: !1,
|
|
70
|
-
inventory_portal_supplier_preparation_time: !1,
|
|
71
|
-
inventory_portal_delivery_order_write: !1,
|
|
72
|
-
inventory_pos_transfer_require_fulfillment: !1,
|
|
73
|
-
inventory_backdate_receive: !1,
|
|
74
|
-
inventory_purchase_order_custom_cost: !1,
|
|
75
|
-
inventory_bulk_import: !1,
|
|
76
|
-
inventory_portal_surcharge: !1,
|
|
77
|
-
inventory_purchase_order_cost_edit: !1,
|
|
78
|
-
inventory_purchase_order_price_adjustment: !1,
|
|
79
|
-
inventory_purchase_order_workflow_allow_to_mark_completed: !1,
|
|
80
|
-
inventory_recipe_v2: !1,
|
|
81
|
-
inventory_print_template: !1,
|
|
82
|
-
inventory_purchase_order_email: !1,
|
|
83
|
-
inventory_bulk_edit_recipes: !1,
|
|
84
|
-
inventory_receive_request_beta: !1,
|
|
85
|
-
inventory_portal_production_item: !1,
|
|
86
|
-
report_portal_po_forecast_days_constraint: null,
|
|
87
|
-
report_portal_po_forecast_days_default: 7
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
const e = C(w()), G = () => ({
|
|
91
|
-
get businessDbName() {
|
|
92
|
-
var o;
|
|
93
|
-
return `business_${((o = c().currentBusiness.value) == null ? void 0 : o._id) ?? ""}`;
|
|
94
|
-
},
|
|
95
|
-
get isWarehouse() {
|
|
96
|
-
var t;
|
|
97
|
-
return ((t = m()._currentLocation) == null ? void 0 : t.type) === P.enum.warehouse;
|
|
98
|
-
},
|
|
99
|
-
get restaurantPosVersion() {
|
|
100
|
-
var o;
|
|
101
|
-
const a = m();
|
|
102
|
-
return (o = c().restaurants.value.find(
|
|
103
|
-
(s) => {
|
|
104
|
-
var i;
|
|
105
|
-
return s._id === ((i = a._currentLocation) == null ? void 0 : i.doc._id);
|
|
106
|
-
}
|
|
107
|
-
)) == null ? void 0 : o.posVersion;
|
|
108
|
-
},
|
|
109
|
-
get enableTotalCost() {
|
|
110
|
-
return e.value.enableTotalCost;
|
|
111
|
-
},
|
|
112
|
-
get enableBackdatePo() {
|
|
113
|
-
return e.value.enableBackdatePo;
|
|
114
|
-
},
|
|
115
|
-
/** @deprecated TODO: remove */
|
|
116
|
-
get autoReceiveWarehouse() {
|
|
117
|
-
return e.value.autoReceiveWarehouse;
|
|
118
|
-
},
|
|
119
|
-
/** @deprecated TODO: remove */
|
|
120
|
-
get manualReceive() {
|
|
121
|
-
return e.value.manualReceive;
|
|
122
|
-
},
|
|
123
|
-
get isLoaded() {
|
|
124
|
-
return e.value.isLoaded;
|
|
125
|
-
},
|
|
126
|
-
get planTier() {
|
|
127
|
-
return e.value.planTier;
|
|
128
|
-
},
|
|
129
|
-
get inventoryPlan() {
|
|
130
|
-
return e.value.inventoryPlan;
|
|
131
|
-
},
|
|
132
|
-
get warehouseQuota() {
|
|
133
|
-
return e.value.warehouseQuota;
|
|
134
|
-
},
|
|
135
|
-
hasPlanTier(a) {
|
|
136
|
-
return I(e.value.planTier, a);
|
|
137
|
-
},
|
|
138
|
-
get enablePoTemplate() {
|
|
139
|
-
return e.value.enablePoTemplate;
|
|
140
|
-
},
|
|
141
|
-
get enableClosingTemplate() {
|
|
142
|
-
return e.value.enableClosingTemplate;
|
|
143
|
-
},
|
|
144
|
-
get enableWastageTemplate() {
|
|
145
|
-
return e.value.enableWastageTemplate;
|
|
146
|
-
},
|
|
147
|
-
get enableIngredientGroup() {
|
|
148
|
-
return e.value.enableIngredientGroup;
|
|
149
|
-
},
|
|
150
|
-
get mustUsePoTemplate() {
|
|
151
|
-
return e.value.mustUsePoTemplate;
|
|
152
|
-
},
|
|
153
|
-
get businessSupplierOnly() {
|
|
154
|
-
return e.value.businessSupplierOnly;
|
|
155
|
-
},
|
|
156
|
-
get enableXilnexTransferNote() {
|
|
157
|
-
return e.value.enableXilnexTransferNote;
|
|
158
|
-
},
|
|
159
|
-
get enabledXilnexOpeningMigration() {
|
|
160
|
-
return e.value.inventory_xilnex_opening_migration;
|
|
161
|
-
},
|
|
162
|
-
get enabledSynergyOpeningMigration() {
|
|
163
|
-
return e.value.inventory_synergy_opening_migration;
|
|
164
|
-
},
|
|
165
|
-
get enableCustomAttribute() {
|
|
166
|
-
return e.value.enableCustomAttribute;
|
|
167
|
-
},
|
|
168
|
-
get usePurchaseOrderV2() {
|
|
169
|
-
return e.value.usePurchaseOrderV2;
|
|
170
|
-
},
|
|
171
|
-
get acceptRequireFulfillment() {
|
|
172
|
-
return e.value.acceptRequireFulfillment;
|
|
173
|
-
},
|
|
174
|
-
get useOperatePurchaseOrderV2() {
|
|
175
|
-
return e.value.useOperatePurchaseOrderV2;
|
|
176
|
-
},
|
|
177
|
-
get isNetSuiteInventoryTransferOutEnabled() {
|
|
178
|
-
return e.value.inventory_netsuite_inventory_transfer_out;
|
|
179
|
-
},
|
|
180
|
-
get enableSupplierPreparationTime() {
|
|
181
|
-
return e.value.inventory_portal_supplier_preparation_time;
|
|
182
|
-
},
|
|
183
|
-
get enablePortalDeliveryOrderWrite() {
|
|
184
|
-
return e.value.inventory_portal_delivery_order_write ?? !0;
|
|
185
|
-
},
|
|
186
|
-
get enablePOSTransferRequireFulfillment() {
|
|
187
|
-
return e.value.inventory_pos_transfer_require_fulfillment;
|
|
188
|
-
},
|
|
189
|
-
get enableBackdateReceive() {
|
|
190
|
-
return e.value.inventory_backdate_receive;
|
|
191
|
-
},
|
|
192
|
-
get enablePurchaseOrderReceiveWithCustomCost() {
|
|
193
|
-
return e.value.inventory_purchase_order_custom_cost;
|
|
194
|
-
},
|
|
195
|
-
get enableBulkImport() {
|
|
196
|
-
return e.value.inventory_bulk_import;
|
|
197
|
-
},
|
|
198
|
-
get enableSurcharge() {
|
|
199
|
-
return e.value.inventory_portal_surcharge;
|
|
200
|
-
},
|
|
201
|
-
get enablePurchaseOrderCostEdit() {
|
|
202
|
-
return e.value.inventory_purchase_order_cost_edit;
|
|
203
|
-
},
|
|
204
|
-
get enablePurchaseOrderPriceAdjustment() {
|
|
205
|
-
return e.value.inventory_purchase_order_price_adjustment;
|
|
206
|
-
},
|
|
207
|
-
get poWorkflowAllowToMarkCompleted() {
|
|
208
|
-
return e.value.inventory_purchase_order_workflow_allow_to_mark_completed;
|
|
209
|
-
},
|
|
210
|
-
get enableRecipeV2() {
|
|
211
|
-
return e.value.inventory_recipe_v2;
|
|
212
|
-
},
|
|
213
|
-
get enablePrintTemplate() {
|
|
214
|
-
return e.value.inventory_print_template;
|
|
215
|
-
},
|
|
216
|
-
get enablePurchaseOrderEmail() {
|
|
217
|
-
return e.value.inventory_purchase_order_email;
|
|
218
|
-
},
|
|
219
|
-
get enableBulkEditRecipes() {
|
|
220
|
-
return e.value.inventory_bulk_edit_recipes;
|
|
221
|
-
},
|
|
222
|
-
get enableReceiveRequestBeta() {
|
|
223
|
-
return e.value.inventory_receive_request_beta;
|
|
224
|
-
},
|
|
225
|
-
get enableProductionRun() {
|
|
226
|
-
return e.value.inventory_portal_production_item;
|
|
227
|
-
},
|
|
228
|
-
get poForecastDaysConstraint() {
|
|
229
|
-
return e.value.report_portal_po_forecast_days_constraint;
|
|
230
|
-
},
|
|
231
|
-
get poForecastDaysDefault() {
|
|
232
|
-
return e.value.report_portal_po_forecast_days_default;
|
|
233
|
-
},
|
|
234
|
-
async init() {
|
|
235
|
-
const a = c(), { init: t, setBusiness: o } = p(), s = F(), i = R(), u = a.namespace.value === "prod";
|
|
236
|
-
await t({
|
|
237
|
-
apiKey: u ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
|
|
238
|
-
// url: 'https://flag.feedme.farm/api/v1/', // optional -> this is a default URL value
|
|
239
|
-
// enableAnalytics: true, // optional, defaults to true
|
|
240
|
-
// cacheFlags: true // optional, defaults to true
|
|
241
|
-
}), m().watchLocation(async (v) => {
|
|
242
|
-
var g, b, h;
|
|
243
|
-
if (!v) {
|
|
244
|
-
e.value = w();
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
const d = ((g = a.currentBusiness.value) == null ? void 0 : g._id) ?? "";
|
|
248
|
-
await o(d);
|
|
249
|
-
const [l, _] = await Promise.allSettled([
|
|
250
|
-
s.getInventoryPlan(v.doc._id),
|
|
251
|
-
s.getWarehouseQuota(d)
|
|
252
|
-
]);
|
|
253
|
-
l.status === "rejected" && console.error(
|
|
254
|
-
"Unable to load the inventory plan from the license API",
|
|
255
|
-
l.reason
|
|
256
|
-
), _.status === "rejected" && console.error(
|
|
257
|
-
"Unable to load the warehouse quota from the license API",
|
|
258
|
-
_.reason
|
|
259
|
-
);
|
|
260
|
-
const k = `business_${d}`, S = v.type === P.enum.warehouse, f = (
|
|
261
|
-
// if menu v4, must manual receive && must use outlet app
|
|
262
|
-
((b = a.currentBusiness.value) == null ? void 0 : b.menuVersion) === "v4" && // more guard for businesses using menu v4, only those listed for manual receive will be included
|
|
263
|
-
// TODO: may be removed to use menu version only
|
|
264
|
-
B.has(this.businessDbName)
|
|
265
|
-
), y = L.has(k) || r(n.inventory_portal_must_use_transfer_template), O = r(n.inventory_purchase_order_backdate) && (this.isWarehouse || i.state.closing !== null);
|
|
266
|
-
e.value = {
|
|
267
|
-
isLoaded: !0,
|
|
268
|
-
planTier: x(
|
|
269
|
-
l.status === "fulfilled" ? l.value : null
|
|
270
|
-
),
|
|
271
|
-
inventoryPlan: l.status === "fulfilled" ? l.value : null,
|
|
272
|
-
warehouseQuota: _.status === "fulfilled" ? _.value : [],
|
|
273
|
-
enableTotalCost: ((h = a.currentBusiness.value) == null ? void 0 : h.menuVersion) === "v4",
|
|
274
|
-
enableBackdatePo: O,
|
|
275
|
-
autoReceiveWarehouse: S && !f,
|
|
276
|
-
manualReceive: f,
|
|
277
|
-
enablePoTemplate: y,
|
|
278
|
-
enableClosingTemplate: r(n.inventory_pos_closing_v2),
|
|
279
|
-
enableWastageTemplate: r(n.inventory_pos_adjust_v2_wastage),
|
|
280
|
-
enableIngredientGroup: r(n.inventory_ingredient_group),
|
|
281
|
-
mustUsePoTemplate: y,
|
|
282
|
-
businessSupplierOnly: y,
|
|
283
|
-
enableXilnexTransferNote: r(n.inventory_portal_xilnex_transfer_note),
|
|
284
|
-
enableCustomAttribute: r(n.inventory_portal_custom_attribute),
|
|
285
|
-
usePurchaseOrderV2: r(n.inventory_portal_purchase_order_v2),
|
|
286
|
-
acceptRequireFulfillment: r(
|
|
287
|
-
n.inventory_portal_accept_require_fulfillment
|
|
288
|
-
),
|
|
289
|
-
useOperatePurchaseOrderV2: r(n.inventory_portal_po_operate_v2),
|
|
290
|
-
inventory_xilnex_opening_migration: r(
|
|
291
|
-
n.inventory_xilnex_opening_migration
|
|
292
|
-
),
|
|
293
|
-
inventory_synergy_opening_migration: r(
|
|
294
|
-
n.inventory_synergy_opening_migration
|
|
295
|
-
),
|
|
296
|
-
inventory_netsuite_inventory_transfer_out: r(
|
|
297
|
-
n.inventory_netsuite_inventory_transfer_out
|
|
298
|
-
),
|
|
299
|
-
inventory_portal_supplier_preparation_time: r(
|
|
300
|
-
n.inventory_portal_supplier_preparation_time
|
|
301
|
-
),
|
|
302
|
-
inventory_portal_delivery_order_write: r(
|
|
303
|
-
n.inventory_portal_delivery_order_write
|
|
304
|
-
),
|
|
305
|
-
inventory_pos_transfer_require_fulfillment: r(
|
|
306
|
-
n.inventory_pos_transfer_require_fulfillment
|
|
307
|
-
),
|
|
308
|
-
inventory_backdate_receive: r(n.inventory_backdate_receive),
|
|
309
|
-
inventory_purchase_order_custom_cost: r(
|
|
310
|
-
n.inventory_purchase_order_custom_cost
|
|
311
|
-
),
|
|
312
|
-
inventory_bulk_import: r(n.inventory_bulk_import),
|
|
313
|
-
inventory_portal_surcharge: r(n.inventory_portal_surcharge),
|
|
314
|
-
inventory_purchase_order_cost_edit: r(
|
|
315
|
-
n.inventory_purchase_order_cost_edit
|
|
316
|
-
),
|
|
317
|
-
inventory_purchase_order_price_adjustment: r(
|
|
318
|
-
n.inventory_purchase_order_price_adjustment
|
|
319
|
-
),
|
|
320
|
-
inventory_purchase_order_workflow_allow_to_mark_completed: r(
|
|
321
|
-
n.inventory_purchase_order_workflow_allow_to_mark_completed
|
|
322
|
-
),
|
|
323
|
-
inventory_recipe_v2: r(n.inventory_recipe_v2),
|
|
324
|
-
inventory_print_template: r(n.inventory_print_template),
|
|
325
|
-
inventory_purchase_order_email: r(n.inventory_purchase_order_email),
|
|
326
|
-
inventory_bulk_edit_recipes: r(n.inventory_bulk_edit_recipes),
|
|
327
|
-
inventory_receive_request_beta: r(
|
|
328
|
-
"inventory_receive_request_beta"
|
|
329
|
-
),
|
|
330
|
-
inventory_portal_production_item: r(
|
|
331
|
-
n.inventory_portal_production_item
|
|
332
|
-
),
|
|
333
|
-
report_portal_po_forecast_days_constraint: N(
|
|
334
|
-
"report_portal_po_forecast_days_constraint"
|
|
335
|
-
),
|
|
336
|
-
report_portal_po_forecast_days_default: V(
|
|
337
|
-
"report_portal_po_forecast_days_default",
|
|
338
|
-
7
|
|
339
|
-
)
|
|
340
|
-
};
|
|
341
|
-
}, "feature");
|
|
342
|
-
},
|
|
343
|
-
async awaitFeatureLoaded(a) {
|
|
344
|
-
return new Promise((t) => {
|
|
345
|
-
const o = () => {
|
|
346
|
-
e.value.isLoaded ? t(a()) : setTimeout(o, 100);
|
|
347
|
-
};
|
|
348
|
-
o();
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
});
|
|
352
|
-
function r(a, t) {
|
|
353
|
-
t = t === void 0 ? null : t;
|
|
354
|
-
const { getFlagValue: o } = p();
|
|
355
|
-
return o(a, (s) => s === "true") ?? t;
|
|
356
|
-
}
|
|
357
|
-
function N(a) {
|
|
358
|
-
const { getFlagValue: t } = p();
|
|
359
|
-
return t(a, (s) => s.trim() ? s.trim() : null) ?? null;
|
|
360
|
-
}
|
|
361
|
-
function V(a, t) {
|
|
362
|
-
const { getFlagValue: o } = p();
|
|
363
|
-
return o(a, (i) => {
|
|
364
|
-
const u = parseInt(i, 10);
|
|
365
|
-
return isNaN(u) ? null : u;
|
|
366
|
-
}) ?? t;
|
|
367
|
-
}
|
|
368
|
-
export {
|
|
369
|
-
n as InventoryFeatureFlags,
|
|
370
|
-
G as useFeatureStore
|
|
371
|
-
};
|