@hintergrund/ui 0.2.1 → 0.2.2
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/{Builder-B0XYsyXe.js → Builder-BhGmzNTC.js} +9 -9
- package/dist/admin.js +1906 -1924
- package/dist/{anthropic-UhrJpH25.js → anthropic-CwpwmW2G.js} +2 -2
- package/dist/{azure-openai-responses-DAC03Qw1.js → azure-openai-responses-yWEFYMG1.js} +2 -2
- package/dist/builder.js +2 -2
- package/dist/{global-CFcrkAa3.js → global-DdaMTl90.js} +92 -94
- package/dist/{google-CVz_TaG6.js → google-BgPPfrTM.js} +2 -2
- package/dist/{google-shared-BmdaIInh.js → google-shared-zl4aoTwW.js} +1 -1
- package/dist/{google-vertex-C6GE41DE.js → google-vertex-D7kAAkZn.js} +2 -2
- package/dist/{json-parse-DmJ6NiZE.js → json-parse-Dk_xwHcS.js} +1 -1
- package/dist/login.js +79 -75
- package/dist/{mistral-DqYbzWvv.js → mistral-BJWDROjc.js} +2 -2
- package/dist/{openai-codex-responses-ZWuD9ryk.js → openai-codex-responses-rzy0Aqwg.js} +2 -2
- package/dist/{openai-completions-B6B2OwYj.js → openai-completions-CUEO2YVR.js} +2 -2
- package/dist/{openai-responses-D9Ip2Wgd.js → openai-responses-k6plMvd9.js} +2 -2
- package/dist/{openai-responses-shared-eUUJSL4D.js → openai-responses-shared-CCD7nRqy.js} +2 -2
- package/dist/setup.js +274 -189
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as cs, e as rn, f as It } from "./Builder-
|
|
1
|
+
import { d as cs, e as rn, f as It } from "./Builder-BhGmzNTC.js";
|
|
2
2
|
import { h as an } from "./headers-u7rXGJ9f.js";
|
|
3
|
-
import { p as Ot, a as on } from "./json-parse-
|
|
3
|
+
import { p as Ot, a as on } from "./json-parse-Dk_xwHcS.js";
|
|
4
4
|
import { b as cn, a as ln, s as W, t as un } from "./transform-messages-CkpQp6fJ.js";
|
|
5
5
|
import { h as hn, b as dn, r as fn } from "./github-copilot-headers-DWh_6bE3.js";
|
|
6
6
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(r) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { O as E, a as c, r as p, i as h, b as _ } from "./client-Sh7wNjbG.js";
|
|
2
|
-
import { d as f, h as R, e as y } from "./Builder-
|
|
2
|
+
import { d as f, h as R, e as y } from "./Builder-BhGmzNTC.js";
|
|
3
3
|
import { h as g } from "./headers-u7rXGJ9f.js";
|
|
4
|
-
import { p as I, c as v, a as O } from "./openai-responses-shared-
|
|
4
|
+
import { p as I, c as v, a as O } from "./openai-responses-shared-CCD7nRqy.js";
|
|
5
5
|
import { b } from "./transform-messages-CkpQp6fJ.js";
|
|
6
6
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(r) {
|
|
7
7
|
return Promise.resolve().then(r);
|
package/dist/builder.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./global-
|
|
2
|
-
import { B as i } from "./Builder-
|
|
1
|
+
import "./global-DdaMTl90.js";
|
|
2
|
+
import { B as i } from "./Builder-BhGmzNTC.js";
|
|
3
3
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
|
|
4
4
|
return Promise.resolve().then(e);
|
|
5
5
|
} });
|
|
@@ -31117,10 +31117,11 @@ class P0 extends Error {
|
|
|
31117
31117
|
constructor(A) {
|
|
31118
31118
|
super(A), this.message = A, this.name = "ConflictError";
|
|
31119
31119
|
}
|
|
31120
|
-
message;
|
|
31121
31120
|
}
|
|
31122
31121
|
class fo {
|
|
31123
|
-
|
|
31122
|
+
constructor() {
|
|
31123
|
+
this.db = null;
|
|
31124
|
+
}
|
|
31124
31125
|
async open() {
|
|
31125
31126
|
return this.db ? this.db : new Promise((A, t) => {
|
|
31126
31127
|
const i = indexedDB.open(wo, mo);
|
|
@@ -31166,141 +31167,139 @@ class fo {
|
|
|
31166
31167
|
}
|
|
31167
31168
|
}
|
|
31168
31169
|
class yo {
|
|
31169
|
-
|
|
31170
|
-
#A = (
|
|
31171
|
-
/** Clean snapshot of the repo at `commitSha`. */
|
|
31172
|
-
/* @__PURE__ */ iA(GA([]))
|
|
31173
|
-
);
|
|
31170
|
+
#A;
|
|
31174
31171
|
get files() {
|
|
31175
31172
|
return c(this.#A);
|
|
31176
31173
|
}
|
|
31177
31174
|
set files(A) {
|
|
31178
31175
|
P(this.#A, A, !0);
|
|
31179
31176
|
}
|
|
31180
|
-
#e
|
|
31177
|
+
#e;
|
|
31181
31178
|
get edits() {
|
|
31182
31179
|
return c(this.#e);
|
|
31183
31180
|
}
|
|
31184
31181
|
set edits(A) {
|
|
31185
31182
|
P(this.#e, A, !0);
|
|
31186
31183
|
}
|
|
31187
|
-
#t
|
|
31184
|
+
#t;
|
|
31188
31185
|
get commitSha() {
|
|
31189
31186
|
return c(this.#t);
|
|
31190
31187
|
}
|
|
31191
31188
|
set commitSha(A) {
|
|
31192
31189
|
P(this.#t, A, !0);
|
|
31193
31190
|
}
|
|
31194
|
-
#a
|
|
31191
|
+
#a;
|
|
31195
31192
|
get projectId() {
|
|
31196
31193
|
return c(this.#a);
|
|
31197
31194
|
}
|
|
31198
31195
|
set projectId(A) {
|
|
31199
31196
|
P(this.#a, A, !0);
|
|
31200
31197
|
}
|
|
31201
|
-
#i
|
|
31198
|
+
#i;
|
|
31202
31199
|
get previewVersion() {
|
|
31203
31200
|
return c(this.#i);
|
|
31204
31201
|
}
|
|
31205
31202
|
set previewVersion(A) {
|
|
31206
31203
|
P(this.#i, A, !0);
|
|
31207
31204
|
}
|
|
31208
|
-
#g
|
|
31209
|
-
loading: !1,
|
|
31210
|
-
syncing: !1,
|
|
31211
|
-
committing: !1,
|
|
31212
|
-
uploading: !1,
|
|
31213
|
-
error: null
|
|
31214
|
-
}));
|
|
31205
|
+
#g;
|
|
31215
31206
|
get loadingState() {
|
|
31216
31207
|
return c(this.#g);
|
|
31217
31208
|
}
|
|
31218
31209
|
set loadingState(A) {
|
|
31219
31210
|
P(this.#g, A, !0);
|
|
31220
31211
|
}
|
|
31221
|
-
|
|
31222
|
-
#n = /* @__PURE__ */ dA(() => {
|
|
31223
|
-
const A = new Map(this.files.map((t) => [t.path, t]));
|
|
31224
|
-
for (const t of this.edits)
|
|
31225
|
-
if (t.deleted)
|
|
31226
|
-
A.delete(t.path);
|
|
31227
|
-
else {
|
|
31228
|
-
const i = A.get(t.path);
|
|
31229
|
-
A.set(t.path, {
|
|
31230
|
-
path: t.path,
|
|
31231
|
-
content: t.content,
|
|
31232
|
-
encoding: t.encoding,
|
|
31233
|
-
mimeType: t.mimeType ?? i?.mimeType,
|
|
31234
|
-
sha: i?.sha ?? ""
|
|
31235
|
-
});
|
|
31236
|
-
}
|
|
31237
|
-
return [...A.values()].sort((t, i) => t.path.localeCompare(i.path));
|
|
31238
|
-
});
|
|
31212
|
+
#n;
|
|
31239
31213
|
get effectiveFiles() {
|
|
31240
31214
|
return c(this.#n);
|
|
31241
31215
|
}
|
|
31242
31216
|
set effectiveFiles(A) {
|
|
31243
31217
|
P(this.#n, A);
|
|
31244
31218
|
}
|
|
31245
|
-
#s
|
|
31219
|
+
#s;
|
|
31246
31220
|
get srcFiles() {
|
|
31247
31221
|
return c(this.#s);
|
|
31248
31222
|
}
|
|
31249
31223
|
set srcFiles(A) {
|
|
31250
31224
|
P(this.#s, A);
|
|
31251
31225
|
}
|
|
31252
|
-
#o
|
|
31253
|
-
name: A.path.split("/").pop(),
|
|
31254
|
-
path: A.path,
|
|
31255
|
-
content: A.content,
|
|
31256
|
-
mimeType: A.mimeType ?? "application/octet-stream"
|
|
31257
|
-
})));
|
|
31226
|
+
#o;
|
|
31258
31227
|
get staticAssets() {
|
|
31259
31228
|
return c(this.#o);
|
|
31260
31229
|
}
|
|
31261
31230
|
set staticAssets(A) {
|
|
31262
31231
|
P(this.#o, A);
|
|
31263
31232
|
}
|
|
31264
|
-
#I
|
|
31233
|
+
#I;
|
|
31265
31234
|
get cleanSrcFiles() {
|
|
31266
31235
|
return c(this.#I);
|
|
31267
31236
|
}
|
|
31268
31237
|
set cleanSrcFiles(A) {
|
|
31269
31238
|
P(this.#I, A);
|
|
31270
31239
|
}
|
|
31271
|
-
#r
|
|
31272
|
-
name: A.path.split("/").pop(),
|
|
31273
|
-
path: A.path,
|
|
31274
|
-
content: A.content,
|
|
31275
|
-
mimeType: A.mimeType ?? "application/octet-stream"
|
|
31276
|
-
})));
|
|
31240
|
+
#r;
|
|
31277
31241
|
get cleanStaticAssets() {
|
|
31278
31242
|
return c(this.#r);
|
|
31279
31243
|
}
|
|
31280
31244
|
set cleanStaticAssets(A) {
|
|
31281
31245
|
P(this.#r, A);
|
|
31282
31246
|
}
|
|
31283
|
-
#B
|
|
31284
|
-
const A = /* @__PURE__ */ new Map();
|
|
31285
|
-
for (const t of [...this.edits].sort((i, n) => i.createdAt - n.createdAt)) {
|
|
31286
|
-
const i = A.get(t.changeSetId);
|
|
31287
|
-
i ? i.paths.push(t.path) : A.set(t.changeSetId, {
|
|
31288
|
-
id: t.changeSetId,
|
|
31289
|
-
source: t.source,
|
|
31290
|
-
label: t.label,
|
|
31291
|
-
conversationId: t.conversationId,
|
|
31292
|
-
createdAt: t.createdAt,
|
|
31293
|
-
paths: [t.path]
|
|
31294
|
-
});
|
|
31295
|
-
}
|
|
31296
|
-
return [...A.values()];
|
|
31297
|
-
});
|
|
31247
|
+
#B;
|
|
31298
31248
|
get changeSets() {
|
|
31299
31249
|
return c(this.#B);
|
|
31300
31250
|
}
|
|
31301
31251
|
set changeSets(A) {
|
|
31302
31252
|
P(this.#B, A);
|
|
31303
31253
|
}
|
|
31254
|
+
constructor() {
|
|
31255
|
+
this.db = new fo(), this.#A = /* @__PURE__ */ iA(GA([])), this.#e = /* @__PURE__ */ iA(GA([])), this.#t = /* @__PURE__ */ iA(""), this.#a = /* @__PURE__ */ iA(""), this.#i = /* @__PURE__ */ iA(0), this.#g = /* @__PURE__ */ iA(GA({
|
|
31256
|
+
loading: !1,
|
|
31257
|
+
syncing: !1,
|
|
31258
|
+
committing: !1,
|
|
31259
|
+
uploading: !1,
|
|
31260
|
+
error: null
|
|
31261
|
+
})), this.openSets = /* @__PURE__ */ new Map(), this.#n = /* @__PURE__ */ dA(() => {
|
|
31262
|
+
const A = new Map(this.files.map((t) => [t.path, t]));
|
|
31263
|
+
for (const t of this.edits)
|
|
31264
|
+
if (t.deleted)
|
|
31265
|
+
A.delete(t.path);
|
|
31266
|
+
else {
|
|
31267
|
+
const i = A.get(t.path);
|
|
31268
|
+
A.set(t.path, {
|
|
31269
|
+
path: t.path,
|
|
31270
|
+
content: t.content,
|
|
31271
|
+
encoding: t.encoding,
|
|
31272
|
+
mimeType: t.mimeType ?? i?.mimeType,
|
|
31273
|
+
sha: i?.sha ?? ""
|
|
31274
|
+
});
|
|
31275
|
+
}
|
|
31276
|
+
return [...A.values()].sort((t, i) => t.path.localeCompare(i.path));
|
|
31277
|
+
}), this.#s = /* @__PURE__ */ dA(() => this.effectiveFiles.filter((A) => A.encoding === "utf8").map(({ path: A, content: t, sha: i }) => ({ path: A, content: t, sha: i }))), this.#o = /* @__PURE__ */ dA(() => this.effectiveFiles.filter((A) => A.encoding === "base64").map((A) => ({
|
|
31278
|
+
name: A.path.split("/").pop(),
|
|
31279
|
+
path: A.path,
|
|
31280
|
+
content: A.content,
|
|
31281
|
+
mimeType: A.mimeType ?? "application/octet-stream"
|
|
31282
|
+
}))), this.#I = /* @__PURE__ */ dA(() => this.files.filter((A) => A.encoding === "utf8").map(({ path: A, content: t, sha: i }) => ({ path: A, content: t, sha: i }))), this.#r = /* @__PURE__ */ dA(() => this.files.filter((A) => A.encoding === "base64").map((A) => ({
|
|
31283
|
+
name: A.path.split("/").pop(),
|
|
31284
|
+
path: A.path,
|
|
31285
|
+
content: A.content,
|
|
31286
|
+
mimeType: A.mimeType ?? "application/octet-stream"
|
|
31287
|
+
}))), this.#B = /* @__PURE__ */ dA(() => {
|
|
31288
|
+
const A = /* @__PURE__ */ new Map();
|
|
31289
|
+
for (const t of [...this.edits].sort((i, n) => i.createdAt - n.createdAt)) {
|
|
31290
|
+
const i = A.get(t.changeSetId);
|
|
31291
|
+
i ? i.paths.push(t.path) : A.set(t.changeSetId, {
|
|
31292
|
+
id: t.changeSetId,
|
|
31293
|
+
source: t.source,
|
|
31294
|
+
label: t.label,
|
|
31295
|
+
conversationId: t.conversationId,
|
|
31296
|
+
createdAt: t.createdAt,
|
|
31297
|
+
paths: [t.path]
|
|
31298
|
+
});
|
|
31299
|
+
}
|
|
31300
|
+
return [...A.values()];
|
|
31301
|
+
});
|
|
31302
|
+
}
|
|
31304
31303
|
get dirtyPaths() {
|
|
31305
31304
|
return this.edits.map((A) => A.path);
|
|
31306
31305
|
}
|
|
@@ -31672,7 +31671,6 @@ class So {
|
|
|
31672
31671
|
constructor(A) {
|
|
31673
31672
|
this.repo = A;
|
|
31674
31673
|
}
|
|
31675
|
-
repo;
|
|
31676
31674
|
// ── Derived state ─────────────────────────────────────────────────────────
|
|
31677
31675
|
get config() {
|
|
31678
31676
|
const A = this.repo.srcFiles.find((t) => t.path === ut);
|
|
@@ -31742,14 +31740,19 @@ class So {
|
|
|
31742
31740
|
}
|
|
31743
31741
|
}
|
|
31744
31742
|
let bo = class {
|
|
31745
|
-
#A
|
|
31743
|
+
#A;
|
|
31746
31744
|
get notifications() {
|
|
31747
31745
|
return c(this.#A);
|
|
31748
31746
|
}
|
|
31749
31747
|
set notifications(A) {
|
|
31750
31748
|
P(this.#A, A, !0);
|
|
31751
31749
|
}
|
|
31752
|
-
|
|
31750
|
+
constructor() {
|
|
31751
|
+
this.#A = /* @__PURE__ */ iA(GA([])), this.timeoutIds = /* @__PURE__ */ new Map();
|
|
31752
|
+
}
|
|
31753
|
+
/**
|
|
31754
|
+
* Add a new notification
|
|
31755
|
+
*/
|
|
31753
31756
|
addNotification(A) {
|
|
31754
31757
|
const t = typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).substring(2, 11), i = { ...A, id: t, timeout: A.timeout ?? 12e3 };
|
|
31755
31758
|
if (this.notifications = [i, ...this.notifications], i.timeout && i.timeout > 0) {
|
|
@@ -31836,10 +31839,8 @@ function xo(e) {
|
|
|
31836
31839
|
const g1 = /* @__PURE__ */ Symbol("cms-context");
|
|
31837
31840
|
class Uo {
|
|
31838
31841
|
constructor(A) {
|
|
31839
|
-
this.repo = A;
|
|
31842
|
+
this.repo = A, this.defaultModule = "cms";
|
|
31840
31843
|
}
|
|
31841
|
-
repo;
|
|
31842
|
-
defaultModule = "cms";
|
|
31843
31844
|
get assets() {
|
|
31844
31845
|
return this.repo.staticAssets.filter((A) => A.path.startsWith("frontend/static/cms/")).map((A) => ({ ...A, module: "cms" }));
|
|
31845
31846
|
}
|
|
@@ -31910,14 +31911,16 @@ function P2() {
|
|
|
31910
31911
|
return e;
|
|
31911
31912
|
}
|
|
31912
31913
|
class Ho {
|
|
31913
|
-
#A
|
|
31914
|
+
#A;
|
|
31914
31915
|
get notifications() {
|
|
31915
31916
|
return c(this.#A);
|
|
31916
31917
|
}
|
|
31917
31918
|
set notifications(A) {
|
|
31918
31919
|
P(this.#A, A, !0);
|
|
31919
31920
|
}
|
|
31920
|
-
|
|
31921
|
+
constructor() {
|
|
31922
|
+
this.#A = /* @__PURE__ */ iA(GA([])), this.timeoutIds = /* @__PURE__ */ new Map();
|
|
31923
|
+
}
|
|
31921
31924
|
addNotification(A) {
|
|
31922
31925
|
const t = typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).substring(2, 11), i = { ...A, id: t, timeout: A.timeout ?? 12e3 };
|
|
31923
31926
|
if (this.notifications = [i, ...this.notifications], i.timeout && i.timeout > 0) {
|
|
@@ -31954,13 +31957,16 @@ class Ho {
|
|
|
31954
31957
|
}
|
|
31955
31958
|
}
|
|
31956
31959
|
class Ko {
|
|
31957
|
-
#A
|
|
31960
|
+
#A;
|
|
31958
31961
|
get snippet() {
|
|
31959
31962
|
return c(this.#A);
|
|
31960
31963
|
}
|
|
31961
31964
|
set snippet(A) {
|
|
31962
31965
|
P(this.#A, A, !0);
|
|
31963
31966
|
}
|
|
31967
|
+
constructor() {
|
|
31968
|
+
this.#A = /* @__PURE__ */ iA(void 0);
|
|
31969
|
+
}
|
|
31964
31970
|
set(A) {
|
|
31965
31971
|
this.snippet = A;
|
|
31966
31972
|
}
|
|
@@ -31969,33 +31975,30 @@ class Ko {
|
|
|
31969
31975
|
}
|
|
31970
31976
|
}
|
|
31971
31977
|
class Zo {
|
|
31972
|
-
|
|
31973
|
-
this.notifications = A;
|
|
31974
|
-
}
|
|
31975
|
-
notifications;
|
|
31976
|
-
#A = /* @__PURE__ */ iA();
|
|
31978
|
+
#A;
|
|
31977
31979
|
get bundler() {
|
|
31978
31980
|
return c(this.#A);
|
|
31979
31981
|
}
|
|
31980
31982
|
set bundler(A) {
|
|
31981
31983
|
P(this.#A, A, !0);
|
|
31982
31984
|
}
|
|
31983
|
-
#e
|
|
31985
|
+
#e;
|
|
31984
31986
|
get status() {
|
|
31985
31987
|
return c(this.#e);
|
|
31986
31988
|
}
|
|
31987
31989
|
set status(A) {
|
|
31988
31990
|
P(this.#e, A, !0);
|
|
31989
31991
|
}
|
|
31990
|
-
#t
|
|
31992
|
+
#t;
|
|
31991
31993
|
get compileError() {
|
|
31992
31994
|
return c(this.#t);
|
|
31993
31995
|
}
|
|
31994
31996
|
set compileError(A) {
|
|
31995
31997
|
P(this.#t, A, !0);
|
|
31996
31998
|
}
|
|
31997
|
-
|
|
31998
|
-
|
|
31999
|
+
constructor(A) {
|
|
32000
|
+
this.notifications = A, this.#A = /* @__PURE__ */ iA(), this.#e = /* @__PURE__ */ iA(null), this.#t = /* @__PURE__ */ iA(null), this.lastCompileKey = "", this.compileRequestId = 0;
|
|
32001
|
+
}
|
|
31999
32002
|
ensureBundler() {
|
|
32000
32003
|
return this.bundler || (this.bundler = new po({
|
|
32001
32004
|
svelte_version: "latest",
|
|
@@ -32022,13 +32025,8 @@ class Zo {
|
|
|
32022
32025
|
}
|
|
32023
32026
|
const w0 = /* @__PURE__ */ Symbol("website-context");
|
|
32024
32027
|
class qo {
|
|
32025
|
-
repoFiles = new yo();
|
|
32026
|
-
notifications = new Ho();
|
|
32027
|
-
headerActions = new Ko();
|
|
32028
|
-
preview = new Zo(this.notifications);
|
|
32029
|
-
cms;
|
|
32030
32028
|
constructor() {
|
|
32031
|
-
this.cms = Yo(this.repoFiles, this.notifications);
|
|
32029
|
+
this.repoFiles = new yo(), this.notifications = new Ho(), this.headerActions = new Ko(), this.preview = new Zo(this.notifications), this.cms = Yo(this.repoFiles, this.notifications);
|
|
32032
32030
|
}
|
|
32033
32031
|
}
|
|
32034
32032
|
function T2() {
|
|
@@ -34375,14 +34373,14 @@ export {
|
|
|
34375
34373
|
J1 as M,
|
|
34376
34374
|
c as N,
|
|
34377
34375
|
En as O,
|
|
34378
|
-
|
|
34379
|
-
|
|
34376
|
+
P,
|
|
34377
|
+
iA as Q,
|
|
34380
34378
|
$e as R,
|
|
34381
|
-
|
|
34379
|
+
GA as S,
|
|
34382
34380
|
f2 as T,
|
|
34383
34381
|
a0 as U,
|
|
34384
|
-
|
|
34385
|
-
|
|
34382
|
+
bo as V,
|
|
34383
|
+
ri as W,
|
|
34386
34384
|
Xe as X,
|
|
34387
34385
|
ie as Y,
|
|
34388
34386
|
_A as Z,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as v, r as I, m as M, G as S, c as R, a as L, b as _ } from "./google-shared-
|
|
2
|
-
import { d as x, h as G, e as O, f as A } from "./Builder-
|
|
1
|
+
import { i as v, r as I, m as M, G as S, c as R, a as L, b as _ } from "./google-shared-zl4aoTwW.js";
|
|
2
|
+
import { d as x, h as G, e as O, f as A } from "./Builder-BhGmzNTC.js";
|
|
3
3
|
import { b as N, s as P } from "./transform-messages-CkpQp6fJ.js";
|
|
4
4
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
|
|
5
5
|
return Promise.resolve().then(e);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b9 as ii } from "./global-
|
|
1
|
+
import { b9 as ii } from "./global-DdaMTl90.js";
|
|
2
2
|
import { t as ri, s as re } from "./transform-messages-CkpQp6fJ.js";
|
|
3
3
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(t) {
|
|
4
4
|
return Promise.resolve().then(t);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as E, r as x, m as v, G as O, c as w, a as R, b as M, T as h, R as G } from "./google-shared-
|
|
2
|
-
import { h as S, e as N, f as A } from "./Builder-
|
|
1
|
+
import { i as E, r as x, m as v, G as O, c as w, a as R, b as M, T as h, R as G } from "./google-shared-zl4aoTwW.js";
|
|
2
|
+
import { h as S, e as N, f as A } from "./Builder-BhGmzNTC.js";
|
|
3
3
|
import { b as P, s as U } from "./transform-messages-CkpQp6fJ.js";
|
|
4
4
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
|
|
5
5
|
return Promise.resolve().then(e);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as s } from "./Builder-
|
|
1
|
+
import { i as s } from "./Builder-BhGmzNTC.js";
|
|
2
2
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
|
|
3
3
|
return Promise.resolve().then(e);
|
|
4
4
|
} });
|
package/dist/login.js
CHANGED
|
@@ -1,106 +1,110 @@
|
|
|
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 W, Z as X, _ as $, am as ee, K as ae, P as s, a1 as i, a2 as l, a7 as y, a3 as te, ax as re, a0 as se, a5 as u, N as t, a8 as h, ay as oe, a9 as B, aa as ie, Q as v, ab as g, ao as le, af as k, ad as n, a4 as T, ag as O, ar as ne } from "./global-DdaMTl90.js";
|
|
2
|
+
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(w) {
|
|
3
|
+
return Promise.resolve().then(w);
|
|
4
4
|
} });
|
|
5
|
-
var
|
|
6
|
-
const
|
|
5
|
+
var de = g('<div class="flash flash-error"><svg class="octicon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M2.343 13.657A8 8 0 1 1 13.658 2.343 8 8 0 0 1 2.343 13.657ZM6.03 4.97a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042L6.94 8 4.97 9.97a.749.749 0 0 0 .326 1.275.749.749 0 0 0 .734-.215L8 9.06l1.97 1.97a.749.749 0 0 0 1.275-.326.749.749 0 0 0-.215-.734L9.06 8l1.97-1.97a.749.749 0 0 0-.326-1.275.749.749 0 0 0-.734.215L8 6.94Z"></path></svg> </div>'), ue = g('<div class="flash flash-success"><svg class="octicon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16Zm3.78-9.72a.751.751 0 0 0-.018-1.042.751.751 0 0 0-1.042-.018L6.75 9.19 5.28 7.72a.751.751 0 0 0-1.042.018.751.751 0 0 0-.018 1.042l2 2a.75.75 0 0 0 1.06 0Z"></path></svg> </div>'), ve = g('<div class="form-group"><label for="password">Password</label> <input type="password" id="password" name="password" class="form-control form-control-lg" required="" placeholder="••••••••"/></div>'), ce = g('<div class="form-group"><label for="otp">Email code</label> <input type="text" id="otp" name="otp" class="form-control form-control-lg" required="" inputmode="numeric" autocomplete="one-time-code" maxlength="6" placeholder="123456"/></div>'), fe = g('<main class="auth-wrapper svelte-uxwqu2"><div class="auth-container svelte-uxwqu2"><div class="auth-header svelte-uxwqu2"><svg class="auth-logo svelte-uxwqu2" viewBox="0 0 90 90" width="48" height="48" fill="currentColor"><rect x="12" y="12" width="66" height="66" fill="currentColor"></rect></svg> <h1 class="svelte-uxwqu2">Sign in to Hintergrund</h1></div> <!> <!> <div class="Box"><div class="Box-body"><form autocomplete="off"><div class="form-group"><label for="email">Email</label> <input type="email" id="email" name="email" class="form-control form-control-lg" required="" placeholder="you@example.com"/></div> <!> <!></form></div></div></div></main>');
|
|
6
|
+
const me = {
|
|
7
7
|
hash: "svelte-uxwqu2",
|
|
8
8
|
code: ".auth-wrapper.svelte-uxwqu2 {min-height:100vh;display:flex;align-items:center;justify-content:center;background-color:var(--bgColor-muted);padding:var(--base-size-24);}.auth-container.svelte-uxwqu2 {width:100%;max-width:340px;}.auth-header.svelte-uxwqu2 {text-align:center;margin-bottom:var(--base-size-24);}.auth-logo.svelte-uxwqu2 {color:var(--fgColor-default);margin-bottom:var(--base-size-16);}.auth-header.svelte-uxwqu2 h1:where(.svelte-uxwqu2) {font-size:var(--text-title-size-medium);font-weight:var(--base-text-weight-light);color:var(--fgColor-default);margin:0;}"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
let
|
|
13
|
-
|
|
10
|
+
function pe(w, Z) {
|
|
11
|
+
X(Z, !0), $(w, me);
|
|
12
|
+
let A = ee(Z, "config", 7), x = v(!1), m = v(!1), q = v(""), P = v(""), _ = v(""), f = v(""), b = v(""), c = v(!1);
|
|
13
|
+
ae(() => {
|
|
14
14
|
const e = new URLSearchParams(window.location.search).get("error");
|
|
15
|
-
e && (
|
|
15
|
+
e && (s(f, e, !0), window.history.replaceState({}, "", window.location.pathname));
|
|
16
16
|
});
|
|
17
|
-
async function
|
|
18
|
-
|
|
17
|
+
async function U(a) {
|
|
18
|
+
a.preventDefault(), s(f, ""), s(b, ""), s(c, !0);
|
|
19
19
|
try {
|
|
20
20
|
const e = {};
|
|
21
|
-
|
|
22
|
-
const
|
|
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", {
|
|
23
23
|
method: "POST",
|
|
24
24
|
headers: { "Content-Type": "application/json" },
|
|
25
25
|
body: JSON.stringify(e)
|
|
26
26
|
})).json();
|
|
27
|
-
|
|
27
|
+
o.success ? o.requirePassword ? s(x, !0) : o.otpRequired ? (s(m, !0), s(b, o.message || "Check your email for a six-digit sign-in code.", !0)) : window.location.href = "/admin" : s(f, o.message ?? "An error occurred. Please try again.", !0);
|
|
28
28
|
} catch {
|
|
29
|
-
|
|
29
|
+
s(f, "An error occurred. Please try again.");
|
|
30
30
|
} finally {
|
|
31
|
-
|
|
31
|
+
s(c, !1);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var D = {
|
|
35
35
|
get config() {
|
|
36
|
-
return
|
|
36
|
+
return A();
|
|
37
37
|
},
|
|
38
|
-
set config(
|
|
39
|
-
|
|
38
|
+
set config(a) {
|
|
39
|
+
A(a), le();
|
|
40
40
|
}
|
|
41
|
-
}, C =
|
|
41
|
+
}, C = fe(), E = l(C), j = i(l(E), 2);
|
|
42
42
|
{
|
|
43
|
-
var
|
|
44
|
-
var e =
|
|
45
|
-
|
|
43
|
+
var H = (a) => {
|
|
44
|
+
var e = de(), r = i(l(e));
|
|
45
|
+
n(e), h(() => O(r, ` ${t(f) ?? ""}`)), u(a, e);
|
|
46
46
|
};
|
|
47
|
-
y(
|
|
48
|
-
|
|
47
|
+
y(j, (a) => {
|
|
48
|
+
t(f) && a(H);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var M = i(j, 2);
|
|
52
52
|
{
|
|
53
|
-
var
|
|
54
|
-
var e =
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
var K = (a) => {
|
|
54
|
+
var e = ue(), r = i(l(e));
|
|
55
|
+
n(e), h(() => O(r, ` ${t(b) ?? ""}`)), u(a, e);
|
|
56
|
+
};
|
|
57
|
+
y(M, (a) => {
|
|
58
|
+
t(b) && a(K);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
var R = i(M, 2), J = l(R), L = l(J), S = l(L), z = i(l(S), 2);
|
|
62
|
+
k(z), n(S);
|
|
63
|
+
var N = i(S, 2);
|
|
64
|
+
{
|
|
65
|
+
var Q = (a) => {
|
|
66
|
+
var e = ve(), r = i(l(e), 2);
|
|
67
|
+
k(r), n(e), h(() => r.disabled = t(c)), B(r, () => t(q), (o) => s(q, o)), u(a, e);
|
|
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);
|
|
71
|
+
};
|
|
72
|
+
y(N, (a) => {
|
|
73
|
+
t(x) ? a(Q) : t(m) && a(Y, 1);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
var F = i(N, 2);
|
|
77
|
+
return te(F, {
|
|
78
|
+
type: "submit",
|
|
79
|
+
variant: "primary",
|
|
80
|
+
size: "large",
|
|
81
|
+
block: !0,
|
|
82
|
+
get disabled() {
|
|
83
|
+
return t(c);
|
|
84
|
+
},
|
|
85
|
+
children: (a, e) => {
|
|
86
|
+
var r = re(), o = se(r);
|
|
60
87
|
{
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
|
|
88
|
+
var G = (d) => {
|
|
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);
|
|
64
97
|
};
|
|
65
|
-
y(
|
|
66
|
-
|
|
98
|
+
y(o, (d) => {
|
|
99
|
+
t(c) ? d(G) : t(m) ? d(I, 1) : d(V, -1);
|
|
67
100
|
});
|
|
68
101
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
size: "large",
|
|
74
|
-
block: !0,
|
|
75
|
-
get disabled() {
|
|
76
|
-
return a(c);
|
|
77
|
-
},
|
|
78
|
-
children: (v, b) => {
|
|
79
|
-
var f = re(), k = se(f);
|
|
80
|
-
{
|
|
81
|
-
var F = (h) => {
|
|
82
|
-
var z = J("Please wait...");
|
|
83
|
-
n(h, z);
|
|
84
|
-
}, G = (h) => {
|
|
85
|
-
var z = J("Continue");
|
|
86
|
-
n(h, z);
|
|
87
|
-
};
|
|
88
|
-
y(k, (h) => {
|
|
89
|
-
a(c) ? h(F) : h(G, -1);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
n(v, f);
|
|
93
|
-
},
|
|
94
|
-
$$slots: { default: !0 }
|
|
95
|
-
}), i(s), i(d), i(e), q(() => L.disabled = a(c) || a(w)), oe("submit", s, O), N(L, () => a(x), (v) => r(x, v)), n(t, e);
|
|
96
|
-
};
|
|
97
|
-
y(D, (t) => {
|
|
98
|
-
a(_) ? t(H) : t(K, -1);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
return i(Z), i(C), n(p, C), ee(U);
|
|
102
|
+
u(a, r);
|
|
103
|
+
},
|
|
104
|
+
$$slots: { default: !0 }
|
|
105
|
+
}), n(L), n(J), n(R), n(E), n(C), h(() => z.disabled = t(c) || t(x) || t(m)), oe("submit", L, U), B(z, () => t(_), (a) => s(_, a)), u(w, C), ie(D);
|
|
102
106
|
}
|
|
103
|
-
customElements.define("hintergrund-login",
|
|
107
|
+
customElements.define("hintergrund-login", W(pe, { config: {} }, [], []));
|
|
104
108
|
export {
|
|
105
|
-
|
|
109
|
+
pe as default
|
|
106
110
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as Cn, h as Vu, e as Gu, f as Ju } from "./Builder-
|
|
1
|
+
import { d as Cn, h as Vu, e as Gu, f as Ju } from "./Builder-BhGmzNTC.js";
|
|
2
2
|
import { s as Bu } from "./hash-DFlR084x.js";
|
|
3
|
-
import { p as Ir } from "./json-parse-
|
|
3
|
+
import { p as Ir } from "./json-parse-Dk_xwHcS.js";
|
|
4
4
|
import { b as Yu, t as Qu, s as We } from "./transform-messages-CkpQp6fJ.js";
|
|
5
5
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
|
|
6
6
|
return Promise.resolve().then(e);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as P, h as Z, e as ee } from "./Builder-
|
|
1
|
+
import { d as P, h as Z, e as ee } from "./Builder-BhGmzNTC.js";
|
|
2
2
|
import { h as N } from "./headers-u7rXGJ9f.js";
|
|
3
|
-
import { c as $, a as te, p as F } from "./openai-responses-shared-
|
|
3
|
+
import { c as $, a as te, p as F } from "./openai-responses-shared-CCD7nRqy.js";
|
|
4
4
|
import { b as re } from "./transform-messages-CkpQp6fJ.js";
|
|
5
5
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
|
|
6
6
|
return Promise.resolve().then(e);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { O as H } from "./client-Sh7wNjbG.js";
|
|
2
|
-
import { d as F, h as j, e as G, f as $ } from "./Builder-
|
|
2
|
+
import { d as F, h as j, e as G, f as $ } from "./Builder-BhGmzNTC.js";
|
|
3
3
|
import { h as W } from "./headers-u7rXGJ9f.js";
|
|
4
|
-
import { p as q } from "./json-parse-
|
|
4
|
+
import { p as q } from "./json-parse-Dk_xwHcS.js";
|
|
5
5
|
import { b as J, t as K, s as A } from "./transform-messages-CkpQp6fJ.js";
|
|
6
6
|
import { h as Y, b as V, i as Z, r as Q } from "./github-copilot-headers-DWh_6bE3.js";
|
|
7
7
|
typeof globalThis.process > "u" && (globalThis.process = { env: {}, platform: "browser", version: "", versions: {}, browser: !0, nextTick: function(e) {
|