@hintergrund/ui 0.2.2 → 0.3.0
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/BuilderAgentPane-EOT6JCrB.js +13849 -0
- package/dist/IntegrationHealth-ZCazAhaQ.js +280 -0
- package/dist/admin.js +27070 -27430
- package/dist/{anthropic-CwpwmW2G.js → anthropic-messages-Dl81zJep.js} +1134 -1055
- package/dist/azure-openai-responses-CrrDLA8-.js +222 -0
- package/dist/brand-DteO2G6R.js +95 -0
- package/dist/builder.js +18 -3
- package/dist/client-Cd7yMX39.js +7860 -0
- package/dist/deferred-tools-BZWMWBYN.js +28 -0
- package/dist/error-body-BUPcH4GF.js +71 -0
- package/dist/github-copilot-headers-B1RBGoZi.js +21 -0
- package/dist/{global-DdaMTl90.js → global-1QvFLK43.js} +18424 -16815
- package/dist/google-generative-ai-DrT6NouV.js +264 -0
- package/dist/{google-shared-zl4aoTwW.js → google-shared-mbv_hDdk.js} +1135 -1104
- package/dist/google-vertex-CjHfRBgt.js +305 -0
- package/dist/headers-D4iLzGaS.js +21 -0
- package/dist/json-parse-LZdWp-Nd.js +232 -0
- package/dist/{headers-u7rXGJ9f.js → legacy-ByJa-XpS.js} +2 -9
- package/dist/login.js +113 -75
- package/dist/mail.js +793 -0
- package/dist/mistral-conversations-DpV92sl0.js +513 -0
- package/dist/openai-codex-responses-Dw4e7edD.js +947 -0
- package/dist/openai-completions-DfWju8NF.js +741 -0
- package/dist/openai-prompt-cache-BJwqbEDx.js +13 -0
- package/dist/openai-responses-D22Qtayx.js +184 -0
- package/dist/openai-responses-shared-DGHcHw_F.js +477 -0
- package/dist/pi-messages-BJSKKlfC.js +251 -0
- package/dist/pi-user-agent-CUqx-qiX.js +13 -0
- package/dist/provider-env-D2VjEV3S.js +26 -0
- package/dist/provider-retry-BsigVlMg.js +67 -0
- package/dist/select-cKciKujV.js +78 -0
- package/dist/setup.js +537 -235
- package/dist/transform-messages-CsKsy6b4.js +398 -0
- package/package.json +5 -5
- package/dist/Builder-BhGmzNTC.js +0 -163449
- package/dist/azure-openai-responses-yWEFYMG1.js +0 -203
- package/dist/client-Sh7wNjbG.js +0 -5277
- package/dist/github-copilot-headers-DWh_6bE3.js +0 -35
- package/dist/google-BgPPfrTM.js +0 -248
- package/dist/google-vertex-D7kAAkZn.js +0 -285
- package/dist/json-parse-Dk_xwHcS.js +0 -93
- package/dist/mistral-BJWDROjc.js +0 -22932
- package/dist/openai-codex-responses-rzy0Aqwg.js +0 -700
- package/dist/openai-completions-CUEO2YVR.js +0 -535
- package/dist/openai-responses-k6plMvd9.js +0 -142
- package/dist/openai-responses-shared-CCD7nRqy.js +0 -324
- package/dist/transform-messages-CkpQp6fJ.js +0 -132
package/dist/login.js
CHANGED
|
@@ -1,110 +1,148 @@
|
|
|
1
|
-
import { Y as
|
|
2
|
-
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(
|
|
3
|
-
return Promise.resolve().then(
|
|
1
|
+
import { Y as se, Z as oe, _ as ne, $ as le, a0 as ie, a4 as ue, a5 as o, a7 as n, ac as l, a6 as g, ap as de, aq as ve, aj as p, a8 as d, A as e, aD as ce, ao as fe, a9 as pe, a1 as c, ab as f, ad as me, ae as i, ag as we, an as h, af as $, ay as E, aE as U, al as J } from "./global-1QvFLK43.js";
|
|
2
|
+
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(q) {
|
|
3
|
+
return Promise.resolve().then(q);
|
|
4
4
|
} });
|
|
5
|
-
var
|
|
6
|
-
const
|
|
5
|
+
var ge = f('<p class="svelte-uxwqu2">We’ll send a setup link to your primary email address.</p>'), he = f('<p class="svelte-uxwqu2">Use at least 12 characters. The link works once and expires after one hour.</p>'), xe = f('<div class="flash flash-error svelte-uxwqu2" role="alert"> </div>'), be = f('<div class="flash flash-success svelte-uxwqu2" role="status"> </div>'), qe = f('<label for="email" class="svelte-uxwqu2">Primary email address</label><input id="email" type="email" class="form-control svelte-uxwqu2" autocomplete="username" required=""/>', 1), _e = f('<label for="password" class="svelte-uxwqu2"> </label><input id="password" type="password" class="form-control svelte-uxwqu2" maxlength="256" required=""/>', 1), ye = f('<label for="confirmation" class="svelte-uxwqu2">Confirm password</label><input id="confirmation" type="password" class="form-control svelte-uxwqu2" autocomplete="new-password" minlength="12" maxlength="256" required=""/>', 1), ke = f('<main class="auth-wrapper svelte-uxwqu2"><div class="auth-container svelte-uxwqu2"><header class="svelte-uxwqu2"><svg aria-hidden="true" viewBox="0 0 90 90" width="48" height="48" fill="currentColor"><rect x="12" y="12" width="66" height="66"></rect></svg> <h1 class="svelte-uxwqu2"> </h1> <!></header> <!> <!> <form class="Box Box-body svelte-uxwqu2"><!> <!> <!> <!></form> <footer class="svelte-uxwqu2"><button class="svelte-uxwqu2"> </button></footer></div></main>');
|
|
6
|
+
const Ce = {
|
|
7
7
|
hash: "svelte-uxwqu2",
|
|
8
|
-
code: ".auth-wrapper.svelte-uxwqu2 {min-height:
|
|
8
|
+
code: ".auth-wrapper.svelte-uxwqu2 {min-height:100dvh;display:grid;place-items:center;padding:1.5rem;background:var(--bgColor-muted);color:var(--fgColor-default);}.auth-container.svelte-uxwqu2 {width:100%;max-width:360px;}header.svelte-uxwqu2 {text-align:center;margin-bottom:1.5rem;}h1.svelte-uxwqu2 {font-size:1.4rem;font-weight:400;margin:1rem 0;}p.svelte-uxwqu2 {font-size:.875rem;color:var(--fgColor-muted);}form.svelte-uxwqu2 {display:grid;gap:.75rem;padding:1.5rem;background:var(--bgColor-default);border:1px solid var(--borderColor-default);border-radius:6px;}label.svelte-uxwqu2 {font-weight:600;font-size:.875rem;}input.svelte-uxwqu2 {width:100%;}.flash.svelte-uxwqu2 {margin-bottom:1rem;}footer.svelte-uxwqu2 {text-align:center;margin-top:1rem;}footer.svelte-uxwqu2 button:where(.svelte-uxwqu2) {border:0;background:none;color:var(--fgColor-accent);cursor:pointer;}"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
10
|
+
function Se(q, j) {
|
|
11
|
+
ne(j, !0), le(q, Ce);
|
|
12
|
+
let z = ie(j, "config", 7), a = c("login"), C = c(""), m = c(""), _ = c(""), S = c(""), w = c(""), x = c(""), v = c(!1);
|
|
13
|
+
ue(() => {
|
|
14
|
+
const t = new URLSearchParams(window.location.hash.slice(1)).get("reset");
|
|
15
|
+
t && (o(S, t, !0), o(a, "reset"), window.history.replaceState({}, "", window.location.pathname));
|
|
16
16
|
});
|
|
17
|
-
|
|
18
|
-
a
|
|
17
|
+
function D(r) {
|
|
18
|
+
o(a, r, !0), o(w, ""), o(x, ""), o(m, ""), o(_, "");
|
|
19
|
+
}
|
|
20
|
+
async function W(r) {
|
|
21
|
+
if (r.preventDefault(), o(w, ""), o(x, ""), e(a) === "reset" && e(m) !== e(_)) {
|
|
22
|
+
o(w, "Passwords do not match.");
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
o(v, !0);
|
|
19
26
|
try {
|
|
20
|
-
const e = {}
|
|
21
|
-
t(_) && (e.email = t(_)), t(x) && (e.password = t(q)), t(m) && (e.otp = t(P));
|
|
22
|
-
const o = await (await fetch("/api/admin/login", {
|
|
27
|
+
const t = e(a) === "login" ? "login" : e(a) === "request" ? "password-reset/request" : "password-reset/complete", s = await fetch(`/api/admin/${t}`, {
|
|
23
28
|
method: "POST",
|
|
24
29
|
headers: { "Content-Type": "application/json" },
|
|
25
|
-
body: JSON.stringify(e)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
body: JSON.stringify(e(a) === "reset" ? { token: e(S), password: e(m) } : {
|
|
31
|
+
email: e(C),
|
|
32
|
+
password: e(a) === "login" ? e(m) : void 0
|
|
33
|
+
})
|
|
34
|
+
}), u = await s.json();
|
|
35
|
+
if (!s.ok) throw new Error(u.error || u.message || "Unable to continue. Try again.");
|
|
36
|
+
if (e(a) === "login") {
|
|
37
|
+
window.location.href = "/admin";
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
e(a) === "reset" && (o(S, ""), D("login")), o(x, u.message, !0);
|
|
41
|
+
} catch (t) {
|
|
42
|
+
o(w, t instanceof Error ? t.message : "Unable to connect. Try again.", !0);
|
|
30
43
|
} finally {
|
|
31
|
-
|
|
44
|
+
o(v, !1);
|
|
32
45
|
}
|
|
33
46
|
}
|
|
34
|
-
var
|
|
47
|
+
var Y = {
|
|
35
48
|
get config() {
|
|
36
|
-
return
|
|
49
|
+
return z();
|
|
37
50
|
},
|
|
38
|
-
set config(
|
|
39
|
-
|
|
51
|
+
set config(r) {
|
|
52
|
+
z(r), me();
|
|
40
53
|
}
|
|
41
|
-
},
|
|
54
|
+
}, P = ke(), L = l(P), T = l(L), B = n(l(T), 2), Z = l(B, !0);
|
|
55
|
+
i(B);
|
|
56
|
+
var G = n(B, 2);
|
|
57
|
+
{
|
|
58
|
+
var H = (r) => {
|
|
59
|
+
var t = ge();
|
|
60
|
+
d(r, t);
|
|
61
|
+
}, I = (r) => {
|
|
62
|
+
var t = he();
|
|
63
|
+
d(r, t);
|
|
64
|
+
};
|
|
65
|
+
g(G, (r) => {
|
|
66
|
+
e(a) === "request" ? r(H) : e(a) === "reset" && r(I, 1);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
i(T);
|
|
70
|
+
var M = n(T, 2);
|
|
71
|
+
{
|
|
72
|
+
var K = (r) => {
|
|
73
|
+
var t = xe(), s = l(t, !0);
|
|
74
|
+
i(t), p(() => h(s, e(w))), d(r, t);
|
|
75
|
+
};
|
|
76
|
+
g(M, (r) => {
|
|
77
|
+
e(w) && r(K);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
var N = n(M, 2);
|
|
81
|
+
{
|
|
82
|
+
var Q = (r) => {
|
|
83
|
+
var t = be(), s = l(t, !0);
|
|
84
|
+
i(t), p(() => h(s, e(x))), d(r, t);
|
|
85
|
+
};
|
|
86
|
+
g(N, (r) => {
|
|
87
|
+
e(x) && r(Q);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
var y = n(N, 2), O = l(y);
|
|
42
91
|
{
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
|
|
92
|
+
var V = (r) => {
|
|
93
|
+
var t = qe(), s = n($(t));
|
|
94
|
+
E(s), p(() => s.disabled = e(v)), U(s, () => e(C), (u) => o(C, u)), d(r, t);
|
|
46
95
|
};
|
|
47
|
-
|
|
48
|
-
|
|
96
|
+
g(O, (r) => {
|
|
97
|
+
e(a) !== "reset" && r(V);
|
|
49
98
|
});
|
|
50
99
|
}
|
|
51
|
-
var
|
|
100
|
+
var R = n(O, 2);
|
|
52
101
|
{
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
|
|
102
|
+
var X = (r) => {
|
|
103
|
+
var t = _e(), s = $(t), u = l(s, !0);
|
|
104
|
+
i(s);
|
|
105
|
+
var b = n(s);
|
|
106
|
+
E(b), p(() => {
|
|
107
|
+
h(u, e(a) === "reset" ? "New password" : "Password"), J(b, "autocomplete", e(a) === "reset" ? "new-password" : "current-password"), J(b, "minlength", e(a) === "reset" ? 12 : void 0), b.disabled = e(v);
|
|
108
|
+
}), U(b, () => e(m), (ae) => o(m, ae)), d(r, t);
|
|
56
109
|
};
|
|
57
|
-
|
|
58
|
-
|
|
110
|
+
g(R, (r) => {
|
|
111
|
+
e(a) !== "request" && r(X);
|
|
59
112
|
});
|
|
60
113
|
}
|
|
61
|
-
var
|
|
62
|
-
k(z), n(S);
|
|
63
|
-
var N = i(S, 2);
|
|
114
|
+
var A = n(R, 2);
|
|
64
115
|
{
|
|
65
|
-
var
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
}, Y = (a) => {
|
|
69
|
-
var e = ce(), r = i(l(e), 2);
|
|
70
|
-
k(r), ne(r, "pattern", "[0-9]6"), n(e), h(() => r.disabled = t(c)), B(r, () => t(P), (o) => s(P, o)), u(a, e);
|
|
116
|
+
var ee = (r) => {
|
|
117
|
+
var t = ye(), s = n($(t));
|
|
118
|
+
E(s), p(() => s.disabled = e(v)), U(s, () => e(_), (u) => o(_, u)), d(r, t);
|
|
71
119
|
};
|
|
72
|
-
|
|
73
|
-
|
|
120
|
+
g(A, (r) => {
|
|
121
|
+
e(a) === "reset" && r(ee);
|
|
74
122
|
});
|
|
75
123
|
}
|
|
76
|
-
var
|
|
77
|
-
|
|
124
|
+
var re = n(A, 2);
|
|
125
|
+
de(re, {
|
|
78
126
|
type: "submit",
|
|
79
127
|
variant: "primary",
|
|
80
|
-
size: "large",
|
|
81
128
|
block: !0,
|
|
82
129
|
get disabled() {
|
|
83
|
-
return
|
|
130
|
+
return e(v);
|
|
84
131
|
},
|
|
85
|
-
children: (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var p = T("Please wait...");
|
|
90
|
-
u(d, p);
|
|
91
|
-
}, I = (d) => {
|
|
92
|
-
var p = T("Sign in");
|
|
93
|
-
u(d, p);
|
|
94
|
-
}, V = (d) => {
|
|
95
|
-
var p = T("Continue");
|
|
96
|
-
u(d, p);
|
|
97
|
-
};
|
|
98
|
-
y(o, (d) => {
|
|
99
|
-
t(c) ? d(G) : t(m) ? d(I, 1) : d(V, -1);
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
u(a, r);
|
|
132
|
+
children: (r, t) => {
|
|
133
|
+
we();
|
|
134
|
+
var s = ve();
|
|
135
|
+
p(() => h(s, e(v) ? "Please wait…" : e(a) === "login" ? "Sign in" : e(a) === "request" ? "Send reset link" : "Save password")), d(r, s);
|
|
103
136
|
},
|
|
104
137
|
$$slots: { default: !0 }
|
|
105
|
-
}),
|
|
138
|
+
}), i(y);
|
|
139
|
+
var F = n(y, 2), k = l(F), te = l(k, !0);
|
|
140
|
+
return i(k), i(F), i(L), i(P), p(() => {
|
|
141
|
+
h(Z, e(a) === "login" ? "Sign in to hintergrund" : e(a) === "request" ? "Reset your password" : "Choose your password"), k.disabled = e(v), h(te, e(a) === "login" ? "Forgot your password?" : "Back to sign in");
|
|
142
|
+
}), ce("submit", y, W), fe("click", k, () => D(e(a) === "login" ? "request" : "login")), d(q, P), pe(Y);
|
|
106
143
|
}
|
|
107
|
-
|
|
144
|
+
se(["click"]);
|
|
145
|
+
customElements.define("hintergrund-login", oe(Se, { config: {} }, [], []));
|
|
108
146
|
export {
|
|
109
|
-
|
|
147
|
+
Se as default
|
|
110
148
|
};
|