@feedmepos/mf-inventory-portal 0.0.5 → 0.0.7-dev.1
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/{ApprovalView-CTQdDgGH.js → ApprovalView-BYZcvkso.js} +6 -6
- package/dist/BindingsDialog-pdS86VDU.js +94 -0
- package/dist/{BindingsPicker-CQIGhTCR.js → BindingsPicker-D891Cfzu.js} +2 -2
- package/dist/{BindingsTable-Da4BLkvc.js → BindingsTable-tmr6QwLk.js} +30 -31
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DcixBOcX.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Bss0q2Zt.js} +7 -7
- package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-BXU7x6di.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-BHcLUkdm.js} +19 -20
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CD89qCIa.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BIww2Noe.js} +1 -1
- package/dist/IngredientsView-BH6G7830.js +819 -0
- package/dist/{IntegrationView-BRWYO3VE.js → IntegrationView-CfJn6Fzn.js} +3 -3
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-39U8Iavr.js +258 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DBK7mpQS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-nDxqau1g.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-CH9gVYDg.js → PurchaseOrderPrintPreview-Db2U_IQL.js} +1 -1
- package/dist/ReceiveRequestView-CgVfcS8C.js +1483 -0
- package/dist/{RecipeView-DFG9Wkx-.js → RecipeView-C9_Y_A9b.js} +58 -58
- package/dist/StockView-CoUI3Faj.js +1916 -0
- package/dist/SupplierView-CNq6wVfN.js +818 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Ffe9bhq8.js → TransferDetails.vue_vue_type_script_setup_true_lang-Cmajrg-9.js} +5 -5
- package/dist/{UnitView-C3XVSbJY.js → UnitView-Buyp4Gnc.js} +190 -177
- package/dist/{WarehouseView-BntzAdz3.js → WarehouseView-DbUib0PR.js} +56 -56
- package/dist/api/inventory.d.ts +33 -0
- package/dist/api/stock-estimate.d.ts +16 -0
- package/dist/api/stock.d.ts +8 -0
- package/dist/app-DM4Thqjw.js +42756 -0
- package/dist/app.js +1 -1
- package/dist/components/StockForecast.vue.d.ts +12 -0
- package/dist/components/StockForecastProps.d.ts +3 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +16 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -0
- package/dist/core.d.ts +3 -2
- package/dist/date2-DpU4LDaP.js +199 -0
- package/dist/dayjs.min-D4Q_pHH9.js +13556 -0
- package/dist/{decimal-D3a0BwVj.js → decimal-M4vjE6Br.js} +1 -1
- package/dist/{fuzzy-BW8ZYsDG.js → fuzzy-fD_FTJWH.js} +1 -1
- package/dist/helper/number.d.ts +1 -0
- package/dist/{init-date-range-M3Q03-Fd.js → init-date-range-DJ1Nl5TB.js} +1 -1
- package/dist/{layout-BvUjg6JS.js → layout-kY567oHX.js} +1 -1
- package/dist/{rules-DHfAMDW3.js → rules-CVxh5XVG.js} +3 -3
- package/dist/stock-estimate-lkaYlz7I.js +90 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/inventory.d.ts +64 -0
- package/dist/stores/stock-estimate.d.ts +11 -0
- package/dist/stores/supplier.d.ts +19 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DTiiOLtg.js → supplier-evd71Y1H.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-B6JO7050.js → use-inventory-binding-dialog-CGuXojFC.js} +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +16 -0
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +23 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +213 -7
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +102 -2
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +306 -6
- package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +9 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +32 -0
- package/dist/views/stock/type.d.ts +1 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +38 -2
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +45 -0
- package/dist/views/supplier/composables/use-supplier-table.d.ts +19 -1
- package/dist/{xlsx-BljO4Lx2.js → xlsx-DpBw8KA4.js} +1010 -1010
- package/package.json +13 -7
- package/dist/BindingsDialog-DvX_DRsO.js +0 -82
- package/dist/IngredientsView-2ZKdzsgI.js +0 -739
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CnsDmPTe.js +0 -240
- package/dist/ReceiveRequestView-DQBqc3GF.js +0 -1298
- package/dist/StockView-DLWMp_I5.js +0 -1733
- package/dist/SupplierView-CZhM2ie3.js +0 -607
- package/dist/app-BzDhmCVx.js +0 -36639
- package/dist/components/shell/inventory/binding-ui.test.d.ts +0 -1
- package/dist/components/ui-library/FmSpecialChip.vue.d.ts +0 -79
- package/dist/date2-C7HiAWQG.js +0 -209
- package/dist/dayjs.min-Db57WhI9.js +0 -282
- package/dist/id-to-date-ReZIpUDw.js +0 -30
- package/dist/index-D46it8Rk.js +0 -12956
package/dist/app.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { StockForecastProps } from '@/components/StockForecastProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<StockForecastProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<StockForecastProps>>>, {}, {}>;
|
|
3
|
+
export default _default;
|
|
4
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
5
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
6
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
7
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
8
|
+
} : {
|
|
9
|
+
type: import('vue').PropType<T[K]>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -67,6 +67,22 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
67
67
|
}[] | null | undefined;
|
|
68
68
|
} | null | undefined;
|
|
69
69
|
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
70
|
+
defaultCost?: {
|
|
71
|
+
measurement?: {
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
abbrev: string;
|
|
75
|
+
conversion: {
|
|
76
|
+
amount: number;
|
|
77
|
+
precision: number;
|
|
78
|
+
};
|
|
79
|
+
} | null | undefined;
|
|
80
|
+
costPerUnit: {
|
|
81
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
82
|
+
amount: number;
|
|
83
|
+
precision: number;
|
|
84
|
+
};
|
|
85
|
+
} | null | undefined;
|
|
70
86
|
unit: {
|
|
71
87
|
_id: string;
|
|
72
88
|
name: string;
|
|
@@ -47,6 +47,22 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
47
47
|
}[] | null | undefined;
|
|
48
48
|
} | null | undefined;
|
|
49
49
|
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
50
|
+
defaultCost?: {
|
|
51
|
+
measurement?: {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
abbrev: string;
|
|
55
|
+
conversion: {
|
|
56
|
+
amount: number;
|
|
57
|
+
precision: number;
|
|
58
|
+
};
|
|
59
|
+
} | null | undefined;
|
|
60
|
+
costPerUnit: {
|
|
61
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
62
|
+
amount: number;
|
|
63
|
+
precision: number;
|
|
64
|
+
};
|
|
65
|
+
} | null | undefined;
|
|
50
66
|
unit: {
|
|
51
67
|
_id: string;
|
|
52
68
|
name: string;
|
package/dist/core.d.ts
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
* Reference: https://stackoverflow.com/a/62806068
|
|
6
6
|
*/
|
|
7
7
|
import '@feedmepos/inventory-core';
|
|
8
|
-
import type
|
|
9
|
-
export declare function getInvalidSkuAndRecipe(param: InvalidSkuAndRecipeParam): {
|
|
8
|
+
import type * as core from '@feedmepos/inventory-core';
|
|
9
|
+
export declare function getInvalidSkuAndRecipe(param: core.InvalidSkuAndRecipeParam): {
|
|
10
10
|
skus: string[];
|
|
11
11
|
recipes: string[];
|
|
12
12
|
};
|
|
13
|
+
export declare const FfCalculator: typeof core.FfCalculator;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { F as c, d } from "./dayjs.min-D4Q_pHH9.js";
|
|
2
|
+
function w(t, e) {
|
|
3
|
+
return c.convertPrecision({
|
|
4
|
+
value: t,
|
|
5
|
+
precision: e
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
function S(t, e) {
|
|
9
|
+
return c.add([t, e]);
|
|
10
|
+
}
|
|
11
|
+
function N(t, e) {
|
|
12
|
+
return c.multiply([t, e]);
|
|
13
|
+
}
|
|
14
|
+
function b(t, e) {
|
|
15
|
+
const n = Math.floor(t.amount * e.amount), r = n === 0 ? 0 : t.precision + e.precision, o = D(n), a = Math.min(r, o);
|
|
16
|
+
return {
|
|
17
|
+
amount: n / Math.pow(10, a),
|
|
18
|
+
precision: r - a
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function h(t, e) {
|
|
22
|
+
const n = +l(t), r = +l(e);
|
|
23
|
+
return n / r;
|
|
24
|
+
}
|
|
25
|
+
function A(t, e) {
|
|
26
|
+
const n = h(t, e);
|
|
27
|
+
return M(n);
|
|
28
|
+
}
|
|
29
|
+
function l(t, e = !0) {
|
|
30
|
+
return e ? Number(t.amount / Math.pow(10, t.precision)).toFixed(t.precision) : Number(t.amount / Math.pow(10, t.precision)).toString();
|
|
31
|
+
}
|
|
32
|
+
function U(t, e = !1, n = 2) {
|
|
33
|
+
const r = Number(t.amount / Math.pow(10, t.precision)), o = r.toFixed(
|
|
34
|
+
Number.isInteger(r) ? 2 : Math.min(4, Math.max(2, n))
|
|
35
|
+
);
|
|
36
|
+
return e ? `${o} ${t.currency}` : t.currency === "MYR" ? `RM ${o}` : `${t.currency} ${o}`;
|
|
37
|
+
}
|
|
38
|
+
function j(t) {
|
|
39
|
+
return {
|
|
40
|
+
...t,
|
|
41
|
+
amount: Math.abs(t.amount)
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function F(t) {
|
|
45
|
+
if (!isFinite(t)) return 0;
|
|
46
|
+
let e = 1, n = 0;
|
|
47
|
+
for (; Math.round(t * e) / e !== t; )
|
|
48
|
+
e *= 10, n++;
|
|
49
|
+
return n;
|
|
50
|
+
}
|
|
51
|
+
function M(t) {
|
|
52
|
+
const e = F(t);
|
|
53
|
+
return {
|
|
54
|
+
precision: e,
|
|
55
|
+
amount: t * 10 ** e
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function I(t, e = 0, n = !1) {
|
|
59
|
+
let r = 0;
|
|
60
|
+
return Number.isNaN(Number(t)) || (n || Number(t) >= 0) && (r = Number(t)), {
|
|
61
|
+
amount: Number((r * 10 ** e).toFixed(0)),
|
|
62
|
+
precision: e
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function D(t) {
|
|
66
|
+
const e = `${t}`, n = e.replace(/0*$/g, "");
|
|
67
|
+
return e.length - n.length;
|
|
68
|
+
}
|
|
69
|
+
function Y(t, e) {
|
|
70
|
+
if (!e)
|
|
71
|
+
return t.precision;
|
|
72
|
+
const n = D(e.conversion.amount);
|
|
73
|
+
return t.precision - e.conversion.precision + n;
|
|
74
|
+
}
|
|
75
|
+
function v(t) {
|
|
76
|
+
const e = new Intl.DateTimeFormat("en-US", { year: "numeric" }), n = new Intl.DateTimeFormat("en-US", { month: "short" });
|
|
77
|
+
return [new Intl.DateTimeFormat("en-US", { day: "2-digit" }), n, e].map((a) => a.format(t).toUpperCase()).join(" ");
|
|
78
|
+
}
|
|
79
|
+
function $(t) {
|
|
80
|
+
const n = new Intl.DateTimeFormat("en-US", {
|
|
81
|
+
hour: "2-digit",
|
|
82
|
+
hour12: !0,
|
|
83
|
+
minute: "2-digit"
|
|
84
|
+
}).format(t);
|
|
85
|
+
return n.startsWith("12") && n.endsWith("AM") ? `00${n.substring(2, n.length)}` : n;
|
|
86
|
+
}
|
|
87
|
+
function x(t, e = " ") {
|
|
88
|
+
const n = new Intl.DateTimeFormat("en-US", { year: "numeric" }), r = new Intl.DateTimeFormat("en-US", { month: "short" });
|
|
89
|
+
return [n, r].map((a) => a.format(t)).join(e);
|
|
90
|
+
}
|
|
91
|
+
function H(t) {
|
|
92
|
+
var r, o;
|
|
93
|
+
const n = new Intl.DateTimeFormat("en-US", {
|
|
94
|
+
hour: "2-digit",
|
|
95
|
+
hour12: !1,
|
|
96
|
+
minute: "2-digit"
|
|
97
|
+
}).formatToParts(t);
|
|
98
|
+
return `${(r = n.find((a) => a.type === "hour")) == null ? void 0 : r.value}:${(o = n.find((a) => a.type === "minute")) == null ? void 0 : o.value}`;
|
|
99
|
+
}
|
|
100
|
+
function i(t, e = "-") {
|
|
101
|
+
const n = new Intl.DateTimeFormat("en-US", { year: "numeric" }), r = new Intl.DateTimeFormat("en-US", { month: "2-digit" }), o = new Intl.DateTimeFormat("en-US", { day: "2-digit" });
|
|
102
|
+
return [n, r, o].map((m) => m.format(t).toUpperCase()).join(e);
|
|
103
|
+
}
|
|
104
|
+
function C(t, e = "-", n = ":") {
|
|
105
|
+
const r = new Intl.DateTimeFormat("en-US", { year: "numeric" }), o = new Intl.DateTimeFormat("en-US", { month: "2-digit" }), a = new Intl.DateTimeFormat("en-US", { day: "2-digit" }), m = new Intl.DateTimeFormat("en-US", { hour: "2-digit", hour12: !1 }), g = new Intl.DateTimeFormat("en-US", { minute: "2-digit" }), T = [r, o, a].map((u) => u.format(t).toUpperCase()).join(e), p = [m, g].map((u) => u.format(t).toUpperCase()).join(n);
|
|
106
|
+
return `${T} ${p}`;
|
|
107
|
+
}
|
|
108
|
+
function s(t) {
|
|
109
|
+
const e = new Date(t);
|
|
110
|
+
return e.setHours(0), e.setMinutes(0), e.setSeconds(0), e.setMilliseconds(0), e;
|
|
111
|
+
}
|
|
112
|
+
function f(t) {
|
|
113
|
+
const e = s(t);
|
|
114
|
+
return e.setDate(e.getDate() + 1), e.setTime(e.getTime() - 1), e;
|
|
115
|
+
}
|
|
116
|
+
function P(t) {
|
|
117
|
+
const { startDate: e, endDate: n } = t;
|
|
118
|
+
if (e === null || n === null)
|
|
119
|
+
return {
|
|
120
|
+
startDate: null,
|
|
121
|
+
endDate: null
|
|
122
|
+
};
|
|
123
|
+
const r = new Date(e), o = new Date(n);
|
|
124
|
+
if (isNaN(r.getTime()) || isNaN(o.getTime()))
|
|
125
|
+
return {
|
|
126
|
+
startDate: null,
|
|
127
|
+
endDate: null
|
|
128
|
+
};
|
|
129
|
+
const a = o.getTime() - r.getTime();
|
|
130
|
+
return r.setTime(r.getTime() - a - 864e5), o.setTime(o.getTime() - a - 864e5), {
|
|
131
|
+
startDate: i(r),
|
|
132
|
+
endDate: i(o)
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function R(t) {
|
|
136
|
+
const { startDate: e, endDate: n } = t;
|
|
137
|
+
if (e === null || n === null)
|
|
138
|
+
return {
|
|
139
|
+
startDate: null,
|
|
140
|
+
endDate: null
|
|
141
|
+
};
|
|
142
|
+
const r = new Date(e), o = new Date(n);
|
|
143
|
+
if (isNaN(r.getTime()) || isNaN(o.getTime()))
|
|
144
|
+
return {
|
|
145
|
+
startDate: null,
|
|
146
|
+
endDate: null
|
|
147
|
+
};
|
|
148
|
+
const a = o.getTime() - r.getTime();
|
|
149
|
+
return r.setTime(r.getTime() + a + 864e5), o.setTime(o.getTime() + a + 864e5), {
|
|
150
|
+
startDate: i(r),
|
|
151
|
+
endDate: i(o)
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function O(t, e = /* @__PURE__ */ new Date()) {
|
|
155
|
+
const n = f(new Date(e.getTime()));
|
|
156
|
+
return {
|
|
157
|
+
startDate: d(s(new Date(e.getTime()))).subtract(t, "months").toISOString(),
|
|
158
|
+
endDate: n.toISOString()
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
function Z(t, e = /* @__PURE__ */ new Date()) {
|
|
162
|
+
const r = [f(new Date(e.getTime()))];
|
|
163
|
+
for (let o = 1; o < t; o++) {
|
|
164
|
+
const a = d(s(new Date(e.getTime()))).subtract(o, "months");
|
|
165
|
+
r.push(a.toDate());
|
|
166
|
+
}
|
|
167
|
+
return r.reverse();
|
|
168
|
+
}
|
|
169
|
+
function W(t) {
|
|
170
|
+
const e = s(t);
|
|
171
|
+
return e.setDate(1), e;
|
|
172
|
+
}
|
|
173
|
+
export {
|
|
174
|
+
l as a,
|
|
175
|
+
b,
|
|
176
|
+
M as c,
|
|
177
|
+
F as d,
|
|
178
|
+
j as e,
|
|
179
|
+
C as f,
|
|
180
|
+
Y as g,
|
|
181
|
+
N as h,
|
|
182
|
+
S as i,
|
|
183
|
+
$ as j,
|
|
184
|
+
U as k,
|
|
185
|
+
w as l,
|
|
186
|
+
s as m,
|
|
187
|
+
f as n,
|
|
188
|
+
R as o,
|
|
189
|
+
P as p,
|
|
190
|
+
i as q,
|
|
191
|
+
v as r,
|
|
192
|
+
x as s,
|
|
193
|
+
I as t,
|
|
194
|
+
O as u,
|
|
195
|
+
A as v,
|
|
196
|
+
W as w,
|
|
197
|
+
Z as x,
|
|
198
|
+
H as y
|
|
199
|
+
};
|