@feedmepos/mf-hrm-portal 2.0.20-dev.4 → 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuditLogList-BYYLqx_Y.js → AuditLogList-COhT1PFG.js} +4 -4
- package/dist/{EmployeeList-faGmAgin.js → EmployeeList-CBfr6g9t.js} +6 -6
- package/dist/{Main-DYtpusvH.js → Main-BEfbP-bs.js} +6 -6
- package/dist/{Main-BAKU5xhk.js → Main-D1dN1FTE.js} +9 -9
- package/dist/{Main-BqGguhdK.js → Main-gByKBqZC.js} +4 -4
- package/dist/{PermissionSetList-BkNXF5wd.js → PermissionSetList-CHLm6ueB.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BSLC4-XO.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BRb3aRsV.js} +989 -989
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_a439fdd8_lang-BW8o67ka.js +34 -0
- package/dist/{RoleList-CU6fMUKg.js → RoleList-mgMUDQa_.js} +7 -7
- package/dist/TeamMemberList-Bdtm1lLi.js +1130 -0
- package/dist/{TimesheetList-oVhzBmO4.js → TimesheetList-BdO8bRzv.js} +113 -113
- package/dist/{app-C6YPb0ie.js → app-DdGJIhvX.js} +180 -179
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DjBQkDnl.js → dayjs.min-Dn0iKqwG.js} +1 -1
- package/dist/{employee-CgQNP7Yg.js → employee-rjbsWBRt.js} +3 -3
- package/dist/{iteration-DK5wFKKW.js → iteration-iN8h5bwW.js} +359 -358
- package/dist/{lodash-D2og8lPS.js → lodash-BX4i2dq_.js} +1 -1
- package/dist/{rule-CkKkOqTh.js → rule-CBauoBQ2.js} +2 -2
- package/dist/src/api/account/index.d.ts +4 -0
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/composables/useSupportedCountries.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/{timesheet-AUYF-qUh.js → timesheet-q4UbovJv.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BvpZCRgH.js → useAppStore-DPDMpfh5.js} +1 -1
- package/dist/{useLoading-RPOCpcNO.js → useLoading-DLMKZcST.js} +1 -1
- package/dist/{useReportPermissions-wHthaWRW.js → useReportPermissions-DjUtbNV6.js} +3 -3
- package/package.json +1 -1
- package/dist/TeamMemberList-DWXfFltX.js +0 -1124
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Js = Object.defineProperty;
|
|
2
|
-
var _s = (e, A,
|
|
3
|
-
var Ze = (e, A,
|
|
2
|
+
var _s = (e, A, m) => A in e ? Js(e, A, { enumerable: !0, configurable: !0, writable: !0, value: m }) : e[A] = m;
|
|
3
|
+
var Ze = (e, A, m) => _s(e, typeof A != "symbol" ? A + "" : A, m);
|
|
4
4
|
import { isRef as $s, ref as ve, shallowRef as en, watchEffect as Wt, computed as jt, h as Qt, defineComponent as xe, createBlock as ke, renderSlot as Tt, createCommentVNode as tn, unref as Me, openBlock as Ve, createElementBlock as St, createElementVNode as we, toDisplayString as It, watch as sn, nextTick as nn, onMounted as kt, onBeforeUnmount as rn, normalizeStyle as an, resolveComponent as Gt, withCtx as on, createVNode as ln, defineAsyncComponent as cn, readonly as vt } from "vue";
|
|
5
5
|
import { useBreakpoints as An } from "@feedmepos/ui-library";
|
|
6
6
|
import { useRoute as un, useRouter as mn } from "vue-router";
|
|
@@ -4238,8 +4238,8 @@ const Rt = [
|
|
|
4238
4238
|
Fr
|
|
4239
4239
|
).flatMap((e) => e.permissions ?? []).reduce(
|
|
4240
4240
|
(e, A) => {
|
|
4241
|
-
var
|
|
4242
|
-
return e[
|
|
4241
|
+
var m;
|
|
4242
|
+
return e[m = A.subject] ?? (e[m] = A.label), e;
|
|
4243
4243
|
},
|
|
4244
4244
|
{}
|
|
4245
4245
|
);
|
|
@@ -4249,50 +4249,50 @@ function Or(e) {
|
|
|
4249
4249
|
}
|
|
4250
4250
|
var ks = { exports: {} };
|
|
4251
4251
|
(function(e, A) {
|
|
4252
|
-
(function(
|
|
4252
|
+
(function(m, c) {
|
|
4253
4253
|
e.exports = c();
|
|
4254
4254
|
})(Re, function() {
|
|
4255
|
-
return function(
|
|
4255
|
+
return function(m) {
|
|
4256
4256
|
var c = {};
|
|
4257
|
-
function n(
|
|
4258
|
-
if (c[
|
|
4259
|
-
var y = c[
|
|
4260
|
-
return u
|
|
4257
|
+
function n(u) {
|
|
4258
|
+
if (c[u]) return c[u].exports;
|
|
4259
|
+
var y = c[u] = { i: u, l: !1, exports: {} };
|
|
4260
|
+
return m[u].call(y.exports, y, y.exports, n), y.l = !0, y.exports;
|
|
4261
4261
|
}
|
|
4262
|
-
return n.m =
|
|
4263
|
-
n.o(
|
|
4264
|
-
}, n.r = function(
|
|
4265
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(
|
|
4266
|
-
}, n.t = function(
|
|
4267
|
-
if (1 & y && (
|
|
4262
|
+
return n.m = m, n.c = c, n.d = function(u, y, h) {
|
|
4263
|
+
n.o(u, y) || Object.defineProperty(u, y, { enumerable: !0, get: h });
|
|
4264
|
+
}, n.r = function(u) {
|
|
4265
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(u, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(u, "__esModule", { value: !0 });
|
|
4266
|
+
}, n.t = function(u, y) {
|
|
4267
|
+
if (1 & y && (u = n(u)), 8 & y || 4 & y && typeof u == "object" && u && u.__esModule) return u;
|
|
4268
4268
|
var h = /* @__PURE__ */ Object.create(null);
|
|
4269
|
-
if (n.r(h), Object.defineProperty(h, "default", { enumerable: !0, value:
|
|
4270
|
-
for (var E in
|
|
4269
|
+
if (n.r(h), Object.defineProperty(h, "default", { enumerable: !0, value: u }), 2 & y && typeof u != "string")
|
|
4270
|
+
for (var E in u)
|
|
4271
4271
|
n.d(
|
|
4272
4272
|
h,
|
|
4273
4273
|
E,
|
|
4274
4274
|
(function(Y) {
|
|
4275
|
-
return
|
|
4275
|
+
return u[Y];
|
|
4276
4276
|
}).bind(null, E)
|
|
4277
4277
|
);
|
|
4278
4278
|
return h;
|
|
4279
|
-
}, n.n = function(
|
|
4280
|
-
var y =
|
|
4281
|
-
return
|
|
4279
|
+
}, n.n = function(u) {
|
|
4280
|
+
var y = u && u.__esModule ? function() {
|
|
4281
|
+
return u.default;
|
|
4282
4282
|
} : function() {
|
|
4283
|
-
return
|
|
4283
|
+
return u;
|
|
4284
4284
|
};
|
|
4285
4285
|
return n.d(y, "a", y), y;
|
|
4286
|
-
}, n.o = function(
|
|
4287
|
-
return Object.prototype.hasOwnProperty.call(
|
|
4286
|
+
}, n.o = function(u, y) {
|
|
4287
|
+
return Object.prototype.hasOwnProperty.call(u, y);
|
|
4288
4288
|
}, n.p = "", n(n.s = 0);
|
|
4289
4289
|
}([
|
|
4290
|
-
function(
|
|
4291
|
-
|
|
4290
|
+
function(m, c, n) {
|
|
4291
|
+
m.exports = n(1);
|
|
4292
4292
|
},
|
|
4293
|
-
function(
|
|
4294
|
-
function
|
|
4295
|
-
return (
|
|
4293
|
+
function(m, c, n) {
|
|
4294
|
+
function u(i) {
|
|
4295
|
+
return (u = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(g) {
|
|
4296
4296
|
return typeof g;
|
|
4297
4297
|
} : function(g) {
|
|
4298
4298
|
return g && typeof Symbol == "function" && g.constructor === Symbol && g !== Symbol.prototype ? "symbol" : typeof g;
|
|
@@ -4447,7 +4447,7 @@ var ks = { exports: {} };
|
|
|
4447
4447
|
return function(C) {
|
|
4448
4448
|
if (!(C instanceof Array)) {
|
|
4449
4449
|
var D = B(C);
|
|
4450
|
-
if (D === C &&
|
|
4450
|
+
if (D === C && u(C) === "object") {
|
|
4451
4451
|
for (F = i.length; F--; )
|
|
4452
4452
|
if (String(i[F]) === String(C) && String(C) !== "[object Object]")
|
|
4453
4453
|
return !0;
|
|
@@ -4613,7 +4613,7 @@ var ks = { exports: {} };
|
|
|
4613
4613
|
}
|
|
4614
4614
|
function Fe(i, g) {
|
|
4615
4615
|
if (he(i, g)) return 0;
|
|
4616
|
-
if (
|
|
4616
|
+
if (u(i) === u(g)) {
|
|
4617
4617
|
if (i > g) return 1;
|
|
4618
4618
|
if (i < g) return -1;
|
|
4619
4619
|
}
|
|
@@ -4628,20 +4628,20 @@ var ks = { exports: {} };
|
|
|
4628
4628
|
var qr = ks.exports;
|
|
4629
4629
|
const Hr = /* @__PURE__ */ Or(qr);
|
|
4630
4630
|
function Xr(e, A) {
|
|
4631
|
-
for (var
|
|
4632
|
-
var c = A[
|
|
4631
|
+
for (var m = 0; m < A.length; m++) {
|
|
4632
|
+
var c = A[m];
|
|
4633
4633
|
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(e, c.key, c);
|
|
4634
4634
|
}
|
|
4635
4635
|
}
|
|
4636
|
-
function Qr(e, A,
|
|
4636
|
+
function Qr(e, A, m) {
|
|
4637
4637
|
return A && Xr(e.prototype, A), e;
|
|
4638
4638
|
}
|
|
4639
4639
|
function Ir(e, A) {
|
|
4640
4640
|
e.prototype = Object.create(A.prototype), e.prototype.constructor = e, e.__proto__ = A;
|
|
4641
4641
|
}
|
|
4642
4642
|
function Bt(e) {
|
|
4643
|
-
return Bt = Object.setPrototypeOf ? Object.getPrototypeOf : function(
|
|
4644
|
-
return
|
|
4643
|
+
return Bt = Object.setPrototypeOf ? Object.getPrototypeOf : function(m) {
|
|
4644
|
+
return m.__proto__ || Object.getPrototypeOf(m);
|
|
4645
4645
|
}, Bt(e);
|
|
4646
4646
|
}
|
|
4647
4647
|
function Se(e, A) {
|
|
@@ -4659,10 +4659,10 @@ function Rr() {
|
|
|
4659
4659
|
return !1;
|
|
4660
4660
|
}
|
|
4661
4661
|
}
|
|
4662
|
-
function Te(e, A,
|
|
4663
|
-
return Rr() ? Te = Reflect.construct : Te = function(n,
|
|
4662
|
+
function Te(e, A, m) {
|
|
4663
|
+
return Rr() ? Te = Reflect.construct : Te = function(n, u, y) {
|
|
4664
4664
|
var h = [null];
|
|
4665
|
-
h.push.apply(h,
|
|
4665
|
+
h.push.apply(h, u);
|
|
4666
4666
|
var E = Function.bind.apply(n, h), Y = new E();
|
|
4667
4667
|
return y && Se(Y, y.prototype), Y;
|
|
4668
4668
|
}, Te.apply(null, arguments);
|
|
@@ -4706,33 +4706,33 @@ var Ks = function(A) {
|
|
|
4706
4706
|
return n;
|
|
4707
4707
|
} : n;
|
|
4708
4708
|
}, A.from = function(n) {
|
|
4709
|
-
var
|
|
4710
|
-
return Object.defineProperty(
|
|
4709
|
+
var u = new this("");
|
|
4710
|
+
return Object.defineProperty(u, "ability", {
|
|
4711
4711
|
value: n
|
|
4712
|
-
}),
|
|
4712
|
+
}), u;
|
|
4713
4713
|
};
|
|
4714
4714
|
function A(c, n) {
|
|
4715
|
-
var
|
|
4716
|
-
return n === void 0 && (n = {}),
|
|
4715
|
+
var u;
|
|
4716
|
+
return n === void 0 && (n = {}), u = e.call(this, c) || this, u._setMetadata(n), u.message = c || ze(Nt(u)), u._customMessage = null, typeof Error.captureStackTrace == "function" && (u.name = u.constructor.name, Error.captureStackTrace(Nt(u), u.constructor)), u;
|
|
4717
4717
|
}
|
|
4718
|
-
var
|
|
4719
|
-
return
|
|
4718
|
+
var m = A.prototype;
|
|
4719
|
+
return m.setMessage = function(n) {
|
|
4720
4720
|
return this._customMessage = n, this;
|
|
4721
|
-
},
|
|
4721
|
+
}, m.throwUnlessCan = function(n, u, y) {
|
|
4722
4722
|
if (!this.ability)
|
|
4723
4723
|
throw new ReferenceError("Cannot throw FordiddenError without respective ability instance");
|
|
4724
|
-
var h = this.ability.relevantRuleFor(n,
|
|
4724
|
+
var h = this.ability.relevantRuleFor(n, u, y);
|
|
4725
4725
|
if (!(h && !h.inverted)) {
|
|
4726
4726
|
this._setMetadata({
|
|
4727
4727
|
action: n,
|
|
4728
|
-
subject:
|
|
4728
|
+
subject: u,
|
|
4729
4729
|
field: y,
|
|
4730
|
-
subjectName: this.ability.subjectName(
|
|
4730
|
+
subjectName: this.ability.subjectName(u)
|
|
4731
4731
|
});
|
|
4732
4732
|
var E = h ? h.reason : "";
|
|
4733
4733
|
throw this.message = this._customMessage || E || ze(this), this;
|
|
4734
4734
|
}
|
|
4735
|
-
},
|
|
4735
|
+
}, m._setMetadata = function(n) {
|
|
4736
4736
|
this.subject = n.subject, this.subjectName = n.subjectName, this.action = n.action, this.field = n.field;
|
|
4737
4737
|
}, A;
|
|
4738
4738
|
}(wt(Error));
|
|
@@ -4749,27 +4749,27 @@ function Ur(e) {
|
|
|
4749
4749
|
return JSON.parse(JSON.stringify(e));
|
|
4750
4750
|
}
|
|
4751
4751
|
var Wr = /[-/\\^$+?.()|[\]{}]/g, Tr = /\.?\*+\.?/g, Sr = /\*+/, kr = /\./g;
|
|
4752
|
-
function Kr(e, A,
|
|
4753
|
-
var c =
|
|
4754
|
-
return A + e.length ===
|
|
4752
|
+
function Kr(e, A, m) {
|
|
4753
|
+
var c = m[0] === "*" || e[0] === "." && e[e.length - 1] === "." ? "+" : "*", n = e.indexOf("**") === -1 ? "[^.]" : ".", u = e.replace(kr, "\\$&").replace(Sr, n + c);
|
|
4754
|
+
return A + e.length === m.length ? "(?:" + u + ")?" : u;
|
|
4755
4755
|
}
|
|
4756
|
-
function Lr(e, A,
|
|
4757
|
-
return e === "." && (
|
|
4756
|
+
function Lr(e, A, m) {
|
|
4757
|
+
return e === "." && (m[A - 1] === "*" || m[A + 1] === "*") ? e : "\\" + e;
|
|
4758
4758
|
}
|
|
4759
4759
|
function Jr(e) {
|
|
4760
4760
|
var A = e.map(function(c) {
|
|
4761
4761
|
return c.replace(Wr, Lr).replace(Tr, Kr);
|
|
4762
|
-
}),
|
|
4763
|
-
return new RegExp("^" +
|
|
4762
|
+
}), m = A.length > 1 ? "(?:" + A.join("|") + ")" : A[0];
|
|
4763
|
+
return new RegExp("^" + m + "$");
|
|
4764
4764
|
}
|
|
4765
4765
|
var _r = /* @__PURE__ */ function() {
|
|
4766
|
-
function e(
|
|
4767
|
-
this.actions =
|
|
4766
|
+
function e(m) {
|
|
4767
|
+
this.actions = m.actions || m.action, this.subject = m.subject, this.fields = !m.fields || m.fields.length === 0 ? void 0 : Mt(m.fields), Object.defineProperty(this, "_fieldsPattern", {
|
|
4768
4768
|
writable: !0
|
|
4769
|
-
}), this.inverted = !!
|
|
4769
|
+
}), this.inverted = !!m.inverted, this.conditions = m.conditions, Object.defineProperty(this, "_matches", {
|
|
4770
4770
|
writable: !0,
|
|
4771
4771
|
value: this.conditions ? Hr(this.conditions) : void 0
|
|
4772
|
-
}), this.reason =
|
|
4772
|
+
}), this.reason = m.reason;
|
|
4773
4773
|
}
|
|
4774
4774
|
var A = e.prototype;
|
|
4775
4775
|
return A.matches = function(c) {
|
|
@@ -4793,18 +4793,18 @@ var $r = /* @__PURE__ */ function() {
|
|
|
4793
4793
|
throw new Error("Attempt to alias action to itself: " + c + " -> " + n.toString());
|
|
4794
4794
|
return Zt[c] = n, this;
|
|
4795
4795
|
};
|
|
4796
|
-
function e(
|
|
4796
|
+
function e(m, c) {
|
|
4797
4797
|
c === void 0 && (c = {}), Object.defineProperty(this, "subjectName", {
|
|
4798
4798
|
value: c.subjectName || zr
|
|
4799
4799
|
}), this[ee] = {
|
|
4800
4800
|
RuleType: c.RuleType || _r,
|
|
4801
|
-
originalRules:
|
|
4801
|
+
originalRules: m || [],
|
|
4802
4802
|
hasPerFieldRules: !1,
|
|
4803
4803
|
indexedRules: /* @__PURE__ */ Object.create(null),
|
|
4804
4804
|
mergedRules: /* @__PURE__ */ Object.create(null),
|
|
4805
4805
|
events: {},
|
|
4806
4806
|
aliases: Ur(Zt)
|
|
4807
|
-
}, this.update(
|
|
4807
|
+
}, this.update(m);
|
|
4808
4808
|
}
|
|
4809
4809
|
var A = e.prototype;
|
|
4810
4810
|
return A.update = function(c) {
|
|
@@ -4815,11 +4815,11 @@ var $r = /* @__PURE__ */ function() {
|
|
|
4815
4815
|
ability: this
|
|
4816
4816
|
};
|
|
4817
4817
|
this.emit("update", n), this[ee].originalRules = c.slice(0), this[ee].mergedRules = /* @__PURE__ */ Object.create(null);
|
|
4818
|
-
var
|
|
4819
|
-
return this[ee].indexedRules =
|
|
4818
|
+
var u = this.buildIndexFor(c);
|
|
4819
|
+
return this[ee].indexedRules = u.rules, this[ee].hasPerFieldRules = u.hasPerFieldRules, this.emit("updated", n), this;
|
|
4820
4820
|
}, A.buildIndexFor = function(c) {
|
|
4821
|
-
for (var n = /* @__PURE__ */ Object.create(null),
|
|
4822
|
-
var Y = new
|
|
4821
|
+
for (var n = /* @__PURE__ */ Object.create(null), u = this[ee].RuleType, y = !0, h = !1, E = 0; E < c.length; E++) {
|
|
4822
|
+
var Y = new u(c[E]), w = this.expandActions(Y.actions), P = Mt(Y.subject), I = c.length - E - 1;
|
|
4823
4823
|
y = !!(y && Y.inverted), !h && Y.fields && (h = !0);
|
|
4824
4824
|
for (var H = 0; H < P.length; H++) {
|
|
4825
4825
|
var z = P[H];
|
|
@@ -4836,34 +4836,34 @@ var $r = /* @__PURE__ */ function() {
|
|
|
4836
4836
|
rules: n
|
|
4837
4837
|
};
|
|
4838
4838
|
}, A.expandActions = function(c) {
|
|
4839
|
-
for (var n = this[ee].aliases,
|
|
4840
|
-
var h =
|
|
4841
|
-
n.hasOwnProperty(h) && (
|
|
4839
|
+
for (var n = this[ee].aliases, u = Mt(c), y = 0; y < u.length; ) {
|
|
4840
|
+
var h = u[y++];
|
|
4841
|
+
n.hasOwnProperty(h) && (u = u.concat(n[h]));
|
|
4842
4842
|
}
|
|
4843
|
-
return
|
|
4844
|
-
}, A.can = function(c, n,
|
|
4845
|
-
if (
|
|
4843
|
+
return u;
|
|
4844
|
+
}, A.can = function(c, n, u) {
|
|
4845
|
+
if (u && typeof u != "string")
|
|
4846
4846
|
throw new Error("Ability.can expects 3rd parameter to be a string. See https://stalniy.github.io/casl/abilities/2017/07/21/check-abilities.html#checking-fields for details");
|
|
4847
|
-
var y = this.relevantRuleFor(c, n,
|
|
4847
|
+
var y = this.relevantRuleFor(c, n, u);
|
|
4848
4848
|
return !!y && !y.inverted;
|
|
4849
|
-
}, A.relevantRuleFor = function(c, n,
|
|
4850
|
-
for (var y = this.rulesFor(c, n,
|
|
4849
|
+
}, A.relevantRuleFor = function(c, n, u) {
|
|
4850
|
+
for (var y = this.rulesFor(c, n, u), h = 0; h < y.length; h++)
|
|
4851
4851
|
if (y[h].matches(n))
|
|
4852
4852
|
return y[h];
|
|
4853
4853
|
return null;
|
|
4854
4854
|
}, A.possibleRulesFor = function(c, n) {
|
|
4855
|
-
var
|
|
4856
|
-
return y[h] || (y[h] = this.mergeRulesFor(c,
|
|
4855
|
+
var u = this.subjectName(n), y = this[ee].mergedRules, h = u + "_" + c;
|
|
4856
|
+
return y[h] || (y[h] = this.mergeRulesFor(c, u)), y[h];
|
|
4857
4857
|
}, A.mergeRulesFor = function(c, n) {
|
|
4858
|
-
var
|
|
4859
|
-
var Y =
|
|
4858
|
+
var u = this[ee].indexedRules, y = [n, "all"].reduce(function(h, E) {
|
|
4859
|
+
var Y = u[E];
|
|
4860
4860
|
return Y ? Object.assign(h, Y[c], Y.manage) : h;
|
|
4861
4861
|
}, []);
|
|
4862
4862
|
return y.filter(Boolean);
|
|
4863
|
-
}, A.rulesFor = function(c, n,
|
|
4863
|
+
}, A.rulesFor = function(c, n, u) {
|
|
4864
4864
|
var y = this.possibleRulesFor(c, n);
|
|
4865
4865
|
return this[ee].hasPerFieldRules ? y.filter(function(h) {
|
|
4866
|
-
return h.isRelevantFor(n,
|
|
4866
|
+
return h.isRelevantFor(n, u);
|
|
4867
4867
|
}) : y;
|
|
4868
4868
|
}, A.cannot = function() {
|
|
4869
4869
|
return !this.can.apply(this, arguments);
|
|
@@ -4874,16 +4874,16 @@ var $r = /* @__PURE__ */ function() {
|
|
|
4874
4874
|
Please use "ForbiddenError.from(ability).throwUnlessCan(...)" instead.
|
|
4875
4875
|
`.trim()), (c = Zr.from(this)).throwUnlessCan.apply(c, arguments);
|
|
4876
4876
|
}, A.on = function(c, n) {
|
|
4877
|
-
var
|
|
4878
|
-
return
|
|
4877
|
+
var u = this[ee].events, y = !0;
|
|
4878
|
+
return u[c] || (u[c] = []), u[c].push(n), function() {
|
|
4879
4879
|
if (y) {
|
|
4880
|
-
var h =
|
|
4881
|
-
|
|
4880
|
+
var h = u[c].indexOf(n);
|
|
4881
|
+
u[c].splice(h, 1), y = !1;
|
|
4882
4882
|
}
|
|
4883
4883
|
};
|
|
4884
4884
|
}, A.emit = function(c, n) {
|
|
4885
|
-
var
|
|
4886
|
-
|
|
4885
|
+
var u = this[ee].events[c];
|
|
4886
|
+
u && u.slice(0).forEach(function(y) {
|
|
4887
4887
|
return y(n);
|
|
4888
4888
|
});
|
|
4889
4889
|
}, Qr(e, [{
|
|
@@ -4897,7 +4897,7 @@ function ea(e) {
|
|
|
4897
4897
|
return Bs[e] ?? e;
|
|
4898
4898
|
}
|
|
4899
4899
|
function $a(e) {
|
|
4900
|
-
const A = Object.entries(Bs).find(([,
|
|
4900
|
+
const A = Object.entries(Bs).find(([, m]) => m === e);
|
|
4901
4901
|
return A ? A[0] : e;
|
|
4902
4902
|
}
|
|
4903
4903
|
function ta(e) {
|
|
@@ -4910,12 +4910,12 @@ function ta(e) {
|
|
|
4910
4910
|
function sa(e) {
|
|
4911
4911
|
return new $r(ta(e));
|
|
4912
4912
|
}
|
|
4913
|
-
function na(e, A,
|
|
4914
|
-
const c = Array.isArray(e) ? e : [e], n = sa(A),
|
|
4913
|
+
function na(e, A, m) {
|
|
4914
|
+
const c = Array.isArray(e) ? e : [e], n = sa(A), u = (w) => w.subject, y = (w) => n.can(w.action, u(w), w.field) ? !0 : w.coverSubject !== void 0 ? n.can(w.action, w.coverSubject, w.field) : !1, h = c.find((w) => !y(w));
|
|
4915
4915
|
if (h) {
|
|
4916
4916
|
const w = n.relevantRuleFor(
|
|
4917
4917
|
h.action,
|
|
4918
|
-
|
|
4918
|
+
u(h),
|
|
4919
4919
|
h.field
|
|
4920
4920
|
);
|
|
4921
4921
|
return {
|
|
@@ -4924,20 +4924,20 @@ function na(e, A, u) {
|
|
|
4924
4924
|
decisiveRule: w ?? null
|
|
4925
4925
|
};
|
|
4926
4926
|
}
|
|
4927
|
-
const E = c[0], Y = n.relevantRuleFor(E.action,
|
|
4927
|
+
const E = c[0], Y = n.relevantRuleFor(E.action, u(E), E.field);
|
|
4928
4928
|
return { granted: !0, decisivePermission: E, decisiveRule: Y ?? null };
|
|
4929
4929
|
}
|
|
4930
4930
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4931
4931
|
const ra = () => {
|
|
4932
4932
|
};
|
|
4933
|
-
function aa(e, A,
|
|
4933
|
+
function aa(e, A, m) {
|
|
4934
4934
|
let c;
|
|
4935
|
-
$s(
|
|
4936
|
-
evaluating:
|
|
4935
|
+
$s(m) ? c = {
|
|
4936
|
+
evaluating: m
|
|
4937
4937
|
} : c = {};
|
|
4938
4938
|
const {
|
|
4939
4939
|
lazy: n = !1,
|
|
4940
|
-
evaluating:
|
|
4940
|
+
evaluating: u = void 0,
|
|
4941
4941
|
shallow: y = !0,
|
|
4942
4942
|
onError: h = ra
|
|
4943
4943
|
} = c, E = ve(!n), Y = y ? en(A) : ve(A);
|
|
@@ -4948,25 +4948,25 @@ function aa(e, A, u) {
|
|
|
4948
4948
|
w++;
|
|
4949
4949
|
const I = w;
|
|
4950
4950
|
let H = !1;
|
|
4951
|
-
|
|
4952
|
-
|
|
4951
|
+
u && Promise.resolve().then(() => {
|
|
4952
|
+
u.value = !0;
|
|
4953
4953
|
});
|
|
4954
4954
|
try {
|
|
4955
4955
|
const z = await e((S) => {
|
|
4956
4956
|
P(() => {
|
|
4957
|
-
|
|
4957
|
+
u && (u.value = !1), H || S();
|
|
4958
4958
|
});
|
|
4959
4959
|
});
|
|
4960
4960
|
I === w && (Y.value = z);
|
|
4961
4961
|
} catch (z) {
|
|
4962
4962
|
h(z);
|
|
4963
4963
|
} finally {
|
|
4964
|
-
|
|
4964
|
+
u && I === w && (u.value = !1), H = !0;
|
|
4965
4965
|
}
|
|
4966
4966
|
}), n ? jt(() => (E.value = !0, Y.value)) : Y;
|
|
4967
4967
|
}
|
|
4968
4968
|
async function oa(e) {
|
|
4969
|
-
const { sessionUser: A, validationManifest:
|
|
4969
|
+
const { sessionUser: A, validationManifest: m } = e, { requiredRoles: c, requiredCaslPermissions: n, customValidationFunction: u } = m;
|
|
4970
4970
|
if (!A)
|
|
4971
4971
|
return { canAccess: !1 };
|
|
4972
4972
|
if (c && c.length > 0 && !c.includes(A._role || ""))
|
|
@@ -4982,19 +4982,19 @@ async function oa(e) {
|
|
|
4982
4982
|
message: "User does not have permission to access"
|
|
4983
4983
|
});
|
|
4984
4984
|
}
|
|
4985
|
-
if (
|
|
4986
|
-
const y = await
|
|
4985
|
+
if (u) {
|
|
4986
|
+
const y = await u();
|
|
4987
4987
|
if (!y.canAccess)
|
|
4988
4988
|
return y;
|
|
4989
4989
|
}
|
|
4990
4990
|
return Promise.resolve({ canAccess: !0 });
|
|
4991
4991
|
}
|
|
4992
4992
|
async function ia(e, A) {
|
|
4993
|
-
for (const
|
|
4994
|
-
if (
|
|
4993
|
+
for (const m of e.matched)
|
|
4994
|
+
if (m.meta.validationManifest) {
|
|
4995
4995
|
const c = await oa({
|
|
4996
4996
|
sessionUser: A,
|
|
4997
|
-
validationManifest:
|
|
4997
|
+
validationManifest: m.meta.validationManifest
|
|
4998
4998
|
});
|
|
4999
4999
|
if (!c.canAccess)
|
|
5000
5000
|
return {
|
|
@@ -5013,13 +5013,13 @@ function la() {
|
|
|
5013
5013
|
return aa(
|
|
5014
5014
|
async () => {
|
|
5015
5015
|
e.matched;
|
|
5016
|
-
const
|
|
5017
|
-
if (
|
|
5016
|
+
const m = A.value;
|
|
5017
|
+
if (m === void 0)
|
|
5018
5018
|
return "loading";
|
|
5019
|
-
if (!
|
|
5019
|
+
if (!m)
|
|
5020
5020
|
return "denied";
|
|
5021
5021
|
try {
|
|
5022
|
-
return (await ia(e,
|
|
5022
|
+
return (await ia(e, m)).canAccess ? "allowed" : "denied";
|
|
5023
5023
|
} catch {
|
|
5024
5024
|
return "denied";
|
|
5025
5025
|
}
|
|
@@ -5059,7 +5059,7 @@ const ca = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
5059
5059
|
"th-TH": fa
|
|
5060
5060
|
}
|
|
5061
5061
|
});
|
|
5062
|
-
return (
|
|
5062
|
+
return (m, c) => (Ve(), St("div", ya, [
|
|
5063
5063
|
we("div", va, [
|
|
5064
5064
|
we("div", ha, [
|
|
5065
5065
|
we("img", {
|
|
@@ -5078,60 +5078,61 @@ const ca = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
5078
5078
|
__name: "PermissionWrapper",
|
|
5079
5079
|
setup(e) {
|
|
5080
5080
|
const A = la();
|
|
5081
|
-
return (
|
|
5081
|
+
return (m, c) => Me(A) === Me(Ct).Denied ? (Ve(), ke(Ca, { key: 0 })) : Me(A) === Me(Ct).Allowed ? Tt(m.$slots, "default", { key: 1 }) : tn("", !0);
|
|
5082
5082
|
}
|
|
5083
5083
|
});
|
|
5084
5084
|
function Ke(e) {
|
|
5085
5085
|
return {
|
|
5086
5086
|
inheritAttrs: !1,
|
|
5087
|
-
setup(A, { attrs:
|
|
5088
|
-
return () => Qt(Da, {}, { default: () => Qt(e,
|
|
5087
|
+
setup(A, { attrs: m }) {
|
|
5088
|
+
return () => Qt(Da, {}, { default: () => Qt(e, m) });
|
|
5089
5089
|
}
|
|
5090
5090
|
};
|
|
5091
5091
|
}
|
|
5092
5092
|
function ja(e, A) {
|
|
5093
|
-
const
|
|
5093
|
+
const m = ve({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
5094
5094
|
function c() {
|
|
5095
5095
|
if (e.value) {
|
|
5096
|
-
const
|
|
5097
|
-
|
|
5098
|
-
top:
|
|
5099
|
-
bottom:
|
|
5100
|
-
left:
|
|
5101
|
-
right:
|
|
5096
|
+
const u = e.value.getBoundingClientRect();
|
|
5097
|
+
m.value = {
|
|
5098
|
+
top: u.top,
|
|
5099
|
+
bottom: u.bottom,
|
|
5100
|
+
left: u.left,
|
|
5101
|
+
right: u.right
|
|
5102
5102
|
};
|
|
5103
5103
|
}
|
|
5104
5104
|
}
|
|
5105
|
-
|
|
5106
|
-
|
|
5105
|
+
let n = null;
|
|
5106
|
+
return sn(e, async (u) => {
|
|
5107
|
+
u && (await nn(), c());
|
|
5107
5108
|
}), kt(() => {
|
|
5108
|
-
window.addEventListener("resize", c);
|
|
5109
|
+
window.addEventListener("resize", c), n = new ResizeObserver(c), n.observe(document.body);
|
|
5109
5110
|
}), rn(() => {
|
|
5110
|
-
window.removeEventListener("resize", c);
|
|
5111
|
-
}),
|
|
5111
|
+
window.removeEventListener("resize", c), n == null || n.disconnect(), n = null;
|
|
5112
|
+
}), m;
|
|
5112
5113
|
}
|
|
5113
5114
|
const Ga = /* @__PURE__ */ xe({
|
|
5114
5115
|
__name: "FullWrapper",
|
|
5115
5116
|
setup(e) {
|
|
5116
|
-
const A = An(),
|
|
5117
|
+
const A = An(), m = ve(null), c = ja(m), n = jt(() => {
|
|
5117
5118
|
var h;
|
|
5118
5119
|
const y = A.isAtMost("sm") ? 56 : 0;
|
|
5119
5120
|
return {
|
|
5120
5121
|
height: `calc(100dvh - ${((h = c.value) == null ? void 0 : h.top) + 24 + y}px)`
|
|
5121
5122
|
};
|
|
5122
5123
|
});
|
|
5123
|
-
return (
|
|
5124
|
+
return (u, y) => (Ve(), St("div", {
|
|
5124
5125
|
ref_key: "wrapper",
|
|
5125
|
-
ref:
|
|
5126
|
+
ref: m,
|
|
5126
5127
|
style: an(n.value)
|
|
5127
5128
|
}, [
|
|
5128
|
-
Tt(
|
|
5129
|
+
Tt(u.$slots, "default")
|
|
5129
5130
|
], 4));
|
|
5130
5131
|
}
|
|
5131
5132
|
}), Ya = { class: "flex justify-center items-center h-full w-full" }, Ea = /* @__PURE__ */ xe({
|
|
5132
5133
|
__name: "PageLoading",
|
|
5133
5134
|
setup(e) {
|
|
5134
|
-
return (A,
|
|
5135
|
+
return (A, m) => {
|
|
5135
5136
|
const c = Gt("FmCircularProgress");
|
|
5136
5137
|
return Ve(), ke(Ga, null, {
|
|
5137
5138
|
default: on(() => [
|
|
@@ -5157,10 +5158,10 @@ const ht = (e) => ({
|
|
|
5157
5158
|
}
|
|
5158
5159
|
]
|
|
5159
5160
|
}
|
|
5160
|
-
}), xa = Ke(be(() => import("./Main-
|
|
5161
|
-
be(() => import("./AuditLogList-
|
|
5162
|
-
), Fa = Ke(be(() => import("./Main-
|
|
5163
|
-
() => import("./PermissionSetList-
|
|
5161
|
+
}), xa = Ke(be(() => import("./Main-D1dN1FTE.js"))), Va = Ke(be(() => import("./Main-BEfbP-bs.js"))), Pa = Ke(
|
|
5162
|
+
be(() => import("./AuditLogList-COhT1PFG.js"))
|
|
5163
|
+
), Fa = Ke(be(() => import("./Main-gByKBqZC.js"))), Oa = be(() => import("./EmployeeList-CBfr6g9t.js")), qa = be(() => import("./RoleList-mgMUDQa_.js")), Ha = be(() => import("./TimesheetList-BdO8bRzv.js")), Xa = be(() => import("./TeamMemberList-Bdtm1lLi.js")), Qa = be(
|
|
5164
|
+
() => import("./PermissionSetList-CHLm6ueB.js")
|
|
5164
5165
|
), eo = [
|
|
5165
5166
|
{
|
|
5166
5167
|
path: "/",
|
|
@@ -5226,7 +5227,7 @@ const ht = (e) => ({
|
|
|
5226
5227
|
__name: "Navigator",
|
|
5227
5228
|
emits: ["close-navigation"],
|
|
5228
5229
|
setup(e, { emit: A }) {
|
|
5229
|
-
const
|
|
5230
|
+
const m = A, { t: c } = Kt(), n = mn(), { sessionUser: u } = Yt(), y = jt(() => {
|
|
5230
5231
|
var Y;
|
|
5231
5232
|
const E = [];
|
|
5232
5233
|
return E.push({
|
|
@@ -5236,7 +5237,7 @@ const ht = (e) => ({
|
|
|
5236
5237
|
n.push({
|
|
5237
5238
|
name: T.EMPLOYEE,
|
|
5238
5239
|
query: n.currentRoute.value.query
|
|
5239
|
-
}),
|
|
5240
|
+
}), m("close-navigation");
|
|
5240
5241
|
}
|
|
5241
5242
|
}), E.push({
|
|
5242
5243
|
label: c("team.title"),
|
|
@@ -5245,7 +5246,7 @@ const ht = (e) => ({
|
|
|
5245
5246
|
n.push({
|
|
5246
5247
|
name: T.TEAM,
|
|
5247
5248
|
query: n.currentRoute.value.query
|
|
5248
|
-
}),
|
|
5249
|
+
}), m("close-navigation");
|
|
5249
5250
|
}
|
|
5250
5251
|
}), E.push({
|
|
5251
5252
|
label: c("auditLog.title"),
|
|
@@ -5253,16 +5254,16 @@ const ht = (e) => ({
|
|
|
5253
5254
|
action: () => {
|
|
5254
5255
|
n.push({
|
|
5255
5256
|
name: T.AUDIT_LOG
|
|
5256
|
-
}),
|
|
5257
|
+
}), m("close-navigation");
|
|
5257
5258
|
}
|
|
5258
|
-
}), (Y =
|
|
5259
|
+
}), (Y = u.value) != null && Y.role.isAdmin && E.push({
|
|
5259
5260
|
label: c("grantUser.title"),
|
|
5260
5261
|
value: "pos-grant",
|
|
5261
5262
|
action: () => {
|
|
5262
5263
|
n.push({
|
|
5263
5264
|
name: T.POS_GRANT,
|
|
5264
5265
|
query: n.currentRoute.value.query
|
|
5265
|
-
}),
|
|
5266
|
+
}), m("close-navigation");
|
|
5266
5267
|
}
|
|
5267
5268
|
}), E;
|
|
5268
5269
|
}), h = ve();
|
|
@@ -5302,9 +5303,9 @@ const ht = (e) => ({
|
|
|
5302
5303
|
});
|
|
5303
5304
|
var Dt = { exports: {} };
|
|
5304
5305
|
(function(e, A) {
|
|
5305
|
-
(function(
|
|
5306
|
+
(function(m, c) {
|
|
5306
5307
|
c(A);
|
|
5307
|
-
})(Re, function(
|
|
5308
|
+
})(Re, function(m) {
|
|
5308
5309
|
var c = { getItemSync: function(d) {
|
|
5309
5310
|
try {
|
|
5310
5311
|
return localStorage.getItem(d) || null;
|
|
@@ -5335,7 +5336,7 @@ var Dt = { exports: {} };
|
|
|
5335
5336
|
return d;
|
|
5336
5337
|
}, n.apply(this, arguments);
|
|
5337
5338
|
};
|
|
5338
|
-
function
|
|
5339
|
+
function u(d, r, s, l) {
|
|
5339
5340
|
return new (s || (s = Promise))(function(a, p) {
|
|
5340
5341
|
function v(O) {
|
|
5341
5342
|
try {
|
|
@@ -5622,7 +5623,7 @@ var Dt = { exports: {} };
|
|
|
5622
5623
|
}
|
|
5623
5624
|
return d.prototype.init = function(r) {
|
|
5624
5625
|
var s, l, a;
|
|
5625
|
-
return
|
|
5626
|
+
return u(this, void 0, void 0, function() {
|
|
5626
5627
|
var p, v, j, x, O, M, X, L, Ae, se, le, ne, re, ue, qe, He, Ce, J, Q, Je, Xe, Vt, De, _e, Pt, Ft, $e, Ot, et, Qe, je, qt, _ = this;
|
|
5627
5628
|
return y(this, function(ce) {
|
|
5628
5629
|
switch (ce.label) {
|
|
@@ -5673,7 +5674,7 @@ var Dt = { exports: {} };
|
|
|
5673
5674
|
})), !X) return [3, 9];
|
|
5674
5675
|
if (!k || !this.canUseStorage) return [3, 8];
|
|
5675
5676
|
Ot = function(ae, me) {
|
|
5676
|
-
return
|
|
5677
|
+
return u(_, void 0, void 0, function() {
|
|
5677
5678
|
var ge, fe, N, Ge, Be, pe, tt, Ht, st, nt, rt, at, ot, it, lt, ct, At, ut, mt, gt, dt, pt, bt, ft, Xt = this;
|
|
5678
5679
|
return y(this, function(ye) {
|
|
5679
5680
|
switch (ye.label) {
|
|
@@ -5946,9 +5947,9 @@ Consider loading an EventSource polyfill and making it available globally as Eve
|
|
|
5946
5947
|
a.send(r.body || null);
|
|
5947
5948
|
});
|
|
5948
5949
|
}, W = i({ AsyncStorage: c, fetch: Z, eventSource: F });
|
|
5949
|
-
typeof window < "u" && (window.flagsmith = W),
|
|
5950
|
+
typeof window < "u" && (window.flagsmith = W), m.createFlagsmithInstance = function() {
|
|
5950
5951
|
return i({ AsyncStorage: c, fetch: Z, eventSource: F });
|
|
5951
|
-
},
|
|
5952
|
+
}, m.default = W, Object.defineProperty(m, "__esModule", { value: !0 });
|
|
5952
5953
|
});
|
|
5953
5954
|
})(Dt, Dt.exports);
|
|
5954
5955
|
var Ra = Dt.exports, Na = {
|
|
@@ -5965,11 +5966,11 @@ var Ra = Dt.exports, Na = {
|
|
|
5965
5966
|
if (!this.flagsmithClient)
|
|
5966
5967
|
throw new Error(Na.NOT_INITIALIZED);
|
|
5967
5968
|
}
|
|
5968
|
-
async init(A,
|
|
5969
|
+
async init(A, m = []) {
|
|
5969
5970
|
if (!this.flagsmithClient)
|
|
5970
5971
|
try {
|
|
5971
5972
|
this.flagsmithClient = Ra.createFlagsmithInstance();
|
|
5972
|
-
const c =
|
|
5973
|
+
const c = m.reduce((n, u) => (n[u.feature.name] = u, n), {});
|
|
5973
5974
|
await this.flagsmithClient.init({
|
|
5974
5975
|
environmentID: A.apiKey,
|
|
5975
5976
|
api: (A == null ? void 0 : A.url) ?? "https://feature-flag-proxy.feedme.farm/api/v1/",
|
|
@@ -5999,11 +6000,11 @@ var Ra = Dt.exports, Na = {
|
|
|
5999
6000
|
async getFlags() {
|
|
6000
6001
|
this.ensureInitialized();
|
|
6001
6002
|
const A = this.flagsmithClient.getAllFlags();
|
|
6002
|
-
return Object.entries(A).map(([
|
|
6003
|
+
return Object.entries(A).map(([m, c]) => {
|
|
6003
6004
|
var n;
|
|
6004
6005
|
return {
|
|
6005
6006
|
feature: {
|
|
6006
|
-
name:
|
|
6007
|
+
name: m,
|
|
6007
6008
|
id: (c == null ? void 0 : c.id) ?? 0
|
|
6008
6009
|
},
|
|
6009
6010
|
enabled: c.enabled,
|
|
@@ -6011,22 +6012,22 @@ var Ra = Dt.exports, Na = {
|
|
|
6011
6012
|
};
|
|
6012
6013
|
});
|
|
6013
6014
|
}
|
|
6014
|
-
getFlagValue(A,
|
|
6015
|
+
getFlagValue(A, m) {
|
|
6015
6016
|
this.ensureInitialized();
|
|
6016
6017
|
const c = this.flagsmithClient.getValue(A);
|
|
6017
6018
|
if (c == null)
|
|
6018
6019
|
return null;
|
|
6019
6020
|
try {
|
|
6020
6021
|
const n = c.toString();
|
|
6021
|
-
return
|
|
6022
|
+
return m ? m(n) : typeof {} == "number" ? isNaN(Number(n)) ? null : Number(n) : typeof {} == "boolean" ? n.toLowerCase() === "true" : n;
|
|
6022
6023
|
} catch (n) {
|
|
6023
6024
|
return console.error("Error transforming flag value:", n), null;
|
|
6024
6025
|
}
|
|
6025
6026
|
}
|
|
6026
6027
|
getFlag(A) {
|
|
6027
6028
|
this.ensureInitialized();
|
|
6028
|
-
const
|
|
6029
|
-
if (
|
|
6029
|
+
const m = this.flagsmithClient.getValue(A);
|
|
6030
|
+
if (m == null) return null;
|
|
6030
6031
|
const c = this.flagsmithClient.hasFeature(A);
|
|
6031
6032
|
return {
|
|
6032
6033
|
feature: {
|
|
@@ -6034,19 +6035,19 @@ var Ra = Dt.exports, Na = {
|
|
|
6034
6035
|
id: 0
|
|
6035
6036
|
},
|
|
6036
6037
|
enabled: c,
|
|
6037
|
-
value:
|
|
6038
|
+
value: m.toString()
|
|
6038
6039
|
};
|
|
6039
6040
|
}
|
|
6040
|
-
async getUserFlagValue(A,
|
|
6041
|
+
async getUserFlagValue(A, m, c = null, n) {
|
|
6041
6042
|
var y;
|
|
6042
|
-
const
|
|
6043
|
+
const u = this.userContext;
|
|
6043
6044
|
try {
|
|
6044
|
-
return await this.setUser(A), this.getFlagValue(
|
|
6045
|
+
return await this.setUser(A), this.getFlagValue(m, n) ?? c;
|
|
6045
6046
|
} catch (h) {
|
|
6046
|
-
return console.error(`Error getting user flag value for ${
|
|
6047
|
+
return console.error(`Error getting user flag value for ${m}:`, h), c;
|
|
6047
6048
|
} finally {
|
|
6048
6049
|
try {
|
|
6049
|
-
await ((y = this.flagsmithClient) == null ? void 0 : y.logout()), this.userContext = null,
|
|
6050
|
+
await ((y = this.flagsmithClient) == null ? void 0 : y.logout()), this.userContext = null, u && await this.setUser(u.identifier);
|
|
6050
6051
|
} catch (h) {
|
|
6051
6052
|
console.error("Error during cleanup:", h);
|
|
6052
6053
|
}
|
|
@@ -6057,7 +6058,7 @@ var Ra = Dt.exports, Na = {
|
|
|
6057
6058
|
}
|
|
6058
6059
|
}, Ze(de, "instance"), de), za = Za.getInstance(), Ie = ve(!1), Ue = ve([]), Ye = ve(null);
|
|
6059
6060
|
function Ua(e = za) {
|
|
6060
|
-
const A = () => Ie.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1),
|
|
6061
|
+
const A = () => Ie.value ? !0 : (console.warn("FeatureFlag is not initialized. Using default values."), !1), m = async (w, P = []) => {
|
|
6061
6062
|
if (Ie.value) {
|
|
6062
6063
|
console.warn("FeatureFlag is already initialized.");
|
|
6063
6064
|
return;
|
|
@@ -6074,7 +6075,7 @@ function Ua(e = za) {
|
|
|
6074
6075
|
} catch (P) {
|
|
6075
6076
|
console.error("Failed to set user:", P), Ye.value = P;
|
|
6076
6077
|
}
|
|
6077
|
-
}, n = async (w) => c(`${Ut}-${w}`),
|
|
6078
|
+
}, n = async (w) => c(`${Ut}-${w}`), u = (w, P, I = null) => {
|
|
6078
6079
|
if (!A()) return I;
|
|
6079
6080
|
try {
|
|
6080
6081
|
return e.getFlagValue(w, P) ?? I;
|
|
@@ -6108,10 +6109,10 @@ function Ua(e = za) {
|
|
|
6108
6109
|
flags: vt(Ue),
|
|
6109
6110
|
isInitialized: vt(Ie),
|
|
6110
6111
|
error: vt(Ye),
|
|
6111
|
-
init:
|
|
6112
|
+
init: m,
|
|
6112
6113
|
setUser: c,
|
|
6113
6114
|
setBusiness: n,
|
|
6114
|
-
getFlagValue:
|
|
6115
|
+
getFlagValue: u,
|
|
6115
6116
|
getFlag: y,
|
|
6116
6117
|
getUserFlagValue: h,
|
|
6117
6118
|
getBusinessFlagValue: E,
|
|
@@ -6122,25 +6123,25 @@ var Wa = () => Ua();
|
|
|
6122
6123
|
const to = /* @__PURE__ */ xe({
|
|
6123
6124
|
__name: "App",
|
|
6124
6125
|
setup(e) {
|
|
6125
|
-
const A = Yt(), { init:
|
|
6126
|
+
const A = Yt(), { init: m } = Wa();
|
|
6126
6127
|
return kt(async () => {
|
|
6127
|
-
A.registerSidebarComponent(Ia), await
|
|
6128
|
+
A.registerSidebarComponent(Ia), await m({
|
|
6128
6129
|
apiKey: A.namespace.value === "prod" ? "6GhcttsJ9Rj9cTevcdrpin" : "MaGoXrEWuEJNpWgKTqseee"
|
|
6129
6130
|
});
|
|
6130
6131
|
}), (c, n) => {
|
|
6131
|
-
const
|
|
6132
|
-
return Ve(), ke(
|
|
6132
|
+
const u = Gt("RouterView");
|
|
6133
|
+
return Ve(), ke(u);
|
|
6133
6134
|
};
|
|
6134
6135
|
}
|
|
6135
6136
|
}), so = () => {
|
|
6136
|
-
const e = [In, xn, Bn, kn], A = new Set(e.flatMap((
|
|
6137
|
+
const e = [In, xn, Bn, kn], A = new Set(e.flatMap((m) => Object.keys(m)));
|
|
6137
6138
|
return Array.from(A).reduce(
|
|
6138
|
-
(
|
|
6139
|
+
(m, c) => {
|
|
6139
6140
|
const n = c;
|
|
6140
|
-
return
|
|
6141
|
-
...
|
|
6141
|
+
return m[c] = e.reduce((u, y) => ({
|
|
6142
|
+
...u,
|
|
6142
6143
|
...y[n] || {}
|
|
6143
|
-
}), {}),
|
|
6144
|
+
}), {}), m;
|
|
6144
6145
|
},
|
|
6145
6146
|
{}
|
|
6146
6147
|
);
|