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