@openlv/modal 0.0.1-beta.7 → 0.0.1-beta.9
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/ar-BAmzpyRI.js +25 -0
- package/dist/ar-BAmzpyRI.js.map +1 -0
- package/dist/ar-C5DZ9iQ9.cjs +3 -0
- package/dist/ar-C5DZ9iQ9.cjs.map +1 -0
- package/dist/components/Header.d.ts +5 -2
- package/dist/components/ModalRoot.d.ts +1 -0
- package/dist/components/settings/LanguageSettings.d.ts +1 -0
- package/dist/context.d.ts +2 -7
- package/dist/element.d.ts +8 -5
- package/dist/es-DY71WoiL.js +25 -0
- package/dist/es-DY71WoiL.js.map +1 -0
- package/dist/es-DjIH1AOp.cjs +3 -0
- package/dist/es-DjIH1AOp.cjs.map +1 -0
- package/dist/fa-BLBJdY1Z.cjs +3 -0
- package/dist/fa-BLBJdY1Z.cjs.map +1 -0
- package/dist/fa-CZ8QQ_OY.js +25 -0
- package/dist/fa-CZ8QQ_OY.js.map +1 -0
- package/dist/flow/InfoScreen.d.ts +1 -0
- package/dist/fr-C0_FxuuR.cjs +3 -0
- package/dist/fr-C0_FxuuR.cjs.map +1 -0
- package/dist/fr-KRwPr2KB.js +25 -0
- package/dist/fr-KRwPr2KB.js.map +1 -0
- package/dist/he-BJ3Ukwed.js +25 -0
- package/dist/he-BJ3Ukwed.js.map +1 -0
- package/dist/he-CA2tm3_t.cjs +3 -0
- package/dist/he-CA2tm3_t.cjs.map +1 -0
- package/dist/hooks/useSettings.d.ts +4 -1
- package/dist/index.cjs.js +7 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -10
- package/dist/index.es.js +1496 -1630
- package/dist/index.es.js.map +1 -1
- package/dist/modal.css +1 -1
- package/dist/nl-BcUtTHZo.js +24 -0
- package/dist/nl-BcUtTHZo.js.map +1 -0
- package/dist/nl-CFDz2-OG.cjs +2 -0
- package/dist/nl-CFDz2-OG.cjs.map +1 -0
- package/dist/openlv-CH8lb3Oi.js +98 -0
- package/dist/openlv-CH8lb3Oi.js.map +1 -0
- package/dist/openlv-SMG3Trx9.cjs +2 -0
- package/dist/openlv-SMG3Trx9.cjs.map +1 -0
- package/dist/simple-9RmOY_8k.js +73 -0
- package/dist/simple-9RmOY_8k.js.map +1 -0
- package/dist/simple-DJcIRSvc.cjs +2 -0
- package/dist/simple-DJcIRSvc.cjs.map +1 -0
- package/dist/styles/index.d.ts +1 -1
- package/dist/sv-BZZOE8bl.cjs +2 -0
- package/dist/sv-BZZOE8bl.cjs.map +1 -0
- package/dist/sv-jsZzNYT8.js +24 -0
- package/dist/sv-jsZzNYT8.js.map +1 -0
- package/dist/theme/index.d.ts +7 -37
- package/dist/theme/openlv.d.ts +14 -11
- package/dist/theme/simple.d.ts +1 -1
- package/dist/theme/types.d.ts +10 -20
- package/dist/ui/Button.d.ts +2 -2
- package/dist/ui/Select.d.ts +1 -0
- package/dist/utils/i18n.d.ts +34 -0
- package/dist/zh-cn-B-g1waPO.js +25 -0
- package/dist/zh-cn-B-g1waPO.js.map +1 -0
- package/dist/zh-cn-WuPduNS4.cjs +3 -0
- package/dist/zh-cn-WuPduNS4.cjs.map +1 -0
- package/package.json +5 -6
- package/dist/index.iife.js +0 -6
- package/dist/index.iife.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as l, jsxs as h, Fragment as
|
|
5
|
-
import { useContext as
|
|
6
|
-
import { createContext as
|
|
7
|
-
import * as
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
return
|
|
1
|
+
var cn = Object.defineProperty;
|
|
2
|
+
var un = (t, e, n) => e in t ? cn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var Rt = (t, e, n) => un(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { jsx as l, jsxs as h, Fragment as Oe } from "preact/jsx-runtime";
|
|
5
|
+
import { useContext as jt, useState as R, useEffect as I, useCallback as U, useMemo as ft, useRef as W, useReducer as Re, useLayoutEffect as ht, useImperativeHandle as De, useId as Pe, useDebugValue as Be } from "preact/hooks";
|
|
6
|
+
import { createContext as ae, createElement as X, Fragment as wt, Component as gt, createRef as dn, toChildArray as ot, cloneElement as fn, render as pt, hydrate as gn, options as F, h as pn } from "preact";
|
|
7
|
+
import * as hn from "qrcode-generator";
|
|
8
|
+
const vn = 1, mn = (t) => {
|
|
9
|
+
const e = new URLSearchParams();
|
|
10
|
+
return e.set("h", t.h), e.set("k", t.k), t.p && e.set("p", t.p), t.s && e.set("s", t.s), `openlv://${t.sessionId}@${vn}?${e.toString()}`;
|
|
11
11
|
};
|
|
12
|
-
function
|
|
13
|
-
return
|
|
14
|
-
}
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
return
|
|
18
|
-
var
|
|
19
|
-
function
|
|
12
|
+
function bn(t) {
|
|
13
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
14
|
+
}
|
|
15
|
+
var Kt = { exports: {} }, ue;
|
|
16
|
+
function yn() {
|
|
17
|
+
return ue || (ue = 1, (function(t) {
|
|
18
|
+
var e = Object.prototype.hasOwnProperty, n = "~";
|
|
19
|
+
function r() {
|
|
20
20
|
}
|
|
21
|
-
Object.create && (
|
|
21
|
+
Object.create && (r.prototype = /* @__PURE__ */ Object.create(null), new r().__proto__ || (n = !1));
|
|
22
22
|
function o(c, u, d) {
|
|
23
23
|
this.fn = c, this.context = u, this.once = d || !1;
|
|
24
24
|
}
|
|
25
|
-
function a(c, u, d, f,
|
|
25
|
+
function a(c, u, d, f, k) {
|
|
26
26
|
if (typeof d != "function")
|
|
27
27
|
throw new TypeError("The listener must be a function");
|
|
28
|
-
var
|
|
29
|
-
return c._events[
|
|
28
|
+
var p = new o(d, f || c, k), y = n ? n + u : u;
|
|
29
|
+
return c._events[y] ? c._events[y].fn ? c._events[y] = [c._events[y], p] : c._events[y].push(p) : (c._events[y] = p, c._eventsCount++), c;
|
|
30
30
|
}
|
|
31
31
|
function i(c, u) {
|
|
32
|
-
--c._eventsCount === 0 ? c._events = new
|
|
32
|
+
--c._eventsCount === 0 ? c._events = new r() : delete c._events[u];
|
|
33
33
|
}
|
|
34
34
|
function s() {
|
|
35
|
-
this._events = new
|
|
35
|
+
this._events = new r(), this._eventsCount = 0;
|
|
36
36
|
}
|
|
37
37
|
s.prototype.eventNames = function() {
|
|
38
38
|
var u = [], d, f;
|
|
39
39
|
if (this._eventsCount === 0) return u;
|
|
40
40
|
for (f in d = this._events)
|
|
41
|
-
|
|
41
|
+
e.call(d, f) && u.push(n ? f.slice(1) : f);
|
|
42
42
|
return Object.getOwnPropertySymbols ? u.concat(Object.getOwnPropertySymbols(d)) : u;
|
|
43
43
|
}, s.prototype.listeners = function(u) {
|
|
44
|
-
var d =
|
|
44
|
+
var d = n ? n + u : u, f = this._events[d];
|
|
45
45
|
if (!f) return [];
|
|
46
46
|
if (f.fn) return [f.fn];
|
|
47
|
-
for (var
|
|
48
|
-
k
|
|
49
|
-
return
|
|
47
|
+
for (var k = 0, p = f.length, y = new Array(p); k < p; k++)
|
|
48
|
+
y[k] = f[k].fn;
|
|
49
|
+
return y;
|
|
50
50
|
}, s.prototype.listenerCount = function(u) {
|
|
51
|
-
var d =
|
|
51
|
+
var d = n ? n + u : u, f = this._events[d];
|
|
52
52
|
return f ? f.fn ? 1 : f.length : 0;
|
|
53
|
-
}, s.prototype.emit = function(u, d, f,
|
|
54
|
-
var
|
|
55
|
-
if (!this._events[
|
|
56
|
-
var
|
|
57
|
-
if (
|
|
58
|
-
switch (
|
|
53
|
+
}, s.prototype.emit = function(u, d, f, k, p, y) {
|
|
54
|
+
var P = n ? n + u : u;
|
|
55
|
+
if (!this._events[P]) return !1;
|
|
56
|
+
var g = this._events[P], B = arguments.length, L, v;
|
|
57
|
+
if (g.fn) {
|
|
58
|
+
switch (g.once && this.removeListener(u, g.fn, void 0, !0), B) {
|
|
59
59
|
case 1:
|
|
60
|
-
return
|
|
60
|
+
return g.fn.call(g.context), !0;
|
|
61
61
|
case 2:
|
|
62
|
-
return
|
|
62
|
+
return g.fn.call(g.context, d), !0;
|
|
63
63
|
case 3:
|
|
64
|
-
return
|
|
64
|
+
return g.fn.call(g.context, d, f), !0;
|
|
65
65
|
case 4:
|
|
66
|
-
return
|
|
66
|
+
return g.fn.call(g.context, d, f, k), !0;
|
|
67
67
|
case 5:
|
|
68
|
-
return
|
|
68
|
+
return g.fn.call(g.context, d, f, k, p), !0;
|
|
69
69
|
case 6:
|
|
70
|
-
return
|
|
70
|
+
return g.fn.call(g.context, d, f, k, p, y), !0;
|
|
71
71
|
}
|
|
72
|
-
for (
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
for (v = 1, L = new Array(B - 1); v < B; v++)
|
|
73
|
+
L[v - 1] = arguments[v];
|
|
74
|
+
g.fn.apply(g.context, L);
|
|
75
75
|
} else {
|
|
76
|
-
var
|
|
77
|
-
for (
|
|
78
|
-
switch (
|
|
76
|
+
var vt = g.length, D;
|
|
77
|
+
for (v = 0; v < vt; v++)
|
|
78
|
+
switch (g[v].once && this.removeListener(u, g[v].fn, void 0, !0), B) {
|
|
79
79
|
case 1:
|
|
80
|
-
|
|
80
|
+
g[v].fn.call(g[v].context);
|
|
81
81
|
break;
|
|
82
82
|
case 2:
|
|
83
|
-
|
|
83
|
+
g[v].fn.call(g[v].context, d);
|
|
84
84
|
break;
|
|
85
85
|
case 3:
|
|
86
|
-
|
|
86
|
+
g[v].fn.call(g[v].context, d, f);
|
|
87
87
|
break;
|
|
88
88
|
case 4:
|
|
89
|
-
|
|
89
|
+
g[v].fn.call(g[v].context, d, f, k);
|
|
90
90
|
break;
|
|
91
91
|
default:
|
|
92
|
-
if (!
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
if (!L) for (D = 1, L = new Array(B - 1); D < B; D++)
|
|
93
|
+
L[D - 1] = arguments[D];
|
|
94
|
+
g[v].fn.apply(g[v].context, L);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
return !0;
|
|
@@ -99,275 +99,275 @@ function pr() {
|
|
|
99
99
|
return a(this, u, d, f, !1);
|
|
100
100
|
}, s.prototype.once = function(u, d, f) {
|
|
101
101
|
return a(this, u, d, f, !0);
|
|
102
|
-
}, s.prototype.removeListener = function(u, d, f,
|
|
103
|
-
var
|
|
104
|
-
if (!this._events[
|
|
102
|
+
}, s.prototype.removeListener = function(u, d, f, k) {
|
|
103
|
+
var p = n ? n + u : u;
|
|
104
|
+
if (!this._events[p]) return this;
|
|
105
105
|
if (!d)
|
|
106
|
-
return i(this,
|
|
107
|
-
var
|
|
108
|
-
if (
|
|
109
|
-
|
|
106
|
+
return i(this, p), this;
|
|
107
|
+
var y = this._events[p];
|
|
108
|
+
if (y.fn)
|
|
109
|
+
y.fn === d && (!k || y.once) && (!f || y.context === f) && i(this, p);
|
|
110
110
|
else {
|
|
111
|
-
for (var
|
|
112
|
-
(
|
|
113
|
-
|
|
111
|
+
for (var P = 0, g = [], B = y.length; P < B; P++)
|
|
112
|
+
(y[P].fn !== d || k && !y[P].once || f && y[P].context !== f) && g.push(y[P]);
|
|
113
|
+
g.length ? this._events[p] = g.length === 1 ? g[0] : g : i(this, p);
|
|
114
114
|
}
|
|
115
115
|
return this;
|
|
116
116
|
}, s.prototype.removeAllListeners = function(u) {
|
|
117
117
|
var d;
|
|
118
|
-
return u ? (d =
|
|
119
|
-
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed =
|
|
120
|
-
})(
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const j = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"),
|
|
124
|
-
if (
|
|
125
|
-
const
|
|
126
|
-
return o && a && Object.keys(a).forEach((i) =>
|
|
118
|
+
return u ? (d = n ? n + u : u, this._events[d] && i(this, d)) : (this._events = new r(), this._eventsCount = 0), this;
|
|
119
|
+
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = n, s.EventEmitter = s, t.exports = s;
|
|
120
|
+
})(Kt)), Kt.exports;
|
|
121
|
+
}
|
|
122
|
+
yn();
|
|
123
|
+
const j = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"), Le = /* @__PURE__ */ Symbol.for("@ts-pattern/isVariadic"), Bt = "@ts-pattern/anonymous-select-key", qt = (t) => !!(t && typeof t == "object"), Dt = (t) => t && !!t[j], T = (t, e, n) => {
|
|
124
|
+
if (Dt(t)) {
|
|
125
|
+
const r = t[j](), { matched: o, selections: a } = r.match(e);
|
|
126
|
+
return o && a && Object.keys(a).forEach((i) => n(i, a[i])), o;
|
|
127
127
|
}
|
|
128
|
-
if (
|
|
129
|
-
if (!
|
|
130
|
-
if (Array.isArray(
|
|
131
|
-
if (!Array.isArray(
|
|
132
|
-
let
|
|
133
|
-
for (const i of
|
|
134
|
-
const s =
|
|
135
|
-
|
|
128
|
+
if (qt(t)) {
|
|
129
|
+
if (!qt(e)) return !1;
|
|
130
|
+
if (Array.isArray(t)) {
|
|
131
|
+
if (!Array.isArray(e)) return !1;
|
|
132
|
+
let r = [], o = [], a = [];
|
|
133
|
+
for (const i of t.keys()) {
|
|
134
|
+
const s = t[i];
|
|
135
|
+
Dt(s) && s[Le] ? a.push(s) : a.length ? o.push(s) : r.push(s);
|
|
136
136
|
}
|
|
137
137
|
if (a.length) {
|
|
138
138
|
if (a.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
139
|
-
if (
|
|
140
|
-
const i =
|
|
141
|
-
return
|
|
139
|
+
if (e.length < r.length + o.length) return !1;
|
|
140
|
+
const i = e.slice(0, r.length), s = o.length === 0 ? [] : e.slice(-o.length), c = e.slice(r.length, o.length === 0 ? 1 / 0 : -o.length);
|
|
141
|
+
return r.every((u, d) => T(u, i[d], n)) && o.every((u, d) => T(u, s[d], n)) && (a.length === 0 || T(a[0], c, n));
|
|
142
142
|
}
|
|
143
|
-
return
|
|
143
|
+
return t.length === e.length && t.every((i, s) => T(i, e[s], n));
|
|
144
144
|
}
|
|
145
|
-
return Reflect.ownKeys(
|
|
146
|
-
const o =
|
|
147
|
-
return (
|
|
145
|
+
return Reflect.ownKeys(t).every((r) => {
|
|
146
|
+
const o = t[r];
|
|
147
|
+
return (r in e || Dt(a = o) && a[j]().matcherType === "optional") && T(o, e[r], n);
|
|
148
148
|
var a;
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
|
-
return Object.is(
|
|
152
|
-
},
|
|
153
|
-
var
|
|
154
|
-
return
|
|
155
|
-
},
|
|
156
|
-
function
|
|
157
|
-
if (
|
|
158
|
-
const [
|
|
159
|
-
return (
|
|
151
|
+
return Object.is(e, t);
|
|
152
|
+
}, V = (t) => {
|
|
153
|
+
var e, n, r;
|
|
154
|
+
return qt(t) ? Dt(t) ? (e = (n = (r = t[j]()).getSelectionKeys) == null ? void 0 : n.call(r)) != null ? e : [] : Array.isArray(t) ? xt(t, V) : xt(Object.values(t), V) : [];
|
|
155
|
+
}, xt = (t, e) => t.reduce((n, r) => n.concat(e(r)), []);
|
|
156
|
+
function wn(...t) {
|
|
157
|
+
if (t.length === 1) {
|
|
158
|
+
const [e] = t;
|
|
159
|
+
return (n) => T(e, n, () => {
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
if (
|
|
163
|
-
const [
|
|
164
|
-
return
|
|
162
|
+
if (t.length === 2) {
|
|
163
|
+
const [e, n] = t;
|
|
164
|
+
return T(e, n, () => {
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${
|
|
167
|
+
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
return Object.assign(
|
|
169
|
+
function O(t) {
|
|
170
|
+
return Object.assign(t, { optional: () => ie(t), and: (e) => C(t, e), or: (e) => Ie(t, e), select: (e) => e === void 0 ? kt(t) : kt(e, t) });
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
return Object.assign(((
|
|
174
|
-
let
|
|
175
|
-
const
|
|
172
|
+
function Yt(t) {
|
|
173
|
+
return Object.assign(((e) => Object.assign(e, { [Symbol.iterator]() {
|
|
174
|
+
let n = 0;
|
|
175
|
+
const r = [{ value: Object.assign(e, { [Le]: !0 }), done: !1 }, { done: !0, value: void 0 }];
|
|
176
176
|
return { next: () => {
|
|
177
177
|
var o;
|
|
178
|
-
return (o = n
|
|
178
|
+
return (o = r[n++]) != null ? o : r.at(-1);
|
|
179
179
|
} };
|
|
180
|
-
} }))(
|
|
180
|
+
} }))(t), { optional: () => Yt(ie(t)), select: (e) => Yt(e === void 0 ? kt(t) : kt(e, t)) });
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
184
|
-
let
|
|
185
|
-
const
|
|
186
|
-
|
|
182
|
+
function ie(t) {
|
|
183
|
+
return O({ [j]: () => ({ match: (e) => {
|
|
184
|
+
let n = {};
|
|
185
|
+
const r = (o, a) => {
|
|
186
|
+
n[o] = a;
|
|
187
187
|
};
|
|
188
|
-
return
|
|
189
|
-
}, getSelectionKeys: () =>
|
|
188
|
+
return e === void 0 ? (V(t).forEach((o) => r(o, void 0)), { matched: !0, selections: n }) : { matched: T(t, e, r), selections: n };
|
|
189
|
+
}, getSelectionKeys: () => V(t), matcherType: "optional" }) });
|
|
190
190
|
}
|
|
191
|
-
const
|
|
192
|
-
for (const
|
|
191
|
+
const xn = (t, e) => {
|
|
192
|
+
for (const n of t) if (!e(n)) return !1;
|
|
193
193
|
return !0;
|
|
194
|
-
},
|
|
195
|
-
for (const [
|
|
194
|
+
}, kn = (t, e) => {
|
|
195
|
+
for (const [n, r] of t.entries()) if (!e(r, n)) return !1;
|
|
196
196
|
return !0;
|
|
197
|
-
},
|
|
198
|
-
const
|
|
199
|
-
for (const
|
|
197
|
+
}, Cn = (t, e) => {
|
|
198
|
+
const n = Reflect.ownKeys(t);
|
|
199
|
+
for (const r of n) if (!e(r, t[r])) return !1;
|
|
200
200
|
return !0;
|
|
201
201
|
};
|
|
202
|
-
function C(...
|
|
203
|
-
return
|
|
204
|
-
let
|
|
205
|
-
const
|
|
206
|
-
|
|
202
|
+
function C(...t) {
|
|
203
|
+
return O({ [j]: () => ({ match: (e) => {
|
|
204
|
+
let n = {};
|
|
205
|
+
const r = (o, a) => {
|
|
206
|
+
n[o] = a;
|
|
207
207
|
};
|
|
208
|
-
return { matched:
|
|
209
|
-
}, getSelectionKeys: () =>
|
|
208
|
+
return { matched: t.every((o) => T(o, e, r)), selections: n };
|
|
209
|
+
}, getSelectionKeys: () => xt(t, V), matcherType: "and" }) });
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
return
|
|
213
|
-
let
|
|
214
|
-
const
|
|
215
|
-
|
|
211
|
+
function Ie(...t) {
|
|
212
|
+
return O({ [j]: () => ({ match: (e) => {
|
|
213
|
+
let n = {};
|
|
214
|
+
const r = (o, a) => {
|
|
215
|
+
n[o] = a;
|
|
216
216
|
};
|
|
217
|
-
return
|
|
218
|
-
}, getSelectionKeys: () =>
|
|
217
|
+
return xt(t, V).forEach((o) => r(o, void 0)), { matched: t.some((o) => T(o, e, r)), selections: n };
|
|
218
|
+
}, getSelectionKeys: () => xt(t, V), matcherType: "or" }) });
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
return { [j]: () => ({ match: (
|
|
220
|
+
function m(t) {
|
|
221
|
+
return { [j]: () => ({ match: (e) => ({ matched: !!t(e) }) }) };
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const
|
|
225
|
-
return
|
|
226
|
-
let o = { [
|
|
227
|
-
return { matched:
|
|
223
|
+
function kt(...t) {
|
|
224
|
+
const e = typeof t[0] == "string" ? t[0] : void 0, n = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
225
|
+
return O({ [j]: () => ({ match: (r) => {
|
|
226
|
+
let o = { [e ?? Bt]: r };
|
|
227
|
+
return { matched: n === void 0 || T(n, r, (a, i) => {
|
|
228
228
|
o[a] = i;
|
|
229
229
|
}), selections: o };
|
|
230
|
-
}, getSelectionKeys: () => [
|
|
230
|
+
}, getSelectionKeys: () => [e ?? Bt].concat(n === void 0 ? [] : V(n)) }) });
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Ve(t) {
|
|
233
233
|
return !0;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
return typeof
|
|
237
|
-
}
|
|
238
|
-
function
|
|
239
|
-
return typeof
|
|
240
|
-
}
|
|
241
|
-
function
|
|
242
|
-
return typeof
|
|
243
|
-
}
|
|
244
|
-
const
|
|
245
|
-
return
|
|
246
|
-
var
|
|
247
|
-
}, endsWith: (
|
|
248
|
-
return
|
|
249
|
-
var
|
|
250
|
-
}, minLength: (
|
|
251
|
-
return
|
|
252
|
-
var
|
|
253
|
-
}, regex: (
|
|
254
|
-
return
|
|
255
|
-
var
|
|
256
|
-
} }),
|
|
257
|
-
return typeof
|
|
258
|
-
})),
|
|
259
|
-
return typeof
|
|
260
|
-
})),
|
|
261
|
-
return
|
|
262
|
-
})),
|
|
263
|
-
return
|
|
235
|
+
function H(t) {
|
|
236
|
+
return typeof t == "number";
|
|
237
|
+
}
|
|
238
|
+
function tt(t) {
|
|
239
|
+
return typeof t == "string";
|
|
240
|
+
}
|
|
241
|
+
function et(t) {
|
|
242
|
+
return typeof t == "bigint";
|
|
243
|
+
}
|
|
244
|
+
const je = O(m(Ve)), _n = O(m(Ve)), Nn = je, nt = (t) => Object.assign(O(t), { startsWith: (e) => {
|
|
245
|
+
return nt(C(t, (n = e, m((r) => tt(r) && r.startsWith(n)))));
|
|
246
|
+
var n;
|
|
247
|
+
}, endsWith: (e) => {
|
|
248
|
+
return nt(C(t, (n = e, m((r) => tt(r) && r.endsWith(n)))));
|
|
249
|
+
var n;
|
|
250
|
+
}, minLength: (e) => nt(C(t, ((n) => m((r) => tt(r) && r.length >= n))(e))), length: (e) => nt(C(t, ((n) => m((r) => tt(r) && r.length === n))(e))), maxLength: (e) => nt(C(t, ((n) => m((r) => tt(r) && r.length <= n))(e))), includes: (e) => {
|
|
251
|
+
return nt(C(t, (n = e, m((r) => tt(r) && r.includes(n)))));
|
|
252
|
+
var n;
|
|
253
|
+
}, regex: (e) => {
|
|
254
|
+
return nt(C(t, (n = e, m((r) => tt(r) && !!r.match(n)))));
|
|
255
|
+
var n;
|
|
256
|
+
} }), de = nt(m(tt)), J = (t) => Object.assign(O(t), { between: (e, n) => J(C(t, ((r, o) => m((a) => H(a) && r <= a && o >= a))(e, n))), lt: (e) => J(C(t, ((n) => m((r) => H(r) && r < n))(e))), gt: (e) => J(C(t, ((n) => m((r) => H(r) && r > n))(e))), lte: (e) => J(C(t, ((n) => m((r) => H(r) && r <= n))(e))), gte: (e) => J(C(t, ((n) => m((r) => H(r) && r >= n))(e))), int: () => J(C(t, m((e) => H(e) && Number.isInteger(e)))), finite: () => J(C(t, m((e) => H(e) && Number.isFinite(e)))), positive: () => J(C(t, m((e) => H(e) && e > 0))), negative: () => J(C(t, m((e) => H(e) && e < 0))) }), Sn = J(m(H)), rt = (t) => Object.assign(O(t), { between: (e, n) => rt(C(t, ((r, o) => m((a) => et(a) && r <= a && o >= a))(e, n))), lt: (e) => rt(C(t, ((n) => m((r) => et(r) && r < n))(e))), gt: (e) => rt(C(t, ((n) => m((r) => et(r) && r > n))(e))), lte: (e) => rt(C(t, ((n) => m((r) => et(r) && r <= n))(e))), gte: (e) => rt(C(t, ((n) => m((r) => et(r) && r >= n))(e))), positive: () => rt(C(t, m((e) => et(e) && e > 0))), negative: () => rt(C(t, m((e) => et(e) && e < 0))) }), An = rt(m(et)), En = O(m(function(t) {
|
|
257
|
+
return typeof t == "boolean";
|
|
258
|
+
})), Tn = O(m(function(t) {
|
|
259
|
+
return typeof t == "symbol";
|
|
260
|
+
})), On = O(m(function(t) {
|
|
261
|
+
return t == null;
|
|
262
|
+
})), Rn = O(m(function(t) {
|
|
263
|
+
return t != null;
|
|
264
264
|
}));
|
|
265
|
-
var
|
|
266
|
-
return
|
|
267
|
-
if (!Array.isArray(
|
|
268
|
-
if (
|
|
269
|
-
const
|
|
270
|
-
let n = {};
|
|
271
|
-
if (t.length === 0) return P(r).forEach((a) => {
|
|
272
|
-
n[a] = [];
|
|
273
|
-
}), { matched: !0, selections: n };
|
|
274
|
-
const o = (a, i) => {
|
|
275
|
-
n[a] = (n[a] || []).concat([i]);
|
|
276
|
-
};
|
|
277
|
-
return { matched: t.every((a) => A(r, a, o)), selections: n };
|
|
278
|
-
}, getSelectionKeys: () => e.length === 0 ? [] : P(e[0]) }) });
|
|
279
|
-
}, set: function(...e) {
|
|
280
|
-
return F({ [j]: () => ({ match: (t) => {
|
|
281
|
-
if (!(t instanceof Set)) return { matched: !1 };
|
|
265
|
+
var Fe = { __proto__: null, matcher: j, optional: ie, array: function(...t) {
|
|
266
|
+
return Yt({ [j]: () => ({ match: (e) => {
|
|
267
|
+
if (!Array.isArray(e)) return { matched: !1 };
|
|
268
|
+
if (t.length === 0) return { matched: !0 };
|
|
269
|
+
const n = t[0];
|
|
282
270
|
let r = {};
|
|
283
|
-
if (
|
|
284
|
-
|
|
285
|
-
|
|
271
|
+
if (e.length === 0) return V(n).forEach((a) => {
|
|
272
|
+
r[a] = [];
|
|
273
|
+
}), { matched: !0, selections: r };
|
|
274
|
+
const o = (a, i) => {
|
|
286
275
|
r[a] = (r[a] || []).concat([i]);
|
|
287
|
-
}, o = e[0];
|
|
288
|
-
return { matched: hr(t, (a) => A(o, a, n)), selections: r };
|
|
289
|
-
}, getSelectionKeys: () => e.length === 0 ? [] : P(e[0]) }) });
|
|
290
|
-
}, map: function(...e) {
|
|
291
|
-
return F({ [j]: () => ({ match: (t) => {
|
|
292
|
-
if (!(t instanceof Map)) return { matched: !1 };
|
|
293
|
-
let r = {};
|
|
294
|
-
if (t.size === 0) return { matched: !0, selections: r };
|
|
295
|
-
const n = (s, c) => {
|
|
296
|
-
r[s] = (r[s] || []).concat([c]);
|
|
297
276
|
};
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
return { matched:
|
|
303
|
-
const u = A(a, c, n), d = A(i, s, n);
|
|
304
|
-
return u && d;
|
|
305
|
-
}), selections: r };
|
|
306
|
-
}, getSelectionKeys: () => e.length === 0 ? [] : [...P(e[0]), ...P(e[1])] }) });
|
|
307
|
-
}, record: function(...e) {
|
|
308
|
-
return F({ [j]: () => ({ match: (t) => {
|
|
309
|
-
if (t === null || typeof t != "object" || Array.isArray(t)) return { matched: !1 };
|
|
310
|
-
var r;
|
|
311
|
-
if (e.length === 0) throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(r = e[0]) == null ? void 0 : r.toString()}`);
|
|
277
|
+
return { matched: e.every((a) => T(n, a, o)), selections: r };
|
|
278
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : V(t[0]) }) });
|
|
279
|
+
}, set: function(...t) {
|
|
280
|
+
return O({ [j]: () => ({ match: (e) => {
|
|
281
|
+
if (!(e instanceof Set)) return { matched: !1 };
|
|
312
282
|
let n = {};
|
|
313
|
-
|
|
283
|
+
if (e.size === 0) return { matched: !0, selections: n };
|
|
284
|
+
if (t.length === 0) return { matched: !0 };
|
|
285
|
+
const r = (a, i) => {
|
|
286
|
+
n[a] = (n[a] || []).concat([i]);
|
|
287
|
+
}, o = t[0];
|
|
288
|
+
return { matched: xn(e, (a) => T(o, a, r)), selections: n };
|
|
289
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : V(t[0]) }) });
|
|
290
|
+
}, map: function(...t) {
|
|
291
|
+
return O({ [j]: () => ({ match: (e) => {
|
|
292
|
+
if (!(e instanceof Map)) return { matched: !1 };
|
|
293
|
+
let n = {};
|
|
294
|
+
if (e.size === 0) return { matched: !0, selections: n };
|
|
295
|
+
const r = (s, c) => {
|
|
314
296
|
n[s] = (n[s] || []).concat([c]);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
297
|
+
};
|
|
298
|
+
if (t.length === 0) return { matched: !0 };
|
|
299
|
+
var o;
|
|
300
|
+
if (t.length === 1) throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o = t[0]) == null ? void 0 : o.toString()}`);
|
|
301
|
+
const [a, i] = t;
|
|
302
|
+
return { matched: kn(e, (s, c) => {
|
|
303
|
+
const u = T(a, c, r), d = T(i, s, r);
|
|
304
|
+
return u && d;
|
|
319
305
|
}), selections: n };
|
|
320
|
-
}, getSelectionKeys: () =>
|
|
321
|
-
},
|
|
322
|
-
return
|
|
306
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : [...V(t[0]), ...V(t[1])] }) });
|
|
307
|
+
}, record: function(...t) {
|
|
308
|
+
return O({ [j]: () => ({ match: (e) => {
|
|
309
|
+
if (e === null || typeof e != "object" || Array.isArray(e)) return { matched: !1 };
|
|
310
|
+
var n;
|
|
311
|
+
if (t.length === 0) throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(n = t[0]) == null ? void 0 : n.toString()}`);
|
|
312
|
+
let r = {};
|
|
313
|
+
const o = (s, c) => {
|
|
314
|
+
r[s] = (r[s] || []).concat([c]);
|
|
315
|
+
}, [a, i] = t.length === 1 ? [de, t[0]] : t;
|
|
316
|
+
return { matched: Cn(e, (s, c) => {
|
|
317
|
+
const u = typeof s != "string" || Number.isNaN(Number(s)) ? null : Number(s), d = u !== null && T(a, u, o), f = T(a, s, o), k = T(i, c, o);
|
|
318
|
+
return (f || d) && k;
|
|
319
|
+
}), selections: r };
|
|
320
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : [...V(t[0]), ...V(t[1])] }) });
|
|
321
|
+
}, intersection: C, union: Ie, not: function(t) {
|
|
322
|
+
return O({ [j]: () => ({ match: (e) => ({ matched: !T(t, e, () => {
|
|
323
323
|
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
324
|
-
}, when:
|
|
325
|
-
return
|
|
326
|
-
return (
|
|
327
|
-
})(
|
|
328
|
-
}, shape: function(
|
|
329
|
-
return
|
|
324
|
+
}, when: m, select: kt, any: je, unknown: _n, _: Nn, string: de, number: Sn, bigint: An, boolean: En, symbol: Tn, nullish: On, nonNullable: Rn, instanceOf: function(t) {
|
|
325
|
+
return O(m(/* @__PURE__ */ (function(e) {
|
|
326
|
+
return (n) => n instanceof e;
|
|
327
|
+
})(t)));
|
|
328
|
+
}, shape: function(t) {
|
|
329
|
+
return O(m(wn(t)));
|
|
330
330
|
} };
|
|
331
|
-
let
|
|
332
|
-
constructor(
|
|
333
|
-
let
|
|
331
|
+
let Dn = class extends Error {
|
|
332
|
+
constructor(e) {
|
|
333
|
+
let n;
|
|
334
334
|
try {
|
|
335
|
-
|
|
335
|
+
n = JSON.stringify(e);
|
|
336
336
|
} catch {
|
|
337
|
-
|
|
337
|
+
n = e;
|
|
338
338
|
}
|
|
339
|
-
super(`Pattern matching error: no pattern matches value ${
|
|
339
|
+
super(`Pattern matching error: no pattern matches value ${n}`), this.input = void 0, this.input = e;
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
|
-
const
|
|
343
|
-
function Q(
|
|
344
|
-
return new
|
|
342
|
+
const Zt = { matched: !1, value: void 0 };
|
|
343
|
+
function Q(t) {
|
|
344
|
+
return new Pn(t, Zt);
|
|
345
345
|
}
|
|
346
|
-
let
|
|
347
|
-
constructor(
|
|
348
|
-
this.input = void 0, this.state = void 0, this.input =
|
|
346
|
+
let Pn = class $t {
|
|
347
|
+
constructor(e, n) {
|
|
348
|
+
this.input = void 0, this.state = void 0, this.input = e, this.state = n;
|
|
349
349
|
}
|
|
350
|
-
with(...
|
|
350
|
+
with(...e) {
|
|
351
351
|
if (this.state.matched) return this;
|
|
352
|
-
const
|
|
352
|
+
const n = e[e.length - 1], r = [e[0]];
|
|
353
353
|
let o;
|
|
354
|
-
|
|
354
|
+
e.length === 3 && typeof e[1] == "function" ? o = e[1] : e.length > 2 && r.push(...e.slice(1, e.length - 1));
|
|
355
355
|
let a = !1, i = {};
|
|
356
356
|
const s = (u, d) => {
|
|
357
357
|
a = !0, i[u] = d;
|
|
358
|
-
}, c = !
|
|
359
|
-
return new
|
|
358
|
+
}, c = !r.some((u) => T(u, this.input, s)) || o && !o(this.input) ? Zt : { matched: !0, value: n(a ? Bt in i ? i[Bt] : i : this.input, this.input) };
|
|
359
|
+
return new $t(this.input, c);
|
|
360
360
|
}
|
|
361
|
-
when(
|
|
361
|
+
when(e, n) {
|
|
362
362
|
if (this.state.matched) return this;
|
|
363
|
-
const
|
|
364
|
-
return new
|
|
363
|
+
const r = !!e(this.input);
|
|
364
|
+
return new $t(this.input, r ? { matched: !0, value: n(this.input, this.input) } : Zt);
|
|
365
365
|
}
|
|
366
|
-
otherwise(
|
|
367
|
-
return this.state.matched ? this.state.value :
|
|
366
|
+
otherwise(e) {
|
|
367
|
+
return this.state.matched ? this.state.value : e(this.input);
|
|
368
368
|
}
|
|
369
|
-
exhaustive(
|
|
370
|
-
return this.state.matched ? this.state.value :
|
|
369
|
+
exhaustive(e = Bn) {
|
|
370
|
+
return this.state.matched ? this.state.value : e(this.input);
|
|
371
371
|
}
|
|
372
372
|
run() {
|
|
373
373
|
return this.exhaustive();
|
|
@@ -379,1073 +379,938 @@ let Ar = class Ue {
|
|
|
379
379
|
return this;
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
|
-
function
|
|
383
|
-
throw new
|
|
382
|
+
function Bn(t) {
|
|
383
|
+
throw new Dn(t);
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const ct = {
|
|
386
386
|
STANDBY: "standby",
|
|
387
387
|
CONNECTING: "connecting",
|
|
388
388
|
READY: "ready",
|
|
389
389
|
HANDSHAKE: "handshake",
|
|
390
390
|
HANDSHAKE_PARTIAL: "handshake-partial",
|
|
391
391
|
ENCRYPTED: "encrypted"
|
|
392
|
-
},
|
|
392
|
+
}, ut = {
|
|
393
393
|
CREATED: "created",
|
|
394
394
|
SIGNALING: "signaling",
|
|
395
395
|
READY: "ready",
|
|
396
|
+
LINKING: "linking",
|
|
396
397
|
CONNECTED: "connected",
|
|
397
398
|
DISCONNECTED: "disconnected"
|
|
398
|
-
},
|
|
399
|
+
}, it = {
|
|
399
400
|
STANDBY: "standby",
|
|
400
401
|
CREATING: "creating",
|
|
401
402
|
CONNECTING: "connecting",
|
|
402
403
|
CONNECTED: "connected",
|
|
403
404
|
ERROR: "error"
|
|
404
405
|
};
|
|
405
|
-
var
|
|
406
|
-
var
|
|
407
|
-
function
|
|
408
|
-
return
|
|
406
|
+
var Ht = { exports: {} };
|
|
407
|
+
var fe;
|
|
408
|
+
function Ln() {
|
|
409
|
+
return fe || (fe = 1, (function(t) {
|
|
409
410
|
(function() {
|
|
410
|
-
var
|
|
411
|
-
function
|
|
411
|
+
var e = {}.hasOwnProperty;
|
|
412
|
+
function n() {
|
|
412
413
|
for (var a = "", i = 0; i < arguments.length; i++) {
|
|
413
414
|
var s = arguments[i];
|
|
414
|
-
s && (a = o(a,
|
|
415
|
+
s && (a = o(a, r(s)));
|
|
415
416
|
}
|
|
416
417
|
return a;
|
|
417
418
|
}
|
|
418
|
-
function
|
|
419
|
+
function r(a) {
|
|
419
420
|
if (typeof a == "string" || typeof a == "number")
|
|
420
421
|
return a;
|
|
421
422
|
if (typeof a != "object")
|
|
422
423
|
return "";
|
|
423
424
|
if (Array.isArray(a))
|
|
424
|
-
return
|
|
425
|
+
return n.apply(null, a);
|
|
425
426
|
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
|
|
426
427
|
return a.toString();
|
|
427
428
|
var i = "";
|
|
428
429
|
for (var s in a)
|
|
429
|
-
|
|
430
|
+
e.call(a, s) && a[s] && (i = o(i, s));
|
|
430
431
|
return i;
|
|
431
432
|
}
|
|
432
433
|
function o(a, i) {
|
|
433
434
|
return i ? a ? a + " " + i : a + i : a;
|
|
434
435
|
}
|
|
435
|
-
|
|
436
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
436
437
|
})();
|
|
437
|
-
})(
|
|
438
|
-
}
|
|
439
|
-
var
|
|
440
|
-
const
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
color: "#475569",
|
|
474
|
-
hoverBackground: "#F1F5F9",
|
|
475
|
-
activeBackground: "#E2E8F0",
|
|
476
|
-
disabledColor: "#94A3B8"
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
|
-
qr: { background: "#FFFFFF", color: "#0F172A" },
|
|
481
|
-
card: { background: "#F5F5F5" },
|
|
482
|
-
text: { primary: "#0F172A", secondary: "#475569", muted: "#94A3B8" }
|
|
483
|
-
},
|
|
484
|
-
dark: {
|
|
485
|
-
font: { family: "Inter, sans-serif" },
|
|
486
|
-
body: { color: "#F3F4F6", background: "#16181D" },
|
|
487
|
-
border: { radius: "16px", color: "#2F343C", width: "1px" },
|
|
488
|
-
overlay: {
|
|
489
|
-
background: "rgba(0,0,0,0.55)",
|
|
490
|
-
backdrop: { filter: "blur(8px)" }
|
|
491
|
-
},
|
|
492
|
-
modal: { shadow: "0px 22px 60px rgba(0,0,0,0.55)" },
|
|
493
|
-
control: {
|
|
494
|
-
input: { background: "#12151A", border: "#2F343C", text: "#E8EAED" },
|
|
495
|
-
button: {
|
|
496
|
-
primary: {
|
|
497
|
-
background: "#FF6A00",
|
|
498
|
-
color: "#0D0E12",
|
|
499
|
-
padding: "8px 16px",
|
|
500
|
-
hoverBackground: "#FF7D1F",
|
|
501
|
-
activeBackground: "#E76200",
|
|
502
|
-
disabledBackground: "#2A2F36",
|
|
503
|
-
disabledColor: "#8E949C",
|
|
504
|
-
border: "#FF6A00"
|
|
505
|
-
},
|
|
506
|
-
secondary: {
|
|
507
|
-
background: "#262A31",
|
|
508
|
-
color: "#E8EAED",
|
|
509
|
-
hoverBackground: "#2D323A",
|
|
510
|
-
activeBackground: "#23272E",
|
|
511
|
-
disabledBackground: "#1D2026",
|
|
512
|
-
disabledColor: "#8E949C",
|
|
513
|
-
border: "#333843"
|
|
514
|
-
},
|
|
515
|
-
tertiary: {
|
|
516
|
-
color: "#A4A9B1",
|
|
517
|
-
hoverBackground: "#20242A",
|
|
518
|
-
activeBackground: "#1B1F24",
|
|
519
|
-
disabledColor: "#6F747B"
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
qr: { background: "#FFFFFF", color: "#0D0E12" },
|
|
524
|
-
card: { background: "#1E2127" },
|
|
525
|
-
text: { primary: "#F3F4F6", secondary: "#C8CCD2", muted: "#9AA0A9" }
|
|
438
|
+
})(Ht)), Ht.exports;
|
|
439
|
+
}
|
|
440
|
+
var In = Ln();
|
|
441
|
+
const dt = /* @__PURE__ */ bn(In), Vn = { close: "Close", yes: "Yes", no: "No", protocol: "Protocol" }, jn = { connectedSuccessfully: "Connected Successfully!", connecting: "Connecting", ready: "Ready", handshakeClosed: "Handshake Closed", handshakePartial: "Handshake Partial", encrypted: "Encrypted", signalError: "Signal Error", disconnected: "Disconnected" }, Fn = { title: "Settings", language: "Language", connectionPreferences: { title: "Connection preferences", retainSessionHistory: "Retain session history", autoReconnect: "Auto reconnect" }, signaling: { title: "Signaling", description: "Signaling is the handshake protocol used to establish a connection.", server: "Server", serverUrl: "Server URL" }, transport: { title: "Transport", description: "This is how the connection is maintained.", webrtc: "WebRTC" } }, zn = { title: "Connect Wallet" }, Mn = { title: "What is openlv?", scanQrCode: "Scan QR Code", approveOnDevice: "Approve on device", youreConnected: "You're connected!" }, Gn = { prompt: "Click the button below to start a connection", generateQr: "Generate QR", connectionSettings: "Connection settings" }, Wn = { preparingConnection: "Preparing connection", generatingKeys: "Generating keys...", connecting: "Connecting", waitingForNetwork: "Waiting for network connection...", establishingConnection: "Establishing connection...", mayTakeFewSeconds: "This may take a few seconds...", connectedSuccessfully: "Connected Successfully!", walletConnectedReady: "Your wallet is now connected and ready to use.", disconnected: "Disconnected", connectionClosed: "The connection has been closed." }, Un = { clickToCopyUrl: "Click to copy connection URL", copyConnectionUrl: "Copy Connection URL", scanCodeInstruction: `Scan the code above using your mobile wallet.
|
|
442
|
+
Or copy the link and paste it into your wallet.` }, Kn = { urlCopied: "Connection URL copied to clipboard!", backToQr: "Back to QR", closeModal: "Close modal" }, Hn = {
|
|
443
|
+
common: Vn,
|
|
444
|
+
status: jn,
|
|
445
|
+
settings: Fn,
|
|
446
|
+
start: zn,
|
|
447
|
+
info: Mn,
|
|
448
|
+
disconnected: Gn,
|
|
449
|
+
connectionFlow: Wn,
|
|
450
|
+
handshake: Un,
|
|
451
|
+
modal: Kn
|
|
452
|
+
}, se = [
|
|
453
|
+
{ tag: "en", name: "English", nativeName: "English" },
|
|
454
|
+
{ tag: "nl", name: "Dutch", nativeName: "Nederlands" },
|
|
455
|
+
{ tag: "es", name: "Spanish", nativeName: "Español" },
|
|
456
|
+
{ tag: "sv", name: "Swedish", nativeName: "Svenska" },
|
|
457
|
+
{ tag: "zh-cn", name: "Chinese (Simplified)", nativeName: "简体中文" },
|
|
458
|
+
{ tag: "fr", name: "French", nativeName: "Français" },
|
|
459
|
+
{ tag: "ar", name: "Arabic", nativeName: "العربية", rtl: !0 },
|
|
460
|
+
{ tag: "he", name: "Hebrew", nativeName: "עברית", rtl: !0 },
|
|
461
|
+
{ tag: "fa", name: "Persian", nativeName: "فارسی", rtl: !0 }
|
|
462
|
+
], Jn = (t) => se.find((n) => n.tag === t)?.rtl ?? !1, ge = se.map((t) => t.tag), Qn = () => {
|
|
463
|
+
if (typeof navigator > "u") return "en";
|
|
464
|
+
const t = navigator.languages || [navigator.language];
|
|
465
|
+
for (const e of t) {
|
|
466
|
+
const n = e.toLowerCase();
|
|
467
|
+
if (ge.includes(n))
|
|
468
|
+
return n;
|
|
469
|
+
if (n === "zh" || n.startsWith("zh-hans") || n.startsWith("zh-cn"))
|
|
470
|
+
return "zh-cn";
|
|
471
|
+
const [r] = n.split("-");
|
|
472
|
+
if (ge.includes(r))
|
|
473
|
+
return r;
|
|
526
474
|
}
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
backdrop: { filter: "blur(8px)" }
|
|
540
|
-
},
|
|
541
|
-
modal: {
|
|
542
|
-
shadow: "0px 12px 32px rgba(0, 0, 0, 0.25)"
|
|
543
|
-
},
|
|
544
|
-
control: {
|
|
545
|
-
input: {
|
|
546
|
-
background: "#FFFFFF",
|
|
547
|
-
border: "#D1D5DC",
|
|
548
|
-
text: "#111827"
|
|
549
|
-
},
|
|
550
|
-
button: {
|
|
551
|
-
primary: {
|
|
552
|
-
background: "#3B82F6",
|
|
553
|
-
color: "#FFFFFF",
|
|
554
|
-
padding: "8px 16px",
|
|
555
|
-
hoverBackground: "#2563EB",
|
|
556
|
-
activeBackground: "#1D4ED8",
|
|
557
|
-
disabledBackground: "#E5E7EB",
|
|
558
|
-
disabledColor: "#9CA3AF",
|
|
559
|
-
border: "#3B82F6"
|
|
560
|
-
},
|
|
561
|
-
secondary: {
|
|
562
|
-
background: "#E5E7EB",
|
|
563
|
-
color: "#374151",
|
|
564
|
-
hoverBackground: "#D1D5DC",
|
|
565
|
-
activeBackground: "#D1D5DB",
|
|
566
|
-
disabledBackground: "#F9FAFB",
|
|
567
|
-
disabledColor: "#9CA3AF",
|
|
568
|
-
border: "#D1D5DC",
|
|
569
|
-
selectedBackground: "#EFF6FF",
|
|
570
|
-
selectedColor: "#155dfc"
|
|
571
|
-
},
|
|
572
|
-
tertiary: {
|
|
573
|
-
color: "#6B7280",
|
|
574
|
-
hoverBackground: "#E5E5E5",
|
|
575
|
-
activeBackground: "#D1D5DB",
|
|
576
|
-
disabledColor: "#9CA3AF"
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
qr: {
|
|
581
|
-
background: "#F9FAFB",
|
|
582
|
-
color: "#111827"
|
|
583
|
-
},
|
|
584
|
-
card: {
|
|
585
|
-
background: "#F5F5F5"
|
|
586
|
-
},
|
|
587
|
-
text: {
|
|
588
|
-
primary: "#111827",
|
|
589
|
-
secondary: "#374151",
|
|
590
|
-
muted: "#6B7280",
|
|
591
|
-
heading: "#111827",
|
|
592
|
-
body: "#6a7282"
|
|
593
|
-
}
|
|
475
|
+
return "en";
|
|
476
|
+
}, pe = (t) => {
|
|
477
|
+
if (typeof navigator > "u") return 0;
|
|
478
|
+
const e = navigator.languages || [navigator.language];
|
|
479
|
+
for (let n = 0; n < e.length; n++) {
|
|
480
|
+
const r = e[n].toLowerCase();
|
|
481
|
+
if (r === t) return e.length - n + 1;
|
|
482
|
+
if (r.startsWith(`${t}-`) || t.startsWith(`${r}-`))
|
|
483
|
+
return e.length - n;
|
|
484
|
+
const [o] = r.split("-");
|
|
485
|
+
if (o === t || t.startsWith(`${o}-`))
|
|
486
|
+
return e.length - n - 0.5;
|
|
594
487
|
}
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
e && Pt(t, [], e);
|
|
605
|
-
const r = (a, i) => {
|
|
606
|
-
const s = t.get(a);
|
|
607
|
-
s !== void 0 && !t.has(i) && t.set(i, s);
|
|
608
|
-
}, n = ["primary", "secondary", "tertiary"], o = [
|
|
609
|
-
"background",
|
|
610
|
-
"color",
|
|
611
|
-
"border",
|
|
612
|
-
"hoverBackground",
|
|
613
|
-
"activeBackground",
|
|
614
|
-
"disabledBackground",
|
|
615
|
-
"disabledColor",
|
|
616
|
-
"selectedBackground",
|
|
617
|
-
"selectedColor"
|
|
618
|
-
];
|
|
619
|
-
for (const a of n)
|
|
620
|
-
for (const i of o)
|
|
621
|
-
r(`--lv-control-button-${a}-${i}`, `--lv-button-${a}-${i}`), r(`--lv-button-${a}-${i}`, `--lv-control-button-${a}-${i}`);
|
|
622
|
-
return Object.fromEntries(t.entries());
|
|
623
|
-
}, De = {
|
|
624
|
-
theme: "openlv",
|
|
625
|
-
tokens: Dt,
|
|
626
|
-
mode: "system"
|
|
627
|
-
}, Or = {
|
|
628
|
-
openlv: Dt,
|
|
629
|
-
simple: Tr
|
|
630
|
-
}, Rr = (e) => Or[e], Dr = () => typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", Pr = (e, t) => {
|
|
631
|
-
const r = e === "system" ? [Dr(), "light", "dark"] : [e, "light", "dark"];
|
|
632
|
-
for (const n of r) {
|
|
633
|
-
const o = t[n];
|
|
634
|
-
if (o)
|
|
635
|
-
return {
|
|
636
|
-
tokens: o,
|
|
637
|
-
mode: n
|
|
638
|
-
};
|
|
488
|
+
return 0;
|
|
489
|
+
}, he = (t, e) => {
|
|
490
|
+
if (!t) return;
|
|
491
|
+
const n = e.split(".").filter(Boolean);
|
|
492
|
+
if (n.length === 0) return;
|
|
493
|
+
let r = t;
|
|
494
|
+
for (const o of n) {
|
|
495
|
+
if (typeof r != "object" || r === null) return;
|
|
496
|
+
r = r[o];
|
|
639
497
|
}
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
498
|
+
return r;
|
|
499
|
+
}, ve = (t, e) => e ? t.replace(
|
|
500
|
+
/\{(\w+)\}/g,
|
|
501
|
+
(n, r) => {
|
|
502
|
+
const o = e[r];
|
|
503
|
+
return o === void 0 ? n : String(o);
|
|
504
|
+
}
|
|
505
|
+
) : t, Xn = (t) => {
|
|
506
|
+
const e = he(t.primary, t.key);
|
|
507
|
+
if (typeof e == "string")
|
|
508
|
+
return ve(e, t.params);
|
|
509
|
+
const n = he(t.fallback, t.key);
|
|
510
|
+
return typeof n == "string" ? ve(n, t.params) : t.key;
|
|
511
|
+
}, ze = ae(
|
|
512
|
+
null
|
|
513
|
+
), qn = async (t) => Q(t).with("en", () => Promise.resolve(null)).with("nl", async () => import("./nl-BcUtTHZo.js").then((e) => e.default)).with("es", async () => import("./es-DY71WoiL.js").then((e) => e.default)).with("sv", async () => import("./sv-jsZzNYT8.js").then((e) => e.default)).with("fr", async () => import("./fr-KRwPr2KB.js").then((e) => e.default)).with(
|
|
514
|
+
"zh-cn",
|
|
515
|
+
async () => import("./zh-cn-B-g1waPO.js").then((e) => e.default)
|
|
516
|
+
).with("ar", async () => import("./ar-BAmzpyRI.js").then((e) => e.default)).with("he", async () => import("./he-BJ3Ukwed.js").then((e) => e.default)).with("fa", async () => import("./fa-CZ8QQ_OY.js").then((e) => e.default)).exhaustive(), Yn = ({
|
|
517
|
+
children: t,
|
|
518
|
+
initialLanguageTag: e = "en"
|
|
648
519
|
}) => {
|
|
649
|
-
const
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
520
|
+
const [n, r] = R(e), [o, a] = R(null), [i, s] = R(!1);
|
|
521
|
+
I(() => {
|
|
522
|
+
let f = !1;
|
|
523
|
+
return (async () => {
|
|
524
|
+
s(!0);
|
|
525
|
+
try {
|
|
526
|
+
const p = await qn(n);
|
|
527
|
+
if (f) return;
|
|
528
|
+
a(p);
|
|
529
|
+
} finally {
|
|
530
|
+
f || s(!1);
|
|
531
|
+
}
|
|
532
|
+
})(), () => {
|
|
533
|
+
f = !0;
|
|
534
|
+
};
|
|
535
|
+
}, [n]);
|
|
536
|
+
const c = U(
|
|
537
|
+
(f, k) => Xn({
|
|
538
|
+
primary: o,
|
|
539
|
+
fallback: Hn,
|
|
540
|
+
key: f,
|
|
541
|
+
params: k
|
|
542
|
+
}).split(`
|
|
543
|
+
`).map((p, y) => [p, /* @__PURE__ */ l("br", {}, y)]),
|
|
544
|
+
[o]
|
|
545
|
+
), u = ft(() => Jn(n), [n]), d = ft(
|
|
546
|
+
() => ({
|
|
547
|
+
languageTag: n,
|
|
548
|
+
setLanguageTag: r,
|
|
549
|
+
isLoadingLanguagePack: i,
|
|
550
|
+
isRtl: u,
|
|
551
|
+
t: c
|
|
552
|
+
}),
|
|
553
|
+
[i, u, n, c]
|
|
661
554
|
);
|
|
662
|
-
|
|
555
|
+
return /* @__PURE__ */ l(ze.Provider, { value: d, children: t });
|
|
556
|
+
}, G = () => {
|
|
557
|
+
const t = jt(ze);
|
|
558
|
+
if (!t)
|
|
559
|
+
throw new Error("TranslationProvider not found");
|
|
560
|
+
return t;
|
|
561
|
+
}, Me = ae({
|
|
663
562
|
provider: void 0
|
|
664
|
-
}),
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
563
|
+
}), Zn = (t) => {
|
|
564
|
+
const e = t?.storage.getSettings().language;
|
|
565
|
+
return e || Qn();
|
|
566
|
+
}, $n = ({
|
|
567
|
+
provider: t,
|
|
568
|
+
onClose: e
|
|
668
569
|
}) => {
|
|
669
|
-
const n =
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
570
|
+
const n = ft(
|
|
571
|
+
() => Zn(t),
|
|
572
|
+
[t]
|
|
573
|
+
);
|
|
574
|
+
return /* @__PURE__ */ l(Yn, { initialLanguageTag: n, children: /* @__PURE__ */ l(Me.Provider, { value: { provider: t }, children: /* @__PURE__ */ l(Oo, { onClose: e }) }) });
|
|
575
|
+
}, tr = () => {
|
|
576
|
+
const t = jt(Me);
|
|
577
|
+
if (!t.provider) throw new Error("Provider not found");
|
|
578
|
+
return t;
|
|
579
|
+
}, _t = () => {
|
|
580
|
+
const { provider: t } = tr(), [e, n] = R(
|
|
581
|
+
t?.getState().status || it.ERROR
|
|
678
582
|
);
|
|
679
583
|
if (I(() => {
|
|
680
|
-
const
|
|
681
|
-
|
|
584
|
+
const r = (a) => {
|
|
585
|
+
n(a);
|
|
682
586
|
};
|
|
683
|
-
|
|
684
|
-
|
|
587
|
+
t?.on("status_change", r);
|
|
588
|
+
const o = t?.getState().status;
|
|
589
|
+
return o && n(o), () => {
|
|
590
|
+
t?.off("status_change", r);
|
|
685
591
|
};
|
|
686
|
-
}, [
|
|
687
|
-
return { provider:
|
|
688
|
-
},
|
|
592
|
+
}, [t]), !t) throw new Error("Provider not found");
|
|
593
|
+
return { provider: t, status: e };
|
|
594
|
+
}, le = (...t) => console.log(
|
|
689
595
|
"%c[modal]%c",
|
|
690
596
|
"color: yellow; font-weight: bold",
|
|
691
597
|
"color: inherit; font-weight: normal",
|
|
692
|
-
...
|
|
693
|
-
),
|
|
694
|
-
I(() => (
|
|
695
|
-
|
|
696
|
-
}), [
|
|
697
|
-
},
|
|
698
|
-
const { provider:
|
|
699
|
-
|
|
598
|
+
...t
|
|
599
|
+
), Ge = (t, e, n) => {
|
|
600
|
+
I(() => (t?.on(e, n), () => {
|
|
601
|
+
t?.off(e, n);
|
|
602
|
+
}), [t, e]);
|
|
603
|
+
}, Ft = () => {
|
|
604
|
+
const { provider: t } = _t(), [e, n] = R(
|
|
605
|
+
t?.storage.getSettings()
|
|
700
606
|
);
|
|
701
|
-
|
|
702
|
-
|
|
607
|
+
Ge(
|
|
608
|
+
t?.storage.emitter,
|
|
703
609
|
"settings_change",
|
|
704
|
-
(
|
|
705
|
-
|
|
610
|
+
(c) => {
|
|
611
|
+
n(c);
|
|
706
612
|
}
|
|
707
613
|
);
|
|
708
|
-
const
|
|
709
|
-
if (!
|
|
710
|
-
const
|
|
711
|
-
...
|
|
614
|
+
const r = (c) => {
|
|
615
|
+
if (!e || e.signaling?.p === c) return;
|
|
616
|
+
const u = {
|
|
617
|
+
...e,
|
|
712
618
|
signaling: {
|
|
713
|
-
...
|
|
714
|
-
p:
|
|
619
|
+
...e.signaling,
|
|
620
|
+
p: c
|
|
715
621
|
}
|
|
716
622
|
};
|
|
717
|
-
|
|
718
|
-
}, o = (
|
|
719
|
-
if (!
|
|
720
|
-
const
|
|
721
|
-
...
|
|
623
|
+
n(u), t?.storage.setSettings(u);
|
|
624
|
+
}, o = (c) => {
|
|
625
|
+
if (!e || e.signaling?.s[e.signaling?.p] === c) return;
|
|
626
|
+
const u = {
|
|
627
|
+
...e,
|
|
722
628
|
signaling: {
|
|
723
|
-
...
|
|
629
|
+
...e.signaling,
|
|
724
630
|
s: {
|
|
725
|
-
...
|
|
726
|
-
[
|
|
631
|
+
...e.signaling.s,
|
|
632
|
+
[e.signaling.p]: c
|
|
727
633
|
}
|
|
728
634
|
}
|
|
729
635
|
};
|
|
730
|
-
|
|
731
|
-
}, a = (
|
|
732
|
-
|
|
733
|
-
}, i = (
|
|
734
|
-
|
|
636
|
+
n(u), t?.storage.setSettings(u);
|
|
637
|
+
}, a = (c) => {
|
|
638
|
+
e && (n({ ...e, retainHistory: c }), t?.storage.setSettings({ ...e, retainHistory: c }));
|
|
639
|
+
}, i = (c) => {
|
|
640
|
+
e && (n({ ...e, autoReconnect: c }), t?.storage.setSettings({ ...e, autoReconnect: c }));
|
|
641
|
+
}, s = (c) => {
|
|
642
|
+
e && (n({ ...e, language: c }), t?.storage.setSettings({ ...e, language: c }));
|
|
735
643
|
};
|
|
736
|
-
if (!
|
|
644
|
+
if (!e) throw new Error("Settings not found");
|
|
737
645
|
return {
|
|
738
|
-
settings:
|
|
739
|
-
updateSignalingProtocol:
|
|
646
|
+
settings: e,
|
|
647
|
+
updateSignalingProtocol: r,
|
|
740
648
|
updateSignalingServer: o,
|
|
741
649
|
updateRetainHistory: a,
|
|
742
|
-
updateAutoReconnect: i
|
|
650
|
+
updateAutoReconnect: i,
|
|
651
|
+
updateLanguage: s
|
|
743
652
|
};
|
|
744
|
-
},
|
|
745
|
-
const { provider:
|
|
746
|
-
|
|
747
|
-
),
|
|
748
|
-
|
|
653
|
+
}, Nt = () => {
|
|
654
|
+
const { provider: t } = _t(), [e, n] = R(
|
|
655
|
+
t?.getSession()
|
|
656
|
+
), r = e?.getHandshakeParameters(), o = r ? mn(r) : void 0, [a, i] = R(
|
|
657
|
+
e?.getState()
|
|
749
658
|
);
|
|
750
|
-
return
|
|
751
|
-
|
|
659
|
+
return Ge(e?.emitter, "state_change", (s) => {
|
|
660
|
+
le("session state change: ", s), i(s);
|
|
752
661
|
}), I(() => {
|
|
753
662
|
const s = () => {
|
|
754
|
-
const
|
|
755
|
-
|
|
663
|
+
const u = t?.getSession();
|
|
664
|
+
u && n(u);
|
|
756
665
|
};
|
|
757
|
-
|
|
758
|
-
|
|
666
|
+
t?.on("status_change", s);
|
|
667
|
+
const c = t?.getSession();
|
|
668
|
+
return c && n(c), () => {
|
|
669
|
+
t?.off("status_change", s);
|
|
759
670
|
};
|
|
760
|
-
}, [
|
|
671
|
+
}, [t]), I(() => {
|
|
761
672
|
const s = (c) => {
|
|
762
|
-
|
|
673
|
+
n(c), i(c.getState());
|
|
763
674
|
};
|
|
764
|
-
return
|
|
765
|
-
|
|
675
|
+
return t?.on("session_started", s), () => {
|
|
676
|
+
t?.off("session_started", s);
|
|
766
677
|
};
|
|
767
|
-
}, [
|
|
768
|
-
|
|
769
|
-
}, [
|
|
678
|
+
}, [t]), I(() => {
|
|
679
|
+
e && i(e.getState());
|
|
680
|
+
}, [e]), {
|
|
770
681
|
uri: o,
|
|
771
682
|
status: a
|
|
772
683
|
};
|
|
773
|
-
},
|
|
774
|
-
const { provider:
|
|
684
|
+
}, er = () => {
|
|
685
|
+
const { provider: t } = _t(), { settings: e } = Ft();
|
|
775
686
|
return {
|
|
776
687
|
start: () => {
|
|
777
|
-
const
|
|
778
|
-
if (!
|
|
688
|
+
const n = e?.signaling?.p, r = e?.signaling?.s[n];
|
|
689
|
+
if (!n || !r)
|
|
779
690
|
throw new Error("Invalid protocol or server");
|
|
780
|
-
return
|
|
781
|
-
p:
|
|
782
|
-
s:
|
|
691
|
+
return t?.createSession({
|
|
692
|
+
p: n,
|
|
693
|
+
s: r
|
|
783
694
|
});
|
|
784
695
|
}
|
|
785
696
|
};
|
|
786
|
-
},
|
|
787
|
-
const { status:
|
|
788
|
-
return console.error("Unknown state: ", { state:
|
|
789
|
-
"div",
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
] }),
|
|
809
|
-
/* @__PURE__ */ h("div", { children: [
|
|
810
|
-
"Provider Status: ",
|
|
811
|
-
JSON.stringify(n)
|
|
812
|
-
] })
|
|
813
|
-
]
|
|
814
|
-
}
|
|
815
|
-
);
|
|
816
|
-
}, Lr = ({
|
|
817
|
-
onCopy: e
|
|
697
|
+
}, te = ({ state: t }) => {
|
|
698
|
+
const { status: e, uri: n } = Nt(), { status: r } = _t();
|
|
699
|
+
return console.error("Unknown state: ", { state: t, sessionStatus: e, providerStatus: r }), /* @__PURE__ */ h("div", { className: "rounded-md bg-(--lv-control-button-secondary-background) p-2 text-(--lv-text-muted)", children: [
|
|
700
|
+
/* @__PURE__ */ h("div", { children: [
|
|
701
|
+
"Unknown state: ",
|
|
702
|
+
JSON.stringify(t)
|
|
703
|
+
] }),
|
|
704
|
+
/* @__PURE__ */ h("div", { children: [
|
|
705
|
+
"URI: ",
|
|
706
|
+
n
|
|
707
|
+
] }),
|
|
708
|
+
/* @__PURE__ */ h("div", { children: [
|
|
709
|
+
"Session Status: ",
|
|
710
|
+
JSON.stringify(e)
|
|
711
|
+
] }),
|
|
712
|
+
/* @__PURE__ */ h("div", { children: [
|
|
713
|
+
"Provider Status: ",
|
|
714
|
+
JSON.stringify(r)
|
|
715
|
+
] })
|
|
716
|
+
] });
|
|
717
|
+
}, nr = ({
|
|
718
|
+
onCopy: t
|
|
818
719
|
}) => {
|
|
819
|
-
const { uri:
|
|
820
|
-
|
|
821
|
-
}, [
|
|
822
|
-
const
|
|
823
|
-
return
|
|
824
|
-
}, [])
|
|
720
|
+
const { t: e } = G(), { uri: n } = Nt(), r = U(() => {
|
|
721
|
+
n && t(n);
|
|
722
|
+
}, [n, t]), o = U((a) => {
|
|
723
|
+
const i = hn.default, s = i(0, "M");
|
|
724
|
+
return s.addData(a), s.make(), s.createSvgTag({ cellSize: 5, margin: 0, scalable: !0 });
|
|
725
|
+
}, []);
|
|
825
726
|
return /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 px-2", children: [
|
|
826
|
-
/* @__PURE__ */ h(
|
|
827
|
-
"div",
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
onClick: r,
|
|
848
|
-
title: "Click to copy connection URL",
|
|
849
|
-
dangerouslySetInnerHTML: { __html: n(t) },
|
|
850
|
-
style: {
|
|
851
|
-
background: a,
|
|
852
|
-
color: "var(--lv-qr-color)"
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
)
|
|
856
|
-
}
|
|
857
|
-
),
|
|
858
|
-
/* @__PURE__ */ l("div", { className: "w-full", children: /* @__PURE__ */ l(
|
|
859
|
-
"button",
|
|
860
|
-
{
|
|
861
|
-
type: "button",
|
|
862
|
-
onClick: r,
|
|
863
|
-
className: "w-full cursor-pointer rounded-lg px-4 py-2 text-sm transition bg-(--lv-button-secondary-background) hover:bg-(--lv-button-secondary-hoverBackground) active:bg-(--lv-button-secondary-activeBackground)",
|
|
864
|
-
style: {
|
|
865
|
-
color: "var(--lv-text-primary)",
|
|
866
|
-
border: `1px solid ${o}`
|
|
867
|
-
},
|
|
868
|
-
children: "Copy Connection URL"
|
|
869
|
-
}
|
|
870
|
-
) })
|
|
871
|
-
]
|
|
872
|
-
}
|
|
873
|
-
),
|
|
874
|
-
/* @__PURE__ */ h(
|
|
875
|
-
"div",
|
|
876
|
-
{
|
|
877
|
-
className: "w-full text-sm",
|
|
878
|
-
style: { color: "var(--lv-text-secondary)" },
|
|
879
|
-
children: [
|
|
880
|
-
/* @__PURE__ */ l("span", { children: "Scan the code above using your mobile wallet." }),
|
|
881
|
-
/* @__PURE__ */ l("br", {}),
|
|
882
|
-
/* @__PURE__ */ l("span", { children: "Or copy the link and paste it into your wallet." })
|
|
883
|
-
]
|
|
884
|
-
}
|
|
885
|
-
)
|
|
727
|
+
/* @__PURE__ */ h("div", { className: "w-full space-y-4 rounded-md border border-(--lv-control-button-secondary-border) bg-(--lv-card-background) p-4", children: [
|
|
728
|
+
n && /* @__PURE__ */ l("div", { className: "relative mx-auto flex w-fit items-center justify-center rounded-lg border border-(--lv-control-button-secondary-border) bg-(--lv-qr-background) p-4", children: /* @__PURE__ */ l(
|
|
729
|
+
"button",
|
|
730
|
+
{
|
|
731
|
+
className: "h-[200px] w-[200px] cursor-pointer rounded bg-(--lv-qr-background) text-(--lv-qr-color)",
|
|
732
|
+
onClick: r,
|
|
733
|
+
title: e("handshake.clickToCopyUrl"),
|
|
734
|
+
dangerouslySetInnerHTML: { __html: o(n) }
|
|
735
|
+
}
|
|
736
|
+
) }),
|
|
737
|
+
/* @__PURE__ */ l("div", { className: "w-full", children: /* @__PURE__ */ l(
|
|
738
|
+
"button",
|
|
739
|
+
{
|
|
740
|
+
type: "button",
|
|
741
|
+
onClick: r,
|
|
742
|
+
className: "w-full cursor-pointer rounded-lg border border-(--lv-control-button-secondary-border) bg-(--lv-control-button-secondary-background) px-4 py-2 text-sm text-(--lv-text-primary) transition hover:bg-(--lv-control-button-secondary-hoverBackground) active:bg-(--lv-control-button-secondary-activeBackground)",
|
|
743
|
+
children: e("handshake.copyConnectionUrl")
|
|
744
|
+
}
|
|
745
|
+
) })
|
|
746
|
+
] }),
|
|
747
|
+
/* @__PURE__ */ l("div", { className: "w-full text-sm text-(--lv-text-secondary)", children: /* @__PURE__ */ l("span", { children: e("handshake.scanCodeInstruction") }) })
|
|
886
748
|
] });
|
|
887
|
-
},
|
|
888
|
-
|
|
889
|
-
},
|
|
749
|
+
}, rr = () => typeof document < "u" && "startViewTransition" in document, or = (t) => {
|
|
750
|
+
rr() ? document.startViewTransition(t) : t();
|
|
751
|
+
}, Jt = () => /* @__PURE__ */ l("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ l("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent" }) }), E = {
|
|
890
752
|
CREATING: "creating",
|
|
891
753
|
CONNECTING: "connecting",
|
|
892
754
|
READY: "ready",
|
|
893
|
-
|
|
755
|
+
LINKING: "linking",
|
|
894
756
|
CONNECTED: "connected",
|
|
895
757
|
DISCONNECTED: "disconnected",
|
|
896
758
|
ERROR: "error"
|
|
897
|
-
},
|
|
898
|
-
const [
|
|
759
|
+
}, ar = (t) => {
|
|
760
|
+
const [e, n] = R(t), r = W(t);
|
|
899
761
|
return I(() => {
|
|
900
|
-
|
|
901
|
-
|
|
762
|
+
t !== r.current && or(() => {
|
|
763
|
+
n(t), r.current = t;
|
|
902
764
|
});
|
|
903
|
-
}, [
|
|
904
|
-
displayState:
|
|
765
|
+
}, [t]), {
|
|
766
|
+
displayState: e
|
|
905
767
|
};
|
|
906
|
-
},
|
|
907
|
-
{ status:
|
|
908
|
-
(
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
const { status: r } = _e(), { displayState: n } = Wr(Hr(r));
|
|
914
|
-
return /* @__PURE__ */ l("div", { style: { viewTransitionName: "connection-flow" }, className: "w-full", children: Q(n).with(E.CREATING, () => /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
915
|
-
/* @__PURE__ */ l(lt, {}),
|
|
768
|
+
}, ir = (t) => t ? Q(t).with({ status: ut.CREATED }, () => E.CREATING).with(
|
|
769
|
+
{ status: ut.SIGNALING, signaling: Fe.select() },
|
|
770
|
+
(e) => Q(e).with({ state: ct.STANDBY }, () => E.CONNECTING).with({ state: ct.CONNECTING }, () => E.CONNECTING).with({ state: ct.READY }, () => E.READY).with({ state: ct.HANDSHAKE }, () => E.LINKING).with({ state: ct.HANDSHAKE_PARTIAL }, () => E.LINKING).with({ state: ct.ENCRYPTED }, () => E.CONNECTED).otherwise(() => E.CONNECTING)
|
|
771
|
+
).with({ status: ut.READY }, () => E.READY).with({ status: ut.LINKING }, () => E.LINKING).with({ status: ut.CONNECTED }, () => E.CONNECTED).with({ status: ut.DISCONNECTED }, () => E.DISCONNECTED).otherwise(() => E.ERROR) : E.CONNECTING, sr = ({ onClose: t, onCopy: e }) => {
|
|
772
|
+
const { t: n } = G(), { status: r } = Nt(), { displayState: o } = ar(ir(r));
|
|
773
|
+
return /* @__PURE__ */ l("div", { style: { viewTransitionName: "connection-flow" }, className: "w-full", children: Q(o).with(E.CREATING, () => /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
774
|
+
/* @__PURE__ */ l(Jt, {}),
|
|
916
775
|
/* @__PURE__ */ h("div", { className: "text-center", children: [
|
|
917
|
-
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-
|
|
918
|
-
/* @__PURE__ */ l("p", { className: "text-
|
|
776
|
+
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-(--lv-text-primary) text-lg", children: n("connectionFlow.preparingConnection") }),
|
|
777
|
+
/* @__PURE__ */ l("p", { className: "text-(--lv-text-muted) text-sm", children: n("connectionFlow.generatingKeys") })
|
|
919
778
|
] })
|
|
920
779
|
] })).with(E.CONNECTING, () => /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
921
|
-
/* @__PURE__ */ l(
|
|
780
|
+
/* @__PURE__ */ l(Jt, {}),
|
|
781
|
+
/* @__PURE__ */ h("div", { className: "text-center", children: [
|
|
782
|
+
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-(--lv-text-primary) text-lg", children: n("connectionFlow.connecting") }),
|
|
783
|
+
/* @__PURE__ */ l("p", { className: "text-(--lv-text-muted) text-sm", children: n("connectionFlow.waitingForNetwork") })
|
|
784
|
+
] })
|
|
785
|
+
] })).with(E.READY, () => /* @__PURE__ */ l(nr, { onCopy: e })).with(E.LINKING, () => /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
786
|
+
/* @__PURE__ */ l(Jt, {}),
|
|
922
787
|
/* @__PURE__ */ h("div", { className: "text-center", children: [
|
|
923
|
-
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-
|
|
924
|
-
/* @__PURE__ */ l("p", { className: "text-
|
|
788
|
+
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-(--lv-text-primary) text-lg", children: n("connectionFlow.establishingConnection") }),
|
|
789
|
+
/* @__PURE__ */ l("p", { className: "text-(--lv-text-muted) text-sm", children: n("connectionFlow.mayTakeFewSeconds") })
|
|
925
790
|
] })
|
|
926
|
-
] })).with(E.
|
|
791
|
+
] })).with(E.CONNECTED, () => /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-4 p-6", children: /* @__PURE__ */ h("div", { className: "text-center", children: [
|
|
927
792
|
/* @__PURE__ */ l("div", { className: "mb-4 text-4xl", children: "✅" }),
|
|
928
|
-
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-
|
|
929
|
-
/* @__PURE__ */ l("p", { className: "text-
|
|
793
|
+
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-(--lv-text-primary) text-lg", children: n("connectionFlow.connectedSuccessfully") }),
|
|
794
|
+
/* @__PURE__ */ l("p", { className: "text-(--lv-text-muted) text-sm", children: n("connectionFlow.walletConnectedReady") })
|
|
930
795
|
] }) })).with(E.DISCONNECTED, () => /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
931
796
|
/* @__PURE__ */ h("div", { className: "text-center", children: [
|
|
932
797
|
/* @__PURE__ */ l("div", { className: "mb-4 text-4xl", children: "🔌" }),
|
|
933
|
-
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-
|
|
934
|
-
/* @__PURE__ */ l("p", { className: "mb-4 text-
|
|
798
|
+
/* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-(--lv-text-primary) text-lg", children: n("connectionFlow.disconnected") }),
|
|
799
|
+
/* @__PURE__ */ l("p", { className: "mb-4 text-(--lv-text-muted) text-sm", children: n("connectionFlow.connectionClosed") })
|
|
935
800
|
] }),
|
|
936
801
|
/* @__PURE__ */ l(
|
|
937
802
|
"button",
|
|
938
803
|
{
|
|
939
804
|
type: "button",
|
|
940
|
-
onClick:
|
|
941
|
-
className: "w-full rounded-lg bg-
|
|
942
|
-
children: "
|
|
805
|
+
onClick: t,
|
|
806
|
+
className: "w-full rounded-lg bg-(--lv-control-button-secondary-background) px-4 py-2 font-semibold text-(--lv-text-primary) text-sm transition hover:bg-(--lv-control-button-primary-background-hover)",
|
|
807
|
+
children: n("common.close")
|
|
943
808
|
}
|
|
944
809
|
)
|
|
945
|
-
] })).otherwise(() => /* @__PURE__ */ l(
|
|
810
|
+
] })).otherwise(() => /* @__PURE__ */ l(te, { state: r })) });
|
|
946
811
|
};
|
|
947
|
-
function
|
|
948
|
-
for (var
|
|
949
|
-
return
|
|
812
|
+
function We(t, e) {
|
|
813
|
+
for (var n in e) t[n] = e[n];
|
|
814
|
+
return t;
|
|
950
815
|
}
|
|
951
|
-
function
|
|
952
|
-
for (var
|
|
953
|
-
for (var
|
|
816
|
+
function ee(t, e) {
|
|
817
|
+
for (var n in t) if (n !== "__source" && !(n in e)) return !0;
|
|
818
|
+
for (var r in e) if (r !== "__source" && t[r] !== e[r]) return !0;
|
|
954
819
|
return !1;
|
|
955
820
|
}
|
|
956
|
-
function
|
|
957
|
-
var
|
|
958
|
-
return
|
|
959
|
-
o.__ =
|
|
960
|
-
}, [
|
|
961
|
-
return
|
|
962
|
-
|
|
821
|
+
function Ue(t, e) {
|
|
822
|
+
var n = e(), r = R({ t: { __: n, u: e } }), o = r[0].t, a = r[1];
|
|
823
|
+
return ht(function() {
|
|
824
|
+
o.__ = n, o.u = e, Qt(o) && a({ t: o });
|
|
825
|
+
}, [t, n, e]), I(function() {
|
|
826
|
+
return Qt(o) && a({ t: o }), t(function() {
|
|
827
|
+
Qt(o) && a({ t: o });
|
|
963
828
|
});
|
|
964
|
-
}, [
|
|
829
|
+
}, [t]), n;
|
|
965
830
|
}
|
|
966
|
-
function
|
|
967
|
-
var
|
|
831
|
+
function Qt(t) {
|
|
832
|
+
var e, n, r = t.u, o = t.__;
|
|
968
833
|
try {
|
|
969
|
-
var a =
|
|
970
|
-
return !((
|
|
834
|
+
var a = r();
|
|
835
|
+
return !((e = o) === (n = a) && (e !== 0 || 1 / e == 1 / n) || e != e && n != n);
|
|
971
836
|
} catch {
|
|
972
837
|
return !0;
|
|
973
838
|
}
|
|
974
839
|
}
|
|
975
|
-
function
|
|
976
|
-
|
|
840
|
+
function Ke(t) {
|
|
841
|
+
t();
|
|
977
842
|
}
|
|
978
|
-
function
|
|
979
|
-
return
|
|
843
|
+
function He(t) {
|
|
844
|
+
return t;
|
|
980
845
|
}
|
|
981
|
-
function
|
|
982
|
-
return [!1,
|
|
846
|
+
function Je() {
|
|
847
|
+
return [!1, Ke];
|
|
983
848
|
}
|
|
984
|
-
var
|
|
985
|
-
function
|
|
986
|
-
this.props =
|
|
849
|
+
var Qe = ht;
|
|
850
|
+
function ne(t, e) {
|
|
851
|
+
this.props = t, this.context = e;
|
|
987
852
|
}
|
|
988
|
-
function
|
|
989
|
-
function
|
|
853
|
+
function lr(t, e) {
|
|
854
|
+
function n(o) {
|
|
990
855
|
var a = this.props.ref, i = a == o.ref;
|
|
991
|
-
return !i && a && (a.call ? a(null) : a.current = null),
|
|
856
|
+
return !i && a && (a.call ? a(null) : a.current = null), e ? !e(this.props, o) || !i : ee(this.props, o);
|
|
992
857
|
}
|
|
993
|
-
function
|
|
994
|
-
return this.shouldComponentUpdate =
|
|
858
|
+
function r(o) {
|
|
859
|
+
return this.shouldComponentUpdate = n, X(t, o);
|
|
995
860
|
}
|
|
996
|
-
return
|
|
861
|
+
return r.displayName = "Memo(" + (t.displayName || t.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = t, r;
|
|
997
862
|
}
|
|
998
|
-
(
|
|
999
|
-
return
|
|
863
|
+
(ne.prototype = new gt()).isPureReactComponent = !0, ne.prototype.shouldComponentUpdate = function(t, e) {
|
|
864
|
+
return ee(this.props, t) || ee(this.state, e);
|
|
1000
865
|
};
|
|
1001
|
-
var
|
|
1002
|
-
|
|
1003
|
-
|
|
866
|
+
var me = F.__b;
|
|
867
|
+
F.__b = function(t) {
|
|
868
|
+
t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), me && me(t);
|
|
1004
869
|
};
|
|
1005
|
-
var
|
|
1006
|
-
function
|
|
1007
|
-
function
|
|
1008
|
-
var
|
|
1009
|
-
return delete
|
|
870
|
+
var cr = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
|
|
871
|
+
function ur(t) {
|
|
872
|
+
function e(n) {
|
|
873
|
+
var r = We({}, n);
|
|
874
|
+
return delete r.ref, t(r, n.ref || null);
|
|
1010
875
|
}
|
|
1011
|
-
return
|
|
1012
|
-
}
|
|
1013
|
-
var
|
|
1014
|
-
return
|
|
1015
|
-
},
|
|
1016
|
-
return
|
|
1017
|
-
}, only: function(
|
|
1018
|
-
var
|
|
1019
|
-
if (
|
|
1020
|
-
return
|
|
1021
|
-
}, toArray:
|
|
1022
|
-
|
|
1023
|
-
if (
|
|
1024
|
-
for (var o, a =
|
|
876
|
+
return e.$$typeof = cr, e.render = t, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (t.displayName || t.name) + ")", e;
|
|
877
|
+
}
|
|
878
|
+
var be = function(t, e) {
|
|
879
|
+
return t == null ? null : ot(ot(t).map(e));
|
|
880
|
+
}, dr = { map: be, forEach: be, count: function(t) {
|
|
881
|
+
return t ? ot(t).length : 0;
|
|
882
|
+
}, only: function(t) {
|
|
883
|
+
var e = ot(t);
|
|
884
|
+
if (e.length !== 1) throw "Children.only";
|
|
885
|
+
return e[0];
|
|
886
|
+
}, toArray: ot }, fr = F.__e;
|
|
887
|
+
F.__e = function(t, e, n, r) {
|
|
888
|
+
if (t.then) {
|
|
889
|
+
for (var o, a = e; a = a.__; ) if ((o = a.__c) && o.__c) return e.__e == null && (e.__e = n.__e, e.__k = n.__k), o.__c(t, e);
|
|
1025
890
|
}
|
|
1026
|
-
|
|
891
|
+
fr(t, e, n, r);
|
|
1027
892
|
};
|
|
1028
|
-
var
|
|
1029
|
-
function
|
|
1030
|
-
return
|
|
1031
|
-
typeof
|
|
1032
|
-
}),
|
|
1033
|
-
return
|
|
1034
|
-
})),
|
|
1035
|
-
}
|
|
1036
|
-
function
|
|
1037
|
-
return
|
|
1038
|
-
return
|
|
1039
|
-
}),
|
|
1040
|
-
}
|
|
1041
|
-
function
|
|
893
|
+
var ye = F.unmount;
|
|
894
|
+
function Xe(t, e, n) {
|
|
895
|
+
return t && (t.__c && t.__c.__H && (t.__c.__H.__.forEach(function(r) {
|
|
896
|
+
typeof r.__c == "function" && r.__c();
|
|
897
|
+
}), t.__c.__H = null), (t = We({}, t)).__c != null && (t.__c.__P === n && (t.__c.__P = e), t.__c.__e = !0, t.__c = null), t.__k = t.__k && t.__k.map(function(r) {
|
|
898
|
+
return Xe(r, e, n);
|
|
899
|
+
})), t;
|
|
900
|
+
}
|
|
901
|
+
function qe(t, e, n) {
|
|
902
|
+
return t && n && (t.__v = null, t.__k = t.__k && t.__k.map(function(r) {
|
|
903
|
+
return qe(r, e, n);
|
|
904
|
+
}), t.__c && t.__c.__P === e && (t.__e && n.appendChild(t.__e), t.__c.__e = !0, t.__c.__P = n)), t;
|
|
905
|
+
}
|
|
906
|
+
function Pt() {
|
|
1042
907
|
this.__u = 0, this.o = null, this.__b = null;
|
|
1043
908
|
}
|
|
1044
|
-
function
|
|
1045
|
-
var
|
|
1046
|
-
return
|
|
909
|
+
function Ye(t) {
|
|
910
|
+
var e = t.__.__c;
|
|
911
|
+
return e && e.__a && e.__a(t);
|
|
1047
912
|
}
|
|
1048
|
-
function
|
|
1049
|
-
var
|
|
913
|
+
function gr(t) {
|
|
914
|
+
var e, n, r, o = null;
|
|
1050
915
|
function a(i) {
|
|
1051
|
-
if (
|
|
1052
|
-
s && (o = s.default || s),
|
|
916
|
+
if (e || (e = t()).then(function(s) {
|
|
917
|
+
s && (o = s.default || s), r = !0;
|
|
1053
918
|
}, function(s) {
|
|
1054
|
-
|
|
1055
|
-
}),
|
|
1056
|
-
if (!
|
|
1057
|
-
return o ?
|
|
919
|
+
n = s, r = !0;
|
|
920
|
+
}), n) throw n;
|
|
921
|
+
if (!r) throw e;
|
|
922
|
+
return o ? X(o, i) : null;
|
|
1058
923
|
}
|
|
1059
924
|
return a.displayName = "Lazy", a.__f = !0, a;
|
|
1060
925
|
}
|
|
1061
|
-
function
|
|
926
|
+
function bt() {
|
|
1062
927
|
this.i = null, this.l = null;
|
|
1063
928
|
}
|
|
1064
|
-
|
|
1065
|
-
var
|
|
1066
|
-
|
|
1067
|
-
}, (
|
|
1068
|
-
var
|
|
1069
|
-
|
|
1070
|
-
var o =
|
|
1071
|
-
a || (a = !0,
|
|
929
|
+
F.unmount = function(t) {
|
|
930
|
+
var e = t.__c;
|
|
931
|
+
e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), ye && ye(t);
|
|
932
|
+
}, (Pt.prototype = new gt()).__c = function(t, e) {
|
|
933
|
+
var n = e.__c, r = this;
|
|
934
|
+
r.o == null && (r.o = []), r.o.push(n);
|
|
935
|
+
var o = Ye(r.__v), a = !1, i = function() {
|
|
936
|
+
a || (a = !0, n.__R = null, o ? o(s) : s());
|
|
1072
937
|
};
|
|
1073
|
-
|
|
938
|
+
n.__R = i;
|
|
1074
939
|
var s = function() {
|
|
1075
|
-
if (!--
|
|
1076
|
-
if (
|
|
1077
|
-
var c =
|
|
1078
|
-
|
|
940
|
+
if (!--r.__u) {
|
|
941
|
+
if (r.state.__a) {
|
|
942
|
+
var c = r.state.__a;
|
|
943
|
+
r.__v.__k[0] = qe(c, c.__c.__P, c.__c.__O);
|
|
1079
944
|
}
|
|
1080
945
|
var u;
|
|
1081
|
-
for (
|
|
946
|
+
for (r.setState({ __a: r.__b = null }); u = r.o.pop(); ) u.forceUpdate();
|
|
1082
947
|
}
|
|
1083
948
|
};
|
|
1084
|
-
|
|
1085
|
-
},
|
|
949
|
+
r.__u++ || 32 & e.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), t.then(i, i);
|
|
950
|
+
}, Pt.prototype.componentWillUnmount = function() {
|
|
1086
951
|
this.o = [];
|
|
1087
|
-
},
|
|
952
|
+
}, Pt.prototype.render = function(t, e) {
|
|
1088
953
|
if (this.__b) {
|
|
1089
954
|
if (this.__v.__k) {
|
|
1090
|
-
var
|
|
1091
|
-
this.__v.__k[0] =
|
|
955
|
+
var n = document.createElement("div"), r = this.__v.__k[0].__c;
|
|
956
|
+
this.__v.__k[0] = Xe(this.__b, n, r.__O = r.__P);
|
|
1092
957
|
}
|
|
1093
958
|
this.__b = null;
|
|
1094
959
|
}
|
|
1095
|
-
var o =
|
|
1096
|
-
return o && (o.__u &= -33), [
|
|
960
|
+
var o = e.__a && X(wt, null, t.fallback);
|
|
961
|
+
return o && (o.__u &= -33), [X(wt, null, e.__a ? null : t.children), o];
|
|
1097
962
|
};
|
|
1098
|
-
var
|
|
1099
|
-
if (++
|
|
1100
|
-
for (;
|
|
1101
|
-
if (
|
|
1102
|
-
|
|
963
|
+
var we = function(t, e, n) {
|
|
964
|
+
if (++n[1] === n[0] && t.l.delete(e), t.props.revealOrder && (t.props.revealOrder[0] !== "t" || !t.l.size)) for (n = t.i; n; ) {
|
|
965
|
+
for (; n.length > 3; ) n.pop()();
|
|
966
|
+
if (n[1] < n[0]) break;
|
|
967
|
+
t.i = n = n[2];
|
|
1103
968
|
}
|
|
1104
969
|
};
|
|
1105
|
-
function
|
|
970
|
+
function pr(t) {
|
|
1106
971
|
return this.getChildContext = function() {
|
|
1107
|
-
return
|
|
1108
|
-
},
|
|
1109
|
-
}
|
|
1110
|
-
function
|
|
1111
|
-
var
|
|
1112
|
-
if (
|
|
1113
|
-
|
|
1114
|
-
},
|
|
1115
|
-
for (var
|
|
1116
|
-
|
|
972
|
+
return t.context;
|
|
973
|
+
}, t.children;
|
|
974
|
+
}
|
|
975
|
+
function hr(t) {
|
|
976
|
+
var e = this, n = t.h;
|
|
977
|
+
if (e.componentWillUnmount = function() {
|
|
978
|
+
pt(null, e.v), e.v = null, e.h = null;
|
|
979
|
+
}, e.h && e.h !== n && e.componentWillUnmount(), !e.v) {
|
|
980
|
+
for (var r = e.__v; r !== null && !r.__m && r.__ !== null; ) r = r.__;
|
|
981
|
+
e.h = n, e.v = { nodeType: 1, parentNode: n, childNodes: [], __k: { __m: r.__m }, contains: function() {
|
|
1117
982
|
return !0;
|
|
1118
983
|
}, insertBefore: function(o, a) {
|
|
1119
|
-
this.childNodes.push(o),
|
|
984
|
+
this.childNodes.push(o), e.h.insertBefore(o, a);
|
|
1120
985
|
}, removeChild: function(o) {
|
|
1121
|
-
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1),
|
|
986
|
+
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), e.h.removeChild(o);
|
|
1122
987
|
} };
|
|
1123
988
|
}
|
|
1124
|
-
|
|
989
|
+
pt(X(pr, { context: e.context }, t.__v), e.v);
|
|
1125
990
|
}
|
|
1126
|
-
function
|
|
1127
|
-
var
|
|
1128
|
-
return
|
|
991
|
+
function vr(t, e) {
|
|
992
|
+
var n = X(hr, { __v: t, h: e });
|
|
993
|
+
return n.containerInfo = e, n;
|
|
1129
994
|
}
|
|
1130
|
-
(
|
|
1131
|
-
var
|
|
1132
|
-
return
|
|
995
|
+
(bt.prototype = new gt()).__a = function(t) {
|
|
996
|
+
var e = this, n = Ye(e.__v), r = e.l.get(t);
|
|
997
|
+
return r[0]++, function(o) {
|
|
1133
998
|
var a = function() {
|
|
1134
|
-
|
|
999
|
+
e.props.revealOrder ? (r.push(o), we(e, t, r)) : o();
|
|
1135
1000
|
};
|
|
1136
|
-
|
|
1001
|
+
n ? n(a) : a();
|
|
1137
1002
|
};
|
|
1138
|
-
},
|
|
1003
|
+
}, bt.prototype.render = function(t) {
|
|
1139
1004
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
1140
|
-
var
|
|
1141
|
-
|
|
1142
|
-
for (var
|
|
1143
|
-
return
|
|
1144
|
-
},
|
|
1145
|
-
var
|
|
1146
|
-
this.l.forEach(function(
|
|
1147
|
-
|
|
1005
|
+
var e = ot(t.children);
|
|
1006
|
+
t.revealOrder && t.revealOrder[0] === "b" && e.reverse();
|
|
1007
|
+
for (var n = e.length; n--; ) this.l.set(e[n], this.i = [1, 0, this.i]);
|
|
1008
|
+
return t.children;
|
|
1009
|
+
}, bt.prototype.componentDidUpdate = bt.prototype.componentDidMount = function() {
|
|
1010
|
+
var t = this;
|
|
1011
|
+
this.l.forEach(function(e, n) {
|
|
1012
|
+
we(t, n, e);
|
|
1148
1013
|
});
|
|
1149
1014
|
};
|
|
1150
|
-
var
|
|
1151
|
-
return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(
|
|
1015
|
+
var Ze = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, mr = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, br = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, yr = /[A-Z0-9]/g, wr = typeof document < "u", xr = function(t) {
|
|
1016
|
+
return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
|
|
1152
1017
|
};
|
|
1153
|
-
function
|
|
1154
|
-
return
|
|
1018
|
+
function kr(t, e, n) {
|
|
1019
|
+
return e.__k == null && (e.textContent = ""), pt(t, e), typeof n == "function" && n(), t ? t.__c : null;
|
|
1155
1020
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return
|
|
1021
|
+
function Cr(t, e, n) {
|
|
1022
|
+
return gn(t, e), typeof n == "function" && n(), t ? t.__c : null;
|
|
1158
1023
|
}
|
|
1159
|
-
|
|
1160
|
-
Object.defineProperty(
|
|
1161
|
-
return this["UNSAFE_" +
|
|
1162
|
-
}, set: function(
|
|
1163
|
-
Object.defineProperty(this,
|
|
1024
|
+
gt.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
|
|
1025
|
+
Object.defineProperty(gt.prototype, t, { configurable: !0, get: function() {
|
|
1026
|
+
return this["UNSAFE_" + t];
|
|
1027
|
+
}, set: function(e) {
|
|
1028
|
+
Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
|
|
1164
1029
|
} });
|
|
1165
1030
|
});
|
|
1166
|
-
var
|
|
1167
|
-
function
|
|
1031
|
+
var xe = F.event;
|
|
1032
|
+
function _r() {
|
|
1168
1033
|
}
|
|
1169
|
-
function
|
|
1034
|
+
function Nr() {
|
|
1170
1035
|
return this.cancelBubble;
|
|
1171
1036
|
}
|
|
1172
|
-
function
|
|
1037
|
+
function Sr() {
|
|
1173
1038
|
return this.defaultPrevented;
|
|
1174
1039
|
}
|
|
1175
|
-
|
|
1176
|
-
return
|
|
1040
|
+
F.event = function(t) {
|
|
1041
|
+
return xe && (t = xe(t)), t.persist = _r, t.isPropagationStopped = Nr, t.isDefaultPrevented = Sr, t.nativeEvent = t;
|
|
1177
1042
|
};
|
|
1178
|
-
var
|
|
1043
|
+
var ce, Ar = { enumerable: !1, configurable: !0, get: function() {
|
|
1179
1044
|
return this.class;
|
|
1180
|
-
} },
|
|
1181
|
-
|
|
1182
|
-
typeof
|
|
1183
|
-
var
|
|
1184
|
-
for (var i in
|
|
1185
|
-
var s =
|
|
1186
|
-
if (!(i === "value" && "defaultValue" in
|
|
1045
|
+
} }, ke = F.vnode;
|
|
1046
|
+
F.vnode = function(t) {
|
|
1047
|
+
typeof t.type == "string" && (function(e) {
|
|
1048
|
+
var n = e.props, r = e.type, o = {}, a = r.indexOf("-") === -1;
|
|
1049
|
+
for (var i in n) {
|
|
1050
|
+
var s = n[i];
|
|
1051
|
+
if (!(i === "value" && "defaultValue" in n && s == null || wr && i === "children" && r === "noscript" || i === "class" || i === "className")) {
|
|
1187
1052
|
var c = i.toLowerCase();
|
|
1188
|
-
i === "defaultValue" && "value" in
|
|
1053
|
+
i === "defaultValue" && "value" in n && n.value == null ? i = "value" : i === "download" && s === !0 ? s = "" : c === "translate" && s === "no" ? s = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? i = "ondblclick" : c !== "onchange" || r !== "input" && r !== "textarea" || xr(n.type) ? c === "onfocus" ? i = "onfocusin" : c === "onblur" ? i = "onfocusout" : br.test(i) && (i = c) : c = i = "oninput" : a && mr.test(i) ? i = i.replace(yr, "-$&").toLowerCase() : s === null && (s = void 0), c === "oninput" && o[i = c] && (i = "oninputCapture"), o[i] = s;
|
|
1189
1054
|
}
|
|
1190
1055
|
}
|
|
1191
|
-
|
|
1056
|
+
r == "select" && o.multiple && Array.isArray(o.value) && (o.value = ot(n.children).forEach(function(u) {
|
|
1192
1057
|
u.props.selected = o.value.indexOf(u.props.value) != -1;
|
|
1193
|
-
})),
|
|
1058
|
+
})), r == "select" && o.defaultValue != null && (o.value = ot(n.children).forEach(function(u) {
|
|
1194
1059
|
u.props.selected = o.multiple ? o.defaultValue.indexOf(u.props.value) != -1 : o.defaultValue == u.props.value;
|
|
1195
|
-
})),
|
|
1196
|
-
})(
|
|
1060
|
+
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Ar)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), e.props = o;
|
|
1061
|
+
})(t), t.$$typeof = Ze, ke && ke(t);
|
|
1197
1062
|
};
|
|
1198
|
-
var
|
|
1199
|
-
|
|
1200
|
-
|
|
1063
|
+
var Ce = F.__r;
|
|
1064
|
+
F.__r = function(t) {
|
|
1065
|
+
Ce && Ce(t), ce = t.__c;
|
|
1201
1066
|
};
|
|
1202
|
-
var
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
var
|
|
1206
|
-
|
|
1067
|
+
var _e = F.diffed;
|
|
1068
|
+
F.diffed = function(t) {
|
|
1069
|
+
_e && _e(t);
|
|
1070
|
+
var e = t.props, n = t.__e;
|
|
1071
|
+
n != null && t.type === "textarea" && "value" in e && e.value !== n.value && (n.value = e.value == null ? "" : e.value), ce = null;
|
|
1207
1072
|
};
|
|
1208
|
-
var
|
|
1209
|
-
return
|
|
1210
|
-
}, useCallback:
|
|
1211
|
-
function
|
|
1212
|
-
return
|
|
1073
|
+
var Er = { ReactCurrentDispatcher: { current: { readContext: function(t) {
|
|
1074
|
+
return ce.__n[t.__c].props.value;
|
|
1075
|
+
}, useCallback: U, useContext: jt, useDebugValue: Be, useDeferredValue: He, useEffect: I, useId: Pe, useImperativeHandle: De, useInsertionEffect: Qe, useLayoutEffect: ht, useMemo: ft, useReducer: Re, useRef: W, useState: R, useSyncExternalStore: Ue, useTransition: Je } } };
|
|
1076
|
+
function Tr(t) {
|
|
1077
|
+
return X.bind(null, t);
|
|
1213
1078
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return !!
|
|
1079
|
+
function zt(t) {
|
|
1080
|
+
return !!t && t.$$typeof === Ze;
|
|
1216
1081
|
}
|
|
1217
|
-
function
|
|
1218
|
-
return
|
|
1082
|
+
function Or(t) {
|
|
1083
|
+
return zt(t) && t.type === wt;
|
|
1219
1084
|
}
|
|
1220
|
-
function
|
|
1221
|
-
return !!
|
|
1085
|
+
function Rr(t) {
|
|
1086
|
+
return !!t && !!t.displayName && (typeof t.displayName == "string" || t.displayName instanceof String) && t.displayName.startsWith("Memo(");
|
|
1222
1087
|
}
|
|
1223
|
-
function
|
|
1224
|
-
return
|
|
1088
|
+
function Dr(t) {
|
|
1089
|
+
return zt(t) ? fn.apply(null, arguments) : t;
|
|
1225
1090
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return !!
|
|
1091
|
+
function Pr(t) {
|
|
1092
|
+
return !!t.__k && (pt(null, t), !0);
|
|
1228
1093
|
}
|
|
1229
|
-
function
|
|
1230
|
-
return
|
|
1094
|
+
function Br(t) {
|
|
1095
|
+
return t && (t.base || t.nodeType === 1 && t) || null;
|
|
1231
1096
|
}
|
|
1232
|
-
var
|
|
1233
|
-
return e
|
|
1234
|
-
},
|
|
1235
|
-
return e
|
|
1236
|
-
},
|
|
1097
|
+
var Lr = function(t, e) {
|
|
1098
|
+
return t(e);
|
|
1099
|
+
}, Ir = function(t, e) {
|
|
1100
|
+
return t(e);
|
|
1101
|
+
}, Vr = wt, jr = zt, st = { useState: R, useId: Pe, useReducer: Re, useEffect: I, useLayoutEffect: ht, useInsertionEffect: Qe, useTransition: Je, useDeferredValue: He, useSyncExternalStore: Ue, startTransition: Ke, useRef: W, useImperativeHandle: De, useMemo: ft, useCallback: U, useContext: jt, useDebugValue: Be, version: "18.3.1", Children: dr, render: kr, hydrate: Cr, unmountComponentAtNode: Pr, createPortal: vr, createElement: X, createContext: ae, createFactory: Tr, cloneElement: Dr, createRef: dn, Fragment: wt, isValidElement: zt, isElement: jr, isFragment: Or, isMemo: Rr, findDOMNode: Br, Component: gt, PureComponent: ne, memo: lr, forwardRef: ur, flushSync: Ir, unstable_batchedUpdates: Lr, StrictMode: Vr, Suspense: Pt, SuspenseList: bt, lazy: gr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Er }, $e = {
|
|
1237
1102
|
color: void 0,
|
|
1238
1103
|
size: void 0,
|
|
1239
1104
|
className: void 0,
|
|
1240
1105
|
style: void 0,
|
|
1241
1106
|
attr: void 0
|
|
1242
|
-
},
|
|
1243
|
-
function
|
|
1244
|
-
if (
|
|
1245
|
-
var
|
|
1107
|
+
}, Ne = st.createContext && /* @__PURE__ */ st.createContext($e), Fr = ["attr", "size", "title"];
|
|
1108
|
+
function zr(t, e) {
|
|
1109
|
+
if (t == null) return {};
|
|
1110
|
+
var n = Mr(t, e), r, o;
|
|
1246
1111
|
if (Object.getOwnPropertySymbols) {
|
|
1247
|
-
var a = Object.getOwnPropertySymbols(
|
|
1112
|
+
var a = Object.getOwnPropertySymbols(t);
|
|
1248
1113
|
for (o = 0; o < a.length; o++)
|
|
1249
|
-
|
|
1114
|
+
r = a[o], !(e.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(t, r) && (n[r] = t[r]);
|
|
1250
1115
|
}
|
|
1251
|
-
return
|
|
1116
|
+
return n;
|
|
1252
1117
|
}
|
|
1253
|
-
function
|
|
1254
|
-
if (
|
|
1255
|
-
var
|
|
1256
|
-
for (var
|
|
1257
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1258
|
-
if (
|
|
1259
|
-
r
|
|
1118
|
+
function Mr(t, e) {
|
|
1119
|
+
if (t == null) return {};
|
|
1120
|
+
var n = {};
|
|
1121
|
+
for (var r in t)
|
|
1122
|
+
if (Object.prototype.hasOwnProperty.call(t, r)) {
|
|
1123
|
+
if (e.indexOf(r) >= 0) continue;
|
|
1124
|
+
n[r] = t[r];
|
|
1260
1125
|
}
|
|
1261
|
-
return
|
|
1262
|
-
}
|
|
1263
|
-
function
|
|
1264
|
-
return
|
|
1265
|
-
for (var
|
|
1266
|
-
var
|
|
1267
|
-
for (var
|
|
1268
|
-
Object.prototype.hasOwnProperty.call(
|
|
1126
|
+
return n;
|
|
1127
|
+
}
|
|
1128
|
+
function Lt() {
|
|
1129
|
+
return Lt = Object.assign ? Object.assign.bind() : function(t) {
|
|
1130
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1131
|
+
var n = arguments[e];
|
|
1132
|
+
for (var r in n)
|
|
1133
|
+
Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
1269
1134
|
}
|
|
1270
|
-
return
|
|
1271
|
-
},
|
|
1135
|
+
return t;
|
|
1136
|
+
}, Lt.apply(this, arguments);
|
|
1272
1137
|
}
|
|
1273
|
-
function
|
|
1274
|
-
var
|
|
1138
|
+
function Se(t, e) {
|
|
1139
|
+
var n = Object.keys(t);
|
|
1275
1140
|
if (Object.getOwnPropertySymbols) {
|
|
1276
|
-
var
|
|
1277
|
-
|
|
1278
|
-
return Object.getOwnPropertyDescriptor(
|
|
1279
|
-
})),
|
|
1141
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
1142
|
+
e && (r = r.filter(function(o) {
|
|
1143
|
+
return Object.getOwnPropertyDescriptor(t, o).enumerable;
|
|
1144
|
+
})), n.push.apply(n, r);
|
|
1280
1145
|
}
|
|
1281
|
-
return
|
|
1282
|
-
}
|
|
1283
|
-
function
|
|
1284
|
-
for (var
|
|
1285
|
-
var
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
1289
|
-
Object.defineProperty(
|
|
1146
|
+
return n;
|
|
1147
|
+
}
|
|
1148
|
+
function It(t) {
|
|
1149
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1150
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
1151
|
+
e % 2 ? Se(Object(n), !0).forEach(function(r) {
|
|
1152
|
+
Gr(t, r, n[r]);
|
|
1153
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Se(Object(n)).forEach(function(r) {
|
|
1154
|
+
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
1290
1155
|
});
|
|
1291
1156
|
}
|
|
1292
|
-
return
|
|
1157
|
+
return t;
|
|
1293
1158
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return
|
|
1159
|
+
function Gr(t, e, n) {
|
|
1160
|
+
return e = Wr(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
1296
1161
|
}
|
|
1297
|
-
function
|
|
1298
|
-
var
|
|
1299
|
-
return typeof
|
|
1162
|
+
function Wr(t) {
|
|
1163
|
+
var e = Ur(t, "string");
|
|
1164
|
+
return typeof e == "symbol" ? e : e + "";
|
|
1300
1165
|
}
|
|
1301
|
-
function
|
|
1302
|
-
if (typeof
|
|
1303
|
-
var
|
|
1304
|
-
if (
|
|
1305
|
-
var
|
|
1306
|
-
if (typeof
|
|
1166
|
+
function Ur(t, e) {
|
|
1167
|
+
if (typeof t != "object" || !t) return t;
|
|
1168
|
+
var n = t[Symbol.toPrimitive];
|
|
1169
|
+
if (n !== void 0) {
|
|
1170
|
+
var r = n.call(t, e);
|
|
1171
|
+
if (typeof r != "object") return r;
|
|
1307
1172
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1308
1173
|
}
|
|
1309
|
-
return (
|
|
1174
|
+
return (e === "string" ? String : Number)(t);
|
|
1310
1175
|
}
|
|
1311
|
-
function
|
|
1312
|
-
return
|
|
1313
|
-
key:
|
|
1314
|
-
},
|
|
1176
|
+
function tn(t) {
|
|
1177
|
+
return t && t.map((e, n) => /* @__PURE__ */ st.createElement(e.tag, It({
|
|
1178
|
+
key: n
|
|
1179
|
+
}, e.attr), tn(e.child)));
|
|
1315
1180
|
}
|
|
1316
|
-
function
|
|
1317
|
-
return (
|
|
1318
|
-
attr:
|
|
1319
|
-
},
|
|
1181
|
+
function Mt(t) {
|
|
1182
|
+
return (e) => /* @__PURE__ */ st.createElement(Kr, Lt({
|
|
1183
|
+
attr: It({}, t.attr)
|
|
1184
|
+
}, e), tn(t.child));
|
|
1320
1185
|
}
|
|
1321
|
-
function
|
|
1322
|
-
var
|
|
1186
|
+
function Kr(t) {
|
|
1187
|
+
var e = (n) => {
|
|
1323
1188
|
var {
|
|
1324
|
-
attr:
|
|
1189
|
+
attr: r,
|
|
1325
1190
|
size: o,
|
|
1326
1191
|
title: a
|
|
1327
|
-
} =
|
|
1328
|
-
return
|
|
1192
|
+
} = t, i = zr(t, Fr), s = o || n.size || "1em", c;
|
|
1193
|
+
return n.className && (c = n.className), t.className && (c = (c ? c + " " : "") + t.className), /* @__PURE__ */ st.createElement("svg", Lt({
|
|
1329
1194
|
stroke: "currentColor",
|
|
1330
1195
|
fill: "currentColor",
|
|
1331
1196
|
strokeWidth: "0"
|
|
1332
|
-
},
|
|
1197
|
+
}, n.attr, r, i, {
|
|
1333
1198
|
className: c,
|
|
1334
|
-
style:
|
|
1335
|
-
color:
|
|
1336
|
-
},
|
|
1199
|
+
style: It(It({
|
|
1200
|
+
color: t.color || n.color
|
|
1201
|
+
}, n.style), t.style),
|
|
1337
1202
|
height: s,
|
|
1338
1203
|
width: s,
|
|
1339
1204
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1340
|
-
}), a && /* @__PURE__ */
|
|
1205
|
+
}), a && /* @__PURE__ */ st.createElement("title", null, a), t.children);
|
|
1341
1206
|
};
|
|
1342
|
-
return
|
|
1207
|
+
return Ne !== void 0 ? /* @__PURE__ */ st.createElement(Ne.Consumer, null, (n) => e(n)) : e($e);
|
|
1343
1208
|
}
|
|
1344
|
-
function
|
|
1345
|
-
return
|
|
1209
|
+
function Hr(t) {
|
|
1210
|
+
return Mt({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M416.3 256c0-21 13.1-38.9 31.7-46.1-4.9-20.5-13-39.7-23.7-57.1-6.4 2.8-13.2 4.3-20.1 4.3-12.6 0-25.2-4.8-34.9-14.4-14.9-14.9-18.2-36.8-10.2-55-17.3-10.7-36.6-18.8-57-23.7C295 82.5 277 95.7 256 95.7S217 82.5 209.9 64c-20.5 4.9-39.7 13-57.1 23.7 8.1 18.1 4.7 40.1-10.2 55-9.6 9.6-22.3 14.4-34.9 14.4-6.9 0-13.7-1.4-20.1-4.3C77 170.3 68.9 189.5 64 210c18.5 7.1 31.7 25 31.7 46.1 0 21-13.1 38.9-31.6 46.1 4.9 20.5 13 39.7 23.7 57.1 6.4-2.8 13.2-4.2 20-4.2 12.6 0 25.2 4.8 34.9 14.4 14.8 14.8 18.2 36.8 10.2 54.9 17.4 10.7 36.7 18.8 57.1 23.7 7.1-18.5 25-31.6 46-31.6s38.9 13.1 46 31.6c20.5-4.9 39.7-13 57.1-23.7-8-18.1-4.6-40 10.2-54.9 9.6-9.6 22.2-14.4 34.9-14.4 6.8 0 13.7 1.4 20 4.2 10.7-17.4 18.8-36.7 23.7-57.1-18.4-7.2-31.6-25.1-31.6-46.2zm-159.4 79.9c-44.3 0-80-35.9-80-80s35.7-80 80-80 80 35.9 80 80-35.7 80-80 80z" }, child: [] }] })(t);
|
|
1346
1211
|
}
|
|
1347
|
-
var
|
|
1348
|
-
const
|
|
1349
|
-
if (!
|
|
1350
|
-
if (Array.isArray(
|
|
1351
|
-
for (let a = 0, i =
|
|
1212
|
+
var Jr = /\s+/g, Qr = (t) => typeof t != "string" || !t ? t : t.replace(Jr, " ").trim(), Vt = (...t) => {
|
|
1213
|
+
const e = [], n = (r) => {
|
|
1214
|
+
if (!r && r !== 0 && r !== 0n) return;
|
|
1215
|
+
if (Array.isArray(r)) {
|
|
1216
|
+
for (let a = 0, i = r.length; a < i; a++) n(r[a]);
|
|
1352
1217
|
return;
|
|
1353
1218
|
}
|
|
1354
|
-
const o = typeof
|
|
1219
|
+
const o = typeof r;
|
|
1355
1220
|
if (o === "string" || o === "number" || o === "bigint") {
|
|
1356
|
-
if (o === "number" &&
|
|
1357
|
-
|
|
1221
|
+
if (o === "number" && r !== r) return;
|
|
1222
|
+
e.push(String(r));
|
|
1358
1223
|
} else if (o === "object") {
|
|
1359
|
-
const a = Object.keys(
|
|
1224
|
+
const a = Object.keys(r);
|
|
1360
1225
|
for (let i = 0, s = a.length; i < s; i++) {
|
|
1361
1226
|
const c = a[i];
|
|
1362
|
-
|
|
1227
|
+
r[c] && e.push(c);
|
|
1363
1228
|
}
|
|
1364
1229
|
}
|
|
1365
1230
|
};
|
|
1366
|
-
for (let
|
|
1367
|
-
const a =
|
|
1368
|
-
a != null &&
|
|
1231
|
+
for (let r = 0, o = t.length; r < o; r++) {
|
|
1232
|
+
const a = t[r];
|
|
1233
|
+
a != null && n(a);
|
|
1369
1234
|
}
|
|
1370
|
-
return
|
|
1371
|
-
},
|
|
1372
|
-
if (!
|
|
1373
|
-
for (const
|
|
1235
|
+
return e.length > 0 ? Qr(e.join(" ")) : void 0;
|
|
1236
|
+
}, Ae = (t) => t === !1 ? "false" : t === !0 ? "true" : t === 0 ? "0" : t, z = (t) => {
|
|
1237
|
+
if (!t || typeof t != "object") return !0;
|
|
1238
|
+
for (const e in t) return !1;
|
|
1374
1239
|
return !0;
|
|
1375
|
-
},
|
|
1376
|
-
if (
|
|
1377
|
-
if (!
|
|
1378
|
-
const
|
|
1379
|
-
if (
|
|
1380
|
-
for (let o = 0; o <
|
|
1381
|
-
const a =
|
|
1382
|
-
if (!
|
|
1240
|
+
}, Xr = (t, e) => {
|
|
1241
|
+
if (t === e) return !0;
|
|
1242
|
+
if (!t || !e) return !1;
|
|
1243
|
+
const n = Object.keys(t), r = Object.keys(e);
|
|
1244
|
+
if (n.length !== r.length) return !1;
|
|
1245
|
+
for (let o = 0; o < n.length; o++) {
|
|
1246
|
+
const a = n[o];
|
|
1247
|
+
if (!r.includes(a) || t[a] !== e[a]) return !1;
|
|
1383
1248
|
}
|
|
1384
1249
|
return !0;
|
|
1385
|
-
},
|
|
1386
|
-
for (const
|
|
1387
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1250
|
+
}, qr = (t, e) => {
|
|
1251
|
+
for (const n in e)
|
|
1252
|
+
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
1253
|
+
const r = e[n];
|
|
1254
|
+
n in t ? t[n] = Vt(t[n], r) : t[n] = r;
|
|
1390
1255
|
}
|
|
1391
|
-
return
|
|
1392
|
-
},
|
|
1393
|
-
for (let
|
|
1394
|
-
const
|
|
1395
|
-
Array.isArray(
|
|
1256
|
+
return t;
|
|
1257
|
+
}, en = (t, e) => {
|
|
1258
|
+
for (let n = 0; n < t.length; n++) {
|
|
1259
|
+
const r = t[n];
|
|
1260
|
+
Array.isArray(r) ? en(r, e) : r && e.push(r);
|
|
1396
1261
|
}
|
|
1397
|
-
},
|
|
1398
|
-
const
|
|
1399
|
-
|
|
1400
|
-
const
|
|
1401
|
-
for (let
|
|
1402
|
-
|
|
1403
|
-
return
|
|
1404
|
-
},
|
|
1405
|
-
const
|
|
1406
|
-
for (const
|
|
1407
|
-
const o =
|
|
1408
|
-
if (
|
|
1409
|
-
const a =
|
|
1410
|
-
Array.isArray(o) || Array.isArray(a) ? r
|
|
1262
|
+
}, nn = (...t) => {
|
|
1263
|
+
const e = [];
|
|
1264
|
+
en(t, e);
|
|
1265
|
+
const n = [];
|
|
1266
|
+
for (let r = 0; r < e.length; r++)
|
|
1267
|
+
e[r] && n.push(e[r]);
|
|
1268
|
+
return n;
|
|
1269
|
+
}, re = (t, e) => {
|
|
1270
|
+
const n = {};
|
|
1271
|
+
for (const r in t) {
|
|
1272
|
+
const o = t[r];
|
|
1273
|
+
if (r in e) {
|
|
1274
|
+
const a = e[r];
|
|
1275
|
+
Array.isArray(o) || Array.isArray(a) ? n[r] = nn(a, o) : typeof o == "object" && typeof a == "object" && o && a ? n[r] = re(o, a) : n[r] = a + " " + o;
|
|
1411
1276
|
} else
|
|
1412
|
-
r
|
|
1277
|
+
n[r] = o;
|
|
1413
1278
|
}
|
|
1414
|
-
for (const
|
|
1415
|
-
|
|
1416
|
-
return
|
|
1417
|
-
},
|
|
1279
|
+
for (const r in e)
|
|
1280
|
+
r in t || (n[r] = e[r]);
|
|
1281
|
+
return n;
|
|
1282
|
+
}, Yr = {
|
|
1418
1283
|
twMerge: !0,
|
|
1419
1284
|
twMergeConfig: {}
|
|
1420
1285
|
};
|
|
1421
|
-
function
|
|
1422
|
-
let
|
|
1286
|
+
function Zr() {
|
|
1287
|
+
let t = null, e = {}, n = !1;
|
|
1423
1288
|
return {
|
|
1424
1289
|
get cachedTwMerge() {
|
|
1425
|
-
return
|
|
1290
|
+
return t;
|
|
1426
1291
|
},
|
|
1427
|
-
set cachedTwMerge(
|
|
1428
|
-
|
|
1292
|
+
set cachedTwMerge(r) {
|
|
1293
|
+
t = r;
|
|
1429
1294
|
},
|
|
1430
1295
|
get cachedTwMergeConfig() {
|
|
1431
|
-
return
|
|
1296
|
+
return e;
|
|
1432
1297
|
},
|
|
1433
|
-
set cachedTwMergeConfig(
|
|
1434
|
-
|
|
1298
|
+
set cachedTwMergeConfig(r) {
|
|
1299
|
+
e = r;
|
|
1435
1300
|
},
|
|
1436
1301
|
get didTwMergeConfigChange() {
|
|
1437
|
-
return
|
|
1302
|
+
return n;
|
|
1438
1303
|
},
|
|
1439
|
-
set didTwMergeConfigChange(
|
|
1440
|
-
|
|
1304
|
+
set didTwMergeConfigChange(r) {
|
|
1305
|
+
n = r;
|
|
1441
1306
|
},
|
|
1442
1307
|
reset() {
|
|
1443
|
-
|
|
1308
|
+
t = null, e = {}, n = !1;
|
|
1444
1309
|
}
|
|
1445
1310
|
};
|
|
1446
1311
|
}
|
|
1447
|
-
var
|
|
1448
|
-
const
|
|
1312
|
+
var Xt = Zr(), $r = (t) => {
|
|
1313
|
+
const e = (r, o) => {
|
|
1449
1314
|
const {
|
|
1450
1315
|
extend: a = null,
|
|
1451
1316
|
slots: i = {},
|
|
@@ -1453,178 +1318,178 @@ var Ge = In(), Vn = (e) => {
|
|
|
1453
1318
|
compoundVariants: c = [],
|
|
1454
1319
|
compoundSlots: u = [],
|
|
1455
1320
|
defaultVariants: d = {}
|
|
1456
|
-
} =
|
|
1457
|
-
!
|
|
1458
|
-
const
|
|
1321
|
+
} = r, f = { ...Yr, ...o }, k = a?.base ? Vt(a.base, r?.base) : r?.base, p = a?.variants && !z(a.variants) ? re(s, a.variants) : s, y = a?.defaultVariants && !z(a.defaultVariants) ? { ...a.defaultVariants, ...d } : d;
|
|
1322
|
+
!z(f.twMergeConfig) && !Xr(f.twMergeConfig, Xt.cachedTwMergeConfig) && (Xt.didTwMergeConfigChange = !0, Xt.cachedTwMergeConfig = f.twMergeConfig);
|
|
1323
|
+
const P = z(a?.slots), g = z(i) ? {} : {
|
|
1459
1324
|
// add "base" to the slots object
|
|
1460
|
-
base:
|
|
1325
|
+
base: Vt(r?.base, P && a?.base),
|
|
1461
1326
|
...i
|
|
1462
|
-
},
|
|
1327
|
+
}, B = P ? g : qr(
|
|
1463
1328
|
{ ...a?.slots },
|
|
1464
|
-
|
|
1465
|
-
),
|
|
1466
|
-
if (
|
|
1467
|
-
return
|
|
1468
|
-
if (
|
|
1329
|
+
z(g) ? { base: r?.base } : g
|
|
1330
|
+
), L = z(a?.compoundVariants) ? c : nn(a?.compoundVariants, c), v = (D) => {
|
|
1331
|
+
if (z(p) && z(i) && P)
|
|
1332
|
+
return t(k, D?.class, D?.className)(f);
|
|
1333
|
+
if (L && !Array.isArray(L))
|
|
1469
1334
|
throw new TypeError(
|
|
1470
|
-
`The "compoundVariants" prop must be an array. Received: ${typeof
|
|
1335
|
+
`The "compoundVariants" prop must be an array. Received: ${typeof L}`
|
|
1471
1336
|
);
|
|
1472
1337
|
if (u && !Array.isArray(u))
|
|
1473
1338
|
throw new TypeError(
|
|
1474
1339
|
`The "compoundSlots" prop must be an array. Received: ${typeof u}`
|
|
1475
1340
|
);
|
|
1476
|
-
const
|
|
1477
|
-
const
|
|
1478
|
-
if (!
|
|
1341
|
+
const St = (b, x = p, w = null, _ = null) => {
|
|
1342
|
+
const N = x[b];
|
|
1343
|
+
if (!N || z(N))
|
|
1479
1344
|
return null;
|
|
1480
|
-
const S =
|
|
1345
|
+
const S = _?.[b] ?? D?.[b];
|
|
1481
1346
|
if (S === null) return null;
|
|
1482
|
-
const
|
|
1483
|
-
if (typeof
|
|
1347
|
+
const A = Ae(S);
|
|
1348
|
+
if (typeof A == "object")
|
|
1484
1349
|
return null;
|
|
1485
|
-
const
|
|
1486
|
-
return
|
|
1487
|
-
},
|
|
1488
|
-
if (!
|
|
1489
|
-
const
|
|
1490
|
-
for (let w = 0; w <
|
|
1491
|
-
const
|
|
1492
|
-
|
|
1350
|
+
const K = y?.[b], M = A ?? Ae(K);
|
|
1351
|
+
return N[M || "false"];
|
|
1352
|
+
}, At = () => {
|
|
1353
|
+
if (!p) return null;
|
|
1354
|
+
const b = Object.keys(p), x = [];
|
|
1355
|
+
for (let w = 0; w < b.length; w++) {
|
|
1356
|
+
const _ = St(b[w], p);
|
|
1357
|
+
_ && x.push(_);
|
|
1493
1358
|
}
|
|
1494
1359
|
return x;
|
|
1495
|
-
},
|
|
1496
|
-
if (!
|
|
1360
|
+
}, at = (b, x) => {
|
|
1361
|
+
if (!p || typeof p != "object") return null;
|
|
1497
1362
|
const w = [];
|
|
1498
|
-
for (const
|
|
1499
|
-
const
|
|
1363
|
+
for (const _ in p) {
|
|
1364
|
+
const N = St(_, p, b, x), S = b === "base" && typeof N == "string" ? N : N && N[b];
|
|
1500
1365
|
S && w.push(S);
|
|
1501
1366
|
}
|
|
1502
1367
|
return w;
|
|
1503
|
-
},
|
|
1504
|
-
for (const
|
|
1505
|
-
const x =
|
|
1506
|
-
x !== void 0 && (
|
|
1368
|
+
}, Z = {};
|
|
1369
|
+
for (const b in D) {
|
|
1370
|
+
const x = D[b];
|
|
1371
|
+
x !== void 0 && (Z[b] = x);
|
|
1507
1372
|
}
|
|
1508
|
-
const
|
|
1509
|
-
const w = typeof
|
|
1510
|
-
[
|
|
1373
|
+
const Et = (b, x) => {
|
|
1374
|
+
const w = typeof D?.[b] == "object" ? {
|
|
1375
|
+
[b]: D[b]?.initial
|
|
1511
1376
|
} : {};
|
|
1512
1377
|
return {
|
|
1513
|
-
...
|
|
1514
|
-
...
|
|
1378
|
+
...y,
|
|
1379
|
+
...Z,
|
|
1515
1380
|
...w,
|
|
1516
1381
|
...x
|
|
1517
1382
|
};
|
|
1518
|
-
},
|
|
1519
|
-
const w = [],
|
|
1520
|
-
for (let
|
|
1521
|
-
const { class: S, className:
|
|
1522
|
-
let
|
|
1523
|
-
const
|
|
1524
|
-
for (const
|
|
1525
|
-
const
|
|
1526
|
-
if (Array.isArray(
|
|
1527
|
-
if (!
|
|
1528
|
-
|
|
1383
|
+
}, mt = (b = [], x) => {
|
|
1384
|
+
const w = [], _ = b.length;
|
|
1385
|
+
for (let N = 0; N < _; N++) {
|
|
1386
|
+
const { class: S, className: A, ...K } = b[N];
|
|
1387
|
+
let M = !0;
|
|
1388
|
+
const q = Et(null, x);
|
|
1389
|
+
for (const lt in K) {
|
|
1390
|
+
const Y = K[lt], Ot = q[lt];
|
|
1391
|
+
if (Array.isArray(Y)) {
|
|
1392
|
+
if (!Y.includes(Ot)) {
|
|
1393
|
+
M = !1;
|
|
1529
1394
|
break;
|
|
1530
1395
|
}
|
|
1531
1396
|
} else {
|
|
1532
|
-
if ((
|
|
1397
|
+
if ((Y == null || Y === !1) && (Ot == null || Ot === !1))
|
|
1533
1398
|
continue;
|
|
1534
|
-
if (
|
|
1535
|
-
|
|
1399
|
+
if (Ot !== Y) {
|
|
1400
|
+
M = !1;
|
|
1536
1401
|
break;
|
|
1537
1402
|
}
|
|
1538
1403
|
}
|
|
1539
1404
|
}
|
|
1540
|
-
|
|
1405
|
+
M && (S && w.push(S), A && w.push(A));
|
|
1541
1406
|
}
|
|
1542
1407
|
return w;
|
|
1543
|
-
},
|
|
1544
|
-
const x =
|
|
1408
|
+
}, $ = (b) => {
|
|
1409
|
+
const x = mt(L, b);
|
|
1545
1410
|
if (!Array.isArray(x)) return x;
|
|
1546
|
-
const w = {},
|
|
1547
|
-
for (let
|
|
1548
|
-
const S = x[
|
|
1411
|
+
const w = {}, _ = t;
|
|
1412
|
+
for (let N = 0; N < x.length; N++) {
|
|
1413
|
+
const S = x[N];
|
|
1549
1414
|
if (typeof S == "string")
|
|
1550
|
-
w.base =
|
|
1415
|
+
w.base = _(w.base, S)(f);
|
|
1551
1416
|
else if (typeof S == "object")
|
|
1552
|
-
for (const
|
|
1553
|
-
w[
|
|
1417
|
+
for (const A in S)
|
|
1418
|
+
w[A] = _(w[A], S[A])(f);
|
|
1554
1419
|
}
|
|
1555
1420
|
return w;
|
|
1556
|
-
},
|
|
1421
|
+
}, Tt = (b) => {
|
|
1557
1422
|
if (u.length < 1) return null;
|
|
1558
|
-
const x = {}, w =
|
|
1559
|
-
for (let
|
|
1423
|
+
const x = {}, w = Et(null, b);
|
|
1424
|
+
for (let _ = 0; _ < u.length; _++) {
|
|
1560
1425
|
const {
|
|
1561
|
-
slots:
|
|
1426
|
+
slots: N = [],
|
|
1562
1427
|
class: S,
|
|
1563
|
-
className:
|
|
1564
|
-
...
|
|
1565
|
-
} = u[
|
|
1566
|
-
if (!
|
|
1567
|
-
let
|
|
1568
|
-
for (const
|
|
1569
|
-
const
|
|
1570
|
-
if (
|
|
1571
|
-
|
|
1428
|
+
className: A,
|
|
1429
|
+
...K
|
|
1430
|
+
} = u[_];
|
|
1431
|
+
if (!z(K)) {
|
|
1432
|
+
let M = !0;
|
|
1433
|
+
for (const q in K) {
|
|
1434
|
+
const lt = w[q], Y = K[q];
|
|
1435
|
+
if (lt === void 0 || (Array.isArray(Y) ? !Y.includes(lt) : Y !== lt)) {
|
|
1436
|
+
M = !1;
|
|
1572
1437
|
break;
|
|
1573
1438
|
}
|
|
1574
1439
|
}
|
|
1575
|
-
if (!
|
|
1440
|
+
if (!M) continue;
|
|
1576
1441
|
}
|
|
1577
|
-
for (let
|
|
1578
|
-
const
|
|
1579
|
-
x[
|
|
1442
|
+
for (let M = 0; M < N.length; M++) {
|
|
1443
|
+
const q = N[M];
|
|
1444
|
+
x[q] || (x[q] = []), x[q].push([S, A]);
|
|
1580
1445
|
}
|
|
1581
1446
|
}
|
|
1582
1447
|
return x;
|
|
1583
1448
|
};
|
|
1584
|
-
if (!
|
|
1585
|
-
const
|
|
1586
|
-
if (typeof
|
|
1587
|
-
const x =
|
|
1588
|
-
for (const w in
|
|
1589
|
-
|
|
1590
|
-
const
|
|
1449
|
+
if (!z(i) || !P) {
|
|
1450
|
+
const b = {};
|
|
1451
|
+
if (typeof B == "object" && !z(B)) {
|
|
1452
|
+
const x = t;
|
|
1453
|
+
for (const w in B)
|
|
1454
|
+
b[w] = (_) => {
|
|
1455
|
+
const N = $(_), S = Tt(_);
|
|
1591
1456
|
return x(
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1457
|
+
B[w],
|
|
1458
|
+
at(w, _),
|
|
1459
|
+
N ? N[w] : void 0,
|
|
1595
1460
|
S ? S[w] : void 0,
|
|
1596
|
-
|
|
1597
|
-
|
|
1461
|
+
_?.class,
|
|
1462
|
+
_?.className
|
|
1598
1463
|
)(f);
|
|
1599
1464
|
};
|
|
1600
1465
|
}
|
|
1601
|
-
return
|
|
1466
|
+
return b;
|
|
1602
1467
|
}
|
|
1603
|
-
return
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1468
|
+
return t(
|
|
1469
|
+
k,
|
|
1470
|
+
At(),
|
|
1471
|
+
mt(L),
|
|
1472
|
+
D?.class,
|
|
1473
|
+
D?.className
|
|
1609
1474
|
)(f);
|
|
1610
|
-
},
|
|
1611
|
-
if (!(!
|
|
1612
|
-
return Object.keys(
|
|
1475
|
+
}, vt = () => {
|
|
1476
|
+
if (!(!p || typeof p != "object"))
|
|
1477
|
+
return Object.keys(p);
|
|
1613
1478
|
};
|
|
1614
|
-
return
|
|
1479
|
+
return v.variantKeys = vt(), v.extend = a, v.base = k, v.slots = B, v.variants = p, v.defaultVariants = y, v.compoundSlots = u, v.compoundVariants = L, v;
|
|
1615
1480
|
};
|
|
1616
1481
|
return {
|
|
1617
|
-
tv:
|
|
1618
|
-
createTV: (
|
|
1482
|
+
tv: e,
|
|
1483
|
+
createTV: (r) => (o, a) => e(o, a ? re(r, a) : r)
|
|
1619
1484
|
};
|
|
1620
|
-
},
|
|
1621
|
-
const
|
|
1622
|
-
base: "
|
|
1485
|
+
}, to = (...t) => (e) => Vt(t) || void 0, { tv: Gt } = $r(to);
|
|
1486
|
+
const Ee = Gt({
|
|
1487
|
+
base: "flex items-center justify-center rounded-lg transition-all duration-100 cursor-pointer active:scale-95",
|
|
1623
1488
|
variants: {
|
|
1624
1489
|
$variant: {
|
|
1625
|
-
primary: "font-semibold text-sm bg-
|
|
1626
|
-
secondary: "border bg-
|
|
1627
|
-
tertiary: "bg-transparent text-
|
|
1490
|
+
primary: "font-semibold text-sm bg-(--lv-control-button-primary-background) text-(--lv-control-button-primary-color) border-(--lv-control-button-primary-border) hover:bg-(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background)) active:bg-(--lv-control-button-primary-activeBackground,var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background))) disabled:bg-(--lv-control-button-primary-disabledBackground,var(--lv-control-button-primary-background)) disabled:text-(--lv-control-button-primary-disabledColor,var(--lv-control-button-primary-color))",
|
|
1491
|
+
secondary: "border bg-(--lv-control-button-secondary-background) text-(--lv-control-button-secondary-color) border-(--lv-control-button-secondary-border,var(--lv-control-button-secondary-background)) hover:bg-(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background)) active:bg-(--lv-control-button-secondary-activeBackground,var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background))) disabled:bg-(--lv-control-button-secondary-disabledBackground,var(--lv-control-button-secondary-background)) disabled:text-(--lv-control-button-secondary-disabledColor,var(--lv-control-button-secondary-color))",
|
|
1492
|
+
tertiary: "bg-transparent text-(--lv-text-muted) hover:bg-(--lv-control-button-tertiary-hoverBackground,transparent) active:bg-(--lv-control-button-tertiary-activeBackground,var(--lv-control-button-tertiary-hoverBackground,transparent)) disabled:text-(--lv-control-button-tertiary-disabledColor,var(--lv-text-muted))"
|
|
1628
1493
|
},
|
|
1629
1494
|
$size: {
|
|
1630
1495
|
sm: "h-6",
|
|
@@ -1642,260 +1507,356 @@ const wt = er({
|
|
|
1642
1507
|
$aspect: "auto"
|
|
1643
1508
|
}
|
|
1644
1509
|
});
|
|
1645
|
-
function
|
|
1646
|
-
const { children:
|
|
1510
|
+
function yt(t) {
|
|
1511
|
+
const { children: e, className: n, $variant: r, $size: o, $aspect: a, ...i } = t, { href: s, onClick: c } = t;
|
|
1647
1512
|
if (s) {
|
|
1648
1513
|
const d = {
|
|
1649
1514
|
href: s,
|
|
1650
1515
|
onClick: c,
|
|
1651
|
-
className:
|
|
1516
|
+
className: dt(Ee({ $variant: r, $size: o, $aspect: a }), n),
|
|
1652
1517
|
...i
|
|
1653
1518
|
};
|
|
1654
|
-
return
|
|
1519
|
+
return X("a", d, e);
|
|
1655
1520
|
}
|
|
1656
1521
|
const u = {
|
|
1657
1522
|
onClick: c,
|
|
1658
|
-
className:
|
|
1523
|
+
className: dt(Ee({ $variant: r, $size: o, $aspect: a }), n),
|
|
1659
1524
|
...i
|
|
1660
1525
|
};
|
|
1661
|
-
return
|
|
1526
|
+
return X("button", u, e);
|
|
1662
1527
|
}
|
|
1663
|
-
const
|
|
1528
|
+
const eo = ({ isApple: t }) => /* @__PURE__ */ h("div", { className: "flex h-full w-full justify-between", children: [
|
|
1664
1529
|
/* @__PURE__ */ l("div", { className: "grow py-1 pl-1", children: /* @__PURE__ */ l("div", { className: "h-full rounded-sm border border-gray-300 bg-gray-400" }) }),
|
|
1665
|
-
/* @__PURE__ */ l("div", { className: "flex h-full w-3 flex-col items-center justify-center gap-0.5 pr-0.5", children: Array.from({ length:
|
|
1530
|
+
/* @__PURE__ */ l("div", { className: "flex h-full w-3 flex-col items-center justify-center gap-0.5 pr-0.5", children: Array.from({ length: t ? 1 : 3 }).map((e, n) => /* @__PURE__ */ l(
|
|
1666
1531
|
"div",
|
|
1667
1532
|
{
|
|
1668
1533
|
className: "h-1.5 w-1.5 rounded-full border border-gray-500"
|
|
1669
1534
|
},
|
|
1670
|
-
"dot-t-" +
|
|
1535
|
+
"dot-t-" + n
|
|
1671
1536
|
)) })
|
|
1672
|
-
] }),
|
|
1537
|
+
] }), no = ({ isApple: t }) => /* @__PURE__ */ h("div", { className: "flex h-full w-full flex-col justify-between", children: [
|
|
1673
1538
|
/* @__PURE__ */ l("div", { className: "grow px-1 pt-1", children: /* @__PURE__ */ l("div", { className: "h-full rounded-sm border border-gray-200 bg-gray-300" }) }),
|
|
1674
|
-
/* @__PURE__ */ l("div", { className: "flex h-3 w-full items-center justify-center gap-0.5 pb-0.5", children: Array.from({ length:
|
|
1539
|
+
/* @__PURE__ */ l("div", { className: "flex h-3 w-full items-center justify-center gap-0.5 pb-0.5", children: Array.from({ length: t ? 1 : 3 }).map((e, n) => /* @__PURE__ */ l(
|
|
1675
1540
|
"div",
|
|
1676
1541
|
{
|
|
1677
1542
|
className: "h-1.5 w-1.5 rounded-full border border-gray-400"
|
|
1678
1543
|
},
|
|
1679
|
-
"dot-p-" +
|
|
1544
|
+
"dot-p-" + n
|
|
1680
1545
|
)) })
|
|
1681
|
-
] }),
|
|
1682
|
-
/* @__PURE__ */ l("div", { className: "h-38 w-48 overflow-hidden rounded-lg bg-gray-300", children: /* @__PURE__ */ l(
|
|
1683
|
-
/* @__PURE__ */ l("div", { className: "h-18 w-12 overflow-hidden rounded-lg bg-gray-200", children: /* @__PURE__ */ l(
|
|
1684
|
-
] }),
|
|
1685
|
-
onSettings:
|
|
1546
|
+
] }), ro = () => /* @__PURE__ */ h("div", { className: "-space-x-4 flex items-end", children: [
|
|
1547
|
+
/* @__PURE__ */ l("div", { className: "h-38 w-48 overflow-hidden rounded-lg bg-gray-300", children: /* @__PURE__ */ l(eo, { isApple: !0 }) }),
|
|
1548
|
+
/* @__PURE__ */ l("div", { className: "h-18 w-12 overflow-hidden rounded-lg bg-gray-200", children: /* @__PURE__ */ l(no, { isApple: !0 }) })
|
|
1549
|
+
] }), oo = ({
|
|
1550
|
+
onSettings: t
|
|
1686
1551
|
}) => {
|
|
1687
|
-
const { start:
|
|
1552
|
+
const { t: e } = G(), { start: n } = er();
|
|
1688
1553
|
return /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
1689
|
-
/* @__PURE__ */ l(
|
|
1690
|
-
/* @__PURE__ */ l("div", { className: "text-center", children: /* @__PURE__ */ l("p", { className: "text-sm
|
|
1554
|
+
/* @__PURE__ */ l(ro, {}),
|
|
1555
|
+
/* @__PURE__ */ l("div", { className: "text-center", children: /* @__PURE__ */ l("p", { className: "text-sm text-(--lv-text-secondary)", children: e("disconnected.prompt") }) }),
|
|
1691
1556
|
/* @__PURE__ */ h("div", { className: "flex items-center", children: [
|
|
1692
1557
|
/* @__PURE__ */ l(
|
|
1693
|
-
|
|
1558
|
+
yt,
|
|
1694
1559
|
{
|
|
1695
1560
|
type: "button",
|
|
1696
|
-
onClick:
|
|
1561
|
+
onClick: n,
|
|
1697
1562
|
className: "z-10 px-6 py-3",
|
|
1698
1563
|
$variant: "primary",
|
|
1699
1564
|
$size: "lg",
|
|
1700
|
-
children: "
|
|
1565
|
+
children: e("disconnected.generateQr")
|
|
1701
1566
|
}
|
|
1702
1567
|
),
|
|
1703
1568
|
/* @__PURE__ */ l(
|
|
1704
|
-
|
|
1569
|
+
yt,
|
|
1705
1570
|
{
|
|
1706
1571
|
type: "button",
|
|
1707
|
-
"aria-label": "
|
|
1572
|
+
"aria-label": e("disconnected.connectionSettings"),
|
|
1708
1573
|
"aria-pressed": !1,
|
|
1709
|
-
onClick:
|
|
1710
|
-
className: "-ml-1 rounded-l-none
|
|
1574
|
+
onClick: t,
|
|
1575
|
+
className: "px-3 ltr:-ml-1 ltr:rounded-l-none rtl:-mr-1 rtl:rounded-r-none",
|
|
1711
1576
|
$aspect: "square",
|
|
1712
1577
|
$size: "lg",
|
|
1713
1578
|
$variant: "secondary",
|
|
1714
|
-
children: /* @__PURE__ */ l(
|
|
1715
|
-
Tn,
|
|
1716
|
-
{
|
|
1717
|
-
className: "h-5 w-5",
|
|
1718
|
-
style: { color: "var(--lv-text-muted)" }
|
|
1719
|
-
}
|
|
1720
|
-
)
|
|
1579
|
+
children: /* @__PURE__ */ l(Hr, { className: "h-5 w-5 text-(--lv-text-muted)" })
|
|
1721
1580
|
}
|
|
1722
1581
|
)
|
|
1723
1582
|
] })
|
|
1724
1583
|
] });
|
|
1725
|
-
},
|
|
1726
|
-
|
|
1584
|
+
}, ao = () => {
|
|
1585
|
+
const { t } = G();
|
|
1586
|
+
return /* @__PURE__ */ h("div", { className: "flex flex-col space-y-2 px-4", children: [
|
|
1587
|
+
/* @__PURE__ */ l("div", { className: "min-h-32 w-full rounded-md border border-(--lv-control-button-secondary-border) p-2", children: t("info.scanQrCode") }),
|
|
1588
|
+
/* @__PURE__ */ l("div", { className: "w-full rounded-md border border-border p-2", children: t("info.approveOnDevice") }),
|
|
1589
|
+
/* @__PURE__ */ l("div", { className: "w-full rounded-md border border-border p-2", children: t("info.youreConnected") })
|
|
1590
|
+
] });
|
|
1591
|
+
}, io = async (t) => {
|
|
1592
|
+
if (!t) return !1;
|
|
1727
1593
|
try {
|
|
1728
1594
|
if (navigator?.clipboard?.writeText)
|
|
1729
|
-
return await navigator.clipboard.writeText(
|
|
1595
|
+
return await navigator.clipboard.writeText(t), !0;
|
|
1730
1596
|
} catch {
|
|
1731
1597
|
}
|
|
1732
1598
|
try {
|
|
1733
|
-
const
|
|
1734
|
-
|
|
1735
|
-
const
|
|
1736
|
-
return document.body.removeChild(
|
|
1599
|
+
const e = document.createElement("textarea");
|
|
1600
|
+
e.value = t, e.style.position = "fixed", e.style.left = "-999999px", e.style.top = "-999999px", document.body.appendChild(e), e.focus(), e.select();
|
|
1601
|
+
const n = document.execCommand("copy");
|
|
1602
|
+
return document.body.removeChild(e), n;
|
|
1737
1603
|
} catch {
|
|
1738
1604
|
return !1;
|
|
1739
1605
|
}
|
|
1740
|
-
},
|
|
1741
|
-
const [
|
|
1606
|
+
}, Te = (t, { duration: e = 200 } = {}) => {
|
|
1607
|
+
const [n, r] = R(t), [o, a] = R(null), i = W(), s = W(t);
|
|
1742
1608
|
return I(() => {
|
|
1743
|
-
if (!Object.is(
|
|
1744
|
-
return i.current && window.clearTimeout(i.current), a(s.current),
|
|
1609
|
+
if (!Object.is(t, s.current))
|
|
1610
|
+
return i.current && window.clearTimeout(i.current), a(s.current), r(t), s.current = t, i.current = window.setTimeout(() => {
|
|
1745
1611
|
a(null), i.current = void 0;
|
|
1746
|
-
},
|
|
1612
|
+
}, e), () => {
|
|
1747
1613
|
i.current && window.clearTimeout(i.current);
|
|
1748
1614
|
};
|
|
1749
|
-
}, [
|
|
1750
|
-
current:
|
|
1615
|
+
}, [t, e]), {
|
|
1616
|
+
current: n,
|
|
1751
1617
|
previous: o,
|
|
1752
1618
|
isTransitioning: o !== null
|
|
1753
1619
|
};
|
|
1754
|
-
},
|
|
1755
|
-
const { status: e } =
|
|
1620
|
+
}, so = "data:image/webp;base64,UklGRjYRAABXRUJQVlA4WAoAAAAQAAAAfwAAfwAAQUxQSOwHAAABsIb///k21zdJk7anNmfbRrf01uztcO5s2yqOPdu27e2ybaPtlLRJ83nw+ye/3++PZ/eDiJgA+hV0c620Pml9MhYu8HlhejUhJbv1SfO5T+964XrgN/I9hD5uLKDZXXDnXPhfq0ImrdX+BMHb/blCjkJo3v2laeVsmvojRJ8L5ir7Vgz7auuIclbtpHwTtdjCFXlBHIBXGzpFaiXwr06lAt/dR8oQf9cPMgDXyW4R2qCAdvPS09MzBnfo6HPrWBJobjAj3fd5q5+4fAFcJ1qY5dnCbHxathRv/+9rX3wAcrPiZbXafX5TRR1hoxvPPPjJG7ApRE7d5wDOFNYXIgqsO/6M04uzuZSSl8D20B0iCu+465sCusuw/AOKvfSIKKDdYeZVTRmp2QqXk/WJKDr93fdHnUhiwE6w2W1Jty2VGpYkmY2zFeaY9Et6FtirhcioYy4pjCLDbviFeVzcuHqB3WI1rvkKQ8mwbfuY702MK+4mk1PTuAo9Ze4lGNgT5k6scRV7xpwIkRFevWkTVTatFWWSZxLR5DuzwSyuWvr5jw6V5lxZmGKRU+/vi1oH8lV9Lydo/DOoOjsrUUbqC8A5ycSV/JjZaROUvKwAaj9WRpxpGQDcT+Yq/YrZFyAmeD00eDxJmHUP86UeV6qT2WAWYp5VwORfWLTng8LnBXPmSsw65mAw31/YbuZbA64f8yQ0zwGAh70jyL/BbsaTRVJD2l1k8vrqRvgxALhVl9jIFQCQa5dCVP4sANwppRcDXACym5FyoTMAsDVIDlV5AABZOhF1CQAyzF6oxRcAX3+QRAMLADyvIGgX86aCev6QD+BGUfLutwgA1lolhe0HgLliws8zd2JVY90EABPJ17ofALyrJona5wG4HC0k+bGgVCezUUDVNwCelvbJugkARsiKugAgr62aijxk5hD/CABYYPaJfucGsN1fEk0FgD/LiOOiod+AcyX5rJsAuNqR74UfAHhVVlb9XACXooU8Ym7H8lnbTBlWkviLPQHwpDiHeSkAdydZoScBZNcQUfUDsy+AT/SPDgCrLRzUBwCyZNGfAXi6i/jByWw0q2UoAEwm3jqfABwKlNXNA+DvIlIVNqlmIQB3J66o6wCuRMmqkwtgf4DWrDsBfKjCZdsB4G05WQl3AZwN0VrMDQBXorloOQBnM1m2XQCeFxfQIp9ZZVJJ3F0AhwP4JgHwdJZlWg/gQ2UBI8BOJpWWfgngqJK5XMeGIUpDAGC0LFoIwNVawBiFcWpp+A3AWgsTmvHa/WVvFYXW+QDWN7Hb7VUCFExFm9jt9tSKZgW/Cna7PWUBAHc7Ae1cAFztVZVF7AAPAOwMZhp9B+B2OBzOD0vDmX6PHE6Hw/lmmj8RWSe9dTocDpeoyJ0Adkepz28H2I+VmMaMsrsjESXdgXJ2VSKqmwPvQii+z/JhSaQ+2z6FnGpcGEREZd97+V6fiNq6JalbIZMxLVK4ncg08uVBVSIKWuPlUAIRxZ3WkUbMfIbKnQXwsSuxKcyZWbNnz5lWm9j4YXNnz549Z0wRYitOnjN79sxDulAnF8ChAIbKZG5dkmpS6OkBkE6yR+pC0gMAh5WILCZSHgkAmdJG6UL8PQBnQr34OF+nIjoNqWvlCT0N4HlxLvN6fYpeU4CcyX4c5o0AvqZwhV3UpxEA8L4KB80GgH5chR7q098Z/JGnnQvAv7ja5uvT3xS68VR6D+B0KM9cGEjEWQA5tTmCjhgJzQKAsRy1PhlK63wAJ0N8mwpDibsC4OsvPiXdMhbKAoDN/r4M9hhMzbcAvrb3IfEitFak2U/RqjL/FwAuFfZi/Re01uCKK+9gSXHuznxU4y0ArI9RMA12aC14PwBkirBuYXJqCDBNZ7AuiYhsg78AQK5bQ7F3mWvRAgKPM9nVBFD0QQaXBjVtv/E7ALyc+UVLt5mnhQXE3WAeFxVBNR4y8DhdYPN6N/yupTvMk0ICyrxhLocLIfsjxmveFHMjLYWdZT7VEPCjgzkdIoZSzvjwsq+NGjMZGjFvYPKbCegDdjGJTph9x828W1GDSCmLLHJpjCDKYDBKwCKFQcKICnWaNmv2yOpW8nZ/y1a5m28AKBDxJw+zxswVeYn5niLB9+qfoFZHqoBG35hLUVyFnzJPS6gkaI9qLkQLSLrHZNfgir/DrPVTCTV6qZLsLiTQtpf51oDLNNwJvG9Gqm2663W+S3b+u0MtTSKsuwWRteuGRXazeiiwXLMWsptXCiKh4ojMJjJEpfeVRRhl1CXmTpxxJT9RiDWuQo+Zu3HGVTeXORZsXKlOZpPZuLq4mWUm45oJdgIZdtARxtXBuEo8Y16XMa7+HuZUqGFFnwQ7nWT6WXVttIfJri/B/Psdu6cX06/462B3BUholg3gVu8IvSr3nvnWnsRbVoN1nehfzKxLSXeZ5VYJflsUADxc279CuP5Q7xzgXHmS2dftBcDbi/N/Zy8e7IPJX9GiKcuPM/okk9TASR99AFDgeH5i/rx0xXlLDrKHNnQNFFFufEY6f0aPCD41muz783wR7BojoMF9CPWsj9QAUUinXTmScCeRy7YRogdogiggJfOMQ8rL4lwRV4XN0wgRRfw4Yc8Lp7CVNi7LYlGe3tohooBSv0xcfebxF4+Xb5+VP20qRfwVLojJXxquKdYUUqRe1z5paWlpfXql1FKsXfU3JLJ49z5p/H3ahdCvnwNWUDggJAkAAFAzAJ0BKoAAgAA+TR6NRCKhoZUKb+QoBMS0gXAB+AH6AA+Ufoz/Jfxg77f7Z+S/YJ+nfbP1gq1XNV9yP0v9m88u9n4J6gXsHdvbKegF67/Sv+T4Lf9d6F/VT2AP5b/Kf+VyINAD+K/1H/h/43+8fC5/Lf9f7u/bv+Wf4H/xf5X4Bv43/Qv+F/avaA9c37VewZ+qi6YnObtVG6xTptSDxWdZOyXNa59dCAiUQx0s9QeFuTtEkCCZ1VDt2yVu6wuLleg8UGC+xygF+ikCc6OFScW3keDjkgMNXtWhnlVuP8adiwFQqtWB898/cNZ/ZPZSbT/SGkUu9L/80Jh9MhRi3Uj+yGTg6IHihIpDzvYgtbVOefgBSvK2WP/ViDlFYMqcmV3S37jDRft7Kj/mgg3mnWnsm+HacJJd/5io8v7EadJwLNxOge91hk1mPHA+PYMINGKvA97JcZEFvzSmFAqBtHUzKqf50fXJLd0XhZmBQWhr/vwnXFii3VNfEfiIXySQr4RbWO8yPn7m0Z/G9Qg9KvDGNk/4ljKJZS1VxLuWUk+To4QAAP7+R5Re1p/qxbSLcVAEvC2Ae4+JAjoahTi+1Tx+R05wIIyRWKCPZqNwQFn8n4hkHC+YaT3NWwkaKKHw8WZH8NqlsIlsWxinFRzXJs8GKMdG2p7hG3px0/aKtlukGtCOvGxG+BPnLqe18kpHi6ID1Cv9VF+k0GfsVXRTfFJ5kFnxBXWEWfHSCRjr5ChoztIFhGiUjdeGW4oPH0mJRKxppXb/SuuY9AJME864F/0/K+rCPHrn4fAaKjIrvZAAGFSMZfovGmlhlAOl0kQHWDDypV8h5DEaTfOmXo5EIScC+SMO14Ob/u1b/QV6+wekJBWTZhjk7IgO7VyRpgGNBj23IgoGI3ZehsZNjz/FwpX2moSeDzk53u1qkXHaKG5d2qCOZSmjD/Mw60AzF22eAe+RoeFKSwUIci9CQD/6et+xH8moMwLOUzzuwuyvWC4o2rAhgXyPm9/OgwkYNR/47Hy+a8QNAxmh8RiQHQGZWu2c8agkAJ64pR2Tx0moSJcAN6mcLGZJM6OR4UvYNwbS3zHo/m2mznwl6FpIv416AQ2FRptmE3mPGs+fumcGy9QktCC15M3KIwNfUa+v+vCs+8cLY3ceuO7FOrdF4O62gur2g1PMJvcYV8xIJTjMC2ZxBtam98jF7JFQus/mSBWdPgN/EJ8azS69gF/kVpet+eEfx0gPfWCS/lXuCCxSTaW6UFiLosH3nrqmK5mWavssaOjz3T6dTb2/wflvaP/c2Q2mXRtiIL0wWJNO1WesBYkScU+pmuiwAuOw62WA6KAf9AOh7glFdfHQf81TCfj3NLS64NeCeXZ+S5Ea0iXT6aKx7ozBGub6ThREbIi3Xg7TnjOFoNnqzOnl2FumRXpwwuB6SujUtv/oX3hzheHNMPGb5C+LuOWwS4BAdAwTnE2vklObQHXtcp59P/ePfam2i7JOlXAWMQBQNP8a1w1rbnyxKFwYqsipF4ckJx3bppb4fgDS/FF2/y46LUyi1BnmZawEb37wuvOD3INuDKaakzzJyAzc2ta/DPhrpHaRn3O5CWc3s860AfNLwHDvxZs7JbQmcAv9paq37frkj2TJJ8P1GdMqpV35v5jukCYvxXga7V7ByDA/GZYBpJnBURfvGjAlOFtypjNWTjzA9zf475TTmOmroREsje7XMgekroBn4vwoWtc0UaaztuLsC9M2tModgoRBzav0PdM3molaBeu6PSwD3AYmgUHitoDOfvM2d85I7Q2I1FbNTmueFesWyTDRlN1T8+fTgaoZpKhrlx/kS+FNkrUKBy6yu68r8BgwNrGNfCLBh0RlefCkZMvUsB206vOJyP+JYtyXtPGzwuvvQ1NnzNCo/yfQtMBUFr0LMyfftfGbGw/uAuQC8VbqHI7vGtA35Pa/DoSi0zpfklckK/28i5yRB7UBdmsXAI4Xv+y5gLBNKYBZE4r3Ys+TE2oYTNlGGM22J0nkGvvERFqksAH7KakYgGUiGfDLagwIMw8o290UXsXUzA5nyTBBbMVjIriG4zcPG5/0lt3Hq3ykjGQZBYE2RFw15tOWJpEBpHoaSxwDmkDPEretisSxreTo/Iul/Pkj1RPlpUpBzqZ5YIzh/ch9TvBAU7YkxhYoEGS8rfw/dgP9aRwT1caEoREnr087aLahcF/h+/JIJfVqi8kl5IbvseIuGA+m+e1JqF49+tndB4QCulVeeuQsql47VKHF/9q8PRMeGYIfPChm+Osj0cHvED3n39qHidL63b2WYqKMKjTTFeORKbtbEHY7b/Xs29zBbWjwaRQ77mEGpkgDUP8Ebi9KQ2JeoW28yYYSO7pF/mqd2E++jgS/MxBo/x1sK/Nz1ZsMB164YppO3fLO519Erh4lDdAgT58nCsImfBkKhteF9rcpwDZe9j0FQ9IT5nuJH1Bt0Zdd1fIIAkYBzje1xr+t4KDj2F7055fEf9VdfsyJPFcK1JZ26v73bpjXJkmUuzMs3+VbxZQ5/4WBwqFJdbOvpFQ4ot/+Hn+qL0oUn4PA4/cgMjQwiYL81rsWfgtbjRThL/oDLbwfK+9cKcerxpB/GJkt5+x8JVN1A3/YhzzMPDnbewqzn+EodKIALRzTXzDHTMQkNZZY6QKRycJ2VCb8vNvQBmdev/CpTn1fgsVtGDJ0+c1iOBN0/f1DQMifz17Os7Oz1pKw7eOP9dtuyGwI7pYe0cEAHId4jKsr5WYfoSOIgXwE7bTm6l9ytV0zbma1KfNP/Ueaf86PTBrUXb3mh1wOj2xW9r5slTCunQPsdDHdZhtq/ldOBDSm/8BZs0vOj+BaStwJTUL6ShMniBq45fMXgBYhE0HCVgrmd8huP1g79tfH/sI40kXryAN0Id9OxWe8OtUDqd+hFn5Lea/0IyqEMOo1l6zdXzTvnn7ZMZQ13YXZ42HNbFrHSpaISyLIEnjorwZViflpTYJU5+TBcgDljbeiGSw9XFp1juoAWD7Du38M26w9QFezhy38ycpTOQI5qBb7hvaPBeGCI6FZxDSfGL8DLCIuXSPDU1wKHXgrR9dz8+Jzlm9rQs+FlQrh/TVOKrVVxQAAAA==", lo = () => {
|
|
1621
|
+
const { t } = G(), { status: e } = Nt(), n = e?.status, r = e?.signaling?.state, o = Q({ sessionState: n, signalState: r }).with({ sessionState: "connected" }, () => ({
|
|
1756
1622
|
icon: "✅",
|
|
1757
|
-
text: "
|
|
1623
|
+
text: t("status.connectedSuccessfully")
|
|
1758
1624
|
})).with({ sessionState: "signaling", signalState: "standby" }, () => ({
|
|
1759
1625
|
icon: "🫥",
|
|
1760
|
-
text: "
|
|
1626
|
+
text: t("status.connecting")
|
|
1761
1627
|
})).with({ sessionState: "signaling", signalState: "connecting" }, () => ({
|
|
1762
1628
|
icon: "↗️",
|
|
1763
|
-
text: "
|
|
1629
|
+
text: t("status.connecting")
|
|
1764
1630
|
})).with({ sessionState: "signaling", signalState: "ready" }, () => ({
|
|
1765
1631
|
icon: "👋",
|
|
1766
|
-
text: "
|
|
1632
|
+
text: t("status.ready")
|
|
1767
1633
|
})).with({ sessionState: "signaling", signalState: "handshake" }, () => ({
|
|
1768
1634
|
icon: "🤝",
|
|
1769
|
-
text: "
|
|
1635
|
+
text: t("status.handshakeClosed")
|
|
1770
1636
|
})).with(
|
|
1771
1637
|
{ sessionState: "signaling", signalState: "handshake-partial" },
|
|
1772
1638
|
() => ({
|
|
1773
1639
|
icon: "🤝",
|
|
1774
|
-
text: "
|
|
1640
|
+
text: t("status.handshakePartial")
|
|
1775
1641
|
})
|
|
1776
1642
|
).with({ sessionState: "signaling", signalState: "encrypted" }, () => ({
|
|
1777
1643
|
icon: "🔒",
|
|
1778
|
-
text: "
|
|
1644
|
+
text: t("status.encrypted")
|
|
1779
1645
|
})).with({ sessionState: "signaling", signalState: "error" }, () => ({
|
|
1780
1646
|
icon: "❌",
|
|
1781
|
-
text: "
|
|
1647
|
+
text: t("status.signalError")
|
|
1782
1648
|
})).otherwise(() => {
|
|
1783
1649
|
});
|
|
1784
|
-
if (!
|
|
1785
|
-
const { icon:
|
|
1786
|
-
return /* @__PURE__ */ h("div", { className: "group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-
|
|
1787
|
-
/* @__PURE__ */ l("div", { className: "pointer-events-none whitespace-nowrap rounded-md text-xs opacity-0 group-hover:opacity-100", children:
|
|
1788
|
-
/* @__PURE__ */ l("div", { children:
|
|
1650
|
+
if (!o) return /* @__PURE__ */ l(Oe, {});
|
|
1651
|
+
const { icon: a, text: i } = o;
|
|
1652
|
+
return /* @__PURE__ */ h("div", { className: "group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-(--lv-control-button-secondary-background)", children: [
|
|
1653
|
+
/* @__PURE__ */ l("div", { className: "pointer-events-none whitespace-nowrap rounded-md text-xs opacity-0 group-hover:opacity-100", children: i }),
|
|
1654
|
+
/* @__PURE__ */ l("div", { children: a })
|
|
1789
1655
|
] });
|
|
1790
|
-
},
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
/* @__PURE__ */ l("div", { className: "h-11 w-full" }),
|
|
1656
|
+
}, co = () => /* @__PURE__ */ h(Oe, { children: [
|
|
1657
|
+
/* @__PURE__ */ l("div", { className: "h-11 w-full" }),
|
|
1658
|
+
/* @__PURE__ */ h("div", { className: "absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 px-3 py-2 text-(--lv-text-muted)", children: [
|
|
1794
1659
|
/* @__PURE__ */ h(
|
|
1795
|
-
"
|
|
1660
|
+
"a",
|
|
1796
1661
|
{
|
|
1797
|
-
|
|
1798
|
-
|
|
1662
|
+
href: "https://github.com/v3xlabs/open-lavatory",
|
|
1663
|
+
target: "_blank",
|
|
1664
|
+
rel: "noreferrer",
|
|
1665
|
+
className: "flex items-center gap-2 p-1 font-semibold text-sm text-(--lv-text-muted)",
|
|
1799
1666
|
children: [
|
|
1800
|
-
/* @__PURE__ */
|
|
1801
|
-
"
|
|
1667
|
+
/* @__PURE__ */ l(
|
|
1668
|
+
"img",
|
|
1802
1669
|
{
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
/* @__PURE__ */ l(
|
|
1810
|
-
"img",
|
|
1811
|
-
{
|
|
1812
|
-
src: Kn,
|
|
1813
|
-
alt: "Open Lavatory Logo",
|
|
1814
|
-
width: 20,
|
|
1815
|
-
height: 20,
|
|
1816
|
-
className: "rounded",
|
|
1817
|
-
"data-openlv-brand-logo": !0
|
|
1818
|
-
}
|
|
1819
|
-
),
|
|
1820
|
-
/* @__PURE__ */ l("span", { children: "openlv" })
|
|
1821
|
-
]
|
|
1670
|
+
src: so,
|
|
1671
|
+
alt: "Open Lavatory Logo",
|
|
1672
|
+
width: 20,
|
|
1673
|
+
height: 20,
|
|
1674
|
+
className: "rounded",
|
|
1675
|
+
"data-openlv-brand-logo": !0
|
|
1822
1676
|
}
|
|
1823
1677
|
),
|
|
1824
|
-
/* @__PURE__ */ l("
|
|
1678
|
+
/* @__PURE__ */ l("span", { children: "openlv" })
|
|
1825
1679
|
]
|
|
1826
1680
|
}
|
|
1827
|
-
)
|
|
1828
|
-
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
}
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1681
|
+
),
|
|
1682
|
+
/* @__PURE__ */ l("div", { className: "text-sm text-(--lv-text-muted)", children: /* @__PURE__ */ l(lo, {}) })
|
|
1683
|
+
] })
|
|
1684
|
+
] });
|
|
1685
|
+
function uo(t) {
|
|
1686
|
+
return Mt({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "m15 18-6-6 6-6" }, child: [] }] })(t);
|
|
1687
|
+
}
|
|
1688
|
+
function rn(t) {
|
|
1689
|
+
return Mt({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "10" }, child: [] }, { tag: "path", attr: { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }, child: [] }, { tag: "path", attr: { d: "M12 17h.01" }, child: [] }] })(t);
|
|
1690
|
+
}
|
|
1691
|
+
function fo(t) {
|
|
1692
|
+
return Mt({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M18 6 6 18" }, child: [] }, { tag: "path", attr: { d: "m6 6 12 12" }, child: [] }] })(t);
|
|
1693
|
+
}
|
|
1694
|
+
const go = ({
|
|
1695
|
+
title: t,
|
|
1696
|
+
view: e,
|
|
1697
|
+
onClose: n,
|
|
1698
|
+
onBack: r,
|
|
1699
|
+
setView: o
|
|
1700
|
+
}) => {
|
|
1701
|
+
const { t: a } = G();
|
|
1702
|
+
return /* @__PURE__ */ h("div", { className: "flex items-center justify-between px-2 py-2", children: [
|
|
1703
|
+
r ? /* @__PURE__ */ l(
|
|
1704
|
+
yt,
|
|
1705
|
+
{
|
|
1706
|
+
onClick: r,
|
|
1707
|
+
"aria-label": a(e === "settings" ? "modal.backToQr" : "modal.closeModal"),
|
|
1708
|
+
$variant: "tertiary",
|
|
1709
|
+
$aspect: "square",
|
|
1710
|
+
$size: "md",
|
|
1711
|
+
children: /* @__PURE__ */ l(uo, { className: "h-6 w-6 text-(--lv-text-muted) rtl:rotate-180" })
|
|
1712
|
+
}
|
|
1713
|
+
) : (
|
|
1714
|
+
// <Button
|
|
1715
|
+
// type="button"
|
|
1716
|
+
// href="https://openlv.sh"
|
|
1717
|
+
// target="_blank"
|
|
1718
|
+
// $variant="tertiary"
|
|
1719
|
+
// $aspect="square"
|
|
1720
|
+
// $size="md"
|
|
1721
|
+
// >
|
|
1722
|
+
// <LuCircleHelp className="h-5 w-5" />
|
|
1723
|
+
// </Button>
|
|
1724
|
+
/* @__PURE__ */ l(
|
|
1725
|
+
yt,
|
|
1855
1726
|
{
|
|
1856
|
-
|
|
1857
|
-
|
|
1727
|
+
type: "button",
|
|
1728
|
+
onClick: () => o("info"),
|
|
1729
|
+
$variant: "tertiary",
|
|
1730
|
+
$aspect: "square",
|
|
1731
|
+
$size: "md",
|
|
1732
|
+
children: /* @__PURE__ */ l(rn, { className: "h-5 w-5" })
|
|
1858
1733
|
}
|
|
1859
1734
|
)
|
|
1735
|
+
),
|
|
1736
|
+
/* @__PURE__ */ l("h2", { className: "flex items-center justify-center gap-2 font-semibold text-(--lv-text-primary) text-lg", children: t }),
|
|
1737
|
+
/* @__PURE__ */ l(
|
|
1738
|
+
yt,
|
|
1739
|
+
{
|
|
1740
|
+
type: "button",
|
|
1741
|
+
"aria-label": a("common.close"),
|
|
1742
|
+
"aria-pressed": !1,
|
|
1743
|
+
onClick: n,
|
|
1744
|
+
$variant: "tertiary",
|
|
1745
|
+
$aspect: "square",
|
|
1746
|
+
$size: "md",
|
|
1747
|
+
children: /* @__PURE__ */ l(fo, { className: "h-6 w-6 text-(--lv-text-muted)" })
|
|
1748
|
+
}
|
|
1749
|
+
)
|
|
1750
|
+
] });
|
|
1751
|
+
}, Wt = ({ title: t, right: e, children: n }) => /* @__PURE__ */ h("div", { children: [
|
|
1752
|
+
/* @__PURE__ */ h("div", { className: "flex items-end justify-between py-1 pl-2", children: [
|
|
1753
|
+
/* @__PURE__ */ l("div", { className: "font-medium text-(--lv-text-primary) text-sm", children: t }),
|
|
1754
|
+
/* @__PURE__ */ l("div", { children: e })
|
|
1755
|
+
] }),
|
|
1756
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-1 rounded-md bg-(--lv-card-background) p-2", children: n })
|
|
1757
|
+
] }), Ct = ({ label: t, children: e }) => /* @__PURE__ */ h("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
1758
|
+
/* @__PURE__ */ l("div", { className: "text-sm text-(--lv-text-secondary)", children: t }),
|
|
1759
|
+
/* @__PURE__ */ l("div", { children: e })
|
|
1760
|
+
] }), po = Gt({
|
|
1761
|
+
slots: {
|
|
1762
|
+
root: "flex overflow-hidden rounded-md border border-(--lv-control-button-secondary-border)",
|
|
1763
|
+
box: "px-4 py-2 font-semibold text-xs transition border-l first:border-l-0 border-(--lv-control-button-secondary-border)"
|
|
1764
|
+
},
|
|
1765
|
+
variants: {
|
|
1766
|
+
active: {
|
|
1767
|
+
on: {
|
|
1768
|
+
box: "bg-(--lv-control-button-secondary-background) text-(--lv-text-primary)"
|
|
1769
|
+
},
|
|
1770
|
+
off: {
|
|
1771
|
+
box: "bg-transparent text-(--lv-text-secondary) cursor-pointer"
|
|
1772
|
+
}
|
|
1860
1773
|
}
|
|
1861
|
-
|
|
1862
|
-
|
|
1774
|
+
},
|
|
1775
|
+
defaultVariants: {
|
|
1776
|
+
active: "off"
|
|
1777
|
+
}
|
|
1778
|
+
}), ho = Gt({
|
|
1779
|
+
base: "w-full rounded-md border border-(--lv-control-button-secondary-border) bg-(--lv-control-button-secondary-background) px-3 py-2 font-semibold text-xs text-(--lv-text-primary) cursor-pointer focus:outline-none focus:ring-2 focus:ring-(--lv-control-button-primary-background) appearance-none bg-[url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23888%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:14px] bg-[right_8px_center] bg-no-repeat pr-8"
|
|
1780
|
+
}), Ut = ({
|
|
1781
|
+
options: t,
|
|
1782
|
+
value: e,
|
|
1783
|
+
onChange: n,
|
|
1784
|
+
dropdownThreshold: r = 3
|
|
1785
|
+
}) => {
|
|
1786
|
+
if (t.length > r) {
|
|
1787
|
+
const s = ho();
|
|
1788
|
+
return /* @__PURE__ */ l(
|
|
1789
|
+
"select",
|
|
1790
|
+
{
|
|
1791
|
+
className: s,
|
|
1792
|
+
value: e,
|
|
1793
|
+
onChange: (c) => n(c.target.value),
|
|
1794
|
+
children: t.map(([c, u]) => /* @__PURE__ */ l("option", { value: c, children: u }, c))
|
|
1795
|
+
}
|
|
1796
|
+
);
|
|
1797
|
+
}
|
|
1798
|
+
const { root: a, box: i } = po({});
|
|
1799
|
+
return /* @__PURE__ */ l("div", { className: a(), children: t.map(([s, c]) => /* @__PURE__ */ l(
|
|
1800
|
+
"button",
|
|
1863
1801
|
{
|
|
1864
1802
|
type: "button",
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1803
|
+
onClick: () => n(s),
|
|
1804
|
+
"aria-pressed": s === e,
|
|
1805
|
+
className: i({ active: s === e ? "on" : "off" }),
|
|
1806
|
+
children: c
|
|
1807
|
+
},
|
|
1808
|
+
s
|
|
1809
|
+
)) });
|
|
1810
|
+
}, vo = ({ value: t, onChange: e }) => {
|
|
1811
|
+
const { t: n } = G();
|
|
1812
|
+
return /* @__PURE__ */ l(
|
|
1813
|
+
Ut,
|
|
1875
1814
|
{
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1815
|
+
options: [
|
|
1816
|
+
["true", n("common.yes")],
|
|
1817
|
+
["false", n("common.no")]
|
|
1818
|
+
],
|
|
1819
|
+
value: t ? "true" : "false",
|
|
1820
|
+
onChange: (r) => e(r === "true")
|
|
1879
1821
|
}
|
|
1880
|
-
)
|
|
1881
|
-
|
|
1882
|
-
|
|
1822
|
+
);
|
|
1823
|
+
}, mo = () => {
|
|
1824
|
+
const { t } = G(), { settings: e, updateRetainHistory: n, updateAutoReconnect: r } = Ft();
|
|
1825
|
+
return /* @__PURE__ */ l(Wt, { title: t("settings.connectionPreferences.title"), children: [
|
|
1826
|
+
[
|
|
1827
|
+
t("settings.connectionPreferences.retainSessionHistory"),
|
|
1828
|
+
"retainHistory",
|
|
1829
|
+
e?.retainHistory ?? !1,
|
|
1830
|
+
n
|
|
1831
|
+
],
|
|
1832
|
+
[
|
|
1833
|
+
t("settings.connectionPreferences.autoReconnect"),
|
|
1834
|
+
"autoReconnect",
|
|
1835
|
+
e?.autoReconnect ?? !1,
|
|
1836
|
+
r
|
|
1837
|
+
]
|
|
1838
|
+
].map(([o, a, i, s]) => /* @__PURE__ */ l(Ct, { label: o, children: /* @__PURE__ */ l(vo, { label: o, value: i, onChange: s }) }, a)) });
|
|
1839
|
+
}, bo = () => {
|
|
1840
|
+
const { t, languageTag: e, setLanguageTag: n } = G(), { settings: r, updateLanguage: o } = Ft(), a = ft(() => [...se].sort((s, c) => {
|
|
1841
|
+
const u = pe(s.tag);
|
|
1842
|
+
return pe(c.tag) - u;
|
|
1843
|
+
}), []), i = (s) => {
|
|
1844
|
+
const c = s;
|
|
1845
|
+
n(c), o(c);
|
|
1846
|
+
};
|
|
1847
|
+
return /* @__PURE__ */ l(Wt, { title: t("settings.language"), children: /* @__PURE__ */ l(Ct, { label: t("settings.language"), children: /* @__PURE__ */ l(
|
|
1848
|
+
Ut,
|
|
1883
1849
|
{
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
onClick: r,
|
|
1888
|
-
$variant: "tertiary",
|
|
1889
|
-
$aspect: "square",
|
|
1890
|
-
$size: "md",
|
|
1891
|
-
children: /* @__PURE__ */ l(qn, { className: "h-6 w-6", style: { color: "var(--lv-text-muted)" } })
|
|
1850
|
+
options: a.map((s) => [s.tag, s.nativeName]),
|
|
1851
|
+
value: r?.language || e,
|
|
1852
|
+
onChange: i
|
|
1892
1853
|
}
|
|
1893
|
-
)
|
|
1894
|
-
|
|
1854
|
+
) }) });
|
|
1855
|
+
}, yo = Gt({
|
|
1895
1856
|
slots: {
|
|
1896
1857
|
root: "group relative",
|
|
1897
|
-
box: "cursor-pointer rounded-md transition-colors flex items-center justify-center hover:[background-color:var(--lv-button-tertiary-hoverBackground)]",
|
|
1898
|
-
popover: "-translate-x-1/2 absolute top-full left-1/2 z-10 hidden rounded-md shadow-sm group-hover:block",
|
|
1858
|
+
box: "cursor-pointer rounded-md transition-colors flex items-center justify-center hover:[background-color:var(--lv-control-button-tertiary-hoverBackground)] text-(--lv-text-muted)",
|
|
1859
|
+
popover: "-translate-x-1/2 absolute top-full left-1/2 z-10 hidden rounded-md shadow-sm group-hover:block border border-(--lv-control-button-secondary-border) bg-(--lv-body-background) px-2 py-1.5 text-(--lv-text-primary) text-sm",
|
|
1899
1860
|
icon: ""
|
|
1900
1861
|
},
|
|
1901
1862
|
variants: {
|
|
@@ -1921,241 +1882,125 @@ const Qn = ({
|
|
|
1921
1882
|
defaultVariants: {
|
|
1922
1883
|
size: "lg"
|
|
1923
1884
|
}
|
|
1924
|
-
}),
|
|
1925
|
-
variant:
|
|
1926
|
-
children:
|
|
1927
|
-
size:
|
|
1885
|
+
}), on = ({
|
|
1886
|
+
variant: t = "icon",
|
|
1887
|
+
children: e,
|
|
1888
|
+
size: n = "lg"
|
|
1928
1889
|
}) => {
|
|
1929
|
-
const { root:
|
|
1930
|
-
return /* @__PURE__ */ h("div", { className:
|
|
1931
|
-
/* @__PURE__ */ l(
|
|
1932
|
-
|
|
1933
|
-
{
|
|
1934
|
-
className: o(),
|
|
1935
|
-
style: {
|
|
1936
|
-
color: "var(--lv-text-muted)"
|
|
1937
|
-
},
|
|
1938
|
-
children: Q(e).with("icon", () => /* @__PURE__ */ l(tr, { className: i() })).with("text", () => /* @__PURE__ */ l("div", { children: "Text" })).exhaustive()
|
|
1939
|
-
}
|
|
1940
|
-
),
|
|
1941
|
-
/* @__PURE__ */ l(
|
|
1942
|
-
"div",
|
|
1943
|
-
{
|
|
1944
|
-
className: a(),
|
|
1945
|
-
style: {
|
|
1946
|
-
backgroundColor: "var(--lv-body-background)",
|
|
1947
|
-
color: "var(--lv-text-primary)",
|
|
1948
|
-
padding: "6px 8px",
|
|
1949
|
-
border: "1px solid var(--lv-button-secondary-border)"
|
|
1950
|
-
},
|
|
1951
|
-
children: t
|
|
1952
|
-
}
|
|
1953
|
-
)
|
|
1890
|
+
const { root: r, box: o, popover: a, icon: i } = yo({ size: n, variant: t });
|
|
1891
|
+
return /* @__PURE__ */ h("div", { className: r(), children: [
|
|
1892
|
+
/* @__PURE__ */ l("div", { className: o(), children: Q(t).with("icon", () => /* @__PURE__ */ l(rn, { className: i() })).with("text", () => /* @__PURE__ */ l("div", { children: "Text" })).exhaustive() }),
|
|
1893
|
+
/* @__PURE__ */ l("div", { className: a(), children: e })
|
|
1954
1894
|
] });
|
|
1955
|
-
},
|
|
1956
|
-
/* @__PURE__ */ h("div", { className: "flex items-end justify-between px-2 py-1", children: [
|
|
1957
|
-
/* @__PURE__ */ l(
|
|
1958
|
-
"div",
|
|
1959
|
-
{
|
|
1960
|
-
className: "font-medium text-sm",
|
|
1961
|
-
style: { color: "var(--lv-text-primary)" },
|
|
1962
|
-
children: e
|
|
1963
|
-
}
|
|
1964
|
-
),
|
|
1965
|
-
/* @__PURE__ */ l("div", { children: t })
|
|
1966
|
-
] }),
|
|
1967
|
-
/* @__PURE__ */ l(
|
|
1968
|
-
"div",
|
|
1969
|
-
{
|
|
1970
|
-
className: "flex flex-col gap-1 rounded-md p-2 border",
|
|
1971
|
-
style: {
|
|
1972
|
-
backgroundColor: "transparent",
|
|
1973
|
-
borderColor: "var(--lv-button-secondary-background)"
|
|
1974
|
-
},
|
|
1975
|
-
children: r
|
|
1976
|
-
}
|
|
1977
|
-
)
|
|
1978
|
-
] }), Re = ({ label: e, children: t }) => /* @__PURE__ */ h("div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
1979
|
-
/* @__PURE__ */ l("div", { className: "text-sm", style: { color: "var(--lv-text-secondary)" }, children: e }),
|
|
1980
|
-
/* @__PURE__ */ l("div", { children: t })
|
|
1981
|
-
] }), ot = ({ options: e, value: t, onChange: r }) => {
|
|
1982
|
-
const n = "var(--lv-button-secondary-border)";
|
|
1983
|
-
return /* @__PURE__ */ l(
|
|
1984
|
-
"div",
|
|
1985
|
-
{
|
|
1986
|
-
className: "flex overflow-hidden rounded-md border",
|
|
1987
|
-
style: { borderColor: n },
|
|
1988
|
-
children: e.map(([o, a]) => /* @__PURE__ */ l(
|
|
1989
|
-
"button",
|
|
1990
|
-
{
|
|
1991
|
-
type: "button",
|
|
1992
|
-
onClick: () => r(o),
|
|
1993
|
-
"aria-pressed": o === t,
|
|
1994
|
-
className: ie(
|
|
1995
|
-
"px-4 py-2 font-semibold text-xs transition border-l first:border-l-0",
|
|
1996
|
-
o !== t && "cursor-pointer"
|
|
1997
|
-
),
|
|
1998
|
-
style: o === t ? {
|
|
1999
|
-
backgroundColor: "var(--lv-button-secondary-selectedBackground, var(--lv-button-secondary-background))",
|
|
2000
|
-
color: "var(--lv-button-secondary-selectedColor, var(--lv-text-primary))",
|
|
2001
|
-
borderColor: n
|
|
2002
|
-
} : {
|
|
2003
|
-
backgroundColor: "transparent",
|
|
2004
|
-
color: "var(--lv-text-secondary)",
|
|
2005
|
-
borderColor: n
|
|
2006
|
-
},
|
|
2007
|
-
children: a
|
|
2008
|
-
},
|
|
2009
|
-
o
|
|
2010
|
-
))
|
|
2011
|
-
}
|
|
2012
|
-
);
|
|
2013
|
-
}, Zn = ({ value: e, onChange: t }) => /* @__PURE__ */ l(
|
|
2014
|
-
ot,
|
|
2015
|
-
{
|
|
2016
|
-
options: [
|
|
2017
|
-
["true", "Yes"],
|
|
2018
|
-
["false", "No"]
|
|
2019
|
-
],
|
|
2020
|
-
value: e ? "true" : "false",
|
|
2021
|
-
onChange: (r) => t(r === "true")
|
|
2022
|
-
}
|
|
2023
|
-
), $n = () => {
|
|
2024
|
-
const { settings: e, updateRetainHistory: t, updateAutoReconnect: r } = et();
|
|
2025
|
-
return /* @__PURE__ */ l(
|
|
2026
|
-
nt,
|
|
2027
|
-
{
|
|
2028
|
-
title: "Connection preferences",
|
|
2029
|
-
right: /* @__PURE__ */ l(rt, { variant: "icon", children: "Something something very cool" }),
|
|
2030
|
-
children: [
|
|
2031
|
-
[
|
|
2032
|
-
"Retain session history",
|
|
2033
|
-
"retainHistory",
|
|
2034
|
-
e?.retainHistory ?? !1,
|
|
2035
|
-
t
|
|
2036
|
-
],
|
|
2037
|
-
[
|
|
2038
|
-
"Auto reconnect",
|
|
2039
|
-
"autoReconnect",
|
|
2040
|
-
e?.autoReconnect ?? !1,
|
|
2041
|
-
r
|
|
2042
|
-
]
|
|
2043
|
-
].map(([n, o, a, i]) => /* @__PURE__ */ l(Re, { label: n, children: /* @__PURE__ */ l(Zn, { label: n, value: a, onChange: i }) }, o))
|
|
2044
|
-
}
|
|
2045
|
-
);
|
|
2046
|
-
}, eo = "h-9 w-full rounded-lg border bg-white px-3 text-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200", to = ({
|
|
1895
|
+
}, wo = "h-9 w-full rounded-lg border bg-white px-3 text-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200 text-(--lv-text-primary) bg-(--lv-body-background) border-(--lv-control-input-border)", xo = ({
|
|
2047
1896
|
// eslint-disable-next-line no-restricted-syntax
|
|
2048
|
-
id:
|
|
2049
|
-
value:
|
|
2050
|
-
placeholder:
|
|
2051
|
-
ariaLabel:
|
|
1897
|
+
id: t,
|
|
1898
|
+
value: e,
|
|
1899
|
+
placeholder: n,
|
|
1900
|
+
ariaLabel: r,
|
|
2052
1901
|
readOnly: o = !0,
|
|
2053
1902
|
onChange: a
|
|
2054
1903
|
}) => /* @__PURE__ */ l(
|
|
2055
1904
|
"input",
|
|
2056
1905
|
{
|
|
2057
|
-
id:
|
|
2058
|
-
className:
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
borderColor: "var(--lv-control-input-border)"
|
|
2063
|
-
},
|
|
2064
|
-
value: t,
|
|
2065
|
-
placeholder: r,
|
|
2066
|
-
"aria-label": n,
|
|
1906
|
+
id: t,
|
|
1907
|
+
className: wo,
|
|
1908
|
+
value: e,
|
|
1909
|
+
placeholder: n,
|
|
1910
|
+
"aria-label": r,
|
|
2067
1911
|
readOnly: o,
|
|
2068
1912
|
onChange: (i) => {
|
|
2069
1913
|
i.target instanceof HTMLInputElement && a?.(i.target.value);
|
|
2070
1914
|
}
|
|
2071
1915
|
}
|
|
2072
|
-
),
|
|
2073
|
-
const { settings: e, updateSignalingProtocol:
|
|
1916
|
+
), ko = ["MQTT", "NTFY", "GUN"], Co = () => {
|
|
1917
|
+
const { t } = G(), { settings: e, updateSignalingProtocol: n, updateSignalingServer: r } = Ft();
|
|
2074
1918
|
return /* @__PURE__ */ l("div", { children: /* @__PURE__ */ h(
|
|
2075
|
-
|
|
1919
|
+
Wt,
|
|
2076
1920
|
{
|
|
2077
|
-
title: "
|
|
2078
|
-
right: /* @__PURE__ */ l(
|
|
1921
|
+
title: t("settings.signaling.title"),
|
|
1922
|
+
right: /* @__PURE__ */ l(on, { variant: "icon", children: t("settings.signaling.description") }),
|
|
2079
1923
|
children: [
|
|
2080
|
-
/* @__PURE__ */ l(
|
|
2081
|
-
|
|
1924
|
+
/* @__PURE__ */ l(Ct, { label: t("common.protocol"), children: /* @__PURE__ */ l(
|
|
1925
|
+
Ut,
|
|
2082
1926
|
{
|
|
2083
|
-
options:
|
|
2084
|
-
|
|
2085
|
-
|
|
1927
|
+
options: ko.map((o) => [
|
|
1928
|
+
o.toLowerCase(),
|
|
1929
|
+
o
|
|
2086
1930
|
]),
|
|
2087
1931
|
value: e?.signaling.p || "",
|
|
2088
|
-
onChange:
|
|
1932
|
+
onChange: n
|
|
2089
1933
|
}
|
|
2090
1934
|
) }),
|
|
2091
|
-
/* @__PURE__ */ l(
|
|
2092
|
-
|
|
1935
|
+
/* @__PURE__ */ l(Ct, { label: t("settings.signaling.server"), children: /* @__PURE__ */ l(
|
|
1936
|
+
xo,
|
|
2093
1937
|
{
|
|
2094
1938
|
id: "server",
|
|
2095
1939
|
value: e?.signaling.s[e?.signaling.p || ""] || "",
|
|
2096
|
-
onChange: (
|
|
2097
|
-
placeholder: "
|
|
2098
|
-
ariaLabel: "
|
|
1940
|
+
onChange: (o) => r(o),
|
|
1941
|
+
placeholder: t("settings.signaling.serverUrl"),
|
|
1942
|
+
ariaLabel: t("settings.signaling.serverUrl"),
|
|
2099
1943
|
readOnly: !1
|
|
2100
1944
|
}
|
|
2101
1945
|
) })
|
|
2102
1946
|
]
|
|
2103
1947
|
}
|
|
2104
1948
|
) });
|
|
2105
|
-
},
|
|
2106
|
-
const [e,
|
|
1949
|
+
}, _o = ["WebRTC"], No = () => {
|
|
1950
|
+
const { t } = G(), [e, n] = R("WebRTC");
|
|
2107
1951
|
return /* @__PURE__ */ l(
|
|
2108
|
-
|
|
1952
|
+
Wt,
|
|
2109
1953
|
{
|
|
2110
|
-
title: "
|
|
2111
|
-
right: /* @__PURE__ */ l(
|
|
2112
|
-
children: /* @__PURE__ */ l(
|
|
2113
|
-
|
|
1954
|
+
title: t("settings.transport.title"),
|
|
1955
|
+
right: /* @__PURE__ */ l(on, { variant: "icon", children: t("settings.transport.description") }),
|
|
1956
|
+
children: /* @__PURE__ */ l(Ct, { label: t("common.protocol"), children: /* @__PURE__ */ l(
|
|
1957
|
+
Ut,
|
|
2114
1958
|
{
|
|
2115
|
-
options:
|
|
1959
|
+
options: _o.map((r) => [r, r]),
|
|
2116
1960
|
value: e,
|
|
2117
|
-
onChange: (r) =>
|
|
1961
|
+
onChange: (r) => n(r)
|
|
2118
1962
|
}
|
|
2119
1963
|
) })
|
|
2120
1964
|
}
|
|
2121
1965
|
);
|
|
2122
|
-
},
|
|
2123
|
-
/* @__PURE__ */ l(
|
|
2124
|
-
/* @__PURE__ */ l(
|
|
2125
|
-
/* @__PURE__ */ l(
|
|
2126
|
-
|
|
2127
|
-
|
|
1966
|
+
}, So = () => /* @__PURE__ */ h("div", { className: "px-4 pb-2", children: [
|
|
1967
|
+
/* @__PURE__ */ l(Co, {}),
|
|
1968
|
+
/* @__PURE__ */ l(No, {}),
|
|
1969
|
+
/* @__PURE__ */ l(mo, {}),
|
|
1970
|
+
/* @__PURE__ */ l(bo, {})
|
|
1971
|
+
] }), Ao = () => {
|
|
1972
|
+
const [t, e] = R("start"), [n, r] = R(!1);
|
|
2128
1973
|
return I(() => {
|
|
2129
|
-
if (!
|
|
2130
|
-
const o = window.setTimeout(() =>
|
|
1974
|
+
if (!n) return;
|
|
1975
|
+
const o = window.setTimeout(() => r(!1), 2e3);
|
|
2131
1976
|
return () => window.clearTimeout(o);
|
|
2132
|
-
}, [
|
|
2133
|
-
view:
|
|
2134
|
-
setView:
|
|
2135
|
-
copied:
|
|
2136
|
-
setCopied:
|
|
1977
|
+
}, [n]), {
|
|
1978
|
+
view: t,
|
|
1979
|
+
setView: e,
|
|
1980
|
+
copied: n,
|
|
1981
|
+
setCopied: r
|
|
2137
1982
|
};
|
|
2138
|
-
},
|
|
1983
|
+
}, Eo = (t) => {
|
|
2139
1984
|
I(() => {
|
|
2140
|
-
const
|
|
2141
|
-
|
|
1985
|
+
const e = (n) => {
|
|
1986
|
+
n.key === "Escape" && t();
|
|
2142
1987
|
};
|
|
2143
|
-
return document.addEventListener("keydown",
|
|
2144
|
-
}, [
|
|
2145
|
-
},
|
|
2146
|
-
const
|
|
1988
|
+
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
1989
|
+
}, [t]);
|
|
1990
|
+
}, To = () => {
|
|
1991
|
+
const t = W(null), [e, n] = R(0), r = W(!1), o = U(
|
|
2147
1992
|
(a, i = !1) => {
|
|
2148
|
-
const s = a ||
|
|
1993
|
+
const s = a || t.current;
|
|
2149
1994
|
if (!s) return;
|
|
2150
1995
|
const c = i ? s.scrollHeight : s.getBoundingClientRect().height;
|
|
2151
|
-
c > 0 && (
|
|
1996
|
+
c > 0 && (n(
|
|
2152
1997
|
(u) => typeof u == "number" && Math.abs(u - c) < 0.5 ? u : c
|
|
2153
|
-
),
|
|
1998
|
+
), r.current = !0);
|
|
2154
1999
|
},
|
|
2155
2000
|
[]
|
|
2156
2001
|
);
|
|
2157
|
-
return
|
|
2158
|
-
const a =
|
|
2002
|
+
return ht(() => {
|
|
2003
|
+
const a = t.current;
|
|
2159
2004
|
if (!a || typeof ResizeObserver > "u") return;
|
|
2160
2005
|
const i = new ResizeObserver(() => {
|
|
2161
2006
|
o();
|
|
@@ -2168,70 +2013,70 @@ const Qn = ({
|
|
|
2168
2013
|
};
|
|
2169
2014
|
return window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
|
|
2170
2015
|
}, [o]), {
|
|
2171
|
-
contentRef:
|
|
2172
|
-
height:
|
|
2016
|
+
contentRef: t,
|
|
2017
|
+
height: e,
|
|
2173
2018
|
measureHeight: o,
|
|
2174
|
-
setHeight:
|
|
2019
|
+
setHeight: n
|
|
2175
2020
|
};
|
|
2176
|
-
},
|
|
2177
|
-
}, onCopy:
|
|
2178
|
-
const { view:
|
|
2179
|
-
current:
|
|
2180
|
-
previous: g,
|
|
2181
|
-
isTransitioning: k
|
|
2182
|
-
} = xt(r), {
|
|
2183
|
-
current: T,
|
|
2021
|
+
}, Oo = ({ onClose: t = () => {
|
|
2022
|
+
}, onCopy: e }) => {
|
|
2023
|
+
const { view: n, setView: r, copied: o, setCopied: a } = Ao(), { uri: i } = Nt(), { status: s, provider: c } = _t(), { contentRef: u, height: d, measureHeight: f } = To(), {
|
|
2024
|
+
current: k,
|
|
2184
2025
|
previous: p,
|
|
2185
|
-
isTransitioning:
|
|
2186
|
-
} =
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2026
|
+
isTransitioning: y
|
|
2027
|
+
} = Te(n), {
|
|
2028
|
+
current: P,
|
|
2029
|
+
previous: g,
|
|
2030
|
+
isTransitioning: B
|
|
2031
|
+
} = Te(s), L = U(() => r("settings"), [r]), { t: v, isRtl: vt } = G(), D = Q(n).with("start", () => v("start.title")).with("settings", () => v("settings.title")).with("info", () => v("info.title")).exhaustive();
|
|
2032
|
+
Eo(t), I(() => {
|
|
2033
|
+
s === it.CONNECTED && t();
|
|
2034
|
+
}, [s, t]);
|
|
2035
|
+
const St = U(async () => {
|
|
2036
|
+
i && await io(i) && a(!0);
|
|
2037
|
+
}, [i, a]), At = W(!0), at = W(), Z = W(void 0), [Et, mt] = R(!1), $ = W();
|
|
2038
|
+
ht(() => {
|
|
2194
2039
|
if (u.current)
|
|
2195
|
-
return
|
|
2196
|
-
u.current && (f(void 0, !0),
|
|
2040
|
+
return At.current ? (at.current && window.clearTimeout(at.current), at.current = window.setTimeout(() => {
|
|
2041
|
+
u.current && (f(void 0, !0), At.current = !1);
|
|
2197
2042
|
}, 0)) : f(), () => {
|
|
2198
|
-
|
|
2043
|
+
at.current && window.clearTimeout(at.current);
|
|
2199
2044
|
};
|
|
2200
|
-
}, [f,
|
|
2201
|
-
|
|
2202
|
-
}, 200)),
|
|
2203
|
-
|
|
2045
|
+
}, [f, P, k]), I(() => (Z.current !== void 0 && d !== Z.current && d > 0 && Z.current > 0 && Math.abs(d - Z.current) > 0.5 && (mt(!0), $.current && window.clearTimeout($.current), $.current = window.setTimeout(() => {
|
|
2046
|
+
mt(!1), $.current = void 0;
|
|
2047
|
+
}, 200)), Z.current = d, () => {
|
|
2048
|
+
$.current && window.clearTimeout($.current);
|
|
2204
2049
|
}), [d]);
|
|
2205
|
-
const
|
|
2050
|
+
const Tt = () => {
|
|
2206
2051
|
c?.closeSession();
|
|
2207
|
-
},
|
|
2208
|
-
}).with({ view: "start" }, () =>
|
|
2209
|
-
|
|
2210
|
-
}),
|
|
2211
|
-
|
|
2052
|
+
}, b = Q({ view: n, status: s }).with({ view: "start", status: it.STANDBY }, () => {
|
|
2053
|
+
}).with({ view: "start" }, () => Tt).with({ view: "settings" }, () => () => r("start")).with({ view: "info" }, () => () => r("start")).otherwise(() => () => {
|
|
2054
|
+
Tt(), t();
|
|
2055
|
+
}), x = (A) => Q(A).with("start", () => /* @__PURE__ */ l(oo, { onSettings: L })).with("settings", () => /* @__PURE__ */ l(So, {})).with("info", () => /* @__PURE__ */ l(ao, {})).otherwise(() => /* @__PURE__ */ l(te, { state: A })), w = () => /* @__PURE__ */ h("div", { className: "modal-transition__container", children: [
|
|
2056
|
+
p && /* @__PURE__ */ l("div", { className: "modal-transition__layer modal-transition__layer--outgoing", children: x(p) }),
|
|
2212
2057
|
/* @__PURE__ */ l(
|
|
2213
2058
|
"div",
|
|
2214
2059
|
{
|
|
2215
|
-
className:
|
|
2060
|
+
className: dt(
|
|
2216
2061
|
"modal-transition__layer",
|
|
2217
|
-
|
|
2062
|
+
y && "modal-transition__layer--incoming"
|
|
2218
2063
|
),
|
|
2219
|
-
children:
|
|
2064
|
+
children: x(k)
|
|
2220
2065
|
}
|
|
2221
2066
|
)
|
|
2222
|
-
] }),
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2067
|
+
] }), _ = (A) => Q(A).with(it.STANDBY, () => w()).with(
|
|
2068
|
+
Fe.union(
|
|
2069
|
+
it.CREATING,
|
|
2070
|
+
it.CONNECTING,
|
|
2071
|
+
it.CONNECTED
|
|
2227
2072
|
),
|
|
2228
|
-
() => /* @__PURE__ */ l(
|
|
2229
|
-
).otherwise((
|
|
2230
|
-
|
|
2231
|
-
const
|
|
2073
|
+
() => /* @__PURE__ */ l(sr, { onClose: t, onCopy: e || St })
|
|
2074
|
+
).otherwise((K) => /* @__PURE__ */ l(te, { state: K || "unknown status" }));
|
|
2075
|
+
le("view", n);
|
|
2076
|
+
const N = {
|
|
2232
2077
|
background: "var(--lv-overlay-background, rgba(0,0,0,0.3))",
|
|
2233
2078
|
backdropFilter: "var(--lv-overlay-backdrop-filter, blur(4px))"
|
|
2234
|
-
},
|
|
2079
|
+
}, S = {
|
|
2235
2080
|
background: "var(--lv-body-background)",
|
|
2236
2081
|
color: "var(--lv-body-color, var(--lv-text-primary))",
|
|
2237
2082
|
borderRadius: "var(--lv-border-radius, 16px)",
|
|
@@ -2241,59 +2086,61 @@ const Qn = ({
|
|
|
2241
2086
|
"div",
|
|
2242
2087
|
{
|
|
2243
2088
|
className: "fixed inset-0 z-10000 flex animate-[bg-in_0.15s_ease-in-out] items-end justify-center font-sans md:items-center lg:p-4",
|
|
2244
|
-
onClick:
|
|
2089
|
+
onClick: t,
|
|
2245
2090
|
role: "presentation",
|
|
2246
2091
|
"data-openlv-modal-root": !0,
|
|
2247
|
-
|
|
2092
|
+
dir: vt ? "rtl" : "ltr",
|
|
2093
|
+
style: N,
|
|
2248
2094
|
children: /* @__PURE__ */ h(
|
|
2249
2095
|
"div",
|
|
2250
2096
|
{
|
|
2251
|
-
className:
|
|
2097
|
+
className: dt(
|
|
2252
2098
|
"relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out",
|
|
2253
|
-
|
|
2099
|
+
Et || g ? "overflow-hidden" : void 0
|
|
2254
2100
|
),
|
|
2255
2101
|
role: "dialog",
|
|
2256
2102
|
"aria-modal": "true",
|
|
2257
|
-
"aria-label":
|
|
2258
|
-
onClick: (
|
|
2103
|
+
"aria-label": D,
|
|
2104
|
+
onClick: (A) => A.stopPropagation(),
|
|
2259
2105
|
style: {
|
|
2260
2106
|
...typeof d == "number" && d > 0 ? { height: `${d}px` } : {},
|
|
2261
|
-
...
|
|
2107
|
+
...S
|
|
2262
2108
|
},
|
|
2263
2109
|
children: [
|
|
2264
2110
|
/* @__PURE__ */ h("div", { ref: u, children: [
|
|
2265
2111
|
/* @__PURE__ */ l(
|
|
2266
|
-
|
|
2112
|
+
go,
|
|
2267
2113
|
{
|
|
2268
|
-
title:
|
|
2269
|
-
view:
|
|
2270
|
-
onClose:
|
|
2271
|
-
onBack:
|
|
2114
|
+
title: D,
|
|
2115
|
+
view: n,
|
|
2116
|
+
onClose: t,
|
|
2117
|
+
onBack: b,
|
|
2118
|
+
setView: r
|
|
2272
2119
|
}
|
|
2273
2120
|
),
|
|
2274
2121
|
/* @__PURE__ */ h("div", { className: "modal-transition__container", children: [
|
|
2275
|
-
|
|
2122
|
+
g && /* @__PURE__ */ l("div", { className: "modal-transition__layer modal-transition__layer--outgoing absolute", children: /* @__PURE__ */ l("div", { className: "flex flex-col text-center", children: _(g) }) }),
|
|
2276
2123
|
/* @__PURE__ */ l(
|
|
2277
2124
|
"div",
|
|
2278
2125
|
{
|
|
2279
|
-
className:
|
|
2126
|
+
className: dt(
|
|
2280
2127
|
"modal-transition__layer",
|
|
2281
|
-
|
|
2128
|
+
B && "modal-transition__layer--incoming"
|
|
2282
2129
|
),
|
|
2283
|
-
children: /* @__PURE__ */ l("div", { className: "flex flex-col text-center", children:
|
|
2130
|
+
children: /* @__PURE__ */ l("div", { className: "flex flex-col text-center", children: _(P) })
|
|
2284
2131
|
}
|
|
2285
2132
|
)
|
|
2286
2133
|
] }),
|
|
2287
|
-
/* @__PURE__ */ l(
|
|
2134
|
+
/* @__PURE__ */ l(co, {})
|
|
2288
2135
|
] }),
|
|
2289
2136
|
/* @__PURE__ */ l(
|
|
2290
2137
|
"div",
|
|
2291
2138
|
{
|
|
2292
|
-
className:
|
|
2293
|
-
"absolute top-5
|
|
2294
|
-
o ? "translate-x-0 opacity-100" : "translate-x-full
|
|
2139
|
+
className: dt(
|
|
2140
|
+
"absolute top-5 rounded-lg bg-blue-500 px-4 py-3 font-medium text-sm text-white transition-all ltr:right-5 rtl:left-5",
|
|
2141
|
+
o ? "translate-x-0 opacity-100" : "opacity-0 ltr:translate-x-full rtl:-translate-x-full"
|
|
2295
2142
|
),
|
|
2296
|
-
children: "
|
|
2143
|
+
children: v("modal.urlCopied")
|
|
2297
2144
|
}
|
|
2298
2145
|
)
|
|
2299
2146
|
]
|
|
@@ -2301,38 +2148,64 @@ const Qn = ({
|
|
|
2301
2148
|
)
|
|
2302
2149
|
}
|
|
2303
2150
|
);
|
|
2304
|
-
}, fo = '@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.top-5{top:calc(var(--spacing)*5)}.top-full{top:100%}.right-5{right:calc(var(--spacing)*5)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-10000{z-index:10000}.mx-auto{margin-inline:auto}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-11{height:calc(var(--spacing)*11)}.h-18{height:calc(var(--spacing)*18)}.h-38{height:calc(var(--spacing)*38)}.h-\\[200px\\]{height:200px}.h-full{height:100%}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-48{width:calc(var(--spacing)*48)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.animate-\\[bg-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out bg-in}.animate-\\[fade-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out fade-in}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.-space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*-4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*-4)*calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-\\[var\\(--lv-button-primary-border\\)\\]{border-color:var(--lv-button-primary-border)}.border-\\[var\\(--lv-button-secondary-border\\,var\\(--lv-button-secondary-background\\)\\)\\]{border-color:var(--lv-button-secondary-border,var(--lv-button-secondary-background))}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-500{border-color:var(--color-gray-500)}.border-t-transparent{border-top-color:#0000}.bg-\\(--lv-button-secondary-background\\){background-color:var(--lv-button-secondary-background)}.bg-\\[var\\(--lv-button-primary-background\\)\\]{background-color:var(--lv-button-primary-background)}.bg-\\[var\\(--lv-button-secondary-background\\)\\]{background-color:var(--lv-button-secondary-background)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-1{padding-top:calc(var(--spacing)*1)}.pr-0\\.5{padding-right:calc(var(--spacing)*.5)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-1{padding-left:calc(var(--spacing)*1)}.text-center{text-align:center}.font-sans{font-family:var(--font-sans)}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.text-\\[var\\(--lv-button-primary-color\\)\\]{color:var(--lv-button-primary-color)}.text-\\[var\\(--lv-button-secondary-color\\)\\]{color:var(--lv-button-secondary-color)}.text-\\[var\\(--lv-text-muted\\)\\]{color:var(--lv-text-muted)}.text-\\[var\\(--lv-text-primary\\)\\]{color:var(--lv-text-primary)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[height\\]{transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media(hover:hover){.group-hover\\:block:is(:where(.group):hover *){display:block}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.first\\:border-l-0:first-child{border-left-style:var(--tw-border-style);border-left-width:0}@media(hover:hover){.hover\\:\\[background-color\\:var\\(--lv-button-tertiary-hoverBackground\\)\\]:hover{background-color:var(--lv-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-button-secondary-hoverBackground\\):hover{background-color:var(--lv-button-secondary-hoverBackground)}.hover\\:bg-\\[var\\(--lv-button-primary-background-hover\\)\\]:hover{background-color:var(--lv-button-primary-background-hover)}.hover\\:bg-\\[var\\(--lv-button-primary-hoverBackground\\,var\\(--lv-button-primary-background\\)\\)\\]:hover{background-color:var(--lv-button-primary-hoverBackground,var(--lv-button-primary-background))}.hover\\:bg-\\[var\\(--lv-button-secondary-background\\)\\]:hover{background-color:var(--lv-button-secondary-background)}.hover\\:bg-\\[var\\(--lv-button-secondary-hoverBackground\\,var\\(--lv-button-secondary-background\\)\\)\\]:hover{background-color:var(--lv-button-secondary-hoverBackground,var(--lv-button-secondary-background))}.hover\\:bg-\\[var\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\)\\]:hover{background-color:var(--lv-control-button-tertiary-hoverBackground,transparent)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:bg-\\(--lv-button-secondary-activeBackground\\):active{background-color:var(--lv-button-secondary-activeBackground)}.active\\:bg-\\[var\\(--lv-button-primary-activeBackground\\,var\\(--lv-button-primary-hoverBackground\\,var\\(--lv-button-primary-background\\)\\)\\)\\]:active{background-color:var(--lv-button-primary-activeBackground,var(--lv-button-primary-hoverBackground,var(--lv-button-primary-background)))}.active\\:bg-\\[var\\(--lv-button-secondary-activeBackground\\,var\\(--lv-button-secondary-hoverBackground\\,var\\(--lv-button-secondary-background\\)\\)\\)\\]:active{background-color:var(--lv-button-secondary-activeBackground,var(--lv-button-secondary-hoverBackground,var(--lv-button-secondary-background)))}.active\\:bg-\\[var\\(--lv-control-button-tertiary-activeBackground\\,var\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\)\\)\\]:active{background-color:var(--lv-control-button-tertiary-activeBackground,var(--lv-control-button-tertiary-hoverBackground,transparent))}.disabled\\:bg-\\[var\\(--lv-button-primary-disabledBackground\\,var\\(--lv-button-primary-background\\)\\)\\]:disabled{background-color:var(--lv-button-primary-disabledBackground,var(--lv-button-primary-background))}.disabled\\:bg-\\[var\\(--lv-button-secondary-disabledBackground\\,var\\(--lv-button-secondary-background\\)\\)\\]:disabled{background-color:var(--lv-button-secondary-disabledBackground,var(--lv-button-secondary-background))}.disabled\\:text-\\[var\\(--lv-button-primary-disabledColor\\,var\\(--lv-button-primary-color\\)\\)\\]:disabled{color:var(--lv-button-primary-disabledColor,var(--lv-button-primary-color))}.disabled\\:text-\\[var\\(--lv-button-secondary-disabledColor\\,var\\(--lv-button-secondary-color\\)\\)\\]:disabled{color:var(--lv-button-secondary-disabledColor,var(--lv-button-secondary-color))}.disabled\\:text-\\[var\\(--lv-control-button-tertiary-disabledColor\\,var\\(--lv-text-muted\\)\\)\\]:disabled{color:var(--lv-control-button-tertiary-disabledColor,var(--lv-text-muted))}@media(min-width:48rem){.md\\:items-center{align-items:center}}@media(min-width:64rem){.lg\\:p-4{padding:calc(var(--spacing)*4)}}}:root,:host{--color-body-background:var(--lv-body-background);--radius-radius:var(--lv-border-radius)}.border{border-style:solid}@keyframes fade-in{0%{transform:translateY(-2px)scale(.95)}to{transform:translateY(0)scale(1)}}@keyframes bg-in{0%{opacity:0;-webkit-backdrop-filter:blur();backdrop-filter:blur()}to{opacity:1;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}}.modal-transition__container{display:grid;position:relative}.modal-transition__layer{will-change:transform,opacity;grid-area:1/1;width:100%}.modal-transition__layer--outgoing{z-index:2;animation:.2s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{animation:.2s ease-out forwards modal-transition-in}[data-openlv-mode=dark] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}@keyframes modal-transition-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes modal-transition-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.05)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}', po = async (e, t) => {
|
|
2305
|
-
if (
|
|
2306
|
-
if (
|
|
2151
|
+
}, Ro = async (t) => {
|
|
2152
|
+
if (typeof t == "string") {
|
|
2153
|
+
if (t === "simple")
|
|
2154
|
+
return await import("./simple-9RmOY_8k.js").then((e) => e.simpleTheme);
|
|
2155
|
+
if (t === "openlv")
|
|
2156
|
+
return await import("./openlv-CH8lb3Oi.js").then((e) => e.openlvTheme);
|
|
2157
|
+
throw new Error(`Unknown theme: ${t}`);
|
|
2158
|
+
}
|
|
2159
|
+
return t;
|
|
2160
|
+
};
|
|
2161
|
+
function oe(t) {
|
|
2162
|
+
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
2163
|
+
}
|
|
2164
|
+
const an = (t, e = [], n = {}) => {
|
|
2165
|
+
for (const [r, o] of Object.entries(t)) {
|
|
2166
|
+
const a = [...e, r];
|
|
2167
|
+
oe(o) ? an(o, a, n) : n[`--lv-${a.join("-")}`] = o;
|
|
2168
|
+
}
|
|
2169
|
+
return n;
|
|
2170
|
+
}, Do = (t) => t === "system" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : t, sn = (t, e) => {
|
|
2171
|
+
const n = { ...t };
|
|
2172
|
+
for (const r of Object.keys(e)) {
|
|
2173
|
+
const o = t[r], a = e[r];
|
|
2174
|
+
n[r] = oe(o) && oe(a) ? sn(o, a) : a;
|
|
2175
|
+
}
|
|
2176
|
+
return n;
|
|
2177
|
+
}, Po = async (t) => {
|
|
2178
|
+
const e = await Ro(t.theme), n = Do(t.mode), r = e[n];
|
|
2179
|
+
if (!r) return "";
|
|
2180
|
+
const o = e.common ? sn(e.common, r) : r, a = an(o);
|
|
2181
|
+
return Object.entries(a).map(([i, s]) => `${i}: ${s};`).join(`
|
|
2182
|
+
`);
|
|
2183
|
+
}, Bo = `@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.top-5{top:calc(var(--spacing)*5)}.top-full{top:100%}.bottom-0{bottom:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-10000{z-index:10000}.mx-auto{margin-inline:auto}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-11{height:calc(var(--spacing)*11)}.h-18{height:calc(var(--spacing)*18)}.h-38{height:calc(var(--spacing)*38)}.h-\\[200px\\]{height:200px}.h-full{height:100%}.min-h-32{min-height:calc(var(--spacing)*32)}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-48{width:calc(var(--spacing)*48)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.animate-\\[bg-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out bg-in}.animate-\\[fade-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out fade-in}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.appearance-none{appearance:none}.flex-col{flex-direction:column}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.-space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*-4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*-4)*calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-\\(--lv-control-button-primary-border\\){border-color:var(--lv-control-button-primary-border)}.border-\\(--lv-control-button-secondary-border\\){border-color:var(--lv-control-button-secondary-border)}.border-\\(--lv-control-button-secondary-border\\,var\\(--lv-control-button-secondary-background\\)\\){border-color:var(--lv-control-button-secondary-border,var(--lv-control-button-secondary-background))}.border-\\(--lv-control-input-border\\){border-color:var(--lv-control-input-border)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-500{border-color:var(--color-gray-500)}.border-t-transparent{border-top-color:#0000}.bg-\\(--lv-body-background\\){background-color:var(--lv-body-background)}.bg-\\(--lv-card-background\\){background-color:var(--lv-card-background)}.bg-\\(--lv-control-button-primary-background\\){background-color:var(--lv-control-button-primary-background)}.bg-\\(--lv-control-button-secondary-background\\){background-color:var(--lv-control-button-secondary-background)}.bg-\\(--lv-qr-background\\){background-color:var(--lv-qr-background)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-\\[url\\(\\'data\\:image\\/svg\\+xml\\;charset\\=US-ASCII\\,\\%3Csvg\\%20xmlns\\%3D\\%22http\\%3A\\%2F\\%2Fwww\\.w3\\.org\\%2F2000\\%2Fsvg\\%22\\%20width\\%3D\\%2214\\%22\\%20height\\%3D\\%2214\\%22\\%20viewBox\\%3D\\%220\\%200\\%2024\\%2024\\%22\\%20fill\\%3D\\%22none\\%22\\%20stroke\\%3D\\%22\\%23888\\%22\\%20stroke-width\\%3D\\%222\\%22\\%3E\\%3Cpath\\%20d\\%3D\\%22M6\\%209l6\\%206\\%206-6\\%22\\%2F\\%3E\\%3C\\%2Fsvg\\%3E\\'\\)\\]{background-image:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23888%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E)}.bg-\\[length\\:14px\\]{background-size:14px}.bg-\\[right_8px_center\\]{background-position:right 8px center}.bg-no-repeat{background-repeat:no-repeat}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-1{padding-top:calc(var(--spacing)*1)}.pr-0\\.5{padding-right:calc(var(--spacing)*.5)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-2{padding-left:calc(var(--spacing)*2)}.text-center{text-align:center}.font-sans{font-family:var(--font-sans)}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.text-\\(--lv-control-button-primary-color\\){color:var(--lv-control-button-primary-color)}.text-\\(--lv-control-button-secondary-color\\){color:var(--lv-control-button-secondary-color)}.text-\\(--lv-qr-color\\){color:var(--lv-qr-color)}.text-\\(--lv-text-muted\\){color:var(--lv-text-muted)}.text-\\(--lv-text-primary\\){color:var(--lv-text-primary)}.text-\\(--lv-text-secondary\\){color:var(--lv-text-secondary)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[height\\]{transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media(hover:hover){.group-hover\\:block:is(:where(.group):hover *){display:block}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.first\\:border-l-0:first-child{border-left-style:var(--tw-border-style);border-left-width:0}@media(hover:hover){.hover\\:\\[background-color\\:var\\(--lv-control-button-tertiary-hoverBackground\\)\\]:hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-control-button-primary-background-hover\\):hover{background-color:var(--lv-control-button-primary-background-hover)}.hover\\:bg-\\(--lv-control-button-primary-hoverBackground\\,var\\(--lv-control-button-primary-background\\)\\):hover{background-color:var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background))}.hover\\:bg-\\(--lv-control-button-secondary-background\\):hover{background-color:var(--lv-control-button-secondary-background)}.hover\\:bg-\\(--lv-control-button-secondary-hoverBackground\\):hover{background-color:var(--lv-control-button-secondary-hoverBackground)}.hover\\:bg-\\(--lv-control-button-secondary-hoverBackground\\,var\\(--lv-control-button-secondary-background\\)\\):hover{background-color:var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background))}.hover\\:bg-\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\):hover{background-color:var(--lv-control-button-tertiary-hoverBackground,transparent)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\(--lv-control-button-primary-background\\):focus{--tw-ring-color:var(--lv-control-button-primary-background)}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:bg-\\(--lv-control-button-primary-activeBackground\\,var\\(--lv-control-button-primary-hoverBackground\\,var\\(--lv-control-button-primary-background\\)\\)\\):active{background-color:var(--lv-control-button-primary-activeBackground,var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background)))}.active\\:bg-\\(--lv-control-button-secondary-activeBackground\\):active{background-color:var(--lv-control-button-secondary-activeBackground)}.active\\:bg-\\(--lv-control-button-secondary-activeBackground\\,var\\(--lv-control-button-secondary-hoverBackground\\,var\\(--lv-control-button-secondary-background\\)\\)\\):active{background-color:var(--lv-control-button-secondary-activeBackground,var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background)))}.active\\:bg-\\(--lv-control-button-tertiary-activeBackground\\,var\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\)\\):active{background-color:var(--lv-control-button-tertiary-activeBackground,var(--lv-control-button-tertiary-hoverBackground,transparent))}.disabled\\:bg-\\(--lv-control-button-primary-disabledBackground\\,var\\(--lv-control-button-primary-background\\)\\):disabled{background-color:var(--lv-control-button-primary-disabledBackground,var(--lv-control-button-primary-background))}.disabled\\:bg-\\(--lv-control-button-secondary-disabledBackground\\,var\\(--lv-control-button-secondary-background\\)\\):disabled{background-color:var(--lv-control-button-secondary-disabledBackground,var(--lv-control-button-secondary-background))}.disabled\\:text-\\(--lv-control-button-primary-disabledColor\\,var\\(--lv-control-button-primary-color\\)\\):disabled{color:var(--lv-control-button-primary-disabledColor,var(--lv-control-button-primary-color))}.disabled\\:text-\\(--lv-control-button-secondary-disabledColor\\,var\\(--lv-control-button-secondary-color\\)\\):disabled{color:var(--lv-control-button-secondary-disabledColor,var(--lv-control-button-secondary-color))}.disabled\\:text-\\(--lv-control-button-tertiary-disabledColor\\,var\\(--lv-text-muted\\)\\):disabled{color:var(--lv-control-button-tertiary-disabledColor,var(--lv-text-muted))}@media(min-width:48rem){.md\\:items-center{align-items:center}}@media(min-width:64rem){.lg\\:p-4{padding:calc(var(--spacing)*4)}}.ltr\\:right-5:where(:dir(ltr),[dir=ltr],[dir=ltr] *){right:calc(var(--spacing)*5)}.ltr\\:-ml-1:where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-left:calc(var(--spacing)*-1)}.ltr\\:translate-x-full:where(:dir(ltr),[dir=ltr],[dir=ltr] *){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.ltr\\:rounded-l-none:where(:dir(ltr),[dir=ltr],[dir=ltr] *){border-top-left-radius:0;border-bottom-left-radius:0}.rtl\\:left-5:where(:dir(rtl),[dir=rtl],[dir=rtl] *){left:calc(var(--spacing)*5)}.rtl\\:-mr-1:where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-right:calc(var(--spacing)*-1)}.rtl\\:-translate-x-full:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.rtl\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *){rotate:180deg}.rtl\\:rounded-r-none:where(:dir(rtl),[dir=rtl],[dir=rtl] *){border-top-right-radius:0;border-bottom-right-radius:0}}:root,:host{--color-body-background:var(--lv-body-background);--radius-radius:var(--lv-border-radius)}.border{border-style:solid}@keyframes fade-in{0%{transform:translateY(-2px)scale(.95)}to{transform:translateY(0)scale(1)}}@keyframes bg-in{0%{opacity:0;-webkit-backdrop-filter:blur();backdrop-filter:blur()}to{opacity:1;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}}.modal-transition__container{display:grid;position:relative}.modal-transition__layer{will-change:transform,opacity;grid-area:1/1;width:100%}.modal-transition__layer--outgoing{z-index:2;animation:.2s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{animation:.2s ease-out forwards modal-transition-in}[data-openlv-mode=dark] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}@keyframes modal-transition-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes modal-transition-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.05)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}`, Lo = async (t, e) => {
|
|
2184
|
+
if (t) {
|
|
2185
|
+
if (t.querySelector("style[data-openlv-modal]"))
|
|
2307
2186
|
return;
|
|
2308
|
-
const
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
`)
|
|
2315
|
-
}`;
|
|
2316
|
-
n.textContent = `${i}
|
|
2317
|
-
${fo}`, e.appendChild(n);
|
|
2187
|
+
const r = document.createElement("style");
|
|
2188
|
+
r.setAttribute("data-openlv-modal", "true");
|
|
2189
|
+
let o = Bo;
|
|
2190
|
+
e && (o = `:root, :host {
|
|
2191
|
+
${await Po(e)}
|
|
2192
|
+
}
|
|
2193
|
+
` + o), r.textContent = o, t.appendChild(r);
|
|
2318
2194
|
}
|
|
2319
2195
|
};
|
|
2320
|
-
class
|
|
2321
|
-
constructor(
|
|
2322
|
-
}) {
|
|
2196
|
+
class ln extends HTMLElement {
|
|
2197
|
+
constructor(n) {
|
|
2323
2198
|
super();
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
ce(this, "renderRequested", !1);
|
|
2329
|
-
this.provider = r, this.theme = n, this.onClose = o, this.shadow = this.attachShadow({ mode: "open" }), po(this.shadow, this.theme);
|
|
2199
|
+
Rt(this, "shadow");
|
|
2200
|
+
Rt(this, "renderRequested", !1);
|
|
2201
|
+
Rt(this, "parameters");
|
|
2202
|
+
this.parameters = n, this.shadow = this.attachShadow({ mode: "open" }), Lo(this.shadow, this.parameters.theme);
|
|
2330
2203
|
}
|
|
2331
2204
|
connectedCallback() {
|
|
2332
2205
|
this.requestRender();
|
|
2333
2206
|
}
|
|
2334
2207
|
disconnectedCallback() {
|
|
2335
|
-
|
|
2208
|
+
pt(null, this.shadow);
|
|
2336
2209
|
}
|
|
2337
2210
|
showModal() {
|
|
2338
2211
|
this.style.display = "block";
|
|
@@ -2346,70 +2219,63 @@ class rr extends HTMLElement {
|
|
|
2346
2219
|
}));
|
|
2347
2220
|
}
|
|
2348
2221
|
performRender() {
|
|
2349
|
-
|
|
2350
|
-
lr(Ir, {
|
|
2351
|
-
onClose: this.onClose ?? (() => this.remove()),
|
|
2352
|
-
provider: this.provider,
|
|
2353
|
-
theme: this.theme
|
|
2354
|
-
}),
|
|
2355
|
-
this.shadow
|
|
2356
|
-
);
|
|
2222
|
+
pt(pn($n, this.parameters), this.shadow);
|
|
2357
2223
|
}
|
|
2358
2224
|
}
|
|
2359
|
-
const
|
|
2360
|
-
const [
|
|
2361
|
-
state:
|
|
2362
|
-
}),
|
|
2225
|
+
const Go = (t = "idle") => {
|
|
2226
|
+
const [e, n] = R({
|
|
2227
|
+
state: t
|
|
2228
|
+
}), r = U(
|
|
2363
2229
|
(i, s) => {
|
|
2364
|
-
|
|
2230
|
+
n((c) => ({
|
|
2365
2231
|
...c,
|
|
2366
2232
|
state: i,
|
|
2367
2233
|
...s
|
|
2368
2234
|
}));
|
|
2369
2235
|
},
|
|
2370
2236
|
[]
|
|
2371
|
-
), o =
|
|
2372
|
-
|
|
2373
|
-
}, []), a =
|
|
2374
|
-
|
|
2237
|
+
), o = U((i) => {
|
|
2238
|
+
n(i);
|
|
2239
|
+
}, []), a = U(() => {
|
|
2240
|
+
n({ state: "idle" });
|
|
2375
2241
|
}, []);
|
|
2376
2242
|
return {
|
|
2377
|
-
connectionInfo:
|
|
2378
|
-
updateState:
|
|
2243
|
+
connectionInfo: e,
|
|
2244
|
+
updateState: r,
|
|
2379
2245
|
updateConnectionInfo: o,
|
|
2380
2246
|
reset: a
|
|
2381
2247
|
};
|
|
2382
|
-
},
|
|
2248
|
+
}, Io = (t = "openlv-modal") => {
|
|
2383
2249
|
if (typeof window > "u")
|
|
2384
|
-
return
|
|
2385
|
-
const
|
|
2386
|
-
return
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
),
|
|
2250
|
+
return t;
|
|
2251
|
+
const e = window.customElements;
|
|
2252
|
+
return e ? (e.get(t) || e.define(
|
|
2253
|
+
t,
|
|
2254
|
+
ln
|
|
2255
|
+
), t) : (console.warn(
|
|
2390
2256
|
"OpenLV modal: custom elements are not supported in this environment."
|
|
2391
|
-
),
|
|
2392
|
-
},
|
|
2393
|
-
const
|
|
2394
|
-
if (
|
|
2395
|
-
|
|
2396
|
-
const
|
|
2397
|
-
|
|
2257
|
+
), t);
|
|
2258
|
+
}, Wo = (t) => {
|
|
2259
|
+
const e = document.querySelector("openlv-modal");
|
|
2260
|
+
if (e && e.remove(), !e) {
|
|
2261
|
+
Io();
|
|
2262
|
+
const n = new ln({
|
|
2263
|
+
onClose() {
|
|
2264
|
+
le("modal closed"), n.remove(), t.onClose?.();
|
|
2265
|
+
},
|
|
2266
|
+
provider: t.provider,
|
|
2267
|
+
theme: t.theme
|
|
2398
2268
|
});
|
|
2399
|
-
document.body.appendChild(
|
|
2269
|
+
document.body.appendChild(n), n.showModal();
|
|
2400
2270
|
}
|
|
2401
2271
|
};
|
|
2402
2272
|
export {
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
vo as registerOpenLVModal,
|
|
2411
|
-
It as resolveTheme,
|
|
2412
|
-
xo as triggerOpenModal,
|
|
2413
|
-
wo as useConnectionState
|
|
2273
|
+
Oo as ModalRoot,
|
|
2274
|
+
so as OPENLV_ICON_128,
|
|
2275
|
+
ln as OpenLVModalElement,
|
|
2276
|
+
ln as default,
|
|
2277
|
+
Io as registerOpenLVModal,
|
|
2278
|
+
Wo as triggerOpenModal,
|
|
2279
|
+
Go as useConnectionState
|
|
2414
2280
|
};
|
|
2415
2281
|
//# sourceMappingURL=index.es.js.map
|