@hintergrund/ui 0.3.4 → 0.3.7
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-Vj3NCGvZ.js +25916 -0
- package/dist/IntegrationHealth-D1HcBrQn.js +218 -0
- package/dist/admin.js +22766 -28480
- package/dist/anthropic-messages-D8Vp-Ncs.js +3772 -0
- package/dist/azure-openai-responses-DnjyYuiz.js +168 -0
- package/dist/builder.js +27 -22
- package/dist/config.types-DZ5yfeqq.js +20 -0
- package/dist/deferred-tools-nxpq94I4.js +34 -0
- package/dist/diagnostics-x5QOwca_.js +91 -0
- package/dist/error-body-pXgvw5vV.js +68 -0
- package/dist/font-pool/LICENSES.txt +22 -0
- package/dist/font-pool/inter.ttf +0 -0
- package/dist/font-pool/inter.woff2 +0 -0
- package/dist/font-pool/jetbrains-mono.ttf +0 -0
- package/dist/font-pool/jetbrains-mono.woff2 +0 -0
- package/dist/font-pool/lora.ttf +0 -0
- package/dist/font-pool/lora.woff2 +0 -0
- package/dist/font-pool/merriweather.ttf +0 -0
- package/dist/font-pool/merriweather.woff2 +0 -0
- package/dist/font-pool/montserrat.ttf +0 -0
- package/dist/font-pool/montserrat.woff2 +0 -0
- package/dist/font-pool/playfair-display.ttf +0 -0
- package/dist/font-pool/playfair-display.woff2 +0 -0
- package/dist/font-pool/poppins.ttf +0 -0
- package/dist/font-pool/poppins.woff2 +0 -0
- package/dist/font-pool/roboto.ttf +0 -0
- package/dist/font-pool/roboto.woff2 +0 -0
- package/dist/font-pool/space-grotesk.ttf +0 -0
- package/dist/font-pool/space-grotesk.woff2 +0 -0
- package/dist/font-pool/work-sans.ttf +0 -0
- package/dist/font-pool/work-sans.woff2 +0 -0
- package/dist/github-copilot-headers-pRo3v4t7.js +27 -0
- package/dist/global-xsR9gLDa.js +30568 -0
- package/dist/google-generative-ai-BmzNjEvl.js +291 -0
- package/dist/google-shared-CG2Lbh1z.js +8746 -0
- package/dist/google-vertex-Dfla93V_.js +329 -0
- package/dist/hash-BixfZjoG.js +21 -0
- package/dist/headers-CnTiKpOL.js +24 -0
- package/dist/json-parse-CxjAnWaM.js +231 -0
- package/dist/legacy-Zmnk-v81.js +14 -0
- package/dist/login.js +131 -146
- package/dist/mail.js +694 -789
- package/dist/mistral-conversations-DeDb7Gbd.js +558 -0
- package/dist/openai-ClxLHXsh.js +5371 -0
- package/dist/openai-codex-responses-usgOtWUT.js +909 -0
- package/dist/openai-completions-D_nFQy7A.js +730 -0
- package/dist/openai-prompt-cache-Bm8Re6Vv.js +17 -0
- package/dist/openai-responses-BqL3PFsb.js +192 -0
- package/dist/openai-responses-shared-BhQj78KM.js +481 -0
- package/dist/pi-messages-CRx0yqMp.js +268 -0
- package/dist/pi-user-agent-CsXkkH60.js +20 -0
- package/dist/provider-env-Cj6X7Wly.js +35 -0
- package/dist/provider-retry-BGImU1PV.js +68 -0
- package/dist/rolldown-runtime-nTTD767F.js +37 -0
- package/dist/setup.js +391 -418
- package/dist/transform-messages-DvxSeyBQ.js +383 -0
- package/dist/ui.css +2 -1
- package/package.json +5 -5
- package/dist/BuilderAgentPane-CwG29LOX.js +0 -13938
- package/dist/IntegrationHealth-G_4vzV66.js +0 -209
- package/dist/anthropic-messages-BmLfYiwX.js +0 -5605
- package/dist/azure-openai-responses-yf2M6GVe.js +0 -222
- package/dist/client-Cd7yMX39.js +0 -7860
- package/dist/config.types-iZoywORE.js +0 -15
- package/dist/deferred-tools-BZWMWBYN.js +0 -28
- package/dist/error-body-BUPcH4GF.js +0 -71
- package/dist/github-copilot-headers-B1RBGoZi.js +0 -21
- package/dist/global-CTQcFve1.js +0 -36177
- package/dist/google-generative-ai-DkzwUYzL.js +0 -264
- package/dist/google-shared-DTgKMtfJ.js +0 -11710
- package/dist/google-vertex-D2IzqvQM.js +0 -305
- package/dist/hash-DFlR084x.js +0 -14
- package/dist/headers-D4iLzGaS.js +0 -21
- package/dist/json-parse-LZdWp-Nd.js +0 -232
- package/dist/legacy-CckexQcJ.js +0 -5
- package/dist/mistral-conversations-CNfKG0tU.js +0 -513
- package/dist/openai-codex-responses-BLNjExaC.js +0 -947
- package/dist/openai-completions-46IVoF2N.js +0 -741
- package/dist/openai-prompt-cache-BJwqbEDx.js +0 -13
- package/dist/openai-responses-BfHoZFHI.js +0 -184
- package/dist/openai-responses-shared-DOTQAbCj.js +0 -477
- package/dist/pi-messages-fnW87Z4Z.js +0 -251
- package/dist/pi-user-agent-CUqx-qiX.js +0 -13
- package/dist/provider-env-D2VjEV3S.js +0 -26
- package/dist/provider-retry-BsigVlMg.js +0 -67
- package/dist/select-Cke4DYH1.js +0 -78
- package/dist/transform-messages-CsKsy6b4.js +0 -398
package/dist/login.js
CHANGED
|
@@ -1,148 +1,133 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
globalThis.process === void 0 && (globalThis.process = {
|
|
2
|
+
env: {},
|
|
3
|
+
platform: "browser",
|
|
4
|
+
version: "",
|
|
5
|
+
versions: {},
|
|
6
|
+
browser: !0,
|
|
7
|
+
nextTick: function(e) {
|
|
8
|
+
return Promise.resolve().then(e);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
import { An as e, Bn as t, Cn as n, Ct as r, Dn as i, Kn as a, Mt as o, Nt as s, On as c, Sn as l, St as u, Vn as ee, Wt as d, an as f, bt as p, cn as te, dn as ne, en as m, in as h, jt as g, ln as _, nn as re, pn as v, qn as y, sn as b, un as ie, wn as x, xn as S, yn as C } from "./global-xsR9gLDa.js";
|
|
12
|
+
//#region src/lib/login/Login.svelte
|
|
13
|
+
var ae = b("<p class=\"svelte-uxwqu2\">We’ll send a setup link to your primary email address.</p>"), w = b("<p class=\"svelte-uxwqu2\">Use at least 12 characters. The link works once and expires after one hour.</p>"), T = b("<div class=\"flash flash-error svelte-uxwqu2\" role=\"alert\"> </div>"), oe = b("<div class=\"flash flash-success svelte-uxwqu2\" role=\"status\"> </div>"), se = b("<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 = b("<label for=\"password\" class=\"svelte-uxwqu2\"> </label><input id=\"password\" type=\"password\" class=\"form-control svelte-uxwqu2\" maxlength=\"256\" required=\"\"/>", 1), D = b("<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), O = b("<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>"), k = {
|
|
14
|
+
hash: "svelte-uxwqu2",
|
|
15
|
+
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
16
|
};
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
var re = n(R, 2);
|
|
125
|
-
de(re, {
|
|
126
|
-
type: "submit",
|
|
127
|
-
variant: "primary",
|
|
128
|
-
block: !0,
|
|
129
|
-
get disabled() {
|
|
130
|
-
return e(v);
|
|
131
|
-
},
|
|
132
|
-
children: (r, t) => {
|
|
133
|
-
we();
|
|
134
|
-
var s = ve();
|
|
135
|
-
m(() => h(s, e(v) ? "Please wait…" : e(a) === "login" ? "Sign in" : e(a) === "request" ? "Send reset link" : "Save password")), d(r, s);
|
|
136
|
-
},
|
|
137
|
-
$$slots: { default: !0 }
|
|
138
|
-
}), i(y);
|
|
139
|
-
var D = n(y, 2), k = l(D), te = l(k, !0);
|
|
140
|
-
return i(k), i(D), i(M), i(S), m(() => {
|
|
141
|
-
h(Y, 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, () => L(e(a) === "login" ? "request" : "login")), d(q, S), me(X);
|
|
17
|
+
function A(u, _) {
|
|
18
|
+
ee(_, !0), d(u, k);
|
|
19
|
+
let b = r(_, "config", 7), A = c("login"), j = c(""), M = c(""), N = c(""), P = c(""), F = c(""), I = c(""), L = c(!1);
|
|
20
|
+
re(() => {
|
|
21
|
+
let e = new URLSearchParams(window.location.hash.slice(1)).get("reset");
|
|
22
|
+
e && (i(P, e, !0), i(A, "reset"), window.history.replaceState({}, "", window.location.pathname));
|
|
23
|
+
});
|
|
24
|
+
function R(e) {
|
|
25
|
+
i(A, e, !0), i(F, ""), i(I, ""), i(M, ""), i(N, "");
|
|
26
|
+
}
|
|
27
|
+
async function z(e) {
|
|
28
|
+
if (e.preventDefault(), i(F, ""), i(I, ""), v(A) === "reset" && v(M) !== v(N)) {
|
|
29
|
+
i(F, "Passwords do not match.");
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
i(L, !0);
|
|
33
|
+
try {
|
|
34
|
+
let e = v(A) === "login" ? "login" : v(A) === "request" ? "password-reset/request" : "password-reset/complete", t = await fetch(`/api/admin/${e}`, {
|
|
35
|
+
method: "POST",
|
|
36
|
+
headers: { "Content-Type": "application/json" },
|
|
37
|
+
body: JSON.stringify(v(A) === "reset" ? {
|
|
38
|
+
token: v(P),
|
|
39
|
+
password: v(M)
|
|
40
|
+
} : {
|
|
41
|
+
email: v(j),
|
|
42
|
+
password: v(A) === "login" ? v(M) : void 0
|
|
43
|
+
})
|
|
44
|
+
}), n = await t.json();
|
|
45
|
+
if (!t.ok) throw Error(n.error || n.message || "Unable to continue. Try again.");
|
|
46
|
+
if (v(A) === "login") {
|
|
47
|
+
window.location.href = "/admin";
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
v(A) === "reset" && (i(P, ""), R("login")), i(I, n.message, !0);
|
|
51
|
+
} catch (e) {
|
|
52
|
+
i(F, e instanceof Error ? e.message : "Unable to connect. Try again.", !0);
|
|
53
|
+
} finally {
|
|
54
|
+
i(L, !1);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
var B = {
|
|
58
|
+
get config() {
|
|
59
|
+
return b();
|
|
60
|
+
},
|
|
61
|
+
set config(t) {
|
|
62
|
+
b(t), e();
|
|
63
|
+
}
|
|
64
|
+
}, V = O(), H = S(V), U = S(H), W = x(S(U), 2), G = n(W, !0), ce = x(W, 2), le = (e) => {
|
|
65
|
+
var t = ae();
|
|
66
|
+
f(e, t);
|
|
67
|
+
}, ue = (e) => {
|
|
68
|
+
var t = w();
|
|
69
|
+
f(e, t);
|
|
70
|
+
};
|
|
71
|
+
m(ce, (e) => {
|
|
72
|
+
v(A) === "request" ? e(le) : v(A) === "reset" && e(ue, 1);
|
|
73
|
+
}), y(U);
|
|
74
|
+
var K = x(U, 2), de = (e) => {
|
|
75
|
+
var t = T(), r = n(t, !0);
|
|
76
|
+
C(() => h(r, v(F))), f(e, t);
|
|
77
|
+
};
|
|
78
|
+
m(K, (e) => {
|
|
79
|
+
v(F) && e(de);
|
|
80
|
+
});
|
|
81
|
+
var q = x(K, 2), fe = (e) => {
|
|
82
|
+
var t = oe(), r = n(t, !0);
|
|
83
|
+
C(() => h(r, v(I))), f(e, t);
|
|
84
|
+
};
|
|
85
|
+
m(q, (e) => {
|
|
86
|
+
v(I) && e(fe);
|
|
87
|
+
});
|
|
88
|
+
var J = x(q, 2), Y = S(J), pe = (e) => {
|
|
89
|
+
var t = se(), n = x(l(t));
|
|
90
|
+
o(n), C(() => n.disabled = v(L)), g(n, () => v(j), (e) => i(j, e)), f(e, t);
|
|
91
|
+
};
|
|
92
|
+
m(Y, (e) => {
|
|
93
|
+
v(A) !== "reset" && e(pe);
|
|
94
|
+
});
|
|
95
|
+
var X = x(Y, 2), me = (e) => {
|
|
96
|
+
var t = E(), r = l(t), a = n(r, !0), c = x(r);
|
|
97
|
+
o(c), C(() => {
|
|
98
|
+
h(a, v(A) === "reset" ? "New password" : "Password"), s(c, "autocomplete", v(A) === "reset" ? "new-password" : "current-password"), s(c, "minlength", v(A) === "reset" ? 12 : void 0), c.disabled = v(L);
|
|
99
|
+
}), g(c, () => v(M), (e) => i(M, e)), f(e, t);
|
|
100
|
+
};
|
|
101
|
+
m(X, (e) => {
|
|
102
|
+
v(A) !== "request" && e(me);
|
|
103
|
+
});
|
|
104
|
+
var Z = x(X, 2), he = (e) => {
|
|
105
|
+
var t = D(), n = x(l(t));
|
|
106
|
+
o(n), C(() => n.disabled = v(L)), g(n, () => v(N), (e) => i(N, e)), f(e, t);
|
|
107
|
+
};
|
|
108
|
+
m(Z, (e) => {
|
|
109
|
+
v(A) === "reset" && e(he);
|
|
110
|
+
});
|
|
111
|
+
var ge = x(Z, 2);
|
|
112
|
+
p(ge, {
|
|
113
|
+
type: "submit",
|
|
114
|
+
variant: "primary",
|
|
115
|
+
block: !0,
|
|
116
|
+
get disabled() {
|
|
117
|
+
return v(L);
|
|
118
|
+
},
|
|
119
|
+
children: (e, t) => {
|
|
120
|
+
a();
|
|
121
|
+
var n = te();
|
|
122
|
+
C(() => h(n, v(L) ? "Please wait…" : v(A) === "login" ? "Sign in" : v(A) === "request" ? "Send reset link" : "Save password")), f(e, n);
|
|
123
|
+
},
|
|
124
|
+
$$slots: { default: !0 }
|
|
125
|
+
}), y(J);
|
|
126
|
+
var Q = x(J, 2), $ = S(Q), _e = n($, !0);
|
|
127
|
+
return y(Q), y(H), y(V), C(() => {
|
|
128
|
+
h(G, v(A) === "login" ? "Sign in to hintergrund" : v(A) === "request" ? "Reset your password" : "Choose your password"), $.disabled = v(L), h(_e, v(A) === "login" ? "Forgot your password?" : "Back to sign in");
|
|
129
|
+
}), ne("submit", J, z), ie("click", $, () => R(v(A) === "login" ? "request" : "login")), f(u, V), t(B);
|
|
143
130
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
export {
|
|
147
|
-
Pe as default
|
|
148
|
-
};
|
|
131
|
+
_(["click"]), customElements.define("hintergrund-login", u(A, { config: {} }, [], []));
|
|
132
|
+
//#endregion
|
|
133
|
+
export { A as default };
|