@feedmepos/mf-report 5.26.0 → 5.26.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/{App-CQuu5Qh9.js → App-BzkI6sKt.js} +4 -4
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DIOs00I6.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-zysuiQUh.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BCUt2m1j.js → Default.vue_vue_type_script_setup_true_lang-18YiuHKW.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-_PjzwK_1.js → DynamicWidget.vue_vue_type_script_setup_true_lang-DhzpQGKX.js} +3 -3
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-C_BhUOiu.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-BWYwB44e.js} +1340 -1303
- package/dist/{InsightView-DU5nEtt-.js → InsightView-BljrHPXv.js} +4 -4
- package/dist/{Integration-zDSEzsXb.js → Integration-D_YIoo-Q.js} +3 -3
- package/dist/{Integrations-BkCpKkwh.js → Integrations-Cp_cnFD7.js} +2 -2
- package/dist/{Layout-D77m6Zv2.js → Layout-BKLox7De.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CwBBgpSs.js → MenuTab.vue_vue_type_script_setup_true_lang-BDfRcYID.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BAhz4G07.js → NavigationTab.vue_vue_type_script_setup_true_lang-Bciy0yYI.js} +3 -3
- package/dist/{OverviewView-CXFRHSE6.js → OverviewView-DiBqQjMX.js} +4 -4
- package/dist/{Report-DF-35jde.js → Report-CKC7-sKY.js} +3 -3
- package/dist/ReportEditor-D15LDehs.js +1594 -0
- package/dist/{ReportView-B1ZAs4yf.js → ReportView-BCIF9pfK.js} +6 -6
- package/dist/{Setting-meufQSiN.js → Setting-GpnUu9w8.js} +3 -3
- package/dist/{Template-Cuw48oZu.js → Template-DpSlQFRA.js} +3 -3
- package/dist/{TileEditor-CJ19iLga.js → TileEditor-BOS7PNiA.js} +5 -5
- package/dist/{TransitionFade-CRz0oSgy.js → TransitionFade-BLd1lYmg.js} +4 -4
- package/dist/{app-CBAx0gGV.js → app-Q8KuGVuE.js} +560 -524
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-DYQQYVie.js → useRestaurantPermission-O7a5nZwO.js} +1 -1
- package/package.json +1 -1
- package/dist/ReportEditor-D6jLHYOI.js +0 -1469
|
@@ -4,7 +4,7 @@ var Qe = (e, t, r) => kr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
|
4
4
|
import { isRef as Wr, ref as ne, shallowRef as Zr, watchEffect as Jr, computed as me, h as no, defineComponent as Jo, createBlock as _r, renderSlot as $r, createCommentVNode as en, unref as Ne, openBlock as _o, createElementBlock as tn, createElementVNode as Je, toDisplayString as Eo, readonly as $t, watch as on, defineAsyncComponent as $o } from "vue";
|
|
5
5
|
import { useRoute as rn, useRouter as nn, createRouter as an, createWebHistory as cn } from "vue-router";
|
|
6
6
|
import { useCoreStore as yo, useI18n as An } from "@feedmepos/mf-common";
|
|
7
|
-
import { defineStore as ct, storeToRefs as
|
|
7
|
+
import { defineStore as ct, storeToRefs as Ue } from "pinia";
|
|
8
8
|
import { components as sn } from "@feedmepos/ui-library";
|
|
9
9
|
const mn = {
|
|
10
10
|
common: {
|
|
@@ -82,12 +82,21 @@ const mn = {
|
|
|
82
82
|
saveReport: "Save Report",
|
|
83
83
|
timezone: "Timezone",
|
|
84
84
|
batch: "Batch",
|
|
85
|
+
batches: "Batches",
|
|
85
86
|
noBatch: "No Batch",
|
|
86
87
|
days: "Days",
|
|
87
88
|
locations: "Locations",
|
|
88
89
|
queryDatasource: "Query Datasource",
|
|
89
90
|
bigquery: "BigQuery",
|
|
90
|
-
postgresql: "PostgreSQL"
|
|
91
|
+
postgresql: "PostgreSQL",
|
|
92
|
+
estimatedBqCost: "Estimated Cost Per Day",
|
|
93
|
+
estimatedCostBatchSingular: "batch",
|
|
94
|
+
estimatedCostBatchPlural: "batches",
|
|
95
|
+
estimatedCostFormula: "{batchCount} {batchLabel} x {baseCost} = {totalCost} per day per export",
|
|
96
|
+
estimatedCostGuidelineBigQuery: "BigQuery adds extra cost.",
|
|
97
|
+
estimatedCostGuidelineDateRange: "Larger date ranges increase cost.",
|
|
98
|
+
estimatedCostGuidelineLocationBatch: "More location batches increase cost.",
|
|
99
|
+
bytesScanned: "Bytes to scan: {bytes}"
|
|
91
100
|
},
|
|
92
101
|
category: {
|
|
93
102
|
All: "All",
|
|
@@ -1723,12 +1732,21 @@ const mn = {
|
|
|
1723
1732
|
saveReport: "保存报表",
|
|
1724
1733
|
timezone: "时区",
|
|
1725
1734
|
batch: "批量",
|
|
1735
|
+
batches: "批次",
|
|
1726
1736
|
noBatch: "无批量",
|
|
1727
1737
|
days: "天数",
|
|
1728
1738
|
locations: "门店数",
|
|
1729
1739
|
queryDatasource: "查询数据源",
|
|
1730
1740
|
bigquery: "BigQuery",
|
|
1731
|
-
postgresql: "PostgreSQL"
|
|
1741
|
+
postgresql: "PostgreSQL",
|
|
1742
|
+
estimatedBqCost: "每日预估费用",
|
|
1743
|
+
estimatedCostBatchSingular: "批次",
|
|
1744
|
+
estimatedCostBatchPlural: "批次",
|
|
1745
|
+
estimatedCostFormula: "{batchCount} {batchLabel} x {baseCost} = {totalCost} / 每日每次导出",
|
|
1746
|
+
estimatedCostGuidelineBigQuery: "选择 BigQuery 会增加费用。",
|
|
1747
|
+
estimatedCostGuidelineDateRange: "更大的日期范围会增加费用。",
|
|
1748
|
+
estimatedCostGuidelineLocationBatch: "更多的门店批次会增加费用。",
|
|
1749
|
+
bytesScanned: "扫描字节数:{bytes}"
|
|
1732
1750
|
},
|
|
1733
1751
|
category: {
|
|
1734
1752
|
All: "全部",
|
|
@@ -3286,9 +3304,9 @@ const mn = {
|
|
|
3286
3304
|
cancelled: "已取消"
|
|
3287
3305
|
}
|
|
3288
3306
|
}
|
|
3289
|
-
}, pn = {
|
|
3290
|
-
report: dn
|
|
3291
3307
|
}, un = {
|
|
3308
|
+
report: dn
|
|
3309
|
+
}, pn = {
|
|
3292
3310
|
common: {
|
|
3293
3311
|
report: "รายงาน",
|
|
3294
3312
|
filter: "ตัวกรอง",
|
|
@@ -3364,12 +3382,21 @@ const mn = {
|
|
|
3364
3382
|
saveReport: "บันทึกรายงาน",
|
|
3365
3383
|
timezone: "เขตเวลา",
|
|
3366
3384
|
batch: "แบทช์",
|
|
3385
|
+
batches: "แบทช์",
|
|
3367
3386
|
noBatch: "ไม่มีแบทช์",
|
|
3368
3387
|
days: "วัน",
|
|
3369
3388
|
locations: "สาขา",
|
|
3370
3389
|
queryDatasource: "แหล่งข้อมูลคิวรี",
|
|
3371
3390
|
bigquery: "BigQuery",
|
|
3372
|
-
postgresql: "PostgreSQL"
|
|
3391
|
+
postgresql: "PostgreSQL",
|
|
3392
|
+
estimatedBqCost: "ค่าใช้จ่ายโดยประมาณต่อวัน",
|
|
3393
|
+
estimatedCostBatchSingular: "แบทช์",
|
|
3394
|
+
estimatedCostBatchPlural: "แบทช์",
|
|
3395
|
+
estimatedCostFormula: "{batchCount} {batchLabel} x {baseCost} = {totalCost} ต่อวันต่อการส่งออก",
|
|
3396
|
+
estimatedCostGuidelineBigQuery: "การใช้ BigQuery มีค่าใช้จ่ายเพิ่มขึ้น",
|
|
3397
|
+
estimatedCostGuidelineDateRange: "ช่วงวันที่ที่กว้างขึ้นทำให้ค่าใช้จ่ายเพิ่มขึ้น",
|
|
3398
|
+
estimatedCostGuidelineLocationBatch: "การเพิ่มจำนวนแบทช์ของสาขาทำให้ค่าใช้จ่ายเพิ่มขึ้น",
|
|
3399
|
+
bytesScanned: "ไบต์ที่สแกน: {bytes}"
|
|
3373
3400
|
},
|
|
3374
3401
|
category: {
|
|
3375
3402
|
All: "ทั้งหมด",
|
|
@@ -4929,7 +4956,7 @@ const mn = {
|
|
|
4929
4956
|
}
|
|
4930
4957
|
}
|
|
4931
4958
|
}, fn = {
|
|
4932
|
-
report:
|
|
4959
|
+
report: pn
|
|
4933
4960
|
}, gn = {
|
|
4934
4961
|
common: {
|
|
4935
4962
|
report: "報表 | 報表",
|
|
@@ -5006,12 +5033,21 @@ const mn = {
|
|
|
5006
5033
|
saveReport: "儲存報表",
|
|
5007
5034
|
timezone: "時區",
|
|
5008
5035
|
batch: "批量",
|
|
5036
|
+
batches: "批次",
|
|
5009
5037
|
noBatch: "無批量",
|
|
5010
5038
|
days: "天數",
|
|
5011
5039
|
locations: "門店數",
|
|
5012
5040
|
queryDatasource: "查詢資料源",
|
|
5013
5041
|
bigquery: "BigQuery",
|
|
5014
|
-
postgresql: "PostgreSQL"
|
|
5042
|
+
postgresql: "PostgreSQL",
|
|
5043
|
+
estimatedBqCost: "每日預估費用",
|
|
5044
|
+
estimatedCostBatchSingular: "批次",
|
|
5045
|
+
estimatedCostBatchPlural: "批次",
|
|
5046
|
+
estimatedCostFormula: "{batchCount} {batchLabel} x {baseCost} = {totalCost} / 每日每次匯出",
|
|
5047
|
+
estimatedCostGuidelineBigQuery: "選擇 BigQuery 會增加費用。",
|
|
5048
|
+
estimatedCostGuidelineDateRange: "更大的日期範圍會增加費用。",
|
|
5049
|
+
estimatedCostGuidelineLocationBatch: "更多的門店批次會增加費用。",
|
|
5050
|
+
bytesScanned: "掃描位元組數:{bytes}"
|
|
5015
5051
|
},
|
|
5016
5052
|
category: {
|
|
5017
5053
|
All: "全部",
|
|
@@ -6591,92 +6627,92 @@ var er = { exports: {} };
|
|
|
6591
6627
|
(function(r, o) {
|
|
6592
6628
|
e.exports = o();
|
|
6593
6629
|
})(je, function() {
|
|
6594
|
-
var r = 1e3, o = 6e4, n = 36e5, a = "millisecond", i = "second", s = "minute", f = "hour", y = "day",
|
|
6595
|
-
var
|
|
6596
|
-
return "[" + R + (
|
|
6597
|
-
} }, T = function(R,
|
|
6630
|
+
var r = 1e3, o = 6e4, n = 36e5, a = "millisecond", i = "second", s = "minute", f = "hour", y = "day", u = "week", D = "month", X = "quarter", j = "year", b = "date", B = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, K = /\[([^\]]+)]|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, I = { 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(R) {
|
|
6631
|
+
var U = ["th", "st", "nd", "rd"], C = R % 100;
|
|
6632
|
+
return "[" + R + (U[(C - 20) % 10] || U[C] || U[0]) + "]";
|
|
6633
|
+
} }, T = function(R, U, C) {
|
|
6598
6634
|
var O = String(R);
|
|
6599
|
-
return !O || O.length >=
|
|
6635
|
+
return !O || O.length >= U ? R : "" + Array(U + 1 - O.length).join(C) + R;
|
|
6600
6636
|
}, N = { s: T, z: function(R) {
|
|
6601
|
-
var
|
|
6602
|
-
return (
|
|
6603
|
-
}, m: function R(
|
|
6604
|
-
if (
|
|
6605
|
-
var O = 12 * (
|
|
6606
|
-
return +(-(O + (
|
|
6637
|
+
var U = -R.utcOffset(), C = Math.abs(U), O = Math.floor(C / 60), H = C % 60;
|
|
6638
|
+
return (U <= 0 ? "+" : "-") + T(O, 2, "0") + ":" + T(H, 2, "0");
|
|
6639
|
+
}, m: function R(U, C) {
|
|
6640
|
+
if (U.date() < C.date()) return -R(C, U);
|
|
6641
|
+
var O = 12 * (C.year() - U.year()) + (C.month() - U.month()), H = U.clone().add(O, D), h = C - H < 0, A = U.clone().add(O + (h ? -1 : 1), D);
|
|
6642
|
+
return +(-(O + (C - H) / (h ? H - A : A - H)) || 0);
|
|
6607
6643
|
}, a: function(R) {
|
|
6608
6644
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
6609
6645
|
}, p: function(R) {
|
|
6610
|
-
return { M: D, y: j, w:
|
|
6646
|
+
return { M: D, y: j, w: u, d: y, D: b, h: f, m: s, s: i, ms: a, Q: X }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
6611
6647
|
}, u: function(R) {
|
|
6612
6648
|
return R === void 0;
|
|
6613
6649
|
} }, S = "en", L = {};
|
|
6614
6650
|
L[S] = I;
|
|
6615
6651
|
var J = "$isDayjsObject", _ = function(R) {
|
|
6616
6652
|
return R instanceof x || !(!R || !R[J]);
|
|
6617
|
-
}, l = function R(
|
|
6653
|
+
}, l = function R(U, C, O) {
|
|
6618
6654
|
var H;
|
|
6619
|
-
if (!
|
|
6620
|
-
if (typeof
|
|
6621
|
-
var h =
|
|
6622
|
-
L[h] && (H = h),
|
|
6623
|
-
var A =
|
|
6655
|
+
if (!U) return S;
|
|
6656
|
+
if (typeof U == "string") {
|
|
6657
|
+
var h = U.toLowerCase();
|
|
6658
|
+
L[h] && (H = h), C && (L[h] = C, H = h);
|
|
6659
|
+
var A = U.split("-");
|
|
6624
6660
|
if (!H && A.length > 1) return R(A[0]);
|
|
6625
6661
|
} else {
|
|
6626
|
-
var c =
|
|
6627
|
-
L[c] =
|
|
6662
|
+
var c = U.name;
|
|
6663
|
+
L[c] = U, H = c;
|
|
6628
6664
|
}
|
|
6629
6665
|
return !O && H && (S = H), H || !O && S;
|
|
6630
|
-
}, F = function(R,
|
|
6666
|
+
}, F = function(R, U) {
|
|
6631
6667
|
if (_(R)) return R.clone();
|
|
6632
|
-
var
|
|
6633
|
-
return
|
|
6668
|
+
var C = typeof U == "object" ? U : {};
|
|
6669
|
+
return C.date = R, C.args = arguments, new x(C);
|
|
6634
6670
|
}, v = N;
|
|
6635
|
-
v.l = l, v.i = _, v.w = function(R,
|
|
6636
|
-
return F(R, { locale:
|
|
6671
|
+
v.l = l, v.i = _, v.w = function(R, U) {
|
|
6672
|
+
return F(R, { locale: U.$L, utc: U.$u, x: U.$x, $offset: U.$offset });
|
|
6637
6673
|
};
|
|
6638
6674
|
var x = function() {
|
|
6639
|
-
function R(
|
|
6640
|
-
this.$L = l(
|
|
6675
|
+
function R(C) {
|
|
6676
|
+
this.$L = l(C.locale, null, !0), this.parse(C), this.$x = this.$x || C.x || {}, this[J] = !0;
|
|
6641
6677
|
}
|
|
6642
|
-
var
|
|
6643
|
-
return
|
|
6678
|
+
var U = R.prototype;
|
|
6679
|
+
return U.parse = function(C) {
|
|
6644
6680
|
this.$d = function(O) {
|
|
6645
6681
|
var H = O.date, h = O.utc;
|
|
6646
6682
|
if (H === null) return /* @__PURE__ */ new Date(NaN);
|
|
6647
6683
|
if (v.u(H)) return /* @__PURE__ */ new Date();
|
|
6648
6684
|
if (H instanceof Date) return new Date(H);
|
|
6649
6685
|
if (typeof H == "string" && !/Z$/i.test(H)) {
|
|
6650
|
-
var A = H.match(
|
|
6686
|
+
var A = H.match(p);
|
|
6651
6687
|
if (A) {
|
|
6652
6688
|
var c = A[2] - 1 || 0, d = (A[7] || "0").substring(0, 3);
|
|
6653
6689
|
return h ? new Date(Date.UTC(A[1], c, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, d)) : new Date(A[1], c, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, d);
|
|
6654
6690
|
}
|
|
6655
6691
|
}
|
|
6656
6692
|
return new Date(H);
|
|
6657
|
-
}(
|
|
6658
|
-
},
|
|
6659
|
-
var
|
|
6660
|
-
this.$y =
|
|
6661
|
-
},
|
|
6693
|
+
}(C), this.init();
|
|
6694
|
+
}, U.init = function() {
|
|
6695
|
+
var C = this.$d;
|
|
6696
|
+
this.$y = C.getFullYear(), this.$M = C.getMonth(), this.$D = C.getDate(), this.$W = C.getDay(), this.$H = C.getHours(), this.$m = C.getMinutes(), this.$s = C.getSeconds(), this.$ms = C.getMilliseconds();
|
|
6697
|
+
}, U.$utils = function() {
|
|
6662
6698
|
return v;
|
|
6663
|
-
},
|
|
6699
|
+
}, U.isValid = function() {
|
|
6664
6700
|
return this.$d.toString() !== B;
|
|
6665
|
-
},
|
|
6666
|
-
var H = F(
|
|
6701
|
+
}, U.isSame = function(C, O) {
|
|
6702
|
+
var H = F(C);
|
|
6667
6703
|
return this.startOf(O) <= H && H <= this.endOf(O);
|
|
6668
|
-
},
|
|
6669
|
-
return F(
|
|
6670
|
-
},
|
|
6671
|
-
return this.endOf(O) < F(
|
|
6672
|
-
},
|
|
6673
|
-
return v.u(
|
|
6674
|
-
},
|
|
6704
|
+
}, U.isAfter = function(C, O) {
|
|
6705
|
+
return F(C) < this.startOf(O);
|
|
6706
|
+
}, U.isBefore = function(C, O) {
|
|
6707
|
+
return this.endOf(O) < F(C);
|
|
6708
|
+
}, U.$g = function(C, O, H) {
|
|
6709
|
+
return v.u(C) ? this[O] : this.set(H, C);
|
|
6710
|
+
}, U.unix = function() {
|
|
6675
6711
|
return Math.floor(this.valueOf() / 1e3);
|
|
6676
|
-
},
|
|
6712
|
+
}, U.valueOf = function() {
|
|
6677
6713
|
return this.$d.getTime();
|
|
6678
|
-
},
|
|
6679
|
-
var H = this, h = !!v.u(O) || O, A = v.p(
|
|
6714
|
+
}, U.startOf = function(C, O) {
|
|
6715
|
+
var H = this, h = !!v.u(O) || O, A = v.p(C), c = function(Q, Y) {
|
|
6680
6716
|
var ee = v.w(H.$u ? Date.UTC(H.$y, Y, Q) : new Date(H.$y, Y, Q), H);
|
|
6681
6717
|
return h ? ee : ee.endOf(y);
|
|
6682
6718
|
}, d = function(Q, Y) {
|
|
@@ -6687,7 +6723,7 @@ var er = { exports: {} };
|
|
|
6687
6723
|
return h ? c(1, 0) : c(31, 11);
|
|
6688
6724
|
case D:
|
|
6689
6725
|
return h ? c(1, P) : c(0, P + 1);
|
|
6690
|
-
case
|
|
6726
|
+
case u:
|
|
6691
6727
|
var G = this.$locale().weekStart || 0, Z = (m < G ? m + 7 : m) - G;
|
|
6692
6728
|
return c(h ? E - Z : E + (6 - Z), P);
|
|
6693
6729
|
case y:
|
|
@@ -6702,38 +6738,38 @@ var er = { exports: {} };
|
|
|
6702
6738
|
default:
|
|
6703
6739
|
return this.clone();
|
|
6704
6740
|
}
|
|
6705
|
-
},
|
|
6706
|
-
return this.startOf(
|
|
6707
|
-
},
|
|
6708
|
-
var H, h = v.p(
|
|
6741
|
+
}, U.endOf = function(C) {
|
|
6742
|
+
return this.startOf(C, !1);
|
|
6743
|
+
}, U.$set = function(C, O) {
|
|
6744
|
+
var H, h = v.p(C), A = "set" + (this.$u ? "UTC" : ""), c = (H = {}, H[y] = A + "Date", H[b] = A + "Date", H[D] = A + "Month", H[j] = A + "FullYear", H[f] = A + "Hours", H[s] = A + "Minutes", H[i] = A + "Seconds", H[a] = A + "Milliseconds", H)[h], d = h === y ? this.$D + (O - this.$W) : O;
|
|
6709
6745
|
if (h === D || h === j) {
|
|
6710
6746
|
var m = this.clone().set(b, 1);
|
|
6711
6747
|
m.$d[c](d), m.init(), this.$d = m.set(b, Math.min(this.$D, m.daysInMonth())).$d;
|
|
6712
6748
|
} else c && this.$d[c](d);
|
|
6713
6749
|
return this.init(), this;
|
|
6714
|
-
},
|
|
6715
|
-
return this.clone().$set(
|
|
6716
|
-
},
|
|
6717
|
-
return this[v.p(
|
|
6718
|
-
},
|
|
6750
|
+
}, U.set = function(C, O) {
|
|
6751
|
+
return this.clone().$set(C, O);
|
|
6752
|
+
}, U.get = function(C) {
|
|
6753
|
+
return this[v.p(C)]();
|
|
6754
|
+
}, U.add = function(C, O) {
|
|
6719
6755
|
var H, h = this;
|
|
6720
|
-
|
|
6756
|
+
C = Number(C);
|
|
6721
6757
|
var A = v.p(O), c = function(P) {
|
|
6722
6758
|
var E = F(h);
|
|
6723
|
-
return v.w(E.date(E.date() + Math.round(P *
|
|
6759
|
+
return v.w(E.date(E.date() + Math.round(P * C)), h);
|
|
6724
6760
|
};
|
|
6725
|
-
if (A === D) return this.set(D, this.$M +
|
|
6726
|
-
if (A === j) return this.set(j, this.$y +
|
|
6761
|
+
if (A === D) return this.set(D, this.$M + C);
|
|
6762
|
+
if (A === j) return this.set(j, this.$y + C);
|
|
6727
6763
|
if (A === y) return c(1);
|
|
6728
|
-
if (A ===
|
|
6729
|
-
var d = (H = {}, H[s] = o, H[f] = n, H[i] = r, H)[A] || 1, m = this.$d.getTime() +
|
|
6764
|
+
if (A === u) return c(7);
|
|
6765
|
+
var d = (H = {}, H[s] = o, H[f] = n, H[i] = r, H)[A] || 1, m = this.$d.getTime() + C * d;
|
|
6730
6766
|
return v.w(m, this);
|
|
6731
|
-
},
|
|
6732
|
-
return this.add(-1 *
|
|
6733
|
-
},
|
|
6767
|
+
}, U.subtract = function(C, O) {
|
|
6768
|
+
return this.add(-1 * C, O);
|
|
6769
|
+
}, U.format = function(C) {
|
|
6734
6770
|
var O = this, H = this.$locale();
|
|
6735
6771
|
if (!this.isValid()) return H.invalidDate || B;
|
|
6736
|
-
var h =
|
|
6772
|
+
var h = C || "YYYY-MM-DDTHH:mm:ssZ", A = v.z(this), c = this.$H, d = this.$m, m = this.$M, P = H.weekdays, E = H.months, V = H.meridiem, G = function(Y, ee, Ae, ie) {
|
|
6737
6773
|
return Y && (Y[ee] || Y(O, h)) || Ae[ee].slice(0, ie);
|
|
6738
6774
|
}, Z = function(Y) {
|
|
6739
6775
|
return v.s(c % 12 || 12, Y, "0");
|
|
@@ -6796,10 +6832,10 @@ var er = { exports: {} };
|
|
|
6796
6832
|
return null;
|
|
6797
6833
|
}(Y) || A.replace(":", "");
|
|
6798
6834
|
});
|
|
6799
|
-
},
|
|
6835
|
+
}, U.utcOffset = function() {
|
|
6800
6836
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
6801
|
-
},
|
|
6802
|
-
var h, A = this, c = v.p(O), d = F(
|
|
6837
|
+
}, U.diff = function(C, O, H) {
|
|
6838
|
+
var h, A = this, c = v.p(O), d = F(C), m = (d.utcOffset() - this.utcOffset()) * o, P = this - d, E = function() {
|
|
6803
6839
|
return v.m(A, d);
|
|
6804
6840
|
};
|
|
6805
6841
|
switch (c) {
|
|
@@ -6812,7 +6848,7 @@ var er = { exports: {} };
|
|
|
6812
6848
|
case X:
|
|
6813
6849
|
h = E() / 3;
|
|
6814
6850
|
break;
|
|
6815
|
-
case
|
|
6851
|
+
case u:
|
|
6816
6852
|
h = (P - m) / 6048e5;
|
|
6817
6853
|
break;
|
|
6818
6854
|
case y:
|
|
@@ -6831,32 +6867,32 @@ var er = { exports: {} };
|
|
|
6831
6867
|
h = P;
|
|
6832
6868
|
}
|
|
6833
6869
|
return H ? h : v.a(h);
|
|
6834
|
-
},
|
|
6870
|
+
}, U.daysInMonth = function() {
|
|
6835
6871
|
return this.endOf(D).$D;
|
|
6836
|
-
},
|
|
6872
|
+
}, U.$locale = function() {
|
|
6837
6873
|
return L[this.$L];
|
|
6838
|
-
},
|
|
6839
|
-
if (!
|
|
6840
|
-
var H = this.clone(), h = l(
|
|
6874
|
+
}, U.locale = function(C, O) {
|
|
6875
|
+
if (!C) return this.$L;
|
|
6876
|
+
var H = this.clone(), h = l(C, O, !0);
|
|
6841
6877
|
return h && (H.$L = h), H;
|
|
6842
|
-
},
|
|
6878
|
+
}, U.clone = function() {
|
|
6843
6879
|
return v.w(this.$d, this);
|
|
6844
|
-
},
|
|
6880
|
+
}, U.toDate = function() {
|
|
6845
6881
|
return new Date(this.valueOf());
|
|
6846
|
-
},
|
|
6882
|
+
}, U.toJSON = function() {
|
|
6847
6883
|
return this.isValid() ? this.toISOString() : null;
|
|
6848
|
-
},
|
|
6884
|
+
}, U.toISOString = function() {
|
|
6849
6885
|
return this.$d.toISOString();
|
|
6850
|
-
},
|
|
6886
|
+
}, U.toString = function() {
|
|
6851
6887
|
return this.$d.toUTCString();
|
|
6852
6888
|
}, R;
|
|
6853
6889
|
}(), M = x.prototype;
|
|
6854
6890
|
return F.prototype = M, [["$ms", a], ["$s", i], ["$m", s], ["$H", f], ["$W", y], ["$M", D], ["$y", j], ["$D", b]].forEach(function(R) {
|
|
6855
|
-
M[R[1]] = function(
|
|
6856
|
-
return this.$g(
|
|
6891
|
+
M[R[1]] = function(U) {
|
|
6892
|
+
return this.$g(U, R[0], R[1]);
|
|
6857
6893
|
};
|
|
6858
|
-
}), F.extend = function(R,
|
|
6859
|
-
return R.$i || (R(
|
|
6894
|
+
}), F.extend = function(R, U) {
|
|
6895
|
+
return R.$i || (R(U, x, F), R.$i = !0), F;
|
|
6860
6896
|
}, F.locale = l, F.isDayjs = _, F.unix = function(R) {
|
|
6861
6897
|
return F(1e3 * R);
|
|
6862
6898
|
}, F.en = L[S], F.Ls = L, F.p = {}, F;
|
|
@@ -6873,11 +6909,11 @@ var tr = { exports: {} };
|
|
|
6873
6909
|
return function(a, i, s) {
|
|
6874
6910
|
var f = i.prototype;
|
|
6875
6911
|
s.utc = function(B) {
|
|
6876
|
-
var
|
|
6877
|
-
return new i(
|
|
6912
|
+
var p = { date: B, utc: !0, args: arguments };
|
|
6913
|
+
return new i(p);
|
|
6878
6914
|
}, f.utc = function(B) {
|
|
6879
|
-
var
|
|
6880
|
-
return B ?
|
|
6915
|
+
var p = s(this.toDate(), { locale: this.$L, utc: !0 });
|
|
6916
|
+
return B ? p.add(this.utcOffset(), r) : p;
|
|
6881
6917
|
}, f.local = function() {
|
|
6882
6918
|
return s(this.toDate(), { locale: this.$L, utc: !1 });
|
|
6883
6919
|
};
|
|
@@ -6885,15 +6921,15 @@ var tr = { exports: {} };
|
|
|
6885
6921
|
f.parse = function(B) {
|
|
6886
6922
|
B.utc && (this.$u = !0), this.$utils().u(B.$offset) || (this.$offset = B.$offset), y.call(this, B);
|
|
6887
6923
|
};
|
|
6888
|
-
var
|
|
6924
|
+
var u = f.init;
|
|
6889
6925
|
f.init = function() {
|
|
6890
6926
|
if (this.$u) {
|
|
6891
6927
|
var B = this.$d;
|
|
6892
6928
|
this.$y = B.getUTCFullYear(), this.$M = B.getUTCMonth(), this.$D = B.getUTCDate(), this.$W = B.getUTCDay(), this.$H = B.getUTCHours(), this.$m = B.getUTCMinutes(), this.$s = B.getUTCSeconds(), this.$ms = B.getUTCMilliseconds();
|
|
6893
|
-
} else
|
|
6929
|
+
} else u.call(this);
|
|
6894
6930
|
};
|
|
6895
6931
|
var D = f.utcOffset;
|
|
6896
|
-
f.utcOffset = function(B,
|
|
6932
|
+
f.utcOffset = function(B, p) {
|
|
6897
6933
|
var K = this.$utils().u;
|
|
6898
6934
|
if (K(B)) return this.$u ? 0 : K(this.$offset) ? D.call(this) : this.$offset;
|
|
6899
6935
|
if (typeof B == "string" && (B = function(S) {
|
|
@@ -6904,7 +6940,7 @@ var tr = { exports: {} };
|
|
|
6904
6940
|
return l === 0 ? 0 : _ === "+" ? l : -l;
|
|
6905
6941
|
}(B), B === null)) return this;
|
|
6906
6942
|
var I = Math.abs(B) <= 16 ? 60 * B : B, T = this;
|
|
6907
|
-
if (
|
|
6943
|
+
if (p) return T.$offset = I, T.$u = B === 0, T;
|
|
6908
6944
|
if (B !== 0) {
|
|
6909
6945
|
var N = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
6910
6946
|
(T = this.local().add(I + N, r)).$offset = I, T.$x.$localOffset = N;
|
|
@@ -6913,8 +6949,8 @@ var tr = { exports: {} };
|
|
|
6913
6949
|
};
|
|
6914
6950
|
var X = f.format;
|
|
6915
6951
|
f.format = function(B) {
|
|
6916
|
-
var
|
|
6917
|
-
return X.call(this,
|
|
6952
|
+
var p = B || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
6953
|
+
return X.call(this, p);
|
|
6918
6954
|
}, f.valueOf = function() {
|
|
6919
6955
|
var B = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
6920
6956
|
return this.$d.valueOf() - 6e4 * B;
|
|
@@ -6930,10 +6966,10 @@ var tr = { exports: {} };
|
|
|
6930
6966
|
return B === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : j.call(this);
|
|
6931
6967
|
};
|
|
6932
6968
|
var b = f.diff;
|
|
6933
|
-
f.diff = function(B,
|
|
6934
|
-
if (B && this.$u === B.$u) return b.call(this, B,
|
|
6969
|
+
f.diff = function(B, p, K) {
|
|
6970
|
+
if (B && this.$u === B.$u) return b.call(this, B, p, K);
|
|
6935
6971
|
var I = this.local(), T = s(B).local();
|
|
6936
|
-
return b.call(I, T,
|
|
6972
|
+
return b.call(I, T, p, K);
|
|
6937
6973
|
};
|
|
6938
6974
|
};
|
|
6939
6975
|
});
|
|
@@ -6949,50 +6985,50 @@ var or = { exports: {} };
|
|
|
6949
6985
|
return function(n, a, i) {
|
|
6950
6986
|
var s, f = function(X, j, b) {
|
|
6951
6987
|
b === void 0 && (b = {});
|
|
6952
|
-
var B = new Date(X),
|
|
6988
|
+
var B = new Date(X), p = function(K, I) {
|
|
6953
6989
|
I === void 0 && (I = {});
|
|
6954
6990
|
var T = I.timeZoneName || "short", N = K + "|" + T, S = o[N];
|
|
6955
6991
|
return S || (S = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: K, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: T }), o[N] = S), S;
|
|
6956
6992
|
}(j, b);
|
|
6957
|
-
return
|
|
6993
|
+
return p.formatToParts(B);
|
|
6958
6994
|
}, y = function(X, j) {
|
|
6959
|
-
for (var b = f(X, j), B = [],
|
|
6960
|
-
var K = b[
|
|
6995
|
+
for (var b = f(X, j), B = [], p = 0; p < b.length; p += 1) {
|
|
6996
|
+
var K = b[p], I = K.type, T = K.value, N = r[I];
|
|
6961
6997
|
N >= 0 && (B[N] = parseInt(T, 10));
|
|
6962
6998
|
}
|
|
6963
6999
|
var S = B[3], L = S === 24 ? 0 : S, J = B[0] + "-" + B[1] + "-" + B[2] + " " + L + ":" + B[4] + ":" + B[5] + ":000", _ = +X;
|
|
6964
7000
|
return (i.utc(J).valueOf() - (_ -= _ % 1e3)) / 6e4;
|
|
6965
|
-
},
|
|
6966
|
-
|
|
7001
|
+
}, u = a.prototype;
|
|
7002
|
+
u.tz = function(X, j) {
|
|
6967
7003
|
X === void 0 && (X = s);
|
|
6968
|
-
var b, B = this.utcOffset(),
|
|
7004
|
+
var b, B = this.utcOffset(), p = this.toDate(), K = p.toLocaleString("en-US", { timeZone: X }), I = Math.round((p - new Date(K)) / 1e3 / 60), T = 15 * -Math.round(p.getTimezoneOffset() / 15) - I;
|
|
6969
7005
|
if (!Number(T)) b = this.utcOffset(0, j);
|
|
6970
7006
|
else if (b = i(K, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(T, !0), j) {
|
|
6971
7007
|
var N = b.utcOffset();
|
|
6972
7008
|
b = b.add(B - N, "minute");
|
|
6973
7009
|
}
|
|
6974
7010
|
return b.$x.$timezone = X, b;
|
|
6975
|
-
},
|
|
7011
|
+
}, u.offsetName = function(X) {
|
|
6976
7012
|
var j = this.$x.$timezone || i.tz.guess(), b = f(this.valueOf(), j, { timeZoneName: X }).find(function(B) {
|
|
6977
7013
|
return B.type.toLowerCase() === "timezonename";
|
|
6978
7014
|
});
|
|
6979
7015
|
return b && b.value;
|
|
6980
7016
|
};
|
|
6981
|
-
var D =
|
|
6982
|
-
|
|
7017
|
+
var D = u.startOf;
|
|
7018
|
+
u.startOf = function(X, j) {
|
|
6983
7019
|
if (!this.$x || !this.$x.$timezone) return D.call(this, X, j);
|
|
6984
7020
|
var b = i(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
6985
7021
|
return D.call(b, X, j).tz(this.$x.$timezone, !0);
|
|
6986
7022
|
}, i.tz = function(X, j, b) {
|
|
6987
|
-
var B = b && j,
|
|
6988
|
-
if (typeof X != "string") return i(X).tz(
|
|
7023
|
+
var B = b && j, p = b || j || s, K = y(+i(), p);
|
|
7024
|
+
if (typeof X != "string") return i(X).tz(p);
|
|
6989
7025
|
var I = function(L, J, _) {
|
|
6990
7026
|
var l = L - 60 * J * 1e3, F = y(l, _);
|
|
6991
7027
|
if (J === F) return [l, J];
|
|
6992
7028
|
var v = y(l -= 60 * (F - J) * 1e3, _);
|
|
6993
7029
|
return F === v ? [l, F] : [L - 60 * Math.min(F, v) * 1e3, Math.max(F, v)];
|
|
6994
|
-
}(i.utc(X, B).valueOf(), K,
|
|
6995
|
-
return S.$x.$timezone =
|
|
7030
|
+
}(i.utc(X, B).valueOf(), K, p), T = I[0], N = I[1], S = i(T).utcOffset(N);
|
|
7031
|
+
return S.$x.$timezone = p, S;
|
|
6996
7032
|
}, i.tz.guess = function() {
|
|
6997
7033
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
6998
7034
|
}, i.tz.setDefault = function(X) {
|
|
@@ -7008,65 +7044,65 @@ var rr = { exports: {} };
|
|
|
7008
7044
|
(function(r, o) {
|
|
7009
7045
|
e.exports = o();
|
|
7010
7046
|
})(je, function() {
|
|
7011
|
-
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, o = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, a = /\d\d/, i = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, f = {}, y = function(
|
|
7012
|
-
return (
|
|
7013
|
-
},
|
|
7047
|
+
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, o = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, n = /\d/, a = /\d\d/, i = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, f = {}, y = function(p) {
|
|
7048
|
+
return (p = +p) + (p > 68 ? 1900 : 2e3);
|
|
7049
|
+
}, u = function(p) {
|
|
7014
7050
|
return function(K) {
|
|
7015
|
-
this[
|
|
7051
|
+
this[p] = +K;
|
|
7016
7052
|
};
|
|
7017
|
-
}, D = [/[+-]\d\d:?(\d\d)?|Z/, function(
|
|
7053
|
+
}, D = [/[+-]\d\d:?(\d\d)?|Z/, function(p) {
|
|
7018
7054
|
(this.zone || (this.zone = {})).offset = function(K) {
|
|
7019
7055
|
if (!K || K === "Z") return 0;
|
|
7020
7056
|
var I = K.match(/([+-]|\d\d)/g), T = 60 * I[1] + (+I[2] || 0);
|
|
7021
7057
|
return T === 0 ? 0 : I[0] === "+" ? -T : T;
|
|
7022
|
-
}(
|
|
7023
|
-
}], X = function(
|
|
7024
|
-
var K = f[
|
|
7058
|
+
}(p);
|
|
7059
|
+
}], X = function(p) {
|
|
7060
|
+
var K = f[p];
|
|
7025
7061
|
return K && (K.indexOf ? K : K.s.concat(K.f));
|
|
7026
|
-
}, j = function(
|
|
7062
|
+
}, j = function(p, K) {
|
|
7027
7063
|
var I, T = f.meridiem;
|
|
7028
7064
|
if (T) {
|
|
7029
|
-
for (var N = 1; N <= 24; N += 1) if (
|
|
7065
|
+
for (var N = 1; N <= 24; N += 1) if (p.indexOf(T(N, 0, K)) > -1) {
|
|
7030
7066
|
I = N > 12;
|
|
7031
7067
|
break;
|
|
7032
7068
|
}
|
|
7033
|
-
} else I =
|
|
7069
|
+
} else I = p === (K ? "pm" : "PM");
|
|
7034
7070
|
return I;
|
|
7035
|
-
}, b = { A: [s, function(
|
|
7036
|
-
this.afternoon = j(
|
|
7037
|
-
}], a: [s, function(
|
|
7038
|
-
this.afternoon = j(
|
|
7039
|
-
}], Q: [n, function(
|
|
7040
|
-
this.month = 3 * (
|
|
7041
|
-
}], S: [n, function(
|
|
7042
|
-
this.milliseconds = 100 * +
|
|
7043
|
-
}], SS: [a, function(
|
|
7044
|
-
this.milliseconds = 10 * +
|
|
7045
|
-
}], SSS: [/\d{3}/, function(
|
|
7046
|
-
this.milliseconds = +
|
|
7047
|
-
}], s: [i,
|
|
7048
|
-
var K = f.ordinal, I =
|
|
7049
|
-
if (this.day = I[0], K) for (var T = 1; T <= 31; T += 1) K(T).replace(/\[|\]/g, "") ===
|
|
7050
|
-
}], w: [i,
|
|
7071
|
+
}, b = { A: [s, function(p) {
|
|
7072
|
+
this.afternoon = j(p, !1);
|
|
7073
|
+
}], a: [s, function(p) {
|
|
7074
|
+
this.afternoon = j(p, !0);
|
|
7075
|
+
}], Q: [n, function(p) {
|
|
7076
|
+
this.month = 3 * (p - 1) + 1;
|
|
7077
|
+
}], S: [n, function(p) {
|
|
7078
|
+
this.milliseconds = 100 * +p;
|
|
7079
|
+
}], SS: [a, function(p) {
|
|
7080
|
+
this.milliseconds = 10 * +p;
|
|
7081
|
+
}], SSS: [/\d{3}/, function(p) {
|
|
7082
|
+
this.milliseconds = +p;
|
|
7083
|
+
}], s: [i, u("seconds")], ss: [i, u("seconds")], m: [i, u("minutes")], mm: [i, u("minutes")], H: [i, u("hours")], h: [i, u("hours")], HH: [i, u("hours")], hh: [i, u("hours")], D: [i, u("day")], DD: [a, u("day")], Do: [s, function(p) {
|
|
7084
|
+
var K = f.ordinal, I = p.match(/\d+/);
|
|
7085
|
+
if (this.day = I[0], K) for (var T = 1; T <= 31; T += 1) K(T).replace(/\[|\]/g, "") === p && (this.day = T);
|
|
7086
|
+
}], w: [i, u("week")], ww: [a, u("week")], M: [i, u("month")], MM: [a, u("month")], MMM: [s, function(p) {
|
|
7051
7087
|
var K = X("months"), I = (X("monthsShort") || K.map(function(T) {
|
|
7052
7088
|
return T.slice(0, 3);
|
|
7053
|
-
})).indexOf(
|
|
7089
|
+
})).indexOf(p) + 1;
|
|
7054
7090
|
if (I < 1) throw new Error();
|
|
7055
7091
|
this.month = I % 12 || I;
|
|
7056
|
-
}], MMMM: [s, function(
|
|
7057
|
-
var K = X("months").indexOf(
|
|
7092
|
+
}], MMMM: [s, function(p) {
|
|
7093
|
+
var K = X("months").indexOf(p) + 1;
|
|
7058
7094
|
if (K < 1) throw new Error();
|
|
7059
7095
|
this.month = K % 12 || K;
|
|
7060
|
-
}], Y: [/[+-]?\d+/,
|
|
7061
|
-
this.year = y(
|
|
7062
|
-
}], YYYY: [/\d{4}/,
|
|
7063
|
-
function B(
|
|
7096
|
+
}], Y: [/[+-]?\d+/, u("year")], YY: [a, function(p) {
|
|
7097
|
+
this.year = y(p);
|
|
7098
|
+
}], YYYY: [/\d{4}/, u("year")], Z: D, ZZ: D };
|
|
7099
|
+
function B(p) {
|
|
7064
7100
|
var K, I;
|
|
7065
|
-
K =
|
|
7066
|
-
for (var T = (
|
|
7101
|
+
K = p, I = f && f.formats;
|
|
7102
|
+
for (var T = (p = K.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(F, v, x) {
|
|
7067
7103
|
var M = x && x.toUpperCase();
|
|
7068
|
-
return v || I[x] || r[x] || I[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R,
|
|
7069
|
-
return
|
|
7104
|
+
return v || I[x] || r[x] || I[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, U, C) {
|
|
7105
|
+
return U || C.slice(1);
|
|
7070
7106
|
});
|
|
7071
7107
|
})).match(o), N = T.length, S = 0; S < N; S += 1) {
|
|
7072
7108
|
var L = T[S], J = b[L], _ = J && J[0], l = J && J[1];
|
|
@@ -7077,8 +7113,8 @@ var rr = { exports: {} };
|
|
|
7077
7113
|
var R = T[x];
|
|
7078
7114
|
if (typeof R == "string") M += R.length;
|
|
7079
7115
|
else {
|
|
7080
|
-
var
|
|
7081
|
-
|
|
7116
|
+
var U = R.regex, C = R.parser, O = F.slice(M), H = U.exec(O)[0];
|
|
7117
|
+
C.call(v, H), F = F.replace(H, "");
|
|
7082
7118
|
}
|
|
7083
7119
|
}
|
|
7084
7120
|
return function(h) {
|
|
@@ -7090,8 +7126,8 @@ var rr = { exports: {} };
|
|
|
7090
7126
|
}(v), v;
|
|
7091
7127
|
};
|
|
7092
7128
|
}
|
|
7093
|
-
return function(
|
|
7094
|
-
I.p.customParseFormat = !0,
|
|
7129
|
+
return function(p, K, I) {
|
|
7130
|
+
I.p.customParseFormat = !0, p && p.parseTwoDigitYear && (y = p.parseTwoDigitYear);
|
|
7095
7131
|
var T = K.prototype, N = T.parse;
|
|
7096
7132
|
T.parse = function(S) {
|
|
7097
7133
|
var L = S.date, J = S.utc, _ = S.args;
|
|
@@ -7102,30 +7138,30 @@ var rr = { exports: {} };
|
|
|
7102
7138
|
v && (M = _[2]), f = this.$locale(), !F && M && (f = I.Ls[M]), this.$d = function(O, H, h, A) {
|
|
7103
7139
|
try {
|
|
7104
7140
|
if (["x", "X"].indexOf(H) > -1) return new Date((H === "X" ? 1e3 : 1) * O);
|
|
7105
|
-
var c = B(H)(O), d = c.year, m = c.month, P = c.day, E = c.hours, V = c.minutes, G = c.seconds, Z = c.milliseconds, Q = c.zone, Y = c.week, ee = /* @__PURE__ */ new Date(), Ae = P || (d || m ? 1 : ee.getDate()), ie = d || ee.getFullYear(),
|
|
7106
|
-
d && !m || (
|
|
7107
|
-
var de,
|
|
7108
|
-
return Q ? new Date(Date.UTC(ie,
|
|
7141
|
+
var c = B(H)(O), d = c.year, m = c.month, P = c.day, E = c.hours, V = c.minutes, G = c.seconds, Z = c.milliseconds, Q = c.zone, Y = c.week, ee = /* @__PURE__ */ new Date(), Ae = P || (d || m ? 1 : ee.getDate()), ie = d || ee.getFullYear(), ue = 0;
|
|
7142
|
+
d && !m || (ue = m > 0 ? m - 1 : ee.getMonth());
|
|
7143
|
+
var de, pe = E || 0, ve = V || 0, ze = G || 0, Xe = Z || 0;
|
|
7144
|
+
return Q ? new Date(Date.UTC(ie, ue, Ae, pe, ve, ze, Xe + 60 * Q.offset * 1e3)) : h ? new Date(Date.UTC(ie, ue, Ae, pe, ve, ze, Xe)) : (de = new Date(ie, ue, Ae, pe, ve, ze, Xe), Y && (de = A(de).week(Y).toDate()), de);
|
|
7109
7145
|
} catch {
|
|
7110
7146
|
return /* @__PURE__ */ new Date("");
|
|
7111
7147
|
}
|
|
7112
7148
|
}(L, l, J, I), this.init(), M && M !== !0 && (this.$L = this.locale(M).$L), x && L != this.format(l) && (this.$d = /* @__PURE__ */ new Date("")), f = {};
|
|
7113
|
-
} else if (l instanceof Array) for (var R = l.length,
|
|
7114
|
-
_[1] = l[
|
|
7115
|
-
var
|
|
7116
|
-
if (
|
|
7117
|
-
this.$d =
|
|
7149
|
+
} else if (l instanceof Array) for (var R = l.length, U = 1; U <= R; U += 1) {
|
|
7150
|
+
_[1] = l[U - 1];
|
|
7151
|
+
var C = I.apply(this, _);
|
|
7152
|
+
if (C.isValid()) {
|
|
7153
|
+
this.$d = C.$d, this.$L = C.$L, this.init();
|
|
7118
7154
|
break;
|
|
7119
7155
|
}
|
|
7120
|
-
|
|
7156
|
+
U === R && (this.$d = /* @__PURE__ */ new Date(""));
|
|
7121
7157
|
}
|
|
7122
7158
|
else N.call(this, S);
|
|
7123
7159
|
};
|
|
7124
7160
|
};
|
|
7125
7161
|
});
|
|
7126
7162
|
})(rr);
|
|
7127
|
-
var
|
|
7128
|
-
const
|
|
7163
|
+
var Cn = rr.exports;
|
|
7164
|
+
const Un = /* @__PURE__ */ Ve(Cn);
|
|
7129
7165
|
var nr = { exports: {} };
|
|
7130
7166
|
(function(e, t) {
|
|
7131
7167
|
(function(r, o) {
|
|
@@ -7173,7 +7209,7 @@ var Kn = ir.exports;
|
|
|
7173
7209
|
const xn = /* @__PURE__ */ Ve(Kn);
|
|
7174
7210
|
W.extend(Fn);
|
|
7175
7211
|
W.extend(Bn);
|
|
7176
|
-
W.extend(
|
|
7212
|
+
W.extend(Un);
|
|
7177
7213
|
W.extend(Rn);
|
|
7178
7214
|
W.extend(bn);
|
|
7179
7215
|
W.extend(xn);
|
|
@@ -7191,12 +7227,12 @@ function Hn(e, t, r) {
|
|
|
7191
7227
|
shallow: i = !0,
|
|
7192
7228
|
onError: s = En
|
|
7193
7229
|
} = o, f = ne(!n), y = i ? Zr(t) : ne(t);
|
|
7194
|
-
let
|
|
7230
|
+
let u = 0;
|
|
7195
7231
|
return Jr(async (D) => {
|
|
7196
7232
|
if (!f.value)
|
|
7197
7233
|
return;
|
|
7198
|
-
|
|
7199
|
-
const X =
|
|
7234
|
+
u++;
|
|
7235
|
+
const X = u;
|
|
7200
7236
|
let j = !1;
|
|
7201
7237
|
a && Promise.resolve().then(() => {
|
|
7202
7238
|
a.value = !0;
|
|
@@ -7207,11 +7243,11 @@ function Hn(e, t, r) {
|
|
|
7207
7243
|
a && (a.value = !1), j || B();
|
|
7208
7244
|
});
|
|
7209
7245
|
});
|
|
7210
|
-
X ===
|
|
7246
|
+
X === u && (y.value = b);
|
|
7211
7247
|
} catch (b) {
|
|
7212
7248
|
s(b);
|
|
7213
7249
|
} finally {
|
|
7214
|
-
a && X ===
|
|
7250
|
+
a && X === u && (a.value = !1), j = !0;
|
|
7215
7251
|
}
|
|
7216
7252
|
}), n ? me(() => (f.value = !0, y.value)) : y;
|
|
7217
7253
|
}
|
|
@@ -7280,14 +7316,14 @@ var cr = { exports: {} };
|
|
|
7280
7316
|
return _;
|
|
7281
7317
|
});
|
|
7282
7318
|
var s = i("Array"), f = i("Object"), y = i("Function");
|
|
7283
|
-
function
|
|
7319
|
+
function u(l, F) {
|
|
7284
7320
|
return y(l.get) ? l.get(F) : l[F];
|
|
7285
7321
|
}
|
|
7286
7322
|
function D(l) {
|
|
7287
7323
|
return function(F, v) {
|
|
7288
7324
|
if (!s(v) || !v.length) return l(F, v);
|
|
7289
7325
|
for (var x = 0, M = v.length; x < M; x++)
|
|
7290
|
-
if (l(F,
|
|
7326
|
+
if (l(F, u(v, x))) return !0;
|
|
7291
7327
|
return !1;
|
|
7292
7328
|
};
|
|
7293
7329
|
}
|
|
@@ -7295,7 +7331,7 @@ var cr = { exports: {} };
|
|
|
7295
7331
|
return function(F, v) {
|
|
7296
7332
|
if (!s(v) || !v.length) return l(F, v);
|
|
7297
7333
|
for (var x = 0, M = v.length; x < M; x++)
|
|
7298
|
-
if (!l(F,
|
|
7334
|
+
if (!l(F, u(v, x))) return !1;
|
|
7299
7335
|
return !0;
|
|
7300
7336
|
};
|
|
7301
7337
|
}
|
|
@@ -7344,7 +7380,7 @@ var cr = { exports: {} };
|
|
|
7344
7380
|
},
|
|
7345
7381
|
$or: function(l, F, v, x) {
|
|
7346
7382
|
for (var M = 0, R = l.length; M < R; M++)
|
|
7347
|
-
if (j(
|
|
7383
|
+
if (j(u(l, M), F, v, x)) return !0;
|
|
7348
7384
|
return !1;
|
|
7349
7385
|
},
|
|
7350
7386
|
$nor: function(l, F, v, x) {
|
|
@@ -7352,7 +7388,7 @@ var cr = { exports: {} };
|
|
|
7352
7388
|
},
|
|
7353
7389
|
$and: function(l, F, v, x) {
|
|
7354
7390
|
for (var M = 0, R = l.length; M < R; M++)
|
|
7355
|
-
if (!j(
|
|
7391
|
+
if (!j(u(l, M), F, v, x)) return !1;
|
|
7356
7392
|
return !0;
|
|
7357
7393
|
},
|
|
7358
7394
|
$regex: D(function(l, F) {
|
|
@@ -7363,8 +7399,8 @@ var cr = { exports: {} };
|
|
|
7363
7399
|
},
|
|
7364
7400
|
$elemMatch: function(l, F, v, x) {
|
|
7365
7401
|
return s(F) ? !!~function(M, R) {
|
|
7366
|
-
for (var
|
|
7367
|
-
if (
|
|
7402
|
+
for (var U = 0; U < M.length; U++)
|
|
7403
|
+
if (u(M, U), j(R, u(M, U))) return U;
|
|
7368
7404
|
return -1;
|
|
7369
7405
|
}(F, l) : j(l, F, v, x);
|
|
7370
7406
|
},
|
|
@@ -7416,29 +7452,29 @@ var cr = { exports: {} };
|
|
|
7416
7452
|
if (!(M instanceof Array)) {
|
|
7417
7453
|
var R = x(M);
|
|
7418
7454
|
if (R === M && a(M) === "object") {
|
|
7419
|
-
for (
|
|
7420
|
-
if (String(l[
|
|
7455
|
+
for (C = l.length; C--; )
|
|
7456
|
+
if (String(l[C]) === String(M) && String(M) !== "[object Object]")
|
|
7421
7457
|
return !0;
|
|
7422
7458
|
}
|
|
7423
7459
|
if (R === void 0) {
|
|
7424
|
-
for (
|
|
7460
|
+
for (C = l.length; C--; ) if (l[C] == null) return !0;
|
|
7425
7461
|
}
|
|
7426
|
-
for (
|
|
7427
|
-
var
|
|
7428
|
-
if (
|
|
7462
|
+
for (C = l.length; C--; ) {
|
|
7463
|
+
var U = j(S(u(l, C), v), R, C, l);
|
|
7464
|
+
if (U && String(U) !== "[object Object]" && String(R) !== "[object Object]")
|
|
7429
7465
|
return !0;
|
|
7430
7466
|
}
|
|
7431
7467
|
return !!~l.indexOf(R);
|
|
7432
7468
|
}
|
|
7433
|
-
for (var
|
|
7434
|
-
if (~l.indexOf(x(
|
|
7469
|
+
for (var C = M.length; C--; )
|
|
7470
|
+
if (~l.indexOf(x(u(M, C)))) return !0;
|
|
7435
7471
|
return !1;
|
|
7436
7472
|
};
|
|
7437
7473
|
},
|
|
7438
7474
|
$nin: function(l, F, v) {
|
|
7439
7475
|
var x = B.$in(l, F, v);
|
|
7440
|
-
return function(M, R,
|
|
7441
|
-
return !x(M, R,
|
|
7476
|
+
return function(M, R, U, C) {
|
|
7477
|
+
return !x(M, R, U, C);
|
|
7442
7478
|
};
|
|
7443
7479
|
},
|
|
7444
7480
|
$mod: function(l) {
|
|
@@ -7448,8 +7484,8 @@ var cr = { exports: {} };
|
|
|
7448
7484
|
},
|
|
7449
7485
|
$ne: function(l, F, v) {
|
|
7450
7486
|
var x = B.$eq(l, F, v);
|
|
7451
|
-
return X(function(M, R,
|
|
7452
|
-
return !x(M, R,
|
|
7487
|
+
return X(function(M, R, U, C) {
|
|
7488
|
+
return !x(M, R, U, C);
|
|
7453
7489
|
});
|
|
7454
7490
|
},
|
|
7455
7491
|
$and: function(l, F, v) {
|
|
@@ -7466,8 +7502,8 @@ var cr = { exports: {} };
|
|
|
7466
7502
|
},
|
|
7467
7503
|
$not: function(l, F, v) {
|
|
7468
7504
|
var x = T(v)(l);
|
|
7469
|
-
return function(M, R,
|
|
7470
|
-
return !j(x, M, R,
|
|
7505
|
+
return function(M, R, U) {
|
|
7506
|
+
return !j(x, M, R, U);
|
|
7471
7507
|
};
|
|
7472
7508
|
},
|
|
7473
7509
|
$type: function(l) {
|
|
@@ -7491,7 +7527,7 @@ var cr = { exports: {} };
|
|
|
7491
7527
|
return !!l;
|
|
7492
7528
|
}
|
|
7493
7529
|
};
|
|
7494
|
-
function
|
|
7530
|
+
function p(l, F) {
|
|
7495
7531
|
return { options: l, validate: F };
|
|
7496
7532
|
}
|
|
7497
7533
|
function K(l, F) {
|
|
@@ -7499,53 +7535,53 @@ var cr = { exports: {} };
|
|
|
7499
7535
|
if (function c(d, m, P, E, V) {
|
|
7500
7536
|
if (P === m.length || d == null)
|
|
7501
7537
|
return void V.push([d, m[P - 1], E]);
|
|
7502
|
-
var G =
|
|
7538
|
+
var G = u(m, P);
|
|
7503
7539
|
if (s(d) && isNaN(Number(G)))
|
|
7504
|
-
for (var Z = 0, Q = d.length; Z < Q; Z++) c(
|
|
7505
|
-
else c(
|
|
7540
|
+
for (var Z = 0, Q = d.length; Z < Q; Z++) c(u(d, Z), m, P, d, V);
|
|
7541
|
+
else c(u(d, G), m, P + 1, d, V);
|
|
7506
7542
|
}(F, v, 0, F, R), R.length === 1) {
|
|
7507
|
-
var
|
|
7508
|
-
return j(x,
|
|
7543
|
+
var U = R[0];
|
|
7544
|
+
return j(x, U[0], U[1], U[2]);
|
|
7509
7545
|
}
|
|
7510
|
-
for (var
|
|
7546
|
+
for (var C = M && M.$ne !== void 0, O = C, H = 0; H < R.length; H++) {
|
|
7511
7547
|
var h = R[H], A = j(x, h[0], h[1], h[2]);
|
|
7512
|
-
|
|
7548
|
+
C ? O &= A : O |= A;
|
|
7513
7549
|
}
|
|
7514
7550
|
return O;
|
|
7515
7551
|
}
|
|
7516
7552
|
function I(l, F, v) {
|
|
7517
|
-
return
|
|
7553
|
+
return p({ keyPath: l, child: F, query: v }, K);
|
|
7518
7554
|
}
|
|
7519
7555
|
function T(l) {
|
|
7520
|
-
var F = l.comparable, v = l.expressions, x = function(
|
|
7521
|
-
var
|
|
7522
|
-
return (!
|
|
7523
|
-
}, M = function(
|
|
7524
|
-
|
|
7525
|
-
var
|
|
7526
|
-
for (var O in
|
|
7527
|
-
var H =
|
|
7556
|
+
var F = l.comparable, v = l.expressions, x = function(U) {
|
|
7557
|
+
var C;
|
|
7558
|
+
return (!U || !(C = U) || C.constructor !== Object && C.constructor !== Array && C.constructor.toString() !== "function Object() { [native code] }" && C.constructor.toString() !== "function Array() { [native code] }" || C.toJSON) && (U = { $eq: U }), U;
|
|
7559
|
+
}, M = function(U) {
|
|
7560
|
+
U = F(U);
|
|
7561
|
+
var C = [];
|
|
7562
|
+
for (var O in U) {
|
|
7563
|
+
var H = U[O];
|
|
7528
7564
|
if (O !== "$options") {
|
|
7529
7565
|
var h = b[O] || l && v && v[O];
|
|
7530
|
-
if (h) B[O] && (H = B[O](H,
|
|
7566
|
+
if (h) B[O] && (H = B[O](H, U, l)), C.push(p(F(H), h));
|
|
7531
7567
|
else {
|
|
7532
7568
|
if (O.charCodeAt(0) === 36)
|
|
7533
7569
|
throw new Error("Unknown operation " + O);
|
|
7534
7570
|
var A = O.split(".");
|
|
7535
|
-
|
|
7571
|
+
C.push(I(A, R(H), H));
|
|
7536
7572
|
}
|
|
7537
7573
|
}
|
|
7538
7574
|
}
|
|
7539
|
-
return
|
|
7540
|
-
}, R = function(
|
|
7541
|
-
return
|
|
7575
|
+
return C.length === 1 ? C[0] : p(C, b.$and);
|
|
7576
|
+
}, R = function(U) {
|
|
7577
|
+
return U = x(U), function C(O, H) {
|
|
7542
7578
|
if (!f(O)) return H;
|
|
7543
|
-
for (var h in O) H.push(h),
|
|
7579
|
+
for (var h in O) H.push(h), C(O[h], H);
|
|
7544
7580
|
return H;
|
|
7545
|
-
}(
|
|
7581
|
+
}(U, []).join(",").search(/[$.]/) === -1 ? p(U, N) : M(U);
|
|
7546
7582
|
};
|
|
7547
|
-
return function(
|
|
7548
|
-
return M(x(
|
|
7583
|
+
return function(U) {
|
|
7584
|
+
return M(x(U));
|
|
7549
7585
|
};
|
|
7550
7586
|
}
|
|
7551
7587
|
function N(l, F) {
|
|
@@ -7568,8 +7604,8 @@ var cr = { exports: {} };
|
|
|
7568
7604
|
var v = T(F)(l);
|
|
7569
7605
|
return F && F.select && (v = {
|
|
7570
7606
|
options: v,
|
|
7571
|
-
validate: function(x, M, R,
|
|
7572
|
-
return j(x, M && F.select(M), R,
|
|
7607
|
+
validate: function(x, M, R, U) {
|
|
7608
|
+
return j(x, M && F.select(M), R, U);
|
|
7573
7609
|
}
|
|
7574
7610
|
}), v;
|
|
7575
7611
|
}
|
|
@@ -7787,14 +7823,14 @@ var sr = /* @__PURE__ */ function() {
|
|
|
7787
7823
|
return process.env.NODE_ENV !== "production" && a.isAllInverted && o.length && console.warn("[casl]: Ability contains only inverted rules. That means user will not be able to do any actions. This will be changed to Error throw in the next major version"), this[Be].indexedRules = a.rules, this[Be].hasPerFieldRules = a.hasPerFieldRules, this.emit("updated", n), this;
|
|
7788
7824
|
}, t.buildIndexFor = function(o) {
|
|
7789
7825
|
for (var n = /* @__PURE__ */ Object.create(null), a = this[Be].RuleType, i = !0, s = !1, f = 0; f < o.length; f++) {
|
|
7790
|
-
var y = new a(o[f]),
|
|
7826
|
+
var y = new a(o[f]), u = this.expandActions(y.actions), D = co(y.subject), X = o.length - f - 1;
|
|
7791
7827
|
i = !!(i && y.inverted), !s && y.fields && (s = !0);
|
|
7792
7828
|
for (var j = 0; j < D.length; j++) {
|
|
7793
7829
|
var b = D[j];
|
|
7794
7830
|
n[b] = n[b] || /* @__PURE__ */ Object.create(null);
|
|
7795
|
-
for (var B = 0; B <
|
|
7796
|
-
var
|
|
7797
|
-
n[b][
|
|
7831
|
+
for (var B = 0; B < u.length; B++) {
|
|
7832
|
+
var p = u[B];
|
|
7833
|
+
n[b][p] = n[b][p] || /* @__PURE__ */ Object.create(null), n[b][p][X] = y;
|
|
7798
7834
|
}
|
|
7799
7835
|
}
|
|
7800
7836
|
}
|
|
@@ -7901,9 +7937,9 @@ function oa(e) {
|
|
|
7901
7937
|
});
|
|
7902
7938
|
}
|
|
7903
7939
|
function wt(e, t, r) {
|
|
7904
|
-
const o = Array.isArray(e) ? e : [e], n = r !== void 0 ? oa(t) : ta(t), a = (
|
|
7940
|
+
const o = Array.isArray(e) ? e : [e], n = r !== void 0 ? oa(t) : ta(t), a = (u) => r !== void 0 ? { subjectType: u.subject, ...r } : u.subject, i = (u) => n.can(u.action, a(u), u.field) ? !0 : u.coverSubject !== void 0 ? n.can(u.action, u.coverSubject, u.field) : !1, s = o.find((u) => !i(u));
|
|
7905
7941
|
if (s) {
|
|
7906
|
-
const
|
|
7942
|
+
const u = n.relevantRuleFor(
|
|
7907
7943
|
s.action,
|
|
7908
7944
|
a(s),
|
|
7909
7945
|
s.field
|
|
@@ -7911,7 +7947,7 @@ function wt(e, t, r) {
|
|
|
7911
7947
|
return {
|
|
7912
7948
|
granted: !1,
|
|
7913
7949
|
decisivePermission: s,
|
|
7914
|
-
decisiveRule:
|
|
7950
|
+
decisiveRule: u ?? null
|
|
7915
7951
|
};
|
|
7916
7952
|
}
|
|
7917
7953
|
const f = o[0], y = n.relevantRuleFor(f.action, a(f), f.field);
|
|
@@ -7995,11 +8031,11 @@ const ia = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
7995
8031
|
subtitle: "哎呀!您沒有權限存取此頁面。"
|
|
7996
8032
|
}, da = {
|
|
7997
8033
|
noPermission: la
|
|
7998
|
-
},
|
|
8034
|
+
}, ua = {
|
|
7999
8035
|
title: "การเข้าถึงถูกปฏิเสธ",
|
|
8000
8036
|
subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
|
|
8001
|
-
},
|
|
8002
|
-
noPermission:
|
|
8037
|
+
}, pa = {
|
|
8038
|
+
noPermission: ua
|
|
8003
8039
|
}, fa = { class: "w-full h-full flex justify-center items-center" }, ga = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, ya = { class: "w-[300px] h-[300px]" }, va = ["src"], ha = { class: "text-2xl" }, Fa = { class: "text-xl" }, wa = /* @__PURE__ */ Jo({
|
|
8004
8040
|
__name: "NoPermission",
|
|
8005
8041
|
setup(e) {
|
|
@@ -8008,7 +8044,7 @@ const ia = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
8008
8044
|
"en-US": Aa,
|
|
8009
8045
|
"zh-CN": ma,
|
|
8010
8046
|
"zh-Hant": da,
|
|
8011
|
-
"th-TH":
|
|
8047
|
+
"th-TH": pa
|
|
8012
8048
|
}
|
|
8013
8049
|
});
|
|
8014
8050
|
return (r, o) => (_o(), tn("div", fa, [
|
|
@@ -8033,7 +8069,7 @@ const ia = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
8033
8069
|
return (r, o) => Ne(t) === Ne(Ao).Denied ? (_o(), _r(wa, { key: 0 })) : Ne(t) === Ne(Ao).Allowed ? $r(r.$slots, "default", { key: 1 }) : en("", !0);
|
|
8034
8070
|
}
|
|
8035
8071
|
});
|
|
8036
|
-
function
|
|
8072
|
+
function Ca(e) {
|
|
8037
8073
|
return {
|
|
8038
8074
|
render: () => no(Ba, {}, { default: () => no(e) })
|
|
8039
8075
|
};
|
|
@@ -8068,7 +8104,7 @@ const ye = [
|
|
|
8068
8104
|
subject: q.inventory_unitCostHistory,
|
|
8069
8105
|
actions: [g.read]
|
|
8070
8106
|
}
|
|
8071
|
-
],
|
|
8107
|
+
], Ua = [
|
|
8072
8108
|
...ye,
|
|
8073
8109
|
{
|
|
8074
8110
|
label: "Stock Adjustment",
|
|
@@ -8117,7 +8153,7 @@ const ho = [
|
|
|
8117
8153
|
subject: q.inventory_closingDraft,
|
|
8118
8154
|
actions: [g.read]
|
|
8119
8155
|
}
|
|
8120
|
-
],
|
|
8156
|
+
], ur = [
|
|
8121
8157
|
...ye,
|
|
8122
8158
|
{
|
|
8123
8159
|
label: "Closing Draft",
|
|
@@ -8144,7 +8180,7 @@ const ho = [
|
|
|
8144
8180
|
subject: q.inventory_stockAdjustment,
|
|
8145
8181
|
actions: [g.read]
|
|
8146
8182
|
}
|
|
8147
|
-
],
|
|
8183
|
+
], pr = [
|
|
8148
8184
|
...ye,
|
|
8149
8185
|
{
|
|
8150
8186
|
label: "Closing Template",
|
|
@@ -8164,8 +8200,8 @@ const ho = [
|
|
|
8164
8200
|
];
|
|
8165
8201
|
[
|
|
8166
8202
|
...ho,
|
|
8167
|
-
...
|
|
8168
|
-
...
|
|
8203
|
+
...ur,
|
|
8204
|
+
...pr
|
|
8169
8205
|
];
|
|
8170
8206
|
const Da = [
|
|
8171
8207
|
{
|
|
@@ -8385,7 +8421,7 @@ const Ta = {
|
|
|
8385
8421
|
[`set_${z.inventory_stockAdjustment}`]: {
|
|
8386
8422
|
key: "sys:inventory:stock_adjustment",
|
|
8387
8423
|
name: "Stock Adjustment",
|
|
8388
|
-
permissions:
|
|
8424
|
+
permissions: Ua
|
|
8389
8425
|
},
|
|
8390
8426
|
[`set_${z.inventory_unitCostHistory}`]: {
|
|
8391
8427
|
key: "sys:inventory:unit_cost_history",
|
|
@@ -8405,12 +8441,12 @@ const Ta = {
|
|
|
8405
8441
|
[`set_${z.inventory_closingTemplate}`]: {
|
|
8406
8442
|
key: "sys:inventory:closing_template",
|
|
8407
8443
|
name: "Closing Template",
|
|
8408
|
-
permissions:
|
|
8444
|
+
permissions: pr
|
|
8409
8445
|
},
|
|
8410
8446
|
[`set_${z.inventory_closingDraft}`]: {
|
|
8411
8447
|
key: "sys:inventory:closing_draft",
|
|
8412
8448
|
name: "Closing Draft",
|
|
8413
|
-
permissions:
|
|
8449
|
+
permissions: ur
|
|
8414
8450
|
},
|
|
8415
8451
|
[`set_${z.inventory_ingredient}`]: {
|
|
8416
8452
|
key: "sys:inventory:ingredient",
|
|
@@ -8575,27 +8611,27 @@ function hr(e, t) {
|
|
|
8575
8611
|
return e.apply(t, arguments);
|
|
8576
8612
|
};
|
|
8577
8613
|
}
|
|
8578
|
-
const { toString: Ma } = Object.prototype, { getPrototypeOf: Fo } = Object,
|
|
8614
|
+
const { toString: Ma } = Object.prototype, { getPrototypeOf: Fo } = Object, Ut = /* @__PURE__ */ ((e) => (t) => {
|
|
8579
8615
|
const r = Ma.call(t);
|
|
8580
8616
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
8581
|
-
})(/* @__PURE__ */ Object.create(null)), Pe = (e) => (e = e.toLowerCase(), (t) =>
|
|
8617
|
+
})(/* @__PURE__ */ Object.create(null)), Pe = (e) => (e = e.toLowerCase(), (t) => Ut(t) === e), Dt = (e) => (t) => typeof t === e, { isArray: et } = Array, it = Dt("undefined");
|
|
8582
8618
|
function Qa(e) {
|
|
8583
|
-
return e !== null && !it(e) && e.constructor !== null && !it(e.constructor) &&
|
|
8619
|
+
return e !== null && !it(e) && e.constructor !== null && !it(e.constructor) && Ce(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
8584
8620
|
}
|
|
8585
8621
|
const Fr = Pe("ArrayBuffer");
|
|
8586
8622
|
function Va(e) {
|
|
8587
8623
|
let t;
|
|
8588
8624
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Fr(e.buffer), t;
|
|
8589
8625
|
}
|
|
8590
|
-
const Sa = Dt("string"),
|
|
8591
|
-
if (
|
|
8626
|
+
const Sa = Dt("string"), Ce = Dt("function"), wr = Dt("number"), Rt = (e) => e !== null && typeof e == "object", Ga = (e) => e === !0 || e === !1, yt = (e) => {
|
|
8627
|
+
if (Ut(e) !== "object")
|
|
8592
8628
|
return !1;
|
|
8593
8629
|
const t = Fo(e);
|
|
8594
8630
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
8595
|
-
}, Na = Pe("Date"), qa = Pe("File"), Ya = Pe("Blob"), La = Pe("FileList"), ka = (e) => Rt(e) &&
|
|
8631
|
+
}, Na = Pe("Date"), qa = Pe("File"), Ya = Pe("Blob"), La = Pe("FileList"), ka = (e) => Rt(e) && Ce(e.pipe), Wa = (e) => {
|
|
8596
8632
|
let t;
|
|
8597
|
-
return e && (typeof FormData == "function" && e instanceof FormData ||
|
|
8598
|
-
t === "object" &&
|
|
8633
|
+
return e && (typeof FormData == "function" && e instanceof FormData || Ce(e.append) && ((t = Ut(e)) === "formdata" || // detect form-data instance
|
|
8634
|
+
t === "object" && Ce(e.toString) && e.toString() === "[object FormData]"));
|
|
8599
8635
|
}, Za = Pe("URLSearchParams"), [Ja, _a, $a, ei] = ["ReadableStream", "Request", "Response", "Headers"].map(Pe), ti = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
8600
8636
|
function At(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
8601
8637
|
if (e === null || typeof e > "u")
|
|
@@ -8620,9 +8656,9 @@ function Br(e, t) {
|
|
|
8620
8656
|
return n;
|
|
8621
8657
|
return null;
|
|
8622
8658
|
}
|
|
8623
|
-
const qe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : globalThis,
|
|
8659
|
+
const qe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : globalThis, Cr = (e) => !it(e) && e !== qe;
|
|
8624
8660
|
function so() {
|
|
8625
|
-
const { caseless: e } =
|
|
8661
|
+
const { caseless: e } = Cr(this) && this || {}, t = {}, r = (o, n) => {
|
|
8626
8662
|
const a = e && Br(t, n) || n;
|
|
8627
8663
|
yt(t[a]) && yt(o) ? t[a] = so(t[a], o) : yt(o) ? t[a] = so({}, o) : et(o) ? t[a] = o.slice() : t[a] = o;
|
|
8628
8664
|
};
|
|
@@ -8631,7 +8667,7 @@ function so() {
|
|
|
8631
8667
|
return t;
|
|
8632
8668
|
}
|
|
8633
8669
|
const oi = (e, t, r, { allOwnKeys: o } = {}) => (At(t, (n, a) => {
|
|
8634
|
-
r &&
|
|
8670
|
+
r && Ce(n) ? e[a] = hr(n, r) : e[a] = n;
|
|
8635
8671
|
}, { allOwnKeys: o }), e), ri = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ni = (e, t, r, o) => {
|
|
8636
8672
|
e.prototype = Object.create(t.prototype, o), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
8637
8673
|
value: t.prototype
|
|
@@ -8677,18 +8713,18 @@ const oi = (e, t, r, { allOwnKeys: o } = {}) => (At(t, (n, a) => {
|
|
|
8677
8713
|
function(r, o, n) {
|
|
8678
8714
|
return o.toUpperCase() + n;
|
|
8679
8715
|
}
|
|
8680
|
-
), To = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype),
|
|
8716
|
+
), To = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ui = Pe("RegExp"), Ur = (e, t) => {
|
|
8681
8717
|
const r = Object.getOwnPropertyDescriptors(e), o = {};
|
|
8682
8718
|
At(r, (n, a) => {
|
|
8683
8719
|
let i;
|
|
8684
8720
|
(i = t(n, a, e)) !== !1 && (o[a] = i || n);
|
|
8685
8721
|
}), Object.defineProperties(e, o);
|
|
8686
|
-
},
|
|
8687
|
-
|
|
8688
|
-
if (
|
|
8722
|
+
}, pi = (e) => {
|
|
8723
|
+
Ur(e, (t, r) => {
|
|
8724
|
+
if (Ce(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
8689
8725
|
return !1;
|
|
8690
8726
|
const o = e[r];
|
|
8691
|
-
if (
|
|
8727
|
+
if (Ce(o)) {
|
|
8692
8728
|
if (t.enumerable = !1, "writable" in t) {
|
|
8693
8729
|
t.writable = !1;
|
|
8694
8730
|
return;
|
|
@@ -8718,7 +8754,7 @@ const oi = (e, t, r, { allOwnKeys: o } = {}) => (At(t, (n, a) => {
|
|
|
8718
8754
|
return r;
|
|
8719
8755
|
};
|
|
8720
8756
|
function hi(e) {
|
|
8721
|
-
return !!(e &&
|
|
8757
|
+
return !!(e && Ce(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
8722
8758
|
}
|
|
8723
8759
|
const Fi = (e) => {
|
|
8724
8760
|
const t = new Array(10), r = (o, n) => {
|
|
@@ -8737,14 +8773,14 @@ const Fi = (e) => {
|
|
|
8737
8773
|
return o;
|
|
8738
8774
|
};
|
|
8739
8775
|
return r(e, 0);
|
|
8740
|
-
}, wi = Pe("AsyncFunction"), Bi = (e) => e && (Rt(e) ||
|
|
8776
|
+
}, wi = Pe("AsyncFunction"), Bi = (e) => e && (Rt(e) || Ce(e)) && Ce(e.then) && Ce(e.catch), Rr = ((e, t) => e ? setImmediate : t ? ((r, o) => (qe.addEventListener("message", ({ source: n, data: a }) => {
|
|
8741
8777
|
n === qe && a === r && o.length && o.shift()();
|
|
8742
8778
|
}, !1), (n) => {
|
|
8743
8779
|
o.push(n), qe.postMessage(r, "*");
|
|
8744
8780
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
8745
8781
|
typeof setImmediate == "function",
|
|
8746
|
-
|
|
8747
|
-
),
|
|
8782
|
+
Ce(qe.postMessage)
|
|
8783
|
+
), Ci = typeof queueMicrotask < "u" ? queueMicrotask.bind(qe) : typeof process < "u" && process.nextTick || Rr, w = {
|
|
8748
8784
|
isArray: et,
|
|
8749
8785
|
isArrayBuffer: Fr,
|
|
8750
8786
|
isBuffer: Qa,
|
|
@@ -8763,8 +8799,8 @@ const Fi = (e) => {
|
|
|
8763
8799
|
isDate: Na,
|
|
8764
8800
|
isFile: qa,
|
|
8765
8801
|
isBlob: Ya,
|
|
8766
|
-
isRegExp:
|
|
8767
|
-
isFunction:
|
|
8802
|
+
isRegExp: ui,
|
|
8803
|
+
isFunction: Ce,
|
|
8768
8804
|
isStream: ka,
|
|
8769
8805
|
isURLSearchParams: Za,
|
|
8770
8806
|
isTypedArray: Ai,
|
|
@@ -8776,7 +8812,7 @@ const Fi = (e) => {
|
|
|
8776
8812
|
stripBOM: ri,
|
|
8777
8813
|
inherits: ni,
|
|
8778
8814
|
toFlatObject: ai,
|
|
8779
|
-
kindOf:
|
|
8815
|
+
kindOf: Ut,
|
|
8780
8816
|
kindOfTest: Pe,
|
|
8781
8817
|
endsWith: ii,
|
|
8782
8818
|
toArray: ci,
|
|
@@ -8786,15 +8822,15 @@ const Fi = (e) => {
|
|
|
8786
8822
|
hasOwnProperty: To,
|
|
8787
8823
|
hasOwnProp: To,
|
|
8788
8824
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
8789
|
-
reduceDescriptors:
|
|
8790
|
-
freezeMethods:
|
|
8825
|
+
reduceDescriptors: Ur,
|
|
8826
|
+
freezeMethods: pi,
|
|
8791
8827
|
toObjectSet: fi,
|
|
8792
8828
|
toCamelCase: di,
|
|
8793
8829
|
noop: gi,
|
|
8794
8830
|
toFiniteNumber: yi,
|
|
8795
8831
|
findKey: Br,
|
|
8796
8832
|
global: qe,
|
|
8797
|
-
isContextDefined:
|
|
8833
|
+
isContextDefined: Cr,
|
|
8798
8834
|
ALPHABET: Dr,
|
|
8799
8835
|
generateString: vi,
|
|
8800
8836
|
isSpecCompliantForm: hi,
|
|
@@ -8802,7 +8838,7 @@ const Fi = (e) => {
|
|
|
8802
8838
|
isAsyncFn: wi,
|
|
8803
8839
|
isThenable: Bi,
|
|
8804
8840
|
setImmediate: Rr,
|
|
8805
|
-
asap:
|
|
8841
|
+
asap: Ci
|
|
8806
8842
|
};
|
|
8807
8843
|
function k(e, t, r, o, n) {
|
|
8808
8844
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), o && (this.request = o), n && (this.response = n, this.status = n.status ? n.status : null);
|
|
@@ -8854,7 +8890,7 @@ k.from = (e, t, r, o, n, a) => {
|
|
|
8854
8890
|
return f !== Error.prototype;
|
|
8855
8891
|
}, (s) => s !== "isAxiosError"), k.call(i, e.message, t, r, o, n), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
|
|
8856
8892
|
};
|
|
8857
|
-
const
|
|
8893
|
+
const Ui = null;
|
|
8858
8894
|
function mo(e) {
|
|
8859
8895
|
return w.isPlainObject(e) || w.isArray(e);
|
|
8860
8896
|
}
|
|
@@ -8879,10 +8915,10 @@ function Pt(e, t, r) {
|
|
|
8879
8915
|
metaTokens: !0,
|
|
8880
8916
|
dots: !1,
|
|
8881
8917
|
indexes: !1
|
|
8882
|
-
}, !1, function(B,
|
|
8883
|
-
return !w.isUndefined(
|
|
8918
|
+
}, !1, function(B, p) {
|
|
8919
|
+
return !w.isUndefined(p[B]);
|
|
8884
8920
|
});
|
|
8885
|
-
const o = r.metaTokens, n = r.visitor ||
|
|
8921
|
+
const o = r.metaTokens, n = r.visitor || u, a = r.dots, i = r.indexes, f = (r.Blob || typeof Blob < "u" && Blob) && w.isSpecCompliantForm(t);
|
|
8886
8922
|
if (!w.isFunction(n))
|
|
8887
8923
|
throw new TypeError("visitor must be a function");
|
|
8888
8924
|
function y(b) {
|
|
@@ -8893,9 +8929,9 @@ function Pt(e, t, r) {
|
|
|
8893
8929
|
throw new k("Blob is not supported. Use a Buffer instead.");
|
|
8894
8930
|
return w.isArrayBuffer(b) || w.isTypedArray(b) ? f && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b;
|
|
8895
8931
|
}
|
|
8896
|
-
function
|
|
8932
|
+
function u(b, B, p) {
|
|
8897
8933
|
let K = b;
|
|
8898
|
-
if (b && !
|
|
8934
|
+
if (b && !p && typeof b == "object") {
|
|
8899
8935
|
if (w.endsWith(B, "{}"))
|
|
8900
8936
|
B = o ? B : B.slice(0, -2), b = JSON.stringify(b);
|
|
8901
8937
|
else if (w.isArray(b) && Di(b) || (w.isFileList(b) || w.endsWith(B, "[]")) && (K = w.toArray(b)))
|
|
@@ -8907,10 +8943,10 @@ function Pt(e, t, r) {
|
|
|
8907
8943
|
);
|
|
8908
8944
|
}), !1;
|
|
8909
8945
|
}
|
|
8910
|
-
return mo(b) ? !0 : (t.append(jo(
|
|
8946
|
+
return mo(b) ? !0 : (t.append(jo(p, B, a), y(b)), !1);
|
|
8911
8947
|
}
|
|
8912
8948
|
const D = [], X = Object.assign(Ri, {
|
|
8913
|
-
defaultVisitor:
|
|
8949
|
+
defaultVisitor: u,
|
|
8914
8950
|
convertValue: y,
|
|
8915
8951
|
isVisitable: mo
|
|
8916
8952
|
});
|
|
@@ -9242,13 +9278,13 @@ let we = class {
|
|
|
9242
9278
|
set(t, r, o) {
|
|
9243
9279
|
const n = this;
|
|
9244
9280
|
function a(s, f, y) {
|
|
9245
|
-
const
|
|
9246
|
-
if (!
|
|
9281
|
+
const u = nt(f);
|
|
9282
|
+
if (!u)
|
|
9247
9283
|
throw new Error("header name must be a non-empty string");
|
|
9248
|
-
const D = w.findKey(n,
|
|
9284
|
+
const D = w.findKey(n, u);
|
|
9249
9285
|
(!D || n[D] === void 0 || y === !0 || y === void 0 && n[D] !== !1) && (n[D || f] = vt(s));
|
|
9250
9286
|
}
|
|
9251
|
-
const i = (s, f) => w.forEach(s, (y,
|
|
9287
|
+
const i = (s, f) => w.forEach(s, (y, u) => a(y, u, f));
|
|
9252
9288
|
if (w.isPlainObject(t) || t instanceof this.constructor)
|
|
9253
9289
|
i(t, r);
|
|
9254
9290
|
else if (w.isString(t) && (t = t.trim()) && !Gi(t))
|
|
@@ -9399,25 +9435,25 @@ function Li(e, t) {
|
|
|
9399
9435
|
const r = new Array(e), o = new Array(e);
|
|
9400
9436
|
let n = 0, a = 0, i;
|
|
9401
9437
|
return t = t !== void 0 ? t : 1e3, function(f) {
|
|
9402
|
-
const y = Date.now(),
|
|
9438
|
+
const y = Date.now(), u = o[a];
|
|
9403
9439
|
i || (i = y), r[n] = f, o[n] = y;
|
|
9404
9440
|
let D = a, X = 0;
|
|
9405
9441
|
for (; D !== n; )
|
|
9406
9442
|
X += r[D++], D = D % e;
|
|
9407
9443
|
if (n = (n + 1) % e, n === a && (a = (a + 1) % e), y - i < t)
|
|
9408
9444
|
return;
|
|
9409
|
-
const j =
|
|
9445
|
+
const j = u && y - u;
|
|
9410
9446
|
return j ? Math.round(X * 1e3 / j) : void 0;
|
|
9411
9447
|
};
|
|
9412
9448
|
}
|
|
9413
9449
|
function ki(e, t) {
|
|
9414
9450
|
let r = 0, o = 1e3 / t, n, a;
|
|
9415
|
-
const i = (y,
|
|
9416
|
-
r =
|
|
9451
|
+
const i = (y, u = Date.now()) => {
|
|
9452
|
+
r = u, n = null, a && (clearTimeout(a), a = null), e.apply(null, y);
|
|
9417
9453
|
};
|
|
9418
9454
|
return [(...y) => {
|
|
9419
|
-
const
|
|
9420
|
-
D >= o ? i(y,
|
|
9455
|
+
const u = Date.now(), D = u - r;
|
|
9456
|
+
D >= o ? i(y, u) : (n = y, a || (a = setTimeout(() => {
|
|
9421
9457
|
a = null, i(n);
|
|
9422
9458
|
}, o - D)));
|
|
9423
9459
|
}, () => n && i(n)];
|
|
@@ -9426,7 +9462,7 @@ const Bt = (e, t, r = 3) => {
|
|
|
9426
9462
|
let o = 0;
|
|
9427
9463
|
const n = Li(50, 250);
|
|
9428
9464
|
return ki((a) => {
|
|
9429
|
-
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, f = i - o, y = n(f),
|
|
9465
|
+
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, f = i - o, y = n(f), u = i <= s;
|
|
9430
9466
|
o = i;
|
|
9431
9467
|
const D = {
|
|
9432
9468
|
loaded: i,
|
|
@@ -9434,7 +9470,7 @@ const Bt = (e, t, r = 3) => {
|
|
|
9434
9470
|
progress: s ? i / s : void 0,
|
|
9435
9471
|
bytes: f,
|
|
9436
9472
|
rate: y || void 0,
|
|
9437
|
-
estimated: y && s &&
|
|
9473
|
+
estimated: y && s && u ? (s - i) / y : void 0,
|
|
9438
9474
|
event: a,
|
|
9439
9475
|
lengthComputable: s != null,
|
|
9440
9476
|
[t ? "download" : "upload"]: !0
|
|
@@ -9491,28 +9527,28 @@ const Go = (e) => e instanceof we ? { ...e } : e;
|
|
|
9491
9527
|
function Le(e, t) {
|
|
9492
9528
|
t = t || {};
|
|
9493
9529
|
const r = {};
|
|
9494
|
-
function o(y,
|
|
9495
|
-
return w.isPlainObject(y) && w.isPlainObject(
|
|
9530
|
+
function o(y, u, D, X) {
|
|
9531
|
+
return w.isPlainObject(y) && w.isPlainObject(u) ? w.merge.call({ caseless: X }, y, u) : w.isPlainObject(u) ? w.merge({}, u) : w.isArray(u) ? u.slice() : u;
|
|
9496
9532
|
}
|
|
9497
|
-
function n(y,
|
|
9498
|
-
if (w.isUndefined(
|
|
9533
|
+
function n(y, u, D, X) {
|
|
9534
|
+
if (w.isUndefined(u)) {
|
|
9499
9535
|
if (!w.isUndefined(y))
|
|
9500
9536
|
return o(void 0, y, D, X);
|
|
9501
|
-
} else return o(y,
|
|
9537
|
+
} else return o(y, u, D, X);
|
|
9502
9538
|
}
|
|
9503
|
-
function a(y,
|
|
9504
|
-
if (!w.isUndefined(
|
|
9505
|
-
return o(void 0,
|
|
9539
|
+
function a(y, u) {
|
|
9540
|
+
if (!w.isUndefined(u))
|
|
9541
|
+
return o(void 0, u);
|
|
9506
9542
|
}
|
|
9507
|
-
function i(y,
|
|
9508
|
-
if (w.isUndefined(
|
|
9543
|
+
function i(y, u) {
|
|
9544
|
+
if (w.isUndefined(u)) {
|
|
9509
9545
|
if (!w.isUndefined(y))
|
|
9510
9546
|
return o(void 0, y);
|
|
9511
|
-
} else return o(void 0,
|
|
9547
|
+
} else return o(void 0, u);
|
|
9512
9548
|
}
|
|
9513
|
-
function s(y,
|
|
9549
|
+
function s(y, u, D) {
|
|
9514
9550
|
if (D in t)
|
|
9515
|
-
return o(y,
|
|
9551
|
+
return o(y, u);
|
|
9516
9552
|
if (D in e)
|
|
9517
9553
|
return o(void 0, y);
|
|
9518
9554
|
}
|
|
@@ -9545,11 +9581,11 @@ function Le(e, t) {
|
|
|
9545
9581
|
socketPath: i,
|
|
9546
9582
|
responseEncoding: i,
|
|
9547
9583
|
validateStatus: s,
|
|
9548
|
-
headers: (y,
|
|
9584
|
+
headers: (y, u, D) => n(Go(y), Go(u), D, !0)
|
|
9549
9585
|
};
|
|
9550
|
-
return w.forEach(Object.keys(Object.assign({}, e, t)), function(
|
|
9551
|
-
const D = f[
|
|
9552
|
-
w.isUndefined(X) && D !== s || (r[
|
|
9586
|
+
return w.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
9587
|
+
const D = f[u] || n, X = D(e[u], t[u], u);
|
|
9588
|
+
w.isUndefined(X) && D !== s || (r[u] = X);
|
|
9553
9589
|
}), r;
|
|
9554
9590
|
}
|
|
9555
9591
|
const jr = (e) => {
|
|
@@ -9564,8 +9600,8 @@ const jr = (e) => {
|
|
|
9564
9600
|
if (fe.hasStandardBrowserEnv || fe.hasStandardBrowserWebWorkerEnv)
|
|
9565
9601
|
i.setContentType(void 0);
|
|
9566
9602
|
else if ((f = i.getContentType()) !== !1) {
|
|
9567
|
-
const [y, ...
|
|
9568
|
-
i.setContentType([y || "multipart/form-data", ...
|
|
9603
|
+
const [y, ...u] = f ? f.split(";").map((D) => D.trim()).filter(Boolean) : [];
|
|
9604
|
+
i.setContentType([y || "multipart/form-data", ...u].join("; "));
|
|
9569
9605
|
}
|
|
9570
9606
|
}
|
|
9571
9607
|
if (fe.hasStandardBrowserEnv && (o && w.isFunction(o) && (o = o(t)), o || o !== !1 && Wi(t.url))) {
|
|
@@ -9578,57 +9614,57 @@ const jr = (e) => {
|
|
|
9578
9614
|
const n = jr(e);
|
|
9579
9615
|
let a = n.data;
|
|
9580
9616
|
const i = we.from(n.headers).normalize();
|
|
9581
|
-
let { responseType: s, onUploadProgress: f, onDownloadProgress: y } = n,
|
|
9617
|
+
let { responseType: s, onUploadProgress: f, onDownloadProgress: y } = n, u, D, X, j, b;
|
|
9582
9618
|
function B() {
|
|
9583
|
-
j && j(), b && b(), n.cancelToken && n.cancelToken.unsubscribe(
|
|
9619
|
+
j && j(), b && b(), n.cancelToken && n.cancelToken.unsubscribe(u), n.signal && n.signal.removeEventListener("abort", u);
|
|
9584
9620
|
}
|
|
9585
|
-
let
|
|
9586
|
-
|
|
9621
|
+
let p = new XMLHttpRequest();
|
|
9622
|
+
p.open(n.method.toUpperCase(), n.url, !0), p.timeout = n.timeout;
|
|
9587
9623
|
function K() {
|
|
9588
|
-
if (!
|
|
9624
|
+
if (!p)
|
|
9589
9625
|
return;
|
|
9590
9626
|
const T = we.from(
|
|
9591
|
-
"getAllResponseHeaders" in
|
|
9627
|
+
"getAllResponseHeaders" in p && p.getAllResponseHeaders()
|
|
9592
9628
|
), S = {
|
|
9593
|
-
data: !s || s === "text" || s === "json" ?
|
|
9594
|
-
status:
|
|
9595
|
-
statusText:
|
|
9629
|
+
data: !s || s === "text" || s === "json" ? p.responseText : p.response,
|
|
9630
|
+
status: p.status,
|
|
9631
|
+
statusText: p.statusText,
|
|
9596
9632
|
headers: T,
|
|
9597
9633
|
config: e,
|
|
9598
|
-
request:
|
|
9634
|
+
request: p
|
|
9599
9635
|
};
|
|
9600
9636
|
Tr(function(J) {
|
|
9601
9637
|
r(J), B();
|
|
9602
9638
|
}, function(J) {
|
|
9603
9639
|
o(J), B();
|
|
9604
|
-
}, S),
|
|
9640
|
+
}, S), p = null;
|
|
9605
9641
|
}
|
|
9606
|
-
"onloadend" in
|
|
9607
|
-
!
|
|
9608
|
-
},
|
|
9609
|
-
|
|
9610
|
-
},
|
|
9611
|
-
o(new k("Network Error", k.ERR_NETWORK, e,
|
|
9612
|
-
},
|
|
9642
|
+
"onloadend" in p ? p.onloadend = K : p.onreadystatechange = function() {
|
|
9643
|
+
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(K);
|
|
9644
|
+
}, p.onabort = function() {
|
|
9645
|
+
p && (o(new k("Request aborted", k.ECONNABORTED, e, p)), p = null);
|
|
9646
|
+
}, p.onerror = function() {
|
|
9647
|
+
o(new k("Network Error", k.ERR_NETWORK, e, p)), p = null;
|
|
9648
|
+
}, p.ontimeout = function() {
|
|
9613
9649
|
let N = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
|
|
9614
9650
|
const S = n.transitional || Hr;
|
|
9615
9651
|
n.timeoutErrorMessage && (N = n.timeoutErrorMessage), o(new k(
|
|
9616
9652
|
N,
|
|
9617
9653
|
S.clarifyTimeoutError ? k.ETIMEDOUT : k.ECONNABORTED,
|
|
9618
9654
|
e,
|
|
9619
|
-
|
|
9620
|
-
)),
|
|
9621
|
-
}, a === void 0 && i.setContentType(null), "setRequestHeader" in
|
|
9622
|
-
|
|
9623
|
-
}), w.isUndefined(n.withCredentials) || (
|
|
9624
|
-
|
|
9625
|
-
}, n.cancelToken && n.cancelToken.subscribe(
|
|
9655
|
+
p
|
|
9656
|
+
)), p = null;
|
|
9657
|
+
}, a === void 0 && i.setContentType(null), "setRequestHeader" in p && w.forEach(i.toJSON(), function(N, S) {
|
|
9658
|
+
p.setRequestHeader(S, N);
|
|
9659
|
+
}), w.isUndefined(n.withCredentials) || (p.withCredentials = !!n.withCredentials), s && s !== "json" && (p.responseType = n.responseType), y && ([X, b] = Bt(y, !0), p.addEventListener("progress", X)), f && p.upload && ([D, j] = Bt(f), p.upload.addEventListener("progress", D), p.upload.addEventListener("loadend", j)), (n.cancelToken || n.signal) && (u = (T) => {
|
|
9660
|
+
p && (o(!T || T.type ? new tt(null, e, p) : T), p.abort(), p = null);
|
|
9661
|
+
}, n.cancelToken && n.cancelToken.subscribe(u), n.signal && (n.signal.aborted ? u() : n.signal.addEventListener("abort", u)));
|
|
9626
9662
|
const I = Yi(n.url);
|
|
9627
9663
|
if (I && fe.protocols.indexOf(I) === -1) {
|
|
9628
9664
|
o(new k("Unsupported protocol " + I + ":", k.ERR_BAD_REQUEST, e));
|
|
9629
9665
|
return;
|
|
9630
9666
|
}
|
|
9631
|
-
|
|
9667
|
+
p.send(a || null);
|
|
9632
9668
|
});
|
|
9633
9669
|
}, tc = (e, t) => {
|
|
9634
9670
|
const { length: r } = e = e ? e.filter(Boolean) : [];
|
|
@@ -9637,8 +9673,8 @@ const jr = (e) => {
|
|
|
9637
9673
|
const a = function(y) {
|
|
9638
9674
|
if (!n) {
|
|
9639
9675
|
n = !0, s();
|
|
9640
|
-
const
|
|
9641
|
-
o.abort(
|
|
9676
|
+
const u = y instanceof Error ? y : this.reason;
|
|
9677
|
+
o.abort(u instanceof k ? u : new tt(u instanceof Error ? u.message : u));
|
|
9642
9678
|
}
|
|
9643
9679
|
};
|
|
9644
9680
|
let i = t && setTimeout(() => {
|
|
@@ -9689,17 +9725,17 @@ const jr = (e) => {
|
|
|
9689
9725
|
return new ReadableStream({
|
|
9690
9726
|
async pull(f) {
|
|
9691
9727
|
try {
|
|
9692
|
-
const { done: y, value:
|
|
9728
|
+
const { done: y, value: u } = await n.next();
|
|
9693
9729
|
if (y) {
|
|
9694
9730
|
s(), f.close();
|
|
9695
9731
|
return;
|
|
9696
9732
|
}
|
|
9697
|
-
let D =
|
|
9733
|
+
let D = u.byteLength;
|
|
9698
9734
|
if (r) {
|
|
9699
9735
|
let X = a += D;
|
|
9700
9736
|
r(X);
|
|
9701
9737
|
}
|
|
9702
|
-
f.enqueue(new Uint8Array(
|
|
9738
|
+
f.enqueue(new Uint8Array(u));
|
|
9703
9739
|
} catch (y) {
|
|
9704
9740
|
throw s(y), y;
|
|
9705
9741
|
}
|
|
@@ -9726,12 +9762,12 @@ const jr = (e) => {
|
|
|
9726
9762
|
}
|
|
9727
9763
|
}).headers.has("Content-Type");
|
|
9728
9764
|
return e && !t;
|
|
9729
|
-
}), qo = 64 * 1024,
|
|
9730
|
-
stream:
|
|
9765
|
+
}), qo = 64 * 1024, uo = Or && Mr(() => w.isReadableStream(new Response("").body)), Ct = {
|
|
9766
|
+
stream: uo && ((e) => e.body)
|
|
9731
9767
|
};
|
|
9732
9768
|
bt && ((e) => {
|
|
9733
9769
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
9734
|
-
!
|
|
9770
|
+
!Ct[t] && (Ct[t] = w.isFunction(e[t]) ? (r) => r[t]() : (r, o) => {
|
|
9735
9771
|
throw new k(`Response type '${t}' is not supported`, k.ERR_NOT_SUPPORT, o);
|
|
9736
9772
|
});
|
|
9737
9773
|
});
|
|
@@ -9764,7 +9800,7 @@ const cc = async (e) => {
|
|
|
9764
9800
|
onDownloadProgress: s,
|
|
9765
9801
|
onUploadProgress: f,
|
|
9766
9802
|
responseType: y,
|
|
9767
|
-
headers:
|
|
9803
|
+
headers: u,
|
|
9768
9804
|
withCredentials: D = "same-origin",
|
|
9769
9805
|
fetchOptions: X
|
|
9770
9806
|
} = jr(e);
|
|
@@ -9773,17 +9809,17 @@ const cc = async (e) => {
|
|
|
9773
9809
|
const B = j && j.unsubscribe && (() => {
|
|
9774
9810
|
j.unsubscribe();
|
|
9775
9811
|
});
|
|
9776
|
-
let
|
|
9812
|
+
let p;
|
|
9777
9813
|
try {
|
|
9778
|
-
if (f && ic && r !== "get" && r !== "head" && (
|
|
9814
|
+
if (f && ic && r !== "get" && r !== "head" && (p = await Ac(u, o)) !== 0) {
|
|
9779
9815
|
let S = new Request(t, {
|
|
9780
9816
|
method: "POST",
|
|
9781
9817
|
body: o,
|
|
9782
9818
|
duplex: "half"
|
|
9783
9819
|
}), L;
|
|
9784
|
-
if (w.isFormData(o) && (L = S.headers.get("content-type")) &&
|
|
9820
|
+
if (w.isFormData(o) && (L = S.headers.get("content-type")) && u.setContentType(L), S.body) {
|
|
9785
9821
|
const [J, _] = Vo(
|
|
9786
|
-
|
|
9822
|
+
p,
|
|
9787
9823
|
Bt(So(f))
|
|
9788
9824
|
);
|
|
9789
9825
|
o = No(S.body, qo, J, _);
|
|
@@ -9795,14 +9831,14 @@ const cc = async (e) => {
|
|
|
9795
9831
|
...X,
|
|
9796
9832
|
signal: j,
|
|
9797
9833
|
method: r.toUpperCase(),
|
|
9798
|
-
headers:
|
|
9834
|
+
headers: u.normalize().toJSON(),
|
|
9799
9835
|
body: o,
|
|
9800
9836
|
duplex: "half",
|
|
9801
9837
|
credentials: K ? D : void 0
|
|
9802
9838
|
});
|
|
9803
9839
|
let I = await fetch(b);
|
|
9804
|
-
const T =
|
|
9805
|
-
if (
|
|
9840
|
+
const T = uo && (y === "stream" || y === "response");
|
|
9841
|
+
if (uo && (s || T && B)) {
|
|
9806
9842
|
const S = {};
|
|
9807
9843
|
["status", "statusText", "headers"].forEach((l) => {
|
|
9808
9844
|
S[l] = I[l];
|
|
@@ -9819,7 +9855,7 @@ const cc = async (e) => {
|
|
|
9819
9855
|
);
|
|
9820
9856
|
}
|
|
9821
9857
|
y = y || "text";
|
|
9822
|
-
let N = await
|
|
9858
|
+
let N = await Ct[w.findKey(Ct, y) || "text"](I, e);
|
|
9823
9859
|
return !T && B && B(), await new Promise((S, L) => {
|
|
9824
9860
|
Tr(S, L, {
|
|
9825
9861
|
data: N,
|
|
@@ -9838,12 +9874,12 @@ const cc = async (e) => {
|
|
|
9838
9874
|
}
|
|
9839
9875
|
) : k.from(K, K && K.code, e, b);
|
|
9840
9876
|
}
|
|
9841
|
-
}),
|
|
9842
|
-
http:
|
|
9877
|
+
}), po = {
|
|
9878
|
+
http: Ui,
|
|
9843
9879
|
xhr: ec,
|
|
9844
9880
|
fetch: sc
|
|
9845
9881
|
};
|
|
9846
|
-
w.forEach(
|
|
9882
|
+
w.forEach(po, (e, t) => {
|
|
9847
9883
|
if (e) {
|
|
9848
9884
|
try {
|
|
9849
9885
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -9861,7 +9897,7 @@ const Yo = (e) => `- ${e}`, mc = (e) => w.isFunction(e) || e === null || e === !
|
|
|
9861
9897
|
for (let a = 0; a < t; a++) {
|
|
9862
9898
|
r = e[a];
|
|
9863
9899
|
let i;
|
|
9864
|
-
if (o = r, !mc(r) && (o =
|
|
9900
|
+
if (o = r, !mc(r) && (o = po[(i = String(r)).toLowerCase()], o === void 0))
|
|
9865
9901
|
throw new k(`Unknown adapter '${i}'`);
|
|
9866
9902
|
if (o)
|
|
9867
9903
|
break;
|
|
@@ -9881,7 +9917,7 @@ const Yo = (e) => `- ${e}`, mc = (e) => w.isFunction(e) || e === null || e === !
|
|
|
9881
9917
|
}
|
|
9882
9918
|
return o;
|
|
9883
9919
|
},
|
|
9884
|
-
adapters:
|
|
9920
|
+
adapters: po
|
|
9885
9921
|
};
|
|
9886
9922
|
function ro(e) {
|
|
9887
9923
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
@@ -10021,12 +10057,12 @@ let Ye = class {
|
|
|
10021
10057
|
this.interceptors.response.forEach(function(B) {
|
|
10022
10058
|
y.push(B.fulfilled, B.rejected);
|
|
10023
10059
|
});
|
|
10024
|
-
let
|
|
10060
|
+
let u, D = 0, X;
|
|
10025
10061
|
if (!f) {
|
|
10026
10062
|
const b = [Lo.bind(this), void 0];
|
|
10027
|
-
for (b.unshift.apply(b, s), b.push.apply(b, y), X = b.length,
|
|
10028
|
-
|
|
10029
|
-
return
|
|
10063
|
+
for (b.unshift.apply(b, s), b.push.apply(b, y), X = b.length, u = Promise.resolve(r); D < X; )
|
|
10064
|
+
u = u.then(b[D++], b[D++]);
|
|
10065
|
+
return u;
|
|
10030
10066
|
}
|
|
10031
10067
|
X = s.length;
|
|
10032
10068
|
let j = r;
|
|
@@ -10034,19 +10070,19 @@ let Ye = class {
|
|
|
10034
10070
|
const b = s[D++], B = s[D++];
|
|
10035
10071
|
try {
|
|
10036
10072
|
j = b(j);
|
|
10037
|
-
} catch (
|
|
10038
|
-
B.call(this,
|
|
10073
|
+
} catch (p) {
|
|
10074
|
+
B.call(this, p);
|
|
10039
10075
|
break;
|
|
10040
10076
|
}
|
|
10041
10077
|
}
|
|
10042
10078
|
try {
|
|
10043
|
-
|
|
10079
|
+
u = Lo.call(this, j);
|
|
10044
10080
|
} catch (b) {
|
|
10045
10081
|
return Promise.reject(b);
|
|
10046
10082
|
}
|
|
10047
10083
|
for (D = 0, X = y.length; D < X; )
|
|
10048
|
-
|
|
10049
|
-
return
|
|
10084
|
+
u = u.then(y[D++], y[D++]);
|
|
10085
|
+
return u;
|
|
10050
10086
|
}
|
|
10051
10087
|
getUri(t) {
|
|
10052
10088
|
t = Le(this.defaults, t);
|
|
@@ -10151,12 +10187,12 @@ let dc = class Sr {
|
|
|
10151
10187
|
};
|
|
10152
10188
|
}
|
|
10153
10189
|
};
|
|
10154
|
-
function
|
|
10190
|
+
function uc(e) {
|
|
10155
10191
|
return function(r) {
|
|
10156
10192
|
return e.apply(null, r);
|
|
10157
10193
|
};
|
|
10158
10194
|
}
|
|
10159
|
-
function
|
|
10195
|
+
function pc(e) {
|
|
10160
10196
|
return w.isObject(e) && e.isAxiosError === !0;
|
|
10161
10197
|
}
|
|
10162
10198
|
const fo = {
|
|
@@ -10245,8 +10281,8 @@ ce.Cancel = ce.CanceledError;
|
|
|
10245
10281
|
ce.all = function(t) {
|
|
10246
10282
|
return Promise.all(t);
|
|
10247
10283
|
};
|
|
10248
|
-
ce.spread =
|
|
10249
|
-
ce.isAxiosError =
|
|
10284
|
+
ce.spread = uc;
|
|
10285
|
+
ce.isAxiosError = pc;
|
|
10250
10286
|
ce.mergeConfig = Le;
|
|
10251
10287
|
ce.AxiosHeaders = we;
|
|
10252
10288
|
ce.formToJSON = (e) => zr(w.isHTMLForm(e) ? new FormData(e) : e);
|
|
@@ -10255,8 +10291,8 @@ ce.HttpStatusCode = fo;
|
|
|
10255
10291
|
ce.default = ce;
|
|
10256
10292
|
const {
|
|
10257
10293
|
Axios: dA,
|
|
10258
|
-
AxiosError:
|
|
10259
|
-
CanceledError:
|
|
10294
|
+
AxiosError: uA,
|
|
10295
|
+
CanceledError: pA,
|
|
10260
10296
|
isCancel: fA,
|
|
10261
10297
|
CancelToken: gA,
|
|
10262
10298
|
VERSION: yA,
|
|
@@ -10265,8 +10301,8 @@ const {
|
|
|
10265
10301
|
isAxiosError: FA,
|
|
10266
10302
|
spread: wA,
|
|
10267
10303
|
toFormData: BA,
|
|
10268
|
-
AxiosHeaders:
|
|
10269
|
-
HttpStatusCode:
|
|
10304
|
+
AxiosHeaders: CA,
|
|
10305
|
+
HttpStatusCode: UA,
|
|
10270
10306
|
formToJSON: DA,
|
|
10271
10307
|
getAdapter: RA,
|
|
10272
10308
|
mergeConfig: PA
|
|
@@ -10290,7 +10326,7 @@ function yc(e, t) {
|
|
|
10290
10326
|
});
|
|
10291
10327
|
return r.interceptors.request.use(
|
|
10292
10328
|
(o) => {
|
|
10293
|
-
const { token: n } =
|
|
10329
|
+
const { token: n } = Ue($());
|
|
10294
10330
|
return n.value && (o.headers.Authorization = `Bearer ${n.value}`), o;
|
|
10295
10331
|
},
|
|
10296
10332
|
(o) => Promise.reject(o)
|
|
@@ -10308,7 +10344,7 @@ class xt {
|
|
|
10308
10344
|
constructor(t) {
|
|
10309
10345
|
Qe(this, "baseUrl");
|
|
10310
10346
|
Qe(this, "rawFetch", async (t) => {
|
|
10311
|
-
const { fetchType: r, url: o, requestConfig: n, data: a } = t, { country: i } =
|
|
10347
|
+
const { fetchType: r, url: o, requestConfig: n, data: a } = t, { country: i } = Ue($()), s = yc(i.value, this.baseUrl);
|
|
10312
10348
|
switch (r) {
|
|
10313
10349
|
case "get":
|
|
10314
10350
|
return await s.get(o, n);
|
|
@@ -10338,31 +10374,31 @@ const se = new xt("https://query-engine{.country}.feedmeapi.com"), mt = new xt("
|
|
|
10338
10374
|
name: e.profile.name,
|
|
10339
10375
|
customAttributes: { ...e.customAttributes }
|
|
10340
10376
|
}), Fc = async () => {
|
|
10341
|
-
const { businessId: e } =
|
|
10377
|
+
const { businessId: e } = Ue($()), t = {
|
|
10342
10378
|
fetchType: re.Get,
|
|
10343
10379
|
url: `/${e.value}/restaurants`
|
|
10344
10380
|
}, r = (await mt.fetch(t)).map((o) => vc(o));
|
|
10345
10381
|
return r.sort((o, n) => o.name.localeCompare(n.name, void 0, { numeric: !0 })), r;
|
|
10346
10382
|
}, wc = async () => {
|
|
10347
|
-
const { businessId: e } =
|
|
10383
|
+
const { businessId: e } = Ue($()), t = {
|
|
10348
10384
|
fetchType: re.Get,
|
|
10349
10385
|
url: `/${e.value}/warehouses`
|
|
10350
10386
|
}, r = (await mt.fetch(t)).map((o) => hc(o));
|
|
10351
10387
|
return r.sort((o, n) => o.name.localeCompare(n.name, void 0, { numeric: !0 })), r;
|
|
10352
10388
|
}, Bc = () => {
|
|
10353
|
-
const { businessId: e } =
|
|
10389
|
+
const { businessId: e } = Ue($()), t = {
|
|
10354
10390
|
fetchType: re.Get,
|
|
10355
10391
|
url: `/${e.value}`
|
|
10356
10392
|
};
|
|
10357
10393
|
return mt.fetch(t);
|
|
10358
|
-
},
|
|
10359
|
-
const { businessId: e } =
|
|
10394
|
+
}, Cc = () => {
|
|
10395
|
+
const { businessId: e } = Ue($()), t = {
|
|
10360
10396
|
fetchType: re.Get,
|
|
10361
10397
|
url: `/report-settings/${e.value}/date-settings`
|
|
10362
10398
|
};
|
|
10363
10399
|
return mt.fetch(t);
|
|
10364
10400
|
}, Wo = (e) => {
|
|
10365
|
-
const { businessId: t } =
|
|
10401
|
+
const { businessId: t } = Ue($()), r = {
|
|
10366
10402
|
fetchType: re.Put,
|
|
10367
10403
|
url: `/report-settings/${t.value}/date-settings`,
|
|
10368
10404
|
data: {
|
|
@@ -10408,11 +10444,11 @@ function xA(e) {
|
|
|
10408
10444
|
const t = Nr(e);
|
|
10409
10445
|
W.tz.setDefault(t);
|
|
10410
10446
|
}
|
|
10411
|
-
const
|
|
10447
|
+
const Uc = "mf-reportreport-filter-store";
|
|
10412
10448
|
var Dc = /* @__PURE__ */ ((e) => (e.NO_COMPARISON = "NO_COMPARISON", e.PRECEDING_PERIOD = "PRECEDING_PERIOD", e.PRECEDING_WEEK = "PRECEDING_WEEK", e.PRECEDING_MONTH = "PRECEDING_MONTH", e.PRECEDING_YEAR = "PRECEDING_YEAR", e.CUSTOM = "CUSTOM", e))(Dc || {});
|
|
10413
10449
|
const oe = "YYYY-MM-DD";
|
|
10414
10450
|
function Rc() {
|
|
10415
|
-
const { timezone: e } =
|
|
10451
|
+
const { timezone: e } = Ue(lt());
|
|
10416
10452
|
return [
|
|
10417
10453
|
{
|
|
10418
10454
|
label: Ie.TODAY,
|
|
@@ -10466,7 +10502,7 @@ function Rc() {
|
|
|
10466
10502
|
}
|
|
10467
10503
|
];
|
|
10468
10504
|
}
|
|
10469
|
-
const lt = ct(
|
|
10505
|
+
const lt = ct(Uc, () => {
|
|
10470
10506
|
async function e(v) {
|
|
10471
10507
|
try {
|
|
10472
10508
|
j.value = await Fc(), b.value = await wc();
|
|
@@ -10480,7 +10516,7 @@ const lt = ct(Cc, () => {
|
|
|
10480
10516
|
}
|
|
10481
10517
|
async function t() {
|
|
10482
10518
|
try {
|
|
10483
|
-
n.value = await
|
|
10519
|
+
n.value = await Cc(), n.value.timeOptions.length === 0 && (n.value.timeOptions.push({
|
|
10484
10520
|
name: "All day",
|
|
10485
10521
|
isDefault: !0,
|
|
10486
10522
|
startTime: { hour: 0, minute: 0 },
|
|
@@ -10498,38 +10534,38 @@ const lt = ct(Cc, () => {
|
|
|
10498
10534
|
const M = v.timeOptions.find((R) => R.isDefault);
|
|
10499
10535
|
switch (M && (D.value.start = M.startTime, D.value.end = M.endTime), X.value = v.timeOptions.findIndex((R) => R.isDefault) + 1, v.defaultCompareType) {
|
|
10500
10536
|
case "NO_COMPARISON": {
|
|
10501
|
-
|
|
10537
|
+
u.value.startDate = void 0, u.value.endDate = void 0;
|
|
10502
10538
|
break;
|
|
10503
10539
|
}
|
|
10504
10540
|
case "PRECEDING_WEEK": {
|
|
10505
|
-
const R = W.tz(y.value.startDate, f.value),
|
|
10506
|
-
|
|
10507
|
-
startDate: R.subtract(
|
|
10508
|
-
endDate:
|
|
10541
|
+
const R = W.tz(y.value.startDate, f.value), U = W.tz(y.value.endDate, f.value), C = U.diff(R, "week") + 1;
|
|
10542
|
+
u.value = {
|
|
10543
|
+
startDate: R.subtract(C, "week").format(oe),
|
|
10544
|
+
endDate: U.subtract(C, "week").format(oe)
|
|
10509
10545
|
};
|
|
10510
10546
|
break;
|
|
10511
10547
|
}
|
|
10512
10548
|
case "PRECEDING_MONTH": {
|
|
10513
|
-
const R = W.tz(y.value.startDate, f.value),
|
|
10514
|
-
|
|
10515
|
-
startDate: R.subtract(
|
|
10516
|
-
endDate:
|
|
10549
|
+
const R = W.tz(y.value.startDate, f.value), U = W.tz(y.value.endDate, f.value), C = U.diff(R, "month") + 1;
|
|
10550
|
+
u.value = {
|
|
10551
|
+
startDate: R.subtract(C, "month").format(oe),
|
|
10552
|
+
endDate: U.subtract(C, "month").format(oe)
|
|
10517
10553
|
};
|
|
10518
10554
|
break;
|
|
10519
10555
|
}
|
|
10520
10556
|
case "PRECEDING_PERIOD": {
|
|
10521
|
-
const R = W.tz(y.value.startDate, f.value),
|
|
10522
|
-
|
|
10523
|
-
startDate: R.subtract(
|
|
10524
|
-
endDate:
|
|
10557
|
+
const R = W.tz(y.value.startDate, f.value), U = W.tz(y.value.endDate, f.value), C = U.diff(R, "day") + 1;
|
|
10558
|
+
u.value = {
|
|
10559
|
+
startDate: R.subtract(C, "day").format(oe),
|
|
10560
|
+
endDate: U.subtract(C, "day").format(oe)
|
|
10525
10561
|
};
|
|
10526
10562
|
break;
|
|
10527
10563
|
}
|
|
10528
10564
|
case "PRECEDING_YEAR": {
|
|
10529
|
-
const R = W.tz(y.value.startDate, f.value),
|
|
10530
|
-
|
|
10531
|
-
startDate: R.subtract(
|
|
10532
|
-
endDate:
|
|
10565
|
+
const R = W.tz(y.value.startDate, f.value), U = W.tz(y.value.endDate, f.value), C = U.diff(R, "year") + 1;
|
|
10566
|
+
u.value = {
|
|
10567
|
+
startDate: R.subtract(C, "year").format(oe),
|
|
10568
|
+
endDate: U.subtract(C, "year").format(oe)
|
|
10533
10569
|
};
|
|
10534
10570
|
break;
|
|
10535
10571
|
}
|
|
@@ -10550,20 +10586,20 @@ const lt = ct(Cc, () => {
|
|
|
10550
10586
|
defaultDateRange: Ie.TODAY,
|
|
10551
10587
|
timeOptions: [],
|
|
10552
10588
|
timezone: void 0
|
|
10553
|
-
}), a = ne([]), i = me(() => [...j.value, ...b.value]), { country: s } =
|
|
10589
|
+
}), a = ne([]), i = me(() => [...j.value, ...b.value]), { country: s } = Ue($()), f = me(() => n.value.timezone ? n.value.timezone : Nr(s.value)), y = ne({
|
|
10554
10590
|
startDate: W().tz(f.value).startOf("day").format(oe),
|
|
10555
10591
|
endDate: W().tz(f.value).startOf("day").format(oe)
|
|
10556
|
-
}),
|
|
10592
|
+
}), u = ne({
|
|
10557
10593
|
startDate: W().tz(f.value).startOf("day").subtract(1, "day").format(oe),
|
|
10558
10594
|
endDate: W().tz(f.value).startOf("day").subtract(1, "day").format(oe)
|
|
10559
10595
|
}), D = ne({ start: { hour: 0, minute: 0 }, end: { hour: 23, minute: 59 } }), X = ne(
|
|
10560
10596
|
n.value.timeOptions.findIndex((v) => v.isDefault) + 1
|
|
10561
|
-
), j = ne([]), b = ne([]), B = ne(null),
|
|
10597
|
+
), j = ne([]), b = ne([]), B = ne(null), p = ne(null), K = ne(null), I = ne(0);
|
|
10562
10598
|
function T(v) {
|
|
10563
|
-
|
|
10599
|
+
p.value = v, K.value = null;
|
|
10564
10600
|
}
|
|
10565
10601
|
function N(v) {
|
|
10566
|
-
|
|
10602
|
+
p.value === v && (K.value = v, I.value++);
|
|
10567
10603
|
}
|
|
10568
10604
|
const S = me(
|
|
10569
10605
|
() => j.value.filter((v) => a.value.includes(v.id)).map((v) => v.id)
|
|
@@ -10577,7 +10613,7 @@ const lt = ct(Cc, () => {
|
|
|
10577
10613
|
D.value = v;
|
|
10578
10614
|
}
|
|
10579
10615
|
function l(v) {
|
|
10580
|
-
|
|
10616
|
+
u.value = v;
|
|
10581
10617
|
}
|
|
10582
10618
|
function F(v) {
|
|
10583
10619
|
a.value = v;
|
|
@@ -10592,7 +10628,7 @@ const lt = ct(Cc, () => {
|
|
|
10592
10628
|
defaultDateSetting: n,
|
|
10593
10629
|
dateRange: y,
|
|
10594
10630
|
timeRange: D,
|
|
10595
|
-
compareDateRange:
|
|
10631
|
+
compareDateRange: u,
|
|
10596
10632
|
locations: i,
|
|
10597
10633
|
selectTimeDefault: X,
|
|
10598
10634
|
timezone: f,
|
|
@@ -10603,7 +10639,7 @@ const lt = ct(Cc, () => {
|
|
|
10603
10639
|
setTimeRange: _,
|
|
10604
10640
|
setCompareDateRange: l,
|
|
10605
10641
|
setSelectedLocationIds: F,
|
|
10606
|
-
businessLoadingId:
|
|
10642
|
+
businessLoadingId: p,
|
|
10607
10643
|
businessLoadedId: K,
|
|
10608
10644
|
businessDataVersion: I,
|
|
10609
10645
|
beginBusinessLoad: T,
|
|
@@ -10737,7 +10773,7 @@ async function NA(e, t) {
|
|
|
10737
10773
|
try {
|
|
10738
10774
|
const { businessId: o } = $(), { dateRange: n } = lt(), a = W(n.endDate).diff(n.startDate, "day"), s = {
|
|
10739
10775
|
dates: [...new Array(a + 1)].map(
|
|
10740
|
-
(
|
|
10776
|
+
(u, D) => W(n.startDate).add(D, "day").utc().toISOString()
|
|
10741
10777
|
)
|
|
10742
10778
|
}, f = {
|
|
10743
10779
|
fetchType: re.Post,
|
|
@@ -10748,8 +10784,8 @@ async function NA(e, t) {
|
|
|
10748
10784
|
}
|
|
10749
10785
|
};
|
|
10750
10786
|
r = await se.fetch(f);
|
|
10751
|
-
const y = r.map(async (
|
|
10752
|
-
await bc(e,
|
|
10787
|
+
const y = r.map(async (u) => {
|
|
10788
|
+
await bc(e, u);
|
|
10753
10789
|
});
|
|
10754
10790
|
await Promise.all(y);
|
|
10755
10791
|
} catch (o) {
|
|
@@ -10954,7 +10990,7 @@ var go = { exports: {} };
|
|
|
10954
10990
|
Object.keys(A || {}).includes(d) || c.push(d);
|
|
10955
10991
|
}), Object.keys(c).length ? c : null;
|
|
10956
10992
|
}
|
|
10957
|
-
var
|
|
10993
|
+
var u, D;
|
|
10958
10994
|
function X(h, A, c) {
|
|
10959
10995
|
var d = "shortString", m = !0;
|
|
10960
10996
|
typeof c == "number" && (d = "javaDouble", m = !1), h[d] = h[d] || {}, h[d][A] = m ? c + "" : c;
|
|
@@ -10973,8 +11009,8 @@ var go = { exports: {} };
|
|
|
10973
11009
|
}
|
|
10974
11010
|
(function(h) {
|
|
10975
11011
|
h.NONE = "NONE", h.DEFAULT_FLAGS = "DEFAULT_FLAGS", h.CACHE = "CACHE", h.SERVER = "SERVER";
|
|
10976
|
-
})(
|
|
10977
|
-
var
|
|
11012
|
+
})(u || (u = {}));
|
|
11013
|
+
var p, K = null, I = "FLAGSMITH_EVENT", T = I, N = "https://edge.api.flagsmith.com/api/v1/", S = "flagsmith_value_", L = "flagsmith_enabled_", J = "flagsmith_trait_", _ = function() {
|
|
10978
11014
|
function h(A) {
|
|
10979
11015
|
var c = this;
|
|
10980
11016
|
this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
|
|
@@ -10983,16 +11019,16 @@ var go = { exports: {} };
|
|
|
10983
11019
|
var E = "".concat(c.getContext().identity), V = function(G) {
|
|
10984
11020
|
var Z, Q, Y, ee;
|
|
10985
11021
|
if (G && E === "".concat(c.getContext().identity)) {
|
|
10986
|
-
var Ae = G.flags, ie = G.traits,
|
|
11022
|
+
var Ae = G.flags, ie = G.traits, ue = G.identifier;
|
|
10987
11023
|
c.isLoading = !1;
|
|
10988
|
-
var de = {},
|
|
11024
|
+
var de = {}, pe = {};
|
|
10989
11025
|
ie = ie || [], (Ae = Ae || []).forEach(function(te) {
|
|
10990
11026
|
de[te.feature.name.toLowerCase().replace(/ /g, "_")] = { id: te.feature.id, enabled: te.enabled, value: te.feature_state_value };
|
|
10991
11027
|
}), ie.forEach(function(te) {
|
|
10992
|
-
|
|
11028
|
+
pe[te.trait_key.toLowerCase().replace(/ /g, "_")] = { transient: te.transient, value: te.trait_value };
|
|
10993
11029
|
}), c.oldFlags = n({}, c.flags);
|
|
10994
|
-
var ve = y(c.oldFlags, de), ze = y((Z = c.evaluationContext.identity) === null || Z === void 0 ? void 0 : Z.traits,
|
|
10995
|
-
if ((
|
|
11030
|
+
var ve = y(c.oldFlags, de), ze = y((Z = c.evaluationContext.identity) === null || Z === void 0 ? void 0 : Z.traits, pe);
|
|
11031
|
+
if ((ue || Object.keys(pe).length) && (c.evaluationContext.identity = n(n({}, c.evaluationContext.identity), { traits: pe }), ue && (c.evaluationContext.identity.identifier = ue)), c.flags = de, c.updateStorage(), c._onChange(c.oldFlags, { isFromServer: !0, flagsChanged: ve, traitsChanged: ze }, c._loadedState(null, u.SERVER)), c.datadogRum) try {
|
|
10996
11032
|
if (c.datadogRum.trackTraits) {
|
|
10997
11033
|
var Xe = {};
|
|
10998
11034
|
Object.keys(((Q = c.evaluationContext.identity) === null || Q === void 0 ? void 0 : Q.traits) || {}).map(function(te) {
|
|
@@ -11039,7 +11075,7 @@ var go = { exports: {} };
|
|
|
11039
11075
|
}).catch(function(m) {
|
|
11040
11076
|
c.log("Exception fetching evaluationEvent", m);
|
|
11041
11077
|
}) : void 0;
|
|
11042
|
-
}, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source:
|
|
11078
|
+
}, this.datadogRum = null, this.loadingState = { isLoading: !0, isFetching: !0, error: null, source: u.NONE }, this.canUseStorage = !1, this.analyticsInterval = null, this.api = null, this.cacheFlags = !1, this.ts = null, this.enableAnalytics = !1, this.enableLogs = !1, this.evaluationContext = {}, this.evaluationEvent = null, this.flags = null, this.getFlagInterval = null, this.headers = null, this.initialised = !1, this.oldFlags = null, this.onChange = null, this.onError = null, this.ticks = null, this.timer = null, this.dtrum = null, this.withTraits = null, this.cacheOptions = { ttl: 0, skipAPI: !1, loadStale: !1, storageKey: void 0 }, this.getValue = function(d, m, P) {
|
|
11043
11079
|
var E = c.flags && c.flags[d.toLowerCase().replace(/ /g, "_")], V = null;
|
|
11044
11080
|
if (E && (V = E.value), m != null && m.skipAnalytics || P || c.evaluateFlag(d, "VALUE"), V === null && (m == null ? void 0 : m.fallback) !== void 0) return m.fallback;
|
|
11045
11081
|
if (m != null && m.json) try {
|
|
@@ -11089,18 +11125,18 @@ var go = { exports: {} };
|
|
|
11089
11125
|
return D(d, Z).then(function(Y) {
|
|
11090
11126
|
var ee, Ae, ie = "".concat((ee = c.evaluationContext.identity) === null || ee === void 0 ? void 0 : ee.identifier);
|
|
11091
11127
|
if (Q === ie) {
|
|
11092
|
-
var
|
|
11093
|
-
if (
|
|
11094
|
-
var de = parseFloat(
|
|
11128
|
+
var ue = (Ae = Y.headers) === null || Ae === void 0 ? void 0 : Ae.get("x-flagsmith-document-updated-at");
|
|
11129
|
+
if (ue) try {
|
|
11130
|
+
var de = parseFloat(ue);
|
|
11095
11131
|
if (isNaN(de)) return Promise.reject("Failed to parse x-flagsmith-document-updated-at");
|
|
11096
11132
|
c.timestamp = de;
|
|
11097
|
-
} catch (
|
|
11098
|
-
c.log(
|
|
11133
|
+
} catch (pe) {
|
|
11134
|
+
c.log(pe, "Failed to parse x-flagsmith-document-updated-at", ue);
|
|
11099
11135
|
}
|
|
11100
|
-
return c.log("Fetch response: " + Y.status + " " + (m || "GET") + 0 + d), Y.text().then(function(
|
|
11101
|
-
var ve =
|
|
11136
|
+
return c.log("Fetch response: " + Y.status + " " + (m || "GET") + 0 + d), Y.text().then(function(pe) {
|
|
11137
|
+
var ve = pe;
|
|
11102
11138
|
try {
|
|
11103
|
-
ve = JSON.parse(
|
|
11139
|
+
ve = JSON.parse(pe);
|
|
11104
11140
|
} catch {
|
|
11105
11141
|
}
|
|
11106
11142
|
return !ve && Y.status && (ve = "API Response: ".concat(Y.status)), Y.status && Y.status >= 200 && Y.status < 300 ? ve : Promise.reject(new Error(ve));
|
|
@@ -11117,23 +11153,23 @@ var go = { exports: {} };
|
|
|
11117
11153
|
}, this._onChange = function(d, m, P) {
|
|
11118
11154
|
var E, V;
|
|
11119
11155
|
c.setLoadingState(P), (E = c.onChange) === null || E === void 0 || E.call(c, d, m, c.loadingState), (V = c._trigger) === null || V === void 0 || V.call(c);
|
|
11120
|
-
}, D = A.fetch ? A.fetch : typeof fetch < "u" ? fetch : globalThis == null ? void 0 : globalThis.fetch, this.canUseStorage = typeof window < "u" || !!A.browserlessStorage, this.log("Constructing flagsmith instance " + A), A.eventSource && (
|
|
11156
|
+
}, D = A.fetch ? A.fetch : typeof fetch < "u" ? fetch : globalThis == null ? void 0 : globalThis.fetch, this.canUseStorage = typeof window < "u" || !!A.browserlessStorage, this.log("Constructing flagsmith instance " + A), A.eventSource && (p = A.eventSource), A.AsyncStorage && (K = A.AsyncStorage);
|
|
11121
11157
|
}
|
|
11122
11158
|
return h.prototype.init = function(A) {
|
|
11123
11159
|
var c, d, m;
|
|
11124
11160
|
return a(this, void 0, void 0, function() {
|
|
11125
|
-
var P, E, V, G, Z, Q, Y, ee, Ae, ie,
|
|
11161
|
+
var P, E, V, G, Z, Q, Y, ee, Ae, ie, ue, de, pe, ve, ze, Xe, Se, he, te, Et, ot, Uo, ke, Ht, Do, Ro, zt, Po, Xt, rt, We, bo, Fe = this;
|
|
11126
11162
|
return i(this, function(Re) {
|
|
11127
11163
|
switch (Re.label) {
|
|
11128
11164
|
case 0:
|
|
11129
11165
|
P = B(A.evaluationContext || this.evaluationContext), Re.label = 1;
|
|
11130
11166
|
case 1:
|
|
11131
|
-
if (Re.trys.push([1, 13, , 14]), E = A.environmentID, V = A.api, G = V === void 0 ? N : V, Z = A.headers, Q = A.onChange, Y = A.cacheFlags, ee = A.datadogRum, Ae = A.onError, ie = A.defaultFlags,
|
|
11167
|
+
if (Re.trys.push([1, 13, , 14]), E = A.environmentID, V = A.api, G = V === void 0 ? N : V, Z = A.headers, Q = A.onChange, Y = A.cacheFlags, ee = A.datadogRum, Ae = A.onError, ie = A.defaultFlags, ue = A.fetch, de = A.preventFetch, pe = A.enableLogs, ve = A.enableDynatrace, ze = A.enableAnalytics, Xe = A.realtime, Se = A.eventSourceUrl, he = Se === void 0 ? "https://realtime.flagsmith.com/" : Se, te = A.AsyncStorage, Et = A.identity, ot = A.traits, Uo = A.state, ke = A.cacheOptions, Ht = A.angularHttpClient, Do = A._trigger, Ro = A._triggerLoadingState, P.environment = E ? { apiKey: E } : P.environment, !P.environment || !P.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
|
|
11132
11168
|
if (P.identity = Et || ot ? { identifier: Et, traits: ot ? Object.fromEntries(Object.entries(ot).map(function(De) {
|
|
11133
11169
|
return [De[0], { value: De[1] }];
|
|
11134
11170
|
})) : {} } : P.identity, this.evaluationContext = P, this.api = G, this.headers = Z, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = Q, zt = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Do || this._trigger, this._triggerLoadingState = Ro || this._triggerLoadingState, this.onError = function(De) {
|
|
11135
11171
|
Fe.setLoadingState(n(n({}, Fe.loadingState), { isFetching: !1, isLoading: !1, error: De })), Ae == null || Ae(De);
|
|
11136
|
-
}, this.enableLogs =
|
|
11172
|
+
}, this.enableLogs = pe || !1, this.cacheOptions = ke ? { skipAPI: !!ke.skipAPI, ttl: ke.ttl || 0, storageKey: ke.storageKey, loadStale: !!ke.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."), ue && (D = ue), this.enableAnalytics = ze || !1, this.flags = Object.assign({}, ie) || {}, this.datadogRum = ee || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = K !== void 0 && !!Y, T = "FLAGSMITH_EVENT_" + P.environment.apiKey, te && (K = te), Xe && typeof window < "u" && this.setupRealtime(he, P.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: u.DEFAULT_FLAGS })), this.setState(Uo), this.log("Initialising with properties", A, this), ve && (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), Ht && (D = /* @__PURE__ */ function(De) {
|
|
11137
11173
|
return function(be, Ke) {
|
|
11138
11174
|
var Oe = Ke.headers, ae = Ke.method, Ze = Ke.body;
|
|
11139
11175
|
return new Promise(function(Ge) {
|
|
@@ -11180,7 +11216,7 @@ var go = { exports: {} };
|
|
|
11180
11216
|
if (!be) return [3, 7];
|
|
11181
11217
|
Ke = null, Oe = null, Me.label = 1;
|
|
11182
11218
|
case 1:
|
|
11183
|
-
return Me.trys.push([1, 5, , 6]), ae = JSON.parse(be), Ze = !1, Ge = !1, ae && ae.api === this.api && ((jt = (It = ae.evaluationContext) === null || It === void 0 ? void 0 : It.environment) === null || jt === void 0 ? void 0 : jt.apiKey) === ((Ot = this.evaluationContext.environment) === null || Ot === void 0 ? void 0 : Ot.apiKey) && (Te = !0, this.evaluationContext.identity && ((Qt = (Mt = ae.evaluationContext) === null || Mt === void 0 ? void 0 : Mt.identity) === null || Qt === void 0 ? void 0 : Qt.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((St = (Vt = ae.evaluationContext) === null || Vt === void 0 ? void 0 : Vt.identity) === null || St === void 0 ? void 0 : St.identifier) + " to " + this.evaluationContext.identity.identifier), Te = !1), this.cacheOptions.ttl && (!ae.ts || (/* @__PURE__ */ new Date()).valueOf() - ae.ts > this.cacheOptions.ttl) && (ae.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + ae.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - ae.ts) + "ms"), Te = !1) : ae.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + ae.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - ae.ts) + "ms"), Ge = !0, Te = !0)), Te && (Ze = !0, Oe = y((Gt = this.evaluationContext.identity) === null || Gt === void 0 ? void 0 : Gt.traits, (qt = (Nt = ae.evaluationContext) === null || Nt === void 0 ? void 0 : Nt.identity) === null || qt === void 0 ? void 0 : qt.traits), Ke = y(this.flags, ae.flags), this.setState(n(n({}, ae), { evaluationContext: B(n(n({}, ae.evaluationContext), { identity: !((Yt = ae.evaluationContext) === null || Yt === void 0) && Yt.identity ? n(n({}, (Lt = ae.evaluationContext) === null || Lt === void 0 ? void 0 : Lt.identity), { traits: n(n({}, ((Wt = (kt = ae.evaluationContext) === null || kt === void 0 ? void 0 : kt.identity) === null || Wt === void 0 ? void 0 : Wt.traits) || {}), ot || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", ae))), Ze ? (Tt = !de && (!this.cacheOptions.skipAPI || Ge), this._onChange(null, { isFromServer: !1, flagsChanged: Ke, traitsChanged: Oe }, this._loadedState(null,
|
|
11219
|
+
return Me.trys.push([1, 5, , 6]), ae = JSON.parse(be), Ze = !1, Ge = !1, ae && ae.api === this.api && ((jt = (It = ae.evaluationContext) === null || It === void 0 ? void 0 : It.environment) === null || jt === void 0 ? void 0 : jt.apiKey) === ((Ot = this.evaluationContext.environment) === null || Ot === void 0 ? void 0 : Ot.apiKey) && (Te = !0, this.evaluationContext.identity && ((Qt = (Mt = ae.evaluationContext) === null || Mt === void 0 ? void 0 : Mt.identity) === null || Qt === void 0 ? void 0 : Qt.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((St = (Vt = ae.evaluationContext) === null || Vt === void 0 ? void 0 : Vt.identity) === null || St === void 0 ? void 0 : St.identifier) + " to " + this.evaluationContext.identity.identifier), Te = !1), this.cacheOptions.ttl && (!ae.ts || (/* @__PURE__ */ new Date()).valueOf() - ae.ts > this.cacheOptions.ttl) && (ae.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + ae.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - ae.ts) + "ms"), Te = !1) : ae.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + ae.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - ae.ts) + "ms"), Ge = !0, Te = !0)), Te && (Ze = !0, Oe = y((Gt = this.evaluationContext.identity) === null || Gt === void 0 ? void 0 : Gt.traits, (qt = (Nt = ae.evaluationContext) === null || Nt === void 0 ? void 0 : Nt.identity) === null || qt === void 0 ? void 0 : qt.traits), Ke = y(this.flags, ae.flags), this.setState(n(n({}, ae), { evaluationContext: B(n(n({}, ae.evaluationContext), { identity: !((Yt = ae.evaluationContext) === null || Yt === void 0) && Yt.identity ? n(n({}, (Lt = ae.evaluationContext) === null || Lt === void 0 ? void 0 : Lt.identity), { traits: n(n({}, ((Wt = (kt = ae.evaluationContext) === null || kt === void 0 ? void 0 : kt.identity) === null || Wt === void 0 ? void 0 : Wt.traits) || {}), ot || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", ae))), Ze ? (Tt = !de && (!this.cacheOptions.skipAPI || Ge), this._onChange(null, { isFromServer: !1, flagsChanged: Ke, traitsChanged: Oe }, this._loadedState(null, u.CACHE, Tt)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Ze && !Ge && this.log("Skipping API, using cache"), Tt && this.getFlags().catch(function(Yr) {
|
|
11184
11220
|
var _t;
|
|
11185
11221
|
(_t = xo.onError) === null || _t === void 0 || _t.call(xo, Yr);
|
|
11186
11222
|
}), [3, 4]) : [3, 2];
|
|
@@ -11199,10 +11235,10 @@ var go = { exports: {} };
|
|
|
11199
11235
|
case 8:
|
|
11200
11236
|
return Me.sent(), [3, 10];
|
|
11201
11237
|
case 9:
|
|
11202
|
-
if (ie) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (Zt = this.evaluationContext.identity) === null || Zt === void 0 ? void 0 : Zt.traits) }, this._loadedState(null,
|
|
11238
|
+
if (ie) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (Zt = this.evaluationContext.identity) === null || Zt === void 0 ? void 0 : Zt.traits) }, this._loadedState(null, u.DEFAULT_FLAGS));
|
|
11203
11239
|
else {
|
|
11204
11240
|
if (!this.flags) throw new Error(zt);
|
|
11205
|
-
this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (Jt = this.evaluationContext.identity) === null || Jt === void 0 ? void 0 : Jt.traits) }, this._loadedState(null,
|
|
11241
|
+
this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (Jt = this.evaluationContext.identity) === null || Jt === void 0 ? void 0 : Jt.traits) }, this._loadedState(null, u.DEFAULT_FLAGS));
|
|
11206
11242
|
}
|
|
11207
11243
|
Me.label = 10;
|
|
11208
11244
|
case 10:
|
|
@@ -11229,8 +11265,8 @@ var go = { exports: {} };
|
|
|
11229
11265
|
case 10:
|
|
11230
11266
|
return Re.sent(), [3, 12];
|
|
11231
11267
|
case 11:
|
|
11232
|
-
if (ie) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, ie), traitsChanged: y({}, (c = P.identity) === null || c === void 0 ? void 0 : c.traits) }, this._loadedState(null,
|
|
11233
|
-
else if (this.flags && (rt = null, Object.keys(this.flags).length === 0 && (rt = zt), this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (d = P.identity) === null || d === void 0 ? void 0 : d.traits) }, this._loadedState(rt,
|
|
11268
|
+
if (ie) this._onChange(null, { isFromServer: !1, flagsChanged: y({}, ie), traitsChanged: y({}, (c = P.identity) === null || c === void 0 ? void 0 : c.traits) }, this._loadedState(null, u.DEFAULT_FLAGS));
|
|
11269
|
+
else if (this.flags && (rt = null, Object.keys(this.flags).length === 0 && (rt = zt), this._onChange(null, { isFromServer: !1, flagsChanged: y({}, this.flags), traitsChanged: y({}, (d = P.identity) === null || d === void 0 ? void 0 : d.traits) }, this._loadedState(rt, u.DEFAULT_FLAGS)), rt)) throw new Error(rt);
|
|
11234
11270
|
Re.label = 12;
|
|
11235
11271
|
case 12:
|
|
11236
11272
|
return [3, 14];
|
|
@@ -11281,7 +11317,7 @@ var go = { exports: {} };
|
|
|
11281
11317
|
f(A, this.loadingState) || (this.loadingState = n({}, A), this.log("Loading state changed", A), (c = this._triggerLoadingState) === null || c === void 0 || c.call(this));
|
|
11282
11318
|
}, h.prototype.setupRealtime = function(A, c) {
|
|
11283
11319
|
var d = this, m = A + "sse/environments/" + c + "/stream";
|
|
11284
|
-
|
|
11320
|
+
p ? this.eventSource || (this.log("Creating event source with url " + m), this.eventSource = new p(m), this.eventSource.addEventListener("environment_updated", function(P) {
|
|
11285
11321
|
var E;
|
|
11286
11322
|
try {
|
|
11287
11323
|
E = JSON.parse(P.data).updated_at;
|
|
@@ -11334,16 +11370,16 @@ var go = { exports: {} };
|
|
|
11334
11370
|
}, R = function(h, A, c) {
|
|
11335
11371
|
if (arguments.length === 2) for (var d, m = 0, P = A.length; m < P; m++) !d && m in A || (d || (d = Array.prototype.slice.call(A, 0, m)), d[m] = A[m]);
|
|
11336
11372
|
return h.concat(d || Array.prototype.slice.call(A));
|
|
11337
|
-
},
|
|
11373
|
+
}, U = function(h) {
|
|
11338
11374
|
function A() {
|
|
11339
11375
|
return h.call(this, `EventSource not available.
|
|
11340
11376
|
Consider loading an EventSource polyfill and making it available globally as EventSource, or passing one in as eventSourceClass to the ReconnectingEventSource constructor.`) || this;
|
|
11341
11377
|
}
|
|
11342
11378
|
return v(A, h), A;
|
|
11343
|
-
}(Error),
|
|
11379
|
+
}(Error), C = function() {
|
|
11344
11380
|
function h(A, c) {
|
|
11345
11381
|
var d = this;
|
|
11346
|
-
if (this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this._configuration = c != null ? Object.assign({}, c) : void 0, this.withCredentials = !1, this._eventSource = null, this._lastEventId = null, this._timer = null, this._listeners = { open: [], error: [], message: [] }, this.url = A.toString(), this.readyState = this.CONNECTING, this.max_retry_time = 3e3, this.eventSourceClass = globalThis.FlagsmithEventSource, this._configuration != null && (this._configuration.lastEventId && (this._lastEventId = this._configuration.lastEventId, delete this._configuration.lastEventId), this._configuration.max_retry_time && (this.max_retry_time = this._configuration.max_retry_time, delete this._configuration.max_retry_time), this._configuration.eventSourceClass && (this.eventSourceClass = this._configuration.eventSourceClass, delete this._configuration.eventSourceClass)), this.eventSourceClass == null || typeof this.eventSourceClass != "function") throw new
|
|
11382
|
+
if (this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this._configuration = c != null ? Object.assign({}, c) : void 0, this.withCredentials = !1, this._eventSource = null, this._lastEventId = null, this._timer = null, this._listeners = { open: [], error: [], message: [] }, this.url = A.toString(), this.readyState = this.CONNECTING, this.max_retry_time = 3e3, this.eventSourceClass = globalThis.FlagsmithEventSource, this._configuration != null && (this._configuration.lastEventId && (this._lastEventId = this._configuration.lastEventId, delete this._configuration.lastEventId), this._configuration.max_retry_time && (this.max_retry_time = this._configuration.max_retry_time, delete this._configuration.max_retry_time), this._configuration.eventSourceClass && (this.eventSourceClass = this._configuration.eventSourceClass, delete this._configuration.eventSourceClass)), this.eventSourceClass == null || typeof this.eventSourceClass != "function") throw new U();
|
|
11347
11383
|
this._onevent_wrapped = function(m) {
|
|
11348
11384
|
d._onevent(m);
|
|
11349
11385
|
}, this._start();
|
|
@@ -11444,9 +11480,9 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
11444
11480
|
}, m.onerror = d, m.withCredentials = A.credentials == "include", A.headers) m.setRequestHeader(Z, A.headers[Z]);
|
|
11445
11481
|
m.send(A.body || null);
|
|
11446
11482
|
});
|
|
11447
|
-
}, H = l({ AsyncStorage: o, fetch: O, eventSource:
|
|
11483
|
+
}, H = l({ AsyncStorage: o, fetch: O, eventSource: C });
|
|
11448
11484
|
typeof window < "u" && (window.flagsmith = H), r.createFlagsmithInstance = function() {
|
|
11449
|
-
return l({ AsyncStorage: o, fetch: O, eventSource:
|
|
11485
|
+
return l({ AsyncStorage: o, fetch: O, eventSource: C });
|
|
11450
11486
|
}, r.default = H, Object.defineProperty(r, "__esModule", { value: !0 });
|
|
11451
11487
|
});
|
|
11452
11488
|
})(go, go.exports);
|
|
@@ -11554,57 +11590,57 @@ var Vc = go.exports, Sc = {
|
|
|
11554
11590
|
reset() {
|
|
11555
11591
|
this.flagsmithClient = null, this.userContext = null;
|
|
11556
11592
|
}
|
|
11557
|
-
}, Qe(He, "instance"), He), Nc = Gc.getInstance(), at = ne(!1),
|
|
11593
|
+
}, Qe(He, "instance"), He), Nc = Gc.getInstance(), at = ne(!1), ut = ne([]), _e = ne(null);
|
|
11558
11594
|
function qc(e = Nc) {
|
|
11559
|
-
const t = () => at.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), r = async (
|
|
11595
|
+
const t = () => at.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), r = async (u, D = []) => {
|
|
11560
11596
|
if (at.value) {
|
|
11561
11597
|
console.warn("FeatureFlag is already initialized.");
|
|
11562
11598
|
return;
|
|
11563
11599
|
}
|
|
11564
11600
|
try {
|
|
11565
|
-
await e.init(
|
|
11601
|
+
await e.init(u, D), ut.value = await e.getFlags(), at.value = !0, _e.value = null;
|
|
11566
11602
|
} catch (X) {
|
|
11567
11603
|
console.error("Failed to initialize feature flags:", X), _e.value = X;
|
|
11568
11604
|
}
|
|
11569
|
-
}, o = async (
|
|
11605
|
+
}, o = async (u) => {
|
|
11570
11606
|
if (t())
|
|
11571
11607
|
try {
|
|
11572
|
-
await e.setUser(
|
|
11608
|
+
await e.setUser(u), ut.value = await e.getFlags(), _e.value = null;
|
|
11573
11609
|
} catch (D) {
|
|
11574
11610
|
console.error("Failed to set user:", D), _e.value = D;
|
|
11575
11611
|
}
|
|
11576
|
-
}, n = async (
|
|
11612
|
+
}, n = async (u) => o(`${Zo}-${u}`), a = (u, D, X = null) => {
|
|
11577
11613
|
if (!t()) return X;
|
|
11578
11614
|
try {
|
|
11579
|
-
return e.getFlagValue(
|
|
11615
|
+
return e.getFlagValue(u, D) ?? X;
|
|
11580
11616
|
} catch (j) {
|
|
11581
|
-
return console.error(`Error getting flag value for ${
|
|
11617
|
+
return console.error(`Error getting flag value for ${u}:`, j), X;
|
|
11582
11618
|
}
|
|
11583
|
-
}, i = (
|
|
11619
|
+
}, i = (u, D) => {
|
|
11584
11620
|
if (!t()) return D ?? null;
|
|
11585
11621
|
try {
|
|
11586
|
-
return e.getFlag(
|
|
11622
|
+
return e.getFlag(u) ?? D ?? null;
|
|
11587
11623
|
} catch (X) {
|
|
11588
|
-
return console.error(`Error getting flag for ${
|
|
11624
|
+
return console.error(`Error getting flag for ${u}:`, X), D ?? null;
|
|
11589
11625
|
}
|
|
11590
|
-
}, s = async (
|
|
11626
|
+
}, s = async (u, D, X = null, j) => {
|
|
11591
11627
|
if (!t()) return X;
|
|
11592
11628
|
try {
|
|
11593
|
-
return await e.getUserFlagValue(
|
|
11629
|
+
return await e.getUserFlagValue(u, D, X, j);
|
|
11594
11630
|
} catch (b) {
|
|
11595
11631
|
return console.error(`Error getting user flag value for ${D}:`, b), X;
|
|
11596
11632
|
}
|
|
11597
|
-
}, f = async (
|
|
11633
|
+
}, f = async (u, D, X = null, j) => s(`${Zo}-${u}`, D, X, j), y = () => {
|
|
11598
11634
|
try {
|
|
11599
11635
|
e.reset();
|
|
11600
|
-
} catch (
|
|
11601
|
-
console.error("Error resetting feature flags:",
|
|
11636
|
+
} catch (u) {
|
|
11637
|
+
console.error("Error resetting feature flags:", u);
|
|
11602
11638
|
} finally {
|
|
11603
|
-
|
|
11639
|
+
ut.value = [], at.value = !1, _e.value = null;
|
|
11604
11640
|
}
|
|
11605
11641
|
};
|
|
11606
11642
|
return {
|
|
11607
|
-
flags: $t(
|
|
11643
|
+
flags: $t(ut),
|
|
11608
11644
|
isInitialized: $t(at),
|
|
11609
11645
|
error: $t(_e),
|
|
11610
11646
|
init: r,
|
|
@@ -11645,14 +11681,14 @@ function kc(e) {
|
|
|
11645
11681
|
}
|
|
11646
11682
|
return e;
|
|
11647
11683
|
}
|
|
11648
|
-
const Wc = "mf-reportfeature-flag",
|
|
11684
|
+
const Wc = "mf-reportfeature-flag", Co = ct(Wc, () => {
|
|
11649
11685
|
const e = ne([]);
|
|
11650
11686
|
async function t() {
|
|
11651
11687
|
e.value = await Lc();
|
|
11652
11688
|
}
|
|
11653
11689
|
return { flags: e, getFeatureFlags: t };
|
|
11654
11690
|
}), Zc = "mf-reportintegration", Jc = ct(Zc, () => {
|
|
11655
|
-
const e = ne([]), { flags: t } =
|
|
11691
|
+
const e = ne([]), { flags: t } = Ue(Co()), r = me(() => t.value.reduce((s, f) => (f.key.includes("integration") && f.value === !0 && s.push(f.key), s), [])), o = me(() => _c.filter(
|
|
11656
11692
|
(s) => s.flags.some((f) => r.value.includes(f))
|
|
11657
11693
|
)), n = me(() => o.value.length === 0), a = (s) => s.every((f) => r.value.includes(f));
|
|
11658
11694
|
async function i() {
|
|
@@ -11747,68 +11783,68 @@ function $c(e) {
|
|
|
11747
11783
|
return t ? `business::report::reports::${t}` : null;
|
|
11748
11784
|
}
|
|
11749
11785
|
function eA() {
|
|
11750
|
-
const { sessionUser: e } = yo(), t =
|
|
11751
|
-
var
|
|
11752
|
-
return !!((K = (
|
|
11786
|
+
const { sessionUser: e } = yo(), t = Co(), { country: r } = Ue($()), o = z.report_reports_allDefaultReports, n = z.report_reports_allCustomReports, a = me(() => {
|
|
11787
|
+
var p, K, I, T;
|
|
11788
|
+
return !!((K = (p = e.value) == null ? void 0 : p.role) != null && K.isAdmin || (T = (I = e.value) == null ? void 0 : I.role) != null && T.isStaff);
|
|
11753
11789
|
}), i = me(() => {
|
|
11754
|
-
const
|
|
11790
|
+
const p = t.flags.find(
|
|
11755
11791
|
(K) => K.key === ge.report_portal_permission_th_control_temp
|
|
11756
11792
|
);
|
|
11757
|
-
return r.value.toUpperCase() === "TH" && (
|
|
11793
|
+
return r.value.toUpperCase() === "TH" && (p == null ? void 0 : p.value) === !0;
|
|
11758
11794
|
}), s = me(() => {
|
|
11759
11795
|
if (i.value)
|
|
11760
11796
|
return !0;
|
|
11761
|
-
const
|
|
11797
|
+
const p = t.flags.find(
|
|
11762
11798
|
(K) => K.key === ge.report_portal_permission
|
|
11763
11799
|
);
|
|
11764
|
-
return (
|
|
11800
|
+
return (p == null ? void 0 : p.value) === !0;
|
|
11765
11801
|
}), f = me(
|
|
11766
11802
|
() => {
|
|
11767
|
-
var
|
|
11768
|
-
return Array.isArray((
|
|
11803
|
+
var p, K;
|
|
11804
|
+
return Array.isArray((p = e.value) == null ? void 0 : p.permissions) ? (K = e.value) == null ? void 0 : K.permissions : [];
|
|
11769
11805
|
}
|
|
11770
11806
|
);
|
|
11771
|
-
function y(
|
|
11807
|
+
function y(p, K) {
|
|
11772
11808
|
if (!s.value) return !0;
|
|
11773
|
-
const I = $c(
|
|
11809
|
+
const I = $c(p);
|
|
11774
11810
|
return !I || !f.value.length ? !1 : K.some((T) => {
|
|
11775
11811
|
const N = {
|
|
11776
11812
|
action: T,
|
|
11777
11813
|
// Report subjects are custom strings; cast to satisfy CaslPermission type
|
|
11778
11814
|
subject: I,
|
|
11779
|
-
coverSubject:
|
|
11815
|
+
coverSubject: p != null && p.isDefault ? o : n
|
|
11780
11816
|
};
|
|
11781
11817
|
return wt([N], f.value).granted;
|
|
11782
11818
|
});
|
|
11783
11819
|
}
|
|
11784
|
-
function p
|
|
11785
|
-
return y(
|
|
11820
|
+
function u(p) {
|
|
11821
|
+
return y(p, [g.update, g.manage]);
|
|
11786
11822
|
}
|
|
11787
|
-
function D(
|
|
11788
|
-
return y(
|
|
11823
|
+
function D(p) {
|
|
11824
|
+
return y(p, [g.read, g.manage]);
|
|
11789
11825
|
}
|
|
11790
|
-
function X(
|
|
11791
|
-
return y(
|
|
11826
|
+
function X(p) {
|
|
11827
|
+
return y(p, [g.delete, g.manage]);
|
|
11792
11828
|
}
|
|
11793
|
-
function j(
|
|
11794
|
-
return y(
|
|
11829
|
+
function j(p) {
|
|
11830
|
+
return y(p, [g.manage]);
|
|
11795
11831
|
}
|
|
11796
|
-
function b(
|
|
11797
|
-
return y(
|
|
11832
|
+
function b(p) {
|
|
11833
|
+
return y(p, [g.create, g.manage]);
|
|
11798
11834
|
}
|
|
11799
11835
|
const B = me(() => {
|
|
11800
11836
|
if (!s.value) return !0;
|
|
11801
|
-
const
|
|
11837
|
+
const p = z.report_createReport;
|
|
11802
11838
|
return f.value.length ? [g.create, g.manage].some((K) => wt([{
|
|
11803
11839
|
action: K,
|
|
11804
|
-
subject:
|
|
11840
|
+
subject: p
|
|
11805
11841
|
}], f.value).granted) : !1;
|
|
11806
11842
|
});
|
|
11807
11843
|
return {
|
|
11808
11844
|
isAdmin: a,
|
|
11809
11845
|
isReportPermissionEnabled: s,
|
|
11810
11846
|
canRead: D,
|
|
11811
|
-
canUpdate:
|
|
11847
|
+
canUpdate: u,
|
|
11812
11848
|
canDelete: X,
|
|
11813
11849
|
canManage: j,
|
|
11814
11850
|
canDuplicate: b,
|
|
@@ -11816,7 +11852,7 @@ function eA() {
|
|
|
11816
11852
|
};
|
|
11817
11853
|
}
|
|
11818
11854
|
const tA = "mf-reportnavigation", qr = ct(tA, () => {
|
|
11819
|
-
const { disabled: e } =
|
|
11855
|
+
const { disabled: e } = Ue(Jc()), { flags: t } = Ue(Co()), { sessionUser: r } = yo(), { isReportPermissionEnabled: o, canCreateReport: n } = eA();
|
|
11820
11856
|
function a(I) {
|
|
11821
11857
|
var L;
|
|
11822
11858
|
if (!o.value) return !0;
|
|
@@ -11832,7 +11868,7 @@ const tA = "mf-reportnavigation", qr = ct(tA, () => {
|
|
|
11832
11868
|
() => a(z.report_accessOverview)
|
|
11833
11869
|
), y = me(
|
|
11834
11870
|
() => a(z.report_accessInsight)
|
|
11835
|
-
),
|
|
11871
|
+
), u = me(
|
|
11836
11872
|
() => a(z.report_accessSetting)
|
|
11837
11873
|
), D = me(
|
|
11838
11874
|
() => a(z.report_accessIntegration)
|
|
@@ -11845,7 +11881,7 @@ const tA = "mf-reportnavigation", qr = ct(tA, () => {
|
|
|
11845
11881
|
return (t.value.length === 0 || X.value) && n.value;
|
|
11846
11882
|
}
|
|
11847
11883
|
const b = me(() => {
|
|
11848
|
-
const I = !f.value, T = !y.value, N = !
|
|
11884
|
+
const I = !f.value, T = !y.value, N = !u.value, S = !D.value, L = [
|
|
11849
11885
|
{
|
|
11850
11886
|
label: "overview",
|
|
11851
11887
|
value: "overview",
|
|
@@ -11881,7 +11917,7 @@ const tA = "mf-reportnavigation", qr = ct(tA, () => {
|
|
|
11881
11917
|
route: "integrations",
|
|
11882
11918
|
disabled: S
|
|
11883
11919
|
}), L;
|
|
11884
|
-
}), B = ne(""), { currentRoute:
|
|
11920
|
+
}), B = ne(""), { currentRoute: p } = nn();
|
|
11885
11921
|
function K(I) {
|
|
11886
11922
|
switch (I.name) {
|
|
11887
11923
|
case "report":
|
|
@@ -11910,7 +11946,7 @@ const tA = "mf-reportnavigation", qr = ct(tA, () => {
|
|
|
11910
11946
|
}
|
|
11911
11947
|
}
|
|
11912
11948
|
return on(
|
|
11913
|
-
|
|
11949
|
+
p,
|
|
11914
11950
|
(I) => {
|
|
11915
11951
|
K(I);
|
|
11916
11952
|
},
|
|
@@ -11922,13 +11958,13 @@ const tA = "mf-reportnavigation", qr = ct(tA, () => {
|
|
|
11922
11958
|
navigationTabs: b,
|
|
11923
11959
|
isOverviewAccessible: f,
|
|
11924
11960
|
isInsightAccessible: y,
|
|
11925
|
-
isSettingAccessible:
|
|
11961
|
+
isSettingAccessible: u,
|
|
11926
11962
|
isIntegrationAccessible: D,
|
|
11927
11963
|
version: i,
|
|
11928
11964
|
suppressReportRouteSync: s
|
|
11929
11965
|
};
|
|
11930
11966
|
});
|
|
11931
|
-
function
|
|
11967
|
+
function pt(e) {
|
|
11932
11968
|
return {
|
|
11933
11969
|
customValidationFunction: async () => ({
|
|
11934
11970
|
canAccess: qr().canAccess(e)
|
|
@@ -11936,16 +11972,16 @@ function ut(e) {
|
|
|
11936
11972
|
};
|
|
11937
11973
|
}
|
|
11938
11974
|
function ft(e) {
|
|
11939
|
-
return
|
|
11975
|
+
return Ca($o(e));
|
|
11940
11976
|
}
|
|
11941
11977
|
const oA = [
|
|
11942
11978
|
{
|
|
11943
11979
|
path: "/overview",
|
|
11944
11980
|
alias: ["/"],
|
|
11945
11981
|
name: "overview",
|
|
11946
|
-
component: ft(() => import("./OverviewView-
|
|
11982
|
+
component: ft(() => import("./OverviewView-DiBqQjMX.js")),
|
|
11947
11983
|
meta: {
|
|
11948
|
-
validationManifest:
|
|
11984
|
+
validationManifest: pt(
|
|
11949
11985
|
z.report_accessOverview
|
|
11950
11986
|
)
|
|
11951
11987
|
}
|
|
@@ -11953,20 +11989,20 @@ const oA = [
|
|
|
11953
11989
|
{
|
|
11954
11990
|
path: "/report",
|
|
11955
11991
|
name: "reports",
|
|
11956
|
-
component: () => import("./Report-
|
|
11992
|
+
component: () => import("./Report-CKC7-sKY.js")
|
|
11957
11993
|
},
|
|
11958
11994
|
{
|
|
11959
11995
|
path: "/template",
|
|
11960
11996
|
name: "template",
|
|
11961
|
-
component: () => import("./Template-
|
|
11997
|
+
component: () => import("./Template-DpSlQFRA.js"),
|
|
11962
11998
|
beforeEnter: () => qr().canAccessTemplate() ? !0 : { name: "reports" }
|
|
11963
11999
|
},
|
|
11964
12000
|
{
|
|
11965
12001
|
path: "/insights",
|
|
11966
12002
|
name: "insights",
|
|
11967
|
-
component: ft(() => import("./InsightView-
|
|
12003
|
+
component: ft(() => import("./InsightView-BljrHPXv.js")),
|
|
11968
12004
|
meta: {
|
|
11969
|
-
validationManifest:
|
|
12005
|
+
validationManifest: pt(
|
|
11970
12006
|
z.report_accessInsight
|
|
11971
12007
|
)
|
|
11972
12008
|
}
|
|
@@ -11974,33 +12010,33 @@ const oA = [
|
|
|
11974
12010
|
{
|
|
11975
12011
|
path: "/report-view",
|
|
11976
12012
|
name: "reportView",
|
|
11977
|
-
component: () => import("./ReportView-
|
|
12013
|
+
component: () => import("./ReportView-BCIF9pfK.js")
|
|
11978
12014
|
},
|
|
11979
12015
|
{
|
|
11980
12016
|
path: "/report-editor",
|
|
11981
12017
|
name: "reportEditor",
|
|
11982
|
-
component: () => import("./ReportEditor-
|
|
12018
|
+
component: () => import("./ReportEditor-D15LDehs.js")
|
|
11983
12019
|
},
|
|
11984
12020
|
{
|
|
11985
12021
|
path: "/report-editor/tile-editor",
|
|
11986
12022
|
name: "tileEditor",
|
|
11987
|
-
component: () => import("./TileEditor-
|
|
12023
|
+
component: () => import("./TileEditor-BOS7PNiA.js")
|
|
11988
12024
|
},
|
|
11989
12025
|
{
|
|
11990
12026
|
path: "/setting",
|
|
11991
12027
|
name: "setting",
|
|
11992
|
-
component: ft(() => import("./Setting-
|
|
12028
|
+
component: ft(() => import("./Setting-GpnUu9w8.js")),
|
|
11993
12029
|
meta: {
|
|
11994
|
-
validationManifest:
|
|
12030
|
+
validationManifest: pt(
|
|
11995
12031
|
z.report_accessSetting
|
|
11996
12032
|
)
|
|
11997
12033
|
}
|
|
11998
12034
|
},
|
|
11999
12035
|
{
|
|
12000
12036
|
path: "/integration",
|
|
12001
|
-
component: ft(() => import("./Layout-
|
|
12037
|
+
component: ft(() => import("./Layout-BKLox7De.js")),
|
|
12002
12038
|
meta: {
|
|
12003
|
-
validationManifest:
|
|
12039
|
+
validationManifest: pt(
|
|
12004
12040
|
z.report_accessIntegration
|
|
12005
12041
|
)
|
|
12006
12042
|
},
|
|
@@ -12008,12 +12044,12 @@ const oA = [
|
|
|
12008
12044
|
{
|
|
12009
12045
|
name: "integrations",
|
|
12010
12046
|
path: "",
|
|
12011
|
-
component: () => import("./Integrations-
|
|
12047
|
+
component: () => import("./Integrations-Cp_cnFD7.js")
|
|
12012
12048
|
},
|
|
12013
12049
|
{
|
|
12014
12050
|
name: "integration",
|
|
12015
12051
|
path: "/integration/:id",
|
|
12016
|
-
component: () => import("./Integration-
|
|
12052
|
+
component: () => import("./Integration-D_YIoo-Q.js")
|
|
12017
12053
|
}
|
|
12018
12054
|
]
|
|
12019
12055
|
},
|
|
@@ -12034,10 +12070,10 @@ an({
|
|
|
12034
12070
|
});
|
|
12035
12071
|
const WA = {
|
|
12036
12072
|
"en-US": ln,
|
|
12037
|
-
"zh-CN":
|
|
12073
|
+
"zh-CN": un,
|
|
12038
12074
|
"th-TH": fn,
|
|
12039
12075
|
"zh-Hant": yn
|
|
12040
|
-
}, ZA = $o(() => import("./App-
|
|
12076
|
+
}, ZA = $o(() => import("./App-BzkI6sKt.js"));
|
|
12041
12077
|
export {
|
|
12042
12078
|
Kc as A,
|
|
12043
12079
|
Ec as B,
|
|
@@ -12065,7 +12101,7 @@ export {
|
|
|
12065
12101
|
ZA as X,
|
|
12066
12102
|
oA as Y,
|
|
12067
12103
|
lt as a,
|
|
12068
|
-
|
|
12104
|
+
Co as b,
|
|
12069
12105
|
qr as c,
|
|
12070
12106
|
W as d,
|
|
12071
12107
|
Jc as e,
|