@feedmepos/mf-inventory-portal 1.3.14-dev.2 → 1.3.14
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-BQZQFNKG.js +411 -0
- package/dist/{ApprovalView-CfF2FqsE.js → ApprovalView-BVszC4Cw.js} +12 -12
- package/dist/{BindingsDialog-H-juP-az.js → BindingsDialog-B3L_3xdo.js} +13 -13
- package/dist/{BindingsPicker-ClruHF7p.js → BindingsPicker-A4togB2v.js} +2 -2
- package/dist/{BindingsTable-Bx9pbFOO.js → BindingsTable-DacoMdY6.js} +3 -3
- package/dist/{ClosingDraftView-DN97Tao5.js → ClosingDraftView-C9tvMgLl.js} +16 -16
- package/dist/{ClosingHistoryView-DsRYUqa2.js → ClosingHistoryView-CqqzqSqU.js} +5 -5
- package/dist/{ClosingTemplateView-f9zfsxCu.js → ClosingTemplateView-CLi0XE8S.js} +15 -15
- package/dist/{DeliveryOrderPrintPreview-BMK4kBCQ.js → DeliveryOrderPrintPreview-DEHEfd80.js} +11 -11
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bqj_Ygmo.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BDZVaj3l.js} +16 -16
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CK1ha_AY.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-xxS4P6uo.js} +2 -2
- package/dist/{FmMultiselectDialog-BazT9oUX.js → FmMultiselectDialog-CR2peMEL.js} +1 -1
- package/dist/{FmMultiselectDialog-_gUuhudi.js → FmMultiselectDialog-FGR8t9rz.js} +16 -16
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BBtAgdsA.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DgXOsVLe.js} +4 -4
- package/dist/{ImportView-jpkwuCXO.js → ImportView-CEI0QqGz.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DLJnF4do.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-cRgKjHY0.js} +1 -1
- package/dist/{IngredientGroupView-x3t1hyNn.js → IngredientGroupView-DEELNMpl.js} +6 -6
- package/dist/{IngredientsView-BzWTnlb4.js → IngredientsView-D3OcjZdT.js} +16 -16
- package/dist/{IntegrationExplorerView-Bca3owbx.js → IntegrationExplorerView-ByPpT3hC.js} +5 -5
- package/dist/{IntegrationView-Dh1c4Qyo.js → IntegrationView-BSqlJBp-.js} +81 -81
- package/dist/{InventoryBindingForm-B1sI1TGZ.js → InventoryBindingForm-SgmyJvCs.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-7NeE7Xos.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-GLipe2bO.js} +5 -5
- package/dist/{InventoryBindingSummary-R8zHPc52.js → InventoryBindingSummary-D6deGR6B.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMJVh7Nt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DGDL-t7m.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-ChC9sEIk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-ff1rPUJW.js} +7 -7
- package/dist/{PublishView-Bqp8Ww4J.js → PublishView-7TAa2QQB.js} +15 -15
- package/dist/{PurchaseOrderPrintPreview-D7TCn8U-.js → PurchaseOrderPrintPreview-DhcnInSW.js} +11 -11
- package/dist/ReceiveRequestView-Z3JYH3gf.js +36203 -0
- package/dist/{RecipeView-D8Mvgji9.js → RecipeView--ALwYD-O.js} +16 -16
- package/dist/{SettingsView-BJScLK9z.js → SettingsView-F_BWUxoq.js} +4 -4
- package/dist/StockView-BLrquJf2.js +2406 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DUKv_LV6.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxNgi5uv.js} +1 -1
- package/dist/{SupplierView-DdBBIV8W.js → SupplierView-DklOXwHD.js} +13 -13
- package/dist/{SurchargeView-DisBUPIs.js → SurchargeView-DcImorUr.js} +17 -17
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CZ3Q3BAf.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-xdLxGAOM.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CC7F5HVc.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bu4XKhII.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DMrRfwKD.js +3890 -0
- package/dist/{TransferTemplateView-7ICJMF9z.js → TransferTemplateView-DTdlSI2b.js} +18 -18
- package/dist/{UnitCostHistoryView-BMRDBQ58.js → UnitCostHistoryView-CQ_DJE-t.js} +243 -246
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-mNXHzLN3.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-QuejzcCL.js} +4 -4
- package/dist/{UnitView-uUUYOjYn.js → UnitView-DzcCdCGw.js} +8 -8
- package/dist/{WarehouseView-BfMf_iuj.js → WarehouseView-BYj9DD1N.js} +26 -26
- package/dist/{WastageTemplateView-BQYjJGZ-.js → WastageTemplateView--w6an2Ar.js} +15 -15
- package/dist/api/email.d.ts +54 -0
- package/dist/{app-B_zMegJc.js → app-CPlgHGkC.js} +22314 -23519
- package/dist/app.d.ts +14 -22
- package/dist/app.js +2 -2
- package/dist/{closing-template-9vhx5Ji1.js → closing-template-B9JOB9ah.js} +1 -1
- package/dist/components/row-action.enum.d.ts +2 -1
- package/dist/{date2-BMCS_Dsc.js → date2-Ci9tlLMJ.js} +1 -1
- package/dist/{dayjs.min-Dl26OaXo.js → dayjs.min-DTx2lmq6.js} +26 -26
- package/dist/{decimal-e6OK2jkR.js → decimal-iKhH_VJO.js} +2 -2
- package/dist/{defineDeepModel-BvLlwxnd.js → defineDeepModel-C25T8oyP.js} +1 -1
- package/dist/{duplicate-template-Cnhu8Rxw.js → duplicate-template-BptIBRQ3.js} +1 -1
- package/dist/{empty-placeholder-B0QU467o.js → empty-placeholder-wf6-BWE8.js} +1 -1
- package/dist/{export-CGvyGmeo.js → export-CKuVd5pP.js} +1 -1
- package/dist/{feature-Do41WWzx.js → feature-CXMSo4z7.js} +121 -116
- package/dist/{format-time-from-id-CqX_KaUG.js → format-time-from-id-Bk60g6lh.js} +1 -1
- package/dist/{format-unit-display-D8qWmRXP.js → format-unit-display-C4nf8hG8.js} +12 -12
- package/dist/{import-export.helper-85V8Ib5e.js → import-export.helper-BDzsQcYD.js} +6 -6
- package/dist/{index-C-CwnjUn.js → index-CUVlQagt.js} +3 -3
- package/dist/{index-CtUF9Nsv.js → index-DTszDSPO.js} +1 -1
- package/dist/{index-Cg3aLEhT.js → index-DiKOwY5C.js} +1 -1
- package/dist/{inventory-core-dart.default-B64FzAla.js → inventory-core-dart.default-Cn3sonot.js} +10 -10
- package/dist/{lodash-U9ycVPlv.js → lodash-DGOK6ZkA.js} +1 -1
- package/dist/{lz-string-0CgVsQoC.js → lz-string-QrWbdmw6.js} +21 -21
- package/dist/{netsuite-Du7-sXJt.js → netsuite-DglgyKcZ.js} +37 -37
- package/dist/{number-iJAzDfmj.js → number-Ut7u2ZEE.js} +11 -11
- package/dist/{predefined-templates-LlSrXOXm.js → predefined-templates-DZtFebPU.js} +1 -1
- package/dist/{purchase-order-template-DFuXb0rr.js → purchase-order-template-DhNVhXmD.js} +1 -1
- package/dist/{recalculationUtils-DWPnMW1G.js → recalculationUtils-CqJRd9B2.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{row-action.enum-Co_O4qD9.js → row-action.enum-DQ9bJ_uv.js} +7 -1
- package/dist/{rules-DefSKiUN.js → rules-BIm67nl_.js} +2 -2
- package/dist/{stock-BfF6peMd.js → stock-CzdMn9n8.js} +3 -3
- package/dist/{stock-Cx1BwdWs.js → stock-Dc4_U69J.js} +27 -28
- package/dist/stores/feature.d.ts +2 -0
- package/dist/{supplier-CU3iqdGr.js → supplier-De5G6CeF.js} +2 -2
- package/dist/{surcharge-D77J5opH.js → surcharge-CN5FtDZq.js} +8 -8
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B-jxV-79.js → use-ingredient-select-dialog-Wy4CtYcZ.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BdTd5qPl.js → use-inventory-binding-dialog-C1LCH0jV.js} +2 -2
- package/dist/{use-template-enabled-locations-vFvaCjlH.js → use-template-enabled-locations-BfZFcXZ_.js} +2 -2
- package/dist/views/receive-request/components/email-dialog/EmailDialog.vue.d.ts +20 -0
- package/dist/views/receive-request/components/email-dialog/EmailDialogProps.d.ts +13 -0
- package/dist/views/receive-request/composables/use-order-draft-permission.d.ts +5 -2
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -0
- package/dist/vue-i18n-CvVV4Xof.js +2365 -0
- package/dist/{xlsx-o7n1whCa.js → xlsx-lawW6Hwh.js} +570 -570
- package/dist/{xlsx.util-D6nPboPW.js → xlsx.util-DSCqPt8v.js} +1 -1
- package/package.json +2 -2
- package/dist/App-D1_jkD6L.js +0 -309
- package/dist/DefaultView-COVVxOrF.js +0 -31
- package/dist/ReceiveRequestView-oNBVAMYu.js +0 -2817
- package/dist/StockView-CRRdVCcD.js +0 -2439
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BLlg1Vka.js +0 -3837
- package/dist/components/HrmPermissionGuard.vue.d.ts +0 -54
- package/dist/composable/useHrmPermission.d.ts +0 -17
- package/dist/composable/useInventoryAccess.d.ts +0 -11
- package/dist/composable/useNavigationMenu.d.ts +0 -14
- package/dist/router/route-permission.d.ts +0 -10
- package/dist/useHrmPermission-CekUhyck.js +0 -16
- package/dist/useNavigationMenu-BiLWMIip.js +0 -162
- package/dist/views/DefaultView.vue.d.ts +0 -2
- package/dist/vue-i18n-C3_OsgSl.js +0 -2365
|
@@ -2,10 +2,10 @@ var _t = Object.defineProperty;
|
|
|
2
2
|
var ft = (l, c, h) => c in l ? _t(l, c, { enumerable: !0, configurable: !0, writable: !0, value: h }) : l[c] = h;
|
|
3
3
|
var ce = (l, c, h) => ft(l, typeof c != "symbol" ? c + "" : c, h);
|
|
4
4
|
import { useCoreStore as De } from "@feedmepos/mf-common";
|
|
5
|
-
import {
|
|
6
|
-
import { ref as he, readonly as
|
|
7
|
-
import "./inventory-core-dart.default-
|
|
8
|
-
var
|
|
5
|
+
import { V as ve, u as Ke, k as at, a as gt } from "./app-CPlgHGkC.js";
|
|
6
|
+
import { ref as he, readonly as Ve } from "vue";
|
|
7
|
+
import "./inventory-core-dart.default-Cn3sonot.js";
|
|
8
|
+
var Ge = { exports: {} };
|
|
9
9
|
(function(l, c) {
|
|
10
10
|
(function(h, f) {
|
|
11
11
|
f(c);
|
|
@@ -124,7 +124,7 @@ var Ve = { exports: {} };
|
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function F(r, t, e) {
|
|
128
128
|
for (var i, n = 0, a = t.length; n < a; n++) !i && n in t || (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
129
129
|
return r.concat(i || Array.prototype.slice.call(t));
|
|
130
130
|
}
|
|
@@ -160,7 +160,7 @@ var Ve = { exports: {} };
|
|
|
160
160
|
Object.keys(t || {}).includes(i) || e.push(i);
|
|
161
161
|
}), Object.keys(e).length ? e : null;
|
|
162
162
|
}
|
|
163
|
-
var g,
|
|
163
|
+
var g, S;
|
|
164
164
|
function w(r, t, e) {
|
|
165
165
|
var i = "shortString", n = !0;
|
|
166
166
|
typeof e == "number" && (i = "javaDouble", n = !1), r[i] = r[i] || {}, r[i][t] = n ? e + "" : e;
|
|
@@ -180,7 +180,7 @@ var Ve = { exports: {} };
|
|
|
180
180
|
(function(r) {
|
|
181
181
|
r.NONE = "NONE", r.DEFAULT_FLAGS = "DEFAULT_FLAGS", r.CACHE = "CACHE", r.SERVER = "SERVER";
|
|
182
182
|
})(g || (g = {}));
|
|
183
|
-
var _e,
|
|
183
|
+
var _e, k = null, ut = "FLAGSMITH_EVENT", le = ut, Je = "https://edge.api.flagsmith.com/api/v1/", qe = "flagsmith_value_", Be = "flagsmith_enabled_", Me = "flagsmith_trait_", ct = function() {
|
|
184
184
|
function r(t) {
|
|
185
185
|
var e = this;
|
|
186
186
|
this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
|
|
@@ -189,16 +189,16 @@ var Ve = { exports: {} };
|
|
|
189
189
|
var o = "".concat(e.getContext().identity), v = function(d) {
|
|
190
190
|
var p, u, y, O;
|
|
191
191
|
if (d && o === "".concat(e.getContext().identity)) {
|
|
192
|
-
var
|
|
192
|
+
var V = d.flags, A = d.traits, U = d.identifier;
|
|
193
193
|
e.isLoading = !1;
|
|
194
|
-
var
|
|
195
|
-
A = A || [], (
|
|
196
|
-
|
|
194
|
+
var P = {}, j = {};
|
|
195
|
+
A = A || [], (V = V || []).forEach(function(m) {
|
|
196
|
+
P[m.feature.name.toLowerCase().replace(/ /g, "_")] = { id: m.feature.id, enabled: m.enabled, value: m.feature_state_value };
|
|
197
197
|
}), A.forEach(function(m) {
|
|
198
|
-
|
|
198
|
+
j[m.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: m.transient, value: m.trait_value };
|
|
199
199
|
}), e.oldFlags = s({}, e.flags);
|
|
200
|
-
var
|
|
201
|
-
if ((U || Object.keys(
|
|
200
|
+
var G = E(e.oldFlags, P), ie = E((p = e.evaluationContext.identity) === null || p === void 0 ? void 0 : p.traits, j);
|
|
201
|
+
if ((U || Object.keys(j).length) && (e.evaluationContext.identity = s(s({}, e.evaluationContext.identity), { traits: j }), U && (e.evaluationContext.identity.identifier = U)), e.flags = P, e.updateStorage(), e._onChange(e.oldFlags, { isFromServer: !0, flagsChanged: G, traitsChanged: ie }, e._loadedState(null, g.SERVER)), e.datadogRum) try {
|
|
202
202
|
if (e.datadogRum.trackTraits) {
|
|
203
203
|
var re = {};
|
|
204
204
|
Object.keys(((u = e.evaluationContext.identity) === null || u === void 0 ? void 0 : u.traits) || {}).map(function(m) {
|
|
@@ -290,26 +290,26 @@ var Ve = { exports: {} };
|
|
|
290
290
|
var o, v = e;
|
|
291
291
|
v.evaluationContext;
|
|
292
292
|
var d = v.headers, p = { method: n || "GET", body: a, cache: "no-cache", headers: {} };
|
|
293
|
-
e.evaluationContext.environment && (p.headers["X-Environment-Key"] = e.evaluationContext.environment.apiKey), n && n !== "GET" && (p.headers["Content-Type"] = "application/json; charset=utf-8"), d && Object.assign(p.headers, d),
|
|
293
|
+
e.evaluationContext.environment && (p.headers["X-Environment-Key"] = e.evaluationContext.environment.apiKey), n && n !== "GET" && (p.headers["Content-Type"] = "application/json; charset=utf-8"), d && Object.assign(p.headers, d), S || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
|
|
294
294
|
var u = "".concat((o = e.evaluationContext.identity) === null || o === void 0 ? void 0 : o.identifier);
|
|
295
|
-
return
|
|
296
|
-
var O,
|
|
295
|
+
return S(i, p).then(function(y) {
|
|
296
|
+
var O, V, A = "".concat((O = e.evaluationContext.identity) === null || O === void 0 ? void 0 : O.identifier);
|
|
297
297
|
if (u === A) {
|
|
298
|
-
var U = (
|
|
298
|
+
var U = (V = y.headers) === null || V === void 0 ? void 0 : V.get("x-flagsmith-document-updated-at");
|
|
299
299
|
if (U) try {
|
|
300
|
-
var
|
|
301
|
-
if (isNaN(
|
|
302
|
-
e.timestamp =
|
|
303
|
-
} catch (
|
|
304
|
-
e.log(
|
|
300
|
+
var P = parseFloat(U);
|
|
301
|
+
if (isNaN(P)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
|
|
302
|
+
e.timestamp = P;
|
|
303
|
+
} catch (j) {
|
|
304
|
+
e.log(j, "Failed to parse x-flagsmith-document-updated-at", U);
|
|
305
305
|
}
|
|
306
|
-
return e.log("Fetch response: " + y.status + " " + (n || "GET") + 0 + i), y.text().then(function(
|
|
307
|
-
var
|
|
306
|
+
return e.log("Fetch response: " + y.status + " " + (n || "GET") + 0 + i), y.text().then(function(j) {
|
|
307
|
+
var G = j;
|
|
308
308
|
try {
|
|
309
|
-
|
|
309
|
+
G = JSON.parse(j);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
|
-
return !
|
|
312
|
+
return !G && y.status && (G = "API Response: ".concat(y.status)), y.status && y.status >= 200 && y.status < 300 ? G : Promise.reject(new Error(G));
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
315
|
e.log("Received response with identity mismatch, ignoring response. Requested: ".concat(u, ", Current: ").concat(A));
|
|
@@ -323,27 +323,27 @@ var Ve = { exports: {} };
|
|
|
323
323
|
}, this._onChange = function(i, n, a) {
|
|
324
324
|
var o, v;
|
|
325
325
|
e.setLoadingState(a), (o = e.onChange) === null || o === void 0 || o.call(e, i, n, e.loadingState), (v = e._trigger) === null || v === void 0 || v.call(e);
|
|
326
|
-
},
|
|
326
|
+
}, S = t.fetch ? t.fetch : typeof fetch < "u" ? fetch : ve === null || ve === void 0 ? void 0 : ve.fetch, this.canUseStorage = typeof window < "u" || !!t.browserlessStorage, this.log("Constructing flagsmith instance " + t), t.eventSource && (_e = t.eventSource), t.AsyncStorage && (k = t.AsyncStorage);
|
|
327
327
|
}
|
|
328
328
|
return r.prototype.init = function(t) {
|
|
329
329
|
var e, i, n;
|
|
330
330
|
return R(this, void 0, void 0, function() {
|
|
331
|
-
var a, o, v, d, p, u, y, O,
|
|
331
|
+
var a, o, v, d, p, u, y, O, V, A, U, P, j, G, ie, re, Z, T, m, ge, ae, Ze, Q, pe, Qe, et, ye, tt, me, oe, ee, nt, L = this;
|
|
332
332
|
return K(this, function(D) {
|
|
333
333
|
switch (D.label) {
|
|
334
334
|
case 0:
|
|
335
335
|
a = Y(t.evaluationContext || this.evaluationContext), D.label = 1;
|
|
336
336
|
case 1:
|
|
337
|
-
if (D.trys.push([1, 13, , 14]), o = t.environmentID, v = t.api, d = v === void 0 ? Je : v, p = t.headers, u = t.onChange, y = t.cacheFlags, O = t.datadogRum,
|
|
337
|
+
if (D.trys.push([1, 13, , 14]), o = t.environmentID, v = t.api, d = v === void 0 ? Je : v, p = t.headers, u = t.onChange, y = t.cacheFlags, O = t.datadogRum, V = t.onError, A = t.defaultFlags, U = t.fetch, P = t.preventFetch, j = t.enableLogs, G = t.enableDynatrace, ie = t.enableAnalytics, re = t.realtime, Z = t.eventSourceUrl, T = Z === void 0 ? "https://realtime.flagsmith.com/" : Z, m = t.AsyncStorage, ge = t.identity, ae = t.traits, Ze = t.state, Q = t.cacheOptions, pe = t.angularHttpClient, Qe = t._trigger, et = t._triggerLoadingState, a.environment = o ? { apiKey: o } : a.environment, !a.environment || !a.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
|
|
338
338
|
if (a.identity = ge || ae ? { identifier: ge, traits: ae ? Object.fromEntries(Object.entries(ae).map(function(N) {
|
|
339
339
|
return [N[0], { value: N[1] }];
|
|
340
340
|
})) : {} } : a.identity, this.evaluationContext = a, this.api = d, this.headers = p, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = u, ye = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Qe || this._trigger, this._triggerLoadingState = et || this._triggerLoadingState, this.onError = function(N) {
|
|
341
|
-
L.setLoadingState(s(s({}, L.loadingState), { isFetching: !1, isLoading: !1, error: N })),
|
|
342
|
-
}, this.enableLogs =
|
|
341
|
+
L.setLoadingState(s(s({}, L.loadingState), { isFetching: !1, isLoading: !1, error: N })), V == null || V(N);
|
|
342
|
+
}, this.enableLogs = j || !1, this.cacheOptions = Q ? { skipAPI: !!Q.skipAPI, ttl: Q.ttl || 0, storageKey: Q.storageKey, loadStale: !!Q.loadStale } : this.cacheOptions, !this.cacheOptions.ttl && this.cacheOptions.skipAPI && console.warn("Flagsmith: you have set a cache ttl of 0 and are skipping API calls, this means the API will not be hit unless you clear local storage."), U && (S = U), this.enableAnalytics = ie || !1, this.flags = Object.assign({}, A) || {}, this.datadogRum = O || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = k !== void 0 && !!y, le = "FLAGSMITH_EVENT_" + a.environment.apiKey, m && (k = m), re && typeof window < "u" && this.setupRealtime(T, a.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = s(s({}, this.loadingState), { isLoading: !1, source: g.DEFAULT_FLAGS })), this.setState(Ze), this.log("Initialising with properties", t, this), G && (typeof dtrum > "u" ? console.error("You have attempted to enable dynatrace but dtrum is undefined, please check you have the Dynatrace RUM JavaScript API installed.") : this.dtrum = dtrum), pe && (S = /* @__PURE__ */ function(N) {
|
|
343
343
|
return function(J, q) {
|
|
344
|
-
var z = q.headers,
|
|
344
|
+
var z = q.headers, x = q.method, te = q.body;
|
|
345
345
|
return new Promise(function(X) {
|
|
346
|
-
switch (
|
|
346
|
+
switch (x) {
|
|
347
347
|
case "GET":
|
|
348
348
|
return N.get(J, { headers: z }).subscribe(function(M) {
|
|
349
349
|
X({ ok: !0, text: function() {
|
|
@@ -360,14 +360,14 @@ var Ve = { exports: {} };
|
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
362
|
};
|
|
363
|
-
}(pe)),
|
|
363
|
+
}(pe)), k && this.canUseStorage && k.getItem(le).then(function(N) {
|
|
364
364
|
try {
|
|
365
365
|
L.evaluationEvent = JSON.parse(N) || {};
|
|
366
366
|
} catch {
|
|
367
367
|
L.evaluationEvent = {};
|
|
368
368
|
}
|
|
369
369
|
L.analyticsInterval = setInterval(L.analyticsFlags, L.ticks);
|
|
370
|
-
}), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval),
|
|
370
|
+
}), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), k && this.canUseStorage && k.getItem(le, function(N, J) {
|
|
371
371
|
if (J && L.evaluationContext.environment) {
|
|
372
372
|
var q = JSON.parse(J);
|
|
373
373
|
if (q[L.evaluationContext.environment.apiKey]) {
|
|
@@ -376,22 +376,22 @@ var Ve = { exports: {} };
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
})), !y) return [3, 9];
|
|
379
|
-
if (!
|
|
379
|
+
if (!k || !this.canUseStorage) return [3, 8];
|
|
380
380
|
tt = function(N, J) {
|
|
381
381
|
return R(L, void 0, void 0, function() {
|
|
382
|
-
var q, z,
|
|
382
|
+
var q, z, x, te, X, M, be, it, Se, Ce, xe, we, Ee, Oe, Te, Le, ke, Fe, Ie, Ae, Pe, je, Ne, Re, rt = this;
|
|
383
383
|
return K(this, function(H) {
|
|
384
384
|
switch (H.label) {
|
|
385
385
|
case 0:
|
|
386
386
|
if (!J) return [3, 7];
|
|
387
387
|
q = null, z = null, H.label = 1;
|
|
388
388
|
case 1:
|
|
389
|
-
return H.trys.push([1, 5, , 6]),
|
|
389
|
+
return H.trys.push([1, 5, , 6]), x = JSON.parse(J), te = !1, X = !1, x && x.api === this.api && ((Ce = (Se = x.evaluationContext) === null || Se === void 0 ? void 0 : Se.environment) === null || Ce === void 0 ? void 0 : Ce.apiKey) === ((xe = this.evaluationContext.environment) === null || xe === void 0 ? void 0 : xe.apiKey) && (M = !0, this.evaluationContext.identity && ((Ee = (we = x.evaluationContext) === null || we === void 0 ? void 0 : we.identity) === null || Ee === void 0 ? void 0 : Ee.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((Te = (Oe = x.evaluationContext) === null || Oe === void 0 ? void 0 : Oe.identity) === null || Te === void 0 ? void 0 : Te.identifier) + " to " + this.evaluationContext.identity.identifier), M = !1), this.cacheOptions.ttl && (!x.ts || (/* @__PURE__ */ new Date()).valueOf() - x.ts > this.cacheOptions.ttl) && (x.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + x.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - x.ts) + "ms"), M = !1) : x.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + x.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - x.ts) + "ms"), X = !0, M = !0)), M && (te = !0, z = E((Le = this.evaluationContext.identity) === null || Le === void 0 ? void 0 : Le.traits, (Fe = (ke = x.evaluationContext) === null || ke === void 0 ? void 0 : ke.identity) === null || Fe === void 0 ? void 0 : Fe.traits), q = E(this.flags, x.flags), this.setState(s(s({}, x), { evaluationContext: Y(s(s({}, x.evaluationContext), { identity: !((Ie = x.evaluationContext) === null || Ie === void 0) && Ie.identity ? s(s({}, (Ae = x.evaluationContext) === null || Ae === void 0 ? void 0 : Ae.identity), { traits: s(s({}, ((je = (Pe = x.evaluationContext) === null || Pe === void 0 ? void 0 : Pe.identity) === null || je === void 0 ? void 0 : je.traits) || {}), ae || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", x))), te ? (be = !P && (!this.cacheOptions.skipAPI || X), this._onChange(null, { isFromServer: !1, flagsChanged: q, traitsChanged: z }, this._loadedState(null, g.CACHE, be)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && te && !X && this.log("Skipping API, using cache"), be && this.getFlags().catch(function(ht) {
|
|
390
390
|
var Ue;
|
|
391
391
|
(Ue = rt.onError) === null || Ue === void 0 || Ue.call(rt, ht);
|
|
392
392
|
}), [3, 4]) : [3, 2];
|
|
393
393
|
case 2:
|
|
394
|
-
return
|
|
394
|
+
return P ? [3, 4] : [4, this.getFlags()];
|
|
395
395
|
case 3:
|
|
396
396
|
H.sent(), H.label = 4;
|
|
397
397
|
case 4:
|
|
@@ -401,7 +401,7 @@ var Ve = { exports: {} };
|
|
|
401
401
|
case 6:
|
|
402
402
|
return [3, 10];
|
|
403
403
|
case 7:
|
|
404
|
-
return
|
|
404
|
+
return P ? [3, 9] : [4, this.getFlags()];
|
|
405
405
|
case 8:
|
|
406
406
|
return H.sent(), [3, 10];
|
|
407
407
|
case 9:
|
|
@@ -418,9 +418,9 @@ var Ve = { exports: {} };
|
|
|
418
418
|
});
|
|
419
419
|
}, D.label = 2;
|
|
420
420
|
case 2:
|
|
421
|
-
return D.trys.push([2, 7, , 8]),
|
|
421
|
+
return D.trys.push([2, 7, , 8]), k.getItemSync ? (me = k.getItemSync(this.getStorageKey()), [3, 5]) : [3, 3];
|
|
422
422
|
case 3:
|
|
423
|
-
return [4,
|
|
423
|
+
return [4, k.getItem(this.getStorageKey())];
|
|
424
424
|
case 4:
|
|
425
425
|
me = D.sent(), D.label = 5;
|
|
426
426
|
case 5:
|
|
@@ -431,7 +431,7 @@ var Ve = { exports: {} };
|
|
|
431
431
|
case 8:
|
|
432
432
|
return [3, 12];
|
|
433
433
|
case 9:
|
|
434
|
-
return
|
|
434
|
+
return P ? [3, 11] : [4, this.getFlags()];
|
|
435
435
|
case 10:
|
|
436
436
|
return D.sent(), [3, 12];
|
|
437
437
|
case 11:
|
|
@@ -468,17 +468,17 @@ var Ve = { exports: {} };
|
|
|
468
468
|
return t === void 0 && (t = null), i === void 0 && (i = !1), { error: t, isFetching: i, isLoading: !1, source: e };
|
|
469
469
|
}, r.prototype.log = function() {
|
|
470
470
|
for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
|
|
471
|
-
this.enableLogs && console.log.apply(this,
|
|
471
|
+
this.enableLogs && console.log.apply(this, F(["FLAGSMITH:", (/* @__PURE__ */ new Date()).valueOf() - (this.timer || 0), "ms"], t));
|
|
472
472
|
}, r.prototype.updateStorage = function() {
|
|
473
473
|
if (this.cacheFlags) {
|
|
474
474
|
this.ts = (/* @__PURE__ */ new Date()).valueOf();
|
|
475
475
|
var t = JSON.stringify(this.getState());
|
|
476
|
-
this.log("Setting storage", t),
|
|
476
|
+
this.log("Setting storage", t), k.setItem(this.getStorageKey(), t);
|
|
477
477
|
}
|
|
478
478
|
}, r.prototype.updateEventStorage = function() {
|
|
479
479
|
if (this.enableAnalytics) {
|
|
480
480
|
var t = JSON.stringify(this.getState().evaluationEvent);
|
|
481
|
-
|
|
481
|
+
k.setItem(le, t).catch(function(e) {
|
|
482
482
|
return console.error("Flagsmith: Error setting item in async storage", e);
|
|
483
483
|
});
|
|
484
484
|
}
|
|
@@ -655,8 +655,8 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
655
655
|
return ze({ AsyncStorage: f, fetch: We, eventSource: Xe });
|
|
656
656
|
}, h.default = Ye, Object.defineProperty(h, "__esModule", { value: !0 });
|
|
657
657
|
});
|
|
658
|
-
})(
|
|
659
|
-
var pt =
|
|
658
|
+
})(Ge, Ge.exports);
|
|
659
|
+
var pt = Ge.exports, yt = {
|
|
660
660
|
NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first.",
|
|
661
661
|
INVALID_CONFIG: "Invalid Flagsmith configuration",
|
|
662
662
|
FETCH_FAILED: "Failed to fetch Flagsmith configuration",
|
|
@@ -751,13 +751,13 @@ var pt = Ve.exports, yt = {
|
|
|
751
751
|
const R = this.userContext;
|
|
752
752
|
try {
|
|
753
753
|
return await this.setUser(c), this.getFlagValue(h, s) ?? f;
|
|
754
|
-
} catch (
|
|
755
|
-
return console.error(`Error getting user flag value for ${h}:`,
|
|
754
|
+
} catch (F) {
|
|
755
|
+
return console.error(`Error getting user flag value for ${h}:`, F), f;
|
|
756
756
|
} finally {
|
|
757
757
|
try {
|
|
758
758
|
await ((K = this.flagsmithClient) == null ? void 0 : K.logout()), this.userContext = null, R && await this.setUser(R.identifier);
|
|
759
|
-
} catch (
|
|
760
|
-
console.error("Error during cleanup:",
|
|
759
|
+
} catch (F) {
|
|
760
|
+
console.error("Error during cleanup:", F);
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
}
|
|
@@ -766,13 +766,13 @@ var pt = Ve.exports, yt = {
|
|
|
766
766
|
}
|
|
767
767
|
}, ce(B, "instance"), B), bt = mt.getInstance(), se = he(!1), de = he([]), ne = he(null);
|
|
768
768
|
function St(l = bt) {
|
|
769
|
-
const c = () => se.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), h = async (g,
|
|
769
|
+
const c = () => se.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), h = async (g, S = []) => {
|
|
770
770
|
if (se.value) {
|
|
771
771
|
console.warn("FeatureFlag is already initialized.");
|
|
772
772
|
return;
|
|
773
773
|
}
|
|
774
774
|
try {
|
|
775
|
-
await l.init(g,
|
|
775
|
+
await l.init(g, S), de.value = await l.getFlags(), se.value = !0, ne.value = null;
|
|
776
776
|
} catch (w) {
|
|
777
777
|
console.error("Failed to initialize feature flags:", w), ne.value = w;
|
|
778
778
|
}
|
|
@@ -780,31 +780,31 @@ function St(l = bt) {
|
|
|
780
780
|
if (c())
|
|
781
781
|
try {
|
|
782
782
|
await l.setUser(g), de.value = await l.getFlags(), ne.value = null;
|
|
783
|
-
} catch (
|
|
784
|
-
console.error("Failed to set user:",
|
|
783
|
+
} catch (S) {
|
|
784
|
+
console.error("Failed to set user:", S), ne.value = S;
|
|
785
785
|
}
|
|
786
|
-
}, s = async (g) => f(`${ot}-${g}`), R = (g,
|
|
786
|
+
}, s = async (g) => f(`${ot}-${g}`), R = (g, S, w = null) => {
|
|
787
787
|
if (!c()) return w;
|
|
788
788
|
try {
|
|
789
|
-
return l.getFlagValue(g,
|
|
789
|
+
return l.getFlagValue(g, S) ?? w;
|
|
790
790
|
} catch (I) {
|
|
791
791
|
return console.error(`Error getting flag value for ${g}:`, I), w;
|
|
792
792
|
}
|
|
793
|
-
}, K = (g,
|
|
794
|
-
if (!c()) return
|
|
793
|
+
}, K = (g, S) => {
|
|
794
|
+
if (!c()) return S ?? null;
|
|
795
795
|
try {
|
|
796
|
-
return l.getFlag(g) ??
|
|
796
|
+
return l.getFlag(g) ?? S ?? null;
|
|
797
797
|
} catch (w) {
|
|
798
|
-
return console.error(`Error getting flag for ${g}:`, w),
|
|
798
|
+
return console.error(`Error getting flag for ${g}:`, w), S ?? null;
|
|
799
799
|
}
|
|
800
|
-
},
|
|
800
|
+
}, F = async (g, S, w = null, I) => {
|
|
801
801
|
if (!c()) return w;
|
|
802
802
|
try {
|
|
803
|
-
return await l.getUserFlagValue(g,
|
|
803
|
+
return await l.getUserFlagValue(g, S, w, I);
|
|
804
804
|
} catch ($) {
|
|
805
|
-
return console.error(`Error getting user flag value for ${
|
|
805
|
+
return console.error(`Error getting user flag value for ${S}:`, $), w;
|
|
806
806
|
}
|
|
807
|
-
}, W = async (g,
|
|
807
|
+
}, W = async (g, S, w = null, I) => F(`${ot}-${g}`, S, w, I), E = () => {
|
|
808
808
|
try {
|
|
809
809
|
l.reset();
|
|
810
810
|
} catch (g) {
|
|
@@ -814,20 +814,20 @@ function St(l = bt) {
|
|
|
814
814
|
}
|
|
815
815
|
};
|
|
816
816
|
return {
|
|
817
|
-
flags:
|
|
818
|
-
isInitialized:
|
|
819
|
-
error:
|
|
817
|
+
flags: Ve(de),
|
|
818
|
+
isInitialized: Ve(se),
|
|
819
|
+
error: Ve(ne),
|
|
820
820
|
init: h,
|
|
821
821
|
setUser: f,
|
|
822
822
|
setBusiness: s,
|
|
823
823
|
getFlagValue: R,
|
|
824
824
|
getFlag: K,
|
|
825
|
-
getUserFlagValue:
|
|
825
|
+
getUserFlagValue: F,
|
|
826
826
|
getBusinessFlagValue: W,
|
|
827
827
|
reset: E
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
var st = () => St(),
|
|
830
|
+
var st = () => St(), b = /* @__PURE__ */ ((l) => (l.inventory_portal_must_use_transfer_template = "inventory_portal_must_use_transfer_template", l.inventory_portal_use_iframe = "inventory_portal_use_iframe", l.inventory_pos_adjust_v1 = "inventory_pos_adjust_v1", l.inventory_pos_adjust_v2_wastage = "inventory_pos_adjust_v2_wastage", l.inventory_pos_closing_recalculation = "inventory_pos_closing_recalculation", l.inventory_pos_closing_v1 = "inventory_pos_closing_v1", l.inventory_pos_closing_v2 = "inventory_pos_closing_v2", l.inventory_pos_convert_v1 = "inventory_pos_convert_v1", l.inventory_pos_costing = "inventory_pos_costing", l.inventory_pos_stock_return = "inventory_pos_stock_return", l.inventory_pos_transfer_require_fulfillment = "inventory_pos_transfer_require_fulfillment", l.inventory_purchase_order_approval = "inventory_purchase_order_approval", l.inventory_portal_xilnex_transfer_note = "inventory_portal_xilnex_transfer_note", l.inventory_portal_custom_attribute = "inventory_portal_custom_attribute", l.inventory_portal_purchase_order_v2 = "inventory_portal_purchase_order_v2", l.inventory_portal_accept_require_fulfillment = "inventory_portal_accept_require_fulfillment", l.inventory_portal_po_operate_v2 = "inventory_portal_po_operate_v2", l.inventory_pos_allow_receive_order = "inventory_pos_allow_receive_order", l.inventory_xilnex_opening_migration = "inventory_xilnex_opening_migration", l.inventory_ingredient_group = "inventory_ingredient_group", l.inventory_purchase_order_backdate = "inventory_purchase_order_backdate", l.inventory_synergy_opening_migration = "inventory_synergy_opening_migration", l.inventory_netsuite_inventory_transfer_out = "inventory_netsuite_inventory_transfer_out", l.inventory_portal_supplier_preparation_time = "inventory_portal_supplier_preparation_time", l.inventory_backdate_receive = "inventory_backdate_receive", l.inventory_portal_delivery_order_write = "inventory_portal_delivery_order_write", l.inventory_purchase_order_custom_cost = "inventory_purchase_order_custom_cost", l.inventory_bulk_import = "inventory_bulk_import", l.inventory_portal_surcharge = "inventory_portal_surcharge", l.inventory_purchase_order_cost_edit = "inventory_purchase_order_cost_edit", l.inventory_purchase_order_workflow_allow_to_mark_completed = "inventory_purchase_order_workflow_allow_to_mark_completed", l.inventory_recipe_v2 = "inventory_recipe_v2", l.inventory_print_template = "inventory_print_template", l.inventory_purchase_order_email = "inventory_purchase_order_email", l))(b || {});
|
|
831
831
|
const Ct = /* @__PURE__ */ new Set([
|
|
832
832
|
// vivo pizza prod
|
|
833
833
|
"business_6687e91fa7240b001ba3f4c2",
|
|
@@ -871,10 +871,11 @@ function lt() {
|
|
|
871
871
|
inventory_purchase_order_cost_edit: !1,
|
|
872
872
|
inventory_purchase_order_workflow_allow_to_mark_completed: !1,
|
|
873
873
|
inventory_recipe_v2: !1,
|
|
874
|
-
inventory_print_template: !1
|
|
874
|
+
inventory_print_template: !1,
|
|
875
|
+
inventory_purchase_order_email: !1
|
|
875
876
|
};
|
|
876
877
|
}
|
|
877
|
-
const _ = he(lt()),
|
|
878
|
+
const _ = he(lt()), kt = () => ({
|
|
878
879
|
get businessDbName() {
|
|
879
880
|
var h;
|
|
880
881
|
return `business_${((h = De().currentBusiness.value) == null ? void 0 : h._id) ?? ""}`;
|
|
@@ -985,6 +986,9 @@ const _ = he(lt()), Ft = () => ({
|
|
|
985
986
|
get enablePrintTemplate() {
|
|
986
987
|
return _.value.inventory_print_template;
|
|
987
988
|
},
|
|
989
|
+
get enablePurchaseOrderEmail() {
|
|
990
|
+
return _.value.inventory_purchase_order_email;
|
|
991
|
+
},
|
|
988
992
|
async init() {
|
|
989
993
|
const l = De(), { init: c, setBusiness: h } = st(), f = gt(), s = l.namespace.value === "prod";
|
|
990
994
|
await c({
|
|
@@ -998,65 +1002,66 @@ const _ = he(lt()), Ft = () => ({
|
|
|
998
1002
|
_.value = lt();
|
|
999
1003
|
return;
|
|
1000
1004
|
}
|
|
1001
|
-
const
|
|
1002
|
-
await h(
|
|
1003
|
-
const W = `business_${
|
|
1005
|
+
const F = ((I = l.currentBusiness.value) == null ? void 0 : I._id) ?? "";
|
|
1006
|
+
await h(F);
|
|
1007
|
+
const W = `business_${F}`, E = K.type === at.enum.warehouse, g = (
|
|
1004
1008
|
// if menu v4, must manual receive && must use outlet app
|
|
1005
1009
|
(($ = l.currentBusiness.value) == null ? void 0 : $.menuVersion) === "v4" && // more guard for businesses using menu v4, only those listed for manual receive will be included
|
|
1006
1010
|
// TODO: may be removed to use menu version only
|
|
1007
1011
|
Ct.has(this.businessDbName)
|
|
1008
|
-
),
|
|
1012
|
+
), S = xt.has(W) || C(b.inventory_portal_must_use_transfer_template), w = C(b.inventory_purchase_order_backdate) && (this.isWarehouse || f.state.closing !== null);
|
|
1009
1013
|
_.value = {
|
|
1010
1014
|
isLoaded: !0,
|
|
1011
1015
|
enableTotalCost: ((Y = l.currentBusiness.value) == null ? void 0 : Y.menuVersion) === "v4",
|
|
1012
1016
|
enableBackdatePo: w,
|
|
1013
1017
|
autoReceiveWarehouse: E && !g,
|
|
1014
1018
|
manualReceive: g,
|
|
1015
|
-
enablePoTemplate:
|
|
1016
|
-
enableClosingTemplate:
|
|
1017
|
-
enableWastageTemplate:
|
|
1018
|
-
enableIngredientGroup:
|
|
1019
|
-
mustUsePoTemplate:
|
|
1020
|
-
businessSupplierOnly:
|
|
1021
|
-
enableXilnexTransferNote:
|
|
1022
|
-
enableCustomAttribute:
|
|
1023
|
-
usePurchaseOrderV2:
|
|
1024
|
-
acceptRequireFulfillment:
|
|
1025
|
-
|
|
1019
|
+
enablePoTemplate: S,
|
|
1020
|
+
enableClosingTemplate: C(b.inventory_pos_closing_v2),
|
|
1021
|
+
enableWastageTemplate: C(b.inventory_pos_adjust_v2_wastage),
|
|
1022
|
+
enableIngredientGroup: C(b.inventory_ingredient_group),
|
|
1023
|
+
mustUsePoTemplate: S,
|
|
1024
|
+
businessSupplierOnly: S,
|
|
1025
|
+
enableXilnexTransferNote: C(b.inventory_portal_xilnex_transfer_note),
|
|
1026
|
+
enableCustomAttribute: C(b.inventory_portal_custom_attribute),
|
|
1027
|
+
usePurchaseOrderV2: C(b.inventory_portal_purchase_order_v2),
|
|
1028
|
+
acceptRequireFulfillment: C(
|
|
1029
|
+
b.inventory_portal_accept_require_fulfillment
|
|
1026
1030
|
),
|
|
1027
|
-
useOperatePurchaseOrderV2:
|
|
1028
|
-
inventory_xilnex_opening_migration:
|
|
1029
|
-
|
|
1031
|
+
useOperatePurchaseOrderV2: C(b.inventory_portal_po_operate_v2),
|
|
1032
|
+
inventory_xilnex_opening_migration: C(
|
|
1033
|
+
b.inventory_xilnex_opening_migration
|
|
1030
1034
|
),
|
|
1031
|
-
inventory_synergy_opening_migration:
|
|
1032
|
-
|
|
1035
|
+
inventory_synergy_opening_migration: C(
|
|
1036
|
+
b.inventory_synergy_opening_migration
|
|
1033
1037
|
),
|
|
1034
|
-
inventory_netsuite_inventory_transfer_out:
|
|
1035
|
-
|
|
1038
|
+
inventory_netsuite_inventory_transfer_out: C(
|
|
1039
|
+
b.inventory_netsuite_inventory_transfer_out
|
|
1036
1040
|
),
|
|
1037
|
-
inventory_portal_supplier_preparation_time:
|
|
1038
|
-
|
|
1041
|
+
inventory_portal_supplier_preparation_time: C(
|
|
1042
|
+
b.inventory_portal_supplier_preparation_time
|
|
1039
1043
|
),
|
|
1040
|
-
inventory_portal_delivery_order_write:
|
|
1041
|
-
|
|
1044
|
+
inventory_portal_delivery_order_write: C(
|
|
1045
|
+
b.inventory_portal_delivery_order_write
|
|
1042
1046
|
),
|
|
1043
|
-
inventory_pos_transfer_require_fulfillment:
|
|
1044
|
-
|
|
1047
|
+
inventory_pos_transfer_require_fulfillment: C(
|
|
1048
|
+
b.inventory_pos_transfer_require_fulfillment
|
|
1045
1049
|
),
|
|
1046
|
-
inventory_backdate_receive:
|
|
1047
|
-
inventory_purchase_order_custom_cost:
|
|
1048
|
-
|
|
1050
|
+
inventory_backdate_receive: C(b.inventory_backdate_receive),
|
|
1051
|
+
inventory_purchase_order_custom_cost: C(
|
|
1052
|
+
b.inventory_purchase_order_custom_cost
|
|
1049
1053
|
),
|
|
1050
|
-
inventory_bulk_import:
|
|
1051
|
-
inventory_portal_surcharge:
|
|
1052
|
-
inventory_purchase_order_cost_edit:
|
|
1053
|
-
|
|
1054
|
+
inventory_bulk_import: C(b.inventory_bulk_import),
|
|
1055
|
+
inventory_portal_surcharge: C(b.inventory_portal_surcharge),
|
|
1056
|
+
inventory_purchase_order_cost_edit: C(
|
|
1057
|
+
b.inventory_purchase_order_cost_edit
|
|
1054
1058
|
),
|
|
1055
|
-
inventory_purchase_order_workflow_allow_to_mark_completed:
|
|
1056
|
-
|
|
1059
|
+
inventory_purchase_order_workflow_allow_to_mark_completed: C(
|
|
1060
|
+
b.inventory_purchase_order_workflow_allow_to_mark_completed
|
|
1057
1061
|
),
|
|
1058
|
-
inventory_recipe_v2:
|
|
1059
|
-
inventory_print_template:
|
|
1062
|
+
inventory_recipe_v2: C(b.inventory_recipe_v2),
|
|
1063
|
+
inventory_print_template: C(b.inventory_print_template),
|
|
1064
|
+
inventory_purchase_order_email: C(b.inventory_purchase_order_email)
|
|
1060
1065
|
};
|
|
1061
1066
|
}, "feature");
|
|
1062
1067
|
},
|
|
@@ -1069,13 +1074,13 @@ const _ = he(lt()), Ft = () => ({
|
|
|
1069
1074
|
});
|
|
1070
1075
|
}
|
|
1071
1076
|
});
|
|
1072
|
-
function
|
|
1077
|
+
function C(l, c) {
|
|
1073
1078
|
c = c === void 0 ? null : c;
|
|
1074
1079
|
const { getFlagValue: h } = st();
|
|
1075
1080
|
return h(l, (f) => f === "true") ?? c;
|
|
1076
1081
|
}
|
|
1077
1082
|
export {
|
|
1078
|
-
|
|
1083
|
+
b as I,
|
|
1079
1084
|
st as a,
|
|
1080
|
-
|
|
1085
|
+
kt as u
|
|
1081
1086
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { components as X, useDialogChild as Ae, useSnackbar as ye, useDialog as De, FmButtonVariant as j } from "@feedmepos/ui-library";
|
|
2
2
|
import { defineStore as he } from "pinia";
|
|
3
3
|
import { F as le } from "./form-mode.enum-BKiNVH6A.js";
|
|
4
|
-
import { u as ve } from "./purchase-order-template-
|
|
4
|
+
import { u as ve } from "./purchase-order-template-DhNVhXmD.js";
|
|
5
5
|
import { ref as E, h as K, defineComponent as te, resolveComponent as U, openBlock as _, createElementBlock as k, createElementVNode as C, normalizeClass as V, createTextVNode as Ne, toDisplayString as N, unref as O, createCommentVNode as q, createVNode as P, withCtx as ee, Fragment as L, renderList as W, onMounted as Re, computed as me, watch as Fe, createSlots as Pe, createBlock as z } from "vue";
|
|
6
|
-
import { a as H, c as re,
|
|
6
|
+
import { a as H, c as re, t as A, u as Z, n as Me, k as ce, v as Le, R as ue } from "./app-CPlgHGkC.js";
|
|
7
7
|
import { useRouter as Be } from "vue-router";
|
|
8
|
-
import { a as Qe } from "./FmMultiselectDialog-
|
|
9
|
-
import { D as Y, R as D } from "./row-action.enum-
|
|
8
|
+
import { a as Qe } from "./FmMultiselectDialog-FGR8t9rz.js";
|
|
9
|
+
import { D as Y, R as D } from "./row-action.enum-DQ9bJ_uv.js";
|
|
10
10
|
import { c as Ue } from "./component-kqxARxvM.js";
|
|
11
|
-
import { f as Ve } from "./format-time-from-id-
|
|
11
|
+
import { f as Ve } from "./format-time-from-id-Bk60g6lh.js";
|
|
12
12
|
import { useI18n as ne, useCoreStore as ge } from "@feedmepos/mf-common";
|
|
13
|
-
import { t as B, a as be, d as xe, s as Te, r as qe } from "./xlsx.util-
|
|
13
|
+
import { t as B, a as be, d as xe, s as Te, r as qe } from "./xlsx.util-DSCqPt8v.js";
|
|
14
14
|
import { F as He } from "./FmDroppableField-J0xUsOTV.js";
|
|
15
|
-
import { c as je, a as Q, t as G, g as J } from "./number-
|
|
16
|
-
import { f as ze } from "./date2-
|
|
17
|
-
import { u as oe } from "./supplier-
|
|
18
|
-
import { a as Ye, B as Ke } from "./rules-
|
|
19
|
-
import { u as ae } from "./netsuite-
|
|
20
|
-
import { u as We } from "./duplicate-template-
|
|
15
|
+
import { c as je, a as Q, t as G, g as J } from "./number-Ut7u2ZEE.js";
|
|
16
|
+
import { f as ze } from "./date2-Ci9tlLMJ.js";
|
|
17
|
+
import { u as oe } from "./supplier-De5G6CeF.js";
|
|
18
|
+
import { a as Ye, B as Ke } from "./rules-BIm67nl_.js";
|
|
19
|
+
import { u as ae } from "./netsuite-DglgyKcZ.js";
|
|
20
|
+
import { u as We } from "./duplicate-template-BptIBRQ3.js";
|
|
21
21
|
function Se(t) {
|
|
22
22
|
const e = H(), a = t.sku, u = e.skuById[a._id];
|
|
23
23
|
if (u.unit._id !== a.unit._id) return !0;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as w, t as H, f as T } from "./number-
|
|
2
|
-
import { u as P } from "./feature-
|
|
1
|
+
import { a as w, t as H, f as T } from "./number-Ut7u2ZEE.js";
|
|
2
|
+
import { u as P } from "./feature-CXMSo4z7.js";
|
|
3
3
|
import { useCoreStore as g } from "@feedmepos/mf-common";
|
|
4
|
-
import { a as y,
|
|
5
|
-
import { b as N, d as $, s as I } from "./xlsx.util-
|
|
6
|
-
import { f as _ } from "./date2-
|
|
7
|
-
import { I as O } from "./rules-
|
|
4
|
+
import { a as y, d as k, n as j, e as S } from "./app-CPlgHGkC.js";
|
|
5
|
+
import { b as N, d as $, s as I } from "./xlsx.util-DSCqPt8v.js";
|
|
6
|
+
import { f as _ } from "./date2-Ci9tlLMJ.js";
|
|
7
|
+
import { I as O } from "./rules-BIm67nl_.js";
|
|
8
8
|
function R() {
|
|
9
9
|
return {
|
|
10
10
|
low: 6,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ref as v, computed as c } from "vue";
|
|
2
|
-
import { u as p } from "./netsuite-
|
|
3
|
-
import { u as g,
|
|
2
|
+
import { u as p } from "./netsuite-DglgyKcZ.js";
|
|
3
|
+
import { u as g, C as h, a as E, H as b } from "./app-CPlgHGkC.js";
|
|
4
4
|
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as m } from "./feature-
|
|
5
|
+
import { u as m } from "./feature-CXMSo4z7.js";
|
|
6
6
|
function C() {
|
|
7
7
|
return {
|
|
8
8
|
setting: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as x, am as V, an as q, ao as Ne, ad as cl, V as sr, ap as Lt, aq as fl, ar as $l } from "./app-CPlgHGkC.js";
|
|
2
2
|
function vl(t, e) {
|
|
3
3
|
for (var r = 0; r < e.length; r++) {
|
|
4
4
|
const n = e[r];
|