@getsoren/shared-module 2.46.0 → 2.46.1
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 +200 -201
- 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,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
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";
|
|
5
4
|
//#region src/chat/ChatClient.ts
|
|
6
|
-
var
|
|
5
|
+
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
6
|
url;
|
|
8
7
|
getToken;
|
|
9
8
|
onEvent;
|
|
@@ -21,7 +20,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
21
20
|
_connected = !1;
|
|
22
21
|
_ready = !1;
|
|
23
22
|
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 ??
|
|
23
|
+
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
24
|
}
|
|
26
25
|
get connected() {
|
|
27
26
|
return this._connected;
|
|
@@ -38,7 +37,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
38
37
|
this._connected = !0, this.reconnectAttempt = 0, this.onConnectionChange?.(!0), this.rejoinThreads(), this.flushPendingMessages();
|
|
39
38
|
}, this.ws.onmessage = (e) => {
|
|
40
39
|
try {
|
|
41
|
-
let t =
|
|
40
|
+
let t = m(JSON.parse(e.data));
|
|
42
41
|
t.type === "ready" && (this._ready = !0), this.onEvent?.(t);
|
|
43
42
|
} catch {}
|
|
44
43
|
}, this.ws.onclose = () => {
|
|
@@ -86,7 +85,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
86
85
|
this.pendingMessages.push(e);
|
|
87
86
|
return;
|
|
88
87
|
}
|
|
89
|
-
this.ws.send(JSON.stringify(
|
|
88
|
+
this.ws.send(JSON.stringify(h(e)));
|
|
90
89
|
}
|
|
91
90
|
flushPendingMessages() {
|
|
92
91
|
let e = [...this.pendingMessages];
|
|
@@ -101,7 +100,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
101
100
|
}
|
|
102
101
|
scheduleReconnect() {
|
|
103
102
|
this.clearReconnectTimer();
|
|
104
|
-
let e = Math.min(this.reconnectBaseDelay * 2 ** this.reconnectAttempt,
|
|
103
|
+
let e = Math.min(this.reconnectBaseDelay * 2 ** this.reconnectAttempt, d);
|
|
105
104
|
this.reconnectAttempt++, this.reconnectTimer = setTimeout(() => {
|
|
106
105
|
this.connect();
|
|
107
106
|
}, e);
|
|
@@ -109,8 +108,8 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
109
108
|
clearReconnectTimer() {
|
|
110
109
|
this.reconnectTimer !== null && (clearTimeout(this.reconnectTimer), this.reconnectTimer = null);
|
|
111
110
|
}
|
|
112
|
-
},
|
|
113
|
-
let i =
|
|
111
|
+
}, _ = ({ 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 }) => {
|
|
112
|
+
let i = s(() => ({
|
|
114
113
|
apiURL: t,
|
|
115
114
|
libraries: n,
|
|
116
115
|
localStorageKeys: r
|
|
@@ -119,34 +118,34 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
119
118
|
n,
|
|
120
119
|
r
|
|
121
120
|
]);
|
|
122
|
-
return /* @__PURE__ */
|
|
121
|
+
return /* @__PURE__ */ u(v.Provider, {
|
|
123
122
|
value: i,
|
|
124
123
|
children: e
|
|
125
124
|
});
|
|
126
|
-
},
|
|
125
|
+
}, b = 900 * 1e3, x = 60 * 1e3, S = 600 * 1e3, C = "auto-reload-on-new-version-timestamp", w = /<meta[^>]*name="version"[^>]*content="([^"]*)"/, T = (e) => {
|
|
127
126
|
try {
|
|
128
127
|
return sessionStorage.getItem(e);
|
|
129
128
|
} catch {
|
|
130
129
|
return null;
|
|
131
130
|
}
|
|
132
|
-
},
|
|
131
|
+
}, E = (e, t) => {
|
|
133
132
|
try {
|
|
134
133
|
sessionStorage.setItem(e, t);
|
|
135
134
|
} catch {}
|
|
136
|
-
},
|
|
137
|
-
let { libraries: i } =
|
|
138
|
-
if (!
|
|
139
|
-
let { useLocation: f, Outlet: p } =
|
|
140
|
-
return
|
|
135
|
+
}, D = ({ version: e, checkInterval: t = b, children: n, ...r }) => {
|
|
136
|
+
let { libraries: i } = a(v), s = r?.reactRouter || i?.reactRouter, l = c(!1), d = c(0);
|
|
137
|
+
if (!s) throw Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of AutoReloadOnNewVersion.");
|
|
138
|
+
let { useLocation: f, Outlet: p } = s, { pathname: m } = f(), h = c(m);
|
|
139
|
+
return o(() => {
|
|
141
140
|
if (!e || typeof window > "u") return;
|
|
142
141
|
let n = async () => {
|
|
143
|
-
if (!(
|
|
144
|
-
|
|
142
|
+
if (!(l.current || Date.now() - d.current < x)) {
|
|
143
|
+
d.current = Date.now();
|
|
145
144
|
try {
|
|
146
145
|
let t = await fetch("/index.html", { cache: "no-store" });
|
|
147
146
|
if (!t.ok) return;
|
|
148
|
-
let n = (await t.text()).match(
|
|
149
|
-
n && n !== "%VERSION%" && n !== e && (
|
|
147
|
+
let n = (await t.text()).match(w)?.[1];
|
|
148
|
+
n && n !== "%VERSION%" && n !== e && (l.current = !0);
|
|
150
149
|
} catch {}
|
|
151
150
|
}
|
|
152
151
|
}, r = () => {
|
|
@@ -155,34 +154,34 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
155
154
|
return document.addEventListener("visibilitychange", r), () => {
|
|
156
155
|
clearInterval(i), document.removeEventListener("visibilitychange", r);
|
|
157
156
|
};
|
|
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 } =
|
|
157
|
+
}, [e, t]), o(() => {
|
|
158
|
+
if (m === h.current || (h.current = m, !l.current)) return;
|
|
159
|
+
l.current = !1;
|
|
160
|
+
let e = Number(T(C) || "0");
|
|
161
|
+
Date.now() - e < S || (E(C, String(Date.now())), window.location.reload());
|
|
162
|
+
}, [m]), n ?? /* @__PURE__ */ u(p, {});
|
|
163
|
+
}, O = ({ data: e, ...t }) => {
|
|
164
|
+
let { libraries: n } = a(v), r = t?.reactRouter || n?.reactRouter, i = t?.gtm || n?.gtm;
|
|
166
165
|
if (!r) throw Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of GTMSendPageView.");
|
|
167
166
|
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
|
|
167
|
+
let { useGoogleTagManager: s } = i, { useLocation: c, Outlet: l } = r, { pathname: d } = c(), { sendEvent: f } = s();
|
|
168
|
+
return o(() => {
|
|
170
169
|
f({
|
|
171
170
|
event: "pageView",
|
|
172
|
-
pathname:
|
|
171
|
+
pathname: d,
|
|
173
172
|
...e
|
|
174
173
|
});
|
|
175
174
|
}, [
|
|
176
175
|
e,
|
|
177
|
-
|
|
176
|
+
d,
|
|
178
177
|
f
|
|
179
|
-
]), /* @__PURE__ */
|
|
180
|
-
},
|
|
181
|
-
let { libraries: i } =
|
|
182
|
-
return
|
|
183
|
-
let r =
|
|
178
|
+
]), /* @__PURE__ */ u(l, {});
|
|
179
|
+
}, k = ({ apiKey: e, platform: t = "desktop", sessionReplaySampleRate: n = .25, ...r }) => {
|
|
180
|
+
let { libraries: i } = a(v), s = r.amplitude || i?.amplitude;
|
|
181
|
+
return o(() => {
|
|
182
|
+
let r = s?.analytics, i = s?.sessionReplayPlugin;
|
|
184
183
|
if (!(e && r)) return;
|
|
185
|
-
let
|
|
184
|
+
let a = "platform-enrichment";
|
|
186
185
|
return r.init(e, { autocapture: { elementInteractions: !1 } }), i && r.add(i({ sampleRate: n })), r.add({
|
|
187
186
|
execute: async (e) => ({
|
|
188
187
|
...e,
|
|
@@ -191,33 +190,33 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
191
190
|
platform: t
|
|
192
191
|
}
|
|
193
192
|
}),
|
|
194
|
-
name:
|
|
193
|
+
name: a,
|
|
195
194
|
type: "enrichment"
|
|
196
195
|
}), () => {
|
|
197
|
-
i && r.remove("@amplitude/plugin-session-replay-browser"), r.remove(
|
|
196
|
+
i && r.remove("@amplitude/plugin-session-replay-browser"), r.remove(a);
|
|
198
197
|
};
|
|
199
198
|
}, [
|
|
200
199
|
e,
|
|
201
|
-
|
|
200
|
+
s,
|
|
202
201
|
t,
|
|
203
202
|
n
|
|
204
203
|
]), null;
|
|
205
|
-
},
|
|
204
|
+
}, A = (() => {
|
|
206
205
|
try {
|
|
207
206
|
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
207
|
} catch {
|
|
209
208
|
return !1;
|
|
210
209
|
}
|
|
211
|
-
})(),
|
|
212
|
-
let { apiURL: i = r.apiURL, libraries:
|
|
210
|
+
})(), j = "user", M = ({ tokenTypeKey: e = "tokenType", tokenKey: t = "accessToken", postContentType: n = "application/json", ...r }) => {
|
|
211
|
+
let { apiURL: i = r.apiURL, libraries: o, localStorageKeys: s } = a(v), c = r?.userLocalStorageKey || s?.user || j, l = r?.axios || o?.axios;
|
|
213
212
|
if (!l) throw Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
214
|
-
if (!l?.defaults ||
|
|
213
|
+
if (!l?.defaults || A) return null;
|
|
215
214
|
if (typeof window < "u" && window.localStorage) {
|
|
216
215
|
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
216
|
o && (l.defaults.headers.common.Authorization = o);
|
|
218
217
|
}
|
|
219
218
|
return l.defaults.baseURL = i, l.defaults.headers.post["Content-Type"] = n, null;
|
|
220
|
-
},
|
|
219
|
+
}, N = [
|
|
221
220
|
"ar",
|
|
222
221
|
"de",
|
|
223
222
|
"en",
|
|
@@ -225,41 +224,41 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
225
224
|
"fr",
|
|
226
225
|
"it",
|
|
227
226
|
"pt"
|
|
228
|
-
],
|
|
229
|
-
let { libraries:
|
|
230
|
-
if (!
|
|
231
|
-
return
|
|
227
|
+
], P = (e) => N.includes(e), F = ({ language: e, ...t }) => {
|
|
228
|
+
let { libraries: n } = a(v), r = t?.dayjs || n?.dayjs, i = t?.plugin || n?.dayjsPlugin;
|
|
229
|
+
if (!r) throw Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props of InitializeDaysJSConfig.");
|
|
230
|
+
return o(() => {
|
|
232
231
|
(async () => {
|
|
233
|
-
let
|
|
234
|
-
|
|
235
|
-
e &&
|
|
236
|
-
}), await import("
|
|
232
|
+
let n = e || navigator.language?.slice(0, 2) || "en";
|
|
233
|
+
r.extend(t.localizedFormat), i && i.forEach((e) => {
|
|
234
|
+
e && r.extend(e);
|
|
235
|
+
}), await import("dayjs/locale/ar"), await import("dayjs/locale/de"), await import("dayjs/locale/en"), await import("dayjs/locale/es"), await import("dayjs/locale/fr"), await import("dayjs/locale/it"), await import("dayjs/locale/pt"), r.locale(P(n) ? n : "en");
|
|
237
236
|
})().then();
|
|
238
237
|
}, [
|
|
238
|
+
r,
|
|
239
239
|
i,
|
|
240
|
-
|
|
241
|
-
t
|
|
242
|
-
n.localizedFormat
|
|
240
|
+
e,
|
|
241
|
+
t.localizedFormat
|
|
243
242
|
]), null;
|
|
244
|
-
},
|
|
243
|
+
}, I = "hubspot-messages-iframe-container", L = "hs-show", R = "data-hs-hidden", ee = ({ hubId: e }) => (o(() => {
|
|
245
244
|
if (!e) return;
|
|
246
245
|
let t = document.createElement("script");
|
|
247
246
|
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
247
|
t.remove();
|
|
249
248
|
};
|
|
250
|
-
}, [e]),
|
|
249
|
+
}, [e]), o(() => {
|
|
251
250
|
let e = document.createElement("style");
|
|
252
251
|
return e.textContent = `
|
|
253
|
-
html[${
|
|
254
|
-
html[${
|
|
255
|
-
`, document.head.appendChild(e), document.documentElement.setAttribute(
|
|
256
|
-
e.remove(), document.documentElement.removeAttribute(
|
|
252
|
+
html[${R}] div#${I} { display: none !important; }
|
|
253
|
+
html[${R}] div#${I}.${L} { display: initial !important; }
|
|
254
|
+
`, document.head.appendChild(e), document.documentElement.setAttribute(R, ""), () => {
|
|
255
|
+
e.remove(), document.documentElement.removeAttribute(R);
|
|
257
256
|
};
|
|
258
257
|
}, []), null), te = ({ debug: e, resources: t, ...n }) => {
|
|
259
|
-
let { libraries: r } =
|
|
260
|
-
if (
|
|
261
|
-
if (!(i &&
|
|
262
|
-
return
|
|
258
|
+
let { libraries: r } = a(v), i = n?.i18 || r?.i18, { i18next: o, initReactI18next: s, languageDetector: c } = i || {};
|
|
259
|
+
if (A) return null;
|
|
260
|
+
if (!(i && o && c && s)) throw Error("i18 is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
261
|
+
return o.isInitialized ? null : (o.use(c).use(s).init({
|
|
263
262
|
debug: e,
|
|
264
263
|
fallbackLng: "en",
|
|
265
264
|
interpolation: { escapeValue: !1 },
|
|
@@ -271,16 +270,16 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
271
270
|
resources: t,
|
|
272
271
|
returnNull: !1
|
|
273
272
|
}).then(() => {
|
|
274
|
-
document.documentElement.lang !==
|
|
275
|
-
}),
|
|
273
|
+
document.documentElement.lang !== o.resolvedLanguage && o.resolvedLanguage && document.documentElement.setAttribute("lang", o.resolvedLanguage);
|
|
274
|
+
}), o.on("languageChanged", (e) => {
|
|
276
275
|
document.documentElement.setAttribute("lang", e);
|
|
277
276
|
}), null);
|
|
278
|
-
}, ne = ({ dsn: e, integrations: t, tracesSampleRate: n, replaysSessionSampleRate: r, replaysOnErrorSampleRate: i, tracePropagationTargets:
|
|
279
|
-
let { libraries: p } =
|
|
277
|
+
}, ne = ({ dsn: e, integrations: t, tracesSampleRate: n, replaysSessionSampleRate: r, replaysOnErrorSampleRate: i, tracePropagationTargets: s, ignoreErrors: c, debug: l, environment: u, release: d, ...f }) => {
|
|
278
|
+
let { libraries: p } = a(v), m = f?.sentry || p?.sentry, h = f?.reactRouter || p?.reactRouter;
|
|
280
279
|
if (!m) throw Error("Sentry is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
281
280
|
if (!h) throw Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
282
281
|
if (m.isInitialized()) return null;
|
|
283
|
-
let { createRoutesFromChildren: g, matchRoutes: _, useLocation:
|
|
282
|
+
let { createRoutesFromChildren: g, matchRoutes: _, useLocation: y, useNavigationType: b } = h;
|
|
284
283
|
return (l || process.env.NODE_ENV === "prod" || process.env.NODE_ENV === "production") && m.init({
|
|
285
284
|
debug: l,
|
|
286
285
|
dsn: e,
|
|
@@ -297,41 +296,41 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
297
296
|
integrations: [m.reactRouterV6BrowserTracingIntegration({
|
|
298
297
|
createRoutesFromChildren: g,
|
|
299
298
|
matchRoutes: _,
|
|
300
|
-
useEffect:
|
|
301
|
-
useLocation:
|
|
299
|
+
useEffect: o,
|
|
300
|
+
useLocation: y,
|
|
302
301
|
useNavigationType: b
|
|
303
302
|
}), ...t || []],
|
|
304
303
|
release: d,
|
|
305
304
|
replaysOnErrorSampleRate: i || 1,
|
|
306
305
|
replaysSessionSampleRate: r || .1,
|
|
307
|
-
tracePropagationTargets:
|
|
306
|
+
tracePropagationTargets: s,
|
|
308
307
|
tracesSampleRate: n || 1
|
|
309
308
|
}), null;
|
|
310
|
-
},
|
|
311
|
-
let { libraries: c, localStorageKeys:
|
|
309
|
+
}, z = /* @__PURE__ */ new WeakMap(), re = "user", ie = ({ Fallback: e, isLogged: n, loginPath: r = "/login", redirect401Path: i = "/login", ...s }) => {
|
|
310
|
+
let { libraries: c, localStorageKeys: d } = a(v), f = s?.reactRouter || c?.reactRouter, p = s?.axios || c?.axios, m = s?.localStorageKey || d?.user || re;
|
|
312
311
|
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 && (
|
|
312
|
+
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;
|
|
313
|
+
return o(() => {
|
|
314
|
+
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
315
|
}, [
|
|
317
316
|
p,
|
|
318
317
|
m,
|
|
319
318
|
i
|
|
320
|
-
]), C && !h ? /* @__PURE__ */
|
|
319
|
+
]), C && !h ? /* @__PURE__ */ u(t, {
|
|
321
320
|
fallback: e,
|
|
322
|
-
children: x.state?.from?.state && x.state?.from?.pathname === r ? /* @__PURE__ */
|
|
321
|
+
children: x.state?.from?.state && x.state?.from?.pathname === r ? /* @__PURE__ */ u(y, {
|
|
323
322
|
to: x.state.from.state.from.pathname + x.state.from.state.from.search,
|
|
324
323
|
replace: !0
|
|
325
|
-
}) : /* @__PURE__ */
|
|
326
|
-
}) : /* @__PURE__ */
|
|
324
|
+
}) : /* @__PURE__ */ u(b, {})
|
|
325
|
+
}) : /* @__PURE__ */ u(y, {
|
|
327
326
|
to: r + x.search,
|
|
328
327
|
state: { from: x },
|
|
329
328
|
replace: !0
|
|
330
329
|
});
|
|
331
|
-
},
|
|
330
|
+
}, B = /* @__PURE__ */ new Set(), ae = () => (o(() => {
|
|
332
331
|
let e = Symbol();
|
|
333
|
-
return
|
|
334
|
-
|
|
332
|
+
return B.add(e), document.documentElement.removeAttribute(R), () => {
|
|
333
|
+
B.delete(e), B.size === 0 && document.documentElement.setAttribute(R, "");
|
|
335
334
|
};
|
|
336
335
|
}, []), null), oe = "user", se = {
|
|
337
336
|
client: "/v2/threads/ws",
|
|
@@ -343,36 +342,36 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
343
342
|
} catch {
|
|
344
343
|
return null;
|
|
345
344
|
}
|
|
346
|
-
},
|
|
347
|
-
let [
|
|
348
|
-
|
|
345
|
+
}, 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" }) => {
|
|
346
|
+
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());
|
|
347
|
+
o(() => {
|
|
349
348
|
if (!E) return;
|
|
350
|
-
let e = r ?? se[h],
|
|
351
|
-
if (!
|
|
352
|
-
let
|
|
349
|
+
let e = r ?? se[h], i = n || (D ? ce(D, e) : null);
|
|
350
|
+
if (!i) return;
|
|
351
|
+
let a = () => t ?? le(k), o = (e) => {
|
|
353
352
|
switch (e.type) {
|
|
354
353
|
case "ready":
|
|
355
354
|
x(!0), C(e.unreadCount ?? 0);
|
|
356
355
|
break;
|
|
357
356
|
}
|
|
358
357
|
for (let t of j.current) t(e);
|
|
359
|
-
},
|
|
360
|
-
let e = new
|
|
361
|
-
getToken:
|
|
358
|
+
}, c = setTimeout(() => {
|
|
359
|
+
let e = new g({
|
|
360
|
+
getToken: a,
|
|
362
361
|
maxMessageBodyLength: f,
|
|
363
|
-
maxReconnectAttempts:
|
|
362
|
+
maxReconnectAttempts: s,
|
|
364
363
|
onConnectionChange: (e) => {
|
|
365
|
-
|
|
364
|
+
y(e), e || x(!1);
|
|
366
365
|
},
|
|
367
|
-
onEvent:
|
|
366
|
+
onEvent: o,
|
|
368
367
|
reconnect: p,
|
|
369
|
-
reconnectBaseDelay:
|
|
370
|
-
url:
|
|
368
|
+
reconnectBaseDelay: d,
|
|
369
|
+
url: i
|
|
371
370
|
});
|
|
372
371
|
A.current = e, e.connect();
|
|
373
372
|
}, 0);
|
|
374
373
|
return () => {
|
|
375
|
-
clearTimeout(
|
|
374
|
+
clearTimeout(c), A.current?.disconnect(), A.current = null;
|
|
376
375
|
};
|
|
377
376
|
}, [
|
|
378
377
|
E,
|
|
@@ -384,56 +383,56 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
384
383
|
D,
|
|
385
384
|
k,
|
|
386
385
|
f,
|
|
387
|
-
|
|
388
|
-
|
|
386
|
+
s,
|
|
387
|
+
d
|
|
389
388
|
]);
|
|
390
|
-
let M =
|
|
389
|
+
let M = i((e) => {
|
|
391
390
|
A.current?.joinThread(e);
|
|
392
|
-
}, []), N =
|
|
391
|
+
}, []), N = i((e) => {
|
|
393
392
|
A.current?.leaveThread(e);
|
|
394
|
-
}, []), P =
|
|
393
|
+
}, []), P = i((e, t) => {
|
|
395
394
|
A.current?.sendMessage(e, t);
|
|
396
|
-
}, []), F =
|
|
395
|
+
}, []), F = i((e) => {
|
|
397
396
|
A.current?.markRead(e);
|
|
398
|
-
}, []), I =
|
|
397
|
+
}, []), I = i((e, t) => {
|
|
399
398
|
A.current?.listThreads(e, t);
|
|
400
|
-
}, []), L =
|
|
399
|
+
}, []), L = i((e = 1) => {
|
|
401
400
|
C((t) => t + e);
|
|
402
401
|
}, []), R = {
|
|
403
|
-
decrementUnreadCount:
|
|
402
|
+
decrementUnreadCount: i((e = 1) => {
|
|
404
403
|
C((t) => Math.max(0, t - e));
|
|
405
404
|
}, []),
|
|
406
|
-
disconnect:
|
|
405
|
+
disconnect: i(() => {
|
|
407
406
|
A.current?.disconnect(), A.current = null;
|
|
408
407
|
}, []),
|
|
409
408
|
incrementUnreadCount: L,
|
|
410
|
-
isConnected:
|
|
409
|
+
isConnected: _,
|
|
411
410
|
isReady: b,
|
|
412
411
|
joinThread: M,
|
|
413
412
|
leaveThread: N,
|
|
414
413
|
listThreads: I,
|
|
415
414
|
markRead: F,
|
|
416
415
|
sendMessage: P,
|
|
417
|
-
setEnabled:
|
|
416
|
+
setEnabled: i((e) => {
|
|
418
417
|
T(e);
|
|
419
418
|
}, []),
|
|
420
|
-
subscribe:
|
|
419
|
+
subscribe: i((e) => (j.current.add(e), () => {
|
|
421
420
|
j.current.delete(e);
|
|
422
421
|
}), []),
|
|
423
422
|
unreadCount: S
|
|
424
423
|
};
|
|
425
|
-
return /* @__PURE__ */
|
|
424
|
+
return /* @__PURE__ */ u(V.Provider, {
|
|
426
425
|
value: R,
|
|
427
426
|
children: e
|
|
428
427
|
});
|
|
429
428
|
}, 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 (!
|
|
429
|
+
let { libraries: i } = a(v), o = r?.QueryClient || i?.reactQuery?.QueryClient, s = r?.QueryClientProvider || i?.reactQuery?.QueryClientProvider;
|
|
430
|
+
if (!o) throw Error("QueryClient is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
432
431
|
if (!s) throw Error("QueryClientProvider is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
433
432
|
if (!de(s)) throw Error("Provided QueryClientProvider dependencies are not valid.");
|
|
434
|
-
if (!fe(
|
|
435
|
-
let
|
|
436
|
-
return
|
|
433
|
+
if (!fe(o)) throw Error("Provided QueryClient dependencies are not valid.");
|
|
434
|
+
let l = c(null);
|
|
435
|
+
return l.current ||= new o({ defaultOptions: {
|
|
437
436
|
mutations: { ...n },
|
|
438
437
|
queries: {
|
|
439
438
|
getNextPageParam: (e, t, n) => e.length + (n || 0),
|
|
@@ -441,29 +440,29 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
441
440
|
retry: 3,
|
|
442
441
|
...t
|
|
443
442
|
}
|
|
444
|
-
} }), /* @__PURE__ */
|
|
445
|
-
client:
|
|
443
|
+
} }), /* @__PURE__ */ u(s, {
|
|
444
|
+
client: l.current,
|
|
446
445
|
children: e
|
|
447
446
|
});
|
|
448
|
-
},
|
|
447
|
+
}, H = ({ library: e, date: t, format: n = "ll" }) => e(t).format(n), U = (e, t) => {
|
|
449
448
|
let { fractionDigits: n = 0, metric: r = "km", spacingBetween: i = !0 } = t || {}, a = Number(e), o = i ? " " : "";
|
|
450
449
|
return Number.isNaN(a) ? `0${o}${r}` : `${a.toFixed(n)}${o}${r}`;
|
|
451
|
-
},
|
|
450
|
+
}, 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
451
|
if (!e) return "";
|
|
453
452
|
let r = `${n}${me(e)}`, i = r.match(/\.(jpeg|jpg|png|gif|bmp|webp|svg|avif)$/) !== null;
|
|
454
453
|
return typeof t == "number" && i ? `${r.replace("/files", `/thumbs/${t}`)}` : r;
|
|
455
454
|
}, ge = (e) => {
|
|
456
|
-
let { apiURL: t, libraries: n } =
|
|
455
|
+
let { apiURL: t, libraries: n } = a(v), r = e?.dayjs || n?.dayjs;
|
|
457
456
|
return {
|
|
458
457
|
dateAdapter: (e, t) => {
|
|
459
458
|
if (!r) throw Error("Dayjs is not provided. You can provide it with InjectDependenciesProvider or directly in props.");
|
|
460
|
-
return
|
|
459
|
+
return H({
|
|
461
460
|
date: e,
|
|
462
461
|
format: t,
|
|
463
462
|
library: r
|
|
464
463
|
});
|
|
465
464
|
},
|
|
466
|
-
distanceAdapter:
|
|
465
|
+
distanceAdapter: U,
|
|
467
466
|
filePathAdapter: (e, n) => {
|
|
468
467
|
if (!t) throw Error("API URL is not provided. You can provide it with InjectDependenciesProvider or directly in props to filePathAdapter.");
|
|
469
468
|
return typeof e == "string" && /^https?:\/\//.test(e) ? e : he({
|
|
@@ -472,42 +471,42 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
472
471
|
size: n
|
|
473
472
|
});
|
|
474
473
|
},
|
|
475
|
-
worksiteNameAdapter:
|
|
474
|
+
worksiteNameAdapter: W
|
|
476
475
|
};
|
|
477
476
|
}, _e = () => {
|
|
478
|
-
let { libraries: e } =
|
|
477
|
+
let { libraries: e } = a(v), t = e?.amplitude?.analytics, n = i((e, n) => {
|
|
479
478
|
if (!t || (t.setUserId(e), !n)) return;
|
|
480
479
|
let r = new t.Identify();
|
|
481
480
|
Object.entries(n).forEach(([e, t]) => {
|
|
482
481
|
r.set(e, t);
|
|
483
482
|
}), t.identify(r);
|
|
484
|
-
}, [t]), r =
|
|
483
|
+
}, [t]), r = i((e, n, r) => {
|
|
485
484
|
if (!t || (t.setGroup(e, n), !r)) return;
|
|
486
485
|
let i = new t.Identify();
|
|
487
486
|
Object.entries(r).forEach(([e, t]) => {
|
|
488
487
|
i.set(e, t);
|
|
489
488
|
}), t.groupIdentify(e, n, i);
|
|
490
|
-
}, [t]),
|
|
489
|
+
}, [t]), o = i((e, n) => {
|
|
491
490
|
t && t.track(e, n);
|
|
492
491
|
}, [t]);
|
|
493
492
|
return {
|
|
494
493
|
identify: n,
|
|
495
|
-
reset:
|
|
494
|
+
reset: i(() => {
|
|
496
495
|
t && t.reset();
|
|
497
496
|
}, [t]),
|
|
498
497
|
setGroup: r,
|
|
499
|
-
track:
|
|
498
|
+
track: o
|
|
500
499
|
};
|
|
501
500
|
}, ve = (e) => {
|
|
502
|
-
let { libraries: t, localStorageKeys: n } =
|
|
501
|
+
let { libraries: t, localStorageKeys: n } = a(v), r = e?.axios || t?.axios, s = e?.localStorageKey || n?.user || "user";
|
|
503
502
|
if (!r) throw Error("Axios is not provided. You can provide it with InjectDependenciesProvider or directly in params of useAuth.");
|
|
504
|
-
let c =
|
|
503
|
+
let c = i(({ tokenType: e, accessToken: t }) => {
|
|
505
504
|
r.defaults.headers.common.Authorization = `${e} ${t}`;
|
|
506
505
|
}, [r.defaults.headers.common]);
|
|
507
|
-
return
|
|
508
|
-
if (
|
|
506
|
+
return o(() => {
|
|
507
|
+
if (A) return;
|
|
509
508
|
let e = ({ newValue: e, key: t }) => {
|
|
510
|
-
if (t ===
|
|
509
|
+
if (t === s && e) try {
|
|
511
510
|
let { accessToken: t, tokenType: n } = JSON.parse(e);
|
|
512
511
|
c({
|
|
513
512
|
accessToken: t,
|
|
@@ -520,7 +519,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
520
519
|
return window.addEventListener("storage", e), () => {
|
|
521
520
|
window.removeEventListener("storage", e);
|
|
522
521
|
};
|
|
523
|
-
}, [
|
|
522
|
+
}, [s, c]), {
|
|
524
523
|
clearAuthenticationToken: () => {
|
|
525
524
|
r.defaults.headers.common.Authorization = null;
|
|
526
525
|
},
|
|
@@ -544,15 +543,15 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
544
543
|
n.onclick = () => r(e);
|
|
545
544
|
}
|
|
546
545
|
}, xe = (e) => {
|
|
547
|
-
let t =
|
|
546
|
+
let t = a(V);
|
|
548
547
|
if (!t) throw Error("useChat must be used within ChatProvider");
|
|
549
|
-
let { subscribe: n, setEnabled: r, ...i } = t,
|
|
550
|
-
return
|
|
548
|
+
let { subscribe: n, setEnabled: r, ...i } = t, s = c(e);
|
|
549
|
+
return s.current = e, o(() => {
|
|
551
550
|
e?.enabled !== void 0 && r(e.enabled);
|
|
552
|
-
}, [e?.enabled, r]),
|
|
551
|
+
}, [e?.enabled, r]), o(() => {
|
|
553
552
|
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:
|
|
553
|
+
}, [e?.browserNotification]), o(() => n((e) => {
|
|
554
|
+
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
555
|
switch (e.type) {
|
|
557
556
|
case "ready":
|
|
558
557
|
n?.(e);
|
|
@@ -564,10 +563,10 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
564
563
|
i?.(e), t && t.enabled !== !1 && be(e, t);
|
|
565
564
|
break;
|
|
566
565
|
case "presence":
|
|
567
|
-
|
|
566
|
+
a?.(e);
|
|
568
567
|
break;
|
|
569
568
|
case "error":
|
|
570
|
-
|
|
569
|
+
o?.(e);
|
|
571
570
|
break;
|
|
572
571
|
case "joined_thread":
|
|
573
572
|
c?.(e);
|
|
@@ -586,15 +585,15 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
586
585
|
break;
|
|
587
586
|
}
|
|
588
587
|
}), [n]), i;
|
|
589
|
-
},
|
|
590
|
-
let [n, r] =
|
|
588
|
+
}, G = (e, t) => t === "short" ? e.split("-")[0] : e, Se = (e, t = "full") => {
|
|
589
|
+
let [n, r] = l(() => {
|
|
591
590
|
let n = e?.language || navigator.language;
|
|
592
|
-
return e && "isInitialized" in e && e.isInitialized,
|
|
591
|
+
return e && "isInitialized" in e && e.isInitialized, G(n, t);
|
|
593
592
|
});
|
|
594
|
-
return
|
|
595
|
-
e && "isInitialized" in e && e.isInitialized && e.language && r(
|
|
593
|
+
return o(() => {
|
|
594
|
+
e && "isInitialized" in e && e.isInitialized && e.language && r(G(e.language, t));
|
|
596
595
|
let n = (e) => {
|
|
597
|
-
r(
|
|
596
|
+
r(G(e, t));
|
|
598
597
|
};
|
|
599
598
|
return e?.on?.("languageChanged", n), () => {
|
|
600
599
|
e?.off?.("languageChanged", n);
|
|
@@ -605,13 +604,13 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
605
604
|
getFilters: () => ({}),
|
|
606
605
|
handleFilter: () => () => {},
|
|
607
606
|
setFilter: () => {}
|
|
608
|
-
},
|
|
607
|
+
}, K = (e) => {
|
|
609
608
|
try {
|
|
610
609
|
return JSON.parse(e);
|
|
611
610
|
} catch {
|
|
612
611
|
return e;
|
|
613
612
|
}
|
|
614
|
-
},
|
|
613
|
+
}, q = (e, t, n) => `${n}_${e}=>${t}`, Te = (e) => e.reduce((e, t) => {
|
|
615
614
|
let n = localStorage.getItem(t);
|
|
616
615
|
if (n) try {
|
|
617
616
|
let t = JSON.parse(n), r = Object.keys(t)?.[0];
|
|
@@ -619,22 +618,22 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
619
618
|
} catch {}
|
|
620
619
|
return e;
|
|
621
620
|
}, {}), Ee = (e) => {
|
|
622
|
-
let { libraries: t, localStorageKeys: n } =
|
|
623
|
-
if (
|
|
621
|
+
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;
|
|
622
|
+
if (A) return we;
|
|
624
623
|
if (!r) throw Error("React Router is not provided. You can provide it with InjectDependenciesProvider or directly in props of reactRouter.");
|
|
625
624
|
let m = () => Object.keys(localStorage).filter((t) => t.startsWith(d) && t.endsWith(e?.pathname || i)), h = (t, n, r = !0) => {
|
|
626
|
-
let
|
|
625
|
+
let a = q(t, e?.pathname || i, d);
|
|
627
626
|
if (!n || Array.isArray(n) && !n.length) {
|
|
628
|
-
f ? (
|
|
627
|
+
f ? (o.delete(t), s(o)) : u((e) => {
|
|
629
628
|
let n = { ...e };
|
|
630
629
|
return delete n[t], n;
|
|
631
|
-
}), p && localStorage.removeItem(
|
|
630
|
+
}), p && localStorage.removeItem(a);
|
|
632
631
|
return;
|
|
633
632
|
}
|
|
634
|
-
p && r && n && localStorage.setItem(
|
|
635
|
-
...
|
|
633
|
+
p && r && n && localStorage.setItem(a, JSON.stringify({
|
|
634
|
+
...o,
|
|
636
635
|
[t]: n
|
|
637
|
-
})), f && n ? (
|
|
636
|
+
})), f && n ? (o.set(t, JSON.stringify(n)), s(o)) : !f && n && u((e) => ({
|
|
638
637
|
...e,
|
|
639
638
|
[t]: n
|
|
640
639
|
}));
|
|
@@ -642,17 +641,17 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
642
641
|
return {
|
|
643
642
|
getFilter: (t, n) => {
|
|
644
643
|
if (f) {
|
|
645
|
-
let e =
|
|
646
|
-
if (e) return
|
|
644
|
+
let e = o.get(t);
|
|
645
|
+
if (e) return K(e);
|
|
647
646
|
} else {
|
|
648
647
|
let e = c[t];
|
|
649
648
|
if (e !== void 0) return e;
|
|
650
649
|
}
|
|
651
650
|
if (p) {
|
|
652
|
-
let n =
|
|
651
|
+
let n = q(t, e?.pathname || i, d), r = localStorage.getItem(n);
|
|
653
652
|
if (r) try {
|
|
654
653
|
let e = JSON.parse(r)[t];
|
|
655
|
-
return !f && e !== void 0 &&
|
|
654
|
+
return !f && e !== void 0 && u((n) => ({
|
|
656
655
|
...n,
|
|
657
656
|
[t]: e
|
|
658
657
|
})), e;
|
|
@@ -663,7 +662,7 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
663
662
|
getFilters: () => {
|
|
664
663
|
let e = p ? Te(m()) : {};
|
|
665
664
|
if (f) {
|
|
666
|
-
let t = Array.from(
|
|
665
|
+
let t = Array.from(o.entries()).reduce((e, [t, n]) => (e[t] = K(n), e), {});
|
|
667
666
|
return {
|
|
668
667
|
...e,
|
|
669
668
|
...t
|
|
@@ -684,43 +683,43 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
684
683
|
},
|
|
685
684
|
setFilter: h
|
|
686
685
|
};
|
|
687
|
-
},
|
|
688
|
-
let [e, t] =
|
|
689
|
-
return
|
|
686
|
+
}, J = () => document.getElementById(I), De = () => {
|
|
687
|
+
let [e, t] = l(() => !!window.HubSpotConversations);
|
|
688
|
+
return o(() => {
|
|
690
689
|
if (window.HubSpotConversations) {
|
|
691
690
|
t(!0);
|
|
692
691
|
return;
|
|
693
692
|
}
|
|
694
693
|
window.hsConversationsOnReady = [() => t(!0)];
|
|
695
|
-
}, []),
|
|
694
|
+
}, []), o(() => {
|
|
696
695
|
e && window.HubSpotConversations?.on("widgetClosed", () => {
|
|
697
|
-
|
|
696
|
+
J()?.classList.remove(L);
|
|
698
697
|
});
|
|
699
698
|
}, [e]), {
|
|
700
699
|
isAvailable: e,
|
|
701
|
-
toggle:
|
|
702
|
-
let e = window.HubSpotConversations, t =
|
|
703
|
-
e && t && (t.classList.contains("hs-show") ? (e.widget.close(), t.classList.remove(
|
|
700
|
+
toggle: i(() => {
|
|
701
|
+
let e = window.HubSpotConversations, t = J();
|
|
702
|
+
e && t && (t.classList.contains("hs-show") ? (e.widget.close(), t.classList.remove(L)) : (t.classList.add(L), e.widget.open()));
|
|
704
703
|
}, [])
|
|
705
704
|
};
|
|
706
|
-
}, Oe = ({ data: e, fetchNextPage: t, isFetchingNextPage: n, isInitialLoading: r, isLoading:
|
|
707
|
-
let
|
|
705
|
+
}, Oe = ({ data: e, fetchNextPage: t, isFetchingNextPage: n, isInitialLoading: r, isLoading: a, enabled: o = !0 }) => {
|
|
706
|
+
let c = i(async (e) => {
|
|
708
707
|
n || !o || await t({ pageParam: e?.pageParam || e.visibleRowsCount });
|
|
709
708
|
}, [
|
|
710
709
|
o,
|
|
711
710
|
t,
|
|
712
711
|
n
|
|
713
|
-
]), l =
|
|
712
|
+
]), l = s(() => {
|
|
714
713
|
if (e) return e.pages.reduce((e, t) => [...e, ...t], []);
|
|
715
714
|
}, [e]);
|
|
716
715
|
return {
|
|
717
|
-
fetchNextPageOnRowsScrollEnd:
|
|
718
|
-
isLoading: n ||
|
|
716
|
+
fetchNextPageOnRowsScrollEnd: c,
|
|
717
|
+
isLoading: n || a,
|
|
719
718
|
loadingVariant: r ? "skeleton" : "linear-progress",
|
|
720
719
|
rows: l
|
|
721
720
|
};
|
|
722
721
|
}, ke = (e) => {
|
|
723
|
-
let { libraries: t } =
|
|
722
|
+
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
723
|
if (e && typeof e == "object" && "response" in e) {
|
|
725
724
|
let { response: t } = e || {};
|
|
726
725
|
if (t && typeof t == "object" && "reason" in t && t.reason) return String(t.reason);
|
|
@@ -737,17 +736,17 @@ var f = 3e4, p = 1e3, m = 1e4, h = (e) => Array.isArray(e) ? e.map(h) : typeof e
|
|
|
737
736
|
return e instanceof Error ? e.message : c;
|
|
738
737
|
}, [c]);
|
|
739
738
|
return {
|
|
740
|
-
getErrorCode:
|
|
739
|
+
getErrorCode: i((e) => {
|
|
741
740
|
let { response: t } = e || {};
|
|
742
741
|
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
742
|
}, []),
|
|
744
743
|
printError: l
|
|
745
744
|
};
|
|
746
|
-
},
|
|
747
|
-
if (!
|
|
745
|
+
}, Y = "chunk-reload-timestamp", X = "chunk-reload", Ae = 1e4, Z = 2, Q = !1;
|
|
746
|
+
if (!A && typeof window < "u") {
|
|
748
747
|
try {
|
|
749
748
|
let e = new URL(window.location.href);
|
|
750
|
-
e.searchParams.has(
|
|
749
|
+
e.searchParams.has(X) && (Q = !0, e.searchParams.delete(X), window.history.replaceState(null, "", e.toString()));
|
|
751
750
|
} catch {}
|
|
752
751
|
window.addEventListener("vite:preloadError", (e) => {
|
|
753
752
|
e.preventDefault();
|
|
@@ -768,12 +767,12 @@ var je = (e) => {
|
|
|
768
767
|
sessionStorage.setItem(e, t);
|
|
769
768
|
} catch {}
|
|
770
769
|
}, Ie = (e) => Function("url", "return import(url)")(e), Le = async (e) => {
|
|
771
|
-
for (let t = 0; t <
|
|
770
|
+
for (let t = 0; t < Z; t++) try {
|
|
772
771
|
return await Ie(`${e}?t=${Date.now()}`);
|
|
773
772
|
} catch {
|
|
774
|
-
t <
|
|
773
|
+
t < Z - 1 && await new Promise((e) => setTimeout(e, 500 * 2 ** t));
|
|
775
774
|
}
|
|
776
|
-
throw Error(`Failed to import ${e} after ${
|
|
775
|
+
throw Error(`Failed to import ${e} after ${Z} retries`);
|
|
777
776
|
}, Re = async () => {
|
|
778
777
|
try {
|
|
779
778
|
if (typeof navigator < "u" && "serviceWorker" in navigator) {
|
|
@@ -788,24 +787,24 @@ var je = (e) => {
|
|
|
788
787
|
}, ze = async () => {
|
|
789
788
|
await Re();
|
|
790
789
|
let e = new URL(window.location.href);
|
|
791
|
-
e.searchParams.set(
|
|
792
|
-
},
|
|
790
|
+
e.searchParams.set(X, String(Date.now())), window.location.replace(e.toString());
|
|
791
|
+
}, $ = (e) => e != null && e.default !== void 0, Be = (e) => r(async () => {
|
|
793
792
|
let t;
|
|
794
793
|
try {
|
|
795
794
|
let n = await e();
|
|
796
|
-
if (
|
|
795
|
+
if ($(n)) return n;
|
|
797
796
|
t = /* @__PURE__ */ Error("Module resolved without a valid default export");
|
|
798
797
|
} catch (e) {
|
|
799
798
|
t = e;
|
|
800
799
|
}
|
|
801
|
-
if (
|
|
800
|
+
if (A || !je(t)) throw t;
|
|
802
801
|
let n = Ne(e);
|
|
803
802
|
if (n) try {
|
|
804
803
|
let e = await Le(n);
|
|
805
|
-
if (
|
|
804
|
+
if ($(e)) return e;
|
|
806
805
|
} catch {}
|
|
807
|
-
let r = Number(Pe(
|
|
808
|
-
return Date.now() - r < Ae ||
|
|
806
|
+
let r = Number(Pe(Y) || "0");
|
|
807
|
+
return Date.now() - r < Ae || Q || (Fe(Y, String(Date.now())), await ze()), { default: () => null };
|
|
809
808
|
});
|
|
810
809
|
//#endregion
|
|
811
|
-
export {
|
|
810
|
+
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
|