@hintergrund/ui 0.3.6 → 0.3.8
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 → BuilderAgentPane-CcVuZtj6.js} +5202 -7958
- package/dist/{IntegrationHealth-D1HcBrQn.js → IntegrationHealth-DUTBfWZZ.js} +95 -95
- package/dist/admin.js +7284 -6954
- package/dist/{anthropic-messages-D8Vp-Ncs.js → anthropic-messages-jWEtKrCp.js} +1 -1
- package/dist/{azure-openai-responses-DnjyYuiz.js → azure-openai-responses-Sg-664yO.js} +2 -2
- package/dist/builder.js +9 -9
- package/dist/{global-xsR9gLDa.js → global-DGa0hKAJ.js} +5656 -2875
- package/dist/{google-generative-ai-BmzNjEvl.js → google-generative-ai-skmqFNW7.js} +1 -1
- package/dist/{google-vertex-Dfla93V_.js → google-vertex-ssFf72AJ.js} +1 -1
- package/dist/{legacy-Zmnk-v81.js → legacy-UIyCHDoL.js} +1 -1
- package/dist/login.js +74 -74
- package/dist/mail.js +366 -366
- package/dist/{mistral-conversations-DeDb7Gbd.js → mistral-conversations-BZZ0QYZM.js} +1 -1
- package/dist/{openai-codex-responses-usgOtWUT.js → openai-codex-responses-Bxj17bmy.js} +2 -2
- package/dist/{openai-completions-D_nFQy7A.js → openai-completions-_xcHduNi.js} +1 -1
- package/dist/{openai-responses-BqL3PFsb.js → openai-responses-Dtoaiimw.js} +2 -2
- package/dist/{openai-responses-shared-BhQj78KM.js → openai-responses-shared-DxeeXkS3.js} +1 -1
- package/dist/setup.js +256 -247
- package/package.json +3 -3
|
@@ -8,7 +8,7 @@ globalThis.process === void 0 && (globalThis.process = {
|
|
|
8
8
|
return Promise.resolve().then(e);
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
import {
|
|
11
|
+
import { m as e, p as t } from "./BuilderAgentPane-CcVuZtj6.js";
|
|
12
12
|
import { i as n } from "./diagnostics-x5QOwca_.js";
|
|
13
13
|
import { n as r } from "./headers-CnTiKpOL.js";
|
|
14
14
|
import { i, p as a } from "./transform-messages-DvxSeyBQ.js";
|
|
@@ -8,7 +8,7 @@ globalThis.process === void 0 && (globalThis.process = {
|
|
|
8
8
|
return Promise.resolve().then(e);
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
import {
|
|
11
|
+
import { m as e, p as t } from "./BuilderAgentPane-CcVuZtj6.js";
|
|
12
12
|
import { i as n } from "./diagnostics-x5QOwca_.js";
|
|
13
13
|
import { t as r } from "./provider-env-Cj6X7Wly.js";
|
|
14
14
|
import { n as i } from "./headers-CnTiKpOL.js";
|
|
@@ -8,7 +8,7 @@ globalThis.process === void 0 && (globalThis.process = {
|
|
|
8
8
|
return Promise.resolve().then(e);
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
import {
|
|
11
|
+
import { lr as e } from "./global-DGa0hKAJ.js";
|
|
12
12
|
//#region ../../../../node_modules/.pnpm/svelte@5.57.0/node_modules/svelte/src/internal/flags/legacy.js
|
|
13
13
|
e();
|
|
14
14
|
//#endregion
|
package/dist/login.js
CHANGED
|
@@ -8,126 +8,126 @@ globalThis.process === void 0 && (globalThis.process = {
|
|
|
8
8
|
return Promise.resolve().then(e);
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
import { An as e, Bn as t, Cn as n,
|
|
11
|
+
import { An as e, Bn as t, Cn as n, Dn as r, En as i, Hn as a, Ht as o, Kn as s, Mn as c, On as l, Qt as u, Rn as d, Rt as f, Un as p, Vn as m, Vt as h, Xt as g, Yn as ee, Zt as _, ar as te, dr as v, kn as y, ln as b, or as ne, qn as x, ur as re, wn as S, xn as ie, yn as C } from "./global-DGa0hKAJ.js";
|
|
12
12
|
//#region src/lib/login/Login.svelte
|
|
13
|
-
var ae =
|
|
13
|
+
var ae = i("<p class=\"svelte-uxwqu2\">We’ll send a setup link to your primary email address.</p>"), w = i("<p class=\"svelte-uxwqu2\">Use at least 12 characters. The link works once and expires after one hour.</p>"), T = i("<div class=\"flash flash-error svelte-uxwqu2\" role=\"alert\"> </div>"), E = i("<div class=\"flash flash-success svelte-uxwqu2\" role=\"status\"> </div>"), D = i("<label for=\"email\" class=\"svelte-uxwqu2\">Primary email address</label><input id=\"email\" type=\"email\" class=\"form-control svelte-uxwqu2\" autocomplete=\"username\" required=\"\"/>", 1), O = i("<label for=\"password\" class=\"svelte-uxwqu2\"> </label><input id=\"password\" type=\"password\" class=\"form-control svelte-uxwqu2\" maxlength=\"256\" required=\"\"/>", 1), oe = i("<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), se = i("<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>"), ce = {
|
|
14
14
|
hash: "svelte-uxwqu2",
|
|
15
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;}"
|
|
16
16
|
};
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
let
|
|
20
|
-
|
|
17
|
+
function k(i, l) {
|
|
18
|
+
ne(l, !0), b(i, ce);
|
|
19
|
+
let h = o(l, "config", 7), k = x("login"), A = x(""), j = x(""), M = x(""), N = x(""), P = x(""), F = x(""), I = x(!1);
|
|
20
|
+
ie(() => {
|
|
21
21
|
let e = new URLSearchParams(window.location.hash.slice(1)).get("reset");
|
|
22
|
-
e && (
|
|
22
|
+
e && (s(N, e, !0), s(k, "reset"), window.history.replaceState({}, "", window.location.pathname));
|
|
23
23
|
});
|
|
24
|
-
function
|
|
25
|
-
|
|
24
|
+
function L(e) {
|
|
25
|
+
s(k, e, !0), s(P, ""), s(F, ""), s(j, ""), s(M, "");
|
|
26
26
|
}
|
|
27
|
-
async function
|
|
28
|
-
if (e.preventDefault(),
|
|
29
|
-
|
|
27
|
+
async function R(e) {
|
|
28
|
+
if (e.preventDefault(), s(P, ""), s(F, ""), c(k) === "reset" && c(j) !== c(M)) {
|
|
29
|
+
s(P, "Passwords do not match.");
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
s(I, !0);
|
|
33
33
|
try {
|
|
34
|
-
let e =
|
|
34
|
+
let e = c(k) === "login" ? "login" : c(k) === "request" ? "password-reset/request" : "password-reset/complete", t = await fetch(`/api/admin/${e}`, {
|
|
35
35
|
method: "POST",
|
|
36
36
|
headers: { "Content-Type": "application/json" },
|
|
37
|
-
body: JSON.stringify(
|
|
38
|
-
token:
|
|
39
|
-
password:
|
|
37
|
+
body: JSON.stringify(c(k) === "reset" ? {
|
|
38
|
+
token: c(N),
|
|
39
|
+
password: c(j)
|
|
40
40
|
} : {
|
|
41
|
-
email:
|
|
42
|
-
password:
|
|
41
|
+
email: c(A),
|
|
42
|
+
password: c(k) === "login" ? c(j) : void 0
|
|
43
43
|
})
|
|
44
44
|
}), n = await t.json();
|
|
45
45
|
if (!t.ok) throw Error(n.error || n.message || "Unable to continue. Try again.");
|
|
46
|
-
if (
|
|
46
|
+
if (c(k) === "login") {
|
|
47
47
|
window.location.href = "/admin";
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
c(k) === "reset" && (s(N, ""), L("login")), s(F, n.message, !0);
|
|
51
51
|
} catch (e) {
|
|
52
|
-
|
|
52
|
+
s(P, e instanceof Error ? e.message : "Unable to connect. Try again.", !0);
|
|
53
53
|
} finally {
|
|
54
|
-
|
|
54
|
+
s(I, !1);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
var
|
|
57
|
+
var z = {
|
|
58
58
|
get config() {
|
|
59
|
-
return
|
|
59
|
+
return h();
|
|
60
60
|
},
|
|
61
|
-
set config(
|
|
62
|
-
|
|
61
|
+
set config(e) {
|
|
62
|
+
h(e), ee();
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}, B = se(), V = t(B), H = t(V), U = p(t(H), 2), W = a(U, !0), le = p(U, 2), ue = (e) => {
|
|
65
65
|
var t = ae();
|
|
66
|
-
|
|
67
|
-
},
|
|
66
|
+
S(e, t);
|
|
67
|
+
}, de = (e) => {
|
|
68
68
|
var t = w();
|
|
69
|
-
|
|
69
|
+
S(e, t);
|
|
70
70
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}),
|
|
74
|
-
var
|
|
75
|
-
var t = T(), r =
|
|
76
|
-
|
|
71
|
+
C(le, (e) => {
|
|
72
|
+
c(k) === "request" ? e(ue) : c(k) === "reset" && e(de, 1);
|
|
73
|
+
}), v(H);
|
|
74
|
+
var G = p(H, 2), fe = (e) => {
|
|
75
|
+
var t = T(), r = a(t, !0);
|
|
76
|
+
d(() => n(r, c(P))), S(e, t);
|
|
77
77
|
};
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
C(G, (e) => {
|
|
79
|
+
c(P) && e(fe);
|
|
80
80
|
});
|
|
81
|
-
var
|
|
82
|
-
var t =
|
|
83
|
-
|
|
81
|
+
var K = p(G, 2), pe = (e) => {
|
|
82
|
+
var t = E(), r = a(t, !0);
|
|
83
|
+
d(() => n(r, c(F))), S(e, t);
|
|
84
84
|
};
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
C(K, (e) => {
|
|
86
|
+
c(F) && e(pe);
|
|
87
87
|
});
|
|
88
|
-
var
|
|
89
|
-
var t =
|
|
90
|
-
|
|
88
|
+
var q = p(K, 2), J = t(q), Y = (e) => {
|
|
89
|
+
var t = D(), n = p(m(t));
|
|
90
|
+
_(n), d(() => n.disabled = c(I)), g(n, () => c(A), (e) => s(A, e)), S(e, t);
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
C(J, (e) => {
|
|
93
|
+
c(k) !== "reset" && e(Y);
|
|
94
94
|
});
|
|
95
|
-
var X =
|
|
96
|
-
var t =
|
|
97
|
-
o
|
|
98
|
-
|
|
99
|
-
}), g(
|
|
95
|
+
var X = p(J, 2), me = (e) => {
|
|
96
|
+
var t = O(), r = m(t), i = a(r, !0), o = p(r);
|
|
97
|
+
_(o), d(() => {
|
|
98
|
+
n(i, c(k) === "reset" ? "New password" : "Password"), u(o, "autocomplete", c(k) === "reset" ? "new-password" : "current-password"), u(o, "minlength", c(k) === "reset" ? 12 : void 0), o.disabled = c(I);
|
|
99
|
+
}), g(o, () => c(j), (e) => s(j, e)), S(e, t);
|
|
100
100
|
};
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
C(X, (e) => {
|
|
102
|
+
c(k) !== "request" && e(me);
|
|
103
103
|
});
|
|
104
|
-
var Z =
|
|
105
|
-
var t =
|
|
106
|
-
|
|
104
|
+
var Z = p(X, 2), he = (e) => {
|
|
105
|
+
var t = oe(), n = p(m(t));
|
|
106
|
+
_(n), d(() => n.disabled = c(I)), g(n, () => c(M), (e) => s(M, e)), S(e, t);
|
|
107
107
|
};
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
C(Z, (e) => {
|
|
109
|
+
c(k) === "reset" && e(he);
|
|
110
110
|
});
|
|
111
|
-
var ge =
|
|
112
|
-
|
|
111
|
+
var ge = p(Z, 2);
|
|
112
|
+
f(ge, {
|
|
113
113
|
type: "submit",
|
|
114
114
|
variant: "primary",
|
|
115
115
|
block: !0,
|
|
116
116
|
get disabled() {
|
|
117
|
-
return
|
|
117
|
+
return c(I);
|
|
118
118
|
},
|
|
119
119
|
children: (e, t) => {
|
|
120
|
-
|
|
121
|
-
var
|
|
122
|
-
|
|
120
|
+
re();
|
|
121
|
+
var i = r();
|
|
122
|
+
d(() => n(i, c(I) ? "Please wait…" : c(k) === "login" ? "Sign in" : c(k) === "request" ? "Send reset link" : "Save password")), S(e, i);
|
|
123
123
|
},
|
|
124
124
|
$$slots: { default: !0 }
|
|
125
|
-
}),
|
|
126
|
-
var Q =
|
|
127
|
-
return
|
|
128
|
-
|
|
129
|
-
}),
|
|
125
|
+
}), v(q);
|
|
126
|
+
var Q = p(q, 2), $ = t(Q), _e = a($, !0);
|
|
127
|
+
return v(Q), v(V), v(B), d(() => {
|
|
128
|
+
n(W, c(k) === "login" ? "Sign in to hintergrund" : c(k) === "request" ? "Reset your password" : "Choose your password"), $.disabled = c(I), n(_e, c(k) === "login" ? "Forgot your password?" : "Back to sign in");
|
|
129
|
+
}), e("submit", q, R), y("click", $, () => L(c(k) === "login" ? "request" : "login")), S(i, B), te(z);
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
l(["click"]), customElements.define("hintergrund-login", h(k, { config: {} }, [], []));
|
|
132
132
|
//#endregion
|
|
133
|
-
export {
|
|
133
|
+
export { k as default };
|