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