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