@feedmepos/mf-report 5.23.6 → 5.23.7-beta.0

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.
Files changed (24) hide show
  1. package/dist/{App-nwXmJVxf.js → App-Ck6LU2s0.js} +61 -61
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DcwU8Kpz.js → BaseDialog.vue_vue_type_script_setup_true_lang-b-KEvqZL.js} +1007 -952
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-D_U5cHJR.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-FVwvlKTe.js} +1 -1
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-DHdxN-Yy.js → Default.vue_vue_type_script_setup_true_lang-dcCOorCb.js} +1 -1
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-mJZjcP6H.js → FilterSelector.vue_vue_type_script_setup_true_lang-0hulPHx7.js} +201 -201
  6. package/dist/{InsightView-CZxXrb_Z.js → InsightView-BqyCopia.js} +4 -4
  7. package/dist/{Integration-BxpLsC0U.js → Integration-D-APHR8f.js} +3 -3
  8. package/dist/{Integrations-CTyK-Uyg.js → Integrations-DVG378Mt.js} +2 -2
  9. package/dist/{Layout-473B8zVn.js → Layout-DAQOMFMP.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BcMhG_lN.js → MenuTab.vue_vue_type_script_setup_true_lang-KHuDibJ5.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-pecBAfSw.js → NavigationTab.vue_vue_type_script_setup_true_lang-BAAmC1SG.js} +3 -3
  12. package/dist/{OverviewView-D6ri8d93.js → OverviewView-BDRUTz05.js} +4 -4
  13. package/dist/{Report-DFJj0YRF.js → Report-DpPlnOrU.js} +3 -3
  14. package/dist/{ReportEditor-1ku-RI85.js → ReportEditor-Bh-ZvB7p.js} +4 -4
  15. package/dist/{ReportView-DXtOkb6E.js → ReportView-tP7j8_7Y.js} +6 -6
  16. package/dist/{Setting-CxyiPw1q.js → Setting-QWpjiw0r.js} +76 -75
  17. package/dist/{TileEditor-B3dD9oLf.js → TileEditor-C6wIGQBD.js} +5 -5
  18. package/dist/{TransitionFade-MWKMOUQW.js → TransitionFade-KfsEv8Nq.js} +4 -4
  19. package/dist/{app-DC6ifZM-.js → app-Dak0RvwK.js} +181 -173
  20. package/dist/app.js +1 -1
  21. package/dist/assets/{formatChartData.worker-BcdwnlGM.js → formatChartData.worker-DP26JAuy.js} +13 -13
  22. package/dist/assets/{processTableData.worker-BacYCzdp.js → processTableData.worker-S2PCd2dS.js} +12 -12
  23. package/dist/{useRestaurantPermission-Dj_8GhOj.js → useRestaurantPermission-NgtgPUnL.js} +1 -1
  24. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  var tn = Object.defineProperty;
2
2
  var on = (e, t, r) => t in e ? tn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var Me = (e, t, r) => on(e, typeof t != "symbol" ? t + "" : t, r);
3
+ var Qe = (e, t, r) => on(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import { isRef as rn, ref as oe, shallowRef as nn, watchEffect as an, computed as de, h as Ao, defineComponent as rr, createBlock as cn, renderSlot as An, createCommentVNode as sn, unref as Ne, openBlock as nr, createElementBlock as mn, createElementVNode as Je, toDisplayString as Xo, readonly as ro, watch as ln, defineAsyncComponent as ar } from "vue";
5
5
  import { useRoute as dn, useRouter as un, createRouter as pn, createWebHistory as fn } from "vue-router";
6
6
  import { useCoreStore as wo, useI18n as gn } from "@feedmepos/mf-common";
@@ -659,6 +659,7 @@ const vn = {
659
659
  HOUR_NO_DAY: "Hour (No Day)",
660
660
  MINUTE_NO_DAY: "Minute (No Day)",
661
661
  SECOND_NO_DAY: "Second (No Day)",
662
+ COMPACT_HOUR_MINUTE: "Duration (HHhMMm)",
662
663
  PERCENT: "Percent"
663
664
  }
664
665
  },
@@ -1244,6 +1245,7 @@ const vn = {
1244
1245
  HOUR_NO_DAY: "Hour (no day)",
1245
1246
  MINUTE_NO_DAY: "Minute (no day)",
1246
1247
  SECOND_NO_DAY: "Second (no day)",
1248
+ COMPACT_HOUR_MINUTE: "Duration (HHhMMm)",
1247
1249
  PERCENT: "Percent",
1248
1250
  "Expired at": "@.capitalize:{'report.dynamic.common.expired'} @:{'report.dynamic.common.at'}",
1249
1251
  Birthday: "Birthday",
@@ -2171,6 +2173,7 @@ const vn = {
2171
2173
  HOUR_NO_DAY: "小时(无天)",
2172
2174
  MINUTE_NO_DAY: "分钟(无天)",
2173
2175
  SECOND_NO_DAY: "秒(无天)",
2176
+ COMPACT_HOUR_MINUTE: "时长(HHhMMm)",
2174
2177
  PERCENT: "百分比"
2175
2178
  }
2176
2179
  },
@@ -2757,6 +2760,7 @@ const vn = {
2757
2760
  HOUR_NO_DAY: "小时(不含日期)",
2758
2761
  MINUTE_NO_DAY: "分钟(不含日期)",
2759
2762
  SECOND_NO_DAY: "秒(不含日期)",
2763
+ COMPACT_HOUR_MINUTE: "时长(HHhMMm)",
2760
2764
  PERCENT: "百分比",
2761
2765
  "Expired at": "@.capitalize:{'report.dynamic.common.expired'}@:{'report.dynamic.common.at'}",
2762
2766
  Birthday: "生日",
@@ -3685,6 +3689,7 @@ const vn = {
3685
3689
  HOUR_NO_DAY: "ชั่วโมง (ไม่มีวัน)",
3686
3690
  MINUTE_NO_DAY: "นาที (ไม่มีวัน)",
3687
3691
  SECOND_NO_DAY: "วินาที (ไม่มีวัน)",
3692
+ COMPACT_HOUR_MINUTE: "ระยะเวลา (HHhMMm)",
3688
3693
  PERCENT: "เปอร์เซ็นต์"
3689
3694
  }
3690
3695
  },
@@ -4520,6 +4525,7 @@ const vn = {
4520
4525
  HOUR_NO_DAY: "ชั่วโมง (ไม่รวมวัน)",
4521
4526
  MINUTE_NO_DAY: "นาที (ไม่รวมวัน)",
4522
4527
  SECOND_NO_DAY: "วินาที (ไม่รวมวัน)",
4528
+ COMPACT_HOUR_MINUTE: "ระยะเวลา (HHhMMm)",
4523
4529
  PERCENT: "เปอร์เซ็นต์",
4524
4530
  "New widget": "วิดเจ็ตใหม่"
4525
4531
  }
@@ -5190,6 +5196,7 @@ const vn = {
5190
5196
  HOUR_NO_DAY: "小時(無天)",
5191
5197
  MINUTE_NO_DAY: "分鐘(無天)",
5192
5198
  SECOND_NO_DAY: "秒(無天)",
5199
+ COMPACT_HOUR_MINUTE: "時長(HHhMMm)",
5193
5200
  PERCENT: "百分比"
5194
5201
  }
5195
5202
  },
@@ -5776,6 +5783,7 @@ const vn = {
5776
5783
  HOUR_NO_DAY: "小時(不含日期)",
5777
5784
  MINUTE_NO_DAY: "分鐘(不含日期)",
5778
5785
  SECOND_NO_DAY: "秒(不含日期)",
5786
+ COMPACT_HOUR_MINUTE: "時長(HHhMMm)",
5779
5787
  PERCENT: "百分比",
5780
5788
  "Expired at": "@.capitalize:{'report.dynamic.common.expired'}@:{'report.dynamic.common.at'}",
5781
5789
  Birthday: "生日",
@@ -6080,7 +6088,7 @@ var ir = { exports: {} };
6080
6088
  (function(r, o) {
6081
6089
  e.exports = o();
6082
6090
  })(Ie, function() {
6083
- var r = 1e3, o = 6e4, n = 36e5, a = "millisecond", i = "second", s = "minute", p = "hour", f = "day", u = "week", U = "month", j = "quarter", I = "year", D = "date", h = "Invalid Date", F = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|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, Q = { 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(b) {
6091
+ var r = 1e3, o = 6e4, n = 36e5, a = "millisecond", i = "second", s = "minute", p = "hour", f = "day", u = "week", U = "month", j = "quarter", I = "year", D = "date", h = "Invalid Date", F = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, E = /\[([^\]]+)]|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, M = { 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(b) {
6084
6092
  var R = ["th", "st", "nd", "rd"], w = b % 100;
6085
6093
  return "[" + b + (R[(w - 20) % 10] || R[w] || R[0]) + "]";
6086
6094
  } }, T = function(b, R, w) {
@@ -6100,7 +6108,7 @@ var ir = { exports: {} };
6100
6108
  }, u: function(b) {
6101
6109
  return b === void 0;
6102
6110
  } }, S = "en", Z = {};
6103
- Z[S] = Q;
6111
+ Z[S] = M;
6104
6112
  var J = "$isDayjsObject", _ = function(b) {
6105
6113
  return b instanceof O || !(!b || !b[J]);
6106
6114
  }, l = function b(R, w, z) {
@@ -6165,11 +6173,11 @@ var ir = { exports: {} };
6165
6173
  }, R.valueOf = function() {
6166
6174
  return this.$d.getTime();
6167
6175
  }, R.startOf = function(w, z) {
6168
- var x = this, y = !!C.u(z) || z, A = C.p(w), c = function(M, Y) {
6169
- var ee = C.w(x.$u ? Date.UTC(x.$y, Y, M) : new Date(x.$y, Y, M), x);
6176
+ var x = this, y = !!C.u(z) || z, A = C.p(w), c = function(Q, Y) {
6177
+ var ee = C.w(x.$u ? Date.UTC(x.$y, Y, Q) : new Date(x.$y, Y, Q), x);
6170
6178
  return y ? ee : ee.endOf(f);
6171
- }, d = function(M, Y) {
6172
- return C.w(x.toDate()[M].apply(x.toDate("s"), (y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Y)), x);
6179
+ }, d = function(Q, Y) {
6180
+ return C.w(x.toDate()[Q].apply(x.toDate("s"), (y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Y)), x);
6173
6181
  }, m = this.$W, P = this.$M, H = this.$D, V = "set" + (this.$u ? "UTC" : "");
6174
6182
  switch (A) {
6175
6183
  case I:
@@ -6226,7 +6234,7 @@ var ir = { exports: {} };
6226
6234
  return Y && (Y[ee] || Y(z, y)) || Ae[ee].slice(0, ie);
6227
6235
  }, W = function(Y) {
6228
6236
  return C.s(c % 12 || 12, Y, "0");
6229
- }, M = V || function(Y, ee, Ae) {
6237
+ }, Q = V || function(Y, ee, Ae) {
6230
6238
  var ie = Y < 12 ? "AM" : "PM";
6231
6239
  return Ae ? ie.toLowerCase() : ie;
6232
6240
  };
@@ -6266,9 +6274,9 @@ var ir = { exports: {} };
6266
6274
  case "hh":
6267
6275
  return W(2);
6268
6276
  case "a":
6269
- return M(c, d, !0);
6277
+ return Q(c, d, !0);
6270
6278
  case "A":
6271
- return M(c, d, !1);
6279
+ return Q(c, d, !1);
6272
6280
  case "m":
6273
6281
  return String(d);
6274
6282
  case "mm":
@@ -6392,11 +6400,11 @@ var cr = { exports: {} };
6392
6400
  var J = ("" + Z[0]).match(n) || ["-", 0, 0], _ = J[0], l = 60 * +J[1] + +J[2];
6393
6401
  return l === 0 ? 0 : _ === "+" ? l : -l;
6394
6402
  }(h), h === null)) return this;
6395
- var Q = Math.abs(h) <= 16 ? 60 * h : h, T = this;
6396
- if (F) return T.$offset = Q, T.$u = h === 0, T;
6403
+ var M = Math.abs(h) <= 16 ? 60 * h : h, T = this;
6404
+ if (F) return T.$offset = M, T.$u = h === 0, T;
6397
6405
  if (h !== 0) {
6398
6406
  var q = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
6399
- (T = this.local().add(Q + q, r)).$offset = Q, T.$x.$localOffset = q;
6407
+ (T = this.local().add(M + q, r)).$offset = M, T.$x.$localOffset = q;
6400
6408
  } else T = this.utc();
6401
6409
  return T;
6402
6410
  };
@@ -6421,8 +6429,8 @@ var cr = { exports: {} };
6421
6429
  var D = p.diff;
6422
6430
  p.diff = function(h, F, E) {
6423
6431
  if (h && this.$u === h.$u) return D.call(this, h, F, E);
6424
- var Q = this.local(), T = s(h).local();
6425
- return D.call(Q, T, F, E);
6432
+ var M = this.local(), T = s(h).local();
6433
+ return D.call(M, T, F, E);
6426
6434
  };
6427
6435
  };
6428
6436
  });
@@ -6438,15 +6446,15 @@ var Ar = { exports: {} };
6438
6446
  return function(n, a, i) {
6439
6447
  var s, p = function(j, I, D) {
6440
6448
  D === void 0 && (D = {});
6441
- var h = new Date(j), F = function(E, Q) {
6442
- Q === void 0 && (Q = {});
6443
- var T = Q.timeZoneName || "short", q = E + "|" + T, S = o[q];
6449
+ var h = new Date(j), F = function(E, M) {
6450
+ M === void 0 && (M = {});
6451
+ var T = M.timeZoneName || "short", q = E + "|" + T, S = o[q];
6444
6452
  return S || (S = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: E, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: T }), o[q] = S), S;
6445
6453
  }(I, D);
6446
6454
  return F.formatToParts(h);
6447
6455
  }, f = function(j, I) {
6448
6456
  for (var D = p(j, I), h = [], F = 0; F < D.length; F += 1) {
6449
- var E = D[F], Q = E.type, T = E.value, q = r[Q];
6457
+ var E = D[F], M = E.type, T = E.value, q = r[M];
6450
6458
  q >= 0 && (h[q] = parseInt(T, 10));
6451
6459
  }
6452
6460
  var S = h[3], Z = S === 24 ? 0 : S, J = h[0] + "-" + h[1] + "-" + h[2] + " " + Z + ":" + h[4] + ":" + h[5] + ":000", _ = +j;
@@ -6454,7 +6462,7 @@ var Ar = { exports: {} };
6454
6462
  }, u = a.prototype;
6455
6463
  u.tz = function(j, I) {
6456
6464
  j === void 0 && (j = s);
6457
- var D, h = this.utcOffset(), F = this.toDate(), E = F.toLocaleString("en-US", { timeZone: j }), Q = Math.round((F - new Date(E)) / 1e3 / 60), T = 15 * -Math.round(F.getTimezoneOffset() / 15) - Q;
6465
+ var D, h = this.utcOffset(), F = this.toDate(), E = F.toLocaleString("en-US", { timeZone: j }), M = Math.round((F - new Date(E)) / 1e3 / 60), T = 15 * -Math.round(F.getTimezoneOffset() / 15) - M;
6458
6466
  if (!Number(T)) D = this.utcOffset(0, I);
6459
6467
  else if (D = i(E, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(T, !0), I) {
6460
6468
  var q = D.utcOffset();
@@ -6475,12 +6483,12 @@ var Ar = { exports: {} };
6475
6483
  }, i.tz = function(j, I, D) {
6476
6484
  var h = D && I, F = D || I || s, E = f(+i(), F);
6477
6485
  if (typeof j != "string") return i(j).tz(F);
6478
- var Q = function(Z, J, _) {
6486
+ var M = function(Z, J, _) {
6479
6487
  var l = Z - 60 * J * 1e3, v = f(l, _);
6480
6488
  if (J === v) return [l, J];
6481
6489
  var C = f(l -= 60 * (v - J) * 1e3, _);
6482
6490
  return v === C ? [l, v] : [Z - 60 * Math.min(v, C) * 1e3, Math.max(v, C)];
6483
- }(i.utc(j, h).valueOf(), E, F), T = Q[0], q = Q[1], S = i(T).utcOffset(q);
6491
+ }(i.utc(j, h).valueOf(), E, F), T = M[0], q = M[1], S = i(T).utcOffset(q);
6484
6492
  return S.$x.$timezone = F, S;
6485
6493
  }, i.tz.guess = function() {
6486
6494
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -6506,21 +6514,21 @@ var sr = { exports: {} };
6506
6514
  }, U = [/[+-]\d\d:?(\d\d)?|Z/, function(F) {
6507
6515
  (this.zone || (this.zone = {})).offset = function(E) {
6508
6516
  if (!E || E === "Z") return 0;
6509
- var Q = E.match(/([+-]|\d\d)/g), T = 60 * Q[1] + (+Q[2] || 0);
6510
- return T === 0 ? 0 : Q[0] === "+" ? -T : T;
6517
+ var M = E.match(/([+-]|\d\d)/g), T = 60 * M[1] + (+M[2] || 0);
6518
+ return T === 0 ? 0 : M[0] === "+" ? -T : T;
6511
6519
  }(F);
6512
6520
  }], j = function(F) {
6513
6521
  var E = p[F];
6514
6522
  return E && (E.indexOf ? E : E.s.concat(E.f));
6515
6523
  }, I = function(F, E) {
6516
- var Q, T = p.meridiem;
6524
+ var M, T = p.meridiem;
6517
6525
  if (T) {
6518
6526
  for (var q = 1; q <= 24; q += 1) if (F.indexOf(T(q, 0, E)) > -1) {
6519
- Q = q > 12;
6527
+ M = q > 12;
6520
6528
  break;
6521
6529
  }
6522
- } else Q = F === (E ? "pm" : "PM");
6523
- return Q;
6530
+ } else M = F === (E ? "pm" : "PM");
6531
+ return M;
6524
6532
  }, D = { A: [s, function(F) {
6525
6533
  this.afternoon = I(F, !1);
6526
6534
  }], a: [s, function(F) {
@@ -6534,14 +6542,14 @@ var sr = { exports: {} };
6534
6542
  }], SSS: [/\d{3}/, function(F) {
6535
6543
  this.milliseconds = +F;
6536
6544
  }], 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(F) {
6537
- var E = p.ordinal, Q = F.match(/\d+/);
6538
- if (this.day = Q[0], E) for (var T = 1; T <= 31; T += 1) E(T).replace(/\[|\]/g, "") === F && (this.day = T);
6545
+ var E = p.ordinal, M = F.match(/\d+/);
6546
+ if (this.day = M[0], E) for (var T = 1; T <= 31; T += 1) E(T).replace(/\[|\]/g, "") === F && (this.day = T);
6539
6547
  }], w: [i, u("week")], ww: [a, u("week")], M: [i, u("month")], MM: [a, u("month")], MMM: [s, function(F) {
6540
- var E = j("months"), Q = (j("monthsShort") || E.map(function(T) {
6548
+ var E = j("months"), M = (j("monthsShort") || E.map(function(T) {
6541
6549
  return T.slice(0, 3);
6542
6550
  })).indexOf(F) + 1;
6543
- if (Q < 1) throw new Error();
6544
- this.month = Q % 12 || Q;
6551
+ if (M < 1) throw new Error();
6552
+ this.month = M % 12 || M;
6545
6553
  }], MMMM: [s, function(F) {
6546
6554
  var E = j("months").indexOf(F) + 1;
6547
6555
  if (E < 1) throw new Error();
@@ -6550,11 +6558,11 @@ var sr = { exports: {} };
6550
6558
  this.year = f(F);
6551
6559
  }], YYYY: [/\d{4}/, u("year")], Z: U, ZZ: U };
6552
6560
  function h(F) {
6553
- var E, Q;
6554
- E = F, Q = p && p.formats;
6561
+ var E, M;
6562
+ E = F, M = p && p.formats;
6555
6563
  for (var T = (F = E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(v, C, O) {
6556
6564
  var K = O && O.toUpperCase();
6557
- return C || Q[O] || r[O] || Q[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(b, R, w) {
6565
+ return C || M[O] || r[O] || M[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(b, R, w) {
6558
6566
  return R || w.slice(1);
6559
6567
  });
6560
6568
  })).match(o), q = T.length, S = 0; S < q; S += 1) {
@@ -6579,8 +6587,8 @@ var sr = { exports: {} };
6579
6587
  }(C), C;
6580
6588
  };
6581
6589
  }
6582
- return function(F, E, Q) {
6583
- Q.p.customParseFormat = !0, F && F.parseTwoDigitYear && (f = F.parseTwoDigitYear);
6590
+ return function(F, E, M) {
6591
+ M.p.customParseFormat = !0, F && F.parseTwoDigitYear && (f = F.parseTwoDigitYear);
6584
6592
  var T = E.prototype, q = T.parse;
6585
6593
  T.parse = function(S) {
6586
6594
  var Z = S.date, J = S.utc, _ = S.args;
@@ -6588,20 +6596,20 @@ var sr = { exports: {} };
6588
6596
  var l = _[1];
6589
6597
  if (typeof l == "string") {
6590
6598
  var v = _[2] === !0, C = _[3] === !0, O = v || C, K = _[2];
6591
- C && (K = _[2]), p = this.$locale(), !v && K && (p = Q.Ls[K]), this.$d = function(z, x, y, A) {
6599
+ C && (K = _[2]), p = this.$locale(), !v && K && (p = M.Ls[K]), this.$d = function(z, x, y, A) {
6592
6600
  try {
6593
6601
  if (["x", "X"].indexOf(x) > -1) return new Date((x === "X" ? 1e3 : 1) * z);
6594
- var c = h(x)(z), d = c.year, m = c.month, P = c.day, H = c.hours, V = c.minutes, G = c.seconds, W = c.milliseconds, M = c.zone, Y = c.week, ee = /* @__PURE__ */ new Date(), Ae = P || (d || m ? 1 : ee.getDate()), ie = d || ee.getFullYear(), ue = 0;
6602
+ var c = h(x)(z), d = c.year, m = c.month, P = c.day, H = c.hours, V = c.minutes, G = c.seconds, W = 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;
6595
6603
  d && !m || (ue = m > 0 ? m - 1 : ee.getMonth());
6596
6604
  var le, pe = H || 0, ye = V || 0, ze = G || 0, Xe = W || 0;
6597
- return M ? new Date(Date.UTC(ie, ue, Ae, pe, ye, ze, Xe + 60 * M.offset * 1e3)) : y ? new Date(Date.UTC(ie, ue, Ae, pe, ye, ze, Xe)) : (le = new Date(ie, ue, Ae, pe, ye, ze, Xe), Y && (le = A(le).week(Y).toDate()), le);
6605
+ return Q ? new Date(Date.UTC(ie, ue, Ae, pe, ye, ze, Xe + 60 * Q.offset * 1e3)) : y ? new Date(Date.UTC(ie, ue, Ae, pe, ye, ze, Xe)) : (le = new Date(ie, ue, Ae, pe, ye, ze, Xe), Y && (le = A(le).week(Y).toDate()), le);
6598
6606
  } catch {
6599
6607
  return /* @__PURE__ */ new Date("");
6600
6608
  }
6601
- }(Z, l, J, Q), this.init(), K && K !== !0 && (this.$L = this.locale(K).$L), O && Z != this.format(l) && (this.$d = /* @__PURE__ */ new Date("")), p = {};
6609
+ }(Z, l, J, M), this.init(), K && K !== !0 && (this.$L = this.locale(K).$L), O && Z != this.format(l) && (this.$d = /* @__PURE__ */ new Date("")), p = {};
6602
6610
  } else if (l instanceof Array) for (var b = l.length, R = 1; R <= b; R += 1) {
6603
6611
  _[1] = l[R - 1];
6604
- var w = Q.apply(this, _);
6612
+ var w = M.apply(this, _);
6605
6613
  if (w.isValid()) {
6606
6614
  this.$d = w.$d, this.$L = w.$L, this.init();
6607
6615
  break;
@@ -6667,9 +6675,9 @@ k.extend(Xn);
6667
6675
  k.extend(On);
6668
6676
  k.extend(Tn);
6669
6677
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
6670
- const Qn = () => {
6678
+ const Mn = () => {
6671
6679
  };
6672
- function Mn(e, t, r) {
6680
+ function Qn(e, t, r) {
6673
6681
  let o;
6674
6682
  rn(r) ? o = {
6675
6683
  evaluating: r
@@ -6678,7 +6686,7 @@ function Mn(e, t, r) {
6678
6686
  lazy: n = !1,
6679
6687
  evaluating: a = void 0,
6680
6688
  shallow: i = !0,
6681
- onError: s = Qn
6689
+ onError: s = Mn
6682
6690
  } = o, p = oe(!n), f = i ? nn(t) : oe(t);
6683
6691
  let u = 0;
6684
6692
  return an(async (U) => {
@@ -6990,7 +6998,7 @@ var ur = { exports: {} };
6990
6998
  return void V.push([d, m[P - 1], H]);
6991
6999
  var G = u(m, P);
6992
7000
  if (s(d) && isNaN(Number(G)))
6993
- for (var W = 0, M = d.length; W < M; W++) c(u(d, W), m, P, d, V);
7001
+ for (var W = 0, Q = d.length; W < Q; W++) c(u(d, W), m, P, d, V);
6994
7002
  else c(u(d, G), m, P + 1, d, V);
6995
7003
  }(v, C, 0, v, b), b.length === 1) {
6996
7004
  var R = b[0];
@@ -7002,7 +7010,7 @@ var ur = { exports: {} };
7002
7010
  }
7003
7011
  return z;
7004
7012
  }
7005
- function Q(l, v, C) {
7013
+ function M(l, v, C) {
7006
7014
  return F({ keyPath: l, child: v, query: C }, E);
7007
7015
  }
7008
7016
  function T(l) {
@@ -7021,7 +7029,7 @@ var ur = { exports: {} };
7021
7029
  if (z.charCodeAt(0) === 36)
7022
7030
  throw new Error("Unknown operation " + z);
7023
7031
  var A = z.split(".");
7024
- w.push(Q(A, b(x), x));
7032
+ w.push(M(A, b(x), x));
7025
7033
  }
7026
7034
  }
7027
7035
  }
@@ -7451,7 +7459,7 @@ async function da(e, t) {
7451
7459
  var uo = /* @__PURE__ */ ((e) => (e.Loading = "loading", e.Allowed = "allowed", e.Denied = "denied", e))(uo || {});
7452
7460
  function ua() {
7453
7461
  const e = dn(), { sessionUser: t } = wo();
7454
- return Mn(
7462
+ return Qn(
7455
7463
  async () => {
7456
7464
  e.matched;
7457
7465
  const r = t.value;
@@ -7827,7 +7835,7 @@ const Ta = [
7827
7835
  subject: N.inventory_orderTemplate,
7828
7836
  actions: [g.read, g.update]
7829
7837
  }
7830
- ], Qa = [
7838
+ ], Ma = [
7831
7839
  ...ge,
7832
7840
  {
7833
7841
  label: "Warehouse",
@@ -7839,7 +7847,7 @@ const Ta = [
7839
7847
  g.delete
7840
7848
  ]
7841
7849
  }
7842
- ], Ma = [
7850
+ ], Qa = [
7843
7851
  {
7844
7852
  label: "Inventory",
7845
7853
  subject: N.inventory,
@@ -7954,12 +7962,12 @@ const Sa = {
7954
7962
  [`set_${X.inventory_warehouse}`]: {
7955
7963
  key: "sys:inventory:warehouse",
7956
7964
  name: "Warehouse",
7957
- permissions: Qa
7965
+ permissions: Ma
7958
7966
  },
7959
7967
  [`set_${X.inventory_publish}`]: {
7960
7968
  key: "sys:inventory:publish",
7961
7969
  name: "Publish",
7962
- permissions: Ma
7970
+ permissions: Qa
7963
7971
  },
7964
7972
  [`set_${X.inventory_import}`]: {
7965
7973
  key: "sys:inventory:import",
@@ -8195,10 +8203,10 @@ const mi = (e, t, r, { allOwnKeys: o } = {}) => (At(t, (n, a) => {
8195
8203
  };
8196
8204
  return et(e) ? o(e) : o(String(e).split(t)), r;
8197
8205
  }, Ci = () => {
8198
- }, Di = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, no = "abcdefghijklmnopqrstuvwxyz", Qo = "0123456789", Er = {
8199
- DIGIT: Qo,
8206
+ }, Di = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, no = "abcdefghijklmnopqrstuvwxyz", Mo = "0123456789", Er = {
8207
+ DIGIT: Mo,
8200
8208
  ALPHA: no,
8201
- ALPHA_DIGIT: no + no.toUpperCase() + Qo
8209
+ ALPHA_DIGIT: no + no.toUpperCase() + Mo
8202
8210
  }, Ri = (e = 16, t = Er.ALPHA_DIGIT) => {
8203
8211
  let r = "";
8204
8212
  const { length: o } = t;
@@ -8350,7 +8358,7 @@ function fo(e) {
8350
8358
  function jr(e) {
8351
8359
  return B.endsWith(e, "[]") ? e.slice(0, -2) : e;
8352
8360
  }
8353
- function Mo(e, t, r) {
8361
+ function Qo(e, t, r) {
8354
8362
  return e ? e.concat(t).map(function(n, a) {
8355
8363
  return n = jr(n), !r && a ? "[" + n + "]" : n;
8356
8364
  }).join(r ? "." : "") : t;
@@ -8391,12 +8399,12 @@ function Pt(e, t, r) {
8391
8399
  return h = jr(h), E.forEach(function(T, q) {
8392
8400
  !(B.isUndefined(T) || T === null) && t.append(
8393
8401
  // eslint-disable-next-line no-nested-ternary
8394
- i === !0 ? Mo([h], q, a) : i === null ? h : h + "[]",
8402
+ i === !0 ? Qo([h], q, a) : i === null ? h : h + "[]",
8395
8403
  f(T)
8396
8404
  );
8397
8405
  }), !1;
8398
8406
  }
8399
- return fo(D) ? !0 : (t.append(Mo(F, h, a), f(D)), !1);
8407
+ return fo(D) ? !0 : (t.append(Qo(F, h, a), f(D)), !1);
8400
8408
  }
8401
8409
  const U = [], j = Object.assign(Xi, {
8402
8410
  defaultVisitor: u,
@@ -8407,14 +8415,14 @@ function Pt(e, t, r) {
8407
8415
  if (!B.isUndefined(D)) {
8408
8416
  if (U.indexOf(D) !== -1)
8409
8417
  throw Error("Circular reference detected in " + h.join("."));
8410
- U.push(D), B.forEach(D, function(E, Q) {
8418
+ U.push(D), B.forEach(D, function(E, M) {
8411
8419
  (!(B.isUndefined(E) || E === null) && n.call(
8412
8420
  t,
8413
8421
  E,
8414
- B.isString(Q) ? Q.trim() : Q,
8422
+ B.isString(M) ? M.trim() : M,
8415
8423
  h,
8416
8424
  j
8417
- )) === !0 && I(E, h ? h.concat(Q) : [Q]);
8425
+ )) === !0 && I(E, h ? h.concat(M) : [M]);
8418
8426
  }), U.pop();
8419
8427
  }
8420
8428
  }
@@ -8527,7 +8535,7 @@ const Tr = {
8527
8535
  silentJSONParsing: !0,
8528
8536
  forcedJSONParsing: !0,
8529
8537
  clarifyTimeoutError: !1
8530
- }, Oi = typeof URLSearchParams < "u" ? URLSearchParams : Do, Ii = typeof FormData < "u" ? FormData : null, Ti = typeof Blob < "u" ? Blob : null, Qi = {
8538
+ }, Oi = typeof URLSearchParams < "u" ? URLSearchParams : Do, Ii = typeof FormData < "u" ? FormData : null, Ti = typeof Blob < "u" ? Blob : null, Mi = {
8531
8539
  isBrowser: !0,
8532
8540
  classes: {
8533
8541
  URLSearchParams: Oi,
@@ -8535,17 +8543,17 @@ const Tr = {
8535
8543
  Blob: Ti
8536
8544
  },
8537
8545
  protocols: ["http", "https", "file", "blob", "url", "data"]
8538
- }, Ro = typeof window < "u" && typeof document < "u", go = typeof navigator == "object" && navigator || void 0, Mi = Ro && (!go || ["ReactNative", "NativeScript", "NS"].indexOf(go.product) < 0), Vi = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
8546
+ }, Ro = typeof window < "u" && typeof document < "u", go = typeof navigator == "object" && navigator || void 0, Qi = Ro && (!go || ["ReactNative", "NativeScript", "NS"].indexOf(go.product) < 0), Vi = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
8539
8547
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Gi = Ro && window.location.href || "http://localhost", Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8540
8548
  __proto__: null,
8541
8549
  hasBrowserEnv: Ro,
8542
- hasStandardBrowserEnv: Mi,
8550
+ hasStandardBrowserEnv: Qi,
8543
8551
  hasStandardBrowserWebWorkerEnv: Vi,
8544
8552
  navigator: go,
8545
8553
  origin: Gi
8546
8554
  }, Symbol.toStringTag, { value: "Module" })), fe = {
8547
8555
  ...Si,
8548
- ...Qi
8556
+ ...Mi
8549
8557
  };
8550
8558
  function Ni(e, t) {
8551
8559
  return Pt(e, new fe.classes.URLSearchParams(), Object.assign({
@@ -8566,7 +8574,7 @@ function Yi(e) {
8566
8574
  a = r[o], t[a] = e[a];
8567
8575
  return t;
8568
8576
  }
8569
- function Qr(e) {
8577
+ function Mr(e) {
8570
8578
  function t(r, o, n, a) {
8571
8579
  let i = r[a++];
8572
8580
  if (i === "__proto__") return !0;
@@ -8597,7 +8605,7 @@ const st = {
8597
8605
  transformRequest: [function(t, r) {
8598
8606
  const o = r.getContentType() || "", n = o.indexOf("application/json") > -1, a = B.isObject(t);
8599
8607
  if (a && B.isHTMLForm(t) && (t = new FormData(t)), B.isFormData(t))
8600
- return n ? JSON.stringify(Qr(t)) : t;
8608
+ return n ? JSON.stringify(Mr(t)) : t;
8601
8609
  if (B.isArrayBuffer(t) || B.isBuffer(t) || B.isStream(t) || B.isFile(t) || B.isBlob(t) || B.isReadableStream(t))
8602
8610
  return t;
8603
8611
  if (B.isArrayBufferView(t))
@@ -8860,7 +8868,7 @@ function io(e, t) {
8860
8868
  a = s.call(r, a, n.normalize(), t ? t.status : void 0);
8861
8869
  }), n.normalize(), a;
8862
8870
  }
8863
- function Mr(e) {
8871
+ function Qr(e) {
8864
8872
  return !!(e && e.__CANCEL__);
8865
8873
  }
8866
8874
  function tt(e, t, r) {
@@ -9112,9 +9120,9 @@ const Sr = (e) => {
9112
9120
  }), B.isUndefined(n.withCredentials) || (F.withCredentials = !!n.withCredentials), s && s !== "json" && (F.responseType = n.responseType), f && ([j, D] = Bt(f, !0), F.addEventListener("progress", j)), p && F.upload && ([U, I] = Bt(p), F.upload.addEventListener("progress", U), F.upload.addEventListener("loadend", I)), (n.cancelToken || n.signal) && (u = (T) => {
9113
9121
  F && (o(!T || T.type ? new tt(null, e, F) : T), F.abort(), F = null);
9114
9122
  }, n.cancelToken && n.cancelToken.subscribe(u), n.signal && (n.signal.aborted ? u() : n.signal.addEventListener("abort", u)));
9115
- const Q = ec(n.url);
9116
- if (Q && fe.protocols.indexOf(Q) === -1) {
9117
- o(new L("Unsupported protocol " + Q + ":", L.ERR_BAD_REQUEST, e));
9123
+ const M = ec(n.url);
9124
+ if (M && fe.protocols.indexOf(M) === -1) {
9125
+ o(new L("Unsupported protocol " + M + ":", L.ERR_BAD_REQUEST, e));
9118
9126
  return;
9119
9127
  }
9120
9128
  F.send(a || null);
@@ -9289,32 +9297,32 @@ const fc = async (e) => {
9289
9297
  duplex: "half",
9290
9298
  credentials: E ? U : void 0
9291
9299
  });
9292
- let Q = await fetch(D);
9300
+ let M = await fetch(D);
9293
9301
  const T = yo && (f === "stream" || f === "response");
9294
9302
  if (yo && (s || T && h)) {
9295
9303
  const S = {};
9296
9304
  ["status", "statusText", "headers"].forEach((l) => {
9297
- S[l] = Q[l];
9305
+ S[l] = M[l];
9298
9306
  });
9299
- const Z = B.toFiniteNumber(Q.headers.get("content-length")), [J, _] = s && No(
9307
+ const Z = B.toFiniteNumber(M.headers.get("content-length")), [J, _] = s && No(
9300
9308
  Z,
9301
9309
  Bt(qo(s), !0)
9302
9310
  ) || [];
9303
- Q = new Response(
9304
- Lo(Q.body, ko, J, () => {
9311
+ M = new Response(
9312
+ Lo(M.body, ko, J, () => {
9305
9313
  _ && _(), h && h();
9306
9314
  }),
9307
9315
  S
9308
9316
  );
9309
9317
  }
9310
9318
  f = f || "text";
9311
- let q = await Ut[B.findKey(Ut, f) || "text"](Q, e);
9319
+ let q = await Ut[B.findKey(Ut, f) || "text"](M, e);
9312
9320
  return !T && h && h(), await new Promise((S, Z) => {
9313
9321
  Vr(S, Z, {
9314
9322
  data: q,
9315
- headers: we.from(Q.headers),
9316
- status: Q.status,
9317
- statusText: Q.statusText,
9323
+ headers: we.from(M.headers),
9324
+ status: M.status,
9325
+ statusText: M.statusText,
9318
9326
  config: e,
9319
9327
  request: D
9320
9328
  });
@@ -9387,7 +9395,7 @@ function Zo(e) {
9387
9395
  o
9388
9396
  ), o.headers = we.from(o.headers), o;
9389
9397
  }, function(o) {
9390
- return Mr(o) || (co(e), o && o.response && (o.response.data = io.call(
9398
+ return Qr(o) || (co(e), o && o.response && (o.response.data = io.call(
9391
9399
  e,
9392
9400
  e.transformResponse,
9393
9401
  o.response
@@ -9726,7 +9734,7 @@ const ce = Wr(st);
9726
9734
  ce.Axios = Ye;
9727
9735
  ce.CanceledError = tt;
9728
9736
  ce.CancelToken = Fc;
9729
- ce.isCancel = Mr;
9737
+ ce.isCancel = Qr;
9730
9738
  ce.VERSION = Lr;
9731
9739
  ce.toFormData = Pt;
9732
9740
  ce.AxiosError = L;
@@ -9738,7 +9746,7 @@ ce.spread = wc;
9738
9746
  ce.isAxiosError = Bc;
9739
9747
  ce.mergeConfig = Le;
9740
9748
  ce.AxiosHeaders = we;
9741
- ce.formToJSON = (e) => Qr(B.isHTMLForm(e) ? new FormData(e) : e);
9749
+ ce.formToJSON = (e) => Mr(B.isHTMLForm(e) ? new FormData(e) : e);
9742
9750
  ce.getAdapter = Yr.getAdapter;
9743
9751
  ce.HttpStatusCode = ho;
9744
9752
  ce.default = ce;
@@ -9756,15 +9764,15 @@ const {
9756
9764
  toFormData: OA,
9757
9765
  AxiosHeaders: IA,
9758
9766
  HttpStatusCode: TA,
9759
- formToJSON: QA,
9760
- getAdapter: MA,
9767
+ formToJSON: MA,
9768
+ getAdapter: QA,
9761
9769
  mergeConfig: VA
9762
9770
  } = ce;
9763
9771
  var ne = /* @__PURE__ */ ((e) => (e.Get = "get", e.Post = "post", e.Put = "put", e.Delete = "delete", e))(ne || {});
9764
9772
  class Uc extends Error {
9765
9773
  constructor(r, o) {
9766
9774
  super(r);
9767
- Me(this, "errors");
9775
+ Qe(this, "errors");
9768
9776
  this.errors = o;
9769
9777
  }
9770
9778
  }
@@ -9795,8 +9803,8 @@ function Dc(e, t) {
9795
9803
  }
9796
9804
  class xt {
9797
9805
  constructor(t) {
9798
- Me(this, "baseUrl");
9799
- Me(this, "rawFetch", async (t) => {
9806
+ Qe(this, "baseUrl");
9807
+ Qe(this, "rawFetch", async (t) => {
9800
9808
  const { fetchType: r, url: o, requestConfig: n, data: a } = t, { country: i } = De($()), s = Dc(i.value, this.baseUrl);
9801
9809
  switch (r) {
9802
9810
  case "get":
@@ -9809,14 +9817,14 @@ class xt {
9809
9817
  return await s.delete(o, n);
9810
9818
  }
9811
9819
  });
9812
- Me(this, "fetch", async (t) => {
9820
+ Qe(this, "fetch", async (t) => {
9813
9821
  const r = await this.rawFetch(t);
9814
9822
  return new Promise((o) => o(r.data));
9815
9823
  });
9816
9824
  this.baseUrl = t;
9817
9825
  }
9818
9826
  }
9819
- const se = new xt("https://query-engine{.country}.feedmeapi.com"), mt = new xt("https://query-engine{.country}.feedmeapi.com/report-query"), GA = new xt("https://query-engine{.country}.feedmeapi.com/report-file"), SA = new xt("https://portal-v2{.country}.feedmeapi.com"), Rc = (e) => ({
9827
+ const se = new xt("https://query-engine{.country}.feedmeapidev.com"), mt = new xt("https://query-engine{.country}.feedmeapidev.com/report-query"), GA = new xt("https://query-engine{.country}.feedmeapidev.com/report-file"), SA = new xt("https://portal-v2{.country}.feedmeapidev.com"), Rc = (e) => ({
9820
9828
  id: e._id,
9821
9829
  name: e.profile.name,
9822
9830
  code: e.profile.code,
@@ -9971,7 +9979,7 @@ const re = "YYYY-MM-DD";
9971
9979
  function kA(e) {
9972
9980
  return e.label || `${tr(e.schemaName)} ${tr(e.name)}`;
9973
9981
  }
9974
- function Qc() {
9982
+ function Mc() {
9975
9983
  const { timezone: e } = De(lt());
9976
9984
  return [
9977
9985
  {
@@ -10051,7 +10059,7 @@ const lt = ct(Ic, () => {
10051
10059
  }
10052
10060
  }
10053
10061
  function r(K) {
10054
- const b = Qc().find(
10062
+ const b = Mc().find(
10055
10063
  (w) => w.label === K.defaultDateRange
10056
10064
  );
10057
10065
  b && (f.value.startDate = b.value.startDate, f.value.endDate = b.value.endDate);
@@ -10118,12 +10126,12 @@ const lt = ct(Ic, () => {
10118
10126
  endDate: k().tz(p.value).startOf("day").subtract(1, "day").format(re)
10119
10127
  }), U = oe({ start: { hour: 0, minute: 0 }, end: { hour: 23, minute: 59 } }), j = oe(
10120
10128
  n.value.timeOptions.findIndex((K) => K.isDefault) + 1
10121
- ), I = oe([]), D = oe([]), h = oe(null), F = oe([]), E = oe(!1), Q = oe(null), T = oe(null), q = oe(0);
10129
+ ), I = oe([]), D = oe([]), h = oe(null), F = oe([]), E = oe(!1), M = oe(null), T = oe(null), q = oe(0);
10122
10130
  function S(K) {
10123
- Q.value = K, T.value = null;
10131
+ M.value = K, T.value = null;
10124
10132
  }
10125
10133
  function Z(K) {
10126
- Q.value === K && (T.value = K, q.value++);
10134
+ M.value === K && (T.value = K, q.value++);
10127
10135
  }
10128
10136
  const J = de(
10129
10137
  () => I.value.filter((K) => a.value.includes(K.id)).map((K) => K.id)
@@ -10165,14 +10173,14 @@ const lt = ct(Ic, () => {
10165
10173
  setTimeRange: v,
10166
10174
  setCompareDateRange: C,
10167
10175
  setSelectedLocationIds: O,
10168
- businessLoadingId: Q,
10176
+ businessLoadingId: M,
10169
10177
  businessLoadedId: T,
10170
10178
  businessDataVersion: q,
10171
10179
  beginBusinessLoad: S,
10172
10180
  completeBusinessLoad: Z
10173
10181
  };
10174
10182
  });
10175
- function Mc() {
10183
+ function Qc() {
10176
10184
  const { businessId: e } = $(), t = {
10177
10185
  fetchType: ne.Get,
10178
10186
  url: `/${e}/integration`
@@ -10401,21 +10409,21 @@ var Fo = { exports: {} };
10401
10409
  function H(W) {
10402
10410
  try {
10403
10411
  G(d.next(W));
10404
- } catch (M) {
10405
- P(M);
10412
+ } catch (Q) {
10413
+ P(Q);
10406
10414
  }
10407
10415
  }
10408
10416
  function V(W) {
10409
10417
  try {
10410
10418
  G(d.throw(W));
10411
- } catch (M) {
10412
- P(M);
10419
+ } catch (Q) {
10420
+ P(Q);
10413
10421
  }
10414
10422
  }
10415
10423
  function G(W) {
10416
- var M;
10417
- W.done ? m(W.value) : (M = W.value, M instanceof c ? M : new c(function(Y) {
10418
- Y(M);
10424
+ var Q;
10425
+ W.done ? m(W.value) : (Q = W.value, Q instanceof c ? Q : new c(function(Y) {
10426
+ Y(Q);
10419
10427
  })).then(H, V);
10420
10428
  }
10421
10429
  G((d = d.apply(y, [])).next());
@@ -10431,51 +10439,51 @@ var Fo = { exports: {} };
10431
10439
  }), P;
10432
10440
  function V(G) {
10433
10441
  return function(W) {
10434
- return function(M) {
10442
+ return function(Q) {
10435
10443
  if (c) throw new TypeError("Generator is already executing.");
10436
10444
  for (; H; ) try {
10437
- if (c = 1, d && (m = 2 & M[0] ? d.return : M[0] ? d.throw || ((m = d.return) && m.call(d), 0) : d.next) && !(m = m.call(d, M[1])).done) return m;
10438
- switch (d = 0, m && (M = [2 & M[0], m.value]), M[0]) {
10445
+ if (c = 1, d && (m = 2 & Q[0] ? d.return : Q[0] ? d.throw || ((m = d.return) && m.call(d), 0) : d.next) && !(m = m.call(d, Q[1])).done) return m;
10446
+ switch (d = 0, m && (Q = [2 & Q[0], m.value]), Q[0]) {
10439
10447
  case 0:
10440
10448
  case 1:
10441
- m = M;
10449
+ m = Q;
10442
10450
  break;
10443
10451
  case 4:
10444
- return H.label++, { value: M[1], done: !1 };
10452
+ return H.label++, { value: Q[1], done: !1 };
10445
10453
  case 5:
10446
- H.label++, d = M[1], M = [0];
10454
+ H.label++, d = Q[1], Q = [0];
10447
10455
  continue;
10448
10456
  case 7:
10449
- M = H.ops.pop(), H.trys.pop();
10457
+ Q = H.ops.pop(), H.trys.pop();
10450
10458
  continue;
10451
10459
  default:
10452
- if (m = H.trys, !((m = m.length > 0 && m[m.length - 1]) || M[0] !== 6 && M[0] !== 2)) {
10460
+ if (m = H.trys, !((m = m.length > 0 && m[m.length - 1]) || Q[0] !== 6 && Q[0] !== 2)) {
10453
10461
  H = 0;
10454
10462
  continue;
10455
10463
  }
10456
- if (M[0] === 3 && (!m || M[1] > m[0] && M[1] < m[3])) {
10457
- H.label = M[1];
10464
+ if (Q[0] === 3 && (!m || Q[1] > m[0] && Q[1] < m[3])) {
10465
+ H.label = Q[1];
10458
10466
  break;
10459
10467
  }
10460
- if (M[0] === 6 && H.label < m[1]) {
10461
- H.label = m[1], m = M;
10468
+ if (Q[0] === 6 && H.label < m[1]) {
10469
+ H.label = m[1], m = Q;
10462
10470
  break;
10463
10471
  }
10464
10472
  if (m && H.label < m[2]) {
10465
- H.label = m[2], H.ops.push(M);
10473
+ H.label = m[2], H.ops.push(Q);
10466
10474
  break;
10467
10475
  }
10468
10476
  m[2] && H.ops.pop(), H.trys.pop();
10469
10477
  continue;
10470
10478
  }
10471
- M = A.call(y, H);
10479
+ Q = A.call(y, H);
10472
10480
  } catch (Y) {
10473
- M = [6, Y], d = 0;
10481
+ Q = [6, Y], d = 0;
10474
10482
  } finally {
10475
10483
  c = m = 0;
10476
10484
  }
10477
- if (5 & M[0]) throw M[1];
10478
- return { value: M[0] ? M[1] : void 0, done: !0 };
10485
+ if (5 & Q[0]) throw Q[1];
10486
+ return { value: Q[0] ? Q[1] : void 0, done: !0 };
10479
10487
  }([G, W]);
10480
10488
  };
10481
10489
  }
@@ -10536,14 +10544,14 @@ var Fo = { exports: {} };
10536
10544
  (function(y) {
10537
10545
  y.NONE = "NONE", y.DEFAULT_FLAGS = "DEFAULT_FLAGS", y.CACHE = "CACHE", y.SERVER = "SERVER";
10538
10546
  })(u || (u = {}));
10539
- var F, E = null, Q = "FLAGSMITH_EVENT", T = Q, q = "https://edge.api.flagsmith.com/api/v1/", S = "flagsmith_value_", Z = "flagsmith_enabled_", J = "flagsmith_trait_", _ = function() {
10547
+ var F, E = null, M = "FLAGSMITH_EVENT", T = M, q = "https://edge.api.flagsmith.com/api/v1/", S = "flagsmith_value_", Z = "flagsmith_enabled_", J = "flagsmith_trait_", _ = function() {
10540
10548
  function y(A) {
10541
10549
  var c = this;
10542
10550
  this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
10543
10551
  var d = c, m = d.api, P = d.evaluationContext;
10544
10552
  c.log("Get Flags"), c.isLoading = !0, c.loadingState.isFetching || c.setLoadingState(n(n({}, c.loadingState), { isFetching: !0 }));
10545
10553
  var H = "".concat(c.getContext().identity), V = function(G) {
10546
- var W, M, Y, ee;
10554
+ var W, Q, Y, ee;
10547
10555
  if (G && H === "".concat(c.getContext().identity)) {
10548
10556
  var Ae = G.flags, ie = G.traits, ue = G.identifier;
10549
10557
  c.isLoading = !1;
@@ -10557,7 +10565,7 @@ var Fo = { exports: {} };
10557
10565
  if ((ue || Object.keys(pe).length) && (c.evaluationContext.identity = n(n({}, c.evaluationContext.identity), { traits: pe }), ue && (c.evaluationContext.identity.identifier = ue)), c.flags = le, c.updateStorage(), c._onChange(c.oldFlags, { isFromServer: !0, flagsChanged: ye, traitsChanged: ze }, c._loadedState(null, u.SERVER)), c.datadogRum) try {
10558
10566
  if (c.datadogRum.trackTraits) {
10559
10567
  var Xe = {};
10560
- Object.keys(((M = c.evaluationContext.identity) === null || M === void 0 ? void 0 : M.traits) || {}).map(function(te) {
10568
+ Object.keys(((Q = c.evaluationContext.identity) === null || Q === void 0 ? void 0 : Q.traits) || {}).map(function(te) {
10561
10569
  Xe[J + te] = c.getTrait(te);
10562
10570
  });
10563
10571
  var Ge = n(n(n({}, c.datadogRum.client.getUser()), { id: c.datadogRum.client.getUser().id || ((Y = c.evaluationContext.identity) === null || Y === void 0 ? void 0 : Y.identifier) }), Xe);
@@ -10579,15 +10587,15 @@ var Fo = { exports: {} };
10579
10587
  }
10580
10588
  };
10581
10589
  return P.identity ? Promise.all([P.identity.traits && Object.keys(P.identity.traits).length || !P.identity.identifier ? c.getJSON(m + "identities/", "POST", JSON.stringify({ identifier: P.identity.identifier, transient: P.identity.transient, traits: Object.entries(P.identity.traits).map(function(G) {
10582
- var W = G[0], M = G[1];
10583
- return { trait_key: W, trait_value: M == null ? void 0 : M.value, transient: M == null ? void 0 : M.transient };
10590
+ var W = G[0], Q = G[1];
10591
+ return { trait_key: W, trait_value: Q == null ? void 0 : Q.value, transient: Q == null ? void 0 : Q.transient };
10584
10592
  }).filter(function(G) {
10585
10593
  return G.trait_value !== void 0 || (c.log("Warning - attempted to set an undefined trait value for key", G.trait_key), !1);
10586
10594
  }) })) : c.getJSON(m + "identities/?identifier=" + encodeURIComponent(P.identity.identifier) + (P.identity.transient ? "&transient=true" : ""))]).then(function(G) {
10587
10595
  return c.evaluationContext.identity = n(n({}, c.evaluationContext.identity), { traits: {} }), V(G == null ? void 0 : G[0]);
10588
10596
  }).catch(function(G) {
10589
- var W = G.message, M = new Error(W);
10590
- return Promise.reject(M);
10597
+ var W = G.message, Q = new Error(W);
10598
+ return Promise.reject(Q);
10591
10599
  }) : c.getJSON(m + "flags/").then(function(G) {
10592
10600
  return V({ flags: G, traits: void 0 });
10593
10601
  });
@@ -10647,10 +10655,10 @@ var Fo = { exports: {} };
10647
10655
  V.evaluationContext;
10648
10656
  var G = V.headers, W = { method: m || "GET", body: P, cache: "no-cache", headers: {} };
10649
10657
  c.evaluationContext.environment && (W.headers["X-Environment-Key"] = c.evaluationContext.environment.apiKey), m && m !== "GET" && (W.headers["Content-Type"] = "application/json; charset=utf-8"), G && Object.assign(W.headers, G), U || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
10650
- var M = "".concat((H = c.evaluationContext.identity) === null || H === void 0 ? void 0 : H.identifier);
10658
+ var Q = "".concat((H = c.evaluationContext.identity) === null || H === void 0 ? void 0 : H.identifier);
10651
10659
  return U(d, W).then(function(Y) {
10652
10660
  var ee, Ae, ie = "".concat((ee = c.evaluationContext.identity) === null || ee === void 0 ? void 0 : ee.identifier);
10653
- if (M === ie) {
10661
+ if (Q === ie) {
10654
10662
  var ue = (Ae = Y.headers) === null || Ae === void 0 ? void 0 : Ae.get("x-flagsmith-document-updated-at");
10655
10663
  if (ue) try {
10656
10664
  var le = parseFloat(ue);
@@ -10668,7 +10676,7 @@ var Fo = { exports: {} };
10668
10676
  return !ye && Y.status && (ye = "API Response: ".concat(Y.status)), Y.status && Y.status >= 200 && Y.status < 300 ? ye : Promise.reject(new Error(ye));
10669
10677
  });
10670
10678
  }
10671
- c.log("Received response with identity mismatch, ignoring response. Requested: ".concat(M, ", Current: ").concat(ie));
10679
+ c.log("Received response with identity mismatch, ignoring response. Requested: ".concat(Q, ", Current: ").concat(ie));
10672
10680
  });
10673
10681
  }, this.evaluateFlag = function(d, m) {
10674
10682
  if (c.datadogRum && (c.datadogRum.client.addFeatureFlagEvaluation ? m === "VALUE" ? c.datadogRum.client.addFeatureFlagEvaluation(S + d, c.getValue(d, {}, !0)) : c.datadogRum.client.addFeatureFlagEvaluation(Z + d, c.hasFeature(d, !0)) : console.error("Flagsmith: Your datadog RUM client does not support the function addFeatureFlagEvaluation, please update it.")), c.enableAnalytics) {
@@ -10684,16 +10692,16 @@ var Fo = { exports: {} };
10684
10692
  return y.prototype.init = function(A) {
10685
10693
  var c, d, m;
10686
10694
  return a(this, void 0, void 0, function() {
10687
- var P, H, V, G, W, M, Y, ee, Ae, ie, ue, le, pe, ye, ze, Xe, Ge, ve, te, jt, ot, Po, ke, Ot, bo, Ko, It, xo, Tt, rt, We, Eo, he = this;
10695
+ var P, H, V, G, W, Q, Y, ee, Ae, ie, ue, le, pe, ye, ze, Xe, Ge, ve, te, jt, ot, Po, ke, Ot, bo, Ko, It, xo, Tt, rt, We, Eo, he = this;
10688
10696
  return i(this, function(Re) {
10689
10697
  switch (Re.label) {
10690
10698
  case 0:
10691
10699
  P = h(A.evaluationContext || this.evaluationContext), Re.label = 1;
10692
10700
  case 1:
10693
- if (Re.trys.push([1, 13, , 14]), H = A.environmentID, V = A.api, G = V === void 0 ? q : V, W = A.headers, M = A.onChange, Y = A.cacheFlags, ee = A.datadogRum, Ae = A.onError, ie = A.defaultFlags, ue = A.fetch, le = A.preventFetch, pe = A.enableLogs, ye = A.enableDynatrace, ze = A.enableAnalytics, Xe = A.realtime, Ge = A.eventSourceUrl, ve = Ge === void 0 ? "https://realtime.flagsmith.com/" : Ge, te = A.AsyncStorage, jt = A.identity, ot = A.traits, Po = A.state, ke = A.cacheOptions, Ot = A.angularHttpClient, bo = A._trigger, Ko = A._triggerLoadingState, P.environment = H ? { apiKey: H } : P.environment, !P.environment || !P.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
10701
+ if (Re.trys.push([1, 13, , 14]), H = A.environmentID, V = A.api, G = V === void 0 ? q : V, W = A.headers, Q = A.onChange, Y = A.cacheFlags, ee = A.datadogRum, Ae = A.onError, ie = A.defaultFlags, ue = A.fetch, le = A.preventFetch, pe = A.enableLogs, ye = A.enableDynatrace, ze = A.enableAnalytics, Xe = A.realtime, Ge = A.eventSourceUrl, ve = Ge === void 0 ? "https://realtime.flagsmith.com/" : Ge, te = A.AsyncStorage, jt = A.identity, ot = A.traits, Po = A.state, ke = A.cacheOptions, Ot = A.angularHttpClient, bo = A._trigger, Ko = A._triggerLoadingState, P.environment = H ? { apiKey: H } : P.environment, !P.environment || !P.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
10694
10702
  if (P.identity = jt || ot ? { identifier: jt, traits: ot ? Object.fromEntries(Object.entries(ot).map(function(Ce) {
10695
10703
  return [Ce[0], { value: Ce[1] }];
10696
- })) : {} } : P.identity, this.evaluationContext = P, this.api = G, this.headers = W, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = M, It = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = bo || this._trigger, this._triggerLoadingState = Ko || this._triggerLoadingState, this.onError = function(Ce) {
10704
+ })) : {} } : P.identity, this.evaluationContext = P, this.api = G, this.headers = W, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = Q, It = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = bo || this._trigger, this._triggerLoadingState = Ko || this._triggerLoadingState, this.onError = function(Ce) {
10697
10705
  he.setLoadingState(n(n({}, he.loadingState), { isFetching: !1, isLoading: !1, error: Ce })), Ae == null || Ae(Ce);
10698
10706
  }, 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 && (U = 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 = E !== void 0 && !!Y, T = "FLAGSMITH_EVENT_" + P.environment.apiKey, te && (E = te), Xe && typeof window < "u" && this.setupRealtime(ve, P.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: u.DEFAULT_FLAGS })), this.setState(Po), this.log("Initialising with properties", A, this), ye && (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), Ot && (U = /* @__PURE__ */ function(Ce) {
10699
10707
  return function(be, Ke) {
@@ -10735,38 +10743,38 @@ var Fo = { exports: {} };
10735
10743
  if (!E || !this.canUseStorage) return [3, 8];
10736
10744
  xo = function(Ce, be) {
10737
10745
  return a(he, void 0, void 0, function() {
10738
- var Ke, Te, ae, Ze, Se, je, Qt, Ho, Mt, Vt, Gt, St, Nt, qt, Yt, Lt, kt, Wt, Zt, Jt, _t, $t, eo, to, zo = this;
10739
- return i(this, function(Qe) {
10740
- switch (Qe.label) {
10746
+ var Ke, Te, ae, Ze, Se, je, Mt, Ho, Qt, Vt, Gt, St, Nt, qt, Yt, Lt, kt, Wt, Zt, Jt, _t, $t, eo, to, zo = this;
10747
+ return i(this, function(Me) {
10748
+ switch (Me.label) {
10741
10749
  case 0:
10742
10750
  if (!be) return [3, 7];
10743
- Ke = null, Te = null, Qe.label = 1;
10751
+ Ke = null, Te = null, Me.label = 1;
10744
10752
  case 1:
10745
- return Qe.trys.push([1, 5, , 6]), ae = JSON.parse(be), Ze = !1, Se = !1, ae && ae.api === this.api && ((Vt = (Mt = ae.evaluationContext) === null || Mt === void 0 ? void 0 : Mt.environment) === null || Vt === void 0 ? void 0 : Vt.apiKey) === ((Gt = this.evaluationContext.environment) === null || Gt === void 0 ? void 0 : Gt.apiKey) && (je = !0, this.evaluationContext.identity && ((Nt = (St = ae.evaluationContext) === null || St === void 0 ? void 0 : St.identity) === null || Nt === void 0 ? void 0 : Nt.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((Yt = (qt = ae.evaluationContext) === null || qt === void 0 ? void 0 : qt.identity) === null || Yt === void 0 ? void 0 : Yt.identifier) + " to " + this.evaluationContext.identity.identifier), je = !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"), je = !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"), Se = !0, je = !0)), je && (Ze = !0, Te = f((Lt = this.evaluationContext.identity) === null || Lt === void 0 ? void 0 : Lt.traits, (Wt = (kt = ae.evaluationContext) === null || kt === void 0 ? void 0 : kt.identity) === null || Wt === void 0 ? void 0 : Wt.traits), Ke = f(this.flags, ae.flags), this.setState(n(n({}, ae), { evaluationContext: h(n(n({}, ae.evaluationContext), { identity: !((Zt = ae.evaluationContext) === null || Zt === void 0) && Zt.identity ? n(n({}, (Jt = ae.evaluationContext) === null || Jt === void 0 ? void 0 : Jt.identity), { traits: n(n({}, (($t = (_t = ae.evaluationContext) === null || _t === void 0 ? void 0 : _t.identity) === null || $t === void 0 ? void 0 : $t.traits) || {}), ot || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", ae))), Ze ? (Qt = !le && (!this.cacheOptions.skipAPI || Se), this._onChange(null, { isFromServer: !1, flagsChanged: Ke, traitsChanged: Te }, this._loadedState(null, u.CACHE, Qt)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Ze && !Se && this.log("Skipping API, using cache"), Qt && this.getFlags().catch(function(en) {
10753
+ return Me.trys.push([1, 5, , 6]), ae = JSON.parse(be), Ze = !1, Se = !1, ae && ae.api === this.api && ((Vt = (Qt = ae.evaluationContext) === null || Qt === void 0 ? void 0 : Qt.environment) === null || Vt === void 0 ? void 0 : Vt.apiKey) === ((Gt = this.evaluationContext.environment) === null || Gt === void 0 ? void 0 : Gt.apiKey) && (je = !0, this.evaluationContext.identity && ((Nt = (St = ae.evaluationContext) === null || St === void 0 ? void 0 : St.identity) === null || Nt === void 0 ? void 0 : Nt.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((Yt = (qt = ae.evaluationContext) === null || qt === void 0 ? void 0 : qt.identity) === null || Yt === void 0 ? void 0 : Yt.identifier) + " to " + this.evaluationContext.identity.identifier), je = !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"), je = !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"), Se = !0, je = !0)), je && (Ze = !0, Te = f((Lt = this.evaluationContext.identity) === null || Lt === void 0 ? void 0 : Lt.traits, (Wt = (kt = ae.evaluationContext) === null || kt === void 0 ? void 0 : kt.identity) === null || Wt === void 0 ? void 0 : Wt.traits), Ke = f(this.flags, ae.flags), this.setState(n(n({}, ae), { evaluationContext: h(n(n({}, ae.evaluationContext), { identity: !((Zt = ae.evaluationContext) === null || Zt === void 0) && Zt.identity ? n(n({}, (Jt = ae.evaluationContext) === null || Jt === void 0 ? void 0 : Jt.identity), { traits: n(n({}, (($t = (_t = ae.evaluationContext) === null || _t === void 0 ? void 0 : _t.identity) === null || $t === void 0 ? void 0 : $t.traits) || {}), ot || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", ae))), Ze ? (Mt = !le && (!this.cacheOptions.skipAPI || Se), this._onChange(null, { isFromServer: !1, flagsChanged: Ke, traitsChanged: Te }, this._loadedState(null, u.CACHE, Mt)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Ze && !Se && this.log("Skipping API, using cache"), Mt && this.getFlags().catch(function(en) {
10746
10754
  var oo;
10747
10755
  (oo = zo.onError) === null || oo === void 0 || oo.call(zo, en);
10748
10756
  }), [3, 4]) : [3, 2];
10749
10757
  case 2:
10750
10758
  return le ? [3, 4] : [4, this.getFlags()];
10751
10759
  case 3:
10752
- Qe.sent(), Qe.label = 4;
10760
+ Me.sent(), Me.label = 4;
10753
10761
  case 4:
10754
10762
  return [3, 6];
10755
10763
  case 5:
10756
- return Ho = Qe.sent(), this.log("Exception fetching cached logs", Ho), [3, 6];
10764
+ return Ho = Me.sent(), this.log("Exception fetching cached logs", Ho), [3, 6];
10757
10765
  case 6:
10758
10766
  return [3, 10];
10759
10767
  case 7:
10760
10768
  return le ? [3, 9] : [4, this.getFlags()];
10761
10769
  case 8:
10762
- return Qe.sent(), [3, 10];
10770
+ return Me.sent(), [3, 10];
10763
10771
  case 9:
10764
10772
  if (ie) this._onChange(null, { isFromServer: !1, flagsChanged: f({}, this.flags), traitsChanged: f({}, (eo = this.evaluationContext.identity) === null || eo === void 0 ? void 0 : eo.traits) }, this._loadedState(null, u.DEFAULT_FLAGS));
10765
10773
  else {
10766
10774
  if (!this.flags) throw new Error(It);
10767
10775
  this._onChange(null, { isFromServer: !1, flagsChanged: f({}, this.flags), traitsChanged: f({}, (to = this.evaluationContext.identity) === null || to === void 0 ? void 0 : to.traits) }, this._loadedState(null, u.DEFAULT_FLAGS));
10768
10776
  }
10769
- Qe.label = 10;
10777
+ Me.label = 10;
10770
10778
  case 10:
10771
10779
  return [2];
10772
10780
  }
@@ -10993,14 +11001,14 @@ Consider loading an EventSource polyfill and making it available globally as Eve
10993
11001
  return P;
10994
11002
  }, entries: function() {
10995
11003
  return H;
10996
- }, get: function(M) {
10997
- return V[M.toLowerCase()];
10998
- }, has: function(M) {
10999
- return M.toLowerCase() in V;
11004
+ }, get: function(Q) {
11005
+ return V[Q.toLowerCase()];
11006
+ }, has: function(Q) {
11007
+ return Q.toLowerCase() in V;
11000
11008
  } } };
11001
11009
  };
11002
11010
  for (var W in m.open(A.method || "get", y, !0), m.onload = function() {
11003
- m.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(M, Y, ee) {
11011
+ m.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(Q, Y, ee) {
11004
11012
  P.push(Y = Y.toLowerCase()), H.push([Y, ee]), V[Y] = V[Y] ? V[Y] + "," + ee : ee;
11005
11013
  }), c(G());
11006
11014
  }, m.onerror = d, m.withCredentials = A.credentials == "include", A.headers) m.setRequestHeader(W, A.headers[W]);
@@ -11016,8 +11024,8 @@ var eA = Fo.exports, tA = {
11016
11024
  NOT_INITIALIZED: "FeatureFlag not initialized. Call init() first."
11017
11025
  }, or = "business", He, oA = (He = class {
11018
11026
  constructor() {
11019
- Me(this, "flagsmithClient", null);
11020
- Me(this, "userContext", null);
11027
+ Qe(this, "flagsmithClient", null);
11028
+ Qe(this, "userContext", null);
11021
11029
  }
11022
11030
  static getInstance() {
11023
11031
  return He.instance || (He.instance = new He()), He.instance;
@@ -11116,7 +11124,7 @@ var eA = Fo.exports, tA = {
11116
11124
  reset() {
11117
11125
  this.flagsmithClient = null, this.userContext = null;
11118
11126
  }
11119
- }, Me(He, "instance"), He), rA = oA.getInstance(), at = oe(!1), ut = oe([]), _e = oe(null);
11127
+ }, Qe(He, "instance"), He), rA = oA.getInstance(), at = oe(!1), ut = oe([]), _e = oe(null);
11120
11128
  function nA(e = rA) {
11121
11129
  const t = () => at.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), r = async (u, U = []) => {
11122
11130
  if (at.value) {
@@ -11218,7 +11226,7 @@ const AA = "mf-reportfeature-flag", $r = ct(AA, () => {
11218
11226
  (s) => s.flags.some((p) => r.value.includes(p))
11219
11227
  )), n = de(() => o.value.length === 0), a = (s) => s.every((p) => r.value.includes(p));
11220
11228
  async function i() {
11221
- e.value = await Mc();
11229
+ e.value = await Qc();
11222
11230
  }
11223
11231
  return {
11224
11232
  settings: e,
@@ -11330,9 +11338,9 @@ function uA() {
11330
11338
  function p(h, F) {
11331
11339
  if (!i.value) return !0;
11332
11340
  const E = dA(h);
11333
- return !E || !s.value.length ? !1 : F.some((Q) => {
11341
+ return !E || !s.value.length ? !1 : F.some((M) => {
11334
11342
  const T = {
11335
- action: Q,
11343
+ action: M,
11336
11344
  // Report subjects are custom strings; cast to satisfy CaslPermission type
11337
11345
  subject: E,
11338
11346
  coverSubject: h != null && h.isDefault ? o : n
@@ -11376,9 +11384,9 @@ function uA() {
11376
11384
  const pA = "mf-reportnavigation", fA = ct(pA, () => {
11377
11385
  const { disabled: e } = De(mA()), { sessionUser: t } = wo(), { isReportPermissionEnabled: r } = uA();
11378
11386
  function o(D) {
11379
- var Q;
11387
+ var M;
11380
11388
  if (!r.value) return !0;
11381
- const h = Array.isArray((Q = t.value) == null ? void 0 : Q.permissions) ? t.value.permissions : [];
11389
+ const h = Array.isArray((M = t.value) == null ? void 0 : M.permissions) ? t.value.permissions : [];
11382
11390
  if (!Array.isArray(h) || h.length === 0) return !1;
11383
11391
  const F = {
11384
11392
  action: g.manage,
@@ -11395,7 +11403,7 @@ const pA = "mf-reportnavigation", fA = ct(pA, () => {
11395
11403
  ), f = de(
11396
11404
  () => o(X.report_accessIntegration)
11397
11405
  ), u = de(() => {
11398
- const D = !i.value, h = !s.value, F = !p.value, E = !f.value, Q = [
11406
+ const D = !i.value, h = !s.value, F = !p.value, E = !f.value, M = [
11399
11407
  {
11400
11408
  label: "overview",
11401
11409
  value: "overview",
@@ -11421,12 +11429,12 @@ const pA = "mf-reportnavigation", fA = ct(pA, () => {
11421
11429
  disabled: F
11422
11430
  }
11423
11431
  ];
11424
- return e.value || Q.push({
11432
+ return e.value || M.push({
11425
11433
  label: "integration",
11426
11434
  value: "integration",
11427
11435
  route: "integrations",
11428
11436
  disabled: E
11429
- }), Q;
11437
+ }), M;
11430
11438
  }), U = oe(""), { currentRoute: j } = un();
11431
11439
  function I(D) {
11432
11440
  switch (D.name) {
@@ -11482,7 +11490,7 @@ const gA = [
11482
11490
  path: "/overview",
11483
11491
  alias: ["/"],
11484
11492
  name: "overview",
11485
- component: ft(() => import("./OverviewView-D6ri8d93.js")),
11493
+ component: ft(() => import("./OverviewView-BDRUTz05.js")),
11486
11494
  meta: {
11487
11495
  validationManifest: pt(
11488
11496
  X.report_accessOverview
@@ -11492,12 +11500,12 @@ const gA = [
11492
11500
  {
11493
11501
  path: "/report",
11494
11502
  name: "reports",
11495
- component: () => import("./Report-DFJj0YRF.js")
11503
+ component: () => import("./Report-DpPlnOrU.js")
11496
11504
  },
11497
11505
  {
11498
11506
  path: "/insights",
11499
11507
  name: "insights",
11500
- component: ft(() => import("./InsightView-CZxXrb_Z.js")),
11508
+ component: ft(() => import("./InsightView-BqyCopia.js")),
11501
11509
  meta: {
11502
11510
  validationManifest: pt(
11503
11511
  X.report_accessInsight
@@ -11507,22 +11515,22 @@ const gA = [
11507
11515
  {
11508
11516
  path: "/report-view",
11509
11517
  name: "reportView",
11510
- component: () => import("./ReportView-DXtOkb6E.js")
11518
+ component: () => import("./ReportView-tP7j8_7Y.js")
11511
11519
  },
11512
11520
  {
11513
11521
  path: "/report-editor",
11514
11522
  name: "reportEditor",
11515
- component: () => import("./ReportEditor-1ku-RI85.js")
11523
+ component: () => import("./ReportEditor-Bh-ZvB7p.js")
11516
11524
  },
11517
11525
  {
11518
11526
  path: "/report-editor/tile-editor",
11519
11527
  name: "tileEditor",
11520
- component: () => import("./TileEditor-B3dD9oLf.js")
11528
+ component: () => import("./TileEditor-C6wIGQBD.js")
11521
11529
  },
11522
11530
  {
11523
11531
  path: "/setting",
11524
11532
  name: "setting",
11525
- component: ft(() => import("./Setting-CxyiPw1q.js")),
11533
+ component: ft(() => import("./Setting-QWpjiw0r.js")),
11526
11534
  meta: {
11527
11535
  validationManifest: pt(
11528
11536
  X.report_accessSetting
@@ -11531,7 +11539,7 @@ const gA = [
11531
11539
  },
11532
11540
  {
11533
11541
  path: "/integration",
11534
- component: ft(() => import("./Layout-473B8zVn.js")),
11542
+ component: ft(() => import("./Layout-DAQOMFMP.js")),
11535
11543
  meta: {
11536
11544
  validationManifest: pt(
11537
11545
  X.report_accessIntegration
@@ -11541,12 +11549,12 @@ const gA = [
11541
11549
  {
11542
11550
  name: "integrations",
11543
11551
  path: "",
11544
- component: () => import("./Integrations-CTyK-Uyg.js")
11552
+ component: () => import("./Integrations-DVG378Mt.js")
11545
11553
  },
11546
11554
  {
11547
11555
  name: "integration",
11548
11556
  path: "/integration/:id",
11549
- component: () => import("./Integration-BxpLsC0U.js")
11557
+ component: () => import("./Integration-D-APHR8f.js")
11550
11558
  }
11551
11559
  ]
11552
11560
  },
@@ -11570,7 +11578,7 @@ const us = {
11570
11578
  "zh-CN": wn,
11571
11579
  "th-TH": Un,
11572
11580
  "zh-Hant": Dn
11573
- }, ps = ar(() => import("./App-nwXmJVxf.js"));
11581
+ }, ps = ar(() => import("./App-Ck6LU2s0.js"));
11574
11582
  export {
11575
11583
  WA as $,
11576
11584
  UA as A,
@@ -11601,7 +11609,7 @@ export {
11601
11609
  ls as Z,
11602
11610
  ds as _,
11603
11611
  lt as a,
11604
- Qc as a0,
11612
+ Mc as a0,
11605
11613
  aa as a1,
11606
11614
  wt as a2,
11607
11615
  us as a3,