@vuetify/one 1.3.0 → 1.3.1
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 +43 -8
- package/dist/index.js +1191 -1085
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { useRouter as Ie, useRoute as
|
|
3
|
-
import { defineStore as
|
|
1
|
+
import { reactive as yt, watch as U, toRefs as bt, ref as N, shallowRef as A, computed as S, defineComponent as $, openBlock as c, createBlock as h, unref as a, createSlots as W, withCtx as r, createElementVNode as g, toDisplayString as C, createVNode as t, createTextVNode as B, renderSlot as P, normalizeStyle as Ye, createCommentVNode as w, withModifiers as Re, mergeModels as Je, useModel as ie, createElementBlock as L, Fragment as T, onMounted as Xe, nextTick as ce, renderList as te, mergeProps as R, resolveComponent as He, pushScopeId as Vt, popScopeId as kt, withDirectives as Le, vShow as Ee, normalizeClass as $t } from "vue";
|
|
2
|
+
import { useRouter as Ie, useRoute as xt } from "vue-router";
|
|
3
|
+
import { defineStore as Z } from "pinia";
|
|
4
4
|
import { merge as Fe } from "lodash-es";
|
|
5
|
-
import { mdiDiscord as We, mdiGithub as qe, mdiSync as
|
|
6
|
-
import { VListItem as
|
|
5
|
+
import { mdiDiscord as We, mdiGithub as qe, mdiSync as wt, mdiSyncOff as St, mdiLogoutVariant as Ct, mdiFullscreenExit as Lt, mdiFullscreen as It, mdiCheck as De, mdiHome as Dt, mdiTextBox as At, mdiSelect as Ot, mdiSpaceInvaders as Ke, mdiImageFilterHdr as et, mdiRocketLaunchOutline as tt, mdiWhiteBalanceSunny as Ut, mdiWeatherNight as Bt, mdiDesktopTowerMonitor as Nt, mdiContrastCircle as Tt, mdiCog as zt, mdiCogOutline as Ft, mdiFileDocument as jt, mdiCreditCardSettingsOutline as Mt, mdiRocketOutline as Pt, mdiCheckCircleOutline as Ce, mdiCreditCard as Rt, mdiReload as Ht, mdiPlaylistCheck as Et, mdiCreditCardOutline as Wt, mdiMedal as qt, mdiOpenInNew as Ae, mdiHandHeart as Gt, mdiHandHeartOutline as Zt, mdiShieldStarOutline as Qt, mdiReddit as Yt, mdiEmailOpenOutline as ot, mdiEmailVariant as nt, mdiBell as Jt, mdiInboxOutline as Xt, mdiInboxFullOutline as Kt, mdiBillboard as eo, mdiBellOutline as to, mdiViewDashboardOutline as oo, mdiSpider as no, mdiCrown as so, mdiArrowULeftBottom as ao, mdiLogin as io } from "@mdi/js";
|
|
6
|
+
import { VListItem as ge, VList as oe, VListItemTitle as st, VListItemSubtitle as ro } from "vuetify/lib/components/VList/index.mjs";
|
|
7
7
|
import { VAvatar as ne } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
8
|
-
import { VCard as H, VCardTitle as
|
|
8
|
+
import { VCard as H, VCardTitle as lo, VCardSubtitle as uo, VCardText as ve } from "vuetify/lib/components/VCard/index.mjs";
|
|
9
9
|
import { VDialog as at } from "vuetify/lib/components/VDialog/index.mjs";
|
|
10
10
|
import { VBadge as Ge } from "vuetify/lib/components/VBadge/index.mjs";
|
|
11
11
|
import { VBtn as E } from "vuetify/lib/components/VBtn/index.mjs";
|
|
12
|
-
import { VProgressCircular as
|
|
12
|
+
import { VProgressCircular as co } from "vuetify/lib/components/VProgressCircular/index.mjs";
|
|
13
13
|
import { VSheet as _e } from "vuetify/lib/components/VSheet/index.mjs";
|
|
14
14
|
import { VSwitch as it } from "vuetify/lib/components/VSwitch/index.mjs";
|
|
15
|
-
import { VFadeTransition as Oe, VExpandTransition as
|
|
16
|
-
import { useDisplay as re, useTheme as
|
|
17
|
-
import { VDivider as
|
|
15
|
+
import { VFadeTransition as Oe, VExpandTransition as ye, VExpandXTransition as po } from "vuetify/lib/components/transitions/index.mjs";
|
|
16
|
+
import { useDisplay as re, useTheme as mo, useDate as Ue } from "vuetify";
|
|
17
|
+
import { VDivider as G } 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 Me } from "vuetify/lib/components/VLabel/index.mjs";
|
|
20
20
|
import { VChip as ee } from "vuetify/lib/components/VChip/index.mjs";
|
|
21
|
-
import { VChipGroup as
|
|
22
|
-
import { VSelect as
|
|
23
|
-
import { VRow as ue, VCol as
|
|
21
|
+
import { VChipGroup as fo } from "vuetify/lib/components/VChipGroup/index.mjs";
|
|
22
|
+
import { VSelect as vo } from "vuetify/lib/components/VSelect/index.mjs";
|
|
23
|
+
import { VRow as ue, VCol as J, VContainer as Ze } from "vuetify/lib/components/VGrid/index.mjs";
|
|
24
24
|
import { VHover as Be } from "vuetify/lib/components/VHover/index.mjs";
|
|
25
|
-
import { VImg as
|
|
25
|
+
import { VImg as se } from "vuetify/lib/components/VImg/index.mjs";
|
|
26
26
|
import { VItemGroup as rt, VItem as Pe } from "vuetify/lib/components/VItemGroup/index.mjs";
|
|
27
|
-
import { VLayout as
|
|
28
|
-
import { VMain as
|
|
29
|
-
import { VDataTableVirtual as
|
|
27
|
+
import { VLayout as be } from "vuetify/lib/components/VLayout/index.mjs";
|
|
28
|
+
import { VMain as Ve } from "vuetify/lib/components/VMain/index.mjs";
|
|
29
|
+
import { VDataTableVirtual as ho } from "vuetify/lib/components/VDataTable/index.mjs";
|
|
30
30
|
import { VSkeletonLoader as Qe } from "vuetify/lib/components/VSkeletonLoader/index.mjs";
|
|
31
|
-
import { VWindow as lt, VWindowItem as
|
|
32
|
-
import { VTimelineItem as _o, VTimeline as
|
|
33
|
-
import { VFooter as
|
|
34
|
-
import { VTooltip as
|
|
35
|
-
import { VResponsive as
|
|
36
|
-
import { VNavigationDrawer as
|
|
37
|
-
import { Ripple as
|
|
38
|
-
import { VColorPicker as
|
|
39
|
-
import { VMenu as
|
|
40
|
-
import { VAppBar as
|
|
41
|
-
const
|
|
31
|
+
import { VWindow as lt, VWindowItem as he } from "vuetify/lib/components/VWindow/index.mjs";
|
|
32
|
+
import { VTimelineItem as _o, VTimeline as go } from "vuetify/lib/components/VTimeline/index.mjs";
|
|
33
|
+
import { VFooter as yo } from "vuetify/lib/components/VFooter/index.mjs";
|
|
34
|
+
import { VTooltip as X } from "vuetify/lib/components/VTooltip/index.mjs";
|
|
35
|
+
import { VResponsive as bo } from "vuetify/lib/components/VResponsive/index.mjs";
|
|
36
|
+
import { VNavigationDrawer as Vo } from "vuetify/lib/components/VNavigationDrawer/index.mjs";
|
|
37
|
+
import { Ripple as ko } from "vuetify/lib/directives/index.mjs";
|
|
38
|
+
import { VColorPicker as $o } from "vuetify/lib/components/VColorPicker/index.mjs";
|
|
39
|
+
import { VMenu as xo } from "vuetify/components";
|
|
40
|
+
import { VAppBar as wo } from "vuetify/lib/components/VAppBar/index.mjs";
|
|
41
|
+
const de = Z("http", {
|
|
42
42
|
state: () => ({
|
|
43
43
|
url: ""
|
|
44
44
|
}),
|
|
@@ -115,15 +115,15 @@ const Ve = X("http", {
|
|
|
115
115
|
jobs: null
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
},
|
|
119
|
-
const u =
|
|
120
|
-
|
|
118
|
+
}, F = Z("user", () => {
|
|
119
|
+
const u = yt(Fe({}, Se));
|
|
120
|
+
U(u, o);
|
|
121
121
|
function e() {
|
|
122
122
|
if (!je)
|
|
123
123
|
return;
|
|
124
|
-
const
|
|
125
|
-
let l =
|
|
126
|
-
|
|
124
|
+
const s = localStorage.getItem("vuetify@user"), i = s ? JSON.parse(s) : {};
|
|
125
|
+
let l = i.v === u.v;
|
|
126
|
+
i.v || (i.pwaRefresh = !0, typeof i.api == "boolean" && (i.api = i.api ? "inline" : "link-only"), typeof i.rtl == "boolean" && (i.direction = i.rtl ? "rtl" : "ltr", delete i.rtl), typeof i.theme == "object" && (i.mixedTheme = i.theme.mixed, i.theme = i.theme.system ? "system" : i.theme.dark ? "dark" : "light"), Array.isArray(i.notifications) && (i.notifications = { read: i.notifications }), typeof i.last == "object" && (i.notifications.last = i.last, delete i.last)), i.v === 1 && (Array.isArray(i.composition) && (i.composition = "composition"), Array.isArray(i.notifications.last.banner) || (i.notifications = i.notifications || {}, i.notifications.last = i.notifications.last || {}, i.notifications.last.banner = [])), i.v === 2 && (i.syncSettings = !0, i.disableAds = !1, i.v = 3), i.v === 3 && (i.quickbar = !1), i.v === 4 && (i.suits = Se.suits, i.notifications.banners = Se.notifications.banners, l = !0), i.v = u.v, Object.assign(u, Fe(u, i)), l && o();
|
|
127
127
|
}
|
|
128
128
|
function o() {
|
|
129
129
|
je && localStorage.setItem("vuetify@user", JSON.stringify(u, null, 2));
|
|
@@ -132,18 +132,18 @@ const Ve = X("http", {
|
|
|
132
132
|
je && (Object.assign(u, Fe({}, Se)), o());
|
|
133
133
|
}
|
|
134
134
|
return e(), {
|
|
135
|
-
...
|
|
135
|
+
...bt(u),
|
|
136
136
|
load: e,
|
|
137
137
|
save: o,
|
|
138
138
|
reset: n
|
|
139
139
|
};
|
|
140
|
-
}),
|
|
141
|
-
const u =
|
|
140
|
+
}), j = Z("auth", () => {
|
|
141
|
+
const u = N(!1), e = N(null), o = de(), n = F(), s = Ie(), i = A(!1), l = S(() => {
|
|
142
142
|
var m, f;
|
|
143
|
-
return !o.url || ((m = e.value) == null ? void 0 : m.isAdmin) || !!((f = e.value) != null && f.sponsorships.some((
|
|
143
|
+
return !o.url || ((m = e.value) == null ? void 0 : m.isAdmin) || !!((f = e.value) != null && f.sponsorships.some((y) => y.isActive));
|
|
144
144
|
});
|
|
145
|
-
let d = !!
|
|
146
|
-
|
|
145
|
+
let d = !!k();
|
|
146
|
+
U(e, (m) => {
|
|
147
147
|
if (!(m != null && m.settings))
|
|
148
148
|
return;
|
|
149
149
|
const f = localStorage.getItem("vuetify@user") || "{}";
|
|
@@ -162,7 +162,7 @@ const Ve = X("http", {
|
|
|
162
162
|
async function p(m = !1) {
|
|
163
163
|
if (p.promise)
|
|
164
164
|
return p.promise;
|
|
165
|
-
|
|
165
|
+
i.value = !0, p.promise = fetch(`${o.url}/auth/verify`, {
|
|
166
166
|
credentials: "include",
|
|
167
167
|
headers: m ? {
|
|
168
168
|
"Cache-Control": "no-cache"
|
|
@@ -174,154 +174,154 @@ const Ve = X("http", {
|
|
|
174
174
|
() => {
|
|
175
175
|
}
|
|
176
176
|
).finally(() => {
|
|
177
|
-
|
|
177
|
+
i.value = !1, p.promise = null;
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
p.promise = null;
|
|
181
|
-
async function
|
|
182
|
-
|
|
183
|
-
const f = `${o.url}/auth/${m}/redirect`,
|
|
181
|
+
async function _(m = "github") {
|
|
182
|
+
i.value = !0;
|
|
183
|
+
const f = `${o.url}/auth/${m}/redirect`, y = 400, O = 600, z = window.screenX + (window.innerWidth - y) / 2, ae = window.screenY + (window.innerHeight - O) / 2, q = window.open(
|
|
184
184
|
"",
|
|
185
185
|
"vuetify:authorize:popup",
|
|
186
|
-
`popup,left=${
|
|
186
|
+
`popup,left=${z},top=${ae},width=${y},height=${O},resizable`
|
|
187
187
|
);
|
|
188
|
-
if (!
|
|
188
|
+
if (!q) {
|
|
189
189
|
console.error("Failed to open popup");
|
|
190
190
|
return;
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
q.location.href = f;
|
|
193
193
|
let xe = -1, we = -1;
|
|
194
|
-
function
|
|
195
|
-
var
|
|
196
|
-
K.origin === o.url && ((
|
|
194
|
+
function fe(K) {
|
|
195
|
+
var b;
|
|
196
|
+
K.origin === o.url && ((b = K.data) == null ? void 0 : b.type) === "auth-response" && (K.data.status === "success" ? (e.value || localStorage.setItem("vuetify@lastLoginProvider", m), e.value = K.data.body.user, s.push({
|
|
197
197
|
path: "/user/dashboard/",
|
|
198
|
-
query:
|
|
198
|
+
query: s.currentRoute.value.query
|
|
199
199
|
}), v()) : console.error(K.data.message), le());
|
|
200
200
|
}
|
|
201
201
|
function le() {
|
|
202
|
-
window.removeEventListener("message",
|
|
202
|
+
window.removeEventListener("message", fe), window.clearInterval(xe), window.clearTimeout(we), q == null || q.close(), i.value = !1;
|
|
203
203
|
}
|
|
204
|
-
window.addEventListener("message",
|
|
205
|
-
!
|
|
204
|
+
window.addEventListener("message", fe), xe = window.setInterval(() => {
|
|
205
|
+
!q || q.closed ? (console.error("Auth popup closed"), le()) : q.postMessage({ type: "auth-request" }, "*");
|
|
206
206
|
}, 1e3), we = window.setTimeout(() => {
|
|
207
207
|
le(), console.error("Auth timed out");
|
|
208
208
|
}, 120 * 1e3);
|
|
209
209
|
}
|
|
210
|
-
async function
|
|
211
|
-
|
|
210
|
+
async function x(m) {
|
|
211
|
+
i.value = !0;
|
|
212
212
|
const f = m ? `/auth/${m}/logout` : "/auth/logout";
|
|
213
213
|
try {
|
|
214
214
|
await o.post(f), await p(!0), e.value = null;
|
|
215
|
-
} catch (
|
|
216
|
-
console.error(
|
|
215
|
+
} catch (y) {
|
|
216
|
+
console.error(y);
|
|
217
217
|
} finally {
|
|
218
|
-
|
|
218
|
+
s.push({
|
|
219
219
|
path: "/",
|
|
220
|
-
query:
|
|
221
|
-
}),
|
|
220
|
+
query: s.currentRoute.value.query
|
|
221
|
+
}), i.value = !1;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function V(m) {
|
|
225
225
|
var f;
|
|
226
|
-
return (f = e.value) == null ? void 0 : f.identities.find((
|
|
226
|
+
return (f = e.value) == null ? void 0 : f.identities.find((y) => y.provider === m);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function k() {
|
|
229
229
|
return localStorage.getItem("vuetify@lastLoginProvider");
|
|
230
230
|
}
|
|
231
231
|
return p(), {
|
|
232
232
|
user: e,
|
|
233
233
|
url: o.url,
|
|
234
234
|
dialog: u,
|
|
235
|
-
isLoading:
|
|
236
|
-
findIdentity:
|
|
235
|
+
isLoading: i,
|
|
236
|
+
findIdentity: V,
|
|
237
237
|
verify: p,
|
|
238
|
-
login:
|
|
239
|
-
logout:
|
|
238
|
+
login: _,
|
|
239
|
+
logout: x,
|
|
240
240
|
isSubscriber: l,
|
|
241
|
-
lastLoginProvider:
|
|
241
|
+
lastLoginProvider: k,
|
|
242
242
|
sync: v
|
|
243
243
|
};
|
|
244
|
-
}),
|
|
244
|
+
}), So = { class: "text-body-2" }, Co = /* @__PURE__ */ g("div", { class: "text-caption mt-n1" }, "Last Used", -1), ut = /* @__PURE__ */ $({
|
|
245
245
|
__name: "VoAuthDiscord",
|
|
246
246
|
setup(u) {
|
|
247
|
-
const e =
|
|
248
|
-
return (
|
|
247
|
+
const e = j(), o = S(() => e.user && e.findIdentity("discord")), n = S(() => e.user ? o.value ? "Connected to Discord" : "Connect Discord" : "Login with Discord");
|
|
248
|
+
return (s, i) => (c(), h(ge, {
|
|
249
249
|
"prepend-icon": `svg:${a(We)}`,
|
|
250
250
|
"base-color": "#5865F2",
|
|
251
251
|
rounded: "pill",
|
|
252
252
|
variant: "flat",
|
|
253
253
|
slim: "",
|
|
254
|
-
onClick:
|
|
255
|
-
},
|
|
256
|
-
title:
|
|
257
|
-
g("span",
|
|
254
|
+
onClick: i[0] || (i[0] = (l) => a(e).login("discord"))
|
|
255
|
+
}, W({
|
|
256
|
+
title: r(() => [
|
|
257
|
+
g("span", So, C(n.value), 1)
|
|
258
258
|
]),
|
|
259
259
|
_: 2
|
|
260
260
|
}, [
|
|
261
261
|
!a(e).user && a(e).lastLoginProvider() === "discord" ? {
|
|
262
262
|
name: "subtitle",
|
|
263
|
-
fn:
|
|
264
|
-
|
|
263
|
+
fn: r(() => [
|
|
264
|
+
Co
|
|
265
265
|
]),
|
|
266
266
|
key: "0"
|
|
267
267
|
} : void 0
|
|
268
268
|
]), 1032, ["prepend-icon"]));
|
|
269
269
|
}
|
|
270
|
-
}),
|
|
270
|
+
}), Lo = { class: "text-body-2" }, Io = /* @__PURE__ */ g("div", { class: "text-caption mt-n1" }, "Last Used", -1), ct = /* @__PURE__ */ $({
|
|
271
271
|
__name: "VoAuthGithub",
|
|
272
272
|
setup(u) {
|
|
273
|
-
const e =
|
|
274
|
-
return (
|
|
273
|
+
const e = j(), o = S(() => e.user && e.findIdentity("github")), n = S(() => e.user ? o.value ? "Connected to GitHub" : "Connect GitHub" : "Login with GitHub");
|
|
274
|
+
return (s, i) => (c(), h(ge, {
|
|
275
275
|
"prepend-icon": `svg:${a(qe)}`,
|
|
276
276
|
"base-color": "#2a2a2a",
|
|
277
277
|
rounded: "pill",
|
|
278
278
|
variant: "flat",
|
|
279
279
|
slim: "",
|
|
280
|
-
onClick:
|
|
281
|
-
},
|
|
282
|
-
title:
|
|
283
|
-
g("span",
|
|
280
|
+
onClick: i[0] || (i[0] = (l) => a(e).login("github"))
|
|
281
|
+
}, W({
|
|
282
|
+
title: r(() => [
|
|
283
|
+
g("span", Lo, C(n.value), 1)
|
|
284
284
|
]),
|
|
285
285
|
_: 2
|
|
286
286
|
}, [
|
|
287
287
|
!a(e).user && a(e).lastLoginProvider() === "github" ? {
|
|
288
288
|
name: "subtitle",
|
|
289
|
-
fn:
|
|
290
|
-
|
|
289
|
+
fn: r(() => [
|
|
290
|
+
Io
|
|
291
291
|
]),
|
|
292
292
|
key: "0"
|
|
293
293
|
} : void 0
|
|
294
294
|
]), 1032, ["prepend-icon"]));
|
|
295
295
|
}
|
|
296
|
-
}),
|
|
296
|
+
}), Do = { class: "text-center" }, Ao = { class: "text-center mb-6" }, Oo = { class: "font-weight-light mb-2" }, Uo = /* @__PURE__ */ g("span", { class: "font-weight-bold" }, "Vuetify One", -1), dt = /* @__PURE__ */ $({
|
|
297
297
|
__name: "VoAuthCard",
|
|
298
298
|
setup(u) {
|
|
299
|
-
const e =
|
|
299
|
+
const e = j();
|
|
300
300
|
return (o, n) => {
|
|
301
|
-
const
|
|
302
|
-
return c(),
|
|
301
|
+
const s = ct, i = ut;
|
|
302
|
+
return c(), h(H, {
|
|
303
303
|
class: "pt-6 pb-8 px-4 px-sm-8 mx-auto",
|
|
304
304
|
"max-width": "480"
|
|
305
305
|
}, {
|
|
306
|
-
default:
|
|
307
|
-
g("div",
|
|
306
|
+
default: r(() => [
|
|
307
|
+
g("div", Do, [
|
|
308
308
|
t(ne, {
|
|
309
309
|
image: "https://vuetifyjs.b-cdn.net/docs/images/avatars/one.png",
|
|
310
310
|
class: "mx-auto",
|
|
311
311
|
size: "64"
|
|
312
312
|
}, null, 8, ["image"])
|
|
313
313
|
]),
|
|
314
|
-
g("div",
|
|
315
|
-
t(
|
|
316
|
-
default:
|
|
317
|
-
g("div",
|
|
318
|
-
|
|
314
|
+
g("div", Ao, [
|
|
315
|
+
t(lo, { class: "text-h5 mb-1 text-md-h4" }, {
|
|
316
|
+
default: r(() => [
|
|
317
|
+
g("div", Oo, C(a(e).lastLoginProvider() ? "Welcome back to" : "Login to"), 1),
|
|
318
|
+
Uo
|
|
319
319
|
]),
|
|
320
320
|
_: 1
|
|
321
321
|
}),
|
|
322
|
-
t(
|
|
323
|
-
default:
|
|
324
|
-
|
|
322
|
+
t(uo, { class: "text-wrap" }, {
|
|
323
|
+
default: r(() => [
|
|
324
|
+
B(" Login with GitHub or Discord to save your settings and unlock exclusive subscriber perks. ")
|
|
325
325
|
]),
|
|
326
326
|
_: 1
|
|
327
327
|
})
|
|
@@ -331,9 +331,9 @@ const Ve = X("http", {
|
|
|
331
331
|
"max-width": "300",
|
|
332
332
|
width: "100%"
|
|
333
333
|
}, {
|
|
334
|
-
default:
|
|
335
|
-
t(
|
|
336
|
-
t(
|
|
334
|
+
default: r(() => [
|
|
335
|
+
t(s, { class: "mb-3" }),
|
|
336
|
+
t(i)
|
|
337
337
|
]),
|
|
338
338
|
_: 1
|
|
339
339
|
})
|
|
@@ -342,125 +342,125 @@ const Ve = X("http", {
|
|
|
342
342
|
});
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
}), pt = /* @__PURE__ */
|
|
345
|
+
}), pt = /* @__PURE__ */ $({
|
|
346
346
|
__name: "VoAuthDialog",
|
|
347
347
|
setup(u) {
|
|
348
|
-
const e =
|
|
348
|
+
const e = j();
|
|
349
349
|
return (o, n) => {
|
|
350
|
-
const
|
|
351
|
-
return c(),
|
|
350
|
+
const s = dt;
|
|
351
|
+
return c(), h(at, {
|
|
352
352
|
modelValue: a(e).dialog,
|
|
353
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
353
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => a(e).dialog = i),
|
|
354
354
|
"max-width": "480"
|
|
355
355
|
}, {
|
|
356
|
-
default:
|
|
357
|
-
t(
|
|
356
|
+
default: r(() => [
|
|
357
|
+
t(s)
|
|
358
358
|
]),
|
|
359
359
|
_: 1
|
|
360
360
|
}, 8, ["modelValue"]);
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
}), Ne =
|
|
364
|
-
const u =
|
|
363
|
+
}), Ne = Z("notifications", () => {
|
|
364
|
+
const u = de(), e = F(), o = N([]), n = N([]), s = N(), i = A(!1), l = S(() => o.value.filter((m) => !e.notifications.read.includes(m.slug))), d = S(() => o.value.filter((m) => e.notifications.read.includes(m.slug)));
|
|
365
365
|
async function v() {
|
|
366
366
|
try {
|
|
367
|
-
|
|
367
|
+
i.value = !0;
|
|
368
368
|
const m = await u.get("/one/notifications");
|
|
369
369
|
o.value = m.notifications;
|
|
370
370
|
} catch {
|
|
371
371
|
} finally {
|
|
372
|
-
|
|
372
|
+
i.value = !1;
|
|
373
373
|
}
|
|
374
374
|
return o.value;
|
|
375
375
|
}
|
|
376
376
|
async function p(m) {
|
|
377
377
|
try {
|
|
378
|
-
|
|
378
|
+
i.value = !0;
|
|
379
379
|
const f = await u.get(`/one/admin/notifications/${m}`);
|
|
380
|
-
return
|
|
380
|
+
return s.value = f.notification, f.notification;
|
|
381
381
|
} catch {
|
|
382
382
|
} finally {
|
|
383
|
-
|
|
383
|
+
i.value = !1;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
async function
|
|
386
|
+
async function _(m) {
|
|
387
387
|
try {
|
|
388
|
-
|
|
388
|
+
i.value = !0;
|
|
389
389
|
const f = await u.form(
|
|
390
390
|
"/one/admin/notifications",
|
|
391
391
|
m
|
|
392
392
|
);
|
|
393
|
-
return
|
|
393
|
+
return s.value = f.notification, f.notification;
|
|
394
394
|
} catch {
|
|
395
395
|
} finally {
|
|
396
|
-
|
|
396
|
+
i.value = !1;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
async function
|
|
399
|
+
async function x(m, f) {
|
|
400
400
|
try {
|
|
401
|
-
|
|
402
|
-
const
|
|
401
|
+
i.value = !0;
|
|
402
|
+
const y = await u.form(
|
|
403
403
|
`/one/admin/notifications/${m}`,
|
|
404
404
|
f
|
|
405
405
|
);
|
|
406
|
-
return
|
|
406
|
+
return s.value = y.notification, y.notification;
|
|
407
407
|
} catch {
|
|
408
408
|
} finally {
|
|
409
|
-
|
|
409
|
+
i.value = !1;
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
async function
|
|
412
|
+
async function V() {
|
|
413
413
|
}
|
|
414
|
-
async function
|
|
414
|
+
async function k() {
|
|
415
415
|
try {
|
|
416
|
-
|
|
416
|
+
i.value = !0;
|
|
417
417
|
const m = await u.get("/one/admin/notifications");
|
|
418
418
|
n.value = m.notifications;
|
|
419
419
|
} catch {
|
|
420
420
|
} finally {
|
|
421
|
-
|
|
421
|
+
i.value = !1;
|
|
422
422
|
}
|
|
423
423
|
return o.value;
|
|
424
424
|
}
|
|
425
425
|
return {
|
|
426
|
-
isLoading:
|
|
426
|
+
isLoading: i,
|
|
427
427
|
all: o,
|
|
428
428
|
aall: n,
|
|
429
|
-
admin:
|
|
430
|
-
record:
|
|
429
|
+
admin: k,
|
|
430
|
+
record: s,
|
|
431
431
|
index: v,
|
|
432
432
|
show: p,
|
|
433
|
-
store:
|
|
434
|
-
update:
|
|
435
|
-
destroy:
|
|
433
|
+
store: _,
|
|
434
|
+
update: x,
|
|
435
|
+
destroy: V,
|
|
436
436
|
read: d,
|
|
437
437
|
unread: l
|
|
438
438
|
};
|
|
439
|
-
}),
|
|
439
|
+
}), Bo = /* @__PURE__ */ $({
|
|
440
440
|
__name: "VoNotificationsTotalBadge",
|
|
441
441
|
setup(u) {
|
|
442
|
-
const e =
|
|
443
|
-
return (
|
|
444
|
-
content:
|
|
442
|
+
const e = j(), o = Ne(), n = F(), s = S(() => n.notifications.show ? o.unread.length : 0);
|
|
443
|
+
return (i, l) => (c(), h(Ge, {
|
|
444
|
+
content: s.value,
|
|
445
445
|
dot: !!a(e).user,
|
|
446
|
-
"model-value":
|
|
446
|
+
"model-value": s.value > 0,
|
|
447
447
|
color: "error",
|
|
448
448
|
location: "start top"
|
|
449
449
|
}, {
|
|
450
|
-
default:
|
|
451
|
-
P(
|
|
450
|
+
default: r(() => [
|
|
451
|
+
P(i.$slots, "default")
|
|
452
452
|
]),
|
|
453
453
|
_: 3
|
|
454
454
|
}, 8, ["content", "dot", "model-value"]));
|
|
455
455
|
}
|
|
456
|
-
}),
|
|
456
|
+
}), pe = /* @__PURE__ */ $({
|
|
457
457
|
__name: "VoBtn",
|
|
458
458
|
props: {
|
|
459
459
|
readonly: { type: Boolean }
|
|
460
460
|
},
|
|
461
461
|
setup(u) {
|
|
462
462
|
const e = u;
|
|
463
|
-
return (o, n) => (c(),
|
|
463
|
+
return (o, n) => (c(), h(E, {
|
|
464
464
|
style: Ye({
|
|
465
465
|
pointerEvents: e.readonly ? "none" : void 0
|
|
466
466
|
}),
|
|
@@ -469,9 +469,9 @@ const Ve = X("http", {
|
|
|
469
469
|
color: "primary",
|
|
470
470
|
size: "small",
|
|
471
471
|
variant: "flat"
|
|
472
|
-
},
|
|
473
|
-
loader:
|
|
474
|
-
o.$slots.loader ?
|
|
472
|
+
}, W({
|
|
473
|
+
loader: r(() => [
|
|
474
|
+
o.$slots.loader ? w("", !0) : (c(), h(co, {
|
|
475
475
|
key: 0,
|
|
476
476
|
indeterminate: "disable-shrink",
|
|
477
477
|
size: "16",
|
|
@@ -483,54 +483,54 @@ const Ve = X("http", {
|
|
|
483
483
|
}, [
|
|
484
484
|
o.$slots.prepend ? {
|
|
485
485
|
name: "prepend",
|
|
486
|
-
fn:
|
|
486
|
+
fn: r(() => [
|
|
487
487
|
P(o.$slots, "prepend")
|
|
488
488
|
]),
|
|
489
489
|
key: "0"
|
|
490
490
|
} : void 0,
|
|
491
491
|
o.$slots.default ? {
|
|
492
492
|
name: "default",
|
|
493
|
-
fn:
|
|
493
|
+
fn: r(() => [
|
|
494
494
|
P(o.$slots, "default")
|
|
495
495
|
]),
|
|
496
496
|
key: "1"
|
|
497
497
|
} : void 0
|
|
498
498
|
]), 1032, ["style", "tabindex"]));
|
|
499
499
|
}
|
|
500
|
-
}),
|
|
500
|
+
}), No = { class: "pa-4 d-flex flex-column ga-4" }, mt = /* @__PURE__ */ $({
|
|
501
501
|
__name: "VoAuthListItem",
|
|
502
502
|
setup(u) {
|
|
503
|
-
const e =
|
|
504
|
-
|
|
505
|
-
n.value = !
|
|
503
|
+
const e = j(), o = F(), n = A(!e.user && !e.isLoading);
|
|
504
|
+
U(() => e.user, (i) => {
|
|
505
|
+
n.value = !i;
|
|
506
506
|
});
|
|
507
|
-
function
|
|
507
|
+
function s() {
|
|
508
508
|
e.user && (n.value = !n.value);
|
|
509
509
|
}
|
|
510
|
-
return (
|
|
510
|
+
return (i, l) => {
|
|
511
511
|
const d = ct, v = ut;
|
|
512
|
-
return c(),
|
|
512
|
+
return c(), h(H, {
|
|
513
513
|
variant: n.value ? "tonal" : "text",
|
|
514
514
|
class: "ma-2",
|
|
515
515
|
rounded: "lg"
|
|
516
516
|
}, {
|
|
517
|
-
default:
|
|
517
|
+
default: r(() => [
|
|
518
518
|
t(oe, { class: "py-0" }, {
|
|
519
|
-
default:
|
|
520
|
-
t(
|
|
519
|
+
default: r(() => [
|
|
520
|
+
t(ge, {
|
|
521
521
|
link: !!a(e).user,
|
|
522
|
-
"prepend-icon": `svg:${a(e).user && a(o).syncSettings ? a(
|
|
522
|
+
"prepend-icon": `svg:${a(e).user && a(o).syncSettings ? a(wt) : a(St)}`,
|
|
523
523
|
title: a(e).user && a(o).syncSettings ? "Sync is on" : "Sync is paused",
|
|
524
524
|
class: "mb-0",
|
|
525
525
|
rounded: "b-0",
|
|
526
526
|
nav: "",
|
|
527
527
|
slim: "",
|
|
528
|
-
onClick:
|
|
528
|
+
onClick: s
|
|
529
529
|
}, {
|
|
530
|
-
append:
|
|
530
|
+
append: r(() => [
|
|
531
531
|
t(Oe, null, {
|
|
532
|
-
default:
|
|
533
|
-
a(e).user && (n.value || !a(o).syncSettings) ? (c(),
|
|
532
|
+
default: r(() => [
|
|
533
|
+
a(e).user && (n.value || !a(o).syncSettings) ? (c(), h(it, {
|
|
534
534
|
key: 0,
|
|
535
535
|
modelValue: a(o).syncSettings,
|
|
536
536
|
"onUpdate:modelValue": l[0] || (l[0] = (p) => a(o).syncSettings = p),
|
|
@@ -541,28 +541,28 @@ const Ve = X("http", {
|
|
|
541
541
|
onClick: l[1] || (l[1] = Re(() => {
|
|
542
542
|
}, ["stop"]))
|
|
543
543
|
}, {
|
|
544
|
-
thumb:
|
|
544
|
+
thumb: r(() => [
|
|
545
545
|
t(ne, {
|
|
546
546
|
color: a(o).syncSettings ? "success" : void 0
|
|
547
547
|
}, null, 8, ["color"])
|
|
548
548
|
]),
|
|
549
549
|
_: 1
|
|
550
|
-
}, 8, ["modelValue", "color"])) :
|
|
550
|
+
}, 8, ["modelValue", "color"])) : w("", !0)
|
|
551
551
|
]),
|
|
552
552
|
_: 1
|
|
553
553
|
})
|
|
554
554
|
]),
|
|
555
555
|
_: 1
|
|
556
556
|
}, 8, ["link", "prepend-icon", "title"]),
|
|
557
|
-
t(
|
|
558
|
-
default:
|
|
559
|
-
!a(e).user && !a(e).isLoading || n.value ? (c(),
|
|
557
|
+
t(ye, null, {
|
|
558
|
+
default: r(() => [
|
|
559
|
+
!a(e).user && !a(e).isLoading || n.value ? (c(), h(_e, {
|
|
560
560
|
key: 0,
|
|
561
561
|
border: "t",
|
|
562
562
|
color: "transparent"
|
|
563
563
|
}, {
|
|
564
|
-
default:
|
|
565
|
-
g("div",
|
|
564
|
+
default: r(() => [
|
|
565
|
+
g("div", No, [
|
|
566
566
|
t(d, {
|
|
567
567
|
onClick: l[2] || (l[2] = (p) => n.value = !1)
|
|
568
568
|
}),
|
|
@@ -572,7 +572,7 @@ const Ve = X("http", {
|
|
|
572
572
|
])
|
|
573
573
|
]),
|
|
574
574
|
_: 1
|
|
575
|
-
})) :
|
|
575
|
+
})) : w("", !0)
|
|
576
576
|
]),
|
|
577
577
|
_: 1
|
|
578
578
|
})
|
|
@@ -584,51 +584,51 @@ const Ve = X("http", {
|
|
|
584
584
|
}, 8, ["variant"]);
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
|
-
}), Q = /* @__PURE__ */
|
|
587
|
+
}), Q = /* @__PURE__ */ $({
|
|
588
588
|
__name: "VoListItem",
|
|
589
589
|
setup(u) {
|
|
590
|
-
return (e, o) => (c(),
|
|
591
|
-
default:
|
|
590
|
+
return (e, o) => (c(), h(ge, { slim: "" }, W({
|
|
591
|
+
default: r(() => [
|
|
592
592
|
P(e.$slots, "default")
|
|
593
593
|
]),
|
|
594
594
|
_: 2
|
|
595
595
|
}, [
|
|
596
596
|
e.$slots.prepend ? {
|
|
597
597
|
name: "prepend",
|
|
598
|
-
fn:
|
|
598
|
+
fn: r(() => [
|
|
599
599
|
P(e.$slots, "prepend")
|
|
600
600
|
]),
|
|
601
601
|
key: "0"
|
|
602
602
|
} : void 0,
|
|
603
603
|
e.$slots.title ? {
|
|
604
604
|
name: "title",
|
|
605
|
-
fn:
|
|
605
|
+
fn: r(() => [
|
|
606
606
|
P(e.$slots, "title")
|
|
607
607
|
]),
|
|
608
608
|
key: "1"
|
|
609
609
|
} : void 0,
|
|
610
610
|
e.$slots.append ? {
|
|
611
611
|
name: "append",
|
|
612
|
-
fn:
|
|
612
|
+
fn: r(() => [
|
|
613
613
|
P(e.$slots, "append")
|
|
614
614
|
]),
|
|
615
615
|
key: "2"
|
|
616
616
|
} : void 0
|
|
617
617
|
]), 1024));
|
|
618
618
|
}
|
|
619
|
-
}),
|
|
619
|
+
}), To = /* @__PURE__ */ $({
|
|
620
620
|
__name: "VoAuthLogoutNavItem",
|
|
621
621
|
setup(u) {
|
|
622
|
-
const e =
|
|
622
|
+
const e = j(), o = A(!1);
|
|
623
623
|
async function n() {
|
|
624
624
|
o.value = !0, await e.logout(), o.value = !1;
|
|
625
625
|
}
|
|
626
|
-
return (
|
|
626
|
+
return (s, i) => {
|
|
627
627
|
const l = Q;
|
|
628
|
-
return c(),
|
|
628
|
+
return c(), h(l, {
|
|
629
629
|
disabled: o.value,
|
|
630
630
|
loading: o.value,
|
|
631
|
-
"prepend-icon": `svg:${a(
|
|
631
|
+
"prepend-icon": `svg:${a(Ct)}`,
|
|
632
632
|
class: "mb-0",
|
|
633
633
|
title: "Logout",
|
|
634
634
|
link: "",
|
|
@@ -636,7 +636,7 @@ const Ve = X("http", {
|
|
|
636
636
|
}, null, 8, ["disabled", "loading", "prepend-icon"]);
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
|
-
}), ke = /* @__PURE__ */
|
|
639
|
+
}), ke = /* @__PURE__ */ $({
|
|
640
640
|
__name: "VoDialog",
|
|
641
641
|
props: /* @__PURE__ */ Je({
|
|
642
642
|
prependIcon: {},
|
|
@@ -648,58 +648,58 @@ const Ve = X("http", {
|
|
|
648
648
|
emits: ["update:modelValue"],
|
|
649
649
|
setup(u) {
|
|
650
650
|
const e = ie(u, "modelValue"), o = re(), n = A(!1);
|
|
651
|
-
return (
|
|
651
|
+
return (s, i) => (c(), h(at, {
|
|
652
652
|
modelValue: e.value,
|
|
653
|
-
"onUpdate:modelValue":
|
|
653
|
+
"onUpdate:modelValue": i[2] || (i[2] = (l) => e.value = l),
|
|
654
654
|
fullscreen: n.value || a(o).xs.value,
|
|
655
655
|
"max-height": n.value || a(o).xs.value ? "100%" : 800,
|
|
656
656
|
"max-width": n.value || a(o).xs.value ? "100%" : 800,
|
|
657
657
|
activator: "parent",
|
|
658
658
|
height: "100%"
|
|
659
659
|
}, {
|
|
660
|
-
default:
|
|
660
|
+
default: r(({ isActive: l }) => [
|
|
661
661
|
t(H, {
|
|
662
|
-
"prepend-icon":
|
|
663
|
-
title:
|
|
662
|
+
"prepend-icon": s.prependIcon,
|
|
663
|
+
title: s.title,
|
|
664
664
|
class: "overflow-hidden",
|
|
665
665
|
height: "inherit"
|
|
666
|
-
},
|
|
667
|
-
append:
|
|
668
|
-
P(
|
|
669
|
-
a(o).xs.value ?
|
|
666
|
+
}, W({
|
|
667
|
+
append: r(() => [
|
|
668
|
+
P(s.$slots, "append"),
|
|
669
|
+
a(o).xs.value ? w("", !0) : (c(), h(E, {
|
|
670
670
|
key: 0,
|
|
671
|
-
icon: `svg:${n.value ? a(
|
|
671
|
+
icon: `svg:${n.value ? a(Lt) : a(It)}`,
|
|
672
672
|
class: "me-2",
|
|
673
673
|
density: "comfortable",
|
|
674
674
|
size: "small",
|
|
675
675
|
variant: "text",
|
|
676
|
-
onClick:
|
|
676
|
+
onClick: i[0] || (i[0] = (d) => n.value = !n.value)
|
|
677
677
|
}, null, 8, ["icon"])),
|
|
678
678
|
t(E, {
|
|
679
679
|
density: "comfortable",
|
|
680
680
|
icon: "$close",
|
|
681
681
|
size: "small",
|
|
682
682
|
variant: "text",
|
|
683
|
-
onClick:
|
|
683
|
+
onClick: i[1] || (i[1] = (d) => e.value = !e.value)
|
|
684
684
|
})
|
|
685
685
|
]),
|
|
686
|
-
default:
|
|
687
|
-
t(
|
|
688
|
-
P(
|
|
686
|
+
default: r(() => [
|
|
687
|
+
t(G, { class: "mt-4" }),
|
|
688
|
+
P(s.$slots, "default")
|
|
689
689
|
]),
|
|
690
690
|
_: 2
|
|
691
691
|
}, [
|
|
692
|
-
|
|
692
|
+
s.$slots.prepend ? {
|
|
693
693
|
name: "prepend",
|
|
694
|
-
fn:
|
|
695
|
-
P(
|
|
694
|
+
fn: r(() => [
|
|
695
|
+
P(s.$slots, "prepend")
|
|
696
696
|
]),
|
|
697
697
|
key: "0"
|
|
698
698
|
} : void 0,
|
|
699
|
-
|
|
699
|
+
s.$slots.actions ? {
|
|
700
700
|
name: "actions",
|
|
701
|
-
fn:
|
|
702
|
-
P(
|
|
701
|
+
fn: r(() => [
|
|
702
|
+
P(s.$slots, "actions", { isActive: l })
|
|
703
703
|
]),
|
|
704
704
|
key: "1"
|
|
705
705
|
} : void 0
|
|
@@ -708,20 +708,20 @@ const Ve = X("http", {
|
|
|
708
708
|
_: 3
|
|
709
709
|
}, 8, ["modelValue", "fullscreen", "max-height", "max-width"]));
|
|
710
710
|
}
|
|
711
|
-
}), ft = /* @__PURE__ */
|
|
711
|
+
}), ft = /* @__PURE__ */ $({
|
|
712
712
|
__name: "VoSwitch",
|
|
713
713
|
props: {
|
|
714
714
|
disabled: { type: Boolean }
|
|
715
715
|
},
|
|
716
716
|
setup(u) {
|
|
717
|
-
return (e, o) => (c(),
|
|
717
|
+
return (e, o) => (c(), h(it, {
|
|
718
718
|
disabled: e.disabled,
|
|
719
719
|
"true-icon": `svg:${a(De)}`,
|
|
720
720
|
color: "primary",
|
|
721
721
|
density: "compact",
|
|
722
722
|
inset: ""
|
|
723
|
-
},
|
|
724
|
-
thumb:
|
|
723
|
+
}, W({
|
|
724
|
+
thumb: r(() => [
|
|
725
725
|
t(D, {
|
|
726
726
|
color: e.disabled ? void 0 : "primary"
|
|
727
727
|
}, null, 8, ["color"])
|
|
@@ -730,44 +730,44 @@ const Ve = X("http", {
|
|
|
730
730
|
}, [
|
|
731
731
|
e.$slots.label ? {
|
|
732
732
|
name: "label",
|
|
733
|
-
fn:
|
|
733
|
+
fn: r(() => [
|
|
734
734
|
P(e.$slots, "label")
|
|
735
735
|
]),
|
|
736
736
|
key: "0"
|
|
737
737
|
} : void 0
|
|
738
738
|
]), 1032, ["disabled", "true-icon"]));
|
|
739
739
|
}
|
|
740
|
-
}),
|
|
740
|
+
}), zo = {
|
|
741
741
|
key: 1,
|
|
742
742
|
class: "mb-3 text-caption text-medium-emphasis"
|
|
743
|
-
}, $e = /* @__PURE__ */
|
|
743
|
+
}, $e = /* @__PURE__ */ $({
|
|
744
744
|
__name: "VoDialogSubheader",
|
|
745
745
|
props: {
|
|
746
746
|
title: {},
|
|
747
747
|
text: {}
|
|
748
748
|
},
|
|
749
749
|
setup(u) {
|
|
750
|
-
return (e, o) => (c(), L(
|
|
751
|
-
e.title ? (c(),
|
|
750
|
+
return (e, o) => (c(), L(T, null, [
|
|
751
|
+
e.title ? (c(), h(Me, {
|
|
752
752
|
key: 0,
|
|
753
753
|
class: "font-weight-black"
|
|
754
754
|
}, {
|
|
755
|
-
default:
|
|
756
|
-
|
|
755
|
+
default: r(() => [
|
|
756
|
+
B(C(e.title), 1)
|
|
757
757
|
]),
|
|
758
758
|
_: 1
|
|
759
|
-
})) :
|
|
760
|
-
e.text ? (c(), L("div",
|
|
759
|
+
})) : w("", !0),
|
|
760
|
+
e.text ? (c(), L("div", zo, C(e.text), 1)) : w("", !0)
|
|
761
761
|
], 64));
|
|
762
762
|
}
|
|
763
|
-
}),
|
|
763
|
+
}), Fo = { key: 0 }, jo = /* @__PURE__ */ $({
|
|
764
764
|
__name: "VoSettingsPageSuitOption",
|
|
765
765
|
setup(u) {
|
|
766
|
-
const e =
|
|
766
|
+
const e = F(), o = [
|
|
767
767
|
{
|
|
768
768
|
title: "Choose a page suit",
|
|
769
769
|
value: "",
|
|
770
|
-
prependIcon: `svg:${
|
|
770
|
+
prependIcon: `svg:${Ot}`,
|
|
771
771
|
disabled: !0
|
|
772
772
|
},
|
|
773
773
|
{
|
|
@@ -786,22 +786,22 @@ const Ve = X("http", {
|
|
|
786
786
|
value: "nebula"
|
|
787
787
|
}
|
|
788
788
|
];
|
|
789
|
-
return (n,
|
|
790
|
-
const
|
|
791
|
-
return c(), L(
|
|
792
|
-
t(
|
|
789
|
+
return (n, s) => {
|
|
790
|
+
const i = ft, l = $e;
|
|
791
|
+
return c(), L(T, null, [
|
|
792
|
+
t(i, {
|
|
793
793
|
modelValue: a(e).suits.show,
|
|
794
|
-
"onUpdate:modelValue":
|
|
794
|
+
"onUpdate:modelValue": s[0] || (s[0] = (d) => a(e).suits.show = d),
|
|
795
795
|
class: "mb-2",
|
|
796
796
|
label: "Enable Page suits",
|
|
797
797
|
messages: "Customize layout elements with a unique background, styled after one of our themed releases."
|
|
798
798
|
}, null, 8, ["modelValue"]),
|
|
799
|
-
t(
|
|
800
|
-
default:
|
|
801
|
-
a(e).suits.show ? (c(), L("div",
|
|
802
|
-
t(
|
|
799
|
+
t(ye, null, {
|
|
800
|
+
default: r(() => [
|
|
801
|
+
a(e).suits.show ? (c(), L("div", Fo, [
|
|
802
|
+
t(vo, {
|
|
803
803
|
modelValue: a(e).suits.suit,
|
|
804
|
-
"onUpdate:modelValue":
|
|
804
|
+
"onUpdate:modelValue": s[1] || (s[1] = (d) => a(e).suits.suit = d),
|
|
805
805
|
items: o,
|
|
806
806
|
density: "compact",
|
|
807
807
|
placeholder: "Choose a page suit",
|
|
@@ -811,34 +811,34 @@ const Ve = X("http", {
|
|
|
811
811
|
"item-props": "",
|
|
812
812
|
"single-line": ""
|
|
813
813
|
}, {
|
|
814
|
-
selection:
|
|
814
|
+
selection: r(({ item: d }) => [
|
|
815
815
|
t(D, {
|
|
816
816
|
icon: d.props.prependIcon,
|
|
817
817
|
size: "x-small",
|
|
818
818
|
start: ""
|
|
819
819
|
}, null, 8, ["icon"]),
|
|
820
|
-
|
|
820
|
+
B(" " + C(d.title), 1)
|
|
821
821
|
]),
|
|
822
822
|
_: 1
|
|
823
823
|
}, 8, ["modelValue"]),
|
|
824
824
|
t(l, { text: "Select your suit elements to display the background image:" }),
|
|
825
|
-
t(
|
|
825
|
+
t(fo, {
|
|
826
826
|
modelValue: a(e).suits.elements,
|
|
827
|
-
"onUpdate:modelValue":
|
|
827
|
+
"onUpdate:modelValue": s[2] || (s[2] = (d) => a(e).suits.elements = d),
|
|
828
828
|
color: "primary",
|
|
829
829
|
filter: "",
|
|
830
830
|
multiple: ""
|
|
831
831
|
}, {
|
|
832
|
-
default:
|
|
832
|
+
default: r(() => [
|
|
833
833
|
t(ee, {
|
|
834
|
-
"append-icon": `svg:${a(
|
|
834
|
+
"append-icon": `svg:${a(Dt)}`,
|
|
835
835
|
"filter-icon": "$success",
|
|
836
836
|
text: "App Bar",
|
|
837
837
|
value: "app-bar",
|
|
838
838
|
variant: "flat"
|
|
839
839
|
}, {
|
|
840
|
-
append:
|
|
841
|
-
t(
|
|
840
|
+
append: r(() => [
|
|
841
|
+
t(G, {
|
|
842
842
|
class: "ms-2 border-opacity-50",
|
|
843
843
|
vertical: ""
|
|
844
844
|
}),
|
|
@@ -847,14 +847,14 @@ const Ve = X("http", {
|
|
|
847
847
|
_: 1
|
|
848
848
|
}, 8, ["append-icon"]),
|
|
849
849
|
t(ee, {
|
|
850
|
-
"append-icon": `svg:${a(
|
|
850
|
+
"append-icon": `svg:${a(At)}`,
|
|
851
851
|
"filter-icon": "$success",
|
|
852
852
|
text: "Navigation Drawer",
|
|
853
853
|
value: "drawer",
|
|
854
854
|
variant: "flat"
|
|
855
855
|
}, {
|
|
856
|
-
append:
|
|
857
|
-
t(
|
|
856
|
+
append: r(() => [
|
|
857
|
+
t(G, {
|
|
858
858
|
class: "ms-2 border-opacity-50",
|
|
859
859
|
vertical: ""
|
|
860
860
|
}),
|
|
@@ -869,8 +869,8 @@ const Ve = X("http", {
|
|
|
869
869
|
value: "footer",
|
|
870
870
|
variant: "flat"
|
|
871
871
|
}, {
|
|
872
|
-
append:
|
|
873
|
-
t(
|
|
872
|
+
append: r(() => [
|
|
873
|
+
t(G, {
|
|
874
874
|
class: "ms-2 border-opacity-50",
|
|
875
875
|
vertical: ""
|
|
876
876
|
}),
|
|
@@ -881,7 +881,7 @@ const Ve = X("http", {
|
|
|
881
881
|
]),
|
|
882
882
|
_: 1
|
|
883
883
|
}, 8, ["modelValue"])
|
|
884
|
-
])) :
|
|
884
|
+
])) : w("", !0)
|
|
885
885
|
]),
|
|
886
886
|
_: 1
|
|
887
887
|
})
|
|
@@ -889,128 +889,128 @@ const Ve = X("http", {
|
|
|
889
889
|
};
|
|
890
890
|
}
|
|
891
891
|
});
|
|
892
|
-
function
|
|
893
|
-
const u =
|
|
892
|
+
function me() {
|
|
893
|
+
const u = xt();
|
|
894
894
|
return S(
|
|
895
895
|
() => u.query
|
|
896
896
|
);
|
|
897
897
|
}
|
|
898
|
-
const M =
|
|
899
|
-
const u =
|
|
900
|
-
var
|
|
901
|
-
return (
|
|
902
|
-
}),
|
|
903
|
-
var
|
|
904
|
-
return (
|
|
905
|
-
}),
|
|
906
|
-
var
|
|
907
|
-
return !!((
|
|
908
|
-
}),
|
|
909
|
-
var
|
|
910
|
-
return (
|
|
911
|
-
}),
|
|
912
|
-
var
|
|
913
|
-
return (
|
|
898
|
+
const M = Z("one", () => {
|
|
899
|
+
const u = me(), e = Ie(), o = j(), n = de(), s = A(!1), i = N(!1), l = N(), d = N([]), v = S(() => u.value.session_id), p = S(() => {
|
|
900
|
+
var b;
|
|
901
|
+
return (b = l.value) == null ? void 0 : b.items[0].plan.interval;
|
|
902
|
+
}), _ = S(() => {
|
|
903
|
+
var b;
|
|
904
|
+
return (b = o.user) == null ? void 0 : b.sponsorships.find((I) => I.platform === "stripe" && I.tierName.startsWith("sub_"));
|
|
905
|
+
}), x = S(() => {
|
|
906
|
+
var b;
|
|
907
|
+
return !!((b = _.value) != null && b.tierName);
|
|
908
|
+
}), V = S(() => {
|
|
909
|
+
var b;
|
|
910
|
+
return (b = _.value) == null ? void 0 : b.isActive;
|
|
911
|
+
}), k = S(() => {
|
|
912
|
+
var b;
|
|
913
|
+
return (b = o.user) == null ? void 0 : b.sponsorships.find((I) => I.tierName.startsWith("sub_"));
|
|
914
914
|
}), m = S(() => {
|
|
915
|
-
var
|
|
916
|
-
return (
|
|
915
|
+
var b;
|
|
916
|
+
return (b = o.user) == null ? void 0 : b.sponsorships.find((I) => I.platform === "github");
|
|
917
917
|
}), f = S(() => {
|
|
918
|
-
var
|
|
919
|
-
return
|
|
920
|
-
}),
|
|
921
|
-
var
|
|
922
|
-
return (
|
|
923
|
-
}),
|
|
924
|
-
var
|
|
925
|
-
return (
|
|
926
|
-
if (!
|
|
918
|
+
var b;
|
|
919
|
+
return (b = o.user) == null ? void 0 : b.sponsorships.find((I) => I.platform === "discord");
|
|
920
|
+
}), y = S(() => {
|
|
921
|
+
var b;
|
|
922
|
+
return (b = o.user) == null ? void 0 : b.sponsorships.find((I) => I.platform === "patreon");
|
|
923
|
+
}), O = S(() => {
|
|
924
|
+
var b;
|
|
925
|
+
return (b = o.user) == null ? void 0 : b.sponsorships.reduce((I, Y) => {
|
|
926
|
+
if (!Y.isActive || Y.interval === "once" || Y.platform === "stripe")
|
|
927
927
|
return I;
|
|
928
|
-
const
|
|
929
|
-
return I +
|
|
928
|
+
const gt = Y.interval === "month" ? Y.amount : Y.amount / 12;
|
|
929
|
+
return I + gt / 100;
|
|
930
930
|
}, 0);
|
|
931
931
|
});
|
|
932
932
|
Xe(async () => {
|
|
933
|
-
v.value && await
|
|
934
|
-
}),
|
|
935
|
-
|
|
936
|
-
}, { immediate: !0 }),
|
|
937
|
-
if (
|
|
933
|
+
v.value && await z();
|
|
934
|
+
}), U(i, K), U(v, (b) => {
|
|
935
|
+
b && z();
|
|
936
|
+
}, { immediate: !0 }), U(u, (b) => {
|
|
937
|
+
if (b.one !== "subscribe" || o.user)
|
|
938
938
|
return;
|
|
939
939
|
o.dialog = !0;
|
|
940
|
-
const I =
|
|
941
|
-
|
|
940
|
+
const I = U(() => o.user, (Y) => {
|
|
941
|
+
Y && (o.dialog = !1, I());
|
|
942
942
|
});
|
|
943
|
-
}, { immediate: !0 }),
|
|
944
|
-
|
|
943
|
+
}, { immediate: !0 }), U(V, (b, I) => {
|
|
944
|
+
b === !1 && I !== !0 || fe();
|
|
945
945
|
});
|
|
946
|
-
async function
|
|
946
|
+
async function z() {
|
|
947
947
|
try {
|
|
948
|
-
|
|
949
|
-
const
|
|
950
|
-
o.user =
|
|
948
|
+
s.value = !0;
|
|
949
|
+
const b = await n.post("/one/activate", { sessionId: v.value });
|
|
950
|
+
o.user = b.user;
|
|
951
951
|
const I = new URL(window.location.href);
|
|
952
952
|
I.searchParams.delete("session_id"), history.pushState(null, "", I.toString()), le();
|
|
953
953
|
} catch {
|
|
954
954
|
} finally {
|
|
955
|
-
|
|
955
|
+
s.value = !1;
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
async function
|
|
958
|
+
async function ae() {
|
|
959
959
|
window.open(`${n.url}/one/manage`, "_blank");
|
|
960
960
|
}
|
|
961
|
-
async function
|
|
962
|
-
|
|
961
|
+
async function q(b) {
|
|
962
|
+
s.value = !0, window.location.href = `${n.url}/one/subscribe?interval=${b}`;
|
|
963
963
|
}
|
|
964
964
|
async function xe() {
|
|
965
|
-
var
|
|
966
|
-
if (
|
|
965
|
+
var b;
|
|
966
|
+
if (_.value)
|
|
967
967
|
try {
|
|
968
|
-
|
|
968
|
+
s.value = !0;
|
|
969
969
|
const I = await n.post(
|
|
970
|
-
`/one/cancel?subscriptionId=${(
|
|
970
|
+
`/one/cancel?subscriptionId=${(b = _.value) == null ? void 0 : b.tierName}`
|
|
971
971
|
);
|
|
972
972
|
o.user = I.user;
|
|
973
973
|
} catch {
|
|
974
974
|
} finally {
|
|
975
|
-
|
|
975
|
+
s.value = !1;
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
async function we(
|
|
979
|
-
if (
|
|
978
|
+
async function we(b) {
|
|
979
|
+
if (_.value)
|
|
980
980
|
try {
|
|
981
|
-
|
|
981
|
+
s.value = !0;
|
|
982
982
|
const I = await n.post("/one/modify", {
|
|
983
|
-
subscriptionId:
|
|
984
|
-
interval:
|
|
983
|
+
subscriptionId: _.value.tierName,
|
|
984
|
+
interval: b
|
|
985
985
|
});
|
|
986
986
|
o.user = I.user;
|
|
987
987
|
} catch {
|
|
988
988
|
} finally {
|
|
989
|
-
|
|
989
|
+
s.value = !1;
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
async function
|
|
993
|
-
var
|
|
994
|
-
if (
|
|
992
|
+
async function fe() {
|
|
993
|
+
var b;
|
|
994
|
+
if (_.value)
|
|
995
995
|
try {
|
|
996
|
-
|
|
996
|
+
s.value = !0;
|
|
997
997
|
const I = await n.post(
|
|
998
|
-
`/one/verify?subscriptionId=${(
|
|
998
|
+
`/one/verify?subscriptionId=${(b = _.value) == null ? void 0 : b.tierName}`
|
|
999
999
|
);
|
|
1000
1000
|
o.user = I.user;
|
|
1001
1001
|
} catch {
|
|
1002
1002
|
} finally {
|
|
1003
|
-
|
|
1003
|
+
s.value = !1;
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
1006
|
async function le() {
|
|
1007
1007
|
try {
|
|
1008
|
-
|
|
1009
|
-
const
|
|
1010
|
-
return l.value =
|
|
1008
|
+
s.value = !0;
|
|
1009
|
+
const b = await n.get("/one/info");
|
|
1010
|
+
return l.value = b.subscription, d.value = b.invoices, b;
|
|
1011
1011
|
} catch {
|
|
1012
1012
|
} finally {
|
|
1013
|
-
|
|
1013
|
+
s.value = !1;
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
1016
|
function K() {
|
|
@@ -1026,27 +1026,27 @@ const M = X("one", () => {
|
|
|
1026
1026
|
interval: p,
|
|
1027
1027
|
invoices: d,
|
|
1028
1028
|
sessionId: v,
|
|
1029
|
-
subscription:
|
|
1030
|
-
monthlyTotal:
|
|
1031
|
-
hasBilling:
|
|
1032
|
-
isLoading:
|
|
1033
|
-
isOpen:
|
|
1034
|
-
isSubscriber:
|
|
1029
|
+
subscription: _,
|
|
1030
|
+
monthlyTotal: O,
|
|
1031
|
+
hasBilling: x,
|
|
1032
|
+
isLoading: s,
|
|
1033
|
+
isOpen: i,
|
|
1034
|
+
isSubscriber: V,
|
|
1035
1035
|
github: m,
|
|
1036
|
-
patreon:
|
|
1036
|
+
patreon: y,
|
|
1037
1037
|
discord: f,
|
|
1038
|
-
one:
|
|
1039
|
-
activate:
|
|
1038
|
+
one: k,
|
|
1039
|
+
activate: z,
|
|
1040
1040
|
cancel: xe,
|
|
1041
|
-
manage:
|
|
1041
|
+
manage: ae,
|
|
1042
1042
|
modify: we,
|
|
1043
1043
|
resetQuery: K,
|
|
1044
|
-
subscribe:
|
|
1044
|
+
subscribe: q,
|
|
1045
1045
|
subscriptionInfo: le,
|
|
1046
|
-
verify:
|
|
1046
|
+
verify: fe
|
|
1047
1047
|
};
|
|
1048
1048
|
});
|
|
1049
|
-
function
|
|
1049
|
+
function Mo() {
|
|
1050
1050
|
return {
|
|
1051
1051
|
blackguard: {
|
|
1052
1052
|
dark: !0,
|
|
@@ -1096,7 +1096,7 @@ function jo() {
|
|
|
1096
1096
|
accent: "#b35000",
|
|
1097
1097
|
success: "#486a2b",
|
|
1098
1098
|
"surface-light": "#773421",
|
|
1099
|
-
"surface-bright": "#
|
|
1099
|
+
"surface-bright": "#ffa752",
|
|
1100
1100
|
"surface-variant": "#924d2c",
|
|
1101
1101
|
"on-surface-variant": "#FFFFFF",
|
|
1102
1102
|
"primary-darken-1": "#c33100",
|
|
@@ -1134,7 +1134,7 @@ function jo() {
|
|
|
1134
1134
|
accent: "#0ea5e9",
|
|
1135
1135
|
success: "#14b8a6",
|
|
1136
1136
|
"surface-light": "#2e3d59",
|
|
1137
|
-
"surface-bright": "#
|
|
1137
|
+
"surface-bright": "#87a7ff",
|
|
1138
1138
|
"surface-variant": "#334155",
|
|
1139
1139
|
"on-surface-variant": "#FFFFFF",
|
|
1140
1140
|
"primary-darken-1": "#1c2d60",
|
|
@@ -1202,8 +1202,8 @@ function jo() {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
};
|
|
1204
1204
|
}
|
|
1205
|
-
const vt =
|
|
1206
|
-
const u = "https://cdn.vuetifyjs.com/docs/images/one/", e =
|
|
1205
|
+
const vt = Z("settings", () => {
|
|
1206
|
+
const u = "https://cdn.vuetifyjs.com/docs/images/one/", e = j(), o = F(), n = mo(), s = Mo(), i = {
|
|
1207
1207
|
blackguard: {
|
|
1208
1208
|
"app-bar": u + "suits/blackguard/blackguard-app-bar.png",
|
|
1209
1209
|
drawer: u + "suits/blackguard/blackguard-app-drawer.png",
|
|
@@ -1222,21 +1222,21 @@ const vt = X("settings", () => {
|
|
|
1222
1222
|
}, l = S(() => {
|
|
1223
1223
|
if (!o.suits.suit || !o.suits.show || !e.isSubscriber)
|
|
1224
1224
|
return {};
|
|
1225
|
-
const d =
|
|
1225
|
+
const d = i[o.suits.suit.toLowerCase()], v = {};
|
|
1226
1226
|
for (const p of o.suits.elements)
|
|
1227
1227
|
v[p] = d[p];
|
|
1228
1228
|
return v;
|
|
1229
1229
|
});
|
|
1230
1230
|
return n.themes.value = {
|
|
1231
1231
|
...n.themes.value,
|
|
1232
|
-
...
|
|
1233
|
-
},
|
|
1234
|
-
d === "system" ? n.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (n.global.name.value = d, o.suits.suit =
|
|
1232
|
+
...s
|
|
1233
|
+
}, U(() => o.theme, (d) => {
|
|
1234
|
+
d === "system" ? n.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (n.global.name.value = d, o.suits.suit = i[d] ? d : ""), o.theme = d;
|
|
1235
1235
|
}, { immediate: !0 }), {
|
|
1236
1236
|
suit: l,
|
|
1237
1237
|
CDN_URL: u
|
|
1238
1238
|
};
|
|
1239
|
-
}),
|
|
1239
|
+
}), Po = /* @__PURE__ */ $({
|
|
1240
1240
|
__name: "VoSettingsDialog",
|
|
1241
1241
|
props: {
|
|
1242
1242
|
modelValue: { type: Boolean },
|
|
@@ -1244,101 +1244,101 @@ const vt = X("settings", () => {
|
|
|
1244
1244
|
},
|
|
1245
1245
|
emits: ["update:modelValue"],
|
|
1246
1246
|
setup(u) {
|
|
1247
|
-
const e = ie(u, "modelValue"), o =
|
|
1247
|
+
const e = ie(u, "modelValue"), o = j(), n = M(), s = vt(), i = F(), l = [
|
|
1248
1248
|
{
|
|
1249
1249
|
title: "Light",
|
|
1250
1250
|
subtitle: "A standard light theme.",
|
|
1251
|
-
image:
|
|
1252
|
-
prependIcon: `svg:${
|
|
1251
|
+
image: s.CDN_URL + "themes/light.png",
|
|
1252
|
+
prependIcon: `svg:${Ut}`,
|
|
1253
1253
|
value: "light"
|
|
1254
1254
|
},
|
|
1255
1255
|
{
|
|
1256
1256
|
title: "Dark",
|
|
1257
1257
|
subtitle: "A standard dark theme.",
|
|
1258
|
-
image:
|
|
1259
|
-
prependIcon: `svg:${
|
|
1258
|
+
image: s.CDN_URL + "themes/dark.png",
|
|
1259
|
+
prependIcon: `svg:${Bt}`,
|
|
1260
1260
|
value: "dark"
|
|
1261
1261
|
},
|
|
1262
1262
|
{
|
|
1263
1263
|
title: "System",
|
|
1264
1264
|
subtitle: "A theme based on the system preference.",
|
|
1265
|
-
image:
|
|
1266
|
-
prependIcon: `svg:${
|
|
1265
|
+
image: s.CDN_URL + "themes/system.png",
|
|
1266
|
+
prependIcon: `svg:${Nt}`,
|
|
1267
1267
|
value: "system"
|
|
1268
1268
|
},
|
|
1269
1269
|
{
|
|
1270
1270
|
title: "Blackguard",
|
|
1271
1271
|
subtitle: "A theme for v3.4 Blackguard.",
|
|
1272
|
-
image:
|
|
1272
|
+
image: s.CDN_URL + "themes/blackguard.png",
|
|
1273
1273
|
prependIcon: `svg:${Ke}`,
|
|
1274
1274
|
value: "blackguard"
|
|
1275
1275
|
},
|
|
1276
1276
|
{
|
|
1277
1277
|
title: "Polaris",
|
|
1278
1278
|
subtitle: "A theme for v3.5 Polaris.",
|
|
1279
|
-
image:
|
|
1279
|
+
image: s.CDN_URL + "themes/polaris.png",
|
|
1280
1280
|
prependIcon: `svg:${et}`,
|
|
1281
1281
|
value: "polaris"
|
|
1282
1282
|
},
|
|
1283
1283
|
{
|
|
1284
1284
|
title: "Nebula",
|
|
1285
1285
|
subtitle: "A theme for v3.6 Nebula.",
|
|
1286
|
-
image:
|
|
1286
|
+
image: s.CDN_URL + "themes/nebula.png",
|
|
1287
1287
|
prependIcon: `svg:${tt}`,
|
|
1288
1288
|
value: "nebula"
|
|
1289
1289
|
},
|
|
1290
1290
|
{
|
|
1291
1291
|
title: "High Contrast",
|
|
1292
1292
|
subtitle: "A theme for high contrast.",
|
|
1293
|
-
image:
|
|
1294
|
-
prependIcon: `svg:${
|
|
1293
|
+
image: s.CDN_URL + "themes/high-contrast.png",
|
|
1294
|
+
prependIcon: `svg:${Tt}`,
|
|
1295
1295
|
value: "highContrast",
|
|
1296
1296
|
disabled: !0
|
|
1297
1297
|
}
|
|
1298
|
-
], d =
|
|
1299
|
-
return
|
|
1298
|
+
], d = me();
|
|
1299
|
+
return U(d, async () => {
|
|
1300
1300
|
d.value.one === "settings" && (n.isOpen = !0, await ce(), e.value = !0);
|
|
1301
1301
|
}, { immediate: !0 }), (v, p) => {
|
|
1302
|
-
const
|
|
1303
|
-
return c(),
|
|
1302
|
+
const _ = $e, x = jo, V = ft, k = ke;
|
|
1303
|
+
return c(), h(k, {
|
|
1304
1304
|
modelValue: e.value,
|
|
1305
1305
|
"onUpdate:modelValue": p[5] || (p[5] = (m) => e.value = m),
|
|
1306
|
-
"prepend-icon": `svg:${a(
|
|
1306
|
+
"prepend-icon": `svg:${a(zt)}`,
|
|
1307
1307
|
title: "Settings"
|
|
1308
1308
|
}, {
|
|
1309
|
-
default:
|
|
1310
|
-
t(
|
|
1311
|
-
default:
|
|
1312
|
-
t(
|
|
1313
|
-
default:
|
|
1314
|
-
t(
|
|
1315
|
-
default:
|
|
1316
|
-
t(
|
|
1309
|
+
default: r(() => [
|
|
1310
|
+
t(be, null, {
|
|
1311
|
+
default: r(() => [
|
|
1312
|
+
t(Ve, { scrollable: "" }, {
|
|
1313
|
+
default: r(() => [
|
|
1314
|
+
t(ve, { class: "px-7" }, {
|
|
1315
|
+
default: r(() => [
|
|
1316
|
+
t(_, {
|
|
1317
1317
|
text: "Customize your documentation experience with light and dark themes, as well as a combination of both named.",
|
|
1318
1318
|
title: "Theme"
|
|
1319
1319
|
}),
|
|
1320
1320
|
t(rt, {
|
|
1321
|
-
modelValue: a(
|
|
1322
|
-
"onUpdate:modelValue": p[0] || (p[0] = (m) => a(
|
|
1321
|
+
modelValue: a(i).theme,
|
|
1322
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => a(i).theme = m),
|
|
1323
1323
|
mandatory: ""
|
|
1324
1324
|
}, {
|
|
1325
|
-
default:
|
|
1325
|
+
default: r(() => [
|
|
1326
1326
|
t(ue, { dense: "" }, {
|
|
1327
|
-
default:
|
|
1328
|
-
(c(), L(
|
|
1327
|
+
default: r(() => [
|
|
1328
|
+
(c(), L(T, null, te(l, (m, f) => t(J, {
|
|
1329
1329
|
key: f,
|
|
1330
1330
|
cols: "12",
|
|
1331
1331
|
md: "6"
|
|
1332
1332
|
}, {
|
|
1333
|
-
default:
|
|
1333
|
+
default: r(() => [
|
|
1334
1334
|
t(Pe, {
|
|
1335
1335
|
value: m.value
|
|
1336
1336
|
}, {
|
|
1337
|
-
default:
|
|
1337
|
+
default: r(({ toggle: y, isSelected: O }) => [
|
|
1338
1338
|
t(Be, null, {
|
|
1339
|
-
default:
|
|
1339
|
+
default: r(({ props: z, isHovering: ae }) => [
|
|
1340
1340
|
t(H, R({
|
|
1341
|
-
color:
|
|
1341
|
+
color: O ? "primary" : "surface-variant",
|
|
1342
1342
|
disabled: m.disabled,
|
|
1343
1343
|
image: m.image,
|
|
1344
1344
|
"prepend-icon": m.prependIcon,
|
|
@@ -1347,11 +1347,11 @@ const vt = X("settings", () => {
|
|
|
1347
1347
|
title: m.title,
|
|
1348
1348
|
height: "76",
|
|
1349
1349
|
variant: "tonal"
|
|
1350
|
-
},
|
|
1351
|
-
image:
|
|
1352
|
-
t(
|
|
1350
|
+
}, z, { onClick: y }), {
|
|
1351
|
+
image: r(() => [
|
|
1352
|
+
t(se, {
|
|
1353
1353
|
style: Ye({
|
|
1354
|
-
filter:
|
|
1354
|
+
filter: O || ae ? "none" : "grayscale(100%)"
|
|
1355
1355
|
})
|
|
1356
1356
|
}, null, 8, ["style"])
|
|
1357
1357
|
]),
|
|
@@ -1372,65 +1372,65 @@ const vt = X("settings", () => {
|
|
|
1372
1372
|
]),
|
|
1373
1373
|
_: 1
|
|
1374
1374
|
}, 8, ["modelValue"]),
|
|
1375
|
-
a(o).isSubscriber ? (c(), L(
|
|
1376
|
-
t(
|
|
1377
|
-
t(
|
|
1378
|
-
], 64)) :
|
|
1375
|
+
a(o).isSubscriber ? (c(), L(T, { key: 0 }, [
|
|
1376
|
+
t(G, { class: "mt-6 mb-4" }),
|
|
1377
|
+
t(x)
|
|
1378
|
+
], 64)) : w("", !0)
|
|
1379
1379
|
]),
|
|
1380
1380
|
_: 1
|
|
1381
1381
|
}),
|
|
1382
|
-
t(
|
|
1383
|
-
t(
|
|
1384
|
-
default:
|
|
1385
|
-
t(
|
|
1382
|
+
t(G),
|
|
1383
|
+
t(ve, { class: "px-7" }, {
|
|
1384
|
+
default: r(() => [
|
|
1385
|
+
t(_, {
|
|
1386
1386
|
text: "These options change your browsing experience within Vuetify properties",
|
|
1387
1387
|
title: "Experience"
|
|
1388
1388
|
}),
|
|
1389
|
-
a(o).isSubscriber ? (c(),
|
|
1389
|
+
a(o).isSubscriber ? (c(), h(V, {
|
|
1390
1390
|
key: 0,
|
|
1391
|
-
modelValue: a(
|
|
1392
|
-
"onUpdate:modelValue": p[1] || (p[1] = (m) => a(
|
|
1391
|
+
modelValue: a(i).disableAds,
|
|
1392
|
+
"onUpdate:modelValue": p[1] || (p[1] = (m) => a(i).disableAds = m),
|
|
1393
1393
|
class: "mb-2",
|
|
1394
1394
|
label: "Disable Ads",
|
|
1395
1395
|
messages: "Disable traditional advertisements on all documentation pages."
|
|
1396
|
-
}, null, 8, ["modelValue"])) :
|
|
1397
|
-
t(
|
|
1398
|
-
modelValue: a(
|
|
1399
|
-
"onUpdate:modelValue": p[2] || (p[2] = (m) => a(
|
|
1396
|
+
}, null, 8, ["modelValue"])) : w("", !0),
|
|
1397
|
+
t(V, {
|
|
1398
|
+
modelValue: a(i).quickbar,
|
|
1399
|
+
"onUpdate:modelValue": p[2] || (p[2] = (m) => a(i).quickbar = m),
|
|
1400
1400
|
label: "Enable Quick Actions",
|
|
1401
1401
|
messages: "Quick actions are located on the Vuetify One user menu and provide quick access to common tasks."
|
|
1402
1402
|
}, null, 8, ["modelValue"])
|
|
1403
1403
|
]),
|
|
1404
1404
|
_: 1
|
|
1405
1405
|
}),
|
|
1406
|
-
t(
|
|
1407
|
-
a(o).isSubscriber ? (c(),
|
|
1406
|
+
t(G),
|
|
1407
|
+
a(o).isSubscriber ? (c(), h(ve, {
|
|
1408
1408
|
key: 0,
|
|
1409
1409
|
class: "px-7"
|
|
1410
1410
|
}, {
|
|
1411
|
-
default:
|
|
1412
|
-
t(
|
|
1411
|
+
default: r(() => [
|
|
1412
|
+
t(_, {
|
|
1413
1413
|
text: "Vuetify will communicate with you through banners and notifications. You can disable these features here or reset your local notification cache.",
|
|
1414
1414
|
title: "Communication"
|
|
1415
1415
|
}),
|
|
1416
|
-
t(
|
|
1417
|
-
modelValue: a(
|
|
1418
|
-
"onUpdate:modelValue": p[3] || (p[3] = (m) => a(
|
|
1416
|
+
t(V, {
|
|
1417
|
+
modelValue: a(i).notifications.show,
|
|
1418
|
+
"onUpdate:modelValue": p[3] || (p[3] = (m) => a(i).notifications.show = m),
|
|
1419
1419
|
class: "mb-2",
|
|
1420
1420
|
label: "Enable Notifications",
|
|
1421
1421
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
1422
1422
|
}, null, 8, ["modelValue"]),
|
|
1423
|
-
a(
|
|
1423
|
+
a(i).notifications.show ? (c(), h(V, {
|
|
1424
1424
|
key: 0,
|
|
1425
|
-
modelValue: a(
|
|
1426
|
-
"onUpdate:modelValue": p[4] || (p[4] = (m) => a(
|
|
1425
|
+
modelValue: a(i).notifications.banners,
|
|
1426
|
+
"onUpdate:modelValue": p[4] || (p[4] = (m) => a(i).notifications.banners = m),
|
|
1427
1427
|
class: "mb-2",
|
|
1428
1428
|
label: "Enable Banners",
|
|
1429
1429
|
messages: "Banners are located at the top of the screen and provide a callout for important information."
|
|
1430
|
-
}, null, 8, ["modelValue"])) :
|
|
1430
|
+
}, null, 8, ["modelValue"])) : w("", !0)
|
|
1431
1431
|
]),
|
|
1432
1432
|
_: 1
|
|
1433
|
-
})) :
|
|
1433
|
+
})) : w("", !0)
|
|
1434
1434
|
]),
|
|
1435
1435
|
_: 1
|
|
1436
1436
|
})
|
|
@@ -1442,20 +1442,20 @@ const vt = X("settings", () => {
|
|
|
1442
1442
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
1443
1443
|
};
|
|
1444
1444
|
}
|
|
1445
|
-
}),
|
|
1445
|
+
}), Ro = /* @__PURE__ */ $({
|
|
1446
1446
|
__name: "VoSettingsListItem",
|
|
1447
1447
|
setup(u) {
|
|
1448
1448
|
const e = A(!1);
|
|
1449
1449
|
return (o, n) => {
|
|
1450
|
-
const
|
|
1451
|
-
return c(),
|
|
1450
|
+
const s = Po, i = Q;
|
|
1451
|
+
return c(), h(i, {
|
|
1452
1452
|
active: e.value,
|
|
1453
|
-
"prepend-icon": `svg:${a(
|
|
1453
|
+
"prepend-icon": `svg:${a(Ft)}`,
|
|
1454
1454
|
title: "Settings",
|
|
1455
1455
|
link: ""
|
|
1456
1456
|
}, {
|
|
1457
|
-
default:
|
|
1458
|
-
t(
|
|
1457
|
+
default: r(() => [
|
|
1458
|
+
t(s, {
|
|
1459
1459
|
modelValue: e.value,
|
|
1460
1460
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => e.value = l)
|
|
1461
1461
|
}, null, 8, ["modelValue"])
|
|
@@ -1464,17 +1464,17 @@ const vt = X("settings", () => {
|
|
|
1464
1464
|
}, 8, ["active", "prepend-icon"]);
|
|
1465
1465
|
};
|
|
1466
1466
|
}
|
|
1467
|
-
}),
|
|
1467
|
+
}), Ho = { class: "text-caption" }, Eo = /* @__PURE__ */ $({
|
|
1468
1468
|
__name: "VoSubscriptionInvoices",
|
|
1469
1469
|
setup(u) {
|
|
1470
1470
|
const e = Ue(), o = M();
|
|
1471
|
-
return (n,
|
|
1472
|
-
const
|
|
1473
|
-
return c(),
|
|
1474
|
-
default:
|
|
1475
|
-
t(
|
|
1476
|
-
default:
|
|
1477
|
-
t(
|
|
1471
|
+
return (n, s) => {
|
|
1472
|
+
const i = $e;
|
|
1473
|
+
return c(), h(ue, null, {
|
|
1474
|
+
default: r(() => [
|
|
1475
|
+
t(J, { cols: "12" }, {
|
|
1476
|
+
default: r(() => [
|
|
1477
|
+
t(i, {
|
|
1478
1478
|
text: "View and download your invoice history.",
|
|
1479
1479
|
title: "Invoice History"
|
|
1480
1480
|
}),
|
|
@@ -1483,19 +1483,19 @@ const vt = X("settings", () => {
|
|
|
1483
1483
|
rounded: "lg",
|
|
1484
1484
|
border: ""
|
|
1485
1485
|
}, {
|
|
1486
|
-
default:
|
|
1487
|
-
t(
|
|
1486
|
+
default: r(() => [
|
|
1487
|
+
t(ho, {
|
|
1488
1488
|
items: a(o).invoices,
|
|
1489
1489
|
loading: a(o).isLoading,
|
|
1490
1490
|
sticky: ""
|
|
1491
1491
|
}, {
|
|
1492
|
-
"item.date":
|
|
1493
|
-
g("div",
|
|
1492
|
+
"item.date": r(({ item: l }) => [
|
|
1493
|
+
g("div", Ho, C(a(e).format(new Date(l.date * 1e3), "fullDateWithWeekday")), 1)
|
|
1494
1494
|
]),
|
|
1495
|
-
"item.amount":
|
|
1496
|
-
|
|
1495
|
+
"item.amount": r(({ item: l }) => [
|
|
1496
|
+
B(" $" + C(l.amount / 100), 1)
|
|
1497
1497
|
]),
|
|
1498
|
-
"item.status":
|
|
1498
|
+
"item.status": r(({ item: l }) => [
|
|
1499
1499
|
t(ee, {
|
|
1500
1500
|
text: l.status,
|
|
1501
1501
|
border: "success sm",
|
|
@@ -1506,10 +1506,10 @@ const vt = X("settings", () => {
|
|
|
1506
1506
|
label: ""
|
|
1507
1507
|
}, null, 8, ["text"])
|
|
1508
1508
|
]),
|
|
1509
|
-
"item.pdf":
|
|
1509
|
+
"item.pdf": r(({ item: l }) => [
|
|
1510
1510
|
t(E, {
|
|
1511
1511
|
href: l.pdf,
|
|
1512
|
-
icon: `svg:${a(
|
|
1512
|
+
icon: `svg:${a(jt)}`,
|
|
1513
1513
|
size: "small",
|
|
1514
1514
|
target: "_blank",
|
|
1515
1515
|
variant: "text"
|
|
@@ -1528,14 +1528,14 @@ const vt = X("settings", () => {
|
|
|
1528
1528
|
});
|
|
1529
1529
|
};
|
|
1530
1530
|
}
|
|
1531
|
-
}),
|
|
1531
|
+
}), Wo = { class: "d-flex align-center" }, qo = {
|
|
1532
1532
|
key: "status",
|
|
1533
1533
|
class: "text-capitalize hidden-sm-and-down"
|
|
1534
|
-
},
|
|
1534
|
+
}, Go = /* @__PURE__ */ g("span", { class: "mx-1 hidden-sm-and-down" }, "—", -1), Zo = { class: "me-1" }, Qo = { class: "text-medium-emphasis text-caption" }, Yo = { class: "d-flex align-start justify-space-between text-caption py-2" }, Jo = { class: "font-weight-bold" }, Xo = { class: "font-weight-bold" }, Ko = /* @__PURE__ */ $({
|
|
1535
1535
|
__name: "VoSubscriptionStatus",
|
|
1536
1536
|
emits: ["change:subscription"],
|
|
1537
1537
|
setup(u, { emit: e }) {
|
|
1538
|
-
const o = Ue(), n = M(),
|
|
1538
|
+
const o = Ue(), n = M(), s = e, i = S(() => {
|
|
1539
1539
|
if (!n.info)
|
|
1540
1540
|
return;
|
|
1541
1541
|
const d = new Date(n.info.currentPeriodEnd * 1e3);
|
|
@@ -1545,12 +1545,12 @@ const vt = X("settings", () => {
|
|
|
1545
1545
|
n.interval && (n.isLoading = !0, n.subscribe(n.interval));
|
|
1546
1546
|
}
|
|
1547
1547
|
return (d, v) => {
|
|
1548
|
-
const p =
|
|
1549
|
-
return c(),
|
|
1550
|
-
default:
|
|
1551
|
-
t(
|
|
1552
|
-
default:
|
|
1553
|
-
var
|
|
1548
|
+
const p = pe;
|
|
1549
|
+
return c(), h(ue, null, {
|
|
1550
|
+
default: r(() => [
|
|
1551
|
+
t(J, { cols: "12" }, {
|
|
1552
|
+
default: r(() => {
|
|
1553
|
+
var _, x;
|
|
1554
1554
|
return [
|
|
1555
1555
|
t(H, {
|
|
1556
1556
|
"prepend-icon": "$vuetify",
|
|
@@ -1558,11 +1558,11 @@ const vt = X("settings", () => {
|
|
|
1558
1558
|
title: "Subscription Status",
|
|
1559
1559
|
border: "",
|
|
1560
1560
|
flat: ""
|
|
1561
|
-
},
|
|
1562
|
-
append:
|
|
1563
|
-
var
|
|
1561
|
+
}, W({
|
|
1562
|
+
append: r(() => {
|
|
1563
|
+
var V;
|
|
1564
1564
|
return [
|
|
1565
|
-
a(n).hasBilling && ((
|
|
1565
|
+
a(n).hasBilling && ((V = a(n).info) == null ? void 0 : V.status) === "canceled" ? (c(), h(p, {
|
|
1566
1566
|
key: 0,
|
|
1567
1567
|
loading: a(n).isLoading,
|
|
1568
1568
|
class: "me-2",
|
|
@@ -1571,42 +1571,42 @@ const vt = X("settings", () => {
|
|
|
1571
1571
|
text: "Activate",
|
|
1572
1572
|
variant: "outlined",
|
|
1573
1573
|
onClick: l
|
|
1574
|
-
}, null, 8, ["loading"])) :
|
|
1575
|
-
a(n).hasBilling ? (c(),
|
|
1574
|
+
}, null, 8, ["loading"])) : w("", !0),
|
|
1575
|
+
a(n).hasBilling ? (c(), h(p, {
|
|
1576
1576
|
key: 1,
|
|
1577
1577
|
loading: a(n).isLoading,
|
|
1578
|
-
"prepend-icon": `svg:${a(
|
|
1578
|
+
"prepend-icon": `svg:${a(Mt)}`,
|
|
1579
1579
|
text: "Billing",
|
|
1580
1580
|
onClick: a(n).manage
|
|
1581
|
-
}, null, 8, ["loading", "prepend-icon", "onClick"])) :
|
|
1581
|
+
}, null, 8, ["loading", "prepend-icon", "onClick"])) : w("", !0)
|
|
1582
1582
|
];
|
|
1583
1583
|
}),
|
|
1584
1584
|
_: 2
|
|
1585
1585
|
}, [
|
|
1586
1586
|
a(n).info ? {
|
|
1587
1587
|
name: "subtitle",
|
|
1588
|
-
fn:
|
|
1589
|
-
g("div",
|
|
1590
|
-
g("span",
|
|
1591
|
-
a(n).info.items.length ? (c(), L(
|
|
1592
|
-
|
|
1593
|
-
g("span",
|
|
1594
|
-
|
|
1595
|
-
g("span",
|
|
1588
|
+
fn: r(() => [
|
|
1589
|
+
g("div", Wo, [
|
|
1590
|
+
g("span", qo, C(a(n).info.status), 1),
|
|
1591
|
+
a(n).info.items.length ? (c(), L(T, { key: 0 }, [
|
|
1592
|
+
Go,
|
|
1593
|
+
g("span", Zo, [
|
|
1594
|
+
B(" $" + C(a(n).info.items[0].plan.amount / 100), 1),
|
|
1595
|
+
g("span", Qo, "/" + C(a(n).interval), 1)
|
|
1596
1596
|
]),
|
|
1597
1597
|
t(p, {
|
|
1598
1598
|
size: "x-small",
|
|
1599
1599
|
text: "(Change Subscription)",
|
|
1600
1600
|
variant: "text",
|
|
1601
|
-
onClick: v[0] || (v[0] = (
|
|
1601
|
+
onClick: v[0] || (v[0] = (V) => s("change:subscription"))
|
|
1602
1602
|
})
|
|
1603
|
-
], 64)) :
|
|
1603
|
+
], 64)) : w("", !0)
|
|
1604
1604
|
])
|
|
1605
1605
|
]),
|
|
1606
1606
|
key: "0"
|
|
1607
1607
|
} : {
|
|
1608
1608
|
name: "subtitle",
|
|
1609
|
-
fn:
|
|
1609
|
+
fn: r(() => [
|
|
1610
1610
|
g("div", { class: "d-flex align-center" }, [
|
|
1611
1611
|
t(Qe, {
|
|
1612
1612
|
height: "16",
|
|
@@ -1624,16 +1624,16 @@ const vt = X("settings", () => {
|
|
|
1624
1624
|
key: "1"
|
|
1625
1625
|
}
|
|
1626
1626
|
]), 1024),
|
|
1627
|
-
g("div",
|
|
1627
|
+
g("div", Yo, [
|
|
1628
1628
|
g("div", null, [
|
|
1629
|
-
((
|
|
1630
|
-
|
|
1631
|
-
g("span",
|
|
1632
|
-
|
|
1633
|
-
], 64)) : (c(), L(
|
|
1634
|
-
|
|
1635
|
-
g("span",
|
|
1636
|
-
|
|
1629
|
+
((_ = a(n).info) == null ? void 0 : _.status) === "active" ? (c(), L(T, { key: 0 }, [
|
|
1630
|
+
B(" Your plan renews on "),
|
|
1631
|
+
g("span", Jo, C(a(o).format(i.value, "fullDateWithWeekday")), 1),
|
|
1632
|
+
B(". ")
|
|
1633
|
+
], 64)) : (c(), L(T, { key: 1 }, [
|
|
1634
|
+
B(" Your plan ends on "),
|
|
1635
|
+
g("span", Xo, C(a(o).format((x = a(n).info) == null ? void 0 : x.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1636
|
+
B(". ")
|
|
1637
1637
|
], 64))
|
|
1638
1638
|
])
|
|
1639
1639
|
])
|
|
@@ -1646,7 +1646,7 @@ const vt = X("settings", () => {
|
|
|
1646
1646
|
});
|
|
1647
1647
|
};
|
|
1648
1648
|
}
|
|
1649
|
-
}),
|
|
1649
|
+
}), en = /* @__PURE__ */ g("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The Vuetify One subscription comes with the following perks: ", -1), tn = ["innerHTML"], on = /* @__PURE__ */ g("br", null, null, -1), nn = /* @__PURE__ */ g("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The following features are in development and coming soon: ", -1), sn = ["innerHTML"], an = /* @__PURE__ */ $({
|
|
1650
1650
|
__name: "VoSubscriptionPerks",
|
|
1651
1651
|
setup(u) {
|
|
1652
1652
|
const e = [
|
|
@@ -1659,74 +1659,74 @@ const vt = X("settings", () => {
|
|
|
1659
1659
|
'Special role in the <a href="https://discord.vuetifyjs.com/" target="_blank">Vuetify Discord</a>',
|
|
1660
1660
|
'Save and share your playgrounds with <a href="https://play.vuetifyjs.com" target="_blank">Vuetify Play</a>',
|
|
1661
1661
|
"Receive a special label on GitHub created issues and pull requests"
|
|
1662
|
-
], n = A(!1),
|
|
1663
|
-
return
|
|
1664
|
-
|
|
1665
|
-
}), (
|
|
1662
|
+
], n = A(!1), s = M();
|
|
1663
|
+
return U(n, async (i) => {
|
|
1664
|
+
i && s.subscriptionInfo();
|
|
1665
|
+
}), (i, l) => {
|
|
1666
1666
|
const d = Q;
|
|
1667
|
-
return c(), L(
|
|
1667
|
+
return c(), L(T, null, [
|
|
1668
1668
|
t(Me, { class: "font-weight-black" }, {
|
|
1669
|
-
default:
|
|
1670
|
-
|
|
1669
|
+
default: r(() => [
|
|
1670
|
+
B("Perks")
|
|
1671
1671
|
]),
|
|
1672
1672
|
_: 1
|
|
1673
1673
|
}),
|
|
1674
|
-
|
|
1674
|
+
en,
|
|
1675
1675
|
t(oe, {
|
|
1676
1676
|
lines: !1,
|
|
1677
1677
|
class: "py-0",
|
|
1678
1678
|
density: "compact",
|
|
1679
1679
|
nav: ""
|
|
1680
1680
|
}, {
|
|
1681
|
-
default:
|
|
1682
|
-
(c(), L(
|
|
1681
|
+
default: r(() => [
|
|
1682
|
+
(c(), L(T, null, te(e, (v, p) => t(d, {
|
|
1683
1683
|
key: p,
|
|
1684
1684
|
"prepend-icon": `svg:${a(De)}`,
|
|
1685
1685
|
class: "mb-0"
|
|
1686
1686
|
}, {
|
|
1687
|
-
prepend:
|
|
1687
|
+
prepend: r(() => [
|
|
1688
1688
|
t(D, {
|
|
1689
1689
|
class: "mx-n2",
|
|
1690
1690
|
color: "success",
|
|
1691
1691
|
size: "small"
|
|
1692
1692
|
})
|
|
1693
1693
|
]),
|
|
1694
|
-
title:
|
|
1695
|
-
g("div", { innerHTML: v }, null, 8,
|
|
1694
|
+
title: r(() => [
|
|
1695
|
+
g("div", { innerHTML: v }, null, 8, tn)
|
|
1696
1696
|
]),
|
|
1697
1697
|
_: 2
|
|
1698
1698
|
}, 1032, ["prepend-icon"])), 64))
|
|
1699
1699
|
]),
|
|
1700
1700
|
_: 1
|
|
1701
1701
|
}),
|
|
1702
|
-
|
|
1702
|
+
on,
|
|
1703
1703
|
t(Me, { class: "font-weight-black" }, {
|
|
1704
|
-
default:
|
|
1705
|
-
|
|
1704
|
+
default: r(() => [
|
|
1705
|
+
B("Up Next")
|
|
1706
1706
|
]),
|
|
1707
1707
|
_: 1
|
|
1708
1708
|
}),
|
|
1709
|
-
|
|
1709
|
+
nn,
|
|
1710
1710
|
t(oe, {
|
|
1711
1711
|
lines: !1,
|
|
1712
1712
|
class: "py-0",
|
|
1713
1713
|
density: "compact",
|
|
1714
1714
|
nav: ""
|
|
1715
1715
|
}, {
|
|
1716
|
-
default:
|
|
1717
|
-
(c(), L(
|
|
1716
|
+
default: r(() => [
|
|
1717
|
+
(c(), L(T, null, te(o, (v, p) => t(d, {
|
|
1718
1718
|
key: p,
|
|
1719
|
-
"prepend-icon": `svg:${a(
|
|
1719
|
+
"prepend-icon": `svg:${a(Pt)}`,
|
|
1720
1720
|
class: "mb-0"
|
|
1721
1721
|
}, {
|
|
1722
|
-
prepend:
|
|
1722
|
+
prepend: r(() => [
|
|
1723
1723
|
t(D, {
|
|
1724
1724
|
class: "mx-n2",
|
|
1725
1725
|
size: "small"
|
|
1726
1726
|
})
|
|
1727
1727
|
]),
|
|
1728
|
-
title:
|
|
1729
|
-
g("div", { innerHTML: v }, null, 8,
|
|
1728
|
+
title: r(() => [
|
|
1729
|
+
g("div", { innerHTML: v }, null, 8, sn)
|
|
1730
1730
|
]),
|
|
1731
1731
|
_: 2
|
|
1732
1732
|
}, 1032, ["prepend-icon"])), 64))
|
|
@@ -1736,7 +1736,7 @@ const vt = X("settings", () => {
|
|
|
1736
1736
|
], 64);
|
|
1737
1737
|
};
|
|
1738
1738
|
}
|
|
1739
|
-
}),
|
|
1739
|
+
}), rn = /* @__PURE__ */ $({
|
|
1740
1740
|
__name: "VoSubscriptionSubscribe",
|
|
1741
1741
|
props: {
|
|
1742
1742
|
modelValue: {
|
|
@@ -1747,25 +1747,25 @@ const vt = X("settings", () => {
|
|
|
1747
1747
|
emits: ["update:modelValue"],
|
|
1748
1748
|
setup(u) {
|
|
1749
1749
|
const e = A(!1), o = ie(u, "modelValue"), n = M();
|
|
1750
|
-
return
|
|
1751
|
-
|
|
1752
|
-
}),
|
|
1753
|
-
o.value =
|
|
1754
|
-
}, { immediate: !0 }), (
|
|
1750
|
+
return U(e, async (s) => {
|
|
1751
|
+
s && n.subscriptionInfo();
|
|
1752
|
+
}), U(() => n.interval, (s) => {
|
|
1753
|
+
o.value = s;
|
|
1754
|
+
}, { immediate: !0 }), (s, i) => (c(), h(rt, {
|
|
1755
1755
|
modelValue: o.value,
|
|
1756
|
-
"onUpdate:modelValue":
|
|
1756
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => o.value = l),
|
|
1757
1757
|
mandatory: ""
|
|
1758
1758
|
}, {
|
|
1759
|
-
default:
|
|
1759
|
+
default: r(() => [
|
|
1760
1760
|
t(ue, null, {
|
|
1761
|
-
default:
|
|
1762
|
-
t(
|
|
1761
|
+
default: r(() => [
|
|
1762
|
+
t(J, {
|
|
1763
1763
|
cols: "12",
|
|
1764
1764
|
md: "6"
|
|
1765
1765
|
}, {
|
|
1766
|
-
default:
|
|
1766
|
+
default: r(() => [
|
|
1767
1767
|
t(Pe, { value: "month" }, {
|
|
1768
|
-
default:
|
|
1768
|
+
default: r(({ toggle: l, isSelected: d }) => [
|
|
1769
1769
|
t(H, {
|
|
1770
1770
|
border: d ? "sm primary opacity-100" : "sm",
|
|
1771
1771
|
color: d ? "primary" : void 0,
|
|
@@ -1776,7 +1776,7 @@ const vt = X("settings", () => {
|
|
|
1776
1776
|
title: "Monthly",
|
|
1777
1777
|
onClick: l
|
|
1778
1778
|
}, {
|
|
1779
|
-
prepend:
|
|
1779
|
+
prepend: r(() => [
|
|
1780
1780
|
t(D, { class: "mt-n6" })
|
|
1781
1781
|
]),
|
|
1782
1782
|
_: 2
|
|
@@ -1787,13 +1787,13 @@ const vt = X("settings", () => {
|
|
|
1787
1787
|
]),
|
|
1788
1788
|
_: 1
|
|
1789
1789
|
}),
|
|
1790
|
-
t(
|
|
1790
|
+
t(J, {
|
|
1791
1791
|
cols: "12",
|
|
1792
1792
|
md: "6"
|
|
1793
1793
|
}, {
|
|
1794
|
-
default:
|
|
1794
|
+
default: r(() => [
|
|
1795
1795
|
t(Pe, { value: "year" }, {
|
|
1796
|
-
default:
|
|
1796
|
+
default: r(({ toggle: l, isSelected: d }) => [
|
|
1797
1797
|
t(H, {
|
|
1798
1798
|
border: d ? "sm primary opacity-100" : "sm",
|
|
1799
1799
|
color: d ? "primary" : void 0,
|
|
@@ -1804,10 +1804,10 @@ const vt = X("settings", () => {
|
|
|
1804
1804
|
title: "Yearly",
|
|
1805
1805
|
onClick: l
|
|
1806
1806
|
}, {
|
|
1807
|
-
prepend:
|
|
1807
|
+
prepend: r(() => [
|
|
1808
1808
|
t(D, { class: "mt-n6" })
|
|
1809
1809
|
]),
|
|
1810
|
-
append:
|
|
1810
|
+
append: r(() => [
|
|
1811
1811
|
t(ee, {
|
|
1812
1812
|
class: "mt-n6",
|
|
1813
1813
|
color: "success",
|
|
@@ -1831,7 +1831,7 @@ const vt = X("settings", () => {
|
|
|
1831
1831
|
_: 1
|
|
1832
1832
|
}, 8, ["modelValue"]));
|
|
1833
1833
|
}
|
|
1834
|
-
}),
|
|
1834
|
+
}), ln = { class: "px-3" }, un = /* @__PURE__ */ g("br", null, null, -1), cn = { class: "flex-grow-1 px-4 pb-3 overflow-hidden" }, dn = /* @__PURE__ */ $({
|
|
1835
1835
|
__name: "VoSubscriptionDialog",
|
|
1836
1836
|
props: {
|
|
1837
1837
|
modelValue: { type: Boolean },
|
|
@@ -1840,60 +1840,60 @@ const vt = X("settings", () => {
|
|
|
1840
1840
|
emits: ["update:modelValue"],
|
|
1841
1841
|
setup(u) {
|
|
1842
1842
|
function e(p) {
|
|
1843
|
-
return new Promise((
|
|
1843
|
+
return new Promise((_) => setTimeout(_, p));
|
|
1844
1844
|
}
|
|
1845
|
-
const o = ie(u, "modelValue"), n = M(),
|
|
1846
|
-
|
|
1845
|
+
const o = ie(u, "modelValue"), n = M(), s = me(), i = A(n.interval), l = A(n.hasBilling ? "status" : "subscribe"), d = A(!1);
|
|
1846
|
+
U(i, (p) => {
|
|
1847
1847
|
!n.isSubscriber || !n.interval || (d.value = p !== n.interval);
|
|
1848
|
-
}),
|
|
1848
|
+
}), U(o, async (p) => {
|
|
1849
1849
|
if (!p || !n.isSubscriber) {
|
|
1850
1850
|
p || n.resetQuery();
|
|
1851
1851
|
return;
|
|
1852
1852
|
}
|
|
1853
1853
|
n.subscriptionInfo();
|
|
1854
|
-
}),
|
|
1855
|
-
!n.sessionId && !["subscribe", "status"].includes(
|
|
1854
|
+
}), U(s, async () => {
|
|
1855
|
+
!n.sessionId && !["subscribe", "status"].includes(s.value.one) || (l.value = n.sessionId || s.value.one === "status" ? "status" : "subscribe", n.isOpen = !0, await ce(), o.value = !0);
|
|
1856
1856
|
}, { immediate: !0 });
|
|
1857
1857
|
async function v() {
|
|
1858
|
-
await n.modify(
|
|
1858
|
+
await n.modify(i.value), await n.subscriptionInfo(), d.value = null, await e(3e3), l.value = "status", await e(300), d.value = !1;
|
|
1859
1859
|
}
|
|
1860
|
-
return (p,
|
|
1861
|
-
const
|
|
1862
|
-
return c(),
|
|
1860
|
+
return (p, _) => {
|
|
1861
|
+
const x = $e, V = rn, k = an, m = Ko, f = Eo, y = pe, O = ke;
|
|
1862
|
+
return c(), h(O, {
|
|
1863
1863
|
modelValue: o.value,
|
|
1864
|
-
"onUpdate:modelValue":
|
|
1865
|
-
"prepend-icon": `svg:${a(
|
|
1864
|
+
"onUpdate:modelValue": _[4] || (_[4] = (z) => o.value = z),
|
|
1865
|
+
"prepend-icon": `svg:${a(Rt)}`,
|
|
1866
1866
|
title: "Subscriptions"
|
|
1867
|
-
},
|
|
1868
|
-
default:
|
|
1869
|
-
t(
|
|
1870
|
-
default:
|
|
1871
|
-
t(
|
|
1872
|
-
default:
|
|
1873
|
-
g("div",
|
|
1874
|
-
t(
|
|
1875
|
-
default:
|
|
1876
|
-
t(
|
|
1867
|
+
}, W({
|
|
1868
|
+
default: r(() => [
|
|
1869
|
+
t(be, null, {
|
|
1870
|
+
default: r(() => [
|
|
1871
|
+
t(Ve, { scrollable: "" }, {
|
|
1872
|
+
default: r(() => [
|
|
1873
|
+
g("div", ln, [
|
|
1874
|
+
t(ve, null, {
|
|
1875
|
+
default: r(() => [
|
|
1876
|
+
t(x, {
|
|
1877
1877
|
text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
|
|
1878
1878
|
title: "Vuetify One"
|
|
1879
1879
|
}),
|
|
1880
1880
|
t(lt, { "model-value": l.value }, {
|
|
1881
|
-
default:
|
|
1882
|
-
t(
|
|
1883
|
-
default:
|
|
1884
|
-
t(
|
|
1885
|
-
modelValue:
|
|
1886
|
-
"onUpdate:modelValue":
|
|
1881
|
+
default: r(() => [
|
|
1882
|
+
t(he, { value: "subscribe" }, {
|
|
1883
|
+
default: r(() => [
|
|
1884
|
+
t(V, {
|
|
1885
|
+
modelValue: i.value,
|
|
1886
|
+
"onUpdate:modelValue": _[0] || (_[0] = (z) => i.value = z)
|
|
1887
1887
|
}, null, 8, ["modelValue"]),
|
|
1888
|
-
|
|
1889
|
-
t(
|
|
1888
|
+
un,
|
|
1889
|
+
t(k)
|
|
1890
1890
|
]),
|
|
1891
1891
|
_: 1
|
|
1892
1892
|
}),
|
|
1893
|
-
t(
|
|
1894
|
-
default:
|
|
1893
|
+
t(he, { value: "status" }, {
|
|
1894
|
+
default: r(() => [
|
|
1895
1895
|
t(m, {
|
|
1896
|
-
"onChange:subscription":
|
|
1896
|
+
"onChange:subscription": _[1] || (_[1] = (z) => l.value = "subscribe")
|
|
1897
1897
|
}),
|
|
1898
1898
|
t(f)
|
|
1899
1899
|
]),
|
|
@@ -1917,35 +1917,35 @@ const vt = X("settings", () => {
|
|
|
1917
1917
|
}, [
|
|
1918
1918
|
l.value === "subscribe" ? {
|
|
1919
1919
|
name: "actions",
|
|
1920
|
-
fn:
|
|
1921
|
-
g("div",
|
|
1922
|
-
d.value !== !1 ? (c(),
|
|
1920
|
+
fn: r(() => [
|
|
1921
|
+
g("div", cn, [
|
|
1922
|
+
d.value !== !1 ? (c(), h(y, {
|
|
1923
1923
|
key: 0,
|
|
1924
1924
|
loading: a(n).isLoading,
|
|
1925
|
-
"prepend-icon": `svg:${d.value !== null ? a(
|
|
1925
|
+
"prepend-icon": `svg:${d.value !== null ? a(Ht) : a(Ce)}`,
|
|
1926
1926
|
readonly: d.value === null,
|
|
1927
1927
|
text: d.value !== null ? "Modify Subscription" : "Success",
|
|
1928
1928
|
color: "success",
|
|
1929
1929
|
size: "default",
|
|
1930
1930
|
block: "",
|
|
1931
1931
|
onClick: v
|
|
1932
|
-
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : a(n).isSubscriber ? (c(),
|
|
1932
|
+
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : a(n).isSubscriber ? (c(), h(y, {
|
|
1933
1933
|
key: 2,
|
|
1934
|
-
"prepend-icon": `svg:${a(
|
|
1934
|
+
"prepend-icon": `svg:${a(Et)}`,
|
|
1935
1935
|
size: "default",
|
|
1936
1936
|
text: "Manage Subscription",
|
|
1937
1937
|
block: "",
|
|
1938
|
-
onClick:
|
|
1939
|
-
}, null, 8, ["prepend-icon"])) : (c(),
|
|
1938
|
+
onClick: _[3] || (_[3] = (z) => l.value = "status")
|
|
1939
|
+
}, null, 8, ["prepend-icon"])) : (c(), h(y, {
|
|
1940
1940
|
key: 1,
|
|
1941
|
-
color:
|
|
1942
|
-
disabled: !
|
|
1941
|
+
color: i.value ? "primary" : "disabled",
|
|
1942
|
+
disabled: !i.value,
|
|
1943
1943
|
loading: a(n).isLoading,
|
|
1944
1944
|
"prepend-icon": "$vuetify",
|
|
1945
1945
|
size: "default",
|
|
1946
1946
|
text: "Activate Subscription",
|
|
1947
1947
|
block: "",
|
|
1948
|
-
onClick:
|
|
1948
|
+
onClick: _[2] || (_[2] = (z) => a(n).subscribe(i.value))
|
|
1949
1949
|
}, null, 8, ["color", "disabled", "loading"]))
|
|
1950
1950
|
])
|
|
1951
1951
|
]),
|
|
@@ -1954,20 +1954,20 @@ const vt = X("settings", () => {
|
|
|
1954
1954
|
]), 1032, ["modelValue", "prepend-icon"]);
|
|
1955
1955
|
};
|
|
1956
1956
|
}
|
|
1957
|
-
}),
|
|
1957
|
+
}), pn = /* @__PURE__ */ $({
|
|
1958
1958
|
__name: "VoSubscriptionListItem",
|
|
1959
1959
|
setup(u) {
|
|
1960
1960
|
const e = A(!1);
|
|
1961
1961
|
return (o, n) => {
|
|
1962
|
-
const
|
|
1963
|
-
return c(),
|
|
1962
|
+
const s = dn, i = Q;
|
|
1963
|
+
return c(), h(i, {
|
|
1964
1964
|
active: e.value,
|
|
1965
|
-
"prepend-icon": `svg:${a(
|
|
1965
|
+
"prepend-icon": `svg:${a(Wt)}`,
|
|
1966
1966
|
title: "Subscriptions",
|
|
1967
1967
|
link: ""
|
|
1968
1968
|
}, {
|
|
1969
|
-
default:
|
|
1970
|
-
t(
|
|
1969
|
+
default: r(() => [
|
|
1970
|
+
t(s, {
|
|
1971
1971
|
modelValue: e.value,
|
|
1972
1972
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => e.value = l)
|
|
1973
1973
|
}, null, 8, ["modelValue"])
|
|
@@ -1976,10 +1976,10 @@ const vt = X("settings", () => {
|
|
|
1976
1976
|
}, 8, ["active", "prepend-icon"]);
|
|
1977
1977
|
};
|
|
1978
1978
|
}
|
|
1979
|
-
}),
|
|
1979
|
+
}), mn = {
|
|
1980
1980
|
key: 0,
|
|
1981
1981
|
class: "text-success"
|
|
1982
|
-
}, Te = /* @__PURE__ */
|
|
1982
|
+
}, Te = /* @__PURE__ */ $({
|
|
1983
1983
|
__name: "VoSponsorshipsTimelineItem",
|
|
1984
1984
|
props: {
|
|
1985
1985
|
title: {},
|
|
@@ -1992,58 +1992,58 @@ const vt = X("settings", () => {
|
|
|
1992
1992
|
},
|
|
1993
1993
|
setup(u) {
|
|
1994
1994
|
const e = u, o = vt(), n = S(() => {
|
|
1995
|
-
var
|
|
1996
|
-
return `$${parseFloat(String((((
|
|
1995
|
+
var i, l;
|
|
1996
|
+
return `$${parseFloat(String((((i = e.sponsorship) == null ? void 0 : i.amount) ?? 0) / 100)).toFixed(2)} /${(l = e.sponsorship) == null ? void 0 : l.interval}`;
|
|
1997
1997
|
});
|
|
1998
|
-
return (
|
|
1998
|
+
return (s, i) => {
|
|
1999
1999
|
var d, v;
|
|
2000
|
-
const l =
|
|
2001
|
-
return c(),
|
|
2002
|
-
"dot-color": (d =
|
|
2003
|
-
icon: (v =
|
|
2000
|
+
const l = pe;
|
|
2001
|
+
return c(), h(_o, {
|
|
2002
|
+
"dot-color": (d = s.sponsorship) != null && d.isActive ? "success" : "transparent",
|
|
2003
|
+
icon: (v = s.sponsorship) != null && v.isActive ? `svg:${a(De)}` : void 0,
|
|
2004
2004
|
size: "x-small",
|
|
2005
2005
|
width: "100%"
|
|
2006
2006
|
}, {
|
|
2007
|
-
default:
|
|
2007
|
+
default: r(() => [
|
|
2008
2008
|
t(H, {
|
|
2009
|
-
"prepend-avatar": `${a(o).CDN_URL}logos/${
|
|
2010
|
-
title:
|
|
2009
|
+
"prepend-avatar": `${a(o).CDN_URL}logos/${s.logo}.png`,
|
|
2010
|
+
title: s.title,
|
|
2011
2011
|
rounded: "lg",
|
|
2012
2012
|
variant: "text",
|
|
2013
2013
|
border: ""
|
|
2014
2014
|
}, {
|
|
2015
|
-
subtitle:
|
|
2015
|
+
subtitle: r(() => {
|
|
2016
2016
|
var p;
|
|
2017
2017
|
return [
|
|
2018
|
-
(p =
|
|
2018
|
+
(p = s.sponsorship) != null && p.isActive ? (c(), L("div", mn, [
|
|
2019
2019
|
t(D, {
|
|
2020
|
-
icon: `svg:${a(
|
|
2020
|
+
icon: `svg:${a(qt)}`,
|
|
2021
2021
|
size: "x-small"
|
|
2022
2022
|
}, null, 8, ["icon"]),
|
|
2023
|
-
|
|
2024
|
-
])) : (c(), L(
|
|
2025
|
-
|
|
2023
|
+
B(" " + C(n.value), 1)
|
|
2024
|
+
])) : (c(), L(T, { key: 1 }, [
|
|
2025
|
+
B(C(s.text), 1)
|
|
2026
2026
|
], 64))
|
|
2027
2027
|
];
|
|
2028
2028
|
}),
|
|
2029
|
-
append:
|
|
2030
|
-
var p,
|
|
2029
|
+
append: r(() => {
|
|
2030
|
+
var p, _, x, V, k, m;
|
|
2031
2031
|
return [
|
|
2032
|
-
|
|
2032
|
+
s.disabled ? (c(), h(l, {
|
|
2033
2033
|
key: 1,
|
|
2034
2034
|
color: "surface-variant",
|
|
2035
2035
|
text: "Coming Soon",
|
|
2036
2036
|
readonly: ""
|
|
2037
|
-
})) : (c(),
|
|
2037
|
+
})) : (c(), h(l, {
|
|
2038
2038
|
key: 0,
|
|
2039
2039
|
active: !1,
|
|
2040
|
-
color: (p =
|
|
2041
|
-
href: (
|
|
2042
|
-
"prepend-icon": `svg:${(
|
|
2043
|
-
readonly: (
|
|
2044
|
-
target: (
|
|
2045
|
-
text: (m =
|
|
2046
|
-
to:
|
|
2040
|
+
color: (p = s.sponsorship) != null && p.isActive ? "success" : "primary",
|
|
2041
|
+
href: (_ = s.sponsorship) != null && _.isActive || s.to ? void 0 : s.href,
|
|
2042
|
+
"prepend-icon": `svg:${(x = s.sponsorship) != null && x.isActive ? a(Ce) : a(Ae)}`,
|
|
2043
|
+
readonly: (V = s.sponsorship) == null ? void 0 : V.isActive,
|
|
2044
|
+
target: (k = s.sponsorship) != null && k.isActive || s.to ? void 0 : "_blank",
|
|
2045
|
+
text: (m = s.sponsorship) != null && m.isActive ? "Active" : "Info",
|
|
2046
|
+
to: s.to,
|
|
2047
2047
|
width: "88"
|
|
2048
2048
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text", "to"]))
|
|
2049
2049
|
];
|
|
@@ -2055,12 +2055,12 @@ const vt = X("settings", () => {
|
|
|
2055
2055
|
}, 8, ["dot-color", "icon"]);
|
|
2056
2056
|
};
|
|
2057
2057
|
}
|
|
2058
|
-
}),
|
|
2058
|
+
}), fn = /* @__PURE__ */ $({
|
|
2059
2059
|
__name: "VoSponsorshipsTimelineItemPatreon",
|
|
2060
2060
|
setup(u) {
|
|
2061
2061
|
return (e, o) => {
|
|
2062
2062
|
const n = Te;
|
|
2063
|
-
return c(),
|
|
2063
|
+
return c(), h(n, {
|
|
2064
2064
|
logo: "patreon",
|
|
2065
2065
|
text: "Support Vuetify through Patreon.",
|
|
2066
2066
|
title: "Patreon Subscriber",
|
|
@@ -2068,13 +2068,13 @@ const vt = X("settings", () => {
|
|
|
2068
2068
|
});
|
|
2069
2069
|
};
|
|
2070
2070
|
}
|
|
2071
|
-
}),
|
|
2071
|
+
}), vn = /* @__PURE__ */ $({
|
|
2072
2072
|
__name: "VoSponsorshipsTimelineItemDiscord",
|
|
2073
2073
|
setup(u) {
|
|
2074
2074
|
const e = M();
|
|
2075
2075
|
return (o, n) => {
|
|
2076
|
-
const
|
|
2077
|
-
return c(),
|
|
2076
|
+
const s = Te;
|
|
2077
|
+
return c(), h(s, {
|
|
2078
2078
|
sponsorship: a(e).discord,
|
|
2079
2079
|
href: "https://discord.com/servers/vuetify-340160225338195969",
|
|
2080
2080
|
logo: "discord",
|
|
@@ -2083,13 +2083,13 @@ const vt = X("settings", () => {
|
|
|
2083
2083
|
}, null, 8, ["sponsorship"]);
|
|
2084
2084
|
};
|
|
2085
2085
|
}
|
|
2086
|
-
}),
|
|
2086
|
+
}), hn = /* @__PURE__ */ $({
|
|
2087
2087
|
__name: "VoSponsorshipsTimelineItemGithub",
|
|
2088
2088
|
setup(u) {
|
|
2089
2089
|
const e = M();
|
|
2090
2090
|
return (o, n) => {
|
|
2091
|
-
const
|
|
2092
|
-
return c(),
|
|
2091
|
+
const s = Te;
|
|
2092
|
+
return c(), h(s, {
|
|
2093
2093
|
sponsorship: a(e).github,
|
|
2094
2094
|
href: "https://github.com/sponsors/johnleider",
|
|
2095
2095
|
logo: "github",
|
|
@@ -2098,13 +2098,13 @@ const vt = X("settings", () => {
|
|
|
2098
2098
|
}, null, 8, ["sponsorship"]);
|
|
2099
2099
|
};
|
|
2100
2100
|
}
|
|
2101
|
-
}), _n = /* @__PURE__ */
|
|
2101
|
+
}), _n = /* @__PURE__ */ $({
|
|
2102
2102
|
__name: "VoSponsorshipsTimelineItemOne",
|
|
2103
2103
|
setup(u) {
|
|
2104
2104
|
const e = M();
|
|
2105
2105
|
return (o, n) => {
|
|
2106
|
-
const
|
|
2107
|
-
return c(),
|
|
2106
|
+
const s = Te;
|
|
2107
|
+
return c(), h(s, {
|
|
2108
2108
|
sponsorship: a(e).one,
|
|
2109
2109
|
logo: "one",
|
|
2110
2110
|
text: "Support Vuetify through Vuetify One.",
|
|
@@ -2113,29 +2113,29 @@ const vt = X("settings", () => {
|
|
|
2113
2113
|
}, null, 8, ["sponsorship"]);
|
|
2114
2114
|
};
|
|
2115
2115
|
}
|
|
2116
|
-
}),
|
|
2116
|
+
}), gn = /* @__PURE__ */ $({
|
|
2117
2117
|
__name: "VoSponsorshipsTimeline",
|
|
2118
2118
|
setup(u) {
|
|
2119
2119
|
return (e, o) => {
|
|
2120
|
-
const n = _n,
|
|
2121
|
-
return c(),
|
|
2120
|
+
const n = _n, s = hn, i = vn, l = fn;
|
|
2121
|
+
return c(), h(go, {
|
|
2122
2122
|
class: "justify-start ms-n7",
|
|
2123
2123
|
"line-inset": "12",
|
|
2124
2124
|
side: "end",
|
|
2125
2125
|
style: { "grid-template-columns": "auto auto 1fr" },
|
|
2126
2126
|
"truncate-line": "both"
|
|
2127
2127
|
}, {
|
|
2128
|
-
default:
|
|
2128
|
+
default: r(() => [
|
|
2129
2129
|
t(n),
|
|
2130
|
+
t(s),
|
|
2130
2131
|
t(i),
|
|
2131
|
-
t(r),
|
|
2132
2132
|
t(l)
|
|
2133
2133
|
]),
|
|
2134
2134
|
_: 1
|
|
2135
2135
|
});
|
|
2136
2136
|
};
|
|
2137
2137
|
}
|
|
2138
|
-
}),
|
|
2138
|
+
}), yn = { class: "px-3 pb-5 d-flex flex-column h-100" }, bn = { class: "font-weight-black" }, Vn = { class: "text-caption text-medium-emphasis" }, kn = /* @__PURE__ */ $({
|
|
2139
2139
|
__name: "VoSponsorshipsDialog",
|
|
2140
2140
|
props: {
|
|
2141
2141
|
modelValue: { type: Boolean },
|
|
@@ -2143,25 +2143,25 @@ const vt = X("settings", () => {
|
|
|
2143
2143
|
},
|
|
2144
2144
|
emits: ["update:modelValue"],
|
|
2145
2145
|
setup(u) {
|
|
2146
|
-
const e = ie(u, "modelValue"), o =
|
|
2147
|
-
return
|
|
2148
|
-
o.value.one === "sponsorships" && (
|
|
2149
|
-
}, { immediate: !0 }), (
|
|
2150
|
-
const d = $e, v =
|
|
2151
|
-
return c(), _
|
|
2146
|
+
const e = ie(u, "modelValue"), o = me(), n = j(), s = M();
|
|
2147
|
+
return U(o, async () => {
|
|
2148
|
+
o.value.one === "sponsorships" && (s.isOpen = !0, await ce(), e.value = !0);
|
|
2149
|
+
}, { immediate: !0 }), (i, l) => {
|
|
2150
|
+
const d = $e, v = gn, p = He("v-empty-state"), _ = ke;
|
|
2151
|
+
return c(), h(_, {
|
|
2152
2152
|
modelValue: e.value,
|
|
2153
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
2154
|
-
"prepend-icon": `svg:${a(
|
|
2153
|
+
"onUpdate:modelValue": l[0] || (l[0] = (x) => e.value = x),
|
|
2154
|
+
"prepend-icon": `svg:${a(Gt)}`,
|
|
2155
2155
|
title: "Sponsorships"
|
|
2156
2156
|
}, {
|
|
2157
|
-
default:
|
|
2158
|
-
t(
|
|
2159
|
-
default:
|
|
2160
|
-
t(
|
|
2161
|
-
default:
|
|
2162
|
-
g("div",
|
|
2163
|
-
t(
|
|
2164
|
-
default:
|
|
2157
|
+
default: r(() => [
|
|
2158
|
+
t(be, null, {
|
|
2159
|
+
default: r(() => [
|
|
2160
|
+
t(Ve, { scrollable: "" }, {
|
|
2161
|
+
default: r(() => [
|
|
2162
|
+
g("div", yn, [
|
|
2163
|
+
t(ve, { class: "flex-0-0 mb-16 mb-sm-4" }, {
|
|
2164
|
+
default: r(() => [
|
|
2165
2165
|
t(d, {
|
|
2166
2166
|
text: "Support Vuetify through GitHub Sponsors, Discord, or Patreon to unlock exclusive benefits and content.",
|
|
2167
2167
|
title: "Support Vuetify"
|
|
@@ -2176,17 +2176,17 @@ const vt = X("settings", () => {
|
|
|
2176
2176
|
"min-height": "auto",
|
|
2177
2177
|
size: "128"
|
|
2178
2178
|
}, {
|
|
2179
|
-
media:
|
|
2179
|
+
media: r(() => [
|
|
2180
2180
|
t(D, {
|
|
2181
2181
|
color: a(n).isSubscriber ? "success" : "error"
|
|
2182
2182
|
}, null, 8, ["color"])
|
|
2183
2183
|
]),
|
|
2184
|
-
title:
|
|
2185
|
-
|
|
2186
|
-
g("span",
|
|
2184
|
+
title: r(() => [
|
|
2185
|
+
B(" One Status: "),
|
|
2186
|
+
g("span", bn, C(a(n).isSubscriber ? "Active" : "Inactive"), 1)
|
|
2187
2187
|
]),
|
|
2188
|
-
text:
|
|
2189
|
-
g("div",
|
|
2188
|
+
text: r(() => [
|
|
2189
|
+
g("div", Vn, C(a(n).isSubscriber ? "You are currently receiving benefits from Vuetify One." : "Login to activate Vuetify One benefits"), 1)
|
|
2190
2190
|
]),
|
|
2191
2191
|
_: 1
|
|
2192
2192
|
})
|
|
@@ -2202,20 +2202,20 @@ const vt = X("settings", () => {
|
|
|
2202
2202
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2203
2203
|
};
|
|
2204
2204
|
}
|
|
2205
|
-
}),
|
|
2205
|
+
}), $n = /* @__PURE__ */ $({
|
|
2206
2206
|
__name: "VoSponsorshipsListItem",
|
|
2207
2207
|
setup(u) {
|
|
2208
2208
|
const e = A(!1);
|
|
2209
2209
|
return (o, n) => {
|
|
2210
|
-
const
|
|
2211
|
-
return c(),
|
|
2210
|
+
const s = kn, i = Q;
|
|
2211
|
+
return c(), h(i, {
|
|
2212
2212
|
active: e.value,
|
|
2213
|
-
"prepend-icon": `svg:${a(
|
|
2213
|
+
"prepend-icon": `svg:${a(Zt)}`,
|
|
2214
2214
|
title: "Sponsorships",
|
|
2215
2215
|
link: ""
|
|
2216
2216
|
}, {
|
|
2217
|
-
default:
|
|
2218
|
-
t(
|
|
2217
|
+
default: r(() => [
|
|
2218
|
+
t(s, {
|
|
2219
2219
|
modelValue: e.value,
|
|
2220
2220
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => e.value = l)
|
|
2221
2221
|
}, null, 8, ["modelValue"])
|
|
@@ -2224,13 +2224,13 @@ const vt = X("settings", () => {
|
|
|
2224
2224
|
}, 8, ["active", "prepend-icon"]);
|
|
2225
2225
|
};
|
|
2226
2226
|
}
|
|
2227
|
-
}),
|
|
2227
|
+
}), xn = (u) => (Vt("data-v-40687c9d"), u = u(), kt(), u), wn = {
|
|
2228
2228
|
key: 0,
|
|
2229
2229
|
class: "v-footer__image"
|
|
2230
|
-
},
|
|
2230
|
+
}, Sn = ["href", "title"], Cn = {
|
|
2231
2231
|
class: "text-caption text-disabled",
|
|
2232
2232
|
style: { position: "absolute", right: "16px" }
|
|
2233
|
-
},
|
|
2233
|
+
}, Ln = /* @__PURE__ */ xn(() => /* @__PURE__ */ g("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), In = /* @__PURE__ */ $({
|
|
2234
2234
|
__name: "VoFooter",
|
|
2235
2235
|
props: {
|
|
2236
2236
|
image: {}
|
|
@@ -2244,7 +2244,7 @@ const vt = X("settings", () => {
|
|
|
2244
2244
|
},
|
|
2245
2245
|
{
|
|
2246
2246
|
title: "Vuetify Support",
|
|
2247
|
-
icon: `svg:${
|
|
2247
|
+
icon: `svg:${Qt}`,
|
|
2248
2248
|
href: "https://support.vuetifyjs.com/"
|
|
2249
2249
|
},
|
|
2250
2250
|
{
|
|
@@ -2264,50 +2264,50 @@ const vt = X("settings", () => {
|
|
|
2264
2264
|
},
|
|
2265
2265
|
{
|
|
2266
2266
|
title: "Vuetify Reddit",
|
|
2267
|
-
icon: `svg:${
|
|
2267
|
+
icon: `svg:${Yt}`,
|
|
2268
2268
|
href: "https://reddit.com/r/vuetifyjs"
|
|
2269
2269
|
}
|
|
2270
2270
|
];
|
|
2271
|
-
return (o, n) => (c(),
|
|
2271
|
+
return (o, n) => (c(), h(yo, {
|
|
2272
2272
|
class: "vo-footer",
|
|
2273
2273
|
height: "40"
|
|
2274
2274
|
}, {
|
|
2275
|
-
default:
|
|
2276
|
-
o.image || o.$slots.image ? (c(), L("div",
|
|
2277
|
-
o.$slots.image ? P(o.$slots, "image", { key: 0 }, void 0, !0) : (c(),
|
|
2275
|
+
default: r(() => [
|
|
2276
|
+
o.image || o.$slots.image ? (c(), L("div", wn, [
|
|
2277
|
+
o.$slots.image ? P(o.$slots, "image", { key: 0 }, void 0, !0) : (c(), h(se, {
|
|
2278
2278
|
key: 1,
|
|
2279
2279
|
src: o.image,
|
|
2280
2280
|
position: "left",
|
|
2281
2281
|
cover: ""
|
|
2282
2282
|
}, null, 8, ["src"]))
|
|
2283
|
-
])) :
|
|
2284
|
-
(c(), L(
|
|
2285
|
-
key:
|
|
2286
|
-
href:
|
|
2287
|
-
title:
|
|
2283
|
+
])) : w("", !0),
|
|
2284
|
+
(c(), L(T, null, te(e, (s) => g("a", {
|
|
2285
|
+
key: s.title,
|
|
2286
|
+
href: s.href,
|
|
2287
|
+
title: s.title,
|
|
2288
2288
|
class: "d-inline-block mx-2 social-link",
|
|
2289
2289
|
rel: "noopener noreferrer",
|
|
2290
2290
|
target: "_blank"
|
|
2291
2291
|
}, [
|
|
2292
2292
|
t(D, {
|
|
2293
|
-
icon:
|
|
2294
|
-
size:
|
|
2293
|
+
icon: s.icon,
|
|
2294
|
+
size: s.icon === "$vuetify" ? 24 : 16
|
|
2295
2295
|
}, null, 8, ["icon", "size"])
|
|
2296
|
-
], 8,
|
|
2297
|
-
g("div",
|
|
2298
|
-
|
|
2299
|
-
|
|
2296
|
+
], 8, Sn)), 64)),
|
|
2297
|
+
g("div", Cn, [
|
|
2298
|
+
B(" © 2016-" + C((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
|
|
2299
|
+
Ln
|
|
2300
2300
|
])
|
|
2301
2301
|
]),
|
|
2302
2302
|
_: 3
|
|
2303
2303
|
}));
|
|
2304
2304
|
}
|
|
2305
|
-
}),
|
|
2305
|
+
}), Dn = (u, e) => {
|
|
2306
2306
|
const o = u.__vccOpts || u;
|
|
2307
|
-
for (const [n,
|
|
2308
|
-
o[n] =
|
|
2307
|
+
for (const [n, s] of e)
|
|
2308
|
+
o[n] = s;
|
|
2309
2309
|
return o;
|
|
2310
|
-
},
|
|
2310
|
+
}, ht = /* @__PURE__ */ Dn(In, [["__scopeId", "data-v-40687c9d"]]), An = /* @__PURE__ */ g("h2", { class: "text-h4" }, " Configuration Tooling ", -1), On = /* @__PURE__ */ g("p", { class: "text-subtitle-1 text-medium-emphasis" }, " Coming soon to Vuetify One ", -1), Un = { class: "text-uppercase text-info" }, Bn = { class: "text-h6 mb-2" }, Nn = { class: "text-caption" }, Tn = /* @__PURE__ */ g("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__ */ $({
|
|
2311
2311
|
__name: "VoStudioDialog",
|
|
2312
2312
|
props: /* @__PURE__ */ Je({
|
|
2313
2313
|
prependIcon: {}
|
|
@@ -2317,7 +2317,7 @@ const vt = X("settings", () => {
|
|
|
2317
2317
|
}),
|
|
2318
2318
|
emits: ["update:modelValue"],
|
|
2319
2319
|
setup(u) {
|
|
2320
|
-
const e = ie(u, "modelValue"), o =
|
|
2320
|
+
const e = ie(u, "modelValue"), o = me(), n = Ie(), s = j(), i = M(), { smAndUp: l } = re(), d = [
|
|
2321
2321
|
{
|
|
2322
2322
|
title: "Customize",
|
|
2323
2323
|
subtitle: "Customize your Vuetify theme, components, and more with the Vuetify Studio.",
|
|
@@ -2337,26 +2337,26 @@ const vt = X("settings", () => {
|
|
|
2337
2337
|
image: "https://cdn.vuetifyjs.com/docs/images/one/studio/export.png"
|
|
2338
2338
|
}
|
|
2339
2339
|
];
|
|
2340
|
-
|
|
2341
|
-
o.value.one === "studio" && (
|
|
2340
|
+
U(o, async () => {
|
|
2341
|
+
o.value.one === "studio" && (i.isOpen = !0, await ce(), e.value = !0);
|
|
2342
2342
|
}, { immediate: !0 });
|
|
2343
2343
|
function v() {
|
|
2344
2344
|
e.value = !1, n.push({ query: { one: "subscribe" } });
|
|
2345
2345
|
}
|
|
2346
|
-
return (p,
|
|
2347
|
-
const
|
|
2348
|
-
return c(),
|
|
2346
|
+
return (p, _) => {
|
|
2347
|
+
const x = pe, V = ht, k = ke;
|
|
2348
|
+
return c(), h(k, {
|
|
2349
2349
|
modelValue: e.value,
|
|
2350
|
-
"onUpdate:modelValue":
|
|
2350
|
+
"onUpdate:modelValue": _[0] || (_[0] = (m) => e.value = m),
|
|
2351
2351
|
"prepend-icon": p.prependIcon,
|
|
2352
2352
|
title: "Vuetify Studio"
|
|
2353
2353
|
}, {
|
|
2354
|
-
default:
|
|
2355
|
-
t(
|
|
2356
|
-
default:
|
|
2357
|
-
t(
|
|
2358
|
-
default:
|
|
2359
|
-
t(
|
|
2354
|
+
default: r(() => [
|
|
2355
|
+
t(be, null, {
|
|
2356
|
+
default: r(() => [
|
|
2357
|
+
t(Ve, { scrollable: "" }, {
|
|
2358
|
+
default: r(() => [
|
|
2359
|
+
t(se, {
|
|
2360
2360
|
"content-class": "d-flex align-center justify-center flex-column",
|
|
2361
2361
|
gradient: "to top right, rgba(var(--v-theme-primary),.8), rgba(0,0,0,.9)",
|
|
2362
2362
|
height: "350",
|
|
@@ -2365,59 +2365,59 @@ const vt = X("settings", () => {
|
|
|
2365
2365
|
src: "https://cdn.vuetifyjs.com/docs/images/one/studio/hero.png",
|
|
2366
2366
|
cover: ""
|
|
2367
2367
|
}, {
|
|
2368
|
-
default:
|
|
2368
|
+
default: r(() => [
|
|
2369
2369
|
t(H, {
|
|
2370
2370
|
class: "text-center pa-3",
|
|
2371
2371
|
color: "surface",
|
|
2372
2372
|
rounded: "xl",
|
|
2373
2373
|
flat: ""
|
|
2374
2374
|
}, {
|
|
2375
|
-
text:
|
|
2375
|
+
text: r(() => [
|
|
2376
2376
|
t(D, {
|
|
2377
2377
|
icon: p.prependIcon,
|
|
2378
2378
|
color: "accent",
|
|
2379
2379
|
size: "80"
|
|
2380
2380
|
}, null, 8, ["icon"]),
|
|
2381
|
-
|
|
2382
|
-
|
|
2381
|
+
An,
|
|
2382
|
+
On
|
|
2383
2383
|
]),
|
|
2384
2384
|
_: 1
|
|
2385
2385
|
})
|
|
2386
2386
|
]),
|
|
2387
2387
|
_: 1
|
|
2388
2388
|
}),
|
|
2389
|
-
(c(), L(
|
|
2389
|
+
(c(), L(T, null, te(d, (m, f) => t(_e, {
|
|
2390
2390
|
key: f,
|
|
2391
2391
|
color: f % 2 === 0 ? "surface-light" : "surface-variant",
|
|
2392
2392
|
class: "py-8"
|
|
2393
2393
|
}, {
|
|
2394
|
-
default:
|
|
2394
|
+
default: r(() => [
|
|
2395
2395
|
t(Ze, null, {
|
|
2396
|
-
default:
|
|
2396
|
+
default: r(() => [
|
|
2397
2397
|
t(ue, { align: "center" }, {
|
|
2398
|
-
default:
|
|
2399
|
-
t(
|
|
2398
|
+
default: r(() => [
|
|
2399
|
+
t(J, {
|
|
2400
2400
|
order: f % 2,
|
|
2401
2401
|
cols: "12",
|
|
2402
2402
|
offset: "0",
|
|
2403
2403
|
"offset-sm": "1",
|
|
2404
2404
|
sm: "6"
|
|
2405
2405
|
}, {
|
|
2406
|
-
default:
|
|
2407
|
-
g("strong",
|
|
2408
|
-
g("p",
|
|
2409
|
-
g("p",
|
|
2406
|
+
default: r(() => [
|
|
2407
|
+
g("strong", Un, C(m.title), 1),
|
|
2408
|
+
g("p", Bn, C(m.subtitle), 1),
|
|
2409
|
+
g("p", Nn, C(m.text), 1)
|
|
2410
2410
|
]),
|
|
2411
2411
|
_: 2
|
|
2412
2412
|
}, 1032, ["order"]),
|
|
2413
|
-
t(
|
|
2413
|
+
t(J, {
|
|
2414
2414
|
"offset-sm": f % 2,
|
|
2415
2415
|
cols: "12",
|
|
2416
2416
|
offset: "0",
|
|
2417
2417
|
sm: "4"
|
|
2418
2418
|
}, {
|
|
2419
|
-
default:
|
|
2420
|
-
t(
|
|
2419
|
+
default: r(() => [
|
|
2420
|
+
t(se, {
|
|
2421
2421
|
height: a(l) ? 180 : void 0,
|
|
2422
2422
|
src: m.image,
|
|
2423
2423
|
rounded: "lg",
|
|
@@ -2435,28 +2435,28 @@ const vt = X("settings", () => {
|
|
|
2435
2435
|
]),
|
|
2436
2436
|
_: 2
|
|
2437
2437
|
}, 1032, ["color"])), 64)),
|
|
2438
|
-
a(
|
|
2438
|
+
a(s).isSubscriber ? w("", !0) : (c(), h(_e, {
|
|
2439
2439
|
key: 0,
|
|
2440
2440
|
class: "text-center py-6"
|
|
2441
2441
|
}, {
|
|
2442
|
-
default:
|
|
2442
|
+
default: r(() => [
|
|
2443
2443
|
t(Ze, null, {
|
|
2444
|
-
default:
|
|
2444
|
+
default: r(() => [
|
|
2445
2445
|
t(ue, { justify: "center" }, {
|
|
2446
|
-
default:
|
|
2447
|
-
t(
|
|
2448
|
-
default:
|
|
2446
|
+
default: r(() => [
|
|
2447
|
+
t(J, { cols: "6" }, {
|
|
2448
|
+
default: r(() => [
|
|
2449
2449
|
t(ne, {
|
|
2450
2450
|
image: "https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
2451
2451
|
size: "64"
|
|
2452
2452
|
}),
|
|
2453
|
-
|
|
2453
|
+
Tn
|
|
2454
2454
|
]),
|
|
2455
2455
|
_: 1
|
|
2456
2456
|
}),
|
|
2457
|
-
t(
|
|
2458
|
-
default:
|
|
2459
|
-
t(
|
|
2457
|
+
t(J, { cols: "12" }, {
|
|
2458
|
+
default: r(() => [
|
|
2459
|
+
t(x, {
|
|
2460
2460
|
"prepend-icon": "$vuetify",
|
|
2461
2461
|
size: "x-large",
|
|
2462
2462
|
text: "Subscribe Today",
|
|
@@ -2477,7 +2477,7 @@ const vt = X("settings", () => {
|
|
|
2477
2477
|
]),
|
|
2478
2478
|
_: 1
|
|
2479
2479
|
}),
|
|
2480
|
-
t(
|
|
2480
|
+
t(V, { app: "" })
|
|
2481
2481
|
]),
|
|
2482
2482
|
_: 1
|
|
2483
2483
|
})
|
|
@@ -2486,7 +2486,7 @@ const vt = X("settings", () => {
|
|
|
2486
2486
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2487
2487
|
};
|
|
2488
2488
|
}
|
|
2489
|
-
}),
|
|
2489
|
+
}), Fn = /* @__PURE__ */ $({
|
|
2490
2490
|
__name: "VoStudioNavItem",
|
|
2491
2491
|
setup(u) {
|
|
2492
2492
|
const e = A(!1), o = [
|
|
@@ -2495,29 +2495,29 @@ const vt = X("settings", () => {
|
|
|
2495
2495
|
["M12.435 14.3194L22 4L9.26479 7.61064L12.435 14.3194Z", 1],
|
|
2496
2496
|
["M2 4L6.87046 12.2799L9.26479 7.61064L2 4Z", 1]
|
|
2497
2497
|
];
|
|
2498
|
-
return (n,
|
|
2499
|
-
const
|
|
2500
|
-
return c(),
|
|
2498
|
+
return (n, s) => {
|
|
2499
|
+
const i = zn, l = Q;
|
|
2500
|
+
return c(), h(l, {
|
|
2501
2501
|
active: e.value,
|
|
2502
2502
|
"prepend-icon": o,
|
|
2503
2503
|
title: "Vuetify Studio",
|
|
2504
2504
|
link: ""
|
|
2505
2505
|
}, {
|
|
2506
|
-
append:
|
|
2506
|
+
append: r(() => [
|
|
2507
2507
|
t(ee, {
|
|
2508
2508
|
size: "x-small",
|
|
2509
2509
|
label: ""
|
|
2510
2510
|
}, {
|
|
2511
|
-
default:
|
|
2512
|
-
|
|
2511
|
+
default: r(() => [
|
|
2512
|
+
B("COMING SOON")
|
|
2513
2513
|
]),
|
|
2514
2514
|
_: 1
|
|
2515
2515
|
})
|
|
2516
2516
|
]),
|
|
2517
|
-
default:
|
|
2518
|
-
t(
|
|
2517
|
+
default: r(() => [
|
|
2518
|
+
t(i, {
|
|
2519
2519
|
modelValue: e.value,
|
|
2520
|
-
"onUpdate:modelValue":
|
|
2520
|
+
"onUpdate:modelValue": s[0] || (s[0] = (d) => e.value = d),
|
|
2521
2521
|
"prepend-icon": o
|
|
2522
2522
|
}, null, 8, ["modelValue"])
|
|
2523
2523
|
]),
|
|
@@ -2525,84 +2525,84 @@ const vt = X("settings", () => {
|
|
|
2525
2525
|
}, 8, ["active"]);
|
|
2526
2526
|
};
|
|
2527
2527
|
}
|
|
2528
|
-
}),
|
|
2528
|
+
}), jn = {
|
|
2529
2529
|
key: 0,
|
|
2530
2530
|
class: "pt-16"
|
|
2531
|
-
},
|
|
2531
|
+
}, Mn = /* @__PURE__ */ g("div", { class: "text-medium-emphasis" }, " All caught up ", -1), Pn = {
|
|
2532
2532
|
key: 1,
|
|
2533
2533
|
class: "pa-5"
|
|
2534
|
-
},
|
|
2534
|
+
}, Rn = { class: "text-subtitle-1 font-weight-bold" }, Hn = { class: "text-caption font-weight-bold text-medium-emphasis" }, En = { class: "text-disabled text-caption mt-2 mb-3" }, Wn = /* @__PURE__ */ $({
|
|
2535
2535
|
__name: "VoNotificationsBannerList",
|
|
2536
2536
|
props: {
|
|
2537
2537
|
items: {}
|
|
2538
2538
|
},
|
|
2539
2539
|
setup(u) {
|
|
2540
|
-
const e = Ue(), o = re(), n =
|
|
2541
|
-
function
|
|
2540
|
+
const e = Ue(), o = re(), n = F();
|
|
2541
|
+
function s(l) {
|
|
2542
2542
|
return n.notifications.last.banner.includes(l);
|
|
2543
2543
|
}
|
|
2544
|
-
function
|
|
2545
|
-
|
|
2544
|
+
function i(l) {
|
|
2545
|
+
s(l.slug) ? n.notifications.last.banner = n.notifications.last.banner.filter((d) => d !== l.slug) : n.notifications.last.banner.push(l.slug);
|
|
2546
2546
|
}
|
|
2547
2547
|
return (l, d) => {
|
|
2548
2548
|
const v = He("v-empty-state");
|
|
2549
|
-
return c(),
|
|
2549
|
+
return c(), h(oe, {
|
|
2550
2550
|
class: "py-0",
|
|
2551
2551
|
height: "100%",
|
|
2552
2552
|
lines: "three"
|
|
2553
2553
|
}, {
|
|
2554
|
-
default:
|
|
2555
|
-
l.items.length ? (c(), L("div",
|
|
2556
|
-
(c(!0), L(
|
|
2557
|
-
var
|
|
2554
|
+
default: r(() => [
|
|
2555
|
+
l.items.length ? (c(), L("div", Pn, [
|
|
2556
|
+
(c(!0), L(T, null, te(l.items, (p) => {
|
|
2557
|
+
var _;
|
|
2558
2558
|
return c(), L("div", {
|
|
2559
2559
|
key: p.slug,
|
|
2560
2560
|
class: "mb-4"
|
|
2561
2561
|
}, [
|
|
2562
2562
|
t(H, {
|
|
2563
2563
|
color: p.metadata.color,
|
|
2564
|
-
image: (
|
|
2564
|
+
image: (_ = p.metadata.images.bg) == null ? void 0 : _.url,
|
|
2565
2565
|
title: p.title,
|
|
2566
2566
|
rounded: "b-0",
|
|
2567
2567
|
flat: ""
|
|
2568
2568
|
}, {
|
|
2569
|
-
prepend:
|
|
2570
|
-
var
|
|
2569
|
+
prepend: r(() => {
|
|
2570
|
+
var x;
|
|
2571
2571
|
return [
|
|
2572
2572
|
t(ne, {
|
|
2573
|
-
image: (
|
|
2573
|
+
image: (x = p.metadata.images.logo) == null ? void 0 : x.url
|
|
2574
2574
|
}, null, 8, ["image"])
|
|
2575
2575
|
];
|
|
2576
2576
|
}),
|
|
2577
|
-
image:
|
|
2578
|
-
t(
|
|
2577
|
+
image: r(() => [
|
|
2578
|
+
t(se, { position: "right" })
|
|
2579
2579
|
]),
|
|
2580
2580
|
_: 2
|
|
2581
2581
|
}, 1032, ["color", "image", "title"]),
|
|
2582
2582
|
t(Be, null, {
|
|
2583
|
-
default:
|
|
2584
|
-
t(_e, R(
|
|
2583
|
+
default: r(({ props: x, isHovering: V }) => [
|
|
2584
|
+
t(_e, R(x, {
|
|
2585
2585
|
class: "px-8 pt-2 pb-4 position-relative",
|
|
2586
2586
|
rounded: "b",
|
|
2587
2587
|
border: ""
|
|
2588
2588
|
}), {
|
|
2589
|
-
default:
|
|
2590
|
-
t(
|
|
2591
|
-
text:
|
|
2589
|
+
default: r(() => [
|
|
2590
|
+
t(X, {
|
|
2591
|
+
text: s(p.slug) ? "Mark as unread" : "Mark as read",
|
|
2592
2592
|
location: "bottom"
|
|
2593
2593
|
}, {
|
|
2594
|
-
activator:
|
|
2594
|
+
activator: r(({ props: k }) => [
|
|
2595
2595
|
t(Oe, { "hide-on-leave": "" }, {
|
|
2596
|
-
default:
|
|
2597
|
-
Le(t(E, R(
|
|
2598
|
-
icon: `svg:${
|
|
2596
|
+
default: r(() => [
|
|
2597
|
+
Le(t(E, R(k, {
|
|
2598
|
+
icon: `svg:${s(p.slug) ? a(nt) : a(ot)}`,
|
|
2599
2599
|
class: "ms-auto float-right",
|
|
2600
2600
|
size: "small",
|
|
2601
2601
|
variant: "text",
|
|
2602
2602
|
"mdi-email-variant": "",
|
|
2603
|
-
onClick: (m) =>
|
|
2603
|
+
onClick: (m) => i(p)
|
|
2604
2604
|
}), null, 16, ["icon", "onClick"]), [
|
|
2605
|
-
[Ee,
|
|
2605
|
+
[Ee, V || a(o).mobile.value]
|
|
2606
2606
|
])
|
|
2607
2607
|
]),
|
|
2608
2608
|
_: 2
|
|
@@ -2610,9 +2610,9 @@ const vt = X("settings", () => {
|
|
|
2610
2610
|
]),
|
|
2611
2611
|
_: 2
|
|
2612
2612
|
}, 1032, ["text"]),
|
|
2613
|
-
g("div",
|
|
2614
|
-
g("div",
|
|
2615
|
-
g("div",
|
|
2613
|
+
g("div", Rn, C(p.metadata.text), 1),
|
|
2614
|
+
g("div", Hn, C(a(e).format(p.created_at, "fullDateWithWeekday")), 1),
|
|
2615
|
+
g("div", En, C(p.metadata.subtext), 1),
|
|
2616
2616
|
t(ee, R({
|
|
2617
2617
|
href: p.metadata.link.startsWith("http") ? p.metadata.link : void 0,
|
|
2618
2618
|
target: p.metadata.link.startsWith("http") ? "_blank" : void 0,
|
|
@@ -2625,7 +2625,7 @@ const vt = X("settings", () => {
|
|
|
2625
2625
|
border: "",
|
|
2626
2626
|
label: ""
|
|
2627
2627
|
}), {
|
|
2628
|
-
append:
|
|
2628
|
+
append: r(() => [
|
|
2629
2629
|
t(D, { size: "12" })
|
|
2630
2630
|
]),
|
|
2631
2631
|
_: 2
|
|
@@ -2638,16 +2638,16 @@ const vt = X("settings", () => {
|
|
|
2638
2638
|
}, 1024)
|
|
2639
2639
|
]);
|
|
2640
2640
|
}), 128))
|
|
2641
|
-
])) : (c(), L("div",
|
|
2641
|
+
])) : (c(), L("div", jn, [
|
|
2642
2642
|
t(v, {
|
|
2643
2643
|
icon: "$vuetify",
|
|
2644
2644
|
size: "256"
|
|
2645
2645
|
}, {
|
|
2646
|
-
media:
|
|
2646
|
+
media: r(() => [
|
|
2647
2647
|
t(D, { color: "medium-emphasis" })
|
|
2648
2648
|
]),
|
|
2649
|
-
title:
|
|
2650
|
-
|
|
2649
|
+
title: r(() => [
|
|
2650
|
+
Mn
|
|
2651
2651
|
]),
|
|
2652
2652
|
_: 1
|
|
2653
2653
|
})
|
|
@@ -2657,14 +2657,14 @@ const vt = X("settings", () => {
|
|
|
2657
2657
|
});
|
|
2658
2658
|
};
|
|
2659
2659
|
}
|
|
2660
|
-
}),
|
|
2660
|
+
}), qn = { class: "ps-3 text-subtitle-2 pe-2" }, Gn = { class: "text-truncate" }, Zn = { class: "text-caption font-weight-bold text-medium-emphasis" }, Qn = { class: "text-disabled text-caption my-2" }, Yn = /* @__PURE__ */ $({
|
|
2661
2661
|
__name: "VoNotificationsListItem",
|
|
2662
2662
|
props: {
|
|
2663
2663
|
demo: { type: Boolean },
|
|
2664
2664
|
notification: {}
|
|
2665
2665
|
},
|
|
2666
2666
|
setup(u) {
|
|
2667
|
-
const e = u, o =
|
|
2667
|
+
const e = u, o = F(), n = Ue(), s = re(), i = S(() => {
|
|
2668
2668
|
const v = e.notification.metadata ?? { action: "" };
|
|
2669
2669
|
return {
|
|
2670
2670
|
href: v.action.startsWith("http") ? v.action : void 0,
|
|
@@ -2683,27 +2683,27 @@ const vt = X("settings", () => {
|
|
|
2683
2683
|
e.demo || (l(v.slug) ? o.notifications.read = o.notifications.read.filter((p) => p !== v.slug) : o.notifications.read.push(v.slug));
|
|
2684
2684
|
}
|
|
2685
2685
|
return (v, p) => {
|
|
2686
|
-
const
|
|
2687
|
-
return c(),
|
|
2688
|
-
default:
|
|
2689
|
-
t(
|
|
2690
|
-
prepend:
|
|
2691
|
-
g("div",
|
|
2686
|
+
const _ = Q;
|
|
2687
|
+
return c(), h(Be, null, {
|
|
2688
|
+
default: r(({ isHovering: x, props: V }) => [
|
|
2689
|
+
t(_, R(V, { class: "py-4 mb-0" }), {
|
|
2690
|
+
prepend: r(() => [
|
|
2691
|
+
g("div", qn, C(v.notification.metadata.emoji), 1)
|
|
2692
2692
|
]),
|
|
2693
|
-
append:
|
|
2694
|
-
t(
|
|
2693
|
+
append: r(() => [
|
|
2694
|
+
t(bo, {
|
|
2695
2695
|
class: "mt-n3",
|
|
2696
2696
|
width: "56"
|
|
2697
2697
|
}, {
|
|
2698
|
-
default:
|
|
2699
|
-
t(
|
|
2698
|
+
default: r(() => [
|
|
2699
|
+
t(X, {
|
|
2700
2700
|
text: l(v.notification.slug) ? "Mark as unread" : "Mark as read",
|
|
2701
2701
|
location: "bottom"
|
|
2702
2702
|
}, {
|
|
2703
|
-
activator:
|
|
2703
|
+
activator: r(({ props: k }) => [
|
|
2704
2704
|
t(Oe, { "hide-on-leave": "" }, {
|
|
2705
|
-
default:
|
|
2706
|
-
Le(t(E, R(
|
|
2705
|
+
default: r(() => [
|
|
2706
|
+
Le(t(E, R(k, {
|
|
2707
2707
|
icon: `svg:${l(v.notification.slug) ? a(nt) : a(ot)}`,
|
|
2708
2708
|
class: "ms-auto",
|
|
2709
2709
|
size: "small",
|
|
@@ -2711,7 +2711,7 @@ const vt = X("settings", () => {
|
|
|
2711
2711
|
"mdi-email-variant": "",
|
|
2712
2712
|
onClick: p[0] || (p[0] = (m) => d(v.notification))
|
|
2713
2713
|
}), null, 16, ["icon"]), [
|
|
2714
|
-
[Ee,
|
|
2714
|
+
[Ee, x || a(s).mobile.value]
|
|
2715
2715
|
])
|
|
2716
2716
|
]),
|
|
2717
2717
|
_: 2
|
|
@@ -2723,25 +2723,25 @@ const vt = X("settings", () => {
|
|
|
2723
2723
|
_: 2
|
|
2724
2724
|
}, 1024)
|
|
2725
2725
|
]),
|
|
2726
|
-
default:
|
|
2726
|
+
default: r(() => [
|
|
2727
2727
|
t(st, { class: "text-wrap text-h6 mb-1" }, {
|
|
2728
|
-
default:
|
|
2729
|
-
g("div",
|
|
2728
|
+
default: r(() => [
|
|
2729
|
+
g("div", Gn, C(v.notification.title), 1)
|
|
2730
2730
|
]),
|
|
2731
2731
|
_: 1
|
|
2732
2732
|
}),
|
|
2733
|
-
g("div",
|
|
2734
|
-
g("div",
|
|
2733
|
+
g("div", Zn, C(a(n).format(v.notification.created_at, "fullDateWithWeekday")), 1),
|
|
2734
|
+
g("div", Qn, C(v.notification.metadata.text), 1),
|
|
2735
2735
|
t(ee, R({
|
|
2736
2736
|
"append-icon": `svg:${a(Ae)}`,
|
|
2737
2737
|
text: v.notification.metadata.action_text
|
|
2738
|
-
},
|
|
2738
|
+
}, i.value, {
|
|
2739
2739
|
size: "small",
|
|
2740
2740
|
variant: "text",
|
|
2741
2741
|
border: "",
|
|
2742
2742
|
label: ""
|
|
2743
2743
|
}), {
|
|
2744
|
-
append:
|
|
2744
|
+
append: r(() => [
|
|
2745
2745
|
t(D, { size: "12" })
|
|
2746
2746
|
]),
|
|
2747
2747
|
_: 1
|
|
@@ -2754,38 +2754,38 @@ const vt = X("settings", () => {
|
|
|
2754
2754
|
});
|
|
2755
2755
|
};
|
|
2756
2756
|
}
|
|
2757
|
-
}),
|
|
2757
|
+
}), Jn = {
|
|
2758
2758
|
key: 0,
|
|
2759
2759
|
class: "pt-16"
|
|
2760
|
-
},
|
|
2760
|
+
}, Xn = /* @__PURE__ */ g("div", { class: "text-medium-emphasis" }, " All caught up ", -1), Kn = /* @__PURE__ */ $({
|
|
2761
2761
|
__name: "VoNotificationsList",
|
|
2762
2762
|
props: {
|
|
2763
2763
|
items: {}
|
|
2764
2764
|
},
|
|
2765
2765
|
setup(u) {
|
|
2766
2766
|
return (e, o) => {
|
|
2767
|
-
const n = He("v-empty-state"),
|
|
2768
|
-
return c(),
|
|
2767
|
+
const n = He("v-empty-state"), s = Yn;
|
|
2768
|
+
return c(), h(oe, {
|
|
2769
2769
|
class: "py-0",
|
|
2770
2770
|
height: "100%",
|
|
2771
2771
|
lines: "three"
|
|
2772
2772
|
}, {
|
|
2773
|
-
default:
|
|
2774
|
-
e.items.length ? (c(!0), L(
|
|
2775
|
-
key:
|
|
2773
|
+
default: r(() => [
|
|
2774
|
+
e.items.length ? (c(!0), L(T, { key: 1 }, te(e.items, (i, l) => (c(), L(T, {
|
|
2775
|
+
key: i.slug
|
|
2776
2776
|
}, [
|
|
2777
|
-
l !== 0 ? (c(),
|
|
2778
|
-
t(
|
|
2779
|
-
], 64))), 128)) : (c(), L("div",
|
|
2777
|
+
l !== 0 ? (c(), h(G, { key: 0 })) : w("", !0),
|
|
2778
|
+
t(s, { notification: i }, null, 8, ["notification"])
|
|
2779
|
+
], 64))), 128)) : (c(), L("div", Jn, [
|
|
2780
2780
|
t(n, {
|
|
2781
2781
|
icon: "$vuetify",
|
|
2782
2782
|
size: "256"
|
|
2783
2783
|
}, {
|
|
2784
|
-
media:
|
|
2784
|
+
media: r(() => [
|
|
2785
2785
|
t(D, { color: "medium-emphasis" })
|
|
2786
2786
|
]),
|
|
2787
|
-
title:
|
|
2788
|
-
|
|
2787
|
+
title: r(() => [
|
|
2788
|
+
Xn
|
|
2789
2789
|
]),
|
|
2790
2790
|
_: 1
|
|
2791
2791
|
})
|
|
@@ -2795,84 +2795,86 @@ const vt = X("settings", () => {
|
|
|
2795
2795
|
});
|
|
2796
2796
|
};
|
|
2797
2797
|
}
|
|
2798
|
-
}),
|
|
2799
|
-
const u =
|
|
2798
|
+
}), _t = Z("site", () => {
|
|
2799
|
+
const u = N([]), e = N();
|
|
2800
2800
|
return {
|
|
2801
2801
|
id: u,
|
|
2802
2802
|
url: e
|
|
2803
2803
|
};
|
|
2804
|
-
}), ze =
|
|
2805
|
-
const u =
|
|
2806
|
-
if (
|
|
2807
|
-
return
|
|
2804
|
+
}), ze = Z("banners", () => {
|
|
2805
|
+
const u = de(), e = _t(), o = F(), n = N([]), s = N([]), i = N(), l = A(!1), d = S(() => {
|
|
2806
|
+
if (i.value)
|
|
2807
|
+
return i.value;
|
|
2808
2808
|
if (v.value)
|
|
2809
2809
|
return v.value;
|
|
2810
2810
|
if (o.notifications.banners)
|
|
2811
2811
|
return n.value.find(({
|
|
2812
|
-
slug:
|
|
2812
|
+
slug: f,
|
|
2813
2813
|
metadata: {
|
|
2814
|
-
site:
|
|
2815
|
-
active:
|
|
2814
|
+
site: y,
|
|
2815
|
+
active: O
|
|
2816
2816
|
}
|
|
2817
|
-
}) => !
|
|
2817
|
+
}) => !O || o.notifications.last.banner.includes(f) ? !1 : y.includes("dev") && !1 || y.includes("*") ? !0 : y.some((z) => e.id.includes(z)));
|
|
2818
2818
|
}), v = S(() => n.value.find(({
|
|
2819
2819
|
metadata: {
|
|
2820
|
-
site:
|
|
2821
|
-
active:
|
|
2820
|
+
site: f,
|
|
2821
|
+
active: y
|
|
2822
2822
|
}
|
|
2823
|
-
}) =>
|
|
2823
|
+
}) => y ? f.includes("server") : !1));
|
|
2824
2824
|
async function p() {
|
|
2825
2825
|
try {
|
|
2826
2826
|
l.value = !0;
|
|
2827
|
-
const
|
|
2828
|
-
n.value =
|
|
2827
|
+
const f = await u.get("/one/banners");
|
|
2828
|
+
n.value = f.banners;
|
|
2829
2829
|
} catch {
|
|
2830
2830
|
} finally {
|
|
2831
2831
|
l.value = !1;
|
|
2832
2832
|
}
|
|
2833
2833
|
return n.value;
|
|
2834
2834
|
}
|
|
2835
|
-
async function
|
|
2835
|
+
async function _(f) {
|
|
2836
2836
|
try {
|
|
2837
2837
|
l.value = !0;
|
|
2838
|
-
const
|
|
2839
|
-
return
|
|
2838
|
+
const y = await u.get(`/one/admin/banners/${f}`);
|
|
2839
|
+
return i.value = y.banner, y.banner;
|
|
2840
2840
|
} catch {
|
|
2841
2841
|
} finally {
|
|
2842
2842
|
l.value = !1;
|
|
2843
2843
|
}
|
|
2844
2844
|
}
|
|
2845
|
-
async function
|
|
2845
|
+
async function x(f) {
|
|
2846
2846
|
try {
|
|
2847
2847
|
l.value = !0;
|
|
2848
|
-
const
|
|
2849
|
-
|
|
2848
|
+
const y = await u.form(
|
|
2849
|
+
"/one/admin/banners",
|
|
2850
2850
|
f
|
|
2851
2851
|
);
|
|
2852
|
-
return
|
|
2852
|
+
return i.value = y.banner, y.banner;
|
|
2853
2853
|
} catch {
|
|
2854
2854
|
} finally {
|
|
2855
2855
|
l.value = !1;
|
|
2856
2856
|
}
|
|
2857
2857
|
}
|
|
2858
|
-
async function
|
|
2858
|
+
async function V(f, y) {
|
|
2859
2859
|
try {
|
|
2860
2860
|
l.value = !0;
|
|
2861
|
-
const
|
|
2862
|
-
|
|
2863
|
-
|
|
2861
|
+
const O = await u.form(
|
|
2862
|
+
`/one/admin/banners/${f}`,
|
|
2863
|
+
y
|
|
2864
2864
|
);
|
|
2865
|
-
return
|
|
2865
|
+
return i.value = O.banner, O.banner;
|
|
2866
2866
|
} catch {
|
|
2867
2867
|
} finally {
|
|
2868
2868
|
l.value = !1;
|
|
2869
2869
|
}
|
|
2870
2870
|
}
|
|
2871
|
-
async function
|
|
2871
|
+
async function k() {
|
|
2872
|
+
}
|
|
2873
|
+
async function m() {
|
|
2872
2874
|
try {
|
|
2873
2875
|
l.value = !0;
|
|
2874
|
-
const
|
|
2875
|
-
|
|
2876
|
+
const f = await u.get("/one/admin/banners");
|
|
2877
|
+
s.value = f.banners;
|
|
2876
2878
|
} catch {
|
|
2877
2879
|
} finally {
|
|
2878
2880
|
l.value = !1;
|
|
@@ -2881,18 +2883,19 @@ const vt = X("settings", () => {
|
|
|
2881
2883
|
}
|
|
2882
2884
|
return {
|
|
2883
2885
|
all: n,
|
|
2884
|
-
aall:
|
|
2886
|
+
aall: s,
|
|
2885
2887
|
isLoading: l,
|
|
2886
2888
|
server: v,
|
|
2887
2889
|
banner: d,
|
|
2888
|
-
record:
|
|
2889
|
-
admin:
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2890
|
+
record: i,
|
|
2891
|
+
admin: m,
|
|
2892
|
+
destroy: k,
|
|
2893
|
+
index: p,
|
|
2894
|
+
show: _,
|
|
2895
|
+
store: x,
|
|
2896
|
+
update: V
|
|
2894
2897
|
};
|
|
2895
|
-
}), es = { class: "text-caption" }, ts = { class: "text-caption" }, os = /* @__PURE__ */
|
|
2898
|
+
}), es = { class: "text-caption" }, ts = { class: "text-caption" }, os = /* @__PURE__ */ $({
|
|
2896
2899
|
__name: "VoNotificationsDialog",
|
|
2897
2900
|
props: {
|
|
2898
2901
|
modelValue: { type: Boolean },
|
|
@@ -2900,111 +2903,111 @@ const vt = X("settings", () => {
|
|
|
2900
2903
|
},
|
|
2901
2904
|
emits: ["update:modelValue"],
|
|
2902
2905
|
setup(u) {
|
|
2903
|
-
const e = re(), o =
|
|
2904
|
-
return
|
|
2906
|
+
const e = re(), o = me(), n = ze(), s = Ne(), i = M(), l = F(), d = A(["read"]), v = ie(u, "modelValue");
|
|
2907
|
+
return U(o, async () => {
|
|
2905
2908
|
if (o.value.one !== "notifications") {
|
|
2906
2909
|
v.value && (v.value = !1);
|
|
2907
2910
|
return;
|
|
2908
2911
|
}
|
|
2909
|
-
|
|
2910
|
-
}, { immediate: !0 }), (p,
|
|
2911
|
-
const
|
|
2912
|
-
return c(),
|
|
2912
|
+
i.isOpen = !0, await ce(), v.value = !0;
|
|
2913
|
+
}, { immediate: !0 }), (p, _) => {
|
|
2914
|
+
const x = Q, V = Kn, k = Wn, m = ke;
|
|
2915
|
+
return c(), h(m, {
|
|
2913
2916
|
modelValue: v.value,
|
|
2914
|
-
"onUpdate:modelValue":
|
|
2915
|
-
"prepend-icon": `svg:${a(
|
|
2917
|
+
"onUpdate:modelValue": _[2] || (_[2] = (f) => v.value = f),
|
|
2918
|
+
"prepend-icon": `svg:${a(Jt)}`,
|
|
2916
2919
|
title: "Notifications"
|
|
2917
2920
|
}, {
|
|
2918
|
-
default:
|
|
2919
|
-
t(
|
|
2920
|
-
default:
|
|
2921
|
-
t(
|
|
2921
|
+
default: r(() => [
|
|
2922
|
+
t(be, null, {
|
|
2923
|
+
default: r(() => [
|
|
2924
|
+
t(Vo, {
|
|
2922
2925
|
location: a(e).mobile.value ? "top" : "start",
|
|
2923
2926
|
width: a(e).mobile.value ? 128 : 168,
|
|
2924
2927
|
permanent: ""
|
|
2925
2928
|
}, {
|
|
2926
|
-
default:
|
|
2929
|
+
default: r(() => [
|
|
2927
2930
|
t(oe, {
|
|
2928
2931
|
selected: d.value,
|
|
2929
|
-
"onUpdate:selected":
|
|
2932
|
+
"onUpdate:selected": _[0] || (_[0] = (f) => d.value = f),
|
|
2930
2933
|
class: "px-4 pt-4",
|
|
2931
2934
|
density: "compact",
|
|
2932
2935
|
mandatory: "",
|
|
2933
2936
|
nav: ""
|
|
2934
2937
|
}, {
|
|
2935
|
-
default:
|
|
2936
|
-
t(
|
|
2937
|
-
"prepend-icon": `svg:${a(
|
|
2938
|
+
default: r(() => [
|
|
2939
|
+
t(x, {
|
|
2940
|
+
"prepend-icon": `svg:${a(Xt)}`,
|
|
2938
2941
|
title: "Unread",
|
|
2939
2942
|
value: "read"
|
|
2940
|
-
},
|
|
2941
|
-
a(
|
|
2943
|
+
}, W({ _: 2 }, [
|
|
2944
|
+
a(s).unread.length > 0 ? {
|
|
2942
2945
|
name: "append",
|
|
2943
|
-
fn:
|
|
2944
|
-
g("span", es, C(a(
|
|
2946
|
+
fn: r(() => [
|
|
2947
|
+
g("span", es, C(a(s).unread.length), 1)
|
|
2945
2948
|
]),
|
|
2946
2949
|
key: "0"
|
|
2947
2950
|
} : void 0
|
|
2948
2951
|
]), 1032, ["prepend-icon"]),
|
|
2949
|
-
t(
|
|
2950
|
-
"prepend-icon": `svg:${a(
|
|
2952
|
+
t(x, {
|
|
2953
|
+
"prepend-icon": `svg:${a(Kt)}`,
|
|
2951
2954
|
title: "Read",
|
|
2952
2955
|
value: "unread"
|
|
2953
|
-
},
|
|
2954
|
-
a(
|
|
2956
|
+
}, W({ _: 2 }, [
|
|
2957
|
+
a(s).read.length > 0 ? {
|
|
2955
2958
|
name: "append",
|
|
2956
|
-
fn:
|
|
2957
|
-
g("span", ts, C(a(
|
|
2959
|
+
fn: r(() => [
|
|
2960
|
+
g("span", ts, C(a(s).read.length), 1)
|
|
2958
2961
|
]),
|
|
2959
2962
|
key: "0"
|
|
2960
2963
|
} : void 0
|
|
2961
2964
|
]), 1032, ["prepend-icon"]),
|
|
2962
|
-
a(n).all.length > 0 && a(l).notifications.banners ? (c(),
|
|
2965
|
+
a(n).all.length > 0 && a(l).notifications.banners ? (c(), h(x, {
|
|
2963
2966
|
key: 0,
|
|
2964
|
-
"prepend-icon": `svg:${a(
|
|
2967
|
+
"prepend-icon": `svg:${a(eo)}`,
|
|
2965
2968
|
title: "Banners",
|
|
2966
2969
|
value: "banners"
|
|
2967
2970
|
}, {
|
|
2968
|
-
append:
|
|
2971
|
+
append: r(() => [
|
|
2969
2972
|
t(Ge, {
|
|
2970
2973
|
"offset-y": "-3",
|
|
2971
2974
|
dot: ""
|
|
2972
2975
|
})
|
|
2973
2976
|
]),
|
|
2974
2977
|
_: 1
|
|
2975
|
-
}, 8, ["prepend-icon"])) :
|
|
2978
|
+
}, 8, ["prepend-icon"])) : w("", !0)
|
|
2976
2979
|
]),
|
|
2977
2980
|
_: 1
|
|
2978
2981
|
}, 8, ["selected"])
|
|
2979
2982
|
]),
|
|
2980
2983
|
_: 1
|
|
2981
2984
|
}, 8, ["location", "width"]),
|
|
2982
|
-
t(
|
|
2983
|
-
default:
|
|
2985
|
+
t(Ve, { scrollable: "" }, {
|
|
2986
|
+
default: r(() => [
|
|
2984
2987
|
t(lt, {
|
|
2985
2988
|
modelValue: d.value,
|
|
2986
|
-
"onUpdate:modelValue":
|
|
2989
|
+
"onUpdate:modelValue": _[1] || (_[1] = (f) => d.value = f)
|
|
2987
2990
|
}, {
|
|
2988
|
-
default:
|
|
2989
|
-
t(
|
|
2990
|
-
default:
|
|
2991
|
-
t(
|
|
2992
|
-
items: a(
|
|
2991
|
+
default: r(() => [
|
|
2992
|
+
t(he, { value: "read" }, {
|
|
2993
|
+
default: r(() => [
|
|
2994
|
+
t(V, {
|
|
2995
|
+
items: a(s).unread
|
|
2993
2996
|
}, null, 8, ["items"])
|
|
2994
2997
|
]),
|
|
2995
2998
|
_: 1
|
|
2996
2999
|
}),
|
|
2997
|
-
t(
|
|
2998
|
-
default:
|
|
2999
|
-
t(
|
|
3000
|
-
items: a(
|
|
3000
|
+
t(he, { value: "unread" }, {
|
|
3001
|
+
default: r(() => [
|
|
3002
|
+
t(V, {
|
|
3003
|
+
items: a(s).read
|
|
3001
3004
|
}, null, 8, ["items"])
|
|
3002
3005
|
]),
|
|
3003
3006
|
_: 1
|
|
3004
3007
|
}),
|
|
3005
|
-
t(
|
|
3006
|
-
default:
|
|
3007
|
-
t(
|
|
3008
|
+
t(he, { value: "banners" }, {
|
|
3009
|
+
default: r(() => [
|
|
3010
|
+
t(k, {
|
|
3008
3011
|
items: a(n).all
|
|
3009
3012
|
}, null, 8, ["items"])
|
|
3010
3013
|
]),
|
|
@@ -3024,49 +3027,49 @@ const vt = X("settings", () => {
|
|
|
3024
3027
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
3025
3028
|
};
|
|
3026
3029
|
}
|
|
3027
|
-
}), ns = /* @__PURE__ */
|
|
3030
|
+
}), ns = /* @__PURE__ */ $({
|
|
3028
3031
|
__name: "VoNotificationsBadge",
|
|
3029
3032
|
setup(u) {
|
|
3030
|
-
const e = Ne(), o =
|
|
3031
|
-
return (n,
|
|
3033
|
+
const e = Ne(), o = F();
|
|
3034
|
+
return (n, s) => (c(), h(Ge, {
|
|
3032
3035
|
content: a(e).unread.length,
|
|
3033
3036
|
"model-value": a(o).notifications.show && a(e).unread.length > 0,
|
|
3034
3037
|
color: "error"
|
|
3035
3038
|
}, {
|
|
3036
|
-
default:
|
|
3039
|
+
default: r(() => [
|
|
3037
3040
|
P(n.$slots, "default")
|
|
3038
3041
|
]),
|
|
3039
3042
|
_: 3
|
|
3040
3043
|
}, 8, ["content", "model-value"]));
|
|
3041
3044
|
}
|
|
3042
|
-
}), ss = /* @__PURE__ */
|
|
3045
|
+
}), ss = /* @__PURE__ */ $({
|
|
3043
3046
|
__name: "VoNotificationsNavItem",
|
|
3044
3047
|
setup(u) {
|
|
3045
|
-
const e = ze(), o =
|
|
3048
|
+
const e = ze(), o = F(), n = Ne(), s = A(!1);
|
|
3046
3049
|
return Xe(async () => {
|
|
3047
|
-
n.index(), e.
|
|
3048
|
-
}), (
|
|
3050
|
+
n.index(), e.index();
|
|
3051
|
+
}), (i, l) => {
|
|
3049
3052
|
const d = ns, v = os, p = Q;
|
|
3050
|
-
return a(o).notifications.show ? (c(),
|
|
3053
|
+
return a(o).notifications.show ? (c(), h(p, {
|
|
3051
3054
|
key: 0,
|
|
3052
|
-
active:
|
|
3053
|
-
"prepend-icon": `svg:${a(
|
|
3055
|
+
active: s.value,
|
|
3056
|
+
"prepend-icon": `svg:${a(to)}`,
|
|
3054
3057
|
title: "Notifications",
|
|
3055
3058
|
link: ""
|
|
3056
|
-
},
|
|
3057
|
-
default:
|
|
3059
|
+
}, W({
|
|
3060
|
+
default: r(() => [
|
|
3058
3061
|
t(v, {
|
|
3059
|
-
modelValue:
|
|
3060
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
3062
|
+
modelValue: s.value,
|
|
3063
|
+
"onUpdate:modelValue": l[0] || (l[0] = (_) => s.value = _)
|
|
3061
3064
|
}, null, 8, ["modelValue"])
|
|
3062
3065
|
]),
|
|
3063
3066
|
_: 2
|
|
3064
3067
|
}, [
|
|
3065
3068
|
a(n).unread.length ? {
|
|
3066
3069
|
name: "prepend",
|
|
3067
|
-
fn:
|
|
3070
|
+
fn: r(() => [
|
|
3068
3071
|
t(d, null, {
|
|
3069
|
-
default:
|
|
3072
|
+
default: r(() => [
|
|
3070
3073
|
t(D)
|
|
3071
3074
|
]),
|
|
3072
3075
|
_: 1
|
|
@@ -3074,58 +3077,58 @@ const vt = X("settings", () => {
|
|
|
3074
3077
|
]),
|
|
3075
3078
|
key: "0"
|
|
3076
3079
|
} : void 0
|
|
3077
|
-
]), 1032, ["active", "prepend-icon"])) :
|
|
3080
|
+
]), 1032, ["active", "prepend-icon"])) : w("", !0);
|
|
3078
3081
|
};
|
|
3079
3082
|
}
|
|
3080
|
-
}), as = /* @__PURE__ */
|
|
3083
|
+
}), as = /* @__PURE__ */ $({
|
|
3081
3084
|
__name: "VoDashboardListItem",
|
|
3082
3085
|
setup(u) {
|
|
3083
3086
|
const e = M();
|
|
3084
3087
|
return (o, n) => {
|
|
3085
|
-
const
|
|
3086
|
-
return c(),
|
|
3087
|
-
"prepend-icon": `svg:${a(
|
|
3088
|
+
const s = Q;
|
|
3089
|
+
return c(), h(s, {
|
|
3090
|
+
"prepend-icon": `svg:${a(oo)}`,
|
|
3088
3091
|
title: "Dashboard",
|
|
3089
3092
|
to: "/user/dashboard",
|
|
3090
|
-
onClick: n[0] || (n[0] = (
|
|
3093
|
+
onClick: n[0] || (n[0] = (i) => a(e).isOpen = !1)
|
|
3091
3094
|
}, null, 8, ["prepend-icon"]);
|
|
3092
3095
|
};
|
|
3093
3096
|
}
|
|
3094
|
-
}), is = /* @__PURE__ */
|
|
3097
|
+
}), is = /* @__PURE__ */ $({
|
|
3095
3098
|
__name: "VoUserList",
|
|
3096
3099
|
setup(u) {
|
|
3097
|
-
const e =
|
|
3100
|
+
const e = j();
|
|
3098
3101
|
return (o, n) => {
|
|
3099
|
-
const
|
|
3100
|
-
return c(),
|
|
3102
|
+
const s = as, i = ss, l = Fn, d = $n, v = pn, p = Ro, _ = To;
|
|
3103
|
+
return c(), h(oe, {
|
|
3101
3104
|
density: "compact",
|
|
3102
3105
|
nav: "",
|
|
3103
3106
|
slim: ""
|
|
3104
3107
|
}, {
|
|
3105
|
-
default:
|
|
3108
|
+
default: r(() => [
|
|
3109
|
+
t(s),
|
|
3106
3110
|
t(i),
|
|
3107
|
-
t(r),
|
|
3108
3111
|
t(l),
|
|
3109
3112
|
t(d),
|
|
3110
|
-
a(e).user ? (c(),
|
|
3113
|
+
a(e).user ? (c(), h(v, { key: 0 })) : w("", !0),
|
|
3111
3114
|
t(p),
|
|
3112
|
-
a(e).user ? (c(), _
|
|
3115
|
+
a(e).user ? (c(), h(_, { key: 1 })) : w("", !0)
|
|
3113
3116
|
]),
|
|
3114
3117
|
_: 1
|
|
3115
3118
|
});
|
|
3116
3119
|
};
|
|
3117
3120
|
}
|
|
3118
|
-
}), rs = { key: 0 }, ls = { class: "d-flex align-center justify-center pa-1 ga-2" }, us = /* @__PURE__ */
|
|
3121
|
+
}), rs = { key: 0 }, ls = { class: "d-flex align-center justify-center pa-1 ga-2" }, us = /* @__PURE__ */ $({
|
|
3119
3122
|
__name: "VoUserQuickActions",
|
|
3120
3123
|
setup(u) {
|
|
3121
|
-
const e =
|
|
3124
|
+
const e = F(), o = [
|
|
3122
3125
|
["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],
|
|
3123
3126
|
["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],
|
|
3124
3127
|
"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",
|
|
3125
3128
|
["M12.353 16.0368C9.07567 12.843 3.90082 17.0493 6.66818 20.5975C9.94136 24.3844 15.773 19.6984 12.353 16.0368ZM11.1267 19.4129C10.2224 20.7664 7.79139 20.1099 7.82746 18.4686C8.04976 15.4897 12.7112 16.8495 11.1267 19.4129Z", 0.6]
|
|
3126
3129
|
];
|
|
3127
|
-
return (n,
|
|
3128
|
-
default:
|
|
3130
|
+
return (n, s) => (c(), h(ye, null, {
|
|
3131
|
+
default: r(() => [
|
|
3129
3132
|
a(e).quickbar ? (c(), L("div", rs, [
|
|
3130
3133
|
g("div", ls, [
|
|
3131
3134
|
t(E, {
|
|
@@ -3136,9 +3139,9 @@ const vt = X("settings", () => {
|
|
|
3136
3139
|
icon: "$vuetify-play",
|
|
3137
3140
|
target: "_blank"
|
|
3138
3141
|
}, {
|
|
3139
|
-
default:
|
|
3142
|
+
default: r(() => [
|
|
3140
3143
|
t(D),
|
|
3141
|
-
t(
|
|
3144
|
+
t(X, {
|
|
3142
3145
|
activator: "parent",
|
|
3143
3146
|
location: "top",
|
|
3144
3147
|
text: "Vuetify Play"
|
|
@@ -3154,9 +3157,9 @@ const vt = X("settings", () => {
|
|
|
3154
3157
|
href: "https://bin.vuetifyjs.com",
|
|
3155
3158
|
target: "_blank"
|
|
3156
3159
|
}, {
|
|
3157
|
-
default:
|
|
3160
|
+
default: r(() => [
|
|
3158
3161
|
t(D),
|
|
3159
|
-
t(
|
|
3162
|
+
t(X, {
|
|
3160
3163
|
activator: "parent",
|
|
3161
3164
|
location: "top",
|
|
3162
3165
|
text: "Vuetify Bin"
|
|
@@ -3166,15 +3169,15 @@ const vt = X("settings", () => {
|
|
|
3166
3169
|
}, 8, ["color"]),
|
|
3167
3170
|
t(E, {
|
|
3168
3171
|
color: a(e).colors.one,
|
|
3169
|
-
icon: `svg:${a(
|
|
3172
|
+
icon: `svg:${a(no)}`,
|
|
3170
3173
|
class: "text-caption",
|
|
3171
3174
|
density: "comfortable",
|
|
3172
3175
|
href: "https://issues.vuetifyjs.com",
|
|
3173
3176
|
target: "_blank"
|
|
3174
3177
|
}, {
|
|
3175
|
-
default:
|
|
3178
|
+
default: r(() => [
|
|
3176
3179
|
t(D),
|
|
3177
|
-
t(
|
|
3180
|
+
t(X, {
|
|
3178
3181
|
activator: "parent",
|
|
3179
3182
|
location: "top",
|
|
3180
3183
|
text: "Vuetify Issues"
|
|
@@ -3183,15 +3186,15 @@ const vt = X("settings", () => {
|
|
|
3183
3186
|
_: 1
|
|
3184
3187
|
}, 8, ["color", "icon"])
|
|
3185
3188
|
])
|
|
3186
|
-
])) :
|
|
3189
|
+
])) : w("", !0)
|
|
3187
3190
|
]),
|
|
3188
3191
|
_: 1
|
|
3189
3192
|
}));
|
|
3190
3193
|
}
|
|
3191
|
-
}), cs = { class: "mb-2" }, ds = { key: 0 }, ps = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, ms = { class: "text-h6" }, fs = /* @__PURE__ */
|
|
3194
|
+
}), cs = { class: "mb-2" }, ds = { key: 0 }, ps = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, ms = { class: "text-h6" }, fs = /* @__PURE__ */ $({
|
|
3192
3195
|
__name: "VoUserAvatar",
|
|
3193
3196
|
setup(u) {
|
|
3194
|
-
const e =
|
|
3197
|
+
const e = j(), o = F(), n = A(!1), s = S(() => {
|
|
3195
3198
|
const d = [
|
|
3196
3199
|
"https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
3197
3200
|
"https://cdn.vuetifyjs.com/docs/images/avatars/grass.png",
|
|
@@ -3210,7 +3213,7 @@ const vt = X("settings", () => {
|
|
|
3210
3213
|
];
|
|
3211
3214
|
return e.user && d.unshift(e.user.picture), d;
|
|
3212
3215
|
});
|
|
3213
|
-
function
|
|
3216
|
+
function i(d) {
|
|
3214
3217
|
o.avatar = d;
|
|
3215
3218
|
}
|
|
3216
3219
|
function l() {
|
|
@@ -3219,8 +3222,8 @@ const vt = X("settings", () => {
|
|
|
3219
3222
|
return (d, v) => {
|
|
3220
3223
|
var p;
|
|
3221
3224
|
return c(), L("div", null, [
|
|
3222
|
-
Le((c(),
|
|
3223
|
-
class:
|
|
3225
|
+
Le((c(), h(ne, {
|
|
3226
|
+
class: $t([
|
|
3224
3227
|
"border-md border-opacity-100 border-surface-variant",
|
|
3225
3228
|
{
|
|
3226
3229
|
"cursor-pointer": a(e).isSubscriber
|
|
@@ -3231,12 +3234,12 @@ const vt = X("settings", () => {
|
|
|
3231
3234
|
text: "Foobar",
|
|
3232
3235
|
onClick: Re(l, ["prevent", "stop"])
|
|
3233
3236
|
}, {
|
|
3234
|
-
default:
|
|
3235
|
-
a(e).user && a(o).avatar ? (c(),
|
|
3237
|
+
default: r(() => [
|
|
3238
|
+
a(e).user && a(o).avatar ? (c(), h(se, {
|
|
3236
3239
|
key: 0,
|
|
3237
3240
|
src: a(o).avatar,
|
|
3238
3241
|
alt: "User avatar"
|
|
3239
|
-
}, null, 8, ["src"])) : (c(),
|
|
3242
|
+
}, null, 8, ["src"])) : (c(), h(D, {
|
|
3240
3243
|
key: 1,
|
|
3241
3244
|
class: "mt-1",
|
|
3242
3245
|
icon: "$vuetify",
|
|
@@ -3245,29 +3248,29 @@ const vt = X("settings", () => {
|
|
|
3245
3248
|
]),
|
|
3246
3249
|
_: 1
|
|
3247
3250
|
}, 8, ["class"])), [
|
|
3248
|
-
[
|
|
3251
|
+
[ko, a(e).isSubscriber]
|
|
3249
3252
|
]),
|
|
3250
3253
|
g("div", cs, [
|
|
3251
|
-
t(
|
|
3252
|
-
default:
|
|
3254
|
+
t(ye, null, {
|
|
3255
|
+
default: r(() => [
|
|
3253
3256
|
n.value ? (c(), L("div", ds, [
|
|
3254
3257
|
t(H, {
|
|
3255
3258
|
class: "pt-6 pb-1",
|
|
3256
3259
|
rounded: "0",
|
|
3257
3260
|
flat: ""
|
|
3258
3261
|
}, {
|
|
3259
|
-
default:
|
|
3262
|
+
default: r(() => [
|
|
3260
3263
|
g("div", ps, [
|
|
3261
|
-
(c(!0), L(
|
|
3262
|
-
key:
|
|
3263
|
-
active: a(o).avatar ===
|
|
3264
|
+
(c(!0), L(T, null, te(s.value, (_, x) => (c(), h(E, {
|
|
3265
|
+
key: x,
|
|
3266
|
+
active: a(o).avatar === _,
|
|
3264
3267
|
variant: "flat",
|
|
3265
3268
|
icon: "",
|
|
3266
|
-
onClick: (
|
|
3269
|
+
onClick: (V) => i(_)
|
|
3267
3270
|
}, {
|
|
3268
|
-
default:
|
|
3271
|
+
default: r(() => [
|
|
3269
3272
|
t(ne, {
|
|
3270
|
-
image:
|
|
3273
|
+
image: _,
|
|
3271
3274
|
eager: ""
|
|
3272
3275
|
}, null, 8, ["image"])
|
|
3273
3276
|
]),
|
|
@@ -3277,7 +3280,7 @@ const vt = X("settings", () => {
|
|
|
3277
3280
|
]),
|
|
3278
3281
|
_: 1
|
|
3279
3282
|
})
|
|
3280
|
-
])) :
|
|
3283
|
+
])) : w("", !0)
|
|
3281
3284
|
]),
|
|
3282
3285
|
_: 1
|
|
3283
3286
|
})
|
|
@@ -3286,94 +3289,94 @@ const vt = X("settings", () => {
|
|
|
3286
3289
|
]);
|
|
3287
3290
|
};
|
|
3288
3291
|
}
|
|
3289
|
-
}), vs = /* @__PURE__ */
|
|
3292
|
+
}), vs = /* @__PURE__ */ $({
|
|
3290
3293
|
__name: "VoUserBadges",
|
|
3291
3294
|
setup(u) {
|
|
3292
|
-
const e =
|
|
3293
|
-
var
|
|
3294
|
-
return o.github || o.discord || o.isSubscriber || ((
|
|
3295
|
+
const e = j(), o = M(), n = S(() => {
|
|
3296
|
+
var s;
|
|
3297
|
+
return o.github || o.discord || o.isSubscriber || ((s = e.user) == null ? void 0 : s.isAdmin);
|
|
3295
3298
|
});
|
|
3296
|
-
return (
|
|
3299
|
+
return (s, i) => n.value ? (c(), h(_e, {
|
|
3297
3300
|
key: 0,
|
|
3298
3301
|
class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
|
|
3299
3302
|
color: "rgba(0,0,0,.54)",
|
|
3300
3303
|
rounded: "lg",
|
|
3301
3304
|
style: { left: "0" }
|
|
3302
3305
|
}, {
|
|
3303
|
-
default:
|
|
3306
|
+
default: r(() => {
|
|
3304
3307
|
var l;
|
|
3305
3308
|
return [
|
|
3306
|
-
(l = a(e).user) != null && l.isAdmin ? (c(),
|
|
3309
|
+
(l = a(e).user) != null && l.isAdmin ? (c(), h(X, {
|
|
3307
3310
|
key: 0,
|
|
3308
3311
|
location: "bottom",
|
|
3309
3312
|
text: "Vuetify Administrator"
|
|
3310
3313
|
}, {
|
|
3311
|
-
activator:
|
|
3314
|
+
activator: r(({ props: d }) => [
|
|
3312
3315
|
t(D, R({
|
|
3313
3316
|
color: "blue",
|
|
3314
3317
|
icon: "$vuetify"
|
|
3315
3318
|
}, d, { size: "16" }), null, 16)
|
|
3316
3319
|
]),
|
|
3317
3320
|
_: 1
|
|
3318
|
-
})) :
|
|
3319
|
-
a(o).isSubscriber ? (c(),
|
|
3321
|
+
})) : w("", !0),
|
|
3322
|
+
a(o).isSubscriber ? (c(), h(X, {
|
|
3320
3323
|
key: 1,
|
|
3321
3324
|
location: "bottom",
|
|
3322
3325
|
text: "Vuetify One Subscriber"
|
|
3323
3326
|
}, {
|
|
3324
|
-
activator:
|
|
3327
|
+
activator: r(({ props: d }) => [
|
|
3325
3328
|
t(D, R({
|
|
3326
|
-
icon: `svg:${a(
|
|
3329
|
+
icon: `svg:${a(so)}`,
|
|
3327
3330
|
color: "amber-darken-2"
|
|
3328
3331
|
}, d, { size: "16" }), null, 16, ["icon"])
|
|
3329
3332
|
]),
|
|
3330
3333
|
_: 1
|
|
3331
|
-
})) :
|
|
3332
|
-
a(o).github ? (c(),
|
|
3334
|
+
})) : w("", !0),
|
|
3335
|
+
a(o).github ? (c(), h(X, {
|
|
3333
3336
|
key: 2,
|
|
3334
3337
|
location: "bottom",
|
|
3335
3338
|
text: "GitHub Sponsor"
|
|
3336
3339
|
}, {
|
|
3337
|
-
activator:
|
|
3340
|
+
activator: r(({ props: d }) => [
|
|
3338
3341
|
t(D, R({
|
|
3339
3342
|
icon: `svg:${a(qe)}`,
|
|
3340
3343
|
color: "white"
|
|
3341
3344
|
}, d, { size: "16" }), null, 16, ["icon"])
|
|
3342
3345
|
]),
|
|
3343
3346
|
_: 1
|
|
3344
|
-
})) :
|
|
3345
|
-
a(o).discord ? (c(),
|
|
3347
|
+
})) : w("", !0),
|
|
3348
|
+
a(o).discord ? (c(), h(X, {
|
|
3346
3349
|
key: 3,
|
|
3347
3350
|
location: "bottom",
|
|
3348
3351
|
text: "Discord Subscriber"
|
|
3349
3352
|
}, {
|
|
3350
|
-
activator:
|
|
3353
|
+
activator: r(({ props: d }) => [
|
|
3351
3354
|
t(D, R({
|
|
3352
3355
|
icon: `svg:${a(We)}`,
|
|
3353
3356
|
color: "white"
|
|
3354
3357
|
}, d, { size: "16" }), null, 16, ["icon"])
|
|
3355
3358
|
]),
|
|
3356
3359
|
_: 1
|
|
3357
|
-
})) :
|
|
3360
|
+
})) : w("", !0)
|
|
3358
3361
|
];
|
|
3359
3362
|
}),
|
|
3360
3363
|
_: 1
|
|
3361
|
-
})) :
|
|
3364
|
+
})) : w("", !0);
|
|
3362
3365
|
}
|
|
3363
|
-
}),
|
|
3366
|
+
}), hs = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, _s = {
|
|
3364
3367
|
key: "reset",
|
|
3365
3368
|
class: "align-self-end"
|
|
3366
|
-
}, gs = /* @__PURE__ */
|
|
3369
|
+
}, gs = /* @__PURE__ */ $({
|
|
3367
3370
|
__name: "VoUserColors",
|
|
3368
3371
|
setup(u) {
|
|
3369
|
-
const e =
|
|
3370
|
-
function
|
|
3372
|
+
const e = j(), o = F(), n = A(!1);
|
|
3373
|
+
function s() {
|
|
3371
3374
|
o.colors.one = "surface-light";
|
|
3372
3375
|
}
|
|
3373
|
-
return (
|
|
3374
|
-
const d = vs, v =
|
|
3375
|
-
return c(), L(
|
|
3376
|
-
t(
|
|
3376
|
+
return (i, l) => {
|
|
3377
|
+
const d = vs, v = pe;
|
|
3378
|
+
return c(), L(T, null, [
|
|
3379
|
+
t(se, {
|
|
3377
3380
|
color: a(e).user ? a(o).colors.one : "surface-light",
|
|
3378
3381
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
3379
3382
|
height: "88",
|
|
@@ -3381,10 +3384,10 @@ const vt = X("settings", () => {
|
|
|
3381
3384
|
cover: "",
|
|
3382
3385
|
flat: ""
|
|
3383
3386
|
}, {
|
|
3384
|
-
default:
|
|
3385
|
-
g("div",
|
|
3387
|
+
default: r(() => [
|
|
3388
|
+
g("div", hs, [
|
|
3386
3389
|
t(d),
|
|
3387
|
-
a(e).isSubscriber ? (c(),
|
|
3390
|
+
a(e).isSubscriber ? (c(), h(v, {
|
|
3388
3391
|
key: 0,
|
|
3389
3392
|
active: n.value,
|
|
3390
3393
|
icon: n.value ? `svg:${a(De)}` : "$edit",
|
|
@@ -3395,10 +3398,10 @@ const vt = X("settings", () => {
|
|
|
3395
3398
|
title: "Edit One Header Color",
|
|
3396
3399
|
onClick: l[0] || (l[0] = (p) => n.value = !n.value)
|
|
3397
3400
|
}, {
|
|
3398
|
-
default:
|
|
3401
|
+
default: r(() => [
|
|
3399
3402
|
t(Oe, { "leave-absolute": "" }, {
|
|
3400
|
-
default:
|
|
3401
|
-
(c(),
|
|
3403
|
+
default: r(() => [
|
|
3404
|
+
(c(), h(D, {
|
|
3402
3405
|
key: String(n.value)
|
|
3403
3406
|
}))
|
|
3404
3407
|
]),
|
|
@@ -3406,19 +3409,19 @@ const vt = X("settings", () => {
|
|
|
3406
3409
|
})
|
|
3407
3410
|
]),
|
|
3408
3411
|
_: 1
|
|
3409
|
-
}, 8, ["active", "icon", "variant"])) :
|
|
3410
|
-
t(
|
|
3411
|
-
default:
|
|
3412
|
-
Le(g("div",
|
|
3412
|
+
}, 8, ["active", "icon", "variant"])) : w("", !0),
|
|
3413
|
+
t(po, null, {
|
|
3414
|
+
default: r(() => [
|
|
3415
|
+
Le(g("div", _s, [
|
|
3413
3416
|
t(v, {
|
|
3414
3417
|
disabled: a(o).colors.one === "surface-light",
|
|
3415
|
-
icon: `svg:${a(
|
|
3418
|
+
icon: `svg:${a(ao)}`,
|
|
3416
3419
|
class: "ms-2 me-1",
|
|
3417
3420
|
color: "inherit",
|
|
3418
3421
|
density: "comfortable",
|
|
3419
3422
|
title: "Revert to Default",
|
|
3420
3423
|
variant: "text",
|
|
3421
|
-
onClick:
|
|
3424
|
+
onClick: s
|
|
3422
3425
|
}, null, 8, ["disabled", "icon"])
|
|
3423
3426
|
], 512), [
|
|
3424
3427
|
[Ee, n.value]
|
|
@@ -3430,9 +3433,9 @@ const vt = X("settings", () => {
|
|
|
3430
3433
|
]),
|
|
3431
3434
|
_: 1
|
|
3432
3435
|
}, 8, ["color"]),
|
|
3433
|
-
t(
|
|
3434
|
-
default:
|
|
3435
|
-
n.value ? (c(),
|
|
3436
|
+
t(ye, null, {
|
|
3437
|
+
default: r(() => [
|
|
3438
|
+
n.value ? (c(), h($o, {
|
|
3436
3439
|
key: 0,
|
|
3437
3440
|
"model-value": a(o).colors.one !== "surface-light" ? a(o).colors.one : void 0,
|
|
3438
3441
|
elevation: "0",
|
|
@@ -3445,49 +3448,49 @@ const vt = X("settings", () => {
|
|
|
3445
3448
|
"hide-sliders": "",
|
|
3446
3449
|
"show-swatches": "",
|
|
3447
3450
|
"onUpdate:modelValue": l[1] || (l[1] = (p) => a(o).colors.one = p)
|
|
3448
|
-
}, null, 8, ["model-value"])) :
|
|
3451
|
+
}, null, 8, ["model-value"])) : w("", !0)
|
|
3449
3452
|
]),
|
|
3450
3453
|
_: 1
|
|
3451
3454
|
})
|
|
3452
3455
|
], 64);
|
|
3453
3456
|
};
|
|
3454
3457
|
}
|
|
3455
|
-
}), ys = { class: "text-center mt-n9 mb-4" }, bs = /* @__PURE__ */
|
|
3458
|
+
}), ys = { class: "text-center mt-n9 mb-4" }, bs = /* @__PURE__ */ $({
|
|
3456
3459
|
__name: "VoUserMenu",
|
|
3457
3460
|
setup(u) {
|
|
3458
|
-
const e = ze(), o = M(), n =
|
|
3459
|
-
return
|
|
3460
|
-
var
|
|
3461
|
-
await new Promise((l) => setTimeout(l, 300)), o.isOpen && ((
|
|
3462
|
-
}, { flush: "pre" }), (
|
|
3463
|
-
const l = gs, d = fs, v = us, p = is,
|
|
3464
|
-
return c(),
|
|
3461
|
+
const e = ze(), o = M(), n = N();
|
|
3462
|
+
return U(() => e.banner, async () => {
|
|
3463
|
+
var s, i;
|
|
3464
|
+
await new Promise((l) => setTimeout(l, 300)), o.isOpen && ((i = (s = n.value) == null ? void 0 : s.updateLocation) == null || i.call(s));
|
|
3465
|
+
}, { flush: "pre" }), (s, i) => {
|
|
3466
|
+
const l = gs, d = fs, v = us, p = is, _ = mt;
|
|
3467
|
+
return c(), h(a(xo), {
|
|
3465
3468
|
ref_key: "menu",
|
|
3466
3469
|
ref: n,
|
|
3467
3470
|
modelValue: a(o).isOpen,
|
|
3468
|
-
"onUpdate:modelValue":
|
|
3471
|
+
"onUpdate:modelValue": i[0] || (i[0] = (x) => a(o).isOpen = x),
|
|
3469
3472
|
"close-on-click": !1,
|
|
3470
3473
|
"close-on-content-click": !1,
|
|
3471
3474
|
activator: "parent",
|
|
3472
3475
|
location: "bottom end",
|
|
3473
3476
|
eager: ""
|
|
3474
3477
|
}, {
|
|
3475
|
-
default:
|
|
3478
|
+
default: r(() => [
|
|
3476
3479
|
t(H, {
|
|
3477
3480
|
rounded: "lg",
|
|
3478
3481
|
width: "280",
|
|
3479
3482
|
border: ""
|
|
3480
3483
|
}, {
|
|
3481
|
-
default:
|
|
3484
|
+
default: r(() => [
|
|
3482
3485
|
t(l),
|
|
3483
3486
|
g("div", ys, [
|
|
3484
3487
|
t(d),
|
|
3485
3488
|
t(v)
|
|
3486
3489
|
]),
|
|
3487
|
-
t(
|
|
3490
|
+
t(G),
|
|
3488
3491
|
t(p),
|
|
3489
|
-
t(
|
|
3490
|
-
t(
|
|
3492
|
+
t(G),
|
|
3493
|
+
t(_)
|
|
3491
3494
|
]),
|
|
3492
3495
|
_: 1
|
|
3493
3496
|
})
|
|
@@ -3496,24 +3499,24 @@ const vt = X("settings", () => {
|
|
|
3496
3499
|
}, 8, ["modelValue"]);
|
|
3497
3500
|
};
|
|
3498
3501
|
}
|
|
3499
|
-
}), Vs = { key: 0 }, ks = /* @__PURE__ */
|
|
3502
|
+
}), Vs = { key: 0 }, ks = /* @__PURE__ */ $({
|
|
3500
3503
|
__name: "VoAuthBtn",
|
|
3501
3504
|
props: {
|
|
3502
3505
|
external: Boolean
|
|
3503
3506
|
},
|
|
3504
3507
|
setup(u) {
|
|
3505
|
-
const e =
|
|
3508
|
+
const e = j(), o = M(), n = F(), { lgAndUp: s } = re(), i = S(() => o.isOpen || !e.user ? n.colors.one === "surface-light" ? "primary" : n.colors.one : "surface-light");
|
|
3506
3509
|
return (l, d) => {
|
|
3507
|
-
const v = bs, p =
|
|
3508
|
-
return c(), L(
|
|
3509
|
-
t(
|
|
3510
|
+
const v = bs, p = pe, _ = Bo, x = pt;
|
|
3511
|
+
return c(), L(T, null, [
|
|
3512
|
+
t(_, {
|
|
3510
3513
|
"offset-y": a(e).user ? 5 : 0
|
|
3511
3514
|
}, {
|
|
3512
|
-
default:
|
|
3515
|
+
default: r(() => [
|
|
3513
3516
|
t(p, R({
|
|
3514
|
-
[`${a(
|
|
3517
|
+
[`${a(s) ? "append-" : ""}icon`]: a(e).user ? void 0 : `svg:${a(io)}`
|
|
3515
3518
|
}, {
|
|
3516
|
-
color:
|
|
3519
|
+
color: i.value,
|
|
3517
3520
|
icon: a(e).user || a(e).isLoading,
|
|
3518
3521
|
loading: a(e).isLoading,
|
|
3519
3522
|
variant: a(e).user ? "outlined" : "flat",
|
|
@@ -3522,12 +3525,12 @@ const vt = X("settings", () => {
|
|
|
3522
3525
|
style: { transition: ".2s ease" },
|
|
3523
3526
|
active: ""
|
|
3524
3527
|
}), {
|
|
3525
|
-
default:
|
|
3526
|
-
a(e).user ?
|
|
3527
|
-
a(e).user ? (c(),
|
|
3528
|
+
default: r(() => [
|
|
3529
|
+
a(e).user ? w("", !0) : (c(), L("span", Vs, "Login")),
|
|
3530
|
+
a(e).user ? (c(), h(ne, {
|
|
3528
3531
|
key: 1,
|
|
3529
3532
|
image: a(n).avatar || a(e).user.picture || ""
|
|
3530
|
-
}, null, 8, ["image"])) :
|
|
3533
|
+
}, null, 8, ["image"])) : w("", !0),
|
|
3531
3534
|
t(v)
|
|
3532
3535
|
]),
|
|
3533
3536
|
_: 1
|
|
@@ -3535,49 +3538,49 @@ const vt = X("settings", () => {
|
|
|
3535
3538
|
]),
|
|
3536
3539
|
_: 1
|
|
3537
3540
|
}, 8, ["offset-y"]),
|
|
3538
|
-
t(
|
|
3541
|
+
t(x)
|
|
3539
3542
|
], 64);
|
|
3540
3543
|
};
|
|
3541
3544
|
}
|
|
3542
|
-
}), $s = /* @__PURE__ */
|
|
3545
|
+
}), $s = /* @__PURE__ */ $({
|
|
3543
3546
|
__name: "VoNotificationsBanner",
|
|
3544
3547
|
props: {
|
|
3545
3548
|
demo: { type: Boolean }
|
|
3546
3549
|
},
|
|
3547
3550
|
setup(u) {
|
|
3548
|
-
const e = u, { mdAndUp: o } = re(), n = Ie(),
|
|
3549
|
-
var
|
|
3550
|
-
return ((
|
|
3551
|
-
}), v = S(() => e.demo ? !0 : !l.value || !
|
|
3551
|
+
const e = u, { mdAndUp: o } = re(), n = Ie(), s = F(), i = ze(), l = S(() => i.banner), d = S(() => {
|
|
3552
|
+
var V, k;
|
|
3553
|
+
return ((V = l.value) == null ? void 0 : V.metadata.height) || ((k = l.value) != null && k.metadata.subtext ? 88 : 48);
|
|
3554
|
+
}), v = S(() => e.demo ? !0 : !l.value || !s.notifications.last.banner.includes(l.value.slug));
|
|
3552
3555
|
function p() {
|
|
3553
|
-
l.value &&
|
|
3556
|
+
l.value && s.notifications.last.banner.push(l.value.slug);
|
|
3554
3557
|
}
|
|
3555
|
-
async function
|
|
3558
|
+
async function _(V) {
|
|
3556
3559
|
var f;
|
|
3557
3560
|
if (!l.value)
|
|
3558
3561
|
return;
|
|
3559
3562
|
p(), await ce();
|
|
3560
|
-
const
|
|
3561
|
-
if (
|
|
3563
|
+
const k = ((f = l.value) == null ? void 0 : f.metadata) ?? { link: "" };
|
|
3564
|
+
if (k.link.indexOf("?one=") === -1)
|
|
3562
3565
|
return;
|
|
3563
|
-
|
|
3564
|
-
const m =
|
|
3566
|
+
V.preventDefault(), V.stopPropagation();
|
|
3567
|
+
const m = k.link.split("?one=")[1];
|
|
3565
3568
|
n.push({ query: { one: m } });
|
|
3566
3569
|
}
|
|
3567
|
-
const
|
|
3568
|
-
var
|
|
3569
|
-
const
|
|
3570
|
+
const x = S(() => {
|
|
3571
|
+
var k, m;
|
|
3572
|
+
const V = ((k = l.value) == null ? void 0 : k.metadata) ?? { link: "" };
|
|
3570
3573
|
return {
|
|
3571
|
-
href:
|
|
3572
|
-
target:
|
|
3573
|
-
to:
|
|
3574
|
+
href: V.link.startsWith("http") ? V.link : void 0,
|
|
3575
|
+
target: V.link.startsWith("http") ? "_blank" : void 0,
|
|
3576
|
+
to: V.link.startsWith("http") ? void 0 : V.link,
|
|
3574
3577
|
...(m = l.value) == null ? void 0 : m.metadata.attributes,
|
|
3575
|
-
onClick:
|
|
3578
|
+
onClick: _
|
|
3576
3579
|
};
|
|
3577
3580
|
});
|
|
3578
|
-
return (
|
|
3581
|
+
return (V, k) => {
|
|
3579
3582
|
var m;
|
|
3580
|
-
return l.value ? (c(),
|
|
3583
|
+
return l.value ? (c(), h(wo, {
|
|
3581
3584
|
key: 0,
|
|
3582
3585
|
color: l.value.metadata.color,
|
|
3583
3586
|
height: d.value,
|
|
@@ -3586,28 +3589,28 @@ const vt = X("settings", () => {
|
|
|
3586
3589
|
order: "-1",
|
|
3587
3590
|
flat: ""
|
|
3588
3591
|
}, {
|
|
3589
|
-
default:
|
|
3590
|
-
t(
|
|
3592
|
+
default: r(() => [
|
|
3593
|
+
t(ge, R(x.value, {
|
|
3591
3594
|
active: !1,
|
|
3592
3595
|
class: "flex-grow-1 py-6",
|
|
3593
3596
|
lines: "two",
|
|
3594
|
-
onClick:
|
|
3597
|
+
onClick: _
|
|
3595
3598
|
}), {
|
|
3596
|
-
prepend:
|
|
3597
|
-
l.value.metadata.images.logo ? (c(),
|
|
3599
|
+
prepend: r(() => [
|
|
3600
|
+
l.value.metadata.images.logo ? (c(), h(ne, {
|
|
3598
3601
|
key: 0,
|
|
3599
3602
|
image: l.value.metadata.images.logo.url,
|
|
3600
3603
|
icon: "$vuetify",
|
|
3601
3604
|
size: "x-large",
|
|
3602
3605
|
tile: ""
|
|
3603
|
-
}, null, 8, ["image"])) :
|
|
3606
|
+
}, null, 8, ["image"])) : w("", !0)
|
|
3604
3607
|
]),
|
|
3605
|
-
append:
|
|
3606
|
-
a(o) && l.value.metadata.link && l.value.metadata.link_text ? (c(),
|
|
3607
|
-
default:
|
|
3608
|
+
append: r(() => [
|
|
3609
|
+
a(o) && l.value.metadata.link && l.value.metadata.link_text ? (c(), h(Be, { key: 0 }, {
|
|
3610
|
+
default: r(({ isHovering: f, props: y }) => [
|
|
3608
3611
|
t(E, R({
|
|
3609
|
-
...
|
|
3610
|
-
|
|
3612
|
+
...y,
|
|
3613
|
+
...x.value
|
|
3611
3614
|
}, {
|
|
3612
3615
|
"append-icon": `svg:${a(Ae)}`,
|
|
3613
3616
|
color: l.value.metadata.link_color,
|
|
@@ -3615,157 +3618,260 @@ const vt = X("settings", () => {
|
|
|
3615
3618
|
title: l.value.metadata.link_text,
|
|
3616
3619
|
class: "text-none me-2",
|
|
3617
3620
|
variant: "elevated",
|
|
3618
|
-
onClick:
|
|
3621
|
+
onClick: _
|
|
3619
3622
|
}), {
|
|
3620
|
-
default:
|
|
3621
|
-
|
|
3623
|
+
default: r(() => [
|
|
3624
|
+
B(C(l.value.metadata.link_text), 1)
|
|
3622
3625
|
]),
|
|
3623
3626
|
_: 2
|
|
3624
3627
|
}, 1040, ["append-icon", "color", "elevation", "title"])
|
|
3625
3628
|
]),
|
|
3626
3629
|
_: 1
|
|
3627
|
-
})) :
|
|
3628
|
-
l.value.metadata.closable ? (c(),
|
|
3630
|
+
})) : w("", !0),
|
|
3631
|
+
l.value.metadata.closable ? (c(), h(E, {
|
|
3629
3632
|
key: 1,
|
|
3630
|
-
disabled:
|
|
3633
|
+
disabled: V.demo,
|
|
3631
3634
|
class: "ms-6 me-2",
|
|
3632
3635
|
density: "comfortable",
|
|
3633
3636
|
icon: "$clear",
|
|
3634
3637
|
size: "small",
|
|
3635
3638
|
variant: "plain",
|
|
3636
3639
|
onClick: Re(p, ["prevent", "stop"])
|
|
3637
|
-
}, null, 8, ["disabled"])) :
|
|
3640
|
+
}, null, 8, ["disabled"])) : w("", !0)
|
|
3638
3641
|
]),
|
|
3639
|
-
default:
|
|
3640
|
-
l.value.metadata.text ? (c(),
|
|
3642
|
+
default: r(() => [
|
|
3643
|
+
l.value.metadata.text ? (c(), h(st, {
|
|
3641
3644
|
key: 0,
|
|
3642
3645
|
class: "text-subtitle-2 text-md-subtitle-1 font-weight-medium"
|
|
3643
3646
|
}, {
|
|
3644
|
-
default:
|
|
3645
|
-
|
|
3647
|
+
default: r(() => [
|
|
3648
|
+
B(C(l.value.metadata.text), 1)
|
|
3646
3649
|
]),
|
|
3647
3650
|
_: 1
|
|
3648
|
-
})) :
|
|
3649
|
-
l.value.metadata.subtext ? (c(),
|
|
3650
|
-
default:
|
|
3651
|
-
|
|
3651
|
+
})) : w("", !0),
|
|
3652
|
+
l.value.metadata.subtext ? (c(), h(ro, { key: 1 }, {
|
|
3653
|
+
default: r(() => [
|
|
3654
|
+
B(C(l.value.metadata.subtext), 1)
|
|
3652
3655
|
]),
|
|
3653
3656
|
_: 1
|
|
3654
|
-
})) :
|
|
3657
|
+
})) : w("", !0)
|
|
3655
3658
|
]),
|
|
3656
3659
|
_: 1
|
|
3657
3660
|
}, 16)
|
|
3658
3661
|
]),
|
|
3659
3662
|
_: 1
|
|
3660
|
-
}, 8, ["color", "height", "image", "model-value"])) :
|
|
3663
|
+
}, 8, ["color", "height", "image", "model-value"])) : w("", !0);
|
|
3661
3664
|
};
|
|
3662
3665
|
}
|
|
3663
|
-
}),
|
|
3664
|
-
const u =
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
}
|
|
3669
|
-
}
|
|
3670
|
-
async function
|
|
3666
|
+
}), xs = Z("spots", () => {
|
|
3667
|
+
const u = de(), e = _t(), o = N([]), n = N([]), s = N(), i = A(!1), l = S(() => s.value ? s.value : o.value.find(({
|
|
3668
|
+
metadata: {
|
|
3669
|
+
site: k,
|
|
3670
|
+
active: m
|
|
3671
|
+
}
|
|
3672
|
+
}) => m ? k.includes("dev") && !1 || k.includes("*") ? !0 : k.some((f) => e.id.includes(f)) : !1));
|
|
3673
|
+
async function d() {
|
|
3671
3674
|
try {
|
|
3672
3675
|
i.value = !0;
|
|
3673
|
-
const
|
|
3674
|
-
o.value =
|
|
3676
|
+
const k = await u.get("/one/spots");
|
|
3677
|
+
o.value = k.spots;
|
|
3675
3678
|
} catch {
|
|
3676
3679
|
} finally {
|
|
3677
3680
|
i.value = !1;
|
|
3678
3681
|
}
|
|
3679
3682
|
return o.value;
|
|
3680
3683
|
}
|
|
3681
|
-
async function
|
|
3684
|
+
async function v(k) {
|
|
3682
3685
|
try {
|
|
3683
|
-
i.value = !0
|
|
3686
|
+
i.value = !0;
|
|
3687
|
+
const m = await u.get(`/one/admin/spots/${k}`);
|
|
3688
|
+
return s.value = m.spot, m.spot;
|
|
3684
3689
|
} catch {
|
|
3685
3690
|
} finally {
|
|
3686
3691
|
i.value = !1;
|
|
3687
3692
|
}
|
|
3688
|
-
return !0;
|
|
3689
3693
|
}
|
|
3690
|
-
async function
|
|
3694
|
+
async function p(k) {
|
|
3691
3695
|
try {
|
|
3692
3696
|
i.value = !0;
|
|
3693
|
-
const
|
|
3694
|
-
|
|
3697
|
+
const m = await u.form(
|
|
3698
|
+
"/one/admin/spots",
|
|
3699
|
+
k
|
|
3700
|
+
);
|
|
3701
|
+
return s.value = m.spot, m.spot;
|
|
3695
3702
|
} catch {
|
|
3696
3703
|
} finally {
|
|
3697
3704
|
i.value = !1;
|
|
3698
3705
|
}
|
|
3699
|
-
return { bin: f };
|
|
3700
3706
|
}
|
|
3701
|
-
async function
|
|
3707
|
+
async function _(k, m) {
|
|
3702
3708
|
try {
|
|
3703
3709
|
i.value = !0;
|
|
3704
|
-
const
|
|
3705
|
-
|
|
3710
|
+
const f = await u.form(
|
|
3711
|
+
`/one/admin/spots/${k}`,
|
|
3712
|
+
m
|
|
3713
|
+
);
|
|
3714
|
+
return s.value = f.spot, f.spot;
|
|
3706
3715
|
} catch {
|
|
3707
3716
|
} finally {
|
|
3708
3717
|
i.value = !1;
|
|
3709
3718
|
}
|
|
3710
|
-
return { bin: f };
|
|
3711
3719
|
}
|
|
3712
|
-
async function
|
|
3720
|
+
async function x() {
|
|
3721
|
+
}
|
|
3722
|
+
async function V() {
|
|
3713
3723
|
try {
|
|
3714
3724
|
i.value = !0;
|
|
3715
|
-
const
|
|
3716
|
-
n.value =
|
|
3725
|
+
const k = await u.get("/one/admin/spots");
|
|
3726
|
+
n.value = k.spots;
|
|
3717
3727
|
} catch {
|
|
3718
3728
|
} finally {
|
|
3719
3729
|
i.value = !1;
|
|
3720
3730
|
}
|
|
3731
|
+
return o.value;
|
|
3732
|
+
}
|
|
3733
|
+
return {
|
|
3734
|
+
all: o,
|
|
3735
|
+
aall: n,
|
|
3736
|
+
isLoading: i,
|
|
3737
|
+
spot: l,
|
|
3738
|
+
record: s,
|
|
3739
|
+
admin: V,
|
|
3740
|
+
index: d,
|
|
3741
|
+
show: v,
|
|
3742
|
+
store: p,
|
|
3743
|
+
update: _,
|
|
3744
|
+
destroy: x
|
|
3745
|
+
};
|
|
3746
|
+
}), ws = ["href"], Ss = /* @__PURE__ */ $({
|
|
3747
|
+
__name: "VoSpot",
|
|
3748
|
+
setup(u) {
|
|
3749
|
+
const e = xs();
|
|
3750
|
+
return (o, n) => {
|
|
3751
|
+
var s;
|
|
3752
|
+
return a(e).spot ? (c(), L("a", {
|
|
3753
|
+
key: 0,
|
|
3754
|
+
href: a(e).spot.metadata.href,
|
|
3755
|
+
rel: "noopener noreferrer sponsored",
|
|
3756
|
+
target: "_blank"
|
|
3757
|
+
}, [
|
|
3758
|
+
t(se, {
|
|
3759
|
+
color: a(e).spot.metadata.image ? void 0 : "surface",
|
|
3760
|
+
src: (s = a(e).spot.metadata.image) == null ? void 0 : s.url,
|
|
3761
|
+
class: "mx-auto",
|
|
3762
|
+
width: "225",
|
|
3763
|
+
rounded: ""
|
|
3764
|
+
}, null, 8, ["color", "src"])
|
|
3765
|
+
], 8, ws)) : w("", !0);
|
|
3766
|
+
};
|
|
3767
|
+
}
|
|
3768
|
+
}), ma = Z("bins", () => {
|
|
3769
|
+
const u = j(), e = de(), o = N([]), n = N(), s = A(!1), i = A(-1), l = S(() => !u.user || !n.value ? !1 : u.user.id === n.value.owner.id), d = S(() => o.value.filter((f) => f.favorite)), v = S(() => o.value.filter((f) => f.pinned));
|
|
3770
|
+
U(n, () => {
|
|
3771
|
+
window.clearTimeout(i.value), i.value = window.setTimeout(() => {
|
|
3772
|
+
!n.value || !l.value || V(n.value, n.value.id);
|
|
3773
|
+
}, 100);
|
|
3774
|
+
}, { deep: !0 });
|
|
3775
|
+
async function p() {
|
|
3776
|
+
try {
|
|
3777
|
+
s.value = !0;
|
|
3778
|
+
const f = await e.get("/one/bins");
|
|
3779
|
+
o.value = f.bins;
|
|
3780
|
+
} catch {
|
|
3781
|
+
} finally {
|
|
3782
|
+
s.value = !1;
|
|
3783
|
+
}
|
|
3784
|
+
return o.value;
|
|
3785
|
+
}
|
|
3786
|
+
async function _(f) {
|
|
3787
|
+
try {
|
|
3788
|
+
s.value = !0, await e.delete(`/one/bins/${f}`), o.value = o.value.filter((y) => y.id !== f);
|
|
3789
|
+
} catch {
|
|
3790
|
+
} finally {
|
|
3791
|
+
s.value = !1;
|
|
3792
|
+
}
|
|
3793
|
+
return !0;
|
|
3794
|
+
}
|
|
3795
|
+
async function x(f) {
|
|
3796
|
+
try {
|
|
3797
|
+
s.value = !0;
|
|
3798
|
+
const y = await e.post("/one/bins", { bin: f });
|
|
3799
|
+
return o.value.push(y.bin), n.value = y.bin, y;
|
|
3800
|
+
} catch {
|
|
3801
|
+
} finally {
|
|
3802
|
+
s.value = !1;
|
|
3803
|
+
}
|
|
3804
|
+
return { bin: f };
|
|
3805
|
+
}
|
|
3806
|
+
async function V(f, y) {
|
|
3807
|
+
try {
|
|
3808
|
+
s.value = !0;
|
|
3809
|
+
const O = await e.post(`/one/bins/${y}`, { bin: f }), z = o.value.findIndex((ae) => ae.id === y);
|
|
3810
|
+
o.value.splice(z, 1, O.bin);
|
|
3811
|
+
} catch {
|
|
3812
|
+
} finally {
|
|
3813
|
+
s.value = !1;
|
|
3814
|
+
}
|
|
3815
|
+
return { bin: f };
|
|
3816
|
+
}
|
|
3817
|
+
async function k(f, y) {
|
|
3818
|
+
try {
|
|
3819
|
+
s.value = !0;
|
|
3820
|
+
const O = y ? await V(f, y) : await x(f);
|
|
3821
|
+
n.value = O.bin;
|
|
3822
|
+
} catch {
|
|
3823
|
+
} finally {
|
|
3824
|
+
s.value = !1;
|
|
3825
|
+
}
|
|
3721
3826
|
return { bin: f };
|
|
3722
3827
|
}
|
|
3723
3828
|
async function m(f) {
|
|
3724
3829
|
try {
|
|
3725
|
-
|
|
3726
|
-
const
|
|
3727
|
-
n.value =
|
|
3830
|
+
s.value = !0;
|
|
3831
|
+
const y = await e.get(`/one/bins/${f}`);
|
|
3832
|
+
n.value = y.bin;
|
|
3728
3833
|
} catch {
|
|
3729
3834
|
} finally {
|
|
3730
|
-
|
|
3835
|
+
s.value = !1;
|
|
3731
3836
|
}
|
|
3732
3837
|
return { bin: n.value };
|
|
3733
3838
|
}
|
|
3734
3839
|
return {
|
|
3735
|
-
isLoading:
|
|
3840
|
+
isLoading: s,
|
|
3736
3841
|
isOwner: l,
|
|
3737
3842
|
pinned: v,
|
|
3738
3843
|
favorites: d,
|
|
3739
3844
|
all: o,
|
|
3740
|
-
create:
|
|
3741
|
-
delete:
|
|
3845
|
+
create: x,
|
|
3846
|
+
delete: _,
|
|
3742
3847
|
current: n,
|
|
3743
3848
|
find: m,
|
|
3744
3849
|
get: p,
|
|
3745
|
-
update:
|
|
3746
|
-
updateOrCreate:
|
|
3850
|
+
update: V,
|
|
3851
|
+
updateOrCreate: k
|
|
3747
3852
|
};
|
|
3748
3853
|
});
|
|
3749
|
-
function
|
|
3854
|
+
function fa() {
|
|
3750
3855
|
function u(e) {
|
|
3751
|
-
e.component("VoAuthBtn", ks), e.component("VoAuthCard", dt), e.component("VoAuthDialog", pt), e.component("VoAuthListItem", mt), e.component("VoNotificationsBanner", $s), e.component("VoFooter",
|
|
3856
|
+
e.component("VoAuthBtn", ks), e.component("VoAuthCard", dt), e.component("VoAuthDialog", pt), e.component("VoAuthListItem", mt), e.component("VoNotificationsBanner", $s), e.component("VoSpot", Ss), e.component("VoFooter", ht);
|
|
3752
3857
|
}
|
|
3753
3858
|
return { install: u };
|
|
3754
3859
|
}
|
|
3755
|
-
function
|
|
3860
|
+
function va(u, e) {
|
|
3756
3861
|
return function(o) {
|
|
3757
3862
|
const n = o.store;
|
|
3758
3863
|
n.url = e, n.$id === "site" && (n.id = u);
|
|
3759
3864
|
};
|
|
3760
3865
|
}
|
|
3761
3866
|
export {
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3867
|
+
fa as createOne,
|
|
3868
|
+
va as one,
|
|
3869
|
+
j as useAuthStore,
|
|
3765
3870
|
ze as useBannersStore,
|
|
3766
|
-
|
|
3767
|
-
|
|
3871
|
+
ma as useBinsStore,
|
|
3872
|
+
de as useHttpStore,
|
|
3768
3873
|
M as useOneStore,
|
|
3769
3874
|
vt as useSettingsStore,
|
|
3770
|
-
|
|
3875
|
+
xs as useSpotsStore,
|
|
3876
|
+
F as useUserStore
|
|
3771
3877
|
};
|