@vuetify/one 1.2.1 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1011 -1011
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { reactive as ht, watch as N, toRefs as gt, ref as F, shallowRef as B, computed as C, defineComponent as $, openBlock as
|
|
2
|
-
import { useRouter as Ae, useRoute as xt } from "vue-router";
|
|
1
|
+
import { reactive as ht, watch as N, toRefs as gt, ref as F, shallowRef as B, computed as C, defineComponent as $, openBlock as d, createBlock as v, unref as o, createSlots as Z, withCtx as n, createElementVNode as g, toDisplayString as L, createVNode as t, createTextVNode as U, renderSlot as M, normalizeStyle as Je, createCommentVNode as x, withModifiers as Me, mergeModels as Xe, useModel as le, createElementBlock as S, Fragment as D, onBeforeMount as yt, nextTick as ue, renderList as oe, mergeProps as E, resolveComponent as Pe, pushScopeId as bt, popScopeId as Vt, withDirectives as Ie, vShow as Re, onMounted as kt, normalizeClass as $t } from "vue";
|
|
3
2
|
import { defineStore as K } from "pinia";
|
|
4
|
-
import { merge as
|
|
5
|
-
import { mdiDiscord as
|
|
6
|
-
import { VListItem as
|
|
7
|
-
import { VAvatar as
|
|
8
|
-
import { VCard as P, VCardTitle as
|
|
3
|
+
import { merge as Oe } from "lodash-es";
|
|
4
|
+
import { mdiDiscord as He, mdiGithub as Ee, mdiSync as xt, mdiSyncOff as wt, mdiLogoutVariant as St, mdiFullscreenExit as Ct, mdiFullscreen as Lt, mdiCheck as de, mdiHome as It, mdiTextBox as At, mdiSelect as Dt, mdiSpaceInvaders as Ke, mdiImageFilterHdr as et, mdiRocketLaunchOutline as tt, mdiWhiteBalanceSunny as Bt, mdiWeatherNight as Ut, mdiDesktopTowerMonitor as Nt, mdiContrastCircle as zt, mdiCog as Ot, mdiCogOutline as jt, mdiFileDocument as Ft, mdiCreditCardSettingsOutline as Tt, mdiRocketOutline as Mt, mdiCheckCircleOutline as _e, mdiCreditCard as Pt, mdiReload as Rt, mdiPlaylistCheck as Ht, mdiCreditCardOutline as Et, mdiMedal as We, mdiOpenInNew as ge, mdiHandHeart as Wt, mdiChartLine as Gt, mdiHandHeartOutline as qt, mdiShieldStarOutline as Zt, mdiReddit as Yt, mdiEmailOpenOutline as ot, mdiEmailVariant as nt, mdiBell as Qt, mdiInboxOutline as Jt, mdiInboxFullOutline as Xt, mdiBillboard as Kt, mdiBellOutline as eo, mdiViewDashboardOutline as to, mdiSpider as oo, mdiCrown as no, mdiArrowULeftBottom as so, mdiLogin as ao } from "@mdi/js";
|
|
5
|
+
import { VListItem as ye, VList as ne, VListItemTitle as st, VListItemSubtitle as io } from "vuetify/lib/components/VList/index.mjs";
|
|
6
|
+
import { VAvatar as se } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
7
|
+
import { VCard as P, VCardTitle as lo, VCardSubtitle as ro, VCardText as te } from "vuetify/lib/components/VCard/index.mjs";
|
|
9
8
|
import { VDialog as at } from "vuetify/lib/components/VDialog/index.mjs";
|
|
10
|
-
import { VBadge as
|
|
11
|
-
import { VBtn as
|
|
12
|
-
import { VProgressCircular as
|
|
13
|
-
import { VSheet as
|
|
9
|
+
import { VBadge as Ge } from "vuetify/lib/components/VBadge/index.mjs";
|
|
10
|
+
import { VBtn as G } from "vuetify/lib/components/VBtn/index.mjs";
|
|
11
|
+
import { VProgressCircular as co } from "vuetify/lib/components/VProgressCircular/index.mjs";
|
|
12
|
+
import { VSheet as he } from "vuetify/lib/components/VSheet/index.mjs";
|
|
14
13
|
import { VSwitch as it } from "vuetify/lib/components/VSwitch/index.mjs";
|
|
15
|
-
import { VFadeTransition as
|
|
16
|
-
import { useDisplay as pe, useTheme as
|
|
17
|
-
import { VDivider as
|
|
14
|
+
import { VFadeTransition as Ae, VExpandTransition as be, VExpandXTransition as uo } from "vuetify/lib/components/transitions/index.mjs";
|
|
15
|
+
import { useDisplay as pe, useTheme as po, useDate as De } from "vuetify";
|
|
16
|
+
import { VDivider as W } from "vuetify/lib/components/VDivider/index.mjs";
|
|
18
17
|
import { VIcon as A } from "vuetify/lib/components/VIcon/index.mjs";
|
|
19
|
-
import { VLabel as
|
|
20
|
-
import { VChip as
|
|
21
|
-
import { VChipGroup as
|
|
22
|
-
import { VSelect as
|
|
18
|
+
import { VLabel as Fe } from "vuetify/lib/components/VLabel/index.mjs";
|
|
19
|
+
import { VChip as q } from "vuetify/lib/components/VChip/index.mjs";
|
|
20
|
+
import { VChipGroup as mo } from "vuetify/lib/components/VChipGroup/index.mjs";
|
|
21
|
+
import { VSelect as fo } from "vuetify/lib/components/VSelect/index.mjs";
|
|
22
|
+
import { useRoute as vo, useRouter as qe } from "vue-router";
|
|
23
23
|
import { VRow as ce, VCol as J, VContainer as Ye } from "vuetify/lib/components/VGrid/index.mjs";
|
|
24
|
-
import { VHover as
|
|
24
|
+
import { VHover as Be } from "vuetify/lib/components/VHover/index.mjs";
|
|
25
25
|
import { VImg as ie } from "vuetify/lib/components/VImg/index.mjs";
|
|
26
|
-
import { VItemGroup as lt, VItem as
|
|
27
|
-
import { VLayout as
|
|
28
|
-
import { VMain as
|
|
26
|
+
import { VItemGroup as lt, VItem as Te } from "vuetify/lib/components/VItemGroup/index.mjs";
|
|
27
|
+
import { VLayout as Ve } from "vuetify/lib/components/VLayout/index.mjs";
|
|
28
|
+
import { VMain as ke } from "vuetify/lib/components/VMain/index.mjs";
|
|
29
29
|
import { VDataTableVirtual as _o } from "vuetify/lib/components/VDataTable/index.mjs";
|
|
30
30
|
import { VSkeletonLoader as Qe } from "vuetify/lib/components/VSkeletonLoader/index.mjs";
|
|
31
|
-
import { VWindow as rt, VWindowItem as
|
|
31
|
+
import { VWindow as rt, VWindowItem as ve } from "vuetify/lib/components/VWindow/index.mjs";
|
|
32
32
|
import { VTimelineItem as Ze, VTimeline as ho } from "vuetify/lib/components/VTimeline/index.mjs";
|
|
33
33
|
import { VFooter as go } from "vuetify/lib/components/VFooter/index.mjs";
|
|
34
34
|
import { VTooltip as X } from "vuetify/lib/components/VTooltip/index.mjs";
|
|
@@ -38,33 +38,33 @@ import { Ripple as Vo } from "vuetify/lib/directives/index.mjs";
|
|
|
38
38
|
import { VColorPicker as ko } from "vuetify/lib/components/VColorPicker/index.mjs";
|
|
39
39
|
import { VMenu as $o } from "vuetify/components";
|
|
40
40
|
import { VAppBar as xo } from "vuetify/lib/components/VAppBar/index.mjs";
|
|
41
|
-
const
|
|
41
|
+
const $e = K("http", {
|
|
42
42
|
state: () => ({
|
|
43
43
|
url: ""
|
|
44
44
|
}),
|
|
45
45
|
actions: {
|
|
46
46
|
async fetch(c, e = {}) {
|
|
47
|
-
const
|
|
47
|
+
const a = await fetch(`${this.url}${c}`, {
|
|
48
48
|
credentials: "include",
|
|
49
49
|
...e
|
|
50
50
|
});
|
|
51
|
-
return
|
|
51
|
+
return a.status === 204 ? a : a.json();
|
|
52
52
|
},
|
|
53
|
-
async post(c, e,
|
|
53
|
+
async post(c, e, a = {}) {
|
|
54
54
|
return this.fetch(c, {
|
|
55
55
|
method: "POST",
|
|
56
56
|
headers: {
|
|
57
57
|
"Content-Type": "application/json"
|
|
58
58
|
},
|
|
59
59
|
body: JSON.stringify(e),
|
|
60
|
-
...
|
|
60
|
+
...a
|
|
61
61
|
});
|
|
62
62
|
},
|
|
63
|
-
async form(c, e,
|
|
63
|
+
async form(c, e, a = {}) {
|
|
64
64
|
return this.fetch(c, {
|
|
65
65
|
method: "POST",
|
|
66
66
|
body: e,
|
|
67
|
-
...
|
|
67
|
+
...a
|
|
68
68
|
});
|
|
69
69
|
},
|
|
70
70
|
async get(c, e = {}) {
|
|
@@ -77,7 +77,7 @@ const xe = K("http", {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
}),
|
|
80
|
+
}), je = typeof window < "u", Le = {
|
|
81
81
|
v: 5,
|
|
82
82
|
api: "link-only",
|
|
83
83
|
avatar: "",
|
|
@@ -116,137 +116,137 @@ const xe = K("http", {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}, j = K("user", () => {
|
|
119
|
-
const c = ht(
|
|
120
|
-
N(c,
|
|
119
|
+
const c = ht(Oe({}, Le));
|
|
120
|
+
N(c, a);
|
|
121
121
|
function e() {
|
|
122
|
-
if (!
|
|
122
|
+
if (!je)
|
|
123
123
|
return;
|
|
124
|
-
const
|
|
125
|
-
let
|
|
126
|
-
|
|
124
|
+
const l = localStorage.getItem("vuetify@user"), i = l ? JSON.parse(l) : {};
|
|
125
|
+
let r = i.v === c.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 = Le.suits, i.notifications.banners = Le.notifications.banners, r = !0), i.v = c.v, Object.assign(c, Oe(c, i)), r && a();
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
128
|
+
function a() {
|
|
129
|
+
je && localStorage.setItem("vuetify@user", JSON.stringify(c, null, 2));
|
|
130
130
|
}
|
|
131
131
|
function s() {
|
|
132
|
-
|
|
132
|
+
je && (Object.assign(c, Oe({}, Le)), a());
|
|
133
133
|
}
|
|
134
134
|
return e(), {
|
|
135
135
|
...gt(c),
|
|
136
136
|
load: e,
|
|
137
|
-
save:
|
|
137
|
+
save: a,
|
|
138
138
|
reset: s
|
|
139
139
|
};
|
|
140
140
|
}), z = K("auth", () => {
|
|
141
|
-
const c = F(!1), e = F(null),
|
|
142
|
-
var
|
|
143
|
-
return !
|
|
141
|
+
const c = F(!1), e = F(null), a = $e(), s = j(), l = B(!1), i = C(() => {
|
|
142
|
+
var y, m;
|
|
143
|
+
return !a.url || ((y = e.value) == null ? void 0 : y.isAdmin) || !!((m = e.value) != null && m.sponsorships.some((h) => h.isActive));
|
|
144
144
|
});
|
|
145
|
-
let
|
|
146
|
-
N(e, (
|
|
147
|
-
if (!(
|
|
145
|
+
let r = !!b();
|
|
146
|
+
N(e, (y) => {
|
|
147
|
+
if (!(y != null && y.settings))
|
|
148
148
|
return;
|
|
149
|
-
const
|
|
150
|
-
JSON.stringify(
|
|
149
|
+
const m = localStorage.getItem("vuetify@user") || "{}";
|
|
150
|
+
JSON.stringify(y.settings, null, 2) !== m && (r = !0, Object.assign(s, y.settings));
|
|
151
151
|
}), s.$subscribe(() => {
|
|
152
|
-
|
|
152
|
+
r || u(), r = !1;
|
|
153
153
|
});
|
|
154
|
-
async function
|
|
154
|
+
async function u() {
|
|
155
155
|
if (!(!e.value || !s.syncSettings))
|
|
156
156
|
try {
|
|
157
|
-
await
|
|
158
|
-
} catch (
|
|
159
|
-
console.error(
|
|
157
|
+
await a.post("/user/settings", { settings: s.$state });
|
|
158
|
+
} catch (y) {
|
|
159
|
+
console.error(y);
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
async function
|
|
163
|
-
if (
|
|
164
|
-
return
|
|
165
|
-
|
|
162
|
+
async function f(y = !1) {
|
|
163
|
+
if (f.promise)
|
|
164
|
+
return f.promise;
|
|
165
|
+
l.value = !0, f.promise = fetch(`${a.url}/auth/verify`, {
|
|
166
166
|
credentials: "include",
|
|
167
|
-
headers:
|
|
167
|
+
headers: y ? {
|
|
168
168
|
"Cache-Control": "no-cache"
|
|
169
169
|
} : void 0
|
|
170
170
|
}).then(
|
|
171
|
-
async (
|
|
172
|
-
|
|
171
|
+
async (m) => {
|
|
172
|
+
m.ok ? e.value = (await m.json()).user : m.status === 401 ? e.value = null : console.error(m.statusText);
|
|
173
173
|
},
|
|
174
174
|
() => {
|
|
175
175
|
}
|
|
176
176
|
).finally(() => {
|
|
177
|
-
|
|
177
|
+
l.value = !1, f.promise = null;
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
async function
|
|
182
|
-
|
|
183
|
-
const
|
|
180
|
+
f.promise = null;
|
|
181
|
+
async function p(y = "github") {
|
|
182
|
+
l.value = !0;
|
|
183
|
+
const m = `${a.url}/auth/${y}/redirect`, h = 400, w = 600, O = window.screenX + (window.innerWidth - h) / 2, R = window.screenY + (window.innerHeight - w) / 2, H = window.open(
|
|
184
184
|
"",
|
|
185
185
|
"vuetify:authorize:popup",
|
|
186
|
-
`popup,left=${
|
|
186
|
+
`popup,left=${O},top=${R},width=${h},height=${w},resizable`
|
|
187
187
|
);
|
|
188
|
-
if (!
|
|
188
|
+
if (!H) {
|
|
189
189
|
console.error("Failed to open popup");
|
|
190
190
|
return;
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
let
|
|
194
|
-
function
|
|
195
|
-
var
|
|
196
|
-
|
|
192
|
+
H.location.href = m;
|
|
193
|
+
let Se = -1, Ce = -1;
|
|
194
|
+
function fe(ee) {
|
|
195
|
+
var V;
|
|
196
|
+
ee.origin === a.url && ((V = ee.data) == null ? void 0 : V.type) === "auth-response" && (ee.data.status === "success" ? (e.value || localStorage.setItem("vuetify@lastLoginProvider", y), e.value = ee.data.body.user, u()) : console.error(ee.data.message), re());
|
|
197
197
|
}
|
|
198
198
|
function re() {
|
|
199
|
-
window.removeEventListener("message",
|
|
199
|
+
window.removeEventListener("message", fe), window.clearInterval(Se), window.clearTimeout(Ce), H == null || H.close(), l.value = !1;
|
|
200
200
|
}
|
|
201
|
-
window.addEventListener("message",
|
|
202
|
-
!
|
|
203
|
-
}, 1e3),
|
|
201
|
+
window.addEventListener("message", fe), Se = window.setInterval(() => {
|
|
202
|
+
!H || H.closed ? (console.error("Auth popup closed"), re()) : H.postMessage({ type: "auth-request" }, "*");
|
|
203
|
+
}, 1e3), Ce = window.setTimeout(() => {
|
|
204
204
|
re(), console.error("Auth timed out");
|
|
205
205
|
}, 120 * 1e3);
|
|
206
206
|
}
|
|
207
|
-
async function
|
|
208
|
-
|
|
209
|
-
const
|
|
207
|
+
async function _(y) {
|
|
208
|
+
l.value = !0;
|
|
209
|
+
const m = y ? `/auth/${y}/logout` : "/auth/logout";
|
|
210
210
|
try {
|
|
211
|
-
await
|
|
212
|
-
} catch (
|
|
213
|
-
console.error(
|
|
211
|
+
await a.post(m), await f(!0), e.value = null;
|
|
212
|
+
} catch (h) {
|
|
213
|
+
console.error(h);
|
|
214
214
|
} finally {
|
|
215
|
-
|
|
215
|
+
l.value = !1;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
var
|
|
220
|
-
return (
|
|
218
|
+
function k(y) {
|
|
219
|
+
var m;
|
|
220
|
+
return (m = e.value) == null ? void 0 : m.identities.find((h) => h.provider === y);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function b() {
|
|
223
223
|
return localStorage.getItem("vuetify@lastLoginProvider");
|
|
224
224
|
}
|
|
225
|
-
return
|
|
225
|
+
return f(), {
|
|
226
226
|
user: e,
|
|
227
|
-
url:
|
|
227
|
+
url: a.url,
|
|
228
228
|
dialog: c,
|
|
229
|
-
isLoading:
|
|
230
|
-
findIdentity:
|
|
231
|
-
verify:
|
|
232
|
-
login:
|
|
233
|
-
logout:
|
|
234
|
-
isSubscriber:
|
|
235
|
-
lastLoginProvider:
|
|
236
|
-
sync:
|
|
229
|
+
isLoading: l,
|
|
230
|
+
findIdentity: k,
|
|
231
|
+
verify: f,
|
|
232
|
+
login: p,
|
|
233
|
+
logout: _,
|
|
234
|
+
isSubscriber: i,
|
|
235
|
+
lastLoginProvider: b,
|
|
236
|
+
sync: u
|
|
237
237
|
};
|
|
238
238
|
}), wo = { class: "text-body-2" }, So = /* @__PURE__ */ g("div", { class: "text-caption mt-n1" }, "Last Used", -1), ct = /* @__PURE__ */ $({
|
|
239
239
|
__name: "VoAuthDiscord",
|
|
240
240
|
setup(c) {
|
|
241
|
-
const e = z(),
|
|
242
|
-
return (
|
|
243
|
-
"prepend-icon": `svg:${o(
|
|
241
|
+
const e = z(), a = C(() => e.user && e.findIdentity("discord")), s = C(() => e.user ? a.value ? "Connected to Discord" : "Connect Discord" : "Login with Discord");
|
|
242
|
+
return (l, i) => (d(), v(ye, {
|
|
243
|
+
"prepend-icon": `svg:${o(He)}`,
|
|
244
244
|
"base-color": "#5865F2",
|
|
245
245
|
rounded: "pill",
|
|
246
246
|
variant: "flat",
|
|
247
247
|
slim: "",
|
|
248
|
-
onClick:
|
|
249
|
-
},
|
|
248
|
+
onClick: i[0] || (i[0] = (r) => o(e).login("discord"))
|
|
249
|
+
}, Z({
|
|
250
250
|
title: n(() => [
|
|
251
251
|
g("span", wo, L(s.value), 1)
|
|
252
252
|
]),
|
|
@@ -264,15 +264,15 @@ const xe = K("http", {
|
|
|
264
264
|
}), Co = { class: "text-body-2" }, Lo = /* @__PURE__ */ g("div", { class: "text-caption mt-n1" }, "Last Used", -1), ut = /* @__PURE__ */ $({
|
|
265
265
|
__name: "VoAuthGithub",
|
|
266
266
|
setup(c) {
|
|
267
|
-
const e = z(),
|
|
268
|
-
return (
|
|
269
|
-
"prepend-icon": `svg:${o(
|
|
267
|
+
const e = z(), a = C(() => e.user && e.findIdentity("github")), s = C(() => e.user ? a.value ? "Connected to GitHub" : "Connect GitHub" : "Login with GitHub");
|
|
268
|
+
return (l, i) => (d(), v(ye, {
|
|
269
|
+
"prepend-icon": `svg:${o(Ee)}`,
|
|
270
270
|
"base-color": "#2a2a2a",
|
|
271
271
|
rounded: "pill",
|
|
272
272
|
variant: "flat",
|
|
273
273
|
slim: "",
|
|
274
|
-
onClick:
|
|
275
|
-
},
|
|
274
|
+
onClick: i[0] || (i[0] = (r) => o(e).login("github"))
|
|
275
|
+
}, Z({
|
|
276
276
|
title: n(() => [
|
|
277
277
|
g("span", Co, L(s.value), 1)
|
|
278
278
|
]),
|
|
@@ -291,43 +291,43 @@ const xe = K("http", {
|
|
|
291
291
|
__name: "VoAuthCard",
|
|
292
292
|
setup(c) {
|
|
293
293
|
const e = z();
|
|
294
|
-
return (
|
|
295
|
-
const
|
|
296
|
-
return
|
|
294
|
+
return (a, s) => {
|
|
295
|
+
const l = ut, i = ct;
|
|
296
|
+
return d(), v(P, {
|
|
297
297
|
class: "pt-6 pb-8 px-4 px-sm-8 mx-auto",
|
|
298
298
|
"max-width": "480"
|
|
299
299
|
}, {
|
|
300
300
|
default: n(() => [
|
|
301
301
|
g("div", Io, [
|
|
302
|
-
t(
|
|
302
|
+
t(se, {
|
|
303
303
|
image: "https://vuetifyjs.b-cdn.net/docs/images/avatars/one.png",
|
|
304
304
|
class: "mx-auto",
|
|
305
305
|
size: "64"
|
|
306
306
|
}, null, 8, ["image"])
|
|
307
307
|
]),
|
|
308
308
|
g("div", Ao, [
|
|
309
|
-
t(
|
|
309
|
+
t(lo, { class: "text-h5 mb-1 text-md-h4" }, {
|
|
310
310
|
default: n(() => [
|
|
311
311
|
g("div", Do, L(o(e).lastLoginProvider() ? "Welcome back to" : "Login to"), 1),
|
|
312
312
|
Bo
|
|
313
313
|
]),
|
|
314
314
|
_: 1
|
|
315
315
|
}),
|
|
316
|
-
t(
|
|
316
|
+
t(ro, { class: "text-wrap" }, {
|
|
317
317
|
default: n(() => [
|
|
318
318
|
U(" Login with GitHub or Discord to save your settings and unlock exclusive subscriber perks. ")
|
|
319
319
|
]),
|
|
320
320
|
_: 1
|
|
321
321
|
})
|
|
322
322
|
]),
|
|
323
|
-
t(
|
|
323
|
+
t(ne, {
|
|
324
324
|
class: "mx-auto",
|
|
325
325
|
"max-width": "300",
|
|
326
326
|
width: "100%"
|
|
327
327
|
}, {
|
|
328
328
|
default: n(() => [
|
|
329
|
-
t(
|
|
330
|
-
t(
|
|
329
|
+
t(l, { class: "mb-3" }),
|
|
330
|
+
t(i)
|
|
331
331
|
]),
|
|
332
332
|
_: 1
|
|
333
333
|
})
|
|
@@ -340,121 +340,121 @@ const xe = K("http", {
|
|
|
340
340
|
__name: "VoAuthDialog",
|
|
341
341
|
setup(c) {
|
|
342
342
|
const e = z();
|
|
343
|
-
return (
|
|
344
|
-
const
|
|
345
|
-
return
|
|
343
|
+
return (a, s) => {
|
|
344
|
+
const l = dt;
|
|
345
|
+
return d(), v(at, {
|
|
346
346
|
modelValue: o(e).dialog,
|
|
347
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
347
|
+
"onUpdate:modelValue": s[0] || (s[0] = (i) => o(e).dialog = i),
|
|
348
348
|
"max-width": "480"
|
|
349
349
|
}, {
|
|
350
350
|
default: n(() => [
|
|
351
|
-
t(
|
|
351
|
+
t(l)
|
|
352
352
|
]),
|
|
353
353
|
_: 1
|
|
354
354
|
}, 8, ["modelValue"]);
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
|
-
}),
|
|
358
|
-
const c =
|
|
357
|
+
}), Ue = K("notifications", () => {
|
|
358
|
+
const c = $e(), e = j(), a = F([]), s = F([]), l = F(), i = B(!1), r = C(() => a.value.filter((m) => !e.notifications.read.includes(m.slug))), u = C(() => a.value.filter((m) => e.notifications.read.includes(m.slug)));
|
|
359
359
|
async function f() {
|
|
360
360
|
try {
|
|
361
|
-
|
|
361
|
+
i.value = !0;
|
|
362
362
|
const m = await c.get("/one/notifications");
|
|
363
|
-
|
|
363
|
+
a.value = m.notifications;
|
|
364
364
|
} catch {
|
|
365
365
|
} finally {
|
|
366
|
-
|
|
366
|
+
i.value = !1;
|
|
367
367
|
}
|
|
368
|
-
return
|
|
368
|
+
return a.value;
|
|
369
369
|
}
|
|
370
|
-
async function
|
|
370
|
+
async function p(m) {
|
|
371
371
|
try {
|
|
372
|
-
|
|
373
|
-
const
|
|
374
|
-
return
|
|
372
|
+
i.value = !0;
|
|
373
|
+
const h = await c.get(`/one/admin/notifications/${m}`);
|
|
374
|
+
return l.value = h.notification, h.notification;
|
|
375
375
|
} catch {
|
|
376
376
|
} finally {
|
|
377
|
-
|
|
377
|
+
i.value = !1;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
async function
|
|
380
|
+
async function _(m) {
|
|
381
381
|
try {
|
|
382
|
-
|
|
383
|
-
const
|
|
382
|
+
i.value = !0;
|
|
383
|
+
const h = await c.form(
|
|
384
384
|
"/one/admin/notifications",
|
|
385
385
|
m
|
|
386
386
|
);
|
|
387
|
-
return
|
|
387
|
+
return l.value = h.notification, h.notification;
|
|
388
388
|
} catch {
|
|
389
389
|
} finally {
|
|
390
|
-
|
|
390
|
+
i.value = !1;
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
async function
|
|
393
|
+
async function k(m, h) {
|
|
394
394
|
try {
|
|
395
|
-
|
|
396
|
-
const
|
|
395
|
+
i.value = !0;
|
|
396
|
+
const w = await c.form(
|
|
397
397
|
`/one/admin/notifications/${m}`,
|
|
398
|
-
|
|
398
|
+
h
|
|
399
399
|
);
|
|
400
|
-
return
|
|
400
|
+
return l.value = w.notification, w.notification;
|
|
401
401
|
} catch {
|
|
402
402
|
} finally {
|
|
403
|
-
|
|
403
|
+
i.value = !1;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
async function b() {
|
|
407
407
|
}
|
|
408
|
-
async function
|
|
408
|
+
async function y() {
|
|
409
409
|
try {
|
|
410
|
-
|
|
410
|
+
i.value = !0;
|
|
411
411
|
const m = await c.get("/one/admin/notifications");
|
|
412
412
|
s.value = m.notifications;
|
|
413
413
|
} catch {
|
|
414
414
|
} finally {
|
|
415
|
-
|
|
415
|
+
i.value = !1;
|
|
416
416
|
}
|
|
417
|
-
return
|
|
417
|
+
return a.value;
|
|
418
418
|
}
|
|
419
419
|
return {
|
|
420
|
-
isLoading:
|
|
421
|
-
all:
|
|
420
|
+
isLoading: i,
|
|
421
|
+
all: a,
|
|
422
422
|
aall: s,
|
|
423
|
-
admin:
|
|
424
|
-
record:
|
|
423
|
+
admin: y,
|
|
424
|
+
record: l,
|
|
425
425
|
index: f,
|
|
426
|
-
show:
|
|
427
|
-
store:
|
|
428
|
-
update:
|
|
426
|
+
show: p,
|
|
427
|
+
store: _,
|
|
428
|
+
update: k,
|
|
429
429
|
destroy: b,
|
|
430
430
|
read: u,
|
|
431
|
-
unread:
|
|
431
|
+
unread: r
|
|
432
432
|
};
|
|
433
433
|
}), Uo = /* @__PURE__ */ $({
|
|
434
434
|
__name: "VoNotificationsTotalBadge",
|
|
435
435
|
setup(c) {
|
|
436
|
-
const e = z(),
|
|
437
|
-
return (
|
|
438
|
-
content:
|
|
436
|
+
const e = z(), a = Ue(), s = j(), l = C(() => s.notifications.show ? a.unread.length : 0);
|
|
437
|
+
return (i, r) => (d(), v(Ge, {
|
|
438
|
+
content: l.value,
|
|
439
439
|
dot: !!o(e).user,
|
|
440
|
-
"model-value":
|
|
440
|
+
"model-value": l.value > 0,
|
|
441
441
|
color: "error",
|
|
442
442
|
location: "start top"
|
|
443
443
|
}, {
|
|
444
444
|
default: n(() => [
|
|
445
|
-
M(
|
|
445
|
+
M(i.$slots, "default")
|
|
446
446
|
]),
|
|
447
447
|
_: 3
|
|
448
448
|
}, 8, ["content", "dot", "model-value"]));
|
|
449
449
|
}
|
|
450
|
-
}),
|
|
450
|
+
}), ae = /* @__PURE__ */ $({
|
|
451
451
|
__name: "VoBtn",
|
|
452
452
|
props: {
|
|
453
453
|
readonly: { type: Boolean }
|
|
454
454
|
},
|
|
455
455
|
setup(c) {
|
|
456
456
|
const e = c;
|
|
457
|
-
return (
|
|
457
|
+
return (a, s) => (d(), v(G, {
|
|
458
458
|
style: Je({
|
|
459
459
|
pointerEvents: e.readonly ? "none" : void 0
|
|
460
460
|
}),
|
|
@@ -463,29 +463,29 @@ const xe = K("http", {
|
|
|
463
463
|
color: "primary",
|
|
464
464
|
size: "small",
|
|
465
465
|
variant: "flat"
|
|
466
|
-
},
|
|
466
|
+
}, Z({
|
|
467
467
|
loader: n(() => [
|
|
468
|
-
|
|
468
|
+
a.$slots.loader ? x("", !0) : (d(), v(co, {
|
|
469
469
|
key: 0,
|
|
470
470
|
indeterminate: "disable-shrink",
|
|
471
471
|
size: "16",
|
|
472
472
|
width: "2"
|
|
473
473
|
})),
|
|
474
|
-
M(
|
|
474
|
+
M(a.$slots, "loader")
|
|
475
475
|
]),
|
|
476
476
|
_: 2
|
|
477
477
|
}, [
|
|
478
|
-
|
|
478
|
+
a.$slots.prepend ? {
|
|
479
479
|
name: "prepend",
|
|
480
480
|
fn: n(() => [
|
|
481
|
-
M(
|
|
481
|
+
M(a.$slots, "prepend")
|
|
482
482
|
]),
|
|
483
483
|
key: "0"
|
|
484
484
|
} : void 0,
|
|
485
|
-
|
|
485
|
+
a.$slots.default ? {
|
|
486
486
|
name: "default",
|
|
487
487
|
fn: n(() => [
|
|
488
|
-
M(
|
|
488
|
+
M(a.$slots, "default")
|
|
489
489
|
]),
|
|
490
490
|
key: "1"
|
|
491
491
|
} : void 0
|
|
@@ -494,63 +494,63 @@ const xe = K("http", {
|
|
|
494
494
|
}), No = { class: "pa-4 d-flex flex-column ga-4" }, mt = /* @__PURE__ */ $({
|
|
495
495
|
__name: "VoAuthListItem",
|
|
496
496
|
setup(c) {
|
|
497
|
-
const e = z(),
|
|
498
|
-
N(() => e.user, (
|
|
499
|
-
s.value = !
|
|
497
|
+
const e = z(), a = j(), s = B(!e.user && !e.isLoading);
|
|
498
|
+
N(() => e.user, (i) => {
|
|
499
|
+
s.value = !i;
|
|
500
500
|
});
|
|
501
|
-
function
|
|
501
|
+
function l() {
|
|
502
502
|
e.user && (s.value = !s.value);
|
|
503
503
|
}
|
|
504
|
-
return (
|
|
504
|
+
return (i, r) => {
|
|
505
505
|
const u = ut, f = ct;
|
|
506
|
-
return
|
|
506
|
+
return d(), v(P, {
|
|
507
507
|
variant: s.value ? "tonal" : "text",
|
|
508
508
|
class: "ma-2",
|
|
509
509
|
rounded: "lg"
|
|
510
510
|
}, {
|
|
511
511
|
default: n(() => [
|
|
512
|
-
t(
|
|
512
|
+
t(ne, { class: "py-0" }, {
|
|
513
513
|
default: n(() => [
|
|
514
|
-
t(
|
|
514
|
+
t(ye, {
|
|
515
515
|
link: !!o(e).user,
|
|
516
|
-
"prepend-icon": `svg:${o(e).user && o(
|
|
517
|
-
title: o(e).user && o(
|
|
516
|
+
"prepend-icon": `svg:${o(e).user && o(a).syncSettings ? o(xt) : o(wt)}`,
|
|
517
|
+
title: o(e).user && o(a).syncSettings ? "Sync is on" : "Sync is paused",
|
|
518
518
|
class: "mb-0",
|
|
519
519
|
rounded: "b-0",
|
|
520
520
|
nav: "",
|
|
521
521
|
slim: "",
|
|
522
|
-
onClick:
|
|
522
|
+
onClick: l
|
|
523
523
|
}, {
|
|
524
524
|
append: n(() => [
|
|
525
|
-
t(
|
|
525
|
+
t(Ae, null, {
|
|
526
526
|
default: n(() => [
|
|
527
|
-
o(e).user && (s.value || !o(
|
|
527
|
+
o(e).user && (s.value || !o(a).syncSettings) ? (d(), v(it, {
|
|
528
528
|
key: 0,
|
|
529
|
-
modelValue: o(
|
|
530
|
-
"onUpdate:modelValue":
|
|
531
|
-
color: o(
|
|
529
|
+
modelValue: o(a).syncSettings,
|
|
530
|
+
"onUpdate:modelValue": r[0] || (r[0] = (p) => o(a).syncSettings = p),
|
|
531
|
+
color: o(a).syncSettings ? "success" : void 0,
|
|
532
532
|
density: "compact",
|
|
533
533
|
"hide-details": "",
|
|
534
534
|
inset: "",
|
|
535
|
-
onClick:
|
|
535
|
+
onClick: r[1] || (r[1] = Me(() => {
|
|
536
536
|
}, ["stop"]))
|
|
537
537
|
}, {
|
|
538
538
|
thumb: n(() => [
|
|
539
|
-
t(
|
|
540
|
-
color: o(
|
|
539
|
+
t(se, {
|
|
540
|
+
color: o(a).syncSettings ? "success" : void 0
|
|
541
541
|
}, null, 8, ["color"])
|
|
542
542
|
]),
|
|
543
543
|
_: 1
|
|
544
|
-
}, 8, ["modelValue", "color"])) :
|
|
544
|
+
}, 8, ["modelValue", "color"])) : x("", !0)
|
|
545
545
|
]),
|
|
546
546
|
_: 1
|
|
547
547
|
})
|
|
548
548
|
]),
|
|
549
549
|
_: 1
|
|
550
550
|
}, 8, ["link", "prepend-icon", "title"]),
|
|
551
|
-
t(
|
|
551
|
+
t(be, null, {
|
|
552
552
|
default: n(() => [
|
|
553
|
-
!o(e).user && !o(e).isLoading || s.value ? (
|
|
553
|
+
!o(e).user && !o(e).isLoading || s.value ? (d(), v(he, {
|
|
554
554
|
key: 0,
|
|
555
555
|
border: "t",
|
|
556
556
|
color: "transparent"
|
|
@@ -558,15 +558,15 @@ const xe = K("http", {
|
|
|
558
558
|
default: n(() => [
|
|
559
559
|
g("div", No, [
|
|
560
560
|
t(u, {
|
|
561
|
-
onClick:
|
|
561
|
+
onClick: r[2] || (r[2] = (p) => s.value = !1)
|
|
562
562
|
}),
|
|
563
563
|
t(f, {
|
|
564
|
-
onClick:
|
|
564
|
+
onClick: r[3] || (r[3] = (p) => s.value = !1)
|
|
565
565
|
})
|
|
566
566
|
])
|
|
567
567
|
]),
|
|
568
568
|
_: 1
|
|
569
|
-
})) :
|
|
569
|
+
})) : x("", !0)
|
|
570
570
|
]),
|
|
571
571
|
_: 1
|
|
572
572
|
})
|
|
@@ -581,7 +581,7 @@ const xe = K("http", {
|
|
|
581
581
|
}), Y = /* @__PURE__ */ $({
|
|
582
582
|
__name: "VoListItem",
|
|
583
583
|
setup(c) {
|
|
584
|
-
return (e,
|
|
584
|
+
return (e, a) => (d(), v(ye, { slim: "" }, Z({
|
|
585
585
|
default: n(() => [
|
|
586
586
|
M(e.$slots, "default")
|
|
587
587
|
]),
|
|
@@ -610,19 +610,19 @@ const xe = K("http", {
|
|
|
610
610
|
} : void 0
|
|
611
611
|
]), 1024));
|
|
612
612
|
}
|
|
613
|
-
}),
|
|
613
|
+
}), zo = /* @__PURE__ */ $({
|
|
614
614
|
__name: "VoAuthLogoutListItem",
|
|
615
615
|
setup(c) {
|
|
616
|
-
const e = z(),
|
|
616
|
+
const e = z(), a = B(!1);
|
|
617
617
|
async function s() {
|
|
618
|
-
|
|
618
|
+
a.value = !0, await e.logout(), a.value = !1;
|
|
619
619
|
}
|
|
620
|
-
return (
|
|
621
|
-
const
|
|
622
|
-
return
|
|
623
|
-
disabled:
|
|
624
|
-
loading:
|
|
625
|
-
"prepend-icon": `svg:${o(
|
|
620
|
+
return (l, i) => {
|
|
621
|
+
const r = Y;
|
|
622
|
+
return d(), v(r, {
|
|
623
|
+
disabled: a.value,
|
|
624
|
+
loading: a.value,
|
|
625
|
+
"prepend-icon": `svg:${o(St)}`,
|
|
626
626
|
class: "mb-0",
|
|
627
627
|
title: "Logout",
|
|
628
628
|
link: "",
|
|
@@ -630,7 +630,7 @@ const xe = K("http", {
|
|
|
630
630
|
}, null, 8, ["disabled", "loading", "prepend-icon"]);
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
|
-
}),
|
|
633
|
+
}), xe = /* @__PURE__ */ $({
|
|
634
634
|
__name: "VoDialog",
|
|
635
635
|
props: /* @__PURE__ */ Xe({
|
|
636
636
|
prependIcon: {},
|
|
@@ -641,59 +641,59 @@ const xe = K("http", {
|
|
|
641
641
|
}),
|
|
642
642
|
emits: ["update:modelValue"],
|
|
643
643
|
setup(c) {
|
|
644
|
-
const e = le(c, "modelValue"),
|
|
645
|
-
return (
|
|
644
|
+
const e = le(c, "modelValue"), a = pe(), s = B(!1);
|
|
645
|
+
return (l, i) => (d(), v(at, {
|
|
646
646
|
modelValue: e.value,
|
|
647
|
-
"onUpdate:modelValue":
|
|
648
|
-
fullscreen: s.value || o(
|
|
649
|
-
"max-height": s.value || o(
|
|
650
|
-
"max-width": s.value || o(
|
|
647
|
+
"onUpdate:modelValue": i[2] || (i[2] = (r) => e.value = r),
|
|
648
|
+
fullscreen: s.value || o(a).xs.value,
|
|
649
|
+
"max-height": s.value || o(a).xs.value ? "100%" : 800,
|
|
650
|
+
"max-width": s.value || o(a).xs.value ? "100%" : 800,
|
|
651
651
|
activator: "parent",
|
|
652
652
|
height: "100%"
|
|
653
653
|
}, {
|
|
654
|
-
default: n(({ isActive:
|
|
654
|
+
default: n(({ isActive: r }) => [
|
|
655
655
|
t(P, {
|
|
656
|
-
"prepend-icon":
|
|
657
|
-
title:
|
|
656
|
+
"prepend-icon": l.prependIcon,
|
|
657
|
+
title: l.title,
|
|
658
658
|
class: "overflow-hidden",
|
|
659
659
|
height: "inherit"
|
|
660
|
-
},
|
|
660
|
+
}, Z({
|
|
661
661
|
append: n(() => [
|
|
662
|
-
M(
|
|
663
|
-
o(
|
|
662
|
+
M(l.$slots, "append"),
|
|
663
|
+
o(a).xs.value ? x("", !0) : (d(), v(G, {
|
|
664
664
|
key: 0,
|
|
665
|
-
icon: `svg:${s.value ? o(
|
|
665
|
+
icon: `svg:${s.value ? o(Ct) : o(Lt)}`,
|
|
666
666
|
class: "me-2",
|
|
667
667
|
density: "comfortable",
|
|
668
668
|
size: "small",
|
|
669
669
|
variant: "text",
|
|
670
|
-
onClick:
|
|
670
|
+
onClick: i[0] || (i[0] = (u) => s.value = !s.value)
|
|
671
671
|
}, null, 8, ["icon"])),
|
|
672
|
-
t(
|
|
672
|
+
t(G, {
|
|
673
673
|
density: "comfortable",
|
|
674
674
|
icon: "$close",
|
|
675
675
|
size: "small",
|
|
676
676
|
variant: "text",
|
|
677
|
-
onClick:
|
|
677
|
+
onClick: i[1] || (i[1] = (u) => e.value = !e.value)
|
|
678
678
|
})
|
|
679
679
|
]),
|
|
680
680
|
default: n(() => [
|
|
681
|
-
t(
|
|
682
|
-
M(
|
|
681
|
+
t(W, { class: "mt-4" }),
|
|
682
|
+
M(l.$slots, "default")
|
|
683
683
|
]),
|
|
684
684
|
_: 2
|
|
685
685
|
}, [
|
|
686
|
-
|
|
686
|
+
l.$slots.prepend ? {
|
|
687
687
|
name: "prepend",
|
|
688
688
|
fn: n(() => [
|
|
689
|
-
M(
|
|
689
|
+
M(l.$slots, "prepend")
|
|
690
690
|
]),
|
|
691
691
|
key: "0"
|
|
692
692
|
} : void 0,
|
|
693
|
-
|
|
693
|
+
l.$slots.actions ? {
|
|
694
694
|
name: "actions",
|
|
695
695
|
fn: n(() => [
|
|
696
|
-
M(
|
|
696
|
+
M(l.$slots, "actions", { isActive: r })
|
|
697
697
|
]),
|
|
698
698
|
key: "1"
|
|
699
699
|
} : void 0
|
|
@@ -708,13 +708,13 @@ const xe = K("http", {
|
|
|
708
708
|
disabled: { type: Boolean }
|
|
709
709
|
},
|
|
710
710
|
setup(c) {
|
|
711
|
-
return (e,
|
|
711
|
+
return (e, a) => (d(), v(it, {
|
|
712
712
|
disabled: e.disabled,
|
|
713
713
|
"true-icon": `svg:${o(de)}`,
|
|
714
714
|
color: "primary",
|
|
715
715
|
density: "compact",
|
|
716
716
|
inset: ""
|
|
717
|
-
},
|
|
717
|
+
}, Z({
|
|
718
718
|
thumb: n(() => [
|
|
719
719
|
t(A, {
|
|
720
720
|
color: e.disabled ? void 0 : "primary"
|
|
@@ -731,18 +731,18 @@ const xe = K("http", {
|
|
|
731
731
|
} : void 0
|
|
732
732
|
]), 1032, ["disabled", "true-icon"]));
|
|
733
733
|
}
|
|
734
|
-
}),
|
|
734
|
+
}), Oo = {
|
|
735
735
|
key: 1,
|
|
736
736
|
class: "mb-3 text-caption text-medium-emphasis"
|
|
737
|
-
},
|
|
737
|
+
}, we = /* @__PURE__ */ $({
|
|
738
738
|
__name: "VoDialogSubheader",
|
|
739
739
|
props: {
|
|
740
740
|
title: {},
|
|
741
741
|
text: {}
|
|
742
742
|
},
|
|
743
743
|
setup(c) {
|
|
744
|
-
return (e,
|
|
745
|
-
e.title ? (
|
|
744
|
+
return (e, a) => (d(), S(D, null, [
|
|
745
|
+
e.title ? (d(), v(Fe, {
|
|
746
746
|
key: 0,
|
|
747
747
|
class: "font-weight-black"
|
|
748
748
|
}, {
|
|
@@ -750,18 +750,18 @@ const xe = K("http", {
|
|
|
750
750
|
U(L(e.title), 1)
|
|
751
751
|
]),
|
|
752
752
|
_: 1
|
|
753
|
-
})) :
|
|
754
|
-
e.text ? (
|
|
753
|
+
})) : x("", !0),
|
|
754
|
+
e.text ? (d(), S("div", Oo, L(e.text), 1)) : x("", !0)
|
|
755
755
|
], 64));
|
|
756
756
|
}
|
|
757
757
|
}), jo = { key: 0 }, Fo = /* @__PURE__ */ $({
|
|
758
758
|
__name: "VoSettingsPageSuitOption",
|
|
759
759
|
setup(c) {
|
|
760
|
-
const e = j(),
|
|
760
|
+
const e = j(), a = [
|
|
761
761
|
{
|
|
762
762
|
title: "Choose a page suit",
|
|
763
763
|
value: "",
|
|
764
|
-
prependIcon: `svg:${
|
|
764
|
+
prependIcon: `svg:${Dt}`,
|
|
765
765
|
disabled: !0
|
|
766
766
|
},
|
|
767
767
|
{
|
|
@@ -780,23 +780,23 @@ const xe = K("http", {
|
|
|
780
780
|
value: "nebula"
|
|
781
781
|
}
|
|
782
782
|
];
|
|
783
|
-
return (s,
|
|
784
|
-
const
|
|
785
|
-
return
|
|
786
|
-
t(
|
|
783
|
+
return (s, l) => {
|
|
784
|
+
const i = ft, r = we;
|
|
785
|
+
return d(), S(D, null, [
|
|
786
|
+
t(i, {
|
|
787
787
|
modelValue: o(e).suits.show,
|
|
788
|
-
"onUpdate:modelValue":
|
|
788
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => o(e).suits.show = u),
|
|
789
789
|
class: "mb-2",
|
|
790
790
|
label: "Enable Page suits",
|
|
791
791
|
messages: "Customize layout elements with a unique background, styled after one of our themed releases."
|
|
792
792
|
}, null, 8, ["modelValue"]),
|
|
793
|
-
t(
|
|
793
|
+
t(be, null, {
|
|
794
794
|
default: n(() => [
|
|
795
|
-
o(e).suits.show ? (
|
|
796
|
-
t(
|
|
795
|
+
o(e).suits.show ? (d(), S("div", jo, [
|
|
796
|
+
t(fo, {
|
|
797
797
|
modelValue: o(e).suits.suit,
|
|
798
|
-
"onUpdate:modelValue":
|
|
799
|
-
items:
|
|
798
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => o(e).suits.suit = u),
|
|
799
|
+
items: a,
|
|
800
800
|
density: "compact",
|
|
801
801
|
placeholder: "Choose a page suit",
|
|
802
802
|
style: { "max-width": "300px" },
|
|
@@ -815,24 +815,24 @@ const xe = K("http", {
|
|
|
815
815
|
]),
|
|
816
816
|
_: 1
|
|
817
817
|
}, 8, ["modelValue"]),
|
|
818
|
-
t(
|
|
819
|
-
t(
|
|
818
|
+
t(r, { text: "Select your suit elements to display the background image:" }),
|
|
819
|
+
t(mo, {
|
|
820
820
|
modelValue: o(e).suits.elements,
|
|
821
|
-
"onUpdate:modelValue":
|
|
821
|
+
"onUpdate:modelValue": l[2] || (l[2] = (u) => o(e).suits.elements = u),
|
|
822
822
|
color: "primary",
|
|
823
823
|
filter: "",
|
|
824
824
|
multiple: ""
|
|
825
825
|
}, {
|
|
826
826
|
default: n(() => [
|
|
827
|
-
t(
|
|
828
|
-
"append-icon": `svg:${o(
|
|
827
|
+
t(q, {
|
|
828
|
+
"append-icon": `svg:${o(It)}`,
|
|
829
829
|
"filter-icon": "$success",
|
|
830
830
|
text: "App Bar",
|
|
831
831
|
value: "app-bar",
|
|
832
832
|
variant: "flat"
|
|
833
833
|
}, {
|
|
834
834
|
append: n(() => [
|
|
835
|
-
t(
|
|
835
|
+
t(W, {
|
|
836
836
|
class: "ms-2 border-opacity-50",
|
|
837
837
|
vertical: ""
|
|
838
838
|
}),
|
|
@@ -840,15 +840,15 @@ const xe = K("http", {
|
|
|
840
840
|
]),
|
|
841
841
|
_: 1
|
|
842
842
|
}, 8, ["append-icon"]),
|
|
843
|
-
t(
|
|
844
|
-
"append-icon": `svg:${o(
|
|
843
|
+
t(q, {
|
|
844
|
+
"append-icon": `svg:${o(At)}`,
|
|
845
845
|
"filter-icon": "$success",
|
|
846
846
|
text: "Navigation Drawer",
|
|
847
847
|
value: "drawer",
|
|
848
848
|
variant: "flat"
|
|
849
849
|
}, {
|
|
850
850
|
append: n(() => [
|
|
851
|
-
t(
|
|
851
|
+
t(W, {
|
|
852
852
|
class: "ms-2 border-opacity-50",
|
|
853
853
|
vertical: ""
|
|
854
854
|
}),
|
|
@@ -856,7 +856,7 @@ const xe = K("http", {
|
|
|
856
856
|
]),
|
|
857
857
|
_: 1
|
|
858
858
|
}, 8, ["append-icon"]),
|
|
859
|
-
t(
|
|
859
|
+
t(q, {
|
|
860
860
|
"append-icon": "$info",
|
|
861
861
|
"filter-icon": "$success",
|
|
862
862
|
text: "Footer",
|
|
@@ -864,7 +864,7 @@ const xe = K("http", {
|
|
|
864
864
|
variant: "flat"
|
|
865
865
|
}, {
|
|
866
866
|
append: n(() => [
|
|
867
|
-
t(
|
|
867
|
+
t(W, {
|
|
868
868
|
class: "ms-2 border-opacity-50",
|
|
869
869
|
vertical: ""
|
|
870
870
|
}),
|
|
@@ -875,7 +875,7 @@ const xe = K("http", {
|
|
|
875
875
|
]),
|
|
876
876
|
_: 1
|
|
877
877
|
}, 8, ["modelValue"])
|
|
878
|
-
])) :
|
|
878
|
+
])) : x("", !0)
|
|
879
879
|
]),
|
|
880
880
|
_: 1
|
|
881
881
|
})
|
|
@@ -884,36 +884,36 @@ const xe = K("http", {
|
|
|
884
884
|
}
|
|
885
885
|
});
|
|
886
886
|
function me() {
|
|
887
|
-
const c =
|
|
887
|
+
const c = vo();
|
|
888
888
|
return C(
|
|
889
889
|
() => c.query
|
|
890
890
|
);
|
|
891
891
|
}
|
|
892
892
|
const T = K("one", () => {
|
|
893
|
-
const c = me(), e = c.value.session_id,
|
|
894
|
-
var
|
|
895
|
-
return (
|
|
896
|
-
}),
|
|
897
|
-
var
|
|
898
|
-
return (
|
|
899
|
-
}),
|
|
900
|
-
var
|
|
901
|
-
return !!((
|
|
893
|
+
const c = me(), e = c.value.session_id, a = qe(), s = z(), l = $e(), i = B(!1), r = F(!1), u = F(), f = F([]), p = C(() => {
|
|
894
|
+
var V;
|
|
895
|
+
return (V = u.value) == null ? void 0 : V.items[0].plan.interval;
|
|
896
|
+
}), _ = C(() => {
|
|
897
|
+
var V;
|
|
898
|
+
return (V = s.user) == null ? void 0 : V.sponsorships.find((I) => I.platform === "stripe" && I.tierName.startsWith("sub_"));
|
|
899
|
+
}), k = C(() => {
|
|
900
|
+
var V;
|
|
901
|
+
return !!((V = _.value) != null && V.tierName);
|
|
902
902
|
}), b = C(() => {
|
|
903
|
-
var
|
|
904
|
-
return (
|
|
905
|
-
}),
|
|
906
|
-
var
|
|
907
|
-
return (
|
|
903
|
+
var V;
|
|
904
|
+
return (V = _.value) == null ? void 0 : V.isActive;
|
|
905
|
+
}), y = C(() => {
|
|
906
|
+
var V;
|
|
907
|
+
return (V = s.user) == null ? void 0 : V.sponsorships.find((I) => I.platform === "github");
|
|
908
908
|
}), m = C(() => {
|
|
909
|
-
var
|
|
910
|
-
return (
|
|
911
|
-
}),
|
|
912
|
-
var
|
|
913
|
-
return (
|
|
914
|
-
}),
|
|
915
|
-
var
|
|
916
|
-
return (
|
|
909
|
+
var V;
|
|
910
|
+
return (V = s.user) == null ? void 0 : V.sponsorships.find((I) => I.platform === "discord");
|
|
911
|
+
}), h = C(() => {
|
|
912
|
+
var V;
|
|
913
|
+
return (V = s.user) == null ? void 0 : V.sponsorships.find((I) => I.platform === "patreon");
|
|
914
|
+
}), w = C(() => {
|
|
915
|
+
var V;
|
|
916
|
+
return (V = s.user) == null ? void 0 : V.sponsorships.reduce((I, Q) => {
|
|
917
917
|
if (!Q.isActive || Q.interval === "once" || Q.platform === "stripe")
|
|
918
918
|
return I;
|
|
919
919
|
const _t = Q.interval === "month" ? Q.amount : Q.amount / 12;
|
|
@@ -922,112 +922,112 @@ const T = K("one", () => {
|
|
|
922
922
|
});
|
|
923
923
|
yt(async () => {
|
|
924
924
|
e && await O();
|
|
925
|
-
}), N(
|
|
926
|
-
|
|
927
|
-
}), N(c, (
|
|
928
|
-
if (
|
|
925
|
+
}), N(r, (V) => {
|
|
926
|
+
V && ee();
|
|
927
|
+
}), N(c, (V) => {
|
|
928
|
+
if (V.one !== "subscribe" || s.user)
|
|
929
929
|
return;
|
|
930
930
|
s.dialog = !0;
|
|
931
931
|
const I = N(() => s.user, (Q) => {
|
|
932
932
|
Q && (s.dialog = !1, I());
|
|
933
933
|
});
|
|
934
|
-
}, { immediate: !0 }), N(b, (
|
|
935
|
-
|
|
934
|
+
}, { immediate: !0 }), N(b, (V, I) => {
|
|
935
|
+
V === !1 && I !== !0 || fe();
|
|
936
936
|
});
|
|
937
937
|
async function O() {
|
|
938
938
|
try {
|
|
939
|
-
|
|
940
|
-
const
|
|
941
|
-
s.user =
|
|
939
|
+
i.value = !0;
|
|
940
|
+
const V = await l.post("/one/activate", { sessionId: e });
|
|
941
|
+
s.user = V.user;
|
|
942
942
|
const I = new URL(window.location.href);
|
|
943
|
-
I.searchParams.delete("session_id"), history.pushState(null, "", I.toString()),
|
|
943
|
+
I.searchParams.delete("session_id"), history.pushState(null, "", I.toString()), re();
|
|
944
944
|
} catch {
|
|
945
945
|
} finally {
|
|
946
|
-
|
|
946
|
+
i.value = !1;
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
async function R() {
|
|
950
|
-
window.open(`${
|
|
950
|
+
window.open(`${l.url}/one/manage`, "_blank");
|
|
951
951
|
}
|
|
952
|
-
async function
|
|
953
|
-
|
|
952
|
+
async function H(V) {
|
|
953
|
+
i.value = !0, window.location.href = `${l.url}/one/subscribe?interval=${V}`;
|
|
954
954
|
}
|
|
955
|
-
async function
|
|
956
|
-
var
|
|
957
|
-
if (
|
|
955
|
+
async function Se() {
|
|
956
|
+
var V;
|
|
957
|
+
if (_.value)
|
|
958
958
|
try {
|
|
959
|
-
|
|
960
|
-
const I = await
|
|
961
|
-
`/one/cancel?subscriptionId=${(
|
|
959
|
+
i.value = !0;
|
|
960
|
+
const I = await l.post(
|
|
961
|
+
`/one/cancel?subscriptionId=${(V = _.value) == null ? void 0 : V.tierName}`
|
|
962
962
|
);
|
|
963
963
|
s.user = I.user;
|
|
964
964
|
} catch {
|
|
965
965
|
} finally {
|
|
966
|
-
|
|
966
|
+
i.value = !1;
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
async function Ce(
|
|
970
|
-
if (
|
|
969
|
+
async function Ce(V) {
|
|
970
|
+
if (_.value)
|
|
971
971
|
try {
|
|
972
|
-
|
|
973
|
-
const I = await
|
|
974
|
-
subscriptionId:
|
|
975
|
-
interval:
|
|
972
|
+
i.value = !0;
|
|
973
|
+
const I = await l.post("/one/modify", {
|
|
974
|
+
subscriptionId: _.value.tierName,
|
|
975
|
+
interval: V
|
|
976
976
|
});
|
|
977
977
|
s.user = I.user;
|
|
978
978
|
} catch {
|
|
979
979
|
} finally {
|
|
980
|
-
|
|
980
|
+
i.value = !1;
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
983
|
async function fe() {
|
|
984
|
-
var
|
|
985
|
-
if (
|
|
984
|
+
var V;
|
|
985
|
+
if (_.value)
|
|
986
986
|
try {
|
|
987
|
-
|
|
988
|
-
const I = await
|
|
989
|
-
`/one/verify?subscriptionId=${(
|
|
987
|
+
i.value = !0;
|
|
988
|
+
const I = await l.post(
|
|
989
|
+
`/one/verify?subscriptionId=${(V = _.value) == null ? void 0 : V.tierName}`
|
|
990
990
|
);
|
|
991
991
|
s.user = I.user;
|
|
992
992
|
} catch {
|
|
993
993
|
} finally {
|
|
994
|
-
|
|
994
|
+
i.value = !1;
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
async function
|
|
997
|
+
async function re() {
|
|
998
998
|
try {
|
|
999
|
-
|
|
1000
|
-
const
|
|
1001
|
-
return u.value =
|
|
999
|
+
i.value = !0;
|
|
1000
|
+
const V = await l.get("/one/info");
|
|
1001
|
+
return u.value = V.subscription, f.value = V.invoices, V;
|
|
1002
1002
|
} catch {
|
|
1003
1003
|
} finally {
|
|
1004
|
-
|
|
1004
|
+
i.value = !1;
|
|
1005
1005
|
}
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1008
|
-
|
|
1007
|
+
function ee() {
|
|
1008
|
+
a.push({ query: {} });
|
|
1009
1009
|
}
|
|
1010
1010
|
return {
|
|
1011
1011
|
info: u,
|
|
1012
|
-
interval:
|
|
1012
|
+
interval: p,
|
|
1013
1013
|
invoices: f,
|
|
1014
1014
|
sessionId: e,
|
|
1015
|
-
subscription:
|
|
1016
|
-
monthlyTotal:
|
|
1017
|
-
hasBilling:
|
|
1018
|
-
isLoading:
|
|
1019
|
-
isOpen:
|
|
1015
|
+
subscription: _,
|
|
1016
|
+
monthlyTotal: w,
|
|
1017
|
+
hasBilling: k,
|
|
1018
|
+
isLoading: i,
|
|
1019
|
+
isOpen: r,
|
|
1020
1020
|
isSubscriber: b,
|
|
1021
|
-
github:
|
|
1022
|
-
patreon:
|
|
1021
|
+
github: y,
|
|
1022
|
+
patreon: h,
|
|
1023
1023
|
discord: m,
|
|
1024
1024
|
activate: O,
|
|
1025
|
-
cancel:
|
|
1025
|
+
cancel: Se,
|
|
1026
1026
|
manage: R,
|
|
1027
1027
|
modify: Ce,
|
|
1028
|
-
resetQuery:
|
|
1029
|
-
subscribe:
|
|
1030
|
-
subscriptionInfo:
|
|
1028
|
+
resetQuery: ee,
|
|
1029
|
+
subscribe: H,
|
|
1030
|
+
subscriptionInfo: re,
|
|
1031
1031
|
verify: fe
|
|
1032
1032
|
};
|
|
1033
1033
|
});
|
|
@@ -1187,8 +1187,8 @@ function To() {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
};
|
|
1189
1189
|
}
|
|
1190
|
-
const
|
|
1191
|
-
const c = "https://cdn.vuetifyjs.com/docs/images/one/", e = z(),
|
|
1190
|
+
const Ne = K("settings", () => {
|
|
1191
|
+
const c = "https://cdn.vuetifyjs.com/docs/images/one/", e = z(), a = j(), s = po(), l = To(), i = {
|
|
1192
1192
|
blackguard: {
|
|
1193
1193
|
"app-bar": c + "suits/blackguard/blackguard-app-bar.png",
|
|
1194
1194
|
drawer: c + "suits/blackguard/blackguard-app-drawer.png",
|
|
@@ -1204,21 +1204,21 @@ const Oe = K("settings", () => {
|
|
|
1204
1204
|
drawer: c + "suits/nebula/nebula-app-drawer.png",
|
|
1205
1205
|
footer: c + "suits/nebula/nebula-app-footer.png"
|
|
1206
1206
|
}
|
|
1207
|
-
},
|
|
1208
|
-
if (!
|
|
1207
|
+
}, r = C(() => {
|
|
1208
|
+
if (!a.suits.suit || !a.suits.show || !e.isSubscriber)
|
|
1209
1209
|
return {};
|
|
1210
|
-
const u = a
|
|
1211
|
-
for (const
|
|
1212
|
-
f[
|
|
1210
|
+
const u = i[a.suits.suit.toLowerCase()], f = {};
|
|
1211
|
+
for (const p of a.suits.elements)
|
|
1212
|
+
f[p] = u[p];
|
|
1213
1213
|
return f;
|
|
1214
1214
|
});
|
|
1215
1215
|
return s.themes.value = {
|
|
1216
1216
|
...s.themes.value,
|
|
1217
|
-
...
|
|
1218
|
-
}, N(() =>
|
|
1219
|
-
u === "system" ? s.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (s.global.name.value = u,
|
|
1217
|
+
...l
|
|
1218
|
+
}, N(() => a.theme, (u) => {
|
|
1219
|
+
u === "system" ? s.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (s.global.name.value = u, a.suits.suit = i[u] ? u : ""), a.theme = u;
|
|
1220
1220
|
}, { immediate: !0 }), {
|
|
1221
|
-
suit:
|
|
1221
|
+
suit: r,
|
|
1222
1222
|
CDN_URL: c
|
|
1223
1223
|
};
|
|
1224
1224
|
}), Mo = /* @__PURE__ */ $({
|
|
@@ -1229,53 +1229,53 @@ const Oe = K("settings", () => {
|
|
|
1229
1229
|
},
|
|
1230
1230
|
emits: ["update:modelValue"],
|
|
1231
1231
|
setup(c) {
|
|
1232
|
-
const e = le(c, "modelValue"),
|
|
1232
|
+
const e = le(c, "modelValue"), a = z(), s = T(), l = Ne(), i = j(), r = [
|
|
1233
1233
|
{
|
|
1234
1234
|
title: "Light",
|
|
1235
1235
|
subtitle: "A standard light theme.",
|
|
1236
|
-
image:
|
|
1237
|
-
prependIcon: `svg:${
|
|
1236
|
+
image: l.CDN_URL + "themes/light.png",
|
|
1237
|
+
prependIcon: `svg:${Bt}`,
|
|
1238
1238
|
value: "light"
|
|
1239
1239
|
},
|
|
1240
1240
|
{
|
|
1241
1241
|
title: "Dark",
|
|
1242
1242
|
subtitle: "A standard dark theme.",
|
|
1243
|
-
image:
|
|
1244
|
-
prependIcon: `svg:${
|
|
1243
|
+
image: l.CDN_URL + "themes/dark.png",
|
|
1244
|
+
prependIcon: `svg:${Ut}`,
|
|
1245
1245
|
value: "dark"
|
|
1246
1246
|
},
|
|
1247
1247
|
{
|
|
1248
1248
|
title: "System",
|
|
1249
1249
|
subtitle: "A theme based on the system preference.",
|
|
1250
|
-
image:
|
|
1251
|
-
prependIcon: `svg:${
|
|
1250
|
+
image: l.CDN_URL + "themes/system.png",
|
|
1251
|
+
prependIcon: `svg:${Nt}`,
|
|
1252
1252
|
value: "system"
|
|
1253
1253
|
},
|
|
1254
1254
|
{
|
|
1255
1255
|
title: "Blackguard",
|
|
1256
1256
|
subtitle: "A theme for v3.4 Blackguard.",
|
|
1257
|
-
image:
|
|
1257
|
+
image: l.CDN_URL + "themes/blackguard.png",
|
|
1258
1258
|
prependIcon: `svg:${Ke}`,
|
|
1259
1259
|
value: "blackguard"
|
|
1260
1260
|
},
|
|
1261
1261
|
{
|
|
1262
1262
|
title: "Polaris",
|
|
1263
1263
|
subtitle: "A theme for v3.5 Polaris.",
|
|
1264
|
-
image:
|
|
1264
|
+
image: l.CDN_URL + "themes/polaris.png",
|
|
1265
1265
|
prependIcon: `svg:${et}`,
|
|
1266
1266
|
value: "polaris"
|
|
1267
1267
|
},
|
|
1268
1268
|
{
|
|
1269
1269
|
title: "Nebula",
|
|
1270
1270
|
subtitle: "A theme for v3.6 Nebula.",
|
|
1271
|
-
image:
|
|
1271
|
+
image: l.CDN_URL + "themes/nebula.png",
|
|
1272
1272
|
prependIcon: `svg:${tt}`,
|
|
1273
1273
|
value: "nebula"
|
|
1274
1274
|
},
|
|
1275
1275
|
{
|
|
1276
1276
|
title: "High Contrast",
|
|
1277
1277
|
subtitle: "A theme for high contrast.",
|
|
1278
|
-
image:
|
|
1278
|
+
image: l.CDN_URL + "themes/high-contrast.png",
|
|
1279
1279
|
prependIcon: `svg:${zt}`,
|
|
1280
1280
|
value: "highContrast",
|
|
1281
1281
|
disabled: !0
|
|
@@ -1283,46 +1283,46 @@ const Oe = K("settings", () => {
|
|
|
1283
1283
|
], u = me();
|
|
1284
1284
|
return N(u, async () => {
|
|
1285
1285
|
u.value.one === "settings" && (s.isOpen = !0, await ue(), e.value = !0);
|
|
1286
|
-
}, { immediate: !0 }), (f,
|
|
1287
|
-
const
|
|
1288
|
-
return
|
|
1286
|
+
}, { immediate: !0 }), (f, p) => {
|
|
1287
|
+
const _ = we, k = Fo, b = ft, y = xe;
|
|
1288
|
+
return d(), v(y, {
|
|
1289
1289
|
modelValue: e.value,
|
|
1290
|
-
"onUpdate:modelValue":
|
|
1291
|
-
"prepend-icon": `svg:${o(
|
|
1290
|
+
"onUpdate:modelValue": p[5] || (p[5] = (m) => e.value = m),
|
|
1291
|
+
"prepend-icon": `svg:${o(Ot)}`,
|
|
1292
1292
|
title: "Settings"
|
|
1293
1293
|
}, {
|
|
1294
1294
|
default: n(() => [
|
|
1295
|
-
t(
|
|
1295
|
+
t(Ve, null, {
|
|
1296
1296
|
default: n(() => [
|
|
1297
|
-
t(
|
|
1297
|
+
t(ke, { scrollable: "" }, {
|
|
1298
1298
|
default: n(() => [
|
|
1299
|
-
t(
|
|
1299
|
+
t(te, { class: "px-7" }, {
|
|
1300
1300
|
default: n(() => [
|
|
1301
|
-
t(
|
|
1301
|
+
t(_, {
|
|
1302
1302
|
text: "Customize your documentation experience with light and dark themes, as well as a combination of both named.",
|
|
1303
1303
|
title: "Theme"
|
|
1304
1304
|
}),
|
|
1305
1305
|
t(lt, {
|
|
1306
|
-
modelValue: o(
|
|
1307
|
-
"onUpdate:modelValue":
|
|
1306
|
+
modelValue: o(i).theme,
|
|
1307
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => o(i).theme = m),
|
|
1308
1308
|
mandatory: ""
|
|
1309
1309
|
}, {
|
|
1310
1310
|
default: n(() => [
|
|
1311
1311
|
t(ce, { dense: "" }, {
|
|
1312
1312
|
default: n(() => [
|
|
1313
|
-
(
|
|
1314
|
-
key:
|
|
1313
|
+
(d(), S(D, null, oe(r, (m, h) => t(J, {
|
|
1314
|
+
key: h,
|
|
1315
1315
|
cols: "12",
|
|
1316
1316
|
md: "6"
|
|
1317
1317
|
}, {
|
|
1318
1318
|
default: n(() => [
|
|
1319
|
-
t(
|
|
1319
|
+
t(Te, {
|
|
1320
1320
|
value: m.value
|
|
1321
1321
|
}, {
|
|
1322
|
-
default: n(({ toggle:
|
|
1323
|
-
t(
|
|
1324
|
-
default: n(({ props: R, isHovering:
|
|
1325
|
-
t(P,
|
|
1322
|
+
default: n(({ toggle: w, isSelected: O }) => [
|
|
1323
|
+
t(Be, null, {
|
|
1324
|
+
default: n(({ props: R, isHovering: H }) => [
|
|
1325
|
+
t(P, E({
|
|
1326
1326
|
color: O ? "primary" : "surface-variant",
|
|
1327
1327
|
disabled: m.disabled,
|
|
1328
1328
|
image: m.image,
|
|
@@ -1332,11 +1332,11 @@ const Oe = K("settings", () => {
|
|
|
1332
1332
|
title: m.title,
|
|
1333
1333
|
height: "76",
|
|
1334
1334
|
variant: "tonal"
|
|
1335
|
-
}, R, { onClick:
|
|
1335
|
+
}, R, { onClick: w }), {
|
|
1336
1336
|
image: n(() => [
|
|
1337
1337
|
t(ie, {
|
|
1338
1338
|
style: Je({
|
|
1339
|
-
filter: O ||
|
|
1339
|
+
filter: O || H ? "none" : "grayscale(100%)"
|
|
1340
1340
|
})
|
|
1341
1341
|
}, null, 8, ["style"])
|
|
1342
1342
|
]),
|
|
@@ -1357,65 +1357,65 @@ const Oe = K("settings", () => {
|
|
|
1357
1357
|
]),
|
|
1358
1358
|
_: 1
|
|
1359
1359
|
}, 8, ["modelValue"]),
|
|
1360
|
-
o(
|
|
1361
|
-
t(
|
|
1362
|
-
t(
|
|
1363
|
-
], 64)) :
|
|
1360
|
+
o(a).isSubscriber ? (d(), S(D, { key: 0 }, [
|
|
1361
|
+
t(W, { class: "mt-6 mb-4" }),
|
|
1362
|
+
t(k)
|
|
1363
|
+
], 64)) : x("", !0)
|
|
1364
1364
|
]),
|
|
1365
1365
|
_: 1
|
|
1366
1366
|
}),
|
|
1367
|
-
t(
|
|
1368
|
-
t(
|
|
1367
|
+
t(W),
|
|
1368
|
+
t(te, { class: "px-7" }, {
|
|
1369
1369
|
default: n(() => [
|
|
1370
|
-
t(
|
|
1370
|
+
t(_, {
|
|
1371
1371
|
text: "These options change your browsing experience within Vuetify properties",
|
|
1372
1372
|
title: "Experience"
|
|
1373
1373
|
}),
|
|
1374
|
-
o(
|
|
1374
|
+
o(a).isSubscriber ? (d(), v(b, {
|
|
1375
1375
|
key: 0,
|
|
1376
|
-
modelValue: o(
|
|
1377
|
-
"onUpdate:modelValue":
|
|
1376
|
+
modelValue: o(i).disableAds,
|
|
1377
|
+
"onUpdate:modelValue": p[1] || (p[1] = (m) => o(i).disableAds = m),
|
|
1378
1378
|
class: "mb-2",
|
|
1379
1379
|
label: "Disable Ads",
|
|
1380
1380
|
messages: "Disable traditional advertisements on all documentation pages."
|
|
1381
|
-
}, null, 8, ["modelValue"])) :
|
|
1381
|
+
}, null, 8, ["modelValue"])) : x("", !0),
|
|
1382
1382
|
t(b, {
|
|
1383
|
-
modelValue: o(
|
|
1384
|
-
"onUpdate:modelValue":
|
|
1383
|
+
modelValue: o(i).quickbar,
|
|
1384
|
+
"onUpdate:modelValue": p[2] || (p[2] = (m) => o(i).quickbar = m),
|
|
1385
1385
|
label: "Enable Quick Actions",
|
|
1386
1386
|
messages: "Quick actions are located on the Vuetify One user menu and provide quick access to common tasks."
|
|
1387
1387
|
}, null, 8, ["modelValue"])
|
|
1388
1388
|
]),
|
|
1389
1389
|
_: 1
|
|
1390
1390
|
}),
|
|
1391
|
-
t(
|
|
1392
|
-
o(
|
|
1391
|
+
t(W),
|
|
1392
|
+
o(a).isSubscriber ? (d(), v(te, {
|
|
1393
1393
|
key: 0,
|
|
1394
1394
|
class: "px-7"
|
|
1395
1395
|
}, {
|
|
1396
1396
|
default: n(() => [
|
|
1397
|
-
t(
|
|
1397
|
+
t(_, {
|
|
1398
1398
|
text: "Vuetify will communicate with you through banners and notifications. You can disable these features here or reset your local notification cache.",
|
|
1399
1399
|
title: "Communication"
|
|
1400
1400
|
}),
|
|
1401
1401
|
t(b, {
|
|
1402
|
-
modelValue: o(
|
|
1403
|
-
"onUpdate:modelValue":
|
|
1402
|
+
modelValue: o(i).notifications.show,
|
|
1403
|
+
"onUpdate:modelValue": p[3] || (p[3] = (m) => o(i).notifications.show = m),
|
|
1404
1404
|
class: "mb-2",
|
|
1405
1405
|
label: "Enable Notifications",
|
|
1406
1406
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
1407
1407
|
}, null, 8, ["modelValue"]),
|
|
1408
|
-
o(
|
|
1408
|
+
o(i).notifications.show ? (d(), v(b, {
|
|
1409
1409
|
key: 0,
|
|
1410
|
-
modelValue: o(
|
|
1411
|
-
"onUpdate:modelValue":
|
|
1410
|
+
modelValue: o(i).notifications.banners,
|
|
1411
|
+
"onUpdate:modelValue": p[4] || (p[4] = (m) => o(i).notifications.banners = m),
|
|
1412
1412
|
class: "mb-2",
|
|
1413
1413
|
label: "Enable Banners",
|
|
1414
1414
|
messages: "Banners are located at the top of the screen and provide a callout for important information."
|
|
1415
|
-
}, null, 8, ["modelValue"])) :
|
|
1415
|
+
}, null, 8, ["modelValue"])) : x("", !0)
|
|
1416
1416
|
]),
|
|
1417
1417
|
_: 1
|
|
1418
|
-
})) :
|
|
1418
|
+
})) : x("", !0)
|
|
1419
1419
|
]),
|
|
1420
1420
|
_: 1
|
|
1421
1421
|
})
|
|
@@ -1431,18 +1431,18 @@ const Oe = K("settings", () => {
|
|
|
1431
1431
|
__name: "VoSettingsListItem",
|
|
1432
1432
|
setup(c) {
|
|
1433
1433
|
const e = B(!1);
|
|
1434
|
-
return (
|
|
1435
|
-
const
|
|
1436
|
-
return
|
|
1434
|
+
return (a, s) => {
|
|
1435
|
+
const l = Mo, i = Y;
|
|
1436
|
+
return d(), v(i, {
|
|
1437
1437
|
active: e.value,
|
|
1438
|
-
"prepend-icon": `svg:${o(
|
|
1438
|
+
"prepend-icon": `svg:${o(jt)}`,
|
|
1439
1439
|
title: "Settings",
|
|
1440
1440
|
link: ""
|
|
1441
1441
|
}, {
|
|
1442
1442
|
default: n(() => [
|
|
1443
|
-
t(
|
|
1443
|
+
t(l, {
|
|
1444
1444
|
modelValue: e.value,
|
|
1445
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
1445
|
+
"onUpdate:modelValue": s[0] || (s[0] = (r) => e.value = r)
|
|
1446
1446
|
}, null, 8, ["modelValue"])
|
|
1447
1447
|
]),
|
|
1448
1448
|
_: 1
|
|
@@ -1452,14 +1452,14 @@ const Oe = K("settings", () => {
|
|
|
1452
1452
|
}), Ro = { class: "text-caption" }, Ho = /* @__PURE__ */ $({
|
|
1453
1453
|
__name: "VoSubscriptionInvoices",
|
|
1454
1454
|
setup(c) {
|
|
1455
|
-
const e =
|
|
1456
|
-
return (s,
|
|
1457
|
-
const
|
|
1458
|
-
return
|
|
1455
|
+
const e = De(), a = T();
|
|
1456
|
+
return (s, l) => {
|
|
1457
|
+
const i = we;
|
|
1458
|
+
return d(), v(ce, null, {
|
|
1459
1459
|
default: n(() => [
|
|
1460
1460
|
t(J, { cols: "12" }, {
|
|
1461
1461
|
default: n(() => [
|
|
1462
|
-
t(
|
|
1462
|
+
t(i, {
|
|
1463
1463
|
text: "View and download your invoice history.",
|
|
1464
1464
|
title: "Invoice History"
|
|
1465
1465
|
}),
|
|
@@ -1470,19 +1470,19 @@ const Oe = K("settings", () => {
|
|
|
1470
1470
|
}, {
|
|
1471
1471
|
default: n(() => [
|
|
1472
1472
|
t(_o, {
|
|
1473
|
-
items: o(
|
|
1474
|
-
loading: o(
|
|
1473
|
+
items: o(a).invoices,
|
|
1474
|
+
loading: o(a).isLoading,
|
|
1475
1475
|
sticky: ""
|
|
1476
1476
|
}, {
|
|
1477
|
-
"item.date": n(({ item:
|
|
1478
|
-
g("div", Ro, L(o(e).format(new Date(
|
|
1477
|
+
"item.date": n(({ item: r }) => [
|
|
1478
|
+
g("div", Ro, L(o(e).format(new Date(r.date * 1e3), "fullDateWithWeekday")), 1)
|
|
1479
1479
|
]),
|
|
1480
|
-
"item.amount": n(({ item:
|
|
1481
|
-
U(" $" + L(
|
|
1480
|
+
"item.amount": n(({ item: r }) => [
|
|
1481
|
+
U(" $" + L(r.amount / 100), 1)
|
|
1482
1482
|
]),
|
|
1483
|
-
"item.status": n(({ item:
|
|
1484
|
-
t(
|
|
1485
|
-
text:
|
|
1483
|
+
"item.status": n(({ item: r }) => [
|
|
1484
|
+
t(q, {
|
|
1485
|
+
text: r.status,
|
|
1486
1486
|
border: "success sm",
|
|
1487
1487
|
class: "text-capitalize",
|
|
1488
1488
|
color: "success",
|
|
@@ -1491,10 +1491,10 @@ const Oe = K("settings", () => {
|
|
|
1491
1491
|
label: ""
|
|
1492
1492
|
}, null, 8, ["text"])
|
|
1493
1493
|
]),
|
|
1494
|
-
"item.pdf": n(({ item:
|
|
1495
|
-
t(
|
|
1496
|
-
href:
|
|
1497
|
-
icon: `svg:${o(
|
|
1494
|
+
"item.pdf": n(({ item: r }) => [
|
|
1495
|
+
t(G, {
|
|
1496
|
+
href: r.pdf,
|
|
1497
|
+
icon: `svg:${o(Ft)}`,
|
|
1498
1498
|
size: "small",
|
|
1499
1499
|
target: "_blank",
|
|
1500
1500
|
variant: "text"
|
|
@@ -1520,22 +1520,22 @@ const Oe = K("settings", () => {
|
|
|
1520
1520
|
__name: "VoSubscriptionStatus",
|
|
1521
1521
|
emits: ["change:subscription"],
|
|
1522
1522
|
setup(c, { emit: e }) {
|
|
1523
|
-
const
|
|
1523
|
+
const a = De(), s = T(), l = e, i = C(() => {
|
|
1524
1524
|
if (!s.info)
|
|
1525
1525
|
return;
|
|
1526
1526
|
const u = new Date(s.info.currentPeriodEnd * 1e3);
|
|
1527
|
-
return
|
|
1527
|
+
return a.format(u, "keyboardDate");
|
|
1528
1528
|
});
|
|
1529
|
-
async function
|
|
1529
|
+
async function r() {
|
|
1530
1530
|
s.interval && (s.isLoading = !0, s.subscribe(s.interval));
|
|
1531
1531
|
}
|
|
1532
1532
|
return (u, f) => {
|
|
1533
|
-
const
|
|
1534
|
-
return
|
|
1533
|
+
const p = ae;
|
|
1534
|
+
return d(), v(ce, null, {
|
|
1535
1535
|
default: n(() => [
|
|
1536
1536
|
t(J, { cols: "12" }, {
|
|
1537
1537
|
default: n(() => {
|
|
1538
|
-
var
|
|
1538
|
+
var _, k;
|
|
1539
1539
|
return [
|
|
1540
1540
|
t(P, {
|
|
1541
1541
|
"prepend-icon": "$vuetify",
|
|
@@ -1543,11 +1543,11 @@ const Oe = K("settings", () => {
|
|
|
1543
1543
|
title: "Subscription Status",
|
|
1544
1544
|
border: "",
|
|
1545
1545
|
flat: ""
|
|
1546
|
-
},
|
|
1546
|
+
}, Z({
|
|
1547
1547
|
append: n(() => {
|
|
1548
1548
|
var b;
|
|
1549
1549
|
return [
|
|
1550
|
-
o(s).hasBilling && ((b = o(s).info) == null ? void 0 : b.status) === "canceled" ? (
|
|
1550
|
+
o(s).hasBilling && ((b = o(s).info) == null ? void 0 : b.status) === "canceled" ? (d(), v(p, {
|
|
1551
1551
|
key: 0,
|
|
1552
1552
|
loading: o(s).isLoading,
|
|
1553
1553
|
class: "me-2",
|
|
@@ -1555,15 +1555,15 @@ const Oe = K("settings", () => {
|
|
|
1555
1555
|
"prepend-icon": "$success",
|
|
1556
1556
|
text: "Activate",
|
|
1557
1557
|
variant: "outlined",
|
|
1558
|
-
onClick:
|
|
1559
|
-
}, null, 8, ["loading"])) :
|
|
1560
|
-
o(s).hasBilling ? (
|
|
1558
|
+
onClick: r
|
|
1559
|
+
}, null, 8, ["loading"])) : x("", !0),
|
|
1560
|
+
o(s).hasBilling ? (d(), v(p, {
|
|
1561
1561
|
key: 1,
|
|
1562
1562
|
loading: o(s).isLoading,
|
|
1563
|
-
"prepend-icon": `svg:${o(
|
|
1563
|
+
"prepend-icon": `svg:${o(Tt)}`,
|
|
1564
1564
|
text: "Billing",
|
|
1565
1565
|
onClick: o(s).manage
|
|
1566
|
-
}, null, 8, ["loading", "prepend-icon", "onClick"])) :
|
|
1566
|
+
}, null, 8, ["loading", "prepend-icon", "onClick"])) : x("", !0)
|
|
1567
1567
|
];
|
|
1568
1568
|
}),
|
|
1569
1569
|
_: 2
|
|
@@ -1573,19 +1573,19 @@ const Oe = K("settings", () => {
|
|
|
1573
1573
|
fn: n(() => [
|
|
1574
1574
|
g("div", Eo, [
|
|
1575
1575
|
g("span", Wo, L(o(s).info.status), 1),
|
|
1576
|
-
o(s).info.items.length ? (
|
|
1576
|
+
o(s).info.items.length ? (d(), S(D, { key: 0 }, [
|
|
1577
1577
|
Go,
|
|
1578
1578
|
g("span", qo, [
|
|
1579
1579
|
U(" $" + L(o(s).info.items[0].plan.amount / 100), 1),
|
|
1580
1580
|
g("span", Zo, "/" + L(o(s).interval), 1)
|
|
1581
1581
|
]),
|
|
1582
|
-
t(
|
|
1582
|
+
t(p, {
|
|
1583
1583
|
size: "x-small",
|
|
1584
1584
|
text: "(Change Subscription)",
|
|
1585
1585
|
variant: "text",
|
|
1586
|
-
onClick: f[0] || (f[0] = (b) =>
|
|
1586
|
+
onClick: f[0] || (f[0] = (b) => l("change:subscription"))
|
|
1587
1587
|
})
|
|
1588
|
-
], 64)) :
|
|
1588
|
+
], 64)) : x("", !0)
|
|
1589
1589
|
])
|
|
1590
1590
|
]),
|
|
1591
1591
|
key: "0"
|
|
@@ -1611,13 +1611,13 @@ const Oe = K("settings", () => {
|
|
|
1611
1611
|
]), 1024),
|
|
1612
1612
|
g("div", Yo, [
|
|
1613
1613
|
g("div", null, [
|
|
1614
|
-
((
|
|
1614
|
+
((_ = o(s).info) == null ? void 0 : _.status) === "active" ? (d(), S(D, { key: 0 }, [
|
|
1615
1615
|
U(" Your plan renews on "),
|
|
1616
|
-
g("span", Qo, L(o(
|
|
1616
|
+
g("span", Qo, L(o(a).format(i.value, "fullDateWithWeekday")), 1),
|
|
1617
1617
|
U(". ")
|
|
1618
|
-
], 64)) : (
|
|
1618
|
+
], 64)) : (d(), S(D, { key: 1 }, [
|
|
1619
1619
|
U(" Your plan ends on "),
|
|
1620
|
-
g("span", Jo, L(o(
|
|
1620
|
+
g("span", Jo, L(o(a).format((k = o(s).info) == null ? void 0 : k.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1621
1621
|
U(". ")
|
|
1622
1622
|
], 64))
|
|
1623
1623
|
])
|
|
@@ -1640,32 +1640,32 @@ const Oe = K("settings", () => {
|
|
|
1640
1640
|
'Pinned Navigation Items and Rail drawer in <a href="https://vuetifyjs.com/" target="_blank">Documentation</a>',
|
|
1641
1641
|
"Customize Navigation components with Page Suits",
|
|
1642
1642
|
"Custom Vuetify One menu avatar"
|
|
1643
|
-
],
|
|
1643
|
+
], a = [
|
|
1644
1644
|
'Special role in the <a href="https://discord.vuetifyjs.com/" target="_blank">Vuetify Discord</a>',
|
|
1645
1645
|
'Save and share your playgrounds with <a href="https://play.vuetifyjs.com" target="_blank">Vuetify Play</a>',
|
|
1646
1646
|
"Receive a special label on GitHub created issues and pull requests"
|
|
1647
|
-
], s = B(!1),
|
|
1648
|
-
return N(s, async (
|
|
1649
|
-
|
|
1650
|
-
}), (
|
|
1647
|
+
], s = B(!1), l = T();
|
|
1648
|
+
return N(s, async (i) => {
|
|
1649
|
+
i && l.subscriptionInfo();
|
|
1650
|
+
}), (i, r) => {
|
|
1651
1651
|
const u = Y;
|
|
1652
|
-
return
|
|
1653
|
-
t(
|
|
1652
|
+
return d(), S(D, null, [
|
|
1653
|
+
t(Fe, { class: "font-weight-black" }, {
|
|
1654
1654
|
default: n(() => [
|
|
1655
1655
|
U("Perks")
|
|
1656
1656
|
]),
|
|
1657
1657
|
_: 1
|
|
1658
1658
|
}),
|
|
1659
1659
|
Ko,
|
|
1660
|
-
t(
|
|
1660
|
+
t(ne, {
|
|
1661
1661
|
lines: !1,
|
|
1662
1662
|
class: "py-0",
|
|
1663
1663
|
density: "compact",
|
|
1664
1664
|
nav: ""
|
|
1665
1665
|
}, {
|
|
1666
1666
|
default: n(() => [
|
|
1667
|
-
(
|
|
1668
|
-
key:
|
|
1667
|
+
(d(), S(D, null, oe(e, (f, p) => t(u, {
|
|
1668
|
+
key: p,
|
|
1669
1669
|
"prepend-icon": `svg:${o(de)}`,
|
|
1670
1670
|
class: "mb-0"
|
|
1671
1671
|
}, {
|
|
@@ -1685,23 +1685,23 @@ const Oe = K("settings", () => {
|
|
|
1685
1685
|
_: 1
|
|
1686
1686
|
}),
|
|
1687
1687
|
tn,
|
|
1688
|
-
t(
|
|
1688
|
+
t(Fe, { class: "font-weight-black" }, {
|
|
1689
1689
|
default: n(() => [
|
|
1690
1690
|
U("Up Next")
|
|
1691
1691
|
]),
|
|
1692
1692
|
_: 1
|
|
1693
1693
|
}),
|
|
1694
1694
|
on,
|
|
1695
|
-
t(
|
|
1695
|
+
t(ne, {
|
|
1696
1696
|
lines: !1,
|
|
1697
1697
|
class: "py-0",
|
|
1698
1698
|
density: "compact",
|
|
1699
1699
|
nav: ""
|
|
1700
1700
|
}, {
|
|
1701
1701
|
default: n(() => [
|
|
1702
|
-
(
|
|
1703
|
-
key:
|
|
1704
|
-
"prepend-icon": `svg:${o(
|
|
1702
|
+
(d(), S(D, null, oe(a, (f, p) => t(u, {
|
|
1703
|
+
key: p,
|
|
1704
|
+
"prepend-icon": `svg:${o(Mt)}`,
|
|
1705
1705
|
class: "mb-0"
|
|
1706
1706
|
}, {
|
|
1707
1707
|
prepend: n(() => [
|
|
@@ -1731,14 +1731,14 @@ const Oe = K("settings", () => {
|
|
|
1731
1731
|
},
|
|
1732
1732
|
emits: ["update:modelValue"],
|
|
1733
1733
|
setup(c) {
|
|
1734
|
-
const e = B(!1),
|
|
1735
|
-
return N(e, async (
|
|
1736
|
-
|
|
1737
|
-
}), N(() => s.interval, (
|
|
1738
|
-
|
|
1739
|
-
}, { immediate: !0 }), (
|
|
1740
|
-
modelValue:
|
|
1741
|
-
"onUpdate:modelValue":
|
|
1734
|
+
const e = B(!1), a = le(c, "modelValue"), s = T();
|
|
1735
|
+
return N(e, async (l) => {
|
|
1736
|
+
l && s.subscriptionInfo();
|
|
1737
|
+
}), N(() => s.interval, (l) => {
|
|
1738
|
+
a.value = l;
|
|
1739
|
+
}, { immediate: !0 }), (l, i) => (d(), v(lt, {
|
|
1740
|
+
modelValue: a.value,
|
|
1741
|
+
"onUpdate:modelValue": i[0] || (i[0] = (r) => a.value = r),
|
|
1742
1742
|
mandatory: ""
|
|
1743
1743
|
}, {
|
|
1744
1744
|
default: n(() => [
|
|
@@ -1749,17 +1749,17 @@ const Oe = K("settings", () => {
|
|
|
1749
1749
|
md: "6"
|
|
1750
1750
|
}, {
|
|
1751
1751
|
default: n(() => [
|
|
1752
|
-
t(
|
|
1753
|
-
default: n(({ toggle:
|
|
1752
|
+
t(Te, { value: "month" }, {
|
|
1753
|
+
default: n(({ toggle: r, isSelected: u }) => [
|
|
1754
1754
|
t(P, {
|
|
1755
1755
|
border: u ? "sm primary opacity-100" : "sm",
|
|
1756
1756
|
color: u ? "primary" : void 0,
|
|
1757
|
-
"prepend-icon": u ? `svg:${o(
|
|
1757
|
+
"prepend-icon": u ? `svg:${o(_e)}` : "$radioOff",
|
|
1758
1758
|
variant: u ? "tonal" : "text",
|
|
1759
1759
|
rounded: "lg",
|
|
1760
1760
|
subtitle: "$2.99/month",
|
|
1761
1761
|
title: "Monthly",
|
|
1762
|
-
onClick:
|
|
1762
|
+
onClick: r
|
|
1763
1763
|
}, {
|
|
1764
1764
|
prepend: n(() => [
|
|
1765
1765
|
t(A, { class: "mt-n6" })
|
|
@@ -1777,23 +1777,23 @@ const Oe = K("settings", () => {
|
|
|
1777
1777
|
md: "6"
|
|
1778
1778
|
}, {
|
|
1779
1779
|
default: n(() => [
|
|
1780
|
-
t(
|
|
1781
|
-
default: n(({ toggle:
|
|
1780
|
+
t(Te, { value: "year" }, {
|
|
1781
|
+
default: n(({ toggle: r, isSelected: u }) => [
|
|
1782
1782
|
t(P, {
|
|
1783
1783
|
border: u ? "sm primary opacity-100" : "sm",
|
|
1784
1784
|
color: u ? "primary" : void 0,
|
|
1785
|
-
"prepend-icon": u ? `svg:${o(
|
|
1785
|
+
"prepend-icon": u ? `svg:${o(_e)}` : "$radioOff",
|
|
1786
1786
|
variant: u ? "tonal" : "text",
|
|
1787
1787
|
rounded: "lg",
|
|
1788
1788
|
subtitle: "$29.99/year",
|
|
1789
1789
|
title: "Yearly",
|
|
1790
|
-
onClick:
|
|
1790
|
+
onClick: r
|
|
1791
1791
|
}, {
|
|
1792
1792
|
prepend: n(() => [
|
|
1793
1793
|
t(A, { class: "mt-n6" })
|
|
1794
1794
|
]),
|
|
1795
1795
|
append: n(() => [
|
|
1796
|
-
t(
|
|
1796
|
+
t(q, {
|
|
1797
1797
|
class: "mt-n6",
|
|
1798
1798
|
color: "success",
|
|
1799
1799
|
size: "small",
|
|
@@ -1824,59 +1824,59 @@ const Oe = K("settings", () => {
|
|
|
1824
1824
|
},
|
|
1825
1825
|
emits: ["update:modelValue"],
|
|
1826
1826
|
setup(c) {
|
|
1827
|
-
function e(
|
|
1828
|
-
return new Promise((
|
|
1827
|
+
function e(p) {
|
|
1828
|
+
return new Promise((_) => setTimeout(_, p));
|
|
1829
1829
|
}
|
|
1830
|
-
const
|
|
1831
|
-
N(
|
|
1832
|
-
!s.isSubscriber || !s.interval || (u.value =
|
|
1833
|
-
}), N(
|
|
1834
|
-
!
|
|
1835
|
-
}), N(
|
|
1836
|
-
!s.sessionId && !["subscribe", "status"].includes(
|
|
1830
|
+
const a = le(c, "modelValue"), s = T(), l = me(), i = B(s.interval), r = B(s.hasBilling ? "status" : "subscribe"), u = B(!1);
|
|
1831
|
+
N(i, (p) => {
|
|
1832
|
+
!s.isSubscriber || !s.interval || (u.value = p !== s.interval);
|
|
1833
|
+
}), N(a, async (p) => {
|
|
1834
|
+
!p || !s.isSubscriber || s.subscriptionInfo();
|
|
1835
|
+
}), N(l, async () => {
|
|
1836
|
+
!s.sessionId && !["subscribe", "status"].includes(l.value.one) || (r.value = s.sessionId || l.value.one === "status" ? "status" : "subscribe", s.isOpen = !0, await ue(), a.value = !0);
|
|
1837
1837
|
}, { immediate: !0 });
|
|
1838
1838
|
async function f() {
|
|
1839
|
-
await s.modify(
|
|
1839
|
+
await s.modify(i.value), await s.subscriptionInfo(), u.value = null, await e(3e3), r.value = "status", await e(300), u.value = !1;
|
|
1840
1840
|
}
|
|
1841
|
-
return (
|
|
1842
|
-
const
|
|
1843
|
-
return
|
|
1844
|
-
modelValue:
|
|
1845
|
-
"onUpdate:modelValue":
|
|
1846
|
-
"prepend-icon": `svg:${o(
|
|
1841
|
+
return (p, _) => {
|
|
1842
|
+
const k = we, b = an, y = sn, m = Xo, h = Ho, w = ae, O = xe;
|
|
1843
|
+
return d(), v(O, {
|
|
1844
|
+
modelValue: a.value,
|
|
1845
|
+
"onUpdate:modelValue": _[4] || (_[4] = (R) => a.value = R),
|
|
1846
|
+
"prepend-icon": `svg:${o(Pt)}`,
|
|
1847
1847
|
title: "Subscriptions"
|
|
1848
|
-
},
|
|
1848
|
+
}, Z({
|
|
1849
1849
|
default: n(() => [
|
|
1850
|
-
t(
|
|
1850
|
+
t(Ve, null, {
|
|
1851
1851
|
default: n(() => [
|
|
1852
|
-
t(
|
|
1852
|
+
t(ke, { scrollable: "" }, {
|
|
1853
1853
|
default: n(() => [
|
|
1854
1854
|
g("div", ln, [
|
|
1855
|
-
t(
|
|
1855
|
+
t(te, null, {
|
|
1856
1856
|
default: n(() => [
|
|
1857
|
-
t(
|
|
1857
|
+
t(k, {
|
|
1858
1858
|
text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
|
|
1859
1859
|
title: "Vuetify One"
|
|
1860
1860
|
}),
|
|
1861
|
-
t(rt, { "model-value":
|
|
1861
|
+
t(rt, { "model-value": r.value }, {
|
|
1862
1862
|
default: n(() => [
|
|
1863
|
-
t(
|
|
1863
|
+
t(ve, { value: "subscribe" }, {
|
|
1864
1864
|
default: n(() => [
|
|
1865
1865
|
t(b, {
|
|
1866
|
-
modelValue:
|
|
1867
|
-
"onUpdate:modelValue":
|
|
1866
|
+
modelValue: i.value,
|
|
1867
|
+
"onUpdate:modelValue": _[0] || (_[0] = (R) => i.value = R)
|
|
1868
1868
|
}, null, 8, ["modelValue"]),
|
|
1869
1869
|
rn,
|
|
1870
|
-
t(
|
|
1870
|
+
t(y)
|
|
1871
1871
|
]),
|
|
1872
1872
|
_: 1
|
|
1873
1873
|
}),
|
|
1874
|
-
t(
|
|
1874
|
+
t(ve, { value: "status" }, {
|
|
1875
1875
|
default: n(() => [
|
|
1876
1876
|
t(m, {
|
|
1877
|
-
"onChange:subscription":
|
|
1877
|
+
"onChange:subscription": _[1] || (_[1] = (R) => r.value = "subscribe")
|
|
1878
1878
|
}),
|
|
1879
|
-
t(
|
|
1879
|
+
t(h)
|
|
1880
1880
|
]),
|
|
1881
1881
|
_: 1
|
|
1882
1882
|
})
|
|
@@ -1896,37 +1896,37 @@ const Oe = K("settings", () => {
|
|
|
1896
1896
|
]),
|
|
1897
1897
|
_: 2
|
|
1898
1898
|
}, [
|
|
1899
|
-
|
|
1899
|
+
r.value === "subscribe" ? {
|
|
1900
1900
|
name: "actions",
|
|
1901
1901
|
fn: n(() => [
|
|
1902
1902
|
g("div", cn, [
|
|
1903
|
-
u.value !== !1 ? (
|
|
1903
|
+
u.value !== !1 ? (d(), v(w, {
|
|
1904
1904
|
key: 0,
|
|
1905
1905
|
loading: o(s).isLoading,
|
|
1906
|
-
"prepend-icon": `svg:${u.value !== null ? o(
|
|
1906
|
+
"prepend-icon": `svg:${u.value !== null ? o(Rt) : o(_e)}`,
|
|
1907
1907
|
readonly: u.value === null,
|
|
1908
1908
|
text: u.value !== null ? "Modify Subscription" : "Success",
|
|
1909
1909
|
color: "success",
|
|
1910
1910
|
size: "default",
|
|
1911
1911
|
block: "",
|
|
1912
1912
|
onClick: f
|
|
1913
|
-
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : o(s).isSubscriber ? (
|
|
1913
|
+
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : o(s).isSubscriber ? (d(), v(w, {
|
|
1914
1914
|
key: 2,
|
|
1915
|
-
"prepend-icon": `svg:${o(
|
|
1915
|
+
"prepend-icon": `svg:${o(Ht)}`,
|
|
1916
1916
|
size: "default",
|
|
1917
1917
|
text: "Manage Subscription",
|
|
1918
1918
|
block: "",
|
|
1919
|
-
onClick:
|
|
1920
|
-
}, null, 8, ["prepend-icon"])) : (
|
|
1919
|
+
onClick: _[3] || (_[3] = (R) => r.value = "status")
|
|
1920
|
+
}, null, 8, ["prepend-icon"])) : (d(), v(w, {
|
|
1921
1921
|
key: 1,
|
|
1922
|
-
color:
|
|
1923
|
-
disabled: !
|
|
1922
|
+
color: i.value ? "primary" : "disabled",
|
|
1923
|
+
disabled: !i.value,
|
|
1924
1924
|
loading: o(s).isLoading,
|
|
1925
1925
|
"prepend-icon": "$vuetify",
|
|
1926
1926
|
size: "default",
|
|
1927
1927
|
text: "Activate Subscription",
|
|
1928
1928
|
block: "",
|
|
1929
|
-
onClick:
|
|
1929
|
+
onClick: _[2] || (_[2] = (R) => o(s).subscribe(i.value))
|
|
1930
1930
|
}, null, 8, ["color", "disabled", "loading"]))
|
|
1931
1931
|
])
|
|
1932
1932
|
]),
|
|
@@ -1939,18 +1939,18 @@ const Oe = K("settings", () => {
|
|
|
1939
1939
|
__name: "VoSubscriptionListItem",
|
|
1940
1940
|
setup(c) {
|
|
1941
1941
|
const e = B(!1);
|
|
1942
|
-
return (
|
|
1943
|
-
const
|
|
1944
|
-
return
|
|
1942
|
+
return (a, s) => {
|
|
1943
|
+
const l = un, i = Y;
|
|
1944
|
+
return d(), v(i, {
|
|
1945
1945
|
active: e.value,
|
|
1946
|
-
"prepend-icon": `svg:${o(
|
|
1946
|
+
"prepend-icon": `svg:${o(Et)}`,
|
|
1947
1947
|
title: "Subscriptions",
|
|
1948
1948
|
link: ""
|
|
1949
1949
|
}, {
|
|
1950
1950
|
default: n(() => [
|
|
1951
|
-
t(
|
|
1951
|
+
t(l, {
|
|
1952
1952
|
modelValue: e.value,
|
|
1953
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
1953
|
+
"onUpdate:modelValue": s[0] || (s[0] = (r) => e.value = r)
|
|
1954
1954
|
}, null, 8, ["modelValue"])
|
|
1955
1955
|
]),
|
|
1956
1956
|
_: 1
|
|
@@ -1960,19 +1960,19 @@ const Oe = K("settings", () => {
|
|
|
1960
1960
|
}), pn = { class: "ps-16" }, mn = /* @__PURE__ */ $({
|
|
1961
1961
|
__name: "VoSponsorshipsTimelineItemPatreon",
|
|
1962
1962
|
setup(c) {
|
|
1963
|
-
const e = T(),
|
|
1964
|
-
return (s,
|
|
1965
|
-
var
|
|
1966
|
-
const
|
|
1967
|
-
return
|
|
1968
|
-
"dot-color": (
|
|
1963
|
+
const e = T(), a = Ne();
|
|
1964
|
+
return (s, l) => {
|
|
1965
|
+
var r, u;
|
|
1966
|
+
const i = ae;
|
|
1967
|
+
return d(), v(Ze, {
|
|
1968
|
+
"dot-color": (r = o(e).patreon) != null && r.isActive ? "success" : "transparent",
|
|
1969
1969
|
icon: (u = o(e).patreon) != null && u.isActive ? `svg:${o(de)}` : void 0,
|
|
1970
1970
|
size: "x-small",
|
|
1971
1971
|
width: "100%"
|
|
1972
1972
|
}, {
|
|
1973
1973
|
default: n(() => [
|
|
1974
1974
|
t(P, {
|
|
1975
|
-
"prepend-avatar": o(
|
|
1975
|
+
"prepend-avatar": o(a).CDN_URL + "/logos/patreon.png",
|
|
1976
1976
|
rounded: "lg",
|
|
1977
1977
|
subtitle: "Support Vuetify through Patreon.",
|
|
1978
1978
|
title: "Patreon Subscriber",
|
|
@@ -1983,7 +1983,7 @@ const Oe = K("settings", () => {
|
|
|
1983
1983
|
var f;
|
|
1984
1984
|
return [
|
|
1985
1985
|
g("div", pn, [
|
|
1986
|
-
t(
|
|
1986
|
+
t(i, {
|
|
1987
1987
|
text: (f = o(e).patreon) != null && f.isActive ? "Active" : "Coming Soon",
|
|
1988
1988
|
color: "surface-variant",
|
|
1989
1989
|
readonly: ""
|
|
@@ -1994,12 +1994,12 @@ const Oe = K("settings", () => {
|
|
|
1994
1994
|
default: n(() => {
|
|
1995
1995
|
var f;
|
|
1996
1996
|
return [
|
|
1997
|
-
(f = o(e).patreon) != null && f.isActive ? (
|
|
1998
|
-
t(
|
|
1999
|
-
t(
|
|
1997
|
+
(f = o(e).patreon) != null && f.isActive ? (d(), S(D, { key: 0 }, [
|
|
1998
|
+
t(W),
|
|
1999
|
+
t(te, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
2000
2000
|
default: n(() => [
|
|
2001
|
-
t(
|
|
2002
|
-
"prepend-icon": `svg:${o(
|
|
2001
|
+
t(q, {
|
|
2002
|
+
"prepend-icon": `svg:${o(We)}`,
|
|
2003
2003
|
text: o(e).patreon.tierName,
|
|
2004
2004
|
color: "success",
|
|
2005
2005
|
variant: "text",
|
|
@@ -2008,7 +2008,7 @@ const Oe = K("settings", () => {
|
|
|
2008
2008
|
]),
|
|
2009
2009
|
_: 1
|
|
2010
2010
|
})
|
|
2011
|
-
], 64)) :
|
|
2011
|
+
], 64)) : x("", !0)
|
|
2012
2012
|
];
|
|
2013
2013
|
}),
|
|
2014
2014
|
_: 1
|
|
@@ -2021,19 +2021,19 @@ const Oe = K("settings", () => {
|
|
|
2021
2021
|
}), fn = { class: "ps-16" }, vn = /* @__PURE__ */ $({
|
|
2022
2022
|
__name: "VoSponsorshipsTimelineItemDiscord",
|
|
2023
2023
|
setup(c) {
|
|
2024
|
-
const e = T(),
|
|
2025
|
-
return (s,
|
|
2026
|
-
var
|
|
2027
|
-
const
|
|
2028
|
-
return
|
|
2029
|
-
"dot-color": (
|
|
2024
|
+
const e = T(), a = Ne();
|
|
2025
|
+
return (s, l) => {
|
|
2026
|
+
var r, u;
|
|
2027
|
+
const i = ae;
|
|
2028
|
+
return d(), v(Ze, {
|
|
2029
|
+
"dot-color": (r = o(e).discord) != null && r.isActive ? "success" : "transparent",
|
|
2030
2030
|
icon: (u = o(e).discord) != null && u.isActive ? `svg:${o(de)}` : void 0,
|
|
2031
2031
|
size: "x-small",
|
|
2032
2032
|
width: "100%"
|
|
2033
2033
|
}, {
|
|
2034
2034
|
default: n(() => [
|
|
2035
2035
|
t(P, {
|
|
2036
|
-
"prepend-avatar": o(
|
|
2036
|
+
"prepend-avatar": o(a).CDN_URL + "/logos/discord.png",
|
|
2037
2037
|
rounded: "lg",
|
|
2038
2038
|
subtitle: "Support Vuetify through Discord.",
|
|
2039
2039
|
title: "Discord Subscriber",
|
|
@@ -2041,16 +2041,16 @@ const Oe = K("settings", () => {
|
|
|
2041
2041
|
border: ""
|
|
2042
2042
|
}, {
|
|
2043
2043
|
append: n(() => {
|
|
2044
|
-
var f,
|
|
2044
|
+
var f, p, _, k, b, y;
|
|
2045
2045
|
return [
|
|
2046
2046
|
g("div", fn, [
|
|
2047
|
-
t(
|
|
2047
|
+
t(i, {
|
|
2048
2048
|
color: (f = o(e).discord) != null && f.isActive ? "success" : "primary",
|
|
2049
|
-
href: (
|
|
2050
|
-
"prepend-icon": `svg:${(
|
|
2051
|
-
readonly: (
|
|
2049
|
+
href: (p = o(e).discord) != null && p.isActive ? void 0 : "https://discord.com/servers/vuetify-340160225338195969",
|
|
2050
|
+
"prepend-icon": `svg:${(_ = o(e).discord) != null && _.isActive ? o(_e) : o(ge)}`,
|
|
2051
|
+
readonly: (k = o(e).discord) == null ? void 0 : k.isActive,
|
|
2052
2052
|
target: (b = o(e).discord) != null && b.isActive ? void 0 : "_blank",
|
|
2053
|
-
text: (
|
|
2053
|
+
text: (y = o(e).discord) != null && y.isActive ? "Active" : "Info",
|
|
2054
2054
|
width: "88"
|
|
2055
2055
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
|
|
2056
2056
|
])
|
|
@@ -2059,12 +2059,12 @@ const Oe = K("settings", () => {
|
|
|
2059
2059
|
default: n(() => {
|
|
2060
2060
|
var f;
|
|
2061
2061
|
return [
|
|
2062
|
-
(f = o(e).discord) != null && f.isActive ? (
|
|
2063
|
-
t(
|
|
2064
|
-
t(
|
|
2062
|
+
(f = o(e).discord) != null && f.isActive ? (d(), S(D, { key: 0 }, [
|
|
2063
|
+
t(W),
|
|
2064
|
+
t(te, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
2065
2065
|
default: n(() => [
|
|
2066
|
-
t(
|
|
2067
|
-
"prepend-icon": `svg:${o(
|
|
2066
|
+
t(q, {
|
|
2067
|
+
"prepend-icon": `svg:${o(We)}`,
|
|
2068
2068
|
text: o(e).discord.tierName,
|
|
2069
2069
|
color: "surface-variant",
|
|
2070
2070
|
size: "small",
|
|
@@ -2074,7 +2074,7 @@ const Oe = K("settings", () => {
|
|
|
2074
2074
|
]),
|
|
2075
2075
|
_: 1
|
|
2076
2076
|
})
|
|
2077
|
-
], 64)) :
|
|
2077
|
+
], 64)) : x("", !0)
|
|
2078
2078
|
];
|
|
2079
2079
|
}),
|
|
2080
2080
|
_: 1
|
|
@@ -2087,19 +2087,19 @@ const Oe = K("settings", () => {
|
|
|
2087
2087
|
}), _n = { class: "ps-16" }, hn = /* @__PURE__ */ $({
|
|
2088
2088
|
__name: "VoSponsorshipsTimelineItemGithub",
|
|
2089
2089
|
setup(c) {
|
|
2090
|
-
const e = T(),
|
|
2091
|
-
return (s,
|
|
2092
|
-
var
|
|
2093
|
-
const
|
|
2094
|
-
return
|
|
2095
|
-
"dot-color": (
|
|
2090
|
+
const e = T(), a = Ne();
|
|
2091
|
+
return (s, l) => {
|
|
2092
|
+
var r, u;
|
|
2093
|
+
const i = ae;
|
|
2094
|
+
return d(), v(Ze, {
|
|
2095
|
+
"dot-color": (r = o(e).github) != null && r.isActive ? "success" : "transparent",
|
|
2096
2096
|
icon: (u = o(e).github) != null && u.isActive ? `svg:${o(de)}` : void 0,
|
|
2097
2097
|
size: "x-small",
|
|
2098
2098
|
width: "100%"
|
|
2099
2099
|
}, {
|
|
2100
2100
|
default: n(() => [
|
|
2101
2101
|
t(P, {
|
|
2102
|
-
"prepend-avatar": o(
|
|
2102
|
+
"prepend-avatar": o(a).CDN_URL + "/logos/github.png",
|
|
2103
2103
|
rounded: "lg",
|
|
2104
2104
|
subtitle: "Support Vuetify through GitHub sponsors.",
|
|
2105
2105
|
title: "GitHub Sponsors",
|
|
@@ -2107,16 +2107,16 @@ const Oe = K("settings", () => {
|
|
|
2107
2107
|
border: ""
|
|
2108
2108
|
}, {
|
|
2109
2109
|
append: n(() => {
|
|
2110
|
-
var f,
|
|
2110
|
+
var f, p, _, k, b, y;
|
|
2111
2111
|
return [
|
|
2112
2112
|
g("div", _n, [
|
|
2113
|
-
t(
|
|
2113
|
+
t(i, {
|
|
2114
2114
|
color: (f = o(e).github) != null && f.isActive ? "success" : "primary",
|
|
2115
|
-
href: (
|
|
2116
|
-
"prepend-icon": `svg:${(
|
|
2117
|
-
readonly: (
|
|
2115
|
+
href: (p = o(e).github) != null && p.isActive ? void 0 : "https://github.com/sponsors/johnleider",
|
|
2116
|
+
"prepend-icon": `svg:${(_ = o(e).github) != null && _.isActive ? o(_e) : o(ge)}`,
|
|
2117
|
+
readonly: (k = o(e).github) == null ? void 0 : k.isActive,
|
|
2118
2118
|
target: (b = o(e).github) != null && b.isActive ? void 0 : "_blank",
|
|
2119
|
-
text: (
|
|
2119
|
+
text: (y = o(e).github) != null && y.isActive ? "Active" : "Info",
|
|
2120
2120
|
width: "88"
|
|
2121
2121
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
|
|
2122
2122
|
])
|
|
@@ -2125,12 +2125,12 @@ const Oe = K("settings", () => {
|
|
|
2125
2125
|
default: n(() => {
|
|
2126
2126
|
var f;
|
|
2127
2127
|
return [
|
|
2128
|
-
(f = o(e).github) != null && f.isActive ? (
|
|
2129
|
-
t(
|
|
2130
|
-
t(
|
|
2128
|
+
(f = o(e).github) != null && f.isActive ? (d(), S(D, { key: 0 }, [
|
|
2129
|
+
t(W),
|
|
2130
|
+
t(te, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
2131
2131
|
default: n(() => [
|
|
2132
|
-
t(
|
|
2133
|
-
"prepend-icon": `svg:${o(
|
|
2132
|
+
t(q, {
|
|
2133
|
+
"prepend-icon": `svg:${o(We)}`,
|
|
2134
2134
|
text: o(e).github.tierName,
|
|
2135
2135
|
color: "surface-variant",
|
|
2136
2136
|
size: "small",
|
|
@@ -2140,7 +2140,7 @@ const Oe = K("settings", () => {
|
|
|
2140
2140
|
]),
|
|
2141
2141
|
_: 1
|
|
2142
2142
|
})
|
|
2143
|
-
], 64)) :
|
|
2143
|
+
], 64)) : x("", !0)
|
|
2144
2144
|
];
|
|
2145
2145
|
}),
|
|
2146
2146
|
_: 1
|
|
@@ -2153,9 +2153,9 @@ const Oe = K("settings", () => {
|
|
|
2153
2153
|
}), gn = /* @__PURE__ */ $({
|
|
2154
2154
|
__name: "VoSponsorshipsTimeline",
|
|
2155
2155
|
setup(c) {
|
|
2156
|
-
return (e,
|
|
2157
|
-
const s = hn,
|
|
2158
|
-
return
|
|
2156
|
+
return (e, a) => {
|
|
2157
|
+
const s = hn, l = vn, i = mn;
|
|
2158
|
+
return d(), v(ho, {
|
|
2159
2159
|
class: "justify-start ms-n7",
|
|
2160
2160
|
"line-inset": "12",
|
|
2161
2161
|
side: "end",
|
|
@@ -2164,8 +2164,8 @@ const Oe = K("settings", () => {
|
|
|
2164
2164
|
}, {
|
|
2165
2165
|
default: n(() => [
|
|
2166
2166
|
t(s),
|
|
2167
|
-
t(
|
|
2168
|
-
t(
|
|
2167
|
+
t(l),
|
|
2168
|
+
t(i)
|
|
2169
2169
|
]),
|
|
2170
2170
|
_: 1
|
|
2171
2171
|
});
|
|
@@ -2183,24 +2183,24 @@ const Oe = K("settings", () => {
|
|
|
2183
2183
|
},
|
|
2184
2184
|
emits: ["update:modelValue"],
|
|
2185
2185
|
setup(c) {
|
|
2186
|
-
const e = le(c, "modelValue"),
|
|
2187
|
-
return N(
|
|
2188
|
-
|
|
2189
|
-
}, { immediate: !0 }), (
|
|
2190
|
-
const u =
|
|
2191
|
-
return
|
|
2186
|
+
const e = le(c, "modelValue"), a = me(), s = z(), l = T();
|
|
2187
|
+
return N(a, async () => {
|
|
2188
|
+
a.value.one === "sponsorships" && (l.isOpen = !0, await ue(), e.value = !0);
|
|
2189
|
+
}, { immediate: !0 }), (i, r) => {
|
|
2190
|
+
const u = we, f = gn, p = Pe("v-empty-state"), _ = xe;
|
|
2191
|
+
return d(), v(_, {
|
|
2192
2192
|
modelValue: e.value,
|
|
2193
|
-
"onUpdate:modelValue":
|
|
2194
|
-
"prepend-icon": `svg:${o(
|
|
2193
|
+
"onUpdate:modelValue": r[0] || (r[0] = (k) => e.value = k),
|
|
2194
|
+
"prepend-icon": `svg:${o(Wt)}`,
|
|
2195
2195
|
title: "Sponsorships"
|
|
2196
2196
|
}, {
|
|
2197
2197
|
default: n(() => [
|
|
2198
|
-
t(
|
|
2198
|
+
t(Ve, null, {
|
|
2199
2199
|
default: n(() => [
|
|
2200
|
-
t(
|
|
2200
|
+
t(ke, { scrollable: "" }, {
|
|
2201
2201
|
default: n(() => [
|
|
2202
2202
|
g("div", yn, [
|
|
2203
|
-
t(
|
|
2203
|
+
t(te, null, {
|
|
2204
2204
|
default: n(() => [
|
|
2205
2205
|
t(u, {
|
|
2206
2206
|
text: "Support Vuetify through GitHub Sponsors, Discord, or Patreon to unlock exclusive benefits and content.",
|
|
@@ -2210,8 +2210,8 @@ const Oe = K("settings", () => {
|
|
|
2210
2210
|
]),
|
|
2211
2211
|
_: 1
|
|
2212
2212
|
}),
|
|
2213
|
-
t(
|
|
2214
|
-
icon: `svg:${o(
|
|
2213
|
+
t(p, {
|
|
2214
|
+
icon: `svg:${o(Gt)}`,
|
|
2215
2215
|
class: "mt-auto",
|
|
2216
2216
|
"min-height": "auto",
|
|
2217
2217
|
size: "64",
|
|
@@ -2222,9 +2222,9 @@ const Oe = K("settings", () => {
|
|
|
2222
2222
|
]),
|
|
2223
2223
|
headline: n(() => [
|
|
2224
2224
|
g("div", bn, [
|
|
2225
|
-
o(s).isSubscriber ? (
|
|
2226
|
-
U(" $" + L(parseFloat(String(o(
|
|
2227
|
-
], 64)) : (
|
|
2225
|
+
o(s).isSubscriber ? (d(), S(D, { key: 0 }, [
|
|
2226
|
+
U(" $" + L(parseFloat(String(o(l).monthlyTotal)).toFixed(2)), 1)
|
|
2227
|
+
], 64)) : (d(), S(D, { key: 1 }, [
|
|
2228
2228
|
U(" $0.00 ")
|
|
2229
2229
|
], 64))
|
|
2230
2230
|
])
|
|
@@ -2250,18 +2250,18 @@ const Oe = K("settings", () => {
|
|
|
2250
2250
|
__name: "VoSponsorshipsListItem",
|
|
2251
2251
|
setup(c) {
|
|
2252
2252
|
const e = B(!1);
|
|
2253
|
-
return (
|
|
2254
|
-
const
|
|
2255
|
-
return
|
|
2253
|
+
return (a, s) => {
|
|
2254
|
+
const l = kn, i = Y;
|
|
2255
|
+
return d(), v(i, {
|
|
2256
2256
|
active: e.value,
|
|
2257
|
-
"prepend-icon": `svg:${o(
|
|
2257
|
+
"prepend-icon": `svg:${o(qt)}`,
|
|
2258
2258
|
title: "Sponsorships",
|
|
2259
2259
|
link: ""
|
|
2260
2260
|
}, {
|
|
2261
2261
|
default: n(() => [
|
|
2262
|
-
t(
|
|
2262
|
+
t(l, {
|
|
2263
2263
|
modelValue: e.value,
|
|
2264
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2264
|
+
"onUpdate:modelValue": s[0] || (s[0] = (r) => e.value = r)
|
|
2265
2265
|
}, null, 8, ["modelValue"])
|
|
2266
2266
|
]),
|
|
2267
2267
|
_: 1
|
|
@@ -2288,7 +2288,7 @@ const Oe = K("settings", () => {
|
|
|
2288
2288
|
},
|
|
2289
2289
|
{
|
|
2290
2290
|
title: "Vuetify Support",
|
|
2291
|
-
icon: `svg:${
|
|
2291
|
+
icon: `svg:${Zt}`,
|
|
2292
2292
|
href: "https://support.vuetifyjs.com/"
|
|
2293
2293
|
},
|
|
2294
2294
|
{
|
|
@@ -2298,44 +2298,44 @@ const Oe = K("settings", () => {
|
|
|
2298
2298
|
},
|
|
2299
2299
|
{
|
|
2300
2300
|
title: "Vuetify GitHub",
|
|
2301
|
-
icon: `svg:${
|
|
2301
|
+
icon: `svg:${Ee}`,
|
|
2302
2302
|
href: "https://github.com/vuetifyjs/vuetify"
|
|
2303
2303
|
},
|
|
2304
2304
|
{
|
|
2305
2305
|
title: "Vuetify Discord",
|
|
2306
|
-
icon: `svg:${
|
|
2306
|
+
icon: `svg:${He}`,
|
|
2307
2307
|
href: "https://community.vuetifyjs.com/"
|
|
2308
2308
|
},
|
|
2309
2309
|
{
|
|
2310
2310
|
title: "Vuetify Reddit",
|
|
2311
|
-
icon: `svg:${
|
|
2311
|
+
icon: `svg:${Yt}`,
|
|
2312
2312
|
href: "https://reddit.com/r/vuetifyjs"
|
|
2313
2313
|
}
|
|
2314
2314
|
];
|
|
2315
|
-
return (
|
|
2315
|
+
return (a, s) => (d(), v(go, {
|
|
2316
2316
|
class: "vo-footer",
|
|
2317
2317
|
height: "40"
|
|
2318
2318
|
}, {
|
|
2319
2319
|
default: n(() => [
|
|
2320
|
-
|
|
2321
|
-
|
|
2320
|
+
a.image || a.$slots.image ? (d(), S("div", wn, [
|
|
2321
|
+
a.$slots.image ? M(a.$slots, "image", { key: 0 }, void 0, !0) : (d(), v(ie, {
|
|
2322
2322
|
key: 1,
|
|
2323
|
-
src:
|
|
2323
|
+
src: a.image,
|
|
2324
2324
|
position: "left",
|
|
2325
2325
|
cover: ""
|
|
2326
2326
|
}, null, 8, ["src"]))
|
|
2327
|
-
])) :
|
|
2328
|
-
(
|
|
2329
|
-
key:
|
|
2330
|
-
href:
|
|
2331
|
-
title:
|
|
2327
|
+
])) : x("", !0),
|
|
2328
|
+
(d(), S(D, null, oe(e, (l) => g("a", {
|
|
2329
|
+
key: l.title,
|
|
2330
|
+
href: l.href,
|
|
2331
|
+
title: l.title,
|
|
2332
2332
|
class: "d-inline-block mx-2 social-link",
|
|
2333
2333
|
rel: "noopener noreferrer",
|
|
2334
2334
|
target: "_blank"
|
|
2335
2335
|
}, [
|
|
2336
2336
|
t(A, {
|
|
2337
|
-
icon:
|
|
2338
|
-
size:
|
|
2337
|
+
icon: l.icon,
|
|
2338
|
+
size: l.icon === "$vuetify" ? 24 : 16
|
|
2339
2339
|
}, null, 8, ["icon", "size"])
|
|
2340
2340
|
], 8, Sn)), 64)),
|
|
2341
2341
|
g("div", Cn, [
|
|
@@ -2347,11 +2347,11 @@ const Oe = K("settings", () => {
|
|
|
2347
2347
|
}));
|
|
2348
2348
|
}
|
|
2349
2349
|
}), An = (c, e) => {
|
|
2350
|
-
const
|
|
2351
|
-
for (const [s,
|
|
2352
|
-
|
|
2353
|
-
return
|
|
2354
|
-
}, vt = /* @__PURE__ */ An(In, [["__scopeId", "data-v-40687c9d"]]), Dn = /* @__PURE__ */ g("h2", { class: "text-h4" }, " Configuration Tooling ", -1), Bn = /* @__PURE__ */ g("p", { class: "text-subtitle-1 text-medium-emphasis" }, " Coming soon to Vuetify One ", -1), Un = { class: "text-uppercase text-info" }, Nn = { class: "text-h6 mb-2" },
|
|
2350
|
+
const a = c.__vccOpts || c;
|
|
2351
|
+
for (const [s, l] of e)
|
|
2352
|
+
a[s] = l;
|
|
2353
|
+
return a;
|
|
2354
|
+
}, vt = /* @__PURE__ */ An(In, [["__scopeId", "data-v-40687c9d"]]), Dn = /* @__PURE__ */ g("h2", { class: "text-h4" }, " Configuration Tooling ", -1), Bn = /* @__PURE__ */ g("p", { class: "text-subtitle-1 text-medium-emphasis" }, " Coming soon to Vuetify One ", -1), Un = { class: "text-uppercase text-info" }, Nn = { class: "text-h6 mb-2" }, zn = { class: "text-body-2 text-medium-emphasis" }, On = /* @__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), jn = /* @__PURE__ */ $({
|
|
2355
2355
|
__name: "VoStudioDialog",
|
|
2356
2356
|
props: /* @__PURE__ */ Xe({
|
|
2357
2357
|
prependIcon: {}
|
|
@@ -2361,44 +2361,44 @@ const Oe = K("settings", () => {
|
|
|
2361
2361
|
}),
|
|
2362
2362
|
emits: ["update:modelValue"],
|
|
2363
2363
|
setup(c) {
|
|
2364
|
-
const e = le(c, "modelValue"),
|
|
2364
|
+
const e = le(c, "modelValue"), a = me(), s = qe(), l = z(), i = T(), r = [
|
|
2365
2365
|
{
|
|
2366
2366
|
title: "Customize",
|
|
2367
2367
|
subtitle: "Customize your Vuetify theme, components, and more with the Vuetify Studio.",
|
|
2368
2368
|
text: "Vuetify Studio is a premium tool that allows you to customize your Vuetify theme, components, and more. Unlock Vuetify One status to gain access to the Vuetify Studio Alpha.",
|
|
2369
|
-
image: "https://
|
|
2369
|
+
image: "https://cdn.vuetifyjs.com/docs/images/one/studio/customize.png"
|
|
2370
2370
|
},
|
|
2371
2371
|
{
|
|
2372
2372
|
title: "Configure",
|
|
2373
2373
|
subtitle: "Configure every aspect of your application from a single interface.",
|
|
2374
2374
|
text: "Vuetify Studio allows you to configure every single property of your application, including global values, and more.",
|
|
2375
|
-
image: "https://
|
|
2375
|
+
image: "https://cdn.vuetifyjs.com/docs/images/one/studio/configure.png"
|
|
2376
2376
|
},
|
|
2377
2377
|
{
|
|
2378
2378
|
title: "Export",
|
|
2379
2379
|
subtitle: "Export your configuration and easily implement your options.",
|
|
2380
2380
|
text: "Vuetify Studio allows you to export your options to a Vuetify configuration file for easy integration into your application.",
|
|
2381
|
-
image: "https://
|
|
2381
|
+
image: "https://cdn.vuetifyjs.com/docs/images/one/studio/export.png"
|
|
2382
2382
|
}
|
|
2383
2383
|
];
|
|
2384
|
-
N(
|
|
2385
|
-
|
|
2384
|
+
N(a, async () => {
|
|
2385
|
+
a.value.one === "studio" && (i.isOpen = !0, await ue(), e.value = !0);
|
|
2386
2386
|
}, { immediate: !0 });
|
|
2387
2387
|
function u() {
|
|
2388
2388
|
e.value = !1, s.push({ query: { one: "subscribe" } });
|
|
2389
2389
|
}
|
|
2390
|
-
return (f,
|
|
2391
|
-
const
|
|
2392
|
-
return
|
|
2390
|
+
return (f, p) => {
|
|
2391
|
+
const _ = ae, k = vt, b = xe;
|
|
2392
|
+
return d(), v(b, {
|
|
2393
2393
|
modelValue: e.value,
|
|
2394
|
-
"onUpdate:modelValue":
|
|
2394
|
+
"onUpdate:modelValue": p[0] || (p[0] = (y) => e.value = y),
|
|
2395
2395
|
"prepend-icon": f.prependIcon,
|
|
2396
2396
|
title: "Vuetify Studio"
|
|
2397
2397
|
}, {
|
|
2398
2398
|
default: n(() => [
|
|
2399
|
-
t(
|
|
2399
|
+
t(Ve, null, {
|
|
2400
2400
|
default: n(() => [
|
|
2401
|
-
t(
|
|
2401
|
+
t(ke, { scrollable: "" }, {
|
|
2402
2402
|
default: n(() => [
|
|
2403
2403
|
t(ie, {
|
|
2404
2404
|
"content-class": "d-flex align-center justify-center flex-column",
|
|
@@ -2406,7 +2406,7 @@ const Oe = K("settings", () => {
|
|
|
2406
2406
|
height: "350",
|
|
2407
2407
|
"max-height": "350",
|
|
2408
2408
|
position: "top",
|
|
2409
|
-
src: "https://
|
|
2409
|
+
src: "https://cdn.vuetifyjs.com/docs/images/one/studio/hero.png",
|
|
2410
2410
|
cover: ""
|
|
2411
2411
|
}, {
|
|
2412
2412
|
default: n(() => [
|
|
@@ -2429,7 +2429,7 @@ const Oe = K("settings", () => {
|
|
|
2429
2429
|
]),
|
|
2430
2430
|
_: 1
|
|
2431
2431
|
}),
|
|
2432
|
-
(
|
|
2432
|
+
(d(), S(D, null, oe(r, (y, m) => t(he, {
|
|
2433
2433
|
key: m,
|
|
2434
2434
|
color: m % 2 === 0 ? "surface-light" : "surface-variant",
|
|
2435
2435
|
class: "py-8"
|
|
@@ -2445,9 +2445,9 @@ const Oe = K("settings", () => {
|
|
|
2445
2445
|
offset: "1"
|
|
2446
2446
|
}, {
|
|
2447
2447
|
default: n(() => [
|
|
2448
|
-
g("strong", Un, L(
|
|
2449
|
-
g("p", Nn, L(
|
|
2450
|
-
g("p",
|
|
2448
|
+
g("strong", Un, L(y.title), 1),
|
|
2449
|
+
g("p", Nn, L(y.subtitle), 1),
|
|
2450
|
+
g("p", zn, L(y.text), 1)
|
|
2451
2451
|
]),
|
|
2452
2452
|
_: 2
|
|
2453
2453
|
}, 1032, ["order"]),
|
|
@@ -2458,7 +2458,7 @@ const Oe = K("settings", () => {
|
|
|
2458
2458
|
}, {
|
|
2459
2459
|
default: n(() => [
|
|
2460
2460
|
t(ie, {
|
|
2461
|
-
src:
|
|
2461
|
+
src: y.image,
|
|
2462
2462
|
height: "180",
|
|
2463
2463
|
rounded: "lg"
|
|
2464
2464
|
}, null, 8, ["src"])
|
|
@@ -2474,7 +2474,7 @@ const Oe = K("settings", () => {
|
|
|
2474
2474
|
]),
|
|
2475
2475
|
_: 2
|
|
2476
2476
|
}, 1032, ["color"])), 64)),
|
|
2477
|
-
o(
|
|
2477
|
+
o(l).isSubscriber ? x("", !0) : (d(), v(he, {
|
|
2478
2478
|
key: 0,
|
|
2479
2479
|
class: "text-center py-6"
|
|
2480
2480
|
}, {
|
|
@@ -2485,17 +2485,17 @@ const Oe = K("settings", () => {
|
|
|
2485
2485
|
default: n(() => [
|
|
2486
2486
|
t(J, { cols: "6" }, {
|
|
2487
2487
|
default: n(() => [
|
|
2488
|
-
t(
|
|
2489
|
-
image: "https://vuetifyjs.
|
|
2488
|
+
t(se, {
|
|
2489
|
+
image: "https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
2490
2490
|
size: "64"
|
|
2491
2491
|
}),
|
|
2492
|
-
|
|
2492
|
+
On
|
|
2493
2493
|
]),
|
|
2494
2494
|
_: 1
|
|
2495
2495
|
}),
|
|
2496
2496
|
t(J, { cols: "12" }, {
|
|
2497
2497
|
default: n(() => [
|
|
2498
|
-
t(
|
|
2498
|
+
t(_, {
|
|
2499
2499
|
"prepend-icon": "$vuetify",
|
|
2500
2500
|
size: "x-large",
|
|
2501
2501
|
text: "Subscribe Today",
|
|
@@ -2516,7 +2516,7 @@ const Oe = K("settings", () => {
|
|
|
2516
2516
|
]),
|
|
2517
2517
|
_: 1
|
|
2518
2518
|
}),
|
|
2519
|
-
t(
|
|
2519
|
+
t(k, { app: "" })
|
|
2520
2520
|
]),
|
|
2521
2521
|
_: 1
|
|
2522
2522
|
})
|
|
@@ -2528,22 +2528,22 @@ const Oe = K("settings", () => {
|
|
|
2528
2528
|
}), Fn = /* @__PURE__ */ $({
|
|
2529
2529
|
__name: "VoStudioNavItem",
|
|
2530
2530
|
setup(c) {
|
|
2531
|
-
const e = B(!1),
|
|
2531
|
+
const e = B(!1), a = [
|
|
2532
2532
|
["M12.435 14.3194L12 21L6.87046 12.2799L12.435 14.3194Z", 1],
|
|
2533
2533
|
["M22 4L12.435 14.3194L6.87046 12.2799L9.26479 7.61064L12.435 14.3194L12 21L22 4Z", 0.5],
|
|
2534
2534
|
["M12.435 14.3194L22 4L9.26479 7.61064L12.435 14.3194Z", 1],
|
|
2535
2535
|
["M2 4L6.87046 12.2799L9.26479 7.61064L2 4Z", 1]
|
|
2536
2536
|
];
|
|
2537
|
-
return (s,
|
|
2538
|
-
const
|
|
2539
|
-
return
|
|
2537
|
+
return (s, l) => {
|
|
2538
|
+
const i = jn, r = Y;
|
|
2539
|
+
return d(), v(r, {
|
|
2540
2540
|
active: e.value,
|
|
2541
|
-
"prepend-icon":
|
|
2541
|
+
"prepend-icon": a,
|
|
2542
2542
|
title: "Vuetify Studio",
|
|
2543
2543
|
link: ""
|
|
2544
2544
|
}, {
|
|
2545
2545
|
append: n(() => [
|
|
2546
|
-
t(
|
|
2546
|
+
t(q, {
|
|
2547
2547
|
size: "x-small",
|
|
2548
2548
|
label: ""
|
|
2549
2549
|
}, {
|
|
@@ -2554,10 +2554,10 @@ const Oe = K("settings", () => {
|
|
|
2554
2554
|
})
|
|
2555
2555
|
]),
|
|
2556
2556
|
default: n(() => [
|
|
2557
|
-
t(
|
|
2557
|
+
t(i, {
|
|
2558
2558
|
modelValue: e.value,
|
|
2559
|
-
"onUpdate:modelValue":
|
|
2560
|
-
"prepend-icon":
|
|
2559
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => e.value = u),
|
|
2560
|
+
"prepend-icon": a
|
|
2561
2561
|
}, null, 8, ["modelValue"])
|
|
2562
2562
|
]),
|
|
2563
2563
|
_: 1
|
|
@@ -2576,40 +2576,40 @@ const Oe = K("settings", () => {
|
|
|
2576
2576
|
items: {}
|
|
2577
2577
|
},
|
|
2578
2578
|
setup(c) {
|
|
2579
|
-
const e =
|
|
2580
|
-
function r
|
|
2581
|
-
return s.notifications.last.banner.includes(
|
|
2579
|
+
const e = De(), a = pe(), s = j();
|
|
2580
|
+
function l(r) {
|
|
2581
|
+
return s.notifications.last.banner.includes(r);
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2584
|
-
r
|
|
2583
|
+
function i(r) {
|
|
2584
|
+
l(r.slug) ? s.notifications.last.banner = s.notifications.last.banner.filter((u) => u !== r.slug) : s.notifications.last.banner.push(r.slug);
|
|
2585
2585
|
}
|
|
2586
|
-
return (
|
|
2587
|
-
const f =
|
|
2588
|
-
return
|
|
2586
|
+
return (r, u) => {
|
|
2587
|
+
const f = Pe("v-empty-state");
|
|
2588
|
+
return d(), v(ne, {
|
|
2589
2589
|
class: "py-0",
|
|
2590
2590
|
height: "100%",
|
|
2591
2591
|
lines: "three"
|
|
2592
2592
|
}, {
|
|
2593
2593
|
default: n(() => [
|
|
2594
|
-
|
|
2595
|
-
(
|
|
2596
|
-
var
|
|
2597
|
-
return
|
|
2598
|
-
key:
|
|
2594
|
+
r.items.length ? (d(), S("div", Pn, [
|
|
2595
|
+
(d(!0), S(D, null, oe(r.items, (p) => {
|
|
2596
|
+
var _;
|
|
2597
|
+
return d(), S("div", {
|
|
2598
|
+
key: p.slug,
|
|
2599
2599
|
class: "mb-4"
|
|
2600
2600
|
}, [
|
|
2601
2601
|
t(P, {
|
|
2602
|
-
color:
|
|
2603
|
-
image: (
|
|
2604
|
-
title:
|
|
2602
|
+
color: p.metadata.color,
|
|
2603
|
+
image: (_ = p.metadata.images.bg) == null ? void 0 : _.url,
|
|
2604
|
+
title: p.title,
|
|
2605
2605
|
rounded: "b-0",
|
|
2606
2606
|
flat: ""
|
|
2607
2607
|
}, {
|
|
2608
2608
|
prepend: n(() => {
|
|
2609
|
-
var
|
|
2609
|
+
var k;
|
|
2610
2610
|
return [
|
|
2611
|
-
t(
|
|
2612
|
-
image: (
|
|
2611
|
+
t(se, {
|
|
2612
|
+
image: (k = p.metadata.images.logo) == null ? void 0 : k.url
|
|
2613
2613
|
}, null, 8, ["image"])
|
|
2614
2614
|
];
|
|
2615
2615
|
}),
|
|
@@ -2618,30 +2618,30 @@ const Oe = K("settings", () => {
|
|
|
2618
2618
|
]),
|
|
2619
2619
|
_: 2
|
|
2620
2620
|
}, 1032, ["color", "image", "title"]),
|
|
2621
|
-
t(
|
|
2622
|
-
default: n(({ props:
|
|
2623
|
-
t(
|
|
2621
|
+
t(Be, null, {
|
|
2622
|
+
default: n(({ props: k, isHovering: b }) => [
|
|
2623
|
+
t(he, E(k, {
|
|
2624
2624
|
class: "px-8 pt-2 pb-4 position-relative",
|
|
2625
2625
|
rounded: "b",
|
|
2626
2626
|
border: ""
|
|
2627
2627
|
}), {
|
|
2628
2628
|
default: n(() => [
|
|
2629
2629
|
t(X, {
|
|
2630
|
-
text:
|
|
2630
|
+
text: l(p.slug) ? "Mark as unread" : "Mark as read",
|
|
2631
2631
|
location: "bottom"
|
|
2632
2632
|
}, {
|
|
2633
|
-
activator: n(({ props:
|
|
2634
|
-
t(
|
|
2633
|
+
activator: n(({ props: y }) => [
|
|
2634
|
+
t(Ae, { "hide-on-leave": "" }, {
|
|
2635
2635
|
default: n(() => [
|
|
2636
|
-
Ie(t(
|
|
2637
|
-
icon: `svg:${
|
|
2636
|
+
Ie(t(G, E(y, {
|
|
2637
|
+
icon: `svg:${l(p.slug) ? o(nt) : o(ot)}`,
|
|
2638
2638
|
class: "ms-auto float-right",
|
|
2639
2639
|
size: "small",
|
|
2640
2640
|
variant: "text",
|
|
2641
2641
|
"mdi-email-variant": "",
|
|
2642
|
-
onClick: (m) =>
|
|
2642
|
+
onClick: (m) => i(p)
|
|
2643
2643
|
}), null, 16, ["icon", "onClick"]), [
|
|
2644
|
-
[
|
|
2644
|
+
[Re, b || o(a).mobile.value]
|
|
2645
2645
|
])
|
|
2646
2646
|
]),
|
|
2647
2647
|
_: 2
|
|
@@ -2649,16 +2649,16 @@ const Oe = K("settings", () => {
|
|
|
2649
2649
|
]),
|
|
2650
2650
|
_: 2
|
|
2651
2651
|
}, 1032, ["text"]),
|
|
2652
|
-
g("div", Rn, L(
|
|
2653
|
-
g("div", Hn, L(o(e).format(
|
|
2654
|
-
g("div", En, L(
|
|
2655
|
-
t(
|
|
2656
|
-
href:
|
|
2657
|
-
target:
|
|
2658
|
-
to:
|
|
2652
|
+
g("div", Rn, L(p.metadata.text), 1),
|
|
2653
|
+
g("div", Hn, L(o(e).format(p.created_at, "fullDateWithWeekday")), 1),
|
|
2654
|
+
g("div", En, L(p.metadata.subtext), 1),
|
|
2655
|
+
t(q, E({
|
|
2656
|
+
href: p.metadata.link.startsWith("http") ? p.metadata.link : void 0,
|
|
2657
|
+
target: p.metadata.link.startsWith("http") ? "_blank" : void 0,
|
|
2658
|
+
to: p.metadata.link.startsWith("http") ? void 0 : p.metadata.link
|
|
2659
2659
|
}, {
|
|
2660
|
-
"append-icon": `svg:${o(
|
|
2661
|
-
text:
|
|
2660
|
+
"append-icon": `svg:${o(ge)}`,
|
|
2661
|
+
text: p.metadata.link_text,
|
|
2662
2662
|
size: "small",
|
|
2663
2663
|
variant: "text",
|
|
2664
2664
|
border: "",
|
|
@@ -2677,7 +2677,7 @@ const Oe = K("settings", () => {
|
|
|
2677
2677
|
}, 1024)
|
|
2678
2678
|
]);
|
|
2679
2679
|
}), 128))
|
|
2680
|
-
])) : (
|
|
2680
|
+
])) : (d(), S("div", Tn, [
|
|
2681
2681
|
t(f, {
|
|
2682
2682
|
icon: "$vuetify",
|
|
2683
2683
|
size: "256"
|
|
@@ -2703,7 +2703,7 @@ const Oe = K("settings", () => {
|
|
|
2703
2703
|
notification: {}
|
|
2704
2704
|
},
|
|
2705
2705
|
setup(c) {
|
|
2706
|
-
const e = c,
|
|
2706
|
+
const e = c, a = j(), s = De(), l = pe(), i = C(() => {
|
|
2707
2707
|
const f = e.notification.metadata ?? { action: "" };
|
|
2708
2708
|
return {
|
|
2709
2709
|
href: f.action.startsWith("http") ? f.action : void 0,
|
|
@@ -2715,17 +2715,17 @@ const Oe = K("settings", () => {
|
|
|
2715
2715
|
}
|
|
2716
2716
|
};
|
|
2717
2717
|
});
|
|
2718
|
-
function
|
|
2719
|
-
return
|
|
2718
|
+
function r(f) {
|
|
2719
|
+
return a.notifications.read.includes(f);
|
|
2720
2720
|
}
|
|
2721
2721
|
function u(f) {
|
|
2722
|
-
e.demo || (
|
|
2722
|
+
e.demo || (r(f.slug) ? a.notifications.read = a.notifications.read.filter((p) => p !== f.slug) : a.notifications.read.push(f.slug));
|
|
2723
2723
|
}
|
|
2724
|
-
return (f,
|
|
2725
|
-
const
|
|
2726
|
-
return
|
|
2727
|
-
default: n(({ isHovering:
|
|
2728
|
-
t(
|
|
2724
|
+
return (f, p) => {
|
|
2725
|
+
const _ = Y;
|
|
2726
|
+
return d(), v(Be, null, {
|
|
2727
|
+
default: n(({ isHovering: k, props: b }) => [
|
|
2728
|
+
t(_, E(b, { class: "py-4 mb-0" }), {
|
|
2729
2729
|
prepend: n(() => [
|
|
2730
2730
|
g("div", Gn, L(f.notification.metadata.emoji), 1)
|
|
2731
2731
|
]),
|
|
@@ -2736,21 +2736,21 @@ const Oe = K("settings", () => {
|
|
|
2736
2736
|
}, {
|
|
2737
2737
|
default: n(() => [
|
|
2738
2738
|
t(X, {
|
|
2739
|
-
text:
|
|
2739
|
+
text: r(f.notification.slug) ? "Mark as unread" : "Mark as read",
|
|
2740
2740
|
location: "bottom"
|
|
2741
2741
|
}, {
|
|
2742
|
-
activator: n(({ props:
|
|
2743
|
-
t(
|
|
2742
|
+
activator: n(({ props: y }) => [
|
|
2743
|
+
t(Ae, { "hide-on-leave": "" }, {
|
|
2744
2744
|
default: n(() => [
|
|
2745
|
-
Ie(t(
|
|
2746
|
-
icon: `svg:${
|
|
2745
|
+
Ie(t(G, E(y, {
|
|
2746
|
+
icon: `svg:${r(f.notification.slug) ? o(nt) : o(ot)}`,
|
|
2747
2747
|
class: "ms-auto",
|
|
2748
2748
|
size: "small",
|
|
2749
2749
|
variant: "text",
|
|
2750
2750
|
"mdi-email-variant": "",
|
|
2751
|
-
onClick:
|
|
2751
|
+
onClick: p[0] || (p[0] = (m) => u(f.notification))
|
|
2752
2752
|
}), null, 16, ["icon"]), [
|
|
2753
|
-
[
|
|
2753
|
+
[Re, k || o(l).mobile.value]
|
|
2754
2754
|
])
|
|
2755
2755
|
]),
|
|
2756
2756
|
_: 2
|
|
@@ -2771,10 +2771,10 @@ const Oe = K("settings", () => {
|
|
|
2771
2771
|
}),
|
|
2772
2772
|
g("div", Zn, L(o(s).format(f.notification.created_at, "fullDateWithWeekday")), 1),
|
|
2773
2773
|
g("div", Yn, L(f.notification.metadata.text), 1),
|
|
2774
|
-
t(
|
|
2775
|
-
"append-icon": `svg:${o(
|
|
2774
|
+
t(q, E({
|
|
2775
|
+
"append-icon": `svg:${o(ge)}`,
|
|
2776
2776
|
text: f.notification.metadata.action_text
|
|
2777
|
-
},
|
|
2777
|
+
}, i.value, {
|
|
2778
2778
|
size: "small",
|
|
2779
2779
|
variant: "text",
|
|
2780
2780
|
border: "",
|
|
@@ -2802,20 +2802,20 @@ const Oe = K("settings", () => {
|
|
|
2802
2802
|
items: {}
|
|
2803
2803
|
},
|
|
2804
2804
|
setup(c) {
|
|
2805
|
-
return (e,
|
|
2806
|
-
const s =
|
|
2807
|
-
return
|
|
2805
|
+
return (e, a) => {
|
|
2806
|
+
const s = Pe("v-empty-state"), l = Qn;
|
|
2807
|
+
return d(), v(ne, {
|
|
2808
2808
|
class: "py-0",
|
|
2809
2809
|
height: "100%",
|
|
2810
2810
|
lines: "three"
|
|
2811
2811
|
}, {
|
|
2812
2812
|
default: n(() => [
|
|
2813
|
-
e.items.length ? (
|
|
2814
|
-
key:
|
|
2813
|
+
e.items.length ? (d(!0), S(D, { key: 1 }, oe(e.items, (i, r) => (d(), S(D, {
|
|
2814
|
+
key: i.slug
|
|
2815
2815
|
}, [
|
|
2816
|
-
|
|
2817
|
-
t(
|
|
2818
|
-
], 64))), 128)) : (
|
|
2816
|
+
r !== 0 ? (d(), v(W, { key: 0 })) : x("", !0),
|
|
2817
|
+
t(l, { notification: i }, null, 8, ["notification"])
|
|
2818
|
+
], 64))), 128)) : (d(), S("div", Jn, [
|
|
2819
2819
|
t(s, {
|
|
2820
2820
|
icon: "$vuetify",
|
|
2821
2821
|
size: "256"
|
|
@@ -2841,88 +2841,88 @@ const Oe = K("settings", () => {
|
|
|
2841
2841
|
url: e
|
|
2842
2842
|
};
|
|
2843
2843
|
}), ze = K("banners", () => {
|
|
2844
|
-
const c =
|
|
2844
|
+
const c = $e(), e = es(), a = j(), s = F([]), l = F([]), i = F(), r = B(!1), u = C(() => i.value ? i.value : f.value ? f.value : s.value.find(({
|
|
2845
2845
|
slug: m,
|
|
2846
2846
|
metadata: {
|
|
2847
|
-
site:
|
|
2848
|
-
active:
|
|
2847
|
+
site: h,
|
|
2848
|
+
active: w
|
|
2849
2849
|
}
|
|
2850
|
-
}) => !
|
|
2850
|
+
}) => !w || a.notifications.last.banner.includes(m) ? !1 : h.includes("dev") && !1 || h.includes("*") ? !0 : h.some((O) => e.id.includes(O)))), f = C(() => s.value.find(({
|
|
2851
2851
|
metadata: {
|
|
2852
2852
|
site: m,
|
|
2853
|
-
active:
|
|
2853
|
+
active: h
|
|
2854
2854
|
}
|
|
2855
|
-
}) =>
|
|
2856
|
-
async function
|
|
2855
|
+
}) => h ? m.includes("server") : !1));
|
|
2856
|
+
async function p() {
|
|
2857
2857
|
try {
|
|
2858
|
-
|
|
2858
|
+
r.value = !0;
|
|
2859
2859
|
const m = await c.get("/one/banners");
|
|
2860
2860
|
s.value = m.banners;
|
|
2861
2861
|
} catch {
|
|
2862
2862
|
} finally {
|
|
2863
|
-
|
|
2863
|
+
r.value = !1;
|
|
2864
2864
|
}
|
|
2865
2865
|
return s.value;
|
|
2866
2866
|
}
|
|
2867
|
-
async function
|
|
2867
|
+
async function _(m) {
|
|
2868
2868
|
try {
|
|
2869
|
-
|
|
2870
|
-
const
|
|
2871
|
-
return
|
|
2869
|
+
r.value = !0;
|
|
2870
|
+
const h = await c.get(`/one/admin/banners/${m}/edit`);
|
|
2871
|
+
return i.value = h.banner, h.banner;
|
|
2872
2872
|
} catch {
|
|
2873
2873
|
} finally {
|
|
2874
|
-
|
|
2874
|
+
r.value = !1;
|
|
2875
2875
|
}
|
|
2876
2876
|
}
|
|
2877
|
-
async function
|
|
2877
|
+
async function k(m, h) {
|
|
2878
2878
|
try {
|
|
2879
|
-
|
|
2880
|
-
const
|
|
2879
|
+
r.value = !0;
|
|
2880
|
+
const w = await c.form(
|
|
2881
2881
|
`/one/admin/banners/${m}/edit`,
|
|
2882
|
-
|
|
2882
|
+
h
|
|
2883
2883
|
);
|
|
2884
|
-
return
|
|
2884
|
+
return i.value = w.banner, w.banner;
|
|
2885
2885
|
} catch {
|
|
2886
2886
|
} finally {
|
|
2887
|
-
|
|
2887
|
+
r.value = !1;
|
|
2888
2888
|
}
|
|
2889
2889
|
}
|
|
2890
2890
|
async function b(m) {
|
|
2891
2891
|
try {
|
|
2892
|
-
|
|
2893
|
-
const
|
|
2892
|
+
r.value = !0;
|
|
2893
|
+
const h = await c.form(
|
|
2894
2894
|
"/one/admin/banners",
|
|
2895
2895
|
m
|
|
2896
2896
|
);
|
|
2897
|
-
return
|
|
2897
|
+
return i.value = h.banner, h.banner;
|
|
2898
2898
|
} catch {
|
|
2899
2899
|
} finally {
|
|
2900
|
-
|
|
2900
|
+
r.value = !1;
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
|
-
async function
|
|
2903
|
+
async function y() {
|
|
2904
2904
|
try {
|
|
2905
|
-
|
|
2905
|
+
r.value = !0;
|
|
2906
2906
|
const m = await c.get("/one/admin/banners");
|
|
2907
|
-
|
|
2907
|
+
l.value = m.banners;
|
|
2908
2908
|
} catch {
|
|
2909
2909
|
} finally {
|
|
2910
|
-
|
|
2910
|
+
r.value = !1;
|
|
2911
2911
|
}
|
|
2912
2912
|
return s.value;
|
|
2913
2913
|
}
|
|
2914
2914
|
return {
|
|
2915
2915
|
all: s,
|
|
2916
|
-
aall:
|
|
2917
|
-
isLoading:
|
|
2916
|
+
aall: l,
|
|
2917
|
+
isLoading: r,
|
|
2918
2918
|
server: f,
|
|
2919
2919
|
banner: u,
|
|
2920
|
-
record:
|
|
2921
|
-
admin:
|
|
2922
|
-
get:
|
|
2920
|
+
record: i,
|
|
2921
|
+
admin: y,
|
|
2922
|
+
get: p,
|
|
2923
2923
|
create: b,
|
|
2924
|
-
edit:
|
|
2925
|
-
save:
|
|
2924
|
+
edit: _,
|
|
2925
|
+
save: k
|
|
2926
2926
|
};
|
|
2927
2927
|
}), ts = { class: "text-caption" }, os = { class: "text-caption" }, ns = /* @__PURE__ */ $({
|
|
2928
2928
|
__name: "VoNotificationsDialog",
|
|
@@ -2932,23 +2932,23 @@ const Oe = K("settings", () => {
|
|
|
2932
2932
|
},
|
|
2933
2933
|
emits: ["update:modelValue"],
|
|
2934
2934
|
setup(c) {
|
|
2935
|
-
const e = pe(),
|
|
2936
|
-
return N(
|
|
2937
|
-
if (
|
|
2935
|
+
const e = pe(), a = me(), s = ze(), l = Ue(), i = T(), r = B(["read"]), u = le(c, "modelValue");
|
|
2936
|
+
return N(a, async () => {
|
|
2937
|
+
if (a.value.one !== "notifications") {
|
|
2938
2938
|
u.value && (u.value = !1);
|
|
2939
2939
|
return;
|
|
2940
2940
|
}
|
|
2941
|
-
|
|
2942
|
-
}, { immediate: !0 }), (f,
|
|
2943
|
-
const
|
|
2944
|
-
return
|
|
2941
|
+
i.isOpen = !0, await ue(), u.value = !0;
|
|
2942
|
+
}, { immediate: !0 }), (f, p) => {
|
|
2943
|
+
const _ = Y, k = Kn, b = Wn, y = xe;
|
|
2944
|
+
return d(), v(y, {
|
|
2945
2945
|
modelValue: u.value,
|
|
2946
|
-
"onUpdate:modelValue":
|
|
2947
|
-
"prepend-icon": `svg:${o(
|
|
2946
|
+
"onUpdate:modelValue": p[2] || (p[2] = (m) => u.value = m),
|
|
2947
|
+
"prepend-icon": `svg:${o(Qt)}`,
|
|
2948
2948
|
title: "Notifications"
|
|
2949
2949
|
}, {
|
|
2950
2950
|
default: n(() => [
|
|
2951
|
-
t(
|
|
2951
|
+
t(Ve, null, {
|
|
2952
2952
|
default: n(() => [
|
|
2953
2953
|
t(bo, {
|
|
2954
2954
|
location: o(e).mobile.value ? "top" : "start",
|
|
@@ -2956,85 +2956,85 @@ const Oe = K("settings", () => {
|
|
|
2956
2956
|
permanent: ""
|
|
2957
2957
|
}, {
|
|
2958
2958
|
default: n(() => [
|
|
2959
|
-
t(
|
|
2960
|
-
selected:
|
|
2961
|
-
"onUpdate:selected":
|
|
2959
|
+
t(ne, {
|
|
2960
|
+
selected: r.value,
|
|
2961
|
+
"onUpdate:selected": p[0] || (p[0] = (m) => r.value = m),
|
|
2962
2962
|
class: "px-4 pt-4",
|
|
2963
2963
|
density: "compact",
|
|
2964
2964
|
mandatory: "",
|
|
2965
2965
|
nav: ""
|
|
2966
2966
|
}, {
|
|
2967
2967
|
default: n(() => [
|
|
2968
|
-
t(
|
|
2969
|
-
"prepend-icon": `svg:${o(
|
|
2968
|
+
t(_, {
|
|
2969
|
+
"prepend-icon": `svg:${o(Jt)}`,
|
|
2970
2970
|
title: "Unread",
|
|
2971
2971
|
value: "read"
|
|
2972
|
-
},
|
|
2973
|
-
o(
|
|
2972
|
+
}, Z({ _: 2 }, [
|
|
2973
|
+
o(l).unread.length > 0 ? {
|
|
2974
2974
|
name: "append",
|
|
2975
2975
|
fn: n(() => [
|
|
2976
|
-
g("span", ts, L(o(
|
|
2976
|
+
g("span", ts, L(o(l).unread.length), 1)
|
|
2977
2977
|
]),
|
|
2978
2978
|
key: "0"
|
|
2979
2979
|
} : void 0
|
|
2980
2980
|
]), 1032, ["prepend-icon"]),
|
|
2981
|
-
t(
|
|
2982
|
-
"prepend-icon": `svg:${o(
|
|
2981
|
+
t(_, {
|
|
2982
|
+
"prepend-icon": `svg:${o(Xt)}`,
|
|
2983
2983
|
title: "Read",
|
|
2984
2984
|
value: "unread"
|
|
2985
|
-
},
|
|
2986
|
-
o(
|
|
2985
|
+
}, Z({ _: 2 }, [
|
|
2986
|
+
o(l).read.length > 0 ? {
|
|
2987
2987
|
name: "append",
|
|
2988
2988
|
fn: n(() => [
|
|
2989
|
-
g("span", os, L(o(
|
|
2989
|
+
g("span", os, L(o(l).read.length), 1)
|
|
2990
2990
|
]),
|
|
2991
2991
|
key: "0"
|
|
2992
2992
|
} : void 0
|
|
2993
2993
|
]), 1032, ["prepend-icon"]),
|
|
2994
|
-
o(s).all.length > 0 ? (
|
|
2994
|
+
o(s).all.length > 0 ? (d(), v(_, {
|
|
2995
2995
|
key: 0,
|
|
2996
|
-
"prepend-icon": `svg:${o(
|
|
2996
|
+
"prepend-icon": `svg:${o(Kt)}`,
|
|
2997
2997
|
title: "Banners",
|
|
2998
2998
|
value: "banners"
|
|
2999
2999
|
}, {
|
|
3000
3000
|
append: n(() => [
|
|
3001
|
-
t(
|
|
3001
|
+
t(Ge, {
|
|
3002
3002
|
"offset-y": "-3",
|
|
3003
3003
|
dot: ""
|
|
3004
3004
|
})
|
|
3005
3005
|
]),
|
|
3006
3006
|
_: 1
|
|
3007
|
-
}, 8, ["prepend-icon"])) :
|
|
3007
|
+
}, 8, ["prepend-icon"])) : x("", !0)
|
|
3008
3008
|
]),
|
|
3009
3009
|
_: 1
|
|
3010
3010
|
}, 8, ["selected"])
|
|
3011
3011
|
]),
|
|
3012
3012
|
_: 1
|
|
3013
3013
|
}, 8, ["location", "width"]),
|
|
3014
|
-
t(
|
|
3014
|
+
t(ke, { scrollable: "" }, {
|
|
3015
3015
|
default: n(() => [
|
|
3016
3016
|
t(rt, {
|
|
3017
|
-
modelValue:
|
|
3018
|
-
"onUpdate:modelValue":
|
|
3017
|
+
modelValue: r.value,
|
|
3018
|
+
"onUpdate:modelValue": p[1] || (p[1] = (m) => r.value = m)
|
|
3019
3019
|
}, {
|
|
3020
3020
|
default: n(() => [
|
|
3021
|
-
t(
|
|
3021
|
+
t(ve, { value: "read" }, {
|
|
3022
3022
|
default: n(() => [
|
|
3023
|
-
t(
|
|
3024
|
-
items: o(
|
|
3023
|
+
t(k, {
|
|
3024
|
+
items: o(l).unread
|
|
3025
3025
|
}, null, 8, ["items"])
|
|
3026
3026
|
]),
|
|
3027
3027
|
_: 1
|
|
3028
3028
|
}),
|
|
3029
|
-
t(
|
|
3029
|
+
t(ve, { value: "unread" }, {
|
|
3030
3030
|
default: n(() => [
|
|
3031
|
-
t(
|
|
3032
|
-
items: o(
|
|
3031
|
+
t(k, {
|
|
3032
|
+
items: o(l).read
|
|
3033
3033
|
}, null, 8, ["items"])
|
|
3034
3034
|
]),
|
|
3035
3035
|
_: 1
|
|
3036
3036
|
}),
|
|
3037
|
-
t(
|
|
3037
|
+
t(ve, { value: "banners" }, {
|
|
3038
3038
|
default: n(() => [
|
|
3039
3039
|
t(b, {
|
|
3040
3040
|
items: o(s).all
|
|
@@ -3059,10 +3059,10 @@ const Oe = K("settings", () => {
|
|
|
3059
3059
|
}), ss = /* @__PURE__ */ $({
|
|
3060
3060
|
__name: "VoNotificationsBadge",
|
|
3061
3061
|
setup(c) {
|
|
3062
|
-
const e =
|
|
3063
|
-
return (s,
|
|
3062
|
+
const e = Ue(), a = j();
|
|
3063
|
+
return (s, l) => (d(), v(Ge, {
|
|
3064
3064
|
content: o(e).unread.length,
|
|
3065
|
-
"model-value": o(
|
|
3065
|
+
"model-value": o(a).notifications.show && o(e).unread.length > 0,
|
|
3066
3066
|
color: "error"
|
|
3067
3067
|
}, {
|
|
3068
3068
|
default: n(() => [
|
|
@@ -3074,22 +3074,22 @@ const Oe = K("settings", () => {
|
|
|
3074
3074
|
}), as = /* @__PURE__ */ $({
|
|
3075
3075
|
__name: "VoNotificationsNavItem",
|
|
3076
3076
|
setup(c) {
|
|
3077
|
-
const e = ze(),
|
|
3077
|
+
const e = ze(), a = j(), s = Ue(), l = B(!1);
|
|
3078
3078
|
return kt(async () => {
|
|
3079
3079
|
s.index(), e.get();
|
|
3080
|
-
}), (
|
|
3081
|
-
const u = ss, f = ns,
|
|
3082
|
-
return o(
|
|
3080
|
+
}), (i, r) => {
|
|
3081
|
+
const u = ss, f = ns, p = Y;
|
|
3082
|
+
return o(a).notifications.show ? (d(), v(p, {
|
|
3083
3083
|
key: 0,
|
|
3084
|
-
active:
|
|
3085
|
-
"prepend-icon": `svg:${o(
|
|
3084
|
+
active: l.value,
|
|
3085
|
+
"prepend-icon": `svg:${o(eo)}`,
|
|
3086
3086
|
title: "Notifications",
|
|
3087
3087
|
link: ""
|
|
3088
|
-
},
|
|
3088
|
+
}, Z({
|
|
3089
3089
|
default: n(() => [
|
|
3090
3090
|
t(f, {
|
|
3091
|
-
modelValue:
|
|
3092
|
-
"onUpdate:modelValue":
|
|
3091
|
+
modelValue: l.value,
|
|
3092
|
+
"onUpdate:modelValue": r[0] || (r[0] = (_) => l.value = _)
|
|
3093
3093
|
}, null, 8, ["modelValue"])
|
|
3094
3094
|
]),
|
|
3095
3095
|
_: 2
|
|
@@ -3106,20 +3106,20 @@ const Oe = K("settings", () => {
|
|
|
3106
3106
|
]),
|
|
3107
3107
|
key: "0"
|
|
3108
3108
|
} : void 0
|
|
3109
|
-
]), 1032, ["active", "prepend-icon"])) :
|
|
3109
|
+
]), 1032, ["active", "prepend-icon"])) : x("", !0);
|
|
3110
3110
|
};
|
|
3111
3111
|
}
|
|
3112
3112
|
}), is = /* @__PURE__ */ $({
|
|
3113
3113
|
__name: "VoDashboardListItem",
|
|
3114
3114
|
setup(c) {
|
|
3115
3115
|
const e = T();
|
|
3116
|
-
return (
|
|
3117
|
-
const
|
|
3118
|
-
return
|
|
3119
|
-
"prepend-icon": `svg:${o(
|
|
3116
|
+
return (a, s) => {
|
|
3117
|
+
const l = Y;
|
|
3118
|
+
return d(), v(l, {
|
|
3119
|
+
"prepend-icon": `svg:${o(to)}`,
|
|
3120
3120
|
title: "Dashboard",
|
|
3121
3121
|
to: "/user/dashboard",
|
|
3122
|
-
onClick: s[0] || (s[0] = (
|
|
3122
|
+
onClick: s[0] || (s[0] = (i) => o(e).isOpen = !1)
|
|
3123
3123
|
}, null, 8, ["prepend-icon"]);
|
|
3124
3124
|
};
|
|
3125
3125
|
}
|
|
@@ -3127,21 +3127,21 @@ const Oe = K("settings", () => {
|
|
|
3127
3127
|
__name: "VoUserList",
|
|
3128
3128
|
setup(c) {
|
|
3129
3129
|
const e = z();
|
|
3130
|
-
return (
|
|
3131
|
-
const
|
|
3132
|
-
return
|
|
3130
|
+
return (a, s) => {
|
|
3131
|
+
const l = is, i = as, r = Fn, u = $n, f = dn, p = Po, _ = zo;
|
|
3132
|
+
return d(), v(ne, {
|
|
3133
3133
|
density: "compact",
|
|
3134
3134
|
nav: "",
|
|
3135
3135
|
slim: ""
|
|
3136
3136
|
}, {
|
|
3137
3137
|
default: n(() => [
|
|
3138
|
-
t(r),
|
|
3139
|
-
t(a),
|
|
3140
3138
|
t(l),
|
|
3139
|
+
t(i),
|
|
3140
|
+
t(r),
|
|
3141
3141
|
t(u),
|
|
3142
|
-
o(e).user ? (
|
|
3143
|
-
t(
|
|
3144
|
-
o(e).user ? (
|
|
3142
|
+
o(e).user ? (d(), v(f, { key: 0 })) : x("", !0),
|
|
3143
|
+
t(p),
|
|
3144
|
+
o(e).user ? (d(), v(_, { key: 1 })) : x("", !0)
|
|
3145
3145
|
]),
|
|
3146
3146
|
_: 1
|
|
3147
3147
|
});
|
|
@@ -3150,17 +3150,17 @@ const Oe = K("settings", () => {
|
|
|
3150
3150
|
}), rs = { key: 0 }, cs = { class: "d-flex align-center justify-center pa-1 ga-2" }, us = /* @__PURE__ */ $({
|
|
3151
3151
|
__name: "VoUserQuickActions",
|
|
3152
3152
|
setup(c) {
|
|
3153
|
-
const e = j(),
|
|
3153
|
+
const e = j(), a = [
|
|
3154
3154
|
["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],
|
|
3155
3155
|
["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],
|
|
3156
3156
|
"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",
|
|
3157
3157
|
["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]
|
|
3158
3158
|
];
|
|
3159
|
-
return (s,
|
|
3159
|
+
return (s, l) => (d(), v(be, null, {
|
|
3160
3160
|
default: n(() => [
|
|
3161
|
-
o(e).quickbar ? (
|
|
3161
|
+
o(e).quickbar ? (d(), S("div", rs, [
|
|
3162
3162
|
g("div", cs, [
|
|
3163
|
-
t(
|
|
3163
|
+
t(G, {
|
|
3164
3164
|
color: o(e).colors.one,
|
|
3165
3165
|
class: "text-caption",
|
|
3166
3166
|
density: "comfortable",
|
|
@@ -3178,9 +3178,9 @@ const Oe = K("settings", () => {
|
|
|
3178
3178
|
]),
|
|
3179
3179
|
_: 1
|
|
3180
3180
|
}, 8, ["color"]),
|
|
3181
|
-
t(
|
|
3181
|
+
t(G, {
|
|
3182
3182
|
color: o(e).colors.one,
|
|
3183
|
-
icon:
|
|
3183
|
+
icon: a,
|
|
3184
3184
|
class: "text-caption",
|
|
3185
3185
|
density: "comfortable",
|
|
3186
3186
|
href: "https://bin.vuetifyjs.com",
|
|
@@ -3196,9 +3196,9 @@ const Oe = K("settings", () => {
|
|
|
3196
3196
|
]),
|
|
3197
3197
|
_: 1
|
|
3198
3198
|
}, 8, ["color"]),
|
|
3199
|
-
t(
|
|
3199
|
+
t(G, {
|
|
3200
3200
|
color: o(e).colors.one,
|
|
3201
|
-
icon: `svg:${o(
|
|
3201
|
+
icon: `svg:${o(oo)}`,
|
|
3202
3202
|
class: "text-caption",
|
|
3203
3203
|
density: "comfortable",
|
|
3204
3204
|
href: "https://issues.vuetifyjs.com",
|
|
@@ -3215,7 +3215,7 @@ const Oe = K("settings", () => {
|
|
|
3215
3215
|
_: 1
|
|
3216
3216
|
}, 8, ["color", "icon"])
|
|
3217
3217
|
])
|
|
3218
|
-
])) :
|
|
3218
|
+
])) : x("", !0)
|
|
3219
3219
|
]),
|
|
3220
3220
|
_: 1
|
|
3221
3221
|
}));
|
|
@@ -3223,7 +3223,7 @@ const Oe = K("settings", () => {
|
|
|
3223
3223
|
}), ds = { class: "mb-2" }, ps = { key: 0 }, ms = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, fs = { class: "text-h6" }, vs = /* @__PURE__ */ $({
|
|
3224
3224
|
__name: "VoUserAvatar",
|
|
3225
3225
|
setup(c) {
|
|
3226
|
-
const e = z(),
|
|
3226
|
+
const e = z(), a = j(), s = B(!1), l = C(() => {
|
|
3227
3227
|
const u = [
|
|
3228
3228
|
"https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
3229
3229
|
"https://cdn.vuetifyjs.com/docs/images/avatars/grass.png",
|
|
@@ -3242,16 +3242,16 @@ const Oe = K("settings", () => {
|
|
|
3242
3242
|
];
|
|
3243
3243
|
return e.user && u.unshift(e.user.picture), u;
|
|
3244
3244
|
});
|
|
3245
|
-
function
|
|
3246
|
-
|
|
3245
|
+
function i(u) {
|
|
3246
|
+
a.avatar = u;
|
|
3247
3247
|
}
|
|
3248
|
-
function
|
|
3248
|
+
function r() {
|
|
3249
3249
|
e.isSubscriber && (s.value = !s.value);
|
|
3250
3250
|
}
|
|
3251
3251
|
return (u, f) => {
|
|
3252
|
-
var
|
|
3253
|
-
return
|
|
3254
|
-
Ie((
|
|
3252
|
+
var p;
|
|
3253
|
+
return d(), S("div", null, [
|
|
3254
|
+
Ie((d(), v(se, {
|
|
3255
3255
|
class: $t([
|
|
3256
3256
|
"border-md border-opacity-100 border-surface-variant",
|
|
3257
3257
|
{
|
|
@@ -3261,14 +3261,14 @@ const Oe = K("settings", () => {
|
|
|
3261
3261
|
color: "surface",
|
|
3262
3262
|
size: "72",
|
|
3263
3263
|
text: "Foobar",
|
|
3264
|
-
onClick:
|
|
3264
|
+
onClick: Me(r, ["prevent", "stop"])
|
|
3265
3265
|
}, {
|
|
3266
3266
|
default: n(() => [
|
|
3267
|
-
o(e).user && o(
|
|
3267
|
+
o(e).user && o(a).avatar ? (d(), v(ie, {
|
|
3268
3268
|
key: 0,
|
|
3269
|
-
src: o(
|
|
3269
|
+
src: o(a).avatar,
|
|
3270
3270
|
alt: "User avatar"
|
|
3271
|
-
}, null, 8, ["src"])) : (
|
|
3271
|
+
}, null, 8, ["src"])) : (d(), v(A, {
|
|
3272
3272
|
key: 1,
|
|
3273
3273
|
class: "mt-1",
|
|
3274
3274
|
icon: "$vuetify",
|
|
@@ -3280,9 +3280,9 @@ const Oe = K("settings", () => {
|
|
|
3280
3280
|
[Vo, o(e).isSubscriber]
|
|
3281
3281
|
]),
|
|
3282
3282
|
g("div", ds, [
|
|
3283
|
-
t(
|
|
3283
|
+
t(be, null, {
|
|
3284
3284
|
default: n(() => [
|
|
3285
|
-
s.value ? (
|
|
3285
|
+
s.value ? (d(), S("div", ps, [
|
|
3286
3286
|
t(P, {
|
|
3287
3287
|
class: "pt-6 pb-1",
|
|
3288
3288
|
rounded: "0",
|
|
@@ -3290,16 +3290,16 @@ const Oe = K("settings", () => {
|
|
|
3290
3290
|
}, {
|
|
3291
3291
|
default: n(() => [
|
|
3292
3292
|
g("div", ms, [
|
|
3293
|
-
(
|
|
3294
|
-
key:
|
|
3295
|
-
active: o(
|
|
3293
|
+
(d(!0), S(D, null, oe(l.value, (_, k) => (d(), v(G, {
|
|
3294
|
+
key: k,
|
|
3295
|
+
active: o(a).avatar === _,
|
|
3296
3296
|
variant: "flat",
|
|
3297
3297
|
icon: "",
|
|
3298
|
-
onClick: (b) =>
|
|
3298
|
+
onClick: (b) => i(_)
|
|
3299
3299
|
}, {
|
|
3300
3300
|
default: n(() => [
|
|
3301
|
-
t(
|
|
3302
|
-
image:
|
|
3301
|
+
t(se, {
|
|
3302
|
+
image: _,
|
|
3303
3303
|
eager: ""
|
|
3304
3304
|
}, null, 8, ["image"])
|
|
3305
3305
|
]),
|
|
@@ -3309,23 +3309,23 @@ const Oe = K("settings", () => {
|
|
|
3309
3309
|
]),
|
|
3310
3310
|
_: 1
|
|
3311
3311
|
})
|
|
3312
|
-
])) :
|
|
3312
|
+
])) : x("", !0)
|
|
3313
3313
|
]),
|
|
3314
3314
|
_: 1
|
|
3315
3315
|
})
|
|
3316
3316
|
]),
|
|
3317
|
-
g("div", fs, L(((
|
|
3317
|
+
g("div", fs, L(((p = o(e).user) == null ? void 0 : p.name) ?? "Guest"), 1)
|
|
3318
3318
|
]);
|
|
3319
3319
|
};
|
|
3320
3320
|
}
|
|
3321
3321
|
}), _s = /* @__PURE__ */ $({
|
|
3322
3322
|
__name: "VoUserBadges",
|
|
3323
3323
|
setup(c) {
|
|
3324
|
-
const e = z(),
|
|
3325
|
-
var
|
|
3326
|
-
return
|
|
3324
|
+
const e = z(), a = T(), s = C(() => {
|
|
3325
|
+
var l;
|
|
3326
|
+
return a.github || a.discord || a.isSubscriber || ((l = e.user) == null ? void 0 : l.isAdmin);
|
|
3327
3327
|
});
|
|
3328
|
-
return (
|
|
3328
|
+
return (l, i) => s.value ? (d(), v(he, {
|
|
3329
3329
|
key: 0,
|
|
3330
3330
|
class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
|
|
3331
3331
|
color: "rgba(0,0,0,.54)",
|
|
@@ -3333,64 +3333,64 @@ const Oe = K("settings", () => {
|
|
|
3333
3333
|
style: { left: "0" }
|
|
3334
3334
|
}, {
|
|
3335
3335
|
default: n(() => {
|
|
3336
|
-
var
|
|
3336
|
+
var r;
|
|
3337
3337
|
return [
|
|
3338
|
-
(
|
|
3338
|
+
(r = o(e).user) != null && r.isAdmin ? (d(), v(X, {
|
|
3339
3339
|
key: 0,
|
|
3340
3340
|
location: "bottom",
|
|
3341
3341
|
text: "Vuetify Administrator"
|
|
3342
3342
|
}, {
|
|
3343
3343
|
activator: n(({ props: u }) => [
|
|
3344
|
-
t(A,
|
|
3344
|
+
t(A, E({
|
|
3345
3345
|
color: "blue",
|
|
3346
3346
|
icon: "$vuetify"
|
|
3347
3347
|
}, u, { size: "16" }), null, 16)
|
|
3348
3348
|
]),
|
|
3349
3349
|
_: 1
|
|
3350
|
-
})) :
|
|
3351
|
-
o(
|
|
3350
|
+
})) : x("", !0),
|
|
3351
|
+
o(a).isSubscriber ? (d(), v(X, {
|
|
3352
3352
|
key: 1,
|
|
3353
3353
|
location: "bottom",
|
|
3354
3354
|
text: "Vuetify One Subscriber"
|
|
3355
3355
|
}, {
|
|
3356
3356
|
activator: n(({ props: u }) => [
|
|
3357
|
-
t(A,
|
|
3358
|
-
icon: `svg:${o(
|
|
3357
|
+
t(A, E({
|
|
3358
|
+
icon: `svg:${o(no)}`,
|
|
3359
3359
|
color: "amber-darken-2"
|
|
3360
3360
|
}, u, { size: "16" }), null, 16, ["icon"])
|
|
3361
3361
|
]),
|
|
3362
3362
|
_: 1
|
|
3363
|
-
})) :
|
|
3364
|
-
o(
|
|
3363
|
+
})) : x("", !0),
|
|
3364
|
+
o(a).github ? (d(), v(X, {
|
|
3365
3365
|
key: 2,
|
|
3366
3366
|
location: "bottom",
|
|
3367
3367
|
text: "GitHub Sponsor"
|
|
3368
3368
|
}, {
|
|
3369
3369
|
activator: n(({ props: u }) => [
|
|
3370
|
-
t(A,
|
|
3371
|
-
icon: `svg:${o(
|
|
3370
|
+
t(A, E({
|
|
3371
|
+
icon: `svg:${o(Ee)}`,
|
|
3372
3372
|
color: "white"
|
|
3373
3373
|
}, u, { size: "16" }), null, 16, ["icon"])
|
|
3374
3374
|
]),
|
|
3375
3375
|
_: 1
|
|
3376
|
-
})) :
|
|
3377
|
-
o(
|
|
3376
|
+
})) : x("", !0),
|
|
3377
|
+
o(a).discord ? (d(), v(X, {
|
|
3378
3378
|
key: 3,
|
|
3379
3379
|
location: "bottom",
|
|
3380
3380
|
text: "Discord Subscriber"
|
|
3381
3381
|
}, {
|
|
3382
3382
|
activator: n(({ props: u }) => [
|
|
3383
|
-
t(A,
|
|
3384
|
-
icon: `svg:${o(
|
|
3383
|
+
t(A, E({
|
|
3384
|
+
icon: `svg:${o(He)}`,
|
|
3385
3385
|
color: "white"
|
|
3386
3386
|
}, u, { size: "16" }), null, 16, ["icon"])
|
|
3387
3387
|
]),
|
|
3388
3388
|
_: 1
|
|
3389
|
-
})) :
|
|
3389
|
+
})) : x("", !0)
|
|
3390
3390
|
];
|
|
3391
3391
|
}),
|
|
3392
3392
|
_: 1
|
|
3393
|
-
})) :
|
|
3393
|
+
})) : x("", !0);
|
|
3394
3394
|
}
|
|
3395
3395
|
}), hs = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, gs = {
|
|
3396
3396
|
key: "reset",
|
|
@@ -3398,15 +3398,15 @@ const Oe = K("settings", () => {
|
|
|
3398
3398
|
}, ys = /* @__PURE__ */ $({
|
|
3399
3399
|
__name: "VoUserColors",
|
|
3400
3400
|
setup(c) {
|
|
3401
|
-
const e = z(),
|
|
3402
|
-
function
|
|
3403
|
-
|
|
3401
|
+
const e = z(), a = j(), s = B(!1);
|
|
3402
|
+
function l() {
|
|
3403
|
+
a.colors.one = "surface-light";
|
|
3404
3404
|
}
|
|
3405
|
-
return (
|
|
3406
|
-
const u = _s, f =
|
|
3407
|
-
return
|
|
3405
|
+
return (i, r) => {
|
|
3406
|
+
const u = _s, f = ae;
|
|
3407
|
+
return d(), S(D, null, [
|
|
3408
3408
|
t(ie, {
|
|
3409
|
-
color: o(e).user ? o(
|
|
3409
|
+
color: o(e).user ? o(a).colors.one : "surface-light",
|
|
3410
3410
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
3411
3411
|
height: "88",
|
|
3412
3412
|
rounded: "0",
|
|
@@ -3416,7 +3416,7 @@ const Oe = K("settings", () => {
|
|
|
3416
3416
|
default: n(() => [
|
|
3417
3417
|
g("div", hs, [
|
|
3418
3418
|
t(u),
|
|
3419
|
-
o(e).isSubscriber ? (
|
|
3419
|
+
o(e).isSubscriber ? (d(), v(f, {
|
|
3420
3420
|
key: 0,
|
|
3421
3421
|
active: s.value,
|
|
3422
3422
|
icon: s.value ? `svg:${o(de)}` : "$edit",
|
|
@@ -3425,12 +3425,12 @@ const Oe = K("settings", () => {
|
|
|
3425
3425
|
color: "inherit",
|
|
3426
3426
|
density: "comfortable",
|
|
3427
3427
|
title: "Edit One Header Color",
|
|
3428
|
-
onClick:
|
|
3428
|
+
onClick: r[0] || (r[0] = (p) => s.value = !s.value)
|
|
3429
3429
|
}, {
|
|
3430
3430
|
default: n(() => [
|
|
3431
|
-
t(
|
|
3431
|
+
t(Ae, { "leave-absolute": "" }, {
|
|
3432
3432
|
default: n(() => [
|
|
3433
|
-
(
|
|
3433
|
+
(d(), v(A, {
|
|
3434
3434
|
key: String(s.value)
|
|
3435
3435
|
}))
|
|
3436
3436
|
]),
|
|
@@ -3438,22 +3438,22 @@ const Oe = K("settings", () => {
|
|
|
3438
3438
|
})
|
|
3439
3439
|
]),
|
|
3440
3440
|
_: 1
|
|
3441
|
-
}, 8, ["active", "icon", "variant"])) :
|
|
3442
|
-
t(
|
|
3441
|
+
}, 8, ["active", "icon", "variant"])) : x("", !0),
|
|
3442
|
+
t(uo, null, {
|
|
3443
3443
|
default: n(() => [
|
|
3444
3444
|
Ie(g("div", gs, [
|
|
3445
3445
|
t(f, {
|
|
3446
|
-
disabled: o(
|
|
3447
|
-
icon: `svg:${o(
|
|
3446
|
+
disabled: o(a).colors.one === "surface-light",
|
|
3447
|
+
icon: `svg:${o(so)}`,
|
|
3448
3448
|
class: "ms-2 me-1",
|
|
3449
3449
|
color: "inherit",
|
|
3450
3450
|
density: "comfortable",
|
|
3451
3451
|
title: "Revert to Default",
|
|
3452
3452
|
variant: "text",
|
|
3453
|
-
onClick:
|
|
3453
|
+
onClick: l
|
|
3454
3454
|
}, null, 8, ["disabled", "icon"])
|
|
3455
3455
|
], 512), [
|
|
3456
|
-
[
|
|
3456
|
+
[Re, s.value]
|
|
3457
3457
|
])
|
|
3458
3458
|
]),
|
|
3459
3459
|
_: 1
|
|
@@ -3462,11 +3462,11 @@ const Oe = K("settings", () => {
|
|
|
3462
3462
|
]),
|
|
3463
3463
|
_: 1
|
|
3464
3464
|
}, 8, ["color"]),
|
|
3465
|
-
t(
|
|
3465
|
+
t(be, null, {
|
|
3466
3466
|
default: n(() => [
|
|
3467
|
-
s.value ? (
|
|
3467
|
+
s.value ? (d(), v(ko, {
|
|
3468
3468
|
key: 0,
|
|
3469
|
-
"model-value": o(
|
|
3469
|
+
"model-value": o(a).colors.one !== "surface-light" ? o(a).colors.one : void 0,
|
|
3470
3470
|
elevation: "0",
|
|
3471
3471
|
height: "250",
|
|
3472
3472
|
rounded: "0",
|
|
@@ -3476,8 +3476,8 @@ const Oe = K("settings", () => {
|
|
|
3476
3476
|
"hide-inputs": "",
|
|
3477
3477
|
"hide-sliders": "",
|
|
3478
3478
|
"show-swatches": "",
|
|
3479
|
-
"onUpdate:modelValue":
|
|
3480
|
-
}, null, 8, ["model-value"])) :
|
|
3479
|
+
"onUpdate:modelValue": r[1] || (r[1] = (p) => o(a).colors.one = p)
|
|
3480
|
+
}, null, 8, ["model-value"])) : x("", !0)
|
|
3481
3481
|
]),
|
|
3482
3482
|
_: 1
|
|
3483
3483
|
})
|
|
@@ -3487,17 +3487,17 @@ const Oe = K("settings", () => {
|
|
|
3487
3487
|
}), bs = { class: "text-center mt-n9 mb-4" }, Vs = /* @__PURE__ */ $({
|
|
3488
3488
|
__name: "VoUserMenu",
|
|
3489
3489
|
setup(c) {
|
|
3490
|
-
const e = ze(),
|
|
3490
|
+
const e = ze(), a = T(), s = F();
|
|
3491
3491
|
return N(() => e.banner, async () => {
|
|
3492
|
-
var
|
|
3493
|
-
await new Promise((
|
|
3494
|
-
}, { flush: "pre" }), (
|
|
3495
|
-
const
|
|
3496
|
-
return
|
|
3492
|
+
var l, i;
|
|
3493
|
+
await new Promise((r) => setTimeout(r, 300)), a.isOpen && ((i = (l = s.value) == null ? void 0 : l.updateLocation) == null || i.call(l));
|
|
3494
|
+
}, { flush: "pre" }), (l, i) => {
|
|
3495
|
+
const r = ys, u = vs, f = us, p = ls, _ = mt;
|
|
3496
|
+
return d(), v(o($o), {
|
|
3497
3497
|
ref_key: "menu",
|
|
3498
3498
|
ref: s,
|
|
3499
|
-
modelValue: o(
|
|
3500
|
-
"onUpdate:modelValue":
|
|
3499
|
+
modelValue: o(a).isOpen,
|
|
3500
|
+
"onUpdate:modelValue": i[0] || (i[0] = (k) => o(a).isOpen = k),
|
|
3501
3501
|
"close-on-click": !1,
|
|
3502
3502
|
"close-on-content-click": !1,
|
|
3503
3503
|
activator: "parent",
|
|
@@ -3511,15 +3511,15 @@ const Oe = K("settings", () => {
|
|
|
3511
3511
|
border: ""
|
|
3512
3512
|
}, {
|
|
3513
3513
|
default: n(() => [
|
|
3514
|
-
t(
|
|
3514
|
+
t(r),
|
|
3515
3515
|
g("div", bs, [
|
|
3516
3516
|
t(u),
|
|
3517
3517
|
t(f)
|
|
3518
3518
|
]),
|
|
3519
|
-
t(
|
|
3520
|
-
t(
|
|
3521
|
-
t(
|
|
3522
|
-
t(
|
|
3519
|
+
t(W),
|
|
3520
|
+
t(p),
|
|
3521
|
+
t(W),
|
|
3522
|
+
t(_)
|
|
3523
3523
|
]),
|
|
3524
3524
|
_: 1
|
|
3525
3525
|
})
|
|
@@ -3534,18 +3534,18 @@ const Oe = K("settings", () => {
|
|
|
3534
3534
|
external: Boolean
|
|
3535
3535
|
},
|
|
3536
3536
|
setup(c) {
|
|
3537
|
-
const e = z(),
|
|
3538
|
-
return (
|
|
3539
|
-
const f = Vs,
|
|
3540
|
-
return
|
|
3541
|
-
t(
|
|
3537
|
+
const e = z(), a = T(), s = j(), { lgAndUp: l } = pe(), i = C(() => a.isOpen || !e.user ? s.colors.one === "surface-light" ? "primary" : s.colors.one : "surface-light");
|
|
3538
|
+
return (r, u) => {
|
|
3539
|
+
const f = Vs, p = ae, _ = Uo, k = pt;
|
|
3540
|
+
return d(), S(D, null, [
|
|
3541
|
+
t(_, {
|
|
3542
3542
|
"offset-y": o(e).user ? 5 : 0
|
|
3543
3543
|
}, {
|
|
3544
3544
|
default: n(() => [
|
|
3545
|
-
t(
|
|
3546
|
-
[`${o(
|
|
3545
|
+
t(p, E({
|
|
3546
|
+
[`${o(l) ? "append-" : ""}icon`]: o(e).user ? void 0 : `svg:${o(ao)}`
|
|
3547
3547
|
}, {
|
|
3548
|
-
color:
|
|
3548
|
+
color: i.value,
|
|
3549
3549
|
icon: o(e).user || o(e).isLoading,
|
|
3550
3550
|
loading: o(e).isLoading,
|
|
3551
3551
|
variant: o(e).user ? "outlined" : "flat",
|
|
@@ -3555,11 +3555,11 @@ const Oe = K("settings", () => {
|
|
|
3555
3555
|
active: ""
|
|
3556
3556
|
}), {
|
|
3557
3557
|
default: n(() => [
|
|
3558
|
-
o(e).user ?
|
|
3559
|
-
o(e).user ? (
|
|
3558
|
+
o(e).user ? x("", !0) : (d(), S("span", ks, "Login")),
|
|
3559
|
+
o(e).user ? (d(), v(se, {
|
|
3560
3560
|
key: 1,
|
|
3561
3561
|
image: o(s).avatar || o(e).user.picture || ""
|
|
3562
|
-
}, null, 8, ["image"])) :
|
|
3562
|
+
}, null, 8, ["image"])) : x("", !0),
|
|
3563
3563
|
t(f)
|
|
3564
3564
|
]),
|
|
3565
3565
|
_: 1
|
|
@@ -3567,7 +3567,7 @@ const Oe = K("settings", () => {
|
|
|
3567
3567
|
]),
|
|
3568
3568
|
_: 1
|
|
3569
3569
|
}, 8, ["offset-y"]),
|
|
3570
|
-
t(
|
|
3570
|
+
t(k)
|
|
3571
3571
|
], 64);
|
|
3572
3572
|
};
|
|
3573
3573
|
}
|
|
@@ -3577,86 +3577,86 @@ const Oe = K("settings", () => {
|
|
|
3577
3577
|
demo: { type: Boolean }
|
|
3578
3578
|
},
|
|
3579
3579
|
setup(c) {
|
|
3580
|
-
const e = c, { mdAndUp:
|
|
3581
|
-
var b,
|
|
3582
|
-
return ((b =
|
|
3583
|
-
}), f = C(() => e.demo ? !0 : !
|
|
3584
|
-
function
|
|
3585
|
-
|
|
3580
|
+
const e = c, { mdAndUp: a } = pe(), s = qe(), l = j(), i = ze(), r = C(() => i.banner), u = C(() => {
|
|
3581
|
+
var b, y;
|
|
3582
|
+
return ((b = r.value) == null ? void 0 : b.metadata.height) || ((y = r.value) != null && y.metadata.subtext ? 88 : 48);
|
|
3583
|
+
}), f = C(() => e.demo ? !0 : !r.value || !l.notifications.last.banner.includes(r.value.slug));
|
|
3584
|
+
function p() {
|
|
3585
|
+
r.value && l.notifications.last.banner.push(r.value.slug);
|
|
3586
3586
|
}
|
|
3587
|
-
async function
|
|
3588
|
-
var
|
|
3589
|
-
if (!
|
|
3587
|
+
async function _(b) {
|
|
3588
|
+
var h;
|
|
3589
|
+
if (!r.value)
|
|
3590
3590
|
return;
|
|
3591
|
-
|
|
3592
|
-
const
|
|
3593
|
-
if (
|
|
3591
|
+
p(), await ue();
|
|
3592
|
+
const y = ((h = r.value) == null ? void 0 : h.metadata) ?? { link: "" };
|
|
3593
|
+
if (y.link.indexOf("?one=") === -1)
|
|
3594
3594
|
return;
|
|
3595
3595
|
b.preventDefault(), b.stopPropagation();
|
|
3596
|
-
const m =
|
|
3596
|
+
const m = y.link.split("?one=")[1];
|
|
3597
3597
|
s.push({ query: { one: m } });
|
|
3598
3598
|
}
|
|
3599
|
-
const
|
|
3600
|
-
var
|
|
3601
|
-
const b = ((
|
|
3599
|
+
const k = C(() => {
|
|
3600
|
+
var y, m;
|
|
3601
|
+
const b = ((y = r.value) == null ? void 0 : y.metadata) ?? { link: "" };
|
|
3602
3602
|
return {
|
|
3603
3603
|
href: b.link.startsWith("http") ? b.link : void 0,
|
|
3604
3604
|
target: b.link.startsWith("http") ? "_blank" : void 0,
|
|
3605
3605
|
to: b.link.startsWith("http") ? void 0 : b.link,
|
|
3606
|
-
...(m =
|
|
3607
|
-
onClick:
|
|
3606
|
+
...(m = r.value) == null ? void 0 : m.metadata.attributes,
|
|
3607
|
+
onClick: _
|
|
3608
3608
|
};
|
|
3609
3609
|
});
|
|
3610
|
-
return (b,
|
|
3610
|
+
return (b, y) => {
|
|
3611
3611
|
var m;
|
|
3612
|
-
return
|
|
3612
|
+
return r.value ? (d(), v(xo, {
|
|
3613
3613
|
key: 0,
|
|
3614
|
-
color:
|
|
3614
|
+
color: r.value.metadata.color,
|
|
3615
3615
|
height: u.value,
|
|
3616
|
-
image: (m =
|
|
3616
|
+
image: (m = r.value.metadata.images.bg) == null ? void 0 : m.url,
|
|
3617
3617
|
"model-value": f.value,
|
|
3618
3618
|
flat: ""
|
|
3619
3619
|
}, {
|
|
3620
3620
|
default: n(() => [
|
|
3621
|
-
t(
|
|
3621
|
+
t(ye, E(k.value, {
|
|
3622
3622
|
active: !1,
|
|
3623
3623
|
class: "flex-grow-1 py-6",
|
|
3624
3624
|
lines: "two",
|
|
3625
|
-
onClick:
|
|
3625
|
+
onClick: _
|
|
3626
3626
|
}), {
|
|
3627
3627
|
prepend: n(() => [
|
|
3628
|
-
|
|
3628
|
+
r.value.metadata.images.logo ? (d(), v(se, {
|
|
3629
3629
|
key: 0,
|
|
3630
|
-
image:
|
|
3630
|
+
image: r.value.metadata.images.logo.url,
|
|
3631
3631
|
icon: "$vuetify",
|
|
3632
3632
|
size: "x-large",
|
|
3633
3633
|
tile: ""
|
|
3634
|
-
}, null, 8, ["image"])) :
|
|
3634
|
+
}, null, 8, ["image"])) : x("", !0)
|
|
3635
3635
|
]),
|
|
3636
3636
|
append: n(() => [
|
|
3637
|
-
o(
|
|
3638
|
-
default: n(({ isHovering:
|
|
3639
|
-
t(
|
|
3640
|
-
...
|
|
3641
|
-
...
|
|
3637
|
+
o(a) && r.value.metadata.link && r.value.metadata.link_text ? (d(), v(Be, { key: 0 }, {
|
|
3638
|
+
default: n(({ isHovering: h, props: w }) => [
|
|
3639
|
+
t(G, E({
|
|
3640
|
+
...w,
|
|
3641
|
+
...k.value
|
|
3642
3642
|
}, {
|
|
3643
|
-
"append-icon": `svg:${o(
|
|
3644
|
-
color:
|
|
3645
|
-
elevation:
|
|
3646
|
-
title:
|
|
3643
|
+
"append-icon": `svg:${o(ge)}`,
|
|
3644
|
+
color: r.value.metadata.link_color,
|
|
3645
|
+
elevation: h ? 8 : 0,
|
|
3646
|
+
title: r.value.metadata.link_text,
|
|
3647
3647
|
class: "text-none me-2",
|
|
3648
3648
|
variant: "elevated",
|
|
3649
|
-
onClick:
|
|
3649
|
+
onClick: _
|
|
3650
3650
|
}), {
|
|
3651
3651
|
default: n(() => [
|
|
3652
|
-
U(L(
|
|
3652
|
+
U(L(r.value.metadata.link_text), 1)
|
|
3653
3653
|
]),
|
|
3654
3654
|
_: 2
|
|
3655
3655
|
}, 1040, ["append-icon", "color", "elevation", "title"])
|
|
3656
3656
|
]),
|
|
3657
3657
|
_: 1
|
|
3658
|
-
})) :
|
|
3659
|
-
|
|
3658
|
+
})) : x("", !0),
|
|
3659
|
+
r.value.metadata.closable ? (d(), v(G, {
|
|
3660
3660
|
key: 1,
|
|
3661
3661
|
disabled: b.demo,
|
|
3662
3662
|
class: "ms-6 me-2",
|
|
@@ -3664,117 +3664,117 @@ const Oe = K("settings", () => {
|
|
|
3664
3664
|
icon: "$clear",
|
|
3665
3665
|
size: "small",
|
|
3666
3666
|
variant: "plain",
|
|
3667
|
-
onClick:
|
|
3668
|
-
}, null, 8, ["disabled"])) :
|
|
3667
|
+
onClick: Me(p, ["prevent", "stop"])
|
|
3668
|
+
}, null, 8, ["disabled"])) : x("", !0)
|
|
3669
3669
|
]),
|
|
3670
3670
|
default: n(() => [
|
|
3671
|
-
|
|
3671
|
+
r.value.metadata.text ? (d(), v(st, {
|
|
3672
3672
|
key: 0,
|
|
3673
3673
|
class: "text-subtitle-2 text-md-subtitle-1 font-weight-medium"
|
|
3674
3674
|
}, {
|
|
3675
3675
|
default: n(() => [
|
|
3676
|
-
U(L(
|
|
3676
|
+
U(L(r.value.metadata.text), 1)
|
|
3677
3677
|
]),
|
|
3678
3678
|
_: 1
|
|
3679
|
-
})) :
|
|
3680
|
-
|
|
3679
|
+
})) : x("", !0),
|
|
3680
|
+
r.value.metadata.subtext ? (d(), v(io, { key: 1 }, {
|
|
3681
3681
|
default: n(() => [
|
|
3682
|
-
U(L(
|
|
3682
|
+
U(L(r.value.metadata.subtext), 1)
|
|
3683
3683
|
]),
|
|
3684
3684
|
_: 1
|
|
3685
|
-
})) :
|
|
3685
|
+
})) : x("", !0)
|
|
3686
3686
|
]),
|
|
3687
3687
|
_: 1
|
|
3688
3688
|
}, 16)
|
|
3689
3689
|
]),
|
|
3690
3690
|
_: 1
|
|
3691
|
-
}, 8, ["color", "height", "image", "model-value"])) :
|
|
3691
|
+
}, 8, ["color", "height", "image", "model-value"])) : x("", !0);
|
|
3692
3692
|
};
|
|
3693
3693
|
}
|
|
3694
3694
|
}), da = K("bins", () => {
|
|
3695
|
-
const c = z(), e =
|
|
3695
|
+
const c = z(), e = $e(), a = F([]), s = F(), l = B(!1), i = B(-1), r = C(() => !c.user || !s.value ? !1 : c.user.id === s.value.owner.id), u = C(() => a.value.filter((h) => h.favorite)), f = C(() => a.value.filter((h) => h.pinned));
|
|
3696
3696
|
N(s, () => {
|
|
3697
|
-
window.clearTimeout(
|
|
3698
|
-
!s.value || !
|
|
3697
|
+
window.clearTimeout(i.value), i.value = window.setTimeout(() => {
|
|
3698
|
+
!s.value || !r.value || b(s.value, s.value.id);
|
|
3699
3699
|
}, 100);
|
|
3700
3700
|
}, { deep: !0 });
|
|
3701
|
-
async function
|
|
3701
|
+
async function p() {
|
|
3702
3702
|
try {
|
|
3703
|
-
|
|
3704
|
-
const
|
|
3705
|
-
|
|
3703
|
+
l.value = !0;
|
|
3704
|
+
const h = await e.get("/one/bins");
|
|
3705
|
+
a.value = h.bins;
|
|
3706
3706
|
} catch {
|
|
3707
3707
|
} finally {
|
|
3708
|
-
|
|
3708
|
+
l.value = !1;
|
|
3709
3709
|
}
|
|
3710
|
-
return
|
|
3710
|
+
return a.value;
|
|
3711
3711
|
}
|
|
3712
|
-
async function h
|
|
3712
|
+
async function _(h) {
|
|
3713
3713
|
try {
|
|
3714
|
-
|
|
3714
|
+
l.value = !0, await e.delete(`/one/bins/${h}`), a.value = a.value.filter((w) => w.id !== h);
|
|
3715
3715
|
} catch {
|
|
3716
3716
|
} finally {
|
|
3717
|
-
|
|
3717
|
+
l.value = !1;
|
|
3718
3718
|
}
|
|
3719
3719
|
return !0;
|
|
3720
3720
|
}
|
|
3721
|
-
async function
|
|
3721
|
+
async function k(h) {
|
|
3722
3722
|
try {
|
|
3723
|
-
|
|
3724
|
-
const
|
|
3725
|
-
return
|
|
3723
|
+
l.value = !0;
|
|
3724
|
+
const w = await e.post("/one/bins", { bin: h });
|
|
3725
|
+
return a.value.push(w.bin), s.value = w.bin, w;
|
|
3726
3726
|
} catch {
|
|
3727
3727
|
} finally {
|
|
3728
|
-
|
|
3728
|
+
l.value = !1;
|
|
3729
3729
|
}
|
|
3730
|
-
return { bin:
|
|
3730
|
+
return { bin: h };
|
|
3731
3731
|
}
|
|
3732
|
-
async function b(
|
|
3732
|
+
async function b(h, w) {
|
|
3733
3733
|
try {
|
|
3734
|
-
|
|
3735
|
-
const O = await e.post(`/one/bins/${
|
|
3736
|
-
|
|
3734
|
+
l.value = !0;
|
|
3735
|
+
const O = await e.post(`/one/bins/${w}`, { bin: h }), R = a.value.findIndex((H) => H.id === w);
|
|
3736
|
+
a.value.splice(R, 1, O.bin);
|
|
3737
3737
|
} catch {
|
|
3738
3738
|
} finally {
|
|
3739
|
-
|
|
3739
|
+
l.value = !1;
|
|
3740
3740
|
}
|
|
3741
|
-
return { bin:
|
|
3741
|
+
return { bin: h };
|
|
3742
3742
|
}
|
|
3743
|
-
async function
|
|
3743
|
+
async function y(h, w) {
|
|
3744
3744
|
try {
|
|
3745
|
-
|
|
3746
|
-
const O =
|
|
3745
|
+
l.value = !0;
|
|
3746
|
+
const O = w ? await b(h, w) : await k(h);
|
|
3747
3747
|
s.value = O.bin;
|
|
3748
3748
|
} catch {
|
|
3749
3749
|
} finally {
|
|
3750
|
-
|
|
3750
|
+
l.value = !1;
|
|
3751
3751
|
}
|
|
3752
|
-
return { bin:
|
|
3752
|
+
return { bin: h };
|
|
3753
3753
|
}
|
|
3754
|
-
async function m(
|
|
3754
|
+
async function m(h) {
|
|
3755
3755
|
try {
|
|
3756
|
-
|
|
3757
|
-
const
|
|
3758
|
-
s.value =
|
|
3756
|
+
l.value = !0;
|
|
3757
|
+
const w = await e.get(`/one/bins/${h}`);
|
|
3758
|
+
s.value = w.bin;
|
|
3759
3759
|
} catch {
|
|
3760
3760
|
} finally {
|
|
3761
|
-
|
|
3761
|
+
l.value = !1;
|
|
3762
3762
|
}
|
|
3763
3763
|
return { bin: s.value };
|
|
3764
3764
|
}
|
|
3765
3765
|
return {
|
|
3766
|
-
isLoading:
|
|
3767
|
-
isOwner:
|
|
3766
|
+
isLoading: l,
|
|
3767
|
+
isOwner: r,
|
|
3768
3768
|
pinned: f,
|
|
3769
3769
|
favorites: u,
|
|
3770
|
-
all:
|
|
3771
|
-
create:
|
|
3772
|
-
delete:
|
|
3770
|
+
all: a,
|
|
3771
|
+
create: k,
|
|
3772
|
+
delete: _,
|
|
3773
3773
|
current: s,
|
|
3774
3774
|
find: m,
|
|
3775
|
-
get:
|
|
3775
|
+
get: p,
|
|
3776
3776
|
update: b,
|
|
3777
|
-
updateOrCreate:
|
|
3777
|
+
updateOrCreate: y
|
|
3778
3778
|
};
|
|
3779
3779
|
});
|
|
3780
3780
|
function pa() {
|
|
@@ -3784,8 +3784,8 @@ function pa() {
|
|
|
3784
3784
|
return { install: c };
|
|
3785
3785
|
}
|
|
3786
3786
|
function ma(c, e) {
|
|
3787
|
-
return function(
|
|
3788
|
-
const s =
|
|
3787
|
+
return function(a) {
|
|
3788
|
+
const s = a.store;
|
|
3789
3789
|
s.url = e, s.$id === "site" && (s.id = c);
|
|
3790
3790
|
};
|
|
3791
3791
|
}
|
|
@@ -3795,8 +3795,8 @@ export {
|
|
|
3795
3795
|
z as useAuthStore,
|
|
3796
3796
|
ze as useBannersStore,
|
|
3797
3797
|
da as useBinsStore,
|
|
3798
|
-
|
|
3798
|
+
$e as useHttpStore,
|
|
3799
3799
|
T as useOneStore,
|
|
3800
|
-
|
|
3800
|
+
Ne as useSettingsStore,
|
|
3801
3801
|
j as useUserStore
|
|
3802
3802
|
};
|