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