@getsoren/shared-module 2.46.0 → 2.46.2
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 +204 -206
- package/dist/orval.js +1 -1
- package/package.json +1 -1
- package/dist/ar-DxWKHrrW.js +0 -84
- package/dist/chunk-D8eiyYIV.js +0 -16
- package/dist/de-B9uAlw43.js +0 -67
- package/dist/es-Czh059B4.js +0 -49
- package/dist/it-BMMOnRzo.js +0 -49
- package/dist/pt-cqbtpCpu.js +0 -50
- /package/dist/{orval-D6vce7Ml.js → orval-Bf_zcxLE.js} +0 -0
package/dist/main.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { t as e } from "./orval-Bf_zcxLE.js";
|
|
2
|
+
import { Suspense as t, createContext as n, lazy as r, useCallback as i, useContext as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
3
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
4
|
+
import "dayjs/locale/ar";
|
|
5
|
+
import "dayjs/locale/de";
|
|
6
|
+
import "dayjs/locale/en";
|
|
7
|
+
import "dayjs/locale/es";
|
|
8
|
+
import "dayjs/locale/fr";
|
|
9
|
+
import "dayjs/locale/it";
|
|
10
|
+
import "dayjs/locale/pt";
|
|
5
11
|
//#region src/chat/ChatClient.ts
|
|
6
|
-
var
|
|
12
|
+
var d = 3e4, f = 1e3, p = 1e4, m = (e) => Array.isArray(e) ? e.map(m) : typeof e == "object" && e ? Object.fromEntries(Object.entries(e).map(([e, t]) => [e.replace(/_([a-z])/g, (e, t) => t.toUpperCase()), m(t)])) : e, h = (e) => Array.isArray(e) ? e.map(h) : typeof e == "object" && e ? Object.fromEntries(Object.entries(e).map(([e, t]) => [e.replace(/[A-Z]/g, (e) => `_${e.toLowerCase()}`), h(t)])) : e, g = class {
|
|
7
13
|
url;
|
|
8
14
|
getToken;
|
|
9
15
|
onEvent;
|
|
@@ -21,7 +27,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
21
27
|
_connected = !1;
|
|
22
28
|
_ready = !1;
|
|
23
29
|
constructor(e) {
|
|
24
|
-
this.url = e.url, this.getToken = e.getToken, this.onEvent = e.onEvent, this.onConnectionChange = e.onConnectionChange, this.shouldReconnect = e.reconnect ?? !0, this.maxReconnectAttempts = e.maxReconnectAttempts ?? Infinity, this.reconnectBaseDelay = e.reconnectBaseDelay ??
|
|
30
|
+
this.url = e.url, this.getToken = e.getToken, this.onEvent = e.onEvent, this.onConnectionChange = e.onConnectionChange, this.shouldReconnect = e.reconnect ?? !0, this.maxReconnectAttempts = e.maxReconnectAttempts ?? Infinity, this.reconnectBaseDelay = e.reconnectBaseDelay ?? f, this.maxMessageBodyLength = e.maxMessageBodyLength ?? p;
|
|
25
31
|
}
|
|
26
32
|
get connected() {
|
|
27
33
|
return this._connected;
|
|
@@ -38,7 +44,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
38
44
|
this._connected = !0, this.reconnectAttempt = 0, this.onConnectionChange?.(!0), this.rejoinThreads(), this.flushPendingMessages();
|
|
39
45
|
}, this.ws.onmessage = (e) => {
|
|
40
46
|
try {
|
|
41
|
-
let t =
|
|
47
|
+
let t = m(JSON.parse(e.data));
|
|
42
48
|
t.type === "ready" && (this._ready = !0), this.onEvent?.(t);
|
|
43
49
|
} catch {}
|
|
44
50
|
}, this.ws.onclose = () => {
|
|
@@ -86,7 +92,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
86
92
|
this.pendingMessages.push(e);
|
|
87
93
|
return;
|
|
88
94
|
}
|
|
89
|
-
this.ws.send(JSON.stringify(
|
|
95
|
+
this.ws.send(JSON.stringify(h(e)));
|
|
90
96
|
}
|
|
91
97
|
flushPendingMessages() {
|
|
92
98
|
let e = [...this.pendingMessages];
|
|
@@ -101,7 +107,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
101
107
|
}
|
|
102
108
|
scheduleReconnect() {
|
|
103
109
|
this.clearReconnectTimer();
|
|
104
|
-
let e = Math.min(this.reconnectBaseDelay * 2 ** this.reconnectAttempt,
|
|
110
|
+
let e = Math.min(this.reconnectBaseDelay * 2 ** this.reconnectAttempt, d);
|
|
105
111
|
this.reconnectAttempt++, this.reconnectTimer = setTimeout(() => {
|
|
106
112
|
this.connect();
|
|
107
113
|
}, e);
|
|
@@ -109,8 +115,8 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
109
115
|
clearReconnectTimer() {
|
|
110
116
|
this.reconnectTimer !== null && (clearTimeout(this.reconnectTimer), this.reconnectTimer = null);
|
|
111
117
|
}
|
|
112
|
-
},
|
|
113
|
-
let i =
|
|
118
|
+
}, _ = ({ IMaskMixin: e, ...t }) => /* @__PURE__ */ u(s(() => e(({ TextField: e, ...t }) => /* @__PURE__ */ u(e, { ...t })), [e]), { ...t }), v = n({}), y = ({ children: e, apiURL: t, libraries: n, localStorageKeys: r }) => {
|
|
119
|
+
let i = s(() => ({
|
|
114
120
|
apiURL: t,
|
|
115
121
|
libraries: n,
|
|
116
122
|
localStorageKeys: r
|
|
@@ -119,34 +125,34 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
119
125
|
n,
|
|
120
126
|
r
|
|
121
127
|
]);
|
|
122
|
-
return /* @__PURE__ */
|
|
128
|
+
return /* @__PURE__ */ u(v.Provider, {
|
|
123
129
|
value: i,
|
|
124
130
|
children: e
|
|
125
131
|
});
|
|
126
|
-
},
|
|
132
|
+
}, b = 900 * 1e3, x = 60 * 1e3, S = 600 * 1e3, C = "auto-reload-on-new-version-timestamp", w = /<meta[^>]*name="version"[^>]*content="([^"]*)"/, T = (e) => {
|
|
127
133
|
try {
|
|
128
134
|
return sessionStorage.getItem(e);
|
|
129
135
|
} catch {
|
|
130
136
|
return null;
|
|
131
137
|
}
|
|
132
|
-
},
|
|
138
|
+
}, E = (e, t) => {
|
|
133
139
|
try {
|
|
134
140
|
sessionStorage.setItem(e, t);
|
|
135
141
|
} catch {}
|
|
136
|
-
},
|
|
137
|
-
let { libraries: i } =
|
|
138
|
-
if (!
|
|
139
|
-
let { useLocation: f, Outlet: p } =
|
|
140
|
-
return
|
|
142
|
+
}, D = ({ version: e, checkInterval: t = b, children: n, ...r }) => {
|
|
143
|
+
let { libraries: i } = a(v), s = r?.reactRouter || i?.reactRouter, l = c(!1), d = c(0);
|
|
144
|
+
if (!s) throw Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of AutoReloadOnNewVersion.");
|
|
145
|
+
let { useLocation: f, Outlet: p } = s, { pathname: m } = f(), h = c(m);
|
|
146
|
+
return o(() => {
|
|
141
147
|
if (!e || typeof window > "u") return;
|
|
142
148
|
let n = async () => {
|
|
143
|
-
if (!(
|
|
144
|
-
|
|
149
|
+
if (!(l.current || Date.now() - d.current < x)) {
|
|
150
|
+
d.current = Date.now();
|
|
145
151
|
try {
|
|
146
152
|
let t = await fetch("/index.html", { cache: "no-store" });
|
|
147
153
|
if (!t.ok) return;
|
|
148
|
-
let n = (await t.text()).match(
|
|
149
|
-
n && n !== "%VERSION%" && n !== e && (
|
|
154
|
+
let n = (await t.text()).match(w)?.[1];
|
|
155
|
+
n && n !== "%VERSION%" && n !== e && (l.current = !0);
|
|
150
156
|
} catch {}
|
|
151
157
|
}
|
|
152
158
|
}, r = () => {
|
|
@@ -155,34 +161,34 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
155
161
|
return document.addEventListener("visibilitychange", r), () => {
|
|
156
162
|
clearInterval(i), document.removeEventListener("visibilitychange", r);
|
|
157
163
|
};
|
|
158
|
-
}, [e, t]),
|
|
159
|
-
if (m === h.current || (h.current = m, !
|
|
160
|
-
|
|
161
|
-
let e = Number(
|
|
162
|
-
Date.now() - e <
|
|
163
|
-
}, [m]), n ?? /* @__PURE__ */
|
|
164
|
-
},
|
|
165
|
-
let { libraries: n } =
|
|
164
|
+
}, [e, t]), o(() => {
|
|
165
|
+
if (m === h.current || (h.current = m, !l.current)) return;
|
|
166
|
+
l.current = !1;
|
|
167
|
+
let e = Number(T(C) || "0");
|
|
168
|
+
Date.now() - e < S || (E(C, String(Date.now())), window.location.reload());
|
|
169
|
+
}, [m]), n ?? /* @__PURE__ */ u(p, {});
|
|
170
|
+
}, O = ({ data: e, ...t }) => {
|
|
171
|
+
let { libraries: n } = a(v), r = t?.reactRouter || n?.reactRouter, i = t?.gtm || n?.gtm;
|
|
166
172
|
if (!r) throw Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
|
|
167
173
|
if (!i) throw Error("GTM is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
|
|
168
|
-
let { useGoogleTagManager:
|
|
169
|
-
return
|
|
174
|
+
let { useGoogleTagManager: s } = i, { useLocation: c, Outlet: l } = r, { pathname: d } = c(), { sendEvent: f } = s();
|
|
175
|
+
return o(() => {
|
|
170
176
|
f({
|
|
171
177
|
event: "pageView",
|
|
172
|
-
pathname:
|
|
178
|
+
pathname: d,
|
|
173
179
|
...e
|
|
174
180
|
});
|
|
175
181
|
}, [
|
|
176
182
|
e,
|
|
177
|
-
|
|
183
|
+
d,
|
|
178
184
|
f
|
|
179
|
-
]), /* @__PURE__ */
|
|
180
|
-
},
|
|
181
|
-
let { libraries: i } =
|
|
182
|
-
return
|
|
183
|
-
let r =
|
|
185
|
+
]), /* @__PURE__ */ u(l, {});
|
|
186
|
+
}, k = ({ apiKey: e, platform: t = "desktop", sessionReplaySampleRate: n = .25, ...r }) => {
|
|
187
|
+
let { libraries: i } = a(v), s = r.amplitude || i?.amplitude;
|
|
188
|
+
return o(() => {
|
|
189
|
+
let r = s?.analytics, i = s?.sessionReplayPlugin;
|
|
184
190
|
if (!(e && r)) return;
|
|
185
|
-
let
|
|
191
|
+
let a = "platform-enrichment";
|
|
186
192
|
return r.init(e, { autocapture: { elementInteractions: !1 } }), i && r.add(i({ sampleRate: n })), r.add({
|
|
187
193
|
execute: async (e) => ({
|
|
188
194
|
...e,
|
|
@@ -191,33 +197,33 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
191
197
|
platform: t
|
|
192
198
|
}
|
|
193
199
|
}),
|
|
194
|
-
name:
|
|
200
|
+
name: a,
|
|
195
201
|
type: "enrichment"
|
|
196
202
|
}), () => {
|
|
197
|
-
i && r.remove("@amplitude/plugin-session-replay-browser"), r.remove(
|
|
203
|
+
i && r.remove("@amplitude/plugin-session-replay-browser"), r.remove(a);
|
|
198
204
|
};
|
|
199
205
|
}, [
|
|
200
206
|
e,
|
|
201
|
-
|
|
207
|
+
s,
|
|
202
208
|
t,
|
|
203
209
|
n
|
|
204
210
|
]), null;
|
|
205
|
-
},
|
|
211
|
+
}, A = (() => {
|
|
206
212
|
try {
|
|
207
213
|
return typeof global == "object" && global !== null && ("HermesInternal" in global || "__fbBatchedBridge" in global || "__metro" in global) || typeof window > "u" && typeof global < "u" ? !0 : typeof navigator < "u" && navigator.userAgent ? /react.native|ReactNative/i.test(navigator.userAgent) : !1;
|
|
208
214
|
} catch {
|
|
209
215
|
return !1;
|
|
210
216
|
}
|
|
211
|
-
})(),
|
|
212
|
-
let { apiURL: i = r.apiURL, libraries:
|
|
217
|
+
})(), j = "user", M = ({ tokenTypeKey: e = "tokenType", tokenKey: t = "accessToken", postContentType: n = "application/json", ...r }) => {
|
|
218
|
+
let { apiURL: i = r.apiURL, libraries: o, localStorageKeys: s } = a(v), c = r?.userLocalStorageKey || s?.user || j, l = r?.axios || o?.axios;
|
|
213
219
|
if (!l) throw Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
214
|
-
if (!l?.defaults ||
|
|
220
|
+
if (!l?.defaults || A) return null;
|
|
215
221
|
if (typeof window < "u" && window.localStorage) {
|
|
216
222
|
let n = localStorage.getItem(c), r = n ? JSON.parse(n) : null, i = r?.[e] ? r[e] : null, a = r?.[t] ? r[t] : null, o = n ? `${i} ${a}` : null;
|
|
217
223
|
o && (l.defaults.headers.common.Authorization = o);
|
|
218
224
|
}
|
|
219
225
|
return l.defaults.baseURL = i, l.defaults.headers.post["Content-Type"] = n, null;
|
|
220
|
-
},
|
|
226
|
+
}, N = [
|
|
221
227
|
"ar",
|
|
222
228
|
"de",
|
|
223
229
|
"en",
|
|
@@ -225,41 +231,33 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
225
231
|
"fr",
|
|
226
232
|
"it",
|
|
227
233
|
"pt"
|
|
228
|
-
],
|
|
229
|
-
let { libraries:
|
|
230
|
-
if (!
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
})().then();
|
|
238
|
-
}, [
|
|
239
|
-
i,
|
|
240
|
-
a,
|
|
241
|
-
t,
|
|
242
|
-
n.localizedFormat
|
|
243
|
-
]), null;
|
|
244
|
-
}, L = "hubspot-messages-iframe-container", R = "hs-show", z = "data-hs-hidden", ee = ({ hubId: e }) => (s(() => {
|
|
234
|
+
], P = (e) => N.includes(e), F = ({ language: e, ...t }) => {
|
|
235
|
+
let { libraries: n } = a(v), r = t?.dayjs || n?.dayjs, i = t?.plugin || n?.dayjsPlugin;
|
|
236
|
+
if (!r) throw Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig.");
|
|
237
|
+
r.extend(t.localizedFormat), i && i.forEach((e) => {
|
|
238
|
+
e && r.extend(e);
|
|
239
|
+
});
|
|
240
|
+
let o = e || navigator.language?.slice(0, 2) || "en", s = P(o) ? o : "en";
|
|
241
|
+
return r.locale() !== s && r.locale(s), null;
|
|
242
|
+
}, I = "hubspot-messages-iframe-container", L = "hs-show", R = "data-hs-hidden", ee = ({ hubId: e }) => (o(() => {
|
|
245
243
|
if (!e) return;
|
|
246
244
|
let t = document.createElement("script");
|
|
247
245
|
return t.id = "hs-script-loader", t.src = `//js-eu1.hs-scripts.com/${e}.js`, t.async = !0, t.defer = !0, document.body.appendChild(t), () => {
|
|
248
246
|
t.remove();
|
|
249
247
|
};
|
|
250
|
-
}, [e]),
|
|
248
|
+
}, [e]), o(() => {
|
|
251
249
|
let e = document.createElement("style");
|
|
252
250
|
return e.textContent = `
|
|
253
|
-
html[${
|
|
254
|
-
html[${
|
|
255
|
-
`, document.head.appendChild(e), document.documentElement.setAttribute(
|
|
256
|
-
e.remove(), document.documentElement.removeAttribute(
|
|
251
|
+
html[${R}] div#${I} { display: none !important; }
|
|
252
|
+
html[${R}] div#${I}.${L} { display: initial !important; }
|
|
253
|
+
`, document.head.appendChild(e), document.documentElement.setAttribute(R, ""), () => {
|
|
254
|
+
e.remove(), document.documentElement.removeAttribute(R);
|
|
257
255
|
};
|
|
258
256
|
}, []), null), te = ({ debug: e, resources: t, ...n }) => {
|
|
259
|
-
let { libraries: r } =
|
|
260
|
-
if (
|
|
261
|
-
if (!(i &&
|
|
262
|
-
return
|
|
257
|
+
let { libraries: r } = a(v), i = n?.i18 || r?.i18, { i18next: o, initReactI18next: s, languageDetector: c } = i || {};
|
|
258
|
+
if (A) return null;
|
|
259
|
+
if (!(i && o && c && s)) throw Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
260
|
+
return o.isInitialized ? null : (o.use(c).use(s).init({
|
|
263
261
|
debug: e,
|
|
264
262
|
fallbackLng: "en",
|
|
265
263
|
interpolation: { escapeValue: !1 },
|
|
@@ -271,16 +269,16 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
271
269
|
resources: t,
|
|
272
270
|
returnNull: !1
|
|
273
271
|
}).then(() => {
|
|
274
|
-
document.documentElement.lang !==
|
|
275
|
-
}),
|
|
272
|
+
document.documentElement.lang !== o.resolvedLanguage && o.resolvedLanguage && document.documentElement.setAttribute("lang", o.resolvedLanguage);
|
|
273
|
+
}), o.on("languageChanged", (e) => {
|
|
276
274
|
document.documentElement.setAttribute("lang", e);
|
|
277
275
|
}), null);
|
|
278
|
-
}, ne = ({ dsn: e, integrations: t, tracesSampleRate: n, replaysSessionSampleRate: r, replaysOnErrorSampleRate: i, tracePropagationTargets:
|
|
279
|
-
let { libraries: p } =
|
|
276
|
+
}, ne = ({ dsn: e, integrations: t, tracesSampleRate: n, replaysSessionSampleRate: r, replaysOnErrorSampleRate: i, tracePropagationTargets: s, ignoreErrors: c, debug: l, environment: u, release: d, ...f }) => {
|
|
277
|
+
let { libraries: p } = a(v), m = f?.sentry || p?.sentry, h = f?.reactRouter || p?.reactRouter;
|
|
280
278
|
if (!m) throw Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
281
279
|
if (!h) throw Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
282
280
|
if (m.isInitialized()) return null;
|
|
283
|
-
let { createRoutesFromChildren: g, matchRoutes: _, useLocation:
|
|
281
|
+
let { createRoutesFromChildren: g, matchRoutes: _, useLocation: y, useNavigationType: b } = h;
|
|
284
282
|
return (l || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && m.init({
|
|
285
283
|
debug: l,
|
|
286
284
|
dsn: e,
|
|
@@ -297,41 +295,41 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
297
295
|
integrations: [m.reactRouterV6BrowserTracingIntegration({
|
|
298
296
|
createRoutesFromChildren: g,
|
|
299
297
|
matchRoutes: _,
|
|
300
|
-
useEffect:
|
|
301
|
-
useLocation:
|
|
298
|
+
useEffect: o,
|
|
299
|
+
useLocation: y,
|
|
302
300
|
useNavigationType: b
|
|
303
301
|
}), ...t || []],
|
|
304
302
|
release: d,
|
|
305
303
|
replaysOnErrorSampleRate: i || 1,
|
|
306
304
|
replaysSessionSampleRate: r || .1,
|
|
307
|
-
tracePropagationTargets:
|
|
305
|
+
tracePropagationTargets: s,
|
|
308
306
|
tracesSampleRate: n || 1
|
|
309
307
|
}), null;
|
|
310
|
-
},
|
|
311
|
-
let { libraries: c, localStorageKeys:
|
|
308
|
+
}, z = /* @__PURE__ */ new WeakMap(), re = "user", ie = ({ Fallback: e, isLogged: n, loginPath: r = "/login", redirect401Path: i = "/login", ...s }) => {
|
|
309
|
+
let { libraries: c, localStorageKeys: d } = a(v), f = s?.reactRouter || c?.reactRouter, p = s?.axios || c?.axios, m = s?.localStorageKey || d?.user || re;
|
|
312
310
|
if (!f) throw Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
313
|
-
let [h, g] =
|
|
314
|
-
return
|
|
315
|
-
p && (
|
|
311
|
+
let [h, g] = l(null), { useLocation: _, Navigate: y, Outlet: b } = f, x = _(), S = typeof n == "function" ? n() : !!n, C = typeof S == "boolean" ? S : S?.isLogged;
|
|
312
|
+
return o(() => {
|
|
313
|
+
p && (z.has(p) || (z.set(p, !0), p.interceptors.response.use((e) => e, (e) => (typeof e == "object" && e && "response" in e && e.response && typeof e.response == "object" && "status" in e.response && e.response && typeof e.response == "object" && "status" in e.response && e?.response?.status === 401 && (typeof e == "object" && e && "config" in e && e.config && typeof e.config == "object" && "headers" in e.config && e.config.headers && typeof e.config.headers == "object" && "Authorization" in e.config.headers && e.config.headers.Authorization && (p.defaults.headers.common.Authorization = null, typeof window < "u" && window.localStorage && localStorage.removeItem(m)), g(i)), Promise.reject(e)))));
|
|
316
314
|
}, [
|
|
317
315
|
p,
|
|
318
316
|
m,
|
|
319
317
|
i
|
|
320
|
-
]), C && !h ? /* @__PURE__ */
|
|
318
|
+
]), C && !h ? /* @__PURE__ */ u(t, {
|
|
321
319
|
fallback: e,
|
|
322
|
-
children: x.state?.from?.state && x.state?.from?.pathname === r ? /* @__PURE__ */
|
|
320
|
+
children: x.state?.from?.state && x.state?.from?.pathname === r ? /* @__PURE__ */ u(y, {
|
|
323
321
|
to: x.state.from.state.from.pathname + x.state.from.state.from.search,
|
|
324
322
|
replace: !0
|
|
325
|
-
}) : /* @__PURE__ */
|
|
326
|
-
}) : /* @__PURE__ */
|
|
323
|
+
}) : /* @__PURE__ */ u(b, {})
|
|
324
|
+
}) : /* @__PURE__ */ u(y, {
|
|
327
325
|
to: r + x.search,
|
|
328
326
|
state: { from: x },
|
|
329
327
|
replace: !0
|
|
330
328
|
});
|
|
331
|
-
},
|
|
329
|
+
}, B = /* @__PURE__ */ new Set(), ae = () => (o(() => {
|
|
332
330
|
let e = Symbol();
|
|
333
|
-
return
|
|
334
|
-
|
|
331
|
+
return B.add(e), document.documentElement.removeAttribute(R), () => {
|
|
332
|
+
B.delete(e), B.size === 0 && document.documentElement.setAttribute(R, "");
|
|
335
333
|
};
|
|
336
334
|
}, []), null), oe = "user", se = {
|
|
337
335
|
client: "/v2/threads/ws",
|
|
@@ -343,36 +341,36 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
343
341
|
} catch {
|
|
344
342
|
return null;
|
|
345
343
|
}
|
|
346
|
-
},
|
|
347
|
-
let [
|
|
348
|
-
|
|
344
|
+
}, V = n(null), ue = ({ children: e, token: t, url: n, wsPath: r, maxReconnectAttempts: s, reconnectBaseDelay: d, maxMessageBodyLength: f = 1e4, reconnect: p = !0, enabled: m = !0, context: h = "client" }) => {
|
|
345
|
+
let [_, y] = l(!1), [b, x] = l(!1), [S, C] = l(0), [w, T] = l(m), E = m && w, { apiURL: D, localStorageKeys: O } = a(v), k = O?.user || oe, A = c(null), j = c(/* @__PURE__ */ new Set());
|
|
346
|
+
o(() => {
|
|
349
347
|
if (!E) return;
|
|
350
|
-
let e = r ?? se[h],
|
|
351
|
-
if (!
|
|
352
|
-
let
|
|
348
|
+
let e = r ?? se[h], i = n || (D ? ce(D, e) : null);
|
|
349
|
+
if (!i) return;
|
|
350
|
+
let a = () => t ?? le(k), o = (e) => {
|
|
353
351
|
switch (e.type) {
|
|
354
352
|
case "ready":
|
|
355
353
|
x(!0), C(e.unreadCount ?? 0);
|
|
356
354
|
break;
|
|
357
355
|
}
|
|
358
356
|
for (let t of j.current) t(e);
|
|
359
|
-
},
|
|
360
|
-
let e = new
|
|
361
|
-
getToken:
|
|
357
|
+
}, c = setTimeout(() => {
|
|
358
|
+
let e = new g({
|
|
359
|
+
getToken: a,
|
|
362
360
|
maxMessageBodyLength: f,
|
|
363
|
-
maxReconnectAttempts:
|
|
361
|
+
maxReconnectAttempts: s,
|
|
364
362
|
onConnectionChange: (e) => {
|
|
365
|
-
|
|
363
|
+
y(e), e || x(!1);
|
|
366
364
|
},
|
|
367
|
-
onEvent:
|
|
365
|
+
onEvent: o,
|
|
368
366
|
reconnect: p,
|
|
369
|
-
reconnectBaseDelay:
|
|
370
|
-
url:
|
|
367
|
+
reconnectBaseDelay: d,
|
|
368
|
+
url: i
|
|
371
369
|
});
|
|
372
370
|
A.current = e, e.connect();
|
|
373
371
|
}, 0);
|
|
374
372
|
return () => {
|
|
375
|
-
clearTimeout(
|
|
373
|
+
clearTimeout(c), A.current?.disconnect(), A.current = null;
|
|
376
374
|
};
|
|
377
375
|
}, [
|
|
378
376
|
E,
|
|
@@ -384,56 +382,56 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
384
382
|
D,
|
|
385
383
|
k,
|
|
386
384
|
f,
|
|
387
|
-
|
|
388
|
-
|
|
385
|
+
s,
|
|
386
|
+
d
|
|
389
387
|
]);
|
|
390
|
-
let M =
|
|
388
|
+
let M = i((e) => {
|
|
391
389
|
A.current?.joinThread(e);
|
|
392
|
-
}, []), N =
|
|
390
|
+
}, []), N = i((e) => {
|
|
393
391
|
A.current?.leaveThread(e);
|
|
394
|
-
}, []), P =
|
|
392
|
+
}, []), P = i((e, t) => {
|
|
395
393
|
A.current?.sendMessage(e, t);
|
|
396
|
-
}, []), F =
|
|
394
|
+
}, []), F = i((e) => {
|
|
397
395
|
A.current?.markRead(e);
|
|
398
|
-
}, []), I =
|
|
396
|
+
}, []), I = i((e, t) => {
|
|
399
397
|
A.current?.listThreads(e, t);
|
|
400
|
-
}, []), L =
|
|
398
|
+
}, []), L = i((e = 1) => {
|
|
401
399
|
C((t) => t + e);
|
|
402
400
|
}, []), R = {
|
|
403
|
-
decrementUnreadCount:
|
|
401
|
+
decrementUnreadCount: i((e = 1) => {
|
|
404
402
|
C((t) => Math.max(0, t - e));
|
|
405
403
|
}, []),
|
|
406
|
-
disconnect:
|
|
404
|
+
disconnect: i(() => {
|
|
407
405
|
A.current?.disconnect(), A.current = null;
|
|
408
406
|
}, []),
|
|
409
407
|
incrementUnreadCount: L,
|
|
410
|
-
isConnected:
|
|
408
|
+
isConnected: _,
|
|
411
409
|
isReady: b,
|
|
412
410
|
joinThread: M,
|
|
413
411
|
leaveThread: N,
|
|
414
412
|
listThreads: I,
|
|
415
413
|
markRead: F,
|
|
416
414
|
sendMessage: P,
|
|
417
|
-
setEnabled:
|
|
415
|
+
setEnabled: i((e) => {
|
|
418
416
|
T(e);
|
|
419
417
|
}, []),
|
|
420
|
-
subscribe:
|
|
418
|
+
subscribe: i((e) => (j.current.add(e), () => {
|
|
421
419
|
j.current.delete(e);
|
|
422
420
|
}), []),
|
|
423
421
|
unreadCount: S
|
|
424
422
|
};
|
|
425
|
-
return /* @__PURE__ */
|
|
423
|
+
return /* @__PURE__ */ u(V.Provider, {
|
|
426
424
|
value: R,
|
|
427
425
|
children: e
|
|
428
426
|
});
|
|
429
427
|
}, de = (e) => e && typeof e == "function", fe = (e) => e && typeof e == "function", pe = ({ children: e, defaultQueriesOptions: t, defaultMutationsOptions: n, ...r }) => {
|
|
430
|
-
let { libraries: i } =
|
|
431
|
-
if (!
|
|
428
|
+
let { libraries: i } = a(v), o = r?.QueryClient || i?.reactQuery?.QueryClient, s = r?.QueryClientProvider || i?.reactQuery?.QueryClientProvider;
|
|
429
|
+
if (!o) throw Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
432
430
|
if (!s) throw Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
433
431
|
if (!de(s)) throw Error("Provided QueryClientProvider dependencies are not valid.");
|
|
434
|
-
if (!fe(
|
|
435
|
-
let
|
|
436
|
-
return
|
|
432
|
+
if (!fe(o)) throw Error("Provided QueryClient dependencies are not valid.");
|
|
433
|
+
let l = c(null);
|
|
434
|
+
return l.current ||= new o({ defaultOptions: {
|
|
437
435
|
mutations: { ...n },
|
|
438
436
|
queries: {
|
|
439
437
|
getNextPageParam: (e, t, n) => e.length + (n || 0),
|
|
@@ -441,29 +439,29 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
441
439
|
retry: 3,
|
|
442
440
|
...t
|
|
443
441
|
}
|
|
444
|
-
} }), /* @__PURE__ */
|
|
445
|
-
client:
|
|
442
|
+
} }), /* @__PURE__ */ u(s, {
|
|
443
|
+
client: l.current,
|
|
446
444
|
children: e
|
|
447
445
|
});
|
|
448
|
-
},
|
|
446
|
+
}, H = ({ library: e, date: t, format: n = "ll" }) => e(t).format(n), U = (e, t) => {
|
|
449
447
|
let { fractionDigits: n = 0, metric: r = "km", spacingBetween: i = !0 } = t || {}, a = Number(e), o = i ? " " : "";
|
|
450
448
|
return Number.isNaN(a) ? `0${o}${r}` : `${a.toFixed(n)}${o}${r}`;
|
|
451
|
-
},
|
|
449
|
+
}, W = (e) => !e || typeof e != "string" ? "" : e.replace(/_/g, " ").toLowerCase().split(" ").map((e) => e.length > 0 ? e.charAt(0).toUpperCase() + e.slice(1) : e).join(" "), me = (e) => e?.startsWith("/") ? e?.startsWith("/files") ? e : `/files${e}` : e?.startsWith("files") ? `/${e}` : `/files/${e}`, he = ({ path: e, size: t, apiURL: n }) => {
|
|
452
450
|
if (!e) return "";
|
|
453
451
|
let r = `${n}${me(e)}`, i = r.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
|
|
454
452
|
return typeof t == "number" && i ? `${r.replace("/files", `/thumbs/${t}`)}` : r;
|
|
455
453
|
}, ge = (e) => {
|
|
456
|
-
let { apiURL: t, libraries: n } =
|
|
454
|
+
let { apiURL: t, libraries: n } = a(v), r = e?.dayjs || n?.dayjs;
|
|
457
455
|
return {
|
|
458
456
|
dateAdapter: (e, t) => {
|
|
459
457
|
if (!r) throw Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
460
|
-
return
|
|
458
|
+
return H({
|
|
461
459
|
date: e,
|
|
462
460
|
format: t,
|
|
463
461
|
library: r
|
|
464
462
|
});
|
|
465
463
|
},
|
|
466
|
-
distanceAdapter:
|
|
464
|
+
distanceAdapter: U,
|
|
467
465
|
filePathAdapter: (e, n) => {
|
|
468
466
|
if (!t) throw Error("API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter.");
|
|
469
467
|
return typeof e == "string" && /^https?:\/\//.test(e) ? e : he({
|
|
@@ -472,42 +470,42 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
472
470
|
size: n
|
|
473
471
|
});
|
|
474
472
|
},
|
|
475
|
-
worksiteNameAdapter:
|
|
473
|
+
worksiteNameAdapter: W
|
|
476
474
|
};
|
|
477
475
|
}, _e = () => {
|
|
478
|
-
let { libraries: e } =
|
|
476
|
+
let { libraries: e } = a(v), t = e?.amplitude?.analytics, n = i((e, n) => {
|
|
479
477
|
if (!t || (t.setUserId(e), !n)) return;
|
|
480
478
|
let r = new t.Identify();
|
|
481
479
|
Object.entries(n).forEach(([e, t]) => {
|
|
482
480
|
r.set(e, t);
|
|
483
481
|
}), t.identify(r);
|
|
484
|
-
}, [t]), r =
|
|
482
|
+
}, [t]), r = i((e, n, r) => {
|
|
485
483
|
if (!t || (t.setGroup(e, n), !r)) return;
|
|
486
484
|
let i = new t.Identify();
|
|
487
485
|
Object.entries(r).forEach(([e, t]) => {
|
|
488
486
|
i.set(e, t);
|
|
489
487
|
}), t.groupIdentify(e, n, i);
|
|
490
|
-
}, [t]),
|
|
488
|
+
}, [t]), o = i((e, n) => {
|
|
491
489
|
t && t.track(e, n);
|
|
492
490
|
}, [t]);
|
|
493
491
|
return {
|
|
494
492
|
identify: n,
|
|
495
|
-
reset:
|
|
493
|
+
reset: i(() => {
|
|
496
494
|
t && t.reset();
|
|
497
495
|
}, [t]),
|
|
498
496
|
setGroup: r,
|
|
499
|
-
track:
|
|
497
|
+
track: o
|
|
500
498
|
};
|
|
501
499
|
}, ve = (e) => {
|
|
502
|
-
let { libraries: t, localStorageKeys: n } =
|
|
500
|
+
let { libraries: t, localStorageKeys: n } = a(v), r = e?.axios || t?.axios, s = e?.localStorageKey || n?.user || "user";
|
|
503
501
|
if (!r) throw Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
|
|
504
|
-
let c =
|
|
502
|
+
let c = i(({ tokenType: e, accessToken: t }) => {
|
|
505
503
|
r.defaults.headers.common.Authorization = `${e} ${t}`;
|
|
506
504
|
}, [r.defaults.headers.common]);
|
|
507
|
-
return
|
|
508
|
-
if (
|
|
505
|
+
return o(() => {
|
|
506
|
+
if (A) return;
|
|
509
507
|
let e = ({ newValue: e, key: t }) => {
|
|
510
|
-
if (t ===
|
|
508
|
+
if (t === s && e) try {
|
|
511
509
|
let { accessToken: t, tokenType: n } = JSON.parse(e);
|
|
512
510
|
c({
|
|
513
511
|
accessToken: t,
|
|
@@ -520,7 +518,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
520
518
|
return window.addEventListener("storage", e), () => {
|
|
521
519
|
window.removeEventListener("storage", e);
|
|
522
520
|
};
|
|
523
|
-
}, [
|
|
521
|
+
}, [s, c]), {
|
|
524
522
|
clearAuthenticationToken: () => {
|
|
525
523
|
r.defaults.headers.common.Authorization = null;
|
|
526
524
|
},
|
|
@@ -544,15 +542,15 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
544
542
|
n.onclick = () => r(e);
|
|
545
543
|
}
|
|
546
544
|
}, xe = (e) => {
|
|
547
|
-
let t =
|
|
545
|
+
let t = a(V);
|
|
548
546
|
if (!t) throw Error("useChat must be used within ChatProvider");
|
|
549
|
-
let { subscribe: n, setEnabled: r, ...i } = t,
|
|
550
|
-
return
|
|
547
|
+
let { subscribe: n, setEnabled: r, ...i } = t, s = c(e);
|
|
548
|
+
return s.current = e, o(() => {
|
|
551
549
|
e?.enabled !== void 0 && r(e.enabled);
|
|
552
|
-
}, [e?.enabled, r]),
|
|
550
|
+
}, [e?.enabled, r]), o(() => {
|
|
553
551
|
e?.browserNotification && e.browserNotification.enabled !== !1 && "Notification" in window && Notification.permission === "default" && typeof Notification.requestPermission == "function" && Notification.requestPermission();
|
|
554
|
-
}, [e?.browserNotification]),
|
|
555
|
-
let { browserNotification: t, onReady: n, onNewMessage: r, onNewMessageNotification: i, onPresence:
|
|
552
|
+
}, [e?.browserNotification]), o(() => n((e) => {
|
|
553
|
+
let { browserNotification: t, onReady: n, onNewMessage: r, onNewMessageNotification: i, onPresence: a, onError: o, onJoinedThread: c, onLeftThread: l, onMarkedRead: u, onThreadArchived: d, onThreadsList: f } = s.current ?? {};
|
|
556
554
|
switch (e.type) {
|
|
557
555
|
case "ready":
|
|
558
556
|
n?.(e);
|
|
@@ -564,10 +562,10 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
564
562
|
i?.(e), t && t.enabled !== !1 && be(e, t);
|
|
565
563
|
break;
|
|
566
564
|
case "presence":
|
|
567
|
-
|
|
565
|
+
a?.(e);
|
|
568
566
|
break;
|
|
569
567
|
case "error":
|
|
570
|
-
|
|
568
|
+
o?.(e);
|
|
571
569
|
break;
|
|
572
570
|
case "joined_thread":
|
|
573
571
|
c?.(e);
|
|
@@ -586,15 +584,15 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
586
584
|
break;
|
|
587
585
|
}
|
|
588
586
|
}), [n]), i;
|
|
589
|
-
},
|
|
590
|
-
let [n, r] =
|
|
587
|
+
}, G = (e, t) => t === "short" ? e.split("-")[0] : e, Se = (e, t = "full") => {
|
|
588
|
+
let [n, r] = l(() => {
|
|
591
589
|
let n = e?.language || navigator.language;
|
|
592
|
-
return e && "isInitialized" in e && e.isInitialized,
|
|
590
|
+
return e && "isInitialized" in e && e.isInitialized, G(n, t);
|
|
593
591
|
});
|
|
594
|
-
return
|
|
595
|
-
e && "isInitialized" in e && e.isInitialized && e.language && r(
|
|
592
|
+
return o(() => {
|
|
593
|
+
e && "isInitialized" in e && e.isInitialized && e.language && r(G(e.language, t));
|
|
596
594
|
let n = (e) => {
|
|
597
|
-
r(
|
|
595
|
+
r(G(e, t));
|
|
598
596
|
};
|
|
599
597
|
return e?.on?.("languageChanged", n), () => {
|
|
600
598
|
e?.off?.("languageChanged", n);
|
|
@@ -605,13 +603,13 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
605
603
|
getFilters: () => ({}),
|
|
606
604
|
handleFilter: () => () => {},
|
|
607
605
|
setFilter: () => {}
|
|
608
|
-
},
|
|
606
|
+
}, K = (e) => {
|
|
609
607
|
try {
|
|
610
608
|
return JSON.parse(e);
|
|
611
609
|
} catch {
|
|
612
610
|
return e;
|
|
613
611
|
}
|
|
614
|
-
},
|
|
612
|
+
}, q = (e, t, n) => `${n}_${e}=>${t}`, Te = (e) => e.reduce((e, t) => {
|
|
615
613
|
let n = localStorage.getItem(t);
|
|
616
614
|
if (n) try {
|
|
617
615
|
let t = JSON.parse(n), r = Object.keys(t)?.[0];
|
|
@@ -619,22 +617,22 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
619
617
|
} catch {}
|
|
620
618
|
return e;
|
|
621
619
|
}, {}), Ee = (e) => {
|
|
622
|
-
let { libraries: t, localStorageKeys: n } =
|
|
623
|
-
if (
|
|
620
|
+
let { libraries: t, localStorageKeys: n } = a(v), r = e?.reactRouter || t?.reactRouter, { pathname: i } = r?.useLocation?.() ?? { pathname: "/" }, [o, s] = r?.useSearchParams?.() ?? [new URLSearchParams(), () => {}], [c, u] = l({}), d = n?.filter || Ce, f = e?.syncWithUrl === void 0 ? !0 : e?.syncWithUrl, p = e?.persistToLocalStorage === void 0 ? !0 : e?.persistToLocalStorage;
|
|
621
|
+
if (A) return we;
|
|
624
622
|
if (!r) throw Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of reactRouter.");
|
|
625
623
|
let m = () => Object.keys(localStorage).filter((t) => t.startsWith(d) && t.endsWith(e?.pathname || i)), h = (t, n, r = !0) => {
|
|
626
|
-
let
|
|
624
|
+
let a = q(t, e?.pathname || i, d);
|
|
627
625
|
if (!n || Array.isArray(n) && !n.length) {
|
|
628
|
-
f ? (
|
|
626
|
+
f ? (o.delete(t), s(o)) : u((e) => {
|
|
629
627
|
let n = { ...e };
|
|
630
628
|
return delete n[t], n;
|
|
631
|
-
}), p && localStorage.removeItem(
|
|
629
|
+
}), p && localStorage.removeItem(a);
|
|
632
630
|
return;
|
|
633
631
|
}
|
|
634
|
-
p && r && n && localStorage.setItem(
|
|
635
|
-
...
|
|
632
|
+
p && r && n && localStorage.setItem(a, JSON.stringify({
|
|
633
|
+
...o,
|
|
636
634
|
[t]: n
|
|
637
|
-
})), f && n ? (
|
|
635
|
+
})), f && n ? (o.set(t, JSON.stringify(n)), s(o)) : !f && n && u((e) => ({
|
|
638
636
|
...e,
|
|
639
637
|
[t]: n
|
|
640
638
|
}));
|
|
@@ -642,17 +640,17 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
642
640
|
return {
|
|
643
641
|
getFilter: (t, n) => {
|
|
644
642
|
if (f) {
|
|
645
|
-
let e =
|
|
646
|
-
if (e) return
|
|
643
|
+
let e = o.get(t);
|
|
644
|
+
if (e) return K(e);
|
|
647
645
|
} else {
|
|
648
646
|
let e = c[t];
|
|
649
647
|
if (e !== void 0) return e;
|
|
650
648
|
}
|
|
651
649
|
if (p) {
|
|
652
|
-
let n =
|
|
650
|
+
let n = q(t, e?.pathname || i, d), r = localStorage.getItem(n);
|
|
653
651
|
if (r) try {
|
|
654
652
|
let e = JSON.parse(r)[t];
|
|
655
|
-
return !f && e !== void 0 &&
|
|
653
|
+
return !f && e !== void 0 && u((n) => ({
|
|
656
654
|
...n,
|
|
657
655
|
[t]: e
|
|
658
656
|
})), e;
|
|
@@ -663,7 +661,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
663
661
|
getFilters: () => {
|
|
664
662
|
let e = p ? Te(m()) : {};
|
|
665
663
|
if (f) {
|
|
666
|
-
let t = Array.from(
|
|
664
|
+
let t = Array.from(o.entries()).reduce((e, [t, n]) => (e[t] = K(n), e), {});
|
|
667
665
|
return {
|
|
668
666
|
...e,
|
|
669
667
|
...t
|
|
@@ -684,43 +682,43 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
684
682
|
},
|
|
685
683
|
setFilter: h
|
|
686
684
|
};
|
|
687
|
-
},
|
|
688
|
-
let [e, t] =
|
|
689
|
-
return
|
|
685
|
+
}, J = () => document.getElementById(I), De = () => {
|
|
686
|
+
let [e, t] = l(() => !!window.HubSpotConversations);
|
|
687
|
+
return o(() => {
|
|
690
688
|
if (window.HubSpotConversations) {
|
|
691
689
|
t(!0);
|
|
692
690
|
return;
|
|
693
691
|
}
|
|
694
692
|
window.hsConversationsOnReady = [() => t(!0)];
|
|
695
|
-
}, []),
|
|
693
|
+
}, []), o(() => {
|
|
696
694
|
e && window.HubSpotConversations?.on("widgetClosed", () => {
|
|
697
|
-
|
|
695
|
+
J()?.classList.remove(L);
|
|
698
696
|
});
|
|
699
697
|
}, [e]), {
|
|
700
698
|
isAvailable: e,
|
|
701
|
-
toggle:
|
|
702
|
-
let e = window.HubSpotConversations, t =
|
|
703
|
-
e && t && (t.classList.contains("hs-show") ? (e.widget.close(), t.classList.remove(
|
|
699
|
+
toggle: i(() => {
|
|
700
|
+
let e = window.HubSpotConversations, t = J();
|
|
701
|
+
e && t && (t.classList.contains("hs-show") ? (e.widget.close(), t.classList.remove(L)) : (t.classList.add(L), e.widget.open()));
|
|
704
702
|
}, [])
|
|
705
703
|
};
|
|
706
|
-
}, Oe = ({ data: e, fetchNextPage: t, isFetchingNextPage: n, isInitialLoading: r, isLoading:
|
|
707
|
-
let
|
|
704
|
+
}, Oe = ({ data: e, fetchNextPage: t, isFetchingNextPage: n, isInitialLoading: r, isLoading: a, enabled: o = !0 }) => {
|
|
705
|
+
let c = i(async (e) => {
|
|
708
706
|
n || !o || await t({ pageParam: e?.pageParam || e.visibleRowsCount });
|
|
709
707
|
}, [
|
|
710
708
|
o,
|
|
711
709
|
t,
|
|
712
710
|
n
|
|
713
|
-
]), l =
|
|
711
|
+
]), l = s(() => {
|
|
714
712
|
if (e) return e.pages.reduce((e, t) => [...e, ...t], []);
|
|
715
713
|
}, [e]);
|
|
716
714
|
return {
|
|
717
|
-
fetchNextPageOnRowsScrollEnd:
|
|
718
|
-
isLoading: n ||
|
|
715
|
+
fetchNextPageOnRowsScrollEnd: c,
|
|
716
|
+
isLoading: n || a,
|
|
719
717
|
loadingVariant: r ? "skeleton" : "linear-progress",
|
|
720
718
|
rows: l
|
|
721
719
|
};
|
|
722
720
|
}, ke = (e) => {
|
|
723
|
-
let { libraries: t } =
|
|
721
|
+
let { libraries: t } = a(v), n = e?.i18 || t?.i18, r = e?.i18?.translateFunction || t?.i18?.translateFunction, o = n?.i18next?.t || r || ((e) => e), { unknownErrorTranslationKey: s = "error.unknownError" } = e || {}, c = o(s), l = i((e) => {
|
|
724
722
|
if (e && typeof e == "object" && "response" in e) {
|
|
725
723
|
let { response: t } = e || {};
|
|
726
724
|
if (t && typeof t == "object" && "reason" in t && t.reason) return String(t.reason);
|
|
@@ -737,17 +735,17 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
737
735
|
return e instanceof Error ? e.message : c;
|
|
738
736
|
}, [c]);
|
|
739
737
|
return {
|
|
740
|
-
getErrorCode:
|
|
738
|
+
getErrorCode: i((e) => {
|
|
741
739
|
let { response: t } = e || {};
|
|
742
740
|
return t?.error_code ? String(t?.error_code) : t?.data?.error_code ? String(t?.data?.error_code) : t?.error_code ? String(t?.error_code) : t?.data?.error_code ? String(t.data.error_code) : "unknown_error_code";
|
|
743
741
|
}, []),
|
|
744
742
|
printError: l
|
|
745
743
|
};
|
|
746
|
-
},
|
|
747
|
-
if (!
|
|
744
|
+
}, Y = "chunk-reload-timestamp", X = "chunk-reload", Ae = 1e4, Z = 2, Q = !1;
|
|
745
|
+
if (!A && typeof window < "u") {
|
|
748
746
|
try {
|
|
749
747
|
let e = new URL(window.location.href);
|
|
750
|
-
e.searchParams.has(
|
|
748
|
+
e.searchParams.has(X) && (Q = !0, e.searchParams.delete(X), window.history.replaceState(null, "", e.toString()));
|
|
751
749
|
} catch {}
|
|
752
750
|
window.addEventListener("vite:preloadError", (e) => {
|
|
753
751
|
e.preventDefault();
|
|
@@ -768,12 +766,12 @@ var je = (e) => {
|
|
|
768
766
|
sessionStorage.setItem(e, t);
|
|
769
767
|
} catch {}
|
|
770
768
|
}, Ie = (e) => Function("url", "return import(url)")(e), Le = async (e) => {
|
|
771
|
-
for (let t = 0; t <
|
|
769
|
+
for (let t = 0; t < Z; t++) try {
|
|
772
770
|
return await Ie(`${e}?t=${Date.now()}`);
|
|
773
771
|
} catch {
|
|
774
|
-
t <
|
|
772
|
+
t < Z - 1 && await new Promise((e) => setTimeout(e, 500 * 2 ** t));
|
|
775
773
|
}
|
|
776
|
-
throw Error(`Failed to import ${e} after ${
|
|
774
|
+
throw Error(`Failed to import ${e} after ${Z} retries`);
|
|
777
775
|
}, Re = async () => {
|
|
778
776
|
try {
|
|
779
777
|
if (typeof navigator < "u" && "serviceWorker" in navigator) {
|
|
@@ -788,24 +786,24 @@ var je = (e) => {
|
|
|
788
786
|
}, ze = async () => {
|
|
789
787
|
await Re();
|
|
790
788
|
let e = new URL(window.location.href);
|
|
791
|
-
e.searchParams.set(
|
|
792
|
-
},
|
|
789
|
+
e.searchParams.set(X, String(Date.now())), window.location.replace(e.toString());
|
|
790
|
+
}, $ = (e) => e != null && e.default !== void 0, Be = (e) => r(async () => {
|
|
793
791
|
let t;
|
|
794
792
|
try {
|
|
795
793
|
let n = await e();
|
|
796
|
-
if (
|
|
794
|
+
if ($(n)) return n;
|
|
797
795
|
t = /* @__PURE__ */ Error("Module resolved without a valid default export");
|
|
798
796
|
} catch (e) {
|
|
799
797
|
t = e;
|
|
800
798
|
}
|
|
801
|
-
if (
|
|
799
|
+
if (A || !je(t)) throw t;
|
|
802
800
|
let n = Ne(e);
|
|
803
801
|
if (n) try {
|
|
804
802
|
let e = await Le(n);
|
|
805
|
-
if (
|
|
803
|
+
if ($(e)) return e;
|
|
806
804
|
} catch {}
|
|
807
|
-
let r = Number(Pe(
|
|
808
|
-
return Date.now() - r < Ae ||
|
|
805
|
+
let r = Number(Pe(Y) || "0");
|
|
806
|
+
return Date.now() - r < Ae || Q || (Fe(Y, String(Date.now())), await ze()), { default: () => null };
|
|
809
807
|
});
|
|
810
808
|
//#endregion
|
|
811
|
-
export {
|
|
809
|
+
export { D as AutoReloadOnNewVersion, g as ChatClient, V as ChatContext, ue as ChatProvider, O as GTMSendPageView, k as InitializeAmplitude, M as InitializeAxiosConfig, F as InitializeDaysJSConfig, ee as InitializeHubSpot, te as InitializeI18nConfig, ne as InitializeSentryConfig, v as InjectDependenciesContext, y as InjectDependenciesProvider, _ as MaskTextField, pe as QueryProvider, ie as RequireAuth, N as SUPPORTED_LANGUAGE, ae as ShowHubSpotBubble, H as dateAdapter, U as distanceAdapter, e as getOrvalConfig, Be as lazyWithRetry, ge as useAdapter, _e as useAmplitude, ve as useAuth, xe as useChat, Se as useCurrentLanguage, Ee as useFilters, De as useHubSpot, Oe as useInfiniteDataGrid, ke as useResponseError, W as worksiteNameAdapter };
|
package/dist/orval.js
CHANGED
package/package.json
CHANGED
package/dist/ar-DxWKHrrW.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./chunk-D8eiyYIV.js";
|
|
2
|
-
//#region node_modules/dayjs/locale/ar.js
|
|
3
|
-
var n = /* @__PURE__ */ t(((t, n) => {
|
|
4
|
-
(function(r, i) {
|
|
5
|
-
typeof t == "object" && n !== void 0 ? n.exports = i(e("dayjs")) : typeof define == "function" && define.amd ? define(["dayjs"], i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs_locale_ar = i(r.dayjs);
|
|
6
|
-
})(t, (function(e) {
|
|
7
|
-
function t(e) {
|
|
8
|
-
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
9
|
-
}
|
|
10
|
-
var n = t(e), r = "يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"), i = {
|
|
11
|
-
1: "١",
|
|
12
|
-
2: "٢",
|
|
13
|
-
3: "٣",
|
|
14
|
-
4: "٤",
|
|
15
|
-
5: "٥",
|
|
16
|
-
6: "٦",
|
|
17
|
-
7: "٧",
|
|
18
|
-
8: "٨",
|
|
19
|
-
9: "٩",
|
|
20
|
-
0: "٠"
|
|
21
|
-
}, a = {
|
|
22
|
-
"١": "1",
|
|
23
|
-
"٢": "2",
|
|
24
|
-
"٣": "3",
|
|
25
|
-
"٤": "4",
|
|
26
|
-
"٥": "5",
|
|
27
|
-
"٦": "6",
|
|
28
|
-
"٧": "7",
|
|
29
|
-
"٨": "8",
|
|
30
|
-
"٩": "9",
|
|
31
|
-
"٠": "0"
|
|
32
|
-
}, o = /[١٢٣٤٥٦٧٨٩٠]/g, s = /،/g, c = /\d/g, l = /,/g, u = {
|
|
33
|
-
name: "ar",
|
|
34
|
-
weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
|
|
35
|
-
weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
|
|
36
|
-
weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
|
|
37
|
-
months: r,
|
|
38
|
-
monthsShort: r,
|
|
39
|
-
weekStart: 6,
|
|
40
|
-
meridiem: function(e) {
|
|
41
|
-
return e > 12 ? "م" : "ص";
|
|
42
|
-
},
|
|
43
|
-
relativeTime: {
|
|
44
|
-
future: "بعد %s",
|
|
45
|
-
past: "منذ %s",
|
|
46
|
-
s: "ثانية واحدة",
|
|
47
|
-
m: "دقيقة واحدة",
|
|
48
|
-
mm: "%d دقائق",
|
|
49
|
-
h: "ساعة واحدة",
|
|
50
|
-
hh: "%d ساعات",
|
|
51
|
-
d: "يوم واحد",
|
|
52
|
-
dd: "%d أيام",
|
|
53
|
-
M: "شهر واحد",
|
|
54
|
-
MM: "%d أشهر",
|
|
55
|
-
y: "عام واحد",
|
|
56
|
-
yy: "%d أعوام"
|
|
57
|
-
},
|
|
58
|
-
preparse: function(e) {
|
|
59
|
-
return e.replace(o, (function(e) {
|
|
60
|
-
return a[e];
|
|
61
|
-
})).replace(s, ",");
|
|
62
|
-
},
|
|
63
|
-
postformat: function(e) {
|
|
64
|
-
return e.replace(c, (function(e) {
|
|
65
|
-
return i[e];
|
|
66
|
-
})).replace(l, "،");
|
|
67
|
-
},
|
|
68
|
-
ordinal: function(e) {
|
|
69
|
-
return e;
|
|
70
|
-
},
|
|
71
|
-
formats: {
|
|
72
|
-
LT: "HH:mm",
|
|
73
|
-
LTS: "HH:mm:ss",
|
|
74
|
-
L: "D/M/YYYY",
|
|
75
|
-
LL: "D MMMM YYYY",
|
|
76
|
-
LLL: "D MMMM YYYY HH:mm",
|
|
77
|
-
LLLL: "dddd D MMMM YYYY HH:mm"
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
return n.default.locale(u, null, !0), u;
|
|
81
|
-
}));
|
|
82
|
-
}));
|
|
83
|
-
//#endregion
|
|
84
|
-
export default n();
|
package/dist/chunk-D8eiyYIV.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
|
-
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
|
-
get: ((e) => i[e]).bind(null, d),
|
|
5
|
-
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
-
});
|
|
7
|
-
return e;
|
|
8
|
-
}, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
|
|
9
|
-
value: n,
|
|
10
|
-
enumerable: !0
|
|
11
|
-
}) : a, n)), l = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
12
|
-
if (typeof require < "u") return require.apply(this, arguments);
|
|
13
|
-
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
14
|
-
});
|
|
15
|
-
//#endregion
|
|
16
|
-
export { l as n, c as r, o as t };
|
package/dist/de-B9uAlw43.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./chunk-D8eiyYIV.js";
|
|
2
|
-
//#region node_modules/dayjs/locale/de.js
|
|
3
|
-
var n = /* @__PURE__ */ t(((t, n) => {
|
|
4
|
-
(function(r, i) {
|
|
5
|
-
typeof t == "object" && n !== void 0 ? n.exports = i(e("dayjs")) : typeof define == "function" && define.amd ? define(["dayjs"], i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs_locale_de = i(r.dayjs);
|
|
6
|
-
})(t, (function(e) {
|
|
7
|
-
function t(e) {
|
|
8
|
-
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
9
|
-
}
|
|
10
|
-
var n = t(e), r = {
|
|
11
|
-
s: "ein paar Sekunden",
|
|
12
|
-
m: ["eine Minute", "einer Minute"],
|
|
13
|
-
mm: "%d Minuten",
|
|
14
|
-
h: ["eine Stunde", "einer Stunde"],
|
|
15
|
-
hh: "%d Stunden",
|
|
16
|
-
d: ["ein Tag", "einem Tag"],
|
|
17
|
-
dd: ["%d Tage", "%d Tagen"],
|
|
18
|
-
M: ["ein Monat", "einem Monat"],
|
|
19
|
-
MM: ["%d Monate", "%d Monaten"],
|
|
20
|
-
y: ["ein Jahr", "einem Jahr"],
|
|
21
|
-
yy: ["%d Jahre", "%d Jahren"]
|
|
22
|
-
};
|
|
23
|
-
function i(e, t, n) {
|
|
24
|
-
var i = r[n];
|
|
25
|
-
return Array.isArray(i) && (i = i[+!t]), i.replace("%d", e);
|
|
26
|
-
}
|
|
27
|
-
var a = {
|
|
28
|
-
name: "de",
|
|
29
|
-
weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
|
|
30
|
-
weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
|
|
31
|
-
weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
|
|
32
|
-
months: "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
|
|
33
|
-
monthsShort: "Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),
|
|
34
|
-
ordinal: function(e) {
|
|
35
|
-
return e + ".";
|
|
36
|
-
},
|
|
37
|
-
weekStart: 1,
|
|
38
|
-
yearStart: 4,
|
|
39
|
-
formats: {
|
|
40
|
-
LTS: "HH:mm:ss",
|
|
41
|
-
LT: "HH:mm",
|
|
42
|
-
L: "DD.MM.YYYY",
|
|
43
|
-
LL: "D. MMMM YYYY",
|
|
44
|
-
LLL: "D. MMMM YYYY HH:mm",
|
|
45
|
-
LLLL: "dddd, D. MMMM YYYY HH:mm"
|
|
46
|
-
},
|
|
47
|
-
relativeTime: {
|
|
48
|
-
future: "in %s",
|
|
49
|
-
past: "vor %s",
|
|
50
|
-
s: i,
|
|
51
|
-
m: i,
|
|
52
|
-
mm: i,
|
|
53
|
-
h: i,
|
|
54
|
-
hh: i,
|
|
55
|
-
d: i,
|
|
56
|
-
dd: i,
|
|
57
|
-
M: i,
|
|
58
|
-
MM: i,
|
|
59
|
-
y: i,
|
|
60
|
-
yy: i
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
return n.default.locale(a, null, !0), a;
|
|
64
|
-
}));
|
|
65
|
-
}));
|
|
66
|
-
//#endregion
|
|
67
|
-
export default n();
|
package/dist/es-Czh059B4.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./chunk-D8eiyYIV.js";
|
|
2
|
-
//#region node_modules/dayjs/locale/es.js
|
|
3
|
-
var n = /* @__PURE__ */ t(((t, n) => {
|
|
4
|
-
(function(r, i) {
|
|
5
|
-
typeof t == "object" && n !== void 0 ? n.exports = i(e("dayjs")) : typeof define == "function" && define.amd ? define(["dayjs"], i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs_locale_es = i(r.dayjs);
|
|
6
|
-
})(t, (function(e) {
|
|
7
|
-
function t(e) {
|
|
8
|
-
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
9
|
-
}
|
|
10
|
-
var n = t(e), r = {
|
|
11
|
-
name: "es",
|
|
12
|
-
monthsShort: "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),
|
|
13
|
-
weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),
|
|
14
|
-
weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"),
|
|
15
|
-
weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"),
|
|
16
|
-
months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),
|
|
17
|
-
weekStart: 1,
|
|
18
|
-
formats: {
|
|
19
|
-
LT: "H:mm",
|
|
20
|
-
LTS: "H:mm:ss",
|
|
21
|
-
L: "DD/MM/YYYY",
|
|
22
|
-
LL: "D [de] MMMM [de] YYYY",
|
|
23
|
-
LLL: "D [de] MMMM [de] YYYY H:mm",
|
|
24
|
-
LLLL: "dddd, D [de] MMMM [de] YYYY H:mm"
|
|
25
|
-
},
|
|
26
|
-
relativeTime: {
|
|
27
|
-
future: "en %s",
|
|
28
|
-
past: "hace %s",
|
|
29
|
-
s: "unos segundos",
|
|
30
|
-
m: "un minuto",
|
|
31
|
-
mm: "%d minutos",
|
|
32
|
-
h: "una hora",
|
|
33
|
-
hh: "%d horas",
|
|
34
|
-
d: "un día",
|
|
35
|
-
dd: "%d días",
|
|
36
|
-
M: "un mes",
|
|
37
|
-
MM: "%d meses",
|
|
38
|
-
y: "un año",
|
|
39
|
-
yy: "%d años"
|
|
40
|
-
},
|
|
41
|
-
ordinal: function(e) {
|
|
42
|
-
return e + "º";
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
return n.default.locale(r, null, !0), r;
|
|
46
|
-
}));
|
|
47
|
-
}));
|
|
48
|
-
//#endregion
|
|
49
|
-
export default n();
|
package/dist/it-BMMOnRzo.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./chunk-D8eiyYIV.js";
|
|
2
|
-
//#region node_modules/dayjs/locale/it.js
|
|
3
|
-
var n = /* @__PURE__ */ t(((t, n) => {
|
|
4
|
-
(function(r, i) {
|
|
5
|
-
typeof t == "object" && n !== void 0 ? n.exports = i(e("dayjs")) : typeof define == "function" && define.amd ? define(["dayjs"], i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs_locale_it = i(r.dayjs);
|
|
6
|
-
})(t, (function(e) {
|
|
7
|
-
function t(e) {
|
|
8
|
-
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
9
|
-
}
|
|
10
|
-
var n = t(e), r = {
|
|
11
|
-
name: "it",
|
|
12
|
-
weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),
|
|
13
|
-
weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"),
|
|
14
|
-
weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"),
|
|
15
|
-
months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),
|
|
16
|
-
weekStart: 1,
|
|
17
|
-
monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),
|
|
18
|
-
formats: {
|
|
19
|
-
LT: "HH:mm",
|
|
20
|
-
LTS: "HH:mm:ss",
|
|
21
|
-
L: "DD/MM/YYYY",
|
|
22
|
-
LL: "D MMMM YYYY",
|
|
23
|
-
LLL: "D MMMM YYYY HH:mm",
|
|
24
|
-
LLLL: "dddd D MMMM YYYY HH:mm"
|
|
25
|
-
},
|
|
26
|
-
relativeTime: {
|
|
27
|
-
future: "tra %s",
|
|
28
|
-
past: "%s fa",
|
|
29
|
-
s: "qualche secondo",
|
|
30
|
-
m: "un minuto",
|
|
31
|
-
mm: "%d minuti",
|
|
32
|
-
h: "un'ora",
|
|
33
|
-
hh: "%d ore",
|
|
34
|
-
d: "un giorno",
|
|
35
|
-
dd: "%d giorni",
|
|
36
|
-
M: "un mese",
|
|
37
|
-
MM: "%d mesi",
|
|
38
|
-
y: "un anno",
|
|
39
|
-
yy: "%d anni"
|
|
40
|
-
},
|
|
41
|
-
ordinal: function(e) {
|
|
42
|
-
return e + "º";
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
return n.default.locale(r, null, !0), r;
|
|
46
|
-
}));
|
|
47
|
-
}));
|
|
48
|
-
//#endregion
|
|
49
|
-
export default n();
|
package/dist/pt-cqbtpCpu.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./chunk-D8eiyYIV.js";
|
|
2
|
-
//#region node_modules/dayjs/locale/pt.js
|
|
3
|
-
var n = /* @__PURE__ */ t(((t, n) => {
|
|
4
|
-
(function(r, i) {
|
|
5
|
-
typeof t == "object" && n !== void 0 ? n.exports = i(e("dayjs")) : typeof define == "function" && define.amd ? define(["dayjs"], i) : (r = typeof globalThis < "u" ? globalThis : r || self).dayjs_locale_pt = i(r.dayjs);
|
|
6
|
-
})(t, (function(e) {
|
|
7
|
-
function t(e) {
|
|
8
|
-
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
9
|
-
}
|
|
10
|
-
var n = t(e), r = {
|
|
11
|
-
name: "pt",
|
|
12
|
-
weekdays: "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),
|
|
13
|
-
weekdaysShort: "dom_seg_ter_qua_qui_sex_sab".split("_"),
|
|
14
|
-
weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),
|
|
15
|
-
months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),
|
|
16
|
-
monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),
|
|
17
|
-
ordinal: function(e) {
|
|
18
|
-
return e + "º";
|
|
19
|
-
},
|
|
20
|
-
weekStart: 1,
|
|
21
|
-
yearStart: 4,
|
|
22
|
-
formats: {
|
|
23
|
-
LT: "HH:mm",
|
|
24
|
-
LTS: "HH:mm:ss",
|
|
25
|
-
L: "DD/MM/YYYY",
|
|
26
|
-
LL: "D [de] MMMM [de] YYYY",
|
|
27
|
-
LLL: "D [de] MMMM [de] YYYY [às] HH:mm",
|
|
28
|
-
LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm"
|
|
29
|
-
},
|
|
30
|
-
relativeTime: {
|
|
31
|
-
future: "em %s",
|
|
32
|
-
past: "há %s",
|
|
33
|
-
s: "alguns segundos",
|
|
34
|
-
m: "um minuto",
|
|
35
|
-
mm: "%d minutos",
|
|
36
|
-
h: "uma hora",
|
|
37
|
-
hh: "%d horas",
|
|
38
|
-
d: "um dia",
|
|
39
|
-
dd: "%d dias",
|
|
40
|
-
M: "um mês",
|
|
41
|
-
MM: "%d meses",
|
|
42
|
-
y: "um ano",
|
|
43
|
-
yy: "%d anos"
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
return n.default.locale(r, null, !0), r;
|
|
47
|
-
}));
|
|
48
|
-
}));
|
|
49
|
-
//#endregion
|
|
50
|
-
export default n();
|
|
File without changes
|