@feedmepos/mf-inventory-portal 1.6.1-dev.0 → 1.6.1-dev.2
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-CL5dPCEj.js → App-tsLr4IOP.js} +5 -5
- package/dist/{ApprovalView-DKJibNlK.js → ApprovalView-CQjXRw8C.js} +24 -23
- package/dist/{BindingsDialog-DLJXu8Dw.js → BindingsDialog-CxDEdC6C.js} +2 -2
- package/dist/{BindingsPicker-CW6Tk9JI.js → BindingsPicker-BkAb19vW.js} +2 -2
- package/dist/{BindingsTable-3JJEAQz3.js → BindingsTable-1wVrUeMy.js} +3 -3
- package/dist/BulkReceiveRequestView-CcMDC8AO.js +2000 -0
- package/dist/{ClosingDraftView-DVoWnPTQ.js → ClosingDraftView-B80djffM.js} +14 -14
- package/dist/{ClosingHistoryView-qWjIbBsX.js → ClosingHistoryView-DHvyhey_.js} +247 -247
- package/dist/{ClosingTemplateView-C3Hf510z.js → ClosingTemplateView-DqX2g8PI.js} +14 -14
- package/dist/{DefaultView-wBhT3ag9.js → DefaultView-oPI1wm7e.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-VnG9wrNu.js → DeliveryOrderPrintPreview-D59Lf8S5.js} +11 -11
- package/dist/{ReceiveRequestView-DIPZCXxV.js → EmailDialog.vue_vue_type_script_setup_true_lang-BVhjsBP3.js} +12571 -12873
- package/dist/FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CLTI25iw.js +61 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C4pvSYN-.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-RpCYckxf.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BqJ3SnfZ.js +237 -0
- package/dist/{FmMultiselectDialog-C7P1UET0.js → FmMultiselectDialog-BZlf6oZl.js} +50 -44
- package/dist/{FmMultiselectDialog-Dru64kWF.js → FmMultiselectDialog-DMQjKOrJ.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BklBxBGT.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DvQvV6jN.js} +5 -5
- package/dist/{ImportView-C9w-sF5E.js → ImportView-BWAllFBa.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BuphGYe2.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CYLpzpdL.js} +1 -1
- package/dist/{IngredientGroupView-BZqXPr_n.js → IngredientGroupView-B_qUY9ik.js} +5 -5
- package/dist/{IngredientsView-DgTPgkN9.js → IngredientsView-DHo7Ywtt.js} +15 -15
- package/dist/{IntegrationExplorerView-B8U3LTtj.js → IntegrationExplorerView-BiYdzcS3.js} +5 -5
- package/dist/{IntegrationView-QyHxizvF.js → IntegrationView-e0R16LLC.js} +13 -13
- package/dist/{InventoryBindingForm-NRwFwJt5.js → InventoryBindingForm-C6BZhtqn.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-C-If3KBe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-7FoOHhX8.js} +5 -5
- package/dist/{InventoryBindingSummary-DqI3M6jQ.js → InventoryBindingSummary-C5AQnnCs.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Xt_1oU-z.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CTWexpNg.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DFYTlv_K.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dzr8FeSh.js} +1 -1
- package/dist/{PublishView-2ytn8EUo.js → PublishView-C0ErXWjz.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-Bqim_q38.js → PurchaseOrderPrintPreview-BifBn6Fo.js} +9 -9
- package/dist/ReceiveRequestView-5w1OX2de.js +345 -0
- package/dist/{RecipeView-Bs326Ew3.js → RecipeView-I_FnrtHB.js} +17 -17
- package/dist/{SettingsView-frX_dI_K.js → SettingsView-pHCzYXZr.js} +4 -4
- package/dist/{StockView-Us8Wx8y_.js → StockView-BO-LR1WR.js} +28 -27
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Du8BI_cZ.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dz9VvX-B.js} +1 -1
- package/dist/{SupplierView-8dnHAbK3.js → SupplierView-Bn-ul1j8.js} +12 -12
- package/dist/{SurchargeView-CfqjYiBs.js → SurchargeView-Da-H4FzH.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-_03vSZ4W.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Do-wa8bS.js} +6 -5
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CAb7UWFP.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DcBA8hzp.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-B58A7dWI.js → TransferDetails.vue_vue_type_script_setup_true_lang-F7bFaIip.js} +1440 -1433
- package/dist/{TransferTemplateView-CI84cmV5.js → TransferTemplateView-IncI48M6.js} +20 -20
- package/dist/{UnitCostHistoryView-DXolsbDT.js → UnitCostHistoryView-0mbMN39f.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-Bpoawj7B.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DM0t-SJD.js} +4 -4
- package/dist/{UnitView-DT3fcagF.js → UnitView-mq5WIx8v.js} +7 -7
- package/dist/WarehouseView-CrD6agyt.js +1079 -0
- package/dist/{WastageTemplateView-Bc5CZJ58.js → WastageTemplateView-MrS6QsDh.js} +14 -14
- package/dist/api/purchase-order.d.ts +2 -1
- package/dist/api/supplier.d.ts +1 -0
- package/dist/{app-DpMCzQql.js → app-DV7aQ_cQ.js} +1363 -999
- package/dist/app.d.ts +354 -2
- package/dist/app.js +1 -1
- package/dist/{closing-template-CaFX19g1.js → closing-template-DJ_1EoSh.js} +1 -1
- package/dist/components/FmCoordinateInputProps.d.ts +1 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +8 -4
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/MultiLocationSelector.vue.d.ts +202 -0
- package/dist/components/map/coordinates.d.ts +13 -0
- package/dist/{date2-DBsUy1HH.js → date2-M311L05t.js} +1 -1
- package/dist/{dayjs.min-BVKjPmJE.js → dayjs.min-9zk0IgeS.js} +12 -12
- package/dist/{decimal-DKl2dUd0.js → decimal-iv0YYQk_.js} +2 -2
- package/dist/{defineDeepModel-YeHxg9wN.js → defineDeepModel-CgMeJpz5.js} +1 -1
- package/dist/{duplicate-template-Dyx4X380.js → duplicate-template-CGWTaWeS.js} +1 -1
- package/dist/{feature-ltFu24H8.js → feature-CKH-cZsq.js} +70 -65
- package/dist/{format-time-from-id-D3lPFiqA.js → format-time-from-id-DaxR-jQl.js} +1 -1
- package/dist/{format-unit-display-CD8C9YZc.js → format-unit-display-C4vI4fRV.js} +12 -12
- package/dist/{googlemap-BGi_aKUA.js → googlemap-D9vA7GsS.js} +48 -35
- package/dist/{import-export.helper-BJ5Lz4Gg.js → import-export.helper-zsEeF3Qb.js} +6 -6
- package/dist/{index-TQKBiFuU.js → index-CBQF1IDr.js} +3 -3
- package/dist/{index-JOemzj27.js → index-Cu1y898s.js} +1 -1
- package/dist/{index-B8xTUvTH.js → index-DZ-7c-AR.js} +1 -1
- package/dist/{inventory-core-dart.default-Xz0fuxVn.js → inventory-core-dart.default-Czt49AGY.js} +1 -1
- package/dist/jszip.min-DuMMMB7Y.js +2322 -0
- package/dist/{lz-string-DAdPi3YY.js → lz-string-BpMyCNFt.js} +1 -1
- package/dist/{netsuite-qr2wHoV5.js → netsuite-BEwbzOju.js} +2 -2
- package/dist/{number-xgIylzEb.js → number-H0O0vBDD.js} +3 -3
- package/dist/{predefined-templates-j5MqD37J.js → predefined-templates-gzc0FRzN.js} +1 -1
- package/dist/{purchase-order-template-CglLUVxv.js → purchase-order-template-BDat5HvG.js} +1 -1
- package/dist/{recalculationUtils-O8dnzyPD.js → recalculationUtils-hksr7WVZ.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-BPu-CBAX.js → rules-BJJYOD6y.js} +2 -2
- package/dist/{stock-VM7b7_Km.js → stock-CKMkhKG-.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/supplier-D8G3A4Fh.js +83 -0
- package/dist/{surcharge-CUUDBYUf.js → surcharge-DPwNFa1t.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-D6eW0fAO.js → uom-rules-DoYkZ5ZU.js} +1 -1
- package/dist/{use-ingredient-select-dialog-Cd700UkI.js → use-ingredient-select-dialog-D0mBasQT.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Cf8wC8AI.js → use-inventory-binding-dialog-C6HEtbBs.js} +2 -2
- package/dist/{use-template-enabled-locations-D1AVostH.js → use-template-enabled-locations-CnEcb7h4.js} +2 -2
- package/dist/{use-transfer-locations-uOi6cGul.js → use-transfer-locations-BmqLOJob.js} +8 -8
- package/dist/{useHrmPermission-DEu2Lyei.js → useHrmPermission-O-zOwblR.js} +1 -1
- package/dist/{useNavigationMenu-DuIGSnMd.js → useNavigationMenu-B-LGFL0q.js} +43 -38
- package/dist/{useSseClient-D1uc8ZIc.js → useSseClient-BDjXWGbT.js} +3 -3
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +194 -0
- package/dist/views/receive-request-bulk/BulkReceiveRequestView.vue.d.ts +3 -0
- package/dist/views/receive-request-bulk/components/CreateTransferWizard.vue.d.ts +25 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +4138 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +771 -0
- package/dist/{vue-i18n-DElpxFA8.js → vue-i18n-BfVinz9g.js} +99 -99
- package/dist/{xlsx.util-Cm8s0ZJD.js → xlsx.util-BkECcQ9d.js} +3 -3
- package/package.json +5 -4
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bkh9LvJQ.js +0 -293
- package/dist/WarehouseView-C1BHChSJ.js +0 -1077
- package/dist/supplier-W00UQBDk.js +0 -78
|
@@ -3,4 +3,17 @@ export declare const coordinates: Readonly<{
|
|
|
3
3
|
lat: number;
|
|
4
4
|
lng: number;
|
|
5
5
|
};
|
|
6
|
+
bangkok: {
|
|
7
|
+
lat: number;
|
|
8
|
+
lng: number;
|
|
9
|
+
};
|
|
6
10
|
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Get default coordinate for a country using ISO 3166-1 alpha-2 country code
|
|
13
|
+
* @param countryCode - ISO 3166-1 alpha-2 country code (e.g., 'th', 'my')
|
|
14
|
+
* @returns Default coordinate for the country, or Johor Bahru (JB) as fallback for unknown countries
|
|
15
|
+
*/
|
|
16
|
+
export declare function getDefaultCoordinateByCountry(countryCode?: string): {
|
|
17
|
+
lat: number;
|
|
18
|
+
lng: number;
|
|
19
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var
|
|
3
|
-
(function(
|
|
1
|
+
import { Y as Q, y as K } from "./app-DV7aQ_cQ.js";
|
|
2
|
+
var E = { exports: {} };
|
|
3
|
+
(function(V, X) {
|
|
4
4
|
(function(W, k) {
|
|
5
|
-
|
|
5
|
+
V.exports = k();
|
|
6
6
|
})(Q, function() {
|
|
7
7
|
var W = 1e3, k = 6e4, N = 36e5, A = "millisecond", S = "second", w = "minute", O = "hour", M = "day", T = "week", m = "month", U = "quarter", y = "year", _ = "date", J = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, G = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
|
|
8
8
|
var n = ["th", "st", "nd", "rd"], t = s % 100;
|
|
@@ -25,8 +25,8 @@ var z = { exports: {} };
|
|
|
25
25
|
return s === void 0;
|
|
26
26
|
} }, x = "en", D = {};
|
|
27
27
|
D[x] = G;
|
|
28
|
-
var
|
|
29
|
-
return s instanceof C || !(!s || !s[
|
|
28
|
+
var Z = "$isDayjsObject", F = function(s) {
|
|
29
|
+
return s instanceof C || !(!s || !s[Z]);
|
|
30
30
|
}, j = function s(n, t, r) {
|
|
31
31
|
var e;
|
|
32
32
|
if (!n) return x;
|
|
@@ -50,7 +50,7 @@ var z = { exports: {} };
|
|
|
50
50
|
};
|
|
51
51
|
var C = function() {
|
|
52
52
|
function s(t) {
|
|
53
|
-
this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[
|
|
53
|
+
this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
|
|
54
54
|
}
|
|
55
55
|
var n = s.prototype;
|
|
56
56
|
return n.parse = function(t) {
|
|
@@ -263,9 +263,9 @@ var z = { exports: {} };
|
|
|
263
263
|
}, n.toString = function() {
|
|
264
264
|
return this.$d.toUTCString();
|
|
265
265
|
}, s;
|
|
266
|
-
}(),
|
|
267
|
-
return f.prototype =
|
|
268
|
-
|
|
266
|
+
}(), z = C.prototype;
|
|
267
|
+
return f.prototype = z, [["$ms", A], ["$s", S], ["$m", w], ["$H", O], ["$W", M], ["$M", m], ["$y", y], ["$D", _]].forEach(function(s) {
|
|
268
|
+
z[s[1]] = function(n) {
|
|
269
269
|
return this.$g(n, s[0], s[1]);
|
|
270
270
|
};
|
|
271
271
|
}), f.extend = function(s, n) {
|
|
@@ -274,8 +274,8 @@ var z = { exports: {} };
|
|
|
274
274
|
return f(1e3 * s);
|
|
275
275
|
}, f.en = D[x], f.Ls = D, f.p = {}, f;
|
|
276
276
|
});
|
|
277
|
-
})(
|
|
278
|
-
var R =
|
|
277
|
+
})(E);
|
|
278
|
+
var R = E.exports;
|
|
279
279
|
const et = /* @__PURE__ */ K(R);
|
|
280
280
|
export {
|
|
281
281
|
et as d
|
|
@@ -2,10 +2,10 @@ var ht = Object.defineProperty;
|
|
|
2
2
|
var ft = (l, u, _) => u in l ? ht(l, u, { enumerable: !0, configurable: !0, writable: !0, value: _ }) : l[u] = _;
|
|
3
3
|
var ce = (l, u, _) => ft(l, typeof u != "symbol" ? u + "" : u, _);
|
|
4
4
|
import { useCoreStore as Ke } from "@feedmepos/mf-common";
|
|
5
|
-
import {
|
|
5
|
+
import { Y as ve, u as Ve, j as ot, a as pt } from "./app-DV7aQ_cQ.js";
|
|
6
6
|
import { ref as de, readonly as Ge } from "vue";
|
|
7
|
-
import "./inventory-core-dart.default-
|
|
8
|
-
var
|
|
7
|
+
import "./inventory-core-dart.default-Czt49AGY.js";
|
|
8
|
+
var qe = { exports: {} };
|
|
9
9
|
(function(l, u) {
|
|
10
10
|
(function(_, f) {
|
|
11
11
|
f(u);
|
|
@@ -180,7 +180,7 @@ var Je = { exports: {} };
|
|
|
180
180
|
(function(i) {
|
|
181
181
|
i.NONE = "NONE", i.DEFAULT_FLAGS = "DEFAULT_FLAGS", i.CACHE = "CACHE", i.SERVER = "SERVER";
|
|
182
182
|
})(p || (p = {}));
|
|
183
|
-
var fe, A = null, ut = "FLAGSMITH_EVENT", le = ut,
|
|
183
|
+
var fe, A = null, ut = "FLAGSMITH_EVENT", le = ut, Be = "https://edge.api.flagsmith.com/api/v1/", Je = "flagsmith_value_", Me = "flagsmith_enabled_", ze = "flagsmith_trait_", ct = function() {
|
|
184
184
|
function i(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() {
|
|
@@ -213,7 +213,7 @@ var Je = { exports: {} };
|
|
|
213
213
|
if (e.dtrum) try {
|
|
214
214
|
var T = { javaDouble: {}, date: {}, shortString: {}, javaLongOrObject: {} };
|
|
215
215
|
Object.keys(e.flags).map(function(m) {
|
|
216
|
-
E(T,
|
|
216
|
+
E(T, Je + m, e.getValue(m, { skipAnalytics: !0 })), E(T, Me + m, e.hasFeature(m, { skipAnalytics: !0 }));
|
|
217
217
|
}), Object.keys(((k = e.evaluationContext.identity) === null || k === void 0 ? void 0 : k.traits) || {}).map(function(m) {
|
|
218
218
|
E(T, ze + m, e.getTrait(m));
|
|
219
219
|
}), e.log("Sending javaLongOrObject traits to dynatrace", T.javaLongOrObject), e.log("Sending date traits to dynatrace", T.date), e.log("Sending shortString traits to dynatrace", T.shortString), e.log("Sending javaDouble to dynatrace", T.javaDouble), e.dtrum.sendSessionProperties(T.javaLongOrObject, T.date, T.shortString, T.javaDouble);
|
|
@@ -315,7 +315,7 @@ var Je = { exports: {} };
|
|
|
315
315
|
e.log("Received response with identity mismatch, ignoring response. Requested: ".concat(c, ", Current: ").concat(P));
|
|
316
316
|
});
|
|
317
317
|
}, this.evaluateFlag = function(r, n) {
|
|
318
|
-
if (e.datadogRum && (e.datadogRum.client.addFeatureFlagEvaluation ? n === "VALUE" ? e.datadogRum.client.addFeatureFlagEvaluation(
|
|
318
|
+
if (e.datadogRum && (e.datadogRum.client.addFeatureFlagEvaluation ? n === "VALUE" ? e.datadogRum.client.addFeatureFlagEvaluation(Je + r, e.getValue(r, {}, !0)) : e.datadogRum.client.addFeatureFlagEvaluation(Me + r, e.hasFeature(r, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), e.enableAnalytics) {
|
|
319
319
|
if (!e.evaluationEvent || !e.evaluationContext.environment) return;
|
|
320
320
|
e.evaluationEvent[e.evaluationContext.environment.apiKey] || (e.evaluationEvent[e.evaluationContext.environment.apiKey] = {}), e.evaluationEvent[e.evaluationContext.environment.apiKey][r] === void 0 && (e.evaluationEvent[e.evaluationContext.environment.apiKey][r] = 0), e.evaluationEvent[e.evaluationContext.environment.apiKey][r] += 1;
|
|
321
321
|
}
|
|
@@ -334,25 +334,25 @@ var Je = { exports: {} };
|
|
|
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 ?
|
|
337
|
+
if (D.trys.push([1, 13, , 14]), o = t.environmentID, v = t.api, d = v === void 0 ? Be : v, g = t.headers, c = t.onChange, y = t.cacheFlags, k = t.datadogRum, V = t.onError, P = t.defaultFlags, U = t.fetch, j = t.preventFetch, N = t.enableLogs, G = t.enableDynatrace, re = t.enableAnalytics, ie = t.realtime, Z = t.eventSourceUrl, T = Z === void 0 ? "https://realtime.flagsmith.com/" : Z, m = t.AsyncStorage, ge = t.identity, ae = t.traits, Qe = t.state, Q = t.cacheOptions, ye = t.angularHttpClient, et = t._trigger, tt = 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(R) {
|
|
339
339
|
return [R[0], { value: R[1] }];
|
|
340
340
|
})) : {} } : a.identity, this.evaluationContext = a, this.api = d, this.headers = g, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = c, me = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = et || this._trigger, this._triggerLoadingState = tt || this._triggerLoadingState, this.onError = function(R) {
|
|
341
341
|
L.setLoadingState(s(s({}, L.loadingState), { isFetching: !1, isLoading: !1, error: R })), V == null || V(R);
|
|
342
342
|
}, this.enableLogs = N || !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 && (C = U), this.enableAnalytics = re || !1, this.flags = Object.assign({}, P) || {}, this.datadogRum = k || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = A !== void 0 && !!y, le = "FLAGSMITH_EVENT_" + a.environment.apiKey, m && (A = m), ie && typeof window < "u" && this.setupRealtime(T, a.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = s(s({}, this.loadingState), { isLoading: !1, source: p.DEFAULT_FLAGS })), this.setState(Qe), 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), ye && (C = /* @__PURE__ */ function(R) {
|
|
343
|
-
return function(
|
|
344
|
-
var z =
|
|
343
|
+
return function(q, B) {
|
|
344
|
+
var z = B.headers, x = B.method, te = B.body;
|
|
345
345
|
return new Promise(function(X) {
|
|
346
346
|
switch (x) {
|
|
347
347
|
case "GET":
|
|
348
|
-
return R.get(
|
|
348
|
+
return R.get(q, { headers: z }).subscribe(function(M) {
|
|
349
349
|
X({ ok: !0, text: function() {
|
|
350
350
|
return Promise.resolve(M);
|
|
351
351
|
} });
|
|
352
352
|
});
|
|
353
353
|
case "POST":
|
|
354
354
|
case "PUT":
|
|
355
|
-
return R.post(
|
|
355
|
+
return R.post(q, te, { headers: z }).subscribe(function(M) {
|
|
356
356
|
X({ ok: !0, text: function() {
|
|
357
357
|
return Promise.resolve(M);
|
|
358
358
|
} });
|
|
@@ -367,26 +367,26 @@ var Je = { exports: {} };
|
|
|
367
367
|
L.evaluationEvent = {};
|
|
368
368
|
}
|
|
369
369
|
L.analyticsInterval = setInterval(L.analyticsFlags, L.ticks);
|
|
370
|
-
}), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), A && this.canUseStorage && A.getItem(le, function(R,
|
|
371
|
-
if (
|
|
372
|
-
var
|
|
373
|
-
if (
|
|
370
|
+
}), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), A && this.canUseStorage && A.getItem(le, function(R, q) {
|
|
371
|
+
if (q && L.evaluationContext.environment) {
|
|
372
|
+
var B = JSON.parse(q);
|
|
373
|
+
if (B[L.evaluationContext.environment.apiKey]) {
|
|
374
374
|
var z = L.getState();
|
|
375
|
-
L.log("Retrieved events from cache",
|
|
375
|
+
L.log("Retrieved events from cache", q), L.setState(s(s({}, z), { evaluationEvent: B[L.evaluationContext.environment.apiKey] }));
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
})), !y) return [3, 9];
|
|
379
379
|
if (!A || !this.canUseStorage) return [3, 8];
|
|
380
|
-
nt = function(R,
|
|
380
|
+
nt = function(R, q) {
|
|
381
381
|
return O(L, void 0, void 0, function() {
|
|
382
|
-
var
|
|
382
|
+
var B, z, x, te, X, M, Se, it, Ce, xe, Ee, we, Oe, ke, Te, Le, Ae, Fe, Ie, Pe, je, Ne, Re, Ue, at = this;
|
|
383
383
|
return K(this, function(H) {
|
|
384
384
|
switch (H.label) {
|
|
385
385
|
case 0:
|
|
386
|
-
if (!
|
|
387
|
-
|
|
386
|
+
if (!q) return [3, 7];
|
|
387
|
+
B = null, z = null, H.label = 1;
|
|
388
388
|
case 1:
|
|
389
|
-
return H.trys.push([1, 5, , 6]), x = JSON.parse(
|
|
389
|
+
return H.trys.push([1, 5, , 6]), x = JSON.parse(q), te = !1, X = !1, x && x.api === this.api && ((xe = (Ce = x.evaluationContext) === null || Ce === void 0 ? void 0 : Ce.environment) === null || xe === void 0 ? void 0 : xe.apiKey) === ((Ee = this.evaluationContext.environment) === null || Ee === void 0 ? void 0 : Ee.apiKey) && (M = !0, this.evaluationContext.identity && ((Oe = (we = x.evaluationContext) === null || we === void 0 ? void 0 : we.identity) === null || Oe === void 0 ? void 0 : Oe.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((Te = (ke = x.evaluationContext) === null || ke === void 0 ? void 0 : ke.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 = w((Le = this.evaluationContext.identity) === null || Le === void 0 ? void 0 : Le.traits, (Fe = (Ae = x.evaluationContext) === null || Ae === void 0 ? void 0 : Ae.identity) === null || Fe === void 0 ? void 0 : Fe.traits), B = w(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({}, (Pe = x.evaluationContext) === null || Pe === void 0 ? void 0 : Pe.identity), { traits: s(s({}, ((Ne = (je = x.evaluationContext) === null || je === void 0 ? void 0 : je.identity) === null || Ne === void 0 ? void 0 : Ne.traits) || {}), ae || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", x))), te ? (Se = !j && (!this.cacheOptions.skipAPI || X), this._onChange(null, { isFromServer: !1, flagsChanged: B, traitsChanged: z }, this._loadedState(null, p.CACHE, Se)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && te && !X && this.log("Skipping API, using cache"), Se && this.getFlags().catch(function(dt) {
|
|
390
390
|
var De;
|
|
391
391
|
(De = at.onError) === null || De === void 0 || De.call(at, dt);
|
|
392
392
|
}), [3, 4]) : [3, 2];
|
|
@@ -457,7 +457,7 @@ var Je = { exports: {} };
|
|
|
457
457
|
}, i.prototype.getState = function() {
|
|
458
458
|
return { api: this.api, flags: this.flags, ts: this.ts, evaluationContext: this.evaluationContext, evaluationEvent: this.evaluationEvent };
|
|
459
459
|
}, i.prototype.setState = function(t) {
|
|
460
|
-
t && (this.initialised = !0, this.api = t.api || this.api ||
|
|
460
|
+
t && (this.initialised = !0, this.api = t.api || this.api || Be, this.flags = t.flags || this.flags, this.evaluationContext = t.evaluationContext || this.evaluationContext, this.evaluationEvent = t.evaluationEvent || this.evaluationEvent, this.log("setState called", this));
|
|
461
461
|
}, i.prototype.logout = function() {
|
|
462
462
|
return this.evaluationContext.identity = null, this.initialised ? this.getFlags() : Promise.resolve();
|
|
463
463
|
}, i.prototype.startListening = function(t) {
|
|
@@ -655,20 +655,20 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
655
655
|
return He({ AsyncStorage: f, fetch: Ye, eventSource: We });
|
|
656
656
|
}, _.default = Ze, Object.defineProperty(_, "__esModule", { value: !0 });
|
|
657
657
|
});
|
|
658
|
-
})(
|
|
659
|
-
var gt =
|
|
658
|
+
})(qe, qe.exports);
|
|
659
|
+
var gt = qe.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",
|
|
663
663
|
NO_USER_CONTEXT: "User context not set. Call setUser() first.",
|
|
664
664
|
ALREADY_INITIALIZED: "FeatureFlag is already initialized."
|
|
665
|
-
}, st = "business",
|
|
665
|
+
}, st = "business", J, mt = (J = class {
|
|
666
666
|
constructor() {
|
|
667
667
|
ce(this, "flagsmithClient", null);
|
|
668
668
|
ce(this, "userContext", null);
|
|
669
669
|
}
|
|
670
670
|
static getInstance() {
|
|
671
|
-
return
|
|
671
|
+
return J.instance || (J.instance = new J()), J.instance;
|
|
672
672
|
}
|
|
673
673
|
ensureInitialized() {
|
|
674
674
|
if (!this.flagsmithClient)
|
|
@@ -764,7 +764,7 @@ var gt = Je.exports, yt = {
|
|
|
764
764
|
reset() {
|
|
765
765
|
this.flagsmithClient = null, this.userContext = null;
|
|
766
766
|
}
|
|
767
|
-
}, ce(
|
|
767
|
+
}, ce(J, "instance"), J), bt = mt.getInstance(), se = de(!1), _e = de([]), ne = de(null);
|
|
768
768
|
function St(l = bt) {
|
|
769
769
|
const u = () => se.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), _ = async (p, C = []) => {
|
|
770
770
|
if (se.value) {
|
|
@@ -827,7 +827,7 @@ function St(l = bt) {
|
|
|
827
827
|
reset: w
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
var he = () => St(),
|
|
830
|
+
var he = () => St(), S = /* @__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.inventory_bulk_edit_recipes = "inventory_bulk_edit_recipes", l.inventory_stocksnapshot_cron_beta = "inventory_stocksnapshot_cron_beta", l.inventory_scheduler_daily_stock_snapshot = "inventory_scheduler_daily_stock_snapshot", l.inventory_scheduler_hourly_recalculation = "inventory_scheduler_hourly_recalculation", l))(S || {});
|
|
831
831
|
const Ct = /* @__PURE__ */ new Set([
|
|
832
832
|
// vivo pizza prod
|
|
833
833
|
"business_6687e91fa7240b001ba3f4c2",
|
|
@@ -874,6 +874,7 @@ function lt() {
|
|
|
874
874
|
inventory_print_template: !1,
|
|
875
875
|
inventory_purchase_order_email: !1,
|
|
876
876
|
inventory_bulk_edit_recipes: !1,
|
|
877
|
+
inventory_receive_request_beta: !1,
|
|
877
878
|
report_portal_po_forecast_days_constraint: null,
|
|
878
879
|
report_portal_po_forecast_days_default: 7
|
|
879
880
|
};
|
|
@@ -995,6 +996,9 @@ const h = de(lt()), Ft = () => ({
|
|
|
995
996
|
get enableBulkEditRecipes() {
|
|
996
997
|
return h.value.inventory_bulk_edit_recipes;
|
|
997
998
|
},
|
|
999
|
+
get enableReceiveRequestBeta() {
|
|
1000
|
+
return h.value.inventory_receive_request_beta;
|
|
1001
|
+
},
|
|
998
1002
|
get poForecastDaysConstraint() {
|
|
999
1003
|
return h.value.report_portal_po_forecast_days_constraint;
|
|
1000
1004
|
},
|
|
@@ -1021,7 +1025,7 @@ const h = de(lt()), Ft = () => ({
|
|
|
1021
1025
|
(($ = l.currentBusiness.value) == null ? void 0 : $.menuVersion) === "v4" && // more guard for businesses using menu v4, only those listed for manual receive will be included
|
|
1022
1026
|
// TODO: may be removed to use menu version only
|
|
1023
1027
|
Ct.has(this.businessDbName)
|
|
1024
|
-
), C = xt.has(W) || S
|
|
1028
|
+
), C = xt.has(W) || b(S.inventory_portal_must_use_transfer_template), E = b(S.inventory_purchase_order_backdate) && (this.isWarehouse || f.state.closing !== null);
|
|
1025
1029
|
h.value = {
|
|
1026
1030
|
isLoaded: !0,
|
|
1027
1031
|
enableTotalCost: ((Y = l.currentBusiness.value) == null ? void 0 : Y.menuVersion) === "v4",
|
|
@@ -1029,52 +1033,53 @@ const h = de(lt()), Ft = () => ({
|
|
|
1029
1033
|
autoReceiveWarehouse: w && !p,
|
|
1030
1034
|
manualReceive: p,
|
|
1031
1035
|
enablePoTemplate: C,
|
|
1032
|
-
enableClosingTemplate: S
|
|
1033
|
-
enableWastageTemplate: S
|
|
1034
|
-
enableIngredientGroup: S
|
|
1036
|
+
enableClosingTemplate: b(S.inventory_pos_closing_v2),
|
|
1037
|
+
enableWastageTemplate: b(S.inventory_pos_adjust_v2_wastage),
|
|
1038
|
+
enableIngredientGroup: b(S.inventory_ingredient_group),
|
|
1035
1039
|
mustUsePoTemplate: C,
|
|
1036
1040
|
businessSupplierOnly: C,
|
|
1037
|
-
enableXilnexTransferNote: S
|
|
1038
|
-
enableCustomAttribute: S
|
|
1039
|
-
usePurchaseOrderV2: S
|
|
1040
|
-
acceptRequireFulfillment:
|
|
1041
|
-
|
|
1041
|
+
enableXilnexTransferNote: b(S.inventory_portal_xilnex_transfer_note),
|
|
1042
|
+
enableCustomAttribute: b(S.inventory_portal_custom_attribute),
|
|
1043
|
+
usePurchaseOrderV2: b(S.inventory_portal_purchase_order_v2),
|
|
1044
|
+
acceptRequireFulfillment: b(
|
|
1045
|
+
S.inventory_portal_accept_require_fulfillment
|
|
1042
1046
|
),
|
|
1043
|
-
useOperatePurchaseOrderV2: S
|
|
1044
|
-
inventory_xilnex_opening_migration:
|
|
1045
|
-
|
|
1047
|
+
useOperatePurchaseOrderV2: b(S.inventory_portal_po_operate_v2),
|
|
1048
|
+
inventory_xilnex_opening_migration: b(
|
|
1049
|
+
S.inventory_xilnex_opening_migration
|
|
1046
1050
|
),
|
|
1047
|
-
inventory_synergy_opening_migration:
|
|
1048
|
-
|
|
1051
|
+
inventory_synergy_opening_migration: b(
|
|
1052
|
+
S.inventory_synergy_opening_migration
|
|
1049
1053
|
),
|
|
1050
|
-
inventory_netsuite_inventory_transfer_out:
|
|
1051
|
-
|
|
1054
|
+
inventory_netsuite_inventory_transfer_out: b(
|
|
1055
|
+
S.inventory_netsuite_inventory_transfer_out
|
|
1052
1056
|
),
|
|
1053
|
-
inventory_portal_supplier_preparation_time:
|
|
1054
|
-
|
|
1057
|
+
inventory_portal_supplier_preparation_time: b(
|
|
1058
|
+
S.inventory_portal_supplier_preparation_time
|
|
1055
1059
|
),
|
|
1056
|
-
inventory_portal_delivery_order_write:
|
|
1057
|
-
|
|
1060
|
+
inventory_portal_delivery_order_write: b(
|
|
1061
|
+
S.inventory_portal_delivery_order_write
|
|
1058
1062
|
),
|
|
1059
|
-
inventory_pos_transfer_require_fulfillment:
|
|
1060
|
-
|
|
1063
|
+
inventory_pos_transfer_require_fulfillment: b(
|
|
1064
|
+
S.inventory_pos_transfer_require_fulfillment
|
|
1061
1065
|
),
|
|
1062
|
-
inventory_backdate_receive: S
|
|
1063
|
-
inventory_purchase_order_custom_cost:
|
|
1064
|
-
|
|
1066
|
+
inventory_backdate_receive: b(S.inventory_backdate_receive),
|
|
1067
|
+
inventory_purchase_order_custom_cost: b(
|
|
1068
|
+
S.inventory_purchase_order_custom_cost
|
|
1065
1069
|
),
|
|
1066
|
-
inventory_bulk_import: S
|
|
1067
|
-
inventory_portal_surcharge: S
|
|
1068
|
-
inventory_purchase_order_cost_edit:
|
|
1069
|
-
|
|
1070
|
+
inventory_bulk_import: b(S.inventory_bulk_import),
|
|
1071
|
+
inventory_portal_surcharge: b(S.inventory_portal_surcharge),
|
|
1072
|
+
inventory_purchase_order_cost_edit: b(
|
|
1073
|
+
S.inventory_purchase_order_cost_edit
|
|
1070
1074
|
),
|
|
1071
|
-
inventory_purchase_order_workflow_allow_to_mark_completed:
|
|
1072
|
-
|
|
1075
|
+
inventory_purchase_order_workflow_allow_to_mark_completed: b(
|
|
1076
|
+
S.inventory_purchase_order_workflow_allow_to_mark_completed
|
|
1073
1077
|
),
|
|
1074
|
-
inventory_recipe_v2: S
|
|
1075
|
-
inventory_print_template: S
|
|
1076
|
-
inventory_purchase_order_email: S
|
|
1077
|
-
inventory_bulk_edit_recipes: S
|
|
1078
|
+
inventory_recipe_v2: b(S.inventory_recipe_v2),
|
|
1079
|
+
inventory_print_template: b(S.inventory_print_template),
|
|
1080
|
+
inventory_purchase_order_email: b(S.inventory_purchase_order_email),
|
|
1081
|
+
inventory_bulk_edit_recipes: b(S.inventory_bulk_edit_recipes),
|
|
1082
|
+
inventory_receive_request_beta: b("inventory_receive_request_beta"),
|
|
1078
1083
|
report_portal_po_forecast_days_constraint: Et(
|
|
1079
1084
|
"report_portal_po_forecast_days_constraint"
|
|
1080
1085
|
),
|
|
@@ -1094,7 +1099,7 @@ const h = de(lt()), Ft = () => ({
|
|
|
1094
1099
|
});
|
|
1095
1100
|
}
|
|
1096
1101
|
});
|
|
1097
|
-
function
|
|
1102
|
+
function b(l, u) {
|
|
1098
1103
|
u = u === void 0 ? null : u;
|
|
1099
1104
|
const { getFlagValue: _ } = he();
|
|
1100
1105
|
return _(l, (f) => f === "true") ?? u;
|
|
@@ -1111,7 +1116,7 @@ function wt(l, u) {
|
|
|
1111
1116
|
}) ?? u;
|
|
1112
1117
|
}
|
|
1113
1118
|
export {
|
|
1114
|
-
|
|
1119
|
+
S as I,
|
|
1115
1120
|
he as a,
|
|
1116
1121
|
Ft as u
|
|
1117
1122
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { components as ce, useDialogChild as Pe, useSnackbar as de, useDialog as Me, FmButtonVariant as te } from "@feedmepos/ui-library";
|
|
2
2
|
import { defineStore as pe } from "pinia";
|
|
3
3
|
import { F as xe } from "./form-mode.enum-BKiNVH6A.js";
|
|
4
|
-
import { u as fe } from "./purchase-order-template-
|
|
4
|
+
import { u as fe } from "./purchase-order-template-BDat5HvG.js";
|
|
5
5
|
import { ref as I, h as oe, defineComponent as ye, resolveComponent as W, openBlock as O, createElementBlock as F, createElementVNode as N, normalizeClass as J, createTextVNode as Be, toDisplayString as q, unref as B, createCommentVNode as Z, createVNode as j, withCtx as me, Fragment as Y, renderList as ae, onMounted as Le, computed as H, watch as Qe, createSlots as Ue, createBlock as re } from "vue";
|
|
6
|
-
import { a as X, c as ve, r as L, u as ie, l as qe, j as _e, s as Ve, R as we } from "./app-
|
|
6
|
+
import { a as X, c as ve, r as L, u as ie, l as qe, j as _e, s as Ve, R as we } from "./app-DV7aQ_cQ.js";
|
|
7
7
|
import { useRouter as He } from "vue-router";
|
|
8
|
-
import { a as je } from "./FmMultiselectDialog-
|
|
8
|
+
import { a as je } from "./FmMultiselectDialog-BZlf6oZl.js";
|
|
9
9
|
import { D as ne, R as U } from "./row-action.enum-DQ9bJ_uv.js";
|
|
10
10
|
import { c as ze } from "./component-kqxARxvM.js";
|
|
11
|
-
import { f as Ye } from "./format-time-from-id-
|
|
11
|
+
import { f as Ye } from "./format-time-from-id-DaxR-jQl.js";
|
|
12
12
|
import { useI18n as he, useCoreStore as Ie } from "@feedmepos/mf-common";
|
|
13
|
-
import { t as K, a as Ce, d as Oe, s as Ae, r as Ke } from "./xlsx.util-
|
|
13
|
+
import { t as K, a as Ce, d as Oe, s as Ae, r as Ke } from "./xlsx.util-BkECcQ9d.js";
|
|
14
14
|
import { F as Ge } from "./FmDroppableField-J0xUsOTV.js";
|
|
15
|
-
import { c as We, a as G, t as se, g as ue } from "./number-
|
|
16
|
-
import { f as Je } from "./date2-
|
|
17
|
-
import { u as ge } from "./supplier-
|
|
18
|
-
import { a as Ze, B as Xe } from "./rules-
|
|
19
|
-
import { u as Te } from "./netsuite-
|
|
20
|
-
import { u as et } from "./duplicate-template-
|
|
21
|
-
import { u as tt } from "./vue-i18n-
|
|
15
|
+
import { c as We, a as G, t as se, g as ue } from "./number-H0O0vBDD.js";
|
|
16
|
+
import { f as Je } from "./date2-M311L05t.js";
|
|
17
|
+
import { u as ge } from "./supplier-D8G3A4Fh.js";
|
|
18
|
+
import { a as Ze, B as Xe } from "./rules-BJJYOD6y.js";
|
|
19
|
+
import { u as Te } from "./netsuite-BEwbzOju.js";
|
|
20
|
+
import { u as et } from "./duplicate-template-CGWTaWeS.js";
|
|
21
|
+
import { u as tt } from "./vue-i18n-BfVinz9g.js";
|
|
22
22
|
function De(n) {
|
|
23
23
|
const e = X(), o = n.sku, d = e.skuById[o._id];
|
|
24
24
|
if (d.unit._id !== o.unit._id) return !0;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
class
|
|
3
|
-
constructor(
|
|
4
|
-
if (this.apiKey =
|
|
1
|
+
import { ref as g } from "vue";
|
|
2
|
+
class n {
|
|
3
|
+
constructor(o = null, e = {}) {
|
|
4
|
+
if (this.apiKey = o, this.options = e, typeof window > "u")
|
|
5
5
|
throw new Error("google-maps is supported only in browser environment");
|
|
6
6
|
}
|
|
7
7
|
load() {
|
|
8
|
-
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[
|
|
8
|
+
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[n.CALLBACK_NAME] = () => {
|
|
9
9
|
if (this.api = window.google, typeof this.resolve > "u")
|
|
10
10
|
throw new Error("Should not happen");
|
|
11
11
|
this.resolve(this.api);
|
|
@@ -13,35 +13,47 @@ class r {
|
|
|
13
13
|
if (typeof this.reject > "u")
|
|
14
14
|
throw new Error("Should not happen");
|
|
15
15
|
this.reject(new Error("google-maps: authentication error"));
|
|
16
|
-
}, this.loader = new Promise((
|
|
17
|
-
this.resolve =
|
|
18
|
-
const
|
|
19
|
-
|
|
16
|
+
}, this.loader = new Promise((o, e) => {
|
|
17
|
+
this.resolve = o, this.reject = e;
|
|
18
|
+
const t = document.createElement("script");
|
|
19
|
+
t.src = this.createUrl(), t.async = !0, t.onerror = (a) => e(a), document.head.appendChild(t);
|
|
20
20
|
}));
|
|
21
21
|
}
|
|
22
22
|
createUrl() {
|
|
23
|
-
const
|
|
24
|
-
`callback=${
|
|
23
|
+
const o = [
|
|
24
|
+
`callback=${n.CALLBACK_NAME}`
|
|
25
25
|
];
|
|
26
|
-
this.apiKey &&
|
|
26
|
+
this.apiKey && o.push(`key=${this.apiKey}`);
|
|
27
27
|
for (let e in this.options)
|
|
28
28
|
if (this.options.hasOwnProperty(e)) {
|
|
29
|
-
let
|
|
30
|
-
e === "version" && (e = "v"), e === "libraries" && (
|
|
29
|
+
let t = this.options[e];
|
|
30
|
+
e === "version" && (e = "v"), e === "libraries" && (t = t.join(",")), o.push(`${e}=${t}`);
|
|
31
31
|
}
|
|
32
|
-
return `https://maps.googleapis.com/maps/api/js?${
|
|
32
|
+
return `https://maps.googleapis.com/maps/api/js?${o.join("&")}`;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
const
|
|
35
|
+
n.CALLBACK_NAME = "_dk_google_maps_loader_cb";
|
|
36
|
+
const r = Object.freeze({
|
|
37
37
|
jb: {
|
|
38
38
|
lat: 1.492659,
|
|
39
39
|
lng: 103.7413591
|
|
40
|
+
},
|
|
41
|
+
bangkok: {
|
|
42
|
+
lat: 13.7563,
|
|
43
|
+
lng: 100.5018
|
|
40
44
|
}
|
|
45
|
+
}), p = Object.freeze({
|
|
46
|
+
th: "bangkok",
|
|
47
|
+
my: "jb"
|
|
41
48
|
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
49
|
+
function c(i) {
|
|
50
|
+
if (!i) return r.jb;
|
|
51
|
+
const o = p[i.toLowerCase()];
|
|
52
|
+
return o ? r[o] : r.jb;
|
|
53
|
+
}
|
|
54
|
+
let s = !1;
|
|
55
|
+
const l = g({});
|
|
56
|
+
function d() {
|
|
45
57
|
return {
|
|
46
58
|
// state
|
|
47
59
|
get _googleMap() {
|
|
@@ -60,47 +72,48 @@ function h() {
|
|
|
60
72
|
},
|
|
61
73
|
// actions
|
|
62
74
|
async initGoogleMap(i) {
|
|
63
|
-
if (!(this._googleMap ||
|
|
64
|
-
|
|
75
|
+
if (!(this._googleMap || s)) {
|
|
76
|
+
s = !0;
|
|
65
77
|
try {
|
|
66
|
-
const e = await new
|
|
78
|
+
const e = await new n(i, {
|
|
67
79
|
libraries: ["places"]
|
|
68
80
|
}).load();
|
|
69
81
|
this._googleMap = e;
|
|
70
82
|
} catch {
|
|
71
83
|
} finally {
|
|
72
|
-
|
|
84
|
+
s = !1;
|
|
73
85
|
}
|
|
74
86
|
}
|
|
75
87
|
},
|
|
76
88
|
getGeocoder() {
|
|
77
89
|
return new this.googleMap.maps.Geocoder();
|
|
78
90
|
},
|
|
79
|
-
getFirstMatchingAddress(i,
|
|
91
|
+
getFirstMatchingAddress(i, o) {
|
|
80
92
|
return new Promise((e) => {
|
|
81
|
-
this.getGeocoder().geocode({ location: { lat: i, lng:
|
|
82
|
-
if (
|
|
83
|
-
const [
|
|
84
|
-
e(
|
|
93
|
+
this.getGeocoder().geocode({ location: { lat: i, lng: o } }, (t) => {
|
|
94
|
+
if (t != null && t.length) {
|
|
95
|
+
const [a] = t;
|
|
96
|
+
e(a.formatted_address);
|
|
85
97
|
} else
|
|
86
98
|
e("");
|
|
87
99
|
});
|
|
88
100
|
});
|
|
89
101
|
},
|
|
90
102
|
getFirstMatchingCoordinate(i) {
|
|
91
|
-
return new Promise((
|
|
103
|
+
return new Promise((o) => {
|
|
92
104
|
this.getGeocoder().geocode({ address: i }, (e) => {
|
|
93
105
|
if (e != null && e.length) {
|
|
94
|
-
const [{ geometry:
|
|
95
|
-
|
|
106
|
+
const [{ geometry: t }] = e;
|
|
107
|
+
o([t.location.lng(), t.location.lat()]);
|
|
96
108
|
} else
|
|
97
|
-
|
|
109
|
+
o([r.jb.lng, r.jb.lat]);
|
|
98
110
|
});
|
|
99
111
|
});
|
|
100
112
|
}
|
|
101
113
|
};
|
|
102
114
|
}
|
|
103
115
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
116
|
+
r as c,
|
|
117
|
+
c as g,
|
|
118
|
+
d as u
|
|
106
119
|
};
|
|
@@ -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-H0O0vBDD.js";
|
|
2
|
+
import { u as P } from "./feature-CKH-cZsq.js";
|
|
3
3
|
import { useCoreStore as g } from "@feedmepos/mf-common";
|
|
4
|
-
import { a as y, g as k, l as j, d as S } from "./app-
|
|
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, g as k, l as j, d as S } from "./app-DV7aQ_cQ.js";
|
|
5
|
+
import { b as N, d as $, s as I } from "./xlsx.util-BkECcQ9d.js";
|
|
6
|
+
import { f as _ } from "./date2-M311L05t.js";
|
|
7
|
+
import { I as O } from "./rules-BJJYOD6y.js";
|
|
8
8
|
function R() {
|
|
9
9
|
return {
|
|
10
10
|
low: 6,
|