@versini/sassysaint 8.45.6 → 8.47.0
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/chunks/{AboutChangelog.LWPPo7H9.js → AboutChangelog.BEFkfDbw.js} +2 -2
- package/dist/chunks/{AboutEntry.BFBDyy6h.js → AboutEntry.COf0szTU.js} +7 -7
- package/dist/chunks/{App.Cwzj_7TG.js → App.D5cZDwje.js} +3282 -4188
- package/dist/chunks/{Chart.BxV8to7Z.js → Chart.B1R22nbJ.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.Bp18OzE9.js → ChatBubbleAssistant.B9tlf_JH.js} +10 -10
- package/dist/chunks/{ChatHistoryTable.BVjiHyBX.js → ChatHistoryTable.CJfAtX8B.js} +25 -25
- package/dist/chunks/{HistoryEntry.C16tGap4.js → HistoryEntry.BbDPEPVY.js} +31 -31
- package/dist/chunks/{LNWAZHJI.CED6wpxJ.js → LNWAZHJI.C8sP3-rc.js} +1 -1
- package/dist/chunks/{ProfileEntry.DsI-YgqO.js → ProfileEntry.BUTgNPlp.js} +2 -2
- package/dist/chunks/{SettingsEntry.CIijARba.js → SettingsEntry.DGB3xOzh.js} +316 -311
- package/dist/chunks/{UsageEntry.DrEbNjpo.js → UsageEntry.Bu5CcqG2.js} +8 -8
- package/dist/chunks/{index.C_uGQmmV.js → index.BIMh7ysv.js} +1 -1
- package/dist/chunks/{index.Des5u3uL.js → index.BqV1_7Z2.js} +3 -3
- package/dist/chunks/{index.BFk_wbyz.js → index.Cfb0MIIn.js} +1 -1
- package/dist/chunks/{index.BHaXd0Ws.js → index.D9C8rL2L.js} +1 -1
- package/dist/chunks/{index.LWF-Ggi7.js → index.DHJP8zY7.js} +1 -1
- package/dist/chunks/{index.CvSvQRF0.js → index.DzixovoY.js} +2 -2
- package/dist/chunks/{index.Ddqbg8Ks.js → index.yZ_0qNLI.js} +2985 -2108
- package/dist/chunks/{useMarkdown.CR3mLjmN.js → useMarkdown.BNxkjyeo.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
@@ -1,40 +1,40 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { o as
|
3
|
-
import {
|
4
|
-
import
|
1
|
+
import { jsxs as m, jsx as a, Fragment as pe } from "react/jsx-runtime";
|
2
|
+
import { o as ge, h as ie, i as ye, x as be, useEntitlements as xe, n as ke, useUserPreferences as we, getCacheInfo as Ee, isServiceWorkerEnabled as Ne, SETTINGS_TITLE as Te, S as V, CARDS as R, de as ve, C as se, PROMPTS_DESCRIPTION as Se, L as Ce, j as de, fe as Ie, getCurrentGeoLocation as _e, mutateCall as ue, handleServiceWorkerToggle as Le, SERVICE_TYPES as me } from "./index.yZ_0qNLI.js";
|
3
|
+
import { se as Me } from "./App.D5cZDwje.js";
|
4
|
+
import Oe, { useState as f, useEffect as ne, useRef as W, useLayoutEffect as Y, useCallback as Pe } from "react";
|
5
5
|
import c from "clsx";
|
6
|
-
function
|
6
|
+
function Ae({
|
7
7
|
value: e,
|
8
8
|
defaultValue: s,
|
9
9
|
finalValue: o,
|
10
10
|
onChange: l = () => {
|
11
11
|
},
|
12
|
-
initialControlledDelay:
|
12
|
+
initialControlledDelay: t = 0
|
13
13
|
}) {
|
14
|
-
const [n,
|
14
|
+
const [n, d] = f(!1), [h, x] = f(
|
15
15
|
s !== void 0 ? s : o
|
16
|
-
), k = (
|
17
|
-
x(
|
16
|
+
), k = (u) => {
|
17
|
+
x(u), l?.(u);
|
18
18
|
};
|
19
19
|
return ne(() => {
|
20
|
-
(async () => e !== void 0 && !n &&
|
21
|
-
(
|
22
|
-
),
|
23
|
-
}, [e,
|
20
|
+
(async () => e !== void 0 && !n && t > 0 && (await new Promise(
|
21
|
+
(u) => setTimeout(u, t)
|
22
|
+
), d(!0)))();
|
23
|
+
}, [e, t, n]), e !== void 0 ? !n && t > 0 ? ["", l, !0] : [e, l, !0] : [h, k, !1];
|
24
24
|
}
|
25
|
-
const fe = "av-text-area",
|
25
|
+
const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helper-text", Be = "av-text-area__control--right", De = "av-text-area__control--left", Ge = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", He = ({ mode: e }) => c({
|
26
26
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
27
27
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
28
28
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
29
29
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
30
|
-
}),
|
30
|
+
}), Ue = ({
|
31
31
|
focusMode: e
|
32
32
|
}) => c("focus:outline focus:outline-2 focus:outline-offset-2", {
|
33
33
|
"focus:outline-focus-dark": e === "dark",
|
34
34
|
"focus:outline-focus-light": e === "light",
|
35
35
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
36
36
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
37
|
-
}),
|
37
|
+
}), $e = ({
|
38
38
|
noBorder: e,
|
39
39
|
error: s
|
40
40
|
}) => c("border-2", {
|
@@ -42,12 +42,12 @@ const fe = "av-text-area", Pe = "av-text-area-wrapper", le = "av-text-area-helpe
|
|
42
42
|
"focus:border-border-dark": !e && s,
|
43
43
|
"border-border-error-dark": !e && s,
|
44
44
|
"border-transparent": e
|
45
|
-
}),
|
45
|
+
}), Ve = ({
|
46
46
|
disabled: e,
|
47
47
|
raw: s,
|
48
48
|
error: o,
|
49
49
|
mode: l,
|
50
|
-
leftElement:
|
50
|
+
leftElement: t,
|
51
51
|
rightElement: n
|
52
52
|
}) => {
|
53
53
|
if (s)
|
@@ -56,14 +56,14 @@ const fe = "av-text-area", Pe = "av-text-area-wrapper", le = "av-text-area-helpe
|
|
56
56
|
return c(
|
57
57
|
"transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium",
|
58
58
|
{
|
59
|
-
"translate-x-[12px]": n === !0 && !
|
59
|
+
"translate-x-[12px]": n === !0 && !t || !n && !t
|
60
60
|
}
|
61
61
|
);
|
62
62
|
if (!o)
|
63
63
|
return c(
|
64
64
|
"absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
|
65
65
|
{
|
66
|
-
"translate-x-[12px]": n === !0 && !
|
66
|
+
"translate-x-[12px]": n === !0 && !t || !n && !t,
|
67
67
|
"text-copy-medium": l === "dark",
|
68
68
|
"text-copy-dark": l === "light",
|
69
69
|
"text-copy-dark dark:text-copy-medium": l === "system",
|
@@ -74,14 +74,14 @@ const fe = "av-text-area", Pe = "av-text-area-wrapper", le = "av-text-area-helpe
|
|
74
74
|
return c(
|
75
75
|
"absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
|
76
76
|
{
|
77
|
-
"translate-x-[12px]": n === !0 && !
|
77
|
+
"translate-x-[12px]": n === !0 && !t || !n && !t,
|
78
78
|
"text-copy-medium": l === "dark",
|
79
79
|
"text-copy-error-dark": l === "light",
|
80
80
|
"text-copy-error-dark dark:text-copy-error-light": l === "system",
|
81
81
|
"text-copy-medium dark:text-copy-error-dark": l === "alt-system"
|
82
82
|
}
|
83
83
|
);
|
84
|
-
},
|
84
|
+
}, We = ({
|
85
85
|
error: e,
|
86
86
|
raw: s,
|
87
87
|
mode: o,
|
@@ -108,234 +108,234 @@ const fe = "av-text-area", Pe = "av-text-area-wrapper", le = "av-text-area-helpe
|
|
108
108
|
"text-copy-error-dark dark:text-copy-error-light": o === "system",
|
109
109
|
"dark:text-copy-error-dark text-copy-error-light": o === "alt-system"
|
110
110
|
});
|
111
|
-
},
|
111
|
+
}, ze = ({
|
112
112
|
className: e,
|
113
113
|
textAreaClassName: s,
|
114
114
|
raw: o,
|
115
115
|
focusMode: l,
|
116
|
-
disabled:
|
116
|
+
disabled: t,
|
117
117
|
noBorder: n,
|
118
|
-
error:
|
118
|
+
error: d,
|
119
119
|
mode: h,
|
120
120
|
leftElement: x,
|
121
121
|
rightElement: k
|
122
122
|
}) => {
|
123
|
-
const
|
123
|
+
const u = o ? e : c(
|
124
124
|
"relative flex w-full flex-col justify-center",
|
125
|
-
|
125
|
+
Re,
|
126
126
|
e
|
127
|
-
),
|
127
|
+
), v = o ? c(s) : c(
|
128
128
|
fe,
|
129
129
|
s,
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
130
|
+
Ge(),
|
131
|
+
He({ mode: h }),
|
132
|
+
Ue({ focusMode: l }),
|
133
|
+
$e({
|
134
134
|
noBorder: n,
|
135
|
-
error:
|
135
|
+
error: d
|
136
136
|
}),
|
137
137
|
{
|
138
|
-
"disabled:cursor-not-allowed disabled:opacity-50":
|
138
|
+
"disabled:cursor-not-allowed disabled:opacity-50": t
|
139
139
|
}
|
140
|
-
),
|
141
|
-
disabled:
|
140
|
+
), I = o ? void 0 : "sr-only", D = Ve({
|
141
|
+
disabled: t,
|
142
142
|
raw: o,
|
143
|
-
error:
|
143
|
+
error: d,
|
144
144
|
mode: h,
|
145
145
|
rightElement: k,
|
146
146
|
leftElement: x
|
147
|
-
}), y =
|
148
|
-
error:
|
147
|
+
}), y = We({
|
148
|
+
error: d,
|
149
149
|
raw: o,
|
150
150
|
mode: h,
|
151
|
-
disabled:
|
152
|
-
}),
|
151
|
+
disabled: t
|
152
|
+
}), _ = o ? void 0 : c(Be, "absolute"), w = o ? void 0 : c(De, "absolute");
|
153
153
|
return {
|
154
|
-
wrapper:
|
155
|
-
textArea:
|
156
|
-
accessibleLabel:
|
154
|
+
wrapper: u,
|
155
|
+
textArea: v,
|
156
|
+
accessibleLabel: I,
|
157
157
|
visibleLabel: D,
|
158
158
|
helperText: y,
|
159
|
-
rightElement:
|
159
|
+
rightElement: _,
|
160
160
|
leftElement: w
|
161
161
|
};
|
162
|
-
},
|
162
|
+
}, Fe = ({
|
163
163
|
scrollHeight: e,
|
164
164
|
currentHeight: s,
|
165
165
|
currentLabelOffset: o = 0,
|
166
166
|
currentHelperTextOffset: l = 0
|
167
167
|
}) => {
|
168
|
-
let
|
168
|
+
let t, n;
|
169
169
|
if (e > 0 && e !== s) {
|
170
|
-
const
|
171
|
-
|
170
|
+
const d = e - s, h = Math.abs(d / 24);
|
171
|
+
t = o + -1 * Math.sign(d) * (12 * h), n = l + Math.sign(d) * (12 * h);
|
172
172
|
}
|
173
173
|
return {
|
174
|
-
labelOffset:
|
174
|
+
labelOffset: t,
|
175
175
|
helperTextOffset: n,
|
176
176
|
scrollHeight: e
|
177
177
|
};
|
178
|
-
}, ce =
|
178
|
+
}, ce = Oe.forwardRef(
|
179
179
|
({
|
180
180
|
id: e,
|
181
181
|
name: s,
|
182
182
|
label: o,
|
183
183
|
error: l = !1,
|
184
|
-
raw:
|
184
|
+
raw: t = !1,
|
185
185
|
className: n,
|
186
|
-
textAreaClassName:
|
186
|
+
textAreaClassName: d,
|
187
187
|
mode: h = "system",
|
188
188
|
focusMode: x = "system",
|
189
189
|
value: k,
|
190
|
-
defaultValue:
|
191
|
-
disabled:
|
192
|
-
noBorder:
|
190
|
+
defaultValue: u,
|
191
|
+
disabled: v = !1,
|
192
|
+
noBorder: I = !1,
|
193
193
|
labelId: D,
|
194
194
|
helperText: y = "",
|
195
|
-
helperTextOnFocus:
|
195
|
+
helperTextOnFocus: _ = !1,
|
196
196
|
rightElement: w,
|
197
|
-
leftElement:
|
198
|
-
onChange:
|
197
|
+
leftElement: S,
|
198
|
+
onChange: z,
|
199
199
|
onFocus: L,
|
200
|
-
onBlur:
|
201
|
-
...
|
202
|
-
},
|
203
|
-
const p =
|
204
|
-
!!(!
|
205
|
-
),
|
200
|
+
onBlur: F,
|
201
|
+
...G
|
202
|
+
}, X) => {
|
203
|
+
const p = W(null), q = ge([X, p]), [J, M] = ie(), [K, C] = ie(), H = W(80), Q = W(-25), U = W(null), Z = W(30), ee = W(null), O = ye({ id: e, prefix: `${fe}-` }), [te, re] = f(0), [$, ae] = f(0), [r, i] = f(
|
204
|
+
!!(!_ && y)
|
205
|
+
), P = `${s} error, ${y}`, E = ze({
|
206
206
|
className: n,
|
207
|
-
textAreaClassName:
|
207
|
+
textAreaClassName: d,
|
208
208
|
error: l,
|
209
|
-
raw:
|
209
|
+
raw: t,
|
210
210
|
focusMode: x,
|
211
|
-
disabled:
|
212
|
-
noBorder:
|
211
|
+
disabled: v,
|
212
|
+
noBorder: I,
|
213
213
|
mode: h,
|
214
214
|
rightElement: !!w,
|
215
|
-
leftElement: !!
|
216
|
-
}), [
|
215
|
+
leftElement: !!S
|
216
|
+
}), [g, N] = Ae({
|
217
217
|
value: k,
|
218
218
|
initialControlledDelay: 20,
|
219
|
-
defaultValue:
|
220
|
-
onChange: (
|
221
|
-
|
219
|
+
defaultValue: u,
|
220
|
+
onChange: (b) => {
|
221
|
+
z && z({
|
222
222
|
target: {
|
223
|
-
value:
|
223
|
+
value: b
|
224
224
|
}
|
225
225
|
});
|
226
226
|
}
|
227
|
-
}),
|
228
|
-
N(
|
229
|
-
},
|
230
|
-
|
231
|
-
},
|
232
|
-
|
227
|
+
}), T = (b) => {
|
228
|
+
N(b.target.value);
|
229
|
+
}, A = (b) => {
|
230
|
+
_ && y && i(!0), L && L(b);
|
231
|
+
}, j = (b) => {
|
232
|
+
_ && y && !g && i(!1), F && F(b);
|
233
233
|
};
|
234
|
-
return
|
235
|
-
M && M.width &&
|
236
|
-
}, [M]),
|
237
|
-
|
238
|
-
}, [
|
239
|
-
|
240
|
-
}, [
|
241
|
-
|
242
|
-
|
234
|
+
return Y(() => {
|
235
|
+
M && M.width && re(M.width + 18 + 10);
|
236
|
+
}, [M]), Y(() => {
|
237
|
+
C && C.width && ae(C.width + 18 + 10);
|
238
|
+
}, [C]), Y(() => {
|
239
|
+
t || p && p.current && g !== void 0 && (p.current.style.height = "inherit", p.current.style.height = p.current.scrollHeight + "px");
|
240
|
+
}, [g, t]), Y(() => {
|
241
|
+
t || setTimeout(() => {
|
242
|
+
U?.current?.style.setProperty(
|
243
243
|
"--av-text-area-wrapper-transition",
|
244
|
-
|
244
|
+
g ? "none" : "all 0.2s ease-out"
|
245
245
|
);
|
246
246
|
}, 0);
|
247
|
-
}, [
|
248
|
-
if (!
|
249
|
-
const { labelOffset:
|
247
|
+
}, [g, t]), Y(() => {
|
248
|
+
if (!t && p && p.current && g !== void 0) {
|
249
|
+
const { labelOffset: b, helperTextOffset: oe, scrollHeight: he } = Fe({
|
250
250
|
scrollHeight: p.current.scrollHeight,
|
251
|
-
currentHeight:
|
252
|
-
currentLabelOffset:
|
253
|
-
currentHelperTextOffset:
|
251
|
+
currentHeight: H.current,
|
252
|
+
currentLabelOffset: Q.current,
|
253
|
+
currentHelperTextOffset: Z.current
|
254
254
|
});
|
255
|
-
|
255
|
+
b && (Q.current = b, U?.current?.style.setProperty(
|
256
256
|
"--av-text-area-label",
|
257
|
-
`${
|
258
|
-
)), oe && (
|
257
|
+
`${b}px`
|
258
|
+
)), oe && (Z.current = oe, ee?.current?.style.setProperty(
|
259
259
|
"--av-text-area-helper-text",
|
260
260
|
`${oe}px`
|
261
|
-
)),
|
261
|
+
)), H.current = he || H.current;
|
262
262
|
}
|
263
|
-
}, [
|
263
|
+
}, [g, t]), C.width > 0 && U?.current?.style.setProperty(
|
264
264
|
"--tw-translate-x",
|
265
|
-
`${12 +
|
266
|
-
), /* @__PURE__ */
|
265
|
+
`${12 + C.width + 5}px`
|
266
|
+
), /* @__PURE__ */ m("div", { className: E.wrapper, children: [
|
267
267
|
/* @__PURE__ */ a(
|
268
268
|
"label",
|
269
269
|
{
|
270
|
-
htmlFor:
|
270
|
+
htmlFor: O,
|
271
271
|
id: D,
|
272
|
-
className:
|
272
|
+
className: E.accessibleLabel,
|
273
273
|
children: o
|
274
274
|
}
|
275
275
|
),
|
276
|
-
|
276
|
+
S && /* @__PURE__ */ a(
|
277
277
|
"div",
|
278
278
|
{
|
279
|
-
ref:
|
280
|
-
className:
|
281
|
-
children:
|
279
|
+
ref: K,
|
280
|
+
className: E.leftElement,
|
281
|
+
children: S
|
282
282
|
}
|
283
283
|
),
|
284
284
|
/* @__PURE__ */ a(
|
285
285
|
"textarea",
|
286
286
|
{
|
287
|
-
ref:
|
288
|
-
id:
|
287
|
+
ref: q,
|
288
|
+
id: O,
|
289
289
|
name: s,
|
290
|
-
disabled:
|
291
|
-
placeholder:
|
292
|
-
className:
|
290
|
+
disabled: v,
|
291
|
+
placeholder: t ? void 0 : " ",
|
292
|
+
className: E.textArea,
|
293
293
|
rows: 1,
|
294
|
-
...y && { "aria-describedby": `${
|
294
|
+
...y && { "aria-describedby": `${O}-helper` },
|
295
295
|
...l && { "aria-invalid": "true" },
|
296
|
-
...w && !
|
297
|
-
...
|
298
|
-
...w &&
|
296
|
+
...w && !S && !t && { style: { paddingRight: te } },
|
297
|
+
...S && !w && !t && { style: { paddingLeft: $ } },
|
298
|
+
...w && S && !t && {
|
299
299
|
style: {
|
300
|
-
paddingRight:
|
301
|
-
paddingLeft:
|
300
|
+
paddingRight: te,
|
301
|
+
paddingLeft: $
|
302
302
|
}
|
303
303
|
},
|
304
|
-
value:
|
305
|
-
onChange:
|
306
|
-
onFocus:
|
307
|
-
onBlur:
|
308
|
-
...
|
304
|
+
value: g,
|
305
|
+
onChange: T,
|
306
|
+
onFocus: A,
|
307
|
+
onBlur: j,
|
308
|
+
...G
|
309
309
|
}
|
310
310
|
),
|
311
|
-
!
|
311
|
+
!t && /* @__PURE__ */ a(
|
312
312
|
"label",
|
313
313
|
{
|
314
|
-
ref:
|
314
|
+
ref: U,
|
315
315
|
"aria-hidden": !0,
|
316
|
-
htmlFor:
|
317
|
-
className: `${
|
316
|
+
htmlFor: O,
|
317
|
+
className: `${E.visibleLabel}`,
|
318
318
|
children: o
|
319
319
|
}
|
320
320
|
),
|
321
|
-
|
321
|
+
r && /* @__PURE__ */ a(
|
322
322
|
"div",
|
323
323
|
{
|
324
|
-
ref:
|
325
|
-
id: `${
|
326
|
-
className:
|
324
|
+
ref: ee,
|
325
|
+
id: `${O}-helper`,
|
326
|
+
className: E.helperText,
|
327
327
|
children: y
|
328
328
|
}
|
329
329
|
),
|
330
330
|
w && /* @__PURE__ */ a(
|
331
331
|
"div",
|
332
332
|
{
|
333
|
-
ref:
|
334
|
-
className:
|
333
|
+
ref: J,
|
334
|
+
className: E.rightElement,
|
335
335
|
children: w
|
336
336
|
}
|
337
337
|
),
|
338
|
-
l && y && /* @__PURE__ */ a(
|
338
|
+
l && y && /* @__PURE__ */ a(be, { politeness: "polite", clearAnnouncementDelay: 500, children: P })
|
339
339
|
] });
|
340
340
|
}
|
341
341
|
);
|
@@ -353,7 +353,7 @@ try {
|
|
353
353
|
});
|
354
354
|
} catch {
|
355
355
|
}
|
356
|
-
const
|
356
|
+
const je = "av-toggle", Ye = ({ narrow: e }) => c(
|
357
357
|
"peer",
|
358
358
|
"rounded-full",
|
359
359
|
{
|
@@ -362,7 +362,7 @@ const We = "av-toggle", ze = ({ narrow: e }) => c(
|
|
362
362
|
},
|
363
363
|
// Smooth background/border transition when toggling
|
364
364
|
"transition-colors duration-300 ease-in-out motion-reduce:transition-none"
|
365
|
-
),
|
365
|
+
), Xe = ({
|
366
366
|
focusMode: e
|
367
367
|
}) => c(
|
368
368
|
"peer-focus:outline",
|
@@ -374,7 +374,7 @@ const We = "av-toggle", ze = ({ narrow: e }) => c(
|
|
374
374
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
375
375
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
376
376
|
}
|
377
|
-
),
|
377
|
+
), qe = ({ narrow: e }) => c(
|
378
378
|
{
|
379
379
|
"peer-checked:after:translate-x-full": !e,
|
380
380
|
"peer-checked:after:translate-x-4": e
|
@@ -384,7 +384,7 @@ const We = "av-toggle", ze = ({ narrow: e }) => c(
|
|
384
384
|
// knob circle and border color when checked
|
385
385
|
"peer-checked:after:bg-white",
|
386
386
|
"peer-checked:after:border-white"
|
387
|
-
),
|
387
|
+
), Je = ({ narrow: e }) => c(
|
388
388
|
"after:left-[2px]",
|
389
389
|
"after:top-[2px]",
|
390
390
|
"after:border",
|
@@ -400,7 +400,7 @@ const We = "av-toggle", ze = ({ narrow: e }) => c(
|
|
400
400
|
// Narrow toggle knob (oval)
|
401
401
|
" after:h-4 after:w-7": e
|
402
402
|
}
|
403
|
-
),
|
403
|
+
), Ke = ({
|
404
404
|
mode: e,
|
405
405
|
noBorder: s
|
406
406
|
}) => c({
|
@@ -409,7 +409,7 @@ const We = "av-toggle", ze = ({ narrow: e }) => c(
|
|
409
409
|
"border-border-light bg-surface-darker": e === "dark",
|
410
410
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
411
411
|
"border-border-medium bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
412
|
-
}),
|
412
|
+
}), Qe = ({
|
413
413
|
mode: e,
|
414
414
|
labelHidden: s
|
415
415
|
}) => s ? "sr-only" : c("ml-2 text-sm", {
|
@@ -417,63 +417,63 @@ const We = "av-toggle", ze = ({ narrow: e }) => c(
|
|
417
417
|
"text-copy-lighter": e === "dark",
|
418
418
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
419
419
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
420
|
-
}),
|
421
|
-
|
420
|
+
}), Ze = ({ className: e }) => c(
|
421
|
+
je,
|
422
422
|
"relative flex cursor-pointer items-center",
|
423
423
|
e
|
424
|
-
),
|
424
|
+
), et = ({
|
425
425
|
mode: e,
|
426
426
|
focusMode: s,
|
427
427
|
labelHidden: o,
|
428
428
|
className: l,
|
429
|
-
noBorder:
|
429
|
+
noBorder: t,
|
430
430
|
narrow: n
|
431
431
|
}) => ({
|
432
432
|
toggle: c(
|
433
|
-
ze({ narrow: n }),
|
434
|
-
Xe({ mode: e, noBorder: r }),
|
435
|
-
je({ focusMode: s }),
|
436
433
|
Ye({ narrow: n }),
|
437
|
-
|
434
|
+
Ke({ mode: e, noBorder: t }),
|
435
|
+
Xe({ focusMode: s }),
|
436
|
+
Je({ narrow: n }),
|
437
|
+
qe({ narrow: n })
|
438
438
|
),
|
439
|
-
label:
|
439
|
+
label: Qe({ mode: e, labelHidden: o }),
|
440
440
|
input: "peer sr-only",
|
441
|
-
wrapper:
|
441
|
+
wrapper: Ze({ className: l })
|
442
442
|
}), B = ({
|
443
443
|
checked: e = !1,
|
444
444
|
onChange: s,
|
445
445
|
label: o,
|
446
446
|
labelHidden: l = !1,
|
447
|
-
name:
|
447
|
+
name: t,
|
448
448
|
mode: n = "system",
|
449
|
-
focusMode:
|
449
|
+
focusMode: d = "system",
|
450
450
|
className: h,
|
451
451
|
noBorder: x = !1,
|
452
452
|
narrow: k = !1
|
453
453
|
}) => {
|
454
|
-
const
|
454
|
+
const u = et({
|
455
455
|
mode: n,
|
456
|
-
focusMode:
|
456
|
+
focusMode: d,
|
457
457
|
labelHidden: l,
|
458
458
|
className: h,
|
459
459
|
noBorder: x,
|
460
460
|
narrow: k
|
461
|
-
}),
|
462
|
-
s?.(
|
461
|
+
}), v = (I) => {
|
462
|
+
s?.(I.target.checked);
|
463
463
|
};
|
464
|
-
return /* @__PURE__ */
|
464
|
+
return /* @__PURE__ */ m("label", { className: u.wrapper, children: [
|
465
465
|
/* @__PURE__ */ a(
|
466
466
|
"input",
|
467
467
|
{
|
468
|
-
name:
|
468
|
+
name: t,
|
469
469
|
checked: e,
|
470
470
|
type: "checkbox",
|
471
|
-
className:
|
472
|
-
onChange:
|
471
|
+
className: u.input,
|
472
|
+
onChange: v
|
473
473
|
}
|
474
474
|
),
|
475
|
-
/* @__PURE__ */ a("div", { className:
|
476
|
-
/* @__PURE__ */ a("span", { className:
|
475
|
+
/* @__PURE__ */ a("div", { className: u.toggle }),
|
476
|
+
/* @__PURE__ */ a("span", { className: u.label, children: o })
|
477
477
|
] });
|
478
478
|
};
|
479
479
|
/*!
|
@@ -489,127 +489,130 @@ try {
|
|
489
489
|
});
|
490
490
|
} catch {
|
491
491
|
}
|
492
|
-
const
|
492
|
+
const tt = (e) => {
|
493
|
+
const { check: s } = xe();
|
494
|
+
return s(e);
|
495
|
+
}, nt = ({
|
493
496
|
open: e,
|
494
497
|
onOpenChange: s
|
495
498
|
}) => {
|
496
|
-
const { getAccessToken: o, user: l } =
|
497
|
-
data:
|
499
|
+
const { getAccessToken: o, user: l } = ke(), {
|
500
|
+
data: t,
|
498
501
|
isSuccess: n,
|
499
|
-
refetch:
|
500
|
-
} =
|
502
|
+
refetch: d
|
503
|
+
} = we({
|
501
504
|
user: l?.username,
|
502
505
|
getAccessToken: o
|
503
506
|
}), [h, x] = f({
|
504
507
|
loadingLocation: !1
|
505
|
-
}), [k,
|
508
|
+
}), [k, u] = f({
|
506
509
|
prompts: []
|
507
|
-
}), [
|
508
|
-
|
509
|
-
},
|
510
|
-
w(
|
511
|
-
},
|
512
|
-
|
513
|
-
},
|
514
|
-
|
515
|
-
},
|
516
|
-
|
510
|
+
}), [v, I] = f(""), [D, y] = f(""), [_, w] = f(!1), [S, z] = f(!1), [L, F] = f(!1), [G, X] = f(!1), [p, q] = f(null), [J, M] = f(!1), [K, C] = f(!1), H = tt(Ie.TOOL.MEMORIES), Q = (r) => {
|
511
|
+
C(r);
|
512
|
+
}, U = (r) => {
|
513
|
+
w(r);
|
514
|
+
}, Z = (r) => {
|
515
|
+
H && z(r);
|
516
|
+
}, ee = (r) => {
|
517
|
+
X(r);
|
518
|
+
}, O = async (r) => {
|
519
|
+
r.preventDefault();
|
517
520
|
try {
|
518
521
|
await ue({
|
519
522
|
accessToken: await o(),
|
520
523
|
type: me.SET_USER_PREFERENCES,
|
521
524
|
params: {
|
522
525
|
user: l?.username,
|
523
|
-
instructions:
|
526
|
+
instructions: v,
|
524
527
|
location: D,
|
525
|
-
provider:
|
528
|
+
provider: t?.provider,
|
526
529
|
tags: k.prompts,
|
527
|
-
sendOnEnter:
|
528
|
-
useMemory:
|
529
|
-
showDetails:
|
530
|
+
sendOnEnter: _,
|
531
|
+
useMemory: S,
|
532
|
+
showDetails: K
|
530
533
|
}
|
531
|
-
}),
|
534
|
+
}), G !== L && (await Le(G), F(G)), d(), x({
|
532
535
|
loadingLocation: !1
|
533
536
|
});
|
534
537
|
} catch {
|
535
538
|
}
|
536
|
-
},
|
539
|
+
}, te = async () => {
|
537
540
|
x({
|
538
541
|
loadingLocation: !0
|
539
542
|
}), y("...");
|
540
543
|
try {
|
541
|
-
const
|
544
|
+
const r = Date.now(), i = await _e(), P = await ue({
|
542
545
|
accessToken: await o(),
|
543
546
|
type: me.GET_LOCATION,
|
544
547
|
params: {
|
545
|
-
latitude:
|
546
|
-
longitude:
|
548
|
+
latitude: i.latitude,
|
549
|
+
longitude: i.longitude
|
547
550
|
}
|
548
|
-
}),
|
549
|
-
if (
|
550
|
-
const { city:
|
551
|
+
}), g = Date.now() - r;
|
552
|
+
if (g < 2e3 && await new Promise((N) => setTimeout(N, 2e3 - g)), P.status === 200) {
|
553
|
+
const { city: N, state: T, country: A, displayName: j } = P.data, b = N && T && A ? `${N}, ${T}, ${A}` : j;
|
551
554
|
x({
|
552
555
|
loadingLocation: !1
|
553
|
-
}), y(
|
556
|
+
}), y(b);
|
554
557
|
} else
|
555
558
|
x({
|
556
559
|
loadingLocation: !1
|
557
560
|
});
|
558
561
|
} catch {
|
559
562
|
}
|
560
|
-
},
|
561
|
-
|
562
|
-
},
|
563
|
-
enabled:
|
564
|
-
privateChat:
|
565
|
-
clipboardAccess:
|
566
|
-
...
|
563
|
+
}, re = () => {
|
564
|
+
d(), s(!1);
|
565
|
+
}, $ = ({
|
566
|
+
enabled: r = !1,
|
567
|
+
privateChat: i = !1,
|
568
|
+
clipboardAccess: P = !1,
|
569
|
+
...E
|
567
570
|
}) => {
|
568
|
-
|
569
|
-
const
|
570
|
-
...
|
571
|
-
enabled:
|
572
|
-
privateChat:
|
573
|
-
clipboardAccess:
|
571
|
+
u((g) => {
|
572
|
+
const N = g.prompts, T = {
|
573
|
+
...E,
|
574
|
+
enabled: r,
|
575
|
+
privateChat: i,
|
576
|
+
clipboardAccess: P
|
574
577
|
};
|
575
|
-
|
576
|
-
const A =
|
578
|
+
P ? T.content = T.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : T.content = T.content.replace(/{{clipboard}}/g, "");
|
579
|
+
const A = N.findIndex((j) => j.slot === E.slot);
|
577
580
|
return A === -1 ? {
|
578
|
-
...
|
579
|
-
prompts: [...
|
580
|
-
} : (
|
581
|
-
...
|
582
|
-
prompts: [...
|
581
|
+
...g,
|
582
|
+
prompts: [...N, { ...T }]
|
583
|
+
} : (N[A] = T, {
|
584
|
+
...g,
|
585
|
+
prompts: [...N]
|
583
586
|
});
|
584
587
|
});
|
585
|
-
},
|
588
|
+
}, ae = Pe(async () => {
|
586
589
|
try {
|
587
590
|
M(!0);
|
588
|
-
const
|
589
|
-
|
591
|
+
const r = await Ee();
|
592
|
+
q(r);
|
590
593
|
} catch {
|
591
594
|
} finally {
|
592
595
|
M(!1);
|
593
596
|
}
|
594
597
|
}, []);
|
595
598
|
return ne(() => {
|
596
|
-
if (!
|
599
|
+
if (!t)
|
597
600
|
return;
|
598
|
-
|
599
|
-
const
|
600
|
-
|
601
|
-
}, [
|
602
|
-
L ?
|
603
|
-
}, [L,
|
604
|
-
|
601
|
+
t.instructions && I(t.instructions), t.location && y(t.location), t.tags && u({ prompts: t.tags }), t.sendOnEnter !== void 0 && w(t.sendOnEnter), t.useMemory !== void 0 && z(t.useMemory), t.showDetails !== void 0 && C(t.showDetails);
|
602
|
+
const r = Ne();
|
603
|
+
F(r), X(r);
|
604
|
+
}, [t]), ne(() => {
|
605
|
+
L ? ae() : q(null);
|
606
|
+
}, [L, ae]), n ? /* @__PURE__ */ m(
|
607
|
+
Me,
|
605
608
|
{
|
606
609
|
open: e,
|
607
|
-
onOpenChange:
|
608
|
-
title:
|
610
|
+
onOpenChange: re,
|
611
|
+
title: Te,
|
609
612
|
animation: !0,
|
610
613
|
animationType: "fade",
|
611
|
-
footer: /* @__PURE__ */
|
612
|
-
|
614
|
+
footer: /* @__PURE__ */ m(
|
615
|
+
Ce,
|
613
616
|
{
|
614
617
|
columnGap: 2,
|
615
618
|
alignHorizontal: "flex-end",
|
@@ -622,7 +625,7 @@ const ar = ({
|
|
622
625
|
variant: "secondary",
|
623
626
|
focusMode: "light",
|
624
627
|
noBorder: !0,
|
625
|
-
onClick:
|
628
|
+
onClick: re,
|
626
629
|
children: "Cancel"
|
627
630
|
}
|
628
631
|
) }),
|
@@ -631,8 +634,8 @@ const ar = ({
|
|
631
634
|
{
|
632
635
|
mode: "dark",
|
633
636
|
focusMode: "light",
|
634
|
-
onClick: async (
|
635
|
-
s(!1), await
|
637
|
+
onClick: async (r) => {
|
638
|
+
s(!1), await O(r);
|
636
639
|
},
|
637
640
|
children: "Save"
|
638
641
|
}
|
@@ -641,14 +644,14 @@ const ar = ({
|
|
641
644
|
}
|
642
645
|
),
|
643
646
|
children: [
|
644
|
-
/* @__PURE__ */
|
645
|
-
|
647
|
+
/* @__PURE__ */ m(
|
648
|
+
V,
|
646
649
|
{
|
647
|
-
header:
|
650
|
+
header: R.SETTINGS_DETAILS.TITLE,
|
648
651
|
className: "prose-dark dark:prose-lighter",
|
649
652
|
noBorder: !0,
|
650
653
|
children: [
|
651
|
-
/* @__PURE__ */ a("p", { className: "text-sm", children:
|
654
|
+
/* @__PURE__ */ a("p", { className: "text-sm", children: R.SETTINGS_DETAILS.DETAILS }),
|
652
655
|
/* @__PURE__ */ a(
|
653
656
|
B,
|
654
657
|
{
|
@@ -656,11 +659,11 @@ const ar = ({
|
|
656
659
|
className: "mt-2",
|
657
660
|
label: "Show Message Statistics",
|
658
661
|
name: "show-message-statistics",
|
659
|
-
onChange:
|
660
|
-
checked:
|
662
|
+
onChange: Q,
|
663
|
+
checked: K
|
661
664
|
}
|
662
665
|
),
|
663
|
-
/* @__PURE__ */ a("p", { className: "text-sm mt-5", children:
|
666
|
+
/* @__PURE__ */ a("p", { className: "text-sm mt-5", children: R.SETTINGS_DETAILS.SEND_ON_ENTER }),
|
664
667
|
/* @__PURE__ */ a(
|
665
668
|
B,
|
666
669
|
{
|
@@ -668,35 +671,37 @@ const ar = ({
|
|
668
671
|
className: "mt-2",
|
669
672
|
label: "Send Message on Enter",
|
670
673
|
name: "send-message-on-enter",
|
671
|
-
onChange:
|
672
|
-
checked:
|
674
|
+
onChange: U,
|
675
|
+
checked: _
|
673
676
|
}
|
674
677
|
),
|
675
|
-
/* @__PURE__ */
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
678
|
+
H && /* @__PURE__ */ m(pe, { children: [
|
679
|
+
/* @__PURE__ */ a("p", { className: "text-sm mt-5", children: R.SETTINGS_DETAILS.USE_MEMORY }),
|
680
|
+
/* @__PURE__ */ a(
|
681
|
+
B,
|
682
|
+
{
|
683
|
+
narrow: !0,
|
684
|
+
className: "mt-2",
|
685
|
+
label: "Use Memory",
|
686
|
+
name: "use-memory",
|
687
|
+
onChange: Z,
|
688
|
+
checked: S
|
689
|
+
}
|
690
|
+
)
|
691
|
+
] })
|
687
692
|
]
|
688
693
|
}
|
689
694
|
),
|
690
|
-
/* @__PURE__ */
|
691
|
-
|
695
|
+
/* @__PURE__ */ m(
|
696
|
+
V,
|
692
697
|
{
|
693
698
|
header: "Custom Instructions",
|
694
699
|
className: "prose-dark dark:prose-lighter mt-4",
|
695
700
|
noBorder: !0,
|
696
701
|
children: [
|
697
|
-
/* @__PURE__ */
|
702
|
+
/* @__PURE__ */ m("p", { className: "text-sm", children: [
|
698
703
|
"What would you like ",
|
699
|
-
/* @__PURE__ */ a("em", { children:
|
704
|
+
/* @__PURE__ */ a("em", { children: ve }),
|
700
705
|
" to know about you to provide better responses?"
|
701
706
|
] }),
|
702
707
|
/* @__PURE__ */ a(
|
@@ -708,9 +713,9 @@ const ar = ({
|
|
708
713
|
autoCorrect: "off",
|
709
714
|
name: "customInstructions",
|
710
715
|
label: "Custom Instructions",
|
711
|
-
value:
|
712
|
-
onChange: (
|
713
|
-
|
716
|
+
value: v,
|
717
|
+
onChange: (r) => {
|
718
|
+
I(r.target.value);
|
714
719
|
},
|
715
720
|
helperText: "Press ENTER to add a new line."
|
716
721
|
}
|
@@ -718,8 +723,8 @@ const ar = ({
|
|
718
723
|
]
|
719
724
|
}
|
720
725
|
),
|
721
|
-
/* @__PURE__ */
|
722
|
-
|
726
|
+
/* @__PURE__ */ m(
|
727
|
+
V,
|
723
728
|
{
|
724
729
|
header: "Location",
|
725
730
|
className: "prose-dark dark:prose-lighter mt-4",
|
@@ -733,8 +738,8 @@ const ar = ({
|
|
733
738
|
name: "location",
|
734
739
|
label: "Location",
|
735
740
|
value: D,
|
736
|
-
onChange: (
|
737
|
-
y(
|
741
|
+
onChange: (r) => {
|
742
|
+
y(r.target.value);
|
738
743
|
},
|
739
744
|
helperText: "Enter your location or press auto-detect."
|
740
745
|
}
|
@@ -747,30 +752,30 @@ const ar = ({
|
|
747
752
|
noBorder: !0,
|
748
753
|
variant: "secondary",
|
749
754
|
disabled: h.loadingLocation,
|
750
|
-
onClick:
|
755
|
+
onClick: te,
|
751
756
|
children: h.loadingLocation ? "Detecting..." : "Auto-detect"
|
752
757
|
}
|
753
758
|
)
|
754
759
|
]
|
755
760
|
}
|
756
761
|
),
|
757
|
-
/* @__PURE__ */
|
758
|
-
|
762
|
+
/* @__PURE__ */ m(
|
763
|
+
V,
|
759
764
|
{
|
760
|
-
header:
|
765
|
+
header: R.SETTINGS_PROMPTS.TITLE,
|
761
766
|
className: "prose-dark dark:prose-lighter mt-4",
|
762
767
|
noBorder: !0,
|
763
768
|
children: [
|
764
|
-
/* @__PURE__ */ a("p", { className: "text-sm", children:
|
765
|
-
k.prompts && k.prompts.slice(0, 3).map((
|
766
|
-
|
769
|
+
/* @__PURE__ */ a("p", { className: "text-sm", children: Se }),
|
770
|
+
k.prompts && k.prompts.slice(0, 3).map((r) => /* @__PURE__ */ m(
|
771
|
+
V,
|
767
772
|
{
|
768
773
|
mode: "dark",
|
769
774
|
noBorder: !0,
|
770
|
-
header:
|
775
|
+
header: r.label.replace("...", ""),
|
771
776
|
className: "prose-light mb-2",
|
772
777
|
children: [
|
773
|
-
/* @__PURE__ */ a("p", { className: "text-sm", children:
|
778
|
+
/* @__PURE__ */ a("p", { className: "text-sm", children: r.description }),
|
774
779
|
/* @__PURE__ */ a(
|
775
780
|
B,
|
776
781
|
{
|
@@ -780,14 +785,14 @@ const ar = ({
|
|
780
785
|
className: "mt-2",
|
781
786
|
noBorder: !0,
|
782
787
|
label: "Enabled",
|
783
|
-
name:
|
784
|
-
onChange: (
|
785
|
-
|
786
|
-
...
|
787
|
-
enabled:
|
788
|
+
name: r.slot.toString(),
|
789
|
+
onChange: (i) => {
|
790
|
+
$({
|
791
|
+
...r,
|
792
|
+
enabled: i
|
788
793
|
});
|
789
794
|
},
|
790
|
-
checked:
|
795
|
+
checked: r.enabled
|
791
796
|
}
|
792
797
|
),
|
793
798
|
/* @__PURE__ */ a(
|
@@ -799,14 +804,14 @@ const ar = ({
|
|
799
804
|
className: "mt-2",
|
800
805
|
noBorder: !0,
|
801
806
|
label: "Private Chat",
|
802
|
-
name: `private-${
|
803
|
-
onChange: (
|
804
|
-
|
805
|
-
...
|
806
|
-
privateChat:
|
807
|
+
name: `private-${r.slot.toString()}`,
|
808
|
+
onChange: (i) => {
|
809
|
+
$({
|
810
|
+
...r,
|
811
|
+
privateChat: i
|
807
812
|
});
|
808
813
|
},
|
809
|
-
checked:
|
814
|
+
checked: r.privateChat
|
810
815
|
}
|
811
816
|
),
|
812
817
|
/* @__PURE__ */ a(
|
@@ -818,31 +823,31 @@ const ar = ({
|
|
818
823
|
className: "mt-2",
|
819
824
|
noBorder: !0,
|
820
825
|
label: "Use Clipboard",
|
821
|
-
name: `clipboard-${
|
822
|
-
onChange: (
|
823
|
-
|
824
|
-
...
|
825
|
-
clipboardAccess:
|
826
|
+
name: `clipboard-${r.slot.toString()}`,
|
827
|
+
onChange: (i) => {
|
828
|
+
$({
|
829
|
+
...r,
|
830
|
+
clipboardAccess: i
|
826
831
|
});
|
827
832
|
},
|
828
|
-
checked:
|
833
|
+
checked: r.clipboardAccess
|
829
834
|
}
|
830
835
|
)
|
831
836
|
]
|
832
837
|
},
|
833
|
-
`prompt-slot-${
|
838
|
+
`prompt-slot-${r.slot}`
|
834
839
|
))
|
835
840
|
]
|
836
841
|
}
|
837
842
|
),
|
838
|
-
/* @__PURE__ */
|
839
|
-
|
843
|
+
/* @__PURE__ */ m(
|
844
|
+
V,
|
840
845
|
{
|
841
|
-
header:
|
846
|
+
header: R.SETTINGS_CACHING.TITLE,
|
842
847
|
className: "prose-dark dark:prose-lighter mt-4 ",
|
843
848
|
noBorder: !0,
|
844
849
|
children: [
|
845
|
-
/* @__PURE__ */ a("p", { className: "text-sm", children:
|
850
|
+
/* @__PURE__ */ a("p", { className: "text-sm", children: R.SETTINGS_CACHING.DESCRIPTION }),
|
846
851
|
/* @__PURE__ */ a(
|
847
852
|
B,
|
848
853
|
{
|
@@ -850,32 +855,32 @@ const ar = ({
|
|
850
855
|
className: "mt-2",
|
851
856
|
label: "Enable Assets Caching",
|
852
857
|
name: "enable-service-worker",
|
853
|
-
onChange:
|
854
|
-
checked:
|
858
|
+
onChange: ee,
|
859
|
+
checked: G
|
855
860
|
}
|
856
861
|
),
|
857
|
-
L && /* @__PURE__ */
|
862
|
+
L && /* @__PURE__ */ m("div", { className: "mt-4 p-3 border border-dashed border-neutral-700 dark:border-neutral-400 rounded @container/optimizations", children: [
|
858
863
|
/* @__PURE__ */ a("h3", { className: "m-0 mb-2 text-xs uppercase opacity-70", children: "Cache Info" }),
|
859
|
-
p ? /* @__PURE__ */
|
860
|
-
/* @__PURE__ */
|
864
|
+
p ? /* @__PURE__ */ m("div", { className: "text-xs space-y-2", children: [
|
865
|
+
/* @__PURE__ */ m("p", { className: "m-0", children: [
|
861
866
|
"Version: ",
|
862
867
|
/* @__PURE__ */ a("strong", { children: p.version })
|
863
868
|
] }),
|
864
|
-
/* @__PURE__ */
|
869
|
+
/* @__PURE__ */ m("p", { className: "m-0", children: [
|
865
870
|
"Total Items: ",
|
866
871
|
/* @__PURE__ */ a("strong", { children: p.totalItems })
|
867
872
|
] }),
|
868
|
-
p.caches.map((
|
873
|
+
p.caches.map((r) => /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("ul", { className: "not-prose font-mono mt-2 list-none w-[95cqw]", children: r.urls.map((i) => /* @__PURE__ */ a(
|
869
874
|
"li",
|
870
875
|
{
|
871
876
|
className: "truncate text-xs text-copy-dark dark:text-copy-light overflow-hidden text-ellipsis",
|
872
|
-
title:
|
873
|
-
children: new URL(
|
877
|
+
title: i,
|
878
|
+
children: new URL(i).pathname
|
874
879
|
},
|
875
|
-
|
876
|
-
)) }) },
|
877
|
-
p.totalItems === 0 && !
|
878
|
-
] }) : /* @__PURE__ */ a("p", { className: "text-xs opacity-70 m-0", children:
|
880
|
+
i
|
881
|
+
)) }) }, r.name)),
|
882
|
+
p.totalItems === 0 && !J && /* @__PURE__ */ a("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
|
883
|
+
] }) : /* @__PURE__ */ a("p", { className: "text-xs opacity-70 m-0", children: J ? "Loading cache info..." : "No cache info available." })
|
879
884
|
] })
|
880
885
|
]
|
881
886
|
}
|
@@ -885,5 +890,5 @@ const ar = ({
|
|
885
890
|
) : null;
|
886
891
|
};
|
887
892
|
export {
|
888
|
-
|
893
|
+
nt as SettingsPanel
|
889
894
|
};
|