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