@feedmepos/mf-report 5.27.49 → 5.27.50

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 (27) hide show
  1. package/dist/{App-CLgIY983.js → App-BmsF09Zx.js} +4 -4
  2. package/dist/{DateRangeSelect-CdNN_vaC.js → DateRangeSelect-DFrmdy1V.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-DBq_flsW.js → Default.vue_vue_type_script_setup_true_lang-CiFQcLSi.js} +1 -1
  4. package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-Ccwt8rUH.js → DynamicWidget.vue_vue_type_script_setup_true_lang-B7BFGX1N.js} +2132 -2128
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-ClJC-MQ6.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-COrPvIuC.js} +537 -403
  6. package/dist/{InsightView-B22qGkGv.js → InsightView-ButMjg-U.js} +4 -4
  7. package/dist/{Integration-xfaz51Mm.js → Integration-kEwQu7ai.js} +22 -4
  8. package/dist/{Integrations-Dbrr9YXD.js → Integrations-CQSoSK5V.js} +2 -2
  9. package/dist/{Layout-4hXcaU4u.js → Layout-DTsjR_RE.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DYVWa3Wi.js → MenuTab.vue_vue_type_script_setup_true_lang-BrRzCA9f.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BI4ucxNr.js → NavigationTab.vue_vue_type_script_setup_true_lang-DUs73Dgk.js} +3 -3
  12. package/dist/{OverviewView-DbNFnT2T.js → OverviewView-C7rXqkqu.js} +4 -4
  13. package/dist/{Report-BmtZSJO_.js → Report-DmMvV31s.js} +3 -3
  14. package/dist/{ReportEditor-CFoD55mD.js → ReportEditor-BiEsvXZY.js} +6 -6
  15. package/dist/{ReportView-Cz-nPgHF.js → ReportView-bervDyDE.js} +6 -6
  16. package/dist/{Setting-BPIRjlXr.js → Setting-DKnjhY5Y.js} +3 -3
  17. package/dist/{Template-DPbMgOWJ.js → Template-CA1pA8Tn.js} +3 -3
  18. package/dist/{TileEditor-CU3ss4rr.js → TileEditor-BO3GDx7j.js} +5 -5
  19. package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-D3g1M9fz.js → TilePageStack.vue_vue_type_script_setup_true_lang-BwkSae0h.js} +2 -2
  20. package/dist/{TransitionFade-BV-HUeyY.js → TransitionFade-PFvFcMin.js} +4 -4
  21. package/dist/{app-CcemD5Xe.js → app-BeHt_Ouq.js} +165 -161
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-CndMT42v.js → formatChartData.worker-DcDBJkDq.js} +132 -77
  24. package/dist/assets/{processTableData.worker-4f8rSwiE.js → processTableData.worker-CXe8nW3O.js} +132 -77
  25. package/dist/style.css +1 -1
  26. package/dist/{useRestaurantPermission-CNwHPSLF.js → useRestaurantPermission-46Gnzr-t.js} +1 -1
  27. package/package.json +1 -1
@@ -55,8 +55,8 @@ var Hn = { exports: {} };
55
55
  return x === void 0;
56
56
  } }, X = "en", Y = {};
57
57
  Y[X] = S;
58
- var L = "$isDayjsObject", re = function(x) {
59
- return x instanceof M || !(!x || !x[L]);
58
+ var k = "$isDayjsObject", re = function(x) {
59
+ return x instanceof M || !(!x || !x[k]);
60
60
  }, f = function x(P, h, O) {
61
61
  var E;
62
62
  if (!P) return X;
@@ -80,7 +80,7 @@ var Hn = { exports: {} };
80
80
  };
81
81
  var M = function() {
82
82
  function x(h) {
83
- this.$L = f(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[L] = !0;
83
+ this.$L = f(h.locale, null, !0), this.parse(h), this.$x = this.$x || h.x || {}, this[k] = !0;
84
84
  }
85
85
  var P = x.prototype;
86
86
  return P.parse = function(h) {
@@ -124,7 +124,7 @@ var Hn = { exports: {} };
124
124
  return v ? me : me.endOf(d);
125
125
  }, g = function(G, _) {
126
126
  return D.w(E.toDate()[G].apply(E.toDate("s"), (v ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(_)), E);
127
- }, p = this.$W, U = this.$M, j = this.$D, k = "set" + (this.$u ? "UTC" : "");
127
+ }, p = this.$W, U = this.$M, j = this.$D, L = "set" + (this.$u ? "UTC" : "");
128
128
  switch (m) {
129
129
  case T:
130
130
  return v ? A(1, 0) : A(31, 11);
@@ -135,13 +135,13 @@ var Hn = { exports: {} };
135
135
  return A(v ? j - te : j + (6 - te), U);
136
136
  case d:
137
137
  case R:
138
- return g(k + "Hours", 0);
138
+ return g(L + "Hours", 0);
139
139
  case l:
140
- return g(k + "Minutes", 1);
140
+ return g(L + "Minutes", 1);
141
141
  case s:
142
- return g(k + "Seconds", 2);
142
+ return g(L + "Seconds", 2);
143
143
  case i:
144
- return g(k + "Milliseconds", 3);
144
+ return g(L + "Milliseconds", 3);
145
145
  default:
146
146
  return this.clone();
147
147
  }
@@ -176,11 +176,11 @@ var Hn = { exports: {} };
176
176
  }, P.format = function(h) {
177
177
  var O = this, E = this.$locale();
178
178
  if (!this.isValid()) return E.invalidDate || B;
179
- var v = h || "YYYY-MM-DDTHH:mm:ssZ", m = D.z(this), A = this.$H, g = this.$m, p = this.$M, U = E.weekdays, j = E.months, k = E.meridiem, Z = function(_, me, Fe, ye) {
179
+ var v = h || "YYYY-MM-DDTHH:mm:ssZ", m = D.z(this), A = this.$H, g = this.$m, p = this.$M, U = E.weekdays, j = E.months, L = E.meridiem, Z = function(_, me, Fe, ye) {
180
180
  return _ && (_[me] || _(O, v)) || Fe[me].slice(0, ye);
181
181
  }, te = function(_) {
182
182
  return D.s(A % 12 || 12, _, "0");
183
- }, G = k || function(_, me, Fe) {
183
+ }, G = L || function(_, me, Fe) {
184
184
  var ye = _ < 12 ? "AM" : "PM";
185
185
  return Fe ? ye.toLowerCase() : ye;
186
186
  };
@@ -343,7 +343,7 @@ var zn = { exports: {} };
343
343
  X === void 0 && (X = "");
344
344
  var Y = X.match(r);
345
345
  if (!Y) return null;
346
- var L = ("" + Y[0]).match(n) || ["-", 0, 0], re = L[0], f = 60 * +L[1] + +L[2];
346
+ var k = ("" + Y[0]).match(n) || ["-", 0, 0], re = k[0], f = 60 * +k[1] + +k[2];
347
347
  return f === 0 ? 0 : re === "+" ? f : -f;
348
348
  }(B), B === null)) return this;
349
349
  var S = Math.abs(B) <= 16 ? 60 * B : B, z = this;
@@ -403,8 +403,8 @@ var In = { exports: {} };
403
403
  var H = R[F], S = H.type, z = H.value, I = o[S];
404
404
  I >= 0 && (B[I] = parseInt(z, 10));
405
405
  }
406
- var X = B[3], Y = X === 24 ? 0 : X, L = B[0] + "-" + B[1] + "-" + B[2] + " " + Y + ":" + B[4] + ":" + B[5] + ":000", re = +K;
407
- return (i.utc(L).valueOf() - (re -= re % 1e3)) / 6e4;
406
+ var X = B[3], Y = X === 24 ? 0 : X, k = B[0] + "-" + B[1] + "-" + B[2] + " " + Y + ":" + B[4] + ":" + B[5] + ":000", re = +K;
407
+ return (i.utc(k).valueOf() - (re -= re % 1e3)) / 6e4;
408
408
  }, u = a.prototype;
409
409
  u.tz = function(K, T) {
410
410
  K === void 0 && (K = s);
@@ -429,10 +429,10 @@ var In = { exports: {} };
429
429
  }, i.tz = function(K, T, R) {
430
430
  var B = R && T, F = R || T || s, H = d(+i(), F);
431
431
  if (typeof K != "string") return i(K).tz(F);
432
- var S = function(Y, L, re) {
433
- var f = Y - 60 * L * 1e3, w = d(f, re);
434
- if (L === w) return [f, L];
435
- var D = d(f -= 60 * (w - L) * 1e3, re);
432
+ var S = function(Y, k, re) {
433
+ var f = Y - 60 * k * 1e3, w = d(f, re);
434
+ if (k === w) return [f, k];
435
+ var D = d(f -= 60 * (w - k) * 1e3, re);
436
436
  return w === D ? [f, w] : [Y - 60 * Math.min(w, D) * 1e3, Math.max(w, D)];
437
437
  }(i.utc(K, B).valueOf(), H, F), z = S[0], I = S[1], X = i(z).utcOffset(I);
438
438
  return X.$x.$timezone = F, X;
@@ -512,7 +512,7 @@ var jn = { exports: {} };
512
512
  return P || h.slice(1);
513
513
  });
514
514
  })).match(r), I = z.length, X = 0; X < I; X += 1) {
515
- var Y = z[X], L = R[Y], re = L && L[0], f = L && L[1];
515
+ var Y = z[X], k = R[Y], re = k && k[0], f = k && k[1];
516
516
  z[X] = f ? { regex: re, parser: f } : Y.replace(/^\[|\]$/g, "");
517
517
  }
518
518
  return function(w) {
@@ -537,22 +537,22 @@ var jn = { exports: {} };
537
537
  S.p.customParseFormat = !0, F && F.parseTwoDigitYear && (d = F.parseTwoDigitYear);
538
538
  var z = H.prototype, I = z.parse;
539
539
  z.parse = function(X) {
540
- var Y = X.date, L = X.utc, re = X.args;
541
- this.$u = L;
540
+ var Y = X.date, k = X.utc, re = X.args;
541
+ this.$u = k;
542
542
  var f = re[1];
543
543
  if (typeof f == "string") {
544
544
  var w = re[2] === !0, D = re[3] === !0, M = w || D, V = re[2];
545
545
  D && (V = re[2]), l = this.$locale(), !w && V && (l = S.Ls[V]), this.$d = function(O, E, v, m) {
546
546
  try {
547
547
  if (["x", "X"].indexOf(E) > -1) return new Date((E === "X" ? 1e3 : 1) * O);
548
- var A = B(E)(O), g = A.year, p = A.month, U = A.day, j = A.hours, k = A.minutes, Z = A.seconds, te = A.milliseconds, G = A.zone, _ = A.week, me = /* @__PURE__ */ new Date(), Fe = U || (g || p ? 1 : me.getDate()), ye = g || me.getFullYear(), De = 0;
548
+ var A = B(E)(O), g = A.year, p = A.month, U = A.day, j = A.hours, L = A.minutes, Z = A.seconds, te = A.milliseconds, G = A.zone, _ = A.week, me = /* @__PURE__ */ new Date(), Fe = U || (g || p ? 1 : me.getDate()), ye = g || me.getFullYear(), De = 0;
549
549
  g && !p || (De = p > 0 ? p - 1 : me.getMonth());
550
- var Be, Re = j || 0, Ee = k || 0, tt = Z || 0, ot = te || 0;
550
+ var Be, Re = j || 0, Ee = L || 0, tt = Z || 0, ot = te || 0;
551
551
  return G ? new Date(Date.UTC(ye, De, Fe, Re, Ee, tt, ot + 60 * G.offset * 1e3)) : v ? new Date(Date.UTC(ye, De, Fe, Re, Ee, tt, ot)) : (Be = new Date(ye, De, Fe, Re, Ee, tt, ot), _ && (Be = m(Be).week(_).toDate()), Be);
552
552
  } catch {
553
553
  return /* @__PURE__ */ new Date("");
554
554
  }
555
- }(Y, f, L, S), this.init(), V && V !== !0 && (this.$L = this.locale(V).$L), M && Y != this.format(f) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
555
+ }(Y, f, k, S), this.init(), V && V !== !0 && (this.$L = this.locale(V).$L), M && Y != this.format(f) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
556
556
  } else if (f instanceof Array) for (var x = f.length, P = 1; P <= x; P += 1) {
557
557
  re[1] = f[P - 1];
558
558
  var h = S.apply(this, re);
@@ -896,6 +896,7 @@ const Ei = {
896
896
  assignWidgetsToUseThisFilter: "Assign at least one widget to use this filter.",
897
897
  loadingData: "Loading data...",
898
898
  errorLoading: "Error loading data",
899
+ errorLoadingHint: "Please refresh the page or try again later.",
899
900
  reportFetchError: "Report Fetch Error",
900
901
  templateFetchError: "Template Fetch Error",
901
902
  internalServerError: "Internal Server Error",
@@ -2798,6 +2799,7 @@ const Ei = {
2798
2799
  assignWidgetsToUseThisFilter: "请至少分配一个小组件后再使用此筛选器。",
2799
2800
  loadingData: "加载数据...",
2800
2801
  errorLoading: "加载数据失败",
2802
+ errorLoadingHint: "请刷新页面或稍后重试。",
2801
2803
  reportFetchError: "报表获取错误",
2802
2804
  templateFetchError: "模板获取错误",
2803
2805
  internalServerError: "服务器内部错误",
@@ -4717,6 +4719,7 @@ const Ei = {
4717
4719
  assignWidgetsToUseThisFilter: "กำหนดอย่างน้อยหนึ่งวิดเจ็ตเพื่อใช้งานตัวกรองนี้",
4718
4720
  loadingData: "กำลังโหลดข้อมูล...",
4719
4721
  errorLoading: "เกิดข้อผิดพลาดในการโหลดข้อมูล",
4722
+ errorLoadingHint: "กรุณารีเฟรชหน้าเว็บหรือลองใหม่อีกครั้งในภายหลัง",
4720
4723
  reportFetchError: "เกิดข้อผิดพลาดในการดึงรายงาน",
4721
4724
  templateFetchError: "เกิดข้อผิดพลาดในการดึงเทมเพลต",
4722
4725
  internalServerError: "เซิร์ฟเวอร์ภายในขัดข้อง",
@@ -6634,6 +6637,7 @@ const Ei = {
6634
6637
  assignWidgetsToUseThisFilter: "請至少指派一個小工具後再使用此篩選器。",
6635
6638
  loadingData: "加載數據...",
6636
6639
  errorLoading: "加載數據失敗",
6640
+ errorLoadingHint: "請重新整理頁面或稍後再試。",
6637
6641
  reportFetchError: "報表取得錯誤",
6638
6642
  templateFetchError: "模板取得錯誤",
6639
6643
  internalServerError: "伺服器內部錯誤",
@@ -8302,16 +8306,16 @@ const Ei = {
8302
8306
  reportHour: {
8303
8307
  fullDay: "全天"
8304
8308
  }
8305
- }, ki = {
8309
+ }, Li = {
8306
8310
  reportV5: qi
8307
8311
  }, Rd = {
8308
8312
  "en-US": { ...Ti, ...Si },
8309
8313
  "zh-CN": { ...zi, ...Qi },
8310
8314
  "th-TH": { ...ji, ...Ni },
8311
- "zh-Hant": { ...Xi, ...ki }
8315
+ "zh-Hant": { ...Xi, ...Li }
8312
8316
  };
8313
8317
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
8314
- const Li = () => {
8318
+ const ki = () => {
8315
8319
  };
8316
8320
  function Yi(e, t, o) {
8317
8321
  let r;
@@ -8322,7 +8326,7 @@ function Yi(e, t, o) {
8322
8326
  lazy: n = !1,
8323
8327
  evaluating: a = void 0,
8324
8328
  shallow: i = !0,
8325
- onError: s = Li
8329
+ onError: s = ki
8326
8330
  } = r, l = ue(!n), d = i ? ii(t) : ue(t);
8327
8331
  let u = 0;
8328
8332
  return si(async (C) => {
@@ -8408,7 +8412,7 @@ var Sn = { exports: {} };
8408
8412
  n.r(r), n.d(r, "default", function() {
8409
8413
  return Y;
8410
8414
  }), n.d(r, "compare", function() {
8411
- return L;
8415
+ return k;
8412
8416
  }), n.d(r, "comparable", function() {
8413
8417
  return re;
8414
8418
  });
@@ -8629,13 +8633,13 @@ var Sn = { exports: {} };
8629
8633
  }
8630
8634
  function H(f, w) {
8631
8635
  var D = f.keyPath, M = f.child, V = f.query, x = [];
8632
- if (function A(g, p, U, j, k) {
8636
+ if (function A(g, p, U, j, L) {
8633
8637
  if (U === p.length || g == null)
8634
- return void k.push([g, p[U - 1], j]);
8638
+ return void L.push([g, p[U - 1], j]);
8635
8639
  var Z = u(p, U);
8636
8640
  if (s(g) && isNaN(Number(Z)))
8637
- for (var te = 0, G = g.length; te < G; te++) A(u(g, te), p, U, g, k);
8638
- else A(u(g, Z), p, U + 1, g, k);
8641
+ for (var te = 0, G = g.length; te < G; te++) A(u(g, te), p, U, g, L);
8642
+ else A(u(g, Z), p, U + 1, g, L);
8639
8643
  }(w, D, 0, w, x), x.length === 1) {
8640
8644
  var P = x[0];
8641
8645
  return T(M, P[0], P[1], P[2]);
@@ -8707,12 +8711,12 @@ var Sn = { exports: {} };
8707
8711
  }), D;
8708
8712
  }
8709
8713
  function Y(f, w) {
8710
- var D = X(f, w = Object.assign({ compare: L, comparable: re }, w));
8714
+ var D = X(f, w = Object.assign({ compare: k, comparable: re }, w));
8711
8715
  return function(M, V, x) {
8712
8716
  return T(D, M, V, x);
8713
8717
  };
8714
8718
  }
8715
- function L(f, w) {
8719
+ function k(f, w) {
8716
8720
  if (I(f, w)) return 0;
8717
8721
  if (a(f) === a(w)) {
8718
8722
  if (f > w) return 1;
@@ -9423,10 +9427,10 @@ class ne {
9423
9427
  return It.create(this);
9424
9428
  }
9425
9429
  or(t) {
9426
- return kt.create([this, t]);
9430
+ return Lt.create([this, t]);
9427
9431
  }
9428
9432
  and(t) {
9429
- return Lt.create(this, t);
9433
+ return kt.create(this, t);
9430
9434
  }
9431
9435
  transform(t) {
9432
9436
  return new et({
@@ -10255,7 +10259,7 @@ ge.lazycreate = (e, t) => new ge({
10255
10259
  typeName: ee.ZodObject,
10256
10260
  ...ae(t)
10257
10261
  });
10258
- class kt extends ne {
10262
+ class Lt extends ne {
10259
10263
  _parse(t) {
10260
10264
  const { ctx: o } = this._processInputParams(t), r = this._def.options;
10261
10265
  function n(a) {
@@ -10323,7 +10327,7 @@ class kt extends ne {
10323
10327
  return this._def.options;
10324
10328
  }
10325
10329
  }
10326
- kt.create = (e, t) => new kt({
10330
+ Lt.create = (e, t) => new Lt({
10327
10331
  options: e,
10328
10332
  typeName: ee.ZodUnion,
10329
10333
  ...ae(t)
@@ -10415,7 +10419,7 @@ function wr(e, t) {
10415
10419
  return { valid: !0, data: n };
10416
10420
  } else return o === N.date && r === N.date && +e == +t ? { valid: !0, data: e } : { valid: !1 };
10417
10421
  }
10418
- class Lt extends ne {
10422
+ class kt extends ne {
10419
10423
  _parse(t) {
10420
10424
  const { status: o, ctx: r } = this._processInputParams(t), n = (a, i) => {
10421
10425
  if (yr(a) || yr(i))
@@ -10447,7 +10451,7 @@ class Lt extends ne {
10447
10451
  }));
10448
10452
  }
10449
10453
  }
10450
- Lt.create = (e, t, o) => new Lt({
10454
+ kt.create = (e, t, o) => new kt({
10451
10455
  left: e,
10452
10456
  right: t,
10453
10457
  typeName: ee.ZodIntersection,
@@ -11020,7 +11024,7 @@ var ee;
11020
11024
  })(ee || (ee = {}));
11021
11025
  const Bs = (e, t = {
11022
11026
  message: `Input not instance of ${e.name}`
11023
- }) => qn((o) => o instanceof e, t, !0), kn = dt.create, Ln = wt.create, Ds = Uo.create, Rs = yo.create, Yn = vo.create, Us = Ht.create, Ps = ho.create, Ks = wo.create, xs = zt.create, Es = lt.create, Ts = ut.create, Hs = Fo.create, zs = _e.create, Is = ge.create, js = ge.strictCreate, Os = kt.create, Xs = xo.create, Ms = Lt.create, Ss = $e.create, Vs = Yt.create, Qs = Co.create, Gs = Ft.create, Ns = bt.create, qs = Bo.create, ks = Do.create, Ls = Eo.create, Ys = Ro.create, Zs = It.create, on = et.create, Ws = We.create, Js = Ct.create, _s = et.createWithPreprocess, $s = () => kn().optional(), ec = () => Ln().optional(), tc = () => Yn().optional();
11027
+ }) => qn((o) => o instanceof e, t, !0), Ln = dt.create, kn = wt.create, Ds = Uo.create, Rs = yo.create, Yn = vo.create, Us = Ht.create, Ps = ho.create, Ks = wo.create, xs = zt.create, Es = lt.create, Ts = ut.create, Hs = Fo.create, zs = _e.create, Is = ge.create, js = ge.strictCreate, Os = Lt.create, Xs = xo.create, Ms = kt.create, Ss = $e.create, Vs = Yt.create, Qs = Co.create, Gs = Ft.create, Ns = bt.create, qs = Bo.create, Ls = Do.create, ks = Eo.create, Ys = Ro.create, Zs = It.create, on = et.create, Ws = We.create, Js = Ct.create, _s = et.createWithPreprocess, $s = () => Ln().optional(), ec = () => kn().optional(), tc = () => Yn().optional();
11024
11028
  var St = /* @__PURE__ */ Object.freeze({
11025
11029
  __proto__: null,
11026
11030
  getParsedType: mt,
@@ -11054,9 +11058,9 @@ var St = /* @__PURE__ */ Object.freeze({
11054
11058
  return bo;
11055
11059
  },
11056
11060
  ZodObject: ge,
11057
- ZodUnion: kt,
11061
+ ZodUnion: Lt,
11058
11062
  ZodDiscriminatedUnion: xo,
11059
- ZodIntersection: Lt,
11063
+ ZodIntersection: kt,
11060
11064
  ZodTuple: $e,
11061
11065
  ZodRecord: Yt,
11062
11066
  ZodMap: Co,
@@ -11087,19 +11091,19 @@ var St = /* @__PURE__ */ Object.freeze({
11087
11091
  date: Us,
11088
11092
  discriminatedUnion: Xs,
11089
11093
  effect: on,
11090
- enum: Ls,
11094
+ enum: ks,
11091
11095
  function: Ns,
11092
11096
  instanceof: Bs,
11093
11097
  intersection: Ms,
11094
11098
  lazy: qs,
11095
- literal: ks,
11099
+ literal: Ls,
11096
11100
  map: Qs,
11097
11101
  nan: Ds,
11098
11102
  nativeEnum: Ys,
11099
11103
  never: Ts,
11100
11104
  null: Ks,
11101
11105
  nullable: Js,
11102
- number: Ln,
11106
+ number: kn,
11103
11107
  object: Is,
11104
11108
  oboolean: tc,
11105
11109
  onumber: ec,
@@ -11110,7 +11114,7 @@ var St = /* @__PURE__ */ Object.freeze({
11110
11114
  record: Vs,
11111
11115
  set: Gs,
11112
11116
  strictObject: js,
11113
- string: kn,
11117
+ string: Ln,
11114
11118
  transformer: on,
11115
11119
  tuple: Ss,
11116
11120
  undefined: Ps,
@@ -11646,7 +11650,7 @@ const zc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
11646
11650
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
11647
11651
  }, Qc = {
11648
11652
  noPermission: Vc
11649
- }, Gc = { class: "w-full h-full flex justify-center items-center" }, Nc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, qc = { class: "w-[300px] h-[300px]" }, kc = ["src"], Lc = { class: "text-2xl" }, Yc = { class: "text-xl" }, Zc = /* @__PURE__ */ Kn({
11653
+ }, Gc = { class: "w-full h-full flex justify-center items-center" }, Nc = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, qc = { class: "w-[300px] h-[300px]" }, Lc = ["src"], kc = { class: "text-2xl" }, Yc = { class: "text-xl" }, Zc = /* @__PURE__ */ Kn({
11650
11654
  __name: "NoPermission",
11651
11655
  setup(e) {
11652
11656
  const { t } = gi({
@@ -11663,10 +11667,10 @@ const zc = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
11663
11667
  Pt("img", {
11664
11668
  src: yt(zc),
11665
11669
  class: "w-full h-full"
11666
- }, null, 8, kc)
11670
+ }, null, 8, Lc)
11667
11671
  ]),
11668
11672
  Pt("div", null, [
11669
- Pt("h1", Lc, Wr(yt(t)("noPermission.title")), 1),
11673
+ Pt("h1", kc, Wr(yt(t)("noPermission.title")), 1),
11670
11674
  Pt("h2", Yc, Wr(yt(t)("noPermission.subtitle")), 1)
11671
11675
  ])
11672
11676
  ])
@@ -12742,11 +12746,11 @@ const MA = Ho("string"), Me = Ho("function"), Ka = Ho("number"), zo = (e) => e !
12742
12746
  return !1;
12743
12747
  const t = Mr(e);
12744
12748
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
12745
- }, VA = Ne("Date"), QA = Ne("File"), GA = Ne("Blob"), NA = Ne("FileList"), qA = (e) => zo(e) && Me(e.pipe), kA = (e) => {
12749
+ }, VA = Ne("Date"), QA = Ne("File"), GA = Ne("Blob"), NA = Ne("FileList"), qA = (e) => zo(e) && Me(e.pipe), LA = (e) => {
12746
12750
  let t;
12747
12751
  return e && (typeof FormData == "function" && e instanceof FormData || Me(e.append) && ((t = To(e)) === "formdata" || // detect form-data instance
12748
12752
  t === "object" && Me(e.toString) && e.toString() === "[object FormData]"));
12749
- }, LA = Ne("URLSearchParams"), [YA, ZA, WA, JA] = ["ReadableStream", "Request", "Response", "Headers"].map(Ne), _A = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
12753
+ }, kA = Ne("URLSearchParams"), [YA, ZA, WA, JA] = ["ReadableStream", "Request", "Response", "Headers"].map(Ne), _A = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
12750
12754
  function _t(e, t, { allOwnKeys: o = !1 } = {}) {
12751
12755
  if (e === null || typeof e > "u")
12752
12756
  return;
@@ -12898,7 +12902,7 @@ const ym = (e) => {
12898
12902
  isArray: jt,
12899
12903
  isArrayBuffer: Pa,
12900
12904
  isBuffer: OA,
12901
- isFormData: kA,
12905
+ isFormData: LA,
12902
12906
  isArrayBufferView: XA,
12903
12907
  isString: MA,
12904
12908
  isNumber: Ka,
@@ -12916,7 +12920,7 @@ const ym = (e) => {
12916
12920
  isRegExp: mm,
12917
12921
  isFunction: Me,
12918
12922
  isStream: qA,
12919
- isURLSearchParams: LA,
12923
+ isURLSearchParams: kA,
12920
12924
  isTypedArray: am,
12921
12925
  isFileList: NA,
12922
12926
  forEach: _t,
@@ -13598,10 +13602,10 @@ const Po = (e, t, o = 3) => {
13598
13602
  total: e,
13599
13603
  loaded: r
13600
13604
  }), t[1]];
13601
- }, yn = (e) => (...t) => b.asap(() => e(...t)), km = Ue.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (o) => (o = new URL(o, Ue.origin), e.protocol === o.protocol && e.host === o.host && (t || e.port === o.port)))(
13605
+ }, yn = (e) => (...t) => b.asap(() => e(...t)), Lm = Ue.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (o) => (o = new URL(o, Ue.origin), e.protocol === o.protocol && e.host === o.host && (t || e.port === o.port)))(
13602
13606
  new URL(Ue.origin),
13603
13607
  Ue.navigator && /(msie|trident)/i.test(Ue.navigator.userAgent)
13604
- ) : () => !0, Lm = Ue.hasStandardBrowserEnv ? (
13608
+ ) : () => !0, km = Ue.hasStandardBrowserEnv ? (
13605
13609
  // Standard browser envs support document.cookie
13606
13610
  {
13607
13611
  write(e, t, o, r, n, a) {
@@ -13718,8 +13722,8 @@ const qa = (e) => {
13718
13722
  i.setContentType([d || "multipart/form-data", ...u].join("; "));
13719
13723
  }
13720
13724
  }
13721
- if (Ue.hasStandardBrowserEnv && (r && b.isFunction(r) && (r = r(t)), r || r !== !1 && km(t.url))) {
13722
- const d = n && a && Lm.read(a);
13725
+ if (Ue.hasStandardBrowserEnv && (r && b.isFunction(r) && (r = r(t)), r || r !== !1 && Lm(t.url))) {
13726
+ const d = n && a && km.read(a);
13723
13727
  d && i.set(n, d);
13724
13728
  }
13725
13729
  return t;
@@ -13747,10 +13751,10 @@ const qa = (e) => {
13747
13751
  config: e,
13748
13752
  request: F
13749
13753
  };
13750
- Ga(function(L) {
13751
- o(L), B();
13752
- }, function(L) {
13753
- r(L), B();
13754
+ Ga(function(k) {
13755
+ o(k), B();
13756
+ }, function(k) {
13757
+ r(k), B();
13754
13758
  }, X), F = null;
13755
13759
  }
13756
13760
  "onloadend" in F ? F.onloadend = H : F.onreadystatechange = function() {
@@ -13860,13 +13864,13 @@ const qa = (e) => {
13860
13864
  }, {
13861
13865
  highWaterMark: 2
13862
13866
  });
13863
- }, jo = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ka = jo && typeof ReadableStream == "function", ol = jo && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), La = (e, ...t) => {
13867
+ }, jo = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", La = jo && typeof ReadableStream == "function", ol = jo && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ka = (e, ...t) => {
13864
13868
  try {
13865
13869
  return !!e(...t);
13866
13870
  } catch {
13867
13871
  return !1;
13868
13872
  }
13869
- }, rl = ka && La(() => {
13873
+ }, rl = La && ka(() => {
13870
13874
  let e = !1;
13871
13875
  const t = new Request(Ue.origin, {
13872
13876
  body: new ReadableStream(),
@@ -13876,7 +13880,7 @@ const qa = (e) => {
13876
13880
  }
13877
13881
  }).headers.has("Content-Type");
13878
13882
  return e && !t;
13879
- }), wn = 64 * 1024, Pr = ka && La(() => b.isReadableStream(new Response("").body)), Ko = {
13883
+ }), wn = 64 * 1024, Pr = La && ka(() => b.isReadableStream(new Response("").body)), Ko = {
13880
13884
  stream: Pr && ((e) => e.body)
13881
13885
  };
13882
13886
  jo && ((e) => {
@@ -13932,11 +13936,11 @@ const nl = async (e) => {
13932
13936
  duplex: "half"
13933
13937
  }), Y;
13934
13938
  if (b.isFormData(r) && (Y = X.headers.get("content-type")) && u.setContentType(Y), X.body) {
13935
- const [L, re] = gn(
13939
+ const [k, re] = gn(
13936
13940
  F,
13937
13941
  Po(yn(l))
13938
13942
  );
13939
- r = hn(X.body, wn, L, re);
13943
+ r = hn(X.body, wn, k, re);
13940
13944
  }
13941
13945
  }
13942
13946
  b.isString(C) || (C = C ? "include" : "omit");
@@ -13957,12 +13961,12 @@ const nl = async (e) => {
13957
13961
  ["status", "statusText", "headers"].forEach((f) => {
13958
13962
  X[f] = S[f];
13959
13963
  });
13960
- const Y = b.toFiniteNumber(S.headers.get("content-length")), [L, re] = s && gn(
13964
+ const Y = b.toFiniteNumber(S.headers.get("content-length")), [k, re] = s && gn(
13961
13965
  Y,
13962
13966
  Po(yn(s), !0)
13963
13967
  ) || [];
13964
13968
  S = new Response(
13965
- hn(S.body, wn, L, () => {
13969
+ hn(S.body, wn, k, () => {
13966
13970
  re && re(), B && B();
13967
13971
  }),
13968
13972
  X
@@ -14103,7 +14107,7 @@ function cl(e, t, o) {
14103
14107
  const lo = {
14104
14108
  assertOptions: cl,
14105
14109
  validators: Oo
14106
- }, Le = lo.validators;
14110
+ }, ke = lo.validators;
14107
14111
  let ht = class {
14108
14112
  constructor(t) {
14109
14113
  this.defaults = t, this.interceptors = {
@@ -14140,17 +14144,17 @@ let ht = class {
14140
14144
  typeof t == "string" ? (o = o || {}, o.url = t) : o = t || {}, o = Bt(this.defaults, o);
14141
14145
  const { transitional: r, paramsSerializer: n, headers: a } = o;
14142
14146
  r !== void 0 && lo.assertOptions(r, {
14143
- silentJSONParsing: Le.transitional(Le.boolean),
14144
- forcedJSONParsing: Le.transitional(Le.boolean),
14145
- clarifyTimeoutError: Le.transitional(Le.boolean)
14147
+ silentJSONParsing: ke.transitional(ke.boolean),
14148
+ forcedJSONParsing: ke.transitional(ke.boolean),
14149
+ clarifyTimeoutError: ke.transitional(ke.boolean)
14146
14150
  }, !1), n != null && (b.isFunction(n) ? o.paramsSerializer = {
14147
14151
  serialize: n
14148
14152
  } : lo.assertOptions(n, {
14149
- encode: Le.function,
14150
- serialize: Le.function
14153
+ encode: ke.function,
14154
+ serialize: ke.function
14151
14155
  }, !0)), lo.assertOptions(o, {
14152
- baseUrl: Le.spelling("baseURL"),
14153
- withXsrfToken: Le.spelling("withXSRFToken")
14156
+ baseUrl: ke.spelling("baseURL"),
14157
+ withXsrfToken: ke.spelling("withXSRFToken")
14154
14158
  }, !0), o.method = (o.method || this.defaults.method || "get").toLowerCase();
14155
14159
  let i = a && b.merge(
14156
14160
  a.common,
@@ -14477,7 +14481,7 @@ class Xo {
14477
14481
  this.baseUrl = t;
14478
14482
  }
14479
14483
  }
14480
- const we = new Xo("https://query-engine{.country}.feedmeapi.com"), eo = new Xo("https://query-engine{.country}.feedmeapi.com/report-query"), qd = new Xo("https://query-engine{.country}.feedmeapi.com/report-file"), kd = new Xo("https://portal-v2{.country}.feedmeapi.com"), fl = (e) => ({
14484
+ const we = new Xo("https://query-engine{.country}.feedmeapi.com"), eo = new Xo("https://query-engine{.country}.feedmeapi.com/report-query"), qd = new Xo("https://query-engine{.country}.feedmeapi.com/report-file"), Ld = new Xo("https://portal-v2{.country}.feedmeapi.com"), fl = (e) => ({
14481
14485
  id: e._id,
14482
14486
  name: e.profile.name,
14483
14487
  code: e.profile.code,
@@ -14548,7 +14552,7 @@ function Dl() {
14548
14552
  function _a(e) {
14549
14553
  return q().tz(e).format("Z").replace(/:00$/, "");
14550
14554
  }
14551
- function Ld(e) {
14555
+ function kd(e) {
14552
14556
  var o;
14553
14557
  return `${((o = e.split("/").pop()) == null ? void 0 : o.replace(/_/g, " ")) ?? e} (UTC${_a(e)})`;
14554
14558
  }
@@ -14726,7 +14730,7 @@ const to = Jt(Rl, () => {
14726
14730
  }), B = ue({ start: { hour: 0, minute: 0 }, end: { hour: 23, minute: 59 } }), F = ue(
14727
14731
  s.value.timeOptions.findIndex((h) => h.isDefault) + 1
14728
14732
  ), H = ue([]), S = ue([]), z = ue(null), I = ue(null), X = ue(null), Y = ue(0);
14729
- function L(h) {
14733
+ function k(h) {
14730
14734
  I.value = h, X.value = null;
14731
14735
  }
14732
14736
  function re(h) {
@@ -14785,7 +14789,7 @@ const to = Jt(Rl, () => {
14785
14789
  businessLoadingId: I,
14786
14790
  businessLoadedId: X,
14787
14791
  businessDataVersion: Y,
14788
- beginBusinessLoad: L,
14792
+ beginBusinessLoad: k,
14789
14793
  completeBusinessLoad: re
14790
14794
  };
14791
14795
  });
@@ -15030,7 +15034,7 @@ var Er = { exports: {} };
15030
15034
  U(G);
15031
15035
  }
15032
15036
  }
15033
- function k(te) {
15037
+ function L(te) {
15034
15038
  try {
15035
15039
  Z(g.throw(te));
15036
15040
  } catch (G) {
@@ -15041,7 +15045,7 @@ var Er = { exports: {} };
15041
15045
  var G;
15042
15046
  te.done ? p(te.value) : (G = te.value, G instanceof A ? G : new A(function(_) {
15043
15047
  _(G);
15044
- })).then(j, k);
15048
+ })).then(j, L);
15045
15049
  }
15046
15050
  Z((g = g.apply(v, [])).next());
15047
15051
  });
@@ -15051,10 +15055,10 @@ var Er = { exports: {} };
15051
15055
  if (1 & p[0]) throw p[1];
15052
15056
  return p[1];
15053
15057
  }, trys: [], ops: [] };
15054
- return U = { next: k(0), throw: k(1), return: k(2) }, typeof Symbol == "function" && (U[Symbol.iterator] = function() {
15058
+ return U = { next: L(0), throw: L(1), return: L(2) }, typeof Symbol == "function" && (U[Symbol.iterator] = function() {
15055
15059
  return this;
15056
15060
  }), U;
15057
- function k(Z) {
15061
+ function L(Z) {
15058
15062
  return function(te) {
15059
15063
  return function(G) {
15060
15064
  if (A) throw new TypeError("Generator is already executing.");
@@ -15161,13 +15165,13 @@ var Er = { exports: {} };
15161
15165
  (function(v) {
15162
15166
  v.NONE = "NONE", v.DEFAULT_FLAGS = "DEFAULT_FLAGS", v.CACHE = "CACHE", v.SERVER = "SERVER";
15163
15167
  })(u || (u = {}));
15164
- var F, H = null, S = "FLAGSMITH_EVENT", z = S, I = "https://edge.api.flagsmith.com/api/v1/", X = "flagsmith_value_", Y = "flagsmith_enabled_", L = "flagsmith_trait_", re = function() {
15168
+ var F, H = null, S = "FLAGSMITH_EVENT", z = S, I = "https://edge.api.flagsmith.com/api/v1/", X = "flagsmith_value_", Y = "flagsmith_enabled_", k = "flagsmith_trait_", re = function() {
15165
15169
  function v(m) {
15166
15170
  var A = this;
15167
15171
  this._trigger = null, this._triggerLoadingState = null, this.timestamp = null, this.isLoading = !1, this.eventSource = null, this.getFlags = function() {
15168
15172
  var g = A, p = g.api, U = g.evaluationContext;
15169
15173
  A.log("Get Flags"), A.isLoading = !0, A.loadingState.isFetching || A.setLoadingState(n(n({}, A.loadingState), { isFetching: !0 }));
15170
- var j = "".concat(A.getContext().identity), k = function(Z) {
15174
+ var j = "".concat(A.getContext().identity), L = function(Z) {
15171
15175
  var te, G, _, me;
15172
15176
  if (Z && j === "".concat(A.getContext().identity)) {
15173
15177
  var Fe = Z.flags, ye = Z.traits, De = Z.identifier;
@@ -15183,7 +15187,7 @@ var Er = { exports: {} };
15183
15187
  if (A.datadogRum.trackTraits) {
15184
15188
  var ot = {};
15185
15189
  Object.keys(((G = A.evaluationContext.identity) === null || G === void 0 ? void 0 : G.traits) || {}).map(function(le) {
15186
- ot[L + le] = A.getTrait(le);
15190
+ ot[k + le] = A.getTrait(le);
15187
15191
  });
15188
15192
  var ft = n(n(n({}, A.datadogRum.client.getUser()), { id: A.datadogRum.client.getUser().id || ((_ = A.evaluationContext.identity) === null || _ === void 0 ? void 0 : _.identifier) }), ot);
15189
15193
  A.log("Setting Datadog user", ft), A.datadogRum.client.setUser(ft);
@@ -15196,7 +15200,7 @@ var Er = { exports: {} };
15196
15200
  Object.keys(A.flags).map(function(le) {
15197
15201
  K(Te, X + le, A.getValue(le, { skipAnalytics: !0 })), K(Te, Y + le, A.hasFeature(le, { skipAnalytics: !0 }));
15198
15202
  }), Object.keys(((me = A.evaluationContext.identity) === null || me === void 0 ? void 0 : me.traits) || {}).map(function(le) {
15199
- K(Te, L + le, A.getTrait(le));
15203
+ K(Te, k + le, A.getTrait(le));
15200
15204
  }), A.log("Sending javaLongOrObject traits to dynatrace", Te.javaLongOrObject), A.log("Sending date traits to dynatrace", Te.date), A.log("Sending shortString traits to dynatrace", Te.shortString), A.log("Sending javaDouble to dynatrace", Te.javaDouble), A.dtrum.sendSessionProperties(Te.javaLongOrObject, Te.date, Te.shortString, Te.javaDouble);
15201
15205
  } catch (le) {
15202
15206
  console.error(le);
@@ -15209,12 +15213,12 @@ var Er = { exports: {} };
15209
15213
  }).filter(function(Z) {
15210
15214
  return Z.trait_value !== void 0 || (A.log("Warning - attempted to set an undefined trait value for key", Z.trait_key), !1);
15211
15215
  }) })) : A.getJSON(p + "identities/?identifier=" + encodeURIComponent(U.identity.identifier) + (U.identity.transient ? "&transient=true" : ""))]).then(function(Z) {
15212
- return A.evaluationContext.identity = n(n({}, A.evaluationContext.identity), { traits: {} }), k(Z == null ? void 0 : Z[0]);
15216
+ return A.evaluationContext.identity = n(n({}, A.evaluationContext.identity), { traits: {} }), L(Z == null ? void 0 : Z[0]);
15213
15217
  }).catch(function(Z) {
15214
15218
  var te = Z.message, G = new Error(te);
15215
15219
  return Promise.reject(G);
15216
15220
  }) : A.getJSON(p + "flags/").then(function(Z) {
15217
- return k({ flags: Z, traits: void 0 });
15221
+ return L({ flags: Z, traits: void 0 });
15218
15222
  });
15219
15223
  }, this.analyticsFlags = function() {
15220
15224
  var g = A.api;
@@ -15227,14 +15231,14 @@ var Er = { exports: {} };
15227
15231
  A.log("Exception fetching evaluationEvent", p);
15228
15232
  }) : void 0;
15229
15233
  }, 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(g, p, U) {
15230
- var j = A.flags && A.flags[g.toLowerCase().replace(/ /g, "_")], k = null;
15231
- if (j && (k = j.value), p != null && p.skipAnalytics || U || A.evaluateFlag(g, "VALUE"), k === null && (p == null ? void 0 : p.fallback) !== void 0) return p.fallback;
15234
+ var j = A.flags && A.flags[g.toLowerCase().replace(/ /g, "_")], L = null;
15235
+ if (j && (L = j.value), p != null && p.skipAnalytics || U || A.evaluateFlag(g, "VALUE"), L === null && (p == null ? void 0 : p.fallback) !== void 0) return p.fallback;
15232
15236
  if (p != null && p.json) try {
15233
- return k === null ? (A.log("Tried to parse null flag as JSON: " + g), null) : JSON.parse(k);
15237
+ return L === null ? (A.log("Tried to parse null flag as JSON: " + g), null) : JSON.parse(L);
15234
15238
  } catch {
15235
15239
  return p.fallback;
15236
15240
  }
15237
- return k;
15241
+ return L;
15238
15242
  }, this.getTrait = function(g) {
15239
15243
  var p, U;
15240
15244
  return ((p = A.evaluationContext.identity) === null || p === void 0 ? void 0 : p.traits) && ((U = A.evaluationContext.identity.traits[g.toLowerCase().replace(/ /g, "_")]) === null || U === void 0 ? void 0 : U.value);
@@ -15257,20 +15261,20 @@ var Er = { exports: {} };
15257
15261
  }, this.setTraits = function(g) {
15258
15262
  var p;
15259
15263
  if (A.api) return A.setContext(n(n({}, A.evaluationContext), { identity: n(n({}, A.evaluationContext.identity), { traits: n(n({}, (p = A.evaluationContext.identity) === null || p === void 0 ? void 0 : p.traits), Object.fromEntries(Object.entries(g).map(function(U) {
15260
- var j = U[0], k = U[1];
15261
- return [j, T(k) ? k : { value: k }];
15264
+ var j = U[0], L = U[1];
15265
+ return [j, T(L) ? L : { value: L }];
15262
15266
  }))) }) }));
15263
15267
  console.error("Attempted to setTraits a user before calling flagsmith.init. Call flagsmith.init first, if you wish to prevent it sending a request for flags, call init with preventFetch:true.");
15264
15268
  }, this.hasFeature = function(g, p) {
15265
- var U = typeof p == "object", j = A.flags && A.flags[g.toLowerCase().replace(/ /g, "_")], k = !1;
15266
- return !j && U && p.fallback !== void 0 ? k = p == null ? void 0 : p.fallback : j && j.enabled && (k = !0), (U && !p.skipAnalytics || !p) && A.evaluateFlag(g, "ENABLED"), k;
15269
+ var U = typeof p == "object", j = A.flags && A.flags[g.toLowerCase().replace(/ /g, "_")], L = !1;
15270
+ return !j && U && p.fallback !== void 0 ? L = p == null ? void 0 : p.fallback : j && j.enabled && (L = !0), (U && !p.skipAnalytics || !p) && A.evaluateFlag(g, "ENABLED"), L;
15267
15271
  }, this.getStorageKey = function() {
15268
15272
  var g, p;
15269
15273
  return ((g = A.cacheOptions) === null || g === void 0 ? void 0 : g.storageKey) || "FLAGSMITH_DB_" + ((p = A.evaluationContext.environment) === null || p === void 0 ? void 0 : p.apiKey);
15270
15274
  }, this.getJSON = function(g, p, U) {
15271
- var j, k = A;
15272
- k.evaluationContext;
15273
- var Z = k.headers, te = { method: p || "GET", body: U, cache: "no-cache", headers: {} };
15275
+ var j, L = A;
15276
+ L.evaluationContext;
15277
+ var Z = L.headers, te = { method: p || "GET", body: U, cache: "no-cache", headers: {} };
15274
15278
  A.evaluationContext.environment && (te.headers["X-Environment-Key"] = A.evaluationContext.environment.apiKey), p && p !== "GET" && (te.headers["Content-Type"] = "application/json; charset=utf-8"), Z && Object.assign(te.headers, Z), C || console.error("Flagsmith: fetch is undefined, please specify a fetch implementation into flagsmith.init to support SSR.");
15275
15279
  var G = "".concat((j = A.evaluationContext.identity) === null || j === void 0 ? void 0 : j.identifier);
15276
15280
  return C(g, te).then(function(_) {
@@ -15302,27 +15306,27 @@ var Er = { exports: {} };
15302
15306
  }
15303
15307
  A.updateEventStorage();
15304
15308
  }, this._onChange = function(g, p, U) {
15305
- var j, k;
15306
- A.setLoadingState(U), (j = A.onChange) === null || j === void 0 || j.call(A, g, p, A.loadingState), (k = A._trigger) === null || k === void 0 || k.call(A);
15309
+ var j, L;
15310
+ A.setLoadingState(U), (j = A.onChange) === null || j === void 0 || j.call(A, g, p, A.loadingState), (L = A._trigger) === null || L === void 0 || L.call(A);
15307
15311
  }, C = m.fetch ? m.fetch : typeof fetch < "u" ? fetch : globalThis == null ? void 0 : globalThis.fetch, this.canUseStorage = typeof window < "u" || !!m.browserlessStorage, this.log("Constructing flagsmith instance " + m), m.eventSource && (F = m.eventSource), m.AsyncStorage && (H = m.AsyncStorage);
15308
15312
  }
15309
15313
  return v.prototype.init = function(m) {
15310
15314
  var A, g, p;
15311
15315
  return a(this, void 0, void 0, function() {
15312
- var U, j, k, Z, te, G, _, me, Fe, ye, De, Be, Re, Ee, tt, ot, ft, Te, le, Mo, Xt, Gr, Dt, So, Nr, qr, Vo, kr, Qo, Mt, Rt, Lr, He = this;
15316
+ var U, j, L, Z, te, G, _, me, Fe, ye, De, Be, Re, Ee, tt, ot, ft, Te, le, Mo, Xt, Gr, Dt, So, Nr, qr, Vo, Lr, Qo, Mt, Rt, kr, He = this;
15313
15317
  return i(this, function(Qe) {
15314
15318
  switch (Qe.label) {
15315
15319
  case 0:
15316
15320
  U = B(m.evaluationContext || this.evaluationContext), Qe.label = 1;
15317
15321
  case 1:
15318
- if (Qe.trys.push([1, 13, , 14]), j = m.environmentID, k = m.api, Z = k === void 0 ? I : k, te = m.headers, G = m.onChange, _ = m.cacheFlags, me = m.datadogRum, Fe = m.onError, ye = m.defaultFlags, De = m.fetch, Be = m.preventFetch, Re = m.enableLogs, Ee = m.enableDynatrace, tt = m.enableAnalytics, ot = m.realtime, ft = m.eventSourceUrl, Te = ft === void 0 ? "https://realtime.flagsmith.com/" : ft, le = m.AsyncStorage, Mo = m.identity, Xt = m.traits, Gr = m.state, Dt = m.cacheOptions, So = m.angularHttpClient, Nr = m._trigger, qr = m._triggerLoadingState, U.environment = j ? { apiKey: j } : U.environment, !U.environment || !U.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
15322
+ if (Qe.trys.push([1, 13, , 14]), j = m.environmentID, L = m.api, Z = L === void 0 ? I : L, te = m.headers, G = m.onChange, _ = m.cacheFlags, me = m.datadogRum, Fe = m.onError, ye = m.defaultFlags, De = m.fetch, Be = m.preventFetch, Re = m.enableLogs, Ee = m.enableDynatrace, tt = m.enableAnalytics, ot = m.realtime, ft = m.eventSourceUrl, Te = ft === void 0 ? "https://realtime.flagsmith.com/" : ft, le = m.AsyncStorage, Mo = m.identity, Xt = m.traits, Gr = m.state, Dt = m.cacheOptions, So = m.angularHttpClient, Nr = m._trigger, qr = m._triggerLoadingState, U.environment = j ? { apiKey: j } : U.environment, !U.environment || !U.environment.apiKey) throw new Error("Please provide `evaluationContext.environment` with non-empty `apiKey`");
15319
15323
  if (U.identity = Mo || Xt ? { identifier: Mo, traits: Xt ? Object.fromEntries(Object.entries(Xt).map(function(Se) {
15320
15324
  return [Se[0], { value: Se[1] }];
15321
15325
  })) : {} } : U.identity, this.evaluationContext = U, this.api = Z, this.headers = te, this.getFlagInterval = null, this.analyticsInterval = null, this.onChange = G, Vo = "Wrong Flagsmith Configuration: preventFetch is true and no defaulFlags provided", this._trigger = Nr || this._trigger, this._triggerLoadingState = qr || this._triggerLoadingState, this.onError = function(Se) {
15322
15326
  He.setLoadingState(n(n({}, He.loadingState), { isFetching: !1, isLoading: !1, error: Se })), Fe == null || Fe(Se);
15323
15327
  }, this.enableLogs = Re || !1, this.cacheOptions = Dt ? { skipAPI: !!Dt.skipAPI, ttl: Dt.ttl || 0, storageKey: Dt.storageKey, loadStale: !!Dt.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."), De && (C = De), this.enableAnalytics = tt || !1, this.flags = Object.assign({}, ye) || {}, this.datadogRum = me || null, this.initialised = !0, this.ticks = 1e4, this.timer = this.enableLogs ? (/* @__PURE__ */ new Date()).valueOf() : null, this.cacheFlags = H !== void 0 && !!_, z = "FLAGSMITH_EVENT_" + U.environment.apiKey, le && (H = le), ot && typeof window < "u" && this.setupRealtime(Te, U.environment.apiKey), Object.keys(this.flags).length && (this.loadingState = n(n({}, this.loadingState), { isLoading: !1, source: u.DEFAULT_FLAGS })), this.setState(Gr), this.log("Initialising with properties", m, this), Ee && (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), So && (C = /* @__PURE__ */ function(Se) {
15324
- return function(qe, ke) {
15325
- var st = ke.headers, fe = ke.method, Ut = ke.body;
15328
+ return function(qe, Le) {
15329
+ var st = Le.headers, fe = Le.method, Ut = Le.body;
15326
15330
  return new Promise(function(gt) {
15327
15331
  switch (fe) {
15328
15332
  case "GET":
@@ -15350,24 +15354,24 @@ var Er = { exports: {} };
15350
15354
  He.analyticsInterval = setInterval(He.analyticsFlags, He.ticks);
15351
15355
  }), this.enableAnalytics && (this.analyticsInterval && clearInterval(this.analyticsInterval), H && this.canUseStorage && H.getItem(z, function(Se, qe) {
15352
15356
  if (qe && He.evaluationContext.environment) {
15353
- var ke = JSON.parse(qe);
15354
- if (ke[He.evaluationContext.environment.apiKey]) {
15357
+ var Le = JSON.parse(qe);
15358
+ if (Le[He.evaluationContext.environment.apiKey]) {
15355
15359
  var st = He.getState();
15356
- He.log("Retrieved events from cache", qe), He.setState(n(n({}, st), { evaluationEvent: ke[He.evaluationContext.environment.apiKey] }));
15360
+ He.log("Retrieved events from cache", qe), He.setState(n(n({}, st), { evaluationEvent: Le[He.evaluationContext.environment.apiKey] }));
15357
15361
  }
15358
15362
  }
15359
15363
  })), !_) return [3, 9];
15360
15364
  if (!H || !this.canUseStorage) return [3, 8];
15361
- kr = function(Se, qe) {
15365
+ Lr = function(Se, qe) {
15362
15366
  return a(He, void 0, void 0, function() {
15363
- var ke, st, fe, Ut, gt, rt, Go, Yr, No, qo, ko, Lo, Yo, Zo, Wo, Jo, _o, $o, er, tr, or, rr, nr, ar, Zr = this;
15367
+ var Le, st, fe, Ut, gt, rt, Go, Yr, No, qo, Lo, ko, Yo, Zo, Wo, Jo, _o, $o, er, tr, or, rr, nr, ar, Zr = this;
15364
15368
  return i(this, function(ct) {
15365
15369
  switch (ct.label) {
15366
15370
  case 0:
15367
15371
  if (!qe) return [3, 7];
15368
- ke = null, st = null, ct.label = 1;
15372
+ Le = null, st = null, ct.label = 1;
15369
15373
  case 1:
15370
- return ct.trys.push([1, 5, , 6]), fe = JSON.parse(qe), Ut = !1, gt = !1, fe && fe.api === this.api && ((qo = (No = fe.evaluationContext) === null || No === void 0 ? void 0 : No.environment) === null || qo === void 0 ? void 0 : qo.apiKey) === ((ko = this.evaluationContext.environment) === null || ko === void 0 ? void 0 : ko.apiKey) && (rt = !0, this.evaluationContext.identity && ((Yo = (Lo = fe.evaluationContext) === null || Lo === void 0 ? void 0 : Lo.identity) === null || Yo === void 0 ? void 0 : Yo.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((Wo = (Zo = fe.evaluationContext) === null || Zo === void 0 ? void 0 : Zo.identity) === null || Wo === void 0 ? void 0 : Wo.identifier) + " to " + this.evaluationContext.identity.identifier), rt = !1), this.cacheOptions.ttl && (!fe.ts || (/* @__PURE__ */ new Date()).valueOf() - fe.ts > this.cacheOptions.ttl) && (fe.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + fe.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - fe.ts) + "ms"), rt = !1) : fe.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + fe.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - fe.ts) + "ms"), gt = !0, rt = !0)), rt && (Ut = !0, st = d((Jo = this.evaluationContext.identity) === null || Jo === void 0 ? void 0 : Jo.traits, ($o = (_o = fe.evaluationContext) === null || _o === void 0 ? void 0 : _o.identity) === null || $o === void 0 ? void 0 : $o.traits), ke = d(this.flags, fe.flags), this.setState(n(n({}, fe), { evaluationContext: B(n(n({}, fe.evaluationContext), { identity: !((er = fe.evaluationContext) === null || er === void 0) && er.identity ? n(n({}, (tr = fe.evaluationContext) === null || tr === void 0 ? void 0 : tr.identity), { traits: n(n({}, ((rr = (or = fe.evaluationContext) === null || or === void 0 ? void 0 : or.identity) === null || rr === void 0 ? void 0 : rr.traits) || {}), Xt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", fe))), Ut ? (Go = !Be && (!this.cacheOptions.skipAPI || gt), this._onChange(null, { isFromServer: !1, flagsChanged: ke, traitsChanged: st }, this._loadedState(null, u.CACHE, Go)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Ut && !gt && this.log("Skipping API, using cache"), Go && this.getFlags().catch(function(oi) {
15374
+ return ct.trys.push([1, 5, , 6]), fe = JSON.parse(qe), Ut = !1, gt = !1, fe && fe.api === this.api && ((qo = (No = fe.evaluationContext) === null || No === void 0 ? void 0 : No.environment) === null || qo === void 0 ? void 0 : qo.apiKey) === ((Lo = this.evaluationContext.environment) === null || Lo === void 0 ? void 0 : Lo.apiKey) && (rt = !0, this.evaluationContext.identity && ((Yo = (ko = fe.evaluationContext) === null || ko === void 0 ? void 0 : ko.identity) === null || Yo === void 0 ? void 0 : Yo.identifier) !== this.evaluationContext.identity.identifier && (this.log("Ignoring cache, identity has changed from " + ((Wo = (Zo = fe.evaluationContext) === null || Zo === void 0 ? void 0 : Zo.identity) === null || Wo === void 0 ? void 0 : Wo.identifier) + " to " + this.evaluationContext.identity.identifier), rt = !1), this.cacheOptions.ttl && (!fe.ts || (/* @__PURE__ */ new Date()).valueOf() - fe.ts > this.cacheOptions.ttl) && (fe.ts && !this.cacheOptions.loadStale ? (this.log("Ignoring cache, timestamp is too old ts:" + fe.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - fe.ts) + "ms"), rt = !1) : fe.ts && this.cacheOptions.loadStale && (this.log("Loading stale cache, timestamp ts:" + fe.ts + " ttl: " + this.cacheOptions.ttl + " time elapsed since cache: " + ((/* @__PURE__ */ new Date()).valueOf() - fe.ts) + "ms"), gt = !0, rt = !0)), rt && (Ut = !0, st = d((Jo = this.evaluationContext.identity) === null || Jo === void 0 ? void 0 : Jo.traits, ($o = (_o = fe.evaluationContext) === null || _o === void 0 ? void 0 : _o.identity) === null || $o === void 0 ? void 0 : $o.traits), Le = d(this.flags, fe.flags), this.setState(n(n({}, fe), { evaluationContext: B(n(n({}, fe.evaluationContext), { identity: !((er = fe.evaluationContext) === null || er === void 0) && er.identity ? n(n({}, (tr = fe.evaluationContext) === null || tr === void 0 ? void 0 : tr.identity), { traits: n(n({}, ((rr = (or = fe.evaluationContext) === null || or === void 0 ? void 0 : or.identity) === null || rr === void 0 ? void 0 : rr.traits) || {}), Xt || {}) }) : void 0 })) })), this.log("Retrieved flags from cache", fe))), Ut ? (Go = !Be && (!this.cacheOptions.skipAPI || gt), this._onChange(null, { isFromServer: !1, flagsChanged: Le, traitsChanged: st }, this._loadedState(null, u.CACHE, Go)), this.oldFlags = this.flags, this.cacheOptions.skipAPI && Ut && !gt && this.log("Skipping API, using cache"), Go && this.getFlags().catch(function(oi) {
15371
15375
  var ir;
15372
15376
  (ir = Zr.onError) === null || ir === void 0 || ir.call(Zr, oi);
15373
15377
  }), [3, 4]) : [3, 2];
@@ -15405,7 +15409,7 @@ var Er = { exports: {} };
15405
15409
  case 4:
15406
15410
  Qo = Qe.sent(), Qe.label = 5;
15407
15411
  case 5:
15408
- return [4, kr(null, Qo)];
15412
+ return [4, Lr(null, Qo)];
15409
15413
  case 6:
15410
15414
  case 7:
15411
15415
  return Qe.sent(), [3, 8];
@@ -15422,7 +15426,7 @@ var Er = { exports: {} };
15422
15426
  case 12:
15423
15427
  return [3, 14];
15424
15428
  case 13:
15425
- throw Rt = Qe.sent(), this.log("Error during initialisation ", Rt), Lr = Rt instanceof Error ? Rt : new Error("".concat(Rt)), (p = this.onError) === null || p === void 0 || p.call(this, Lr), Rt;
15429
+ throw Rt = Qe.sent(), this.log("Error during initialisation ", Rt), kr = Rt instanceof Error ? Rt : new Error("".concat(Rt)), (p = this.onError) === null || p === void 0 || p.call(this, kr), Rt;
15426
15430
  case 14:
15427
15431
  return [2];
15428
15432
  }
@@ -15472,8 +15476,8 @@ var Er = { exports: {} };
15472
15476
  var j;
15473
15477
  try {
15474
15478
  j = JSON.parse(U.data).updated_at;
15475
- } catch (k) {
15476
- g.log("Could not parse sse event", k);
15479
+ } catch (L) {
15480
+ g.log("Could not parse sse event", L);
15477
15481
  }
15478
15482
  j ? !g.timestamp || j > g.timestamp ? g.isLoading ? g.log("updated_at is new, but flags are loading", U.data, g.timestamp) : (g.log("updated_at is new, fetching flags", U.data, g.timestamp), g.getFlags()) : g.log("updated_at is outdated, skipping get flags", U.data, g.timestamp) : g.log("No updated_at received, fetching flags", U);
15479
15483
  })) : this.log("Error, EventSource is undefined");
@@ -15508,8 +15512,8 @@ var Er = { exports: {} };
15508
15512
  var g, p, U = A.call(v), j = [];
15509
15513
  try {
15510
15514
  for (; (m === void 0 || m-- > 0) && !(g = U.next()).done; ) j.push(g.value);
15511
- } catch (k) {
15512
- p = { error: k };
15515
+ } catch (L) {
15516
+ p = { error: L };
15513
15517
  } finally {
15514
15518
  try {
15515
15519
  g && !g.done && (A = U.return) && A.call(U);
@@ -15548,8 +15552,8 @@ Consider loading an EventSource polyfill and making it available globally as Eve
15548
15552
  };
15549
15553
  try {
15550
15554
  for (var U = M(Object.keys(this._listeners)), j = U.next(); !j.done; j = U.next()) {
15551
- var k = j.value;
15552
- this._eventSource.addEventListener(k, this._onevent_wrapped);
15555
+ var L = j.value;
15556
+ this._eventSource.addEventListener(L, this._onevent_wrapped);
15553
15557
  }
15554
15558
  } catch (Z) {
15555
15559
  m = { error: Z };
@@ -15578,8 +15582,8 @@ Consider loading an EventSource polyfill and making it available globally as Eve
15578
15582
  if (p != null) try {
15579
15583
  for (var U = M(x([], V(p), !1)), j = U.next(); !j.done; j = U.next())
15580
15584
  j.value.call(this, m);
15581
- } catch (k) {
15582
- A = { error: k };
15585
+ } catch (L) {
15586
+ A = { error: L };
15583
15587
  } finally {
15584
15588
  try {
15585
15589
  j && !j.done && (g = U.return) && g.call(U);
@@ -15607,7 +15611,7 @@ Consider loading an EventSource polyfill and making it available globally as Eve
15607
15611
  globalThis.FlagsmithEventSource = typeof EventSource < "u" ? EventSource : null;
15608
15612
  var O = function(v, m) {
15609
15613
  return m = m || {}, new Promise(function(A, g) {
15610
- var p = new XMLHttpRequest(), U = [], j = [], k = {}, Z = function() {
15614
+ var p = new XMLHttpRequest(), U = [], j = [], L = {}, Z = function() {
15611
15615
  return { ok: (p.status / 100 | 0) == 2, statusText: p.statusText, status: p.status, url: p.responseURL, text: function() {
15612
15616
  return Promise.resolve(p.responseText);
15613
15617
  }, json: function() {
@@ -15619,14 +15623,14 @@ Consider loading an EventSource polyfill and making it available globally as Eve
15619
15623
  }, entries: function() {
15620
15624
  return j;
15621
15625
  }, get: function(G) {
15622
- return k[G.toLowerCase()];
15626
+ return L[G.toLowerCase()];
15623
15627
  }, has: function(G) {
15624
- return G.toLowerCase() in k;
15628
+ return G.toLowerCase() in L;
15625
15629
  } } };
15626
15630
  };
15627
15631
  for (var te in p.open(m.method || "get", v, !0), p.onload = function() {
15628
15632
  p.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(G, _, me) {
15629
- U.push(_ = _.toLowerCase()), j.push([_, me]), k[_] = k[_] ? k[_] + "," + me : me;
15633
+ U.push(_ = _.toLowerCase()), j.push([_, me]), L[_] = L[_] ? L[_] + "," + me : me;
15630
15634
  }), A(Z());
15631
15635
  }, p.onerror = g, p.withCredentials = m.credentials == "include", m.headers) p.setRequestHeader(te, m.headers[te]);
15632
15636
  p.send(m.body || null);
@@ -15741,8 +15745,8 @@ var Gl = Er.exports, Nl = {
15741
15745
  reset() {
15742
15746
  this.flagsmithClient = null, this.userContext = null;
15743
15747
  }
15744
- }, At(Ze, "instance"), Ze), kl = ql.getInstance(), Qt = ue(!1), ro = ue([]), xt = ue(null);
15745
- function Ll(e = kl) {
15748
+ }, At(Ze, "instance"), Ze), Ll = ql.getInstance(), Qt = ue(!1), ro = ue([]), xt = ue(null);
15749
+ function kl(e = Ll) {
15746
15750
  const t = () => Qt.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), o = async (u, C = []) => {
15747
15751
  if (Qt.value) {
15748
15752
  console.warn("FeatureFlag is already initialized.");
@@ -15804,7 +15808,7 @@ function Ll(e = kl) {
15804
15808
  reset: d
15805
15809
  };
15806
15810
  }
15807
- var Yl = () => Ll(), Ie = /* @__PURE__ */ ((e) => (e.report_portal_template_management = "report_portal_template_management", e.report_portal_integration_bukku_api = "report_portal_integration_bukku_api", e.report_portal_integration_autocount_export = "report_portal_integration_autocount_export", e.report_portal_integration_sql_export = "report_portal_integration_sql_export", e.report_portal_integration_xero_api = "report_portal_integration_xero_api", e.report_portal_integration_netsuite_export = "report_portal_integration_netsuite_export", e.report_portal_integration_netsuite_api = "report_portal_integration_netsuite_api", e.report_portal_integration_iflexi_hrms_export = "report_portal_integration_iflexi_hrms_export", e.report_portal_integration_custom_report = "report_portal_integration_custom_report", e.report_portal_integration_biztory_api = "report_portal_integration_biztory_api", e.report_portal_integration_autocount_cloud_api = "report_portal_integration_autocount_cloud_api", e.report_portal_integration_autocount_cloud_export = "report_portal_integration_autocount_cloud_export", e.report_portal_integration_synergy_export = "report_portal_integration_synergy_export", e.report_portal_integration_codemax_pos_api = "report_portal_integration_codemax_pos_api", e.report_portal_integration_custom_sql = "report_portal_integration_custom_sql", e.report_portal_permission = "report_portal_permission", e.report_portal_permission_th_control_temp = "report_portal_permission_th_control_temp", e))(Ie || {});
15811
+ var Yl = () => kl(), Ie = /* @__PURE__ */ ((e) => (e.report_portal_template_management = "report_portal_template_management", e.report_portal_integration_bukku_api = "report_portal_integration_bukku_api", e.report_portal_integration_autocount_export = "report_portal_integration_autocount_export", e.report_portal_integration_sql_export = "report_portal_integration_sql_export", e.report_portal_integration_xero_api = "report_portal_integration_xero_api", e.report_portal_integration_netsuite_export = "report_portal_integration_netsuite_export", e.report_portal_integration_netsuite_api = "report_portal_integration_netsuite_api", e.report_portal_integration_iflexi_hrms_export = "report_portal_integration_iflexi_hrms_export", e.report_portal_integration_custom_report = "report_portal_integration_custom_report", e.report_portal_integration_biztory_api = "report_portal_integration_biztory_api", e.report_portal_integration_autocount_cloud_api = "report_portal_integration_autocount_cloud_api", e.report_portal_integration_autocount_cloud_export = "report_portal_integration_autocount_cloud_export", e.report_portal_integration_synergy_export = "report_portal_integration_synergy_export", e.report_portal_integration_codemax_pos_api = "report_portal_integration_codemax_pos_api", e.report_portal_integration_custom_sql = "report_portal_integration_custom_sql", e.report_portal_permission = "report_portal_permission", e.report_portal_permission_th_control_temp = "report_portal_permission_th_control_temp", e))(Ie || {});
15808
15812
  const Zl = async () => {
15809
15813
  const { setUser: e, getFlag: t } = Yl(), { businessId: o } = se(), r = [], n = `business-${o}`;
15810
15814
  await e(n);
@@ -16079,8 +16083,8 @@ function Pn(e) {
16079
16083
  }
16080
16084
  function gd() {
16081
16085
  const { sessionUser: e } = Tr(), t = Qr(), o = y.report_reports_allDefaultReports, r = y.report_reports_allCustomReports, n = ve(() => {
16082
- var I, X, Y, L;
16083
- return !!((X = (I = e.value) == null ? void 0 : I.role) != null && X.isAdmin || (L = (Y = e.value) == null ? void 0 : Y.role) != null && L.isStaff);
16086
+ var I, X, Y, k;
16087
+ return !!((X = (I = e.value) == null ? void 0 : I.role) != null && X.isAdmin || (k = (Y = e.value) == null ? void 0 : Y.role) != null && k.isStaff);
16084
16088
  }), a = ve(() => {
16085
16089
  var I, X;
16086
16090
  return !!((X = (I = e.value) == null ? void 0 : I.role) != null && X.isAdmin);
@@ -16101,12 +16105,12 @@ function gd() {
16101
16105
  );
16102
16106
  function d(I, X, Y) {
16103
16107
  if (!s.value) return !0;
16104
- const L = Pn(I);
16105
- return !L || !l.value.length ? !1 : X.some((re) => {
16108
+ const k = Pn(I);
16109
+ return !k || !l.value.length ? !1 : X.some((re) => {
16106
16110
  const f = {
16107
16111
  action: re,
16108
16112
  // Report subjects are custom strings; cast to satisfy CaslPermission type
16109
- subject: L,
16113
+ subject: k,
16110
16114
  coverSubject: I != null && I.isDefault ? o : r,
16111
16115
  coverSubjectMode: "directOverride"
16112
16116
  };
@@ -16131,14 +16135,14 @@ function gd() {
16131
16135
  if (!s.value) return !0;
16132
16136
  if (!X.startDate || !X.endDate) return !1;
16133
16137
  if (!Pn(I)) return z.value;
16134
- const L = u(I, Y);
16135
- return Un(X, L, Y);
16138
+ const k = u(I, Y);
16139
+ return Un(X, k, Y);
16136
16140
  }
16137
16141
  function T(I, X, Y) {
16138
16142
  if (!s.value) return !0;
16139
16143
  if (!X.startDate || !X.endDate) return !1;
16140
- const L = C(I, Y);
16141
- return Un(X, L, Y);
16144
+ const k = C(I, Y);
16145
+ return Un(X, k, Y);
16142
16146
  }
16143
16147
  function R(I) {
16144
16148
  return d(I, [c.update, c.manage]);
@@ -16187,9 +16191,9 @@ function gd() {
16187
16191
  const yd = "mf-reportnavigation", ti = Jt(yd, () => {
16188
16192
  const { disabled: e } = Ge($l()), { flags: t } = Ge(Qr()), { sessionUser: o } = Tr(), { isReportPermissionEnabled: r, canCreateReport: n } = gd();
16189
16193
  function a(z) {
16190
- var L;
16194
+ var k;
16191
16195
  if (!r.value) return !0;
16192
- const I = Array.isArray((L = o.value) == null ? void 0 : L.permissions) ? o.value.permissions : [];
16196
+ const I = Array.isArray((k = o.value) == null ? void 0 : k.permissions) ? o.value.permissions : [];
16193
16197
  if (!Array.isArray(I) || I.length === 0) return !1;
16194
16198
  const X = {
16195
16199
  action: c.manage,
@@ -16214,7 +16218,7 @@ const yd = "mf-reportnavigation", ti = Jt(yd, () => {
16214
16218
  return (t.value.length === 0 || K.value) && n.value;
16215
16219
  }
16216
16220
  const R = ve(() => {
16217
- const z = !l.value, I = !d.value, X = !u.value, Y = !C.value, L = [
16221
+ const z = !l.value, I = !d.value, X = !u.value, Y = !C.value, k = [
16218
16222
  {
16219
16223
  label: "overview",
16220
16224
  value: "overview",
@@ -16240,16 +16244,16 @@ const yd = "mf-reportnavigation", ti = Jt(yd, () => {
16240
16244
  disabled: X
16241
16245
  }
16242
16246
  ];
16243
- return T() && L.splice(2, 0, {
16247
+ return T() && k.splice(2, 0, {
16244
16248
  label: "template",
16245
16249
  value: "template",
16246
16250
  route: "template"
16247
- }), e.value || L.push({
16251
+ }), e.value || k.push({
16248
16252
  label: "integration",
16249
16253
  value: "integration",
16250
16254
  route: "integrations",
16251
16255
  disabled: Y
16252
- }), L;
16256
+ }), k;
16253
16257
  }), B = ue(""), { currentRoute: F } = ui(), H = ve(
16254
16258
  () => F.value.name === "reportEditor" || F.value.name === "tileEditor"
16255
16259
  );
@@ -16315,7 +16319,7 @@ const vd = [
16315
16319
  path: "/overview",
16316
16320
  alias: ["/"],
16317
16321
  name: "overview",
16318
- component: io(() => import("./OverviewView-DbNFnT2T.js")),
16322
+ component: io(() => import("./OverviewView-C7rXqkqu.js")),
16319
16323
  meta: {
16320
16324
  validationManifest: ao(
16321
16325
  y.report_accessOverview
@@ -16325,18 +16329,18 @@ const vd = [
16325
16329
  {
16326
16330
  path: "/report",
16327
16331
  name: "reports",
16328
- component: () => import("./Report-BmtZSJO_.js")
16332
+ component: () => import("./Report-DmMvV31s.js")
16329
16333
  },
16330
16334
  {
16331
16335
  path: "/template",
16332
16336
  name: "template",
16333
- component: () => import("./Template-DPbMgOWJ.js"),
16337
+ component: () => import("./Template-CA1pA8Tn.js"),
16334
16338
  beforeEnter: () => ti().canAccessTemplate() ? !0 : { name: "reports" }
16335
16339
  },
16336
16340
  {
16337
16341
  path: "/insights",
16338
16342
  name: "insights",
16339
- component: io(() => import("./InsightView-B22qGkGv.js")),
16343
+ component: io(() => import("./InsightView-ButMjg-U.js")),
16340
16344
  meta: {
16341
16345
  validationManifest: ao(
16342
16346
  y.report_accessInsight
@@ -16346,22 +16350,22 @@ const vd = [
16346
16350
  {
16347
16351
  path: "/report-view",
16348
16352
  name: "reportView",
16349
- component: () => import("./ReportView-Cz-nPgHF.js")
16353
+ component: () => import("./ReportView-bervDyDE.js")
16350
16354
  },
16351
16355
  {
16352
16356
  path: "/report-editor",
16353
16357
  name: "reportEditor",
16354
- component: () => import("./ReportEditor-CFoD55mD.js")
16358
+ component: () => import("./ReportEditor-BiEsvXZY.js")
16355
16359
  },
16356
16360
  {
16357
16361
  path: "/report-editor/tile-editor",
16358
16362
  name: "tileEditor",
16359
- component: () => import("./TileEditor-CU3ss4rr.js")
16363
+ component: () => import("./TileEditor-BO3GDx7j.js")
16360
16364
  },
16361
16365
  {
16362
16366
  path: "/setting",
16363
16367
  name: "setting",
16364
- component: io(() => import("./Setting-BPIRjlXr.js")),
16368
+ component: io(() => import("./Setting-DKnjhY5Y.js")),
16365
16369
  meta: {
16366
16370
  validationManifest: ao(
16367
16371
  y.report_accessSetting
@@ -16370,7 +16374,7 @@ const vd = [
16370
16374
  },
16371
16375
  {
16372
16376
  path: "/integration",
16373
- component: io(() => import("./Layout-4hXcaU4u.js")),
16377
+ component: io(() => import("./Layout-DTsjR_RE.js")),
16374
16378
  meta: {
16375
16379
  validationManifest: ao(
16376
16380
  y.report_accessIntegration
@@ -16380,12 +16384,12 @@ const vd = [
16380
16384
  {
16381
16385
  name: "integrations",
16382
16386
  path: "",
16383
- component: () => import("./Integrations-Dbrr9YXD.js")
16387
+ component: () => import("./Integrations-CQSoSK5V.js")
16384
16388
  },
16385
16389
  {
16386
16390
  name: "integration",
16387
16391
  path: "/integration/:id",
16388
- component: () => import("./Integration-xfaz51Mm.js")
16392
+ component: () => import("./Integration-kEwQu7ai.js")
16389
16393
  }
16390
16394
  ]
16391
16395
  },
@@ -16404,7 +16408,7 @@ pi({
16404
16408
  history: fi("/"),
16405
16409
  routes: vd
16406
16410
  });
16407
- const fu = Tn(() => import("./App-CLgIY983.js"));
16411
+ const fu = Tn(() => import("./App-BmsF09Zx.js"));
16408
16412
  export {
16409
16413
  fu as $,
16410
16414
  _d as A,
@@ -16457,8 +16461,8 @@ export {
16457
16461
  nu as t,
16458
16462
  se as u,
16459
16463
  Ie as v,
16460
- Ld as w,
16464
+ kd as w,
16461
16465
  Dd as x,
16462
- kd as y,
16466
+ Ld as y,
16463
16467
  c as z
16464
16468
  };