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