@dashadmin/dash-app-common 1.0.0 → 1.3.16
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/{index.js → dist/index.js} +846 -842
- package/package.json +59 -29
- package/src/index.ts +131 -0
- package/index.d.ts +0 -3
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
import { jsx as o, jsxs as T, Fragment as Me } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import U, { Suspense as te, useState as C, useEffect as H, useMemo as De, lazy as
|
|
2
|
+
import * as Gr from "react";
|
|
3
|
+
import U, { Suspense as te, useState as C, useEffect as H, useMemo as De, lazy as Wr, useCallback as Mr, forwardRef as fo, createElement as Yr, Component as po, createRef as ha } from "react";
|
|
4
4
|
import { useDispatch as ut, useSelector as dt } from "react-redux";
|
|
5
|
-
import { Route as ye, Navigate as
|
|
6
|
-
import { getEnv as
|
|
7
|
-
import { IPCMessageBrokerContext as
|
|
8
|
-
import { AuthPersistenceService as re, syncLocalStorageToDeviceStore as ke, syncDeviceStoreToLocalStorage as
|
|
9
|
-
import
|
|
10
|
-
import { default as
|
|
11
|
-
import { DASH_REDUX_ACTIONS as pt, defaultSettings as
|
|
12
|
-
import { DASH_REDUX_ACTIONS as
|
|
13
|
-
import { ACTION_UPDATE_AUTH as
|
|
14
|
-
import { ACTION_UPDATE_AUTH as
|
|
5
|
+
import { Route as ye, Navigate as ho, HashRouter as mo, BrowserRouter as yo, Routes as Vr, useNavigate as Te, useLocation as go } from "react-router-dom";
|
|
6
|
+
import { getEnv as Sr, dashStorage as x, DashRouterComponent as ft, MinimalLayout as Qr, useDeviceStorageSync as vo, dashBootstrapApp as bo, dashInitializeApp as Ao, createLogoutFromStorage as Po, getCurrentUser as So, getAuthToken as Eo, isUserAuthenticated as wo, processFormData as qe, processPostData as xe, getResourceConfig as st, getDashIPCService as ma, onIPCStdout as ya, buildQueryString as Do, isFormDataResource as Ro, setResourceConfigs as To, priceFormatter as _o } from "@dashadmin/dash-utils";
|
|
7
|
+
import { IPCMessageBrokerContext as cd, IPCMessageBrokerProvider as ud, requestNotificationPermission as dd, useIPCMessageBroker as fd } from "@dashadmin/dash-utils";
|
|
8
|
+
import { AuthPersistenceService as re, syncLocalStorageToDeviceStore as ke, syncDeviceStoreToLocalStorage as ga } from "@dashadmin/dash-auth";
|
|
9
|
+
import qr from "@dashadmin/dash-admin/src/contexts/auth/DASHAuthenticationService";
|
|
10
|
+
import { default as hd } from "@dashadmin/dash-admin/src/contexts/auth/DASHAuthenticationService";
|
|
11
|
+
import { DASH_REDUX_ACTIONS as pt, defaultSettings as Oo, defaultCommon as xo, defaultFormState as va, defaultAuth as ba, defaultPageSettings as Aa } from "@dashadmin/dash-admin-state";
|
|
12
|
+
import { DASH_REDUX_ACTIONS as yd } from "@dashadmin/dash-admin-state";
|
|
13
|
+
import { ACTION_UPDATE_AUTH as Pa } from "@dashadmin/dash-admin-state/src/redux/reducers/Auth";
|
|
14
|
+
import { ACTION_UPDATE_AUTH as vd } from "@dashadmin/dash-admin-state/src/redux/reducers/Auth";
|
|
15
15
|
import Ie from "@dashadmin/dash-components/src/components/theme/AppLoadingFallback";
|
|
16
|
-
import { default as
|
|
17
|
-
import { NotFound as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { systemResources as
|
|
21
|
-
import
|
|
22
|
-
import
|
|
16
|
+
import { default as Ad } from "@dashadmin/dash-components/src/components/theme/AppLoadingFallback";
|
|
17
|
+
import { NotFound as Co } from "@dashadmin/dash-components";
|
|
18
|
+
import Io from "@dashadmin/dash-admin/src/providers/authProvider";
|
|
19
|
+
import Lo from "@dashadmin/dash-admin/src/providers/dataProvider";
|
|
20
|
+
import { systemResources as No, getDASHResources as Fo } from "@dashadmin/dash-admin";
|
|
21
|
+
import Mo from "@dashadmin/dash-admin/src/templates/ResourceTemplate";
|
|
22
|
+
import qo from "@mui/icons-material/FiberManualRecord";
|
|
23
23
|
import { DASHAppConstants as Ce, DASHAdminSystemConstants as Se, getEnv as Re } from "@dashadmin/dash-constants";
|
|
24
|
-
import { SelectInput as
|
|
24
|
+
import { SelectInput as Sa, Notification as ko, useNotify as Ea } from "react-admin";
|
|
25
25
|
import Be from "@dashadmin/dash-admin/src/default-theme/DomainAppLayout";
|
|
26
|
-
import { injectTenantStyles as
|
|
27
|
-
import { es as
|
|
28
|
-
import { Box as ue, TextField as W, InputAdornment as
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
26
|
+
import { injectTenantStyles as wa } from "@dashadmin/dash-admin/src/utils/injectTenantStyles";
|
|
27
|
+
import { es as $o, en as jo } from "@dashadmin/dash-admin/src/providers/i18n/languages";
|
|
28
|
+
import { Box as ue, TextField as W, InputAdornment as Uo, IconButton as kr, Button as ae, Alert as Da, useTheme as Bo, useMediaQuery as Ho, Typography as q, Divider as zo, FormControl as Go, FormLabel as Wo, Grid as Pe, Card as Yo, CardContent as Vo, Chip as Qo, Container as He, Paper as ze } from "@mui/material";
|
|
29
|
+
import Kr from "@mui/icons-material/Dashboard";
|
|
30
|
+
import Jr from "@mui/icons-material/Notifications";
|
|
31
|
+
import Zr from "@mui/icons-material/LocationCity";
|
|
32
32
|
import et from "@mui/icons-material/Person";
|
|
33
|
-
import
|
|
34
|
-
import { createDashAuthProvider as
|
|
35
|
-
import { setAuthEvent as
|
|
36
|
-
import { useAxios as Y, processAxiosError as
|
|
37
|
-
import { removeCookie as
|
|
33
|
+
import Xr from "@mui/icons-material/MenuOpenOutlined";
|
|
34
|
+
import { createDashAuthProvider as Ko, createDashDataProvider as Jo } from "@dashadmin/dash-auto-admin";
|
|
35
|
+
import { setAuthEvent as Ra } from "@dashadmin/dash-admin/src/contexts/auth";
|
|
36
|
+
import { useAxios as Y, processAxiosError as Er } from "@dashadmin/dash-axios-hook";
|
|
37
|
+
import { removeCookie as Zo } from "@dashadmin/dash-admin/src/utils/cookies";
|
|
38
38
|
import Ne from "query-string";
|
|
39
|
-
import { cacheInvalidatorHash as
|
|
40
|
-
import
|
|
41
|
-
import { useAuthContext as
|
|
42
|
-
import { useForm as
|
|
39
|
+
import { cacheInvalidatorHash as wr } from "@dashadmin/dash-admin/src/utils/cache/CacheInvalidatorContext";
|
|
40
|
+
import en from "@dashadmin/dash-admin/src/contexts/com/useLaravelEcho";
|
|
41
|
+
import { useAuthContext as Xo } from "@dashadmin/dash-admin/src/contexts/auth/AuthContext";
|
|
42
|
+
import { useForm as $r } from "react-hook-form";
|
|
43
43
|
import ot from "@mui/material/Button";
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import { useNavigate as
|
|
48
|
-
import
|
|
49
|
-
import
|
|
44
|
+
import ei from "@mui/material/Link";
|
|
45
|
+
import ti from "@mui/material/Alert";
|
|
46
|
+
import ri from "@mui/material/Box";
|
|
47
|
+
import { useNavigate as ni } from "react-router";
|
|
48
|
+
import ai from "@mui/icons-material/VisibilityOff";
|
|
49
|
+
import oi from "@mui/icons-material/Visibility";
|
|
50
50
|
import ht from "@dashadmin/dash-admin/src/default-theme/FullLayoutMarkup";
|
|
51
51
|
import Ge from "@mui/icons-material/Home";
|
|
52
52
|
import ee from "prop-types";
|
|
53
|
-
import
|
|
54
|
-
import { useDialog as
|
|
55
|
-
import { RutValidator as
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
const
|
|
53
|
+
import Ta from "@dashadmin/dash-admin/src/contexts/dictionary/DictionaryContext";
|
|
54
|
+
import { useDialog as _a } from "@dashadmin/dash-dialog";
|
|
55
|
+
import { RutValidator as Oa } from "@dashadmin/dash-admin/src/utils/validators";
|
|
56
|
+
import ii from "@mui/icons-material/CheckCircle";
|
|
57
|
+
import si from "@mui/icons-material/Google";
|
|
58
|
+
import li from "@mui/icons-material/CheckCircleOutline";
|
|
59
|
+
import ci from "@mui/icons-material/Email";
|
|
60
|
+
import ui from "@mui/icons-material/ErrorOutline";
|
|
61
|
+
import jr from "@mui/icons-material/ArrowBack";
|
|
62
|
+
import di from "@mui/icons-material/Lock";
|
|
63
|
+
import fi from "@mui/icons-material/Login";
|
|
64
|
+
import pi from "@mui/icons-material/ReportProblem";
|
|
65
|
+
import hi from "@mui/icons-material/Refresh";
|
|
66
|
+
const mi = U.lazy(() => Promise.resolve().then(() => Tl)), yi = U.lazy(() => import("@dashadmin/dash-admin/src/pages/RecoverPassword")), gi = U.lazy(() => import("@dashadmin/dash-admin/src/pages/ChangePassword")), vi = U.lazy(() => import("@dashadmin/dash-admin/src/pages/VerifyAccount")), tt = () => /* @__PURE__ */ o(Ie, { message: "Loading..." }), bi = () => /* @__PURE__ */ o(ho, { to: "/login", replace: !0 }), xa = () => [
|
|
67
67
|
// Default landing page - redirect to login
|
|
68
68
|
/* @__PURE__ */ o(
|
|
69
69
|
ye,
|
|
70
70
|
{
|
|
71
71
|
"data-layout": "no-layout",
|
|
72
72
|
path: "/",
|
|
73
|
-
element: /* @__PURE__ */ o(
|
|
73
|
+
element: /* @__PURE__ */ o(bi, {})
|
|
74
74
|
},
|
|
75
75
|
"landing"
|
|
76
76
|
),
|
|
@@ -80,7 +80,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
80
80
|
{
|
|
81
81
|
"data-layout": "no-layout",
|
|
82
82
|
path: "/login",
|
|
83
|
-
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(tt, {}), children: /* @__PURE__ */ o(
|
|
83
|
+
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(tt, {}), children: /* @__PURE__ */ o(mi, {}) })
|
|
84
84
|
},
|
|
85
85
|
"login"
|
|
86
86
|
),
|
|
@@ -89,7 +89,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
89
89
|
ye,
|
|
90
90
|
{
|
|
91
91
|
path: "/reset-password",
|
|
92
|
-
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(tt, {}), children: /* @__PURE__ */ o(
|
|
92
|
+
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(tt, {}), children: /* @__PURE__ */ o(yi, {}) })
|
|
93
93
|
},
|
|
94
94
|
"reset-password"
|
|
95
95
|
),
|
|
@@ -97,7 +97,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
97
97
|
ye,
|
|
98
98
|
{
|
|
99
99
|
path: "/change-password",
|
|
100
|
-
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(tt, {}), children: /* @__PURE__ */ o(
|
|
100
|
+
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(tt, {}), children: /* @__PURE__ */ o(gi, {}) })
|
|
101
101
|
},
|
|
102
102
|
"change-password"
|
|
103
103
|
),
|
|
@@ -106,23 +106,23 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
106
106
|
ye,
|
|
107
107
|
{
|
|
108
108
|
path: "/verify-email",
|
|
109
|
-
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(tt, {}), children: /* @__PURE__ */ o(
|
|
109
|
+
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(tt, {}), children: /* @__PURE__ */ o(vi, {}) })
|
|
110
110
|
},
|
|
111
111
|
"verify-account"
|
|
112
112
|
)
|
|
113
|
-
],
|
|
114
|
-
() => Promise.resolve().then(() =>
|
|
115
|
-
),
|
|
116
|
-
const e =
|
|
113
|
+
], Ai = U.lazy(
|
|
114
|
+
() => Promise.resolve().then(() => Ni)
|
|
115
|
+
), Pi = () => {
|
|
116
|
+
const e = Sr("PLATFORM_TYPE"), t = Sr("PLATFORM");
|
|
117
117
|
return e === "desktop" || t === "electron";
|
|
118
|
-
},
|
|
118
|
+
}, Si = ({
|
|
119
119
|
publicRoutes: e,
|
|
120
120
|
privateRoutes: t,
|
|
121
121
|
isAuthenticated: r,
|
|
122
122
|
LoadingComponent: n,
|
|
123
123
|
privateAppProps: a = {},
|
|
124
124
|
PrivateApp: i
|
|
125
|
-
}) => r ? i ? /* @__PURE__ */ o(i, { ...a }) : t ? /* @__PURE__ */ o(
|
|
125
|
+
}) => r ? i ? /* @__PURE__ */ o(i, { ...a }) : t ? /* @__PURE__ */ o(Vr, { children: t() }) : /* @__PURE__ */ o(U.Suspense, { fallback: /* @__PURE__ */ o(n, { message: "Loading admin..." }), children: /* @__PURE__ */ o(Ai, { useOwnRouter: !1, ...a }) }) : /* @__PURE__ */ o(Vr, { children: e() }), Ei = ({
|
|
126
126
|
publicRoutes: e,
|
|
127
127
|
privateRoutes: t,
|
|
128
128
|
PrivateApp: r,
|
|
@@ -139,8 +139,8 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
139
139
|
try {
|
|
140
140
|
const g = re.getToken(), b = re.getUser(), E = JSON.parse(x.getItem("authenticated") || "false");
|
|
141
141
|
if (h("Persisted data:", { hasToken: !!g, hasUser: !!b, isAuthenticated: E }), g && E) {
|
|
142
|
-
const D = await
|
|
143
|
-
D.success ? (h("Session restored successfully"), c(pt.updateAuth(
|
|
142
|
+
const D = await qr.initializeFromToken();
|
|
143
|
+
D.success ? (h("Session restored successfully"), c(pt.updateAuth(Pa, {
|
|
144
144
|
user: D.user,
|
|
145
145
|
authenticated: !0,
|
|
146
146
|
auth: D.auth || null
|
|
@@ -154,7 +154,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
154
154
|
}
|
|
155
155
|
})();
|
|
156
156
|
}, [c, i]), s ? /* @__PURE__ */ o(a, { message: "Initializing..." }) : (h("Rendering:", f ? "Private App" : "Public Routes"), /* @__PURE__ */ o(
|
|
157
|
-
|
|
157
|
+
Si,
|
|
158
158
|
{
|
|
159
159
|
publicRoutes: e,
|
|
160
160
|
privateRoutes: t,
|
|
@@ -164,8 +164,8 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
164
164
|
PrivateApp: r
|
|
165
165
|
}
|
|
166
166
|
));
|
|
167
|
-
},
|
|
168
|
-
publicRoutes: e =
|
|
167
|
+
}, Vc = ({
|
|
168
|
+
publicRoutes: e = xa,
|
|
169
169
|
privateRoutes: t,
|
|
170
170
|
PrivateApp: r,
|
|
171
171
|
privateAppProps: n,
|
|
@@ -174,9 +174,9 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
174
174
|
basename: s,
|
|
175
175
|
debug: l = !1
|
|
176
176
|
}) => {
|
|
177
|
-
const c = i ??
|
|
178
|
-
return /* @__PURE__ */ o(c ?
|
|
179
|
-
|
|
177
|
+
const c = i ?? Pi(), m = s ?? Sr("BASE_PATH") ?? "/";
|
|
178
|
+
return /* @__PURE__ */ o(c ? mo : yo, { ...c ? { basename: "" } : { basename: m }, children: /* @__PURE__ */ o(
|
|
179
|
+
Ei,
|
|
180
180
|
{
|
|
181
181
|
publicRoutes: e,
|
|
182
182
|
privateRoutes: t,
|
|
@@ -186,15 +186,15 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
186
186
|
debug: l
|
|
187
187
|
}
|
|
188
188
|
) });
|
|
189
|
-
},
|
|
189
|
+
}, wi = ({
|
|
190
190
|
customPublicRoutes: e
|
|
191
191
|
}) => /* @__PURE__ */ o(
|
|
192
192
|
ft,
|
|
193
193
|
{
|
|
194
194
|
loader: /* @__PURE__ */ o(Ie, { message: "Loading..." }),
|
|
195
|
-
publicRoutes: e ||
|
|
195
|
+
publicRoutes: e || xa
|
|
196
196
|
}
|
|
197
|
-
),
|
|
197
|
+
), Di = [
|
|
198
198
|
{
|
|
199
199
|
tab: "Todo",
|
|
200
200
|
attribute: "name",
|
|
@@ -213,7 +213,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
213
213
|
label: "Completed",
|
|
214
214
|
type: Boolean
|
|
215
215
|
}
|
|
216
|
-
],
|
|
216
|
+
], Ri = [
|
|
217
217
|
{
|
|
218
218
|
id: "name",
|
|
219
219
|
label: "Nombre",
|
|
@@ -241,18 +241,18 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
241
241
|
optionText: "completed",
|
|
242
242
|
// field from the model
|
|
243
243
|
alwaysOn: !0,
|
|
244
|
-
referenceComponent:
|
|
244
|
+
referenceComponent: Sa
|
|
245
245
|
}
|
|
246
|
-
],
|
|
246
|
+
], Ti = qo, _i = !0, Oi = {
|
|
247
247
|
roles: [Ce.system.SYSTEM_ROLE],
|
|
248
|
-
component:
|
|
248
|
+
component: Mo,
|
|
249
249
|
//trash: true,
|
|
250
250
|
model: "example/todo",
|
|
251
251
|
label: "Todo",
|
|
252
|
-
schema:
|
|
253
|
-
icon: /* @__PURE__ */ o(
|
|
252
|
+
schema: Di,
|
|
253
|
+
icon: /* @__PURE__ */ o(Ti, {}),
|
|
254
254
|
group: "Example",
|
|
255
|
-
trash:
|
|
255
|
+
trash: _i,
|
|
256
256
|
menu: [
|
|
257
257
|
{
|
|
258
258
|
title: "List",
|
|
@@ -263,7 +263,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
263
263
|
redirect: "/example/todo/trash"
|
|
264
264
|
}
|
|
265
265
|
],
|
|
266
|
-
referenceFilters:
|
|
266
|
+
referenceFilters: Ri,
|
|
267
267
|
mainAction: {
|
|
268
268
|
title: "Crear Todo",
|
|
269
269
|
mode: "create",
|
|
@@ -286,13 +286,13 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
286
286
|
saveButtonAlwaysEnabled: !0,
|
|
287
287
|
listProps: { storeKey: !1 },
|
|
288
288
|
resetSelectedIdsOnLoad: !0
|
|
289
|
-
},
|
|
290
|
-
...
|
|
291
|
-
|
|
292
|
-
],
|
|
289
|
+
}, xi = [
|
|
290
|
+
...No,
|
|
291
|
+
Oi
|
|
292
|
+
], tn = U.lazy(() => import("@dashadmin/dash-admin").then((e) => ({ default: e.DASHAdmin }))), Ci = U.lazy(() => import("@dashadmin/dash-admin").then((e) => ({ default: e.DASHAppProviders }))), Ii = U.lazy(() => import("@dashadmin/dash-admin").then((e) => ({ default: e.RoutingWrapper }))), Li = U.lazy(() => import("@dashadmin/dash-admin").then((e) => ({ default: e.AnimatedRoutesWrapper }))), Fe = ({ message: e }) => /* @__PURE__ */ o(Ie, { message: e || "Loading..." }), $e = ({
|
|
293
293
|
// App configuration props
|
|
294
294
|
appPath: e = null,
|
|
295
|
-
resources: t =
|
|
295
|
+
resources: t = xi,
|
|
296
296
|
useOwnRouter: r = !0,
|
|
297
297
|
GlobalHook: n = () => /* @__PURE__ */ o(Me, {}),
|
|
298
298
|
// DASHAdmin props with defaults
|
|
@@ -300,7 +300,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
300
300
|
customLayout: i = Be,
|
|
301
301
|
customLoginPage: s,
|
|
302
302
|
customNotification: l,
|
|
303
|
-
customErrorPage: c =
|
|
303
|
+
customErrorPage: c = Co,
|
|
304
304
|
customDataProvider: m = null,
|
|
305
305
|
customAuthProvider: f = null,
|
|
306
306
|
customI18nProvider: h,
|
|
@@ -328,15 +328,15 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
328
328
|
), V = De(
|
|
329
329
|
() => w || (d ? d() : []),
|
|
330
330
|
[w, d]
|
|
331
|
-
), Q = m ||
|
|
332
|
-
return /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(Fe, { message: "Loading admin providers..." }), children: /* @__PURE__ */ T(
|
|
331
|
+
), Q = m || Lo, K = f || Io;
|
|
332
|
+
return /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(Fe, { message: "Loading admin providers..." }), children: /* @__PURE__ */ T(Ci, { wsMessagesManager: F, children: [
|
|
333
333
|
/* @__PURE__ */ o(n, {}),
|
|
334
334
|
r ? /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(Fe, { message: "Loading routing..." }), children: /* @__PURE__ */ o(
|
|
335
|
-
|
|
335
|
+
Ii,
|
|
336
336
|
{
|
|
337
337
|
BrowserRouterComponent: ve,
|
|
338
|
-
Wrapper:
|
|
339
|
-
LayoutComponent:
|
|
338
|
+
Wrapper: Li,
|
|
339
|
+
LayoutComponent: Qr,
|
|
340
340
|
children: /* @__PURE__ */ o(
|
|
341
341
|
ye,
|
|
342
342
|
{
|
|
@@ -344,7 +344,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
344
344
|
element: /* @__PURE__ */ T(te, { fallback: /* @__PURE__ */ o(Fe, { message: "Loading admin..." }), children: [
|
|
345
345
|
k,
|
|
346
346
|
/* @__PURE__ */ o(
|
|
347
|
-
|
|
347
|
+
tn,
|
|
348
348
|
{
|
|
349
349
|
basePath: j,
|
|
350
350
|
customDataProvider: Q,
|
|
@@ -375,10 +375,10 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
375
375
|
}
|
|
376
376
|
)
|
|
377
377
|
}
|
|
378
|
-
) }) : /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(Fe, { message: "Loading layout..." }), children: /* @__PURE__ */ o(
|
|
378
|
+
) }) : /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(Fe, { message: "Loading layout..." }), children: /* @__PURE__ */ o(Qr, { children: /* @__PURE__ */ T(te, { fallback: /* @__PURE__ */ o(Fe, { message: "Loading admin..." }), children: [
|
|
379
379
|
k,
|
|
380
380
|
/* @__PURE__ */ o(
|
|
381
|
-
|
|
381
|
+
tn,
|
|
382
382
|
{
|
|
383
383
|
basePath: j,
|
|
384
384
|
customDataProvider: Q,
|
|
@@ -407,10 +407,10 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
407
407
|
)
|
|
408
408
|
] }) }) })
|
|
409
409
|
] }) });
|
|
410
|
-
},
|
|
410
|
+
}, Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
411
411
|
__proto__: null,
|
|
412
412
|
default: $e
|
|
413
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
413
|
+
}, Symbol.toStringTag, { value: "Module" })), Fi = ({
|
|
414
414
|
message: e = "Loading...",
|
|
415
415
|
background: t = "linear-gradient(to bottom, var(--bodybg-primary), var(--bodybg-secondary))",
|
|
416
416
|
textColor: r = "var(--text-color, @text-color--dark)"
|
|
@@ -450,21 +450,21 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
450
450
|
` })
|
|
451
451
|
]
|
|
452
452
|
}
|
|
453
|
-
),
|
|
453
|
+
), Mi = () => /* @__PURE__ */ o("div", { style: {
|
|
454
454
|
display: "flex",
|
|
455
455
|
justifyContent: "center",
|
|
456
456
|
alignItems: "center",
|
|
457
457
|
height: "100vh",
|
|
458
458
|
background: "linear-gradient(to bottom, var(--bodybg-primary), var(--bodybg-secondary))",
|
|
459
459
|
color: "var(--text-color, @text-color--dark)"
|
|
460
|
-
}, children: /* @__PURE__ */ o("h1", { children: "Welcome back!" }) }),
|
|
460
|
+
}, children: /* @__PURE__ */ o("h1", { children: "Welcome back!" }) }), Qc = () => [
|
|
461
461
|
// Landing page (authenticated view)
|
|
462
462
|
/* @__PURE__ */ o(
|
|
463
463
|
ye,
|
|
464
464
|
{
|
|
465
465
|
"data-layout": "no-layout",
|
|
466
466
|
path: "/",
|
|
467
|
-
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(
|
|
467
|
+
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(Fi, {}), children: /* @__PURE__ */ o(Mi, {}) })
|
|
468
468
|
},
|
|
469
469
|
"landing"
|
|
470
470
|
),
|
|
@@ -479,7 +479,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
479
479
|
)
|
|
480
480
|
], ie = (e, ...t) => {
|
|
481
481
|
e && console.log(...t);
|
|
482
|
-
},
|
|
482
|
+
}, Kc = ({ message: e }) => /* @__PURE__ */ T("div", { style: {
|
|
483
483
|
display: "flex",
|
|
484
484
|
flexDirection: "column",
|
|
485
485
|
justifyContent: "center",
|
|
@@ -505,7 +505,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
505
505
|
100% { transform: rotate(360deg); }
|
|
506
506
|
}
|
|
507
507
|
` })
|
|
508
|
-
] }),
|
|
508
|
+
] }), qi = ({
|
|
509
509
|
error: e,
|
|
510
510
|
onRetry: t
|
|
511
511
|
}) => /* @__PURE__ */ T("div", { style: {
|
|
@@ -543,7 +543,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
543
543
|
children: "Retry"
|
|
544
544
|
}
|
|
545
545
|
)
|
|
546
|
-
] }),
|
|
546
|
+
] }), ki = ({ missingProps: e }) => /* @__PURE__ */ T("div", { style: {
|
|
547
547
|
display: "flex",
|
|
548
548
|
flexDirection: "column",
|
|
549
549
|
justifyContent: "center",
|
|
@@ -572,14 +572,14 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
572
572
|
borderRadius: "4px",
|
|
573
573
|
overflow: "auto",
|
|
574
574
|
fontSize: "12px"
|
|
575
|
-
}, children: `import { DashAppLoader } from 'dash-app-common';
|
|
575
|
+
}, children: `import { DashAppLoader } from '@dashadmin/dash-app-common';
|
|
576
576
|
|
|
577
577
|
<DashAppLoader
|
|
578
578
|
publicAppImport={() => import('./DASHPublicApp')}
|
|
579
579
|
privateAppImport={() => import('./DASHLazyAdminApp')}
|
|
580
580
|
/>` })
|
|
581
581
|
] })
|
|
582
|
-
] }),
|
|
582
|
+
] }), $i = () => Promise.resolve({ default: wi }), ji = () => Promise.resolve({ default: $e }), Ui = ({
|
|
583
583
|
publicAppImport: e,
|
|
584
584
|
privateAppImport: t,
|
|
585
585
|
authService: r,
|
|
@@ -593,7 +593,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
593
593
|
debug: f
|
|
594
594
|
}) => {
|
|
595
595
|
const h = ut(), u = dt((A) => A.auth), [g, b] = C(!0), [E, D] = C(null), [S, w] = C(!1);
|
|
596
|
-
|
|
596
|
+
vo(), ie(f, "🔍 DashAppLoader: Redux auth state:", {
|
|
597
597
|
isLogged: u?.isLogged,
|
|
598
598
|
hasUser: !!u?.user,
|
|
599
599
|
hasToken: !!u?.token
|
|
@@ -658,7 +658,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
658
658
|
A = !1;
|
|
659
659
|
};
|
|
660
660
|
}, [r, S, f]);
|
|
661
|
-
const p = De(() =>
|
|
661
|
+
const p = De(() => Wr(e), [e]), y = De(() => Wr(t), [t]), d = Mr(() => {
|
|
662
662
|
D(null), b(!0), w(!1);
|
|
663
663
|
}, []);
|
|
664
664
|
if (E)
|
|
@@ -676,23 +676,23 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
676
676
|
...c
|
|
677
677
|
}
|
|
678
678
|
) : /* @__PURE__ */ o(p, { ...m }) });
|
|
679
|
-
},
|
|
679
|
+
}, Bi = ({
|
|
680
680
|
publicAppImport: e,
|
|
681
681
|
privateAppImport: t,
|
|
682
682
|
AdminHookComponent: r,
|
|
683
683
|
LoadingFallback: n = Ie,
|
|
684
|
-
ErrorFallback: a =
|
|
684
|
+
ErrorFallback: a = qi,
|
|
685
685
|
privateAppProps: i = {},
|
|
686
686
|
publicAppProps: s = {},
|
|
687
687
|
debug: l = !1,
|
|
688
688
|
// Allow overrides but provide defaults
|
|
689
|
-
authService: c =
|
|
689
|
+
authService: c = qr,
|
|
690
690
|
reduxActions: m = pt,
|
|
691
|
-
updateAuthActionType: f =
|
|
691
|
+
updateAuthActionType: f = Pa
|
|
692
692
|
}) => {
|
|
693
|
-
const h = e ||
|
|
694
|
-
return c || g.push("authService"), m || g.push("reduxActions"), f || g.push("updateAuthActionType"), g.length > 0 ? /* @__PURE__ */ o(
|
|
695
|
-
|
|
693
|
+
const h = e || $i, u = t || ji, g = [];
|
|
694
|
+
return c || g.push("authService"), m || g.push("reduxActions"), f || g.push("updateAuthActionType"), g.length > 0 ? /* @__PURE__ */ o(ki, { missingProps: g }) : /* @__PURE__ */ o(
|
|
695
|
+
Ui,
|
|
696
696
|
{
|
|
697
697
|
publicAppImport: h,
|
|
698
698
|
privateAppImport: u,
|
|
@@ -707,7 +707,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
707
707
|
debug: l
|
|
708
708
|
}
|
|
709
709
|
);
|
|
710
|
-
},
|
|
710
|
+
}, Jc = (e = {}) => () => /* @__PURE__ */ o(Bi, { ...e }), Hi = (e) => !e || Array.isArray(e) ? !1 : typeof e == "object" && Object.values(e).every((t) => typeof t == "function"), zi = (e) => Array.isArray(e), it = /* @__PURE__ */ new WeakMap(), Gi = async (e) => {
|
|
711
711
|
if (it.has(e))
|
|
712
712
|
return it.get(e);
|
|
713
713
|
const t = Object.entries(e), n = (await Promise.all(
|
|
@@ -723,16 +723,16 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
723
723
|
s.model && a.set(s.model, s);
|
|
724
724
|
const i = Array.from(a.values());
|
|
725
725
|
return it.set(e, i), i;
|
|
726
|
-
}, Gi = (e) => {
|
|
727
|
-
it.delete(e);
|
|
728
726
|
}, Wi = (e) => {
|
|
727
|
+
it.delete(e);
|
|
728
|
+
}, Yi = (e) => {
|
|
729
729
|
const [t, r] = C(null), [n, a] = C(!0), [i, s] = C(null), [l, c] = C(0);
|
|
730
730
|
return H(() => {
|
|
731
731
|
let f = !0;
|
|
732
732
|
return (async () => {
|
|
733
733
|
a(!0), s(null);
|
|
734
734
|
try {
|
|
735
|
-
const u = await
|
|
735
|
+
const u = await Gi(e);
|
|
736
736
|
f && (console.log("📦 useDashResourceManifest: Loaded", u.length, "resources from manifest"), r(u), a(!1));
|
|
737
737
|
} catch (u) {
|
|
738
738
|
if (f) {
|
|
@@ -744,9 +744,9 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
744
744
|
f = !1;
|
|
745
745
|
};
|
|
746
746
|
}, [e, l]), { resources: t, loading: n, error: i, reload: () => {
|
|
747
|
-
|
|
747
|
+
Wi(e), c((f) => f + 1);
|
|
748
748
|
} };
|
|
749
|
-
},
|
|
749
|
+
}, Ca = ({ message: e }) => /* @__PURE__ */ o(Ie, { message: e || "Loading resources..." }), Ia = ({ error: e, onRetry: t }) => /* @__PURE__ */ T("div", { style: {
|
|
750
750
|
display: "flex",
|
|
751
751
|
flexDirection: "column",
|
|
752
752
|
justifyContent: "center",
|
|
@@ -775,14 +775,14 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
775
775
|
children: "Retry"
|
|
776
776
|
}
|
|
777
777
|
)
|
|
778
|
-
] }),
|
|
778
|
+
] }), Vi = ({
|
|
779
779
|
manifest: e,
|
|
780
|
-
LoadingComponent: t =
|
|
781
|
-
ErrorComponent: r =
|
|
780
|
+
LoadingComponent: t = Ca,
|
|
781
|
+
ErrorComponent: r = Ia,
|
|
782
782
|
children: n,
|
|
783
783
|
...a
|
|
784
784
|
}) => {
|
|
785
|
-
const { resources: i, loading: s, error: l, reload: c } =
|
|
785
|
+
const { resources: i, loading: s, error: l, reload: c } = Yi(e);
|
|
786
786
|
return s ? /* @__PURE__ */ o(t, { message: "Loading resources..." }) : l ? /* @__PURE__ */ o(r, { error: l, onRetry: c }) : /* @__PURE__ */ o(
|
|
787
787
|
$e,
|
|
788
788
|
{
|
|
@@ -791,21 +791,21 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
791
791
|
children: n
|
|
792
792
|
}
|
|
793
793
|
);
|
|
794
|
-
},
|
|
794
|
+
}, Zc = ({
|
|
795
795
|
resources: e,
|
|
796
|
-
LoadingComponent: t =
|
|
797
|
-
ErrorComponent: r =
|
|
796
|
+
LoadingComponent: t = Ca,
|
|
797
|
+
ErrorComponent: r = Ia,
|
|
798
798
|
children: n,
|
|
799
799
|
...a
|
|
800
|
-
}) =>
|
|
800
|
+
}) => zi(e) ? /* @__PURE__ */ o(
|
|
801
801
|
$e,
|
|
802
802
|
{
|
|
803
803
|
resources: e,
|
|
804
804
|
...a,
|
|
805
805
|
children: n
|
|
806
806
|
}
|
|
807
|
-
) :
|
|
808
|
-
|
|
807
|
+
) : Hi(e) ? /* @__PURE__ */ o(
|
|
808
|
+
Vi,
|
|
809
809
|
{
|
|
810
810
|
manifest: e,
|
|
811
811
|
LoadingComponent: t,
|
|
@@ -820,12 +820,12 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
820
820
|
...a,
|
|
821
821
|
children: n
|
|
822
822
|
}
|
|
823
|
-
)),
|
|
823
|
+
)), Xc = async (e = {}) => {
|
|
824
824
|
const { defaultTheme: t, ...r } = e;
|
|
825
|
-
await
|
|
826
|
-
},
|
|
827
|
-
|
|
828
|
-
},
|
|
825
|
+
await Ao(r), t && wa(t);
|
|
826
|
+
}, eu = (e) => {
|
|
827
|
+
bo(), e && wa(e);
|
|
828
|
+
}, Qi = ({
|
|
829
829
|
error: e,
|
|
830
830
|
onReload: t
|
|
831
831
|
}) => /* @__PURE__ */ T("div", { style: {
|
|
@@ -861,7 +861,7 @@ const hi = U.lazy(() => Promise.resolve().then(() => wl)), mi = U.lazy(() => imp
|
|
|
861
861
|
}
|
|
862
862
|
)
|
|
863
863
|
] });
|
|
864
|
-
class
|
|
864
|
+
class tu extends U.Component {
|
|
865
865
|
constructor(t) {
|
|
866
866
|
super(t), this.state = { hasError: !1 };
|
|
867
867
|
}
|
|
@@ -876,7 +876,7 @@ class Zc extends U.Component {
|
|
|
876
876
|
};
|
|
877
877
|
render() {
|
|
878
878
|
return this.state.hasError ? this.props.fallback ? this.props.fallback : /* @__PURE__ */ o(
|
|
879
|
-
|
|
879
|
+
Qi,
|
|
880
880
|
{
|
|
881
881
|
error: this.state.error,
|
|
882
882
|
onReload: this.handleReload
|
|
@@ -884,9 +884,9 @@ class Zc extends U.Component {
|
|
|
884
884
|
) : this.props.children;
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
const
|
|
887
|
+
const rn = {
|
|
888
888
|
// Add default components here
|
|
889
|
-
},
|
|
889
|
+
}, Ki = async () => {
|
|
890
890
|
try {
|
|
891
891
|
const [
|
|
892
892
|
e,
|
|
@@ -903,23 +903,23 @@ const tn = {
|
|
|
903
903
|
JsonColorSelector: t.default,
|
|
904
904
|
JsonCssVarValues: r.default,
|
|
905
905
|
// App-specific components
|
|
906
|
-
...
|
|
906
|
+
...rn
|
|
907
907
|
};
|
|
908
908
|
} catch (e) {
|
|
909
|
-
return console.error("Failed to load dash default auto admin components:", e),
|
|
909
|
+
return console.error("Failed to load dash default auto admin components:", e), rn;
|
|
910
910
|
}
|
|
911
|
-
},
|
|
912
|
-
defaultRecoverPassword: /* @__PURE__ */ o(U.Suspense, { fallback: /* @__PURE__ */ o("div", { children: "Loading..." }), children: /* @__PURE__ */ o(
|
|
913
|
-
defaultChangePassword: /* @__PURE__ */ o(U.Suspense, { fallback: /* @__PURE__ */ o("div", { children: "Loading..." }), children: /* @__PURE__ */ o(
|
|
914
|
-
},
|
|
915
|
-
|
|
911
|
+
}, Ji = U.lazy(() => import("@dashadmin/dash-admin/src/pages/RecoverPassword")), Zi = U.lazy(() => import("@dashadmin/dash-admin/src/pages/ChangePassword")), Xi = {
|
|
912
|
+
defaultRecoverPassword: /* @__PURE__ */ o(U.Suspense, { fallback: /* @__PURE__ */ o("div", { children: "Loading..." }), children: /* @__PURE__ */ o(Ji, {}) }),
|
|
913
|
+
defaultChangePassword: /* @__PURE__ */ o(U.Suspense, { fallback: /* @__PURE__ */ o("div", { children: "Loading..." }), children: /* @__PURE__ */ o(Zi, {}) })
|
|
914
|
+
}, ru = () => Xi, nu = () => /* @__PURE__ */ o(
|
|
915
|
+
ko,
|
|
916
916
|
{
|
|
917
917
|
className: "dash-notification",
|
|
918
918
|
autoHideDuration: 8e3,
|
|
919
919
|
multiLine: !0,
|
|
920
920
|
anchorOrigin: { vertical: "top", horizontal: "right" }
|
|
921
921
|
}
|
|
922
|
-
),
|
|
922
|
+
), au = {
|
|
923
923
|
autoHideDuration: 8e3,
|
|
924
924
|
multiLine: !0,
|
|
925
925
|
anchorOrigin: {
|
|
@@ -927,7 +927,7 @@ const tn = {
|
|
|
927
927
|
horizontal: "right"
|
|
928
928
|
},
|
|
929
929
|
className: "dash-notification"
|
|
930
|
-
},
|
|
930
|
+
}, ou = (e) => {
|
|
931
931
|
const [t, r] = C(!1);
|
|
932
932
|
return H(() => {
|
|
933
933
|
const n = parseInt(x.getItem("tmp"), 10) || 0;
|
|
@@ -935,33 +935,33 @@ const tn = {
|
|
|
935
935
|
}, []), H(() => {
|
|
936
936
|
e ? parseInt(x.getItem("tmp"), 10) >= e && r(!0) : r(!0);
|
|
937
937
|
}, [e]), t;
|
|
938
|
-
},
|
|
938
|
+
}, iu = (e, t) => {
|
|
939
939
|
const [r, n] = C("");
|
|
940
940
|
return H(() => {
|
|
941
941
|
const a = e || t || Se.system.URL_PREFIX, i = a.replace(/\/\*$/, "");
|
|
942
942
|
console.log("ROUTE-BASE-PATH:", i), n(a);
|
|
943
943
|
}, [e, t]), r;
|
|
944
944
|
};
|
|
945
|
-
function
|
|
945
|
+
function La(e) {
|
|
946
946
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
947
947
|
}
|
|
948
|
-
var Et,
|
|
949
|
-
function
|
|
950
|
-
if (
|
|
951
|
-
|
|
948
|
+
var Et, nn;
|
|
949
|
+
function Na() {
|
|
950
|
+
if (nn) return Et;
|
|
951
|
+
nn = 1;
|
|
952
952
|
var e = Object.prototype.toString;
|
|
953
953
|
return Et = function(r) {
|
|
954
954
|
var n = e.call(r), a = n === "[object Arguments]";
|
|
955
955
|
return a || (a = n !== "[object Array]" && r !== null && typeof r == "object" && typeof r.length == "number" && r.length >= 0 && e.call(r.callee) === "[object Function]"), a;
|
|
956
956
|
}, Et;
|
|
957
957
|
}
|
|
958
|
-
var wt,
|
|
959
|
-
function
|
|
960
|
-
if (
|
|
961
|
-
|
|
958
|
+
var wt, an;
|
|
959
|
+
function es() {
|
|
960
|
+
if (an) return wt;
|
|
961
|
+
an = 1;
|
|
962
962
|
var e;
|
|
963
963
|
if (!Object.keys) {
|
|
964
|
-
var t = Object.prototype.hasOwnProperty, r = Object.prototype.toString, n =
|
|
964
|
+
var t = Object.prototype.hasOwnProperty, r = Object.prototype.toString, n = Na(), a = Object.prototype.propertyIsEnumerable, i = !a.call({ toString: null }, "toString"), s = a.call(function() {
|
|
965
965
|
}, "prototype"), l = [
|
|
966
966
|
"toString",
|
|
967
967
|
"toLocaleString",
|
|
@@ -1043,13 +1043,13 @@ function Xi() {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
return wt = e, wt;
|
|
1045
1045
|
}
|
|
1046
|
-
var Dt,
|
|
1047
|
-
function
|
|
1048
|
-
if (
|
|
1049
|
-
|
|
1050
|
-
var e = Array.prototype.slice, t =
|
|
1046
|
+
var Dt, on;
|
|
1047
|
+
function ts() {
|
|
1048
|
+
if (on) return Dt;
|
|
1049
|
+
on = 1;
|
|
1050
|
+
var e = Array.prototype.slice, t = Na(), r = Object.keys, n = r ? function(s) {
|
|
1051
1051
|
return r(s);
|
|
1052
|
-
} :
|
|
1052
|
+
} : es(), a = Object.keys;
|
|
1053
1053
|
return n.shim = function() {
|
|
1054
1054
|
if (Object.keys) {
|
|
1055
1055
|
var s = (function() {
|
|
@@ -1064,10 +1064,10 @@ function es() {
|
|
|
1064
1064
|
return Object.keys || n;
|
|
1065
1065
|
}, Dt = n, Dt;
|
|
1066
1066
|
}
|
|
1067
|
-
var Rt,
|
|
1067
|
+
var Rt, sn;
|
|
1068
1068
|
function mt() {
|
|
1069
|
-
if (
|
|
1070
|
-
|
|
1069
|
+
if (sn) return Rt;
|
|
1070
|
+
sn = 1;
|
|
1071
1071
|
var e = Object.defineProperty || !1;
|
|
1072
1072
|
if (e)
|
|
1073
1073
|
try {
|
|
@@ -1077,23 +1077,23 @@ function mt() {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
return Rt = e, Rt;
|
|
1079
1079
|
}
|
|
1080
|
-
var Tt,
|
|
1081
|
-
function
|
|
1082
|
-
return
|
|
1080
|
+
var Tt, ln;
|
|
1081
|
+
function Fa() {
|
|
1082
|
+
return ln || (ln = 1, Tt = SyntaxError), Tt;
|
|
1083
1083
|
}
|
|
1084
|
-
var _t,
|
|
1084
|
+
var _t, cn;
|
|
1085
1085
|
function We() {
|
|
1086
|
-
return
|
|
1086
|
+
return cn || (cn = 1, _t = TypeError), _t;
|
|
1087
1087
|
}
|
|
1088
|
-
var Ot,
|
|
1089
|
-
function
|
|
1090
|
-
return
|
|
1088
|
+
var Ot, un;
|
|
1089
|
+
function rs() {
|
|
1090
|
+
return un || (un = 1, Ot = Object.getOwnPropertyDescriptor), Ot;
|
|
1091
1091
|
}
|
|
1092
|
-
var xt,
|
|
1092
|
+
var xt, dn;
|
|
1093
1093
|
function yt() {
|
|
1094
|
-
if (
|
|
1095
|
-
|
|
1096
|
-
var e = /* @__PURE__ */
|
|
1094
|
+
if (dn) return xt;
|
|
1095
|
+
dn = 1;
|
|
1096
|
+
var e = /* @__PURE__ */ rs();
|
|
1097
1097
|
if (e)
|
|
1098
1098
|
try {
|
|
1099
1099
|
e([], "length");
|
|
@@ -1102,11 +1102,11 @@ function yt() {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
return xt = e, xt;
|
|
1104
1104
|
}
|
|
1105
|
-
var Ct,
|
|
1106
|
-
function
|
|
1107
|
-
if (
|
|
1108
|
-
|
|
1109
|
-
var e = /* @__PURE__ */ mt(), t = /* @__PURE__ */
|
|
1105
|
+
var Ct, fn;
|
|
1106
|
+
function Ma() {
|
|
1107
|
+
if (fn) return Ct;
|
|
1108
|
+
fn = 1;
|
|
1109
|
+
var e = /* @__PURE__ */ mt(), t = /* @__PURE__ */ Fa(), r = /* @__PURE__ */ We(), n = /* @__PURE__ */ yt();
|
|
1110
1110
|
return Ct = function(i, s, l) {
|
|
1111
1111
|
if (!i || typeof i != "object" && typeof i != "function")
|
|
1112
1112
|
throw new r("`obj` must be an object or a function`");
|
|
@@ -1134,10 +1134,10 @@ function Na() {
|
|
|
1134
1134
|
throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
1135
1135
|
}, Ct;
|
|
1136
1136
|
}
|
|
1137
|
-
var It,
|
|
1138
|
-
function
|
|
1139
|
-
if (
|
|
1140
|
-
|
|
1137
|
+
var It, pn;
|
|
1138
|
+
function qa() {
|
|
1139
|
+
if (pn) return It;
|
|
1140
|
+
pn = 1;
|
|
1141
1141
|
var e = /* @__PURE__ */ mt(), t = function() {
|
|
1142
1142
|
return !!e;
|
|
1143
1143
|
};
|
|
@@ -1151,13 +1151,13 @@ function Fa() {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
}, It = t, It;
|
|
1153
1153
|
}
|
|
1154
|
-
var Lt,
|
|
1155
|
-
function
|
|
1156
|
-
if (
|
|
1157
|
-
|
|
1158
|
-
var e =
|
|
1154
|
+
var Lt, hn;
|
|
1155
|
+
function ka() {
|
|
1156
|
+
if (hn) return Lt;
|
|
1157
|
+
hn = 1;
|
|
1158
|
+
var e = ts(), t = typeof Symbol == "function" && typeof /* @__PURE__ */ Symbol("foo") == "symbol", r = Object.prototype.toString, n = Array.prototype.concat, a = /* @__PURE__ */ Ma(), i = function(m) {
|
|
1159
1159
|
return typeof m == "function" && r.call(m) === "[object Function]";
|
|
1160
|
-
}, s = /* @__PURE__ */
|
|
1160
|
+
}, s = /* @__PURE__ */ qa()(), l = function(m, f, h, u) {
|
|
1161
1161
|
if (f in m) {
|
|
1162
1162
|
if (u === !0) {
|
|
1163
1163
|
if (m[f] === h)
|
|
@@ -1174,72 +1174,72 @@ function Ma() {
|
|
|
1174
1174
|
};
|
|
1175
1175
|
return c.supportsDescriptors = !!s, Lt = c, Lt;
|
|
1176
1176
|
}
|
|
1177
|
-
var Nt = { exports: {} }, Ft,
|
|
1178
|
-
function qa() {
|
|
1179
|
-
return hn || (hn = 1, Ft = Object), Ft;
|
|
1180
|
-
}
|
|
1181
|
-
var Mt, mn;
|
|
1182
|
-
function rs() {
|
|
1183
|
-
return mn || (mn = 1, Mt = Error), Mt;
|
|
1184
|
-
}
|
|
1185
|
-
var qt, yn;
|
|
1177
|
+
var Nt = { exports: {} }, Ft, mn;
|
|
1186
1178
|
function ns() {
|
|
1187
|
-
return
|
|
1179
|
+
return mn || (mn = 1, Ft = Object), Ft;
|
|
1188
1180
|
}
|
|
1189
|
-
var
|
|
1181
|
+
var Mt, yn;
|
|
1190
1182
|
function as() {
|
|
1191
|
-
return
|
|
1183
|
+
return yn || (yn = 1, Mt = Error), Mt;
|
|
1192
1184
|
}
|
|
1193
|
-
var
|
|
1185
|
+
var qt, gn;
|
|
1194
1186
|
function os() {
|
|
1195
|
-
return
|
|
1187
|
+
return gn || (gn = 1, qt = EvalError), qt;
|
|
1196
1188
|
}
|
|
1197
|
-
var
|
|
1189
|
+
var kt, vn;
|
|
1198
1190
|
function is() {
|
|
1199
|
-
return
|
|
1191
|
+
return vn || (vn = 1, kt = RangeError), kt;
|
|
1200
1192
|
}
|
|
1201
|
-
var
|
|
1193
|
+
var $t, bn;
|
|
1202
1194
|
function ss() {
|
|
1203
|
-
return
|
|
1195
|
+
return bn || (bn = 1, $t = ReferenceError), $t;
|
|
1204
1196
|
}
|
|
1205
|
-
var
|
|
1197
|
+
var jt, An;
|
|
1206
1198
|
function ls() {
|
|
1207
|
-
return
|
|
1199
|
+
return An || (An = 1, jt = URIError), jt;
|
|
1208
1200
|
}
|
|
1209
|
-
var
|
|
1201
|
+
var Ut, Pn;
|
|
1210
1202
|
function cs() {
|
|
1211
|
-
return
|
|
1203
|
+
return Pn || (Pn = 1, Ut = Math.abs), Ut;
|
|
1212
1204
|
}
|
|
1213
|
-
var
|
|
1205
|
+
var Bt, Sn;
|
|
1214
1206
|
function us() {
|
|
1215
|
-
return
|
|
1207
|
+
return Sn || (Sn = 1, Bt = Math.floor), Bt;
|
|
1216
1208
|
}
|
|
1217
|
-
var
|
|
1209
|
+
var Ht, En;
|
|
1218
1210
|
function ds() {
|
|
1219
|
-
return
|
|
1211
|
+
return En || (En = 1, Ht = Math.max), Ht;
|
|
1220
1212
|
}
|
|
1221
|
-
var
|
|
1213
|
+
var zt, wn;
|
|
1222
1214
|
function fs() {
|
|
1223
|
-
return
|
|
1215
|
+
return wn || (wn = 1, zt = Math.min), zt;
|
|
1224
1216
|
}
|
|
1225
|
-
var
|
|
1217
|
+
var Gt, Dn;
|
|
1226
1218
|
function ps() {
|
|
1227
|
-
return
|
|
1219
|
+
return Dn || (Dn = 1, Gt = Math.pow), Gt;
|
|
1220
|
+
}
|
|
1221
|
+
var Wt, Rn;
|
|
1222
|
+
function hs() {
|
|
1223
|
+
return Rn || (Rn = 1, Wt = Math.round), Wt;
|
|
1224
|
+
}
|
|
1225
|
+
var Yt, Tn;
|
|
1226
|
+
function ms() {
|
|
1227
|
+
return Tn || (Tn = 1, Yt = Number.isNaN || function(t) {
|
|
1228
1228
|
return t !== t;
|
|
1229
1229
|
}), Yt;
|
|
1230
1230
|
}
|
|
1231
|
-
var Vt,
|
|
1232
|
-
function
|
|
1233
|
-
if (
|
|
1234
|
-
|
|
1235
|
-
var e = /* @__PURE__ */
|
|
1231
|
+
var Vt, _n;
|
|
1232
|
+
function ys() {
|
|
1233
|
+
if (_n) return Vt;
|
|
1234
|
+
_n = 1;
|
|
1235
|
+
var e = /* @__PURE__ */ ms();
|
|
1236
1236
|
return Vt = function(r) {
|
|
1237
1237
|
return e(r) || r === 0 ? r : r < 0 ? -1 : 1;
|
|
1238
1238
|
}, Vt;
|
|
1239
1239
|
}
|
|
1240
|
-
var Qt,
|
|
1241
|
-
function
|
|
1242
|
-
return
|
|
1240
|
+
var Qt, On;
|
|
1241
|
+
function gs() {
|
|
1242
|
+
return On || (On = 1, Qt = function() {
|
|
1243
1243
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
1244
1244
|
return !1;
|
|
1245
1245
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -1267,30 +1267,34 @@ function ms() {
|
|
|
1267
1267
|
return !0;
|
|
1268
1268
|
}), Qt;
|
|
1269
1269
|
}
|
|
1270
|
-
var Kt,
|
|
1271
|
-
function
|
|
1272
|
-
if (
|
|
1273
|
-
|
|
1274
|
-
var e = typeof Symbol < "u" && Symbol, t =
|
|
1270
|
+
var Kt, xn;
|
|
1271
|
+
function vs() {
|
|
1272
|
+
if (xn) return Kt;
|
|
1273
|
+
xn = 1;
|
|
1274
|
+
var e = typeof Symbol < "u" && Symbol, t = gs();
|
|
1275
1275
|
return Kt = function() {
|
|
1276
1276
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : t();
|
|
1277
1277
|
}, Kt;
|
|
1278
1278
|
}
|
|
1279
|
-
var Jt,
|
|
1280
|
-
function ka() {
|
|
1281
|
-
return xn || (xn = 1, Jt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Jt;
|
|
1282
|
-
}
|
|
1283
|
-
var Zt, Cn;
|
|
1279
|
+
var Jt, Cn;
|
|
1284
1280
|
function $a() {
|
|
1285
|
-
|
|
1286
|
-
Cn = 1;
|
|
1287
|
-
var e = /* @__PURE__ */ qa();
|
|
1288
|
-
return Zt = e.getPrototypeOf || null, Zt;
|
|
1281
|
+
return Cn || (Cn = 1, Jt = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Jt;
|
|
1289
1282
|
}
|
|
1290
|
-
var
|
|
1291
|
-
function
|
|
1292
|
-
|
|
1293
|
-
|
|
1283
|
+
var Zt, In;
|
|
1284
|
+
function bs() {
|
|
1285
|
+
return In || (In = 1, Zt = Object), Zt;
|
|
1286
|
+
}
|
|
1287
|
+
var Xt, Ln;
|
|
1288
|
+
function ja() {
|
|
1289
|
+
if (Ln) return Xt;
|
|
1290
|
+
Ln = 1;
|
|
1291
|
+
var e = /* @__PURE__ */ bs();
|
|
1292
|
+
return Xt = e.getPrototypeOf || null, Xt;
|
|
1293
|
+
}
|
|
1294
|
+
var er, Nn;
|
|
1295
|
+
function As() {
|
|
1296
|
+
if (Nn) return er;
|
|
1297
|
+
Nn = 1;
|
|
1294
1298
|
var e = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString, r = Math.max, n = "[object Function]", a = function(c, m) {
|
|
1295
1299
|
for (var f = [], h = 0; h < c.length; h += 1)
|
|
1296
1300
|
f[h] = c[h];
|
|
@@ -1306,7 +1310,7 @@ function gs() {
|
|
|
1306
1310
|
m += l[f], f + 1 < l.length && (m += c);
|
|
1307
1311
|
return m;
|
|
1308
1312
|
};
|
|
1309
|
-
return
|
|
1313
|
+
return er = function(c) {
|
|
1310
1314
|
var m = this;
|
|
1311
1315
|
if (typeof m != "function" || t.apply(m) !== n)
|
|
1312
1316
|
throw new TypeError(e + m);
|
|
@@ -1330,50 +1334,50 @@ function gs() {
|
|
|
1330
1334
|
D.prototype = m.prototype, h.prototype = new D(), D.prototype = null;
|
|
1331
1335
|
}
|
|
1332
1336
|
return h;
|
|
1333
|
-
},
|
|
1337
|
+
}, er;
|
|
1334
1338
|
}
|
|
1335
|
-
var
|
|
1339
|
+
var tr, Fn;
|
|
1336
1340
|
function Ye() {
|
|
1337
|
-
if (
|
|
1338
|
-
|
|
1339
|
-
var e =
|
|
1340
|
-
return
|
|
1341
|
-
}
|
|
1342
|
-
var tr, Nn;
|
|
1343
|
-
function jr() {
|
|
1344
|
-
return Nn || (Nn = 1, tr = Function.prototype.call), tr;
|
|
1341
|
+
if (Fn) return tr;
|
|
1342
|
+
Fn = 1;
|
|
1343
|
+
var e = As();
|
|
1344
|
+
return tr = Function.prototype.bind || e, tr;
|
|
1345
1345
|
}
|
|
1346
|
-
var rr,
|
|
1346
|
+
var rr, Mn;
|
|
1347
1347
|
function Ur() {
|
|
1348
|
-
return
|
|
1348
|
+
return Mn || (Mn = 1, rr = Function.prototype.call), rr;
|
|
1349
1349
|
}
|
|
1350
|
-
var nr,
|
|
1351
|
-
function
|
|
1352
|
-
return
|
|
1350
|
+
var nr, qn;
|
|
1351
|
+
function Br() {
|
|
1352
|
+
return qn || (qn = 1, nr = Function.prototype.apply), nr;
|
|
1353
1353
|
}
|
|
1354
|
-
var ar,
|
|
1355
|
-
function
|
|
1356
|
-
|
|
1357
|
-
qn = 1;
|
|
1358
|
-
var e = Ye(), t = Ur(), r = jr(), n = vs();
|
|
1359
|
-
return ar = n || e.call(r, t), ar;
|
|
1354
|
+
var ar, kn;
|
|
1355
|
+
function Ps() {
|
|
1356
|
+
return kn || (kn = 1, ar = typeof Reflect < "u" && Reflect && Reflect.apply), ar;
|
|
1360
1357
|
}
|
|
1361
|
-
var or,
|
|
1362
|
-
function
|
|
1363
|
-
if (
|
|
1364
|
-
|
|
1365
|
-
var e = Ye(), t =
|
|
1366
|
-
return or =
|
|
1358
|
+
var or, $n;
|
|
1359
|
+
function Ua() {
|
|
1360
|
+
if ($n) return or;
|
|
1361
|
+
$n = 1;
|
|
1362
|
+
var e = Ye(), t = Br(), r = Ur(), n = Ps();
|
|
1363
|
+
return or = n || e.call(r, t), or;
|
|
1364
|
+
}
|
|
1365
|
+
var ir, jn;
|
|
1366
|
+
function Hr() {
|
|
1367
|
+
if (jn) return ir;
|
|
1368
|
+
jn = 1;
|
|
1369
|
+
var e = Ye(), t = /* @__PURE__ */ We(), r = Ur(), n = Ua();
|
|
1370
|
+
return ir = function(i) {
|
|
1367
1371
|
if (i.length < 1 || typeof i[0] != "function")
|
|
1368
1372
|
throw new t("a function is required");
|
|
1369
1373
|
return n(e, r, i);
|
|
1370
|
-
},
|
|
1374
|
+
}, ir;
|
|
1371
1375
|
}
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1374
|
-
if (
|
|
1375
|
-
|
|
1376
|
-
var e =
|
|
1376
|
+
var sr, Un;
|
|
1377
|
+
function Ss() {
|
|
1378
|
+
if (Un) return sr;
|
|
1379
|
+
Un = 1;
|
|
1380
|
+
var e = Hr(), t = /* @__PURE__ */ yt(), r;
|
|
1377
1381
|
try {
|
|
1378
1382
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
1379
1383
|
[].__proto__ === Array.prototype;
|
|
@@ -1386,19 +1390,19 @@ function bs() {
|
|
|
1386
1390
|
/** @type {keyof typeof Object.prototype} */
|
|
1387
1391
|
"__proto__"
|
|
1388
1392
|
), a = Object, i = a.getPrototypeOf;
|
|
1389
|
-
return
|
|
1393
|
+
return sr = n && typeof n.get == "function" ? e([n.get]) : typeof i == "function" ? (
|
|
1390
1394
|
/** @type {import('./get')} */
|
|
1391
1395
|
function(l) {
|
|
1392
1396
|
return i(l == null ? l : a(l));
|
|
1393
1397
|
}
|
|
1394
|
-
) : !1,
|
|
1398
|
+
) : !1, sr;
|
|
1395
1399
|
}
|
|
1396
|
-
var
|
|
1397
|
-
function
|
|
1398
|
-
if (
|
|
1399
|
-
|
|
1400
|
-
var e =
|
|
1401
|
-
return
|
|
1400
|
+
var lr, Bn;
|
|
1401
|
+
function Es() {
|
|
1402
|
+
if (Bn) return lr;
|
|
1403
|
+
Bn = 1;
|
|
1404
|
+
var e = $a(), t = ja(), r = /* @__PURE__ */ Ss();
|
|
1405
|
+
return lr = e ? function(a) {
|
|
1402
1406
|
return e(a);
|
|
1403
1407
|
} : t ? function(a) {
|
|
1404
1408
|
if (!a || typeof a != "object" && typeof a != "function")
|
|
@@ -1406,20 +1410,20 @@ function As() {
|
|
|
1406
1410
|
return t(a);
|
|
1407
1411
|
} : r ? function(a) {
|
|
1408
1412
|
return r(a);
|
|
1409
|
-
} : null,
|
|
1413
|
+
} : null, lr;
|
|
1410
1414
|
}
|
|
1411
|
-
var
|
|
1412
|
-
function
|
|
1413
|
-
if (
|
|
1414
|
-
|
|
1415
|
+
var cr, Hn;
|
|
1416
|
+
function Ba() {
|
|
1417
|
+
if (Hn) return cr;
|
|
1418
|
+
Hn = 1;
|
|
1415
1419
|
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, r = Ye();
|
|
1416
|
-
return
|
|
1420
|
+
return cr = r.call(e, t), cr;
|
|
1417
1421
|
}
|
|
1418
|
-
var
|
|
1419
|
-
function
|
|
1420
|
-
if (
|
|
1421
|
-
|
|
1422
|
-
var e, t = /* @__PURE__ */
|
|
1422
|
+
var ur, zn;
|
|
1423
|
+
function Ha() {
|
|
1424
|
+
if (zn) return ur;
|
|
1425
|
+
zn = 1;
|
|
1426
|
+
var e, t = /* @__PURE__ */ ns(), r = /* @__PURE__ */ as(), n = /* @__PURE__ */ os(), a = /* @__PURE__ */ is(), i = /* @__PURE__ */ ss(), s = /* @__PURE__ */ Fa(), l = /* @__PURE__ */ We(), c = /* @__PURE__ */ ls(), m = /* @__PURE__ */ cs(), f = /* @__PURE__ */ us(), h = /* @__PURE__ */ ds(), u = /* @__PURE__ */ fs(), g = /* @__PURE__ */ ps(), b = /* @__PURE__ */ hs(), E = /* @__PURE__ */ ys(), D = Function, S = function(oe) {
|
|
1423
1427
|
try {
|
|
1424
1428
|
return D('"use strict"; return (' + oe + ").constructor;")();
|
|
1425
1429
|
} catch {
|
|
@@ -1436,7 +1440,7 @@ function Ba() {
|
|
|
1436
1440
|
return y;
|
|
1437
1441
|
}
|
|
1438
1442
|
}
|
|
1439
|
-
})() : y, v =
|
|
1443
|
+
})() : y, v = vs()(), A = Es(), _ = ja(), R = $a(), $ = Br(), F = Ur(), k = {}, I = typeof Uint8Array > "u" || !A ? e : A(Uint8Array), j = {
|
|
1440
1444
|
__proto__: null,
|
|
1441
1445
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
1442
1446
|
"%Array%": Array,
|
|
@@ -1596,7 +1600,7 @@ function Ba() {
|
|
|
1596
1600
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1597
1601
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1598
1602
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1599
|
-
}, Q = Ye(), K = /* @__PURE__ */
|
|
1603
|
+
}, Q = Ye(), K = /* @__PURE__ */ Ba(), fe = Q.call(F, Array.prototype.concat), we = Q.call($, Array.prototype.splice), _e = Q.call(F, String.prototype.replace), be = Q.call(F, String.prototype.slice), O = Q.call(F, RegExp.prototype.exec), z = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ne = /\\(\\)?/g, Ae = function(M) {
|
|
1600
1604
|
var G = be(M, 0, 1), P = be(M, -1);
|
|
1601
1605
|
if (G === "%" && P !== "%")
|
|
1602
1606
|
throw new s("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -1620,7 +1624,7 @@ function Ba() {
|
|
|
1620
1624
|
}
|
|
1621
1625
|
throw new s("intrinsic " + M + " does not exist!");
|
|
1622
1626
|
};
|
|
1623
|
-
return
|
|
1627
|
+
return ur = function(M, G) {
|
|
1624
1628
|
if (typeof M != "string" || M.length === 0)
|
|
1625
1629
|
throw new l("intrinsic name must be a non-empty string");
|
|
1626
1630
|
if (arguments.length > 1 && typeof G != "boolean")
|
|
@@ -1650,14 +1654,14 @@ function Ba() {
|
|
|
1650
1654
|
}
|
|
1651
1655
|
}
|
|
1652
1656
|
return X;
|
|
1653
|
-
},
|
|
1657
|
+
}, ur;
|
|
1654
1658
|
}
|
|
1655
|
-
var
|
|
1656
|
-
function
|
|
1657
|
-
if (
|
|
1658
|
-
|
|
1659
|
-
var e = /* @__PURE__ */
|
|
1660
|
-
return
|
|
1659
|
+
var dr, Gn;
|
|
1660
|
+
function ws() {
|
|
1661
|
+
if (Gn) return dr;
|
|
1662
|
+
Gn = 1;
|
|
1663
|
+
var e = /* @__PURE__ */ Ha(), t = /* @__PURE__ */ Ma(), r = /* @__PURE__ */ qa()(), n = /* @__PURE__ */ yt(), a = /* @__PURE__ */ We(), i = e("%Math.floor%");
|
|
1664
|
+
return dr = function(l, c) {
|
|
1661
1665
|
if (typeof l != "function")
|
|
1662
1666
|
throw new a("`fn` is not a function");
|
|
1663
1667
|
if (typeof c != "number" || c < 0 || c > 4294967295 || i(c) !== c)
|
|
@@ -1680,21 +1684,21 @@ function Ps() {
|
|
|
1680
1684
|
"length",
|
|
1681
1685
|
c
|
|
1682
1686
|
)), l;
|
|
1683
|
-
},
|
|
1687
|
+
}, dr;
|
|
1684
1688
|
}
|
|
1685
|
-
var
|
|
1686
|
-
function
|
|
1687
|
-
if (
|
|
1688
|
-
|
|
1689
|
-
var e = Ye(), t =
|
|
1690
|
-
return
|
|
1689
|
+
var fr, Wn;
|
|
1690
|
+
function Ds() {
|
|
1691
|
+
if (Wn) return fr;
|
|
1692
|
+
Wn = 1;
|
|
1693
|
+
var e = Ye(), t = Br(), r = Ua();
|
|
1694
|
+
return fr = function() {
|
|
1691
1695
|
return r(e, t, arguments);
|
|
1692
|
-
},
|
|
1696
|
+
}, fr;
|
|
1693
1697
|
}
|
|
1694
|
-
var
|
|
1695
|
-
function
|
|
1696
|
-
return
|
|
1697
|
-
var t = /* @__PURE__ */
|
|
1698
|
+
var Yn;
|
|
1699
|
+
function Rs() {
|
|
1700
|
+
return Yn || (Yn = 1, (function(e) {
|
|
1701
|
+
var t = /* @__PURE__ */ ws(), r = /* @__PURE__ */ mt(), n = Hr(), a = Ds();
|
|
1698
1702
|
e.exports = function(s) {
|
|
1699
1703
|
var l = n(arguments), c = 1 + s.length - (arguments.length - 1);
|
|
1700
1704
|
return t(
|
|
@@ -1705,23 +1709,23 @@ function Es() {
|
|
|
1705
1709
|
}, r ? r(e.exports, "apply", { value: a }) : e.exports.apply = a;
|
|
1706
1710
|
})(Nt)), Nt.exports;
|
|
1707
1711
|
}
|
|
1708
|
-
var
|
|
1709
|
-
function
|
|
1710
|
-
if (
|
|
1711
|
-
|
|
1712
|
+
var pr, Vn;
|
|
1713
|
+
function Ts() {
|
|
1714
|
+
if (Vn) return pr;
|
|
1715
|
+
Vn = 1;
|
|
1712
1716
|
var e = /* @__PURE__ */ We();
|
|
1713
|
-
return
|
|
1717
|
+
return pr = function(r) {
|
|
1714
1718
|
if (r == null)
|
|
1715
1719
|
throw new e(arguments.length > 0 && arguments[1] || "Cannot call method on " + r);
|
|
1716
1720
|
return r;
|
|
1717
|
-
},
|
|
1721
|
+
}, pr;
|
|
1718
1722
|
}
|
|
1719
|
-
var
|
|
1720
|
-
function
|
|
1721
|
-
if (
|
|
1722
|
-
|
|
1723
|
-
var e = /* @__PURE__ */
|
|
1724
|
-
return
|
|
1723
|
+
var hr, Qn;
|
|
1724
|
+
function _s() {
|
|
1725
|
+
if (Qn) return hr;
|
|
1726
|
+
Qn = 1;
|
|
1727
|
+
var e = /* @__PURE__ */ Ha(), t = Hr(), r = t([e("%String.prototype.indexOf%")]);
|
|
1728
|
+
return hr = function(a, i) {
|
|
1725
1729
|
var s = (
|
|
1726
1730
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
1727
1731
|
e(a, !!i)
|
|
@@ -1730,58 +1734,58 @@ function Ds() {
|
|
|
1730
1734
|
/** @type {const} */
|
|
1731
1735
|
[s]
|
|
1732
1736
|
) : s;
|
|
1733
|
-
},
|
|
1737
|
+
}, hr;
|
|
1734
1738
|
}
|
|
1735
|
-
var
|
|
1736
|
-
function
|
|
1737
|
-
if (
|
|
1738
|
-
|
|
1739
|
-
var e = /* @__PURE__ */
|
|
1740
|
-
return
|
|
1739
|
+
var mr, Kn;
|
|
1740
|
+
function za() {
|
|
1741
|
+
if (Kn) return mr;
|
|
1742
|
+
Kn = 1;
|
|
1743
|
+
var e = /* @__PURE__ */ Ts(), t = /* @__PURE__ */ _s(), r = t("Object.prototype.propertyIsEnumerable"), n = t("Array.prototype.push");
|
|
1744
|
+
return mr = function(i) {
|
|
1741
1745
|
var s = e(i), l = [];
|
|
1742
1746
|
for (var c in s)
|
|
1743
1747
|
r(s, c) && n(l, [c, s[c]]);
|
|
1744
1748
|
return l;
|
|
1745
|
-
}, hr;
|
|
1746
|
-
}
|
|
1747
|
-
var mr, Qn;
|
|
1748
|
-
function za() {
|
|
1749
|
-
if (Qn) return mr;
|
|
1750
|
-
Qn = 1;
|
|
1751
|
-
var e = Ha();
|
|
1752
|
-
return mr = function() {
|
|
1753
|
-
return typeof Object.entries == "function" ? Object.entries : e;
|
|
1754
1749
|
}, mr;
|
|
1755
1750
|
}
|
|
1756
|
-
var yr,
|
|
1757
|
-
function
|
|
1758
|
-
if (
|
|
1759
|
-
|
|
1760
|
-
var e = za()
|
|
1751
|
+
var yr, Jn;
|
|
1752
|
+
function Ga() {
|
|
1753
|
+
if (Jn) return yr;
|
|
1754
|
+
Jn = 1;
|
|
1755
|
+
var e = za();
|
|
1761
1756
|
return yr = function() {
|
|
1757
|
+
return typeof Object.entries == "function" ? Object.entries : e;
|
|
1758
|
+
}, yr;
|
|
1759
|
+
}
|
|
1760
|
+
var gr, Zn;
|
|
1761
|
+
function Os() {
|
|
1762
|
+
if (Zn) return gr;
|
|
1763
|
+
Zn = 1;
|
|
1764
|
+
var e = Ga(), t = ka();
|
|
1765
|
+
return gr = function() {
|
|
1762
1766
|
var n = e();
|
|
1763
1767
|
return t(Object, { entries: n }, {
|
|
1764
1768
|
entries: function() {
|
|
1765
1769
|
return Object.entries !== n;
|
|
1766
1770
|
}
|
|
1767
1771
|
}), n;
|
|
1768
|
-
},
|
|
1772
|
+
}, gr;
|
|
1769
1773
|
}
|
|
1770
|
-
var
|
|
1771
|
-
function
|
|
1772
|
-
if (
|
|
1773
|
-
|
|
1774
|
-
var e =
|
|
1774
|
+
var vr, Xn;
|
|
1775
|
+
function xs() {
|
|
1776
|
+
if (Xn) return vr;
|
|
1777
|
+
Xn = 1;
|
|
1778
|
+
var e = ka(), t = Rs(), r = za(), n = Ga(), a = Os(), i = t(n(), Object);
|
|
1775
1779
|
return e(i, {
|
|
1776
1780
|
getPolyfill: n,
|
|
1777
1781
|
implementation: r,
|
|
1778
1782
|
shim: a
|
|
1779
|
-
}),
|
|
1783
|
+
}), vr = i, vr;
|
|
1780
1784
|
}
|
|
1781
|
-
var
|
|
1782
|
-
function
|
|
1783
|
-
if (
|
|
1784
|
-
|
|
1785
|
+
var br, ea;
|
|
1786
|
+
function Cs() {
|
|
1787
|
+
if (ea) return br;
|
|
1788
|
+
ea = 1;
|
|
1785
1789
|
var e = process.env.NODE_ENV !== "production", t = function() {
|
|
1786
1790
|
};
|
|
1787
1791
|
if (e) {
|
|
@@ -1811,13 +1815,13 @@ function _s() {
|
|
|
1811
1815
|
n || r.apply(null, [a].concat(i));
|
|
1812
1816
|
};
|
|
1813
1817
|
}
|
|
1814
|
-
return
|
|
1818
|
+
return br = t, br;
|
|
1815
1819
|
}
|
|
1816
|
-
var
|
|
1817
|
-
function
|
|
1818
|
-
if (
|
|
1819
|
-
|
|
1820
|
-
var e =
|
|
1820
|
+
var Ar, ta;
|
|
1821
|
+
function Is() {
|
|
1822
|
+
if (ta) return Ar;
|
|
1823
|
+
ta = 1;
|
|
1824
|
+
var e = xs(), t = Cs(), r = /* @__PURE__ */ Ba(), n = function(y) {
|
|
1821
1825
|
t(!1, y);
|
|
1822
1826
|
}, a = String.prototype.replace, i = String.prototype.split, s = "||||", l = function(p) {
|
|
1823
1827
|
var y = p % 100, d = y % 10;
|
|
@@ -1993,17 +1997,17 @@ function Os() {
|
|
|
1993
1997
|
return r(this.phrases, p);
|
|
1994
1998
|
}, w.transformPhrase = function(y, d, v) {
|
|
1995
1999
|
return S(y, d, v);
|
|
1996
|
-
},
|
|
2000
|
+
}, Ar = w, Ar;
|
|
1997
2001
|
}
|
|
1998
|
-
var
|
|
1999
|
-
const
|
|
2002
|
+
var Ls = Is();
|
|
2003
|
+
const ra = /* @__PURE__ */ La(Ls), Ve = (e, t = "en", r = [{ locale: "en", name: "English" }], n = {}) => {
|
|
2000
2004
|
let a = t;
|
|
2001
2005
|
const i = e(t);
|
|
2002
2006
|
if (i instanceof Promise)
|
|
2003
2007
|
throw new Error(`The i18nProvider returned a Promise for the messages of the default locale (${t}). Please update your i18nProvider to return the messages of the default locale in a synchronous way.`);
|
|
2004
2008
|
let s, l;
|
|
2005
2009
|
Array.isArray(r) ? (s = r, l = n) : (s = [{ locale: "en", name: "English" }], l = r);
|
|
2006
|
-
const c = new
|
|
2010
|
+
const c = new ra({
|
|
2007
2011
|
locale: a,
|
|
2008
2012
|
phrases: { "": "", ...i },
|
|
2009
2013
|
...l
|
|
@@ -2016,7 +2020,7 @@ const ea = /* @__PURE__ */ Ca(xs), Ve = (e, t = "en", r = [{ locale: "en", name:
|
|
|
2016
2020
|
// getMessages may return a Promise
|
|
2017
2021
|
Promise.resolve(e(f)).then((h) => {
|
|
2018
2022
|
a = f;
|
|
2019
|
-
const u = new
|
|
2023
|
+
const u = new ra({
|
|
2020
2024
|
locale: f,
|
|
2021
2025
|
phrases: { "": "", ...h },
|
|
2022
2026
|
...n
|
|
@@ -2029,19 +2033,19 @@ const ea = /* @__PURE__ */ Ca(xs), Ve = (e, t = "en", r = [{ locale: "en", name:
|
|
|
2029
2033
|
};
|
|
2030
2034
|
}, ge = {
|
|
2031
2035
|
en: {
|
|
2032
|
-
|
|
2036
|
+
...jo
|
|
2033
2037
|
},
|
|
2034
2038
|
es: {
|
|
2035
|
-
|
|
2039
|
+
...$o
|
|
2036
2040
|
}
|
|
2037
2041
|
}, gt = [
|
|
2038
2042
|
{ locale: "en", name: "English" },
|
|
2039
2043
|
{ locale: "es", name: "Español" }
|
|
2040
|
-
], vt = "en",
|
|
2044
|
+
], vt = "en", su = (e = vt) => Ve(
|
|
2041
2045
|
(t) => ge[t] || ge.en,
|
|
2042
2046
|
e,
|
|
2043
2047
|
gt
|
|
2044
|
-
),
|
|
2048
|
+
), Wa = async () => {
|
|
2045
2049
|
try {
|
|
2046
2050
|
const [e, t] = await Promise.all([
|
|
2047
2051
|
import("@dashadmin/dash-admin").then((r) => r.en),
|
|
@@ -2054,39 +2058,39 @@ const ea = /* @__PURE__ */ Ca(xs), Ve = (e, t = "en", r = [{ locale: "en", name:
|
|
|
2054
2058
|
} catch (e) {
|
|
2055
2059
|
return console.error("Failed to load dash default translations:", e), ge;
|
|
2056
2060
|
}
|
|
2057
|
-
},
|
|
2058
|
-
const r = await
|
|
2061
|
+
}, Ns = async (e = vt, t) => {
|
|
2062
|
+
const r = await Wa();
|
|
2059
2063
|
return Ve(
|
|
2060
2064
|
(n) => r[n] || r.en,
|
|
2061
2065
|
e,
|
|
2062
2066
|
t || gt
|
|
2063
2067
|
);
|
|
2064
|
-
},
|
|
2068
|
+
}, lu = (e) => {
|
|
2065
2069
|
const t = e.locale || vt, r = e.availableLocales || gt;
|
|
2066
2070
|
return Ve(
|
|
2067
2071
|
(n) => ge[n] || ge.en,
|
|
2068
2072
|
t,
|
|
2069
2073
|
r
|
|
2070
2074
|
);
|
|
2071
|
-
},
|
|
2075
|
+
}, cu = (e) => De(() => {
|
|
2072
2076
|
const t = e?.locale || vt, r = e?.availableLocales || gt;
|
|
2073
2077
|
return Ve(
|
|
2074
2078
|
(n) => ge[n] || ge.en,
|
|
2075
2079
|
t,
|
|
2076
2080
|
r.map(({ locale: n, name: a }) => ({ locale: n, name: a }))
|
|
2077
2081
|
);
|
|
2078
|
-
}, [e?.locale, e?.availableLocales]),
|
|
2082
|
+
}, [e?.locale, e?.availableLocales]), uu = (e) => Ve(
|
|
2079
2083
|
(t) => ge[t] || ge.en,
|
|
2080
2084
|
e.settings.locale,
|
|
2081
2085
|
e.settings.availableLocales.map(({ locale: t, name: r }) => ({ locale: t, name: r }))
|
|
2082
|
-
),
|
|
2086
|
+
), du = () => {
|
|
2083
2087
|
const [e, t] = C(null), [r, n] = C(null), a = dt((i) => i.settings);
|
|
2084
2088
|
return H(() => {
|
|
2085
2089
|
(async () => {
|
|
2086
2090
|
try {
|
|
2087
|
-
const s = await
|
|
2091
|
+
const s = await Wa();
|
|
2088
2092
|
t(s);
|
|
2089
|
-
const l = await
|
|
2093
|
+
const l = await Ns(
|
|
2090
2094
|
a?.locale || "en",
|
|
2091
2095
|
a?.availableLocales?.map(({ locale: c, name: m }) => ({ locale: c, name: m }))
|
|
2092
2096
|
);
|
|
@@ -2096,21 +2100,21 @@ const ea = /* @__PURE__ */ Ca(xs), Ve = (e, t = "en", r = [{ locale: "en", name:
|
|
|
2096
2100
|
}
|
|
2097
2101
|
})();
|
|
2098
2102
|
}, [a?.locale, a?.availableLocales]), { translations: e, i18nProvider: r };
|
|
2099
|
-
},
|
|
2103
|
+
}, fu = () => {
|
|
2100
2104
|
const [e, t] = C(null);
|
|
2101
2105
|
return H(() => {
|
|
2102
|
-
|
|
2106
|
+
Ki().then(t).catch((r) => {
|
|
2103
2107
|
console.error("Failed to load dash default auto admin components:", r), t({});
|
|
2104
2108
|
});
|
|
2105
2109
|
}, []), e;
|
|
2106
|
-
},
|
|
2110
|
+
}, pu = (e) => {
|
|
2107
2111
|
const [t, r] = C(null);
|
|
2108
2112
|
return H(() => {
|
|
2109
|
-
e ||
|
|
2113
|
+
e || Fo().then(r).catch((n) => {
|
|
2110
2114
|
console.error("Failed to load DASHResources:", n), r([]);
|
|
2111
2115
|
});
|
|
2112
2116
|
}, [e]), e || t;
|
|
2113
|
-
},
|
|
2117
|
+
}, Fs = () => /* @__PURE__ */ o(
|
|
2114
2118
|
ue,
|
|
2115
2119
|
{
|
|
2116
2120
|
display: "flex",
|
|
@@ -2120,31 +2124,31 @@ const ea = /* @__PURE__ */ Ca(xs), Ve = (e, t = "en", r = [{ locale: "en", name:
|
|
|
2120
2124
|
sx: { color: "var(--text-color, inherit)" },
|
|
2121
2125
|
children: "Loading..."
|
|
2122
2126
|
}
|
|
2123
|
-
),
|
|
2127
|
+
), Ms = () => /* @__PURE__ */ o("div", { style: {
|
|
2124
2128
|
display: "flex",
|
|
2125
2129
|
justifyContent: "center",
|
|
2126
2130
|
alignItems: "center",
|
|
2127
2131
|
height: "100vh",
|
|
2128
2132
|
background: "linear-gradient(to bottom, var(--bodybg-primary), var(--bodybg-secondary))",
|
|
2129
2133
|
color: "var(--text-color, @text-color--dark)"
|
|
2130
|
-
}, children: /* @__PURE__ */ o("h1", { children: "Welcome to Dash" }) }),
|
|
2134
|
+
}, children: /* @__PURE__ */ o("h1", { children: "Welcome to Dash" }) }), hu = () => [
|
|
2131
2135
|
// Landing page
|
|
2132
2136
|
/* @__PURE__ */ o(
|
|
2133
2137
|
ye,
|
|
2134
2138
|
{
|
|
2135
2139
|
"data-layout": "no-layout",
|
|
2136
2140
|
path: "/",
|
|
2137
|
-
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(
|
|
2141
|
+
element: /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(Fs, {}), children: /* @__PURE__ */ o(Ms, {}) })
|
|
2138
2142
|
},
|
|
2139
2143
|
"landing"
|
|
2140
2144
|
)
|
|
2141
|
-
],
|
|
2145
|
+
], Dr = () => ({
|
|
2142
2146
|
PLATFORM_TYPE: Re("PLATFORM_TYPE") || "desktop",
|
|
2143
2147
|
PLATFORM: Re("PLATFORM") || "unknown",
|
|
2144
2148
|
BASE_PATH: Se.system.URL_PREFIX || "/",
|
|
2145
2149
|
IS_ELECTRON: JSON.parse(Re("IS_ELECTRON") || "false")
|
|
2146
|
-
}),
|
|
2147
|
-
const t =
|
|
2150
|
+
}), mu = ({ children: e }) => {
|
|
2151
|
+
const t = Dr();
|
|
2148
2152
|
return /* @__PURE__ */ o(
|
|
2149
2153
|
ft,
|
|
2150
2154
|
{
|
|
@@ -2154,11 +2158,11 @@ const ea = /* @__PURE__ */ Ca(xs), Ve = (e, t = "en", r = [{ locale: "en", name:
|
|
|
2154
2158
|
children: e
|
|
2155
2159
|
}
|
|
2156
2160
|
);
|
|
2157
|
-
},
|
|
2161
|
+
}, yu = (e, t) => ({ children: n }) => /* @__PURE__ */ o(
|
|
2158
2162
|
ft,
|
|
2159
2163
|
{
|
|
2160
|
-
platformType: e ||
|
|
2161
|
-
platform: t ||
|
|
2164
|
+
platformType: e || Dr().PLATFORM_TYPE,
|
|
2165
|
+
platform: t || Dr().PLATFORM,
|
|
2162
2166
|
children: n
|
|
2163
2167
|
}
|
|
2164
2168
|
), Ee = {
|
|
@@ -2197,18 +2201,18 @@ const ea = /* @__PURE__ */ Ca(xs), Ve = (e, t = "en", r = [{ locale: "en", name:
|
|
|
2197
2201
|
LIGHT_PURPLE: "light_purple",
|
|
2198
2202
|
LIGHT_PURPLE_SEC: "#00B378",
|
|
2199
2203
|
LIGHT_PURPLE_DARK_TEXT_COLOR: "#9799AC"
|
|
2200
|
-
},
|
|
2201
|
-
...
|
|
2204
|
+
}, gu = () => Ee.THEME_TYPE_DARK, vu = () => Ee.THEME_TYPE_LIGHT, bu = () => Ee.THEME_TYPE_DARK, Ya = () => ({
|
|
2205
|
+
...Oo,
|
|
2202
2206
|
loading: !1,
|
|
2203
2207
|
navStyle: Ee.NAV_STYLE_FIXED,
|
|
2204
2208
|
layoutType: Ee.LAYOUT_TYPE_FRAMED,
|
|
2205
2209
|
themeType: Ee.THEME_TYPE_DARK,
|
|
2206
2210
|
layoutSettings: Ee,
|
|
2207
2211
|
groupIcons: {}
|
|
2208
|
-
}),
|
|
2212
|
+
}), Au = () => Ee.THEME_TYPE_DARK, Va = () => {
|
|
2209
2213
|
const e = re.getTenantImages();
|
|
2210
2214
|
return {
|
|
2211
|
-
...
|
|
2215
|
+
...xo,
|
|
2212
2216
|
appPath: "/",
|
|
2213
2217
|
navExpanded: x.getItem("dashNavExpanded") ? x.getItem("dashNavExpanded") === "true" : !0,
|
|
2214
2218
|
navSize: x.getItem("dashNavSize") || "small",
|
|
@@ -2221,28 +2225,28 @@ const ea = /* @__PURE__ */ Ca(xs), Ve = (e, t = "en", r = [{ locale: "en", name:
|
|
|
2221
2225
|
loginBackground: e?.banner?.original || ""
|
|
2222
2226
|
}
|
|
2223
2227
|
};
|
|
2224
|
-
},
|
|
2228
|
+
}, Pu = () => "/", Su = () => {
|
|
2225
2229
|
const e = re.getTenantImages();
|
|
2226
2230
|
return {
|
|
2227
2231
|
horizontalLogo: e?.horizontal_logo?.original || "",
|
|
2228
2232
|
squaredLogo: e?.squared_logo?.original || "",
|
|
2229
2233
|
loginBackground: e?.banner?.original || ""
|
|
2230
2234
|
};
|
|
2231
|
-
},
|
|
2232
|
-
settings:
|
|
2233
|
-
common:
|
|
2234
|
-
page:
|
|
2235
|
-
auth:
|
|
2235
|
+
}, Eu = {
|
|
2236
|
+
settings: Ya(),
|
|
2237
|
+
common: Va(),
|
|
2238
|
+
page: Aa,
|
|
2239
|
+
auth: ba,
|
|
2236
2240
|
resources: { items: [] },
|
|
2237
|
-
formData:
|
|
2241
|
+
formData: va,
|
|
2238
2242
|
componentData: {}
|
|
2239
|
-
},
|
|
2240
|
-
settings:
|
|
2241
|
-
common:
|
|
2242
|
-
page:
|
|
2243
|
-
auth:
|
|
2243
|
+
}, wu = () => ({
|
|
2244
|
+
settings: Ya(),
|
|
2245
|
+
common: Va(),
|
|
2246
|
+
page: Aa,
|
|
2247
|
+
auth: ba,
|
|
2244
2248
|
resources: { items: [] },
|
|
2245
|
-
formData:
|
|
2249
|
+
formData: va,
|
|
2246
2250
|
componentData: {}
|
|
2247
2251
|
});
|
|
2248
2252
|
var bt = class {
|
|
@@ -2261,7 +2265,7 @@ var bt = class {
|
|
|
2261
2265
|
}
|
|
2262
2266
|
onUnsubscribe() {
|
|
2263
2267
|
}
|
|
2264
|
-
},
|
|
2268
|
+
}, qs = class extends bt {
|
|
2265
2269
|
#e;
|
|
2266
2270
|
#t;
|
|
2267
2271
|
#r;
|
|
@@ -2298,7 +2302,7 @@ var bt = class {
|
|
|
2298
2302
|
isFocused() {
|
|
2299
2303
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
2300
2304
|
}
|
|
2301
|
-
},
|
|
2305
|
+
}, Qa = new qs(), ks = {
|
|
2302
2306
|
// We need the wrapper function syntax below instead of direct references to
|
|
2303
2307
|
// global setTimeout etc.
|
|
2304
2308
|
//
|
|
@@ -2313,7 +2317,7 @@ var bt = class {
|
|
|
2313
2317
|
clearTimeout: (e) => clearTimeout(e),
|
|
2314
2318
|
setInterval: (e, t) => setInterval(e, t),
|
|
2315
2319
|
clearInterval: (e) => clearInterval(e)
|
|
2316
|
-
},
|
|
2320
|
+
}, $s = class {
|
|
2317
2321
|
// We cannot have TimeoutManager<T> as we must instantiate it with a concrete
|
|
2318
2322
|
// type at app boot; and if we leave that type, then any new timer provider
|
|
2319
2323
|
// would need to support the default provider's concrete timer ID, which is
|
|
@@ -2321,7 +2325,7 @@ var bt = class {
|
|
|
2321
2325
|
//
|
|
2322
2326
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
2323
2327
|
// this class is unsafe internally to allow for extension.
|
|
2324
|
-
#e =
|
|
2328
|
+
#e = ks;
|
|
2325
2329
|
#t = !1;
|
|
2326
2330
|
setTimeoutProvider(e) {
|
|
2327
2331
|
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error(
|
|
@@ -2341,29 +2345,29 @@ var bt = class {
|
|
|
2341
2345
|
clearInterval(e) {
|
|
2342
2346
|
this.#e.clearInterval(e);
|
|
2343
2347
|
}
|
|
2344
|
-
},
|
|
2345
|
-
function
|
|
2348
|
+
}, Rr = new $s();
|
|
2349
|
+
function js(e) {
|
|
2346
2350
|
setTimeout(e, 0);
|
|
2347
2351
|
}
|
|
2348
|
-
var
|
|
2352
|
+
var Us = typeof window > "u" || "Deno" in globalThis;
|
|
2349
2353
|
function ce() {
|
|
2350
2354
|
}
|
|
2351
|
-
function
|
|
2355
|
+
function Bs(e, t) {
|
|
2352
2356
|
return typeof e == "function" ? e(t) : e;
|
|
2353
2357
|
}
|
|
2354
|
-
function
|
|
2358
|
+
function Hs(e) {
|
|
2355
2359
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
2356
2360
|
}
|
|
2357
|
-
function
|
|
2361
|
+
function zs(e, t) {
|
|
2358
2362
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
2359
2363
|
}
|
|
2360
|
-
function
|
|
2364
|
+
function Tr(e, t) {
|
|
2361
2365
|
return typeof e == "function" ? e(t) : e;
|
|
2362
2366
|
}
|
|
2363
|
-
function
|
|
2367
|
+
function Gs(e, t) {
|
|
2364
2368
|
return typeof e == "function" ? e(t) : e;
|
|
2365
2369
|
}
|
|
2366
|
-
function
|
|
2370
|
+
function na(e, t) {
|
|
2367
2371
|
const {
|
|
2368
2372
|
type: r = "all",
|
|
2369
2373
|
exact: n,
|
|
@@ -2374,7 +2378,7 @@ function ta(e, t) {
|
|
|
2374
2378
|
} = e;
|
|
2375
2379
|
if (s) {
|
|
2376
2380
|
if (n) {
|
|
2377
|
-
if (t.queryHash !==
|
|
2381
|
+
if (t.queryHash !== zr(s, t.options))
|
|
2378
2382
|
return !1;
|
|
2379
2383
|
} else if (!Ue(t.queryKey, s))
|
|
2380
2384
|
return !1;
|
|
@@ -2386,7 +2390,7 @@ function ta(e, t) {
|
|
|
2386
2390
|
}
|
|
2387
2391
|
return !(typeof l == "boolean" && t.isStale() !== l || a && a !== t.state.fetchStatus || i && !i(t));
|
|
2388
2392
|
}
|
|
2389
|
-
function
|
|
2393
|
+
function aa(e, t) {
|
|
2390
2394
|
const { exact: r, status: n, predicate: a, mutationKey: i } = e;
|
|
2391
2395
|
if (i) {
|
|
2392
2396
|
if (!t.options.mutationKey)
|
|
@@ -2399,101 +2403,101 @@ function ra(e, t) {
|
|
|
2399
2403
|
}
|
|
2400
2404
|
return !(n && t.state.status !== n || a && !a(t));
|
|
2401
2405
|
}
|
|
2402
|
-
function
|
|
2406
|
+
function zr(e, t) {
|
|
2403
2407
|
return (t?.queryKeyHashFn || je)(e);
|
|
2404
2408
|
}
|
|
2405
2409
|
function je(e) {
|
|
2406
2410
|
return JSON.stringify(
|
|
2407
2411
|
e,
|
|
2408
|
-
(t, r) =>
|
|
2412
|
+
(t, r) => Or(r) ? Object.keys(r).sort().reduce((n, a) => (n[a] = r[a], n), {}) : r
|
|
2409
2413
|
);
|
|
2410
2414
|
}
|
|
2411
2415
|
function Ue(e, t) {
|
|
2412
2416
|
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) => Ue(e[r], t[r])) : !1;
|
|
2413
2417
|
}
|
|
2414
|
-
var
|
|
2415
|
-
function
|
|
2418
|
+
var Ws = Object.prototype.hasOwnProperty;
|
|
2419
|
+
function _r(e, t, r = 0) {
|
|
2416
2420
|
if (e === t)
|
|
2417
2421
|
return e;
|
|
2418
2422
|
if (r > 500) return t;
|
|
2419
|
-
const n =
|
|
2420
|
-
if (!n && !(
|
|
2423
|
+
const n = oa(e) && oa(t);
|
|
2424
|
+
if (!n && !(Or(e) && Or(t))) return t;
|
|
2421
2425
|
const i = (n ? e : Object.keys(e)).length, s = n ? t : Object.keys(t), l = s.length, c = n ? new Array(l) : {};
|
|
2422
2426
|
let m = 0;
|
|
2423
2427
|
for (let f = 0; f < l; f++) {
|
|
2424
2428
|
const h = n ? f : s[f], u = e[h], g = t[h];
|
|
2425
2429
|
if (u === g) {
|
|
2426
|
-
c[h] = u, (n ? f < i :
|
|
2430
|
+
c[h] = u, (n ? f < i : Ws.call(e, h)) && m++;
|
|
2427
2431
|
continue;
|
|
2428
2432
|
}
|
|
2429
2433
|
if (u === null || g === null || typeof u != "object" || typeof g != "object") {
|
|
2430
2434
|
c[h] = g;
|
|
2431
2435
|
continue;
|
|
2432
2436
|
}
|
|
2433
|
-
const b =
|
|
2437
|
+
const b = _r(u, g, r + 1);
|
|
2434
2438
|
c[h] = b, b === u && m++;
|
|
2435
2439
|
}
|
|
2436
2440
|
return i === l && m === i ? e : c;
|
|
2437
2441
|
}
|
|
2438
|
-
function
|
|
2442
|
+
function oa(e) {
|
|
2439
2443
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
2440
2444
|
}
|
|
2441
|
-
function
|
|
2442
|
-
if (!
|
|
2445
|
+
function Or(e) {
|
|
2446
|
+
if (!ia(e))
|
|
2443
2447
|
return !1;
|
|
2444
2448
|
const t = e.constructor;
|
|
2445
2449
|
if (t === void 0)
|
|
2446
2450
|
return !0;
|
|
2447
2451
|
const r = t.prototype;
|
|
2448
|
-
return !(!
|
|
2452
|
+
return !(!ia(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
2449
2453
|
}
|
|
2450
|
-
function
|
|
2454
|
+
function ia(e) {
|
|
2451
2455
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
2452
2456
|
}
|
|
2453
|
-
function
|
|
2457
|
+
function Ys(e) {
|
|
2454
2458
|
return new Promise((t) => {
|
|
2455
|
-
|
|
2459
|
+
Rr.setTimeout(t, e);
|
|
2456
2460
|
});
|
|
2457
2461
|
}
|
|
2458
|
-
function
|
|
2462
|
+
function Vs(e, t, r) {
|
|
2459
2463
|
if (typeof r.structuralSharing == "function")
|
|
2460
2464
|
return r.structuralSharing(e, t);
|
|
2461
2465
|
if (r.structuralSharing !== !1) {
|
|
2462
2466
|
if (process.env.NODE_ENV !== "production")
|
|
2463
2467
|
try {
|
|
2464
|
-
return
|
|
2468
|
+
return _r(e, t);
|
|
2465
2469
|
} catch (n) {
|
|
2466
2470
|
throw console.error(
|
|
2467
2471
|
`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${r.queryHash}]: ${n}`
|
|
2468
2472
|
), n;
|
|
2469
2473
|
}
|
|
2470
|
-
return
|
|
2474
|
+
return _r(e, t);
|
|
2471
2475
|
}
|
|
2472
2476
|
return t;
|
|
2473
2477
|
}
|
|
2474
|
-
function
|
|
2478
|
+
function Qs(e, t, r = 0) {
|
|
2475
2479
|
const n = [...e, t];
|
|
2476
2480
|
return r && n.length > r ? n.slice(1) : n;
|
|
2477
2481
|
}
|
|
2478
|
-
function
|
|
2482
|
+
function Ks(e, t, r = 0) {
|
|
2479
2483
|
const n = [t, ...e];
|
|
2480
2484
|
return r && n.length > r ? n.slice(0, -1) : n;
|
|
2481
2485
|
}
|
|
2482
2486
|
var lt = /* @__PURE__ */ Symbol();
|
|
2483
|
-
function
|
|
2487
|
+
function Ka(e, t) {
|
|
2484
2488
|
return process.env.NODE_ENV !== "production" && e.queryFn === lt && console.error(
|
|
2485
2489
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
2486
2490
|
), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === lt ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
2487
2491
|
}
|
|
2488
|
-
function
|
|
2492
|
+
function Js(e, t, r) {
|
|
2489
2493
|
let n = !1, a;
|
|
2490
2494
|
return Object.defineProperty(e, "signal", {
|
|
2491
2495
|
enumerable: !0,
|
|
2492
2496
|
get: () => (a ??= t(), n || (n = !0, a.aborted ? r() : a.addEventListener("abort", r, { once: !0 })), a)
|
|
2493
2497
|
}), e;
|
|
2494
2498
|
}
|
|
2495
|
-
var
|
|
2496
|
-
let e = () =>
|
|
2499
|
+
var Ja = /* @__PURE__ */ (() => {
|
|
2500
|
+
let e = () => Us;
|
|
2497
2501
|
return {
|
|
2498
2502
|
/**
|
|
2499
2503
|
* Returns whether the current runtime should be treated as a server environment.
|
|
@@ -2509,7 +2513,7 @@ var Ka = /* @__PURE__ */ (() => {
|
|
|
2509
2513
|
}
|
|
2510
2514
|
};
|
|
2511
2515
|
})();
|
|
2512
|
-
function
|
|
2516
|
+
function Zs() {
|
|
2513
2517
|
let e, t;
|
|
2514
2518
|
const r = new Promise((a, i) => {
|
|
2515
2519
|
e = a, t = i;
|
|
@@ -2531,13 +2535,13 @@ function Qs() {
|
|
|
2531
2535
|
}), t(a);
|
|
2532
2536
|
}, r;
|
|
2533
2537
|
}
|
|
2534
|
-
var
|
|
2535
|
-
function
|
|
2538
|
+
var Xs = js;
|
|
2539
|
+
function el() {
|
|
2536
2540
|
let e = [], t = 0, r = (l) => {
|
|
2537
2541
|
l();
|
|
2538
2542
|
}, n = (l) => {
|
|
2539
2543
|
l();
|
|
2540
|
-
}, a =
|
|
2544
|
+
}, a = Xs;
|
|
2541
2545
|
const i = (l) => {
|
|
2542
2546
|
t ? e.push(l) : a(() => {
|
|
2543
2547
|
r(l);
|
|
@@ -2591,7 +2595,7 @@ function Js() {
|
|
|
2591
2595
|
}
|
|
2592
2596
|
};
|
|
2593
2597
|
}
|
|
2594
|
-
var Z =
|
|
2598
|
+
var Z = el(), tl = class extends bt {
|
|
2595
2599
|
#e = !0;
|
|
2596
2600
|
#t;
|
|
2597
2601
|
#r;
|
|
@@ -2622,30 +2626,30 @@ var Z = Js(), Zs = class extends bt {
|
|
|
2622
2626
|
isOnline() {
|
|
2623
2627
|
return this.#e;
|
|
2624
2628
|
}
|
|
2625
|
-
}, ct = new
|
|
2626
|
-
function
|
|
2629
|
+
}, ct = new tl();
|
|
2630
|
+
function rl(e) {
|
|
2627
2631
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
2628
2632
|
}
|
|
2629
|
-
function
|
|
2633
|
+
function Za(e) {
|
|
2630
2634
|
return (e ?? "online") === "online" ? ct.isOnline() : !0;
|
|
2631
2635
|
}
|
|
2632
|
-
var
|
|
2636
|
+
var xr = class extends Error {
|
|
2633
2637
|
constructor(e) {
|
|
2634
2638
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
2635
2639
|
}
|
|
2636
2640
|
};
|
|
2637
|
-
function
|
|
2641
|
+
function Xa(e) {
|
|
2638
2642
|
let t = !1, r = 0, n;
|
|
2639
|
-
const a =
|
|
2643
|
+
const a = Zs(), i = () => a.status !== "pending", s = (E) => {
|
|
2640
2644
|
if (!i()) {
|
|
2641
|
-
const D = new
|
|
2645
|
+
const D = new xr(E);
|
|
2642
2646
|
u(D), e.onCancel?.(D);
|
|
2643
2647
|
}
|
|
2644
2648
|
}, l = () => {
|
|
2645
2649
|
t = !0;
|
|
2646
2650
|
}, c = () => {
|
|
2647
2651
|
t = !1;
|
|
2648
|
-
}, m = () =>
|
|
2652
|
+
}, m = () => Qa.isFocused() && (e.networkMode === "always" || ct.isOnline()) && e.canRun(), f = () => Za(e.networkMode) && e.canRun(), h = (E) => {
|
|
2649
2653
|
i() || (n?.(), a.resolve(E));
|
|
2650
2654
|
}, u = (E) => {
|
|
2651
2655
|
i() || (n?.(), a.reject(E));
|
|
@@ -2668,12 +2672,12 @@ function Za(e) {
|
|
|
2668
2672
|
Promise.resolve(E).then(h).catch((S) => {
|
|
2669
2673
|
if (i())
|
|
2670
2674
|
return;
|
|
2671
|
-
const w = e.retry ?? (
|
|
2675
|
+
const w = e.retry ?? (Ja.isServer() ? 0 : 3), p = e.retryDelay ?? rl, y = typeof p == "function" ? p(r, S) : p, d = w === !0 || typeof w == "number" && r < w || typeof w == "function" && w(r, S);
|
|
2672
2676
|
if (t || !d) {
|
|
2673
2677
|
u(S);
|
|
2674
2678
|
return;
|
|
2675
2679
|
}
|
|
2676
|
-
r++, e.onFail?.(r, S),
|
|
2680
|
+
r++, e.onFail?.(r, S), Ys(y).then(() => m() ? void 0 : g()).then(() => {
|
|
2677
2681
|
t ? u(S) : b();
|
|
2678
2682
|
});
|
|
2679
2683
|
});
|
|
@@ -2689,27 +2693,27 @@ function Za(e) {
|
|
|
2689
2693
|
start: () => (f() ? b() : g().then(b), a)
|
|
2690
2694
|
};
|
|
2691
2695
|
}
|
|
2692
|
-
var
|
|
2696
|
+
var eo = class {
|
|
2693
2697
|
#e;
|
|
2694
2698
|
destroy() {
|
|
2695
2699
|
this.clearGcTimeout();
|
|
2696
2700
|
}
|
|
2697
2701
|
scheduleGc() {
|
|
2698
|
-
this.clearGcTimeout(),
|
|
2702
|
+
this.clearGcTimeout(), Hs(this.gcTime) && (this.#e = Rr.setTimeout(() => {
|
|
2699
2703
|
this.optionalRemove();
|
|
2700
2704
|
}, this.gcTime));
|
|
2701
2705
|
}
|
|
2702
2706
|
updateGcTime(e) {
|
|
2703
2707
|
this.gcTime = Math.max(
|
|
2704
2708
|
this.gcTime || 0,
|
|
2705
|
-
e ?? (
|
|
2709
|
+
e ?? (Ja.isServer() ? 1 / 0 : 300 * 1e3)
|
|
2706
2710
|
);
|
|
2707
2711
|
}
|
|
2708
2712
|
clearGcTimeout() {
|
|
2709
|
-
this.#e !== void 0 && (
|
|
2713
|
+
this.#e !== void 0 && (Rr.clearTimeout(this.#e), this.#e = void 0);
|
|
2710
2714
|
}
|
|
2711
2715
|
};
|
|
2712
|
-
function
|
|
2716
|
+
function nl(e) {
|
|
2713
2717
|
return {
|
|
2714
2718
|
onFetch: (t, r) => {
|
|
2715
2719
|
const n = t.options, a = t.fetchOptions?.meta?.fetchMore?.direction, i = t.state.data?.pages || [], s = t.state.data?.pageParams || [];
|
|
@@ -2717,12 +2721,12 @@ function el(e) {
|
|
|
2717
2721
|
const m = async () => {
|
|
2718
2722
|
let f = !1;
|
|
2719
2723
|
const h = (b) => {
|
|
2720
|
-
|
|
2724
|
+
Js(
|
|
2721
2725
|
b,
|
|
2722
2726
|
() => t.signal,
|
|
2723
2727
|
() => f = !0
|
|
2724
2728
|
);
|
|
2725
|
-
}, u =
|
|
2729
|
+
}, u = Ka(t.options, t.fetchOptions), g = async (b, E, D) => {
|
|
2726
2730
|
if (f)
|
|
2727
2731
|
return Promise.reject(t.signal.reason);
|
|
2728
2732
|
if (E == null && b.pages.length)
|
|
@@ -2736,14 +2740,14 @@ function el(e) {
|
|
|
2736
2740
|
meta: t.options.meta
|
|
2737
2741
|
};
|
|
2738
2742
|
return h(v), v;
|
|
2739
|
-
})(), p = await u(w), { maxPages: y } = t.options, d = D ?
|
|
2743
|
+
})(), p = await u(w), { maxPages: y } = t.options, d = D ? Ks : Qs;
|
|
2740
2744
|
return {
|
|
2741
2745
|
pages: d(b.pages, p, y),
|
|
2742
2746
|
pageParams: d(b.pageParams, E, y)
|
|
2743
2747
|
};
|
|
2744
2748
|
};
|
|
2745
2749
|
if (a && i.length) {
|
|
2746
|
-
const b = a === "backward", E = b ?
|
|
2750
|
+
const b = a === "backward", E = b ? al : sa, D = {
|
|
2747
2751
|
pages: i,
|
|
2748
2752
|
pageParams: s
|
|
2749
2753
|
}, S = E(n, D);
|
|
@@ -2751,7 +2755,7 @@ function el(e) {
|
|
|
2751
2755
|
} else {
|
|
2752
2756
|
const b = e ?? i.length;
|
|
2753
2757
|
do {
|
|
2754
|
-
const E = c === 0 ? s[0] ?? n.initialPageParam :
|
|
2758
|
+
const E = c === 0 ? s[0] ?? n.initialPageParam : sa(n, l);
|
|
2755
2759
|
if (c > 0 && E == null)
|
|
2756
2760
|
break;
|
|
2757
2761
|
l = await g(l, E), c++;
|
|
@@ -2772,7 +2776,7 @@ function el(e) {
|
|
|
2772
2776
|
}
|
|
2773
2777
|
};
|
|
2774
2778
|
}
|
|
2775
|
-
function
|
|
2779
|
+
function sa(e, { pages: t, pageParams: r }) {
|
|
2776
2780
|
const n = t.length - 1;
|
|
2777
2781
|
return t.length > 0 ? e.getNextPageParam(
|
|
2778
2782
|
t[n],
|
|
@@ -2781,10 +2785,10 @@ function oa(e, { pages: t, pageParams: r }) {
|
|
|
2781
2785
|
r
|
|
2782
2786
|
) : void 0;
|
|
2783
2787
|
}
|
|
2784
|
-
function
|
|
2788
|
+
function al(e, { pages: t, pageParams: r }) {
|
|
2785
2789
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
|
|
2786
2790
|
}
|
|
2787
|
-
var
|
|
2791
|
+
var ol = class extends eo {
|
|
2788
2792
|
#e;
|
|
2789
2793
|
#t;
|
|
2790
2794
|
#r;
|
|
@@ -2794,7 +2798,7 @@ var rl = class extends Xa {
|
|
|
2794
2798
|
#l;
|
|
2795
2799
|
#i;
|
|
2796
2800
|
constructor(e) {
|
|
2797
|
-
super(), this.#i = !1, this.#l = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#o = e.client, this.#a = this.#o.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t =
|
|
2801
|
+
super(), this.#i = !1, this.#l = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#o = e.client, this.#a = this.#o.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = ca(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
2798
2802
|
}
|
|
2799
2803
|
get meta() {
|
|
2800
2804
|
return this.options.meta;
|
|
@@ -2807,9 +2811,9 @@ var rl = class extends Xa {
|
|
|
2807
2811
|
}
|
|
2808
2812
|
setOptions(e) {
|
|
2809
2813
|
if (this.options = { ...this.#l, ...e }, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
2810
|
-
const t =
|
|
2814
|
+
const t = ca(this.options);
|
|
2811
2815
|
t.data !== void 0 && (this.setState(
|
|
2812
|
-
|
|
2816
|
+
la(t.data, t.dataUpdatedAt)
|
|
2813
2817
|
), this.#t = t);
|
|
2814
2818
|
}
|
|
2815
2819
|
}
|
|
@@ -2817,7 +2821,7 @@ var rl = class extends Xa {
|
|
|
2817
2821
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#a.remove(this);
|
|
2818
2822
|
}
|
|
2819
2823
|
setData(e, t) {
|
|
2820
|
-
const r =
|
|
2824
|
+
const r = Vs(this.state.data, e, this.options);
|
|
2821
2825
|
return this.#s({
|
|
2822
2826
|
data: r,
|
|
2823
2827
|
type: "success",
|
|
@@ -2843,7 +2847,7 @@ var rl = class extends Xa {
|
|
|
2843
2847
|
}
|
|
2844
2848
|
isActive() {
|
|
2845
2849
|
return this.observers.some(
|
|
2846
|
-
(e) =>
|
|
2850
|
+
(e) => Gs(e.options.enabled, this) !== !1
|
|
2847
2851
|
);
|
|
2848
2852
|
}
|
|
2849
2853
|
isDisabled() {
|
|
@@ -2854,7 +2858,7 @@ var rl = class extends Xa {
|
|
|
2854
2858
|
}
|
|
2855
2859
|
isStatic() {
|
|
2856
2860
|
return this.getObserversCount() > 0 ? this.observers.some(
|
|
2857
|
-
(e) =>
|
|
2861
|
+
(e) => Tr(e.options.staleTime, this) === "static"
|
|
2858
2862
|
) : !1;
|
|
2859
2863
|
}
|
|
2860
2864
|
isStale() {
|
|
@@ -2863,7 +2867,7 @@ var rl = class extends Xa {
|
|
|
2863
2867
|
) : this.state.data === void 0 || this.state.isInvalidated;
|
|
2864
2868
|
}
|
|
2865
2869
|
isStaleByTime(e = 0) {
|
|
2866
|
-
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !
|
|
2870
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !zs(this.state.dataUpdatedAt, e);
|
|
2867
2871
|
}
|
|
2868
2872
|
onFocus() {
|
|
2869
2873
|
this.observers.find((t) => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#n?.continue();
|
|
@@ -2909,7 +2913,7 @@ var rl = class extends Xa {
|
|
|
2909
2913
|
get: () => (this.#i = !0, r.signal)
|
|
2910
2914
|
});
|
|
2911
2915
|
}, a = () => {
|
|
2912
|
-
const c =
|
|
2916
|
+
const c = Ka(this.options, t), f = (() => {
|
|
2913
2917
|
const h = {
|
|
2914
2918
|
client: this.#o,
|
|
2915
2919
|
queryKey: this.queryKey,
|
|
@@ -2933,13 +2937,13 @@ var rl = class extends Xa {
|
|
|
2933
2937
|
};
|
|
2934
2938
|
return n(c), c;
|
|
2935
2939
|
})();
|
|
2936
|
-
(this.#e === "infinite" ?
|
|
2940
|
+
(this.#e === "infinite" ? nl(
|
|
2937
2941
|
this.options.pages
|
|
2938
|
-
) : this.options.behavior)?.onFetch(s, this), this.#r = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== s.fetchOptions?.meta) && this.#s({ type: "fetch", meta: s.fetchOptions?.meta }), this.#n =
|
|
2942
|
+
) : this.options.behavior)?.onFetch(s, this), this.#r = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== s.fetchOptions?.meta) && this.#s({ type: "fetch", meta: s.fetchOptions?.meta }), this.#n = Xa({
|
|
2939
2943
|
initialPromise: t?.initialPromise,
|
|
2940
2944
|
fn: s.fetchFn,
|
|
2941
2945
|
onCancel: (c) => {
|
|
2942
|
-
c instanceof
|
|
2946
|
+
c instanceof xr && c.revert && this.setState({
|
|
2943
2947
|
...this.#r,
|
|
2944
2948
|
fetchStatus: "idle"
|
|
2945
2949
|
}), r.abort();
|
|
@@ -2970,7 +2974,7 @@ var rl = class extends Xa {
|
|
|
2970
2974
|
this
|
|
2971
2975
|
), c;
|
|
2972
2976
|
} catch (c) {
|
|
2973
|
-
if (c instanceof
|
|
2977
|
+
if (c instanceof xr) {
|
|
2974
2978
|
if (c.silent)
|
|
2975
2979
|
return this.#n.promise;
|
|
2976
2980
|
if (c.revert) {
|
|
@@ -3016,13 +3020,13 @@ var rl = class extends Xa {
|
|
|
3016
3020
|
case "fetch":
|
|
3017
3021
|
return {
|
|
3018
3022
|
...r,
|
|
3019
|
-
...
|
|
3023
|
+
...il(r.data, this.options),
|
|
3020
3024
|
fetchMeta: e.meta ?? null
|
|
3021
3025
|
};
|
|
3022
3026
|
case "success":
|
|
3023
3027
|
const n = {
|
|
3024
3028
|
...r,
|
|
3025
|
-
...
|
|
3029
|
+
...la(e.data, e.dataUpdatedAt),
|
|
3026
3030
|
dataUpdateCount: r.dataUpdateCount + 1,
|
|
3027
3031
|
...!e.manual && {
|
|
3028
3032
|
fetchStatus: "idle",
|
|
@@ -3065,18 +3069,18 @@ var rl = class extends Xa {
|
|
|
3065
3069
|
});
|
|
3066
3070
|
}
|
|
3067
3071
|
};
|
|
3068
|
-
function
|
|
3072
|
+
function il(e, t) {
|
|
3069
3073
|
return {
|
|
3070
3074
|
fetchFailureCount: 0,
|
|
3071
3075
|
fetchFailureReason: null,
|
|
3072
|
-
fetchStatus:
|
|
3076
|
+
fetchStatus: Za(t.networkMode) ? "fetching" : "paused",
|
|
3073
3077
|
...e === void 0 && {
|
|
3074
3078
|
error: null,
|
|
3075
3079
|
status: "pending"
|
|
3076
3080
|
}
|
|
3077
3081
|
};
|
|
3078
3082
|
}
|
|
3079
|
-
function
|
|
3083
|
+
function la(e, t) {
|
|
3080
3084
|
return {
|
|
3081
3085
|
data: e,
|
|
3082
3086
|
dataUpdatedAt: t ?? Date.now(),
|
|
@@ -3085,7 +3089,7 @@ function ia(e, t) {
|
|
|
3085
3089
|
status: "success"
|
|
3086
3090
|
};
|
|
3087
3091
|
}
|
|
3088
|
-
function
|
|
3092
|
+
function ca(e) {
|
|
3089
3093
|
const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, r = t !== void 0, n = r ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
3090
3094
|
return {
|
|
3091
3095
|
data: t,
|
|
@@ -3102,13 +3106,13 @@ function sa(e) {
|
|
|
3102
3106
|
fetchStatus: "idle"
|
|
3103
3107
|
};
|
|
3104
3108
|
}
|
|
3105
|
-
var
|
|
3109
|
+
var sl = class extends eo {
|
|
3106
3110
|
#e;
|
|
3107
3111
|
#t;
|
|
3108
3112
|
#r;
|
|
3109
3113
|
#a;
|
|
3110
3114
|
constructor(e) {
|
|
3111
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
3115
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state || ll(), this.setOptions(e.options), this.scheduleGc();
|
|
3112
3116
|
}
|
|
3113
3117
|
setOptions(e) {
|
|
3114
3118
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -3145,7 +3149,7 @@ var al = class extends Xa {
|
|
|
3145
3149
|
meta: this.options.meta,
|
|
3146
3150
|
mutationKey: this.options.mutationKey
|
|
3147
3151
|
};
|
|
3148
|
-
this.#a =
|
|
3152
|
+
this.#a = Xa({
|
|
3149
3153
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, r) : Promise.reject(new Error("No mutationFn found")),
|
|
3150
3154
|
onFail: (i, s) => {
|
|
3151
3155
|
this.#o({ type: "failed", failureCount: i, error: s });
|
|
@@ -3321,7 +3325,7 @@ var al = class extends Xa {
|
|
|
3321
3325
|
});
|
|
3322
3326
|
}
|
|
3323
3327
|
};
|
|
3324
|
-
function
|
|
3328
|
+
function ll() {
|
|
3325
3329
|
return {
|
|
3326
3330
|
context: void 0,
|
|
3327
3331
|
data: void 0,
|
|
@@ -3334,7 +3338,7 @@ function ol() {
|
|
|
3334
3338
|
submittedAt: 0
|
|
3335
3339
|
};
|
|
3336
3340
|
}
|
|
3337
|
-
var
|
|
3341
|
+
var cl = class extends bt {
|
|
3338
3342
|
constructor(e = {}) {
|
|
3339
3343
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
|
|
3340
3344
|
}
|
|
@@ -3342,7 +3346,7 @@ var il = class extends bt {
|
|
|
3342
3346
|
#t;
|
|
3343
3347
|
#r;
|
|
3344
3348
|
build(e, t, r) {
|
|
3345
|
-
const n = new
|
|
3349
|
+
const n = new sl({
|
|
3346
3350
|
client: e,
|
|
3347
3351
|
mutationCache: this,
|
|
3348
3352
|
mutationId: ++this.#r,
|
|
@@ -3401,11 +3405,11 @@ var il = class extends bt {
|
|
|
3401
3405
|
find(e) {
|
|
3402
3406
|
const t = { exact: !0, ...e };
|
|
3403
3407
|
return this.getAll().find(
|
|
3404
|
-
(r) =>
|
|
3408
|
+
(r) => aa(t, r)
|
|
3405
3409
|
);
|
|
3406
3410
|
}
|
|
3407
3411
|
findAll(e = {}) {
|
|
3408
|
-
return this.getAll().filter((t) =>
|
|
3412
|
+
return this.getAll().filter((t) => aa(e, t));
|
|
3409
3413
|
}
|
|
3410
3414
|
notify(e) {
|
|
3411
3415
|
Z.batch(() => {
|
|
@@ -3426,15 +3430,15 @@ var il = class extends bt {
|
|
|
3426
3430
|
function rt(e) {
|
|
3427
3431
|
return e.options.scope?.id;
|
|
3428
3432
|
}
|
|
3429
|
-
var
|
|
3433
|
+
var ul = class extends bt {
|
|
3430
3434
|
constructor(e = {}) {
|
|
3431
3435
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
3432
3436
|
}
|
|
3433
3437
|
#e;
|
|
3434
3438
|
build(e, t, r) {
|
|
3435
|
-
const n = t.queryKey, a = t.queryHash ??
|
|
3439
|
+
const n = t.queryKey, a = t.queryHash ?? zr(n, t);
|
|
3436
3440
|
let i = this.get(a);
|
|
3437
|
-
return i || (i = new
|
|
3441
|
+
return i || (i = new ol({
|
|
3438
3442
|
client: e,
|
|
3439
3443
|
queryKey: n,
|
|
3440
3444
|
queryHash: a,
|
|
@@ -3469,12 +3473,12 @@ var sl = class extends bt {
|
|
|
3469
3473
|
find(e) {
|
|
3470
3474
|
const t = { exact: !0, ...e };
|
|
3471
3475
|
return this.getAll().find(
|
|
3472
|
-
(r) =>
|
|
3476
|
+
(r) => na(t, r)
|
|
3473
3477
|
);
|
|
3474
3478
|
}
|
|
3475
3479
|
findAll(e = {}) {
|
|
3476
3480
|
const t = this.getAll();
|
|
3477
|
-
return Object.keys(e).length > 0 ? t.filter((r) =>
|
|
3481
|
+
return Object.keys(e).length > 0 ? t.filter((r) => na(e, r)) : t;
|
|
3478
3482
|
}
|
|
3479
3483
|
notify(e) {
|
|
3480
3484
|
Z.batch(() => {
|
|
@@ -3497,7 +3501,7 @@ var sl = class extends bt {
|
|
|
3497
3501
|
});
|
|
3498
3502
|
});
|
|
3499
3503
|
}
|
|
3500
|
-
},
|
|
3504
|
+
}, dl = class {
|
|
3501
3505
|
#e;
|
|
3502
3506
|
#t;
|
|
3503
3507
|
#r;
|
|
@@ -3507,10 +3511,10 @@ var sl = class extends bt {
|
|
|
3507
3511
|
#l;
|
|
3508
3512
|
#i;
|
|
3509
3513
|
constructor(e = {}) {
|
|
3510
|
-
this.#e = e.queryCache || new
|
|
3514
|
+
this.#e = e.queryCache || new ul(), this.#t = e.mutationCache || new cl(), this.#r = e.defaultOptions || {}, this.#a = /* @__PURE__ */ new Map(), this.#o = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
3511
3515
|
}
|
|
3512
3516
|
mount() {
|
|
3513
|
-
this.#n++, this.#n === 1 && (this.#l =
|
|
3517
|
+
this.#n++, this.#n === 1 && (this.#l = Qa.subscribe(async (e) => {
|
|
3514
3518
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
3515
3519
|
}), this.#i = ct.subscribe(async (e) => {
|
|
3516
3520
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
@@ -3538,7 +3542,7 @@ var sl = class extends bt {
|
|
|
3538
3542
|
}
|
|
3539
3543
|
ensureQueryData(e) {
|
|
3540
3544
|
const t = this.defaultQueryOptions(e), r = this.#e.build(this, t), n = r.state.data;
|
|
3541
|
-
return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(
|
|
3545
|
+
return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Tr(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(n));
|
|
3542
3546
|
}
|
|
3543
3547
|
getQueriesData(e) {
|
|
3544
3548
|
return this.#e.findAll(e).map(({ queryKey: t, state: r }) => {
|
|
@@ -3549,7 +3553,7 @@ var sl = class extends bt {
|
|
|
3549
3553
|
setQueryData(e, t, r) {
|
|
3550
3554
|
const n = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(
|
|
3551
3555
|
n.queryHash
|
|
3552
|
-
)?.state.data, s =
|
|
3556
|
+
)?.state.data, s = Bs(t, i);
|
|
3553
3557
|
if (s !== void 0)
|
|
3554
3558
|
return this.#e.build(this, n).setData(s, { ...r, manual: !0 });
|
|
3555
3559
|
}
|
|
@@ -3621,7 +3625,7 @@ var sl = class extends bt {
|
|
|
3621
3625
|
t.retry === void 0 && (t.retry = !1);
|
|
3622
3626
|
const r = this.#e.build(this, t);
|
|
3623
3627
|
return r.isStaleByTime(
|
|
3624
|
-
|
|
3628
|
+
Tr(t.staleTime, r)
|
|
3625
3629
|
) ? r.fetch(t) : Promise.resolve(r.state.data);
|
|
3626
3630
|
}
|
|
3627
3631
|
prefetchQuery(e) {
|
|
@@ -3684,7 +3688,7 @@ var sl = class extends bt {
|
|
|
3684
3688
|
...e,
|
|
3685
3689
|
_defaulted: !0
|
|
3686
3690
|
};
|
|
3687
|
-
return t.queryHash || (t.queryHash =
|
|
3691
|
+
return t.queryHash || (t.queryHash = zr(
|
|
3688
3692
|
t.queryKey,
|
|
3689
3693
|
t
|
|
3690
3694
|
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === lt && (t.enabled = !1), t;
|
|
@@ -3701,7 +3705,7 @@ var sl = class extends bt {
|
|
|
3701
3705
|
this.#e.clear(), this.#t.clear();
|
|
3702
3706
|
}
|
|
3703
3707
|
};
|
|
3704
|
-
const
|
|
3708
|
+
const to = {
|
|
3705
3709
|
defaultOptions: {
|
|
3706
3710
|
queries: {
|
|
3707
3711
|
refetchOnWindowFocus: !1,
|
|
@@ -3710,8 +3714,8 @@ const eo = {
|
|
|
3710
3714
|
retry: 1
|
|
3711
3715
|
}
|
|
3712
3716
|
}
|
|
3713
|
-
},
|
|
3714
|
-
...
|
|
3717
|
+
}, fl = {
|
|
3718
|
+
...to,
|
|
3715
3719
|
// @ts-ignore: required to avoid error during development
|
|
3716
3720
|
logger: {
|
|
3717
3721
|
log: (...e) => {
|
|
@@ -3724,45 +3728,45 @@ const eo = {
|
|
|
3724
3728
|
console.error("[DashDefaultQueryClient]", ...e);
|
|
3725
3729
|
}
|
|
3726
3730
|
}
|
|
3727
|
-
},
|
|
3728
|
-
const t = typeof window < "u" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") ?
|
|
3729
|
-
return new
|
|
3730
|
-
},
|
|
3731
|
-
Administration: /* @__PURE__ */ o(
|
|
3732
|
-
Administración: /* @__PURE__ */ o(
|
|
3733
|
-
"Logs and Notifications": /* @__PURE__ */ o(
|
|
3734
|
-
"Logs y Notificaciones": /* @__PURE__ */ o(
|
|
3735
|
-
"System Resources": /* @__PURE__ */ o(
|
|
3736
|
-
"Recursos de sistema": /* @__PURE__ */ o(
|
|
3731
|
+
}, pl = () => {
|
|
3732
|
+
const t = typeof window < "u" && (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") ? fl : to;
|
|
3733
|
+
return new dl(t);
|
|
3734
|
+
}, Du = pl(), Ru = {
|
|
3735
|
+
Administration: /* @__PURE__ */ o(Kr, {}),
|
|
3736
|
+
Administración: /* @__PURE__ */ o(Kr, {}),
|
|
3737
|
+
"Logs and Notifications": /* @__PURE__ */ o(Jr, {}),
|
|
3738
|
+
"Logs y Notificaciones": /* @__PURE__ */ o(Jr, {}),
|
|
3739
|
+
"System Resources": /* @__PURE__ */ o(Zr, {}),
|
|
3740
|
+
"Recursos de sistema": /* @__PURE__ */ o(Zr, {}),
|
|
3737
3741
|
Users: /* @__PURE__ */ o(et, {}),
|
|
3738
3742
|
Usuarios: /* @__PURE__ */ o(et, {}),
|
|
3739
3743
|
Client: /* @__PURE__ */ o(et, {}),
|
|
3740
3744
|
Cliente: /* @__PURE__ */ o(et, {}),
|
|
3741
|
-
Actions: /* @__PURE__ */ o(
|
|
3742
|
-
Acciones: /* @__PURE__ */ o(
|
|
3743
|
-
}, Oe =
|
|
3745
|
+
Actions: /* @__PURE__ */ o(Xr, {}),
|
|
3746
|
+
Acciones: /* @__PURE__ */ o(Xr, {})
|
|
3747
|
+
}, Oe = Po({
|
|
3744
3748
|
clearAuthPersistence: () => re.clearAuth(),
|
|
3745
3749
|
syncToDeviceStore: ke,
|
|
3746
|
-
removeCookies: (e) => e.forEach((t) =>
|
|
3747
|
-
}),
|
|
3750
|
+
removeCookies: (e) => e.forEach((t) => Zo(t))
|
|
3751
|
+
}), Tu = wo, _u = So, Ou = Eo, hl = {
|
|
3748
3752
|
useAxios: Y,
|
|
3749
3753
|
storage: x,
|
|
3750
3754
|
authPersistence: re,
|
|
3751
3755
|
syncToDeviceStore: ke,
|
|
3752
|
-
syncFromDeviceStore:
|
|
3753
|
-
setAuthEvent:
|
|
3756
|
+
syncFromDeviceStore: ga,
|
|
3757
|
+
setAuthEvent: Ra,
|
|
3754
3758
|
logoutFromStorage: Oe,
|
|
3755
3759
|
getAuthEndpoint: () => Re("APP_GETAUTH_ENDPOINT") || "/auth",
|
|
3756
3760
|
guestRole: Ce.system.GUEST_ROLE,
|
|
3757
3761
|
enableTenantImpersonation: JSON.parse(
|
|
3758
3762
|
Se.system.ENABLE_TENANT_IMPERSONATION?.toString() || "false"
|
|
3759
3763
|
)
|
|
3760
|
-
},
|
|
3764
|
+
}, ml = {
|
|
3761
3765
|
/**
|
|
3762
3766
|
* Dash default login implementation with Dash-specific logic
|
|
3763
3767
|
*/
|
|
3764
3768
|
login: async ({ username: e, password: t }) => {
|
|
3765
|
-
await
|
|
3769
|
+
await ga();
|
|
3766
3770
|
const r = Y();
|
|
3767
3771
|
if (!(e && t))
|
|
3768
3772
|
return Promise.reject();
|
|
@@ -3779,7 +3783,7 @@ const eo = {
|
|
|
3779
3783
|
return re.saveAuth(i), x.setItem("authenticated", "true"), x.setItem("user", JSON.stringify(i.user)), x.setItem(
|
|
3780
3784
|
"roles",
|
|
3781
3785
|
i.user?.roles ? JSON.stringify(i.user.roles) : JSON.stringify(Ce.system.GUEST_ROLE)
|
|
3782
|
-
),
|
|
3786
|
+
), Ra({
|
|
3783
3787
|
authenticated: !0,
|
|
3784
3788
|
user: i.user,
|
|
3785
3789
|
auth: i.auth,
|
|
@@ -3865,18 +3869,18 @@ const eo = {
|
|
|
3865
3869
|
Array.isArray(e[r]) ? e[r].join(" , ") : e[r];
|
|
3866
3870
|
}), Promise.resolve();
|
|
3867
3871
|
}
|
|
3868
|
-
},
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
),
|
|
3872
|
+
}, xu = Ko(
|
|
3873
|
+
hl,
|
|
3874
|
+
ml
|
|
3875
|
+
), yl = {
|
|
3872
3876
|
useAxios: Y,
|
|
3873
3877
|
storage: x,
|
|
3874
|
-
getCacheHash:
|
|
3878
|
+
getCacheHash: wr,
|
|
3875
3879
|
getResourceConfig: st,
|
|
3876
3880
|
processPostData: xe,
|
|
3877
3881
|
processFormData: qe,
|
|
3878
|
-
processAxiosError:
|
|
3879
|
-
},
|
|
3882
|
+
processAxiosError: Er
|
|
3883
|
+
}, gl = {
|
|
3880
3884
|
/**
|
|
3881
3885
|
* Dash default getList implementation with Dash-specific logic
|
|
3882
3886
|
*/
|
|
@@ -3893,7 +3897,7 @@ const eo = {
|
|
|
3893
3897
|
...t.sort,
|
|
3894
3898
|
order: t.sort.order.toLowerCase()
|
|
3895
3899
|
});
|
|
3896
|
-
const l =
|
|
3900
|
+
const l = wr(e);
|
|
3897
3901
|
l && (n = {
|
|
3898
3902
|
...n,
|
|
3899
3903
|
hash: l
|
|
@@ -3954,7 +3958,7 @@ const eo = {
|
|
|
3954
3958
|
ids: Array.isArray(n) && n.length > 0 && n[0]?.id ? n.map((c) => c.id) : n
|
|
3955
3959
|
};
|
|
3956
3960
|
a = { ...a, pagination: !1 };
|
|
3957
|
-
const i =
|
|
3961
|
+
const i = wr(e);
|
|
3958
3962
|
i && (a = {
|
|
3959
3963
|
...a,
|
|
3960
3964
|
hash: i
|
|
@@ -4016,7 +4020,7 @@ const eo = {
|
|
|
4016
4020
|
}
|
|
4017
4021
|
return await m(s, l);
|
|
4018
4022
|
} catch (f) {
|
|
4019
|
-
throw
|
|
4023
|
+
throw Er(f, e, "update");
|
|
4020
4024
|
}
|
|
4021
4025
|
},
|
|
4022
4026
|
/**
|
|
@@ -4043,7 +4047,7 @@ const eo = {
|
|
|
4043
4047
|
}
|
|
4044
4048
|
return await c(i, m);
|
|
4045
4049
|
} catch (f) {
|
|
4046
|
-
throw
|
|
4050
|
+
throw Er(f, e, "create");
|
|
4047
4051
|
}
|
|
4048
4052
|
},
|
|
4049
4053
|
/**
|
|
@@ -4092,7 +4096,7 @@ const eo = {
|
|
|
4092
4096
|
})}`
|
|
4093
4097
|
);
|
|
4094
4098
|
}
|
|
4095
|
-
},
|
|
4099
|
+
}, vl = {
|
|
4096
4100
|
/**
|
|
4097
4101
|
* Dash default import method for bulk data import
|
|
4098
4102
|
*/
|
|
@@ -4123,13 +4127,13 @@ const eo = {
|
|
|
4123
4127
|
}
|
|
4124
4128
|
return t >= 500 ? (console.error("Server error", e), Promise.reject(new Error("A server error occurred. Please try again later."))) : Promise.resolve();
|
|
4125
4129
|
}
|
|
4126
|
-
},
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
),
|
|
4130
|
-
...
|
|
4131
|
-
...
|
|
4132
|
-
},
|
|
4130
|
+
}, bl = Jo(
|
|
4131
|
+
yl,
|
|
4132
|
+
gl
|
|
4133
|
+
), Cu = {
|
|
4134
|
+
...bl,
|
|
4135
|
+
...vl
|
|
4136
|
+
}, Iu = {
|
|
4133
4137
|
components: {
|
|
4134
4138
|
MuiButton: {
|
|
4135
4139
|
styleOverrides: {
|
|
@@ -4176,7 +4180,7 @@ const eo = {
|
|
|
4176
4180
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
4177
4181
|
}
|
|
4178
4182
|
}
|
|
4179
|
-
},
|
|
4183
|
+
}, Lu = {
|
|
4180
4184
|
// primary: {
|
|
4181
4185
|
// main: '#1976d2',
|
|
4182
4186
|
// light: '#42a5f5',
|
|
@@ -4187,54 +4191,54 @@ const eo = {
|
|
|
4187
4191
|
// light: '#ba68c8',
|
|
4188
4192
|
// dark: '#7b1fa2',
|
|
4189
4193
|
// },
|
|
4190
|
-
},
|
|
4194
|
+
}, Nu = {
|
|
4191
4195
|
// fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
|
|
4192
4196
|
// h1: {
|
|
4193
4197
|
// fontSize: '2.5rem',
|
|
4194
4198
|
// fontWeight: 500,
|
|
4195
4199
|
// },
|
|
4196
|
-
},
|
|
4200
|
+
}, ro = U.lazy(
|
|
4197
4201
|
() => import("@dashadmin/dash-utils").then((e) => ({ default: e.IPCMessageBrokerProvider }))
|
|
4198
|
-
),
|
|
4202
|
+
), no = () => /* @__PURE__ */ o("div", { style: {
|
|
4199
4203
|
display: "flex",
|
|
4200
4204
|
justifyContent: "center",
|
|
4201
4205
|
alignItems: "center",
|
|
4202
4206
|
minHeight: "200px"
|
|
4203
|
-
}, children: "Loading..." }),
|
|
4207
|
+
}, children: "Loading..." }), ao = () => {
|
|
4204
4208
|
try {
|
|
4205
4209
|
return JSON.parse(Re("IS_ELECTRON") || "false");
|
|
4206
4210
|
} catch {
|
|
4207
4211
|
return !1;
|
|
4208
4212
|
}
|
|
4209
|
-
},
|
|
4213
|
+
}, Fu = () => (t) => {
|
|
4210
4214
|
const { ThemeComponent: r, children: n } = t;
|
|
4211
4215
|
return /* @__PURE__ */ o(Be, { ThemeComponent: r, children: n });
|
|
4212
|
-
},
|
|
4213
|
-
const { ThemeComponent: r, children: n } = t, i =
|
|
4216
|
+
}, Mu = () => (t) => {
|
|
4217
|
+
const { ThemeComponent: r, children: n } = t, i = ao() ? /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(no, {}), children: /* @__PURE__ */ o(ro, { children: n }) }) : n;
|
|
4214
4218
|
return /* @__PURE__ */ o(Be, { ThemeComponent: r, children: i });
|
|
4215
|
-
},
|
|
4219
|
+
}, qu = () => Mr((e) => {
|
|
4216
4220
|
const { ThemeComponent: t, children: r } = e;
|
|
4217
4221
|
return /* @__PURE__ */ o(Be, { ThemeComponent: t, children: r });
|
|
4218
|
-
}, []),
|
|
4219
|
-
const e =
|
|
4220
|
-
return
|
|
4222
|
+
}, []), ku = () => {
|
|
4223
|
+
const e = ao();
|
|
4224
|
+
return Mr((t) => {
|
|
4221
4225
|
const { ThemeComponent: r, children: n } = t;
|
|
4222
|
-
return /* @__PURE__ */ o(Be, { ThemeComponent: r, children: e ? /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(
|
|
4226
|
+
return /* @__PURE__ */ o(Be, { ThemeComponent: r, children: e ? /* @__PURE__ */ o(te, { fallback: /* @__PURE__ */ o(no, {}), children: /* @__PURE__ */ o(ro, { children: n }) }) : n });
|
|
4223
4227
|
}, [e]);
|
|
4224
|
-
},
|
|
4228
|
+
}, $u = (e) => {
|
|
4225
4229
|
const { onStdout: t, enableLogging: r = !0 } = e || {};
|
|
4226
|
-
H(() => (
|
|
4230
|
+
H(() => (ma() && ya((a) => {
|
|
4227
4231
|
r && console.log("[DashDefault IPC Stdout]:", a), t?.(a);
|
|
4228
4232
|
}), () => {
|
|
4229
4233
|
}), [t, r]);
|
|
4230
|
-
},
|
|
4234
|
+
}, ju = (e) => {
|
|
4231
4235
|
const { onStdout: t, enableLogging: r = !0 } = e || {};
|
|
4232
|
-
return
|
|
4236
|
+
return ma() && ya((a) => {
|
|
4233
4237
|
r && console.log("[DashDefault IPC Stdout]:", a), t?.(a);
|
|
4234
4238
|
}), () => {
|
|
4235
4239
|
};
|
|
4236
|
-
},
|
|
4237
|
-
const [e, t] = C([]), [r, n] = C(null), a =
|
|
4240
|
+
}, Uu = () => {
|
|
4241
|
+
const [e, t] = C([]), [r, n] = C(null), a = Xo(), [i, s] = C(null), [l, c] = C(null);
|
|
4238
4242
|
H(() => {
|
|
4239
4243
|
a?.user && (s(a.user.id), c(a.user.tenant_id));
|
|
4240
4244
|
}, [a]);
|
|
@@ -4247,7 +4251,7 @@ const eo = {
|
|
|
4247
4251
|
ping: g,
|
|
4248
4252
|
addListener: b,
|
|
4249
4253
|
removeListener: E
|
|
4250
|
-
} =
|
|
4254
|
+
} = en({
|
|
4251
4255
|
type: "private",
|
|
4252
4256
|
channel: i ? `user.${i}` : null,
|
|
4253
4257
|
enabled: !!i
|
|
@@ -4259,7 +4263,7 @@ const eo = {
|
|
|
4259
4263
|
ping: p,
|
|
4260
4264
|
addListener: y,
|
|
4261
4265
|
removeListener: d
|
|
4262
|
-
} =
|
|
4266
|
+
} = en({
|
|
4263
4267
|
type: "private",
|
|
4264
4268
|
channel: l ? `tenant.${l}.system` : null,
|
|
4265
4269
|
enabled: !!l
|
|
@@ -4280,17 +4284,17 @@ const eo = {
|
|
|
4280
4284
|
lastEvent: r,
|
|
4281
4285
|
clear: m
|
|
4282
4286
|
};
|
|
4283
|
-
},
|
|
4284
|
-
|
|
4285
|
-
},
|
|
4287
|
+
}, Bu = (e) => {
|
|
4288
|
+
To(e);
|
|
4289
|
+
}, Hu = (e) => st(e), zu = (e, t, r) => xe(e, t, r), Gu = qe, Wu = Do, Yu = Ro;
|
|
4286
4290
|
let de = null;
|
|
4287
|
-
const
|
|
4291
|
+
const oo = 10, io = 4e3, Al = 2500, so = 100, Pl = 50, Sl = 300, El = async () => {
|
|
4288
4292
|
try {
|
|
4289
4293
|
return de || (de = new (window.AudioContext || window.webkitAudioContext)()), de.state === "suspended" && await de.resume(), !0;
|
|
4290
4294
|
} catch (e) {
|
|
4291
4295
|
return console.error("Failed to initialize audio context:", e), !1;
|
|
4292
4296
|
}
|
|
4293
|
-
},
|
|
4297
|
+
}, lo = (e, t) => new Promise((r) => {
|
|
4294
4298
|
if (!de) {
|
|
4295
4299
|
r();
|
|
4296
4300
|
return;
|
|
@@ -4303,9 +4307,9 @@ const ao = 10, oo = 4e3, gl = 2500, io = 100, vl = 50, bl = 300, Al = async () =
|
|
|
4303
4307
|
} catch (n) {
|
|
4304
4308
|
console.error("Failed to play oscillator beep:", n), r();
|
|
4305
4309
|
}
|
|
4306
|
-
}),
|
|
4307
|
-
const r = e ?? t?.alarmDurationSeconds ??
|
|
4308
|
-
if (console.log(`🔔 Starting digital watch alarm for ${r} seconds...`), !await
|
|
4310
|
+
}), wl = async (e, t) => {
|
|
4311
|
+
const r = e ?? t?.alarmDurationSeconds ?? oo, n = t?.alarmFrequencyHigh ?? io, a = t?.alarmFrequencyLow ?? Al, i = t?.beepDurationMs ?? so, s = t?.beepGapMs ?? Pl, l = t?.beepPatternGapMs ?? Sl;
|
|
4312
|
+
if (console.log(`🔔 Starting digital watch alarm for ${r} seconds...`), !await El()) {
|
|
4309
4313
|
console.error("Failed to initialize audio for alarm");
|
|
4310
4314
|
return;
|
|
4311
4315
|
}
|
|
@@ -4314,29 +4318,29 @@ const ao = 10, oo = 4e3, gl = 2500, io = 100, vl = 50, bl = 300, Al = async () =
|
|
|
4314
4318
|
const u = async (g) => {
|
|
4315
4319
|
const b = g ? n : a;
|
|
4316
4320
|
for (let E = 0; E < 3; E++)
|
|
4317
|
-
await
|
|
4321
|
+
await lo(b, i), E < 2 && s > 0 && await new Promise((D) => setTimeout(D, s));
|
|
4318
4322
|
};
|
|
4319
4323
|
for (; Date.now() < f; ) {
|
|
4320
4324
|
const g = h % 2 === 0;
|
|
4321
4325
|
await u(g), h++, Date.now() < f && l > 0 && await new Promise((b) => setTimeout(b, l));
|
|
4322
4326
|
}
|
|
4323
4327
|
console.log(`🔔 Digital watch alarm completed (${h} patterns played)`);
|
|
4324
|
-
},
|
|
4325
|
-
await
|
|
4326
|
-
},
|
|
4328
|
+
}, Vu = async () => {
|
|
4329
|
+
await lo(io, so);
|
|
4330
|
+
}, Qu = async (e) => {
|
|
4327
4331
|
let t = e?.data?.marketplace?.system_marketplace?.name || "STORE";
|
|
4328
4332
|
const r = e?.data?.new === "CONFIRMED";
|
|
4329
4333
|
let n = !1;
|
|
4330
|
-
return e?.notificationPayload?.class === "MallStoreAssistanceNotification" && (n = !0), r && (n = !0), n ? (console.log("🚨 Playing digital watch alarm for new order..."), await
|
|
4334
|
+
return e?.notificationPayload?.class === "MallStoreAssistanceNotification" && (n = !0), r && (n = !0), n ? (console.log("🚨 Playing digital watch alarm for new order..."), await wl(oo), console.log("✅ Alarm sequence completed - TTS can now play"), "Notification" in window && Notification.permission === "granted" && new Notification(`Nueva Orden de ${t}`, {
|
|
4331
4335
|
body: e?.data?.message || "Nueva orden recibida",
|
|
4332
4336
|
icon: "https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f6a8.png"
|
|
4333
4337
|
// Alarm icon emoji
|
|
4334
4338
|
}), { alarmCompleted: !0 }) : { alarmCompleted: !1 };
|
|
4335
|
-
},
|
|
4336
|
-
const e =
|
|
4339
|
+
}, Dl = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, Rl = () => {
|
|
4340
|
+
const e = ni(), t = (p) => Dl.test(p), [r, n] = C(() => {
|
|
4337
4341
|
const p = re.isAuthValid(), y = JSON.parse(x.getItem("authenticated") || "false");
|
|
4338
4342
|
return p && y;
|
|
4339
|
-
}), [a, i] = C(!1), [s, l] = C(null), [c, m] = C(!1), f =
|
|
4343
|
+
}), [a, i] = C(!1), [s, l] = C(null), [c, m] = C(!1), f = $r(), {
|
|
4340
4344
|
register: h,
|
|
4341
4345
|
handleSubmit: u,
|
|
4342
4346
|
formState: { errors: g }
|
|
@@ -4353,7 +4357,7 @@ const ao = 10, oo = 4e3, gl = 2500, io = 100, vl = 50, bl = 300, Al = async () =
|
|
|
4353
4357
|
i(!0), l(null);
|
|
4354
4358
|
try {
|
|
4355
4359
|
console.log("Attempting login with DASHAuthenticationService...");
|
|
4356
|
-
const d = await
|
|
4360
|
+
const d = await qr.login({
|
|
4357
4361
|
username: p.email,
|
|
4358
4362
|
password: y,
|
|
4359
4363
|
redirect: window.location.pathname
|
|
@@ -4406,14 +4410,14 @@ const ao = 10, oo = 4e3, gl = 2500, io = 100, vl = 50, bl = 300, Al = async () =
|
|
|
4406
4410
|
InputProps: {
|
|
4407
4411
|
autoComplete: "password",
|
|
4408
4412
|
type: c ? "text" : "password",
|
|
4409
|
-
endAdornment: /* @__PURE__ */ o(
|
|
4410
|
-
|
|
4413
|
+
endAdornment: /* @__PURE__ */ o(Uo, { position: "end", children: /* @__PURE__ */ o(
|
|
4414
|
+
kr,
|
|
4411
4415
|
{
|
|
4412
4416
|
"aria-label": "toggle password visibility",
|
|
4413
4417
|
onClick: b,
|
|
4414
4418
|
onMouseDown: E,
|
|
4415
4419
|
edge: "end",
|
|
4416
|
-
children: c ? /* @__PURE__ */ o(
|
|
4420
|
+
children: c ? /* @__PURE__ */ o(ai, {}) : /* @__PURE__ */ o(oi, {})
|
|
4417
4421
|
}
|
|
4418
4422
|
) })
|
|
4419
4423
|
}
|
|
@@ -4421,7 +4425,7 @@ const ao = 10, oo = 4e3, gl = 2500, io = 100, vl = 50, bl = 300, Al = async () =
|
|
|
4421
4425
|
),
|
|
4422
4426
|
g.password && /* @__PURE__ */ o("span", { style: { color: "red" }, children: g.password.message ? String(g.password.message) : "Contraseña Inválida" }),
|
|
4423
4427
|
/* @__PURE__ */ o(
|
|
4424
|
-
|
|
4428
|
+
ei,
|
|
4425
4429
|
{
|
|
4426
4430
|
className: "link link--secondary",
|
|
4427
4431
|
style: { marginLeft: "auto" },
|
|
@@ -4430,7 +4434,7 @@ const ao = 10, oo = 4e3, gl = 2500, io = 100, vl = 50, bl = 300, Al = async () =
|
|
|
4430
4434
|
}
|
|
4431
4435
|
)
|
|
4432
4436
|
] }),
|
|
4433
|
-
s && /* @__PURE__ */ o(
|
|
4437
|
+
s && /* @__PURE__ */ o(ri, { sx: { mb: 2 }, children: /* @__PURE__ */ o(ti, { severity: "error", variant: "filled", children: s }) }),
|
|
4434
4438
|
/* @__PURE__ */ o("div", { className: "dash-app-form-item mt-1", children: /* @__PURE__ */ o(
|
|
4435
4439
|
ae,
|
|
4436
4440
|
{
|
|
@@ -4447,22 +4451,22 @@ const ao = 10, oo = 4e3, gl = 2500, io = 100, vl = 50, bl = 300, Al = async () =
|
|
|
4447
4451
|
) })
|
|
4448
4452
|
}
|
|
4449
4453
|
);
|
|
4450
|
-
},
|
|
4454
|
+
}, Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4451
4455
|
__proto__: null,
|
|
4452
|
-
default:
|
|
4456
|
+
default: Rl
|
|
4453
4457
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4454
|
-
var
|
|
4455
|
-
function
|
|
4456
|
-
return
|
|
4458
|
+
var _l = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
|
|
4459
|
+
function Cr() {
|
|
4460
|
+
return Cr = Object.assign ? Object.assign.bind() : function(e) {
|
|
4457
4461
|
for (var t = 1; t < arguments.length; t++) {
|
|
4458
4462
|
var r = arguments[t];
|
|
4459
4463
|
for (var n in r)
|
|
4460
4464
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
4461
4465
|
}
|
|
4462
4466
|
return e;
|
|
4463
|
-
},
|
|
4467
|
+
}, Cr.apply(this, arguments);
|
|
4464
4468
|
}
|
|
4465
|
-
function
|
|
4469
|
+
function Ol(e, t) {
|
|
4466
4470
|
if (e == null) return {};
|
|
4467
4471
|
var r = {}, n = Object.keys(e), a, i;
|
|
4468
4472
|
for (i = 0; i < n.length; i++)
|
|
@@ -4474,16 +4478,16 @@ function nt(e) {
|
|
|
4474
4478
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4475
4479
|
return e;
|
|
4476
4480
|
}
|
|
4477
|
-
function
|
|
4478
|
-
e.prototype = Object.create(t.prototype), e.prototype.constructor = e,
|
|
4481
|
+
function xl(e, t) {
|
|
4482
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ir(e, t);
|
|
4479
4483
|
}
|
|
4480
|
-
function
|
|
4481
|
-
return
|
|
4484
|
+
function Ir(e, t) {
|
|
4485
|
+
return Ir = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, a) {
|
|
4482
4486
|
return n.__proto__ = a, n;
|
|
4483
|
-
},
|
|
4487
|
+
}, Ir(e, t);
|
|
4484
4488
|
}
|
|
4485
4489
|
var At = /* @__PURE__ */ (function(e) {
|
|
4486
|
-
|
|
4490
|
+
xl(t, e);
|
|
4487
4491
|
function t() {
|
|
4488
4492
|
var n;
|
|
4489
4493
|
return n = e.call(this) || this, n.handleExpired = n.handleExpired.bind(nt(n)), n.handleErrored = n.handleErrored.bind(nt(n)), n.handleChange = n.handleChange.bind(nt(n)), n.handleRecaptchaRef = n.handleRecaptchaRef.bind(nt(n)), n;
|
|
@@ -4547,12 +4551,12 @@ var At = /* @__PURE__ */ (function(e) {
|
|
|
4547
4551
|
}, r.render = function() {
|
|
4548
4552
|
var a = this.props;
|
|
4549
4553
|
a.sitekey, a.onChange, a.theme, a.type, a.tabindex, a.onExpired, a.onErrored, a.size, a.stoken, a.grecaptcha, a.badge, a.hl, a.isolated;
|
|
4550
|
-
var i =
|
|
4551
|
-
return /* @__PURE__ */
|
|
4554
|
+
var i = Ol(a, _l);
|
|
4555
|
+
return /* @__PURE__ */ Gr.createElement("div", Cr({}, i, {
|
|
4552
4556
|
ref: this.handleRecaptchaRef
|
|
4553
4557
|
}));
|
|
4554
4558
|
}, t;
|
|
4555
|
-
})(
|
|
4559
|
+
})(Gr.Component);
|
|
4556
4560
|
At.displayName = "ReCAPTCHA";
|
|
4557
4561
|
At.propTypes = {
|
|
4558
4562
|
sitekey: ee.string.isRequired,
|
|
@@ -4579,10 +4583,10 @@ At.defaultProps = {
|
|
|
4579
4583
|
badge: "bottomright"
|
|
4580
4584
|
};
|
|
4581
4585
|
var at = { exports: {} }, L = {};
|
|
4582
|
-
var
|
|
4583
|
-
function
|
|
4584
|
-
if (
|
|
4585
|
-
|
|
4586
|
+
var ua;
|
|
4587
|
+
function Cl() {
|
|
4588
|
+
if (ua) return L;
|
|
4589
|
+
ua = 1;
|
|
4586
4590
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, c = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, f = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, u = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, E = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, D = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, S = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, w = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
4587
4591
|
function p(d) {
|
|
4588
4592
|
if (typeof d == "object" && d !== null) {
|
|
@@ -4646,9 +4650,9 @@ function _l() {
|
|
|
4646
4650
|
}, L.typeOf = p, L;
|
|
4647
4651
|
}
|
|
4648
4652
|
var N = {};
|
|
4649
|
-
var
|
|
4650
|
-
function
|
|
4651
|
-
return
|
|
4653
|
+
var da;
|
|
4654
|
+
function Il() {
|
|
4655
|
+
return da || (da = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
4652
4656
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, i = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, s = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, c = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, f = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, u = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, E = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, D = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, S = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, w = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
4653
4657
|
function p(P) {
|
|
4654
4658
|
return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -4729,15 +4733,15 @@ function Ol() {
|
|
|
4729
4733
|
N.AsyncMode = d, N.ConcurrentMode = v, N.ContextConsumer = A, N.ContextProvider = _, N.Element = R, N.ForwardRef = $, N.Fragment = F, N.Lazy = k, N.Memo = I, N.Portal = j, N.Profiler = ve, N.StrictMode = se, N.Suspense = V, N.isAsyncMode = K, N.isConcurrentMode = fe, N.isContextConsumer = we, N.isContextProvider = _e, N.isElement = be, N.isForwardRef = O, N.isFragment = z, N.isLazy = ne, N.isMemo = Ae, N.isPortal = Pt, N.isProfiler = oe, N.isStrictMode = M, N.isSuspense = G, N.isValidElementType = p, N.typeOf = y;
|
|
4730
4734
|
})()), N;
|
|
4731
4735
|
}
|
|
4732
|
-
var
|
|
4733
|
-
function
|
|
4734
|
-
return
|
|
4736
|
+
var fa;
|
|
4737
|
+
function Ll() {
|
|
4738
|
+
return fa || (fa = 1, process.env.NODE_ENV === "production" ? at.exports = Cl() : at.exports = Il()), at.exports;
|
|
4735
4739
|
}
|
|
4736
|
-
var
|
|
4737
|
-
function
|
|
4738
|
-
if (
|
|
4739
|
-
|
|
4740
|
-
var e =
|
|
4740
|
+
var Pr, pa;
|
|
4741
|
+
function Nl() {
|
|
4742
|
+
if (pa) return Pr;
|
|
4743
|
+
pa = 1;
|
|
4744
|
+
var e = Ll(), t = {
|
|
4741
4745
|
childContextTypes: !0,
|
|
4742
4746
|
contextType: !0,
|
|
4743
4747
|
contextTypes: !0,
|
|
@@ -4797,42 +4801,42 @@ function Cl() {
|
|
|
4797
4801
|
}
|
|
4798
4802
|
return b;
|
|
4799
4803
|
}
|
|
4800
|
-
return
|
|
4804
|
+
return Pr = g, Pr;
|
|
4801
4805
|
}
|
|
4802
|
-
var
|
|
4803
|
-
const
|
|
4804
|
-
function
|
|
4805
|
-
return
|
|
4806
|
+
var Fl = Nl();
|
|
4807
|
+
const Ml = /* @__PURE__ */ La(Fl);
|
|
4808
|
+
function Lr() {
|
|
4809
|
+
return Lr = Object.assign || function(e) {
|
|
4806
4810
|
for (var t = 1; t < arguments.length; t++) {
|
|
4807
4811
|
var r = arguments[t];
|
|
4808
4812
|
for (var n in r)
|
|
4809
4813
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
4810
4814
|
}
|
|
4811
4815
|
return e;
|
|
4812
|
-
},
|
|
4816
|
+
}, Lr.apply(this, arguments);
|
|
4813
4817
|
}
|
|
4814
|
-
function
|
|
4818
|
+
function ql(e, t) {
|
|
4815
4819
|
if (e == null) return {};
|
|
4816
4820
|
var r = {}, n = Object.keys(e), a, i;
|
|
4817
4821
|
for (i = 0; i < n.length; i++)
|
|
4818
4822
|
a = n[i], !(t.indexOf(a) >= 0) && (r[a] = e[a]);
|
|
4819
4823
|
return r;
|
|
4820
4824
|
}
|
|
4821
|
-
function
|
|
4825
|
+
function kl(e, t) {
|
|
4822
4826
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
4823
4827
|
}
|
|
4824
|
-
var le = {},
|
|
4825
|
-
function
|
|
4828
|
+
var le = {}, $l = 0;
|
|
4829
|
+
function jl(e, t) {
|
|
4826
4830
|
return t = t || {}, function(n) {
|
|
4827
4831
|
var a = n.displayName || n.name || "Component", i = /* @__PURE__ */ (function(l) {
|
|
4828
|
-
|
|
4832
|
+
kl(c, l);
|
|
4829
4833
|
function c(f, h) {
|
|
4830
4834
|
var u;
|
|
4831
4835
|
return u = l.call(this, f, h) || this, u.state = {}, u.__scriptURL = "", u;
|
|
4832
4836
|
}
|
|
4833
4837
|
var m = c.prototype;
|
|
4834
4838
|
return m.asyncScriptLoaderGetScriptLoaderID = function() {
|
|
4835
|
-
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" +
|
|
4839
|
+
return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + $l++), this.__scriptLoaderID;
|
|
4836
4840
|
}, m.setupScriptURL = function() {
|
|
4837
4841
|
return this.__scriptURL = typeof e == "function" ? e() : e, this.__scriptURL;
|
|
4838
4842
|
}, m.asyncScriptLoaderHandleLoad = function(h) {
|
|
@@ -4905,46 +4909,46 @@ function ql(e, t) {
|
|
|
4905
4909
|
}, m.render = function() {
|
|
4906
4910
|
var h = t.globalName, u = this.props;
|
|
4907
4911
|
u.asyncScriptOnLoad;
|
|
4908
|
-
var g = u.forwardedRef, b =
|
|
4909
|
-
return h && typeof window < "u" && (b[h] = typeof window[h] < "u" ? window[h] : void 0), b.ref = g,
|
|
4912
|
+
var g = u.forwardedRef, b = ql(u, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
4913
|
+
return h && typeof window < "u" && (b[h] = typeof window[h] < "u" ? window[h] : void 0), b.ref = g, Yr(n, b);
|
|
4910
4914
|
}, c;
|
|
4911
|
-
})(
|
|
4912
|
-
return
|
|
4915
|
+
})(po), s = fo(function(l, c) {
|
|
4916
|
+
return Yr(i, Lr({}, l, {
|
|
4913
4917
|
forwardedRef: c
|
|
4914
4918
|
}));
|
|
4915
4919
|
});
|
|
4916
4920
|
return s.displayName = "AsyncScriptLoader(" + a + ")", s.propTypes = {
|
|
4917
4921
|
asyncScriptOnLoad: ee.func
|
|
4918
|
-
},
|
|
4922
|
+
}, Ml(s, n);
|
|
4919
4923
|
};
|
|
4920
4924
|
}
|
|
4921
|
-
var
|
|
4922
|
-
function
|
|
4925
|
+
var Nr = "onloadcallback", Ul = "grecaptcha";
|
|
4926
|
+
function Fr() {
|
|
4923
4927
|
return typeof window < "u" && window.recaptchaOptions || {};
|
|
4924
4928
|
}
|
|
4925
|
-
function
|
|
4926
|
-
var e =
|
|
4927
|
-
return e.enterprise ? "https://" + t + "/recaptcha/enterprise.js?onload=" +
|
|
4929
|
+
function Bl() {
|
|
4930
|
+
var e = Fr(), t = e.useRecaptchaNet ? "recaptcha.net" : "www.google.com";
|
|
4931
|
+
return e.enterprise ? "https://" + t + "/recaptcha/enterprise.js?onload=" + Nr + "&render=explicit" : "https://" + t + "/recaptcha/api.js?onload=" + Nr + "&render=explicit";
|
|
4928
4932
|
}
|
|
4929
|
-
const
|
|
4930
|
-
callbackName:
|
|
4931
|
-
globalName:
|
|
4932
|
-
attributes:
|
|
4933
|
-
nonce:
|
|
4933
|
+
const co = jl(Bl, {
|
|
4934
|
+
callbackName: Nr,
|
|
4935
|
+
globalName: Ul,
|
|
4936
|
+
attributes: Fr().nonce ? {
|
|
4937
|
+
nonce: Fr().nonce
|
|
4934
4938
|
} : {}
|
|
4935
|
-
})(At), me = (e) => e?.message,
|
|
4939
|
+
})(At), me = (e) => e?.message, Ku = ({
|
|
4936
4940
|
showRutField: e = !0,
|
|
4937
4941
|
customFields: t
|
|
4938
4942
|
}) => {
|
|
4939
|
-
const r = Ce.system.RECAPTCHA_ENABLED, n =
|
|
4940
|
-
|
|
4941
|
-
const h = U.useContext(
|
|
4943
|
+
const r = Ce.system.RECAPTCHA_ENABLED, n = ha(), [a, i] = C(null), [s, l] = C(null), [c, m] = C(!1), f = ut();
|
|
4944
|
+
_a();
|
|
4945
|
+
const h = U.useContext(Ta), u = Te(), {
|
|
4942
4946
|
register: g,
|
|
4943
4947
|
handleSubmit: b,
|
|
4944
4948
|
setError: E,
|
|
4945
4949
|
clearErrors: D,
|
|
4946
4950
|
formState: { errors: S }
|
|
4947
|
-
} =
|
|
4951
|
+
} = $r(), w = Y(), p = Ea(), y = (v) => {
|
|
4948
4952
|
D("g-recaptcha-response"), i(v);
|
|
4949
4953
|
};
|
|
4950
4954
|
H(() => {
|
|
@@ -4980,7 +4984,7 @@ const lo = ql($l, {
|
|
|
4980
4984
|
return /* @__PURE__ */ o(ht, { children: /* @__PURE__ */ T("form", { onSubmit: b(d), className: "dash-app-login-form", autoComplete: "on", children: [
|
|
4981
4985
|
/* @__PURE__ */ T(ue, { sx: { display: "flex", alignItems: "center", gap: 2, mb: 2 }, children: [
|
|
4982
4986
|
/* @__PURE__ */ o(
|
|
4983
|
-
|
|
4987
|
+
kr,
|
|
4984
4988
|
{
|
|
4985
4989
|
color: "primary",
|
|
4986
4990
|
onClick: () => u("/"),
|
|
@@ -4989,7 +4993,7 @@ const lo = ql($l, {
|
|
|
4989
4993
|
),
|
|
4990
4994
|
/* @__PURE__ */ o("h1", { className: "dash-app-login-form-title", children: "Create Account" })
|
|
4991
4995
|
] }),
|
|
4992
|
-
s && /* @__PURE__ */ o(
|
|
4996
|
+
s && /* @__PURE__ */ o(Da, { severity: "error", sx: { mb: 2 }, children: s }),
|
|
4993
4997
|
/* @__PURE__ */ o("div", { className: "dash-app-form-item", children: /* @__PURE__ */ o(
|
|
4994
4998
|
W,
|
|
4995
4999
|
{
|
|
@@ -5021,7 +5025,7 @@ const lo = ql($l, {
|
|
|
5021
5025
|
label: "RUT",
|
|
5022
5026
|
placeholder: "11.111.111-1",
|
|
5023
5027
|
required: !0,
|
|
5024
|
-
...g("public_id", { validate:
|
|
5028
|
+
...g("public_id", { validate: Oa }),
|
|
5025
5029
|
className: "dash-app-form-item-input",
|
|
5026
5030
|
error: !!S.public_id,
|
|
5027
5031
|
helperText: me(S.public_id) || S.public_id && "Invalid RUT"
|
|
@@ -5092,7 +5096,7 @@ const lo = ql($l, {
|
|
|
5092
5096
|
t,
|
|
5093
5097
|
r && /* @__PURE__ */ T("div", { className: "dash-app-form-item", children: [
|
|
5094
5098
|
/* @__PURE__ */ o(
|
|
5095
|
-
|
|
5099
|
+
co,
|
|
5096
5100
|
{
|
|
5097
5101
|
ref: n,
|
|
5098
5102
|
sitekey: Ce.system.RECAPTCHA_TOKEN,
|
|
@@ -5124,8 +5128,8 @@ const lo = ql($l, {
|
|
|
5124
5128
|
}
|
|
5125
5129
|
) })
|
|
5126
5130
|
] }) });
|
|
5127
|
-
},
|
|
5128
|
-
const { panelSettings: t, showRutField: r = !0 } = e, n = Se.system.RECAPTCHA_ENABLED, a = Se.system.GOOGLE_SIGNUP !== !1, i =
|
|
5131
|
+
}, Ju = (e) => {
|
|
5132
|
+
const { panelSettings: t, showRutField: r = !0 } = e, n = Se.system.RECAPTCHA_ENABLED, a = Se.system.GOOGLE_SIGNUP !== !1, i = ha(), [s, l] = C(null), [c, m] = C([]), [f, h] = C(null), [u, g] = C(!1), [b, E] = C(!0), [D, S] = C(!1), w = Bo(), p = Ho(w.breakpoints.down("sm")), y = ut(), d = _a(), v = U.useContext(Ta), A = Te(), _ = $r(), {
|
|
5129
5133
|
register: R,
|
|
5130
5134
|
handleSubmit: $,
|
|
5131
5135
|
setError: F,
|
|
@@ -5133,7 +5137,7 @@ const lo = ql($l, {
|
|
|
5133
5137
|
formState: { errors: I },
|
|
5134
5138
|
setValue: j,
|
|
5135
5139
|
watch: ve
|
|
5136
|
-
} = _, se = Y(), V =
|
|
5140
|
+
} = _, se = Y(), V = Ea(), Q = (O) => {
|
|
5137
5141
|
k("g-recaptcha-response"), l(O);
|
|
5138
5142
|
};
|
|
5139
5143
|
H(() => {
|
|
@@ -5218,7 +5222,7 @@ const lo = ql($l, {
|
|
|
5218
5222
|
g(!1);
|
|
5219
5223
|
}
|
|
5220
5224
|
}
|
|
5221
|
-
const _e = (O, z) => `${
|
|
5225
|
+
const _e = (O, z) => `${_o(O, "USD")}/${z === "monthly" ? "mo" : "yr"}`, be = (O) => O > 0 ? `${O} days free trial` : "No trial period";
|
|
5222
5226
|
return /* @__PURE__ */ o(
|
|
5223
5227
|
ht,
|
|
5224
5228
|
{
|
|
@@ -5227,7 +5231,7 @@ const lo = ql($l, {
|
|
|
5227
5231
|
loginBackground: t?.loginBackground,
|
|
5228
5232
|
children: /* @__PURE__ */ T("form", { onSubmit: $(we), className: "dash-app-login-form", children: [
|
|
5229
5233
|
/* @__PURE__ */ T(ue, { sx: { display: "flex", alignItems: "center", mb: 4, mt: 2, gap: 1 }, children: [
|
|
5230
|
-
/* @__PURE__ */ o(
|
|
5234
|
+
/* @__PURE__ */ o(kr, { color: "primary", size: "large", onClick: () => A("/"), children: /* @__PURE__ */ o(Ge, {}) }),
|
|
5231
5235
|
/* @__PURE__ */ o(
|
|
5232
5236
|
q,
|
|
5233
5237
|
{
|
|
@@ -5245,19 +5249,19 @@ const lo = ql($l, {
|
|
|
5245
5249
|
{
|
|
5246
5250
|
fullWidth: !0,
|
|
5247
5251
|
variant: "outlined",
|
|
5248
|
-
startIcon: /* @__PURE__ */ o(
|
|
5252
|
+
startIcon: /* @__PURE__ */ o(si, {}),
|
|
5249
5253
|
onClick: fe,
|
|
5250
5254
|
disabled: D || !f,
|
|
5251
5255
|
size: "large",
|
|
5252
5256
|
children: D ? "Connecting..." : "Continue with Google"
|
|
5253
5257
|
}
|
|
5254
5258
|
) }),
|
|
5255
|
-
/* @__PURE__ */ o(
|
|
5259
|
+
/* @__PURE__ */ o(zo, { sx: { my: 3 }, children: /* @__PURE__ */ o(q, { variant: "body2", color: "textSecondary", children: "or sign up with email" }) })
|
|
5256
5260
|
] }),
|
|
5257
|
-
/* @__PURE__ */ o("div", { className: "dash-app-form-item", children: /* @__PURE__ */ T(
|
|
5258
|
-
/* @__PURE__ */ o(
|
|
5261
|
+
/* @__PURE__ */ o("div", { className: "dash-app-form-item", children: /* @__PURE__ */ T(Go, { component: "fieldset", fullWidth: !0, children: [
|
|
5262
|
+
/* @__PURE__ */ o(Wo, { component: "legend", children: /* @__PURE__ */ o(q, { variant: p ? "h6" : "h5", gutterBottom: !0, children: "Choose Your Plan" }) }),
|
|
5259
5263
|
b ? /* @__PURE__ */ o(ue, { display: "flex", justifyContent: "center", p: 2, children: /* @__PURE__ */ o(q, { children: "Loading plans..." }) }) : /* @__PURE__ */ o(Pe, { container: !0, spacing: 2, children: c.map((O) => /* @__PURE__ */ o(Pe, { size: { xs: 12, sm: 6, md: 4 }, children: /* @__PURE__ */ o(
|
|
5260
|
-
|
|
5264
|
+
Yo,
|
|
5261
5265
|
{
|
|
5262
5266
|
variant: f === O.id ? "outlined" : "elevation",
|
|
5263
5267
|
sx: {
|
|
@@ -5268,21 +5272,21 @@ const lo = ql($l, {
|
|
|
5268
5272
|
height: "100%"
|
|
5269
5273
|
},
|
|
5270
5274
|
onClick: () => K(O.id),
|
|
5271
|
-
children: /* @__PURE__ */ T(
|
|
5275
|
+
children: /* @__PURE__ */ T(Vo, { children: [
|
|
5272
5276
|
/* @__PURE__ */ T(ue, { display: "flex", alignItems: "center", mb: 2, children: [
|
|
5273
5277
|
/* @__PURE__ */ o(q, { variant: "h6", children: O.name }),
|
|
5274
|
-
f === O.id && /* @__PURE__ */ o(
|
|
5278
|
+
f === O.id && /* @__PURE__ */ o(ii, { color: "primary", sx: { ml: "auto" } })
|
|
5275
5279
|
] }),
|
|
5276
5280
|
/* @__PURE__ */ T(q, { variant: "h4", color: "primary", gutterBottom: !0, children: [
|
|
5277
5281
|
"$",
|
|
5278
5282
|
_e(O.price, O.billing_cycle)
|
|
5279
5283
|
] }),
|
|
5280
|
-
/* @__PURE__ */ o(
|
|
5284
|
+
/* @__PURE__ */ o(Qo, { label: be(O.trial_days), color: "secondary", size: "small", sx: { mb: 2 } }),
|
|
5281
5285
|
/* @__PURE__ */ o(q, { variant: "body2", color: "textSecondary", children: O.description })
|
|
5282
5286
|
] })
|
|
5283
5287
|
}
|
|
5284
5288
|
) }, O.id)) }),
|
|
5285
|
-
I.selected_plan_id && /* @__PURE__ */ o(
|
|
5289
|
+
I.selected_plan_id && /* @__PURE__ */ o(Da, { severity: "error", sx: { mt: 2 }, children: I.selected_plan_id.message })
|
|
5286
5290
|
] }) }),
|
|
5287
5291
|
/* @__PURE__ */ o(q, { variant: "h6", gutterBottom: !0, sx: { mt: 4 }, children: "Account Information" }),
|
|
5288
5292
|
/* @__PURE__ */ o("div", { className: "dash-app-form-item", children: /* @__PURE__ */ o(
|
|
@@ -5314,7 +5318,7 @@ const lo = ql($l, {
|
|
|
5314
5318
|
label: "RUT",
|
|
5315
5319
|
placeholder: "11.111.111-1",
|
|
5316
5320
|
fullWidth: !0,
|
|
5317
|
-
...R("public_id", { validate:
|
|
5321
|
+
...R("public_id", { validate: Oa }),
|
|
5318
5322
|
error: !!I.public_id,
|
|
5319
5323
|
helperText: I.public_id?.message
|
|
5320
5324
|
}
|
|
@@ -5382,7 +5386,7 @@ const lo = ql($l, {
|
|
|
5382
5386
|
}
|
|
5383
5387
|
) }),
|
|
5384
5388
|
n && /* @__PURE__ */ o("div", { className: "dash-app-form-item", children: /* @__PURE__ */ o(
|
|
5385
|
-
|
|
5389
|
+
co,
|
|
5386
5390
|
{
|
|
5387
5391
|
ref: i,
|
|
5388
5392
|
sitekey: Se.system.RECAPTCHA_TOKEN,
|
|
@@ -5404,8 +5408,8 @@ const lo = ql($l, {
|
|
|
5404
5408
|
] })
|
|
5405
5409
|
}
|
|
5406
5410
|
);
|
|
5407
|
-
},
|
|
5408
|
-
const { panelSettings: t } = e, r =
|
|
5411
|
+
}, Zu = (e) => {
|
|
5412
|
+
const { panelSettings: t } = e, r = go(), n = Te(), a = r.state;
|
|
5409
5413
|
return /* @__PURE__ */ o(
|
|
5410
5414
|
ht,
|
|
5411
5415
|
{
|
|
@@ -5423,7 +5427,7 @@ const lo = ql($l, {
|
|
|
5423
5427
|
},
|
|
5424
5428
|
children: [
|
|
5425
5429
|
/* @__PURE__ */ o(
|
|
5426
|
-
|
|
5430
|
+
li,
|
|
5427
5431
|
{
|
|
5428
5432
|
color: "success",
|
|
5429
5433
|
sx: { fontSize: 80, mb: 2 }
|
|
@@ -5448,7 +5452,7 @@ const lo = ql($l, {
|
|
|
5448
5452
|
my: 3
|
|
5449
5453
|
},
|
|
5450
5454
|
children: [
|
|
5451
|
-
/* @__PURE__ */ o(
|
|
5455
|
+
/* @__PURE__ */ o(ci, { sx: { mr: 1, color: "info.dark" } }),
|
|
5452
5456
|
/* @__PURE__ */ T(q, { variant: "body2", color: "info.dark", children: [
|
|
5453
5457
|
"We've sent a verification email to ",
|
|
5454
5458
|
/* @__PURE__ */ o("strong", { children: a?.email || "your email address" }),
|
|
@@ -5485,7 +5489,7 @@ const lo = ql($l, {
|
|
|
5485
5489
|
) })
|
|
5486
5490
|
}
|
|
5487
5491
|
);
|
|
5488
|
-
},
|
|
5492
|
+
}, Xu = ({
|
|
5489
5493
|
title: e = "Page Not Found",
|
|
5490
5494
|
message: t = "The page you are looking for does not exist or has been moved.",
|
|
5491
5495
|
showHomeButton: r = !0,
|
|
@@ -5503,7 +5507,7 @@ const lo = ql($l, {
|
|
|
5503
5507
|
},
|
|
5504
5508
|
children: [
|
|
5505
5509
|
/* @__PURE__ */ o(
|
|
5506
|
-
|
|
5510
|
+
ui,
|
|
5507
5511
|
{
|
|
5508
5512
|
color: "warning",
|
|
5509
5513
|
sx: { fontSize: 100, mb: 3 }
|
|
@@ -5517,7 +5521,7 @@ const lo = ql($l, {
|
|
|
5517
5521
|
ae,
|
|
5518
5522
|
{
|
|
5519
5523
|
variant: "outlined",
|
|
5520
|
-
startIcon: /* @__PURE__ */ o(
|
|
5524
|
+
startIcon: /* @__PURE__ */ o(jr, {}),
|
|
5521
5525
|
onClick: () => {
|
|
5522
5526
|
a(-1);
|
|
5523
5527
|
},
|
|
@@ -5540,7 +5544,7 @@ const lo = ql($l, {
|
|
|
5540
5544
|
]
|
|
5541
5545
|
}
|
|
5542
5546
|
) });
|
|
5543
|
-
},
|
|
5547
|
+
}, ed = ({
|
|
5544
5548
|
title: e = "Access Denied",
|
|
5545
5549
|
message: t = "You do not have permission to access this page.",
|
|
5546
5550
|
showHomeButton: r = !0,
|
|
@@ -5560,7 +5564,7 @@ const lo = ql($l, {
|
|
|
5560
5564
|
},
|
|
5561
5565
|
children: [
|
|
5562
5566
|
/* @__PURE__ */ o(
|
|
5563
|
-
|
|
5567
|
+
di,
|
|
5564
5568
|
{
|
|
5565
5569
|
color: "error",
|
|
5566
5570
|
sx: { fontSize: 100, mb: 3 }
|
|
@@ -5574,7 +5578,7 @@ const lo = ql($l, {
|
|
|
5574
5578
|
ae,
|
|
5575
5579
|
{
|
|
5576
5580
|
variant: "outlined",
|
|
5577
|
-
startIcon: /* @__PURE__ */ o(
|
|
5581
|
+
startIcon: /* @__PURE__ */ o(jr, {}),
|
|
5578
5582
|
onClick: () => {
|
|
5579
5583
|
s(-1);
|
|
5580
5584
|
},
|
|
@@ -5598,7 +5602,7 @@ const lo = ql($l, {
|
|
|
5598
5602
|
{
|
|
5599
5603
|
variant: "outlined",
|
|
5600
5604
|
color: "primary",
|
|
5601
|
-
startIcon: /* @__PURE__ */ o(
|
|
5605
|
+
startIcon: /* @__PURE__ */ o(fi, {}),
|
|
5602
5606
|
onClick: () => {
|
|
5603
5607
|
s("/login");
|
|
5604
5608
|
},
|
|
@@ -5609,7 +5613,7 @@ const lo = ql($l, {
|
|
|
5609
5613
|
]
|
|
5610
5614
|
}
|
|
5611
5615
|
) });
|
|
5612
|
-
},
|
|
5616
|
+
}, td = ({
|
|
5613
5617
|
title: e = "Server Error",
|
|
5614
5618
|
message: t = "Something went wrong on our end. Please try again later.",
|
|
5615
5619
|
showHomeButton: r = !0,
|
|
@@ -5628,7 +5632,7 @@ const lo = ql($l, {
|
|
|
5628
5632
|
},
|
|
5629
5633
|
children: [
|
|
5630
5634
|
/* @__PURE__ */ o(
|
|
5631
|
-
|
|
5635
|
+
pi,
|
|
5632
5636
|
{
|
|
5633
5637
|
color: "error",
|
|
5634
5638
|
sx: { fontSize: 100, mb: 3 }
|
|
@@ -5643,7 +5647,7 @@ const lo = ql($l, {
|
|
|
5643
5647
|
{
|
|
5644
5648
|
variant: "contained",
|
|
5645
5649
|
color: "primary",
|
|
5646
|
-
startIcon: /* @__PURE__ */ o(
|
|
5650
|
+
startIcon: /* @__PURE__ */ o(hi, {}),
|
|
5647
5651
|
onClick: () => {
|
|
5648
5652
|
a ? a() : window.location.reload();
|
|
5649
5653
|
},
|
|
@@ -5665,7 +5669,7 @@ const lo = ql($l, {
|
|
|
5665
5669
|
]
|
|
5666
5670
|
}
|
|
5667
5671
|
) });
|
|
5668
|
-
},
|
|
5672
|
+
}, uo = ({
|
|
5669
5673
|
title: e = "Static Page",
|
|
5670
5674
|
content: t,
|
|
5671
5675
|
showBackButton: r = !0,
|
|
@@ -5685,7 +5689,7 @@ const lo = ql($l, {
|
|
|
5685
5689
|
ae,
|
|
5686
5690
|
{
|
|
5687
5691
|
variant: "text",
|
|
5688
|
-
startIcon: /* @__PURE__ */ o(
|
|
5692
|
+
startIcon: /* @__PURE__ */ o(jr, {}),
|
|
5689
5693
|
onClick: () => {
|
|
5690
5694
|
a(-1);
|
|
5691
5695
|
},
|
|
@@ -5704,12 +5708,12 @@ const lo = ql($l, {
|
|
|
5704
5708
|
]
|
|
5705
5709
|
}
|
|
5706
5710
|
) });
|
|
5707
|
-
},
|
|
5711
|
+
}, rd = ({
|
|
5708
5712
|
companyName: e = "Our Company",
|
|
5709
5713
|
effectiveDate: t = (/* @__PURE__ */ new Date()).toLocaleDateString(),
|
|
5710
5714
|
content: r
|
|
5711
5715
|
}) => /* @__PURE__ */ o(
|
|
5712
|
-
|
|
5716
|
+
uo,
|
|
5713
5717
|
{
|
|
5714
5718
|
title: "Terms of Service",
|
|
5715
5719
|
content: r || /* @__PURE__ */ T("div", { children: [
|
|
@@ -5746,7 +5750,7 @@ const lo = ql($l, {
|
|
|
5746
5750
|
/* @__PURE__ */ o("p", { children: "If you have any questions about these Terms, please contact us." })
|
|
5747
5751
|
] })
|
|
5748
5752
|
}
|
|
5749
|
-
),
|
|
5753
|
+
), nd = ({
|
|
5750
5754
|
companyName: e = "Our Company",
|
|
5751
5755
|
effectiveDate: t = (/* @__PURE__ */ new Date()).toLocaleDateString(),
|
|
5752
5756
|
contactEmail: r = "privacy@example.com",
|
|
@@ -5781,13 +5785,13 @@ const lo = ql($l, {
|
|
|
5781
5785
|
] })
|
|
5782
5786
|
] });
|
|
5783
5787
|
return /* @__PURE__ */ o(
|
|
5784
|
-
|
|
5788
|
+
uo,
|
|
5785
5789
|
{
|
|
5786
5790
|
title: "Privacy Policy",
|
|
5787
5791
|
content: n || a
|
|
5788
5792
|
}
|
|
5789
5793
|
);
|
|
5790
|
-
},
|
|
5794
|
+
}, ad = [
|
|
5791
5795
|
{
|
|
5792
5796
|
id: "name",
|
|
5793
5797
|
label: "Name",
|
|
@@ -5815,9 +5819,9 @@ const lo = ql($l, {
|
|
|
5815
5819
|
],
|
|
5816
5820
|
optionText: "status",
|
|
5817
5821
|
alwaysOn: !0,
|
|
5818
|
-
referenceComponent:
|
|
5822
|
+
referenceComponent: Sa
|
|
5819
5823
|
}
|
|
5820
|
-
],
|
|
5824
|
+
], od = [
|
|
5821
5825
|
{
|
|
5822
5826
|
attribute: "id",
|
|
5823
5827
|
label: "ID",
|
|
@@ -5826,7 +5830,7 @@ const lo = ql($l, {
|
|
|
5826
5830
|
inEdit: !1,
|
|
5827
5831
|
inCreate: !1
|
|
5828
5832
|
}
|
|
5829
|
-
],
|
|
5833
|
+
], id = [
|
|
5830
5834
|
{
|
|
5831
5835
|
tab: "Details",
|
|
5832
5836
|
attribute: "name",
|
|
@@ -5847,127 +5851,127 @@ const lo = ql($l, {
|
|
|
5847
5851
|
}
|
|
5848
5852
|
];
|
|
5849
5853
|
export {
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5854
|
+
vd as ACTION_UPDATE_AUTH,
|
|
5855
|
+
Ad as AppLoadingFallback,
|
|
5856
|
+
hd as DASHAuthenticationService,
|
|
5857
|
+
Eu as DASH_DEFAULT_INITIAL_APP_STATE,
|
|
5858
|
+
yd as DASH_REDUX_ACTIONS,
|
|
5859
|
+
Vc as DashApp,
|
|
5860
|
+
Bi as DashAppLoader,
|
|
5861
|
+
Vc as DashAppSimple,
|
|
5862
|
+
tu as DashDefaultErrorBoundary,
|
|
5863
|
+
Fi as DashDefaultLoader,
|
|
5864
|
+
Rl as DashDefaultLogin,
|
|
5865
|
+
Xu as DashDefaultNotFound,
|
|
5866
|
+
Xu as DashDefaultNotFoundPage,
|
|
5867
|
+
nd as DashDefaultPrivacyPage,
|
|
5864
5868
|
$e as DashDefaultPrivateApp,
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5869
|
+
wi as DashDefaultPublicApp,
|
|
5870
|
+
nu as DashDefaultReactAdminNotification,
|
|
5871
|
+
Ku as DashDefaultRegister,
|
|
5872
|
+
Ku as DashDefaultRegisterPage,
|
|
5873
|
+
mu as DashDefaultRouterWrapper,
|
|
5874
|
+
td as DashDefaultServerError,
|
|
5875
|
+
td as DashDefaultServerErrorPage,
|
|
5876
|
+
Ju as DashDefaultSignUp,
|
|
5877
|
+
Ju as DashDefaultSignUpPage,
|
|
5878
|
+
Zu as DashDefaultSignUpSuccess,
|
|
5879
|
+
Zu as DashDefaultSignUpSuccessPage,
|
|
5880
|
+
uo as DashDefaultStaticPage,
|
|
5881
|
+
rd as DashDefaultTermsPage,
|
|
5882
|
+
ed as DashDefaultUnauthorized,
|
|
5883
|
+
ed as DashDefaultUnauthorizedPage,
|
|
5884
|
+
Uu as DashDefaultWSMessagesManager,
|
|
5885
|
+
cd as DashIPCMessageBrokerContext,
|
|
5886
|
+
ud as DashIPCMessageBrokerProvider,
|
|
5887
|
+
Zc as DashPrivateApp,
|
|
5888
|
+
Vi as DashPrivateAppWithManifest,
|
|
5889
|
+
qi as DefaultErrorFallback,
|
|
5890
|
+
Kc as DefaultLoadingFallback,
|
|
5891
|
+
Wi as clearResourceCache,
|
|
5892
|
+
Jc as createDashAppLoader,
|
|
5893
|
+
Fu as createDashDefaultDomainAppLayout,
|
|
5894
|
+
Mu as createDashDefaultDomainAppLayoutWithIPC,
|
|
5895
|
+
su as createDashDefaultI18nProvider,
|
|
5896
|
+
Ns as createDashDefaultI18nProviderAsync,
|
|
5897
|
+
uu as createDashDefaultI18nProviderFromAppState,
|
|
5898
|
+
lu as createDashDefaultI18nProviderWithSettings,
|
|
5899
|
+
pl as createDashDefaultQueryClient,
|
|
5900
|
+
yu as createDashDefaultRouterWrapper,
|
|
5901
|
+
xu as dashAuthProvider,
|
|
5902
|
+
Cu as dashDataProvider,
|
|
5903
|
+
Ya as dashDefaultAppSettings,
|
|
5904
|
+
xu as dashDefaultAuthProvider,
|
|
5905
|
+
hl as dashDefaultAuthProviderConfig,
|
|
5906
|
+
ml as dashDefaultAuthProviderOverrides,
|
|
5907
|
+
rn as dashDefaultAutoAdminComponents,
|
|
5904
5908
|
gt as dashDefaultAvailableLocales,
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5909
|
+
eu as dashDefaultBootstrapApp,
|
|
5910
|
+
Wu as dashDefaultBuildQueryString,
|
|
5911
|
+
Cu as dashDefaultDataProvider,
|
|
5912
|
+
yl as dashDefaultDataProviderConfig,
|
|
5913
|
+
vl as dashDefaultDataProviderExtensions,
|
|
5914
|
+
gl as dashDefaultDataProviderOverrides,
|
|
5915
|
+
ad as dashDefaultDemoFilters,
|
|
5916
|
+
fl as dashDefaultDevQueryClientConfig,
|
|
5917
|
+
Iu as dashDefaultExtendedThemeOptions,
|
|
5918
|
+
_u as dashDefaultGetCurrentUser,
|
|
5919
|
+
Hu as dashDefaultGetResourceConfig,
|
|
5920
|
+
Ou as dashDefaultGetToken,
|
|
5921
|
+
Xc as dashDefaultInitializeApp,
|
|
5922
|
+
Tu as dashDefaultIsAuthenticated,
|
|
5923
|
+
Yu as dashDefaultIsFormDataResource,
|
|
5920
5924
|
Ee as dashDefaultLayoutSettings,
|
|
5921
5925
|
vt as dashDefaultLocale,
|
|
5922
5926
|
Oe as dashDefaultLogoutFromStorage,
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5927
|
+
au as dashDefaultNotificationConfig,
|
|
5928
|
+
Lu as dashDefaultPalette,
|
|
5929
|
+
Qc as dashDefaultPrivateRoutes,
|
|
5930
|
+
Gu as dashDefaultProcessFormData,
|
|
5931
|
+
zu as dashDefaultProcessPostData,
|
|
5932
|
+
xa as dashDefaultPublicRoutes,
|
|
5933
|
+
Du as dashDefaultQueryClient,
|
|
5934
|
+
to as dashDefaultQueryClientConfig,
|
|
5935
|
+
Ru as dashDefaultResourceIcons,
|
|
5936
|
+
od as dashDefaultSchema,
|
|
5937
|
+
Bu as dashDefaultSetResourceConfigs,
|
|
5938
|
+
hu as dashDefaultSharedRoutes,
|
|
5939
|
+
Xi as dashDefaultStaticComponents,
|
|
5940
|
+
id as dashDefaultTodoSchema,
|
|
5937
5941
|
ge as dashDefaultTranslations,
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5942
|
+
Nu as dashDefaultTypography,
|
|
5943
|
+
Bi as default,
|
|
5944
|
+
Qc as defaultPrivateRoutes,
|
|
5945
|
+
xa as defaultPublicRoutes,
|
|
5946
|
+
Va as getDashDefaultAppCommon,
|
|
5947
|
+
Pu as getDashDefaultAppPath,
|
|
5948
|
+
bu as getDashDefaultDarkTheme,
|
|
5949
|
+
wu as getDashDefaultInitialAppState,
|
|
5950
|
+
vu as getDashDefaultLightTheme,
|
|
5951
|
+
Su as getDashDefaultPanelImages,
|
|
5952
|
+
Dr as getDashDefaultRouterEnvVars,
|
|
5953
|
+
ru as getDashDefaultStaticComponents,
|
|
5954
|
+
gu as getDashDefaultTheme,
|
|
5955
|
+
Au as getDashDefaultThemeType,
|
|
5956
|
+
zi as isResourceArray,
|
|
5957
|
+
Hi as isResourceManifest,
|
|
5958
|
+
Ki as loadDashDefaultAutoAdminComponents,
|
|
5959
|
+
Wa as loadDashDefaultTranslationsAsync,
|
|
5960
|
+
Gi as loadResourcesFromManifest,
|
|
5961
|
+
wl as playDashDefaultDigitalWatchAlarm,
|
|
5962
|
+
Vu as playDashDefaultNotificationSound,
|
|
5963
|
+
Qu as processDashDefaultNotification,
|
|
5964
|
+
dd as requestDashDefaultNotificationPermission,
|
|
5965
|
+
ju as setupDashDefaultIPCListeners,
|
|
5966
|
+
qu as useDashDefaultDomainAppLayout,
|
|
5967
|
+
ku as useDashDefaultDomainAppLayoutWithIPC,
|
|
5968
|
+
cu as useDashDefaultI18nProvider,
|
|
5969
|
+
$u as useDashDefaultIPCListeners,
|
|
5970
|
+
fu as useDashDefaultLazyAutoAdminComponents,
|
|
5971
|
+
du as useDashDefaultLazyI18nProvider,
|
|
5972
|
+
pu as useDashDefaultLazyResources,
|
|
5973
|
+
ou as useDashDefaultMountTracker,
|
|
5974
|
+
iu as useDashDefaultRoutePath,
|
|
5975
|
+
fd as useDashIPCMessageBroker,
|
|
5976
|
+
Yi as useDashResourceManifest
|
|
5973
5977
|
};
|