@vuetify/one 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +972 -919
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { useRouter as
|
|
1
|
+
import { reactive as ft, watch as N, toRefs as vt, ref as H, shallowRef as D, computed as S, defineComponent as k, openBlock as p, createBlock as f, unref as t, createSlots as G, withCtx as a, createElementVNode as h, toDisplayString as I, createVNode as o, createTextVNode as B, renderSlot as M, normalizeStyle as Qe, createCommentVNode as $, withModifiers as Te, mergeModels as _t, useModel as ie, createElementBlock as w, Fragment as U, onBeforeMount as ht, nextTick as fe, renderList as oe, mergeProps as R, resolveComponent as Me, withDirectives as xe, vShow as Pe, onMounted as gt, normalizeClass as bt, pushScopeId as yt, popScopeId as Vt } from "vue";
|
|
2
|
+
import { useRouter as Re, useRoute as kt } from "vue-router";
|
|
3
3
|
import { defineStore as X } from "pinia";
|
|
4
4
|
import { merge as Oe } from "lodash-es";
|
|
5
|
-
import { mdiDiscord as He, mdiGithub as Ee, mdiSync as
|
|
6
|
-
import { VListItem as _e, VList as ee, VListItemTitle as
|
|
7
|
-
import { VAvatar as
|
|
8
|
-
import { VCard as
|
|
9
|
-
import { VDialog as
|
|
5
|
+
import { mdiDiscord as He, mdiGithub as Ee, mdiSync as $t, mdiSyncOff as xt, mdiLogoutVariant as wt, mdiFullscreenExit as St, mdiFullscreen as Lt, mdiCheck as re, mdiHome as Ct, mdiTextBox as It, mdiSelect as At, mdiSpaceInvaders as Je, mdiImageFilterHdr as Xe, mdiRocketLaunchOutline as Ke, mdiWhiteBalanceSunny as Dt, mdiWeatherNight as Ut, mdiDesktopTowerMonitor as Bt, mdiContrastCircle as Nt, mdiCog as Ot, mdiCogOutline as Ft, mdiFileDocument as zt, mdiCreditCardSettingsOutline as jt, mdiRocketOutline as Tt, mdiCheckCircleOutline as pe, mdiCreditCard as Mt, mdiReload as Pt, mdiPlaylistCheck as Rt, mdiCreditCardOutline as Ht, mdiMedal as We, mdiOpenInNew as ve, mdiHandHeart as Et, mdiChartLine as Wt, mdiHandHeartOutline as Gt, mdiEmailOpenOutline as et, mdiEmailVariant as tt, mdiBell as qt, mdiInboxOutline as Zt, mdiInboxFullOutline as Yt, mdiBillboard as Qt, mdiBellOutline as Jt, mdiViewDashboardOutline as Xt, mdiSpider as Kt, mdiCrown as eo, mdiArrowULeftBottom as to, mdiLogin as oo, mdiShieldStarOutline as so, mdiReddit as no } from "@mdi/js";
|
|
6
|
+
import { VListItem as _e, VList as ee, VListItemTitle as ot, VListItemSubtitle as ao } from "vuetify/lib/components/VList/index.mjs";
|
|
7
|
+
import { VAvatar as se } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
8
|
+
import { VCard as P, VCardTitle as io, VCardSubtitle as ro, VCardText as K } from "vuetify/lib/components/VCard/index.mjs";
|
|
9
|
+
import { VDialog as st } from "vuetify/lib/components/VDialog/index.mjs";
|
|
10
10
|
import { VBadge as Ge } from "vuetify/lib/components/VBadge/index.mjs";
|
|
11
11
|
import { VBtn as E } from "vuetify/lib/components/VBtn/index.mjs";
|
|
12
12
|
import { VProgressCircular as lo } from "vuetify/lib/components/VProgressCircular/index.mjs";
|
|
13
13
|
import { VSheet as qe } from "vuetify/lib/components/VSheet/index.mjs";
|
|
14
|
-
import { VSwitch as
|
|
15
|
-
import { VFadeTransition as
|
|
16
|
-
import { useDisplay as
|
|
14
|
+
import { VSwitch as nt } from "vuetify/lib/components/VSwitch/index.mjs";
|
|
15
|
+
import { VFadeTransition as we, VExpandTransition as he, VExpandXTransition as co } from "vuetify/lib/components/transitions/index.mjs";
|
|
16
|
+
import { useDisplay as le, useTheme as uo, useDate as Se } from "vuetify";
|
|
17
17
|
import { VDivider as W } from "vuetify/lib/components/VDivider/index.mjs";
|
|
18
18
|
import { VIcon as A } from "vuetify/lib/components/VIcon/index.mjs";
|
|
19
19
|
import { VLabel as ze } from "vuetify/lib/components/VLabel/index.mjs";
|
|
20
20
|
import { VChip as q } from "vuetify/lib/components/VChip/index.mjs";
|
|
21
|
-
import { VChipGroup as
|
|
22
|
-
import { VSelect as
|
|
23
|
-
import { VRow as
|
|
21
|
+
import { VChipGroup as po } from "vuetify/lib/components/VChipGroup/index.mjs";
|
|
22
|
+
import { VSelect as mo } from "vuetify/lib/components/VSelect/index.mjs";
|
|
23
|
+
import { VRow as Le, VCol as me } from "vuetify/lib/components/VGrid/index.mjs";
|
|
24
24
|
import { VHover as Ce } from "vuetify/lib/components/VHover/index.mjs";
|
|
25
|
-
import { VImg as
|
|
26
|
-
import { VItemGroup as
|
|
25
|
+
import { VImg as ge } from "vuetify/lib/components/VImg/index.mjs";
|
|
26
|
+
import { VItemGroup as at, VItem as je } from "vuetify/lib/components/VItemGroup/index.mjs";
|
|
27
27
|
import { VLayout as Ie } from "vuetify/lib/components/VLayout/index.mjs";
|
|
28
28
|
import { VMain as Ae } from "vuetify/lib/components/VMain/index.mjs";
|
|
29
|
-
import { VDataTableVirtual as
|
|
29
|
+
import { VDataTableVirtual as fo } from "vuetify/lib/components/VDataTable/index.mjs";
|
|
30
30
|
import { VSkeletonLoader as Ye } from "vuetify/lib/components/VSkeletonLoader/index.mjs";
|
|
31
|
-
import { VWindow as
|
|
32
|
-
import { VTimelineItem as Ze, VTimeline as
|
|
31
|
+
import { VWindow as it, VWindowItem as de } from "vuetify/lib/components/VWindow/index.mjs";
|
|
32
|
+
import { VTimelineItem as Ze, VTimeline as vo } from "vuetify/lib/components/VTimeline/index.mjs";
|
|
33
33
|
import { VTooltip as J } from "vuetify/lib/components/VTooltip/index.mjs";
|
|
34
|
-
import { VResponsive as
|
|
35
|
-
import { VNavigationDrawer as
|
|
36
|
-
import { Ripple as
|
|
37
|
-
import { VColorPicker as
|
|
38
|
-
import { VMenu as
|
|
39
|
-
import { VAppBar as
|
|
40
|
-
import { VFooter as
|
|
41
|
-
const
|
|
34
|
+
import { VResponsive as _o } from "vuetify/lib/components/VResponsive/index.mjs";
|
|
35
|
+
import { VNavigationDrawer as ho } from "vuetify/lib/components/VNavigationDrawer/index.mjs";
|
|
36
|
+
import { Ripple as go } from "vuetify/lib/directives/index.mjs";
|
|
37
|
+
import { VColorPicker as bo } from "vuetify/lib/components/VColorPicker/index.mjs";
|
|
38
|
+
import { VMenu as yo } from "vuetify/components";
|
|
39
|
+
import { VAppBar as Vo } from "vuetify/lib/components/VAppBar/index.mjs";
|
|
40
|
+
import { VFooter as ko } from "vuetify/lib/components/VFooter/index.mjs";
|
|
41
|
+
const be = X("http", {
|
|
42
42
|
state: () => ({
|
|
43
43
|
url: ""
|
|
44
44
|
}),
|
|
45
45
|
actions: {
|
|
46
|
-
async fetch(
|
|
47
|
-
const i = await fetch(`${this.url}${
|
|
46
|
+
async fetch(d, e = {}) {
|
|
47
|
+
const i = await fetch(`${this.url}${d}`, {
|
|
48
48
|
credentials: "include",
|
|
49
49
|
...e
|
|
50
50
|
});
|
|
51
51
|
return i.status === 204 ? i : i.json();
|
|
52
52
|
},
|
|
53
|
-
async post(
|
|
54
|
-
return this.fetch(
|
|
53
|
+
async post(d, e, i = {}) {
|
|
54
|
+
return this.fetch(d, {
|
|
55
55
|
method: "POST",
|
|
56
56
|
headers: {
|
|
57
57
|
"Content-Type": "application/json"
|
|
@@ -60,17 +60,17 @@ const ge = X("http", {
|
|
|
60
60
|
...i
|
|
61
61
|
});
|
|
62
62
|
},
|
|
63
|
-
async get(
|
|
64
|
-
return this.fetch(
|
|
63
|
+
async get(d, e = {}) {
|
|
64
|
+
return this.fetch(d, e);
|
|
65
65
|
},
|
|
66
|
-
async delete(
|
|
67
|
-
return this.fetch(
|
|
66
|
+
async delete(d, e = {}) {
|
|
67
|
+
return this.fetch(d, {
|
|
68
68
|
method: "DELETE",
|
|
69
69
|
...e
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
}), Fe = typeof window < "u",
|
|
73
|
+
}), Fe = typeof window < "u", $e = {
|
|
74
74
|
v: 5,
|
|
75
75
|
api: "link-only",
|
|
76
76
|
avatar: "",
|
|
@@ -109,45 +109,45 @@ const ge = X("http", {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}, O = X("user", () => {
|
|
112
|
-
const
|
|
113
|
-
N(
|
|
112
|
+
const d = ft(Oe({}, $e));
|
|
113
|
+
N(d, i);
|
|
114
114
|
function e() {
|
|
115
115
|
if (!Fe)
|
|
116
116
|
return;
|
|
117
|
-
const
|
|
118
|
-
let
|
|
119
|
-
|
|
117
|
+
const r = localStorage.getItem("vuetify@user"), n = r ? JSON.parse(r) : {};
|
|
118
|
+
let l = n.v === d.v;
|
|
119
|
+
n.v || (n.pwaRefresh = !0, typeof n.api == "boolean" && (n.api = n.api ? "inline" : "link-only"), typeof n.rtl == "boolean" && (n.direction = n.rtl ? "rtl" : "ltr", delete n.rtl), typeof n.theme == "object" && (n.mixedTheme = n.theme.mixed, n.theme = n.theme.system ? "system" : n.theme.dark ? "dark" : "light"), Array.isArray(n.notifications) && (n.notifications = { read: n.notifications }), typeof n.last == "object" && (n.notifications.last = n.last, delete n.last)), n.v === 1 && (Array.isArray(n.composition) && (n.composition = "composition"), Array.isArray(n.notifications.last.banner) || (n.notifications = n.notifications || {}, n.notifications.last = n.notifications.last || {}, n.notifications.last.banner = [])), n.v === 2 && (n.syncSettings = !0, n.disableAds = !1, n.v = 3), n.v === 3 && (n.quickbar = !1), n.v === 4 && (n.suits = $e.suits, n.notifications.banners = $e.notifications.banners, l = !0), n.v = d.v, Object.assign(d, Oe(d, n)), l && i();
|
|
120
120
|
}
|
|
121
121
|
function i() {
|
|
122
|
-
Fe && localStorage.setItem("vuetify@user", JSON.stringify(
|
|
122
|
+
Fe && localStorage.setItem("vuetify@user", JSON.stringify(d, null, 2));
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
Fe && (Object.assign(
|
|
124
|
+
function s() {
|
|
125
|
+
Fe && (Object.assign(d, Oe({}, $e)), i());
|
|
126
126
|
}
|
|
127
127
|
return e(), {
|
|
128
|
-
...
|
|
128
|
+
...vt(d),
|
|
129
129
|
load: e,
|
|
130
130
|
save: i,
|
|
131
|
-
reset:
|
|
131
|
+
reset: s
|
|
132
132
|
};
|
|
133
133
|
}), F = X("auth", () => {
|
|
134
|
-
const
|
|
134
|
+
const d = H(!1), e = H(null), i = be(), s = O(), r = Re(), n = D(!1), l = S(() => {
|
|
135
135
|
var _, y;
|
|
136
|
-
return !i.url || ((_ = e.value) == null ? void 0 : _.isAdmin) || !!((y = e.value) != null && y.sponsorships.some((
|
|
136
|
+
return !i.url || ((_ = e.value) == null ? void 0 : _.isAdmin) || !!((y = e.value) != null && y.sponsorships.some((x) => x.isActive));
|
|
137
137
|
});
|
|
138
|
-
let c = !!
|
|
138
|
+
let c = !!L();
|
|
139
139
|
N(e, (_) => {
|
|
140
140
|
if (!(_ != null && _.settings))
|
|
141
141
|
return;
|
|
142
142
|
const y = localStorage.getItem("vuetify@user") || "{}";
|
|
143
|
-
JSON.stringify(_.settings, null, 2) !== y && (c = !0, Object.assign(
|
|
144
|
-
}),
|
|
143
|
+
JSON.stringify(_.settings, null, 2) !== y && (c = !0, Object.assign(s, _.settings));
|
|
144
|
+
}), s.$subscribe(() => {
|
|
145
145
|
c || v(), c = !1;
|
|
146
146
|
});
|
|
147
147
|
async function v() {
|
|
148
|
-
if (!(!e.value || !
|
|
148
|
+
if (!(!e.value || !s.syncSettings))
|
|
149
149
|
try {
|
|
150
|
-
await i.post("/user/settings", { settings:
|
|
150
|
+
await i.post("/user/settings", { settings: s.$state });
|
|
151
151
|
} catch (_) {
|
|
152
152
|
console.error(_);
|
|
153
153
|
}
|
|
@@ -155,7 +155,7 @@ const ge = X("http", {
|
|
|
155
155
|
async function u(_ = !1) {
|
|
156
156
|
if (u.promise)
|
|
157
157
|
return u.promise;
|
|
158
|
-
|
|
158
|
+
n.value = !0, u.promise = fetch(`${i.url}/auth/verify`, {
|
|
159
159
|
credentials: "include",
|
|
160
160
|
headers: _ ? {
|
|
161
161
|
"Cache-Control": "no-cache"
|
|
@@ -167,81 +167,81 @@ const ge = X("http", {
|
|
|
167
167
|
() => {
|
|
168
168
|
}
|
|
169
169
|
).finally(() => {
|
|
170
|
-
|
|
170
|
+
n.value = !1, u.promise = null;
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
u.promise = null;
|
|
174
174
|
async function m(_ = "github") {
|
|
175
|
-
|
|
176
|
-
const y = `${i.url}/auth/${_}/redirect`,
|
|
175
|
+
n.value = !0;
|
|
176
|
+
const y = `${i.url}/auth/${_}/redirect`, x = 400, z = 600, T = window.screenX + (window.innerWidth - x) / 2, te = window.screenY + (window.innerHeight - z) / 2, Z = window.open(
|
|
177
177
|
"",
|
|
178
178
|
"vuetify:authorize:popup",
|
|
179
|
-
`popup,left=${T},top=${te},width=${
|
|
179
|
+
`popup,left=${T},top=${te},width=${x},height=${z},resizable`
|
|
180
180
|
);
|
|
181
181
|
if (!Z) {
|
|
182
182
|
console.error("Failed to open popup");
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
Z.location.href = y;
|
|
186
|
-
let
|
|
186
|
+
let ke = -1, ce = -1;
|
|
187
187
|
function ue(g) {
|
|
188
|
-
var
|
|
189
|
-
g.origin === i.url && ((
|
|
188
|
+
var C;
|
|
189
|
+
g.origin === i.url && ((C = g.data) == null ? void 0 : C.type) === "auth-response" && (g.data.status === "success" ? (e.value || localStorage.setItem("vuetify@lastLoginProvider", _), e.value = g.data.body.user, r.push("/user/dashboard/"), v()) : console.error(g.data.message), ae());
|
|
190
190
|
}
|
|
191
191
|
function ae() {
|
|
192
|
-
window.removeEventListener("message", ue), window.clearInterval(
|
|
192
|
+
window.removeEventListener("message", ue), window.clearInterval(ke), window.clearTimeout(ce), Z == null || Z.close(), n.value = !1;
|
|
193
193
|
}
|
|
194
|
-
window.addEventListener("message", ue),
|
|
194
|
+
window.addEventListener("message", ue), ke = window.setInterval(() => {
|
|
195
195
|
!Z || Z.closed ? (console.error("Auth popup closed"), ae()) : Z.postMessage({ type: "auth-request" }, "*");
|
|
196
196
|
}, 1e3), ce = window.setTimeout(() => {
|
|
197
197
|
ae(), console.error("Auth timed out");
|
|
198
198
|
}, 120 * 1e3);
|
|
199
199
|
}
|
|
200
200
|
async function b(_) {
|
|
201
|
-
|
|
201
|
+
n.value = !0;
|
|
202
202
|
const y = _ ? `/auth/${_}/logout` : "/auth/logout";
|
|
203
203
|
try {
|
|
204
204
|
await i.post(y), await u(!0), e.value = null;
|
|
205
|
-
} catch (
|
|
206
|
-
console.error(
|
|
205
|
+
} catch (x) {
|
|
206
|
+
console.error(x);
|
|
207
207
|
} finally {
|
|
208
|
-
|
|
208
|
+
r.push("/"), n.value = !1;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
function V(_) {
|
|
212
212
|
var y;
|
|
213
|
-
return (y = e.value) == null ? void 0 : y.identities.find((
|
|
213
|
+
return (y = e.value) == null ? void 0 : y.identities.find((x) => x.provider === _);
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function L() {
|
|
216
216
|
return localStorage.getItem("vuetify@lastLoginProvider");
|
|
217
217
|
}
|
|
218
218
|
return u(), {
|
|
219
219
|
user: e,
|
|
220
220
|
url: i.url,
|
|
221
|
-
dialog:
|
|
222
|
-
isLoading:
|
|
221
|
+
dialog: d,
|
|
222
|
+
isLoading: n,
|
|
223
223
|
findIdentity: V,
|
|
224
224
|
verify: u,
|
|
225
225
|
login: m,
|
|
226
226
|
logout: b,
|
|
227
|
-
isSubscriber:
|
|
228
|
-
lastLoginProvider:
|
|
227
|
+
isSubscriber: l,
|
|
228
|
+
lastLoginProvider: L,
|
|
229
229
|
sync: v
|
|
230
230
|
};
|
|
231
|
-
}),
|
|
231
|
+
}), $o = { class: "text-body-2" }, xo = /* @__PURE__ */ h("div", { class: "text-caption mt-n1" }, "Last Used", -1), rt = /* @__PURE__ */ k({
|
|
232
232
|
__name: "VoAuthDiscord",
|
|
233
|
-
setup(
|
|
234
|
-
const e = F(), i =
|
|
235
|
-
return (
|
|
233
|
+
setup(d) {
|
|
234
|
+
const e = F(), i = S(() => e.user && e.findIdentity("discord")), s = S(() => e.user ? i.value ? "Connected to Discord" : "Connect Discord" : "Login with Discord");
|
|
235
|
+
return (r, n) => (p(), f(_e, {
|
|
236
236
|
"prepend-icon": `svg:${t(He)}`,
|
|
237
237
|
"base-color": "#5865F2",
|
|
238
238
|
rounded: "pill",
|
|
239
239
|
variant: "flat",
|
|
240
240
|
slim: "",
|
|
241
|
-
onClick:
|
|
241
|
+
onClick: n[0] || (n[0] = (l) => t(e).login("discord"))
|
|
242
242
|
}, G({
|
|
243
243
|
title: a(() => [
|
|
244
|
-
h("span",
|
|
244
|
+
h("span", $o, I(s.value), 1)
|
|
245
245
|
]),
|
|
246
246
|
_: 2
|
|
247
247
|
}, [
|
|
@@ -254,59 +254,59 @@ const ge = X("http", {
|
|
|
254
254
|
} : void 0
|
|
255
255
|
]), 1032, ["prepend-icon"]));
|
|
256
256
|
}
|
|
257
|
-
}),
|
|
257
|
+
}), wo = { class: "text-body-2" }, So = /* @__PURE__ */ h("div", { class: "text-caption mt-n1" }, "Last Used", -1), lt = /* @__PURE__ */ k({
|
|
258
258
|
__name: "VoAuthGithub",
|
|
259
|
-
setup(
|
|
260
|
-
const e = F(), i =
|
|
261
|
-
return (
|
|
259
|
+
setup(d) {
|
|
260
|
+
const e = F(), i = S(() => e.user && e.findIdentity("github")), s = S(() => e.user ? i.value ? "Connected to GitHub" : "Connect GitHub" : "Login with GitHub");
|
|
261
|
+
return (r, n) => (p(), f(_e, {
|
|
262
262
|
"prepend-icon": `svg:${t(Ee)}`,
|
|
263
263
|
"base-color": "#2a2a2a",
|
|
264
264
|
rounded: "pill",
|
|
265
265
|
variant: "flat",
|
|
266
266
|
slim: "",
|
|
267
|
-
onClick:
|
|
267
|
+
onClick: n[0] || (n[0] = (l) => t(e).login("github"))
|
|
268
268
|
}, G({
|
|
269
269
|
title: a(() => [
|
|
270
|
-
h("span",
|
|
270
|
+
h("span", wo, I(s.value), 1)
|
|
271
271
|
]),
|
|
272
272
|
_: 2
|
|
273
273
|
}, [
|
|
274
274
|
!t(e).user && t(e).lastLoginProvider() === "github" ? {
|
|
275
275
|
name: "subtitle",
|
|
276
276
|
fn: a(() => [
|
|
277
|
-
|
|
277
|
+
So
|
|
278
278
|
]),
|
|
279
279
|
key: "0"
|
|
280
280
|
} : void 0
|
|
281
281
|
]), 1032, ["prepend-icon"]));
|
|
282
282
|
}
|
|
283
|
-
}),
|
|
283
|
+
}), Lo = { class: "text-center" }, Co = { class: "text-center mb-6" }, Io = { class: "font-weight-light mb-2" }, Ao = /* @__PURE__ */ h("span", { class: "font-weight-bold" }, "Vuetify One", -1), ct = /* @__PURE__ */ k({
|
|
284
284
|
__name: "VoAuthCard",
|
|
285
|
-
setup(
|
|
285
|
+
setup(d) {
|
|
286
286
|
const e = F();
|
|
287
|
-
return (i,
|
|
288
|
-
const
|
|
289
|
-
return
|
|
287
|
+
return (i, s) => {
|
|
288
|
+
const r = lt, n = rt;
|
|
289
|
+
return p(), f(P, {
|
|
290
290
|
class: "pt-6 pb-8 px-4 px-sm-8 mx-auto",
|
|
291
291
|
"max-width": "480"
|
|
292
292
|
}, {
|
|
293
293
|
default: a(() => [
|
|
294
|
-
h("div",
|
|
295
|
-
o(
|
|
294
|
+
h("div", Lo, [
|
|
295
|
+
o(se, {
|
|
296
296
|
image: "https://vuetifyjs.b-cdn.net/docs/images/avatars/one.png",
|
|
297
297
|
class: "mx-auto",
|
|
298
298
|
size: "64"
|
|
299
299
|
}, null, 8, ["image"])
|
|
300
300
|
]),
|
|
301
301
|
h("div", Co, [
|
|
302
|
-
o(
|
|
302
|
+
o(io, { class: "text-h5 mb-1 text-md-h4" }, {
|
|
303
303
|
default: a(() => [
|
|
304
|
-
h("div",
|
|
305
|
-
|
|
304
|
+
h("div", Io, I(t(e).lastLoginProvider() ? "Welcome back to" : "Login to"), 1),
|
|
305
|
+
Ao
|
|
306
306
|
]),
|
|
307
307
|
_: 1
|
|
308
308
|
}),
|
|
309
|
-
o(
|
|
309
|
+
o(ro, { class: "text-wrap" }, {
|
|
310
310
|
default: a(() => [
|
|
311
311
|
B(" Login with GitHub or Discord to save your settings and unlock exclusive subscriber perks. ")
|
|
312
312
|
]),
|
|
@@ -319,8 +319,8 @@ const ge = X("http", {
|
|
|
319
319
|
width: "100%"
|
|
320
320
|
}, {
|
|
321
321
|
default: a(() => [
|
|
322
|
-
o(
|
|
323
|
-
o(
|
|
322
|
+
o(r, { class: "mb-3" }),
|
|
323
|
+
o(n)
|
|
324
324
|
]),
|
|
325
325
|
_: 1
|
|
326
326
|
})
|
|
@@ -329,69 +329,69 @@ const ge = X("http", {
|
|
|
329
329
|
});
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
}),
|
|
332
|
+
}), ut = /* @__PURE__ */ k({
|
|
333
333
|
__name: "VoAuthDialog",
|
|
334
|
-
setup(
|
|
334
|
+
setup(d) {
|
|
335
335
|
const e = F();
|
|
336
|
-
return (i,
|
|
337
|
-
const
|
|
338
|
-
return
|
|
336
|
+
return (i, s) => {
|
|
337
|
+
const r = ct;
|
|
338
|
+
return p(), f(st, {
|
|
339
339
|
modelValue: t(e).dialog,
|
|
340
|
-
"onUpdate:modelValue":
|
|
340
|
+
"onUpdate:modelValue": s[0] || (s[0] = (n) => t(e).dialog = n),
|
|
341
341
|
"max-width": "480"
|
|
342
342
|
}, {
|
|
343
343
|
default: a(() => [
|
|
344
|
-
o(
|
|
344
|
+
o(r)
|
|
345
345
|
]),
|
|
346
346
|
_: 1
|
|
347
347
|
}, 8, ["modelValue"]);
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
350
|
}), De = X("notifications", () => {
|
|
351
|
-
const
|
|
352
|
-
async function
|
|
351
|
+
const d = be(), e = O(), i = H([]), s = D(!1), r = S(() => i.value.filter((c) => !e.notifications.read.includes(c.slug))), n = S(() => i.value.filter((c) => e.notifications.read.includes(c.slug)));
|
|
352
|
+
async function l() {
|
|
353
353
|
try {
|
|
354
|
-
|
|
355
|
-
const c = await
|
|
354
|
+
s.value = !0;
|
|
355
|
+
const c = await d.get("/one/notifications");
|
|
356
356
|
i.value = c.notifications;
|
|
357
357
|
} catch {
|
|
358
358
|
} finally {
|
|
359
|
-
|
|
359
|
+
s.value = !1;
|
|
360
360
|
}
|
|
361
361
|
return i.value;
|
|
362
362
|
}
|
|
363
363
|
return {
|
|
364
|
-
isLoading:
|
|
364
|
+
isLoading: s,
|
|
365
365
|
all: i,
|
|
366
|
-
get:
|
|
367
|
-
read:
|
|
368
|
-
unread:
|
|
366
|
+
get: l,
|
|
367
|
+
read: n,
|
|
368
|
+
unread: r
|
|
369
369
|
};
|
|
370
|
-
}),
|
|
370
|
+
}), Do = /* @__PURE__ */ k({
|
|
371
371
|
__name: "VoNotificationsTotalBadge",
|
|
372
|
-
setup(
|
|
373
|
-
const e = F(), i = De(),
|
|
374
|
-
return (
|
|
375
|
-
content:
|
|
372
|
+
setup(d) {
|
|
373
|
+
const e = F(), i = De(), s = O(), r = S(() => s.notifications.show ? i.unread.length : 0);
|
|
374
|
+
return (n, l) => (p(), f(Ge, {
|
|
375
|
+
content: r.value,
|
|
376
376
|
dot: !!t(e).user,
|
|
377
|
-
"model-value":
|
|
377
|
+
"model-value": r.value > 0,
|
|
378
378
|
color: "error",
|
|
379
379
|
location: "start top"
|
|
380
380
|
}, {
|
|
381
381
|
default: a(() => [
|
|
382
|
-
|
|
382
|
+
M(n.$slots, "default")
|
|
383
383
|
]),
|
|
384
384
|
_: 3
|
|
385
385
|
}, 8, ["content", "dot", "model-value"]));
|
|
386
386
|
}
|
|
387
|
-
}),
|
|
387
|
+
}), ne = /* @__PURE__ */ k({
|
|
388
388
|
__name: "VoBtn",
|
|
389
389
|
props: {
|
|
390
390
|
readonly: { type: Boolean }
|
|
391
391
|
},
|
|
392
|
-
setup(
|
|
393
|
-
const e =
|
|
394
|
-
return (i,
|
|
392
|
+
setup(d) {
|
|
393
|
+
const e = d;
|
|
394
|
+
return (i, s) => (p(), f(E, {
|
|
395
395
|
style: Qe({
|
|
396
396
|
pointerEvents: e.readonly ? "none" : void 0
|
|
397
397
|
}),
|
|
@@ -402,39 +402,39 @@ const ge = X("http", {
|
|
|
402
402
|
variant: "flat"
|
|
403
403
|
}, G({
|
|
404
404
|
loader: a(() => [
|
|
405
|
-
i.$slots.loader ?
|
|
405
|
+
i.$slots.loader ? $("", !0) : (p(), f(lo, {
|
|
406
406
|
key: 0,
|
|
407
407
|
indeterminate: "disable-shrink",
|
|
408
408
|
size: "16",
|
|
409
409
|
width: "2"
|
|
410
410
|
})),
|
|
411
|
-
|
|
411
|
+
M(i.$slots, "loader")
|
|
412
412
|
]),
|
|
413
413
|
_: 2
|
|
414
414
|
}, [
|
|
415
415
|
i.$slots.default ? {
|
|
416
416
|
name: "default",
|
|
417
417
|
fn: a(() => [
|
|
418
|
-
|
|
418
|
+
M(i.$slots, "default")
|
|
419
419
|
]),
|
|
420
420
|
key: "0"
|
|
421
421
|
} : void 0
|
|
422
422
|
]), 1032, ["style", "tabindex"]));
|
|
423
423
|
}
|
|
424
|
-
}),
|
|
424
|
+
}), Uo = { class: "pa-4 d-flex flex-column ga-4" }, dt = /* @__PURE__ */ k({
|
|
425
425
|
__name: "VoAuthListItem",
|
|
426
|
-
setup(
|
|
427
|
-
const e = F(), i = O(),
|
|
428
|
-
N(() => e.user, (
|
|
429
|
-
|
|
426
|
+
setup(d) {
|
|
427
|
+
const e = F(), i = O(), s = D(!e.user && !e.isLoading);
|
|
428
|
+
N(() => e.user, (n) => {
|
|
429
|
+
s.value = !n;
|
|
430
430
|
});
|
|
431
|
-
function
|
|
432
|
-
e.user && (
|
|
431
|
+
function r() {
|
|
432
|
+
e.user && (s.value = !s.value);
|
|
433
433
|
}
|
|
434
|
-
return (
|
|
435
|
-
const c =
|
|
436
|
-
return
|
|
437
|
-
variant:
|
|
434
|
+
return (n, l) => {
|
|
435
|
+
const c = lt, v = rt;
|
|
436
|
+
return p(), f(P, {
|
|
437
|
+
variant: s.value ? "tonal" : "text",
|
|
438
438
|
class: "ma-2",
|
|
439
439
|
rounded: "lg"
|
|
440
440
|
}, {
|
|
@@ -443,35 +443,35 @@ const ge = X("http", {
|
|
|
443
443
|
default: a(() => [
|
|
444
444
|
o(_e, {
|
|
445
445
|
link: !!t(e).user,
|
|
446
|
-
"prepend-icon": `svg:${t(e).user && t(i).syncSettings ? t(
|
|
446
|
+
"prepend-icon": `svg:${t(e).user && t(i).syncSettings ? t($t) : t(xt)}`,
|
|
447
447
|
title: t(e).user && t(i).syncSettings ? "Sync is on" : "Sync is paused",
|
|
448
448
|
class: "mb-0",
|
|
449
449
|
rounded: "b-0",
|
|
450
450
|
nav: "",
|
|
451
451
|
slim: "",
|
|
452
|
-
onClick:
|
|
452
|
+
onClick: r
|
|
453
453
|
}, {
|
|
454
454
|
append: a(() => [
|
|
455
|
-
o(
|
|
455
|
+
o(we, null, {
|
|
456
456
|
default: a(() => [
|
|
457
|
-
t(e).user && (
|
|
457
|
+
t(e).user && (s.value || !t(i).syncSettings) ? (p(), f(nt, {
|
|
458
458
|
key: 0,
|
|
459
459
|
modelValue: t(i).syncSettings,
|
|
460
|
-
"onUpdate:modelValue":
|
|
460
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => t(i).syncSettings = u),
|
|
461
461
|
color: t(i).syncSettings ? "success" : void 0,
|
|
462
462
|
density: "compact",
|
|
463
463
|
"hide-details": "",
|
|
464
464
|
inset: "",
|
|
465
|
-
onClick:
|
|
465
|
+
onClick: l[1] || (l[1] = Te(() => {
|
|
466
466
|
}, ["stop"]))
|
|
467
467
|
}, {
|
|
468
468
|
thumb: a(() => [
|
|
469
|
-
o(
|
|
469
|
+
o(se, {
|
|
470
470
|
color: t(i).syncSettings ? "success" : void 0
|
|
471
471
|
}, null, 8, ["color"])
|
|
472
472
|
]),
|
|
473
473
|
_: 1
|
|
474
|
-
}, 8, ["modelValue", "color"])) :
|
|
474
|
+
}, 8, ["modelValue", "color"])) : $("", !0)
|
|
475
475
|
]),
|
|
476
476
|
_: 1
|
|
477
477
|
})
|
|
@@ -480,23 +480,23 @@ const ge = X("http", {
|
|
|
480
480
|
}, 8, ["link", "prepend-icon", "title"]),
|
|
481
481
|
o(he, null, {
|
|
482
482
|
default: a(() => [
|
|
483
|
-
!t(e).user && !t(e).isLoading ||
|
|
483
|
+
!t(e).user && !t(e).isLoading || s.value ? (p(), f(qe, {
|
|
484
484
|
key: 0,
|
|
485
485
|
border: "t",
|
|
486
486
|
color: "transparent"
|
|
487
487
|
}, {
|
|
488
488
|
default: a(() => [
|
|
489
|
-
h("div",
|
|
489
|
+
h("div", Uo, [
|
|
490
490
|
o(c, {
|
|
491
|
-
onClick:
|
|
491
|
+
onClick: l[2] || (l[2] = (u) => s.value = !1)
|
|
492
492
|
}),
|
|
493
493
|
o(v, {
|
|
494
|
-
onClick:
|
|
494
|
+
onClick: l[3] || (l[3] = (u) => s.value = !1)
|
|
495
495
|
})
|
|
496
496
|
])
|
|
497
497
|
]),
|
|
498
498
|
_: 1
|
|
499
|
-
})) :
|
|
499
|
+
})) : $("", !0)
|
|
500
500
|
]),
|
|
501
501
|
_: 1
|
|
502
502
|
})
|
|
@@ -510,59 +510,59 @@ const ge = X("http", {
|
|
|
510
510
|
}
|
|
511
511
|
}), Y = /* @__PURE__ */ k({
|
|
512
512
|
__name: "VoListItem",
|
|
513
|
-
setup(
|
|
514
|
-
return (e, i) => (
|
|
513
|
+
setup(d) {
|
|
514
|
+
return (e, i) => (p(), f(_e, { slim: "" }, G({
|
|
515
515
|
default: a(() => [
|
|
516
|
-
|
|
516
|
+
M(e.$slots, "default")
|
|
517
517
|
]),
|
|
518
518
|
_: 2
|
|
519
519
|
}, [
|
|
520
520
|
e.$slots.prepend ? {
|
|
521
521
|
name: "prepend",
|
|
522
522
|
fn: a(() => [
|
|
523
|
-
|
|
523
|
+
M(e.$slots, "prepend")
|
|
524
524
|
]),
|
|
525
525
|
key: "0"
|
|
526
526
|
} : void 0,
|
|
527
527
|
e.$slots.title ? {
|
|
528
528
|
name: "title",
|
|
529
529
|
fn: a(() => [
|
|
530
|
-
|
|
530
|
+
M(e.$slots, "title")
|
|
531
531
|
]),
|
|
532
532
|
key: "1"
|
|
533
533
|
} : void 0,
|
|
534
534
|
e.$slots.append ? {
|
|
535
535
|
name: "append",
|
|
536
536
|
fn: a(() => [
|
|
537
|
-
|
|
537
|
+
M(e.$slots, "append")
|
|
538
538
|
]),
|
|
539
539
|
key: "2"
|
|
540
540
|
} : void 0
|
|
541
541
|
]), 1024));
|
|
542
542
|
}
|
|
543
|
-
}),
|
|
543
|
+
}), Bo = /* @__PURE__ */ k({
|
|
544
544
|
__name: "VoAuthLogoutListItem",
|
|
545
|
-
setup(
|
|
545
|
+
setup(d) {
|
|
546
546
|
const e = F(), i = D(!1);
|
|
547
|
-
async function
|
|
547
|
+
async function s() {
|
|
548
548
|
i.value = !0, await e.logout(), i.value = !1;
|
|
549
549
|
}
|
|
550
|
-
return (
|
|
551
|
-
const
|
|
552
|
-
return
|
|
550
|
+
return (r, n) => {
|
|
551
|
+
const l = Y;
|
|
552
|
+
return p(), f(l, {
|
|
553
553
|
disabled: i.value,
|
|
554
554
|
loading: i.value,
|
|
555
|
-
"prepend-icon": `svg:${t(
|
|
555
|
+
"prepend-icon": `svg:${t(wt)}`,
|
|
556
556
|
class: "mb-0",
|
|
557
557
|
title: "Logout",
|
|
558
558
|
link: "",
|
|
559
|
-
onClick:
|
|
559
|
+
onClick: s
|
|
560
560
|
}, null, 8, ["disabled", "loading", "prepend-icon"]);
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
563
|
}), Ue = /* @__PURE__ */ k({
|
|
564
564
|
__name: "VoDialog",
|
|
565
|
-
props: /* @__PURE__ */
|
|
565
|
+
props: /* @__PURE__ */ _t({
|
|
566
566
|
prependIcon: {},
|
|
567
567
|
title: {}
|
|
568
568
|
}, {
|
|
@@ -570,60 +570,60 @@ const ge = X("http", {
|
|
|
570
570
|
modelModifiers: {}
|
|
571
571
|
}),
|
|
572
572
|
emits: ["update:modelValue"],
|
|
573
|
-
setup(
|
|
574
|
-
const e = ie(
|
|
575
|
-
return (
|
|
573
|
+
setup(d) {
|
|
574
|
+
const e = ie(d, "modelValue"), i = le(), s = D(!1);
|
|
575
|
+
return (r, n) => (p(), f(st, {
|
|
576
576
|
modelValue: e.value,
|
|
577
|
-
"onUpdate:modelValue":
|
|
578
|
-
fullscreen:
|
|
579
|
-
"max-height":
|
|
580
|
-
"max-width":
|
|
577
|
+
"onUpdate:modelValue": n[2] || (n[2] = (l) => e.value = l),
|
|
578
|
+
fullscreen: s.value || t(i).xs.value,
|
|
579
|
+
"max-height": s.value || t(i).xs.value ? "100%" : 800,
|
|
580
|
+
"max-width": s.value || t(i).xs.value ? "100%" : 800,
|
|
581
581
|
activator: "parent",
|
|
582
582
|
height: "100%"
|
|
583
583
|
}, {
|
|
584
|
-
default: a(({ isActive:
|
|
585
|
-
o(
|
|
586
|
-
"prepend-icon":
|
|
587
|
-
title:
|
|
584
|
+
default: a(({ isActive: l }) => [
|
|
585
|
+
o(P, {
|
|
586
|
+
"prepend-icon": r.prependIcon,
|
|
587
|
+
title: r.title,
|
|
588
588
|
class: "overflow-hidden",
|
|
589
589
|
height: "inherit"
|
|
590
590
|
}, G({
|
|
591
591
|
append: a(() => [
|
|
592
|
-
|
|
593
|
-
t(i).xs.value ?
|
|
592
|
+
M(r.$slots, "append"),
|
|
593
|
+
t(i).xs.value ? $("", !0) : (p(), f(E, {
|
|
594
594
|
key: 0,
|
|
595
|
-
icon: `svg:${
|
|
595
|
+
icon: `svg:${s.value ? t(St) : t(Lt)}`,
|
|
596
596
|
class: "me-2",
|
|
597
597
|
density: "comfortable",
|
|
598
598
|
size: "small",
|
|
599
599
|
variant: "text",
|
|
600
|
-
onClick:
|
|
600
|
+
onClick: n[0] || (n[0] = (c) => s.value = !s.value)
|
|
601
601
|
}, null, 8, ["icon"])),
|
|
602
602
|
o(E, {
|
|
603
603
|
density: "comfortable",
|
|
604
604
|
icon: "$close",
|
|
605
605
|
size: "small",
|
|
606
606
|
variant: "text",
|
|
607
|
-
onClick:
|
|
607
|
+
onClick: n[1] || (n[1] = (c) => e.value = !e.value)
|
|
608
608
|
})
|
|
609
609
|
]),
|
|
610
610
|
default: a(() => [
|
|
611
611
|
o(W, { class: "mt-4" }),
|
|
612
|
-
|
|
612
|
+
M(r.$slots, "default")
|
|
613
613
|
]),
|
|
614
614
|
_: 2
|
|
615
615
|
}, [
|
|
616
|
-
|
|
616
|
+
r.$slots.prepend ? {
|
|
617
617
|
name: "prepend",
|
|
618
618
|
fn: a(() => [
|
|
619
|
-
|
|
619
|
+
M(r.$slots, "prepend")
|
|
620
620
|
]),
|
|
621
621
|
key: "0"
|
|
622
622
|
} : void 0,
|
|
623
|
-
|
|
623
|
+
r.$slots.actions ? {
|
|
624
624
|
name: "actions",
|
|
625
625
|
fn: a(() => [
|
|
626
|
-
|
|
626
|
+
M(r.$slots, "actions", { isActive: l })
|
|
627
627
|
]),
|
|
628
628
|
key: "1"
|
|
629
629
|
} : void 0
|
|
@@ -632,15 +632,15 @@ const ge = X("http", {
|
|
|
632
632
|
_: 3
|
|
633
633
|
}, 8, ["modelValue", "fullscreen", "max-height", "max-width"]));
|
|
634
634
|
}
|
|
635
|
-
}),
|
|
635
|
+
}), pt = /* @__PURE__ */ k({
|
|
636
636
|
__name: "VoSwitch",
|
|
637
637
|
props: {
|
|
638
638
|
disabled: { type: Boolean }
|
|
639
639
|
},
|
|
640
|
-
setup(
|
|
641
|
-
return (e, i) => (
|
|
640
|
+
setup(d) {
|
|
641
|
+
return (e, i) => (p(), f(nt, {
|
|
642
642
|
disabled: e.disabled,
|
|
643
|
-
"true-icon": `svg:${t(
|
|
643
|
+
"true-icon": `svg:${t(re)}`,
|
|
644
644
|
color: "primary",
|
|
645
645
|
density: "compact",
|
|
646
646
|
inset: ""
|
|
@@ -655,24 +655,24 @@ const ge = X("http", {
|
|
|
655
655
|
e.$slots.label ? {
|
|
656
656
|
name: "label",
|
|
657
657
|
fn: a(() => [
|
|
658
|
-
|
|
658
|
+
M(e.$slots, "label")
|
|
659
659
|
]),
|
|
660
660
|
key: "0"
|
|
661
661
|
} : void 0
|
|
662
662
|
]), 1032, ["disabled", "true-icon"]));
|
|
663
663
|
}
|
|
664
|
-
}),
|
|
664
|
+
}), No = {
|
|
665
665
|
key: 1,
|
|
666
666
|
class: "mb-3 text-caption text-medium-emphasis"
|
|
667
|
-
},
|
|
667
|
+
}, ye = /* @__PURE__ */ k({
|
|
668
668
|
__name: "VoDialogSubheader",
|
|
669
669
|
props: {
|
|
670
670
|
title: {},
|
|
671
671
|
text: {}
|
|
672
672
|
},
|
|
673
|
-
setup(
|
|
674
|
-
return (e, i) => (
|
|
675
|
-
e.title ? (
|
|
673
|
+
setup(d) {
|
|
674
|
+
return (e, i) => (p(), w(U, null, [
|
|
675
|
+
e.title ? (p(), f(ze, {
|
|
676
676
|
key: 0,
|
|
677
677
|
class: "font-weight-black"
|
|
678
678
|
}, {
|
|
@@ -680,51 +680,52 @@ const ge = X("http", {
|
|
|
680
680
|
B(I(e.title), 1)
|
|
681
681
|
]),
|
|
682
682
|
_: 1
|
|
683
|
-
})) :
|
|
684
|
-
e.text ? (
|
|
683
|
+
})) : $("", !0),
|
|
684
|
+
e.text ? (p(), w("div", No, I(e.text), 1)) : $("", !0)
|
|
685
685
|
], 64));
|
|
686
686
|
}
|
|
687
|
-
}),
|
|
687
|
+
}), Oo = { key: 0 }, Fo = /* @__PURE__ */ k({
|
|
688
688
|
__name: "VoSettingsPageSuitOption",
|
|
689
|
-
setup(
|
|
689
|
+
setup(d) {
|
|
690
690
|
const e = O(), i = [
|
|
691
691
|
{
|
|
692
692
|
title: "Choose a page suit",
|
|
693
693
|
value: "",
|
|
694
|
+
prependIcon: `svg:${At}`,
|
|
694
695
|
disabled: !0
|
|
695
696
|
},
|
|
696
697
|
{
|
|
697
698
|
title: "Blackguard",
|
|
698
699
|
prependIcon: `svg:${Je}`,
|
|
699
700
|
value: "blackguard"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
title: "Polaris",
|
|
704
|
+
prependIcon: `svg:${Xe}`,
|
|
705
|
+
value: "polaris"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
title: "Nebula",
|
|
709
|
+
prependIcon: `svg:${Ke}`,
|
|
710
|
+
value: "nebula"
|
|
700
711
|
}
|
|
701
|
-
// {
|
|
702
|
-
// title: 'Polaris',
|
|
703
|
-
// prependIcon: `svg:${mdiImageFilterHdr}`,
|
|
704
|
-
// value: 'polaris',
|
|
705
|
-
// },
|
|
706
|
-
// {
|
|
707
|
-
// title: 'Nebula',
|
|
708
|
-
// prependIcon: `svg:${mdiRocketLaunchOutline}`,
|
|
709
|
-
// value: 'nebula',
|
|
710
|
-
// },
|
|
711
712
|
];
|
|
712
|
-
return (
|
|
713
|
-
const
|
|
714
|
-
return
|
|
715
|
-
o(
|
|
713
|
+
return (s, r) => {
|
|
714
|
+
const n = pt, l = ye;
|
|
715
|
+
return p(), w(U, null, [
|
|
716
|
+
o(n, {
|
|
716
717
|
modelValue: t(e).suits.show,
|
|
717
|
-
"onUpdate:modelValue":
|
|
718
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => t(e).suits.show = c),
|
|
718
719
|
class: "mb-2",
|
|
719
720
|
label: "Enable Page suits",
|
|
720
721
|
messages: "Customize layout elements with a unique background, styled after one of our themed releases."
|
|
721
722
|
}, null, 8, ["modelValue"]),
|
|
722
723
|
o(he, null, {
|
|
723
724
|
default: a(() => [
|
|
724
|
-
t(e).suits.show ? (
|
|
725
|
-
o(
|
|
725
|
+
t(e).suits.show ? (p(), w("div", Oo, [
|
|
726
|
+
o(mo, {
|
|
726
727
|
modelValue: t(e).suits.suit,
|
|
727
|
-
"onUpdate:modelValue":
|
|
728
|
+
"onUpdate:modelValue": r[1] || (r[1] = (c) => t(e).suits.suit = c),
|
|
728
729
|
items: i,
|
|
729
730
|
density: "compact",
|
|
730
731
|
placeholder: "Choose a page suit",
|
|
@@ -744,17 +745,17 @@ const ge = X("http", {
|
|
|
744
745
|
]),
|
|
745
746
|
_: 1
|
|
746
747
|
}, 8, ["modelValue"]),
|
|
747
|
-
o(
|
|
748
|
-
o(
|
|
748
|
+
o(l, { text: "Select your suit elements to display the background image:" }),
|
|
749
|
+
o(po, {
|
|
749
750
|
modelValue: t(e).suits.elements,
|
|
750
|
-
"onUpdate:modelValue":
|
|
751
|
+
"onUpdate:modelValue": r[2] || (r[2] = (c) => t(e).suits.elements = c),
|
|
751
752
|
color: "primary",
|
|
752
753
|
filter: "",
|
|
753
754
|
multiple: ""
|
|
754
755
|
}, {
|
|
755
756
|
default: a(() => [
|
|
756
757
|
o(q, {
|
|
757
|
-
"append-icon": `svg:${t(
|
|
758
|
+
"append-icon": `svg:${t(Ct)}`,
|
|
758
759
|
"filter-icon": "$success",
|
|
759
760
|
text: "App Bar",
|
|
760
761
|
value: "app-bar",
|
|
@@ -770,7 +771,7 @@ const ge = X("http", {
|
|
|
770
771
|
_: 1
|
|
771
772
|
}, 8, ["append-icon"]),
|
|
772
773
|
o(q, {
|
|
773
|
-
"append-icon": `svg:${t(
|
|
774
|
+
"append-icon": `svg:${t(It)}`,
|
|
774
775
|
"filter-icon": "$success",
|
|
775
776
|
text: "Navigation Drawer",
|
|
776
777
|
value: "drawer",
|
|
@@ -804,7 +805,7 @@ const ge = X("http", {
|
|
|
804
805
|
]),
|
|
805
806
|
_: 1
|
|
806
807
|
}, 8, ["modelValue"])
|
|
807
|
-
])) :
|
|
808
|
+
])) : $("", !0)
|
|
808
809
|
]),
|
|
809
810
|
_: 1
|
|
810
811
|
})
|
|
@@ -812,125 +813,125 @@ const ge = X("http", {
|
|
|
812
813
|
};
|
|
813
814
|
}
|
|
814
815
|
});
|
|
815
|
-
function
|
|
816
|
-
const
|
|
817
|
-
return
|
|
818
|
-
() =>
|
|
816
|
+
function Ve() {
|
|
817
|
+
const d = kt();
|
|
818
|
+
return S(
|
|
819
|
+
() => d.query
|
|
819
820
|
);
|
|
820
821
|
}
|
|
821
822
|
const j = X("one", () => {
|
|
822
|
-
const
|
|
823
|
+
const d = Ve(), e = d.value.session_id, i = Re(), s = F(), r = be(), n = D(!1), l = H(!1), c = H(), v = H([]), u = S(() => {
|
|
823
824
|
var g;
|
|
824
825
|
return (g = c.value) == null ? void 0 : g.items[0].plan.interval;
|
|
825
|
-
}), m =
|
|
826
|
+
}), m = S(() => {
|
|
826
827
|
var g;
|
|
827
|
-
return (g =
|
|
828
|
-
}), b =
|
|
828
|
+
return (g = s.user) == null ? void 0 : g.sponsorships.find((C) => C.platform === "stripe" && C.tierName.startsWith("sub_"));
|
|
829
|
+
}), b = S(() => {
|
|
829
830
|
var g;
|
|
830
831
|
return !!((g = m.value) != null && g.tierName);
|
|
831
|
-
}), V =
|
|
832
|
+
}), V = S(() => {
|
|
832
833
|
var g;
|
|
833
834
|
return (g = m.value) == null ? void 0 : g.isActive;
|
|
834
|
-
}),
|
|
835
|
+
}), L = S(() => {
|
|
835
836
|
var g;
|
|
836
|
-
return (g =
|
|
837
|
-
}), _ =
|
|
837
|
+
return (g = s.user) == null ? void 0 : g.sponsorships.find((C) => C.platform === "github");
|
|
838
|
+
}), _ = S(() => {
|
|
838
839
|
var g;
|
|
839
|
-
return (g =
|
|
840
|
-
}), y =
|
|
840
|
+
return (g = s.user) == null ? void 0 : g.sponsorships.find((C) => C.platform === "discord");
|
|
841
|
+
}), y = S(() => {
|
|
841
842
|
var g;
|
|
842
|
-
return (g =
|
|
843
|
-
}),
|
|
843
|
+
return (g = s.user) == null ? void 0 : g.sponsorships.find((C) => C.platform === "patreon");
|
|
844
|
+
}), x = S(() => {
|
|
844
845
|
var g;
|
|
845
|
-
return (g =
|
|
846
|
+
return (g = s.user) == null ? void 0 : g.sponsorships.reduce((C, Q) => {
|
|
846
847
|
if (!Q.isActive || Q.interval === "once" || Q.platform === "stripe")
|
|
847
|
-
return
|
|
848
|
-
const
|
|
849
|
-
return
|
|
848
|
+
return C;
|
|
849
|
+
const mt = Q.interval === "month" ? Q.amount : Q.amount / 12;
|
|
850
|
+
return C + mt / 100;
|
|
850
851
|
}, 0);
|
|
851
852
|
});
|
|
852
|
-
|
|
853
|
+
ht(async () => {
|
|
853
854
|
e && await z();
|
|
854
|
-
}), N(
|
|
855
|
+
}), N(l, (g) => {
|
|
855
856
|
g && ae();
|
|
856
|
-
}), N(
|
|
857
|
-
if (g.one !== "subscribe" ||
|
|
857
|
+
}), N(d, (g) => {
|
|
858
|
+
if (g.one !== "subscribe" || s.user)
|
|
858
859
|
return;
|
|
859
|
-
console.log(g.one),
|
|
860
|
-
const
|
|
861
|
-
Q && (
|
|
860
|
+
console.log(g.one), s.dialog = !0;
|
|
861
|
+
const C = N(() => s.user, (Q) => {
|
|
862
|
+
Q && (s.dialog = !1, C());
|
|
862
863
|
});
|
|
863
|
-
}, { immediate: !0 }), N(V, (g,
|
|
864
|
-
g === !1 &&
|
|
864
|
+
}, { immediate: !0 }), N(V, (g, C) => {
|
|
865
|
+
g === !1 && C !== !0 || ce();
|
|
865
866
|
});
|
|
866
867
|
async function z() {
|
|
867
868
|
try {
|
|
868
|
-
|
|
869
|
-
const g = await
|
|
870
|
-
|
|
871
|
-
const
|
|
872
|
-
|
|
869
|
+
n.value = !0;
|
|
870
|
+
const g = await r.post("/one/activate", { sessionId: e });
|
|
871
|
+
s.user = g.user;
|
|
872
|
+
const C = new URL(window.location.href);
|
|
873
|
+
C.searchParams.delete("session_id"), history.pushState(null, "", C.toString()), ue();
|
|
873
874
|
} catch {
|
|
874
875
|
} finally {
|
|
875
|
-
|
|
876
|
+
n.value = !1;
|
|
876
877
|
}
|
|
877
878
|
}
|
|
878
879
|
async function T() {
|
|
879
|
-
window.open(`${
|
|
880
|
+
window.open(`${r.url}/one/manage`, "_blank");
|
|
880
881
|
}
|
|
881
882
|
async function te(g) {
|
|
882
|
-
|
|
883
|
+
n.value = !0, window.location.href = `${r.url}/one/subscribe?interval=${g}`;
|
|
883
884
|
}
|
|
884
885
|
async function Z() {
|
|
885
886
|
var g;
|
|
886
887
|
if (m.value)
|
|
887
888
|
try {
|
|
888
|
-
|
|
889
|
-
const
|
|
889
|
+
n.value = !0;
|
|
890
|
+
const C = await r.post(
|
|
890
891
|
`/one/cancel?subscriptionId=${(g = m.value) == null ? void 0 : g.tierName}`
|
|
891
892
|
);
|
|
892
|
-
|
|
893
|
+
s.user = C.user;
|
|
893
894
|
} catch {
|
|
894
895
|
} finally {
|
|
895
|
-
|
|
896
|
+
n.value = !1;
|
|
896
897
|
}
|
|
897
898
|
}
|
|
898
|
-
async function
|
|
899
|
+
async function ke(g) {
|
|
899
900
|
if (m.value)
|
|
900
901
|
try {
|
|
901
|
-
|
|
902
|
-
const
|
|
902
|
+
n.value = !0;
|
|
903
|
+
const C = await r.post("/one/modify", {
|
|
903
904
|
subscriptionId: m.value.tierName,
|
|
904
905
|
interval: g
|
|
905
906
|
});
|
|
906
|
-
|
|
907
|
+
s.user = C.user;
|
|
907
908
|
} catch {
|
|
908
909
|
} finally {
|
|
909
|
-
|
|
910
|
+
n.value = !1;
|
|
910
911
|
}
|
|
911
912
|
}
|
|
912
913
|
async function ce() {
|
|
913
914
|
var g;
|
|
914
915
|
if (m.value)
|
|
915
916
|
try {
|
|
916
|
-
|
|
917
|
-
const
|
|
917
|
+
n.value = !0;
|
|
918
|
+
const C = await r.post(
|
|
918
919
|
`/one/verify?subscriptionId=${(g = m.value) == null ? void 0 : g.tierName}`
|
|
919
920
|
);
|
|
920
|
-
|
|
921
|
+
s.user = C.user;
|
|
921
922
|
} catch {
|
|
922
923
|
} finally {
|
|
923
|
-
|
|
924
|
+
n.value = !1;
|
|
924
925
|
}
|
|
925
926
|
}
|
|
926
927
|
async function ue() {
|
|
927
928
|
try {
|
|
928
|
-
|
|
929
|
-
const g = await
|
|
929
|
+
n.value = !0;
|
|
930
|
+
const g = await r.get("/one/info");
|
|
930
931
|
return c.value = g.subscription, v.value = g.invoices, g;
|
|
931
932
|
} catch {
|
|
932
933
|
} finally {
|
|
933
|
-
|
|
934
|
+
n.value = !1;
|
|
934
935
|
}
|
|
935
936
|
}
|
|
936
937
|
function ae() {
|
|
@@ -942,25 +943,25 @@ const j = X("one", () => {
|
|
|
942
943
|
invoices: v,
|
|
943
944
|
sessionId: e,
|
|
944
945
|
subscription: m,
|
|
945
|
-
monthlyTotal:
|
|
946
|
+
monthlyTotal: x,
|
|
946
947
|
hasBilling: b,
|
|
947
|
-
isLoading:
|
|
948
|
-
isOpen:
|
|
948
|
+
isLoading: n,
|
|
949
|
+
isOpen: l,
|
|
949
950
|
isSubscriber: V,
|
|
950
|
-
github:
|
|
951
|
+
github: L,
|
|
951
952
|
patreon: y,
|
|
952
953
|
discord: _,
|
|
953
954
|
activate: z,
|
|
954
955
|
cancel: Z,
|
|
955
956
|
manage: T,
|
|
956
|
-
modify:
|
|
957
|
+
modify: ke,
|
|
957
958
|
resetQuery: ae,
|
|
958
959
|
subscribe: te,
|
|
959
960
|
subscriptionInfo: ue,
|
|
960
961
|
verify: ce
|
|
961
962
|
};
|
|
962
963
|
});
|
|
963
|
-
function
|
|
964
|
+
function zo() {
|
|
964
965
|
return {
|
|
965
966
|
blackguard: {
|
|
966
967
|
dark: !0,
|
|
@@ -1000,25 +1001,27 @@ function Fo() {
|
|
|
1000
1001
|
"theme-on-code": "#CCCCCC"
|
|
1001
1002
|
}
|
|
1002
1003
|
},
|
|
1003
|
-
|
|
1004
|
+
polaris: {
|
|
1004
1005
|
dark: !0,
|
|
1005
1006
|
colors: {
|
|
1006
|
-
background: "#
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
"
|
|
1017
|
-
|
|
1018
|
-
"secondary-darken-1": "#
|
|
1007
|
+
background: "#2a0e12",
|
|
1008
|
+
primary: "#e73c00",
|
|
1009
|
+
surface: "#4e221b",
|
|
1010
|
+
info: "#e7810d",
|
|
1011
|
+
accent: "#b35000",
|
|
1012
|
+
success: "#486a2b",
|
|
1013
|
+
"surface-light": "#773421",
|
|
1014
|
+
"surface-bright": "#9c5233",
|
|
1015
|
+
"surface-variant": "#924d2c",
|
|
1016
|
+
"on-surface-variant": "#FFFFFF",
|
|
1017
|
+
"primary-darken-1": "#c33100",
|
|
1018
|
+
secondary: "#ac1900",
|
|
1019
|
+
"secondary-darken-1": "#8a1600",
|
|
1020
|
+
error: "#ff5555",
|
|
1021
|
+
warning: "#ffa726"
|
|
1019
1022
|
},
|
|
1020
1023
|
variables: {
|
|
1021
|
-
"border-color": "#
|
|
1024
|
+
"border-color": "#ffffff",
|
|
1022
1025
|
"border-opacity": 0.12,
|
|
1023
1026
|
"high-emphasis-opacity": 0.87,
|
|
1024
1027
|
"medium-emphasis-opacity": 0.6,
|
|
@@ -1031,9 +1034,47 @@ function Fo() {
|
|
|
1031
1034
|
"pressed-opacity": 0.16,
|
|
1032
1035
|
"dragged-opacity": 0.08,
|
|
1033
1036
|
"theme-kbd": "#212529",
|
|
1034
|
-
"theme-on-kbd": "#
|
|
1037
|
+
"theme-on-kbd": "#ffffff",
|
|
1035
1038
|
"theme-code": "#343434",
|
|
1036
|
-
"theme-on-code": "#
|
|
1039
|
+
"theme-on-code": "#cccccc"
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
nebula: {
|
|
1043
|
+
dark: !0,
|
|
1044
|
+
colors: {
|
|
1045
|
+
background: "#0f172a",
|
|
1046
|
+
primary: "#1e3a8a",
|
|
1047
|
+
surface: "#1e293b",
|
|
1048
|
+
info: "#64748b",
|
|
1049
|
+
accent: "#0ea5e9",
|
|
1050
|
+
success: "#14b8a6",
|
|
1051
|
+
"surface-light": "#2e3d59",
|
|
1052
|
+
"surface-bright": "#3357b7",
|
|
1053
|
+
"surface-variant": "#334155",
|
|
1054
|
+
"on-surface-variant": "#FFFFFF",
|
|
1055
|
+
"primary-darken-1": "#1c2d60",
|
|
1056
|
+
secondary: "#0284c7",
|
|
1057
|
+
"secondary-darken-1": "#0369a1",
|
|
1058
|
+
error: "#ef4444",
|
|
1059
|
+
warning: "#f97316"
|
|
1060
|
+
},
|
|
1061
|
+
variables: {
|
|
1062
|
+
"border-color": "#ffffff",
|
|
1063
|
+
"border-opacity": 0.2,
|
|
1064
|
+
"high-emphasis-opacity": 0.87,
|
|
1065
|
+
"medium-emphasis-opacity": 0.6,
|
|
1066
|
+
"disabled-opacity": 0.38,
|
|
1067
|
+
"idle-opacity": 0.1,
|
|
1068
|
+
"hover-opacity": 0.08,
|
|
1069
|
+
"focus-opacity": 0.12,
|
|
1070
|
+
"selected-opacity": 0.12,
|
|
1071
|
+
"activated-opacity": 0.12,
|
|
1072
|
+
"pressed-opacity": 0.16,
|
|
1073
|
+
"dragged-opacity": 0.08,
|
|
1074
|
+
"theme-kbd": "#1e40af",
|
|
1075
|
+
"theme-on-kbd": "#dbeafe",
|
|
1076
|
+
"theme-code": "#0f172a",
|
|
1077
|
+
"theme-on-code": "#93c5fd"
|
|
1037
1078
|
}
|
|
1038
1079
|
},
|
|
1039
1080
|
highContrast: {
|
|
@@ -1077,109 +1118,107 @@ function Fo() {
|
|
|
1077
1118
|
};
|
|
1078
1119
|
}
|
|
1079
1120
|
const Be = X("settings", () => {
|
|
1080
|
-
const
|
|
1121
|
+
const d = "https://cdn.vuetifyjs.com/docs/images/one/", e = F(), i = O(), s = uo(), r = zo(), n = {
|
|
1081
1122
|
blackguard: {
|
|
1082
|
-
"app-bar":
|
|
1083
|
-
drawer:
|
|
1084
|
-
footer: ""
|
|
1123
|
+
"app-bar": d + "suits/blackguard/blackguard-app-bar.png",
|
|
1124
|
+
drawer: d + "suits/blackguard/blackguard-app-drawer.png",
|
|
1125
|
+
footer: d + "suits/blackguard/blackguard-app-footer.png"
|
|
1126
|
+
},
|
|
1127
|
+
polaris: {
|
|
1128
|
+
"app-bar": d + "suits/polaris/polaris-app-bar.png",
|
|
1129
|
+
drawer: d + "suits/polaris/polaris-app-drawer.png",
|
|
1130
|
+
footer: d + "suits/polaris/polaris-app-footer.png"
|
|
1131
|
+
},
|
|
1132
|
+
nebula: {
|
|
1133
|
+
"app-bar": d + "suits/nebula/nebula-app-bar.png",
|
|
1134
|
+
drawer: d + "suits/nebula/nebula-app-drawer.png",
|
|
1135
|
+
footer: d + "suits/nebula/nebula-app-footer.png"
|
|
1085
1136
|
}
|
|
1086
|
-
|
|
1087
|
-
// 'app-bar': '',
|
|
1088
|
-
// 'drawer': '',
|
|
1089
|
-
// footer: '',
|
|
1090
|
-
// },
|
|
1091
|
-
// nebula: {
|
|
1092
|
-
// 'app-bar': '',
|
|
1093
|
-
// 'drawer': '',
|
|
1094
|
-
// footer: '',
|
|
1095
|
-
// },
|
|
1096
|
-
}, r = w(() => {
|
|
1137
|
+
}, l = S(() => {
|
|
1097
1138
|
if (!i.suits.suit || !i.suits.show || !e.isSubscriber)
|
|
1098
1139
|
return {};
|
|
1099
|
-
const c =
|
|
1140
|
+
const c = n[i.suits.suit.toLowerCase()], v = {};
|
|
1100
1141
|
for (const u of i.suits.elements)
|
|
1101
1142
|
v[u] = c[u];
|
|
1102
1143
|
return v;
|
|
1103
1144
|
});
|
|
1104
|
-
return
|
|
1105
|
-
...
|
|
1106
|
-
...
|
|
1145
|
+
return s.themes.value = {
|
|
1146
|
+
...s.themes.value,
|
|
1147
|
+
...r
|
|
1107
1148
|
}, N(() => i.theme, (c) => {
|
|
1108
|
-
c === "system" ?
|
|
1149
|
+
c === "system" ? s.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (s.global.name.value = c, i.suits.suit = n[c] ? c : ""), i.theme = c;
|
|
1109
1150
|
}, { immediate: !0 }), {
|
|
1110
|
-
suit:
|
|
1111
|
-
CDN_URL:
|
|
1151
|
+
suit: l,
|
|
1152
|
+
CDN_URL: d
|
|
1112
1153
|
};
|
|
1113
|
-
}),
|
|
1154
|
+
}), jo = /* @__PURE__ */ k({
|
|
1114
1155
|
__name: "VoSettingsDialog",
|
|
1115
1156
|
props: {
|
|
1116
1157
|
modelValue: { type: Boolean },
|
|
1117
1158
|
modelModifiers: {}
|
|
1118
1159
|
},
|
|
1119
1160
|
emits: ["update:modelValue"],
|
|
1120
|
-
setup(
|
|
1121
|
-
const e = ie(
|
|
1161
|
+
setup(d) {
|
|
1162
|
+
const e = ie(d, "modelValue"), i = F(), s = j(), r = Be(), n = O(), l = [
|
|
1122
1163
|
{
|
|
1123
1164
|
title: "Light",
|
|
1124
1165
|
subtitle: "A standard light theme.",
|
|
1125
|
-
image:
|
|
1126
|
-
prependIcon: `svg:${
|
|
1166
|
+
image: r.CDN_URL + "themes/light.png",
|
|
1167
|
+
prependIcon: `svg:${Dt}`,
|
|
1127
1168
|
value: "light"
|
|
1128
1169
|
},
|
|
1129
1170
|
{
|
|
1130
1171
|
title: "Dark",
|
|
1131
1172
|
subtitle: "A standard dark theme.",
|
|
1132
|
-
image:
|
|
1133
|
-
prependIcon: `svg:${
|
|
1173
|
+
image: r.CDN_URL + "themes/dark.png",
|
|
1174
|
+
prependIcon: `svg:${Ut}`,
|
|
1134
1175
|
value: "dark"
|
|
1135
1176
|
},
|
|
1136
1177
|
{
|
|
1137
1178
|
title: "System",
|
|
1138
1179
|
subtitle: "A theme based on the system preference.",
|
|
1139
|
-
image:
|
|
1140
|
-
prependIcon: `svg:${
|
|
1180
|
+
image: r.CDN_URL + "themes/system.png",
|
|
1181
|
+
prependIcon: `svg:${Bt}`,
|
|
1141
1182
|
value: "system"
|
|
1142
1183
|
},
|
|
1143
1184
|
{
|
|
1144
1185
|
title: "Blackguard",
|
|
1145
1186
|
subtitle: "A theme for v3.4 Blackguard.",
|
|
1146
|
-
image:
|
|
1187
|
+
image: r.CDN_URL + "themes/blackguard.png",
|
|
1147
1188
|
prependIcon: `svg:${Je}`,
|
|
1148
1189
|
value: "blackguard"
|
|
1149
1190
|
},
|
|
1150
1191
|
{
|
|
1151
1192
|
title: "Polaris",
|
|
1152
1193
|
subtitle: "A theme for v3.5 Polaris.",
|
|
1153
|
-
image:
|
|
1154
|
-
prependIcon: `svg:${
|
|
1155
|
-
value: "polaris"
|
|
1156
|
-
disabled: !0
|
|
1194
|
+
image: r.CDN_URL + "themes/polaris.png",
|
|
1195
|
+
prependIcon: `svg:${Xe}`,
|
|
1196
|
+
value: "polaris"
|
|
1157
1197
|
},
|
|
1158
1198
|
{
|
|
1159
1199
|
title: "Nebula",
|
|
1160
1200
|
subtitle: "A theme for v3.6 Nebula.",
|
|
1161
|
-
image:
|
|
1162
|
-
prependIcon: `svg:${
|
|
1163
|
-
value: "nebula"
|
|
1164
|
-
disabled: !0
|
|
1201
|
+
image: r.CDN_URL + "themes/nebula.png",
|
|
1202
|
+
prependIcon: `svg:${Ke}`,
|
|
1203
|
+
value: "nebula"
|
|
1165
1204
|
},
|
|
1166
1205
|
{
|
|
1167
1206
|
title: "High Contrast",
|
|
1168
1207
|
subtitle: "A theme for high contrast.",
|
|
1169
|
-
image:
|
|
1170
|
-
prependIcon: `svg:${
|
|
1208
|
+
image: r.CDN_URL + "themes/high-contrast.png",
|
|
1209
|
+
prependIcon: `svg:${Nt}`,
|
|
1171
1210
|
value: "highContrast",
|
|
1172
1211
|
disabled: !0
|
|
1173
1212
|
}
|
|
1174
|
-
], c =
|
|
1213
|
+
], c = Ve();
|
|
1175
1214
|
return N(c, async () => {
|
|
1176
|
-
c.value.one === "settings" && (
|
|
1215
|
+
c.value.one === "settings" && (s.isOpen = !0, await fe(), e.value = !0);
|
|
1177
1216
|
}, { immediate: !0 }), (v, u) => {
|
|
1178
|
-
const m =
|
|
1179
|
-
return
|
|
1217
|
+
const m = ye, b = Fo, V = pt, L = Ue;
|
|
1218
|
+
return p(), f(L, {
|
|
1180
1219
|
modelValue: e.value,
|
|
1181
1220
|
"onUpdate:modelValue": u[5] || (u[5] = (_) => e.value = _),
|
|
1182
|
-
"prepend-icon": `svg:${t(
|
|
1221
|
+
"prepend-icon": `svg:${t(Ot)}`,
|
|
1183
1222
|
title: "Settings"
|
|
1184
1223
|
}, {
|
|
1185
1224
|
default: a(() => [
|
|
@@ -1193,15 +1232,15 @@ const Be = X("settings", () => {
|
|
|
1193
1232
|
text: "Customize your documentation experience with light and dark themes, as well as a combination of both named.",
|
|
1194
1233
|
title: "Theme"
|
|
1195
1234
|
}),
|
|
1196
|
-
o(
|
|
1197
|
-
modelValue: t(
|
|
1198
|
-
"onUpdate:modelValue": u[0] || (u[0] = (_) => t(
|
|
1235
|
+
o(at, {
|
|
1236
|
+
modelValue: t(n).theme,
|
|
1237
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => t(n).theme = _),
|
|
1199
1238
|
mandatory: ""
|
|
1200
1239
|
}, {
|
|
1201
1240
|
default: a(() => [
|
|
1202
|
-
o(
|
|
1241
|
+
o(Le, { dense: "" }, {
|
|
1203
1242
|
default: a(() => [
|
|
1204
|
-
(
|
|
1243
|
+
(p(), w(U, null, oe(l, (_, y) => o(me, {
|
|
1205
1244
|
key: y,
|
|
1206
1245
|
cols: "12",
|
|
1207
1246
|
md: "6"
|
|
@@ -1210,10 +1249,10 @@ const Be = X("settings", () => {
|
|
|
1210
1249
|
o(je, {
|
|
1211
1250
|
value: _.value
|
|
1212
1251
|
}, {
|
|
1213
|
-
default: a(({ toggle:
|
|
1252
|
+
default: a(({ toggle: x, isSelected: z }) => [
|
|
1214
1253
|
o(Ce, null, {
|
|
1215
1254
|
default: a(({ props: T, isHovering: te }) => [
|
|
1216
|
-
o(
|
|
1255
|
+
o(P, R({
|
|
1217
1256
|
color: z ? "primary" : "surface-variant",
|
|
1218
1257
|
disabled: _.disabled,
|
|
1219
1258
|
image: _.image,
|
|
@@ -1223,9 +1262,9 @@ const Be = X("settings", () => {
|
|
|
1223
1262
|
title: _.title,
|
|
1224
1263
|
height: "76",
|
|
1225
1264
|
variant: "tonal"
|
|
1226
|
-
}, T, { onClick:
|
|
1265
|
+
}, T, { onClick: x }), {
|
|
1227
1266
|
image: a(() => [
|
|
1228
|
-
o(
|
|
1267
|
+
o(ge, {
|
|
1229
1268
|
style: Qe({
|
|
1230
1269
|
filter: z || te ? "none" : "grayscale(100%)"
|
|
1231
1270
|
})
|
|
@@ -1248,10 +1287,10 @@ const Be = X("settings", () => {
|
|
|
1248
1287
|
]),
|
|
1249
1288
|
_: 1
|
|
1250
1289
|
}, 8, ["modelValue"]),
|
|
1251
|
-
t(i).isSubscriber ? (
|
|
1290
|
+
t(i).isSubscriber ? (p(), w(U, { key: 0 }, [
|
|
1252
1291
|
o(W, { class: "mt-6 mb-4" }),
|
|
1253
1292
|
o(b)
|
|
1254
|
-
], 64)) :
|
|
1293
|
+
], 64)) : $("", !0)
|
|
1255
1294
|
]),
|
|
1256
1295
|
_: 1
|
|
1257
1296
|
}),
|
|
@@ -1262,17 +1301,17 @@ const Be = X("settings", () => {
|
|
|
1262
1301
|
text: "These options change your browsing experience within Vuetify properties",
|
|
1263
1302
|
title: "Experience"
|
|
1264
1303
|
}),
|
|
1265
|
-
t(i).isSubscriber ? (
|
|
1304
|
+
t(i).isSubscriber ? (p(), f(V, {
|
|
1266
1305
|
key: 0,
|
|
1267
|
-
modelValue: t(
|
|
1268
|
-
"onUpdate:modelValue": u[1] || (u[1] = (_) => t(
|
|
1306
|
+
modelValue: t(n).disableAds,
|
|
1307
|
+
"onUpdate:modelValue": u[1] || (u[1] = (_) => t(n).disableAds = _),
|
|
1269
1308
|
class: "mb-2",
|
|
1270
1309
|
label: "Disable Ads",
|
|
1271
1310
|
messages: "Disable traditional advertisements on all documentation pages."
|
|
1272
|
-
}, null, 8, ["modelValue"])) :
|
|
1311
|
+
}, null, 8, ["modelValue"])) : $("", !0),
|
|
1273
1312
|
o(V, {
|
|
1274
|
-
modelValue: t(
|
|
1275
|
-
"onUpdate:modelValue": u[2] || (u[2] = (_) => t(
|
|
1313
|
+
modelValue: t(n).quickbar,
|
|
1314
|
+
"onUpdate:modelValue": u[2] || (u[2] = (_) => t(n).quickbar = _),
|
|
1276
1315
|
label: "Enable Quick Actions",
|
|
1277
1316
|
messages: "Quick actions are located on the Vuetify One user menu and provide quick access to common tasks."
|
|
1278
1317
|
}, null, 8, ["modelValue"])
|
|
@@ -1280,7 +1319,7 @@ const Be = X("settings", () => {
|
|
|
1280
1319
|
_: 1
|
|
1281
1320
|
}),
|
|
1282
1321
|
o(W),
|
|
1283
|
-
t(i).isSubscriber ? (
|
|
1322
|
+
t(i).isSubscriber ? (p(), f(K, {
|
|
1284
1323
|
key: 0,
|
|
1285
1324
|
class: "px-7"
|
|
1286
1325
|
}, {
|
|
@@ -1290,23 +1329,23 @@ const Be = X("settings", () => {
|
|
|
1290
1329
|
title: "Communication"
|
|
1291
1330
|
}),
|
|
1292
1331
|
o(V, {
|
|
1293
|
-
modelValue: t(
|
|
1294
|
-
"onUpdate:modelValue": u[3] || (u[3] = (_) => t(
|
|
1332
|
+
modelValue: t(n).notifications.show,
|
|
1333
|
+
"onUpdate:modelValue": u[3] || (u[3] = (_) => t(n).notifications.show = _),
|
|
1295
1334
|
class: "mb-2",
|
|
1296
1335
|
label: "Enable Notifications",
|
|
1297
1336
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
1298
1337
|
}, null, 8, ["modelValue"]),
|
|
1299
|
-
t(
|
|
1338
|
+
t(n).notifications.show ? (p(), f(V, {
|
|
1300
1339
|
key: 0,
|
|
1301
|
-
modelValue: t(
|
|
1302
|
-
"onUpdate:modelValue": u[4] || (u[4] = (_) => t(
|
|
1340
|
+
modelValue: t(n).notifications.banners,
|
|
1341
|
+
"onUpdate:modelValue": u[4] || (u[4] = (_) => t(n).notifications.banners = _),
|
|
1303
1342
|
class: "mb-2",
|
|
1304
1343
|
label: "Enable Banners",
|
|
1305
1344
|
messages: "Banners are located at the top of the screen and provide a callout for important information."
|
|
1306
|
-
}, null, 8, ["modelValue"])) :
|
|
1345
|
+
}, null, 8, ["modelValue"])) : $("", !0)
|
|
1307
1346
|
]),
|
|
1308
1347
|
_: 1
|
|
1309
|
-
})) :
|
|
1348
|
+
})) : $("", !0)
|
|
1310
1349
|
]),
|
|
1311
1350
|
_: 1
|
|
1312
1351
|
})
|
|
@@ -1318,62 +1357,62 @@ const Be = X("settings", () => {
|
|
|
1318
1357
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
1319
1358
|
};
|
|
1320
1359
|
}
|
|
1321
|
-
}),
|
|
1360
|
+
}), To = /* @__PURE__ */ k({
|
|
1322
1361
|
__name: "VoSettingsListItem",
|
|
1323
|
-
setup(
|
|
1362
|
+
setup(d) {
|
|
1324
1363
|
const e = D(!1);
|
|
1325
|
-
return (i,
|
|
1326
|
-
const
|
|
1327
|
-
return
|
|
1364
|
+
return (i, s) => {
|
|
1365
|
+
const r = jo, n = Y;
|
|
1366
|
+
return p(), f(n, {
|
|
1328
1367
|
active: e.value,
|
|
1329
|
-
"prepend-icon": `svg:${t(
|
|
1368
|
+
"prepend-icon": `svg:${t(Ft)}`,
|
|
1330
1369
|
title: "Settings",
|
|
1331
1370
|
link: ""
|
|
1332
1371
|
}, {
|
|
1333
1372
|
default: a(() => [
|
|
1334
|
-
o(
|
|
1373
|
+
o(r, {
|
|
1335
1374
|
modelValue: e.value,
|
|
1336
|
-
"onUpdate:modelValue":
|
|
1375
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
|
|
1337
1376
|
}, null, 8, ["modelValue"])
|
|
1338
1377
|
]),
|
|
1339
1378
|
_: 1
|
|
1340
1379
|
}, 8, ["active", "prepend-icon"]);
|
|
1341
1380
|
};
|
|
1342
1381
|
}
|
|
1343
|
-
}),
|
|
1382
|
+
}), Mo = { class: "text-caption" }, Po = /* @__PURE__ */ k({
|
|
1344
1383
|
__name: "VoSubscriptionInvoices",
|
|
1345
|
-
setup(
|
|
1346
|
-
const e =
|
|
1347
|
-
return (
|
|
1348
|
-
const
|
|
1349
|
-
return
|
|
1384
|
+
setup(d) {
|
|
1385
|
+
const e = Se(), i = j();
|
|
1386
|
+
return (s, r) => {
|
|
1387
|
+
const n = ye;
|
|
1388
|
+
return p(), f(Le, null, {
|
|
1350
1389
|
default: a(() => [
|
|
1351
1390
|
o(me, { cols: "12" }, {
|
|
1352
1391
|
default: a(() => [
|
|
1353
|
-
o(
|
|
1392
|
+
o(n, {
|
|
1354
1393
|
text: "View and download your invoice history.",
|
|
1355
1394
|
title: "Invoice History"
|
|
1356
1395
|
}),
|
|
1357
|
-
o(
|
|
1396
|
+
o(P, {
|
|
1358
1397
|
height: "450",
|
|
1359
1398
|
rounded: "lg",
|
|
1360
1399
|
border: ""
|
|
1361
1400
|
}, {
|
|
1362
1401
|
default: a(() => [
|
|
1363
|
-
o(
|
|
1402
|
+
o(fo, {
|
|
1364
1403
|
items: t(i).invoices,
|
|
1365
1404
|
loading: t(i).isLoading,
|
|
1366
1405
|
sticky: ""
|
|
1367
1406
|
}, {
|
|
1368
|
-
"item.date": a(({ item:
|
|
1369
|
-
h("div",
|
|
1407
|
+
"item.date": a(({ item: l }) => [
|
|
1408
|
+
h("div", Mo, I(t(e).format(new Date(l.date * 1e3), "fullDateWithWeekday")), 1)
|
|
1370
1409
|
]),
|
|
1371
|
-
"item.amount": a(({ item:
|
|
1372
|
-
B(" $" + I(
|
|
1410
|
+
"item.amount": a(({ item: l }) => [
|
|
1411
|
+
B(" $" + I(l.amount / 100), 1)
|
|
1373
1412
|
]),
|
|
1374
|
-
"item.status": a(({ item:
|
|
1413
|
+
"item.status": a(({ item: l }) => [
|
|
1375
1414
|
o(q, {
|
|
1376
|
-
text:
|
|
1415
|
+
text: l.status,
|
|
1377
1416
|
border: "success sm",
|
|
1378
1417
|
class: "text-capitalize",
|
|
1379
1418
|
color: "success",
|
|
@@ -1382,10 +1421,10 @@ const Be = X("settings", () => {
|
|
|
1382
1421
|
label: ""
|
|
1383
1422
|
}, null, 8, ["text"])
|
|
1384
1423
|
]),
|
|
1385
|
-
"item.pdf": a(({ item:
|
|
1424
|
+
"item.pdf": a(({ item: l }) => [
|
|
1386
1425
|
o(E, {
|
|
1387
|
-
href:
|
|
1388
|
-
icon: `svg:${t(
|
|
1426
|
+
href: l.pdf,
|
|
1427
|
+
icon: `svg:${t(zt)}`,
|
|
1389
1428
|
size: "small",
|
|
1390
1429
|
target: "_blank",
|
|
1391
1430
|
variant: "text"
|
|
@@ -1404,31 +1443,31 @@ const Be = X("settings", () => {
|
|
|
1404
1443
|
});
|
|
1405
1444
|
};
|
|
1406
1445
|
}
|
|
1407
|
-
}), Ro = { class: "d-flex align-center" },
|
|
1446
|
+
}), Ro = { class: "d-flex align-center" }, Ho = {
|
|
1408
1447
|
key: "status",
|
|
1409
1448
|
class: "text-capitalize hidden-sm-and-down"
|
|
1410
|
-
},
|
|
1449
|
+
}, Eo = /* @__PURE__ */ h("span", { class: "mx-1 hidden-sm-and-down" }, "—", -1), Wo = { class: "me-1" }, Go = { class: "text-medium-emphasis text-caption" }, qo = { class: "d-flex align-start justify-space-between text-caption py-2" }, Zo = { class: "font-weight-bold" }, Yo = { class: "font-weight-bold" }, Qo = /* @__PURE__ */ k({
|
|
1411
1450
|
__name: "VoSubscriptionStatus",
|
|
1412
1451
|
emits: ["change:subscription"],
|
|
1413
|
-
setup(
|
|
1414
|
-
const i =
|
|
1415
|
-
if (!
|
|
1452
|
+
setup(d, { emit: e }) {
|
|
1453
|
+
const i = Se(), s = j(), r = e, n = S(() => {
|
|
1454
|
+
if (!s.info)
|
|
1416
1455
|
return;
|
|
1417
|
-
const c = new Date(
|
|
1456
|
+
const c = new Date(s.info.currentPeriodEnd * 1e3);
|
|
1418
1457
|
return i.format(c, "keyboardDate");
|
|
1419
1458
|
});
|
|
1420
|
-
async function
|
|
1421
|
-
|
|
1459
|
+
async function l() {
|
|
1460
|
+
s.interval && (s.isLoading = !0, s.subscribe(s.interval));
|
|
1422
1461
|
}
|
|
1423
1462
|
return (c, v) => {
|
|
1424
|
-
const u =
|
|
1425
|
-
return
|
|
1463
|
+
const u = ne;
|
|
1464
|
+
return p(), f(Le, null, {
|
|
1426
1465
|
default: a(() => [
|
|
1427
1466
|
o(me, { cols: "12" }, {
|
|
1428
1467
|
default: a(() => {
|
|
1429
1468
|
var m, b;
|
|
1430
1469
|
return [
|
|
1431
|
-
o(
|
|
1470
|
+
o(P, {
|
|
1432
1471
|
"prepend-icon": "$vuetify",
|
|
1433
1472
|
rounded: "lg",
|
|
1434
1473
|
title: "Subscription Status",
|
|
@@ -1438,45 +1477,45 @@ const Be = X("settings", () => {
|
|
|
1438
1477
|
append: a(() => {
|
|
1439
1478
|
var V;
|
|
1440
1479
|
return [
|
|
1441
|
-
t(
|
|
1480
|
+
t(s).hasBilling && ((V = t(s).info) == null ? void 0 : V.status) === "canceled" ? (p(), f(u, {
|
|
1442
1481
|
key: 0,
|
|
1443
|
-
loading: t(
|
|
1482
|
+
loading: t(s).isLoading,
|
|
1444
1483
|
class: "me-2",
|
|
1445
1484
|
color: "success",
|
|
1446
1485
|
"prepend-icon": "$success",
|
|
1447
1486
|
text: "Activate",
|
|
1448
1487
|
variant: "outlined",
|
|
1449
|
-
onClick:
|
|
1450
|
-
}, null, 8, ["loading"])) :
|
|
1451
|
-
t(
|
|
1488
|
+
onClick: l
|
|
1489
|
+
}, null, 8, ["loading"])) : $("", !0),
|
|
1490
|
+
t(s).hasBilling ? (p(), f(u, {
|
|
1452
1491
|
key: 1,
|
|
1453
|
-
loading: t(
|
|
1454
|
-
"prepend-icon": `svg:${t(
|
|
1492
|
+
loading: t(s).isLoading,
|
|
1493
|
+
"prepend-icon": `svg:${t(jt)}`,
|
|
1455
1494
|
text: "Billing",
|
|
1456
|
-
onClick: t(
|
|
1457
|
-
}, null, 8, ["loading", "prepend-icon", "onClick"])) :
|
|
1495
|
+
onClick: t(s).manage
|
|
1496
|
+
}, null, 8, ["loading", "prepend-icon", "onClick"])) : $("", !0)
|
|
1458
1497
|
];
|
|
1459
1498
|
}),
|
|
1460
1499
|
_: 2
|
|
1461
1500
|
}, [
|
|
1462
|
-
t(
|
|
1501
|
+
t(s).info ? {
|
|
1463
1502
|
name: "subtitle",
|
|
1464
1503
|
fn: a(() => [
|
|
1465
1504
|
h("div", Ro, [
|
|
1466
|
-
h("span",
|
|
1467
|
-
t(
|
|
1468
|
-
|
|
1469
|
-
h("span",
|
|
1470
|
-
B(" $" + I(t(
|
|
1471
|
-
h("span",
|
|
1505
|
+
h("span", Ho, I(t(s).info.status), 1),
|
|
1506
|
+
t(s).info.items.length ? (p(), w(U, { key: 0 }, [
|
|
1507
|
+
Eo,
|
|
1508
|
+
h("span", Wo, [
|
|
1509
|
+
B(" $" + I(t(s).info.items[0].plan.amount / 100), 1),
|
|
1510
|
+
h("span", Go, "/" + I(t(s).interval), 1)
|
|
1472
1511
|
]),
|
|
1473
1512
|
o(u, {
|
|
1474
1513
|
size: "x-small",
|
|
1475
1514
|
text: "(Change Subscription)",
|
|
1476
1515
|
variant: "text",
|
|
1477
|
-
onClick: v[0] || (v[0] = (V) =>
|
|
1516
|
+
onClick: v[0] || (v[0] = (V) => r("change:subscription"))
|
|
1478
1517
|
})
|
|
1479
|
-
], 64)) :
|
|
1518
|
+
], 64)) : $("", !0)
|
|
1480
1519
|
])
|
|
1481
1520
|
]),
|
|
1482
1521
|
key: "0"
|
|
@@ -1500,15 +1539,15 @@ const Be = X("settings", () => {
|
|
|
1500
1539
|
key: "1"
|
|
1501
1540
|
}
|
|
1502
1541
|
]), 1024),
|
|
1503
|
-
h("div",
|
|
1542
|
+
h("div", qo, [
|
|
1504
1543
|
h("div", null, [
|
|
1505
|
-
((m = t(
|
|
1544
|
+
((m = t(s).info) == null ? void 0 : m.status) === "active" ? (p(), w(U, { key: 0 }, [
|
|
1506
1545
|
B(" Your plan renews on "),
|
|
1507
|
-
h("span",
|
|
1546
|
+
h("span", Zo, I(t(i).format(n.value, "fullDateWithWeekday")), 1),
|
|
1508
1547
|
B(". ")
|
|
1509
|
-
], 64)) : (
|
|
1548
|
+
], 64)) : (p(), w(U, { key: 1 }, [
|
|
1510
1549
|
B(" Your plan ends on "),
|
|
1511
|
-
h("span",
|
|
1550
|
+
h("span", Yo, I(t(i).format((b = t(s).info) == null ? void 0 : b.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1512
1551
|
B(". ")
|
|
1513
1552
|
], 64))
|
|
1514
1553
|
])
|
|
@@ -1522,9 +1561,9 @@ const Be = X("settings", () => {
|
|
|
1522
1561
|
});
|
|
1523
1562
|
};
|
|
1524
1563
|
}
|
|
1525
|
-
}),
|
|
1564
|
+
}), Jo = /* @__PURE__ */ h("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The Vuetify One subscription comes with the following perks: ", -1), Xo = ["innerHTML"], Ko = /* @__PURE__ */ h("br", null, null, -1), es = /* @__PURE__ */ h("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The following features are in development and coming soon: ", -1), ts = ["innerHTML"], os = /* @__PURE__ */ k({
|
|
1526
1565
|
__name: "VoSubscriptionPerks",
|
|
1527
|
-
setup(
|
|
1566
|
+
setup(d) {
|
|
1528
1567
|
const e = [
|
|
1529
1568
|
"Ad Free Experience on all Vuetify properties",
|
|
1530
1569
|
'Save and share code snippets with <a href="https://vbin.io/" target="_blank">VBin</a>',
|
|
@@ -1535,19 +1574,19 @@ const Be = X("settings", () => {
|
|
|
1535
1574
|
'Special role in the <a href="https://discord.vuetifyjs.com/" target="_blank">Vuetify Discord</a>',
|
|
1536
1575
|
'Save and share your playgrounds with <a href="https://play.vuetifyjs.com" target="_blank">Vuetify Play</a>',
|
|
1537
1576
|
"Receive a special label on GitHub created issues and pull requests"
|
|
1538
|
-
],
|
|
1539
|
-
return N(
|
|
1540
|
-
|
|
1541
|
-
}), (
|
|
1577
|
+
], s = D(!1), r = j();
|
|
1578
|
+
return N(s, async (n) => {
|
|
1579
|
+
n && r.subscriptionInfo();
|
|
1580
|
+
}), (n, l) => {
|
|
1542
1581
|
const c = Y;
|
|
1543
|
-
return
|
|
1582
|
+
return p(), w(U, null, [
|
|
1544
1583
|
o(ze, { class: "font-weight-black" }, {
|
|
1545
1584
|
default: a(() => [
|
|
1546
1585
|
B("Perks")
|
|
1547
1586
|
]),
|
|
1548
1587
|
_: 1
|
|
1549
1588
|
}),
|
|
1550
|
-
|
|
1589
|
+
Jo,
|
|
1551
1590
|
o(ee, {
|
|
1552
1591
|
lines: !1,
|
|
1553
1592
|
class: "py-0",
|
|
@@ -1555,9 +1594,9 @@ const Be = X("settings", () => {
|
|
|
1555
1594
|
nav: ""
|
|
1556
1595
|
}, {
|
|
1557
1596
|
default: a(() => [
|
|
1558
|
-
(
|
|
1597
|
+
(p(), w(U, null, oe(e, (v, u) => o(c, {
|
|
1559
1598
|
key: u,
|
|
1560
|
-
"prepend-icon": `svg:${t(
|
|
1599
|
+
"prepend-icon": `svg:${t(re)}`,
|
|
1561
1600
|
class: "mb-0"
|
|
1562
1601
|
}, {
|
|
1563
1602
|
prepend: a(() => [
|
|
@@ -1568,21 +1607,21 @@ const Be = X("settings", () => {
|
|
|
1568
1607
|
})
|
|
1569
1608
|
]),
|
|
1570
1609
|
title: a(() => [
|
|
1571
|
-
h("div", { innerHTML: v }, null, 8,
|
|
1610
|
+
h("div", { innerHTML: v }, null, 8, Xo)
|
|
1572
1611
|
]),
|
|
1573
1612
|
_: 2
|
|
1574
1613
|
}, 1032, ["prepend-icon"])), 64))
|
|
1575
1614
|
]),
|
|
1576
1615
|
_: 1
|
|
1577
1616
|
}),
|
|
1578
|
-
|
|
1617
|
+
Ko,
|
|
1579
1618
|
o(ze, { class: "font-weight-black" }, {
|
|
1580
1619
|
default: a(() => [
|
|
1581
1620
|
B("Up Next")
|
|
1582
1621
|
]),
|
|
1583
1622
|
_: 1
|
|
1584
1623
|
}),
|
|
1585
|
-
|
|
1624
|
+
es,
|
|
1586
1625
|
o(ee, {
|
|
1587
1626
|
lines: !1,
|
|
1588
1627
|
class: "py-0",
|
|
@@ -1590,9 +1629,9 @@ const Be = X("settings", () => {
|
|
|
1590
1629
|
nav: ""
|
|
1591
1630
|
}, {
|
|
1592
1631
|
default: a(() => [
|
|
1593
|
-
(
|
|
1632
|
+
(p(), w(U, null, oe(i, (v, u) => o(c, {
|
|
1594
1633
|
key: u,
|
|
1595
|
-
"prepend-icon": `svg:${t(
|
|
1634
|
+
"prepend-icon": `svg:${t(Tt)}`,
|
|
1596
1635
|
class: "mb-0"
|
|
1597
1636
|
}, {
|
|
1598
1637
|
prepend: a(() => [
|
|
@@ -1602,7 +1641,7 @@ const Be = X("settings", () => {
|
|
|
1602
1641
|
})
|
|
1603
1642
|
]),
|
|
1604
1643
|
title: a(() => [
|
|
1605
|
-
h("div", { innerHTML: v }, null, 8,
|
|
1644
|
+
h("div", { innerHTML: v }, null, 8, ts)
|
|
1606
1645
|
]),
|
|
1607
1646
|
_: 2
|
|
1608
1647
|
}, 1032, ["prepend-icon"])), 64))
|
|
@@ -1612,7 +1651,7 @@ const Be = X("settings", () => {
|
|
|
1612
1651
|
], 64);
|
|
1613
1652
|
};
|
|
1614
1653
|
}
|
|
1615
|
-
}),
|
|
1654
|
+
}), ss = /* @__PURE__ */ k({
|
|
1616
1655
|
__name: "VoSubscriptionSubscribe",
|
|
1617
1656
|
props: {
|
|
1618
1657
|
modelValue: {
|
|
@@ -1621,19 +1660,19 @@ const Be = X("settings", () => {
|
|
|
1621
1660
|
modelModifiers: {}
|
|
1622
1661
|
},
|
|
1623
1662
|
emits: ["update:modelValue"],
|
|
1624
|
-
setup(
|
|
1625
|
-
const e = D(!1), i = ie(
|
|
1626
|
-
return N(e, async (
|
|
1627
|
-
|
|
1628
|
-
}), N(() =>
|
|
1629
|
-
i.value =
|
|
1630
|
-
}, { immediate: !0 }), (
|
|
1663
|
+
setup(d) {
|
|
1664
|
+
const e = D(!1), i = ie(d, "modelValue"), s = j();
|
|
1665
|
+
return N(e, async (r) => {
|
|
1666
|
+
r && s.subscriptionInfo();
|
|
1667
|
+
}), N(() => s.interval, (r) => {
|
|
1668
|
+
i.value = r;
|
|
1669
|
+
}, { immediate: !0 }), (r, n) => (p(), f(at, {
|
|
1631
1670
|
modelValue: i.value,
|
|
1632
|
-
"onUpdate:modelValue":
|
|
1671
|
+
"onUpdate:modelValue": n[0] || (n[0] = (l) => i.value = l),
|
|
1633
1672
|
mandatory: ""
|
|
1634
1673
|
}, {
|
|
1635
1674
|
default: a(() => [
|
|
1636
|
-
o(
|
|
1675
|
+
o(Le, null, {
|
|
1637
1676
|
default: a(() => [
|
|
1638
1677
|
o(me, {
|
|
1639
1678
|
cols: "12",
|
|
@@ -1641,8 +1680,8 @@ const Be = X("settings", () => {
|
|
|
1641
1680
|
}, {
|
|
1642
1681
|
default: a(() => [
|
|
1643
1682
|
o(je, { value: "month" }, {
|
|
1644
|
-
default: a(({ toggle:
|
|
1645
|
-
o(
|
|
1683
|
+
default: a(({ toggle: l, isSelected: c }) => [
|
|
1684
|
+
o(P, {
|
|
1646
1685
|
border: c ? "sm primary opacity-100" : "sm",
|
|
1647
1686
|
color: c ? "primary" : void 0,
|
|
1648
1687
|
"prepend-icon": c ? `svg:${t(pe)}` : "$radioOff",
|
|
@@ -1650,7 +1689,7 @@ const Be = X("settings", () => {
|
|
|
1650
1689
|
rounded: "lg",
|
|
1651
1690
|
subtitle: "$2.99/month",
|
|
1652
1691
|
title: "Monthly",
|
|
1653
|
-
onClick:
|
|
1692
|
+
onClick: l
|
|
1654
1693
|
}, {
|
|
1655
1694
|
prepend: a(() => [
|
|
1656
1695
|
o(A, { class: "mt-n6" })
|
|
@@ -1669,8 +1708,8 @@ const Be = X("settings", () => {
|
|
|
1669
1708
|
}, {
|
|
1670
1709
|
default: a(() => [
|
|
1671
1710
|
o(je, { value: "year" }, {
|
|
1672
|
-
default: a(({ toggle:
|
|
1673
|
-
o(
|
|
1711
|
+
default: a(({ toggle: l, isSelected: c }) => [
|
|
1712
|
+
o(P, {
|
|
1674
1713
|
border: c ? "sm primary opacity-100" : "sm",
|
|
1675
1714
|
color: c ? "primary" : void 0,
|
|
1676
1715
|
"prepend-icon": c ? `svg:${t(pe)}` : "$radioOff",
|
|
@@ -1678,7 +1717,7 @@ const Be = X("settings", () => {
|
|
|
1678
1717
|
rounded: "lg",
|
|
1679
1718
|
subtitle: "$29.99/year",
|
|
1680
1719
|
title: "Yearly",
|
|
1681
|
-
onClick:
|
|
1720
|
+
onClick: l
|
|
1682
1721
|
}, {
|
|
1683
1722
|
prepend: a(() => [
|
|
1684
1723
|
o(A, { class: "mt-n6" })
|
|
@@ -1707,34 +1746,34 @@ const Be = X("settings", () => {
|
|
|
1707
1746
|
_: 1
|
|
1708
1747
|
}, 8, ["modelValue"]));
|
|
1709
1748
|
}
|
|
1710
|
-
}),
|
|
1749
|
+
}), ns = { class: "px-3" }, as = /* @__PURE__ */ h("br", null, null, -1), is = { class: "flex-grow-1 px-4 pb-3 overflow-hidden" }, rs = /* @__PURE__ */ k({
|
|
1711
1750
|
__name: "VoSubscriptionDialog",
|
|
1712
1751
|
props: {
|
|
1713
1752
|
modelValue: { type: Boolean },
|
|
1714
1753
|
modelModifiers: {}
|
|
1715
1754
|
},
|
|
1716
1755
|
emits: ["update:modelValue"],
|
|
1717
|
-
setup(
|
|
1756
|
+
setup(d) {
|
|
1718
1757
|
function e(u) {
|
|
1719
1758
|
return new Promise((m) => setTimeout(m, u));
|
|
1720
1759
|
}
|
|
1721
|
-
const i = ie(
|
|
1722
|
-
N(
|
|
1723
|
-
!
|
|
1760
|
+
const i = ie(d, "modelValue"), s = j(), r = Ve(), n = D(s.interval), l = D(s.hasBilling ? "status" : "subscribe"), c = D(!1);
|
|
1761
|
+
N(n, (u) => {
|
|
1762
|
+
!s.isSubscriber || !s.interval || (c.value = u !== s.interval);
|
|
1724
1763
|
}), N(i, async (u) => {
|
|
1725
|
-
!u || !
|
|
1726
|
-
}), N(
|
|
1727
|
-
!
|
|
1764
|
+
!u || !s.isSubscriber || s.subscriptionInfo();
|
|
1765
|
+
}), N(r, async () => {
|
|
1766
|
+
!s.sessionId && !["subscribe", "status"].includes(r.value.one) || (l.value = s.sessionId || r.value.one === "status" ? "status" : "subscribe", s.isOpen = !0, await fe(), i.value = !0);
|
|
1728
1767
|
}, { immediate: !0 });
|
|
1729
1768
|
async function v() {
|
|
1730
|
-
await
|
|
1769
|
+
await s.modify(n.value), await s.subscriptionInfo(), c.value = null, await e(3e3), l.value = "status", await e(300), c.value = !1;
|
|
1731
1770
|
}
|
|
1732
1771
|
return (u, m) => {
|
|
1733
|
-
const b =
|
|
1734
|
-
return
|
|
1772
|
+
const b = ye, V = ss, L = os, _ = Qo, y = Po, x = ne, z = Ue;
|
|
1773
|
+
return p(), f(z, {
|
|
1735
1774
|
modelValue: i.value,
|
|
1736
1775
|
"onUpdate:modelValue": m[4] || (m[4] = (T) => i.value = T),
|
|
1737
|
-
"prepend-icon": `svg:${t(
|
|
1776
|
+
"prepend-icon": `svg:${t(Mt)}`,
|
|
1738
1777
|
title: "Subscriptions"
|
|
1739
1778
|
}, G({
|
|
1740
1779
|
default: a(() => [
|
|
@@ -1742,30 +1781,30 @@ const Be = X("settings", () => {
|
|
|
1742
1781
|
default: a(() => [
|
|
1743
1782
|
o(Ae, { scrollable: "" }, {
|
|
1744
1783
|
default: a(() => [
|
|
1745
|
-
h("div",
|
|
1784
|
+
h("div", ns, [
|
|
1746
1785
|
o(K, null, {
|
|
1747
1786
|
default: a(() => [
|
|
1748
1787
|
o(b, {
|
|
1749
1788
|
text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
|
|
1750
1789
|
title: "Vuetify One"
|
|
1751
1790
|
}),
|
|
1752
|
-
o(
|
|
1791
|
+
o(it, { "model-value": l.value }, {
|
|
1753
1792
|
default: a(() => [
|
|
1754
1793
|
o(de, { value: "subscribe" }, {
|
|
1755
1794
|
default: a(() => [
|
|
1756
1795
|
o(V, {
|
|
1757
|
-
modelValue:
|
|
1758
|
-
"onUpdate:modelValue": m[0] || (m[0] = (T) =>
|
|
1796
|
+
modelValue: n.value,
|
|
1797
|
+
"onUpdate:modelValue": m[0] || (m[0] = (T) => n.value = T)
|
|
1759
1798
|
}, null, 8, ["modelValue"]),
|
|
1760
|
-
|
|
1761
|
-
o(
|
|
1799
|
+
as,
|
|
1800
|
+
o(L)
|
|
1762
1801
|
]),
|
|
1763
1802
|
_: 1
|
|
1764
1803
|
}),
|
|
1765
1804
|
o(de, { value: "status" }, {
|
|
1766
1805
|
default: a(() => [
|
|
1767
1806
|
o(_, {
|
|
1768
|
-
"onChange:subscription": m[1] || (m[1] = (T) =>
|
|
1807
|
+
"onChange:subscription": m[1] || (m[1] = (T) => l.value = "subscribe")
|
|
1769
1808
|
}),
|
|
1770
1809
|
o(y)
|
|
1771
1810
|
]),
|
|
@@ -1787,37 +1826,37 @@ const Be = X("settings", () => {
|
|
|
1787
1826
|
]),
|
|
1788
1827
|
_: 2
|
|
1789
1828
|
}, [
|
|
1790
|
-
|
|
1829
|
+
l.value === "subscribe" ? {
|
|
1791
1830
|
name: "actions",
|
|
1792
1831
|
fn: a(() => [
|
|
1793
|
-
h("div",
|
|
1794
|
-
c.value !== !1 ? (
|
|
1832
|
+
h("div", is, [
|
|
1833
|
+
c.value !== !1 ? (p(), f(x, {
|
|
1795
1834
|
key: 0,
|
|
1796
|
-
loading: t(
|
|
1797
|
-
"prepend-icon": `svg:${c.value !== null ? t(
|
|
1835
|
+
loading: t(s).isLoading,
|
|
1836
|
+
"prepend-icon": `svg:${c.value !== null ? t(Pt) : t(pe)}`,
|
|
1798
1837
|
readonly: c.value === null,
|
|
1799
1838
|
text: c.value !== null ? "Modify Subscription" : "Success",
|
|
1800
1839
|
color: "success",
|
|
1801
1840
|
size: "default",
|
|
1802
1841
|
block: "",
|
|
1803
1842
|
onClick: v
|
|
1804
|
-
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : t(
|
|
1843
|
+
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : t(s).isSubscriber ? (p(), f(x, {
|
|
1805
1844
|
key: 2,
|
|
1806
1845
|
"prepend-icon": `svg:${t(Rt)}`,
|
|
1807
1846
|
size: "default",
|
|
1808
1847
|
text: "Manage Subscription",
|
|
1809
1848
|
block: "",
|
|
1810
|
-
onClick: m[3] || (m[3] = (T) =>
|
|
1811
|
-
}, null, 8, ["prepend-icon"])) : (
|
|
1849
|
+
onClick: m[3] || (m[3] = (T) => l.value = "status")
|
|
1850
|
+
}, null, 8, ["prepend-icon"])) : (p(), f(x, {
|
|
1812
1851
|
key: 1,
|
|
1813
|
-
color:
|
|
1814
|
-
disabled: !
|
|
1815
|
-
loading: t(
|
|
1852
|
+
color: n.value ? "primary" : "disabled",
|
|
1853
|
+
disabled: !n.value,
|
|
1854
|
+
loading: t(s).isLoading,
|
|
1816
1855
|
"prepend-icon": "$vuetify",
|
|
1817
1856
|
size: "default",
|
|
1818
1857
|
text: "Activate Subscription",
|
|
1819
1858
|
block: "",
|
|
1820
|
-
onClick: m[2] || (m[2] = (T) => t(
|
|
1859
|
+
onClick: m[2] || (m[2] = (T) => t(s).subscribe(n.value))
|
|
1821
1860
|
}, null, 8, ["color", "disabled", "loading"]))
|
|
1822
1861
|
])
|
|
1823
1862
|
]),
|
|
@@ -1826,43 +1865,43 @@ const Be = X("settings", () => {
|
|
|
1826
1865
|
]), 1032, ["modelValue", "prepend-icon"]);
|
|
1827
1866
|
};
|
|
1828
1867
|
}
|
|
1829
|
-
}),
|
|
1868
|
+
}), ls = /* @__PURE__ */ k({
|
|
1830
1869
|
__name: "VoSubscriptionListItem",
|
|
1831
|
-
setup(
|
|
1870
|
+
setup(d) {
|
|
1832
1871
|
const e = D(!1);
|
|
1833
|
-
return (i,
|
|
1834
|
-
const
|
|
1835
|
-
return
|
|
1872
|
+
return (i, s) => {
|
|
1873
|
+
const r = rs, n = Y;
|
|
1874
|
+
return p(), f(n, {
|
|
1836
1875
|
active: e.value,
|
|
1837
|
-
"prepend-icon": `svg:${t(
|
|
1876
|
+
"prepend-icon": `svg:${t(Ht)}`,
|
|
1838
1877
|
title: "Subscriptions",
|
|
1839
1878
|
link: ""
|
|
1840
1879
|
}, {
|
|
1841
1880
|
default: a(() => [
|
|
1842
|
-
o(
|
|
1881
|
+
o(r, {
|
|
1843
1882
|
modelValue: e.value,
|
|
1844
|
-
"onUpdate:modelValue":
|
|
1883
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
|
|
1845
1884
|
}, null, 8, ["modelValue"])
|
|
1846
1885
|
]),
|
|
1847
1886
|
_: 1
|
|
1848
1887
|
}, 8, ["active", "prepend-icon"]);
|
|
1849
1888
|
};
|
|
1850
1889
|
}
|
|
1851
|
-
}),
|
|
1890
|
+
}), cs = { class: "ps-16" }, us = /* @__PURE__ */ k({
|
|
1852
1891
|
__name: "VoSponsorshipsTimelineItemPatreon",
|
|
1853
|
-
setup(
|
|
1892
|
+
setup(d) {
|
|
1854
1893
|
const e = j(), i = Be();
|
|
1855
|
-
return (
|
|
1856
|
-
var
|
|
1857
|
-
const
|
|
1858
|
-
return
|
|
1859
|
-
"dot-color": (
|
|
1860
|
-
icon: (c = t(e).patreon) != null && c.isActive ? `svg:${t(
|
|
1894
|
+
return (s, r) => {
|
|
1895
|
+
var l, c;
|
|
1896
|
+
const n = ne;
|
|
1897
|
+
return p(), f(Ze, {
|
|
1898
|
+
"dot-color": (l = t(e).patreon) != null && l.isActive ? "success" : "transparent",
|
|
1899
|
+
icon: (c = t(e).patreon) != null && c.isActive ? `svg:${t(re)}` : void 0,
|
|
1861
1900
|
size: "x-small",
|
|
1862
1901
|
width: "100%"
|
|
1863
1902
|
}, {
|
|
1864
1903
|
default: a(() => [
|
|
1865
|
-
o(
|
|
1904
|
+
o(P, {
|
|
1866
1905
|
"prepend-avatar": t(i).CDN_URL + "/logos/patreon.png",
|
|
1867
1906
|
rounded: "lg",
|
|
1868
1907
|
subtitle: "Support Vuetify through Patreon.",
|
|
@@ -1873,8 +1912,8 @@ const Be = X("settings", () => {
|
|
|
1873
1912
|
append: a(() => {
|
|
1874
1913
|
var v;
|
|
1875
1914
|
return [
|
|
1876
|
-
h("div",
|
|
1877
|
-
o(
|
|
1915
|
+
h("div", cs, [
|
|
1916
|
+
o(n, {
|
|
1878
1917
|
text: (v = t(e).patreon) != null && v.isActive ? "Active" : "Coming Soon",
|
|
1879
1918
|
color: "surface-variant",
|
|
1880
1919
|
readonly: ""
|
|
@@ -1885,7 +1924,7 @@ const Be = X("settings", () => {
|
|
|
1885
1924
|
default: a(() => {
|
|
1886
1925
|
var v;
|
|
1887
1926
|
return [
|
|
1888
|
-
(v = t(e).patreon) != null && v.isActive ? (
|
|
1927
|
+
(v = t(e).patreon) != null && v.isActive ? (p(), w(U, { key: 0 }, [
|
|
1889
1928
|
o(W),
|
|
1890
1929
|
o(K, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
1891
1930
|
default: a(() => [
|
|
@@ -1899,7 +1938,7 @@ const Be = X("settings", () => {
|
|
|
1899
1938
|
]),
|
|
1900
1939
|
_: 1
|
|
1901
1940
|
})
|
|
1902
|
-
], 64)) :
|
|
1941
|
+
], 64)) : $("", !0)
|
|
1903
1942
|
];
|
|
1904
1943
|
}),
|
|
1905
1944
|
_: 1
|
|
@@ -1909,21 +1948,21 @@ const Be = X("settings", () => {
|
|
|
1909
1948
|
}, 8, ["dot-color", "icon"]);
|
|
1910
1949
|
};
|
|
1911
1950
|
}
|
|
1912
|
-
}),
|
|
1951
|
+
}), ds = { class: "ps-16" }, ps = /* @__PURE__ */ k({
|
|
1913
1952
|
__name: "VoSponsorshipsTimelineItemDiscord",
|
|
1914
|
-
setup(
|
|
1953
|
+
setup(d) {
|
|
1915
1954
|
const e = j(), i = Be();
|
|
1916
|
-
return (
|
|
1917
|
-
var
|
|
1918
|
-
const
|
|
1919
|
-
return
|
|
1920
|
-
"dot-color": (
|
|
1921
|
-
icon: (c = t(e).discord) != null && c.isActive ? `svg:${t(
|
|
1955
|
+
return (s, r) => {
|
|
1956
|
+
var l, c;
|
|
1957
|
+
const n = ne;
|
|
1958
|
+
return p(), f(Ze, {
|
|
1959
|
+
"dot-color": (l = t(e).discord) != null && l.isActive ? "success" : "transparent",
|
|
1960
|
+
icon: (c = t(e).discord) != null && c.isActive ? `svg:${t(re)}` : void 0,
|
|
1922
1961
|
size: "x-small",
|
|
1923
1962
|
width: "100%"
|
|
1924
1963
|
}, {
|
|
1925
1964
|
default: a(() => [
|
|
1926
|
-
o(
|
|
1965
|
+
o(P, {
|
|
1927
1966
|
"prepend-avatar": t(i).CDN_URL + "/logos/discord.png",
|
|
1928
1967
|
rounded: "lg",
|
|
1929
1968
|
subtitle: "Support Vuetify through Discord.",
|
|
@@ -1932,16 +1971,16 @@ const Be = X("settings", () => {
|
|
|
1932
1971
|
border: ""
|
|
1933
1972
|
}, {
|
|
1934
1973
|
append: a(() => {
|
|
1935
|
-
var v, u, m, b, V,
|
|
1974
|
+
var v, u, m, b, V, L;
|
|
1936
1975
|
return [
|
|
1937
|
-
h("div",
|
|
1938
|
-
o(
|
|
1976
|
+
h("div", ds, [
|
|
1977
|
+
o(n, {
|
|
1939
1978
|
color: (v = t(e).discord) != null && v.isActive ? "success" : "primary",
|
|
1940
1979
|
href: (u = t(e).discord) != null && u.isActive ? void 0 : "https://discord.com/servers/vuetify-340160225338195969",
|
|
1941
1980
|
"prepend-icon": `svg:${(m = t(e).discord) != null && m.isActive ? t(pe) : t(ve)}`,
|
|
1942
1981
|
readonly: (b = t(e).discord) == null ? void 0 : b.isActive,
|
|
1943
1982
|
target: (V = t(e).discord) != null && V.isActive ? void 0 : "_blank",
|
|
1944
|
-
text: (
|
|
1983
|
+
text: (L = t(e).discord) != null && L.isActive ? "Active" : "Info",
|
|
1945
1984
|
width: "88"
|
|
1946
1985
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
|
|
1947
1986
|
])
|
|
@@ -1950,7 +1989,7 @@ const Be = X("settings", () => {
|
|
|
1950
1989
|
default: a(() => {
|
|
1951
1990
|
var v;
|
|
1952
1991
|
return [
|
|
1953
|
-
(v = t(e).discord) != null && v.isActive ? (
|
|
1992
|
+
(v = t(e).discord) != null && v.isActive ? (p(), w(U, { key: 0 }, [
|
|
1954
1993
|
o(W),
|
|
1955
1994
|
o(K, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
1956
1995
|
default: a(() => [
|
|
@@ -1965,7 +2004,7 @@ const Be = X("settings", () => {
|
|
|
1965
2004
|
]),
|
|
1966
2005
|
_: 1
|
|
1967
2006
|
})
|
|
1968
|
-
], 64)) :
|
|
2007
|
+
], 64)) : $("", !0)
|
|
1969
2008
|
];
|
|
1970
2009
|
}),
|
|
1971
2010
|
_: 1
|
|
@@ -1975,21 +2014,21 @@ const Be = X("settings", () => {
|
|
|
1975
2014
|
}, 8, ["dot-color", "icon"]);
|
|
1976
2015
|
};
|
|
1977
2016
|
}
|
|
1978
|
-
}),
|
|
2017
|
+
}), ms = { class: "ps-16" }, fs = /* @__PURE__ */ k({
|
|
1979
2018
|
__name: "VoSponsorshipsTimelineItemGithub",
|
|
1980
|
-
setup(
|
|
2019
|
+
setup(d) {
|
|
1981
2020
|
const e = j(), i = Be();
|
|
1982
|
-
return (
|
|
1983
|
-
var
|
|
1984
|
-
const
|
|
1985
|
-
return
|
|
1986
|
-
"dot-color": (
|
|
1987
|
-
icon: (c = t(e).github) != null && c.isActive ? `svg:${t(
|
|
2021
|
+
return (s, r) => {
|
|
2022
|
+
var l, c;
|
|
2023
|
+
const n = ne;
|
|
2024
|
+
return p(), f(Ze, {
|
|
2025
|
+
"dot-color": (l = t(e).github) != null && l.isActive ? "success" : "transparent",
|
|
2026
|
+
icon: (c = t(e).github) != null && c.isActive ? `svg:${t(re)}` : void 0,
|
|
1988
2027
|
size: "x-small",
|
|
1989
2028
|
width: "100%"
|
|
1990
2029
|
}, {
|
|
1991
2030
|
default: a(() => [
|
|
1992
|
-
o(
|
|
2031
|
+
o(P, {
|
|
1993
2032
|
"prepend-avatar": t(i).CDN_URL + "/logos/github.png",
|
|
1994
2033
|
rounded: "lg",
|
|
1995
2034
|
subtitle: "Support Vuetify through GitHub sponsors.",
|
|
@@ -1998,16 +2037,16 @@ const Be = X("settings", () => {
|
|
|
1998
2037
|
border: ""
|
|
1999
2038
|
}, {
|
|
2000
2039
|
append: a(() => {
|
|
2001
|
-
var v, u, m, b, V,
|
|
2040
|
+
var v, u, m, b, V, L;
|
|
2002
2041
|
return [
|
|
2003
|
-
h("div",
|
|
2004
|
-
o(
|
|
2042
|
+
h("div", ms, [
|
|
2043
|
+
o(n, {
|
|
2005
2044
|
color: (v = t(e).github) != null && v.isActive ? "success" : "primary",
|
|
2006
2045
|
href: (u = t(e).github) != null && u.isActive ? void 0 : "https://github.com/sponsors/johnleider",
|
|
2007
2046
|
"prepend-icon": `svg:${(m = t(e).github) != null && m.isActive ? t(pe) : t(ve)}`,
|
|
2008
2047
|
readonly: (b = t(e).github) == null ? void 0 : b.isActive,
|
|
2009
2048
|
target: (V = t(e).github) != null && V.isActive ? void 0 : "_blank",
|
|
2010
|
-
text: (
|
|
2049
|
+
text: (L = t(e).github) != null && L.isActive ? "Active" : "Info",
|
|
2011
2050
|
width: "88"
|
|
2012
2051
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
|
|
2013
2052
|
])
|
|
@@ -2016,7 +2055,7 @@ const Be = X("settings", () => {
|
|
|
2016
2055
|
default: a(() => {
|
|
2017
2056
|
var v;
|
|
2018
2057
|
return [
|
|
2019
|
-
(v = t(e).github) != null && v.isActive ? (
|
|
2058
|
+
(v = t(e).github) != null && v.isActive ? (p(), w(U, { key: 0 }, [
|
|
2020
2059
|
o(W),
|
|
2021
2060
|
o(K, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
2022
2061
|
default: a(() => [
|
|
@@ -2031,7 +2070,7 @@ const Be = X("settings", () => {
|
|
|
2031
2070
|
]),
|
|
2032
2071
|
_: 1
|
|
2033
2072
|
})
|
|
2034
|
-
], 64)) :
|
|
2073
|
+
], 64)) : $("", !0)
|
|
2035
2074
|
];
|
|
2036
2075
|
}),
|
|
2037
2076
|
_: 1
|
|
@@ -2041,12 +2080,12 @@ const Be = X("settings", () => {
|
|
|
2041
2080
|
}, 8, ["dot-color", "icon"]);
|
|
2042
2081
|
};
|
|
2043
2082
|
}
|
|
2044
|
-
}),
|
|
2083
|
+
}), vs = /* @__PURE__ */ k({
|
|
2045
2084
|
__name: "VoSponsorshipsTimeline",
|
|
2046
|
-
setup(
|
|
2085
|
+
setup(d) {
|
|
2047
2086
|
return (e, i) => {
|
|
2048
|
-
const
|
|
2049
|
-
return
|
|
2087
|
+
const s = fs, r = ps, n = us;
|
|
2088
|
+
return p(), f(vo, {
|
|
2050
2089
|
class: "justify-start ms-n7",
|
|
2051
2090
|
"line-inset": "12",
|
|
2052
2091
|
side: "end",
|
|
@@ -2054,35 +2093,35 @@ const Be = X("settings", () => {
|
|
|
2054
2093
|
"truncate-line": "both"
|
|
2055
2094
|
}, {
|
|
2056
2095
|
default: a(() => [
|
|
2057
|
-
o(
|
|
2058
|
-
o(
|
|
2059
|
-
o(
|
|
2096
|
+
o(s),
|
|
2097
|
+
o(r),
|
|
2098
|
+
o(n)
|
|
2060
2099
|
]),
|
|
2061
2100
|
_: 1
|
|
2062
2101
|
});
|
|
2063
2102
|
};
|
|
2064
2103
|
}
|
|
2065
|
-
}),
|
|
2104
|
+
}), _s = { class: "px-3 pb-5 d-flex flex-column" }, hs = { class: "py-4" }, gs = /* @__PURE__ */ h("div", { class: "text-caption text-medium-emphasis" }, [
|
|
2066
2105
|
/* @__PURE__ */ B(" A total of $2.99 or more unlocks "),
|
|
2067
2106
|
/* @__PURE__ */ h("span", { class: "font-weight-black" }, "all"),
|
|
2068
2107
|
/* @__PURE__ */ B(" Vuetify One benefits ")
|
|
2069
|
-
], -1),
|
|
2108
|
+
], -1), bs = /* @__PURE__ */ k({
|
|
2070
2109
|
__name: "VoSponsorshipsDialog",
|
|
2071
2110
|
props: {
|
|
2072
2111
|
modelValue: { type: Boolean },
|
|
2073
2112
|
modelModifiers: {}
|
|
2074
2113
|
},
|
|
2075
2114
|
emits: ["update:modelValue"],
|
|
2076
|
-
setup(
|
|
2077
|
-
const e = ie(
|
|
2115
|
+
setup(d) {
|
|
2116
|
+
const e = ie(d, "modelValue"), i = Ve(), s = F(), r = j();
|
|
2078
2117
|
return N(i, async () => {
|
|
2079
|
-
i.value.one === "sponsorships" && (
|
|
2080
|
-
}, { immediate: !0 }), (
|
|
2081
|
-
const c =
|
|
2082
|
-
return
|
|
2118
|
+
i.value.one === "sponsorships" && (r.isOpen = !0, await fe(), e.value = !0);
|
|
2119
|
+
}, { immediate: !0 }), (n, l) => {
|
|
2120
|
+
const c = ye, v = vs, u = Me("v-empty-state"), m = Ue;
|
|
2121
|
+
return p(), f(m, {
|
|
2083
2122
|
modelValue: e.value,
|
|
2084
|
-
"onUpdate:modelValue":
|
|
2085
|
-
"prepend-icon": `svg:${t(
|
|
2123
|
+
"onUpdate:modelValue": l[0] || (l[0] = (b) => e.value = b),
|
|
2124
|
+
"prepend-icon": `svg:${t(Et)}`,
|
|
2086
2125
|
title: "Sponsorships"
|
|
2087
2126
|
}, {
|
|
2088
2127
|
default: a(() => [
|
|
@@ -2090,7 +2129,7 @@ const Be = X("settings", () => {
|
|
|
2090
2129
|
default: a(() => [
|
|
2091
2130
|
o(Ae, { scrollable: "" }, {
|
|
2092
2131
|
default: a(() => [
|
|
2093
|
-
h("div",
|
|
2132
|
+
h("div", _s, [
|
|
2094
2133
|
o(K, null, {
|
|
2095
2134
|
default: a(() => [
|
|
2096
2135
|
o(c, {
|
|
@@ -2102,7 +2141,7 @@ const Be = X("settings", () => {
|
|
|
2102
2141
|
_: 1
|
|
2103
2142
|
}),
|
|
2104
2143
|
o(u, {
|
|
2105
|
-
icon: `svg:${t(
|
|
2144
|
+
icon: `svg:${t(Wt)}`,
|
|
2106
2145
|
class: "mt-auto",
|
|
2107
2146
|
"min-height": "auto",
|
|
2108
2147
|
size: "64",
|
|
@@ -2112,16 +2151,16 @@ const Be = X("settings", () => {
|
|
|
2112
2151
|
o(A, { color: "success" })
|
|
2113
2152
|
]),
|
|
2114
2153
|
headline: a(() => [
|
|
2115
|
-
h("div",
|
|
2116
|
-
t(
|
|
2117
|
-
B(" $" + I(parseFloat(String(t(
|
|
2118
|
-
], 64)) : (
|
|
2154
|
+
h("div", hs, [
|
|
2155
|
+
t(s).isSubscriber ? (p(), w(U, { key: 0 }, [
|
|
2156
|
+
B(" $" + I(parseFloat(String(t(r).monthlyTotal)).toFixed(2)), 1)
|
|
2157
|
+
], 64)) : (p(), w(U, { key: 1 }, [
|
|
2119
2158
|
B(" $0.00 ")
|
|
2120
2159
|
], 64))
|
|
2121
2160
|
])
|
|
2122
2161
|
]),
|
|
2123
2162
|
text: a(() => [
|
|
2124
|
-
|
|
2163
|
+
gs
|
|
2125
2164
|
]),
|
|
2126
2165
|
_: 1
|
|
2127
2166
|
}, 8, ["icon"])
|
|
@@ -2137,40 +2176,40 @@ const Be = X("settings", () => {
|
|
|
2137
2176
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2138
2177
|
};
|
|
2139
2178
|
}
|
|
2140
|
-
}),
|
|
2179
|
+
}), ys = /* @__PURE__ */ k({
|
|
2141
2180
|
__name: "VoSponsorshipsListItem",
|
|
2142
|
-
setup(
|
|
2181
|
+
setup(d) {
|
|
2143
2182
|
const e = D(!1);
|
|
2144
|
-
return (i,
|
|
2145
|
-
const
|
|
2146
|
-
return
|
|
2183
|
+
return (i, s) => {
|
|
2184
|
+
const r = bs, n = Y;
|
|
2185
|
+
return p(), f(n, {
|
|
2147
2186
|
active: e.value,
|
|
2148
|
-
"prepend-icon": `svg:${t(
|
|
2187
|
+
"prepend-icon": `svg:${t(Gt)}`,
|
|
2149
2188
|
title: "Sponsorships",
|
|
2150
2189
|
link: ""
|
|
2151
2190
|
}, {
|
|
2152
2191
|
default: a(() => [
|
|
2153
|
-
o(
|
|
2192
|
+
o(r, {
|
|
2154
2193
|
modelValue: e.value,
|
|
2155
|
-
"onUpdate:modelValue":
|
|
2194
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => e.value = l)
|
|
2156
2195
|
}, null, 8, ["modelValue"])
|
|
2157
2196
|
]),
|
|
2158
2197
|
_: 1
|
|
2159
2198
|
}, 8, ["active", "prepend-icon"]);
|
|
2160
2199
|
};
|
|
2161
2200
|
}
|
|
2162
|
-
}),
|
|
2201
|
+
}), Vs = /* @__PURE__ */ k({
|
|
2163
2202
|
__name: "VoStudioListItem",
|
|
2164
|
-
setup(
|
|
2203
|
+
setup(d) {
|
|
2165
2204
|
const e = [
|
|
2166
2205
|
["M12.435 14.3194L12 21L6.87046 12.2799L12.435 14.3194Z", 1],
|
|
2167
2206
|
["M22 4L12.435 14.3194L6.87046 12.2799L9.26479 7.61064L12.435 14.3194L12 21L22 4Z", 0.5],
|
|
2168
2207
|
["M12.435 14.3194L22 4L9.26479 7.61064L12.435 14.3194Z", 1],
|
|
2169
2208
|
["M2 4L6.87046 12.2799L9.26479 7.61064L2 4Z", 1]
|
|
2170
2209
|
];
|
|
2171
|
-
return (i,
|
|
2172
|
-
const
|
|
2173
|
-
return
|
|
2210
|
+
return (i, s) => {
|
|
2211
|
+
const r = Y;
|
|
2212
|
+
return p(), f(r, {
|
|
2174
2213
|
"prepend-icon": e,
|
|
2175
2214
|
class: "cursor-default",
|
|
2176
2215
|
title: "Vuetify Studio"
|
|
@@ -2190,41 +2229,41 @@ const Be = X("settings", () => {
|
|
|
2190
2229
|
});
|
|
2191
2230
|
};
|
|
2192
2231
|
}
|
|
2193
|
-
}),
|
|
2232
|
+
}), ks = {
|
|
2194
2233
|
key: 0,
|
|
2195
2234
|
class: "pt-16"
|
|
2196
|
-
},
|
|
2235
|
+
}, $s = /* @__PURE__ */ h("div", { class: "text-medium-emphasis" }, " All caught up ", -1), xs = {
|
|
2197
2236
|
key: 1,
|
|
2198
2237
|
class: "pa-5"
|
|
2199
|
-
},
|
|
2238
|
+
}, ws = { class: "text-subtitle-1 font-weight-bold" }, Ss = { class: "text-caption font-weight-bold text-medium-emphasis" }, Ls = { class: "text-disabled text-caption mt-2 mb-3" }, Cs = /* @__PURE__ */ k({
|
|
2200
2239
|
__name: "VoNotificationsBannerList",
|
|
2201
2240
|
props: {
|
|
2202
2241
|
items: {}
|
|
2203
2242
|
},
|
|
2204
|
-
setup(
|
|
2205
|
-
const e =
|
|
2206
|
-
function l
|
|
2207
|
-
return
|
|
2243
|
+
setup(d) {
|
|
2244
|
+
const e = Se(), i = le(), s = O();
|
|
2245
|
+
function r(l) {
|
|
2246
|
+
return s.notifications.last.banner.includes(l);
|
|
2208
2247
|
}
|
|
2209
|
-
function
|
|
2210
|
-
l
|
|
2248
|
+
function n(l) {
|
|
2249
|
+
r(l.slug) ? s.notifications.last.banner = s.notifications.last.banner.filter((c) => c !== l.slug) : s.notifications.last.banner.push(l.slug);
|
|
2211
2250
|
}
|
|
2212
|
-
return (
|
|
2251
|
+
return (l, c) => {
|
|
2213
2252
|
const v = Me("v-empty-state");
|
|
2214
|
-
return
|
|
2253
|
+
return p(), f(ee, {
|
|
2215
2254
|
class: "py-0",
|
|
2216
2255
|
height: "100%",
|
|
2217
2256
|
lines: "three"
|
|
2218
2257
|
}, {
|
|
2219
2258
|
default: a(() => [
|
|
2220
|
-
|
|
2221
|
-
(
|
|
2259
|
+
l.items.length ? (p(), w("div", xs, [
|
|
2260
|
+
(p(!0), w(U, null, oe(l.items, (u) => {
|
|
2222
2261
|
var m;
|
|
2223
|
-
return
|
|
2262
|
+
return p(), w("div", {
|
|
2224
2263
|
key: u.slug,
|
|
2225
2264
|
class: "mb-4"
|
|
2226
2265
|
}, [
|
|
2227
|
-
o(
|
|
2266
|
+
o(P, {
|
|
2228
2267
|
color: u.metadata.color,
|
|
2229
2268
|
image: (m = u.metadata.images.bg) == null ? void 0 : m.url,
|
|
2230
2269
|
title: u.title,
|
|
@@ -2232,39 +2271,39 @@ const Be = X("settings", () => {
|
|
|
2232
2271
|
flat: ""
|
|
2233
2272
|
}, {
|
|
2234
2273
|
prepend: a(() => [
|
|
2235
|
-
o(
|
|
2274
|
+
o(se, {
|
|
2236
2275
|
image: u.metadata.images.logo.url
|
|
2237
2276
|
}, null, 8, ["image"])
|
|
2238
2277
|
]),
|
|
2239
2278
|
image: a(() => [
|
|
2240
|
-
o(
|
|
2279
|
+
o(ge, { position: "right" })
|
|
2241
2280
|
]),
|
|
2242
2281
|
_: 2
|
|
2243
2282
|
}, 1032, ["color", "image", "title"]),
|
|
2244
2283
|
o(Ce, null, {
|
|
2245
2284
|
default: a(({ props: b, isHovering: V }) => [
|
|
2246
|
-
o(qe,
|
|
2285
|
+
o(qe, R(b, {
|
|
2247
2286
|
class: "px-8 pt-2 pb-4 position-relative",
|
|
2248
2287
|
rounded: "b",
|
|
2249
2288
|
border: ""
|
|
2250
2289
|
}), {
|
|
2251
2290
|
default: a(() => [
|
|
2252
2291
|
o(J, {
|
|
2253
|
-
text:
|
|
2292
|
+
text: r(u.slug) ? "Mark as unread" : "Mark as read",
|
|
2254
2293
|
location: "bottom"
|
|
2255
2294
|
}, {
|
|
2256
|
-
activator: a(({ props:
|
|
2257
|
-
o(
|
|
2295
|
+
activator: a(({ props: L }) => [
|
|
2296
|
+
o(we, { "hide-on-leave": "" }, {
|
|
2258
2297
|
default: a(() => [
|
|
2259
|
-
xe(o(E,
|
|
2260
|
-
icon: `svg:${
|
|
2298
|
+
xe(o(E, R(L, {
|
|
2299
|
+
icon: `svg:${r(u.slug) ? t(tt) : t(et)}`,
|
|
2261
2300
|
class: "ms-auto float-right",
|
|
2262
2301
|
size: "small",
|
|
2263
2302
|
variant: "text",
|
|
2264
2303
|
"mdi-email-variant": "",
|
|
2265
|
-
onClick: (_) =>
|
|
2304
|
+
onClick: (_) => n(u)
|
|
2266
2305
|
}), null, 16, ["icon", "onClick"]), [
|
|
2267
|
-
[
|
|
2306
|
+
[Pe, V || t(i).mobile.value]
|
|
2268
2307
|
])
|
|
2269
2308
|
]),
|
|
2270
2309
|
_: 2
|
|
@@ -2272,10 +2311,10 @@ const Be = X("settings", () => {
|
|
|
2272
2311
|
]),
|
|
2273
2312
|
_: 2
|
|
2274
2313
|
}, 1032, ["text"]),
|
|
2275
|
-
h("div",
|
|
2276
|
-
h("div",
|
|
2277
|
-
h("div",
|
|
2278
|
-
o(q,
|
|
2314
|
+
h("div", ws, I(u.metadata.text), 1),
|
|
2315
|
+
h("div", Ss, I(t(e).format(u.created_at, "fullDateWithWeekday")), 1),
|
|
2316
|
+
h("div", Ls, I(u.metadata.subtext), 1),
|
|
2317
|
+
o(q, R({
|
|
2279
2318
|
href: u.metadata.link.startsWith("http") ? u.metadata.link : void 0,
|
|
2280
2319
|
target: u.metadata.link.startsWith("http") ? "_blank" : void 0,
|
|
2281
2320
|
to: u.metadata.link.startsWith("http") ? void 0 : u.metadata.link
|
|
@@ -2300,7 +2339,7 @@ const Be = X("settings", () => {
|
|
|
2300
2339
|
}, 1024)
|
|
2301
2340
|
]);
|
|
2302
2341
|
}), 128))
|
|
2303
|
-
])) : (
|
|
2342
|
+
])) : (p(), w("div", ks, [
|
|
2304
2343
|
o(v, {
|
|
2305
2344
|
icon: "$vuetify",
|
|
2306
2345
|
size: "256"
|
|
@@ -2309,7 +2348,7 @@ const Be = X("settings", () => {
|
|
|
2309
2348
|
o(A, { color: "medium-emphasis" })
|
|
2310
2349
|
]),
|
|
2311
2350
|
title: a(() => [
|
|
2312
|
-
|
|
2351
|
+
$s
|
|
2313
2352
|
]),
|
|
2314
2353
|
_: 1
|
|
2315
2354
|
})
|
|
@@ -2319,63 +2358,63 @@ const Be = X("settings", () => {
|
|
|
2319
2358
|
});
|
|
2320
2359
|
};
|
|
2321
2360
|
}
|
|
2322
|
-
}),
|
|
2361
|
+
}), Is = {
|
|
2323
2362
|
key: 0,
|
|
2324
2363
|
class: "pt-16"
|
|
2325
|
-
},
|
|
2364
|
+
}, As = /* @__PURE__ */ h("div", { class: "text-medium-emphasis" }, " All caught up ", -1), Ds = { class: "ps-3 text-subtitle-2 pe-2" }, Us = { class: "text-truncate" }, Bs = { class: "text-caption font-weight-bold text-medium-emphasis" }, Ns = { class: "text-disabled text-caption my-2" }, Os = /* @__PURE__ */ k({
|
|
2326
2365
|
__name: "VoNotificationsList",
|
|
2327
2366
|
props: {
|
|
2328
2367
|
items: {}
|
|
2329
2368
|
},
|
|
2330
|
-
setup(
|
|
2331
|
-
const e =
|
|
2332
|
-
function l
|
|
2333
|
-
return
|
|
2369
|
+
setup(d) {
|
|
2370
|
+
const e = Se(), i = le(), s = O();
|
|
2371
|
+
function r(l) {
|
|
2372
|
+
return s.notifications.read.includes(l);
|
|
2334
2373
|
}
|
|
2335
|
-
function
|
|
2336
|
-
l
|
|
2374
|
+
function n(l) {
|
|
2375
|
+
r(l.slug) ? s.notifications.read = s.notifications.read.filter((c) => c !== l.slug) : s.notifications.read.push(l.slug);
|
|
2337
2376
|
}
|
|
2338
|
-
return (
|
|
2377
|
+
return (l, c) => {
|
|
2339
2378
|
const v = Me("v-empty-state"), u = Y;
|
|
2340
|
-
return
|
|
2379
|
+
return p(), f(ee, {
|
|
2341
2380
|
class: "py-0",
|
|
2342
2381
|
height: "100%",
|
|
2343
2382
|
lines: "three"
|
|
2344
2383
|
}, {
|
|
2345
2384
|
default: a(() => [
|
|
2346
|
-
|
|
2385
|
+
l.items.length ? (p(!0), w(U, { key: 1 }, oe(l.items, (m, b) => (p(), f(Ce, {
|
|
2347
2386
|
key: m.slug
|
|
2348
2387
|
}, {
|
|
2349
|
-
default: a(({ isHovering: V, props:
|
|
2350
|
-
o(u,
|
|
2388
|
+
default: a(({ isHovering: V, props: L }) => [
|
|
2389
|
+
o(u, R(L, {
|
|
2351
2390
|
border: b !== 0 && "t",
|
|
2352
2391
|
class: "py-4 mb-0"
|
|
2353
2392
|
}), {
|
|
2354
2393
|
prepend: a(() => [
|
|
2355
|
-
h("div",
|
|
2394
|
+
h("div", Ds, I(m.metadata.emoji), 1)
|
|
2356
2395
|
]),
|
|
2357
2396
|
append: a(() => [
|
|
2358
|
-
o(
|
|
2397
|
+
o(_o, {
|
|
2359
2398
|
class: "mt-n3",
|
|
2360
2399
|
width: "56"
|
|
2361
2400
|
}, {
|
|
2362
2401
|
default: a(() => [
|
|
2363
2402
|
o(J, {
|
|
2364
|
-
text:
|
|
2403
|
+
text: r(m.slug) ? "Mark as unread" : "Mark as read",
|
|
2365
2404
|
location: "bottom"
|
|
2366
2405
|
}, {
|
|
2367
2406
|
activator: a(({ props: _ }) => [
|
|
2368
|
-
o(
|
|
2407
|
+
o(we, { "hide-on-leave": "" }, {
|
|
2369
2408
|
default: a(() => [
|
|
2370
|
-
xe(o(E,
|
|
2371
|
-
icon: `svg:${
|
|
2409
|
+
xe(o(E, R(_, {
|
|
2410
|
+
icon: `svg:${r(m.slug) ? t(tt) : t(et)}`,
|
|
2372
2411
|
class: "ms-auto",
|
|
2373
2412
|
size: "small",
|
|
2374
2413
|
variant: "text",
|
|
2375
2414
|
"mdi-email-variant": "",
|
|
2376
|
-
onClick: (y) =>
|
|
2415
|
+
onClick: (y) => n(m)
|
|
2377
2416
|
}), null, 16, ["icon", "onClick"]), [
|
|
2378
|
-
[
|
|
2417
|
+
[Pe, V || t(i).mobile.value]
|
|
2379
2418
|
])
|
|
2380
2419
|
]),
|
|
2381
2420
|
_: 2
|
|
@@ -2388,14 +2427,14 @@ const Be = X("settings", () => {
|
|
|
2388
2427
|
}, 1024)
|
|
2389
2428
|
]),
|
|
2390
2429
|
default: a(() => [
|
|
2391
|
-
o(
|
|
2430
|
+
o(ot, { class: "text-wrap text-h6 mb-1" }, {
|
|
2392
2431
|
default: a(() => [
|
|
2393
|
-
h("div",
|
|
2432
|
+
h("div", Us, I(m.title), 1)
|
|
2394
2433
|
]),
|
|
2395
2434
|
_: 2
|
|
2396
2435
|
}, 1024),
|
|
2397
|
-
h("div",
|
|
2398
|
-
h("div",
|
|
2436
|
+
h("div", Bs, I(t(e).format(m.created_at, "fullDateWithWeekday")), 1),
|
|
2437
|
+
h("div", Ns, I(m.metadata.text), 1),
|
|
2399
2438
|
o(q, {
|
|
2400
2439
|
"append-icon": `svg:${t(ve)}`,
|
|
2401
2440
|
href: m.metadata.action,
|
|
@@ -2405,7 +2444,7 @@ const Be = X("settings", () => {
|
|
|
2405
2444
|
variant: "text",
|
|
2406
2445
|
border: "",
|
|
2407
2446
|
label: "",
|
|
2408
|
-
onClick: (_) =>
|
|
2447
|
+
onClick: (_) => n(m)
|
|
2409
2448
|
}, {
|
|
2410
2449
|
append: a(() => [
|
|
2411
2450
|
o(A, { size: "12" })
|
|
@@ -2417,7 +2456,7 @@ const Be = X("settings", () => {
|
|
|
2417
2456
|
}, 1040, ["border"])
|
|
2418
2457
|
]),
|
|
2419
2458
|
_: 2
|
|
2420
|
-
}, 1024))), 128)) : (
|
|
2459
|
+
}, 1024))), 128)) : (p(), w("div", Is, [
|
|
2421
2460
|
o(v, {
|
|
2422
2461
|
icon: "$vuetify",
|
|
2423
2462
|
size: "256"
|
|
@@ -2426,7 +2465,7 @@ const Be = X("settings", () => {
|
|
|
2426
2465
|
o(A, { color: "medium-emphasis" })
|
|
2427
2466
|
]),
|
|
2428
2467
|
title: a(() => [
|
|
2429
|
-
|
|
2468
|
+
As
|
|
2430
2469
|
]),
|
|
2431
2470
|
_: 1
|
|
2432
2471
|
})
|
|
@@ -2436,20 +2475,20 @@ const Be = X("settings", () => {
|
|
|
2436
2475
|
});
|
|
2437
2476
|
};
|
|
2438
2477
|
}
|
|
2439
|
-
}),
|
|
2440
|
-
const
|
|
2478
|
+
}), Fs = X("site", () => {
|
|
2479
|
+
const d = H([]), e = H();
|
|
2441
2480
|
return {
|
|
2442
|
-
id:
|
|
2481
|
+
id: d,
|
|
2443
2482
|
url: e
|
|
2444
2483
|
};
|
|
2445
2484
|
}), Ne = X("banners", () => {
|
|
2446
|
-
const
|
|
2485
|
+
const d = be(), e = Fs(), i = O(), s = H([]), r = D(!1), n = S(() => l.value ? l.value : s.value.find(({
|
|
2447
2486
|
slug: v,
|
|
2448
2487
|
metadata: {
|
|
2449
2488
|
site: u,
|
|
2450
2489
|
active: m
|
|
2451
2490
|
}
|
|
2452
|
-
}) => !m || i.notifications.last.banner.includes(v) ? !1 : u.includes("dev") && !1 || u.includes("*") ? !0 : u.some((b) => e.id.includes(b)))),
|
|
2491
|
+
}) => !m || i.notifications.last.banner.includes(v) ? !1 : u.includes("dev") && !1 || u.includes("*") ? !0 : u.some((b) => e.id.includes(b)))), l = S(() => s.value.find(({
|
|
2453
2492
|
metadata: {
|
|
2454
2493
|
site: v,
|
|
2455
2494
|
active: u
|
|
@@ -2457,57 +2496,57 @@ const Be = X("settings", () => {
|
|
|
2457
2496
|
}) => u ? v.includes("server") : !1));
|
|
2458
2497
|
async function c() {
|
|
2459
2498
|
try {
|
|
2460
|
-
|
|
2461
|
-
const v = await
|
|
2462
|
-
|
|
2499
|
+
r.value = !0;
|
|
2500
|
+
const v = await d.get("/one/banners");
|
|
2501
|
+
s.value = v.banners;
|
|
2463
2502
|
} catch {
|
|
2464
2503
|
} finally {
|
|
2465
|
-
|
|
2504
|
+
r.value = !1;
|
|
2466
2505
|
}
|
|
2467
|
-
return
|
|
2506
|
+
return s.value;
|
|
2468
2507
|
}
|
|
2469
2508
|
return {
|
|
2470
|
-
all:
|
|
2471
|
-
isLoading:
|
|
2472
|
-
server:
|
|
2473
|
-
banner:
|
|
2509
|
+
all: s,
|
|
2510
|
+
isLoading: r,
|
|
2511
|
+
server: l,
|
|
2512
|
+
banner: n,
|
|
2474
2513
|
get: c
|
|
2475
2514
|
};
|
|
2476
|
-
}),
|
|
2515
|
+
}), zs = { class: "text-caption" }, js = { class: "text-caption" }, Ts = /* @__PURE__ */ k({
|
|
2477
2516
|
__name: "VoNotificationsDialog",
|
|
2478
2517
|
props: {
|
|
2479
2518
|
modelValue: { type: Boolean },
|
|
2480
2519
|
modelModifiers: {}
|
|
2481
2520
|
},
|
|
2482
2521
|
emits: ["update:modelValue"],
|
|
2483
|
-
setup(
|
|
2484
|
-
const e =
|
|
2522
|
+
setup(d) {
|
|
2523
|
+
const e = le(), i = Ve(), s = Ne(), r = De(), n = j(), l = D(["read"]), c = ie(d, "modelValue");
|
|
2485
2524
|
return N(i, async () => {
|
|
2486
2525
|
if (i.value.one !== "notifications") {
|
|
2487
2526
|
c.value && (c.value = !1);
|
|
2488
2527
|
return;
|
|
2489
2528
|
}
|
|
2490
|
-
|
|
2529
|
+
n.isOpen = !0, await fe(), c.value = !0;
|
|
2491
2530
|
}, { immediate: !0 }), (v, u) => {
|
|
2492
|
-
const m = Y, b =
|
|
2493
|
-
return
|
|
2531
|
+
const m = Y, b = Os, V = Cs, L = Ue;
|
|
2532
|
+
return p(), f(L, {
|
|
2494
2533
|
modelValue: c.value,
|
|
2495
2534
|
"onUpdate:modelValue": u[2] || (u[2] = (_) => c.value = _),
|
|
2496
|
-
"prepend-icon": `svg:${t(
|
|
2535
|
+
"prepend-icon": `svg:${t(qt)}`,
|
|
2497
2536
|
title: "Notifications"
|
|
2498
2537
|
}, {
|
|
2499
2538
|
default: a(() => [
|
|
2500
2539
|
o(Ie, null, {
|
|
2501
2540
|
default: a(() => [
|
|
2502
|
-
o(
|
|
2541
|
+
o(ho, {
|
|
2503
2542
|
location: t(e).mobile.value ? "top" : "start",
|
|
2504
2543
|
width: t(e).mobile.value ? 128 : 168,
|
|
2505
2544
|
permanent: ""
|
|
2506
2545
|
}, {
|
|
2507
2546
|
default: a(() => [
|
|
2508
2547
|
o(ee, {
|
|
2509
|
-
selected:
|
|
2510
|
-
"onUpdate:selected": u[0] || (u[0] = (_) =>
|
|
2548
|
+
selected: l.value,
|
|
2549
|
+
"onUpdate:selected": u[0] || (u[0] = (_) => l.value = _),
|
|
2511
2550
|
class: "px-4 pt-4",
|
|
2512
2551
|
density: "compact",
|
|
2513
2552
|
mandatory: "",
|
|
@@ -2515,34 +2554,34 @@ const Be = X("settings", () => {
|
|
|
2515
2554
|
}, {
|
|
2516
2555
|
default: a(() => [
|
|
2517
2556
|
o(m, {
|
|
2518
|
-
"prepend-icon": `svg:${t(
|
|
2557
|
+
"prepend-icon": `svg:${t(Zt)}`,
|
|
2519
2558
|
title: "Unread",
|
|
2520
2559
|
value: "read"
|
|
2521
2560
|
}, G({ _: 2 }, [
|
|
2522
|
-
t(
|
|
2561
|
+
t(r).unread.length > 0 ? {
|
|
2523
2562
|
name: "append",
|
|
2524
2563
|
fn: a(() => [
|
|
2525
|
-
h("span",
|
|
2564
|
+
h("span", zs, I(t(r).unread.length), 1)
|
|
2526
2565
|
]),
|
|
2527
2566
|
key: "0"
|
|
2528
2567
|
} : void 0
|
|
2529
2568
|
]), 1032, ["prepend-icon"]),
|
|
2530
2569
|
o(m, {
|
|
2531
|
-
"prepend-icon": `svg:${t(
|
|
2570
|
+
"prepend-icon": `svg:${t(Yt)}`,
|
|
2532
2571
|
title: "Read",
|
|
2533
2572
|
value: "unread"
|
|
2534
2573
|
}, G({ _: 2 }, [
|
|
2535
|
-
t(
|
|
2574
|
+
t(r).read.length > 0 ? {
|
|
2536
2575
|
name: "append",
|
|
2537
2576
|
fn: a(() => [
|
|
2538
|
-
h("span",
|
|
2577
|
+
h("span", js, I(t(r).read.length), 1)
|
|
2539
2578
|
]),
|
|
2540
2579
|
key: "0"
|
|
2541
2580
|
} : void 0
|
|
2542
2581
|
]), 1032, ["prepend-icon"]),
|
|
2543
|
-
t(
|
|
2582
|
+
t(s).all.length > 0 ? (p(), f(m, {
|
|
2544
2583
|
key: 0,
|
|
2545
|
-
"prepend-icon": `svg:${t(
|
|
2584
|
+
"prepend-icon": `svg:${t(Qt)}`,
|
|
2546
2585
|
title: "Banners",
|
|
2547
2586
|
value: "banners"
|
|
2548
2587
|
}, {
|
|
@@ -2553,7 +2592,7 @@ const Be = X("settings", () => {
|
|
|
2553
2592
|
})
|
|
2554
2593
|
]),
|
|
2555
2594
|
_: 1
|
|
2556
|
-
}, 8, ["prepend-icon"])) :
|
|
2595
|
+
}, 8, ["prepend-icon"])) : $("", !0)
|
|
2557
2596
|
]),
|
|
2558
2597
|
_: 1
|
|
2559
2598
|
}, 8, ["selected"])
|
|
@@ -2562,15 +2601,15 @@ const Be = X("settings", () => {
|
|
|
2562
2601
|
}, 8, ["location", "width"]),
|
|
2563
2602
|
o(Ae, { scrollable: "" }, {
|
|
2564
2603
|
default: a(() => [
|
|
2565
|
-
o(
|
|
2566
|
-
modelValue:
|
|
2567
|
-
"onUpdate:modelValue": u[1] || (u[1] = (_) =>
|
|
2604
|
+
o(it, {
|
|
2605
|
+
modelValue: l.value,
|
|
2606
|
+
"onUpdate:modelValue": u[1] || (u[1] = (_) => l.value = _)
|
|
2568
2607
|
}, {
|
|
2569
2608
|
default: a(() => [
|
|
2570
2609
|
o(de, { value: "read" }, {
|
|
2571
2610
|
default: a(() => [
|
|
2572
2611
|
o(b, {
|
|
2573
|
-
items: t(
|
|
2612
|
+
items: t(r).unread
|
|
2574
2613
|
}, null, 8, ["items"])
|
|
2575
2614
|
]),
|
|
2576
2615
|
_: 1
|
|
@@ -2578,7 +2617,7 @@ const Be = X("settings", () => {
|
|
|
2578
2617
|
o(de, { value: "unread" }, {
|
|
2579
2618
|
default: a(() => [
|
|
2580
2619
|
o(b, {
|
|
2581
|
-
items: t(
|
|
2620
|
+
items: t(r).read
|
|
2582
2621
|
}, null, 8, ["items"])
|
|
2583
2622
|
]),
|
|
2584
2623
|
_: 1
|
|
@@ -2586,7 +2625,7 @@ const Be = X("settings", () => {
|
|
|
2586
2625
|
o(de, { value: "banners" }, {
|
|
2587
2626
|
default: a(() => [
|
|
2588
2627
|
o(V, {
|
|
2589
|
-
items: t(
|
|
2628
|
+
items: t(s).all
|
|
2590
2629
|
}, null, 8, ["items"])
|
|
2591
2630
|
]),
|
|
2592
2631
|
_: 1
|
|
@@ -2605,45 +2644,45 @@ const Be = X("settings", () => {
|
|
|
2605
2644
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2606
2645
|
};
|
|
2607
2646
|
}
|
|
2608
|
-
}),
|
|
2647
|
+
}), Ms = /* @__PURE__ */ k({
|
|
2609
2648
|
__name: "VoNotificationsBadge",
|
|
2610
|
-
setup(
|
|
2649
|
+
setup(d) {
|
|
2611
2650
|
const e = De(), i = O();
|
|
2612
|
-
return (
|
|
2651
|
+
return (s, r) => (p(), f(Ge, {
|
|
2613
2652
|
content: t(e).unread.length,
|
|
2614
2653
|
"model-value": t(i).notifications.show && t(e).unread.length > 0,
|
|
2615
2654
|
color: "error"
|
|
2616
2655
|
}, {
|
|
2617
2656
|
default: a(() => [
|
|
2618
|
-
|
|
2657
|
+
M(s.$slots, "default")
|
|
2619
2658
|
]),
|
|
2620
2659
|
_: 3
|
|
2621
2660
|
}, 8, ["content", "model-value"]));
|
|
2622
2661
|
}
|
|
2623
|
-
}),
|
|
2662
|
+
}), Ps = /* @__PURE__ */ k({
|
|
2624
2663
|
__name: "VoNotificationsListItem",
|
|
2625
|
-
setup(
|
|
2626
|
-
const e = Ne(), i = O(),
|
|
2627
|
-
return
|
|
2628
|
-
|
|
2629
|
-
}), (
|
|
2630
|
-
const c =
|
|
2631
|
-
return t(i).notifications.show ? (
|
|
2664
|
+
setup(d) {
|
|
2665
|
+
const e = Ne(), i = O(), s = De(), r = D(!1);
|
|
2666
|
+
return gt(async () => {
|
|
2667
|
+
s.get(), e.get();
|
|
2668
|
+
}), (n, l) => {
|
|
2669
|
+
const c = Ms, v = Ts, u = Y;
|
|
2670
|
+
return t(i).notifications.show ? (p(), f(u, {
|
|
2632
2671
|
key: 0,
|
|
2633
|
-
active:
|
|
2634
|
-
"prepend-icon": `svg:${t(
|
|
2672
|
+
active: r.value,
|
|
2673
|
+
"prepend-icon": `svg:${t(Jt)}`,
|
|
2635
2674
|
title: "Notifications",
|
|
2636
2675
|
link: ""
|
|
2637
2676
|
}, G({
|
|
2638
2677
|
default: a(() => [
|
|
2639
2678
|
o(v, {
|
|
2640
|
-
modelValue:
|
|
2641
|
-
"onUpdate:modelValue":
|
|
2679
|
+
modelValue: r.value,
|
|
2680
|
+
"onUpdate:modelValue": l[0] || (l[0] = (m) => r.value = m)
|
|
2642
2681
|
}, null, 8, ["modelValue"])
|
|
2643
2682
|
]),
|
|
2644
2683
|
_: 2
|
|
2645
2684
|
}, [
|
|
2646
|
-
t(
|
|
2685
|
+
t(s).unread.length ? {
|
|
2647
2686
|
name: "prepend",
|
|
2648
2687
|
fn: a(() => [
|
|
2649
2688
|
o(c, null, {
|
|
@@ -2655,60 +2694,60 @@ const Be = X("settings", () => {
|
|
|
2655
2694
|
]),
|
|
2656
2695
|
key: "0"
|
|
2657
2696
|
} : void 0
|
|
2658
|
-
]), 1032, ["active", "prepend-icon"])) :
|
|
2697
|
+
]), 1032, ["active", "prepend-icon"])) : $("", !0);
|
|
2659
2698
|
};
|
|
2660
2699
|
}
|
|
2661
|
-
}),
|
|
2700
|
+
}), Rs = /* @__PURE__ */ k({
|
|
2662
2701
|
__name: "VoDashboardListItem",
|
|
2663
|
-
setup(
|
|
2702
|
+
setup(d) {
|
|
2664
2703
|
const e = j();
|
|
2665
|
-
return (i,
|
|
2666
|
-
const
|
|
2667
|
-
return
|
|
2668
|
-
"prepend-icon": `svg:${t(
|
|
2704
|
+
return (i, s) => {
|
|
2705
|
+
const r = Y;
|
|
2706
|
+
return p(), f(r, {
|
|
2707
|
+
"prepend-icon": `svg:${t(Xt)}`,
|
|
2669
2708
|
title: "Dashboard",
|
|
2670
2709
|
to: "/user/dashboard",
|
|
2671
|
-
onClick:
|
|
2710
|
+
onClick: s[0] || (s[0] = (n) => t(e).isOpen = !1)
|
|
2672
2711
|
}, null, 8, ["prepend-icon"]);
|
|
2673
2712
|
};
|
|
2674
2713
|
}
|
|
2675
|
-
}),
|
|
2714
|
+
}), Hs = /* @__PURE__ */ k({
|
|
2676
2715
|
__name: "VoUserList",
|
|
2677
|
-
setup(
|
|
2716
|
+
setup(d) {
|
|
2678
2717
|
const e = F();
|
|
2679
|
-
return (i,
|
|
2680
|
-
const
|
|
2681
|
-
return
|
|
2718
|
+
return (i, s) => {
|
|
2719
|
+
const r = Rs, n = Ps, l = Vs, c = ys, v = ls, u = To, m = Bo;
|
|
2720
|
+
return p(), f(ee, {
|
|
2682
2721
|
density: "compact",
|
|
2683
2722
|
nav: "",
|
|
2684
2723
|
slim: ""
|
|
2685
2724
|
}, {
|
|
2686
2725
|
default: a(() => [
|
|
2687
|
-
o(l),
|
|
2688
|
-
o(s),
|
|
2689
2726
|
o(r),
|
|
2727
|
+
o(n),
|
|
2728
|
+
o(l),
|
|
2690
2729
|
o(c),
|
|
2691
|
-
t(e).user ? (
|
|
2730
|
+
t(e).user ? (p(), f(v, { key: 0 })) : $("", !0),
|
|
2692
2731
|
o(u),
|
|
2693
|
-
t(e).user ? (
|
|
2732
|
+
t(e).user ? (p(), f(m, { key: 1 })) : $("", !0)
|
|
2694
2733
|
]),
|
|
2695
2734
|
_: 1
|
|
2696
2735
|
});
|
|
2697
2736
|
};
|
|
2698
2737
|
}
|
|
2699
|
-
}),
|
|
2738
|
+
}), Es = { key: 0 }, Ws = { class: "d-flex align-center justify-center pa-1 ga-2" }, Gs = /* @__PURE__ */ k({
|
|
2700
2739
|
__name: "VoUserQuickActions",
|
|
2701
|
-
setup(
|
|
2740
|
+
setup(d) {
|
|
2702
2741
|
const e = O(), i = [
|
|
2703
2742
|
["M18.9112 5.03206L3.68692 8.88953C3.68692 8.88953 2.00252 6.21666 2 6.21428C2.02517 6.20794 18.6159 2.00476 18.6394 2L18.8944 4.8489L18.9095 5.01937L18.9112 5.03285V5.03206Z", 0.6],
|
|
2704
2743
|
["M19.4556 10.9994C19.4556 10.9994 7.06082 14.1417 7.05915 14.1386L5.3739 11.4641C5.41836 11.453 18.4582 8.14817 18.4993 8.13945L19.1838 7.9658L19.4556 10.9994Z", 1],
|
|
2705
2744
|
"M20 17.0652C19.9916 17.0675 14.6826 18.4123 14.6742 18.4147C14.6994 17.3633 14.3353 16.3579 13.712 15.5563L19.7274 14.0331L20 17.066V17.0652Z",
|
|
2706
2745
|
["M12.353 16.0368C9.07567 12.843 3.90082 17.0493 6.66818 20.5975C9.94136 24.3844 15.773 19.6984 12.353 16.0368ZM11.1267 19.4129C10.2224 20.7664 7.79139 20.1099 7.82746 18.4686C8.04976 15.4897 12.7112 16.8495 11.1267 19.4129Z", 0.6]
|
|
2707
2746
|
];
|
|
2708
|
-
return (
|
|
2747
|
+
return (s, r) => (p(), f(he, null, {
|
|
2709
2748
|
default: a(() => [
|
|
2710
|
-
t(e).quickbar ? (
|
|
2711
|
-
h("div",
|
|
2749
|
+
t(e).quickbar ? (p(), w("div", Es, [
|
|
2750
|
+
h("div", Ws, [
|
|
2712
2751
|
o(E, {
|
|
2713
2752
|
color: t(e).colors.one,
|
|
2714
2753
|
class: "text-caption",
|
|
@@ -2747,7 +2786,7 @@ const Be = X("settings", () => {
|
|
|
2747
2786
|
}, 8, ["color"]),
|
|
2748
2787
|
o(E, {
|
|
2749
2788
|
color: t(e).colors.one,
|
|
2750
|
-
icon: `svg:${t(
|
|
2789
|
+
icon: `svg:${t(Kt)}`,
|
|
2751
2790
|
class: "text-caption",
|
|
2752
2791
|
density: "comfortable",
|
|
2753
2792
|
href: "https://issues.vuetifyjs.com",
|
|
@@ -2764,15 +2803,15 @@ const Be = X("settings", () => {
|
|
|
2764
2803
|
_: 1
|
|
2765
2804
|
}, 8, ["color", "icon"])
|
|
2766
2805
|
])
|
|
2767
|
-
])) :
|
|
2806
|
+
])) : $("", !0)
|
|
2768
2807
|
]),
|
|
2769
2808
|
_: 1
|
|
2770
2809
|
}));
|
|
2771
2810
|
}
|
|
2772
|
-
}),
|
|
2811
|
+
}), qs = { class: "mb-2" }, Zs = { key: 0 }, Ys = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, Qs = { class: "text-h6" }, Js = /* @__PURE__ */ k({
|
|
2773
2812
|
__name: "VoUserAvatar",
|
|
2774
|
-
setup(
|
|
2775
|
-
const e = F(), i = O(),
|
|
2813
|
+
setup(d) {
|
|
2814
|
+
const e = F(), i = O(), s = D(!1), r = S(() => {
|
|
2776
2815
|
const c = [
|
|
2777
2816
|
"https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
2778
2817
|
"https://cdn.vuetifyjs.com/docs/images/avatars/grass.png",
|
|
@@ -2791,17 +2830,17 @@ const Be = X("settings", () => {
|
|
|
2791
2830
|
];
|
|
2792
2831
|
return e.user && c.unshift(e.user.picture), c;
|
|
2793
2832
|
});
|
|
2794
|
-
function
|
|
2833
|
+
function n(c) {
|
|
2795
2834
|
i.avatar = c;
|
|
2796
2835
|
}
|
|
2797
|
-
function
|
|
2798
|
-
e.isSubscriber && (
|
|
2836
|
+
function l() {
|
|
2837
|
+
e.isSubscriber && (s.value = !s.value);
|
|
2799
2838
|
}
|
|
2800
2839
|
return (c, v) => {
|
|
2801
2840
|
var u;
|
|
2802
|
-
return
|
|
2803
|
-
xe((
|
|
2804
|
-
class:
|
|
2841
|
+
return p(), w("div", null, [
|
|
2842
|
+
xe((p(), f(se, {
|
|
2843
|
+
class: bt([
|
|
2805
2844
|
"border-md border-opacity-100 border-surface-variant",
|
|
2806
2845
|
{
|
|
2807
2846
|
"cursor-pointer": t(e).isSubscriber
|
|
@@ -2810,14 +2849,14 @@ const Be = X("settings", () => {
|
|
|
2810
2849
|
color: "surface",
|
|
2811
2850
|
size: "72",
|
|
2812
2851
|
text: "Foobar",
|
|
2813
|
-
onClick: Te(
|
|
2852
|
+
onClick: Te(l, ["prevent", "stop"])
|
|
2814
2853
|
}, {
|
|
2815
2854
|
default: a(() => [
|
|
2816
|
-
t(e).user && t(i).avatar ? (
|
|
2855
|
+
t(e).user && t(i).avatar ? (p(), f(ge, {
|
|
2817
2856
|
key: 0,
|
|
2818
2857
|
src: t(i).avatar,
|
|
2819
2858
|
alt: "User avatar"
|
|
2820
|
-
}, null, 8, ["src"])) : (
|
|
2859
|
+
}, null, 8, ["src"])) : (p(), f(A, {
|
|
2821
2860
|
key: 1,
|
|
2822
2861
|
class: "mt-1",
|
|
2823
2862
|
icon: "$vuetify",
|
|
@@ -2826,28 +2865,28 @@ const Be = X("settings", () => {
|
|
|
2826
2865
|
]),
|
|
2827
2866
|
_: 1
|
|
2828
2867
|
}, 8, ["class"])), [
|
|
2829
|
-
[
|
|
2868
|
+
[go, t(e).isSubscriber]
|
|
2830
2869
|
]),
|
|
2831
|
-
h("div",
|
|
2870
|
+
h("div", qs, [
|
|
2832
2871
|
o(he, null, {
|
|
2833
2872
|
default: a(() => [
|
|
2834
|
-
|
|
2835
|
-
o(
|
|
2873
|
+
s.value ? (p(), w("div", Zs, [
|
|
2874
|
+
o(P, {
|
|
2836
2875
|
class: "pt-6 pb-1",
|
|
2837
2876
|
rounded: "0",
|
|
2838
2877
|
flat: ""
|
|
2839
2878
|
}, {
|
|
2840
2879
|
default: a(() => [
|
|
2841
|
-
h("div",
|
|
2842
|
-
(
|
|
2880
|
+
h("div", Ys, [
|
|
2881
|
+
(p(!0), w(U, null, oe(r.value, (m, b) => (p(), f(E, {
|
|
2843
2882
|
key: b,
|
|
2844
2883
|
active: t(i).avatar === m,
|
|
2845
2884
|
variant: "flat",
|
|
2846
2885
|
icon: "",
|
|
2847
|
-
onClick: (V) =>
|
|
2886
|
+
onClick: (V) => n(m)
|
|
2848
2887
|
}, {
|
|
2849
2888
|
default: a(() => [
|
|
2850
|
-
o(
|
|
2889
|
+
o(se, {
|
|
2851
2890
|
image: m,
|
|
2852
2891
|
eager: ""
|
|
2853
2892
|
}, null, 8, ["image"])
|
|
@@ -2858,23 +2897,23 @@ const Be = X("settings", () => {
|
|
|
2858
2897
|
]),
|
|
2859
2898
|
_: 1
|
|
2860
2899
|
})
|
|
2861
|
-
])) :
|
|
2900
|
+
])) : $("", !0)
|
|
2862
2901
|
]),
|
|
2863
2902
|
_: 1
|
|
2864
2903
|
})
|
|
2865
2904
|
]),
|
|
2866
|
-
h("div",
|
|
2905
|
+
h("div", Qs, I(((u = t(e).user) == null ? void 0 : u.name) ?? "Guest"), 1)
|
|
2867
2906
|
]);
|
|
2868
2907
|
};
|
|
2869
2908
|
}
|
|
2870
|
-
}),
|
|
2909
|
+
}), Xs = /* @__PURE__ */ k({
|
|
2871
2910
|
__name: "VoUserBadges",
|
|
2872
|
-
setup(
|
|
2873
|
-
const e = F(), i = j(),
|
|
2874
|
-
var
|
|
2875
|
-
return i.github || i.discord || i.isSubscriber || ((
|
|
2911
|
+
setup(d) {
|
|
2912
|
+
const e = F(), i = j(), s = S(() => {
|
|
2913
|
+
var r;
|
|
2914
|
+
return i.github || i.discord || i.isSubscriber || ((r = e.user) == null ? void 0 : r.isAdmin);
|
|
2876
2915
|
});
|
|
2877
|
-
return (
|
|
2916
|
+
return (r, n) => s.value ? (p(), f(qe, {
|
|
2878
2917
|
key: 0,
|
|
2879
2918
|
class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
|
|
2880
2919
|
color: "rgba(0,0,0,.54)",
|
|
@@ -2882,79 +2921,79 @@ const Be = X("settings", () => {
|
|
|
2882
2921
|
style: { left: "0" }
|
|
2883
2922
|
}, {
|
|
2884
2923
|
default: a(() => {
|
|
2885
|
-
var
|
|
2924
|
+
var l;
|
|
2886
2925
|
return [
|
|
2887
|
-
(
|
|
2926
|
+
(l = t(e).user) != null && l.isAdmin ? (p(), f(J, {
|
|
2888
2927
|
key: 0,
|
|
2889
2928
|
location: "bottom",
|
|
2890
2929
|
text: "Vuetify Administrator"
|
|
2891
2930
|
}, {
|
|
2892
2931
|
activator: a(({ props: c }) => [
|
|
2893
|
-
o(A,
|
|
2932
|
+
o(A, R({
|
|
2894
2933
|
color: "blue",
|
|
2895
2934
|
icon: "$vuetify"
|
|
2896
2935
|
}, c, { size: "16" }), null, 16)
|
|
2897
2936
|
]),
|
|
2898
2937
|
_: 1
|
|
2899
|
-
})) :
|
|
2900
|
-
t(i).isSubscriber ? (
|
|
2938
|
+
})) : $("", !0),
|
|
2939
|
+
t(i).isSubscriber ? (p(), f(J, {
|
|
2901
2940
|
key: 1,
|
|
2902
2941
|
location: "bottom",
|
|
2903
2942
|
text: "Vuetify One Subscriber"
|
|
2904
2943
|
}, {
|
|
2905
2944
|
activator: a(({ props: c }) => [
|
|
2906
|
-
o(A,
|
|
2907
|
-
icon: `svg:${t(
|
|
2945
|
+
o(A, R({
|
|
2946
|
+
icon: `svg:${t(eo)}`,
|
|
2908
2947
|
color: "amber-darken-2"
|
|
2909
2948
|
}, c, { size: "16" }), null, 16, ["icon"])
|
|
2910
2949
|
]),
|
|
2911
2950
|
_: 1
|
|
2912
|
-
})) :
|
|
2913
|
-
t(i).github ? (
|
|
2951
|
+
})) : $("", !0),
|
|
2952
|
+
t(i).github ? (p(), f(J, {
|
|
2914
2953
|
key: 2,
|
|
2915
2954
|
location: "bottom",
|
|
2916
2955
|
text: "GitHub Sponsor"
|
|
2917
2956
|
}, {
|
|
2918
2957
|
activator: a(({ props: c }) => [
|
|
2919
|
-
o(A,
|
|
2958
|
+
o(A, R({
|
|
2920
2959
|
icon: `svg:${t(Ee)}`,
|
|
2921
2960
|
color: "white"
|
|
2922
2961
|
}, c, { size: "16" }), null, 16, ["icon"])
|
|
2923
2962
|
]),
|
|
2924
2963
|
_: 1
|
|
2925
|
-
})) :
|
|
2926
|
-
t(i).discord ? (
|
|
2964
|
+
})) : $("", !0),
|
|
2965
|
+
t(i).discord ? (p(), f(J, {
|
|
2927
2966
|
key: 3,
|
|
2928
2967
|
location: "bottom",
|
|
2929
2968
|
text: "Discord Subscriber"
|
|
2930
2969
|
}, {
|
|
2931
2970
|
activator: a(({ props: c }) => [
|
|
2932
|
-
o(A,
|
|
2971
|
+
o(A, R({
|
|
2933
2972
|
icon: `svg:${t(He)}`,
|
|
2934
2973
|
color: "white"
|
|
2935
2974
|
}, c, { size: "16" }), null, 16, ["icon"])
|
|
2936
2975
|
]),
|
|
2937
2976
|
_: 1
|
|
2938
|
-
})) :
|
|
2977
|
+
})) : $("", !0)
|
|
2939
2978
|
];
|
|
2940
2979
|
}),
|
|
2941
2980
|
_: 1
|
|
2942
|
-
})) :
|
|
2981
|
+
})) : $("", !0);
|
|
2943
2982
|
}
|
|
2944
|
-
}),
|
|
2983
|
+
}), Ks = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, en = {
|
|
2945
2984
|
key: "reset",
|
|
2946
2985
|
class: "align-self-end"
|
|
2947
|
-
},
|
|
2986
|
+
}, tn = /* @__PURE__ */ k({
|
|
2948
2987
|
__name: "VoUserColors",
|
|
2949
|
-
setup(
|
|
2950
|
-
const e = F(), i = O(),
|
|
2951
|
-
function
|
|
2988
|
+
setup(d) {
|
|
2989
|
+
const e = F(), i = O(), s = D(!1);
|
|
2990
|
+
function r() {
|
|
2952
2991
|
i.colors.one = "surface-light";
|
|
2953
2992
|
}
|
|
2954
|
-
return (
|
|
2955
|
-
const c =
|
|
2956
|
-
return
|
|
2957
|
-
o(
|
|
2993
|
+
return (n, l) => {
|
|
2994
|
+
const c = Xs, v = ne;
|
|
2995
|
+
return p(), w(U, null, [
|
|
2996
|
+
o(ge, {
|
|
2958
2997
|
color: t(e).user ? t(i).colors.one : "surface-light",
|
|
2959
2998
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
2960
2999
|
height: "88",
|
|
@@ -2963,46 +3002,46 @@ const Be = X("settings", () => {
|
|
|
2963
3002
|
flat: ""
|
|
2964
3003
|
}, {
|
|
2965
3004
|
default: a(() => [
|
|
2966
|
-
h("div",
|
|
3005
|
+
h("div", Ks, [
|
|
2967
3006
|
o(c),
|
|
2968
|
-
t(e).isSubscriber ? (
|
|
3007
|
+
t(e).isSubscriber ? (p(), f(v, {
|
|
2969
3008
|
key: 0,
|
|
2970
|
-
active:
|
|
2971
|
-
icon:
|
|
2972
|
-
variant:
|
|
3009
|
+
active: s.value,
|
|
3010
|
+
icon: s.value ? `svg:${t(re)}` : "$edit",
|
|
3011
|
+
variant: s.value ? "text" : "plain",
|
|
2973
3012
|
class: "align-self-end",
|
|
2974
3013
|
color: "inherit",
|
|
2975
3014
|
density: "comfortable",
|
|
2976
3015
|
title: "Edit One Header Color",
|
|
2977
|
-
onClick:
|
|
3016
|
+
onClick: l[0] || (l[0] = (u) => s.value = !s.value)
|
|
2978
3017
|
}, {
|
|
2979
3018
|
default: a(() => [
|
|
2980
|
-
o(
|
|
3019
|
+
o(we, { "leave-absolute": "" }, {
|
|
2981
3020
|
default: a(() => [
|
|
2982
|
-
(
|
|
2983
|
-
key: String(
|
|
3021
|
+
(p(), f(A, {
|
|
3022
|
+
key: String(s.value)
|
|
2984
3023
|
}))
|
|
2985
3024
|
]),
|
|
2986
3025
|
_: 1
|
|
2987
3026
|
})
|
|
2988
3027
|
]),
|
|
2989
3028
|
_: 1
|
|
2990
|
-
}, 8, ["active", "icon", "variant"])) :
|
|
2991
|
-
o(
|
|
3029
|
+
}, 8, ["active", "icon", "variant"])) : $("", !0),
|
|
3030
|
+
o(co, null, {
|
|
2992
3031
|
default: a(() => [
|
|
2993
|
-
xe(h("div",
|
|
3032
|
+
xe(h("div", en, [
|
|
2994
3033
|
o(v, {
|
|
2995
3034
|
disabled: t(i).colors.one === "surface-light",
|
|
2996
|
-
icon: `svg:${t(
|
|
3035
|
+
icon: `svg:${t(to)}`,
|
|
2997
3036
|
class: "ms-2 me-1",
|
|
2998
3037
|
color: "inherit",
|
|
2999
3038
|
density: "comfortable",
|
|
3000
3039
|
title: "Revert to Default",
|
|
3001
3040
|
variant: "text",
|
|
3002
|
-
onClick:
|
|
3041
|
+
onClick: r
|
|
3003
3042
|
}, null, 8, ["disabled", "icon"])
|
|
3004
3043
|
], 512), [
|
|
3005
|
-
[
|
|
3044
|
+
[Pe, s.value]
|
|
3006
3045
|
])
|
|
3007
3046
|
]),
|
|
3008
3047
|
_: 1
|
|
@@ -3013,7 +3052,7 @@ const Be = X("settings", () => {
|
|
|
3013
3052
|
}, 8, ["color"]),
|
|
3014
3053
|
o(he, null, {
|
|
3015
3054
|
default: a(() => [
|
|
3016
|
-
|
|
3055
|
+
s.value ? (p(), f(bo, {
|
|
3017
3056
|
key: 0,
|
|
3018
3057
|
"model-value": t(i).colors.one !== "surface-light" ? t(i).colors.one : void 0,
|
|
3019
3058
|
elevation: "0",
|
|
@@ -3025,28 +3064,28 @@ const Be = X("settings", () => {
|
|
|
3025
3064
|
"hide-inputs": "",
|
|
3026
3065
|
"hide-sliders": "",
|
|
3027
3066
|
"show-swatches": "",
|
|
3028
|
-
"onUpdate:modelValue":
|
|
3029
|
-
}, null, 8, ["model-value"])) :
|
|
3067
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => t(i).colors.one = u)
|
|
3068
|
+
}, null, 8, ["model-value"])) : $("", !0)
|
|
3030
3069
|
]),
|
|
3031
3070
|
_: 1
|
|
3032
3071
|
})
|
|
3033
3072
|
], 64);
|
|
3034
3073
|
};
|
|
3035
3074
|
}
|
|
3036
|
-
}),
|
|
3075
|
+
}), on = { class: "text-center mt-n9 mb-4" }, sn = /* @__PURE__ */ k({
|
|
3037
3076
|
__name: "VoUserMenu",
|
|
3038
|
-
setup(
|
|
3039
|
-
const e = Ne(), i = j(),
|
|
3077
|
+
setup(d) {
|
|
3078
|
+
const e = Ne(), i = j(), s = H();
|
|
3040
3079
|
return N(() => e.banner, async () => {
|
|
3041
|
-
var
|
|
3042
|
-
await new Promise((
|
|
3043
|
-
}, { flush: "pre" }), (
|
|
3044
|
-
const
|
|
3045
|
-
return
|
|
3080
|
+
var r, n;
|
|
3081
|
+
await new Promise((l) => setTimeout(l, 300)), i.isOpen && ((n = (r = s.value) == null ? void 0 : r.updateLocation) == null || n.call(r));
|
|
3082
|
+
}, { flush: "pre" }), (r, n) => {
|
|
3083
|
+
const l = tn, c = Js, v = Gs, u = Hs, m = dt;
|
|
3084
|
+
return p(), f(t(yo), {
|
|
3046
3085
|
ref_key: "menu",
|
|
3047
|
-
ref:
|
|
3086
|
+
ref: s,
|
|
3048
3087
|
modelValue: t(i).isOpen,
|
|
3049
|
-
"onUpdate:modelValue":
|
|
3088
|
+
"onUpdate:modelValue": n[0] || (n[0] = (b) => t(i).isOpen = b),
|
|
3050
3089
|
"close-on-click": !1,
|
|
3051
3090
|
"close-on-content-click": !1,
|
|
3052
3091
|
activator: "parent",
|
|
@@ -3054,14 +3093,14 @@ const Be = X("settings", () => {
|
|
|
3054
3093
|
eager: ""
|
|
3055
3094
|
}, {
|
|
3056
3095
|
default: a(() => [
|
|
3057
|
-
o(
|
|
3096
|
+
o(P, {
|
|
3058
3097
|
rounded: "lg",
|
|
3059
3098
|
width: "280",
|
|
3060
3099
|
border: ""
|
|
3061
3100
|
}, {
|
|
3062
3101
|
default: a(() => [
|
|
3063
|
-
o(
|
|
3064
|
-
h("div",
|
|
3102
|
+
o(l),
|
|
3103
|
+
h("div", on, [
|
|
3065
3104
|
o(c),
|
|
3066
3105
|
o(v)
|
|
3067
3106
|
]),
|
|
@@ -3077,27 +3116,27 @@ const Be = X("settings", () => {
|
|
|
3077
3116
|
}, 8, ["modelValue"]);
|
|
3078
3117
|
};
|
|
3079
3118
|
}
|
|
3080
|
-
}),
|
|
3119
|
+
}), nn = { key: 0 }, an = /* @__PURE__ */ k({
|
|
3081
3120
|
__name: "VoAuthBtn",
|
|
3082
3121
|
props: {
|
|
3083
3122
|
external: Boolean
|
|
3084
3123
|
},
|
|
3085
|
-
setup(
|
|
3086
|
-
const e = F(), i = j(),
|
|
3124
|
+
setup(d) {
|
|
3125
|
+
const e = F(), i = j(), s = O(), { lgAndUp: r, mdAndDown: n } = le(), l = S(() => i.isOpen || !e.user ? s.colors.one === "surface-light" ? "primary" : s.colors.one : "surface-light");
|
|
3087
3126
|
return (c, v) => {
|
|
3088
|
-
const u =
|
|
3089
|
-
return
|
|
3127
|
+
const u = sn, m = ne, b = Do, V = ut;
|
|
3128
|
+
return p(), w(U, null, [
|
|
3090
3129
|
o(b, {
|
|
3091
3130
|
"offset-y": t(e).user ? 5 : 0
|
|
3092
3131
|
}, {
|
|
3093
3132
|
default: a(() => [
|
|
3094
|
-
o(m,
|
|
3095
|
-
[`${t(
|
|
3133
|
+
o(m, R({
|
|
3134
|
+
[`${t(r) ? "append-" : ""}icon`]: t(e).user ? void 0 : `svg:${t(oo)}`
|
|
3096
3135
|
}, {
|
|
3097
|
-
color:
|
|
3136
|
+
color: t(i).isOpen ? l.value : "surface-variant",
|
|
3098
3137
|
icon: t(e).user || t(e).isLoading,
|
|
3099
3138
|
loading: t(e).isLoading,
|
|
3100
|
-
rounded: t(
|
|
3139
|
+
rounded: t(n),
|
|
3101
3140
|
variant: t(e).user ? "outlined" : "flat",
|
|
3102
3141
|
class: "vo-auth-btn",
|
|
3103
3142
|
size: "default",
|
|
@@ -3105,11 +3144,11 @@ const Be = X("settings", () => {
|
|
|
3105
3144
|
active: ""
|
|
3106
3145
|
}), {
|
|
3107
3146
|
default: a(() => [
|
|
3108
|
-
t(e).user ?
|
|
3109
|
-
t(e).user ? (
|
|
3147
|
+
t(e).user ? $("", !0) : (p(), w("span", nn, "Login")),
|
|
3148
|
+
t(e).user ? (p(), f(se, {
|
|
3110
3149
|
key: 1,
|
|
3111
|
-
image: t(
|
|
3112
|
-
}, null, 8, ["image"])) :
|
|
3150
|
+
image: t(s).avatar || t(e).user.picture || ""
|
|
3151
|
+
}, null, 8, ["image"])) : $("", !0),
|
|
3113
3152
|
o(u)
|
|
3114
3153
|
]),
|
|
3115
3154
|
_: 1
|
|
@@ -3121,80 +3160,80 @@ const Be = X("settings", () => {
|
|
|
3121
3160
|
], 64);
|
|
3122
3161
|
};
|
|
3123
3162
|
}
|
|
3124
|
-
}),
|
|
3163
|
+
}), rn = /* @__PURE__ */ k({
|
|
3125
3164
|
__name: "VoNotificationsBanner",
|
|
3126
|
-
setup(
|
|
3127
|
-
const { mdAndUp: e } =
|
|
3165
|
+
setup(d) {
|
|
3166
|
+
const { mdAndUp: e } = le(), i = Re(), s = O(), r = Ne(), n = S(() => r.banner), l = S(() => {
|
|
3128
3167
|
var b, V;
|
|
3129
|
-
return ((b =
|
|
3130
|
-
}), c =
|
|
3168
|
+
return ((b = n.value) == null ? void 0 : b.metadata.height) || ((V = n.value) != null && V.metadata.subtext ? 88 : 48);
|
|
3169
|
+
}), c = S(() => !n.value || !s.notifications.last.banner.includes(n.value.slug));
|
|
3131
3170
|
function v() {
|
|
3132
|
-
|
|
3171
|
+
n.value && s.notifications.last.banner.push(n.value.slug);
|
|
3133
3172
|
}
|
|
3134
3173
|
async function u(b) {
|
|
3135
3174
|
var _;
|
|
3136
|
-
if (!
|
|
3175
|
+
if (!n.value)
|
|
3137
3176
|
return;
|
|
3138
3177
|
v(), await fe();
|
|
3139
|
-
const V = ((_ =
|
|
3178
|
+
const V = ((_ = n.value) == null ? void 0 : _.metadata) ?? { link: "" };
|
|
3140
3179
|
if (V.link.indexOf("?one=") === -1)
|
|
3141
3180
|
return;
|
|
3142
3181
|
b.preventDefault(), b.stopPropagation();
|
|
3143
|
-
const
|
|
3144
|
-
i.push({ query: { one:
|
|
3182
|
+
const L = V.link.split("?one=")[1];
|
|
3183
|
+
i.push({ query: { one: L } });
|
|
3145
3184
|
}
|
|
3146
|
-
const m =
|
|
3147
|
-
var V,
|
|
3148
|
-
const b = ((V =
|
|
3185
|
+
const m = S(() => {
|
|
3186
|
+
var V, L;
|
|
3187
|
+
const b = ((V = n.value) == null ? void 0 : V.metadata) ?? { link: "" };
|
|
3149
3188
|
return {
|
|
3150
3189
|
href: b.link.startsWith("http") ? b.link : void 0,
|
|
3151
3190
|
target: b.link.startsWith("http") ? "_blank" : void 0,
|
|
3152
3191
|
to: b.link.startsWith("http") ? void 0 : b.link,
|
|
3153
|
-
...(
|
|
3192
|
+
...(L = n.value) == null ? void 0 : L.metadata.attributes,
|
|
3154
3193
|
onClick: u
|
|
3155
3194
|
};
|
|
3156
3195
|
});
|
|
3157
3196
|
return (b, V) => {
|
|
3158
|
-
var
|
|
3159
|
-
return
|
|
3197
|
+
var L;
|
|
3198
|
+
return n.value ? (p(), f(Vo, {
|
|
3160
3199
|
key: 0,
|
|
3161
|
-
color:
|
|
3162
|
-
height:
|
|
3163
|
-
image: (
|
|
3200
|
+
color: n.value.metadata.color,
|
|
3201
|
+
height: l.value,
|
|
3202
|
+
image: (L = n.value.metadata.images.bg) == null ? void 0 : L.url,
|
|
3164
3203
|
"model-value": c.value,
|
|
3165
3204
|
flat: ""
|
|
3166
3205
|
}, {
|
|
3167
3206
|
default: a(() => [
|
|
3168
|
-
o(_e,
|
|
3207
|
+
o(_e, R(m.value, {
|
|
3169
3208
|
active: !1,
|
|
3170
3209
|
class: "flex-grow-1",
|
|
3171
3210
|
lines: "two",
|
|
3172
3211
|
onClick: u
|
|
3173
3212
|
}), G({
|
|
3174
3213
|
append: a(() => [
|
|
3175
|
-
t(e) &&
|
|
3214
|
+
t(e) && n.value.metadata.link && n.value.metadata.link_text ? (p(), f(Ce, { key: 0 }, {
|
|
3176
3215
|
default: a(({ isHovering: _, props: y }) => [
|
|
3177
|
-
o(E,
|
|
3216
|
+
o(E, R({
|
|
3178
3217
|
...y,
|
|
3179
3218
|
...m.value
|
|
3180
3219
|
}, {
|
|
3181
3220
|
"append-icon": `svg:${t(ve)}`,
|
|
3182
|
-
color:
|
|
3221
|
+
color: n.value.metadata.link_color,
|
|
3183
3222
|
elevation: _ ? 8 : 0,
|
|
3184
|
-
title:
|
|
3223
|
+
title: n.value.metadata.link_text,
|
|
3185
3224
|
class: "text-none me-2",
|
|
3186
3225
|
variant: "elevated",
|
|
3187
3226
|
onClick: u
|
|
3188
3227
|
}), {
|
|
3189
3228
|
default: a(() => [
|
|
3190
|
-
B(I(
|
|
3229
|
+
B(I(n.value.metadata.link_text), 1)
|
|
3191
3230
|
]),
|
|
3192
3231
|
_: 2
|
|
3193
3232
|
}, 1040, ["append-icon", "color", "elevation", "title"])
|
|
3194
3233
|
]),
|
|
3195
3234
|
_: 1
|
|
3196
|
-
})) :
|
|
3197
|
-
|
|
3235
|
+
})) : $("", !0),
|
|
3236
|
+
n.value.metadata.closable ? (p(), f(E, {
|
|
3198
3237
|
key: 1,
|
|
3199
3238
|
class: "ms-6 me-2",
|
|
3200
3239
|
density: "comfortable",
|
|
@@ -3202,32 +3241,32 @@ const Be = X("settings", () => {
|
|
|
3202
3241
|
size: "small",
|
|
3203
3242
|
variant: "plain",
|
|
3204
3243
|
onClick: Te(v, ["prevent", "stop"])
|
|
3205
|
-
})) :
|
|
3244
|
+
})) : $("", !0)
|
|
3206
3245
|
]),
|
|
3207
3246
|
default: a(() => [
|
|
3208
|
-
|
|
3247
|
+
n.value.metadata.text ? (p(), f(ot, {
|
|
3209
3248
|
key: 0,
|
|
3210
3249
|
class: "text-subtitle-2 text-md-subtitle-1 font-weight-medium"
|
|
3211
3250
|
}, {
|
|
3212
3251
|
default: a(() => [
|
|
3213
|
-
B(I(
|
|
3252
|
+
B(I(n.value.metadata.text), 1)
|
|
3214
3253
|
]),
|
|
3215
3254
|
_: 1
|
|
3216
|
-
})) :
|
|
3217
|
-
|
|
3255
|
+
})) : $("", !0),
|
|
3256
|
+
n.value.metadata.subtext ? (p(), f(ao, { key: 1 }, {
|
|
3218
3257
|
default: a(() => [
|
|
3219
|
-
B(I(
|
|
3258
|
+
B(I(n.value.metadata.subtext), 1)
|
|
3220
3259
|
]),
|
|
3221
3260
|
_: 1
|
|
3222
|
-
})) :
|
|
3261
|
+
})) : $("", !0)
|
|
3223
3262
|
]),
|
|
3224
3263
|
_: 2
|
|
3225
3264
|
}, [
|
|
3226
|
-
|
|
3265
|
+
n.value.metadata.images.logo ? {
|
|
3227
3266
|
name: "prepend",
|
|
3228
3267
|
fn: a(() => [
|
|
3229
|
-
o(
|
|
3230
|
-
image:
|
|
3268
|
+
o(se, {
|
|
3269
|
+
image: n.value.metadata.images.logo.url,
|
|
3231
3270
|
size: "x-large"
|
|
3232
3271
|
}, null, 8, ["image"])
|
|
3233
3272
|
]),
|
|
@@ -3236,15 +3275,21 @@ const Be = X("settings", () => {
|
|
|
3236
3275
|
]), 1040)
|
|
3237
3276
|
]),
|
|
3238
3277
|
_: 1
|
|
3239
|
-
}, 8, ["color", "height", "image", "model-value"])) :
|
|
3278
|
+
}, 8, ["color", "height", "image", "model-value"])) : $("", !0);
|
|
3240
3279
|
};
|
|
3241
3280
|
}
|
|
3242
|
-
}),
|
|
3281
|
+
}), ln = (d) => (yt("data-v-40687c9d"), d = d(), Vt(), d), cn = {
|
|
3282
|
+
key: 0,
|
|
3283
|
+
class: "v-footer__image"
|
|
3284
|
+
}, un = ["href", "title"], dn = {
|
|
3243
3285
|
class: "text-caption text-disabled",
|
|
3244
3286
|
style: { position: "absolute", right: "16px" }
|
|
3245
|
-
},
|
|
3287
|
+
}, pn = /* @__PURE__ */ ln(() => /* @__PURE__ */ h("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), mn = /* @__PURE__ */ k({
|
|
3246
3288
|
__name: "VoFooter",
|
|
3247
|
-
|
|
3289
|
+
props: {
|
|
3290
|
+
image: {}
|
|
3291
|
+
},
|
|
3292
|
+
setup(d) {
|
|
3248
3293
|
const e = [
|
|
3249
3294
|
{
|
|
3250
3295
|
title: "Vuetify Documentation",
|
|
@@ -3253,7 +3298,7 @@ const Be = X("settings", () => {
|
|
|
3253
3298
|
},
|
|
3254
3299
|
{
|
|
3255
3300
|
title: "Vuetify Support",
|
|
3256
|
-
icon: `svg:${
|
|
3301
|
+
icon: `svg:${so}`,
|
|
3257
3302
|
href: "https://support.vuetifyjs.com/"
|
|
3258
3303
|
},
|
|
3259
3304
|
{
|
|
@@ -3277,142 +3322,150 @@ const Be = X("settings", () => {
|
|
|
3277
3322
|
href: "https://reddit.com/r/vuetifyjs"
|
|
3278
3323
|
}
|
|
3279
3324
|
];
|
|
3280
|
-
return (i,
|
|
3325
|
+
return (i, s) => (p(), f(ko, {
|
|
3281
3326
|
class: "vo-footer",
|
|
3282
3327
|
height: "40"
|
|
3283
3328
|
}, {
|
|
3284
3329
|
default: a(() => [
|
|
3285
|
-
|
|
3286
|
-
key:
|
|
3287
|
-
|
|
3288
|
-
|
|
3330
|
+
i.image || i.$slots.image ? (p(), w("div", cn, [
|
|
3331
|
+
i.$slots.image ? M(i.$slots, "image", { key: 0 }, void 0, !0) : (p(), f(ge, {
|
|
3332
|
+
key: 1,
|
|
3333
|
+
src: i.image,
|
|
3334
|
+
position: "left",
|
|
3335
|
+
cover: ""
|
|
3336
|
+
}, null, 8, ["src"]))
|
|
3337
|
+
])) : $("", !0),
|
|
3338
|
+
(p(), w(U, null, oe(e, (r) => h("a", {
|
|
3339
|
+
key: r.title,
|
|
3340
|
+
href: r.href,
|
|
3341
|
+
title: r.title,
|
|
3289
3342
|
class: "d-inline-block mx-2 social-link",
|
|
3290
3343
|
rel: "noopener noreferrer",
|
|
3291
3344
|
target: "_blank"
|
|
3292
3345
|
}, [
|
|
3293
3346
|
o(A, {
|
|
3294
|
-
icon:
|
|
3295
|
-
size:
|
|
3347
|
+
icon: r.icon,
|
|
3348
|
+
size: r.icon === "$vuetify" ? 24 : 16
|
|
3296
3349
|
}, null, 8, ["icon", "size"])
|
|
3297
|
-
], 8,
|
|
3298
|
-
h("div",
|
|
3350
|
+
], 8, un)), 64)),
|
|
3351
|
+
h("div", dn, [
|
|
3299
3352
|
B(" © 2016-" + I((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
|
|
3300
|
-
|
|
3353
|
+
pn
|
|
3301
3354
|
])
|
|
3302
3355
|
]),
|
|
3303
|
-
_:
|
|
3356
|
+
_: 3
|
|
3304
3357
|
}));
|
|
3305
3358
|
}
|
|
3306
|
-
}),
|
|
3307
|
-
const i =
|
|
3308
|
-
for (const [
|
|
3309
|
-
i[
|
|
3359
|
+
}), fn = (d, e) => {
|
|
3360
|
+
const i = d.__vccOpts || d;
|
|
3361
|
+
for (const [s, r] of e)
|
|
3362
|
+
i[s] = r;
|
|
3310
3363
|
return i;
|
|
3311
|
-
},
|
|
3312
|
-
const
|
|
3313
|
-
N(
|
|
3314
|
-
window.clearTimeout(
|
|
3315
|
-
!
|
|
3364
|
+
}, vn = /* @__PURE__ */ fn(mn, [["__scopeId", "data-v-40687c9d"]]), oa = X("bins", () => {
|
|
3365
|
+
const d = F(), e = be(), i = H([]), s = H(), r = D(!1), n = D(-1), l = S(() => !d.user || !s.value ? !1 : d.user.id === s.value.owner.id), c = S(() => i.value.filter((y) => y.favorite)), v = S(() => i.value.filter((y) => y.pinned));
|
|
3366
|
+
N(s, () => {
|
|
3367
|
+
window.clearTimeout(n.value), n.value = window.setTimeout(() => {
|
|
3368
|
+
!s.value || !l.value || V(s.value, s.value.id);
|
|
3316
3369
|
}, 100);
|
|
3317
3370
|
}, { deep: !0 });
|
|
3318
3371
|
async function u() {
|
|
3319
3372
|
try {
|
|
3320
|
-
|
|
3373
|
+
r.value = !0;
|
|
3321
3374
|
const y = await e.get("/one/bins");
|
|
3322
3375
|
i.value = y.bins;
|
|
3323
3376
|
} catch {
|
|
3324
3377
|
} finally {
|
|
3325
|
-
|
|
3378
|
+
r.value = !1;
|
|
3326
3379
|
}
|
|
3327
3380
|
return i.value;
|
|
3328
3381
|
}
|
|
3329
3382
|
async function m(y) {
|
|
3330
3383
|
try {
|
|
3331
|
-
|
|
3384
|
+
r.value = !0, await e.delete(`/one/bins/${y}`), i.value = i.value.filter((x) => x.id !== y);
|
|
3332
3385
|
} catch {
|
|
3333
3386
|
} finally {
|
|
3334
|
-
|
|
3387
|
+
r.value = !1;
|
|
3335
3388
|
}
|
|
3336
3389
|
return !0;
|
|
3337
3390
|
}
|
|
3338
3391
|
async function b(y) {
|
|
3339
3392
|
try {
|
|
3340
|
-
|
|
3341
|
-
const
|
|
3342
|
-
return i.value.push(
|
|
3393
|
+
r.value = !0;
|
|
3394
|
+
const x = await e.post("/one/bins", { bin: y });
|
|
3395
|
+
return i.value.push(x.bin), s.value = x.bin, x;
|
|
3343
3396
|
} catch {
|
|
3344
3397
|
} finally {
|
|
3345
|
-
|
|
3398
|
+
r.value = !1;
|
|
3346
3399
|
}
|
|
3347
3400
|
return { bin: y };
|
|
3348
3401
|
}
|
|
3349
|
-
async function V(y,
|
|
3402
|
+
async function V(y, x) {
|
|
3350
3403
|
try {
|
|
3351
|
-
|
|
3352
|
-
const z = await e.post(`/one/bins/${
|
|
3404
|
+
r.value = !0;
|
|
3405
|
+
const z = await e.post(`/one/bins/${x}`, { bin: y }), T = i.value.findIndex((te) => te.id === x);
|
|
3353
3406
|
i.value.splice(T, 1, z.bin);
|
|
3354
3407
|
} catch {
|
|
3355
3408
|
} finally {
|
|
3356
|
-
|
|
3409
|
+
r.value = !1;
|
|
3357
3410
|
}
|
|
3358
3411
|
return { bin: y };
|
|
3359
3412
|
}
|
|
3360
|
-
async function
|
|
3413
|
+
async function L(y, x) {
|
|
3361
3414
|
try {
|
|
3362
|
-
|
|
3363
|
-
const z =
|
|
3364
|
-
|
|
3415
|
+
r.value = !0;
|
|
3416
|
+
const z = x ? await V(y, x) : await b(y);
|
|
3417
|
+
s.value = z.bin;
|
|
3365
3418
|
} catch {
|
|
3366
3419
|
} finally {
|
|
3367
|
-
|
|
3420
|
+
r.value = !1;
|
|
3368
3421
|
}
|
|
3369
3422
|
return { bin: y };
|
|
3370
3423
|
}
|
|
3371
3424
|
async function _(y) {
|
|
3372
3425
|
try {
|
|
3373
|
-
|
|
3374
|
-
const
|
|
3375
|
-
|
|
3426
|
+
r.value = !0;
|
|
3427
|
+
const x = await e.get(`/one/bins/${y}`);
|
|
3428
|
+
s.value = x.bin;
|
|
3376
3429
|
} catch {
|
|
3377
3430
|
} finally {
|
|
3378
|
-
|
|
3431
|
+
r.value = !1;
|
|
3379
3432
|
}
|
|
3380
|
-
return { bin:
|
|
3433
|
+
return { bin: s.value };
|
|
3381
3434
|
}
|
|
3382
3435
|
return {
|
|
3383
|
-
isLoading:
|
|
3384
|
-
isOwner:
|
|
3436
|
+
isLoading: r,
|
|
3437
|
+
isOwner: l,
|
|
3385
3438
|
pinned: v,
|
|
3386
3439
|
favorites: c,
|
|
3387
3440
|
all: i,
|
|
3388
3441
|
create: b,
|
|
3389
3442
|
delete: m,
|
|
3390
|
-
current:
|
|
3443
|
+
current: s,
|
|
3391
3444
|
find: _,
|
|
3392
3445
|
get: u,
|
|
3393
3446
|
update: V,
|
|
3394
|
-
updateOrCreate:
|
|
3447
|
+
updateOrCreate: L
|
|
3395
3448
|
};
|
|
3396
3449
|
});
|
|
3397
|
-
function
|
|
3398
|
-
function
|
|
3399
|
-
e.component("VoAuthBtn",
|
|
3450
|
+
function sa() {
|
|
3451
|
+
function d(e) {
|
|
3452
|
+
e.component("VoAuthBtn", an), e.component("VoAuthCard", ct), e.component("VoAuthDialog", ut), e.component("VoAuthListItem", dt), e.component("VoNotificationsBanner", rn), e.component("VoFooter", vn);
|
|
3400
3453
|
}
|
|
3401
|
-
return { install:
|
|
3454
|
+
return { install: d };
|
|
3402
3455
|
}
|
|
3403
|
-
function
|
|
3456
|
+
function na(d, e) {
|
|
3404
3457
|
return function(i) {
|
|
3405
|
-
const
|
|
3406
|
-
|
|
3458
|
+
const s = i.store;
|
|
3459
|
+
s.url = e, s.$id === "site" && (s.id = d);
|
|
3407
3460
|
};
|
|
3408
3461
|
}
|
|
3409
3462
|
export {
|
|
3410
|
-
|
|
3411
|
-
|
|
3463
|
+
sa as createOne,
|
|
3464
|
+
na as one,
|
|
3412
3465
|
F as useAuthStore,
|
|
3413
3466
|
Ne as useBannersStore,
|
|
3414
|
-
|
|
3415
|
-
|
|
3467
|
+
oa as useBinsStore,
|
|
3468
|
+
be as useHttpStore,
|
|
3416
3469
|
j as useOneStore,
|
|
3417
3470
|
Be as useSettingsStore,
|
|
3418
3471
|
O as useUserStore
|