@lion-npm/ui 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2564 -0
- package/dist/style.css +2 -0
- package/package.json +20 -2
- package/.oxlintrc.json +0 -8
- package/AGENTS.md +0 -0
- package/Dockerfile +0 -7
- package/compose.yml +0 -14
- package/index.html +0 -15
- package/src/App.tsx +0 -84
- package/src/assets/css/buttons/buttons-android.css +0 -251
- package/src/assets/css/buttons/buttons-ios.css +0 -213
- package/src/assets/css/buttons/buttons-web.css +0 -138
- package/src/assets/css/custom.css +0 -8
- package/src/assets/css/index.css +0 -60
- package/src/assets/css/inputs/inputs-android.css +0 -259
- package/src/assets/css/inputs/inputs-bootstrap.css +0 -74
- package/src/assets/css/inputs/inputs-ios.css +0 -268
- package/src/assets/css/loadings/loading-bar.css +0 -86
- package/src/assets/css/modals/modals.css +0 -236
- package/src/components/buttons/AndroidButton.tsx +0 -43
- package/src/components/buttons/BootstrapButton.tsx +0 -50
- package/src/components/buttons/IOSButton.tsx +0 -42
- package/src/components/buttons/LionButton.tsx +0 -73
- package/src/components/inputs/AndroidInput.tsx +0 -158
- package/src/components/inputs/BootstrapInput.tsx +0 -106
- package/src/components/inputs/IOSInput.tsx +0 -163
- package/src/components/inputs/LionInput.tsx +0 -81
- package/src/components/loadings/LoadingBar.tsx +0 -21
- package/src/components/modals/LionModal.tsx +0 -155
- package/src/context/LionUIComponentsContext.tsx +0 -73
- package/src/features/Header.tsx +0 -83
- package/src/features/VariantList.tsx +0 -19
- package/src/features/buttons/ButtonsSection.tsx +0 -7
- package/src/features/buttons/components/ButtonsAndroidSection.tsx +0 -79
- package/src/features/buttons/components/ButtonsBootstrapSection.tsx +0 -77
- package/src/features/buttons/components/ButtonsCustomSection.tsx +0 -234
- package/src/features/buttons/components/ButtonsIOSSection.tsx +0 -78
- package/src/features/inputs/InputsSection.tsx +0 -7
- package/src/features/inputs/components/InputsAndroidSection.tsx +0 -155
- package/src/features/inputs/components/InputsBootstrapSection.tsx +0 -154
- package/src/features/inputs/components/InputsCustomSection.tsx +0 -234
- package/src/features/inputs/components/InputsIOSSection.tsx +0 -156
- package/src/features/loadings/LoadingSection.tsx +0 -5
- package/src/features/loadings/components/LoadingBarSection.tsx +0 -74
- package/src/features/modals/ModalsSection.tsx +0 -5
- package/src/features/modals/components/ModalsAndroidSection.tsx +0 -108
- package/src/features/modals/components/ModalsDefaultForm.tsx +0 -31
- package/src/features/modals/components/ModalsDefaultInput.tsx +0 -22
- package/src/features/modals/components/ModalsIOSSection.tsx +0 -106
- package/src/features/modals/components/ModalsWebSection.tsx +0 -104
- package/src/index.ts +0 -27
- package/src/interfaces/LionUIComponentsProviderProps.tsx +0 -7
- package/src/interfaces/LionUIContextProps.tsx +0 -6
- package/src/interfaces/LionUIState.tsx +0 -13
- package/src/main.tsx +0 -9
- package/src/types/Android/AndroidInputShapeTypes.tsx +0 -7
- package/src/types/Android/AndroidInputStyleTypes.tsx +0 -7
- package/src/types/Android/AndroidShapeTypes.tsx +0 -6
- package/src/types/Android/AndroidStyleTypes.tsx +0 -9
- package/src/types/ButtonTypes.tsx +0 -9
- package/src/types/IOS/IOSInputShapeTypes.tsx +0 -9
- package/src/types/IOS/IOSInputStyleTypes.tsx +0 -11
- package/src/types/IOS/IOSShapeTypes.tsx +0 -7
- package/src/types/IOS/IOSStyleTypes.tsx +0 -9
- package/src/types/InputTypes.tsx +0 -13
- package/src/types/PlatformTypes.tsx +0 -9
- package/src/types/SizeTypes.tsx +0 -11
- package/src/types/VariantTypes.tsx +0 -19
- package/src/types/Web/BootstrapInputShapeTypes.tsx +0 -9
- package/src/types/Web/BootstrapInputStyleTypes.tsx +0 -8
- package/src/types/Web/BootstrapShapeTypes.tsx +0 -8
- package/src/types/Web/BootstrapStyleTypes.tsx +0 -7
- package/tsconfig.app.json +0 -26
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -23
- package/vite.config.ts +0 -30
- /package/{public → dist}/favicon.svg +0 -0
- /package/{public → dist}/icons.svg +0 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,2564 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import t, { cloneElement as n, createContext as r, forwardRef as i, useCallback as a, useContext as o, useEffect as s, useId as c, useImperativeHandle as l, useLayoutEffect as u, useMemo as d, useRef as f, useState as p } from "react";
|
|
3
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
4
|
+
import _ from "react-dom";
|
|
5
|
+
//#region \0rolldown/runtime.js
|
|
6
|
+
var v = Object.create, y = Object.defineProperty, b = Object.getOwnPropertyDescriptor, x = Object.getOwnPropertyNames, S = Object.getPrototypeOf, C = Object.prototype.hasOwnProperty, w = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), T = (e, t, n, r) => {
|
|
7
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = x(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !C.call(e, s) && s !== n && y(e, s, {
|
|
8
|
+
get: ((e) => t[e]).bind(null, s),
|
|
9
|
+
enumerable: !(r = b(t, s)) || r.enumerable
|
|
10
|
+
});
|
|
11
|
+
return e;
|
|
12
|
+
}, E = (e, t, n) => (n = e == null ? {} : v(S(e)), T(t || !e || !e.__esModule ? y(n, "default", {
|
|
13
|
+
value: e,
|
|
14
|
+
enumerable: !0
|
|
15
|
+
}) : n, e)), D;
|
|
16
|
+
(function(e) {
|
|
17
|
+
e.Unimplemented = "UNIMPLEMENTED", e.Unavailable = "UNAVAILABLE";
|
|
18
|
+
})(D ||= {});
|
|
19
|
+
var O = class extends Error {
|
|
20
|
+
constructor(e, t, n) {
|
|
21
|
+
super(e), this.message = e, this.code = t, this.data = n;
|
|
22
|
+
}
|
|
23
|
+
}, k = (e) => e?.androidBridge ? "android" : e?.webkit?.messageHandlers?.bridge ? "ios" : "web", A = (e) => {
|
|
24
|
+
let t = e.CapacitorCustomPlatform || null, n = e.Capacitor || {}, r = n.Plugins = n.Plugins || {}, i = () => t === null ? k(e) : t.name, a = () => i() !== "web", o = (e) => !!(l.get(e)?.platforms.has(i()) || s(e)), s = (e) => n.PluginHeaders?.find((t) => t.name === e), c = (t) => e.console.error(t), l = /* @__PURE__ */ new Map();
|
|
25
|
+
return n.convertFileSrc ||= (e) => e, n.getPlatform = i, n.handleError = c, n.isNativePlatform = a, n.isPluginAvailable = o, n.registerPlugin = (e, a = {}) => {
|
|
26
|
+
let o = l.get(e);
|
|
27
|
+
if (o) return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`), o.proxy;
|
|
28
|
+
let c = i(), u = s(e), d, f = async () => (!d && c in a ? d = d = typeof a[c] == "function" ? await a[c]() : a[c] : t !== null && !d && "web" in a && (d = d = typeof a.web == "function" ? await a.web() : a.web), d), p = (t, r) => {
|
|
29
|
+
if (u) {
|
|
30
|
+
let i = u?.methods.find((e) => r === e.name);
|
|
31
|
+
if (i) return i.rtype === "promise" ? (t) => n.nativePromise(e, r.toString(), t) : (t, i) => n.nativeCallback(e, r.toString(), t, i);
|
|
32
|
+
if (t) return t[r]?.bind(t);
|
|
33
|
+
} else if (t) return t[r]?.bind(t);
|
|
34
|
+
else throw new O(`"${e}" plugin is not implemented on ${c}`, D.Unimplemented);
|
|
35
|
+
}, m = (t) => {
|
|
36
|
+
let n, r = (...r) => {
|
|
37
|
+
let i = f().then((i) => {
|
|
38
|
+
let a = p(i, t);
|
|
39
|
+
if (a) {
|
|
40
|
+
let e = a(...r);
|
|
41
|
+
return n = e?.remove, e;
|
|
42
|
+
} else throw new O(`"${e}.${t}()" is not implemented on ${c}`, D.Unimplemented);
|
|
43
|
+
});
|
|
44
|
+
return t === "addListener" && (i.remove = async () => n()), i;
|
|
45
|
+
};
|
|
46
|
+
return r.toString = () => `${t.toString()}() { [capacitor code] }`, Object.defineProperty(r, "name", {
|
|
47
|
+
value: t,
|
|
48
|
+
writable: !1,
|
|
49
|
+
configurable: !1
|
|
50
|
+
}), r;
|
|
51
|
+
}, h = m("addListener"), g = m("removeListener"), _ = (e, t) => {
|
|
52
|
+
let n = h({ eventName: e }, t), r = async () => {
|
|
53
|
+
let r = await n;
|
|
54
|
+
g({
|
|
55
|
+
eventName: e,
|
|
56
|
+
callbackId: r
|
|
57
|
+
}, t);
|
|
58
|
+
}, i = new Promise((e) => n.then(() => e({ remove: r })));
|
|
59
|
+
return i.remove = async () => {
|
|
60
|
+
console.warn("Using addListener() without 'await' is deprecated."), await r();
|
|
61
|
+
}, i;
|
|
62
|
+
}, v = new Proxy({}, { get(e, t) {
|
|
63
|
+
switch (t) {
|
|
64
|
+
case "$$typeof": return;
|
|
65
|
+
case "toJSON": return () => ({});
|
|
66
|
+
case "addListener": return u ? _ : h;
|
|
67
|
+
case "removeListener": return g;
|
|
68
|
+
default: return m(t);
|
|
69
|
+
}
|
|
70
|
+
} });
|
|
71
|
+
return r[e] = v, l.set(e, {
|
|
72
|
+
name: e,
|
|
73
|
+
proxy: v,
|
|
74
|
+
platforms: /* @__PURE__ */ new Set([...Object.keys(a), ...u ? [c] : []])
|
|
75
|
+
}), v;
|
|
76
|
+
}, n.Exception = O, n.DEBUG = !!n.DEBUG, n.isLoggingEnabled = !!n.isLoggingEnabled, n;
|
|
77
|
+
}, j = /*#__PURE__*/ ((e) => e.Capacitor = A(e))(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), M = j.registerPlugin, N = class {
|
|
78
|
+
constructor() {
|
|
79
|
+
this.listeners = {}, this.retainedEventArguments = {}, this.windowListeners = {};
|
|
80
|
+
}
|
|
81
|
+
addListener(e, t) {
|
|
82
|
+
let n = !1;
|
|
83
|
+
this.listeners[e] || (this.listeners[e] = [], n = !0), this.listeners[e].push(t);
|
|
84
|
+
let r = this.windowListeners[e];
|
|
85
|
+
return r && !r.registered && this.addWindowListener(r), n && this.sendRetainedArgumentsForEvent(e), Promise.resolve({ remove: async () => this.removeListener(e, t) });
|
|
86
|
+
}
|
|
87
|
+
async removeAllListeners() {
|
|
88
|
+
this.listeners = {};
|
|
89
|
+
for (let e in this.windowListeners) this.removeWindowListener(this.windowListeners[e]);
|
|
90
|
+
this.windowListeners = {};
|
|
91
|
+
}
|
|
92
|
+
notifyListeners(e, t, n) {
|
|
93
|
+
let r = this.listeners[e];
|
|
94
|
+
if (!r) {
|
|
95
|
+
if (n) {
|
|
96
|
+
let n = this.retainedEventArguments[e];
|
|
97
|
+
n ||= [], n.push(t), this.retainedEventArguments[e] = n;
|
|
98
|
+
}
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
r.forEach((e) => e(t));
|
|
102
|
+
}
|
|
103
|
+
hasListeners(e) {
|
|
104
|
+
return !!this.listeners[e]?.length;
|
|
105
|
+
}
|
|
106
|
+
registerWindowListener(e, t) {
|
|
107
|
+
this.windowListeners[t] = {
|
|
108
|
+
registered: !1,
|
|
109
|
+
windowEventName: e,
|
|
110
|
+
pluginEventName: t,
|
|
111
|
+
handler: (e) => {
|
|
112
|
+
this.notifyListeners(t, e);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
unimplemented(e = "not implemented") {
|
|
117
|
+
return new j.Exception(e, D.Unimplemented);
|
|
118
|
+
}
|
|
119
|
+
unavailable(e = "not available") {
|
|
120
|
+
return new j.Exception(e, D.Unavailable);
|
|
121
|
+
}
|
|
122
|
+
async removeListener(e, t) {
|
|
123
|
+
let n = this.listeners[e];
|
|
124
|
+
if (!n) return;
|
|
125
|
+
let r = n.indexOf(t);
|
|
126
|
+
r !== -1 && this.listeners[e].splice(r, 1), this.listeners[e].length || this.removeWindowListener(this.windowListeners[e]);
|
|
127
|
+
}
|
|
128
|
+
addWindowListener(e) {
|
|
129
|
+
window.addEventListener(e.windowEventName, e.handler), e.registered = !0;
|
|
130
|
+
}
|
|
131
|
+
removeWindowListener(e) {
|
|
132
|
+
e && (window.removeEventListener(e.windowEventName, e.handler), e.registered = !1);
|
|
133
|
+
}
|
|
134
|
+
sendRetainedArgumentsForEvent(e) {
|
|
135
|
+
let t = this.retainedEventArguments[e];
|
|
136
|
+
t && (delete this.retainedEventArguments[e], t.forEach((t) => {
|
|
137
|
+
this.notifyListeners(e, t);
|
|
138
|
+
}));
|
|
139
|
+
}
|
|
140
|
+
}, P = (e) => encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), F = (e) => e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent), I = class extends N {
|
|
141
|
+
async getCookies() {
|
|
142
|
+
let e = document.cookie, t = {};
|
|
143
|
+
return e.split(";").forEach((e) => {
|
|
144
|
+
if (e.length <= 0) return;
|
|
145
|
+
let [n, r] = e.replace(/=/, "CAP_COOKIE").split("CAP_COOKIE");
|
|
146
|
+
n = F(n).trim(), r = F(r).trim(), t[n] = r;
|
|
147
|
+
}), t;
|
|
148
|
+
}
|
|
149
|
+
async setCookie(e) {
|
|
150
|
+
try {
|
|
151
|
+
let t = P(e.key), n = P(e.value), r = e.expires ? `; expires=${e.expires.replace("expires=", "")}` : "", i = (e.path || "/").replace("path=", ""), a = e.url != null && e.url.length > 0 ? `domain=${e.url}` : "";
|
|
152
|
+
document.cookie = `${t}=${n || ""}${r}; path=${i}; ${a};`;
|
|
153
|
+
} catch (e) {
|
|
154
|
+
return Promise.reject(e);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
async deleteCookie(e) {
|
|
158
|
+
try {
|
|
159
|
+
document.cookie = `${e.key}=; Max-Age=0`;
|
|
160
|
+
} catch (e) {
|
|
161
|
+
return Promise.reject(e);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
async clearCookies() {
|
|
165
|
+
try {
|
|
166
|
+
let e = document.cookie.split(";") || [];
|
|
167
|
+
for (let t of e) document.cookie = t.replace(/^ +/, "").replace(/=.*/, `=;expires=${(/* @__PURE__ */ new Date()).toUTCString()};path=/`);
|
|
168
|
+
} catch (e) {
|
|
169
|
+
return Promise.reject(e);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
async clearAllCookies() {
|
|
173
|
+
try {
|
|
174
|
+
await this.clearCookies();
|
|
175
|
+
} catch (e) {
|
|
176
|
+
return Promise.reject(e);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
M("CapacitorCookies", { web: () => new I() });
|
|
181
|
+
var ee = async (e) => new Promise((t, n) => {
|
|
182
|
+
let r = new FileReader();
|
|
183
|
+
r.onload = () => {
|
|
184
|
+
let e = r.result;
|
|
185
|
+
t(e.indexOf(",") >= 0 ? e.split(",")[1] : e);
|
|
186
|
+
}, r.onerror = (e) => n(e), r.readAsDataURL(e);
|
|
187
|
+
}), te = (e = {}) => {
|
|
188
|
+
let t = Object.keys(e);
|
|
189
|
+
return Object.keys(e).map((e) => e.toLocaleLowerCase()).reduce((n, r, i) => (n[r] = e[t[i]], n), {});
|
|
190
|
+
}, ne = (e, t = !0) => e ? Object.entries(e).reduce((e, n) => {
|
|
191
|
+
let [r, i] = n, a, o;
|
|
192
|
+
return Array.isArray(i) ? (o = "", i.forEach((e) => {
|
|
193
|
+
a = t ? encodeURIComponent(e) : e, o += `${r}=${a}&`;
|
|
194
|
+
}), o.slice(0, -1)) : (a = t ? encodeURIComponent(i) : i, o = `${r}=${a}`), `${e}&${o}`;
|
|
195
|
+
}, "").substr(1) : null, re = (e, t = {}) => {
|
|
196
|
+
let n = Object.assign({
|
|
197
|
+
method: e.method || "GET",
|
|
198
|
+
headers: e.headers
|
|
199
|
+
}, t), r = te(e.headers)["content-type"] || "";
|
|
200
|
+
if (typeof e.data == "string") n.body = e.data;
|
|
201
|
+
else if (r.includes("application/x-www-form-urlencoded")) {
|
|
202
|
+
let t = new URLSearchParams();
|
|
203
|
+
for (let [n, r] of Object.entries(e.data || {})) t.set(n, r);
|
|
204
|
+
n.body = t.toString();
|
|
205
|
+
} else if (r.includes("multipart/form-data") || e.data instanceof FormData) {
|
|
206
|
+
let t = new FormData();
|
|
207
|
+
if (e.data instanceof FormData) e.data.forEach((e, n) => {
|
|
208
|
+
t.append(n, e);
|
|
209
|
+
});
|
|
210
|
+
else for (let n of Object.keys(e.data)) t.append(n, e.data[n]);
|
|
211
|
+
n.body = t;
|
|
212
|
+
let r = new Headers(n.headers);
|
|
213
|
+
r.delete("content-type"), n.headers = r;
|
|
214
|
+
} else (r.includes("application/json") || typeof e.data == "object") && (n.body = JSON.stringify(e.data));
|
|
215
|
+
return n;
|
|
216
|
+
}, L = class extends N {
|
|
217
|
+
async request(e) {
|
|
218
|
+
let t = re(e, e.webFetchExtra), n = ne(e.params, e.shouldEncodeUrlParams), r = n ? `${e.url}?${n}` : e.url, i = await fetch(r, t), a = i.headers.get("content-type") || "", { responseType: o = "text" } = i.ok ? e : {};
|
|
219
|
+
a.includes("application/json") && (o = "json");
|
|
220
|
+
let s, c;
|
|
221
|
+
switch (o) {
|
|
222
|
+
case "arraybuffer":
|
|
223
|
+
case "blob":
|
|
224
|
+
c = await i.blob(), s = await ee(c);
|
|
225
|
+
break;
|
|
226
|
+
case "json":
|
|
227
|
+
s = await i.json();
|
|
228
|
+
break;
|
|
229
|
+
default: s = await i.text();
|
|
230
|
+
}
|
|
231
|
+
let l = {};
|
|
232
|
+
return i.headers.forEach((e, t) => {
|
|
233
|
+
l[t] = e;
|
|
234
|
+
}), {
|
|
235
|
+
data: s,
|
|
236
|
+
headers: l,
|
|
237
|
+
status: i.status,
|
|
238
|
+
url: i.url
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
async get(e) {
|
|
242
|
+
return this.request(Object.assign(Object.assign({}, e), { method: "GET" }));
|
|
243
|
+
}
|
|
244
|
+
async post(e) {
|
|
245
|
+
return this.request(Object.assign(Object.assign({}, e), { method: "POST" }));
|
|
246
|
+
}
|
|
247
|
+
async put(e) {
|
|
248
|
+
return this.request(Object.assign(Object.assign({}, e), { method: "PUT" }));
|
|
249
|
+
}
|
|
250
|
+
async patch(e) {
|
|
251
|
+
return this.request(Object.assign(Object.assign({}, e), { method: "PATCH" }));
|
|
252
|
+
}
|
|
253
|
+
async delete(e) {
|
|
254
|
+
return this.request(Object.assign(Object.assign({}, e), { method: "DELETE" }));
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
M("CapacitorHttp", { web: () => new L() });
|
|
258
|
+
var R;
|
|
259
|
+
(function(e) {
|
|
260
|
+
e.Dark = "DARK", e.Light = "LIGHT", e.Default = "DEFAULT";
|
|
261
|
+
})(R ||= {});
|
|
262
|
+
var z;
|
|
263
|
+
(function(e) {
|
|
264
|
+
e.StatusBar = "StatusBar", e.NavigationBar = "NavigationBar";
|
|
265
|
+
})(z ||= {});
|
|
266
|
+
var B = class extends N {
|
|
267
|
+
async setStyle() {
|
|
268
|
+
this.unavailable("not available for web");
|
|
269
|
+
}
|
|
270
|
+
async setAnimation() {
|
|
271
|
+
this.unavailable("not available for web");
|
|
272
|
+
}
|
|
273
|
+
async show() {
|
|
274
|
+
this.unavailable("not available for web");
|
|
275
|
+
}
|
|
276
|
+
async hide() {
|
|
277
|
+
this.unavailable("not available for web");
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
M("SystemBars", { web: () => new B() });
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region src/types/PlatformTypes.tsx
|
|
283
|
+
var V = {
|
|
284
|
+
WEB: "web",
|
|
285
|
+
ANDROID: "android",
|
|
286
|
+
IOS: "ios",
|
|
287
|
+
DESKTOP: "desktop"
|
|
288
|
+
}, H = r(void 0), U = ({ children: e, defaultPlatform: t }) => {
|
|
289
|
+
let [n, r] = p(() => {
|
|
290
|
+
let e = V.WEB;
|
|
291
|
+
if (t) e = t;
|
|
292
|
+
else {
|
|
293
|
+
let t = j.getPlatform();
|
|
294
|
+
(t === V.IOS || t === V.ANDROID) && (e = t);
|
|
295
|
+
}
|
|
296
|
+
return {
|
|
297
|
+
platform: e,
|
|
298
|
+
loading: !1,
|
|
299
|
+
reload: !1,
|
|
300
|
+
booting: !1,
|
|
301
|
+
sidebar: !1,
|
|
302
|
+
version: null,
|
|
303
|
+
modal: null,
|
|
304
|
+
logo: null,
|
|
305
|
+
background: null
|
|
306
|
+
};
|
|
307
|
+
});
|
|
308
|
+
return s(() => {
|
|
309
|
+
if (!t) {
|
|
310
|
+
let e = j.getPlatform(), t = e === V.IOS || e === V.ANDROID ? e : V.WEB;
|
|
311
|
+
t !== n.platform && r((e) => ({
|
|
312
|
+
...e,
|
|
313
|
+
platform: t
|
|
314
|
+
}));
|
|
315
|
+
}
|
|
316
|
+
}, [t, n.platform]), /* @__PURE__ */ h(H.Provider, {
|
|
317
|
+
value: {
|
|
318
|
+
state: n,
|
|
319
|
+
updateState: (e) => {
|
|
320
|
+
r((t) => ({
|
|
321
|
+
...t,
|
|
322
|
+
...e
|
|
323
|
+
}));
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
children: e
|
|
327
|
+
});
|
|
328
|
+
}, W = () => {
|
|
329
|
+
let e = o(H);
|
|
330
|
+
if (!e) throw Error("useLionUI debe ser utilizado dentro de un LionUIComponentsProvider");
|
|
331
|
+
return e;
|
|
332
|
+
}, G = {
|
|
333
|
+
SECONDARY: "secondary",
|
|
334
|
+
PRIMARY: "primary",
|
|
335
|
+
SUCCESS: "success",
|
|
336
|
+
DANGER: "danger",
|
|
337
|
+
WARNING: "warning",
|
|
338
|
+
INFO: "info",
|
|
339
|
+
LIGHT: "light",
|
|
340
|
+
LINK: "link",
|
|
341
|
+
DARK: "dark",
|
|
342
|
+
MODAL: "modal",
|
|
343
|
+
LION_PACKAGES: "lion-packages",
|
|
344
|
+
LION_PARKING: "lion-parking",
|
|
345
|
+
LION_TECH: "lion-tech",
|
|
346
|
+
LION_GLAM: "lion-glam"
|
|
347
|
+
}, K = {
|
|
348
|
+
SX: "sx",
|
|
349
|
+
SM: "sm",
|
|
350
|
+
MD: "md",
|
|
351
|
+
LG: "lg",
|
|
352
|
+
XL: "lg",
|
|
353
|
+
XXL: "lg"
|
|
354
|
+
}, q = {
|
|
355
|
+
SUBMIT: "submit",
|
|
356
|
+
BUTTON: "button",
|
|
357
|
+
RESET: "reset",
|
|
358
|
+
UNDEFINED: void 0
|
|
359
|
+
}, ie = {
|
|
360
|
+
FILLED: "filled",
|
|
361
|
+
ELEVATED: "elevated",
|
|
362
|
+
TONAL: "tonal",
|
|
363
|
+
OUTLINED: "outlined",
|
|
364
|
+
TEXT: "text"
|
|
365
|
+
}, ae = {
|
|
366
|
+
PILL: "pill",
|
|
367
|
+
ROUNDED: "rounded"
|
|
368
|
+
};
|
|
369
|
+
//#endregion
|
|
370
|
+
//#region src/components/buttons/AndroidButton.tsx
|
|
371
|
+
function oe({ children: e, variant: t = G.PRIMARY, styleType: n = ie.FILLED, shape: r = ae.PILL, size: i = K.MD, type: a = q.BUTTON, className: o = "", ...s }) {
|
|
372
|
+
return /* @__PURE__ */ g("button", {
|
|
373
|
+
type: a,
|
|
374
|
+
className: `android-btn android-btn-${i} ${`android-btn-${n}`} ${`android-btn-${r}`} ${t ? `btn-${t}` : ""} ${o}`.trim(),
|
|
375
|
+
...s,
|
|
376
|
+
children: [e, /* @__PURE__ */ h("span", { className: "ripple" })]
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
//#endregion
|
|
380
|
+
//#region src/types/Web/BootstrapStyleTypes.tsx
|
|
381
|
+
var se = {
|
|
382
|
+
FILLED: "filled",
|
|
383
|
+
OUTLINED: "outlined"
|
|
384
|
+
}, ce = {
|
|
385
|
+
STANDARD: "standard",
|
|
386
|
+
PILL: "pill",
|
|
387
|
+
SQUARE: "square"
|
|
388
|
+
};
|
|
389
|
+
//#endregion
|
|
390
|
+
//#region src/components/buttons/BootstrapButton.tsx
|
|
391
|
+
function le({ children: e, variant: t = "primary", styleType: n = se.FILLED, shape: r = ce.STANDARD, size: i = "md", type: a = "button", className: o = "", ...s }) {
|
|
392
|
+
let c = n === se.OUTLINED ? "btn-outline-" : "btn-";
|
|
393
|
+
return /* @__PURE__ */ h("button", {
|
|
394
|
+
type: a,
|
|
395
|
+
className: `btn ${t ? `${c}${t}` : ""} ${i && i !== "md" ? `btn-${i}` : ""} ${r === ce.PILL ? "rounded-pill" : r === ce.SQUARE ? "rounded-0" : ""} ${o}`.trim(),
|
|
396
|
+
...s,
|
|
397
|
+
children: e
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
//#endregion
|
|
401
|
+
//#region src/types/IOS/IOSStyleTypes.tsx
|
|
402
|
+
var ue = {
|
|
403
|
+
FILLED: "filled",
|
|
404
|
+
TINTED: "tinted",
|
|
405
|
+
GRAY: "gray",
|
|
406
|
+
PLAIN: "plain"
|
|
407
|
+
}, de = {
|
|
408
|
+
ROUNDED: "rounded",
|
|
409
|
+
CAPSULE: "capsule"
|
|
410
|
+
};
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region src/components/buttons/IOSButton.tsx
|
|
413
|
+
function fe({ children: e, variant: t = G.PRIMARY, styleType: n = ue.FILLED, shape: r = de.ROUNDED, size: i = K.MD, type: a = q.BUTTON, className: o = "", ...s }) {
|
|
414
|
+
return /* @__PURE__ */ h("button", {
|
|
415
|
+
type: a,
|
|
416
|
+
className: `ios-btn ios-btn-${i} ${`ios-btn-${n}`} ${`ios-btn-${r}`} ${t ? `btn-${t}` : ""} ${o}`.trim(),
|
|
417
|
+
...s,
|
|
418
|
+
children: /* @__PURE__ */ h("span", {
|
|
419
|
+
className: "ios-btn-content",
|
|
420
|
+
children: e
|
|
421
|
+
})
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
//#endregion
|
|
425
|
+
//#region src/components/buttons/LionButton.tsx
|
|
426
|
+
function pe({ children: e, shape: t, styleType: n, platform: r = null, ...i }) {
|
|
427
|
+
let { state: a } = W(), o = r ?? a.platform, s = (e) => {
|
|
428
|
+
if (typeof e == "object" && e) {
|
|
429
|
+
let t = e;
|
|
430
|
+
return t[o] ?? t[o.toLowerCase()];
|
|
431
|
+
}
|
|
432
|
+
return e;
|
|
433
|
+
}, c = s(t), l = s(n), u = {
|
|
434
|
+
...i,
|
|
435
|
+
...c !== void 0 && { shape: c },
|
|
436
|
+
...l !== void 0 && { styleType: l }
|
|
437
|
+
};
|
|
438
|
+
switch (o) {
|
|
439
|
+
case V.ANDROID: return /* @__PURE__ */ h(oe, {
|
|
440
|
+
...u,
|
|
441
|
+
children: e
|
|
442
|
+
});
|
|
443
|
+
case V.IOS: return /* @__PURE__ */ h(fe, {
|
|
444
|
+
...u,
|
|
445
|
+
children: e
|
|
446
|
+
});
|
|
447
|
+
case V.WEB:
|
|
448
|
+
case V.DESKTOP:
|
|
449
|
+
default: return /* @__PURE__ */ h(le, {
|
|
450
|
+
...u,
|
|
451
|
+
children: e
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
//#endregion
|
|
456
|
+
//#region src/types/InputTypes.tsx
|
|
457
|
+
var me = {
|
|
458
|
+
TEXT: "text",
|
|
459
|
+
PASSWORD: "password",
|
|
460
|
+
EMAIL: "email",
|
|
461
|
+
NUMBER: "number",
|
|
462
|
+
TEL: "tel",
|
|
463
|
+
URL: "url",
|
|
464
|
+
DATE: "date",
|
|
465
|
+
DATETIME: "datetime"
|
|
466
|
+
}, he = {
|
|
467
|
+
FILLED: "filled",
|
|
468
|
+
OUTLINED: "outlined"
|
|
469
|
+
}, ge = {
|
|
470
|
+
SMALL: "small",
|
|
471
|
+
NORMAL: "normal"
|
|
472
|
+
};
|
|
473
|
+
//#endregion
|
|
474
|
+
//#region src/components/inputs/AndroidInput.tsx
|
|
475
|
+
function _e({ type: e = me.TEXT, styleType: t = he.OUTLINED, shape: n = ge.NORMAL, variant: r = "primary", label: i, required: a = !1, helperText: o, error: s, startIcon: l, endIcon: u, prefixText: d, suffixText: f, counter: m, disabled: _ = !1, readOnly: v = !1, value: y, defaultValue: b, onChange: x, onFocus: S, onBlur: C, id: w, className: T = "", maxLength: E, placeholder: D = " ", ...O }) {
|
|
476
|
+
let k = c(), A = w || k, [j, M] = p(!1), [N, P] = p(y ?? b ?? ""), F = !!s, I = typeof s == "string" ? s : void 0, ee = String(t).toLowerCase().replace(/_/g, "-"), te = String(n).toLowerCase(), ne = [
|
|
477
|
+
"android-input-container",
|
|
478
|
+
`android-variant-${r}`,
|
|
479
|
+
T
|
|
480
|
+
].filter(Boolean).join(" "), re = [
|
|
481
|
+
"android-input-field-wrapper",
|
|
482
|
+
`android-style-${ee}`,
|
|
483
|
+
`android-size-${te}`,
|
|
484
|
+
j ? "is-focused" : "",
|
|
485
|
+
F ? "has-error" : "",
|
|
486
|
+
_ ? "is-disabled" : "",
|
|
487
|
+
v ? "is-readonly" : ""
|
|
488
|
+
].filter(Boolean).join(" "), L = ["android-input-element", F ? "is-invalid" : ""].filter(Boolean).join(" "), R = (e) => {
|
|
489
|
+
P(e.target.value), x && x(e);
|
|
490
|
+
}, z = (e) => {
|
|
491
|
+
M(!0), S && S(e);
|
|
492
|
+
}, B = (e) => {
|
|
493
|
+
M(!1), C && C(e);
|
|
494
|
+
}, V = y === void 0 ? N : y, H = String(V || "").length, U = typeof m == "number" ? m : E;
|
|
495
|
+
return /* @__PURE__ */ g("div", {
|
|
496
|
+
className: ne,
|
|
497
|
+
children: [/* @__PURE__ */ g("div", {
|
|
498
|
+
className: re,
|
|
499
|
+
children: [
|
|
500
|
+
l && /* @__PURE__ */ h("div", {
|
|
501
|
+
className: "android-input-start-icon",
|
|
502
|
+
children: l
|
|
503
|
+
}),
|
|
504
|
+
d && /* @__PURE__ */ h("span", {
|
|
505
|
+
className: "android-input-prefix",
|
|
506
|
+
children: d
|
|
507
|
+
}),
|
|
508
|
+
/* @__PURE__ */ h("input", {
|
|
509
|
+
id: A,
|
|
510
|
+
type: e,
|
|
511
|
+
value: V,
|
|
512
|
+
required: a,
|
|
513
|
+
disabled: _,
|
|
514
|
+
readOnly: v,
|
|
515
|
+
maxLength: U,
|
|
516
|
+
placeholder: D,
|
|
517
|
+
onChange: R,
|
|
518
|
+
onFocus: z,
|
|
519
|
+
onBlur: B,
|
|
520
|
+
className: L,
|
|
521
|
+
...O
|
|
522
|
+
}),
|
|
523
|
+
i && /* @__PURE__ */ g("label", {
|
|
524
|
+
htmlFor: A,
|
|
525
|
+
className: "android-input-label",
|
|
526
|
+
children: [i, a && /* @__PURE__ */ h("span", {
|
|
527
|
+
className: "text-danger ms-1",
|
|
528
|
+
children: "*"
|
|
529
|
+
})]
|
|
530
|
+
}),
|
|
531
|
+
f && /* @__PURE__ */ h("span", {
|
|
532
|
+
className: "android-input-suffix",
|
|
533
|
+
children: f
|
|
534
|
+
}),
|
|
535
|
+
u && /* @__PURE__ */ h("div", {
|
|
536
|
+
className: "android-input-end-icon",
|
|
537
|
+
children: u
|
|
538
|
+
})
|
|
539
|
+
]
|
|
540
|
+
}), (o || I || m) && /* @__PURE__ */ g("div", {
|
|
541
|
+
className: "android-input-subtext-container",
|
|
542
|
+
children: [F ? /* @__PURE__ */ h("div", {
|
|
543
|
+
className: "android-input-error-text",
|
|
544
|
+
children: I
|
|
545
|
+
}) : o ? /* @__PURE__ */ h("div", {
|
|
546
|
+
className: "android-input-helper-text",
|
|
547
|
+
children: o
|
|
548
|
+
}) : /* @__PURE__ */ h("div", {}), m && /* @__PURE__ */ g("span", {
|
|
549
|
+
className: "android-input-counter",
|
|
550
|
+
children: [H, U ? `/${U}` : ""]
|
|
551
|
+
})]
|
|
552
|
+
})]
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
//#endregion
|
|
556
|
+
//#region src/types/Web/BootstrapInputShapeTypes.tsx
|
|
557
|
+
var ve = {
|
|
558
|
+
ROUNDED: "rounded",
|
|
559
|
+
PILL: "rounded-pill",
|
|
560
|
+
SQUARE: "rounded-0"
|
|
561
|
+
}, ye = {
|
|
562
|
+
FLOATING: "floating",
|
|
563
|
+
STANDARD: "standard"
|
|
564
|
+
};
|
|
565
|
+
//#endregion
|
|
566
|
+
//#region src/components/inputs/BootstrapInput.tsx
|
|
567
|
+
function be({ type: e = me.TEXT, styleType: t = ye.FLOATING, shape: n = ve.ROUNDED, variant: r = "primary", sizeType: i = "md", label: a, required: o = !1, helperText: s, error: l, disabled: u = !1, readOnly: d = !1, id: f, className: p = "", placeholder: m = " ", ..._ }) {
|
|
568
|
+
let v = c(), y = f || v, b = !!l, x = typeof l == "string" ? l : void 0, S = [
|
|
569
|
+
"form-control",
|
|
570
|
+
n,
|
|
571
|
+
i === "sm" ? "form-control-sm" : i === "lg" ? "form-control-lg" : "",
|
|
572
|
+
`bootstrap-variant-${r}`,
|
|
573
|
+
b ? "is-invalid" : "",
|
|
574
|
+
p
|
|
575
|
+
].filter(Boolean).join(" "), C = t === ye.FLOATING;
|
|
576
|
+
return /* @__PURE__ */ g("div", {
|
|
577
|
+
className: "mb-3 w-100",
|
|
578
|
+
children: [
|
|
579
|
+
!C && a && /* @__PURE__ */ g("label", {
|
|
580
|
+
htmlFor: y,
|
|
581
|
+
className: "form-label",
|
|
582
|
+
children: [a, o && /* @__PURE__ */ h("span", {
|
|
583
|
+
className: "text-danger ms-1",
|
|
584
|
+
children: "*"
|
|
585
|
+
})]
|
|
586
|
+
}),
|
|
587
|
+
C ? /* @__PURE__ */ g("div", {
|
|
588
|
+
className: "form-floating",
|
|
589
|
+
children: [/* @__PURE__ */ h("input", {
|
|
590
|
+
id: y,
|
|
591
|
+
type: e,
|
|
592
|
+
className: S,
|
|
593
|
+
placeholder: m,
|
|
594
|
+
disabled: u,
|
|
595
|
+
readOnly: d,
|
|
596
|
+
required: o,
|
|
597
|
+
..._
|
|
598
|
+
}), a && /* @__PURE__ */ g("label", {
|
|
599
|
+
htmlFor: y,
|
|
600
|
+
children: [a, o && /* @__PURE__ */ h("span", {
|
|
601
|
+
className: "text-danger ms-1",
|
|
602
|
+
children: "*"
|
|
603
|
+
})]
|
|
604
|
+
})]
|
|
605
|
+
}) : /* @__PURE__ */ h("input", {
|
|
606
|
+
id: y,
|
|
607
|
+
type: e,
|
|
608
|
+
className: S,
|
|
609
|
+
placeholder: m,
|
|
610
|
+
disabled: u,
|
|
611
|
+
readOnly: d,
|
|
612
|
+
required: o,
|
|
613
|
+
..._
|
|
614
|
+
}),
|
|
615
|
+
b ? /* @__PURE__ */ h("div", {
|
|
616
|
+
className: "invalid-feedback d-block",
|
|
617
|
+
children: x
|
|
618
|
+
}) : s ? /* @__PURE__ */ h("div", {
|
|
619
|
+
className: "form-text",
|
|
620
|
+
children: s
|
|
621
|
+
}) : null
|
|
622
|
+
]
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
//#endregion
|
|
626
|
+
//#region src/types/IOS/IOSInputStyleTypes.tsx
|
|
627
|
+
var xe = {
|
|
628
|
+
FORM: "form",
|
|
629
|
+
ROUNDED_BORDER: "rounded-border",
|
|
630
|
+
FILLED: "filled",
|
|
631
|
+
OUTLINED: "outlined",
|
|
632
|
+
PLAIN: "plain"
|
|
633
|
+
}, Se = {
|
|
634
|
+
ROUNDED: "rounded",
|
|
635
|
+
PILL: "pill",
|
|
636
|
+
SQUARE: "square"
|
|
637
|
+
};
|
|
638
|
+
//#endregion
|
|
639
|
+
//#region src/components/inputs/IOSInput.tsx
|
|
640
|
+
function Ce({ type: e = me.TEXT, styleType: t = xe.ROUNDED_BORDER, shape: n = Se.ROUNDED, variant: r = "primary", sizeType: i = "md", label: a, required: o = !1, helperText: s, error: l, startIcon: u, endIcon: d, prefixText: f, suffixText: m, clearable: _ = !1, disabled: v = !1, readOnly: y = !1, value: b, defaultValue: x, onChange: S, onFocus: C, onBlur: w, id: T, className: E = "", maxLength: D, placeholder: O, ...k }) {
|
|
641
|
+
let A = c(), j = T || A, [M, N] = p(!1), [P, F] = p(b ?? x ?? ""), I = !!l, ee = typeof l == "string" ? l : void 0, te = String(t).toLowerCase().replace(/_/g, "-"), ne = String(n).toLowerCase(), re = [
|
|
642
|
+
"ios-input-container",
|
|
643
|
+
`ios-variant-${r}`,
|
|
644
|
+
E
|
|
645
|
+
].filter(Boolean).join(" "), L = [
|
|
646
|
+
"ios-input-wrapper",
|
|
647
|
+
`ios-style-${te}`,
|
|
648
|
+
`ios-shape-${ne}`,
|
|
649
|
+
`ios-size-${i}`,
|
|
650
|
+
M ? "is-focused" : "",
|
|
651
|
+
I ? "has-error" : "",
|
|
652
|
+
v ? "is-disabled" : "",
|
|
653
|
+
y ? "is-readonly" : ""
|
|
654
|
+
].filter(Boolean).join(" "), R = (e) => {
|
|
655
|
+
N(!0), C && C(e);
|
|
656
|
+
}, z = (e) => {
|
|
657
|
+
N(!1), w && w(e);
|
|
658
|
+
}, B = (e) => {
|
|
659
|
+
F(e.target.value), S && S(e);
|
|
660
|
+
}, V = () => {
|
|
661
|
+
F(""), S && S({ target: { value: "" } });
|
|
662
|
+
}, H = b === void 0 ? P : b;
|
|
663
|
+
return /* @__PURE__ */ g("div", {
|
|
664
|
+
className: re,
|
|
665
|
+
children: [
|
|
666
|
+
a && /* @__PURE__ */ g("label", {
|
|
667
|
+
htmlFor: j,
|
|
668
|
+
className: "ios-input-label",
|
|
669
|
+
children: [a, o && /* @__PURE__ */ h("span", {
|
|
670
|
+
className: "text-danger ms-1",
|
|
671
|
+
children: "*"
|
|
672
|
+
})]
|
|
673
|
+
}),
|
|
674
|
+
/* @__PURE__ */ g("div", {
|
|
675
|
+
className: L,
|
|
676
|
+
children: [
|
|
677
|
+
u && /* @__PURE__ */ h("div", {
|
|
678
|
+
className: "ios-input-icon-left",
|
|
679
|
+
children: u
|
|
680
|
+
}),
|
|
681
|
+
f && /* @__PURE__ */ h("span", {
|
|
682
|
+
className: "input-prefix",
|
|
683
|
+
children: f
|
|
684
|
+
}),
|
|
685
|
+
/* @__PURE__ */ h("input", {
|
|
686
|
+
id: j,
|
|
687
|
+
type: e,
|
|
688
|
+
value: H,
|
|
689
|
+
required: o,
|
|
690
|
+
disabled: v,
|
|
691
|
+
readOnly: y,
|
|
692
|
+
maxLength: D,
|
|
693
|
+
placeholder: O,
|
|
694
|
+
onChange: B,
|
|
695
|
+
onFocus: R,
|
|
696
|
+
onBlur: z,
|
|
697
|
+
className: "ios-input-element",
|
|
698
|
+
...k
|
|
699
|
+
}),
|
|
700
|
+
_ && !!H && !v && !y && /* @__PURE__ */ h("button", {
|
|
701
|
+
type: "button",
|
|
702
|
+
className: "ios-clear-button",
|
|
703
|
+
onClick: V,
|
|
704
|
+
tabIndex: -1,
|
|
705
|
+
children: /* @__PURE__ */ h("i", { className: "bi bi-x" })
|
|
706
|
+
}),
|
|
707
|
+
m && /* @__PURE__ */ h("span", {
|
|
708
|
+
className: "input-suffix",
|
|
709
|
+
children: m
|
|
710
|
+
}),
|
|
711
|
+
d && /* @__PURE__ */ h("div", {
|
|
712
|
+
className: "ios-input-icon-right",
|
|
713
|
+
children: d
|
|
714
|
+
})
|
|
715
|
+
]
|
|
716
|
+
}),
|
|
717
|
+
I ? /* @__PURE__ */ h("div", {
|
|
718
|
+
className: "ios-input-error-text",
|
|
719
|
+
children: ee
|
|
720
|
+
}) : s ? /* @__PURE__ */ h("div", {
|
|
721
|
+
className: "ios-input-helper-text",
|
|
722
|
+
children: s
|
|
723
|
+
}) : null
|
|
724
|
+
]
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
//#endregion
|
|
728
|
+
//#region src/components/inputs/LionInput.tsx
|
|
729
|
+
function we({ shape: e, styleType: t, platform: n = null, ...r }) {
|
|
730
|
+
let { state: i } = W(), a = n ?? i.platform, o = (e) => {
|
|
731
|
+
if (typeof e == "object" && e) {
|
|
732
|
+
let t = e;
|
|
733
|
+
return t[a] ?? t[a.toLowerCase()];
|
|
734
|
+
}
|
|
735
|
+
return e;
|
|
736
|
+
}, s = o(e), c = o(t), l = {
|
|
737
|
+
...r,
|
|
738
|
+
...s !== void 0 && { shape: s },
|
|
739
|
+
...c !== void 0 && { styleType: c }
|
|
740
|
+
};
|
|
741
|
+
switch (a) {
|
|
742
|
+
case V.ANDROID: return /* @__PURE__ */ h(_e, { ...l });
|
|
743
|
+
case V.IOS: return /* @__PURE__ */ h(Ce, { ...l });
|
|
744
|
+
case V.WEB:
|
|
745
|
+
case V.DESKTOP:
|
|
746
|
+
default: return /* @__PURE__ */ h(be, { ...l });
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
//#endregion
|
|
750
|
+
//#region src/components/loadings/LoadingBar.tsx
|
|
751
|
+
function Te({ variant: e = G.PRIMARY }) {
|
|
752
|
+
let { state: t } = W(), n = String(e).toLowerCase().replace(/_/g, "-"), r = e ? `loading-variant-${n}` : "";
|
|
753
|
+
return t.loading ? /* @__PURE__ */ h("div", {
|
|
754
|
+
className: "sticky-top",
|
|
755
|
+
children: /* @__PURE__ */ h("div", {
|
|
756
|
+
className: `custom-progress-bar ${r}`,
|
|
757
|
+
children: /* @__PURE__ */ h("div", { className: "indeterminate" })
|
|
758
|
+
})
|
|
759
|
+
}) : null;
|
|
760
|
+
}
|
|
761
|
+
//#endregion
|
|
762
|
+
//#region node_modules/classnames/index.js
|
|
763
|
+
var Ee = /* @__PURE__ */ w(((e, t) => {
|
|
764
|
+
(function() {
|
|
765
|
+
var e = {}.hasOwnProperty;
|
|
766
|
+
function n() {
|
|
767
|
+
for (var e = "", t = 0; t < arguments.length; t++) {
|
|
768
|
+
var n = arguments[t];
|
|
769
|
+
n && (e = i(e, r(n)));
|
|
770
|
+
}
|
|
771
|
+
return e;
|
|
772
|
+
}
|
|
773
|
+
function r(t) {
|
|
774
|
+
if (typeof t == "string" || typeof t == "number") return t;
|
|
775
|
+
if (typeof t != "object") return "";
|
|
776
|
+
if (Array.isArray(t)) return n.apply(null, t);
|
|
777
|
+
if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) return t.toString();
|
|
778
|
+
var r = "";
|
|
779
|
+
for (var a in t) e.call(t, a) && t[a] && (r = i(r, a));
|
|
780
|
+
return r;
|
|
781
|
+
}
|
|
782
|
+
function i(e, t) {
|
|
783
|
+
return t ? e ? e + " " + t : e + t : e;
|
|
784
|
+
}
|
|
785
|
+
t !== void 0 && t.exports ? (n.default = n, t.exports = n) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
|
|
786
|
+
return n;
|
|
787
|
+
}) : window.classNames = n;
|
|
788
|
+
})();
|
|
789
|
+
}));
|
|
790
|
+
//#endregion
|
|
791
|
+
//#region node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
792
|
+
function De(e, t) {
|
|
793
|
+
if (e == null) return {};
|
|
794
|
+
var n = {};
|
|
795
|
+
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
796
|
+
if (t.indexOf(r) !== -1) continue;
|
|
797
|
+
n[r] = e[r];
|
|
798
|
+
}
|
|
799
|
+
return n;
|
|
800
|
+
}
|
|
801
|
+
//#endregion
|
|
802
|
+
//#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
803
|
+
function Oe(e, t) {
|
|
804
|
+
return Oe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
805
|
+
return e.__proto__ = t, e;
|
|
806
|
+
}, Oe(e, t);
|
|
807
|
+
}
|
|
808
|
+
//#endregion
|
|
809
|
+
//#region node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
|
|
810
|
+
function ke(e, t) {
|
|
811
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Oe(e, t);
|
|
812
|
+
}
|
|
813
|
+
var Ae = /*#__PURE__*/ e.createContext({
|
|
814
|
+
prefixes: {},
|
|
815
|
+
breakpoints: [
|
|
816
|
+
"xxl",
|
|
817
|
+
"xl",
|
|
818
|
+
"lg",
|
|
819
|
+
"md",
|
|
820
|
+
"sm",
|
|
821
|
+
"xs"
|
|
822
|
+
],
|
|
823
|
+
minBreakpoint: "xs"
|
|
824
|
+
}), { Consumer: je, Provider: Me } = Ae;
|
|
825
|
+
function J(e, t) {
|
|
826
|
+
let { prefixes: n } = o(Ae);
|
|
827
|
+
return e || n[t] || t;
|
|
828
|
+
}
|
|
829
|
+
function Ne() {
|
|
830
|
+
let { dir: e } = o(Ae);
|
|
831
|
+
return e === "rtl";
|
|
832
|
+
}
|
|
833
|
+
//#endregion
|
|
834
|
+
//#region node_modules/dom-helpers/esm/ownerDocument.js
|
|
835
|
+
function Pe(e) {
|
|
836
|
+
return e && e.ownerDocument || document;
|
|
837
|
+
}
|
|
838
|
+
//#endregion
|
|
839
|
+
//#region node_modules/dom-helpers/esm/ownerWindow.js
|
|
840
|
+
function Fe(e) {
|
|
841
|
+
var t = Pe(e);
|
|
842
|
+
return t && t.defaultView || window;
|
|
843
|
+
}
|
|
844
|
+
//#endregion
|
|
845
|
+
//#region node_modules/dom-helpers/esm/getComputedStyle.js
|
|
846
|
+
function Ie(e, t) {
|
|
847
|
+
return Fe(e).getComputedStyle(e, t);
|
|
848
|
+
}
|
|
849
|
+
//#endregion
|
|
850
|
+
//#region node_modules/dom-helpers/esm/hyphenate.js
|
|
851
|
+
var Le = /([A-Z])/g;
|
|
852
|
+
function Re(e) {
|
|
853
|
+
return e.replace(Le, "-$1").toLowerCase();
|
|
854
|
+
}
|
|
855
|
+
//#endregion
|
|
856
|
+
//#region node_modules/dom-helpers/esm/hyphenateStyle.js
|
|
857
|
+
var ze = /^ms-/;
|
|
858
|
+
function Be(e) {
|
|
859
|
+
return Re(e).replace(ze, "-ms-");
|
|
860
|
+
}
|
|
861
|
+
//#endregion
|
|
862
|
+
//#region node_modules/dom-helpers/esm/isTransform.js
|
|
863
|
+
var Ve = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
|
|
864
|
+
function He(e) {
|
|
865
|
+
return !!(e && Ve.test(e));
|
|
866
|
+
}
|
|
867
|
+
//#endregion
|
|
868
|
+
//#region node_modules/dom-helpers/esm/css.js
|
|
869
|
+
function Y(e, t) {
|
|
870
|
+
var n = "", r = "";
|
|
871
|
+
if (typeof t == "string") return e.style.getPropertyValue(Be(t)) || Ie(e).getPropertyValue(Be(t));
|
|
872
|
+
Object.keys(t).forEach(function(i) {
|
|
873
|
+
var a = t[i];
|
|
874
|
+
!a && a !== 0 ? e.style.removeProperty(Be(i)) : He(i) ? r += i + "(" + a + ") " : n += Be(i) + ": " + a + ";";
|
|
875
|
+
}), r && (n += "transform: " + r + ";"), e.style.cssText += ";" + n;
|
|
876
|
+
}
|
|
877
|
+
//#endregion
|
|
878
|
+
//#region node_modules/react-is/cjs/react-is.production.min.js
|
|
879
|
+
var Ue = /* @__PURE__ */ w(((e) => {
|
|
880
|
+
var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
|
|
881
|
+
function b(e) {
|
|
882
|
+
if (typeof e == "object" && e) {
|
|
883
|
+
var t = e.$$typeof;
|
|
884
|
+
switch (t) {
|
|
885
|
+
case n: switch (e = e.type, e) {
|
|
886
|
+
case l:
|
|
887
|
+
case u:
|
|
888
|
+
case i:
|
|
889
|
+
case o:
|
|
890
|
+
case a:
|
|
891
|
+
case f: return e;
|
|
892
|
+
default: switch (e &&= e.$$typeof, e) {
|
|
893
|
+
case c:
|
|
894
|
+
case d:
|
|
895
|
+
case h:
|
|
896
|
+
case m:
|
|
897
|
+
case s: return e;
|
|
898
|
+
default: return t;
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
case r: return t;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
function x(e) {
|
|
906
|
+
return b(e) === u;
|
|
907
|
+
}
|
|
908
|
+
e.AsyncMode = l, e.ConcurrentMode = u, e.ContextConsumer = c, e.ContextProvider = s, e.Element = n, e.ForwardRef = d, e.Fragment = i, e.Lazy = h, e.Memo = m, e.Portal = r, e.Profiler = o, e.StrictMode = a, e.Suspense = f, e.isAsyncMode = function(e) {
|
|
909
|
+
return x(e) || b(e) === l;
|
|
910
|
+
}, e.isConcurrentMode = x, e.isContextConsumer = function(e) {
|
|
911
|
+
return b(e) === c;
|
|
912
|
+
}, e.isContextProvider = function(e) {
|
|
913
|
+
return b(e) === s;
|
|
914
|
+
}, e.isElement = function(e) {
|
|
915
|
+
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
916
|
+
}, e.isForwardRef = function(e) {
|
|
917
|
+
return b(e) === d;
|
|
918
|
+
}, e.isFragment = function(e) {
|
|
919
|
+
return b(e) === i;
|
|
920
|
+
}, e.isLazy = function(e) {
|
|
921
|
+
return b(e) === h;
|
|
922
|
+
}, e.isMemo = function(e) {
|
|
923
|
+
return b(e) === m;
|
|
924
|
+
}, e.isPortal = function(e) {
|
|
925
|
+
return b(e) === r;
|
|
926
|
+
}, e.isProfiler = function(e) {
|
|
927
|
+
return b(e) === o;
|
|
928
|
+
}, e.isStrictMode = function(e) {
|
|
929
|
+
return b(e) === a;
|
|
930
|
+
}, e.isSuspense = function(e) {
|
|
931
|
+
return b(e) === f;
|
|
932
|
+
}, e.isValidElementType = function(e) {
|
|
933
|
+
return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
|
|
934
|
+
}, e.typeOf = b;
|
|
935
|
+
})), We = /* @__PURE__ */ w(((e) => {
|
|
936
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
937
|
+
var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
|
|
938
|
+
function b(e) {
|
|
939
|
+
return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
|
|
940
|
+
}
|
|
941
|
+
function x(e) {
|
|
942
|
+
if (typeof e == "object" && e) {
|
|
943
|
+
var t = e.$$typeof;
|
|
944
|
+
switch (t) {
|
|
945
|
+
case n:
|
|
946
|
+
var p = e.type;
|
|
947
|
+
switch (p) {
|
|
948
|
+
case l:
|
|
949
|
+
case u:
|
|
950
|
+
case i:
|
|
951
|
+
case o:
|
|
952
|
+
case a:
|
|
953
|
+
case f: return p;
|
|
954
|
+
default:
|
|
955
|
+
var g = p && p.$$typeof;
|
|
956
|
+
switch (g) {
|
|
957
|
+
case c:
|
|
958
|
+
case d:
|
|
959
|
+
case h:
|
|
960
|
+
case m:
|
|
961
|
+
case s: return g;
|
|
962
|
+
default: return t;
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
case r: return t;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
var S = l, C = u, w = c, T = s, E = n, D = d, O = i, k = h, A = m, j = r, M = o, N = a, P = f, F = !1;
|
|
970
|
+
function I(e) {
|
|
971
|
+
return F || (F = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ee(e) || x(e) === l;
|
|
972
|
+
}
|
|
973
|
+
function ee(e) {
|
|
974
|
+
return x(e) === u;
|
|
975
|
+
}
|
|
976
|
+
function te(e) {
|
|
977
|
+
return x(e) === c;
|
|
978
|
+
}
|
|
979
|
+
function ne(e) {
|
|
980
|
+
return x(e) === s;
|
|
981
|
+
}
|
|
982
|
+
function re(e) {
|
|
983
|
+
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
984
|
+
}
|
|
985
|
+
function L(e) {
|
|
986
|
+
return x(e) === d;
|
|
987
|
+
}
|
|
988
|
+
function R(e) {
|
|
989
|
+
return x(e) === i;
|
|
990
|
+
}
|
|
991
|
+
function z(e) {
|
|
992
|
+
return x(e) === h;
|
|
993
|
+
}
|
|
994
|
+
function B(e) {
|
|
995
|
+
return x(e) === m;
|
|
996
|
+
}
|
|
997
|
+
function V(e) {
|
|
998
|
+
return x(e) === r;
|
|
999
|
+
}
|
|
1000
|
+
function H(e) {
|
|
1001
|
+
return x(e) === o;
|
|
1002
|
+
}
|
|
1003
|
+
function U(e) {
|
|
1004
|
+
return x(e) === a;
|
|
1005
|
+
}
|
|
1006
|
+
function W(e) {
|
|
1007
|
+
return x(e) === f;
|
|
1008
|
+
}
|
|
1009
|
+
e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = I, e.isConcurrentMode = ee, e.isContextConsumer = te, e.isContextProvider = ne, e.isElement = re, e.isForwardRef = L, e.isFragment = R, e.isLazy = z, e.isMemo = B, e.isPortal = V, e.isProfiler = H, e.isStrictMode = U, e.isSuspense = W, e.isValidElementType = b, e.typeOf = x;
|
|
1010
|
+
})();
|
|
1011
|
+
})), Ge = /* @__PURE__ */ w(((e, t) => {
|
|
1012
|
+
process.env.NODE_ENV === "production" ? t.exports = Ue() : t.exports = We();
|
|
1013
|
+
})), Ke = /* @__PURE__ */ w(((e, t) => {
|
|
1014
|
+
var n = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
1015
|
+
function a(e) {
|
|
1016
|
+
if (e == null) throw TypeError("Object.assign cannot be called with null or undefined");
|
|
1017
|
+
return Object(e);
|
|
1018
|
+
}
|
|
1019
|
+
function o() {
|
|
1020
|
+
try {
|
|
1021
|
+
if (!Object.assign) return !1;
|
|
1022
|
+
var e = /* @__PURE__ */ new String("abc");
|
|
1023
|
+
if (e[5] = "de", Object.getOwnPropertyNames(e)[0] === "5") return !1;
|
|
1024
|
+
for (var t = {}, n = 0; n < 10; n++) t["_" + String.fromCharCode(n)] = n;
|
|
1025
|
+
if (Object.getOwnPropertyNames(t).map(function(e) {
|
|
1026
|
+
return t[e];
|
|
1027
|
+
}).join("") !== "0123456789") return !1;
|
|
1028
|
+
var r = {};
|
|
1029
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(e) {
|
|
1030
|
+
r[e] = e;
|
|
1031
|
+
}), Object.keys(Object.assign({}, r)).join("") === "abcdefghijklmnopqrst";
|
|
1032
|
+
} catch {
|
|
1033
|
+
return !1;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
t.exports = o() ? Object.assign : function(e, t) {
|
|
1037
|
+
for (var o, s = a(e), c, l = 1; l < arguments.length; l++) {
|
|
1038
|
+
for (var u in o = Object(arguments[l]), o) r.call(o, u) && (s[u] = o[u]);
|
|
1039
|
+
if (n) {
|
|
1040
|
+
c = n(o);
|
|
1041
|
+
for (var d = 0; d < c.length; d++) i.call(o, c[d]) && (s[c[d]] = o[c[d]]);
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
return s;
|
|
1045
|
+
};
|
|
1046
|
+
})), qe = /* @__PURE__ */ w(((e, t) => {
|
|
1047
|
+
t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1048
|
+
})), Je = /* @__PURE__ */ w(((e, t) => {
|
|
1049
|
+
t.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1050
|
+
})), Ye = /* @__PURE__ */ w(((e, t) => {
|
|
1051
|
+
var n = function() {};
|
|
1052
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1053
|
+
var r = qe(), i = {}, a = Je();
|
|
1054
|
+
n = function(e) {
|
|
1055
|
+
var t = "Warning: " + e;
|
|
1056
|
+
typeof console < "u" && console.error(t);
|
|
1057
|
+
try {
|
|
1058
|
+
throw Error(t);
|
|
1059
|
+
} catch {}
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
function o(e, t, o, s, c) {
|
|
1063
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1064
|
+
for (var l in e) if (a(e, l)) {
|
|
1065
|
+
var u;
|
|
1066
|
+
try {
|
|
1067
|
+
if (typeof e[l] != "function") {
|
|
1068
|
+
var d = Error((s || "React class") + ": " + o + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1069
|
+
throw d.name = "Invariant Violation", d;
|
|
1070
|
+
}
|
|
1071
|
+
u = e[l](t, l, s, o, null, r);
|
|
1072
|
+
} catch (e) {
|
|
1073
|
+
u = e;
|
|
1074
|
+
}
|
|
1075
|
+
if (u && !(u instanceof Error) && n((s || "React class") + ": type specification of " + o + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."), u instanceof Error && !(u.message in i)) {
|
|
1076
|
+
i[u.message] = !0;
|
|
1077
|
+
var f = c ? c() : "";
|
|
1078
|
+
n("Failed " + o + " type: " + u.message + (f ?? ""));
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
o.resetWarningCache = function() {
|
|
1084
|
+
process.env.NODE_ENV !== "production" && (i = {});
|
|
1085
|
+
}, t.exports = o;
|
|
1086
|
+
})), Xe = /* @__PURE__ */ w(((e, t) => {
|
|
1087
|
+
var n = Ge(), r = Ke(), i = qe(), a = Je(), o = Ye(), s = function() {};
|
|
1088
|
+
process.env.NODE_ENV !== "production" && (s = function(e) {
|
|
1089
|
+
var t = "Warning: " + e;
|
|
1090
|
+
typeof console < "u" && console.error(t);
|
|
1091
|
+
try {
|
|
1092
|
+
throw Error(t);
|
|
1093
|
+
} catch {}
|
|
1094
|
+
});
|
|
1095
|
+
function c() {
|
|
1096
|
+
return null;
|
|
1097
|
+
}
|
|
1098
|
+
t.exports = function(e, t) {
|
|
1099
|
+
var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
1100
|
+
function d(e) {
|
|
1101
|
+
var t = e && (l && e[l] || e[u]);
|
|
1102
|
+
if (typeof t == "function") return t;
|
|
1103
|
+
}
|
|
1104
|
+
var f = "<<anonymous>>", p = {
|
|
1105
|
+
array: _("array"),
|
|
1106
|
+
bigint: _("bigint"),
|
|
1107
|
+
bool: _("boolean"),
|
|
1108
|
+
func: _("function"),
|
|
1109
|
+
number: _("number"),
|
|
1110
|
+
object: _("object"),
|
|
1111
|
+
string: _("string"),
|
|
1112
|
+
symbol: _("symbol"),
|
|
1113
|
+
any: v(),
|
|
1114
|
+
arrayOf: y,
|
|
1115
|
+
element: b(),
|
|
1116
|
+
elementType: x(),
|
|
1117
|
+
instanceOf: S,
|
|
1118
|
+
node: E(),
|
|
1119
|
+
objectOf: w,
|
|
1120
|
+
oneOf: C,
|
|
1121
|
+
oneOfType: T,
|
|
1122
|
+
shape: O,
|
|
1123
|
+
exact: k
|
|
1124
|
+
};
|
|
1125
|
+
function m(e, t) {
|
|
1126
|
+
return e === t ? e !== 0 || 1 / e == 1 / t : e !== e && t !== t;
|
|
1127
|
+
}
|
|
1128
|
+
function h(e, t) {
|
|
1129
|
+
this.message = e, this.data = t && typeof t == "object" ? t : {}, this.stack = "";
|
|
1130
|
+
}
|
|
1131
|
+
h.prototype = Error.prototype;
|
|
1132
|
+
function g(e) {
|
|
1133
|
+
if (process.env.NODE_ENV !== "production") var n = {}, r = 0;
|
|
1134
|
+
function a(a, o, c, l, u, d, p) {
|
|
1135
|
+
if (l ||= f, d ||= c, p !== i) {
|
|
1136
|
+
if (t) {
|
|
1137
|
+
var m = /* @__PURE__ */ Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
|
|
1138
|
+
throw m.name = "Invariant Violation", m;
|
|
1139
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1140
|
+
var g = l + ":" + c;
|
|
1141
|
+
!n[g] && r < 3 && (s("You are manually calling a React.PropTypes validation function for the `" + d + "` prop on `" + l + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."), n[g] = !0, r++);
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
return o[c] == null ? a ? o[c] === null ? new h("The " + u + " `" + d + "` is marked as required " + ("in `" + l + "`, but its value is `null`.")) : new h("The " + u + " `" + d + "` is marked as required in " + ("`" + l + "`, but its value is `undefined`.")) : null : e(o, c, l, u, d);
|
|
1145
|
+
}
|
|
1146
|
+
var o = a.bind(null, !1);
|
|
1147
|
+
return o.isRequired = a.bind(null, !0), o;
|
|
1148
|
+
}
|
|
1149
|
+
function _(e) {
|
|
1150
|
+
function t(t, n, r, i, a, o) {
|
|
1151
|
+
var s = t[n];
|
|
1152
|
+
if (M(s) !== e) {
|
|
1153
|
+
var c = N(s);
|
|
1154
|
+
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + c + "` supplied to `" + r + "`, expected ") + ("`" + e + "`."), { expectedType: e });
|
|
1155
|
+
}
|
|
1156
|
+
return null;
|
|
1157
|
+
}
|
|
1158
|
+
return g(t);
|
|
1159
|
+
}
|
|
1160
|
+
function v() {
|
|
1161
|
+
return g(c);
|
|
1162
|
+
}
|
|
1163
|
+
function y(e) {
|
|
1164
|
+
function t(t, n, r, a, o) {
|
|
1165
|
+
if (typeof e != "function") return new h("Property `" + o + "` of component `" + r + "` has invalid PropType notation inside arrayOf.");
|
|
1166
|
+
var s = t[n];
|
|
1167
|
+
if (!Array.isArray(s)) {
|
|
1168
|
+
var c = M(s);
|
|
1169
|
+
return new h("Invalid " + a + " `" + o + "` of type " + ("`" + c + "` supplied to `" + r + "`, expected an array."));
|
|
1170
|
+
}
|
|
1171
|
+
for (var l = 0; l < s.length; l++) {
|
|
1172
|
+
var u = e(s, l, r, a, o + "[" + l + "]", i);
|
|
1173
|
+
if (u instanceof Error) return u;
|
|
1174
|
+
}
|
|
1175
|
+
return null;
|
|
1176
|
+
}
|
|
1177
|
+
return g(t);
|
|
1178
|
+
}
|
|
1179
|
+
function b() {
|
|
1180
|
+
function t(t, n, r, i, a) {
|
|
1181
|
+
var o = t[n];
|
|
1182
|
+
if (!e(o)) {
|
|
1183
|
+
var s = M(o);
|
|
1184
|
+
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected a single ReactElement."));
|
|
1185
|
+
}
|
|
1186
|
+
return null;
|
|
1187
|
+
}
|
|
1188
|
+
return g(t);
|
|
1189
|
+
}
|
|
1190
|
+
function x() {
|
|
1191
|
+
function e(e, t, r, i, a) {
|
|
1192
|
+
var o = e[t];
|
|
1193
|
+
if (!n.isValidElementType(o)) {
|
|
1194
|
+
var s = M(o);
|
|
1195
|
+
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected a single ReactElement type."));
|
|
1196
|
+
}
|
|
1197
|
+
return null;
|
|
1198
|
+
}
|
|
1199
|
+
return g(e);
|
|
1200
|
+
}
|
|
1201
|
+
function S(e) {
|
|
1202
|
+
function t(t, n, r, i, a) {
|
|
1203
|
+
if (!(t[n] instanceof e)) {
|
|
1204
|
+
var o = e.name || f, s = F(t[n]);
|
|
1205
|
+
return new h("Invalid " + i + " `" + a + "` of type " + ("`" + s + "` supplied to `" + r + "`, expected ") + ("instance of `" + o + "`."));
|
|
1206
|
+
}
|
|
1207
|
+
return null;
|
|
1208
|
+
}
|
|
1209
|
+
return g(t);
|
|
1210
|
+
}
|
|
1211
|
+
function C(e) {
|
|
1212
|
+
if (!Array.isArray(e)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).") : s("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
1213
|
+
function t(t, n, r, i, a) {
|
|
1214
|
+
for (var o = t[n], s = 0; s < e.length; s++) if (m(o, e[s])) return null;
|
|
1215
|
+
var c = JSON.stringify(e, function(e, t) {
|
|
1216
|
+
return N(t) === "symbol" ? String(t) : t;
|
|
1217
|
+
});
|
|
1218
|
+
return new h("Invalid " + i + " `" + a + "` of value `" + String(o) + "` " + ("supplied to `" + r + "`, expected one of " + c + "."));
|
|
1219
|
+
}
|
|
1220
|
+
return g(t);
|
|
1221
|
+
}
|
|
1222
|
+
function w(e) {
|
|
1223
|
+
function t(t, n, r, o, s) {
|
|
1224
|
+
if (typeof e != "function") return new h("Property `" + s + "` of component `" + r + "` has invalid PropType notation inside objectOf.");
|
|
1225
|
+
var c = t[n], l = M(c);
|
|
1226
|
+
if (l !== "object") return new h("Invalid " + o + " `" + s + "` of type " + ("`" + l + "` supplied to `" + r + "`, expected an object."));
|
|
1227
|
+
for (var u in c) if (a(c, u)) {
|
|
1228
|
+
var d = e(c, u, r, o, s + "." + u, i);
|
|
1229
|
+
if (d instanceof Error) return d;
|
|
1230
|
+
}
|
|
1231
|
+
return null;
|
|
1232
|
+
}
|
|
1233
|
+
return g(t);
|
|
1234
|
+
}
|
|
1235
|
+
function T(e) {
|
|
1236
|
+
if (!Array.isArray(e)) return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
1237
|
+
for (var t = 0; t < e.length; t++) {
|
|
1238
|
+
var n = e[t];
|
|
1239
|
+
if (typeof n != "function") return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + P(n) + " at index " + t + "."), c;
|
|
1240
|
+
}
|
|
1241
|
+
function r(t, n, r, o, s) {
|
|
1242
|
+
for (var c = [], l = 0; l < e.length; l++) {
|
|
1243
|
+
var u = e[l], d = u(t, n, r, o, s, i);
|
|
1244
|
+
if (d == null) return null;
|
|
1245
|
+
d.data && a(d.data, "expectedType") && c.push(d.data.expectedType);
|
|
1246
|
+
}
|
|
1247
|
+
var f = c.length > 0 ? ", expected one of type [" + c.join(", ") + "]" : "";
|
|
1248
|
+
return new h("Invalid " + o + " `" + s + "` supplied to " + ("`" + r + "`" + f + "."));
|
|
1249
|
+
}
|
|
1250
|
+
return g(r);
|
|
1251
|
+
}
|
|
1252
|
+
function E() {
|
|
1253
|
+
function e(e, t, n, r, i) {
|
|
1254
|
+
return A(e[t]) ? null : new h("Invalid " + r + " `" + i + "` supplied to " + ("`" + n + "`, expected a ReactNode."));
|
|
1255
|
+
}
|
|
1256
|
+
return g(e);
|
|
1257
|
+
}
|
|
1258
|
+
function D(e, t, n, r, i) {
|
|
1259
|
+
return new h((e || "React class") + ": " + t + " type `" + n + "." + r + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + i + "`.");
|
|
1260
|
+
}
|
|
1261
|
+
function O(e) {
|
|
1262
|
+
function t(t, n, r, a, o) {
|
|
1263
|
+
var s = t[n], c = M(s);
|
|
1264
|
+
if (c !== "object") return new h("Invalid " + a + " `" + o + "` of type `" + c + "` " + ("supplied to `" + r + "`, expected `object`."));
|
|
1265
|
+
for (var l in e) {
|
|
1266
|
+
var u = e[l];
|
|
1267
|
+
if (typeof u != "function") return D(r, a, o, l, N(u));
|
|
1268
|
+
var d = u(s, l, r, a, o + "." + l, i);
|
|
1269
|
+
if (d) return d;
|
|
1270
|
+
}
|
|
1271
|
+
return null;
|
|
1272
|
+
}
|
|
1273
|
+
return g(t);
|
|
1274
|
+
}
|
|
1275
|
+
function k(e) {
|
|
1276
|
+
function t(t, n, o, s, c) {
|
|
1277
|
+
var l = t[n], u = M(l);
|
|
1278
|
+
if (u !== "object") return new h("Invalid " + s + " `" + c + "` of type `" + u + "` " + ("supplied to `" + o + "`, expected `object`."));
|
|
1279
|
+
for (var d in r({}, t[n], e)) {
|
|
1280
|
+
var f = e[d];
|
|
1281
|
+
if (a(e, d) && typeof f != "function") return D(o, s, c, d, N(f));
|
|
1282
|
+
if (!f) return new h("Invalid " + s + " `" + c + "` key `" + d + "` supplied to `" + o + "`.\nBad object: " + JSON.stringify(t[n], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(e), null, " "));
|
|
1283
|
+
var p = f(l, d, o, s, c + "." + d, i);
|
|
1284
|
+
if (p) return p;
|
|
1285
|
+
}
|
|
1286
|
+
return null;
|
|
1287
|
+
}
|
|
1288
|
+
return g(t);
|
|
1289
|
+
}
|
|
1290
|
+
function A(t) {
|
|
1291
|
+
switch (typeof t) {
|
|
1292
|
+
case "number":
|
|
1293
|
+
case "string":
|
|
1294
|
+
case "undefined": return !0;
|
|
1295
|
+
case "boolean": return !t;
|
|
1296
|
+
case "object":
|
|
1297
|
+
if (Array.isArray(t)) return t.every(A);
|
|
1298
|
+
if (t === null || e(t)) return !0;
|
|
1299
|
+
var n = d(t);
|
|
1300
|
+
if (n) {
|
|
1301
|
+
var r = n.call(t), i;
|
|
1302
|
+
if (n !== t.entries) {
|
|
1303
|
+
for (; !(i = r.next()).done;) if (!A(i.value)) return !1;
|
|
1304
|
+
} else for (; !(i = r.next()).done;) {
|
|
1305
|
+
var a = i.value;
|
|
1306
|
+
if (a && !A(a[1])) return !1;
|
|
1307
|
+
}
|
|
1308
|
+
} else return !1;
|
|
1309
|
+
return !0;
|
|
1310
|
+
default: return !1;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
function j(e, t) {
|
|
1314
|
+
return e === "symbol" ? !0 : t ? t["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && t instanceof Symbol : !1;
|
|
1315
|
+
}
|
|
1316
|
+
function M(e) {
|
|
1317
|
+
var t = typeof e;
|
|
1318
|
+
return Array.isArray(e) ? "array" : e instanceof RegExp ? "object" : j(t, e) ? "symbol" : t;
|
|
1319
|
+
}
|
|
1320
|
+
function N(e) {
|
|
1321
|
+
if (e == null) return "" + e;
|
|
1322
|
+
var t = M(e);
|
|
1323
|
+
if (t === "object") {
|
|
1324
|
+
if (e instanceof Date) return "date";
|
|
1325
|
+
if (e instanceof RegExp) return "regexp";
|
|
1326
|
+
}
|
|
1327
|
+
return t;
|
|
1328
|
+
}
|
|
1329
|
+
function P(e) {
|
|
1330
|
+
var t = N(e);
|
|
1331
|
+
switch (t) {
|
|
1332
|
+
case "array":
|
|
1333
|
+
case "object": return "an " + t;
|
|
1334
|
+
case "boolean":
|
|
1335
|
+
case "date":
|
|
1336
|
+
case "regexp": return "a " + t;
|
|
1337
|
+
default: return t;
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
function F(e) {
|
|
1341
|
+
return !e.constructor || !e.constructor.name ? f : e.constructor.name;
|
|
1342
|
+
}
|
|
1343
|
+
return p.checkPropTypes = o, p.resetWarningCache = o.resetWarningCache, p.PropTypes = p, p;
|
|
1344
|
+
};
|
|
1345
|
+
})), Ze = /* @__PURE__ */ w(((e, t) => {
|
|
1346
|
+
var n = qe();
|
|
1347
|
+
function r() {}
|
|
1348
|
+
function i() {}
|
|
1349
|
+
i.resetWarningCache = r, t.exports = function() {
|
|
1350
|
+
function e(e, t, r, i, a, o) {
|
|
1351
|
+
if (o !== n) {
|
|
1352
|
+
var s = /* @__PURE__ */ Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
|
1353
|
+
throw s.name = "Invariant Violation", s;
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
e.isRequired = e;
|
|
1357
|
+
function t() {
|
|
1358
|
+
return e;
|
|
1359
|
+
}
|
|
1360
|
+
var a = {
|
|
1361
|
+
array: e,
|
|
1362
|
+
bigint: e,
|
|
1363
|
+
bool: e,
|
|
1364
|
+
func: e,
|
|
1365
|
+
number: e,
|
|
1366
|
+
object: e,
|
|
1367
|
+
string: e,
|
|
1368
|
+
symbol: e,
|
|
1369
|
+
any: e,
|
|
1370
|
+
arrayOf: t,
|
|
1371
|
+
element: e,
|
|
1372
|
+
elementType: e,
|
|
1373
|
+
instanceOf: t,
|
|
1374
|
+
node: e,
|
|
1375
|
+
objectOf: t,
|
|
1376
|
+
oneOf: t,
|
|
1377
|
+
oneOfType: t,
|
|
1378
|
+
shape: t,
|
|
1379
|
+
exact: t,
|
|
1380
|
+
checkPropTypes: i,
|
|
1381
|
+
resetWarningCache: r
|
|
1382
|
+
};
|
|
1383
|
+
return a.PropTypes = a, a;
|
|
1384
|
+
};
|
|
1385
|
+
})), Qe = /* @__PURE__ */ w(((e, t) => {
|
|
1386
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1387
|
+
var n = Ge();
|
|
1388
|
+
t.exports = Xe()(n.isElement, !0);
|
|
1389
|
+
} else t.exports = Ze()();
|
|
1390
|
+
})), $e = { disabled: !1 }, X = /* @__PURE__ */ E(Qe()), et = process.env.NODE_ENV === "production" ? null : X.default.oneOfType([X.default.number, X.default.shape({
|
|
1391
|
+
enter: X.default.number,
|
|
1392
|
+
exit: X.default.number,
|
|
1393
|
+
appear: X.default.number
|
|
1394
|
+
}).isRequired]);
|
|
1395
|
+
process.env.NODE_ENV === "production" || X.default.oneOfType([
|
|
1396
|
+
X.default.string,
|
|
1397
|
+
X.default.shape({
|
|
1398
|
+
enter: X.default.string,
|
|
1399
|
+
exit: X.default.string,
|
|
1400
|
+
active: X.default.string
|
|
1401
|
+
}),
|
|
1402
|
+
X.default.shape({
|
|
1403
|
+
enter: X.default.string,
|
|
1404
|
+
enterDone: X.default.string,
|
|
1405
|
+
enterActive: X.default.string,
|
|
1406
|
+
exit: X.default.string,
|
|
1407
|
+
exitDone: X.default.string,
|
|
1408
|
+
exitActive: X.default.string
|
|
1409
|
+
})
|
|
1410
|
+
]);
|
|
1411
|
+
//#endregion
|
|
1412
|
+
//#region node_modules/react-transition-group/esm/TransitionGroupContext.js
|
|
1413
|
+
var tt = t.createContext(null), nt = function(e) {
|
|
1414
|
+
return e.scrollTop;
|
|
1415
|
+
}, rt = "unmounted", it = "exited", at = "entering", ot = "entered", st = "exiting", Z = /*#__PURE__*/ function(e) {
|
|
1416
|
+
ke(n, e);
|
|
1417
|
+
function n(t, n) {
|
|
1418
|
+
var r = e.call(this, t, n) || this, i = n, a = i && !i.isMounting ? t.enter : t.appear, o;
|
|
1419
|
+
return r.appearStatus = null, t.in ? a ? (o = it, r.appearStatus = at) : o = ot : o = t.unmountOnExit || t.mountOnEnter ? rt : it, r.state = { status: o }, r.nextCallback = null, r;
|
|
1420
|
+
}
|
|
1421
|
+
n.getDerivedStateFromProps = function(e, t) {
|
|
1422
|
+
return e.in && t.status === "unmounted" ? { status: it } : null;
|
|
1423
|
+
};
|
|
1424
|
+
var r = n.prototype;
|
|
1425
|
+
return r.componentDidMount = function() {
|
|
1426
|
+
this.updateStatus(!0, this.appearStatus);
|
|
1427
|
+
}, r.componentDidUpdate = function(e) {
|
|
1428
|
+
var t = null;
|
|
1429
|
+
if (e !== this.props) {
|
|
1430
|
+
var n = this.state.status;
|
|
1431
|
+
this.props.in ? n !== "entering" && n !== "entered" && (t = at) : (n === "entering" || n === "entered") && (t = st);
|
|
1432
|
+
}
|
|
1433
|
+
this.updateStatus(!1, t);
|
|
1434
|
+
}, r.componentWillUnmount = function() {
|
|
1435
|
+
this.cancelNextCallback();
|
|
1436
|
+
}, r.getTimeouts = function() {
|
|
1437
|
+
var e = this.props.timeout, t = n = r = e, n, r;
|
|
1438
|
+
return e != null && typeof e != "number" && (t = e.exit, n = e.enter, r = e.appear === void 0 ? n : e.appear), {
|
|
1439
|
+
exit: t,
|
|
1440
|
+
enter: n,
|
|
1441
|
+
appear: r
|
|
1442
|
+
};
|
|
1443
|
+
}, r.updateStatus = function(e, t) {
|
|
1444
|
+
if (e === void 0 && (e = !1), t !== null) if (this.cancelNextCallback(), t === "entering") {
|
|
1445
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
1446
|
+
var n = this.props.nodeRef ? this.props.nodeRef.current : _.findDOMNode(this);
|
|
1447
|
+
n && nt(n);
|
|
1448
|
+
}
|
|
1449
|
+
this.performEnter(e);
|
|
1450
|
+
} else this.performExit();
|
|
1451
|
+
else this.props.unmountOnExit && this.state.status === "exited" && this.setState({ status: rt });
|
|
1452
|
+
}, r.performEnter = function(e) {
|
|
1453
|
+
var t = this, n = this.props.enter, r = this.context ? this.context.isMounting : e, i = this.props.nodeRef ? [r] : [_.findDOMNode(this), r], a = i[0], o = i[1], s = this.getTimeouts(), c = r ? s.appear : s.enter;
|
|
1454
|
+
if (!e && !n || $e.disabled) {
|
|
1455
|
+
this.safeSetState({ status: ot }, function() {
|
|
1456
|
+
t.props.onEntered(a);
|
|
1457
|
+
});
|
|
1458
|
+
return;
|
|
1459
|
+
}
|
|
1460
|
+
this.props.onEnter(a, o), this.safeSetState({ status: at }, function() {
|
|
1461
|
+
t.props.onEntering(a, o), t.onTransitionEnd(c, function() {
|
|
1462
|
+
t.safeSetState({ status: ot }, function() {
|
|
1463
|
+
t.props.onEntered(a, o);
|
|
1464
|
+
});
|
|
1465
|
+
});
|
|
1466
|
+
});
|
|
1467
|
+
}, r.performExit = function() {
|
|
1468
|
+
var e = this, t = this.props.exit, n = this.getTimeouts(), r = this.props.nodeRef ? void 0 : _.findDOMNode(this);
|
|
1469
|
+
if (!t || $e.disabled) {
|
|
1470
|
+
this.safeSetState({ status: it }, function() {
|
|
1471
|
+
e.props.onExited(r);
|
|
1472
|
+
});
|
|
1473
|
+
return;
|
|
1474
|
+
}
|
|
1475
|
+
this.props.onExit(r), this.safeSetState({ status: st }, function() {
|
|
1476
|
+
e.props.onExiting(r), e.onTransitionEnd(n.exit, function() {
|
|
1477
|
+
e.safeSetState({ status: it }, function() {
|
|
1478
|
+
e.props.onExited(r);
|
|
1479
|
+
});
|
|
1480
|
+
});
|
|
1481
|
+
});
|
|
1482
|
+
}, r.cancelNextCallback = function() {
|
|
1483
|
+
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
1484
|
+
}, r.safeSetState = function(e, t) {
|
|
1485
|
+
t = this.setNextCallback(t), this.setState(e, t);
|
|
1486
|
+
}, r.setNextCallback = function(e) {
|
|
1487
|
+
var t = this, n = !0;
|
|
1488
|
+
return this.nextCallback = function(r) {
|
|
1489
|
+
n && (n = !1, t.nextCallback = null, e(r));
|
|
1490
|
+
}, this.nextCallback.cancel = function() {
|
|
1491
|
+
n = !1;
|
|
1492
|
+
}, this.nextCallback;
|
|
1493
|
+
}, r.onTransitionEnd = function(e, t) {
|
|
1494
|
+
this.setNextCallback(t);
|
|
1495
|
+
var n = this.props.nodeRef ? this.props.nodeRef.current : _.findDOMNode(this), r = e == null && !this.props.addEndListener;
|
|
1496
|
+
if (!n || r) {
|
|
1497
|
+
setTimeout(this.nextCallback, 0);
|
|
1498
|
+
return;
|
|
1499
|
+
}
|
|
1500
|
+
if (this.props.addEndListener) {
|
|
1501
|
+
var i = this.props.nodeRef ? [this.nextCallback] : [n, this.nextCallback], a = i[0], o = i[1];
|
|
1502
|
+
this.props.addEndListener(a, o);
|
|
1503
|
+
}
|
|
1504
|
+
e != null && setTimeout(this.nextCallback, e);
|
|
1505
|
+
}, r.render = function() {
|
|
1506
|
+
var e = this.state.status;
|
|
1507
|
+
if (e === "unmounted") return null;
|
|
1508
|
+
var n = this.props, r = n.children;
|
|
1509
|
+
n.in, n.mountOnEnter, n.unmountOnExit, n.appear, n.enter, n.exit, n.timeout, n.addEndListener, n.onEnter, n.onEntering, n.onEntered, n.onExit, n.onExiting, n.onExited, n.nodeRef;
|
|
1510
|
+
var i = De(n, [
|
|
1511
|
+
"children",
|
|
1512
|
+
"in",
|
|
1513
|
+
"mountOnEnter",
|
|
1514
|
+
"unmountOnExit",
|
|
1515
|
+
"appear",
|
|
1516
|
+
"enter",
|
|
1517
|
+
"exit",
|
|
1518
|
+
"timeout",
|
|
1519
|
+
"addEndListener",
|
|
1520
|
+
"onEnter",
|
|
1521
|
+
"onEntering",
|
|
1522
|
+
"onEntered",
|
|
1523
|
+
"onExit",
|
|
1524
|
+
"onExiting",
|
|
1525
|
+
"onExited",
|
|
1526
|
+
"nodeRef"
|
|
1527
|
+
]);
|
|
1528
|
+
return /*#__PURE__*/ t.createElement(tt.Provider, { value: null }, typeof r == "function" ? r(e, i) : t.cloneElement(t.Children.only(r), i));
|
|
1529
|
+
}, n;
|
|
1530
|
+
}(t.Component);
|
|
1531
|
+
Z.contextType = tt, Z.propTypes = process.env.NODE_ENV === "production" ? {} : {
|
|
1532
|
+
nodeRef: X.default.shape({ current: typeof Element > "u" ? X.default.any : function(e, t, n, r, i, a) {
|
|
1533
|
+
var o = e[t];
|
|
1534
|
+
return X.default.instanceOf(o && "ownerDocument" in o ? o.ownerDocument.defaultView.Element : Element)(e, t, n, r, i, a);
|
|
1535
|
+
} }),
|
|
1536
|
+
children: X.default.oneOfType([X.default.func.isRequired, X.default.element.isRequired]).isRequired,
|
|
1537
|
+
in: X.default.bool,
|
|
1538
|
+
mountOnEnter: X.default.bool,
|
|
1539
|
+
unmountOnExit: X.default.bool,
|
|
1540
|
+
appear: X.default.bool,
|
|
1541
|
+
enter: X.default.bool,
|
|
1542
|
+
exit: X.default.bool,
|
|
1543
|
+
timeout: function(e) {
|
|
1544
|
+
var t = et;
|
|
1545
|
+
e.addEndListener || (t = t.isRequired);
|
|
1546
|
+
var n = [...arguments].slice(1);
|
|
1547
|
+
return t.apply(void 0, [e].concat(n));
|
|
1548
|
+
},
|
|
1549
|
+
addEndListener: X.default.func,
|
|
1550
|
+
onEnter: X.default.func,
|
|
1551
|
+
onEntering: X.default.func,
|
|
1552
|
+
onEntered: X.default.func,
|
|
1553
|
+
onExit: X.default.func,
|
|
1554
|
+
onExiting: X.default.func,
|
|
1555
|
+
onExited: X.default.func
|
|
1556
|
+
};
|
|
1557
|
+
function ct() {}
|
|
1558
|
+
Z.defaultProps = {
|
|
1559
|
+
in: !1,
|
|
1560
|
+
mountOnEnter: !1,
|
|
1561
|
+
unmountOnExit: !1,
|
|
1562
|
+
appear: !1,
|
|
1563
|
+
enter: !0,
|
|
1564
|
+
exit: !0,
|
|
1565
|
+
onEnter: ct,
|
|
1566
|
+
onEntering: ct,
|
|
1567
|
+
onEntered: ct,
|
|
1568
|
+
onExit: ct,
|
|
1569
|
+
onExiting: ct,
|
|
1570
|
+
onExited: ct
|
|
1571
|
+
}, Z.UNMOUNTED = rt, Z.EXITED = it, Z.ENTERING = at, Z.ENTERED = ot, Z.EXITING = st;
|
|
1572
|
+
//#endregion
|
|
1573
|
+
//#region node_modules/@restart/ui/esm/utils.js
|
|
1574
|
+
function lt(e) {
|
|
1575
|
+
return e.code === "Escape" || e.keyCode === 27;
|
|
1576
|
+
}
|
|
1577
|
+
function ut() {
|
|
1578
|
+
let t = e.version.split(".");
|
|
1579
|
+
return {
|
|
1580
|
+
major: +t[0],
|
|
1581
|
+
minor: +t[1],
|
|
1582
|
+
patch: +t[2]
|
|
1583
|
+
};
|
|
1584
|
+
}
|
|
1585
|
+
function dt(e) {
|
|
1586
|
+
if (!e || typeof e == "function") return null;
|
|
1587
|
+
let { major: t } = ut();
|
|
1588
|
+
return t >= 19 ? e.props.ref : e.ref;
|
|
1589
|
+
}
|
|
1590
|
+
//#endregion
|
|
1591
|
+
//#region node_modules/dom-helpers/esm/canUseDOM.js
|
|
1592
|
+
var ft = !!(typeof window < "u" && window.document && window.document.createElement), pt = !1, mt = !1;
|
|
1593
|
+
try {
|
|
1594
|
+
var ht = {
|
|
1595
|
+
get passive() {
|
|
1596
|
+
return pt = !0;
|
|
1597
|
+
},
|
|
1598
|
+
get once() {
|
|
1599
|
+
return mt = pt = !0;
|
|
1600
|
+
}
|
|
1601
|
+
};
|
|
1602
|
+
ft && (window.addEventListener("test", ht, ht), window.removeEventListener("test", ht, !0));
|
|
1603
|
+
} catch {}
|
|
1604
|
+
function gt(e, t, n, r) {
|
|
1605
|
+
if (r && typeof r != "boolean" && !mt) {
|
|
1606
|
+
var i = r.once, a = r.capture, o = n;
|
|
1607
|
+
!mt && i && (o = n.__once || function e(r) {
|
|
1608
|
+
this.removeEventListener(t, e, a), n.call(this, r);
|
|
1609
|
+
}, n.__once = o), e.addEventListener(t, o, pt ? r : a);
|
|
1610
|
+
}
|
|
1611
|
+
e.addEventListener(t, n, r);
|
|
1612
|
+
}
|
|
1613
|
+
//#endregion
|
|
1614
|
+
//#region node_modules/dom-helpers/esm/removeEventListener.js
|
|
1615
|
+
function _t(e, t, n, r) {
|
|
1616
|
+
var i = r && typeof r != "boolean" ? r.capture : r;
|
|
1617
|
+
e.removeEventListener(t, n, i), n.__once && e.removeEventListener(t, n.__once, i);
|
|
1618
|
+
}
|
|
1619
|
+
//#endregion
|
|
1620
|
+
//#region node_modules/dom-helpers/esm/listen.js
|
|
1621
|
+
function vt(e, t, n, r) {
|
|
1622
|
+
return gt(e, t, n, r), function() {
|
|
1623
|
+
_t(e, t, n, r);
|
|
1624
|
+
};
|
|
1625
|
+
}
|
|
1626
|
+
//#endregion
|
|
1627
|
+
//#region node_modules/dom-helpers/esm/triggerEvent.js
|
|
1628
|
+
function yt(e, t, n, r) {
|
|
1629
|
+
if (n === void 0 && (n = !1), r === void 0 && (r = !0), e) {
|
|
1630
|
+
var i = document.createEvent("HTMLEvents");
|
|
1631
|
+
i.initEvent(t, n, r), e.dispatchEvent(i);
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
//#endregion
|
|
1635
|
+
//#region node_modules/dom-helpers/esm/transitionEnd.js
|
|
1636
|
+
function bt(e) {
|
|
1637
|
+
var t = Y(e, "transitionDuration") || "", n = t.indexOf("ms") === -1 ? 1e3 : 1;
|
|
1638
|
+
return parseFloat(t) * n;
|
|
1639
|
+
}
|
|
1640
|
+
function xt(e, t, n) {
|
|
1641
|
+
n === void 0 && (n = 5);
|
|
1642
|
+
var r = !1, i = setTimeout(function() {
|
|
1643
|
+
r || yt(e, "transitionend", !0);
|
|
1644
|
+
}, t + n), a = vt(e, "transitionend", function() {
|
|
1645
|
+
r = !0;
|
|
1646
|
+
}, { once: !0 });
|
|
1647
|
+
return function() {
|
|
1648
|
+
clearTimeout(i), a();
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
function St(e, t, n, r) {
|
|
1652
|
+
n ??= bt(e) || 0;
|
|
1653
|
+
var i = xt(e, n, r), a = vt(e, "transitionend", t);
|
|
1654
|
+
return function() {
|
|
1655
|
+
i(), a();
|
|
1656
|
+
};
|
|
1657
|
+
}
|
|
1658
|
+
//#endregion
|
|
1659
|
+
//#region node_modules/react-bootstrap/esm/transitionEndListener.js
|
|
1660
|
+
function Ct(e, t) {
|
|
1661
|
+
let n = Y(e, t) || "", r = n.indexOf("ms") === -1 ? 1e3 : 1;
|
|
1662
|
+
return parseFloat(n) * r;
|
|
1663
|
+
}
|
|
1664
|
+
function wt(e, t) {
|
|
1665
|
+
let n = St(e, (r) => {
|
|
1666
|
+
r.target === e && (n(), t(r));
|
|
1667
|
+
}, Ct(e, "transitionDuration") + Ct(e, "transitionDelay"));
|
|
1668
|
+
}
|
|
1669
|
+
//#endregion
|
|
1670
|
+
//#region node_modules/react-bootstrap/esm/triggerBrowserReflow.js
|
|
1671
|
+
function Tt(e) {
|
|
1672
|
+
e.offsetHeight;
|
|
1673
|
+
}
|
|
1674
|
+
//#endregion
|
|
1675
|
+
//#region node_modules/@restart/hooks/esm/useMergedRefs.js
|
|
1676
|
+
var Et = (e) => !e || typeof e == "function" ? e : (t) => {
|
|
1677
|
+
e.current = t;
|
|
1678
|
+
};
|
|
1679
|
+
function Dt(e, t) {
|
|
1680
|
+
let n = Et(e), r = Et(t);
|
|
1681
|
+
return (e) => {
|
|
1682
|
+
n && n(e), r && r(e);
|
|
1683
|
+
};
|
|
1684
|
+
}
|
|
1685
|
+
function Ot(e, t) {
|
|
1686
|
+
return d(() => Dt(e, t), [e, t]);
|
|
1687
|
+
}
|
|
1688
|
+
//#endregion
|
|
1689
|
+
//#region node_modules/react-bootstrap/esm/safeFindDOMNode.js
|
|
1690
|
+
function kt(e) {
|
|
1691
|
+
return e && "setState" in e ? _.findDOMNode(e) : e ?? null;
|
|
1692
|
+
}
|
|
1693
|
+
//#endregion
|
|
1694
|
+
//#region node_modules/react-bootstrap/esm/TransitionWrapper.js
|
|
1695
|
+
var At = /*#__PURE__*/ t.forwardRef(({ onEnter: e, onEntering: n, onEntered: r, onExit: i, onExiting: o, onExited: s, addEndListener: c, children: l, childRef: u, ...d }, p) => {
|
|
1696
|
+
let m = f(null), g = Ot(m, u), _ = (e) => {
|
|
1697
|
+
g(kt(e));
|
|
1698
|
+
}, v = (e) => (t) => {
|
|
1699
|
+
e && m.current && e(m.current, t);
|
|
1700
|
+
}, y = a(v(e), [e]), b = a(v(n), [n]), x = a(v(r), [r]), S = a(v(i), [i]), C = a(v(o), [o]), w = a(v(s), [s]), T = a(v(c), [c]);
|
|
1701
|
+
return /*#__PURE__*/ h(Z, {
|
|
1702
|
+
ref: p,
|
|
1703
|
+
...d,
|
|
1704
|
+
onEnter: y,
|
|
1705
|
+
onEntered: x,
|
|
1706
|
+
onEntering: b,
|
|
1707
|
+
onExit: S,
|
|
1708
|
+
onExited: w,
|
|
1709
|
+
onExiting: C,
|
|
1710
|
+
addEndListener: T,
|
|
1711
|
+
nodeRef: m,
|
|
1712
|
+
children: typeof l == "function" ? (e, t) => l(e, {
|
|
1713
|
+
...t,
|
|
1714
|
+
ref: _
|
|
1715
|
+
}) : /*#__PURE__*/ t.cloneElement(l, { ref: _ })
|
|
1716
|
+
});
|
|
1717
|
+
});
|
|
1718
|
+
At.displayName = "TransitionWrapper";
|
|
1719
|
+
//#endregion
|
|
1720
|
+
//#region node_modules/@restart/hooks/esm/useCommittedRef.js
|
|
1721
|
+
function jt(e) {
|
|
1722
|
+
let t = f(e);
|
|
1723
|
+
return s(() => {
|
|
1724
|
+
t.current = e;
|
|
1725
|
+
}, [e]), t;
|
|
1726
|
+
}
|
|
1727
|
+
//#endregion
|
|
1728
|
+
//#region node_modules/@restart/hooks/esm/useEventCallback.js
|
|
1729
|
+
function Mt(e) {
|
|
1730
|
+
let t = jt(e);
|
|
1731
|
+
return a(function(...e) {
|
|
1732
|
+
return t.current && t.current(...e);
|
|
1733
|
+
}, [t]);
|
|
1734
|
+
}
|
|
1735
|
+
//#endregion
|
|
1736
|
+
//#region node_modules/react-bootstrap/esm/divWithClassName.js
|
|
1737
|
+
var Q = /* @__PURE__ */ E(Ee()), Nt = ((t) => /*#__PURE__*/ e.forwardRef((e, n) => /*#__PURE__*/ h("div", {
|
|
1738
|
+
...e,
|
|
1739
|
+
ref: n,
|
|
1740
|
+
className: (0, Q.default)(e.className, t)
|
|
1741
|
+
})));
|
|
1742
|
+
//#endregion
|
|
1743
|
+
//#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useCommittedRef.js
|
|
1744
|
+
function Pt(e) {
|
|
1745
|
+
let t = f(e);
|
|
1746
|
+
return s(() => {
|
|
1747
|
+
t.current = e;
|
|
1748
|
+
}, [e]), t;
|
|
1749
|
+
}
|
|
1750
|
+
//#endregion
|
|
1751
|
+
//#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useEventCallback.js
|
|
1752
|
+
function $(e) {
|
|
1753
|
+
let t = Pt(e);
|
|
1754
|
+
return a(function(...e) {
|
|
1755
|
+
return t.current && t.current(...e);
|
|
1756
|
+
}, [t]);
|
|
1757
|
+
}
|
|
1758
|
+
//#endregion
|
|
1759
|
+
//#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMounted.js
|
|
1760
|
+
function Ft() {
|
|
1761
|
+
let e = f(!0), t = f(() => e.current);
|
|
1762
|
+
return s(() => (e.current = !0, () => {
|
|
1763
|
+
e.current = !1;
|
|
1764
|
+
}), []), t.current;
|
|
1765
|
+
}
|
|
1766
|
+
//#endregion
|
|
1767
|
+
//#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/usePrevious.js
|
|
1768
|
+
function It(e) {
|
|
1769
|
+
let t = f(null);
|
|
1770
|
+
return s(() => {
|
|
1771
|
+
t.current = e;
|
|
1772
|
+
}), t.current;
|
|
1773
|
+
}
|
|
1774
|
+
//#endregion
|
|
1775
|
+
//#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useIsomorphicEffect.js
|
|
1776
|
+
var Lt = typeof global < "u" && global.navigator && global.navigator.product === "ReactNative", Rt = typeof document < "u" || Lt ? u : s, zt = ["as", "disabled"];
|
|
1777
|
+
function Bt(e, t) {
|
|
1778
|
+
if (e == null) return {};
|
|
1779
|
+
var n = {};
|
|
1780
|
+
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
1781
|
+
if (t.indexOf(r) >= 0) continue;
|
|
1782
|
+
n[r] = e[r];
|
|
1783
|
+
}
|
|
1784
|
+
return n;
|
|
1785
|
+
}
|
|
1786
|
+
function Vt(e) {
|
|
1787
|
+
return !e || e.trim() === "#";
|
|
1788
|
+
}
|
|
1789
|
+
function Ht({ tagName: e, disabled: t, href: n, target: r, rel: i, role: a, onClick: o, tabIndex: s = 0, type: c }) {
|
|
1790
|
+
e ||= n != null || r != null || i != null ? "a" : "button";
|
|
1791
|
+
let l = { tagName: e };
|
|
1792
|
+
if (e === "button") return [{
|
|
1793
|
+
type: c || "button",
|
|
1794
|
+
disabled: t
|
|
1795
|
+
}, l];
|
|
1796
|
+
let u = (r) => {
|
|
1797
|
+
if ((t || e === "a" && Vt(n)) && r.preventDefault(), t) {
|
|
1798
|
+
r.stopPropagation();
|
|
1799
|
+
return;
|
|
1800
|
+
}
|
|
1801
|
+
o?.(r);
|
|
1802
|
+
};
|
|
1803
|
+
return e === "a" && (n ||= "#", t && (n = void 0)), [{
|
|
1804
|
+
role: a ?? "button",
|
|
1805
|
+
disabled: void 0,
|
|
1806
|
+
tabIndex: t ? void 0 : s,
|
|
1807
|
+
href: n,
|
|
1808
|
+
target: e === "a" ? r : void 0,
|
|
1809
|
+
"aria-disabled": t || void 0,
|
|
1810
|
+
rel: e === "a" ? i : void 0,
|
|
1811
|
+
onClick: u,
|
|
1812
|
+
onKeyDown: (e) => {
|
|
1813
|
+
e.key === " " && (e.preventDefault(), u(e));
|
|
1814
|
+
}
|
|
1815
|
+
}, l];
|
|
1816
|
+
}
|
|
1817
|
+
var Ut = /*#__PURE__*/ e.forwardRef((e, t) => {
|
|
1818
|
+
let { as: n, disabled: r } = e, i = Bt(e, zt), [a, { tagName: o }] = Ht(Object.assign({
|
|
1819
|
+
tagName: n,
|
|
1820
|
+
disabled: r
|
|
1821
|
+
}, i));
|
|
1822
|
+
return /*#__PURE__*/ h(o, Object.assign({}, i, a, { ref: t }));
|
|
1823
|
+
});
|
|
1824
|
+
Ut.displayName = "Button";
|
|
1825
|
+
//#endregion
|
|
1826
|
+
//#region node_modules/react-bootstrap/esm/Fade.js
|
|
1827
|
+
var Wt = {
|
|
1828
|
+
[at]: "show",
|
|
1829
|
+
[ot]: "show"
|
|
1830
|
+
}, Gt = /*#__PURE__*/ e.forwardRef(({ className: t, children: n, transitionClasses: r = {}, onEnter: i, ...o }, s) => {
|
|
1831
|
+
let c = {
|
|
1832
|
+
in: !1,
|
|
1833
|
+
timeout: 300,
|
|
1834
|
+
mountOnEnter: !1,
|
|
1835
|
+
unmountOnExit: !1,
|
|
1836
|
+
appear: !1,
|
|
1837
|
+
...o
|
|
1838
|
+
}, l = a((e, t) => {
|
|
1839
|
+
Tt(e), i?.(e, t);
|
|
1840
|
+
}, [i]);
|
|
1841
|
+
return /*#__PURE__*/ h(At, {
|
|
1842
|
+
ref: s,
|
|
1843
|
+
addEndListener: wt,
|
|
1844
|
+
...c,
|
|
1845
|
+
onEnter: l,
|
|
1846
|
+
childRef: dt(n),
|
|
1847
|
+
children: (i, a) => /*#__PURE__*/ e.cloneElement(n, {
|
|
1848
|
+
...a,
|
|
1849
|
+
className: (0, Q.default)("fade", t, n.props.className, Wt[i], r[i])
|
|
1850
|
+
})
|
|
1851
|
+
});
|
|
1852
|
+
});
|
|
1853
|
+
Gt.displayName = "Fade";
|
|
1854
|
+
//#endregion
|
|
1855
|
+
//#region node_modules/react-bootstrap/esm/CloseButton.js
|
|
1856
|
+
var Kt = {
|
|
1857
|
+
"aria-label": X.default.string,
|
|
1858
|
+
onClick: X.default.func,
|
|
1859
|
+
variant: X.default.oneOf(["white"])
|
|
1860
|
+
}, qt = /*#__PURE__*/ e.forwardRef(({ className: e, variant: t, "aria-label": n = "Close", ...r }, i) => /*#__PURE__*/ h("button", {
|
|
1861
|
+
ref: i,
|
|
1862
|
+
type: "button",
|
|
1863
|
+
className: (0, Q.default)("btn-close", t && `btn-close-${t}`, e),
|
|
1864
|
+
"aria-label": n,
|
|
1865
|
+
...r
|
|
1866
|
+
}));
|
|
1867
|
+
qt.displayName = "CloseButton", qt.propTypes = Kt;
|
|
1868
|
+
//#endregion
|
|
1869
|
+
//#region node_modules/react-bootstrap/esm/Button.js
|
|
1870
|
+
var Jt = /*#__PURE__*/ e.forwardRef(({ as: e, bsPrefix: t, variant: n = "primary", size: r, active: i = !1, disabled: a = !1, className: o, ...s }, c) => {
|
|
1871
|
+
let l = J(t, "btn"), [u, { tagName: d }] = Ht({
|
|
1872
|
+
tagName: e,
|
|
1873
|
+
disabled: a,
|
|
1874
|
+
...s
|
|
1875
|
+
});
|
|
1876
|
+
return /*#__PURE__*/ h(d, {
|
|
1877
|
+
...u,
|
|
1878
|
+
...s,
|
|
1879
|
+
ref: c,
|
|
1880
|
+
disabled: a,
|
|
1881
|
+
className: (0, Q.default)(o, l, i && "active", n && `${l}-${n}`, r && `${l}-${r}`, s.href && a && "disabled")
|
|
1882
|
+
});
|
|
1883
|
+
});
|
|
1884
|
+
Jt.displayName = "Button";
|
|
1885
|
+
//#endregion
|
|
1886
|
+
//#region node_modules/@restart/hooks/esm/useUpdatedRef.js
|
|
1887
|
+
function Yt(e) {
|
|
1888
|
+
let t = f(e);
|
|
1889
|
+
return t.current = e, t;
|
|
1890
|
+
}
|
|
1891
|
+
//#endregion
|
|
1892
|
+
//#region node_modules/@restart/hooks/esm/useWillUnmount.js
|
|
1893
|
+
function Xt(e) {
|
|
1894
|
+
let t = Yt(e);
|
|
1895
|
+
s(() => () => t.current(), []);
|
|
1896
|
+
}
|
|
1897
|
+
//#endregion
|
|
1898
|
+
//#region node_modules/dom-helpers/esm/querySelectorAll.js
|
|
1899
|
+
var Zt = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
1900
|
+
function Qt(e, t) {
|
|
1901
|
+
return Zt(e.querySelectorAll(t));
|
|
1902
|
+
}
|
|
1903
|
+
//#endregion
|
|
1904
|
+
//#region node_modules/dom-helpers/esm/contains.js
|
|
1905
|
+
function $t(e, t) {
|
|
1906
|
+
if (e.contains) return e.contains(t);
|
|
1907
|
+
if (e.compareDocumentPosition) return e === t || !!(e.compareDocumentPosition(t) & 16);
|
|
1908
|
+
}
|
|
1909
|
+
//#endregion
|
|
1910
|
+
//#region node_modules/@restart/ui/esm/DataKey.js
|
|
1911
|
+
var en = "data-rr-ui-";
|
|
1912
|
+
function tn(e) {
|
|
1913
|
+
return `${en}${e}`;
|
|
1914
|
+
}
|
|
1915
|
+
//#endregion
|
|
1916
|
+
//#region node_modules/@restart/ui/esm/useWindow.js
|
|
1917
|
+
var nn = /*#__PURE__*/ r(ft ? window : void 0);
|
|
1918
|
+
nn.Provider;
|
|
1919
|
+
function rn() {
|
|
1920
|
+
return o(nn);
|
|
1921
|
+
}
|
|
1922
|
+
//#endregion
|
|
1923
|
+
//#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useMergedRefs.js
|
|
1924
|
+
var an = (e) => !e || typeof e == "function" ? e : (t) => {
|
|
1925
|
+
e.current = t;
|
|
1926
|
+
};
|
|
1927
|
+
function on(e, t) {
|
|
1928
|
+
let n = an(e), r = an(t);
|
|
1929
|
+
return (e) => {
|
|
1930
|
+
n && n(e), r && r(e);
|
|
1931
|
+
};
|
|
1932
|
+
}
|
|
1933
|
+
function sn(e, t) {
|
|
1934
|
+
return d(() => on(e, t), [e, t]);
|
|
1935
|
+
}
|
|
1936
|
+
//#endregion
|
|
1937
|
+
//#region node_modules/dom-helpers/esm/scrollbarSize.js
|
|
1938
|
+
var cn;
|
|
1939
|
+
function ln(e) {
|
|
1940
|
+
if ((!cn && cn !== 0 || e) && ft) {
|
|
1941
|
+
var t = document.createElement("div");
|
|
1942
|
+
t.style.position = "absolute", t.style.top = "-9999px", t.style.width = "50px", t.style.height = "50px", t.style.overflow = "scroll", document.body.appendChild(t), cn = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
|
|
1943
|
+
}
|
|
1944
|
+
return cn;
|
|
1945
|
+
}
|
|
1946
|
+
//#endregion
|
|
1947
|
+
//#region node_modules/@restart/hooks/esm/useCallbackRef.js
|
|
1948
|
+
function un() {
|
|
1949
|
+
return p(null);
|
|
1950
|
+
}
|
|
1951
|
+
//#endregion
|
|
1952
|
+
//#region node_modules/dom-helpers/esm/activeElement.js
|
|
1953
|
+
function dn(e) {
|
|
1954
|
+
e === void 0 && (e = Pe());
|
|
1955
|
+
try {
|
|
1956
|
+
var t = e.activeElement;
|
|
1957
|
+
return !t || !t.nodeName ? null : t;
|
|
1958
|
+
} catch {
|
|
1959
|
+
return e.body;
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
//#endregion
|
|
1963
|
+
//#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useUpdatedRef.js
|
|
1964
|
+
function fn(e) {
|
|
1965
|
+
let t = f(e);
|
|
1966
|
+
return t.current = e, t;
|
|
1967
|
+
}
|
|
1968
|
+
//#endregion
|
|
1969
|
+
//#region node_modules/@restart/ui/node_modules/@restart/hooks/esm/useWillUnmount.js
|
|
1970
|
+
function pn(e) {
|
|
1971
|
+
let t = fn(e);
|
|
1972
|
+
s(() => () => t.current(), []);
|
|
1973
|
+
}
|
|
1974
|
+
//#endregion
|
|
1975
|
+
//#region node_modules/@restart/ui/esm/getScrollbarWidth.js
|
|
1976
|
+
function mn(e = document) {
|
|
1977
|
+
let t = e.defaultView;
|
|
1978
|
+
return Math.abs(t.innerWidth - e.documentElement.clientWidth);
|
|
1979
|
+
}
|
|
1980
|
+
//#endregion
|
|
1981
|
+
//#region node_modules/@restart/ui/esm/ModalManager.js
|
|
1982
|
+
var hn = tn("modal-open"), gn = class {
|
|
1983
|
+
constructor({ ownerDocument: e, handleContainerOverflow: t = !0, isRTL: n = !1 } = {}) {
|
|
1984
|
+
this.handleContainerOverflow = t, this.isRTL = n, this.modals = [], this.ownerDocument = e;
|
|
1985
|
+
}
|
|
1986
|
+
getScrollbarWidth() {
|
|
1987
|
+
return mn(this.ownerDocument);
|
|
1988
|
+
}
|
|
1989
|
+
getElement() {
|
|
1990
|
+
return (this.ownerDocument || document).body;
|
|
1991
|
+
}
|
|
1992
|
+
setModalAttributes(e) {}
|
|
1993
|
+
removeModalAttributes(e) {}
|
|
1994
|
+
setContainerStyle(e) {
|
|
1995
|
+
let t = { overflow: "hidden" }, n = this.isRTL ? "paddingLeft" : "paddingRight", r = this.getElement();
|
|
1996
|
+
e.style = {
|
|
1997
|
+
overflow: r.style.overflow,
|
|
1998
|
+
[n]: r.style[n]
|
|
1999
|
+
}, e.scrollBarWidth && (t[n] = `${parseInt(Y(r, n) || "0", 10) + e.scrollBarWidth}px`), r.setAttribute(hn, ""), Y(r, t);
|
|
2000
|
+
}
|
|
2001
|
+
reset() {
|
|
2002
|
+
[...this.modals].forEach((e) => this.remove(e));
|
|
2003
|
+
}
|
|
2004
|
+
removeContainerStyle(e) {
|
|
2005
|
+
let t = this.getElement();
|
|
2006
|
+
t.removeAttribute(hn), Object.assign(t.style, e.style);
|
|
2007
|
+
}
|
|
2008
|
+
add(e) {
|
|
2009
|
+
let t = this.modals.indexOf(e);
|
|
2010
|
+
return t !== -1 || (t = this.modals.length, this.modals.push(e), this.setModalAttributes(e), t !== 0) ? t : (this.state = {
|
|
2011
|
+
scrollBarWidth: this.getScrollbarWidth(),
|
|
2012
|
+
style: {}
|
|
2013
|
+
}, this.handleContainerOverflow && this.setContainerStyle(this.state), t);
|
|
2014
|
+
}
|
|
2015
|
+
remove(e) {
|
|
2016
|
+
let t = this.modals.indexOf(e);
|
|
2017
|
+
t !== -1 && (this.modals.splice(t, 1), !this.modals.length && this.handleContainerOverflow && this.removeContainerStyle(this.state), this.removeModalAttributes(e));
|
|
2018
|
+
}
|
|
2019
|
+
isTopModal(e) {
|
|
2020
|
+
return !!this.modals.length && this.modals[this.modals.length - 1] === e;
|
|
2021
|
+
}
|
|
2022
|
+
}, _n = (e, t) => ft ? e == null ? (t || Pe()).body : (typeof e == "function" && (e = e()), e && "current" in e && (e = e.current), e && ("nodeType" in e || e.getBoundingClientRect) ? e : null) : null;
|
|
2023
|
+
function vn(e, t) {
|
|
2024
|
+
let n = rn(), [r, i] = p(() => _n(e, n?.document));
|
|
2025
|
+
if (!r) {
|
|
2026
|
+
let t = _n(e);
|
|
2027
|
+
t && i(t);
|
|
2028
|
+
}
|
|
2029
|
+
return s(() => {
|
|
2030
|
+
t && r && t(r);
|
|
2031
|
+
}, [t, r]), s(() => {
|
|
2032
|
+
let t = _n(e);
|
|
2033
|
+
t !== r && i(t);
|
|
2034
|
+
}, [e, r]), r;
|
|
2035
|
+
}
|
|
2036
|
+
//#endregion
|
|
2037
|
+
//#region node_modules/@restart/ui/esm/NoopTransition.js
|
|
2038
|
+
function yn({ children: e, in: t, onExited: r, mountOnEnter: i, unmountOnExit: a }) {
|
|
2039
|
+
let o = f(null), c = f(t), l = $(r);
|
|
2040
|
+
s(() => {
|
|
2041
|
+
t ? c.current = !0 : l(o.current);
|
|
2042
|
+
}, [t, l]);
|
|
2043
|
+
let u = /*#__PURE__*/ n(e, { ref: sn(o, dt(e)) });
|
|
2044
|
+
return t ? u : a || !c.current && i ? null : u;
|
|
2045
|
+
}
|
|
2046
|
+
//#endregion
|
|
2047
|
+
//#region node_modules/@restart/ui/esm/useRTGTransitionProps.js
|
|
2048
|
+
var bn = [
|
|
2049
|
+
"onEnter",
|
|
2050
|
+
"onEntering",
|
|
2051
|
+
"onEntered",
|
|
2052
|
+
"onExit",
|
|
2053
|
+
"onExiting",
|
|
2054
|
+
"onExited",
|
|
2055
|
+
"addEndListener",
|
|
2056
|
+
"children"
|
|
2057
|
+
];
|
|
2058
|
+
function xn(e, t) {
|
|
2059
|
+
if (e == null) return {};
|
|
2060
|
+
var n = {};
|
|
2061
|
+
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
2062
|
+
if (t.indexOf(r) >= 0) continue;
|
|
2063
|
+
n[r] = e[r];
|
|
2064
|
+
}
|
|
2065
|
+
return n;
|
|
2066
|
+
}
|
|
2067
|
+
function Sn(e) {
|
|
2068
|
+
let { onEnter: t, onEntering: r, onEntered: i, onExit: o, onExiting: s, onExited: c, addEndListener: l, children: u } = e, d = xn(e, bn), p = f(null), m = sn(p, dt(u)), h = (e) => (t) => {
|
|
2069
|
+
e && p.current && e(p.current, t);
|
|
2070
|
+
}, g = a(h(t), [t]), _ = a(h(r), [r]), v = a(h(i), [i]), y = a(h(o), [o]), b = a(h(s), [s]), x = a(h(c), [c]), S = a(h(l), [l]);
|
|
2071
|
+
return Object.assign({}, d, { nodeRef: p }, t && { onEnter: g }, r && { onEntering: _ }, i && { onEntered: v }, o && { onExit: y }, s && { onExiting: b }, c && { onExited: x }, l && { addEndListener: S }, { children: typeof u == "function" ? (e, t) => u(e, Object.assign({}, t, { ref: m })) : /*#__PURE__*/ n(u, { ref: m }) });
|
|
2072
|
+
}
|
|
2073
|
+
//#endregion
|
|
2074
|
+
//#region node_modules/@restart/ui/esm/RTGTransition.js
|
|
2075
|
+
var Cn = ["component"];
|
|
2076
|
+
function wn(e, t) {
|
|
2077
|
+
if (e == null) return {};
|
|
2078
|
+
var n = {};
|
|
2079
|
+
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
2080
|
+
if (t.indexOf(r) >= 0) continue;
|
|
2081
|
+
n[r] = e[r];
|
|
2082
|
+
}
|
|
2083
|
+
return n;
|
|
2084
|
+
}
|
|
2085
|
+
var Tn = /*#__PURE__*/ e.forwardRef((e, t) => {
|
|
2086
|
+
let { component: n } = e, r = Sn(wn(e, Cn));
|
|
2087
|
+
return /*#__PURE__*/ h(n, Object.assign({ ref: t }, r));
|
|
2088
|
+
});
|
|
2089
|
+
//#endregion
|
|
2090
|
+
//#region node_modules/@restart/ui/esm/ImperativeTransition.js
|
|
2091
|
+
function En({ in: e, onTransition: t }) {
|
|
2092
|
+
let n = f(null), r = f(!0), i = $(t);
|
|
2093
|
+
return Rt(() => {
|
|
2094
|
+
if (!n.current) return;
|
|
2095
|
+
let t = !1;
|
|
2096
|
+
return i({
|
|
2097
|
+
in: e,
|
|
2098
|
+
element: n.current,
|
|
2099
|
+
initial: r.current,
|
|
2100
|
+
isStale: () => t
|
|
2101
|
+
}), () => {
|
|
2102
|
+
t = !0;
|
|
2103
|
+
};
|
|
2104
|
+
}, [e, i]), Rt(() => (r.current = !1, () => {
|
|
2105
|
+
r.current = !0;
|
|
2106
|
+
}), []), n;
|
|
2107
|
+
}
|
|
2108
|
+
function Dn({ children: e, in: t, onExited: r, onEntered: i, transition: a }) {
|
|
2109
|
+
let [o, s] = p(!t);
|
|
2110
|
+
t && o && s(!1);
|
|
2111
|
+
let c = sn(En({
|
|
2112
|
+
in: !!t,
|
|
2113
|
+
onTransition: (e) => {
|
|
2114
|
+
Promise.resolve(a(e)).then(() => {
|
|
2115
|
+
e.isStale() || (e.in ? i?.(e.element, e.initial) : (s(!0), r?.(e.element)));
|
|
2116
|
+
}, (t) => {
|
|
2117
|
+
throw e.in || s(!0), t;
|
|
2118
|
+
});
|
|
2119
|
+
}
|
|
2120
|
+
}), dt(e));
|
|
2121
|
+
return o && !t ? null : /*#__PURE__*/ n(e, { ref: c });
|
|
2122
|
+
}
|
|
2123
|
+
function On(e, t, n) {
|
|
2124
|
+
return e ? /*#__PURE__*/ h(Tn, Object.assign({}, n, { component: e })) : t ? /*#__PURE__*/ h(Dn, Object.assign({}, n, { transition: t })) : /*#__PURE__*/ h(yn, Object.assign({}, n));
|
|
2125
|
+
}
|
|
2126
|
+
//#endregion
|
|
2127
|
+
//#region node_modules/@restart/ui/esm/Modal.js
|
|
2128
|
+
var kn = /* @__PURE__ */ "show.role.className.style.children.backdrop.keyboard.onBackdropClick.onEscapeKeyDown.transition.runTransition.backdropTransition.runBackdropTransition.autoFocus.enforceFocus.restoreFocus.restoreFocusOptions.renderDialog.renderBackdrop.manager.container.onShow.onHide.onExit.onExited.onExiting.onEnter.onEntering.onEntered".split(".");
|
|
2129
|
+
function An(e, t) {
|
|
2130
|
+
if (e == null) return {};
|
|
2131
|
+
var n = {};
|
|
2132
|
+
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
2133
|
+
if (t.indexOf(r) >= 0) continue;
|
|
2134
|
+
n[r] = e[r];
|
|
2135
|
+
}
|
|
2136
|
+
return n;
|
|
2137
|
+
}
|
|
2138
|
+
var jn;
|
|
2139
|
+
function Mn(e) {
|
|
2140
|
+
return jn ||= new gn({ ownerDocument: e?.document }), jn;
|
|
2141
|
+
}
|
|
2142
|
+
function Nn(e) {
|
|
2143
|
+
let t = rn(), n = e || Mn(t), r = f({
|
|
2144
|
+
dialog: null,
|
|
2145
|
+
backdrop: null
|
|
2146
|
+
});
|
|
2147
|
+
return Object.assign(r.current, {
|
|
2148
|
+
add: () => n.add(r.current),
|
|
2149
|
+
remove: () => n.remove(r.current),
|
|
2150
|
+
isTopModal: () => n.isTopModal(r.current),
|
|
2151
|
+
setDialogRef: a((e) => {
|
|
2152
|
+
r.current.dialog = e;
|
|
2153
|
+
}, []),
|
|
2154
|
+
setBackdropRef: a((e) => {
|
|
2155
|
+
r.current.backdrop = e;
|
|
2156
|
+
}, [])
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2159
|
+
var Pn = /*#__PURE__*/ i((t, n) => {
|
|
2160
|
+
let { show: r = !1, role: i = "dialog", className: a, style: o, children: c, backdrop: u = !0, keyboard: d = !0, onBackdropClick: v, onEscapeKeyDown: y, transition: b, runTransition: x, backdropTransition: S, runBackdropTransition: C, autoFocus: w = !0, enforceFocus: T = !0, restoreFocus: E = !0, restoreFocusOptions: D, renderDialog: O, renderBackdrop: k = (e) => /*#__PURE__*/ h("div", Object.assign({}, e)), manager: A, container: j, onShow: M, onHide: N = () => {}, onExit: P, onExited: F, onExiting: I, onEnter: ee, onEntering: te, onEntered: ne } = t, re = An(t, kn), L = rn(), R = vn(j), z = Nn(A), B = Ft(), V = It(r), [H, U] = p(!r), W = f(null);
|
|
2161
|
+
l(n, () => z, [z]), ft && !V && r && (W.current = dn(L?.document)), r && H && U(!1);
|
|
2162
|
+
let G = $(() => {
|
|
2163
|
+
if (z.add(), se.current = vt(document, "keydown", ae), oe.current = vt(document, "focus", () => setTimeout(q), !0), M && M(), w) {
|
|
2164
|
+
let e = dn(z.dialog?.ownerDocument ?? L?.document);
|
|
2165
|
+
z.dialog && e && !$t(z.dialog, e) && (W.current = e, z.dialog.focus());
|
|
2166
|
+
}
|
|
2167
|
+
}), K = $(() => {
|
|
2168
|
+
if (z.remove(), se.current == null || se.current(), oe.current == null || oe.current(), E) {
|
|
2169
|
+
var e;
|
|
2170
|
+
(e = W.current) == null || e.focus == null || e.focus(D), W.current = null;
|
|
2171
|
+
}
|
|
2172
|
+
});
|
|
2173
|
+
s(() => {
|
|
2174
|
+
!r || !R || G();
|
|
2175
|
+
}, [
|
|
2176
|
+
r,
|
|
2177
|
+
R,
|
|
2178
|
+
G
|
|
2179
|
+
]), s(() => {
|
|
2180
|
+
H && K();
|
|
2181
|
+
}, [H, K]), pn(() => {
|
|
2182
|
+
K();
|
|
2183
|
+
});
|
|
2184
|
+
let q = $(() => {
|
|
2185
|
+
if (!T || !B() || !z.isTopModal()) return;
|
|
2186
|
+
let e = dn(L?.document);
|
|
2187
|
+
z.dialog && e && !$t(z.dialog, e) && z.dialog.focus();
|
|
2188
|
+
}), ie = $((e) => {
|
|
2189
|
+
e.target === e.currentTarget && (v?.(e), u === !0 && N());
|
|
2190
|
+
}), ae = $((e) => {
|
|
2191
|
+
d && lt(e) && z.isTopModal() && (y?.(e), e.defaultPrevented || N());
|
|
2192
|
+
}), oe = f(), se = f(), ce = (...e) => {
|
|
2193
|
+
U(!0), F?.(...e);
|
|
2194
|
+
};
|
|
2195
|
+
if (!R) return null;
|
|
2196
|
+
let le = Object.assign({
|
|
2197
|
+
role: i,
|
|
2198
|
+
ref: z.setDialogRef,
|
|
2199
|
+
"aria-modal": i === "dialog" || void 0
|
|
2200
|
+
}, re, {
|
|
2201
|
+
style: o,
|
|
2202
|
+
className: a,
|
|
2203
|
+
tabIndex: -1
|
|
2204
|
+
}), ue = O ? O(le) : /*#__PURE__*/ h("div", Object.assign({}, le, { children: /*#__PURE__*/ e.cloneElement(c, { role: "document" }) }));
|
|
2205
|
+
ue = On(b, x, {
|
|
2206
|
+
unmountOnExit: !0,
|
|
2207
|
+
mountOnEnter: !0,
|
|
2208
|
+
appear: !0,
|
|
2209
|
+
in: !!r,
|
|
2210
|
+
onExit: P,
|
|
2211
|
+
onExiting: I,
|
|
2212
|
+
onExited: ce,
|
|
2213
|
+
onEnter: ee,
|
|
2214
|
+
onEntering: te,
|
|
2215
|
+
onEntered: ne,
|
|
2216
|
+
children: ue
|
|
2217
|
+
});
|
|
2218
|
+
let de = null;
|
|
2219
|
+
return u && (de = k({
|
|
2220
|
+
ref: z.setBackdropRef,
|
|
2221
|
+
onClick: ie
|
|
2222
|
+
}), de = On(S, C, {
|
|
2223
|
+
in: !!r,
|
|
2224
|
+
appear: !0,
|
|
2225
|
+
mountOnEnter: !0,
|
|
2226
|
+
unmountOnExit: !0,
|
|
2227
|
+
children: de
|
|
2228
|
+
})), /*#__PURE__*/ h(m, { children: /*#__PURE__*/ _.createPortal(/*#__PURE__*/ g(m, { children: [de, ue] }), R) });
|
|
2229
|
+
});
|
|
2230
|
+
Pn.displayName = "Modal";
|
|
2231
|
+
var Fn = Object.assign(Pn, { Manager: gn });
|
|
2232
|
+
//#endregion
|
|
2233
|
+
//#region node_modules/dom-helpers/esm/hasClass.js
|
|
2234
|
+
function In(e, t) {
|
|
2235
|
+
return e.classList ? !!t && e.classList.contains(t) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + t + " ") !== -1;
|
|
2236
|
+
}
|
|
2237
|
+
//#endregion
|
|
2238
|
+
//#region node_modules/dom-helpers/esm/addClass.js
|
|
2239
|
+
function Ln(e, t) {
|
|
2240
|
+
e.classList ? e.classList.add(t) : In(e, t) || (typeof e.className == "string" ? e.className = e.className + " " + t : e.setAttribute("class", (e.className && e.className.baseVal || "") + " " + t));
|
|
2241
|
+
}
|
|
2242
|
+
//#endregion
|
|
2243
|
+
//#region node_modules/dom-helpers/esm/removeClass.js
|
|
2244
|
+
function Rn(e, t) {
|
|
2245
|
+
return e.replace(RegExp("(^|\\s)" + t + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
2246
|
+
}
|
|
2247
|
+
function zn(e, t) {
|
|
2248
|
+
e.classList ? e.classList.remove(t) : typeof e.className == "string" ? e.className = Rn(e.className, t) : e.setAttribute("class", Rn(e.className && e.className.baseVal || "", t));
|
|
2249
|
+
}
|
|
2250
|
+
//#endregion
|
|
2251
|
+
//#region node_modules/react-bootstrap/esm/BootstrapModalManager.js
|
|
2252
|
+
var Bn = {
|
|
2253
|
+
FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",
|
|
2254
|
+
STICKY_CONTENT: ".sticky-top",
|
|
2255
|
+
NAVBAR_TOGGLER: ".navbar-toggler"
|
|
2256
|
+
}, Vn = class extends gn {
|
|
2257
|
+
adjustAndStore(e, t, n) {
|
|
2258
|
+
let r = t.style[e];
|
|
2259
|
+
t.dataset[e] = r, Y(t, { [e]: `${parseFloat(Y(t, e)) + n}px` });
|
|
2260
|
+
}
|
|
2261
|
+
restore(e, t) {
|
|
2262
|
+
let n = t.dataset[e];
|
|
2263
|
+
n !== void 0 && (delete t.dataset[e], Y(t, { [e]: n }));
|
|
2264
|
+
}
|
|
2265
|
+
setContainerStyle(e) {
|
|
2266
|
+
super.setContainerStyle(e);
|
|
2267
|
+
let t = this.getElement();
|
|
2268
|
+
if (Ln(t, "modal-open"), !e.scrollBarWidth) return;
|
|
2269
|
+
let n = this.isRTL ? "paddingLeft" : "paddingRight", r = this.isRTL ? "marginLeft" : "marginRight";
|
|
2270
|
+
Qt(t, Bn.FIXED_CONTENT).forEach((t) => this.adjustAndStore(n, t, e.scrollBarWidth)), Qt(t, Bn.STICKY_CONTENT).forEach((t) => this.adjustAndStore(r, t, -e.scrollBarWidth)), Qt(t, Bn.NAVBAR_TOGGLER).forEach((t) => this.adjustAndStore(r, t, e.scrollBarWidth));
|
|
2271
|
+
}
|
|
2272
|
+
removeContainerStyle(e) {
|
|
2273
|
+
super.removeContainerStyle(e);
|
|
2274
|
+
let t = this.getElement();
|
|
2275
|
+
zn(t, "modal-open");
|
|
2276
|
+
let n = this.isRTL ? "paddingLeft" : "paddingRight", r = this.isRTL ? "marginLeft" : "marginRight";
|
|
2277
|
+
Qt(t, Bn.FIXED_CONTENT).forEach((e) => this.restore(n, e)), Qt(t, Bn.STICKY_CONTENT).forEach((e) => this.restore(r, e)), Qt(t, Bn.NAVBAR_TOGGLER).forEach((e) => this.restore(r, e));
|
|
2278
|
+
}
|
|
2279
|
+
}, Hn;
|
|
2280
|
+
function Un(e) {
|
|
2281
|
+
return Hn ||= new Vn(e), Hn;
|
|
2282
|
+
}
|
|
2283
|
+
//#endregion
|
|
2284
|
+
//#region node_modules/react-bootstrap/esm/ModalBody.js
|
|
2285
|
+
var Wn = /*#__PURE__*/ e.forwardRef(({ className: e, bsPrefix: t, as: n = "div", ...r }, i) => (t = J(t, "modal-body"), /*#__PURE__*/ h(n, {
|
|
2286
|
+
ref: i,
|
|
2287
|
+
className: (0, Q.default)(e, t),
|
|
2288
|
+
...r
|
|
2289
|
+
})));
|
|
2290
|
+
Wn.displayName = "ModalBody";
|
|
2291
|
+
//#endregion
|
|
2292
|
+
//#region node_modules/react-bootstrap/esm/ModalContext.js
|
|
2293
|
+
var Gn = /*#__PURE__*/ e.createContext({ onHide() {} }), Kn = /*#__PURE__*/ e.forwardRef(({ bsPrefix: e, className: t, contentClassName: n, centered: r, size: i, fullscreen: a, children: o, scrollable: s, ...c }, l) => {
|
|
2294
|
+
e = J(e, "modal");
|
|
2295
|
+
let u = `${e}-dialog`, d = typeof a == "string" ? `${e}-fullscreen-${a}` : `${e}-fullscreen`;
|
|
2296
|
+
return /*#__PURE__*/ h("div", {
|
|
2297
|
+
...c,
|
|
2298
|
+
ref: l,
|
|
2299
|
+
className: (0, Q.default)(u, t, i && `${e}-${i}`, r && `${u}-centered`, s && `${u}-scrollable`, a && d),
|
|
2300
|
+
children: /*#__PURE__*/ h("div", {
|
|
2301
|
+
className: (0, Q.default)(`${e}-content`, n),
|
|
2302
|
+
children: o
|
|
2303
|
+
})
|
|
2304
|
+
});
|
|
2305
|
+
});
|
|
2306
|
+
Kn.displayName = "ModalDialog";
|
|
2307
|
+
//#endregion
|
|
2308
|
+
//#region node_modules/react-bootstrap/esm/ModalFooter.js
|
|
2309
|
+
var qn = /*#__PURE__*/ e.forwardRef(({ className: e, bsPrefix: t, as: n = "div", ...r }, i) => (t = J(t, "modal-footer"), /*#__PURE__*/ h(n, {
|
|
2310
|
+
ref: i,
|
|
2311
|
+
className: (0, Q.default)(e, t),
|
|
2312
|
+
...r
|
|
2313
|
+
})));
|
|
2314
|
+
qn.displayName = "ModalFooter";
|
|
2315
|
+
//#endregion
|
|
2316
|
+
//#region node_modules/react-bootstrap/esm/AbstractModalHeader.js
|
|
2317
|
+
var Jn = /*#__PURE__*/ e.forwardRef(({ closeLabel: e = "Close", closeVariant: t, closeButton: n = !1, onHide: r, children: i, ...a }, s) => {
|
|
2318
|
+
let c = o(Gn), l = Mt(() => {
|
|
2319
|
+
c?.onHide(), r?.();
|
|
2320
|
+
});
|
|
2321
|
+
return /*#__PURE__*/ g("div", {
|
|
2322
|
+
ref: s,
|
|
2323
|
+
...a,
|
|
2324
|
+
children: [i, n && /*#__PURE__*/ h(qt, {
|
|
2325
|
+
"aria-label": e,
|
|
2326
|
+
variant: t,
|
|
2327
|
+
onClick: l
|
|
2328
|
+
})]
|
|
2329
|
+
});
|
|
2330
|
+
});
|
|
2331
|
+
Jn.displayName = "AbstractModalHeader";
|
|
2332
|
+
//#endregion
|
|
2333
|
+
//#region node_modules/react-bootstrap/esm/ModalHeader.js
|
|
2334
|
+
var Yn = /*#__PURE__*/ e.forwardRef(({ bsPrefix: e, className: t, closeLabel: n = "Close", closeButton: r = !1, ...i }, a) => (e = J(e, "modal-header"), /*#__PURE__*/ h(Jn, {
|
|
2335
|
+
ref: a,
|
|
2336
|
+
...i,
|
|
2337
|
+
className: (0, Q.default)(t, e),
|
|
2338
|
+
closeLabel: n,
|
|
2339
|
+
closeButton: r
|
|
2340
|
+
})));
|
|
2341
|
+
Yn.displayName = "ModalHeader";
|
|
2342
|
+
//#endregion
|
|
2343
|
+
//#region node_modules/react-bootstrap/esm/ModalTitle.js
|
|
2344
|
+
var Xn = Nt("h4"), Zn = /*#__PURE__*/ e.forwardRef(({ className: e, bsPrefix: t, as: n = Xn, ...r }, i) => (t = J(t, "modal-title"), /*#__PURE__*/ h(n, {
|
|
2345
|
+
ref: i,
|
|
2346
|
+
className: (0, Q.default)(e, t),
|
|
2347
|
+
...r
|
|
2348
|
+
})));
|
|
2349
|
+
Zn.displayName = "ModalTitle";
|
|
2350
|
+
//#endregion
|
|
2351
|
+
//#region node_modules/react-bootstrap/esm/Modal.js
|
|
2352
|
+
function Qn(e) {
|
|
2353
|
+
return /*#__PURE__*/ h(Gt, {
|
|
2354
|
+
...e,
|
|
2355
|
+
timeout: null
|
|
2356
|
+
});
|
|
2357
|
+
}
|
|
2358
|
+
function $n(e) {
|
|
2359
|
+
return /*#__PURE__*/ h(Gt, {
|
|
2360
|
+
...e,
|
|
2361
|
+
timeout: null
|
|
2362
|
+
});
|
|
2363
|
+
}
|
|
2364
|
+
var er = /*#__PURE__*/ e.forwardRef(({ bsPrefix: e, className: t, style: n, dialogClassName: r, contentClassName: i, children: o, dialogAs: s = Kn, "data-bs-theme": c, "aria-labelledby": l, "aria-describedby": u, "aria-label": m, show: g = !1, animation: _ = !0, backdrop: v = !0, keyboard: y = !0, onEscapeKeyDown: b, onShow: x, onHide: S, container: C, autoFocus: w = !0, enforceFocus: T = !0, restoreFocus: E = !0, restoreFocusOptions: D, onEntered: O, onExit: k, onExiting: A, onEnter: j, onEntering: M, onExited: N, backdropClassName: P, manager: F, ...I }, ee) => {
|
|
2365
|
+
let [te, ne] = p({}), [re, L] = p(!1), R = f(!1), z = f(!1), B = f(null), [V, H] = un(), U = Ot(ee, H), W = Mt(S), G = Ne();
|
|
2366
|
+
e = J(e, "modal");
|
|
2367
|
+
let K = d(() => ({ onHide: W }), [W]);
|
|
2368
|
+
function q() {
|
|
2369
|
+
return F || Un({ isRTL: G });
|
|
2370
|
+
}
|
|
2371
|
+
function ie(e) {
|
|
2372
|
+
if (!ft) return;
|
|
2373
|
+
let t = q().getScrollbarWidth() > 0, n = e.scrollHeight > Pe(e).documentElement.clientHeight;
|
|
2374
|
+
ne({
|
|
2375
|
+
paddingRight: t && !n ? ln() : void 0,
|
|
2376
|
+
paddingLeft: !t && n ? ln() : void 0
|
|
2377
|
+
});
|
|
2378
|
+
}
|
|
2379
|
+
let ae = Mt(() => {
|
|
2380
|
+
V && ie(V.dialog);
|
|
2381
|
+
});
|
|
2382
|
+
Xt(() => {
|
|
2383
|
+
_t(window, "resize", ae), B.current == null || B.current();
|
|
2384
|
+
});
|
|
2385
|
+
let oe = () => {
|
|
2386
|
+
R.current = !0;
|
|
2387
|
+
}, se = (e) => {
|
|
2388
|
+
R.current && V && e.target === V.dialog && (z.current = !0), R.current = !1;
|
|
2389
|
+
}, ce = () => {
|
|
2390
|
+
L(!0), B.current = St(V.dialog, () => {
|
|
2391
|
+
L(!1);
|
|
2392
|
+
});
|
|
2393
|
+
}, le = (e) => {
|
|
2394
|
+
e.target === e.currentTarget && ce();
|
|
2395
|
+
}, ue = (e) => {
|
|
2396
|
+
if (v === "static") {
|
|
2397
|
+
le(e);
|
|
2398
|
+
return;
|
|
2399
|
+
}
|
|
2400
|
+
if (z.current || e.target !== e.currentTarget) {
|
|
2401
|
+
z.current = !1;
|
|
2402
|
+
return;
|
|
2403
|
+
}
|
|
2404
|
+
S?.();
|
|
2405
|
+
}, de = (e) => {
|
|
2406
|
+
y ? b?.(e) : (e.preventDefault(), v === "static" && ce());
|
|
2407
|
+
}, fe = (e, t) => {
|
|
2408
|
+
e && ie(e), j?.(e, t);
|
|
2409
|
+
}, pe = (e) => {
|
|
2410
|
+
B.current == null || B.current(), k?.(e);
|
|
2411
|
+
}, me = (e, t) => {
|
|
2412
|
+
M?.(e, t), gt(window, "resize", ae);
|
|
2413
|
+
}, he = (e) => {
|
|
2414
|
+
e && (e.style.display = ""), N?.(e), _t(window, "resize", ae);
|
|
2415
|
+
}, ge = a((t) => /*#__PURE__*/ h("div", {
|
|
2416
|
+
...t,
|
|
2417
|
+
className: (0, Q.default)(`${e}-backdrop`, P, !_ && "show")
|
|
2418
|
+
}), [
|
|
2419
|
+
_,
|
|
2420
|
+
P,
|
|
2421
|
+
e
|
|
2422
|
+
]), _e = {
|
|
2423
|
+
...n,
|
|
2424
|
+
...te
|
|
2425
|
+
};
|
|
2426
|
+
return _e.display = "block", /*#__PURE__*/ h(Gn.Provider, {
|
|
2427
|
+
value: K,
|
|
2428
|
+
children: /*#__PURE__*/ h(Fn, {
|
|
2429
|
+
show: g,
|
|
2430
|
+
ref: U,
|
|
2431
|
+
backdrop: v,
|
|
2432
|
+
container: C,
|
|
2433
|
+
keyboard: !0,
|
|
2434
|
+
autoFocus: w,
|
|
2435
|
+
enforceFocus: T,
|
|
2436
|
+
restoreFocus: E,
|
|
2437
|
+
restoreFocusOptions: D,
|
|
2438
|
+
onEscapeKeyDown: de,
|
|
2439
|
+
onShow: x,
|
|
2440
|
+
onHide: S,
|
|
2441
|
+
onEnter: fe,
|
|
2442
|
+
onEntering: me,
|
|
2443
|
+
onEntered: O,
|
|
2444
|
+
onExit: pe,
|
|
2445
|
+
onExiting: A,
|
|
2446
|
+
onExited: he,
|
|
2447
|
+
manager: q(),
|
|
2448
|
+
transition: _ ? Qn : void 0,
|
|
2449
|
+
backdropTransition: _ ? $n : void 0,
|
|
2450
|
+
renderBackdrop: ge,
|
|
2451
|
+
renderDialog: (n) => /*#__PURE__*/ h("div", {
|
|
2452
|
+
role: "dialog",
|
|
2453
|
+
...n,
|
|
2454
|
+
style: _e,
|
|
2455
|
+
className: (0, Q.default)(t, e, re && `${e}-static`, !_ && "show"),
|
|
2456
|
+
onClick: v ? ue : void 0,
|
|
2457
|
+
onMouseUp: se,
|
|
2458
|
+
"data-bs-theme": c,
|
|
2459
|
+
"aria-label": m,
|
|
2460
|
+
"aria-labelledby": l,
|
|
2461
|
+
"aria-describedby": u,
|
|
2462
|
+
children: /*#__PURE__*/ h(s, {
|
|
2463
|
+
...I,
|
|
2464
|
+
onMouseDown: oe,
|
|
2465
|
+
className: r,
|
|
2466
|
+
contentClassName: i,
|
|
2467
|
+
children: o
|
|
2468
|
+
})
|
|
2469
|
+
})
|
|
2470
|
+
})
|
|
2471
|
+
});
|
|
2472
|
+
});
|
|
2473
|
+
er.displayName = "Modal";
|
|
2474
|
+
var tr = Object.assign(er, {
|
|
2475
|
+
Body: Wn,
|
|
2476
|
+
Header: Yn,
|
|
2477
|
+
Title: Zn,
|
|
2478
|
+
Footer: qn,
|
|
2479
|
+
Dialog: Kn,
|
|
2480
|
+
TRANSITION_DURATION: 300,
|
|
2481
|
+
BACKDROP_TRANSITION_DURATION: 150
|
|
2482
|
+
});
|
|
2483
|
+
//#endregion
|
|
2484
|
+
//#region src/components/modals/LionModal.tsx
|
|
2485
|
+
function nr({ modalId: e, title: t, body: n, buttons: r, backdrop: i = "static", fullscreen: a = "sm-down", size: o = K.LG, variant: s = G.LIGHT, platform: c = void 0, cancelButtonIcon: l = null, cancelButtonText: u = "Cancel" }) {
|
|
2486
|
+
let { state: d, updateState: f } = W(), p = c || d.platform, m = p === V.IOS, _ = p === V.ANDROID, v = m ? "ios-modal" : _ ? "android-modal" : "web-modal", y = (e) => {
|
|
2487
|
+
switch (e) {
|
|
2488
|
+
case G.LIGHT:
|
|
2489
|
+
case G.LINK:
|
|
2490
|
+
case G.WARNING:
|
|
2491
|
+
case G.INFO: return "text-dark";
|
|
2492
|
+
case G.PRIMARY:
|
|
2493
|
+
case G.SECONDARY:
|
|
2494
|
+
case G.SUCCESS:
|
|
2495
|
+
case G.DANGER:
|
|
2496
|
+
case G.DARK:
|
|
2497
|
+
case G.LION_GLAM:
|
|
2498
|
+
case G.LION_TECH:
|
|
2499
|
+
case G.LION_PACKAGES:
|
|
2500
|
+
case G.LION_PARKING:
|
|
2501
|
+
default: return "text-white";
|
|
2502
|
+
}
|
|
2503
|
+
}, b = (e) => {
|
|
2504
|
+
switch (e) {
|
|
2505
|
+
case G.LIGHT:
|
|
2506
|
+
case G.LINK:
|
|
2507
|
+
case G.DARK:
|
|
2508
|
+
case G.MODAL: return "text-dark";
|
|
2509
|
+
case G.WARNING: return "text-warning";
|
|
2510
|
+
case G.PRIMARY: return "text-primary";
|
|
2511
|
+
case G.INFO: return "text-info";
|
|
2512
|
+
case G.SECONDARY: return "text-secondary";
|
|
2513
|
+
case G.DANGER: return "text-danger";
|
|
2514
|
+
case G.SUCCESS: return "text-success";
|
|
2515
|
+
case G.LION_PARKING:
|
|
2516
|
+
case G.LION_PACKAGES: return "text-lion-packages";
|
|
2517
|
+
case G.LION_TECH: return "text-lion-tech";
|
|
2518
|
+
case G.LION_GLAM: return "text-lion-glam";
|
|
2519
|
+
default: return "text-white";
|
|
2520
|
+
}
|
|
2521
|
+
}, x = y(s), S = b(s);
|
|
2522
|
+
return /* @__PURE__ */ g(tr, {
|
|
2523
|
+
backdrop: i,
|
|
2524
|
+
id: e,
|
|
2525
|
+
show: e === d.modal,
|
|
2526
|
+
fullscreen: a,
|
|
2527
|
+
onHide: () => f({ modal: null }),
|
|
2528
|
+
size: o,
|
|
2529
|
+
scrollable: !0,
|
|
2530
|
+
centered: !0,
|
|
2531
|
+
className: v,
|
|
2532
|
+
children: [
|
|
2533
|
+
/* @__PURE__ */ h(tr.Header, {
|
|
2534
|
+
closeButton: !d.reload || !d.loading,
|
|
2535
|
+
className: `custom-modal-header py-3 px-4 bg-${s} ${x}`,
|
|
2536
|
+
children: /* @__PURE__ */ h(tr.Title, {
|
|
2537
|
+
className: `custom-modal-title w-100 ${x} ${m ? "text-center fw-semibold" : "text-start fw-bold"}`,
|
|
2538
|
+
children: t
|
|
2539
|
+
})
|
|
2540
|
+
}),
|
|
2541
|
+
/* @__PURE__ */ h(tr.Body, {
|
|
2542
|
+
className: "custom-modal-body px-4 py-3",
|
|
2543
|
+
children: e === d.modal ? n : null
|
|
2544
|
+
}),
|
|
2545
|
+
/* @__PURE__ */ h(tr.Footer, {
|
|
2546
|
+
className: "custom-modal-footer p-0",
|
|
2547
|
+
children: /* @__PURE__ */ g("div", {
|
|
2548
|
+
className: "custom-btn-group w-100 d-flex align-items-stretch",
|
|
2549
|
+
children: [/* @__PURE__ */ h(() => /* @__PURE__ */ h(Jt, {
|
|
2550
|
+
type: q.BUTTON,
|
|
2551
|
+
variant: G.MODAL,
|
|
2552
|
+
id: "modal-cancel-button",
|
|
2553
|
+
className: `btn-modal btn-modal-cancel ${S}`,
|
|
2554
|
+
onClick: () => f({ modal: null }),
|
|
2555
|
+
disabled: d.reload || d.loading,
|
|
2556
|
+
children: l ?? u
|
|
2557
|
+
}), {}), r]
|
|
2558
|
+
})
|
|
2559
|
+
})
|
|
2560
|
+
]
|
|
2561
|
+
});
|
|
2562
|
+
}
|
|
2563
|
+
//#endregion
|
|
2564
|
+
export { oe as AndroidButton, _e as AndroidInput, le as BootstrapButton, be as BootstrapInput, q as ButtonTypes, fe as IOSButton, Ce as IOSInput, me as InputTypes, pe as LionButton, we as LionInput, nr as LionModal, U as LionUIComponentsProvider, Te as LoadingBar, V as PlatformTypes, K as SizeTypes, G as VariantTypes };
|