@leverege/imaginarium-ui 1.11.0 → 1.11.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/lib/{ImaginariumApp-BJeKGXV9.js → ImaginariumApp-BN6yQvK6.js} +105 -105
- package/lib/{ImaginariumApp-BJeKGXV9.js.map → ImaginariumApp-BN6yQvK6.js.map} +1 -1
- package/lib/{ImaginariumApp-GPClA1pr.cjs → ImaginariumApp-Cp4d2CxZ.cjs} +2 -2
- package/lib/{ImaginariumApp-GPClA1pr.cjs.map → ImaginariumApp-Cp4d2CxZ.cjs.map} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.js +2 -2
- package/lib/shell/ImaginariumApp.d.ts.map +1 -1
- package/lib/shell.cjs +1 -1
- package/lib/shell.js +1 -1
- package/lib/theme/index.css +1 -0
- package/package.json +3 -3
- package/src/shell/ImaginariumApp.tsx +8 -1
|
@@ -17,34 +17,34 @@ const E = Y({
|
|
|
17
17
|
setTabMarkdown: () => {
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
function Ee({ children:
|
|
21
|
-
const [
|
|
22
|
-
return /* @__PURE__ */ r(E.Provider, { value: { tabMarkdown:
|
|
20
|
+
function Ee({ children: t }) {
|
|
21
|
+
const [e, n] = N(null);
|
|
22
|
+
return /* @__PURE__ */ r(E.Provider, { value: { tabMarkdown: e, setTabMarkdown: n }, children: t });
|
|
23
23
|
}
|
|
24
|
-
function xt(
|
|
25
|
-
const { setTabMarkdown:
|
|
26
|
-
w(() => (t
|
|
27
|
-
|
|
28
|
-
}), [
|
|
24
|
+
function xt(t) {
|
|
25
|
+
const { setTabMarkdown: e } = z(E);
|
|
26
|
+
w(() => (e(t), () => {
|
|
27
|
+
e(null);
|
|
28
|
+
}), [t, e]);
|
|
29
29
|
}
|
|
30
30
|
function Pe() {
|
|
31
31
|
return z(E).tabMarkdown;
|
|
32
32
|
}
|
|
33
|
-
const j = (
|
|
33
|
+
const j = (t) => d(
|
|
34
34
|
"flex items-center gap-1.5 rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",
|
|
35
|
-
|
|
35
|
+
t ? "border-primary/50 bg-primary/10 text-primary" : "border-border bg-card text-muted-foreground hover:border-primary/30 hover:text-foreground"
|
|
36
36
|
), L = () => /* @__PURE__ */ r("span", { className: "flex h-3.5 w-3.5 items-center justify-center rounded-full border border-current text-[9px] font-bold leading-none", children: "i" });
|
|
37
|
-
function B({ href:
|
|
38
|
-
return
|
|
37
|
+
function B({ href: t, open: e = !1, onToggle: n }) {
|
|
38
|
+
return t != null ? /* @__PURE__ */ r("div", { children: /* @__PURE__ */ s("a", { href: t, target: "_blank", rel: "noopener noreferrer", className: j(!1), children: [
|
|
39
39
|
/* @__PURE__ */ r(L, {}),
|
|
40
40
|
"Docs"
|
|
41
|
-
] }) }) : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ s("button", { onClick: n, className: j(
|
|
41
|
+
] }) }) : /* @__PURE__ */ r("div", { children: /* @__PURE__ */ s("button", { onClick: n, className: j(e), children: [
|
|
42
42
|
/* @__PURE__ */ r(L, {}),
|
|
43
43
|
"Docs"
|
|
44
44
|
] }) });
|
|
45
45
|
}
|
|
46
|
-
function Re({ pageDocs:
|
|
47
|
-
const a =
|
|
46
|
+
function Re({ pageDocs: t, tabMarkdown: e, onClose: n }) {
|
|
47
|
+
const a = t.path.replace(/^\//, "") || "docs", o = t.component;
|
|
48
48
|
return /* @__PURE__ */ s("aside", { className: "absolute right-0 top-0 bottom-0 z-20 w-[26rem] border-l border-border bg-card flex flex-col overflow-hidden shadow-xl", children: [
|
|
49
49
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between px-4 py-3 border-b border-border", children: [
|
|
50
50
|
/* @__PURE__ */ r("span", { className: "text-sm font-semibold text-foreground", children: a }),
|
|
@@ -59,22 +59,22 @@ function Re({ pageDocs: e, tabMarkdown: t, onClose: n }) {
|
|
|
59
59
|
)
|
|
60
60
|
] }),
|
|
61
61
|
/* @__PURE__ */ s("div", { className: "flex-1 overflow-y-auto px-4 py-4", children: [
|
|
62
|
-
|
|
63
|
-
/* @__PURE__ */ r(se, { components: ie, children:
|
|
62
|
+
e != null && /* @__PURE__ */ s(k, { children: [
|
|
63
|
+
/* @__PURE__ */ r(se, { components: ie, children: e }),
|
|
64
64
|
/* @__PURE__ */ r("hr", { className: "border-border my-3" })
|
|
65
65
|
] }),
|
|
66
66
|
o != null && /* @__PURE__ */ r(o, {})
|
|
67
67
|
] })
|
|
68
68
|
] });
|
|
69
69
|
}
|
|
70
|
-
function De(
|
|
71
|
-
const { element:
|
|
72
|
-
return X(
|
|
70
|
+
function De(t) {
|
|
71
|
+
const { element: e } = t;
|
|
72
|
+
return X(e) ? e : typeof e == "function" ? F(e) : e;
|
|
73
73
|
}
|
|
74
|
-
function _e({ fallback:
|
|
75
|
-
return /* @__PURE__ */ r(Ee, { children: /* @__PURE__ */ r(Me, { fallback:
|
|
74
|
+
function _e({ fallback: t, children: e }) {
|
|
75
|
+
return /* @__PURE__ */ r(Ee, { children: /* @__PURE__ */ r(Me, { fallback: t, children: e }) });
|
|
76
76
|
}
|
|
77
|
-
function Me({ fallback:
|
|
77
|
+
function Me({ fallback: t, children: e }) {
|
|
78
78
|
const n = ye(), [a, o] = N(!1), [c] = Q(), i = Ne(c);
|
|
79
79
|
w(() => {
|
|
80
80
|
o(!1);
|
|
@@ -84,10 +84,10 @@ function Me({ fallback: e, children: t }) {
|
|
|
84
84
|
/* @__PURE__ */ s("main", { className: "relative flex-1 overflow-y-auto", children: [
|
|
85
85
|
i != null && /* @__PURE__ */ r("div", { className: "flex justify-end px-6 pt-4", children: i.href != null ? /* @__PURE__ */ r(B, { href: i.href }) : /* @__PURE__ */ r(B, { open: a, onToggle: () => o((m) => !m) }) }),
|
|
86
86
|
/* @__PURE__ */ s("div", { className: "px-6 pb-6 pt-4", children: [
|
|
87
|
-
|
|
87
|
+
e,
|
|
88
88
|
/* @__PURE__ */ s(ke, { children: [
|
|
89
89
|
n.map((m) => /* @__PURE__ */ r(_, { path: m.path, children: De(m) }, m.path)),
|
|
90
|
-
/* @__PURE__ */ r(_, { children:
|
|
90
|
+
/* @__PURE__ */ r(_, { children: t ?? /* @__PURE__ */ r("div", { className: "p-8 text-muted-foreground", children: "Not found" }) })
|
|
91
91
|
] })
|
|
92
92
|
] })
|
|
93
93
|
] }),
|
|
@@ -101,11 +101,11 @@ function Me({ fallback: e, children: t }) {
|
|
|
101
101
|
)
|
|
102
102
|
] });
|
|
103
103
|
}
|
|
104
|
-
function je(
|
|
105
|
-
const
|
|
106
|
-
for (const o of
|
|
104
|
+
function je(t) {
|
|
105
|
+
const e = [], n = /* @__PURE__ */ new Map();
|
|
106
|
+
for (const o of t) {
|
|
107
107
|
if (!o.section) {
|
|
108
|
-
|
|
108
|
+
e.push(o);
|
|
109
109
|
continue;
|
|
110
110
|
}
|
|
111
111
|
n.has(o.section) || n.set(o.section, {
|
|
@@ -114,40 +114,40 @@ function je(e) {
|
|
|
114
114
|
items: []
|
|
115
115
|
}), n.get(o.section).items.push(o);
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
e.sort((o, c) => (o.sort ?? 0) - (c.sort ?? 0));
|
|
118
118
|
const a = Array.from(n.values());
|
|
119
119
|
for (const o of a)
|
|
120
120
|
o.items.sort((c, i) => (c.sort ?? 0) - (i.sort ?? 0));
|
|
121
121
|
return a.sort((o, c) => {
|
|
122
122
|
const i = o.sectionSort - c.sectionSort;
|
|
123
123
|
return i !== 0 ? i : o.label.localeCompare(c.label);
|
|
124
|
-
}), { ungrouped:
|
|
124
|
+
}), { ungrouped: e, sections: a };
|
|
125
125
|
}
|
|
126
126
|
const O = "imaginarium.ui.sidebar.collapsed", V = "imaginarium.ui.sidebar.sections";
|
|
127
|
-
function Le(
|
|
127
|
+
function Le(t, e) {
|
|
128
128
|
try {
|
|
129
|
-
const n = localStorage.getItem(
|
|
130
|
-
return n === null ?
|
|
129
|
+
const n = localStorage.getItem(t);
|
|
130
|
+
return n === null ? e : n === "true";
|
|
131
131
|
} catch {
|
|
132
|
-
return
|
|
132
|
+
return e;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
function Be() {
|
|
136
136
|
try {
|
|
137
|
-
const
|
|
138
|
-
if (!
|
|
137
|
+
const t = localStorage.getItem(V);
|
|
138
|
+
if (!t)
|
|
139
139
|
return /* @__PURE__ */ new Set();
|
|
140
|
-
const
|
|
141
|
-
return new Set(Array.isArray(
|
|
140
|
+
const e = JSON.parse(t);
|
|
141
|
+
return new Set(Array.isArray(e) ? e : []);
|
|
142
142
|
} catch {
|
|
143
143
|
return /* @__PURE__ */ new Set();
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
const Oe = /^(https?:|data:|blob:|\/|\.\/|\.\.\/)/;
|
|
147
|
-
function Ue(
|
|
148
|
-
return
|
|
147
|
+
function Ue(t, e) {
|
|
148
|
+
return t ? typeof t == "string" ? Oe.test(t) ? /* @__PURE__ */ r("img", { src: t, alt: "", className: e }) : /* @__PURE__ */ r("span", { className: `${t} ${e}`, "aria-hidden": "true" }) : /* @__PURE__ */ r(t, { className: e }) : null;
|
|
149
149
|
}
|
|
150
|
-
function ze({ title:
|
|
150
|
+
function ze({ title: t = "Imaginarium", titleIcon: e, rightSlot: n }) {
|
|
151
151
|
const [a] = Q(), [o, c] = N(() => Le(O, !1)), [i, p] = N(Be);
|
|
152
152
|
w(() => {
|
|
153
153
|
try {
|
|
@@ -175,8 +175,8 @@ function ze({ title: e = "Imaginarium", titleIcon: t, rightSlot: n }) {
|
|
|
175
175
|
),
|
|
176
176
|
children: [
|
|
177
177
|
/* @__PURE__ */ s("div", { className: "flex h-[52px] flex-shrink-0 items-center border-b px-2.5 gap-2", children: [
|
|
178
|
-
!o && Ue(
|
|
179
|
-
!o && /* @__PURE__ */ r("span", { className: "flex-1 truncate text-sm font-semibold", children:
|
|
178
|
+
!o && Ue(e, "h-6 w-6"),
|
|
179
|
+
!o && /* @__PURE__ */ r("span", { className: "flex-1 truncate text-sm font-semibold", children: t }),
|
|
180
180
|
/* @__PURE__ */ r(
|
|
181
181
|
"button",
|
|
182
182
|
{
|
|
@@ -292,15 +292,15 @@ function ze({ title: e = "Imaginarium", titleIcon: t, rightSlot: n }) {
|
|
|
292
292
|
}
|
|
293
293
|
);
|
|
294
294
|
}
|
|
295
|
-
const Fe = u.Provider, $ = v.forwardRef(({ className:
|
|
295
|
+
const Fe = u.Provider, $ = v.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ r(
|
|
296
296
|
u.Viewport,
|
|
297
297
|
{
|
|
298
298
|
ref: n,
|
|
299
299
|
className: d(
|
|
300
300
|
"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
|
|
301
|
-
|
|
301
|
+
t
|
|
302
302
|
),
|
|
303
|
-
...
|
|
303
|
+
...e
|
|
304
304
|
}
|
|
305
305
|
));
|
|
306
306
|
$.displayName = u.Viewport.displayName;
|
|
@@ -315,61 +315,61 @@ const Qe = xe(
|
|
|
315
315
|
},
|
|
316
316
|
defaultVariants: { variant: "default" }
|
|
317
317
|
}
|
|
318
|
-
), q = v.forwardRef(({ className:
|
|
318
|
+
), q = v.forwardRef(({ className: t, variant: e, ...n }, a) => /* @__PURE__ */ r(u.Root, { ref: a, className: d(Qe({ variant: e }), t), ...n }));
|
|
319
319
|
q.displayName = u.Root.displayName;
|
|
320
|
-
const Ve = v.forwardRef(({ className:
|
|
320
|
+
const Ve = v.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ r(
|
|
321
321
|
u.Action,
|
|
322
322
|
{
|
|
323
323
|
ref: n,
|
|
324
324
|
className: d(
|
|
325
325
|
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
326
|
-
|
|
326
|
+
t
|
|
327
327
|
),
|
|
328
|
-
...
|
|
328
|
+
...e
|
|
329
329
|
}
|
|
330
330
|
));
|
|
331
331
|
Ve.displayName = u.Action.displayName;
|
|
332
|
-
const G = v.forwardRef(({ className:
|
|
332
|
+
const G = v.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ r(
|
|
333
333
|
u.Close,
|
|
334
334
|
{
|
|
335
335
|
ref: n,
|
|
336
336
|
className: d(
|
|
337
337
|
"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100",
|
|
338
|
-
|
|
338
|
+
t
|
|
339
339
|
),
|
|
340
340
|
"toast-close": "",
|
|
341
|
-
...
|
|
341
|
+
...e,
|
|
342
342
|
children: /* @__PURE__ */ r(we, { className: "h-4 w-4" })
|
|
343
343
|
}
|
|
344
344
|
));
|
|
345
345
|
G.displayName = u.Close.displayName;
|
|
346
|
-
const H = v.forwardRef(({ className:
|
|
346
|
+
const H = v.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ r(u.Title, { ref: n, className: d("text-sm font-semibold", t), ...e }));
|
|
347
347
|
H.displayName = u.Title.displayName;
|
|
348
|
-
const W = v.forwardRef(({ className:
|
|
348
|
+
const W = v.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ r(u.Description, { ref: n, className: d("text-sm opacity-90", t), ...e }));
|
|
349
349
|
W.displayName = u.Description.displayName;
|
|
350
350
|
function $e() {
|
|
351
|
-
const { toasts:
|
|
351
|
+
const { toasts: t } = ce();
|
|
352
352
|
return /* @__PURE__ */ s(Fe, { children: [
|
|
353
|
-
|
|
353
|
+
t.map(({ id: e, title: n, description: a, action: o, ...c }) => /* @__PURE__ */ s(q, { ...c, children: [
|
|
354
354
|
/* @__PURE__ */ s("div", { className: "grid gap-1", children: [
|
|
355
355
|
n && /* @__PURE__ */ r(H, { children: n }),
|
|
356
356
|
a && /* @__PURE__ */ r(W, { children: a })
|
|
357
357
|
] }),
|
|
358
358
|
o,
|
|
359
359
|
/* @__PURE__ */ r(G, {})
|
|
360
|
-
] },
|
|
360
|
+
] }, e)),
|
|
361
361
|
/* @__PURE__ */ r($, {})
|
|
362
362
|
] });
|
|
363
363
|
}
|
|
364
364
|
const A = ["imaginarium", "auth", "user"];
|
|
365
|
-
function qe(
|
|
366
|
-
return !((
|
|
365
|
+
function qe(t, e) {
|
|
366
|
+
return !((t == null ? void 0 : t.status) !== 401 || e && e[0] === A[0] && e[1] === A[1]);
|
|
367
367
|
}
|
|
368
|
-
function U(
|
|
369
|
-
qe(
|
|
368
|
+
function U(t, e, n) {
|
|
369
|
+
qe(t, n) && e.invalidateQueries({ queryKey: [...A] });
|
|
370
370
|
}
|
|
371
|
-
function Ge({ className:
|
|
372
|
-
return /* @__PURE__ */ s("svg", { viewBox: "0 0 24 24", className:
|
|
371
|
+
function Ge({ className: t }) {
|
|
372
|
+
return /* @__PURE__ */ s("svg", { viewBox: "0 0 24 24", className: t, "aria-hidden": "true", children: [
|
|
373
373
|
/* @__PURE__ */ r("path", { fill: "#4285F4", d: "M23.49 12.27c0-.79-.07-1.54-.19-2.27H12v4.51h6.16c-.27 1.4-1.04 2.59-2.21 3.41v2.77h3.59c2.08-1.92 3.95-4.74 3.95-8.42z" }),
|
|
374
374
|
/* @__PURE__ */ r("path", { fill: "#34A853", d: "M12 24c2.97 0 5.46-.98 7.28-2.66l-3.59-2.77c-.98.66-2.23 1.06-3.69 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 21.53 7.7 24 12 24z" }),
|
|
375
375
|
/* @__PURE__ */ r("path", { fill: "#FBBC05", d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" }),
|
|
@@ -382,13 +382,13 @@ const He = {
|
|
|
382
382
|
function We() {
|
|
383
383
|
if (typeof window > "u")
|
|
384
384
|
return;
|
|
385
|
-
const
|
|
386
|
-
if (
|
|
387
|
-
return He[
|
|
385
|
+
const t = new URLSearchParams(window.location.search).get("error");
|
|
386
|
+
if (t)
|
|
387
|
+
return He[t] ?? `Sign-in error: ${t}`;
|
|
388
388
|
}
|
|
389
389
|
function Ke({
|
|
390
|
-
loginPath:
|
|
391
|
-
title:
|
|
390
|
+
loginPath: t,
|
|
391
|
+
title: e = "Sign in",
|
|
392
392
|
subtitle: n,
|
|
393
393
|
buttonLabel: a = "Sign in with Google",
|
|
394
394
|
backgroundUrl: o,
|
|
@@ -402,7 +402,7 @@ function Ke({
|
|
|
402
402
|
style: p ? { backgroundImage: `url(${o})` } : void 0,
|
|
403
403
|
children: /* @__PURE__ */ s(le, { className: `w-full max-w-md ${p ? "backdrop-blur-sm bg-card/90" : ""}`, children: [
|
|
404
404
|
/* @__PURE__ */ s(de, { className: "text-center", children: [
|
|
405
|
-
/* @__PURE__ */ r(ue, { children:
|
|
405
|
+
/* @__PURE__ */ r(ue, { children: e }),
|
|
406
406
|
n && /* @__PURE__ */ r(me, { children: n })
|
|
407
407
|
] }),
|
|
408
408
|
/* @__PURE__ */ s(fe, { className: "space-y-4", children: [
|
|
@@ -413,7 +413,7 @@ function Ke({
|
|
|
413
413
|
className: "w-full",
|
|
414
414
|
variant: "outline",
|
|
415
415
|
onClick: () => {
|
|
416
|
-
window.location.href =
|
|
416
|
+
window.location.href = t;
|
|
417
417
|
},
|
|
418
418
|
children: [
|
|
419
419
|
/* @__PURE__ */ r(Ge, { className: "h-5 w-5 mr-2" }),
|
|
@@ -426,10 +426,10 @@ function Ke({
|
|
|
426
426
|
}
|
|
427
427
|
);
|
|
428
428
|
}
|
|
429
|
-
function Je({ children:
|
|
430
|
-
const { fetchJson:
|
|
429
|
+
function Je({ children: t }) {
|
|
430
|
+
const { fetchJson: e } = ge(), n = f.get("ImaginariumApp", "userPath", "/auth/user"), { isPending: a, isError: o } = ee({
|
|
431
431
|
queryKey: [...A, n],
|
|
432
|
-
queryFn: () =>
|
|
432
|
+
queryFn: () => e(n),
|
|
433
433
|
retry: !1,
|
|
434
434
|
refetchOnWindowFocus: !1
|
|
435
435
|
});
|
|
@@ -457,77 +457,77 @@ function Je({ children: e }) {
|
|
|
457
457
|
backgroundUrl: x
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
|
-
return /* @__PURE__ */ r(k, { children:
|
|
460
|
+
return /* @__PURE__ */ r(k, { children: t });
|
|
461
461
|
}
|
|
462
462
|
const Ye = {
|
|
463
|
-
props: (
|
|
464
|
-
classes: (...
|
|
465
|
-
subclasses: (...
|
|
463
|
+
props: (t, e, n) => e && typeof e == "object" ? e : n && typeof n == "object" ? n : {},
|
|
464
|
+
classes: (...t) => t.filter((e) => typeof e == "string" && e).join(" "),
|
|
465
|
+
subclasses: (...t) => t.filter((e) => typeof e == "string" && e).join(" "),
|
|
466
466
|
resources: () => {
|
|
467
467
|
}
|
|
468
468
|
};
|
|
469
469
|
function K() {
|
|
470
|
-
const
|
|
471
|
-
return
|
|
470
|
+
const t = globalThis;
|
|
471
|
+
return t.__imgmActiveTheme || (t.__imgmActiveTheme = new Ie({ altTheme: Ye, addWindowCommands: !1 })), t.__imgmActiveTheme;
|
|
472
472
|
}
|
|
473
|
-
function Xe(
|
|
474
|
-
var
|
|
475
|
-
(n = (
|
|
473
|
+
function Xe(t) {
|
|
474
|
+
var e, n;
|
|
475
|
+
(n = (e = K().sync) == null ? void 0 : e.start) == null || n.call(e, { appearanceId: t || void 0 });
|
|
476
476
|
}
|
|
477
477
|
const vt = "39oo5B3KISUzzfa1gT1Va1";
|
|
478
478
|
let I = "";
|
|
479
479
|
function bt() {
|
|
480
480
|
return I;
|
|
481
481
|
}
|
|
482
|
-
function Ze(
|
|
483
|
-
I =
|
|
482
|
+
function Ze(t) {
|
|
483
|
+
I = t || "", Xe(I);
|
|
484
484
|
}
|
|
485
|
-
function et({ children:
|
|
486
|
-
const
|
|
485
|
+
function et({ children: t }) {
|
|
486
|
+
const e = f.get("ImaginariumApp", "appearanceId", "");
|
|
487
487
|
return w(() => {
|
|
488
|
-
Ze(
|
|
489
|
-
}, [
|
|
488
|
+
e && Ze(e);
|
|
489
|
+
}, [e]), e ? /* @__PURE__ */ r(Te, { theme: K(), children: t }) : /* @__PURE__ */ r(k, { children: t });
|
|
490
490
|
}
|
|
491
|
-
function tt(
|
|
492
|
-
const
|
|
493
|
-
let n =
|
|
494
|
-
for (const { component: a } of
|
|
491
|
+
function tt(t) {
|
|
492
|
+
const e = Se();
|
|
493
|
+
let n = t;
|
|
494
|
+
for (const { component: a } of e)
|
|
495
495
|
n = /* @__PURE__ */ r(a, { children: n });
|
|
496
496
|
return n;
|
|
497
497
|
}
|
|
498
498
|
function rt() {
|
|
499
|
-
const
|
|
499
|
+
const t = new te({
|
|
500
500
|
queryCache: new ne({
|
|
501
|
-
onError: (
|
|
501
|
+
onError: (e, n) => U(e, t, n.queryKey)
|
|
502
502
|
}),
|
|
503
503
|
mutationCache: new re({
|
|
504
|
-
onError: (
|
|
504
|
+
onError: (e) => U(e, t)
|
|
505
505
|
}),
|
|
506
506
|
defaultOptions: {
|
|
507
507
|
queries: { retry: !1, refetchOnWindowFocus: !1 }
|
|
508
508
|
}
|
|
509
509
|
});
|
|
510
|
-
return
|
|
510
|
+
return t;
|
|
511
511
|
}
|
|
512
512
|
const nt = rt();
|
|
513
|
-
function ot({ title:
|
|
513
|
+
function ot({ title: t, titleIcon: e, navRightSlot: n, shellFallback: a, children: o }) {
|
|
514
514
|
return tt(
|
|
515
515
|
/* @__PURE__ */ s("div", { className: "flex h-screen overflow-hidden bg-background text-foreground", children: [
|
|
516
|
-
/* @__PURE__ */ r(ze, { title:
|
|
516
|
+
/* @__PURE__ */ r(ze, { title: t, titleIcon: e, rightSlot: n }),
|
|
517
517
|
/* @__PURE__ */ r(_e, { fallback: a, children: o })
|
|
518
518
|
] })
|
|
519
519
|
);
|
|
520
520
|
}
|
|
521
521
|
function wt({
|
|
522
|
-
apiBaseUrl:
|
|
523
|
-
queryClient:
|
|
522
|
+
apiBaseUrl: t = "/api",
|
|
523
|
+
queryClient: e,
|
|
524
524
|
title: n,
|
|
525
525
|
titleIcon: a,
|
|
526
526
|
navRightSlot: o,
|
|
527
527
|
shellFallback: c,
|
|
528
528
|
children: i
|
|
529
529
|
}) {
|
|
530
|
-
const p = Z(() =>
|
|
530
|
+
const p = Z(() => e ?? nt, [e]), m = f.get("ImaginariumApp", "requireAuth", !0), b = a ?? f.get("ImaginariumApp", "titleIcon", void 0), x = /* @__PURE__ */ r(
|
|
531
531
|
ot,
|
|
532
532
|
{
|
|
533
533
|
title: n,
|
|
@@ -537,7 +537,7 @@ function wt({
|
|
|
537
537
|
children: i
|
|
538
538
|
}
|
|
539
539
|
);
|
|
540
|
-
return /* @__PURE__ */ r(et, { children: /* @__PURE__ */ r(oe, { client: p, children: /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ s(he, { apiBaseUrl:
|
|
540
|
+
return /* @__PURE__ */ r(et, { children: /* @__PURE__ */ r(oe, { client: p, children: /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ s(he, { apiBaseUrl: t, children: [
|
|
541
541
|
m ? /* @__PURE__ */ r(Je, { children: x }) : x,
|
|
542
542
|
/* @__PURE__ */ r($e, {})
|
|
543
543
|
] }) }) }) });
|
|
@@ -563,4 +563,4 @@ export {
|
|
|
563
563
|
Ze as s,
|
|
564
564
|
xt as u
|
|
565
565
|
};
|
|
566
|
-
//# sourceMappingURL=ImaginariumApp-
|
|
566
|
+
//# sourceMappingURL=ImaginariumApp-BN6yQvK6.js.map
|