@vuetify/one 1.4.0 → 1.4.2
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 +4 -1
- package/dist/index.js +946 -935
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { reactive as wt, watch as B, toRefs as St, ref as
|
|
2
|
-
import { mdiDiscord as Qe, mdiGithub as Ye, mdiSync as At, mdiSyncOff as Ot, mdiLogoutVariant as Nt, mdiFullscreenExit as Bt, mdiFullscreen as Ut, mdiCheck as
|
|
3
|
-
import { useRouter as
|
|
1
|
+
import { reactive as wt, watch as B, toRefs as St, ref as O, shallowRef as A, computed as S, defineComponent as $, openBlock as d, createBlock as _, unref as t, createSlots as R, withCtx as r, createElementVNode as y, toDisplayString as C, createVNode as s, createTextVNode as T, renderSlot as z, normalizeStyle as ot, createCommentVNode as w, withModifiers as Ee, mergeModels as nt, useModel as re, createElementBlock as L, Fragment as U, onMounted as qe, nextTick as pe, renderList as ne, mergeProps as H, isRef as se, resolveComponent as We, withDirectives as De, vShow as Ge, normalizeClass as Ct, pushScopeId as Lt, popScopeId as It, onBeforeMount as Ze, onBeforeUnmount as Dt } from "vue";
|
|
2
|
+
import { mdiDiscord as Qe, mdiGithub as Ye, mdiSync as At, mdiSyncOff as Ot, mdiLogoutVariant as Nt, mdiFullscreenExit as Bt, mdiFullscreen as Ut, mdiCheck as Ae, mdiHome as zt, mdiTextBox as Ft, mdiSelect as Tt, mdiSpaceInvaders as st, mdiImageFilterHdr as at, mdiRocketLaunchOutline as it, mdiWhiteBalanceSunny as jt, mdiWeatherNight as Mt, mdiDesktopTowerMonitor as Pt, mdiContrastCircle as Ht, mdiCog as Rt, mdiCogOutline as Et, mdiFileDocument as qt, mdiCreditCardSettingsOutline as Wt, mdiRocketOutline as Gt, mdiCheckCircleOutline as Ie, mdiCreditCard as Zt, mdiReload as Qt, mdiPlaylistCheck as Yt, mdiCreditCardOutline as Jt, mdiMedal as Xt, mdiOpenInNew as Oe, mdiHandHeart as Kt, mdiHandHeartOutline as eo, mdiEmailOpenOutline as rt, mdiEmailVariant as lt, mdiBell as to, mdiInboxOutline as oo, mdiInboxFullOutline as no, mdiBillboard as so, mdiBellOutline as ao, mdiViewDashboardOutline as io, mdiCrown as ro, mdiArrowULeftBottom as lo, mdiLogin as co, mdiShieldStarOutline as uo, mdiReddit as po } from "@mdi/js";
|
|
3
|
+
import { useRouter as Ne, useRoute as mo } from "vue-router";
|
|
4
4
|
import { defineStore as W } from "pinia";
|
|
5
|
-
import { merge as
|
|
6
|
-
import { VListItem as
|
|
5
|
+
import { merge as Me } from "lodash-es";
|
|
6
|
+
import { VListItem as Ve, VList as ae, VListItemTitle as ct, VListItemSubtitle as fo } from "vuetify/lib/components/VList/index.mjs";
|
|
7
7
|
import { VAvatar as Q } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
8
8
|
import { VCard as E, VCardTitle as vo, VCardSubtitle as ho, VCardText as _e } from "vuetify/lib/components/VCard/index.mjs";
|
|
9
9
|
import { VDialog as ut } from "vuetify/lib/components/VDialog/index.mjs";
|
|
@@ -12,20 +12,20 @@ import { VBtn as q } from "vuetify/lib/components/VBtn/index.mjs";
|
|
|
12
12
|
import { VProgressCircular as _o } from "vuetify/lib/components/VProgressCircular/index.mjs";
|
|
13
13
|
import { VSheet as ye } from "vuetify/lib/components/VSheet/index.mjs";
|
|
14
14
|
import { VSwitch as dt } from "vuetify/lib/components/VSwitch/index.mjs";
|
|
15
|
-
import { VFadeTransition as
|
|
16
|
-
import { useDisplay as le, useTheme as Xe, useDate as
|
|
15
|
+
import { VFadeTransition as Be, VExpandTransition as me, VExpandXTransition as go } from "vuetify/lib/components/transitions/index.mjs";
|
|
16
|
+
import { useDisplay as le, useTheme as Xe, useDate as Ue } from "vuetify";
|
|
17
17
|
import { VDivider as Z } from "vuetify/lib/components/VDivider/index.mjs";
|
|
18
18
|
import { VIcon as D } from "vuetify/lib/components/VIcon/index.mjs";
|
|
19
|
-
import { VLabel as
|
|
19
|
+
import { VLabel as He } from "vuetify/lib/components/VLabel/index.mjs";
|
|
20
20
|
import { VChip as te } from "vuetify/lib/components/VChip/index.mjs";
|
|
21
21
|
import { VChipGroup as yo } from "vuetify/lib/components/VChipGroup/index.mjs";
|
|
22
22
|
import { VSelect as bo } from "vuetify/lib/components/VSelect/index.mjs";
|
|
23
23
|
import { VRow as de, VCol as K, VContainer as tt } from "vuetify/lib/components/VGrid/index.mjs";
|
|
24
|
-
import { VHover as
|
|
24
|
+
import { VHover as ze } from "vuetify/lib/components/VHover/index.mjs";
|
|
25
25
|
import { VImg as Y } from "vuetify/lib/components/VImg/index.mjs";
|
|
26
|
-
import { VItemGroup as pt, VItem as
|
|
27
|
-
import { VLayout as
|
|
28
|
-
import { VMain as
|
|
26
|
+
import { VItemGroup as pt, VItem as Re } from "vuetify/lib/components/VItemGroup/index.mjs";
|
|
27
|
+
import { VLayout as ke } from "vuetify/lib/components/VLayout/index.mjs";
|
|
28
|
+
import { VMain as $e } from "vuetify/lib/components/VMain/index.mjs";
|
|
29
29
|
import { VDataTableVirtual as Vo } from "vuetify/lib/components/VDataTable/index.mjs";
|
|
30
30
|
import { VSkeletonLoader as be } from "vuetify/lib/components/VSkeletonLoader/index.mjs";
|
|
31
31
|
import { VWindow as mt, VWindowItem as ge } from "vuetify/lib/components/VWindow/index.mjs";
|
|
@@ -78,7 +78,7 @@ const ce = W("http", {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
}),
|
|
81
|
+
}), Pe = typeof window < "u", Le = {
|
|
82
82
|
v: 5,
|
|
83
83
|
api: "link-only",
|
|
84
84
|
avatar: "",
|
|
@@ -116,54 +116,54 @@ const ce = W("http", {
|
|
|
116
116
|
jobs: null
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
},
|
|
120
|
-
const c = wt(
|
|
119
|
+
}, F = W("user", () => {
|
|
120
|
+
const c = wt(Me({}, Le));
|
|
121
121
|
B(c, o);
|
|
122
122
|
function e() {
|
|
123
|
-
if (!
|
|
123
|
+
if (!Pe)
|
|
124
124
|
return;
|
|
125
125
|
const n = localStorage.getItem("vuetify@user"), i = n ? JSON.parse(n) : {};
|
|
126
126
|
let l = i.v === c.v;
|
|
127
|
-
i.v || (i.pwaRefresh = !0, typeof i.api == "boolean" && (i.api = i.api ? "inline" : "link-only"), typeof i.rtl == "boolean" && (i.direction = i.rtl ? "rtl" : "ltr", delete i.rtl), typeof i.theme == "object" && (i.mixedTheme = i.theme.mixed, i.theme = i.theme.system ? "system" : i.theme.dark ? "dark" : "light"), Array.isArray(i.notifications) && (i.notifications = { read: i.notifications }), typeof i.last == "object" && (i.notifications.last = i.last, delete i.last)), i.v === 1 && (Array.isArray(i.composition) && (i.composition = "composition"), Array.isArray(i.notifications.last.banner) || (i.notifications = i.notifications || {}, i.notifications.last = i.notifications.last || {}, i.notifications.last.banner = [])), i.v === 2 && (i.syncSettings = !0, i.disableAds = !1, i.v = 3), i.v === 3 && (i.quickbar = !1), i.v === 4 && (i.suits =
|
|
127
|
+
i.v || (i.pwaRefresh = !0, typeof i.api == "boolean" && (i.api = i.api ? "inline" : "link-only"), typeof i.rtl == "boolean" && (i.direction = i.rtl ? "rtl" : "ltr", delete i.rtl), typeof i.theme == "object" && (i.mixedTheme = i.theme.mixed, i.theme = i.theme.system ? "system" : i.theme.dark ? "dark" : "light"), Array.isArray(i.notifications) && (i.notifications = { read: i.notifications }), typeof i.last == "object" && (i.notifications.last = i.last, delete i.last)), i.v === 1 && (Array.isArray(i.composition) && (i.composition = "composition"), Array.isArray(i.notifications.last.banner) || (i.notifications = i.notifications || {}, i.notifications.last = i.notifications.last || {}, i.notifications.last.banner = [])), i.v === 2 && (i.syncSettings = !0, i.disableAds = !1, i.v = 3), i.v === 3 && (i.quickbar = !1), i.v === 4 && (i.suits = Le.suits, i.notifications.banners = Le.notifications.banners, l = !0), i.v = c.v, Object.assign(c, Me(c, i)), l && o();
|
|
128
128
|
}
|
|
129
129
|
function o() {
|
|
130
|
-
|
|
130
|
+
Pe && localStorage.setItem("vuetify@user", JSON.stringify(c, null, 2));
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
132
|
+
function a() {
|
|
133
|
+
Pe && (Object.assign(c, Me({}, Le)), o());
|
|
134
134
|
}
|
|
135
135
|
return e(), {
|
|
136
136
|
...St(c),
|
|
137
137
|
load: e,
|
|
138
138
|
save: o,
|
|
139
|
-
reset:
|
|
139
|
+
reset: a
|
|
140
140
|
};
|
|
141
141
|
}), M = W("auth", () => {
|
|
142
|
-
const c =
|
|
142
|
+
const c = O(!1), e = O(null), o = ce(), a = F(), n = Ne(), i = A(!1), l = S(() => {
|
|
143
143
|
var m, v;
|
|
144
144
|
return !o.url || ((m = e.value) == null ? void 0 : m.isAdmin) || !!((v = e.value) != null && v.sponsorships.some((k) => k.isActive));
|
|
145
145
|
});
|
|
146
|
-
let
|
|
146
|
+
let p = !!V();
|
|
147
147
|
B(e, (m) => {
|
|
148
148
|
if (!(m != null && m.settings))
|
|
149
149
|
return;
|
|
150
150
|
const v = localStorage.getItem("vuetify@user") || "{}";
|
|
151
|
-
JSON.stringify(m.settings, null, 2) !== v && (
|
|
152
|
-
}),
|
|
153
|
-
|
|
151
|
+
JSON.stringify(m.settings, null, 2) !== v && (p = !0, Object.assign(a, m.settings));
|
|
152
|
+
}), a.$subscribe(() => {
|
|
153
|
+
p || f(), p = !1;
|
|
154
154
|
});
|
|
155
155
|
async function f() {
|
|
156
|
-
if (!(!e.value || !
|
|
156
|
+
if (!(!e.value || !a.syncSettings))
|
|
157
157
|
try {
|
|
158
|
-
await o.post("/user/settings", { settings:
|
|
158
|
+
await o.post("/user/settings", { settings: a.$state });
|
|
159
159
|
} catch (m) {
|
|
160
160
|
console.error(m);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
async function
|
|
164
|
-
if (
|
|
165
|
-
return
|
|
166
|
-
i.value = !0,
|
|
163
|
+
async function u(m = !1) {
|
|
164
|
+
if (u.promise)
|
|
165
|
+
return u.promise;
|
|
166
|
+
i.value = !0, u.promise = fetch(`${o.url}/auth/verify`, {
|
|
167
167
|
credentials: "include",
|
|
168
168
|
headers: m ? {
|
|
169
169
|
"Cache-Control": "no-cache"
|
|
@@ -175,23 +175,23 @@ const ce = W("http", {
|
|
|
175
175
|
() => {
|
|
176
176
|
}
|
|
177
177
|
).finally(() => {
|
|
178
|
-
i.value = !1,
|
|
178
|
+
i.value = !1, u.promise = null;
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
u.promise = null;
|
|
182
182
|
async function h(m = "github") {
|
|
183
183
|
i.value = !0;
|
|
184
|
-
const v = `${o.url}/auth/${m}/redirect`, k = 400, N = 600,
|
|
184
|
+
const v = `${o.url}/auth/${m}/redirect`, k = 400, N = 600, j = window.screenX + (window.innerWidth - k) / 2, ie = window.screenY + (window.innerHeight - N) / 2, G = window.open(
|
|
185
185
|
"",
|
|
186
186
|
"vuetify:authorize:popup",
|
|
187
|
-
`popup,left=${
|
|
187
|
+
`popup,left=${j},top=${ie},width=${k},height=${N},resizable`
|
|
188
188
|
);
|
|
189
189
|
if (!G) {
|
|
190
190
|
console.error("Failed to open popup");
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
G.location.href = v;
|
|
194
|
-
let
|
|
194
|
+
let Se = -1, Ce = -1;
|
|
195
195
|
function he(oe) {
|
|
196
196
|
var x;
|
|
197
197
|
oe.origin === o.url && ((x = oe.data) == null ? void 0 : x.type) === "auth-response" && (oe.data.status === "success" ? (e.value || localStorage.setItem("vuetify@lastLoginProvider", m), e.value = oe.data.body.user, n.push({
|
|
@@ -200,11 +200,11 @@ const ce = W("http", {
|
|
|
200
200
|
}), f()) : console.error(oe.data.message), ue());
|
|
201
201
|
}
|
|
202
202
|
function ue() {
|
|
203
|
-
window.removeEventListener("message", he), window.clearInterval(
|
|
203
|
+
window.removeEventListener("message", he), window.clearInterval(Se), window.clearTimeout(Ce), G == null || G.close(), i.value = !1;
|
|
204
204
|
}
|
|
205
|
-
window.addEventListener("message", he),
|
|
205
|
+
window.addEventListener("message", he), Se = window.setInterval(() => {
|
|
206
206
|
!G || G.closed ? (console.error("Auth popup closed"), ue()) : G.postMessage({ type: "auth-request" }, "*");
|
|
207
|
-
}, 1e3),
|
|
207
|
+
}, 1e3), Ce = window.setTimeout(() => {
|
|
208
208
|
ue(), console.error("Auth timed out");
|
|
209
209
|
}, 120 * 1e3);
|
|
210
210
|
}
|
|
@@ -212,7 +212,7 @@ const ce = W("http", {
|
|
|
212
212
|
i.value = !0;
|
|
213
213
|
const v = m ? `/auth/${m}/logout` : "/auth/logout";
|
|
214
214
|
try {
|
|
215
|
-
await o.post(v), await
|
|
215
|
+
await o.post(v), await u(!0), e.value = null;
|
|
216
216
|
} catch (k) {
|
|
217
217
|
console.error(k);
|
|
218
218
|
} finally {
|
|
@@ -222,31 +222,31 @@ const ce = W("http", {
|
|
|
222
222
|
}), i.value = !1;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function g(m) {
|
|
226
226
|
var v;
|
|
227
227
|
return (v = e.value) == null ? void 0 : v.identities.find((k) => k.provider === m);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function V() {
|
|
230
230
|
return localStorage.getItem("vuetify@lastLoginProvider");
|
|
231
231
|
}
|
|
232
|
-
return
|
|
232
|
+
return u(), {
|
|
233
233
|
user: e,
|
|
234
234
|
url: o.url,
|
|
235
235
|
dialog: c,
|
|
236
236
|
isLoading: i,
|
|
237
|
-
findIdentity:
|
|
238
|
-
verify:
|
|
237
|
+
findIdentity: g,
|
|
238
|
+
verify: u,
|
|
239
239
|
login: h,
|
|
240
240
|
logout: b,
|
|
241
241
|
isSubscriber: l,
|
|
242
|
-
lastLoginProvider:
|
|
242
|
+
lastLoginProvider: V,
|
|
243
243
|
sync: f
|
|
244
244
|
};
|
|
245
245
|
}), Oo = { class: "text-body-2" }, No = /* @__PURE__ */ y("div", { class: "text-caption mt-n1" }, "Last Used", -1), ft = /* @__PURE__ */ $({
|
|
246
246
|
__name: "VoAuthDiscord",
|
|
247
247
|
setup(c) {
|
|
248
|
-
const e = M(), o =
|
|
249
|
-
return (n, i) => (
|
|
248
|
+
const e = M(), o = S(() => e.user && e.findIdentity("discord")), a = S(() => e.user ? o.value ? "Connected to Discord" : "Connect Discord" : "Login with Discord");
|
|
249
|
+
return (n, i) => (d(), _(Ve, {
|
|
250
250
|
"base-color": "#5865F2",
|
|
251
251
|
"prepend-icon": `svg:${t(Qe)}`,
|
|
252
252
|
rounded: "pill",
|
|
@@ -255,7 +255,7 @@ const ce = W("http", {
|
|
|
255
255
|
onClick: i[0] || (i[0] = (l) => t(e).login("discord"))
|
|
256
256
|
}, R({
|
|
257
257
|
title: r(() => [
|
|
258
|
-
y("span", Oo, C(t(
|
|
258
|
+
y("span", Oo, C(t(a)), 1)
|
|
259
259
|
]),
|
|
260
260
|
_: 2
|
|
261
261
|
}, [
|
|
@@ -271,8 +271,8 @@ const ce = W("http", {
|
|
|
271
271
|
}), Bo = { class: "text-body-2" }, Uo = /* @__PURE__ */ y("div", { class: "text-caption mt-n1" }, "Last Used", -1), vt = /* @__PURE__ */ $({
|
|
272
272
|
__name: "VoAuthGithub",
|
|
273
273
|
setup(c) {
|
|
274
|
-
const e = M(), o =
|
|
275
|
-
return (n, i) => (
|
|
274
|
+
const e = M(), o = S(() => e.user && e.findIdentity("github")), a = S(() => e.user ? o.value ? "Connected to GitHub" : "Connect GitHub" : "Login with GitHub");
|
|
275
|
+
return (n, i) => (d(), _(Ve, {
|
|
276
276
|
"base-color": "#2a2a2a",
|
|
277
277
|
"prepend-icon": `svg:${t(Ye)}`,
|
|
278
278
|
rounded: "pill",
|
|
@@ -281,7 +281,7 @@ const ce = W("http", {
|
|
|
281
281
|
onClick: i[0] || (i[0] = (l) => t(e).login("github"))
|
|
282
282
|
}, R({
|
|
283
283
|
title: r(() => [
|
|
284
|
-
y("span", Bo, C(t(
|
|
284
|
+
y("span", Bo, C(t(a)), 1)
|
|
285
285
|
]),
|
|
286
286
|
_: 2
|
|
287
287
|
}, [
|
|
@@ -298,43 +298,43 @@ const ce = W("http", {
|
|
|
298
298
|
__name: "VoAuthCard",
|
|
299
299
|
setup(c) {
|
|
300
300
|
const e = M();
|
|
301
|
-
return (o,
|
|
301
|
+
return (o, a) => {
|
|
302
302
|
const n = vt, i = ft;
|
|
303
|
-
return
|
|
303
|
+
return d(), _(E, {
|
|
304
304
|
class: "pt-6 pb-8 px-4 px-sm-8 mx-auto",
|
|
305
305
|
"max-width": "480"
|
|
306
306
|
}, {
|
|
307
307
|
default: r(() => [
|
|
308
308
|
y("div", zo, [
|
|
309
|
-
|
|
309
|
+
s(Q, {
|
|
310
310
|
class: "mx-auto",
|
|
311
311
|
image: "https://vuetifyjs.b-cdn.net/docs/images/avatars/one.png",
|
|
312
312
|
size: "64"
|
|
313
313
|
}, null, 8, ["image"])
|
|
314
314
|
]),
|
|
315
315
|
y("div", Fo, [
|
|
316
|
-
|
|
316
|
+
s(vo, { class: "text-h5 mb-1 text-md-h4" }, {
|
|
317
317
|
default: r(() => [
|
|
318
318
|
y("div", To, C(t(e).lastLoginProvider() ? "Welcome back to" : "Login to"), 1),
|
|
319
319
|
jo
|
|
320
320
|
]),
|
|
321
321
|
_: 1
|
|
322
322
|
}),
|
|
323
|
-
|
|
323
|
+
s(ho, { class: "text-wrap" }, {
|
|
324
324
|
default: r(() => [
|
|
325
|
-
|
|
325
|
+
T(" Login with GitHub or Discord to save your settings and unlock exclusive subscriber perks. ")
|
|
326
326
|
]),
|
|
327
327
|
_: 1
|
|
328
328
|
})
|
|
329
329
|
]),
|
|
330
|
-
|
|
330
|
+
s(ae, {
|
|
331
331
|
class: "mx-auto",
|
|
332
332
|
"max-width": "300",
|
|
333
333
|
width: "100%"
|
|
334
334
|
}, {
|
|
335
335
|
default: r(() => [
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
s(n, { class: "mb-3" }),
|
|
337
|
+
s(i)
|
|
338
338
|
]),
|
|
339
339
|
_: 1
|
|
340
340
|
})
|
|
@@ -347,22 +347,22 @@ const ce = W("http", {
|
|
|
347
347
|
__name: "VoAuthDialog",
|
|
348
348
|
setup(c) {
|
|
349
349
|
const e = M();
|
|
350
|
-
return (o,
|
|
350
|
+
return (o, a) => {
|
|
351
351
|
const n = ht;
|
|
352
|
-
return
|
|
352
|
+
return d(), _(ut, {
|
|
353
353
|
modelValue: t(e).dialog,
|
|
354
|
-
"onUpdate:modelValue":
|
|
354
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => t(e).dialog = i),
|
|
355
355
|
"max-width": "480"
|
|
356
356
|
}, {
|
|
357
357
|
default: r(() => [
|
|
358
|
-
|
|
358
|
+
s(n)
|
|
359
359
|
]),
|
|
360
360
|
_: 1
|
|
361
361
|
}, 8, ["modelValue"]);
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
}),
|
|
365
|
-
const c = ce(), e =
|
|
364
|
+
}), Fe = W("notifications", () => {
|
|
365
|
+
const c = ce(), e = F(), o = O([]), a = O([]), n = O(), i = A(!1), l = S(() => o.value.filter((m) => !e.notifications.read.includes(m.slug))), p = S(() => o.value.filter((m) => e.notifications.read.includes(m.slug)));
|
|
366
366
|
async function f() {
|
|
367
367
|
try {
|
|
368
368
|
i.value = !0;
|
|
@@ -374,7 +374,7 @@ const ce = W("http", {
|
|
|
374
374
|
}
|
|
375
375
|
return o.value;
|
|
376
376
|
}
|
|
377
|
-
async function
|
|
377
|
+
async function u(m) {
|
|
378
378
|
try {
|
|
379
379
|
i.value = !0;
|
|
380
380
|
const v = await c.get(`/one/admin/notifications/${m}`);
|
|
@@ -410,13 +410,13 @@ const ce = W("http", {
|
|
|
410
410
|
i.value = !1;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
async function V() {
|
|
414
|
-
}
|
|
415
413
|
async function g() {
|
|
414
|
+
}
|
|
415
|
+
async function V() {
|
|
416
416
|
try {
|
|
417
417
|
i.value = !0;
|
|
418
418
|
const m = await c.get("/one/admin/notifications");
|
|
419
|
-
|
|
419
|
+
a.value = m.notifications;
|
|
420
420
|
} catch {
|
|
421
421
|
} finally {
|
|
422
422
|
i.value = !1;
|
|
@@ -426,22 +426,22 @@ const ce = W("http", {
|
|
|
426
426
|
return {
|
|
427
427
|
isLoading: i,
|
|
428
428
|
all: o,
|
|
429
|
-
aall:
|
|
430
|
-
admin:
|
|
429
|
+
aall: a,
|
|
430
|
+
admin: V,
|
|
431
431
|
record: n,
|
|
432
432
|
index: f,
|
|
433
|
-
show:
|
|
433
|
+
show: u,
|
|
434
434
|
store: h,
|
|
435
435
|
update: b,
|
|
436
|
-
destroy:
|
|
437
|
-
read:
|
|
436
|
+
destroy: g,
|
|
437
|
+
read: p,
|
|
438
438
|
unread: l
|
|
439
439
|
};
|
|
440
440
|
}), Mo = /* @__PURE__ */ $({
|
|
441
441
|
__name: "VoNotificationsTotalBadge",
|
|
442
442
|
setup(c) {
|
|
443
|
-
const e = M(), o =
|
|
444
|
-
return (i, l) => (
|
|
443
|
+
const e = M(), o = Fe(), a = F(), n = S(() => a.notifications.show ? o.unread.length : 0);
|
|
444
|
+
return (i, l) => (d(), _(Je, {
|
|
445
445
|
color: "error",
|
|
446
446
|
content: t(n),
|
|
447
447
|
dot: !!t(e).user,
|
|
@@ -461,7 +461,7 @@ const ce = W("http", {
|
|
|
461
461
|
},
|
|
462
462
|
setup(c) {
|
|
463
463
|
const e = c;
|
|
464
|
-
return (o,
|
|
464
|
+
return (o, a) => (d(), _(q, {
|
|
465
465
|
class: "text-none font-weight-regular",
|
|
466
466
|
color: "primary",
|
|
467
467
|
size: "small",
|
|
@@ -472,7 +472,7 @@ const ce = W("http", {
|
|
|
472
472
|
variant: "flat"
|
|
473
473
|
}, R({
|
|
474
474
|
loader: r(() => [
|
|
475
|
-
o.$slots.loader ?
|
|
475
|
+
o.$slots.loader ? w("", !0) : (d(), _(_o, {
|
|
476
476
|
key: 0,
|
|
477
477
|
indeterminate: "disable-shrink",
|
|
478
478
|
size: "16",
|
|
@@ -501,24 +501,24 @@ const ce = W("http", {
|
|
|
501
501
|
}), Po = { class: "pa-4 d-flex flex-column ga-4" }, gt = /* @__PURE__ */ $({
|
|
502
502
|
__name: "VoAuthListItem",
|
|
503
503
|
setup(c) {
|
|
504
|
-
const e = M(), o =
|
|
504
|
+
const e = M(), o = F(), a = A(!e.user && !e.isLoading);
|
|
505
505
|
B(() => e.user, (i) => {
|
|
506
|
-
|
|
506
|
+
a.value = !i;
|
|
507
507
|
});
|
|
508
508
|
function n() {
|
|
509
|
-
e.user && (
|
|
509
|
+
e.user && (a.value = !a.value);
|
|
510
510
|
}
|
|
511
511
|
return (i, l) => {
|
|
512
|
-
const
|
|
513
|
-
return
|
|
512
|
+
const p = vt, f = ft;
|
|
513
|
+
return d(), _(E, {
|
|
514
514
|
class: "ma-2",
|
|
515
515
|
rounded: "lg",
|
|
516
|
-
variant: t(
|
|
516
|
+
variant: t(a) ? "tonal" : "text"
|
|
517
517
|
}, {
|
|
518
518
|
default: r(() => [
|
|
519
|
-
|
|
519
|
+
s(ae, { class: "py-0" }, {
|
|
520
520
|
default: r(() => [
|
|
521
|
-
|
|
521
|
+
s(Ve, {
|
|
522
522
|
class: "mb-0",
|
|
523
523
|
link: !!t(e).user,
|
|
524
524
|
nav: "",
|
|
@@ -529,51 +529,51 @@ const ce = W("http", {
|
|
|
529
529
|
onClick: n
|
|
530
530
|
}, {
|
|
531
531
|
append: r(() => [
|
|
532
|
-
|
|
532
|
+
s(Be, null, {
|
|
533
533
|
default: r(() => [
|
|
534
|
-
t(e).user && (t(
|
|
534
|
+
t(e).user && (t(a) || !t(o).syncSettings) ? (d(), _(dt, {
|
|
535
535
|
key: 0,
|
|
536
536
|
modelValue: t(o).syncSettings,
|
|
537
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
537
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => t(o).syncSettings = u),
|
|
538
538
|
color: t(o).syncSettings ? "success" : void 0,
|
|
539
539
|
density: "compact",
|
|
540
540
|
"hide-details": "",
|
|
541
541
|
inset: "",
|
|
542
|
-
onClick: l[1] || (l[1] =
|
|
542
|
+
onClick: l[1] || (l[1] = Ee(() => {
|
|
543
543
|
}, ["stop"]))
|
|
544
544
|
}, {
|
|
545
545
|
thumb: r(() => [
|
|
546
|
-
|
|
546
|
+
s(Q, {
|
|
547
547
|
color: t(o).syncSettings ? "success" : void 0
|
|
548
548
|
}, null, 8, ["color"])
|
|
549
549
|
]),
|
|
550
550
|
_: 1
|
|
551
|
-
}, 8, ["modelValue", "color"])) :
|
|
551
|
+
}, 8, ["modelValue", "color"])) : w("", !0)
|
|
552
552
|
]),
|
|
553
553
|
_: 1
|
|
554
554
|
})
|
|
555
555
|
]),
|
|
556
556
|
_: 1
|
|
557
557
|
}, 8, ["link", "prepend-icon", "title"]),
|
|
558
|
-
|
|
558
|
+
s(me, null, {
|
|
559
559
|
default: r(() => [
|
|
560
|
-
!t(e).user && !t(e).isLoading || t(
|
|
560
|
+
!t(e).user && !t(e).isLoading || t(a) ? (d(), _(ye, {
|
|
561
561
|
key: 0,
|
|
562
562
|
border: "t",
|
|
563
563
|
color: "transparent"
|
|
564
564
|
}, {
|
|
565
565
|
default: r(() => [
|
|
566
566
|
y("div", Po, [
|
|
567
|
-
|
|
568
|
-
onClick: l[2] || (l[2] = (
|
|
567
|
+
s(p, {
|
|
568
|
+
onClick: l[2] || (l[2] = (u) => a.value = !1)
|
|
569
569
|
}),
|
|
570
|
-
|
|
571
|
-
onClick: l[3] || (l[3] = (
|
|
570
|
+
s(f, {
|
|
571
|
+
onClick: l[3] || (l[3] = (u) => a.value = !1)
|
|
572
572
|
})
|
|
573
573
|
])
|
|
574
574
|
]),
|
|
575
575
|
_: 1
|
|
576
|
-
})) :
|
|
576
|
+
})) : w("", !0)
|
|
577
577
|
]),
|
|
578
578
|
_: 1
|
|
579
579
|
})
|
|
@@ -588,7 +588,7 @@ const ce = W("http", {
|
|
|
588
588
|
}), J = /* @__PURE__ */ $({
|
|
589
589
|
__name: "VoListItem",
|
|
590
590
|
setup(c) {
|
|
591
|
-
return (e, o) => (
|
|
591
|
+
return (e, o) => (d(), _(Ve, { slim: "" }, R({
|
|
592
592
|
default: r(() => [
|
|
593
593
|
z(e.$slots, "default")
|
|
594
594
|
]),
|
|
@@ -620,24 +620,24 @@ const ce = W("http", {
|
|
|
620
620
|
}), Ho = /* @__PURE__ */ $({
|
|
621
621
|
__name: "VoAuthLogoutNavItem",
|
|
622
622
|
setup(c) {
|
|
623
|
-
const e = M(), o =
|
|
624
|
-
async function
|
|
623
|
+
const e = M(), o = A(!1);
|
|
624
|
+
async function a() {
|
|
625
625
|
o.value = !0, await e.logout(), o.value = !1;
|
|
626
626
|
}
|
|
627
627
|
return (n, i) => {
|
|
628
628
|
const l = J;
|
|
629
|
-
return
|
|
629
|
+
return d(), _(l, {
|
|
630
630
|
class: "mb-0",
|
|
631
631
|
disabled: t(o),
|
|
632
632
|
link: "",
|
|
633
633
|
loading: t(o),
|
|
634
634
|
"prepend-icon": `svg:${t(Nt)}`,
|
|
635
635
|
title: "Logout",
|
|
636
|
-
onClick:
|
|
636
|
+
onClick: a
|
|
637
637
|
}, null, 8, ["disabled", "loading", "prepend-icon"]);
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
-
}),
|
|
640
|
+
}), xe = /* @__PURE__ */ $({
|
|
641
641
|
__name: "VoDialog",
|
|
642
642
|
props: /* @__PURE__ */ nt({
|
|
643
643
|
prependIcon: {},
|
|
@@ -648,18 +648,18 @@ const ce = W("http", {
|
|
|
648
648
|
}),
|
|
649
649
|
emits: ["update:modelValue"],
|
|
650
650
|
setup(c) {
|
|
651
|
-
const e = re(c, "modelValue"), o = le(),
|
|
652
|
-
return (n, i) => (
|
|
651
|
+
const e = re(c, "modelValue"), o = le(), a = A(!1);
|
|
652
|
+
return (n, i) => (d(), _(ut, {
|
|
653
653
|
modelValue: e.value,
|
|
654
654
|
"onUpdate:modelValue": i[2] || (i[2] = (l) => e.value = l),
|
|
655
655
|
activator: "parent",
|
|
656
|
-
fullscreen: t(
|
|
656
|
+
fullscreen: t(a) || t(o).xs.value,
|
|
657
657
|
height: "100%",
|
|
658
|
-
"max-height": t(
|
|
659
|
-
"max-width": t(
|
|
658
|
+
"max-height": t(a) || t(o).xs.value ? "100%" : 800,
|
|
659
|
+
"max-width": t(a) || t(o).xs.value ? "100%" : 800
|
|
660
660
|
}, {
|
|
661
661
|
default: r(({ isActive: l }) => [
|
|
662
|
-
|
|
662
|
+
s(E, {
|
|
663
663
|
class: "overflow-hidden",
|
|
664
664
|
height: "inherit",
|
|
665
665
|
"prepend-icon": n.prependIcon,
|
|
@@ -667,25 +667,25 @@ const ce = W("http", {
|
|
|
667
667
|
}, R({
|
|
668
668
|
append: r(() => [
|
|
669
669
|
z(n.$slots, "append"),
|
|
670
|
-
t(o).xs.value ?
|
|
670
|
+
t(o).xs.value ? w("", !0) : (d(), _(q, {
|
|
671
671
|
key: 0,
|
|
672
672
|
class: "me-2",
|
|
673
673
|
density: "comfortable",
|
|
674
|
-
icon: `svg:${t(
|
|
674
|
+
icon: `svg:${t(a) ? t(Bt) : t(Ut)}`,
|
|
675
675
|
size: "small",
|
|
676
676
|
variant: "text",
|
|
677
|
-
onClick: i[0] || (i[0] = (
|
|
677
|
+
onClick: i[0] || (i[0] = (p) => a.value = !t(a))
|
|
678
678
|
}, null, 8, ["icon"])),
|
|
679
|
-
|
|
679
|
+
s(q, {
|
|
680
680
|
density: "comfortable",
|
|
681
681
|
icon: "$close",
|
|
682
682
|
size: "small",
|
|
683
683
|
variant: "text",
|
|
684
|
-
onClick: i[1] || (i[1] = (
|
|
684
|
+
onClick: i[1] || (i[1] = (p) => e.value = !e.value)
|
|
685
685
|
})
|
|
686
686
|
]),
|
|
687
687
|
default: r(() => [
|
|
688
|
-
|
|
688
|
+
s(Z, { class: "mt-4" }),
|
|
689
689
|
z(n.$slots, "default")
|
|
690
690
|
]),
|
|
691
691
|
_: 2
|
|
@@ -715,15 +715,15 @@ const ce = W("http", {
|
|
|
715
715
|
disabled: { type: Boolean }
|
|
716
716
|
},
|
|
717
717
|
setup(c) {
|
|
718
|
-
return (e, o) => (
|
|
718
|
+
return (e, o) => (d(), _(dt, {
|
|
719
719
|
color: "primary",
|
|
720
720
|
density: "compact",
|
|
721
721
|
disabled: e.disabled,
|
|
722
722
|
inset: "",
|
|
723
|
-
"true-icon": `svg:${t(
|
|
723
|
+
"true-icon": `svg:${t(Ae)}`
|
|
724
724
|
}, R({
|
|
725
725
|
thumb: r(() => [
|
|
726
|
-
|
|
726
|
+
s(D, {
|
|
727
727
|
color: e.disabled ? void 0 : "primary"
|
|
728
728
|
}, null, 8, ["color"])
|
|
729
729
|
]),
|
|
@@ -741,30 +741,30 @@ const ce = W("http", {
|
|
|
741
741
|
}), Ro = {
|
|
742
742
|
key: 1,
|
|
743
743
|
class: "mb-3 text-caption text-medium-emphasis"
|
|
744
|
-
},
|
|
744
|
+
}, we = /* @__PURE__ */ $({
|
|
745
745
|
__name: "VoDialogSubheader",
|
|
746
746
|
props: {
|
|
747
747
|
title: {},
|
|
748
748
|
text: {}
|
|
749
749
|
},
|
|
750
750
|
setup(c) {
|
|
751
|
-
return (e, o) => (
|
|
752
|
-
e.title ? (
|
|
751
|
+
return (e, o) => (d(), L(U, null, [
|
|
752
|
+
e.title ? (d(), _(He, {
|
|
753
753
|
key: 0,
|
|
754
754
|
class: "font-weight-black"
|
|
755
755
|
}, {
|
|
756
756
|
default: r(() => [
|
|
757
|
-
|
|
757
|
+
T(C(e.title), 1)
|
|
758
758
|
]),
|
|
759
759
|
_: 1
|
|
760
|
-
})) :
|
|
761
|
-
e.text ? (
|
|
760
|
+
})) : w("", !0),
|
|
761
|
+
e.text ? (d(), L("div", Ro, C(e.text), 1)) : w("", !0)
|
|
762
762
|
], 64));
|
|
763
763
|
}
|
|
764
764
|
}), Eo = { key: 0 }, qo = /* @__PURE__ */ $({
|
|
765
765
|
__name: "VoSettingsPageSuitOption",
|
|
766
766
|
setup(c) {
|
|
767
|
-
const e =
|
|
767
|
+
const e = F(), o = [
|
|
768
768
|
{
|
|
769
769
|
title: "Choose a page suit",
|
|
770
770
|
value: "",
|
|
@@ -787,22 +787,22 @@ const ce = W("http", {
|
|
|
787
787
|
value: "nebula"
|
|
788
788
|
}
|
|
789
789
|
];
|
|
790
|
-
return (
|
|
791
|
-
const i = yt, l =
|
|
792
|
-
return
|
|
793
|
-
|
|
790
|
+
return (a, n) => {
|
|
791
|
+
const i = yt, l = we;
|
|
792
|
+
return d(), L(U, null, [
|
|
793
|
+
s(i, {
|
|
794
794
|
modelValue: t(e).suits.show,
|
|
795
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
795
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => t(e).suits.show = p),
|
|
796
796
|
class: "mb-2",
|
|
797
797
|
label: "Enable Page suits",
|
|
798
798
|
messages: "Customize layout elements with a unique background, styled after one of our themed releases."
|
|
799
799
|
}, null, 8, ["modelValue"]),
|
|
800
|
-
|
|
800
|
+
s(me, null, {
|
|
801
801
|
default: r(() => [
|
|
802
|
-
t(e).suits.show ? (
|
|
803
|
-
|
|
802
|
+
t(e).suits.show ? (d(), L("div", Eo, [
|
|
803
|
+
s(bo, {
|
|
804
804
|
modelValue: t(e).suits.suit,
|
|
805
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
805
|
+
"onUpdate:modelValue": n[1] || (n[1] = (p) => t(e).suits.suit = p),
|
|
806
806
|
clearable: "",
|
|
807
807
|
density: "compact",
|
|
808
808
|
"item-props": "",
|
|
@@ -812,26 +812,26 @@ const ce = W("http", {
|
|
|
812
812
|
style: { "max-width": "300px" },
|
|
813
813
|
variant: "outlined"
|
|
814
814
|
}, {
|
|
815
|
-
selection: r(({ item:
|
|
816
|
-
|
|
817
|
-
icon:
|
|
815
|
+
selection: r(({ item: p }) => [
|
|
816
|
+
s(D, {
|
|
817
|
+
icon: p.props.prependIcon,
|
|
818
818
|
size: "x-small",
|
|
819
819
|
start: ""
|
|
820
820
|
}, null, 8, ["icon"]),
|
|
821
|
-
|
|
821
|
+
T(" " + C(p.title), 1)
|
|
822
822
|
]),
|
|
823
823
|
_: 1
|
|
824
824
|
}, 8, ["modelValue"]),
|
|
825
|
-
|
|
826
|
-
|
|
825
|
+
s(l, { text: "Select your suit elements to display the background image:" }),
|
|
826
|
+
s(yo, {
|
|
827
827
|
modelValue: t(e).suits.elements,
|
|
828
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
828
|
+
"onUpdate:modelValue": n[2] || (n[2] = (p) => t(e).suits.elements = p),
|
|
829
829
|
color: "primary",
|
|
830
830
|
filter: "",
|
|
831
831
|
multiple: ""
|
|
832
832
|
}, {
|
|
833
833
|
default: r(() => [
|
|
834
|
-
|
|
834
|
+
s(te, {
|
|
835
835
|
"append-icon": `svg:${t(zt)}`,
|
|
836
836
|
"filter-icon": "$success",
|
|
837
837
|
text: "App Bar",
|
|
@@ -839,15 +839,15 @@ const ce = W("http", {
|
|
|
839
839
|
variant: "flat"
|
|
840
840
|
}, {
|
|
841
841
|
append: r(() => [
|
|
842
|
-
|
|
842
|
+
s(Z, {
|
|
843
843
|
class: "ms-2 border-opacity-50",
|
|
844
844
|
vertical: ""
|
|
845
845
|
}),
|
|
846
|
-
|
|
846
|
+
s(D, { size: "x-small" })
|
|
847
847
|
]),
|
|
848
848
|
_: 1
|
|
849
849
|
}, 8, ["append-icon"]),
|
|
850
|
-
|
|
850
|
+
s(te, {
|
|
851
851
|
"append-icon": `svg:${t(Ft)}`,
|
|
852
852
|
"filter-icon": "$success",
|
|
853
853
|
text: "Navigation Drawer",
|
|
@@ -855,15 +855,15 @@ const ce = W("http", {
|
|
|
855
855
|
variant: "flat"
|
|
856
856
|
}, {
|
|
857
857
|
append: r(() => [
|
|
858
|
-
|
|
858
|
+
s(Z, {
|
|
859
859
|
class: "ms-2 border-opacity-50",
|
|
860
860
|
vertical: ""
|
|
861
861
|
}),
|
|
862
|
-
|
|
862
|
+
s(D, { size: "x-small" })
|
|
863
863
|
]),
|
|
864
864
|
_: 1
|
|
865
865
|
}, 8, ["append-icon"]),
|
|
866
|
-
|
|
866
|
+
s(te, {
|
|
867
867
|
"append-icon": "$info",
|
|
868
868
|
"filter-icon": "$success",
|
|
869
869
|
text: "Footer",
|
|
@@ -871,18 +871,18 @@ const ce = W("http", {
|
|
|
871
871
|
variant: "flat"
|
|
872
872
|
}, {
|
|
873
873
|
append: r(() => [
|
|
874
|
-
|
|
874
|
+
s(Z, {
|
|
875
875
|
class: "ms-2 border-opacity-50",
|
|
876
876
|
vertical: ""
|
|
877
877
|
}),
|
|
878
|
-
|
|
878
|
+
s(D, { size: "x-small" })
|
|
879
879
|
]),
|
|
880
880
|
_: 1
|
|
881
881
|
})
|
|
882
882
|
]),
|
|
883
883
|
_: 1
|
|
884
884
|
}, 8, ["modelValue"])
|
|
885
|
-
])) :
|
|
885
|
+
])) : w("", !0)
|
|
886
886
|
]),
|
|
887
887
|
_: 1
|
|
888
888
|
})
|
|
@@ -892,36 +892,36 @@ const ce = W("http", {
|
|
|
892
892
|
});
|
|
893
893
|
function ve() {
|
|
894
894
|
const c = mo();
|
|
895
|
-
return
|
|
895
|
+
return S(
|
|
896
896
|
() => c.query
|
|
897
897
|
);
|
|
898
898
|
}
|
|
899
899
|
const P = W("one", () => {
|
|
900
|
-
const c = ve(), e =
|
|
900
|
+
const c = ve(), e = Ne(), o = M(), a = ce(), n = A(!1), i = O(!1), l = O(), p = O([]), f = S(() => c.value.session_id), u = S(() => {
|
|
901
901
|
var x;
|
|
902
902
|
return (x = l.value) == null ? void 0 : x.items[0].plan.interval;
|
|
903
|
-
}), h =
|
|
903
|
+
}), h = S(() => {
|
|
904
904
|
var x;
|
|
905
905
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "stripe" && I.tierName.startsWith("sub_"));
|
|
906
|
-
}), b =
|
|
906
|
+
}), b = S(() => {
|
|
907
907
|
var x;
|
|
908
908
|
return !!((x = h.value) != null && x.tierName);
|
|
909
|
-
}),
|
|
909
|
+
}), g = S(() => {
|
|
910
910
|
var x;
|
|
911
911
|
return (x = h.value) == null ? void 0 : x.isActive;
|
|
912
|
-
}),
|
|
912
|
+
}), V = S(() => {
|
|
913
913
|
var x;
|
|
914
914
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.tierName.startsWith("sub_"));
|
|
915
|
-
}), m =
|
|
915
|
+
}), m = S(() => {
|
|
916
916
|
var x;
|
|
917
917
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "github");
|
|
918
|
-
}), v =
|
|
918
|
+
}), v = S(() => {
|
|
919
919
|
var x;
|
|
920
920
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "discord");
|
|
921
|
-
}), k =
|
|
921
|
+
}), k = S(() => {
|
|
922
922
|
var x;
|
|
923
923
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "patreon");
|
|
924
|
-
}), N =
|
|
924
|
+
}), N = S(() => {
|
|
925
925
|
var x;
|
|
926
926
|
return (x = o.user) == null ? void 0 : x.sponsorships.reduce((I, X) => {
|
|
927
927
|
if (!X.isActive || X.interval === "once" || X.platform === "stripe")
|
|
@@ -930,10 +930,10 @@ const P = W("one", () => {
|
|
|
930
930
|
return I + xt / 100;
|
|
931
931
|
}, 0);
|
|
932
932
|
});
|
|
933
|
-
|
|
934
|
-
f.value && await
|
|
933
|
+
qe(async () => {
|
|
934
|
+
f.value && await j();
|
|
935
935
|
}), B(i, oe), B(f, (x) => {
|
|
936
|
-
x &&
|
|
936
|
+
x && j();
|
|
937
937
|
}, { immediate: !0 }), B(c, (x) => {
|
|
938
938
|
if (x.one !== "subscribe" || o.user)
|
|
939
939
|
return;
|
|
@@ -941,13 +941,13 @@ const P = W("one", () => {
|
|
|
941
941
|
const I = B(() => o.user, (X) => {
|
|
942
942
|
X && (o.dialog = !1, I());
|
|
943
943
|
});
|
|
944
|
-
}, { immediate: !0 }), B(
|
|
944
|
+
}, { immediate: !0 }), B(g, (x, I) => {
|
|
945
945
|
x === !1 && I !== !0 || he();
|
|
946
946
|
});
|
|
947
|
-
async function
|
|
947
|
+
async function j() {
|
|
948
948
|
try {
|
|
949
949
|
n.value = !0;
|
|
950
|
-
const x = await
|
|
950
|
+
const x = await a.post("/one/activate", { sessionId: f.value });
|
|
951
951
|
o.user = x.user;
|
|
952
952
|
const I = new URL(window.location.href);
|
|
953
953
|
I.searchParams.delete("session_id"), history.pushState(null, "", I.toString()), ue();
|
|
@@ -957,17 +957,17 @@ const P = W("one", () => {
|
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
async function ie() {
|
|
960
|
-
window.open(`${
|
|
960
|
+
window.open(`${a.url}/one/manage`, "_blank");
|
|
961
961
|
}
|
|
962
962
|
async function G(x) {
|
|
963
|
-
n.value = !0, window.location.href = `${
|
|
963
|
+
n.value = !0, window.location.href = `${a.url}/one/subscribe?interval=${x}`;
|
|
964
964
|
}
|
|
965
|
-
async function
|
|
965
|
+
async function Se() {
|
|
966
966
|
var x;
|
|
967
967
|
if (h.value)
|
|
968
968
|
try {
|
|
969
969
|
n.value = !0;
|
|
970
|
-
const I = await
|
|
970
|
+
const I = await a.post(
|
|
971
971
|
`/one/cancel?subscriptionId=${(x = h.value) == null ? void 0 : x.tierName}`
|
|
972
972
|
);
|
|
973
973
|
o.user = I.user;
|
|
@@ -976,11 +976,11 @@ const P = W("one", () => {
|
|
|
976
976
|
n.value = !1;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
async function
|
|
979
|
+
async function Ce(x) {
|
|
980
980
|
if (h.value)
|
|
981
981
|
try {
|
|
982
982
|
n.value = !0;
|
|
983
|
-
const I = await
|
|
983
|
+
const I = await a.post("/one/modify", {
|
|
984
984
|
subscriptionId: h.value.tierName,
|
|
985
985
|
interval: x
|
|
986
986
|
});
|
|
@@ -995,7 +995,7 @@ const P = W("one", () => {
|
|
|
995
995
|
if (h.value)
|
|
996
996
|
try {
|
|
997
997
|
n.value = !0;
|
|
998
|
-
const I = await
|
|
998
|
+
const I = await a.post(
|
|
999
999
|
`/one/verify?subscriptionId=${(x = h.value) == null ? void 0 : x.tierName}`
|
|
1000
1000
|
);
|
|
1001
1001
|
o.user = I.user;
|
|
@@ -1007,8 +1007,8 @@ const P = W("one", () => {
|
|
|
1007
1007
|
async function ue() {
|
|
1008
1008
|
try {
|
|
1009
1009
|
n.value = !0;
|
|
1010
|
-
const x = await
|
|
1011
|
-
return l.value = x.subscription,
|
|
1010
|
+
const x = await a.get("/one/info");
|
|
1011
|
+
return l.value = x.subscription, p.value = x.invoices, x;
|
|
1012
1012
|
} catch {
|
|
1013
1013
|
} finally {
|
|
1014
1014
|
n.value = !1;
|
|
@@ -1024,23 +1024,23 @@ const P = W("one", () => {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
return {
|
|
1026
1026
|
info: l,
|
|
1027
|
-
interval:
|
|
1028
|
-
invoices:
|
|
1027
|
+
interval: u,
|
|
1028
|
+
invoices: p,
|
|
1029
1029
|
sessionId: f,
|
|
1030
1030
|
subscription: h,
|
|
1031
1031
|
monthlyTotal: N,
|
|
1032
1032
|
hasBilling: b,
|
|
1033
1033
|
isLoading: n,
|
|
1034
1034
|
isOpen: i,
|
|
1035
|
-
isSubscriber:
|
|
1035
|
+
isSubscriber: g,
|
|
1036
1036
|
github: m,
|
|
1037
1037
|
patreon: k,
|
|
1038
1038
|
discord: v,
|
|
1039
|
-
one:
|
|
1040
|
-
activate:
|
|
1041
|
-
cancel:
|
|
1039
|
+
one: V,
|
|
1040
|
+
activate: j,
|
|
1041
|
+
cancel: Se,
|
|
1042
1042
|
manage: ie,
|
|
1043
|
-
modify:
|
|
1043
|
+
modify: Ce,
|
|
1044
1044
|
resetQuery: oe,
|
|
1045
1045
|
subscribe: G,
|
|
1046
1046
|
subscriptionInfo: ue,
|
|
@@ -1204,7 +1204,7 @@ function Wo() {
|
|
|
1204
1204
|
};
|
|
1205
1205
|
}
|
|
1206
1206
|
const Ke = W("settings", () => {
|
|
1207
|
-
const c = "https://cdn.vuetifyjs.com/docs/images/one/", e = M(), o =
|
|
1207
|
+
const c = "https://cdn.vuetifyjs.com/docs/images/one/", e = M(), o = F(), a = Xe(), n = Wo(), i = {
|
|
1208
1208
|
blackguard: {
|
|
1209
1209
|
"app-bar": c + "suits/blackguard/blackguard-app-bar.png",
|
|
1210
1210
|
drawer: c + "suits/blackguard/blackguard-app-drawer.png",
|
|
@@ -1220,19 +1220,19 @@ const Ke = W("settings", () => {
|
|
|
1220
1220
|
drawer: c + "suits/nebula/nebula-app-drawer.png",
|
|
1221
1221
|
footer: c + "suits/nebula/nebula-app-footer.png"
|
|
1222
1222
|
}
|
|
1223
|
-
}, l =
|
|
1223
|
+
}, l = S(() => {
|
|
1224
1224
|
if (!o.suits.suit || !o.suits.show || !e.isSubscriber)
|
|
1225
1225
|
return {};
|
|
1226
|
-
const
|
|
1227
|
-
for (const
|
|
1228
|
-
f[
|
|
1226
|
+
const p = i[o.suits.suit.toLowerCase()], f = {};
|
|
1227
|
+
for (const u of o.suits.elements)
|
|
1228
|
+
f[u] = p[u];
|
|
1229
1229
|
return f;
|
|
1230
1230
|
});
|
|
1231
|
-
return
|
|
1232
|
-
...
|
|
1231
|
+
return a.themes.value = {
|
|
1232
|
+
...a.themes.value,
|
|
1233
1233
|
...n
|
|
1234
|
-
}, B(() => o.theme, (
|
|
1235
|
-
|
|
1234
|
+
}, B(() => o.theme, (p) => {
|
|
1235
|
+
p === "system" ? a.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (a.global.name.value = p, o.suits.suit = i[p] ? p : ""), o.theme = p;
|
|
1236
1236
|
}, { immediate: !0 }), {
|
|
1237
1237
|
suit: l,
|
|
1238
1238
|
CDN_URL: c
|
|
@@ -1245,7 +1245,7 @@ const Ke = W("settings", () => {
|
|
|
1245
1245
|
},
|
|
1246
1246
|
emits: ["update:modelValue"],
|
|
1247
1247
|
setup(c) {
|
|
1248
|
-
const e = re(c, "modelValue"), o = M(),
|
|
1248
|
+
const e = re(c, "modelValue"), o = M(), a = P(), n = Ke(), i = F(), l = [
|
|
1249
1249
|
{
|
|
1250
1250
|
title: "Light",
|
|
1251
1251
|
subtitle: "A standard light theme.",
|
|
@@ -1296,49 +1296,49 @@ const Ke = W("settings", () => {
|
|
|
1296
1296
|
value: "highContrast",
|
|
1297
1297
|
disabled: !0
|
|
1298
1298
|
}
|
|
1299
|
-
],
|
|
1300
|
-
return B(
|
|
1301
|
-
|
|
1302
|
-
}, { immediate: !0 }), (f,
|
|
1303
|
-
const h =
|
|
1304
|
-
return
|
|
1299
|
+
], p = ve();
|
|
1300
|
+
return B(p, async () => {
|
|
1301
|
+
p.value.one === "settings" && (a.isOpen = !0, await pe(), e.value = !0);
|
|
1302
|
+
}, { immediate: !0 }), (f, u) => {
|
|
1303
|
+
const h = we, b = qo, g = yt, V = xe;
|
|
1304
|
+
return d(), _(V, {
|
|
1305
1305
|
modelValue: e.value,
|
|
1306
|
-
"onUpdate:modelValue":
|
|
1306
|
+
"onUpdate:modelValue": u[5] || (u[5] = (m) => e.value = m),
|
|
1307
1307
|
"prepend-icon": `svg:${t(Rt)}`,
|
|
1308
1308
|
title: "Settings"
|
|
1309
1309
|
}, {
|
|
1310
1310
|
default: r(() => [
|
|
1311
|
-
|
|
1311
|
+
s(ke, null, {
|
|
1312
1312
|
default: r(() => [
|
|
1313
|
-
|
|
1313
|
+
s($e, { scrollable: "" }, {
|
|
1314
1314
|
default: r(() => [
|
|
1315
|
-
|
|
1315
|
+
s(_e, { class: "px-7" }, {
|
|
1316
1316
|
default: r(() => [
|
|
1317
|
-
|
|
1317
|
+
s(h, {
|
|
1318
1318
|
text: "Customize your documentation experience with light and dark themes, as well as a combination of both named.",
|
|
1319
1319
|
title: "Theme"
|
|
1320
1320
|
}),
|
|
1321
|
-
|
|
1321
|
+
s(pt, {
|
|
1322
1322
|
modelValue: t(i).theme,
|
|
1323
|
-
"onUpdate:modelValue":
|
|
1323
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => t(i).theme = m),
|
|
1324
1324
|
mandatory: ""
|
|
1325
1325
|
}, {
|
|
1326
1326
|
default: r(() => [
|
|
1327
|
-
|
|
1327
|
+
s(de, { dense: "" }, {
|
|
1328
1328
|
default: r(() => [
|
|
1329
|
-
(
|
|
1329
|
+
(d(), L(U, null, ne(l, (m, v) => s(K, {
|
|
1330
1330
|
key: v,
|
|
1331
1331
|
cols: "12",
|
|
1332
1332
|
md: "6"
|
|
1333
1333
|
}, {
|
|
1334
1334
|
default: r(() => [
|
|
1335
|
-
|
|
1335
|
+
s(Re, {
|
|
1336
1336
|
value: m.value
|
|
1337
1337
|
}, {
|
|
1338
1338
|
default: r(({ toggle: k, isSelected: N }) => [
|
|
1339
|
-
|
|
1340
|
-
default: r(({ props:
|
|
1341
|
-
|
|
1339
|
+
s(ze, null, {
|
|
1340
|
+
default: r(({ props: j, isHovering: ie }) => [
|
|
1341
|
+
s(E, H({
|
|
1342
1342
|
color: N ? "primary" : "surface-variant",
|
|
1343
1343
|
disabled: m.disabled,
|
|
1344
1344
|
height: "76",
|
|
@@ -1348,9 +1348,9 @@ const Ke = W("settings", () => {
|
|
|
1348
1348
|
subtitle: m.disabled ? "In Development" : m.subtitle,
|
|
1349
1349
|
title: m.title,
|
|
1350
1350
|
variant: "tonal"
|
|
1351
|
-
},
|
|
1351
|
+
}, j, { onClick: k }), {
|
|
1352
1352
|
image: r(() => [
|
|
1353
|
-
|
|
1353
|
+
s(Y, {
|
|
1354
1354
|
style: ot({
|
|
1355
1355
|
filter: N || ie ? "none" : "grayscale(100%)"
|
|
1356
1356
|
})
|
|
@@ -1373,69 +1373,69 @@ const Ke = W("settings", () => {
|
|
|
1373
1373
|
]),
|
|
1374
1374
|
_: 1
|
|
1375
1375
|
}, 8, ["modelValue"]),
|
|
1376
|
-
t(o).isSubscriber ? (
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
], 64)) :
|
|
1376
|
+
t(o).isSubscriber ? (d(), L(U, { key: 0 }, [
|
|
1377
|
+
s(Z, { class: "mt-6 mb-4" }),
|
|
1378
|
+
s(b)
|
|
1379
|
+
], 64)) : w("", !0)
|
|
1380
1380
|
]),
|
|
1381
1381
|
_: 1
|
|
1382
1382
|
}),
|
|
1383
|
-
|
|
1384
|
-
|
|
1383
|
+
s(Z),
|
|
1384
|
+
s(_e, { class: "px-7" }, {
|
|
1385
1385
|
default: r(() => [
|
|
1386
|
-
|
|
1386
|
+
s(h, {
|
|
1387
1387
|
text: "These options change your browsing experience within Vuetify properties",
|
|
1388
1388
|
title: "Experience"
|
|
1389
1389
|
}),
|
|
1390
|
-
t(o).isSubscriber ? (
|
|
1390
|
+
t(o).isSubscriber ? (d(), _(g, {
|
|
1391
1391
|
key: 0,
|
|
1392
1392
|
modelValue: t(i).disableAds,
|
|
1393
|
-
"onUpdate:modelValue":
|
|
1393
|
+
"onUpdate:modelValue": u[1] || (u[1] = (m) => t(i).disableAds = m),
|
|
1394
1394
|
class: "mb-2",
|
|
1395
1395
|
label: "Disable Ads",
|
|
1396
1396
|
messages: "Disable traditional advertisements on all documentation pages."
|
|
1397
|
-
}, null, 8, ["modelValue"])) :
|
|
1398
|
-
|
|
1397
|
+
}, null, 8, ["modelValue"])) : w("", !0),
|
|
1398
|
+
s(g, {
|
|
1399
1399
|
modelValue: t(i).quickbar,
|
|
1400
|
-
"onUpdate:modelValue":
|
|
1400
|
+
"onUpdate:modelValue": u[2] || (u[2] = (m) => t(i).quickbar = m),
|
|
1401
1401
|
label: "Enable Quick Actions",
|
|
1402
1402
|
messages: "Quick actions are located on the Vuetify One user menu and provide quick access to common tasks."
|
|
1403
1403
|
}, null, 8, ["modelValue"])
|
|
1404
1404
|
]),
|
|
1405
1405
|
_: 1
|
|
1406
1406
|
}),
|
|
1407
|
-
|
|
1408
|
-
t(o).isSubscriber ? (
|
|
1407
|
+
s(Z),
|
|
1408
|
+
t(o).isSubscriber ? (d(), _(_e, {
|
|
1409
1409
|
key: 0,
|
|
1410
1410
|
class: "px-7"
|
|
1411
1411
|
}, {
|
|
1412
1412
|
default: r(() => [
|
|
1413
|
-
|
|
1413
|
+
s(h, {
|
|
1414
1414
|
text: "Vuetify will communicate with you through banners and notifications. You can disable these features here or reset your local notification cache.",
|
|
1415
1415
|
title: "Communication"
|
|
1416
1416
|
}),
|
|
1417
|
-
|
|
1417
|
+
s(g, {
|
|
1418
1418
|
modelValue: t(i).notifications.show,
|
|
1419
|
-
"onUpdate:modelValue":
|
|
1419
|
+
"onUpdate:modelValue": u[3] || (u[3] = (m) => t(i).notifications.show = m),
|
|
1420
1420
|
class: "mb-2",
|
|
1421
1421
|
label: "Enable Notifications",
|
|
1422
1422
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
1423
1423
|
}, null, 8, ["modelValue"]),
|
|
1424
|
-
|
|
1424
|
+
s(me, null, {
|
|
1425
1425
|
default: r(() => [
|
|
1426
|
-
t(i).notifications.show ? (
|
|
1426
|
+
t(i).notifications.show ? (d(), _(g, {
|
|
1427
1427
|
key: 0,
|
|
1428
1428
|
modelValue: t(i).notifications.banners,
|
|
1429
|
-
"onUpdate:modelValue":
|
|
1429
|
+
"onUpdate:modelValue": u[4] || (u[4] = (m) => t(i).notifications.banners = m),
|
|
1430
1430
|
label: "Enable Banners",
|
|
1431
1431
|
messages: "Banners are located at the top of the screen and provide a callout for important information."
|
|
1432
|
-
}, null, 8, ["modelValue"])) :
|
|
1432
|
+
}, null, 8, ["modelValue"])) : w("", !0)
|
|
1433
1433
|
]),
|
|
1434
1434
|
_: 1
|
|
1435
1435
|
})
|
|
1436
1436
|
]),
|
|
1437
1437
|
_: 1
|
|
1438
|
-
})) :
|
|
1438
|
+
})) : w("", !0)
|
|
1439
1439
|
]),
|
|
1440
1440
|
_: 1
|
|
1441
1441
|
})
|
|
@@ -1450,19 +1450,19 @@ const Ke = W("settings", () => {
|
|
|
1450
1450
|
}), Zo = /* @__PURE__ */ $({
|
|
1451
1451
|
__name: "VoSettingsListItem",
|
|
1452
1452
|
setup(c) {
|
|
1453
|
-
const e =
|
|
1454
|
-
return (o,
|
|
1453
|
+
const e = A(!1);
|
|
1454
|
+
return (o, a) => {
|
|
1455
1455
|
const n = Go, i = J;
|
|
1456
|
-
return
|
|
1456
|
+
return d(), _(i, {
|
|
1457
1457
|
active: t(e),
|
|
1458
1458
|
link: "",
|
|
1459
1459
|
"prepend-icon": `svg:${t(Et)}`,
|
|
1460
1460
|
title: "Settings"
|
|
1461
1461
|
}, {
|
|
1462
1462
|
default: r(() => [
|
|
1463
|
-
|
|
1463
|
+
s(n, {
|
|
1464
1464
|
modelValue: t(e),
|
|
1465
|
-
"onUpdate:modelValue":
|
|
1465
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => se(e) ? e.value = l : null)
|
|
1466
1466
|
}, null, 8, ["modelValue"])
|
|
1467
1467
|
]),
|
|
1468
1468
|
_: 1
|
|
@@ -1472,24 +1472,24 @@ const Ke = W("settings", () => {
|
|
|
1472
1472
|
}), Qo = { class: "text-caption" }, Yo = /* @__PURE__ */ $({
|
|
1473
1473
|
__name: "VoSubscriptionInvoices",
|
|
1474
1474
|
setup(c) {
|
|
1475
|
-
const e =
|
|
1476
|
-
return (
|
|
1477
|
-
const i =
|
|
1478
|
-
return
|
|
1475
|
+
const e = Ue(), o = P();
|
|
1476
|
+
return (a, n) => {
|
|
1477
|
+
const i = we;
|
|
1478
|
+
return d(), _(de, null, {
|
|
1479
1479
|
default: r(() => [
|
|
1480
|
-
|
|
1480
|
+
s(K, { cols: "12" }, {
|
|
1481
1481
|
default: r(() => [
|
|
1482
|
-
|
|
1482
|
+
s(i, {
|
|
1483
1483
|
text: "View and download your invoice history.",
|
|
1484
1484
|
title: "Invoice History"
|
|
1485
1485
|
}),
|
|
1486
|
-
|
|
1486
|
+
s(E, {
|
|
1487
1487
|
border: "",
|
|
1488
1488
|
height: "450",
|
|
1489
1489
|
rounded: "lg"
|
|
1490
1490
|
}, {
|
|
1491
1491
|
default: r(() => [
|
|
1492
|
-
|
|
1492
|
+
s(Vo, {
|
|
1493
1493
|
items: t(o).invoices,
|
|
1494
1494
|
loading: t(o).isLoading,
|
|
1495
1495
|
sticky: ""
|
|
@@ -1498,10 +1498,10 @@ const Ke = W("settings", () => {
|
|
|
1498
1498
|
y("div", Qo, C(t(e).format(new Date(l.date * 1e3), "fullDateWithWeekday")), 1)
|
|
1499
1499
|
]),
|
|
1500
1500
|
"item.amount": r(({ item: l }) => [
|
|
1501
|
-
|
|
1501
|
+
T(" $" + C(l.amount / 100), 1)
|
|
1502
1502
|
]),
|
|
1503
1503
|
"item.status": r(({ item: l }) => [
|
|
1504
|
-
|
|
1504
|
+
s(te, {
|
|
1505
1505
|
border: "success sm",
|
|
1506
1506
|
class: "text-capitalize",
|
|
1507
1507
|
color: "success",
|
|
@@ -1512,7 +1512,7 @@ const Ke = W("settings", () => {
|
|
|
1512
1512
|
}, null, 8, ["text"])
|
|
1513
1513
|
]),
|
|
1514
1514
|
"item.pdf": r(({ item: l }) => [
|
|
1515
|
-
|
|
1515
|
+
s(q, {
|
|
1516
1516
|
href: l.pdf,
|
|
1517
1517
|
icon: `svg:${t(qt)}`,
|
|
1518
1518
|
size: "small",
|
|
@@ -1540,24 +1540,24 @@ const Ke = W("settings", () => {
|
|
|
1540
1540
|
__name: "VoSubscriptionStatus",
|
|
1541
1541
|
emits: ["change:subscription"],
|
|
1542
1542
|
setup(c, { emit: e }) {
|
|
1543
|
-
const o =
|
|
1544
|
-
if (!
|
|
1543
|
+
const o = Ue(), a = P(), n = e, i = S(() => {
|
|
1544
|
+
if (!a.info)
|
|
1545
1545
|
return;
|
|
1546
|
-
const
|
|
1547
|
-
return o.format(
|
|
1546
|
+
const p = new Date(a.info.currentPeriodEnd * 1e3);
|
|
1547
|
+
return o.format(p, "keyboardDate");
|
|
1548
1548
|
});
|
|
1549
1549
|
async function l() {
|
|
1550
|
-
|
|
1550
|
+
a.interval && (a.isLoading = !0, a.subscribe(a.interval));
|
|
1551
1551
|
}
|
|
1552
|
-
return (
|
|
1553
|
-
const
|
|
1554
|
-
return
|
|
1552
|
+
return (p, f) => {
|
|
1553
|
+
const u = fe;
|
|
1554
|
+
return d(), _(de, null, {
|
|
1555
1555
|
default: r(() => [
|
|
1556
|
-
|
|
1556
|
+
s(K, { cols: "12" }, {
|
|
1557
1557
|
default: r(() => {
|
|
1558
1558
|
var h, b;
|
|
1559
1559
|
return [
|
|
1560
|
-
|
|
1560
|
+
s(E, {
|
|
1561
1561
|
border: "",
|
|
1562
1562
|
flat: "",
|
|
1563
1563
|
"prepend-icon": "$vuetify",
|
|
@@ -1565,47 +1565,47 @@ const Ke = W("settings", () => {
|
|
|
1565
1565
|
title: "Subscription Status"
|
|
1566
1566
|
}, R({
|
|
1567
1567
|
append: r(() => {
|
|
1568
|
-
var
|
|
1568
|
+
var g;
|
|
1569
1569
|
return [
|
|
1570
|
-
t(
|
|
1570
|
+
t(a).hasBilling && ((g = t(a).info) == null ? void 0 : g.status) === "canceled" ? (d(), _(u, {
|
|
1571
1571
|
key: 0,
|
|
1572
1572
|
class: "me-2",
|
|
1573
1573
|
color: "success",
|
|
1574
|
-
loading: t(
|
|
1574
|
+
loading: t(a).isLoading,
|
|
1575
1575
|
"prepend-icon": "$success",
|
|
1576
1576
|
text: "Activate",
|
|
1577
1577
|
variant: "outlined",
|
|
1578
1578
|
onClick: l
|
|
1579
|
-
}, null, 8, ["loading"])) :
|
|
1580
|
-
t(
|
|
1579
|
+
}, null, 8, ["loading"])) : w("", !0),
|
|
1580
|
+
t(a).hasBilling ? (d(), _(u, {
|
|
1581
1581
|
key: 1,
|
|
1582
|
-
loading: t(
|
|
1582
|
+
loading: t(a).isLoading,
|
|
1583
1583
|
"prepend-icon": `svg:${t(Wt)}`,
|
|
1584
1584
|
text: "Billing",
|
|
1585
|
-
onClick: t(
|
|
1586
|
-
}, null, 8, ["loading", "prepend-icon", "onClick"])) :
|
|
1585
|
+
onClick: t(a).manage
|
|
1586
|
+
}, null, 8, ["loading", "prepend-icon", "onClick"])) : w("", !0)
|
|
1587
1587
|
];
|
|
1588
1588
|
}),
|
|
1589
1589
|
_: 2
|
|
1590
1590
|
}, [
|
|
1591
|
-
t(
|
|
1591
|
+
t(a).info ? {
|
|
1592
1592
|
name: "subtitle",
|
|
1593
1593
|
fn: r(() => [
|
|
1594
1594
|
y("div", Jo, [
|
|
1595
|
-
y("span", Xo, C(t(
|
|
1596
|
-
t(
|
|
1595
|
+
y("span", Xo, C(t(a).info.status), 1),
|
|
1596
|
+
t(a).info.items.length ? (d(), L(U, { key: 0 }, [
|
|
1597
1597
|
Ko,
|
|
1598
1598
|
y("span", en, [
|
|
1599
|
-
|
|
1600
|
-
y("span", tn, "/" + C(t(
|
|
1599
|
+
T(" $" + C(t(a).info.items[0].plan.amount / 100), 1),
|
|
1600
|
+
y("span", tn, "/" + C(t(a).interval), 1)
|
|
1601
1601
|
]),
|
|
1602
|
-
|
|
1602
|
+
s(u, {
|
|
1603
1603
|
size: "x-small",
|
|
1604
1604
|
text: "(Change Subscription)",
|
|
1605
1605
|
variant: "text",
|
|
1606
|
-
onClick: f[0] || (f[0] = (
|
|
1606
|
+
onClick: f[0] || (f[0] = (g) => n("change:subscription"))
|
|
1607
1607
|
})
|
|
1608
|
-
], 64)) :
|
|
1608
|
+
], 64)) : w("", !0)
|
|
1609
1609
|
])
|
|
1610
1610
|
]),
|
|
1611
1611
|
key: "0"
|
|
@@ -1613,13 +1613,13 @@ const Ke = W("settings", () => {
|
|
|
1613
1613
|
name: "subtitle",
|
|
1614
1614
|
fn: r(() => [
|
|
1615
1615
|
y("div", { class: "d-flex align-center" }, [
|
|
1616
|
-
|
|
1616
|
+
s(be, {
|
|
1617
1617
|
height: "16",
|
|
1618
1618
|
type: "ossein",
|
|
1619
1619
|
width: "40"
|
|
1620
1620
|
}),
|
|
1621
1621
|
y("span", { class: "mx-1" }, "—"),
|
|
1622
|
-
|
|
1622
|
+
s(be, {
|
|
1623
1623
|
height: "16",
|
|
1624
1624
|
type: "ossein",
|
|
1625
1625
|
width: "80"
|
|
@@ -1631,14 +1631,14 @@ const Ke = W("settings", () => {
|
|
|
1631
1631
|
]), 1024),
|
|
1632
1632
|
y("div", on, [
|
|
1633
1633
|
y("div", null, [
|
|
1634
|
-
((h = t(
|
|
1635
|
-
|
|
1634
|
+
((h = t(a).info) == null ? void 0 : h.status) === "active" ? (d(), L(U, { key: 0 }, [
|
|
1635
|
+
T(" Your plan renews on "),
|
|
1636
1636
|
y("span", nn, C(t(o).format(t(i), "fullDateWithWeekday")), 1),
|
|
1637
|
-
|
|
1638
|
-
], 64)) : (
|
|
1639
|
-
|
|
1640
|
-
y("span", sn, C(t(o).format((b = t(
|
|
1641
|
-
|
|
1637
|
+
T(". ")
|
|
1638
|
+
], 64)) : (d(), L(U, { key: 1 }, [
|
|
1639
|
+
T(" Your plan ends on "),
|
|
1640
|
+
y("span", sn, C(t(o).format((b = t(a).info) == null ? void 0 : b.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1641
|
+
T(". ")
|
|
1642
1642
|
], 64))
|
|
1643
1643
|
])
|
|
1644
1644
|
])
|
|
@@ -1664,33 +1664,33 @@ const Ke = W("settings", () => {
|
|
|
1664
1664
|
'Special role in the <a href="https://discord.vuetifyjs.com/" target="_blank">Vuetify Discord</a>',
|
|
1665
1665
|
'Save and share your playgrounds with <a href="https://play.vuetifyjs.com" target="_blank">Vuetify Play</a>',
|
|
1666
1666
|
"Receive a special label on GitHub created issues and pull requests"
|
|
1667
|
-
],
|
|
1668
|
-
return B(
|
|
1667
|
+
], a = A(!1), n = P();
|
|
1668
|
+
return B(a, async (i) => {
|
|
1669
1669
|
i && n.subscriptionInfo();
|
|
1670
1670
|
}), (i, l) => {
|
|
1671
|
-
const
|
|
1672
|
-
return
|
|
1673
|
-
|
|
1671
|
+
const p = J;
|
|
1672
|
+
return d(), L(U, null, [
|
|
1673
|
+
s(He, { class: "font-weight-black" }, {
|
|
1674
1674
|
default: r(() => [
|
|
1675
|
-
|
|
1675
|
+
T("Perks")
|
|
1676
1676
|
]),
|
|
1677
1677
|
_: 1
|
|
1678
1678
|
}),
|
|
1679
1679
|
rn,
|
|
1680
|
-
|
|
1680
|
+
s(ae, {
|
|
1681
1681
|
class: "py-0",
|
|
1682
1682
|
density: "compact",
|
|
1683
1683
|
lines: !1,
|
|
1684
1684
|
nav: ""
|
|
1685
1685
|
}, {
|
|
1686
1686
|
default: r(() => [
|
|
1687
|
-
(
|
|
1688
|
-
key:
|
|
1687
|
+
(d(), L(U, null, ne(e, (f, u) => s(p, {
|
|
1688
|
+
key: u,
|
|
1689
1689
|
class: "mb-0",
|
|
1690
|
-
"prepend-icon": `svg:${t(
|
|
1690
|
+
"prepend-icon": `svg:${t(Ae)}`
|
|
1691
1691
|
}, {
|
|
1692
1692
|
prepend: r(() => [
|
|
1693
|
-
|
|
1693
|
+
s(D, {
|
|
1694
1694
|
class: "mx-n2",
|
|
1695
1695
|
color: "success",
|
|
1696
1696
|
size: "small"
|
|
@@ -1705,27 +1705,27 @@ const Ke = W("settings", () => {
|
|
|
1705
1705
|
_: 1
|
|
1706
1706
|
}),
|
|
1707
1707
|
cn,
|
|
1708
|
-
|
|
1708
|
+
s(He, { class: "font-weight-black" }, {
|
|
1709
1709
|
default: r(() => [
|
|
1710
|
-
|
|
1710
|
+
T("Up Next")
|
|
1711
1711
|
]),
|
|
1712
1712
|
_: 1
|
|
1713
1713
|
}),
|
|
1714
1714
|
un,
|
|
1715
|
-
|
|
1715
|
+
s(ae, {
|
|
1716
1716
|
class: "py-0",
|
|
1717
1717
|
density: "compact",
|
|
1718
1718
|
lines: !1,
|
|
1719
1719
|
nav: ""
|
|
1720
1720
|
}, {
|
|
1721
1721
|
default: r(() => [
|
|
1722
|
-
(
|
|
1723
|
-
key:
|
|
1722
|
+
(d(), L(U, null, ne(o, (f, u) => s(p, {
|
|
1723
|
+
key: u,
|
|
1724
1724
|
class: "mb-0",
|
|
1725
1725
|
"prepend-icon": `svg:${t(Gt)}`
|
|
1726
1726
|
}, {
|
|
1727
1727
|
prepend: r(() => [
|
|
1728
|
-
|
|
1728
|
+
s(D, {
|
|
1729
1729
|
class: "mx-n2",
|
|
1730
1730
|
size: "small"
|
|
1731
1731
|
})
|
|
@@ -1751,38 +1751,38 @@ const Ke = W("settings", () => {
|
|
|
1751
1751
|
},
|
|
1752
1752
|
emits: ["update:modelValue"],
|
|
1753
1753
|
setup(c) {
|
|
1754
|
-
const e =
|
|
1754
|
+
const e = A(!1), o = re(c, "modelValue"), a = P();
|
|
1755
1755
|
return B(e, async (n) => {
|
|
1756
|
-
n &&
|
|
1757
|
-
}), B(() =>
|
|
1756
|
+
n && a.subscriptionInfo();
|
|
1757
|
+
}), B(() => a.interval, (n) => {
|
|
1758
1758
|
o.value = n;
|
|
1759
|
-
}, { immediate: !0 }), (n, i) => (
|
|
1759
|
+
}, { immediate: !0 }), (n, i) => (d(), _(pt, {
|
|
1760
1760
|
modelValue: o.value,
|
|
1761
1761
|
"onUpdate:modelValue": i[0] || (i[0] = (l) => o.value = l),
|
|
1762
1762
|
mandatory: ""
|
|
1763
1763
|
}, {
|
|
1764
1764
|
default: r(() => [
|
|
1765
|
-
|
|
1765
|
+
s(de, null, {
|
|
1766
1766
|
default: r(() => [
|
|
1767
|
-
|
|
1767
|
+
s(K, {
|
|
1768
1768
|
cols: "12",
|
|
1769
1769
|
md: "6"
|
|
1770
1770
|
}, {
|
|
1771
1771
|
default: r(() => [
|
|
1772
|
-
|
|
1773
|
-
default: r(({ toggle: l, isSelected:
|
|
1774
|
-
|
|
1775
|
-
border:
|
|
1776
|
-
color:
|
|
1777
|
-
"prepend-icon":
|
|
1772
|
+
s(Re, { value: "month" }, {
|
|
1773
|
+
default: r(({ toggle: l, isSelected: p }) => [
|
|
1774
|
+
s(E, {
|
|
1775
|
+
border: p ? "sm primary opacity-100" : "sm",
|
|
1776
|
+
color: p ? "primary" : void 0,
|
|
1777
|
+
"prepend-icon": p ? `svg:${t(Ie)}` : "$radioOff",
|
|
1778
1778
|
rounded: "lg",
|
|
1779
1779
|
subtitle: "$2.99/month",
|
|
1780
1780
|
title: "Monthly",
|
|
1781
|
-
variant:
|
|
1781
|
+
variant: p ? "tonal" : "text",
|
|
1782
1782
|
onClick: l
|
|
1783
1783
|
}, {
|
|
1784
1784
|
prepend: r(() => [
|
|
1785
|
-
|
|
1785
|
+
s(D, { class: "mt-n6" })
|
|
1786
1786
|
]),
|
|
1787
1787
|
_: 2
|
|
1788
1788
|
}, 1032, ["border", "color", "prepend-icon", "variant", "onClick"])
|
|
@@ -1792,28 +1792,28 @@ const Ke = W("settings", () => {
|
|
|
1792
1792
|
]),
|
|
1793
1793
|
_: 1
|
|
1794
1794
|
}),
|
|
1795
|
-
|
|
1795
|
+
s(K, {
|
|
1796
1796
|
cols: "12",
|
|
1797
1797
|
md: "6"
|
|
1798
1798
|
}, {
|
|
1799
1799
|
default: r(() => [
|
|
1800
|
-
|
|
1801
|
-
default: r(({ toggle: l, isSelected:
|
|
1802
|
-
|
|
1803
|
-
border:
|
|
1804
|
-
color:
|
|
1805
|
-
"prepend-icon":
|
|
1800
|
+
s(Re, { value: "year" }, {
|
|
1801
|
+
default: r(({ toggle: l, isSelected: p }) => [
|
|
1802
|
+
s(E, {
|
|
1803
|
+
border: p ? "sm primary opacity-100" : "sm",
|
|
1804
|
+
color: p ? "primary" : void 0,
|
|
1805
|
+
"prepend-icon": p ? `svg:${t(Ie)}` : "$radioOff",
|
|
1806
1806
|
rounded: "lg",
|
|
1807
1807
|
subtitle: "$29.99/year",
|
|
1808
1808
|
title: "Yearly",
|
|
1809
|
-
variant:
|
|
1809
|
+
variant: p ? "tonal" : "text",
|
|
1810
1810
|
onClick: l
|
|
1811
1811
|
}, {
|
|
1812
1812
|
prepend: r(() => [
|
|
1813
|
-
|
|
1813
|
+
s(D, { class: "mt-n6" })
|
|
1814
1814
|
]),
|
|
1815
1815
|
append: r(() => [
|
|
1816
|
-
|
|
1816
|
+
s(te, {
|
|
1817
1817
|
class: "mt-n6",
|
|
1818
1818
|
color: "success",
|
|
1819
1819
|
size: "small",
|
|
@@ -1844,63 +1844,63 @@ const Ke = W("settings", () => {
|
|
|
1844
1844
|
},
|
|
1845
1845
|
emits: ["update:modelValue"],
|
|
1846
1846
|
setup(c) {
|
|
1847
|
-
function e(
|
|
1848
|
-
return new Promise((h) => setTimeout(h,
|
|
1847
|
+
function e(u) {
|
|
1848
|
+
return new Promise((h) => setTimeout(h, u));
|
|
1849
1849
|
}
|
|
1850
|
-
const o = re(c, "modelValue"),
|
|
1851
|
-
B(i, (
|
|
1852
|
-
!
|
|
1853
|
-
}), B(o, async (
|
|
1854
|
-
if (!
|
|
1855
|
-
|
|
1850
|
+
const o = re(c, "modelValue"), a = P(), n = ve(), i = A(a.interval), l = A(a.hasBilling ? "status" : "subscribe"), p = A(!1);
|
|
1851
|
+
B(i, (u) => {
|
|
1852
|
+
!a.isSubscriber || !a.interval || (p.value = u !== a.interval);
|
|
1853
|
+
}), B(o, async (u) => {
|
|
1854
|
+
if (!u || !a.isSubscriber) {
|
|
1855
|
+
u || a.resetQuery();
|
|
1856
1856
|
return;
|
|
1857
1857
|
}
|
|
1858
|
-
|
|
1858
|
+
a.subscriptionInfo();
|
|
1859
1859
|
}), B(n, async () => {
|
|
1860
|
-
!
|
|
1860
|
+
!a.sessionId && !["subscribe", "status"].includes(n.value.one) || (l.value = a.sessionId || n.value.one === "status" ? "status" : "subscribe", a.isOpen = !0, await pe(), o.value = !0);
|
|
1861
1861
|
}, { immediate: !0 });
|
|
1862
1862
|
async function f() {
|
|
1863
|
-
await
|
|
1863
|
+
await a.modify(i.value), await a.subscriptionInfo(), p.value = null, await e(3e3), l.value = "status", await e(300), p.value = !1;
|
|
1864
1864
|
}
|
|
1865
|
-
return (
|
|
1866
|
-
const b =
|
|
1867
|
-
return
|
|
1865
|
+
return (u, h) => {
|
|
1866
|
+
const b = we, g = mn, V = pn, m = an, v = Yo, k = fe, N = xe;
|
|
1867
|
+
return d(), _(N, {
|
|
1868
1868
|
modelValue: o.value,
|
|
1869
|
-
"onUpdate:modelValue": h[4] || (h[4] = (
|
|
1869
|
+
"onUpdate:modelValue": h[4] || (h[4] = (j) => o.value = j),
|
|
1870
1870
|
"prepend-icon": `svg:${t(Zt)}`,
|
|
1871
1871
|
title: "Subscriptions"
|
|
1872
1872
|
}, R({
|
|
1873
1873
|
default: r(() => [
|
|
1874
|
-
|
|
1874
|
+
s(ke, null, {
|
|
1875
1875
|
default: r(() => [
|
|
1876
|
-
|
|
1876
|
+
s($e, { scrollable: "" }, {
|
|
1877
1877
|
default: r(() => [
|
|
1878
1878
|
y("div", fn, [
|
|
1879
|
-
|
|
1879
|
+
s(_e, null, {
|
|
1880
1880
|
default: r(() => [
|
|
1881
|
-
|
|
1881
|
+
s(b, {
|
|
1882
1882
|
text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
|
|
1883
1883
|
title: "Vuetify One"
|
|
1884
1884
|
}),
|
|
1885
|
-
|
|
1885
|
+
s(mt, { "model-value": t(l) }, {
|
|
1886
1886
|
default: r(() => [
|
|
1887
|
-
|
|
1887
|
+
s(ge, { value: "subscribe" }, {
|
|
1888
1888
|
default: r(() => [
|
|
1889
|
-
|
|
1889
|
+
s(g, {
|
|
1890
1890
|
modelValue: t(i),
|
|
1891
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
1891
|
+
"onUpdate:modelValue": h[0] || (h[0] = (j) => se(i) ? i.value = j : null)
|
|
1892
1892
|
}, null, 8, ["modelValue"]),
|
|
1893
1893
|
vn,
|
|
1894
|
-
|
|
1894
|
+
s(V)
|
|
1895
1895
|
]),
|
|
1896
1896
|
_: 1
|
|
1897
1897
|
}),
|
|
1898
|
-
|
|
1898
|
+
s(ge, { value: "status" }, {
|
|
1899
1899
|
default: r(() => [
|
|
1900
|
-
|
|
1901
|
-
"onChange:subscription": h[1] || (h[1] = (
|
|
1900
|
+
s(m, {
|
|
1901
|
+
"onChange:subscription": h[1] || (h[1] = (j) => l.value = "subscribe")
|
|
1902
1902
|
}),
|
|
1903
|
-
|
|
1903
|
+
s(v)
|
|
1904
1904
|
]),
|
|
1905
1905
|
_: 1
|
|
1906
1906
|
})
|
|
@@ -1924,33 +1924,33 @@ const Ke = W("settings", () => {
|
|
|
1924
1924
|
name: "actions",
|
|
1925
1925
|
fn: r(() => [
|
|
1926
1926
|
y("div", hn, [
|
|
1927
|
-
t(
|
|
1927
|
+
t(p) !== !1 ? (d(), _(k, {
|
|
1928
1928
|
key: 0,
|
|
1929
1929
|
block: "",
|
|
1930
1930
|
color: "success",
|
|
1931
|
-
loading: t(
|
|
1932
|
-
"prepend-icon": `svg:${t(
|
|
1933
|
-
readonly: t(
|
|
1931
|
+
loading: t(a).isLoading,
|
|
1932
|
+
"prepend-icon": `svg:${t(p) !== null ? t(Qt) : t(Ie)}`,
|
|
1933
|
+
readonly: t(p) === null,
|
|
1934
1934
|
size: "default",
|
|
1935
|
-
text: t(
|
|
1935
|
+
text: t(p) !== null ? "Modify Subscription" : "Success",
|
|
1936
1936
|
onClick: f
|
|
1937
|
-
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : t(
|
|
1937
|
+
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : t(a).isSubscriber ? (d(), _(k, {
|
|
1938
1938
|
key: 2,
|
|
1939
1939
|
block: "",
|
|
1940
1940
|
"prepend-icon": `svg:${t(Yt)}`,
|
|
1941
1941
|
size: "default",
|
|
1942
1942
|
text: "Manage Subscription",
|
|
1943
|
-
onClick: h[3] || (h[3] = (
|
|
1944
|
-
}, null, 8, ["prepend-icon"])) : (
|
|
1943
|
+
onClick: h[3] || (h[3] = (j) => l.value = "status")
|
|
1944
|
+
}, null, 8, ["prepend-icon"])) : (d(), _(k, {
|
|
1945
1945
|
key: 1,
|
|
1946
1946
|
block: "",
|
|
1947
1947
|
color: t(i) ? "primary" : "disabled",
|
|
1948
1948
|
disabled: !t(i),
|
|
1949
|
-
loading: t(
|
|
1949
|
+
loading: t(a).isLoading,
|
|
1950
1950
|
"prepend-icon": "$vuetify",
|
|
1951
1951
|
size: "default",
|
|
1952
1952
|
text: "Activate Subscription",
|
|
1953
|
-
onClick: h[2] || (h[2] = (
|
|
1953
|
+
onClick: h[2] || (h[2] = (j) => t(a).subscribe(t(i)))
|
|
1954
1954
|
}, null, 8, ["color", "disabled", "loading"]))
|
|
1955
1955
|
])
|
|
1956
1956
|
]),
|
|
@@ -1962,19 +1962,19 @@ const Ke = W("settings", () => {
|
|
|
1962
1962
|
}), gn = /* @__PURE__ */ $({
|
|
1963
1963
|
__name: "VoSubscriptionListItem",
|
|
1964
1964
|
setup(c) {
|
|
1965
|
-
const e =
|
|
1966
|
-
return (o,
|
|
1965
|
+
const e = A(!1);
|
|
1966
|
+
return (o, a) => {
|
|
1967
1967
|
const n = _n, i = J;
|
|
1968
|
-
return
|
|
1968
|
+
return d(), _(i, {
|
|
1969
1969
|
active: t(e),
|
|
1970
1970
|
link: "",
|
|
1971
1971
|
"prepend-icon": `svg:${t(Jt)}`,
|
|
1972
1972
|
title: "Subscriptions"
|
|
1973
1973
|
}, {
|
|
1974
1974
|
default: r(() => [
|
|
1975
|
-
|
|
1975
|
+
s(n, {
|
|
1976
1976
|
modelValue: t(e),
|
|
1977
|
-
"onUpdate:modelValue":
|
|
1977
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => se(e) ? e.value = l : null)
|
|
1978
1978
|
}, null, 8, ["modelValue"])
|
|
1979
1979
|
]),
|
|
1980
1980
|
_: 1
|
|
@@ -1984,7 +1984,7 @@ const Ke = W("settings", () => {
|
|
|
1984
1984
|
}), yn = {
|
|
1985
1985
|
key: 0,
|
|
1986
1986
|
class: "text-success"
|
|
1987
|
-
},
|
|
1987
|
+
}, Te = /* @__PURE__ */ $({
|
|
1988
1988
|
__name: "VoSponsorshipsTimelineItem",
|
|
1989
1989
|
props: {
|
|
1990
1990
|
title: {},
|
|
@@ -1996,21 +1996,21 @@ const Ke = W("settings", () => {
|
|
|
1996
1996
|
sponsorship: {}
|
|
1997
1997
|
},
|
|
1998
1998
|
setup(c) {
|
|
1999
|
-
const e = c, o = Ke(),
|
|
1999
|
+
const e = c, o = Ke(), a = S(() => {
|
|
2000
2000
|
var i, l;
|
|
2001
2001
|
return `$${parseFloat(String((((i = e.sponsorship) == null ? void 0 : i.amount) ?? 0) / 100)).toFixed(2)} /${(l = e.sponsorship) == null ? void 0 : l.interval}`;
|
|
2002
2002
|
});
|
|
2003
2003
|
return (n, i) => {
|
|
2004
|
-
var
|
|
2004
|
+
var p, f;
|
|
2005
2005
|
const l = fe;
|
|
2006
|
-
return
|
|
2007
|
-
"dot-color": (
|
|
2008
|
-
icon: (f = n.sponsorship) != null && f.isActive ? `svg:${t(
|
|
2006
|
+
return d(), _(ko, {
|
|
2007
|
+
"dot-color": (p = n.sponsorship) != null && p.isActive ? "success" : "transparent",
|
|
2008
|
+
icon: (f = n.sponsorship) != null && f.isActive ? `svg:${t(Ae)}` : void 0,
|
|
2009
2009
|
size: "x-small",
|
|
2010
2010
|
width: "100%"
|
|
2011
2011
|
}, {
|
|
2012
2012
|
default: r(() => [
|
|
2013
|
-
|
|
2013
|
+
s(E, {
|
|
2014
2014
|
border: "",
|
|
2015
2015
|
"prepend-avatar": `${t(o).CDN_URL}logos/${n.logo}.png`,
|
|
2016
2016
|
rounded: "lg",
|
|
@@ -2018,35 +2018,35 @@ const Ke = W("settings", () => {
|
|
|
2018
2018
|
variant: "text"
|
|
2019
2019
|
}, {
|
|
2020
2020
|
subtitle: r(() => {
|
|
2021
|
-
var
|
|
2021
|
+
var u;
|
|
2022
2022
|
return [
|
|
2023
|
-
(
|
|
2024
|
-
|
|
2023
|
+
(u = n.sponsorship) != null && u.isActive ? (d(), L("div", yn, [
|
|
2024
|
+
s(D, {
|
|
2025
2025
|
icon: `svg:${t(Xt)}`,
|
|
2026
2026
|
size: "x-small"
|
|
2027
2027
|
}, null, 8, ["icon"]),
|
|
2028
|
-
|
|
2029
|
-
])) : (
|
|
2030
|
-
|
|
2028
|
+
T(" " + C(t(a)), 1)
|
|
2029
|
+
])) : (d(), L(U, { key: 1 }, [
|
|
2030
|
+
T(C(n.text), 1)
|
|
2031
2031
|
], 64))
|
|
2032
2032
|
];
|
|
2033
2033
|
}),
|
|
2034
2034
|
append: r(() => {
|
|
2035
|
-
var
|
|
2035
|
+
var u, h, b, g, V, m;
|
|
2036
2036
|
return [
|
|
2037
|
-
n.disabled ? (
|
|
2037
|
+
n.disabled ? (d(), _(l, {
|
|
2038
2038
|
key: 1,
|
|
2039
2039
|
color: "surface-variant",
|
|
2040
2040
|
readonly: "",
|
|
2041
2041
|
text: "Coming Soon"
|
|
2042
|
-
})) : (
|
|
2042
|
+
})) : (d(), _(l, {
|
|
2043
2043
|
key: 0,
|
|
2044
2044
|
active: !1,
|
|
2045
|
-
color: (
|
|
2045
|
+
color: (u = n.sponsorship) != null && u.isActive ? "success" : "primary",
|
|
2046
2046
|
href: (h = n.sponsorship) != null && h.isActive || n.to ? void 0 : n.href,
|
|
2047
|
-
"prepend-icon": `svg:${(b = n.sponsorship) != null && b.isActive ? t(
|
|
2048
|
-
readonly: (
|
|
2049
|
-
target: (
|
|
2047
|
+
"prepend-icon": `svg:${(b = n.sponsorship) != null && b.isActive ? t(Ie) : t(Oe)}`,
|
|
2048
|
+
readonly: (g = n.sponsorship) == null ? void 0 : g.isActive,
|
|
2049
|
+
target: (V = n.sponsorship) != null && V.isActive || n.to ? void 0 : "_blank",
|
|
2050
2050
|
text: (m = n.sponsorship) != null && m.isActive ? "Active" : "Info",
|
|
2051
2051
|
to: n.to,
|
|
2052
2052
|
width: "88"
|
|
@@ -2064,8 +2064,8 @@ const Ke = W("settings", () => {
|
|
|
2064
2064
|
__name: "VoSponsorshipsTimelineItemPatreon",
|
|
2065
2065
|
setup(c) {
|
|
2066
2066
|
return (e, o) => {
|
|
2067
|
-
const
|
|
2068
|
-
return
|
|
2067
|
+
const a = Te;
|
|
2068
|
+
return d(), _(a, {
|
|
2069
2069
|
disabled: "",
|
|
2070
2070
|
logo: "patreon",
|
|
2071
2071
|
text: "Support Vuetify through Patreon.",
|
|
@@ -2077,9 +2077,9 @@ const Ke = W("settings", () => {
|
|
|
2077
2077
|
__name: "VoSponsorshipsTimelineItemDiscord",
|
|
2078
2078
|
setup(c) {
|
|
2079
2079
|
const e = P();
|
|
2080
|
-
return (o,
|
|
2081
|
-
const n =
|
|
2082
|
-
return
|
|
2080
|
+
return (o, a) => {
|
|
2081
|
+
const n = Te;
|
|
2082
|
+
return d(), _(n, {
|
|
2083
2083
|
href: "https://discord.com/servers/vuetify-340160225338195969",
|
|
2084
2084
|
logo: "discord",
|
|
2085
2085
|
sponsorship: t(e).discord,
|
|
@@ -2092,9 +2092,9 @@ const Ke = W("settings", () => {
|
|
|
2092
2092
|
__name: "VoSponsorshipsTimelineItemGithub",
|
|
2093
2093
|
setup(c) {
|
|
2094
2094
|
const e = P();
|
|
2095
|
-
return (o,
|
|
2096
|
-
const n =
|
|
2097
|
-
return
|
|
2095
|
+
return (o, a) => {
|
|
2096
|
+
const n = Te;
|
|
2097
|
+
return d(), _(n, {
|
|
2098
2098
|
href: "https://github.com/sponsors/johnleider",
|
|
2099
2099
|
logo: "github",
|
|
2100
2100
|
sponsorship: t(e).github,
|
|
@@ -2107,9 +2107,9 @@ const Ke = W("settings", () => {
|
|
|
2107
2107
|
__name: "VoSponsorshipsTimelineItemOne",
|
|
2108
2108
|
setup(c) {
|
|
2109
2109
|
const e = P();
|
|
2110
|
-
return (o,
|
|
2111
|
-
const n =
|
|
2112
|
-
return
|
|
2110
|
+
return (o, a) => {
|
|
2111
|
+
const n = Te;
|
|
2112
|
+
return d(), _(n, {
|
|
2113
2113
|
logo: "one",
|
|
2114
2114
|
sponsorship: t(e).one,
|
|
2115
2115
|
text: "Support Vuetify through Vuetify One.",
|
|
@@ -2122,8 +2122,8 @@ const Ke = W("settings", () => {
|
|
|
2122
2122
|
__name: "VoSponsorshipsTimeline",
|
|
2123
2123
|
setup(c) {
|
|
2124
2124
|
return (e, o) => {
|
|
2125
|
-
const
|
|
2126
|
-
return
|
|
2125
|
+
const a = $n, n = kn, i = Vn, l = bn;
|
|
2126
|
+
return d(), _($o, {
|
|
2127
2127
|
class: "justify-start ms-n7",
|
|
2128
2128
|
"line-inset": "12",
|
|
2129
2129
|
side: "end",
|
|
@@ -2131,10 +2131,10 @@ const Ke = W("settings", () => {
|
|
|
2131
2131
|
"truncate-line": "both"
|
|
2132
2132
|
}, {
|
|
2133
2133
|
default: r(() => [
|
|
2134
|
-
a
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2134
|
+
s(a),
|
|
2135
|
+
s(n),
|
|
2136
|
+
s(i),
|
|
2137
|
+
s(l)
|
|
2138
2138
|
]),
|
|
2139
2139
|
_: 1
|
|
2140
2140
|
});
|
|
@@ -2148,50 +2148,50 @@ const Ke = W("settings", () => {
|
|
|
2148
2148
|
},
|
|
2149
2149
|
emits: ["update:modelValue"],
|
|
2150
2150
|
setup(c) {
|
|
2151
|
-
const e = re(c, "modelValue"), o = ve(),
|
|
2151
|
+
const e = re(c, "modelValue"), o = ve(), a = M(), n = P();
|
|
2152
2152
|
return B(o, async () => {
|
|
2153
2153
|
o.value.one === "sponsorships" && (n.isOpen = !0, await pe(), e.value = !0);
|
|
2154
2154
|
}, { immediate: !0 }), (i, l) => {
|
|
2155
|
-
const
|
|
2156
|
-
return
|
|
2155
|
+
const p = we, f = xn, u = We("v-empty-state"), h = xe;
|
|
2156
|
+
return d(), _(h, {
|
|
2157
2157
|
modelValue: e.value,
|
|
2158
2158
|
"onUpdate:modelValue": l[0] || (l[0] = (b) => e.value = b),
|
|
2159
2159
|
"prepend-icon": `svg:${t(Kt)}`,
|
|
2160
2160
|
title: "Sponsorships"
|
|
2161
2161
|
}, {
|
|
2162
2162
|
default: r(() => [
|
|
2163
|
-
|
|
2163
|
+
s(ke, null, {
|
|
2164
2164
|
default: r(() => [
|
|
2165
|
-
|
|
2165
|
+
s($e, { scrollable: "" }, {
|
|
2166
2166
|
default: r(() => [
|
|
2167
2167
|
y("div", wn, [
|
|
2168
|
-
|
|
2168
|
+
s(_e, { class: "flex-0-0 mb-16 mb-sm-4" }, {
|
|
2169
2169
|
default: r(() => [
|
|
2170
|
-
|
|
2170
|
+
s(p, {
|
|
2171
2171
|
text: "Support Vuetify through GitHub Sponsors, Discord, or Patreon to unlock exclusive benefits and content.",
|
|
2172
2172
|
title: "Support Vuetify"
|
|
2173
2173
|
}),
|
|
2174
|
-
|
|
2174
|
+
s(f)
|
|
2175
2175
|
]),
|
|
2176
2176
|
_: 1
|
|
2177
2177
|
}),
|
|
2178
|
-
|
|
2178
|
+
s(u, {
|
|
2179
2179
|
class: "flex-1-0",
|
|
2180
2180
|
icon: "$vuetify",
|
|
2181
2181
|
"min-height": "auto",
|
|
2182
2182
|
size: "128"
|
|
2183
2183
|
}, {
|
|
2184
2184
|
media: r(() => [
|
|
2185
|
-
|
|
2186
|
-
color: t(
|
|
2185
|
+
s(D, {
|
|
2186
|
+
color: t(a).isSubscriber ? "success" : "error"
|
|
2187
2187
|
}, null, 8, ["color"])
|
|
2188
2188
|
]),
|
|
2189
2189
|
title: r(() => [
|
|
2190
|
-
|
|
2191
|
-
y("span", Sn, C(t(
|
|
2190
|
+
T(" One Status: "),
|
|
2191
|
+
y("span", Sn, C(t(a).isSubscriber ? "Active" : "Inactive"), 1)
|
|
2192
2192
|
]),
|
|
2193
2193
|
text: r(() => [
|
|
2194
|
-
y("div", Cn, C(t(
|
|
2194
|
+
y("div", Cn, C(t(a).isSubscriber ? "You are currently receiving benefits from Vuetify One." : "Login to activate Vuetify One benefits"), 1)
|
|
2195
2195
|
]),
|
|
2196
2196
|
_: 1
|
|
2197
2197
|
})
|
|
@@ -2210,19 +2210,19 @@ const Ke = W("settings", () => {
|
|
|
2210
2210
|
}), In = /* @__PURE__ */ $({
|
|
2211
2211
|
__name: "VoSponsorshipsListItem",
|
|
2212
2212
|
setup(c) {
|
|
2213
|
-
const e =
|
|
2214
|
-
return (o,
|
|
2213
|
+
const e = A(!1);
|
|
2214
|
+
return (o, a) => {
|
|
2215
2215
|
const n = Ln, i = J;
|
|
2216
|
-
return
|
|
2216
|
+
return d(), _(i, {
|
|
2217
2217
|
active: t(e),
|
|
2218
2218
|
link: "",
|
|
2219
2219
|
"prepend-icon": `svg:${t(eo)}`,
|
|
2220
2220
|
title: "Sponsorships"
|
|
2221
2221
|
}, {
|
|
2222
2222
|
default: r(() => [
|
|
2223
|
-
|
|
2223
|
+
s(n, {
|
|
2224
2224
|
modelValue: t(e),
|
|
2225
|
-
"onUpdate:modelValue":
|
|
2225
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => se(e) ? e.value = l : null)
|
|
2226
2226
|
}, null, 8, ["modelValue"])
|
|
2227
2227
|
]),
|
|
2228
2228
|
_: 1
|
|
@@ -2239,7 +2239,7 @@ const Ke = W("settings", () => {
|
|
|
2239
2239
|
}),
|
|
2240
2240
|
emits: ["update:modelValue"],
|
|
2241
2241
|
setup(c) {
|
|
2242
|
-
const e = re(c, "modelValue"), o = ve(),
|
|
2242
|
+
const e = re(c, "modelValue"), o = ve(), a = Ne(), n = M(), i = P(), { smAndUp: l } = le(), p = [
|
|
2243
2243
|
{
|
|
2244
2244
|
title: "Customize",
|
|
2245
2245
|
subtitle: "Customize your Vuetify theme, components, and more with the Vuetify Studio.",
|
|
@@ -2263,22 +2263,22 @@ const Ke = W("settings", () => {
|
|
|
2263
2263
|
o.value.one === "studio" && (i.isOpen = !0, await pe(), e.value = !0);
|
|
2264
2264
|
}, { immediate: !0 });
|
|
2265
2265
|
function f() {
|
|
2266
|
-
e.value = !1,
|
|
2266
|
+
e.value = !1, a.push({ query: { one: "subscribe" } });
|
|
2267
2267
|
}
|
|
2268
|
-
return (
|
|
2269
|
-
const b = fe,
|
|
2270
|
-
return
|
|
2268
|
+
return (u, h) => {
|
|
2269
|
+
const b = fe, g = xe;
|
|
2270
|
+
return d(), _(g, {
|
|
2271
2271
|
modelValue: e.value,
|
|
2272
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2273
|
-
"prepend-icon":
|
|
2272
|
+
"onUpdate:modelValue": h[0] || (h[0] = (V) => e.value = V),
|
|
2273
|
+
"prepend-icon": u.prependIcon,
|
|
2274
2274
|
title: "Vuetify Studio"
|
|
2275
2275
|
}, {
|
|
2276
2276
|
default: r(() => [
|
|
2277
|
-
|
|
2277
|
+
s(ke, null, {
|
|
2278
2278
|
default: r(() => [
|
|
2279
|
-
|
|
2279
|
+
s($e, { scrollable: "" }, {
|
|
2280
2280
|
default: r(() => [
|
|
2281
|
-
|
|
2281
|
+
s(Y, {
|
|
2282
2282
|
"content-class": "d-flex align-center justify-center flex-column",
|
|
2283
2283
|
cover: "",
|
|
2284
2284
|
gradient: "to top right, rgba(var(--v-theme-primary),.8), rgba(0,0,0,.9)",
|
|
@@ -2288,16 +2288,16 @@ const Ke = W("settings", () => {
|
|
|
2288
2288
|
src: "https://cdn.vuetifyjs.com/docs/images/one/studio/hero.png"
|
|
2289
2289
|
}, {
|
|
2290
2290
|
default: r(() => [
|
|
2291
|
-
|
|
2291
|
+
s(E, {
|
|
2292
2292
|
class: "text-center pa-3",
|
|
2293
2293
|
color: "surface",
|
|
2294
2294
|
flat: "",
|
|
2295
2295
|
rounded: "xl"
|
|
2296
2296
|
}, {
|
|
2297
2297
|
text: r(() => [
|
|
2298
|
-
|
|
2298
|
+
s(D, {
|
|
2299
2299
|
color: "accent",
|
|
2300
|
-
icon:
|
|
2300
|
+
icon: u.prependIcon,
|
|
2301
2301
|
size: "80"
|
|
2302
2302
|
}, null, 8, ["icon"]),
|
|
2303
2303
|
Dn,
|
|
@@ -2308,17 +2308,17 @@ const Ke = W("settings", () => {
|
|
|
2308
2308
|
]),
|
|
2309
2309
|
_: 1
|
|
2310
2310
|
}),
|
|
2311
|
-
(
|
|
2311
|
+
(d(), L(U, null, ne(p, (V, m) => s(ye, {
|
|
2312
2312
|
key: m,
|
|
2313
2313
|
class: "py-8",
|
|
2314
2314
|
color: m % 2 === 0 ? "surface-light" : "surface-variant"
|
|
2315
2315
|
}, {
|
|
2316
2316
|
default: r(() => [
|
|
2317
|
-
|
|
2317
|
+
s(tt, null, {
|
|
2318
2318
|
default: r(() => [
|
|
2319
|
-
|
|
2319
|
+
s(de, { align: "center" }, {
|
|
2320
2320
|
default: r(() => [
|
|
2321
|
-
|
|
2321
|
+
s(K, {
|
|
2322
2322
|
cols: "12",
|
|
2323
2323
|
offset: "0",
|
|
2324
2324
|
"offset-sm": "1",
|
|
@@ -2326,24 +2326,24 @@ const Ke = W("settings", () => {
|
|
|
2326
2326
|
sm: "6"
|
|
2327
2327
|
}, {
|
|
2328
2328
|
default: r(() => [
|
|
2329
|
-
y("strong", On, C(
|
|
2330
|
-
y("p", Nn, C(
|
|
2331
|
-
y("p", Bn, C(
|
|
2329
|
+
y("strong", On, C(V.title), 1),
|
|
2330
|
+
y("p", Nn, C(V.subtitle), 1),
|
|
2331
|
+
y("p", Bn, C(V.text), 1)
|
|
2332
2332
|
]),
|
|
2333
2333
|
_: 2
|
|
2334
2334
|
}, 1032, ["order"]),
|
|
2335
|
-
|
|
2335
|
+
s(K, {
|
|
2336
2336
|
cols: "12",
|
|
2337
2337
|
offset: "0",
|
|
2338
2338
|
"offset-sm": m % 2,
|
|
2339
2339
|
sm: "4"
|
|
2340
2340
|
}, {
|
|
2341
2341
|
default: r(() => [
|
|
2342
|
-
|
|
2342
|
+
s(Y, {
|
|
2343
2343
|
cover: "",
|
|
2344
2344
|
height: t(l) ? 180 : void 0,
|
|
2345
2345
|
rounded: "lg",
|
|
2346
|
-
src:
|
|
2346
|
+
src: V.image
|
|
2347
2347
|
}, null, 8, ["height", "src"])
|
|
2348
2348
|
]),
|
|
2349
2349
|
_: 2
|
|
@@ -2357,18 +2357,18 @@ const Ke = W("settings", () => {
|
|
|
2357
2357
|
]),
|
|
2358
2358
|
_: 2
|
|
2359
2359
|
}, 1032, ["color"])), 64)),
|
|
2360
|
-
t(n).isSubscriber ?
|
|
2360
|
+
t(n).isSubscriber ? w("", !0) : (d(), _(ye, {
|
|
2361
2361
|
key: 0,
|
|
2362
2362
|
class: "text-center py-6"
|
|
2363
2363
|
}, {
|
|
2364
2364
|
default: r(() => [
|
|
2365
|
-
|
|
2365
|
+
s(tt, null, {
|
|
2366
2366
|
default: r(() => [
|
|
2367
|
-
|
|
2367
|
+
s(de, { justify: "center" }, {
|
|
2368
2368
|
default: r(() => [
|
|
2369
|
-
|
|
2369
|
+
s(K, { cols: "6" }, {
|
|
2370
2370
|
default: r(() => [
|
|
2371
|
-
|
|
2371
|
+
s(Q, {
|
|
2372
2372
|
image: "https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
2373
2373
|
size: "64"
|
|
2374
2374
|
}),
|
|
@@ -2376,9 +2376,9 @@ const Ke = W("settings", () => {
|
|
|
2376
2376
|
]),
|
|
2377
2377
|
_: 1
|
|
2378
2378
|
}),
|
|
2379
|
-
|
|
2379
|
+
s(K, { cols: "12" }, {
|
|
2380
2380
|
default: r(() => [
|
|
2381
|
-
|
|
2381
|
+
s(b, {
|
|
2382
2382
|
"prepend-icon": "$vuetify",
|
|
2383
2383
|
size: "x-large",
|
|
2384
2384
|
text: "Subscribe Today",
|
|
@@ -2410,35 +2410,35 @@ const Ke = W("settings", () => {
|
|
|
2410
2410
|
}), Fn = /* @__PURE__ */ $({
|
|
2411
2411
|
__name: "VoStudioNavItem",
|
|
2412
2412
|
setup(c) {
|
|
2413
|
-
const e =
|
|
2413
|
+
const e = A(!1), o = [
|
|
2414
2414
|
["M12.435 14.3194L12 21L6.87046 12.2799L12.435 14.3194Z", 1],
|
|
2415
2415
|
["M22 4L12.435 14.3194L6.87046 12.2799L9.26479 7.61064L12.435 14.3194L12 21L22 4Z", 0.5],
|
|
2416
2416
|
["M12.435 14.3194L22 4L9.26479 7.61064L12.435 14.3194Z", 1],
|
|
2417
2417
|
["M2 4L6.87046 12.2799L9.26479 7.61064L2 4Z", 1]
|
|
2418
2418
|
];
|
|
2419
|
-
return (
|
|
2419
|
+
return (a, n) => {
|
|
2420
2420
|
const i = zn, l = J;
|
|
2421
|
-
return
|
|
2421
|
+
return d(), _(l, {
|
|
2422
2422
|
active: t(e),
|
|
2423
2423
|
link: "",
|
|
2424
2424
|
"prepend-icon": o,
|
|
2425
2425
|
title: "Vuetify Studio"
|
|
2426
2426
|
}, {
|
|
2427
2427
|
append: r(() => [
|
|
2428
|
-
|
|
2428
|
+
s(te, {
|
|
2429
2429
|
label: "",
|
|
2430
2430
|
size: "x-small"
|
|
2431
2431
|
}, {
|
|
2432
2432
|
default: r(() => [
|
|
2433
|
-
|
|
2433
|
+
T("COMING SOON")
|
|
2434
2434
|
]),
|
|
2435
2435
|
_: 1
|
|
2436
2436
|
})
|
|
2437
2437
|
]),
|
|
2438
2438
|
default: r(() => [
|
|
2439
|
-
|
|
2439
|
+
s(i, {
|
|
2440
2440
|
modelValue: t(e),
|
|
2441
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2441
|
+
"onUpdate:modelValue": n[0] || (n[0] = (p) => se(e) ? e.value = p : null),
|
|
2442
2442
|
"prepend-icon": o
|
|
2443
2443
|
}, null, 8, ["modelValue"])
|
|
2444
2444
|
]),
|
|
@@ -2458,72 +2458,72 @@ const Ke = W("settings", () => {
|
|
|
2458
2458
|
items: {}
|
|
2459
2459
|
},
|
|
2460
2460
|
setup(c) {
|
|
2461
|
-
const e =
|
|
2461
|
+
const e = Ue(), o = le(), a = F();
|
|
2462
2462
|
function n(l) {
|
|
2463
|
-
return
|
|
2463
|
+
return a.notifications.last.banner.includes(l);
|
|
2464
2464
|
}
|
|
2465
2465
|
function i(l) {
|
|
2466
|
-
n(l.slug) ?
|
|
2466
|
+
n(l.slug) ? a.notifications.last.banner = a.notifications.last.banner.filter((p) => p !== l.slug) : a.notifications.last.banner.push(l.slug);
|
|
2467
2467
|
}
|
|
2468
|
-
return (l,
|
|
2469
|
-
const f =
|
|
2470
|
-
return
|
|
2468
|
+
return (l, p) => {
|
|
2469
|
+
const f = We("v-empty-state");
|
|
2470
|
+
return d(), _(ae, {
|
|
2471
2471
|
class: "py-0",
|
|
2472
2472
|
height: "100%",
|
|
2473
2473
|
lines: "three"
|
|
2474
2474
|
}, {
|
|
2475
2475
|
default: r(() => [
|
|
2476
|
-
l.items.length ? (
|
|
2477
|
-
(
|
|
2476
|
+
l.items.length ? (d(), L("div", Mn, [
|
|
2477
|
+
(d(!0), L(U, null, ne(l.items, (u) => {
|
|
2478
2478
|
var h;
|
|
2479
|
-
return
|
|
2480
|
-
key:
|
|
2479
|
+
return d(), L("div", {
|
|
2480
|
+
key: u.slug,
|
|
2481
2481
|
class: "mb-4"
|
|
2482
2482
|
}, [
|
|
2483
|
-
|
|
2484
|
-
color:
|
|
2483
|
+
s(E, {
|
|
2484
|
+
color: u.metadata.color,
|
|
2485
2485
|
flat: "",
|
|
2486
|
-
image: (h =
|
|
2486
|
+
image: (h = u.metadata.images.bg) == null ? void 0 : h.url,
|
|
2487
2487
|
rounded: "b-0",
|
|
2488
|
-
title:
|
|
2488
|
+
title: u.title
|
|
2489
2489
|
}, {
|
|
2490
2490
|
prepend: r(() => {
|
|
2491
2491
|
var b;
|
|
2492
2492
|
return [
|
|
2493
|
-
|
|
2494
|
-
image: (b =
|
|
2493
|
+
s(Q, {
|
|
2494
|
+
image: (b = u.metadata.images.logo) == null ? void 0 : b.url
|
|
2495
2495
|
}, null, 8, ["image"])
|
|
2496
2496
|
];
|
|
2497
2497
|
}),
|
|
2498
2498
|
image: r(() => [
|
|
2499
|
-
|
|
2499
|
+
s(Y, { position: "right" })
|
|
2500
2500
|
]),
|
|
2501
2501
|
_: 2
|
|
2502
2502
|
}, 1032, ["color", "image", "title"]),
|
|
2503
|
-
|
|
2504
|
-
default: r(({ props: b, isHovering:
|
|
2505
|
-
|
|
2503
|
+
s(ze, null, {
|
|
2504
|
+
default: r(({ props: b, isHovering: g }) => [
|
|
2505
|
+
s(ye, H(b, {
|
|
2506
2506
|
border: "",
|
|
2507
2507
|
class: "px-8 pt-2 pb-4 position-relative",
|
|
2508
2508
|
rounded: "b"
|
|
2509
2509
|
}), {
|
|
2510
2510
|
default: r(() => [
|
|
2511
|
-
|
|
2511
|
+
s(ee, {
|
|
2512
2512
|
location: "bottom",
|
|
2513
|
-
text: n(
|
|
2513
|
+
text: n(u.slug) ? "Mark as unread" : "Mark as read"
|
|
2514
2514
|
}, {
|
|
2515
|
-
activator: r(({ props:
|
|
2516
|
-
|
|
2515
|
+
activator: r(({ props: V }) => [
|
|
2516
|
+
s(Be, { "hide-on-leave": "" }, {
|
|
2517
2517
|
default: r(() => [
|
|
2518
|
-
|
|
2518
|
+
De(s(q, H(V, {
|
|
2519
2519
|
class: "ms-auto float-right",
|
|
2520
|
-
icon: `svg:${n(
|
|
2520
|
+
icon: `svg:${n(u.slug) ? t(lt) : t(rt)}`,
|
|
2521
2521
|
"mdi-email-variant": "",
|
|
2522
2522
|
size: "small",
|
|
2523
2523
|
variant: "text",
|
|
2524
|
-
onClick: (m) => i(
|
|
2524
|
+
onClick: (m) => i(u)
|
|
2525
2525
|
}), null, 16, ["icon", "onClick"]), [
|
|
2526
|
-
[
|
|
2526
|
+
[Ge, g || t(o).mobile.value]
|
|
2527
2527
|
])
|
|
2528
2528
|
]),
|
|
2529
2529
|
_: 2
|
|
@@ -2531,23 +2531,23 @@ const Ke = W("settings", () => {
|
|
|
2531
2531
|
]),
|
|
2532
2532
|
_: 2
|
|
2533
2533
|
}, 1032, ["text"]),
|
|
2534
|
-
y("div", Pn, C(
|
|
2535
|
-
y("div", Hn, C(t(e).format(
|
|
2536
|
-
y("div", Rn, C(
|
|
2537
|
-
|
|
2538
|
-
href:
|
|
2539
|
-
target:
|
|
2540
|
-
to:
|
|
2534
|
+
y("div", Pn, C(u.metadata.text), 1),
|
|
2535
|
+
y("div", Hn, C(t(e).format(u.created_at, "fullDateWithWeekday")), 1),
|
|
2536
|
+
y("div", Rn, C(u.metadata.subtext), 1),
|
|
2537
|
+
s(te, H({
|
|
2538
|
+
href: u.metadata.link.startsWith("http") ? u.metadata.link : void 0,
|
|
2539
|
+
target: u.metadata.link.startsWith("http") ? "_blank" : void 0,
|
|
2540
|
+
to: u.metadata.link.startsWith("http") ? void 0 : u.metadata.link
|
|
2541
2541
|
}, {
|
|
2542
|
-
"append-icon": `svg:${t(
|
|
2542
|
+
"append-icon": `svg:${t(Oe)}`,
|
|
2543
2543
|
border: "",
|
|
2544
2544
|
label: "",
|
|
2545
2545
|
size: "small",
|
|
2546
|
-
text:
|
|
2546
|
+
text: u.metadata.link_text,
|
|
2547
2547
|
variant: "text"
|
|
2548
2548
|
}), {
|
|
2549
2549
|
append: r(() => [
|
|
2550
|
-
|
|
2550
|
+
s(D, { size: "12" })
|
|
2551
2551
|
]),
|
|
2552
2552
|
_: 2
|
|
2553
2553
|
}, 1040, ["append-icon", "text"])
|
|
@@ -2559,13 +2559,13 @@ const Ke = W("settings", () => {
|
|
|
2559
2559
|
}, 1024)
|
|
2560
2560
|
]);
|
|
2561
2561
|
}), 128))
|
|
2562
|
-
])) : (
|
|
2563
|
-
|
|
2562
|
+
])) : (d(), L("div", Tn, [
|
|
2563
|
+
s(f, {
|
|
2564
2564
|
icon: "$vuetify",
|
|
2565
2565
|
size: "256"
|
|
2566
2566
|
}, {
|
|
2567
2567
|
media: r(() => [
|
|
2568
|
-
|
|
2568
|
+
s(D, { color: "medium-emphasis" })
|
|
2569
2569
|
]),
|
|
2570
2570
|
title: r(() => [
|
|
2571
2571
|
jn
|
|
@@ -2585,7 +2585,7 @@ const Ke = W("settings", () => {
|
|
|
2585
2585
|
notification: {}
|
|
2586
2586
|
},
|
|
2587
2587
|
setup(c) {
|
|
2588
|
-
const e = c, o =
|
|
2588
|
+
const e = c, o = F(), a = Ue(), n = le(), i = S(() => {
|
|
2589
2589
|
const f = e.notification.metadata ?? { action: "" };
|
|
2590
2590
|
return {
|
|
2591
2591
|
href: f.action.startsWith("http") ? f.action : void 0,
|
|
@@ -2600,39 +2600,39 @@ const Ke = W("settings", () => {
|
|
|
2600
2600
|
function l(f) {
|
|
2601
2601
|
return o.notifications.read.includes(f);
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2604
|
-
e.demo || (l(f.slug) ? o.notifications.read = o.notifications.read.filter((
|
|
2603
|
+
function p(f) {
|
|
2604
|
+
e.demo || (l(f.slug) ? o.notifications.read = o.notifications.read.filter((u) => u !== f.slug) : o.notifications.read.push(f.slug));
|
|
2605
2605
|
}
|
|
2606
|
-
return (f,
|
|
2606
|
+
return (f, u) => {
|
|
2607
2607
|
const h = J;
|
|
2608
|
-
return
|
|
2609
|
-
default: r(({ isHovering: b, props:
|
|
2610
|
-
|
|
2608
|
+
return d(), _(ze, null, {
|
|
2609
|
+
default: r(({ isHovering: b, props: g }) => [
|
|
2610
|
+
s(h, H(g, { class: "py-4 mb-0" }), {
|
|
2611
2611
|
prepend: r(() => [
|
|
2612
2612
|
y("div", qn, C(f.notification.metadata.emoji), 1)
|
|
2613
2613
|
]),
|
|
2614
2614
|
append: r(() => [
|
|
2615
|
-
|
|
2615
|
+
s(xo, {
|
|
2616
2616
|
class: "mt-n3",
|
|
2617
2617
|
width: "56"
|
|
2618
2618
|
}, {
|
|
2619
2619
|
default: r(() => [
|
|
2620
|
-
|
|
2620
|
+
s(ee, {
|
|
2621
2621
|
location: "bottom",
|
|
2622
2622
|
text: l(f.notification.slug) ? "Mark as unread" : "Mark as read"
|
|
2623
2623
|
}, {
|
|
2624
|
-
activator: r(({ props:
|
|
2625
|
-
|
|
2624
|
+
activator: r(({ props: V }) => [
|
|
2625
|
+
s(Be, { "hide-on-leave": "" }, {
|
|
2626
2626
|
default: r(() => [
|
|
2627
|
-
|
|
2627
|
+
De(s(q, H(V, {
|
|
2628
2628
|
class: "ms-auto",
|
|
2629
2629
|
icon: `svg:${l(f.notification.slug) ? t(lt) : t(rt)}`,
|
|
2630
2630
|
"mdi-email-variant": "",
|
|
2631
2631
|
size: "small",
|
|
2632
2632
|
variant: "text",
|
|
2633
|
-
onClick:
|
|
2633
|
+
onClick: u[0] || (u[0] = (m) => p(f.notification))
|
|
2634
2634
|
}), null, 16, ["icon"]), [
|
|
2635
|
-
[
|
|
2635
|
+
[Ge, b || t(n).mobile.value]
|
|
2636
2636
|
])
|
|
2637
2637
|
]),
|
|
2638
2638
|
_: 2
|
|
@@ -2645,16 +2645,16 @@ const Ke = W("settings", () => {
|
|
|
2645
2645
|
}, 1024)
|
|
2646
2646
|
]),
|
|
2647
2647
|
default: r(() => [
|
|
2648
|
-
|
|
2648
|
+
s(ct, { class: "text-wrap text-h6 mb-1" }, {
|
|
2649
2649
|
default: r(() => [
|
|
2650
2650
|
y("div", Wn, C(f.notification.title), 1)
|
|
2651
2651
|
]),
|
|
2652
2652
|
_: 1
|
|
2653
2653
|
}),
|
|
2654
|
-
y("div", Gn, C(t(
|
|
2654
|
+
y("div", Gn, C(t(a).format(f.notification.created_at, "fullDateWithWeekday")), 1),
|
|
2655
2655
|
y("div", Zn, C(f.notification.metadata.text), 1),
|
|
2656
|
-
|
|
2657
|
-
"append-icon": `svg:${t(
|
|
2656
|
+
s(te, H({
|
|
2657
|
+
"append-icon": `svg:${t(Oe)}`
|
|
2658
2658
|
}, t(i), {
|
|
2659
2659
|
border: "",
|
|
2660
2660
|
label: "",
|
|
@@ -2663,7 +2663,7 @@ const Ke = W("settings", () => {
|
|
|
2663
2663
|
variant: "text"
|
|
2664
2664
|
}), {
|
|
2665
2665
|
append: r(() => [
|
|
2666
|
-
|
|
2666
|
+
s(D, { size: "12" })
|
|
2667
2667
|
]),
|
|
2668
2668
|
_: 1
|
|
2669
2669
|
}, 16, ["append-icon", "text"])
|
|
@@ -2685,25 +2685,25 @@ const Ke = W("settings", () => {
|
|
|
2685
2685
|
},
|
|
2686
2686
|
setup(c) {
|
|
2687
2687
|
return (e, o) => {
|
|
2688
|
-
const
|
|
2689
|
-
return
|
|
2688
|
+
const a = We("v-empty-state"), n = Qn;
|
|
2689
|
+
return d(), _(ae, {
|
|
2690
2690
|
class: "py-0",
|
|
2691
2691
|
height: "100%",
|
|
2692
2692
|
lines: "three"
|
|
2693
2693
|
}, {
|
|
2694
2694
|
default: r(() => [
|
|
2695
|
-
e.items.length ? (
|
|
2695
|
+
e.items.length ? (d(!0), L(U, { key: 1 }, ne(e.items, (i, l) => (d(), L(U, {
|
|
2696
2696
|
key: i.slug
|
|
2697
2697
|
}, [
|
|
2698
|
-
l !== 0 ? (
|
|
2699
|
-
|
|
2700
|
-
], 64))), 128)) : (
|
|
2701
|
-
a
|
|
2698
|
+
l !== 0 ? (d(), _(Z, { key: 0 })) : w("", !0),
|
|
2699
|
+
s(n, { notification: i }, null, 8, ["notification"])
|
|
2700
|
+
], 64))), 128)) : (d(), L("div", Yn, [
|
|
2701
|
+
s(a, {
|
|
2702
2702
|
icon: "$vuetify",
|
|
2703
2703
|
size: "256"
|
|
2704
2704
|
}, {
|
|
2705
2705
|
media: r(() => [
|
|
2706
|
-
|
|
2706
|
+
s(D, { color: "medium-emphasis" })
|
|
2707
2707
|
]),
|
|
2708
2708
|
title: r(() => [
|
|
2709
2709
|
Jn
|
|
@@ -2717,41 +2717,41 @@ const Ke = W("settings", () => {
|
|
|
2717
2717
|
};
|
|
2718
2718
|
}
|
|
2719
2719
|
}), bt = W("site", () => {
|
|
2720
|
-
const c =
|
|
2720
|
+
const c = O([]), e = O();
|
|
2721
2721
|
return {
|
|
2722
2722
|
id: c,
|
|
2723
2723
|
url: e
|
|
2724
2724
|
};
|
|
2725
|
-
}),
|
|
2726
|
-
const c = ce(), e = bt(), o =
|
|
2725
|
+
}), je = W("banners", () => {
|
|
2726
|
+
const c = ce(), e = bt(), o = F(), a = O([]), n = O([]), i = O(), l = A(!1), p = S(() => {
|
|
2727
2727
|
if (i.value)
|
|
2728
2728
|
return i.value;
|
|
2729
2729
|
if (f.value)
|
|
2730
2730
|
return f.value;
|
|
2731
2731
|
if (o.notifications.banners)
|
|
2732
|
-
return
|
|
2732
|
+
return a.value.find(({
|
|
2733
2733
|
slug: v,
|
|
2734
2734
|
metadata: {
|
|
2735
2735
|
site: k,
|
|
2736
2736
|
active: N
|
|
2737
2737
|
}
|
|
2738
|
-
}) => !N || o.notifications.last.banner.includes(v) ? !1 : k.includes("dev") && !1 || k.includes("*") ? !0 : k.some((
|
|
2739
|
-
}), f =
|
|
2738
|
+
}) => !N || o.notifications.last.banner.includes(v) ? !1 : k.includes("dev") && !1 || k.includes("*") ? !0 : k.some((j) => e.id.includes(j)));
|
|
2739
|
+
}), f = S(() => a.value.find(({
|
|
2740
2740
|
metadata: {
|
|
2741
2741
|
site: v,
|
|
2742
2742
|
active: k
|
|
2743
2743
|
}
|
|
2744
2744
|
}) => k ? v.includes("server") : !1));
|
|
2745
|
-
async function
|
|
2745
|
+
async function u() {
|
|
2746
2746
|
try {
|
|
2747
2747
|
l.value = !0;
|
|
2748
2748
|
const v = await c.get("/one/banners");
|
|
2749
|
-
|
|
2749
|
+
a.value = v.banners;
|
|
2750
2750
|
} catch {
|
|
2751
2751
|
} finally {
|
|
2752
2752
|
l.value = !1;
|
|
2753
2753
|
}
|
|
2754
|
-
return
|
|
2754
|
+
return a.value;
|
|
2755
2755
|
}
|
|
2756
2756
|
async function h(v) {
|
|
2757
2757
|
try {
|
|
@@ -2776,7 +2776,7 @@ const Ke = W("settings", () => {
|
|
|
2776
2776
|
l.value = !1;
|
|
2777
2777
|
}
|
|
2778
2778
|
}
|
|
2779
|
-
async function
|
|
2779
|
+
async function g(v, k) {
|
|
2780
2780
|
try {
|
|
2781
2781
|
l.value = !0;
|
|
2782
2782
|
const N = await c.form(
|
|
@@ -2789,7 +2789,7 @@ const Ke = W("settings", () => {
|
|
|
2789
2789
|
l.value = !1;
|
|
2790
2790
|
}
|
|
2791
2791
|
}
|
|
2792
|
-
async function
|
|
2792
|
+
async function V() {
|
|
2793
2793
|
}
|
|
2794
2794
|
async function m() {
|
|
2795
2795
|
try {
|
|
@@ -2800,21 +2800,21 @@ const Ke = W("settings", () => {
|
|
|
2800
2800
|
} finally {
|
|
2801
2801
|
l.value = !1;
|
|
2802
2802
|
}
|
|
2803
|
-
return
|
|
2803
|
+
return a.value;
|
|
2804
2804
|
}
|
|
2805
2805
|
return {
|
|
2806
|
-
all:
|
|
2806
|
+
all: a,
|
|
2807
2807
|
aall: n,
|
|
2808
2808
|
isLoading: l,
|
|
2809
2809
|
server: f,
|
|
2810
|
-
banner:
|
|
2810
|
+
banner: p,
|
|
2811
2811
|
record: i,
|
|
2812
2812
|
admin: m,
|
|
2813
|
-
destroy:
|
|
2814
|
-
index:
|
|
2813
|
+
destroy: V,
|
|
2814
|
+
index: u,
|
|
2815
2815
|
show: h,
|
|
2816
2816
|
store: b,
|
|
2817
|
-
update:
|
|
2817
|
+
update: g
|
|
2818
2818
|
};
|
|
2819
2819
|
}), Kn = { class: "text-caption" }, es = { class: "text-caption" }, ts = /* @__PURE__ */ $({
|
|
2820
2820
|
__name: "VoNotificationsDialog",
|
|
@@ -2824,40 +2824,40 @@ const Ke = W("settings", () => {
|
|
|
2824
2824
|
},
|
|
2825
2825
|
emits: ["update:modelValue"],
|
|
2826
2826
|
setup(c) {
|
|
2827
|
-
const e = le(), o = ve(),
|
|
2827
|
+
const e = le(), o = ve(), a = je(), n = Fe(), i = P(), l = F(), p = A(["read"]), f = re(c, "modelValue");
|
|
2828
2828
|
return B(o, async () => {
|
|
2829
2829
|
if (o.value.one !== "notifications") {
|
|
2830
2830
|
f.value && (f.value = !1);
|
|
2831
2831
|
return;
|
|
2832
2832
|
}
|
|
2833
2833
|
i.isOpen = !0, await pe(), f.value = !0;
|
|
2834
|
-
}, { immediate: !0 }), (
|
|
2835
|
-
const b = J,
|
|
2836
|
-
return
|
|
2834
|
+
}, { immediate: !0 }), (u, h) => {
|
|
2835
|
+
const b = J, g = Xn, V = En, m = xe;
|
|
2836
|
+
return d(), _(m, {
|
|
2837
2837
|
modelValue: f.value,
|
|
2838
2838
|
"onUpdate:modelValue": h[2] || (h[2] = (v) => f.value = v),
|
|
2839
2839
|
"prepend-icon": `svg:${t(to)}`,
|
|
2840
2840
|
title: "Notifications"
|
|
2841
2841
|
}, {
|
|
2842
2842
|
default: r(() => [
|
|
2843
|
-
|
|
2843
|
+
s(ke, null, {
|
|
2844
2844
|
default: r(() => [
|
|
2845
|
-
|
|
2845
|
+
s(wo, {
|
|
2846
2846
|
location: t(e).mobile.value ? "top" : "start",
|
|
2847
2847
|
permanent: "",
|
|
2848
2848
|
width: t(e).mobile.value ? 128 : 168
|
|
2849
2849
|
}, {
|
|
2850
2850
|
default: r(() => [
|
|
2851
|
-
|
|
2852
|
-
selected: t(
|
|
2853
|
-
"onUpdate:selected": h[0] || (h[0] = (v) => se(
|
|
2851
|
+
s(ae, {
|
|
2852
|
+
selected: t(p),
|
|
2853
|
+
"onUpdate:selected": h[0] || (h[0] = (v) => se(p) ? p.value = v : null),
|
|
2854
2854
|
class: "px-4 pt-4",
|
|
2855
2855
|
density: "compact",
|
|
2856
2856
|
mandatory: "",
|
|
2857
2857
|
nav: ""
|
|
2858
2858
|
}, {
|
|
2859
2859
|
default: r(() => [
|
|
2860
|
-
|
|
2860
|
+
s(b, {
|
|
2861
2861
|
"prepend-icon": `svg:${t(oo)}`,
|
|
2862
2862
|
title: "Unread",
|
|
2863
2863
|
value: "read"
|
|
@@ -2870,7 +2870,7 @@ const Ke = W("settings", () => {
|
|
|
2870
2870
|
key: "0"
|
|
2871
2871
|
} : void 0
|
|
2872
2872
|
]), 1032, ["prepend-icon"]),
|
|
2873
|
-
|
|
2873
|
+
s(b, {
|
|
2874
2874
|
"prepend-icon": `svg:${t(no)}`,
|
|
2875
2875
|
title: "Read",
|
|
2876
2876
|
value: "unread"
|
|
@@ -2883,53 +2883,53 @@ const Ke = W("settings", () => {
|
|
|
2883
2883
|
key: "0"
|
|
2884
2884
|
} : void 0
|
|
2885
2885
|
]), 1032, ["prepend-icon"]),
|
|
2886
|
-
t(
|
|
2886
|
+
t(a).all.length > 0 && t(l).notifications.banners ? (d(), _(b, {
|
|
2887
2887
|
key: 0,
|
|
2888
2888
|
"prepend-icon": `svg:${t(so)}`,
|
|
2889
2889
|
title: "Banners",
|
|
2890
2890
|
value: "banners"
|
|
2891
2891
|
}, {
|
|
2892
2892
|
append: r(() => [
|
|
2893
|
-
|
|
2893
|
+
s(Je, {
|
|
2894
2894
|
dot: "",
|
|
2895
2895
|
"offset-y": "-3"
|
|
2896
2896
|
})
|
|
2897
2897
|
]),
|
|
2898
2898
|
_: 1
|
|
2899
|
-
}, 8, ["prepend-icon"])) :
|
|
2899
|
+
}, 8, ["prepend-icon"])) : w("", !0)
|
|
2900
2900
|
]),
|
|
2901
2901
|
_: 1
|
|
2902
2902
|
}, 8, ["selected"])
|
|
2903
2903
|
]),
|
|
2904
2904
|
_: 1
|
|
2905
2905
|
}, 8, ["location", "width"]),
|
|
2906
|
-
|
|
2906
|
+
s($e, { scrollable: "" }, {
|
|
2907
2907
|
default: r(() => [
|
|
2908
|
-
|
|
2909
|
-
modelValue: t(
|
|
2910
|
-
"onUpdate:modelValue": h[1] || (h[1] = (v) => se(
|
|
2908
|
+
s(mt, {
|
|
2909
|
+
modelValue: t(p),
|
|
2910
|
+
"onUpdate:modelValue": h[1] || (h[1] = (v) => se(p) ? p.value = v : null)
|
|
2911
2911
|
}, {
|
|
2912
2912
|
default: r(() => [
|
|
2913
|
-
|
|
2913
|
+
s(ge, { value: "read" }, {
|
|
2914
2914
|
default: r(() => [
|
|
2915
|
-
|
|
2915
|
+
s(g, {
|
|
2916
2916
|
items: t(n).unread
|
|
2917
2917
|
}, null, 8, ["items"])
|
|
2918
2918
|
]),
|
|
2919
2919
|
_: 1
|
|
2920
2920
|
}),
|
|
2921
|
-
|
|
2921
|
+
s(ge, { value: "unread" }, {
|
|
2922
2922
|
default: r(() => [
|
|
2923
|
-
|
|
2923
|
+
s(g, {
|
|
2924
2924
|
items: t(n).read
|
|
2925
2925
|
}, null, 8, ["items"])
|
|
2926
2926
|
]),
|
|
2927
2927
|
_: 1
|
|
2928
2928
|
}),
|
|
2929
|
-
|
|
2929
|
+
s(ge, { value: "banners" }, {
|
|
2930
2930
|
default: r(() => [
|
|
2931
|
-
|
|
2932
|
-
items: t(
|
|
2931
|
+
s(V, {
|
|
2932
|
+
items: t(a).all
|
|
2933
2933
|
}, null, 8, ["items"])
|
|
2934
2934
|
]),
|
|
2935
2935
|
_: 1
|
|
@@ -2951,14 +2951,14 @@ const Ke = W("settings", () => {
|
|
|
2951
2951
|
}), os = /* @__PURE__ */ $({
|
|
2952
2952
|
__name: "VoNotificationsBadge",
|
|
2953
2953
|
setup(c) {
|
|
2954
|
-
const e =
|
|
2955
|
-
return (
|
|
2954
|
+
const e = Fe(), o = F();
|
|
2955
|
+
return (a, n) => (d(), _(Je, {
|
|
2956
2956
|
color: "error",
|
|
2957
2957
|
content: t(e).unread.length,
|
|
2958
2958
|
"model-value": t(o).notifications.show && t(e).unread.length > 0
|
|
2959
2959
|
}, {
|
|
2960
2960
|
default: r(() => [
|
|
2961
|
-
z(
|
|
2961
|
+
z(a.$slots, "default")
|
|
2962
2962
|
]),
|
|
2963
2963
|
_: 3
|
|
2964
2964
|
}, 8, ["content", "model-value"]));
|
|
@@ -2966,12 +2966,12 @@ const Ke = W("settings", () => {
|
|
|
2966
2966
|
}), ns = /* @__PURE__ */ $({
|
|
2967
2967
|
__name: "VoNotificationsNavItem",
|
|
2968
2968
|
setup(c) {
|
|
2969
|
-
const e =
|
|
2970
|
-
return
|
|
2971
|
-
|
|
2969
|
+
const e = je(), o = F(), a = Fe(), n = A(!1);
|
|
2970
|
+
return qe(async () => {
|
|
2971
|
+
a.index(), e.index();
|
|
2972
2972
|
}), (i, l) => {
|
|
2973
|
-
const
|
|
2974
|
-
return t(o).notifications.show ? (
|
|
2973
|
+
const p = os, f = ts, u = J;
|
|
2974
|
+
return t(o).notifications.show ? (d(), _(u, {
|
|
2975
2975
|
key: 0,
|
|
2976
2976
|
active: t(n),
|
|
2977
2977
|
link: "",
|
|
@@ -2979,39 +2979,44 @@ const Ke = W("settings", () => {
|
|
|
2979
2979
|
title: "Notifications"
|
|
2980
2980
|
}, R({
|
|
2981
2981
|
default: r(() => [
|
|
2982
|
-
|
|
2982
|
+
s(f, {
|
|
2983
2983
|
modelValue: t(n),
|
|
2984
2984
|
"onUpdate:modelValue": l[0] || (l[0] = (h) => se(n) ? n.value = h : null)
|
|
2985
2985
|
}, null, 8, ["modelValue"])
|
|
2986
2986
|
]),
|
|
2987
2987
|
_: 2
|
|
2988
2988
|
}, [
|
|
2989
|
-
t(
|
|
2989
|
+
t(a).unread.length ? {
|
|
2990
2990
|
name: "prepend",
|
|
2991
2991
|
fn: r(() => [
|
|
2992
|
-
|
|
2992
|
+
s(p, null, {
|
|
2993
2993
|
default: r(() => [
|
|
2994
|
-
|
|
2994
|
+
s(D)
|
|
2995
2995
|
]),
|
|
2996
2996
|
_: 1
|
|
2997
2997
|
})
|
|
2998
2998
|
]),
|
|
2999
2999
|
key: "0"
|
|
3000
3000
|
} : void 0
|
|
3001
|
-
]), 1032, ["active", "prepend-icon"])) :
|
|
3001
|
+
]), 1032, ["active", "prepend-icon"])) : w("", !0);
|
|
3002
3002
|
};
|
|
3003
3003
|
}
|
|
3004
3004
|
}), ss = /* @__PURE__ */ $({
|
|
3005
3005
|
__name: "VoDashboardNavItem",
|
|
3006
3006
|
setup(c) {
|
|
3007
3007
|
const e = P();
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3008
|
+
function o() {
|
|
3009
|
+
setTimeout(() => {
|
|
3010
|
+
e.isOpen = !1;
|
|
3011
|
+
}, 100);
|
|
3012
|
+
}
|
|
3013
|
+
return (a, n) => {
|
|
3014
|
+
const i = J;
|
|
3015
|
+
return d(), _(i, {
|
|
3011
3016
|
"prepend-icon": `svg:${t(io)}`,
|
|
3012
3017
|
title: "Dashboard",
|
|
3013
3018
|
to: "/user/dashboard",
|
|
3014
|
-
onClick:
|
|
3019
|
+
onClick: o
|
|
3015
3020
|
}, null, 8, ["prepend-icon"]);
|
|
3016
3021
|
};
|
|
3017
3022
|
}
|
|
@@ -3019,21 +3024,21 @@ const Ke = W("settings", () => {
|
|
|
3019
3024
|
__name: "VoUserList",
|
|
3020
3025
|
setup(c) {
|
|
3021
3026
|
const e = M();
|
|
3022
|
-
return (o,
|
|
3023
|
-
const n = ss, i = ns, l = Fn,
|
|
3024
|
-
return
|
|
3027
|
+
return (o, a) => {
|
|
3028
|
+
const n = ss, i = ns, l = Fn, p = In, f = gn, u = Zo, h = Ho;
|
|
3029
|
+
return d(), _(ae, {
|
|
3025
3030
|
density: "compact",
|
|
3026
3031
|
nav: "",
|
|
3027
3032
|
slim: ""
|
|
3028
3033
|
}, {
|
|
3029
3034
|
default: r(() => [
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
t(e).user ? (
|
|
3035
|
-
|
|
3036
|
-
t(e).user ? (
|
|
3035
|
+
s(n),
|
|
3036
|
+
s(i),
|
|
3037
|
+
s(l),
|
|
3038
|
+
s(p),
|
|
3039
|
+
t(e).user ? (d(), _(f, { key: 0 })) : w("", !0),
|
|
3040
|
+
s(u),
|
|
3041
|
+
t(e).user ? (d(), _(h, { key: 1 })) : w("", !0)
|
|
3037
3042
|
]),
|
|
3038
3043
|
_: 1
|
|
3039
3044
|
});
|
|
@@ -3042,21 +3047,21 @@ const Ke = W("settings", () => {
|
|
|
3042
3047
|
}), is = { key: 0 }, rs = { class: "d-flex align-center justify-center pa-1 ga-2" }, ls = /* @__PURE__ */ $({
|
|
3043
3048
|
__name: "VoUserQuickActions",
|
|
3044
3049
|
setup(c) {
|
|
3045
|
-
const e =
|
|
3050
|
+
const e = F(), o = [
|
|
3046
3051
|
["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],
|
|
3047
3052
|
["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],
|
|
3048
3053
|
"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",
|
|
3049
3054
|
["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]
|
|
3050
|
-
],
|
|
3055
|
+
], a = [
|
|
3051
3056
|
["M21.57 19.41L18.36 16.41C19.7242 14.5916 20.3549 12.3267 20.127 10.065C19.8991 7.80316 18.8293 5.70969 17.1298 4.19992C15.4303 2.69016 13.2254 1.87444 10.9525 1.91463C8.67959 1.95481 6.50486 2.84796 4.8598 4.41685C3.21475 5.98575 2.21959 8.11573 2.07179 10.3842C1.924 12.6526 2.63436 14.8937 4.06193 16.6628C5.4895 18.4319 7.52995 19.5997 9.77841 19.9344C12.0269 20.2692 14.319 19.7465 16.2 18.47L19.5 21.6C19.7743 21.8507 20.1287 21.996 20.5 22.01C20.7053 22.0117 20.9087 21.9698 21.0966 21.8871C21.2845 21.8043 21.4527 21.6826 21.59 21.53C21.729 21.3901 21.8389 21.224 21.9132 21.0413C21.9875 20.8586 22.0248 20.663 22.0229 20.4658C22.0211 20.2686 21.9801 20.0737 21.9023 19.8925C21.8246 19.7113 21.7116 19.5473 21.57 19.41ZM11.1 17.33C9.83508 17.328 8.59909 16.9512 7.54815 16.2472C6.49721 15.5432 5.67846 14.5436 5.1953 13.3746C4.71214 12.2055 4.58624 10.9195 4.8335 9.67898C5.08077 8.43843 5.6901 7.29898 6.58455 6.40453C7.47901 5.51007 8.61846 4.90074 9.85901 4.65347C11.0996 4.40621 12.3856 4.53211 13.5546 5.01527C14.7236 5.49843 15.7233 6.31718 16.4273 7.36812C17.1313 8.41906 17.5081 9.65506 17.51 10.92C17.51 11.7618 17.3442 12.5953 17.0221 13.373C16.7 14.1507 16.2278 14.8573 15.6326 15.4526C15.0374 16.0478 14.3307 16.5199 13.553 16.8421C12.7753 17.1642 11.9418 17.33 11.1 17.33Z", 0.8],
|
|
3052
3057
|
"M8.63152 12.7367L8.50057 12.5L6 8H11.263L8.63152 12.7367Z",
|
|
3053
3058
|
["M9.11205 13.6004L11 17L16 8H12.223L9.11205 13.6004Z", 0.6]
|
|
3054
3059
|
];
|
|
3055
|
-
return (n, i) => (
|
|
3060
|
+
return (n, i) => (d(), _(me, null, {
|
|
3056
3061
|
default: r(() => [
|
|
3057
|
-
t(e).quickbar ? (
|
|
3062
|
+
t(e).quickbar ? (d(), L("div", is, [
|
|
3058
3063
|
y("div", rs, [
|
|
3059
|
-
|
|
3064
|
+
s(q, {
|
|
3060
3065
|
class: "text-caption",
|
|
3061
3066
|
color: t(e).colors.one,
|
|
3062
3067
|
density: "comfortable",
|
|
@@ -3065,8 +3070,8 @@ const Ke = W("settings", () => {
|
|
|
3065
3070
|
target: "_blank"
|
|
3066
3071
|
}, {
|
|
3067
3072
|
default: r(() => [
|
|
3068
|
-
|
|
3069
|
-
|
|
3073
|
+
s(D),
|
|
3074
|
+
s(ee, {
|
|
3070
3075
|
activator: "parent",
|
|
3071
3076
|
location: "top",
|
|
3072
3077
|
text: "Vuetify Play"
|
|
@@ -3074,7 +3079,7 @@ const Ke = W("settings", () => {
|
|
|
3074
3079
|
]),
|
|
3075
3080
|
_: 1
|
|
3076
3081
|
}, 8, ["color"]),
|
|
3077
|
-
|
|
3082
|
+
s(q, {
|
|
3078
3083
|
class: "text-caption",
|
|
3079
3084
|
color: t(e).colors.one,
|
|
3080
3085
|
density: "comfortable",
|
|
@@ -3083,8 +3088,8 @@ const Ke = W("settings", () => {
|
|
|
3083
3088
|
target: "_blank"
|
|
3084
3089
|
}, {
|
|
3085
3090
|
default: r(() => [
|
|
3086
|
-
|
|
3087
|
-
|
|
3091
|
+
s(D),
|
|
3092
|
+
s(ee, {
|
|
3088
3093
|
activator: "parent",
|
|
3089
3094
|
location: "top",
|
|
3090
3095
|
text: "Vuetify Bin"
|
|
@@ -3092,17 +3097,17 @@ const Ke = W("settings", () => {
|
|
|
3092
3097
|
]),
|
|
3093
3098
|
_: 1
|
|
3094
3099
|
}, 8, ["color"]),
|
|
3095
|
-
|
|
3100
|
+
s(q, {
|
|
3096
3101
|
class: "text-caption",
|
|
3097
3102
|
color: t(e).colors.one,
|
|
3098
3103
|
density: "comfortable",
|
|
3099
3104
|
href: "https://issues.vuetifyjs.com",
|
|
3100
|
-
icon:
|
|
3105
|
+
icon: a,
|
|
3101
3106
|
target: "_blank"
|
|
3102
3107
|
}, {
|
|
3103
3108
|
default: r(() => [
|
|
3104
|
-
|
|
3105
|
-
|
|
3109
|
+
s(D),
|
|
3110
|
+
s(ee, {
|
|
3106
3111
|
activator: "parent",
|
|
3107
3112
|
location: "top",
|
|
3108
3113
|
text: "Vuetify Issues"
|
|
@@ -3111,7 +3116,7 @@ const Ke = W("settings", () => {
|
|
|
3111
3116
|
_: 1
|
|
3112
3117
|
}, 8, ["color"])
|
|
3113
3118
|
])
|
|
3114
|
-
])) :
|
|
3119
|
+
])) : w("", !0)
|
|
3115
3120
|
]),
|
|
3116
3121
|
_: 1
|
|
3117
3122
|
}));
|
|
@@ -3119,35 +3124,35 @@ const Ke = W("settings", () => {
|
|
|
3119
3124
|
}), cs = { class: "mb-2" }, us = { key: 0 }, ds = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, ps = { class: "text-h6" }, ms = /* @__PURE__ */ $({
|
|
3120
3125
|
__name: "VoUserAvatar",
|
|
3121
3126
|
setup(c) {
|
|
3122
|
-
const e = M(), o =
|
|
3123
|
-
const
|
|
3124
|
-
"https://cdn.vuetifyjs.com/docs/images/avatars/
|
|
3127
|
+
const e = M(), o = P(), a = F(), n = A(!1), i = S(() => {
|
|
3128
|
+
const f = [
|
|
3129
|
+
"https://cdn.vuetifyjs.com/docs/images/avatars/dark.png",
|
|
3130
|
+
"https://cdn.vuetifyjs.com/docs/images/avatars/blackguard.png",
|
|
3125
3131
|
"https://cdn.vuetifyjs.com/docs/images/avatars/grass.png",
|
|
3126
3132
|
"https://cdn.vuetifyjs.com/docs/images/avatars/wood.png",
|
|
3127
3133
|
"https://cdn.vuetifyjs.com/docs/images/avatars/gold.png",
|
|
3128
|
-
"https://cdn.vuetifyjs.com/docs/images/avatars/planet.png",
|
|
3129
3134
|
"https://cdn.vuetifyjs.com/docs/images/avatars/planetary.png",
|
|
3130
|
-
"https://cdn.vuetifyjs.com/docs/images/avatars/
|
|
3131
|
-
"https://cdn.vuetifyjs.com/docs/images/avatars/
|
|
3132
|
-
"https://cdn.vuetifyjs.com/docs/images/avatars/
|
|
3135
|
+
"https://cdn.vuetifyjs.com/docs/images/avatars/grass-subscriber.png",
|
|
3136
|
+
"https://cdn.vuetifyjs.com/docs/images/avatars/wood-subscriber.png",
|
|
3137
|
+
"https://cdn.vuetifyjs.com/docs/images/avatars/gold-subscriber.png",
|
|
3138
|
+
"https://cdn.vuetifyjs.com/docs/images/avatars/planetary-subscriber.png",
|
|
3133
3139
|
"https://cdn.vuetifyjs.com/docs/images/avatars/battlecruiser.png",
|
|
3134
3140
|
"https://cdn.vuetifyjs.com/docs/images/avatars/cosmic-blue.png",
|
|
3135
3141
|
"https://cdn.vuetifyjs.com/docs/images/avatars/blackhole.png",
|
|
3136
|
-
"https://cdn.vuetifyjs.com/docs/images/avatars/meteor.png"
|
|
3137
|
-
"https://cdn.vuetifyjs.com/docs/images/avatars/tada.png"
|
|
3142
|
+
"https://cdn.vuetifyjs.com/docs/images/avatars/meteor.png"
|
|
3138
3143
|
];
|
|
3139
|
-
return e.user &&
|
|
3144
|
+
return o.isSubscriber && f.unshift("https://cdn.vuetifyjs.com/docs/images/avatars/one.png"), e.user && f.unshift(e.user.picture), f;
|
|
3140
3145
|
});
|
|
3141
|
-
function
|
|
3142
|
-
|
|
3146
|
+
function l(f) {
|
|
3147
|
+
a.avatar = f;
|
|
3143
3148
|
}
|
|
3144
|
-
function
|
|
3145
|
-
e.isSubscriber && (
|
|
3149
|
+
function p() {
|
|
3150
|
+
e.isSubscriber && (n.value = !n.value);
|
|
3146
3151
|
}
|
|
3147
|
-
return (
|
|
3148
|
-
var
|
|
3149
|
-
return
|
|
3150
|
-
|
|
3152
|
+
return (f, u) => {
|
|
3153
|
+
var h;
|
|
3154
|
+
return d(), L("div", null, [
|
|
3155
|
+
De((d(), _(Q, {
|
|
3151
3156
|
class: Ct([
|
|
3152
3157
|
"border-md border-opacity-100 border-surface-variant",
|
|
3153
3158
|
{
|
|
@@ -3157,14 +3162,14 @@ const Ke = W("settings", () => {
|
|
|
3157
3162
|
color: "surface",
|
|
3158
3163
|
size: "72",
|
|
3159
3164
|
text: "Foobar",
|
|
3160
|
-
onClick:
|
|
3165
|
+
onClick: Ee(p, ["prevent", "stop"])
|
|
3161
3166
|
}, {
|
|
3162
3167
|
default: r(() => [
|
|
3163
|
-
t(e).user && t(
|
|
3168
|
+
t(e).user && t(a).avatar ? (d(), _(Y, {
|
|
3164
3169
|
key: 0,
|
|
3165
3170
|
alt: "User avatar",
|
|
3166
|
-
src: t(
|
|
3167
|
-
}, null, 8, ["src"])) : (
|
|
3171
|
+
src: t(a).avatar
|
|
3172
|
+
}, null, 8, ["src"])) : (d(), _(D, {
|
|
3168
3173
|
key: 1,
|
|
3169
3174
|
class: "mt-1",
|
|
3170
3175
|
icon: "$vuetify",
|
|
@@ -3176,27 +3181,27 @@ const Ke = W("settings", () => {
|
|
|
3176
3181
|
[So, t(e).isSubscriber]
|
|
3177
3182
|
]),
|
|
3178
3183
|
y("div", cs, [
|
|
3179
|
-
|
|
3184
|
+
s(me, null, {
|
|
3180
3185
|
default: r(() => [
|
|
3181
|
-
t(
|
|
3182
|
-
|
|
3186
|
+
t(n) ? (d(), L("div", us, [
|
|
3187
|
+
s(E, {
|
|
3183
3188
|
class: "pt-6 pb-1",
|
|
3184
3189
|
flat: "",
|
|
3185
3190
|
rounded: "0"
|
|
3186
3191
|
}, {
|
|
3187
3192
|
default: r(() => [
|
|
3188
3193
|
y("div", ds, [
|
|
3189
|
-
(
|
|
3190
|
-
key:
|
|
3191
|
-
active: t(
|
|
3194
|
+
(d(!0), L(U, null, ne(t(i), (b, g) => (d(), _(q, {
|
|
3195
|
+
key: g,
|
|
3196
|
+
active: t(a).avatar === b,
|
|
3192
3197
|
icon: "",
|
|
3193
3198
|
variant: "flat",
|
|
3194
|
-
onClick: (V) =>
|
|
3199
|
+
onClick: (V) => l(b)
|
|
3195
3200
|
}, {
|
|
3196
3201
|
default: r(() => [
|
|
3197
|
-
|
|
3202
|
+
s(Q, {
|
|
3198
3203
|
eager: "",
|
|
3199
|
-
image:
|
|
3204
|
+
image: b
|
|
3200
3205
|
}, null, 8, ["image"])
|
|
3201
3206
|
]),
|
|
3202
3207
|
_: 2
|
|
@@ -3205,23 +3210,23 @@ const Ke = W("settings", () => {
|
|
|
3205
3210
|
]),
|
|
3206
3211
|
_: 1
|
|
3207
3212
|
})
|
|
3208
|
-
])) :
|
|
3213
|
+
])) : w("", !0)
|
|
3209
3214
|
]),
|
|
3210
3215
|
_: 1
|
|
3211
3216
|
})
|
|
3212
3217
|
]),
|
|
3213
|
-
y("div", ps, C(((
|
|
3218
|
+
y("div", ps, C(((h = t(e).user) == null ? void 0 : h.name) ?? "Guest"), 1)
|
|
3214
3219
|
]);
|
|
3215
3220
|
};
|
|
3216
3221
|
}
|
|
3217
3222
|
}), fs = /* @__PURE__ */ $({
|
|
3218
3223
|
__name: "VoUserBadges",
|
|
3219
3224
|
setup(c) {
|
|
3220
|
-
const e = M(), o = P(),
|
|
3225
|
+
const e = M(), o = P(), a = S(() => {
|
|
3221
3226
|
var n;
|
|
3222
3227
|
return o.github || o.discord || o.isSubscriber || ((n = e.user) == null ? void 0 : n.isAdmin);
|
|
3223
3228
|
});
|
|
3224
|
-
return (n, i) => t(
|
|
3229
|
+
return (n, i) => t(a) ? (d(), _(ye, {
|
|
3225
3230
|
key: 0,
|
|
3226
3231
|
class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
|
|
3227
3232
|
color: "rgba(0,0,0,.54)",
|
|
@@ -3231,62 +3236,62 @@ const Ke = W("settings", () => {
|
|
|
3231
3236
|
default: r(() => {
|
|
3232
3237
|
var l;
|
|
3233
3238
|
return [
|
|
3234
|
-
(l = t(e).user) != null && l.isAdmin ? (
|
|
3239
|
+
(l = t(e).user) != null && l.isAdmin ? (d(), _(ee, {
|
|
3235
3240
|
key: 0,
|
|
3236
3241
|
location: "bottom",
|
|
3237
3242
|
text: "Vuetify Administrator"
|
|
3238
3243
|
}, {
|
|
3239
|
-
activator: r(({ props:
|
|
3240
|
-
|
|
3244
|
+
activator: r(({ props: p }) => [
|
|
3245
|
+
s(D, H({
|
|
3241
3246
|
color: "blue",
|
|
3242
3247
|
icon: "$vuetify"
|
|
3243
|
-
},
|
|
3248
|
+
}, p, { size: "16" }), null, 16)
|
|
3244
3249
|
]),
|
|
3245
3250
|
_: 1
|
|
3246
|
-
})) :
|
|
3247
|
-
t(o).isSubscriber ? (
|
|
3251
|
+
})) : w("", !0),
|
|
3252
|
+
t(o).isSubscriber ? (d(), _(ee, {
|
|
3248
3253
|
key: 1,
|
|
3249
3254
|
location: "bottom",
|
|
3250
3255
|
text: "Vuetify One Subscriber"
|
|
3251
3256
|
}, {
|
|
3252
|
-
activator: r(({ props:
|
|
3253
|
-
|
|
3257
|
+
activator: r(({ props: p }) => [
|
|
3258
|
+
s(D, H({
|
|
3254
3259
|
color: "amber-darken-2",
|
|
3255
3260
|
icon: `svg:${t(ro)}`
|
|
3256
|
-
},
|
|
3261
|
+
}, p, { size: "16" }), null, 16, ["icon"])
|
|
3257
3262
|
]),
|
|
3258
3263
|
_: 1
|
|
3259
|
-
})) :
|
|
3260
|
-
t(o).github ? (
|
|
3264
|
+
})) : w("", !0),
|
|
3265
|
+
t(o).github ? (d(), _(ee, {
|
|
3261
3266
|
key: 2,
|
|
3262
3267
|
location: "bottom",
|
|
3263
3268
|
text: "GitHub Sponsor"
|
|
3264
3269
|
}, {
|
|
3265
|
-
activator: r(({ props:
|
|
3266
|
-
|
|
3270
|
+
activator: r(({ props: p }) => [
|
|
3271
|
+
s(D, H({
|
|
3267
3272
|
color: "white",
|
|
3268
3273
|
icon: `svg:${t(Ye)}`
|
|
3269
|
-
},
|
|
3274
|
+
}, p, { size: "16" }), null, 16, ["icon"])
|
|
3270
3275
|
]),
|
|
3271
3276
|
_: 1
|
|
3272
|
-
})) :
|
|
3273
|
-
t(o).discord ? (
|
|
3277
|
+
})) : w("", !0),
|
|
3278
|
+
t(o).discord ? (d(), _(ee, {
|
|
3274
3279
|
key: 3,
|
|
3275
3280
|
location: "bottom",
|
|
3276
3281
|
text: "Discord Subscriber"
|
|
3277
3282
|
}, {
|
|
3278
|
-
activator: r(({ props:
|
|
3279
|
-
|
|
3283
|
+
activator: r(({ props: p }) => [
|
|
3284
|
+
s(D, H({
|
|
3280
3285
|
color: "white",
|
|
3281
3286
|
icon: `svg:${t(Qe)}`
|
|
3282
|
-
},
|
|
3287
|
+
}, p, { size: "16" }), null, 16, ["icon"])
|
|
3283
3288
|
]),
|
|
3284
3289
|
_: 1
|
|
3285
|
-
})) :
|
|
3290
|
+
})) : w("", !0)
|
|
3286
3291
|
];
|
|
3287
3292
|
}),
|
|
3288
3293
|
_: 1
|
|
3289
|
-
})) :
|
|
3294
|
+
})) : w("", !0);
|
|
3290
3295
|
}
|
|
3291
3296
|
}), vs = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, hs = {
|
|
3292
3297
|
key: "reset",
|
|
@@ -3294,14 +3299,14 @@ const Ke = W("settings", () => {
|
|
|
3294
3299
|
}, _s = /* @__PURE__ */ $({
|
|
3295
3300
|
__name: "VoUserColors",
|
|
3296
3301
|
setup(c) {
|
|
3297
|
-
const e = M(), o =
|
|
3302
|
+
const e = M(), o = F(), a = A(!1);
|
|
3298
3303
|
function n() {
|
|
3299
3304
|
o.colors.one = "surface-light";
|
|
3300
3305
|
}
|
|
3301
3306
|
return (i, l) => {
|
|
3302
|
-
const
|
|
3303
|
-
return
|
|
3304
|
-
|
|
3307
|
+
const p = fs, f = fe;
|
|
3308
|
+
return d(), L(U, null, [
|
|
3309
|
+
s(Y, {
|
|
3305
3310
|
color: t(e).user ? t(o).colors.one : "surface-light",
|
|
3306
3311
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
3307
3312
|
cover: "",
|
|
@@ -3311,34 +3316,11 @@ const Ke = W("settings", () => {
|
|
|
3311
3316
|
}, {
|
|
3312
3317
|
default: r(() => [
|
|
3313
3318
|
y("div", vs, [
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
key: 0,
|
|
3317
|
-
active: t(s),
|
|
3318
|
-
class: "align-self-end",
|
|
3319
|
-
color: "inherit",
|
|
3320
|
-
density: "comfortable",
|
|
3321
|
-
icon: t(s) ? `svg:${t(Oe)}` : "$edit",
|
|
3322
|
-
title: "Edit One Header Color",
|
|
3323
|
-
variant: t(s) ? "text" : "plain",
|
|
3324
|
-
onClick: l[0] || (l[0] = (d) => s.value = !t(s))
|
|
3325
|
-
}, {
|
|
3326
|
-
default: r(() => [
|
|
3327
|
-
a(Ue, { "leave-absolute": "" }, {
|
|
3328
|
-
default: r(() => [
|
|
3329
|
-
(p(), _(D, {
|
|
3330
|
-
key: String(t(s))
|
|
3331
|
-
}))
|
|
3332
|
-
]),
|
|
3333
|
-
_: 1
|
|
3334
|
-
})
|
|
3335
|
-
]),
|
|
3336
|
-
_: 1
|
|
3337
|
-
}, 8, ["active", "icon", "variant"])) : S("", !0),
|
|
3338
|
-
a(go, null, {
|
|
3319
|
+
s(p),
|
|
3320
|
+
s(go, null, {
|
|
3339
3321
|
default: r(() => [
|
|
3340
|
-
|
|
3341
|
-
|
|
3322
|
+
De(y("div", hs, [
|
|
3323
|
+
s(f, {
|
|
3342
3324
|
class: "ms-2 me-1",
|
|
3343
3325
|
color: "inherit",
|
|
3344
3326
|
density: "comfortable",
|
|
@@ -3349,18 +3331,41 @@ const Ke = W("settings", () => {
|
|
|
3349
3331
|
onClick: n
|
|
3350
3332
|
}, null, 8, ["disabled", "icon"])
|
|
3351
3333
|
], 512), [
|
|
3352
|
-
[
|
|
3334
|
+
[Ge, t(a)]
|
|
3353
3335
|
])
|
|
3354
3336
|
]),
|
|
3355
3337
|
_: 1
|
|
3356
|
-
})
|
|
3338
|
+
}),
|
|
3339
|
+
t(e).isSubscriber ? (d(), _(f, {
|
|
3340
|
+
key: 0,
|
|
3341
|
+
active: t(a),
|
|
3342
|
+
class: "align-self-end",
|
|
3343
|
+
color: "inherit",
|
|
3344
|
+
density: "comfortable",
|
|
3345
|
+
icon: t(a) ? `svg:${t(Ae)}` : "$edit",
|
|
3346
|
+
title: "Edit One Header Color",
|
|
3347
|
+
variant: t(a) ? "text" : "plain",
|
|
3348
|
+
onClick: l[0] || (l[0] = (u) => a.value = !t(a))
|
|
3349
|
+
}, {
|
|
3350
|
+
default: r(() => [
|
|
3351
|
+
s(Be, { "leave-absolute": "" }, {
|
|
3352
|
+
default: r(() => [
|
|
3353
|
+
(d(), _(D, {
|
|
3354
|
+
key: String(t(a))
|
|
3355
|
+
}))
|
|
3356
|
+
]),
|
|
3357
|
+
_: 1
|
|
3358
|
+
})
|
|
3359
|
+
]),
|
|
3360
|
+
_: 1
|
|
3361
|
+
}, 8, ["active", "icon", "variant"])) : w("", !0)
|
|
3357
3362
|
])
|
|
3358
3363
|
]),
|
|
3359
3364
|
_: 1
|
|
3360
3365
|
}, 8, ["color"]),
|
|
3361
|
-
|
|
3366
|
+
s(me, null, {
|
|
3362
3367
|
default: r(() => [
|
|
3363
|
-
t(
|
|
3368
|
+
t(a) ? (d(), _(Co, {
|
|
3364
3369
|
key: 0,
|
|
3365
3370
|
elevation: "0",
|
|
3366
3371
|
height: "250",
|
|
@@ -3372,8 +3377,8 @@ const Ke = W("settings", () => {
|
|
|
3372
3377
|
"show-swatches": "",
|
|
3373
3378
|
"swatches-max-height": "200",
|
|
3374
3379
|
width: "278",
|
|
3375
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
3376
|
-
}, null, 8, ["model-value"])) :
|
|
3380
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => t(o).colors.one = u)
|
|
3381
|
+
}, null, 8, ["model-value"])) : w("", !0)
|
|
3377
3382
|
]),
|
|
3378
3383
|
_: 1
|
|
3379
3384
|
})
|
|
@@ -3383,15 +3388,15 @@ const Ke = W("settings", () => {
|
|
|
3383
3388
|
}), gs = { class: "text-center mt-n9 mb-4" }, ys = /* @__PURE__ */ $({
|
|
3384
3389
|
__name: "VoUserMenu",
|
|
3385
3390
|
setup(c) {
|
|
3386
|
-
const e =
|
|
3391
|
+
const e = je(), o = P(), a = O();
|
|
3387
3392
|
return B(() => e.banner, async () => {
|
|
3388
3393
|
var n, i;
|
|
3389
|
-
await new Promise((l) => setTimeout(l, 300)), o.isOpen && ((i = (n =
|
|
3394
|
+
await new Promise((l) => setTimeout(l, 300)), o.isOpen && ((i = (n = a.value) == null ? void 0 : n.updateLocation) == null || i.call(n));
|
|
3390
3395
|
}, { flush: "pre" }), (n, i) => {
|
|
3391
|
-
const l = _s,
|
|
3392
|
-
return
|
|
3396
|
+
const l = _s, p = ms, f = ls, u = as, h = gt;
|
|
3397
|
+
return d(), _(t(Lo), {
|
|
3393
3398
|
ref_key: "menu",
|
|
3394
|
-
ref:
|
|
3399
|
+
ref: a,
|
|
3395
3400
|
modelValue: t(o).isOpen,
|
|
3396
3401
|
"onUpdate:modelValue": i[0] || (i[0] = (b) => t(o).isOpen = b),
|
|
3397
3402
|
activator: "parent",
|
|
@@ -3401,21 +3406,21 @@ const Ke = W("settings", () => {
|
|
|
3401
3406
|
location: "bottom end"
|
|
3402
3407
|
}, {
|
|
3403
3408
|
default: r(() => [
|
|
3404
|
-
|
|
3409
|
+
s(E, {
|
|
3405
3410
|
border: "",
|
|
3406
3411
|
rounded: "lg",
|
|
3407
3412
|
width: "280"
|
|
3408
3413
|
}, {
|
|
3409
3414
|
default: r(() => [
|
|
3410
|
-
|
|
3415
|
+
s(l),
|
|
3411
3416
|
y("div", gs, [
|
|
3412
|
-
|
|
3413
|
-
|
|
3417
|
+
s(p),
|
|
3418
|
+
s(f)
|
|
3414
3419
|
]),
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3420
|
+
s(Z),
|
|
3421
|
+
s(u),
|
|
3422
|
+
s(Z),
|
|
3423
|
+
s(h)
|
|
3419
3424
|
]),
|
|
3420
3425
|
_: 1
|
|
3421
3426
|
})
|
|
@@ -3430,15 +3435,15 @@ const Ke = W("settings", () => {
|
|
|
3430
3435
|
external: Boolean
|
|
3431
3436
|
},
|
|
3432
3437
|
setup(c) {
|
|
3433
|
-
const e = M(), o = P(),
|
|
3434
|
-
return (l,
|
|
3435
|
-
const f = ys,
|
|
3436
|
-
return
|
|
3437
|
-
|
|
3438
|
+
const e = M(), o = P(), a = F(), { lgAndUp: n } = le(), i = S(() => o.isOpen || !e.user ? a.colors.one === "surface-light" ? "primary" : a.colors.one : "surface-light");
|
|
3439
|
+
return (l, p) => {
|
|
3440
|
+
const f = ys, u = fe, h = Mo, b = _t;
|
|
3441
|
+
return d(), L(U, null, [
|
|
3442
|
+
s(h, {
|
|
3438
3443
|
"offset-y": t(e).user ? 5 : 0
|
|
3439
3444
|
}, {
|
|
3440
3445
|
default: r(() => [
|
|
3441
|
-
|
|
3446
|
+
s(u, H({
|
|
3442
3447
|
[`${t(n) ? "append-" : ""}icon`]: t(e).user ? void 0 : `svg:${t(co)}`
|
|
3443
3448
|
}, {
|
|
3444
3449
|
active: "",
|
|
@@ -3451,19 +3456,19 @@ const Ke = W("settings", () => {
|
|
|
3451
3456
|
variant: t(e).user ? "outlined" : "flat"
|
|
3452
3457
|
}), {
|
|
3453
3458
|
default: r(() => [
|
|
3454
|
-
t(e).user ?
|
|
3455
|
-
t(e).user ? (
|
|
3459
|
+
t(e).user ? w("", !0) : (d(), L("span", bs, "Login")),
|
|
3460
|
+
t(e).user ? (d(), _(Q, {
|
|
3456
3461
|
key: 1,
|
|
3457
|
-
image: t(
|
|
3458
|
-
}, null, 8, ["image"])) :
|
|
3459
|
-
|
|
3462
|
+
image: t(a).avatar || t(e).user.picture || ""
|
|
3463
|
+
}, null, 8, ["image"])) : w("", !0),
|
|
3464
|
+
s(f)
|
|
3460
3465
|
]),
|
|
3461
3466
|
_: 1
|
|
3462
3467
|
}, 16, ["color", "icon", "loading", "variant"])
|
|
3463
3468
|
]),
|
|
3464
3469
|
_: 1
|
|
3465
3470
|
}, 8, ["offset-y"]),
|
|
3466
|
-
|
|
3471
|
+
s(b)
|
|
3467
3472
|
], 64);
|
|
3468
3473
|
};
|
|
3469
3474
|
}
|
|
@@ -3476,19 +3481,19 @@ const Ke = W("settings", () => {
|
|
|
3476
3481
|
image: {}
|
|
3477
3482
|
},
|
|
3478
3483
|
setup(c) {
|
|
3479
|
-
return (e, o) => (
|
|
3484
|
+
return (e, o) => (d(), _(Io, {
|
|
3480
3485
|
class: "vo-footer",
|
|
3481
3486
|
height: "40"
|
|
3482
3487
|
}, {
|
|
3483
3488
|
default: r(() => [
|
|
3484
|
-
e.image || e.$slots.image ? (
|
|
3485
|
-
e.$slots.image ? z(e.$slots, "image", { key: 0 }, void 0, !0) : (
|
|
3489
|
+
e.image || e.$slots.image ? (d(), L("div", ks, [
|
|
3490
|
+
e.$slots.image ? z(e.$slots, "image", { key: 0 }, void 0, !0) : (d(), _(Y, {
|
|
3486
3491
|
key: 1,
|
|
3487
3492
|
cover: "",
|
|
3488
3493
|
position: "left",
|
|
3489
3494
|
src: e.image
|
|
3490
3495
|
}, null, 8, ["src"]))
|
|
3491
|
-
])) :
|
|
3496
|
+
])) : w("", !0),
|
|
3492
3497
|
z(e.$slots, "default", {}, void 0, !0)
|
|
3493
3498
|
]),
|
|
3494
3499
|
_: 3
|
|
@@ -3496,8 +3501,8 @@ const Ke = W("settings", () => {
|
|
|
3496
3501
|
}
|
|
3497
3502
|
}), Vt = (c, e) => {
|
|
3498
3503
|
const o = c.__vccOpts || c;
|
|
3499
|
-
for (const [
|
|
3500
|
-
o[
|
|
3504
|
+
for (const [a, n] of e)
|
|
3505
|
+
o[a] = n;
|
|
3501
3506
|
return o;
|
|
3502
3507
|
}, kt = /* @__PURE__ */ Vt($s, [["__scopeId", "data-v-3135ada5"]]), xs = (c) => (Lt("data-v-584be7b0"), c = c(), It(), c), ws = ["href", "title"], Ss = {
|
|
3503
3508
|
class: "text-caption text-disabled",
|
|
@@ -3537,15 +3542,15 @@ const Ke = W("settings", () => {
|
|
|
3537
3542
|
href: "https://reddit.com/r/vuetifyjs"
|
|
3538
3543
|
}
|
|
3539
3544
|
];
|
|
3540
|
-
return (
|
|
3545
|
+
return (a, n) => {
|
|
3541
3546
|
const i = kt;
|
|
3542
|
-
return
|
|
3547
|
+
return d(), _(i, {
|
|
3543
3548
|
class: "vo-footer",
|
|
3544
3549
|
height: "40",
|
|
3545
3550
|
image: t(e).suit.footer
|
|
3546
3551
|
}, R({
|
|
3547
3552
|
default: r(() => [
|
|
3548
|
-
(
|
|
3553
|
+
(d(), L(U, null, ne(o, (l) => y("a", {
|
|
3549
3554
|
key: l.title,
|
|
3550
3555
|
class: "d-inline-block mx-2 social-link",
|
|
3551
3556
|
href: l.href,
|
|
@@ -3553,22 +3558,22 @@ const Ke = W("settings", () => {
|
|
|
3553
3558
|
target: "_blank",
|
|
3554
3559
|
title: l.title
|
|
3555
3560
|
}, [
|
|
3556
|
-
|
|
3561
|
+
s(D, {
|
|
3557
3562
|
icon: l.icon,
|
|
3558
3563
|
size: l.icon === "$vuetify" ? 24 : 16
|
|
3559
3564
|
}, null, 8, ["icon", "size"])
|
|
3560
3565
|
], 8, ws)), 64)),
|
|
3561
3566
|
y("div", Ss, [
|
|
3562
|
-
|
|
3567
|
+
T(" © 2016-" + C((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
|
|
3563
3568
|
Cs
|
|
3564
3569
|
])
|
|
3565
3570
|
]),
|
|
3566
3571
|
_: 2
|
|
3567
3572
|
}, [
|
|
3568
|
-
|
|
3573
|
+
a.$slots.image ? {
|
|
3569
3574
|
name: "image",
|
|
3570
3575
|
fn: r(() => [
|
|
3571
|
-
z(
|
|
3576
|
+
z(a.$slots, "image", {}, void 0, !0)
|
|
3572
3577
|
]),
|
|
3573
3578
|
key: "0"
|
|
3574
3579
|
} : void 0
|
|
@@ -3581,71 +3586,71 @@ const Ke = W("settings", () => {
|
|
|
3581
3586
|
demo: { type: Boolean }
|
|
3582
3587
|
},
|
|
3583
3588
|
setup(c) {
|
|
3584
|
-
const e = c, { mdAndUp: o } = le(),
|
|
3585
|
-
var
|
|
3586
|
-
return ((
|
|
3587
|
-
}), f =
|
|
3588
|
-
function
|
|
3589
|
+
const e = c, { mdAndUp: o } = le(), a = Ne(), n = F(), i = je(), l = S(() => i.banner), p = S(() => {
|
|
3590
|
+
var g, V;
|
|
3591
|
+
return ((g = l.value) == null ? void 0 : g.metadata.height) || ((V = l.value) != null && V.metadata.subtext ? 88 : 48);
|
|
3592
|
+
}), f = S(() => e.demo ? !0 : !l.value || !n.notifications.last.banner.includes(l.value.slug));
|
|
3593
|
+
function u() {
|
|
3589
3594
|
l.value && n.notifications.last.banner.push(l.value.slug);
|
|
3590
3595
|
}
|
|
3591
|
-
async function h(
|
|
3596
|
+
async function h(g) {
|
|
3592
3597
|
var v;
|
|
3593
3598
|
if (!l.value)
|
|
3594
3599
|
return;
|
|
3595
|
-
|
|
3596
|
-
const
|
|
3597
|
-
if (
|
|
3600
|
+
u(), await pe();
|
|
3601
|
+
const V = ((v = l.value) == null ? void 0 : v.metadata) ?? { link: "" };
|
|
3602
|
+
if (V.link.indexOf("?one=") === -1)
|
|
3598
3603
|
return;
|
|
3599
|
-
|
|
3600
|
-
const m =
|
|
3601
|
-
|
|
3604
|
+
g.preventDefault(), g.stopPropagation();
|
|
3605
|
+
const m = V.link.split("?one=")[1];
|
|
3606
|
+
a.push({ query: { one: m } });
|
|
3602
3607
|
}
|
|
3603
|
-
const b =
|
|
3604
|
-
var
|
|
3605
|
-
const
|
|
3608
|
+
const b = S(() => {
|
|
3609
|
+
var V, m;
|
|
3610
|
+
const g = ((V = l.value) == null ? void 0 : V.metadata) ?? { link: "" };
|
|
3606
3611
|
return {
|
|
3607
|
-
href:
|
|
3608
|
-
target:
|
|
3609
|
-
to:
|
|
3612
|
+
href: g.link.startsWith("http") ? g.link : void 0,
|
|
3613
|
+
target: g.link.startsWith("http") ? "_blank" : void 0,
|
|
3614
|
+
to: g.link.startsWith("http") ? void 0 : g.link,
|
|
3610
3615
|
...(m = l.value) == null ? void 0 : m.metadata.attributes,
|
|
3611
3616
|
onClick: h
|
|
3612
3617
|
};
|
|
3613
3618
|
});
|
|
3614
|
-
return (
|
|
3619
|
+
return (g, V) => {
|
|
3615
3620
|
var m;
|
|
3616
|
-
return t(l) ? (
|
|
3621
|
+
return t(l) ? (d(), _(Do, {
|
|
3617
3622
|
key: 0,
|
|
3618
3623
|
color: t(l).metadata.color,
|
|
3619
3624
|
flat: "",
|
|
3620
|
-
height: t(
|
|
3625
|
+
height: t(p),
|
|
3621
3626
|
image: (m = t(l).metadata.images.bg) == null ? void 0 : m.url,
|
|
3622
3627
|
"model-value": t(f),
|
|
3623
3628
|
order: "-1"
|
|
3624
3629
|
}, {
|
|
3625
3630
|
default: r(() => [
|
|
3626
|
-
|
|
3631
|
+
s(Ve, H(t(b), {
|
|
3627
3632
|
active: !1,
|
|
3628
3633
|
class: "flex-grow-1 py-6",
|
|
3629
3634
|
lines: "two",
|
|
3630
3635
|
onClick: h
|
|
3631
3636
|
}), {
|
|
3632
3637
|
prepend: r(() => [
|
|
3633
|
-
t(l).metadata.images.logo ? (
|
|
3638
|
+
t(l).metadata.images.logo ? (d(), _(Q, {
|
|
3634
3639
|
key: 0,
|
|
3635
3640
|
icon: "$vuetify",
|
|
3636
3641
|
image: t(l).metadata.images.logo.url,
|
|
3637
3642
|
size: "x-large",
|
|
3638
3643
|
tile: ""
|
|
3639
|
-
}, null, 8, ["image"])) :
|
|
3644
|
+
}, null, 8, ["image"])) : w("", !0)
|
|
3640
3645
|
]),
|
|
3641
3646
|
append: r(() => [
|
|
3642
|
-
t(o) && t(l).metadata.link && t(l).metadata.link_text ? (
|
|
3647
|
+
t(o) && t(l).metadata.link && t(l).metadata.link_text ? (d(), _(ze, { key: 0 }, {
|
|
3643
3648
|
default: r(({ isHovering: v, props: k }) => [
|
|
3644
|
-
|
|
3649
|
+
s(q, H({
|
|
3645
3650
|
...k,
|
|
3646
3651
|
...t(b)
|
|
3647
3652
|
}, {
|
|
3648
|
-
"append-icon": `svg:${t(
|
|
3653
|
+
"append-icon": `svg:${t(Oe)}`,
|
|
3649
3654
|
class: "text-none me-2",
|
|
3650
3655
|
color: t(l).metadata.link_color,
|
|
3651
3656
|
elevation: v ? 8 : 0,
|
|
@@ -3654,46 +3659,46 @@ const Ke = W("settings", () => {
|
|
|
3654
3659
|
onClick: h
|
|
3655
3660
|
}), {
|
|
3656
3661
|
default: r(() => [
|
|
3657
|
-
|
|
3662
|
+
T(C(t(l).metadata.link_text), 1)
|
|
3658
3663
|
]),
|
|
3659
3664
|
_: 2
|
|
3660
3665
|
}, 1040, ["append-icon", "color", "elevation", "title"])
|
|
3661
3666
|
]),
|
|
3662
3667
|
_: 1
|
|
3663
|
-
})) :
|
|
3664
|
-
t(l).metadata.closable ? (
|
|
3668
|
+
})) : w("", !0),
|
|
3669
|
+
t(l).metadata.closable ? (d(), _(q, {
|
|
3665
3670
|
key: 1,
|
|
3666
3671
|
class: "ms-6 me-2",
|
|
3667
3672
|
density: "comfortable",
|
|
3668
|
-
disabled:
|
|
3673
|
+
disabled: g.demo,
|
|
3669
3674
|
icon: "$clear",
|
|
3670
3675
|
size: "small",
|
|
3671
3676
|
variant: "plain",
|
|
3672
|
-
onClick:
|
|
3673
|
-
}, null, 8, ["disabled"])) :
|
|
3677
|
+
onClick: Ee(u, ["prevent", "stop"])
|
|
3678
|
+
}, null, 8, ["disabled"])) : w("", !0)
|
|
3674
3679
|
]),
|
|
3675
3680
|
default: r(() => [
|
|
3676
|
-
t(l).metadata.text ? (
|
|
3681
|
+
t(l).metadata.text ? (d(), _(ct, {
|
|
3677
3682
|
key: 0,
|
|
3678
3683
|
class: "text-subtitle-2 text-md-subtitle-1 font-weight-medium"
|
|
3679
3684
|
}, {
|
|
3680
3685
|
default: r(() => [
|
|
3681
|
-
|
|
3686
|
+
T(C(t(l).metadata.text), 1)
|
|
3682
3687
|
]),
|
|
3683
3688
|
_: 1
|
|
3684
|
-
})) :
|
|
3685
|
-
t(l).metadata.subtext ? (
|
|
3689
|
+
})) : w("", !0),
|
|
3690
|
+
t(l).metadata.subtext ? (d(), _(fo, { key: 1 }, {
|
|
3686
3691
|
default: r(() => [
|
|
3687
|
-
|
|
3692
|
+
T(C(t(l).metadata.subtext), 1)
|
|
3688
3693
|
]),
|
|
3689
3694
|
_: 1
|
|
3690
|
-
})) :
|
|
3695
|
+
})) : w("", !0)
|
|
3691
3696
|
]),
|
|
3692
3697
|
_: 1
|
|
3693
3698
|
}, 16)
|
|
3694
3699
|
]),
|
|
3695
3700
|
_: 1
|
|
3696
|
-
}, 8, ["color", "height", "image", "model-value"])) :
|
|
3701
|
+
}, 8, ["color", "height", "image", "model-value"])) : w("", !0);
|
|
3697
3702
|
};
|
|
3698
3703
|
}
|
|
3699
3704
|
}), As = {
|
|
@@ -3707,7 +3712,7 @@ const Ke = W("settings", () => {
|
|
|
3707
3712
|
minHeight: {}
|
|
3708
3713
|
},
|
|
3709
3714
|
setup(c) {
|
|
3710
|
-
return (e, o) => (
|
|
3715
|
+
return (e, o) => (d(), _(E, {
|
|
3711
3716
|
class: "d-inline-flex flex-child-1 position-relative",
|
|
3712
3717
|
color: "surface-light",
|
|
3713
3718
|
flat: "",
|
|
@@ -3716,7 +3721,7 @@ const Ke = W("settings", () => {
|
|
|
3716
3721
|
target: "_blank"
|
|
3717
3722
|
}, R({
|
|
3718
3723
|
default: r(() => [
|
|
3719
|
-
|
|
3724
|
+
s(Ao, {
|
|
3720
3725
|
"min-height": e.minHeight,
|
|
3721
3726
|
width: "100%"
|
|
3722
3727
|
}, {
|
|
@@ -3725,7 +3730,7 @@ const Ke = W("settings", () => {
|
|
|
3725
3730
|
]),
|
|
3726
3731
|
_: 3
|
|
3727
3732
|
}, 8, ["min-height"]),
|
|
3728
|
-
e.caption ? (
|
|
3733
|
+
e.caption ? (d(), L("div", As, C(e.caption), 1)) : w("", !0)
|
|
3729
3734
|
]),
|
|
3730
3735
|
_: 2
|
|
3731
3736
|
}, [
|
|
@@ -3746,65 +3751,65 @@ const Ke = W("settings", () => {
|
|
|
3746
3751
|
]), 1024));
|
|
3747
3752
|
}
|
|
3748
3753
|
}), et = W("promotions", () => {
|
|
3749
|
-
const c = ce(), e =
|
|
3750
|
-
|
|
3751
|
-
function
|
|
3752
|
-
return
|
|
3754
|
+
const c = ce(), e = O([]), o = O([]), a = O(), n = A(!1), i = A(!1), l = S(() => e.value.filter((m) => m.metadata.discoverable));
|
|
3755
|
+
Ze(f);
|
|
3756
|
+
function p(m) {
|
|
3757
|
+
return m[Math.floor(Math.random() * m.length)];
|
|
3753
3758
|
}
|
|
3754
|
-
async function
|
|
3759
|
+
async function f() {
|
|
3755
3760
|
try {
|
|
3756
3761
|
n.value = !0;
|
|
3757
|
-
const
|
|
3758
|
-
e.value =
|
|
3762
|
+
const m = await c.get("/one/promotions");
|
|
3763
|
+
e.value = m.promotions;
|
|
3759
3764
|
} catch {
|
|
3760
3765
|
} finally {
|
|
3761
|
-
n.value = !1;
|
|
3766
|
+
n.value = !1, i.value = !0;
|
|
3762
3767
|
}
|
|
3763
3768
|
return e.value;
|
|
3764
3769
|
}
|
|
3765
|
-
async function
|
|
3770
|
+
async function u(m) {
|
|
3766
3771
|
try {
|
|
3767
3772
|
n.value = !0;
|
|
3768
|
-
const
|
|
3769
|
-
return
|
|
3773
|
+
const v = await c.get(`/one/admin/promotions/${m}`);
|
|
3774
|
+
return a.value = v.promotion, v.promotion;
|
|
3770
3775
|
} catch {
|
|
3771
3776
|
} finally {
|
|
3772
3777
|
n.value = !1;
|
|
3773
3778
|
}
|
|
3774
3779
|
}
|
|
3775
|
-
async function
|
|
3780
|
+
async function h(m) {
|
|
3776
3781
|
try {
|
|
3777
3782
|
n.value = !0;
|
|
3778
|
-
const
|
|
3783
|
+
const v = await c.form(
|
|
3779
3784
|
"/one/admin/promotions",
|
|
3780
|
-
|
|
3785
|
+
m
|
|
3781
3786
|
);
|
|
3782
|
-
return
|
|
3787
|
+
return a.value = v.promotion, v.promotion;
|
|
3783
3788
|
} catch {
|
|
3784
3789
|
} finally {
|
|
3785
3790
|
n.value = !1;
|
|
3786
3791
|
}
|
|
3787
3792
|
}
|
|
3788
|
-
async function
|
|
3793
|
+
async function b(m, v) {
|
|
3789
3794
|
try {
|
|
3790
3795
|
n.value = !0;
|
|
3791
|
-
const
|
|
3792
|
-
`/one/admin/promotions/${
|
|
3793
|
-
|
|
3796
|
+
const k = await c.form(
|
|
3797
|
+
`/one/admin/promotions/${m}`,
|
|
3798
|
+
v
|
|
3794
3799
|
);
|
|
3795
|
-
return
|
|
3800
|
+
return a.value = k.promotion, k.promotion;
|
|
3796
3801
|
} catch {
|
|
3797
3802
|
} finally {
|
|
3798
3803
|
n.value = !1;
|
|
3799
3804
|
}
|
|
3800
3805
|
}
|
|
3801
|
-
async function
|
|
3806
|
+
async function g() {
|
|
3802
3807
|
}
|
|
3803
3808
|
async function V() {
|
|
3804
3809
|
try {
|
|
3805
3810
|
n.value = !0;
|
|
3806
|
-
const
|
|
3807
|
-
o.value =
|
|
3811
|
+
const m = await c.get("/one/admin/promotions");
|
|
3812
|
+
o.value = m.promotions;
|
|
3808
3813
|
} catch {
|
|
3809
3814
|
} finally {
|
|
3810
3815
|
n.value = !1;
|
|
@@ -3815,15 +3820,16 @@ const Ke = W("settings", () => {
|
|
|
3815
3820
|
all: e,
|
|
3816
3821
|
aall: o,
|
|
3817
3822
|
isLoading: n,
|
|
3818
|
-
|
|
3819
|
-
|
|
3823
|
+
hasLoaded: i,
|
|
3824
|
+
discoverable: l,
|
|
3825
|
+
record: a,
|
|
3820
3826
|
admin: V,
|
|
3821
|
-
destroy:
|
|
3822
|
-
index:
|
|
3823
|
-
random:
|
|
3824
|
-
show:
|
|
3825
|
-
store:
|
|
3826
|
-
update:
|
|
3827
|
+
destroy: g,
|
|
3828
|
+
index: f,
|
|
3829
|
+
random: p,
|
|
3830
|
+
show: u,
|
|
3831
|
+
store: h,
|
|
3832
|
+
update: b
|
|
3827
3833
|
};
|
|
3828
3834
|
}), Os = /* @__PURE__ */ $({
|
|
3829
3835
|
__name: "VoPromotionsCardHighlight",
|
|
@@ -3831,31 +3837,34 @@ const Ke = W("settings", () => {
|
|
|
3831
3837
|
slug: {}
|
|
3832
3838
|
},
|
|
3833
3839
|
setup(c) {
|
|
3834
|
-
const e = c, o = et(),
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3840
|
+
const e = c, o = et(), a = Xe(), n = F(), i = S(() => {
|
|
3841
|
+
if (!n.disableAds)
|
|
3842
|
+
return o.record ? o.record : e.slug ? o.all.find((f) => f.slug === e.slug) : o.random(o.all);
|
|
3843
|
+
}), l = S(() => {
|
|
3844
|
+
var u, h;
|
|
3845
|
+
const f = a.current.value.dark ? "logodark" : "logolight";
|
|
3846
|
+
return (h = (u = i.value) == null ? void 0 : u.metadata.images[f]) == null ? void 0 : h.url;
|
|
3847
|
+
}), p = S(() => {
|
|
3848
|
+
var u, h;
|
|
3849
|
+
const f = a.current.value.dark ? "bgdark" : "bglight";
|
|
3850
|
+
return (h = (u = i.value) == null ? void 0 : u.metadata.images[f]) == null ? void 0 : h.url;
|
|
3842
3851
|
});
|
|
3843
|
-
return
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3852
|
+
return (f, u) => {
|
|
3853
|
+
var b, g;
|
|
3854
|
+
const h = $t;
|
|
3855
|
+
return t(i) || !t(o).hasLoaded ? (d(), _(h, {
|
|
3856
|
+
key: 0,
|
|
3857
|
+
class: "mb-4",
|
|
3849
3858
|
height: "60",
|
|
3850
|
-
href: (
|
|
3851
|
-
image: t(
|
|
3859
|
+
href: (b = t(i)) == null ? void 0 : b.metadata.url,
|
|
3860
|
+
image: t(p),
|
|
3852
3861
|
"max-width": "720",
|
|
3853
|
-
"prepend-avatar": t(
|
|
3854
|
-
title: (
|
|
3862
|
+
"prepend-avatar": t(l),
|
|
3863
|
+
title: (g = t(i)) == null ? void 0 : g.metadata.short_text,
|
|
3855
3864
|
width: "100%"
|
|
3856
3865
|
}, R({
|
|
3857
3866
|
default: r(() => [
|
|
3858
|
-
t(
|
|
3867
|
+
t(o).hasLoaded ? w("", !0) : (d(), _(be, {
|
|
3859
3868
|
key: 0,
|
|
3860
3869
|
class: "flex-1-0 overflow-hidden",
|
|
3861
3870
|
color: "transparent",
|
|
@@ -3866,24 +3875,24 @@ const Ke = W("settings", () => {
|
|
|
3866
3875
|
]),
|
|
3867
3876
|
_: 2
|
|
3868
3877
|
}, [
|
|
3869
|
-
t(
|
|
3878
|
+
t(i) ? {
|
|
3870
3879
|
name: "prepend",
|
|
3871
3880
|
fn: r(() => [
|
|
3872
|
-
|
|
3881
|
+
s(Q, {
|
|
3873
3882
|
class: "my-n4 me-4",
|
|
3874
3883
|
size: "36"
|
|
3875
3884
|
})
|
|
3876
3885
|
]),
|
|
3877
3886
|
key: "0"
|
|
3878
3887
|
} : void 0,
|
|
3879
|
-
t(
|
|
3888
|
+
t(i) ? {
|
|
3880
3889
|
name: "image",
|
|
3881
3890
|
fn: r(() => [
|
|
3882
|
-
|
|
3891
|
+
s(Y, { position: "right" })
|
|
3883
3892
|
]),
|
|
3884
3893
|
key: "1"
|
|
3885
3894
|
} : void 0
|
|
3886
|
-
]), 1032, ["href", "image", "prepend-avatar", "title"]);
|
|
3895
|
+
]), 1032, ["href", "image", "prepend-avatar", "title"])) : w("", !0);
|
|
3887
3896
|
};
|
|
3888
3897
|
}
|
|
3889
3898
|
}), Ns = { class: "d-flex ga-4" }, Bs = { class: "d-flex align-start ga-4" }, Us = { class: "text-caption on-surface-light" }, zs = /* @__PURE__ */ $({
|
|
@@ -3892,35 +3901,37 @@ const Ke = W("settings", () => {
|
|
|
3892
3901
|
slug: {}
|
|
3893
3902
|
},
|
|
3894
3903
|
setup(c) {
|
|
3895
|
-
const e = c, o = et(),
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
})
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3904
|
+
const e = c, o = et(), a = F(), n = S(() => {
|
|
3905
|
+
if (!a.disableAds)
|
|
3906
|
+
return o.record ? o.record : e.slug ? o.all.find((i) => i.slug === e.slug) : o.random(o.all);
|
|
3907
|
+
});
|
|
3908
|
+
return (i, l) => {
|
|
3909
|
+
var f, u;
|
|
3910
|
+
const p = $t;
|
|
3911
|
+
return t(n) || !t(o).hasLoaded ? (d(), _(p, {
|
|
3912
|
+
key: 0,
|
|
3902
3913
|
border: "",
|
|
3903
|
-
class: "pa-2",
|
|
3904
|
-
href: (
|
|
3914
|
+
class: "pa-2 mb-4",
|
|
3915
|
+
href: (u = (f = t(n)) == null ? void 0 : f.metadata) == null ? void 0 : u.url,
|
|
3905
3916
|
width: "360"
|
|
3906
3917
|
}, {
|
|
3907
3918
|
default: r(() => {
|
|
3908
|
-
var
|
|
3919
|
+
var h, b, g;
|
|
3909
3920
|
return [
|
|
3910
3921
|
y("div", Ns, [
|
|
3911
|
-
t(
|
|
3912
|
-
|
|
3922
|
+
t(o).hasLoaded ? t(n) ? (d(), L(U, { key: 1 }, [
|
|
3923
|
+
s(Y, {
|
|
3913
3924
|
height: "100",
|
|
3914
3925
|
"max-width": "130",
|
|
3915
3926
|
rounded: "s",
|
|
3916
|
-
src: (
|
|
3927
|
+
src: (b = (h = t(n).metadata) == null ? void 0 : h.images.default) == null ? void 0 : b.url,
|
|
3917
3928
|
width: "100%"
|
|
3918
3929
|
}, null, 8, ["src"]),
|
|
3919
3930
|
y("div", Bs, [
|
|
3920
|
-
y("div", Us, C((
|
|
3931
|
+
y("div", Us, C((g = t(n).metadata) == null ? void 0 : g.text), 1)
|
|
3921
3932
|
])
|
|
3922
|
-
], 64)) : (
|
|
3923
|
-
|
|
3933
|
+
], 64)) : w("", !0) : (d(), L(U, { key: 0 }, [
|
|
3934
|
+
s(be, {
|
|
3924
3935
|
class: "flex-1-0 overflow-hidden",
|
|
3925
3936
|
color: "transparent",
|
|
3926
3937
|
loading: "",
|
|
@@ -3928,7 +3939,7 @@ const Ke = W("settings", () => {
|
|
|
3928
3939
|
"min-width": "130",
|
|
3929
3940
|
type: "image"
|
|
3930
3941
|
}),
|
|
3931
|
-
|
|
3942
|
+
s(be, {
|
|
3932
3943
|
class: "flex-1-0 ms-n3 mt-n3",
|
|
3933
3944
|
color: "transparent",
|
|
3934
3945
|
loading: "",
|
|
@@ -3940,7 +3951,7 @@ const Ke = W("settings", () => {
|
|
|
3940
3951
|
];
|
|
3941
3952
|
}),
|
|
3942
3953
|
_: 1
|
|
3943
|
-
}, 8, ["href"]);
|
|
3954
|
+
}, 8, ["href"])) : w("", !0);
|
|
3944
3955
|
};
|
|
3945
3956
|
}
|
|
3946
3957
|
}), Fs = ["href"], Ts = { class: "text-white" }, js = /* @__PURE__ */ $({
|
|
@@ -3949,26 +3960,26 @@ const Ke = W("settings", () => {
|
|
|
3949
3960
|
slug: {}
|
|
3950
3961
|
},
|
|
3951
3962
|
setup(c) {
|
|
3952
|
-
const e = c, o = et(),
|
|
3953
|
-
var f,
|
|
3954
|
-
const
|
|
3955
|
-
return (
|
|
3956
|
-
}), l =
|
|
3957
|
-
var f,
|
|
3958
|
-
const
|
|
3959
|
-
return (
|
|
3963
|
+
const e = c, o = et(), a = Xe(), n = S(() => o.record ? o.record : o.random(o.all)), i = S(() => {
|
|
3964
|
+
var f, u;
|
|
3965
|
+
const p = a.current.value.dark ? "logodark" : "logolight";
|
|
3966
|
+
return (u = (f = n.value) == null ? void 0 : f.metadata.images[p]) == null ? void 0 : u.url;
|
|
3967
|
+
}), l = S(() => {
|
|
3968
|
+
var f, u;
|
|
3969
|
+
const p = a.current.value.dark ? "bgdark" : "bglight";
|
|
3970
|
+
return (u = (f = n.value) == null ? void 0 : f.metadata.images[p]) == null ? void 0 : u.url;
|
|
3960
3971
|
});
|
|
3961
|
-
return
|
|
3972
|
+
return Ze(async () => {
|
|
3962
3973
|
e.slug && await o.show(e.slug);
|
|
3963
|
-
}), (
|
|
3964
|
-
const
|
|
3965
|
-
return
|
|
3974
|
+
}), (p, f) => {
|
|
3975
|
+
const u = kt;
|
|
3976
|
+
return d(), _(u, {
|
|
3966
3977
|
color: "surface-light",
|
|
3967
3978
|
image: t(l),
|
|
3968
3979
|
style: { transform: "translateY(0)" }
|
|
3969
3980
|
}, {
|
|
3970
3981
|
default: r(() => {
|
|
3971
|
-
var h, b,
|
|
3982
|
+
var h, b, g;
|
|
3972
3983
|
return [
|
|
3973
3984
|
y("a", {
|
|
3974
3985
|
class: "d-flex align-center text-decoration-none py-2 px-4 ms-n4 flex-1-0 me-n4 text-high-emphasis position-relative",
|
|
@@ -3976,20 +3987,20 @@ const Ke = W("settings", () => {
|
|
|
3976
3987
|
rel: "noopener noreferrer",
|
|
3977
3988
|
target: "_blank"
|
|
3978
3989
|
}, [
|
|
3979
|
-
|
|
3990
|
+
s(Q, {
|
|
3980
3991
|
class: "me-4",
|
|
3981
3992
|
image: t(i),
|
|
3982
3993
|
size: "24"
|
|
3983
3994
|
}, null, 8, ["image"]),
|
|
3984
3995
|
y("div", Ts, C((b = t(n)) == null ? void 0 : b.metadata.text), 1),
|
|
3985
|
-
(
|
|
3996
|
+
(g = t(n)) != null && g.metadata.advertisement ? (d(), _(te, {
|
|
3986
3997
|
key: 0,
|
|
3987
3998
|
class: "ms-auto me-n4 align-self-end mb-n2 py-1 ps-3",
|
|
3988
3999
|
rounded: "0 ts-lg",
|
|
3989
4000
|
size: "x-small",
|
|
3990
4001
|
text: "SPONSORED",
|
|
3991
4002
|
variant: "flat"
|
|
3992
|
-
})) :
|
|
4003
|
+
})) : w("", !0)
|
|
3993
4004
|
], 8, Fs)
|
|
3994
4005
|
];
|
|
3995
4006
|
}),
|
|
@@ -4015,56 +4026,56 @@ const Ke = W("settings", () => {
|
|
|
4015
4026
|
},
|
|
4016
4027
|
emits: ["script:error", "script:load"],
|
|
4017
4028
|
setup(c, { emit: e }) {
|
|
4018
|
-
const o = c,
|
|
4019
|
-
return
|
|
4020
|
-
const l = document.createElement("script"),
|
|
4021
|
-
l.type = "text/javascript", l.id = o.scriptId, l.src = o.src, l.onload = () =>
|
|
4022
|
-
}),
|
|
4029
|
+
const o = c, a = e, n = O(), i = O();
|
|
4030
|
+
return Ze(async () => {
|
|
4031
|
+
const l = document.createElement("script"), p = () => a("script:error");
|
|
4032
|
+
l.type = "text/javascript", l.id = o.scriptId, l.src = o.src, l.onload = () => a("script:load"), l.onerror = p, i.value = l;
|
|
4033
|
+
}), qe(() => {
|
|
4023
4034
|
var l;
|
|
4024
4035
|
i.value && ((l = n.value) == null || l.appendChild(i.value));
|
|
4025
4036
|
}), Dt(() => {
|
|
4026
4037
|
var l;
|
|
4027
4038
|
i.value && ((l = n.value) == null || l.removeChild(i.value));
|
|
4028
|
-
}), (l,
|
|
4039
|
+
}), (l, p) => (d(), L("div", {
|
|
4029
4040
|
id: c.id,
|
|
4030
4041
|
ref_key: "rootEl",
|
|
4031
4042
|
ref: n
|
|
4032
4043
|
}, null, 8, Ms));
|
|
4033
4044
|
}
|
|
4034
4045
|
}), Hs = W("spots", () => {
|
|
4035
|
-
const c = ce(), e = bt(), o =
|
|
4046
|
+
const c = ce(), e = bt(), o = O([]), a = O([]), n = O(), i = A(!1), l = S(() => n.value ? n.value : o.value.find(({
|
|
4036
4047
|
metadata: {
|
|
4037
|
-
site:
|
|
4048
|
+
site: V,
|
|
4038
4049
|
active: m
|
|
4039
4050
|
}
|
|
4040
|
-
}) => m ?
|
|
4041
|
-
async function
|
|
4051
|
+
}) => m ? V.includes("dev") && !1 || V.includes("*") ? !0 : V.some((v) => e.id.includes(v)) : !1));
|
|
4052
|
+
async function p() {
|
|
4042
4053
|
try {
|
|
4043
4054
|
i.value = !0;
|
|
4044
|
-
const
|
|
4045
|
-
o.value =
|
|
4055
|
+
const V = await c.get("/one/spots");
|
|
4056
|
+
o.value = V.spots;
|
|
4046
4057
|
} catch {
|
|
4047
4058
|
} finally {
|
|
4048
4059
|
i.value = !1;
|
|
4049
4060
|
}
|
|
4050
4061
|
return o.value;
|
|
4051
4062
|
}
|
|
4052
|
-
async function f(
|
|
4063
|
+
async function f(V) {
|
|
4053
4064
|
try {
|
|
4054
4065
|
i.value = !0;
|
|
4055
|
-
const m = await c.get(`/one/admin/spots/${
|
|
4066
|
+
const m = await c.get(`/one/admin/spots/${V}`);
|
|
4056
4067
|
return n.value = m.spot, m.spot;
|
|
4057
4068
|
} catch {
|
|
4058
4069
|
} finally {
|
|
4059
4070
|
i.value = !1;
|
|
4060
4071
|
}
|
|
4061
4072
|
}
|
|
4062
|
-
async function
|
|
4073
|
+
async function u(V) {
|
|
4063
4074
|
try {
|
|
4064
4075
|
i.value = !0;
|
|
4065
4076
|
const m = await c.form(
|
|
4066
4077
|
"/one/admin/spots",
|
|
4067
|
-
|
|
4078
|
+
V
|
|
4068
4079
|
);
|
|
4069
4080
|
return n.value = m.spot, m.spot;
|
|
4070
4081
|
} catch {
|
|
@@ -4072,11 +4083,11 @@ const Ke = W("settings", () => {
|
|
|
4072
4083
|
i.value = !1;
|
|
4073
4084
|
}
|
|
4074
4085
|
}
|
|
4075
|
-
async function h(
|
|
4086
|
+
async function h(V, m) {
|
|
4076
4087
|
try {
|
|
4077
4088
|
i.value = !0;
|
|
4078
4089
|
const v = await c.form(
|
|
4079
|
-
`/one/admin/spots/${
|
|
4090
|
+
`/one/admin/spots/${V}`,
|
|
4080
4091
|
m
|
|
4081
4092
|
);
|
|
4082
4093
|
return n.value = v.spot, v.spot;
|
|
@@ -4087,11 +4098,11 @@ const Ke = W("settings", () => {
|
|
|
4087
4098
|
}
|
|
4088
4099
|
async function b() {
|
|
4089
4100
|
}
|
|
4090
|
-
async function
|
|
4101
|
+
async function g() {
|
|
4091
4102
|
try {
|
|
4092
4103
|
i.value = !0;
|
|
4093
|
-
const
|
|
4094
|
-
|
|
4104
|
+
const V = await c.get("/one/admin/spots");
|
|
4105
|
+
a.value = V.spots;
|
|
4095
4106
|
} catch {
|
|
4096
4107
|
} finally {
|
|
4097
4108
|
i.value = !1;
|
|
@@ -4100,14 +4111,14 @@ const Ke = W("settings", () => {
|
|
|
4100
4111
|
}
|
|
4101
4112
|
return {
|
|
4102
4113
|
all: o,
|
|
4103
|
-
aall:
|
|
4114
|
+
aall: a,
|
|
4104
4115
|
isLoading: i,
|
|
4105
4116
|
spot: l,
|
|
4106
4117
|
record: n,
|
|
4107
|
-
admin:
|
|
4108
|
-
index:
|
|
4118
|
+
admin: g,
|
|
4119
|
+
index: p,
|
|
4109
4120
|
show: f,
|
|
4110
|
-
store:
|
|
4121
|
+
store: u,
|
|
4111
4122
|
update: h,
|
|
4112
4123
|
destroy: b
|
|
4113
4124
|
};
|
|
@@ -4115,32 +4126,32 @@ const Ke = W("settings", () => {
|
|
|
4115
4126
|
__name: "VoSpot",
|
|
4116
4127
|
setup(c) {
|
|
4117
4128
|
const e = Hs();
|
|
4118
|
-
return (o,
|
|
4129
|
+
return (o, a) => {
|
|
4119
4130
|
var n;
|
|
4120
|
-
return t(e).spot ? (
|
|
4131
|
+
return t(e).spot ? (d(), L("a", {
|
|
4121
4132
|
key: 0,
|
|
4122
4133
|
href: t(e).spot.metadata.href,
|
|
4123
4134
|
rel: "noopener noreferrer sponsored",
|
|
4124
4135
|
target: "_blank"
|
|
4125
4136
|
}, [
|
|
4126
|
-
|
|
4137
|
+
s(Y, {
|
|
4127
4138
|
class: "mx-auto",
|
|
4128
4139
|
color: t(e).spot.metadata.image ? void 0 : "surface",
|
|
4129
4140
|
rounded: "",
|
|
4130
4141
|
src: (n = t(e).spot.metadata.image) == null ? void 0 : n.url,
|
|
4131
4142
|
width: "225"
|
|
4132
4143
|
}, null, 8, ["color", "src"])
|
|
4133
|
-
], 8, Rs)) :
|
|
4144
|
+
], 8, Rs)) : w("", !0);
|
|
4134
4145
|
};
|
|
4135
4146
|
}
|
|
4136
4147
|
}), Oa = W("bins", () => {
|
|
4137
|
-
const c = M(), e = ce(), o =
|
|
4138
|
-
B(
|
|
4148
|
+
const c = M(), e = ce(), o = O([]), a = O(), n = A(!1), i = A(-1), l = S(() => !c.user || !a.value ? !1 : c.user.id === a.value.owner.id), p = S(() => o.value.filter((v) => v.favorite)), f = S(() => o.value.filter((v) => v.pinned));
|
|
4149
|
+
B(a, () => {
|
|
4139
4150
|
window.clearTimeout(i.value), i.value = window.setTimeout(() => {
|
|
4140
|
-
!
|
|
4151
|
+
!a.value || !l.value || g(a.value, a.value.id);
|
|
4141
4152
|
}, 100);
|
|
4142
4153
|
}, { deep: !0 });
|
|
4143
|
-
async function
|
|
4154
|
+
async function u() {
|
|
4144
4155
|
try {
|
|
4145
4156
|
n.value = !0;
|
|
4146
4157
|
const v = await e.get("/one/bins");
|
|
@@ -4164,29 +4175,29 @@ const Ke = W("settings", () => {
|
|
|
4164
4175
|
try {
|
|
4165
4176
|
n.value = !0;
|
|
4166
4177
|
const k = await e.post("/one/bins", { bin: v });
|
|
4167
|
-
return o.value.push(k.bin),
|
|
4178
|
+
return o.value.push(k.bin), a.value = k.bin, k;
|
|
4168
4179
|
} catch {
|
|
4169
4180
|
} finally {
|
|
4170
4181
|
n.value = !1;
|
|
4171
4182
|
}
|
|
4172
4183
|
return { bin: v };
|
|
4173
4184
|
}
|
|
4174
|
-
async function
|
|
4185
|
+
async function g(v, k) {
|
|
4175
4186
|
try {
|
|
4176
4187
|
n.value = !0;
|
|
4177
|
-
const N = await e.post(`/one/bins/${k}`, { bin: v }),
|
|
4178
|
-
o.value.splice(
|
|
4188
|
+
const N = await e.post(`/one/bins/${k}`, { bin: v }), j = o.value.findIndex((ie) => ie.id === k);
|
|
4189
|
+
o.value.splice(j, 1, N.bin);
|
|
4179
4190
|
} catch {
|
|
4180
4191
|
} finally {
|
|
4181
4192
|
n.value = !1;
|
|
4182
4193
|
}
|
|
4183
4194
|
return { bin: v };
|
|
4184
4195
|
}
|
|
4185
|
-
async function
|
|
4196
|
+
async function V(v, k) {
|
|
4186
4197
|
try {
|
|
4187
4198
|
n.value = !0;
|
|
4188
|
-
const N = k ? await
|
|
4189
|
-
|
|
4199
|
+
const N = k ? await g(v, k) : await b(v);
|
|
4200
|
+
a.value = N.bin;
|
|
4190
4201
|
} catch {
|
|
4191
4202
|
} finally {
|
|
4192
4203
|
n.value = !1;
|
|
@@ -4197,26 +4208,26 @@ const Ke = W("settings", () => {
|
|
|
4197
4208
|
try {
|
|
4198
4209
|
n.value = !0;
|
|
4199
4210
|
const k = await e.get(`/one/bins/${v}`);
|
|
4200
|
-
|
|
4211
|
+
a.value = k.bin;
|
|
4201
4212
|
} catch {
|
|
4202
4213
|
} finally {
|
|
4203
4214
|
n.value = !1;
|
|
4204
4215
|
}
|
|
4205
|
-
return { bin:
|
|
4216
|
+
return { bin: a.value };
|
|
4206
4217
|
}
|
|
4207
4218
|
return {
|
|
4208
4219
|
isLoading: n,
|
|
4209
4220
|
isOwner: l,
|
|
4210
4221
|
pinned: f,
|
|
4211
|
-
favorites:
|
|
4222
|
+
favorites: p,
|
|
4212
4223
|
all: o,
|
|
4213
4224
|
create: b,
|
|
4214
4225
|
delete: h,
|
|
4215
|
-
current:
|
|
4226
|
+
current: a,
|
|
4216
4227
|
find: m,
|
|
4217
|
-
get:
|
|
4218
|
-
update:
|
|
4219
|
-
updateOrCreate:
|
|
4228
|
+
get: u,
|
|
4229
|
+
update: g,
|
|
4230
|
+
updateOrCreate: V
|
|
4220
4231
|
};
|
|
4221
4232
|
});
|
|
4222
4233
|
function Na() {
|
|
@@ -4227,20 +4238,20 @@ function Na() {
|
|
|
4227
4238
|
}
|
|
4228
4239
|
function Ba(c, e) {
|
|
4229
4240
|
return function(o) {
|
|
4230
|
-
const
|
|
4231
|
-
|
|
4241
|
+
const a = o.store;
|
|
4242
|
+
a.url = e, a.$id === "site" && (a.id = c);
|
|
4232
4243
|
};
|
|
4233
4244
|
}
|
|
4234
4245
|
export {
|
|
4235
4246
|
Na as createOne,
|
|
4236
4247
|
Ba as one,
|
|
4237
4248
|
M as useAuthStore,
|
|
4238
|
-
|
|
4249
|
+
je as useBannersStore,
|
|
4239
4250
|
Oa as useBinsStore,
|
|
4240
4251
|
ce as useHttpStore,
|
|
4241
4252
|
P as useOneStore,
|
|
4242
4253
|
et as usePromotionsStore,
|
|
4243
4254
|
Ke as useSettingsStore,
|
|
4244
4255
|
Hs as useSpotsStore,
|
|
4245
|
-
|
|
4256
|
+
F as useUserStore
|
|
4246
4257
|
};
|