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