@hublo/mstaff-client-sdk 0.2.76 → 0.2.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/core.cjs +2 -2
  2. package/dist/core.js +317 -304
  3. package/package.json +1 -1
package/dist/core.js CHANGED
@@ -19,23 +19,23 @@ var ae = Ge, ee = Ke, qe = Object.prototype.toString, x = /^[\u0009\u0020-\u007e
19
19
  function Ge(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 || We, c = 0; c < e.length; ) {
23
- var u = e.indexOf("=", c);
22
+ for (var i = {}, n = t || {}, r = n.decode || We, a = 0; a < e.length; ) {
23
+ var u = e.indexOf("=", a);
24
24
  if (u === -1)
25
25
  break;
26
- var m = e.indexOf(";", c);
26
+ var m = e.indexOf(";", a);
27
27
  if (m === -1)
28
28
  m = e.length;
29
29
  else if (m < u) {
30
- c = e.lastIndexOf(";", u - 1) + 1;
30
+ a = e.lastIndexOf(";", u - 1) + 1;
31
31
  continue;
32
32
  }
33
- var d = e.slice(c, u).trim();
33
+ var d = e.slice(a, u).trim();
34
34
  if (i[d] === void 0) {
35
35
  var s = e.slice(u + 1, m).trim();
36
36
  s.charCodeAt(0) === 34 && (s = s.slice(1, -1)), i[d] = Xe(s, r);
37
37
  }
38
- c = m + 1;
38
+ a = m + 1;
39
39
  }
40
40
  return i;
41
41
  }
@@ -45,10 +45,10 @@ function Ke(e, t, i) {
45
45
  throw new TypeError("option encode is invalid");
46
46
  if (!x.test(e))
47
47
  throw new TypeError("argument name is invalid");
48
- var c = r(t);
49
- if (c && !x.test(c))
48
+ var a = r(t);
49
+ if (a && !x.test(a))
50
50
  throw new TypeError("argument val is invalid");
51
- var u = e + "=" + c;
51
+ var u = e + "=" + a;
52
52
  if (n.maxAge != null) {
53
53
  var m = n.maxAge - 0;
54
54
  if (isNaN(m) || !isFinite(m))
@@ -88,8 +88,8 @@ function Ke(e, t, i) {
88
88
  }
89
89
  }
90
90
  if (n.sameSite) {
91
- var a = typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite;
92
- switch (a) {
91
+ var c = typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite;
92
+ switch (c) {
93
93
  case !0:
94
94
  u += "; SameSite=Strict";
95
95
  break;
@@ -201,14 +201,14 @@ class nt {
201
201
  }
202
202
  function it(e, { doNotParse: t = !1, autoUpdateDependencies: i = !1 } = {}, n = new nt()) {
203
203
  const r = i ? [...e || []] : e;
204
- let c = n.getAll({ doNotParse: !0 });
204
+ let a = n.getAll({ doNotParse: !0 });
205
205
  const u = Ve(0), m = () => {
206
206
  const d = n.getAll({ doNotParse: !0 });
207
207
  rt(
208
208
  r || null,
209
209
  d,
210
- c
211
- ) && u.value++, c = d;
210
+ a
211
+ ) && u.value++, a = d;
212
212
  };
213
213
  return n.addChangeListener(m), Qe(() => {
214
214
  n.removeChangeListener(m);
@@ -235,7 +235,7 @@ function rt(e, t, i) {
235
235
  return !0;
236
236
  return !1;
237
237
  }
238
- const Hi = () => {
238
+ const Qi = () => {
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);
@@ -245,10 +245,10 @@ const Hi = () => {
245
245
  return te(t).forEach((n) => i[n] = W(e == null ? void 0 : e[n], t[n])), "$item" in t && (e == null || e.forEach((n, r) => i[r] = W(n, t.$item))), i.$valid = (!t.$asserts || t.$asserts.every((n) => n(e))) && te(i).every((n) => i[n].$valid), i;
246
246
  }, ot = (e) => dt(
247
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)), ue(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), te = (e) => Object.keys(e).filter((t) => !t.startsWith("$")), qi = (e) => typeof e == "boolean", Gi = (e) => typeof e == "number", Ki = (e) => typeof e == "string", U = (e) => Array.isArray(e), F = (e) => typeof e == "object" && !U(e) && e !== null, Wi = (e) => e instanceof Date, Ji = (e) => typeof e == "function", at = (e) => e === null, ct = (e) => e === void 0, ut = (e) => at(e) || ct(e), Zi = (e) => !ut(e), Xi = (e) => !!e, Yi = (e) => !e, er = (e, t) => U(e) && e.every((i) => t(i)), tr = (e, t) => F(e) && Object.values(e).every((i) => t(i)), nr = (e, t) => st(e, t).$valid, ir = (e, t, i = !1) => {
248
+ ), qi = (e, t, i) => (e = JSON.parse(JSON.stringify(e)), ue(e).forEach((r) => {
249
+ const a = r.replace(/\.[0-9]+/g, ".[]");
250
+ O(t, `${r}.$valid`) === !1 && i[a] !== void 0 && D(e, r, i[a]);
251
+ }), e), te = (e) => Object.keys(e).filter((t) => !t.startsWith("$")), Gi = (e) => typeof e == "boolean", Ki = (e) => typeof e == "number", Wi = (e) => typeof e == "string", U = (e) => Array.isArray(e), F = (e) => typeof e == "object" && !U(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) => U(e) && e.every((i) => t(i)), nr = (e, t) => F(e) && Object.values(e).every((i) => t(i)), ir = (e, t) => st(e, t).$valid, rr = (e, t, i = !1) => {
252
252
  U(t) || (t = [t]);
253
253
  let n = e;
254
254
  for (; n; ) {
@@ -257,29 +257,29 @@ const Hi = () => {
257
257
  n = n.parentElement;
258
258
  }
259
259
  return !1;
260
- }, rr = () => typeof window < "u" && typeof window.document < "u", T = () => typeof process < "u" && process.versions != null && process.versions.node != null, O = (e, t, i) => {
260
+ }, sr = () => typeof window < "u" && typeof window.document < "u", T = () => typeof process < "u" && process.versions != null && process.versions.node != null, O = (e, t, i) => {
261
261
  const n = typeof t == "string" ? t.split(".") : [t];
262
262
  let r = e;
263
- const c = (m) => m != null, u = (m) => typeof m == "object";
263
+ const a = (m) => m != null, u = (m) => typeof m == "object";
264
264
  for (const [m, d] of n.entries()) {
265
- if (!c(r))
265
+ if (!a(r))
266
266
  return i;
267
267
  if (m === n.length - 1)
268
- return c(r[d]) ? r[d] : i;
268
+ return a(r[d]) ? r[d] : i;
269
269
  if (!u(r[d]))
270
270
  return i;
271
271
  r = r[d];
272
272
  }
273
273
  return i;
274
274
  }, D = (e, t, i) => {
275
- const n = typeof t == "string" ? t.split(".") : [t], r = (m) => typeof m == "number" || /^\d$/g.test(m), c = (m) => parseInt(m, 10);
275
+ const n = typeof t == "string" ? t.split(".") : [t], r = (m) => typeof m == "number" || /^\d$/g.test(m), a = (m) => parseInt(m, 10);
276
276
  let u = e;
277
277
  return n.forEach((m, d) => {
278
278
  if (d === n.length - 1)
279
279
  u[m] = i;
280
280
  else {
281
281
  const s = r(n[d + 1]) ? [] : {};
282
- m = r(m) ? c(m) : m, u[m] = u[m] ?? s, u = u[m];
282
+ m = r(m) ? a(m) : m, u[m] = u[m] ?? s, u = u[m];
283
283
  }
284
284
  }), e;
285
285
  }, dt = (e, t = {}) => {
@@ -287,7 +287,7 @@ const Hi = () => {
287
287
  for (const [n, r] of i)
288
288
  D(t, n, r);
289
289
  return t;
290
- }, sr = (e, t = {}) => {
290
+ }, or = (e, t = {}) => {
291
291
  const i = F(e) ? Object.entries(e) : e;
292
292
  for (const [n, r] of i)
293
293
  D(t, n, r(t, n));
@@ -308,11 +308,11 @@ const Hi = () => {
308
308
  }, ue = (e, t = () => !0, i = "") => {
309
309
  const n = [];
310
310
  for (const r in e) {
311
- const c = e[r], u = i ? `${i}.${r}` : r;
312
- t(r, u, c) && (n.push(u), (F(c) || U(c)) && n.push(...ue(c, t, u)));
311
+ const a = e[r], u = i ? `${i}.${r}` : r;
312
+ t(r, u, a) && (n.push(u), (F(a) || U(a)) && n.push(...ue(a, t, u)));
313
313
  }
314
314
  return n;
315
- }, or = (e) => e.startsWith("http:") ? e.replace("http:", "https:") : e, ar = (e, t = !1) => e.startsWith("http:") || e.startsWith("https:") ? e : t ? `https://${e}` : `http://${e}`, de = () => typeof window < "u" && (window != null && window.location) ? new URL(window.location).hostname : void 0, ne = () => {
315
+ }, ar = (e) => e.startsWith("http:") ? e.replace("http:", "https:") : e, cr = (e, t = !1) => e.startsWith("http:") || e.startsWith("https:") ? e : t ? `https://${e}` : `http://${e}`, de = () => typeof window < "u" && (window != null && window.location) ? new URL(window.location).hostname : void 0, ne = () => {
316
316
  const e = de();
317
317
  return !e || e === "localhost" ? e : `.${e}`;
318
318
  }, mt = () => ({ path: "/" }), ft = (e) => ({
@@ -325,18 +325,18 @@ const Hi = () => {
325
325
  return e.startsWith("localhost") ? mt() : ft(e);
326
326
  };
327
327
  function pt() {
328
- const e = it(), t = (c) => e.get(c), i = (c, u) => e.set(
329
- c,
328
+ const e = it(), t = (a) => e.get(a), i = (a, u) => e.set(
329
+ a,
330
330
  u,
331
331
  G(ne())
332
- ), n = (c) => {
333
- e.remove(c), e.remove(c, G(de())), e.remove(c, G(ne()));
332
+ ), n = (a) => {
333
+ e.remove(a), e.remove(a, G(de())), e.remove(a, G(ne()));
334
334
  };
335
335
  return {
336
336
  getItem: t,
337
337
  setItem: i,
338
338
  removeItem: n,
339
- clear: () => Object.keys(e.getAll()).forEach((c) => n(c))
339
+ clear: () => Object.keys(e.getAll()).forEach((a) => n(a))
340
340
  };
341
341
  }
342
342
  let _ = null;
@@ -356,8 +356,8 @@ function V(e = {
356
356
  function r() {
357
357
  return t.getItem(e.expiration);
358
358
  }
359
- function c(p, h) {
360
- const w = a(p);
359
+ function a(p, h) {
360
+ const w = c(p);
361
361
  if (!w.exp)
362
362
  throw new Error("Invalid JWT token.");
363
363
  t.setItem(e.auth, p), t.setItem(e.refresh, h), t.setItem(e.expiration, ((w.exp - 60) * 1e3).toString());
@@ -375,7 +375,7 @@ function V(e = {
375
375
  const p = r();
376
376
  return p ? new Date(p) < /* @__PURE__ */ new Date() : !0;
377
377
  }
378
- function a(p) {
378
+ function c(p) {
379
379
  return JSON.parse(atob(p.split(".")[1]));
380
380
  }
381
381
  function f() {
@@ -386,7 +386,7 @@ function V(e = {
386
386
  getAuthToken: i,
387
387
  getRefreshToken: n,
388
388
  getExpiration: r,
389
- authenticate: c,
389
+ authenticate: a,
390
390
  clear: u,
391
391
  isAuthenticated: m,
392
392
  hasAuth: d,
@@ -408,7 +408,7 @@ function ht(e) {
408
408
  function r(w, b) {
409
409
  return t[w] = b, this;
410
410
  }
411
- function c(w) {
411
+ function a(w) {
412
412
  return t[w];
413
413
  }
414
414
  function u(w) {
@@ -421,30 +421,30 @@ function ht(e) {
421
421
  return u("Authorization"), this;
422
422
  }
423
423
  function s() {
424
- return !!c("Authorization");
424
+ return !!a("Authorization");
425
425
  }
426
- function a() {
426
+ function c() {
427
427
  return r("Content-Type", "multipart/form-data"), this;
428
428
  }
429
429
  function f() {
430
430
  return r("Content-Type", "application/json"), this;
431
431
  }
432
432
  function p() {
433
- return c("Content-Type") === "multipart/form-data";
433
+ return a("Content-Type") === "multipart/form-data";
434
434
  }
435
435
  function h() {
436
- return c("Content-Type") === "application/json";
436
+ return a("Content-Type") === "application/json";
437
437
  }
438
438
  return {
439
439
  setHeaders: i,
440
440
  getHeaders: n,
441
441
  setHeader: r,
442
- getHeader: c,
442
+ getHeader: a,
443
443
  removeHeader: u,
444
444
  setAuthorization: m,
445
445
  removeAuthorization: d,
446
446
  hasAuthorization: s,
447
- setFormData: a,
447
+ setFormData: c,
448
448
  setJson: f,
449
449
  isFormData: p,
450
450
  isJson: h
@@ -474,12 +474,12 @@ function gt(e, t, i) {
474
474
  throw new Error("Payload can only be set for POST, PUT and PATCH requests.");
475
475
  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;
476
476
  }
477
- function c() {
477
+ function a() {
478
478
  return n;
479
479
  }
480
480
  function u(s) {
481
- for (const a in s) {
482
- const f = s[a];
481
+ for (const c in s) {
482
+ const f = s[c];
483
483
  if (d(f))
484
484
  return !0;
485
485
  if (typeof f == "object" && u(f))
@@ -487,24 +487,24 @@ function gt(e, t, i) {
487
487
  }
488
488
  return !1;
489
489
  }
490
- function m(s, a = null, f = 0) {
491
- const p = !a;
492
- p && (a = new FormData());
490
+ function m(s, c = null, f = 0) {
491
+ const p = !c;
492
+ p && (c = new FormData());
493
493
  for (const h in s) {
494
494
  const w = s[h];
495
- d(w) ? (s[h] = "<<FileIndex:" + f + ">>", a.append(f, w, w.name), f++) : typeof w == "object" && (s[h] = m(s[h], a, f));
495
+ d(w) ? (s[h] = "<<FileIndex:" + f + ">>", c.append(f, w, w.name), f++) : typeof w == "object" && (s[h] = m(s[h], c, f));
496
496
  }
497
- return p ? (a.append("payload", JSON.stringify(s)), a) : s;
497
+ return p ? (c.append("payload", JSON.stringify(s)), c) : s;
498
498
  }
499
499
  function d(s) {
500
500
  return typeof File < "u" && s instanceof File || typeof Blob < "u" && s instanceof Blob;
501
501
  }
502
502
  return {
503
503
  setPayload: r,
504
- getPayload: c
504
+ getPayload: a
505
505
  };
506
506
  }
507
- const R = class R {
507
+ const E = class E {
508
508
  /**
509
509
  * Construct the class with the provided sub logger.
510
510
  */
@@ -526,24 +526,24 @@ const R = class R {
526
526
  }
527
527
  /** debug display messages only if level is DEBUG or less */
528
528
  debug(...t) {
529
- this.level <= R.LEVEL_DEBUG && j(this.logger.debug, this.prefix, t);
529
+ this.level <= E.LEVEL_DEBUG && j(this.logger.debug, this.prefix, t);
530
530
  }
531
531
  /** info display messages only if level is INFO or less */
532
532
  info(...t) {
533
- this.level <= R.LEVEL_INFO && j(this.logger.info, this.prefix, t);
533
+ this.level <= E.LEVEL_INFO && j(this.logger.info, this.prefix, t);
534
534
  }
535
535
  /** warn display messages only if level is WARN or less */
536
536
  warn(...t) {
537
- this.level <= R.LEVEL_WARN && j(this.logger.warn, this.prefix, t);
537
+ this.level <= E.LEVEL_WARN && j(this.logger.warn, this.prefix, t);
538
538
  }
539
539
  /** error display messages only if level is ERROR or less */
540
540
  error(...t) {
541
- this.level <= R.LEVEL_ERROR && j(this.logger.error, this.prefix, t);
541
+ this.level <= E.LEVEL_ERROR && j(this.logger.error, this.prefix, t);
542
542
  }
543
543
  };
544
544
  /** Possible logging level by order of verbosity (more verbose first) */
545
- C(R, "LEVEL_DEBUG", 0), C(R, "LEVEL_INFO", 1), C(R, "LEVEL_WARN", 2), C(R, "LEVEL_ERROR", 3), C(R, "LEVEL_OFF", 4);
546
- let J = R;
545
+ 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);
546
+ let J = E;
547
547
  const j = (e, t, i) => {
548
548
  t ? e(t, ...i) : e(...i);
549
549
  }, A = new J({
@@ -560,7 +560,7 @@ const wt = () => le, bt = (e) => {
560
560
  me = e;
561
561
  }, Pt = () => he, kt = (e) => {
562
562
  he = e;
563
- }, Et = () => fe, Rt = (e) => {
563
+ }, Rt = () => fe, Et = (e) => {
564
564
  if (A.info("[Config] Main App Host:", e), !e)
565
565
  throw new Error("Invalid main app host.");
566
566
  fe = e;
@@ -573,8 +573,8 @@ const wt = () => le, bt = (e) => {
573
573
  setEnvironment: bt,
574
574
  setApiHost: At,
575
575
  setErrorHandler: kt,
576
- getMainAppHost: Et,
577
- setMainAppHost: Rt,
576
+ getMainAppHost: Rt,
577
+ setMainAppHost: Et,
578
578
  setBaseAssetsUrl: It,
579
579
  getBaseAssetsUrl: Ct
580
580
  };
@@ -582,7 +582,7 @@ function St(e) {
582
582
  const t = $.getApiHost().replace(/\/$/g, "");
583
583
  let i = null, n = {}, r = {};
584
584
  e && m(e);
585
- function c() {
585
+ function a() {
586
586
  return t + d() + h();
587
587
  }
588
588
  function u() {
@@ -592,12 +592,12 @@ function St(e) {
592
592
  return i = "/" + l.replace(/^\//g, ""), this;
593
593
  }
594
594
  function d(l = !0, P = !1) {
595
- return l ? i.replace(/:(\w+)/g, (E, I) => P ? "*" : r[I] || ":" + I) : i;
595
+ return l ? i.replace(/:(\w+)/g, (R, I) => P ? "*" : r[I] || ":" + I) : i;
596
596
  }
597
597
  function s(l) {
598
598
  return n = l, this;
599
599
  }
600
- function a(l, P) {
600
+ function c(l, P) {
601
601
  return n[l] = P, this;
602
602
  }
603
603
  function f(l) {
@@ -610,12 +610,12 @@ function St(e) {
610
610
  if (!p())
611
611
  return "";
612
612
  let P = "";
613
- for (const E in n)
614
- if (Array.isArray(n[E]))
615
- for (const I of n[E])
616
- P += (P.length ? "&" : "") + `${E}[]=` + I;
613
+ for (const R in n)
614
+ if (Array.isArray(n[R]))
615
+ for (const I of n[R])
616
+ P += (P.length ? "&" : "") + `${R}[]=` + I;
617
617
  else
618
- P += (P.length ? "&" : "") + E + "=" + n[E];
618
+ P += (P.length ? "&" : "") + R + "=" + n[R];
619
619
  return (l ? "?" : "") + P;
620
620
  }
621
621
  function w(l) {
@@ -630,10 +630,10 @@ function St(e) {
630
630
  return {
631
631
  setPath: m,
632
632
  getPath: d,
633
- getUri: c,
633
+ getUri: a,
634
634
  getMockUri: u,
635
635
  setQueryParams: s,
636
- setQueryParam: a,
636
+ setQueryParam: c,
637
637
  removeQueryParam: f,
638
638
  hasQuery: p,
639
639
  getQueryString: h,
@@ -650,42 +650,42 @@ function Ot(e) {
650
650
  function n() {
651
651
  return t.length > 0;
652
652
  }
653
- function r(a) {
654
- return t.includes(a.trim()) ? this : (t.push(a.trim()), u(), this);
653
+ function r(c) {
654
+ return t.includes(c.trim()) ? this : (t.push(c.trim()), u(), this);
655
655
  }
656
- function c(a) {
657
- const f = t.indexOf(a.trim());
656
+ function a(c) {
657
+ const f = t.indexOf(c.trim());
658
658
  return f === -1 ? this : (t.splice(f, 1), u(), this);
659
659
  }
660
660
  function u() {
661
661
  t.length ? e.setQueryParam("groups", d(t)) : e.removeQueryParam("groups");
662
662
  }
663
- function m(a) {
664
- return a.split(",").map((f) => f.trim());
663
+ function m(c) {
664
+ return c.split(",").map((f) => f.trim());
665
665
  }
666
- function d(a) {
667
- return a.join(",");
666
+ function d(c) {
667
+ return c.join(",");
668
668
  }
669
- function s(a) {
669
+ function s(c) {
670
670
  let f = [];
671
- return a.length === 1 ? typeof a[0] == "string" ? f = m(a[0]) : Array.isArray(a[0]) && (f = a[0]) : f = Array.from(a), f;
671
+ return c.length === 1 ? typeof c[0] == "string" ? f = m(c[0]) : Array.isArray(c[0]) && (f = c[0]) : f = Array.from(c), f;
672
672
  }
673
673
  return {
674
674
  setGroups: i,
675
675
  hasGroups: n,
676
676
  addGroup: r,
677
- removeGroup: c
677
+ removeGroup: a
678
678
  };
679
679
  }
680
680
  function $t(e) {
681
681
  let t = !1, i = !1, n = 1, r = 10;
682
- function c() {
682
+ function a() {
683
683
  return t = !0, u(), this;
684
684
  }
685
685
  function u() {
686
686
  i = !0;
687
687
  const h = p(arguments);
688
- return s(h.page || 1, !1), a(h.perPage || r, !1), f(), this;
688
+ return s(h.page || 1, !1), c(h.perPage || r, !1), f(), this;
689
689
  }
690
690
  function m() {
691
691
  return i = !1, f(), this;
@@ -696,7 +696,7 @@ function $t(e) {
696
696
  function s(h, w = !0) {
697
697
  return t = !0, i = !0, n = h, w && f(), this;
698
698
  }
699
- function a(h, w = !0) {
699
+ function c(h, w = !0) {
700
700
  return t = !0, i = !0, r = h, w && f(), this;
701
701
  }
702
702
  function f() {
@@ -709,44 +709,44 @@ function $t(e) {
709
709
  return h.length >= 1 && (w.page = h[0]), h.length >= 2 && (w.perPage = h[1]), w;
710
710
  }
711
711
  return {
712
- isList: c,
712
+ isList: a,
713
713
  paginate: u,
714
714
  disablePagination: m,
715
715
  hasPagination: d,
716
716
  setPage: s,
717
- setPerPage: a
717
+ setPerPage: c
718
718
  };
719
719
  }
720
720
  function Tt(e) {
721
721
  let t = !1, i = "id", n = "ASC";
722
722
  function r() {
723
723
  t = !0;
724
- const a = s(arguments);
725
- return a.orderBy && u(a.orderBy, !1), a.orderDir && m(a.orderDir, !1), d(), this;
724
+ const c = s(arguments);
725
+ return c.orderBy && u(c.orderBy, !1), c.orderDir && m(c.orderDir, !1), d(), this;
726
726
  }
727
- function c() {
727
+ function a() {
728
728
  return t;
729
729
  }
730
- function u(a, f = !0) {
731
- return t = !0, i = a, f && d(), this;
730
+ function u(c, f = !0) {
731
+ return t = !0, i = c, f && d(), this;
732
732
  }
733
- function m(a, f = !0) {
734
- if (a = a.toUpperCase(), ["ASC", "DESC"].indexOf(a) === -1)
733
+ function m(c, f = !0) {
734
+ if (c = c.toUpperCase(), ["ASC", "DESC"].indexOf(c) === -1)
735
735
  throw new Error("Invalid order direction");
736
- return t = !0, n = a, f && d(), this;
736
+ return t = !0, n = c, f && d(), this;
737
737
  }
738
738
  function d() {
739
- c() && (e.setQueryParam("orderBy", i), e.setQueryParam("orderDirection", n));
739
+ a() && (e.setQueryParam("orderBy", i), e.setQueryParam("orderDirection", n));
740
740
  }
741
- function s(a) {
742
- if (a.length === 1 && typeof a[0] == "object")
743
- return a[0];
741
+ function s(c) {
742
+ if (c.length === 1 && typeof c[0] == "object")
743
+ return c[0];
744
744
  const f = {};
745
- return a.length >= 1 && (f.orderBy = a[0]), a.length >= 2 && (f.orderDir = a[1]), f;
745
+ return c.length >= 1 && (f.orderBy = c[0]), c.length >= 2 && (f.orderDir = c[1]), f;
746
746
  }
747
747
  return {
748
748
  setOrder: r,
749
- hasOrder: c,
749
+ hasOrder: a,
750
750
  setOrderBy: u,
751
751
  setOrderDir: m
752
752
  };
@@ -764,7 +764,7 @@ function Lt() {
764
764
  isSilent: i
765
765
  };
766
766
  }
767
- function Mt() {
767
+ function Nt() {
768
768
  let e = "json";
769
769
  function t(n = "json") {
770
770
  if (["arraybuffer", "document", "json", "text", "stream", "blob"].indexOf(n) === -1)
@@ -779,7 +779,7 @@ function Mt() {
779
779
  getResponseType: i
780
780
  };
781
781
  }
782
- function Nt(e) {
782
+ function Mt(e) {
783
783
  function t() {
784
784
  return e;
785
785
  }
@@ -816,7 +816,7 @@ function xt(e) {
816
816
  function r() {
817
817
  return e.data["@type"] === "hydra:Collection";
818
818
  }
819
- function c() {
819
+ function a() {
820
820
  return r() ? e.data["hydra:member"] : null;
821
821
  }
822
822
  function u() {
@@ -836,19 +836,19 @@ function xt(e) {
836
836
  getData: i,
837
837
  getPayload: n,
838
838
  isCollection: r,
839
- getCollection: c,
839
+ getCollection: a,
840
840
  getTotal: u,
841
841
  hasPagination: m,
842
842
  getPage: d,
843
843
  getPages: s
844
844
  };
845
845
  }
846
- function _t(e, t, i, n, r, c) {
846
+ function _t(e, t, i, n, r, a) {
847
847
  async function u() {
848
- const d = i.getMethod(), s = t.getUri(), a = e.getHeaders(), f = n.getPayload(), p = [s];
848
+ const d = i.getMethod(), s = t.getUri(), c = e.getHeaders(), f = n.getPayload(), p = [s];
849
849
  ["post", "put", "patch"].includes(d) && p.push(f || {}), p.push({
850
- headers: a,
851
- responseType: c.getResponseType()
850
+ headers: c,
851
+ responseType: a.getResponseType()
852
852
  }), A.info("[Request] Sending request:", `[${d.toUpperCase()}]`, s);
853
853
  try {
854
854
  const h = await Ue[d](...p);
@@ -859,27 +859,27 @@ function _t(e, t, i, n, r, c) {
859
859
  }
860
860
  function m(d) {
861
861
  if (d.headers) {
862
- const s = Object.keys(d.headers), a = s.map((f) => f.toLowerCase()).indexOf("content-type");
863
- if (a !== -1 && d.headers[s[a]].includes("application/ld+json"))
862
+ const s = Object.keys(d.headers), c = s.map((f) => f.toLowerCase()).indexOf("content-type");
863
+ if (c !== -1 && d.headers[s[c]].includes("application/ld+json"))
864
864
  return xt(d);
865
865
  }
866
- return Nt(d);
866
+ return Mt(d);
867
867
  }
868
868
  return {
869
869
  send: u
870
870
  };
871
871
  }
872
872
  function k(e, t = "get", i = null) {
873
- 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);
873
+ const n = ht(), r = St(e), a = yt(t), u = gt(a, n, i), m = Ot(r), d = $t(r), s = Tt(r), c = Lt(), f = Nt(), p = _t(n, r, a, u, c, f);
874
874
  return {
875
875
  ...n,
876
876
  ...r,
877
- ...c,
877
+ ...a,
878
878
  ...u,
879
879
  ...m,
880
880
  ...d,
881
881
  ...s,
882
- ...a,
882
+ ...c,
883
883
  ...f,
884
884
  ...p
885
885
  };
@@ -887,16 +887,16 @@ function k(e, t = "get", i = null) {
887
887
  function g(e, t = "get", i = null) {
888
888
  const n = k(e, t, i), r = V();
889
889
  r.isAuthenticated() && n.setAuthorization(r.getAuthToken());
890
- const c = n.send;
890
+ const a = n.send;
891
891
  return n.send = async function() {
892
892
  if (!n.hasAuthorization())
893
893
  throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");
894
- return c();
894
+ return a();
895
895
  }, n;
896
896
  }
897
- const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), cr = () => ({
897
+ const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), ur = () => ({
898
898
  listByCandidateAndEstablishment: jt
899
- }), 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), ur = () => ({
899
+ }), 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), dr = () => ({
900
900
  share: Bt,
901
901
  isArchived: zt,
902
902
  archive: Vt,
@@ -907,42 +907,42 @@ const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:estab
907
907
  closeIncompleteRegistration: qt,
908
908
  openNewRegistration: Gt,
909
909
  updateInvitation: Kt
910
- }), 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"), dr = () => ({
910
+ }), 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"), lr = () => ({
911
911
  getForEstablishmentCandidate: Wt,
912
912
  postForEstablishmentCandidate: Jt,
913
913
  update: Zt,
914
914
  remove: Xt
915
- }), 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"), lr = () => ({
915
+ }), 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"), mr = () => ({
916
916
  list: Yt,
917
917
  listByEstablishment: en
918
- }), tn = (e) => g("/v2/talents").isList().setQueryParam("establishment-id", e), nn = (e) => g("/v2/talent/mark-as-seen/:talentId").setRouteParams({ talentId: e }).setMethod("post"), mr = () => ({
918
+ }), tn = (e) => g("/v2/talents").isList().setQueryParam("establishment-id", e), nn = (e) => g("/v2/talent/mark-as-seen/:talentId").setRouteParams({ talentId: e }).setMethod("post"), fr = () => ({
919
919
  list: tn,
920
920
  markAsSeen: nn
921
- }), rn = (e, t, i) => g("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(i), fr = () => ({
921
+ }), rn = (e, t, i) => g("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(i), pr = () => ({
922
922
  syncCandidateLabels: rn
923
- }), sn = () => k("diploma").isList().addGroup("Term:id").addGroup("Term:name"), pr = () => ({
923
+ }), sn = () => k("diploma").isList().addGroup("Term:id").addGroup("Term:name"), hr = () => ({
924
924
  list: sn
925
- }), 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"), hr = () => ({
925
+ }), 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"), yr = () => ({
926
926
  listByCandidate: on,
927
927
  listByCandidateAndEstablishmentFromRecruiter: an,
928
928
  listByCandidateAndEstablishmentFromCandidate: cn,
929
929
  addFromRecruiter: un,
930
930
  remove: dn
931
- }), ln = (e, t) => g("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), yr = () => ({
931
+ }), ln = (e, t) => g("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), gr = () => ({
932
932
  listByCandidateAndEstablishment: ln
933
- }), 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 }), gr = () => ({
933
+ }), 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 }), wr = () => ({
934
934
  sendToCandidate: mn,
935
935
  sendToRecipients: fn
936
936
  }), pn = (e, t = !0) => {
937
937
  const i = g("/v2/establishments/:establishmentId/email-templates").setRouteParams({ establishmentId: e }).isList().disablePagination();
938
938
  return t && i.setQueryParam("global", !0), i;
939
- }, hn = () => g("/v2/self/email-templates").isList().disablePagination(), wr = () => ({
939
+ }, hn = () => g("/v2/self/email-templates").isList().disablePagination(), br = () => ({
940
940
  listByEstablishment: pn,
941
941
  listSelf: hn
942
942
  }), 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) => {
943
943
  const n = i !== null ? g("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: i }) : g("establishment-career/:establishmentId").setRouteParams({ establishmentId: e });
944
944
  return n.setMethod("post").setPayload(t), n;
945
- }, 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), br = () => ({
945
+ }, 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), vr = () => ({
946
946
  readById: yn,
947
947
  readByState: gn,
948
948
  upsert: wn,
@@ -951,27 +951,27 @@ const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:estab
951
951
  }), An = (e) => k("establishment/:establishmentId").setRouteParams({ establishmentId: e }), Pn = (e) => g("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), ye = () => ({
952
952
  read: An,
953
953
  authorizations: Pn
954
- }), kn = (e) => k("feature-flag/maintenance").setMethod("post").setPayload(e), En = (e, t) => k("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), vr = () => ({
954
+ }), kn = (e) => k("feature-flag/maintenance").setMethod("post").setPayload(e), Rn = (e, t) => k("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), Ar = () => ({
955
955
  maintenanceModeEnabled: kn,
956
- forEstablishment: En
957
- }), Rn = () => 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"), Ar = () => ({
958
- list: Rn,
956
+ forEstablishment: Rn
957
+ }), 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"), Pr = () => ({
958
+ list: En,
959
959
  listByEstablishment: In
960
- }), 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 }), Pr = () => ({
960
+ }), 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 }), kr = () => ({
961
961
  listByEstablishment: Cn,
962
962
  addToEstablishment: Sn,
963
963
  update: On,
964
964
  remove: $n,
965
965
  syncForCandidate: Tn
966
- }), Ln = (e) => k("offer/:offerId").setRouteParams({ offerId: e }), kr = () => ({
966
+ }), Ln = (e) => k("offer/:offerId").setRouteParams({ offerId: e }), Rr = () => ({
967
967
  read: Ln
968
- }), Mn = (e, t = !1) => {
968
+ }), Nn = (e, t = !1) => {
969
969
  const i = g("/recruiter/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e });
970
970
  return t && i.setQueryParam("exclude-me", 1), i;
971
971
  }, Er = () => ({
972
- listByEstablishment: Mn
973
- }), 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 = () => ({
974
- read: Nn,
972
+ listByEstablishment: Nn
973
+ }), Mn = (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 }), Ir = () => ({
974
+ read: Mn,
975
975
  mineByEstablishment: Dn,
976
976
  mineWithoutCandidate: xn,
977
977
  mineWithCandidate: _n,
@@ -979,21 +979,21 @@ const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:estab
979
979
  addCandidates: Bn,
980
980
  removeCandidate: zn
981
981
  }), Vn = (e, t, i, n = null) => {
982
- const r = k("candidate/register/open").setMethod("post"), c = { email: e };
983
- return t === "establishment" && (c.establishmentId = i), t === "offer" && (c.offerId = i), n && (c.referer = n), r.setPayload(c), r;
984
- }, 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 }), Ir = () => ({
982
+ const r = k("candidate/register/open").setMethod("post"), a = { email: e };
983
+ return t === "establishment" && (a.establishmentId = i), t === "offer" && (a.offerId = i), n && (a.referer = n), r.setPayload(a), r;
984
+ }, 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 }), Cr = () => ({
985
985
  open: Vn,
986
986
  update: Un,
987
987
  read: Fn,
988
988
  close: Hn
989
- }), Qn = (e, t) => g("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Cr = () => ({
989
+ }), Qn = (e, t) => g("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Sr = () => ({
990
990
  lookupEstablishment: Qn
991
- }), 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"), Sr = () => ({
991
+ }), 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"), Or = () => ({
992
992
  list: qn,
993
993
  listByEstablishment: Gn
994
- }), Kn = (e) => g("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), Or = () => ({
994
+ }), Kn = (e) => g("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), $r = () => ({
995
995
  listByEstablishment: Kn
996
- }), 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), $r = () => ({
996
+ }), 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), Tr = () => ({
997
997
  lookupTalent: Wn,
998
998
  addCandidateToTalentPool: Jn
999
999
  }), 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 }), ge = () => ({
@@ -1038,18 +1038,18 @@ function ni() {
1038
1038
  hasRoleRH: () => n("ROLE_RH"),
1039
1039
  hasRoleCandidate: () => n("ROLE_CANDIDATE"),
1040
1040
  hasRoleAdmin: () => n("ROLE_ADMIN"),
1041
- hasPermission: (s, ...a) => {
1041
+ hasPermission: (s, ...c) => {
1042
1042
  const f = e.establishments[s];
1043
1043
  if (f === void 0)
1044
1044
  throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${s}`);
1045
- return a.every((p) => f[p] === !0);
1045
+ return c.every((p) => f[p] === !0);
1046
1046
  },
1047
1047
  clear: () => {
1048
1048
  e.user = void 0, e.roles = [], e.establishments = {};
1049
1049
  }
1050
1050
  }, B;
1051
1051
  }
1052
- async function Tr(e, ...t) {
1052
+ async function Lr(e, ...t) {
1053
1053
  if (!V().isAuthenticated())
1054
1054
  throw "ERR_NOT_AUTHENTICATED";
1055
1055
  const n = ni();
@@ -1058,12 +1058,12 @@ async function Tr(e, ...t) {
1058
1058
  n.fetchPermission(e)
1059
1059
  ]);
1060
1060
  for (let r = 0; r < t.length; r++) {
1061
- const c = t[r];
1062
- if (!n.hasPermission(e, c))
1061
+ const a = t[r];
1062
+ if (!n.hasPermission(e, a))
1063
1063
  throw "ERR_MISSING_PERMISSION";
1064
1064
  }
1065
1065
  }
1066
- const Lr = Fe("authorization", {
1066
+ const Nr = Fe("authorization", {
1067
1067
  state: () => ({
1068
1068
  user: void 0,
1069
1069
  establishments: {}
@@ -1099,13 +1099,13 @@ const Lr = Fe("authorization", {
1099
1099
  }
1100
1100
  }
1101
1101
  });
1102
- let M = null;
1102
+ let N = null;
1103
1103
  function y() {
1104
- if (M)
1105
- return M;
1104
+ if (N)
1105
+ return N;
1106
1106
  const e = $.getEnvironment(), t = (() => e === "prod" || e === "production" ? "pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp" : e === "staging" ? "823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF" : "TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(), i = !!t, n = e !== "prod" && e !== "production";
1107
1107
  let r = null;
1108
- function c() {
1108
+ function a() {
1109
1109
  return i;
1110
1110
  }
1111
1111
  function u() {
@@ -1135,7 +1135,7 @@ function y() {
1135
1135
  }
1136
1136
  async function m() {
1137
1137
  return r !== null || (r = new Promise((p, h) => {
1138
- if (!c())
1138
+ if (!a())
1139
1139
  return f("Analytics is disabled."), p();
1140
1140
  if (window.addEventListener("analytics-ready", () => {
1141
1141
  f("Analytics script loaded successfully."), p();
@@ -1149,7 +1149,7 @@ function y() {
1149
1149
  async function d(p, h) {
1150
1150
  if (!T())
1151
1151
  try {
1152
- if (await this.analyticsScriptReady(), f("[identify]", [p, h]), c())
1152
+ if (await this.analyticsScriptReady(), f("[identify]", [p, h]), a())
1153
1153
  return window.analytics.identify(p, h);
1154
1154
  } catch {
1155
1155
  f("[identify]", [p, h], "error");
@@ -1159,7 +1159,7 @@ function y() {
1159
1159
  if (!T()) {
1160
1160
  typeof w != "object" && (w = {});
1161
1161
  try {
1162
- if (await this.analyticsScriptReady(), f("[page]", [p, h, w]), c())
1162
+ if (await this.analyticsScriptReady(), f("[page]", [p, h, w]), a())
1163
1163
  return window.analytics.page(p, {
1164
1164
  category: h,
1165
1165
  ...w
@@ -1169,11 +1169,11 @@ function y() {
1169
1169
  }
1170
1170
  }
1171
1171
  }
1172
- async function a(p, h, w) {
1172
+ async function c(p, h, w) {
1173
1173
  if (!T()) {
1174
1174
  typeof w != "object" && (w = {});
1175
1175
  try {
1176
- if (await this.analyticsScriptReady(), f("[track]", [p, h, w]), c())
1176
+ if (await this.analyticsScriptReady(), f("[track]", [p, h, w]), a())
1177
1177
  return window.analytics.track(p, {
1178
1178
  category: h,
1179
1179
  ...w
@@ -1186,29 +1186,29 @@ function y() {
1186
1186
  function f(p, h = [], w = "info") {
1187
1187
  h || (h = []), n && A[w](`::SDK Analytics:: ${p}`, ...h);
1188
1188
  }
1189
- return M = {
1189
+ return N = {
1190
1190
  analyticsScriptReady: m,
1191
- isEnabled: c,
1191
+ isEnabled: a,
1192
1192
  identify: d,
1193
1193
  page: s,
1194
- track: a,
1194
+ track: c,
1195
1195
  consoleMessage: f
1196
- }, M;
1196
+ }, N;
1197
1197
  }
1198
- y.destroy = () => M = null;
1198
+ y.destroy = () => N = null;
1199
1199
  function ii() {
1200
1200
  const e = "Hubler Application";
1201
1201
  function t(s) {
1202
1202
  if (!s)
1203
1203
  throw new Error(`Missing arguments for domain "${e}"`);
1204
- const a = !!s.offerId;
1205
- if (a && !s.recruitmentId)
1204
+ const c = !!s.offerId;
1205
+ if (c && !s.recruitmentId)
1206
1206
  throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);
1207
1207
  return {
1208
1208
  companyId: s.establishmentId ? s.establishmentId.toString() : null,
1209
- jobOfferId: a ? s.offerId.toString() : null,
1210
- recruitmentId: a ? s.recruitmentId.toString() : null,
1211
- selections: [a ? "Application" : "Spontaneous Application"]
1209
+ jobOfferId: c ? s.offerId.toString() : null,
1210
+ recruitmentId: c ? s.recruitmentId.toString() : null,
1211
+ selections: [c ? "Application" : "Spontaneous Application"]
1212
1212
  };
1213
1213
  }
1214
1214
  async function i(s) {
@@ -1220,7 +1220,7 @@ function ii() {
1220
1220
  async function r(s) {
1221
1221
  return y().page("Application Job Viewed", e, t(s));
1222
1222
  }
1223
- async function c(s) {
1223
+ async function a(s) {
1224
1224
  return y().page("Application Information Viewed", e, t(s));
1225
1225
  }
1226
1226
  async function u(s) {
@@ -1238,7 +1238,7 @@ function ii() {
1238
1238
  applicationAuthenticationViewed: i,
1239
1239
  applicationMagicLinkViewed: n,
1240
1240
  applicationJobViewed: r,
1241
- applicationInformationViewed: c,
1241
+ applicationInformationViewed: a,
1242
1242
  applicationDocumentViewed: u,
1243
1243
  applicationSuccessViewed: m,
1244
1244
  applicationFormFailed: d
@@ -1250,11 +1250,11 @@ function ri() {
1250
1250
  var I;
1251
1251
  if (!l)
1252
1252
  throw new Error(`Missing arguments for domain "${e}"`);
1253
- const E = {
1253
+ const R = {
1254
1254
  companyId: l.companyId ? l.companyId.toString() : null,
1255
1255
  hublerId: (I = l.hublerId) == null ? void 0 : I.toString()
1256
1256
  };
1257
- return P && (E.productId = l.companyId ? l.companyId + "_2" : null), l.recruitmentId && (E.recruitmentId = l.recruitmentId.toString()), l.selections && (E.selections = l.selections), l.institutionId && (E.institutionId = l.institutionId.map(String)), E;
1257
+ return P && (R.productId = l.companyId ? l.companyId + "_2" : null), l.recruitmentId && (R.recruitmentId = l.recruitmentId.toString()), l.selections && (R.selections = l.selections), l.institutionId && (R.institutionId = l.institutionId.map(String)), R;
1258
1258
  }
1259
1259
  async function i(l) {
1260
1260
  return y().track(l.name, e, t(l.properties), !0);
@@ -1265,7 +1265,7 @@ function ri() {
1265
1265
  async function r(l) {
1266
1266
  return y().track(l.name, e, t(l.properties, !0));
1267
1267
  }
1268
- async function c(l) {
1268
+ async function a(l) {
1269
1269
  return y().track(l.name, e, t(l.properties, !0));
1270
1270
  }
1271
1271
  async function u(l) {
@@ -1280,7 +1280,7 @@ function ri() {
1280
1280
  async function s(l) {
1281
1281
  return y().track(l.name, e, t(l.properties, !0));
1282
1282
  }
1283
- async function a(l) {
1283
+ async function c(l) {
1284
1284
  return y().track(l.name, e, t(l.properties, !0));
1285
1285
  }
1286
1286
  async function f(l) {
@@ -1305,12 +1305,12 @@ function ri() {
1305
1305
  profileDocumentDeleted: i,
1306
1306
  profileLabelAdded: n,
1307
1307
  profileLabelRemoved: r,
1308
- profileShared: c,
1308
+ profileShared: a,
1309
1309
  profileArchived: u,
1310
1310
  profileCandidateAdded: m,
1311
1311
  profileCommentAdded: d,
1312
1312
  profileDocumentAdded: s,
1313
- profileDocumentDownloaded: a,
1313
+ profileDocumentDownloaded: c,
1314
1314
  profileDocumentRequested: f,
1315
1315
  profileRecruitmentAdded: p,
1316
1316
  profileRecruitmentRemoved: h,
@@ -1355,7 +1355,7 @@ function oi() {
1355
1355
  async function r(o) {
1356
1356
  return y().track(o.name, e, t(o.properties, !0));
1357
1357
  }
1358
- async function c(o) {
1358
+ async function a(o) {
1359
1359
  return y().page(o.name, e, t(o.properties, !0));
1360
1360
  }
1361
1361
  async function u(o) {
@@ -1370,7 +1370,7 @@ function oi() {
1370
1370
  async function s(o) {
1371
1371
  return y().page(o.name, e, t(o.properties, !0));
1372
1372
  }
1373
- async function a(o) {
1373
+ async function c(o) {
1374
1374
  return y().page(o.name, e, t(o.properties, !0));
1375
1375
  }
1376
1376
  async function f(o) {
@@ -1397,7 +1397,7 @@ function oi() {
1397
1397
  async function P(o) {
1398
1398
  return y().page(o.name, e, t(o.properties, !0));
1399
1399
  }
1400
- async function E(o) {
1400
+ async function R(o) {
1401
1401
  return y().page(o.name, e, t(o.properties, !0));
1402
1402
  }
1403
1403
  async function I(o) {
@@ -1409,10 +1409,10 @@ function oi() {
1409
1409
  async function ke(o) {
1410
1410
  return y().track(o.name, e, t(o.properties, !0));
1411
1411
  }
1412
- async function Ee(o) {
1412
+ async function Re(o) {
1413
1413
  return y().track(o.name, e, t(o.properties, !0));
1414
1414
  }
1415
- async function Re(o) {
1415
+ async function Ee(o) {
1416
1416
  return y().track(o.name, e, t(o.properties, !0));
1417
1417
  }
1418
1418
  async function Ie(o) {
@@ -1436,10 +1436,10 @@ function oi() {
1436
1436
  async function Le(o) {
1437
1437
  return y().track(o.name, e, t(o.properties, !0));
1438
1438
  }
1439
- async function Me(o) {
1439
+ async function Ne(o) {
1440
1440
  return y().track(o.name, e, t(o.properties, !0));
1441
1441
  }
1442
- async function Ne(o) {
1442
+ async function Me(o) {
1443
1443
  return y().track(o.name, e, t(o.properties, !0));
1444
1444
  }
1445
1445
  async function De(o) {
@@ -1449,12 +1449,12 @@ function oi() {
1449
1449
  careerSitePreviewViewed: i,
1450
1450
  careerSitePublished: n,
1451
1451
  setupBenefitCustomAdded: r,
1452
- setupBenefitViewed: c,
1452
+ setupBenefitViewed: a,
1453
1453
  setupCandidateInformationViewed: u,
1454
1454
  setupContactAdded: m,
1455
1455
  setupContactViewed: d,
1456
1456
  setupEditionDoneViewed: s,
1457
- setupExternalLinkViewed: a,
1457
+ setupExternalLinkViewed: c,
1458
1458
  setupImageUploaded: f,
1459
1459
  setupImageViewed: p,
1460
1460
  setupLocationViewed: h,
@@ -1463,12 +1463,12 @@ function oi() {
1463
1463
  setupPresentationViewed: S,
1464
1464
  setupSettingsDoneViewed: l,
1465
1465
  setupSocialNetworkViewed: P,
1466
- setupThemeViewed: E,
1466
+ setupThemeViewed: R,
1467
1467
  visualBuilderViewed: I,
1468
1468
  setupImageUploadFailed: Pe,
1469
1469
  fastCopyLinkClicked: ke,
1470
- setupBenefitCustomDeleted: Ee,
1471
- setupBenefitCustomEdited: Re,
1470
+ setupBenefitCustomDeleted: Re,
1471
+ setupBenefitCustomEdited: Ee,
1472
1472
  setupContactDeleted: Ie,
1473
1473
  setupContactEdited: Ce,
1474
1474
  setupContactNewClicked: Se,
@@ -1476,8 +1476,8 @@ function oi() {
1476
1476
  setupPresentationContentDuplicated: $e,
1477
1477
  setupPresentationContentMoved: Te,
1478
1478
  setupPresentationTabDeleted: Le,
1479
- setupPresentationTabEdited: Me,
1480
- setupPresentationTabMoved: Ne,
1479
+ setupPresentationTabEdited: Ne,
1480
+ setupPresentationTabMoved: Me,
1481
1481
  setupSEOViewed: De
1482
1482
  };
1483
1483
  }
@@ -1572,7 +1572,7 @@ const ai = async (e, t) => {
1572
1572
  }), A.info("Loading Analytics script."), window.analytics)
1573
1573
  return e();
1574
1574
  we();
1575
- })), z), Nr = {
1575
+ })), z), Dr = {
1576
1576
  key: Z,
1577
1577
  appendScript: we,
1578
1578
  ready: H,
@@ -1596,7 +1596,7 @@ const ve = () => new Promise((e) => {
1596
1596
  };
1597
1597
  const e = document.createElement("script");
1598
1598
  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), be = !0;
1599
- }, Dr = {
1599
+ }, xr = {
1600
1600
  scriptReady: ve,
1601
1601
  autocompleteInput: li
1602
1602
  }, pi = {
@@ -1628,22 +1628,22 @@ const ve = () => new Promise((e) => {
1628
1628
  fr: pi
1629
1629
  };
1630
1630
  let X = null;
1631
- const yi = () => X, xr = (e = {}) => {
1631
+ const yi = () => X, _r = (e = {}) => {
1632
1632
  let t = e.locale || "fr";
1633
- const i = (d) => t = d, n = () => t, r = ce(hi, (e == null ? void 0 : e.messages) || {}), c = (d, s) => {
1634
- const a = O(r, `${t}.${d}`);
1635
- return a ? s ? gi(a, s) : a : d;
1633
+ const i = (d) => t = d, n = () => t, r = ce(hi, (e == null ? void 0 : e.messages) || {}), a = (d, s) => {
1634
+ const c = O(r, `${t}.${d}`);
1635
+ return c ? s ? gi(c, s) : c : d;
1636
1636
  }, u = (d, s) => {
1637
- const a = O(r, `${t}.${d}`);
1638
- return a ? wi(a, s) : d;
1637
+ const c = O(r, `${t}.${d}`);
1638
+ return c ? wi(c, s) : d;
1639
1639
  };
1640
1640
  return X = {
1641
- t: c,
1641
+ t: a,
1642
1642
  tNode: u,
1643
1643
  setLocale: i,
1644
1644
  getLocale: n,
1645
1645
  install: (d) => {
1646
- d.config.globalProperties.$t = c, d.config.globalProperties.$tNode = u;
1646
+ d.config.globalProperties.$t = a, d.config.globalProperties.$tNode = u;
1647
1647
  }
1648
1648
  }, X;
1649
1649
  }, gi = (e, t) => e ? e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g, (i, n) => O(t, n)) : null, wi = (e, t) => {
@@ -1654,21 +1654,21 @@ const yi = () => X, xr = (e = {}) => {
1654
1654
  if (r === "text")
1655
1655
  return () => re.text(n);
1656
1656
  n = n.replace(/[{}%]/g, "").trim();
1657
- const c = n.match(/^[a-zA-Z_.]+/)[0];
1658
- n = n.replace(c, "").trim();
1657
+ const a = n.match(/^[a-zA-Z_.]+/)[0];
1658
+ n = n.replace(a, "").trim();
1659
1659
  const u = {};
1660
- 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) => {
1661
- let f = a[2];
1662
- 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;
1663
- }, u)), (m) => re[r](c, t, m, u);
1660
+ return n !== "" && ([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((s, c) => (c[3] === void 0 ? D(s, c[1], O(t, c[1])) : D(s, c[1], O(t, c[3])), s), u), [...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((s, c) => {
1661
+ let f = c[2];
1662
+ return new RegExp(/^[0-9]*$/).exec(c[2]) ? f = parseInt(c[2]) : new RegExp(/^(true|false)$/).exec(c[2]) && (f = c[2] === "true"), s[c[1]] = f, s;
1663
+ }, u)), (m) => re[r](a, t, m, u);
1664
1664
  });
1665
- return { setup: (n, { slots: r }) => () => i.map((c) => c(r)) };
1665
+ return { setup: (n, { slots: r }) => () => i.map((a) => a(r)) };
1666
1666
  }, re = {
1667
1667
  slot: (e, t, i, n) => Q("span", { class: "node node--slot" }, i[e.trim()](n)),
1668
1668
  variable: (e, t) => Q("span", { class: "node node--variable" }, O(t, e.trim())),
1669
1669
  text: (e) => Q("span", { class: "node node--text" }, e)
1670
1670
  };
1671
- function _r(e) {
1671
+ function jr(e) {
1672
1672
  const { t } = yi(), i = {
1673
1673
  justNow: t("timeAgo.just-now"),
1674
1674
  past: (n) => n.match(/\d/) ? t("timeAgo.ago", [n]) : n,
@@ -1701,7 +1701,7 @@ function bi() {
1701
1701
  function r() {
1702
1702
  return e.action;
1703
1703
  }
1704
- function c() {
1704
+ function a() {
1705
1705
  return e.arguments;
1706
1706
  }
1707
1707
  function u() {
@@ -1709,8 +1709,8 @@ function bi() {
1709
1709
  }
1710
1710
  function m() {
1711
1711
  window.location.search.length !== 0 && (e = window.location.search.substring(1).split("&").reduce((d, s) => {
1712
- const a = s.split("=");
1713
- return a[0] === "controller" || a[0] === "action" ? d[a[0]] = decodeURIComponent(a[1]) : d.arguments[a[0]] = decodeURIComponent(a[1]), d;
1712
+ const c = s.split("=");
1713
+ return c[0] === "controller" || c[0] === "action" ? d[c[0]] = decodeURIComponent(c[1]) : d.arguments[c[0]] = decodeURIComponent(c[1]), d;
1714
1714
  }, { controller: null, action: null, arguments: {} }));
1715
1715
  }
1716
1716
  return m(), {
@@ -1718,19 +1718,19 @@ function bi() {
1718
1718
  getController: i,
1719
1719
  getControllerComposableName: n,
1720
1720
  getAction: r,
1721
- getArguments: c,
1721
+ getArguments: a,
1722
1722
  hasAction: u
1723
1723
  };
1724
1724
  }
1725
1725
  function vi() {
1726
- async function e({ domain: n, event: r, ...c }) {
1726
+ async function e({ domain: n, event: r, ...a }) {
1727
1727
  const u = "useAnalytics" + n.charAt(0).toUpperCase() + n.slice(1);
1728
1728
  if (!t(u))
1729
1729
  throw new Error(`Domain ${n} is not defined`);
1730
1730
  const m = ie[u]();
1731
1731
  if (!i(m, r))
1732
1732
  throw new Error(`Event ${r} is not defined in domain ${n}`);
1733
- return m[r](c);
1733
+ return m[r](a);
1734
1734
  }
1735
1735
  function t(n) {
1736
1736
  return !!ie[n];
@@ -1767,14 +1767,14 @@ function Ai(e) {
1767
1767
  dispatch: t
1768
1768
  };
1769
1769
  }
1770
- function jr() {
1770
+ function Br() {
1771
1771
  let e = !1;
1772
- function t(r, c, u) {
1772
+ function t(r, a, u) {
1773
1773
  n(), u();
1774
1774
  }
1775
- function i(r, c, u) {
1775
+ function i(r, a, u) {
1776
1776
  if (!e)
1777
- return e = !0, t(r, c, u);
1777
+ return e = !0, t(r, a, u);
1778
1778
  u();
1779
1779
  }
1780
1780
  function n() {
@@ -1789,44 +1789,55 @@ function jr() {
1789
1789
  handle: n
1790
1790
  };
1791
1791
  }
1792
- const Br = () => ({ getAssetUrl: (t) => `${$.getBaseAssetsUrl()}${t}` }), v = () => $.getMainAppHost(), Pi = () => `${v()}/rh/establishments`, ki = (e) => `${v()}/rh/establishment/${e}`, Ei = (e) => {
1792
+ const Pi = (e, t, i) => {
1793
+ const n = {};
1794
+ for (const r of e)
1795
+ t.query[r] !== void 0 && (n[r] = t.query[r]);
1796
+ if (Object.keys(n).length) {
1797
+ const r = JSON.parse(JSON.stringify(t));
1798
+ for (const a in n)
1799
+ delete r.query[a];
1800
+ i.replace(r);
1801
+ }
1802
+ return n;
1803
+ }, zr = (e, t, i) => Pi([e], t, i)[e], Vr = () => ({ getAssetUrl: (t) => `${$.getBaseAssetsUrl()}${t}` }), v = () => $.getMainAppHost(), ki = () => `${v()}/rh/establishments`, Ri = (e) => `${v()}/rh/establishment/${e}`, Ei = (e) => {
1793
1804
  var t;
1794
1805
  return typeof e == "string" ? e : typeof e == "object" && ((t = e == null ? void 0 : e.urls) != null && t.display) ? e.urls.display : null;
1795
- }, Ri = () => `${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) => {
1806
+ }, Ii = () => `${v()}/rh/dashboard`, Ci = (e) => `${v()}/candidate-invite/establishment/${e}`, Si = (e, t = !1) => t ? `${v()}/cvbank/${e}` : `${v()}/rh/establishment/${e}/cvtheque`, Oi = (e, t) => `${v()}/user-profile/establishment/${e}/user/${t}`, $i = (e) => `${v()}/rh/establishment/${e}/recruitment`, Ti = (e, t) => `${v()}/rh/establishment/${e}/recruitment/${t}`, Li = (e, t) => `${v()}/rh/establishment/${e}/recruitment/${t}/kanban`, Ni = (e) => `${v()}/rh/establishment/${e}/career-configuration`, Mi = (e, t = null) => t ? `${v()}/career-website/${e}/${t}` : `${v()}/career-website/${e}`, Di = (e, t) => `${v()}/career-website-preview/${e}/${t}`, xi = (e, t = null) => {
1796
1807
  const i = v().replace("://", `://${e}.`);
1797
1808
  return t ? `${i}?_version=${t}` : `${i}`;
1798
- }, xi = (e) => `${v()}/rh/establishment/${e}/stats`, _i = (e) => `${v()}/rh/establishment/${e}/backoffice`, ji = () => `${v()}/rh/settings/general`;
1799
- function zr() {
1809
+ }, _i = (e) => `${v()}/rh/establishment/${e}/stats`, ji = (e) => `${v()}/rh/establishment/${e}/backoffice`, Bi = () => `${v()}/rh/settings/general`;
1810
+ function Ur() {
1800
1811
  return {
1801
1812
  root: v,
1802
- establishments: Pi,
1803
- establishment: ki,
1813
+ establishments: ki,
1814
+ establishment: Ri,
1804
1815
  img: Ei,
1805
- dashboard: Ri,
1806
- candidateInvite: Ii,
1807
- cvtheque: Ci,
1808
- userProfile: Si,
1809
- recruitments: Oi,
1810
- recruitment: $i,
1811
- recruitmentKanban: Ti,
1812
- career: Li,
1816
+ dashboard: Ii,
1817
+ candidateInvite: Ci,
1818
+ cvtheque: Si,
1819
+ userProfile: Oi,
1820
+ recruitments: $i,
1821
+ recruitment: Ti,
1822
+ recruitmentKanban: Li,
1823
+ career: Ni,
1813
1824
  careerConfig: Mi,
1814
- careerPreview: Ni,
1815
- careerWebsite: Di,
1816
- statistics: xi,
1817
- backoffice: _i,
1818
- userSettings: ji
1825
+ careerPreview: Di,
1826
+ careerWebsite: xi,
1827
+ statistics: _i,
1828
+ backoffice: ji,
1829
+ userSettings: Bi
1819
1830
  };
1820
1831
  }
1821
1832
  const oe = /* @__PURE__ */ new Set();
1822
- let N, Y = {
1833
+ let M, Y = {
1823
1834
  ignore: (e) => e.startsWith("Ui")
1824
1835
  };
1825
1836
  const K = (e) => {
1826
1837
  if (e != null && e.classList) {
1827
1838
  e._cssChecked = !0;
1828
1839
  for (const t of e.classList)
1829
- N.has(t) || oe.has(t) || Y.ignore(t) || (oe.add(t), A.error(`Undefined CSS class: ${t}`));
1840
+ M.has(t) || oe.has(t) || Y.ignore(t) || (oe.add(t), A.error(`Undefined CSS class: ${t}`));
1830
1841
  }
1831
1842
  }, Ae = (e) => {
1832
1843
  var t;
@@ -1837,19 +1848,19 @@ const K = (e) => {
1837
1848
  const n = (t = i.selectorText) == null ? void 0 : t.match(/\.[\w-]+/g);
1838
1849
  if (n)
1839
1850
  for (const r of n)
1840
- N.add(r.substr(1));
1851
+ M.add(r.substr(1));
1841
1852
  }
1842
- }, Vr = (e = {}) => {
1843
- if (N)
1844
- return N;
1845
- N = /* @__PURE__ */ new Set(), Y = { ...Y, ...e }, Ae(document.styleSheets), new MutationObserver((i) => {
1853
+ }, Fr = (e = {}) => {
1854
+ if (M)
1855
+ return M;
1856
+ M = /* @__PURE__ */ new Set(), Y = { ...Y, ...e }, Ae(document.styleSheets), new MutationObserver((i) => {
1846
1857
  for (const n of i)
1847
1858
  if (n.type === "childList" && (n != null && n.addedNodes)) {
1848
1859
  for (const r of n.addedNodes)
1849
1860
  if (!(r.nodeType === 3 || r.nodeType === 8)) {
1850
1861
  K(r);
1851
- for (const c of r.querySelectorAll("*"))
1852
- K(c);
1862
+ for (const a of r.querySelectorAll("*"))
1863
+ K(a);
1853
1864
  }
1854
1865
  } else
1855
1866
  (n == null ? void 0 : n.attributeName) === "class" && K(n.target);
@@ -1858,89 +1869,91 @@ const K = (e) => {
1858
1869
  childList: !0,
1859
1870
  subtree: !0
1860
1871
  });
1861
- }, Ur = "0.2.75";
1872
+ }, Hr = "0.2.76";
1862
1873
  export {
1863
- Nr as Analytics,
1874
+ Dr as Analytics,
1864
1875
  J as BaseLogger,
1865
- Dr as Gmap,
1876
+ xr as Gmap,
1866
1877
  $ as SDKConfig,
1867
1878
  A as SDKLogger,
1868
- Ur as VERSION,
1879
+ Hr as VERSION,
1869
1880
  lt as _clone,
1870
1881
  O as _get,
1871
- sr as _map,
1882
+ or as _map,
1872
1883
  ce as _merge,
1873
1884
  ue as _pathList,
1874
1885
  D as _set,
1875
1886
  dt as _setMany,
1876
1887
  W as buildObjectValidation,
1877
- xr as createI18n,
1878
- ar as ensureScheme,
1879
- ir as hasOrIsInClass,
1880
- rr as inBrowser,
1888
+ zr as consumeQueryParam,
1889
+ Pi as consumeQueryParams,
1890
+ _r as createI18n,
1891
+ cr as ensureScheme,
1892
+ rr as hasOrIsInClass,
1893
+ sr as inBrowser,
1881
1894
  T as inNode,
1882
1895
  U as isArray,
1883
- er as isArrayOf,
1884
- qi as isBoolean,
1885
- Wi as isDate,
1886
- Yi as isFalsy,
1887
- Ji as isFunction,
1888
- Hi as isMobile,
1889
- Zi as isNotNullOrUndefined,
1896
+ tr as isArrayOf,
1897
+ Gi as isBoolean,
1898
+ Ji as isDate,
1899
+ er as isFalsy,
1900
+ Zi as isFunction,
1901
+ Qi as isMobile,
1902
+ Xi as isNotNullOrUndefined,
1890
1903
  at as isNull,
1891
1904
  ut as isNullOrUndefined,
1892
- Gi as isNumber,
1905
+ Ki as isNumber,
1893
1906
  F as isObject,
1894
- tr as isObjectOf,
1895
- nr as isObjectValid,
1896
- Ki as isString,
1897
- Xi as isTruthy,
1907
+ nr as isObjectOf,
1908
+ ir as isObjectValid,
1909
+ Wi as isString,
1910
+ Yi as isTruthy,
1898
1911
  ct as isUndefined,
1899
- Qi as sanitizeObject,
1900
- or as secureScheme,
1912
+ qi as sanitizeObject,
1913
+ ar as secureScheme,
1901
1914
  ot as transpileAsserts,
1902
- cr as useActivityRepository,
1915
+ ur as useActivityRepository,
1903
1916
  ii as useAnalyticsHublerApplication,
1904
1917
  Mr as useAnalyticsIdentify,
1905
1918
  ri as useAnalyticsProfile,
1906
1919
  si as useAnalyticsRecruitment,
1907
1920
  oi as useAnalyticsVisualBuilder,
1908
- Br as useAssetUrls,
1921
+ Vr as useAssetUrls,
1909
1922
  V as useAuthentication,
1910
1923
  ni as useAuthorization,
1911
- Lr as useAuthorizationStore,
1912
- Tr as useCanAccessEstablishmentMiddleware,
1913
- ur as useCandidateRepository,
1914
- dr as useCommentRepository,
1915
- lr as useContractTypeRepository,
1924
+ Nr as useAuthorizationStore,
1925
+ Lr as useCanAccessEstablishmentMiddleware,
1926
+ dr as useCandidateRepository,
1927
+ lr as useCommentRepository,
1928
+ mr as useContractTypeRepository,
1916
1929
  pt as useCookieStorage,
1917
- mr as useCvbankRepository,
1918
- fr as useCvthequeRepository,
1919
- pr as useDiplomaRepository,
1920
- hr as useDocumentRepository,
1921
- zr as useDomainUrls,
1922
- yr as useEmailHistoryRepository,
1923
- gr as useEmailRepository,
1924
- wr as useEmailTemplateRepository,
1925
- br as useEstablishmentCareerRepository,
1930
+ fr as useCvbankRepository,
1931
+ pr as useCvthequeRepository,
1932
+ hr as useDiplomaRepository,
1933
+ yr as useDocumentRepository,
1934
+ Ur as useDomainUrls,
1935
+ gr as useEmailHistoryRepository,
1936
+ wr as useEmailRepository,
1937
+ br as useEmailTemplateRepository,
1938
+ vr as useEstablishmentCareerRepository,
1926
1939
  ye as useEstablishmentRepository,
1927
- vr as useFeatureFlagRepository,
1940
+ Ar as useFeatureFlagRepository,
1928
1941
  yi as useI18n,
1929
- Ar as useJobRepository,
1930
- Pr as useLabelRepository,
1931
- _r as useLocaleTimeAgo,
1942
+ Pr as useJobRepository,
1943
+ kr as useLabelRepository,
1944
+ jr as useLocaleTimeAgo,
1932
1945
  st as useObjectValidation,
1933
- kr as useOfferRepository,
1946
+ Rr as useOfferRepository,
1934
1947
  g as usePrivateRequest,
1935
- jr as useQSAction,
1948
+ Br as useQSAction,
1936
1949
  Er as useRecruiterRepository,
1937
- Rr as useRecruitmentRepository,
1938
- Ir as useRegisterRepository,
1939
- Cr as useRegistrationRepository,
1950
+ Ir as useRecruitmentRepository,
1951
+ Cr as useRegisterRepository,
1952
+ Sr as useRegistrationRepository,
1940
1953
  k as useRequest,
1941
- Sr as useSpecialityRepository,
1942
- Or as useTagRepository,
1943
- $r as useTalentRepository,
1944
- Vr as useUndefinedCssClasses,
1954
+ Or as useSpecialityRepository,
1955
+ $r as useTagRepository,
1956
+ Tr as useTalentRepository,
1957
+ Fr as useUndefinedCssClasses,
1945
1958
  ge as useUserRepository
1946
1959
  };