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