@vuetify/one 1.4.2 → 1.5.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/index.d.ts +21 -3
- package/dist/index.js +492 -470
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as wt, watch as B, toRefs as St, ref as
|
|
1
|
+
import { reactive as wt, watch as B, toRefs as St, ref as A, shallowRef as O, computed as w, defineComponent as $, openBlock as d, createBlock as _, unref as t, createSlots as R, withCtx as r, createElementVNode as y, toDisplayString as C, createVNode as i, createTextVNode as T, renderSlot as z, normalizeStyle as ot, createCommentVNode as S, withModifiers as Ee, mergeModels as nt, useModel as le, createElementBlock as L, Fragment as U, onMounted as qe, nextTick as pe, renderList as ne, mergeProps as H, isRef as se, resolveComponent as We, withDirectives as De, vShow as Ge, normalizeClass as Ct, pushScopeId as Lt, popScopeId as It, onBeforeMount as Ze, onBeforeUnmount as Dt } from "vue";
|
|
2
2
|
import { mdiDiscord as Qe, mdiGithub as Ye, mdiSync as At, mdiSyncOff as Ot, mdiLogoutVariant as Nt, mdiFullscreenExit as Bt, mdiFullscreen as Ut, mdiCheck as Ae, mdiHome as zt, mdiTextBox as Ft, mdiSelect as Tt, mdiSpaceInvaders as st, mdiImageFilterHdr as at, mdiRocketLaunchOutline as it, mdiWhiteBalanceSunny as jt, mdiWeatherNight as Mt, mdiDesktopTowerMonitor as Pt, mdiContrastCircle as Ht, mdiCog as Rt, mdiCogOutline as Et, mdiFileDocument as qt, mdiCreditCardSettingsOutline as Wt, mdiRocketOutline as Gt, mdiCheckCircleOutline as Ie, mdiCreditCard as Zt, mdiReload as Qt, mdiPlaylistCheck as Yt, mdiCreditCardOutline as Jt, mdiMedal as Xt, mdiOpenInNew as Oe, mdiHandHeart as Kt, mdiHandHeartOutline as eo, mdiEmailOpenOutline as rt, mdiEmailVariant as lt, mdiBell as to, mdiInboxOutline as oo, mdiInboxFullOutline as no, mdiBillboard as so, mdiBellOutline as ao, mdiViewDashboardOutline as io, mdiCrown as ro, mdiArrowULeftBottom as lo, mdiLogin as co, mdiShieldStarOutline as uo, mdiReddit as po } from "@mdi/js";
|
|
3
3
|
import { useRouter as Ne, useRoute as mo } from "vue-router";
|
|
4
4
|
import { defineStore as W } from "pinia";
|
|
@@ -13,7 +13,7 @@ import { VProgressCircular as _o } from "vuetify/lib/components/VProgressCircula
|
|
|
13
13
|
import { VSheet as ye } from "vuetify/lib/components/VSheet/index.mjs";
|
|
14
14
|
import { VSwitch as dt } from "vuetify/lib/components/VSwitch/index.mjs";
|
|
15
15
|
import { VFadeTransition as Be, VExpandTransition as me, VExpandXTransition as go } from "vuetify/lib/components/transitions/index.mjs";
|
|
16
|
-
import { useDisplay as
|
|
16
|
+
import { useDisplay as ce, useTheme as Xe, useDate as Ue } from "vuetify";
|
|
17
17
|
import { VDivider as Z } from "vuetify/lib/components/VDivider/index.mjs";
|
|
18
18
|
import { VIcon as D } from "vuetify/lib/components/VIcon/index.mjs";
|
|
19
19
|
import { VLabel as He } from "vuetify/lib/components/VLabel/index.mjs";
|
|
@@ -39,7 +39,7 @@ import { VMenu as Lo } from "vuetify/components";
|
|
|
39
39
|
import { VFooter as Io } from "vuetify/lib/components/VFooter/index.mjs";
|
|
40
40
|
import { VAppBar as Do } from "vuetify/lib/components/VAppBar/index.mjs";
|
|
41
41
|
import { VLazy as Ao } from "vuetify/lib/components/VLazy/index.mjs";
|
|
42
|
-
const
|
|
42
|
+
const ie = W("http", {
|
|
43
43
|
state: () => ({
|
|
44
44
|
url: ""
|
|
45
45
|
}),
|
|
@@ -122,9 +122,9 @@ const ce = W("http", {
|
|
|
122
122
|
function e() {
|
|
123
123
|
if (!Pe)
|
|
124
124
|
return;
|
|
125
|
-
const n = localStorage.getItem("vuetify@user"),
|
|
126
|
-
let l =
|
|
127
|
-
|
|
125
|
+
const n = localStorage.getItem("vuetify@user"), s = n ? JSON.parse(n) : {};
|
|
126
|
+
let l = s.v === c.v;
|
|
127
|
+
s.v || (s.pwaRefresh = !0, typeof s.api == "boolean" && (s.api = s.api ? "inline" : "link-only"), typeof s.rtl == "boolean" && (s.direction = s.rtl ? "rtl" : "ltr", delete s.rtl), typeof s.theme == "object" && (s.mixedTheme = s.theme.mixed, s.theme = s.theme.system ? "system" : s.theme.dark ? "dark" : "light"), Array.isArray(s.notifications) && (s.notifications = { read: s.notifications }), typeof s.last == "object" && (s.notifications.last = s.last, delete s.last)), s.v === 1 && (Array.isArray(s.composition) && (s.composition = "composition"), Array.isArray(s.notifications.last.banner) || (s.notifications = s.notifications || {}, s.notifications.last = s.notifications.last || {}, s.notifications.last.banner = [])), s.v === 2 && (s.syncSettings = !0, s.disableAds = !1, s.v = 3), s.v === 3 && (s.quickbar = !1), s.v === 4 && (s.suits = Le.suits, s.notifications.banners = Le.notifications.banners, l = !0), s.v = c.v, Object.assign(c, Me(c, s)), l && o();
|
|
128
128
|
}
|
|
129
129
|
function o() {
|
|
130
130
|
Pe && localStorage.setItem("vuetify@user", JSON.stringify(c, null, 2));
|
|
@@ -139,7 +139,7 @@ const ce = W("http", {
|
|
|
139
139
|
reset: a
|
|
140
140
|
};
|
|
141
141
|
}), M = W("auth", () => {
|
|
142
|
-
const c =
|
|
142
|
+
const c = A(!1), e = A(null), o = ie(), a = F(), n = Ne(), s = O(!1), l = w(() => {
|
|
143
143
|
var m, v;
|
|
144
144
|
return !o.url || ((m = e.value) == null ? void 0 : m.isAdmin) || !!((v = e.value) != null && v.sponsorships.some((k) => k.isActive));
|
|
145
145
|
});
|
|
@@ -163,7 +163,7 @@ const ce = W("http", {
|
|
|
163
163
|
async function u(m = !1) {
|
|
164
164
|
if (u.promise)
|
|
165
165
|
return u.promise;
|
|
166
|
-
|
|
166
|
+
s.value = !0, u.promise = fetch(`${o.url}/auth/verify`, {
|
|
167
167
|
credentials: "include",
|
|
168
168
|
headers: m ? {
|
|
169
169
|
"Cache-Control": "no-cache"
|
|
@@ -175,16 +175,16 @@ const ce = W("http", {
|
|
|
175
175
|
() => {
|
|
176
176
|
}
|
|
177
177
|
).finally(() => {
|
|
178
|
-
|
|
178
|
+
s.value = !1, u.promise = null;
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
u.promise = null;
|
|
182
182
|
async function h(m = "github") {
|
|
183
|
-
|
|
184
|
-
const v = `${o.url}/auth/${m}/redirect`, k = 400, N = 600, j = window.screenX + (window.innerWidth - k) / 2,
|
|
183
|
+
s.value = !0;
|
|
184
|
+
const v = `${o.url}/auth/${m}/redirect`, k = 400, N = 600, j = window.screenX + (window.innerWidth - k) / 2, re = window.screenY + (window.innerHeight - N) / 2, G = window.open(
|
|
185
185
|
"",
|
|
186
186
|
"vuetify:authorize:popup",
|
|
187
|
-
`popup,left=${j},top=${
|
|
187
|
+
`popup,left=${j},top=${re},width=${k},height=${N},resizable`
|
|
188
188
|
);
|
|
189
189
|
if (!G) {
|
|
190
190
|
console.error("Failed to open popup");
|
|
@@ -200,7 +200,7 @@ const ce = W("http", {
|
|
|
200
200
|
}), f()) : console.error(oe.data.message), ue());
|
|
201
201
|
}
|
|
202
202
|
function ue() {
|
|
203
|
-
window.removeEventListener("message", he), window.clearInterval(Se), window.clearTimeout(Ce), G == null || G.close(),
|
|
203
|
+
window.removeEventListener("message", he), window.clearInterval(Se), window.clearTimeout(Ce), G == null || G.close(), s.value = !1;
|
|
204
204
|
}
|
|
205
205
|
window.addEventListener("message", he), Se = window.setInterval(() => {
|
|
206
206
|
!G || G.closed ? (console.error("Auth popup closed"), ue()) : G.postMessage({ type: "auth-request" }, "*");
|
|
@@ -209,7 +209,7 @@ const ce = W("http", {
|
|
|
209
209
|
}, 120 * 1e3);
|
|
210
210
|
}
|
|
211
211
|
async function b(m) {
|
|
212
|
-
|
|
212
|
+
s.value = !0;
|
|
213
213
|
const v = m ? `/auth/${m}/logout` : "/auth/logout";
|
|
214
214
|
try {
|
|
215
215
|
await o.post(v), await u(!0), e.value = null;
|
|
@@ -219,7 +219,7 @@ const ce = W("http", {
|
|
|
219
219
|
n.push({
|
|
220
220
|
path: "/",
|
|
221
221
|
query: n.currentRoute.value.query
|
|
222
|
-
}),
|
|
222
|
+
}), s.value = !1;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
function g(m) {
|
|
@@ -233,7 +233,7 @@ const ce = W("http", {
|
|
|
233
233
|
user: e,
|
|
234
234
|
url: o.url,
|
|
235
235
|
dialog: c,
|
|
236
|
-
isLoading:
|
|
236
|
+
isLoading: s,
|
|
237
237
|
findIdentity: g,
|
|
238
238
|
verify: u,
|
|
239
239
|
login: h,
|
|
@@ -245,14 +245,14 @@ const ce = W("http", {
|
|
|
245
245
|
}), Oo = { class: "text-body-2" }, No = /* @__PURE__ */ y("div", { class: "text-caption mt-n1" }, "Last Used", -1), ft = /* @__PURE__ */ $({
|
|
246
246
|
__name: "VoAuthDiscord",
|
|
247
247
|
setup(c) {
|
|
248
|
-
const e = M(), o =
|
|
249
|
-
return (n,
|
|
248
|
+
const e = M(), o = w(() => e.user && e.findIdentity("discord")), a = w(() => e.user ? o.value ? "Connected to Discord" : "Connect Discord" : "Login with Discord");
|
|
249
|
+
return (n, s) => (d(), _(Ve, {
|
|
250
250
|
"base-color": "#5865F2",
|
|
251
251
|
"prepend-icon": `svg:${t(Qe)}`,
|
|
252
252
|
rounded: "pill",
|
|
253
253
|
slim: "",
|
|
254
254
|
variant: "flat",
|
|
255
|
-
onClick:
|
|
255
|
+
onClick: s[0] || (s[0] = (l) => t(e).login("discord"))
|
|
256
256
|
}, R({
|
|
257
257
|
title: r(() => [
|
|
258
258
|
y("span", Oo, C(t(a)), 1)
|
|
@@ -271,14 +271,14 @@ const ce = W("http", {
|
|
|
271
271
|
}), Bo = { class: "text-body-2" }, Uo = /* @__PURE__ */ y("div", { class: "text-caption mt-n1" }, "Last Used", -1), vt = /* @__PURE__ */ $({
|
|
272
272
|
__name: "VoAuthGithub",
|
|
273
273
|
setup(c) {
|
|
274
|
-
const e = M(), o =
|
|
275
|
-
return (n,
|
|
274
|
+
const e = M(), o = w(() => e.user && e.findIdentity("github")), a = w(() => e.user ? o.value ? "Connected to GitHub" : "Connect GitHub" : "Login with GitHub");
|
|
275
|
+
return (n, s) => (d(), _(Ve, {
|
|
276
276
|
"base-color": "#2a2a2a",
|
|
277
277
|
"prepend-icon": `svg:${t(Ye)}`,
|
|
278
278
|
rounded: "pill",
|
|
279
279
|
slim: "",
|
|
280
280
|
variant: "flat",
|
|
281
|
-
onClick:
|
|
281
|
+
onClick: s[0] || (s[0] = (l) => t(e).login("github"))
|
|
282
282
|
}, R({
|
|
283
283
|
title: r(() => [
|
|
284
284
|
y("span", Bo, C(t(a)), 1)
|
|
@@ -299,42 +299,42 @@ const ce = W("http", {
|
|
|
299
299
|
setup(c) {
|
|
300
300
|
const e = M();
|
|
301
301
|
return (o, a) => {
|
|
302
|
-
const n = vt,
|
|
302
|
+
const n = vt, s = ft;
|
|
303
303
|
return d(), _(E, {
|
|
304
304
|
class: "pt-6 pb-8 px-4 px-sm-8 mx-auto",
|
|
305
305
|
"max-width": "480"
|
|
306
306
|
}, {
|
|
307
307
|
default: r(() => [
|
|
308
308
|
y("div", zo, [
|
|
309
|
-
|
|
309
|
+
i(Q, {
|
|
310
310
|
class: "mx-auto",
|
|
311
311
|
image: "https://vuetifyjs.b-cdn.net/docs/images/avatars/one.png",
|
|
312
312
|
size: "64"
|
|
313
313
|
}, null, 8, ["image"])
|
|
314
314
|
]),
|
|
315
315
|
y("div", Fo, [
|
|
316
|
-
|
|
316
|
+
i(vo, { class: "text-h5 mb-1 text-md-h4" }, {
|
|
317
317
|
default: r(() => [
|
|
318
318
|
y("div", To, C(t(e).lastLoginProvider() ? "Welcome back to" : "Login to"), 1),
|
|
319
319
|
jo
|
|
320
320
|
]),
|
|
321
321
|
_: 1
|
|
322
322
|
}),
|
|
323
|
-
|
|
323
|
+
i(ho, { class: "text-wrap" }, {
|
|
324
324
|
default: r(() => [
|
|
325
325
|
T(" Login with GitHub or Discord to save your settings and unlock exclusive subscriber perks. ")
|
|
326
326
|
]),
|
|
327
327
|
_: 1
|
|
328
328
|
})
|
|
329
329
|
]),
|
|
330
|
-
|
|
330
|
+
i(ae, {
|
|
331
331
|
class: "mx-auto",
|
|
332
332
|
"max-width": "300",
|
|
333
333
|
width: "100%"
|
|
334
334
|
}, {
|
|
335
335
|
default: r(() => [
|
|
336
|
-
|
|
337
|
-
s
|
|
336
|
+
i(n, { class: "mb-3" }),
|
|
337
|
+
i(s)
|
|
338
338
|
]),
|
|
339
339
|
_: 1
|
|
340
340
|
})
|
|
@@ -351,42 +351,42 @@ const ce = W("http", {
|
|
|
351
351
|
const n = ht;
|
|
352
352
|
return d(), _(ut, {
|
|
353
353
|
modelValue: t(e).dialog,
|
|
354
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
354
|
+
"onUpdate:modelValue": a[0] || (a[0] = (s) => t(e).dialog = s),
|
|
355
355
|
"max-width": "480"
|
|
356
356
|
}, {
|
|
357
357
|
default: r(() => [
|
|
358
|
-
|
|
358
|
+
i(n)
|
|
359
359
|
]),
|
|
360
360
|
_: 1
|
|
361
361
|
}, 8, ["modelValue"]);
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
364
|
}), Fe = W("notifications", () => {
|
|
365
|
-
const c =
|
|
365
|
+
const c = ie(), e = F(), o = A([]), a = A([]), n = A(), s = O(!1), l = w(() => o.value.filter((m) => !e.notifications.read.includes(m.slug))), p = w(() => o.value.filter((m) => e.notifications.read.includes(m.slug)));
|
|
366
366
|
async function f() {
|
|
367
367
|
try {
|
|
368
|
-
|
|
368
|
+
s.value = !0;
|
|
369
369
|
const m = await c.get("/one/notifications");
|
|
370
370
|
o.value = m.notifications;
|
|
371
371
|
} catch {
|
|
372
372
|
} finally {
|
|
373
|
-
|
|
373
|
+
s.value = !1;
|
|
374
374
|
}
|
|
375
375
|
return o.value;
|
|
376
376
|
}
|
|
377
377
|
async function u(m) {
|
|
378
378
|
try {
|
|
379
|
-
|
|
379
|
+
s.value = !0;
|
|
380
380
|
const v = await c.get(`/one/admin/notifications/${m}`);
|
|
381
381
|
return n.value = v.notification, v.notification;
|
|
382
382
|
} catch {
|
|
383
383
|
} finally {
|
|
384
|
-
|
|
384
|
+
s.value = !1;
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
async function h(m) {
|
|
388
388
|
try {
|
|
389
|
-
|
|
389
|
+
s.value = !0;
|
|
390
390
|
const v = await c.form(
|
|
391
391
|
"/one/admin/notifications",
|
|
392
392
|
m
|
|
@@ -394,12 +394,12 @@ const ce = W("http", {
|
|
|
394
394
|
return n.value = v.notification, v.notification;
|
|
395
395
|
} catch {
|
|
396
396
|
} finally {
|
|
397
|
-
|
|
397
|
+
s.value = !1;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
async function b(m, v) {
|
|
401
401
|
try {
|
|
402
|
-
|
|
402
|
+
s.value = !0;
|
|
403
403
|
const k = await c.form(
|
|
404
404
|
`/one/admin/notifications/${m}`,
|
|
405
405
|
v
|
|
@@ -407,24 +407,24 @@ const ce = W("http", {
|
|
|
407
407
|
return n.value = k.notification, k.notification;
|
|
408
408
|
} catch {
|
|
409
409
|
} finally {
|
|
410
|
-
|
|
410
|
+
s.value = !1;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
async function g() {
|
|
414
414
|
}
|
|
415
415
|
async function V() {
|
|
416
416
|
try {
|
|
417
|
-
|
|
417
|
+
s.value = !0;
|
|
418
418
|
const m = await c.get("/one/admin/notifications");
|
|
419
419
|
a.value = m.notifications;
|
|
420
420
|
} catch {
|
|
421
421
|
} finally {
|
|
422
|
-
|
|
422
|
+
s.value = !1;
|
|
423
423
|
}
|
|
424
424
|
return o.value;
|
|
425
425
|
}
|
|
426
426
|
return {
|
|
427
|
-
isLoading:
|
|
427
|
+
isLoading: s,
|
|
428
428
|
all: o,
|
|
429
429
|
aall: a,
|
|
430
430
|
admin: V,
|
|
@@ -440,8 +440,8 @@ const ce = W("http", {
|
|
|
440
440
|
}), Mo = /* @__PURE__ */ $({
|
|
441
441
|
__name: "VoNotificationsTotalBadge",
|
|
442
442
|
setup(c) {
|
|
443
|
-
const e = M(), o = Fe(), a = F(), n =
|
|
444
|
-
return (
|
|
443
|
+
const e = M(), o = Fe(), a = F(), n = w(() => a.notifications.show ? o.unread.length : 0);
|
|
444
|
+
return (s, l) => (d(), _(Je, {
|
|
445
445
|
color: "error",
|
|
446
446
|
content: t(n),
|
|
447
447
|
dot: !!t(e).user,
|
|
@@ -449,7 +449,7 @@ const ce = W("http", {
|
|
|
449
449
|
"model-value": t(n) > 0
|
|
450
450
|
}, {
|
|
451
451
|
default: r(() => [
|
|
452
|
-
z(
|
|
452
|
+
z(s.$slots, "default")
|
|
453
453
|
]),
|
|
454
454
|
_: 3
|
|
455
455
|
}, 8, ["content", "dot", "model-value"]));
|
|
@@ -472,7 +472,7 @@ const ce = W("http", {
|
|
|
472
472
|
variant: "flat"
|
|
473
473
|
}, R({
|
|
474
474
|
loader: r(() => [
|
|
475
|
-
o.$slots.loader ?
|
|
475
|
+
o.$slots.loader ? S("", !0) : (d(), _(_o, {
|
|
476
476
|
key: 0,
|
|
477
477
|
indeterminate: "disable-shrink",
|
|
478
478
|
size: "16",
|
|
@@ -501,14 +501,14 @@ const ce = W("http", {
|
|
|
501
501
|
}), Po = { class: "pa-4 d-flex flex-column ga-4" }, gt = /* @__PURE__ */ $({
|
|
502
502
|
__name: "VoAuthListItem",
|
|
503
503
|
setup(c) {
|
|
504
|
-
const e = M(), o = F(), a =
|
|
505
|
-
B(() => e.user, (
|
|
506
|
-
a.value = !
|
|
504
|
+
const e = M(), o = F(), a = O(!e.user && !e.isLoading);
|
|
505
|
+
B(() => e.user, (s) => {
|
|
506
|
+
a.value = !s;
|
|
507
507
|
});
|
|
508
508
|
function n() {
|
|
509
509
|
e.user && (a.value = !a.value);
|
|
510
510
|
}
|
|
511
|
-
return (
|
|
511
|
+
return (s, l) => {
|
|
512
512
|
const p = vt, f = ft;
|
|
513
513
|
return d(), _(E, {
|
|
514
514
|
class: "ma-2",
|
|
@@ -516,9 +516,9 @@ const ce = W("http", {
|
|
|
516
516
|
variant: t(a) ? "tonal" : "text"
|
|
517
517
|
}, {
|
|
518
518
|
default: r(() => [
|
|
519
|
-
|
|
519
|
+
i(ae, { class: "py-0" }, {
|
|
520
520
|
default: r(() => [
|
|
521
|
-
|
|
521
|
+
i(Ve, {
|
|
522
522
|
class: "mb-0",
|
|
523
523
|
link: !!t(e).user,
|
|
524
524
|
nav: "",
|
|
@@ -529,7 +529,7 @@ const ce = W("http", {
|
|
|
529
529
|
onClick: n
|
|
530
530
|
}, {
|
|
531
531
|
append: r(() => [
|
|
532
|
-
|
|
532
|
+
i(Be, null, {
|
|
533
533
|
default: r(() => [
|
|
534
534
|
t(e).user && (t(a) || !t(o).syncSettings) ? (d(), _(dt, {
|
|
535
535
|
key: 0,
|
|
@@ -543,19 +543,19 @@ const ce = W("http", {
|
|
|
543
543
|
}, ["stop"]))
|
|
544
544
|
}, {
|
|
545
545
|
thumb: r(() => [
|
|
546
|
-
|
|
546
|
+
i(Q, {
|
|
547
547
|
color: t(o).syncSettings ? "success" : void 0
|
|
548
548
|
}, null, 8, ["color"])
|
|
549
549
|
]),
|
|
550
550
|
_: 1
|
|
551
|
-
}, 8, ["modelValue", "color"])) :
|
|
551
|
+
}, 8, ["modelValue", "color"])) : S("", !0)
|
|
552
552
|
]),
|
|
553
553
|
_: 1
|
|
554
554
|
})
|
|
555
555
|
]),
|
|
556
556
|
_: 1
|
|
557
557
|
}, 8, ["link", "prepend-icon", "title"]),
|
|
558
|
-
|
|
558
|
+
i(me, null, {
|
|
559
559
|
default: r(() => [
|
|
560
560
|
!t(e).user && !t(e).isLoading || t(a) ? (d(), _(ye, {
|
|
561
561
|
key: 0,
|
|
@@ -564,16 +564,16 @@ const ce = W("http", {
|
|
|
564
564
|
}, {
|
|
565
565
|
default: r(() => [
|
|
566
566
|
y("div", Po, [
|
|
567
|
-
|
|
567
|
+
i(p, {
|
|
568
568
|
onClick: l[2] || (l[2] = (u) => a.value = !1)
|
|
569
569
|
}),
|
|
570
|
-
|
|
570
|
+
i(f, {
|
|
571
571
|
onClick: l[3] || (l[3] = (u) => a.value = !1)
|
|
572
572
|
})
|
|
573
573
|
])
|
|
574
574
|
]),
|
|
575
575
|
_: 1
|
|
576
|
-
})) :
|
|
576
|
+
})) : S("", !0)
|
|
577
577
|
]),
|
|
578
578
|
_: 1
|
|
579
579
|
})
|
|
@@ -620,11 +620,11 @@ const ce = W("http", {
|
|
|
620
620
|
}), Ho = /* @__PURE__ */ $({
|
|
621
621
|
__name: "VoAuthLogoutNavItem",
|
|
622
622
|
setup(c) {
|
|
623
|
-
const e = M(), o =
|
|
623
|
+
const e = M(), o = O(!1);
|
|
624
624
|
async function a() {
|
|
625
625
|
o.value = !0, await e.logout(), o.value = !1;
|
|
626
626
|
}
|
|
627
|
-
return (n,
|
|
627
|
+
return (n, s) => {
|
|
628
628
|
const l = J;
|
|
629
629
|
return d(), _(l, {
|
|
630
630
|
class: "mb-0",
|
|
@@ -648,10 +648,10 @@ const ce = W("http", {
|
|
|
648
648
|
}),
|
|
649
649
|
emits: ["update:modelValue"],
|
|
650
650
|
setup(c) {
|
|
651
|
-
const e =
|
|
652
|
-
return (n,
|
|
651
|
+
const e = le(c, "modelValue"), o = ce(), a = O(!1);
|
|
652
|
+
return (n, s) => (d(), _(ut, {
|
|
653
653
|
modelValue: e.value,
|
|
654
|
-
"onUpdate:modelValue":
|
|
654
|
+
"onUpdate:modelValue": s[2] || (s[2] = (l) => e.value = l),
|
|
655
655
|
activator: "parent",
|
|
656
656
|
fullscreen: t(a) || t(o).xs.value,
|
|
657
657
|
height: "100%",
|
|
@@ -659,7 +659,7 @@ const ce = W("http", {
|
|
|
659
659
|
"max-width": t(a) || t(o).xs.value ? "100%" : 800
|
|
660
660
|
}, {
|
|
661
661
|
default: r(({ isActive: l }) => [
|
|
662
|
-
|
|
662
|
+
i(E, {
|
|
663
663
|
class: "overflow-hidden",
|
|
664
664
|
height: "inherit",
|
|
665
665
|
"prepend-icon": n.prependIcon,
|
|
@@ -667,25 +667,25 @@ const ce = W("http", {
|
|
|
667
667
|
}, R({
|
|
668
668
|
append: r(() => [
|
|
669
669
|
z(n.$slots, "append"),
|
|
670
|
-
t(o).xs.value ?
|
|
670
|
+
t(o).xs.value ? S("", !0) : (d(), _(q, {
|
|
671
671
|
key: 0,
|
|
672
672
|
class: "me-2",
|
|
673
673
|
density: "comfortable",
|
|
674
674
|
icon: `svg:${t(a) ? t(Bt) : t(Ut)}`,
|
|
675
675
|
size: "small",
|
|
676
676
|
variant: "text",
|
|
677
|
-
onClick:
|
|
677
|
+
onClick: s[0] || (s[0] = (p) => a.value = !t(a))
|
|
678
678
|
}, null, 8, ["icon"])),
|
|
679
|
-
|
|
679
|
+
i(q, {
|
|
680
680
|
density: "comfortable",
|
|
681
681
|
icon: "$close",
|
|
682
682
|
size: "small",
|
|
683
683
|
variant: "text",
|
|
684
|
-
onClick:
|
|
684
|
+
onClick: s[1] || (s[1] = (p) => e.value = !e.value)
|
|
685
685
|
})
|
|
686
686
|
]),
|
|
687
687
|
default: r(() => [
|
|
688
|
-
|
|
688
|
+
i(Z, { class: "mt-4" }),
|
|
689
689
|
z(n.$slots, "default")
|
|
690
690
|
]),
|
|
691
691
|
_: 2
|
|
@@ -723,7 +723,7 @@ const ce = W("http", {
|
|
|
723
723
|
"true-icon": `svg:${t(Ae)}`
|
|
724
724
|
}, R({
|
|
725
725
|
thumb: r(() => [
|
|
726
|
-
|
|
726
|
+
i(D, {
|
|
727
727
|
color: e.disabled ? void 0 : "primary"
|
|
728
728
|
}, null, 8, ["color"])
|
|
729
729
|
]),
|
|
@@ -757,8 +757,8 @@ const ce = W("http", {
|
|
|
757
757
|
T(C(e.title), 1)
|
|
758
758
|
]),
|
|
759
759
|
_: 1
|
|
760
|
-
})) :
|
|
761
|
-
e.text ? (d(), L("div", Ro, C(e.text), 1)) :
|
|
760
|
+
})) : S("", !0),
|
|
761
|
+
e.text ? (d(), L("div", Ro, C(e.text), 1)) : S("", !0)
|
|
762
762
|
], 64));
|
|
763
763
|
}
|
|
764
764
|
}), Eo = { key: 0 }, qo = /* @__PURE__ */ $({
|
|
@@ -788,19 +788,19 @@ const ce = W("http", {
|
|
|
788
788
|
}
|
|
789
789
|
];
|
|
790
790
|
return (a, n) => {
|
|
791
|
-
const
|
|
791
|
+
const s = yt, l = we;
|
|
792
792
|
return d(), L(U, null, [
|
|
793
|
-
s
|
|
793
|
+
i(s, {
|
|
794
794
|
modelValue: t(e).suits.show,
|
|
795
795
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => t(e).suits.show = p),
|
|
796
796
|
class: "mb-2",
|
|
797
797
|
label: "Enable Page suits",
|
|
798
798
|
messages: "Customize layout elements with a unique background, styled after one of our themed releases."
|
|
799
799
|
}, null, 8, ["modelValue"]),
|
|
800
|
-
|
|
800
|
+
i(me, null, {
|
|
801
801
|
default: r(() => [
|
|
802
802
|
t(e).suits.show ? (d(), L("div", Eo, [
|
|
803
|
-
|
|
803
|
+
i(bo, {
|
|
804
804
|
modelValue: t(e).suits.suit,
|
|
805
805
|
"onUpdate:modelValue": n[1] || (n[1] = (p) => t(e).suits.suit = p),
|
|
806
806
|
clearable: "",
|
|
@@ -813,7 +813,7 @@ const ce = W("http", {
|
|
|
813
813
|
variant: "outlined"
|
|
814
814
|
}, {
|
|
815
815
|
selection: r(({ item: p }) => [
|
|
816
|
-
|
|
816
|
+
i(D, {
|
|
817
817
|
icon: p.props.prependIcon,
|
|
818
818
|
size: "x-small",
|
|
819
819
|
start: ""
|
|
@@ -822,8 +822,8 @@ const ce = W("http", {
|
|
|
822
822
|
]),
|
|
823
823
|
_: 1
|
|
824
824
|
}, 8, ["modelValue"]),
|
|
825
|
-
|
|
826
|
-
|
|
825
|
+
i(l, { text: "Select your suit elements to display the background image:" }),
|
|
826
|
+
i(yo, {
|
|
827
827
|
modelValue: t(e).suits.elements,
|
|
828
828
|
"onUpdate:modelValue": n[2] || (n[2] = (p) => t(e).suits.elements = p),
|
|
829
829
|
color: "primary",
|
|
@@ -831,7 +831,7 @@ const ce = W("http", {
|
|
|
831
831
|
multiple: ""
|
|
832
832
|
}, {
|
|
833
833
|
default: r(() => [
|
|
834
|
-
|
|
834
|
+
i(te, {
|
|
835
835
|
"append-icon": `svg:${t(zt)}`,
|
|
836
836
|
"filter-icon": "$success",
|
|
837
837
|
text: "App Bar",
|
|
@@ -839,15 +839,15 @@ const ce = W("http", {
|
|
|
839
839
|
variant: "flat"
|
|
840
840
|
}, {
|
|
841
841
|
append: r(() => [
|
|
842
|
-
|
|
842
|
+
i(Z, {
|
|
843
843
|
class: "ms-2 border-opacity-50",
|
|
844
844
|
vertical: ""
|
|
845
845
|
}),
|
|
846
|
-
|
|
846
|
+
i(D, { size: "x-small" })
|
|
847
847
|
]),
|
|
848
848
|
_: 1
|
|
849
849
|
}, 8, ["append-icon"]),
|
|
850
|
-
|
|
850
|
+
i(te, {
|
|
851
851
|
"append-icon": `svg:${t(Ft)}`,
|
|
852
852
|
"filter-icon": "$success",
|
|
853
853
|
text: "Navigation Drawer",
|
|
@@ -855,15 +855,15 @@ const ce = W("http", {
|
|
|
855
855
|
variant: "flat"
|
|
856
856
|
}, {
|
|
857
857
|
append: r(() => [
|
|
858
|
-
|
|
858
|
+
i(Z, {
|
|
859
859
|
class: "ms-2 border-opacity-50",
|
|
860
860
|
vertical: ""
|
|
861
861
|
}),
|
|
862
|
-
|
|
862
|
+
i(D, { size: "x-small" })
|
|
863
863
|
]),
|
|
864
864
|
_: 1
|
|
865
865
|
}, 8, ["append-icon"]),
|
|
866
|
-
|
|
866
|
+
i(te, {
|
|
867
867
|
"append-icon": "$info",
|
|
868
868
|
"filter-icon": "$success",
|
|
869
869
|
text: "Footer",
|
|
@@ -871,18 +871,18 @@ const ce = W("http", {
|
|
|
871
871
|
variant: "flat"
|
|
872
872
|
}, {
|
|
873
873
|
append: r(() => [
|
|
874
|
-
|
|
874
|
+
i(Z, {
|
|
875
875
|
class: "ms-2 border-opacity-50",
|
|
876
876
|
vertical: ""
|
|
877
877
|
}),
|
|
878
|
-
|
|
878
|
+
i(D, { size: "x-small" })
|
|
879
879
|
]),
|
|
880
880
|
_: 1
|
|
881
881
|
})
|
|
882
882
|
]),
|
|
883
883
|
_: 1
|
|
884
884
|
}, 8, ["modelValue"])
|
|
885
|
-
])) :
|
|
885
|
+
])) : S("", !0)
|
|
886
886
|
]),
|
|
887
887
|
_: 1
|
|
888
888
|
})
|
|
@@ -892,36 +892,36 @@ const ce = W("http", {
|
|
|
892
892
|
});
|
|
893
893
|
function ve() {
|
|
894
894
|
const c = mo();
|
|
895
|
-
return
|
|
895
|
+
return w(
|
|
896
896
|
() => c.query
|
|
897
897
|
);
|
|
898
898
|
}
|
|
899
899
|
const P = W("one", () => {
|
|
900
|
-
const c = ve(), e = Ne(), o = M(), a =
|
|
900
|
+
const c = ve(), e = Ne(), o = M(), a = ie(), n = O(!1), s = A(!1), l = A(), p = A([]), f = w(() => c.value.session_id), u = w(() => {
|
|
901
901
|
var x;
|
|
902
902
|
return (x = l.value) == null ? void 0 : x.items[0].plan.interval;
|
|
903
|
-
}), h =
|
|
903
|
+
}), h = w(() => {
|
|
904
904
|
var x;
|
|
905
905
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "stripe" && I.tierName.startsWith("sub_"));
|
|
906
|
-
}), b =
|
|
906
|
+
}), b = w(() => {
|
|
907
907
|
var x;
|
|
908
908
|
return !!((x = h.value) != null && x.tierName);
|
|
909
|
-
}), g =
|
|
909
|
+
}), g = w(() => {
|
|
910
910
|
var x;
|
|
911
911
|
return (x = h.value) == null ? void 0 : x.isActive;
|
|
912
|
-
}), V =
|
|
912
|
+
}), V = w(() => {
|
|
913
913
|
var x;
|
|
914
914
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.tierName.startsWith("sub_"));
|
|
915
|
-
}), m =
|
|
915
|
+
}), m = w(() => {
|
|
916
916
|
var x;
|
|
917
917
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "github");
|
|
918
|
-
}), v =
|
|
918
|
+
}), v = w(() => {
|
|
919
919
|
var x;
|
|
920
920
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "discord");
|
|
921
|
-
}), k =
|
|
921
|
+
}), k = w(() => {
|
|
922
922
|
var x;
|
|
923
923
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "patreon");
|
|
924
|
-
}), N =
|
|
924
|
+
}), N = w(() => {
|
|
925
925
|
var x;
|
|
926
926
|
return (x = o.user) == null ? void 0 : x.sponsorships.reduce((I, X) => {
|
|
927
927
|
if (!X.isActive || X.interval === "once" || X.platform === "stripe")
|
|
@@ -932,7 +932,7 @@ const P = W("one", () => {
|
|
|
932
932
|
});
|
|
933
933
|
qe(async () => {
|
|
934
934
|
f.value && await j();
|
|
935
|
-
}), B(
|
|
935
|
+
}), B(s, oe), B(f, (x) => {
|
|
936
936
|
x && j();
|
|
937
937
|
}, { immediate: !0 }), B(c, (x) => {
|
|
938
938
|
if (x.one !== "subscribe" || o.user)
|
|
@@ -956,7 +956,7 @@ const P = W("one", () => {
|
|
|
956
956
|
n.value = !1;
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
|
-
async function
|
|
959
|
+
async function re() {
|
|
960
960
|
window.open(`${a.url}/one/manage`, "_blank");
|
|
961
961
|
}
|
|
962
962
|
async function G(x) {
|
|
@@ -1031,7 +1031,7 @@ const P = W("one", () => {
|
|
|
1031
1031
|
monthlyTotal: N,
|
|
1032
1032
|
hasBilling: b,
|
|
1033
1033
|
isLoading: n,
|
|
1034
|
-
isOpen:
|
|
1034
|
+
isOpen: s,
|
|
1035
1035
|
isSubscriber: g,
|
|
1036
1036
|
github: m,
|
|
1037
1037
|
patreon: k,
|
|
@@ -1039,7 +1039,7 @@ const P = W("one", () => {
|
|
|
1039
1039
|
one: V,
|
|
1040
1040
|
activate: j,
|
|
1041
1041
|
cancel: Se,
|
|
1042
|
-
manage:
|
|
1042
|
+
manage: re,
|
|
1043
1043
|
modify: Ce,
|
|
1044
1044
|
resetQuery: oe,
|
|
1045
1045
|
subscribe: G,
|
|
@@ -1204,7 +1204,7 @@ function Wo() {
|
|
|
1204
1204
|
};
|
|
1205
1205
|
}
|
|
1206
1206
|
const Ke = W("settings", () => {
|
|
1207
|
-
const c = "https://cdn.vuetifyjs.com/docs/images/one/", e = M(), o = F(), a = Xe(), n = Wo(),
|
|
1207
|
+
const c = "https://cdn.vuetifyjs.com/docs/images/one/", e = M(), o = F(), a = Xe(), n = Wo(), s = {
|
|
1208
1208
|
blackguard: {
|
|
1209
1209
|
"app-bar": c + "suits/blackguard/blackguard-app-bar.png",
|
|
1210
1210
|
drawer: c + "suits/blackguard/blackguard-app-drawer.png",
|
|
@@ -1220,10 +1220,10 @@ const Ke = W("settings", () => {
|
|
|
1220
1220
|
drawer: c + "suits/nebula/nebula-app-drawer.png",
|
|
1221
1221
|
footer: c + "suits/nebula/nebula-app-footer.png"
|
|
1222
1222
|
}
|
|
1223
|
-
}, l =
|
|
1223
|
+
}, l = w(() => {
|
|
1224
1224
|
if (!o.suits.suit || !o.suits.show || !e.isSubscriber)
|
|
1225
1225
|
return {};
|
|
1226
|
-
const p =
|
|
1226
|
+
const p = s[o.suits.suit.toLowerCase()], f = {};
|
|
1227
1227
|
for (const u of o.suits.elements)
|
|
1228
1228
|
f[u] = p[u];
|
|
1229
1229
|
return f;
|
|
@@ -1232,7 +1232,7 @@ const Ke = W("settings", () => {
|
|
|
1232
1232
|
...a.themes.value,
|
|
1233
1233
|
...n
|
|
1234
1234
|
}, B(() => o.theme, (p) => {
|
|
1235
|
-
p === "system" ? a.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (a.global.name.value = p, o.suits.suit =
|
|
1235
|
+
p === "system" ? a.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (a.global.name.value = p, o.suits.suit = s[p] ? p : ""), o.theme = p;
|
|
1236
1236
|
}, { immediate: !0 }), {
|
|
1237
1237
|
suit: l,
|
|
1238
1238
|
CDN_URL: c
|
|
@@ -1245,7 +1245,7 @@ const Ke = W("settings", () => {
|
|
|
1245
1245
|
},
|
|
1246
1246
|
emits: ["update:modelValue"],
|
|
1247
1247
|
setup(c) {
|
|
1248
|
-
const e =
|
|
1248
|
+
const e = le(c, "modelValue"), o = M(), a = P(), n = Ke(), s = F(), l = [
|
|
1249
1249
|
{
|
|
1250
1250
|
title: "Light",
|
|
1251
1251
|
subtitle: "A standard light theme.",
|
|
@@ -1308,37 +1308,37 @@ const Ke = W("settings", () => {
|
|
|
1308
1308
|
title: "Settings"
|
|
1309
1309
|
}, {
|
|
1310
1310
|
default: r(() => [
|
|
1311
|
-
|
|
1311
|
+
i(ke, null, {
|
|
1312
1312
|
default: r(() => [
|
|
1313
|
-
|
|
1313
|
+
i($e, { scrollable: "" }, {
|
|
1314
1314
|
default: r(() => [
|
|
1315
|
-
|
|
1315
|
+
i(_e, { class: "px-7" }, {
|
|
1316
1316
|
default: r(() => [
|
|
1317
|
-
|
|
1317
|
+
i(h, {
|
|
1318
1318
|
text: "Customize your documentation experience with light and dark themes, as well as a combination of both named.",
|
|
1319
1319
|
title: "Theme"
|
|
1320
1320
|
}),
|
|
1321
|
-
|
|
1322
|
-
modelValue: t(
|
|
1323
|
-
"onUpdate:modelValue": u[0] || (u[0] = (m) => t(
|
|
1321
|
+
i(pt, {
|
|
1322
|
+
modelValue: t(s).theme,
|
|
1323
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => t(s).theme = m),
|
|
1324
1324
|
mandatory: ""
|
|
1325
1325
|
}, {
|
|
1326
1326
|
default: r(() => [
|
|
1327
|
-
|
|
1327
|
+
i(de, { dense: "" }, {
|
|
1328
1328
|
default: r(() => [
|
|
1329
|
-
(d(), L(U, null, ne(l, (m, v) =>
|
|
1329
|
+
(d(), L(U, null, ne(l, (m, v) => i(K, {
|
|
1330
1330
|
key: v,
|
|
1331
1331
|
cols: "12",
|
|
1332
1332
|
md: "6"
|
|
1333
1333
|
}, {
|
|
1334
1334
|
default: r(() => [
|
|
1335
|
-
|
|
1335
|
+
i(Re, {
|
|
1336
1336
|
value: m.value
|
|
1337
1337
|
}, {
|
|
1338
1338
|
default: r(({ toggle: k, isSelected: N }) => [
|
|
1339
|
-
|
|
1340
|
-
default: r(({ props: j, isHovering:
|
|
1341
|
-
|
|
1339
|
+
i(ze, null, {
|
|
1340
|
+
default: r(({ props: j, isHovering: re }) => [
|
|
1341
|
+
i(E, H({
|
|
1342
1342
|
color: N ? "primary" : "surface-variant",
|
|
1343
1343
|
disabled: m.disabled,
|
|
1344
1344
|
height: "76",
|
|
@@ -1350,9 +1350,9 @@ const Ke = W("settings", () => {
|
|
|
1350
1350
|
variant: "tonal"
|
|
1351
1351
|
}, j, { onClick: k }), {
|
|
1352
1352
|
image: r(() => [
|
|
1353
|
-
|
|
1353
|
+
i(Y, {
|
|
1354
1354
|
style: ot({
|
|
1355
|
-
filter: N ||
|
|
1355
|
+
filter: N || re ? "none" : "grayscale(100%)"
|
|
1356
1356
|
})
|
|
1357
1357
|
}, null, 8, ["style"])
|
|
1358
1358
|
]),
|
|
@@ -1374,68 +1374,68 @@ const Ke = W("settings", () => {
|
|
|
1374
1374
|
_: 1
|
|
1375
1375
|
}, 8, ["modelValue"]),
|
|
1376
1376
|
t(o).isSubscriber ? (d(), L(U, { key: 0 }, [
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
], 64)) :
|
|
1377
|
+
i(Z, { class: "mt-6 mb-4" }),
|
|
1378
|
+
i(b)
|
|
1379
|
+
], 64)) : S("", !0)
|
|
1380
1380
|
]),
|
|
1381
1381
|
_: 1
|
|
1382
1382
|
}),
|
|
1383
|
-
|
|
1384
|
-
|
|
1383
|
+
i(Z),
|
|
1384
|
+
i(_e, { class: "px-7" }, {
|
|
1385
1385
|
default: r(() => [
|
|
1386
|
-
|
|
1386
|
+
i(h, {
|
|
1387
1387
|
text: "These options change your browsing experience within Vuetify properties",
|
|
1388
1388
|
title: "Experience"
|
|
1389
1389
|
}),
|
|
1390
1390
|
t(o).isSubscriber ? (d(), _(g, {
|
|
1391
1391
|
key: 0,
|
|
1392
|
-
modelValue: t(
|
|
1393
|
-
"onUpdate:modelValue": u[1] || (u[1] = (m) => t(
|
|
1392
|
+
modelValue: t(s).disableAds,
|
|
1393
|
+
"onUpdate:modelValue": u[1] || (u[1] = (m) => t(s).disableAds = m),
|
|
1394
1394
|
class: "mb-2",
|
|
1395
1395
|
label: "Disable Ads",
|
|
1396
1396
|
messages: "Disable traditional advertisements on all documentation pages."
|
|
1397
|
-
}, null, 8, ["modelValue"])) :
|
|
1398
|
-
|
|
1399
|
-
modelValue: t(
|
|
1400
|
-
"onUpdate:modelValue": u[2] || (u[2] = (m) => t(
|
|
1397
|
+
}, null, 8, ["modelValue"])) : S("", !0),
|
|
1398
|
+
i(g, {
|
|
1399
|
+
modelValue: t(s).quickbar,
|
|
1400
|
+
"onUpdate:modelValue": u[2] || (u[2] = (m) => t(s).quickbar = m),
|
|
1401
1401
|
label: "Enable Quick Actions",
|
|
1402
1402
|
messages: "Quick actions are located on the Vuetify One user menu and provide quick access to common tasks."
|
|
1403
1403
|
}, null, 8, ["modelValue"])
|
|
1404
1404
|
]),
|
|
1405
1405
|
_: 1
|
|
1406
1406
|
}),
|
|
1407
|
-
|
|
1407
|
+
i(Z),
|
|
1408
1408
|
t(o).isSubscriber ? (d(), _(_e, {
|
|
1409
1409
|
key: 0,
|
|
1410
1410
|
class: "px-7"
|
|
1411
1411
|
}, {
|
|
1412
1412
|
default: r(() => [
|
|
1413
|
-
|
|
1413
|
+
i(h, {
|
|
1414
1414
|
text: "Vuetify will communicate with you through banners and notifications. You can disable these features here or reset your local notification cache.",
|
|
1415
1415
|
title: "Communication"
|
|
1416
1416
|
}),
|
|
1417
|
-
|
|
1418
|
-
modelValue: t(
|
|
1419
|
-
"onUpdate:modelValue": u[3] || (u[3] = (m) => t(
|
|
1417
|
+
i(g, {
|
|
1418
|
+
modelValue: t(s).notifications.show,
|
|
1419
|
+
"onUpdate:modelValue": u[3] || (u[3] = (m) => t(s).notifications.show = m),
|
|
1420
1420
|
class: "mb-2",
|
|
1421
1421
|
label: "Enable Notifications",
|
|
1422
1422
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
1423
1423
|
}, null, 8, ["modelValue"]),
|
|
1424
|
-
|
|
1424
|
+
i(me, null, {
|
|
1425
1425
|
default: r(() => [
|
|
1426
|
-
t(
|
|
1426
|
+
t(s).notifications.show ? (d(), _(g, {
|
|
1427
1427
|
key: 0,
|
|
1428
|
-
modelValue: t(
|
|
1429
|
-
"onUpdate:modelValue": u[4] || (u[4] = (m) => t(
|
|
1428
|
+
modelValue: t(s).notifications.banners,
|
|
1429
|
+
"onUpdate:modelValue": u[4] || (u[4] = (m) => t(s).notifications.banners = m),
|
|
1430
1430
|
label: "Enable Banners",
|
|
1431
1431
|
messages: "Banners are located at the top of the screen and provide a callout for important information."
|
|
1432
|
-
}, null, 8, ["modelValue"])) :
|
|
1432
|
+
}, null, 8, ["modelValue"])) : S("", !0)
|
|
1433
1433
|
]),
|
|
1434
1434
|
_: 1
|
|
1435
1435
|
})
|
|
1436
1436
|
]),
|
|
1437
1437
|
_: 1
|
|
1438
|
-
})) :
|
|
1438
|
+
})) : S("", !0)
|
|
1439
1439
|
]),
|
|
1440
1440
|
_: 1
|
|
1441
1441
|
})
|
|
@@ -1450,17 +1450,17 @@ const Ke = W("settings", () => {
|
|
|
1450
1450
|
}), Zo = /* @__PURE__ */ $({
|
|
1451
1451
|
__name: "VoSettingsListItem",
|
|
1452
1452
|
setup(c) {
|
|
1453
|
-
const e =
|
|
1453
|
+
const e = O(!1);
|
|
1454
1454
|
return (o, a) => {
|
|
1455
|
-
const n = Go,
|
|
1456
|
-
return d(), _(
|
|
1455
|
+
const n = Go, s = J;
|
|
1456
|
+
return d(), _(s, {
|
|
1457
1457
|
active: t(e),
|
|
1458
1458
|
link: "",
|
|
1459
1459
|
"prepend-icon": `svg:${t(Et)}`,
|
|
1460
1460
|
title: "Settings"
|
|
1461
1461
|
}, {
|
|
1462
1462
|
default: r(() => [
|
|
1463
|
-
|
|
1463
|
+
i(n, {
|
|
1464
1464
|
modelValue: t(e),
|
|
1465
1465
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => se(e) ? e.value = l : null)
|
|
1466
1466
|
}, null, 8, ["modelValue"])
|
|
@@ -1474,22 +1474,22 @@ const Ke = W("settings", () => {
|
|
|
1474
1474
|
setup(c) {
|
|
1475
1475
|
const e = Ue(), o = P();
|
|
1476
1476
|
return (a, n) => {
|
|
1477
|
-
const
|
|
1477
|
+
const s = we;
|
|
1478
1478
|
return d(), _(de, null, {
|
|
1479
1479
|
default: r(() => [
|
|
1480
|
-
|
|
1480
|
+
i(K, { cols: "12" }, {
|
|
1481
1481
|
default: r(() => [
|
|
1482
|
-
s
|
|
1482
|
+
i(s, {
|
|
1483
1483
|
text: "View and download your invoice history.",
|
|
1484
1484
|
title: "Invoice History"
|
|
1485
1485
|
}),
|
|
1486
|
-
|
|
1486
|
+
i(E, {
|
|
1487
1487
|
border: "",
|
|
1488
1488
|
height: "450",
|
|
1489
1489
|
rounded: "lg"
|
|
1490
1490
|
}, {
|
|
1491
1491
|
default: r(() => [
|
|
1492
|
-
|
|
1492
|
+
i(Vo, {
|
|
1493
1493
|
items: t(o).invoices,
|
|
1494
1494
|
loading: t(o).isLoading,
|
|
1495
1495
|
sticky: ""
|
|
@@ -1501,7 +1501,7 @@ const Ke = W("settings", () => {
|
|
|
1501
1501
|
T(" $" + C(l.amount / 100), 1)
|
|
1502
1502
|
]),
|
|
1503
1503
|
"item.status": r(({ item: l }) => [
|
|
1504
|
-
|
|
1504
|
+
i(te, {
|
|
1505
1505
|
border: "success sm",
|
|
1506
1506
|
class: "text-capitalize",
|
|
1507
1507
|
color: "success",
|
|
@@ -1512,7 +1512,7 @@ const Ke = W("settings", () => {
|
|
|
1512
1512
|
}, null, 8, ["text"])
|
|
1513
1513
|
]),
|
|
1514
1514
|
"item.pdf": r(({ item: l }) => [
|
|
1515
|
-
|
|
1515
|
+
i(q, {
|
|
1516
1516
|
href: l.pdf,
|
|
1517
1517
|
icon: `svg:${t(qt)}`,
|
|
1518
1518
|
size: "small",
|
|
@@ -1540,7 +1540,7 @@ const Ke = W("settings", () => {
|
|
|
1540
1540
|
__name: "VoSubscriptionStatus",
|
|
1541
1541
|
emits: ["change:subscription"],
|
|
1542
1542
|
setup(c, { emit: e }) {
|
|
1543
|
-
const o = Ue(), a = P(), n = e,
|
|
1543
|
+
const o = Ue(), a = P(), n = e, s = w(() => {
|
|
1544
1544
|
if (!a.info)
|
|
1545
1545
|
return;
|
|
1546
1546
|
const p = new Date(a.info.currentPeriodEnd * 1e3);
|
|
@@ -1553,11 +1553,11 @@ const Ke = W("settings", () => {
|
|
|
1553
1553
|
const u = fe;
|
|
1554
1554
|
return d(), _(de, null, {
|
|
1555
1555
|
default: r(() => [
|
|
1556
|
-
|
|
1556
|
+
i(K, { cols: "12" }, {
|
|
1557
1557
|
default: r(() => {
|
|
1558
1558
|
var h, b;
|
|
1559
1559
|
return [
|
|
1560
|
-
|
|
1560
|
+
i(E, {
|
|
1561
1561
|
border: "",
|
|
1562
1562
|
flat: "",
|
|
1563
1563
|
"prepend-icon": "$vuetify",
|
|
@@ -1576,14 +1576,14 @@ const Ke = W("settings", () => {
|
|
|
1576
1576
|
text: "Activate",
|
|
1577
1577
|
variant: "outlined",
|
|
1578
1578
|
onClick: l
|
|
1579
|
-
}, null, 8, ["loading"])) :
|
|
1579
|
+
}, null, 8, ["loading"])) : S("", !0),
|
|
1580
1580
|
t(a).hasBilling ? (d(), _(u, {
|
|
1581
1581
|
key: 1,
|
|
1582
1582
|
loading: t(a).isLoading,
|
|
1583
1583
|
"prepend-icon": `svg:${t(Wt)}`,
|
|
1584
1584
|
text: "Billing",
|
|
1585
1585
|
onClick: t(a).manage
|
|
1586
|
-
}, null, 8, ["loading", "prepend-icon", "onClick"])) :
|
|
1586
|
+
}, null, 8, ["loading", "prepend-icon", "onClick"])) : S("", !0)
|
|
1587
1587
|
];
|
|
1588
1588
|
}),
|
|
1589
1589
|
_: 2
|
|
@@ -1599,13 +1599,13 @@ const Ke = W("settings", () => {
|
|
|
1599
1599
|
T(" $" + C(t(a).info.items[0].plan.amount / 100), 1),
|
|
1600
1600
|
y("span", tn, "/" + C(t(a).interval), 1)
|
|
1601
1601
|
]),
|
|
1602
|
-
|
|
1602
|
+
i(u, {
|
|
1603
1603
|
size: "x-small",
|
|
1604
1604
|
text: "(Change Subscription)",
|
|
1605
1605
|
variant: "text",
|
|
1606
1606
|
onClick: f[0] || (f[0] = (g) => n("change:subscription"))
|
|
1607
1607
|
})
|
|
1608
|
-
], 64)) :
|
|
1608
|
+
], 64)) : S("", !0)
|
|
1609
1609
|
])
|
|
1610
1610
|
]),
|
|
1611
1611
|
key: "0"
|
|
@@ -1613,13 +1613,13 @@ const Ke = W("settings", () => {
|
|
|
1613
1613
|
name: "subtitle",
|
|
1614
1614
|
fn: r(() => [
|
|
1615
1615
|
y("div", { class: "d-flex align-center" }, [
|
|
1616
|
-
|
|
1616
|
+
i(be, {
|
|
1617
1617
|
height: "16",
|
|
1618
1618
|
type: "ossein",
|
|
1619
1619
|
width: "40"
|
|
1620
1620
|
}),
|
|
1621
1621
|
y("span", { class: "mx-1" }, "—"),
|
|
1622
|
-
|
|
1622
|
+
i(be, {
|
|
1623
1623
|
height: "16",
|
|
1624
1624
|
type: "ossein",
|
|
1625
1625
|
width: "80"
|
|
@@ -1633,7 +1633,7 @@ const Ke = W("settings", () => {
|
|
|
1633
1633
|
y("div", null, [
|
|
1634
1634
|
((h = t(a).info) == null ? void 0 : h.status) === "active" ? (d(), L(U, { key: 0 }, [
|
|
1635
1635
|
T(" Your plan renews on "),
|
|
1636
|
-
y("span", nn, C(t(o).format(t(
|
|
1636
|
+
y("span", nn, C(t(o).format(t(s), "fullDateWithWeekday")), 1),
|
|
1637
1637
|
T(". ")
|
|
1638
1638
|
], 64)) : (d(), L(U, { key: 1 }, [
|
|
1639
1639
|
T(" Your plan ends on "),
|
|
@@ -1664,33 +1664,33 @@ const Ke = W("settings", () => {
|
|
|
1664
1664
|
'Special role in the <a href="https://discord.vuetifyjs.com/" target="_blank">Vuetify Discord</a>',
|
|
1665
1665
|
'Save and share your playgrounds with <a href="https://play.vuetifyjs.com" target="_blank">Vuetify Play</a>',
|
|
1666
1666
|
"Receive a special label on GitHub created issues and pull requests"
|
|
1667
|
-
], a =
|
|
1668
|
-
return B(a, async (
|
|
1669
|
-
|
|
1670
|
-
}), (
|
|
1667
|
+
], a = O(!1), n = P();
|
|
1668
|
+
return B(a, async (s) => {
|
|
1669
|
+
s && n.subscriptionInfo();
|
|
1670
|
+
}), (s, l) => {
|
|
1671
1671
|
const p = J;
|
|
1672
1672
|
return d(), L(U, null, [
|
|
1673
|
-
|
|
1673
|
+
i(He, { class: "font-weight-black" }, {
|
|
1674
1674
|
default: r(() => [
|
|
1675
1675
|
T("Perks")
|
|
1676
1676
|
]),
|
|
1677
1677
|
_: 1
|
|
1678
1678
|
}),
|
|
1679
1679
|
rn,
|
|
1680
|
-
|
|
1680
|
+
i(ae, {
|
|
1681
1681
|
class: "py-0",
|
|
1682
1682
|
density: "compact",
|
|
1683
1683
|
lines: !1,
|
|
1684
1684
|
nav: ""
|
|
1685
1685
|
}, {
|
|
1686
1686
|
default: r(() => [
|
|
1687
|
-
(d(), L(U, null, ne(e, (f, u) =>
|
|
1687
|
+
(d(), L(U, null, ne(e, (f, u) => i(p, {
|
|
1688
1688
|
key: u,
|
|
1689
1689
|
class: "mb-0",
|
|
1690
1690
|
"prepend-icon": `svg:${t(Ae)}`
|
|
1691
1691
|
}, {
|
|
1692
1692
|
prepend: r(() => [
|
|
1693
|
-
|
|
1693
|
+
i(D, {
|
|
1694
1694
|
class: "mx-n2",
|
|
1695
1695
|
color: "success",
|
|
1696
1696
|
size: "small"
|
|
@@ -1705,27 +1705,27 @@ const Ke = W("settings", () => {
|
|
|
1705
1705
|
_: 1
|
|
1706
1706
|
}),
|
|
1707
1707
|
cn,
|
|
1708
|
-
|
|
1708
|
+
i(He, { class: "font-weight-black" }, {
|
|
1709
1709
|
default: r(() => [
|
|
1710
1710
|
T("Up Next")
|
|
1711
1711
|
]),
|
|
1712
1712
|
_: 1
|
|
1713
1713
|
}),
|
|
1714
1714
|
un,
|
|
1715
|
-
|
|
1715
|
+
i(ae, {
|
|
1716
1716
|
class: "py-0",
|
|
1717
1717
|
density: "compact",
|
|
1718
1718
|
lines: !1,
|
|
1719
1719
|
nav: ""
|
|
1720
1720
|
}, {
|
|
1721
1721
|
default: r(() => [
|
|
1722
|
-
(d(), L(U, null, ne(o, (f, u) =>
|
|
1722
|
+
(d(), L(U, null, ne(o, (f, u) => i(p, {
|
|
1723
1723
|
key: u,
|
|
1724
1724
|
class: "mb-0",
|
|
1725
1725
|
"prepend-icon": `svg:${t(Gt)}`
|
|
1726
1726
|
}, {
|
|
1727
1727
|
prepend: r(() => [
|
|
1728
|
-
|
|
1728
|
+
i(D, {
|
|
1729
1729
|
class: "mx-n2",
|
|
1730
1730
|
size: "small"
|
|
1731
1731
|
})
|
|
@@ -1751,27 +1751,27 @@ const Ke = W("settings", () => {
|
|
|
1751
1751
|
},
|
|
1752
1752
|
emits: ["update:modelValue"],
|
|
1753
1753
|
setup(c) {
|
|
1754
|
-
const e =
|
|
1754
|
+
const e = O(!1), o = le(c, "modelValue"), a = P();
|
|
1755
1755
|
return B(e, async (n) => {
|
|
1756
1756
|
n && a.subscriptionInfo();
|
|
1757
1757
|
}), B(() => a.interval, (n) => {
|
|
1758
1758
|
o.value = n;
|
|
1759
|
-
}, { immediate: !0 }), (n,
|
|
1759
|
+
}, { immediate: !0 }), (n, s) => (d(), _(pt, {
|
|
1760
1760
|
modelValue: o.value,
|
|
1761
|
-
"onUpdate:modelValue":
|
|
1761
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => o.value = l),
|
|
1762
1762
|
mandatory: ""
|
|
1763
1763
|
}, {
|
|
1764
1764
|
default: r(() => [
|
|
1765
|
-
|
|
1765
|
+
i(de, null, {
|
|
1766
1766
|
default: r(() => [
|
|
1767
|
-
|
|
1767
|
+
i(K, {
|
|
1768
1768
|
cols: "12",
|
|
1769
1769
|
md: "6"
|
|
1770
1770
|
}, {
|
|
1771
1771
|
default: r(() => [
|
|
1772
|
-
|
|
1772
|
+
i(Re, { value: "month" }, {
|
|
1773
1773
|
default: r(({ toggle: l, isSelected: p }) => [
|
|
1774
|
-
|
|
1774
|
+
i(E, {
|
|
1775
1775
|
border: p ? "sm primary opacity-100" : "sm",
|
|
1776
1776
|
color: p ? "primary" : void 0,
|
|
1777
1777
|
"prepend-icon": p ? `svg:${t(Ie)}` : "$radioOff",
|
|
@@ -1782,7 +1782,7 @@ const Ke = W("settings", () => {
|
|
|
1782
1782
|
onClick: l
|
|
1783
1783
|
}, {
|
|
1784
1784
|
prepend: r(() => [
|
|
1785
|
-
|
|
1785
|
+
i(D, { class: "mt-n6" })
|
|
1786
1786
|
]),
|
|
1787
1787
|
_: 2
|
|
1788
1788
|
}, 1032, ["border", "color", "prepend-icon", "variant", "onClick"])
|
|
@@ -1792,14 +1792,14 @@ const Ke = W("settings", () => {
|
|
|
1792
1792
|
]),
|
|
1793
1793
|
_: 1
|
|
1794
1794
|
}),
|
|
1795
|
-
|
|
1795
|
+
i(K, {
|
|
1796
1796
|
cols: "12",
|
|
1797
1797
|
md: "6"
|
|
1798
1798
|
}, {
|
|
1799
1799
|
default: r(() => [
|
|
1800
|
-
|
|
1800
|
+
i(Re, { value: "year" }, {
|
|
1801
1801
|
default: r(({ toggle: l, isSelected: p }) => [
|
|
1802
|
-
|
|
1802
|
+
i(E, {
|
|
1803
1803
|
border: p ? "sm primary opacity-100" : "sm",
|
|
1804
1804
|
color: p ? "primary" : void 0,
|
|
1805
1805
|
"prepend-icon": p ? `svg:${t(Ie)}` : "$radioOff",
|
|
@@ -1810,10 +1810,10 @@ const Ke = W("settings", () => {
|
|
|
1810
1810
|
onClick: l
|
|
1811
1811
|
}, {
|
|
1812
1812
|
prepend: r(() => [
|
|
1813
|
-
|
|
1813
|
+
i(D, { class: "mt-n6" })
|
|
1814
1814
|
]),
|
|
1815
1815
|
append: r(() => [
|
|
1816
|
-
|
|
1816
|
+
i(te, {
|
|
1817
1817
|
class: "mt-n6",
|
|
1818
1818
|
color: "success",
|
|
1819
1819
|
size: "small",
|
|
@@ -1847,8 +1847,8 @@ const Ke = W("settings", () => {
|
|
|
1847
1847
|
function e(u) {
|
|
1848
1848
|
return new Promise((h) => setTimeout(h, u));
|
|
1849
1849
|
}
|
|
1850
|
-
const o =
|
|
1851
|
-
B(
|
|
1850
|
+
const o = le(c, "modelValue"), a = P(), n = ve(), s = O(a.interval), l = O(a.hasBilling ? "status" : "subscribe"), p = O(!1);
|
|
1851
|
+
B(s, (u) => {
|
|
1852
1852
|
!a.isSubscriber || !a.interval || (p.value = u !== a.interval);
|
|
1853
1853
|
}), B(o, async (u) => {
|
|
1854
1854
|
if (!u || !a.isSubscriber) {
|
|
@@ -1860,7 +1860,7 @@ const Ke = W("settings", () => {
|
|
|
1860
1860
|
!a.sessionId && !["subscribe", "status"].includes(n.value.one) || (l.value = a.sessionId || n.value.one === "status" ? "status" : "subscribe", a.isOpen = !0, await pe(), o.value = !0);
|
|
1861
1861
|
}, { immediate: !0 });
|
|
1862
1862
|
async function f() {
|
|
1863
|
-
await a.modify(
|
|
1863
|
+
await a.modify(s.value), await a.subscriptionInfo(), p.value = null, await e(3e3), l.value = "status", await e(300), p.value = !1;
|
|
1864
1864
|
}
|
|
1865
1865
|
return (u, h) => {
|
|
1866
1866
|
const b = we, g = mn, V = pn, m = an, v = Yo, k = fe, N = xe;
|
|
@@ -1871,36 +1871,36 @@ const Ke = W("settings", () => {
|
|
|
1871
1871
|
title: "Subscriptions"
|
|
1872
1872
|
}, R({
|
|
1873
1873
|
default: r(() => [
|
|
1874
|
-
|
|
1874
|
+
i(ke, null, {
|
|
1875
1875
|
default: r(() => [
|
|
1876
|
-
|
|
1876
|
+
i($e, { scrollable: "" }, {
|
|
1877
1877
|
default: r(() => [
|
|
1878
1878
|
y("div", fn, [
|
|
1879
|
-
|
|
1879
|
+
i(_e, null, {
|
|
1880
1880
|
default: r(() => [
|
|
1881
|
-
|
|
1881
|
+
i(b, {
|
|
1882
1882
|
text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
|
|
1883
1883
|
title: "Vuetify One"
|
|
1884
1884
|
}),
|
|
1885
|
-
|
|
1885
|
+
i(mt, { "model-value": t(l) }, {
|
|
1886
1886
|
default: r(() => [
|
|
1887
|
-
|
|
1887
|
+
i(ge, { value: "subscribe" }, {
|
|
1888
1888
|
default: r(() => [
|
|
1889
|
-
|
|
1890
|
-
modelValue: t(
|
|
1891
|
-
"onUpdate:modelValue": h[0] || (h[0] = (j) => se(
|
|
1889
|
+
i(g, {
|
|
1890
|
+
modelValue: t(s),
|
|
1891
|
+
"onUpdate:modelValue": h[0] || (h[0] = (j) => se(s) ? s.value = j : null)
|
|
1892
1892
|
}, null, 8, ["modelValue"]),
|
|
1893
1893
|
vn,
|
|
1894
|
-
|
|
1894
|
+
i(V)
|
|
1895
1895
|
]),
|
|
1896
1896
|
_: 1
|
|
1897
1897
|
}),
|
|
1898
|
-
|
|
1898
|
+
i(ge, { value: "status" }, {
|
|
1899
1899
|
default: r(() => [
|
|
1900
|
-
|
|
1900
|
+
i(m, {
|
|
1901
1901
|
"onChange:subscription": h[1] || (h[1] = (j) => l.value = "subscribe")
|
|
1902
1902
|
}),
|
|
1903
|
-
|
|
1903
|
+
i(v)
|
|
1904
1904
|
]),
|
|
1905
1905
|
_: 1
|
|
1906
1906
|
})
|
|
@@ -1944,13 +1944,13 @@ const Ke = W("settings", () => {
|
|
|
1944
1944
|
}, null, 8, ["prepend-icon"])) : (d(), _(k, {
|
|
1945
1945
|
key: 1,
|
|
1946
1946
|
block: "",
|
|
1947
|
-
color: t(
|
|
1948
|
-
disabled: !t(
|
|
1947
|
+
color: t(s) ? "primary" : "disabled",
|
|
1948
|
+
disabled: !t(s),
|
|
1949
1949
|
loading: t(a).isLoading,
|
|
1950
1950
|
"prepend-icon": "$vuetify",
|
|
1951
1951
|
size: "default",
|
|
1952
1952
|
text: "Activate Subscription",
|
|
1953
|
-
onClick: h[2] || (h[2] = (j) => t(a).subscribe(t(
|
|
1953
|
+
onClick: h[2] || (h[2] = (j) => t(a).subscribe(t(s)))
|
|
1954
1954
|
}, null, 8, ["color", "disabled", "loading"]))
|
|
1955
1955
|
])
|
|
1956
1956
|
]),
|
|
@@ -1962,17 +1962,17 @@ const Ke = W("settings", () => {
|
|
|
1962
1962
|
}), gn = /* @__PURE__ */ $({
|
|
1963
1963
|
__name: "VoSubscriptionListItem",
|
|
1964
1964
|
setup(c) {
|
|
1965
|
-
const e =
|
|
1965
|
+
const e = O(!1);
|
|
1966
1966
|
return (o, a) => {
|
|
1967
|
-
const n = _n,
|
|
1968
|
-
return d(), _(
|
|
1967
|
+
const n = _n, s = J;
|
|
1968
|
+
return d(), _(s, {
|
|
1969
1969
|
active: t(e),
|
|
1970
1970
|
link: "",
|
|
1971
1971
|
"prepend-icon": `svg:${t(Jt)}`,
|
|
1972
1972
|
title: "Subscriptions"
|
|
1973
1973
|
}, {
|
|
1974
1974
|
default: r(() => [
|
|
1975
|
-
|
|
1975
|
+
i(n, {
|
|
1976
1976
|
modelValue: t(e),
|
|
1977
1977
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => se(e) ? e.value = l : null)
|
|
1978
1978
|
}, null, 8, ["modelValue"])
|
|
@@ -1996,11 +1996,11 @@ const Ke = W("settings", () => {
|
|
|
1996
1996
|
sponsorship: {}
|
|
1997
1997
|
},
|
|
1998
1998
|
setup(c) {
|
|
1999
|
-
const e = c, o = Ke(), a =
|
|
2000
|
-
var
|
|
2001
|
-
return `$${parseFloat(String((((
|
|
1999
|
+
const e = c, o = Ke(), a = w(() => {
|
|
2000
|
+
var s, l;
|
|
2001
|
+
return `$${parseFloat(String((((s = e.sponsorship) == null ? void 0 : s.amount) ?? 0) / 100)).toFixed(2)} /${(l = e.sponsorship) == null ? void 0 : l.interval}`;
|
|
2002
2002
|
});
|
|
2003
|
-
return (n,
|
|
2003
|
+
return (n, s) => {
|
|
2004
2004
|
var p, f;
|
|
2005
2005
|
const l = fe;
|
|
2006
2006
|
return d(), _(ko, {
|
|
@@ -2010,7 +2010,7 @@ const Ke = W("settings", () => {
|
|
|
2010
2010
|
width: "100%"
|
|
2011
2011
|
}, {
|
|
2012
2012
|
default: r(() => [
|
|
2013
|
-
|
|
2013
|
+
i(E, {
|
|
2014
2014
|
border: "",
|
|
2015
2015
|
"prepend-avatar": `${t(o).CDN_URL}logos/${n.logo}.png`,
|
|
2016
2016
|
rounded: "lg",
|
|
@@ -2021,7 +2021,7 @@ const Ke = W("settings", () => {
|
|
|
2021
2021
|
var u;
|
|
2022
2022
|
return [
|
|
2023
2023
|
(u = n.sponsorship) != null && u.isActive ? (d(), L("div", yn, [
|
|
2024
|
-
|
|
2024
|
+
i(D, {
|
|
2025
2025
|
icon: `svg:${t(Xt)}`,
|
|
2026
2026
|
size: "x-small"
|
|
2027
2027
|
}, null, 8, ["icon"]),
|
|
@@ -2122,7 +2122,7 @@ const Ke = W("settings", () => {
|
|
|
2122
2122
|
__name: "VoSponsorshipsTimeline",
|
|
2123
2123
|
setup(c) {
|
|
2124
2124
|
return (e, o) => {
|
|
2125
|
-
const a = $n, n = kn,
|
|
2125
|
+
const a = $n, n = kn, s = Vn, l = bn;
|
|
2126
2126
|
return d(), _($o, {
|
|
2127
2127
|
class: "justify-start ms-n7",
|
|
2128
2128
|
"line-inset": "12",
|
|
@@ -2131,10 +2131,10 @@ const Ke = W("settings", () => {
|
|
|
2131
2131
|
"truncate-line": "both"
|
|
2132
2132
|
}, {
|
|
2133
2133
|
default: r(() => [
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
s
|
|
2137
|
-
|
|
2134
|
+
i(a),
|
|
2135
|
+
i(n),
|
|
2136
|
+
i(s),
|
|
2137
|
+
i(l)
|
|
2138
2138
|
]),
|
|
2139
2139
|
_: 1
|
|
2140
2140
|
});
|
|
@@ -2148,10 +2148,10 @@ const Ke = W("settings", () => {
|
|
|
2148
2148
|
},
|
|
2149
2149
|
emits: ["update:modelValue"],
|
|
2150
2150
|
setup(c) {
|
|
2151
|
-
const e =
|
|
2151
|
+
const e = le(c, "modelValue"), o = ve(), a = M(), n = P();
|
|
2152
2152
|
return B(o, async () => {
|
|
2153
2153
|
o.value.one === "sponsorships" && (n.isOpen = !0, await pe(), e.value = !0);
|
|
2154
|
-
}, { immediate: !0 }), (
|
|
2154
|
+
}, { immediate: !0 }), (s, l) => {
|
|
2155
2155
|
const p = we, f = xn, u = We("v-empty-state"), h = xe;
|
|
2156
2156
|
return d(), _(h, {
|
|
2157
2157
|
modelValue: e.value,
|
|
@@ -2160,29 +2160,29 @@ const Ke = W("settings", () => {
|
|
|
2160
2160
|
title: "Sponsorships"
|
|
2161
2161
|
}, {
|
|
2162
2162
|
default: r(() => [
|
|
2163
|
-
|
|
2163
|
+
i(ke, null, {
|
|
2164
2164
|
default: r(() => [
|
|
2165
|
-
|
|
2165
|
+
i($e, { scrollable: "" }, {
|
|
2166
2166
|
default: r(() => [
|
|
2167
2167
|
y("div", wn, [
|
|
2168
|
-
|
|
2168
|
+
i(_e, { class: "flex-0-0 mb-16 mb-sm-4" }, {
|
|
2169
2169
|
default: r(() => [
|
|
2170
|
-
|
|
2170
|
+
i(p, {
|
|
2171
2171
|
text: "Support Vuetify through GitHub Sponsors, Discord, or Patreon to unlock exclusive benefits and content.",
|
|
2172
2172
|
title: "Support Vuetify"
|
|
2173
2173
|
}),
|
|
2174
|
-
|
|
2174
|
+
i(f)
|
|
2175
2175
|
]),
|
|
2176
2176
|
_: 1
|
|
2177
2177
|
}),
|
|
2178
|
-
|
|
2178
|
+
i(u, {
|
|
2179
2179
|
class: "flex-1-0",
|
|
2180
2180
|
icon: "$vuetify",
|
|
2181
2181
|
"min-height": "auto",
|
|
2182
2182
|
size: "128"
|
|
2183
2183
|
}, {
|
|
2184
2184
|
media: r(() => [
|
|
2185
|
-
|
|
2185
|
+
i(D, {
|
|
2186
2186
|
color: t(a).isSubscriber ? "success" : "error"
|
|
2187
2187
|
}, null, 8, ["color"])
|
|
2188
2188
|
]),
|
|
@@ -2210,17 +2210,17 @@ const Ke = W("settings", () => {
|
|
|
2210
2210
|
}), In = /* @__PURE__ */ $({
|
|
2211
2211
|
__name: "VoSponsorshipsListItem",
|
|
2212
2212
|
setup(c) {
|
|
2213
|
-
const e =
|
|
2213
|
+
const e = O(!1);
|
|
2214
2214
|
return (o, a) => {
|
|
2215
|
-
const n = Ln,
|
|
2216
|
-
return d(), _(
|
|
2215
|
+
const n = Ln, s = J;
|
|
2216
|
+
return d(), _(s, {
|
|
2217
2217
|
active: t(e),
|
|
2218
2218
|
link: "",
|
|
2219
2219
|
"prepend-icon": `svg:${t(eo)}`,
|
|
2220
2220
|
title: "Sponsorships"
|
|
2221
2221
|
}, {
|
|
2222
2222
|
default: r(() => [
|
|
2223
|
-
|
|
2223
|
+
i(n, {
|
|
2224
2224
|
modelValue: t(e),
|
|
2225
2225
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => se(e) ? e.value = l : null)
|
|
2226
2226
|
}, null, 8, ["modelValue"])
|
|
@@ -2239,7 +2239,7 @@ const Ke = W("settings", () => {
|
|
|
2239
2239
|
}),
|
|
2240
2240
|
emits: ["update:modelValue"],
|
|
2241
2241
|
setup(c) {
|
|
2242
|
-
const e =
|
|
2242
|
+
const e = le(c, "modelValue"), o = ve(), a = Ne(), n = M(), s = P(), { smAndUp: l } = ce(), p = [
|
|
2243
2243
|
{
|
|
2244
2244
|
title: "Customize",
|
|
2245
2245
|
subtitle: "Customize your Vuetify theme, components, and more with the Vuetify Studio.",
|
|
@@ -2260,7 +2260,7 @@ const Ke = W("settings", () => {
|
|
|
2260
2260
|
}
|
|
2261
2261
|
];
|
|
2262
2262
|
B(o, async () => {
|
|
2263
|
-
o.value.one === "studio" && (
|
|
2263
|
+
o.value.one === "studio" && (s.isOpen = !0, await pe(), e.value = !0);
|
|
2264
2264
|
}, { immediate: !0 });
|
|
2265
2265
|
function f() {
|
|
2266
2266
|
e.value = !1, a.push({ query: { one: "subscribe" } });
|
|
@@ -2274,11 +2274,11 @@ const Ke = W("settings", () => {
|
|
|
2274
2274
|
title: "Vuetify Studio"
|
|
2275
2275
|
}, {
|
|
2276
2276
|
default: r(() => [
|
|
2277
|
-
|
|
2277
|
+
i(ke, null, {
|
|
2278
2278
|
default: r(() => [
|
|
2279
|
-
|
|
2279
|
+
i($e, { scrollable: "" }, {
|
|
2280
2280
|
default: r(() => [
|
|
2281
|
-
|
|
2281
|
+
i(Y, {
|
|
2282
2282
|
"content-class": "d-flex align-center justify-center flex-column",
|
|
2283
2283
|
cover: "",
|
|
2284
2284
|
gradient: "to top right, rgba(var(--v-theme-primary),.8), rgba(0,0,0,.9)",
|
|
@@ -2288,14 +2288,14 @@ const Ke = W("settings", () => {
|
|
|
2288
2288
|
src: "https://cdn.vuetifyjs.com/docs/images/one/studio/hero.png"
|
|
2289
2289
|
}, {
|
|
2290
2290
|
default: r(() => [
|
|
2291
|
-
|
|
2291
|
+
i(E, {
|
|
2292
2292
|
class: "text-center pa-3",
|
|
2293
2293
|
color: "surface",
|
|
2294
2294
|
flat: "",
|
|
2295
2295
|
rounded: "xl"
|
|
2296
2296
|
}, {
|
|
2297
2297
|
text: r(() => [
|
|
2298
|
-
|
|
2298
|
+
i(D, {
|
|
2299
2299
|
color: "accent",
|
|
2300
2300
|
icon: u.prependIcon,
|
|
2301
2301
|
size: "80"
|
|
@@ -2308,17 +2308,17 @@ const Ke = W("settings", () => {
|
|
|
2308
2308
|
]),
|
|
2309
2309
|
_: 1
|
|
2310
2310
|
}),
|
|
2311
|
-
(d(), L(U, null, ne(p, (V, m) =>
|
|
2311
|
+
(d(), L(U, null, ne(p, (V, m) => i(ye, {
|
|
2312
2312
|
key: m,
|
|
2313
2313
|
class: "py-8",
|
|
2314
2314
|
color: m % 2 === 0 ? "surface-light" : "surface-variant"
|
|
2315
2315
|
}, {
|
|
2316
2316
|
default: r(() => [
|
|
2317
|
-
|
|
2317
|
+
i(tt, null, {
|
|
2318
2318
|
default: r(() => [
|
|
2319
|
-
|
|
2319
|
+
i(de, { align: "center" }, {
|
|
2320
2320
|
default: r(() => [
|
|
2321
|
-
|
|
2321
|
+
i(K, {
|
|
2322
2322
|
cols: "12",
|
|
2323
2323
|
offset: "0",
|
|
2324
2324
|
"offset-sm": "1",
|
|
@@ -2332,14 +2332,14 @@ const Ke = W("settings", () => {
|
|
|
2332
2332
|
]),
|
|
2333
2333
|
_: 2
|
|
2334
2334
|
}, 1032, ["order"]),
|
|
2335
|
-
|
|
2335
|
+
i(K, {
|
|
2336
2336
|
cols: "12",
|
|
2337
2337
|
offset: "0",
|
|
2338
2338
|
"offset-sm": m % 2,
|
|
2339
2339
|
sm: "4"
|
|
2340
2340
|
}, {
|
|
2341
2341
|
default: r(() => [
|
|
2342
|
-
|
|
2342
|
+
i(Y, {
|
|
2343
2343
|
cover: "",
|
|
2344
2344
|
height: t(l) ? 180 : void 0,
|
|
2345
2345
|
rounded: "lg",
|
|
@@ -2357,18 +2357,18 @@ const Ke = W("settings", () => {
|
|
|
2357
2357
|
]),
|
|
2358
2358
|
_: 2
|
|
2359
2359
|
}, 1032, ["color"])), 64)),
|
|
2360
|
-
t(n).isSubscriber ?
|
|
2360
|
+
t(n).isSubscriber ? S("", !0) : (d(), _(ye, {
|
|
2361
2361
|
key: 0,
|
|
2362
2362
|
class: "text-center py-6"
|
|
2363
2363
|
}, {
|
|
2364
2364
|
default: r(() => [
|
|
2365
|
-
|
|
2365
|
+
i(tt, null, {
|
|
2366
2366
|
default: r(() => [
|
|
2367
|
-
|
|
2367
|
+
i(de, { justify: "center" }, {
|
|
2368
2368
|
default: r(() => [
|
|
2369
|
-
|
|
2369
|
+
i(K, { cols: "6" }, {
|
|
2370
2370
|
default: r(() => [
|
|
2371
|
-
|
|
2371
|
+
i(Q, {
|
|
2372
2372
|
image: "https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
2373
2373
|
size: "64"
|
|
2374
2374
|
}),
|
|
@@ -2376,9 +2376,9 @@ const Ke = W("settings", () => {
|
|
|
2376
2376
|
]),
|
|
2377
2377
|
_: 1
|
|
2378
2378
|
}),
|
|
2379
|
-
|
|
2379
|
+
i(K, { cols: "12" }, {
|
|
2380
2380
|
default: r(() => [
|
|
2381
|
-
|
|
2381
|
+
i(b, {
|
|
2382
2382
|
"prepend-icon": "$vuetify",
|
|
2383
2383
|
size: "x-large",
|
|
2384
2384
|
text: "Subscribe Today",
|
|
@@ -2410,14 +2410,14 @@ const Ke = W("settings", () => {
|
|
|
2410
2410
|
}), Fn = /* @__PURE__ */ $({
|
|
2411
2411
|
__name: "VoStudioNavItem",
|
|
2412
2412
|
setup(c) {
|
|
2413
|
-
const e =
|
|
2413
|
+
const e = O(!1), o = [
|
|
2414
2414
|
["M12.435 14.3194L12 21L6.87046 12.2799L12.435 14.3194Z", 1],
|
|
2415
2415
|
["M22 4L12.435 14.3194L6.87046 12.2799L9.26479 7.61064L12.435 14.3194L12 21L22 4Z", 0.5],
|
|
2416
2416
|
["M12.435 14.3194L22 4L9.26479 7.61064L12.435 14.3194Z", 1],
|
|
2417
2417
|
["M2 4L6.87046 12.2799L9.26479 7.61064L2 4Z", 1]
|
|
2418
2418
|
];
|
|
2419
2419
|
return (a, n) => {
|
|
2420
|
-
const
|
|
2420
|
+
const s = zn, l = J;
|
|
2421
2421
|
return d(), _(l, {
|
|
2422
2422
|
active: t(e),
|
|
2423
2423
|
link: "",
|
|
@@ -2425,7 +2425,7 @@ const Ke = W("settings", () => {
|
|
|
2425
2425
|
title: "Vuetify Studio"
|
|
2426
2426
|
}, {
|
|
2427
2427
|
append: r(() => [
|
|
2428
|
-
|
|
2428
|
+
i(te, {
|
|
2429
2429
|
label: "",
|
|
2430
2430
|
size: "x-small"
|
|
2431
2431
|
}, {
|
|
@@ -2436,7 +2436,7 @@ const Ke = W("settings", () => {
|
|
|
2436
2436
|
})
|
|
2437
2437
|
]),
|
|
2438
2438
|
default: r(() => [
|
|
2439
|
-
s
|
|
2439
|
+
i(s, {
|
|
2440
2440
|
modelValue: t(e),
|
|
2441
2441
|
"onUpdate:modelValue": n[0] || (n[0] = (p) => se(e) ? e.value = p : null),
|
|
2442
2442
|
"prepend-icon": o
|
|
@@ -2458,11 +2458,11 @@ const Ke = W("settings", () => {
|
|
|
2458
2458
|
items: {}
|
|
2459
2459
|
},
|
|
2460
2460
|
setup(c) {
|
|
2461
|
-
const e = Ue(), o =
|
|
2461
|
+
const e = Ue(), o = ce(), a = F();
|
|
2462
2462
|
function n(l) {
|
|
2463
2463
|
return a.notifications.last.banner.includes(l);
|
|
2464
2464
|
}
|
|
2465
|
-
function
|
|
2465
|
+
function s(l) {
|
|
2466
2466
|
n(l.slug) ? a.notifications.last.banner = a.notifications.last.banner.filter((p) => p !== l.slug) : a.notifications.last.banner.push(l.slug);
|
|
2467
2467
|
}
|
|
2468
2468
|
return (l, p) => {
|
|
@@ -2480,7 +2480,7 @@ const Ke = W("settings", () => {
|
|
|
2480
2480
|
key: u.slug,
|
|
2481
2481
|
class: "mb-4"
|
|
2482
2482
|
}, [
|
|
2483
|
-
|
|
2483
|
+
i(E, {
|
|
2484
2484
|
color: u.metadata.color,
|
|
2485
2485
|
flat: "",
|
|
2486
2486
|
image: (h = u.metadata.images.bg) == null ? void 0 : h.url,
|
|
@@ -2490,38 +2490,38 @@ const Ke = W("settings", () => {
|
|
|
2490
2490
|
prepend: r(() => {
|
|
2491
2491
|
var b;
|
|
2492
2492
|
return [
|
|
2493
|
-
|
|
2493
|
+
i(Q, {
|
|
2494
2494
|
image: (b = u.metadata.images.logo) == null ? void 0 : b.url
|
|
2495
2495
|
}, null, 8, ["image"])
|
|
2496
2496
|
];
|
|
2497
2497
|
}),
|
|
2498
2498
|
image: r(() => [
|
|
2499
|
-
|
|
2499
|
+
i(Y, { position: "right" })
|
|
2500
2500
|
]),
|
|
2501
2501
|
_: 2
|
|
2502
2502
|
}, 1032, ["color", "image", "title"]),
|
|
2503
|
-
|
|
2503
|
+
i(ze, null, {
|
|
2504
2504
|
default: r(({ props: b, isHovering: g }) => [
|
|
2505
|
-
|
|
2505
|
+
i(ye, H(b, {
|
|
2506
2506
|
border: "",
|
|
2507
2507
|
class: "px-8 pt-2 pb-4 position-relative",
|
|
2508
2508
|
rounded: "b"
|
|
2509
2509
|
}), {
|
|
2510
2510
|
default: r(() => [
|
|
2511
|
-
|
|
2511
|
+
i(ee, {
|
|
2512
2512
|
location: "bottom",
|
|
2513
2513
|
text: n(u.slug) ? "Mark as unread" : "Mark as read"
|
|
2514
2514
|
}, {
|
|
2515
2515
|
activator: r(({ props: V }) => [
|
|
2516
|
-
|
|
2516
|
+
i(Be, { "hide-on-leave": "" }, {
|
|
2517
2517
|
default: r(() => [
|
|
2518
|
-
De(
|
|
2518
|
+
De(i(q, H(V, {
|
|
2519
2519
|
class: "ms-auto float-right",
|
|
2520
2520
|
icon: `svg:${n(u.slug) ? t(lt) : t(rt)}`,
|
|
2521
2521
|
"mdi-email-variant": "",
|
|
2522
2522
|
size: "small",
|
|
2523
2523
|
variant: "text",
|
|
2524
|
-
onClick: (m) =>
|
|
2524
|
+
onClick: (m) => s(u)
|
|
2525
2525
|
}), null, 16, ["icon", "onClick"]), [
|
|
2526
2526
|
[Ge, g || t(o).mobile.value]
|
|
2527
2527
|
])
|
|
@@ -2534,7 +2534,7 @@ const Ke = W("settings", () => {
|
|
|
2534
2534
|
y("div", Pn, C(u.metadata.text), 1),
|
|
2535
2535
|
y("div", Hn, C(t(e).format(u.created_at, "fullDateWithWeekday")), 1),
|
|
2536
2536
|
y("div", Rn, C(u.metadata.subtext), 1),
|
|
2537
|
-
|
|
2537
|
+
i(te, H({
|
|
2538
2538
|
href: u.metadata.link.startsWith("http") ? u.metadata.link : void 0,
|
|
2539
2539
|
target: u.metadata.link.startsWith("http") ? "_blank" : void 0,
|
|
2540
2540
|
to: u.metadata.link.startsWith("http") ? void 0 : u.metadata.link
|
|
@@ -2547,7 +2547,7 @@ const Ke = W("settings", () => {
|
|
|
2547
2547
|
variant: "text"
|
|
2548
2548
|
}), {
|
|
2549
2549
|
append: r(() => [
|
|
2550
|
-
|
|
2550
|
+
i(D, { size: "12" })
|
|
2551
2551
|
]),
|
|
2552
2552
|
_: 2
|
|
2553
2553
|
}, 1040, ["append-icon", "text"])
|
|
@@ -2560,12 +2560,12 @@ const Ke = W("settings", () => {
|
|
|
2560
2560
|
]);
|
|
2561
2561
|
}), 128))
|
|
2562
2562
|
])) : (d(), L("div", Tn, [
|
|
2563
|
-
|
|
2563
|
+
i(f, {
|
|
2564
2564
|
icon: "$vuetify",
|
|
2565
2565
|
size: "256"
|
|
2566
2566
|
}, {
|
|
2567
2567
|
media: r(() => [
|
|
2568
|
-
|
|
2568
|
+
i(D, { color: "medium-emphasis" })
|
|
2569
2569
|
]),
|
|
2570
2570
|
title: r(() => [
|
|
2571
2571
|
jn
|
|
@@ -2585,7 +2585,7 @@ const Ke = W("settings", () => {
|
|
|
2585
2585
|
notification: {}
|
|
2586
2586
|
},
|
|
2587
2587
|
setup(c) {
|
|
2588
|
-
const e = c, o = F(), a = Ue(), n =
|
|
2588
|
+
const e = c, o = F(), a = Ue(), n = ce(), s = w(() => {
|
|
2589
2589
|
const f = e.notification.metadata ?? { action: "" };
|
|
2590
2590
|
return {
|
|
2591
2591
|
href: f.action.startsWith("http") ? f.action : void 0,
|
|
@@ -2607,24 +2607,24 @@ const Ke = W("settings", () => {
|
|
|
2607
2607
|
const h = J;
|
|
2608
2608
|
return d(), _(ze, null, {
|
|
2609
2609
|
default: r(({ isHovering: b, props: g }) => [
|
|
2610
|
-
|
|
2610
|
+
i(h, H(g, { class: "py-4 mb-0" }), {
|
|
2611
2611
|
prepend: r(() => [
|
|
2612
2612
|
y("div", qn, C(f.notification.metadata.emoji), 1)
|
|
2613
2613
|
]),
|
|
2614
2614
|
append: r(() => [
|
|
2615
|
-
|
|
2615
|
+
i(xo, {
|
|
2616
2616
|
class: "mt-n3",
|
|
2617
2617
|
width: "56"
|
|
2618
2618
|
}, {
|
|
2619
2619
|
default: r(() => [
|
|
2620
|
-
|
|
2620
|
+
i(ee, {
|
|
2621
2621
|
location: "bottom",
|
|
2622
2622
|
text: l(f.notification.slug) ? "Mark as unread" : "Mark as read"
|
|
2623
2623
|
}, {
|
|
2624
2624
|
activator: r(({ props: V }) => [
|
|
2625
|
-
|
|
2625
|
+
i(Be, { "hide-on-leave": "" }, {
|
|
2626
2626
|
default: r(() => [
|
|
2627
|
-
De(
|
|
2627
|
+
De(i(q, H(V, {
|
|
2628
2628
|
class: "ms-auto",
|
|
2629
2629
|
icon: `svg:${l(f.notification.slug) ? t(lt) : t(rt)}`,
|
|
2630
2630
|
"mdi-email-variant": "",
|
|
@@ -2645,7 +2645,7 @@ const Ke = W("settings", () => {
|
|
|
2645
2645
|
}, 1024)
|
|
2646
2646
|
]),
|
|
2647
2647
|
default: r(() => [
|
|
2648
|
-
|
|
2648
|
+
i(ct, { class: "text-wrap text-h6 mb-1" }, {
|
|
2649
2649
|
default: r(() => [
|
|
2650
2650
|
y("div", Wn, C(f.notification.title), 1)
|
|
2651
2651
|
]),
|
|
@@ -2653,9 +2653,9 @@ const Ke = W("settings", () => {
|
|
|
2653
2653
|
}),
|
|
2654
2654
|
y("div", Gn, C(t(a).format(f.notification.created_at, "fullDateWithWeekday")), 1),
|
|
2655
2655
|
y("div", Zn, C(f.notification.metadata.text), 1),
|
|
2656
|
-
|
|
2656
|
+
i(te, H({
|
|
2657
2657
|
"append-icon": `svg:${t(Oe)}`
|
|
2658
|
-
}, t(
|
|
2658
|
+
}, t(s), {
|
|
2659
2659
|
border: "",
|
|
2660
2660
|
label: "",
|
|
2661
2661
|
size: "small",
|
|
@@ -2663,7 +2663,7 @@ const Ke = W("settings", () => {
|
|
|
2663
2663
|
variant: "text"
|
|
2664
2664
|
}), {
|
|
2665
2665
|
append: r(() => [
|
|
2666
|
-
|
|
2666
|
+
i(D, { size: "12" })
|
|
2667
2667
|
]),
|
|
2668
2668
|
_: 1
|
|
2669
2669
|
}, 16, ["append-icon", "text"])
|
|
@@ -2692,18 +2692,18 @@ const Ke = W("settings", () => {
|
|
|
2692
2692
|
lines: "three"
|
|
2693
2693
|
}, {
|
|
2694
2694
|
default: r(() => [
|
|
2695
|
-
e.items.length ? (d(!0), L(U, { key: 1 }, ne(e.items, (
|
|
2696
|
-
key:
|
|
2695
|
+
e.items.length ? (d(!0), L(U, { key: 1 }, ne(e.items, (s, l) => (d(), L(U, {
|
|
2696
|
+
key: s.slug
|
|
2697
2697
|
}, [
|
|
2698
|
-
l !== 0 ? (d(), _(Z, { key: 0 })) :
|
|
2699
|
-
|
|
2698
|
+
l !== 0 ? (d(), _(Z, { key: 0 })) : S("", !0),
|
|
2699
|
+
i(n, { notification: s }, null, 8, ["notification"])
|
|
2700
2700
|
], 64))), 128)) : (d(), L("div", Yn, [
|
|
2701
|
-
|
|
2701
|
+
i(a, {
|
|
2702
2702
|
icon: "$vuetify",
|
|
2703
2703
|
size: "256"
|
|
2704
2704
|
}, {
|
|
2705
2705
|
media: r(() => [
|
|
2706
|
-
|
|
2706
|
+
i(D, { color: "medium-emphasis" })
|
|
2707
2707
|
]),
|
|
2708
2708
|
title: r(() => [
|
|
2709
2709
|
Jn
|
|
@@ -2717,15 +2717,15 @@ const Ke = W("settings", () => {
|
|
|
2717
2717
|
};
|
|
2718
2718
|
}
|
|
2719
2719
|
}), bt = W("site", () => {
|
|
2720
|
-
const c =
|
|
2720
|
+
const c = A([]), e = A();
|
|
2721
2721
|
return {
|
|
2722
2722
|
id: c,
|
|
2723
2723
|
url: e
|
|
2724
2724
|
};
|
|
2725
2725
|
}), je = W("banners", () => {
|
|
2726
|
-
const c =
|
|
2727
|
-
if (
|
|
2728
|
-
return
|
|
2726
|
+
const c = ie(), e = bt(), o = F(), a = A([]), n = A([]), s = A(), l = O(!1), p = w(() => {
|
|
2727
|
+
if (s.value)
|
|
2728
|
+
return s.value;
|
|
2729
2729
|
if (f.value)
|
|
2730
2730
|
return f.value;
|
|
2731
2731
|
if (o.notifications.banners)
|
|
@@ -2736,7 +2736,7 @@ const Ke = W("settings", () => {
|
|
|
2736
2736
|
active: N
|
|
2737
2737
|
}
|
|
2738
2738
|
}) => !N || o.notifications.last.banner.includes(v) ? !1 : k.includes("dev") && !1 || k.includes("*") ? !0 : k.some((j) => e.id.includes(j)));
|
|
2739
|
-
}), f =
|
|
2739
|
+
}), f = w(() => a.value.find(({
|
|
2740
2740
|
metadata: {
|
|
2741
2741
|
site: v,
|
|
2742
2742
|
active: k
|
|
@@ -2757,7 +2757,7 @@ const Ke = W("settings", () => {
|
|
|
2757
2757
|
try {
|
|
2758
2758
|
l.value = !0;
|
|
2759
2759
|
const k = await c.get(`/one/admin/banners/${v}`);
|
|
2760
|
-
return
|
|
2760
|
+
return s.value = k.banner, k.banner;
|
|
2761
2761
|
} catch {
|
|
2762
2762
|
} finally {
|
|
2763
2763
|
l.value = !1;
|
|
@@ -2770,7 +2770,7 @@ const Ke = W("settings", () => {
|
|
|
2770
2770
|
"/one/admin/banners",
|
|
2771
2771
|
v
|
|
2772
2772
|
);
|
|
2773
|
-
return
|
|
2773
|
+
return s.value = k.banner, k.banner;
|
|
2774
2774
|
} catch {
|
|
2775
2775
|
} finally {
|
|
2776
2776
|
l.value = !1;
|
|
@@ -2783,7 +2783,7 @@ const Ke = W("settings", () => {
|
|
|
2783
2783
|
`/one/admin/banners/${v}`,
|
|
2784
2784
|
k
|
|
2785
2785
|
);
|
|
2786
|
-
return
|
|
2786
|
+
return s.value = N.banner, N.banner;
|
|
2787
2787
|
} catch {
|
|
2788
2788
|
} finally {
|
|
2789
2789
|
l.value = !1;
|
|
@@ -2808,7 +2808,7 @@ const Ke = W("settings", () => {
|
|
|
2808
2808
|
isLoading: l,
|
|
2809
2809
|
server: f,
|
|
2810
2810
|
banner: p,
|
|
2811
|
-
record:
|
|
2811
|
+
record: s,
|
|
2812
2812
|
admin: m,
|
|
2813
2813
|
destroy: V,
|
|
2814
2814
|
index: u,
|
|
@@ -2824,13 +2824,13 @@ const Ke = W("settings", () => {
|
|
|
2824
2824
|
},
|
|
2825
2825
|
emits: ["update:modelValue"],
|
|
2826
2826
|
setup(c) {
|
|
2827
|
-
const e =
|
|
2827
|
+
const e = ce(), o = ve(), a = je(), n = Fe(), s = P(), l = F(), p = O(["read"]), f = le(c, "modelValue");
|
|
2828
2828
|
return B(o, async () => {
|
|
2829
2829
|
if (o.value.one !== "notifications") {
|
|
2830
2830
|
f.value && (f.value = !1);
|
|
2831
2831
|
return;
|
|
2832
2832
|
}
|
|
2833
|
-
|
|
2833
|
+
s.isOpen = !0, await pe(), f.value = !0;
|
|
2834
2834
|
}, { immediate: !0 }), (u, h) => {
|
|
2835
2835
|
const b = J, g = Xn, V = En, m = xe;
|
|
2836
2836
|
return d(), _(m, {
|
|
@@ -2840,15 +2840,15 @@ const Ke = W("settings", () => {
|
|
|
2840
2840
|
title: "Notifications"
|
|
2841
2841
|
}, {
|
|
2842
2842
|
default: r(() => [
|
|
2843
|
-
|
|
2843
|
+
i(ke, null, {
|
|
2844
2844
|
default: r(() => [
|
|
2845
|
-
|
|
2845
|
+
i(wo, {
|
|
2846
2846
|
location: t(e).mobile.value ? "top" : "start",
|
|
2847
2847
|
permanent: "",
|
|
2848
2848
|
width: t(e).mobile.value ? 128 : 168
|
|
2849
2849
|
}, {
|
|
2850
2850
|
default: r(() => [
|
|
2851
|
-
|
|
2851
|
+
i(ae, {
|
|
2852
2852
|
selected: t(p),
|
|
2853
2853
|
"onUpdate:selected": h[0] || (h[0] = (v) => se(p) ? p.value = v : null),
|
|
2854
2854
|
class: "px-4 pt-4",
|
|
@@ -2857,7 +2857,7 @@ const Ke = W("settings", () => {
|
|
|
2857
2857
|
nav: ""
|
|
2858
2858
|
}, {
|
|
2859
2859
|
default: r(() => [
|
|
2860
|
-
|
|
2860
|
+
i(b, {
|
|
2861
2861
|
"prepend-icon": `svg:${t(oo)}`,
|
|
2862
2862
|
title: "Unread",
|
|
2863
2863
|
value: "read"
|
|
@@ -2870,7 +2870,7 @@ const Ke = W("settings", () => {
|
|
|
2870
2870
|
key: "0"
|
|
2871
2871
|
} : void 0
|
|
2872
2872
|
]), 1032, ["prepend-icon"]),
|
|
2873
|
-
|
|
2873
|
+
i(b, {
|
|
2874
2874
|
"prepend-icon": `svg:${t(no)}`,
|
|
2875
2875
|
title: "Read",
|
|
2876
2876
|
value: "unread"
|
|
@@ -2890,45 +2890,45 @@ const Ke = W("settings", () => {
|
|
|
2890
2890
|
value: "banners"
|
|
2891
2891
|
}, {
|
|
2892
2892
|
append: r(() => [
|
|
2893
|
-
|
|
2893
|
+
i(Je, {
|
|
2894
2894
|
dot: "",
|
|
2895
2895
|
"offset-y": "-3"
|
|
2896
2896
|
})
|
|
2897
2897
|
]),
|
|
2898
2898
|
_: 1
|
|
2899
|
-
}, 8, ["prepend-icon"])) :
|
|
2899
|
+
}, 8, ["prepend-icon"])) : S("", !0)
|
|
2900
2900
|
]),
|
|
2901
2901
|
_: 1
|
|
2902
2902
|
}, 8, ["selected"])
|
|
2903
2903
|
]),
|
|
2904
2904
|
_: 1
|
|
2905
2905
|
}, 8, ["location", "width"]),
|
|
2906
|
-
|
|
2906
|
+
i($e, { scrollable: "" }, {
|
|
2907
2907
|
default: r(() => [
|
|
2908
|
-
|
|
2908
|
+
i(mt, {
|
|
2909
2909
|
modelValue: t(p),
|
|
2910
2910
|
"onUpdate:modelValue": h[1] || (h[1] = (v) => se(p) ? p.value = v : null)
|
|
2911
2911
|
}, {
|
|
2912
2912
|
default: r(() => [
|
|
2913
|
-
|
|
2913
|
+
i(ge, { value: "read" }, {
|
|
2914
2914
|
default: r(() => [
|
|
2915
|
-
|
|
2915
|
+
i(g, {
|
|
2916
2916
|
items: t(n).unread
|
|
2917
2917
|
}, null, 8, ["items"])
|
|
2918
2918
|
]),
|
|
2919
2919
|
_: 1
|
|
2920
2920
|
}),
|
|
2921
|
-
|
|
2921
|
+
i(ge, { value: "unread" }, {
|
|
2922
2922
|
default: r(() => [
|
|
2923
|
-
|
|
2923
|
+
i(g, {
|
|
2924
2924
|
items: t(n).read
|
|
2925
2925
|
}, null, 8, ["items"])
|
|
2926
2926
|
]),
|
|
2927
2927
|
_: 1
|
|
2928
2928
|
}),
|
|
2929
|
-
|
|
2929
|
+
i(ge, { value: "banners" }, {
|
|
2930
2930
|
default: r(() => [
|
|
2931
|
-
|
|
2931
|
+
i(V, {
|
|
2932
2932
|
items: t(a).all
|
|
2933
2933
|
}, null, 8, ["items"])
|
|
2934
2934
|
]),
|
|
@@ -2966,10 +2966,10 @@ const Ke = W("settings", () => {
|
|
|
2966
2966
|
}), ns = /* @__PURE__ */ $({
|
|
2967
2967
|
__name: "VoNotificationsNavItem",
|
|
2968
2968
|
setup(c) {
|
|
2969
|
-
const e = je(), o = F(), a = Fe(), n =
|
|
2969
|
+
const e = je(), o = F(), a = Fe(), n = O(!1);
|
|
2970
2970
|
return qe(async () => {
|
|
2971
2971
|
a.index(), e.index();
|
|
2972
|
-
}), (
|
|
2972
|
+
}), (s, l) => {
|
|
2973
2973
|
const p = os, f = ts, u = J;
|
|
2974
2974
|
return t(o).notifications.show ? (d(), _(u, {
|
|
2975
2975
|
key: 0,
|
|
@@ -2979,7 +2979,7 @@ const Ke = W("settings", () => {
|
|
|
2979
2979
|
title: "Notifications"
|
|
2980
2980
|
}, R({
|
|
2981
2981
|
default: r(() => [
|
|
2982
|
-
|
|
2982
|
+
i(f, {
|
|
2983
2983
|
modelValue: t(n),
|
|
2984
2984
|
"onUpdate:modelValue": l[0] || (l[0] = (h) => se(n) ? n.value = h : null)
|
|
2985
2985
|
}, null, 8, ["modelValue"])
|
|
@@ -2989,16 +2989,16 @@ const Ke = W("settings", () => {
|
|
|
2989
2989
|
t(a).unread.length ? {
|
|
2990
2990
|
name: "prepend",
|
|
2991
2991
|
fn: r(() => [
|
|
2992
|
-
|
|
2992
|
+
i(p, null, {
|
|
2993
2993
|
default: r(() => [
|
|
2994
|
-
|
|
2994
|
+
i(D)
|
|
2995
2995
|
]),
|
|
2996
2996
|
_: 1
|
|
2997
2997
|
})
|
|
2998
2998
|
]),
|
|
2999
2999
|
key: "0"
|
|
3000
3000
|
} : void 0
|
|
3001
|
-
]), 1032, ["active", "prepend-icon"])) :
|
|
3001
|
+
]), 1032, ["active", "prepend-icon"])) : S("", !0);
|
|
3002
3002
|
};
|
|
3003
3003
|
}
|
|
3004
3004
|
}), ss = /* @__PURE__ */ $({
|
|
@@ -3011,8 +3011,8 @@ const Ke = W("settings", () => {
|
|
|
3011
3011
|
}, 100);
|
|
3012
3012
|
}
|
|
3013
3013
|
return (a, n) => {
|
|
3014
|
-
const
|
|
3015
|
-
return d(), _(
|
|
3014
|
+
const s = J;
|
|
3015
|
+
return d(), _(s, {
|
|
3016
3016
|
"prepend-icon": `svg:${t(io)}`,
|
|
3017
3017
|
title: "Dashboard",
|
|
3018
3018
|
to: "/user/dashboard",
|
|
@@ -3025,20 +3025,20 @@ const Ke = W("settings", () => {
|
|
|
3025
3025
|
setup(c) {
|
|
3026
3026
|
const e = M();
|
|
3027
3027
|
return (o, a) => {
|
|
3028
|
-
const n = ss,
|
|
3028
|
+
const n = ss, s = ns, l = Fn, p = In, f = gn, u = Zo, h = Ho;
|
|
3029
3029
|
return d(), _(ae, {
|
|
3030
3030
|
density: "compact",
|
|
3031
3031
|
nav: "",
|
|
3032
3032
|
slim: ""
|
|
3033
3033
|
}, {
|
|
3034
3034
|
default: r(() => [
|
|
3035
|
-
|
|
3036
|
-
s
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
t(e).user ? (d(), _(f, { key: 0 })) :
|
|
3040
|
-
|
|
3041
|
-
t(e).user ? (d(), _(h, { key: 1 })) :
|
|
3035
|
+
i(n),
|
|
3036
|
+
i(s),
|
|
3037
|
+
i(l),
|
|
3038
|
+
i(p),
|
|
3039
|
+
t(e).user ? (d(), _(f, { key: 0 })) : S("", !0),
|
|
3040
|
+
i(u),
|
|
3041
|
+
t(e).user ? (d(), _(h, { key: 1 })) : S("", !0)
|
|
3042
3042
|
]),
|
|
3043
3043
|
_: 1
|
|
3044
3044
|
});
|
|
@@ -3057,11 +3057,11 @@ const Ke = W("settings", () => {
|
|
|
3057
3057
|
"M8.63152 12.7367L8.50057 12.5L6 8H11.263L8.63152 12.7367Z",
|
|
3058
3058
|
["M9.11205 13.6004L11 17L16 8H12.223L9.11205 13.6004Z", 0.6]
|
|
3059
3059
|
];
|
|
3060
|
-
return (n,
|
|
3060
|
+
return (n, s) => (d(), _(me, null, {
|
|
3061
3061
|
default: r(() => [
|
|
3062
3062
|
t(e).quickbar ? (d(), L("div", is, [
|
|
3063
3063
|
y("div", rs, [
|
|
3064
|
-
|
|
3064
|
+
i(q, {
|
|
3065
3065
|
class: "text-caption",
|
|
3066
3066
|
color: t(e).colors.one,
|
|
3067
3067
|
density: "comfortable",
|
|
@@ -3070,8 +3070,8 @@ const Ke = W("settings", () => {
|
|
|
3070
3070
|
target: "_blank"
|
|
3071
3071
|
}, {
|
|
3072
3072
|
default: r(() => [
|
|
3073
|
-
|
|
3074
|
-
|
|
3073
|
+
i(D),
|
|
3074
|
+
i(ee, {
|
|
3075
3075
|
activator: "parent",
|
|
3076
3076
|
location: "top",
|
|
3077
3077
|
text: "Vuetify Play"
|
|
@@ -3079,7 +3079,7 @@ const Ke = W("settings", () => {
|
|
|
3079
3079
|
]),
|
|
3080
3080
|
_: 1
|
|
3081
3081
|
}, 8, ["color"]),
|
|
3082
|
-
|
|
3082
|
+
i(q, {
|
|
3083
3083
|
class: "text-caption",
|
|
3084
3084
|
color: t(e).colors.one,
|
|
3085
3085
|
density: "comfortable",
|
|
@@ -3088,8 +3088,8 @@ const Ke = W("settings", () => {
|
|
|
3088
3088
|
target: "_blank"
|
|
3089
3089
|
}, {
|
|
3090
3090
|
default: r(() => [
|
|
3091
|
-
|
|
3092
|
-
|
|
3091
|
+
i(D),
|
|
3092
|
+
i(ee, {
|
|
3093
3093
|
activator: "parent",
|
|
3094
3094
|
location: "top",
|
|
3095
3095
|
text: "Vuetify Bin"
|
|
@@ -3097,7 +3097,7 @@ const Ke = W("settings", () => {
|
|
|
3097
3097
|
]),
|
|
3098
3098
|
_: 1
|
|
3099
3099
|
}, 8, ["color"]),
|
|
3100
|
-
|
|
3100
|
+
i(q, {
|
|
3101
3101
|
class: "text-caption",
|
|
3102
3102
|
color: t(e).colors.one,
|
|
3103
3103
|
density: "comfortable",
|
|
@@ -3106,8 +3106,8 @@ const Ke = W("settings", () => {
|
|
|
3106
3106
|
target: "_blank"
|
|
3107
3107
|
}, {
|
|
3108
3108
|
default: r(() => [
|
|
3109
|
-
|
|
3110
|
-
|
|
3109
|
+
i(D),
|
|
3110
|
+
i(ee, {
|
|
3111
3111
|
activator: "parent",
|
|
3112
3112
|
location: "top",
|
|
3113
3113
|
text: "Vuetify Issues"
|
|
@@ -3116,7 +3116,7 @@ const Ke = W("settings", () => {
|
|
|
3116
3116
|
_: 1
|
|
3117
3117
|
}, 8, ["color"])
|
|
3118
3118
|
])
|
|
3119
|
-
])) :
|
|
3119
|
+
])) : S("", !0)
|
|
3120
3120
|
]),
|
|
3121
3121
|
_: 1
|
|
3122
3122
|
}));
|
|
@@ -3124,7 +3124,7 @@ const Ke = W("settings", () => {
|
|
|
3124
3124
|
}), cs = { class: "mb-2" }, us = { key: 0 }, ds = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, ps = { class: "text-h6" }, ms = /* @__PURE__ */ $({
|
|
3125
3125
|
__name: "VoUserAvatar",
|
|
3126
3126
|
setup(c) {
|
|
3127
|
-
const e = M(), o = P(), a = F(), n =
|
|
3127
|
+
const e = M(), o = P(), a = F(), n = O(!1), s = w(() => {
|
|
3128
3128
|
const f = [
|
|
3129
3129
|
"https://cdn.vuetifyjs.com/docs/images/avatars/dark.png",
|
|
3130
3130
|
"https://cdn.vuetifyjs.com/docs/images/avatars/blackguard.png",
|
|
@@ -3181,17 +3181,17 @@ const Ke = W("settings", () => {
|
|
|
3181
3181
|
[So, t(e).isSubscriber]
|
|
3182
3182
|
]),
|
|
3183
3183
|
y("div", cs, [
|
|
3184
|
-
|
|
3184
|
+
i(me, null, {
|
|
3185
3185
|
default: r(() => [
|
|
3186
3186
|
t(n) ? (d(), L("div", us, [
|
|
3187
|
-
|
|
3187
|
+
i(E, {
|
|
3188
3188
|
class: "pt-6 pb-1",
|
|
3189
3189
|
flat: "",
|
|
3190
3190
|
rounded: "0"
|
|
3191
3191
|
}, {
|
|
3192
3192
|
default: r(() => [
|
|
3193
3193
|
y("div", ds, [
|
|
3194
|
-
(d(!0), L(U, null, ne(t(
|
|
3194
|
+
(d(!0), L(U, null, ne(t(s), (b, g) => (d(), _(q, {
|
|
3195
3195
|
key: g,
|
|
3196
3196
|
active: t(a).avatar === b,
|
|
3197
3197
|
icon: "",
|
|
@@ -3199,7 +3199,7 @@ const Ke = W("settings", () => {
|
|
|
3199
3199
|
onClick: (V) => l(b)
|
|
3200
3200
|
}, {
|
|
3201
3201
|
default: r(() => [
|
|
3202
|
-
|
|
3202
|
+
i(Q, {
|
|
3203
3203
|
eager: "",
|
|
3204
3204
|
image: b
|
|
3205
3205
|
}, null, 8, ["image"])
|
|
@@ -3210,7 +3210,7 @@ const Ke = W("settings", () => {
|
|
|
3210
3210
|
]),
|
|
3211
3211
|
_: 1
|
|
3212
3212
|
})
|
|
3213
|
-
])) :
|
|
3213
|
+
])) : S("", !0)
|
|
3214
3214
|
]),
|
|
3215
3215
|
_: 1
|
|
3216
3216
|
})
|
|
@@ -3222,11 +3222,11 @@ const Ke = W("settings", () => {
|
|
|
3222
3222
|
}), fs = /* @__PURE__ */ $({
|
|
3223
3223
|
__name: "VoUserBadges",
|
|
3224
3224
|
setup(c) {
|
|
3225
|
-
const e = M(), o = P(), a =
|
|
3225
|
+
const e = M(), o = P(), a = w(() => {
|
|
3226
3226
|
var n;
|
|
3227
3227
|
return o.github || o.discord || o.isSubscriber || ((n = e.user) == null ? void 0 : n.isAdmin);
|
|
3228
3228
|
});
|
|
3229
|
-
return (n,
|
|
3229
|
+
return (n, s) => t(a) ? (d(), _(ye, {
|
|
3230
3230
|
key: 0,
|
|
3231
3231
|
class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
|
|
3232
3232
|
color: "rgba(0,0,0,.54)",
|
|
@@ -3242,56 +3242,56 @@ const Ke = W("settings", () => {
|
|
|
3242
3242
|
text: "Vuetify Administrator"
|
|
3243
3243
|
}, {
|
|
3244
3244
|
activator: r(({ props: p }) => [
|
|
3245
|
-
|
|
3245
|
+
i(D, H({
|
|
3246
3246
|
color: "blue",
|
|
3247
3247
|
icon: "$vuetify"
|
|
3248
3248
|
}, p, { size: "16" }), null, 16)
|
|
3249
3249
|
]),
|
|
3250
3250
|
_: 1
|
|
3251
|
-
})) :
|
|
3251
|
+
})) : S("", !0),
|
|
3252
3252
|
t(o).isSubscriber ? (d(), _(ee, {
|
|
3253
3253
|
key: 1,
|
|
3254
3254
|
location: "bottom",
|
|
3255
3255
|
text: "Vuetify One Subscriber"
|
|
3256
3256
|
}, {
|
|
3257
3257
|
activator: r(({ props: p }) => [
|
|
3258
|
-
|
|
3258
|
+
i(D, H({
|
|
3259
3259
|
color: "amber-darken-2",
|
|
3260
3260
|
icon: `svg:${t(ro)}`
|
|
3261
3261
|
}, p, { size: "16" }), null, 16, ["icon"])
|
|
3262
3262
|
]),
|
|
3263
3263
|
_: 1
|
|
3264
|
-
})) :
|
|
3264
|
+
})) : S("", !0),
|
|
3265
3265
|
t(o).github ? (d(), _(ee, {
|
|
3266
3266
|
key: 2,
|
|
3267
3267
|
location: "bottom",
|
|
3268
3268
|
text: "GitHub Sponsor"
|
|
3269
3269
|
}, {
|
|
3270
3270
|
activator: r(({ props: p }) => [
|
|
3271
|
-
|
|
3271
|
+
i(D, H({
|
|
3272
3272
|
color: "white",
|
|
3273
3273
|
icon: `svg:${t(Ye)}`
|
|
3274
3274
|
}, p, { size: "16" }), null, 16, ["icon"])
|
|
3275
3275
|
]),
|
|
3276
3276
|
_: 1
|
|
3277
|
-
})) :
|
|
3277
|
+
})) : S("", !0),
|
|
3278
3278
|
t(o).discord ? (d(), _(ee, {
|
|
3279
3279
|
key: 3,
|
|
3280
3280
|
location: "bottom",
|
|
3281
3281
|
text: "Discord Subscriber"
|
|
3282
3282
|
}, {
|
|
3283
3283
|
activator: r(({ props: p }) => [
|
|
3284
|
-
|
|
3284
|
+
i(D, H({
|
|
3285
3285
|
color: "white",
|
|
3286
3286
|
icon: `svg:${t(Qe)}`
|
|
3287
3287
|
}, p, { size: "16" }), null, 16, ["icon"])
|
|
3288
3288
|
]),
|
|
3289
3289
|
_: 1
|
|
3290
|
-
})) :
|
|
3290
|
+
})) : S("", !0)
|
|
3291
3291
|
];
|
|
3292
3292
|
}),
|
|
3293
3293
|
_: 1
|
|
3294
|
-
})) :
|
|
3294
|
+
})) : S("", !0);
|
|
3295
3295
|
}
|
|
3296
3296
|
}), vs = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, hs = {
|
|
3297
3297
|
key: "reset",
|
|
@@ -3299,14 +3299,14 @@ const Ke = W("settings", () => {
|
|
|
3299
3299
|
}, _s = /* @__PURE__ */ $({
|
|
3300
3300
|
__name: "VoUserColors",
|
|
3301
3301
|
setup(c) {
|
|
3302
|
-
const e = M(), o = F(), a =
|
|
3302
|
+
const e = M(), o = F(), a = O(!1);
|
|
3303
3303
|
function n() {
|
|
3304
3304
|
o.colors.one = "surface-light";
|
|
3305
3305
|
}
|
|
3306
|
-
return (
|
|
3306
|
+
return (s, l) => {
|
|
3307
3307
|
const p = fs, f = fe;
|
|
3308
3308
|
return d(), L(U, null, [
|
|
3309
|
-
|
|
3309
|
+
i(Y, {
|
|
3310
3310
|
color: t(e).user ? t(o).colors.one : "surface-light",
|
|
3311
3311
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
3312
3312
|
cover: "",
|
|
@@ -3316,11 +3316,11 @@ const Ke = W("settings", () => {
|
|
|
3316
3316
|
}, {
|
|
3317
3317
|
default: r(() => [
|
|
3318
3318
|
y("div", vs, [
|
|
3319
|
-
|
|
3320
|
-
|
|
3319
|
+
i(p),
|
|
3320
|
+
i(go, null, {
|
|
3321
3321
|
default: r(() => [
|
|
3322
3322
|
De(y("div", hs, [
|
|
3323
|
-
|
|
3323
|
+
i(f, {
|
|
3324
3324
|
class: "ms-2 me-1",
|
|
3325
3325
|
color: "inherit",
|
|
3326
3326
|
density: "comfortable",
|
|
@@ -3348,7 +3348,7 @@ const Ke = W("settings", () => {
|
|
|
3348
3348
|
onClick: l[0] || (l[0] = (u) => a.value = !t(a))
|
|
3349
3349
|
}, {
|
|
3350
3350
|
default: r(() => [
|
|
3351
|
-
|
|
3351
|
+
i(Be, { "leave-absolute": "" }, {
|
|
3352
3352
|
default: r(() => [
|
|
3353
3353
|
(d(), _(D, {
|
|
3354
3354
|
key: String(t(a))
|
|
@@ -3358,12 +3358,12 @@ const Ke = W("settings", () => {
|
|
|
3358
3358
|
})
|
|
3359
3359
|
]),
|
|
3360
3360
|
_: 1
|
|
3361
|
-
}, 8, ["active", "icon", "variant"])) :
|
|
3361
|
+
}, 8, ["active", "icon", "variant"])) : S("", !0)
|
|
3362
3362
|
])
|
|
3363
3363
|
]),
|
|
3364
3364
|
_: 1
|
|
3365
3365
|
}, 8, ["color"]),
|
|
3366
|
-
|
|
3366
|
+
i(me, null, {
|
|
3367
3367
|
default: r(() => [
|
|
3368
3368
|
t(a) ? (d(), _(Co, {
|
|
3369
3369
|
key: 0,
|
|
@@ -3378,7 +3378,7 @@ const Ke = W("settings", () => {
|
|
|
3378
3378
|
"swatches-max-height": "200",
|
|
3379
3379
|
width: "278",
|
|
3380
3380
|
"onUpdate:modelValue": l[1] || (l[1] = (u) => t(o).colors.one = u)
|
|
3381
|
-
}, null, 8, ["model-value"])) :
|
|
3381
|
+
}, null, 8, ["model-value"])) : S("", !0)
|
|
3382
3382
|
]),
|
|
3383
3383
|
_: 1
|
|
3384
3384
|
})
|
|
@@ -3388,17 +3388,17 @@ const Ke = W("settings", () => {
|
|
|
3388
3388
|
}), gs = { class: "text-center mt-n9 mb-4" }, ys = /* @__PURE__ */ $({
|
|
3389
3389
|
__name: "VoUserMenu",
|
|
3390
3390
|
setup(c) {
|
|
3391
|
-
const e = je(), o = P(), a =
|
|
3391
|
+
const e = je(), o = P(), a = A();
|
|
3392
3392
|
return B(() => e.banner, async () => {
|
|
3393
|
-
var n,
|
|
3394
|
-
await new Promise((l) => setTimeout(l, 300)), o.isOpen && ((
|
|
3395
|
-
}, { flush: "pre" }), (n,
|
|
3393
|
+
var n, s;
|
|
3394
|
+
await new Promise((l) => setTimeout(l, 300)), o.isOpen && ((s = (n = a.value) == null ? void 0 : n.updateLocation) == null || s.call(n));
|
|
3395
|
+
}, { flush: "pre" }), (n, s) => {
|
|
3396
3396
|
const l = _s, p = ms, f = ls, u = as, h = gt;
|
|
3397
3397
|
return d(), _(t(Lo), {
|
|
3398
3398
|
ref_key: "menu",
|
|
3399
3399
|
ref: a,
|
|
3400
3400
|
modelValue: t(o).isOpen,
|
|
3401
|
-
"onUpdate:modelValue":
|
|
3401
|
+
"onUpdate:modelValue": s[0] || (s[0] = (b) => t(o).isOpen = b),
|
|
3402
3402
|
activator: "parent",
|
|
3403
3403
|
"close-on-click": !1,
|
|
3404
3404
|
"close-on-content-click": !1,
|
|
@@ -3406,21 +3406,21 @@ const Ke = W("settings", () => {
|
|
|
3406
3406
|
location: "bottom end"
|
|
3407
3407
|
}, {
|
|
3408
3408
|
default: r(() => [
|
|
3409
|
-
|
|
3409
|
+
i(E, {
|
|
3410
3410
|
border: "",
|
|
3411
3411
|
rounded: "lg",
|
|
3412
3412
|
width: "280"
|
|
3413
3413
|
}, {
|
|
3414
3414
|
default: r(() => [
|
|
3415
|
-
|
|
3415
|
+
i(l),
|
|
3416
3416
|
y("div", gs, [
|
|
3417
|
-
|
|
3418
|
-
|
|
3417
|
+
i(p),
|
|
3418
|
+
i(f)
|
|
3419
3419
|
]),
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3420
|
+
i(Z),
|
|
3421
|
+
i(u),
|
|
3422
|
+
i(Z),
|
|
3423
|
+
i(h)
|
|
3424
3424
|
]),
|
|
3425
3425
|
_: 1
|
|
3426
3426
|
})
|
|
@@ -3435,20 +3435,20 @@ const Ke = W("settings", () => {
|
|
|
3435
3435
|
external: Boolean
|
|
3436
3436
|
},
|
|
3437
3437
|
setup(c) {
|
|
3438
|
-
const e = M(), o = P(), a = F(), { lgAndUp: n } =
|
|
3438
|
+
const e = M(), o = P(), a = F(), { lgAndUp: n } = ce(), s = w(() => o.isOpen || !e.user ? a.colors.one === "surface-light" ? "primary" : a.colors.one : "surface-light");
|
|
3439
3439
|
return (l, p) => {
|
|
3440
3440
|
const f = ys, u = fe, h = Mo, b = _t;
|
|
3441
3441
|
return d(), L(U, null, [
|
|
3442
|
-
|
|
3442
|
+
i(h, {
|
|
3443
3443
|
"offset-y": t(e).user ? 5 : 0
|
|
3444
3444
|
}, {
|
|
3445
3445
|
default: r(() => [
|
|
3446
|
-
|
|
3446
|
+
i(u, H({
|
|
3447
3447
|
[`${t(n) ? "append-" : ""}icon`]: t(e).user ? void 0 : `svg:${t(co)}`
|
|
3448
3448
|
}, {
|
|
3449
3449
|
active: "",
|
|
3450
3450
|
class: "vo-auth-btn",
|
|
3451
|
-
color: t(
|
|
3451
|
+
color: t(s),
|
|
3452
3452
|
icon: t(e).user || t(e).isLoading,
|
|
3453
3453
|
loading: t(e).isLoading,
|
|
3454
3454
|
size: "default",
|
|
@@ -3456,19 +3456,19 @@ const Ke = W("settings", () => {
|
|
|
3456
3456
|
variant: t(e).user ? "outlined" : "flat"
|
|
3457
3457
|
}), {
|
|
3458
3458
|
default: r(() => [
|
|
3459
|
-
t(e).user ?
|
|
3459
|
+
t(e).user ? S("", !0) : (d(), L("span", bs, "Login")),
|
|
3460
3460
|
t(e).user ? (d(), _(Q, {
|
|
3461
3461
|
key: 1,
|
|
3462
3462
|
image: t(a).avatar || t(e).user.picture || ""
|
|
3463
|
-
}, null, 8, ["image"])) :
|
|
3464
|
-
|
|
3463
|
+
}, null, 8, ["image"])) : S("", !0),
|
|
3464
|
+
i(f)
|
|
3465
3465
|
]),
|
|
3466
3466
|
_: 1
|
|
3467
3467
|
}, 16, ["color", "icon", "loading", "variant"])
|
|
3468
3468
|
]),
|
|
3469
3469
|
_: 1
|
|
3470
3470
|
}, 8, ["offset-y"]),
|
|
3471
|
-
|
|
3471
|
+
i(b)
|
|
3472
3472
|
], 64);
|
|
3473
3473
|
};
|
|
3474
3474
|
}
|
|
@@ -3493,7 +3493,7 @@ const Ke = W("settings", () => {
|
|
|
3493
3493
|
position: "left",
|
|
3494
3494
|
src: e.image
|
|
3495
3495
|
}, null, 8, ["src"]))
|
|
3496
|
-
])) :
|
|
3496
|
+
])) : S("", !0),
|
|
3497
3497
|
z(e.$slots, "default", {}, void 0, !0)
|
|
3498
3498
|
]),
|
|
3499
3499
|
_: 3
|
|
@@ -3543,8 +3543,8 @@ const Ke = W("settings", () => {
|
|
|
3543
3543
|
}
|
|
3544
3544
|
];
|
|
3545
3545
|
return (a, n) => {
|
|
3546
|
-
const
|
|
3547
|
-
return d(), _(
|
|
3546
|
+
const s = kt;
|
|
3547
|
+
return d(), _(s, {
|
|
3548
3548
|
class: "vo-footer",
|
|
3549
3549
|
height: "40",
|
|
3550
3550
|
image: t(e).suit.footer
|
|
@@ -3558,7 +3558,7 @@ const Ke = W("settings", () => {
|
|
|
3558
3558
|
target: "_blank",
|
|
3559
3559
|
title: l.title
|
|
3560
3560
|
}, [
|
|
3561
|
-
|
|
3561
|
+
i(D, {
|
|
3562
3562
|
icon: l.icon,
|
|
3563
3563
|
size: l.icon === "$vuetify" ? 24 : 16
|
|
3564
3564
|
}, null, 8, ["icon", "size"])
|
|
@@ -3586,10 +3586,10 @@ const Ke = W("settings", () => {
|
|
|
3586
3586
|
demo: { type: Boolean }
|
|
3587
3587
|
},
|
|
3588
3588
|
setup(c) {
|
|
3589
|
-
const e = c, { mdAndUp: o } =
|
|
3589
|
+
const e = c, { mdAndUp: o } = ce(), a = Ne(), n = F(), s = je(), l = w(() => s.banner), p = w(() => {
|
|
3590
3590
|
var g, V;
|
|
3591
3591
|
return ((g = l.value) == null ? void 0 : g.metadata.height) || ((V = l.value) != null && V.metadata.subtext ? 88 : 48);
|
|
3592
|
-
}), f =
|
|
3592
|
+
}), f = w(() => e.demo ? !0 : !l.value || !n.notifications.last.banner.includes(l.value.slug));
|
|
3593
3593
|
function u() {
|
|
3594
3594
|
l.value && n.notifications.last.banner.push(l.value.slug);
|
|
3595
3595
|
}
|
|
@@ -3605,7 +3605,7 @@ const Ke = W("settings", () => {
|
|
|
3605
3605
|
const m = V.link.split("?one=")[1];
|
|
3606
3606
|
a.push({ query: { one: m } });
|
|
3607
3607
|
}
|
|
3608
|
-
const b =
|
|
3608
|
+
const b = w(() => {
|
|
3609
3609
|
var V, m;
|
|
3610
3610
|
const g = ((V = l.value) == null ? void 0 : V.metadata) ?? { link: "" };
|
|
3611
3611
|
return {
|
|
@@ -3628,7 +3628,7 @@ const Ke = W("settings", () => {
|
|
|
3628
3628
|
order: "-1"
|
|
3629
3629
|
}, {
|
|
3630
3630
|
default: r(() => [
|
|
3631
|
-
|
|
3631
|
+
i(Ve, H(t(b), {
|
|
3632
3632
|
active: !1,
|
|
3633
3633
|
class: "flex-grow-1 py-6",
|
|
3634
3634
|
lines: "two",
|
|
@@ -3641,12 +3641,12 @@ const Ke = W("settings", () => {
|
|
|
3641
3641
|
image: t(l).metadata.images.logo.url,
|
|
3642
3642
|
size: "x-large",
|
|
3643
3643
|
tile: ""
|
|
3644
|
-
}, null, 8, ["image"])) :
|
|
3644
|
+
}, null, 8, ["image"])) : S("", !0)
|
|
3645
3645
|
]),
|
|
3646
3646
|
append: r(() => [
|
|
3647
3647
|
t(o) && t(l).metadata.link && t(l).metadata.link_text ? (d(), _(ze, { key: 0 }, {
|
|
3648
3648
|
default: r(({ isHovering: v, props: k }) => [
|
|
3649
|
-
|
|
3649
|
+
i(q, H({
|
|
3650
3650
|
...k,
|
|
3651
3651
|
...t(b)
|
|
3652
3652
|
}, {
|
|
@@ -3665,7 +3665,7 @@ const Ke = W("settings", () => {
|
|
|
3665
3665
|
}, 1040, ["append-icon", "color", "elevation", "title"])
|
|
3666
3666
|
]),
|
|
3667
3667
|
_: 1
|
|
3668
|
-
})) :
|
|
3668
|
+
})) : S("", !0),
|
|
3669
3669
|
t(l).metadata.closable ? (d(), _(q, {
|
|
3670
3670
|
key: 1,
|
|
3671
3671
|
class: "ms-6 me-2",
|
|
@@ -3675,7 +3675,7 @@ const Ke = W("settings", () => {
|
|
|
3675
3675
|
size: "small",
|
|
3676
3676
|
variant: "plain",
|
|
3677
3677
|
onClick: Ee(u, ["prevent", "stop"])
|
|
3678
|
-
}, null, 8, ["disabled"])) :
|
|
3678
|
+
}, null, 8, ["disabled"])) : S("", !0)
|
|
3679
3679
|
]),
|
|
3680
3680
|
default: r(() => [
|
|
3681
3681
|
t(l).metadata.text ? (d(), _(ct, {
|
|
@@ -3686,19 +3686,19 @@ const Ke = W("settings", () => {
|
|
|
3686
3686
|
T(C(t(l).metadata.text), 1)
|
|
3687
3687
|
]),
|
|
3688
3688
|
_: 1
|
|
3689
|
-
})) :
|
|
3689
|
+
})) : S("", !0),
|
|
3690
3690
|
t(l).metadata.subtext ? (d(), _(fo, { key: 1 }, {
|
|
3691
3691
|
default: r(() => [
|
|
3692
3692
|
T(C(t(l).metadata.subtext), 1)
|
|
3693
3693
|
]),
|
|
3694
3694
|
_: 1
|
|
3695
|
-
})) :
|
|
3695
|
+
})) : S("", !0)
|
|
3696
3696
|
]),
|
|
3697
3697
|
_: 1
|
|
3698
3698
|
}, 16)
|
|
3699
3699
|
]),
|
|
3700
3700
|
_: 1
|
|
3701
|
-
}, 8, ["color", "height", "image", "model-value"])) :
|
|
3701
|
+
}, 8, ["color", "height", "image", "model-value"])) : S("", !0);
|
|
3702
3702
|
};
|
|
3703
3703
|
}
|
|
3704
3704
|
}), As = {
|
|
@@ -3721,7 +3721,7 @@ const Ke = W("settings", () => {
|
|
|
3721
3721
|
target: "_blank"
|
|
3722
3722
|
}, R({
|
|
3723
3723
|
default: r(() => [
|
|
3724
|
-
|
|
3724
|
+
i(Ao, {
|
|
3725
3725
|
"min-height": e.minHeight,
|
|
3726
3726
|
width: "100%"
|
|
3727
3727
|
}, {
|
|
@@ -3730,7 +3730,7 @@ const Ke = W("settings", () => {
|
|
|
3730
3730
|
]),
|
|
3731
3731
|
_: 3
|
|
3732
3732
|
}, 8, ["min-height"]),
|
|
3733
|
-
e.caption ? (d(), L("div", As, C(e.caption), 1)) :
|
|
3733
|
+
e.caption ? (d(), L("div", As, C(e.caption), 1)) : S("", !0)
|
|
3734
3734
|
]),
|
|
3735
3735
|
_: 2
|
|
3736
3736
|
}, [
|
|
@@ -3751,7 +3751,7 @@ const Ke = W("settings", () => {
|
|
|
3751
3751
|
]), 1024));
|
|
3752
3752
|
}
|
|
3753
3753
|
}), et = W("promotions", () => {
|
|
3754
|
-
const c =
|
|
3754
|
+
const c = ie(), e = A([]), o = A([]), a = A(), n = O(!1), s = O(!1), l = w(() => e.value.filter((m) => m.metadata.discoverable));
|
|
3755
3755
|
Ze(f);
|
|
3756
3756
|
function p(m) {
|
|
3757
3757
|
return m[Math.floor(Math.random() * m.length)];
|
|
@@ -3763,7 +3763,7 @@ const Ke = W("settings", () => {
|
|
|
3763
3763
|
e.value = m.promotions;
|
|
3764
3764
|
} catch {
|
|
3765
3765
|
} finally {
|
|
3766
|
-
n.value = !1,
|
|
3766
|
+
n.value = !1, s.value = !0;
|
|
3767
3767
|
}
|
|
3768
3768
|
return e.value;
|
|
3769
3769
|
}
|
|
@@ -3820,7 +3820,7 @@ const Ke = W("settings", () => {
|
|
|
3820
3820
|
all: e,
|
|
3821
3821
|
aall: o,
|
|
3822
3822
|
isLoading: n,
|
|
3823
|
-
hasLoaded:
|
|
3823
|
+
hasLoaded: s,
|
|
3824
3824
|
discoverable: l,
|
|
3825
3825
|
record: a,
|
|
3826
3826
|
admin: V,
|
|
@@ -3837,34 +3837,34 @@ const Ke = W("settings", () => {
|
|
|
3837
3837
|
slug: {}
|
|
3838
3838
|
},
|
|
3839
3839
|
setup(c) {
|
|
3840
|
-
const e = c, o = et(), a = Xe(), n = F(),
|
|
3840
|
+
const e = c, o = et(), a = Xe(), n = F(), s = w(() => {
|
|
3841
3841
|
if (!n.disableAds)
|
|
3842
3842
|
return o.record ? o.record : e.slug ? o.all.find((f) => f.slug === e.slug) : o.random(o.all);
|
|
3843
|
-
}), l =
|
|
3843
|
+
}), l = w(() => {
|
|
3844
3844
|
var u, h;
|
|
3845
3845
|
const f = a.current.value.dark ? "logodark" : "logolight";
|
|
3846
|
-
return (h = (u =
|
|
3847
|
-
}), p =
|
|
3846
|
+
return (h = (u = s.value) == null ? void 0 : u.metadata.images[f]) == null ? void 0 : h.url;
|
|
3847
|
+
}), p = w(() => {
|
|
3848
3848
|
var u, h;
|
|
3849
3849
|
const f = a.current.value.dark ? "bgdark" : "bglight";
|
|
3850
|
-
return (h = (u =
|
|
3850
|
+
return (h = (u = s.value) == null ? void 0 : u.metadata.images[f]) == null ? void 0 : h.url;
|
|
3851
3851
|
});
|
|
3852
3852
|
return (f, u) => {
|
|
3853
3853
|
var b, g;
|
|
3854
3854
|
const h = $t;
|
|
3855
|
-
return t(
|
|
3855
|
+
return t(s) || !t(o).hasLoaded ? (d(), _(h, {
|
|
3856
3856
|
key: 0,
|
|
3857
3857
|
class: "mb-4",
|
|
3858
3858
|
height: "60",
|
|
3859
|
-
href: (b = t(
|
|
3859
|
+
href: (b = t(s)) == null ? void 0 : b.metadata.url,
|
|
3860
3860
|
image: t(p),
|
|
3861
3861
|
"max-width": "720",
|
|
3862
3862
|
"prepend-avatar": t(l),
|
|
3863
|
-
title: (g = t(
|
|
3863
|
+
title: (g = t(s)) == null ? void 0 : g.metadata.short_text,
|
|
3864
3864
|
width: "100%"
|
|
3865
3865
|
}, R({
|
|
3866
3866
|
default: r(() => [
|
|
3867
|
-
t(o).hasLoaded ?
|
|
3867
|
+
t(o).hasLoaded ? S("", !0) : (d(), _(be, {
|
|
3868
3868
|
key: 0,
|
|
3869
3869
|
class: "flex-1-0 overflow-hidden",
|
|
3870
3870
|
color: "transparent",
|
|
@@ -3875,24 +3875,24 @@ const Ke = W("settings", () => {
|
|
|
3875
3875
|
]),
|
|
3876
3876
|
_: 2
|
|
3877
3877
|
}, [
|
|
3878
|
-
t(
|
|
3878
|
+
t(s) ? {
|
|
3879
3879
|
name: "prepend",
|
|
3880
3880
|
fn: r(() => [
|
|
3881
|
-
|
|
3881
|
+
i(Q, {
|
|
3882
3882
|
class: "my-n4 me-4",
|
|
3883
3883
|
size: "36"
|
|
3884
3884
|
})
|
|
3885
3885
|
]),
|
|
3886
3886
|
key: "0"
|
|
3887
3887
|
} : void 0,
|
|
3888
|
-
t(
|
|
3888
|
+
t(s) ? {
|
|
3889
3889
|
name: "image",
|
|
3890
3890
|
fn: r(() => [
|
|
3891
|
-
|
|
3891
|
+
i(Y, { position: "right" })
|
|
3892
3892
|
]),
|
|
3893
3893
|
key: "1"
|
|
3894
3894
|
} : void 0
|
|
3895
|
-
]), 1032, ["href", "image", "prepend-avatar", "title"])) :
|
|
3895
|
+
]), 1032, ["href", "image", "prepend-avatar", "title"])) : S("", !0);
|
|
3896
3896
|
};
|
|
3897
3897
|
}
|
|
3898
3898
|
}), Ns = { class: "d-flex ga-4" }, Bs = { class: "d-flex align-start ga-4" }, Us = { class: "text-caption on-surface-light" }, zs = /* @__PURE__ */ $({
|
|
@@ -3901,11 +3901,11 @@ const Ke = W("settings", () => {
|
|
|
3901
3901
|
slug: {}
|
|
3902
3902
|
},
|
|
3903
3903
|
setup(c) {
|
|
3904
|
-
const e = c, o = et(), a = F(), n =
|
|
3904
|
+
const e = c, o = et(), a = F(), n = w(() => {
|
|
3905
3905
|
if (!a.disableAds)
|
|
3906
|
-
return o.record ? o.record : e.slug ? o.all.find((
|
|
3906
|
+
return o.record ? o.record : e.slug ? o.all.find((s) => s.slug === e.slug) : o.random(o.all);
|
|
3907
3907
|
});
|
|
3908
|
-
return (
|
|
3908
|
+
return (s, l) => {
|
|
3909
3909
|
var f, u;
|
|
3910
3910
|
const p = $t;
|
|
3911
3911
|
return t(n) || !t(o).hasLoaded ? (d(), _(p, {
|
|
@@ -3920,7 +3920,7 @@ const Ke = W("settings", () => {
|
|
|
3920
3920
|
return [
|
|
3921
3921
|
y("div", Ns, [
|
|
3922
3922
|
t(o).hasLoaded ? t(n) ? (d(), L(U, { key: 1 }, [
|
|
3923
|
-
|
|
3923
|
+
i(Y, {
|
|
3924
3924
|
height: "100",
|
|
3925
3925
|
"max-width": "130",
|
|
3926
3926
|
rounded: "s",
|
|
@@ -3930,8 +3930,8 @@ const Ke = W("settings", () => {
|
|
|
3930
3930
|
y("div", Bs, [
|
|
3931
3931
|
y("div", Us, C((g = t(n).metadata) == null ? void 0 : g.text), 1)
|
|
3932
3932
|
])
|
|
3933
|
-
], 64)) :
|
|
3934
|
-
|
|
3933
|
+
], 64)) : S("", !0) : (d(), L(U, { key: 0 }, [
|
|
3934
|
+
i(be, {
|
|
3935
3935
|
class: "flex-1-0 overflow-hidden",
|
|
3936
3936
|
color: "transparent",
|
|
3937
3937
|
loading: "",
|
|
@@ -3939,7 +3939,7 @@ const Ke = W("settings", () => {
|
|
|
3939
3939
|
"min-width": "130",
|
|
3940
3940
|
type: "image"
|
|
3941
3941
|
}),
|
|
3942
|
-
|
|
3942
|
+
i(be, {
|
|
3943
3943
|
class: "flex-1-0 ms-n3 mt-n3",
|
|
3944
3944
|
color: "transparent",
|
|
3945
3945
|
loading: "",
|
|
@@ -3951,7 +3951,7 @@ const Ke = W("settings", () => {
|
|
|
3951
3951
|
];
|
|
3952
3952
|
}),
|
|
3953
3953
|
_: 1
|
|
3954
|
-
}, 8, ["href"])) :
|
|
3954
|
+
}, 8, ["href"])) : S("", !0);
|
|
3955
3955
|
};
|
|
3956
3956
|
}
|
|
3957
3957
|
}), Fs = ["href"], Ts = { class: "text-white" }, js = /* @__PURE__ */ $({
|
|
@@ -3960,11 +3960,11 @@ const Ke = W("settings", () => {
|
|
|
3960
3960
|
slug: {}
|
|
3961
3961
|
},
|
|
3962
3962
|
setup(c) {
|
|
3963
|
-
const e = c, o = et(), a = Xe(), n =
|
|
3963
|
+
const e = c, o = et(), a = Xe(), n = w(() => o.record ? o.record : o.random(o.all)), s = w(() => {
|
|
3964
3964
|
var f, u;
|
|
3965
3965
|
const p = a.current.value.dark ? "logodark" : "logolight";
|
|
3966
3966
|
return (u = (f = n.value) == null ? void 0 : f.metadata.images[p]) == null ? void 0 : u.url;
|
|
3967
|
-
}), l =
|
|
3967
|
+
}), l = w(() => {
|
|
3968
3968
|
var f, u;
|
|
3969
3969
|
const p = a.current.value.dark ? "bgdark" : "bglight";
|
|
3970
3970
|
return (u = (f = n.value) == null ? void 0 : f.metadata.images[p]) == null ? void 0 : u.url;
|
|
@@ -3987,9 +3987,9 @@ const Ke = W("settings", () => {
|
|
|
3987
3987
|
rel: "noopener noreferrer",
|
|
3988
3988
|
target: "_blank"
|
|
3989
3989
|
}, [
|
|
3990
|
-
|
|
3990
|
+
i(Q, {
|
|
3991
3991
|
class: "me-4",
|
|
3992
|
-
image: t(
|
|
3992
|
+
image: t(s),
|
|
3993
3993
|
size: "24"
|
|
3994
3994
|
}, null, 8, ["image"]),
|
|
3995
3995
|
y("div", Ts, C((b = t(n)) == null ? void 0 : b.metadata.text), 1),
|
|
@@ -4000,7 +4000,7 @@ const Ke = W("settings", () => {
|
|
|
4000
4000
|
size: "x-small",
|
|
4001
4001
|
text: "SPONSORED",
|
|
4002
4002
|
variant: "flat"
|
|
4003
|
-
})) :
|
|
4003
|
+
})) : S("", !0)
|
|
4004
4004
|
], 8, Fs)
|
|
4005
4005
|
];
|
|
4006
4006
|
}),
|
|
@@ -4026,16 +4026,16 @@ const Ke = W("settings", () => {
|
|
|
4026
4026
|
},
|
|
4027
4027
|
emits: ["script:error", "script:load"],
|
|
4028
4028
|
setup(c, { emit: e }) {
|
|
4029
|
-
const o = c, a = e, n =
|
|
4029
|
+
const o = c, a = e, n = A(), s = A();
|
|
4030
4030
|
return Ze(async () => {
|
|
4031
4031
|
const l = document.createElement("script"), p = () => a("script:error");
|
|
4032
|
-
l.type = "text/javascript", l.id = o.scriptId, l.src = o.src, l.onload = () => a("script:load"), l.onerror = p,
|
|
4032
|
+
l.type = "text/javascript", l.id = o.scriptId, l.src = o.src, l.onload = () => a("script:load"), l.onerror = p, s.value = l;
|
|
4033
4033
|
}), qe(() => {
|
|
4034
4034
|
var l;
|
|
4035
|
-
|
|
4035
|
+
s.value && ((l = n.value) == null || l.appendChild(s.value));
|
|
4036
4036
|
}), Dt(() => {
|
|
4037
4037
|
var l;
|
|
4038
|
-
|
|
4038
|
+
s.value && ((l = n.value) == null || l.removeChild(s.value));
|
|
4039
4039
|
}), (l, p) => (d(), L("div", {
|
|
4040
4040
|
id: c.id,
|
|
4041
4041
|
ref_key: "rootEl",
|
|
@@ -4043,7 +4043,7 @@ const Ke = W("settings", () => {
|
|
|
4043
4043
|
}, null, 8, Ms));
|
|
4044
4044
|
}
|
|
4045
4045
|
}), Hs = W("spots", () => {
|
|
4046
|
-
const c =
|
|
4046
|
+
const c = ie(), e = bt(), o = A([]), a = A([]), n = A(), s = O(!1), l = w(() => n.value ? n.value : o.value.find(({
|
|
4047
4047
|
metadata: {
|
|
4048
4048
|
site: V,
|
|
4049
4049
|
active: m
|
|
@@ -4051,28 +4051,28 @@ const Ke = W("settings", () => {
|
|
|
4051
4051
|
}) => m ? V.includes("dev") && !1 || V.includes("*") ? !0 : V.some((v) => e.id.includes(v)) : !1));
|
|
4052
4052
|
async function p() {
|
|
4053
4053
|
try {
|
|
4054
|
-
|
|
4054
|
+
s.value = !0;
|
|
4055
4055
|
const V = await c.get("/one/spots");
|
|
4056
4056
|
o.value = V.spots;
|
|
4057
4057
|
} catch {
|
|
4058
4058
|
} finally {
|
|
4059
|
-
|
|
4059
|
+
s.value = !1;
|
|
4060
4060
|
}
|
|
4061
4061
|
return o.value;
|
|
4062
4062
|
}
|
|
4063
4063
|
async function f(V) {
|
|
4064
4064
|
try {
|
|
4065
|
-
|
|
4065
|
+
s.value = !0;
|
|
4066
4066
|
const m = await c.get(`/one/admin/spots/${V}`);
|
|
4067
4067
|
return n.value = m.spot, m.spot;
|
|
4068
4068
|
} catch {
|
|
4069
4069
|
} finally {
|
|
4070
|
-
|
|
4070
|
+
s.value = !1;
|
|
4071
4071
|
}
|
|
4072
4072
|
}
|
|
4073
4073
|
async function u(V) {
|
|
4074
4074
|
try {
|
|
4075
|
-
|
|
4075
|
+
s.value = !0;
|
|
4076
4076
|
const m = await c.form(
|
|
4077
4077
|
"/one/admin/spots",
|
|
4078
4078
|
V
|
|
@@ -4080,12 +4080,12 @@ const Ke = W("settings", () => {
|
|
|
4080
4080
|
return n.value = m.spot, m.spot;
|
|
4081
4081
|
} catch {
|
|
4082
4082
|
} finally {
|
|
4083
|
-
|
|
4083
|
+
s.value = !1;
|
|
4084
4084
|
}
|
|
4085
4085
|
}
|
|
4086
4086
|
async function h(V, m) {
|
|
4087
4087
|
try {
|
|
4088
|
-
|
|
4088
|
+
s.value = !0;
|
|
4089
4089
|
const v = await c.form(
|
|
4090
4090
|
`/one/admin/spots/${V}`,
|
|
4091
4091
|
m
|
|
@@ -4093,26 +4093,26 @@ const Ke = W("settings", () => {
|
|
|
4093
4093
|
return n.value = v.spot, v.spot;
|
|
4094
4094
|
} catch {
|
|
4095
4095
|
} finally {
|
|
4096
|
-
|
|
4096
|
+
s.value = !1;
|
|
4097
4097
|
}
|
|
4098
4098
|
}
|
|
4099
4099
|
async function b() {
|
|
4100
4100
|
}
|
|
4101
4101
|
async function g() {
|
|
4102
4102
|
try {
|
|
4103
|
-
|
|
4103
|
+
s.value = !0;
|
|
4104
4104
|
const V = await c.get("/one/admin/spots");
|
|
4105
4105
|
a.value = V.spots;
|
|
4106
4106
|
} catch {
|
|
4107
4107
|
} finally {
|
|
4108
|
-
|
|
4108
|
+
s.value = !1;
|
|
4109
4109
|
}
|
|
4110
4110
|
return o.value;
|
|
4111
4111
|
}
|
|
4112
4112
|
return {
|
|
4113
4113
|
all: o,
|
|
4114
4114
|
aall: a,
|
|
4115
|
-
isLoading:
|
|
4115
|
+
isLoading: s,
|
|
4116
4116
|
spot: l,
|
|
4117
4117
|
record: n,
|
|
4118
4118
|
admin: g,
|
|
@@ -4134,20 +4134,20 @@ const Ke = W("settings", () => {
|
|
|
4134
4134
|
rel: "noopener noreferrer sponsored",
|
|
4135
4135
|
target: "_blank"
|
|
4136
4136
|
}, [
|
|
4137
|
-
|
|
4137
|
+
i(Y, {
|
|
4138
4138
|
class: "mx-auto",
|
|
4139
4139
|
color: t(e).spot.metadata.image ? void 0 : "surface",
|
|
4140
4140
|
rounded: "",
|
|
4141
4141
|
src: (n = t(e).spot.metadata.image) == null ? void 0 : n.url,
|
|
4142
4142
|
width: "225"
|
|
4143
4143
|
}, null, 8, ["color", "src"])
|
|
4144
|
-
], 8, Rs)) :
|
|
4144
|
+
], 8, Rs)) : S("", !0);
|
|
4145
4145
|
};
|
|
4146
4146
|
}
|
|
4147
4147
|
}), Oa = W("bins", () => {
|
|
4148
|
-
const c = M(), e =
|
|
4148
|
+
const c = M(), e = ie(), o = A([]), a = A(), n = O(!1), s = O(-1), l = w(() => !c.user || !a.value ? !1 : c.user.id === a.value.owner.id), p = w(() => o.value.filter((v) => v.favorite)), f = w(() => o.value.filter((v) => v.pinned));
|
|
4149
4149
|
B(a, () => {
|
|
4150
|
-
window.clearTimeout(
|
|
4150
|
+
window.clearTimeout(s.value), s.value = window.setTimeout(() => {
|
|
4151
4151
|
!a.value || !l.value || g(a.value, a.value.id);
|
|
4152
4152
|
}, 100);
|
|
4153
4153
|
}, { deep: !0 });
|
|
@@ -4185,7 +4185,7 @@ const Ke = W("settings", () => {
|
|
|
4185
4185
|
async function g(v, k) {
|
|
4186
4186
|
try {
|
|
4187
4187
|
n.value = !0;
|
|
4188
|
-
const N = await e.post(`/one/bins/${k}`, { bin: v }), j = o.value.findIndex((
|
|
4188
|
+
const N = await e.post(`/one/bins/${k}`, { bin: v }), j = o.value.findIndex((re) => re.id === k);
|
|
4189
4189
|
o.value.splice(j, 1, N.bin);
|
|
4190
4190
|
} catch {
|
|
4191
4191
|
} finally {
|
|
@@ -4229,27 +4229,49 @@ const Ke = W("settings", () => {
|
|
|
4229
4229
|
update: g,
|
|
4230
4230
|
updateOrCreate: V
|
|
4231
4231
|
};
|
|
4232
|
+
}), Na = W("products", () => {
|
|
4233
|
+
const c = ie(), e = A([]), o = w(() => e.value.filter((s) => s.product_type === "Themes"));
|
|
4234
|
+
async function a() {
|
|
4235
|
+
if (e.value.length)
|
|
4236
|
+
return e.value;
|
|
4237
|
+
try {
|
|
4238
|
+
const s = await c.get("/one/shopify/products");
|
|
4239
|
+
e.value = s.products;
|
|
4240
|
+
} catch {
|
|
4241
|
+
}
|
|
4242
|
+
return e.value;
|
|
4243
|
+
}
|
|
4244
|
+
function n(s) {
|
|
4245
|
+
return s.slice().sort(() => Math.random() - 0.5);
|
|
4246
|
+
}
|
|
4247
|
+
return {
|
|
4248
|
+
all: e,
|
|
4249
|
+
themes: o,
|
|
4250
|
+
index: a,
|
|
4251
|
+
randomize: n
|
|
4252
|
+
};
|
|
4232
4253
|
});
|
|
4233
|
-
function
|
|
4254
|
+
function Ba() {
|
|
4234
4255
|
function c(e) {
|
|
4235
4256
|
e.component("VoAuthBtn", Vs), e.component("VoAuthCard", ht), e.component("VoAuthDialog", _t), e.component("VoAuthListItem", gt), e.component("VoSocialFooter", Is), e.component("VoNotificationsBanner", Ds), e.component("VoPromotionsCardHighlight", Os), e.component("VoPromotionsCardVuetify", zs), e.component("VoPromotionsFooter", js), e.component("VoScript", Ps), e.component("VoSpot", Es);
|
|
4236
4257
|
}
|
|
4237
4258
|
return { install: c };
|
|
4238
4259
|
}
|
|
4239
|
-
function
|
|
4260
|
+
function Ua(c, e) {
|
|
4240
4261
|
return function(o) {
|
|
4241
4262
|
const a = o.store;
|
|
4242
4263
|
a.url = e, a.$id === "site" && (a.id = c);
|
|
4243
4264
|
};
|
|
4244
4265
|
}
|
|
4245
4266
|
export {
|
|
4246
|
-
|
|
4247
|
-
|
|
4267
|
+
Ba as createOne,
|
|
4268
|
+
Ua as one,
|
|
4248
4269
|
M as useAuthStore,
|
|
4249
4270
|
je as useBannersStore,
|
|
4250
4271
|
Oa as useBinsStore,
|
|
4251
|
-
|
|
4272
|
+
ie as useHttpStore,
|
|
4252
4273
|
P as useOneStore,
|
|
4274
|
+
Na as useProductsStore,
|
|
4253
4275
|
et as usePromotionsStore,
|
|
4254
4276
|
Ke as useSettingsStore,
|
|
4255
4277
|
Hs as useSpotsStore,
|