@hublo/mstaff-client-sdk 0.2.71 → 0.2.73
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/core.cjs +2 -2
- package/dist/core.js +648 -644
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var C = (e, t, i) => (
|
|
4
|
-
import { getCurrentScope as
|
|
5
|
-
import
|
|
6
|
-
import { defineStore as
|
|
7
|
-
import { useTimeAgo as
|
|
8
|
-
function
|
|
9
|
-
return
|
|
1
|
+
var je = Object.defineProperty;
|
|
2
|
+
var Be = (e, t, i) => t in e ? je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
|
+
var C = (e, t, i) => (Be(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
|
+
import { getCurrentScope as ze, onScopeDispose as Ve, ref as Ue, h as H } from "vue";
|
|
5
|
+
import Fe from "axios";
|
|
6
|
+
import { defineStore as He } from "pinia";
|
|
7
|
+
import { useTimeAgo as Qe } from "@vueuse/core";
|
|
8
|
+
function qe(e) {
|
|
9
|
+
return ze() ? (Ve(e), !0) : !1;
|
|
10
10
|
}
|
|
11
11
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12
12
|
/*!
|
|
@@ -15,73 +15,73 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
|
15
15
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
16
16
|
* MIT Licensed
|
|
17
17
|
*/
|
|
18
|
-
var
|
|
19
|
-
function
|
|
18
|
+
var ce = Ke, ee = We, Ge = Object.prototype.toString, x = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
19
|
+
function Ke(e, t) {
|
|
20
20
|
if (typeof e != "string")
|
|
21
21
|
throw new TypeError("argument str must be a string");
|
|
22
|
-
for (var i = {}, n = t || {}, r = n.decode ||
|
|
23
|
-
var
|
|
24
|
-
if (
|
|
22
|
+
for (var i = {}, n = t || {}, r = n.decode || Je, c = 0; c < e.length; ) {
|
|
23
|
+
var u = e.indexOf("=", c);
|
|
24
|
+
if (u === -1)
|
|
25
25
|
break;
|
|
26
26
|
var m = e.indexOf(";", c);
|
|
27
27
|
if (m === -1)
|
|
28
28
|
m = e.length;
|
|
29
|
-
else if (m <
|
|
30
|
-
c = e.lastIndexOf(";",
|
|
29
|
+
else if (m < u) {
|
|
30
|
+
c = e.lastIndexOf(";", u - 1) + 1;
|
|
31
31
|
continue;
|
|
32
32
|
}
|
|
33
|
-
var
|
|
34
|
-
if (i[
|
|
35
|
-
var s = e.slice(
|
|
36
|
-
s.charCodeAt(0) === 34 && (s = s.slice(1, -1)), i[
|
|
33
|
+
var d = e.slice(c, u).trim();
|
|
34
|
+
if (i[d] === void 0) {
|
|
35
|
+
var s = e.slice(u + 1, m).trim();
|
|
36
|
+
s.charCodeAt(0) === 34 && (s = s.slice(1, -1)), i[d] = Ye(s, r);
|
|
37
37
|
}
|
|
38
38
|
c = m + 1;
|
|
39
39
|
}
|
|
40
40
|
return i;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
var n = i || {}, r = n.encode ||
|
|
42
|
+
function We(e, t, i) {
|
|
43
|
+
var n = i || {}, r = n.encode || Ze;
|
|
44
44
|
if (typeof r != "function")
|
|
45
45
|
throw new TypeError("option encode is invalid");
|
|
46
|
-
if (!
|
|
46
|
+
if (!x.test(e))
|
|
47
47
|
throw new TypeError("argument name is invalid");
|
|
48
48
|
var c = r(t);
|
|
49
|
-
if (c && !
|
|
49
|
+
if (c && !x.test(c))
|
|
50
50
|
throw new TypeError("argument val is invalid");
|
|
51
|
-
var
|
|
51
|
+
var u = e + "=" + c;
|
|
52
52
|
if (n.maxAge != null) {
|
|
53
53
|
var m = n.maxAge - 0;
|
|
54
54
|
if (isNaN(m) || !isFinite(m))
|
|
55
55
|
throw new TypeError("option maxAge is invalid");
|
|
56
|
-
|
|
56
|
+
u += "; Max-Age=" + Math.floor(m);
|
|
57
57
|
}
|
|
58
58
|
if (n.domain) {
|
|
59
|
-
if (!
|
|
59
|
+
if (!x.test(n.domain))
|
|
60
60
|
throw new TypeError("option domain is invalid");
|
|
61
|
-
|
|
61
|
+
u += "; Domain=" + n.domain;
|
|
62
62
|
}
|
|
63
63
|
if (n.path) {
|
|
64
|
-
if (!
|
|
64
|
+
if (!x.test(n.path))
|
|
65
65
|
throw new TypeError("option path is invalid");
|
|
66
|
-
|
|
66
|
+
u += "; Path=" + n.path;
|
|
67
67
|
}
|
|
68
68
|
if (n.expires) {
|
|
69
|
-
var
|
|
70
|
-
if (!
|
|
69
|
+
var d = n.expires;
|
|
70
|
+
if (!Xe(d) || isNaN(d.valueOf()))
|
|
71
71
|
throw new TypeError("option expires is invalid");
|
|
72
|
-
|
|
72
|
+
u += "; Expires=" + d.toUTCString();
|
|
73
73
|
}
|
|
74
|
-
if (n.httpOnly && (
|
|
74
|
+
if (n.httpOnly && (u += "; HttpOnly"), n.secure && (u += "; Secure"), n.partitioned && (u += "; Partitioned"), n.priority) {
|
|
75
75
|
var s = typeof n.priority == "string" ? n.priority.toLowerCase() : n.priority;
|
|
76
76
|
switch (s) {
|
|
77
77
|
case "low":
|
|
78
|
-
|
|
78
|
+
u += "; Priority=Low";
|
|
79
79
|
break;
|
|
80
80
|
case "medium":
|
|
81
|
-
|
|
81
|
+
u += "; Priority=Medium";
|
|
82
82
|
break;
|
|
83
83
|
case "high":
|
|
84
|
-
|
|
84
|
+
u += "; Priority=High";
|
|
85
85
|
break;
|
|
86
86
|
default:
|
|
87
87
|
throw new TypeError("option priority is invalid");
|
|
@@ -91,48 +91,48 @@ function Ge(e, t, i) {
|
|
|
91
91
|
var a = typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite;
|
|
92
92
|
switch (a) {
|
|
93
93
|
case !0:
|
|
94
|
-
|
|
94
|
+
u += "; SameSite=Strict";
|
|
95
95
|
break;
|
|
96
96
|
case "lax":
|
|
97
|
-
|
|
97
|
+
u += "; SameSite=Lax";
|
|
98
98
|
break;
|
|
99
99
|
case "strict":
|
|
100
|
-
|
|
100
|
+
u += "; SameSite=Strict";
|
|
101
101
|
break;
|
|
102
102
|
case "none":
|
|
103
|
-
|
|
103
|
+
u += "; SameSite=None";
|
|
104
104
|
break;
|
|
105
105
|
default:
|
|
106
106
|
throw new TypeError("option sameSite is invalid");
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return u;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Je(e) {
|
|
112
112
|
return e.indexOf("%") !== -1 ? decodeURIComponent(e) : e;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Ze(e) {
|
|
115
115
|
return encodeURIComponent(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
return
|
|
117
|
+
function Xe(e) {
|
|
118
|
+
return Ge.call(e) === "[object Date]" || e instanceof Date;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ye(e, t) {
|
|
121
121
|
try {
|
|
122
122
|
return t(e);
|
|
123
123
|
} catch {
|
|
124
124
|
return e;
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function et() {
|
|
128
128
|
const e = typeof global > "u" ? void 0 : global.TEST_HAS_DOCUMENT_COOKIE;
|
|
129
129
|
return typeof e == "boolean" ? e : typeof document == "object" && typeof document.cookie == "string";
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return typeof e == "string" ?
|
|
131
|
+
function tt(e) {
|
|
132
|
+
return typeof e == "string" ? ce(e) : typeof e == "object" && e !== null ? e : {};
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
const i =
|
|
134
|
+
function Q(e, t = {}) {
|
|
135
|
+
const i = nt(e);
|
|
136
136
|
if (!t.doNotParse)
|
|
137
137
|
try {
|
|
138
138
|
return JSON.parse(i);
|
|
@@ -140,19 +140,19 @@ function F(e, t = {}) {
|
|
|
140
140
|
}
|
|
141
141
|
return e;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function nt(e) {
|
|
144
144
|
return e && e[0] === "j" && e[1] === ":" ? e.substr(2) : e;
|
|
145
145
|
}
|
|
146
|
-
class
|
|
146
|
+
class it {
|
|
147
147
|
constructor(t, i = {}) {
|
|
148
148
|
this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => {
|
|
149
149
|
if (!this.HAS_DOCUMENT_COOKIE)
|
|
150
150
|
return;
|
|
151
151
|
const r = this.cookies;
|
|
152
|
-
this.cookies =
|
|
152
|
+
this.cookies = ce(document.cookie), this._checkChanges(r);
|
|
153
153
|
};
|
|
154
154
|
const n = typeof document > "u" ? "" : document.cookie;
|
|
155
|
-
this.cookies =
|
|
155
|
+
this.cookies = tt(t || n), this.defaultSetOptions = i, this.HAS_DOCUMENT_COOKIE = et();
|
|
156
156
|
}
|
|
157
157
|
_emitChange(t) {
|
|
158
158
|
for (let i = 0; i < this.changeListeners.length; ++i)
|
|
@@ -162,7 +162,7 @@ class tt {
|
|
|
162
162
|
new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach((n) => {
|
|
163
163
|
t[n] !== this.cookies[n] && this._emitChange({
|
|
164
164
|
name: n,
|
|
165
|
-
value:
|
|
165
|
+
value: Q(this.cookies[n])
|
|
166
166
|
});
|
|
167
167
|
});
|
|
168
168
|
}
|
|
@@ -173,23 +173,23 @@ class tt {
|
|
|
173
173
|
this.pollingInterval && clearInterval(this.pollingInterval);
|
|
174
174
|
}
|
|
175
175
|
get(t, i = {}) {
|
|
176
|
-
return i.doNotUpdate || this.update(),
|
|
176
|
+
return i.doNotUpdate || this.update(), Q(this.cookies[t], i);
|
|
177
177
|
}
|
|
178
178
|
getAll(t = {}) {
|
|
179
179
|
t.doNotUpdate || this.update();
|
|
180
180
|
const i = {};
|
|
181
181
|
for (let n in this.cookies)
|
|
182
|
-
i[n] =
|
|
182
|
+
i[n] = Q(this.cookies[n], t);
|
|
183
183
|
return i;
|
|
184
184
|
}
|
|
185
185
|
set(t, i, n) {
|
|
186
186
|
n ? n = Object.assign(Object.assign({}, this.defaultSetOptions), n) : n = this.defaultSetOptions;
|
|
187
187
|
const r = typeof i == "string" ? i : JSON.stringify(i);
|
|
188
|
-
this.cookies = Object.assign(Object.assign({}, this.cookies), { [t]: r }), this.HAS_DOCUMENT_COOKIE && (document.cookie =
|
|
188
|
+
this.cookies = Object.assign(Object.assign({}, this.cookies), { [t]: r }), this.HAS_DOCUMENT_COOKIE && (document.cookie = ee(t, r, n)), this._emitChange({ name: t, value: i, options: n });
|
|
189
189
|
}
|
|
190
190
|
remove(t, i) {
|
|
191
191
|
const n = i = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), i), { expires: new Date(1970, 1, 1, 0, 0, 1), maxAge: 0 });
|
|
192
|
-
this.cookies = Object.assign({}, this.cookies), delete this.cookies[t], this.HAS_DOCUMENT_COOKIE && (document.cookie =
|
|
192
|
+
this.cookies = Object.assign({}, this.cookies), delete this.cookies[t], this.HAS_DOCUMENT_COOKIE && (document.cookie = ee(t, "", n)), this._emitChange({ name: t, value: void 0, options: i });
|
|
193
193
|
}
|
|
194
194
|
addChangeListener(t) {
|
|
195
195
|
this.changeListeners.push(t), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 1 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.addEventListener("change", this.update) : this._startPolling());
|
|
@@ -199,35 +199,35 @@ class tt {
|
|
|
199
199
|
i >= 0 && this.changeListeners.splice(i, 1), this.HAS_DOCUMENT_COOKIE && this.changeListeners.length === 0 && (typeof window == "object" && "cookieStore" in window ? window.cookieStore.removeEventListener("change", this.update) : this._stopPolling());
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function rt(e, { doNotParse: t = !1, autoUpdateDependencies: i = !1 } = {}, n = new it()) {
|
|
203
203
|
const r = i ? [...e || []] : e;
|
|
204
204
|
let c = n.getAll({ doNotParse: !0 });
|
|
205
|
-
const
|
|
206
|
-
const
|
|
207
|
-
|
|
205
|
+
const u = Ue(0), m = () => {
|
|
206
|
+
const d = n.getAll({ doNotParse: !0 });
|
|
207
|
+
st(
|
|
208
208
|
r || null,
|
|
209
|
-
|
|
209
|
+
d,
|
|
210
210
|
c
|
|
211
|
-
) &&
|
|
211
|
+
) && u.value++, c = d;
|
|
212
212
|
};
|
|
213
|
-
return n.addChangeListener(m),
|
|
213
|
+
return n.addChangeListener(m), qe(() => {
|
|
214
214
|
n.removeChangeListener(m);
|
|
215
215
|
}), {
|
|
216
216
|
/**
|
|
217
217
|
* Reactive get cookie by name. If **autoUpdateDependencies = true** then it will update watching dependencies
|
|
218
218
|
*/
|
|
219
|
-
get: (...
|
|
219
|
+
get: (...d) => (i && r && !r.includes(d[0]) && r.push(d[0]), u.value, n.get(d[0], { doNotParse: t, ...d[1] })),
|
|
220
220
|
/**
|
|
221
221
|
* Reactive get all cookies
|
|
222
222
|
*/
|
|
223
|
-
getAll: (...
|
|
224
|
-
set: (...
|
|
225
|
-
remove: (...
|
|
226
|
-
addChangeListener: (...
|
|
227
|
-
removeChangeListener: (...
|
|
223
|
+
getAll: (...d) => (u.value, n.getAll({ doNotParse: t, ...d[0] })),
|
|
224
|
+
set: (...d) => n.set(...d),
|
|
225
|
+
remove: (...d) => n.remove(...d),
|
|
226
|
+
addChangeListener: (...d) => n.addChangeListener(...d),
|
|
227
|
+
removeChangeListener: (...d) => n.removeChangeListener(...d)
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function st(e, t, i) {
|
|
231
231
|
if (!e)
|
|
232
232
|
return !0;
|
|
233
233
|
for (const n of e)
|
|
@@ -235,37 +235,55 @@ function it(e, t, i) {
|
|
|
235
235
|
return !0;
|
|
236
236
|
return !1;
|
|
237
237
|
}
|
|
238
|
-
const
|
|
238
|
+
const Hi = () => {
|
|
239
239
|
let e = !1;
|
|
240
240
|
return function(t) {
|
|
241
241
|
(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0, 4))) && (e = !0);
|
|
242
242
|
}(navigator.userAgent || navigator.vendor || window.opera), e;
|
|
243
|
-
},
|
|
243
|
+
}, Qi = () => typeof window < "u" && typeof window.document < "u", T = () => typeof process < "u" && process.versions != null && process.versions.node != null, ot = (e, t) => (console.log(t), console.log(te(t)), K(e, te(t))), K = (e, t) => {
|
|
244
|
+
const i = {};
|
|
245
|
+
return ne(t).forEach((n) => i[n] = K(e == null ? void 0 : e[n], t[n])), "$item" in t && (e == null || e.forEach((n, r) => i[r] = K(n, t.$item))), i.$valid = (!t.$asserts || t.$asserts.every((n) => n(e))) && ne(i).every((n) => i[n].$valid), i;
|
|
246
|
+
}, te = (e) => dt(
|
|
247
|
+
Object.entries(e).reduce((t, [i, n]) => (t[`${i.replaceAll(".[]", ".$item")}${i.length ? "." : ""}$asserts`] = Array.isArray(n) ? n : [n], t), {})
|
|
248
|
+
), qi = (e, t, i) => (e = JSON.parse(JSON.stringify(e)), de(e).forEach((r) => {
|
|
249
|
+
const c = r.replace(/\.[0-9]+/g, ".[]");
|
|
250
|
+
O(t, `${r}.$valid`) === !1 && i[c] !== void 0 && D(e, r, i[c]);
|
|
251
|
+
}), e), ne = (e) => Object.keys(e).filter((t) => !t.startsWith("$")), Gi = (e) => typeof e == "boolean", Ki = (e) => typeof e == "number", Wi = (e) => typeof e == "string", Y = (e) => Array.isArray(e), U = (e) => typeof e == "object" && !Y(e) && e !== null, Ji = (e) => e instanceof Date, Zi = (e) => typeof e == "function", at = (e) => e === null, ct = (e) => e === void 0, ut = (e) => at(e) || ct(e), Xi = (e) => !ut(e), Yi = (e) => !!e, er = (e) => !e, tr = (e, t) => Y(e) && e.every((i) => t(i)), nr = (e, t) => U(e) && Object.values(e).every((i) => t(i)), ir = (e, t) => ot(e, t).$valid, O = (e, t, i) => {
|
|
244
252
|
const n = typeof t == "string" ? t.split(".") : [t];
|
|
245
253
|
let r = e;
|
|
246
|
-
const c = (m) => m != null,
|
|
247
|
-
for (const [m,
|
|
254
|
+
const c = (m) => m != null, u = (m) => typeof m == "object";
|
|
255
|
+
for (const [m, d] of n.entries()) {
|
|
248
256
|
if (!c(r))
|
|
249
257
|
return i;
|
|
250
258
|
if (m === n.length - 1)
|
|
251
|
-
return c(r[
|
|
252
|
-
if (!
|
|
259
|
+
return c(r[d]) ? r[d] : i;
|
|
260
|
+
if (!u(r[d]))
|
|
253
261
|
return i;
|
|
254
|
-
r = r[
|
|
262
|
+
r = r[d];
|
|
255
263
|
}
|
|
256
264
|
return i;
|
|
257
|
-
},
|
|
265
|
+
}, D = (e, t, i) => {
|
|
258
266
|
const n = typeof t == "string" ? t.split(".") : [t], r = (m) => typeof m == "number" || /^\d$/g.test(m), c = (m) => parseInt(m, 10);
|
|
259
|
-
let
|
|
260
|
-
return n.forEach((m,
|
|
261
|
-
if (
|
|
262
|
-
|
|
267
|
+
let u = e;
|
|
268
|
+
return n.forEach((m, d) => {
|
|
269
|
+
if (d === n.length - 1)
|
|
270
|
+
u[m] = i;
|
|
263
271
|
else {
|
|
264
|
-
const s = r(n[
|
|
265
|
-
m = r(m) ? c(m) : m,
|
|
272
|
+
const s = r(n[d + 1]) ? [] : {};
|
|
273
|
+
m = r(m) ? c(m) : m, u[m] = u[m] ?? s, u = u[m];
|
|
266
274
|
}
|
|
267
275
|
}), e;
|
|
268
|
-
},
|
|
276
|
+
}, dt = (e, t = {}) => {
|
|
277
|
+
const i = U(e) ? Object.entries(e) : e;
|
|
278
|
+
for (const [n, r] of i)
|
|
279
|
+
D(t, n, r);
|
|
280
|
+
return t;
|
|
281
|
+
}, rr = (e, t = {}) => {
|
|
282
|
+
const i = U(e) ? Object.entries(e) : e;
|
|
283
|
+
for (const [n, r] of i)
|
|
284
|
+
D(t, n, r(t, n));
|
|
285
|
+
return t;
|
|
286
|
+
}, lt = (e) => {
|
|
269
287
|
if (typeof e == "object") {
|
|
270
288
|
if (Array.isArray(e))
|
|
271
289
|
return [...e];
|
|
@@ -273,30 +291,37 @@ const Fi = () => {
|
|
|
273
291
|
return { ...e };
|
|
274
292
|
}
|
|
275
293
|
return e;
|
|
276
|
-
},
|
|
294
|
+
}, ue = (e, t) => {
|
|
277
295
|
const i = { ...e };
|
|
278
296
|
for (const [n, r] of Object.entries(t))
|
|
279
|
-
n in i && typeof i[n] == "object" && typeof r == "object" ? i[n] =
|
|
297
|
+
n in i && typeof i[n] == "object" && typeof r == "object" ? i[n] = ue(i[n], r) : i[n] = lt(r);
|
|
280
298
|
return i;
|
|
281
|
-
},
|
|
282
|
-
const
|
|
299
|
+
}, de = (e, t = () => !0, i = "") => {
|
|
300
|
+
const n = [];
|
|
301
|
+
for (const r in e) {
|
|
302
|
+
const c = e[r], u = i ? `${i}.${r}` : r;
|
|
303
|
+
t(r, u, c) && (n.push(u), (U(c) || Y(c)) && n.push(...de(c, t, u)));
|
|
304
|
+
}
|
|
305
|
+
return n;
|
|
306
|
+
}, sr = (e) => e.startsWith("http:") ? e.replace("http:", "https:") : e, or = (e, t = !1) => e.startsWith("http:") || e.startsWith("https:") ? e : t ? `https://${e}` : `http://${e}`, le = () => typeof window < "u" && (window != null && window.location) ? new URL(window.location).hostname : void 0, ie = () => {
|
|
307
|
+
const e = le();
|
|
283
308
|
return !e || e === "localhost" ? e : `.${e}`;
|
|
284
|
-
},
|
|
309
|
+
}, mt = () => ({ path: "/" }), ft = (e) => ({
|
|
285
310
|
path: "/",
|
|
286
311
|
domain: e,
|
|
287
312
|
sameSite: "none",
|
|
288
313
|
secure: !0
|
|
289
|
-
}),
|
|
290
|
-
if (!(
|
|
291
|
-
return e.startsWith("localhost") ?
|
|
314
|
+
}), q = (e) => {
|
|
315
|
+
if (!(T() || !e))
|
|
316
|
+
return e.startsWith("localhost") ? mt() : ft(e);
|
|
292
317
|
};
|
|
293
|
-
function
|
|
294
|
-
const e =
|
|
318
|
+
function pt() {
|
|
319
|
+
const e = rt(), t = (c) => e.get(c), i = (c, u) => e.set(
|
|
295
320
|
c,
|
|
296
|
-
|
|
297
|
-
|
|
321
|
+
u,
|
|
322
|
+
q(ie())
|
|
298
323
|
), n = (c) => {
|
|
299
|
-
e.remove(c), e.remove(c,
|
|
324
|
+
e.remove(c), e.remove(c, q(le())), e.remove(c, q(ie()));
|
|
300
325
|
};
|
|
301
326
|
return {
|
|
302
327
|
getItem: t,
|
|
@@ -305,14 +330,14 @@ function at() {
|
|
|
305
330
|
clear: () => Object.keys(e.getAll()).forEach((c) => n(c))
|
|
306
331
|
};
|
|
307
332
|
}
|
|
308
|
-
let
|
|
309
|
-
function
|
|
333
|
+
let _ = null;
|
|
334
|
+
function V(e = {
|
|
310
335
|
auth: "token",
|
|
311
336
|
refresh: "refresh_token",
|
|
312
337
|
expiration: "token_expiration_date"
|
|
313
|
-
}, t =
|
|
314
|
-
if (
|
|
315
|
-
return
|
|
338
|
+
}, t = pt()) {
|
|
339
|
+
if (_)
|
|
340
|
+
return _;
|
|
316
341
|
function i() {
|
|
317
342
|
return t.getItem(e.auth);
|
|
318
343
|
}
|
|
@@ -323,18 +348,18 @@ function z(e = {
|
|
|
323
348
|
return t.getItem(e.expiration);
|
|
324
349
|
}
|
|
325
350
|
function c(p, h) {
|
|
326
|
-
const
|
|
327
|
-
if (!
|
|
351
|
+
const w = a(p);
|
|
352
|
+
if (!w.exp)
|
|
328
353
|
throw new Error("Invalid JWT token.");
|
|
329
|
-
t.setItem(e.auth, p), t.setItem(e.refresh, h), t.setItem(e.expiration, ((
|
|
354
|
+
t.setItem(e.auth, p), t.setItem(e.refresh, h), t.setItem(e.expiration, ((w.exp - 60) * 1e3).toString());
|
|
330
355
|
}
|
|
331
|
-
function
|
|
356
|
+
function u() {
|
|
332
357
|
t.removeItem(e.auth), t.removeItem(e.refresh), t.removeItem(e.expiration);
|
|
333
358
|
}
|
|
334
359
|
function m() {
|
|
335
|
-
return
|
|
360
|
+
return d() && !s();
|
|
336
361
|
}
|
|
337
|
-
function
|
|
362
|
+
function d() {
|
|
338
363
|
return !!i();
|
|
339
364
|
}
|
|
340
365
|
function s() {
|
|
@@ -347,44 +372,44 @@ function z(e = {
|
|
|
347
372
|
function f() {
|
|
348
373
|
return t;
|
|
349
374
|
}
|
|
350
|
-
return
|
|
375
|
+
return _ = {
|
|
351
376
|
keys: e,
|
|
352
377
|
getAuthToken: i,
|
|
353
378
|
getRefreshToken: n,
|
|
354
379
|
getExpiration: r,
|
|
355
380
|
authenticate: c,
|
|
356
|
-
clear:
|
|
381
|
+
clear: u,
|
|
357
382
|
isAuthenticated: m,
|
|
358
|
-
hasAuth:
|
|
383
|
+
hasAuth: d,
|
|
359
384
|
isExpired: s,
|
|
360
385
|
getStorage: f
|
|
361
|
-
},
|
|
386
|
+
}, _;
|
|
362
387
|
}
|
|
363
|
-
function
|
|
388
|
+
function ht(e) {
|
|
364
389
|
let t = {
|
|
365
390
|
"Content-Type": "application/json"
|
|
366
391
|
};
|
|
367
392
|
e && i(e);
|
|
368
|
-
function i(
|
|
369
|
-
return t =
|
|
393
|
+
function i(w, b = !1) {
|
|
394
|
+
return t = b ? w : { ...t, ...w }, this;
|
|
370
395
|
}
|
|
371
396
|
function n() {
|
|
372
397
|
return t;
|
|
373
398
|
}
|
|
374
|
-
function r(
|
|
375
|
-
return t[
|
|
399
|
+
function r(w, b) {
|
|
400
|
+
return t[w] = b, this;
|
|
376
401
|
}
|
|
377
|
-
function c(
|
|
378
|
-
return t[
|
|
402
|
+
function c(w) {
|
|
403
|
+
return t[w];
|
|
379
404
|
}
|
|
380
|
-
function
|
|
381
|
-
return t[
|
|
405
|
+
function u(w) {
|
|
406
|
+
return t[w] && delete t[w], this;
|
|
382
407
|
}
|
|
383
|
-
function m(
|
|
384
|
-
return r("Authorization", "Bearer " +
|
|
408
|
+
function m(w) {
|
|
409
|
+
return r("Authorization", "Bearer " + w), this;
|
|
385
410
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
411
|
+
function d() {
|
|
412
|
+
return u("Authorization"), this;
|
|
388
413
|
}
|
|
389
414
|
function s() {
|
|
390
415
|
return !!c("Authorization");
|
|
@@ -406,9 +431,9 @@ function ct(e) {
|
|
|
406
431
|
getHeaders: n,
|
|
407
432
|
setHeader: r,
|
|
408
433
|
getHeader: c,
|
|
409
|
-
removeHeader:
|
|
434
|
+
removeHeader: u,
|
|
410
435
|
setAuthorization: m,
|
|
411
|
-
removeAuthorization:
|
|
436
|
+
removeAuthorization: d,
|
|
412
437
|
hasAuthorization: s,
|
|
413
438
|
setFormData: a,
|
|
414
439
|
setJson: f,
|
|
@@ -416,7 +441,7 @@ function ct(e) {
|
|
|
416
441
|
isJson: h
|
|
417
442
|
};
|
|
418
443
|
}
|
|
419
|
-
function
|
|
444
|
+
function yt(e) {
|
|
420
445
|
let t = null;
|
|
421
446
|
e && i(e);
|
|
422
447
|
function i(r) {
|
|
@@ -432,23 +457,23 @@ function ut(e) {
|
|
|
432
457
|
getMethod: n
|
|
433
458
|
};
|
|
434
459
|
}
|
|
435
|
-
function
|
|
460
|
+
function gt(e, t, i) {
|
|
436
461
|
let n = null;
|
|
437
462
|
i && r(i);
|
|
438
463
|
function r(s) {
|
|
439
464
|
if (!["post", "put", "patch"].includes(e.getMethod()))
|
|
440
465
|
throw new Error("Payload can only be set for POST, PUT and PATCH requests.");
|
|
441
|
-
return s instanceof FormData ? t.setFormData() :
|
|
466
|
+
return s instanceof FormData ? t.setFormData() : u(s) && (s = m(s), t.setFormData()), t.isFormData() && e.getMethod() === "put" && (e.setMethod("post"), s.append("_method", "PUT")), n = s, this;
|
|
442
467
|
}
|
|
443
468
|
function c() {
|
|
444
469
|
return n;
|
|
445
470
|
}
|
|
446
|
-
function
|
|
471
|
+
function u(s) {
|
|
447
472
|
for (const a in s) {
|
|
448
473
|
const f = s[a];
|
|
449
|
-
if (
|
|
474
|
+
if (d(f))
|
|
450
475
|
return !0;
|
|
451
|
-
if (typeof f == "object" &&
|
|
476
|
+
if (typeof f == "object" && u(f))
|
|
452
477
|
return !0;
|
|
453
478
|
}
|
|
454
479
|
return !1;
|
|
@@ -457,12 +482,12 @@ function dt(e, t, i) {
|
|
|
457
482
|
const p = !a;
|
|
458
483
|
p && (a = new FormData());
|
|
459
484
|
for (const h in s) {
|
|
460
|
-
const
|
|
461
|
-
|
|
485
|
+
const w = s[h];
|
|
486
|
+
d(w) ? (s[h] = "<<FileIndex:" + f + ">>", a.append(f, w, w.name), f++) : typeof w == "object" && (s[h] = m(s[h], a, f));
|
|
462
487
|
}
|
|
463
488
|
return p ? (a.append("payload", JSON.stringify(s)), a) : s;
|
|
464
489
|
}
|
|
465
|
-
function
|
|
490
|
+
function d(s) {
|
|
466
491
|
return typeof File < "u" && s instanceof File || typeof Blob < "u" && s instanceof Blob;
|
|
467
492
|
}
|
|
468
493
|
return {
|
|
@@ -509,55 +534,55 @@ const E = class E {
|
|
|
509
534
|
};
|
|
510
535
|
/** Possible logging level by order of verbosity (more verbose first) */
|
|
511
536
|
C(E, "LEVEL_DEBUG", 0), C(E, "LEVEL_INFO", 1), C(E, "LEVEL_WARN", 2), C(E, "LEVEL_ERROR", 3), C(E, "LEVEL_OFF", 4);
|
|
512
|
-
let
|
|
537
|
+
let W = E;
|
|
513
538
|
const j = (e, t, i) => {
|
|
514
539
|
t ? e(t, ...i) : e(...i);
|
|
515
|
-
}, A = new
|
|
540
|
+
}, A = new W({
|
|
516
541
|
prefix: "[SDK]"
|
|
517
542
|
});
|
|
518
|
-
let
|
|
519
|
-
const
|
|
543
|
+
let me = null, fe = null, pe = null, he = "/", ye = null;
|
|
544
|
+
const wt = () => me, bt = (e) => {
|
|
520
545
|
if (A.info("[Config] Environment:", e), !e)
|
|
521
546
|
throw new Error("Invalid environment.");
|
|
522
|
-
|
|
523
|
-
},
|
|
547
|
+
me = e;
|
|
548
|
+
}, vt = () => fe, At = (e) => {
|
|
524
549
|
if (A.info("[Config] API Host:", e), !e)
|
|
525
550
|
throw new Error("Invalid API host.");
|
|
526
|
-
de = e;
|
|
527
|
-
}, ht = () => fe, yt = (e) => {
|
|
528
551
|
fe = e;
|
|
529
|
-
},
|
|
552
|
+
}, Pt = () => ye, kt = (e) => {
|
|
553
|
+
ye = e;
|
|
554
|
+
}, Rt = () => pe, Et = (e) => {
|
|
530
555
|
if (A.info("[Config] Main App Host:", e), !e)
|
|
531
556
|
throw new Error("Invalid main app host.");
|
|
532
|
-
|
|
533
|
-
},
|
|
534
|
-
A.info("[Config] Base Assets Urls:", e),
|
|
535
|
-
},
|
|
536
|
-
getEnvironment:
|
|
537
|
-
getApiHost:
|
|
538
|
-
getErrorHandler:
|
|
539
|
-
setEnvironment:
|
|
540
|
-
setApiHost:
|
|
541
|
-
setErrorHandler:
|
|
542
|
-
getMainAppHost:
|
|
543
|
-
setMainAppHost:
|
|
544
|
-
setBaseAssetsUrl:
|
|
545
|
-
getBaseAssetsUrl:
|
|
557
|
+
pe = e;
|
|
558
|
+
}, It = (e) => {
|
|
559
|
+
A.info("[Config] Base Assets Urls:", e), he = e;
|
|
560
|
+
}, Ct = () => he, $ = {
|
|
561
|
+
getEnvironment: wt,
|
|
562
|
+
getApiHost: vt,
|
|
563
|
+
getErrorHandler: Pt,
|
|
564
|
+
setEnvironment: bt,
|
|
565
|
+
setApiHost: At,
|
|
566
|
+
setErrorHandler: kt,
|
|
567
|
+
getMainAppHost: Rt,
|
|
568
|
+
setMainAppHost: Et,
|
|
569
|
+
setBaseAssetsUrl: It,
|
|
570
|
+
getBaseAssetsUrl: Ct
|
|
546
571
|
};
|
|
547
|
-
function
|
|
548
|
-
const t =
|
|
572
|
+
function St(e) {
|
|
573
|
+
const t = $.getApiHost().replace(/\/$/g, "");
|
|
549
574
|
let i = null, n = {}, r = {};
|
|
550
575
|
e && m(e);
|
|
551
576
|
function c() {
|
|
552
|
-
return t +
|
|
577
|
+
return t + d() + h();
|
|
553
578
|
}
|
|
554
|
-
function
|
|
555
|
-
return
|
|
579
|
+
function u() {
|
|
580
|
+
return d(!0, !0);
|
|
556
581
|
}
|
|
557
582
|
function m(l) {
|
|
558
583
|
return i = "/" + l.replace(/^\//g, ""), this;
|
|
559
584
|
}
|
|
560
|
-
function
|
|
585
|
+
function d(l = !0, P = !1) {
|
|
561
586
|
return l ? i.replace(/:(\w+)/g, (R, I) => P ? "*" : r[I] || ":" + I) : i;
|
|
562
587
|
}
|
|
563
588
|
function s(l) {
|
|
@@ -584,10 +609,10 @@ function At(e) {
|
|
|
584
609
|
P += (P.length ? "&" : "") + R + "=" + n[R];
|
|
585
610
|
return (l ? "?" : "") + P;
|
|
586
611
|
}
|
|
587
|
-
function
|
|
612
|
+
function w(l) {
|
|
588
613
|
return r = l, this;
|
|
589
614
|
}
|
|
590
|
-
function
|
|
615
|
+
function b(l, P) {
|
|
591
616
|
return r[l] = P, this;
|
|
592
617
|
}
|
|
593
618
|
function S(l) {
|
|
@@ -595,41 +620,41 @@ function At(e) {
|
|
|
595
620
|
}
|
|
596
621
|
return {
|
|
597
622
|
setPath: m,
|
|
598
|
-
getPath:
|
|
623
|
+
getPath: d,
|
|
599
624
|
getUri: c,
|
|
600
|
-
getMockUri:
|
|
625
|
+
getMockUri: u,
|
|
601
626
|
setQueryParams: s,
|
|
602
627
|
setQueryParam: a,
|
|
603
628
|
removeQueryParam: f,
|
|
604
629
|
hasQuery: p,
|
|
605
630
|
getQueryString: h,
|
|
606
|
-
setRouteParams:
|
|
607
|
-
setRouteParam:
|
|
631
|
+
setRouteParams: w,
|
|
632
|
+
setRouteParam: b,
|
|
608
633
|
removeRouteParam: S
|
|
609
634
|
};
|
|
610
635
|
}
|
|
611
|
-
function
|
|
636
|
+
function Ot(e) {
|
|
612
637
|
let t = [];
|
|
613
638
|
function i() {
|
|
614
|
-
return t = s(arguments),
|
|
639
|
+
return t = s(arguments), u(), this;
|
|
615
640
|
}
|
|
616
641
|
function n() {
|
|
617
642
|
return t.length > 0;
|
|
618
643
|
}
|
|
619
644
|
function r(a) {
|
|
620
|
-
return t.includes(a.trim()) ? this : (t.push(a.trim()),
|
|
645
|
+
return t.includes(a.trim()) ? this : (t.push(a.trim()), u(), this);
|
|
621
646
|
}
|
|
622
647
|
function c(a) {
|
|
623
648
|
const f = t.indexOf(a.trim());
|
|
624
|
-
return f === -1 ? this : (t.splice(f, 1),
|
|
649
|
+
return f === -1 ? this : (t.splice(f, 1), u(), this);
|
|
625
650
|
}
|
|
626
|
-
function
|
|
627
|
-
t.length ? e.setQueryParam("groups",
|
|
651
|
+
function u() {
|
|
652
|
+
t.length ? e.setQueryParam("groups", d(t)) : e.removeQueryParam("groups");
|
|
628
653
|
}
|
|
629
654
|
function m(a) {
|
|
630
655
|
return a.split(",").map((f) => f.trim());
|
|
631
656
|
}
|
|
632
|
-
function
|
|
657
|
+
function d(a) {
|
|
633
658
|
return a.join(",");
|
|
634
659
|
}
|
|
635
660
|
function s(a) {
|
|
@@ -643,12 +668,12 @@ function Pt(e) {
|
|
|
643
668
|
removeGroup: c
|
|
644
669
|
};
|
|
645
670
|
}
|
|
646
|
-
function
|
|
671
|
+
function $t(e) {
|
|
647
672
|
let t = !1, i = !1, n = 1, r = 10;
|
|
648
673
|
function c() {
|
|
649
|
-
return t = !0,
|
|
674
|
+
return t = !0, u(), this;
|
|
650
675
|
}
|
|
651
|
-
function
|
|
676
|
+
function u() {
|
|
652
677
|
i = !0;
|
|
653
678
|
const h = p(arguments);
|
|
654
679
|
return s(h.page || 1, !1), a(h.perPage || r, !1), f(), this;
|
|
@@ -656,52 +681,52 @@ function kt(e) {
|
|
|
656
681
|
function m() {
|
|
657
682
|
return i = !1, f(), this;
|
|
658
683
|
}
|
|
659
|
-
function
|
|
684
|
+
function d() {
|
|
660
685
|
return i;
|
|
661
686
|
}
|
|
662
|
-
function s(h,
|
|
663
|
-
return t = !0, i = !0, n = h,
|
|
687
|
+
function s(h, w = !0) {
|
|
688
|
+
return t = !0, i = !0, n = h, w && f(), this;
|
|
664
689
|
}
|
|
665
|
-
function a(h,
|
|
666
|
-
return t = !0, i = !0, r = h,
|
|
690
|
+
function a(h, w = !0) {
|
|
691
|
+
return t = !0, i = !0, r = h, w && f(), this;
|
|
667
692
|
}
|
|
668
693
|
function f() {
|
|
669
|
-
t ?
|
|
694
|
+
t ? d() ? (e.removeQueryParam("pagination"), e.setQueryParam("page", n), e.setQueryParam("nbResultPerPage", r)) : (e.removeQueryParam("page"), e.removeQueryParam("nbResultPerPage"), e.setQueryParam("pagination", "false")) : (e.removeQueryParam("page"), e.removeQueryParam("nbResultPerPage"), e.removeQueryParam("pagination"));
|
|
670
695
|
}
|
|
671
696
|
function p(h) {
|
|
672
697
|
if (h.length === 1 && typeof h[0] == "object")
|
|
673
698
|
return h[0];
|
|
674
|
-
const
|
|
675
|
-
return h.length >= 1 && (
|
|
699
|
+
const w = {};
|
|
700
|
+
return h.length >= 1 && (w.page = h[0]), h.length >= 2 && (w.perPage = h[1]), w;
|
|
676
701
|
}
|
|
677
702
|
return {
|
|
678
703
|
isList: c,
|
|
679
|
-
paginate:
|
|
704
|
+
paginate: u,
|
|
680
705
|
disablePagination: m,
|
|
681
|
-
hasPagination:
|
|
706
|
+
hasPagination: d,
|
|
682
707
|
setPage: s,
|
|
683
708
|
setPerPage: a
|
|
684
709
|
};
|
|
685
710
|
}
|
|
686
|
-
function
|
|
711
|
+
function Tt(e) {
|
|
687
712
|
let t = !1, i = "id", n = "ASC";
|
|
688
713
|
function r() {
|
|
689
714
|
t = !0;
|
|
690
715
|
const a = s(arguments);
|
|
691
|
-
return a.orderBy &&
|
|
716
|
+
return a.orderBy && u(a.orderBy, !1), a.orderDir && m(a.orderDir, !1), d(), this;
|
|
692
717
|
}
|
|
693
718
|
function c() {
|
|
694
719
|
return t;
|
|
695
720
|
}
|
|
696
|
-
function
|
|
697
|
-
return t = !0, i = a, f &&
|
|
721
|
+
function u(a, f = !0) {
|
|
722
|
+
return t = !0, i = a, f && d(), this;
|
|
698
723
|
}
|
|
699
724
|
function m(a, f = !0) {
|
|
700
725
|
if (a = a.toUpperCase(), ["ASC", "DESC"].indexOf(a) === -1)
|
|
701
726
|
throw new Error("Invalid order direction");
|
|
702
|
-
return t = !0, n = a, f &&
|
|
727
|
+
return t = !0, n = a, f && d(), this;
|
|
703
728
|
}
|
|
704
|
-
function
|
|
729
|
+
function d() {
|
|
705
730
|
c() && (e.setQueryParam("orderBy", i), e.setQueryParam("orderDirection", n));
|
|
706
731
|
}
|
|
707
732
|
function s(a) {
|
|
@@ -713,11 +738,11 @@ function Rt(e) {
|
|
|
713
738
|
return {
|
|
714
739
|
setOrder: r,
|
|
715
740
|
hasOrder: c,
|
|
716
|
-
setOrderBy:
|
|
741
|
+
setOrderBy: u,
|
|
717
742
|
setOrderDir: m
|
|
718
743
|
};
|
|
719
744
|
}
|
|
720
|
-
function
|
|
745
|
+
function Lt() {
|
|
721
746
|
let e = !1;
|
|
722
747
|
function t() {
|
|
723
748
|
return e = !0, this;
|
|
@@ -730,7 +755,7 @@ function Et() {
|
|
|
730
755
|
isSilent: i
|
|
731
756
|
};
|
|
732
757
|
}
|
|
733
|
-
function
|
|
758
|
+
function Mt() {
|
|
734
759
|
let e = "json";
|
|
735
760
|
function t(n = "json") {
|
|
736
761
|
if (["arraybuffer", "document", "json", "text", "stream", "blob"].indexOf(n) === -1)
|
|
@@ -745,7 +770,7 @@ function It() {
|
|
|
745
770
|
getResponseType: i
|
|
746
771
|
};
|
|
747
772
|
}
|
|
748
|
-
function
|
|
773
|
+
function Nt(e) {
|
|
749
774
|
function t() {
|
|
750
775
|
return e;
|
|
751
776
|
}
|
|
@@ -761,15 +786,15 @@ function Ct(e) {
|
|
|
761
786
|
getPayload: n
|
|
762
787
|
};
|
|
763
788
|
}
|
|
764
|
-
function
|
|
789
|
+
function Dt(e, t = !1) {
|
|
765
790
|
let i = !1, n = !1;
|
|
766
|
-
return e.response ? (i = !0, n = !0) : e.request && (i = !0), !t &&
|
|
791
|
+
return e.response ? (i = !0, n = !0) : e.request && (i = !0), !t && $.getErrorHandler() && $.getErrorHandler()(e), {
|
|
767
792
|
sent: i,
|
|
768
793
|
responded: n,
|
|
769
794
|
error: e
|
|
770
795
|
};
|
|
771
796
|
}
|
|
772
|
-
function
|
|
797
|
+
function xt(e) {
|
|
773
798
|
function t() {
|
|
774
799
|
return e;
|
|
775
800
|
}
|
|
@@ -785,13 +810,13 @@ function Ot(e) {
|
|
|
785
810
|
function c() {
|
|
786
811
|
return r() ? e.data["hydra:member"] : null;
|
|
787
812
|
}
|
|
788
|
-
function
|
|
813
|
+
function u() {
|
|
789
814
|
return r() ? e.data["hydra:totalItems"] : null;
|
|
790
815
|
}
|
|
791
816
|
function m() {
|
|
792
817
|
return r() ? e.data["hydra:view"] && e.data["hydra:view"]["hydra:last"] : !1;
|
|
793
818
|
}
|
|
794
|
-
function
|
|
819
|
+
function d() {
|
|
795
820
|
return !r() || !m() ? null : parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1]);
|
|
796
821
|
}
|
|
797
822
|
function s() {
|
|
@@ -803,47 +828,47 @@ function Ot(e) {
|
|
|
803
828
|
getPayload: n,
|
|
804
829
|
isCollection: r,
|
|
805
830
|
getCollection: c,
|
|
806
|
-
getTotal:
|
|
831
|
+
getTotal: u,
|
|
807
832
|
hasPagination: m,
|
|
808
|
-
getPage:
|
|
833
|
+
getPage: d,
|
|
809
834
|
getPages: s
|
|
810
835
|
};
|
|
811
836
|
}
|
|
812
|
-
function
|
|
813
|
-
async function
|
|
814
|
-
const
|
|
815
|
-
["post", "put", "patch"].includes(
|
|
837
|
+
function _t(e, t, i, n, r, c) {
|
|
838
|
+
async function u() {
|
|
839
|
+
const d = i.getMethod(), s = t.getUri(), a = e.getHeaders(), f = n.getPayload(), p = [s];
|
|
840
|
+
["post", "put", "patch"].includes(d) && p.push(f || {}), p.push({
|
|
816
841
|
headers: a,
|
|
817
842
|
responseType: c.getResponseType()
|
|
818
|
-
}), A.info("[Request] Sending request:", `[${
|
|
843
|
+
}), A.info("[Request] Sending request:", `[${d.toUpperCase()}]`, s);
|
|
819
844
|
try {
|
|
820
|
-
const h = await
|
|
845
|
+
const h = await Fe[d](...p);
|
|
821
846
|
return m(h);
|
|
822
847
|
} catch (h) {
|
|
823
|
-
throw
|
|
848
|
+
throw Dt(h, r.isSilent());
|
|
824
849
|
}
|
|
825
850
|
}
|
|
826
|
-
function m(
|
|
827
|
-
if (
|
|
828
|
-
const s = Object.keys(
|
|
829
|
-
if (a !== -1 &&
|
|
830
|
-
return
|
|
851
|
+
function m(d) {
|
|
852
|
+
if (d.headers) {
|
|
853
|
+
const s = Object.keys(d.headers), a = s.map((f) => f.toLowerCase()).indexOf("content-type");
|
|
854
|
+
if (a !== -1 && d.headers[s[a]].includes("application/ld+json"))
|
|
855
|
+
return xt(d);
|
|
831
856
|
}
|
|
832
|
-
return
|
|
857
|
+
return Nt(d);
|
|
833
858
|
}
|
|
834
859
|
return {
|
|
835
|
-
send:
|
|
860
|
+
send: u
|
|
836
861
|
};
|
|
837
862
|
}
|
|
838
863
|
function k(e, t = "get", i = null) {
|
|
839
|
-
const n =
|
|
864
|
+
const n = ht(), r = St(e), c = yt(t), u = gt(c, n, i), m = Ot(r), d = $t(r), s = Tt(r), a = Lt(), f = Mt(), p = _t(n, r, c, u, a, f);
|
|
840
865
|
return {
|
|
841
866
|
...n,
|
|
842
867
|
...r,
|
|
843
868
|
...c,
|
|
844
|
-
...d,
|
|
845
|
-
...m,
|
|
846
869
|
...u,
|
|
870
|
+
...m,
|
|
871
|
+
...d,
|
|
847
872
|
...s,
|
|
848
873
|
...a,
|
|
849
874
|
...f,
|
|
@@ -851,7 +876,7 @@ function k(e, t = "get", i = null) {
|
|
|
851
876
|
};
|
|
852
877
|
}
|
|
853
878
|
function g(e, t = "get", i = null) {
|
|
854
|
-
const n = k(e, t, i), r =
|
|
879
|
+
const n = k(e, t, i), r = V();
|
|
855
880
|
r.isAuthenticated() && n.setAuthorization(r.getAuthToken());
|
|
856
881
|
const c = n.send;
|
|
857
882
|
return n.send = async function() {
|
|
@@ -860,127 +885,127 @@ function g(e, t = "get", i = null) {
|
|
|
860
885
|
return c();
|
|
861
886
|
}, n;
|
|
862
887
|
}
|
|
863
|
-
const
|
|
864
|
-
listByCandidateAndEstablishment:
|
|
865
|
-
}),
|
|
866
|
-
share:
|
|
867
|
-
isArchived:
|
|
868
|
-
archive:
|
|
869
|
-
unarchive:
|
|
870
|
-
lookupCandidate:
|
|
871
|
-
createCandidate:
|
|
872
|
-
updateCandidate:
|
|
873
|
-
closeIncompleteRegistration:
|
|
874
|
-
openNewRegistration:
|
|
875
|
-
updateInvitation:
|
|
876
|
-
}),
|
|
877
|
-
getForEstablishmentCandidate:
|
|
878
|
-
postForEstablishmentCandidate:
|
|
879
|
-
update:
|
|
880
|
-
remove:
|
|
881
|
-
}),
|
|
882
|
-
list:
|
|
883
|
-
listByEstablishment:
|
|
884
|
-
}),
|
|
885
|
-
list:
|
|
886
|
-
markAsSeen:
|
|
887
|
-
}),
|
|
888
|
-
syncCandidateLabels:
|
|
889
|
-
}),
|
|
890
|
-
list:
|
|
891
|
-
}),
|
|
892
|
-
listByCandidate:
|
|
893
|
-
listByCandidateAndEstablishmentFromRecruiter:
|
|
894
|
-
listByCandidateAndEstablishmentFromCandidate:
|
|
895
|
-
addFromRecruiter:
|
|
896
|
-
remove:
|
|
897
|
-
}),
|
|
898
|
-
listByCandidateAndEstablishment:
|
|
899
|
-
}),
|
|
900
|
-
sendToCandidate:
|
|
901
|
-
sendToRecipients:
|
|
902
|
-
}),
|
|
888
|
+
const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), ar = () => ({
|
|
889
|
+
listByCandidateAndEstablishment: jt
|
|
890
|
+
}), Bt = (e, t, i) => g("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(i), zt = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), Vt = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), Ut = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Ft = (e, t) => g("/v2/candidates/lookup").setQueryParam("email", e).setQueryParam("establishment-id", t), Ht = (e, t) => g("/v2/candidates").setMethod("post").setQueryParam("establishment-id", e).setPayload(t), Qt = (e, t, i) => g("/v2/candidates/:candidateId").setQueryParam("establishment-id", t).setRouteParams({ candidateId: e }).setMethod("put").setPayload(i), qt = (e) => g("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({ registrationToken: e }), Gt = (e) => g("/candidate/register/open").setMethod("post").setQueryParam("groups", "register:token").setPayload(e), Kt = (e, t) => g("/establishment/:establishmentId:/candidate/invitation").setRouteParams({ establishmentId: e }).setMethod("post").setPayload(t), cr = () => ({
|
|
891
|
+
share: Bt,
|
|
892
|
+
isArchived: zt,
|
|
893
|
+
archive: Vt,
|
|
894
|
+
unarchive: Ut,
|
|
895
|
+
lookupCandidate: Ft,
|
|
896
|
+
createCandidate: Ht,
|
|
897
|
+
updateCandidate: Qt,
|
|
898
|
+
closeIncompleteRegistration: qt,
|
|
899
|
+
openNewRegistration: Gt,
|
|
900
|
+
updateInvitation: Kt
|
|
901
|
+
}), Wt = (e, t) => g("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), Jt = (e, t, i) => g("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(i), Zt = (e, t) => g("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), Xt = (e) => g("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"), ur = () => ({
|
|
902
|
+
getForEstablishmentCandidate: Wt,
|
|
903
|
+
postForEstablishmentCandidate: Jt,
|
|
904
|
+
update: Zt,
|
|
905
|
+
remove: Xt
|
|
906
|
+
}), Yt = () => k("contractType").isList().addGroup("Term:id").addGroup("Term:name"), en = (e, t = !0) => g("contractType/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), dr = () => ({
|
|
907
|
+
list: Yt,
|
|
908
|
+
listByEstablishment: en
|
|
909
|
+
}), tn = (e) => g("/v2/talents").isList().setQueryParam("establishment-id", e), nn = (e) => g("/v2/talent/mark-as-seen/:talentId").setRouteParams({ talentId: e }).setMethod("post"), lr = () => ({
|
|
910
|
+
list: tn,
|
|
911
|
+
markAsSeen: nn
|
|
912
|
+
}), rn = (e, t, i) => g("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(i), mr = () => ({
|
|
913
|
+
syncCandidateLabels: rn
|
|
914
|
+
}), sn = () => k("diploma").isList().addGroup("Term:id").addGroup("Term:name"), fr = () => ({
|
|
915
|
+
list: sn
|
|
916
|
+
}), on = (e) => g("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), an = (e, t) => g("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), cn = (e, t) => g("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), un = (e) => g("document/recruiter").setMethod("post").setPayload(e), dn = (e) => g("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"), pr = () => ({
|
|
917
|
+
listByCandidate: on,
|
|
918
|
+
listByCandidateAndEstablishmentFromRecruiter: an,
|
|
919
|
+
listByCandidateAndEstablishmentFromCandidate: cn,
|
|
920
|
+
addFromRecruiter: un,
|
|
921
|
+
remove: dn
|
|
922
|
+
}), ln = (e, t) => g("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), hr = () => ({
|
|
923
|
+
listByCandidateAndEstablishment: ln
|
|
924
|
+
}), mn = (e, t) => g("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), fn = (e, t) => g("/v2/emails/send").setMethod("post").setPayload({ recipientIds: e, ...t }), yr = () => ({
|
|
925
|
+
sendToCandidate: mn,
|
|
926
|
+
sendToRecipients: fn
|
|
927
|
+
}), pn = (e, t = !0) => {
|
|
903
928
|
const i = g("/v2/establishments/:establishmentId/email-templates").setRouteParams({ establishmentId: e }).isList().disablePagination();
|
|
904
929
|
return t && i.setQueryParam("global", !0), i;
|
|
905
|
-
},
|
|
906
|
-
listByEstablishment:
|
|
907
|
-
listSelf:
|
|
908
|
-
}),
|
|
930
|
+
}, hn = () => g("/v2/self/email-templates").isList().disablePagination(), gr = () => ({
|
|
931
|
+
listByEstablishment: pn,
|
|
932
|
+
listSelf: hn
|
|
933
|
+
}), yn = (e, t) => g("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: t }), gn = (e, t = "published") => g("establishment-career/:establishmentId/state/:state").setRouteParams({ establishmentId: e, state: t }), wn = (e, t, i = null) => {
|
|
909
934
|
const n = i !== null ? g("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: i }) : g("establishment-career/:establishmentId").setRouteParams({ establishmentId: e });
|
|
910
935
|
return n.setMethod("post").setPayload(t), n;
|
|
911
|
-
},
|
|
912
|
-
readById:
|
|
913
|
-
readByState:
|
|
914
|
-
upsert:
|
|
915
|
-
uploadLogoAndBanner:
|
|
916
|
-
publish:
|
|
917
|
-
}),
|
|
918
|
-
read:
|
|
919
|
-
authorizations:
|
|
920
|
-
}),
|
|
921
|
-
maintenanceModeEnabled:
|
|
922
|
-
forEstablishment:
|
|
923
|
-
}),
|
|
924
|
-
list:
|
|
925
|
-
listByEstablishment:
|
|
926
|
-
}),
|
|
927
|
-
listByEstablishment:
|
|
928
|
-
addToEstablishment:
|
|
929
|
-
update:
|
|
930
|
-
remove:
|
|
931
|
-
syncForCandidate:
|
|
932
|
-
}),
|
|
933
|
-
read:
|
|
934
|
-
}),
|
|
936
|
+
}, bn = (e, t) => g("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), vn = (e, t, i) => g("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(i), wr = () => ({
|
|
937
|
+
readById: yn,
|
|
938
|
+
readByState: gn,
|
|
939
|
+
upsert: wn,
|
|
940
|
+
uploadLogoAndBanner: bn,
|
|
941
|
+
publish: vn
|
|
942
|
+
}), An = (e) => k("establishment/:establishmentId").setRouteParams({ establishmentId: e }), Pn = (e) => g("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), ge = () => ({
|
|
943
|
+
read: An,
|
|
944
|
+
authorizations: Pn
|
|
945
|
+
}), kn = (e) => k("feature-flag/maintenance").setMethod("post").setPayload(e), Rn = (e, t) => k("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), br = () => ({
|
|
946
|
+
maintenanceModeEnabled: kn,
|
|
947
|
+
forEstablishment: Rn
|
|
948
|
+
}), En = () => k("job").isList().addGroup("Term:id").addGroup("Term:name"), In = (e, t = !0) => g("job/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), vr = () => ({
|
|
949
|
+
list: En,
|
|
950
|
+
listByEstablishment: In
|
|
951
|
+
}), Cn = (e) => g("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Sn = (e, t) => g("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), On = (e, t) => g("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), $n = (e) => g("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), Tn = (e, t, i) => g("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(i).setRouteParams({ establishmentId: e, candidateId: t }), Ar = () => ({
|
|
952
|
+
listByEstablishment: Cn,
|
|
953
|
+
addToEstablishment: Sn,
|
|
954
|
+
update: On,
|
|
955
|
+
remove: $n,
|
|
956
|
+
syncForCandidate: Tn
|
|
957
|
+
}), Ln = (e) => k("offer/:offerId").setRouteParams({ offerId: e }), Pr = () => ({
|
|
958
|
+
read: Ln
|
|
959
|
+
}), Mn = (e, t = !1) => {
|
|
935
960
|
const i = g("/recruiter/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e });
|
|
936
961
|
return t && i.setQueryParam("exclude-me", 1), i;
|
|
937
|
-
},
|
|
938
|
-
listByEstablishment:
|
|
939
|
-
}),
|
|
940
|
-
read:
|
|
941
|
-
mineByEstablishment:
|
|
942
|
-
mineWithoutCandidate:
|
|
943
|
-
mineWithCandidate:
|
|
944
|
-
withCandidate:
|
|
945
|
-
addCandidates:
|
|
946
|
-
removeCandidate:
|
|
947
|
-
}),
|
|
962
|
+
}, kr = () => ({
|
|
963
|
+
listByEstablishment: Mn
|
|
964
|
+
}), Nn = (e) => g("/recruitment/:recruitmentId").setRouteParams({ recruitmentId: e }), Dn = (e) => g("/recruitment/mine/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), xn = (e, t) => g("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), _n = (e, t) => g("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), jn = (e, t) => g("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Bn = (e, t) => g("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({ recruitmentId: e }).setPayload(t), zn = (e, t) => g("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({ recruitmentId: e, candidateId: t }), Rr = () => ({
|
|
965
|
+
read: Nn,
|
|
966
|
+
mineByEstablishment: Dn,
|
|
967
|
+
mineWithoutCandidate: xn,
|
|
968
|
+
mineWithCandidate: _n,
|
|
969
|
+
withCandidate: jn,
|
|
970
|
+
addCandidates: Bn,
|
|
971
|
+
removeCandidate: zn
|
|
972
|
+
}), Vn = (e, t, i, n = null) => {
|
|
948
973
|
const r = k("candidate/register/open").setMethod("post"), c = { email: e };
|
|
949
974
|
return t === "establishment" && (c.establishmentId = i), t === "offer" && (c.offerId = i), n && (c.referer = n), r.setPayload(c), r;
|
|
950
|
-
},
|
|
951
|
-
open:
|
|
952
|
-
update:
|
|
953
|
-
read:
|
|
954
|
-
close:
|
|
955
|
-
}),
|
|
956
|
-
lookupEstablishment:
|
|
957
|
-
}),
|
|
958
|
-
list:
|
|
959
|
-
listByEstablishment:
|
|
960
|
-
}),
|
|
961
|
-
listByEstablishment:
|
|
962
|
-
}),
|
|
963
|
-
lookupTalent:
|
|
964
|
-
addCandidateToTalentPool:
|
|
965
|
-
}),
|
|
966
|
-
emailExists:
|
|
967
|
-
self:
|
|
968
|
-
byUuidPrivate:
|
|
969
|
-
byUuid:
|
|
970
|
-
fetchUuid:
|
|
975
|
+
}, Un = (e, t) => k("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), Fn = (e) => k("candidate/register/read/:token").setRouteParams({ token: e }), Hn = (e) => k("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }), Er = () => ({
|
|
976
|
+
open: Vn,
|
|
977
|
+
update: Un,
|
|
978
|
+
read: Fn,
|
|
979
|
+
close: Hn
|
|
980
|
+
}), Qn = (e, t) => g("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Ir = () => ({
|
|
981
|
+
lookupEstablishment: Qn
|
|
982
|
+
}), qn = () => k("speciality").isList().addGroup("Term:id").addGroup("Term:name"), Gn = (e, t = !0) => g("speciality/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), Cr = () => ({
|
|
983
|
+
list: qn,
|
|
984
|
+
listByEstablishment: Gn
|
|
985
|
+
}), Kn = (e) => g("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Sr = () => ({
|
|
986
|
+
listByEstablishment: Kn
|
|
987
|
+
}), Wn = (e, t) => g("/v2/talents/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Jn = (e) => g("/v2/talents/index").setMethod("post").setPayload(e), Or = () => ({
|
|
988
|
+
lookupTalent: Wn,
|
|
989
|
+
addCandidateToTalentPool: Jn
|
|
990
|
+
}), Zn = (e) => k("user/email/isset/:email").setRouteParams({ email: e }), Xn = () => g("user/self").addGroup("user:self"), Yn = (e) => g("/user/:uuid").setRouteParams({ uuid: e }), ei = (e) => k("/user/:uuid").setRouteParams({ uuid: e }), ti = (e) => g("/user/:id/uuid").setRouteParams({ id: e }), we = () => ({
|
|
991
|
+
emailExists: Zn,
|
|
992
|
+
self: Xn,
|
|
993
|
+
byUuidPrivate: Yn,
|
|
994
|
+
byUuid: ei,
|
|
995
|
+
fetchUuid: ti
|
|
971
996
|
});
|
|
972
|
-
let
|
|
973
|
-
function
|
|
974
|
-
if (
|
|
975
|
-
return
|
|
997
|
+
let B;
|
|
998
|
+
function ni() {
|
|
999
|
+
if (B)
|
|
1000
|
+
return B;
|
|
976
1001
|
const e = {
|
|
977
1002
|
user: void 0,
|
|
978
1003
|
roles: [],
|
|
979
1004
|
establishments: {}
|
|
980
1005
|
}, t = async () => {
|
|
981
|
-
if (!
|
|
1006
|
+
if (!V().isAuthenticated())
|
|
982
1007
|
throw new Error("::SDK Authorization:: User not authenticated");
|
|
983
|
-
const s = (await
|
|
1008
|
+
const s = (await we().self().send()).getData();
|
|
984
1009
|
e.user = {
|
|
985
1010
|
id: s.id,
|
|
986
1011
|
email: s.email,
|
|
@@ -989,15 +1014,15 @@ function Wn() {
|
|
|
989
1014
|
avatar: s.avatar
|
|
990
1015
|
}, e.roles = s.roles;
|
|
991
1016
|
}, i = async (s) => {
|
|
992
|
-
if (!
|
|
1017
|
+
if (!V().isAuthenticated())
|
|
993
1018
|
throw new Error("::SDK Authorization:: User not authenticated");
|
|
994
|
-
e.establishments[s] = (await
|
|
1019
|
+
e.establishments[s] = (await ge().authorizations(s).send()).getData();
|
|
995
1020
|
}, n = (s) => {
|
|
996
1021
|
if (e.user === void 0)
|
|
997
1022
|
throw new Error("::SDK Authorization:: User not fetched");
|
|
998
1023
|
return e.roles.includes(s);
|
|
999
1024
|
};
|
|
1000
|
-
return
|
|
1025
|
+
return B = {
|
|
1001
1026
|
fetchSelf: t,
|
|
1002
1027
|
fetchPermission: i,
|
|
1003
1028
|
hasRole: n,
|
|
@@ -1013,12 +1038,12 @@ function Wn() {
|
|
|
1013
1038
|
clear: () => {
|
|
1014
1039
|
e.user = void 0, e.roles = [], e.establishments = {};
|
|
1015
1040
|
}
|
|
1016
|
-
},
|
|
1041
|
+
}, B;
|
|
1017
1042
|
}
|
|
1018
|
-
async function
|
|
1019
|
-
if (!
|
|
1043
|
+
async function $r(e, ...t) {
|
|
1044
|
+
if (!V().isAuthenticated())
|
|
1020
1045
|
throw "ERR_NOT_AUTHENTICATED";
|
|
1021
|
-
const n =
|
|
1046
|
+
const n = ni();
|
|
1022
1047
|
await Promise.all([
|
|
1023
1048
|
n.fetchSelf(),
|
|
1024
1049
|
n.fetchPermission(e)
|
|
@@ -1029,7 +1054,7 @@ async function yr(e, ...t) {
|
|
|
1029
1054
|
throw "ERR_MISSING_PERMISSION";
|
|
1030
1055
|
}
|
|
1031
1056
|
}
|
|
1032
|
-
const
|
|
1057
|
+
const Tr = He("authorization", {
|
|
1033
1058
|
state: () => ({
|
|
1034
1059
|
user: void 0,
|
|
1035
1060
|
establishments: {}
|
|
@@ -1049,13 +1074,13 @@ const gr = Ue("authorization", {
|
|
|
1049
1074
|
actions: {
|
|
1050
1075
|
async fetchSelf(e) {
|
|
1051
1076
|
if (this.user === void 0 || e) {
|
|
1052
|
-
const t = await
|
|
1077
|
+
const t = await we().self().send();
|
|
1053
1078
|
this.user = t.getData();
|
|
1054
1079
|
}
|
|
1055
1080
|
},
|
|
1056
1081
|
async fetchPermission(e, t) {
|
|
1057
1082
|
if (!this.establishments[e] || t) {
|
|
1058
|
-
const i = await
|
|
1083
|
+
const i = await ge().authorizations(e).send();
|
|
1059
1084
|
this.establishments[e] = i.getData();
|
|
1060
1085
|
}
|
|
1061
1086
|
},
|
|
@@ -1069,12 +1094,12 @@ let M = null;
|
|
|
1069
1094
|
function y() {
|
|
1070
1095
|
if (M)
|
|
1071
1096
|
return M;
|
|
1072
|
-
const e =
|
|
1097
|
+
const e = $.getEnvironment(), t = (() => e === "prod" || e === "production" ? "pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp" : e === "staging" ? "823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF" : "TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(), i = !!t, n = e !== "prod" && e !== "production";
|
|
1073
1098
|
let r = null;
|
|
1074
1099
|
function c() {
|
|
1075
1100
|
return i;
|
|
1076
1101
|
}
|
|
1077
|
-
function
|
|
1102
|
+
function u() {
|
|
1078
1103
|
const p = window.analytics = window.analytics || [];
|
|
1079
1104
|
if (!p.initialize && p.invoked)
|
|
1080
1105
|
A.error("Segment snippet included twice.");
|
|
@@ -1083,19 +1108,19 @@ function y() {
|
|
|
1083
1108
|
return function() {
|
|
1084
1109
|
if (window.analytics.initialized)
|
|
1085
1110
|
return window.analytics[h].apply(window.analytics, arguments);
|
|
1086
|
-
const
|
|
1087
|
-
return
|
|
1111
|
+
const w = Array.prototype.slice.call(arguments);
|
|
1112
|
+
return w.unshift(h), p.push(w), p;
|
|
1088
1113
|
};
|
|
1089
1114
|
};
|
|
1090
1115
|
for (let h = 0; h < p.methods.length; h++) {
|
|
1091
|
-
const
|
|
1092
|
-
p[
|
|
1116
|
+
const w = p.methods[h];
|
|
1117
|
+
p[w] = p.factory(w);
|
|
1093
1118
|
}
|
|
1094
|
-
p.load = function(h,
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1119
|
+
p.load = function(h, w) {
|
|
1120
|
+
const b = document.createElement("script");
|
|
1121
|
+
b.id = "analytics-script", b.type = "text/javascript", b.async = !0, b.src = "https://cdn.segment.com/analytics.js/v1/" + h + "/analytics.min.js", b.onerror = () => window.dispatchEvent(new Event("analytics-error"));
|
|
1097
1122
|
const S = document.getElementsByTagName("script")[0];
|
|
1098
|
-
S.parentNode.insertBefore(
|
|
1123
|
+
S.parentNode.insertBefore(b, S), p._loadOptions = w;
|
|
1099
1124
|
}, p._writeKey = t, p.SNIPPET_VERSION = "4.16.1", p.load(t), p.page(), p.ready(() => window.dispatchEvent(new Event("analytics-ready")));
|
|
1100
1125
|
}
|
|
1101
1126
|
}
|
|
@@ -1109,11 +1134,11 @@ function y() {
|
|
|
1109
1134
|
f("Analytics script failed to load. Consider disabling your AdBlocker.", null, "error"), h();
|
|
1110
1135
|
}), f("Loading Analytics script."), window.analytics)
|
|
1111
1136
|
return p();
|
|
1112
|
-
|
|
1137
|
+
u();
|
|
1113
1138
|
})), r;
|
|
1114
1139
|
}
|
|
1115
|
-
async function
|
|
1116
|
-
if (
|
|
1140
|
+
async function d(p, h) {
|
|
1141
|
+
if (!T())
|
|
1117
1142
|
try {
|
|
1118
1143
|
if (await this.analyticsScriptReady(), f("[identify]", [p, h]), c())
|
|
1119
1144
|
return window.analytics.identify(p, h);
|
|
@@ -1121,48 +1146,48 @@ function y() {
|
|
|
1121
1146
|
f("[identify]", [p, h], "error");
|
|
1122
1147
|
}
|
|
1123
1148
|
}
|
|
1124
|
-
async function s(p, h,
|
|
1125
|
-
if (
|
|
1126
|
-
typeof
|
|
1149
|
+
async function s(p, h, w) {
|
|
1150
|
+
if (!T()) {
|
|
1151
|
+
typeof w != "object" && (w = {});
|
|
1127
1152
|
try {
|
|
1128
|
-
if (await this.analyticsScriptReady(), f("[page]", [p, h,
|
|
1153
|
+
if (await this.analyticsScriptReady(), f("[page]", [p, h, w]), c())
|
|
1129
1154
|
return window.analytics.page(p, {
|
|
1130
1155
|
category: h,
|
|
1131
|
-
...
|
|
1156
|
+
...w
|
|
1132
1157
|
});
|
|
1133
|
-
} catch (
|
|
1134
|
-
console.log(
|
|
1158
|
+
} catch (b) {
|
|
1159
|
+
console.log(b), f("[page]", [p, h, w], "error");
|
|
1135
1160
|
}
|
|
1136
1161
|
}
|
|
1137
1162
|
}
|
|
1138
|
-
async function a(p, h,
|
|
1139
|
-
if (
|
|
1140
|
-
typeof
|
|
1163
|
+
async function a(p, h, w) {
|
|
1164
|
+
if (!T()) {
|
|
1165
|
+
typeof w != "object" && (w = {});
|
|
1141
1166
|
try {
|
|
1142
|
-
if (await this.analyticsScriptReady(), f("[track]", [p, h,
|
|
1167
|
+
if (await this.analyticsScriptReady(), f("[track]", [p, h, w]), c())
|
|
1143
1168
|
return window.analytics.track(p, {
|
|
1144
1169
|
category: h,
|
|
1145
|
-
...
|
|
1170
|
+
...w
|
|
1146
1171
|
});
|
|
1147
1172
|
} catch {
|
|
1148
|
-
f("[track]", [p, h,
|
|
1173
|
+
f("[track]", [p, h, w], "error");
|
|
1149
1174
|
}
|
|
1150
1175
|
}
|
|
1151
1176
|
}
|
|
1152
|
-
function f(p, h = [],
|
|
1153
|
-
h || (h = []), n && A[
|
|
1177
|
+
function f(p, h = [], w = "info") {
|
|
1178
|
+
h || (h = []), n && A[w](`::SDK Analytics:: ${p}`, ...h);
|
|
1154
1179
|
}
|
|
1155
1180
|
return M = {
|
|
1156
1181
|
analyticsScriptReady: m,
|
|
1157
1182
|
isEnabled: c,
|
|
1158
|
-
identify:
|
|
1183
|
+
identify: d,
|
|
1159
1184
|
page: s,
|
|
1160
1185
|
track: a,
|
|
1161
1186
|
consoleMessage: f
|
|
1162
1187
|
}, M;
|
|
1163
1188
|
}
|
|
1164
1189
|
y.destroy = () => M = null;
|
|
1165
|
-
function
|
|
1190
|
+
function ii() {
|
|
1166
1191
|
const e = "Hubler Application";
|
|
1167
1192
|
function t(s) {
|
|
1168
1193
|
if (!s)
|
|
@@ -1189,13 +1214,13 @@ function Jn() {
|
|
|
1189
1214
|
async function c(s) {
|
|
1190
1215
|
return y().page("Application Information Viewed", e, t(s));
|
|
1191
1216
|
}
|
|
1192
|
-
async function
|
|
1217
|
+
async function u(s) {
|
|
1193
1218
|
return y().page("Application Document Viewed", e, t(s));
|
|
1194
1219
|
}
|
|
1195
1220
|
async function m(s) {
|
|
1196
1221
|
return y().page("Application Success Viewed", e, t(s));
|
|
1197
1222
|
}
|
|
1198
|
-
async function
|
|
1223
|
+
async function d(s) {
|
|
1199
1224
|
if (!s.error)
|
|
1200
1225
|
throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);
|
|
1201
1226
|
return y().track("Application Form Failed", e, { ...t(s), error: s.error });
|
|
@@ -1205,12 +1230,12 @@ function Jn() {
|
|
|
1205
1230
|
applicationMagicLinkViewed: n,
|
|
1206
1231
|
applicationJobViewed: r,
|
|
1207
1232
|
applicationInformationViewed: c,
|
|
1208
|
-
applicationDocumentViewed:
|
|
1233
|
+
applicationDocumentViewed: u,
|
|
1209
1234
|
applicationSuccessViewed: m,
|
|
1210
|
-
applicationFormFailed:
|
|
1235
|
+
applicationFormFailed: d
|
|
1211
1236
|
};
|
|
1212
1237
|
}
|
|
1213
|
-
function
|
|
1238
|
+
function ri() {
|
|
1214
1239
|
const e = "Profile";
|
|
1215
1240
|
function t(l, P) {
|
|
1216
1241
|
var I;
|
|
@@ -1234,13 +1259,13 @@ function Zn() {
|
|
|
1234
1259
|
async function c(l) {
|
|
1235
1260
|
return y().track(l.name, e, t(l.properties, !0));
|
|
1236
1261
|
}
|
|
1237
|
-
async function
|
|
1262
|
+
async function u(l) {
|
|
1238
1263
|
return y().track(l.name, e, t(l.properties, !0));
|
|
1239
1264
|
}
|
|
1240
1265
|
async function m(l) {
|
|
1241
1266
|
return y().track(l.name, e, t(l.properties, !0));
|
|
1242
1267
|
}
|
|
1243
|
-
async function
|
|
1268
|
+
async function d(l) {
|
|
1244
1269
|
return y().track(l.name, e, t(l.properties, !0));
|
|
1245
1270
|
}
|
|
1246
1271
|
async function s(l) {
|
|
@@ -1258,10 +1283,10 @@ function Zn() {
|
|
|
1258
1283
|
async function h(l) {
|
|
1259
1284
|
return y().track(l.name, e, t(l.properties, !0));
|
|
1260
1285
|
}
|
|
1261
|
-
async function
|
|
1286
|
+
async function w(l) {
|
|
1262
1287
|
return y().track(l.name, e, t(l.properties, !0));
|
|
1263
1288
|
}
|
|
1264
|
-
async function
|
|
1289
|
+
async function b(l) {
|
|
1265
1290
|
return y().page(l.name, l.properties.category, t(l.properties, !1));
|
|
1266
1291
|
}
|
|
1267
1292
|
async function S(l) {
|
|
@@ -1272,20 +1297,20 @@ function Zn() {
|
|
|
1272
1297
|
profileLabelAdded: n,
|
|
1273
1298
|
profileLabelRemoved: r,
|
|
1274
1299
|
profileShared: c,
|
|
1275
|
-
profileArchived:
|
|
1300
|
+
profileArchived: u,
|
|
1276
1301
|
profileCandidateAdded: m,
|
|
1277
|
-
profileCommentAdded:
|
|
1302
|
+
profileCommentAdded: d,
|
|
1278
1303
|
profileDocumentAdded: s,
|
|
1279
1304
|
profileDocumentDownloaded: a,
|
|
1280
1305
|
profileDocumentRequested: f,
|
|
1281
1306
|
profileRecruitmentAdded: p,
|
|
1282
1307
|
profileRecruitmentRemoved: h,
|
|
1283
|
-
profileTabSelected:
|
|
1284
|
-
profileViewed:
|
|
1308
|
+
profileTabSelected: w,
|
|
1309
|
+
profileViewed: b,
|
|
1285
1310
|
profileEmailSent: S
|
|
1286
1311
|
};
|
|
1287
1312
|
}
|
|
1288
|
-
function
|
|
1313
|
+
function si() {
|
|
1289
1314
|
const e = "Recruitment";
|
|
1290
1315
|
function t(n) {
|
|
1291
1316
|
if (!n)
|
|
@@ -1302,15 +1327,15 @@ function Xn() {
|
|
|
1302
1327
|
candidateAdded: i
|
|
1303
1328
|
};
|
|
1304
1329
|
}
|
|
1305
|
-
function
|
|
1330
|
+
function oi() {
|
|
1306
1331
|
const e = "Visual Builder";
|
|
1307
|
-
function t(o,
|
|
1332
|
+
function t(o, _e) {
|
|
1308
1333
|
if (!o)
|
|
1309
1334
|
throw new Error(`Missing arguments for domain "${e}"`);
|
|
1310
1335
|
const L = {
|
|
1311
1336
|
companyId: o.companyId ? o.companyId.toString() : null
|
|
1312
1337
|
};
|
|
1313
|
-
return
|
|
1338
|
+
return _e && (L.productId = o.companyId ? o.companyId + "_2" : null), o.selections && (L.selections = o.selections), o.error && (L.error = o.error), o.institutionId && (L.institutionId = [o.institutionId.toString()]), L;
|
|
1314
1339
|
}
|
|
1315
1340
|
async function i(o) {
|
|
1316
1341
|
return y().page(o.name, e, t(o.properties, !0));
|
|
@@ -1324,13 +1349,13 @@ function Yn() {
|
|
|
1324
1349
|
async function c(o) {
|
|
1325
1350
|
return y().page(o.name, e, t(o.properties, !0));
|
|
1326
1351
|
}
|
|
1327
|
-
async function
|
|
1352
|
+
async function u(o) {
|
|
1328
1353
|
return y().page(o.name, e, t(o.properties, !0));
|
|
1329
1354
|
}
|
|
1330
1355
|
async function m(o) {
|
|
1331
1356
|
return y().track(o.name, e, t(o.properties, !0));
|
|
1332
1357
|
}
|
|
1333
|
-
async function
|
|
1358
|
+
async function d(o) {
|
|
1334
1359
|
return y().page(o.name, e, t(o.properties, !0));
|
|
1335
1360
|
}
|
|
1336
1361
|
async function s(o) {
|
|
@@ -1348,10 +1373,10 @@ function Yn() {
|
|
|
1348
1373
|
async function h(o) {
|
|
1349
1374
|
return y().page(o.name, e, t(o.properties, !0));
|
|
1350
1375
|
}
|
|
1351
|
-
async function
|
|
1376
|
+
async function w(o) {
|
|
1352
1377
|
return y().track(o.name, e, t(o.properties, !0));
|
|
1353
1378
|
}
|
|
1354
|
-
async function
|
|
1379
|
+
async function b(o) {
|
|
1355
1380
|
return y().track(o.name, e, t(o.properties, !0));
|
|
1356
1381
|
}
|
|
1357
1382
|
async function S(o) {
|
|
@@ -1369,12 +1394,6 @@ function Yn() {
|
|
|
1369
1394
|
async function I(o) {
|
|
1370
1395
|
return y().page(o.name, e, t(o.properties, !1));
|
|
1371
1396
|
}
|
|
1372
|
-
async function Ae(o) {
|
|
1373
|
-
return y().track(o.name, e, t(o.properties, !0));
|
|
1374
|
-
}
|
|
1375
|
-
async function Pe(o) {
|
|
1376
|
-
return y().track(o.name, e, t(o.properties, !0));
|
|
1377
|
-
}
|
|
1378
1397
|
async function ke(o) {
|
|
1379
1398
|
return y().track(o.name, e, t(o.properties, !0));
|
|
1380
1399
|
}
|
|
@@ -1409,6 +1428,12 @@ function Yn() {
|
|
|
1409
1428
|
return y().track(o.name, e, t(o.properties, !0));
|
|
1410
1429
|
}
|
|
1411
1430
|
async function Ne(o) {
|
|
1431
|
+
return y().track(o.name, e, t(o.properties, !0));
|
|
1432
|
+
}
|
|
1433
|
+
async function De(o) {
|
|
1434
|
+
return y().track(o.name, e, t(o.properties, !0));
|
|
1435
|
+
}
|
|
1436
|
+
async function xe(o) {
|
|
1412
1437
|
return y().page(o.name, e, t(o.properties, !1));
|
|
1413
1438
|
}
|
|
1414
1439
|
return {
|
|
@@ -1416,45 +1441,45 @@ function Yn() {
|
|
|
1416
1441
|
careerSitePublished: n,
|
|
1417
1442
|
setupBenefitCustomAdded: r,
|
|
1418
1443
|
setupBenefitViewed: c,
|
|
1419
|
-
setupCandidateInformationViewed:
|
|
1444
|
+
setupCandidateInformationViewed: u,
|
|
1420
1445
|
setupContactAdded: m,
|
|
1421
|
-
setupContactViewed:
|
|
1446
|
+
setupContactViewed: d,
|
|
1422
1447
|
setupEditionDoneViewed: s,
|
|
1423
1448
|
setupExternalLinkViewed: a,
|
|
1424
1449
|
setupImageUploaded: f,
|
|
1425
1450
|
setupImageViewed: p,
|
|
1426
1451
|
setupLocationViewed: h,
|
|
1427
|
-
setupPresentationContentAdded:
|
|
1428
|
-
setupPresentationNewTabAdded:
|
|
1452
|
+
setupPresentationContentAdded: w,
|
|
1453
|
+
setupPresentationNewTabAdded: b,
|
|
1429
1454
|
setupPresentationViewed: S,
|
|
1430
1455
|
setupSettingsDoneViewed: l,
|
|
1431
1456
|
setupSocialNetworkViewed: P,
|
|
1432
1457
|
setupThemeViewed: R,
|
|
1433
1458
|
visualBuilderViewed: I,
|
|
1434
|
-
setupImageUploadFailed:
|
|
1435
|
-
fastCopyLinkClicked:
|
|
1436
|
-
setupBenefitCustomDeleted:
|
|
1437
|
-
setupBenefitCustomEdited:
|
|
1438
|
-
setupContactDeleted:
|
|
1439
|
-
setupContactEdited:
|
|
1440
|
-
setupContactNewClicked:
|
|
1441
|
-
setupPresentationContentDeleted:
|
|
1442
|
-
setupPresentationContentDuplicated:
|
|
1443
|
-
setupPresentationContentMoved:
|
|
1444
|
-
setupPresentationTabDeleted:
|
|
1445
|
-
setupPresentationTabEdited:
|
|
1446
|
-
setupPresentationTabMoved:
|
|
1447
|
-
setupSEOViewed:
|
|
1459
|
+
setupImageUploadFailed: ke,
|
|
1460
|
+
fastCopyLinkClicked: Re,
|
|
1461
|
+
setupBenefitCustomDeleted: Ee,
|
|
1462
|
+
setupBenefitCustomEdited: Ie,
|
|
1463
|
+
setupContactDeleted: Ce,
|
|
1464
|
+
setupContactEdited: Se,
|
|
1465
|
+
setupContactNewClicked: Oe,
|
|
1466
|
+
setupPresentationContentDeleted: $e,
|
|
1467
|
+
setupPresentationContentDuplicated: Te,
|
|
1468
|
+
setupPresentationContentMoved: Le,
|
|
1469
|
+
setupPresentationTabDeleted: Me,
|
|
1470
|
+
setupPresentationTabEdited: Ne,
|
|
1471
|
+
setupPresentationTabMoved: De,
|
|
1472
|
+
setupSEOViewed: xe
|
|
1448
1473
|
};
|
|
1449
1474
|
}
|
|
1450
|
-
const
|
|
1475
|
+
const re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1451
1476
|
__proto__: null,
|
|
1452
|
-
useAnalyticsHublerApplication:
|
|
1453
|
-
useAnalyticsProfile:
|
|
1454
|
-
useAnalyticsRecruitment:
|
|
1455
|
-
useAnalyticsVisualBuilder:
|
|
1477
|
+
useAnalyticsHublerApplication: ii,
|
|
1478
|
+
useAnalyticsProfile: ri,
|
|
1479
|
+
useAnalyticsRecruitment: si,
|
|
1480
|
+
useAnalyticsVisualBuilder: oi
|
|
1456
1481
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1457
|
-
function
|
|
1482
|
+
function Lr() {
|
|
1458
1483
|
function e(i) {
|
|
1459
1484
|
return y().identify(i.id, {
|
|
1460
1485
|
email: i.email,
|
|
@@ -1476,37 +1501,37 @@ function br() {
|
|
|
1476
1501
|
identifyCandidate: e
|
|
1477
1502
|
};
|
|
1478
1503
|
}
|
|
1479
|
-
let
|
|
1480
|
-
const
|
|
1504
|
+
let z = null;
|
|
1505
|
+
const ai = async (e, t) => {
|
|
1481
1506
|
try {
|
|
1482
|
-
return await
|
|
1507
|
+
return await F(), A.info("[identify]", [e, t]), window.analytics.identify(e, t);
|
|
1483
1508
|
} catch {
|
|
1484
1509
|
A.error("[identify]", [e, t]);
|
|
1485
1510
|
}
|
|
1486
|
-
},
|
|
1511
|
+
}, ci = async (e, t, i) => {
|
|
1487
1512
|
typeof i != "object" && (i = {});
|
|
1488
1513
|
try {
|
|
1489
|
-
return await
|
|
1514
|
+
return await F(), A.info("[page]", [e, t, i]), window.analytics.page(e, {
|
|
1490
1515
|
category: t,
|
|
1491
1516
|
...i
|
|
1492
1517
|
});
|
|
1493
1518
|
} catch {
|
|
1494
1519
|
A.error("[page]", [e, t, i]);
|
|
1495
1520
|
}
|
|
1496
|
-
},
|
|
1521
|
+
}, ui = async (e, t, i) => {
|
|
1497
1522
|
typeof i != "object" && (i = {});
|
|
1498
1523
|
try {
|
|
1499
|
-
return await
|
|
1524
|
+
return await F(), A.info("[track]", [e, t, i]), window.analytics.track(e, {
|
|
1500
1525
|
category: t,
|
|
1501
1526
|
...i
|
|
1502
1527
|
});
|
|
1503
1528
|
} catch {
|
|
1504
1529
|
A.error("[track]", [e, t, i]);
|
|
1505
1530
|
}
|
|
1506
|
-
},
|
|
1507
|
-
const e =
|
|
1531
|
+
}, J = () => {
|
|
1532
|
+
const e = $.getEnvironment();
|
|
1508
1533
|
return e === "prod" || e === "production" ? "pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp" : e === "staging" ? "823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF" : "TMZX6evFnu87JrBHV5qLwHsld5C6hilZ";
|
|
1509
|
-
},
|
|
1534
|
+
}, be = () => {
|
|
1510
1535
|
const e = window.analytics = window.analytics || [];
|
|
1511
1536
|
if (!e.initialize && e.invoked)
|
|
1512
1537
|
A.error("Segment snippet included twice.");
|
|
@@ -1528,44 +1553,44 @@ const ei = async (e, t) => {
|
|
|
1528
1553
|
n.id = "analytics-script", n.type = "text/javascript", n.async = !0, n.src = "https://cdn.segment.com/analytics.js/v1/" + t + "/analytics.min.js", n.onerror = () => window.dispatchEvent(new Event("analytics-error"));
|
|
1529
1554
|
const r = document.getElementsByTagName("script")[0];
|
|
1530
1555
|
r.parentNode.insertBefore(n, r), e._loadOptions = i;
|
|
1531
|
-
}, e._writeKey =
|
|
1556
|
+
}, e._writeKey = J(), e.SNIPPET_VERSION = "4.16.1", e.load(J()), e.page(), e.ready(() => window.dispatchEvent(new Event("analytics-ready")));
|
|
1532
1557
|
}
|
|
1533
|
-
},
|
|
1558
|
+
}, F = () => (z !== null || (z = new Promise((e, t) => {
|
|
1534
1559
|
if (window.addEventListener("analytics-ready", () => {
|
|
1535
1560
|
A.info("Analytics script loaded successfully."), e();
|
|
1536
1561
|
}), window.addEventListener("analytics-error", () => {
|
|
1537
1562
|
A.error("Analytics script failed to load. Consider disabling your AdBlocker."), t();
|
|
1538
1563
|
}), A.info("Loading Analytics script."), window.analytics)
|
|
1539
1564
|
return e();
|
|
1540
|
-
|
|
1541
|
-
})),
|
|
1542
|
-
key:
|
|
1543
|
-
appendScript:
|
|
1544
|
-
ready:
|
|
1545
|
-
identify:
|
|
1546
|
-
page:
|
|
1547
|
-
track:
|
|
1548
|
-
},
|
|
1549
|
-
let
|
|
1550
|
-
const
|
|
1551
|
-
|
|
1552
|
-
}),
|
|
1553
|
-
|
|
1554
|
-
}),
|
|
1565
|
+
be();
|
|
1566
|
+
})), z), Mr = {
|
|
1567
|
+
key: J,
|
|
1568
|
+
appendScript: be,
|
|
1569
|
+
ready: F,
|
|
1570
|
+
identify: ai,
|
|
1571
|
+
page: ci,
|
|
1572
|
+
track: ui
|
|
1573
|
+
}, di = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";
|
|
1574
|
+
let ve = !1;
|
|
1575
|
+
const Ae = () => new Promise((e) => {
|
|
1576
|
+
T() || ve || window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()), fi());
|
|
1577
|
+
}), li = (e, t) => Ae().then(() => {
|
|
1578
|
+
T() || mi(e, t);
|
|
1579
|
+
}), mi = (e, t) => {
|
|
1555
1580
|
const i = new window.google.maps.places.Autocomplete(e, { componentRestrictions: { country: ["fr", "re", "yt", "gp", "mq"] } });
|
|
1556
1581
|
window.google.maps.event.addListener(i, "place_changed", () => {
|
|
1557
1582
|
const n = i.getPlace();
|
|
1558
1583
|
n.formatted_address && t && t(n.formatted_address, n);
|
|
1559
1584
|
});
|
|
1560
|
-
},
|
|
1585
|
+
}, fi = () => {
|
|
1561
1586
|
window.onGmapScriptReady = () => {
|
|
1562
1587
|
};
|
|
1563
1588
|
const e = document.createElement("script");
|
|
1564
|
-
e.src = "https://maps.googleapis.com/maps/api/js?key=" +
|
|
1565
|
-
},
|
|
1566
|
-
scriptReady:
|
|
1567
|
-
autocompleteInput:
|
|
1568
|
-
},
|
|
1589
|
+
e.src = "https://maps.googleapis.com/maps/api/js?key=" + di + "&libraries=places&callback=onGmapScriptReady", e.async = !0, e.defer = !0, e.onload = () => window.dispatchEvent(new Event("gmap-ready")), document.body.appendChild(e), ve = !0;
|
|
1590
|
+
}, Nr = {
|
|
1591
|
+
scriptReady: Ae,
|
|
1592
|
+
autocompleteInput: li
|
|
1593
|
+
}, pi = {
|
|
1569
1594
|
common: {
|
|
1570
1595
|
the: "le",
|
|
1571
1596
|
from: "de"
|
|
@@ -1590,52 +1615,52 @@ const be = () => new Promise((e) => {
|
|
|
1590
1615
|
minute: "minute | minutes",
|
|
1591
1616
|
second: "seconde | secondes"
|
|
1592
1617
|
}
|
|
1593
|
-
},
|
|
1594
|
-
fr:
|
|
1618
|
+
}, hi = {
|
|
1619
|
+
fr: pi
|
|
1595
1620
|
};
|
|
1596
|
-
let
|
|
1597
|
-
const
|
|
1621
|
+
let Z = null;
|
|
1622
|
+
const yi = () => Z, Dr = (e = {}) => {
|
|
1598
1623
|
let t = e.locale || "fr";
|
|
1599
|
-
const i = (
|
|
1600
|
-
const a =
|
|
1601
|
-
return a ? s ?
|
|
1602
|
-
},
|
|
1603
|
-
const a =
|
|
1604
|
-
return a ?
|
|
1624
|
+
const i = (d) => t = d, n = () => t, r = ue(hi, (e == null ? void 0 : e.messages) || {}), c = (d, s) => {
|
|
1625
|
+
const a = O(r, `${t}.${d}`);
|
|
1626
|
+
return a ? s ? gi(a, s) : a : d;
|
|
1627
|
+
}, u = (d, s) => {
|
|
1628
|
+
const a = O(r, `${t}.${d}`);
|
|
1629
|
+
return a ? wi(a, s) : d;
|
|
1605
1630
|
};
|
|
1606
|
-
return
|
|
1631
|
+
return Z = {
|
|
1607
1632
|
t: c,
|
|
1608
|
-
tNode:
|
|
1633
|
+
tNode: u,
|
|
1609
1634
|
setLocale: i,
|
|
1610
1635
|
getLocale: n,
|
|
1611
|
-
install: (
|
|
1612
|
-
|
|
1636
|
+
install: (d) => {
|
|
1637
|
+
d.config.globalProperties.$t = c, d.config.globalProperties.$tNode = u;
|
|
1613
1638
|
}
|
|
1614
|
-
},
|
|
1615
|
-
},
|
|
1639
|
+
}, Z;
|
|
1640
|
+
}, gi = (e, t) => e ? e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g, (i, n) => O(t, n)) : null, wi = (e, t) => {
|
|
1616
1641
|
if (!e)
|
|
1617
1642
|
return null;
|
|
1618
1643
|
const i = e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter((n) => n !== "").map((n) => {
|
|
1619
1644
|
const r = n.startsWith("{%") && n.endsWith("%}") ? "slot" : n.startsWith("{{") && n.endsWith("}}") ? "variable" : "text";
|
|
1620
1645
|
if (r === "text")
|
|
1621
|
-
return () =>
|
|
1646
|
+
return () => se.text(n);
|
|
1622
1647
|
n = n.replace(/[{}%]/g, "").trim();
|
|
1623
1648
|
const c = n.match(/^[a-zA-Z_.]+/)[0];
|
|
1624
1649
|
n = n.replace(c, "").trim();
|
|
1625
|
-
const
|
|
1626
|
-
return n !== "" && ([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((s, a) => (a[3] === void 0 ?
|
|
1650
|
+
const u = {};
|
|
1651
|
+
return n !== "" && ([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((s, a) => (a[3] === void 0 ? D(s, a[1], O(t, a[1])) : D(s, a[1], O(t, a[3])), s), u), [...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((s, a) => {
|
|
1627
1652
|
let f = a[2];
|
|
1628
1653
|
return new RegExp(/^[0-9]*$/).exec(a[2]) ? f = parseInt(a[2]) : new RegExp(/^(true|false)$/).exec(a[2]) && (f = a[2] === "true"), s[a[1]] = f, s;
|
|
1629
|
-
},
|
|
1654
|
+
}, u)), (m) => se[r](c, t, m, u);
|
|
1630
1655
|
});
|
|
1631
1656
|
return { setup: (n, { slots: r }) => () => i.map((c) => c(r)) };
|
|
1632
|
-
},
|
|
1633
|
-
slot: (e, t, i, n) =>
|
|
1634
|
-
variable: (e, t) =>
|
|
1635
|
-
text: (e) =>
|
|
1657
|
+
}, se = {
|
|
1658
|
+
slot: (e, t, i, n) => H("span", { class: "node node--slot" }, i[e.trim()](n)),
|
|
1659
|
+
variable: (e, t) => H("span", { class: "node node--variable" }, O(t, e.trim())),
|
|
1660
|
+
text: (e) => H("span", { class: "node node--text" }, e)
|
|
1636
1661
|
};
|
|
1637
|
-
function
|
|
1638
|
-
const { t } =
|
|
1662
|
+
function xr(e) {
|
|
1663
|
+
const { t } = yi(), i = {
|
|
1639
1664
|
justNow: t("timeAgo.just-now"),
|
|
1640
1665
|
past: (n) => n.match(/\d/) ? t("timeAgo.ago", [n]) : n,
|
|
1641
1666
|
future: (n) => n.match(/\d/) ? t("timeAgo.in", [n]) : n,
|
|
@@ -1648,12 +1673,12 @@ function Pr(e) {
|
|
|
1648
1673
|
second: (n) => `${n} ${t("timeAgo.second", n)}`,
|
|
1649
1674
|
invalid: ""
|
|
1650
1675
|
};
|
|
1651
|
-
return
|
|
1676
|
+
return Qe(e, {
|
|
1652
1677
|
fullDateFormatter: (n) => n.toLocaleDateString(),
|
|
1653
1678
|
messages: i
|
|
1654
1679
|
});
|
|
1655
1680
|
}
|
|
1656
|
-
function
|
|
1681
|
+
function bi() {
|
|
1657
1682
|
let e = null;
|
|
1658
1683
|
function t() {
|
|
1659
1684
|
return e;
|
|
@@ -1670,13 +1695,13 @@ function mi() {
|
|
|
1670
1695
|
function c() {
|
|
1671
1696
|
return e.arguments;
|
|
1672
1697
|
}
|
|
1673
|
-
function
|
|
1698
|
+
function u() {
|
|
1674
1699
|
return !!(e && e.controller && e.action);
|
|
1675
1700
|
}
|
|
1676
1701
|
function m() {
|
|
1677
|
-
window.location.search.length !== 0 && (e = window.location.search.substring(1).split("&").reduce((
|
|
1702
|
+
window.location.search.length !== 0 && (e = window.location.search.substring(1).split("&").reduce((d, s) => {
|
|
1678
1703
|
const a = s.split("=");
|
|
1679
|
-
return a[0] === "controller" || a[0] === "action" ?
|
|
1704
|
+
return a[0] === "controller" || a[0] === "action" ? d[a[0]] = decodeURIComponent(a[1]) : d.arguments[a[0]] = decodeURIComponent(a[1]), d;
|
|
1680
1705
|
}, { controller: null, action: null, arguments: {} }));
|
|
1681
1706
|
}
|
|
1682
1707
|
return m(), {
|
|
@@ -1685,21 +1710,21 @@ function mi() {
|
|
|
1685
1710
|
getControllerComposableName: n,
|
|
1686
1711
|
getAction: r,
|
|
1687
1712
|
getArguments: c,
|
|
1688
|
-
hasAction:
|
|
1713
|
+
hasAction: u
|
|
1689
1714
|
};
|
|
1690
1715
|
}
|
|
1691
|
-
function
|
|
1716
|
+
function vi() {
|
|
1692
1717
|
async function e({ domain: n, event: r, ...c }) {
|
|
1693
|
-
const
|
|
1694
|
-
if (!t(
|
|
1718
|
+
const u = "useAnalytics" + n.charAt(0).toUpperCase() + n.slice(1);
|
|
1719
|
+
if (!t(u))
|
|
1695
1720
|
throw new Error(`Domain ${n} is not defined`);
|
|
1696
|
-
const m =
|
|
1721
|
+
const m = re[u]();
|
|
1697
1722
|
if (!i(m, r))
|
|
1698
1723
|
throw new Error(`Event ${r} is not defined in domain ${n}`);
|
|
1699
1724
|
return m[r](c);
|
|
1700
1725
|
}
|
|
1701
1726
|
function t(n) {
|
|
1702
|
-
return !!
|
|
1727
|
+
return !!re[n];
|
|
1703
1728
|
}
|
|
1704
1729
|
function i(n, r) {
|
|
1705
1730
|
return !!n[r];
|
|
@@ -1708,23 +1733,23 @@ function fi() {
|
|
|
1708
1733
|
call: e
|
|
1709
1734
|
};
|
|
1710
1735
|
}
|
|
1711
|
-
const
|
|
1736
|
+
const oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1712
1737
|
__proto__: null,
|
|
1713
|
-
useAnalyticsQSController:
|
|
1738
|
+
useAnalyticsQSController: vi
|
|
1714
1739
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1715
|
-
function
|
|
1740
|
+
function Ai(e) {
|
|
1716
1741
|
if (!e.hasAction())
|
|
1717
1742
|
throw new Error("No action found in router");
|
|
1718
1743
|
function t() {
|
|
1719
1744
|
if (!i())
|
|
1720
1745
|
throw new Error(`Controller ${e.getController()} not found`);
|
|
1721
|
-
const r =
|
|
1746
|
+
const r = oe[e.getControllerComposableName()]();
|
|
1722
1747
|
if (!n(r))
|
|
1723
1748
|
throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);
|
|
1724
1749
|
return r[e.getAction()](e.getArguments());
|
|
1725
1750
|
}
|
|
1726
1751
|
function i() {
|
|
1727
|
-
return e.getControllerComposableName() in
|
|
1752
|
+
return e.getControllerComposableName() in oe;
|
|
1728
1753
|
}
|
|
1729
1754
|
function n(r) {
|
|
1730
1755
|
return e.getAction() in r;
|
|
@@ -1733,21 +1758,21 @@ function pi(e) {
|
|
|
1733
1758
|
dispatch: t
|
|
1734
1759
|
};
|
|
1735
1760
|
}
|
|
1736
|
-
function
|
|
1761
|
+
function _r() {
|
|
1737
1762
|
let e = !1;
|
|
1738
|
-
function t(r, c,
|
|
1739
|
-
n(),
|
|
1763
|
+
function t(r, c, u) {
|
|
1764
|
+
n(), u();
|
|
1740
1765
|
}
|
|
1741
|
-
function i(r, c,
|
|
1766
|
+
function i(r, c, u) {
|
|
1742
1767
|
if (!e)
|
|
1743
|
-
return e = !0, t(r, c,
|
|
1744
|
-
|
|
1768
|
+
return e = !0, t(r, c, u);
|
|
1769
|
+
u();
|
|
1745
1770
|
}
|
|
1746
1771
|
function n() {
|
|
1747
|
-
const r =
|
|
1772
|
+
const r = bi();
|
|
1748
1773
|
if (!r.hasAction())
|
|
1749
1774
|
return;
|
|
1750
|
-
|
|
1775
|
+
Ai(r).dispatch();
|
|
1751
1776
|
}
|
|
1752
1777
|
return {
|
|
1753
1778
|
vueRouterBeforeEach: t,
|
|
@@ -1755,178 +1780,157 @@ function kr() {
|
|
|
1755
1780
|
handle: n
|
|
1756
1781
|
};
|
|
1757
1782
|
}
|
|
1758
|
-
|
|
1759
|
-
const i = yi(t);
|
|
1760
|
-
return J(e, i);
|
|
1761
|
-
}
|
|
1762
|
-
function J(e, t) {
|
|
1763
|
-
const i = {}, n = ie(t);
|
|
1764
|
-
return n.forEach((r) => {
|
|
1765
|
-
i[r] = J(
|
|
1766
|
-
e == null ? void 0 : e[r],
|
|
1767
|
-
t[r]
|
|
1768
|
-
);
|
|
1769
|
-
}), "$item" in t && (e == null || e.forEach((r, c) => {
|
|
1770
|
-
i[c] = J(
|
|
1771
|
-
r,
|
|
1772
|
-
t.$item
|
|
1773
|
-
);
|
|
1774
|
-
})), i.$valid = (!t.$asserts || t.$asserts.every((r) => r(e))) && n.every((r) => i[r].$valid), "$item" in t && (i.$valid = i.$valid && ie(i).every((r) => i[r].$valid)), i;
|
|
1775
|
-
}
|
|
1776
|
-
function yi(e) {
|
|
1777
|
-
const t = {};
|
|
1778
|
-
return "" in e && (e = { ...e }, t.$asserts = re(e[""]), delete e[""]), Object.keys(e).forEach((i) => {
|
|
1779
|
-
let n = i.replaceAll(".[]", ".$item");
|
|
1780
|
-
n = `${n}.$asserts`, q(t, n, re(e[i]));
|
|
1781
|
-
}), t;
|
|
1782
|
-
}
|
|
1783
|
-
const ie = (e) => Object.keys(e).filter((t) => !t.startsWith("$")), re = (e) => Array.isArray(e) ? e : [e], Rr = (e) => typeof e == "boolean", Er = (e) => typeof e == "number", Ir = (e) => typeof e == "string", we = (e) => Array.isArray(e), gi = (e) => typeof e == "object" && !we(e) && e !== null, Cr = (e) => e instanceof Date, Sr = (e) => typeof e == "function", bi = (e) => e === null, wi = (e) => e === void 0, vi = (e) => bi(e) || wi(e), Or = (e) => !vi(e), $r = (e) => !!e, Tr = (e) => !e, Lr = (e, t) => we(e) && e.every((i) => t(i)), Mr = (e, t) => gi(e) && Object.values(e).every((i) => t(i)), Nr = (e, t) => hi(e, t).$valid, Dr = () => ({ getAssetUrl: (t) => `${O.getBaseAssetsUrl()}${t}` }), v = () => O.getMainAppHost(), Ai = () => `${v()}/rh/establishments`, Pi = (e) => `${v()}/rh/establishment/${e}`, ki = (e) => {
|
|
1783
|
+
const jr = () => ({ getAssetUrl: (t) => `${$.getBaseAssetsUrl()}${t}` }), v = () => $.getMainAppHost(), Pi = () => `${v()}/rh/establishments`, ki = (e) => `${v()}/rh/establishment/${e}`, Ri = (e) => {
|
|
1784
1784
|
var t;
|
|
1785
1785
|
return typeof e == "string" ? e : typeof e == "object" && ((t = e == null ? void 0 : e.urls) != null && t.display) ? e.urls.display : null;
|
|
1786
|
-
},
|
|
1786
|
+
}, Ei = () => `${v()}/rh/dashboard`, Ii = (e) => `${v()}/candidate-invite/establishment/${e}`, Ci = (e, t = !1) => t ? `${v()}/cvbank/${e}` : `${v()}/rh/establishment/${e}/cvtheque`, Si = (e, t) => `${v()}/user-profile/establishment/${e}/user/${t}`, Oi = (e) => `${v()}/rh/establishment/${e}/recruitment`, $i = (e, t) => `${v()}/rh/establishment/${e}/recruitment/${t}`, Ti = (e, t) => `${v()}/rh/establishment/${e}/recruitment/${t}/kanban`, Li = (e) => `${v()}/rh/establishment/${e}/career-configuration`, Mi = (e, t = null) => t ? `${v()}/career-website/${e}/${t}` : `${v()}/career-website/${e}`, Ni = (e, t) => `${v()}/career-website-preview/${e}/${t}`, Di = (e, t = null) => {
|
|
1787
1787
|
const i = v().replace("://", `://${e}.`);
|
|
1788
1788
|
return t ? `${i}?_version=${t}` : `${i}`;
|
|
1789
|
-
},
|
|
1790
|
-
function
|
|
1789
|
+
}, xi = (e) => `${v()}/rh/establishment/${e}/stats`, _i = (e) => `${v()}/rh/establishment/${e}/backoffice`, ji = () => `${v()}/rh/settings/general`;
|
|
1790
|
+
function Br() {
|
|
1791
1791
|
return {
|
|
1792
1792
|
root: v,
|
|
1793
|
-
establishments:
|
|
1794
|
-
establishment:
|
|
1795
|
-
img:
|
|
1796
|
-
dashboard:
|
|
1797
|
-
candidateInvite:
|
|
1798
|
-
cvtheque:
|
|
1799
|
-
userProfile:
|
|
1800
|
-
recruitments:
|
|
1801
|
-
recruitment:
|
|
1802
|
-
recruitmentKanban:
|
|
1803
|
-
career:
|
|
1804
|
-
careerConfig:
|
|
1805
|
-
careerPreview:
|
|
1806
|
-
careerWebsite:
|
|
1807
|
-
statistics:
|
|
1808
|
-
backoffice:
|
|
1793
|
+
establishments: Pi,
|
|
1794
|
+
establishment: ki,
|
|
1795
|
+
img: Ri,
|
|
1796
|
+
dashboard: Ei,
|
|
1797
|
+
candidateInvite: Ii,
|
|
1798
|
+
cvtheque: Ci,
|
|
1799
|
+
userProfile: Si,
|
|
1800
|
+
recruitments: Oi,
|
|
1801
|
+
recruitment: $i,
|
|
1802
|
+
recruitmentKanban: Ti,
|
|
1803
|
+
career: Li,
|
|
1804
|
+
careerConfig: Mi,
|
|
1805
|
+
careerPreview: Ni,
|
|
1806
|
+
careerWebsite: Di,
|
|
1807
|
+
statistics: xi,
|
|
1808
|
+
backoffice: _i,
|
|
1809
1809
|
userSettings: ji
|
|
1810
1810
|
};
|
|
1811
1811
|
}
|
|
1812
|
-
const
|
|
1813
|
-
let N,
|
|
1812
|
+
const ae = /* @__PURE__ */ new Set();
|
|
1813
|
+
let N, X = {
|
|
1814
1814
|
ignore: (e) => e.startsWith("Ui")
|
|
1815
1815
|
};
|
|
1816
|
-
const
|
|
1816
|
+
const G = (e) => {
|
|
1817
1817
|
if (e != null && e.classList) {
|
|
1818
1818
|
e._cssChecked = !0;
|
|
1819
1819
|
for (const t of e.classList)
|
|
1820
|
-
N.has(t) ||
|
|
1820
|
+
N.has(t) || ae.has(t) || X.ignore(t) || (ae.add(t), A.error(`Undefined CSS class: ${t}`));
|
|
1821
1821
|
}
|
|
1822
|
-
},
|
|
1822
|
+
}, Pe = (e) => {
|
|
1823
1823
|
var t;
|
|
1824
1824
|
for (const i of e)
|
|
1825
1825
|
if (i != null && i.cssRules && (i == null ? void 0 : i.cssRules.length) > 0)
|
|
1826
|
-
|
|
1826
|
+
Pe(i.cssRules);
|
|
1827
1827
|
else if (i.selectorText) {
|
|
1828
1828
|
const n = (t = i.selectorText) == null ? void 0 : t.match(/\.[\w-]+/g);
|
|
1829
1829
|
if (n)
|
|
1830
1830
|
for (const r of n)
|
|
1831
1831
|
N.add(r.substr(1));
|
|
1832
1832
|
}
|
|
1833
|
-
},
|
|
1833
|
+
}, zr = (e = {}) => {
|
|
1834
1834
|
if (N)
|
|
1835
1835
|
return N;
|
|
1836
|
-
N = /* @__PURE__ */ new Set(),
|
|
1836
|
+
N = /* @__PURE__ */ new Set(), X = { ...X, ...e }, Pe(document.styleSheets), new MutationObserver((i) => {
|
|
1837
1837
|
for (const n of i)
|
|
1838
1838
|
if (n.type === "childList" && (n != null && n.addedNodes)) {
|
|
1839
1839
|
for (const r of n.addedNodes)
|
|
1840
1840
|
if (!(r.nodeType === 3 || r.nodeType === 8)) {
|
|
1841
|
-
|
|
1841
|
+
G(r);
|
|
1842
1842
|
for (const c of r.querySelectorAll("*"))
|
|
1843
|
-
|
|
1843
|
+
G(c);
|
|
1844
1844
|
}
|
|
1845
1845
|
} else
|
|
1846
|
-
(n == null ? void 0 : n.attributeName) === "class" &&
|
|
1846
|
+
(n == null ? void 0 : n.attributeName) === "class" && G(n.target);
|
|
1847
1847
|
}).observe(document, {
|
|
1848
1848
|
attributes: !0,
|
|
1849
1849
|
childList: !0,
|
|
1850
1850
|
subtree: !0
|
|
1851
1851
|
});
|
|
1852
|
-
},
|
|
1852
|
+
}, Vr = "0.2.72";
|
|
1853
1853
|
export {
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1854
|
+
Mr as Analytics,
|
|
1855
|
+
W as BaseLogger,
|
|
1856
|
+
Nr as Gmap,
|
|
1857
|
+
$ as SDKConfig,
|
|
1858
1858
|
A as SDKLogger,
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1859
|
+
Vr as VERSION,
|
|
1860
|
+
lt as _clone,
|
|
1861
|
+
O as _get,
|
|
1862
|
+
rr as _map,
|
|
1863
|
+
ue as _merge,
|
|
1864
|
+
de as _pathList,
|
|
1865
|
+
D as _set,
|
|
1866
|
+
dt as _setMany,
|
|
1867
|
+
K as buildObjectValidation,
|
|
1868
|
+
Dr as createI18n,
|
|
1869
|
+
or as ensureScheme,
|
|
1870
|
+
Qi as inBrowser,
|
|
1871
|
+
T as inNode,
|
|
1872
|
+
Y as isArray,
|
|
1873
|
+
tr as isArrayOf,
|
|
1874
|
+
Gi as isBoolean,
|
|
1875
|
+
Ji as isDate,
|
|
1876
|
+
er as isFalsy,
|
|
1877
|
+
Zi as isFunction,
|
|
1878
|
+
Hi as isMobile,
|
|
1879
|
+
Xi as isNotNullOrUndefined,
|
|
1880
|
+
at as isNull,
|
|
1881
|
+
ut as isNullOrUndefined,
|
|
1882
|
+
Ki as isNumber,
|
|
1883
|
+
U as isObject,
|
|
1884
|
+
nr as isObjectOf,
|
|
1885
|
+
ir as isObjectValid,
|
|
1886
|
+
Wi as isString,
|
|
1887
|
+
Yi as isTruthy,
|
|
1888
|
+
ct as isUndefined,
|
|
1889
|
+
qi as sanitizeObject,
|
|
1890
|
+
sr as secureScheme,
|
|
1891
|
+
te as transpileAsserts,
|
|
1892
|
+
ar as useActivityRepository,
|
|
1893
|
+
ii as useAnalyticsHublerApplication,
|
|
1894
|
+
Lr as useAnalyticsIdentify,
|
|
1895
|
+
ri as useAnalyticsProfile,
|
|
1896
|
+
si as useAnalyticsRecruitment,
|
|
1897
|
+
oi as useAnalyticsVisualBuilder,
|
|
1898
|
+
jr as useAssetUrls,
|
|
1899
|
+
V as useAuthentication,
|
|
1900
|
+
ni as useAuthorization,
|
|
1901
|
+
Tr as useAuthorizationStore,
|
|
1902
|
+
$r as useCanAccessEstablishmentMiddleware,
|
|
1903
|
+
cr as useCandidateRepository,
|
|
1904
|
+
ur as useCommentRepository,
|
|
1905
|
+
dr as useContractTypeRepository,
|
|
1906
|
+
pt as useCookieStorage,
|
|
1907
|
+
lr as useCvbankRepository,
|
|
1908
|
+
mr as useCvthequeRepository,
|
|
1909
|
+
fr as useDiplomaRepository,
|
|
1910
|
+
pr as useDocumentRepository,
|
|
1911
|
+
Br as useDomainUrls,
|
|
1912
|
+
hr as useEmailHistoryRepository,
|
|
1913
|
+
yr as useEmailRepository,
|
|
1914
|
+
gr as useEmailTemplateRepository,
|
|
1915
|
+
wr as useEstablishmentCareerRepository,
|
|
1916
|
+
ge as useEstablishmentRepository,
|
|
1917
|
+
br as useFeatureFlagRepository,
|
|
1918
|
+
yi as useI18n,
|
|
1919
|
+
vr as useJobRepository,
|
|
1920
|
+
Ar as useLabelRepository,
|
|
1921
|
+
xr as useLocaleTimeAgo,
|
|
1922
|
+
ot as useObjectValidation,
|
|
1923
|
+
Pr as useOfferRepository,
|
|
1920
1924
|
g as usePrivateRequest,
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1925
|
+
_r as useQSAction,
|
|
1926
|
+
kr as useRecruiterRepository,
|
|
1927
|
+
Rr as useRecruitmentRepository,
|
|
1928
|
+
Er as useRegisterRepository,
|
|
1929
|
+
Ir as useRegistrationRepository,
|
|
1926
1930
|
k as useRequest,
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1931
|
+
Cr as useSpecialityRepository,
|
|
1932
|
+
Sr as useTagRepository,
|
|
1933
|
+
Or as useTalentRepository,
|
|
1934
|
+
zr as useUndefinedCssClasses,
|
|
1935
|
+
we as useUserRepository
|
|
1932
1936
|
};
|