wcz-test 6.24.14 → 6.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApprovalStatus-lESbUD_x.js +1 -0
- package/dist/ApprovalStatus-lESbUD_x.js.map +1 -0
- package/dist/DialogsContext-8xfQ3X-k.js +285 -0
- package/dist/DialogsContext-8xfQ3X-k.js.map +1 -0
- package/dist/DialogsHooks-Dz4ExWPV.js +232 -0
- package/dist/DialogsHooks-Dz4ExWPV.js.map +1 -0
- package/dist/{FileHooks-kGkVKOf9.js → FileHooks-T3wXKu_b.js} +5 -4
- package/dist/FileHooks-T3wXKu_b.js.map +1 -0
- package/dist/FileMeta-Bzeo3ie9.js +1 -0
- package/dist/FileMeta-Bzeo3ie9.js.map +1 -0
- package/dist/RouterListItemButton-Dmqima3h.js +661 -0
- package/dist/RouterListItemButton-Dmqima3h.js.map +1 -0
- package/dist/_commonjsHelpers-ByX85dGu.js +34 -0
- package/dist/_commonjsHelpers-ByX85dGu.js.map +1 -0
- package/dist/components.js +2667 -518
- package/dist/components.js.map +1 -0
- package/dist/env-BD4Wc07c.js +76 -0
- package/dist/env-BD4Wc07c.js.map +1 -0
- package/dist/hooks.js +909 -354
- package/dist/hooks.js.map +1 -0
- package/dist/i18next-Bx3TmZAT.js +1337 -0
- package/dist/i18next-Bx3TmZAT.js.map +1 -0
- package/dist/index-Biz5inV2.js +268 -0
- package/dist/index-Biz5inV2.js.map +1 -0
- package/dist/index.js +1076 -1405
- package/dist/index.js.map +1 -0
- package/dist/models.js +1 -0
- package/dist/models.js.map +1 -0
- package/dist/queries.js +4 -3
- package/dist/queries.js.map +1 -0
- package/dist/queryClient--EvGPhnh.js +1 -0
- package/dist/queryClient--EvGPhnh.js.map +1 -0
- package/dist/server.js +56 -27
- package/dist/server.js.map +1 -0
- package/dist/session-BCQDwl6n.js +8581 -0
- package/dist/session-BCQDwl6n.js.map +1 -0
- package/dist/utils-A7xW24zq.js +1850 -0
- package/dist/utils-A7xW24zq.js.map +1 -0
- package/dist/utils.js +8 -7
- package/dist/utils.js.map +1 -0
- package/dist/vite.js +1 -0
- package/dist/vite.js.map +1 -0
- package/package.json +23 -26
- package/dist/DialogsContext-2Yy6yhzQ.js +0 -5
- package/dist/DialogsHooks-DWkC9zAf.js +0 -113
- package/dist/RouterListItemButton-C_SG0uka.js +0 -17
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/env-4ZoUrNqp.js +0 -27
- package/dist/session-7yb0BETM.js +0 -75
- package/dist/utils-CZraUjBd.js +0 -81
package/package.json
CHANGED
|
@@ -1,41 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wcz-test",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.26.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
7
|
-
"types": "dist/exports/index.d.ts",
|
|
8
7
|
"exports": {
|
|
9
8
|
".": {
|
|
10
|
-
"types": "./dist/
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
11
10
|
"import": "./dist/index.js"
|
|
12
11
|
},
|
|
13
12
|
"./server": {
|
|
14
|
-
"types": "./dist/
|
|
13
|
+
"types": "./dist/server.d.ts",
|
|
15
14
|
"import": "./dist/server.js"
|
|
16
15
|
},
|
|
17
16
|
"./components": {
|
|
18
|
-
"types": "./dist/
|
|
17
|
+
"types": "./dist/components.d.ts",
|
|
19
18
|
"import": "./dist/components.js"
|
|
20
19
|
},
|
|
21
20
|
"./hooks": {
|
|
22
|
-
"types": "./dist/
|
|
21
|
+
"types": "./dist/hooks.d.ts",
|
|
23
22
|
"import": "./dist/hooks.js"
|
|
24
23
|
},
|
|
25
24
|
"./models": {
|
|
26
|
-
"types": "./dist/
|
|
25
|
+
"types": "./dist/models.d.ts",
|
|
27
26
|
"import": "./dist/models.js"
|
|
28
27
|
},
|
|
29
28
|
"./queries": {
|
|
30
|
-
"types": "./dist/
|
|
29
|
+
"types": "./dist/queries.d.ts",
|
|
31
30
|
"import": "./dist/queries.js"
|
|
32
31
|
},
|
|
33
32
|
"./utils": {
|
|
34
|
-
"types": "./dist/
|
|
33
|
+
"types": "./dist/utils.d.ts",
|
|
35
34
|
"import": "./dist/utils.js"
|
|
36
35
|
},
|
|
37
36
|
"./vite": {
|
|
38
|
-
"types": "./dist/
|
|
37
|
+
"types": "./dist/vite.d.ts",
|
|
39
38
|
"import": "./dist/vite.js"
|
|
40
39
|
}
|
|
41
40
|
},
|
|
@@ -51,23 +50,8 @@
|
|
|
51
50
|
"build": "vite build --config vite.build.config.ts",
|
|
52
51
|
"prepublishOnly": "npm run build"
|
|
53
52
|
},
|
|
54
|
-
"dependencies": {
|
|
55
|
-
"@t3-oss/env-core": "^0.13.10",
|
|
56
|
-
"arctic": "^3.7.0",
|
|
57
|
-
"axios": "^1.13.2",
|
|
58
|
-
"file-saver": "^2.0.5",
|
|
59
|
-
"i18next": "^25.7.3",
|
|
60
|
-
"i18next-browser-languagedetector": "^8.2.0",
|
|
61
|
-
"jsonwebtoken": "^9.0.3",
|
|
62
|
-
"jwks-rsa": "^3.2.0",
|
|
63
|
-
"react-dropzone": "^14.3.8",
|
|
64
|
-
"react-i18next": "^16.5.0",
|
|
65
|
-
"react-intersection-observer": "^10.0.0",
|
|
66
|
-
"react-number-format": "^5.4.4",
|
|
67
|
-
"tus-js-client": "^4.3.1",
|
|
68
|
-
"uuidv7": "^1.1.0"
|
|
69
|
-
},
|
|
70
53
|
"devDependencies": {
|
|
54
|
+
"@t3-oss/env-core": "^0.13.10",
|
|
71
55
|
"@tanstack/eslint-config": "^0.3.4",
|
|
72
56
|
"@tanstack/eslint-plugin-query": "^5.91.2",
|
|
73
57
|
"@tanstack/eslint-plugin-router": "^1.141.0",
|
|
@@ -78,11 +62,24 @@
|
|
|
78
62
|
"@types/react": "^19.2.7",
|
|
79
63
|
"@types/react-dom": "^19.2.3",
|
|
80
64
|
"@vitejs/plugin-react": "^5.1.2",
|
|
65
|
+
"arctic": "^3.7.0",
|
|
66
|
+
"axios": "^1.13.2",
|
|
81
67
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
82
68
|
"drizzle-kit": "^0.31.8",
|
|
69
|
+
"file-saver": "^2.0.5",
|
|
70
|
+
"i18next": "^25.7.3",
|
|
71
|
+
"i18next-browser-languagedetector": "^8.2.0",
|
|
72
|
+
"jsonwebtoken": "^9.0.3",
|
|
73
|
+
"jwks-rsa": "^3.2.0",
|
|
83
74
|
"nitro": "^3.0.1-alpha.1",
|
|
75
|
+
"react-dropzone": "^14.3.8",
|
|
76
|
+
"react-i18next": "^16.5.0",
|
|
77
|
+
"react-intersection-observer": "^10.0.0",
|
|
84
78
|
"react-markdown": "^10.1.0",
|
|
79
|
+
"react-number-format": "^5.4.4",
|
|
80
|
+
"tus-js-client": "^4.3.1",
|
|
85
81
|
"typescript": "^5.9.3",
|
|
82
|
+
"uuidv7": "^1.1.0",
|
|
86
83
|
"vite": "^7.3.0",
|
|
87
84
|
"vite-plugin-checker": "^0.12.0",
|
|
88
85
|
"vite-plugin-dts": "^4.5.4",
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { jsx as g, jsxs as x } from "react/jsx-runtime";
|
|
2
|
-
import { c as L } from "react/compiler-runtime";
|
|
3
|
-
import { useEventCallback as T, DialogContent as k, DialogTitle as F, DialogActions as W, Button as y, Dialog as b } from "@mui/material";
|
|
4
|
-
import { useContext as A } from "react";
|
|
5
|
-
import { useTranslation as v } from "react-i18next";
|
|
6
|
-
import { D as $ } from "./DialogsContext-2Yy6yhzQ.js";
|
|
7
|
-
function j(t) {
|
|
8
|
-
const e = L(22), {
|
|
9
|
-
open: m,
|
|
10
|
-
payload: l,
|
|
11
|
-
onClose: i
|
|
12
|
-
} = t, {
|
|
13
|
-
t: o
|
|
14
|
-
} = v();
|
|
15
|
-
let r;
|
|
16
|
-
e[0] !== i ? (r = () => i(), e[0] = i, e[1] = r) : r = e[1];
|
|
17
|
-
let n;
|
|
18
|
-
e[2] !== l.title || e[3] !== o ? (n = l.title ?? o("Layout.Dialog.Alert"), e[2] = l.title, e[3] = o, e[4] = n) : n = e[4];
|
|
19
|
-
let a;
|
|
20
|
-
e[5] !== n ? (a = /* @__PURE__ */ g(F, { children: n }), e[5] = n, e[6] = a) : a = e[6];
|
|
21
|
-
let s;
|
|
22
|
-
e[7] !== l.message ? (s = /* @__PURE__ */ g(k, { children: l.message }), e[7] = l.message, e[8] = s) : s = e[8];
|
|
23
|
-
let c;
|
|
24
|
-
e[9] !== i ? (c = () => i(), e[9] = i, e[10] = c) : c = e[10];
|
|
25
|
-
let f;
|
|
26
|
-
e[11] !== o ? (f = o("Layout.Dialog.Confirm"), e[11] = o, e[12] = f) : f = e[12];
|
|
27
|
-
let u;
|
|
28
|
-
e[13] !== c || e[14] !== f ? (u = /* @__PURE__ */ g(W, { children: /* @__PURE__ */ g(y, { onClick: c, autoFocus: !0, children: f }) }), e[13] = c, e[14] = f, e[15] = u) : u = e[15];
|
|
29
|
-
let d;
|
|
30
|
-
return e[16] !== m || e[17] !== r || e[18] !== a || e[19] !== s || e[20] !== u ? (d = /* @__PURE__ */ x(b, { maxWidth: "xs", fullWidth: !0, open: m, onClose: r, disableRestoreFocus: !0, children: [
|
|
31
|
-
a,
|
|
32
|
-
s,
|
|
33
|
-
u
|
|
34
|
-
] }), e[16] = m, e[17] = r, e[18] = a, e[19] = s, e[20] = u, e[21] = d) : d = e[21], d;
|
|
35
|
-
}
|
|
36
|
-
function R(t) {
|
|
37
|
-
const e = L(33), {
|
|
38
|
-
open: m,
|
|
39
|
-
payload: l,
|
|
40
|
-
onClose: i
|
|
41
|
-
} = t, {
|
|
42
|
-
t: o
|
|
43
|
-
} = v();
|
|
44
|
-
let r;
|
|
45
|
-
e[0] !== i ? (r = () => i(!1), e[0] = i, e[1] = r) : r = e[1];
|
|
46
|
-
let n;
|
|
47
|
-
e[2] !== l.title || e[3] !== o ? (n = l.title ?? o("Layout.Dialog.Confirm"), e[2] = l.title, e[3] = o, e[4] = n) : n = e[4];
|
|
48
|
-
let a;
|
|
49
|
-
e[5] !== n ? (a = /* @__PURE__ */ g(F, { children: n }), e[5] = n, e[6] = a) : a = e[6];
|
|
50
|
-
let s;
|
|
51
|
-
e[7] !== l.message ? (s = /* @__PURE__ */ g(k, { children: l.message }), e[7] = l.message, e[8] = s) : s = e[8];
|
|
52
|
-
let c;
|
|
53
|
-
e[9] !== i ? (c = () => i(!1), e[9] = i, e[10] = c) : c = e[10];
|
|
54
|
-
let f;
|
|
55
|
-
e[11] !== l.cancelText || e[12] !== o ? (f = l.cancelText ?? o("Layout.Dialog.Cancel"), e[11] = l.cancelText, e[12] = o, e[13] = f) : f = e[13];
|
|
56
|
-
let u;
|
|
57
|
-
e[14] !== c || e[15] !== f ? (u = /* @__PURE__ */ g(y, { onClick: c, children: f }), e[14] = c, e[15] = f, e[16] = u) : u = e[16];
|
|
58
|
-
let d;
|
|
59
|
-
e[17] !== i ? (d = () => i(!0), e[17] = i, e[18] = d) : d = e[18];
|
|
60
|
-
let C;
|
|
61
|
-
e[19] !== o ? (C = o("Layout.Dialog.Confirm"), e[19] = o, e[20] = C) : C = e[20];
|
|
62
|
-
let h;
|
|
63
|
-
e[21] !== d || e[22] !== C ? (h = /* @__PURE__ */ g(y, { onClick: d, autoFocus: !0, children: C }), e[21] = d, e[22] = C, e[23] = h) : h = e[23];
|
|
64
|
-
let p;
|
|
65
|
-
e[24] !== h || e[25] !== u ? (p = /* @__PURE__ */ x(W, { children: [
|
|
66
|
-
u,
|
|
67
|
-
h
|
|
68
|
-
] }), e[24] = h, e[25] = u, e[26] = p) : p = e[26];
|
|
69
|
-
let D;
|
|
70
|
-
return e[27] !== m || e[28] !== r || e[29] !== p || e[30] !== a || e[31] !== s ? (D = /* @__PURE__ */ x(b, { maxWidth: "xs", fullWidth: !0, open: m, onClose: r, disableRestoreFocus: !0, children: [
|
|
71
|
-
a,
|
|
72
|
-
s,
|
|
73
|
-
p
|
|
74
|
-
] }), e[27] = m, e[28] = r, e[29] = p, e[30] = a, e[31] = s, e[32] = D) : D = e[32], D;
|
|
75
|
-
}
|
|
76
|
-
function G() {
|
|
77
|
-
const t = L(9), {
|
|
78
|
-
open: e,
|
|
79
|
-
close: m
|
|
80
|
-
} = A($);
|
|
81
|
-
let l;
|
|
82
|
-
t[0] !== e ? (l = (a, s) => {
|
|
83
|
-
const {
|
|
84
|
-
...c
|
|
85
|
-
} = s === void 0 ? {} : s;
|
|
86
|
-
return e(j, {
|
|
87
|
-
...c,
|
|
88
|
-
message: a
|
|
89
|
-
});
|
|
90
|
-
}, t[0] = e, t[1] = l) : l = t[1];
|
|
91
|
-
const i = T(l);
|
|
92
|
-
let o;
|
|
93
|
-
t[2] !== e ? (o = (a, s) => {
|
|
94
|
-
const {
|
|
95
|
-
...c
|
|
96
|
-
} = s === void 0 ? {} : s;
|
|
97
|
-
return e(R, {
|
|
98
|
-
...c,
|
|
99
|
-
message: a
|
|
100
|
-
});
|
|
101
|
-
}, t[2] = e, t[3] = o) : o = t[3];
|
|
102
|
-
const r = T(o);
|
|
103
|
-
let n;
|
|
104
|
-
return t[4] !== i || t[5] !== m || t[6] !== r || t[7] !== e ? (n = {
|
|
105
|
-
alert: i,
|
|
106
|
-
confirm: r,
|
|
107
|
-
open: e,
|
|
108
|
-
close: m
|
|
109
|
-
}, t[4] = i, t[5] = m, t[6] = r, t[7] = e, t[8] = n) : n = t[8], n;
|
|
110
|
-
}
|
|
111
|
-
export {
|
|
112
|
-
G as u
|
|
113
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { c as i } from "react/compiler-runtime";
|
|
3
|
-
import { ListItemButton as f } from "@mui/material";
|
|
4
|
-
import { createLink as c } from "@tanstack/react-router";
|
|
5
|
-
import u from "react";
|
|
6
|
-
const a = u.forwardRef(function(t, o) {
|
|
7
|
-
const n = i(3);
|
|
8
|
-
let m;
|
|
9
|
-
return n[0] !== t || n[1] !== o ? (m = /* @__PURE__ */ r(f, { ref: o, component: "a", ...t }), n[0] = t, n[1] = o, n[2] = m) : m = n[2], m;
|
|
10
|
-
}), s = c(a), L = (e) => {
|
|
11
|
-
const t = i(2);
|
|
12
|
-
let o;
|
|
13
|
-
return t[0] !== e ? (o = /* @__PURE__ */ r(s, { ...e }), t[0] = e, t[1] = o) : o = t[1], o;
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
L as R
|
|
17
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function l(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
o as c,
|
|
7
|
-
l as g
|
|
8
|
-
};
|
package/dist/env-4ZoUrNqp.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createEnv as I } from "@t3-oss/env-core";
|
|
2
|
-
import { z as E } from "zod";
|
|
3
|
-
const t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_API_URL: "http://localhost:3000", VITE_APP_TITLE: "WCZ Layout", VITE_DYNAMSOFT_LICENSE_KEY: "DLS2eyJoYW5kc2hha2VDb2RlIjoiMTAxMjU2MzQ5LTEwMTI4MDIzNyIsIm1haW5TZXJ2ZXJVUkwiOiJodHRwczovL21sdHMuZHluYW1zb2Z0LmNvbS8iLCJvcmdhbml6YXRpb25JRCI6IjEwMTI1NjM0OSIsInN0YW5kYnlTZXJ2ZXJVUkwiOiJodHRwczovL3NsdHMuZHluYW1zb2Z0LmNvbS8iLCJjaGVja0NvZGUiOi0yMjMwMzAzMjZ9", VITE_MUI_LICENSE_KEY: "d7aeb74913a4918a319bf4c253aa1a49Tz0xMjIzOTYsRT0xNzk1ODIzOTk5MDAwLFM9cHJlbWl1bSxMTT1zdWJzY3JpcHRpb24sUFY9aW5pdGlhbCxLVj0y" }, _ = I({
|
|
4
|
-
clientPrefix: "VITE_",
|
|
5
|
-
client: {
|
|
6
|
-
VITE_APP_TITLE: E.string(),
|
|
7
|
-
VITE_MUI_LICENSE_KEY: E.string(),
|
|
8
|
-
VITE_API_URL: E.url()
|
|
9
|
-
},
|
|
10
|
-
runtimeEnv: t,
|
|
11
|
-
emptyStringAsUndefined: !0
|
|
12
|
-
}), n = I({
|
|
13
|
-
server: {
|
|
14
|
-
NODE_ENV: E.enum(["development", "testing", "staging", "production"]),
|
|
15
|
-
MICROSOFT_TENANT_ID: E.string(),
|
|
16
|
-
MICROSOFT_CLIENT_ID: E.string(),
|
|
17
|
-
MICROSOFT_CLIENT_SECRET: E.string(),
|
|
18
|
-
MICROSOFT_REDIRECT_URI: E.url(),
|
|
19
|
-
SESSION_SECRET: E.string()
|
|
20
|
-
},
|
|
21
|
-
runtimeEnv: process.env,
|
|
22
|
-
emptyStringAsUndefined: !0
|
|
23
|
-
});
|
|
24
|
-
export {
|
|
25
|
-
_ as c,
|
|
26
|
-
n as s
|
|
27
|
-
};
|
package/dist/session-7yb0BETM.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { redirect as a } from "@tanstack/react-router";
|
|
2
|
-
import { getCookie as E, deleteCookie as _, setCookie as S } from "@tanstack/react-start/server";
|
|
3
|
-
import T from "jsonwebtoken";
|
|
4
|
-
import * as e from "zod";
|
|
5
|
-
import c from "zod";
|
|
6
|
-
import "jwks-rsa";
|
|
7
|
-
import { MicrosoftEntraId as C } from "arctic";
|
|
8
|
-
import { s as o } from "./env-4ZoUrNqp.js";
|
|
9
|
-
const f = new C(o.MICROSOFT_TENANT_ID, o.MICROSOFT_CLIENT_ID, o.MICROSOFT_CLIENT_SECRET, o.MICROSOFT_REDIRECT_URI), u = e.object({
|
|
10
|
-
id: e.string(),
|
|
11
|
-
name: e.string(),
|
|
12
|
-
email: e.email(),
|
|
13
|
-
groups: e.array(e.string())
|
|
14
|
-
});
|
|
15
|
-
e.object({
|
|
16
|
-
id: e.string(),
|
|
17
|
-
displayName: e.string(),
|
|
18
|
-
jobTitle: e.string(),
|
|
19
|
-
mail: e.email(),
|
|
20
|
-
mobilePhone: e.string()
|
|
21
|
-
});
|
|
22
|
-
const r = "session", p = "access_token", m = "/", I = c.object({
|
|
23
|
-
refreshToken: c.string(),
|
|
24
|
-
user: u.omit({
|
|
25
|
-
groups: !0
|
|
26
|
-
})
|
|
27
|
-
}), O = async (s) => {
|
|
28
|
-
const t = E(r);
|
|
29
|
-
if (!t)
|
|
30
|
-
throw a({
|
|
31
|
-
href: `/api/auth/login?redirect_uri=${encodeURIComponent(s ?? m)}`
|
|
32
|
-
});
|
|
33
|
-
const n = T.verify(t, o.SESSION_SECRET), i = I.safeParse(n);
|
|
34
|
-
if (!i.success)
|
|
35
|
-
throw _(r), a({
|
|
36
|
-
href: `/api/auth/login?redirect_uri=${encodeURIComponent(s ?? m)}`
|
|
37
|
-
});
|
|
38
|
-
return i.data;
|
|
39
|
-
}, A = async () => {
|
|
40
|
-
const s = E(p);
|
|
41
|
-
if (s) return s;
|
|
42
|
-
const t = await O(), n = await f.refreshAccessToken(t.refreshToken, []);
|
|
43
|
-
return await k({
|
|
44
|
-
...t,
|
|
45
|
-
refreshToken: n.refreshToken()
|
|
46
|
-
}), await g(n.accessToken()), n.accessToken();
|
|
47
|
-
}, k = async (s) => {
|
|
48
|
-
const t = T.sign(s, o.SESSION_SECRET, {
|
|
49
|
-
expiresIn: "7d"
|
|
50
|
-
});
|
|
51
|
-
S(r, t, {
|
|
52
|
-
secure: o.NODE_ENV === "production",
|
|
53
|
-
path: "/",
|
|
54
|
-
httpOnly: !0,
|
|
55
|
-
sameSite: "lax",
|
|
56
|
-
maxAge: 10080 * 60
|
|
57
|
-
// 7 days
|
|
58
|
-
});
|
|
59
|
-
}, g = async (s) => {
|
|
60
|
-
S(p, s, {
|
|
61
|
-
secure: o.NODE_ENV === "production",
|
|
62
|
-
path: "/",
|
|
63
|
-
httpOnly: !0,
|
|
64
|
-
sameSite: "lax",
|
|
65
|
-
maxAge: 300
|
|
66
|
-
// 5 minutes
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
export {
|
|
70
|
-
g as a,
|
|
71
|
-
f as e,
|
|
72
|
-
A as g,
|
|
73
|
-
O as r,
|
|
74
|
-
k as s
|
|
75
|
-
};
|
package/dist/utils-CZraUjBd.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import r from "axios";
|
|
2
|
-
import { c as s } from "./env-4ZoUrNqp.js";
|
|
3
|
-
const l = "#00506E", g = "#64DC00";
|
|
4
|
-
class p {
|
|
5
|
-
static get isAndroid() {
|
|
6
|
-
return /android/i.test(this.userAgent);
|
|
7
|
-
}
|
|
8
|
-
static get isIOS() {
|
|
9
|
-
return /iPad|iPhone|iPod/.test(this.userAgent);
|
|
10
|
-
}
|
|
11
|
-
static get isWindows() {
|
|
12
|
-
return /windows/i.test(this.userAgent);
|
|
13
|
-
}
|
|
14
|
-
static get isMacOS() {
|
|
15
|
-
return /Macintosh|MacIntel|MacPPC|Mac68K/.test(this.userAgent);
|
|
16
|
-
}
|
|
17
|
-
static get userAgent() {
|
|
18
|
-
return typeof navigator > "u" ? "" : navigator.userAgent;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
const h = () => ({
|
|
22
|
-
meta: [{
|
|
23
|
-
charSet: "utf-8"
|
|
24
|
-
}, {
|
|
25
|
-
name: "viewport",
|
|
26
|
-
content: "width=device-width, initial-scale=1"
|
|
27
|
-
}, {
|
|
28
|
-
title: s.VITE_APP_TITLE
|
|
29
|
-
}, {
|
|
30
|
-
name: "og:type",
|
|
31
|
-
content: "website"
|
|
32
|
-
}, {
|
|
33
|
-
name: "og:title",
|
|
34
|
-
content: s.VITE_APP_TITLE
|
|
35
|
-
}, {
|
|
36
|
-
name: "og:image",
|
|
37
|
-
content: "/favicon-32x32.png"
|
|
38
|
-
}],
|
|
39
|
-
links: [{
|
|
40
|
-
rel: "apple-touch-icon",
|
|
41
|
-
sizes: "180x180",
|
|
42
|
-
href: "/apple-touch-icon.png"
|
|
43
|
-
}, {
|
|
44
|
-
rel: "icon",
|
|
45
|
-
type: "image/png",
|
|
46
|
-
sizes: "32x32",
|
|
47
|
-
href: "/favicon-32x32.png"
|
|
48
|
-
}, {
|
|
49
|
-
rel: "icon",
|
|
50
|
-
type: "image/png",
|
|
51
|
-
sizes: "16x16",
|
|
52
|
-
href: "/favicon-16x16.png"
|
|
53
|
-
}, {
|
|
54
|
-
rel: "manifest",
|
|
55
|
-
href: "/manifest.webmanifest"
|
|
56
|
-
}, {
|
|
57
|
-
rel: "icon",
|
|
58
|
-
href: "/favicon.ico"
|
|
59
|
-
}]
|
|
60
|
-
}), u = r.create({
|
|
61
|
-
baseURL: s.VITE_API_URL
|
|
62
|
-
// TODO: Not working in children projects
|
|
63
|
-
}), A = (e) => {
|
|
64
|
-
const {
|
|
65
|
-
meta: t
|
|
66
|
-
} = e.state, n = t.isTouched, a = !!t.errors.length, i = t.errors[0]?.message;
|
|
67
|
-
return {
|
|
68
|
-
isTouched: n,
|
|
69
|
-
hasError: a,
|
|
70
|
-
helperText: i
|
|
71
|
-
};
|
|
72
|
-
}, f = (e) => e.replaceAll(/([a-z])([A-Z])/g, "$1-$2").replaceAll(/[\s_]+/g, "-").replaceAll(/[^a-zA-Z0-9-]/g, "").toLowerCase().replaceAll(/-+/g, "-").replaceAll(/(^-|-$)/g, "");
|
|
73
|
-
export {
|
|
74
|
-
p as P,
|
|
75
|
-
l as W,
|
|
76
|
-
g as a,
|
|
77
|
-
A as g,
|
|
78
|
-
u as h,
|
|
79
|
-
h as r,
|
|
80
|
-
f as t
|
|
81
|
-
};
|