@hintergrund/ui 0.3.4 → 0.3.6

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.
Files changed (87) hide show
  1. package/dist/BuilderAgentPane-Vj3NCGvZ.js +25916 -0
  2. package/dist/IntegrationHealth-D1HcBrQn.js +218 -0
  3. package/dist/admin.js +22766 -28480
  4. package/dist/anthropic-messages-D8Vp-Ncs.js +3772 -0
  5. package/dist/azure-openai-responses-DnjyYuiz.js +168 -0
  6. package/dist/builder.js +27 -22
  7. package/dist/config.types-DZ5yfeqq.js +20 -0
  8. package/dist/deferred-tools-nxpq94I4.js +34 -0
  9. package/dist/diagnostics-x5QOwca_.js +91 -0
  10. package/dist/error-body-pXgvw5vV.js +68 -0
  11. package/dist/font-pool/LICENSES.txt +22 -0
  12. package/dist/font-pool/inter.ttf +0 -0
  13. package/dist/font-pool/inter.woff2 +0 -0
  14. package/dist/font-pool/jetbrains-mono.ttf +0 -0
  15. package/dist/font-pool/jetbrains-mono.woff2 +0 -0
  16. package/dist/font-pool/lora.ttf +0 -0
  17. package/dist/font-pool/lora.woff2 +0 -0
  18. package/dist/font-pool/merriweather.ttf +0 -0
  19. package/dist/font-pool/merriweather.woff2 +0 -0
  20. package/dist/font-pool/montserrat.ttf +0 -0
  21. package/dist/font-pool/montserrat.woff2 +0 -0
  22. package/dist/font-pool/playfair-display.ttf +0 -0
  23. package/dist/font-pool/playfair-display.woff2 +0 -0
  24. package/dist/font-pool/poppins.ttf +0 -0
  25. package/dist/font-pool/poppins.woff2 +0 -0
  26. package/dist/font-pool/roboto.ttf +0 -0
  27. package/dist/font-pool/roboto.woff2 +0 -0
  28. package/dist/font-pool/space-grotesk.ttf +0 -0
  29. package/dist/font-pool/space-grotesk.woff2 +0 -0
  30. package/dist/font-pool/work-sans.ttf +0 -0
  31. package/dist/font-pool/work-sans.woff2 +0 -0
  32. package/dist/github-copilot-headers-pRo3v4t7.js +27 -0
  33. package/dist/global-xsR9gLDa.js +30568 -0
  34. package/dist/google-generative-ai-BmzNjEvl.js +291 -0
  35. package/dist/google-shared-CG2Lbh1z.js +8746 -0
  36. package/dist/google-vertex-Dfla93V_.js +329 -0
  37. package/dist/hash-BixfZjoG.js +21 -0
  38. package/dist/headers-CnTiKpOL.js +24 -0
  39. package/dist/json-parse-CxjAnWaM.js +231 -0
  40. package/dist/legacy-Zmnk-v81.js +14 -0
  41. package/dist/login.js +131 -146
  42. package/dist/mail.js +694 -789
  43. package/dist/mistral-conversations-DeDb7Gbd.js +558 -0
  44. package/dist/openai-ClxLHXsh.js +5371 -0
  45. package/dist/openai-codex-responses-usgOtWUT.js +909 -0
  46. package/dist/openai-completions-D_nFQy7A.js +730 -0
  47. package/dist/openai-prompt-cache-Bm8Re6Vv.js +17 -0
  48. package/dist/openai-responses-BqL3PFsb.js +192 -0
  49. package/dist/openai-responses-shared-BhQj78KM.js +481 -0
  50. package/dist/pi-messages-CRx0yqMp.js +268 -0
  51. package/dist/pi-user-agent-CsXkkH60.js +20 -0
  52. package/dist/provider-env-Cj6X7Wly.js +35 -0
  53. package/dist/provider-retry-BGImU1PV.js +68 -0
  54. package/dist/rolldown-runtime-nTTD767F.js +37 -0
  55. package/dist/setup.js +391 -418
  56. package/dist/transform-messages-DvxSeyBQ.js +383 -0
  57. package/dist/ui.css +2 -1
  58. package/package.json +5 -5
  59. package/dist/BuilderAgentPane-CwG29LOX.js +0 -13938
  60. package/dist/IntegrationHealth-G_4vzV66.js +0 -209
  61. package/dist/anthropic-messages-BmLfYiwX.js +0 -5605
  62. package/dist/azure-openai-responses-yf2M6GVe.js +0 -222
  63. package/dist/client-Cd7yMX39.js +0 -7860
  64. package/dist/config.types-iZoywORE.js +0 -15
  65. package/dist/deferred-tools-BZWMWBYN.js +0 -28
  66. package/dist/error-body-BUPcH4GF.js +0 -71
  67. package/dist/github-copilot-headers-B1RBGoZi.js +0 -21
  68. package/dist/global-CTQcFve1.js +0 -36177
  69. package/dist/google-generative-ai-DkzwUYzL.js +0 -264
  70. package/dist/google-shared-DTgKMtfJ.js +0 -11710
  71. package/dist/google-vertex-D2IzqvQM.js +0 -305
  72. package/dist/hash-DFlR084x.js +0 -14
  73. package/dist/headers-D4iLzGaS.js +0 -21
  74. package/dist/json-parse-LZdWp-Nd.js +0 -232
  75. package/dist/legacy-CckexQcJ.js +0 -5
  76. package/dist/mistral-conversations-CNfKG0tU.js +0 -513
  77. package/dist/openai-codex-responses-BLNjExaC.js +0 -947
  78. package/dist/openai-completions-46IVoF2N.js +0 -741
  79. package/dist/openai-prompt-cache-BJwqbEDx.js +0 -13
  80. package/dist/openai-responses-BfHoZFHI.js +0 -184
  81. package/dist/openai-responses-shared-DOTQAbCj.js +0 -477
  82. package/dist/pi-messages-fnW87Z4Z.js +0 -251
  83. package/dist/pi-user-agent-CUqx-qiX.js +0 -13
  84. package/dist/provider-env-D2VjEV3S.js +0 -26
  85. package/dist/provider-retry-BsigVlMg.js +0 -67
  86. package/dist/select-Cke4DYH1.js +0 -78
  87. package/dist/transform-messages-CsKsy6b4.js +0 -398
package/dist/login.js CHANGED
@@ -1,148 +1,133 @@
1
- import { J as se, K as oe, L as ne, M as le, N as ie, at as ue, P as o, a1 as n, a0 as l, Y as g, a3 as de, a5 as ve, a7 as m, Z as d, F as e, ar as ce, a9 as fe, _ as me, U as c, aa as f, $ as pe, a2 as i, a4 as we, a8 as h, X as U, aj as $, as as j, af as K } from "./global-CTQcFve1.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
- } });
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
- hash: "svelte-uxwqu2",
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;}"
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 Pe(q, z) {
11
- ne(z, !0), le(q, Ce);
12
- let E = ie(z, "config", 7), a = c("login"), C = c(""), p = c(""), _ = c(""), P = 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(P, t, !0), o(a, "reset"), window.history.replaceState({}, "", window.location.pathname));
16
- });
17
- function L(r) {
18
- o(a, r, !0), o(w, ""), o(x, ""), o(p, ""), o(_, "");
19
- }
20
- async function W(r) {
21
- if (r.preventDefault(), o(w, ""), o(x, ""), e(a) === "reset" && e(p) !== e(_)) {
22
- o(w, "Passwords do not match.");
23
- return;
24
- }
25
- o(v, !0);
26
- try {
27
- const t = e(a) === "login" ? "login" : e(a) === "request" ? "password-reset/request" : "password-reset/complete", s = await fetch(`/api/admin/${t}`, {
28
- method: "POST",
29
- headers: { "Content-Type": "application/json" },
30
- body: JSON.stringify(e(a) === "reset" ? { token: e(P), password: e(p) } : {
31
- email: e(C),
32
- password: e(a) === "login" ? e(p) : 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(P, ""), L("login")), o(x, u.message, !0);
41
- } catch (t) {
42
- o(w, t instanceof Error ? t.message : "Unable to connect. Try again.", !0);
43
- } finally {
44
- o(v, !1);
45
- }
46
- }
47
- var X = {
48
- get config() {
49
- return E();
50
- },
51
- set config(r) {
52
- E(r), pe();
53
- }
54
- }, S = ke(), M = l(S), T = l(M), B = n(l(T), 2), Y = l(B, !0);
55
- i(B);
56
- var Z = n(B, 2);
57
- {
58
- var A = (r) => {
59
- var t = ge();
60
- d(r, t);
61
- }, G = (r) => {
62
- var t = he();
63
- d(r, t);
64
- };
65
- g(Z, (r) => {
66
- e(a) === "request" ? r(A) : e(a) === "reset" && r(G, 1);
67
- });
68
- }
69
- i(T);
70
- var N = n(T, 2);
71
- {
72
- var H = (r) => {
73
- var t = xe(), s = l(t, !0);
74
- i(t), m(() => h(s, e(w))), d(r, t);
75
- };
76
- g(N, (r) => {
77
- e(w) && r(H);
78
- });
79
- }
80
- var F = n(N, 2);
81
- {
82
- var I = (r) => {
83
- var t = be(), s = l(t, !0);
84
- i(t), m(() => h(s, e(x))), d(r, t);
85
- };
86
- g(F, (r) => {
87
- e(x) && r(I);
88
- });
89
- }
90
- var y = n(F, 2), J = l(y);
91
- {
92
- var Q = (r) => {
93
- var t = qe(), s = n(U(t));
94
- $(s), m(() => s.disabled = e(v)), j(s, () => e(C), (u) => o(C, u)), d(r, t);
95
- };
96
- g(J, (r) => {
97
- e(a) !== "reset" && r(Q);
98
- });
99
- }
100
- var O = n(J, 2);
101
- {
102
- var V = (r) => {
103
- var t = _e(), s = U(t), u = l(s, !0);
104
- i(s);
105
- var b = n(s);
106
- $(b), m(() => {
107
- h(u, e(a) === "reset" ? "New password" : "Password"), K(b, "autocomplete", e(a) === "reset" ? "new-password" : "current-password"), K(b, "minlength", e(a) === "reset" ? 12 : void 0), b.disabled = e(v);
108
- }), j(b, () => e(p), (ae) => o(p, ae)), d(r, t);
109
- };
110
- g(O, (r) => {
111
- e(a) !== "request" && r(V);
112
- });
113
- }
114
- var R = n(O, 2);
115
- {
116
- var ee = (r) => {
117
- var t = ye(), s = n(U(t));
118
- $(s), m(() => s.disabled = e(v)), j(s, () => e(_), (u) => o(_, u)), d(r, t);
119
- };
120
- g(R, (r) => {
121
- e(a) === "reset" && r(ee);
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
- se(["click"]);
145
- customElements.define("hintergrund-login", oe(Pe, { config: {} }, [], []));
146
- export {
147
- Pe as default
148
- };
131
+ _(["click"]), customElements.define("hintergrund-login", u(A, { config: {} }, [], []));
132
+ //#endregion
133
+ export { A as default };