@hublo/mstaff-client-sdk 0.2.77 → 0.2.78

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 +1589 -1169
  3. package/package.json +1 -1
package/dist/core.js CHANGED
@@ -1,12 +1,12 @@
1
- var _e = Object.defineProperty;
2
- var je = (e, t, i) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
- var C = (e, t, i) => (je(e, typeof t != "symbol" ? t + "" : t, i), i);
4
- import { getCurrentScope as Be, onScopeDispose as ze, ref as Ve, h as Q } from "vue";
5
- import Ue from "axios";
6
- import { defineStore as Fe } from "pinia";
7
- import { useTimeAgo as He } from "@vueuse/core";
8
- function Qe(e) {
9
- return Be() ? (ze(e), !0) : !1;
1
+ var Lt = Object.defineProperty;
2
+ var Dt = (e, t, r) => t in e ? Lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var _ = (e, t, r) => (Dt(e, typeof t != "symbol" ? t + "" : t, r), r);
4
+ import { getCurrentScope as jt, onScopeDispose as xt, ref as Vt, computed as W, h as fe } from "vue";
5
+ import zt from "axios";
6
+ import { defineStore as Bt } from "pinia";
7
+ import { useTimeAgo as Ft } from "@vueuse/core";
8
+ function Ut(e) {
9
+ return jt() ? (xt(e), !0) : !1;
10
10
  }
11
11
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
12
12
  /*!
@@ -15,154 +15,154 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
15
15
  * Copyright(c) 2015 Douglas Christopher Wilson
16
16
  * MIT Licensed
17
17
  */
18
- var ae = Ge, ee = Ke, qe = Object.prototype.toString, x = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
19
- function Ge(e, t) {
18
+ var Qe = Qt, ke = qt, Ht = Object.prototype.toString, J = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
19
+ function Qt(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, a = 0; a < e.length; ) {
23
- var u = e.indexOf("=", a);
24
- if (u === -1)
22
+ for (var r = {}, n = t || {}, i = n.decode || Gt, s = 0; s < e.length; ) {
23
+ var o = e.indexOf("=", s);
24
+ if (o === -1)
25
25
  break;
26
- var m = e.indexOf(";", a);
27
- if (m === -1)
28
- m = e.length;
29
- else if (m < u) {
30
- a = e.lastIndexOf(";", u - 1) + 1;
26
+ var c = e.indexOf(";", s);
27
+ if (c === -1)
28
+ c = e.length;
29
+ else if (c < o) {
30
+ s = e.lastIndexOf(";", o - 1) + 1;
31
31
  continue;
32
32
  }
33
- var d = e.slice(a, 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] = Xe(s, r);
33
+ var d = e.slice(s, o).trim();
34
+ if (r[d] === void 0) {
35
+ var u = e.slice(o + 1, c).trim();
36
+ u.charCodeAt(0) === 34 && (u = u.slice(1, -1)), r[d] = Jt(u, i);
37
37
  }
38
- a = m + 1;
38
+ s = c + 1;
39
39
  }
40
- return i;
40
+ return r;
41
41
  }
42
- function Ke(e, t, i) {
43
- var n = i || {}, r = n.encode || Je;
44
- if (typeof r != "function")
42
+ function qt(e, t, r) {
43
+ var n = r || {}, i = n.encode || Kt;
44
+ if (typeof i != "function")
45
45
  throw new TypeError("option encode is invalid");
46
- if (!x.test(e))
46
+ if (!J.test(e))
47
47
  throw new TypeError("argument name is invalid");
48
- var a = r(t);
49
- if (a && !x.test(a))
48
+ var s = i(t);
49
+ if (s && !J.test(s))
50
50
  throw new TypeError("argument val is invalid");
51
- var u = e + "=" + a;
51
+ var o = e + "=" + s;
52
52
  if (n.maxAge != null) {
53
- var m = n.maxAge - 0;
54
- if (isNaN(m) || !isFinite(m))
53
+ var c = n.maxAge - 0;
54
+ if (isNaN(c) || !isFinite(c))
55
55
  throw new TypeError("option maxAge is invalid");
56
- u += "; Max-Age=" + Math.floor(m);
56
+ o += "; Max-Age=" + Math.floor(c);
57
57
  }
58
58
  if (n.domain) {
59
- if (!x.test(n.domain))
59
+ if (!J.test(n.domain))
60
60
  throw new TypeError("option domain is invalid");
61
- u += "; Domain=" + n.domain;
61
+ o += "; Domain=" + n.domain;
62
62
  }
63
63
  if (n.path) {
64
- if (!x.test(n.path))
64
+ if (!J.test(n.path))
65
65
  throw new TypeError("option path is invalid");
66
- u += "; Path=" + n.path;
66
+ o += "; Path=" + n.path;
67
67
  }
68
68
  if (n.expires) {
69
69
  var d = n.expires;
70
- if (!Ze(d) || isNaN(d.valueOf()))
70
+ if (!Wt(d) || isNaN(d.valueOf()))
71
71
  throw new TypeError("option expires is invalid");
72
- u += "; Expires=" + d.toUTCString();
72
+ o += "; Expires=" + d.toUTCString();
73
73
  }
74
- if (n.httpOnly && (u += "; HttpOnly"), n.secure && (u += "; Secure"), n.partitioned && (u += "; Partitioned"), n.priority) {
75
- var s = typeof n.priority == "string" ? n.priority.toLowerCase() : n.priority;
76
- switch (s) {
74
+ if (n.httpOnly && (o += "; HttpOnly"), n.secure && (o += "; Secure"), n.partitioned && (o += "; Partitioned"), n.priority) {
75
+ var u = typeof n.priority == "string" ? n.priority.toLowerCase() : n.priority;
76
+ switch (u) {
77
77
  case "low":
78
- u += "; Priority=Low";
78
+ o += "; Priority=Low";
79
79
  break;
80
80
  case "medium":
81
- u += "; Priority=Medium";
81
+ o += "; Priority=Medium";
82
82
  break;
83
83
  case "high":
84
- u += "; Priority=High";
84
+ o += "; Priority=High";
85
85
  break;
86
86
  default:
87
87
  throw new TypeError("option priority is invalid");
88
88
  }
89
89
  }
90
90
  if (n.sameSite) {
91
- var c = typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite;
92
- switch (c) {
91
+ var a = typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite;
92
+ switch (a) {
93
93
  case !0:
94
- u += "; SameSite=Strict";
94
+ o += "; SameSite=Strict";
95
95
  break;
96
96
  case "lax":
97
- u += "; SameSite=Lax";
97
+ o += "; SameSite=Lax";
98
98
  break;
99
99
  case "strict":
100
- u += "; SameSite=Strict";
100
+ o += "; SameSite=Strict";
101
101
  break;
102
102
  case "none":
103
- u += "; SameSite=None";
103
+ o += "; SameSite=None";
104
104
  break;
105
105
  default:
106
106
  throw new TypeError("option sameSite is invalid");
107
107
  }
108
108
  }
109
- return u;
109
+ return o;
110
110
  }
111
- function We(e) {
111
+ function Gt(e) {
112
112
  return e.indexOf("%") !== -1 ? decodeURIComponent(e) : e;
113
113
  }
114
- function Je(e) {
114
+ function Kt(e) {
115
115
  return encodeURIComponent(e);
116
116
  }
117
- function Ze(e) {
118
- return qe.call(e) === "[object Date]" || e instanceof Date;
117
+ function Wt(e) {
118
+ return Ht.call(e) === "[object Date]" || e instanceof Date;
119
119
  }
120
- function Xe(e, t) {
120
+ function Jt(e, t) {
121
121
  try {
122
122
  return t(e);
123
123
  } catch {
124
124
  return e;
125
125
  }
126
126
  }
127
- function Ye() {
127
+ function Zt() {
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 et(e) {
132
- return typeof e == "string" ? ae(e) : typeof e == "object" && e !== null ? e : {};
131
+ function Xt(e) {
132
+ return typeof e == "string" ? Qe(e) : typeof e == "object" && e !== null ? e : {};
133
133
  }
134
- function q(e, t = {}) {
135
- const i = tt(e);
134
+ function pe(e, t = {}) {
135
+ const r = Yt(e);
136
136
  if (!t.doNotParse)
137
137
  try {
138
- return JSON.parse(i);
138
+ return JSON.parse(r);
139
139
  } catch {
140
140
  }
141
141
  return e;
142
142
  }
143
- function tt(e) {
143
+ function Yt(e) {
144
144
  return e && e[0] === "j" && e[1] === ":" ? e.substr(2) : e;
145
145
  }
146
- class nt {
147
- constructor(t, i = {}) {
146
+ class en {
147
+ constructor(t, r = {}) {
148
148
  this.changeListeners = [], this.HAS_DOCUMENT_COOKIE = !1, this.update = () => {
149
149
  if (!this.HAS_DOCUMENT_COOKIE)
150
150
  return;
151
- const r = this.cookies;
152
- this.cookies = ae(document.cookie), this._checkChanges(r);
151
+ const i = this.cookies;
152
+ this.cookies = Qe(document.cookie), this._checkChanges(i);
153
153
  };
154
154
  const n = typeof document > "u" ? "" : document.cookie;
155
- this.cookies = et(t || n), this.defaultSetOptions = i, this.HAS_DOCUMENT_COOKIE = Ye();
155
+ this.cookies = Xt(t || n), this.defaultSetOptions = r, this.HAS_DOCUMENT_COOKIE = Zt();
156
156
  }
157
157
  _emitChange(t) {
158
- for (let i = 0; i < this.changeListeners.length; ++i)
159
- this.changeListeners[i](t);
158
+ for (let r = 0; r < this.changeListeners.length; ++r)
159
+ this.changeListeners[r](t);
160
160
  }
161
161
  _checkChanges(t) {
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: q(this.cookies[n])
165
+ value: pe(this.cookies[n])
166
166
  });
167
167
  });
168
168
  }
@@ -172,127 +172,127 @@ class nt {
172
172
  _stopPolling() {
173
173
  this.pollingInterval && clearInterval(this.pollingInterval);
174
174
  }
175
- get(t, i = {}) {
176
- return i.doNotUpdate || this.update(), q(this.cookies[t], i);
175
+ get(t, r = {}) {
176
+ return r.doNotUpdate || this.update(), pe(this.cookies[t], r);
177
177
  }
178
178
  getAll(t = {}) {
179
179
  t.doNotUpdate || this.update();
180
- const i = {};
180
+ const r = {};
181
181
  for (let n in this.cookies)
182
- i[n] = q(this.cookies[n], t);
183
- return i;
182
+ r[n] = pe(this.cookies[n], t);
183
+ return r;
184
184
  }
185
- set(t, i, n) {
185
+ set(t, r, n) {
186
186
  n ? n = Object.assign(Object.assign({}, this.defaultSetOptions), n) : n = this.defaultSetOptions;
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 = ee(t, r, n)), this._emitChange({ name: t, value: i, options: n });
187
+ const i = typeof r == "string" ? r : JSON.stringify(r);
188
+ this.cookies = Object.assign(Object.assign({}, this.cookies), { [t]: i }), this.HAS_DOCUMENT_COOKIE && (document.cookie = ke(t, i, n)), this._emitChange({ name: t, value: r, options: n });
189
189
  }
190
- remove(t, i) {
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 = ee(t, "", n)), this._emitChange({ name: t, value: void 0, options: i });
190
+ remove(t, r) {
191
+ const n = r = Object.assign(Object.assign(Object.assign({}, this.defaultSetOptions), r), { 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 = ke(t, "", n)), this._emitChange({ name: t, value: void 0, options: r });
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());
196
196
  }
197
197
  removeChangeListener(t) {
198
- const i = this.changeListeners.indexOf(t);
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());
198
+ const r = this.changeListeners.indexOf(t);
199
+ r >= 0 && this.changeListeners.splice(r, 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 it(e, { doNotParse: t = !1, autoUpdateDependencies: i = !1 } = {}, n = new nt()) {
203
- const r = i ? [...e || []] : e;
204
- let a = n.getAll({ doNotParse: !0 });
205
- const u = Ve(0), m = () => {
202
+ function tn(e, { doNotParse: t = !1, autoUpdateDependencies: r = !1 } = {}, n = new en()) {
203
+ const i = r ? [...e || []] : e;
204
+ let s = n.getAll({ doNotParse: !0 });
205
+ const o = Vt(0), c = () => {
206
206
  const d = n.getAll({ doNotParse: !0 });
207
- rt(
208
- r || null,
207
+ nn(
208
+ i || null,
209
209
  d,
210
- a
211
- ) && u.value++, a = d;
210
+ s
211
+ ) && o.value++, s = d;
212
212
  };
213
- return n.addChangeListener(m), Qe(() => {
214
- n.removeChangeListener(m);
213
+ return n.addChangeListener(c), Ut(() => {
214
+ n.removeChangeListener(c);
215
215
  }), {
216
216
  /**
217
217
  * Reactive get cookie by name. If **autoUpdateDependencies = true** then it will update watching dependencies
218
218
  */
219
- get: (...d) => (i && r && !r.includes(d[0]) && r.push(d[0]), u.value, n.get(d[0], { doNotParse: t, ...d[1] })),
219
+ get: (...d) => (r && i && !i.includes(d[0]) && i.push(d[0]), o.value, n.get(d[0], { doNotParse: t, ...d[1] })),
220
220
  /**
221
221
  * Reactive get all cookies
222
222
  */
223
- getAll: (...d) => (u.value, n.getAll({ doNotParse: t, ...d[0] })),
223
+ getAll: (...d) => (o.value, n.getAll({ doNotParse: t, ...d[0] })),
224
224
  set: (...d) => n.set(...d),
225
225
  remove: (...d) => n.remove(...d),
226
226
  addChangeListener: (...d) => n.addChangeListener(...d),
227
227
  removeChangeListener: (...d) => n.removeChangeListener(...d)
228
228
  };
229
229
  }
230
- function rt(e, t, i) {
230
+ function nn(e, t, r) {
231
231
  if (!e)
232
232
  return !0;
233
233
  for (const n of e)
234
- if (t[n] !== i[n])
234
+ if (t[n] !== r[n])
235
235
  return !0;
236
236
  return !1;
237
237
  }
238
- const Qi = () => {
238
+ const Os = () => {
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
- }, st = (e, t) => W(e, ot(t)), W = (e, t) => {
244
- const i = {};
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
- }, ot = (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)), 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
- U(t) || (t = [t]);
243
+ }, rn = (e, t) => ye(e, sn(t)), ye = (e, t) => {
244
+ const r = {};
245
+ return $e(t).forEach((n) => r[n] = ye(e == null ? void 0 : e[n], t[n])), "$item" in t && (e == null || e.forEach((n, i) => r[i] = ye(n, t.$item))), r.$valid = (!t.$asserts || t.$asserts.every((n) => n(e))) && $e(r).every((n) => r[n].$valid), r;
246
+ }, sn = (e) => un(
247
+ Object.entries(e).reduce((t, [r, n]) => (t[`${r.replaceAll(".[]", ".$item")}${r.length ? "." : ""}$asserts`] = Array.isArray(n) ? n : [n], t), {})
248
+ ), Cs = (e, t, r) => (e = JSON.parse(JSON.stringify(e)), Ge(e).forEach((i) => {
249
+ const s = i.replace(/\.[0-9]+/g, ".[]");
250
+ D(t, `${i}.$valid`) === !1 && r[s] !== void 0 && Q(e, i, r[s]);
251
+ }), e), $e = (e) => Object.keys(e).filter((t) => !t.startsWith("$")), _s = (e) => typeof e == "boolean", ks = (e) => typeof e == "number", $s = (e) => typeof e == "string", oe = (e) => Array.isArray(e), ae = (e) => typeof e == "object" && !oe(e) && e !== null, Ts = (e) => e instanceof Date, Ns = (e) => typeof e == "function", on = (e) => e === null, an = (e) => e === void 0, cn = (e) => on(e) || an(e), Ms = (e) => !cn(e), Ls = (e) => !!e, Ds = (e) => !e, js = (e, t) => oe(e) && e.every((r) => t(r)), xs = (e, t) => ae(e) && Object.values(e).every((r) => t(r)), Vs = (e, t) => rn(e, t).$valid, zs = (e, t, r = !1) => {
252
+ oe(t) || (t = [t]);
253
253
  let n = e;
254
254
  for (; n; ) {
255
- if (n.classList && t[i ? "every" : "some"]((r) => n.classList.contains(r)))
255
+ if (n.classList && t[r ? "every" : "some"]((i) => n.classList.contains(i)))
256
256
  return !0;
257
257
  n = n.parentElement;
258
258
  }
259
259
  return !1;
260
- }, sr = () => typeof window < "u" && typeof window.document < "u", T = () => typeof process < "u" && process.versions != null && process.versions.node != null, O = (e, t, i) => {
260
+ }, Bs = () => typeof window < "u" && typeof window.document < "u", z = () => typeof process < "u" && process.versions != null && process.versions.node != null, D = (e, t, r) => {
261
261
  const n = typeof t == "string" ? t.split(".") : [t];
262
- let r = e;
263
- const a = (m) => m != null, u = (m) => typeof m == "object";
264
- for (const [m, d] of n.entries()) {
265
- if (!a(r))
266
- return i;
267
- if (m === n.length - 1)
268
- return a(r[d]) ? r[d] : i;
269
- if (!u(r[d]))
270
- return i;
271
- r = r[d];
272
- }
273
- return i;
274
- }, D = (e, t, i) => {
275
- const n = typeof t == "string" ? t.split(".") : [t], r = (m) => typeof m == "number" || /^\d$/g.test(m), a = (m) => parseInt(m, 10);
276
- let u = e;
277
- return n.forEach((m, d) => {
262
+ let i = e;
263
+ const s = (c) => c != null, o = (c) => typeof c == "object";
264
+ for (const [c, d] of n.entries()) {
265
+ if (!s(i))
266
+ return r;
267
+ if (c === n.length - 1)
268
+ return s(i[d]) ? i[d] : r;
269
+ if (!o(i[d]))
270
+ return r;
271
+ i = i[d];
272
+ }
273
+ return r;
274
+ }, Q = (e, t, r) => {
275
+ const n = typeof t == "string" ? t.split(".") : [t], i = (c) => typeof c == "number" || /^\d$/g.test(c), s = (c) => parseInt(c, 10);
276
+ let o = e;
277
+ return n.forEach((c, d) => {
278
278
  if (d === n.length - 1)
279
- u[m] = i;
279
+ o[c] = r;
280
280
  else {
281
- const s = r(n[d + 1]) ? [] : {};
282
- m = r(m) ? a(m) : m, u[m] = u[m] ?? s, u = u[m];
281
+ const u = i(n[d + 1]) ? [] : {};
282
+ c = i(c) ? s(c) : c, o[c] = o[c] ?? u, o = o[c];
283
283
  }
284
284
  }), e;
285
- }, dt = (e, t = {}) => {
286
- const i = F(e) ? Object.entries(e) : e;
287
- for (const [n, r] of i)
288
- D(t, n, r);
285
+ }, un = (e, t = {}) => {
286
+ const r = ae(e) ? Object.entries(e) : e;
287
+ for (const [n, i] of r)
288
+ Q(t, n, i);
289
289
  return t;
290
- }, or = (e, t = {}) => {
291
- const i = F(e) ? Object.entries(e) : e;
292
- for (const [n, r] of i)
293
- D(t, n, r(t, n));
290
+ }, Fs = (e, t = {}) => {
291
+ const r = ae(e) ? Object.entries(e) : e;
292
+ for (const [n, i] of r)
293
+ Q(t, n, i(t, n));
294
294
  return t;
295
- }, lt = (e) => {
295
+ }, ln = (e) => {
296
296
  if (typeof e == "object") {
297
297
  if (Array.isArray(e))
298
298
  return [...e];
@@ -300,221 +300,704 @@ const Qi = () => {
300
300
  return { ...e };
301
301
  }
302
302
  return e;
303
- }, ce = (e, t) => {
304
- const i = { ...e };
305
- for (const [n, r] of Object.entries(t))
306
- n in i && typeof i[n] == "object" && typeof r == "object" ? i[n] = ce(i[n], r) : i[n] = lt(r);
307
- return i;
308
- }, ue = (e, t = () => !0, i = "") => {
303
+ }, qe = (e, t) => {
304
+ const r = { ...e };
305
+ for (const [n, i] of Object.entries(t))
306
+ n in r && typeof r[n] == "object" && typeof i == "object" ? r[n] = qe(r[n], i) : r[n] = ln(i);
307
+ return r;
308
+ }, Ge = (e, t = () => !0, r = "") => {
309
309
  const n = [];
310
- for (const r in e) {
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)));
310
+ for (const i in e) {
311
+ const s = e[i], o = r ? `${r}.${i}` : i;
312
+ t(i, o, s) && (n.push(o), (ae(s) || oe(s)) && n.push(...Ge(s, t, o)));
313
313
  }
314
314
  return n;
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
- const e = de();
315
+ }, Us = (e) => e.startsWith("http:") ? e.replace("http:", "https:") : e, Hs = (e, t = !1) => e.startsWith("http:") || e.startsWith("https:") ? e : t ? `https://${e}` : `http://${e}`, Ke = () => typeof window < "u" && (window != null && window.location) ? new URL(window.location).hostname : void 0, Te = () => {
316
+ const e = Ke();
317
317
  return !e || e === "localhost" ? e : `.${e}`;
318
- }, mt = () => ({ path: "/" }), ft = (e) => ({
318
+ }, dn = () => ({ path: "/" }), fn = (e) => ({
319
319
  path: "/",
320
320
  domain: e,
321
321
  sameSite: "none",
322
322
  secure: !0
323
- }), G = (e) => {
324
- if (!(T() || !e))
325
- return e.startsWith("localhost") ? mt() : ft(e);
323
+ }), me = (e) => {
324
+ if (!(z() || !e))
325
+ return e.startsWith("localhost") ? dn() : fn(e);
326
326
  };
327
- function pt() {
328
- const e = it(), t = (a) => e.get(a), i = (a, u) => e.set(
329
- a,
330
- u,
331
- G(ne())
332
- ), n = (a) => {
333
- e.remove(a), e.remove(a, G(de())), e.remove(a, G(ne()));
327
+ function pn() {
328
+ const e = tn(), t = (s) => e.get(s), r = (s, o) => e.set(
329
+ s,
330
+ o,
331
+ me(Te())
332
+ ), n = (s) => {
333
+ e.remove(s), e.remove(s, me(Ke())), e.remove(s, me(Te()));
334
334
  };
335
335
  return {
336
336
  getItem: t,
337
- setItem: i,
337
+ setItem: r,
338
338
  removeItem: n,
339
- clear: () => Object.keys(e.getAll()).forEach((a) => n(a))
339
+ clear: () => Object.keys(e.getAll()).forEach((s) => n(s))
340
340
  };
341
341
  }
342
- let _ = null;
343
- function V(e = {
342
+ let Z = null;
343
+ function We(e = {
344
344
  auth: "token",
345
345
  refresh: "refresh_token",
346
346
  expiration: "token_expiration_date"
347
- }, t = pt()) {
348
- if (_)
349
- return _;
350
- function i() {
347
+ }, t = pn()) {
348
+ if (Z)
349
+ return Z;
350
+ function r() {
351
351
  return t.getItem(e.auth);
352
352
  }
353
353
  function n() {
354
354
  return t.getItem(e.refresh);
355
355
  }
356
- function r() {
356
+ function i() {
357
357
  return t.getItem(e.expiration);
358
358
  }
359
- function a(p, h) {
360
- const w = c(p);
359
+ function s(m, h) {
360
+ const w = a(m);
361
361
  if (!w.exp)
362
362
  throw new Error("Invalid JWT token.");
363
- t.setItem(e.auth, p), t.setItem(e.refresh, h), t.setItem(e.expiration, ((w.exp - 60) * 1e3).toString());
363
+ t.setItem(e.auth, m), t.setItem(e.refresh, h), t.setItem(e.expiration, ((w.exp - 60) * 1e3).toString());
364
364
  }
365
- function u() {
365
+ function o() {
366
366
  t.removeItem(e.auth), t.removeItem(e.refresh), t.removeItem(e.expiration);
367
367
  }
368
- function m() {
369
- return d() && !s();
368
+ function c() {
369
+ return d() && !u();
370
370
  }
371
371
  function d() {
372
- return !!i();
372
+ return !!r();
373
373
  }
374
- function s() {
375
- const p = r();
376
- return p ? new Date(p) < /* @__PURE__ */ new Date() : !0;
374
+ function u() {
375
+ const m = i();
376
+ return m ? new Date(m) < /* @__PURE__ */ new Date() : !0;
377
377
  }
378
- function c(p) {
379
- return JSON.parse(atob(p.split(".")[1]));
378
+ function a(m) {
379
+ return JSON.parse(atob(m.split(".")[1]));
380
380
  }
381
- function f() {
381
+ function p() {
382
382
  return t;
383
383
  }
384
- return _ = {
384
+ return Z = {
385
385
  keys: e,
386
- getAuthToken: i,
386
+ getAuthToken: r,
387
387
  getRefreshToken: n,
388
- getExpiration: r,
389
- authenticate: a,
390
- clear: u,
391
- isAuthenticated: m,
388
+ getExpiration: i,
389
+ authenticate: s,
390
+ clear: o,
391
+ isAuthenticated: c,
392
392
  hasAuth: d,
393
- isExpired: s,
394
- getStorage: f
395
- }, _;
393
+ isExpired: u,
394
+ getStorage: p
395
+ }, Z;
396
+ }
397
+ function mn(e, t) {
398
+ const r = /* @__PURE__ */ Object.create(null), n = e.split(",");
399
+ for (let i = 0; i < n.length; i++)
400
+ r[n[i]] = !0;
401
+ return t ? (i) => !!r[i.toLowerCase()] : (i) => !!r[i];
402
+ }
403
+ process.env.NODE_ENV !== "production" && Object.freeze({});
404
+ process.env.NODE_ENV !== "production" && Object.freeze([]);
405
+ const Je = Object.assign, hn = Object.prototype.hasOwnProperty, ce = (e, t) => hn.call(e, t), N = Array.isArray, U = (e) => Ze(e) === "[object Map]", yn = (e) => typeof e == "string", Ie = (e) => typeof e == "symbol", ue = (e) => e !== null && typeof e == "object", gn = Object.prototype.toString, Ze = (e) => gn.call(e), Xe = (e) => Ze(e).slice(8, -1), Re = (e) => yn(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, wn = (e) => {
406
+ const t = /* @__PURE__ */ Object.create(null);
407
+ return (r) => t[r] || (t[r] = e(r));
408
+ }, bn = wn(
409
+ (e) => e.charAt(0).toUpperCase() + e.slice(1)
410
+ ), Se = (e, t) => !Object.is(e, t);
411
+ function Ne(e, ...t) {
412
+ console.warn(`[Vue warn] ${e}`, ...t);
413
+ }
414
+ const q = (e) => {
415
+ const t = new Set(e);
416
+ return t.w = 0, t.n = 0, t;
417
+ }, vn = (e) => (e.w & Oe) > 0, En = (e) => (e.n & Oe) > 0, ge = /* @__PURE__ */ new WeakMap();
418
+ let Oe = 1, k;
419
+ const L = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), we = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
420
+ let G = !0;
421
+ const Ye = [];
422
+ function An() {
423
+ Ye.push(G), G = !1;
424
+ }
425
+ function Pn() {
426
+ const e = Ye.pop();
427
+ G = e === void 0 ? !0 : e;
428
+ }
429
+ function S(e, t, r) {
430
+ if (G && k) {
431
+ let n = ge.get(e);
432
+ n || ge.set(e, n = /* @__PURE__ */ new Map());
433
+ let i = n.get(r);
434
+ i || n.set(r, i = q());
435
+ const s = process.env.NODE_ENV !== "production" ? { effect: k, target: e, type: t, key: r } : void 0;
436
+ be(i, s);
437
+ }
438
+ }
439
+ function be(e, t) {
440
+ let r = !1;
441
+ En(e) || (e.n |= Oe, r = !vn(e)), r && (e.add(k), k.deps.push(e), process.env.NODE_ENV !== "production" && k.onTrack && k.onTrack(
442
+ Je(
443
+ {
444
+ effect: k
445
+ },
446
+ t
447
+ )
448
+ ));
449
+ }
450
+ function M(e, t, r, n, i, s) {
451
+ const o = ge.get(e);
452
+ if (!o)
453
+ return;
454
+ let c = [];
455
+ if (t === "clear")
456
+ c = [...o.values()];
457
+ else if (r === "length" && N(e)) {
458
+ const u = Number(n);
459
+ o.forEach((a, p) => {
460
+ (p === "length" || p >= u) && c.push(a);
461
+ });
462
+ } else
463
+ switch (r !== void 0 && c.push(o.get(r)), t) {
464
+ case "add":
465
+ N(e) ? Re(r) && c.push(o.get("length")) : (c.push(o.get(L)), U(e) && c.push(o.get(we)));
466
+ break;
467
+ case "delete":
468
+ N(e) || (c.push(o.get(L)), U(e) && c.push(o.get(we)));
469
+ break;
470
+ case "set":
471
+ U(e) && c.push(o.get(L));
472
+ break;
473
+ }
474
+ const d = process.env.NODE_ENV !== "production" ? { target: e, type: t, key: r, newValue: n, oldValue: i, oldTarget: s } : void 0;
475
+ if (c.length === 1)
476
+ c[0] && (process.env.NODE_ENV !== "production" ? x(c[0], d) : x(c[0]));
477
+ else {
478
+ const u = [];
479
+ for (const a of c)
480
+ a && u.push(...a);
481
+ process.env.NODE_ENV !== "production" ? x(q(u), d) : x(q(u));
482
+ }
483
+ }
484
+ function x(e, t) {
485
+ const r = N(e) ? e : [...e];
486
+ for (const n of r)
487
+ n.computed && Me(n, t);
488
+ for (const n of r)
489
+ n.computed || Me(n, t);
490
+ }
491
+ function Me(e, t) {
492
+ (e !== k || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger(Je({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
493
+ }
494
+ const In = /* @__PURE__ */ mn("__proto__,__v_isRef,__isVue"), et = new Set(
495
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Ie)
496
+ ), Rn = /* @__PURE__ */ tt(), Sn = /* @__PURE__ */ tt(!0), Le = /* @__PURE__ */ On();
497
+ function On() {
498
+ const e = {};
499
+ return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
500
+ e[t] = function(...r) {
501
+ const n = b(this);
502
+ for (let s = 0, o = this.length; s < o; s++)
503
+ S(n, "get", s + "");
504
+ const i = n[t](...r);
505
+ return i === -1 || i === !1 ? n[t](...r.map(b)) : i;
506
+ };
507
+ }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
508
+ e[t] = function(...r) {
509
+ An();
510
+ const n = b(this)[t].apply(this, r);
511
+ return Pn(), n;
512
+ };
513
+ }), e;
396
514
  }
397
- function ht(e) {
515
+ function Cn(e) {
516
+ const t = b(this);
517
+ return S(t, "has", e), t.hasOwnProperty(e);
518
+ }
519
+ function tt(e = !1, t = !1) {
520
+ return function(n, i, s) {
521
+ if (i === "__v_isReactive")
522
+ return !e;
523
+ if (i === "__v_isReadonly")
524
+ return e;
525
+ if (i === "__v_isShallow")
526
+ return t;
527
+ if (i === "__v_raw" && s === (e ? t ? Hn : st : t ? Un : it).get(n))
528
+ return n;
529
+ const o = N(n);
530
+ if (!e) {
531
+ if (o && ce(Le, i))
532
+ return Reflect.get(Le, i, s);
533
+ if (i === "hasOwnProperty")
534
+ return Cn;
535
+ }
536
+ const c = Reflect.get(n, i, s);
537
+ return (Ie(i) ? et.has(i) : In(i)) || (e || S(n, "get", i), t) ? c : V(c) ? o && Re(i) ? c : c.value : ue(c) ? e ? at(c) : ot(c) : c;
538
+ };
539
+ }
540
+ const _n = /* @__PURE__ */ kn();
541
+ function kn(e = !1) {
542
+ return function(r, n, i, s) {
543
+ let o = r[n];
544
+ if (se(o) && V(o) && !V(i))
545
+ return !1;
546
+ if (!e && (!ut(i) && !se(i) && (o = b(o), i = b(i)), !N(r) && V(o) && !V(i)))
547
+ return o.value = i, !0;
548
+ const c = N(r) && Re(n) ? Number(n) < r.length : ce(r, n), d = Reflect.set(r, n, i, s);
549
+ return r === b(s) && (c ? Se(i, o) && M(r, "set", n, i, o) : M(r, "add", n, i)), d;
550
+ };
551
+ }
552
+ function $n(e, t) {
553
+ const r = ce(e, t), n = e[t], i = Reflect.deleteProperty(e, t);
554
+ return i && r && M(e, "delete", t, void 0, n), i;
555
+ }
556
+ function Tn(e, t) {
557
+ const r = Reflect.has(e, t);
558
+ return (!Ie(t) || !et.has(t)) && S(e, "has", t), r;
559
+ }
560
+ function Nn(e) {
561
+ return S(e, "iterate", N(e) ? "length" : L), Reflect.ownKeys(e);
562
+ }
563
+ const Mn = {
564
+ get: Rn,
565
+ set: _n,
566
+ deleteProperty: $n,
567
+ has: Tn,
568
+ ownKeys: Nn
569
+ }, Ln = {
570
+ get: Sn,
571
+ set(e, t) {
572
+ return process.env.NODE_ENV !== "production" && Ne(
573
+ `Set operation on key "${String(t)}" failed: target is readonly.`,
574
+ e
575
+ ), !0;
576
+ },
577
+ deleteProperty(e, t) {
578
+ return process.env.NODE_ENV !== "production" && Ne(
579
+ `Delete operation on key "${String(t)}" failed: target is readonly.`,
580
+ e
581
+ ), !0;
582
+ }
583
+ }, Ce = (e) => e, le = (e) => Reflect.getPrototypeOf(e);
584
+ function X(e, t, r = !1, n = !1) {
585
+ e = e.__v_raw;
586
+ const i = b(e), s = b(t);
587
+ r || (t !== s && S(i, "get", t), S(i, "get", s));
588
+ const { has: o } = le(i), c = n ? Ce : r ? _e : K;
589
+ if (o.call(i, t))
590
+ return c(e.get(t));
591
+ if (o.call(i, s))
592
+ return c(e.get(s));
593
+ e !== i && e.get(t);
594
+ }
595
+ function Y(e, t = !1) {
596
+ const r = this.__v_raw, n = b(r), i = b(e);
597
+ return t || (e !== i && S(n, "has", e), S(n, "has", i)), e === i ? r.has(e) : r.has(e) || r.has(i);
598
+ }
599
+ function ee(e, t = !1) {
600
+ return e = e.__v_raw, !t && S(b(e), "iterate", L), Reflect.get(e, "size", e);
601
+ }
602
+ function De(e) {
603
+ e = b(e);
604
+ const t = b(this);
605
+ return le(t).has.call(t, e) || (t.add(e), M(t, "add", e, e)), this;
606
+ }
607
+ function je(e, t) {
608
+ t = b(t);
609
+ const r = b(this), { has: n, get: i } = le(r);
610
+ let s = n.call(r, e);
611
+ s ? process.env.NODE_ENV !== "production" && rt(r, n, e) : (e = b(e), s = n.call(r, e));
612
+ const o = i.call(r, e);
613
+ return r.set(e, t), s ? Se(t, o) && M(r, "set", e, t, o) : M(r, "add", e, t), this;
614
+ }
615
+ function xe(e) {
616
+ const t = b(this), { has: r, get: n } = le(t);
617
+ let i = r.call(t, e);
618
+ i ? process.env.NODE_ENV !== "production" && rt(t, r, e) : (e = b(e), i = r.call(t, e));
619
+ const s = n ? n.call(t, e) : void 0, o = t.delete(e);
620
+ return i && M(t, "delete", e, void 0, s), o;
621
+ }
622
+ function Ve() {
623
+ const e = b(this), t = e.size !== 0, r = process.env.NODE_ENV !== "production" ? U(e) ? new Map(e) : new Set(e) : void 0, n = e.clear();
624
+ return t && M(e, "clear", void 0, void 0, r), n;
625
+ }
626
+ function te(e, t) {
627
+ return function(n, i) {
628
+ const s = this, o = s.__v_raw, c = b(o), d = t ? Ce : e ? _e : K;
629
+ return !e && S(c, "iterate", L), o.forEach((u, a) => n.call(i, d(u), d(a), s));
630
+ };
631
+ }
632
+ function ne(e, t, r) {
633
+ return function(...n) {
634
+ const i = this.__v_raw, s = b(i), o = U(s), c = e === "entries" || e === Symbol.iterator && o, d = e === "keys" && o, u = i[e](...n), a = r ? Ce : t ? _e : K;
635
+ return !t && S(
636
+ s,
637
+ "iterate",
638
+ d ? we : L
639
+ ), {
640
+ // iterator protocol
641
+ next() {
642
+ const { value: p, done: m } = u.next();
643
+ return m ? { value: p, done: m } : {
644
+ value: c ? [a(p[0]), a(p[1])] : a(p),
645
+ done: m
646
+ };
647
+ },
648
+ // iterable protocol
649
+ [Symbol.iterator]() {
650
+ return this;
651
+ }
652
+ };
653
+ };
654
+ }
655
+ function T(e) {
656
+ return function(...t) {
657
+ if (process.env.NODE_ENV !== "production") {
658
+ const r = t[0] ? `on key "${t[0]}" ` : "";
659
+ console.warn(
660
+ `${bn(e)} operation ${r}failed: target is readonly.`,
661
+ b(this)
662
+ );
663
+ }
664
+ return e === "delete" ? !1 : this;
665
+ };
666
+ }
667
+ function Dn() {
668
+ const e = {
669
+ get(s) {
670
+ return X(this, s);
671
+ },
672
+ get size() {
673
+ return ee(this);
674
+ },
675
+ has: Y,
676
+ add: De,
677
+ set: je,
678
+ delete: xe,
679
+ clear: Ve,
680
+ forEach: te(!1, !1)
681
+ }, t = {
682
+ get(s) {
683
+ return X(this, s, !1, !0);
684
+ },
685
+ get size() {
686
+ return ee(this);
687
+ },
688
+ has: Y,
689
+ add: De,
690
+ set: je,
691
+ delete: xe,
692
+ clear: Ve,
693
+ forEach: te(!1, !0)
694
+ }, r = {
695
+ get(s) {
696
+ return X(this, s, !0);
697
+ },
698
+ get size() {
699
+ return ee(this, !0);
700
+ },
701
+ has(s) {
702
+ return Y.call(this, s, !0);
703
+ },
704
+ add: T("add"),
705
+ set: T("set"),
706
+ delete: T("delete"),
707
+ clear: T("clear"),
708
+ forEach: te(!0, !1)
709
+ }, n = {
710
+ get(s) {
711
+ return X(this, s, !0, !0);
712
+ },
713
+ get size() {
714
+ return ee(this, !0);
715
+ },
716
+ has(s) {
717
+ return Y.call(this, s, !0);
718
+ },
719
+ add: T("add"),
720
+ set: T("set"),
721
+ delete: T("delete"),
722
+ clear: T("clear"),
723
+ forEach: te(!0, !0)
724
+ };
725
+ return ["keys", "values", "entries", Symbol.iterator].forEach((s) => {
726
+ e[s] = ne(
727
+ s,
728
+ !1,
729
+ !1
730
+ ), r[s] = ne(
731
+ s,
732
+ !0,
733
+ !1
734
+ ), t[s] = ne(
735
+ s,
736
+ !1,
737
+ !0
738
+ ), n[s] = ne(
739
+ s,
740
+ !0,
741
+ !0
742
+ );
743
+ }), [
744
+ e,
745
+ r,
746
+ t,
747
+ n
748
+ ];
749
+ }
750
+ const [
751
+ jn,
752
+ xn,
753
+ Vn,
754
+ zn
755
+ ] = /* @__PURE__ */ Dn();
756
+ function nt(e, t) {
757
+ const r = t ? e ? zn : Vn : e ? xn : jn;
758
+ return (n, i, s) => i === "__v_isReactive" ? !e : i === "__v_isReadonly" ? e : i === "__v_raw" ? n : Reflect.get(
759
+ ce(r, i) && i in n ? r : n,
760
+ i,
761
+ s
762
+ );
763
+ }
764
+ const Bn = {
765
+ get: /* @__PURE__ */ nt(!1, !1)
766
+ }, Fn = {
767
+ get: /* @__PURE__ */ nt(!0, !1)
768
+ };
769
+ function rt(e, t, r) {
770
+ const n = b(r);
771
+ if (n !== r && t.call(e, n)) {
772
+ const i = Xe(e);
773
+ console.warn(
774
+ `Reactive ${i} contains both the raw and reactive versions of the same object${i === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
775
+ );
776
+ }
777
+ }
778
+ const it = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap();
779
+ function Qn(e) {
780
+ switch (e) {
781
+ case "Object":
782
+ case "Array":
783
+ return 1;
784
+ case "Map":
785
+ case "Set":
786
+ case "WeakMap":
787
+ case "WeakSet":
788
+ return 2;
789
+ default:
790
+ return 0;
791
+ }
792
+ }
793
+ function qn(e) {
794
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : Qn(Xe(e));
795
+ }
796
+ function ot(e) {
797
+ return se(e) ? e : ct(
798
+ e,
799
+ !1,
800
+ Mn,
801
+ Bn,
802
+ it
803
+ );
804
+ }
805
+ function at(e) {
806
+ return ct(
807
+ e,
808
+ !0,
809
+ Ln,
810
+ Fn,
811
+ st
812
+ );
813
+ }
814
+ function ct(e, t, r, n, i) {
815
+ if (!ue(e))
816
+ return process.env.NODE_ENV !== "production" && console.warn(`value cannot be made reactive: ${String(e)}`), e;
817
+ if (e.__v_raw && !(t && e.__v_isReactive))
818
+ return e;
819
+ const s = i.get(e);
820
+ if (s)
821
+ return s;
822
+ const o = qn(e);
823
+ if (o === 0)
824
+ return e;
825
+ const c = new Proxy(
826
+ e,
827
+ o === 2 ? n : r
828
+ );
829
+ return i.set(e, c), c;
830
+ }
831
+ function se(e) {
832
+ return !!(e && e.__v_isReadonly);
833
+ }
834
+ function ut(e) {
835
+ return !!(e && e.__v_isShallow);
836
+ }
837
+ function b(e) {
838
+ const t = e && e.__v_raw;
839
+ return t ? b(t) : e;
840
+ }
841
+ const K = (e) => ue(e) ? ot(e) : e, _e = (e) => ue(e) ? at(e) : e;
842
+ function Gn(e) {
843
+ G && k && (e = b(e), process.env.NODE_ENV !== "production" ? be(e.dep || (e.dep = q()), {
844
+ target: e,
845
+ type: "get",
846
+ key: "value"
847
+ }) : be(e.dep || (e.dep = q())));
848
+ }
849
+ function Kn(e, t) {
850
+ e = b(e);
851
+ const r = e.dep;
852
+ r && (process.env.NODE_ENV !== "production" ? x(r, {
853
+ target: e,
854
+ type: "set",
855
+ key: "value",
856
+ newValue: t
857
+ }) : x(r));
858
+ }
859
+ function V(e) {
860
+ return !!(e && e.__v_isRef === !0);
861
+ }
862
+ function ze(e) {
863
+ return Wn(e, !1);
864
+ }
865
+ function Wn(e, t) {
866
+ return V(e) ? e : new Jn(e, t);
867
+ }
868
+ class Jn {
869
+ constructor(t, r) {
870
+ this.__v_isShallow = r, this.dep = void 0, this.__v_isRef = !0, this._rawValue = r ? t : b(t), this._value = r ? t : K(t);
871
+ }
872
+ get value() {
873
+ return Gn(this), this._value;
874
+ }
875
+ set value(t) {
876
+ const r = this.__v_isShallow || ut(t) || se(t);
877
+ t = r ? t : b(t), Se(t, this._rawValue) && (this._rawValue = t, this._value = r ? t : K(t), Kn(this, t));
878
+ }
879
+ }
880
+ function Zn(e) {
398
881
  let t = {
399
882
  "Content-Type": "application/json"
400
883
  };
401
- e && i(e);
402
- function i(w, b = !1) {
403
- return t = b ? w : { ...t, ...w }, this;
884
+ e && r(e);
885
+ function r(w, v = !1) {
886
+ return t = v ? w : { ...t, ...w }, this;
404
887
  }
405
888
  function n() {
406
889
  return t;
407
890
  }
408
- function r(w, b) {
409
- return t[w] = b, this;
891
+ function i(w, v) {
892
+ return t[w] = v, this;
410
893
  }
411
- function a(w) {
894
+ function s(w) {
412
895
  return t[w];
413
896
  }
414
- function u(w) {
897
+ function o(w) {
415
898
  return t[w] && delete t[w], this;
416
899
  }
417
- function m(w) {
418
- return r("Authorization", "Bearer " + w), this;
900
+ function c(w) {
901
+ return i("Authorization", "Bearer " + w), this;
419
902
  }
420
903
  function d() {
421
- return u("Authorization"), this;
904
+ return o("Authorization"), this;
422
905
  }
423
- function s() {
424
- return !!a("Authorization");
425
- }
426
- function c() {
427
- return r("Content-Type", "multipart/form-data"), this;
906
+ function u() {
907
+ return !!s("Authorization");
428
908
  }
429
- function f() {
430
- return r("Content-Type", "application/json"), this;
909
+ function a() {
910
+ return i("Content-Type", "multipart/form-data"), this;
431
911
  }
432
912
  function p() {
433
- return a("Content-Type") === "multipart/form-data";
913
+ return i("Content-Type", "application/json"), this;
914
+ }
915
+ function m() {
916
+ return s("Content-Type") === "multipart/form-data";
434
917
  }
435
918
  function h() {
436
- return a("Content-Type") === "application/json";
919
+ return s("Content-Type") === "application/json";
437
920
  }
438
921
  return {
439
- setHeaders: i,
922
+ setHeaders: r,
440
923
  getHeaders: n,
441
- setHeader: r,
442
- getHeader: a,
443
- removeHeader: u,
444
- setAuthorization: m,
924
+ setHeader: i,
925
+ getHeader: s,
926
+ removeHeader: o,
927
+ setAuthorization: c,
445
928
  removeAuthorization: d,
446
- hasAuthorization: s,
447
- setFormData: c,
448
- setJson: f,
449
- isFormData: p,
929
+ hasAuthorization: u,
930
+ setFormData: a,
931
+ setJson: p,
932
+ isFormData: m,
450
933
  isJson: h
451
934
  };
452
935
  }
453
- function yt(e) {
936
+ function Xn(e) {
454
937
  let t = null;
455
- e && i(e);
456
- function i(r) {
457
- if (r = r.toLowerCase(), !["get", "post", "put", "patch", "delete"].includes(r))
938
+ e && r(e);
939
+ function r(i) {
940
+ if (i = i.toLowerCase(), !["get", "post", "put", "patch", "delete"].includes(i))
458
941
  throw new Error("Invalid method.");
459
- return t = r, this;
942
+ return t = i, this;
460
943
  }
461
944
  function n() {
462
945
  return t;
463
946
  }
464
947
  return {
465
- setMethod: i,
948
+ setMethod: r,
466
949
  getMethod: n
467
950
  };
468
951
  }
469
- function gt(e, t, i) {
952
+ function Yn(e, t, r) {
470
953
  let n = null;
471
- i && r(i);
472
- function r(s) {
954
+ r && i(r);
955
+ function i(u) {
473
956
  if (!["post", "put", "patch"].includes(e.getMethod()))
474
957
  throw new Error("Payload can only be set for POST, PUT and PATCH requests.");
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;
958
+ return u instanceof FormData ? t.setFormData() : o(u) && (u = c(u), t.setFormData()), t.isFormData() && e.getMethod() === "put" && (e.setMethod("post"), u.append("_method", "PUT")), n = u, this;
476
959
  }
477
- function a() {
960
+ function s() {
478
961
  return n;
479
962
  }
480
- function u(s) {
481
- for (const c in s) {
482
- const f = s[c];
483
- if (d(f))
963
+ function o(u) {
964
+ for (const a in u) {
965
+ const p = u[a];
966
+ if (d(p))
484
967
  return !0;
485
- if (typeof f == "object" && u(f))
968
+ if (typeof p == "object" && o(p))
486
969
  return !0;
487
970
  }
488
971
  return !1;
489
972
  }
490
- function m(s, c = null, f = 0) {
491
- const p = !c;
492
- p && (c = new FormData());
493
- for (const h in s) {
494
- const w = s[h];
495
- d(w) ? (s[h] = "<<FileIndex:" + f + ">>", c.append(f, w, w.name), f++) : typeof w == "object" && (s[h] = m(s[h], c, f));
973
+ function c(u, a = null, p = 0) {
974
+ const m = !a;
975
+ m && (a = new FormData());
976
+ for (const h in u) {
977
+ const w = u[h];
978
+ d(w) ? (u[h] = "<<FileIndex:" + p + ">>", a.append(p, w, w.name), p++) : typeof w == "object" && (u[h] = c(u[h], a, p));
496
979
  }
497
- return p ? (c.append("payload", JSON.stringify(s)), c) : s;
980
+ return m ? (a.append("payload", JSON.stringify(u)), a) : u;
498
981
  }
499
- function d(s) {
500
- return typeof File < "u" && s instanceof File || typeof Blob < "u" && s instanceof Blob;
982
+ function d(u) {
983
+ return typeof File < "u" && u instanceof File || typeof Blob < "u" && u instanceof Blob;
501
984
  }
502
985
  return {
503
- setPayload: r,
504
- getPayload: a
986
+ setPayload: i,
987
+ getPayload: s
505
988
  };
506
989
  }
507
- const E = class E {
990
+ const O = class O {
508
991
  /**
509
992
  * Construct the class with the provided sub logger.
510
993
  */
511
994
  constructor(t = {}) {
512
995
  /** LEVEL represent the current logging level */
513
- C(this, "level", 3);
996
+ _(this, "level", 3);
514
997
  /** Underlying logger to use. Default to console */
515
- C(this, "logger");
998
+ _(this, "logger");
516
999
  /** Prefix to use for messages */
517
- C(this, "prefix");
1000
+ _(this, "prefix");
518
1001
  this.logger = t.logger || console, this.prefix = t.prefix || "";
519
1002
  }
520
1003
  /**
@@ -526,264 +1009,264 @@ const E = class E {
526
1009
  }
527
1010
  /** debug display messages only if level is DEBUG or less */
528
1011
  debug(...t) {
529
- this.level <= E.LEVEL_DEBUG && j(this.logger.debug, this.prefix, t);
1012
+ this.level <= O.LEVEL_DEBUG && re(this.logger.debug, this.prefix, t);
530
1013
  }
531
1014
  /** info display messages only if level is INFO or less */
532
1015
  info(...t) {
533
- this.level <= E.LEVEL_INFO && j(this.logger.info, this.prefix, t);
1016
+ this.level <= O.LEVEL_INFO && re(this.logger.info, this.prefix, t);
534
1017
  }
535
1018
  /** warn display messages only if level is WARN or less */
536
1019
  warn(...t) {
537
- this.level <= E.LEVEL_WARN && j(this.logger.warn, this.prefix, t);
1020
+ this.level <= O.LEVEL_WARN && re(this.logger.warn, this.prefix, t);
538
1021
  }
539
1022
  /** error display messages only if level is ERROR or less */
540
1023
  error(...t) {
541
- this.level <= E.LEVEL_ERROR && j(this.logger.error, this.prefix, t);
1024
+ this.level <= O.LEVEL_ERROR && re(this.logger.error, this.prefix, t);
542
1025
  }
543
1026
  };
544
1027
  /** Possible logging level by order of verbosity (more verbose first) */
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
- const j = (e, t, i) => {
548
- t ? e(t, ...i) : e(...i);
549
- }, A = new J({
1028
+ _(O, "LEVEL_DEBUG", 0), _(O, "LEVEL_INFO", 1), _(O, "LEVEL_WARN", 2), _(O, "LEVEL_ERROR", 3), _(O, "LEVEL_OFF", 4);
1029
+ let ve = O;
1030
+ const re = (e, t, r) => {
1031
+ t ? e(t, ...r) : e(...r);
1032
+ }, A = new ve({
550
1033
  prefix: "[SDK]"
551
1034
  });
552
- let le = null, me = null, fe = null, pe = "/", he = null;
553
- const wt = () => le, bt = (e) => {
1035
+ let lt = null, dt = null, ft = null, pt = "/", mt = null;
1036
+ const er = () => lt, tr = (e) => {
554
1037
  if (A.info("[Config] Environment:", e), !e)
555
1038
  throw new Error("Invalid environment.");
556
- le = e;
557
- }, vt = () => me, At = (e) => {
1039
+ lt = e;
1040
+ }, nr = () => dt, rr = (e) => {
558
1041
  if (A.info("[Config] API Host:", e), !e)
559
1042
  throw new Error("Invalid API host.");
560
- me = e;
561
- }, Pt = () => he, kt = (e) => {
562
- he = e;
563
- }, Rt = () => fe, Et = (e) => {
1043
+ dt = e;
1044
+ }, ir = () => mt, sr = (e) => {
1045
+ mt = e;
1046
+ }, or = () => ft, ar = (e) => {
564
1047
  if (A.info("[Config] Main App Host:", e), !e)
565
1048
  throw new Error("Invalid main app host.");
566
- fe = e;
567
- }, It = (e) => {
568
- A.info("[Config] Base Assets Urls:", e), pe = e;
569
- }, Ct = () => pe, $ = {
570
- getEnvironment: wt,
571
- getApiHost: vt,
572
- getErrorHandler: Pt,
573
- setEnvironment: bt,
574
- setApiHost: At,
575
- setErrorHandler: kt,
576
- getMainAppHost: Rt,
577
- setMainAppHost: Et,
578
- setBaseAssetsUrl: It,
579
- getBaseAssetsUrl: Ct
1049
+ ft = e;
1050
+ }, cr = (e) => {
1051
+ A.info("[Config] Base Assets Urls:", e), pt = e;
1052
+ }, ur = () => pt, j = {
1053
+ getEnvironment: er,
1054
+ getApiHost: nr,
1055
+ getErrorHandler: ir,
1056
+ setEnvironment: tr,
1057
+ setApiHost: rr,
1058
+ setErrorHandler: sr,
1059
+ getMainAppHost: or,
1060
+ setMainAppHost: ar,
1061
+ setBaseAssetsUrl: cr,
1062
+ getBaseAssetsUrl: ur
580
1063
  };
581
- function St(e) {
582
- const t = $.getApiHost().replace(/\/$/g, "");
583
- let i = null, n = {}, r = {};
584
- e && m(e);
585
- function a() {
1064
+ function lr(e) {
1065
+ const t = j.getApiHost().replace(/\/$/g, "");
1066
+ let r = null, n = {}, i = {};
1067
+ e && c(e);
1068
+ function s() {
586
1069
  return t + d() + h();
587
1070
  }
588
- function u() {
1071
+ function o() {
589
1072
  return d(!0, !0);
590
1073
  }
591
- function m(l) {
592
- return i = "/" + l.replace(/^\//g, ""), this;
1074
+ function c(f) {
1075
+ return r = "/" + f.replace(/^\//g, ""), this;
593
1076
  }
594
- function d(l = !0, P = !1) {
595
- return l ? i.replace(/:(\w+)/g, (R, I) => P ? "*" : r[I] || ":" + I) : i;
1077
+ function d(f = !0, P = !1) {
1078
+ return f ? r.replace(/:(\w+)/g, (R, C) => P ? "*" : i[C] || ":" + C) : r;
596
1079
  }
597
- function s(l) {
598
- return n = l, this;
1080
+ function u(f) {
1081
+ return n = f, this;
599
1082
  }
600
- function c(l, P) {
601
- return n[l] = P, this;
1083
+ function a(f, P) {
1084
+ return n[f] = P, this;
602
1085
  }
603
- function f(l) {
604
- return n[l] && delete n[l], this;
1086
+ function p(f) {
1087
+ return n[f] && delete n[f], this;
605
1088
  }
606
- function p() {
1089
+ function m() {
607
1090
  return Object.keys(n).length > 0;
608
1091
  }
609
- function h(l = !0) {
610
- if (!p())
1092
+ function h(f = !0) {
1093
+ if (!m())
611
1094
  return "";
612
1095
  let P = "";
613
1096
  for (const R in n)
614
1097
  if (Array.isArray(n[R]))
615
- for (const I of n[R])
616
- P += (P.length ? "&" : "") + `${R}[]=` + I;
1098
+ for (const C of n[R])
1099
+ P += (P.length ? "&" : "") + `${R}[]=` + C;
617
1100
  else
618
1101
  P += (P.length ? "&" : "") + R + "=" + n[R];
619
- return (l ? "?" : "") + P;
1102
+ return (f ? "?" : "") + P;
620
1103
  }
621
- function w(l) {
622
- return r = l, this;
1104
+ function w(f) {
1105
+ return i = f, this;
623
1106
  }
624
- function b(l, P) {
625
- return r[l] = P, this;
1107
+ function v(f, P) {
1108
+ return i[f] = P, this;
626
1109
  }
627
- function S(l) {
628
- return r[l] && delete r[l], this;
1110
+ function $(f) {
1111
+ return i[f] && delete i[f], this;
629
1112
  }
630
1113
  return {
631
- setPath: m,
1114
+ setPath: c,
632
1115
  getPath: d,
633
- getUri: a,
634
- getMockUri: u,
635
- setQueryParams: s,
636
- setQueryParam: c,
637
- removeQueryParam: f,
638
- hasQuery: p,
1116
+ getUri: s,
1117
+ getMockUri: o,
1118
+ setQueryParams: u,
1119
+ setQueryParam: a,
1120
+ removeQueryParam: p,
1121
+ hasQuery: m,
639
1122
  getQueryString: h,
640
1123
  setRouteParams: w,
641
- setRouteParam: b,
642
- removeRouteParam: S
1124
+ setRouteParam: v,
1125
+ removeRouteParam: $
643
1126
  };
644
1127
  }
645
- function Ot(e) {
1128
+ function dr(e) {
646
1129
  let t = [];
647
- function i() {
648
- return t = s(arguments), u(), this;
1130
+ function r() {
1131
+ return t = u(arguments), o(), this;
649
1132
  }
650
1133
  function n() {
651
1134
  return t.length > 0;
652
1135
  }
653
- function r(c) {
654
- return t.includes(c.trim()) ? this : (t.push(c.trim()), u(), this);
1136
+ function i(a) {
1137
+ return t.includes(a.trim()) ? this : (t.push(a.trim()), o(), this);
655
1138
  }
656
- function a(c) {
657
- const f = t.indexOf(c.trim());
658
- return f === -1 ? this : (t.splice(f, 1), u(), this);
1139
+ function s(a) {
1140
+ const p = t.indexOf(a.trim());
1141
+ return p === -1 ? this : (t.splice(p, 1), o(), this);
659
1142
  }
660
- function u() {
1143
+ function o() {
661
1144
  t.length ? e.setQueryParam("groups", d(t)) : e.removeQueryParam("groups");
662
1145
  }
663
- function m(c) {
664
- return c.split(",").map((f) => f.trim());
1146
+ function c(a) {
1147
+ return a.split(",").map((p) => p.trim());
665
1148
  }
666
- function d(c) {
667
- return c.join(",");
1149
+ function d(a) {
1150
+ return a.join(",");
668
1151
  }
669
- function s(c) {
670
- let 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;
1152
+ function u(a) {
1153
+ let p = [];
1154
+ return a.length === 1 ? typeof a[0] == "string" ? p = c(a[0]) : Array.isArray(a[0]) && (p = a[0]) : p = Array.from(a), p;
672
1155
  }
673
1156
  return {
674
- setGroups: i,
1157
+ setGroups: r,
675
1158
  hasGroups: n,
676
- addGroup: r,
677
- removeGroup: a
1159
+ addGroup: i,
1160
+ removeGroup: s
678
1161
  };
679
1162
  }
680
- function $t(e) {
681
- let t = !1, i = !1, n = 1, r = 10;
682
- function a() {
683
- return t = !0, u(), this;
1163
+ function fr(e) {
1164
+ let t = !1, r = !1, n = 1, i = 10;
1165
+ function s() {
1166
+ return t = !0, o(), this;
684
1167
  }
685
- function u() {
686
- i = !0;
687
- const h = p(arguments);
688
- return s(h.page || 1, !1), c(h.perPage || r, !1), f(), this;
1168
+ function o() {
1169
+ r = !0;
1170
+ const h = m(arguments);
1171
+ return u(h.page || 1, !1), a(h.perPage || i, !1), p(), this;
689
1172
  }
690
- function m() {
691
- return i = !1, f(), this;
1173
+ function c() {
1174
+ return r = !1, p(), this;
692
1175
  }
693
1176
  function d() {
694
- return i;
1177
+ return r;
695
1178
  }
696
- function s(h, w = !0) {
697
- return t = !0, i = !0, n = h, w && f(), this;
1179
+ function u(h, w = !0) {
1180
+ return t = !0, r = !0, n = h, w && p(), this;
698
1181
  }
699
- function c(h, w = !0) {
700
- return t = !0, i = !0, r = h, w && f(), this;
1182
+ function a(h, w = !0) {
1183
+ return t = !0, r = !0, i = h, w && p(), this;
701
1184
  }
702
- function f() {
703
- 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"));
1185
+ function p() {
1186
+ t ? d() ? (e.removeQueryParam("pagination"), e.setQueryParam("page", n), e.setQueryParam("nbResultPerPage", i)) : (e.removeQueryParam("page"), e.removeQueryParam("nbResultPerPage"), e.setQueryParam("pagination", "false")) : (e.removeQueryParam("page"), e.removeQueryParam("nbResultPerPage"), e.removeQueryParam("pagination"));
704
1187
  }
705
- function p(h) {
1188
+ function m(h) {
706
1189
  if (h.length === 1 && typeof h[0] == "object")
707
1190
  return h[0];
708
1191
  const w = {};
709
1192
  return h.length >= 1 && (w.page = h[0]), h.length >= 2 && (w.perPage = h[1]), w;
710
1193
  }
711
1194
  return {
712
- isList: a,
713
- paginate: u,
714
- disablePagination: m,
1195
+ isList: s,
1196
+ paginate: o,
1197
+ disablePagination: c,
715
1198
  hasPagination: d,
716
- setPage: s,
717
- setPerPage: c
1199
+ setPage: u,
1200
+ setPerPage: a
718
1201
  };
719
1202
  }
720
- function Tt(e) {
721
- let t = !1, i = "id", n = "ASC";
722
- function r() {
1203
+ function pr(e) {
1204
+ let t = !1, r = "id", n = "ASC";
1205
+ function i() {
723
1206
  t = !0;
724
- const c = s(arguments);
725
- return c.orderBy && u(c.orderBy, !1), c.orderDir && m(c.orderDir, !1), d(), this;
1207
+ const a = u(arguments);
1208
+ return a.orderBy && o(a.orderBy, !1), a.orderDir && c(a.orderDir, !1), d(), this;
726
1209
  }
727
- function a() {
1210
+ function s() {
728
1211
  return t;
729
1212
  }
730
- function u(c, f = !0) {
731
- return t = !0, i = c, f && d(), this;
1213
+ function o(a, p = !0) {
1214
+ return t = !0, r = a, p && d(), this;
732
1215
  }
733
- function m(c, f = !0) {
734
- if (c = c.toUpperCase(), ["ASC", "DESC"].indexOf(c) === -1)
1216
+ function c(a, p = !0) {
1217
+ if (a = a.toUpperCase(), ["ASC", "DESC"].indexOf(a) === -1)
735
1218
  throw new Error("Invalid order direction");
736
- return t = !0, n = c, f && d(), this;
1219
+ return t = !0, n = a, p && d(), this;
737
1220
  }
738
1221
  function d() {
739
- a() && (e.setQueryParam("orderBy", i), e.setQueryParam("orderDirection", n));
1222
+ s() && (e.setQueryParam("orderBy", r), e.setQueryParam("orderDirection", n));
740
1223
  }
741
- function s(c) {
742
- if (c.length === 1 && typeof c[0] == "object")
743
- return c[0];
744
- const f = {};
745
- return c.length >= 1 && (f.orderBy = c[0]), c.length >= 2 && (f.orderDir = c[1]), f;
1224
+ function u(a) {
1225
+ if (a.length === 1 && typeof a[0] == "object")
1226
+ return a[0];
1227
+ const p = {};
1228
+ return a.length >= 1 && (p.orderBy = a[0]), a.length >= 2 && (p.orderDir = a[1]), p;
746
1229
  }
747
1230
  return {
748
- setOrder: r,
749
- hasOrder: a,
750
- setOrderBy: u,
751
- setOrderDir: m
1231
+ setOrder: i,
1232
+ hasOrder: s,
1233
+ setOrderBy: o,
1234
+ setOrderDir: c
752
1235
  };
753
1236
  }
754
- function Lt() {
1237
+ function mr() {
755
1238
  let e = !1;
756
1239
  function t() {
757
1240
  return e = !0, this;
758
1241
  }
759
- function i() {
1242
+ function r() {
760
1243
  return e;
761
1244
  }
762
1245
  return {
763
1246
  setSilent: t,
764
- isSilent: i
1247
+ isSilent: r
765
1248
  };
766
1249
  }
767
- function Nt() {
1250
+ function hr() {
768
1251
  let e = "json";
769
1252
  function t(n = "json") {
770
1253
  if (["arraybuffer", "document", "json", "text", "stream", "blob"].indexOf(n) === -1)
771
1254
  throw new Error("Invalid response type");
772
1255
  return e = n, this;
773
1256
  }
774
- function i() {
1257
+ function r() {
775
1258
  return e;
776
1259
  }
777
1260
  return {
778
1261
  setResponseType: t,
779
- getResponseType: i
1262
+ getResponseType: r
780
1263
  };
781
1264
  }
782
- function Mt(e) {
1265
+ function yr(e) {
783
1266
  function t() {
784
1267
  return e;
785
1268
  }
786
- function i() {
1269
+ function r() {
787
1270
  return e.data;
788
1271
  }
789
1272
  function n() {
@@ -791,756 +1274,693 @@ function Mt(e) {
791
1274
  }
792
1275
  return {
793
1276
  getResponse: t,
794
- getData: i,
1277
+ getData: r,
795
1278
  getPayload: n
796
1279
  };
797
1280
  }
798
- function Dt(e, t = !1) {
799
- let i = !1, n = !1;
800
- return e.response ? (i = !0, n = !0) : e.request && (i = !0), !t && $.getErrorHandler() && $.getErrorHandler()(e), {
801
- sent: i,
1281
+ function gr(e, t = !1) {
1282
+ let r = !1, n = !1;
1283
+ return e.response ? (r = !0, n = !0) : e.request && (r = !0), !t && j.getErrorHandler() && j.getErrorHandler()(e), {
1284
+ sent: r,
802
1285
  responded: n,
803
1286
  error: e
804
1287
  };
805
1288
  }
806
- function xt(e) {
1289
+ function wr(e) {
807
1290
  function t() {
808
1291
  return e;
809
1292
  }
810
- function i() {
1293
+ function r() {
811
1294
  return e.data;
812
1295
  }
813
1296
  function n() {
814
1297
  return e.data;
815
1298
  }
816
- function r() {
1299
+ function i() {
817
1300
  return e.data["@type"] === "hydra:Collection";
818
1301
  }
819
- function a() {
820
- return r() ? e.data["hydra:member"] : null;
1302
+ function s() {
1303
+ return i() ? e.data["hydra:member"] : null;
821
1304
  }
822
- function u() {
823
- return r() ? e.data["hydra:totalItems"] : null;
1305
+ function o() {
1306
+ return i() ? e.data["hydra:totalItems"] : null;
824
1307
  }
825
- function m() {
826
- return r() ? e.data["hydra:view"] && e.data["hydra:view"]["hydra:last"] : !1;
1308
+ function c() {
1309
+ return i() ? e.data["hydra:view"] && e.data["hydra:view"]["hydra:last"] : !1;
827
1310
  }
828
1311
  function d() {
829
- return !r() || !m() ? null : parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1]);
1312
+ return !i() || !c() ? null : parseInt(e.data["hydra:view"]["@id"].match(/page=(\d+)/)[1]);
830
1313
  }
831
- function s() {
832
- return !r() || !m() ? null : parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1]);
1314
+ function u() {
1315
+ return !i() || !c() ? null : parseInt(e.data["hydra:view"]["hydra:last"].match(/page=(\d+)/)[1]);
833
1316
  }
834
1317
  return {
835
1318
  getResponse: t,
836
- getData: i,
1319
+ getData: r,
837
1320
  getPayload: n,
838
- isCollection: r,
839
- getCollection: a,
840
- getTotal: u,
841
- hasPagination: m,
1321
+ isCollection: i,
1322
+ getCollection: s,
1323
+ getTotal: o,
1324
+ hasPagination: c,
842
1325
  getPage: d,
843
- getPages: s
1326
+ getPages: u
844
1327
  };
845
1328
  }
846
- function _t(e, t, i, n, r, a) {
847
- async function u() {
848
- const d = i.getMethod(), s = t.getUri(), c = e.getHeaders(), f = n.getPayload(), p = [s];
849
- ["post", "put", "patch"].includes(d) && p.push(f || {}), p.push({
850
- headers: c,
851
- responseType: a.getResponseType()
852
- }), A.info("[Request] Sending request:", `[${d.toUpperCase()}]`, s);
1329
+ function br(e, t, r, n, i, s) {
1330
+ async function o() {
1331
+ const d = r.getMethod(), u = t.getUri(), a = e.getHeaders(), p = n.getPayload(), m = [u];
1332
+ ["post", "put", "patch"].includes(d) && m.push(p || {}), m.push({
1333
+ headers: a,
1334
+ responseType: s.getResponseType()
1335
+ }), A.info("[Request] Sending request:", `[${d.toUpperCase()}]`, u);
853
1336
  try {
854
- const h = await Ue[d](...p);
855
- return m(h);
1337
+ const h = await zt[d](...m);
1338
+ return c(h);
856
1339
  } catch (h) {
857
- throw Dt(h, r.isSilent());
1340
+ throw gr(h, i.isSilent());
858
1341
  }
859
1342
  }
860
- function m(d) {
1343
+ function c(d) {
861
1344
  if (d.headers) {
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
- return xt(d);
1345
+ const u = Object.keys(d.headers), a = u.map((p) => p.toLowerCase()).indexOf("content-type");
1346
+ if (a !== -1 && d.headers[u[a]].includes("application/ld+json"))
1347
+ return wr(d);
865
1348
  }
866
- return Mt(d);
1349
+ return yr(d);
867
1350
  }
868
1351
  return {
869
- send: u
1352
+ send: o
870
1353
  };
871
1354
  }
872
- function k(e, t = "get", i = null) {
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);
1355
+ function I(e, t = "get", r = null) {
1356
+ const n = Zn(), i = lr(e), s = Xn(t), o = Yn(s, n, r), c = dr(i), d = fr(i), u = pr(i), a = mr(), p = hr(), m = br(n, i, s, o, a, p);
874
1357
  return {
875
1358
  ...n,
876
- ...r,
877
- ...a,
878
- ...u,
879
- ...m,
880
- ...d,
1359
+ ...i,
881
1360
  ...s,
1361
+ ...o,
882
1362
  ...c,
883
- ...f,
884
- ...p
1363
+ ...d,
1364
+ ...u,
1365
+ ...a,
1366
+ ...p,
1367
+ ...m
885
1368
  };
886
1369
  }
887
- function g(e, t = "get", i = null) {
888
- const n = k(e, t, i), r = V();
889
- r.isAuthenticated() && n.setAuthorization(r.getAuthToken());
890
- const a = n.send;
1370
+ function g(e, t = "get", r = null) {
1371
+ const n = I(e, t, r), i = We();
1372
+ i.isAuthenticated() && n.setAuthorization(i.getAuthToken());
1373
+ const s = n.send;
891
1374
  return n.send = async function() {
892
1375
  if (!n.hasAuthorization())
893
1376
  throw new Error("::SDK Request:: Request cannot be sent, missing authorization header.");
894
- return a();
1377
+ return s();
895
1378
  }, n;
896
1379
  }
897
- const jt = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), ur = () => ({
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), dr = () => ({
900
- share: Bt,
901
- isArchived: zt,
902
- archive: Vt,
903
- unarchive: Ut,
904
- lookupCandidate: Ft,
905
- createCandidate: Ht,
906
- updateCandidate: Qt,
907
- closeIncompleteRegistration: qt,
908
- openNewRegistration: Gt,
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"), lr = () => ({
911
- getForEstablishmentCandidate: Wt,
912
- postForEstablishmentCandidate: Jt,
913
- update: Zt,
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"), mr = () => ({
916
- list: Yt,
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"), fr = () => ({
919
- list: tn,
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), pr = () => ({
922
- syncCandidateLabels: rn
923
- }), sn = () => k("diploma").isList().addGroup("Term:id").addGroup("Term:name"), hr = () => ({
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"), yr = () => ({
926
- listByCandidate: on,
927
- listByCandidateAndEstablishmentFromRecruiter: an,
928
- listByCandidateAndEstablishmentFromCandidate: cn,
929
- addFromRecruiter: un,
930
- remove: dn
931
- }), ln = (e, t) => g("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), gr = () => ({
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 }), wr = () => ({
934
- sendToCandidate: mn,
935
- sendToRecipients: fn
936
- }), pn = (e, t = !0) => {
937
- const i = g("/v2/establishments/:establishmentId/email-templates").setRouteParams({ establishmentId: e }).isList().disablePagination();
938
- return t && i.setQueryParam("global", !0), i;
939
- }, hn = () => g("/v2/self/email-templates").isList().disablePagination(), br = () => ({
940
- listByEstablishment: pn,
941
- listSelf: hn
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
- const n = i !== null ? g("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: i }) : g("establishment-career/:establishmentId").setRouteParams({ establishmentId: e });
1380
+ const vr = (e, t) => g("/v2/activity/candidate/:candidateId/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), Qs = () => ({
1381
+ listByCandidateAndEstablishment: vr
1382
+ }), Er = (e, t, r) => g("/candidate/:candidateId/share/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }).setPayload(r), Ar = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setRouteParams({ candidateId: e, establishmentId: t }), Pr = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("post").setRouteParams({ candidateId: e, establishmentId: t }), Ir = (e, t) => g("/candidate/:candidateId/archive/establishment/:establishmentId").setMethod("delete").setRouteParams({ candidateId: e, establishmentId: t }), Rr = (e, t) => g("/v2/candidates/lookup").setQueryParam("email", e).setQueryParam("establishment-id", t), Sr = (e, t) => g("/v2/candidates").setMethod("post").setQueryParam("establishment-id", e).setPayload(t), Or = (e, t, r) => g("/v2/candidates/:candidateId").setQueryParam("establishment-id", t).setRouteParams({ candidateId: e }).setMethod("put").setPayload(r), Cr = (e) => g("/candidate/register/close/:registrationToken").setMethod("post").setRouteParams({ registrationToken: e }), _r = (e) => g("/candidate/register/open").setMethod("post").setQueryParam("groups", "register:token").setPayload(e), kr = (e, t) => g("/establishment/:establishmentId:/candidate/invitation").setRouteParams({ establishmentId: e }).setMethod("post").setPayload(t), qs = () => ({
1383
+ share: Er,
1384
+ isArchived: Ar,
1385
+ archive: Pr,
1386
+ unarchive: Ir,
1387
+ lookupCandidate: Rr,
1388
+ createCandidate: Sr,
1389
+ updateCandidate: Or,
1390
+ closeIncompleteRegistration: Cr,
1391
+ openNewRegistration: _r,
1392
+ updateInvitation: kr
1393
+ }), $r = (e, t) => g("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }), Tr = (e, t, r) => g("/comment/establishment/:establishmentId/candidate/:userId").setRouteParams({ establishmentId: e, userId: t }).setMethod("post").setPayload(r), Nr = (e, t) => g("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("put").setPayload(t), Mr = (e) => g("/comment/:commentId").setRouteParams({ commentId: e }).setMethod("delete"), Gs = () => ({
1394
+ getForEstablishmentCandidate: $r,
1395
+ postForEstablishmentCandidate: Tr,
1396
+ update: Nr,
1397
+ remove: Mr
1398
+ }), Lr = () => I("contractType").isList().addGroup("Term:id").addGroup("Term:name"), Dr = (e, t = !0) => g("contractType/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), Ks = () => ({
1399
+ list: Lr,
1400
+ listByEstablishment: Dr
1401
+ }), jr = (e) => g("/v2/talents").isList().setQueryParam("establishment-id", e), xr = (e) => g("/v2/talent/mark-as-seen/:talentId").setRouteParams({ talentId: e }).setMethod("post"), Ws = () => ({
1402
+ list: jr,
1403
+ markAsSeen: xr
1404
+ }), Vr = (e, t, r) => g("/cvtheque/establishment/:establishmentId/candidate/:candidateId/label/synchronize").setRouteParams({ establishmentId: e, candidateId: t }).setMethod("post").setPayload(r), Js = () => ({
1405
+ syncCandidateLabels: Vr
1406
+ }), zr = () => I("diploma").isList().addGroup("Term:id").addGroup("Term:name"), Zs = () => ({
1407
+ list: zr
1408
+ }), Br = (e) => g("document/candidate/:candidateId").setRouteParams({ candidateId: e }).isList().disablePagination(), Fr = (e, t) => g("document/candidate/:candidateId/establishment/:establishmentId/recruiter").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Ur = (e, t) => g("document/candidate/:candidateId/establishment/:establishmentId/candidate").setRouteParams({ candidateId: e, establishmentId: t }).isList().disablePagination(), Hr = (e) => g("document/recruiter").setMethod("post").setPayload(e), Qr = (e) => g("document/:documentId").setRouteParams({ documentId: e }).setMethod("delete"), Xs = () => ({
1409
+ listByCandidate: Br,
1410
+ listByCandidateAndEstablishmentFromRecruiter: Fr,
1411
+ listByCandidateAndEstablishmentFromCandidate: Ur,
1412
+ addFromRecruiter: Hr,
1413
+ remove: Qr
1414
+ }), qr = (e, t) => g("/v2/establishments/:establishmentId/email-history").setRouteParams({ establishmentId: t }).setQueryParam("receiverId", e).isList().disablePagination(), Ys = () => ({
1415
+ listByCandidateAndEstablishment: qr
1416
+ }), Gr = (e, t) => g("/email/candidate/:candidateId").setMethod("post").setRouteParams({ candidateId: e }).setPayload(t), Kr = (e, t) => g("/v2/emails/send").setMethod("post").setPayload({ recipientIds: e, ...t }), eo = () => ({
1417
+ sendToCandidate: Gr,
1418
+ sendToRecipients: Kr
1419
+ }), Wr = (e, t = !0) => {
1420
+ const r = g("/v2/establishments/:establishmentId/email-templates").setRouteParams({ establishmentId: e }).isList().disablePagination();
1421
+ return t && r.setQueryParam("global", !0), r;
1422
+ }, Jr = () => g("/v2/self/email-templates").isList().disablePagination(), to = () => ({
1423
+ listByEstablishment: Wr,
1424
+ listSelf: Jr
1425
+ }), Zr = (e, t) => g("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: t }), Xr = (e, t = "published") => g("establishment-career/:establishmentId/state/:state").setRouteParams({ establishmentId: e, state: t }), Yr = (e, t, r = null) => {
1426
+ const n = r !== null ? g("establishment-career/:establishmentId/:versionId").setRouteParams({ establishmentId: e, versionId: r }) : g("establishment-career/:establishmentId").setRouteParams({ establishmentId: e });
944
1427
  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), vr = () => ({
946
- readById: yn,
947
- readByState: gn,
948
- upsert: wn,
949
- uploadLogoAndBanner: bn,
950
- publish: vn
951
- }), An = (e) => k("establishment/:establishmentId").setRouteParams({ establishmentId: e }), Pn = (e) => g("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), ye = () => ({
952
- read: An,
953
- authorizations: Pn
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
- maintenanceModeEnabled: kn,
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
- 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 }), kr = () => ({
961
- listByEstablishment: Cn,
962
- addToEstablishment: Sn,
963
- update: On,
964
- remove: $n,
965
- syncForCandidate: Tn
966
- }), Ln = (e) => k("offer/:offerId").setRouteParams({ offerId: e }), Rr = () => ({
967
- read: Ln
968
- }), Nn = (e, t = !1) => {
969
- const i = g("/recruiter/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e });
970
- return t && i.setQueryParam("exclude-me", 1), i;
971
- }, Er = () => ({
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
- mineByEstablishment: Dn,
976
- mineWithoutCandidate: xn,
977
- mineWithCandidate: _n,
978
- withCandidate: jn,
979
- addCandidates: Bn,
980
- removeCandidate: zn
981
- }), Vn = (e, t, i, n = null) => {
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
- open: Vn,
986
- update: Un,
987
- read: Fn,
988
- close: Hn
989
- }), Qn = (e, t) => g("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Sr = () => ({
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"), Or = () => ({
992
- list: qn,
993
- listByEstablishment: Gn
994
- }), Kn = (e) => g("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), $r = () => ({
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), Tr = () => ({
997
- lookupTalent: Wn,
998
- addCandidateToTalentPool: Jn
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 = () => ({
1000
- emailExists: Zn,
1001
- self: Xn,
1002
- byUuidPrivate: Yn,
1003
- byUuid: ei,
1004
- fetchUuid: ti
1005
- });
1006
- let B;
1007
- function ni() {
1008
- if (B)
1009
- return B;
1010
- const e = {
1011
- user: void 0,
1012
- roles: [],
1013
- establishments: {}
1014
- }, t = async () => {
1015
- if (!V().isAuthenticated())
1016
- throw new Error("::SDK Authorization:: User not authenticated");
1017
- const s = (await ge().self().send()).getData();
1018
- e.user = {
1019
- id: s.id,
1020
- email: s.email,
1021
- firstName: s.firstName,
1022
- lastName: s.lastName,
1023
- avatar: s.avatar
1024
- }, e.roles = s.roles;
1025
- }, i = async (s) => {
1026
- if (!V().isAuthenticated())
1027
- throw new Error("::SDK Authorization:: User not authenticated");
1028
- e.establishments[s] = (await ye().authorizations(s).send()).getData();
1029
- }, n = (s) => {
1030
- if (e.user === void 0)
1031
- throw new Error("::SDK Authorization:: User not fetched");
1032
- return e.roles.includes(s);
1033
- };
1034
- return B = {
1035
- fetchSelf: t,
1036
- fetchPermission: i,
1037
- hasRole: n,
1038
- hasRoleRH: () => n("ROLE_RH"),
1039
- hasRoleCandidate: () => n("ROLE_CANDIDATE"),
1040
- hasRoleAdmin: () => n("ROLE_ADMIN"),
1041
- hasPermission: (s, ...c) => {
1042
- const f = e.establishments[s];
1043
- if (f === void 0)
1044
- throw new Error(`::SDK Authorization:: Permissions not fetched for establishment ${s}`);
1045
- return c.every((p) => f[p] === !0);
1428
+ }, ei = (e, t) => g("establishment-career/:establishmentId/logo-banner").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), ti = (e, t, r) => g("establishment-career/:establishmentId/publish/:versionId").setMethod("post").setRouteParams({ establishmentId: e, versionId: t }).setPayload(r), no = () => ({
1429
+ readById: Zr,
1430
+ readByState: Xr,
1431
+ upsert: Yr,
1432
+ uploadLogoAndBanner: ei,
1433
+ publish: ti
1434
+ }), ni = (e) => I("establishment/:establishmentId").setRouteParams({ establishmentId: e }), ri = (e) => g("establishment/:establishmentId/authorizations").setRouteParams({ establishmentId: e }), ii = () => ({
1435
+ read: ni,
1436
+ authorizations: ri
1437
+ }), si = (e) => I("feature-flag/maintenance").setMethod("post").setPayload(e), oi = (e, t) => I("feature-flag/establishment").setMethod("post").setPayload({ establishment: e, flagName: t }), ro = () => ({
1438
+ maintenanceModeEnabled: si,
1439
+ forEstablishment: oi
1440
+ }), ai = () => I("job").isList().addGroup("Term:id").addGroup("Term:name"), ci = (e, t = !0) => g("job/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), io = () => ({
1441
+ list: ai,
1442
+ listByEstablishment: ci
1443
+ }), ui = (e) => g("/label/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), li = (e, t) => g("/label/establishment/:establishmentId").setMethod("post").setRouteParams({ establishmentId: e }).setPayload(t), di = (e, t) => g("/label/:labelId").setMethod("put").setRouteParams({ labelId: e }).setPayload(t), fi = (e) => g("/label/:labelId").setMethod("delete").setRouteParams({ labelId: e }), pi = (e, t, r) => g("/label/establishment/:establishmentId/candidate/:candidateId/synchronize").setMethod("post").setPayload(r).setRouteParams({ establishmentId: e, candidateId: t }), so = () => ({
1444
+ listByEstablishment: ui,
1445
+ addToEstablishment: li,
1446
+ update: di,
1447
+ remove: fi,
1448
+ syncForCandidate: pi
1449
+ }), mi = (e) => I("offer/:offerId").setRouteParams({ offerId: e }), oo = () => ({
1450
+ read: mi
1451
+ }), hi = (e, t = !1) => {
1452
+ const r = g("/recruiter/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e });
1453
+ return t && r.setQueryParam("exclude-me", 1), r;
1454
+ }, ao = () => ({
1455
+ listByEstablishment: hi
1456
+ }), yi = (e) => g("/recruitment/:recruitmentId").setRouteParams({ recruitmentId: e }), gi = (e) => g("/recruitment/mine/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), wi = (e, t) => g("/recruitment/mine/establishment/:establishmentId/has-not/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), bi = (e, t) => g("/recruitment/mine/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), vi = (e, t) => g("/recruitment/establishment/:establishmentId/has/candidate/:candidateId").isList().setRouteParams({ establishmentId: e, candidateId: t }), Ei = (e, t) => g("/recruitment/:recruitmentId/candidate").setMethod("put").setRouteParams({ recruitmentId: e }).setPayload(t), Ai = (e, t) => g("/recruitment/:recruitmentId/candidate/:candidateId").setMethod("delete").setRouteParams({ recruitmentId: e, candidateId: t }), co = () => ({
1457
+ read: yi,
1458
+ mineByEstablishment: gi,
1459
+ mineWithoutCandidate: wi,
1460
+ mineWithCandidate: bi,
1461
+ withCandidate: vi,
1462
+ addCandidates: Ei,
1463
+ removeCandidate: Ai
1464
+ }), Pi = (e, t, r, n = null) => {
1465
+ const i = I("candidate/register/open").setMethod("post"), s = { email: e };
1466
+ return t === "establishment" && (s.establishmentId = r), t === "offer" && (s.offerId = r), n && (s.referer = n), i.setPayload(s), i;
1467
+ }, Ii = (e, t) => I("candidate/register/update/:token").setMethod("post").setRouteParams({ token: e }).setPayload(t), Ri = (e) => I("candidate/register/read/:token").setRouteParams({ token: e }), Si = (e) => I("candidate/register/close/:token").setMethod("post").setRouteParams({ token: e }), uo = () => ({
1468
+ open: Pi,
1469
+ update: Ii,
1470
+ read: Ri,
1471
+ close: Si
1472
+ }), Oi = (e, t) => g("/v2/registrations/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), lo = () => ({
1473
+ lookupEstablishment: Oi
1474
+ }), Ci = () => I("speciality").isList().addGroup("Term:id").addGroup("Term:name"), _i = (e, t = !0) => g("speciality/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }).setQueryParam("all", t).addGroup("Term:id").addGroup("Term:name"), fo = () => ({
1475
+ list: Ci,
1476
+ listByEstablishment: _i
1477
+ }), ki = (e) => g("/tag/public/establishment/:establishmentId").isList().setRouteParams({ establishmentId: e }), po = () => ({
1478
+ listByEstablishment: ki
1479
+ }), $i = (e, t) => g("/v2/talents/lookup").setQueryParam("candidate-id", e).setQueryParam("establishment-id", t), Ti = (e) => g("/v2/talents/index").setMethod("post").setPayload(e), mo = () => ({
1480
+ lookupTalent: $i,
1481
+ addCandidateToTalentPool: Ti
1482
+ }), Ni = (e) => I("user/email/isset/:email").setRouteParams({ email: e }), Mi = () => g("user/self").addGroup("user:self"), Li = (e) => g("/user/:uuid").setRouteParams({ uuid: e }), Di = (e) => I("/user/:uuid").setRouteParams({ uuid: e }), ji = (e) => g("/user/:id/uuid").setRouteParams({ id: e }), xi = () => ({
1483
+ emailExists: Ni,
1484
+ self: Mi,
1485
+ byUuidPrivate: Li,
1486
+ byUuid: Di,
1487
+ fetchUuid: ji
1488
+ }), ht = () => {
1489
+ const e = ze(null), t = ze({}), r = W(() => e.value.roles ?? []), n = W(() => r.value.includes("ROLE_RH")), i = W(() => r.value.includes("ROLE_CANDIDATE")), s = W(() => r.value.includes("ROLE_ADMIN"));
1490
+ return {
1491
+ user: e,
1492
+ establishments: t,
1493
+ roles: r,
1494
+ isRH: n,
1495
+ isCandidate: i,
1496
+ isAdmin: s,
1497
+ fetchSelf: async (d) => {
1498
+ if (e.value === null || d)
1499
+ return xi().self().send().then((u) => e.value = u.getData());
1046
1500
  },
1047
- clear: () => {
1048
- e.user = void 0, e.roles = [], e.establishments = {};
1501
+ fetchPermission: async (d, u) => {
1502
+ if (!t.value[d] || u)
1503
+ return ii().authorizations(d).send().then((a) => t.value[d] = a.getData());
1049
1504
  }
1050
- }, B;
1051
- }
1052
- async function Lr(e, ...t) {
1053
- if (!V().isAuthenticated())
1505
+ };
1506
+ };
1507
+ async function ho(e, ...t) {
1508
+ if (!We().isAuthenticated())
1054
1509
  throw "ERR_NOT_AUTHENTICATED";
1055
- const n = ni();
1510
+ const n = ht();
1056
1511
  await Promise.all([
1057
1512
  n.fetchSelf(),
1058
1513
  n.fetchPermission(e)
1059
1514
  ]);
1060
- for (let r = 0; r < t.length; r++) {
1061
- const a = t[r];
1062
- if (!n.hasPermission(e, a))
1515
+ for (let i = 0; i < t.length; i++) {
1516
+ const s = t[i];
1517
+ if (!n.hasPermission(e, s))
1063
1518
  throw "ERR_MISSING_PERMISSION";
1064
1519
  }
1065
1520
  }
1066
- const Nr = Fe("authorization", {
1067
- state: () => ({
1068
- user: void 0,
1069
- establishments: {}
1070
- }),
1071
- getters: {
1072
- roles: (e) => e.user.roles ?? [],
1073
- isRH() {
1074
- return this.roles.includes("ROLE_RH");
1075
- },
1076
- isCandidate() {
1077
- return this.roles.includes("ROLE_CANDIDATE");
1078
- },
1079
- isAdmin() {
1080
- return this.roles.includes("ROLE_ADMIN");
1081
- }
1082
- },
1083
- actions: {
1084
- async fetchSelf(e) {
1085
- if (this.user === void 0 || e) {
1086
- const t = await ge().self().send();
1087
- this.user = t.getData();
1088
- }
1089
- },
1090
- async fetchPermission(e, t) {
1091
- if (!this.establishments[e] || t) {
1092
- const i = await ye().authorizations(e).send();
1093
- this.establishments[e] = i.getData();
1094
- }
1095
- },
1096
- hasPermission(e, ...t) {
1097
- const i = this.establishments[e];
1098
- return i === void 0 ? !1 : t.every((n) => i[n] === !0);
1099
- }
1100
- }
1101
- });
1102
- let N = null;
1521
+ const yo = Bt("authorization", ht);
1522
+ let F = null;
1103
1523
  function y() {
1104
- if (N)
1105
- return N;
1106
- const e = $.getEnvironment(), t = (() => e === "prod" || e === "production" ? "pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp" : e === "staging" ? "823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF" : "TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(), i = !!t, n = e !== "prod" && e !== "production";
1107
- let r = null;
1108
- function a() {
1109
- return i;
1524
+ if (F)
1525
+ return F;
1526
+ const e = j.getEnvironment(), t = (() => e === "prod" || e === "production" ? "pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp" : e === "staging" ? "823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF" : "TMZX6evFnu87JrBHV5qLwHsld5C6hilZ")(), r = !!t, n = e !== "prod" && e !== "production";
1527
+ let i = null;
1528
+ function s() {
1529
+ return r;
1110
1530
  }
1111
- function u() {
1112
- const p = window.analytics = window.analytics || [];
1113
- if (!p.initialize && p.invoked)
1531
+ function o() {
1532
+ const m = window.analytics = window.analytics || [];
1533
+ if (!m.initialize && m.invoked)
1114
1534
  A.error("Segment snippet included twice.");
1115
1535
  else {
1116
- p.invoked = !0, p.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware"], p.factory = function(h) {
1536
+ m.invoked = !0, m.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware"], m.factory = function(h) {
1117
1537
  return function() {
1118
1538
  if (window.analytics.initialized)
1119
1539
  return window.analytics[h].apply(window.analytics, arguments);
1120
1540
  const w = Array.prototype.slice.call(arguments);
1121
- return w.unshift(h), p.push(w), p;
1541
+ return w.unshift(h), m.push(w), m;
1122
1542
  };
1123
1543
  };
1124
- for (let h = 0; h < p.methods.length; h++) {
1125
- const w = p.methods[h];
1126
- p[w] = p.factory(w);
1544
+ for (let h = 0; h < m.methods.length; h++) {
1545
+ const w = m.methods[h];
1546
+ m[w] = m.factory(w);
1127
1547
  }
1128
- p.load = function(h, w) {
1129
- const b = document.createElement("script");
1130
- 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"));
1131
- const S = document.getElementsByTagName("script")[0];
1132
- S.parentNode.insertBefore(b, S), p._loadOptions = w;
1133
- }, p._writeKey = t, p.SNIPPET_VERSION = "4.16.1", p.load(t), p.page(), p.ready(() => window.dispatchEvent(new Event("analytics-ready")));
1548
+ m.load = function(h, w) {
1549
+ const v = document.createElement("script");
1550
+ v.id = "analytics-script", v.type = "text/javascript", v.async = !0, v.src = "https://cdn.segment.com/analytics.js/v1/" + h + "/analytics.min.js", v.onerror = () => window.dispatchEvent(new Event("analytics-error"));
1551
+ const $ = document.getElementsByTagName("script")[0];
1552
+ $.parentNode.insertBefore(v, $), m._loadOptions = w;
1553
+ }, m._writeKey = t, m.SNIPPET_VERSION = "4.16.1", m.load(t), m.page(), m.ready(() => window.dispatchEvent(new Event("analytics-ready")));
1134
1554
  }
1135
1555
  }
1136
- async function m() {
1137
- return r !== null || (r = new Promise((p, h) => {
1138
- if (!a())
1139
- return f("Analytics is disabled."), p();
1556
+ async function c() {
1557
+ return i !== null || (i = new Promise((m, h) => {
1558
+ if (!s())
1559
+ return p("Analytics is disabled."), m();
1140
1560
  if (window.addEventListener("analytics-ready", () => {
1141
- f("Analytics script loaded successfully."), p();
1561
+ p("Analytics script loaded successfully."), m();
1142
1562
  }), window.addEventListener("analytics-error", () => {
1143
- f("Analytics script failed to load. Consider disabling your AdBlocker.", null, "error"), h();
1144
- }), f("Loading Analytics script."), window.analytics)
1145
- return p();
1146
- u();
1147
- })), r;
1148
- }
1149
- async function d(p, h) {
1150
- if (!T())
1563
+ p("Analytics script failed to load. Consider disabling your AdBlocker.", null, "error"), h();
1564
+ }), p("Loading Analytics script."), window.analytics)
1565
+ return m();
1566
+ o();
1567
+ })), i;
1568
+ }
1569
+ async function d(m, h) {
1570
+ if (!z())
1151
1571
  try {
1152
- if (await this.analyticsScriptReady(), f("[identify]", [p, h]), a())
1153
- return window.analytics.identify(p, h);
1572
+ if (await this.analyticsScriptReady(), p("[identify]", [m, h]), s())
1573
+ return window.analytics.identify(m, h);
1154
1574
  } catch {
1155
- f("[identify]", [p, h], "error");
1575
+ p("[identify]", [m, h], "error");
1156
1576
  }
1157
1577
  }
1158
- async function s(p, h, w) {
1159
- if (!T()) {
1578
+ async function u(m, h, w) {
1579
+ if (!z()) {
1160
1580
  typeof w != "object" && (w = {});
1161
1581
  try {
1162
- if (await this.analyticsScriptReady(), f("[page]", [p, h, w]), a())
1163
- return window.analytics.page(p, {
1582
+ if (await this.analyticsScriptReady(), p("[page]", [m, h, w]), s())
1583
+ return window.analytics.page(m, {
1164
1584
  category: h,
1165
1585
  ...w
1166
1586
  });
1167
- } catch (b) {
1168
- console.log(b), f("[page]", [p, h, w], "error");
1587
+ } catch (v) {
1588
+ console.log(v), p("[page]", [m, h, w], "error");
1169
1589
  }
1170
1590
  }
1171
1591
  }
1172
- async function c(p, h, w) {
1173
- if (!T()) {
1592
+ async function a(m, h, w) {
1593
+ if (!z()) {
1174
1594
  typeof w != "object" && (w = {});
1175
1595
  try {
1176
- if (await this.analyticsScriptReady(), f("[track]", [p, h, w]), a())
1177
- return window.analytics.track(p, {
1596
+ if (await this.analyticsScriptReady(), p("[track]", [m, h, w]), s())
1597
+ return window.analytics.track(m, {
1178
1598
  category: h,
1179
1599
  ...w
1180
1600
  });
1181
1601
  } catch {
1182
- f("[track]", [p, h, w], "error");
1602
+ p("[track]", [m, h, w], "error");
1183
1603
  }
1184
1604
  }
1185
1605
  }
1186
- function f(p, h = [], w = "info") {
1187
- h || (h = []), n && A[w](`::SDK Analytics:: ${p}`, ...h);
1606
+ function p(m, h = [], w = "info") {
1607
+ h || (h = []), n && A[w](`::SDK Analytics:: ${m}`, ...h);
1188
1608
  }
1189
- return N = {
1190
- analyticsScriptReady: m,
1191
- isEnabled: a,
1609
+ return F = {
1610
+ analyticsScriptReady: c,
1611
+ isEnabled: s,
1192
1612
  identify: d,
1193
- page: s,
1194
- track: c,
1195
- consoleMessage: f
1196
- }, N;
1613
+ page: u,
1614
+ track: a,
1615
+ consoleMessage: p
1616
+ }, F;
1197
1617
  }
1198
- y.destroy = () => N = null;
1199
- function ii() {
1618
+ y.destroy = () => F = null;
1619
+ function Vi() {
1200
1620
  const e = "Hubler Application";
1201
- function t(s) {
1202
- if (!s)
1621
+ function t(u) {
1622
+ if (!u)
1203
1623
  throw new Error(`Missing arguments for domain "${e}"`);
1204
- const c = !!s.offerId;
1205
- if (c && !s.recruitmentId)
1624
+ const a = !!u.offerId;
1625
+ if (a && !u.recruitmentId)
1206
1626
  throw new Error(`Missing argument "recruitmentId" for domain "${e}"`);
1207
1627
  return {
1208
- companyId: s.establishmentId ? s.establishmentId.toString() : null,
1209
- jobOfferId: c ? s.offerId.toString() : null,
1210
- recruitmentId: c ? s.recruitmentId.toString() : null,
1211
- selections: [c ? "Application" : "Spontaneous Application"]
1628
+ companyId: u.establishmentId ? u.establishmentId.toString() : null,
1629
+ jobOfferId: a ? u.offerId.toString() : null,
1630
+ recruitmentId: a ? u.recruitmentId.toString() : null,
1631
+ selections: [a ? "Application" : "Spontaneous Application"]
1212
1632
  };
1213
1633
  }
1214
- async function i(s) {
1215
- return y().page("Application Authentication Viewed", e, t(s));
1634
+ async function r(u) {
1635
+ return y().page("Application Authentication Viewed", e, t(u));
1216
1636
  }
1217
- async function n(s) {
1218
- return y().page("Application Magic Link Viewed", e, t(s));
1637
+ async function n(u) {
1638
+ return y().page("Application Magic Link Viewed", e, t(u));
1219
1639
  }
1220
- async function r(s) {
1221
- return y().page("Application Job Viewed", e, t(s));
1640
+ async function i(u) {
1641
+ return y().page("Application Job Viewed", e, t(u));
1222
1642
  }
1223
- async function a(s) {
1224
- return y().page("Application Information Viewed", e, t(s));
1643
+ async function s(u) {
1644
+ return y().page("Application Information Viewed", e, t(u));
1225
1645
  }
1226
- async function u(s) {
1227
- return y().page("Application Document Viewed", e, t(s));
1646
+ async function o(u) {
1647
+ return y().page("Application Document Viewed", e, t(u));
1228
1648
  }
1229
- async function m(s) {
1230
- return y().page("Application Success Viewed", e, t(s));
1649
+ async function c(u) {
1650
+ return y().page("Application Success Viewed", e, t(u));
1231
1651
  }
1232
- async function d(s) {
1233
- if (!s.error)
1652
+ async function d(u) {
1653
+ if (!u.error)
1234
1654
  throw new Error(`Missing argument "error" for domain "${e}", event "Application Form Failed"`);
1235
- return y().track("Application Form Failed", e, { ...t(s), error: s.error });
1655
+ return y().track("Application Form Failed", e, { ...t(u), error: u.error });
1236
1656
  }
1237
1657
  return {
1238
- applicationAuthenticationViewed: i,
1658
+ applicationAuthenticationViewed: r,
1239
1659
  applicationMagicLinkViewed: n,
1240
- applicationJobViewed: r,
1241
- applicationInformationViewed: a,
1242
- applicationDocumentViewed: u,
1243
- applicationSuccessViewed: m,
1660
+ applicationJobViewed: i,
1661
+ applicationInformationViewed: s,
1662
+ applicationDocumentViewed: o,
1663
+ applicationSuccessViewed: c,
1244
1664
  applicationFormFailed: d
1245
1665
  };
1246
1666
  }
1247
- function ri() {
1667
+ function zi() {
1248
1668
  const e = "Profile";
1249
- function t(l, P) {
1250
- var I;
1251
- if (!l)
1669
+ function t(f, P) {
1670
+ var C;
1671
+ if (!f)
1252
1672
  throw new Error(`Missing arguments for domain "${e}"`);
1253
1673
  const R = {
1254
- companyId: l.companyId ? l.companyId.toString() : null,
1255
- hublerId: (I = l.hublerId) == null ? void 0 : I.toString()
1674
+ companyId: f.companyId ? f.companyId.toString() : null,
1675
+ hublerId: (C = f.hublerId) == null ? void 0 : C.toString()
1256
1676
  };
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;
1677
+ return P && (R.productId = f.companyId ? f.companyId + "_2" : null), f.recruitmentId && (R.recruitmentId = f.recruitmentId.toString()), f.selections && (R.selections = f.selections), f.institutionId && (R.institutionId = f.institutionId.map(String)), R;
1258
1678
  }
1259
- async function i(l) {
1260
- return y().track(l.name, e, t(l.properties), !0);
1679
+ async function r(f) {
1680
+ return y().track(f.name, e, t(f.properties), !0);
1261
1681
  }
1262
- async function n(l) {
1263
- return y().track(l.name, e, t(l.properties, !0));
1682
+ async function n(f) {
1683
+ return y().track(f.name, e, t(f.properties, !0));
1264
1684
  }
1265
- async function r(l) {
1266
- return y().track(l.name, e, t(l.properties, !0));
1685
+ async function i(f) {
1686
+ return y().track(f.name, e, t(f.properties, !0));
1267
1687
  }
1268
- async function a(l) {
1269
- return y().track(l.name, e, t(l.properties, !0));
1688
+ async function s(f) {
1689
+ return y().track(f.name, e, t(f.properties, !0));
1270
1690
  }
1271
- async function u(l) {
1272
- return y().track(l.name, e, t(l.properties, !0));
1691
+ async function o(f) {
1692
+ return y().track(f.name, e, t(f.properties, !0));
1273
1693
  }
1274
- async function m(l) {
1275
- return y().track(l.name, e, t(l.properties, !0));
1694
+ async function c(f) {
1695
+ return y().track(f.name, e, t(f.properties, !0));
1276
1696
  }
1277
- async function d(l) {
1278
- return y().track(l.name, e, t(l.properties, !0));
1697
+ async function d(f) {
1698
+ return y().track(f.name, e, t(f.properties, !0));
1279
1699
  }
1280
- async function s(l) {
1281
- return y().track(l.name, e, t(l.properties, !0));
1700
+ async function u(f) {
1701
+ return y().track(f.name, e, t(f.properties, !0));
1282
1702
  }
1283
- async function c(l) {
1284
- return y().track(l.name, e, t(l.properties, !0));
1703
+ async function a(f) {
1704
+ return y().track(f.name, e, t(f.properties, !0));
1285
1705
  }
1286
- async function f(l) {
1287
- return y().track(l.name, e, t(l.properties, !0));
1706
+ async function p(f) {
1707
+ return y().track(f.name, e, t(f.properties, !0));
1288
1708
  }
1289
- async function p(l) {
1290
- return y().track(l.name, e, t(l.properties, !0));
1709
+ async function m(f) {
1710
+ return y().track(f.name, e, t(f.properties, !0));
1291
1711
  }
1292
- async function h(l) {
1293
- return y().track(l.name, e, t(l.properties, !0));
1712
+ async function h(f) {
1713
+ return y().track(f.name, e, t(f.properties, !0));
1294
1714
  }
1295
- async function w(l) {
1296
- return y().track(l.name, e, t(l.properties, !0));
1715
+ async function w(f) {
1716
+ return y().track(f.name, e, t(f.properties, !0));
1297
1717
  }
1298
- async function b(l) {
1299
- return y().page(l.name, l.properties.category, t(l.properties, !1));
1718
+ async function v(f) {
1719
+ return y().page(f.name, f.properties.category, t(f.properties, !1));
1300
1720
  }
1301
- async function S(l) {
1302
- return y().track(l.name, e, t(l.properties, !1));
1721
+ async function $(f) {
1722
+ return y().track(f.name, e, t(f.properties, !1));
1303
1723
  }
1304
1724
  return {
1305
- profileDocumentDeleted: i,
1725
+ profileDocumentDeleted: r,
1306
1726
  profileLabelAdded: n,
1307
- profileLabelRemoved: r,
1308
- profileShared: a,
1309
- profileArchived: u,
1310
- profileCandidateAdded: m,
1727
+ profileLabelRemoved: i,
1728
+ profileShared: s,
1729
+ profileArchived: o,
1730
+ profileCandidateAdded: c,
1311
1731
  profileCommentAdded: d,
1312
- profileDocumentAdded: s,
1313
- profileDocumentDownloaded: c,
1314
- profileDocumentRequested: f,
1315
- profileRecruitmentAdded: p,
1732
+ profileDocumentAdded: u,
1733
+ profileDocumentDownloaded: a,
1734
+ profileDocumentRequested: p,
1735
+ profileRecruitmentAdded: m,
1316
1736
  profileRecruitmentRemoved: h,
1317
1737
  profileTabSelected: w,
1318
- profileViewed: b,
1319
- profileEmailSent: S
1738
+ profileViewed: v,
1739
+ profileEmailSent: $
1320
1740
  };
1321
1741
  }
1322
- function si() {
1742
+ function Bi() {
1323
1743
  const e = "Recruitment";
1324
1744
  function t(n) {
1325
1745
  if (!n)
1326
1746
  throw new Error(`Missing arguments for domain "${e}"`);
1327
- const r = {
1747
+ const i = {
1328
1748
  companyId: n.companyId ? n.companyId.toString() : null
1329
1749
  };
1330
- return n.institutionId && (r.institutionId = [n.institutionId.toString()]), n.origin && (r.origin = n.origin.toString()), r;
1750
+ return n.institutionId && (i.institutionId = [n.institutionId.toString()]), n.origin && (i.origin = n.origin.toString()), i;
1331
1751
  }
1332
- async function i(n) {
1752
+ async function r(n) {
1333
1753
  return y().track(n.name, e, { ...t(n), recruitmentId: n.recruitmentId.toString(), count: parseInt(n.count) });
1334
1754
  }
1335
1755
  return {
1336
- candidateAdded: i
1756
+ candidateAdded: r
1337
1757
  };
1338
1758
  }
1339
- function oi() {
1759
+ function Fi() {
1340
1760
  const e = "Visual Builder";
1341
- function t(o, xe) {
1342
- if (!o)
1761
+ function t(l, Mt) {
1762
+ if (!l)
1343
1763
  throw new Error(`Missing arguments for domain "${e}"`);
1344
- const L = {
1345
- companyId: o.companyId ? o.companyId.toString() : null
1764
+ const B = {
1765
+ companyId: l.companyId ? l.companyId.toString() : null
1346
1766
  };
1347
- return xe && (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;
1767
+ return Mt && (B.productId = l.companyId ? l.companyId + "_2" : null), l.selections && (B.selections = l.selections), l.error && (B.error = l.error), l.institutionId && (B.institutionId = [l.institutionId.toString()]), B;
1348
1768
  }
1349
- async function i(o) {
1350
- return y().page(o.name, e, t(o.properties, !0));
1769
+ async function r(l) {
1770
+ return y().page(l.name, e, t(l.properties, !0));
1351
1771
  }
1352
- async function n(o) {
1353
- return y().track(o.name, e, t(o.properties), !0);
1772
+ async function n(l) {
1773
+ return y().track(l.name, e, t(l.properties), !0);
1354
1774
  }
1355
- async function r(o) {
1356
- return y().track(o.name, e, t(o.properties, !0));
1775
+ async function i(l) {
1776
+ return y().track(l.name, e, t(l.properties, !0));
1357
1777
  }
1358
- async function a(o) {
1359
- return y().page(o.name, e, t(o.properties, !0));
1778
+ async function s(l) {
1779
+ return y().page(l.name, e, t(l.properties, !0));
1360
1780
  }
1361
- async function u(o) {
1362
- return y().page(o.name, e, t(o.properties, !0));
1781
+ async function o(l) {
1782
+ return y().page(l.name, e, t(l.properties, !0));
1363
1783
  }
1364
- async function m(o) {
1365
- return y().track(o.name, e, t(o.properties, !0));
1784
+ async function c(l) {
1785
+ return y().track(l.name, e, t(l.properties, !0));
1366
1786
  }
1367
- async function d(o) {
1368
- return y().page(o.name, e, t(o.properties, !0));
1787
+ async function d(l) {
1788
+ return y().page(l.name, e, t(l.properties, !0));
1369
1789
  }
1370
- async function s(o) {
1371
- return y().page(o.name, e, t(o.properties, !0));
1790
+ async function u(l) {
1791
+ return y().page(l.name, e, t(l.properties, !0));
1372
1792
  }
1373
- async function c(o) {
1374
- return y().page(o.name, e, t(o.properties, !0));
1793
+ async function a(l) {
1794
+ return y().page(l.name, e, t(l.properties, !0));
1375
1795
  }
1376
- async function f(o) {
1377
- return y().track(o.name, e, t(o.properties, !0));
1796
+ async function p(l) {
1797
+ return y().track(l.name, e, t(l.properties, !0));
1378
1798
  }
1379
- async function p(o) {
1380
- return y().page(o.name, e, t(o.properties, !0));
1799
+ async function m(l) {
1800
+ return y().page(l.name, e, t(l.properties, !0));
1381
1801
  }
1382
- async function h(o) {
1383
- return y().page(o.name, e, t(o.properties, !0));
1802
+ async function h(l) {
1803
+ return y().page(l.name, e, t(l.properties, !0));
1384
1804
  }
1385
- async function w(o) {
1386
- return y().track(o.name, e, t(o.properties, !0));
1805
+ async function w(l) {
1806
+ return y().track(l.name, e, t(l.properties, !0));
1387
1807
  }
1388
- async function b(o) {
1389
- return y().track(o.name, e, t(o.properties, !0));
1808
+ async function v(l) {
1809
+ return y().track(l.name, e, t(l.properties, !0));
1390
1810
  }
1391
- async function S(o) {
1392
- return y().page(o.name, e, t(o.properties, !0));
1811
+ async function $(l) {
1812
+ return y().page(l.name, e, t(l.properties, !0));
1393
1813
  }
1394
- async function l(o) {
1395
- return y().page(o.name, e, t(o.properties, !0));
1814
+ async function f(l) {
1815
+ return y().page(l.name, e, t(l.properties, !0));
1396
1816
  }
1397
- async function P(o) {
1398
- return y().page(o.name, e, t(o.properties, !0));
1817
+ async function P(l) {
1818
+ return y().page(l.name, e, t(l.properties, !0));
1399
1819
  }
1400
- async function R(o) {
1401
- return y().page(o.name, e, t(o.properties, !0));
1820
+ async function R(l) {
1821
+ return y().page(l.name, e, t(l.properties, !0));
1402
1822
  }
1403
- async function I(o) {
1404
- return y().page(o.name, e, t(o.properties, !1));
1823
+ async function C(l) {
1824
+ return y().page(l.name, e, t(l.properties, !1));
1405
1825
  }
1406
- async function Pe(o) {
1407
- return y().track(o.name, e, t(o.properties, !0));
1826
+ async function vt(l) {
1827
+ return y().track(l.name, e, t(l.properties, !0));
1408
1828
  }
1409
- async function ke(o) {
1410
- return y().track(o.name, e, t(o.properties, !0));
1829
+ async function Et(l) {
1830
+ return y().track(l.name, e, t(l.properties, !0));
1411
1831
  }
1412
- async function Re(o) {
1413
- return y().track(o.name, e, t(o.properties, !0));
1832
+ async function At(l) {
1833
+ return y().track(l.name, e, t(l.properties, !0));
1414
1834
  }
1415
- async function Ee(o) {
1416
- return y().track(o.name, e, t(o.properties, !0));
1835
+ async function Pt(l) {
1836
+ return y().track(l.name, e, t(l.properties, !0));
1417
1837
  }
1418
- async function Ie(o) {
1419
- return y().track(o.name, e, t(o.properties, !0));
1838
+ async function It(l) {
1839
+ return y().track(l.name, e, t(l.properties, !0));
1420
1840
  }
1421
- async function Ce(o) {
1422
- return y().track(o.name, e, t(o.properties, !0));
1841
+ async function Rt(l) {
1842
+ return y().track(l.name, e, t(l.properties, !0));
1423
1843
  }
1424
- async function Se(o) {
1425
- return y().track(o.name, e, t(o.properties, !0));
1844
+ async function St(l) {
1845
+ return y().track(l.name, e, t(l.properties, !0));
1426
1846
  }
1427
- async function Oe(o) {
1428
- return y().track(o.name, e, t(o.properties, !0));
1847
+ async function Ot(l) {
1848
+ return y().track(l.name, e, t(l.properties, !0));
1429
1849
  }
1430
- async function $e(o) {
1431
- return y().track(o.name, e, t(o.properties, !0));
1850
+ async function Ct(l) {
1851
+ return y().track(l.name, e, t(l.properties, !0));
1432
1852
  }
1433
- async function Te(o) {
1434
- return y().track(o.name, e, t(o.properties, !0));
1853
+ async function _t(l) {
1854
+ return y().track(l.name, e, t(l.properties, !0));
1435
1855
  }
1436
- async function Le(o) {
1437
- return y().track(o.name, e, t(o.properties, !0));
1856
+ async function kt(l) {
1857
+ return y().track(l.name, e, t(l.properties, !0));
1438
1858
  }
1439
- async function Ne(o) {
1440
- return y().track(o.name, e, t(o.properties, !0));
1859
+ async function $t(l) {
1860
+ return y().track(l.name, e, t(l.properties, !0));
1441
1861
  }
1442
- async function Me(o) {
1443
- return y().track(o.name, e, t(o.properties, !0));
1862
+ async function Tt(l) {
1863
+ return y().track(l.name, e, t(l.properties, !0));
1444
1864
  }
1445
- async function De(o) {
1446
- return y().page(o.name, e, t(o.properties, !1));
1865
+ async function Nt(l) {
1866
+ return y().page(l.name, e, t(l.properties, !1));
1447
1867
  }
1448
1868
  return {
1449
- careerSitePreviewViewed: i,
1869
+ careerSitePreviewViewed: r,
1450
1870
  careerSitePublished: n,
1451
- setupBenefitCustomAdded: r,
1452
- setupBenefitViewed: a,
1453
- setupCandidateInformationViewed: u,
1454
- setupContactAdded: m,
1871
+ setupBenefitCustomAdded: i,
1872
+ setupBenefitViewed: s,
1873
+ setupCandidateInformationViewed: o,
1874
+ setupContactAdded: c,
1455
1875
  setupContactViewed: d,
1456
- setupEditionDoneViewed: s,
1457
- setupExternalLinkViewed: c,
1458
- setupImageUploaded: f,
1459
- setupImageViewed: p,
1876
+ setupEditionDoneViewed: u,
1877
+ setupExternalLinkViewed: a,
1878
+ setupImageUploaded: p,
1879
+ setupImageViewed: m,
1460
1880
  setupLocationViewed: h,
1461
1881
  setupPresentationContentAdded: w,
1462
- setupPresentationNewTabAdded: b,
1463
- setupPresentationViewed: S,
1464
- setupSettingsDoneViewed: l,
1882
+ setupPresentationNewTabAdded: v,
1883
+ setupPresentationViewed: $,
1884
+ setupSettingsDoneViewed: f,
1465
1885
  setupSocialNetworkViewed: P,
1466
1886
  setupThemeViewed: R,
1467
- visualBuilderViewed: I,
1468
- setupImageUploadFailed: Pe,
1469
- fastCopyLinkClicked: ke,
1470
- setupBenefitCustomDeleted: Re,
1471
- setupBenefitCustomEdited: Ee,
1472
- setupContactDeleted: Ie,
1473
- setupContactEdited: Ce,
1474
- setupContactNewClicked: Se,
1475
- setupPresentationContentDeleted: Oe,
1476
- setupPresentationContentDuplicated: $e,
1477
- setupPresentationContentMoved: Te,
1478
- setupPresentationTabDeleted: Le,
1479
- setupPresentationTabEdited: Ne,
1480
- setupPresentationTabMoved: Me,
1481
- setupSEOViewed: De
1887
+ visualBuilderViewed: C,
1888
+ setupImageUploadFailed: vt,
1889
+ fastCopyLinkClicked: Et,
1890
+ setupBenefitCustomDeleted: At,
1891
+ setupBenefitCustomEdited: Pt,
1892
+ setupContactDeleted: It,
1893
+ setupContactEdited: Rt,
1894
+ setupContactNewClicked: St,
1895
+ setupPresentationContentDeleted: Ot,
1896
+ setupPresentationContentDuplicated: Ct,
1897
+ setupPresentationContentMoved: _t,
1898
+ setupPresentationTabDeleted: kt,
1899
+ setupPresentationTabEdited: $t,
1900
+ setupPresentationTabMoved: Tt,
1901
+ setupSEOViewed: Nt
1482
1902
  };
1483
1903
  }
1484
- const ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1904
+ const Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1485
1905
  __proto__: null,
1486
- useAnalyticsHublerApplication: ii,
1487
- useAnalyticsProfile: ri,
1488
- useAnalyticsRecruitment: si,
1489
- useAnalyticsVisualBuilder: oi
1906
+ useAnalyticsHublerApplication: Vi,
1907
+ useAnalyticsProfile: zi,
1908
+ useAnalyticsRecruitment: Bi,
1909
+ useAnalyticsVisualBuilder: Fi
1490
1910
  }, Symbol.toStringTag, { value: "Module" }));
1491
- function Mr() {
1492
- function e(i) {
1493
- return y().identify(i.id, {
1494
- email: i.email,
1495
- firstName: i.firstname,
1496
- lastName: i.lastname,
1497
- createdAt: i.createdAt,
1911
+ function go() {
1912
+ function e(r) {
1913
+ return y().identify(r.id, {
1914
+ email: r.email,
1915
+ firstName: r.firstname,
1916
+ lastName: r.lastname,
1917
+ createdAt: r.createdAt,
1498
1918
  type: "Hubler",
1499
1919
  lang: "fr",
1500
1920
  medium: t() ? "MOBILE_DEVICE" : "WEB_BROWSER"
1501
1921
  });
1502
1922
  }
1503
1923
  function t() {
1504
- let i = !1;
1924
+ let r = !1;
1505
1925
  return function(n) {
1506
- (/(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(n) || /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(n.substr(0, 4))) && (i = !0);
1507
- }(navigator.userAgent || navigator.vendor || window.opera), i;
1926
+ (/(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(n) || /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(n.substr(0, 4))) && (r = !0);
1927
+ }(navigator.userAgent || navigator.vendor || window.opera), r;
1508
1928
  }
1509
1929
  return {
1510
1930
  identifyCandidate: e
1511
1931
  };
1512
1932
  }
1513
- let z = null;
1514
- const ai = async (e, t) => {
1933
+ let ie = null;
1934
+ const Ui = async (e, t) => {
1515
1935
  try {
1516
- return await H(), A.info("[identify]", [e, t]), window.analytics.identify(e, t);
1936
+ return await de(), A.info("[identify]", [e, t]), window.analytics.identify(e, t);
1517
1937
  } catch {
1518
1938
  A.error("[identify]", [e, t]);
1519
1939
  }
1520
- }, ci = async (e, t, i) => {
1521
- typeof i != "object" && (i = {});
1940
+ }, Hi = async (e, t, r) => {
1941
+ typeof r != "object" && (r = {});
1522
1942
  try {
1523
- return await H(), A.info("[page]", [e, t, i]), window.analytics.page(e, {
1943
+ return await de(), A.info("[page]", [e, t, r]), window.analytics.page(e, {
1524
1944
  category: t,
1525
- ...i
1945
+ ...r
1526
1946
  });
1527
1947
  } catch {
1528
- A.error("[page]", [e, t, i]);
1948
+ A.error("[page]", [e, t, r]);
1529
1949
  }
1530
- }, ui = async (e, t, i) => {
1531
- typeof i != "object" && (i = {});
1950
+ }, Qi = async (e, t, r) => {
1951
+ typeof r != "object" && (r = {});
1532
1952
  try {
1533
- return await H(), A.info("[track]", [e, t, i]), window.analytics.track(e, {
1953
+ return await de(), A.info("[track]", [e, t, r]), window.analytics.track(e, {
1534
1954
  category: t,
1535
- ...i
1955
+ ...r
1536
1956
  });
1537
1957
  } catch {
1538
- A.error("[track]", [e, t, i]);
1958
+ A.error("[track]", [e, t, r]);
1539
1959
  }
1540
- }, Z = () => {
1541
- const e = $.getEnvironment();
1960
+ }, Ee = () => {
1961
+ const e = j.getEnvironment();
1542
1962
  return e === "prod" || e === "production" ? "pPROC7dPoJ7XdxHrwsTQNXCGX79MJjhp" : e === "staging" ? "823rqOTwVk1ZCWVyBAdLInZ77TcFF0CF" : "TMZX6evFnu87JrBHV5qLwHsld5C6hilZ";
1543
- }, we = () => {
1963
+ }, yt = () => {
1544
1964
  const e = window.analytics = window.analytics || [];
1545
1965
  if (!e.initialize && e.invoked)
1546
1966
  A.error("Segment snippet included twice.");
@@ -1549,57 +1969,57 @@ const ai = async (e, t) => {
1549
1969
  return function() {
1550
1970
  if (window.analytics.initialized)
1551
1971
  return window.analytics[t].apply(window.analytics, arguments);
1552
- const i = Array.prototype.slice.call(arguments);
1553
- return i.unshift(t), e.push(i), e;
1972
+ const r = Array.prototype.slice.call(arguments);
1973
+ return r.unshift(t), e.push(r), e;
1554
1974
  };
1555
1975
  };
1556
1976
  for (let t = 0; t < e.methods.length; t++) {
1557
- const i = e.methods[t];
1558
- e[i] = e.factory(i);
1977
+ const r = e.methods[t];
1978
+ e[r] = e.factory(r);
1559
1979
  }
1560
- e.load = function(t, i) {
1980
+ e.load = function(t, r) {
1561
1981
  const n = document.createElement("script");
1562
1982
  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"));
1563
- const r = document.getElementsByTagName("script")[0];
1564
- r.parentNode.insertBefore(n, r), e._loadOptions = i;
1565
- }, e._writeKey = Z(), e.SNIPPET_VERSION = "4.16.1", e.load(Z()), e.page(), e.ready(() => window.dispatchEvent(new Event("analytics-ready")));
1983
+ const i = document.getElementsByTagName("script")[0];
1984
+ i.parentNode.insertBefore(n, i), e._loadOptions = r;
1985
+ }, e._writeKey = Ee(), e.SNIPPET_VERSION = "4.16.1", e.load(Ee()), e.page(), e.ready(() => window.dispatchEvent(new Event("analytics-ready")));
1566
1986
  }
1567
- }, H = () => (z !== null || (z = new Promise((e, t) => {
1987
+ }, de = () => (ie !== null || (ie = new Promise((e, t) => {
1568
1988
  if (window.addEventListener("analytics-ready", () => {
1569
1989
  A.info("Analytics script loaded successfully."), e();
1570
1990
  }), window.addEventListener("analytics-error", () => {
1571
1991
  A.error("Analytics script failed to load. Consider disabling your AdBlocker."), t();
1572
1992
  }), A.info("Loading Analytics script."), window.analytics)
1573
1993
  return e();
1574
- we();
1575
- })), z), Dr = {
1576
- key: Z,
1577
- appendScript: we,
1578
- ready: H,
1579
- identify: ai,
1580
- page: ci,
1581
- track: ui
1582
- }, di = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";
1583
- let be = !1;
1584
- const ve = () => new Promise((e) => {
1585
- T() || be || window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()), fi());
1586
- }), li = (e, t) => ve().then(() => {
1587
- T() || mi(e, t);
1588
- }), mi = (e, t) => {
1589
- const i = new window.google.maps.places.Autocomplete(e, { componentRestrictions: { country: ["fr", "re", "yt", "gp", "mq"] } });
1590
- window.google.maps.event.addListener(i, "place_changed", () => {
1591
- const n = i.getPlace();
1994
+ yt();
1995
+ })), ie), wo = {
1996
+ key: Ee,
1997
+ appendScript: yt,
1998
+ ready: de,
1999
+ identify: Ui,
2000
+ page: Hi,
2001
+ track: Qi
2002
+ }, qi = "AIzaSyDicyRD6rvVdnicp1tgV0ElazASNGbyyTs";
2003
+ let gt = !1;
2004
+ const wt = () => new Promise((e) => {
2005
+ z() || gt || window.google && window.google.maps ? e() : (window.addEventListener("gmap-ready", () => e()), Wi());
2006
+ }), Gi = (e, t) => wt().then(() => {
2007
+ z() || Ki(e, t);
2008
+ }), Ki = (e, t) => {
2009
+ const r = new window.google.maps.places.Autocomplete(e, { componentRestrictions: { country: ["fr", "re", "yt", "gp", "mq"] } });
2010
+ window.google.maps.event.addListener(r, "place_changed", () => {
2011
+ const n = r.getPlace();
1592
2012
  n.formatted_address && t && t(n.formatted_address, n);
1593
2013
  });
1594
- }, fi = () => {
2014
+ }, Wi = () => {
1595
2015
  window.onGmapScriptReady = () => {
1596
2016
  };
1597
2017
  const e = document.createElement("script");
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
- }, xr = {
1600
- scriptReady: ve,
1601
- autocompleteInput: li
1602
- }, pi = {
2018
+ e.src = "https://maps.googleapis.com/maps/api/js?key=" + qi + "&libraries=places&callback=onGmapScriptReady", e.async = !0, e.defer = !0, e.onload = () => window.dispatchEvent(new Event("gmap-ready")), document.body.appendChild(e), gt = !0;
2019
+ }, bo = {
2020
+ scriptReady: wt,
2021
+ autocompleteInput: Gi
2022
+ }, Ji = {
1603
2023
  common: {
1604
2024
  the: "le",
1605
2025
  from: "de"
@@ -1624,336 +2044,336 @@ const ve = () => new Promise((e) => {
1624
2044
  minute: "minute | minutes",
1625
2045
  second: "seconde | secondes"
1626
2046
  }
1627
- }, hi = {
1628
- fr: pi
2047
+ }, Zi = {
2048
+ fr: Ji
1629
2049
  };
1630
- let X = null;
1631
- const yi = () => X, _r = (e = {}) => {
2050
+ let Ae = null;
2051
+ const Xi = () => Ae, vo = (e = {}) => {
1632
2052
  let t = e.locale || "fr";
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
- }, u = (d, s) => {
1637
- const c = O(r, `${t}.${d}`);
1638
- return c ? wi(c, s) : d;
2053
+ const r = (d) => t = d, n = () => t, i = qe(Zi, (e == null ? void 0 : e.messages) || {}), s = (d, u) => {
2054
+ const a = D(i, `${t}.${d}`);
2055
+ return a ? u ? Yi(a, u) : a : d;
2056
+ }, o = (d, u) => {
2057
+ const a = D(i, `${t}.${d}`);
2058
+ return a ? es(a, u) : d;
1639
2059
  };
1640
- return X = {
1641
- t: a,
1642
- tNode: u,
1643
- setLocale: i,
2060
+ return Ae = {
2061
+ t: s,
2062
+ tNode: o,
2063
+ setLocale: r,
1644
2064
  getLocale: n,
1645
2065
  install: (d) => {
1646
- d.config.globalProperties.$t = a, d.config.globalProperties.$tNode = u;
2066
+ d.config.globalProperties.$t = s, d.config.globalProperties.$tNode = o;
1647
2067
  }
1648
- }, X;
1649
- }, gi = (e, t) => e ? e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g, (i, n) => O(t, n)) : null, wi = (e, t) => {
2068
+ }, Ae;
2069
+ }, Yi = (e, t) => e ? e.replace(/{{ ?([a-zA-Z_.]+) ?}}/g, (r, n) => D(t, n)) : null, es = (e, t) => {
1650
2070
  if (!e)
1651
2071
  return null;
1652
- const i = e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter((n) => n !== "").map((n) => {
1653
- const r = n.startsWith("{%") && n.endsWith("%}") ? "slot" : n.startsWith("{{") && n.endsWith("}}") ? "variable" : "text";
1654
- if (r === "text")
1655
- return () => re.text(n);
2072
+ const r = e.split(/(\{[{%]+[^{}]*[%}]+})/g).filter((n) => n !== "").map((n) => {
2073
+ const i = n.startsWith("{%") && n.endsWith("%}") ? "slot" : n.startsWith("{{") && n.endsWith("}}") ? "variable" : "text";
2074
+ if (i === "text")
2075
+ return () => Fe.text(n);
1656
2076
  n = n.replace(/[{}%]/g, "").trim();
1657
- const a = n.match(/^[a-zA-Z_.]+/)[0];
1658
- n = n.replace(a, "").trim();
1659
- const 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);
2077
+ const s = n.match(/^[a-zA-Z_.]+/)[0];
2078
+ n = n.replace(s, "").trim();
2079
+ const o = {};
2080
+ return n !== "" && ([...n.matchAll(/([a-zA-Z_.]+)(=([a-zA-Z_.]+))?/g)].reduce((u, a) => (a[3] === void 0 ? Q(u, a[1], D(t, a[1])) : Q(u, a[1], D(t, a[3])), u), o), [...n.matchAll(/([a-zA-Z_.]+)="([^"]+)"/g)].reduce((u, a) => {
2081
+ let p = a[2];
2082
+ return new RegExp(/^[0-9]*$/).exec(a[2]) ? p = parseInt(a[2]) : new RegExp(/^(true|false)$/).exec(a[2]) && (p = a[2] === "true"), u[a[1]] = p, u;
2083
+ }, o)), (c) => Fe[i](s, t, c, o);
1664
2084
  });
1665
- return { setup: (n, { slots: r }) => () => i.map((a) => a(r)) };
1666
- }, re = {
1667
- slot: (e, t, i, n) => Q("span", { class: "node node--slot" }, i[e.trim()](n)),
1668
- variable: (e, t) => Q("span", { class: "node node--variable" }, O(t, e.trim())),
1669
- text: (e) => Q("span", { class: "node node--text" }, e)
2085
+ return { setup: (n, { slots: i }) => () => r.map((s) => s(i)) };
2086
+ }, Fe = {
2087
+ slot: (e, t, r, n) => fe("span", { class: "node node--slot" }, r[e.trim()](n)),
2088
+ variable: (e, t) => fe("span", { class: "node node--variable" }, D(t, e.trim())),
2089
+ text: (e) => fe("span", { class: "node node--text" }, e)
1670
2090
  };
1671
- function jr(e) {
1672
- const { t } = yi(), i = {
2091
+ function Eo(e) {
2092
+ const { t } = Xi(), r = {
1673
2093
  justNow: t("timeAgo.just-now"),
1674
2094
  past: (n) => n.match(/\d/) ? t("timeAgo.ago", [n]) : n,
1675
2095
  future: (n) => n.match(/\d/) ? t("timeAgo.in", [n]) : n,
1676
- month: (n, r) => n === 1 ? t(r ? "timeAgo.last-month" : "timeAgo.next-month") : `${n} ${t("timeAgo.month", n)}`,
1677
- year: (n, r) => n === 1 ? t(r ? "timeAgo.last-year" : "timeAgo.next-year") : `${n} ${t("timeAgo.year", n)}`,
1678
- day: (n, r) => n === 1 ? t(r ? "timeAgo.yesterday" : "timeAgo.tomorrow") : `${n} ${t("timeAgo.day", n)}`,
1679
- week: (n, r) => n === 1 ? t(r ? "timeAgo.last-week" : "timeAgo.next-week") : `${n} ${t("timeAgo.week", n)}`,
2096
+ month: (n, i) => n === 1 ? t(i ? "timeAgo.last-month" : "timeAgo.next-month") : `${n} ${t("timeAgo.month", n)}`,
2097
+ year: (n, i) => n === 1 ? t(i ? "timeAgo.last-year" : "timeAgo.next-year") : `${n} ${t("timeAgo.year", n)}`,
2098
+ day: (n, i) => n === 1 ? t(i ? "timeAgo.yesterday" : "timeAgo.tomorrow") : `${n} ${t("timeAgo.day", n)}`,
2099
+ week: (n, i) => n === 1 ? t(i ? "timeAgo.last-week" : "timeAgo.next-week") : `${n} ${t("timeAgo.week", n)}`,
1680
2100
  hour: (n) => `${n} ${t("timeAgo.hour", n)}`,
1681
2101
  minute: (n) => `${n} ${t("timeAgo.minute", n)}`,
1682
2102
  second: (n) => `${n} ${t("timeAgo.second", n)}`,
1683
2103
  invalid: ""
1684
2104
  };
1685
- return He(e, {
2105
+ return Ft(e, {
1686
2106
  fullDateFormatter: (n) => n.toLocaleDateString(),
1687
- messages: i
2107
+ messages: r
1688
2108
  });
1689
2109
  }
1690
- function bi() {
2110
+ function ts() {
1691
2111
  let e = null;
1692
2112
  function t() {
1693
2113
  return e;
1694
2114
  }
1695
- function i() {
2115
+ function r() {
1696
2116
  return e.controller;
1697
2117
  }
1698
2118
  function n() {
1699
2119
  return "use" + e.controller.charAt(0).toUpperCase() + e.controller.slice(1) + "QSController";
1700
2120
  }
1701
- function r() {
2121
+ function i() {
1702
2122
  return e.action;
1703
2123
  }
1704
- function a() {
2124
+ function s() {
1705
2125
  return e.arguments;
1706
2126
  }
1707
- function u() {
2127
+ function o() {
1708
2128
  return !!(e && e.controller && e.action);
1709
2129
  }
1710
- function m() {
1711
- window.location.search.length !== 0 && (e = window.location.search.substring(1).split("&").reduce((d, s) => {
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;
2130
+ function c() {
2131
+ window.location.search.length !== 0 && (e = window.location.search.substring(1).split("&").reduce((d, u) => {
2132
+ const a = u.split("=");
2133
+ return a[0] === "controller" || a[0] === "action" ? d[a[0]] = decodeURIComponent(a[1]) : d.arguments[a[0]] = decodeURIComponent(a[1]), d;
1714
2134
  }, { controller: null, action: null, arguments: {} }));
1715
2135
  }
1716
- return m(), {
2136
+ return c(), {
1717
2137
  getParams: t,
1718
- getController: i,
2138
+ getController: r,
1719
2139
  getControllerComposableName: n,
1720
- getAction: r,
1721
- getArguments: a,
1722
- hasAction: u
2140
+ getAction: i,
2141
+ getArguments: s,
2142
+ hasAction: o
1723
2143
  };
1724
2144
  }
1725
- function vi() {
1726
- async function e({ domain: n, event: r, ...a }) {
1727
- const u = "useAnalytics" + n.charAt(0).toUpperCase() + n.slice(1);
1728
- if (!t(u))
2145
+ function ns() {
2146
+ async function e({ domain: n, event: i, ...s }) {
2147
+ const o = "useAnalytics" + n.charAt(0).toUpperCase() + n.slice(1);
2148
+ if (!t(o))
1729
2149
  throw new Error(`Domain ${n} is not defined`);
1730
- const m = ie[u]();
1731
- if (!i(m, r))
1732
- throw new Error(`Event ${r} is not defined in domain ${n}`);
1733
- return m[r](a);
2150
+ const c = Be[o]();
2151
+ if (!r(c, i))
2152
+ throw new Error(`Event ${i} is not defined in domain ${n}`);
2153
+ return c[i](s);
1734
2154
  }
1735
2155
  function t(n) {
1736
- return !!ie[n];
2156
+ return !!Be[n];
1737
2157
  }
1738
- function i(n, r) {
1739
- return !!n[r];
2158
+ function r(n, i) {
2159
+ return !!n[i];
1740
2160
  }
1741
2161
  return {
1742
2162
  call: e
1743
2163
  };
1744
2164
  }
1745
- const se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2165
+ const Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1746
2166
  __proto__: null,
1747
- useAnalyticsQSController: vi
2167
+ useAnalyticsQSController: ns
1748
2168
  }, Symbol.toStringTag, { value: "Module" }));
1749
- function Ai(e) {
2169
+ function rs(e) {
1750
2170
  if (!e.hasAction())
1751
2171
  throw new Error("No action found in router");
1752
2172
  function t() {
1753
- if (!i())
2173
+ if (!r())
1754
2174
  throw new Error(`Controller ${e.getController()} not found`);
1755
- const r = se[e.getControllerComposableName()]();
1756
- if (!n(r))
2175
+ const i = Ue[e.getControllerComposableName()]();
2176
+ if (!n(i))
1757
2177
  throw new Error(`Action ${e.getAction()} not found in controller ${e.getController()}`);
1758
- return r[e.getAction()](e.getArguments());
2178
+ return i[e.getAction()](e.getArguments());
1759
2179
  }
1760
- function i() {
1761
- return e.getControllerComposableName() in se;
2180
+ function r() {
2181
+ return e.getControllerComposableName() in Ue;
1762
2182
  }
1763
- function n(r) {
1764
- return e.getAction() in r;
2183
+ function n(i) {
2184
+ return e.getAction() in i;
1765
2185
  }
1766
2186
  return {
1767
2187
  dispatch: t
1768
2188
  };
1769
2189
  }
1770
- function Br() {
2190
+ function Ao() {
1771
2191
  let e = !1;
1772
- function t(r, a, u) {
1773
- n(), u();
2192
+ function t(i, s, o) {
2193
+ n(), o();
1774
2194
  }
1775
- function i(r, a, u) {
2195
+ function r(i, s, o) {
1776
2196
  if (!e)
1777
- return e = !0, t(r, a, u);
1778
- u();
2197
+ return e = !0, t(i, s, o);
2198
+ o();
1779
2199
  }
1780
2200
  function n() {
1781
- const r = bi();
1782
- if (!r.hasAction())
2201
+ const i = ts();
2202
+ if (!i.hasAction())
1783
2203
  return;
1784
- Ai(r).dispatch();
2204
+ rs(i).dispatch();
1785
2205
  }
1786
2206
  return {
1787
2207
  vueRouterBeforeEach: t,
1788
- vueRouterBeforeFirst: i,
2208
+ vueRouterBeforeFirst: r,
1789
2209
  handle: n
1790
2210
  };
1791
2211
  }
1792
- const Pi = (e, t, i) => {
2212
+ const is = (e, t, r) => {
1793
2213
  const n = {};
1794
- for (const r of e)
1795
- t.query[r] !== void 0 && (n[r] = t.query[r]);
2214
+ for (const i of e)
2215
+ t.query[i] !== void 0 && (n[i] = t.query[i]);
1796
2216
  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);
2217
+ const i = JSON.parse(JSON.stringify(t));
2218
+ for (const s in n)
2219
+ delete i.query[s];
2220
+ r.replace(i);
1801
2221
  }
1802
2222
  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) => {
2223
+ }, Po = (e, t, r) => is([e], t, r)[e], Io = () => ({ getAssetUrl: (t) => `${j.getBaseAssetsUrl()}${t}` }), E = () => j.getMainAppHost(), ss = () => `${E()}/rh/establishments`, os = (e) => `${E()}/rh/establishment/${e}`, as = (e) => {
1804
2224
  var t;
1805
2225
  return typeof e == "string" ? e : typeof e == "object" && ((t = e == null ? void 0 : e.urls) != null && t.display) ? e.urls.display : 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) => {
1807
- const i = v().replace("://", `://${e}.`);
1808
- return t ? `${i}?_version=${t}` : `${i}`;
1809
- }, _i = (e) => `${v()}/rh/establishment/${e}/stats`, ji = (e) => `${v()}/rh/establishment/${e}/backoffice`, Bi = () => `${v()}/rh/settings/general`;
1810
- function Ur() {
2226
+ }, cs = () => `${E()}/rh/dashboard`, us = (e) => `${E()}/candidate-invite/establishment/${e}`, ls = (e, t = !1) => t ? `${E()}/cvbank/${e}` : `${E()}/rh/establishment/${e}/cvtheque`, ds = (e, t) => `${E()}/user-profile/establishment/${e}/user/${t}`, fs = (e) => `${E()}/rh/establishment/${e}/recruitment`, ps = (e, t) => `${E()}/rh/establishment/${e}/recruitment/${t}`, ms = (e, t) => `${E()}/rh/establishment/${e}/recruitment/${t}/kanban`, hs = (e) => `${E()}/rh/establishment/${e}/career-configuration`, ys = (e, t = null) => t ? `${E()}/career-website/${e}/${t}` : `${E()}/career-website/${e}`, gs = (e, t) => `${E()}/career-website-preview/${e}/${t}`, ws = (e, t = null) => {
2227
+ const r = E().replace("://", `://${e}.`);
2228
+ return t ? `${r}?_version=${t}` : `${r}`;
2229
+ }, bs = (e) => `${E()}/rh/establishment/${e}/stats`, vs = (e) => `${E()}/rh/establishment/${e}/backoffice`, Es = () => `${E()}/rh/settings/general`;
2230
+ function Ro() {
1811
2231
  return {
1812
- root: v,
1813
- establishments: ki,
1814
- establishment: Ri,
1815
- img: Ei,
1816
- dashboard: Ii,
1817
- candidateInvite: Ci,
1818
- cvtheque: Si,
1819
- userProfile: Oi,
1820
- recruitments: $i,
1821
- recruitment: Ti,
1822
- recruitmentKanban: Li,
1823
- career: Ni,
1824
- careerConfig: Mi,
1825
- careerPreview: Di,
1826
- careerWebsite: xi,
1827
- statistics: _i,
1828
- backoffice: ji,
1829
- userSettings: Bi
2232
+ root: E,
2233
+ establishments: ss,
2234
+ establishment: os,
2235
+ img: as,
2236
+ dashboard: cs,
2237
+ candidateInvite: us,
2238
+ cvtheque: ls,
2239
+ userProfile: ds,
2240
+ recruitments: fs,
2241
+ recruitment: ps,
2242
+ recruitmentKanban: ms,
2243
+ career: hs,
2244
+ careerConfig: ys,
2245
+ careerPreview: gs,
2246
+ careerWebsite: ws,
2247
+ statistics: bs,
2248
+ backoffice: vs,
2249
+ userSettings: Es
1830
2250
  };
1831
2251
  }
1832
- const oe = /* @__PURE__ */ new Set();
1833
- let M, Y = {
2252
+ const He = /* @__PURE__ */ new Set();
2253
+ let H, Pe = {
1834
2254
  ignore: (e) => e.startsWith("Ui")
1835
2255
  };
1836
- const K = (e) => {
2256
+ const he = (e) => {
1837
2257
  if (e != null && e.classList) {
1838
2258
  e._cssChecked = !0;
1839
2259
  for (const t of e.classList)
1840
- M.has(t) || oe.has(t) || Y.ignore(t) || (oe.add(t), A.error(`Undefined CSS class: ${t}`));
2260
+ H.has(t) || He.has(t) || Pe.ignore(t) || (He.add(t), A.error(`Undefined CSS class: ${t}`));
1841
2261
  }
1842
- }, Ae = (e) => {
2262
+ }, bt = (e) => {
1843
2263
  var t;
1844
- for (const i of e)
1845
- if (i != null && i.cssRules && (i == null ? void 0 : i.cssRules.length) > 0)
1846
- Ae(i.cssRules);
1847
- else if (i.selectorText) {
1848
- const n = (t = i.selectorText) == null ? void 0 : t.match(/\.[\w-]+/g);
2264
+ for (const r of e)
2265
+ if (r != null && r.cssRules && (r == null ? void 0 : r.cssRules.length) > 0)
2266
+ bt(r.cssRules);
2267
+ else if (r.selectorText) {
2268
+ const n = (t = r.selectorText) == null ? void 0 : t.match(/\.[\w-]+/g);
1849
2269
  if (n)
1850
- for (const r of n)
1851
- M.add(r.substr(1));
2270
+ for (const i of n)
2271
+ H.add(i.substr(1));
1852
2272
  }
1853
- }, Fr = (e = {}) => {
1854
- if (M)
1855
- return M;
1856
- M = /* @__PURE__ */ new Set(), Y = { ...Y, ...e }, Ae(document.styleSheets), new MutationObserver((i) => {
1857
- for (const n of i)
2273
+ }, So = (e = {}) => {
2274
+ if (H)
2275
+ return H;
2276
+ H = /* @__PURE__ */ new Set(), Pe = { ...Pe, ...e }, bt(document.styleSheets), new MutationObserver((r) => {
2277
+ for (const n of r)
1858
2278
  if (n.type === "childList" && (n != null && n.addedNodes)) {
1859
- for (const r of n.addedNodes)
1860
- if (!(r.nodeType === 3 || r.nodeType === 8)) {
1861
- K(r);
1862
- for (const a of r.querySelectorAll("*"))
1863
- K(a);
2279
+ for (const i of n.addedNodes)
2280
+ if (!(i.nodeType === 3 || i.nodeType === 8)) {
2281
+ he(i);
2282
+ for (const s of i.querySelectorAll("*"))
2283
+ he(s);
1864
2284
  }
1865
2285
  } else
1866
- (n == null ? void 0 : n.attributeName) === "class" && K(n.target);
2286
+ (n == null ? void 0 : n.attributeName) === "class" && he(n.target);
1867
2287
  }).observe(document, {
1868
2288
  attributes: !0,
1869
2289
  childList: !0,
1870
2290
  subtree: !0
1871
2291
  });
1872
- }, Hr = "0.2.76";
2292
+ }, Oo = "0.2.77";
1873
2293
  export {
1874
- Dr as Analytics,
1875
- J as BaseLogger,
1876
- xr as Gmap,
1877
- $ as SDKConfig,
2294
+ wo as Analytics,
2295
+ ve as BaseLogger,
2296
+ bo as Gmap,
2297
+ j as SDKConfig,
1878
2298
  A as SDKLogger,
1879
- Hr as VERSION,
1880
- lt as _clone,
1881
- O as _get,
1882
- or as _map,
1883
- ce as _merge,
1884
- ue as _pathList,
1885
- D as _set,
1886
- dt as _setMany,
1887
- W as buildObjectValidation,
1888
- zr as consumeQueryParam,
1889
- Pi as consumeQueryParams,
1890
- _r as createI18n,
1891
- cr as ensureScheme,
1892
- rr as hasOrIsInClass,
1893
- sr as inBrowser,
1894
- T as inNode,
1895
- U as isArray,
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,
1903
- at as isNull,
1904
- ut as isNullOrUndefined,
1905
- Ki as isNumber,
1906
- F as isObject,
1907
- nr as isObjectOf,
1908
- ir as isObjectValid,
1909
- Wi as isString,
1910
- Yi as isTruthy,
1911
- ct as isUndefined,
1912
- qi as sanitizeObject,
1913
- ar as secureScheme,
1914
- ot as transpileAsserts,
1915
- ur as useActivityRepository,
1916
- ii as useAnalyticsHublerApplication,
1917
- Mr as useAnalyticsIdentify,
1918
- ri as useAnalyticsProfile,
1919
- si as useAnalyticsRecruitment,
1920
- oi as useAnalyticsVisualBuilder,
1921
- Vr as useAssetUrls,
1922
- V as useAuthentication,
1923
- ni as useAuthorization,
1924
- Nr as useAuthorizationStore,
1925
- Lr as useCanAccessEstablishmentMiddleware,
1926
- dr as useCandidateRepository,
1927
- lr as useCommentRepository,
1928
- mr as useContractTypeRepository,
1929
- pt as useCookieStorage,
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,
1939
- ye as useEstablishmentRepository,
1940
- Ar as useFeatureFlagRepository,
1941
- yi as useI18n,
1942
- Pr as useJobRepository,
1943
- kr as useLabelRepository,
1944
- jr as useLocaleTimeAgo,
1945
- st as useObjectValidation,
1946
- Rr as useOfferRepository,
2299
+ Oo as VERSION,
2300
+ ln as _clone,
2301
+ D as _get,
2302
+ Fs as _map,
2303
+ qe as _merge,
2304
+ Ge as _pathList,
2305
+ Q as _set,
2306
+ un as _setMany,
2307
+ ye as buildObjectValidation,
2308
+ Po as consumeQueryParam,
2309
+ is as consumeQueryParams,
2310
+ vo as createI18n,
2311
+ Hs as ensureScheme,
2312
+ zs as hasOrIsInClass,
2313
+ Bs as inBrowser,
2314
+ z as inNode,
2315
+ oe as isArray,
2316
+ js as isArrayOf,
2317
+ _s as isBoolean,
2318
+ Ts as isDate,
2319
+ Ds as isFalsy,
2320
+ Ns as isFunction,
2321
+ Os as isMobile,
2322
+ Ms as isNotNullOrUndefined,
2323
+ on as isNull,
2324
+ cn as isNullOrUndefined,
2325
+ ks as isNumber,
2326
+ ae as isObject,
2327
+ xs as isObjectOf,
2328
+ Vs as isObjectValid,
2329
+ $s as isString,
2330
+ Ls as isTruthy,
2331
+ an as isUndefined,
2332
+ Cs as sanitizeObject,
2333
+ Us as secureScheme,
2334
+ sn as transpileAsserts,
2335
+ Qs as useActivityRepository,
2336
+ Vi as useAnalyticsHublerApplication,
2337
+ go as useAnalyticsIdentify,
2338
+ zi as useAnalyticsProfile,
2339
+ Bi as useAnalyticsRecruitment,
2340
+ Fi as useAnalyticsVisualBuilder,
2341
+ Io as useAssetUrls,
2342
+ We as useAuthentication,
2343
+ ht as useAuthorization,
2344
+ yo as useAuthorizationStore,
2345
+ ho as useCanAccessEstablishmentMiddleware,
2346
+ qs as useCandidateRepository,
2347
+ Gs as useCommentRepository,
2348
+ Ks as useContractTypeRepository,
2349
+ pn as useCookieStorage,
2350
+ Ws as useCvbankRepository,
2351
+ Js as useCvthequeRepository,
2352
+ Zs as useDiplomaRepository,
2353
+ Xs as useDocumentRepository,
2354
+ Ro as useDomainUrls,
2355
+ Ys as useEmailHistoryRepository,
2356
+ eo as useEmailRepository,
2357
+ to as useEmailTemplateRepository,
2358
+ no as useEstablishmentCareerRepository,
2359
+ ii as useEstablishmentRepository,
2360
+ ro as useFeatureFlagRepository,
2361
+ Xi as useI18n,
2362
+ io as useJobRepository,
2363
+ so as useLabelRepository,
2364
+ Eo as useLocaleTimeAgo,
2365
+ rn as useObjectValidation,
2366
+ oo as useOfferRepository,
1947
2367
  g as usePrivateRequest,
1948
- Br as useQSAction,
1949
- Er as useRecruiterRepository,
1950
- Ir as useRecruitmentRepository,
1951
- Cr as useRegisterRepository,
1952
- Sr as useRegistrationRepository,
1953
- k as useRequest,
1954
- Or as useSpecialityRepository,
1955
- $r as useTagRepository,
1956
- Tr as useTalentRepository,
1957
- Fr as useUndefinedCssClasses,
1958
- ge as useUserRepository
2368
+ Ao as useQSAction,
2369
+ ao as useRecruiterRepository,
2370
+ co as useRecruitmentRepository,
2371
+ uo as useRegisterRepository,
2372
+ lo as useRegistrationRepository,
2373
+ I as useRequest,
2374
+ fo as useSpecialityRepository,
2375
+ po as useTagRepository,
2376
+ mo as useTalentRepository,
2377
+ So as useUndefinedCssClasses,
2378
+ xi as useUserRepository
1959
2379
  };