@getsoren/shared-module 2.45.0 → 2.46.0

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