@tracktor/shared-module 2.30.1 → 2.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,26 +1,26 @@
1
- import ie from "axios";
2
- import we, { useMemo as te, createContext as ge, useContext as C, useEffect as L, useState as D, Suspense as Ee, useRef as X, useCallback as P } from "react";
3
- const Ke = (e, t) => {
4
- const n = ie.CancelToken.source(), s = ie({
1
+ import le from "axios";
2
+ import _e, { useMemo as se, createContext as ve, useContext as k, useEffect as x, useState as F, Suspense as Re, useRef as te, useCallback as P } from "react";
3
+ const Xe = (e, t) => {
4
+ const r = le.CancelToken.source(), o = le({
5
5
  ...e,
6
6
  ...t,
7
- cancelToken: n.token
8
- }).then(({ data: o }) => o);
9
- return s.cancel = () => {
10
- n.cancel("Query was cancelled");
11
- }, s;
12
- }, ve = 3e4, ce = 1e3, Z = (e) => Array.isArray(e) ? e.map(Z) : e !== null && typeof e == "object" ? Object.fromEntries(
13
- Object.entries(e).map(([t, n]) => [
14
- t.replace(/_([a-z])/g, (s, o) => o.toUpperCase()),
15
- Z(n)
7
+ cancelToken: r.token
8
+ }).then(({ data: s }) => s);
9
+ return o.cancel = () => {
10
+ r.cancel("Query was cancelled");
11
+ }, o;
12
+ }, be = 3e4, ue = 1e3, re = (e) => Array.isArray(e) ? e.map(re) : e !== null && typeof e == "object" ? Object.fromEntries(
13
+ Object.entries(e).map(([t, r]) => [
14
+ t.replace(/_([a-z])/g, (o, s) => s.toUpperCase()),
15
+ re(r)
16
16
  ])
17
- ) : e, ee = (e) => Array.isArray(e) ? e.map(ee) : e !== null && typeof e == "object" ? Object.fromEntries(
18
- Object.entries(e).map(([t, n]) => [
19
- t.replace(/[A-Z]/g, (s) => `_${s.toLowerCase()}`),
20
- ee(n)
17
+ ) : e, ne = (e) => Array.isArray(e) ? e.map(ne) : e !== null && typeof e == "object" ? Object.fromEntries(
18
+ Object.entries(e).map(([t, r]) => [
19
+ t.replace(/[A-Z]/g, (o) => `_${o.toLowerCase()}`),
20
+ ne(r)
21
21
  ])
22
22
  ) : e;
23
- class Re {
23
+ class Se {
24
24
  url;
25
25
  getToken;
26
26
  onEvent;
@@ -50,12 +50,12 @@ class Re {
50
50
  if (!t)
51
51
  return;
52
52
  this.intentionalClose = !1;
53
- const n = this.url.includes("?") ? "&" : "?", s = `${this.url}${n}token=${t}`;
54
- this.ws = new WebSocket(s), this.ws.onopen = () => {
53
+ const r = this.url.includes("?") ? "&" : "?", o = `${this.url}${r}token=${t}`;
54
+ this.ws = new WebSocket(o), this.ws.onopen = () => {
55
55
  this._connected = !0, this.reconnectAttempt = 0, this.onConnectionChange?.(!0), this.rejoinThreads(), this.flushPendingMessages();
56
- }, this.ws.onmessage = (o) => {
56
+ }, this.ws.onmessage = (s) => {
57
57
  try {
58
- const a = JSON.parse(o.data), c = Z(a);
58
+ const a = JSON.parse(s.data), c = re(a);
59
59
  c.type === "ready" && (this._ready = !0), this.onEvent?.(c);
60
60
  } catch {
61
61
  }
@@ -73,29 +73,29 @@ class Re {
73
73
  leaveThread(t) {
74
74
  this.joinedThreads.delete(t), this.send({ threadId: t, type: "leave_thread" });
75
75
  }
76
- sendMessage(t, n) {
77
- if (n.length > ce)
78
- throw new Error(`Message body exceeds maximum length of ${ce} characters`);
79
- this.send({ body: n, threadId: t, type: "send_message" });
76
+ sendMessage(t, r) {
77
+ if (r.length > ue)
78
+ throw new Error(`Message body exceeds maximum length of ${ue} characters`);
79
+ this.send({ body: r, threadId: t, type: "send_message" });
80
80
  }
81
81
  markRead(t) {
82
82
  this.send({ threadId: t, type: "mark_read" });
83
83
  }
84
- listThreads(t, n) {
85
- this.send({ limit: t, offset: n, type: "list_threads" });
84
+ listThreads(t, r) {
85
+ this.send({ limit: t, offset: r, type: "list_threads" });
86
86
  }
87
87
  send(t) {
88
88
  if (!this.ws || this.ws.readyState !== WebSocket.OPEN) {
89
89
  this.pendingMessages.push(t);
90
90
  return;
91
91
  }
92
- this.ws.send(JSON.stringify(ee(t)));
92
+ this.ws.send(JSON.stringify(ne(t)));
93
93
  }
94
94
  flushPendingMessages() {
95
95
  const t = [...this.pendingMessages];
96
96
  this.pendingMessages = [];
97
- for (const n of t)
98
- this.send(n);
97
+ for (const r of t)
98
+ this.send(r);
99
99
  }
100
100
  rejoinThreads() {
101
101
  for (const t of this.joinedThreads)
@@ -103,7 +103,7 @@ class Re {
103
103
  }
104
104
  scheduleReconnect() {
105
105
  this.clearReconnectTimer();
106
- const t = Math.min(this.reconnectBaseDelay * 2 ** this.reconnectAttempt, ve);
106
+ const t = Math.min(this.reconnectBaseDelay * 2 ** this.reconnectAttempt, be);
107
107
  this.reconnectAttempt++, this.reconnectTimer = setTimeout(() => {
108
108
  this.connect();
109
109
  }, t);
@@ -112,300 +112,300 @@ class Re {
112
112
  this.reconnectTimer !== null && (clearTimeout(this.reconnectTimer), this.reconnectTimer = null);
113
113
  }
114
114
  }
115
- var V = { exports: {} }, M = {};
116
- var le;
117
- function _e() {
118
- if (le) return M;
119
- le = 1;
115
+ var G = { exports: {} }, M = {};
116
+ var de;
117
+ function Te() {
118
+ if (de) return M;
119
+ de = 1;
120
120
  var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
121
- function n(s, o, a) {
121
+ function r(o, s, a) {
122
122
  var c = null;
123
- if (a !== void 0 && (c = "" + a), o.key !== void 0 && (c = "" + o.key), "key" in o) {
123
+ if (a !== void 0 && (c = "" + a), s.key !== void 0 && (c = "" + s.key), "key" in s) {
124
124
  a = {};
125
- for (var u in o)
126
- u !== "key" && (a[u] = o[u]);
127
- } else a = o;
128
- return o = a.ref, {
125
+ for (var l in s)
126
+ l !== "key" && (a[l] = s[l]);
127
+ } else a = s;
128
+ return s = a.ref, {
129
129
  $$typeof: e,
130
- type: s,
130
+ type: o,
131
131
  key: c,
132
- ref: o !== void 0 ? o : null,
132
+ ref: s !== void 0 ? s : null,
133
133
  props: a
134
134
  };
135
135
  }
136
- return M.Fragment = t, M.jsx = n, M.jsxs = n, M;
136
+ return M.Fragment = t, M.jsx = r, M.jsxs = r, M;
137
137
  }
138
- var U = {};
139
- var ue;
140
- function be() {
141
- return ue || (ue = 1, process.env.NODE_ENV !== "production" && (function() {
142
- function e(r) {
143
- if (r == null) return null;
144
- if (typeof r == "function")
145
- return r.$$typeof === K ? null : r.displayName || r.name || null;
146
- if (typeof r == "string") return r;
147
- switch (r) {
148
- case k:
138
+ var z = {};
139
+ var fe;
140
+ function Ce() {
141
+ return fe || (fe = 1, process.env.NODE_ENV !== "production" && (function() {
142
+ function e(n) {
143
+ if (n == null) return null;
144
+ if (typeof n == "function")
145
+ return n.$$typeof === E ? null : n.displayName || n.name || null;
146
+ if (typeof n == "string") return n;
147
+ switch (n) {
148
+ case _:
149
149
  return "Fragment";
150
150
  case d:
151
151
  return "Profiler";
152
- case g:
152
+ case h:
153
153
  return "StrictMode";
154
- case O:
154
+ case I:
155
155
  return "Suspense";
156
- case J:
156
+ case B:
157
157
  return "SuspenseList";
158
- case x:
158
+ case q:
159
159
  return "Activity";
160
160
  }
161
- if (typeof r == "object")
162
- switch (typeof r.tag == "number" && console.error(
161
+ if (typeof n == "object")
162
+ switch (typeof n.tag == "number" && console.error(
163
163
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
164
- ), r.$$typeof) {
165
- case S:
164
+ ), n.$$typeof) {
165
+ case C:
166
166
  return "Portal";
167
- case R:
168
- return r.displayName || "Context";
169
- case T:
170
- return (r._context.displayName || "Context") + ".Consumer";
171
- case A:
172
- var p = r.render;
173
- return r = r.displayName, r || (r = p.displayName || p.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
174
- case G:
175
- return p = r.displayName || null, p !== null ? p : e(r.type) || "Memo";
176
167
  case w:
177
- p = r._payload, r = r._init;
168
+ return n.displayName || "Context";
169
+ case S:
170
+ return (n._context.displayName || "Context") + ".Consumer";
171
+ case T:
172
+ var p = n.render;
173
+ return n = n.displayName, n || (n = p.displayName || p.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
174
+ case K:
175
+ return p = n.displayName || null, p !== null ? p : e(n.type) || "Memo";
176
+ case Y:
177
+ p = n._payload, n = n._init;
178
178
  try {
179
- return e(r(p));
179
+ return e(n(p));
180
180
  } catch {
181
181
  }
182
182
  }
183
183
  return null;
184
184
  }
185
- function t(r) {
186
- return "" + r;
185
+ function t(n) {
186
+ return "" + n;
187
187
  }
188
- function n(r) {
188
+ function r(n) {
189
189
  try {
190
- t(r);
190
+ t(n);
191
191
  var p = !1;
192
192
  } catch {
193
193
  p = !0;
194
194
  }
195
195
  if (p) {
196
196
  p = console;
197
- var E = p.error, _ = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
198
- return E.call(
197
+ var v = p.error, R = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
198
+ return v.call(
199
199
  p,
200
200
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
201
- _
202
- ), t(r);
201
+ R
202
+ ), t(n);
203
203
  }
204
204
  }
205
- function s(r) {
206
- if (r === k) return "<>";
207
- if (typeof r == "object" && r !== null && r.$$typeof === w)
205
+ function o(n) {
206
+ if (n === _) return "<>";
207
+ if (typeof n == "object" && n !== null && n.$$typeof === Y)
208
208
  return "<...>";
209
209
  try {
210
- var p = e(r);
210
+ var p = e(n);
211
211
  return p ? "<" + p + ">" : "<...>";
212
212
  } catch {
213
213
  return "<...>";
214
214
  }
215
215
  }
216
- function o() {
217
- var r = Y.A;
218
- return r === null ? null : r.getOwner();
216
+ function s() {
217
+ var n = A.A;
218
+ return n === null ? null : n.getOwner();
219
219
  }
220
220
  function a() {
221
221
  return Error("react-stack-top-frame");
222
222
  }
223
- function c(r) {
224
- if (N.call(r, "key")) {
225
- var p = Object.getOwnPropertyDescriptor(r, "key").get;
223
+ function c(n) {
224
+ if (Q.call(n, "key")) {
225
+ var p = Object.getOwnPropertyDescriptor(n, "key").get;
226
226
  if (p && p.isReactWarning) return !1;
227
227
  }
228
- return r.key !== void 0;
228
+ return n.key !== void 0;
229
229
  }
230
- function u(r, p) {
231
- function E() {
232
- re || (re = !0, console.error(
230
+ function l(n, p) {
231
+ function v() {
232
+ L || (L = !0, console.error(
233
233
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
234
234
  p
235
235
  ));
236
236
  }
237
- E.isReactWarning = !0, Object.defineProperty(r, "key", {
238
- get: E,
237
+ v.isReactWarning = !0, Object.defineProperty(n, "key", {
238
+ get: v,
239
239
  configurable: !0
240
240
  });
241
241
  }
242
- function l() {
243
- var r = e(this.type);
244
- return ne[r] || (ne[r] = !0, console.error(
242
+ function u() {
243
+ var n = e(this.type);
244
+ return $[n] || ($[n] = !0, console.error(
245
245
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
246
- )), r = this.props.ref, r !== void 0 ? r : null;
246
+ )), n = this.props.ref, n !== void 0 ? n : null;
247
247
  }
248
- function f(r, p, E, _, W, B) {
249
- var b = E.ref;
250
- return r = {
251
- $$typeof: v,
252
- type: r,
248
+ function f(n, p, v, R, J, Z) {
249
+ var b = v.ref;
250
+ return n = {
251
+ $$typeof: j,
252
+ type: n,
253
253
  key: p,
254
- props: E,
255
- _owner: _
256
- }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(r, "ref", {
254
+ props: v,
255
+ _owner: R
256
+ }, (b !== void 0 ? b : null) !== null ? Object.defineProperty(n, "ref", {
257
257
  enumerable: !1,
258
- get: l
259
- }) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
258
+ get: u
259
+ }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
260
260
  configurable: !1,
261
261
  enumerable: !1,
262
262
  writable: !0,
263
263
  value: 0
264
- }), Object.defineProperty(r, "_debugInfo", {
264
+ }), Object.defineProperty(n, "_debugInfo", {
265
265
  configurable: !1,
266
266
  enumerable: !1,
267
267
  writable: !0,
268
268
  value: null
269
- }), Object.defineProperty(r, "_debugStack", {
269
+ }), Object.defineProperty(n, "_debugStack", {
270
270
  configurable: !1,
271
271
  enumerable: !1,
272
272
  writable: !0,
273
- value: W
274
- }), Object.defineProperty(r, "_debugTask", {
273
+ value: J
274
+ }), Object.defineProperty(n, "_debugTask", {
275
275
  configurable: !1,
276
276
  enumerable: !1,
277
277
  writable: !0,
278
- value: B
279
- }), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
278
+ value: Z
279
+ }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
280
280
  }
281
- function i(r, p, E, _, W, B) {
281
+ function i(n, p, v, R, J, Z) {
282
282
  var b = p.children;
283
283
  if (b !== void 0)
284
- if (_)
285
- if ($(b)) {
286
- for (_ = 0; _ < b.length; _++)
287
- h(b[_]);
284
+ if (R)
285
+ if (X(b)) {
286
+ for (R = 0; R < b.length; R++)
287
+ g(b[R]);
288
288
  Object.freeze && Object.freeze(b);
289
289
  } else
290
290
  console.error(
291
291
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
292
292
  );
293
- else h(b);
294
- if (N.call(p, "key")) {
295
- b = e(r);
296
- var F = Object.keys(p).filter(function(ye) {
297
- return ye !== "key";
293
+ else g(b);
294
+ if (Q.call(p, "key")) {
295
+ b = e(n);
296
+ var D = Object.keys(p).filter(function(Ee) {
297
+ return Ee !== "key";
298
298
  });
299
- _ = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", ae[b + _] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", console.error(
299
+ R = 0 < D.length ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}", ce[b + R] || (D = 0 < D.length ? "{" + D.join(": ..., ") + ": ...}" : "{}", console.error(
300
300
  `A props object containing a "key" prop is being spread into JSX:
301
301
  let props = %s;
302
302
  <%s {...props} />
303
303
  React keys must be passed directly to JSX without using spread:
304
304
  let props = %s;
305
305
  <%s key={someKey} {...props} />`,
306
- _,
306
+ R,
307
307
  b,
308
- F,
308
+ D,
309
309
  b
310
- ), ae[b + _] = !0);
310
+ ), ce[b + R] = !0);
311
311
  }
312
- if (b = null, E !== void 0 && (n(E), b = "" + E), c(p) && (n(p.key), b = "" + p.key), "key" in p) {
313
- E = {};
314
- for (var H in p)
315
- H !== "key" && (E[H] = p[H]);
316
- } else E = p;
317
- return b && u(
318
- E,
319
- typeof r == "function" ? r.displayName || r.name || "Unknown" : r
312
+ if (b = null, v !== void 0 && (r(v), b = "" + v), c(p) && (r(p.key), b = "" + p.key), "key" in p) {
313
+ v = {};
314
+ for (var ee in p)
315
+ ee !== "key" && (v[ee] = p[ee]);
316
+ } else v = p;
317
+ return b && l(
318
+ v,
319
+ typeof n == "function" ? n.displayName || n.name || "Unknown" : n
320
320
  ), f(
321
- r,
321
+ n,
322
322
  b,
323
- E,
324
- o(),
325
- W,
326
- B
323
+ v,
324
+ s(),
325
+ J,
326
+ Z
327
327
  );
328
328
  }
329
- function h(r) {
330
- m(r) ? r._store && (r._store.validated = 1) : typeof r == "object" && r !== null && r.$$typeof === w && (r._payload.status === "fulfilled" ? m(r._payload.value) && r._payload.value._store && (r._payload.value._store.validated = 1) : r._store && (r._store.validated = 1));
329
+ function g(n) {
330
+ m(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === Y && (n._payload.status === "fulfilled" ? m(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
331
331
  }
332
- function m(r) {
333
- return typeof r == "object" && r !== null && r.$$typeof === v;
332
+ function m(n) {
333
+ return typeof n == "object" && n !== null && n.$$typeof === j;
334
334
  }
335
- var y = we, v = /* @__PURE__ */ Symbol.for("react.transitional.element"), S = /* @__PURE__ */ Symbol.for("react.portal"), k = /* @__PURE__ */ Symbol.for("react.fragment"), g = /* @__PURE__ */ Symbol.for("react.strict_mode"), d = /* @__PURE__ */ Symbol.for("react.profiler"), T = /* @__PURE__ */ Symbol.for("react.consumer"), R = /* @__PURE__ */ Symbol.for("react.context"), A = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), J = /* @__PURE__ */ Symbol.for("react.suspense_list"), G = /* @__PURE__ */ Symbol.for("react.memo"), w = /* @__PURE__ */ Symbol.for("react.lazy"), x = /* @__PURE__ */ Symbol.for("react.activity"), K = /* @__PURE__ */ Symbol.for("react.client.reference"), Y = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, $ = Array.isArray, q = console.createTask ? console.createTask : function() {
335
+ var y = _e, j = /* @__PURE__ */ Symbol.for("react.transitional.element"), C = /* @__PURE__ */ Symbol.for("react.portal"), _ = /* @__PURE__ */ Symbol.for("react.fragment"), h = /* @__PURE__ */ Symbol.for("react.strict_mode"), d = /* @__PURE__ */ Symbol.for("react.profiler"), S = /* @__PURE__ */ Symbol.for("react.consumer"), w = /* @__PURE__ */ Symbol.for("react.context"), T = /* @__PURE__ */ Symbol.for("react.forward_ref"), I = /* @__PURE__ */ Symbol.for("react.suspense"), B = /* @__PURE__ */ Symbol.for("react.suspense_list"), K = /* @__PURE__ */ Symbol.for("react.memo"), Y = /* @__PURE__ */ Symbol.for("react.lazy"), q = /* @__PURE__ */ Symbol.for("react.activity"), E = /* @__PURE__ */ Symbol.for("react.client.reference"), A = y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Q = Object.prototype.hasOwnProperty, X = Array.isArray, U = console.createTask ? console.createTask : function() {
336
336
  return null;
337
337
  };
338
338
  y = {
339
- react_stack_bottom_frame: function(r) {
340
- return r();
339
+ react_stack_bottom_frame: function(n) {
340
+ return n();
341
341
  }
342
342
  };
343
- var re, ne = {}, oe = y.react_stack_bottom_frame.bind(
343
+ var L, $ = {}, ae = y.react_stack_bottom_frame.bind(
344
344
  y,
345
345
  a
346
- )(), se = q(s(a)), ae = {};
347
- U.Fragment = k, U.jsx = function(r, p, E) {
348
- var _ = 1e4 > Y.recentlyCreatedOwnerStacks++;
346
+ )(), ie = U(o(a)), ce = {};
347
+ z.Fragment = _, z.jsx = function(n, p, v) {
348
+ var R = 1e4 > A.recentlyCreatedOwnerStacks++;
349
349
  return i(
350
- r,
350
+ n,
351
351
  p,
352
- E,
352
+ v,
353
353
  !1,
354
- _ ? Error("react-stack-top-frame") : oe,
355
- _ ? q(s(r)) : se
354
+ R ? Error("react-stack-top-frame") : ae,
355
+ R ? U(o(n)) : ie
356
356
  );
357
- }, U.jsxs = function(r, p, E) {
358
- var _ = 1e4 > Y.recentlyCreatedOwnerStacks++;
357
+ }, z.jsxs = function(n, p, v) {
358
+ var R = 1e4 > A.recentlyCreatedOwnerStacks++;
359
359
  return i(
360
- r,
360
+ n,
361
361
  p,
362
- E,
362
+ v,
363
363
  !0,
364
- _ ? Error("react-stack-top-frame") : oe,
365
- _ ? q(s(r)) : se
364
+ R ? Error("react-stack-top-frame") : ae,
365
+ R ? U(o(n)) : ie
366
366
  );
367
367
  };
368
- })()), U;
368
+ })()), z;
369
369
  }
370
- var de;
371
- function Te() {
372
- return de || (de = 1, process.env.NODE_ENV === "production" ? V.exports = _e() : V.exports = be()), V.exports;
370
+ var pe;
371
+ function Ae() {
372
+ return pe || (pe = 1, process.env.NODE_ENV === "production" ? G.exports = Te() : G.exports = Ce()), G.exports;
373
373
  }
374
- var I = Te();
375
- const qe = ({ IMaskMixin: e, ...t }) => {
376
- const n = te(
374
+ var N = Ae();
375
+ const Ze = ({ IMaskMixin: e, ...t }) => {
376
+ const r = se(
377
377
  // eslint-disable-next-line react/jsx-props-no-spreading
378
- () => e(({ TextField: s, ...o }) => /* @__PURE__ */ I.jsx(s, { ...o })),
378
+ () => e(({ TextField: o, ...s }) => /* @__PURE__ */ N.jsx(o, { ...s })),
379
379
  [e]
380
380
  );
381
- return /* @__PURE__ */ I.jsx(n, { ...t });
382
- }, j = ge({}), Be = ({ children: e, apiURL: t, libraries: n, localStorageKeys: s }) => {
383
- const o = te(
381
+ return /* @__PURE__ */ N.jsx(r, { ...t });
382
+ }, O = ve({}), et = ({ children: e, apiURL: t, libraries: r, localStorageKeys: o }) => {
383
+ const s = se(
384
384
  () => ({
385
385
  apiURL: t,
386
- libraries: n,
387
- localStorageKeys: s
386
+ libraries: r,
387
+ localStorageKeys: o
388
388
  }),
389
- [t, n, s]
389
+ [t, r, o]
390
390
  );
391
- return /* @__PURE__ */ I.jsx(j.Provider, { value: o, children: e });
392
- }, He = ({ data: e, ...t }) => {
393
- const { libraries: n } = C(j), s = t?.reactRouter || n?.reactRouter, o = t?.gtm || n?.gtm;
394
- if (!s)
391
+ return /* @__PURE__ */ N.jsx(O.Provider, { value: s, children: e });
392
+ }, tt = ({ data: e, ...t }) => {
393
+ const { libraries: r } = k(O), o = t?.reactRouter || r?.reactRouter, s = t?.gtm || r?.gtm;
394
+ if (!o)
395
395
  throw new Error(
396
396
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView."
397
397
  );
398
- if (!o)
398
+ if (!s)
399
399
  throw new Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
400
- const { useGoogleTagManager: a } = o, { useLocation: c, Outlet: u } = s, { pathname: l } = c(), { sendEvent: f } = a();
401
- return L(() => {
400
+ const { useGoogleTagManager: a } = s, { useLocation: c, Outlet: l } = o, { pathname: u } = c(), { sendEvent: f } = a();
401
+ return x(() => {
402
402
  f({
403
403
  event: "pageView",
404
- pathname: l,
404
+ pathname: u,
405
405
  ...e
406
406
  });
407
- }, [e, l, f]), /* @__PURE__ */ I.jsx(u, {});
408
- }, z = (() => {
407
+ }, [e, u, f]), /* @__PURE__ */ N.jsx(l, {});
408
+ }, V = (() => {
409
409
  try {
410
410
  return typeof global == "object" && global !== null && ("HermesInternal" in global || // Hermes JS engine
411
411
  "__fbBatchedBridge" in global || // RN Bridge
@@ -413,43 +413,55 @@ const qe = ({ IMaskMixin: e, ...t }) => {
413
413
  } catch {
414
414
  return !1;
415
415
  }
416
- })(), Se = "user", Xe = ({
416
+ })(), je = "user", rt = ({
417
417
  tokenTypeKey: e = "tokenType",
418
418
  tokenKey: t = "accessToken",
419
- postContentType: n = "application/json",
420
- ...s
419
+ postContentType: r = "application/json",
420
+ ...o
421
421
  }) => {
422
- const { apiURL: o = s.apiURL, libraries: a, localStorageKeys: c } = C(j), u = s?.userLocalStorageKey || c?.user || Se, l = s?.axios || a?.axios;
423
- if (!l)
422
+ const { apiURL: s = o.apiURL, libraries: a, localStorageKeys: c } = k(O), l = o?.userLocalStorageKey || c?.user || je, u = o?.axios || a?.axios;
423
+ if (!u)
424
424
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
425
- if (!l?.defaults || z)
425
+ if (!u?.defaults || V)
426
426
  return null;
427
427
  if (typeof window < "u" && window.localStorage) {
428
- const f = localStorage.getItem(u), i = f ? JSON.parse(f) : null, h = i?.[e] ? i[e] : null, m = i?.[t] ? i[t] : null, y = f ? `${h} ${m}` : null;
429
- y && (l.defaults.headers.common.Authorization = y);
428
+ const f = localStorage.getItem(l), i = f ? JSON.parse(f) : null, g = i?.[e] ? i[e] : null, m = i?.[t] ? i[t] : null, y = f ? `${g} ${m}` : null;
429
+ y && (u.defaults.headers.common.Authorization = y);
430
430
  }
431
- return l.defaults.baseURL = o, l.defaults.headers.post["Content-Type"] = n, null;
432
- }, Ze = ({ language: e, ...t }) => {
433
- const { libraries: n } = C(j), s = t?.dayjs || n?.dayjs, o = t?.plugin || n?.dayjsPlugin;
434
- if (!s)
431
+ return u.defaults.baseURL = s, u.defaults.headers.post["Content-Type"] = r, null;
432
+ }, nt = ({ language: e, ...t }) => {
433
+ const { libraries: r } = k(O), o = t?.dayjs || r?.dayjs, s = t?.plugin || r?.dayjsPlugin;
434
+ if (!o)
435
435
  throw new Error(
436
436
  "Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig."
437
437
  );
438
- return L(() => {
438
+ return x(() => {
439
439
  (async () => {
440
440
  const c = e || navigator.language?.slice(0, 2) || "en";
441
- o && o.forEach((u) => {
442
- u && s.extend(u);
443
- }), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), s.locale(c);
441
+ s && s.forEach((l) => {
442
+ l && o.extend(l);
443
+ }), await import("dayjs/locale/en"), await import("dayjs/locale/fr"), o.locale(c);
444
444
  })().then();
445
- }, [s, o, e]), null;
446
- }, et = ({ debug: e, resources: t, ...n }) => {
447
- const { libraries: s } = C(j), o = n?.i18 || s?.i18, { i18next: a, initReactI18next: c, languageDetector: u } = o || {};
448
- if (z)
445
+ }, [o, s, e]), null;
446
+ }, oe = "hubspot-messages-iframe-container", W = "hs-show", ot = ({ hubId: e }) => (x(() => {
447
+ if (!e)
448
+ return;
449
+ const t = document.createElement("style");
450
+ t.textContent = `
451
+ div#${oe} { display: none !important; }
452
+ div#${oe}.${W} { display: initial !important; }
453
+ `, document.head.appendChild(t);
454
+ const r = document.createElement("script");
455
+ return r.id = "hs-script-loader", r.src = `//js-eu1.hs-scripts.com/${e}.js`, r.async = !0, r.defer = !0, document.body.appendChild(r), () => {
456
+ t.remove(), r.remove();
457
+ };
458
+ }, [e]), null), st = ({ debug: e, resources: t, ...r }) => {
459
+ const { libraries: o } = k(O), s = r?.i18 || o?.i18, { i18next: a, initReactI18next: c, languageDetector: l } = s || {};
460
+ if (V)
449
461
  return null;
450
- if (!o)
462
+ if (!s)
451
463
  throw new Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
452
- return a?.isInitialized || (a.use(u).use(c).init({
464
+ return a?.isInitialized || (a.use(l).use(c).init({
453
465
  debug: e,
454
466
  fallbackLng: "en",
455
467
  interpolation: {
@@ -464,34 +476,34 @@ const qe = ({ IMaskMixin: e, ...t }) => {
464
476
  returnNull: !1
465
477
  }).then(() => {
466
478
  document.documentElement.lang !== a.resolvedLanguage && a.resolvedLanguage && document.documentElement.setAttribute("lang", a.resolvedLanguage);
467
- }), a.on("languageChanged", (l) => {
468
- document.documentElement.setAttribute("lang", l);
479
+ }), a.on("languageChanged", (u) => {
480
+ document.documentElement.setAttribute("lang", u);
469
481
  })), null;
470
- }, tt = ({
482
+ }, at = ({
471
483
  dsn: e,
472
484
  integrations: t,
473
- tracesSampleRate: n,
474
- replaysSessionSampleRate: s,
475
- replaysOnErrorSampleRate: o,
485
+ tracesSampleRate: r,
486
+ replaysSessionSampleRate: o,
487
+ replaysOnErrorSampleRate: s,
476
488
  tracePropagationTargets: a,
477
489
  ignoreErrors: c,
478
- debug: u,
479
- environment: l,
490
+ debug: l,
491
+ environment: u,
480
492
  release: f,
481
493
  ...i
482
494
  }) => {
483
- const { libraries: h } = C(j), m = i?.sentry || h?.sentry, y = i?.reactRouter || h?.reactRouter;
495
+ const { libraries: g } = k(O), m = i?.sentry || g?.sentry, y = i?.reactRouter || g?.reactRouter;
484
496
  if (!m)
485
497
  throw new Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
486
498
  if (!y)
487
499
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
488
500
  if (m.isInitialized())
489
501
  return null;
490
- const { createRoutesFromChildren: v, matchRoutes: S, useLocation: k, useNavigationType: g } = y;
491
- return (u || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && m.init({
492
- debug: u,
502
+ const { createRoutesFromChildren: j, matchRoutes: C, useLocation: _, useNavigationType: h } = y;
503
+ return (l || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && m.init({
504
+ debug: l,
493
505
  dsn: e,
494
- environment: l || "production",
506
+ environment: u || "production",
495
507
  ignoreErrors: [
496
508
  ...c || [],
497
509
  /dynamically imported module/,
@@ -503,22 +515,22 @@ const qe = ({ IMaskMixin: e, ...t }) => {
503
515
  ],
504
516
  integrations: [
505
517
  m.reactRouterV6BrowserTracingIntegration({
506
- createRoutesFromChildren: v,
507
- matchRoutes: S,
508
- useEffect: L,
509
- useLocation: k,
510
- useNavigationType: g
518
+ createRoutesFromChildren: j,
519
+ matchRoutes: C,
520
+ useEffect: x,
521
+ useLocation: _,
522
+ useNavigationType: h
511
523
  }),
512
524
  ...t || []
513
525
  ],
514
526
  release: f,
515
- replaysOnErrorSampleRate: o || 1,
516
- replaysSessionSampleRate: s || 0.1,
527
+ replaysOnErrorSampleRate: s || 1,
528
+ replaysSessionSampleRate: o || 0.1,
517
529
  tracePropagationTargets: a,
518
- tracesSampleRate: n || 1
530
+ tracesSampleRate: r || 1
519
531
  }), null;
520
- }, rt = () => (L(() => {
521
- if (z)
532
+ }, it = () => (x(() => {
533
+ if (V)
522
534
  return;
523
535
  const e = (t) => {
524
536
  try {
@@ -529,56 +541,56 @@ const qe = ({ IMaskMixin: e, ...t }) => {
529
541
  return window.addEventListener("vite:preloadError", e), () => {
530
542
  window.removeEventListener("vite:preloadError", e);
531
543
  };
532
- }, []), null), fe = /* @__PURE__ */ new WeakMap(), Ae = "user", nt = ({ Fallback: e, isLogged: t, loginPath: n = "/login", redirect401Path: s = "/login", ...o }) => {
533
- const { libraries: a, localStorageKeys: c } = C(j), u = o?.reactRouter || a?.reactRouter, l = o?.axios || a?.axios, f = o?.localStorageKey || c?.user || Ae;
534
- if (!u)
544
+ }, []), null), he = /* @__PURE__ */ new WeakMap(), Pe = "user", ct = ({ Fallback: e, isLogged: t, loginPath: r = "/login", redirect401Path: o = "/login", ...s }) => {
545
+ const { libraries: a, localStorageKeys: c } = k(O), l = s?.reactRouter || a?.reactRouter, u = s?.axios || a?.axios, f = s?.localStorageKey || c?.user || Pe;
546
+ if (!l)
535
547
  throw new Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
536
- const [i, h] = D(null), { useLocation: m, Navigate: y, Outlet: v } = u, S = m(), k = typeof t == "function" ? t() : !!t, g = typeof k == "boolean" ? k : k?.isLogged;
537
- return L(() => {
538
- fe.has(l) || (fe.set(l, !0), l.interceptors.response.use(
548
+ const [i, g] = F(null), { useLocation: m, Navigate: y, Outlet: j } = l, C = m(), _ = typeof t == "function" ? t() : !!t, h = typeof _ == "boolean" ? _ : _?.isLogged;
549
+ return x(() => {
550
+ he.has(u) || (he.set(u, !0), u.interceptors.response.use(
539
551
  (d) => d,
540
- (d) => (typeof d == "object" && d && "response" in d && d.response && typeof d.response == "object" && "status" in d.response && d.response && typeof d.response == "object" && "status" in d.response && d?.response?.status === 401 && (typeof d == "object" && d && "config" in d && d.config && typeof d.config == "object" && "headers" in d.config && d.config.headers && typeof d.config.headers == "object" && "Authorization" in d.config.headers && d.config.headers.Authorization && (l.defaults.headers.common.Authorization = null, typeof window < "u" && window.localStorage && localStorage.removeItem(f)), h(s)), Promise.reject(d))
552
+ (d) => (typeof d == "object" && d && "response" in d && d.response && typeof d.response == "object" && "status" in d.response && d.response && typeof d.response == "object" && "status" in d.response && d?.response?.status === 401 && (typeof d == "object" && d && "config" in d && d.config && typeof d.config == "object" && "headers" in d.config && d.config.headers && typeof d.config.headers == "object" && "Authorization" in d.config.headers && d.config.headers.Authorization && (u.defaults.headers.common.Authorization = null, typeof window < "u" && window.localStorage && localStorage.removeItem(f)), g(o)), Promise.reject(d))
541
553
  ));
542
- }, [l, f, s]), g && !i ? /* @__PURE__ */ I.jsx(Ee, { fallback: e, children: S.state?.from?.state && S.state?.from?.pathname === n ? /* @__PURE__ */ I.jsx(y, { to: S.state.from.state.from.pathname + S.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ I.jsx(v, {}) }) : /* @__PURE__ */ I.jsx(y, { to: n + S.search, state: { from: S }, replace: !0 });
543
- }, Ce = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), je = (e) => {
554
+ }, [u, f, o]), h && !i ? /* @__PURE__ */ N.jsx(Re, { fallback: e, children: C.state?.from?.state && C.state?.from?.pathname === r ? /* @__PURE__ */ N.jsx(y, { to: C.state.from.state.from.pathname + C.state.from.state.from.search, replace: !0 }) : /* @__PURE__ */ N.jsx(j, {}) }) : /* @__PURE__ */ N.jsx(y, { to: r + C.search, state: { from: C }, replace: !0 });
555
+ }, ke = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), Oe = (e) => {
544
556
  const t = e.split(/[/\\]/).pop() || "";
545
557
  return t.substring(0, t.lastIndexOf("."));
546
- }, ke = (e) => {
547
- const s = e.split("/").filter((o) => o.length > 0).map((o) => o.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join("")).join("");
548
- return s.charAt(0).toLowerCase() + s.slice(1);
549
- }, Pe = (e) => (e.split("/").pop() || e).replace(/\.json$/, "").replace(/^openapi\./, ""), xe = (e, t, n, s) => {
550
- const o = ke(t), a = Ce(n), c = `${o}${a}`;
551
- return e && typeof e == "object" && "operationId" in e && s?.includes(String(e.operationId)) ? `${c}AsQuery` : c;
552
- }, Oe = (e, t) => {
553
- const n = {};
554
- return e?.forEach((s) => {
555
- n[s] = {
558
+ }, xe = (e) => {
559
+ const o = e.split("/").filter((s) => s.length > 0).map((s) => s.replace(/\${([^}]*)}/g, "$1").split(/[_-]/).map((u) => u.charAt(0).toUpperCase() + u.slice(1)).join("")).join("");
560
+ return o.charAt(0).toLowerCase() + o.slice(1);
561
+ }, Ie = (e) => (e.split("/").pop() || e).replace(/\.json$/, "").replace(/^openapi\./, ""), Ne = (e, t, r, o) => {
562
+ const s = xe(t), a = ke(r), c = `${s}${a}`;
563
+ return e && typeof e == "object" && "operationId" in e && o?.includes(String(e.operationId)) ? `${c}AsQuery` : c;
564
+ }, Le = (e, t) => {
565
+ const r = {};
566
+ return e?.forEach((o) => {
567
+ r[o] = {
556
568
  query: {
557
569
  useInfinite: !0,
558
570
  useInfiniteQueryParam: "offset",
559
571
  useQuery: !0
560
572
  }
561
573
  };
562
- }), t?.filter((s) => !n[s]).forEach((s) => {
563
- n[s] = {
574
+ }), t?.filter((o) => !r[o]).forEach((o) => {
575
+ r[o] = {
564
576
  query: {
565
577
  useQuery: !0
566
578
  }
567
579
  };
568
- }), Object.keys(n).length ? n : void 0;
569
- }, ot = (e) => (Array.isArray(e) ? e : [e]).reduce((n, s) => {
570
- const { output: o, useInfiniteIds: a, useQueryIds: c, input: u = "./openapi.json", customAxiosInstancePath: l, overrideApiName: f } = s || {}, i = f || Pe(u), h = l || "./node_modules/@tracktor/shared-module/dist/axiosCustomInstance.ts";
580
+ }), Object.keys(r).length ? r : void 0;
581
+ }, lt = (e) => (Array.isArray(e) ? e : [e]).reduce((r, o) => {
582
+ const { output: s, useInfiniteIds: a, useQueryIds: c, input: l = "./openapi.json", customAxiosInstancePath: u, overrideApiName: f } = o || {}, i = f || Ie(l), g = u || "./node_modules/@tracktor/shared-module/dist/axiosCustomInstance.ts";
571
583
  return {
572
- ...n,
584
+ ...r,
573
585
  [i]: {
574
- input: u,
586
+ input: l,
575
587
  output: {
576
- baseUrl: o?.baseUrl,
588
+ baseUrl: s?.baseUrl,
577
589
  client: "react-query",
578
590
  mode: "tags-split",
579
591
  override: {
580
592
  ...(a?.length || c?.length) && {
581
- operations: Oe(a, c)
593
+ operations: Le(a, c)
582
594
  },
583
595
  header: (m) => [
584
596
  "Generated by orval 🍺",
@@ -586,209 +598,220 @@ const qe = ({ IMaskMixin: e, ...t }) => {
586
598
  ...m.description ? [m.description] : []
587
599
  ],
588
600
  mutator: {
589
- name: je(h),
590
- path: h
601
+ name: Oe(g),
602
+ path: g
591
603
  },
592
- operationName: (m, y, v) => xe(m, y, v, c),
604
+ operationName: (m, y, j) => Ne(m, y, j, c),
593
605
  query: {
594
606
  useQuery: !0
595
607
  }
596
608
  },
597
- schemas: o?.schemas || `src/api/${i}/model`,
598
- target: o?.target || `src/api/${i}/services/api.ts`,
599
- ...o
609
+ schemas: s?.schemas || `src/api/${i}/model`,
610
+ target: s?.target || `src/api/${i}/services/api.ts`,
611
+ ...s
600
612
  }
601
613
  }
602
614
  };
603
- }, {}), Ie = "user", Ne = (e) => {
604
- const t = e.startsWith("https") ? "wss" : "ws", n = e.replace(/^https?:\/\//, "");
605
- return `${t}://${n}/v2/threads/ws`;
606
- }, Le = (e) => {
615
+ }, {}), $e = "user", Fe = {
616
+ client: "/v2/threads/ws",
617
+ supplier: "/v1/threads/ws"
618
+ }, De = (e, t) => {
619
+ const r = e.startsWith("https") ? "wss" : "ws", o = e.replace(/^https?:\/\//, "");
620
+ return `${r}://${o}${t}`;
621
+ }, Ye = (e) => {
607
622
  try {
608
623
  const t = localStorage.getItem(e);
609
624
  return t ? JSON.parse(t)?.accessToken ?? null : null;
610
625
  } catch {
611
626
  return null;
612
627
  }
613
- }, me = ge(null), st = ({ children: e, reconnect: t = !0, enabled: n = !0, url: s, token: o }) => {
614
- const [a, c] = D(!1), [u, l] = D(!1), [f, i] = D(0), { apiURL: h, localStorageKeys: m } = C(j), y = m?.user || Ie, v = X(null), S = X(/* @__PURE__ */ new Set());
615
- L(() => {
616
- if (!n)
628
+ }, we = ve(null), ut = ({
629
+ children: e,
630
+ token: t,
631
+ url: r,
632
+ wsPath: o,
633
+ reconnect: s = !0,
634
+ enabled: a = !0,
635
+ context: c = "client"
636
+ }) => {
637
+ const [l, u] = F(!1), [f, i] = F(!1), [g, m] = F(0), { apiURL: y, localStorageKeys: j } = k(O), C = j?.user || $e, _ = te(null), h = te(/* @__PURE__ */ new Set());
638
+ x(() => {
639
+ if (!a)
617
640
  return;
618
- const w = s || (h ? Ne(h) : null);
619
- if (!w)
641
+ const E = o ?? Fe[c], A = r || (y ? De(y, E) : null);
642
+ if (!A)
620
643
  return;
621
- const x = () => o ?? Le(y), K = (N) => {
622
- N.type === "ready" && (l(!0), i(N.unreadCount ?? 0));
623
- for (const $ of S.current)
624
- $(N);
625
- }, Y = setTimeout(() => {
626
- const N = new Re({
627
- getToken: x,
644
+ const Q = () => t ?? Ye(C), X = (L) => {
645
+ L.type === "ready" && (i(!0), m(L.unreadCount ?? 0));
646
+ for (const $ of h.current)
647
+ $(L);
648
+ }, U = setTimeout(() => {
649
+ const L = new Se({
650
+ getToken: Q,
628
651
  onConnectionChange: ($) => {
629
- c($), $ || l(!1);
652
+ u($), $ || i(!1);
630
653
  },
631
- onEvent: K,
632
- reconnect: t,
633
- url: w
654
+ onEvent: X,
655
+ reconnect: s,
656
+ url: A
634
657
  });
635
- v.current = N, N.connect();
658
+ _.current = L, L.connect();
636
659
  }, 0);
637
660
  return () => {
638
- clearTimeout(Y), v.current?.disconnect(), v.current = null;
661
+ clearTimeout(U), _.current?.disconnect(), _.current = null;
639
662
  };
640
- }, [n, s, o, h, t, y]);
641
- const k = P((w) => {
642
- v.current?.joinThread(w);
643
- }, []), g = P((w) => {
644
- v.current?.leaveThread(w);
645
- }, []), d = P((w, x) => {
646
- v.current?.sendMessage(w, x);
647
- }, []), T = P((w) => {
648
- v.current?.markRead(w);
649
- }, []), R = P((w, x) => {
650
- v.current?.listThreads(w, x);
651
- }, []), A = P((w = 1) => {
652
- i((x) => x + w);
653
- }, []), O = P((w = 1) => {
654
- i((x) => Math.max(0, x - w));
655
- }, []), J = P((w) => (S.current.add(w), () => {
656
- S.current.delete(w);
657
- }), []), G = {
658
- decrementUnreadCount: O,
659
- incrementUnreadCount: A,
660
- isConnected: a,
661
- isReady: u,
662
- joinThread: k,
663
- leaveThread: g,
664
- listThreads: R,
663
+ }, [a, r, o, c, t, s, y, C]);
664
+ const d = P((E) => {
665
+ _.current?.joinThread(E);
666
+ }, []), S = P((E) => {
667
+ _.current?.leaveThread(E);
668
+ }, []), w = P((E, A) => {
669
+ _.current?.sendMessage(E, A);
670
+ }, []), T = P((E) => {
671
+ _.current?.markRead(E);
672
+ }, []), I = P((E, A) => {
673
+ _.current?.listThreads(E, A);
674
+ }, []), B = P((E = 1) => {
675
+ m((A) => A + E);
676
+ }, []), K = P((E = 1) => {
677
+ m((A) => Math.max(0, A - E));
678
+ }, []), Y = P((E) => (h.current.add(E), () => {
679
+ h.current.delete(E);
680
+ }), []), q = {
681
+ decrementUnreadCount: K,
682
+ incrementUnreadCount: B,
683
+ isConnected: l,
684
+ isReady: f,
685
+ joinThread: d,
686
+ leaveThread: S,
687
+ listThreads: I,
665
688
  markRead: T,
666
- sendMessage: d,
667
- subscribe: J,
668
- unreadCount: f
689
+ sendMessage: w,
690
+ subscribe: Y,
691
+ unreadCount: g
669
692
  };
670
- return /* @__PURE__ */ I.jsx(me.Provider, { value: G, children: e });
671
- }, $e = (e) => e && typeof e == "function", Fe = (e) => e && typeof e == "function", at = ({
693
+ return /* @__PURE__ */ N.jsx(we.Provider, { value: q, children: e });
694
+ }, Ue = (e) => e && typeof e == "function", Me = (e) => e && typeof e == "function", dt = ({
672
695
  children: e,
673
696
  defaultQueriesOptions: t,
674
- defaultMutationsOptions: n,
675
- ...s
697
+ defaultMutationsOptions: r,
698
+ ...o
676
699
  }) => {
677
- const { libraries: o } = C(j), a = s?.QueryClient || o?.reactQuery?.QueryClient, c = s?.QueryClientProvider || o?.reactQuery?.QueryClientProvider;
700
+ const { libraries: s } = k(O), a = o?.QueryClient || s?.reactQuery?.QueryClient, c = o?.QueryClientProvider || s?.reactQuery?.QueryClientProvider;
678
701
  if (!a)
679
702
  throw new Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
680
703
  if (!c)
681
704
  throw new Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
682
- if (!$e(c))
705
+ if (!Ue(c))
683
706
  throw new Error("Provided QueryClientProvider dependencies are not valid.");
684
- if (!Fe(a))
707
+ if (!Me(a))
685
708
  throw new Error("Provided QueryClient dependencies are not valid.");
686
- const u = new a({
709
+ const l = new a({
687
710
  defaultOptions: {
688
711
  mutations: {
689
- ...n
712
+ ...r
690
713
  },
691
714
  queries: {
692
- getNextPageParam: (l, f, i) => l.length + (i || 0),
715
+ getNextPageParam: (u, f, i) => u.length + (i || 0),
693
716
  refetchOnWindowFocus: !1,
694
717
  retry: 3,
695
718
  ...t
696
719
  }
697
720
  }
698
721
  });
699
- return /* @__PURE__ */ I.jsx(c, { client: u, children: e });
700
- }, De = ({ library: e, date: t, format: n = "ll" }) => e(t).format(n), Ye = (e, t) => {
701
- const { fractionDigits: n = 0, metric: s = "km", spacingBetween: o = !0 } = t || {}, a = Number(e), c = o ? " " : "";
702
- return Number.isNaN(a) ? `0${c}${s}` : `${a.toFixed(n)}${c}${s}`;
703
- }, Me = (e) => !e || typeof e != "string" ? "" : e.replace(/_/g, " ").toLowerCase().split(" ").map((n) => n.length > 0 ? n.charAt(0).toUpperCase() + n.slice(1) : n).join(" "), Ue = (e) => e?.startsWith("/") ? e?.startsWith("/files") ? e : `/files${e}` : e?.startsWith("files") ? `/${e}` : `/files/${e}`, ze = ({ path: e, size: t, apiURL: n }) => {
722
+ return /* @__PURE__ */ N.jsx(c, { client: l, children: e });
723
+ }, ze = ({ library: e, date: t, format: r = "ll" }) => e(t).format(r), We = (e, t) => {
724
+ const { fractionDigits: r = 0, metric: o = "km", spacingBetween: s = !0 } = t || {}, a = Number(e), c = s ? " " : "";
725
+ return Number.isNaN(a) ? `0${c}${o}` : `${a.toFixed(r)}${c}${o}`;
726
+ }, Ve = (e) => !e || typeof e != "string" ? "" : e.replace(/_/g, " ").toLowerCase().split(" ").map((r) => r.length > 0 ? r.charAt(0).toUpperCase() + r.slice(1) : r).join(" "), Qe = (e) => e?.startsWith("/") ? e?.startsWith("/files") ? e : `/files${e}` : e?.startsWith("files") ? `/${e}` : `/files/${e}`, Je = ({ path: e, size: t, apiURL: r }) => {
704
727
  if (!e)
705
728
  return "";
706
- const s = Ue(e), o = `${n}${s}`, a = o.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
707
- return typeof t == "number" && a ? `${o.replace("/files", `/thumbs/${t}`)}` : o;
708
- }, it = (e) => {
709
- const { apiURL: t, libraries: n } = C(j), s = e?.dayjs || n?.dayjs;
729
+ const o = Qe(e), s = `${r}${o}`, a = s.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
730
+ return typeof t == "number" && a ? `${s.replace("/files", `/thumbs/${t}`)}` : s;
731
+ }, ft = (e) => {
732
+ const { apiURL: t, libraries: r } = k(O), o = e?.dayjs || r?.dayjs;
710
733
  return {
711
- dateAdapter: (c, u) => {
712
- if (!s)
734
+ dateAdapter: (c, l) => {
735
+ if (!o)
713
736
  throw new Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
714
- return De({
737
+ return ze({
715
738
  date: c,
716
- format: u,
717
- library: s
739
+ format: l,
740
+ library: o
718
741
  });
719
742
  },
720
- distanceAdapter: Ye,
721
- filePathAdapter: (c, u) => {
743
+ distanceAdapter: We,
744
+ filePathAdapter: (c, l) => {
722
745
  if (!t)
723
746
  throw new Error(
724
747
  "API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter."
725
748
  );
726
- return typeof c == "string" && /^https?:\/\//.test(c) ? c : ze({
749
+ return typeof c == "string" && /^https?:\/\//.test(c) ? c : Je({
727
750
  apiURL: t,
728
751
  path: c,
729
- size: u
752
+ size: l
730
753
  });
731
754
  },
732
- worksiteNameAdapter: Me
755
+ worksiteNameAdapter: Ve
733
756
  };
734
- }, ct = (e) => {
735
- const { libraries: t, localStorageKeys: n } = C(j), s = e?.axios || t?.axios, o = e?.localStorageKey || n?.user || "user";
736
- if (!s)
757
+ }, pt = (e) => {
758
+ const { libraries: t, localStorageKeys: r } = k(O), o = e?.axios || t?.axios, s = e?.localStorageKey || r?.user || "user";
759
+ if (!o)
737
760
  throw new Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
738
761
  const a = P(
739
- ({ tokenType: u, accessToken: l }) => {
740
- s.defaults.headers.common.Authorization = `${u} ${l}`;
762
+ ({ tokenType: l, accessToken: u }) => {
763
+ o.defaults.headers.common.Authorization = `${l} ${u}`;
741
764
  },
742
- [s.defaults.headers.common]
765
+ [o.defaults.headers.common]
743
766
  ), c = () => {
744
- s.defaults.headers.common.Authorization = null;
767
+ o.defaults.headers.common.Authorization = null;
745
768
  };
746
- return L(() => {
747
- if (z)
769
+ return x(() => {
770
+ if (V)
748
771
  return;
749
- const u = ({ newValue: l, key: f }) => {
750
- if (f === o && l)
772
+ const l = ({ newValue: u, key: f }) => {
773
+ if (f === s && u)
751
774
  try {
752
- const { accessToken: i, tokenType: h } = JSON.parse(l);
753
- a({ accessToken: i, tokenType: h });
775
+ const { accessToken: i, tokenType: g } = JSON.parse(u);
776
+ a({ accessToken: i, tokenType: g });
754
777
  } catch (i) {
755
778
  console.error("Failed to parse newValue from localStorage:", i);
756
779
  }
757
780
  };
758
- return window.addEventListener("storage", u), () => {
759
- window.removeEventListener("storage", u);
781
+ return window.addEventListener("storage", l), () => {
782
+ window.removeEventListener("storage", l);
760
783
  };
761
- }, [o, a]), {
784
+ }, [s, a]), {
762
785
  clearAuthenticationToken: c,
763
786
  setAuthenticationToken: a
764
787
  };
765
- }, lt = (e) => {
766
- const t = C(me);
788
+ }, ht = (e) => {
789
+ const t = k(we);
767
790
  if (!t)
768
791
  throw new Error("useChat must be used within ChatProvider");
769
- const { subscribe: n, ...s } = t, o = X(e);
770
- return o.current = e, L(() => n((a) => {
792
+ const { subscribe: r, ...o } = t, s = te(e);
793
+ return s.current = e, x(() => r((a) => {
771
794
  const {
772
795
  onReady: c,
773
- onNewMessage: u,
774
- onNewMessageNotification: l,
796
+ onNewMessage: l,
797
+ onNewMessageNotification: u,
775
798
  onPresence: f,
776
799
  onError: i,
777
- onJoinedThread: h,
800
+ onJoinedThread: g,
778
801
  onLeftThread: m,
779
802
  onMarkedRead: y,
780
- onThreadArchived: v,
781
- onThreadsList: S
782
- } = o.current ?? {};
803
+ onThreadArchived: j,
804
+ onThreadsList: C
805
+ } = s.current ?? {};
783
806
  switch (a.type) {
784
807
  case "ready":
785
808
  c?.(a);
786
809
  break;
787
810
  case "new_message":
788
- u?.(a);
811
+ l?.(a);
789
812
  break;
790
813
  case "new_message_notification":
791
- l?.(a);
814
+ u?.(a);
792
815
  break;
793
816
  case "presence":
794
817
  f?.(a);
@@ -797,7 +820,7 @@ const qe = ({ IMaskMixin: e, ...t }) => {
797
820
  i?.(a);
798
821
  break;
799
822
  case "joined_thread":
800
- h?.(a);
823
+ g?.(a);
801
824
  break;
802
825
  case "left_thread":
803
826
  m?.(a);
@@ -806,28 +829,28 @@ const qe = ({ IMaskMixin: e, ...t }) => {
806
829
  y?.(a);
807
830
  break;
808
831
  case "thread_archived":
809
- v?.(a);
832
+ j?.(a);
810
833
  break;
811
834
  case "threads_list":
812
- S?.(a);
835
+ C?.(a);
813
836
  break;
814
837
  }
815
- }), [n]), s;
816
- }, Q = (e, t) => t === "short" ? e.split("-")[0] : e, ut = (e, t = "full") => {
817
- const [n, s] = D(() => {
818
- const o = e?.language || navigator.language;
819
- return e && "isInitialized" in e && e.isInitialized, Q(o, t);
838
+ }), [r]), o;
839
+ }, H = (e, t) => t === "short" ? e.split("-")[0] : e, gt = (e, t = "full") => {
840
+ const [r, o] = F(() => {
841
+ const s = e?.language || navigator.language;
842
+ return e && "isInitialized" in e && e.isInitialized, H(s, t);
820
843
  });
821
- return L(() => {
822
- e && "isInitialized" in e && e.isInitialized && e.language && s(Q(e.language, t));
823
- const o = (a) => {
824
- s(Q(a, t));
844
+ return x(() => {
845
+ e && "isInitialized" in e && e.isInitialized && e.language && o(H(e.language, t));
846
+ const s = (a) => {
847
+ o(H(a, t));
825
848
  };
826
- return e?.on?.("languageChanged", o), () => {
827
- e?.off?.("languageChanged", o);
849
+ return e?.on?.("languageChanged", s), () => {
850
+ e?.off?.("languageChanged", s);
828
851
  };
829
- }, [e, t]), n;
830
- }, We = "tracktor.filter", Ve = {
852
+ }, [e, t]), r;
853
+ }, Ge = "tracktor.filter", He = {
831
854
  getFilter: () => {
832
855
  },
833
856
  getFilters: () => ({}),
@@ -835,114 +858,132 @@ const qe = ({ IMaskMixin: e, ...t }) => {
835
858
  },
836
859
  setFilter: () => {
837
860
  }
838
- }, pe = (e) => {
861
+ }, ge = (e) => {
839
862
  try {
840
863
  return JSON.parse(e);
841
864
  } catch {
842
865
  return e;
843
866
  }
844
- }, he = (e, t, n) => `${n}_${e}=>${t}`, Qe = (e) => e.reduce((t, n) => {
845
- const s = localStorage.getItem(n);
846
- if (s)
867
+ }, me = (e, t, r) => `${r}_${e}=>${t}`, Be = (e) => e.reduce((t, r) => {
868
+ const o = localStorage.getItem(r);
869
+ if (o)
847
870
  try {
848
- const o = JSON.parse(s), a = Object.keys(o)?.[0];
849
- a && (t[a] = Object.values(o)?.[0]);
871
+ const s = JSON.parse(o), a = Object.keys(s)?.[0];
872
+ a && (t[a] = Object.values(s)?.[0]);
850
873
  } catch {
851
874
  }
852
875
  return t;
853
- }, {}), dt = (e) => {
854
- const { libraries: t, localStorageKeys: n } = C(j), s = e?.reactRouter || t?.reactRouter, { pathname: o } = s?.useLocation?.() ?? { pathname: "/" }, [a, c] = s?.useSearchParams?.() ?? [new URLSearchParams(), () => {
855
- }], [u, l] = D({}), f = n?.filter || We, i = e?.syncWithUrl === void 0 ? !0 : e?.syncWithUrl, h = e?.persistToLocalStorage === void 0 ? !0 : e?.persistToLocalStorage;
856
- if (z)
857
- return Ve;
858
- if (!s)
876
+ }, {}), mt = (e) => {
877
+ const { libraries: t, localStorageKeys: r } = k(O), o = e?.reactRouter || t?.reactRouter, { pathname: s } = o?.useLocation?.() ?? { pathname: "/" }, [a, c] = o?.useSearchParams?.() ?? [new URLSearchParams(), () => {
878
+ }], [l, u] = F({}), f = r?.filter || Ge, i = e?.syncWithUrl === void 0 ? !0 : e?.syncWithUrl, g = e?.persistToLocalStorage === void 0 ? !0 : e?.persistToLocalStorage;
879
+ if (V)
880
+ return He;
881
+ if (!o)
859
882
  throw new Error(
860
883
  "React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of reactRouter."
861
884
  );
862
885
  const m = () => Object.keys(localStorage).filter(
863
- (g) => g.startsWith(f) && g.endsWith(e?.pathname || o)
864
- ), y = (g, d, T = !0) => {
865
- const R = he(g, e?.pathname || o, f);
886
+ (h) => h.startsWith(f) && h.endsWith(e?.pathname || s)
887
+ ), y = (h, d, S = !0) => {
888
+ const w = me(h, e?.pathname || s, f);
866
889
  if (!d || Array.isArray(d) && !d.length) {
867
- i ? (a.delete(g), c(a)) : l((A) => {
868
- const O = { ...A };
869
- return delete O[g], O;
870
- }), h && localStorage.removeItem(R);
890
+ i ? (a.delete(h), c(a)) : u((T) => {
891
+ const I = { ...T };
892
+ return delete I[h], I;
893
+ }), g && localStorage.removeItem(w);
871
894
  return;
872
895
  }
873
- h && T && d && localStorage.setItem(R, JSON.stringify({ ...a, [g]: d })), i && d ? (a.set(g, JSON.stringify(d)), c(a)) : !i && d && l((A) => ({ ...A, [g]: d }));
896
+ g && S && d && localStorage.setItem(w, JSON.stringify({ ...a, [h]: d })), i && d ? (a.set(h, JSON.stringify(d)), c(a)) : !i && d && u((T) => ({ ...T, [h]: d }));
874
897
  };
875
898
  return {
876
- getFilter: (g, d) => {
899
+ getFilter: (h, d) => {
877
900
  if (i) {
878
- const T = a.get(g);
879
- if (T)
880
- return pe(T);
901
+ const S = a.get(h);
902
+ if (S)
903
+ return ge(S);
881
904
  } else {
882
- const T = u[g];
883
- if (T !== void 0)
884
- return T;
905
+ const S = l[h];
906
+ if (S !== void 0)
907
+ return S;
885
908
  }
886
- if (h) {
887
- const T = he(g, e?.pathname || o, f), R = localStorage.getItem(T);
888
- if (R)
909
+ if (g) {
910
+ const S = me(h, e?.pathname || s, f), w = localStorage.getItem(S);
911
+ if (w)
889
912
  try {
890
- const A = JSON.parse(R)[g];
891
- return !i && A !== void 0 && l((O) => ({ ...O, [g]: A })), A;
913
+ const T = JSON.parse(w)[h];
914
+ return !i && T !== void 0 && u((I) => ({ ...I, [h]: T })), T;
892
915
  } catch {
893
916
  }
894
917
  }
895
918
  return d;
896
919
  },
897
920
  getFilters: () => {
898
- const g = h ? Qe(m()) : {};
921
+ const h = g ? Be(m()) : {};
899
922
  if (i) {
900
- const d = Array.from(a.entries()).reduce((T, [R, A]) => (T[R] = pe(A), T), {});
923
+ const d = Array.from(a.entries()).reduce((S, [w, T]) => (S[w] = ge(T), S), {});
901
924
  return {
902
- ...g,
925
+ ...h,
903
926
  ...d
904
927
  };
905
928
  }
906
929
  return {
907
- ...g,
908
- ...u
930
+ ...h,
931
+ ...l
909
932
  };
910
933
  },
911
- handleFilter: (g, d) => (T, R) => {
912
- if (R || Array.isArray(R) && R.length === 0) {
913
- const A = d || "value", O = typeof R == "object" && A in R ? R[A] : R;
914
- y(g, O);
934
+ handleFilter: (h, d) => (S, w) => {
935
+ if (w || Array.isArray(w) && w.length === 0) {
936
+ const T = d || "value", I = typeof w == "object" && T in w ? w[T] : w;
937
+ y(h, I);
915
938
  return;
916
939
  }
917
- y(g, void 0);
940
+ y(h, void 0);
918
941
  },
919
942
  setFilter: y
920
943
  };
921
- }, ft = ({
944
+ }, ye = () => document.getElementById(oe), yt = () => {
945
+ const [e, t] = F(() => !!window.HubSpotConversations);
946
+ x(() => {
947
+ if (window.HubSpotConversations) {
948
+ t(!0);
949
+ return;
950
+ }
951
+ window.hsConversationsOnReady = [() => t(!0)];
952
+ }, []), x(() => {
953
+ e && window.HubSpotConversations?.on("widgetClosed", () => {
954
+ ye()?.classList.remove(W);
955
+ });
956
+ }, [e]);
957
+ const r = P(() => {
958
+ const o = window.HubSpotConversations, s = ye();
959
+ o && s && (s.classList.contains(W) ? (o.widget.close(), s.classList.remove(W)) : (s.classList.add(W), o.widget.open()));
960
+ }, []);
961
+ return { isAvailable: e, toggle: r };
962
+ }, vt = ({
922
963
  data: e,
923
964
  fetchNextPage: t,
924
- isFetchingNextPage: n,
925
- isInitialLoading: s,
926
- isLoading: o,
965
+ isFetchingNextPage: r,
966
+ isInitialLoading: o,
967
+ isLoading: s,
927
968
  enabled: a = !0
928
969
  }) => {
929
970
  const c = P(
930
- async (l) => {
931
- n || !a || await t({ pageParam: l?.pageParam || l.visibleRowsCount });
971
+ async (u) => {
972
+ r || !a || await t({ pageParam: u?.pageParam || u.visibleRowsCount });
932
973
  },
933
- [a, t, n]
934
- ), u = te(() => {
974
+ [a, t, r]
975
+ ), l = se(() => {
935
976
  if (e)
936
- return e.pages.reduce((l, f) => [...l, ...f], []);
977
+ return e.pages.reduce((u, f) => [...u, ...f], []);
937
978
  }, [e]);
938
979
  return {
939
980
  fetchNextPageOnRowsScrollEnd: c,
940
- isLoading: n || o,
941
- loadingVariant: s ? "skeleton" : "linear-progress",
942
- rows: u
981
+ isLoading: r || s,
982
+ loadingVariant: o ? "skeleton" : "linear-progress",
983
+ rows: l
943
984
  };
944
- }, pt = (e) => {
945
- const { libraries: t } = C(j), n = e?.i18 || t?.i18, s = e?.i18?.translateFunction || t?.i18?.translateFunction, o = n?.i18next?.t || s || ((f) => f), { unknownErrorTranslationKey: a = "error.unknownError" } = e || {}, c = o(a), u = P(
985
+ }, wt = (e) => {
986
+ const { libraries: t } = k(O), r = e?.i18 || t?.i18, o = e?.i18?.translateFunction || t?.i18?.translateFunction, s = r?.i18next?.t || o || ((f) => f), { unknownErrorTranslationKey: a = "error.unknownError" } = e || {}, c = s(a), l = P(
946
987
  (f) => {
947
988
  if (f && typeof f == "object" && "response" in f) {
948
989
  const { response: i } = f || {};
@@ -953,9 +994,9 @@ const qe = ({ IMaskMixin: e, ...t }) => {
953
994
  if (i && typeof i == "object" && "data" in i && i.data && typeof i.data == "object" && "message" in i.data && i.data.message)
954
995
  return String(i.data.message);
955
996
  if (i && typeof i == "object" && "data" in i && i.data && typeof i.data == "object" && "detail" in i.data) {
956
- const { detail: h } = i.data;
957
- if (Array.isArray(h) && h.length > 0 && typeof h[0] == "object" && h[0] !== null && "msg" in h[0]) {
958
- const { msg: m } = h[0];
997
+ const { detail: g } = i.data;
998
+ if (Array.isArray(g) && g.length > 0 && typeof g[0] == "object" && g[0] !== null && "msg" in g[0]) {
999
+ const { msg: m } = g[0];
959
1000
  if (typeof m == "string")
960
1001
  return String(m);
961
1002
  }
@@ -968,33 +1009,35 @@ const qe = ({ IMaskMixin: e, ...t }) => {
968
1009
  return { getErrorCode: P((f) => {
969
1010
  const { response: i } = f || {};
970
1011
  return i?.error_code ? String(i?.error_code) : i?.data?.error_code ? String(i?.data?.error_code) : i?.error_code ? String(i?.error_code) : i?.data?.error_code ? String(i.data.error_code) : "unknown_error_code";
971
- }, []), printError: u };
1012
+ }, []), printError: l };
972
1013
  };
973
1014
  export {
974
- Re as ChatClient,
975
- me as ChatContext,
976
- st as ChatProvider,
977
- He as GTMSendPageView,
978
- Xe as InitializeAxiosConfig,
979
- Ze as InitializeDaysJSConfig,
980
- et as InitializeI18nConfig,
981
- tt as InitializeSentryConfig,
982
- j as InjectDependenciesContext,
983
- Be as InjectDependenciesProvider,
984
- qe as MaskTextField,
985
- rt as PreloadErrorHandler,
986
- at as QueryClientProviderWithConfig,
987
- nt as RequireAuth,
988
- Ke as axiosCustomInstance,
989
- De as dateAdapter,
990
- Ye as distanceAdapter,
991
- ot as getOrvalConfig,
992
- it as useAdapter,
993
- ct as useAuth,
994
- lt as useChat,
995
- ut as useCurrentLanguage,
996
- dt as useFilters,
997
- ft as useInfiniteDataGrid,
998
- pt as useResponseError,
999
- Me as worksiteNameAdapter
1015
+ Se as ChatClient,
1016
+ we as ChatContext,
1017
+ ut as ChatProvider,
1018
+ tt as GTMSendPageView,
1019
+ rt as InitializeAxiosConfig,
1020
+ nt as InitializeDaysJSConfig,
1021
+ ot as InitializeHubSpot,
1022
+ st as InitializeI18nConfig,
1023
+ at as InitializeSentryConfig,
1024
+ O as InjectDependenciesContext,
1025
+ et as InjectDependenciesProvider,
1026
+ Ze as MaskTextField,
1027
+ it as PreloadErrorHandler,
1028
+ dt as QueryClientProviderWithConfig,
1029
+ ct as RequireAuth,
1030
+ Xe as axiosCustomInstance,
1031
+ ze as dateAdapter,
1032
+ We as distanceAdapter,
1033
+ lt as getOrvalConfig,
1034
+ ft as useAdapter,
1035
+ pt as useAuth,
1036
+ ht as useChat,
1037
+ gt as useCurrentLanguage,
1038
+ mt as useFilters,
1039
+ yt as useHubSpot,
1040
+ vt as useInfiniteDataGrid,
1041
+ wt as useResponseError,
1042
+ Ve as worksiteNameAdapter
1000
1043
  };