@vuetify/one 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +863 -799
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { mdiDiscord as
|
|
3
|
-
import { useRouter as Ue, useRoute as
|
|
1
|
+
import { reactive as Ct, watch as U, toRefs as Lt, ref as O, shallowRef as B, computed as w, defineComponent as $, openBlock as d, createBlock as _, unref as t, createSlots as H, withCtx as r, createElementVNode as b, toDisplayString as C, createVNode as a, createTextVNode as F, renderSlot as D, normalizeStyle as ot, createCommentVNode as S, withModifiers as Ze, mergeModels as nt, useModel as le, createElementBlock as L, Fragment as z, onMounted as Qe, nextTick as pe, renderList as ne, mergeProps as R, withDirectives as Ve, vShow as De, isRef as se, resolveComponent as Oe, normalizeClass as It, pushScopeId as At, popScopeId as Dt, onBeforeMount as Ye, onBeforeUnmount as Ot } from "vue";
|
|
2
|
+
import { mdiDiscord as Je, mdiGithub as Xe, mdiSync as Bt, mdiSyncOff as Nt, mdiLogoutVariant as Ut, mdiFullscreenExit as zt, mdiFullscreen as Tt, mdiCheck as Be, mdiHome as Ft, mdiTextBox as jt, mdiSelect as Mt, mdiSpaceInvaders as st, mdiImageFilterHdr as at, mdiRocketLaunchOutline as it, mdiWhiteBalanceSunny as Pt, mdiWeatherNight as Ht, mdiDesktopTowerMonitor as Rt, mdiContrastCircle as Et, mdiCog as qt, mdiCogOutline as Wt, mdiFileDocument as Gt, mdiCreditCardSettingsOutline as Zt, mdiRocketOutline as Qt, mdiCheckCircleOutline as Ae, mdiCreditCard as Yt, mdiReload as Jt, mdiPlaylistCheck as Xt, mdiCreditCardOutline as Kt, mdiMedal as eo, mdiOpenInNew as Ne, mdiHandHeart as to, mdiHandHeartOutline as oo, mdiEmailOpenOutline as rt, mdiEmailVariant as lt, mdiBell as no, mdiInboxOutline as so, mdiInboxFullOutline as ao, mdiBillboard as io, mdiBellOutline as ro, mdiViewDashboardOutline as lo, mdiCrown as co, mdiArrowULeftBottom as uo, mdiLogin as po, mdiShieldStarOutline as mo, mdiReddit as fo } from "@mdi/js";
|
|
3
|
+
import { useRouter as Ue, useRoute as vo } from "vue-router";
|
|
4
4
|
import { defineStore as W } from "pinia";
|
|
5
|
-
import { merge as
|
|
6
|
-
import { VListItem as ke, VList as ae, VListItemTitle as ct, VListItemSubtitle as
|
|
7
|
-
import { VAvatar as
|
|
8
|
-
import { VCard as E, VCardTitle as
|
|
5
|
+
import { merge as Ee } from "lodash-es";
|
|
6
|
+
import { VListItem as ke, VList as ae, VListItemTitle as ct, VListItemSubtitle as ho } from "vuetify/lib/components/VList/index.mjs";
|
|
7
|
+
import { VAvatar as Y } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
8
|
+
import { VCard as E, VCardTitle as _o, VCardSubtitle as go, VCardText as _e } from "vuetify/lib/components/VCard/index.mjs";
|
|
9
9
|
import { VDialog as ut } from "vuetify/lib/components/VDialog/index.mjs";
|
|
10
|
-
import { VBadge as
|
|
10
|
+
import { VBadge as Ke } from "vuetify/lib/components/VBadge/index.mjs";
|
|
11
11
|
import { VBtn as q } from "vuetify/lib/components/VBtn/index.mjs";
|
|
12
|
-
import { VProgressCircular as
|
|
12
|
+
import { VProgressCircular as yo } 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 ce, useTheme as
|
|
17
|
-
import { VDivider as
|
|
15
|
+
import { VFadeTransition as ze, VExpandTransition as me, VExpandXTransition as bo } from "vuetify/lib/components/transitions/index.mjs";
|
|
16
|
+
import { useDisplay as ce, useTheme as Te, useDate as Fe } from "vuetify";
|
|
17
|
+
import { VDivider as G } from "vuetify/lib/components/VDivider/index.mjs";
|
|
18
18
|
import { VIcon as A } from "vuetify/lib/components/VIcon/index.mjs";
|
|
19
|
-
import { VLabel as
|
|
19
|
+
import { VLabel as We } from "vuetify/lib/components/VLabel/index.mjs";
|
|
20
20
|
import { VChip as te } from "vuetify/lib/components/VChip/index.mjs";
|
|
21
|
-
import { VChipGroup as
|
|
22
|
-
import { VSelect as
|
|
21
|
+
import { VChipGroup as Vo } from "vuetify/lib/components/VChipGroup/index.mjs";
|
|
22
|
+
import { VSelect as ko } 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
|
|
25
|
-
import { VImg as
|
|
26
|
-
import { VItemGroup as pt, VItem as
|
|
24
|
+
import { VHover as je } from "vuetify/lib/components/VHover/index.mjs";
|
|
25
|
+
import { VImg as Z } from "vuetify/lib/components/VImg/index.mjs";
|
|
26
|
+
import { VItemGroup as pt, VItem as Ge } from "vuetify/lib/components/VItemGroup/index.mjs";
|
|
27
27
|
import { VLayout as $e } from "vuetify/lib/components/VLayout/index.mjs";
|
|
28
28
|
import { VMain as xe } from "vuetify/lib/components/VMain/index.mjs";
|
|
29
|
-
import { VDataTableVirtual as
|
|
29
|
+
import { VDataTableVirtual as $o } 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";
|
|
32
|
-
import { VTimelineItem as
|
|
32
|
+
import { VTimelineItem as xo, VTimeline as wo } from "vuetify/lib/components/VTimeline/index.mjs";
|
|
33
33
|
import { VTooltip as ee } from "vuetify/lib/components/VTooltip/index.mjs";
|
|
34
|
-
import { VResponsive as
|
|
35
|
-
import { VNavigationDrawer as
|
|
36
|
-
import { Ripple as
|
|
37
|
-
import { VColorPicker as
|
|
38
|
-
import { VMenu as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import { VLazy as
|
|
34
|
+
import { VResponsive as So } from "vuetify/lib/components/VResponsive/index.mjs";
|
|
35
|
+
import { VNavigationDrawer as Co } from "vuetify/lib/components/VNavigationDrawer/index.mjs";
|
|
36
|
+
import { Ripple as Lo } from "vuetify/lib/directives/index.mjs";
|
|
37
|
+
import { VColorPicker as Io } from "vuetify/lib/components/VColorPicker/index.mjs";
|
|
38
|
+
import { VMenu as Ao } from "vuetify/components";
|
|
39
|
+
import { VAppBar as ft } from "vuetify/lib/components/VAppBar/index.mjs";
|
|
40
|
+
import { VFooter as Do } from "vuetify/lib/components/VFooter/index.mjs";
|
|
41
|
+
import { VLazy as Oo } from "vuetify/lib/components/VLazy/index.mjs";
|
|
42
42
|
const ie = W("http", {
|
|
43
43
|
state: () => ({
|
|
44
44
|
url: ""
|
|
45
45
|
}),
|
|
46
46
|
actions: {
|
|
47
47
|
async fetch(c, e = {}) {
|
|
48
|
-
const
|
|
48
|
+
const n = await fetch(`${this.url}${c}`, {
|
|
49
49
|
credentials: "include",
|
|
50
50
|
...e
|
|
51
51
|
});
|
|
52
|
-
return
|
|
52
|
+
return n.status === 204 ? n : n.json();
|
|
53
53
|
},
|
|
54
|
-
async post(c, e,
|
|
54
|
+
async post(c, e, n = {}) {
|
|
55
55
|
return this.fetch(c, {
|
|
56
56
|
method: "POST",
|
|
57
57
|
headers: {
|
|
58
58
|
"Content-Type": "application/json"
|
|
59
59
|
},
|
|
60
60
|
body: JSON.stringify(e),
|
|
61
|
-
...
|
|
61
|
+
...n
|
|
62
62
|
});
|
|
63
63
|
},
|
|
64
|
-
async form(c, e,
|
|
64
|
+
async form(c, e, n = {}) {
|
|
65
65
|
return this.fetch(c, {
|
|
66
66
|
method: "POST",
|
|
67
67
|
body: e,
|
|
68
|
-
...
|
|
68
|
+
...n
|
|
69
69
|
});
|
|
70
70
|
},
|
|
71
71
|
async get(c, e = {}) {
|
|
@@ -78,7 +78,7 @@ const ie = W("http", {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
}),
|
|
81
|
+
}), qe = typeof window < "u", Ie = {
|
|
82
82
|
v: 5,
|
|
83
83
|
api: "link-only",
|
|
84
84
|
avatar: "",
|
|
@@ -117,32 +117,32 @@ const ie = W("http", {
|
|
|
117
117
|
jobs: null
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
},
|
|
121
|
-
const c =
|
|
122
|
-
U(c,
|
|
120
|
+
}, T = W("user", () => {
|
|
121
|
+
const c = Ct(Ee({}, Ie));
|
|
122
|
+
U(c, n);
|
|
123
123
|
function e() {
|
|
124
|
-
if (!
|
|
124
|
+
if (!qe)
|
|
125
125
|
return;
|
|
126
|
-
const s = localStorage.getItem("vuetify@user"),
|
|
127
|
-
let l =
|
|
128
|
-
|
|
126
|
+
const s = localStorage.getItem("vuetify@user"), o = s ? JSON.parse(s) : {};
|
|
127
|
+
let l = o.v === c.v;
|
|
128
|
+
o.v || (o.pwaRefresh = !0, typeof o.api == "boolean" && (o.api = o.api ? "inline" : "link-only"), typeof o.rtl == "boolean" && (o.direction = o.rtl ? "rtl" : "ltr", delete o.rtl), typeof o.theme == "object" && (o.mixedTheme = o.theme.mixed, o.theme = o.theme.system ? "system" : o.theme.dark ? "dark" : "light"), Array.isArray(o.notifications) && (o.notifications = { read: o.notifications }), typeof o.last == "object" && (o.notifications.last = o.last, delete o.last)), o.v === 1 && (Array.isArray(o.composition) && (o.composition = "composition"), Array.isArray(o.notifications.last.banner) || (o.notifications = o.notifications || {}, o.notifications.last = o.notifications.last || {}, o.notifications.last.banner = [])), o.v === 2 && (o.syncSettings = !0, o.disableAds = !1, o.v = 3), o.v === 3 && (o.quickbar = !1), o.v === 4 && (o.suits = Ie.suits, o.notifications.banners = Ie.notifications.banners, l = !0), o.v = c.v, Object.assign(c, Ee(c, o)), l && n();
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
|
|
130
|
+
function n() {
|
|
131
|
+
qe && localStorage.setItem("vuetify@user", JSON.stringify(c, null, 2));
|
|
132
132
|
}
|
|
133
133
|
function i() {
|
|
134
|
-
|
|
134
|
+
qe && (Object.assign(c, Ee({}, Ie)), n());
|
|
135
135
|
}
|
|
136
136
|
return e(), {
|
|
137
|
-
...
|
|
137
|
+
...Lt(c),
|
|
138
138
|
load: e,
|
|
139
|
-
save:
|
|
139
|
+
save: n,
|
|
140
140
|
reset: i
|
|
141
141
|
};
|
|
142
142
|
}), M = W("auth", () => {
|
|
143
|
-
const c =
|
|
143
|
+
const c = O(!1), e = O(null), n = ie(), i = T(), s = Ue(), o = B(!1), l = w(() => {
|
|
144
144
|
var p, v;
|
|
145
|
-
return !
|
|
145
|
+
return !n.url || ((p = e.value) == null ? void 0 : p.isAdmin) || !!((v = e.value) != null && v.sponsorships.some((V) => V.isActive));
|
|
146
146
|
});
|
|
147
147
|
let m = !!y();
|
|
148
148
|
U(e, (p) => {
|
|
@@ -156,7 +156,7 @@ const ie = W("http", {
|
|
|
156
156
|
async function f() {
|
|
157
157
|
if (!(!e.value || !i.syncSettings))
|
|
158
158
|
try {
|
|
159
|
-
await
|
|
159
|
+
await n.post("/user/settings", { settings: i.$state });
|
|
160
160
|
} catch (p) {
|
|
161
161
|
console.error(p);
|
|
162
162
|
}
|
|
@@ -164,7 +164,7 @@ const ie = W("http", {
|
|
|
164
164
|
async function u(p = !1) {
|
|
165
165
|
if (u.promise)
|
|
166
166
|
return u.promise;
|
|
167
|
-
|
|
167
|
+
o.value = !0, u.promise = fetch(`${n.url}/auth/verify`, {
|
|
168
168
|
credentials: "include",
|
|
169
169
|
headers: p ? {
|
|
170
170
|
"Cache-Control": "no-cache"
|
|
@@ -176,87 +176,87 @@ const ie = W("http", {
|
|
|
176
176
|
() => {
|
|
177
177
|
}
|
|
178
178
|
).finally(() => {
|
|
179
|
-
|
|
179
|
+
o.value = !1, u.promise = null;
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
u.promise = null;
|
|
183
183
|
async function h(p = "github") {
|
|
184
|
-
|
|
185
|
-
const v = `${
|
|
184
|
+
o.value = !0;
|
|
185
|
+
const v = `${n.url}/auth/${p}/redirect`, V = 400, N = 600, j = window.screenX + (window.innerWidth - V) / 2, re = window.screenY + (window.innerHeight - N) / 2, Q = window.open(
|
|
186
186
|
"",
|
|
187
187
|
"vuetify:authorize:popup",
|
|
188
|
-
`popup,left=${j},top=${re},width=${
|
|
188
|
+
`popup,left=${j},top=${re},width=${V},height=${N},resizable`
|
|
189
189
|
);
|
|
190
|
-
if (!
|
|
190
|
+
if (!Q) {
|
|
191
191
|
console.error("Failed to open popup");
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
Q.location.href = v;
|
|
195
195
|
let Ce = -1, Le = -1;
|
|
196
196
|
function he(oe) {
|
|
197
197
|
var x;
|
|
198
|
-
oe.origin ===
|
|
198
|
+
oe.origin === n.url && ((x = oe.data) == null ? void 0 : x.type) === "auth-response" && (oe.data.status === "success" ? (e.value || localStorage.setItem("vuetify@lastLoginProvider", p), e.value = oe.data.body.user, s.push({
|
|
199
199
|
path: "/user/dashboard/",
|
|
200
200
|
query: s.currentRoute.value.query
|
|
201
201
|
}), f()) : console.error(oe.data.message), ue());
|
|
202
202
|
}
|
|
203
203
|
function ue() {
|
|
204
|
-
window.removeEventListener("message", he), window.clearInterval(Ce), window.clearTimeout(Le),
|
|
204
|
+
window.removeEventListener("message", he), window.clearInterval(Ce), window.clearTimeout(Le), Q == null || Q.close(), o.value = !1;
|
|
205
205
|
}
|
|
206
206
|
window.addEventListener("message", he), Ce = window.setInterval(() => {
|
|
207
|
-
!
|
|
207
|
+
!Q || Q.closed ? (console.error("Auth popup closed"), ue()) : Q.postMessage({ type: "auth-request" }, "*");
|
|
208
208
|
}, 1e3), Le = window.setTimeout(() => {
|
|
209
209
|
ue(), console.error("Auth timed out");
|
|
210
210
|
}, 120 * 1e3);
|
|
211
211
|
}
|
|
212
|
-
async function
|
|
213
|
-
|
|
212
|
+
async function k(p) {
|
|
213
|
+
o.value = !0;
|
|
214
214
|
const v = p ? `/auth/${p}/logout` : "/auth/logout";
|
|
215
215
|
try {
|
|
216
|
-
await
|
|
217
|
-
} catch (
|
|
218
|
-
console.error(
|
|
216
|
+
await n.post(v), await u(!0), e.value = null;
|
|
217
|
+
} catch (V) {
|
|
218
|
+
console.error(V);
|
|
219
219
|
} finally {
|
|
220
220
|
s.push({
|
|
221
221
|
path: "/",
|
|
222
222
|
query: s.currentRoute.value.query
|
|
223
|
-
}),
|
|
223
|
+
}), o.value = !1;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
function g(p) {
|
|
227
227
|
var v;
|
|
228
|
-
return (v = e.value) == null ? void 0 : v.identities.find((
|
|
228
|
+
return (v = e.value) == null ? void 0 : v.identities.find((V) => V.provider === p);
|
|
229
229
|
}
|
|
230
230
|
function y() {
|
|
231
231
|
return localStorage.getItem("vuetify@lastLoginProvider");
|
|
232
232
|
}
|
|
233
233
|
return u(), {
|
|
234
234
|
user: e,
|
|
235
|
-
url:
|
|
235
|
+
url: n.url,
|
|
236
236
|
dialog: c,
|
|
237
|
-
isLoading:
|
|
237
|
+
isLoading: o,
|
|
238
238
|
findIdentity: g,
|
|
239
239
|
verify: u,
|
|
240
240
|
login: h,
|
|
241
|
-
logout:
|
|
241
|
+
logout: k,
|
|
242
242
|
isSubscriber: l,
|
|
243
243
|
lastLoginProvider: y,
|
|
244
244
|
sync: f
|
|
245
245
|
};
|
|
246
|
-
}),
|
|
246
|
+
}), Bo = { class: "text-body-2" }, No = /* @__PURE__ */ b("div", { class: "text-caption mt-n1" }, "Last Used", -1), vt = /* @__PURE__ */ $({
|
|
247
247
|
__name: "VoAuthDiscord",
|
|
248
248
|
setup(c) {
|
|
249
|
-
const e = M(),
|
|
250
|
-
return (s,
|
|
249
|
+
const e = M(), n = w(() => e.user && e.findIdentity("discord")), i = w(() => e.user ? n.value ? "Connected to Discord" : "Connect Discord" : "Login with Discord");
|
|
250
|
+
return (s, o) => (d(), _(ke, {
|
|
251
251
|
"base-color": "#5865F2",
|
|
252
|
-
"prepend-icon": `svg:${t(
|
|
252
|
+
"prepend-icon": `svg:${t(Je)}`,
|
|
253
253
|
rounded: "pill",
|
|
254
254
|
slim: "",
|
|
255
255
|
variant: "flat",
|
|
256
|
-
onClick:
|
|
257
|
-
},
|
|
256
|
+
onClick: o[0] || (o[0] = (l) => t(e).login("discord"))
|
|
257
|
+
}, H({
|
|
258
258
|
title: r(() => [
|
|
259
|
-
b("span",
|
|
259
|
+
b("span", Bo, C(t(i)), 1)
|
|
260
260
|
]),
|
|
261
261
|
_: 2
|
|
262
262
|
}, [
|
|
@@ -269,18 +269,18 @@ const ie = W("http", {
|
|
|
269
269
|
} : void 0
|
|
270
270
|
]), 1032, ["prepend-icon"]));
|
|
271
271
|
}
|
|
272
|
-
}), Uo = { class: "text-body-2" },
|
|
272
|
+
}), Uo = { class: "text-body-2" }, zo = /* @__PURE__ */ b("div", { class: "text-caption mt-n1" }, "Last Used", -1), ht = /* @__PURE__ */ $({
|
|
273
273
|
__name: "VoAuthGithub",
|
|
274
274
|
setup(c) {
|
|
275
|
-
const e = M(),
|
|
276
|
-
return (s,
|
|
275
|
+
const e = M(), n = w(() => e.user && e.findIdentity("github")), i = w(() => e.user ? n.value ? "Connected to GitHub" : "Connect GitHub" : "Login with GitHub");
|
|
276
|
+
return (s, o) => (d(), _(ke, {
|
|
277
277
|
"base-color": "#2a2a2a",
|
|
278
|
-
"prepend-icon": `svg:${t(
|
|
278
|
+
"prepend-icon": `svg:${t(Xe)}`,
|
|
279
279
|
rounded: "pill",
|
|
280
280
|
slim: "",
|
|
281
281
|
variant: "flat",
|
|
282
|
-
onClick:
|
|
283
|
-
},
|
|
282
|
+
onClick: o[0] || (o[0] = (l) => t(e).login("github"))
|
|
283
|
+
}, H({
|
|
284
284
|
title: r(() => [
|
|
285
285
|
b("span", Uo, C(t(i)), 1)
|
|
286
286
|
]),
|
|
@@ -289,39 +289,39 @@ const ie = W("http", {
|
|
|
289
289
|
!t(e).user && t(e).lastLoginProvider() === "github" ? {
|
|
290
290
|
name: "subtitle",
|
|
291
291
|
fn: r(() => [
|
|
292
|
-
|
|
292
|
+
zo
|
|
293
293
|
]),
|
|
294
294
|
key: "0"
|
|
295
295
|
} : void 0
|
|
296
296
|
]), 1032, ["prepend-icon"]));
|
|
297
297
|
}
|
|
298
|
-
}),
|
|
298
|
+
}), To = { class: "text-center" }, Fo = { class: "text-center mb-6" }, jo = { class: "font-weight-light mb-2" }, Mo = /* @__PURE__ */ b("span", { class: "font-weight-bold" }, "Vuetify One", -1), _t = /* @__PURE__ */ $({
|
|
299
299
|
__name: "VoAuthCard",
|
|
300
300
|
setup(c) {
|
|
301
301
|
const e = M();
|
|
302
|
-
return (
|
|
303
|
-
const s =
|
|
302
|
+
return (n, i) => {
|
|
303
|
+
const s = ht, o = vt;
|
|
304
304
|
return d(), _(E, {
|
|
305
305
|
class: "pt-6 pb-8 px-4 px-sm-8 mx-auto",
|
|
306
306
|
"max-width": "480"
|
|
307
307
|
}, {
|
|
308
308
|
default: r(() => [
|
|
309
|
-
b("div",
|
|
310
|
-
a(
|
|
309
|
+
b("div", To, [
|
|
310
|
+
a(Y, {
|
|
311
311
|
class: "mx-auto",
|
|
312
312
|
image: "https://vuetifyjs.b-cdn.net/docs/images/avatars/one.png",
|
|
313
313
|
size: "64"
|
|
314
314
|
}, null, 8, ["image"])
|
|
315
315
|
]),
|
|
316
|
-
b("div",
|
|
317
|
-
a(
|
|
316
|
+
b("div", Fo, [
|
|
317
|
+
a(_o, { class: "text-h5 mb-1 text-md-h4" }, {
|
|
318
318
|
default: r(() => [
|
|
319
|
-
b("div",
|
|
320
|
-
|
|
319
|
+
b("div", jo, C(t(e).lastLoginProvider() ? "Welcome back to" : "Login to"), 1),
|
|
320
|
+
Mo
|
|
321
321
|
]),
|
|
322
322
|
_: 1
|
|
323
323
|
}),
|
|
324
|
-
a(
|
|
324
|
+
a(go, { class: "text-wrap" }, {
|
|
325
325
|
default: r(() => [
|
|
326
326
|
F(" Login with GitHub or Discord to save your settings and unlock exclusive subscriber perks. ")
|
|
327
327
|
]),
|
|
@@ -335,7 +335,7 @@ const ie = W("http", {
|
|
|
335
335
|
}, {
|
|
336
336
|
default: r(() => [
|
|
337
337
|
a(s, { class: "mb-3" }),
|
|
338
|
-
a(
|
|
338
|
+
a(o)
|
|
339
339
|
]),
|
|
340
340
|
_: 1
|
|
341
341
|
})
|
|
@@ -344,15 +344,15 @@ const ie = W("http", {
|
|
|
344
344
|
});
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
|
-
}),
|
|
347
|
+
}), gt = /* @__PURE__ */ $({
|
|
348
348
|
__name: "VoAuthDialog",
|
|
349
349
|
setup(c) {
|
|
350
350
|
const e = M();
|
|
351
|
-
return (
|
|
352
|
-
const s =
|
|
351
|
+
return (n, i) => {
|
|
352
|
+
const s = _t;
|
|
353
353
|
return d(), _(ut, {
|
|
354
354
|
modelValue: t(e).dialog,
|
|
355
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
355
|
+
"onUpdate:modelValue": i[0] || (i[0] = (o) => t(e).dialog = o),
|
|
356
356
|
"max-width": "480"
|
|
357
357
|
}, {
|
|
358
358
|
default: r(() => [
|
|
@@ -362,32 +362,32 @@ const ie = W("http", {
|
|
|
362
362
|
}, 8, ["modelValue"]);
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
|
-
}),
|
|
366
|
-
const c = ie(), e =
|
|
365
|
+
}), Me = W("notifications", () => {
|
|
366
|
+
const c = ie(), e = T(), n = O([]), i = O([]), s = O(), o = B(!1), l = w(() => n.value.filter((p) => !e.notifications.read.includes(p.slug))), m = w(() => n.value.filter((p) => e.notifications.read.includes(p.slug)));
|
|
367
367
|
async function f() {
|
|
368
368
|
try {
|
|
369
|
-
|
|
369
|
+
o.value = !0;
|
|
370
370
|
const p = await c.get("/one/notifications");
|
|
371
|
-
|
|
371
|
+
n.value = p.notifications;
|
|
372
372
|
} catch {
|
|
373
373
|
} finally {
|
|
374
|
-
|
|
374
|
+
o.value = !1;
|
|
375
375
|
}
|
|
376
|
-
return
|
|
376
|
+
return n.value;
|
|
377
377
|
}
|
|
378
378
|
async function u(p) {
|
|
379
379
|
try {
|
|
380
|
-
|
|
380
|
+
o.value = !0;
|
|
381
381
|
const v = await c.get(`/one/admin/notifications/${p}`);
|
|
382
382
|
return s.value = v.notification, v.notification;
|
|
383
383
|
} catch {
|
|
384
384
|
} finally {
|
|
385
|
-
|
|
385
|
+
o.value = !1;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
async function h(p) {
|
|
389
389
|
try {
|
|
390
|
-
|
|
390
|
+
o.value = !0;
|
|
391
391
|
const v = await c.form(
|
|
392
392
|
"/one/admin/notifications",
|
|
393
393
|
p
|
|
@@ -395,54 +395,54 @@ const ie = W("http", {
|
|
|
395
395
|
return s.value = v.notification, v.notification;
|
|
396
396
|
} catch {
|
|
397
397
|
} finally {
|
|
398
|
-
|
|
398
|
+
o.value = !1;
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
|
-
async function
|
|
401
|
+
async function k(p, v) {
|
|
402
402
|
try {
|
|
403
|
-
|
|
404
|
-
const
|
|
403
|
+
o.value = !0;
|
|
404
|
+
const V = await c.form(
|
|
405
405
|
`/one/admin/notifications/${p}`,
|
|
406
406
|
v
|
|
407
407
|
);
|
|
408
|
-
return s.value =
|
|
408
|
+
return s.value = V.notification, V.notification;
|
|
409
409
|
} catch {
|
|
410
410
|
} finally {
|
|
411
|
-
|
|
411
|
+
o.value = !1;
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
async function g() {
|
|
415
415
|
}
|
|
416
416
|
async function y() {
|
|
417
417
|
try {
|
|
418
|
-
|
|
418
|
+
o.value = !0;
|
|
419
419
|
const p = await c.get("/one/admin/notifications");
|
|
420
420
|
i.value = p.notifications;
|
|
421
421
|
} catch {
|
|
422
422
|
} finally {
|
|
423
|
-
|
|
423
|
+
o.value = !1;
|
|
424
424
|
}
|
|
425
|
-
return
|
|
425
|
+
return n.value;
|
|
426
426
|
}
|
|
427
427
|
return {
|
|
428
|
-
isLoading:
|
|
429
|
-
all:
|
|
428
|
+
isLoading: o,
|
|
429
|
+
all: n,
|
|
430
430
|
aall: i,
|
|
431
431
|
admin: y,
|
|
432
432
|
record: s,
|
|
433
433
|
index: f,
|
|
434
434
|
show: u,
|
|
435
435
|
store: h,
|
|
436
|
-
update:
|
|
436
|
+
update: k,
|
|
437
437
|
destroy: g,
|
|
438
438
|
read: m,
|
|
439
439
|
unread: l
|
|
440
440
|
};
|
|
441
|
-
}),
|
|
441
|
+
}), Po = /* @__PURE__ */ $({
|
|
442
442
|
__name: "VoNotificationsTotalBadge",
|
|
443
443
|
setup(c) {
|
|
444
|
-
const e = M(),
|
|
445
|
-
return (
|
|
444
|
+
const e = M(), n = Me(), i = T(), s = w(() => i.notifications.show ? n.unread.length : 0);
|
|
445
|
+
return (o, l) => (d(), _(Ke, {
|
|
446
446
|
color: "error",
|
|
447
447
|
content: t(s),
|
|
448
448
|
dot: !!t(e).user,
|
|
@@ -450,7 +450,7 @@ const ie = W("http", {
|
|
|
450
450
|
"model-value": t(s) > 0
|
|
451
451
|
}, {
|
|
452
452
|
default: r(() => [
|
|
453
|
-
|
|
453
|
+
D(o.$slots, "default")
|
|
454
454
|
]),
|
|
455
455
|
_: 3
|
|
456
456
|
}, 8, ["content", "dot", "model-value"]));
|
|
@@ -462,7 +462,7 @@ const ie = W("http", {
|
|
|
462
462
|
},
|
|
463
463
|
setup(c) {
|
|
464
464
|
const e = c;
|
|
465
|
-
return (
|
|
465
|
+
return (n, i) => (d(), _(q, {
|
|
466
466
|
class: "text-none font-weight-regular",
|
|
467
467
|
color: "primary",
|
|
468
468
|
size: "small",
|
|
@@ -471,46 +471,46 @@ const ie = W("http", {
|
|
|
471
471
|
}),
|
|
472
472
|
tabindex: e.readonly ? -1 : void 0,
|
|
473
473
|
variant: "flat"
|
|
474
|
-
},
|
|
474
|
+
}, H({
|
|
475
475
|
loader: r(() => [
|
|
476
|
-
|
|
476
|
+
n.$slots.loader ? S("", !0) : (d(), _(yo, {
|
|
477
477
|
key: 0,
|
|
478
478
|
indeterminate: "disable-shrink",
|
|
479
479
|
size: "16",
|
|
480
480
|
width: "2"
|
|
481
481
|
})),
|
|
482
|
-
|
|
482
|
+
D(n.$slots, "loader")
|
|
483
483
|
]),
|
|
484
484
|
_: 2
|
|
485
485
|
}, [
|
|
486
|
-
|
|
486
|
+
n.$slots.prepend ? {
|
|
487
487
|
name: "prepend",
|
|
488
488
|
fn: r(() => [
|
|
489
|
-
|
|
489
|
+
D(n.$slots, "prepend")
|
|
490
490
|
]),
|
|
491
491
|
key: "0"
|
|
492
492
|
} : void 0,
|
|
493
|
-
|
|
493
|
+
n.$slots.default ? {
|
|
494
494
|
name: "default",
|
|
495
495
|
fn: r(() => [
|
|
496
|
-
|
|
496
|
+
D(n.$slots, "default")
|
|
497
497
|
]),
|
|
498
498
|
key: "1"
|
|
499
499
|
} : void 0
|
|
500
500
|
]), 1032, ["style", "tabindex"]));
|
|
501
501
|
}
|
|
502
|
-
}),
|
|
502
|
+
}), Ho = { class: "pa-4 d-flex flex-column ga-4" }, yt = /* @__PURE__ */ $({
|
|
503
503
|
__name: "VoAuthListItem",
|
|
504
504
|
setup(c) {
|
|
505
|
-
const e = M(),
|
|
506
|
-
U(() => e.user, (
|
|
507
|
-
i.value = !
|
|
505
|
+
const e = M(), n = T(), i = B(!e.user && !e.isLoading);
|
|
506
|
+
U(() => e.user, (o) => {
|
|
507
|
+
i.value = !o;
|
|
508
508
|
});
|
|
509
509
|
function s() {
|
|
510
510
|
e.user && (i.value = !i.value);
|
|
511
511
|
}
|
|
512
|
-
return (
|
|
513
|
-
const m =
|
|
512
|
+
return (o, l) => {
|
|
513
|
+
const m = ht, f = vt;
|
|
514
514
|
return d(), _(E, {
|
|
515
515
|
class: "ma-2",
|
|
516
516
|
rounded: "lg",
|
|
@@ -523,29 +523,29 @@ const ie = W("http", {
|
|
|
523
523
|
class: "mb-0",
|
|
524
524
|
link: !!t(e).user,
|
|
525
525
|
nav: "",
|
|
526
|
-
"prepend-icon": `svg:${t(e).user && t(
|
|
526
|
+
"prepend-icon": `svg:${t(e).user && t(n).syncSettings ? t(Bt) : t(Nt)}`,
|
|
527
527
|
rounded: "b-0",
|
|
528
528
|
slim: "",
|
|
529
|
-
title: t(e).user && t(
|
|
529
|
+
title: t(e).user && t(n).syncSettings ? "Sync is on" : "Sync is paused",
|
|
530
530
|
onClick: s
|
|
531
531
|
}, {
|
|
532
532
|
append: r(() => [
|
|
533
|
-
a(
|
|
533
|
+
a(ze, null, {
|
|
534
534
|
default: r(() => [
|
|
535
|
-
t(e).user && (t(i) || !t(
|
|
535
|
+
t(e).user && (t(i) || !t(n).syncSettings) ? (d(), _(dt, {
|
|
536
536
|
key: 0,
|
|
537
|
-
modelValue: t(
|
|
538
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => t(
|
|
539
|
-
color: t(
|
|
537
|
+
modelValue: t(n).syncSettings,
|
|
538
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => t(n).syncSettings = u),
|
|
539
|
+
color: t(n).syncSettings ? "success" : void 0,
|
|
540
540
|
density: "compact",
|
|
541
541
|
"hide-details": "",
|
|
542
542
|
inset: "",
|
|
543
|
-
onClick: l[1] || (l[1] =
|
|
543
|
+
onClick: l[1] || (l[1] = Ze(() => {
|
|
544
544
|
}, ["stop"]))
|
|
545
545
|
}, {
|
|
546
546
|
thumb: r(() => [
|
|
547
|
-
a(
|
|
548
|
-
color: t(
|
|
547
|
+
a(Y, {
|
|
548
|
+
color: t(n).syncSettings ? "success" : void 0
|
|
549
549
|
}, null, 8, ["color"])
|
|
550
550
|
]),
|
|
551
551
|
_: 1
|
|
@@ -564,7 +564,7 @@ const ie = W("http", {
|
|
|
564
564
|
color: "transparent"
|
|
565
565
|
}, {
|
|
566
566
|
default: r(() => [
|
|
567
|
-
b("div",
|
|
567
|
+
b("div", Ho, [
|
|
568
568
|
a(m, {
|
|
569
569
|
onClick: l[2] || (l[2] = (u) => i.value = !1)
|
|
570
570
|
}),
|
|
@@ -589,50 +589,50 @@ const ie = W("http", {
|
|
|
589
589
|
}), J = /* @__PURE__ */ $({
|
|
590
590
|
__name: "VoListItem",
|
|
591
591
|
setup(c) {
|
|
592
|
-
return (e,
|
|
592
|
+
return (e, n) => (d(), _(ke, { slim: "" }, H({
|
|
593
593
|
default: r(() => [
|
|
594
|
-
|
|
594
|
+
D(e.$slots, "default")
|
|
595
595
|
]),
|
|
596
596
|
_: 2
|
|
597
597
|
}, [
|
|
598
598
|
e.$slots.prepend ? {
|
|
599
599
|
name: "prepend",
|
|
600
600
|
fn: r(() => [
|
|
601
|
-
|
|
601
|
+
D(e.$slots, "prepend")
|
|
602
602
|
]),
|
|
603
603
|
key: "0"
|
|
604
604
|
} : void 0,
|
|
605
605
|
e.$slots.title ? {
|
|
606
606
|
name: "title",
|
|
607
607
|
fn: r(() => [
|
|
608
|
-
|
|
608
|
+
D(e.$slots, "title")
|
|
609
609
|
]),
|
|
610
610
|
key: "1"
|
|
611
611
|
} : void 0,
|
|
612
612
|
e.$slots.append ? {
|
|
613
613
|
name: "append",
|
|
614
614
|
fn: r(() => [
|
|
615
|
-
|
|
615
|
+
D(e.$slots, "append")
|
|
616
616
|
]),
|
|
617
617
|
key: "2"
|
|
618
618
|
} : void 0
|
|
619
619
|
]), 1024));
|
|
620
620
|
}
|
|
621
|
-
}),
|
|
621
|
+
}), Ro = /* @__PURE__ */ $({
|
|
622
622
|
__name: "VoAuthLogoutNavItem",
|
|
623
623
|
setup(c) {
|
|
624
|
-
const e = M(),
|
|
624
|
+
const e = M(), n = B(!1);
|
|
625
625
|
async function i() {
|
|
626
|
-
|
|
626
|
+
n.value = !0, await e.logout(), n.value = !1;
|
|
627
627
|
}
|
|
628
|
-
return (s,
|
|
628
|
+
return (s, o) => {
|
|
629
629
|
const l = J;
|
|
630
630
|
return d(), _(l, {
|
|
631
631
|
class: "mb-0",
|
|
632
|
-
disabled: t(
|
|
632
|
+
disabled: t(n),
|
|
633
633
|
link: "",
|
|
634
|
-
loading: t(
|
|
635
|
-
"prepend-icon": `svg:${t(
|
|
634
|
+
loading: t(n),
|
|
635
|
+
"prepend-icon": `svg:${t(Ut)}`,
|
|
636
636
|
title: "Logout",
|
|
637
637
|
onClick: i
|
|
638
638
|
}, null, 8, ["disabled", "loading", "prepend-icon"]);
|
|
@@ -649,15 +649,15 @@ const ie = W("http", {
|
|
|
649
649
|
}),
|
|
650
650
|
emits: ["update:modelValue"],
|
|
651
651
|
setup(c) {
|
|
652
|
-
const e = le(c, "modelValue"),
|
|
653
|
-
return (s,
|
|
652
|
+
const e = le(c, "modelValue"), n = ce(), i = B(!1);
|
|
653
|
+
return (s, o) => (d(), _(ut, {
|
|
654
654
|
modelValue: e.value,
|
|
655
|
-
"onUpdate:modelValue":
|
|
655
|
+
"onUpdate:modelValue": o[2] || (o[2] = (l) => e.value = l),
|
|
656
656
|
activator: "parent",
|
|
657
|
-
fullscreen: t(i) || t(
|
|
657
|
+
fullscreen: t(i) || t(n).xs.value,
|
|
658
658
|
height: "100%",
|
|
659
|
-
"max-height": t(i) || t(
|
|
660
|
-
"max-width": t(i) || t(
|
|
659
|
+
"max-height": t(i) || t(n).xs.value ? "100%" : 800,
|
|
660
|
+
"max-width": t(i) || t(n).xs.value ? "100%" : 800
|
|
661
661
|
}, {
|
|
662
662
|
default: r(({ isActive: l }) => [
|
|
663
663
|
a(E, {
|
|
@@ -665,43 +665,43 @@ const ie = W("http", {
|
|
|
665
665
|
height: "inherit",
|
|
666
666
|
"prepend-icon": s.prependIcon,
|
|
667
667
|
title: s.title
|
|
668
|
-
},
|
|
668
|
+
}, H({
|
|
669
669
|
append: r(() => [
|
|
670
|
-
|
|
671
|
-
t(
|
|
670
|
+
D(s.$slots, "append"),
|
|
671
|
+
t(n).xs.value ? S("", !0) : (d(), _(q, {
|
|
672
672
|
key: 0,
|
|
673
673
|
class: "me-2",
|
|
674
674
|
density: "comfortable",
|
|
675
|
-
icon: `svg:${t(i) ? t(
|
|
675
|
+
icon: `svg:${t(i) ? t(zt) : t(Tt)}`,
|
|
676
676
|
size: "small",
|
|
677
677
|
variant: "text",
|
|
678
|
-
onClick:
|
|
678
|
+
onClick: o[0] || (o[0] = (m) => i.value = !t(i))
|
|
679
679
|
}, null, 8, ["icon"])),
|
|
680
680
|
a(q, {
|
|
681
681
|
density: "comfortable",
|
|
682
682
|
icon: "$close",
|
|
683
683
|
size: "small",
|
|
684
684
|
variant: "text",
|
|
685
|
-
onClick:
|
|
685
|
+
onClick: o[1] || (o[1] = (m) => e.value = !e.value)
|
|
686
686
|
})
|
|
687
687
|
]),
|
|
688
688
|
default: r(() => [
|
|
689
|
-
a(
|
|
690
|
-
|
|
689
|
+
a(G, { class: "mt-4" }),
|
|
690
|
+
D(s.$slots, "default")
|
|
691
691
|
]),
|
|
692
692
|
_: 2
|
|
693
693
|
}, [
|
|
694
694
|
s.$slots.prepend ? {
|
|
695
695
|
name: "prepend",
|
|
696
696
|
fn: r(() => [
|
|
697
|
-
|
|
697
|
+
D(s.$slots, "prepend")
|
|
698
698
|
]),
|
|
699
699
|
key: "0"
|
|
700
700
|
} : void 0,
|
|
701
701
|
s.$slots.actions ? {
|
|
702
702
|
name: "actions",
|
|
703
703
|
fn: r(() => [
|
|
704
|
-
|
|
704
|
+
D(s.$slots, "actions", { isActive: l })
|
|
705
705
|
]),
|
|
706
706
|
key: "1"
|
|
707
707
|
} : void 0
|
|
@@ -710,19 +710,19 @@ const ie = W("http", {
|
|
|
710
710
|
_: 3
|
|
711
711
|
}, 8, ["modelValue", "fullscreen", "max-height", "max-width"]));
|
|
712
712
|
}
|
|
713
|
-
}),
|
|
713
|
+
}), bt = /* @__PURE__ */ $({
|
|
714
714
|
__name: "VoSwitch",
|
|
715
715
|
props: {
|
|
716
716
|
disabled: { type: Boolean }
|
|
717
717
|
},
|
|
718
718
|
setup(c) {
|
|
719
|
-
return (e,
|
|
719
|
+
return (e, n) => (d(), _(dt, {
|
|
720
720
|
color: "primary",
|
|
721
721
|
density: "compact",
|
|
722
722
|
disabled: e.disabled,
|
|
723
723
|
inset: "",
|
|
724
|
-
"true-icon": `svg:${t(
|
|
725
|
-
},
|
|
724
|
+
"true-icon": `svg:${t(Be)}`
|
|
725
|
+
}, H({
|
|
726
726
|
thumb: r(() => [
|
|
727
727
|
a(A, {
|
|
728
728
|
color: e.disabled ? void 0 : "primary"
|
|
@@ -733,13 +733,13 @@ const ie = W("http", {
|
|
|
733
733
|
e.$slots.label ? {
|
|
734
734
|
name: "label",
|
|
735
735
|
fn: r(() => [
|
|
736
|
-
|
|
736
|
+
D(e.$slots, "label")
|
|
737
737
|
]),
|
|
738
738
|
key: "0"
|
|
739
739
|
} : void 0
|
|
740
740
|
]), 1032, ["disabled", "true-icon"]));
|
|
741
741
|
}
|
|
742
|
-
}),
|
|
742
|
+
}), Eo = {
|
|
743
743
|
key: 1,
|
|
744
744
|
class: "mb-3 text-caption text-medium-emphasis"
|
|
745
745
|
}, Se = /* @__PURE__ */ $({
|
|
@@ -749,8 +749,8 @@ const ie = W("http", {
|
|
|
749
749
|
text: {}
|
|
750
750
|
},
|
|
751
751
|
setup(c) {
|
|
752
|
-
return (e,
|
|
753
|
-
e.title ? (d(), _(
|
|
752
|
+
return (e, n) => (d(), L(z, null, [
|
|
753
|
+
e.title ? (d(), _(We, {
|
|
754
754
|
key: 0,
|
|
755
755
|
class: "font-weight-black"
|
|
756
756
|
}, {
|
|
@@ -759,17 +759,17 @@ const ie = W("http", {
|
|
|
759
759
|
]),
|
|
760
760
|
_: 1
|
|
761
761
|
})) : S("", !0),
|
|
762
|
-
e.text ? (d(), L("div",
|
|
762
|
+
e.text ? (d(), L("div", Eo, C(e.text), 1)) : S("", !0)
|
|
763
763
|
], 64));
|
|
764
764
|
}
|
|
765
|
-
}),
|
|
765
|
+
}), qo = { key: 0 }, Wo = /* @__PURE__ */ $({
|
|
766
766
|
__name: "VoSettingsPageSuitOption",
|
|
767
767
|
setup(c) {
|
|
768
|
-
const e =
|
|
768
|
+
const e = T(), n = [
|
|
769
769
|
{
|
|
770
770
|
title: "Choose a page suit",
|
|
771
771
|
value: "",
|
|
772
|
-
prependIcon: `svg:${
|
|
772
|
+
prependIcon: `svg:${Mt}`,
|
|
773
773
|
disabled: !0
|
|
774
774
|
},
|
|
775
775
|
{
|
|
@@ -789,9 +789,9 @@ const ie = W("http", {
|
|
|
789
789
|
}
|
|
790
790
|
];
|
|
791
791
|
return (i, s) => {
|
|
792
|
-
const
|
|
793
|
-
return d(), L(
|
|
794
|
-
a(
|
|
792
|
+
const o = bt, l = Se;
|
|
793
|
+
return d(), L(z, null, [
|
|
794
|
+
a(o, {
|
|
795
795
|
modelValue: t(e).suits.show,
|
|
796
796
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => t(e).suits.show = m),
|
|
797
797
|
class: "mb-2",
|
|
@@ -800,14 +800,14 @@ const ie = W("http", {
|
|
|
800
800
|
}, null, 8, ["modelValue"]),
|
|
801
801
|
a(me, null, {
|
|
802
802
|
default: r(() => [
|
|
803
|
-
t(e).suits.show ? (d(), L("div",
|
|
804
|
-
a(
|
|
803
|
+
t(e).suits.show ? (d(), L("div", qo, [
|
|
804
|
+
a(ko, {
|
|
805
805
|
modelValue: t(e).suits.suit,
|
|
806
806
|
"onUpdate:modelValue": s[1] || (s[1] = (m) => t(e).suits.suit = m),
|
|
807
807
|
clearable: "",
|
|
808
808
|
density: "compact",
|
|
809
809
|
"item-props": "",
|
|
810
|
-
items:
|
|
810
|
+
items: n,
|
|
811
811
|
placeholder: "Choose a page suit",
|
|
812
812
|
"single-line": "",
|
|
813
813
|
style: { "max-width": "300px" },
|
|
@@ -824,7 +824,7 @@ const ie = W("http", {
|
|
|
824
824
|
_: 1
|
|
825
825
|
}, 8, ["modelValue"]),
|
|
826
826
|
a(l, { text: "Select your suit elements to display the background image:" }),
|
|
827
|
-
a(
|
|
827
|
+
a(Vo, {
|
|
828
828
|
modelValue: t(e).suits.elements,
|
|
829
829
|
"onUpdate:modelValue": s[2] || (s[2] = (m) => t(e).suits.elements = m),
|
|
830
830
|
color: "primary",
|
|
@@ -833,14 +833,14 @@ const ie = W("http", {
|
|
|
833
833
|
}, {
|
|
834
834
|
default: r(() => [
|
|
835
835
|
a(te, {
|
|
836
|
-
"append-icon": `svg:${t(
|
|
836
|
+
"append-icon": `svg:${t(Ft)}`,
|
|
837
837
|
"filter-icon": "$success",
|
|
838
838
|
text: "App Bar",
|
|
839
839
|
value: "app-bar",
|
|
840
840
|
variant: "flat"
|
|
841
841
|
}, {
|
|
842
842
|
append: r(() => [
|
|
843
|
-
a(
|
|
843
|
+
a(G, {
|
|
844
844
|
class: "ms-2 border-opacity-50",
|
|
845
845
|
vertical: ""
|
|
846
846
|
}),
|
|
@@ -849,14 +849,14 @@ const ie = W("http", {
|
|
|
849
849
|
_: 1
|
|
850
850
|
}, 8, ["append-icon"]),
|
|
851
851
|
a(te, {
|
|
852
|
-
"append-icon": `svg:${t(
|
|
852
|
+
"append-icon": `svg:${t(jt)}`,
|
|
853
853
|
"filter-icon": "$success",
|
|
854
854
|
text: "Navigation Drawer",
|
|
855
855
|
value: "drawer",
|
|
856
856
|
variant: "flat"
|
|
857
857
|
}, {
|
|
858
858
|
append: r(() => [
|
|
859
|
-
a(
|
|
859
|
+
a(G, {
|
|
860
860
|
class: "ms-2 border-opacity-50",
|
|
861
861
|
vertical: ""
|
|
862
862
|
}),
|
|
@@ -872,7 +872,7 @@ const ie = W("http", {
|
|
|
872
872
|
variant: "flat"
|
|
873
873
|
}, {
|
|
874
874
|
append: r(() => [
|
|
875
|
-
a(
|
|
875
|
+
a(G, {
|
|
876
876
|
class: "ms-2 border-opacity-50",
|
|
877
877
|
vertical: ""
|
|
878
878
|
}),
|
|
@@ -892,19 +892,19 @@ const ie = W("http", {
|
|
|
892
892
|
}
|
|
893
893
|
});
|
|
894
894
|
function ve() {
|
|
895
|
-
const c =
|
|
895
|
+
const c = vo();
|
|
896
896
|
return w(
|
|
897
897
|
() => c.query
|
|
898
898
|
);
|
|
899
899
|
}
|
|
900
900
|
const P = W("one", () => {
|
|
901
|
-
const c = ve(), e = Ue(),
|
|
901
|
+
const c = ve(), e = Ue(), n = M(), i = ie(), s = B(!1), o = O(!1), l = O(), m = O([]), f = w(() => c.value.session_id), u = w(() => {
|
|
902
902
|
var x;
|
|
903
903
|
return (x = l.value) == null ? void 0 : x.items[0].plan.interval;
|
|
904
904
|
}), h = w(() => {
|
|
905
905
|
var x;
|
|
906
|
-
return (x =
|
|
907
|
-
}),
|
|
906
|
+
return (x = n.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "stripe" && I.tierName.startsWith("sub_"));
|
|
907
|
+
}), k = w(() => {
|
|
908
908
|
var x;
|
|
909
909
|
return !!((x = h.value) != null && x.tierName);
|
|
910
910
|
}), g = w(() => {
|
|
@@ -912,35 +912,35 @@ const P = W("one", () => {
|
|
|
912
912
|
return (x = h.value) == null ? void 0 : x.isActive;
|
|
913
913
|
}), y = w(() => {
|
|
914
914
|
var x;
|
|
915
|
-
return (x =
|
|
915
|
+
return (x = n.user) == null ? void 0 : x.sponsorships.find((I) => I.tierName.startsWith("sub_"));
|
|
916
916
|
}), p = w(() => {
|
|
917
917
|
var x;
|
|
918
|
-
return (x =
|
|
918
|
+
return (x = n.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "github");
|
|
919
919
|
}), v = w(() => {
|
|
920
920
|
var x;
|
|
921
|
-
return (x =
|
|
922
|
-
}),
|
|
921
|
+
return (x = n.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "discord");
|
|
922
|
+
}), V = w(() => {
|
|
923
923
|
var x;
|
|
924
|
-
return (x =
|
|
924
|
+
return (x = n.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "patreon");
|
|
925
925
|
}), N = w(() => {
|
|
926
926
|
var x;
|
|
927
|
-
return (x =
|
|
927
|
+
return (x = n.user) == null ? void 0 : x.sponsorships.reduce((I, X) => {
|
|
928
928
|
if (!X.isActive || X.interval === "once" || X.platform === "stripe")
|
|
929
929
|
return I;
|
|
930
|
-
const
|
|
931
|
-
return I +
|
|
930
|
+
const St = X.interval === "month" ? X.amount : X.amount / 12;
|
|
931
|
+
return I + St / 100;
|
|
932
932
|
}, 0);
|
|
933
933
|
});
|
|
934
|
-
|
|
934
|
+
Qe(async () => {
|
|
935
935
|
f.value && await j();
|
|
936
|
-
}), U(
|
|
936
|
+
}), U(o, oe), U(f, (x) => {
|
|
937
937
|
x && j();
|
|
938
938
|
}, { immediate: !0 }), U(c, (x) => {
|
|
939
|
-
if (x.one !== "subscribe" ||
|
|
939
|
+
if (x.one !== "subscribe" || n.user)
|
|
940
940
|
return;
|
|
941
|
-
|
|
942
|
-
const I = U(() =>
|
|
943
|
-
X && (
|
|
941
|
+
n.dialog = !0;
|
|
942
|
+
const I = U(() => n.user, (X) => {
|
|
943
|
+
X && (n.dialog = !1, I());
|
|
944
944
|
});
|
|
945
945
|
}, { immediate: !0 }), U(g, (x, I) => {
|
|
946
946
|
x === !1 && I !== !0 || he();
|
|
@@ -949,7 +949,7 @@ const P = W("one", () => {
|
|
|
949
949
|
try {
|
|
950
950
|
s.value = !0;
|
|
951
951
|
const x = await i.post("/one/activate", { sessionId: f.value });
|
|
952
|
-
|
|
952
|
+
n.user = x.user;
|
|
953
953
|
const I = new URL(window.location.href);
|
|
954
954
|
I.searchParams.delete("session_id"), history.pushState(null, "", I.toString()), ue();
|
|
955
955
|
} catch {
|
|
@@ -960,7 +960,7 @@ const P = W("one", () => {
|
|
|
960
960
|
async function re() {
|
|
961
961
|
window.open(`${i.url}/one/manage`, "_blank");
|
|
962
962
|
}
|
|
963
|
-
async function
|
|
963
|
+
async function Q(x) {
|
|
964
964
|
s.value = !0, window.location.href = `${i.url}/one/subscribe?interval=${x}`;
|
|
965
965
|
}
|
|
966
966
|
async function Ce() {
|
|
@@ -971,7 +971,7 @@ const P = W("one", () => {
|
|
|
971
971
|
const I = await i.post(
|
|
972
972
|
`/one/cancel?subscriptionId=${(x = h.value) == null ? void 0 : x.tierName}`
|
|
973
973
|
);
|
|
974
|
-
|
|
974
|
+
n.user = I.user;
|
|
975
975
|
} catch {
|
|
976
976
|
} finally {
|
|
977
977
|
s.value = !1;
|
|
@@ -985,7 +985,7 @@ const P = W("one", () => {
|
|
|
985
985
|
subscriptionId: h.value.tierName,
|
|
986
986
|
interval: x
|
|
987
987
|
});
|
|
988
|
-
|
|
988
|
+
n.user = I.user;
|
|
989
989
|
} catch {
|
|
990
990
|
} finally {
|
|
991
991
|
s.value = !1;
|
|
@@ -999,7 +999,7 @@ const P = W("one", () => {
|
|
|
999
999
|
const I = await i.post(
|
|
1000
1000
|
`/one/verify?subscriptionId=${(x = h.value) == null ? void 0 : x.tierName}`
|
|
1001
1001
|
);
|
|
1002
|
-
|
|
1002
|
+
n.user = I.user;
|
|
1003
1003
|
} catch {
|
|
1004
1004
|
} finally {
|
|
1005
1005
|
s.value = !1;
|
|
@@ -1030,12 +1030,12 @@ const P = W("one", () => {
|
|
|
1030
1030
|
sessionId: f,
|
|
1031
1031
|
subscription: h,
|
|
1032
1032
|
monthlyTotal: N,
|
|
1033
|
-
hasBilling:
|
|
1033
|
+
hasBilling: k,
|
|
1034
1034
|
isLoading: s,
|
|
1035
|
-
isOpen:
|
|
1035
|
+
isOpen: o,
|
|
1036
1036
|
isSubscriber: g,
|
|
1037
1037
|
github: p,
|
|
1038
|
-
patreon:
|
|
1038
|
+
patreon: V,
|
|
1039
1039
|
discord: v,
|
|
1040
1040
|
one: y,
|
|
1041
1041
|
activate: j,
|
|
@@ -1043,12 +1043,12 @@ const P = W("one", () => {
|
|
|
1043
1043
|
manage: re,
|
|
1044
1044
|
modify: Le,
|
|
1045
1045
|
resetQuery: oe,
|
|
1046
|
-
subscribe:
|
|
1046
|
+
subscribe: Q,
|
|
1047
1047
|
subscriptionInfo: ue,
|
|
1048
1048
|
verify: he
|
|
1049
1049
|
};
|
|
1050
1050
|
});
|
|
1051
|
-
function
|
|
1051
|
+
function Go() {
|
|
1052
1052
|
return {
|
|
1053
1053
|
blackguard: {
|
|
1054
1054
|
dark: !0,
|
|
@@ -1204,8 +1204,8 @@ function Wo() {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
};
|
|
1206
1206
|
}
|
|
1207
|
-
const
|
|
1208
|
-
const c = "https://cdn.vuetifyjs.com/docs/images/one/", e = M(),
|
|
1207
|
+
const Pe = W("settings", () => {
|
|
1208
|
+
const c = "https://cdn.vuetifyjs.com/docs/images/one/", e = M(), n = T(), i = Te(), s = Go(), o = {
|
|
1209
1209
|
blackguard: {
|
|
1210
1210
|
"app-bar": c + "suits/blackguard/blackguard-app-bar.png",
|
|
1211
1211
|
drawer: c + "suits/blackguard/blackguard-app-drawer.png",
|
|
@@ -1222,23 +1222,23 @@ const Ke = W("settings", () => {
|
|
|
1222
1222
|
footer: c + "suits/nebula/nebula-app-footer.png"
|
|
1223
1223
|
}
|
|
1224
1224
|
}, l = w(() => {
|
|
1225
|
-
if (!
|
|
1225
|
+
if (!n.suits.suit || !n.suits.show || !e.isSubscriber)
|
|
1226
1226
|
return {};
|
|
1227
|
-
const m = n
|
|
1228
|
-
for (const u of
|
|
1227
|
+
const m = o[n.suits.suit.toLowerCase()], f = {};
|
|
1228
|
+
for (const u of n.suits.elements)
|
|
1229
1229
|
f[u] = m[u];
|
|
1230
1230
|
return f;
|
|
1231
1231
|
});
|
|
1232
1232
|
return i.themes.value = {
|
|
1233
1233
|
...i.themes.value,
|
|
1234
1234
|
...s
|
|
1235
|
-
}, U(() =>
|
|
1236
|
-
m === "system" ? i.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (i.global.name.value = m,
|
|
1235
|
+
}, U(() => n.theme, (m) => {
|
|
1236
|
+
m === "system" ? i.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (i.global.name.value = m, n.suits.suit = o[m] ? m : ""), n.theme = m;
|
|
1237
1237
|
}, { immediate: !0 }), {
|
|
1238
1238
|
suit: l,
|
|
1239
1239
|
CDN_URL: c
|
|
1240
1240
|
};
|
|
1241
|
-
}),
|
|
1241
|
+
}), Zo = { class: "ms-5 mb-2" }, Qo = /* @__PURE__ */ $({
|
|
1242
1242
|
__name: "VoSettingsDialog",
|
|
1243
1243
|
props: {
|
|
1244
1244
|
modelValue: { type: Boolean },
|
|
@@ -1246,26 +1246,26 @@ const Ke = W("settings", () => {
|
|
|
1246
1246
|
},
|
|
1247
1247
|
emits: ["update:modelValue"],
|
|
1248
1248
|
setup(c) {
|
|
1249
|
-
const e = le(c, "modelValue"),
|
|
1249
|
+
const e = le(c, "modelValue"), n = M(), i = P(), s = Pe(), o = T(), l = [
|
|
1250
1250
|
{
|
|
1251
1251
|
title: "Light",
|
|
1252
1252
|
subtitle: "A standard light theme.",
|
|
1253
1253
|
image: s.CDN_URL + "themes/light.png",
|
|
1254
|
-
prependIcon: `svg:${
|
|
1254
|
+
prependIcon: `svg:${Pt}`,
|
|
1255
1255
|
value: "light"
|
|
1256
1256
|
},
|
|
1257
1257
|
{
|
|
1258
1258
|
title: "Dark",
|
|
1259
1259
|
subtitle: "A standard dark theme.",
|
|
1260
1260
|
image: s.CDN_URL + "themes/dark.png",
|
|
1261
|
-
prependIcon: `svg:${
|
|
1261
|
+
prependIcon: `svg:${Ht}`,
|
|
1262
1262
|
value: "dark"
|
|
1263
1263
|
},
|
|
1264
1264
|
{
|
|
1265
1265
|
title: "System",
|
|
1266
1266
|
subtitle: "A theme based on the system preference.",
|
|
1267
1267
|
image: s.CDN_URL + "themes/system.png",
|
|
1268
|
-
prependIcon: `svg:${
|
|
1268
|
+
prependIcon: `svg:${Rt}`,
|
|
1269
1269
|
value: "system"
|
|
1270
1270
|
},
|
|
1271
1271
|
{
|
|
@@ -1293,7 +1293,7 @@ const Ke = W("settings", () => {
|
|
|
1293
1293
|
title: "High Contrast",
|
|
1294
1294
|
subtitle: "A theme for high contrast.",
|
|
1295
1295
|
image: s.CDN_URL + "themes/high-contrast.png",
|
|
1296
|
-
prependIcon: `svg:${
|
|
1296
|
+
prependIcon: `svg:${Et}`,
|
|
1297
1297
|
value: "highContrast",
|
|
1298
1298
|
disabled: !0
|
|
1299
1299
|
}
|
|
@@ -1301,11 +1301,11 @@ const Ke = W("settings", () => {
|
|
|
1301
1301
|
return U(m, async () => {
|
|
1302
1302
|
m.value.one === "settings" && (i.isOpen = !0, await pe(), e.value = !0);
|
|
1303
1303
|
}, { immediate: !0 }), (f, u) => {
|
|
1304
|
-
const h = Se,
|
|
1304
|
+
const h = Se, k = Wo, g = bt, y = we;
|
|
1305
1305
|
return d(), _(y, {
|
|
1306
1306
|
modelValue: e.value,
|
|
1307
1307
|
"onUpdate:modelValue": u[6] || (u[6] = (p) => e.value = p),
|
|
1308
|
-
"prepend-icon": `svg:${t(
|
|
1308
|
+
"prepend-icon": `svg:${t(qt)}`,
|
|
1309
1309
|
title: "Settings"
|
|
1310
1310
|
}, {
|
|
1311
1311
|
default: r(() => [
|
|
@@ -1320,26 +1320,26 @@ const Ke = W("settings", () => {
|
|
|
1320
1320
|
title: "Theme"
|
|
1321
1321
|
}),
|
|
1322
1322
|
a(pt, {
|
|
1323
|
-
modelValue: t(
|
|
1324
|
-
"onUpdate:modelValue": u[0] || (u[0] = (p) => t(
|
|
1323
|
+
modelValue: t(o).theme,
|
|
1324
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => t(o).theme = p),
|
|
1325
1325
|
mandatory: ""
|
|
1326
1326
|
}, {
|
|
1327
1327
|
default: r(() => [
|
|
1328
1328
|
a(de, { dense: "" }, {
|
|
1329
1329
|
default: r(() => [
|
|
1330
|
-
(d(), L(
|
|
1330
|
+
(d(), L(z, null, ne(l, (p, v) => a(K, {
|
|
1331
1331
|
key: v,
|
|
1332
1332
|
cols: "12",
|
|
1333
1333
|
md: "6"
|
|
1334
1334
|
}, {
|
|
1335
1335
|
default: r(() => [
|
|
1336
|
-
a(
|
|
1336
|
+
a(Ge, {
|
|
1337
1337
|
value: p.value
|
|
1338
1338
|
}, {
|
|
1339
|
-
default: r(({ toggle:
|
|
1340
|
-
a(
|
|
1339
|
+
default: r(({ toggle: V, isSelected: N }) => [
|
|
1340
|
+
a(je, null, {
|
|
1341
1341
|
default: r(({ props: j, isHovering: re }) => [
|
|
1342
|
-
a(E,
|
|
1342
|
+
a(E, R({
|
|
1343
1343
|
color: N ? "primary" : "surface-variant",
|
|
1344
1344
|
disabled: p.disabled,
|
|
1345
1345
|
height: "76",
|
|
@@ -1349,9 +1349,9 @@ const Ke = W("settings", () => {
|
|
|
1349
1349
|
subtitle: p.disabled ? "In Development" : p.subtitle,
|
|
1350
1350
|
title: p.title,
|
|
1351
1351
|
variant: "tonal"
|
|
1352
|
-
}, j, { onClick:
|
|
1352
|
+
}, j, { onClick: V }), {
|
|
1353
1353
|
image: r(() => [
|
|
1354
|
-
a(
|
|
1354
|
+
a(Z, {
|
|
1355
1355
|
style: ot({
|
|
1356
1356
|
filter: N || re ? "none" : "grayscale(100%)"
|
|
1357
1357
|
})
|
|
@@ -1374,54 +1374,54 @@ const Ke = W("settings", () => {
|
|
|
1374
1374
|
]),
|
|
1375
1375
|
_: 1
|
|
1376
1376
|
}, 8, ["modelValue"]),
|
|
1377
|
-
t(
|
|
1378
|
-
a(
|
|
1379
|
-
a(
|
|
1377
|
+
t(n).isSubscriber ? (d(), L(z, { key: 0 }, [
|
|
1378
|
+
a(G, { class: "mt-6 mb-4" }),
|
|
1379
|
+
a(k)
|
|
1380
1380
|
], 64)) : S("", !0)
|
|
1381
1381
|
]),
|
|
1382
1382
|
_: 1
|
|
1383
1383
|
}),
|
|
1384
|
-
a(
|
|
1384
|
+
a(G),
|
|
1385
1385
|
a(_e, { class: "px-7" }, {
|
|
1386
1386
|
default: r(() => [
|
|
1387
1387
|
a(h, {
|
|
1388
1388
|
text: "These options change your browsing experience within Vuetify properties",
|
|
1389
1389
|
title: "Experience"
|
|
1390
1390
|
}),
|
|
1391
|
-
t(
|
|
1391
|
+
t(n).isSubscriber ? (d(), _(g, {
|
|
1392
1392
|
key: 0,
|
|
1393
|
-
modelValue: t(
|
|
1394
|
-
"onUpdate:modelValue": u[1] || (u[1] = (p) => t(
|
|
1393
|
+
modelValue: t(o).disableAds,
|
|
1394
|
+
"onUpdate:modelValue": u[1] || (u[1] = (p) => t(o).disableAds = p),
|
|
1395
1395
|
class: "mb-2",
|
|
1396
1396
|
label: "Disable Ads",
|
|
1397
1397
|
messages: "Disable traditional advertisements on all documentation pages."
|
|
1398
1398
|
}, null, 8, ["modelValue"])) : S("", !0),
|
|
1399
1399
|
a(me, null, {
|
|
1400
1400
|
default: r(() => [
|
|
1401
|
-
Ve(b("div",
|
|
1401
|
+
Ve(b("div", Zo, [
|
|
1402
1402
|
a(g, {
|
|
1403
|
-
modelValue: t(
|
|
1404
|
-
"onUpdate:modelValue": u[2] || (u[2] = (p) => t(
|
|
1403
|
+
modelValue: t(o).showHouseAds,
|
|
1404
|
+
"onUpdate:modelValue": u[2] || (u[2] = (p) => t(o).showHouseAds = p),
|
|
1405
1405
|
label: "Show House Ads",
|
|
1406
1406
|
messages: "These advertisements are for Vuetify products and services only."
|
|
1407
1407
|
}, null, 8, ["modelValue"])
|
|
1408
1408
|
], 512), [
|
|
1409
|
-
[De, t(
|
|
1409
|
+
[De, t(o).disableAds]
|
|
1410
1410
|
])
|
|
1411
1411
|
]),
|
|
1412
1412
|
_: 1
|
|
1413
1413
|
}),
|
|
1414
1414
|
a(g, {
|
|
1415
|
-
modelValue: t(
|
|
1416
|
-
"onUpdate:modelValue": u[3] || (u[3] = (p) => t(
|
|
1415
|
+
modelValue: t(o).quickbar,
|
|
1416
|
+
"onUpdate:modelValue": u[3] || (u[3] = (p) => t(o).quickbar = p),
|
|
1417
1417
|
label: "Enable Quick Actions",
|
|
1418
1418
|
messages: "Quick actions are located on the Vuetify One user menu and provide quick access to common tasks."
|
|
1419
1419
|
}, null, 8, ["modelValue"])
|
|
1420
1420
|
]),
|
|
1421
1421
|
_: 1
|
|
1422
1422
|
}),
|
|
1423
|
-
a(
|
|
1424
|
-
t(
|
|
1423
|
+
a(G),
|
|
1424
|
+
t(n).isSubscriber ? (d(), _(_e, {
|
|
1425
1425
|
key: 0,
|
|
1426
1426
|
class: "px-7"
|
|
1427
1427
|
}, {
|
|
@@ -1431,15 +1431,15 @@ const Ke = W("settings", () => {
|
|
|
1431
1431
|
title: "Communication"
|
|
1432
1432
|
}),
|
|
1433
1433
|
a(g, {
|
|
1434
|
-
modelValue: t(
|
|
1435
|
-
"onUpdate:modelValue": u[4] || (u[4] = (p) => t(
|
|
1434
|
+
modelValue: t(o).notifications.show,
|
|
1435
|
+
"onUpdate:modelValue": u[4] || (u[4] = (p) => t(o).notifications.show = p),
|
|
1436
1436
|
class: "mb-2",
|
|
1437
1437
|
label: "Enable Notifications",
|
|
1438
1438
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
1439
1439
|
}, null, 8, ["modelValue"]),
|
|
1440
1440
|
a(g, {
|
|
1441
|
-
modelValue: t(
|
|
1442
|
-
"onUpdate:modelValue": u[5] || (u[5] = (p) => t(
|
|
1441
|
+
modelValue: t(o).notifications.banners,
|
|
1442
|
+
"onUpdate:modelValue": u[5] || (u[5] = (p) => t(o).notifications.banners = p),
|
|
1443
1443
|
label: "Enable Banners",
|
|
1444
1444
|
messages: "Banners are located at the top of the screen and provide a callout for important information."
|
|
1445
1445
|
}, null, 8, ["modelValue"])
|
|
@@ -1457,16 +1457,16 @@ const Ke = W("settings", () => {
|
|
|
1457
1457
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
1458
1458
|
};
|
|
1459
1459
|
}
|
|
1460
|
-
}),
|
|
1460
|
+
}), Yo = /* @__PURE__ */ $({
|
|
1461
1461
|
__name: "VoSettingsListItem",
|
|
1462
1462
|
setup(c) {
|
|
1463
|
-
const e =
|
|
1464
|
-
return (
|
|
1465
|
-
const s =
|
|
1466
|
-
return d(), _(
|
|
1463
|
+
const e = B(!1);
|
|
1464
|
+
return (n, i) => {
|
|
1465
|
+
const s = Qo, o = J;
|
|
1466
|
+
return d(), _(o, {
|
|
1467
1467
|
active: t(e),
|
|
1468
1468
|
link: "",
|
|
1469
|
-
"prepend-icon": `svg:${t(
|
|
1469
|
+
"prepend-icon": `svg:${t(Wt)}`,
|
|
1470
1470
|
title: "Settings"
|
|
1471
1471
|
}, {
|
|
1472
1472
|
default: r(() => [
|
|
@@ -1479,17 +1479,17 @@ const Ke = W("settings", () => {
|
|
|
1479
1479
|
}, 8, ["active", "prepend-icon"]);
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
|
-
}),
|
|
1482
|
+
}), Jo = { class: "text-caption" }, Xo = /* @__PURE__ */ $({
|
|
1483
1483
|
__name: "VoSubscriptionInvoices",
|
|
1484
1484
|
setup(c) {
|
|
1485
|
-
const e =
|
|
1485
|
+
const e = Fe(), n = P();
|
|
1486
1486
|
return (i, s) => {
|
|
1487
|
-
const
|
|
1487
|
+
const o = Se;
|
|
1488
1488
|
return d(), _(de, null, {
|
|
1489
1489
|
default: r(() => [
|
|
1490
1490
|
a(K, { cols: "12" }, {
|
|
1491
1491
|
default: r(() => [
|
|
1492
|
-
a(
|
|
1492
|
+
a(o, {
|
|
1493
1493
|
text: "View and download your invoice history.",
|
|
1494
1494
|
title: "Invoice History"
|
|
1495
1495
|
}),
|
|
@@ -1499,13 +1499,13 @@ const Ke = W("settings", () => {
|
|
|
1499
1499
|
rounded: "lg"
|
|
1500
1500
|
}, {
|
|
1501
1501
|
default: r(() => [
|
|
1502
|
-
a(
|
|
1503
|
-
items: t(
|
|
1504
|
-
loading: t(
|
|
1502
|
+
a($o, {
|
|
1503
|
+
items: t(n).invoices,
|
|
1504
|
+
loading: t(n).isLoading,
|
|
1505
1505
|
sticky: ""
|
|
1506
1506
|
}, {
|
|
1507
1507
|
"item.date": r(({ item: l }) => [
|
|
1508
|
-
b("div",
|
|
1508
|
+
b("div", Jo, C(t(e).format(new Date(l.date * 1e3), "fullDateWithWeekday")), 1)
|
|
1509
1509
|
]),
|
|
1510
1510
|
"item.amount": r(({ item: l }) => [
|
|
1511
1511
|
F(" $" + C(l.amount / 100), 1)
|
|
@@ -1524,7 +1524,7 @@ const Ke = W("settings", () => {
|
|
|
1524
1524
|
"item.pdf": r(({ item: l }) => [
|
|
1525
1525
|
a(q, {
|
|
1526
1526
|
href: l.pdf,
|
|
1527
|
-
icon: `svg:${t(
|
|
1527
|
+
icon: `svg:${t(Gt)}`,
|
|
1528
1528
|
size: "small",
|
|
1529
1529
|
target: "_blank",
|
|
1530
1530
|
variant: "text"
|
|
@@ -1543,18 +1543,18 @@ const Ke = W("settings", () => {
|
|
|
1543
1543
|
});
|
|
1544
1544
|
};
|
|
1545
1545
|
}
|
|
1546
|
-
}),
|
|
1546
|
+
}), Ko = { class: "d-flex align-center" }, en = {
|
|
1547
1547
|
key: "status",
|
|
1548
1548
|
class: "text-capitalize hidden-sm-and-down"
|
|
1549
|
-
},
|
|
1549
|
+
}, tn = /* @__PURE__ */ b("span", { class: "mx-1 hidden-sm-and-down" }, "—", -1), on = { class: "me-1" }, nn = { class: "text-medium-emphasis text-caption" }, sn = { class: "d-flex align-start justify-space-between text-caption py-2" }, an = { class: "font-weight-bold" }, rn = { class: "font-weight-bold" }, ln = /* @__PURE__ */ $({
|
|
1550
1550
|
__name: "VoSubscriptionStatus",
|
|
1551
1551
|
emits: ["change:subscription"],
|
|
1552
1552
|
setup(c, { emit: e }) {
|
|
1553
|
-
const
|
|
1553
|
+
const n = Fe(), i = P(), s = e, o = w(() => {
|
|
1554
1554
|
if (!i.info)
|
|
1555
1555
|
return;
|
|
1556
1556
|
const m = new Date(i.info.currentPeriodEnd * 1e3);
|
|
1557
|
-
return
|
|
1557
|
+
return n.format(m, "keyboardDate");
|
|
1558
1558
|
});
|
|
1559
1559
|
async function l() {
|
|
1560
1560
|
i.interval && (i.isLoading = !0, i.subscribe(i.interval));
|
|
@@ -1565,7 +1565,7 @@ const Ke = W("settings", () => {
|
|
|
1565
1565
|
default: r(() => [
|
|
1566
1566
|
a(K, { cols: "12" }, {
|
|
1567
1567
|
default: r(() => {
|
|
1568
|
-
var h,
|
|
1568
|
+
var h, k;
|
|
1569
1569
|
return [
|
|
1570
1570
|
a(E, {
|
|
1571
1571
|
border: "",
|
|
@@ -1573,7 +1573,7 @@ const Ke = W("settings", () => {
|
|
|
1573
1573
|
"prepend-icon": "$vuetify",
|
|
1574
1574
|
rounded: "lg",
|
|
1575
1575
|
title: "Subscription Status"
|
|
1576
|
-
},
|
|
1576
|
+
}, H({
|
|
1577
1577
|
append: r(() => {
|
|
1578
1578
|
var g;
|
|
1579
1579
|
return [
|
|
@@ -1590,7 +1590,7 @@ const Ke = W("settings", () => {
|
|
|
1590
1590
|
t(i).hasBilling ? (d(), _(u, {
|
|
1591
1591
|
key: 1,
|
|
1592
1592
|
loading: t(i).isLoading,
|
|
1593
|
-
"prepend-icon": `svg:${t(
|
|
1593
|
+
"prepend-icon": `svg:${t(Zt)}`,
|
|
1594
1594
|
text: "Billing",
|
|
1595
1595
|
onClick: t(i).manage
|
|
1596
1596
|
}, null, 8, ["loading", "prepend-icon", "onClick"])) : S("", !0)
|
|
@@ -1601,13 +1601,13 @@ const Ke = W("settings", () => {
|
|
|
1601
1601
|
t(i).info ? {
|
|
1602
1602
|
name: "subtitle",
|
|
1603
1603
|
fn: r(() => [
|
|
1604
|
-
b("div",
|
|
1605
|
-
b("span",
|
|
1606
|
-
t(i).info.items.length ? (d(), L(
|
|
1607
|
-
|
|
1608
|
-
b("span",
|
|
1604
|
+
b("div", Ko, [
|
|
1605
|
+
b("span", en, C(t(i).info.status), 1),
|
|
1606
|
+
t(i).info.items.length ? (d(), L(z, { key: 0 }, [
|
|
1607
|
+
tn,
|
|
1608
|
+
b("span", on, [
|
|
1609
1609
|
F(" $" + C(t(i).info.items[0].plan.amount / 100), 1),
|
|
1610
|
-
b("span",
|
|
1610
|
+
b("span", nn, "/" + C(t(i).interval), 1)
|
|
1611
1611
|
]),
|
|
1612
1612
|
a(u, {
|
|
1613
1613
|
size: "x-small",
|
|
@@ -1639,15 +1639,15 @@ const Ke = W("settings", () => {
|
|
|
1639
1639
|
key: "1"
|
|
1640
1640
|
}
|
|
1641
1641
|
]), 1024),
|
|
1642
|
-
b("div",
|
|
1642
|
+
b("div", sn, [
|
|
1643
1643
|
b("div", null, [
|
|
1644
|
-
((h = t(i).info) == null ? void 0 : h.status) === "active" ? (d(), L(
|
|
1644
|
+
((h = t(i).info) == null ? void 0 : h.status) === "active" ? (d(), L(z, { key: 0 }, [
|
|
1645
1645
|
F(" Your plan renews on "),
|
|
1646
|
-
b("span",
|
|
1646
|
+
b("span", an, C(t(n).format(t(o), "fullDateWithWeekday")), 1),
|
|
1647
1647
|
F(". ")
|
|
1648
|
-
], 64)) : (d(), L(
|
|
1648
|
+
], 64)) : (d(), L(z, { key: 1 }, [
|
|
1649
1649
|
F(" Your plan ends on "),
|
|
1650
|
-
b("span",
|
|
1650
|
+
b("span", rn, C(t(n).format((k = t(i).info) == null ? void 0 : k.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1651
1651
|
F(". ")
|
|
1652
1652
|
], 64))
|
|
1653
1653
|
])
|
|
@@ -1661,7 +1661,7 @@ const Ke = W("settings", () => {
|
|
|
1661
1661
|
});
|
|
1662
1662
|
};
|
|
1663
1663
|
}
|
|
1664
|
-
}),
|
|
1664
|
+
}), cn = /* @__PURE__ */ b("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The Vuetify One subscription comes with the following perks: ", -1), un = ["innerHTML"], dn = /* @__PURE__ */ b("br", null, null, -1), pn = /* @__PURE__ */ b("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The following features are in development and coming soon: ", -1), mn = ["innerHTML"], fn = /* @__PURE__ */ $({
|
|
1665
1665
|
__name: "VoSubscriptionPerks",
|
|
1666
1666
|
setup(c) {
|
|
1667
1667
|
const e = [
|
|
@@ -1671,23 +1671,23 @@ const Ke = W("settings", () => {
|
|
|
1671
1671
|
'Pinned Navigation Items and Rail drawer in <a href="https://vuetifyjs.com/" target="_blank">Documentation</a>',
|
|
1672
1672
|
"Customize Navigation components with Page Suits",
|
|
1673
1673
|
"Custom Vuetify One menu avatar"
|
|
1674
|
-
],
|
|
1674
|
+
], n = [
|
|
1675
1675
|
"Early access to Vuetify Studio, a visual editor for Vuetify",
|
|
1676
1676
|
'Special role in the <a href="https://discord.vuetifyjs.com/" target="_blank">Vuetify Discord</a>',
|
|
1677
1677
|
"Receive a special label on GitHub created issues and pull requests"
|
|
1678
|
-
], i =
|
|
1679
|
-
return U(i, async (
|
|
1680
|
-
|
|
1681
|
-
}), (
|
|
1678
|
+
], i = B(!1), s = P();
|
|
1679
|
+
return U(i, async (o) => {
|
|
1680
|
+
o && s.subscriptionInfo();
|
|
1681
|
+
}), (o, l) => {
|
|
1682
1682
|
const m = J;
|
|
1683
|
-
return d(), L(
|
|
1684
|
-
a(
|
|
1683
|
+
return d(), L(z, null, [
|
|
1684
|
+
a(We, { class: "font-weight-black" }, {
|
|
1685
1685
|
default: r(() => [
|
|
1686
1686
|
F("Perks")
|
|
1687
1687
|
]),
|
|
1688
1688
|
_: 1
|
|
1689
1689
|
}),
|
|
1690
|
-
|
|
1690
|
+
cn,
|
|
1691
1691
|
a(ae, {
|
|
1692
1692
|
class: "py-0",
|
|
1693
1693
|
density: "compact",
|
|
@@ -1695,10 +1695,10 @@ const Ke = W("settings", () => {
|
|
|
1695
1695
|
nav: ""
|
|
1696
1696
|
}, {
|
|
1697
1697
|
default: r(() => [
|
|
1698
|
-
(d(), L(
|
|
1698
|
+
(d(), L(z, null, ne(e, (f, u) => a(m, {
|
|
1699
1699
|
key: u,
|
|
1700
1700
|
class: "mb-0",
|
|
1701
|
-
"prepend-icon": `svg:${t(
|
|
1701
|
+
"prepend-icon": `svg:${t(Be)}`
|
|
1702
1702
|
}, {
|
|
1703
1703
|
prepend: r(() => [
|
|
1704
1704
|
a(A, {
|
|
@@ -1708,21 +1708,21 @@ const Ke = W("settings", () => {
|
|
|
1708
1708
|
})
|
|
1709
1709
|
]),
|
|
1710
1710
|
title: r(() => [
|
|
1711
|
-
b("div", { innerHTML: f }, null, 8,
|
|
1711
|
+
b("div", { innerHTML: f }, null, 8, un)
|
|
1712
1712
|
]),
|
|
1713
1713
|
_: 2
|
|
1714
1714
|
}, 1032, ["prepend-icon"])), 64))
|
|
1715
1715
|
]),
|
|
1716
1716
|
_: 1
|
|
1717
1717
|
}),
|
|
1718
|
-
|
|
1719
|
-
a(
|
|
1718
|
+
dn,
|
|
1719
|
+
a(We, { class: "font-weight-black" }, {
|
|
1720
1720
|
default: r(() => [
|
|
1721
1721
|
F("Up Next")
|
|
1722
1722
|
]),
|
|
1723
1723
|
_: 1
|
|
1724
1724
|
}),
|
|
1725
|
-
|
|
1725
|
+
pn,
|
|
1726
1726
|
a(ae, {
|
|
1727
1727
|
class: "py-0",
|
|
1728
1728
|
density: "compact",
|
|
@@ -1730,10 +1730,10 @@ const Ke = W("settings", () => {
|
|
|
1730
1730
|
nav: ""
|
|
1731
1731
|
}, {
|
|
1732
1732
|
default: r(() => [
|
|
1733
|
-
(d(), L(
|
|
1733
|
+
(d(), L(z, null, ne(n, (f, u) => a(m, {
|
|
1734
1734
|
key: u,
|
|
1735
1735
|
class: "mb-0",
|
|
1736
|
-
"prepend-icon": `svg:${t(
|
|
1736
|
+
"prepend-icon": `svg:${t(Qt)}`
|
|
1737
1737
|
}, {
|
|
1738
1738
|
prepend: r(() => [
|
|
1739
1739
|
a(A, {
|
|
@@ -1742,7 +1742,7 @@ const Ke = W("settings", () => {
|
|
|
1742
1742
|
})
|
|
1743
1743
|
]),
|
|
1744
1744
|
title: r(() => [
|
|
1745
|
-
b("div", { innerHTML: f }, null, 8,
|
|
1745
|
+
b("div", { innerHTML: f }, null, 8, mn)
|
|
1746
1746
|
]),
|
|
1747
1747
|
_: 2
|
|
1748
1748
|
}, 1032, ["prepend-icon"])), 64))
|
|
@@ -1752,7 +1752,7 @@ const Ke = W("settings", () => {
|
|
|
1752
1752
|
], 64);
|
|
1753
1753
|
};
|
|
1754
1754
|
}
|
|
1755
|
-
}),
|
|
1755
|
+
}), vn = /* @__PURE__ */ $({
|
|
1756
1756
|
__name: "VoSubscriptionSubscribe",
|
|
1757
1757
|
props: {
|
|
1758
1758
|
modelValue: {
|
|
@@ -1762,14 +1762,14 @@ const Ke = W("settings", () => {
|
|
|
1762
1762
|
},
|
|
1763
1763
|
emits: ["update:modelValue"],
|
|
1764
1764
|
setup(c) {
|
|
1765
|
-
const e =
|
|
1765
|
+
const e = B(!1), n = le(c, "modelValue"), i = P();
|
|
1766
1766
|
return U(e, async (s) => {
|
|
1767
1767
|
s && i.subscriptionInfo();
|
|
1768
1768
|
}), U(() => i.interval, (s) => {
|
|
1769
|
-
|
|
1770
|
-
}, { immediate: !0 }), (s,
|
|
1771
|
-
modelValue:
|
|
1772
|
-
"onUpdate:modelValue":
|
|
1769
|
+
n.value = s;
|
|
1770
|
+
}, { immediate: !0 }), (s, o) => (d(), _(pt, {
|
|
1771
|
+
modelValue: n.value,
|
|
1772
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => n.value = l),
|
|
1773
1773
|
mandatory: ""
|
|
1774
1774
|
}, {
|
|
1775
1775
|
default: r(() => [
|
|
@@ -1780,7 +1780,7 @@ const Ke = W("settings", () => {
|
|
|
1780
1780
|
md: "6"
|
|
1781
1781
|
}, {
|
|
1782
1782
|
default: r(() => [
|
|
1783
|
-
a(
|
|
1783
|
+
a(Ge, { value: "month" }, {
|
|
1784
1784
|
default: r(({ toggle: l, isSelected: m }) => [
|
|
1785
1785
|
a(E, {
|
|
1786
1786
|
border: m ? "sm primary opacity-100" : "sm",
|
|
@@ -1808,7 +1808,7 @@ const Ke = W("settings", () => {
|
|
|
1808
1808
|
md: "6"
|
|
1809
1809
|
}, {
|
|
1810
1810
|
default: r(() => [
|
|
1811
|
-
a(
|
|
1811
|
+
a(Ge, { value: "year" }, {
|
|
1812
1812
|
default: r(({ toggle: l, isSelected: m }) => [
|
|
1813
1813
|
a(E, {
|
|
1814
1814
|
border: m ? "sm primary opacity-100" : "sm",
|
|
@@ -1847,7 +1847,7 @@ const Ke = W("settings", () => {
|
|
|
1847
1847
|
_: 1
|
|
1848
1848
|
}, 8, ["modelValue"]));
|
|
1849
1849
|
}
|
|
1850
|
-
}),
|
|
1850
|
+
}), hn = { class: "px-3" }, _n = /* @__PURE__ */ b("br", null, null, -1), gn = { class: "flex-grow-1 px-4 pb-3 overflow-hidden" }, yn = /* @__PURE__ */ $({
|
|
1851
1851
|
__name: "VoSubscriptionDialog",
|
|
1852
1852
|
props: {
|
|
1853
1853
|
modelValue: { type: Boolean },
|
|
@@ -1858,38 +1858,38 @@ const Ke = W("settings", () => {
|
|
|
1858
1858
|
function e(u) {
|
|
1859
1859
|
return new Promise((h) => setTimeout(h, u));
|
|
1860
1860
|
}
|
|
1861
|
-
const
|
|
1862
|
-
U(
|
|
1861
|
+
const n = le(c, "modelValue"), i = P(), s = ve(), o = B(i.interval), l = B(i.hasBilling ? "status" : "subscribe"), m = B(!1);
|
|
1862
|
+
U(o, (u) => {
|
|
1863
1863
|
!i.isSubscriber || !i.interval || (m.value = u !== i.interval);
|
|
1864
|
-
}), U(
|
|
1864
|
+
}), U(n, async (u) => {
|
|
1865
1865
|
if (!u || !i.isSubscriber) {
|
|
1866
1866
|
u || i.resetQuery();
|
|
1867
1867
|
return;
|
|
1868
1868
|
}
|
|
1869
1869
|
i.subscriptionInfo();
|
|
1870
1870
|
}), U(s, async () => {
|
|
1871
|
-
!i.sessionId && !["subscribe", "status"].includes(s.value.one) || (l.value = i.sessionId || s.value.one === "status" ? "status" : "subscribe", i.isOpen = !0, await pe(),
|
|
1871
|
+
!i.sessionId && !["subscribe", "status"].includes(s.value.one) || (l.value = i.sessionId || s.value.one === "status" ? "status" : "subscribe", i.isOpen = !0, await pe(), n.value = !0);
|
|
1872
1872
|
}, { immediate: !0 });
|
|
1873
1873
|
async function f() {
|
|
1874
|
-
await i.modify(
|
|
1874
|
+
await i.modify(o.value), await i.subscriptionInfo(), m.value = null, await e(3e3), l.value = "status", await e(300), m.value = !1;
|
|
1875
1875
|
}
|
|
1876
1876
|
return (u, h) => {
|
|
1877
|
-
const
|
|
1877
|
+
const k = Se, g = vn, y = fn, p = ln, v = Xo, V = fe, N = we;
|
|
1878
1878
|
return d(), _(N, {
|
|
1879
|
-
modelValue:
|
|
1880
|
-
"onUpdate:modelValue": h[4] || (h[4] = (j) =>
|
|
1881
|
-
"prepend-icon": `svg:${t(
|
|
1879
|
+
modelValue: n.value,
|
|
1880
|
+
"onUpdate:modelValue": h[4] || (h[4] = (j) => n.value = j),
|
|
1881
|
+
"prepend-icon": `svg:${t(Yt)}`,
|
|
1882
1882
|
title: "Subscriptions"
|
|
1883
|
-
},
|
|
1883
|
+
}, H({
|
|
1884
1884
|
default: r(() => [
|
|
1885
1885
|
a($e, null, {
|
|
1886
1886
|
default: r(() => [
|
|
1887
1887
|
a(xe, { scrollable: "" }, {
|
|
1888
1888
|
default: r(() => [
|
|
1889
|
-
b("div",
|
|
1889
|
+
b("div", hn, [
|
|
1890
1890
|
a(_e, null, {
|
|
1891
1891
|
default: r(() => [
|
|
1892
|
-
a(
|
|
1892
|
+
a(k, {
|
|
1893
1893
|
text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
|
|
1894
1894
|
title: "Vuetify One"
|
|
1895
1895
|
}),
|
|
@@ -1898,10 +1898,10 @@ const Ke = W("settings", () => {
|
|
|
1898
1898
|
a(ge, { value: "subscribe" }, {
|
|
1899
1899
|
default: r(() => [
|
|
1900
1900
|
a(g, {
|
|
1901
|
-
modelValue: t(
|
|
1902
|
-
"onUpdate:modelValue": h[0] || (h[0] = (j) => se(
|
|
1901
|
+
modelValue: t(o),
|
|
1902
|
+
"onUpdate:modelValue": h[0] || (h[0] = (j) => se(o) ? o.value = j : null)
|
|
1903
1903
|
}, null, 8, ["modelValue"]),
|
|
1904
|
-
|
|
1904
|
+
_n,
|
|
1905
1905
|
a(y)
|
|
1906
1906
|
]),
|
|
1907
1907
|
_: 1
|
|
@@ -1934,34 +1934,34 @@ const Ke = W("settings", () => {
|
|
|
1934
1934
|
t(l) === "subscribe" ? {
|
|
1935
1935
|
name: "actions",
|
|
1936
1936
|
fn: r(() => [
|
|
1937
|
-
b("div",
|
|
1938
|
-
t(m) !== !1 ? (d(), _(
|
|
1937
|
+
b("div", gn, [
|
|
1938
|
+
t(m) !== !1 ? (d(), _(V, {
|
|
1939
1939
|
key: 0,
|
|
1940
1940
|
block: "",
|
|
1941
1941
|
color: "success",
|
|
1942
1942
|
loading: t(i).isLoading,
|
|
1943
|
-
"prepend-icon": `svg:${t(m) !== null ? t(
|
|
1943
|
+
"prepend-icon": `svg:${t(m) !== null ? t(Jt) : t(Ae)}`,
|
|
1944
1944
|
readonly: t(m) === null,
|
|
1945
1945
|
size: "default",
|
|
1946
1946
|
text: t(m) !== null ? "Modify Subscription" : "Success",
|
|
1947
1947
|
onClick: f
|
|
1948
|
-
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : t(i).isSubscriber ? (d(), _(
|
|
1948
|
+
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : t(i).isSubscriber ? (d(), _(V, {
|
|
1949
1949
|
key: 2,
|
|
1950
1950
|
block: "",
|
|
1951
|
-
"prepend-icon": `svg:${t(
|
|
1951
|
+
"prepend-icon": `svg:${t(Xt)}`,
|
|
1952
1952
|
size: "default",
|
|
1953
1953
|
text: "Manage Subscription",
|
|
1954
1954
|
onClick: h[3] || (h[3] = (j) => l.value = "status")
|
|
1955
|
-
}, null, 8, ["prepend-icon"])) : (d(), _(
|
|
1955
|
+
}, null, 8, ["prepend-icon"])) : (d(), _(V, {
|
|
1956
1956
|
key: 1,
|
|
1957
1957
|
block: "",
|
|
1958
|
-
color: t(
|
|
1959
|
-
disabled: !t(
|
|
1958
|
+
color: t(o) ? "primary" : "disabled",
|
|
1959
|
+
disabled: !t(o),
|
|
1960
1960
|
loading: t(i).isLoading,
|
|
1961
1961
|
"prepend-icon": "$vuetify",
|
|
1962
1962
|
size: "default",
|
|
1963
1963
|
text: "Activate Subscription",
|
|
1964
|
-
onClick: h[2] || (h[2] = (j) => t(i).subscribe(t(
|
|
1964
|
+
onClick: h[2] || (h[2] = (j) => t(i).subscribe(t(o)))
|
|
1965
1965
|
}, null, 8, ["color", "disabled", "loading"]))
|
|
1966
1966
|
])
|
|
1967
1967
|
]),
|
|
@@ -1970,16 +1970,16 @@ const Ke = W("settings", () => {
|
|
|
1970
1970
|
]), 1032, ["modelValue", "prepend-icon"]);
|
|
1971
1971
|
};
|
|
1972
1972
|
}
|
|
1973
|
-
}),
|
|
1973
|
+
}), bn = /* @__PURE__ */ $({
|
|
1974
1974
|
__name: "VoSubscriptionListItem",
|
|
1975
1975
|
setup(c) {
|
|
1976
|
-
const e =
|
|
1977
|
-
return (
|
|
1978
|
-
const s =
|
|
1979
|
-
return d(), _(
|
|
1976
|
+
const e = B(!1);
|
|
1977
|
+
return (n, i) => {
|
|
1978
|
+
const s = yn, o = J;
|
|
1979
|
+
return d(), _(o, {
|
|
1980
1980
|
active: t(e),
|
|
1981
1981
|
link: "",
|
|
1982
|
-
"prepend-icon": `svg:${t(
|
|
1982
|
+
"prepend-icon": `svg:${t(Kt)}`,
|
|
1983
1983
|
title: "Subscriptions"
|
|
1984
1984
|
}, {
|
|
1985
1985
|
default: r(() => [
|
|
@@ -1992,10 +1992,10 @@ const Ke = W("settings", () => {
|
|
|
1992
1992
|
}, 8, ["active", "prepend-icon"]);
|
|
1993
1993
|
};
|
|
1994
1994
|
}
|
|
1995
|
-
}),
|
|
1995
|
+
}), Vn = {
|
|
1996
1996
|
key: 0,
|
|
1997
1997
|
class: "text-success"
|
|
1998
|
-
},
|
|
1998
|
+
}, He = /* @__PURE__ */ $({
|
|
1999
1999
|
__name: "VoSponsorshipsTimelineItem",
|
|
2000
2000
|
props: {
|
|
2001
2001
|
title: {},
|
|
@@ -2007,23 +2007,23 @@ const Ke = W("settings", () => {
|
|
|
2007
2007
|
sponsorship: {}
|
|
2008
2008
|
},
|
|
2009
2009
|
setup(c) {
|
|
2010
|
-
const e = c,
|
|
2011
|
-
var
|
|
2012
|
-
return `$${parseFloat(String((((
|
|
2010
|
+
const e = c, n = Pe(), i = w(() => {
|
|
2011
|
+
var o, l;
|
|
2012
|
+
return `$${parseFloat(String((((o = e.sponsorship) == null ? void 0 : o.amount) ?? 0) / 100)).toFixed(2)} /${(l = e.sponsorship) == null ? void 0 : l.interval}`;
|
|
2013
2013
|
});
|
|
2014
|
-
return (s,
|
|
2014
|
+
return (s, o) => {
|
|
2015
2015
|
var m, f;
|
|
2016
2016
|
const l = fe;
|
|
2017
|
-
return d(), _(
|
|
2017
|
+
return d(), _(xo, {
|
|
2018
2018
|
"dot-color": (m = s.sponsorship) != null && m.isActive ? "success" : "transparent",
|
|
2019
|
-
icon: (f = s.sponsorship) != null && f.isActive ? `svg:${t(
|
|
2019
|
+
icon: (f = s.sponsorship) != null && f.isActive ? `svg:${t(Be)}` : void 0,
|
|
2020
2020
|
size: "x-small",
|
|
2021
2021
|
width: "100%"
|
|
2022
2022
|
}, {
|
|
2023
2023
|
default: r(() => [
|
|
2024
2024
|
a(E, {
|
|
2025
2025
|
border: "",
|
|
2026
|
-
"prepend-avatar": `${t(
|
|
2026
|
+
"prepend-avatar": `${t(n).CDN_URL}logos/${s.logo}.png`,
|
|
2027
2027
|
rounded: "lg",
|
|
2028
2028
|
title: s.title,
|
|
2029
2029
|
variant: "text"
|
|
@@ -2031,19 +2031,19 @@ const Ke = W("settings", () => {
|
|
|
2031
2031
|
subtitle: r(() => {
|
|
2032
2032
|
var u;
|
|
2033
2033
|
return [
|
|
2034
|
-
(u = s.sponsorship) != null && u.isActive ? (d(), L("div",
|
|
2034
|
+
(u = s.sponsorship) != null && u.isActive ? (d(), L("div", Vn, [
|
|
2035
2035
|
a(A, {
|
|
2036
|
-
icon: `svg:${t(
|
|
2036
|
+
icon: `svg:${t(eo)}`,
|
|
2037
2037
|
size: "x-small"
|
|
2038
2038
|
}, null, 8, ["icon"]),
|
|
2039
2039
|
F(" " + C(t(i)), 1)
|
|
2040
|
-
])) : (d(), L(
|
|
2040
|
+
])) : (d(), L(z, { key: 1 }, [
|
|
2041
2041
|
F(C(s.text), 1)
|
|
2042
2042
|
], 64))
|
|
2043
2043
|
];
|
|
2044
2044
|
}),
|
|
2045
2045
|
append: r(() => {
|
|
2046
|
-
var u, h,
|
|
2046
|
+
var u, h, k, g, y, p;
|
|
2047
2047
|
return [
|
|
2048
2048
|
s.disabled ? (d(), _(l, {
|
|
2049
2049
|
key: 1,
|
|
@@ -2055,7 +2055,7 @@ const Ke = W("settings", () => {
|
|
|
2055
2055
|
active: !1,
|
|
2056
2056
|
color: (u = s.sponsorship) != null && u.isActive ? "success" : "primary",
|
|
2057
2057
|
href: (h = s.sponsorship) != null && h.isActive || s.to ? void 0 : s.href,
|
|
2058
|
-
"prepend-icon": `svg:${(
|
|
2058
|
+
"prepend-icon": `svg:${(k = s.sponsorship) != null && k.isActive ? t(Ae) : t(Ne)}`,
|
|
2059
2059
|
readonly: (g = s.sponsorship) == null ? void 0 : g.isActive,
|
|
2060
2060
|
target: (y = s.sponsorship) != null && y.isActive || s.to ? void 0 : "_blank",
|
|
2061
2061
|
text: (p = s.sponsorship) != null && p.isActive ? "Active" : "Info",
|
|
@@ -2071,11 +2071,11 @@ const Ke = W("settings", () => {
|
|
|
2071
2071
|
}, 8, ["dot-color", "icon"]);
|
|
2072
2072
|
};
|
|
2073
2073
|
}
|
|
2074
|
-
}),
|
|
2074
|
+
}), kn = /* @__PURE__ */ $({
|
|
2075
2075
|
__name: "VoSponsorshipsTimelineItemPatreon",
|
|
2076
2076
|
setup(c) {
|
|
2077
|
-
return (e,
|
|
2078
|
-
const i =
|
|
2077
|
+
return (e, n) => {
|
|
2078
|
+
const i = He;
|
|
2079
2079
|
return d(), _(i, {
|
|
2080
2080
|
disabled: "",
|
|
2081
2081
|
logo: "patreon",
|
|
@@ -2084,12 +2084,12 @@ const Ke = W("settings", () => {
|
|
|
2084
2084
|
});
|
|
2085
2085
|
};
|
|
2086
2086
|
}
|
|
2087
|
-
}),
|
|
2087
|
+
}), $n = /* @__PURE__ */ $({
|
|
2088
2088
|
__name: "VoSponsorshipsTimelineItemDiscord",
|
|
2089
2089
|
setup(c) {
|
|
2090
2090
|
const e = P();
|
|
2091
|
-
return (
|
|
2092
|
-
const s =
|
|
2091
|
+
return (n, i) => {
|
|
2092
|
+
const s = He;
|
|
2093
2093
|
return d(), _(s, {
|
|
2094
2094
|
href: "https://discord.com/servers/vuetify-340160225338195969",
|
|
2095
2095
|
logo: "discord",
|
|
@@ -2099,12 +2099,12 @@ const Ke = W("settings", () => {
|
|
|
2099
2099
|
}, null, 8, ["sponsorship"]);
|
|
2100
2100
|
};
|
|
2101
2101
|
}
|
|
2102
|
-
}),
|
|
2102
|
+
}), xn = /* @__PURE__ */ $({
|
|
2103
2103
|
__name: "VoSponsorshipsTimelineItemGithub",
|
|
2104
2104
|
setup(c) {
|
|
2105
2105
|
const e = P();
|
|
2106
|
-
return (
|
|
2107
|
-
const s =
|
|
2106
|
+
return (n, i) => {
|
|
2107
|
+
const s = He;
|
|
2108
2108
|
return d(), _(s, {
|
|
2109
2109
|
href: "https://github.com/sponsors/johnleider",
|
|
2110
2110
|
logo: "github",
|
|
@@ -2114,12 +2114,12 @@ const Ke = W("settings", () => {
|
|
|
2114
2114
|
}, null, 8, ["sponsorship"]);
|
|
2115
2115
|
};
|
|
2116
2116
|
}
|
|
2117
|
-
}),
|
|
2117
|
+
}), wn = /* @__PURE__ */ $({
|
|
2118
2118
|
__name: "VoSponsorshipsTimelineItemOne",
|
|
2119
2119
|
setup(c) {
|
|
2120
2120
|
const e = P();
|
|
2121
|
-
return (
|
|
2122
|
-
const s =
|
|
2121
|
+
return (n, i) => {
|
|
2122
|
+
const s = He;
|
|
2123
2123
|
return d(), _(s, {
|
|
2124
2124
|
logo: "one",
|
|
2125
2125
|
sponsorship: t(e).one,
|
|
@@ -2129,12 +2129,12 @@ const Ke = W("settings", () => {
|
|
|
2129
2129
|
}, null, 8, ["sponsorship"]);
|
|
2130
2130
|
};
|
|
2131
2131
|
}
|
|
2132
|
-
}),
|
|
2132
|
+
}), Sn = /* @__PURE__ */ $({
|
|
2133
2133
|
__name: "VoSponsorshipsTimeline",
|
|
2134
2134
|
setup(c) {
|
|
2135
|
-
return (e,
|
|
2136
|
-
const i =
|
|
2137
|
-
return d(), _(
|
|
2135
|
+
return (e, n) => {
|
|
2136
|
+
const i = wn, s = xn, o = $n, l = kn;
|
|
2137
|
+
return d(), _(wo, {
|
|
2138
2138
|
class: "justify-start ms-n7",
|
|
2139
2139
|
"line-inset": "12",
|
|
2140
2140
|
side: "end",
|
|
@@ -2144,14 +2144,14 @@ const Ke = W("settings", () => {
|
|
|
2144
2144
|
default: r(() => [
|
|
2145
2145
|
a(i),
|
|
2146
2146
|
a(s),
|
|
2147
|
-
a(
|
|
2147
|
+
a(o),
|
|
2148
2148
|
a(l)
|
|
2149
2149
|
]),
|
|
2150
2150
|
_: 1
|
|
2151
2151
|
});
|
|
2152
2152
|
};
|
|
2153
2153
|
}
|
|
2154
|
-
}),
|
|
2154
|
+
}), Cn = { class: "px-3 pb-5 d-flex flex-column h-100" }, Ln = { class: "font-weight-black" }, In = { class: "text-caption text-medium-emphasis" }, An = /* @__PURE__ */ $({
|
|
2155
2155
|
__name: "VoSponsorshipsDialog",
|
|
2156
2156
|
props: {
|
|
2157
2157
|
modelValue: { type: Boolean },
|
|
@@ -2159,15 +2159,15 @@ const Ke = W("settings", () => {
|
|
|
2159
2159
|
},
|
|
2160
2160
|
emits: ["update:modelValue"],
|
|
2161
2161
|
setup(c) {
|
|
2162
|
-
const e = le(c, "modelValue"),
|
|
2163
|
-
return U(
|
|
2164
|
-
|
|
2165
|
-
}, { immediate: !0 }), (
|
|
2166
|
-
const m = Se, f =
|
|
2162
|
+
const e = le(c, "modelValue"), n = ve(), i = M(), s = P();
|
|
2163
|
+
return U(n, async () => {
|
|
2164
|
+
n.value.one === "sponsorships" && (s.isOpen = !0, await pe(), e.value = !0);
|
|
2165
|
+
}, { immediate: !0 }), (o, l) => {
|
|
2166
|
+
const m = Se, f = Sn, u = Oe("v-empty-state"), h = we;
|
|
2167
2167
|
return d(), _(h, {
|
|
2168
2168
|
modelValue: e.value,
|
|
2169
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
2170
|
-
"prepend-icon": `svg:${t(
|
|
2169
|
+
"onUpdate:modelValue": l[0] || (l[0] = (k) => e.value = k),
|
|
2170
|
+
"prepend-icon": `svg:${t(to)}`,
|
|
2171
2171
|
title: "Sponsorships"
|
|
2172
2172
|
}, {
|
|
2173
2173
|
default: r(() => [
|
|
@@ -2175,7 +2175,7 @@ const Ke = W("settings", () => {
|
|
|
2175
2175
|
default: r(() => [
|
|
2176
2176
|
a(xe, { scrollable: "" }, {
|
|
2177
2177
|
default: r(() => [
|
|
2178
|
-
b("div",
|
|
2178
|
+
b("div", Cn, [
|
|
2179
2179
|
a(_e, { class: "flex-0-0 mb-16 mb-sm-4" }, {
|
|
2180
2180
|
default: r(() => [
|
|
2181
2181
|
a(m, {
|
|
@@ -2199,10 +2199,10 @@ const Ke = W("settings", () => {
|
|
|
2199
2199
|
]),
|
|
2200
2200
|
title: r(() => [
|
|
2201
2201
|
F(" One Status: "),
|
|
2202
|
-
b("span",
|
|
2202
|
+
b("span", Ln, C(t(i).isSubscriber ? "Active" : "Inactive"), 1)
|
|
2203
2203
|
]),
|
|
2204
2204
|
text: r(() => [
|
|
2205
|
-
b("div",
|
|
2205
|
+
b("div", In, C(t(i).isSubscriber ? "You are currently receiving benefits of Vuetify One." : "Login to activate Vuetify One benefits"), 1)
|
|
2206
2206
|
]),
|
|
2207
2207
|
_: 1
|
|
2208
2208
|
})
|
|
@@ -2218,16 +2218,16 @@ const Ke = W("settings", () => {
|
|
|
2218
2218
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2219
2219
|
};
|
|
2220
2220
|
}
|
|
2221
|
-
}),
|
|
2221
|
+
}), Dn = /* @__PURE__ */ $({
|
|
2222
2222
|
__name: "VoSponsorshipsListItem",
|
|
2223
2223
|
setup(c) {
|
|
2224
|
-
const e =
|
|
2225
|
-
return (
|
|
2226
|
-
const s =
|
|
2227
|
-
return d(), _(
|
|
2224
|
+
const e = B(!1);
|
|
2225
|
+
return (n, i) => {
|
|
2226
|
+
const s = An, o = J;
|
|
2227
|
+
return d(), _(o, {
|
|
2228
2228
|
active: t(e),
|
|
2229
2229
|
link: "",
|
|
2230
|
-
"prepend-icon": `svg:${t(
|
|
2230
|
+
"prepend-icon": `svg:${t(oo)}`,
|
|
2231
2231
|
title: "Sponsorships"
|
|
2232
2232
|
}, {
|
|
2233
2233
|
default: r(() => [
|
|
@@ -2240,7 +2240,7 @@ const Ke = W("settings", () => {
|
|
|
2240
2240
|
}, 8, ["active", "prepend-icon"]);
|
|
2241
2241
|
};
|
|
2242
2242
|
}
|
|
2243
|
-
}),
|
|
2243
|
+
}), On = /* @__PURE__ */ b("h2", { class: "text-h4" }, " Configuration Tooling ", -1), Bn = /* @__PURE__ */ b("p", { class: "text-subtitle-1 text-medium-emphasis" }, " Coming soon to Vuetify One ", -1), Nn = { class: "text-uppercase text-info" }, Un = { class: "text-h6 mb-2" }, zn = { class: "text-caption" }, Tn = /* @__PURE__ */ b("div", null, " Become a subscriber and be the first to gain access to the Vuetify Studio Alpha when it releases in April 2024. ", -1), Fn = /* @__PURE__ */ $({
|
|
2244
2244
|
__name: "VoStudioDialog",
|
|
2245
2245
|
props: /* @__PURE__ */ nt({
|
|
2246
2246
|
prependIcon: {}
|
|
@@ -2250,7 +2250,7 @@ const Ke = W("settings", () => {
|
|
|
2250
2250
|
}),
|
|
2251
2251
|
emits: ["update:modelValue"],
|
|
2252
2252
|
setup(c) {
|
|
2253
|
-
const e = le(c, "modelValue"),
|
|
2253
|
+
const e = le(c, "modelValue"), n = ve(), i = Ue(), s = M(), o = P(), { smAndUp: l } = ce(), m = [
|
|
2254
2254
|
{
|
|
2255
2255
|
title: "Customize",
|
|
2256
2256
|
subtitle: "Customize your Vuetify theme, components, and more with the Vuetify Studio.",
|
|
@@ -2270,14 +2270,14 @@ const Ke = W("settings", () => {
|
|
|
2270
2270
|
image: "https://cdn.vuetifyjs.com/docs/images/one/studio/export.png"
|
|
2271
2271
|
}
|
|
2272
2272
|
];
|
|
2273
|
-
U(
|
|
2274
|
-
|
|
2273
|
+
U(n, async () => {
|
|
2274
|
+
n.value.one === "studio" && (o.isOpen = !0, await pe(), e.value = !0);
|
|
2275
2275
|
}, { immediate: !0 });
|
|
2276
2276
|
function f() {
|
|
2277
2277
|
e.value = !1, i.push({ query: { one: "subscribe" } });
|
|
2278
2278
|
}
|
|
2279
2279
|
return (u, h) => {
|
|
2280
|
-
const
|
|
2280
|
+
const k = fe, g = we;
|
|
2281
2281
|
return d(), _(g, {
|
|
2282
2282
|
modelValue: e.value,
|
|
2283
2283
|
"onUpdate:modelValue": h[0] || (h[0] = (y) => e.value = y),
|
|
@@ -2289,7 +2289,7 @@ const Ke = W("settings", () => {
|
|
|
2289
2289
|
default: r(() => [
|
|
2290
2290
|
a(xe, { scrollable: "" }, {
|
|
2291
2291
|
default: r(() => [
|
|
2292
|
-
a(
|
|
2292
|
+
a(Z, {
|
|
2293
2293
|
"content-class": "d-flex align-center justify-center flex-column",
|
|
2294
2294
|
cover: "",
|
|
2295
2295
|
gradient: "to top right, rgba(var(--v-theme-primary),.8), rgba(0,0,0,.9)",
|
|
@@ -2311,15 +2311,15 @@ const Ke = W("settings", () => {
|
|
|
2311
2311
|
icon: u.prependIcon,
|
|
2312
2312
|
size: "80"
|
|
2313
2313
|
}, null, 8, ["icon"]),
|
|
2314
|
-
|
|
2315
|
-
|
|
2314
|
+
On,
|
|
2315
|
+
Bn
|
|
2316
2316
|
]),
|
|
2317
2317
|
_: 1
|
|
2318
2318
|
})
|
|
2319
2319
|
]),
|
|
2320
2320
|
_: 1
|
|
2321
2321
|
}),
|
|
2322
|
-
(d(), L(
|
|
2322
|
+
(d(), L(z, null, ne(m, (y, p) => a(ye, {
|
|
2323
2323
|
key: p,
|
|
2324
2324
|
class: "py-8",
|
|
2325
2325
|
color: p % 2 === 0 ? "surface-light" : "surface-variant"
|
|
@@ -2339,7 +2339,7 @@ const Ke = W("settings", () => {
|
|
|
2339
2339
|
default: r(() => [
|
|
2340
2340
|
b("strong", Nn, C(y.title), 1),
|
|
2341
2341
|
b("p", Un, C(y.subtitle), 1),
|
|
2342
|
-
b("p",
|
|
2342
|
+
b("p", zn, C(y.text), 1)
|
|
2343
2343
|
]),
|
|
2344
2344
|
_: 2
|
|
2345
2345
|
}, 1032, ["order"]),
|
|
@@ -2350,7 +2350,7 @@ const Ke = W("settings", () => {
|
|
|
2350
2350
|
sm: "4"
|
|
2351
2351
|
}, {
|
|
2352
2352
|
default: r(() => [
|
|
2353
|
-
a(
|
|
2353
|
+
a(Z, {
|
|
2354
2354
|
cover: "",
|
|
2355
2355
|
height: t(l) ? 180 : void 0,
|
|
2356
2356
|
rounded: "lg",
|
|
@@ -2379,17 +2379,17 @@ const Ke = W("settings", () => {
|
|
|
2379
2379
|
default: r(() => [
|
|
2380
2380
|
a(K, { cols: "6" }, {
|
|
2381
2381
|
default: r(() => [
|
|
2382
|
-
a(
|
|
2382
|
+
a(Y, {
|
|
2383
2383
|
image: "https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
2384
2384
|
size: "64"
|
|
2385
2385
|
}),
|
|
2386
|
-
|
|
2386
|
+
Tn
|
|
2387
2387
|
]),
|
|
2388
2388
|
_: 1
|
|
2389
2389
|
}),
|
|
2390
2390
|
a(K, { cols: "12" }, {
|
|
2391
2391
|
default: r(() => [
|
|
2392
|
-
a(
|
|
2392
|
+
a(k, {
|
|
2393
2393
|
"prepend-icon": "$vuetify",
|
|
2394
2394
|
size: "x-large",
|
|
2395
2395
|
text: "Subscribe Today",
|
|
@@ -2418,21 +2418,21 @@ const Ke = W("settings", () => {
|
|
|
2418
2418
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2419
2419
|
};
|
|
2420
2420
|
}
|
|
2421
|
-
}),
|
|
2421
|
+
}), jn = /* @__PURE__ */ $({
|
|
2422
2422
|
__name: "VoStudioNavItem",
|
|
2423
2423
|
setup(c) {
|
|
2424
|
-
const e =
|
|
2424
|
+
const e = B(!1), n = [
|
|
2425
2425
|
["M12.435 14.3194L12 21L6.87046 12.2799L12.435 14.3194Z", 1],
|
|
2426
2426
|
["M22 4L12.435 14.3194L6.87046 12.2799L9.26479 7.61064L12.435 14.3194L12 21L22 4Z", 0.5],
|
|
2427
2427
|
["M12.435 14.3194L22 4L9.26479 7.61064L12.435 14.3194Z", 1],
|
|
2428
2428
|
["M2 4L6.87046 12.2799L9.26479 7.61064L2 4Z", 1]
|
|
2429
2429
|
];
|
|
2430
2430
|
return (i, s) => {
|
|
2431
|
-
const
|
|
2431
|
+
const o = Fn, l = J;
|
|
2432
2432
|
return d(), _(l, {
|
|
2433
2433
|
active: t(e),
|
|
2434
2434
|
link: "",
|
|
2435
|
-
"prepend-icon":
|
|
2435
|
+
"prepend-icon": n,
|
|
2436
2436
|
title: "Vuetify Studio"
|
|
2437
2437
|
}, {
|
|
2438
2438
|
append: r(() => [
|
|
@@ -2447,45 +2447,45 @@ const Ke = W("settings", () => {
|
|
|
2447
2447
|
})
|
|
2448
2448
|
]),
|
|
2449
2449
|
default: r(() => [
|
|
2450
|
-
a(
|
|
2450
|
+
a(o, {
|
|
2451
2451
|
modelValue: t(e),
|
|
2452
2452
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => se(e) ? e.value = m : null),
|
|
2453
|
-
"prepend-icon":
|
|
2453
|
+
"prepend-icon": n
|
|
2454
2454
|
}, null, 8, ["modelValue"])
|
|
2455
2455
|
]),
|
|
2456
2456
|
_: 1
|
|
2457
2457
|
}, 8, ["active"]);
|
|
2458
2458
|
};
|
|
2459
2459
|
}
|
|
2460
|
-
}),
|
|
2460
|
+
}), Mn = {
|
|
2461
2461
|
key: 0,
|
|
2462
2462
|
class: "pt-16"
|
|
2463
|
-
},
|
|
2463
|
+
}, Pn = /* @__PURE__ */ b("div", { class: "text-medium-emphasis" }, " All caught up ", -1), Hn = {
|
|
2464
2464
|
key: 1,
|
|
2465
2465
|
class: "pa-5"
|
|
2466
|
-
},
|
|
2466
|
+
}, Rn = { class: "text-subtitle-1 font-weight-bold" }, En = { class: "text-caption font-weight-bold text-medium-emphasis" }, qn = { class: "text-disabled text-caption mt-2 mb-3" }, Wn = /* @__PURE__ */ $({
|
|
2467
2467
|
__name: "VoNotificationsBannerList",
|
|
2468
2468
|
props: {
|
|
2469
2469
|
items: {}
|
|
2470
2470
|
},
|
|
2471
2471
|
setup(c) {
|
|
2472
|
-
const e =
|
|
2472
|
+
const e = Fe(), n = ce(), i = T();
|
|
2473
2473
|
function s(l) {
|
|
2474
2474
|
return i.notifications.last.banner.includes(l);
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function o(l) {
|
|
2477
2477
|
s(l.slug) ? i.notifications.last.banner = i.notifications.last.banner.filter((m) => m !== l.slug) : i.notifications.last.banner.push(l.slug);
|
|
2478
2478
|
}
|
|
2479
2479
|
return (l, m) => {
|
|
2480
|
-
const f =
|
|
2480
|
+
const f = Oe("v-empty-state");
|
|
2481
2481
|
return d(), _(ae, {
|
|
2482
2482
|
class: "py-0",
|
|
2483
2483
|
height: "100%",
|
|
2484
2484
|
lines: "three"
|
|
2485
2485
|
}, {
|
|
2486
2486
|
default: r(() => [
|
|
2487
|
-
l.items.length ? (d(), L("div",
|
|
2488
|
-
(d(!0), L(
|
|
2487
|
+
l.items.length ? (d(), L("div", Hn, [
|
|
2488
|
+
(d(!0), L(z, null, ne(l.items, (u) => {
|
|
2489
2489
|
var h;
|
|
2490
2490
|
return d(), L("div", {
|
|
2491
2491
|
key: u.slug,
|
|
@@ -2499,21 +2499,21 @@ const Ke = W("settings", () => {
|
|
|
2499
2499
|
title: u.title
|
|
2500
2500
|
}, {
|
|
2501
2501
|
prepend: r(() => {
|
|
2502
|
-
var
|
|
2502
|
+
var k;
|
|
2503
2503
|
return [
|
|
2504
|
-
a(
|
|
2505
|
-
image: (
|
|
2504
|
+
a(Y, {
|
|
2505
|
+
image: (k = u.metadata.images.logo) == null ? void 0 : k.url
|
|
2506
2506
|
}, null, 8, ["image"])
|
|
2507
2507
|
];
|
|
2508
2508
|
}),
|
|
2509
2509
|
image: r(() => [
|
|
2510
|
-
a(
|
|
2510
|
+
a(Z, { position: "right" })
|
|
2511
2511
|
]),
|
|
2512
2512
|
_: 2
|
|
2513
2513
|
}, 1032, ["color", "image", "title"]),
|
|
2514
|
-
a(
|
|
2515
|
-
default: r(({ props:
|
|
2516
|
-
a(ye,
|
|
2514
|
+
a(je, null, {
|
|
2515
|
+
default: r(({ props: k, isHovering: g }) => [
|
|
2516
|
+
a(ye, R(k, {
|
|
2517
2517
|
border: "",
|
|
2518
2518
|
class: "px-8 pt-2 pb-4 position-relative",
|
|
2519
2519
|
rounded: "b"
|
|
@@ -2524,17 +2524,17 @@ const Ke = W("settings", () => {
|
|
|
2524
2524
|
text: s(u.slug) ? "Mark as unread" : "Mark as read"
|
|
2525
2525
|
}, {
|
|
2526
2526
|
activator: r(({ props: y }) => [
|
|
2527
|
-
a(
|
|
2527
|
+
a(ze, { "hide-on-leave": "" }, {
|
|
2528
2528
|
default: r(() => [
|
|
2529
|
-
Ve(a(q,
|
|
2529
|
+
Ve(a(q, R(y, {
|
|
2530
2530
|
class: "ms-auto float-right",
|
|
2531
2531
|
icon: `svg:${s(u.slug) ? t(lt) : t(rt)}`,
|
|
2532
2532
|
"mdi-email-variant": "",
|
|
2533
2533
|
size: "small",
|
|
2534
2534
|
variant: "text",
|
|
2535
|
-
onClick: (p) =>
|
|
2535
|
+
onClick: (p) => o(u)
|
|
2536
2536
|
}), null, 16, ["icon", "onClick"]), [
|
|
2537
|
-
[De, g || t(
|
|
2537
|
+
[De, g || t(n).mobile.value]
|
|
2538
2538
|
])
|
|
2539
2539
|
]),
|
|
2540
2540
|
_: 2
|
|
@@ -2542,10 +2542,10 @@ const Ke = W("settings", () => {
|
|
|
2542
2542
|
]),
|
|
2543
2543
|
_: 2
|
|
2544
2544
|
}, 1032, ["text"]),
|
|
2545
|
-
b("div",
|
|
2546
|
-
b("div",
|
|
2547
|
-
b("div",
|
|
2548
|
-
a(te,
|
|
2545
|
+
b("div", Rn, C(u.metadata.text), 1),
|
|
2546
|
+
b("div", En, C(t(e).format(u.created_at, "fullDateWithWeekday")), 1),
|
|
2547
|
+
b("div", qn, C(u.metadata.subtext), 1),
|
|
2548
|
+
a(te, R({
|
|
2549
2549
|
href: u.metadata.link.startsWith("http") ? u.metadata.link : void 0,
|
|
2550
2550
|
target: u.metadata.link.startsWith("http") ? "_blank" : void 0,
|
|
2551
2551
|
to: u.metadata.link.startsWith("http") ? void 0 : u.metadata.link
|
|
@@ -2570,7 +2570,7 @@ const Ke = W("settings", () => {
|
|
|
2570
2570
|
}, 1024)
|
|
2571
2571
|
]);
|
|
2572
2572
|
}), 128))
|
|
2573
|
-
])) : (d(), L("div",
|
|
2573
|
+
])) : (d(), L("div", Mn, [
|
|
2574
2574
|
a(f, {
|
|
2575
2575
|
icon: "$vuetify",
|
|
2576
2576
|
size: "256"
|
|
@@ -2579,7 +2579,7 @@ const Ke = W("settings", () => {
|
|
|
2579
2579
|
a(A, { color: "medium-emphasis" })
|
|
2580
2580
|
]),
|
|
2581
2581
|
title: r(() => [
|
|
2582
|
-
|
|
2582
|
+
Pn
|
|
2583
2583
|
]),
|
|
2584
2584
|
_: 1
|
|
2585
2585
|
})
|
|
@@ -2589,14 +2589,14 @@ const Ke = W("settings", () => {
|
|
|
2589
2589
|
});
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
|
-
}),
|
|
2592
|
+
}), Gn = { class: "ps-3 text-subtitle-2 pe-2" }, Zn = { class: "text-truncate" }, Qn = { class: "text-caption font-weight-bold text-medium-emphasis" }, Yn = { class: "text-disabled text-caption my-2" }, Jn = /* @__PURE__ */ $({
|
|
2593
2593
|
__name: "VoNotificationsListItem",
|
|
2594
2594
|
props: {
|
|
2595
2595
|
demo: { type: Boolean },
|
|
2596
2596
|
notification: {}
|
|
2597
2597
|
},
|
|
2598
2598
|
setup(c) {
|
|
2599
|
-
const e = c,
|
|
2599
|
+
const e = c, n = T(), i = Fe(), s = ce(), o = w(() => {
|
|
2600
2600
|
const f = e.notification.metadata ?? { action: "" };
|
|
2601
2601
|
return {
|
|
2602
2602
|
href: f.action.startsWith("http") ? f.action : void 0,
|
|
@@ -2604,26 +2604,26 @@ const Ke = W("settings", () => {
|
|
|
2604
2604
|
to: f.action.startsWith("http") ? void 0 : f.action,
|
|
2605
2605
|
...e.notification.metadata.attributes,
|
|
2606
2606
|
onClick() {
|
|
2607
|
-
e.demo ||
|
|
2607
|
+
e.demo || n.notifications.read.includes(e.notification.slug) || n.notifications.read.push(e.notification.slug);
|
|
2608
2608
|
}
|
|
2609
2609
|
};
|
|
2610
2610
|
});
|
|
2611
2611
|
function l(f) {
|
|
2612
|
-
return
|
|
2612
|
+
return n.notifications.read.includes(f);
|
|
2613
2613
|
}
|
|
2614
2614
|
function m(f) {
|
|
2615
|
-
e.demo || (l(f.slug) ?
|
|
2615
|
+
e.demo || (l(f.slug) ? n.notifications.read = n.notifications.read.filter((u) => u !== f.slug) : n.notifications.read.push(f.slug));
|
|
2616
2616
|
}
|
|
2617
2617
|
return (f, u) => {
|
|
2618
2618
|
const h = J;
|
|
2619
|
-
return d(), _(
|
|
2620
|
-
default: r(({ isHovering:
|
|
2621
|
-
a(h,
|
|
2619
|
+
return d(), _(je, null, {
|
|
2620
|
+
default: r(({ isHovering: k, props: g }) => [
|
|
2621
|
+
a(h, R(g, { class: "py-4 mb-0" }), {
|
|
2622
2622
|
prepend: r(() => [
|
|
2623
|
-
b("div",
|
|
2623
|
+
b("div", Gn, C(f.notification.metadata.emoji), 1)
|
|
2624
2624
|
]),
|
|
2625
2625
|
append: r(() => [
|
|
2626
|
-
a(
|
|
2626
|
+
a(So, {
|
|
2627
2627
|
class: "mt-n3",
|
|
2628
2628
|
width: "56"
|
|
2629
2629
|
}, {
|
|
@@ -2633,9 +2633,9 @@ const Ke = W("settings", () => {
|
|
|
2633
2633
|
text: l(f.notification.slug) ? "Mark as unread" : "Mark as read"
|
|
2634
2634
|
}, {
|
|
2635
2635
|
activator: r(({ props: y }) => [
|
|
2636
|
-
a(
|
|
2636
|
+
a(ze, { "hide-on-leave": "" }, {
|
|
2637
2637
|
default: r(() => [
|
|
2638
|
-
Ve(a(q,
|
|
2638
|
+
Ve(a(q, R(y, {
|
|
2639
2639
|
class: "ms-auto",
|
|
2640
2640
|
icon: `svg:${l(f.notification.slug) ? t(lt) : t(rt)}`,
|
|
2641
2641
|
"mdi-email-variant": "",
|
|
@@ -2643,7 +2643,7 @@ const Ke = W("settings", () => {
|
|
|
2643
2643
|
variant: "text",
|
|
2644
2644
|
onClick: u[0] || (u[0] = (p) => m(f.notification))
|
|
2645
2645
|
}), null, 16, ["icon"]), [
|
|
2646
|
-
[De,
|
|
2646
|
+
[De, k || t(s).mobile.value]
|
|
2647
2647
|
])
|
|
2648
2648
|
]),
|
|
2649
2649
|
_: 2
|
|
@@ -2658,15 +2658,15 @@ const Ke = W("settings", () => {
|
|
|
2658
2658
|
default: r(() => [
|
|
2659
2659
|
a(ct, { class: "text-wrap text-h6 mb-1" }, {
|
|
2660
2660
|
default: r(() => [
|
|
2661
|
-
b("div",
|
|
2661
|
+
b("div", Zn, C(f.notification.title), 1)
|
|
2662
2662
|
]),
|
|
2663
2663
|
_: 1
|
|
2664
2664
|
}),
|
|
2665
|
-
b("div",
|
|
2666
|
-
b("div",
|
|
2667
|
-
a(te,
|
|
2665
|
+
b("div", Qn, C(t(i).format(f.notification.created_at, "fullDateWithWeekday")), 1),
|
|
2666
|
+
b("div", Yn, C(f.notification.metadata.text), 1),
|
|
2667
|
+
a(te, R({
|
|
2668
2668
|
"append-icon": `svg:${t(Ne)}`
|
|
2669
|
-
}, t(
|
|
2669
|
+
}, t(o), {
|
|
2670
2670
|
border: "",
|
|
2671
2671
|
label: "",
|
|
2672
2672
|
size: "small",
|
|
@@ -2686,29 +2686,29 @@ const Ke = W("settings", () => {
|
|
|
2686
2686
|
});
|
|
2687
2687
|
};
|
|
2688
2688
|
}
|
|
2689
|
-
}),
|
|
2689
|
+
}), Xn = {
|
|
2690
2690
|
key: 0,
|
|
2691
2691
|
class: "pt-16"
|
|
2692
|
-
},
|
|
2692
|
+
}, Kn = /* @__PURE__ */ b("div", { class: "text-medium-emphasis" }, " All caught up ", -1), es = /* @__PURE__ */ $({
|
|
2693
2693
|
__name: "VoNotificationsList",
|
|
2694
2694
|
props: {
|
|
2695
2695
|
items: {}
|
|
2696
2696
|
},
|
|
2697
2697
|
setup(c) {
|
|
2698
|
-
return (e,
|
|
2699
|
-
const i =
|
|
2698
|
+
return (e, n) => {
|
|
2699
|
+
const i = Oe("v-empty-state"), s = Jn;
|
|
2700
2700
|
return d(), _(ae, {
|
|
2701
2701
|
class: "py-0",
|
|
2702
2702
|
height: "100%",
|
|
2703
2703
|
lines: "three"
|
|
2704
2704
|
}, {
|
|
2705
2705
|
default: r(() => [
|
|
2706
|
-
e.items.length ? (d(!0), L(
|
|
2707
|
-
key:
|
|
2706
|
+
e.items.length ? (d(!0), L(z, { key: 1 }, ne(e.items, (o, l) => (d(), L(z, {
|
|
2707
|
+
key: o.slug
|
|
2708
2708
|
}, [
|
|
2709
|
-
l !== 0 ? (d(), _(
|
|
2710
|
-
a(s, { notification:
|
|
2711
|
-
], 64))), 128)) : (d(), L("div",
|
|
2709
|
+
l !== 0 ? (d(), _(G, { key: 0 })) : S("", !0),
|
|
2710
|
+
a(s, { notification: o }, null, 8, ["notification"])
|
|
2711
|
+
], 64))), 128)) : (d(), L("div", Xn, [
|
|
2712
2712
|
a(i, {
|
|
2713
2713
|
icon: "$vuetify",
|
|
2714
2714
|
size: "256"
|
|
@@ -2717,7 +2717,7 @@ const Ke = W("settings", () => {
|
|
|
2717
2717
|
a(A, { color: "medium-emphasis" })
|
|
2718
2718
|
]),
|
|
2719
2719
|
title: r(() => [
|
|
2720
|
-
|
|
2720
|
+
Kn
|
|
2721
2721
|
]),
|
|
2722
2722
|
_: 1
|
|
2723
2723
|
})
|
|
@@ -2727,32 +2727,32 @@ const Ke = W("settings", () => {
|
|
|
2727
2727
|
});
|
|
2728
2728
|
};
|
|
2729
2729
|
}
|
|
2730
|
-
}),
|
|
2731
|
-
const c =
|
|
2730
|
+
}), Vt = W("site", () => {
|
|
2731
|
+
const c = O([]), e = O();
|
|
2732
2732
|
return {
|
|
2733
2733
|
id: c,
|
|
2734
2734
|
url: e
|
|
2735
2735
|
};
|
|
2736
|
-
}),
|
|
2737
|
-
const c = ie(), e =
|
|
2738
|
-
if (
|
|
2739
|
-
return
|
|
2736
|
+
}), Re = W("banners", () => {
|
|
2737
|
+
const c = ie(), e = Vt(), n = T(), i = O([]), s = O([]), o = O(), l = B(!1), m = w(() => {
|
|
2738
|
+
if (o.value)
|
|
2739
|
+
return o.value;
|
|
2740
2740
|
if (f.value)
|
|
2741
2741
|
return f.value;
|
|
2742
|
-
if (
|
|
2742
|
+
if (n.notifications.banners)
|
|
2743
2743
|
return i.value.find(({
|
|
2744
2744
|
slug: v,
|
|
2745
2745
|
metadata: {
|
|
2746
|
-
site:
|
|
2746
|
+
site: V,
|
|
2747
2747
|
active: N
|
|
2748
2748
|
}
|
|
2749
|
-
}) => !N ||
|
|
2749
|
+
}) => !N || n.notifications.last.banner.includes(v) ? !1 : V.includes("dev") && !1 || V.includes("*") ? !0 : V.some((j) => e.id.includes(j)));
|
|
2750
2750
|
}), f = w(() => i.value.find(({
|
|
2751
2751
|
metadata: {
|
|
2752
2752
|
site: v,
|
|
2753
|
-
active:
|
|
2753
|
+
active: V
|
|
2754
2754
|
}
|
|
2755
|
-
}) =>
|
|
2755
|
+
}) => V ? v.includes("server") : !1));
|
|
2756
2756
|
async function u() {
|
|
2757
2757
|
try {
|
|
2758
2758
|
l.value = !0;
|
|
@@ -2767,34 +2767,34 @@ const Ke = W("settings", () => {
|
|
|
2767
2767
|
async function h(v) {
|
|
2768
2768
|
try {
|
|
2769
2769
|
l.value = !0;
|
|
2770
|
-
const
|
|
2771
|
-
return
|
|
2770
|
+
const V = await c.get(`/one/admin/banners/${v}`);
|
|
2771
|
+
return o.value = V.banner, V.banner;
|
|
2772
2772
|
} catch {
|
|
2773
2773
|
} finally {
|
|
2774
2774
|
l.value = !1;
|
|
2775
2775
|
}
|
|
2776
2776
|
}
|
|
2777
|
-
async function
|
|
2777
|
+
async function k(v) {
|
|
2778
2778
|
try {
|
|
2779
2779
|
l.value = !0;
|
|
2780
|
-
const
|
|
2780
|
+
const V = await c.form(
|
|
2781
2781
|
"/one/admin/banners",
|
|
2782
2782
|
v
|
|
2783
2783
|
);
|
|
2784
|
-
return
|
|
2784
|
+
return o.value = V.banner, V.banner;
|
|
2785
2785
|
} catch {
|
|
2786
2786
|
} finally {
|
|
2787
2787
|
l.value = !1;
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
|
-
async function g(v,
|
|
2790
|
+
async function g(v, V) {
|
|
2791
2791
|
try {
|
|
2792
2792
|
l.value = !0;
|
|
2793
2793
|
const N = await c.form(
|
|
2794
2794
|
`/one/admin/banners/${v}`,
|
|
2795
|
-
|
|
2795
|
+
V
|
|
2796
2796
|
);
|
|
2797
|
-
return
|
|
2797
|
+
return o.value = N.banner, N.banner;
|
|
2798
2798
|
} catch {
|
|
2799
2799
|
} finally {
|
|
2800
2800
|
l.value = !1;
|
|
@@ -2819,15 +2819,15 @@ const Ke = W("settings", () => {
|
|
|
2819
2819
|
isLoading: l,
|
|
2820
2820
|
server: f,
|
|
2821
2821
|
banner: m,
|
|
2822
|
-
record:
|
|
2822
|
+
record: o,
|
|
2823
2823
|
admin: p,
|
|
2824
2824
|
destroy: y,
|
|
2825
2825
|
index: u,
|
|
2826
2826
|
show: h,
|
|
2827
|
-
store:
|
|
2827
|
+
store: k,
|
|
2828
2828
|
update: g
|
|
2829
2829
|
};
|
|
2830
|
-
}),
|
|
2830
|
+
}), ts = { class: "text-caption" }, os = { class: "text-caption" }, ns = /* @__PURE__ */ $({
|
|
2831
2831
|
__name: "VoNotificationsDialog",
|
|
2832
2832
|
props: {
|
|
2833
2833
|
modelValue: { type: Boolean },
|
|
@@ -2835,25 +2835,25 @@ const Ke = W("settings", () => {
|
|
|
2835
2835
|
},
|
|
2836
2836
|
emits: ["update:modelValue"],
|
|
2837
2837
|
setup(c) {
|
|
2838
|
-
const e = ce(),
|
|
2839
|
-
return U(
|
|
2840
|
-
if (
|
|
2838
|
+
const e = ce(), n = ve(), i = Re(), s = Me(), o = P(), l = T(), m = B(["read"]), f = le(c, "modelValue");
|
|
2839
|
+
return U(n, async () => {
|
|
2840
|
+
if (n.value.one !== "notifications") {
|
|
2841
2841
|
f.value && (f.value = !1);
|
|
2842
2842
|
return;
|
|
2843
2843
|
}
|
|
2844
|
-
|
|
2844
|
+
o.isOpen = !0, await pe(), f.value = !0;
|
|
2845
2845
|
}, { immediate: !0 }), (u, h) => {
|
|
2846
|
-
const
|
|
2846
|
+
const k = J, g = es, y = Wn, p = we;
|
|
2847
2847
|
return d(), _(p, {
|
|
2848
2848
|
modelValue: f.value,
|
|
2849
2849
|
"onUpdate:modelValue": h[2] || (h[2] = (v) => f.value = v),
|
|
2850
|
-
"prepend-icon": `svg:${t(
|
|
2850
|
+
"prepend-icon": `svg:${t(no)}`,
|
|
2851
2851
|
title: "Notifications"
|
|
2852
2852
|
}, {
|
|
2853
2853
|
default: r(() => [
|
|
2854
2854
|
a($e, null, {
|
|
2855
2855
|
default: r(() => [
|
|
2856
|
-
a(
|
|
2856
|
+
a(Co, {
|
|
2857
2857
|
location: t(e).mobile.value ? "top" : "start",
|
|
2858
2858
|
permanent: "",
|
|
2859
2859
|
width: t(e).mobile.value ? 128 : 168
|
|
@@ -2868,40 +2868,40 @@ const Ke = W("settings", () => {
|
|
|
2868
2868
|
nav: ""
|
|
2869
2869
|
}, {
|
|
2870
2870
|
default: r(() => [
|
|
2871
|
-
a(
|
|
2872
|
-
"prepend-icon": `svg:${t(
|
|
2871
|
+
a(k, {
|
|
2872
|
+
"prepend-icon": `svg:${t(so)}`,
|
|
2873
2873
|
title: "Unread",
|
|
2874
2874
|
value: "read"
|
|
2875
|
-
},
|
|
2875
|
+
}, H({ _: 2 }, [
|
|
2876
2876
|
t(s).unread.length > 0 ? {
|
|
2877
2877
|
name: "append",
|
|
2878
2878
|
fn: r(() => [
|
|
2879
|
-
b("span",
|
|
2879
|
+
b("span", ts, C(t(s).unread.length), 1)
|
|
2880
2880
|
]),
|
|
2881
2881
|
key: "0"
|
|
2882
2882
|
} : void 0
|
|
2883
2883
|
]), 1032, ["prepend-icon"]),
|
|
2884
|
-
a(
|
|
2885
|
-
"prepend-icon": `svg:${t(
|
|
2884
|
+
a(k, {
|
|
2885
|
+
"prepend-icon": `svg:${t(ao)}`,
|
|
2886
2886
|
title: "Read",
|
|
2887
2887
|
value: "unread"
|
|
2888
|
-
},
|
|
2888
|
+
}, H({ _: 2 }, [
|
|
2889
2889
|
t(s).read.length > 0 ? {
|
|
2890
2890
|
name: "append",
|
|
2891
2891
|
fn: r(() => [
|
|
2892
|
-
b("span",
|
|
2892
|
+
b("span", os, C(t(s).read.length), 1)
|
|
2893
2893
|
]),
|
|
2894
2894
|
key: "0"
|
|
2895
2895
|
} : void 0
|
|
2896
2896
|
]), 1032, ["prepend-icon"]),
|
|
2897
|
-
t(i).all.length > 0 && t(l).notifications.banners ? (d(), _(
|
|
2897
|
+
t(i).all.length > 0 && t(l).notifications.banners ? (d(), _(k, {
|
|
2898
2898
|
key: 0,
|
|
2899
|
-
"prepend-icon": `svg:${t(
|
|
2899
|
+
"prepend-icon": `svg:${t(io)}`,
|
|
2900
2900
|
title: "Banners",
|
|
2901
2901
|
value: "banners"
|
|
2902
2902
|
}, {
|
|
2903
2903
|
append: r(() => [
|
|
2904
|
-
a(
|
|
2904
|
+
a(Ke, {
|
|
2905
2905
|
dot: "",
|
|
2906
2906
|
"offset-y": "-3"
|
|
2907
2907
|
})
|
|
@@ -2959,36 +2959,36 @@ const Ke = W("settings", () => {
|
|
|
2959
2959
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2960
2960
|
};
|
|
2961
2961
|
}
|
|
2962
|
-
}),
|
|
2962
|
+
}), ss = /* @__PURE__ */ $({
|
|
2963
2963
|
__name: "VoNotificationsBadge",
|
|
2964
2964
|
setup(c) {
|
|
2965
|
-
const e =
|
|
2966
|
-
return (i, s) => (d(), _(
|
|
2965
|
+
const e = Me(), n = T();
|
|
2966
|
+
return (i, s) => (d(), _(Ke, {
|
|
2967
2967
|
color: "error",
|
|
2968
2968
|
content: t(e).unread.length,
|
|
2969
|
-
"model-value": t(
|
|
2969
|
+
"model-value": t(n).notifications.show && t(e).unread.length > 0
|
|
2970
2970
|
}, {
|
|
2971
2971
|
default: r(() => [
|
|
2972
|
-
|
|
2972
|
+
D(i.$slots, "default")
|
|
2973
2973
|
]),
|
|
2974
2974
|
_: 3
|
|
2975
2975
|
}, 8, ["content", "model-value"]));
|
|
2976
2976
|
}
|
|
2977
|
-
}),
|
|
2977
|
+
}), as = /* @__PURE__ */ $({
|
|
2978
2978
|
__name: "VoNotificationsNavItem",
|
|
2979
2979
|
setup(c) {
|
|
2980
|
-
const e =
|
|
2981
|
-
return
|
|
2980
|
+
const e = Re(), n = T(), i = Me(), s = B(!1);
|
|
2981
|
+
return Qe(async () => {
|
|
2982
2982
|
i.index(), e.index();
|
|
2983
|
-
}), (
|
|
2984
|
-
const m =
|
|
2985
|
-
return t(
|
|
2983
|
+
}), (o, l) => {
|
|
2984
|
+
const m = ss, f = ns, u = J;
|
|
2985
|
+
return t(n).notifications.show ? (d(), _(u, {
|
|
2986
2986
|
key: 0,
|
|
2987
2987
|
active: t(s),
|
|
2988
2988
|
link: "",
|
|
2989
|
-
"prepend-icon": `svg:${t(
|
|
2989
|
+
"prepend-icon": `svg:${t(ro)}`,
|
|
2990
2990
|
title: "Notifications"
|
|
2991
|
-
},
|
|
2991
|
+
}, H({
|
|
2992
2992
|
default: r(() => [
|
|
2993
2993
|
a(f, {
|
|
2994
2994
|
modelValue: t(s),
|
|
@@ -3012,31 +3012,31 @@ const Ke = W("settings", () => {
|
|
|
3012
3012
|
]), 1032, ["active", "prepend-icon"])) : S("", !0);
|
|
3013
3013
|
};
|
|
3014
3014
|
}
|
|
3015
|
-
}),
|
|
3015
|
+
}), is = /* @__PURE__ */ $({
|
|
3016
3016
|
__name: "VoDashboardNavItem",
|
|
3017
3017
|
setup(c) {
|
|
3018
3018
|
const e = P();
|
|
3019
|
-
function
|
|
3019
|
+
function n() {
|
|
3020
3020
|
setTimeout(() => {
|
|
3021
3021
|
e.isOpen = !1;
|
|
3022
3022
|
}, 100);
|
|
3023
3023
|
}
|
|
3024
3024
|
return (i, s) => {
|
|
3025
|
-
const
|
|
3026
|
-
return d(), _(
|
|
3027
|
-
"prepend-icon": `svg:${t(
|
|
3025
|
+
const o = J;
|
|
3026
|
+
return d(), _(o, {
|
|
3027
|
+
"prepend-icon": `svg:${t(lo)}`,
|
|
3028
3028
|
title: "Dashboard",
|
|
3029
3029
|
to: "/user/dashboard",
|
|
3030
|
-
onClick:
|
|
3030
|
+
onClick: n
|
|
3031
3031
|
}, null, 8, ["prepend-icon"]);
|
|
3032
3032
|
};
|
|
3033
3033
|
}
|
|
3034
|
-
}),
|
|
3034
|
+
}), rs = /* @__PURE__ */ $({
|
|
3035
3035
|
__name: "VoUserList",
|
|
3036
3036
|
setup(c) {
|
|
3037
3037
|
const e = M();
|
|
3038
|
-
return (
|
|
3039
|
-
const s =
|
|
3038
|
+
return (n, i) => {
|
|
3039
|
+
const s = is, o = as, l = jn, m = Dn, f = bn, u = Yo, h = Ro;
|
|
3040
3040
|
return d(), _(ae, {
|
|
3041
3041
|
density: "compact",
|
|
3042
3042
|
nav: "",
|
|
@@ -3044,7 +3044,7 @@ const Ke = W("settings", () => {
|
|
|
3044
3044
|
}, {
|
|
3045
3045
|
default: r(() => [
|
|
3046
3046
|
a(s),
|
|
3047
|
-
a(
|
|
3047
|
+
a(o),
|
|
3048
3048
|
a(l),
|
|
3049
3049
|
a(m),
|
|
3050
3050
|
t(e).user ? (d(), _(f, { key: 0 })) : S("", !0),
|
|
@@ -3055,10 +3055,10 @@ const Ke = W("settings", () => {
|
|
|
3055
3055
|
});
|
|
3056
3056
|
};
|
|
3057
3057
|
}
|
|
3058
|
-
}),
|
|
3058
|
+
}), ls = { key: 0 }, cs = { class: "d-flex align-center justify-center pa-1 ga-2" }, us = /* @__PURE__ */ $({
|
|
3059
3059
|
__name: "VoUserQuickActions",
|
|
3060
3060
|
setup(c) {
|
|
3061
|
-
const e =
|
|
3061
|
+
const e = T(), n = [
|
|
3062
3062
|
["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],
|
|
3063
3063
|
["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],
|
|
3064
3064
|
"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",
|
|
@@ -3068,10 +3068,10 @@ const Ke = W("settings", () => {
|
|
|
3068
3068
|
"M8.63152 12.7367L8.50057 12.5L6 8H11.263L8.63152 12.7367Z",
|
|
3069
3069
|
["M9.11205 13.6004L11 17L16 8H12.223L9.11205 13.6004Z", 0.6]
|
|
3070
3070
|
];
|
|
3071
|
-
return (s,
|
|
3071
|
+
return (s, o) => (d(), _(me, null, {
|
|
3072
3072
|
default: r(() => [
|
|
3073
|
-
t(e).quickbar ? (d(), L("div",
|
|
3074
|
-
b("div",
|
|
3073
|
+
t(e).quickbar ? (d(), L("div", ls, [
|
|
3074
|
+
b("div", cs, [
|
|
3075
3075
|
a(q, {
|
|
3076
3076
|
class: "text-caption",
|
|
3077
3077
|
color: t(e).colors.one,
|
|
@@ -3095,7 +3095,7 @@ const Ke = W("settings", () => {
|
|
|
3095
3095
|
color: t(e).colors.one,
|
|
3096
3096
|
density: "comfortable",
|
|
3097
3097
|
href: "https://bin.vuetifyjs.com",
|
|
3098
|
-
icon:
|
|
3098
|
+
icon: n,
|
|
3099
3099
|
target: "_blank"
|
|
3100
3100
|
}, {
|
|
3101
3101
|
default: r(() => [
|
|
@@ -3132,10 +3132,10 @@ const Ke = W("settings", () => {
|
|
|
3132
3132
|
_: 1
|
|
3133
3133
|
}));
|
|
3134
3134
|
}
|
|
3135
|
-
}),
|
|
3135
|
+
}), ds = { class: "mb-2" }, ps = { key: 0 }, ms = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, fs = { class: "text-h6" }, vs = /* @__PURE__ */ $({
|
|
3136
3136
|
__name: "VoUserAvatar",
|
|
3137
3137
|
setup(c) {
|
|
3138
|
-
const e = M(),
|
|
3138
|
+
const e = M(), n = P(), i = T(), s = B(!1), o = w(() => {
|
|
3139
3139
|
const f = [
|
|
3140
3140
|
"https://cdn.vuetifyjs.com/docs/images/avatars/dark.png",
|
|
3141
3141
|
"https://cdn.vuetifyjs.com/docs/images/avatars/blackguard.png",
|
|
@@ -3152,7 +3152,7 @@ const Ke = W("settings", () => {
|
|
|
3152
3152
|
"https://cdn.vuetifyjs.com/docs/images/avatars/blackhole.png",
|
|
3153
3153
|
"https://cdn.vuetifyjs.com/docs/images/avatars/meteor.png"
|
|
3154
3154
|
];
|
|
3155
|
-
return
|
|
3155
|
+
return n.isSubscriber && f.unshift("https://cdn.vuetifyjs.com/docs/images/avatars/one.png"), e.user && f.unshift(e.user.picture), f;
|
|
3156
3156
|
});
|
|
3157
3157
|
function l(f) {
|
|
3158
3158
|
i.avatar = f;
|
|
@@ -3163,8 +3163,8 @@ const Ke = W("settings", () => {
|
|
|
3163
3163
|
return (f, u) => {
|
|
3164
3164
|
var h;
|
|
3165
3165
|
return d(), L("div", null, [
|
|
3166
|
-
Ve((d(), _(
|
|
3167
|
-
class:
|
|
3166
|
+
Ve((d(), _(Y, {
|
|
3167
|
+
class: It([
|
|
3168
3168
|
"border-md border-opacity-100 border-surface-variant",
|
|
3169
3169
|
{
|
|
3170
3170
|
"cursor-pointer": t(e).isSubscriber
|
|
@@ -3173,10 +3173,10 @@ const Ke = W("settings", () => {
|
|
|
3173
3173
|
color: "surface",
|
|
3174
3174
|
size: "72",
|
|
3175
3175
|
text: "Foobar",
|
|
3176
|
-
onClick:
|
|
3176
|
+
onClick: Ze(m, ["prevent", "stop"])
|
|
3177
3177
|
}, {
|
|
3178
3178
|
default: r(() => [
|
|
3179
|
-
t(e).user && t(i).avatar ? (d(), _(
|
|
3179
|
+
t(e).user && t(i).avatar ? (d(), _(Z, {
|
|
3180
3180
|
key: 0,
|
|
3181
3181
|
alt: "User avatar",
|
|
3182
3182
|
src: t(i).avatar
|
|
@@ -3189,30 +3189,30 @@ const Ke = W("settings", () => {
|
|
|
3189
3189
|
]),
|
|
3190
3190
|
_: 1
|
|
3191
3191
|
}, 8, ["class"])), [
|
|
3192
|
-
[
|
|
3192
|
+
[Lo, t(e).isSubscriber]
|
|
3193
3193
|
]),
|
|
3194
|
-
b("div",
|
|
3194
|
+
b("div", ds, [
|
|
3195
3195
|
a(me, null, {
|
|
3196
3196
|
default: r(() => [
|
|
3197
|
-
t(s) ? (d(), L("div",
|
|
3197
|
+
t(s) ? (d(), L("div", ps, [
|
|
3198
3198
|
a(E, {
|
|
3199
3199
|
class: "pt-6 pb-1",
|
|
3200
3200
|
flat: "",
|
|
3201
3201
|
rounded: "0"
|
|
3202
3202
|
}, {
|
|
3203
3203
|
default: r(() => [
|
|
3204
|
-
b("div",
|
|
3205
|
-
(d(!0), L(
|
|
3204
|
+
b("div", ms, [
|
|
3205
|
+
(d(!0), L(z, null, ne(t(o), (k, g) => (d(), _(q, {
|
|
3206
3206
|
key: g,
|
|
3207
|
-
active: t(i).avatar ===
|
|
3207
|
+
active: t(i).avatar === k,
|
|
3208
3208
|
icon: "",
|
|
3209
3209
|
variant: "flat",
|
|
3210
|
-
onClick: (y) => l(
|
|
3210
|
+
onClick: (y) => l(k)
|
|
3211
3211
|
}, {
|
|
3212
3212
|
default: r(() => [
|
|
3213
|
-
a(
|
|
3213
|
+
a(Y, {
|
|
3214
3214
|
eager: "",
|
|
3215
|
-
image:
|
|
3215
|
+
image: k
|
|
3216
3216
|
}, null, 8, ["image"])
|
|
3217
3217
|
]),
|
|
3218
3218
|
_: 2
|
|
@@ -3226,18 +3226,18 @@ const Ke = W("settings", () => {
|
|
|
3226
3226
|
_: 1
|
|
3227
3227
|
})
|
|
3228
3228
|
]),
|
|
3229
|
-
b("div",
|
|
3229
|
+
b("div", fs, C(((h = t(e).user) == null ? void 0 : h.name) ?? "Guest"), 1)
|
|
3230
3230
|
]);
|
|
3231
3231
|
};
|
|
3232
3232
|
}
|
|
3233
|
-
}),
|
|
3233
|
+
}), hs = /* @__PURE__ */ $({
|
|
3234
3234
|
__name: "VoUserBadges",
|
|
3235
3235
|
setup(c) {
|
|
3236
|
-
const e = M(),
|
|
3236
|
+
const e = M(), n = P(), i = w(() => {
|
|
3237
3237
|
var s;
|
|
3238
|
-
return
|
|
3238
|
+
return n.github || n.discord || n.isSubscriber || ((s = e.user) == null ? void 0 : s.isAdmin);
|
|
3239
3239
|
});
|
|
3240
|
-
return (s,
|
|
3240
|
+
return (s, o) => t(i) ? (d(), _(ye, {
|
|
3241
3241
|
key: 0,
|
|
3242
3242
|
class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
|
|
3243
3243
|
color: "rgba(0,0,0,.54)",
|
|
@@ -3253,48 +3253,48 @@ const Ke = W("settings", () => {
|
|
|
3253
3253
|
text: "Vuetify Administrator"
|
|
3254
3254
|
}, {
|
|
3255
3255
|
activator: r(({ props: m }) => [
|
|
3256
|
-
a(A,
|
|
3256
|
+
a(A, R({
|
|
3257
3257
|
color: "blue",
|
|
3258
3258
|
icon: "$vuetify"
|
|
3259
3259
|
}, m, { size: "16" }), null, 16)
|
|
3260
3260
|
]),
|
|
3261
3261
|
_: 1
|
|
3262
3262
|
})) : S("", !0),
|
|
3263
|
-
t(
|
|
3263
|
+
t(n).isSubscriber ? (d(), _(ee, {
|
|
3264
3264
|
key: 1,
|
|
3265
3265
|
location: "bottom",
|
|
3266
3266
|
text: "Vuetify One Subscriber"
|
|
3267
3267
|
}, {
|
|
3268
3268
|
activator: r(({ props: m }) => [
|
|
3269
|
-
a(A,
|
|
3269
|
+
a(A, R({
|
|
3270
3270
|
color: "amber-darken-2",
|
|
3271
|
-
icon: `svg:${t(
|
|
3271
|
+
icon: `svg:${t(co)}`
|
|
3272
3272
|
}, m, { size: "16" }), null, 16, ["icon"])
|
|
3273
3273
|
]),
|
|
3274
3274
|
_: 1
|
|
3275
3275
|
})) : S("", !0),
|
|
3276
|
-
t(
|
|
3276
|
+
t(n).github ? (d(), _(ee, {
|
|
3277
3277
|
key: 2,
|
|
3278
3278
|
location: "bottom",
|
|
3279
3279
|
text: "GitHub Sponsor"
|
|
3280
3280
|
}, {
|
|
3281
3281
|
activator: r(({ props: m }) => [
|
|
3282
|
-
a(A,
|
|
3282
|
+
a(A, R({
|
|
3283
3283
|
color: "white",
|
|
3284
|
-
icon: `svg:${t(
|
|
3284
|
+
icon: `svg:${t(Xe)}`
|
|
3285
3285
|
}, m, { size: "16" }), null, 16, ["icon"])
|
|
3286
3286
|
]),
|
|
3287
3287
|
_: 1
|
|
3288
3288
|
})) : S("", !0),
|
|
3289
|
-
t(
|
|
3289
|
+
t(n).discord ? (d(), _(ee, {
|
|
3290
3290
|
key: 3,
|
|
3291
3291
|
location: "bottom",
|
|
3292
3292
|
text: "Discord Subscriber"
|
|
3293
3293
|
}, {
|
|
3294
3294
|
activator: r(({ props: m }) => [
|
|
3295
|
-
a(A,
|
|
3295
|
+
a(A, R({
|
|
3296
3296
|
color: "white",
|
|
3297
|
-
icon: `svg:${t(
|
|
3297
|
+
icon: `svg:${t(Je)}`
|
|
3298
3298
|
}, m, { size: "16" }), null, 16, ["icon"])
|
|
3299
3299
|
]),
|
|
3300
3300
|
_: 1
|
|
@@ -3304,21 +3304,21 @@ const Ke = W("settings", () => {
|
|
|
3304
3304
|
_: 1
|
|
3305
3305
|
})) : S("", !0);
|
|
3306
3306
|
}
|
|
3307
|
-
}),
|
|
3307
|
+
}), _s = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, gs = {
|
|
3308
3308
|
key: "reset",
|
|
3309
3309
|
class: "align-self-end"
|
|
3310
|
-
},
|
|
3310
|
+
}, ys = /* @__PURE__ */ $({
|
|
3311
3311
|
__name: "VoUserColors",
|
|
3312
3312
|
setup(c) {
|
|
3313
|
-
const e = M(),
|
|
3313
|
+
const e = M(), n = T(), i = B(!1);
|
|
3314
3314
|
function s() {
|
|
3315
|
-
|
|
3315
|
+
n.colors.one = "surface-light";
|
|
3316
3316
|
}
|
|
3317
|
-
return (
|
|
3318
|
-
const m =
|
|
3319
|
-
return d(), L(
|
|
3320
|
-
a(
|
|
3321
|
-
color: t(e).user ? t(
|
|
3317
|
+
return (o, l) => {
|
|
3318
|
+
const m = hs, f = fe;
|
|
3319
|
+
return d(), L(z, null, [
|
|
3320
|
+
a(Z, {
|
|
3321
|
+
color: t(e).user ? t(n).colors.one : "surface-light",
|
|
3322
3322
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
3323
3323
|
cover: "",
|
|
3324
3324
|
flat: "",
|
|
@@ -3326,17 +3326,17 @@ const Ke = W("settings", () => {
|
|
|
3326
3326
|
rounded: "0"
|
|
3327
3327
|
}, {
|
|
3328
3328
|
default: r(() => [
|
|
3329
|
-
b("div",
|
|
3329
|
+
b("div", _s, [
|
|
3330
3330
|
a(m),
|
|
3331
|
-
a(
|
|
3331
|
+
a(bo, null, {
|
|
3332
3332
|
default: r(() => [
|
|
3333
|
-
Ve(b("div",
|
|
3333
|
+
Ve(b("div", gs, [
|
|
3334
3334
|
a(f, {
|
|
3335
3335
|
class: "ms-2 me-1",
|
|
3336
3336
|
color: "inherit",
|
|
3337
3337
|
density: "comfortable",
|
|
3338
|
-
disabled: t(
|
|
3339
|
-
icon: `svg:${t(
|
|
3338
|
+
disabled: t(n).colors.one === "surface-light",
|
|
3339
|
+
icon: `svg:${t(uo)}`,
|
|
3340
3340
|
title: "Revert to Default",
|
|
3341
3341
|
variant: "text",
|
|
3342
3342
|
onClick: s
|
|
@@ -3353,13 +3353,13 @@ const Ke = W("settings", () => {
|
|
|
3353
3353
|
class: "align-self-end",
|
|
3354
3354
|
color: "inherit",
|
|
3355
3355
|
density: "comfortable",
|
|
3356
|
-
icon: t(i) ? `svg:${t(
|
|
3356
|
+
icon: t(i) ? `svg:${t(Be)}` : "$edit",
|
|
3357
3357
|
title: "Edit One Header Color",
|
|
3358
3358
|
variant: t(i) ? "text" : "plain",
|
|
3359
3359
|
onClick: l[0] || (l[0] = (u) => i.value = !t(i))
|
|
3360
3360
|
}, {
|
|
3361
3361
|
default: r(() => [
|
|
3362
|
-
a(
|
|
3362
|
+
a(ze, { "leave-absolute": "" }, {
|
|
3363
3363
|
default: r(() => [
|
|
3364
3364
|
(d(), _(A, {
|
|
3365
3365
|
key: String(t(i))
|
|
@@ -3376,19 +3376,19 @@ const Ke = W("settings", () => {
|
|
|
3376
3376
|
}, 8, ["color"]),
|
|
3377
3377
|
a(me, null, {
|
|
3378
3378
|
default: r(() => [
|
|
3379
|
-
t(i) ? (d(), _(
|
|
3379
|
+
t(i) ? (d(), _(Io, {
|
|
3380
3380
|
key: 0,
|
|
3381
3381
|
elevation: "0",
|
|
3382
3382
|
height: "250",
|
|
3383
3383
|
"hide-canvas": "",
|
|
3384
3384
|
"hide-inputs": "",
|
|
3385
3385
|
"hide-sliders": "",
|
|
3386
|
-
"model-value": t(
|
|
3386
|
+
"model-value": t(n).colors.one !== "surface-light" ? t(n).colors.one : void 0,
|
|
3387
3387
|
rounded: "0",
|
|
3388
3388
|
"show-swatches": "",
|
|
3389
3389
|
"swatches-max-height": "200",
|
|
3390
3390
|
width: "278",
|
|
3391
|
-
"onUpdate:modelValue": l[1] || (l[1] = (u) => t(
|
|
3391
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => t(n).colors.one = u)
|
|
3392
3392
|
}, null, 8, ["model-value"])) : S("", !0)
|
|
3393
3393
|
]),
|
|
3394
3394
|
_: 1
|
|
@@ -3396,20 +3396,20 @@ const Ke = W("settings", () => {
|
|
|
3396
3396
|
], 64);
|
|
3397
3397
|
};
|
|
3398
3398
|
}
|
|
3399
|
-
}),
|
|
3399
|
+
}), bs = { class: "text-center mt-n9 mb-4" }, Vs = /* @__PURE__ */ $({
|
|
3400
3400
|
__name: "VoUserMenu",
|
|
3401
3401
|
setup(c) {
|
|
3402
|
-
const e =
|
|
3402
|
+
const e = Re(), n = P(), i = O();
|
|
3403
3403
|
return U(() => e.banner, async () => {
|
|
3404
|
-
var s,
|
|
3405
|
-
await new Promise((l) => setTimeout(l, 300)),
|
|
3406
|
-
}, { flush: "pre" }), (s,
|
|
3407
|
-
const l =
|
|
3408
|
-
return d(), _(t(
|
|
3404
|
+
var s, o;
|
|
3405
|
+
await new Promise((l) => setTimeout(l, 300)), n.isOpen && ((o = (s = i.value) == null ? void 0 : s.updateLocation) == null || o.call(s));
|
|
3406
|
+
}, { flush: "pre" }), (s, o) => {
|
|
3407
|
+
const l = ys, m = vs, f = us, u = rs, h = yt;
|
|
3408
|
+
return d(), _(t(Ao), {
|
|
3409
3409
|
ref_key: "menu",
|
|
3410
3410
|
ref: i,
|
|
3411
|
-
modelValue: t(
|
|
3412
|
-
"onUpdate:modelValue":
|
|
3411
|
+
modelValue: t(n).isOpen,
|
|
3412
|
+
"onUpdate:modelValue": o[0] || (o[0] = (k) => t(n).isOpen = k),
|
|
3413
3413
|
activator: "parent",
|
|
3414
3414
|
"close-on-click": !1,
|
|
3415
3415
|
"close-on-content-click": !1,
|
|
@@ -3424,13 +3424,13 @@ const Ke = W("settings", () => {
|
|
|
3424
3424
|
}, {
|
|
3425
3425
|
default: r(() => [
|
|
3426
3426
|
a(l),
|
|
3427
|
-
b("div",
|
|
3427
|
+
b("div", bs, [
|
|
3428
3428
|
a(m),
|
|
3429
3429
|
a(f)
|
|
3430
3430
|
]),
|
|
3431
|
-
a(
|
|
3431
|
+
a(G),
|
|
3432
3432
|
a(u),
|
|
3433
|
-
a(
|
|
3433
|
+
a(G),
|
|
3434
3434
|
a(h)
|
|
3435
3435
|
]),
|
|
3436
3436
|
_: 1
|
|
@@ -3440,26 +3440,26 @@ const Ke = W("settings", () => {
|
|
|
3440
3440
|
}, 8, ["modelValue"]);
|
|
3441
3441
|
};
|
|
3442
3442
|
}
|
|
3443
|
-
}),
|
|
3443
|
+
}), ks = { key: 0 }, kt = /* @__PURE__ */ $({
|
|
3444
3444
|
__name: "VoAuthBtn",
|
|
3445
3445
|
props: {
|
|
3446
3446
|
external: Boolean
|
|
3447
3447
|
},
|
|
3448
3448
|
setup(c) {
|
|
3449
|
-
const e = M(),
|
|
3449
|
+
const e = M(), n = P(), i = T(), { lgAndUp: s } = ce(), o = w(() => n.isOpen || !e.user ? i.colors.one === "surface-light" ? "primary" : i.colors.one : "surface-light");
|
|
3450
3450
|
return (l, m) => {
|
|
3451
|
-
const f =
|
|
3452
|
-
return d(), L(
|
|
3451
|
+
const f = Vs, u = fe, h = Po, k = gt;
|
|
3452
|
+
return d(), L(z, null, [
|
|
3453
3453
|
a(h, {
|
|
3454
3454
|
"offset-y": t(e).user ? 5 : 0
|
|
3455
3455
|
}, {
|
|
3456
3456
|
default: r(() => [
|
|
3457
|
-
a(u,
|
|
3458
|
-
[`${t(s) ? "append-" : ""}icon`]: t(e).user ? void 0 : `svg:${t(
|
|
3457
|
+
a(u, R({
|
|
3458
|
+
[`${t(s) ? "append-" : ""}icon`]: t(e).user ? void 0 : `svg:${t(po)}`
|
|
3459
3459
|
}, {
|
|
3460
3460
|
active: "",
|
|
3461
3461
|
class: "vo-auth-btn",
|
|
3462
|
-
color: t(
|
|
3462
|
+
color: t(o),
|
|
3463
3463
|
icon: t(e).user || t(e).isLoading,
|
|
3464
3464
|
loading: t(e).isLoading,
|
|
3465
3465
|
size: "default",
|
|
@@ -3467,8 +3467,8 @@ const Ke = W("settings", () => {
|
|
|
3467
3467
|
variant: t(e).user ? "outlined" : "flat"
|
|
3468
3468
|
}), {
|
|
3469
3469
|
default: r(() => [
|
|
3470
|
-
t(e).user ? S("", !0) : (d(), L("span",
|
|
3471
|
-
t(e).user ? (d(), _(
|
|
3470
|
+
t(e).user ? S("", !0) : (d(), L("span", ks, "Login")),
|
|
3471
|
+
t(e).user ? (d(), _(Y, {
|
|
3472
3472
|
key: 1,
|
|
3473
3473
|
image: t(i).avatar || t(e).user.picture || ""
|
|
3474
3474
|
}, null, 8, ["image"])) : S("", !0),
|
|
@@ -3479,49 +3479,108 @@ const Ke = W("settings", () => {
|
|
|
3479
3479
|
]),
|
|
3480
3480
|
_: 1
|
|
3481
3481
|
}, 8, ["offset-y"]),
|
|
3482
|
-
a(
|
|
3482
|
+
a(k)
|
|
3483
3483
|
], 64);
|
|
3484
3484
|
};
|
|
3485
3485
|
}
|
|
3486
|
-
}), $s = {
|
|
3486
|
+
}), $s = /* @__PURE__ */ $({
|
|
3487
|
+
__name: "VoAppBar",
|
|
3488
|
+
props: {
|
|
3489
|
+
logo: {}
|
|
3490
|
+
},
|
|
3491
|
+
setup(c) {
|
|
3492
|
+
const e = c, n = Te(), i = Pe(), s = w(() => `https://cdn.vuetifyjs.com/docs/images/one/logos/${e.logo}-logo-${n.current.value.dark ? "dark" : "light"}.png`);
|
|
3493
|
+
return (o, l) => {
|
|
3494
|
+
const m = Oe("router-link"), f = kt;
|
|
3495
|
+
return d(), _(ft, {
|
|
3496
|
+
image: t(i).suit["app-bar"]
|
|
3497
|
+
}, H({
|
|
3498
|
+
prepend: r(() => [
|
|
3499
|
+
a(m, {
|
|
3500
|
+
class: "ps-2",
|
|
3501
|
+
to: "/"
|
|
3502
|
+
}, {
|
|
3503
|
+
default: r(() => [
|
|
3504
|
+
a(Z, {
|
|
3505
|
+
src: t(s),
|
|
3506
|
+
width: "128"
|
|
3507
|
+
}, null, 8, ["src"])
|
|
3508
|
+
]),
|
|
3509
|
+
_: 1
|
|
3510
|
+
}),
|
|
3511
|
+
D(o.$slots, "prepend")
|
|
3512
|
+
]),
|
|
3513
|
+
append: r(() => [
|
|
3514
|
+
D(o.$slots, "append"),
|
|
3515
|
+
o.$slots.append ? (d(), _(G, {
|
|
3516
|
+
key: 0,
|
|
3517
|
+
class: "mx-4 align-self-center h-100",
|
|
3518
|
+
length: "20",
|
|
3519
|
+
vertical: ""
|
|
3520
|
+
})) : S("", !0),
|
|
3521
|
+
a(f)
|
|
3522
|
+
]),
|
|
3523
|
+
default: r(() => [
|
|
3524
|
+
D(o.$slots, "default")
|
|
3525
|
+
]),
|
|
3526
|
+
_: 2
|
|
3527
|
+
}, [
|
|
3528
|
+
o.$slots.title ? {
|
|
3529
|
+
name: "title",
|
|
3530
|
+
fn: r(() => [
|
|
3531
|
+
D(o.$slots, "title")
|
|
3532
|
+
]),
|
|
3533
|
+
key: "0"
|
|
3534
|
+
} : void 0,
|
|
3535
|
+
o.$slots.extension ? {
|
|
3536
|
+
name: "extension",
|
|
3537
|
+
fn: r(() => [
|
|
3538
|
+
D(o.$slots, "extension")
|
|
3539
|
+
]),
|
|
3540
|
+
key: "1"
|
|
3541
|
+
} : void 0
|
|
3542
|
+
]), 1032, ["image"]);
|
|
3543
|
+
};
|
|
3544
|
+
}
|
|
3545
|
+
}), xs = {
|
|
3487
3546
|
key: 0,
|
|
3488
3547
|
class: "v-footer__image"
|
|
3489
|
-
},
|
|
3548
|
+
}, ws = /* @__PURE__ */ $({
|
|
3490
3549
|
__name: "VoFooter",
|
|
3491
3550
|
props: {
|
|
3492
3551
|
image: {}
|
|
3493
3552
|
},
|
|
3494
3553
|
setup(c) {
|
|
3495
|
-
return (e,
|
|
3554
|
+
return (e, n) => (d(), _(Do, {
|
|
3496
3555
|
class: "vo-footer",
|
|
3497
3556
|
height: "40"
|
|
3498
3557
|
}, {
|
|
3499
3558
|
default: r(() => [
|
|
3500
|
-
e.image || e.$slots.image ? (d(), L("div",
|
|
3501
|
-
e.$slots.image ?
|
|
3559
|
+
e.image || e.$slots.image ? (d(), L("div", xs, [
|
|
3560
|
+
e.$slots.image ? D(e.$slots, "image", { key: 0 }, void 0, !0) : (d(), _(Z, {
|
|
3502
3561
|
key: 1,
|
|
3503
3562
|
cover: "",
|
|
3504
3563
|
position: "left",
|
|
3505
3564
|
src: e.image
|
|
3506
3565
|
}, null, 8, ["src"]))
|
|
3507
3566
|
])) : S("", !0),
|
|
3508
|
-
|
|
3567
|
+
D(e.$slots, "default", {}, void 0, !0)
|
|
3509
3568
|
]),
|
|
3510
3569
|
_: 3
|
|
3511
3570
|
}));
|
|
3512
3571
|
}
|
|
3513
|
-
}),
|
|
3514
|
-
const
|
|
3572
|
+
}), $t = (c, e) => {
|
|
3573
|
+
const n = c.__vccOpts || c;
|
|
3515
3574
|
for (const [i, s] of e)
|
|
3516
|
-
|
|
3517
|
-
return
|
|
3518
|
-
},
|
|
3575
|
+
n[i] = s;
|
|
3576
|
+
return n;
|
|
3577
|
+
}, xt = /* @__PURE__ */ $t(ws, [["__scopeId", "data-v-3135ada5"]]), Ss = (c) => (At("data-v-584be7b0"), c = c(), Dt(), c), Cs = ["href", "title"], Ls = {
|
|
3519
3578
|
class: "text-caption text-disabled",
|
|
3520
3579
|
style: { position: "absolute", right: "16px" }
|
|
3521
|
-
},
|
|
3580
|
+
}, Is = /* @__PURE__ */ Ss(() => /* @__PURE__ */ b("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), As = /* @__PURE__ */ $({
|
|
3522
3581
|
__name: "VoSocialFooter",
|
|
3523
3582
|
setup(c) {
|
|
3524
|
-
const e =
|
|
3583
|
+
const e = Pe(), n = [
|
|
3525
3584
|
{
|
|
3526
3585
|
title: "Vuetify Documentation",
|
|
3527
3586
|
icon: "$vuetify",
|
|
@@ -3529,7 +3588,7 @@ const Ke = W("settings", () => {
|
|
|
3529
3588
|
},
|
|
3530
3589
|
{
|
|
3531
3590
|
title: "Vuetify Support",
|
|
3532
|
-
icon: `svg:${
|
|
3591
|
+
icon: `svg:${mo}`,
|
|
3533
3592
|
href: "https://support.vuetifyjs.com/"
|
|
3534
3593
|
},
|
|
3535
3594
|
{
|
|
@@ -3539,29 +3598,29 @@ const Ke = W("settings", () => {
|
|
|
3539
3598
|
},
|
|
3540
3599
|
{
|
|
3541
3600
|
title: "Vuetify GitHub",
|
|
3542
|
-
icon: `svg:${
|
|
3601
|
+
icon: `svg:${Xe}`,
|
|
3543
3602
|
href: "https://github.com/vuetifyjs/vuetify"
|
|
3544
3603
|
},
|
|
3545
3604
|
{
|
|
3546
3605
|
title: "Vuetify Discord",
|
|
3547
|
-
icon: `svg:${
|
|
3606
|
+
icon: `svg:${Je}`,
|
|
3548
3607
|
href: "https://community.vuetifyjs.com/"
|
|
3549
3608
|
},
|
|
3550
3609
|
{
|
|
3551
3610
|
title: "Vuetify Reddit",
|
|
3552
|
-
icon: `svg:${
|
|
3611
|
+
icon: `svg:${fo}`,
|
|
3553
3612
|
href: "https://reddit.com/r/vuetifyjs"
|
|
3554
3613
|
}
|
|
3555
3614
|
];
|
|
3556
3615
|
return (i, s) => {
|
|
3557
|
-
const
|
|
3558
|
-
return d(), _(
|
|
3616
|
+
const o = xt;
|
|
3617
|
+
return d(), _(o, {
|
|
3559
3618
|
class: "vo-footer",
|
|
3560
3619
|
height: "40",
|
|
3561
3620
|
image: t(e).suit.footer
|
|
3562
|
-
},
|
|
3621
|
+
}, H({
|
|
3563
3622
|
default: r(() => [
|
|
3564
|
-
(d(), L(
|
|
3623
|
+
(d(), L(z, null, ne(n, (l) => b("a", {
|
|
3565
3624
|
key: l.title,
|
|
3566
3625
|
class: "d-inline-block mx-2 social-link",
|
|
3567
3626
|
href: l.href,
|
|
@@ -3573,10 +3632,10 @@ const Ke = W("settings", () => {
|
|
|
3573
3632
|
icon: l.icon,
|
|
3574
3633
|
size: l.icon === "$vuetify" ? 24 : 16
|
|
3575
3634
|
}, null, 8, ["icon", "size"])
|
|
3576
|
-
], 8,
|
|
3577
|
-
b("div",
|
|
3635
|
+
], 8, Cs)), 64)),
|
|
3636
|
+
b("div", Ls, [
|
|
3578
3637
|
F(" © 2016-" + C((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
|
|
3579
|
-
|
|
3638
|
+
Is
|
|
3580
3639
|
])
|
|
3581
3640
|
]),
|
|
3582
3641
|
_: 2
|
|
@@ -3584,20 +3643,20 @@ const Ke = W("settings", () => {
|
|
|
3584
3643
|
i.$slots.image ? {
|
|
3585
3644
|
name: "image",
|
|
3586
3645
|
fn: r(() => [
|
|
3587
|
-
|
|
3646
|
+
D(i.$slots, "image", {}, void 0, !0)
|
|
3588
3647
|
]),
|
|
3589
3648
|
key: "0"
|
|
3590
3649
|
} : void 0
|
|
3591
3650
|
]), 1032, ["image"]);
|
|
3592
3651
|
};
|
|
3593
3652
|
}
|
|
3594
|
-
}),
|
|
3653
|
+
}), Ds = /* @__PURE__ */ $t(As, [["__scopeId", "data-v-584be7b0"]]), Os = /* @__PURE__ */ $({
|
|
3595
3654
|
__name: "VoNotificationsBanner",
|
|
3596
3655
|
props: {
|
|
3597
3656
|
demo: { type: Boolean }
|
|
3598
3657
|
},
|
|
3599
3658
|
setup(c) {
|
|
3600
|
-
const e = c, { mdAndUp:
|
|
3659
|
+
const e = c, { mdAndUp: n } = ce(), i = Ue(), s = T(), o = Re(), l = w(() => o.banner), m = w(() => {
|
|
3601
3660
|
var g, y;
|
|
3602
3661
|
return ((g = l.value) == null ? void 0 : g.metadata.height) || ((y = l.value) != null && y.metadata.subtext ? 88 : 48);
|
|
3603
3662
|
}), f = w(() => e.demo ? !0 : !l.value || !s.notifications.last.banner.includes(l.value.slug));
|
|
@@ -3616,7 +3675,7 @@ const Ke = W("settings", () => {
|
|
|
3616
3675
|
const p = y.link.split("?one=")[1];
|
|
3617
3676
|
i.push({ query: { one: p } });
|
|
3618
3677
|
}
|
|
3619
|
-
const
|
|
3678
|
+
const k = w(() => {
|
|
3620
3679
|
var y, p;
|
|
3621
3680
|
const g = ((y = l.value) == null ? void 0 : y.metadata) ?? { link: "" };
|
|
3622
3681
|
return {
|
|
@@ -3629,7 +3688,7 @@ const Ke = W("settings", () => {
|
|
|
3629
3688
|
});
|
|
3630
3689
|
return (g, y) => {
|
|
3631
3690
|
var p;
|
|
3632
|
-
return t(l) ? (d(), _(
|
|
3691
|
+
return t(l) ? (d(), _(ft, {
|
|
3633
3692
|
key: 0,
|
|
3634
3693
|
color: t(l).metadata.color,
|
|
3635
3694
|
flat: "",
|
|
@@ -3640,14 +3699,14 @@ const Ke = W("settings", () => {
|
|
|
3640
3699
|
order: "-1"
|
|
3641
3700
|
}, {
|
|
3642
3701
|
default: r(() => [
|
|
3643
|
-
a(ke,
|
|
3702
|
+
a(ke, R(t(k), {
|
|
3644
3703
|
active: !1,
|
|
3645
3704
|
class: "flex-grow-1 py-6",
|
|
3646
3705
|
lines: "two",
|
|
3647
3706
|
onClick: h
|
|
3648
3707
|
}), {
|
|
3649
3708
|
prepend: r(() => [
|
|
3650
|
-
t(l).metadata.images.logo ? (d(), _(
|
|
3709
|
+
t(l).metadata.images.logo ? (d(), _(Y, {
|
|
3651
3710
|
key: 0,
|
|
3652
3711
|
icon: "$vuetify",
|
|
3653
3712
|
image: t(l).metadata.images.logo.url,
|
|
@@ -3656,11 +3715,11 @@ const Ke = W("settings", () => {
|
|
|
3656
3715
|
}, null, 8, ["image"])) : S("", !0)
|
|
3657
3716
|
]),
|
|
3658
3717
|
append: r(() => [
|
|
3659
|
-
t(
|
|
3660
|
-
default: r(({ isHovering: v, props:
|
|
3661
|
-
a(q,
|
|
3662
|
-
...
|
|
3663
|
-
...t(
|
|
3718
|
+
t(n) && t(l).metadata.link && t(l).metadata.link_text ? (d(), _(je, { key: 0 }, {
|
|
3719
|
+
default: r(({ isHovering: v, props: V }) => [
|
|
3720
|
+
a(q, R({
|
|
3721
|
+
...V,
|
|
3722
|
+
...t(k)
|
|
3664
3723
|
}, {
|
|
3665
3724
|
"append-icon": `svg:${t(Ne)}`,
|
|
3666
3725
|
class: "text-none me-2",
|
|
@@ -3686,7 +3745,7 @@ const Ke = W("settings", () => {
|
|
|
3686
3745
|
icon: "$clear",
|
|
3687
3746
|
size: "small",
|
|
3688
3747
|
variant: "plain",
|
|
3689
|
-
onClick:
|
|
3748
|
+
onClick: Ze(u, ["prevent", "stop"])
|
|
3690
3749
|
}, null, 8, ["disabled"])) : S("", !0)
|
|
3691
3750
|
]),
|
|
3692
3751
|
default: r(() => [
|
|
@@ -3699,7 +3758,7 @@ const Ke = W("settings", () => {
|
|
|
3699
3758
|
]),
|
|
3700
3759
|
_: 1
|
|
3701
3760
|
})) : S("", !0),
|
|
3702
|
-
t(l).metadata.subtext ? (d(), _(
|
|
3761
|
+
t(l).metadata.subtext ? (d(), _(ho, { key: 1 }, {
|
|
3703
3762
|
default: r(() => [
|
|
3704
3763
|
F(C(t(l).metadata.subtext), 1)
|
|
3705
3764
|
]),
|
|
@@ -3713,60 +3772,61 @@ const Ke = W("settings", () => {
|
|
|
3713
3772
|
}, 8, ["color", "height", "image", "location", "model-value"])) : S("", !0);
|
|
3714
3773
|
};
|
|
3715
3774
|
}
|
|
3716
|
-
}),
|
|
3775
|
+
}), Bs = {
|
|
3717
3776
|
key: 0,
|
|
3718
3777
|
class: "text-uppercase position-absolute ms-auto font-weight-medium on-surface-light",
|
|
3719
3778
|
style: { right: "12px", bottom: "8px", "font-size": "10px" }
|
|
3720
|
-
},
|
|
3779
|
+
}, wt = /* @__PURE__ */ $({
|
|
3721
3780
|
__name: "VoPromotionsCard",
|
|
3722
3781
|
props: {
|
|
3723
3782
|
caption: {},
|
|
3724
3783
|
minHeight: {}
|
|
3725
3784
|
},
|
|
3726
3785
|
setup(c) {
|
|
3727
|
-
return (e,
|
|
3786
|
+
return (e, n) => (d(), _(E, {
|
|
3728
3787
|
class: "d-inline-flex flex-child-1 position-relative",
|
|
3729
3788
|
color: "surface-light",
|
|
3730
3789
|
flat: "",
|
|
3731
3790
|
rel: "noopener",
|
|
3732
3791
|
rounded: "",
|
|
3733
3792
|
target: "_blank"
|
|
3734
|
-
},
|
|
3793
|
+
}, H({
|
|
3735
3794
|
default: r(() => [
|
|
3736
|
-
a(
|
|
3795
|
+
a(Oo, {
|
|
3737
3796
|
"min-height": e.minHeight,
|
|
3738
3797
|
width: "100%"
|
|
3739
3798
|
}, {
|
|
3740
3799
|
default: r(() => [
|
|
3741
|
-
|
|
3800
|
+
D(e.$slots, "default")
|
|
3742
3801
|
]),
|
|
3743
3802
|
_: 3
|
|
3744
3803
|
}, 8, ["min-height"]),
|
|
3745
|
-
e.caption ? (d(), L("div",
|
|
3804
|
+
e.caption ? (d(), L("div", Bs, C(e.caption), 1)) : S("", !0)
|
|
3746
3805
|
]),
|
|
3747
3806
|
_: 2
|
|
3748
3807
|
}, [
|
|
3749
3808
|
e.$slots.prepend ? {
|
|
3750
3809
|
name: "prepend",
|
|
3751
3810
|
fn: r(() => [
|
|
3752
|
-
|
|
3811
|
+
D(e.$slots, "prepend")
|
|
3753
3812
|
]),
|
|
3754
3813
|
key: "0"
|
|
3755
3814
|
} : void 0,
|
|
3756
3815
|
e.$slots.image ? {
|
|
3757
3816
|
name: "image",
|
|
3758
3817
|
fn: r(() => [
|
|
3759
|
-
|
|
3818
|
+
D(e.$slots, "image")
|
|
3760
3819
|
]),
|
|
3761
3820
|
key: "1"
|
|
3762
3821
|
} : void 0
|
|
3763
3822
|
]), 1024));
|
|
3764
3823
|
}
|
|
3765
3824
|
}), et = W("promotions", () => {
|
|
3766
|
-
const c = ie(), e =
|
|
3767
|
-
|
|
3825
|
+
const c = ie(), e = O([]), n = O([]), i = O(), s = B(!1), o = B(!1), l = w(() => e.value.filter((p) => p.metadata.discoverable));
|
|
3826
|
+
Ye(f);
|
|
3768
3827
|
function m(p) {
|
|
3769
|
-
|
|
3828
|
+
const v = p.filter((V) => V.metadata.active);
|
|
3829
|
+
return v[Math.floor(Math.random() * v.length)];
|
|
3770
3830
|
}
|
|
3771
3831
|
async function f() {
|
|
3772
3832
|
try {
|
|
@@ -3775,7 +3835,7 @@ const Ke = W("settings", () => {
|
|
|
3775
3835
|
e.value = p.promotions;
|
|
3776
3836
|
} catch {
|
|
3777
3837
|
} finally {
|
|
3778
|
-
s.value = !1,
|
|
3838
|
+
s.value = !1, o.value = !0;
|
|
3779
3839
|
}
|
|
3780
3840
|
return e.value;
|
|
3781
3841
|
}
|
|
@@ -3802,14 +3862,14 @@ const Ke = W("settings", () => {
|
|
|
3802
3862
|
s.value = !1;
|
|
3803
3863
|
}
|
|
3804
3864
|
}
|
|
3805
|
-
async function
|
|
3865
|
+
async function k(p, v) {
|
|
3806
3866
|
try {
|
|
3807
3867
|
s.value = !0;
|
|
3808
|
-
const
|
|
3868
|
+
const V = await c.form(
|
|
3809
3869
|
`/one/admin/promotions/${p}`,
|
|
3810
3870
|
v
|
|
3811
3871
|
);
|
|
3812
|
-
return i.value =
|
|
3872
|
+
return i.value = V.promotion, V.promotion;
|
|
3813
3873
|
} catch {
|
|
3814
3874
|
} finally {
|
|
3815
3875
|
s.value = !1;
|
|
@@ -3821,7 +3881,7 @@ const Ke = W("settings", () => {
|
|
|
3821
3881
|
try {
|
|
3822
3882
|
s.value = !0;
|
|
3823
3883
|
const p = await c.get("/one/admin/promotions");
|
|
3824
|
-
|
|
3884
|
+
n.value = p.promotions;
|
|
3825
3885
|
} catch {
|
|
3826
3886
|
} finally {
|
|
3827
3887
|
s.value = !1;
|
|
@@ -3830,9 +3890,9 @@ const Ke = W("settings", () => {
|
|
|
3830
3890
|
}
|
|
3831
3891
|
return {
|
|
3832
3892
|
all: e,
|
|
3833
|
-
aall:
|
|
3893
|
+
aall: n,
|
|
3834
3894
|
isLoading: s,
|
|
3835
|
-
hasLoaded:
|
|
3895
|
+
hasLoaded: o,
|
|
3836
3896
|
discoverable: l,
|
|
3837
3897
|
record: i,
|
|
3838
3898
|
admin: y,
|
|
@@ -3841,7 +3901,7 @@ const Ke = W("settings", () => {
|
|
|
3841
3901
|
random: m,
|
|
3842
3902
|
show: u,
|
|
3843
3903
|
store: h,
|
|
3844
|
-
update:
|
|
3904
|
+
update: k
|
|
3845
3905
|
};
|
|
3846
3906
|
}), Ns = /* @__PURE__ */ $({
|
|
3847
3907
|
__name: "VoPromotionsCardHighlight",
|
|
@@ -3849,37 +3909,37 @@ const Ke = W("settings", () => {
|
|
|
3849
3909
|
slug: {}
|
|
3850
3910
|
},
|
|
3851
3911
|
setup(c) {
|
|
3852
|
-
const e = c,
|
|
3853
|
-
if (
|
|
3854
|
-
return
|
|
3912
|
+
const e = c, n = et(), i = Te(), s = T(), o = w(() => {
|
|
3913
|
+
if (n.record)
|
|
3914
|
+
return n.record;
|
|
3855
3915
|
if (!s.disableAds)
|
|
3856
|
-
return e.slug ?
|
|
3916
|
+
return e.slug ? n.all.find((f) => f.slug === e.slug) : n.random(n.all);
|
|
3857
3917
|
}), l = w(() => {
|
|
3858
3918
|
var u, h;
|
|
3859
3919
|
const f = i.current.value.dark ? "logodark" : "logolight";
|
|
3860
|
-
return (h = (u =
|
|
3920
|
+
return (h = (u = o.value) == null ? void 0 : u.metadata.images[f]) == null ? void 0 : h.url;
|
|
3861
3921
|
}), m = w(() => {
|
|
3862
3922
|
var u, h;
|
|
3863
3923
|
const f = i.current.value.dark ? "bgdark" : "bglight";
|
|
3864
|
-
return (h = (u =
|
|
3924
|
+
return (h = (u = o.value) == null ? void 0 : u.metadata.images[f]) == null ? void 0 : h.url;
|
|
3865
3925
|
});
|
|
3866
3926
|
return (f, u) => {
|
|
3867
|
-
var
|
|
3868
|
-
const h =
|
|
3869
|
-
return t(
|
|
3927
|
+
var k, g, y;
|
|
3928
|
+
const h = wt;
|
|
3929
|
+
return t(o) || !t(n).hasLoaded ? (d(), _(h, {
|
|
3870
3930
|
key: 0,
|
|
3871
3931
|
class: "mb-4",
|
|
3872
|
-
color: ((
|
|
3932
|
+
color: ((k = t(o)) == null ? void 0 : k.metadata.color) ?? "surface",
|
|
3873
3933
|
height: "60",
|
|
3874
|
-
href: (g = t(
|
|
3934
|
+
href: (g = t(o)) == null ? void 0 : g.metadata.url,
|
|
3875
3935
|
image: t(m),
|
|
3876
3936
|
"max-width": "720",
|
|
3877
3937
|
"prepend-avatar": t(l),
|
|
3878
|
-
title: (y = t(
|
|
3938
|
+
title: (y = t(o)) == null ? void 0 : y.metadata.short_text,
|
|
3879
3939
|
width: "100%"
|
|
3880
|
-
},
|
|
3940
|
+
}, H({
|
|
3881
3941
|
default: r(() => [
|
|
3882
|
-
t(
|
|
3942
|
+
t(n).hasLoaded ? S("", !0) : (d(), _(be, {
|
|
3883
3943
|
key: 0,
|
|
3884
3944
|
class: "flex-1-0 overflow-hidden",
|
|
3885
3945
|
color: "transparent",
|
|
@@ -3890,66 +3950,68 @@ const Ke = W("settings", () => {
|
|
|
3890
3950
|
]),
|
|
3891
3951
|
_: 2
|
|
3892
3952
|
}, [
|
|
3893
|
-
t(
|
|
3953
|
+
t(o) ? {
|
|
3894
3954
|
name: "prepend",
|
|
3895
3955
|
fn: r(() => [
|
|
3896
|
-
a(
|
|
3956
|
+
a(Y, {
|
|
3897
3957
|
class: "my-n4 me-4",
|
|
3958
|
+
icon: "$vuetify",
|
|
3898
3959
|
size: "36"
|
|
3899
3960
|
})
|
|
3900
3961
|
]),
|
|
3901
3962
|
key: "0"
|
|
3902
3963
|
} : void 0,
|
|
3903
|
-
t(
|
|
3964
|
+
t(o) ? {
|
|
3904
3965
|
name: "image",
|
|
3905
3966
|
fn: r(() => [
|
|
3906
|
-
a(
|
|
3967
|
+
a(Z, { position: "right" })
|
|
3907
3968
|
]),
|
|
3908
3969
|
key: "1"
|
|
3909
3970
|
} : void 0
|
|
3910
3971
|
]), 1032, ["color", "href", "image", "prepend-avatar", "title"])) : S("", !0);
|
|
3911
3972
|
};
|
|
3912
3973
|
}
|
|
3913
|
-
}), Us = { class: "d-flex ga-4" },
|
|
3974
|
+
}), Us = { class: "d-flex ga-4" }, zs = { class: "d-flex align-start ga-4" }, Ts = { class: "text-caption on-surface-light" }, Fs = /* @__PURE__ */ $({
|
|
3914
3975
|
__name: "VoPromotionsCardVuetify",
|
|
3915
3976
|
props: {
|
|
3916
3977
|
slug: {}
|
|
3917
3978
|
},
|
|
3918
3979
|
setup(c) {
|
|
3919
|
-
const e = c,
|
|
3920
|
-
if (
|
|
3921
|
-
return
|
|
3980
|
+
const e = c, n = et(), i = T(), s = w(() => {
|
|
3981
|
+
if (n.record)
|
|
3982
|
+
return n.record;
|
|
3922
3983
|
if (!(i.disableAds && !i.showHouseAds))
|
|
3923
|
-
return e.slug ?
|
|
3984
|
+
return e.slug ? n.all.find((o) => o.slug === e.slug) : n.random(n.all);
|
|
3924
3985
|
});
|
|
3925
|
-
return (
|
|
3986
|
+
return (o, l) => {
|
|
3926
3987
|
var f, u;
|
|
3927
|
-
const m =
|
|
3928
|
-
return t(s) || !t(
|
|
3988
|
+
const m = wt;
|
|
3989
|
+
return t(s) || !t(n).hasLoaded ? (d(), _(m, {
|
|
3929
3990
|
key: 0,
|
|
3930
3991
|
border: "",
|
|
3992
|
+
caption: "ads via vuetify",
|
|
3931
3993
|
class: "pa-2 mb-4",
|
|
3932
3994
|
href: (u = (f = t(s)) == null ? void 0 : f.metadata) == null ? void 0 : u.url,
|
|
3933
3995
|
width: "360"
|
|
3934
3996
|
}, {
|
|
3935
3997
|
default: r(() => {
|
|
3936
|
-
var h,
|
|
3998
|
+
var h, k, g;
|
|
3937
3999
|
return [
|
|
3938
4000
|
b("div", Us, [
|
|
3939
|
-
t(
|
|
3940
|
-
a(
|
|
4001
|
+
t(n).hasLoaded ? t(s) ? (d(), L(z, { key: 1 }, [
|
|
4002
|
+
a(Z, {
|
|
3941
4003
|
cover: "",
|
|
3942
4004
|
height: "100",
|
|
3943
4005
|
"max-width": "130",
|
|
3944
4006
|
position: "right",
|
|
3945
4007
|
rounded: "s",
|
|
3946
|
-
src: (
|
|
4008
|
+
src: (k = (h = t(s).metadata) == null ? void 0 : h.images.default) == null ? void 0 : k.url,
|
|
3947
4009
|
width: "100%"
|
|
3948
4010
|
}, null, 8, ["src"]),
|
|
3949
|
-
b("div",
|
|
3950
|
-
b("div",
|
|
4011
|
+
b("div", zs, [
|
|
4012
|
+
b("div", Ts, C((g = t(s).metadata) == null ? void 0 : g.text), 1)
|
|
3951
4013
|
])
|
|
3952
|
-
], 64)) : S("", !0) : (d(), L(
|
|
4014
|
+
], 64)) : S("", !0) : (d(), L(z, { key: 0 }, [
|
|
3953
4015
|
a(be, {
|
|
3954
4016
|
class: "flex-1-0 overflow-hidden",
|
|
3955
4017
|
color: "transparent",
|
|
@@ -3973,33 +4035,33 @@ const Ke = W("settings", () => {
|
|
|
3973
4035
|
}, 8, ["href"])) : S("", !0);
|
|
3974
4036
|
};
|
|
3975
4037
|
}
|
|
3976
|
-
}),
|
|
4038
|
+
}), js = ["href"], Ms = /* @__PURE__ */ $({
|
|
3977
4039
|
__name: "VoPromotionsFooter",
|
|
3978
4040
|
props: {
|
|
3979
4041
|
slug: {}
|
|
3980
4042
|
},
|
|
3981
4043
|
setup(c) {
|
|
3982
|
-
const e = c,
|
|
3983
|
-
if (
|
|
3984
|
-
return
|
|
4044
|
+
const e = c, n = et(), i = T(), s = Te(), o = w(() => {
|
|
4045
|
+
if (n.record)
|
|
4046
|
+
return n.record;
|
|
3985
4047
|
if (!i.disableAds)
|
|
3986
|
-
return e.slug ?
|
|
4048
|
+
return e.slug ? n.all.find((f) => f.slug === e.slug) : n.random(n.all);
|
|
3987
4049
|
}), l = w(() => {
|
|
3988
4050
|
var u, h;
|
|
3989
4051
|
const f = s.current.value.dark ? "logodark" : "logolight";
|
|
3990
|
-
return (h = (u =
|
|
4052
|
+
return (h = (u = o.value) == null ? void 0 : u.metadata.images[f]) == null ? void 0 : h.url;
|
|
3991
4053
|
}), m = w(() => {
|
|
3992
4054
|
var u, h;
|
|
3993
4055
|
const f = s.current.value.dark ? "bgdark" : "bglight";
|
|
3994
|
-
return (h = (u =
|
|
4056
|
+
return (h = (u = o.value) == null ? void 0 : u.metadata.images[f]) == null ? void 0 : h.url;
|
|
3995
4057
|
});
|
|
3996
|
-
return
|
|
3997
|
-
e.slug && await
|
|
4058
|
+
return Ye(async () => {
|
|
4059
|
+
e.slug && await n.show(e.slug);
|
|
3998
4060
|
}), (f, u) => {
|
|
3999
|
-
var
|
|
4000
|
-
const h =
|
|
4061
|
+
var k;
|
|
4062
|
+
const h = xt;
|
|
4001
4063
|
return d(), _(h, {
|
|
4002
|
-
color: ((
|
|
4064
|
+
color: ((k = t(o)) == null ? void 0 : k.metadata.color) ?? "surface",
|
|
4003
4065
|
image: t(m),
|
|
4004
4066
|
style: { transform: "translateY(0)" }
|
|
4005
4067
|
}, {
|
|
@@ -4008,17 +4070,19 @@ const Ke = W("settings", () => {
|
|
|
4008
4070
|
return [
|
|
4009
4071
|
b("a", {
|
|
4010
4072
|
class: "d-flex align-center text-decoration-none py-2 px-4 ms-n4 flex-1-0 me-n4 position-relative",
|
|
4011
|
-
href: (g = t(
|
|
4073
|
+
href: (g = t(o)) == null ? void 0 : g.metadata.url,
|
|
4012
4074
|
rel: "noopener noreferrer",
|
|
4075
|
+
style: { color: "inherit" },
|
|
4013
4076
|
target: "_blank"
|
|
4014
4077
|
}, [
|
|
4015
|
-
a(
|
|
4078
|
+
a(Y, {
|
|
4016
4079
|
class: "me-4",
|
|
4080
|
+
icon: "$vuetify",
|
|
4017
4081
|
image: t(l),
|
|
4018
4082
|
size: "24"
|
|
4019
4083
|
}, null, 8, ["image"]),
|
|
4020
|
-
b("div", null, C((y = t(
|
|
4021
|
-
(p = t(
|
|
4084
|
+
b("div", null, C((y = t(o)) == null ? void 0 : y.metadata.text), 1),
|
|
4085
|
+
(p = t(o)) != null && p.metadata.advertisement ? (d(), _(te, {
|
|
4022
4086
|
key: 0,
|
|
4023
4087
|
class: "ms-auto me-n4 align-self-end mb-n2 py-1 ps-3",
|
|
4024
4088
|
rounded: "0 ts-lg",
|
|
@@ -4026,14 +4090,14 @@ const Ke = W("settings", () => {
|
|
|
4026
4090
|
text: "SPONSORED",
|
|
4027
4091
|
variant: "flat"
|
|
4028
4092
|
})) : S("", !0)
|
|
4029
|
-
], 8,
|
|
4093
|
+
], 8, js)
|
|
4030
4094
|
];
|
|
4031
4095
|
}),
|
|
4032
4096
|
_: 1
|
|
4033
4097
|
}, 8, ["color", "image"]);
|
|
4034
4098
|
};
|
|
4035
4099
|
}
|
|
4036
|
-
}),
|
|
4100
|
+
}), Ps = ["id"], Hs = /* @__PURE__ */ $({
|
|
4037
4101
|
__name: "VoScript",
|
|
4038
4102
|
props: {
|
|
4039
4103
|
id: {
|
|
@@ -4051,24 +4115,24 @@ const Ke = W("settings", () => {
|
|
|
4051
4115
|
},
|
|
4052
4116
|
emits: ["script:error", "script:load"],
|
|
4053
4117
|
setup(c, { emit: e }) {
|
|
4054
|
-
const
|
|
4055
|
-
return
|
|
4118
|
+
const n = c, i = e, s = O(), o = O();
|
|
4119
|
+
return Ye(async () => {
|
|
4056
4120
|
const l = document.createElement("script"), m = () => i("script:error");
|
|
4057
|
-
l.type = "text/javascript", l.id =
|
|
4058
|
-
}),
|
|
4121
|
+
l.type = "text/javascript", l.id = n.scriptId, l.src = n.src, l.onload = () => i("script:load"), l.onerror = m, o.value = l;
|
|
4122
|
+
}), Qe(() => {
|
|
4059
4123
|
var l;
|
|
4060
|
-
|
|
4061
|
-
}),
|
|
4124
|
+
o.value && ((l = s.value) == null || l.appendChild(o.value));
|
|
4125
|
+
}), Ot(() => {
|
|
4062
4126
|
var l;
|
|
4063
|
-
|
|
4127
|
+
o.value && ((l = s.value) == null || l.removeChild(o.value));
|
|
4064
4128
|
}), (l, m) => (d(), L("div", {
|
|
4065
4129
|
id: c.id,
|
|
4066
4130
|
ref_key: "rootEl",
|
|
4067
4131
|
ref: s
|
|
4068
|
-
}, null, 8,
|
|
4132
|
+
}, null, 8, Ps));
|
|
4069
4133
|
}
|
|
4070
|
-
}),
|
|
4071
|
-
const c = ie(), e =
|
|
4134
|
+
}), Rs = W("spots", () => {
|
|
4135
|
+
const c = ie(), e = Vt(), n = O([]), i = O([]), s = O(), o = B(!1), l = w(() => s.value ? s.value : n.value.find(({
|
|
4072
4136
|
metadata: {
|
|
4073
4137
|
site: y,
|
|
4074
4138
|
active: p
|
|
@@ -4076,28 +4140,28 @@ const Ke = W("settings", () => {
|
|
|
4076
4140
|
}) => p ? y.includes("dev") && !1 || y.includes("*") ? !0 : y.some((v) => e.id.includes(v)) : !1));
|
|
4077
4141
|
async function m() {
|
|
4078
4142
|
try {
|
|
4079
|
-
|
|
4143
|
+
o.value = !0;
|
|
4080
4144
|
const y = await c.get("/one/spots");
|
|
4081
|
-
|
|
4145
|
+
n.value = y.spots;
|
|
4082
4146
|
} catch {
|
|
4083
4147
|
} finally {
|
|
4084
|
-
|
|
4148
|
+
o.value = !1;
|
|
4085
4149
|
}
|
|
4086
|
-
return
|
|
4150
|
+
return n.value;
|
|
4087
4151
|
}
|
|
4088
4152
|
async function f(y) {
|
|
4089
4153
|
try {
|
|
4090
|
-
|
|
4154
|
+
o.value = !0;
|
|
4091
4155
|
const p = await c.get(`/one/admin/spots/${y}`);
|
|
4092
4156
|
return s.value = p.spot, p.spot;
|
|
4093
4157
|
} catch {
|
|
4094
4158
|
} finally {
|
|
4095
|
-
|
|
4159
|
+
o.value = !1;
|
|
4096
4160
|
}
|
|
4097
4161
|
}
|
|
4098
4162
|
async function u(y) {
|
|
4099
4163
|
try {
|
|
4100
|
-
|
|
4164
|
+
o.value = !0;
|
|
4101
4165
|
const p = await c.form(
|
|
4102
4166
|
"/one/admin/spots",
|
|
4103
4167
|
y
|
|
@@ -4105,12 +4169,12 @@ const Ke = W("settings", () => {
|
|
|
4105
4169
|
return s.value = p.spot, p.spot;
|
|
4106
4170
|
} catch {
|
|
4107
4171
|
} finally {
|
|
4108
|
-
|
|
4172
|
+
o.value = !1;
|
|
4109
4173
|
}
|
|
4110
4174
|
}
|
|
4111
4175
|
async function h(y, p) {
|
|
4112
4176
|
try {
|
|
4113
|
-
|
|
4177
|
+
o.value = !0;
|
|
4114
4178
|
const v = await c.form(
|
|
4115
4179
|
`/one/admin/spots/${y}`,
|
|
4116
4180
|
p
|
|
@@ -4118,26 +4182,26 @@ const Ke = W("settings", () => {
|
|
|
4118
4182
|
return s.value = v.spot, v.spot;
|
|
4119
4183
|
} catch {
|
|
4120
4184
|
} finally {
|
|
4121
|
-
|
|
4185
|
+
o.value = !1;
|
|
4122
4186
|
}
|
|
4123
4187
|
}
|
|
4124
|
-
async function
|
|
4188
|
+
async function k() {
|
|
4125
4189
|
}
|
|
4126
4190
|
async function g() {
|
|
4127
4191
|
try {
|
|
4128
|
-
|
|
4192
|
+
o.value = !0;
|
|
4129
4193
|
const y = await c.get("/one/admin/spots");
|
|
4130
4194
|
i.value = y.spots;
|
|
4131
4195
|
} catch {
|
|
4132
4196
|
} finally {
|
|
4133
|
-
|
|
4197
|
+
o.value = !1;
|
|
4134
4198
|
}
|
|
4135
|
-
return
|
|
4199
|
+
return n.value;
|
|
4136
4200
|
}
|
|
4137
4201
|
return {
|
|
4138
|
-
all:
|
|
4202
|
+
all: n,
|
|
4139
4203
|
aall: i,
|
|
4140
|
-
isLoading:
|
|
4204
|
+
isLoading: o,
|
|
4141
4205
|
spot: l,
|
|
4142
4206
|
record: s,
|
|
4143
4207
|
admin: g,
|
|
@@ -4145,13 +4209,13 @@ const Ke = W("settings", () => {
|
|
|
4145
4209
|
show: f,
|
|
4146
4210
|
store: u,
|
|
4147
4211
|
update: h,
|
|
4148
|
-
destroy:
|
|
4212
|
+
destroy: k
|
|
4149
4213
|
};
|
|
4150
|
-
}),
|
|
4214
|
+
}), Es = ["href"], qs = /* @__PURE__ */ $({
|
|
4151
4215
|
__name: "VoSpot",
|
|
4152
4216
|
setup(c) {
|
|
4153
|
-
const e =
|
|
4154
|
-
return (
|
|
4217
|
+
const e = Rs();
|
|
4218
|
+
return (n, i) => {
|
|
4155
4219
|
var s;
|
|
4156
4220
|
return t(e).spot ? (d(), L("a", {
|
|
4157
4221
|
key: 0,
|
|
@@ -4159,20 +4223,20 @@ const Ke = W("settings", () => {
|
|
|
4159
4223
|
rel: "noopener noreferrer sponsored",
|
|
4160
4224
|
target: "_blank"
|
|
4161
4225
|
}, [
|
|
4162
|
-
a(
|
|
4226
|
+
a(Z, {
|
|
4163
4227
|
class: "mx-auto",
|
|
4164
4228
|
color: t(e).spot.metadata.image ? void 0 : "surface",
|
|
4165
4229
|
rounded: "",
|
|
4166
4230
|
src: (s = t(e).spot.metadata.image) == null ? void 0 : s.url,
|
|
4167
4231
|
width: "225"
|
|
4168
4232
|
}, null, 8, ["color", "src"])
|
|
4169
|
-
], 8,
|
|
4233
|
+
], 8, Es)) : S("", !0);
|
|
4170
4234
|
};
|
|
4171
4235
|
}
|
|
4172
|
-
}),
|
|
4173
|
-
const c = M(), e = ie(),
|
|
4236
|
+
}), Ba = W("bins", () => {
|
|
4237
|
+
const c = M(), e = ie(), n = O([]), i = O(), s = B(!1), o = B(-1), l = w(() => !c.user || !i.value ? !1 : c.user.id === i.value.owner.id), m = w(() => n.value.filter((v) => v.favorite)), f = w(() => n.value.filter((v) => v.pinned));
|
|
4174
4238
|
U(i, () => {
|
|
4175
|
-
window.clearTimeout(
|
|
4239
|
+
window.clearTimeout(o.value), o.value = window.setTimeout(() => {
|
|
4176
4240
|
!i.value || !l.value || g(i.value, i.value.id);
|
|
4177
4241
|
}, 100);
|
|
4178
4242
|
}, { deep: !0 });
|
|
@@ -4180,48 +4244,48 @@ const Ke = W("settings", () => {
|
|
|
4180
4244
|
try {
|
|
4181
4245
|
s.value = !0;
|
|
4182
4246
|
const v = await e.get("/one/bins");
|
|
4183
|
-
|
|
4247
|
+
n.value = v.bins;
|
|
4184
4248
|
} catch {
|
|
4185
4249
|
} finally {
|
|
4186
4250
|
s.value = !1;
|
|
4187
4251
|
}
|
|
4188
|
-
return
|
|
4252
|
+
return n.value;
|
|
4189
4253
|
}
|
|
4190
4254
|
async function h(v) {
|
|
4191
4255
|
try {
|
|
4192
|
-
s.value = !0, await e.delete(`/one/bins/${v}`),
|
|
4256
|
+
s.value = !0, await e.delete(`/one/bins/${v}`), n.value = n.value.filter((V) => V.id !== v);
|
|
4193
4257
|
} catch {
|
|
4194
4258
|
} finally {
|
|
4195
4259
|
s.value = !1;
|
|
4196
4260
|
}
|
|
4197
4261
|
return !0;
|
|
4198
4262
|
}
|
|
4199
|
-
async function
|
|
4263
|
+
async function k(v) {
|
|
4200
4264
|
try {
|
|
4201
4265
|
s.value = !0;
|
|
4202
|
-
const
|
|
4203
|
-
return
|
|
4266
|
+
const V = await e.post("/one/bins", { bin: v });
|
|
4267
|
+
return n.value.push(V.bin), i.value = V.bin, V;
|
|
4204
4268
|
} catch {
|
|
4205
4269
|
} finally {
|
|
4206
4270
|
s.value = !1;
|
|
4207
4271
|
}
|
|
4208
4272
|
return { bin: v };
|
|
4209
4273
|
}
|
|
4210
|
-
async function g(v,
|
|
4274
|
+
async function g(v, V) {
|
|
4211
4275
|
try {
|
|
4212
4276
|
s.value = !0;
|
|
4213
|
-
const N = await e.post(`/one/bins/${
|
|
4214
|
-
|
|
4277
|
+
const N = await e.post(`/one/bins/${V}`, { bin: v }), j = n.value.findIndex((re) => re.id === V);
|
|
4278
|
+
n.value.splice(j, 1, N.bin);
|
|
4215
4279
|
} catch {
|
|
4216
4280
|
} finally {
|
|
4217
4281
|
s.value = !1;
|
|
4218
4282
|
}
|
|
4219
4283
|
return { bin: v };
|
|
4220
4284
|
}
|
|
4221
|
-
async function y(v,
|
|
4285
|
+
async function y(v, V) {
|
|
4222
4286
|
try {
|
|
4223
4287
|
s.value = !0;
|
|
4224
|
-
const N =
|
|
4288
|
+
const N = V ? await g(v, V) : await k(v);
|
|
4225
4289
|
i.value = N.bin;
|
|
4226
4290
|
} catch {
|
|
4227
4291
|
} finally {
|
|
@@ -4232,8 +4296,8 @@ const Ke = W("settings", () => {
|
|
|
4232
4296
|
async function p(v) {
|
|
4233
4297
|
try {
|
|
4234
4298
|
s.value = !0;
|
|
4235
|
-
const
|
|
4236
|
-
i.value =
|
|
4299
|
+
const V = await e.get(`/one/bins/${v}`);
|
|
4300
|
+
i.value = V.bin;
|
|
4237
4301
|
} catch {
|
|
4238
4302
|
} finally {
|
|
4239
4303
|
s.value = !1;
|
|
@@ -4245,8 +4309,8 @@ const Ke = W("settings", () => {
|
|
|
4245
4309
|
isOwner: l,
|
|
4246
4310
|
pinned: f,
|
|
4247
4311
|
favorites: m,
|
|
4248
|
-
all:
|
|
4249
|
-
create:
|
|
4312
|
+
all: n,
|
|
4313
|
+
create: k,
|
|
4250
4314
|
delete: h,
|
|
4251
4315
|
current: i,
|
|
4252
4316
|
find: p,
|
|
@@ -4255,50 +4319,50 @@ const Ke = W("settings", () => {
|
|
|
4255
4319
|
updateOrCreate: y
|
|
4256
4320
|
};
|
|
4257
4321
|
}), Na = W("products", () => {
|
|
4258
|
-
const c = ie(), e =
|
|
4322
|
+
const c = ie(), e = O([]), n = w(() => e.value.filter((o) => o.product_type === "Themes"));
|
|
4259
4323
|
async function i() {
|
|
4260
4324
|
if (e.value.length)
|
|
4261
4325
|
return e.value;
|
|
4262
4326
|
try {
|
|
4263
|
-
const
|
|
4264
|
-
e.value =
|
|
4327
|
+
const o = await c.get("/one/shopify/products");
|
|
4328
|
+
e.value = o.products;
|
|
4265
4329
|
} catch {
|
|
4266
4330
|
}
|
|
4267
4331
|
return e.value;
|
|
4268
4332
|
}
|
|
4269
|
-
function s(
|
|
4270
|
-
return
|
|
4333
|
+
function s(o) {
|
|
4334
|
+
return o.slice().sort(() => Math.random() - 0.5);
|
|
4271
4335
|
}
|
|
4272
4336
|
return {
|
|
4273
4337
|
all: e,
|
|
4274
|
-
themes:
|
|
4338
|
+
themes: n,
|
|
4275
4339
|
index: i,
|
|
4276
4340
|
randomize: s
|
|
4277
4341
|
};
|
|
4278
4342
|
});
|
|
4279
4343
|
function Ua() {
|
|
4280
4344
|
function c(e) {
|
|
4281
|
-
e.component("VoAuthBtn",
|
|
4345
|
+
e.component("VoAppBar", $s), e.component("VoAuthBtn", kt), e.component("VoAuthCard", _t), e.component("VoAuthDialog", gt), e.component("VoAuthListItem", yt), e.component("VoSocialFooter", Ds), e.component("VoNotificationsBanner", Os), e.component("VoPromotionsCardHighlight", Ns), e.component("VoPromotionsCardVuetify", Fs), e.component("VoPromotionsFooter", Ms), e.component("VoScript", Hs), e.component("VoSpot", qs);
|
|
4282
4346
|
}
|
|
4283
4347
|
return { install: c };
|
|
4284
4348
|
}
|
|
4285
|
-
function
|
|
4286
|
-
return function(
|
|
4287
|
-
const i =
|
|
4349
|
+
function za(c, e) {
|
|
4350
|
+
return function(n) {
|
|
4351
|
+
const i = n.store;
|
|
4288
4352
|
i.url = e, i.$id === "site" && (i.id = c);
|
|
4289
4353
|
};
|
|
4290
4354
|
}
|
|
4291
4355
|
export {
|
|
4292
4356
|
Ua as createOne,
|
|
4293
|
-
|
|
4357
|
+
za as one,
|
|
4294
4358
|
M as useAuthStore,
|
|
4295
|
-
|
|
4296
|
-
|
|
4359
|
+
Re as useBannersStore,
|
|
4360
|
+
Ba as useBinsStore,
|
|
4297
4361
|
ie as useHttpStore,
|
|
4298
4362
|
P as useOneStore,
|
|
4299
4363
|
Na as useProductsStore,
|
|
4300
4364
|
et as usePromotionsStore,
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4365
|
+
Pe as useSettingsStore,
|
|
4366
|
+
Rs as useSpotsStore,
|
|
4367
|
+
T as useUserStore
|
|
4304
4368
|
};
|