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