@openlv/modal 0.0.1-beta.3 → 0.0.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +128 -128
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -48,8 +48,8 @@ function lt() {
|
|
|
48
48
|
})(Y)), Y.exports;
|
|
49
49
|
}
|
|
50
50
|
var ct = lt();
|
|
51
|
-
const Le = /* @__PURE__ */ st(ct), v = Symbol.for("@ts-pattern/matcher"), Ee = Symbol.for("@ts-pattern/isVariadic"), J = "@ts-pattern/anonymous-select-key", ee = (e) => !!(e && typeof e == "object"),
|
|
52
|
-
if (
|
|
51
|
+
const Le = /* @__PURE__ */ st(ct), v = Symbol.for("@ts-pattern/matcher"), Ee = Symbol.for("@ts-pattern/isVariadic"), J = "@ts-pattern/anonymous-select-key", ee = (e) => !!(e && typeof e == "object"), W = (e) => e && !!e[v], h = (e, t, r) => {
|
|
52
|
+
if (W(e)) {
|
|
53
53
|
const n = e[v](), { matched: o, selections: i } = n.match(t);
|
|
54
54
|
return o && i && Object.keys(i).forEach((a) => r(a, i[a])), o;
|
|
55
55
|
}
|
|
@@ -60,7 +60,7 @@ const Le = /* @__PURE__ */ st(ct), v = Symbol.for("@ts-pattern/matcher"), Ee = S
|
|
|
60
60
|
let n = [], o = [], i = [];
|
|
61
61
|
for (const a of e.keys()) {
|
|
62
62
|
const l = e[a];
|
|
63
|
-
|
|
63
|
+
W(l) && l[Ee] ? i.push(l) : i.length ? o.push(l) : n.push(l);
|
|
64
64
|
}
|
|
65
65
|
if (i.length) {
|
|
66
66
|
if (i.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
@@ -72,14 +72,14 @@ const Le = /* @__PURE__ */ st(ct), v = Symbol.for("@ts-pattern/matcher"), Ee = S
|
|
|
72
72
|
}
|
|
73
73
|
return Reflect.ownKeys(e).every((n) => {
|
|
74
74
|
const o = e[n];
|
|
75
|
-
return (n in t ||
|
|
75
|
+
return (n in t || W(i = o) && i[v]().matcherType === "optional") && h(o, t[n], r);
|
|
76
76
|
var i;
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
return Object.is(t, e);
|
|
80
80
|
}, m = (e) => {
|
|
81
81
|
var t, r, n;
|
|
82
|
-
return ee(e) ?
|
|
82
|
+
return ee(e) ? W(e) ? (t = (r = (n = e[v]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? M(e, m) : M(Object.values(e), m) : [];
|
|
83
83
|
}, M = (e, t) => e.reduce((r, n) => r.concat(t(n)), []);
|
|
84
84
|
function ut(...e) {
|
|
85
85
|
if (e.length === 1) {
|
|
@@ -95,7 +95,7 @@ function ut(...e) {
|
|
|
95
95
|
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`);
|
|
96
96
|
}
|
|
97
97
|
function g(e) {
|
|
98
|
-
return Object.assign(e, { optional: () => se(e), and: (t) => p(e, t), or: (t) => Fe(e, t), select: (t) => t === void 0 ?
|
|
98
|
+
return Object.assign(e, { optional: () => se(e), and: (t) => p(e, t), or: (t) => Fe(e, t), select: (t) => t === void 0 ? V(e) : V(t, e) });
|
|
99
99
|
}
|
|
100
100
|
function te(e) {
|
|
101
101
|
return Object.assign(((t) => Object.assign(t, { [Symbol.iterator]() {
|
|
@@ -105,7 +105,7 @@ function te(e) {
|
|
|
105
105
|
var o;
|
|
106
106
|
return (o = n[r++]) != null ? o : n.at(-1);
|
|
107
107
|
} };
|
|
108
|
-
} }))(e), { optional: () => te(se(e)), select: (t) => te(t === void 0 ?
|
|
108
|
+
} }))(e), { optional: () => te(se(e)), select: (t) => te(t === void 0 ? V(e) : V(t, e)) });
|
|
109
109
|
}
|
|
110
110
|
function se(e) {
|
|
111
111
|
return g({ [v]: () => ({ match: (t) => {
|
|
@@ -148,7 +148,7 @@ function Fe(...e) {
|
|
|
148
148
|
function u(e) {
|
|
149
149
|
return { [v]: () => ({ match: (t) => ({ matched: !!e(t) }) }) };
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function V(...e) {
|
|
152
152
|
const t = typeof e[0] == "string" ? e[0] : void 0, r = e.length === 2 ? e[1] : typeof e[0] == "string" ? void 0 : e[0];
|
|
153
153
|
return g({ [v]: () => ({ match: (n) => {
|
|
154
154
|
let o = { [t ?? J]: n };
|
|
@@ -249,7 +249,7 @@ var le = { __proto__: null, matcher: v, optional: se, array: function(...e) {
|
|
|
249
249
|
}, intersection: p, union: Fe, not: function(e) {
|
|
250
250
|
return g({ [v]: () => ({ match: (t) => ({ matched: !h(e, t, () => {
|
|
251
251
|
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
252
|
-
}, when: u, select:
|
|
252
|
+
}, when: u, select: V, any: Te, unknown: ht, _: gt, string: he, number: mt, bigint: vt, boolean: bt, symbol: wt, nullish: yt, nonNullable: xt, instanceOf: function(e) {
|
|
253
253
|
return g(u(/* @__PURE__ */ (function(t) {
|
|
254
254
|
return (r) => r instanceof t;
|
|
255
255
|
})(e)));
|
|
@@ -329,15 +329,15 @@ const St = async (e) => {
|
|
|
329
329
|
L(() => (e?.on(t, r), () => {
|
|
330
330
|
e?.off(t, r);
|
|
331
331
|
}), [e, t]);
|
|
332
|
-
},
|
|
332
|
+
}, Ie = Pe({
|
|
333
333
|
provider: void 0,
|
|
334
334
|
storage: void 0
|
|
335
335
|
}), Nt = ({
|
|
336
336
|
provider: e,
|
|
337
337
|
storage: t,
|
|
338
338
|
onClose: r
|
|
339
|
-
}) => /* @__PURE__ */ s(
|
|
340
|
-
const e = ae(
|
|
339
|
+
}) => /* @__PURE__ */ s(Ie.Provider, { value: { provider: e, storage: t }, children: /* @__PURE__ */ s(Tr, { onClose: r }) }), E = () => {
|
|
340
|
+
const e = ae(Ie), { provider: t, storage: r } = e, [n, o] = y(
|
|
341
341
|
t?.getState().status || "disconnected"
|
|
342
342
|
);
|
|
343
343
|
if (H(
|
|
@@ -348,10 +348,10 @@ const St = async (e) => {
|
|
|
348
348
|
}
|
|
349
349
|
), !e.provider) throw new Error("Provider not found");
|
|
350
350
|
return { provider: t, status: n, storage: r };
|
|
351
|
-
}, At = (e) => {
|
|
351
|
+
}, At = 1, Ot = (e) => {
|
|
352
352
|
const t = new URLSearchParams();
|
|
353
|
-
return t.set("h", e.h), t.set("k", e.k), e.p && t.set("p", e.p), e.s && t.set("s", e.s), `openlv://${e.sessionId}?${t.toString()}`;
|
|
354
|
-
},
|
|
353
|
+
return t.set("h", e.h), t.set("k", e.k), e.p && t.set("p", e.p), e.s && t.set("s", e.s), `openlv://${e.sessionId}@${At}?${t.toString()}`;
|
|
354
|
+
}, I = (...e) => console.log(
|
|
355
355
|
"%c[modal]%c",
|
|
356
356
|
"color: yellow; font-weight: bold",
|
|
357
357
|
"color: inherit; font-weight: normal",
|
|
@@ -377,20 +377,20 @@ const St = async (e) => {
|
|
|
377
377
|
}, G = () => {
|
|
378
378
|
const { provider: e } = E(), [t, r] = y(
|
|
379
379
|
e?.getSession()
|
|
380
|
-
), n = t?.getHandshakeParameters(), o = n ?
|
|
380
|
+
), n = t?.getHandshakeParameters(), o = n ? Ot(n) : void 0, [i, a] = y(
|
|
381
381
|
t?.getState()
|
|
382
382
|
);
|
|
383
383
|
return H(t?.emitter, "state_change", (l) => {
|
|
384
|
-
|
|
384
|
+
I("session state change: ", l), a(l);
|
|
385
385
|
}), H(e?.emitter, "session_started", (l) => {
|
|
386
|
-
|
|
386
|
+
I("session started: ", l), r(l), a(l.getState());
|
|
387
387
|
}), L(() => {
|
|
388
388
|
t && a(t.getState());
|
|
389
389
|
}, [t]), {
|
|
390
390
|
uri: o,
|
|
391
391
|
status: i
|
|
392
392
|
};
|
|
393
|
-
},
|
|
393
|
+
}, jt = () => {
|
|
394
394
|
const { provider: e } = E(), { settings: t } = ce();
|
|
395
395
|
return {
|
|
396
396
|
start: () => {
|
|
@@ -417,7 +417,7 @@ const St = async (e) => {
|
|
|
417
417
|
JSON.stringify(n)
|
|
418
418
|
] })
|
|
419
419
|
] });
|
|
420
|
-
},
|
|
420
|
+
}, Rt = () => /* @__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" }) }), Pt = ({ onClose: e, onCopy: t }) => {
|
|
421
421
|
const { uri: r, status: n = { status: "created" } } = G(), o = "", i = C(() => {
|
|
422
422
|
r && t(r);
|
|
423
423
|
}, [r, t]), a = C((l) => {
|
|
@@ -427,7 +427,7 @@ const St = async (e) => {
|
|
|
427
427
|
return _(n).with({ status: "disconnected" }, () => /* @__PURE__ */ s("div", { children: "hi" })).with(
|
|
428
428
|
{ status: le.union("created", "signaling", "connected", "ready") },
|
|
429
429
|
(l) => _(l.signaling).with({ state: "connecting" }, () => /* @__PURE__ */ d("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
430
|
-
/* @__PURE__ */ s(
|
|
430
|
+
/* @__PURE__ */ s(Rt, {}),
|
|
431
431
|
/* @__PURE__ */ d("div", { className: "text-center", children: [
|
|
432
432
|
/* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Connecting" }),
|
|
433
433
|
/* @__PURE__ */ s("p", { className: "text-gray-500 text-sm", children: "Waiting for wallet to connect..." })
|
|
@@ -480,8 +480,8 @@ const St = async (e) => {
|
|
|
480
480
|
)
|
|
481
481
|
] })).otherwise(() => /* @__PURE__ */ s(K, { state: n }))
|
|
482
482
|
).otherwise(() => /* @__PURE__ */ s(K, { state: n }));
|
|
483
|
-
},
|
|
484
|
-
const { start: e } =
|
|
483
|
+
}, Lt = () => {
|
|
484
|
+
const { start: e } = jt();
|
|
485
485
|
return /* @__PURE__ */ d("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
486
486
|
/* @__PURE__ */ d("div", { className: "text-center", children: [
|
|
487
487
|
/* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Ready to Connect" }),
|
|
@@ -497,7 +497,7 @@ const St = async (e) => {
|
|
|
497
497
|
}
|
|
498
498
|
)
|
|
499
499
|
] });
|
|
500
|
-
},
|
|
500
|
+
}, Et = "data:image/webp;base64,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", Ft = () => {
|
|
501
501
|
const { status: e } = G(), { status: t } = E(), r = _(t).with("disconnected", () => {
|
|
502
502
|
}).with(
|
|
503
503
|
le.union("connected", "connecting", "error"),
|
|
@@ -528,7 +528,7 @@ const St = async (e) => {
|
|
|
528
528
|
/* @__PURE__ */ s("div", { className: "text-gray-900 text-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100", children: r.text }),
|
|
529
529
|
/* @__PURE__ */ s("div", { children: r.icon })
|
|
530
530
|
] }) : /* @__PURE__ */ s(tt, {});
|
|
531
|
-
},
|
|
531
|
+
}, Bt = () => /* @__PURE__ */ d("div", { className: "mt-2 flex items-end justify-between gap-2 px-1 text-gray-500", children: [
|
|
532
532
|
/* @__PURE__ */ d(
|
|
533
533
|
"a",
|
|
534
534
|
{
|
|
@@ -540,7 +540,7 @@ const St = async (e) => {
|
|
|
540
540
|
/* @__PURE__ */ s(
|
|
541
541
|
"img",
|
|
542
542
|
{
|
|
543
|
-
src:
|
|
543
|
+
src: Et,
|
|
544
544
|
alt: "Open Lavatory Logo",
|
|
545
545
|
width: 20,
|
|
546
546
|
height: 20,
|
|
@@ -551,8 +551,8 @@ const St = async (e) => {
|
|
|
551
551
|
]
|
|
552
552
|
}
|
|
553
553
|
),
|
|
554
|
-
/* @__PURE__ */ s("div", { className: "text-gray-500 text-sm", children: /* @__PURE__ */ s(
|
|
555
|
-
] }),
|
|
554
|
+
/* @__PURE__ */ s("div", { className: "text-gray-500 text-sm", children: /* @__PURE__ */ s(Ft, {}) })
|
|
555
|
+
] }), Tt = ({ size: e = 24 }) => (
|
|
556
556
|
// biome-ignore lint/a11y/noSvgWithoutTitle: Chevron left icon
|
|
557
557
|
/* @__PURE__ */ s(
|
|
558
558
|
"svg",
|
|
@@ -575,7 +575,7 @@ const St = async (e) => {
|
|
|
575
575
|
)
|
|
576
576
|
}
|
|
577
577
|
)
|
|
578
|
-
),
|
|
578
|
+
), It = ({ size: e = 24 }) => (
|
|
579
579
|
// biome-ignore lint/a11y/noSvgWithoutTitle: Cog icon
|
|
580
580
|
/* @__PURE__ */ d(
|
|
581
581
|
"svg",
|
|
@@ -618,9 +618,9 @@ const St = async (e) => {
|
|
|
618
618
|
onClose: o
|
|
619
619
|
}) => {
|
|
620
620
|
const { status: i, provider: a } = E(), l = C(async () => {
|
|
621
|
-
|
|
621
|
+
I("closing session"), await a.closeSession();
|
|
622
622
|
}, [a]), c = C(() => {
|
|
623
|
-
|
|
623
|
+
I("status", i), _(i).with(
|
|
624
624
|
"disconnected",
|
|
625
625
|
() => _({ view: t }).with({ view: "settings" }, () => n("start")).with({ view: "start" }, o).otherwise(o)
|
|
626
626
|
).with("connecting", l).with("connected", o).otherwise(o);
|
|
@@ -633,7 +633,7 @@ const St = async (e) => {
|
|
|
633
633
|
onClick: c,
|
|
634
634
|
"aria-label": t === "settings" ? "Back to QR" : "Close modal",
|
|
635
635
|
className: "flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg transition-colors hover:bg-gray-200",
|
|
636
|
-
children: /* @__PURE__ */ s(
|
|
636
|
+
children: /* @__PURE__ */ s(Tt, {})
|
|
637
637
|
}
|
|
638
638
|
),
|
|
639
639
|
/* @__PURE__ */ s("h2", { className: "flex items-center justify-center gap-2 font-semibold text-gray-900 text-lg", children: e }),
|
|
@@ -645,12 +645,12 @@ const St = async (e) => {
|
|
|
645
645
|
"aria-pressed": t === "settings",
|
|
646
646
|
onClick: r,
|
|
647
647
|
className: "flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg transition-colors hover:bg-gray-200",
|
|
648
|
-
children: /* @__PURE__ */ s(
|
|
648
|
+
children: /* @__PURE__ */ s(It, {})
|
|
649
649
|
}
|
|
650
650
|
)
|
|
651
651
|
] });
|
|
652
652
|
};
|
|
653
|
-
function
|
|
653
|
+
function De(e, t) {
|
|
654
654
|
for (var r in t) e[r] = t[r];
|
|
655
655
|
return e;
|
|
656
656
|
}
|
|
@@ -681,17 +681,17 @@ function $(e) {
|
|
|
681
681
|
function Me(e) {
|
|
682
682
|
e();
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Ve(e) {
|
|
685
685
|
return e;
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function We() {
|
|
688
688
|
return [!1, Me];
|
|
689
689
|
}
|
|
690
690
|
var Ue = Z;
|
|
691
691
|
function ie(e, t) {
|
|
692
692
|
this.props = e, this.context = t;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function zt(e, t) {
|
|
695
695
|
function r(o) {
|
|
696
696
|
var i = this.props.ref, a = i == o.ref;
|
|
697
697
|
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : oe(this.props, o);
|
|
@@ -708,13 +708,13 @@ var ge = b.__b;
|
|
|
708
708
|
b.__b = function(e) {
|
|
709
709
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), ge && ge(e);
|
|
710
710
|
};
|
|
711
|
-
var
|
|
712
|
-
function
|
|
711
|
+
var Mt = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
712
|
+
function Vt(e) {
|
|
713
713
|
function t(r) {
|
|
714
|
-
var n =
|
|
714
|
+
var n = De({}, r);
|
|
715
715
|
return delete n.ref, e(n, r.ref || null);
|
|
716
716
|
}
|
|
717
|
-
return t.$$typeof =
|
|
717
|
+
return t.$$typeof = Mt, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
718
718
|
}
|
|
719
719
|
var me = function(e, t) {
|
|
720
720
|
return e == null ? null : j(j(e).map(t));
|
|
@@ -724,18 +724,18 @@ var me = function(e, t) {
|
|
|
724
724
|
var t = j(e);
|
|
725
725
|
if (t.length !== 1) throw "Children.only";
|
|
726
726
|
return t[0];
|
|
727
|
-
}, toArray: j },
|
|
727
|
+
}, toArray: j }, Ut = b.__e;
|
|
728
728
|
b.__e = function(e, t, r, n) {
|
|
729
729
|
if (e.then) {
|
|
730
730
|
for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = r.__e, t.__k = r.__k), o.__c(e, t);
|
|
731
731
|
}
|
|
732
|
-
|
|
732
|
+
Ut(e, t, r, n);
|
|
733
733
|
};
|
|
734
734
|
var ve = b.unmount;
|
|
735
735
|
function Je(e, t, r) {
|
|
736
736
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
|
|
737
737
|
typeof n.__c == "function" && n.__c();
|
|
738
|
-
}), e.__c.__H = null), (e =
|
|
738
|
+
}), e.__c.__H = null), (e = De({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
|
|
739
739
|
return Je(n, t, r);
|
|
740
740
|
})), e;
|
|
741
741
|
}
|
|
@@ -751,7 +751,7 @@ function Ke(e) {
|
|
|
751
751
|
var t = e.__.__c;
|
|
752
752
|
return t && t.__a && t.__a(e);
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function Jt(e) {
|
|
755
755
|
var t, r, n;
|
|
756
756
|
function o(i) {
|
|
757
757
|
if (t || (t = e()).then(function(a) {
|
|
@@ -764,7 +764,7 @@ function Ut(e) {
|
|
|
764
764
|
}
|
|
765
765
|
return o.displayName = "Lazy", o.__f = !0, o;
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function D() {
|
|
768
768
|
this.i = null, this.l = null;
|
|
769
769
|
}
|
|
770
770
|
b.unmount = function(e) {
|
|
@@ -808,12 +808,12 @@ var be = function(e, t, r) {
|
|
|
808
808
|
e.i = r = r[2];
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
|
-
function
|
|
811
|
+
function Ht(e) {
|
|
812
812
|
return this.getChildContext = function() {
|
|
813
813
|
return e.context;
|
|
814
814
|
}, e.children;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function Kt(e) {
|
|
817
817
|
var t = this, r = e.h;
|
|
818
818
|
if (t.componentWillUnmount = function() {
|
|
819
819
|
T(null, t.v), t.v = null, t.h = null;
|
|
@@ -827,13 +827,13 @@ function Ht(e) {
|
|
|
827
827
|
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
|
|
828
828
|
} };
|
|
829
829
|
}
|
|
830
|
-
T(R(
|
|
830
|
+
T(R(Ht, { context: t.context }, e.__v), t.v);
|
|
831
831
|
}
|
|
832
|
-
function
|
|
833
|
-
var r = R(
|
|
832
|
+
function Xt(e, t) {
|
|
833
|
+
var r = R(Kt, { __v: e, h: t });
|
|
834
834
|
return r.containerInfo = t, r;
|
|
835
835
|
}
|
|
836
|
-
(
|
|
836
|
+
(D.prototype = new B()).__a = function(e) {
|
|
837
837
|
var t = this, r = Ke(t.__v), n = t.l.get(e);
|
|
838
838
|
return n[0]++, function(o) {
|
|
839
839
|
var i = function() {
|
|
@@ -841,25 +841,25 @@ function Kt(e, t) {
|
|
|
841
841
|
};
|
|
842
842
|
r ? r(i) : i();
|
|
843
843
|
};
|
|
844
|
-
},
|
|
844
|
+
}, D.prototype.render = function(e) {
|
|
845
845
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
846
846
|
var t = j(e.children);
|
|
847
847
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
848
848
|
for (var r = t.length; r--; ) this.l.set(t[r], this.i = [1, 0, this.i]);
|
|
849
849
|
return e.children;
|
|
850
|
-
},
|
|
850
|
+
}, D.prototype.componentDidUpdate = D.prototype.componentDidMount = function() {
|
|
851
851
|
var e = this;
|
|
852
852
|
this.l.forEach(function(t, r) {
|
|
853
853
|
be(e, r, t);
|
|
854
854
|
});
|
|
855
855
|
};
|
|
856
|
-
var Xe = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103,
|
|
856
|
+
var Xe = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Qt = /^(?: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]/, Zt = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Gt = /[A-Z0-9]/g, qt = typeof document < "u", Yt = function(e) {
|
|
857
857
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
858
858
|
};
|
|
859
|
-
function
|
|
859
|
+
function $t(e, t, r) {
|
|
860
860
|
return t.__k == null && (t.textContent = ""), T(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function er(e, t, r) {
|
|
863
863
|
return ot(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
864
864
|
}
|
|
865
865
|
B.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
@@ -870,18 +870,18 @@ B.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
|
|
|
870
870
|
} });
|
|
871
871
|
});
|
|
872
872
|
var we = b.event;
|
|
873
|
-
function er() {
|
|
874
|
-
}
|
|
875
873
|
function tr() {
|
|
876
|
-
return this.cancelBubble;
|
|
877
874
|
}
|
|
878
875
|
function rr() {
|
|
876
|
+
return this.cancelBubble;
|
|
877
|
+
}
|
|
878
|
+
function nr() {
|
|
879
879
|
return this.defaultPrevented;
|
|
880
880
|
}
|
|
881
881
|
b.event = function(e) {
|
|
882
|
-
return we && (e = we(e)), e.persist =
|
|
882
|
+
return we && (e = we(e)), e.persist = tr, e.isPropagationStopped = rr, e.isDefaultPrevented = nr, e.nativeEvent = e;
|
|
883
883
|
};
|
|
884
|
-
var ue,
|
|
884
|
+
var ue, or = { enumerable: !1, configurable: !0, get: function() {
|
|
885
885
|
return this.class;
|
|
886
886
|
} }, ye = b.vnode;
|
|
887
887
|
b.vnode = function(e) {
|
|
@@ -889,16 +889,16 @@ b.vnode = function(e) {
|
|
|
889
889
|
var r = t.props, n = t.type, o = {}, i = n.indexOf("-") === -1;
|
|
890
890
|
for (var a in r) {
|
|
891
891
|
var l = r[a];
|
|
892
|
-
if (!(a === "value" && "defaultValue" in r && l == null ||
|
|
892
|
+
if (!(a === "value" && "defaultValue" in r && l == null || qt && a === "children" && n === "noscript" || a === "class" || a === "className")) {
|
|
893
893
|
var c = a.toLowerCase();
|
|
894
|
-
a === "defaultValue" && "value" in r && r.value == null ? a = "value" : a === "download" && l === !0 ? l = "" : c === "translate" && l === "no" ? l = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? a = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" ||
|
|
894
|
+
a === "defaultValue" && "value" in r && r.value == null ? a = "value" : a === "download" && l === !0 ? l = "" : c === "translate" && l === "no" ? l = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? a = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" || Yt(r.type) ? c === "onfocus" ? a = "onfocusin" : c === "onblur" ? a = "onfocusout" : Zt.test(a) && (a = c) : c = a = "oninput" : i && Qt.test(a) ? a = a.replace(Gt, "-$&").toLowerCase() : l === null && (l = void 0), c === "oninput" && o[a = c] && (a = "oninputCapture"), o[a] = l;
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
n == "select" && o.multiple && Array.isArray(o.value) && (o.value = j(r.children).forEach(function(f) {
|
|
898
898
|
f.props.selected = o.value.indexOf(f.props.value) != -1;
|
|
899
899
|
})), n == "select" && o.defaultValue != null && (o.value = j(r.children).forEach(function(f) {
|
|
900
900
|
f.props.selected = o.multiple ? o.defaultValue.indexOf(f.props.value) != -1 : o.defaultValue == f.props.value;
|
|
901
|
-
})), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className",
|
|
901
|
+
})), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", or)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), t.props = o;
|
|
902
902
|
})(e), e.$$typeof = Xe, ye && ye(e);
|
|
903
903
|
};
|
|
904
904
|
var xe = b.__r;
|
|
@@ -911,44 +911,44 @@ b.diffed = function(e) {
|
|
|
911
911
|
var t = e.props, r = e.__e;
|
|
912
912
|
r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), ue = null;
|
|
913
913
|
};
|
|
914
|
-
var
|
|
914
|
+
var ir = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
915
915
|
return ue.__n[e.__c].props.value;
|
|
916
|
-
}, useCallback: C, useContext: ae, useDebugValue: Re, useDeferredValue:
|
|
917
|
-
function
|
|
916
|
+
}, useCallback: C, useContext: ae, useDebugValue: Re, useDeferredValue: Ve, useEffect: L, useId: je, useImperativeHandle: Oe, useInsertionEffect: Ue, useLayoutEffect: Z, useMemo: Ae, useReducer: Ne, useRef: Se, useState: y, useSyncExternalStore: ze, useTransition: We } } };
|
|
917
|
+
function ar(e) {
|
|
918
918
|
return R.bind(null, e);
|
|
919
919
|
}
|
|
920
920
|
function q(e) {
|
|
921
921
|
return !!e && e.$$typeof === Xe;
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function sr(e) {
|
|
924
924
|
return q(e) && e.type === z;
|
|
925
925
|
}
|
|
926
|
-
function
|
|
926
|
+
function lr(e) {
|
|
927
927
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function cr(e) {
|
|
930
930
|
return q(e) ? nt.apply(null, arguments) : e;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function ur(e) {
|
|
933
933
|
return !!e.__k && (T(null, e), !0);
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function dr(e) {
|
|
936
936
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
937
937
|
}
|
|
938
|
-
var
|
|
938
|
+
var pr = function(e, t) {
|
|
939
939
|
return e(t);
|
|
940
|
-
},
|
|
940
|
+
}, fr = function(e, t) {
|
|
941
941
|
return e(t);
|
|
942
|
-
},
|
|
942
|
+
}, hr = z, gr = q, P = { useState: y, useId: je, useReducer: Ne, useEffect: L, useLayoutEffect: Z, useInsertionEffect: Ue, useTransition: We, useDeferredValue: Ve, useSyncExternalStore: ze, startTransition: Me, useRef: Se, useImperativeHandle: Oe, useMemo: Ae, useCallback: C, useContext: ae, useDebugValue: Re, version: "18.3.1", Children: Wt, render: $t, hydrate: er, unmountComponentAtNode: ur, createPortal: Xt, createElement: R, createContext: Pe, createFactory: ar, cloneElement: cr, createRef: rt, Fragment: z, isValidElement: q, isElement: gr, isFragment: sr, isMemo: lr, findDOMNode: dr, Component: B, PureComponent: ie, memo: zt, forwardRef: Vt, flushSync: fr, unstable_batchedUpdates: pr, StrictMode: hr, Suspense: U, SuspenseList: D, lazy: Jt, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ir }, Qe = {
|
|
943
943
|
color: void 0,
|
|
944
944
|
size: void 0,
|
|
945
945
|
className: void 0,
|
|
946
946
|
style: void 0,
|
|
947
947
|
attr: void 0
|
|
948
|
-
}, Ce = P.createContext && /* @__PURE__ */ P.createContext(Qe),
|
|
949
|
-
function
|
|
948
|
+
}, Ce = P.createContext && /* @__PURE__ */ P.createContext(Qe), mr = ["attr", "size", "title"];
|
|
949
|
+
function vr(e, t) {
|
|
950
950
|
if (e == null) return {};
|
|
951
|
-
var r =
|
|
951
|
+
var r = br(e, t), n, o;
|
|
952
952
|
if (Object.getOwnPropertySymbols) {
|
|
953
953
|
var i = Object.getOwnPropertySymbols(e);
|
|
954
954
|
for (o = 0; o < i.length; o++)
|
|
@@ -956,7 +956,7 @@ function mr(e, t) {
|
|
|
956
956
|
}
|
|
957
957
|
return r;
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function br(e, t) {
|
|
960
960
|
if (e == null) return {};
|
|
961
961
|
var r = {};
|
|
962
962
|
for (var n in e)
|
|
@@ -990,21 +990,21 @@ function Q(e) {
|
|
|
990
990
|
for (var t = 1; t < arguments.length; t++) {
|
|
991
991
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
992
992
|
t % 2 ? _e(Object(r), !0).forEach(function(n) {
|
|
993
|
-
|
|
993
|
+
wr(e, n, r[n]);
|
|
994
994
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : _e(Object(r)).forEach(function(n) {
|
|
995
995
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
996
996
|
});
|
|
997
997
|
}
|
|
998
998
|
return e;
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1001
|
-
return t =
|
|
1000
|
+
function wr(e, t, r) {
|
|
1001
|
+
return t = yr(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1004
|
-
var t =
|
|
1003
|
+
function yr(e) {
|
|
1004
|
+
var t = xr(e, "string");
|
|
1005
1005
|
return typeof t == "symbol" ? t : t + "";
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function xr(e, t) {
|
|
1008
1008
|
if (typeof e != "object" || !e) return e;
|
|
1009
1009
|
var r = e[Symbol.toPrimitive];
|
|
1010
1010
|
if (r !== void 0) {
|
|
@@ -1019,18 +1019,18 @@ function Ze(e) {
|
|
|
1019
1019
|
key: r
|
|
1020
1020
|
}, t.attr), Ze(t.child)));
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1023
|
-
return (t) => /* @__PURE__ */ P.createElement(
|
|
1022
|
+
function kr(e) {
|
|
1023
|
+
return (t) => /* @__PURE__ */ P.createElement(Cr, X({
|
|
1024
1024
|
attr: Q({}, e.attr)
|
|
1025
1025
|
}, t), Ze(e.child));
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function Cr(e) {
|
|
1028
1028
|
var t = (r) => {
|
|
1029
1029
|
var {
|
|
1030
1030
|
attr: n,
|
|
1031
1031
|
size: o,
|
|
1032
1032
|
title: i
|
|
1033
|
-
} = e, a =
|
|
1033
|
+
} = e, a = vr(e, mr), l = o || r.size || "1em", c;
|
|
1034
1034
|
return r.className && (c = r.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ P.createElement("svg", X({
|
|
1035
1035
|
stroke: "currentColor",
|
|
1036
1036
|
fill: "currentColor",
|
|
@@ -1047,14 +1047,14 @@ function kr(e) {
|
|
|
1047
1047
|
};
|
|
1048
1048
|
return Ce !== void 0 ? /* @__PURE__ */ P.createElement(Ce.Consumer, null, (r) => t(r)) : t(Qe);
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1051
|
-
return
|
|
1050
|
+
function _r(e) {
|
|
1051
|
+
return kr({ 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: [] }] })(e);
|
|
1052
1052
|
}
|
|
1053
1053
|
const de = ({
|
|
1054
1054
|
variant: e,
|
|
1055
1055
|
children: t
|
|
1056
1056
|
}) => /* @__PURE__ */ d("div", { className: "group relative", children: [
|
|
1057
|
-
/* @__PURE__ */ s("div", { className: "cursor-pointer rounded-md p-1.5 transition-colors hover:bg-neutral-200", children: _(e).with("icon", () => /* @__PURE__ */ s(
|
|
1057
|
+
/* @__PURE__ */ s("div", { className: "cursor-pointer rounded-md p-1.5 transition-colors hover:bg-neutral-200", children: _(e).with("icon", () => /* @__PURE__ */ s(_r, {})).with("text", () => /* @__PURE__ */ s("div", { children: "Text" })).exhaustive() }),
|
|
1058
1058
|
/* @__PURE__ */ s("div", { className: "-translate-x-1/2 absolute top-full left-1/2 z-10 hidden rounded-md bg-neutral-100 p-2 shadow-sm group-hover:block", children: t })
|
|
1059
1059
|
] }), pe = ({ options: e, value: t, onChange: r }) => /* @__PURE__ */ s("div", { className: "flex divide-x rounded-md border border-gray-300", children: e.map(([n, o]) => /* @__PURE__ */ s(
|
|
1060
1060
|
"button",
|
|
@@ -1069,7 +1069,7 @@ const de = ({
|
|
|
1069
1069
|
children: o
|
|
1070
1070
|
},
|
|
1071
1071
|
n
|
|
1072
|
-
)) }),
|
|
1072
|
+
)) }), Sr = ({ label: e, value: t, onChange: r }) => /* @__PURE__ */ s(
|
|
1073
1073
|
pe,
|
|
1074
1074
|
{
|
|
1075
1075
|
options: [
|
|
@@ -1079,7 +1079,7 @@ const de = ({
|
|
|
1079
1079
|
value: t ? "true" : "false",
|
|
1080
1080
|
onChange: (n) => r(n === "true")
|
|
1081
1081
|
}
|
|
1082
|
-
),
|
|
1082
|
+
), Nr = () => {
|
|
1083
1083
|
const { settings: e, updateSettings: t } = ce();
|
|
1084
1084
|
return /* @__PURE__ */ d("div", { children: [
|
|
1085
1085
|
/* @__PURE__ */ d("div", { className: "flex items-end justify-between p-2", children: [
|
|
@@ -1101,10 +1101,10 @@ const de = ({
|
|
|
1101
1101
|
]
|
|
1102
1102
|
].map(([r, n, o, i]) => /* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
|
|
1103
1103
|
/* @__PURE__ */ s("div", { className: "font-semibold text-gray-900 text-sm", children: r }),
|
|
1104
|
-
/* @__PURE__ */ s(
|
|
1104
|
+
/* @__PURE__ */ s(Sr, { label: r, value: o, onChange: i })
|
|
1105
1105
|
] }, n)) })
|
|
1106
1106
|
] });
|
|
1107
|
-
},
|
|
1107
|
+
}, Ar = "h-11 w-full rounded-lg border border-gray-300 bg-white px-3 text-sm text-gray-700 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200", Or = ({
|
|
1108
1108
|
// eslint-disable-next-line no-restricted-syntax
|
|
1109
1109
|
id: e,
|
|
1110
1110
|
value: t,
|
|
@@ -1116,7 +1116,7 @@ const de = ({
|
|
|
1116
1116
|
"input",
|
|
1117
1117
|
{
|
|
1118
1118
|
id: e,
|
|
1119
|
-
className:
|
|
1119
|
+
className: Ar,
|
|
1120
1120
|
value: t,
|
|
1121
1121
|
placeholder: r,
|
|
1122
1122
|
"aria-label": n,
|
|
@@ -1125,7 +1125,7 @@ const de = ({
|
|
|
1125
1125
|
a.target instanceof HTMLInputElement && i?.(a.target.value);
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
1128
|
-
),
|
|
1128
|
+
), jr = ["MQTT", "NTFY", "GUN"], Rr = () => {
|
|
1129
1129
|
const { settings: e, updateSettings: t } = ce(), r = (o) => t({ session: { p: o } }), n = (o) => t({ session: { s: o } });
|
|
1130
1130
|
return /* @__PURE__ */ d("div", { children: [
|
|
1131
1131
|
/* @__PURE__ */ d("div", { className: "flex items-end justify-between p-2", children: [
|
|
@@ -1138,7 +1138,7 @@ const de = ({
|
|
|
1138
1138
|
/* @__PURE__ */ s(
|
|
1139
1139
|
pe,
|
|
1140
1140
|
{
|
|
1141
|
-
options:
|
|
1141
|
+
options: jr.map((o) => [
|
|
1142
1142
|
o.toLowerCase(),
|
|
1143
1143
|
o
|
|
1144
1144
|
]),
|
|
@@ -1148,7 +1148,7 @@ const de = ({
|
|
|
1148
1148
|
)
|
|
1149
1149
|
] }),
|
|
1150
1150
|
/* @__PURE__ */ s(
|
|
1151
|
-
|
|
1151
|
+
Or,
|
|
1152
1152
|
{
|
|
1153
1153
|
id: "server",
|
|
1154
1154
|
value: e?.session.s || "",
|
|
@@ -1160,7 +1160,7 @@ const de = ({
|
|
|
1160
1160
|
)
|
|
1161
1161
|
] })
|
|
1162
1162
|
] });
|
|
1163
|
-
},
|
|
1163
|
+
}, Pr = ["WebRTC"], Lr = () => {
|
|
1164
1164
|
const [e, t] = y("WebRTC");
|
|
1165
1165
|
return /* @__PURE__ */ d("div", { children: [
|
|
1166
1166
|
/* @__PURE__ */ d("div", { className: "flex items-end justify-between p-2", children: [
|
|
@@ -1172,18 +1172,18 @@ const de = ({
|
|
|
1172
1172
|
/* @__PURE__ */ s(
|
|
1173
1173
|
pe,
|
|
1174
1174
|
{
|
|
1175
|
-
options:
|
|
1175
|
+
options: Pr.map((r) => [r, r]),
|
|
1176
1176
|
value: e,
|
|
1177
1177
|
onChange: (r) => t(r)
|
|
1178
1178
|
}
|
|
1179
1179
|
)
|
|
1180
1180
|
] }) })
|
|
1181
1181
|
] });
|
|
1182
|
-
},
|
|
1183
|
-
/* @__PURE__ */ s(
|
|
1184
|
-
/* @__PURE__ */ s(
|
|
1185
|
-
/* @__PURE__ */ s(
|
|
1186
|
-
] }) }),
|
|
1182
|
+
}, Er = ({ onBack: e }) => /* @__PURE__ */ s("div", { className: "text-left", children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-2 px-2", children: [
|
|
1183
|
+
/* @__PURE__ */ s(Rr, {}),
|
|
1184
|
+
/* @__PURE__ */ s(Lr, {}),
|
|
1185
|
+
/* @__PURE__ */ s(Nr, {})
|
|
1186
|
+
] }) }), Fr = () => {
|
|
1187
1187
|
const [e, t] = y("start"), [r, n] = y(!1);
|
|
1188
1188
|
return L(() => {
|
|
1189
1189
|
if (!r) return;
|
|
@@ -1195,21 +1195,21 @@ const de = ({
|
|
|
1195
1195
|
copied: r,
|
|
1196
1196
|
setCopied: n
|
|
1197
1197
|
};
|
|
1198
|
-
},
|
|
1198
|
+
}, Br = (e) => {
|
|
1199
1199
|
L(() => {
|
|
1200
1200
|
const t = (r) => {
|
|
1201
1201
|
r.key === "Escape" && e();
|
|
1202
1202
|
};
|
|
1203
1203
|
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
1204
1204
|
}, [e]);
|
|
1205
|
-
},
|
|
1205
|
+
}, Tr = ({ onClose: e = () => {
|
|
1206
1206
|
}, onCopy: t }) => {
|
|
1207
|
-
const { view: r, setView: n, copied: o, setCopied: i } =
|
|
1208
|
-
|
|
1207
|
+
const { view: r, setView: n, copied: o, setCopied: i } = Fr(), { uri: a } = G(), { status: l } = E(), c = "Connect Wallet";
|
|
1208
|
+
Br(e);
|
|
1209
1209
|
const f = C(async () => {
|
|
1210
1210
|
a && await St(a) && i(!0);
|
|
1211
1211
|
}, [a, i]);
|
|
1212
|
-
return
|
|
1212
|
+
return I("view", r), /* @__PURE__ */ s(
|
|
1213
1213
|
"div",
|
|
1214
1214
|
{
|
|
1215
1215
|
className: "fixed inset-0 z-[10000] flex animate-[bg-in_0.15s_ease-in-out] items-center justify-center bg-black/30 p-4 font-sans text-slate-800 backdrop-blur-sm",
|
|
@@ -1237,8 +1237,8 @@ const de = ({
|
|
|
1237
1237
|
),
|
|
1238
1238
|
_(l).with(
|
|
1239
1239
|
"disconnected",
|
|
1240
|
-
() => _(r).with("start", () => /* @__PURE__ */ s(
|
|
1241
|
-
).with(le.union("connecting", "connected"), () => /* @__PURE__ */ s(
|
|
1240
|
+
() => _(r).with("start", () => /* @__PURE__ */ s(Lt, {})).with("settings", () => /* @__PURE__ */ s(Er, { onBack: () => n("start") })).otherwise(() => /* @__PURE__ */ s(K, { state: r }))
|
|
1241
|
+
).with(le.union("connecting", "connected"), () => /* @__PURE__ */ s(Pt, { onClose: e, onCopy: t || f })).otherwise(() => /* @__PURE__ */ s(K, { state: "unknown status" })),
|
|
1242
1242
|
/* @__PURE__ */ s(
|
|
1243
1243
|
"div",
|
|
1244
1244
|
{
|
|
@@ -1249,13 +1249,13 @@ const de = ({
|
|
|
1249
1249
|
children: "📋 Connection URL copied to clipboard!"
|
|
1250
1250
|
}
|
|
1251
1251
|
),
|
|
1252
|
-
/* @__PURE__ */ s(
|
|
1252
|
+
/* @__PURE__ */ s(Bt, {})
|
|
1253
1253
|
]
|
|
1254
1254
|
}
|
|
1255
1255
|
)
|
|
1256
1256
|
}
|
|
1257
1257
|
);
|
|
1258
|
-
},
|
|
1258
|
+
}, Kr = (e = "idle") => {
|
|
1259
1259
|
const [t, r] = y({
|
|
1260
1260
|
state: e
|
|
1261
1261
|
}), n = C(
|
|
@@ -1278,12 +1278,12 @@ const de = ({
|
|
|
1278
1278
|
updateConnectionInfo: o,
|
|
1279
1279
|
reset: i
|
|
1280
1280
|
};
|
|
1281
|
-
}, Tr = '/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@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-divide-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-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}}}@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-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-slate-800:oklch(27.9% .041 260.031);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--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-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-black:#000;--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-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--blur-sm:8px;--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{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-5{top:calc(var(--spacing)*5)}.top-full{top:100%}.right-5{right:calc(var(--spacing)*5)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-\\[10000\\]{z-index:10000}.mx-auto{margin-inline:auto}.mt-2{margin-top:calc(var(--spacing)*2)}.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}.h-8{height:calc(var(--spacing)*8)}.h-11{height:calc(var(--spacing)*11)}.h-\\[200px\\]{height:200px}.w-8{width:calc(var(--spacing)*8)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.animate-\\[bg-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out bg-in}.animate-\\[fade-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out fade-in}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.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)))}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.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-neutral-200{border-color:var(--color-neutral-200)}.border-t-transparent{border-top-color:#0000}.bg-\\[\\#F4F5F6\\]{background-color:#f4f5f6}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-white{background-color:var(--color-white)}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.text-center{text-align:center}.text-left{text-align:left}.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)}.text-blue-600{color:var(--color-blue-600)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-slate-800{color:var(--color-slate-800)}.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)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-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-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}@media (hover:hover){.group-hover\\:block:is(:where(.group):hover *){display:block}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.first\\:rounded-l-md:first-child{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.last\\:rounded-r-md:last-child{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}@media (hover:hover){.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}}@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)}}@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-divide-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-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}@keyframes spin{to{transform:rotate(360deg)}}', Dr = async (e) => {
|
|
1281
|
+
}, Ir = '/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@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-divide-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-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}}}@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-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-slate-800:oklch(27.9% .041 260.031);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--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-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-black:#000;--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-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--blur-sm:8px;--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{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-5{top:calc(var(--spacing)*5)}.top-full{top:100%}.right-5{right:calc(var(--spacing)*5)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-\\[10000\\]{z-index:10000}.mx-auto{margin-inline:auto}.mt-2{margin-top:calc(var(--spacing)*2)}.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}.h-8{height:calc(var(--spacing)*8)}.h-11{height:calc(var(--spacing)*11)}.h-\\[200px\\]{height:200px}.w-8{width:calc(var(--spacing)*8)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.animate-\\[bg-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out bg-in}.animate-\\[fade-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out fade-in}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.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)))}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.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-neutral-200{border-color:var(--color-neutral-200)}.border-t-transparent{border-top-color:#0000}.bg-\\[\\#F4F5F6\\]{background-color:#f4f5f6}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-white{background-color:var(--color-white)}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.text-center{text-align:center}.text-left{text-align:left}.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)}.text-blue-600{color:var(--color-blue-600)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-slate-800{color:var(--color-slate-800)}.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)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-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-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}@media (hover:hover){.group-hover\\:block:is(:where(.group):hover *){display:block}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.first\\:rounded-l-md:first-child{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.last\\:rounded-r-md:last-child{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}@media (hover:hover){.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}}@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)}}@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-divide-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-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}@keyframes spin{to{transform:rotate(360deg)}}', Dr = async (e) => {
|
|
1282
1282
|
if (e) {
|
|
1283
1283
|
if (e.querySelector("style[data-openlv-modal]"))
|
|
1284
1284
|
return;
|
|
1285
1285
|
const r = document.createElement("style");
|
|
1286
|
-
r.setAttribute("data-openlv-modal", "true"), r.textContent =
|
|
1286
|
+
r.setAttribute("data-openlv-modal", "true"), r.textContent = Ir, e.appendChild(r);
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
1289
|
class Ge extends HTMLElement {
|
|
@@ -1322,7 +1322,7 @@ class Ge extends HTMLElement {
|
|
|
1322
1322
|
T(it(Nt, r), this.shadow);
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
|
-
const
|
|
1325
|
+
const zr = (e = "openlv-modal") => {
|
|
1326
1326
|
if (typeof window > "u")
|
|
1327
1327
|
return e;
|
|
1328
1328
|
const t = window.customElements;
|
|
@@ -1332,23 +1332,23 @@ const Ir = (e = "openlv-modal") => {
|
|
|
1332
1332
|
), e) : (console.warn(
|
|
1333
1333
|
"OpenLV modal: custom elements are not supported in this environment."
|
|
1334
1334
|
), e);
|
|
1335
|
-
},
|
|
1335
|
+
}, Xr = (e, t) => {
|
|
1336
1336
|
const r = document.querySelector("openlv-modal");
|
|
1337
1337
|
if (r && r.remove(), !r) {
|
|
1338
|
-
|
|
1338
|
+
zr();
|
|
1339
1339
|
const n = new Ge(e, t);
|
|
1340
1340
|
document.body.appendChild(n), n.showModal(), n.onClose = () => {
|
|
1341
|
-
|
|
1341
|
+
I("modal closed"), n.remove();
|
|
1342
1342
|
};
|
|
1343
1343
|
}
|
|
1344
1344
|
};
|
|
1345
1345
|
export {
|
|
1346
|
-
|
|
1347
|
-
|
|
1346
|
+
Tr as ModalRoot,
|
|
1347
|
+
Et as OPENLV_ICON_128,
|
|
1348
1348
|
Ge as OpenLVModalElement,
|
|
1349
1349
|
Ge as default,
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1350
|
+
zr as registerOpenLVModal,
|
|
1351
|
+
Xr as triggerOpenModal,
|
|
1352
|
+
Kr as useConnectionState
|
|
1353
1353
|
};
|
|
1354
1354
|
//# sourceMappingURL=index.js.map
|