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