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