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