@openlv/modal 0.0.1-beta.10 → 0.0.1-beta.11
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/components/Header.d.ts +3 -4
- package/dist/components/ModalRoot.d.ts +4 -3
- package/dist/components/UnknownState.d.ts +2 -3
- package/dist/components/footer/Footer.d.ts +1 -1
- package/dist/components/footer/StatusIndicator.d.ts +1 -1
- package/dist/components/settings/a11y/index.d.ts +1 -1
- package/dist/components/settings/a11y/theme.d.ts +1 -2
- package/dist/components/settings/connection/index.d.ts +2 -2
- package/dist/components/settings/connection/signaling.d.ts +1 -1
- package/dist/components/settings/connection/transport.d.ts +2 -1
- package/dist/components/settings/index.d.ts +4 -3
- package/dist/context.d.ts +6 -6
- package/dist/element.d.ts +2 -2
- package/dist/flow/ConnectionFlow.d.ts +1 -1
- package/dist/flow/HandshakeOpen.d.ts +1 -4
- package/dist/flow/InfoScreen.d.ts +1 -1
- package/dist/flow/connecting.d.ts +1 -0
- package/dist/flow/disconnected/ConnectionGraphic.d.ts +1 -1
- package/dist/flow/disconnected/Disconnected.d.ts +2 -3
- package/dist/hooks/useConnectionState.d.ts +1 -1
- package/dist/hooks/useNavigationStack.d.ts +6 -5
- package/dist/hooks/usePunchTransition.d.ts +5 -4
- package/dist/hooks/useSession.d.ts +4 -4
- package/dist/hooks/useSettings.d.ts +14 -17
- package/dist/hooks/useTheme.d.ts +4 -0
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.es.js +2012 -2164
- package/dist/index.es.js.map +1 -1
- package/dist/modal.css +1 -1
- package/dist/theme/types.d.ts +1 -2
- package/dist/ui/Button.d.ts +12 -9
- package/dist/ui/InfoTooltip.d.ts +2 -2
- package/dist/ui/Input.d.ts +3 -3
- package/dist/ui/Select.d.ts +1 -2
- package/dist/ui/Toggle.d.ts +3 -3
- package/dist/ui/TransitionContainer.d.ts +5 -5
- package/dist/ui/menu/MenuGroup.d.ts +5 -5
- package/dist/ui/menu/MenuItem.d.ts +4 -4
- package/dist/ui/menu/MenuLink.d.ts +4 -4
- package/dist/utils/i18n.d.ts +8 -12
- package/package.json +13 -12
- package/dist/hooks/useEventEmitter.d.ts +0 -2
- package/dist/hooks/useProvider.d.ts +0 -5
- package/dist/hooks/useThemeConfig.d.ts +0 -8
- package/dist/types/connection.d.ts +0 -13
package/dist/index.es.js
CHANGED
|
@@ -1,372 +1,371 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const Cr = 1, Nr = (t) => {
|
|
1
|
+
var rr = Object.defineProperty;
|
|
2
|
+
var nr = (t, e, n) => e in t ? rr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var wt = (t, e, n) => nr(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { render as or, createComponent as l, mergeProps as W, memo as pt, template as b, insert as g, effect as rt, setAttribute as et, delegateEvents as ft, addEventListener as ne, spread as Qt, Dynamic as ar, className as H, style as be, use as ir } from "solid-js/web";
|
|
5
|
+
import { useContext as Me, createContext as Pe, createSignal as O, createEffect as J, onCleanup as X, createMemo as K, onMount as oe, Show as bt, Switch as Ve, Match as vt, splitProps as ae, For as ct, mergeProps as je } from "solid-js";
|
|
6
|
+
import * as sr from "qrcode-generator";
|
|
7
|
+
const lr = 1, cr = (t) => {
|
|
9
8
|
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}@${
|
|
9
|
+
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}@${lr}?${e.toString()}`;
|
|
11
10
|
};
|
|
12
|
-
function
|
|
11
|
+
function dr(t) {
|
|
13
12
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
14
13
|
}
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
return
|
|
18
|
-
var e = Object.prototype.hasOwnProperty,
|
|
19
|
-
function
|
|
14
|
+
var Ht = { exports: {} }, me;
|
|
15
|
+
function ur() {
|
|
16
|
+
return me || (me = 1, (function(t) {
|
|
17
|
+
var e = Object.prototype.hasOwnProperty, n = "~";
|
|
18
|
+
function r() {
|
|
20
19
|
}
|
|
21
|
-
Object.create && (
|
|
22
|
-
function o(c,
|
|
23
|
-
this.fn = c, this.context =
|
|
20
|
+
Object.create && (r.prototype = /* @__PURE__ */ Object.create(null), new r().__proto__ || (n = !1));
|
|
21
|
+
function o(c, d, u) {
|
|
22
|
+
this.fn = c, this.context = d, this.once = u || !1;
|
|
24
23
|
}
|
|
25
|
-
function a(c,
|
|
26
|
-
if (typeof
|
|
24
|
+
function a(c, d, u, v, f) {
|
|
25
|
+
if (typeof u != "function")
|
|
27
26
|
throw new TypeError("The listener must be a function");
|
|
28
|
-
var
|
|
29
|
-
return c._events[
|
|
27
|
+
var h = new o(u, v || c, f), m = n ? n + d : d;
|
|
28
|
+
return c._events[m] ? c._events[m].fn ? c._events[m] = [c._events[m], h] : c._events[m].push(h) : (c._events[m] = h, c._eventsCount++), c;
|
|
30
29
|
}
|
|
31
|
-
function
|
|
32
|
-
--c._eventsCount === 0 ? c._events = new
|
|
30
|
+
function s(c, d) {
|
|
31
|
+
--c._eventsCount === 0 ? c._events = new r() : delete c._events[d];
|
|
33
32
|
}
|
|
34
|
-
function
|
|
35
|
-
this._events = new
|
|
33
|
+
function i() {
|
|
34
|
+
this._events = new r(), this._eventsCount = 0;
|
|
36
35
|
}
|
|
37
|
-
|
|
38
|
-
var
|
|
39
|
-
if (this._eventsCount === 0) return
|
|
40
|
-
for (
|
|
41
|
-
e.call(
|
|
42
|
-
return Object.getOwnPropertySymbols ?
|
|
43
|
-
},
|
|
44
|
-
var
|
|
45
|
-
if (!
|
|
46
|
-
if (
|
|
47
|
-
for (var
|
|
48
|
-
|
|
49
|
-
return
|
|
50
|
-
},
|
|
51
|
-
var
|
|
52
|
-
return
|
|
53
|
-
},
|
|
54
|
-
var
|
|
55
|
-
if (!this._events[
|
|
56
|
-
var
|
|
57
|
-
if (
|
|
58
|
-
switch (
|
|
36
|
+
i.prototype.eventNames = function() {
|
|
37
|
+
var d = [], u, v;
|
|
38
|
+
if (this._eventsCount === 0) return d;
|
|
39
|
+
for (v in u = this._events)
|
|
40
|
+
e.call(u, v) && d.push(n ? v.slice(1) : v);
|
|
41
|
+
return Object.getOwnPropertySymbols ? d.concat(Object.getOwnPropertySymbols(u)) : d;
|
|
42
|
+
}, i.prototype.listeners = function(d) {
|
|
43
|
+
var u = n ? n + d : d, v = this._events[u];
|
|
44
|
+
if (!v) return [];
|
|
45
|
+
if (v.fn) return [v.fn];
|
|
46
|
+
for (var f = 0, h = v.length, m = new Array(h); f < h; f++)
|
|
47
|
+
m[f] = v[f].fn;
|
|
48
|
+
return m;
|
|
49
|
+
}, i.prototype.listenerCount = function(d) {
|
|
50
|
+
var u = n ? n + d : d, v = this._events[u];
|
|
51
|
+
return v ? v.fn ? 1 : v.length : 0;
|
|
52
|
+
}, i.prototype.emit = function(d, u, v, f, h, m) {
|
|
53
|
+
var C = n ? n + d : d;
|
|
54
|
+
if (!this._events[C]) return !1;
|
|
55
|
+
var p = this._events[C], L = arguments.length, M, y;
|
|
56
|
+
if (p.fn) {
|
|
57
|
+
switch (p.once && this.removeListener(d, p.fn, void 0, !0), L) {
|
|
59
58
|
case 1:
|
|
60
|
-
return
|
|
59
|
+
return p.fn.call(p.context), !0;
|
|
61
60
|
case 2:
|
|
62
|
-
return
|
|
61
|
+
return p.fn.call(p.context, u), !0;
|
|
63
62
|
case 3:
|
|
64
|
-
return
|
|
63
|
+
return p.fn.call(p.context, u, v), !0;
|
|
65
64
|
case 4:
|
|
66
|
-
return
|
|
65
|
+
return p.fn.call(p.context, u, v, f), !0;
|
|
67
66
|
case 5:
|
|
68
|
-
return
|
|
67
|
+
return p.fn.call(p.context, u, v, f, h), !0;
|
|
69
68
|
case 6:
|
|
70
|
-
return
|
|
69
|
+
return p.fn.call(p.context, u, v, f, h, m), !0;
|
|
71
70
|
}
|
|
72
|
-
for (
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
for (y = 1, M = new Array(L - 1); y < L; y++)
|
|
72
|
+
M[y - 1] = arguments[y];
|
|
73
|
+
p.fn.apply(p.context, M);
|
|
75
74
|
} else {
|
|
76
|
-
var
|
|
77
|
-
for (
|
|
78
|
-
switch (
|
|
75
|
+
var St = p.length, P;
|
|
76
|
+
for (y = 0; y < St; y++)
|
|
77
|
+
switch (p[y].once && this.removeListener(d, p[y].fn, void 0, !0), L) {
|
|
79
78
|
case 1:
|
|
80
|
-
|
|
79
|
+
p[y].fn.call(p[y].context);
|
|
81
80
|
break;
|
|
82
81
|
case 2:
|
|
83
|
-
|
|
82
|
+
p[y].fn.call(p[y].context, u);
|
|
84
83
|
break;
|
|
85
84
|
case 3:
|
|
86
|
-
|
|
85
|
+
p[y].fn.call(p[y].context, u, v);
|
|
87
86
|
break;
|
|
88
87
|
case 4:
|
|
89
|
-
|
|
88
|
+
p[y].fn.call(p[y].context, u, v, f);
|
|
90
89
|
break;
|
|
91
90
|
default:
|
|
92
|
-
if (!
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
if (!M) for (P = 1, M = new Array(L - 1); P < L; P++)
|
|
92
|
+
M[P - 1] = arguments[P];
|
|
93
|
+
p[y].fn.apply(p[y].context, M);
|
|
95
94
|
}
|
|
96
95
|
}
|
|
97
96
|
return !0;
|
|
98
|
-
},
|
|
99
|
-
return a(this,
|
|
100
|
-
},
|
|
101
|
-
return a(this,
|
|
102
|
-
},
|
|
103
|
-
var
|
|
104
|
-
if (!this._events[
|
|
105
|
-
if (!
|
|
106
|
-
return
|
|
107
|
-
var
|
|
108
|
-
if (
|
|
109
|
-
|
|
97
|
+
}, i.prototype.on = function(d, u, v) {
|
|
98
|
+
return a(this, d, u, v, !1);
|
|
99
|
+
}, i.prototype.once = function(d, u, v) {
|
|
100
|
+
return a(this, d, u, v, !0);
|
|
101
|
+
}, i.prototype.removeListener = function(d, u, v, f) {
|
|
102
|
+
var h = n ? n + d : d;
|
|
103
|
+
if (!this._events[h]) return this;
|
|
104
|
+
if (!u)
|
|
105
|
+
return s(this, h), this;
|
|
106
|
+
var m = this._events[h];
|
|
107
|
+
if (m.fn)
|
|
108
|
+
m.fn === u && (!f || m.once) && (!v || m.context === v) && s(this, h);
|
|
110
109
|
else {
|
|
111
|
-
for (var
|
|
112
|
-
(
|
|
113
|
-
|
|
110
|
+
for (var C = 0, p = [], L = m.length; C < L; C++)
|
|
111
|
+
(m[C].fn !== u || f && !m[C].once || v && m[C].context !== v) && p.push(m[C]);
|
|
112
|
+
p.length ? this._events[h] = p.length === 1 ? p[0] : p : s(this, h);
|
|
114
113
|
}
|
|
115
114
|
return this;
|
|
116
|
-
},
|
|
117
|
-
var
|
|
118
|
-
return
|
|
119
|
-
},
|
|
120
|
-
})(
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const
|
|
124
|
-
if (
|
|
125
|
-
const
|
|
126
|
-
return o && a && Object.keys(a).forEach((
|
|
115
|
+
}, i.prototype.removeAllListeners = function(d) {
|
|
116
|
+
var u;
|
|
117
|
+
return d ? (u = n ? n + d : d, this._events[u] && s(this, u)) : (this._events = new r(), this._eventsCount = 0), this;
|
|
118
|
+
}, i.prototype.off = i.prototype.removeListener, i.prototype.addListener = i.prototype.on, i.prefixed = n, i.EventEmitter = i, t.exports = i;
|
|
119
|
+
})(Ht)), Ht.exports;
|
|
120
|
+
}
|
|
121
|
+
ur();
|
|
122
|
+
const z = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"), ze = /* @__PURE__ */ Symbol.for("@ts-pattern/isVariadic"), Ft = "@ts-pattern/anonymous-select-key", Jt = (t) => !!(t && typeof t == "object"), zt = (t) => t && !!t[z], R = (t, e, n) => {
|
|
123
|
+
if (zt(t)) {
|
|
124
|
+
const r = t[z](), { matched: o, selections: a } = r.match(e);
|
|
125
|
+
return o && a && Object.keys(a).forEach((s) => n(s, a[s])), o;
|
|
127
126
|
}
|
|
128
|
-
if (
|
|
129
|
-
if (!
|
|
127
|
+
if (Jt(t)) {
|
|
128
|
+
if (!Jt(e)) return !1;
|
|
130
129
|
if (Array.isArray(t)) {
|
|
131
130
|
if (!Array.isArray(e)) return !1;
|
|
132
|
-
let
|
|
133
|
-
for (const
|
|
134
|
-
const
|
|
135
|
-
|
|
131
|
+
let r = [], o = [], a = [];
|
|
132
|
+
for (const s of t.keys()) {
|
|
133
|
+
const i = t[s];
|
|
134
|
+
zt(i) && i[ze] ? a.push(i) : a.length ? o.push(i) : r.push(i);
|
|
136
135
|
}
|
|
137
136
|
if (a.length) {
|
|
138
137
|
if (a.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
139
|
-
if (e.length <
|
|
140
|
-
const
|
|
141
|
-
return
|
|
138
|
+
if (e.length < r.length + o.length) return !1;
|
|
139
|
+
const s = e.slice(0, r.length), i = o.length === 0 ? [] : e.slice(-o.length), c = e.slice(r.length, o.length === 0 ? 1 / 0 : -o.length);
|
|
140
|
+
return r.every((d, u) => R(d, s[u], n)) && o.every((d, u) => R(d, i[u], n)) && (a.length === 0 || R(a[0], c, n));
|
|
142
141
|
}
|
|
143
|
-
return t.length === e.length && t.every((
|
|
142
|
+
return t.length === e.length && t.every((s, i) => R(s, e[i], n));
|
|
144
143
|
}
|
|
145
|
-
return Reflect.ownKeys(t).every((
|
|
146
|
-
const o = t[
|
|
147
|
-
return (
|
|
144
|
+
return Reflect.ownKeys(t).every((r) => {
|
|
145
|
+
const o = t[r];
|
|
146
|
+
return (r in e || zt(a = o) && a[z]().matcherType === "optional") && R(o, e[r], n);
|
|
148
147
|
var a;
|
|
149
148
|
});
|
|
150
149
|
}
|
|
151
150
|
return Object.is(e, t);
|
|
152
|
-
},
|
|
153
|
-
var e,
|
|
154
|
-
return
|
|
155
|
-
},
|
|
156
|
-
function
|
|
151
|
+
}, j = (t) => {
|
|
152
|
+
var e, n, r;
|
|
153
|
+
return Jt(t) ? zt(t) ? (e = (n = (r = t[z]()).getSelectionKeys) == null ? void 0 : n.call(r)) != null ? e : [] : Array.isArray(t) ? Tt(t, j) : Tt(Object.values(t), j) : [];
|
|
154
|
+
}, Tt = (t, e) => t.reduce((n, r) => n.concat(e(r)), []);
|
|
155
|
+
function gr(...t) {
|
|
157
156
|
if (t.length === 1) {
|
|
158
157
|
const [e] = t;
|
|
159
|
-
return (
|
|
158
|
+
return (n) => R(e, n, () => {
|
|
160
159
|
});
|
|
161
160
|
}
|
|
162
161
|
if (t.length === 2) {
|
|
163
|
-
const [e,
|
|
164
|
-
return
|
|
162
|
+
const [e, n] = t;
|
|
163
|
+
return R(e, n, () => {
|
|
165
164
|
});
|
|
166
165
|
}
|
|
167
166
|
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`);
|
|
168
167
|
}
|
|
169
|
-
function
|
|
170
|
-
return Object.assign(t, { optional: () =>
|
|
168
|
+
function E(t) {
|
|
169
|
+
return Object.assign(t, { optional: () => ie(t), and: (e) => _(t, e), or: (e) => Fe(t, e), select: (e) => e === void 0 ? Nt(t) : Nt(e, t) });
|
|
171
170
|
}
|
|
172
|
-
function
|
|
171
|
+
function Xt(t) {
|
|
173
172
|
return Object.assign(((e) => Object.assign(e, { [Symbol.iterator]() {
|
|
174
|
-
let
|
|
175
|
-
const
|
|
173
|
+
let n = 0;
|
|
174
|
+
const r = [{ value: Object.assign(e, { [ze]: !0 }), done: !1 }, { done: !0, value: void 0 }];
|
|
176
175
|
return { next: () => {
|
|
177
176
|
var o;
|
|
178
|
-
return (o = n
|
|
177
|
+
return (o = r[n++]) != null ? o : r.at(-1);
|
|
179
178
|
} };
|
|
180
|
-
} }))(t), { optional: () =>
|
|
179
|
+
} }))(t), { optional: () => Xt(ie(t)), select: (e) => Xt(e === void 0 ? Nt(t) : Nt(e, t)) });
|
|
181
180
|
}
|
|
182
|
-
function
|
|
183
|
-
return
|
|
184
|
-
let
|
|
185
|
-
const
|
|
186
|
-
|
|
181
|
+
function ie(t) {
|
|
182
|
+
return E({ [z]: () => ({ match: (e) => {
|
|
183
|
+
let n = {};
|
|
184
|
+
const r = (o, a) => {
|
|
185
|
+
n[o] = a;
|
|
187
186
|
};
|
|
188
|
-
return e === void 0 ? (
|
|
189
|
-
}, getSelectionKeys: () =>
|
|
187
|
+
return e === void 0 ? (j(t).forEach((o) => r(o, void 0)), { matched: !0, selections: n }) : { matched: R(t, e, r), selections: n };
|
|
188
|
+
}, getSelectionKeys: () => j(t), matcherType: "optional" }) });
|
|
190
189
|
}
|
|
191
|
-
const
|
|
192
|
-
for (const
|
|
190
|
+
const vr = (t, e) => {
|
|
191
|
+
for (const n of t) if (!e(n)) return !1;
|
|
193
192
|
return !0;
|
|
194
|
-
},
|
|
195
|
-
for (const [
|
|
193
|
+
}, hr = (t, e) => {
|
|
194
|
+
for (const [n, r] of t.entries()) if (!e(r, n)) return !1;
|
|
196
195
|
return !0;
|
|
197
|
-
},
|
|
198
|
-
const
|
|
199
|
-
for (const
|
|
196
|
+
}, pr = (t, e) => {
|
|
197
|
+
const n = Reflect.ownKeys(t);
|
|
198
|
+
for (const r of n) if (!e(r, t[r])) return !1;
|
|
200
199
|
return !0;
|
|
201
200
|
};
|
|
202
|
-
function
|
|
203
|
-
return
|
|
204
|
-
let
|
|
205
|
-
const
|
|
206
|
-
|
|
201
|
+
function _(...t) {
|
|
202
|
+
return E({ [z]: () => ({ match: (e) => {
|
|
203
|
+
let n = {};
|
|
204
|
+
const r = (o, a) => {
|
|
205
|
+
n[o] = a;
|
|
207
206
|
};
|
|
208
|
-
return { matched: t.every((o) =>
|
|
209
|
-
}, getSelectionKeys: () =>
|
|
207
|
+
return { matched: t.every((o) => R(o, e, r)), selections: n };
|
|
208
|
+
}, getSelectionKeys: () => Tt(t, j), matcherType: "and" }) });
|
|
210
209
|
}
|
|
211
|
-
function
|
|
212
|
-
return
|
|
213
|
-
let
|
|
214
|
-
const
|
|
215
|
-
|
|
210
|
+
function Fe(...t) {
|
|
211
|
+
return E({ [z]: () => ({ match: (e) => {
|
|
212
|
+
let n = {};
|
|
213
|
+
const r = (o, a) => {
|
|
214
|
+
n[o] = a;
|
|
216
215
|
};
|
|
217
|
-
return
|
|
218
|
-
}, getSelectionKeys: () =>
|
|
219
|
-
}
|
|
220
|
-
function
|
|
221
|
-
return { [
|
|
222
|
-
}
|
|
223
|
-
function
|
|
224
|
-
const e = typeof t[0] == "string" ? t[0] : void 0,
|
|
225
|
-
return
|
|
226
|
-
let o = { [e ??
|
|
227
|
-
return { matched:
|
|
228
|
-
o[a] =
|
|
216
|
+
return Tt(t, j).forEach((o) => r(o, void 0)), { matched: t.some((o) => R(o, e, r)), selections: n };
|
|
217
|
+
}, getSelectionKeys: () => Tt(t, j), matcherType: "or" }) });
|
|
218
|
+
}
|
|
219
|
+
function w(t) {
|
|
220
|
+
return { [z]: () => ({ match: (e) => ({ matched: !!t(e) }) }) };
|
|
221
|
+
}
|
|
222
|
+
function Nt(...t) {
|
|
223
|
+
const e = typeof t[0] == "string" ? t[0] : void 0, n = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
224
|
+
return E({ [z]: () => ({ match: (r) => {
|
|
225
|
+
let o = { [e ?? Ft]: r };
|
|
226
|
+
return { matched: n === void 0 || R(n, r, (a, s) => {
|
|
227
|
+
o[a] = s;
|
|
229
228
|
}), selections: o };
|
|
230
|
-
}, getSelectionKeys: () => [e ??
|
|
229
|
+
}, getSelectionKeys: () => [e ?? Ft].concat(n === void 0 ? [] : j(n)) }) });
|
|
231
230
|
}
|
|
232
|
-
function
|
|
231
|
+
function De(t) {
|
|
233
232
|
return !0;
|
|
234
233
|
}
|
|
235
234
|
function Y(t) {
|
|
236
235
|
return typeof t == "number";
|
|
237
236
|
}
|
|
238
|
-
function
|
|
237
|
+
function ot(t) {
|
|
239
238
|
return typeof t == "string";
|
|
240
239
|
}
|
|
241
|
-
function
|
|
240
|
+
function at(t) {
|
|
242
241
|
return typeof t == "bigint";
|
|
243
242
|
}
|
|
244
|
-
const
|
|
245
|
-
return
|
|
246
|
-
var
|
|
243
|
+
const Ie = E(w(De)), fr = E(w(De)), br = Ie, it = (t) => Object.assign(E(t), { startsWith: (e) => {
|
|
244
|
+
return it(_(t, (n = e, w((r) => ot(r) && r.startsWith(n)))));
|
|
245
|
+
var n;
|
|
247
246
|
}, endsWith: (e) => {
|
|
248
|
-
return
|
|
249
|
-
var
|
|
250
|
-
}, minLength: (e) =>
|
|
251
|
-
return
|
|
252
|
-
var
|
|
247
|
+
return it(_(t, (n = e, w((r) => ot(r) && r.endsWith(n)))));
|
|
248
|
+
var n;
|
|
249
|
+
}, minLength: (e) => it(_(t, ((n) => w((r) => ot(r) && r.length >= n))(e))), length: (e) => it(_(t, ((n) => w((r) => ot(r) && r.length === n))(e))), maxLength: (e) => it(_(t, ((n) => w((r) => ot(r) && r.length <= n))(e))), includes: (e) => {
|
|
250
|
+
return it(_(t, (n = e, w((r) => ot(r) && r.includes(n)))));
|
|
251
|
+
var n;
|
|
253
252
|
}, regex: (e) => {
|
|
254
|
-
return
|
|
255
|
-
var
|
|
256
|
-
} }),
|
|
253
|
+
return it(_(t, (n = e, w((r) => ot(r) && !!r.match(n)))));
|
|
254
|
+
var n;
|
|
255
|
+
} }), ye = it(w(ot)), tt = (t) => Object.assign(E(t), { between: (e, n) => tt(_(t, ((r, o) => w((a) => Y(a) && r <= a && o >= a))(e, n))), lt: (e) => tt(_(t, ((n) => w((r) => Y(r) && r < n))(e))), gt: (e) => tt(_(t, ((n) => w((r) => Y(r) && r > n))(e))), lte: (e) => tt(_(t, ((n) => w((r) => Y(r) && r <= n))(e))), gte: (e) => tt(_(t, ((n) => w((r) => Y(r) && r >= n))(e))), int: () => tt(_(t, w((e) => Y(e) && Number.isInteger(e)))), finite: () => tt(_(t, w((e) => Y(e) && Number.isFinite(e)))), positive: () => tt(_(t, w((e) => Y(e) && e > 0))), negative: () => tt(_(t, w((e) => Y(e) && e < 0))) }), mr = tt(w(Y)), st = (t) => Object.assign(E(t), { between: (e, n) => st(_(t, ((r, o) => w((a) => at(a) && r <= a && o >= a))(e, n))), lt: (e) => st(_(t, ((n) => w((r) => at(r) && r < n))(e))), gt: (e) => st(_(t, ((n) => w((r) => at(r) && r > n))(e))), lte: (e) => st(_(t, ((n) => w((r) => at(r) && r <= n))(e))), gte: (e) => st(_(t, ((n) => w((r) => at(r) && r >= n))(e))), positive: () => st(_(t, w((e) => at(e) && e > 0))), negative: () => st(_(t, w((e) => at(e) && e < 0))) }), yr = st(w(at)), wr = E(w(function(t) {
|
|
257
256
|
return typeof t == "boolean";
|
|
258
|
-
})),
|
|
257
|
+
})), xr = E(w(function(t) {
|
|
259
258
|
return typeof t == "symbol";
|
|
260
|
-
})),
|
|
259
|
+
})), kr = E(w(function(t) {
|
|
261
260
|
return t == null;
|
|
262
|
-
})),
|
|
261
|
+
})), Cr = E(w(function(t) {
|
|
263
262
|
return t != null;
|
|
264
263
|
}));
|
|
265
|
-
var
|
|
266
|
-
return
|
|
264
|
+
var Sr = { __proto__: null, matcher: z, optional: ie, array: function(...t) {
|
|
265
|
+
return Xt({ [z]: () => ({ match: (e) => {
|
|
267
266
|
if (!Array.isArray(e)) return { matched: !1 };
|
|
268
267
|
if (t.length === 0) return { matched: !0 };
|
|
269
|
-
const
|
|
270
|
-
let
|
|
271
|
-
if (e.length === 0) return
|
|
272
|
-
|
|
273
|
-
}), { matched: !0, selections:
|
|
274
|
-
const o = (a,
|
|
275
|
-
|
|
268
|
+
const n = t[0];
|
|
269
|
+
let r = {};
|
|
270
|
+
if (e.length === 0) return j(n).forEach((a) => {
|
|
271
|
+
r[a] = [];
|
|
272
|
+
}), { matched: !0, selections: r };
|
|
273
|
+
const o = (a, s) => {
|
|
274
|
+
r[a] = (r[a] || []).concat([s]);
|
|
276
275
|
};
|
|
277
|
-
return { matched: e.every((a) =>
|
|
278
|
-
}, getSelectionKeys: () => t.length === 0 ? [] :
|
|
276
|
+
return { matched: e.every((a) => R(n, a, o)), selections: r };
|
|
277
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : j(t[0]) }) });
|
|
279
278
|
}, set: function(...t) {
|
|
280
|
-
return
|
|
279
|
+
return E({ [z]: () => ({ match: (e) => {
|
|
281
280
|
if (!(e instanceof Set)) return { matched: !1 };
|
|
282
|
-
let
|
|
283
|
-
if (e.size === 0) return { matched: !0, selections:
|
|
281
|
+
let n = {};
|
|
282
|
+
if (e.size === 0) return { matched: !0, selections: n };
|
|
284
283
|
if (t.length === 0) return { matched: !0 };
|
|
285
|
-
const
|
|
286
|
-
|
|
284
|
+
const r = (a, s) => {
|
|
285
|
+
n[a] = (n[a] || []).concat([s]);
|
|
287
286
|
}, o = t[0];
|
|
288
|
-
return { matched:
|
|
289
|
-
}, getSelectionKeys: () => t.length === 0 ? [] :
|
|
287
|
+
return { matched: vr(e, (a) => R(o, a, r)), selections: n };
|
|
288
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : j(t[0]) }) });
|
|
290
289
|
}, map: function(...t) {
|
|
291
|
-
return
|
|
290
|
+
return E({ [z]: () => ({ match: (e) => {
|
|
292
291
|
if (!(e instanceof Map)) return { matched: !1 };
|
|
293
|
-
let
|
|
294
|
-
if (e.size === 0) return { matched: !0, selections:
|
|
295
|
-
const
|
|
296
|
-
|
|
292
|
+
let n = {};
|
|
293
|
+
if (e.size === 0) return { matched: !0, selections: n };
|
|
294
|
+
const r = (i, c) => {
|
|
295
|
+
n[i] = (n[i] || []).concat([c]);
|
|
297
296
|
};
|
|
298
297
|
if (t.length === 0) return { matched: !0 };
|
|
299
298
|
var o;
|
|
300
299
|
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,
|
|
302
|
-
return { matched:
|
|
303
|
-
const
|
|
304
|
-
return
|
|
305
|
-
}), selections:
|
|
306
|
-
}, getSelectionKeys: () => t.length === 0 ? [] : [...
|
|
300
|
+
const [a, s] = t;
|
|
301
|
+
return { matched: hr(e, (i, c) => {
|
|
302
|
+
const d = R(a, c, r), u = R(s, i, r);
|
|
303
|
+
return d && u;
|
|
304
|
+
}), selections: n };
|
|
305
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : [...j(t[0]), ...j(t[1])] }) });
|
|
307
306
|
}, record: function(...t) {
|
|
308
|
-
return
|
|
307
|
+
return E({ [z]: () => ({ match: (e) => {
|
|
309
308
|
if (e === null || typeof e != "object" || Array.isArray(e)) return { matched: !1 };
|
|
310
|
-
var
|
|
311
|
-
if (t.length === 0) throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(
|
|
312
|
-
let
|
|
313
|
-
const o = (
|
|
314
|
-
|
|
315
|
-
}, [a,
|
|
316
|
-
return { matched:
|
|
317
|
-
const
|
|
318
|
-
return (
|
|
319
|
-
}), selections:
|
|
320
|
-
}, getSelectionKeys: () => t.length === 0 ? [] : [...
|
|
321
|
-
}, intersection:
|
|
322
|
-
return
|
|
309
|
+
var n;
|
|
310
|
+
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()}`);
|
|
311
|
+
let r = {};
|
|
312
|
+
const o = (i, c) => {
|
|
313
|
+
r[i] = (r[i] || []).concat([c]);
|
|
314
|
+
}, [a, s] = t.length === 1 ? [ye, t[0]] : t;
|
|
315
|
+
return { matched: pr(e, (i, c) => {
|
|
316
|
+
const d = typeof i != "string" || Number.isNaN(Number(i)) ? null : Number(i), u = d !== null && R(a, d, o), v = R(a, i, o), f = R(s, c, o);
|
|
317
|
+
return (v || u) && f;
|
|
318
|
+
}), selections: r };
|
|
319
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : [...j(t[0]), ...j(t[1])] }) });
|
|
320
|
+
}, intersection: _, union: Fe, not: function(t) {
|
|
321
|
+
return E({ [z]: () => ({ match: (e) => ({ matched: !R(t, e, () => {
|
|
323
322
|
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
324
|
-
}, when:
|
|
325
|
-
return
|
|
326
|
-
return (
|
|
323
|
+
}, when: w, select: Nt, any: Ie, unknown: fr, _: br, string: ye, number: mr, bigint: yr, boolean: wr, symbol: xr, nullish: kr, nonNullable: Cr, instanceOf: function(t) {
|
|
324
|
+
return E(w(/* @__PURE__ */ (function(e) {
|
|
325
|
+
return (n) => n instanceof e;
|
|
327
326
|
})(t)));
|
|
328
327
|
}, shape: function(t) {
|
|
329
|
-
return
|
|
328
|
+
return E(w(gr(t)));
|
|
330
329
|
} };
|
|
331
|
-
|
|
330
|
+
class Ar extends Error {
|
|
332
331
|
constructor(e) {
|
|
333
|
-
let
|
|
332
|
+
let n;
|
|
334
333
|
try {
|
|
335
|
-
|
|
334
|
+
n = JSON.stringify(e);
|
|
336
335
|
} catch {
|
|
337
|
-
|
|
336
|
+
n = e;
|
|
338
337
|
}
|
|
339
|
-
super(`Pattern matching error: no pattern matches value ${
|
|
338
|
+
super(`Pattern matching error: no pattern matches value ${n}`), this.input = void 0, this.input = e;
|
|
340
339
|
}
|
|
341
|
-
};
|
|
342
|
-
const te = { matched: !1, value: void 0 };
|
|
343
|
-
function $(t) {
|
|
344
|
-
return new Fr(t, te);
|
|
345
340
|
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
341
|
+
const Zt = { matched: !1, value: void 0 };
|
|
342
|
+
function ht(t) {
|
|
343
|
+
return new Dt(t, Zt);
|
|
344
|
+
}
|
|
345
|
+
class Dt {
|
|
346
|
+
constructor(e, n) {
|
|
347
|
+
this.input = void 0, this.state = void 0, this.input = e, this.state = n;
|
|
349
348
|
}
|
|
350
349
|
with(...e) {
|
|
351
350
|
if (this.state.matched) return this;
|
|
352
|
-
const
|
|
351
|
+
const n = e[e.length - 1], r = [e[0]];
|
|
353
352
|
let o;
|
|
354
|
-
e.length === 3 && typeof e[1] == "function" ? o = e[1] : e.length > 2 &&
|
|
355
|
-
let a = !1,
|
|
356
|
-
const
|
|
357
|
-
a = !0,
|
|
358
|
-
}, c = !
|
|
359
|
-
return new
|
|
353
|
+
e.length === 3 && typeof e[1] == "function" ? o = e[1] : e.length > 2 && r.push(...e.slice(1, e.length - 1));
|
|
354
|
+
let a = !1, s = {};
|
|
355
|
+
const i = (d, u) => {
|
|
356
|
+
a = !0, s[d] = u;
|
|
357
|
+
}, c = !r.some((d) => R(d, this.input, i)) || o && !o(this.input) ? Zt : { matched: !0, value: n(a ? Ft in s ? s[Ft] : s : this.input, this.input) };
|
|
358
|
+
return new Dt(this.input, c);
|
|
360
359
|
}
|
|
361
|
-
when(e,
|
|
360
|
+
when(e, n) {
|
|
362
361
|
if (this.state.matched) return this;
|
|
363
|
-
const
|
|
364
|
-
return new
|
|
362
|
+
const r = !!e(this.input);
|
|
363
|
+
return new Dt(this.input, r ? { matched: !0, value: n(this.input, this.input) } : Zt);
|
|
365
364
|
}
|
|
366
365
|
otherwise(e) {
|
|
367
366
|
return this.state.matched ? this.state.value : e(this.input);
|
|
368
367
|
}
|
|
369
|
-
exhaustive(e =
|
|
368
|
+
exhaustive(e = $r) {
|
|
370
369
|
return this.state.matched ? this.state.value : e(this.input);
|
|
371
370
|
}
|
|
372
371
|
run() {
|
|
@@ -378,67 +377,58 @@ let Fr = class ee {
|
|
|
378
377
|
narrow() {
|
|
379
378
|
return this;
|
|
380
379
|
}
|
|
381
|
-
};
|
|
382
|
-
function zr(t) {
|
|
383
|
-
throw new Mr(t);
|
|
384
380
|
}
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
HANDSHAKE: "handshake",
|
|
390
|
-
HANDSHAKE_PARTIAL: "handshake-partial",
|
|
391
|
-
ENCRYPTED: "encrypted"
|
|
392
|
-
}, pt = {
|
|
381
|
+
function $r(t) {
|
|
382
|
+
throw new Ar(t);
|
|
383
|
+
}
|
|
384
|
+
const jt = {
|
|
393
385
|
CREATED: "created",
|
|
394
386
|
SIGNALING: "signaling",
|
|
395
387
|
READY: "ready",
|
|
396
|
-
LINKING: "linking"
|
|
397
|
-
|
|
398
|
-
DISCONNECTED: "disconnected"
|
|
399
|
-
}, ct = {
|
|
388
|
+
LINKING: "linking"
|
|
389
|
+
}, Q = {
|
|
400
390
|
STANDBY: "standby",
|
|
401
391
|
CREATING: "creating",
|
|
402
392
|
CONNECTING: "connecting",
|
|
403
393
|
CONNECTED: "connected",
|
|
404
394
|
ERROR: "error"
|
|
405
395
|
};
|
|
406
|
-
var
|
|
407
|
-
var
|
|
408
|
-
function
|
|
409
|
-
return
|
|
396
|
+
var qt = { exports: {} };
|
|
397
|
+
var we;
|
|
398
|
+
function _r() {
|
|
399
|
+
return we || (we = 1, (function(t) {
|
|
410
400
|
(function() {
|
|
411
401
|
var e = {}.hasOwnProperty;
|
|
412
|
-
function
|
|
413
|
-
for (var a = "",
|
|
414
|
-
var
|
|
415
|
-
|
|
402
|
+
function n() {
|
|
403
|
+
for (var a = "", s = 0; s < arguments.length; s++) {
|
|
404
|
+
var i = arguments[s];
|
|
405
|
+
i && (a = o(a, r(i)));
|
|
416
406
|
}
|
|
417
407
|
return a;
|
|
418
408
|
}
|
|
419
|
-
function
|
|
409
|
+
function r(a) {
|
|
420
410
|
if (typeof a == "string" || typeof a == "number")
|
|
421
411
|
return a;
|
|
422
412
|
if (typeof a != "object")
|
|
423
413
|
return "";
|
|
424
414
|
if (Array.isArray(a))
|
|
425
|
-
return
|
|
415
|
+
return n.apply(null, a);
|
|
426
416
|
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
|
|
427
417
|
return a.toString();
|
|
428
|
-
var
|
|
429
|
-
for (var
|
|
430
|
-
e.call(a,
|
|
431
|
-
return
|
|
418
|
+
var s = "";
|
|
419
|
+
for (var i in a)
|
|
420
|
+
e.call(a, i) && a[i] && (s = o(s, i));
|
|
421
|
+
return s;
|
|
432
422
|
}
|
|
433
|
-
function o(a,
|
|
434
|
-
return
|
|
423
|
+
function o(a, s) {
|
|
424
|
+
return s ? a ? a + " " + s : a + s : a;
|
|
435
425
|
}
|
|
436
|
-
t.exports ? (
|
|
426
|
+
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
437
427
|
})();
|
|
438
|
-
})(
|
|
428
|
+
})(qt)), qt.exports;
|
|
439
429
|
}
|
|
440
|
-
var
|
|
441
|
-
const
|
|
430
|
+
var Tr = _r();
|
|
431
|
+
const lt = /* @__PURE__ */ dr(Tr), Nr = async (t) => {
|
|
442
432
|
if (typeof t == "string") {
|
|
443
433
|
if (t === "simple")
|
|
444
434
|
return await import("./simple-CAAgvkQC.js").then((e) => e.simpleTheme);
|
|
@@ -447,68 +437,74 @@ const at = /* @__PURE__ */ _r(Wr), Gr = async (t) => {
|
|
|
447
437
|
throw new Error(`Unknown theme: ${t}`);
|
|
448
438
|
}
|
|
449
439
|
return t;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
454
|
-
const Je = (t, e = [], r = {}) => {
|
|
455
|
-
for (const [n, o] of Object.entries(t)) {
|
|
456
|
-
const a = [...e, n];
|
|
457
|
-
re(o) ? Je(o, a, r) : r[`--lv-${a.join("-")}`] = o;
|
|
440
|
+
}, Yt = (t) => typeof t == "object" && t !== null && !Array.isArray(t), Ue = (t, e = [], n = {}) => {
|
|
441
|
+
for (const [r, o] of Object.entries(t)) {
|
|
442
|
+
const a = [...e, r];
|
|
443
|
+
Yt(o) ? Ue(o, a, n) : n[`--lv-${a.join("-")}`] = o;
|
|
458
444
|
}
|
|
459
|
-
return
|
|
460
|
-
},
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
445
|
+
return n;
|
|
446
|
+
}, Br = (t = "auto", e = "system") => t === "light" || t === "dark" ? t : e === "system" ? globalThis.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e, Ke = (t, e) => {
|
|
447
|
+
const n = {
|
|
448
|
+
...t
|
|
449
|
+
};
|
|
450
|
+
for (const r of Object.keys(e)) {
|
|
451
|
+
const o = t[r], a = e[r];
|
|
452
|
+
n[r] = Yt(o) && Yt(a) ? Ke(o, a) : a;
|
|
465
453
|
}
|
|
466
|
-
return
|
|
467
|
-
},
|
|
468
|
-
const
|
|
454
|
+
return n;
|
|
455
|
+
}, Rr = async (t, e = "system") => {
|
|
456
|
+
const n = await Nr(t.theme), r = Br(t.mode, e), o = n[r];
|
|
469
457
|
if (!o) return "";
|
|
470
|
-
const a =
|
|
471
|
-
return Object.entries(
|
|
458
|
+
const a = n.common ? Ke(n.common, o) : o, s = Ue(a);
|
|
459
|
+
return Object.entries(s).map(([i, c]) => `${i}: ${c};`).join(`
|
|
472
460
|
`);
|
|
473
|
-
}, ve = `@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}.flex-1{flex:1}.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}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.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-3{gap:calc(var(--spacing)*3)}.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-dashed{--tw-border-style:dashed;border-style:dashed}.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)}.ps-1{padding-inline-start:calc(var(--spacing)*1)}.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-2{padding-left:calc(var(--spacing)*2)}.text-center{text-align:center}.text-start{text-align:start}.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\\:rounded-t-sm:first-child{border-top-left-radius:var(--radius-sm);border-top-right-radius:var(--radius-sm)}.first\\:border-l-0:first-child{border-left-style:var(--tw-border-style);border-left-width:0}.first\\:pt-1\\.5:first-child{padding-top:calc(var(--spacing)*1.5)}.first\\:pt-2:first-child{padding-top:calc(var(--spacing)*2)}.last\\:rounded-b-sm:last-child{border-bottom-right-radius:var(--radius-sm);border-bottom-left-radius:var(--radius-sm)}.last\\:pb-2:last-child{padding-bottom:calc(var(--spacing)*2)}@media(hover:hover){.hover\\:\\[background-color\\:var\\(--lv-control-button-tertiary-hoverBackground\\)\\]:hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-card-background\\):hover{background-color:var(--lv-card-background)}.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\\):hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.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-theme-mode=dark] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}@media(prefers-color-scheme:dark){[data-openlv-theme-mode=system] 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)}}`, me = async (t, e, r = "system") => {
|
|
474
|
-
let
|
|
461
|
+
}, xe = `@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-divide-y-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-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@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-10{height:calc(var(--spacing)*10)}.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-10{width:calc(var(--spacing)*10)}.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}.flex-1{flex:1}.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}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.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}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.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)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-\\(--lv-control-button-secondary-border\\)>:not(:last-child)){border-color:var(--lv-control-button-secondary-border)}.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-dashed{--tw-border-style:dashed;border-style:dashed}.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)}.ps-1{padding-inline-start:calc(var(--spacing)*1)}.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-2{padding-left:calc(var(--spacing)*2)}.text-center{text-align:center}.text-start{text-align:start}.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,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.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\\:rounded-t-sm:first-child{border-top-left-radius:var(--radius-sm);border-top-right-radius:var(--radius-sm)}.first\\:border-l-0:first-child{border-left-style:var(--tw-border-style);border-left-width:0}.first\\:pt-1\\.5:first-child{padding-top:calc(var(--spacing)*1.5)}.first\\:pt-2:first-child{padding-top:calc(var(--spacing)*2)}.last\\:rounded-b-sm:last-child{border-bottom-right-radius:var(--radius-sm);border-bottom-left-radius:var(--radius-sm)}.last\\:pb-2:last-child{padding-bottom:calc(var(--spacing)*2)}@media(hover:hover){.hover\\:\\[background-color\\:var\\(--lv-control-button-tertiary-hoverBackground\\)\\]:hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-card-background\\):hover{background-color:var(--lv-card-background)}.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\\):hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.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\\:flex{display:flex}.md\\:w-3\\/5{width:60%}.md\\:items-center{align-items:center}:where(.md\\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-end-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}:where(.md\\:divide-y-0>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(0px*var(--tw-divide-y-reverse));border-bottom-width:calc(0px*calc(1 - var(--tw-divide-y-reverse)))}}@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);font-family:var(--lv-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji")}.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:1;animation:.15s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{z-index:2;animation:.2s ease-out forwards modal-transition-in}[data-openlv-theme-mode=dark] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}@media(prefers-color-scheme:dark){[data-openlv-theme-mode=system] 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(.95)}}@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-divide-y-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-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{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}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}`, ke = async (t, e, n = "system") => {
|
|
462
|
+
let r = t.querySelector(
|
|
475
463
|
"style[data-openlv-modal]"
|
|
476
464
|
);
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
465
|
+
r || (r = document.createElement("style"), r.dataset.openlvModal = "true", t.append(r));
|
|
466
|
+
const o = {
|
|
467
|
+
...e,
|
|
468
|
+
theme: e?.theme ?? "simple"
|
|
469
|
+
};
|
|
470
|
+
if (o) {
|
|
471
|
+
const a = await Rr(o, n);
|
|
472
|
+
r.textContent = `:root, :host {
|
|
473
|
+
${a}
|
|
481
474
|
}
|
|
482
|
-
` +
|
|
475
|
+
` + xe;
|
|
483
476
|
} else
|
|
484
|
-
|
|
477
|
+
r.textContent = xe;
|
|
485
478
|
};
|
|
486
|
-
class
|
|
487
|
-
constructor(
|
|
479
|
+
class We extends HTMLElement {
|
|
480
|
+
constructor(n) {
|
|
488
481
|
super();
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
this
|
|
494
|
-
|
|
495
|
-
|
|
482
|
+
wt(this, "shadow");
|
|
483
|
+
wt(this, "renderRequested", !1);
|
|
484
|
+
wt(this, "parameters");
|
|
485
|
+
wt(this, "themeCleanup");
|
|
486
|
+
wt(this, "disposeRender");
|
|
487
|
+
this.parameters = n, this.shadow = this.attachShadow({
|
|
488
|
+
mode: "open"
|
|
489
|
+
});
|
|
490
|
+
const r = n.provider.storage.getSettings()?.theme ?? "system";
|
|
491
|
+
ke(this.shadow, n.theme, r);
|
|
496
492
|
}
|
|
497
493
|
connectedCallback() {
|
|
498
494
|
this.requestRender(), this.themeCleanup?.(), this.setupThemeListener();
|
|
499
495
|
}
|
|
500
496
|
disconnectedCallback() {
|
|
501
|
-
|
|
497
|
+
this.disposeRender?.(), this.disposeRender = void 0, this.themeCleanup?.();
|
|
502
498
|
}
|
|
503
499
|
setupThemeListener() {
|
|
504
|
-
const
|
|
500
|
+
const n = () => {
|
|
505
501
|
const o = this.parameters.provider.storage.getSettings()?.theme ?? "system";
|
|
506
|
-
|
|
502
|
+
ke(this.shadow, this.parameters.theme, o);
|
|
507
503
|
};
|
|
508
|
-
this.parameters.provider.storage.emitter.on("settings_change",
|
|
509
|
-
const
|
|
510
|
-
|
|
511
|
-
this.parameters.provider.storage.emitter.off("settings_change",
|
|
504
|
+
this.parameters.provider.storage.emitter.on("settings_change", n);
|
|
505
|
+
const r = globalThis.matchMedia("(prefers-color-scheme: dark)");
|
|
506
|
+
r.addEventListener("change", n), this.themeCleanup = () => {
|
|
507
|
+
this.parameters.provider.storage.emitter.off("settings_change", n), r.removeEventListener("change", n);
|
|
512
508
|
};
|
|
513
509
|
}
|
|
514
510
|
showModal() {
|
|
@@ -523,1132 +519,820 @@ class Xe extends HTMLElement {
|
|
|
523
519
|
}));
|
|
524
520
|
}
|
|
525
521
|
performRender() {
|
|
526
|
-
|
|
522
|
+
this.disposeRender?.(), this.disposeRender = or(() => {
|
|
523
|
+
const n = this;
|
|
524
|
+
return l(qr, W(() => n.parameters));
|
|
525
|
+
}, this.shadow);
|
|
527
526
|
}
|
|
528
527
|
}
|
|
529
|
-
const
|
|
530
|
-
Or copy the link and paste it into your wallet.` },
|
|
531
|
-
common:
|
|
532
|
-
status:
|
|
533
|
-
settings:
|
|
534
|
-
start:
|
|
535
|
-
info:
|
|
536
|
-
disconnected:
|
|
537
|
-
connectionFlow:
|
|
538
|
-
handshake:
|
|
539
|
-
modal:
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
528
|
+
const Er = { close: "Close", yes: "Yes", no: "No", protocol: "Protocol" }, Or = { connectedSuccessfully: "Connected Successfully!", connecting: "Connecting", ready: "Ready", handshakeClosed: "Handshake Closed", handshakePartial: "Handshake Partial", encrypted: "Encrypted", signalError: "Signal Error", disconnected: "Disconnected" }, Lr = { title: "Settings", language: "Language", connection: { title: "Connection", description: "Configure how you connect to your wallet." }, theme: { title: "Appearance", mode: "Theme", light: "Light", dark: "Dark", system: "System" }, 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", iceServers: { title: "ICE Servers", stun: "STUN Servers", turn: "TURN Servers", addStun: "Add STUN Server", addTurn: "Add TURN Server", username: "Username", credential: "Password" } }, appearance: "Appearance" }, Mr = { title: "Connect Wallet" }, Pr = { title: "What is openlv?", scanQrCode: "Scan QR Code", approveOnDevice: "Approve on device", youreConnected: "You're connected!" }, Vr = { prompt: "Click the button below to start a connection", generateQr: "Generate QR", connectionSettings: "Connection settings" }, jr = { 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." }, zr = { clickToCopyUrl: "Click to copy connection URL", copyConnectionUrl: "Copy Connection URL", scanCodeInstruction: `Scan the code above using your mobile wallet.
|
|
529
|
+
Or copy the link and paste it into your wallet.` }, Fr = { urlCopied: "Connection URL copied to clipboard!", backToQr: "Back to QR", closeModal: "Close modal" }, Dr = {
|
|
530
|
+
common: Er,
|
|
531
|
+
status: Or,
|
|
532
|
+
settings: Lr,
|
|
533
|
+
start: Mr,
|
|
534
|
+
info: Pr,
|
|
535
|
+
disconnected: Vr,
|
|
536
|
+
connectionFlow: jr,
|
|
537
|
+
handshake: zr,
|
|
538
|
+
modal: Fr
|
|
539
|
+
};
|
|
540
|
+
var Ir = /* @__PURE__ */ b("<br>");
|
|
541
|
+
const se = [{
|
|
542
|
+
tag: "en",
|
|
543
|
+
name: "English",
|
|
544
|
+
nativeName: "English"
|
|
545
|
+
}, {
|
|
546
|
+
tag: "nl",
|
|
547
|
+
name: "Dutch",
|
|
548
|
+
nativeName: "Nederlands"
|
|
549
|
+
}, {
|
|
550
|
+
tag: "es",
|
|
551
|
+
name: "Spanish",
|
|
552
|
+
nativeName: "Español"
|
|
553
|
+
}, {
|
|
554
|
+
tag: "sv",
|
|
555
|
+
name: "Swedish",
|
|
556
|
+
nativeName: "Svenska"
|
|
557
|
+
}, {
|
|
558
|
+
tag: "zh-cn",
|
|
559
|
+
name: "Chinese (Simplified)",
|
|
560
|
+
nativeName: "简体中文"
|
|
561
|
+
}, {
|
|
562
|
+
tag: "fr",
|
|
563
|
+
name: "French",
|
|
564
|
+
nativeName: "Français"
|
|
565
|
+
}, {
|
|
566
|
+
tag: "ar",
|
|
567
|
+
name: "Arabic",
|
|
568
|
+
nativeName: "العربية",
|
|
569
|
+
rtl: !0
|
|
570
|
+
}, {
|
|
571
|
+
tag: "he",
|
|
572
|
+
name: "Hebrew",
|
|
573
|
+
nativeName: "עברית",
|
|
574
|
+
rtl: !0
|
|
575
|
+
}, {
|
|
576
|
+
tag: "fa",
|
|
577
|
+
name: "Persian",
|
|
578
|
+
nativeName: "فارسی",
|
|
579
|
+
rtl: !0
|
|
580
|
+
}], Ur = (t) => se.find((n) => n.tag === t)?.rtl ?? !1;
|
|
581
|
+
new Set(se.map((t) => t.tag));
|
|
582
|
+
const Ce = (t) => {
|
|
565
583
|
if (typeof navigator > "u") return 0;
|
|
566
584
|
const e = navigator.languages || [navigator.language];
|
|
567
|
-
for (let
|
|
568
|
-
const
|
|
569
|
-
if (
|
|
570
|
-
if (
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
if (o === t || t.startsWith(`${o}-`))
|
|
574
|
-
return e.length - r - 0.5;
|
|
585
|
+
for (let n = 0; n < e.length; n++) {
|
|
586
|
+
const r = e[n].toLowerCase();
|
|
587
|
+
if (r === t) return e.length - n + 1;
|
|
588
|
+
if (r.startsWith(`${t}-`) || t.startsWith(`${r}-`)) return e.length - n;
|
|
589
|
+
const [o] = r.split("-");
|
|
590
|
+
if (o === t || t.startsWith(`${o}-`)) return e.length - n - 0.5;
|
|
575
591
|
}
|
|
576
592
|
return 0;
|
|
577
|
-
},
|
|
593
|
+
}, Se = (t, e) => {
|
|
578
594
|
if (!t) return;
|
|
579
|
-
const
|
|
580
|
-
if (
|
|
581
|
-
let
|
|
582
|
-
for (const o of
|
|
583
|
-
if (typeof
|
|
584
|
-
|
|
595
|
+
const n = e.split(".").filter(Boolean);
|
|
596
|
+
if (n.length === 0) return;
|
|
597
|
+
let r = t;
|
|
598
|
+
for (const o of n) {
|
|
599
|
+
if (typeof r != "object" || r === null) return;
|
|
600
|
+
r = r[o];
|
|
585
601
|
}
|
|
586
|
-
return
|
|
587
|
-
},
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
}
|
|
593
|
-
) : t, an = (t) => {
|
|
594
|
-
const e = we(t.primary, t.key);
|
|
602
|
+
return r;
|
|
603
|
+
}, Ae = (t, e) => e ? t.replaceAll(/\{(\w+)\}/g, (n, r) => {
|
|
604
|
+
const o = e[r];
|
|
605
|
+
return o === void 0 ? n : String(o);
|
|
606
|
+
}) : t, Kr = (t) => {
|
|
607
|
+
const e = Se(t.primary, t.key);
|
|
595
608
|
if (typeof e == "string")
|
|
596
|
-
return
|
|
597
|
-
const
|
|
598
|
-
return typeof
|
|
599
|
-
},
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
"
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}) => {
|
|
608
|
-
const [r, n] = P(e), [o, a] = P(null), [i, l] = P(!1);
|
|
609
|
-
I(() => {
|
|
610
|
-
let p = !1;
|
|
611
|
-
return (async () => {
|
|
612
|
-
l(!0);
|
|
609
|
+
return Ae(e, t.params);
|
|
610
|
+
const n = Se(t.fallback, t.key);
|
|
611
|
+
return typeof n == "string" ? Ae(n, t.params) : t.key;
|
|
612
|
+
}, He = Pe(void 0), Wr = async (t) => ht(t).with("en", () => Promise.resolve(void 0)).with("nl", async () => import("./nl-BRV9i3nM.js").then((e) => e.default)).with("es", async () => import("./es-C2sG0TfH.js").then((e) => e.default)).with("sv", async () => import("./sv-CEyo-XBk.js").then((e) => e.default)).with("fr", async () => import("./fr-BRQDr1rj.js").then((e) => e.default)).with("zh-cn", async () => import("./zh-cn-DJpfZdjA.js").then((e) => e.default)).with("ar", async () => import("./ar-CyZSQ56p.js").then((e) => e.default)).with("he", async () => import("./he-NFIsHMZP.js").then((e) => e.default)).with("fa", async () => import("./fa-_bXJQdwj.js").then((e) => e.default)).exhaustive(), Hr = (t) => {
|
|
613
|
+
const {
|
|
614
|
+
provider: e
|
|
615
|
+
} = Ct(), n = e.storage.getSettings().language, [r, o] = O(n ?? "en"), [a, s] = O(void 0), [i, c] = O(!1);
|
|
616
|
+
J(() => {
|
|
617
|
+
let h = !1;
|
|
618
|
+
(async () => {
|
|
619
|
+
c(!0);
|
|
613
620
|
try {
|
|
614
|
-
const
|
|
615
|
-
if (
|
|
616
|
-
|
|
621
|
+
const C = await Wr(r());
|
|
622
|
+
if (h) return;
|
|
623
|
+
s(C);
|
|
617
624
|
} finally {
|
|
618
|
-
|
|
625
|
+
h || c(!1);
|
|
619
626
|
}
|
|
620
|
-
})(), () => {
|
|
621
|
-
|
|
622
|
-
};
|
|
623
|
-
}
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
primary:
|
|
627
|
-
fallback:
|
|
628
|
-
key:
|
|
629
|
-
params:
|
|
630
|
-
}).split(`
|
|
631
|
-
`)
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
}
|
|
647
|
-
|
|
627
|
+
})(), X(() => {
|
|
628
|
+
h = !0;
|
|
629
|
+
});
|
|
630
|
+
});
|
|
631
|
+
const d = (h, m) => {
|
|
632
|
+
const C = Kr({
|
|
633
|
+
primary: a(),
|
|
634
|
+
fallback: Dr,
|
|
635
|
+
key: h,
|
|
636
|
+
params: m
|
|
637
|
+
}), p = C.split(`
|
|
638
|
+
`);
|
|
639
|
+
return p.length <= 1 ? C : pt(() => p.map((L, M) => [L, pt(() => pt(() => M < p.length - 1)() ? Ir() : null)]));
|
|
640
|
+
}, u = K(() => Ur(r())), f = {
|
|
641
|
+
languageTag: r,
|
|
642
|
+
setLanguageTag: (h) => {
|
|
643
|
+
o(h);
|
|
644
|
+
},
|
|
645
|
+
isLoadingLanguagePack: i,
|
|
646
|
+
isRtl: u,
|
|
647
|
+
t: d
|
|
648
|
+
};
|
|
649
|
+
return l(He.Provider, {
|
|
650
|
+
value: f,
|
|
651
|
+
get children() {
|
|
652
|
+
return t.children;
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
}, D = () => {
|
|
656
|
+
const t = Me(He);
|
|
648
657
|
if (!t)
|
|
649
658
|
throw new Error("TranslationProvider not found");
|
|
650
659
|
return t;
|
|
651
|
-
},
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
return
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
if (!t.provider) throw new Error("Provider not found");
|
|
670
|
-
return t;
|
|
671
|
-
}, Ot = () => {
|
|
672
|
-
const { provider: t } = Ze(), [e, r] = P(
|
|
673
|
-
t?.getState().status || ct.ERROR
|
|
674
|
-
);
|
|
675
|
-
if (I(() => {
|
|
676
|
-
const n = (a) => {
|
|
677
|
-
r(a);
|
|
678
|
-
};
|
|
679
|
-
t?.on("status_change", n);
|
|
680
|
-
const o = t?.getState().status;
|
|
681
|
-
return o && r(o), () => {
|
|
682
|
-
t?.off("status_change", n);
|
|
683
|
-
};
|
|
684
|
-
}, [t]), !t) throw new Error("Provider not found");
|
|
685
|
-
return { provider: t, status: e };
|
|
686
|
-
}, de = (...t) => console.log(
|
|
687
|
-
"%c[modal]%c",
|
|
688
|
-
"color: yellow; font-weight: bold",
|
|
689
|
-
"color: inherit; font-weight: normal",
|
|
690
|
-
...t
|
|
691
|
-
), $e = (t, e, r) => {
|
|
692
|
-
I(() => (t?.on(e, r), () => {
|
|
693
|
-
t?.off(e, r);
|
|
694
|
-
}), [t, e]);
|
|
695
|
-
}, wt = () => {
|
|
696
|
-
const { provider: t } = Ot(), [e, r] = P(
|
|
697
|
-
t?.storage.getSettings()
|
|
698
|
-
);
|
|
699
|
-
$e(
|
|
700
|
-
t?.storage.emitter,
|
|
701
|
-
"settings_change",
|
|
702
|
-
(g) => {
|
|
703
|
-
r(g);
|
|
704
|
-
}
|
|
705
|
-
);
|
|
706
|
-
const n = (g) => {
|
|
707
|
-
r(g), t?.storage.setSettings(g);
|
|
708
|
-
}, o = (g) => {
|
|
709
|
-
e?.signaling && e.signaling.p !== g && n({
|
|
710
|
-
...e,
|
|
711
|
-
signaling: {
|
|
712
|
-
...e.signaling,
|
|
713
|
-
p: g
|
|
714
|
-
}
|
|
715
|
-
});
|
|
716
|
-
}, a = (g) => {
|
|
717
|
-
e?.signaling && e.signaling.s[e.signaling.p] !== g && n({
|
|
718
|
-
...e,
|
|
719
|
-
signaling: {
|
|
720
|
-
...e.signaling,
|
|
721
|
-
s: {
|
|
722
|
-
...e.signaling.s,
|
|
723
|
-
[e.signaling.p]: g
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
});
|
|
727
|
-
}, i = (g) => {
|
|
728
|
-
e && n({ ...e, retainHistory: g });
|
|
729
|
-
}, l = (g) => {
|
|
730
|
-
e && n({ ...e, autoReconnect: g });
|
|
731
|
-
}, c = (g) => {
|
|
732
|
-
e && e.theme !== g && (r({ ...e, theme: g }), t?.storage.setSettings({ ...e, theme: g }));
|
|
733
|
-
}, u = (g) => {
|
|
734
|
-
e && n({ ...e, language: g });
|
|
735
|
-
}, d = (g) => {
|
|
736
|
-
e && e.transport?.p !== g && n({
|
|
737
|
-
...e,
|
|
738
|
-
transport: {
|
|
739
|
-
...e.transport,
|
|
740
|
-
p: g
|
|
741
|
-
}
|
|
742
|
-
});
|
|
743
|
-
}, p = (g) => {
|
|
744
|
-
if (!e) return;
|
|
745
|
-
const h = e.transport?.s?.webrtc, D = g(h);
|
|
746
|
-
n({
|
|
747
|
-
...e,
|
|
748
|
-
transport: {
|
|
749
|
-
p: e.transport?.p ?? "webrtc",
|
|
750
|
-
s: {
|
|
751
|
-
...e.transport?.s,
|
|
752
|
-
webrtc: D
|
|
660
|
+
}, qe = Pe(void 0), qr = (t) => {
|
|
661
|
+
const {
|
|
662
|
+
provider: e,
|
|
663
|
+
theme: n
|
|
664
|
+
} = t;
|
|
665
|
+
return l(qe.Provider, {
|
|
666
|
+
value: {
|
|
667
|
+
provider: e,
|
|
668
|
+
themeConfig: n
|
|
669
|
+
},
|
|
670
|
+
get children() {
|
|
671
|
+
return l(Hr, {
|
|
672
|
+
get children() {
|
|
673
|
+
return l(aa, {
|
|
674
|
+
get onClose() {
|
|
675
|
+
return t.onClose;
|
|
676
|
+
}
|
|
677
|
+
});
|
|
753
678
|
}
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
stun: D?.length ? D : void 0
|
|
767
|
-
};
|
|
768
|
-
});
|
|
769
|
-
}, y = (g, h) => {
|
|
770
|
-
p((D) => {
|
|
771
|
-
const _ = [...D?.stun ?? []];
|
|
772
|
-
return _[g] = h, {
|
|
773
|
-
...D,
|
|
774
|
-
stun: _
|
|
775
|
-
};
|
|
776
|
-
});
|
|
777
|
-
}, E = (g) => {
|
|
778
|
-
p((h) => ({
|
|
779
|
-
...h,
|
|
780
|
-
turn: [...h?.turn ?? [], g]
|
|
781
|
-
}));
|
|
782
|
-
}, f = (g) => {
|
|
783
|
-
p((h) => {
|
|
784
|
-
const D = h?.turn?.filter((_, J) => J !== g);
|
|
785
|
-
return {
|
|
786
|
-
...h,
|
|
787
|
-
turn: D?.length ? D : void 0
|
|
788
|
-
};
|
|
789
|
-
});
|
|
790
|
-
}, x = (g, h) => {
|
|
791
|
-
p((D) => {
|
|
792
|
-
const _ = [...D?.turn ?? []];
|
|
793
|
-
return _[g] = { ..._[g], ...h }, {
|
|
794
|
-
...D,
|
|
795
|
-
turn: _
|
|
796
|
-
};
|
|
797
|
-
});
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
}, Ct = () => {
|
|
683
|
+
const t = Me(qe);
|
|
684
|
+
if (!t) throw new Error("Modal context not found");
|
|
685
|
+
return t;
|
|
686
|
+
}, Et = () => {
|
|
687
|
+
const { provider: t } = Ct(), e = K(() => t.getSession(), void 0, { name: "session" }), [n, r] = O(e()?.getState());
|
|
688
|
+
console.log("session status", n());
|
|
689
|
+
const o = (i) => {
|
|
690
|
+
console.log("session state change", i), r(i);
|
|
798
691
|
};
|
|
799
|
-
|
|
692
|
+
oe(() => {
|
|
693
|
+
e()?.emitter.on("state_change", o);
|
|
694
|
+
}), X(() => {
|
|
695
|
+
e()?.emitter.off("state_change", o);
|
|
696
|
+
});
|
|
697
|
+
const a = K(() => e()?.getHandshakeParameters());
|
|
800
698
|
return {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
updateThemePreference: c,
|
|
807
|
-
updateLanguage: u,
|
|
808
|
-
updateTransportProtocol: d,
|
|
809
|
-
// STUN reducers
|
|
810
|
-
addStunServer: k,
|
|
811
|
-
removeStunServer: m,
|
|
812
|
-
updateStunServer: y,
|
|
813
|
-
// TURN reducers
|
|
814
|
-
addTurnServer: E,
|
|
815
|
-
removeTurnServer: f,
|
|
816
|
-
updateTurnServer: x
|
|
817
|
-
};
|
|
818
|
-
}, Lt = () => {
|
|
819
|
-
const { provider: t } = Ot(), [e, r] = P(
|
|
820
|
-
t?.getSession()
|
|
821
|
-
), n = e?.getHandshakeParameters(), o = n ? Nr(n) : void 0, [a, i] = P(
|
|
822
|
-
e?.getState()
|
|
823
|
-
);
|
|
824
|
-
return $e(e?.emitter, "state_change", (l) => {
|
|
825
|
-
de("session state change: ", l), i(l);
|
|
826
|
-
}), I(() => {
|
|
827
|
-
const l = () => {
|
|
828
|
-
const u = t?.getSession();
|
|
829
|
-
u && r(u);
|
|
830
|
-
};
|
|
831
|
-
t?.on("status_change", l);
|
|
832
|
-
const c = t?.getSession();
|
|
833
|
-
return c && r(c), () => {
|
|
834
|
-
t?.off("status_change", l);
|
|
835
|
-
};
|
|
836
|
-
}, [t]), I(() => {
|
|
837
|
-
const l = (c) => {
|
|
838
|
-
r(c), i(c.getState());
|
|
839
|
-
};
|
|
840
|
-
return t?.on("session_started", l), () => {
|
|
841
|
-
t?.off("session_started", l);
|
|
842
|
-
};
|
|
843
|
-
}, [t]), I(() => {
|
|
844
|
-
e && i(e.getState());
|
|
845
|
-
}, [e]), {
|
|
846
|
-
uri: o,
|
|
847
|
-
status: a
|
|
699
|
+
uri: K(() => {
|
|
700
|
+
const i = a();
|
|
701
|
+
return i ? cr(i) : void 0;
|
|
702
|
+
}),
|
|
703
|
+
status: n
|
|
848
704
|
};
|
|
849
|
-
},
|
|
850
|
-
const { provider: t } =
|
|
705
|
+
}, Gr = () => {
|
|
706
|
+
const { provider: t } = Ct();
|
|
851
707
|
return {
|
|
852
708
|
start: () => {
|
|
853
|
-
const
|
|
854
|
-
if (!
|
|
709
|
+
const e = t.storage.getSettings(), n = e?.signaling?.p, r = n ? e?.signaling?.s?.[n] : void 0;
|
|
710
|
+
if (!n || !r)
|
|
855
711
|
throw new Error("Invalid protocol or server");
|
|
856
|
-
return t
|
|
857
|
-
p:
|
|
858
|
-
s:
|
|
712
|
+
return t.createSession({
|
|
713
|
+
p: n,
|
|
714
|
+
s: r
|
|
859
715
|
});
|
|
860
716
|
}
|
|
861
717
|
};
|
|
862
|
-
}, ne = ({ state: t }) => {
|
|
863
|
-
const { status: e, uri: r } = Lt(), { status: n } = Ot();
|
|
864
|
-
return console.error("Unknown state: ", { state: t, sessionStatus: e, providerStatus: n }), /* @__PURE__ */ v("div", { className: "rounded-md bg-(--lv-control-button-secondary-background) p-2 text-(--lv-text-muted)", children: [
|
|
865
|
-
/* @__PURE__ */ v("div", { children: [
|
|
866
|
-
"Unknown state: ",
|
|
867
|
-
JSON.stringify(t)
|
|
868
|
-
] }),
|
|
869
|
-
/* @__PURE__ */ v("div", { children: [
|
|
870
|
-
"URI: ",
|
|
871
|
-
r
|
|
872
|
-
] }),
|
|
873
|
-
/* @__PURE__ */ v("div", { children: [
|
|
874
|
-
"Session Status: ",
|
|
875
|
-
JSON.stringify(e)
|
|
876
|
-
] }),
|
|
877
|
-
/* @__PURE__ */ v("div", { children: [
|
|
878
|
-
"Provider Status: ",
|
|
879
|
-
JSON.stringify(n)
|
|
880
|
-
] })
|
|
881
|
-
] });
|
|
882
|
-
}, gn = ({
|
|
883
|
-
onCopy: t
|
|
884
|
-
}) => {
|
|
885
|
-
const { t: e } = H(), { uri: r } = Lt(), n = K(() => {
|
|
886
|
-
r && t(r);
|
|
887
|
-
}, [r, t]), o = K((a) => {
|
|
888
|
-
const i = kr.default, l = i(0, "M");
|
|
889
|
-
return l.addData(a), l.make(), l.createSvgTag({ cellSize: 5, margin: 0, scalable: !0 });
|
|
890
|
-
}, []);
|
|
891
|
-
return /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-4 px-2", children: [
|
|
892
|
-
/* @__PURE__ */ v("div", { className: "w-full space-y-4 rounded-md border border-(--lv-control-button-secondary-border) bg-(--lv-card-background) p-4", children: [
|
|
893
|
-
r && /* @__PURE__ */ s("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__ */ s(
|
|
894
|
-
"button",
|
|
895
|
-
{
|
|
896
|
-
className: "h-[200px] w-[200px] cursor-pointer rounded bg-(--lv-qr-background) text-(--lv-qr-color)",
|
|
897
|
-
onClick: n,
|
|
898
|
-
title: e("handshake.clickToCopyUrl"),
|
|
899
|
-
dangerouslySetInnerHTML: { __html: o(r) }
|
|
900
|
-
}
|
|
901
|
-
) }),
|
|
902
|
-
/* @__PURE__ */ s("div", { className: "w-full", children: /* @__PURE__ */ s(
|
|
903
|
-
"button",
|
|
904
|
-
{
|
|
905
|
-
type: "button",
|
|
906
|
-
onClick: n,
|
|
907
|
-
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)",
|
|
908
|
-
children: e("handshake.copyConnectionUrl")
|
|
909
|
-
}
|
|
910
|
-
) })
|
|
911
|
-
] }),
|
|
912
|
-
/* @__PURE__ */ s("div", { className: "w-full text-sm text-(--lv-text-secondary)", children: /* @__PURE__ */ s("span", { children: e("handshake.scanCodeInstruction") }) })
|
|
913
|
-
] });
|
|
914
|
-
}, pn = () => typeof document < "u" && "startViewTransition" in document, fn = (t) => {
|
|
915
|
-
pn() ? document.startViewTransition(t) : t();
|
|
916
|
-
}, Xt = () => /* @__PURE__ */ s("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ s("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent" }) }), O = {
|
|
917
|
-
CREATING: "creating",
|
|
918
|
-
CONNECTING: "connecting",
|
|
919
|
-
READY: "ready",
|
|
920
|
-
LINKING: "linking",
|
|
921
|
-
CONNECTED: "connected",
|
|
922
|
-
DISCONNECTED: "disconnected",
|
|
923
|
-
ERROR: "error"
|
|
924
|
-
}, hn = (t) => {
|
|
925
|
-
const [e, r] = P(t), n = G(t);
|
|
926
|
-
return I(() => {
|
|
927
|
-
t !== n.current && fn(() => {
|
|
928
|
-
r(t), n.current = t;
|
|
929
|
-
});
|
|
930
|
-
}, [t]), {
|
|
931
|
-
displayState: e
|
|
932
|
-
};
|
|
933
|
-
}, vn = (t) => t ? $(t).with({ status: pt.CREATED }, () => O.CREATING).with(
|
|
934
|
-
{ status: pt.SIGNALING, signaling: He.select() },
|
|
935
|
-
(e) => $(e).with({ state: gt.STANDBY }, () => O.CONNECTING).with({ state: gt.CONNECTING }, () => O.CONNECTING).with({ state: gt.READY }, () => O.READY).with({ state: gt.HANDSHAKE }, () => O.LINKING).with({ state: gt.HANDSHAKE_PARTIAL }, () => O.LINKING).with({ state: gt.ENCRYPTED }, () => O.CONNECTED).otherwise(() => O.CONNECTING)
|
|
936
|
-
).with({ status: pt.READY }, () => O.READY).with({ status: pt.LINKING }, () => O.LINKING).with({ status: pt.CONNECTED }, () => O.CONNECTED).with({ status: pt.DISCONNECTED }, () => O.DISCONNECTED).otherwise(() => O.ERROR) : O.CONNECTING, mn = ({ onClose: t, onCopy: e }) => {
|
|
937
|
-
const { t: r } = H(), { status: n } = Lt(), { displayState: o } = hn(vn(n));
|
|
938
|
-
return /* @__PURE__ */ s("div", { style: { viewTransitionName: "connection-flow" }, className: "w-full", children: $(o).with(O.CREATING, () => /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
939
|
-
/* @__PURE__ */ s(Xt, {}),
|
|
940
|
-
/* @__PURE__ */ v("div", { className: "text-center", children: [
|
|
941
|
-
/* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-(--lv-text-primary) text-lg", children: r("connectionFlow.preparingConnection") }),
|
|
942
|
-
/* @__PURE__ */ s("p", { className: "text-(--lv-text-muted) text-sm", children: r("connectionFlow.generatingKeys") })
|
|
943
|
-
] })
|
|
944
|
-
] })).with(O.CONNECTING, () => /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
945
|
-
/* @__PURE__ */ s(Xt, {}),
|
|
946
|
-
/* @__PURE__ */ v("div", { className: "text-center", children: [
|
|
947
|
-
/* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-(--lv-text-primary) text-lg", children: r("connectionFlow.connecting") }),
|
|
948
|
-
/* @__PURE__ */ s("p", { className: "text-(--lv-text-muted) text-sm", children: r("connectionFlow.waitingForNetwork") })
|
|
949
|
-
] })
|
|
950
|
-
] })).with(O.READY, () => /* @__PURE__ */ s(gn, { onCopy: e })).with(O.LINKING, () => /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
951
|
-
/* @__PURE__ */ s(Xt, {}),
|
|
952
|
-
/* @__PURE__ */ v("div", { className: "text-center", children: [
|
|
953
|
-
/* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-(--lv-text-primary) text-lg", children: r("connectionFlow.establishingConnection") }),
|
|
954
|
-
/* @__PURE__ */ s("p", { className: "text-(--lv-text-muted) text-sm", children: r("connectionFlow.mayTakeFewSeconds") })
|
|
955
|
-
] })
|
|
956
|
-
] })).with(O.CONNECTED, () => /* @__PURE__ */ s("div", { className: "flex flex-col items-center gap-4 p-6", children: /* @__PURE__ */ v("div", { className: "text-center", children: [
|
|
957
|
-
/* @__PURE__ */ s("div", { className: "mb-4 text-4xl", children: "✅" }),
|
|
958
|
-
/* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-(--lv-text-primary) text-lg", children: r("connectionFlow.connectedSuccessfully") }),
|
|
959
|
-
/* @__PURE__ */ s("p", { className: "text-(--lv-text-muted) text-sm", children: r("connectionFlow.walletConnectedReady") })
|
|
960
|
-
] }) })).with(O.DISCONNECTED, () => /* @__PURE__ */ v("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
961
|
-
/* @__PURE__ */ v("div", { className: "text-center", children: [
|
|
962
|
-
/* @__PURE__ */ s("div", { className: "mb-4 text-4xl", children: "🔌" }),
|
|
963
|
-
/* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-(--lv-text-primary) text-lg", children: r("connectionFlow.disconnected") }),
|
|
964
|
-
/* @__PURE__ */ s("p", { className: "mb-4 text-(--lv-text-muted) text-sm", children: r("connectionFlow.connectionClosed") })
|
|
965
|
-
] }),
|
|
966
|
-
/* @__PURE__ */ s(
|
|
967
|
-
"button",
|
|
968
|
-
{
|
|
969
|
-
type: "button",
|
|
970
|
-
onClick: t,
|
|
971
|
-
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)",
|
|
972
|
-
children: r("common.close")
|
|
973
|
-
}
|
|
974
|
-
)
|
|
975
|
-
] })).otherwise(() => /* @__PURE__ */ s(ne, { state: n })) });
|
|
976
718
|
};
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
return
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
}
|
|
996
|
-
function qt(t) {
|
|
997
|
-
var e, r, n = t.u, o = t.__;
|
|
719
|
+
var Qr = /* @__PURE__ */ b('<div class="rounded-md bg-(--lv-control-button-secondary-background) p-2 text-(--lv-text-muted)"><div>Unknown state:</div><div>URI:</div><div>Session Status:');
|
|
720
|
+
const te = (t) => {
|
|
721
|
+
const {
|
|
722
|
+
uri: e,
|
|
723
|
+
status: n
|
|
724
|
+
} = Et();
|
|
725
|
+
return console.error("Unknown state:", {
|
|
726
|
+
state: t.state
|
|
727
|
+
}), (() => {
|
|
728
|
+
var r = Qr(), o = r.firstChild;
|
|
729
|
+
o.firstChild;
|
|
730
|
+
var a = o.nextSibling;
|
|
731
|
+
a.firstChild;
|
|
732
|
+
var s = a.nextSibling;
|
|
733
|
+
return s.firstChild, g(o, () => JSON.stringify(t.state), null), g(a, e, null), g(s, () => JSON.stringify(n()), null), r;
|
|
734
|
+
})();
|
|
735
|
+
}, Ge = async (t) => {
|
|
736
|
+
if (!t) return !1;
|
|
998
737
|
try {
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
} catch {
|
|
1002
|
-
|
|
1003
|
-
}
|
|
1004
|
-
}
|
|
1005
|
-
function rr(t) {
|
|
1006
|
-
t();
|
|
1007
|
-
}
|
|
1008
|
-
function nr(t) {
|
|
1009
|
-
return t;
|
|
1010
|
-
}
|
|
1011
|
-
function or() {
|
|
1012
|
-
return [!1, rr];
|
|
1013
|
-
}
|
|
1014
|
-
var ar = yt;
|
|
1015
|
-
function ae(t, e) {
|
|
1016
|
-
this.props = t, this.context = e;
|
|
1017
|
-
}
|
|
1018
|
-
function bn(t, e) {
|
|
1019
|
-
function r(o) {
|
|
1020
|
-
var a = this.props.ref, i = a == o.ref;
|
|
1021
|
-
return !i && a && (a.call ? a(null) : a.current = null), e ? !e(this.props, o) || !i : oe(this.props, o);
|
|
1022
|
-
}
|
|
1023
|
-
function n(o) {
|
|
1024
|
-
return this.shouldComponentUpdate = r, tt(t, o);
|
|
1025
|
-
}
|
|
1026
|
-
return n.displayName = "Memo(" + (t.displayName || t.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n.type = t, n;
|
|
1027
|
-
}
|
|
1028
|
-
(ae.prototype = new bt()).isPureReactComponent = !0, ae.prototype.shouldComponentUpdate = function(t, e) {
|
|
1029
|
-
return oe(this.props, t) || oe(this.state, e);
|
|
1030
|
-
};
|
|
1031
|
-
var ke = U.__b;
|
|
1032
|
-
U.__b = function(t) {
|
|
1033
|
-
t.type && t.type.__f && t.ref && (t.props.ref = t.ref, t.ref = null), ke && ke(t);
|
|
1034
|
-
};
|
|
1035
|
-
var yn = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.forward_ref") || 3911;
|
|
1036
|
-
function wn(t) {
|
|
1037
|
-
function e(r) {
|
|
1038
|
-
var n = tr({}, r);
|
|
1039
|
-
return delete n.ref, t(n, r.ref || null);
|
|
738
|
+
if (navigator?.clipboard?.writeText)
|
|
739
|
+
return await navigator.clipboard.writeText(t), !0;
|
|
740
|
+
} catch (e) {
|
|
741
|
+
console.error("Failed to copy to clipboard", e);
|
|
1040
742
|
}
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
var e = it(t);
|
|
1049
|
-
if (e.length !== 1) throw "Children.only";
|
|
1050
|
-
return e[0];
|
|
1051
|
-
}, toArray: it }, kn = U.__e;
|
|
1052
|
-
U.__e = function(t, e, r, n) {
|
|
1053
|
-
if (t.then) {
|
|
1054
|
-
for (var o, a = e; a = a.__; ) if ((o = a.__c) && o.__c) return e.__e == null && (e.__e = r.__e, e.__k = r.__k), o.__c(t, e);
|
|
743
|
+
try {
|
|
744
|
+
const e = document.createElement("textarea");
|
|
745
|
+
e.value = t, e.style.position = "fixed", e.style.left = "-999999px", e.style.top = "-999999px", document.body.append(e), e.focus(), e.select();
|
|
746
|
+
const n = document.execCommand("copy");
|
|
747
|
+
return e.remove(), n;
|
|
748
|
+
} catch {
|
|
749
|
+
return !1;
|
|
1055
750
|
}
|
|
1056
|
-
kn(t, e, r, n);
|
|
1057
751
|
};
|
|
1058
|
-
var
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
function lr(t) {
|
|
1075
|
-
var e = t.__.__c;
|
|
1076
|
-
return e && e.__a && e.__a(t);
|
|
1077
|
-
}
|
|
1078
|
-
function Cn(t) {
|
|
1079
|
-
var e, r, n, o = null;
|
|
1080
|
-
function a(i) {
|
|
1081
|
-
if (e || (e = t()).then(function(l) {
|
|
1082
|
-
l && (o = l.default || l), n = !0;
|
|
1083
|
-
}, function(l) {
|
|
1084
|
-
r = l, n = !0;
|
|
1085
|
-
}), r) throw r;
|
|
1086
|
-
if (!n) throw e;
|
|
1087
|
-
return o ? tt(o, i) : null;
|
|
1088
|
-
}
|
|
1089
|
-
return a.displayName = "Lazy", a.__f = !0, a;
|
|
1090
|
-
}
|
|
1091
|
-
function Nt() {
|
|
1092
|
-
this.i = null, this.l = null;
|
|
1093
|
-
}
|
|
1094
|
-
U.unmount = function(t) {
|
|
1095
|
-
var e = t.__c;
|
|
1096
|
-
e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), Ne && Ne(t);
|
|
1097
|
-
}, (It.prototype = new bt()).__c = function(t, e) {
|
|
1098
|
-
var r = e.__c, n = this;
|
|
1099
|
-
n.o == null && (n.o = []), n.o.push(r);
|
|
1100
|
-
var o = lr(n.__v), a = !1, i = function() {
|
|
1101
|
-
a || (a = !0, r.__R = null, o ? o(l) : l());
|
|
752
|
+
var Jr = /* @__PURE__ */ b('<div class="flex flex-col items-center gap-4 px-2"><div class="w-full space-y-4 rounded-md border border-(--lv-control-button-secondary-border) bg-(--lv-card-background) p-4"><div class=w-full><button type=button class="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)"></button></div></div><div class="w-full text-sm text-(--lv-text-secondary)"><span>'), Xr = /* @__PURE__ */ b('<div class="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"><button type=button class="h-[200px] w-[200px] cursor-pointer rounded bg-(--lv-qr-background) text-(--lv-qr-color)">');
|
|
753
|
+
const Zr = (t) => {
|
|
754
|
+
const e = sr.default, n = e(0, "M");
|
|
755
|
+
return n.addData(t), n.make(), n.createSvgTag({
|
|
756
|
+
cellSize: 5,
|
|
757
|
+
margin: 0,
|
|
758
|
+
scalable: !0
|
|
759
|
+
});
|
|
760
|
+
}, Yr = () => {
|
|
761
|
+
const {
|
|
762
|
+
t
|
|
763
|
+
} = D(), {
|
|
764
|
+
uri: e
|
|
765
|
+
} = Et(), n = () => {
|
|
766
|
+
const r = e();
|
|
767
|
+
r && Ge(r);
|
|
1102
768
|
};
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
769
|
+
return (() => {
|
|
770
|
+
var r = Jr(), o = r.firstChild, a = o.firstChild, s = a.firstChild, i = o.nextSibling, c = i.firstChild;
|
|
771
|
+
return g(o, l(bt, {
|
|
772
|
+
get when() {
|
|
773
|
+
return e();
|
|
774
|
+
},
|
|
775
|
+
children: (d) => (() => {
|
|
776
|
+
var u = Xr(), v = u.firstChild;
|
|
777
|
+
return v.$$click = n, rt((f) => {
|
|
778
|
+
var h = String(t("handshake.clickToCopyUrl")), m = Zr(d());
|
|
779
|
+
return h !== f.e && et(v, "title", f.e = h), m !== f.t && (v.innerHTML = f.t = m), f;
|
|
780
|
+
}, {
|
|
781
|
+
e: void 0,
|
|
782
|
+
t: void 0
|
|
783
|
+
}), u;
|
|
784
|
+
})()
|
|
785
|
+
}), a), s.$$click = n, g(s, () => t("handshake.copyConnectionUrl")), g(c, () => t("handshake.scanCodeInstruction")), r;
|
|
786
|
+
})();
|
|
787
|
+
};
|
|
788
|
+
ft(["click"]);
|
|
789
|
+
var tn = /* @__PURE__ */ b('<div class="flex items-center justify-center"><div class="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent">'), $e = /* @__PURE__ */ b('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="text-(--lv-text-muted) text-sm">'), en = /* @__PURE__ */ b("<div>");
|
|
790
|
+
const _e = () => tn(), rn = () => {
|
|
791
|
+
const {
|
|
792
|
+
status: t
|
|
793
|
+
} = Et(), {
|
|
794
|
+
t: e
|
|
795
|
+
} = D();
|
|
796
|
+
return (() => {
|
|
797
|
+
var n = en();
|
|
798
|
+
return g(n, l(Ve, {
|
|
799
|
+
get children() {
|
|
800
|
+
return [l(vt, {
|
|
801
|
+
get when() {
|
|
802
|
+
return [jt.CREATED, jt.SIGNALING].includes(t()?.status ?? "");
|
|
803
|
+
},
|
|
804
|
+
get children() {
|
|
805
|
+
var r = $e(), o = r.firstChild, a = o.firstChild, s = a.nextSibling;
|
|
806
|
+
return g(r, l(_e, {}), o), g(a, () => e("connectionFlow.connecting")), g(s, () => e("connectionFlow.waitingForNetwork")), r;
|
|
807
|
+
}
|
|
808
|
+
}), l(vt, {
|
|
809
|
+
get when() {
|
|
810
|
+
return t()?.status === jt.READY;
|
|
811
|
+
},
|
|
812
|
+
get children() {
|
|
813
|
+
return l(Yr, {});
|
|
814
|
+
}
|
|
815
|
+
}), l(vt, {
|
|
816
|
+
get when() {
|
|
817
|
+
return t()?.status === jt.LINKING;
|
|
818
|
+
},
|
|
819
|
+
get children() {
|
|
820
|
+
var r = $e(), o = r.firstChild, a = o.firstChild, s = a.nextSibling;
|
|
821
|
+
return g(r, l(_e, {}), o), g(a, () => e("connectionFlow.establishingConnection")), g(s, () => e("connectionFlow.mayTakeFewSeconds")), r;
|
|
822
|
+
}
|
|
823
|
+
})];
|
|
1109
824
|
}
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
}
|
|
1113
|
-
};
|
|
1114
|
-
n.__u++ || 32 & e.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), t.then(i, i);
|
|
1115
|
-
}, It.prototype.componentWillUnmount = function() {
|
|
1116
|
-
this.o = [];
|
|
1117
|
-
}, It.prototype.render = function(t, e) {
|
|
1118
|
-
if (this.__b) {
|
|
1119
|
-
if (this.__v.__k) {
|
|
1120
|
-
var r = document.createElement("div"), n = this.__v.__k[0].__c;
|
|
1121
|
-
this.__v.__k[0] = ir(this.__b, r, n.__O = n.__P);
|
|
1122
|
-
}
|
|
1123
|
-
this.__b = null;
|
|
1124
|
-
}
|
|
1125
|
-
var o = e.__a && tt(St, null, t.fallback);
|
|
1126
|
-
return o && (o.__u &= -33), [tt(St, null, e.__a ? null : t.children), o];
|
|
825
|
+
})), n;
|
|
826
|
+
})();
|
|
1127
827
|
};
|
|
1128
|
-
var
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
828
|
+
var nn = /* @__PURE__ */ b('<div class="flex items-center justify-center"><div class="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent">'), on = /* @__PURE__ */ b('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="text-(--lv-text-muted) text-sm">'), an = /* @__PURE__ */ b('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><div class="mb-4 text-4xl">✅</div><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="text-(--lv-text-muted) text-sm">'), sn = /* @__PURE__ */ b('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><div class="mb-4 text-4xl">🔌</div><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="mb-4 text-(--lv-text-muted) text-sm"></p></div><button type=button class="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)">'), ln = /* @__PURE__ */ b("<div class=w-full style=view-transition-name:connection-flow>");
|
|
829
|
+
const cn = () => nn(), dn = (t) => {
|
|
830
|
+
const {
|
|
831
|
+
t: e
|
|
832
|
+
} = D(), {
|
|
833
|
+
provider: n
|
|
834
|
+
} = Ct(), [r, o] = O(n.getState().status);
|
|
835
|
+
return oe(() => {
|
|
836
|
+
n.on("status_change", o);
|
|
837
|
+
}), X(() => {
|
|
838
|
+
n.off("status_change", o);
|
|
839
|
+
}), (() => {
|
|
840
|
+
var a = ln();
|
|
841
|
+
return g(a, l(Ve, {
|
|
842
|
+
get fallback() {
|
|
843
|
+
return l(te, {
|
|
844
|
+
get state() {
|
|
845
|
+
return r();
|
|
846
|
+
}
|
|
847
|
+
});
|
|
848
|
+
},
|
|
849
|
+
get children() {
|
|
850
|
+
return [l(vt, {
|
|
851
|
+
get when() {
|
|
852
|
+
return r() === Q.CREATING;
|
|
853
|
+
},
|
|
854
|
+
get children() {
|
|
855
|
+
var s = on(), i = s.firstChild, c = i.firstChild, d = c.nextSibling;
|
|
856
|
+
return g(s, l(cn, {}), i), g(c, () => e("connectionFlow.preparingConnection")), g(d, () => e("connectionFlow.generatingKeys")), s;
|
|
857
|
+
}
|
|
858
|
+
}), l(vt, {
|
|
859
|
+
get when() {
|
|
860
|
+
return r() === Q.CONNECTING;
|
|
861
|
+
},
|
|
862
|
+
get children() {
|
|
863
|
+
return l(rn, {});
|
|
864
|
+
}
|
|
865
|
+
}), l(vt, {
|
|
866
|
+
get when() {
|
|
867
|
+
return r() === Q.CONNECTED;
|
|
868
|
+
},
|
|
869
|
+
get children() {
|
|
870
|
+
var s = an(), i = s.firstChild, c = i.firstChild, d = c.nextSibling, u = d.nextSibling;
|
|
871
|
+
return g(d, () => e("connectionFlow.connectedSuccessfully")), g(u, () => e("connectionFlow.walletConnectedReady")), s;
|
|
872
|
+
}
|
|
873
|
+
}), l(vt, {
|
|
874
|
+
get when() {
|
|
875
|
+
return r() === Q.ERROR;
|
|
876
|
+
},
|
|
877
|
+
get children() {
|
|
878
|
+
var s = sn(), i = s.firstChild, c = i.firstChild, d = c.nextSibling, u = d.nextSibling, v = i.nextSibling;
|
|
879
|
+
return g(d, () => e("connectionFlow.disconnected")), g(u, () => e("connectionFlow.connectionClosed")), ne(v, "click", t.onClose, !0), g(v, () => e("common.close")), s;
|
|
880
|
+
}
|
|
881
|
+
})];
|
|
882
|
+
}
|
|
883
|
+
})), a;
|
|
884
|
+
})();
|
|
1134
885
|
};
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
886
|
+
ft(["click"]);
|
|
887
|
+
var un = {
|
|
888
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
889
|
+
width: 24,
|
|
890
|
+
height: 24,
|
|
891
|
+
viewBox: "0 0 24 24",
|
|
892
|
+
fill: "none",
|
|
893
|
+
stroke: "currentColor",
|
|
894
|
+
"stroke-width": 2,
|
|
895
|
+
"stroke-linecap": "round",
|
|
896
|
+
"stroke-linejoin": "round"
|
|
897
|
+
}, xt = un, gn = /* @__PURE__ */ b("<svg>"), vn = (t) => {
|
|
898
|
+
for (const e in t)
|
|
899
|
+
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
1147
900
|
return !0;
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
},
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
}, Nt.prototype.componentDidUpdate = Nt.prototype.componentDidMount = function() {
|
|
1175
|
-
var t = this;
|
|
1176
|
-
this.l.forEach(function(e, r) {
|
|
1177
|
-
_e(t, r, e);
|
|
1178
|
-
});
|
|
1179
|
-
};
|
|
1180
|
-
var cr = typeof Symbol < "u" && Symbol.for && /* @__PURE__ */ Symbol.for("react.element") || 60103, An = /^(?: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]/, Tn = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, En = /[A-Z0-9]/g, Rn = typeof document < "u", On = function(t) {
|
|
1181
|
-
return (typeof Symbol < "u" && typeof /* @__PURE__ */ Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(t);
|
|
1182
|
-
};
|
|
1183
|
-
function Ln(t, e, r) {
|
|
1184
|
-
return e.__k == null && (e.textContent = ""), mt(t, e), typeof r == "function" && r(), t ? t.__c : null;
|
|
1185
|
-
}
|
|
1186
|
-
function Pn(t, e, r) {
|
|
1187
|
-
return xr(t, e), typeof r == "function" && r(), t ? t.__c : null;
|
|
1188
|
-
}
|
|
1189
|
-
bt.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t) {
|
|
1190
|
-
Object.defineProperty(bt.prototype, t, { configurable: !0, get: function() {
|
|
1191
|
-
return this["UNSAFE_" + t];
|
|
1192
|
-
}, set: function(e) {
|
|
1193
|
-
Object.defineProperty(this, t, { configurable: !0, writable: !0, value: e });
|
|
1194
|
-
} });
|
|
1195
|
-
});
|
|
1196
|
-
var Se = U.event;
|
|
1197
|
-
function Dn() {
|
|
1198
|
-
}
|
|
1199
|
-
function Bn() {
|
|
1200
|
-
return this.cancelBubble;
|
|
1201
|
-
}
|
|
1202
|
-
function In() {
|
|
1203
|
-
return this.defaultPrevented;
|
|
1204
|
-
}
|
|
1205
|
-
U.event = function(t) {
|
|
1206
|
-
return Se && (t = Se(t)), t.persist = Dn, t.isPropagationStopped = Bn, t.isDefaultPrevented = In, t.nativeEvent = t;
|
|
1207
|
-
};
|
|
1208
|
-
var ge, jn = { enumerable: !1, configurable: !0, get: function() {
|
|
1209
|
-
return this.class;
|
|
1210
|
-
} }, Ae = U.vnode;
|
|
1211
|
-
U.vnode = function(t) {
|
|
1212
|
-
typeof t.type == "string" && (function(e) {
|
|
1213
|
-
var r = e.props, n = e.type, o = {}, a = n.indexOf("-") === -1;
|
|
1214
|
-
for (var i in r) {
|
|
1215
|
-
var l = r[i];
|
|
1216
|
-
if (!(i === "value" && "defaultValue" in r && l == null || Rn && i === "children" && n === "noscript" || i === "class" || i === "className")) {
|
|
1217
|
-
var c = i.toLowerCase();
|
|
1218
|
-
i === "defaultValue" && "value" in r && r.value == null ? i = "value" : i === "download" && l === !0 ? l = "" : c === "translate" && l === "no" ? l = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? i = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" || On(r.type) ? c === "onfocus" ? i = "onfocusin" : c === "onblur" ? i = "onfocusout" : Tn.test(i) && (i = c) : c = i = "oninput" : a && An.test(i) ? i = i.replace(En, "-$&").toLowerCase() : l === null && (l = void 0), c === "oninput" && o[i = c] && (i = "oninputCapture"), o[i] = l;
|
|
901
|
+
return !1;
|
|
902
|
+
}, hn = (...t) => t.filter((e, n, r) => !!e && e.trim() !== "" && r.indexOf(e) === n).join(" ").trim(), pn = (t) => t.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, n, r) => r ? r.toUpperCase() : n.toLowerCase()), Te = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), fn = (t) => {
|
|
903
|
+
const e = pn(t);
|
|
904
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
905
|
+
}, bn = (t) => {
|
|
906
|
+
const [e, n] = ae(t, ["color", "size", "strokeWidth", "children", "class", "name", "iconNode", "absoluteStrokeWidth"]);
|
|
907
|
+
return (() => {
|
|
908
|
+
var r = gn();
|
|
909
|
+
return Qt(r, W(xt, {
|
|
910
|
+
get width() {
|
|
911
|
+
return e.size ?? xt.width;
|
|
912
|
+
},
|
|
913
|
+
get height() {
|
|
914
|
+
return e.size ?? xt.height;
|
|
915
|
+
},
|
|
916
|
+
get stroke() {
|
|
917
|
+
return e.color ?? xt.stroke;
|
|
918
|
+
},
|
|
919
|
+
get "stroke-width"() {
|
|
920
|
+
return pt(() => !!e.absoluteStrokeWidth)() ? Number(e.strokeWidth ?? xt["stroke-width"]) * 24 / Number(e.size) : Number(e.strokeWidth ?? xt["stroke-width"]);
|
|
921
|
+
},
|
|
922
|
+
get class() {
|
|
923
|
+
return hn("lucide", "lucide-icon", ...e.name != null ? [`lucide-${Te(fn(e.name))}`, `lucide-${Te(e.name)}`] : [], e.class != null ? e.class : "");
|
|
924
|
+
},
|
|
925
|
+
get "aria-hidden"() {
|
|
926
|
+
return !e.children && !vn(n) ? "true" : void 0;
|
|
1219
927
|
}
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
};
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
}
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
},
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
return r.className && (c = r.className), t.className && (c = (c ? c + " " : "") + t.className), /* @__PURE__ */ ut.createElement("svg", Vt({
|
|
1359
|
-
stroke: "currentColor",
|
|
1360
|
-
fill: "currentColor",
|
|
1361
|
-
strokeWidth: "0"
|
|
1362
|
-
}, r.attr, n, i, {
|
|
1363
|
-
className: c,
|
|
1364
|
-
style: Mt(Mt({
|
|
1365
|
-
color: t.color || r.color
|
|
1366
|
-
}, r.style), t.style),
|
|
1367
|
-
height: l,
|
|
1368
|
-
width: l,
|
|
1369
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1370
|
-
}), a && /* @__PURE__ */ ut.createElement("title", null, a), t.children);
|
|
1371
|
-
};
|
|
1372
|
-
return Re !== void 0 ? /* @__PURE__ */ ut.createElement(Re.Consumer, null, (r) => e(r)) : e(ur);
|
|
1373
|
-
}
|
|
1374
|
-
function ro(t) {
|
|
1375
|
-
return dt({ 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);
|
|
1376
|
-
}
|
|
1377
|
-
var no = /\s+/g, oo = (t) => typeof t != "string" || !t ? t : t.replace(no, " ").trim(), Ft = (...t) => {
|
|
1378
|
-
const e = [], r = (n) => {
|
|
1379
|
-
if (!n && n !== 0 && n !== 0n) return;
|
|
1380
|
-
if (Array.isArray(n)) {
|
|
1381
|
-
for (let a = 0, i = n.length; a < i; a++) r(n[a]);
|
|
928
|
+
}, n), !0, !0), g(r, l(ct, {
|
|
929
|
+
get each() {
|
|
930
|
+
return e.iconNode;
|
|
931
|
+
},
|
|
932
|
+
children: ([o, a]) => l(ar, W({
|
|
933
|
+
component: o
|
|
934
|
+
}, a))
|
|
935
|
+
})), r;
|
|
936
|
+
})();
|
|
937
|
+
}, dt = bn, mn = [["path", {
|
|
938
|
+
d: "m15 18-6-6 6-6",
|
|
939
|
+
key: "1wnfg3"
|
|
940
|
+
}]], yn = (t) => l(dt, W(t, {
|
|
941
|
+
iconNode: mn,
|
|
942
|
+
name: "chevron-left"
|
|
943
|
+
})), wn = yn, xn = [["path", {
|
|
944
|
+
d: "m9 18 6-6-6-6",
|
|
945
|
+
key: "mthhwq"
|
|
946
|
+
}]], kn = (t) => l(dt, W(t, {
|
|
947
|
+
iconNode: xn,
|
|
948
|
+
name: "chevron-right"
|
|
949
|
+
})), Cn = kn, Sn = [["circle", {
|
|
950
|
+
cx: "12",
|
|
951
|
+
cy: "12",
|
|
952
|
+
r: "10",
|
|
953
|
+
key: "1mglay"
|
|
954
|
+
}], ["path", {
|
|
955
|
+
d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",
|
|
956
|
+
key: "1u773s"
|
|
957
|
+
}], ["path", {
|
|
958
|
+
d: "M12 17h.01",
|
|
959
|
+
key: "p32p05"
|
|
960
|
+
}]], An = (t) => l(dt, W(t, {
|
|
961
|
+
iconNode: Sn,
|
|
962
|
+
name: "circle-question-mark"
|
|
963
|
+
})), Qe = An, $n = [["path", {
|
|
964
|
+
d: "M5 12h14",
|
|
965
|
+
key: "1ays0h"
|
|
966
|
+
}], ["path", {
|
|
967
|
+
d: "M12 5v14",
|
|
968
|
+
key: "s699le"
|
|
969
|
+
}]], _n = (t) => l(dt, W(t, {
|
|
970
|
+
iconNode: $n,
|
|
971
|
+
name: "plus"
|
|
972
|
+
})), Tn = _n, Nn = [["rect", {
|
|
973
|
+
width: "5",
|
|
974
|
+
height: "5",
|
|
975
|
+
x: "3",
|
|
976
|
+
y: "3",
|
|
977
|
+
rx: "1",
|
|
978
|
+
key: "1tu5fj"
|
|
979
|
+
}], ["rect", {
|
|
980
|
+
width: "5",
|
|
981
|
+
height: "5",
|
|
982
|
+
x: "16",
|
|
983
|
+
y: "3",
|
|
984
|
+
rx: "1",
|
|
985
|
+
key: "1v8r4q"
|
|
986
|
+
}], ["rect", {
|
|
987
|
+
width: "5",
|
|
988
|
+
height: "5",
|
|
989
|
+
x: "3",
|
|
990
|
+
y: "16",
|
|
991
|
+
rx: "1",
|
|
992
|
+
key: "1x03jg"
|
|
993
|
+
}], ["path", {
|
|
994
|
+
d: "M21 16h-3a2 2 0 0 0-2 2v3",
|
|
995
|
+
key: "177gqh"
|
|
996
|
+
}], ["path", {
|
|
997
|
+
d: "M21 21v.01",
|
|
998
|
+
key: "ents32"
|
|
999
|
+
}], ["path", {
|
|
1000
|
+
d: "M12 7v3a2 2 0 0 1-2 2H7",
|
|
1001
|
+
key: "8crl2c"
|
|
1002
|
+
}], ["path", {
|
|
1003
|
+
d: "M3 12h.01",
|
|
1004
|
+
key: "nlz23k"
|
|
1005
|
+
}], ["path", {
|
|
1006
|
+
d: "M12 3h.01",
|
|
1007
|
+
key: "n36tog"
|
|
1008
|
+
}], ["path", {
|
|
1009
|
+
d: "M12 16v.01",
|
|
1010
|
+
key: "133mhm"
|
|
1011
|
+
}], ["path", {
|
|
1012
|
+
d: "M16 12h1",
|
|
1013
|
+
key: "1slzba"
|
|
1014
|
+
}], ["path", {
|
|
1015
|
+
d: "M21 12v.01",
|
|
1016
|
+
key: "1lwtk9"
|
|
1017
|
+
}], ["path", {
|
|
1018
|
+
d: "M12 21v-1",
|
|
1019
|
+
key: "1880an"
|
|
1020
|
+
}]], Bn = (t) => l(dt, W(t, {
|
|
1021
|
+
iconNode: Nn,
|
|
1022
|
+
name: "qr-code"
|
|
1023
|
+
})), Rn = Bn, En = [["path", {
|
|
1024
|
+
d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
|
|
1025
|
+
key: "1i5ecw"
|
|
1026
|
+
}], ["circle", {
|
|
1027
|
+
cx: "12",
|
|
1028
|
+
cy: "12",
|
|
1029
|
+
r: "3",
|
|
1030
|
+
key: "1v7zrd"
|
|
1031
|
+
}]], On = (t) => l(dt, W(t, {
|
|
1032
|
+
iconNode: En,
|
|
1033
|
+
name: "settings"
|
|
1034
|
+
})), Ln = On, Mn = [["path", {
|
|
1035
|
+
d: "M10 11v6",
|
|
1036
|
+
key: "nco0om"
|
|
1037
|
+
}], ["path", {
|
|
1038
|
+
d: "M14 11v6",
|
|
1039
|
+
key: "outv1u"
|
|
1040
|
+
}], ["path", {
|
|
1041
|
+
d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",
|
|
1042
|
+
key: "miytrc"
|
|
1043
|
+
}], ["path", {
|
|
1044
|
+
d: "M3 6h18",
|
|
1045
|
+
key: "d0wm0j"
|
|
1046
|
+
}], ["path", {
|
|
1047
|
+
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
1048
|
+
key: "e791ji"
|
|
1049
|
+
}]], Pn = (t) => l(dt, W(t, {
|
|
1050
|
+
iconNode: Mn,
|
|
1051
|
+
name: "trash-2"
|
|
1052
|
+
})), Vn = Pn, jn = [["path", {
|
|
1053
|
+
d: "M18 6 6 18",
|
|
1054
|
+
key: "1bl5f8"
|
|
1055
|
+
}], ["path", {
|
|
1056
|
+
d: "m6 6 12 12",
|
|
1057
|
+
key: "d8bk6v"
|
|
1058
|
+
}]], zn = (t) => l(dt, W(t, {
|
|
1059
|
+
iconNode: jn,
|
|
1060
|
+
name: "x"
|
|
1061
|
+
})), Fn = zn, Dn = /\s+/g, In = (t) => typeof t != "string" || !t ? t : t.replace(Dn, " ").trim(), It = (...t) => {
|
|
1062
|
+
const e = [], n = (r) => {
|
|
1063
|
+
if (!r && r !== 0 && r !== 0n) return;
|
|
1064
|
+
if (Array.isArray(r)) {
|
|
1065
|
+
for (let a = 0, s = r.length; a < s; a++) n(r[a]);
|
|
1382
1066
|
return;
|
|
1383
1067
|
}
|
|
1384
|
-
const o = typeof
|
|
1068
|
+
const o = typeof r;
|
|
1385
1069
|
if (o === "string" || o === "number" || o === "bigint") {
|
|
1386
|
-
if (o === "number" &&
|
|
1387
|
-
e.push(String(
|
|
1070
|
+
if (o === "number" && r !== r) return;
|
|
1071
|
+
e.push(String(r));
|
|
1388
1072
|
} else if (o === "object") {
|
|
1389
|
-
const a = Object.keys(
|
|
1390
|
-
for (let
|
|
1391
|
-
const c = a[
|
|
1392
|
-
|
|
1073
|
+
const a = Object.keys(r);
|
|
1074
|
+
for (let s = 0, i = a.length; s < i; s++) {
|
|
1075
|
+
const c = a[s];
|
|
1076
|
+
r[c] && e.push(c);
|
|
1393
1077
|
}
|
|
1394
1078
|
}
|
|
1395
1079
|
};
|
|
1396
|
-
for (let
|
|
1397
|
-
const a = t[
|
|
1398
|
-
a != null &&
|
|
1080
|
+
for (let r = 0, o = t.length; r < o; r++) {
|
|
1081
|
+
const a = t[r];
|
|
1082
|
+
a != null && n(a);
|
|
1399
1083
|
}
|
|
1400
|
-
return e.length > 0 ?
|
|
1401
|
-
},
|
|
1084
|
+
return e.length > 0 ? In(e.join(" ")) : void 0;
|
|
1085
|
+
}, Ne = (t) => t === !1 ? "false" : t === !0 ? "true" : t === 0 ? "0" : t, U = (t) => {
|
|
1402
1086
|
if (!t || typeof t != "object") return !0;
|
|
1403
1087
|
for (const e in t) return !1;
|
|
1404
1088
|
return !0;
|
|
1405
|
-
},
|
|
1089
|
+
}, Un = (t, e) => {
|
|
1406
1090
|
if (t === e) return !0;
|
|
1407
1091
|
if (!t || !e) return !1;
|
|
1408
|
-
const
|
|
1409
|
-
if (
|
|
1410
|
-
for (let o = 0; o <
|
|
1411
|
-
const a =
|
|
1412
|
-
if (!
|
|
1092
|
+
const n = Object.keys(t), r = Object.keys(e);
|
|
1093
|
+
if (n.length !== r.length) return !1;
|
|
1094
|
+
for (let o = 0; o < n.length; o++) {
|
|
1095
|
+
const a = n[o];
|
|
1096
|
+
if (!r.includes(a) || t[a] !== e[a]) return !1;
|
|
1413
1097
|
}
|
|
1414
1098
|
return !0;
|
|
1415
|
-
},
|
|
1416
|
-
for (const
|
|
1417
|
-
if (Object.prototype.hasOwnProperty.call(e,
|
|
1418
|
-
const
|
|
1419
|
-
|
|
1099
|
+
}, Kn = (t, e) => {
|
|
1100
|
+
for (const n in e)
|
|
1101
|
+
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
1102
|
+
const r = e[n];
|
|
1103
|
+
n in t ? t[n] = It(t[n], r) : t[n] = r;
|
|
1420
1104
|
}
|
|
1421
1105
|
return t;
|
|
1422
|
-
},
|
|
1423
|
-
for (let
|
|
1424
|
-
const
|
|
1425
|
-
Array.isArray(
|
|
1106
|
+
}, Je = (t, e) => {
|
|
1107
|
+
for (let n = 0; n < t.length; n++) {
|
|
1108
|
+
const r = t[n];
|
|
1109
|
+
Array.isArray(r) ? Je(r, e) : r && e.push(r);
|
|
1426
1110
|
}
|
|
1427
|
-
},
|
|
1111
|
+
}, Xe = (...t) => {
|
|
1428
1112
|
const e = [];
|
|
1429
|
-
|
|
1430
|
-
const
|
|
1431
|
-
for (let
|
|
1432
|
-
e[
|
|
1433
|
-
return
|
|
1434
|
-
},
|
|
1435
|
-
const
|
|
1436
|
-
for (const
|
|
1437
|
-
const o = t[
|
|
1438
|
-
if (
|
|
1439
|
-
const a = e[
|
|
1440
|
-
Array.isArray(o) || Array.isArray(a) ? r
|
|
1113
|
+
Je(t, e);
|
|
1114
|
+
const n = [];
|
|
1115
|
+
for (let r = 0; r < e.length; r++)
|
|
1116
|
+
e[r] && n.push(e[r]);
|
|
1117
|
+
return n;
|
|
1118
|
+
}, ee = (t, e) => {
|
|
1119
|
+
const n = {};
|
|
1120
|
+
for (const r in t) {
|
|
1121
|
+
const o = t[r];
|
|
1122
|
+
if (r in e) {
|
|
1123
|
+
const a = e[r];
|
|
1124
|
+
Array.isArray(o) || Array.isArray(a) ? n[r] = Xe(a, o) : typeof o == "object" && typeof a == "object" && o && a ? n[r] = ee(o, a) : n[r] = a + " " + o;
|
|
1441
1125
|
} else
|
|
1442
|
-
r
|
|
1126
|
+
n[r] = o;
|
|
1443
1127
|
}
|
|
1444
|
-
for (const
|
|
1445
|
-
|
|
1446
|
-
return
|
|
1447
|
-
},
|
|
1128
|
+
for (const r in e)
|
|
1129
|
+
r in t || (n[r] = e[r]);
|
|
1130
|
+
return n;
|
|
1131
|
+
}, Wn = {
|
|
1448
1132
|
twMerge: !0,
|
|
1449
1133
|
twMergeConfig: {}
|
|
1450
1134
|
};
|
|
1451
|
-
function
|
|
1452
|
-
let t = null, e = {},
|
|
1135
|
+
function Hn() {
|
|
1136
|
+
let t = null, e = {}, n = !1;
|
|
1453
1137
|
return {
|
|
1454
1138
|
get cachedTwMerge() {
|
|
1455
1139
|
return t;
|
|
1456
1140
|
},
|
|
1457
|
-
set cachedTwMerge(
|
|
1458
|
-
t =
|
|
1141
|
+
set cachedTwMerge(r) {
|
|
1142
|
+
t = r;
|
|
1459
1143
|
},
|
|
1460
1144
|
get cachedTwMergeConfig() {
|
|
1461
1145
|
return e;
|
|
1462
1146
|
},
|
|
1463
|
-
set cachedTwMergeConfig(
|
|
1464
|
-
e =
|
|
1147
|
+
set cachedTwMergeConfig(r) {
|
|
1148
|
+
e = r;
|
|
1465
1149
|
},
|
|
1466
1150
|
get didTwMergeConfigChange() {
|
|
1467
|
-
return
|
|
1151
|
+
return n;
|
|
1468
1152
|
},
|
|
1469
|
-
set didTwMergeConfigChange(
|
|
1470
|
-
|
|
1153
|
+
set didTwMergeConfigChange(r) {
|
|
1154
|
+
n = r;
|
|
1471
1155
|
},
|
|
1472
1156
|
reset() {
|
|
1473
|
-
t = null, e = {},
|
|
1157
|
+
t = null, e = {}, n = !1;
|
|
1474
1158
|
}
|
|
1475
1159
|
};
|
|
1476
1160
|
}
|
|
1477
|
-
var
|
|
1478
|
-
const e = (
|
|
1161
|
+
var Gt = Hn(), qn = (t) => {
|
|
1162
|
+
const e = (r, o) => {
|
|
1479
1163
|
const {
|
|
1480
1164
|
extend: a = null,
|
|
1481
|
-
slots:
|
|
1482
|
-
variants:
|
|
1165
|
+
slots: s = {},
|
|
1166
|
+
variants: i = {},
|
|
1483
1167
|
compoundVariants: c = [],
|
|
1484
|
-
compoundSlots:
|
|
1485
|
-
defaultVariants:
|
|
1486
|
-
} =
|
|
1487
|
-
!
|
|
1488
|
-
const
|
|
1168
|
+
compoundSlots: d = [],
|
|
1169
|
+
defaultVariants: u = {}
|
|
1170
|
+
} = r, v = { ...Wn, ...o }, f = a?.base ? It(a.base, r?.base) : r?.base, h = a?.variants && !U(a.variants) ? ee(i, a.variants) : i, m = a?.defaultVariants && !U(a.defaultVariants) ? { ...a.defaultVariants, ...u } : u;
|
|
1171
|
+
!U(v.twMergeConfig) && !Un(v.twMergeConfig, Gt.cachedTwMergeConfig) && (Gt.didTwMergeConfigChange = !0, Gt.cachedTwMergeConfig = v.twMergeConfig);
|
|
1172
|
+
const C = U(a?.slots), p = U(s) ? {} : {
|
|
1489
1173
|
// add "base" to the slots object
|
|
1490
|
-
base:
|
|
1491
|
-
...
|
|
1492
|
-
},
|
|
1174
|
+
base: It(r?.base, C && a?.base),
|
|
1175
|
+
...s
|
|
1176
|
+
}, L = C ? p : Kn(
|
|
1493
1177
|
{ ...a?.slots },
|
|
1494
|
-
|
|
1495
|
-
),
|
|
1496
|
-
if (
|
|
1497
|
-
return t(
|
|
1498
|
-
if (
|
|
1178
|
+
U(p) ? { base: r?.base } : p
|
|
1179
|
+
), M = U(a?.compoundVariants) ? c : Xe(a?.compoundVariants, c), y = (P) => {
|
|
1180
|
+
if (U(h) && U(s) && C)
|
|
1181
|
+
return t(f, P?.class, P?.className)(v);
|
|
1182
|
+
if (M && !Array.isArray(M))
|
|
1499
1183
|
throw new TypeError(
|
|
1500
|
-
`The "compoundVariants" prop must be an array. Received: ${typeof
|
|
1184
|
+
`The "compoundVariants" prop must be an array. Received: ${typeof M}`
|
|
1501
1185
|
);
|
|
1502
|
-
if (
|
|
1186
|
+
if (d && !Array.isArray(d))
|
|
1503
1187
|
throw new TypeError(
|
|
1504
|
-
`The "compoundSlots" prop must be an array. Received: ${typeof
|
|
1188
|
+
`The "compoundSlots" prop must be an array. Received: ${typeof d}`
|
|
1505
1189
|
);
|
|
1506
|
-
const
|
|
1507
|
-
const
|
|
1508
|
-
if (!
|
|
1190
|
+
const Lt = (x, k = h, S = null, T = null) => {
|
|
1191
|
+
const A = k[x];
|
|
1192
|
+
if (!A || U(A))
|
|
1509
1193
|
return null;
|
|
1510
|
-
const
|
|
1511
|
-
if (
|
|
1512
|
-
const F =
|
|
1194
|
+
const N = T?.[x] ?? P?.[x];
|
|
1195
|
+
if (N === null) return null;
|
|
1196
|
+
const F = Ne(N);
|
|
1513
1197
|
if (typeof F == "object")
|
|
1514
1198
|
return null;
|
|
1515
|
-
const
|
|
1516
|
-
return
|
|
1517
|
-
},
|
|
1518
|
-
if (!
|
|
1519
|
-
const
|
|
1520
|
-
for (let
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1199
|
+
const Z = m?.[x], V = F ?? Ne(Z);
|
|
1200
|
+
return A[V || "false"];
|
|
1201
|
+
}, mt = () => {
|
|
1202
|
+
if (!h) return null;
|
|
1203
|
+
const x = Object.keys(h), k = [];
|
|
1204
|
+
for (let S = 0; S < x.length; S++) {
|
|
1205
|
+
const T = Lt(x[S], h);
|
|
1206
|
+
T && k.push(T);
|
|
1523
1207
|
}
|
|
1524
|
-
return
|
|
1525
|
-
},
|
|
1526
|
-
if (!
|
|
1527
|
-
const
|
|
1528
|
-
for (const
|
|
1529
|
-
const
|
|
1530
|
-
|
|
1208
|
+
return k;
|
|
1209
|
+
}, Wt = (x, k) => {
|
|
1210
|
+
if (!h || typeof h != "object") return null;
|
|
1211
|
+
const S = [];
|
|
1212
|
+
for (const T in h) {
|
|
1213
|
+
const A = Lt(T, h, x, k), N = x === "base" && typeof A == "string" ? A : A && A[x];
|
|
1214
|
+
N && S.push(N);
|
|
1531
1215
|
}
|
|
1532
|
-
return
|
|
1533
|
-
},
|
|
1534
|
-
for (const
|
|
1535
|
-
const
|
|
1536
|
-
|
|
1216
|
+
return S;
|
|
1217
|
+
}, Mt = {};
|
|
1218
|
+
for (const x in P) {
|
|
1219
|
+
const k = P[x];
|
|
1220
|
+
k !== void 0 && (Mt[x] = k);
|
|
1537
1221
|
}
|
|
1538
|
-
const
|
|
1539
|
-
const
|
|
1540
|
-
[
|
|
1222
|
+
const At = (x, k) => {
|
|
1223
|
+
const S = typeof P?.[x] == "object" ? {
|
|
1224
|
+
[x]: P[x]?.initial
|
|
1541
1225
|
} : {};
|
|
1542
1226
|
return {
|
|
1543
|
-
...
|
|
1544
|
-
...
|
|
1545
|
-
...
|
|
1546
|
-
...
|
|
1227
|
+
...m,
|
|
1228
|
+
...Mt,
|
|
1229
|
+
...S,
|
|
1230
|
+
...k
|
|
1547
1231
|
};
|
|
1548
|
-
},
|
|
1549
|
-
const
|
|
1550
|
-
for (let
|
|
1551
|
-
const { class:
|
|
1552
|
-
let
|
|
1553
|
-
const
|
|
1554
|
-
for (const
|
|
1555
|
-
const
|
|
1556
|
-
if (Array.isArray(
|
|
1557
|
-
if (!
|
|
1558
|
-
|
|
1232
|
+
}, Pt = (x = [], k) => {
|
|
1233
|
+
const S = [], T = x.length;
|
|
1234
|
+
for (let A = 0; A < T; A++) {
|
|
1235
|
+
const { class: N, className: F, ...Z } = x[A];
|
|
1236
|
+
let V = !0;
|
|
1237
|
+
const q = At(null, k);
|
|
1238
|
+
for (const nt in Z) {
|
|
1239
|
+
const G = Z[nt], yt = q[nt];
|
|
1240
|
+
if (Array.isArray(G)) {
|
|
1241
|
+
if (!G.includes(yt)) {
|
|
1242
|
+
V = !1;
|
|
1559
1243
|
break;
|
|
1560
1244
|
}
|
|
1561
1245
|
} else {
|
|
1562
|
-
if ((
|
|
1246
|
+
if ((G == null || G === !1) && (yt == null || yt === !1))
|
|
1563
1247
|
continue;
|
|
1564
|
-
if (
|
|
1565
|
-
|
|
1248
|
+
if (yt !== G) {
|
|
1249
|
+
V = !1;
|
|
1566
1250
|
break;
|
|
1567
1251
|
}
|
|
1568
1252
|
}
|
|
1569
1253
|
}
|
|
1570
|
-
|
|
1254
|
+
V && (N && S.push(N), F && S.push(F));
|
|
1571
1255
|
}
|
|
1572
|
-
return
|
|
1573
|
-
},
|
|
1574
|
-
const
|
|
1575
|
-
if (!Array.isArray(
|
|
1576
|
-
const
|
|
1577
|
-
for (let
|
|
1578
|
-
const
|
|
1579
|
-
if (typeof
|
|
1580
|
-
|
|
1581
|
-
else if (typeof
|
|
1582
|
-
for (const F in
|
|
1583
|
-
|
|
1256
|
+
return S;
|
|
1257
|
+
}, Vt = (x) => {
|
|
1258
|
+
const k = Pt(M, x);
|
|
1259
|
+
if (!Array.isArray(k)) return k;
|
|
1260
|
+
const S = {}, T = t;
|
|
1261
|
+
for (let A = 0; A < k.length; A++) {
|
|
1262
|
+
const N = k[A];
|
|
1263
|
+
if (typeof N == "string")
|
|
1264
|
+
S.base = T(S.base, N)(v);
|
|
1265
|
+
else if (typeof N == "object")
|
|
1266
|
+
for (const F in N)
|
|
1267
|
+
S[F] = T(S[F], N[F])(v);
|
|
1584
1268
|
}
|
|
1585
|
-
return
|
|
1586
|
-
},
|
|
1587
|
-
if (
|
|
1588
|
-
const
|
|
1589
|
-
for (let
|
|
1269
|
+
return S;
|
|
1270
|
+
}, ut = (x) => {
|
|
1271
|
+
if (d.length < 1) return null;
|
|
1272
|
+
const k = {}, S = At(null, x);
|
|
1273
|
+
for (let T = 0; T < d.length; T++) {
|
|
1590
1274
|
const {
|
|
1591
|
-
slots:
|
|
1592
|
-
class:
|
|
1275
|
+
slots: A = [],
|
|
1276
|
+
class: N,
|
|
1593
1277
|
className: F,
|
|
1594
|
-
...
|
|
1595
|
-
} =
|
|
1596
|
-
if (!
|
|
1597
|
-
let
|
|
1598
|
-
for (const
|
|
1599
|
-
const
|
|
1600
|
-
if (
|
|
1601
|
-
|
|
1278
|
+
...Z
|
|
1279
|
+
} = d[T];
|
|
1280
|
+
if (!U(Z)) {
|
|
1281
|
+
let V = !0;
|
|
1282
|
+
for (const q in Z) {
|
|
1283
|
+
const nt = S[q], G = Z[q];
|
|
1284
|
+
if (nt === void 0 || (Array.isArray(G) ? !G.includes(nt) : G !== nt)) {
|
|
1285
|
+
V = !1;
|
|
1602
1286
|
break;
|
|
1603
1287
|
}
|
|
1604
1288
|
}
|
|
1605
|
-
if (!
|
|
1289
|
+
if (!V) continue;
|
|
1606
1290
|
}
|
|
1607
|
-
for (let
|
|
1608
|
-
const
|
|
1609
|
-
|
|
1291
|
+
for (let V = 0; V < A.length; V++) {
|
|
1292
|
+
const q = A[V];
|
|
1293
|
+
k[q] || (k[q] = []), k[q].push([N, F]);
|
|
1610
1294
|
}
|
|
1611
1295
|
}
|
|
1612
|
-
return
|
|
1296
|
+
return k;
|
|
1613
1297
|
};
|
|
1614
|
-
if (!
|
|
1615
|
-
const
|
|
1616
|
-
if (typeof
|
|
1617
|
-
const
|
|
1618
|
-
for (const
|
|
1619
|
-
|
|
1620
|
-
const
|
|
1621
|
-
return
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
)(
|
|
1298
|
+
if (!U(s) || !C) {
|
|
1299
|
+
const x = {};
|
|
1300
|
+
if (typeof L == "object" && !U(L)) {
|
|
1301
|
+
const k = t;
|
|
1302
|
+
for (const S in L)
|
|
1303
|
+
x[S] = (T) => {
|
|
1304
|
+
const A = Vt(T), N = ut(T);
|
|
1305
|
+
return k(
|
|
1306
|
+
L[S],
|
|
1307
|
+
Wt(S, T),
|
|
1308
|
+
A ? A[S] : void 0,
|
|
1309
|
+
N ? N[S] : void 0,
|
|
1310
|
+
T?.class,
|
|
1311
|
+
T?.className
|
|
1312
|
+
)(v);
|
|
1629
1313
|
};
|
|
1630
1314
|
}
|
|
1631
|
-
return
|
|
1315
|
+
return x;
|
|
1632
1316
|
}
|
|
1633
1317
|
return t(
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
)(
|
|
1640
|
-
},
|
|
1641
|
-
if (!(!
|
|
1642
|
-
return Object.keys(
|
|
1318
|
+
f,
|
|
1319
|
+
mt(),
|
|
1320
|
+
Pt(M),
|
|
1321
|
+
P?.class,
|
|
1322
|
+
P?.className
|
|
1323
|
+
)(v);
|
|
1324
|
+
}, St = () => {
|
|
1325
|
+
if (!(!h || typeof h != "object"))
|
|
1326
|
+
return Object.keys(h);
|
|
1643
1327
|
};
|
|
1644
|
-
return
|
|
1328
|
+
return y.variantKeys = St(), y.extend = a, y.base = f, y.slots = L, y.variants = h, y.defaultVariants = m, y.compoundSlots = d, y.compoundVariants = M, y;
|
|
1645
1329
|
};
|
|
1646
1330
|
return {
|
|
1647
1331
|
tv: e,
|
|
1648
|
-
createTV: (
|
|
1332
|
+
createTV: (r) => (o, a) => e(o, a ? ee(r, a) : r)
|
|
1649
1333
|
};
|
|
1650
|
-
},
|
|
1651
|
-
const
|
|
1334
|
+
}, Gn = (...t) => (e) => It(t) || void 0, { tv: Ut } = qn(Gn), Qn = /* @__PURE__ */ b("<a>"), Jn = /* @__PURE__ */ b("<button type=button>");
|
|
1335
|
+
const Be = Ut({
|
|
1652
1336
|
base: "flex items-center justify-center rounded-lg transition-all duration-100 cursor-pointer active:scale-95",
|
|
1653
1337
|
variants: {
|
|
1654
1338
|
$variant: {
|
|
@@ -1671,312 +1355,354 @@ const Pe = Wt({
|
|
|
1671
1355
|
$variant: "primary",
|
|
1672
1356
|
$aspect: "auto"
|
|
1673
1357
|
}
|
|
1674
|
-
})
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
href
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1358
|
+
}), kt = (t) => {
|
|
1359
|
+
const [e, n] = ae(t, ["children", "class", "$variant", "$size", "$aspect", "href", "onClick"]);
|
|
1360
|
+
return e.href ? (() => {
|
|
1361
|
+
var r = Qn();
|
|
1362
|
+
return Qt(r, W({
|
|
1363
|
+
get href() {
|
|
1364
|
+
return e.href;
|
|
1365
|
+
},
|
|
1366
|
+
get onClick() {
|
|
1367
|
+
return e.onClick;
|
|
1368
|
+
},
|
|
1369
|
+
get class() {
|
|
1370
|
+
return lt(Be({
|
|
1371
|
+
$variant: e.$variant,
|
|
1372
|
+
$size: e.$size,
|
|
1373
|
+
$aspect: e.$aspect
|
|
1374
|
+
}), e.class);
|
|
1375
|
+
}
|
|
1376
|
+
}, n), !1, !0), g(r, () => e.children), r;
|
|
1377
|
+
})() : (() => {
|
|
1378
|
+
var r = Jn();
|
|
1379
|
+
return Qt(r, W({
|
|
1380
|
+
get onClick() {
|
|
1381
|
+
return e.onClick;
|
|
1382
|
+
},
|
|
1383
|
+
get class() {
|
|
1384
|
+
return lt(Be({
|
|
1385
|
+
$variant: e.$variant,
|
|
1386
|
+
$size: e.$size,
|
|
1387
|
+
$aspect: e.$aspect
|
|
1388
|
+
}), e.class);
|
|
1389
|
+
}
|
|
1390
|
+
}, n), !1, !0), g(r, () => e.children), r;
|
|
1391
|
+
})();
|
|
1392
|
+
};
|
|
1393
|
+
var Xn = /* @__PURE__ */ b('<div class="flex h-full w-full justify-between"><div class="grow py-1 ps-1"><div class="h-full rounded-sm border border-gray-300 bg-gray-400"></div></div><div class="flex h-full w-3 flex-col items-center justify-center gap-0.5 pr-0.5">'), Zn = /* @__PURE__ */ b('<div class="h-1.5 w-1.5 rounded-full border border-gray-500">'), Yn = /* @__PURE__ */ b('<div class="flex h-full w-full flex-col justify-between"><div class="grow px-1 pt-1"><div class="h-full rounded-sm border border-gray-200 bg-gray-300"></div></div><div class="flex h-3 w-full items-center justify-center gap-0.5 pb-0.5">'), to = /* @__PURE__ */ b('<div class="h-1.5 w-1.5 rounded-full border border-gray-400">'), eo = /* @__PURE__ */ b('<div class="-space-x-4 flex items-end"><div class="h-38 w-48 overflow-hidden rounded-lg bg-gray-300"></div><div class="h-18 w-12 overflow-hidden rounded-lg bg-gray-200">');
|
|
1394
|
+
const Ze = (t) => t ? 1 : 3, ro = (t) => (() => {
|
|
1395
|
+
var e = Xn(), n = e.firstChild, r = n.nextSibling;
|
|
1396
|
+
return g(r, l(ct, {
|
|
1397
|
+
get each() {
|
|
1398
|
+
return Array.from({
|
|
1399
|
+
length: Ze(t.isApple)
|
|
1400
|
+
});
|
|
1401
|
+
},
|
|
1402
|
+
children: () => Zn()
|
|
1403
|
+
})), e;
|
|
1404
|
+
})(), no = (t) => (() => {
|
|
1405
|
+
var e = Yn(), n = e.firstChild, r = n.nextSibling;
|
|
1406
|
+
return g(r, l(ct, {
|
|
1407
|
+
get each() {
|
|
1408
|
+
return Array.from({
|
|
1409
|
+
length: Ze(t.isApple)
|
|
1410
|
+
});
|
|
1411
|
+
},
|
|
1412
|
+
children: () => to()
|
|
1413
|
+
})), e;
|
|
1414
|
+
})(), oo = () => (() => {
|
|
1415
|
+
var e = eo(), n = e.firstChild, r = n.nextSibling;
|
|
1416
|
+
return g(n, l(ro, {
|
|
1417
|
+
isApple: !0
|
|
1418
|
+
})), g(r, l(no, {
|
|
1419
|
+
isApple: !0
|
|
1420
|
+
})), e;
|
|
1421
|
+
})();
|
|
1422
|
+
var ao = /* @__PURE__ */ b('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><p class="text-sm text-(--lv-text-secondary)"></p></div><div class="flex items-center">');
|
|
1423
|
+
const io = (t) => {
|
|
1424
|
+
const {
|
|
1425
|
+
t: e
|
|
1426
|
+
} = D(), {
|
|
1427
|
+
start: n
|
|
1428
|
+
} = Gr();
|
|
1429
|
+
return (() => {
|
|
1430
|
+
var r = ao(), o = r.firstChild, a = o.firstChild, s = o.nextSibling;
|
|
1431
|
+
return g(r, l(oo, {}), o), g(a, () => e("disconnected.prompt")), g(s, l(kt, {
|
|
1432
|
+
type: "button",
|
|
1433
|
+
onClick: n,
|
|
1434
|
+
class: "z-10 px-6 py-3",
|
|
1435
|
+
$variant: "primary",
|
|
1436
|
+
$size: "lg",
|
|
1437
|
+
get children() {
|
|
1438
|
+
return e("disconnected.generateQr");
|
|
1439
|
+
}
|
|
1440
|
+
}), null), g(s, l(kt, {
|
|
1441
|
+
type: "button",
|
|
1442
|
+
get "aria-label"() {
|
|
1443
|
+
return String(e("disconnected.connectionSettings"));
|
|
1444
|
+
},
|
|
1445
|
+
"aria-pressed": !1,
|
|
1446
|
+
get onClick() {
|
|
1447
|
+
return t.onSettings;
|
|
1448
|
+
},
|
|
1449
|
+
class: "px-3 ltr:-ml-1 ltr:rounded-l-none rtl:-mr-1 rtl:rounded-r-none",
|
|
1450
|
+
$aspect: "square",
|
|
1451
|
+
$size: "lg",
|
|
1452
|
+
$variant: "secondary",
|
|
1453
|
+
get children() {
|
|
1454
|
+
return l(Ln, {
|
|
1455
|
+
class: "h-5 w-5 text-(--lv-text-muted)"
|
|
1456
|
+
});
|
|
1457
|
+
}
|
|
1458
|
+
}), null), r;
|
|
1459
|
+
})();
|
|
1460
|
+
};
|
|
1461
|
+
var so = /* @__PURE__ */ b('<div class="flex flex-col space-y-2 px-4 text-start"><div class="min-h-32 w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class="flex justify-center items-center grow"></div></div><div class="w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class></div></div><div class="w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class>');
|
|
1462
|
+
const lo = () => {
|
|
1463
|
+
const {
|
|
1464
|
+
t
|
|
1465
|
+
} = D();
|
|
1466
|
+
return (() => {
|
|
1467
|
+
var e = so(), n = e.firstChild, r = n.firstChild, o = r.nextSibling, a = n.nextSibling, s = a.firstChild, i = a.nextSibling, c = i.firstChild;
|
|
1468
|
+
return g(r, () => t("info.scanQrCode")), g(o, l(Rn, {
|
|
1469
|
+
class: "w-10 h-10"
|
|
1470
|
+
})), g(s, () => t("info.approveOnDevice")), g(c, () => t("info.youreConnected")), e;
|
|
1471
|
+
})();
|
|
1472
|
+
}, re = (t, { duration: e = 200 } = {}) => {
|
|
1473
|
+
const n = typeof t == "function" ? t : () => t, r = n(), [o, a] = O(r), [s, i] = O(void 0);
|
|
1474
|
+
let c, d = r;
|
|
1475
|
+
return J(() => {
|
|
1476
|
+
const u = n();
|
|
1477
|
+
Object.is(u, d) || (c && globalThis.clearTimeout(c), i(() => d), a(() => u), d = u, c = globalThis.setTimeout(() => {
|
|
1478
|
+
i(() => {
|
|
1479
|
+
}), c = void 0;
|
|
1480
|
+
}, e), X(() => {
|
|
1481
|
+
c && globalThis.clearTimeout(c);
|
|
1482
|
+
}));
|
|
1483
|
+
}), {
|
|
1484
|
+
current: o,
|
|
1485
|
+
previous: s,
|
|
1486
|
+
isTransitioning: () => s() !== void 0
|
|
1690
1487
|
};
|
|
1691
|
-
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1488
|
+
}, Ot = () => {
|
|
1489
|
+
const { provider: t } = Ct(), [e, n] = O(t.storage.getSettings()), r = (u) => {
|
|
1490
|
+
n(u), t.storage.setSettings(u);
|
|
1491
|
+
};
|
|
1492
|
+
return {
|
|
1493
|
+
settings: e,
|
|
1494
|
+
setSettings: r,
|
|
1495
|
+
setLanguage: (u) => {
|
|
1496
|
+
r({ ...e(), language: u });
|
|
1699
1497
|
},
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
] }), po = ({ isApple: t }) => /* @__PURE__ */ v("div", { className: "flex h-full w-full flex-col justify-between", children: [
|
|
1703
|
-
/* @__PURE__ */ s("div", { className: "grow px-1 pt-1", children: /* @__PURE__ */ s("div", { className: "h-full rounded-sm border border-gray-200 bg-gray-300" }) }),
|
|
1704
|
-
/* @__PURE__ */ s("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, r) => /* @__PURE__ */ s(
|
|
1705
|
-
"div",
|
|
1706
|
-
{
|
|
1707
|
-
className: "h-1.5 w-1.5 rounded-full border border-gray-400"
|
|
1498
|
+
setThemeMode: (u) => {
|
|
1499
|
+
r({ ...e(), theme: u });
|
|
1708
1500
|
},
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
{
|
|
1725
|
-
type: "button",
|
|
1726
|
-
onClick: r,
|
|
1727
|
-
className: "z-10 px-6 py-3",
|
|
1728
|
-
$variant: "primary",
|
|
1729
|
-
$size: "lg",
|
|
1730
|
-
children: e("disconnected.generateQr")
|
|
1731
|
-
}
|
|
1732
|
-
),
|
|
1733
|
-
/* @__PURE__ */ s(
|
|
1734
|
-
ft,
|
|
1735
|
-
{
|
|
1736
|
-
type: "button",
|
|
1737
|
-
"aria-label": e("disconnected.connectionSettings"),
|
|
1738
|
-
"aria-pressed": !1,
|
|
1739
|
-
onClick: t,
|
|
1740
|
-
className: "px-3 ltr:-ml-1 ltr:rounded-l-none rtl:-mr-1 rtl:rounded-r-none",
|
|
1741
|
-
$aspect: "square",
|
|
1742
|
-
$size: "lg",
|
|
1743
|
-
$variant: "secondary",
|
|
1744
|
-
children: /* @__PURE__ */ s(ro, { className: "h-5 w-5 text-(--lv-text-muted)" })
|
|
1745
|
-
}
|
|
1746
|
-
)
|
|
1747
|
-
] })
|
|
1748
|
-
] });
|
|
1749
|
-
}, vo = () => {
|
|
1750
|
-
const { t } = H();
|
|
1751
|
-
return /* @__PURE__ */ v("div", { className: "flex flex-col space-y-2 px-4", children: [
|
|
1752
|
-
/* @__PURE__ */ s("div", { className: "min-h-32 w-full rounded-md border border-(--lv-control-button-secondary-border) p-2", children: t("info.scanQrCode") }),
|
|
1753
|
-
/* @__PURE__ */ s("div", { className: "w-full rounded-md border border-border p-2", children: t("info.approveOnDevice") }),
|
|
1754
|
-
/* @__PURE__ */ s("div", { className: "w-full rounded-md border border-border p-2", children: t("info.youreConnected") })
|
|
1755
|
-
] });
|
|
1756
|
-
}, mo = async (t) => {
|
|
1757
|
-
if (!t) return !1;
|
|
1758
|
-
try {
|
|
1759
|
-
if (navigator?.clipboard?.writeText)
|
|
1760
|
-
return await navigator.clipboard.writeText(t), !0;
|
|
1761
|
-
} catch {
|
|
1762
|
-
}
|
|
1763
|
-
try {
|
|
1764
|
-
const e = document.createElement("textarea");
|
|
1765
|
-
e.value = t, e.style.position = "fixed", e.style.left = "-999999px", e.style.top = "-999999px", document.body.appendChild(e), e.focus(), e.select();
|
|
1766
|
-
const r = document.execCommand("copy");
|
|
1767
|
-
return document.body.removeChild(e), r;
|
|
1768
|
-
} catch {
|
|
1769
|
-
return !1;
|
|
1770
|
-
}
|
|
1771
|
-
}, se = (t, { duration: e = 200 } = {}) => {
|
|
1772
|
-
const [r, n] = P(t), [o, a] = P(null), i = G(), l = G(t);
|
|
1773
|
-
return I(() => {
|
|
1774
|
-
if (!Object.is(t, l.current))
|
|
1775
|
-
return i.current && window.clearTimeout(i.current), a(l.current), n(t), l.current = t, i.current = window.setTimeout(() => {
|
|
1776
|
-
a(null), i.current = void 0;
|
|
1777
|
-
}, e), () => {
|
|
1778
|
-
i.current && window.clearTimeout(i.current);
|
|
1779
|
-
};
|
|
1780
|
-
}, [t, e]), {
|
|
1781
|
-
current: r,
|
|
1782
|
-
previous: o,
|
|
1783
|
-
isTransitioning: o !== null
|
|
1501
|
+
setSignalingProtocol: (u) => {
|
|
1502
|
+
r({ ...e(), signaling: { p: u, s: e()?.signaling?.s ?? {} } });
|
|
1503
|
+
},
|
|
1504
|
+
setSignalingOptions: (u) => {
|
|
1505
|
+
const v = e()?.signaling?.p;
|
|
1506
|
+
if (!v) return;
|
|
1507
|
+
const f = e()?.signaling?.s ?? {};
|
|
1508
|
+
r({ ...e(), signaling: { p: v, s: { ...f, [v]: u.url } } });
|
|
1509
|
+
},
|
|
1510
|
+
setRetainSessionHistory: (u) => {
|
|
1511
|
+
r({ ...e(), retainHistory: u });
|
|
1512
|
+
},
|
|
1513
|
+
setAutoReconnect: (u) => {
|
|
1514
|
+
r({ ...e(), autoReconnect: u });
|
|
1515
|
+
}
|
|
1784
1516
|
};
|
|
1785
|
-
},
|
|
1786
|
-
const {
|
|
1517
|
+
}, Ye = () => {
|
|
1518
|
+
const { settings: t } = Ot(), e = K(() => t().theme), n = K(() => "light");
|
|
1787
1519
|
return {
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
userThemeMode: o,
|
|
1791
|
-
isUserConfigurable: a,
|
|
1792
|
-
updateThemePreference: r
|
|
1520
|
+
theme: e,
|
|
1521
|
+
mode: n
|
|
1793
1522
|
};
|
|
1794
|
-
},
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
{
|
|
1812
|
-
|
|
1523
|
+
}, co = "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==";
|
|
1524
|
+
var uo = /* @__PURE__ */ b('<div class="group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-(--lv-control-button-secondary-background)"><div class="pointer-events-none whitespace-nowrap rounded-md text-xs opacity-0 group-hover:opacity-100"></div><div>');
|
|
1525
|
+
const go = () => {
|
|
1526
|
+
const {
|
|
1527
|
+
t
|
|
1528
|
+
} = D(), {
|
|
1529
|
+
status: e
|
|
1530
|
+
} = Et(), n = K(() => {
|
|
1531
|
+
const r = e()?.status, o = e()?.signaling?.state;
|
|
1532
|
+
return ht({
|
|
1533
|
+
sessionState: r,
|
|
1534
|
+
signalState: o
|
|
1535
|
+
}).with({
|
|
1536
|
+
sessionState: "connected"
|
|
1537
|
+
}, () => ({
|
|
1538
|
+
icon: "✅",
|
|
1539
|
+
text: t("status.connectedSuccessfully")
|
|
1540
|
+
})).with({
|
|
1541
|
+
sessionState: "signaling",
|
|
1542
|
+
signalState: "standby"
|
|
1543
|
+
}, () => ({
|
|
1544
|
+
icon: "🫥",
|
|
1545
|
+
text: t("status.connecting")
|
|
1546
|
+
})).with({
|
|
1547
|
+
sessionState: "signaling",
|
|
1548
|
+
signalState: "connecting"
|
|
1549
|
+
}, () => ({
|
|
1550
|
+
icon: "↗️",
|
|
1551
|
+
text: t("status.connecting")
|
|
1552
|
+
})).with({
|
|
1553
|
+
sessionState: "signaling",
|
|
1554
|
+
signalState: "ready"
|
|
1555
|
+
}, () => ({
|
|
1556
|
+
icon: "👋",
|
|
1557
|
+
text: t("status.ready")
|
|
1558
|
+
})).with({
|
|
1559
|
+
sessionState: "signaling",
|
|
1560
|
+
signalState: "handshake"
|
|
1561
|
+
}, () => ({
|
|
1562
|
+
icon: "🤝",
|
|
1563
|
+
text: t("status.handshakeClosed")
|
|
1564
|
+
})).with({
|
|
1565
|
+
sessionState: "signaling",
|
|
1566
|
+
signalState: "handshake-partial"
|
|
1567
|
+
}, () => ({
|
|
1813
1568
|
icon: "🤝",
|
|
1814
1569
|
text: t("status.handshakePartial")
|
|
1815
|
-
})
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1570
|
+
})).with({
|
|
1571
|
+
sessionState: "signaling",
|
|
1572
|
+
signalState: "encrypted"
|
|
1573
|
+
}, () => ({
|
|
1574
|
+
icon: "🔒",
|
|
1575
|
+
text: t("status.encrypted")
|
|
1576
|
+
})).with({
|
|
1577
|
+
sessionState: "signaling",
|
|
1578
|
+
signalState: "error"
|
|
1579
|
+
}, () => ({
|
|
1580
|
+
icon: "❌",
|
|
1581
|
+
text: t("status.signalError")
|
|
1582
|
+
})).otherwise(() => {
|
|
1583
|
+
});
|
|
1823
1584
|
});
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
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
|
-
|
|
1855
|
-
),
|
|
1856
|
-
/* @__PURE__ */ s("div", { className: "text-sm text-(--lv-text-muted)", children: /* @__PURE__ */ s(yo, {}) })
|
|
1857
|
-
] })
|
|
1858
|
-
] });
|
|
1859
|
-
function xo(t) {
|
|
1860
|
-
return dt({ 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);
|
|
1861
|
-
}
|
|
1862
|
-
function ko(t) {
|
|
1863
|
-
return dt({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "m9 18 6-6-6-6" }, child: [] }] })(t);
|
|
1864
|
-
}
|
|
1865
|
-
function hr(t) {
|
|
1866
|
-
return dt({ 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);
|
|
1867
|
-
}
|
|
1868
|
-
function Co(t) {
|
|
1869
|
-
return dt({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M5 12h14" }, child: [] }, { tag: "path", attr: { d: "M12 5v14" }, child: [] }] })(t);
|
|
1870
|
-
}
|
|
1871
|
-
function No(t) {
|
|
1872
|
-
return dt({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M3 6h18" }, child: [] }, { tag: "path", attr: { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6" }, child: [] }, { tag: "path", attr: { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2" }, child: [] }, { tag: "line", attr: { x1: "10", x2: "10", y1: "11", y2: "17" }, child: [] }, { tag: "line", attr: { x1: "14", x2: "14", y1: "11", y2: "17" }, child: [] }] })(t);
|
|
1873
|
-
}
|
|
1874
|
-
function _o(t) {
|
|
1875
|
-
return dt({ 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);
|
|
1876
|
-
}
|
|
1877
|
-
const So = ({
|
|
1878
|
-
title: t,
|
|
1879
|
-
view: e,
|
|
1880
|
-
onClose: r,
|
|
1881
|
-
onBack: n,
|
|
1882
|
-
setView: o
|
|
1883
|
-
}) => {
|
|
1884
|
-
const { t: a } = H();
|
|
1885
|
-
return /* @__PURE__ */ v("div", { className: "flex items-center justify-between px-2 py-2", children: [
|
|
1886
|
-
n ? /* @__PURE__ */ s(
|
|
1887
|
-
ft,
|
|
1888
|
-
{
|
|
1889
|
-
onClick: n,
|
|
1890
|
-
"aria-label": a(e === "settings" ? "modal.backToQr" : "modal.closeModal"),
|
|
1585
|
+
return l(bt, {
|
|
1586
|
+
get when() {
|
|
1587
|
+
return n();
|
|
1588
|
+
},
|
|
1589
|
+
children: (r) => (() => {
|
|
1590
|
+
var o = uo(), a = o.firstChild, s = a.nextSibling;
|
|
1591
|
+
return g(a, () => r().text), g(s, () => r().icon), o;
|
|
1592
|
+
})()
|
|
1593
|
+
});
|
|
1594
|
+
};
|
|
1595
|
+
var vo = /* @__PURE__ */ b('<div class="h-11 w-full">'), ho = /* @__PURE__ */ b('<div class="absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 px-3 py-2 text-(--lv-text-muted)"><a href=https://github.com/v3xlabs/open-lavatory target=_blank rel=noreferrer class="flex items-center gap-2 p-1 font-semibold text-sm text-(--lv-text-muted)"><img alt="Open Lavatory Logo"width=20 height=20 class=rounded data-openlv-brand-logo><span>openlv</span></a><div class="text-sm text-(--lv-text-muted)">');
|
|
1596
|
+
const po = () => [vo(), (() => {
|
|
1597
|
+
var t = ho(), e = t.firstChild, n = e.firstChild, r = e.nextSibling;
|
|
1598
|
+
return et(n, "src", co), g(r, l(go, {})), t;
|
|
1599
|
+
})()];
|
|
1600
|
+
var fo = /* @__PURE__ */ b('<div class="flex items-center justify-between px-2 py-2"><h2 class="flex items-center justify-center gap-2 font-semibold text-(--lv-text-primary) text-lg">');
|
|
1601
|
+
const bo = (t) => {
|
|
1602
|
+
const {
|
|
1603
|
+
t: e
|
|
1604
|
+
} = D();
|
|
1605
|
+
return (() => {
|
|
1606
|
+
var n = fo(), r = n.firstChild;
|
|
1607
|
+
return g(n, (() => {
|
|
1608
|
+
var o = pt(() => !!t.onBack);
|
|
1609
|
+
return () => o() ? l(kt, {
|
|
1610
|
+
get onClick() {
|
|
1611
|
+
return t.onBack;
|
|
1612
|
+
},
|
|
1613
|
+
get "aria-label"() {
|
|
1614
|
+
return String(t.view === "settings" ? e("modal.backToQr") : e("modal.closeModal"));
|
|
1615
|
+
},
|
|
1891
1616
|
$variant: "tertiary",
|
|
1892
1617
|
$aspect: "square",
|
|
1893
1618
|
$size: "md",
|
|
1894
|
-
children
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
// type="button"
|
|
1899
|
-
// href="https://openlv.sh"
|
|
1900
|
-
// target="_blank"
|
|
1901
|
-
// $variant="tertiary"
|
|
1902
|
-
// $aspect="square"
|
|
1903
|
-
// $size="md"
|
|
1904
|
-
// >
|
|
1905
|
-
// <LuCircleHelp className="h-5 w-5" />
|
|
1906
|
-
// </Button>
|
|
1907
|
-
/* @__PURE__ */ s(
|
|
1908
|
-
ft,
|
|
1909
|
-
{
|
|
1910
|
-
type: "button",
|
|
1911
|
-
onClick: () => o("info"),
|
|
1912
|
-
$variant: "tertiary",
|
|
1913
|
-
$aspect: "square",
|
|
1914
|
-
$size: "md",
|
|
1915
|
-
children: /* @__PURE__ */ s(hr, { className: "h-5 w-5" })
|
|
1619
|
+
get children() {
|
|
1620
|
+
return l(wn, {
|
|
1621
|
+
class: "h-6 w-6 text-(--lv-text-muted) rtl:rotate-180"
|
|
1622
|
+
});
|
|
1916
1623
|
}
|
|
1917
|
-
)
|
|
1918
|
-
),
|
|
1919
|
-
/* @__PURE__ */ s("h2", { className: "flex items-center justify-center gap-2 font-semibold text-(--lv-text-primary) text-lg", children: t }),
|
|
1920
|
-
/* @__PURE__ */ s(
|
|
1921
|
-
ft,
|
|
1922
|
-
{
|
|
1624
|
+
}) : l(kt, {
|
|
1923
1625
|
type: "button",
|
|
1924
|
-
|
|
1925
|
-
"aria-pressed": !1,
|
|
1926
|
-
onClick: r,
|
|
1626
|
+
onClick: () => t.setView("info"),
|
|
1927
1627
|
$variant: "tertiary",
|
|
1928
1628
|
$aspect: "square",
|
|
1929
1629
|
$size: "md",
|
|
1930
|
-
children
|
|
1630
|
+
get children() {
|
|
1631
|
+
return l(Qe, {
|
|
1632
|
+
class: "h-5 w-5"
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
});
|
|
1636
|
+
})(), r), g(r, () => t.title), g(n, l(kt, {
|
|
1637
|
+
type: "button",
|
|
1638
|
+
get "aria-label"() {
|
|
1639
|
+
return String(e("common.close"));
|
|
1640
|
+
},
|
|
1641
|
+
"aria-pressed": !1,
|
|
1642
|
+
get onClick() {
|
|
1643
|
+
return t.onClose;
|
|
1644
|
+
},
|
|
1645
|
+
$variant: "tertiary",
|
|
1646
|
+
$aspect: "square",
|
|
1647
|
+
$size: "md",
|
|
1648
|
+
get children() {
|
|
1649
|
+
return l(Fn, {
|
|
1650
|
+
class: "h-6 w-6 text-(--lv-text-muted)"
|
|
1651
|
+
});
|
|
1931
1652
|
}
|
|
1932
|
-
)
|
|
1933
|
-
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
const [r, n] = P(t), { current: o, previous: a, isTransitioning: i } = se(r, {
|
|
1653
|
+
}), null), n;
|
|
1654
|
+
})();
|
|
1655
|
+
}, mo = (t, { transitionDuration: e = 200 } = {}) => {
|
|
1656
|
+
const [n, r] = O([t]), [o, a] = O(0), s = K(() => n()[o()] ?? t), { current: i, previous: c, isTransitioning: d } = re(s, {
|
|
1937
1657
|
duration: e
|
|
1938
|
-
})
|
|
1939
|
-
n(u);
|
|
1940
|
-
}, []), c = K(() => {
|
|
1941
|
-
n(t);
|
|
1942
|
-
}, [t]);
|
|
1658
|
+
});
|
|
1943
1659
|
return {
|
|
1944
|
-
screen:
|
|
1945
|
-
previousScreen:
|
|
1946
|
-
isTransitioning:
|
|
1947
|
-
navigate:
|
|
1948
|
-
|
|
1949
|
-
|
|
1660
|
+
screen: i,
|
|
1661
|
+
previousScreen: c,
|
|
1662
|
+
isTransitioning: d,
|
|
1663
|
+
navigate: (f) => {
|
|
1664
|
+
const h = o(), m = n(), C = m[h];
|
|
1665
|
+
if (Object.is(C, f)) return;
|
|
1666
|
+
const p = m.slice(0, h + 1);
|
|
1667
|
+
p.push(f), r(p), a(p.length - 1);
|
|
1668
|
+
},
|
|
1669
|
+
goBack: () => {
|
|
1670
|
+
a((f) => Math.max(0, f - 1));
|
|
1671
|
+
},
|
|
1672
|
+
isAtRoot: () => o() === 0
|
|
1950
1673
|
};
|
|
1951
|
-
}
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
}
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
{
|
|
1963
|
-
className: at(
|
|
1964
|
-
"modal-transition__layer",
|
|
1965
|
-
r && "modal-transition__layer--incoming"
|
|
1966
|
-
),
|
|
1967
|
-
children: n(t)
|
|
1674
|
+
};
|
|
1675
|
+
var yo = /* @__PURE__ */ b('<div class="modal-transition__layer modal-transition__layer--outgoing">'), wo = /* @__PURE__ */ b("<div><div>");
|
|
1676
|
+
const xo = (t) => (() => {
|
|
1677
|
+
var e = wo(), n = e.firstChild;
|
|
1678
|
+
return g(e, l(bt, {
|
|
1679
|
+
get when() {
|
|
1680
|
+
return t.previous !== void 0;
|
|
1681
|
+
},
|
|
1682
|
+
get children() {
|
|
1683
|
+
var r = yo();
|
|
1684
|
+
return g(r, () => t.render(t.previous)), r;
|
|
1968
1685
|
}
|
|
1969
|
-
)
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1686
|
+
}), n), g(n, () => t.render(t.current)), rt((r) => {
|
|
1687
|
+
var o = lt("modal-transition__container", t.class), a = lt("modal-transition__layer", t.isTransitioning && "modal-transition__layer--incoming");
|
|
1688
|
+
return o !== r.e && H(e, r.e = o), a !== r.t && H(n, r.t = a), r;
|
|
1689
|
+
}, {
|
|
1690
|
+
e: void 0,
|
|
1691
|
+
t: void 0
|
|
1692
|
+
}), e;
|
|
1693
|
+
})();
|
|
1694
|
+
var ko = /* @__PURE__ */ b('<div><div class="flex items-end justify-between py-1 pl-2"><div class="font-medium text-(--lv-text-primary) text-sm"></div><div></div></div><div class="flex flex-col gap-1 rounded-md bg-(--lv-card-background)">');
|
|
1695
|
+
const Bt = (t) => (() => {
|
|
1696
|
+
var e = ko(), n = e.firstChild, r = n.firstChild, o = r.nextSibling, a = n.nextSibling;
|
|
1697
|
+
return g(r, () => t.title), g(o, () => t.right), g(a, () => t.children), e;
|
|
1698
|
+
})();
|
|
1699
|
+
var Co = /* @__PURE__ */ b('<div class="flex items-baseline justify-between gap-2 px-2 py-1 first:pt-2 last:pb-2"><div class="text-sm text-(--lv-text-secondary) text-start"></div><div>');
|
|
1700
|
+
const Rt = (t) => (() => {
|
|
1701
|
+
var e = Co(), n = e.firstChild, r = n.nextSibling;
|
|
1702
|
+
return g(n, () => t.label), g(r, () => t.children), e;
|
|
1703
|
+
})();
|
|
1704
|
+
var So = /* @__PURE__ */ b("<select>"), Ao = /* @__PURE__ */ b("<div>"), $o = /* @__PURE__ */ b("<button type=button>"), _o = /* @__PURE__ */ b("<option>");
|
|
1705
|
+
const To = Ut({
|
|
1980
1706
|
slots: {
|
|
1981
1707
|
root: "flex overflow-hidden rounded-md border border-(--lv-control-button-secondary-border)",
|
|
1982
1708
|
box: "px-4 py-2 font-semibold text-xs transition border-l first:border-l-0 border-(--lv-control-button-secondary-border)"
|
|
@@ -1994,75 +1720,123 @@ const To = ({
|
|
|
1994
1720
|
defaultVariants: {
|
|
1995
1721
|
active: "off"
|
|
1996
1722
|
}
|
|
1997
|
-
}),
|
|
1723
|
+
}), No = Ut({
|
|
1998
1724
|
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"
|
|
1999
|
-
}),
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
{
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
1725
|
+
}), Kt = (t) => {
|
|
1726
|
+
const e = No(), {
|
|
1727
|
+
root: n,
|
|
1728
|
+
box: r
|
|
1729
|
+
} = To({});
|
|
1730
|
+
return l(bt, {
|
|
1731
|
+
get when() {
|
|
1732
|
+
return t.options.length > (t.dropdownThreshold ?? 3);
|
|
1733
|
+
},
|
|
1734
|
+
get fallback() {
|
|
1735
|
+
return (() => {
|
|
1736
|
+
var o = Ao();
|
|
1737
|
+
return g(o, l(ct, {
|
|
1738
|
+
get each() {
|
|
1739
|
+
return t.options;
|
|
1740
|
+
},
|
|
1741
|
+
children: ([a, s]) => (() => {
|
|
1742
|
+
var i = $o();
|
|
1743
|
+
return i.$$click = () => t.onChange(a), g(i, s), rt((c) => {
|
|
1744
|
+
var d = a === t.value, u = r({
|
|
1745
|
+
active: a === t.value ? "on" : "off"
|
|
1746
|
+
});
|
|
1747
|
+
return d !== c.e && et(i, "aria-pressed", c.e = d), u !== c.t && H(i, c.t = u), c;
|
|
1748
|
+
}, {
|
|
1749
|
+
e: void 0,
|
|
1750
|
+
t: void 0
|
|
1751
|
+
}), i;
|
|
1752
|
+
})()
|
|
1753
|
+
})), rt(() => H(o, n())), o;
|
|
1754
|
+
})();
|
|
2026
1755
|
},
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
return /* @__PURE__ */ s(Rt, { label: t("settings.theme.mode"), children: /* @__PURE__ */ s(
|
|
2039
|
-
Gt,
|
|
2040
|
-
{
|
|
2041
|
-
options: o,
|
|
2042
|
-
value: e,
|
|
2043
|
-
onChange: (a) => n(a)
|
|
1756
|
+
get children() {
|
|
1757
|
+
var o = So();
|
|
1758
|
+
return o.addEventListener("change", (a) => t.onChange(a.currentTarget.value)), H(o, e), g(o, l(ct, {
|
|
1759
|
+
get each() {
|
|
1760
|
+
return t.options;
|
|
1761
|
+
},
|
|
1762
|
+
children: ([a, s]) => (() => {
|
|
1763
|
+
var i = _o();
|
|
1764
|
+
return i.value = a, g(i, s), i;
|
|
1765
|
+
})()
|
|
1766
|
+
})), rt(() => o.value = t.value), o;
|
|
2044
1767
|
}
|
|
2045
|
-
|
|
2046
|
-
}
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
r(c), o(c);
|
|
1768
|
+
});
|
|
1769
|
+
};
|
|
1770
|
+
ft(["click"]);
|
|
1771
|
+
const Bo = () => {
|
|
1772
|
+
const {
|
|
1773
|
+
t
|
|
1774
|
+
} = D(), e = Ye(), n = () => e.mode() === "auto", r = () => e.mode() === "auto" ? "system" : e.mode(), o = (a) => {
|
|
2053
1775
|
};
|
|
2054
|
-
return
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
1776
|
+
return l(bt, {
|
|
1777
|
+
get when() {
|
|
1778
|
+
return n();
|
|
1779
|
+
},
|
|
1780
|
+
get children() {
|
|
1781
|
+
return l(Rt, {
|
|
1782
|
+
get label() {
|
|
1783
|
+
return t("settings.theme.mode");
|
|
1784
|
+
},
|
|
1785
|
+
get children() {
|
|
1786
|
+
return l(Kt, {
|
|
1787
|
+
get options() {
|
|
1788
|
+
return [["light", t("settings.theme.light")], ["dark", t("settings.theme.dark")], ["system", t("settings.theme.system")]];
|
|
1789
|
+
},
|
|
1790
|
+
get value() {
|
|
1791
|
+
return r();
|
|
1792
|
+
},
|
|
1793
|
+
onChange: (a) => o()
|
|
1794
|
+
});
|
|
1795
|
+
}
|
|
1796
|
+
});
|
|
1797
|
+
}
|
|
1798
|
+
});
|
|
1799
|
+
}, Ro = () => {
|
|
1800
|
+
const {
|
|
1801
|
+
t,
|
|
1802
|
+
languageTag: e,
|
|
1803
|
+
setLanguageTag: n
|
|
1804
|
+
} = D(), {
|
|
1805
|
+
settings: r,
|
|
1806
|
+
setLanguage: o
|
|
1807
|
+
} = Ot(), a = K(() => [...se].sort((i, c) => {
|
|
1808
|
+
const d = Ce(i.tag);
|
|
1809
|
+
return Ce(c.tag) - d;
|
|
1810
|
+
})), s = (i) => {
|
|
1811
|
+
const c = i;
|
|
1812
|
+
n(c), o(c);
|
|
1813
|
+
};
|
|
1814
|
+
return l(Bt, {
|
|
1815
|
+
get title() {
|
|
1816
|
+
return t("settings.appearance");
|
|
1817
|
+
},
|
|
1818
|
+
get children() {
|
|
1819
|
+
return [l(Rt, {
|
|
1820
|
+
get label() {
|
|
1821
|
+
return t("settings.language");
|
|
1822
|
+
},
|
|
1823
|
+
get children() {
|
|
1824
|
+
return l(Kt, {
|
|
1825
|
+
get options() {
|
|
1826
|
+
return a().map((i) => [i.tag, i.nativeName]);
|
|
1827
|
+
},
|
|
1828
|
+
get value() {
|
|
1829
|
+
return r()?.language || e();
|
|
1830
|
+
},
|
|
1831
|
+
onChange: s
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
}), l(Bo, {})];
|
|
1835
|
+
}
|
|
1836
|
+
});
|
|
1837
|
+
};
|
|
1838
|
+
var Eo = /* @__PURE__ */ b("<div><div></div><div>"), Oo = /* @__PURE__ */ b("<div>Text");
|
|
1839
|
+
const Lo = Ut({
|
|
2066
1840
|
slots: {
|
|
2067
1841
|
root: "group relative",
|
|
2068
1842
|
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)",
|
|
@@ -2092,253 +1866,328 @@ const To = ({
|
|
|
2092
1866
|
defaultVariants: {
|
|
2093
1867
|
size: "lg"
|
|
2094
1868
|
}
|
|
2095
|
-
}),
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
})
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
/* @__PURE__ */ v("div", { className: "flex items-center gap-1", children: [
|
|
2114
|
-
e && /* @__PURE__ */ s("span", { className: "text-sm text-(--lv-text-muted)", children: e }),
|
|
2115
|
-
/* @__PURE__ */ s(ko, { className: "h-4 w-4 text-(--lv-text-muted) rtl:rotate-180" })
|
|
2116
|
-
] })
|
|
2117
|
-
]
|
|
2118
|
-
}
|
|
2119
|
-
), Do = ({ value: t, onChange: e }) => {
|
|
2120
|
-
const { t: r } = H();
|
|
2121
|
-
return /* @__PURE__ */ s(
|
|
2122
|
-
Gt,
|
|
2123
|
-
{
|
|
2124
|
-
options: [
|
|
2125
|
-
["true", String(r("common.yes"))],
|
|
2126
|
-
["false", String(r("common.no"))]
|
|
2127
|
-
],
|
|
2128
|
-
value: t ? "true" : "false",
|
|
2129
|
-
onChange: (n) => e(n === "true")
|
|
2130
|
-
}
|
|
2131
|
-
);
|
|
2132
|
-
}, Bo = ({
|
|
2133
|
-
onNavigate: t
|
|
2134
|
-
}) => {
|
|
2135
|
-
const { t: e } = H(), { settings: r, updateRetainHistory: n, updateAutoReconnect: o } = wt();
|
|
2136
|
-
return /* @__PURE__ */ v(Et, { title: e("settings.connectionPreferences.title"), children: [
|
|
2137
|
-
/* @__PURE__ */ s(
|
|
2138
|
-
Be,
|
|
2139
|
-
{
|
|
2140
|
-
label: /* @__PURE__ */ v(ht, { children: [
|
|
2141
|
-
e("settings.signaling.title"),
|
|
2142
|
-
/* @__PURE__ */ s(De, { variant: "icon", children: e("settings.signaling.description") })
|
|
2143
|
-
] }),
|
|
2144
|
-
onClick: () => t("signaling"),
|
|
2145
|
-
value: r?.signaling?.p
|
|
2146
|
-
}
|
|
2147
|
-
),
|
|
2148
|
-
/* @__PURE__ */ s(
|
|
2149
|
-
Be,
|
|
2150
|
-
{
|
|
2151
|
-
label: /* @__PURE__ */ v(ht, { children: [
|
|
2152
|
-
e("settings.transport.title"),
|
|
2153
|
-
/* @__PURE__ */ s(De, { variant: "icon", children: e("settings.transport.description") })
|
|
2154
|
-
] }),
|
|
2155
|
-
onClick: () => t("transport"),
|
|
2156
|
-
value: "WebRTC"
|
|
1869
|
+
}), Re = (t) => {
|
|
1870
|
+
const e = je({
|
|
1871
|
+
variant: "icon",
|
|
1872
|
+
size: "lg"
|
|
1873
|
+
}, t), {
|
|
1874
|
+
root: n,
|
|
1875
|
+
box: r,
|
|
1876
|
+
popover: o,
|
|
1877
|
+
icon: a
|
|
1878
|
+
} = Lo({
|
|
1879
|
+
size: e.size,
|
|
1880
|
+
variant: e.variant
|
|
1881
|
+
});
|
|
1882
|
+
return (() => {
|
|
1883
|
+
var s = Eo(), i = s.firstChild, c = i.nextSibling;
|
|
1884
|
+
return g(i, () => ht(e.variant).with("icon", () => l(Qe, {
|
|
1885
|
+
get class() {
|
|
1886
|
+
return a();
|
|
2157
1887
|
}
|
|
2158
|
-
),
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
},
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
placeholder: r,
|
|
2179
|
-
ariaLabel: n,
|
|
2180
|
-
readOnly: o = !0,
|
|
2181
|
-
onChange: a
|
|
2182
|
-
}) => /* @__PURE__ */ s(
|
|
2183
|
-
"input",
|
|
2184
|
-
{
|
|
2185
|
-
id: t,
|
|
2186
|
-
className: Io,
|
|
2187
|
-
value: e,
|
|
2188
|
-
placeholder: r,
|
|
2189
|
-
"aria-label": n,
|
|
2190
|
-
readOnly: o,
|
|
2191
|
-
onChange: (i) => {
|
|
2192
|
-
i.target instanceof HTMLInputElement && a?.(i.target.value);
|
|
1888
|
+
})).with("text", () => Oo()).exhaustive()), g(c, () => e.children), rt((d) => {
|
|
1889
|
+
var u = n(), v = r(), f = o();
|
|
1890
|
+
return u !== d.e && H(s, d.e = u), v !== d.t && H(i, d.t = v), f !== d.a && H(c, d.a = f), d;
|
|
1891
|
+
}, {
|
|
1892
|
+
e: void 0,
|
|
1893
|
+
t: void 0,
|
|
1894
|
+
a: void 0
|
|
1895
|
+
}), s;
|
|
1896
|
+
})();
|
|
1897
|
+
};
|
|
1898
|
+
var Mo = /* @__PURE__ */ b('<span class="text-sm text-(--lv-text-muted)">'), Po = /* @__PURE__ */ b('<button type=button class="flex w-full cursor-pointer items-center justify-between gap-2 first:rounded-t-sm last:rounded-b-sm px-2 py-1 first:pt-1.5 last:pb-2 hover:bg-(--lv-control-button-tertiary-hoverBackground)"><div class="text-sm text-(--lv-text-secondary) flex items-center gap-1"></div><div class="flex items-center gap-1">');
|
|
1899
|
+
const Ee = (t) => (() => {
|
|
1900
|
+
var e = Po(), n = e.firstChild, r = n.nextSibling;
|
|
1901
|
+
return ne(e, "click", t.onClick, !0), g(n, () => t.label), g(r, l(bt, {
|
|
1902
|
+
get when() {
|
|
1903
|
+
return t.value;
|
|
1904
|
+
},
|
|
1905
|
+
get children() {
|
|
1906
|
+
var o = Mo();
|
|
1907
|
+
return g(o, () => t.value), o;
|
|
2193
1908
|
}
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
1909
|
+
}), null), g(r, l(Cn, {
|
|
1910
|
+
class: "h-4 w-4 text-(--lv-text-muted) rtl:rotate-180"
|
|
1911
|
+
}), null), e;
|
|
1912
|
+
})();
|
|
1913
|
+
ft(["click"]);
|
|
1914
|
+
const Vo = (t) => {
|
|
1915
|
+
const {
|
|
1916
|
+
t: e
|
|
1917
|
+
} = D();
|
|
1918
|
+
return l(Kt, {
|
|
1919
|
+
get options() {
|
|
1920
|
+
return [["true", String(e("common.yes"))], ["false", String(e("common.no"))]];
|
|
1921
|
+
},
|
|
1922
|
+
get value() {
|
|
1923
|
+
return t.value ? "true" : "false";
|
|
1924
|
+
},
|
|
1925
|
+
onChange: (n) => t.onChange(n === "true")
|
|
1926
|
+
});
|
|
1927
|
+
}, jo = (t) => {
|
|
1928
|
+
const {
|
|
1929
|
+
t: e
|
|
1930
|
+
} = D(), {
|
|
1931
|
+
settings: n,
|
|
1932
|
+
setRetainSessionHistory: r,
|
|
1933
|
+
setAutoReconnect: o
|
|
1934
|
+
} = Ot();
|
|
1935
|
+
return l(Bt, {
|
|
1936
|
+
get title() {
|
|
1937
|
+
return e("settings.connectionPreferences.title");
|
|
1938
|
+
},
|
|
1939
|
+
get children() {
|
|
1940
|
+
return [l(Ee, {
|
|
1941
|
+
get label() {
|
|
1942
|
+
return [pt(() => e("settings.signaling.title")), l(Re, {
|
|
1943
|
+
variant: "icon",
|
|
1944
|
+
get children() {
|
|
1945
|
+
return e("settings.signaling.description");
|
|
1946
|
+
}
|
|
1947
|
+
})];
|
|
1948
|
+
},
|
|
1949
|
+
onClick: () => t.onNavigate("signaling"),
|
|
1950
|
+
get value() {
|
|
1951
|
+
return n()?.signaling?.p;
|
|
2219
1952
|
}
|
|
2220
|
-
)
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
})
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
)
|
|
2245
|
-
|
|
1953
|
+
}), l(Ee, {
|
|
1954
|
+
get label() {
|
|
1955
|
+
return [pt(() => e("settings.transport.title")), l(Re, {
|
|
1956
|
+
variant: "icon",
|
|
1957
|
+
get children() {
|
|
1958
|
+
return e("settings.transport.description");
|
|
1959
|
+
}
|
|
1960
|
+
})];
|
|
1961
|
+
},
|
|
1962
|
+
onClick: () => t.onNavigate("transport"),
|
|
1963
|
+
value: "WebRTC"
|
|
1964
|
+
}), l(ct, {
|
|
1965
|
+
get each() {
|
|
1966
|
+
return [[e("settings.connectionPreferences.retainSessionHistory"), n()?.retainHistory ?? !1, r], [e("settings.connectionPreferences.autoReconnect"), n()?.autoReconnect ?? !1, o]];
|
|
1967
|
+
},
|
|
1968
|
+
children: ([a, s, i]) => l(Rt, {
|
|
1969
|
+
label: a,
|
|
1970
|
+
get children() {
|
|
1971
|
+
return l(Vo, {
|
|
1972
|
+
label: a,
|
|
1973
|
+
value: s,
|
|
1974
|
+
onChange: i
|
|
1975
|
+
});
|
|
1976
|
+
}
|
|
1977
|
+
})
|
|
1978
|
+
})];
|
|
1979
|
+
}
|
|
1980
|
+
});
|
|
1981
|
+
};
|
|
1982
|
+
var zo = /* @__PURE__ */ b('<input class="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)">');
|
|
1983
|
+
const _t = (t) => {
|
|
1984
|
+
const e = je({
|
|
1985
|
+
readOnly: !0
|
|
1986
|
+
}, t), [n] = ae(e, ["id", "value", "placeholder", "ariaLabel", "readOnly", "onChange"]);
|
|
1987
|
+
return (() => {
|
|
1988
|
+
var r = zo();
|
|
1989
|
+
return r.$$input = (o) => {
|
|
1990
|
+
n.onChange?.(o.currentTarget.value);
|
|
1991
|
+
}, rt((o) => {
|
|
1992
|
+
var a = n.id, s = n.placeholder, i = n.ariaLabel, c = n.readOnly;
|
|
1993
|
+
return a !== o.e && et(r, "id", o.e = a), s !== o.t && et(r, "placeholder", o.t = s), i !== o.a && et(r, "aria-label", o.a = i), c !== o.o && (r.readOnly = o.o = c), o;
|
|
1994
|
+
}, {
|
|
1995
|
+
e: void 0,
|
|
1996
|
+
t: void 0,
|
|
1997
|
+
a: void 0,
|
|
1998
|
+
o: void 0
|
|
1999
|
+
}), rt(() => r.value = n.value), r;
|
|
2000
|
+
})();
|
|
2001
|
+
};
|
|
2002
|
+
ft(["input"]);
|
|
2003
|
+
var Fo = /* @__PURE__ */ b('<div><div class="p-2 text-sm text-(--lv-text-secondary) text-start">');
|
|
2004
|
+
const Do = ["mqtt", "ntfy", "gun"], Io = () => {
|
|
2005
|
+
const {
|
|
2006
|
+
t
|
|
2007
|
+
} = D(), {
|
|
2246
2008
|
settings: e,
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2009
|
+
setSignalingProtocol: n,
|
|
2010
|
+
setSignalingOptions: r
|
|
2011
|
+
} = Ot(), o = K(() => e()?.signaling?.p), a = K(() => {
|
|
2012
|
+
const s = o();
|
|
2013
|
+
return s ? e()?.signaling?.s?.[s] ?? "" : "";
|
|
2014
|
+
});
|
|
2015
|
+
return (() => {
|
|
2016
|
+
var s = Fo(), i = s.firstChild;
|
|
2017
|
+
return g(s, l(Bt, {
|
|
2018
|
+
get title() {
|
|
2019
|
+
return t("settings.signaling.title");
|
|
2020
|
+
},
|
|
2021
|
+
get children() {
|
|
2022
|
+
return [l(Rt, {
|
|
2023
|
+
get label() {
|
|
2024
|
+
return t("common.protocol");
|
|
2025
|
+
},
|
|
2026
|
+
get children() {
|
|
2027
|
+
return l(Kt, {
|
|
2028
|
+
get options() {
|
|
2029
|
+
return Do.map((c) => [c.toLowerCase(), c.toUpperCase()]);
|
|
2030
|
+
},
|
|
2031
|
+
get value() {
|
|
2032
|
+
return o() ?? "";
|
|
2033
|
+
},
|
|
2034
|
+
onChange: (c) => n(c)
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
}), l(Rt, {
|
|
2038
|
+
get label() {
|
|
2039
|
+
return t("settings.signaling.server");
|
|
2040
|
+
},
|
|
2041
|
+
get children() {
|
|
2042
|
+
return l(_t, {
|
|
2043
|
+
id: "server",
|
|
2044
|
+
get value() {
|
|
2045
|
+
return a();
|
|
2046
|
+
},
|
|
2047
|
+
onChange: (c) => r({
|
|
2048
|
+
url: c
|
|
2049
|
+
}),
|
|
2050
|
+
get placeholder() {
|
|
2051
|
+
return String(t("settings.signaling.serverUrl"));
|
|
2052
|
+
},
|
|
2053
|
+
get ariaLabel() {
|
|
2054
|
+
return String(t("settings.signaling.serverUrl"));
|
|
2055
|
+
},
|
|
2056
|
+
readOnly: !1
|
|
2057
|
+
});
|
|
2058
|
+
}
|
|
2059
|
+
})];
|
|
2060
|
+
}
|
|
2061
|
+
}), i), g(i, () => t("settings.signaling.description")), s;
|
|
2062
|
+
})();
|
|
2063
|
+
};
|
|
2064
|
+
var Uo = /* @__PURE__ */ b('<div class="flex items-center gap-2"><div class=flex-1>'), Ko = /* @__PURE__ */ b('<button type=button class="flex w-full cursor-pointer items-center justify-center gap-1 rounded-md border border-dashed border-(--lv-control-input-border) py-2 text-sm text-(--lv-text-muted) hover:bg-(--lv-card-background)">'), Wo = /* @__PURE__ */ b('<div class="flex flex-col gap-2 p-2">'), Ho = /* @__PURE__ */ b('<div class="flex flex-col gap-3 p-2">'), qo = /* @__PURE__ */ b('<div class="p-2 text-sm text-(--lv-text-secondary) text-start">'), Go = /* @__PURE__ */ b('<div class="flex flex-col gap-2 rounded-md border border-(--lv-control-input-border) p-2"><div class="grid grid-cols-2 gap-2">');
|
|
2065
|
+
const Oe = (t) => (() => {
|
|
2066
|
+
var e = Uo(), n = e.firstChild;
|
|
2067
|
+
return g(n, () => t.children), g(e, l(kt, {
|
|
2068
|
+
get onClick() {
|
|
2069
|
+
return t.onRemove;
|
|
2070
|
+
},
|
|
2071
|
+
$variant: "tertiary",
|
|
2072
|
+
$aspect: "square",
|
|
2073
|
+
$size: "sm",
|
|
2074
|
+
get children() {
|
|
2075
|
+
return l(Vn, {
|
|
2076
|
+
class: "h-4 w-4 text-(--lv-text-muted)"
|
|
2077
|
+
});
|
|
2078
|
+
}
|
|
2079
|
+
}), null), e;
|
|
2080
|
+
})(), Le = (t) => (() => {
|
|
2081
|
+
var e = Ko();
|
|
2082
|
+
return ne(e, "click", t.onClick, !0), g(e, l(Tn, {
|
|
2083
|
+
class: "h-4 w-4"
|
|
2084
|
+
}), null), g(e, () => t.label, null), e;
|
|
2085
|
+
})(), Qo = () => {
|
|
2086
|
+
const {
|
|
2087
|
+
t
|
|
2088
|
+
} = D();
|
|
2089
|
+
Ot();
|
|
2090
|
+
const [e, n] = O([]), [r, o] = O([]), a = () => {
|
|
2091
|
+
o([...r(), ""]);
|
|
2092
|
+
}, s = (v) => {
|
|
2093
|
+
o(r().filter((f, h) => h !== v));
|
|
2094
|
+
}, i = (v, f) => {
|
|
2095
|
+
o(r().map((h, m) => m === v ? f : h));
|
|
2096
|
+
}, c = () => {
|
|
2097
|
+
n([...e(), {
|
|
2098
|
+
urls: ""
|
|
2099
|
+
}]);
|
|
2100
|
+
}, d = (v) => {
|
|
2101
|
+
n(e().filter((f, h) => h !== v));
|
|
2102
|
+
}, u = (v, f, h) => {
|
|
2103
|
+
n(e().map((m, C) => C === v ? {
|
|
2104
|
+
...m,
|
|
2105
|
+
[f]: h
|
|
2106
|
+
} : m));
|
|
2265
2107
|
};
|
|
2266
|
-
return
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2108
|
+
return [l(Bt, {
|
|
2109
|
+
get title() {
|
|
2110
|
+
return t("settings.transport.iceServers.stun");
|
|
2111
|
+
},
|
|
2112
|
+
get children() {
|
|
2113
|
+
var v = Wo();
|
|
2114
|
+
return g(v, l(ct, {
|
|
2115
|
+
get each() {
|
|
2116
|
+
return r();
|
|
2117
|
+
},
|
|
2118
|
+
children: (f, h) => l(Oe, {
|
|
2119
|
+
onRemove: () => s(h()),
|
|
2120
|
+
get children() {
|
|
2121
|
+
return l(_t, {
|
|
2275
2122
|
value: f,
|
|
2276
|
-
onChange: (
|
|
2123
|
+
onChange: (m) => i(h(), m),
|
|
2277
2124
|
placeholder: "stun:stun.l.google.com:19302",
|
|
2278
2125
|
readOnly: !1
|
|
2279
|
-
}
|
|
2280
|
-
|
|
2126
|
+
});
|
|
2127
|
+
}
|
|
2128
|
+
})
|
|
2129
|
+
}), null), g(v, l(Le, {
|
|
2130
|
+
get label() {
|
|
2131
|
+
return t("settings.transport.iceServers.addStun");
|
|
2281
2132
|
},
|
|
2282
|
-
|
|
2283
|
-
)),
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
)
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
{
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
{
|
|
2301
|
-
value
|
|
2302
|
-
|
|
2133
|
+
onClick: a
|
|
2134
|
+
}), null), v;
|
|
2135
|
+
}
|
|
2136
|
+
}), l(Bt, {
|
|
2137
|
+
get title() {
|
|
2138
|
+
return t("settings.transport.iceServers.turn");
|
|
2139
|
+
},
|
|
2140
|
+
get children() {
|
|
2141
|
+
var v = Ho();
|
|
2142
|
+
return g(v, l(ct, {
|
|
2143
|
+
get each() {
|
|
2144
|
+
return e();
|
|
2145
|
+
},
|
|
2146
|
+
children: (f, h) => (() => {
|
|
2147
|
+
var m = Go(), C = m.firstChild;
|
|
2148
|
+
return g(m, l(Oe, {
|
|
2149
|
+
onRemove: () => d(h()),
|
|
2150
|
+
get children() {
|
|
2151
|
+
return l(_t, {
|
|
2152
|
+
get value() {
|
|
2153
|
+
return f.urls;
|
|
2154
|
+
},
|
|
2155
|
+
onChange: (p) => u(h(), "urls", p),
|
|
2303
2156
|
placeholder: "turn:relay.example.com:443",
|
|
2304
2157
|
readOnly: !1
|
|
2305
|
-
}
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
] })
|
|
2327
|
-
]
|
|
2158
|
+
});
|
|
2159
|
+
}
|
|
2160
|
+
}), C), g(C, l(_t, {
|
|
2161
|
+
get value() {
|
|
2162
|
+
return f.username ?? "";
|
|
2163
|
+
},
|
|
2164
|
+
onChange: (p) => u(h(), "username", p),
|
|
2165
|
+
placeholder: "Username",
|
|
2166
|
+
readOnly: !1
|
|
2167
|
+
}), null), g(C, l(_t, {
|
|
2168
|
+
get value() {
|
|
2169
|
+
return f.credential ?? "";
|
|
2170
|
+
},
|
|
2171
|
+
onChange: (p) => u(h(), "credential", p),
|
|
2172
|
+
placeholder: "Password",
|
|
2173
|
+
readOnly: !1
|
|
2174
|
+
}), null), m;
|
|
2175
|
+
})()
|
|
2176
|
+
}), null), g(v, l(Le, {
|
|
2177
|
+
get label() {
|
|
2178
|
+
return t("settings.transport.iceServers.addTurn");
|
|
2328
2179
|
},
|
|
2329
|
-
|
|
2330
|
-
)),
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
] });
|
|
2341
|
-
}, Fo = (t) => {
|
|
2180
|
+
onClick: c
|
|
2181
|
+
}), null), v;
|
|
2182
|
+
}
|
|
2183
|
+
}), (() => {
|
|
2184
|
+
var v = qo();
|
|
2185
|
+
return g(v, () => t("settings.transport.description")), v;
|
|
2186
|
+
})()];
|
|
2187
|
+
};
|
|
2188
|
+
ft(["click"]);
|
|
2189
|
+
var Jo = /* @__PURE__ */ b('<div class="px-4 pb-2">');
|
|
2190
|
+
const Xo = (t) => {
|
|
2342
2191
|
switch (t) {
|
|
2343
2192
|
case "main":
|
|
2344
2193
|
return "settings.title";
|
|
@@ -2347,287 +2196,286 @@ const To = ({
|
|
|
2347
2196
|
case "transport":
|
|
2348
2197
|
return "settings.transport.title";
|
|
2349
2198
|
}
|
|
2350
|
-
},
|
|
2351
|
-
onTitleChange: t,
|
|
2352
|
-
navigationRef: e
|
|
2353
|
-
}) => {
|
|
2199
|
+
}, Zo = (t) => {
|
|
2354
2200
|
const {
|
|
2355
|
-
screen:
|
|
2201
|
+
screen: e,
|
|
2356
2202
|
previousScreen: n,
|
|
2357
|
-
isTransitioning:
|
|
2358
|
-
navigate:
|
|
2359
|
-
goBack:
|
|
2360
|
-
isAtRoot:
|
|
2361
|
-
} =
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
t?.(Fo(r));
|
|
2366
|
-
}, [r, t]), /* @__PURE__ */ s("div", { className: "px-4 pb-2", children: /* @__PURE__ */ s(
|
|
2367
|
-
To,
|
|
2368
|
-
{
|
|
2369
|
-
current: r,
|
|
2370
|
-
previous: n,
|
|
2371
|
-
isTransitioning: o,
|
|
2372
|
-
render: (d) => {
|
|
2373
|
-
switch (d) {
|
|
2374
|
-
case "main":
|
|
2375
|
-
return /* @__PURE__ */ v(ht, { children: [
|
|
2376
|
-
/* @__PURE__ */ s(Bo, { onNavigate: a }),
|
|
2377
|
-
/* @__PURE__ */ s(Lo, {})
|
|
2378
|
-
] });
|
|
2379
|
-
case "signaling":
|
|
2380
|
-
return /* @__PURE__ */ s(Vo, {});
|
|
2381
|
-
case "transport":
|
|
2382
|
-
return /* @__PURE__ */ s(Mo, {});
|
|
2383
|
-
}
|
|
2384
|
-
}
|
|
2203
|
+
isTransitioning: r,
|
|
2204
|
+
navigate: o,
|
|
2205
|
+
goBack: a,
|
|
2206
|
+
isAtRoot: s
|
|
2207
|
+
} = mo("main"), i = {
|
|
2208
|
+
goBack: a,
|
|
2209
|
+
get isAtRoot() {
|
|
2210
|
+
return s();
|
|
2385
2211
|
}
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2212
|
+
};
|
|
2213
|
+
J(() => {
|
|
2214
|
+
t.navigationRef && (t.navigationRef.current = i);
|
|
2215
|
+
}), J(() => {
|
|
2216
|
+
t.onTitleChange?.(Xo(e()));
|
|
2217
|
+
});
|
|
2218
|
+
const c = (d) => {
|
|
2219
|
+
switch (d) {
|
|
2220
|
+
case "main":
|
|
2221
|
+
return [l(jo, {
|
|
2222
|
+
onNavigate: o
|
|
2223
|
+
}), l(Ro, {})];
|
|
2224
|
+
case "signaling":
|
|
2225
|
+
return l(Io, {});
|
|
2226
|
+
case "transport":
|
|
2227
|
+
return l(Qo, {});
|
|
2228
|
+
}
|
|
2229
|
+
};
|
|
2230
|
+
return (() => {
|
|
2231
|
+
var d = Jo();
|
|
2232
|
+
return g(d, l(xo, {
|
|
2233
|
+
get current() {
|
|
2234
|
+
return e();
|
|
2235
|
+
},
|
|
2236
|
+
get previous() {
|
|
2237
|
+
return n();
|
|
2238
|
+
},
|
|
2239
|
+
get isTransitioning() {
|
|
2240
|
+
return r();
|
|
2241
|
+
},
|
|
2242
|
+
render: c
|
|
2243
|
+
})), d;
|
|
2244
|
+
})();
|
|
2245
|
+
};
|
|
2246
|
+
var Yo = /* @__PURE__ */ b("<div class=modal-transition__container><div>"), ta = /* @__PURE__ */ b('<div class="modal-transition__layer modal-transition__layer--outgoing">'), ea = /* @__PURE__ */ b('<div class="fixed inset-0 z-10000 flex animate-[bg-in_0.15s_ease-in-out] items-end justify-center md:items-center lg:p-4"role=presentation data-openlv-modal-root><div role=dialog aria-modal=true><div><div class=modal-transition__container><div><div class="flex flex-col text-center"></div></div></div></div><div>');
|
|
2247
|
+
const ra = () => {
|
|
2248
|
+
const [t, e] = O("start"), [n, r] = O(!1);
|
|
2249
|
+
return J(() => {
|
|
2250
|
+
if (!n()) return;
|
|
2251
|
+
const o = globalThis.setTimeout(() => r(!1), 2e3);
|
|
2252
|
+
X(() => globalThis.clearTimeout(o));
|
|
2253
|
+
}), {
|
|
2394
2254
|
view: t,
|
|
2395
2255
|
setView: e,
|
|
2396
|
-
copied:
|
|
2397
|
-
setCopied:
|
|
2256
|
+
copied: n,
|
|
2257
|
+
setCopied: r
|
|
2398
2258
|
};
|
|
2399
|
-
},
|
|
2400
|
-
|
|
2401
|
-
const e = (
|
|
2402
|
-
|
|
2259
|
+
}, na = (t) => {
|
|
2260
|
+
J(() => {
|
|
2261
|
+
const e = (n) => {
|
|
2262
|
+
n.key === "Escape" && t();
|
|
2403
2263
|
};
|
|
2404
|
-
|
|
2405
|
-
}
|
|
2406
|
-
},
|
|
2407
|
-
const t =
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
},
|
|
2416
|
-
[]
|
|
2417
|
-
);
|
|
2418
|
-
return yt(() => {
|
|
2419
|
-
const a = t.current;
|
|
2264
|
+
document.addEventListener("keydown", e), X(() => document.removeEventListener("keydown", e));
|
|
2265
|
+
});
|
|
2266
|
+
}, oa = () => {
|
|
2267
|
+
const [t, e] = O(), [n, r] = O(0), o = (a, s = !1) => {
|
|
2268
|
+
const i = a || t();
|
|
2269
|
+
if (!i) return;
|
|
2270
|
+
const c = s ? i.scrollHeight : i.getBoundingClientRect().height;
|
|
2271
|
+
c > 0 && r((d) => typeof d == "number" && Math.abs(d - c) < 0.5 ? d : c);
|
|
2272
|
+
};
|
|
2273
|
+
return J(() => {
|
|
2274
|
+
const a = t();
|
|
2420
2275
|
if (!a || typeof ResizeObserver > "u") return;
|
|
2421
|
-
const
|
|
2276
|
+
const s = new ResizeObserver(() => {
|
|
2422
2277
|
o();
|
|
2423
2278
|
});
|
|
2424
|
-
|
|
2425
|
-
}
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
contentRef: t,
|
|
2433
|
-
height: e,
|
|
2434
|
-
measureHeight: o,
|
|
2435
|
-
setHeight: r
|
|
2279
|
+
s.observe(a), X(() => s.disconnect());
|
|
2280
|
+
}), J(() => {
|
|
2281
|
+
globalThis.window !== void 0 && (window.addEventListener("resize", o), X(() => window.removeEventListener("resize", o)));
|
|
2282
|
+
}), {
|
|
2283
|
+
setContentRef: e,
|
|
2284
|
+
contentNode: t,
|
|
2285
|
+
height: n,
|
|
2286
|
+
measureHeight: o
|
|
2436
2287
|
};
|
|
2437
|
-
},
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
}
|
|
2466
|
-
|
|
2467
|
-
}
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
}
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2288
|
+
}, aa = (t) => {
|
|
2289
|
+
const {
|
|
2290
|
+
view: e,
|
|
2291
|
+
setView: n,
|
|
2292
|
+
copied: r,
|
|
2293
|
+
setCopied: o
|
|
2294
|
+
} = ra(), {
|
|
2295
|
+
uri: a,
|
|
2296
|
+
status: s
|
|
2297
|
+
} = Et(), {
|
|
2298
|
+
provider: i
|
|
2299
|
+
} = Ct(), {
|
|
2300
|
+
setContentRef: c,
|
|
2301
|
+
contentNode: d,
|
|
2302
|
+
height: u,
|
|
2303
|
+
measureHeight: v
|
|
2304
|
+
} = oa(), {
|
|
2305
|
+
current: f,
|
|
2306
|
+
previous: h,
|
|
2307
|
+
isTransitioning: m
|
|
2308
|
+
} = re(e), {
|
|
2309
|
+
current: C,
|
|
2310
|
+
previous: p,
|
|
2311
|
+
isTransitioning: L
|
|
2312
|
+
} = re(s), M = () => n("settings"), {
|
|
2313
|
+
t: y,
|
|
2314
|
+
isRtl: St,
|
|
2315
|
+
languageTag: P
|
|
2316
|
+
} = D(), Lt = Ye(), mt = {
|
|
2317
|
+
current: null
|
|
2318
|
+
}, [Wt, Mt] = O("settings.title"), At = K(() => ht(e()).with("start", () => y("start.title")).with("settings", () => y(Wt())).with("info", () => y("info.title")).exhaustive());
|
|
2319
|
+
na(t.onClose), J(() => {
|
|
2320
|
+
s()?.status === Q.CONNECTED && t.onClose();
|
|
2321
|
+
});
|
|
2322
|
+
const Pt = async () => {
|
|
2323
|
+
const $ = a();
|
|
2324
|
+
$ && await Ge($) && o(!0);
|
|
2325
|
+
};
|
|
2326
|
+
let Vt = !0, ut, x, k;
|
|
2327
|
+
const [S, T] = O(!1);
|
|
2328
|
+
J(() => {
|
|
2329
|
+
C(), f(), d() && (Vt ? (ut && globalThis.clearTimeout(ut), ut = globalThis.setTimeout(() => {
|
|
2330
|
+
d() && (v(void 0, !0), Vt = !1);
|
|
2331
|
+
}, 0)) : v(), X(() => {
|
|
2332
|
+
ut && globalThis.clearTimeout(ut);
|
|
2333
|
+
}));
|
|
2334
|
+
}), J(() => {
|
|
2335
|
+
const $ = u();
|
|
2336
|
+
x !== void 0 && $ !== x && $ > 0 && x > 0 && Math.abs($ - x) > 0.5 && (T(!0), k && globalThis.clearTimeout(k), k = globalThis.setTimeout(() => {
|
|
2337
|
+
T(!1), k = void 0;
|
|
2338
|
+
}, 200)), x = $, X(() => {
|
|
2339
|
+
k && globalThis.clearTimeout(k);
|
|
2340
|
+
});
|
|
2341
|
+
});
|
|
2342
|
+
const [A, N] = O(i.getState().status);
|
|
2343
|
+
oe(() => {
|
|
2344
|
+
i.on("status_change", N);
|
|
2345
|
+
}), X(() => {
|
|
2346
|
+
i.off("status_change", N);
|
|
2347
|
+
});
|
|
2348
|
+
const F = K(() => !(e() === "start" && A() === Q.STANDBY)), Z = () => {
|
|
2349
|
+
ht({
|
|
2350
|
+
view: e(),
|
|
2351
|
+
status: A()
|
|
2352
|
+
}).with({
|
|
2353
|
+
view: "start",
|
|
2354
|
+
status: Q.STANDBY
|
|
2355
|
+
}, () => {
|
|
2356
|
+
}).with({
|
|
2357
|
+
view: "start"
|
|
2358
|
+
}, () => {
|
|
2359
|
+
i.closeSession();
|
|
2360
|
+
}).with({
|
|
2361
|
+
view: "settings"
|
|
2362
|
+
}, () => {
|
|
2363
|
+
mt.current && !mt.current.isAtRoot ? mt.current.goBack() : n("start");
|
|
2364
|
+
}).with({
|
|
2365
|
+
view: "info"
|
|
2366
|
+
}, () => {
|
|
2367
|
+
n("start");
|
|
2368
|
+
}).otherwise(() => {
|
|
2369
|
+
i.closeSession(), t.onClose();
|
|
2370
|
+
});
|
|
2371
|
+
}, V = ($) => ht($).with("start", () => l(io, {
|
|
2372
|
+
onSettings: M
|
|
2373
|
+
})).with("settings", () => l(Zo, {
|
|
2374
|
+
onTitleChange: Mt,
|
|
2375
|
+
navigationRef: mt
|
|
2376
|
+
})).with("info", () => l(lo, {})).otherwise(() => l(te, {
|
|
2377
|
+
state: $
|
|
2378
|
+
})), q = () => (() => {
|
|
2379
|
+
var $ = Yo(), I = $.firstChild;
|
|
2380
|
+
return g($, l(bt, {
|
|
2381
|
+
get when() {
|
|
2382
|
+
return h();
|
|
2383
|
+
},
|
|
2384
|
+
children: (gt) => (() => {
|
|
2385
|
+
var $t = ta();
|
|
2386
|
+
return g($t, () => V(gt())), $t;
|
|
2387
|
+
})()
|
|
2388
|
+
}), I), g(I, () => V(f())), rt(() => H(I, lt("modal-transition__layer", m() && "modal-transition__layer--incoming"))), $;
|
|
2389
|
+
})(), nt = ($) => ht($).with(Q.STANDBY, () => q()).with(Sr.union(Q.CREATING, Q.CONNECTING, Q.CONNECTED), () => l(dn, {
|
|
2390
|
+
get onClose() {
|
|
2391
|
+
return t.onClose;
|
|
2392
|
+
},
|
|
2393
|
+
onCopy: Pt
|
|
2394
|
+
})).otherwise((I) => l(te, {
|
|
2395
|
+
state: I || "unknown status"
|
|
2396
|
+
})), G = {
|
|
2501
2397
|
background: "var(--lv-overlay-background, rgba(0,0,0,0.3))",
|
|
2502
|
-
|
|
2503
|
-
},
|
|
2398
|
+
"backdrop-filter": "var(--lv-overlay-backdrop-filter, blur(4px))"
|
|
2399
|
+
}, yt = {
|
|
2504
2400
|
background: "var(--lv-body-background)",
|
|
2505
2401
|
color: "var(--lv-body-color, var(--lv-text-primary))",
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
};
|
|
2509
|
-
return /* @__PURE__ */ s(
|
|
2510
|
-
"div",
|
|
2511
|
-
{
|
|
2512
|
-
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",
|
|
2513
|
-
onClick: t,
|
|
2514
|
-
role: "presentation",
|
|
2515
|
-
"data-openlv-modal-root": !0,
|
|
2516
|
-
"data-openlv-theme-mode": _,
|
|
2517
|
-
dir: D ? "rtl" : "ltr",
|
|
2518
|
-
style: z,
|
|
2519
|
-
children: /* @__PURE__ */ v(
|
|
2520
|
-
"div",
|
|
2521
|
-
{
|
|
2522
|
-
className: at(
|
|
2523
|
-
"relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out",
|
|
2524
|
-
C || f ? "overflow-hidden" : void 0
|
|
2525
|
-
),
|
|
2526
|
-
role: "dialog",
|
|
2527
|
-
"aria-modal": "true",
|
|
2528
|
-
"aria-label": xt,
|
|
2529
|
-
onClick: (j) => j.stopPropagation(),
|
|
2530
|
-
style: {
|
|
2531
|
-
...typeof d == "number" && d > 0 ? { height: `${d}px` } : {},
|
|
2532
|
-
...X
|
|
2533
|
-
},
|
|
2534
|
-
children: [
|
|
2535
|
-
/* @__PURE__ */ v("div", { ref: u, children: [
|
|
2536
|
-
/* @__PURE__ */ s(
|
|
2537
|
-
So,
|
|
2538
|
-
{
|
|
2539
|
-
title: xt,
|
|
2540
|
-
view: r,
|
|
2541
|
-
onClose: t,
|
|
2542
|
-
onBack: T,
|
|
2543
|
-
setView: n
|
|
2544
|
-
}
|
|
2545
|
-
),
|
|
2546
|
-
/* @__PURE__ */ v("div", { className: "modal-transition__container", children: [
|
|
2547
|
-
f && /* @__PURE__ */ s("div", { className: "modal-transition__layer modal-transition__layer--outgoing absolute", children: /* @__PURE__ */ s("div", { className: "flex flex-col text-center", children: Q(f) }) }),
|
|
2548
|
-
/* @__PURE__ */ s(
|
|
2549
|
-
"div",
|
|
2550
|
-
{
|
|
2551
|
-
className: at(
|
|
2552
|
-
"modal-transition__layer",
|
|
2553
|
-
x && "modal-transition__layer--incoming"
|
|
2554
|
-
),
|
|
2555
|
-
children: /* @__PURE__ */ s("div", { className: "flex flex-col text-center", children: Q(E) })
|
|
2556
|
-
}
|
|
2557
|
-
)
|
|
2558
|
-
] }),
|
|
2559
|
-
/* @__PURE__ */ s(wo, {})
|
|
2560
|
-
] }),
|
|
2561
|
-
/* @__PURE__ */ s(
|
|
2562
|
-
"div",
|
|
2563
|
-
{
|
|
2564
|
-
className: at(
|
|
2565
|
-
"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",
|
|
2566
|
-
o ? "translate-x-0 opacity-100" : "opacity-0 ltr:translate-x-full rtl:-translate-x-full"
|
|
2567
|
-
),
|
|
2568
|
-
children: h("modal.urlCopied")
|
|
2569
|
-
}
|
|
2570
|
-
)
|
|
2571
|
-
]
|
|
2572
|
-
}
|
|
2573
|
-
)
|
|
2574
|
-
}
|
|
2575
|
-
);
|
|
2576
|
-
}, Ho = ({ onClose: t = () => {
|
|
2577
|
-
}, onCopy: e }) => /* @__PURE__ */ s(Ko, { onClose: t, onCopy: e }), $o = (t = "idle") => {
|
|
2578
|
-
const [e, r] = P({
|
|
2579
|
-
state: t
|
|
2580
|
-
}), n = K(
|
|
2581
|
-
(i, l) => {
|
|
2582
|
-
r((c) => ({
|
|
2583
|
-
...c,
|
|
2584
|
-
state: i,
|
|
2585
|
-
...l
|
|
2586
|
-
}));
|
|
2587
|
-
},
|
|
2588
|
-
[]
|
|
2589
|
-
), o = K((i) => {
|
|
2590
|
-
r(i);
|
|
2591
|
-
}, []), a = K(() => {
|
|
2592
|
-
r({ state: "idle" });
|
|
2593
|
-
}, []);
|
|
2594
|
-
return {
|
|
2595
|
-
connectionInfo: e,
|
|
2596
|
-
updateState: n,
|
|
2597
|
-
updateConnectionInfo: o,
|
|
2598
|
-
reset: a
|
|
2402
|
+
"border-radius": "var(--lv-border-radius, 16px)",
|
|
2403
|
+
"box-shadow": "var(--lv-modal-shadow, 0px 12px 32px rgba(0,0,0,0.25))"
|
|
2599
2404
|
};
|
|
2600
|
-
|
|
2601
|
-
|
|
2405
|
+
return (() => {
|
|
2406
|
+
var $ = ea(), I = $.firstChild, gt = I.firstChild, $t = gt.firstChild, le = $t.firstChild, tr = le.firstChild, ce = gt.nextSibling;
|
|
2407
|
+
return $.$$mouseup = (B) => {
|
|
2408
|
+
B.target === B.currentTarget && t.onClose();
|
|
2409
|
+
}, be($, G), I.$$click = (B) => B.stopPropagation(), ir(c, gt), g(gt, l(bo, {
|
|
2410
|
+
get title() {
|
|
2411
|
+
return String(At());
|
|
2412
|
+
},
|
|
2413
|
+
get view() {
|
|
2414
|
+
return e();
|
|
2415
|
+
},
|
|
2416
|
+
get onClose() {
|
|
2417
|
+
return t.onClose;
|
|
2418
|
+
},
|
|
2419
|
+
get onBack() {
|
|
2420
|
+
return F() ? Z : void 0;
|
|
2421
|
+
},
|
|
2422
|
+
setView: n
|
|
2423
|
+
}), $t), g(tr, () => nt(A())), g(gt, l(po, {}), null), g(ce, () => y("modal.urlCopied")), rt((B) => {
|
|
2424
|
+
var de = Lt.mode(), ue = P(), ge = St() ? "rtl" : "ltr", ve = lt("relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out", S() || p() ? "overflow-hidden" : void 0), he = String(At()), er = {
|
|
2425
|
+
...typeof u() == "number" && u() > 0 ? {
|
|
2426
|
+
height: `${u()}px`
|
|
2427
|
+
} : {},
|
|
2428
|
+
...yt
|
|
2429
|
+
}, pe = lt("modal-transition__layer", L() && "modal-transition__layer--incoming"), fe = lt("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", r() ? "translate-x-0 opacity-100" : "opacity-0 ltr:translate-x-full rtl:-translate-x-full");
|
|
2430
|
+
return de !== B.e && et($, "data-openlv-theme-mode", B.e = de), ue !== B.t && et($, "lang", B.t = ue), ge !== B.a && et($, "dir", B.a = ge), ve !== B.o && H(I, B.o = ve), he !== B.i && et(I, "aria-label", B.i = he), B.n = be(I, er, B.n), pe !== B.s && H(le, B.s = pe), fe !== B.h && H(ce, B.h = fe), B;
|
|
2431
|
+
}, {
|
|
2432
|
+
e: void 0,
|
|
2433
|
+
t: void 0,
|
|
2434
|
+
a: void 0,
|
|
2435
|
+
o: void 0,
|
|
2436
|
+
i: void 0,
|
|
2437
|
+
n: void 0,
|
|
2438
|
+
s: void 0,
|
|
2439
|
+
h: void 0
|
|
2440
|
+
}), $;
|
|
2441
|
+
})();
|
|
2442
|
+
};
|
|
2443
|
+
ft(["mouseup", "click"]);
|
|
2444
|
+
const ia = (...t) => console.log(
|
|
2445
|
+
"%c[modal]%c",
|
|
2446
|
+
"color: yellow; font-weight: bold",
|
|
2447
|
+
"color: inherit; font-weight: normal",
|
|
2448
|
+
...t
|
|
2449
|
+
), sa = (t = "openlv-modal") => {
|
|
2450
|
+
if (globalThis.window === void 0)
|
|
2602
2451
|
return t;
|
|
2603
|
-
const e =
|
|
2452
|
+
const e = globalThis.customElements;
|
|
2604
2453
|
return e ? (e.get(t) || e.define(
|
|
2605
2454
|
t,
|
|
2606
|
-
|
|
2455
|
+
We
|
|
2607
2456
|
), t) : (console.warn(
|
|
2608
2457
|
"OpenLV modal: custom elements are not supported in this environment."
|
|
2609
2458
|
), t);
|
|
2610
|
-
},
|
|
2459
|
+
}, ua = (t) => {
|
|
2611
2460
|
const e = document.querySelector("openlv-modal");
|
|
2612
2461
|
if (e && e.remove(), !e) {
|
|
2613
|
-
|
|
2614
|
-
const
|
|
2462
|
+
sa();
|
|
2463
|
+
const n = new We({
|
|
2615
2464
|
onClose() {
|
|
2616
|
-
|
|
2465
|
+
ia("modal closed"), n.remove(), t.onClose?.();
|
|
2617
2466
|
},
|
|
2618
2467
|
provider: t.provider,
|
|
2619
2468
|
theme: t.theme
|
|
2620
2469
|
});
|
|
2621
|
-
document.body.
|
|
2470
|
+
document.body.append(n);
|
|
2622
2471
|
}
|
|
2623
2472
|
};
|
|
2624
2473
|
export {
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
$o as useConnectionState
|
|
2474
|
+
aa as ModalRoot,
|
|
2475
|
+
co as OPENLV_ICON_128,
|
|
2476
|
+
We as OpenLVModalElement,
|
|
2477
|
+
We as default,
|
|
2478
|
+
sa as registerOpenLVModal,
|
|
2479
|
+
ua as triggerOpenModal
|
|
2632
2480
|
};
|
|
2633
2481
|
//# sourceMappingURL=index.es.js.map
|