@vuetify/one 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -1
- package/dist/index.js +900 -983
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,42 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as b, openBlock as d, createBlock as _, normalizeStyle as Ue, createSlots as G, withCtx as n, createVNode as s, renderSlot as E, reactive as Je, toRefs as Qe, ref as Z, shallowRef as U, computed as A, watch as W, unref as t, createElementVNode as v, toDisplayString as C, withModifiers as Fe, createCommentVNode as S, mergeModels as Xe, useModel as pe, createElementBlock as w, Fragment as F, createTextVNode as j, renderList as te, mergeProps as ce, onBeforeMount as Ze, onMounted as je, resolveComponent as Ne, withDirectives as Se, vShow as Oe, normalizeClass as Ke, pushScopeId as et, popScopeId as tt } from "vue";
|
|
2
|
+
import { VBtn as Q } from "vuetify/lib/components/VBtn/index.mjs";
|
|
3
|
+
import { VProgressCircular as ot } from "vuetify/lib/components/VProgressCircular/index.mjs";
|
|
4
|
+
import { defineStore as K } from "pinia";
|
|
3
5
|
import { merge as be } from "lodash-es";
|
|
4
|
-
import { mdiDiscord as
|
|
5
|
-
import { VListItem as
|
|
6
|
-
import { VAvatar as
|
|
7
|
-
import { VCard as
|
|
8
|
-
import { VSheet as
|
|
9
|
-
import { VSwitch as
|
|
10
|
-
import { VFadeTransition as Ce, VExpandTransition as
|
|
11
|
-
import {
|
|
12
|
-
import { VDialog as Me } from "vuetify/lib/components/VDialog/index.mjs";
|
|
6
|
+
import { mdiDiscord as Be, mdiGithub as ze, mdiSync as st, mdiSyncOff as nt, mdiLogoutVariant as it, mdiCheck as ee, mdiHome as at, mdiTextBox as rt, mdiSpaceInvaders as Te, mdiWhiteBalanceSunny as lt, mdiWeatherNight as ct, mdiDesktopTowerMonitor as ut, mdiImageFilterHdr as dt, mdiRocketLaunchOutline as pt, mdiContrastCircle as mt, mdiCog as ft, mdiCogOutline as vt, mdiFileDocument as _t, mdiCreditCardSettingsOutline as ht, mdiRocketOutline as gt, mdiCheckCircleOutline as se, mdiCreditCard as bt, mdiReload as yt, mdiPlaylistCheck as Vt, mdiCreditCardOutline as kt, mdiHandHeart as $t, mdiInformationOutline as De, mdiMedal as ye, mdiChartLine as xt, mdiHandHeartOutline as wt, mdiEmailOpenOutline as St, mdiEmailVariant as Ct, mdiOpenInNew as Lt, mdiBell as It, mdiInboxOutline as At, mdiInboxFullOutline as Dt, mdiBellOutline as Ut, mdiViewDashboardOutline as Ft, mdiTrashCan as jt, mdiBug as Nt, mdiArrowULeftBottom as Ot, mdiLogin as Bt, mdiShieldStarOutline as zt, mdiReddit as Tt } from "@mdi/js";
|
|
7
|
+
import { VListItem as me, VList as oe, VListItemTitle as Rt } from "vuetify/lib/components/VList/index.mjs";
|
|
8
|
+
import { VAvatar as ue } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
9
|
+
import { VCard as T, VCardText as J } from "vuetify/lib/components/VCard/index.mjs";
|
|
10
|
+
import { VSheet as Ht } from "vuetify/lib/components/VSheet/index.mjs";
|
|
11
|
+
import { VSwitch as Re } from "vuetify/lib/components/VSwitch/index.mjs";
|
|
12
|
+
import { VFadeTransition as Ce, VExpandTransition as ie, VExpandXTransition as Mt } from "vuetify/lib/components/transitions/index.mjs";
|
|
13
|
+
import { VDialog as Pt } from "vuetify/lib/components/VDialog/index.mjs";
|
|
13
14
|
import { VDivider as R } from "vuetify/lib/components/VDivider/index.mjs";
|
|
14
|
-
import { VIcon as
|
|
15
|
+
import { VIcon as N } from "vuetify/lib/components/VIcon/index.mjs";
|
|
15
16
|
import { VLabel as $e } from "vuetify/lib/components/VLabel/index.mjs";
|
|
16
17
|
import { VChip as q } from "vuetify/lib/components/VChip/index.mjs";
|
|
17
|
-
import { VChipGroup as
|
|
18
|
-
import { VSelect as
|
|
19
|
-
import { useTheme as
|
|
20
|
-
import { VRow as
|
|
21
|
-
import { VHover as
|
|
22
|
-
import { VImg as
|
|
23
|
-
import { VItemGroup as
|
|
24
|
-
import { VLayout as
|
|
25
|
-
import { VMain as
|
|
26
|
-
import {
|
|
27
|
-
import { VDataTableVirtual as Kt } from "vuetify/lib/components/VDataTable/index.mjs";
|
|
18
|
+
import { VChipGroup as Et } from "vuetify/lib/components/VChipGroup/index.mjs";
|
|
19
|
+
import { VSelect as Wt } from "vuetify/lib/components/VSelect/index.mjs";
|
|
20
|
+
import { useTheme as Gt, useDate as fe, useDisplay as He } from "vuetify";
|
|
21
|
+
import { VRow as ve, VCol as ne } from "vuetify/lib/components/VGrid/index.mjs";
|
|
22
|
+
import { VHover as Me } from "vuetify/lib/components/VHover/index.mjs";
|
|
23
|
+
import { VImg as Le } from "vuetify/lib/components/VImg/index.mjs";
|
|
24
|
+
import { VItemGroup as Pe, VItem as xe } from "vuetify/lib/components/VItemGroup/index.mjs";
|
|
25
|
+
import { VLayout as Ie } from "vuetify/lib/components/VLayout/index.mjs";
|
|
26
|
+
import { VMain as Ae } from "vuetify/lib/components/VMain/index.mjs";
|
|
27
|
+
import { VDataTableVirtual as qt } from "vuetify/lib/components/VDataTable/index.mjs";
|
|
28
28
|
import { VSkeletonLoader as we } from "vuetify/lib/components/VSkeletonLoader/index.mjs";
|
|
29
|
-
import { VWindow as
|
|
30
|
-
import { VTimeline as
|
|
31
|
-
import { VResponsive as
|
|
32
|
-
import { VTooltip as
|
|
33
|
-
import { VNavigationDrawer as
|
|
34
|
-
import { VBadge as
|
|
35
|
-
import { Ripple as
|
|
36
|
-
import { VColorPicker as
|
|
37
|
-
import { VMenu as
|
|
38
|
-
import { VFooter as
|
|
39
|
-
const
|
|
29
|
+
import { VWindow as Ee, VWindowItem as de } from "vuetify/lib/components/VWindow/index.mjs";
|
|
30
|
+
import { VTimeline as Yt, VTimelineItem as Ve } from "vuetify/lib/components/VTimeline/index.mjs";
|
|
31
|
+
import { VResponsive as Jt } from "vuetify/lib/components/VResponsive/index.mjs";
|
|
32
|
+
import { VTooltip as Qt } from "vuetify/lib/components/VTooltip/index.mjs";
|
|
33
|
+
import { VNavigationDrawer as Xt } from "vuetify/lib/components/VNavigationDrawer/index.mjs";
|
|
34
|
+
import { VBadge as Zt } from "vuetify/lib/components/VBadge/index.mjs";
|
|
35
|
+
import { Ripple as Kt } from "vuetify/lib/directives/index.mjs";
|
|
36
|
+
import { VColorPicker as eo } from "vuetify/lib/components/VColorPicker/index.mjs";
|
|
37
|
+
import { VMenu as to } from "vuetify/lib/components/VMenu/index.mjs";
|
|
38
|
+
import { VFooter as oo } from "vuetify/lib/components/VFooter/index.mjs";
|
|
39
|
+
const ae = /* @__PURE__ */ b({
|
|
40
|
+
__name: "VoBtn",
|
|
41
|
+
props: {
|
|
42
|
+
readonly: { type: Boolean }
|
|
43
|
+
},
|
|
44
|
+
setup(u) {
|
|
45
|
+
const o = u;
|
|
46
|
+
return (i, e) => (d(), _(Q, {
|
|
47
|
+
style: Ue({
|
|
48
|
+
pointerEvents: o.readonly ? "none" : void 0
|
|
49
|
+
}),
|
|
50
|
+
tabindex: o.readonly ? -1 : void 0,
|
|
51
|
+
class: "text-none font-weight-regular",
|
|
52
|
+
color: "primary",
|
|
53
|
+
size: "small",
|
|
54
|
+
variant: "flat"
|
|
55
|
+
}, G({
|
|
56
|
+
loader: n(() => [
|
|
57
|
+
s(ot, {
|
|
58
|
+
indeterminate: "disable-shrink",
|
|
59
|
+
size: "16",
|
|
60
|
+
width: "2"
|
|
61
|
+
})
|
|
62
|
+
]),
|
|
63
|
+
_: 2
|
|
64
|
+
}, [
|
|
65
|
+
i.$slots.default ? {
|
|
66
|
+
name: "default",
|
|
67
|
+
fn: n(() => [
|
|
68
|
+
E(i.$slots, "default")
|
|
69
|
+
]),
|
|
70
|
+
key: "0"
|
|
71
|
+
} : void 0
|
|
72
|
+
]), 1032, ["style", "tabindex"]));
|
|
73
|
+
}
|
|
74
|
+
}), _e = K("http", {
|
|
40
75
|
state: () => ({
|
|
41
76
|
url: ""
|
|
42
77
|
}),
|
|
@@ -106,199 +141,199 @@ const _e = X("http", {
|
|
|
106
141
|
jobs: null
|
|
107
142
|
}
|
|
108
143
|
}
|
|
109
|
-
},
|
|
110
|
-
const u =
|
|
144
|
+
}, H = K("user", () => {
|
|
145
|
+
const u = Je(be({}, le));
|
|
111
146
|
function o() {
|
|
112
147
|
if (!ke)
|
|
113
148
|
return;
|
|
114
149
|
const r = localStorage.getItem("vuetify@user"), a = r ? JSON.parse(r) : {};
|
|
115
|
-
let
|
|
116
|
-
a.v || (a.pwaRefresh = !0, typeof a.api == "boolean" && (a.api = a.api ? "inline" : "link-only"), typeof a.rtl == "boolean" && (a.direction = a.rtl ? "rtl" : "ltr", delete a.rtl), typeof a.theme == "object" && (a.mixedTheme = a.theme.mixed, a.theme = a.theme.system ? "system" : a.theme.dark ? "dark" : "light"), Array.isArray(a.notifications) && (a.notifications = { read: a.notifications }), typeof a.last == "object" && (a.notifications.last = a.last, delete a.last)), a.v === 1 && (Array.isArray(a.composition) && (a.composition = "composition"), Array.isArray(a.notifications.last.banner) || (a.notifications = a.notifications || {}, a.notifications.last = a.notifications.last || {}, a.notifications.last.banner = [])), a.v === 2 && (a.syncSettings = !0, a.disableAds = !1, a.v = 3), a.v === 3 && (a.quickbar = !1), a.v === 4 && (a.suits = le.suits, a.notifications.banners = le.notifications.banners,
|
|
150
|
+
let l = a.v === u.v;
|
|
151
|
+
a.v || (a.pwaRefresh = !0, typeof a.api == "boolean" && (a.api = a.api ? "inline" : "link-only"), typeof a.rtl == "boolean" && (a.direction = a.rtl ? "rtl" : "ltr", delete a.rtl), typeof a.theme == "object" && (a.mixedTheme = a.theme.mixed, a.theme = a.theme.system ? "system" : a.theme.dark ? "dark" : "light"), Array.isArray(a.notifications) && (a.notifications = { read: a.notifications }), typeof a.last == "object" && (a.notifications.last = a.last, delete a.last)), a.v === 1 && (Array.isArray(a.composition) && (a.composition = "composition"), Array.isArray(a.notifications.last.banner) || (a.notifications = a.notifications || {}, a.notifications.last = a.notifications.last || {}, a.notifications.last.banner = [])), a.v === 2 && (a.syncSettings = !0, a.disableAds = !1, a.v = 3), a.v === 3 && (a.quickbar = !1), a.v === 4 && (a.suits = le.suits, a.notifications.banners = le.notifications.banners, l = !0), a.v = u.v, Object.assign(u, be(u, a)), l && i();
|
|
117
152
|
}
|
|
118
153
|
function i() {
|
|
119
154
|
ke && localStorage.setItem("vuetify@user", JSON.stringify(u, null, 2));
|
|
120
155
|
}
|
|
121
|
-
function
|
|
156
|
+
function e() {
|
|
122
157
|
ke && (Object.assign(u, be({}, le)), i());
|
|
123
158
|
}
|
|
124
159
|
return o(), {
|
|
125
|
-
...
|
|
160
|
+
...Qe(u),
|
|
126
161
|
load: o,
|
|
127
162
|
save: i,
|
|
128
|
-
reset:
|
|
163
|
+
reset: e
|
|
129
164
|
};
|
|
130
|
-
}),
|
|
131
|
-
const u =
|
|
132
|
-
var m,
|
|
133
|
-
return !o.url || ((m = u.value) == null ? void 0 : m.isAdmin) || !!((
|
|
165
|
+
}), O = K("auth", () => {
|
|
166
|
+
const u = Z(null), o = _e(), i = H(), e = U(!1), r = A(() => {
|
|
167
|
+
var m, y;
|
|
168
|
+
return !o.url || ((m = u.value) == null ? void 0 : m.isAdmin) || !!((y = u.value) != null && y.sponsorships.some((D) => D.isActive));
|
|
134
169
|
});
|
|
135
170
|
let a = !1;
|
|
136
|
-
|
|
171
|
+
W(u, (m) => {
|
|
137
172
|
if (!(m != null && m.settings))
|
|
138
173
|
return;
|
|
139
|
-
const
|
|
140
|
-
JSON.stringify(m.settings, null, 2) !==
|
|
174
|
+
const y = localStorage.getItem("vuetify@user") || "{}";
|
|
175
|
+
JSON.stringify(m.settings, null, 2) !== y && (a = !0, Object.assign(i, m.settings));
|
|
141
176
|
}), i.$subscribe(() => {
|
|
142
|
-
a ||
|
|
177
|
+
a || l(), a = !1;
|
|
143
178
|
});
|
|
144
|
-
async function
|
|
179
|
+
async function l() {
|
|
145
180
|
try {
|
|
146
181
|
await o.post("/user/settings", { settings: i.$state });
|
|
147
182
|
} catch (m) {
|
|
148
183
|
console.error(m);
|
|
149
184
|
}
|
|
150
185
|
}
|
|
151
|
-
async function
|
|
152
|
-
if (
|
|
153
|
-
return
|
|
154
|
-
|
|
186
|
+
async function c(m = !1) {
|
|
187
|
+
if (c.promise)
|
|
188
|
+
return c.promise;
|
|
189
|
+
e.value = !0, c.promise = fetch(`${o.url}/auth/verify`, {
|
|
155
190
|
credentials: "include",
|
|
156
191
|
headers: m ? {
|
|
157
192
|
"Cache-Control": "no-cache"
|
|
158
193
|
} : void 0
|
|
159
194
|
}).then(
|
|
160
|
-
async (
|
|
161
|
-
|
|
195
|
+
async (y) => {
|
|
196
|
+
y.ok ? u.value = (await y.json()).user : y.status === 401 ? u.value = null : console.error(y.statusText);
|
|
162
197
|
},
|
|
163
198
|
() => {
|
|
164
199
|
}
|
|
165
200
|
).finally(() => {
|
|
166
|
-
|
|
201
|
+
e.value = !1, c.promise = null;
|
|
167
202
|
});
|
|
168
203
|
}
|
|
169
|
-
|
|
170
|
-
async function
|
|
171
|
-
|
|
172
|
-
const
|
|
204
|
+
c.promise = null;
|
|
205
|
+
async function h(m = "github") {
|
|
206
|
+
e.value = !0;
|
|
207
|
+
const y = `${o.url}/auth/${m}/redirect`, D = 400, g = 600, $ = window.screenX + (window.innerWidth - D) / 2, I = window.screenY + (window.innerHeight - g) / 2, V = window.open(
|
|
173
208
|
"",
|
|
174
209
|
"vuetify:authorize:popup",
|
|
175
|
-
`popup,left=${
|
|
210
|
+
`popup,left=${$},top=${I},width=${D},height=${g},resizable`
|
|
176
211
|
);
|
|
177
|
-
if (
|
|
212
|
+
if (!V) {
|
|
178
213
|
console.error("Failed to open popup");
|
|
179
214
|
return;
|
|
180
215
|
}
|
|
181
|
-
|
|
182
|
-
let
|
|
183
|
-
function
|
|
184
|
-
var
|
|
185
|
-
|
|
216
|
+
V.location.href = y;
|
|
217
|
+
let B = -1, P = -1;
|
|
218
|
+
function M(f) {
|
|
219
|
+
var x;
|
|
220
|
+
f.origin === o.url && ((x = f.data) == null ? void 0 : x.type) === "auth-response" && (f.data.status === "success" ? (u.value || localStorage.setItem("vuetify@lastLoginProvider", m), u.value = f.data.body.user) : console.error(f.data.message), z());
|
|
186
221
|
}
|
|
187
|
-
function
|
|
188
|
-
window.removeEventListener("message",
|
|
222
|
+
function z() {
|
|
223
|
+
window.removeEventListener("message", M), window.clearInterval(B), window.clearTimeout(P), V == null || V.close(), e.value = !1;
|
|
189
224
|
}
|
|
190
|
-
window.addEventListener("message",
|
|
191
|
-
|
|
192
|
-
}, 1e3),
|
|
193
|
-
|
|
225
|
+
window.addEventListener("message", M), B = window.setInterval(() => {
|
|
226
|
+
!V || V.closed ? (console.error("Auth popup closed"), z()) : V.postMessage({ type: "auth-request" }, "*");
|
|
227
|
+
}, 1e3), P = window.setTimeout(() => {
|
|
228
|
+
z(), console.error("Auth timed out");
|
|
194
229
|
}, 120 * 1e3);
|
|
195
230
|
}
|
|
196
231
|
async function p(m) {
|
|
197
|
-
|
|
198
|
-
const
|
|
232
|
+
e.value = !0;
|
|
233
|
+
const y = m ? `/auth/${m}/logout` : "/auth/logout";
|
|
199
234
|
try {
|
|
200
|
-
await o.post(
|
|
201
|
-
} catch (
|
|
202
|
-
console.error(
|
|
235
|
+
await o.post(y), await c(!0), u.value = null;
|
|
236
|
+
} catch (D) {
|
|
237
|
+
console.error(D);
|
|
203
238
|
} finally {
|
|
204
|
-
|
|
239
|
+
e.value = !1;
|
|
205
240
|
}
|
|
206
241
|
}
|
|
207
|
-
function
|
|
208
|
-
var
|
|
209
|
-
return (
|
|
242
|
+
function k(m) {
|
|
243
|
+
var y;
|
|
244
|
+
return (y = u.value) == null ? void 0 : y.identities.find((D) => D.provider === m);
|
|
210
245
|
}
|
|
211
|
-
function
|
|
246
|
+
function L() {
|
|
212
247
|
return localStorage.getItem("vuetify@lastLoginProvider");
|
|
213
248
|
}
|
|
214
|
-
return
|
|
249
|
+
return L() && c(), {
|
|
215
250
|
user: u,
|
|
216
251
|
url: o.url,
|
|
217
|
-
isLoading:
|
|
218
|
-
findIdentity:
|
|
219
|
-
verify:
|
|
220
|
-
login:
|
|
252
|
+
isLoading: e,
|
|
253
|
+
findIdentity: k,
|
|
254
|
+
verify: c,
|
|
255
|
+
login: h,
|
|
221
256
|
logout: p,
|
|
222
257
|
isSubscriber: r,
|
|
223
|
-
lastLoginProvider:
|
|
224
|
-
sync:
|
|
258
|
+
lastLoginProvider: L,
|
|
259
|
+
sync: l
|
|
225
260
|
};
|
|
226
|
-
}),
|
|
261
|
+
}), so = { class: "text-body-2" }, no = /* @__PURE__ */ v("div", { class: "text-caption mt-n1" }, "Last Used", -1), io = /* @__PURE__ */ b({
|
|
227
262
|
__name: "VoAuthDiscord",
|
|
228
263
|
setup(u) {
|
|
229
|
-
const o =
|
|
230
|
-
return (r, a) => (d(),
|
|
231
|
-
"prepend-icon": `svg:${
|
|
264
|
+
const o = O(), i = A(() => o.user && o.findIdentity("discord")), e = A(() => o.user ? i.value ? "Connected to Discord" : "Connect Discord" : "Log in with Discord");
|
|
265
|
+
return (r, a) => (d(), _(me, {
|
|
266
|
+
"prepend-icon": `svg:${t(Be)}`,
|
|
232
267
|
"base-color": "#5865F2",
|
|
233
268
|
rounded: "pill",
|
|
234
269
|
variant: "flat",
|
|
235
270
|
slim: "",
|
|
236
|
-
onClick: a[0] || (a[0] = (
|
|
271
|
+
onClick: a[0] || (a[0] = (l) => t(o).login("discord"))
|
|
237
272
|
}, G({
|
|
238
273
|
title: n(() => [
|
|
239
|
-
v("span",
|
|
274
|
+
v("span", so, C(e.value), 1)
|
|
240
275
|
]),
|
|
241
276
|
_: 2
|
|
242
277
|
}, [
|
|
243
|
-
!
|
|
278
|
+
!t(o).user && t(o).lastLoginProvider() === "discord" ? {
|
|
244
279
|
name: "subtitle",
|
|
245
280
|
fn: n(() => [
|
|
246
|
-
|
|
281
|
+
no
|
|
247
282
|
]),
|
|
248
283
|
key: "0"
|
|
249
284
|
} : void 0
|
|
250
285
|
]), 1032, ["prepend-icon"]));
|
|
251
286
|
}
|
|
252
|
-
}),
|
|
287
|
+
}), ao = { class: "text-body-2" }, ro = /* @__PURE__ */ v("div", { class: "text-caption mt-n1" }, "Last Used", -1), lo = /* @__PURE__ */ b({
|
|
253
288
|
__name: "VoAuthGithub",
|
|
254
289
|
setup(u) {
|
|
255
|
-
const o =
|
|
256
|
-
return (r, a) => (d(),
|
|
257
|
-
"prepend-icon": `svg:${
|
|
290
|
+
const o = O(), i = A(() => o.user && o.findIdentity("github")), e = A(() => o.user ? i.value ? "Connected to GitHub" : "Connect GitHub" : "Log in with GitHub");
|
|
291
|
+
return (r, a) => (d(), _(me, {
|
|
292
|
+
"prepend-icon": `svg:${t(ze)}`,
|
|
258
293
|
"base-color": "#2a2a2a",
|
|
259
294
|
rounded: "pill",
|
|
260
295
|
variant: "flat",
|
|
261
296
|
slim: "",
|
|
262
|
-
onClick: a[0] || (a[0] = (
|
|
297
|
+
onClick: a[0] || (a[0] = (l) => t(o).login("github"))
|
|
263
298
|
}, G({
|
|
264
299
|
title: n(() => [
|
|
265
|
-
v("span",
|
|
300
|
+
v("span", ao, C(e.value), 1)
|
|
266
301
|
]),
|
|
267
302
|
_: 2
|
|
268
303
|
}, [
|
|
269
|
-
!
|
|
304
|
+
!t(o).user && t(o).lastLoginProvider() === "github" ? {
|
|
270
305
|
name: "subtitle",
|
|
271
306
|
fn: n(() => [
|
|
272
|
-
|
|
307
|
+
ro
|
|
273
308
|
]),
|
|
274
309
|
key: "0"
|
|
275
310
|
} : void 0
|
|
276
311
|
]), 1032, ["prepend-icon"]));
|
|
277
312
|
}
|
|
278
|
-
}),
|
|
313
|
+
}), co = { class: "pa-4 d-flex flex-column ga-4" }, uo = /* @__PURE__ */ b({
|
|
279
314
|
__name: "VoAuthListItem",
|
|
280
315
|
setup(u) {
|
|
281
|
-
const o =
|
|
282
|
-
|
|
283
|
-
|
|
316
|
+
const o = O(), i = H(), e = U(!o.user && !o.isLoading);
|
|
317
|
+
W(() => o.user, (a) => {
|
|
318
|
+
e.value = !a;
|
|
284
319
|
});
|
|
285
320
|
function r() {
|
|
286
|
-
o.user && (
|
|
321
|
+
o.user && (e.value = !e.value);
|
|
287
322
|
}
|
|
288
|
-
return (a,
|
|
289
|
-
const
|
|
290
|
-
return d(),
|
|
291
|
-
variant:
|
|
323
|
+
return (a, l) => {
|
|
324
|
+
const c = lo, h = io;
|
|
325
|
+
return d(), _(T, {
|
|
326
|
+
variant: e.value ? "tonal" : "text",
|
|
292
327
|
class: "ma-2",
|
|
293
328
|
rounded: "lg"
|
|
294
329
|
}, {
|
|
295
330
|
default: n(() => [
|
|
296
|
-
s(
|
|
331
|
+
s(oe, { class: "py-0" }, {
|
|
297
332
|
default: n(() => [
|
|
298
|
-
s(
|
|
299
|
-
link: !!
|
|
300
|
-
"prepend-icon": `svg:${
|
|
301
|
-
title:
|
|
333
|
+
s(me, {
|
|
334
|
+
link: !!t(o).user,
|
|
335
|
+
"prepend-icon": `svg:${t(o).user && t(i).syncSettings ? t(st) : t(nt)}`,
|
|
336
|
+
title: t(o).user && t(i).syncSettings ? "Sync is on" : "Sync is paused",
|
|
302
337
|
class: "mb-0",
|
|
303
338
|
rounded: "b-0",
|
|
304
339
|
nav: "",
|
|
@@ -308,49 +343,49 @@ const _e = X("http", {
|
|
|
308
343
|
append: n(() => [
|
|
309
344
|
s(Ce, null, {
|
|
310
345
|
default: n(() => [
|
|
311
|
-
|
|
346
|
+
t(o).user && (e.value || !t(i).syncSettings) ? (d(), _(Re, {
|
|
312
347
|
key: 0,
|
|
313
|
-
modelValue:
|
|
314
|
-
"onUpdate:modelValue":
|
|
315
|
-
color:
|
|
348
|
+
modelValue: t(i).syncSettings,
|
|
349
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => t(i).syncSettings = p),
|
|
350
|
+
color: t(i).syncSettings ? "success" : void 0,
|
|
316
351
|
density: "compact",
|
|
317
352
|
"hide-details": "",
|
|
318
353
|
inset: "",
|
|
319
|
-
onClick:
|
|
354
|
+
onClick: l[1] || (l[1] = Fe(() => {
|
|
320
355
|
}, ["stop"]))
|
|
321
356
|
}, {
|
|
322
357
|
thumb: n(() => [
|
|
323
|
-
s(
|
|
324
|
-
color:
|
|
358
|
+
s(ue, {
|
|
359
|
+
color: t(i).syncSettings ? "success" : void 0
|
|
325
360
|
}, null, 8, ["color"])
|
|
326
361
|
]),
|
|
327
362
|
_: 1
|
|
328
|
-
}, 8, ["modelValue", "color"])) :
|
|
363
|
+
}, 8, ["modelValue", "color"])) : S("", !0)
|
|
329
364
|
]),
|
|
330
365
|
_: 1
|
|
331
366
|
})
|
|
332
367
|
]),
|
|
333
368
|
_: 1
|
|
334
369
|
}, 8, ["link", "prepend-icon", "title"]),
|
|
335
|
-
s(
|
|
370
|
+
s(ie, null, {
|
|
336
371
|
default: n(() => [
|
|
337
|
-
!
|
|
372
|
+
!t(o).user && !t(o).isLoading || e.value ? (d(), _(Ht, {
|
|
338
373
|
key: 0,
|
|
339
374
|
border: "t",
|
|
340
375
|
color: "transparent"
|
|
341
376
|
}, {
|
|
342
377
|
default: n(() => [
|
|
343
|
-
v("div",
|
|
344
|
-
s(
|
|
345
|
-
onClick:
|
|
378
|
+
v("div", co, [
|
|
379
|
+
s(c, {
|
|
380
|
+
onClick: l[2] || (l[2] = (p) => e.value = !1)
|
|
346
381
|
}),
|
|
347
|
-
s(
|
|
348
|
-
onClick:
|
|
382
|
+
s(h, {
|
|
383
|
+
onClick: l[3] || (l[3] = (p) => e.value = !1)
|
|
349
384
|
})
|
|
350
385
|
])
|
|
351
386
|
]),
|
|
352
387
|
_: 1
|
|
353
|
-
})) :
|
|
388
|
+
})) : S("", !0)
|
|
354
389
|
]),
|
|
355
390
|
_: 1
|
|
356
391
|
})
|
|
@@ -362,61 +397,61 @@ const _e = X("http", {
|
|
|
362
397
|
}, 8, ["variant"]);
|
|
363
398
|
};
|
|
364
399
|
}
|
|
365
|
-
}), Y = /* @__PURE__ */
|
|
400
|
+
}), Y = /* @__PURE__ */ b({
|
|
366
401
|
__name: "VoListItem",
|
|
367
402
|
setup(u) {
|
|
368
|
-
return (o, i) => (d(),
|
|
403
|
+
return (o, i) => (d(), _(me, { slim: "" }, G({
|
|
369
404
|
default: n(() => [
|
|
370
|
-
|
|
405
|
+
E(o.$slots, "default")
|
|
371
406
|
]),
|
|
372
407
|
_: 2
|
|
373
408
|
}, [
|
|
374
409
|
o.$slots.prepend ? {
|
|
375
410
|
name: "prepend",
|
|
376
411
|
fn: n(() => [
|
|
377
|
-
|
|
412
|
+
E(o.$slots, "prepend")
|
|
378
413
|
]),
|
|
379
414
|
key: "0"
|
|
380
415
|
} : void 0,
|
|
381
416
|
o.$slots.title ? {
|
|
382
417
|
name: "title",
|
|
383
418
|
fn: n(() => [
|
|
384
|
-
|
|
419
|
+
E(o.$slots, "title")
|
|
385
420
|
]),
|
|
386
421
|
key: "1"
|
|
387
422
|
} : void 0,
|
|
388
423
|
o.$slots.append ? {
|
|
389
424
|
name: "append",
|
|
390
425
|
fn: n(() => [
|
|
391
|
-
|
|
426
|
+
E(o.$slots, "append")
|
|
392
427
|
]),
|
|
393
428
|
key: "2"
|
|
394
429
|
} : void 0
|
|
395
430
|
]), 1024));
|
|
396
431
|
}
|
|
397
|
-
}),
|
|
432
|
+
}), po = /* @__PURE__ */ b({
|
|
398
433
|
__name: "VoAuthLogoutListItem",
|
|
399
434
|
setup(u) {
|
|
400
|
-
const o =
|
|
401
|
-
async function
|
|
435
|
+
const o = O(), i = U(!1);
|
|
436
|
+
async function e() {
|
|
402
437
|
i.value = !0, await o.logout(), i.value = !1;
|
|
403
438
|
}
|
|
404
439
|
return (r, a) => {
|
|
405
|
-
const
|
|
406
|
-
return d(),
|
|
440
|
+
const l = Y;
|
|
441
|
+
return d(), _(l, {
|
|
407
442
|
disabled: i.value,
|
|
408
443
|
loading: i.value,
|
|
409
|
-
"prepend-icon": `svg:${
|
|
444
|
+
"prepend-icon": `svg:${t(it)}`,
|
|
410
445
|
class: "mb-0",
|
|
411
446
|
title: "Logout",
|
|
412
447
|
link: "",
|
|
413
|
-
onClick:
|
|
448
|
+
onClick: e
|
|
414
449
|
}, null, 8, ["disabled", "loading", "prepend-icon"]);
|
|
415
450
|
};
|
|
416
451
|
}
|
|
417
|
-
}), he = /* @__PURE__ */
|
|
452
|
+
}), he = /* @__PURE__ */ b({
|
|
418
453
|
__name: "VoDialog",
|
|
419
|
-
props: /* @__PURE__ */
|
|
454
|
+
props: /* @__PURE__ */ Xe({
|
|
420
455
|
prependIcon: {},
|
|
421
456
|
title: {}
|
|
422
457
|
}, {
|
|
@@ -425,49 +460,49 @@ const _e = X("http", {
|
|
|
425
460
|
}),
|
|
426
461
|
emits: ["update:modelValue"],
|
|
427
462
|
setup(u) {
|
|
428
|
-
const o =
|
|
429
|
-
return (i,
|
|
463
|
+
const o = pe(u, "modelValue");
|
|
464
|
+
return (i, e) => (d(), _(Pt, {
|
|
430
465
|
modelValue: o.value,
|
|
431
|
-
"onUpdate:modelValue":
|
|
466
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => o.value = r),
|
|
432
467
|
activator: "parent",
|
|
433
468
|
height: "100%",
|
|
434
469
|
"max-height": "800",
|
|
435
470
|
"max-width": "800"
|
|
436
471
|
}, {
|
|
437
472
|
default: n(({ isActive: r }) => [
|
|
438
|
-
s(
|
|
473
|
+
s(T, {
|
|
439
474
|
"prepend-icon": i.prependIcon,
|
|
440
475
|
title: i.title,
|
|
441
476
|
class: "overflow-hidden",
|
|
442
477
|
height: "inherit"
|
|
443
478
|
}, G({
|
|
444
479
|
append: n(() => [
|
|
445
|
-
|
|
446
|
-
s(
|
|
480
|
+
E(i.$slots, "append"),
|
|
481
|
+
s(Q, {
|
|
447
482
|
density: "comfortable",
|
|
448
483
|
icon: "$close",
|
|
449
484
|
size: "small",
|
|
450
485
|
variant: "text",
|
|
451
|
-
onClick:
|
|
486
|
+
onClick: e[0] || (e[0] = (a) => o.value = !o.value)
|
|
452
487
|
})
|
|
453
488
|
]),
|
|
454
489
|
default: n(() => [
|
|
455
490
|
s(R, { class: "mt-4" }),
|
|
456
|
-
|
|
491
|
+
E(i.$slots, "default")
|
|
457
492
|
]),
|
|
458
493
|
_: 2
|
|
459
494
|
}, [
|
|
460
495
|
i.$slots.prepend ? {
|
|
461
496
|
name: "prepend",
|
|
462
497
|
fn: n(() => [
|
|
463
|
-
|
|
498
|
+
E(i.$slots, "prepend")
|
|
464
499
|
]),
|
|
465
500
|
key: "0"
|
|
466
501
|
} : void 0,
|
|
467
502
|
i.$slots.actions ? {
|
|
468
503
|
name: "actions",
|
|
469
504
|
fn: n(() => [
|
|
470
|
-
|
|
505
|
+
E(i.$slots, "actions", { isActive: r })
|
|
471
506
|
]),
|
|
472
507
|
key: "1"
|
|
473
508
|
} : void 0
|
|
@@ -476,21 +511,21 @@ const _e = X("http", {
|
|
|
476
511
|
_: 3
|
|
477
512
|
}, 8, ["modelValue"]));
|
|
478
513
|
}
|
|
479
|
-
}),
|
|
514
|
+
}), We = /* @__PURE__ */ b({
|
|
480
515
|
__name: "VoSwitch",
|
|
481
516
|
props: {
|
|
482
517
|
disabled: { type: Boolean }
|
|
483
518
|
},
|
|
484
519
|
setup(u) {
|
|
485
|
-
return (o, i) => (d(),
|
|
520
|
+
return (o, i) => (d(), _(Re, {
|
|
486
521
|
disabled: o.disabled,
|
|
487
|
-
"true-icon": `svg:${
|
|
522
|
+
"true-icon": `svg:${t(ee)}`,
|
|
488
523
|
color: "primary",
|
|
489
524
|
density: "compact",
|
|
490
525
|
inset: ""
|
|
491
526
|
}, G({
|
|
492
527
|
thumb: n(() => [
|
|
493
|
-
s(
|
|
528
|
+
s(N, {
|
|
494
529
|
color: o.disabled ? void 0 : "primary"
|
|
495
530
|
}, null, 8, ["color"])
|
|
496
531
|
]),
|
|
@@ -499,40 +534,40 @@ const _e = X("http", {
|
|
|
499
534
|
o.$slots.label ? {
|
|
500
535
|
name: "label",
|
|
501
536
|
fn: n(() => [
|
|
502
|
-
|
|
537
|
+
E(o.$slots, "label")
|
|
503
538
|
]),
|
|
504
539
|
key: "0"
|
|
505
540
|
} : void 0
|
|
506
541
|
]), 1032, ["disabled", "true-icon"]));
|
|
507
542
|
}
|
|
508
|
-
}),
|
|
543
|
+
}), mo = {
|
|
509
544
|
key: 1,
|
|
510
545
|
class: "mb-3 text-caption text-medium-emphasis"
|
|
511
|
-
}, re = /* @__PURE__ */
|
|
546
|
+
}, re = /* @__PURE__ */ b({
|
|
512
547
|
__name: "VoDialogSubheader",
|
|
513
548
|
props: {
|
|
514
549
|
title: {},
|
|
515
550
|
text: {}
|
|
516
551
|
},
|
|
517
552
|
setup(u) {
|
|
518
|
-
return (o, i) => (d(), w(
|
|
519
|
-
o.title ? (d(),
|
|
553
|
+
return (o, i) => (d(), w(F, null, [
|
|
554
|
+
o.title ? (d(), _($e, {
|
|
520
555
|
key: 0,
|
|
521
556
|
class: "font-weight-black"
|
|
522
557
|
}, {
|
|
523
558
|
default: n(() => [
|
|
524
|
-
|
|
559
|
+
j(C(o.title), 1)
|
|
525
560
|
]),
|
|
526
561
|
_: 1
|
|
527
|
-
})) :
|
|
528
|
-
o.text ? (d(), w("div",
|
|
562
|
+
})) : S("", !0),
|
|
563
|
+
o.text ? (d(), w("div", mo, C(o.text), 1)) : S("", !0)
|
|
529
564
|
], 64));
|
|
530
565
|
}
|
|
531
|
-
}),
|
|
566
|
+
}), fo = { key: 0 }, vo = /* @__PURE__ */ b({
|
|
532
567
|
__name: "VoSettingsPageSuitOption",
|
|
533
568
|
setup(u) {
|
|
534
|
-
|
|
535
|
-
const o =
|
|
569
|
+
O();
|
|
570
|
+
const o = H(), i = [
|
|
536
571
|
{
|
|
537
572
|
title: "Blackguard",
|
|
538
573
|
prependIcon: `svg:${Te}`,
|
|
@@ -549,22 +584,22 @@ const _e = X("http", {
|
|
|
549
584
|
// value: 'nebula',
|
|
550
585
|
// },
|
|
551
586
|
];
|
|
552
|
-
return (
|
|
553
|
-
const a =
|
|
554
|
-
return d(), w(
|
|
587
|
+
return (e, r) => {
|
|
588
|
+
const a = We, l = re;
|
|
589
|
+
return d(), w(F, null, [
|
|
555
590
|
s(a, {
|
|
556
|
-
modelValue:
|
|
557
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
591
|
+
modelValue: t(o).suits.show,
|
|
592
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => t(o).suits.show = c),
|
|
558
593
|
class: "mb-2",
|
|
559
594
|
label: "Enable Page suits",
|
|
560
595
|
messages: "Customize layout elements with a unique background, styled after one of our themed releases."
|
|
561
596
|
}, null, 8, ["modelValue"]),
|
|
562
|
-
s(
|
|
597
|
+
s(ie, null, {
|
|
563
598
|
default: n(() => [
|
|
564
|
-
|
|
565
|
-
s(
|
|
566
|
-
modelValue:
|
|
567
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
599
|
+
t(o).suits.show ? (d(), w("div", fo, [
|
|
600
|
+
s(Wt, {
|
|
601
|
+
modelValue: t(o).suits.suit,
|
|
602
|
+
"onUpdate:modelValue": r[1] || (r[1] = (c) => t(o).suits.suit = c),
|
|
568
603
|
items: i,
|
|
569
604
|
density: "compact",
|
|
570
605
|
placeholder: "Choose page suit",
|
|
@@ -574,27 +609,27 @@ const _e = X("http", {
|
|
|
574
609
|
"item-props": "",
|
|
575
610
|
"single-line": ""
|
|
576
611
|
}, {
|
|
577
|
-
selection: n(({ item:
|
|
578
|
-
s(
|
|
579
|
-
icon:
|
|
612
|
+
selection: n(({ item: c }) => [
|
|
613
|
+
s(N, {
|
|
614
|
+
icon: c.props.prependIcon,
|
|
580
615
|
size: "x-small",
|
|
581
616
|
start: ""
|
|
582
617
|
}, null, 8, ["icon"]),
|
|
583
|
-
|
|
618
|
+
j(" " + C(c.title), 1)
|
|
584
619
|
]),
|
|
585
620
|
_: 1
|
|
586
621
|
}, 8, ["modelValue"]),
|
|
587
|
-
s(
|
|
588
|
-
s(
|
|
589
|
-
modelValue:
|
|
590
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
622
|
+
s(l, { text: "Select your suit elements to display the background image:" }),
|
|
623
|
+
s(Et, {
|
|
624
|
+
modelValue: t(o).suits.elements,
|
|
625
|
+
"onUpdate:modelValue": r[2] || (r[2] = (c) => t(o).suits.elements = c),
|
|
591
626
|
color: "primary",
|
|
592
627
|
filter: "",
|
|
593
628
|
multiple: ""
|
|
594
629
|
}, {
|
|
595
630
|
default: n(() => [
|
|
596
631
|
s(q, {
|
|
597
|
-
"append-icon": `svg:${
|
|
632
|
+
"append-icon": `svg:${t(at)}`,
|
|
598
633
|
"filter-icon": "$success",
|
|
599
634
|
text: "App Bar",
|
|
600
635
|
value: "app-bar",
|
|
@@ -605,12 +640,12 @@ const _e = X("http", {
|
|
|
605
640
|
class: "ms-2 border-opacity-50",
|
|
606
641
|
vertical: ""
|
|
607
642
|
}),
|
|
608
|
-
s(
|
|
643
|
+
s(N, { size: "x-small" })
|
|
609
644
|
]),
|
|
610
645
|
_: 1
|
|
611
646
|
}, 8, ["append-icon"]),
|
|
612
647
|
s(q, {
|
|
613
|
-
"append-icon": `svg:${
|
|
648
|
+
"append-icon": `svg:${t(rt)}`,
|
|
614
649
|
"filter-icon": "$success",
|
|
615
650
|
text: "Navigation Drawer",
|
|
616
651
|
value: "drawer",
|
|
@@ -621,7 +656,7 @@ const _e = X("http", {
|
|
|
621
656
|
class: "ms-2 border-opacity-50",
|
|
622
657
|
vertical: ""
|
|
623
658
|
}),
|
|
624
|
-
s(
|
|
659
|
+
s(N, { size: "x-small" })
|
|
625
660
|
]),
|
|
626
661
|
_: 1
|
|
627
662
|
}, 8, ["append-icon"]),
|
|
@@ -637,14 +672,14 @@ const _e = X("http", {
|
|
|
637
672
|
class: "ms-2 border-opacity-50",
|
|
638
673
|
vertical: ""
|
|
639
674
|
}),
|
|
640
|
-
s(
|
|
675
|
+
s(N, { size: "x-small" })
|
|
641
676
|
]),
|
|
642
677
|
_: 1
|
|
643
678
|
})
|
|
644
679
|
]),
|
|
645
680
|
_: 1
|
|
646
681
|
}, 8, ["modelValue"])
|
|
647
|
-
])) :
|
|
682
|
+
])) : S("", !0)
|
|
648
683
|
]),
|
|
649
684
|
_: 1
|
|
650
685
|
})
|
|
@@ -652,7 +687,7 @@ const _e = X("http", {
|
|
|
652
687
|
};
|
|
653
688
|
}
|
|
654
689
|
});
|
|
655
|
-
function
|
|
690
|
+
function _o() {
|
|
656
691
|
return {
|
|
657
692
|
blackguard: {
|
|
658
693
|
dark: !0,
|
|
@@ -768,8 +803,8 @@ function bo() {
|
|
|
768
803
|
}
|
|
769
804
|
};
|
|
770
805
|
}
|
|
771
|
-
const
|
|
772
|
-
const u = "https://cdn.vuetifyjs.com/docs/images/one/", o =
|
|
806
|
+
const Ge = K("settings", () => {
|
|
807
|
+
const u = "https://cdn.vuetifyjs.com/docs/images/one/", o = O(), i = H(), e = Gt(), r = _o(), a = {
|
|
773
808
|
blackguard: {
|
|
774
809
|
"app-bar": u + "suits/blackguard/blackguard-app-bar.png",
|
|
775
810
|
drawer: u + "suits/blackguard/blackguard-app-drawer.png",
|
|
@@ -785,24 +820,24 @@ const Xe = X("settings", () => {
|
|
|
785
820
|
// 'drawer': '',
|
|
786
821
|
// footer: '',
|
|
787
822
|
// },
|
|
788
|
-
},
|
|
823
|
+
}, l = A(() => {
|
|
789
824
|
if (!i.suits.suit || !i.suits.show || !o.isSubscriber)
|
|
790
825
|
return {};
|
|
791
|
-
const
|
|
826
|
+
const c = a[i.suits.suit.toLowerCase()], h = {};
|
|
792
827
|
for (const p of i.suits.elements)
|
|
793
|
-
|
|
794
|
-
return
|
|
828
|
+
h[p] = c[p];
|
|
829
|
+
return h;
|
|
795
830
|
});
|
|
796
|
-
return
|
|
797
|
-
...
|
|
831
|
+
return e.themes.value = {
|
|
832
|
+
...e.themes.value,
|
|
798
833
|
...r
|
|
799
|
-
},
|
|
800
|
-
|
|
834
|
+
}, W(() => i.theme, (c) => {
|
|
835
|
+
c === "system" ? e.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e.global.name.value = c, i.theme = c;
|
|
801
836
|
}), {
|
|
802
|
-
suit:
|
|
837
|
+
suit: l,
|
|
803
838
|
CDN_URL: u
|
|
804
839
|
};
|
|
805
|
-
}),
|
|
840
|
+
}), ho = /* @__PURE__ */ b({
|
|
806
841
|
__name: "VoSettingsDialog",
|
|
807
842
|
props: {
|
|
808
843
|
modelValue: { type: Boolean },
|
|
@@ -810,99 +845,99 @@ const Xe = X("settings", () => {
|
|
|
810
845
|
},
|
|
811
846
|
emits: ["update:modelValue"],
|
|
812
847
|
setup(u) {
|
|
813
|
-
const o =
|
|
848
|
+
const o = pe(u, "modelValue"), i = O(), e = Ge(), r = H(), a = [
|
|
814
849
|
{
|
|
815
850
|
title: "Light",
|
|
816
851
|
subtitle: "A standard light theme.",
|
|
817
|
-
image:
|
|
818
|
-
prependIcon: `svg:${
|
|
852
|
+
image: e.CDN_URL + "themes/light.png",
|
|
853
|
+
prependIcon: `svg:${lt}`,
|
|
819
854
|
value: "light"
|
|
820
855
|
},
|
|
821
856
|
{
|
|
822
857
|
title: "Dark",
|
|
823
858
|
subtitle: "A standard dark theme.",
|
|
824
|
-
image:
|
|
825
|
-
prependIcon: `svg:${
|
|
859
|
+
image: e.CDN_URL + "themes/dark.png",
|
|
860
|
+
prependIcon: `svg:${ct}`,
|
|
826
861
|
value: "dark"
|
|
827
862
|
},
|
|
828
863
|
{
|
|
829
864
|
title: "System",
|
|
830
865
|
subtitle: "A theme based on the system preference.",
|
|
831
|
-
image:
|
|
832
|
-
prependIcon: `svg:${
|
|
866
|
+
image: e.CDN_URL + "themes/system.png",
|
|
867
|
+
prependIcon: `svg:${ut}`,
|
|
833
868
|
value: "system"
|
|
834
869
|
},
|
|
835
870
|
{
|
|
836
871
|
title: "Blackguard",
|
|
837
872
|
subtitle: "A theme for v3.4 Blackguard.",
|
|
838
|
-
image:
|
|
873
|
+
image: e.CDN_URL + "themes/blackguard.png",
|
|
839
874
|
prependIcon: `svg:${Te}`,
|
|
840
875
|
value: "blackguard"
|
|
841
876
|
},
|
|
842
877
|
{
|
|
843
878
|
title: "Polaris",
|
|
844
879
|
subtitle: "A theme for v3.5 Polaris.",
|
|
845
|
-
image:
|
|
846
|
-
prependIcon: `svg:${
|
|
880
|
+
image: e.CDN_URL + "themes/polaris.png",
|
|
881
|
+
prependIcon: `svg:${dt}`,
|
|
847
882
|
value: "polaris",
|
|
848
883
|
disabled: !0
|
|
849
884
|
},
|
|
850
885
|
{
|
|
851
886
|
title: "Nebula",
|
|
852
887
|
subtitle: "A theme for v3.6 Nebula.",
|
|
853
|
-
image:
|
|
854
|
-
prependIcon: `svg:${
|
|
888
|
+
image: e.CDN_URL + "themes/nebula.png",
|
|
889
|
+
prependIcon: `svg:${pt}`,
|
|
855
890
|
value: "nebula",
|
|
856
891
|
disabled: !0
|
|
857
892
|
},
|
|
858
893
|
{
|
|
859
894
|
title: "High Contrast",
|
|
860
895
|
subtitle: "A theme for high contrast.",
|
|
861
|
-
image:
|
|
862
|
-
prependIcon: `svg:${
|
|
896
|
+
image: e.CDN_URL + "themes/high-contrast.png",
|
|
897
|
+
prependIcon: `svg:${mt}`,
|
|
863
898
|
value: "highContrast",
|
|
864
899
|
disabled: !0
|
|
865
900
|
}
|
|
866
901
|
];
|
|
867
|
-
return (
|
|
868
|
-
const
|
|
869
|
-
return d(),
|
|
902
|
+
return (l, c) => {
|
|
903
|
+
const h = re, p = vo, k = We, L = he;
|
|
904
|
+
return d(), _(L, {
|
|
870
905
|
modelValue: o.value,
|
|
871
|
-
"onUpdate:modelValue":
|
|
872
|
-
"prepend-icon": `svg:${
|
|
906
|
+
"onUpdate:modelValue": c[5] || (c[5] = (m) => o.value = m),
|
|
907
|
+
"prepend-icon": `svg:${t(ft)}`,
|
|
873
908
|
title: "Settings"
|
|
874
909
|
}, {
|
|
875
910
|
default: n(() => [
|
|
876
|
-
s(
|
|
911
|
+
s(Ie, null, {
|
|
877
912
|
default: n(() => [
|
|
878
|
-
s(
|
|
913
|
+
s(Ae, { scrollable: "" }, {
|
|
879
914
|
default: n(() => [
|
|
880
915
|
s(J, { class: "px-7" }, {
|
|
881
916
|
default: n(() => [
|
|
882
|
-
s(
|
|
917
|
+
s(h, {
|
|
883
918
|
text: "Customize your documentation experience with light and dark themes, as well as a combination of both named.",
|
|
884
919
|
title: "Theme"
|
|
885
920
|
}),
|
|
886
|
-
s(
|
|
887
|
-
modelValue:
|
|
888
|
-
"onUpdate:modelValue":
|
|
921
|
+
s(Pe, {
|
|
922
|
+
modelValue: t(r).theme,
|
|
923
|
+
"onUpdate:modelValue": c[0] || (c[0] = (m) => t(r).theme = m),
|
|
889
924
|
mandatory: ""
|
|
890
925
|
}, {
|
|
891
926
|
default: n(() => [
|
|
892
|
-
s(
|
|
927
|
+
s(ve, { dense: "" }, {
|
|
893
928
|
default: n(() => [
|
|
894
|
-
(d(), w(
|
|
895
|
-
key:
|
|
929
|
+
(d(), w(F, null, te(a, (m, y) => s(ne, {
|
|
930
|
+
key: y,
|
|
896
931
|
cols: "6"
|
|
897
932
|
}, {
|
|
898
933
|
default: n(() => [
|
|
899
934
|
s(xe, {
|
|
900
935
|
value: m.value
|
|
901
936
|
}, {
|
|
902
|
-
default: n(({ toggle:
|
|
903
|
-
s(
|
|
904
|
-
default: n(({ props:
|
|
905
|
-
s(
|
|
937
|
+
default: n(({ toggle: D, isSelected: g }) => [
|
|
938
|
+
s(Me, null, {
|
|
939
|
+
default: n(({ props: $, isHovering: I }) => [
|
|
940
|
+
s(T, ce({
|
|
906
941
|
color: g ? "primary" : "surface-variant",
|
|
907
942
|
disabled: m.disabled,
|
|
908
943
|
image: m.image,
|
|
@@ -912,11 +947,11 @@ const Xe = X("settings", () => {
|
|
|
912
947
|
title: m.title,
|
|
913
948
|
height: "76",
|
|
914
949
|
variant: "tonal"
|
|
915
|
-
},
|
|
950
|
+
}, $, { onClick: D }), {
|
|
916
951
|
image: n(() => [
|
|
917
|
-
s(
|
|
918
|
-
style:
|
|
919
|
-
filter: g ||
|
|
952
|
+
s(Le, {
|
|
953
|
+
style: Ue({
|
|
954
|
+
filter: g || I ? "none" : "grayscale(100%)"
|
|
920
955
|
})
|
|
921
956
|
}, null, 8, ["style"])
|
|
922
957
|
]),
|
|
@@ -937,31 +972,31 @@ const Xe = X("settings", () => {
|
|
|
937
972
|
]),
|
|
938
973
|
_: 1
|
|
939
974
|
}, 8, ["modelValue"]),
|
|
940
|
-
|
|
975
|
+
t(i).isSubscriber ? (d(), w(F, { key: 0 }, [
|
|
941
976
|
s(R, { class: "mt-6 mb-4" }),
|
|
942
977
|
s(p)
|
|
943
|
-
], 64)) :
|
|
978
|
+
], 64)) : S("", !0)
|
|
944
979
|
]),
|
|
945
980
|
_: 1
|
|
946
981
|
}),
|
|
947
982
|
s(R),
|
|
948
983
|
s(J, { class: "px-7" }, {
|
|
949
984
|
default: n(() => [
|
|
950
|
-
s(
|
|
985
|
+
s(h, {
|
|
951
986
|
text: "These options change your browsing experience within Vuetify properties",
|
|
952
987
|
title: "Experience"
|
|
953
988
|
}),
|
|
954
|
-
|
|
989
|
+
t(i).isSubscriber ? (d(), _(k, {
|
|
955
990
|
key: 0,
|
|
956
|
-
modelValue:
|
|
957
|
-
"onUpdate:modelValue":
|
|
991
|
+
modelValue: t(r).disableAds,
|
|
992
|
+
"onUpdate:modelValue": c[1] || (c[1] = (m) => t(r).disableAds = m),
|
|
958
993
|
class: "mb-2",
|
|
959
994
|
label: "Disable Ads",
|
|
960
995
|
messages: "Disable traditional advertisements on all documentation pages."
|
|
961
|
-
}, null, 8, ["modelValue"])) :
|
|
962
|
-
s(
|
|
963
|
-
modelValue:
|
|
964
|
-
"onUpdate:modelValue":
|
|
996
|
+
}, null, 8, ["modelValue"])) : S("", !0),
|
|
997
|
+
s(k, {
|
|
998
|
+
modelValue: t(r).quickbar,
|
|
999
|
+
"onUpdate:modelValue": c[2] || (c[2] = (m) => t(r).quickbar = m),
|
|
965
1000
|
label: "Enable Quick Actions",
|
|
966
1001
|
messages: "Quick actions are located on the Vuetify One user menu and provide quick access to common tasks."
|
|
967
1002
|
}, null, 8, ["modelValue"])
|
|
@@ -969,33 +1004,33 @@ const Xe = X("settings", () => {
|
|
|
969
1004
|
_: 1
|
|
970
1005
|
}),
|
|
971
1006
|
s(R),
|
|
972
|
-
|
|
1007
|
+
t(i).isSubscriber ? (d(), _(J, {
|
|
973
1008
|
key: 0,
|
|
974
1009
|
class: "px-7"
|
|
975
1010
|
}, {
|
|
976
1011
|
default: n(() => [
|
|
977
|
-
s(
|
|
1012
|
+
s(h, {
|
|
978
1013
|
text: "Vuetify will communicate with you through banners and notifications. You can disable these features here or reset your local notification cache.",
|
|
979
1014
|
title: "Communication"
|
|
980
1015
|
}),
|
|
981
|
-
s(
|
|
982
|
-
modelValue:
|
|
983
|
-
"onUpdate:modelValue":
|
|
1016
|
+
s(k, {
|
|
1017
|
+
modelValue: t(r).notifications.show,
|
|
1018
|
+
"onUpdate:modelValue": c[3] || (c[3] = (m) => t(r).notifications.show = m),
|
|
984
1019
|
class: "mb-2",
|
|
985
1020
|
label: "Enable Notifications",
|
|
986
1021
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
987
1022
|
}, null, 8, ["modelValue"]),
|
|
988
|
-
|
|
1023
|
+
t(r).notifications.show ? (d(), _(k, {
|
|
989
1024
|
key: 0,
|
|
990
|
-
modelValue:
|
|
991
|
-
"onUpdate:modelValue":
|
|
1025
|
+
modelValue: t(r).notifications.banners,
|
|
1026
|
+
"onUpdate:modelValue": c[4] || (c[4] = (m) => t(r).notifications.banners = m),
|
|
992
1027
|
class: "mb-2",
|
|
993
1028
|
label: "Enable Banners",
|
|
994
1029
|
messages: "Banners are located at the top of the screen and provide a callout for important information."
|
|
995
|
-
}, null, 8, ["modelValue"])) :
|
|
1030
|
+
}, null, 8, ["modelValue"])) : S("", !0)
|
|
996
1031
|
]),
|
|
997
1032
|
_: 1
|
|
998
|
-
})) :
|
|
1033
|
+
})) : S("", !0)
|
|
999
1034
|
]),
|
|
1000
1035
|
_: 1
|
|
1001
1036
|
})
|
|
@@ -1007,219 +1042,185 @@ const Xe = X("settings", () => {
|
|
|
1007
1042
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
1008
1043
|
};
|
|
1009
1044
|
}
|
|
1010
|
-
}),
|
|
1045
|
+
}), go = /* @__PURE__ */ b({
|
|
1011
1046
|
__name: "VoSettingsListItem",
|
|
1012
1047
|
setup(u) {
|
|
1013
|
-
const o =
|
|
1014
|
-
return (i,
|
|
1015
|
-
const r =
|
|
1016
|
-
return d(),
|
|
1048
|
+
const o = U(!1);
|
|
1049
|
+
return (i, e) => {
|
|
1050
|
+
const r = ho, a = Y;
|
|
1051
|
+
return d(), _(a, {
|
|
1017
1052
|
active: o.value,
|
|
1018
|
-
"prepend-icon": `svg:${
|
|
1053
|
+
"prepend-icon": `svg:${t(vt)}`,
|
|
1019
1054
|
title: "Settings",
|
|
1020
1055
|
link: ""
|
|
1021
1056
|
}, {
|
|
1022
1057
|
default: n(() => [
|
|
1023
1058
|
s(r, {
|
|
1024
1059
|
modelValue: o.value,
|
|
1025
|
-
"onUpdate:modelValue":
|
|
1060
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => o.value = l)
|
|
1026
1061
|
}, null, 8, ["modelValue"])
|
|
1027
1062
|
]),
|
|
1028
1063
|
_: 1
|
|
1029
1064
|
}, 8, ["active", "prepend-icon"]);
|
|
1030
1065
|
};
|
|
1031
1066
|
}
|
|
1032
|
-
}),
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
},
|
|
1037
|
-
setup(u) {
|
|
1038
|
-
const o = u;
|
|
1039
|
-
return (i, t) => (d(), h(E, {
|
|
1040
|
-
style: Fe({
|
|
1041
|
-
pointerEvents: o.readonly ? "none" : void 0
|
|
1042
|
-
}),
|
|
1043
|
-
tabindex: o.readonly ? -1 : void 0,
|
|
1044
|
-
class: "text-none font-weight-regular",
|
|
1045
|
-
color: "primary",
|
|
1046
|
-
size: "small",
|
|
1047
|
-
variant: "flat"
|
|
1048
|
-
}, G({
|
|
1049
|
-
loader: n(() => [
|
|
1050
|
-
s(Zt, {
|
|
1051
|
-
indeterminate: "disable-shrink",
|
|
1052
|
-
size: "16",
|
|
1053
|
-
width: "2"
|
|
1054
|
-
})
|
|
1055
|
-
]),
|
|
1056
|
-
_: 2
|
|
1057
|
-
}, [
|
|
1058
|
-
i.$slots.default ? {
|
|
1059
|
-
name: "default",
|
|
1060
|
-
fn: n(() => [
|
|
1061
|
-
W(i.$slots, "default")
|
|
1062
|
-
]),
|
|
1063
|
-
key: "0"
|
|
1064
|
-
} : void 0
|
|
1065
|
-
]), 1032, ["style", "tabindex"]));
|
|
1066
|
-
}
|
|
1067
|
-
}), oe = X("one", () => {
|
|
1068
|
-
const o = new URLSearchParams(window.location.search).get("session_id"), i = N(), t = _e(), r = I(!1), a = ee(), c = ee([]), l = A(() => {
|
|
1069
|
-
var _;
|
|
1070
|
-
return (_ = a.value) == null ? void 0 : _.items[0].plan.interval;
|
|
1071
|
-
}), f = A(() => {
|
|
1072
|
-
var _;
|
|
1073
|
-
return (_ = i.user) == null ? void 0 : _.sponsorships.find((b) => b.platform === "stripe" && b.tierName.startsWith("sub_"));
|
|
1067
|
+
}), X = K("one", () => {
|
|
1068
|
+
const o = new URLSearchParams(window.location.search).get("session_id"), i = O(), e = _e(), r = U(!1), a = Z(!1), l = Z(), c = Z([]), h = A(() => {
|
|
1069
|
+
var f;
|
|
1070
|
+
return (f = l.value) == null ? void 0 : f.items[0].plan.interval;
|
|
1074
1071
|
}), p = A(() => {
|
|
1075
|
-
var
|
|
1076
|
-
return
|
|
1072
|
+
var f;
|
|
1073
|
+
return (f = i.user) == null ? void 0 : f.sponsorships.find((x) => x.platform === "stripe" && x.tierName.startsWith("sub_"));
|
|
1074
|
+
}), k = A(() => {
|
|
1075
|
+
var f;
|
|
1076
|
+
return !!((f = p.value) != null && f.tierName);
|
|
1077
|
+
}), L = A(() => {
|
|
1078
|
+
var f;
|
|
1079
|
+
return (f = p.value) == null ? void 0 : f.isActive;
|
|
1080
|
+
}), m = A(() => {
|
|
1081
|
+
var f;
|
|
1082
|
+
return (f = i.user) == null ? void 0 : f.sponsorships.find((x) => x.platform === "github");
|
|
1077
1083
|
}), y = A(() => {
|
|
1078
|
-
var
|
|
1079
|
-
return (
|
|
1084
|
+
var f;
|
|
1085
|
+
return (f = i.user) == null ? void 0 : f.sponsorships.find((x) => x.platform === "discord");
|
|
1080
1086
|
}), D = A(() => {
|
|
1081
|
-
var
|
|
1082
|
-
return (
|
|
1083
|
-
}),
|
|
1084
|
-
var
|
|
1085
|
-
return (
|
|
1086
|
-
}), k = A(() => {
|
|
1087
|
-
var _;
|
|
1088
|
-
return (_ = i.user) == null ? void 0 : _.sponsorships.find((b) => b.platform === "patreon");
|
|
1089
|
-
}), U = A(() => {
|
|
1090
|
-
var _;
|
|
1091
|
-
return (_ = i.user) == null ? void 0 : _.sponsorships.reduce((b, Z) => (Z.platform !== "stripe" && (b += Z.amount), b), 0);
|
|
1087
|
+
var f;
|
|
1088
|
+
return (f = i.user) == null ? void 0 : f.sponsorships.find((x) => x.platform === "patreon");
|
|
1089
|
+
}), g = A(() => {
|
|
1090
|
+
var f;
|
|
1091
|
+
return (f = i.user) == null ? void 0 : f.sponsorships.reduce((x, ge) => (ge.platform !== "stripe" && (x += ge.amount), x), 0);
|
|
1092
1092
|
});
|
|
1093
|
-
|
|
1094
|
-
o && await
|
|
1095
|
-
}),
|
|
1096
|
-
|
|
1093
|
+
Ze(async () => {
|
|
1094
|
+
o && await $();
|
|
1095
|
+
}), W(L, (f, x) => {
|
|
1096
|
+
f === !1 && x !== !0 || M();
|
|
1097
1097
|
});
|
|
1098
|
-
async function
|
|
1098
|
+
async function $() {
|
|
1099
1099
|
try {
|
|
1100
1100
|
r.value = !0;
|
|
1101
|
-
const
|
|
1102
|
-
i.user =
|
|
1103
|
-
const
|
|
1104
|
-
|
|
1101
|
+
const f = await e.post("/one/activate", { sessionId: o });
|
|
1102
|
+
i.user = f.user;
|
|
1103
|
+
const x = new URL(window.location.href);
|
|
1104
|
+
x.searchParams.delete("session_id"), history.pushState(null, "", x.toString()), z();
|
|
1105
1105
|
} catch {
|
|
1106
1106
|
} finally {
|
|
1107
1107
|
r.value = !1;
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
|
-
async function
|
|
1111
|
-
window.open(`${
|
|
1110
|
+
async function I() {
|
|
1111
|
+
window.open(`${e.url}/one/manage`, "_blank");
|
|
1112
1112
|
}
|
|
1113
|
-
async function
|
|
1114
|
-
r.value = !0, window.location.href = `${
|
|
1113
|
+
async function V(f) {
|
|
1114
|
+
r.value = !0, window.location.href = `${e.url}/one/subscribe?interval=${f}`;
|
|
1115
1115
|
}
|
|
1116
|
-
async function
|
|
1117
|
-
var
|
|
1118
|
-
if (
|
|
1116
|
+
async function B() {
|
|
1117
|
+
var f;
|
|
1118
|
+
if (p.value)
|
|
1119
1119
|
try {
|
|
1120
1120
|
r.value = !0;
|
|
1121
|
-
const
|
|
1122
|
-
`/one/cancel?subscriptionId=${(
|
|
1121
|
+
const x = await e.post(
|
|
1122
|
+
`/one/cancel?subscriptionId=${(f = p.value) == null ? void 0 : f.tierName}`
|
|
1123
1123
|
);
|
|
1124
|
-
i.user =
|
|
1124
|
+
i.user = x.user;
|
|
1125
1125
|
} catch {
|
|
1126
1126
|
} finally {
|
|
1127
1127
|
r.value = !1;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
|
-
async function
|
|
1131
|
-
if (
|
|
1130
|
+
async function P(f) {
|
|
1131
|
+
if (p.value)
|
|
1132
1132
|
try {
|
|
1133
1133
|
r.value = !0;
|
|
1134
|
-
const
|
|
1135
|
-
subscriptionId:
|
|
1136
|
-
interval:
|
|
1134
|
+
const x = await e.post("/one/modify", {
|
|
1135
|
+
subscriptionId: p.value.tierName,
|
|
1136
|
+
interval: f
|
|
1137
1137
|
});
|
|
1138
|
-
i.user =
|
|
1138
|
+
i.user = x.user;
|
|
1139
1139
|
} catch {
|
|
1140
1140
|
} finally {
|
|
1141
1141
|
r.value = !1;
|
|
1142
1142
|
}
|
|
1143
1143
|
}
|
|
1144
1144
|
async function M() {
|
|
1145
|
-
var
|
|
1146
|
-
if (
|
|
1145
|
+
var f;
|
|
1146
|
+
if (p.value)
|
|
1147
1147
|
try {
|
|
1148
1148
|
r.value = !0;
|
|
1149
|
-
const
|
|
1150
|
-
`/one/verify?subscriptionId=${(
|
|
1149
|
+
const x = await e.post(
|
|
1150
|
+
`/one/verify?subscriptionId=${(f = p.value) == null ? void 0 : f.tierName}`
|
|
1151
1151
|
);
|
|
1152
|
-
i.user =
|
|
1152
|
+
i.user = x.user;
|
|
1153
1153
|
} catch {
|
|
1154
1154
|
} finally {
|
|
1155
1155
|
r.value = !1;
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
async function
|
|
1158
|
+
async function z() {
|
|
1159
1159
|
try {
|
|
1160
1160
|
r.value = !0;
|
|
1161
|
-
const
|
|
1162
|
-
return
|
|
1161
|
+
const f = await e.get("/one/info");
|
|
1162
|
+
return l.value = f.subscription, c.value = f.invoices, f;
|
|
1163
1163
|
} catch {
|
|
1164
1164
|
} finally {
|
|
1165
1165
|
r.value = !1;
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
1168
|
return {
|
|
1169
|
-
info:
|
|
1170
|
-
interval:
|
|
1169
|
+
info: l,
|
|
1170
|
+
interval: h,
|
|
1171
1171
|
invoices: c,
|
|
1172
1172
|
sessionId: o,
|
|
1173
|
-
subscription:
|
|
1174
|
-
monthlyTotal:
|
|
1175
|
-
hasBilling:
|
|
1173
|
+
subscription: p,
|
|
1174
|
+
monthlyTotal: g,
|
|
1175
|
+
hasBilling: k,
|
|
1176
1176
|
isLoading: r,
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1177
|
+
isOpen: a,
|
|
1178
|
+
isSubscriber: L,
|
|
1179
|
+
github: m,
|
|
1180
|
+
patreon: D,
|
|
1181
|
+
discord: y,
|
|
1182
|
+
activate: $,
|
|
1183
|
+
cancel: B,
|
|
1184
|
+
manage: I,
|
|
1185
|
+
modify: P,
|
|
1186
|
+
subscribe: V,
|
|
1187
|
+
subscriptionInfo: z,
|
|
1187
1188
|
verify: M
|
|
1188
1189
|
};
|
|
1189
|
-
}),
|
|
1190
|
+
}), bo = { class: "text-caption" }, yo = /* @__PURE__ */ b({
|
|
1190
1191
|
__name: "VoSubscriptionInvoices",
|
|
1191
1192
|
setup(u) {
|
|
1192
|
-
const o =
|
|
1193
|
-
return (
|
|
1193
|
+
const o = fe(), i = X();
|
|
1194
|
+
return (e, r) => {
|
|
1194
1195
|
const a = re;
|
|
1195
|
-
return d(),
|
|
1196
|
+
return d(), _(ve, null, {
|
|
1196
1197
|
default: n(() => [
|
|
1197
|
-
s(
|
|
1198
|
+
s(ne, { cols: "12" }, {
|
|
1198
1199
|
default: n(() => [
|
|
1199
1200
|
s(a, {
|
|
1200
1201
|
text: "View and download your invoice history.",
|
|
1201
1202
|
title: "Invoice History"
|
|
1202
1203
|
}),
|
|
1203
|
-
s(
|
|
1204
|
+
s(T, {
|
|
1204
1205
|
height: "450",
|
|
1205
1206
|
rounded: "lg",
|
|
1206
1207
|
border: ""
|
|
1207
1208
|
}, {
|
|
1208
1209
|
default: n(() => [
|
|
1209
|
-
s(
|
|
1210
|
-
items:
|
|
1211
|
-
loading:
|
|
1210
|
+
s(qt, {
|
|
1211
|
+
items: t(i).invoices,
|
|
1212
|
+
loading: t(i).isLoading,
|
|
1212
1213
|
sticky: ""
|
|
1213
1214
|
}, {
|
|
1214
|
-
"item.date": n(({ item:
|
|
1215
|
-
v("div",
|
|
1215
|
+
"item.date": n(({ item: l }) => [
|
|
1216
|
+
v("div", bo, C(t(o).format(new Date(l.date * 1e3), "fullDateWithWeekday")), 1)
|
|
1216
1217
|
]),
|
|
1217
|
-
"item.amount": n(({ item:
|
|
1218
|
-
|
|
1218
|
+
"item.amount": n(({ item: l }) => [
|
|
1219
|
+
j(" $" + C(l.amount / 100), 1)
|
|
1219
1220
|
]),
|
|
1220
|
-
"item.status": n(({ item:
|
|
1221
|
+
"item.status": n(({ item: l }) => [
|
|
1221
1222
|
s(q, {
|
|
1222
|
-
text:
|
|
1223
|
+
text: l.status,
|
|
1223
1224
|
border: "success sm",
|
|
1224
1225
|
class: "text-capitalize",
|
|
1225
1226
|
color: "success",
|
|
@@ -1228,10 +1229,10 @@ const Xe = X("settings", () => {
|
|
|
1228
1229
|
label: ""
|
|
1229
1230
|
}, null, 8, ["text"])
|
|
1230
1231
|
]),
|
|
1231
|
-
"item.pdf": n(({ item:
|
|
1232
|
-
s(
|
|
1233
|
-
href:
|
|
1234
|
-
icon: `svg:${
|
|
1232
|
+
"item.pdf": n(({ item: l }) => [
|
|
1233
|
+
s(Q, {
|
|
1234
|
+
href: l.pdf,
|
|
1235
|
+
icon: `svg:${t(_t)}`,
|
|
1235
1236
|
size: "small",
|
|
1236
1237
|
target: "_blank",
|
|
1237
1238
|
variant: "text"
|
|
@@ -1250,31 +1251,31 @@ const Xe = X("settings", () => {
|
|
|
1250
1251
|
});
|
|
1251
1252
|
};
|
|
1252
1253
|
}
|
|
1253
|
-
}),
|
|
1254
|
+
}), Vo = { class: "d-flex align-center" }, ko = {
|
|
1254
1255
|
key: "status",
|
|
1255
1256
|
class: "text-capitalize hidden-sm-and-down"
|
|
1256
|
-
},
|
|
1257
|
+
}, $o = /* @__PURE__ */ v("span", { class: "mx-1 hidden-sm-and-down" }, "—", -1), xo = { class: "me-1" }, wo = { class: "text-medium-emphasis text-caption" }, So = { class: "d-flex align-start justify-space-between text-caption py-2" }, Co = { class: "font-weight-bold" }, Lo = { class: "font-weight-bold" }, Io = /* @__PURE__ */ b({
|
|
1257
1258
|
__name: "VoSubscriptionStatus",
|
|
1258
1259
|
emits: ["change:subscription"],
|
|
1259
1260
|
setup(u, { emit: o }) {
|
|
1260
|
-
const i =
|
|
1261
|
-
if (!
|
|
1261
|
+
const i = fe(), e = X(), r = o, a = A(() => {
|
|
1262
|
+
if (!e.info)
|
|
1262
1263
|
return;
|
|
1263
|
-
const
|
|
1264
|
-
return i.format(
|
|
1264
|
+
const c = new Date(e.info.currentPeriodEnd * 1e3);
|
|
1265
|
+
return i.format(c, "keyboardDate");
|
|
1265
1266
|
});
|
|
1266
|
-
async function
|
|
1267
|
-
|
|
1267
|
+
async function l() {
|
|
1268
|
+
e.interval && (e.isLoading = !0, e.subscribe(e.interval));
|
|
1268
1269
|
}
|
|
1269
|
-
return (
|
|
1270
|
-
const p =
|
|
1271
|
-
return d(),
|
|
1270
|
+
return (c, h) => {
|
|
1271
|
+
const p = ae;
|
|
1272
|
+
return d(), _(ve, null, {
|
|
1272
1273
|
default: n(() => [
|
|
1273
|
-
s(
|
|
1274
|
+
s(ne, { cols: "12" }, {
|
|
1274
1275
|
default: n(() => {
|
|
1275
|
-
var
|
|
1276
|
+
var k, L;
|
|
1276
1277
|
return [
|
|
1277
|
-
s(
|
|
1278
|
+
s(T, {
|
|
1278
1279
|
"prepend-icon": "$vuetify",
|
|
1279
1280
|
rounded: "lg",
|
|
1280
1281
|
title: "Subscription Status",
|
|
@@ -1284,45 +1285,45 @@ const Xe = X("settings", () => {
|
|
|
1284
1285
|
append: n(() => {
|
|
1285
1286
|
var m;
|
|
1286
1287
|
return [
|
|
1287
|
-
e
|
|
1288
|
+
t(e).hasBilling && ((m = t(e).info) == null ? void 0 : m.status) === "canceled" ? (d(), _(p, {
|
|
1288
1289
|
key: 0,
|
|
1289
|
-
loading: e
|
|
1290
|
+
loading: t(e).isLoading,
|
|
1290
1291
|
class: "me-2",
|
|
1291
1292
|
color: "success",
|
|
1292
1293
|
"prepend-icon": "$success",
|
|
1293
1294
|
text: "Activate",
|
|
1294
1295
|
variant: "outlined",
|
|
1295
|
-
onClick:
|
|
1296
|
-
}, null, 8, ["loading"])) :
|
|
1297
|
-
e
|
|
1296
|
+
onClick: l
|
|
1297
|
+
}, null, 8, ["loading"])) : S("", !0),
|
|
1298
|
+
t(e).hasBilling ? (d(), _(p, {
|
|
1298
1299
|
key: 1,
|
|
1299
|
-
loading: e
|
|
1300
|
-
"prepend-icon": `svg:${
|
|
1300
|
+
loading: t(e).isLoading,
|
|
1301
|
+
"prepend-icon": `svg:${t(ht)}`,
|
|
1301
1302
|
text: "Billing",
|
|
1302
|
-
onClick: e
|
|
1303
|
-
}, null, 8, ["loading", "prepend-icon", "onClick"])) :
|
|
1303
|
+
onClick: t(e).manage
|
|
1304
|
+
}, null, 8, ["loading", "prepend-icon", "onClick"])) : S("", !0)
|
|
1304
1305
|
];
|
|
1305
1306
|
}),
|
|
1306
1307
|
_: 2
|
|
1307
1308
|
}, [
|
|
1308
|
-
e
|
|
1309
|
+
t(e).info ? {
|
|
1309
1310
|
name: "subtitle",
|
|
1310
1311
|
fn: n(() => [
|
|
1311
|
-
v("div",
|
|
1312
|
-
v("span",
|
|
1313
|
-
e
|
|
1314
|
-
|
|
1315
|
-
v("span",
|
|
1316
|
-
|
|
1317
|
-
v("span",
|
|
1312
|
+
v("div", Vo, [
|
|
1313
|
+
v("span", ko, C(t(e).info.status), 1),
|
|
1314
|
+
t(e).info.items.length ? (d(), w(F, { key: 0 }, [
|
|
1315
|
+
$o,
|
|
1316
|
+
v("span", xo, [
|
|
1317
|
+
j(" $" + C(t(e).info.items[0].plan.amount / 100), 1),
|
|
1318
|
+
v("span", wo, "/" + C(t(e).interval), 1)
|
|
1318
1319
|
]),
|
|
1319
1320
|
s(p, {
|
|
1320
1321
|
size: "x-small",
|
|
1321
1322
|
text: "(Change Subscription)",
|
|
1322
1323
|
variant: "text",
|
|
1323
|
-
onClick:
|
|
1324
|
+
onClick: h[0] || (h[0] = (m) => r("change:subscription"))
|
|
1324
1325
|
})
|
|
1325
|
-
], 64)) :
|
|
1326
|
+
], 64)) : S("", !0)
|
|
1326
1327
|
])
|
|
1327
1328
|
]),
|
|
1328
1329
|
key: "0"
|
|
@@ -1346,16 +1347,16 @@ const Xe = X("settings", () => {
|
|
|
1346
1347
|
key: "1"
|
|
1347
1348
|
}
|
|
1348
1349
|
]), 1024),
|
|
1349
|
-
v("div",
|
|
1350
|
+
v("div", So, [
|
|
1350
1351
|
v("div", null, [
|
|
1351
|
-
((
|
|
1352
|
-
|
|
1353
|
-
v("span",
|
|
1354
|
-
|
|
1355
|
-
], 64)) : (d(), w(
|
|
1356
|
-
|
|
1357
|
-
v("span",
|
|
1358
|
-
|
|
1352
|
+
((k = t(e).info) == null ? void 0 : k.status) === "active" ? (d(), w(F, { key: 0 }, [
|
|
1353
|
+
j(" Your plan renews on "),
|
|
1354
|
+
v("span", Co, C(t(i).format(a.value, "fullDateWithWeekday")), 1),
|
|
1355
|
+
j(". ")
|
|
1356
|
+
], 64)) : (d(), w(F, { key: 1 }, [
|
|
1357
|
+
j(" Your plan ends on "),
|
|
1358
|
+
v("span", Lo, C(t(i).format((L = t(e).info) == null ? void 0 : L.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1359
|
+
j(". ")
|
|
1359
1360
|
], 64))
|
|
1360
1361
|
])
|
|
1361
1362
|
])
|
|
@@ -1368,7 +1369,7 @@ const Xe = X("settings", () => {
|
|
|
1368
1369
|
});
|
|
1369
1370
|
};
|
|
1370
1371
|
}
|
|
1371
|
-
}),
|
|
1372
|
+
}), Ao = /* @__PURE__ */ v("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The Vuetify One subscription comes with the following perks: ", -1), Do = ["innerHTML"], Uo = /* @__PURE__ */ v("br", null, null, -1), Fo = /* @__PURE__ */ v("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The following features are in development and coming soon: ", -1), jo = ["innerHTML"], No = /* @__PURE__ */ b({
|
|
1372
1373
|
__name: "VoSubscriptionPerks",
|
|
1373
1374
|
setup(u) {
|
|
1374
1375
|
const o = [
|
|
@@ -1381,74 +1382,74 @@ const Xe = X("settings", () => {
|
|
|
1381
1382
|
'Special role in the <a href="https://discord.vuetifyjs.com/" target="_blank">Vuetify Discord</a>',
|
|
1382
1383
|
'Save and share your playgrounds with <a href="https://play.vuetifyjs.com" target="_blank">Vuetify Play</a>',
|
|
1383
1384
|
"Receive a special label on GitHub created issues and pull requests"
|
|
1384
|
-
],
|
|
1385
|
-
return
|
|
1385
|
+
], e = U(!1), r = X();
|
|
1386
|
+
return W(e, async (a) => {
|
|
1386
1387
|
a && r.subscriptionInfo();
|
|
1387
|
-
}), (a,
|
|
1388
|
-
const
|
|
1389
|
-
return d(), w(
|
|
1388
|
+
}), (a, l) => {
|
|
1389
|
+
const c = Y;
|
|
1390
|
+
return d(), w(F, null, [
|
|
1390
1391
|
s($e, { class: "font-weight-black" }, {
|
|
1391
1392
|
default: n(() => [
|
|
1392
|
-
|
|
1393
|
+
j("Perks")
|
|
1393
1394
|
]),
|
|
1394
1395
|
_: 1
|
|
1395
1396
|
}),
|
|
1396
|
-
|
|
1397
|
-
s(
|
|
1397
|
+
Ao,
|
|
1398
|
+
s(oe, {
|
|
1398
1399
|
lines: !1,
|
|
1399
1400
|
class: "py-0",
|
|
1400
1401
|
density: "compact",
|
|
1401
1402
|
nav: ""
|
|
1402
1403
|
}, {
|
|
1403
1404
|
default: n(() => [
|
|
1404
|
-
(d(), w(
|
|
1405
|
+
(d(), w(F, null, te(o, (h, p) => s(c, {
|
|
1405
1406
|
key: p,
|
|
1406
|
-
"prepend-icon": `svg:${
|
|
1407
|
+
"prepend-icon": `svg:${t(ee)}`,
|
|
1407
1408
|
class: "mb-0"
|
|
1408
1409
|
}, {
|
|
1409
1410
|
prepend: n(() => [
|
|
1410
|
-
s(
|
|
1411
|
+
s(N, {
|
|
1411
1412
|
class: "mx-n2",
|
|
1412
1413
|
color: "success",
|
|
1413
1414
|
size: "small"
|
|
1414
1415
|
})
|
|
1415
1416
|
]),
|
|
1416
1417
|
title: n(() => [
|
|
1417
|
-
v("div", { innerHTML:
|
|
1418
|
+
v("div", { innerHTML: h }, null, 8, Do)
|
|
1418
1419
|
]),
|
|
1419
1420
|
_: 2
|
|
1420
1421
|
}, 1032, ["prepend-icon"])), 64))
|
|
1421
1422
|
]),
|
|
1422
1423
|
_: 1
|
|
1423
1424
|
}),
|
|
1424
|
-
|
|
1425
|
+
Uo,
|
|
1425
1426
|
s($e, { class: "font-weight-black" }, {
|
|
1426
1427
|
default: n(() => [
|
|
1427
|
-
|
|
1428
|
+
j("Up Next")
|
|
1428
1429
|
]),
|
|
1429
1430
|
_: 1
|
|
1430
1431
|
}),
|
|
1431
|
-
|
|
1432
|
-
s(
|
|
1432
|
+
Fo,
|
|
1433
|
+
s(oe, {
|
|
1433
1434
|
lines: !1,
|
|
1434
1435
|
class: "py-0",
|
|
1435
1436
|
density: "compact",
|
|
1436
1437
|
nav: ""
|
|
1437
1438
|
}, {
|
|
1438
1439
|
default: n(() => [
|
|
1439
|
-
(d(), w(
|
|
1440
|
+
(d(), w(F, null, te(i, (h, p) => s(c, {
|
|
1440
1441
|
key: p,
|
|
1441
|
-
"prepend-icon": `svg:${
|
|
1442
|
+
"prepend-icon": `svg:${t(gt)}`,
|
|
1442
1443
|
class: "mb-0"
|
|
1443
1444
|
}, {
|
|
1444
1445
|
prepend: n(() => [
|
|
1445
|
-
s(
|
|
1446
|
+
s(N, {
|
|
1446
1447
|
class: "mx-n2",
|
|
1447
1448
|
size: "small"
|
|
1448
1449
|
})
|
|
1449
1450
|
]),
|
|
1450
1451
|
title: n(() => [
|
|
1451
|
-
v("div", { innerHTML:
|
|
1452
|
+
v("div", { innerHTML: h }, null, 8, jo)
|
|
1452
1453
|
]),
|
|
1453
1454
|
_: 2
|
|
1454
1455
|
}, 1032, ["prepend-icon"])), 64))
|
|
@@ -1458,7 +1459,7 @@ const Xe = X("settings", () => {
|
|
|
1458
1459
|
], 64);
|
|
1459
1460
|
};
|
|
1460
1461
|
}
|
|
1461
|
-
}),
|
|
1462
|
+
}), Oo = /* @__PURE__ */ b({
|
|
1462
1463
|
__name: "VoSubscriptionSubscribe",
|
|
1463
1464
|
props: {
|
|
1464
1465
|
modelValue: {
|
|
@@ -1468,37 +1469,37 @@ const Xe = X("settings", () => {
|
|
|
1468
1469
|
},
|
|
1469
1470
|
emits: ["update:modelValue"],
|
|
1470
1471
|
setup(u) {
|
|
1471
|
-
const o =
|
|
1472
|
-
return
|
|
1473
|
-
r &&
|
|
1474
|
-
}),
|
|
1472
|
+
const o = U(!1), i = pe(u, "modelValue"), e = X();
|
|
1473
|
+
return W(o, async (r) => {
|
|
1474
|
+
r && e.subscriptionInfo();
|
|
1475
|
+
}), W(() => e.interval, (r) => {
|
|
1475
1476
|
i.value = r;
|
|
1476
|
-
}, { immediate: !0 }), (r, a) => (d(),
|
|
1477
|
+
}, { immediate: !0 }), (r, a) => (d(), _(Pe, {
|
|
1477
1478
|
modelValue: i.value,
|
|
1478
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1479
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => i.value = l)
|
|
1479
1480
|
}, {
|
|
1480
1481
|
default: n(() => [
|
|
1481
|
-
s(
|
|
1482
|
+
s(ve, null, {
|
|
1482
1483
|
default: n(() => [
|
|
1483
|
-
s(
|
|
1484
|
+
s(ne, {
|
|
1484
1485
|
cols: "12",
|
|
1485
1486
|
md: "6"
|
|
1486
1487
|
}, {
|
|
1487
1488
|
default: n(() => [
|
|
1488
1489
|
s(xe, { value: "month" }, {
|
|
1489
|
-
default: n(({ toggle:
|
|
1490
|
-
s(
|
|
1491
|
-
border:
|
|
1492
|
-
color:
|
|
1493
|
-
"prepend-icon":
|
|
1494
|
-
variant:
|
|
1490
|
+
default: n(({ toggle: l, isSelected: c }) => [
|
|
1491
|
+
s(T, {
|
|
1492
|
+
border: c ? "sm primary opacity-100" : "sm",
|
|
1493
|
+
color: c ? "primary" : void 0,
|
|
1494
|
+
"prepend-icon": c ? `svg:${t(se)}` : "$radioOff",
|
|
1495
|
+
variant: c ? "tonal" : "text",
|
|
1495
1496
|
rounded: "lg",
|
|
1496
1497
|
subtitle: "$2.99/month",
|
|
1497
1498
|
title: "Monthly",
|
|
1498
|
-
onClick:
|
|
1499
|
+
onClick: l
|
|
1499
1500
|
}, {
|
|
1500
1501
|
prepend: n(() => [
|
|
1501
|
-
s(
|
|
1502
|
+
s(N, { class: "mt-n6" })
|
|
1502
1503
|
]),
|
|
1503
1504
|
_: 2
|
|
1504
1505
|
}, 1032, ["border", "color", "prepend-icon", "variant", "onClick"])
|
|
@@ -1508,25 +1509,25 @@ const Xe = X("settings", () => {
|
|
|
1508
1509
|
]),
|
|
1509
1510
|
_: 1
|
|
1510
1511
|
}),
|
|
1511
|
-
s(
|
|
1512
|
+
s(ne, {
|
|
1512
1513
|
cols: "12",
|
|
1513
1514
|
md: "6"
|
|
1514
1515
|
}, {
|
|
1515
1516
|
default: n(() => [
|
|
1516
1517
|
s(xe, { value: "year" }, {
|
|
1517
|
-
default: n(({ toggle:
|
|
1518
|
-
s(
|
|
1519
|
-
border:
|
|
1520
|
-
color:
|
|
1521
|
-
"prepend-icon":
|
|
1522
|
-
variant:
|
|
1518
|
+
default: n(({ toggle: l, isSelected: c }) => [
|
|
1519
|
+
s(T, {
|
|
1520
|
+
border: c ? "sm primary opacity-100" : "sm",
|
|
1521
|
+
color: c ? "primary" : void 0,
|
|
1522
|
+
"prepend-icon": c ? `svg:${t(se)}` : "$radioOff",
|
|
1523
|
+
variant: c ? "tonal" : "text",
|
|
1523
1524
|
rounded: "lg",
|
|
1524
1525
|
subtitle: "$29.99/year",
|
|
1525
1526
|
title: "Yearly",
|
|
1526
|
-
onClick:
|
|
1527
|
+
onClick: l
|
|
1527
1528
|
}, {
|
|
1528
1529
|
prepend: n(() => [
|
|
1529
|
-
s(
|
|
1530
|
+
s(N, { class: "mt-n6" })
|
|
1530
1531
|
]),
|
|
1531
1532
|
append: n(() => [
|
|
1532
1533
|
s(q, {
|
|
@@ -1552,7 +1553,7 @@ const Xe = X("settings", () => {
|
|
|
1552
1553
|
_: 1
|
|
1553
1554
|
}, 8, ["modelValue"]));
|
|
1554
1555
|
}
|
|
1555
|
-
}),
|
|
1556
|
+
}), Bo = { class: "px-3 h-screen" }, zo = /* @__PURE__ */ v("br", null, null, -1), To = { class: "flex-grow-1 px-4 pb-3 overflow-hidden" }, Ro = /* @__PURE__ */ b({
|
|
1556
1557
|
__name: "VoSubscriptionDialog",
|
|
1557
1558
|
props: {
|
|
1558
1559
|
modelValue: { type: Boolean },
|
|
@@ -1560,55 +1561,55 @@ const Xe = X("settings", () => {
|
|
|
1560
1561
|
},
|
|
1561
1562
|
emits: ["update:modelValue"],
|
|
1562
1563
|
setup(u) {
|
|
1563
|
-
function o(
|
|
1564
|
-
return new Promise((p) => setTimeout(p,
|
|
1564
|
+
function o(h) {
|
|
1565
|
+
return new Promise((p) => setTimeout(p, h));
|
|
1565
1566
|
}
|
|
1566
|
-
const i =
|
|
1567
|
-
|
|
1568
|
-
!
|
|
1569
|
-
}),
|
|
1570
|
-
!
|
|
1567
|
+
const i = pe(u, "modelValue"), e = X(), r = U(e.interval), a = U(e.hasBilling ? "status" : "subscribe"), l = U(!1);
|
|
1568
|
+
W(r, (h) => {
|
|
1569
|
+
!e.isSubscriber || !e.interval || (l.value = h !== e.interval);
|
|
1570
|
+
}), W(i, async (h) => {
|
|
1571
|
+
!h || !e.isSubscriber || e.subscriptionInfo();
|
|
1571
1572
|
}), je(() => {
|
|
1572
|
-
|
|
1573
|
+
e.sessionId && (a.value = "status", i.value = !0);
|
|
1573
1574
|
});
|
|
1574
|
-
async function
|
|
1575
|
-
await
|
|
1575
|
+
async function c() {
|
|
1576
|
+
await e.modify(r.value), await e.subscriptionInfo(), l.value = null, await o(3e3), a.value = "status", await o(300), l.value = !1;
|
|
1576
1577
|
}
|
|
1577
|
-
return (
|
|
1578
|
-
const
|
|
1579
|
-
return d(),
|
|
1578
|
+
return (h, p) => {
|
|
1579
|
+
const k = re, L = Oo, m = No, y = Io, D = yo, g = ae, $ = he;
|
|
1580
|
+
return d(), _($, {
|
|
1580
1581
|
modelValue: i.value,
|
|
1581
|
-
"onUpdate:modelValue": p[4] || (p[4] = (
|
|
1582
|
-
"prepend-icon": `svg:${
|
|
1582
|
+
"onUpdate:modelValue": p[4] || (p[4] = (I) => i.value = I),
|
|
1583
|
+
"prepend-icon": `svg:${t(bt)}`,
|
|
1583
1584
|
title: "Subscriptions"
|
|
1584
1585
|
}, G({
|
|
1585
1586
|
default: n(() => [
|
|
1586
|
-
v("div",
|
|
1587
|
+
v("div", Bo, [
|
|
1587
1588
|
s(J, null, {
|
|
1588
1589
|
default: n(() => [
|
|
1589
|
-
s(
|
|
1590
|
+
s(k, {
|
|
1590
1591
|
text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
|
|
1591
1592
|
title: "Vuetify One"
|
|
1592
1593
|
}),
|
|
1593
|
-
s(
|
|
1594
|
+
s(Ee, { "model-value": a.value }, {
|
|
1594
1595
|
default: n(() => [
|
|
1595
|
-
s(
|
|
1596
|
+
s(de, { value: "subscribe" }, {
|
|
1596
1597
|
default: n(() => [
|
|
1597
|
-
s(
|
|
1598
|
+
s(L, {
|
|
1598
1599
|
modelValue: r.value,
|
|
1599
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
1600
|
+
"onUpdate:modelValue": p[0] || (p[0] = (I) => r.value = I)
|
|
1600
1601
|
}, null, 8, ["modelValue"]),
|
|
1601
|
-
|
|
1602
|
+
zo,
|
|
1602
1603
|
s(m)
|
|
1603
1604
|
]),
|
|
1604
1605
|
_: 1
|
|
1605
1606
|
}),
|
|
1606
|
-
s(
|
|
1607
|
+
s(de, { value: "status" }, {
|
|
1607
1608
|
default: n(() => [
|
|
1608
|
-
s(
|
|
1609
|
-
"onChange:subscription": p[1] || (p[1] = (
|
|
1609
|
+
s(y, {
|
|
1610
|
+
"onChange:subscription": p[1] || (p[1] = (I) => a.value = "subscribe")
|
|
1610
1611
|
}),
|
|
1611
|
-
s(
|
|
1612
|
+
s(D)
|
|
1612
1613
|
]),
|
|
1613
1614
|
_: 1
|
|
1614
1615
|
})
|
|
@@ -1625,34 +1626,34 @@ const Xe = X("settings", () => {
|
|
|
1625
1626
|
a.value === "subscribe" ? {
|
|
1626
1627
|
name: "actions",
|
|
1627
1628
|
fn: n(() => [
|
|
1628
|
-
v("div",
|
|
1629
|
-
|
|
1629
|
+
v("div", To, [
|
|
1630
|
+
l.value !== !1 ? (d(), _(g, {
|
|
1630
1631
|
key: 0,
|
|
1631
|
-
loading: e
|
|
1632
|
-
"prepend-icon": `svg:${
|
|
1633
|
-
readonly:
|
|
1634
|
-
text:
|
|
1632
|
+
loading: t(e).isLoading,
|
|
1633
|
+
"prepend-icon": `svg:${l.value !== null ? t(yt) : t(se)}`,
|
|
1634
|
+
readonly: l.value === null,
|
|
1635
|
+
text: l.value !== null ? "Modify Subscription" : "Success",
|
|
1635
1636
|
color: "success",
|
|
1636
1637
|
size: "default",
|
|
1637
1638
|
block: "",
|
|
1638
|
-
onClick:
|
|
1639
|
-
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : e
|
|
1639
|
+
onClick: c
|
|
1640
|
+
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : t(e).isSubscriber ? (d(), _(g, {
|
|
1640
1641
|
key: 2,
|
|
1641
|
-
"prepend-icon": `svg:${
|
|
1642
|
+
"prepend-icon": `svg:${t(Vt)}`,
|
|
1642
1643
|
size: "default",
|
|
1643
1644
|
text: "Manage Subscription",
|
|
1644
1645
|
block: "",
|
|
1645
|
-
onClick: p[3] || (p[3] = (
|
|
1646
|
-
}, null, 8, ["prepend-icon"])) : (d(),
|
|
1646
|
+
onClick: p[3] || (p[3] = (I) => a.value = "status")
|
|
1647
|
+
}, null, 8, ["prepend-icon"])) : (d(), _(g, {
|
|
1647
1648
|
key: 1,
|
|
1648
1649
|
color: r.value ? "primary" : "disabled",
|
|
1649
1650
|
disabled: !r.value,
|
|
1650
|
-
loading: e
|
|
1651
|
+
loading: t(e).isLoading,
|
|
1651
1652
|
"prepend-icon": "$vuetify",
|
|
1652
1653
|
size: "default",
|
|
1653
1654
|
text: "Activate Subscription",
|
|
1654
1655
|
block: "",
|
|
1655
|
-
onClick: p[2] || (p[2] = (
|
|
1656
|
+
onClick: p[2] || (p[2] = (I) => t(e).subscribe(r.value))
|
|
1656
1657
|
}, null, 8, ["color", "disabled", "loading"]))
|
|
1657
1658
|
])
|
|
1658
1659
|
]),
|
|
@@ -1661,59 +1662,59 @@ const Xe = X("settings", () => {
|
|
|
1661
1662
|
]), 1032, ["modelValue", "prepend-icon"]);
|
|
1662
1663
|
};
|
|
1663
1664
|
}
|
|
1664
|
-
}),
|
|
1665
|
+
}), Ho = /* @__PURE__ */ b({
|
|
1665
1666
|
__name: "VoSubscriptionListItem",
|
|
1666
1667
|
setup(u) {
|
|
1667
|
-
const o =
|
|
1668
|
-
return (i,
|
|
1669
|
-
const r =
|
|
1670
|
-
return d(),
|
|
1668
|
+
const o = U(!1);
|
|
1669
|
+
return (i, e) => {
|
|
1670
|
+
const r = Ro, a = Y;
|
|
1671
|
+
return d(), _(a, {
|
|
1671
1672
|
active: o.value,
|
|
1672
|
-
"prepend-icon": `svg:${
|
|
1673
|
+
"prepend-icon": `svg:${t(kt)}`,
|
|
1673
1674
|
title: "Subscriptions",
|
|
1674
1675
|
link: ""
|
|
1675
1676
|
}, {
|
|
1676
1677
|
default: n(() => [
|
|
1677
1678
|
s(r, {
|
|
1678
1679
|
modelValue: o.value,
|
|
1679
|
-
"onUpdate:modelValue":
|
|
1680
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => o.value = l)
|
|
1680
1681
|
}, null, 8, ["modelValue"])
|
|
1681
1682
|
]),
|
|
1682
1683
|
_: 1
|
|
1683
1684
|
}, 8, ["active", "prepend-icon"]);
|
|
1684
1685
|
};
|
|
1685
1686
|
}
|
|
1686
|
-
}),
|
|
1687
|
-
/* @__PURE__ */
|
|
1687
|
+
}), Mo = { class: "px-3 pb-5 d-flex flex-column" }, Po = { class: "ps-16" }, Eo = { class: "text-caption text-end" }, Wo = { class: "font-weight-bold" }, Go = { class: "ps-16" }, qo = { class: "text-caption text-end" }, Yo = { class: "font-weight-bold" }, Jo = { class: "ps-16" }, Qo = { class: "text-caption text-end" }, Xo = { class: "font-weight-bold" }, Zo = { class: "py-4" }, Ko = /* @__PURE__ */ v("div", { class: "text-caption text-medium-emphasis" }, [
|
|
1688
|
+
/* @__PURE__ */ j(" A total of $2.99 or more unlocks "),
|
|
1688
1689
|
/* @__PURE__ */ v("span", { class: "font-weight-black" }, "all"),
|
|
1689
|
-
/* @__PURE__ */
|
|
1690
|
-
], -1),
|
|
1690
|
+
/* @__PURE__ */ j(" Vuetify One benefits ")
|
|
1691
|
+
], -1), es = /* @__PURE__ */ b({
|
|
1691
1692
|
__name: "VoSponsorshipsDialog",
|
|
1692
1693
|
setup(u) {
|
|
1693
|
-
const o =
|
|
1694
|
-
function a(
|
|
1695
|
-
return o.format(
|
|
1694
|
+
const o = fe(), i = O(), e = X(), r = Ge();
|
|
1695
|
+
function a(l) {
|
|
1696
|
+
return o.format(l, "fullDateWithWeekday");
|
|
1696
1697
|
}
|
|
1697
|
-
return (
|
|
1698
|
-
const
|
|
1699
|
-
return d(),
|
|
1700
|
-
"prepend-icon": `svg:${
|
|
1698
|
+
return (l, c) => {
|
|
1699
|
+
const h = re, p = ae, k = Ne("v-empty-state"), L = he;
|
|
1700
|
+
return d(), _(L, {
|
|
1701
|
+
"prepend-icon": `svg:${t($t)}`,
|
|
1701
1702
|
"max-height": "820",
|
|
1702
1703
|
title: "Sponsorships"
|
|
1703
1704
|
}, {
|
|
1704
1705
|
default: n(() => [
|
|
1705
|
-
s(
|
|
1706
|
+
s(Ie, null, {
|
|
1706
1707
|
default: n(() => [
|
|
1707
|
-
s(
|
|
1708
|
+
s(Ae, { scrollable: "" }, {
|
|
1708
1709
|
default: n(() => [
|
|
1709
|
-
v("div",
|
|
1710
|
+
v("div", Mo, [
|
|
1710
1711
|
s(J, null, {
|
|
1711
1712
|
default: n(() => [
|
|
1712
|
-
s(
|
|
1713
|
+
s(h, {
|
|
1713
1714
|
text: "Support Vuetify through GitHub Sponsors, Discord, or Patreon to unlock exclusive benefits and content.",
|
|
1714
1715
|
title: "Support Vuetify"
|
|
1715
1716
|
}),
|
|
1716
|
-
s(
|
|
1717
|
+
s(Yt, {
|
|
1717
1718
|
class: "justify-start ms-n7",
|
|
1718
1719
|
"line-inset": "12",
|
|
1719
1720
|
side: "end",
|
|
@@ -1721,17 +1722,17 @@ const Xe = X("settings", () => {
|
|
|
1721
1722
|
"truncate-line": "both"
|
|
1722
1723
|
}, {
|
|
1723
1724
|
default: n(() => {
|
|
1724
|
-
var m,
|
|
1725
|
+
var m, y, D, g, $, I;
|
|
1725
1726
|
return [
|
|
1726
1727
|
s(Ve, {
|
|
1727
|
-
"dot-color": (m = e
|
|
1728
|
-
icon: (
|
|
1728
|
+
"dot-color": (m = t(e).github) != null && m.isActive ? "success" : "transparent",
|
|
1729
|
+
icon: (y = t(e).github) != null && y.isActive ? `svg:${t(ee)}` : void 0,
|
|
1729
1730
|
size: "x-small",
|
|
1730
1731
|
width: "100%"
|
|
1731
1732
|
}, {
|
|
1732
1733
|
default: n(() => [
|
|
1733
|
-
s(
|
|
1734
|
-
"prepend-avatar":
|
|
1734
|
+
s(T, {
|
|
1735
|
+
"prepend-avatar": t(r).CDN_URL + "/logos/github.png",
|
|
1735
1736
|
rounded: "lg",
|
|
1736
1737
|
subtitle: "Support Vuetify through GitHub sponsors.",
|
|
1737
1738
|
title: "GitHub Sponsors",
|
|
@@ -1739,44 +1740,44 @@ const Xe = X("settings", () => {
|
|
|
1739
1740
|
border: ""
|
|
1740
1741
|
}, {
|
|
1741
1742
|
append: n(() => {
|
|
1742
|
-
var
|
|
1743
|
+
var V, B, P, M, z, f;
|
|
1743
1744
|
return [
|
|
1744
|
-
v("div",
|
|
1745
|
+
v("div", Po, [
|
|
1745
1746
|
s(p, {
|
|
1746
|
-
color: (
|
|
1747
|
-
href: (
|
|
1748
|
-
"prepend-icon": `svg:${(
|
|
1749
|
-
readonly: (
|
|
1750
|
-
target: (
|
|
1751
|
-
text: (
|
|
1747
|
+
color: (V = t(e).github) != null && V.isActive ? "success" : "primary",
|
|
1748
|
+
href: (B = t(e).github) != null && B.isActive ? void 0 : "https://github.com/sponsors/johnleider",
|
|
1749
|
+
"prepend-icon": `svg:${(P = t(e).github) != null && P.isActive ? t(se) : t(De)}`,
|
|
1750
|
+
readonly: (M = t(e).github) == null ? void 0 : M.isActive,
|
|
1751
|
+
target: (z = t(e).github) != null && z.isActive ? void 0 : "_blank",
|
|
1752
|
+
text: (f = t(e).github) != null && f.isActive ? "Active" : "Info",
|
|
1752
1753
|
width: "88"
|
|
1753
1754
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
|
|
1754
1755
|
])
|
|
1755
1756
|
];
|
|
1756
1757
|
}),
|
|
1757
1758
|
default: n(() => {
|
|
1758
|
-
var
|
|
1759
|
+
var V;
|
|
1759
1760
|
return [
|
|
1760
|
-
(
|
|
1761
|
+
(V = t(e).github) != null && V.isActive ? (d(), w(F, { key: 0 }, [
|
|
1761
1762
|
s(R),
|
|
1762
1763
|
s(J, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
1763
1764
|
default: n(() => [
|
|
1764
1765
|
s(q, {
|
|
1765
|
-
"prepend-icon": `svg:${
|
|
1766
|
-
text: e
|
|
1766
|
+
"prepend-icon": `svg:${t(ye)}`,
|
|
1767
|
+
text: t(e).github.tierName,
|
|
1767
1768
|
color: "surface-variant",
|
|
1768
1769
|
size: "small",
|
|
1769
1770
|
variant: "text",
|
|
1770
1771
|
label: ""
|
|
1771
1772
|
}, null, 8, ["prepend-icon", "text"]),
|
|
1772
|
-
v("div",
|
|
1773
|
-
|
|
1774
|
-
v("span",
|
|
1773
|
+
v("div", Eo, [
|
|
1774
|
+
j(" Sponsor since "),
|
|
1775
|
+
v("span", Wo, C(a(t(e).github.createdAt)), 1)
|
|
1775
1776
|
])
|
|
1776
1777
|
]),
|
|
1777
1778
|
_: 1
|
|
1778
1779
|
})
|
|
1779
|
-
], 64)) :
|
|
1780
|
+
], 64)) : S("", !0)
|
|
1780
1781
|
];
|
|
1781
1782
|
}),
|
|
1782
1783
|
_: 1
|
|
@@ -1785,14 +1786,14 @@ const Xe = X("settings", () => {
|
|
|
1785
1786
|
_: 1
|
|
1786
1787
|
}, 8, ["dot-color", "icon"]),
|
|
1787
1788
|
s(Ve, {
|
|
1788
|
-
"dot-color": (
|
|
1789
|
-
icon: (g = e
|
|
1789
|
+
"dot-color": (D = t(e).discord) != null && D.isActive ? "success" : "transparent",
|
|
1790
|
+
icon: (g = t(e).discord) != null && g.isActive ? `svg:${t(ee)}` : void 0,
|
|
1790
1791
|
size: "x-small",
|
|
1791
1792
|
width: "100%"
|
|
1792
1793
|
}, {
|
|
1793
1794
|
default: n(() => [
|
|
1794
|
-
s(
|
|
1795
|
-
"prepend-avatar":
|
|
1795
|
+
s(T, {
|
|
1796
|
+
"prepend-avatar": t(r).CDN_URL + "/logos/discord.png",
|
|
1796
1797
|
rounded: "lg",
|
|
1797
1798
|
subtitle: "Support Vuetify through Discord.",
|
|
1798
1799
|
title: "Discord Subscriber",
|
|
@@ -1800,44 +1801,44 @@ const Xe = X("settings", () => {
|
|
|
1800
1801
|
border: ""
|
|
1801
1802
|
}, {
|
|
1802
1803
|
append: n(() => {
|
|
1803
|
-
var
|
|
1804
|
+
var V, B, P, M, z, f;
|
|
1804
1805
|
return [
|
|
1805
|
-
v("div",
|
|
1806
|
+
v("div", Go, [
|
|
1806
1807
|
s(p, {
|
|
1807
|
-
color: (
|
|
1808
|
-
href: (
|
|
1809
|
-
"prepend-icon": `svg:${(
|
|
1810
|
-
readonly: (
|
|
1811
|
-
target: (
|
|
1812
|
-
text: (
|
|
1808
|
+
color: (V = t(e).discord) != null && V.isActive ? "success" : "primary",
|
|
1809
|
+
href: (B = t(e).discord) != null && B.isActive ? void 0 : "https://discord.com/servers/vuetify-340160225338195969",
|
|
1810
|
+
"prepend-icon": `svg:${(P = t(e).discord) != null && P.isActive ? t(se) : t(De)}`,
|
|
1811
|
+
readonly: (M = t(e).discord) == null ? void 0 : M.isActive,
|
|
1812
|
+
target: (z = t(e).discord) != null && z.isActive ? void 0 : "_blank",
|
|
1813
|
+
text: (f = t(e).discord) != null && f.isActive ? "Active" : "Info",
|
|
1813
1814
|
width: "88"
|
|
1814
1815
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
|
|
1815
1816
|
])
|
|
1816
1817
|
];
|
|
1817
1818
|
}),
|
|
1818
1819
|
default: n(() => {
|
|
1819
|
-
var
|
|
1820
|
+
var V;
|
|
1820
1821
|
return [
|
|
1821
|
-
(
|
|
1822
|
+
(V = t(e).discord) != null && V.isActive ? (d(), w(F, { key: 0 }, [
|
|
1822
1823
|
s(R),
|
|
1823
1824
|
s(J, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
1824
1825
|
default: n(() => [
|
|
1825
1826
|
s(q, {
|
|
1826
|
-
"prepend-icon": `svg:${
|
|
1827
|
-
text: e
|
|
1827
|
+
"prepend-icon": `svg:${t(ye)}`,
|
|
1828
|
+
text: t(e).discord.tierName,
|
|
1828
1829
|
color: "surface-variant",
|
|
1829
1830
|
size: "small",
|
|
1830
1831
|
variant: "text",
|
|
1831
1832
|
label: ""
|
|
1832
1833
|
}, null, 8, ["prepend-icon", "text"]),
|
|
1833
|
-
v("div",
|
|
1834
|
-
|
|
1835
|
-
v("span",
|
|
1834
|
+
v("div", qo, [
|
|
1835
|
+
j(" Subscriber since "),
|
|
1836
|
+
v("span", Yo, C(a(t(e).discord.createdAt)), 1)
|
|
1836
1837
|
])
|
|
1837
1838
|
]),
|
|
1838
1839
|
_: 1
|
|
1839
1840
|
})
|
|
1840
|
-
], 64)) :
|
|
1841
|
+
], 64)) : S("", !0)
|
|
1841
1842
|
];
|
|
1842
1843
|
}),
|
|
1843
1844
|
_: 1
|
|
@@ -1846,14 +1847,14 @@ const Xe = X("settings", () => {
|
|
|
1846
1847
|
_: 1
|
|
1847
1848
|
}, 8, ["dot-color", "icon"]),
|
|
1848
1849
|
s(Ve, {
|
|
1849
|
-
"dot-color": (
|
|
1850
|
-
icon: (
|
|
1850
|
+
"dot-color": ($ = t(e).patreon) != null && $.isActive ? "success" : "transparent",
|
|
1851
|
+
icon: (I = t(e).patreon) != null && I.isActive ? `svg:${t(ee)}` : void 0,
|
|
1851
1852
|
size: "x-small",
|
|
1852
1853
|
width: "100%"
|
|
1853
1854
|
}, {
|
|
1854
1855
|
default: n(() => [
|
|
1855
|
-
s(
|
|
1856
|
-
"prepend-avatar":
|
|
1856
|
+
s(T, {
|
|
1857
|
+
"prepend-avatar": t(r).CDN_URL + "/logos/patreon.png",
|
|
1857
1858
|
rounded: "lg",
|
|
1858
1859
|
subtitle: "Support Vuetify through Patreon.",
|
|
1859
1860
|
title: "Patreon Subscriber",
|
|
@@ -1861,11 +1862,11 @@ const Xe = X("settings", () => {
|
|
|
1861
1862
|
border: ""
|
|
1862
1863
|
}, {
|
|
1863
1864
|
append: n(() => {
|
|
1864
|
-
var
|
|
1865
|
+
var V;
|
|
1865
1866
|
return [
|
|
1866
|
-
v("div",
|
|
1867
|
+
v("div", Jo, [
|
|
1867
1868
|
s(p, {
|
|
1868
|
-
text: (
|
|
1869
|
+
text: (V = t(e).patreon) != null && V.isActive ? "Active" : "Coming Soon",
|
|
1869
1870
|
color: "surface-variant",
|
|
1870
1871
|
readonly: ""
|
|
1871
1872
|
}, null, 8, ["text"])
|
|
@@ -1873,27 +1874,27 @@ const Xe = X("settings", () => {
|
|
|
1873
1874
|
];
|
|
1874
1875
|
}),
|
|
1875
1876
|
default: n(() => {
|
|
1876
|
-
var
|
|
1877
|
+
var V;
|
|
1877
1878
|
return [
|
|
1878
|
-
(
|
|
1879
|
+
(V = t(e).patreon) != null && V.isActive ? (d(), w(F, { key: 0 }, [
|
|
1879
1880
|
s(R),
|
|
1880
1881
|
s(J, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
1881
1882
|
default: n(() => [
|
|
1882
1883
|
s(q, {
|
|
1883
|
-
"prepend-icon": `svg:${
|
|
1884
|
-
text: e
|
|
1884
|
+
"prepend-icon": `svg:${t(ye)}`,
|
|
1885
|
+
text: t(e).patreon.tierName,
|
|
1885
1886
|
color: "success",
|
|
1886
1887
|
variant: "text",
|
|
1887
1888
|
label: ""
|
|
1888
1889
|
}, null, 8, ["prepend-icon", "text"]),
|
|
1889
|
-
v("div",
|
|
1890
|
-
|
|
1891
|
-
v("span",
|
|
1890
|
+
v("div", Qo, [
|
|
1891
|
+
j(" Sponsor since "),
|
|
1892
|
+
v("span", Xo, C(a(t(e).patreon.createdAt)), 1)
|
|
1892
1893
|
])
|
|
1893
1894
|
]),
|
|
1894
1895
|
_: 1
|
|
1895
1896
|
})
|
|
1896
|
-
], 64)) :
|
|
1897
|
+
], 64)) : S("", !0)
|
|
1897
1898
|
];
|
|
1898
1899
|
}),
|
|
1899
1900
|
_: 1
|
|
@@ -1908,27 +1909,27 @@ const Xe = X("settings", () => {
|
|
|
1908
1909
|
]),
|
|
1909
1910
|
_: 1
|
|
1910
1911
|
}),
|
|
1911
|
-
s(
|
|
1912
|
-
icon: `svg:${
|
|
1912
|
+
s(k, {
|
|
1913
|
+
icon: `svg:${t(xt)}`,
|
|
1913
1914
|
class: "mt-auto",
|
|
1914
1915
|
"min-height": "auto",
|
|
1915
1916
|
size: "64",
|
|
1916
1917
|
title: "Your Monthly Contributions"
|
|
1917
1918
|
}, {
|
|
1918
1919
|
media: n(() => [
|
|
1919
|
-
s(
|
|
1920
|
+
s(N, { color: "success" })
|
|
1920
1921
|
]),
|
|
1921
1922
|
headline: n(() => [
|
|
1922
|
-
v("div",
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
], 64)) : (d(), w(
|
|
1926
|
-
|
|
1923
|
+
v("div", Zo, [
|
|
1924
|
+
t(i).isSubscriber ? (d(), w(F, { key: 0 }, [
|
|
1925
|
+
j(" $" + C(parseFloat(String(t(e).monthlyTotal)).toFixed(2)), 1)
|
|
1926
|
+
], 64)) : (d(), w(F, { key: 1 }, [
|
|
1927
|
+
j(" $0.00 ")
|
|
1927
1928
|
], 64))
|
|
1928
1929
|
])
|
|
1929
1930
|
]),
|
|
1930
1931
|
text: n(() => [
|
|
1931
|
-
|
|
1932
|
+
Ko
|
|
1932
1933
|
]),
|
|
1933
1934
|
_: 1
|
|
1934
1935
|
}, 8, ["icon"])
|
|
@@ -1944,85 +1945,85 @@ const Xe = X("settings", () => {
|
|
|
1944
1945
|
}, 8, ["prepend-icon"]);
|
|
1945
1946
|
};
|
|
1946
1947
|
}
|
|
1947
|
-
}),
|
|
1948
|
+
}), ts = /* @__PURE__ */ b({
|
|
1948
1949
|
__name: "VoSponsorshipsListItem",
|
|
1949
1950
|
setup(u) {
|
|
1950
|
-
const o =
|
|
1951
|
-
return (i,
|
|
1952
|
-
const r =
|
|
1953
|
-
return d(),
|
|
1951
|
+
const o = U(!1);
|
|
1952
|
+
return (i, e) => {
|
|
1953
|
+
const r = es, a = Y;
|
|
1954
|
+
return d(), _(a, {
|
|
1954
1955
|
active: o.value,
|
|
1955
|
-
"prepend-icon": `svg:${
|
|
1956
|
+
"prepend-icon": `svg:${t(wt)}`,
|
|
1956
1957
|
title: "Sponsorships",
|
|
1957
1958
|
link: ""
|
|
1958
1959
|
}, {
|
|
1959
1960
|
default: n(() => [
|
|
1960
1961
|
s(r, {
|
|
1961
1962
|
modelValue: o.value,
|
|
1962
|
-
"onUpdate:modelValue":
|
|
1963
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => o.value = l)
|
|
1963
1964
|
}, null, 8, ["modelValue"])
|
|
1964
1965
|
]),
|
|
1965
1966
|
_: 1
|
|
1966
1967
|
}, 8, ["active", "prepend-icon"]);
|
|
1967
1968
|
};
|
|
1968
1969
|
}
|
|
1969
|
-
}),
|
|
1970
|
+
}), os = {
|
|
1970
1971
|
key: 0,
|
|
1971
1972
|
class: "pt-16"
|
|
1972
|
-
},
|
|
1973
|
+
}, ss = /* @__PURE__ */ v("div", { class: "text-medium-emphasis" }, " All caught up ", -1), ns = { class: "ps-3 text-subtitle-2 pe-2" }, is = { class: "text-truncate" }, as = { class: "text-caption font-weight-bold text-medium-emphasis" }, rs = { class: "text-disabled text-caption my-2" }, ls = /* @__PURE__ */ b({
|
|
1973
1974
|
__name: "VoNotificationsList",
|
|
1974
1975
|
props: {
|
|
1975
1976
|
items: {}
|
|
1976
1977
|
},
|
|
1977
1978
|
setup(u) {
|
|
1978
|
-
const o =
|
|
1979
|
-
function
|
|
1979
|
+
const o = H(), i = fe();
|
|
1980
|
+
function e(a) {
|
|
1980
1981
|
return o.notifications.read.includes(a);
|
|
1981
1982
|
}
|
|
1982
1983
|
function r(a) {
|
|
1983
|
-
|
|
1984
|
+
e(a.slug) ? o.notifications.read = o.notifications.read.filter((l) => l !== a.slug) : o.notifications.read.push(a.slug);
|
|
1984
1985
|
}
|
|
1985
|
-
return (a,
|
|
1986
|
-
const
|
|
1987
|
-
return d(),
|
|
1986
|
+
return (a, l) => {
|
|
1987
|
+
const c = Ne("v-empty-state"), h = Y;
|
|
1988
|
+
return d(), _(oe, {
|
|
1988
1989
|
class: "py-0",
|
|
1989
1990
|
height: "100%",
|
|
1990
1991
|
lines: "three"
|
|
1991
1992
|
}, {
|
|
1992
1993
|
default: n(() => [
|
|
1993
|
-
a.items.length ? (d(!0), w(
|
|
1994
|
+
a.items.length ? (d(!0), w(F, { key: 1 }, te(a.items, (p, k) => (d(), _(Me, {
|
|
1994
1995
|
key: p.slug
|
|
1995
1996
|
}, {
|
|
1996
|
-
default: n(({ isHovering:
|
|
1997
|
-
s(
|
|
1998
|
-
border:
|
|
1997
|
+
default: n(({ isHovering: L, props: m }) => [
|
|
1998
|
+
s(h, ce(m, {
|
|
1999
|
+
border: k !== 0 && "t",
|
|
1999
2000
|
class: "py-4 mb-0"
|
|
2000
2001
|
}), {
|
|
2001
2002
|
prepend: n(() => [
|
|
2002
|
-
v("div",
|
|
2003
|
+
v("div", ns, C(p.metadata.emoji), 1)
|
|
2003
2004
|
]),
|
|
2004
2005
|
append: n(() => [
|
|
2005
|
-
s(
|
|
2006
|
+
s(Jt, {
|
|
2006
2007
|
class: "mt-n3",
|
|
2007
2008
|
width: "56"
|
|
2008
2009
|
}, {
|
|
2009
2010
|
default: n(() => [
|
|
2010
|
-
s(
|
|
2011
|
-
text:
|
|
2011
|
+
s(Qt, {
|
|
2012
|
+
text: e(p.slug) ? "Mark as unread" : "Mark as read",
|
|
2012
2013
|
location: "bottom"
|
|
2013
2014
|
}, {
|
|
2014
|
-
activator: n(({ props:
|
|
2015
|
+
activator: n(({ props: y }) => [
|
|
2015
2016
|
s(Ce, { "hide-on-leave": "" }, {
|
|
2016
2017
|
default: n(() => [
|
|
2017
|
-
Se(s(
|
|
2018
|
-
icon: `svg:${
|
|
2018
|
+
Se(s(Q, ce(y, {
|
|
2019
|
+
icon: `svg:${e(p.slug) ? t(Ct) : t(St)}`,
|
|
2019
2020
|
class: "ms-auto",
|
|
2020
2021
|
size: "small",
|
|
2021
2022
|
variant: "text",
|
|
2022
2023
|
"mdi-email-variant": "",
|
|
2023
|
-
onClick: (
|
|
2024
|
+
onClick: (D) => r(p)
|
|
2024
2025
|
}), null, 16, ["icon", "onClick"]), [
|
|
2025
|
-
[
|
|
2026
|
+
[Oe, L]
|
|
2026
2027
|
])
|
|
2027
2028
|
]),
|
|
2028
2029
|
_: 2
|
|
@@ -2035,16 +2036,16 @@ const Xe = X("settings", () => {
|
|
|
2035
2036
|
}, 1024)
|
|
2036
2037
|
]),
|
|
2037
2038
|
default: n(() => [
|
|
2038
|
-
s(
|
|
2039
|
+
s(Rt, { class: "text-wrap text-h6 mb-1" }, {
|
|
2039
2040
|
default: n(() => [
|
|
2040
|
-
v("div",
|
|
2041
|
+
v("div", is, C(p.title), 1)
|
|
2041
2042
|
]),
|
|
2042
2043
|
_: 2
|
|
2043
2044
|
}, 1024),
|
|
2044
|
-
v("div",
|
|
2045
|
-
v("div",
|
|
2045
|
+
v("div", as, C(t(i).format(p.created_at, "fullDateWithWeekday")), 1),
|
|
2046
|
+
v("div", rs, C(p.metadata.text), 1),
|
|
2046
2047
|
s(q, {
|
|
2047
|
-
"append-icon": `svg:${
|
|
2048
|
+
"append-icon": `svg:${t(Lt)}`,
|
|
2048
2049
|
href: p.metadata.action,
|
|
2049
2050
|
text: p.metadata.action_text,
|
|
2050
2051
|
size: "small",
|
|
@@ -2052,10 +2053,10 @@ const Xe = X("settings", () => {
|
|
|
2052
2053
|
variant: "text",
|
|
2053
2054
|
border: "",
|
|
2054
2055
|
label: "",
|
|
2055
|
-
onClick: (
|
|
2056
|
+
onClick: (y) => r(p)
|
|
2056
2057
|
}, {
|
|
2057
2058
|
append: n(() => [
|
|
2058
|
-
s(
|
|
2059
|
+
s(N, { size: "12" })
|
|
2059
2060
|
]),
|
|
2060
2061
|
_: 2
|
|
2061
2062
|
}, 1032, ["append-icon", "href", "text", "onClick"])
|
|
@@ -2064,16 +2065,16 @@ const Xe = X("settings", () => {
|
|
|
2064
2065
|
}, 1040, ["border"])
|
|
2065
2066
|
]),
|
|
2066
2067
|
_: 2
|
|
2067
|
-
}, 1024))), 128)) : (d(), w("div",
|
|
2068
|
-
s(
|
|
2068
|
+
}, 1024))), 128)) : (d(), w("div", os, [
|
|
2069
|
+
s(c, {
|
|
2069
2070
|
icon: "$vuetify",
|
|
2070
2071
|
size: "256"
|
|
2071
2072
|
}, {
|
|
2072
2073
|
media: n(() => [
|
|
2073
|
-
s(
|
|
2074
|
+
s(N, { color: "medium-emphasis" })
|
|
2074
2075
|
]),
|
|
2075
2076
|
title: n(() => [
|
|
2076
|
-
|
|
2077
|
+
ss
|
|
2077
2078
|
]),
|
|
2078
2079
|
_: 1
|
|
2079
2080
|
})
|
|
@@ -2083,71 +2084,71 @@ const Xe = X("settings", () => {
|
|
|
2083
2084
|
});
|
|
2084
2085
|
};
|
|
2085
2086
|
}
|
|
2086
|
-
}),
|
|
2087
|
-
const u = _e(), o =
|
|
2088
|
-
async function
|
|
2087
|
+
}), qe = K("notifications", () => {
|
|
2088
|
+
const u = _e(), o = H(), i = Z([]), e = U(!1), r = A(() => i.value.filter((c) => !o.notifications.read.includes(c.slug))), a = A(() => i.value.filter((c) => o.notifications.read.includes(c.slug)));
|
|
2089
|
+
async function l() {
|
|
2089
2090
|
try {
|
|
2090
|
-
|
|
2091
|
-
const
|
|
2092
|
-
i.value =
|
|
2091
|
+
e.value = !0;
|
|
2092
|
+
const c = await u.get("/one/notifications");
|
|
2093
|
+
i.value = c.notifications;
|
|
2093
2094
|
} catch {
|
|
2094
2095
|
} finally {
|
|
2095
|
-
|
|
2096
|
+
e.value = !1;
|
|
2096
2097
|
}
|
|
2097
2098
|
return i.value;
|
|
2098
2099
|
}
|
|
2099
2100
|
return {
|
|
2100
|
-
isLoading:
|
|
2101
|
+
isLoading: e,
|
|
2101
2102
|
all: i,
|
|
2102
|
-
get:
|
|
2103
|
+
get: l,
|
|
2103
2104
|
read: a,
|
|
2104
2105
|
unread: r
|
|
2105
2106
|
};
|
|
2106
|
-
}),
|
|
2107
|
+
}), cs = { class: "text-caption" }, us = /* @__PURE__ */ b({
|
|
2107
2108
|
__name: "VoNotificationsDialog",
|
|
2108
2109
|
setup(u) {
|
|
2109
|
-
const o =
|
|
2110
|
-
return (a,
|
|
2111
|
-
const
|
|
2112
|
-
return d(),
|
|
2110
|
+
const o = qe(), i = He(), e = U(["0"]), r = U(!1);
|
|
2111
|
+
return (a, l) => {
|
|
2112
|
+
const c = Y, h = ls, p = he;
|
|
2113
|
+
return d(), _(p, {
|
|
2113
2114
|
modelValue: r.value,
|
|
2114
|
-
"onUpdate:modelValue":
|
|
2115
|
-
"prepend-icon": `svg:${
|
|
2115
|
+
"onUpdate:modelValue": l[2] || (l[2] = (k) => r.value = k),
|
|
2116
|
+
"prepend-icon": `svg:${t(It)}`,
|
|
2116
2117
|
title: "Notifications"
|
|
2117
2118
|
}, {
|
|
2118
2119
|
default: n(() => [
|
|
2119
|
-
s(
|
|
2120
|
+
s(Ie, null, {
|
|
2120
2121
|
default: n(() => [
|
|
2121
|
-
s(
|
|
2122
|
-
location:
|
|
2123
|
-
width:
|
|
2122
|
+
s(Xt, {
|
|
2123
|
+
location: t(i).mobile.value ? "top" : "start",
|
|
2124
|
+
width: t(i).mobile.value ? 128 : 168,
|
|
2124
2125
|
permanent: ""
|
|
2125
2126
|
}, {
|
|
2126
2127
|
default: n(() => [
|
|
2127
|
-
s(
|
|
2128
|
-
selected:
|
|
2129
|
-
"onUpdate:selected":
|
|
2128
|
+
s(oe, {
|
|
2129
|
+
selected: e.value,
|
|
2130
|
+
"onUpdate:selected": l[0] || (l[0] = (k) => e.value = k),
|
|
2130
2131
|
class: "px-4 pt-4",
|
|
2131
2132
|
density: "compact",
|
|
2132
2133
|
mandatory: "",
|
|
2133
2134
|
nav: ""
|
|
2134
2135
|
}, {
|
|
2135
2136
|
default: n(() => [
|
|
2136
|
-
s(
|
|
2137
|
-
"prepend-icon": `svg:${
|
|
2137
|
+
s(c, {
|
|
2138
|
+
"prepend-icon": `svg:${t(At)}`,
|
|
2138
2139
|
title: "Unread",
|
|
2139
2140
|
value: "0"
|
|
2140
2141
|
}, G({ _: 2 }, [
|
|
2141
|
-
|
|
2142
|
+
t(o).unread.length > 0 ? {
|
|
2142
2143
|
name: "append",
|
|
2143
2144
|
fn: n(() => [
|
|
2144
|
-
v("span",
|
|
2145
|
+
v("span", cs, C(t(o).unread.length), 1)
|
|
2145
2146
|
]),
|
|
2146
2147
|
key: "0"
|
|
2147
2148
|
} : void 0
|
|
2148
2149
|
]), 1032, ["prepend-icon"]),
|
|
2149
|
-
s(
|
|
2150
|
-
"prepend-icon": `svg:${
|
|
2150
|
+
s(c, {
|
|
2151
|
+
"prepend-icon": `svg:${t(Dt)}`,
|
|
2151
2152
|
title: "Read",
|
|
2152
2153
|
value: "1",
|
|
2153
2154
|
"mdi-archive-outline": ""
|
|
@@ -2158,25 +2159,25 @@ const Xe = X("settings", () => {
|
|
|
2158
2159
|
]),
|
|
2159
2160
|
_: 1
|
|
2160
2161
|
}, 8, ["location", "width"]),
|
|
2161
|
-
s(
|
|
2162
|
+
s(Ae, { scrollable: "" }, {
|
|
2162
2163
|
default: n(() => [
|
|
2163
|
-
s(
|
|
2164
|
-
modelValue:
|
|
2165
|
-
"onUpdate:modelValue":
|
|
2164
|
+
s(Ee, {
|
|
2165
|
+
modelValue: e.value,
|
|
2166
|
+
"onUpdate:modelValue": l[1] || (l[1] = (k) => e.value = k)
|
|
2166
2167
|
}, {
|
|
2167
2168
|
default: n(() => [
|
|
2168
|
-
s(
|
|
2169
|
+
s(de, { value: "0" }, {
|
|
2169
2170
|
default: n(() => [
|
|
2170
|
-
s(
|
|
2171
|
-
items:
|
|
2171
|
+
s(h, {
|
|
2172
|
+
items: t(o).unread
|
|
2172
2173
|
}, null, 8, ["items"])
|
|
2173
2174
|
]),
|
|
2174
2175
|
_: 1
|
|
2175
2176
|
}),
|
|
2176
|
-
s(
|
|
2177
|
+
s(de, { value: "1" }, {
|
|
2177
2178
|
default: n(() => [
|
|
2178
|
-
s(
|
|
2179
|
-
items:
|
|
2179
|
+
s(h, {
|
|
2180
|
+
items: t(o).read
|
|
2180
2181
|
}, null, 8, ["items"])
|
|
2181
2182
|
]),
|
|
2182
2183
|
_: 1
|
|
@@ -2195,66 +2196,66 @@ const Xe = X("settings", () => {
|
|
|
2195
2196
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2196
2197
|
};
|
|
2197
2198
|
}
|
|
2198
|
-
}),
|
|
2199
|
+
}), ds = /* @__PURE__ */ b({
|
|
2199
2200
|
__name: "VoNotificationsListItem",
|
|
2200
2201
|
setup(u) {
|
|
2201
|
-
const o =
|
|
2202
|
+
const o = H(), i = qe(), e = U(!1);
|
|
2202
2203
|
return je(async () => {
|
|
2203
2204
|
await i.get();
|
|
2204
2205
|
}), (r, a) => {
|
|
2205
|
-
const
|
|
2206
|
-
return
|
|
2206
|
+
const l = us, c = Y;
|
|
2207
|
+
return t(o).notifications.show ? (d(), _(c, {
|
|
2207
2208
|
key: 0,
|
|
2208
|
-
active:
|
|
2209
|
-
"prepend-icon": `svg:${
|
|
2209
|
+
active: e.value,
|
|
2210
|
+
"prepend-icon": `svg:${t(Ut)}`,
|
|
2210
2211
|
title: "Notifications",
|
|
2211
2212
|
link: ""
|
|
2212
2213
|
}, G({
|
|
2213
2214
|
default: n(() => [
|
|
2214
|
-
s(
|
|
2215
|
-
modelValue:
|
|
2216
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2215
|
+
s(l, {
|
|
2216
|
+
modelValue: e.value,
|
|
2217
|
+
"onUpdate:modelValue": a[0] || (a[0] = (h) => e.value = h)
|
|
2217
2218
|
}, null, 8, ["modelValue"])
|
|
2218
2219
|
]),
|
|
2219
2220
|
_: 2
|
|
2220
2221
|
}, [
|
|
2221
|
-
|
|
2222
|
+
t(i).unread.length ? {
|
|
2222
2223
|
name: "prepend",
|
|
2223
2224
|
fn: n(() => [
|
|
2224
|
-
s(
|
|
2225
|
-
content:
|
|
2225
|
+
s(Zt, {
|
|
2226
|
+
content: t(i).unread.length,
|
|
2226
2227
|
color: "error"
|
|
2227
2228
|
}, {
|
|
2228
2229
|
default: n(() => [
|
|
2229
|
-
s(
|
|
2230
|
+
s(N)
|
|
2230
2231
|
]),
|
|
2231
2232
|
_: 1
|
|
2232
2233
|
}, 8, ["content"])
|
|
2233
2234
|
]),
|
|
2234
2235
|
key: "0"
|
|
2235
2236
|
} : void 0
|
|
2236
|
-
]), 1032, ["active", "prepend-icon"])) :
|
|
2237
|
+
]), 1032, ["active", "prepend-icon"])) : S("", !0);
|
|
2237
2238
|
};
|
|
2238
2239
|
}
|
|
2239
|
-
}),
|
|
2240
|
+
}), ps = /* @__PURE__ */ b({
|
|
2240
2241
|
__name: "VoDashboardListItem",
|
|
2241
2242
|
setup(u) {
|
|
2242
2243
|
return (o, i) => {
|
|
2243
|
-
const
|
|
2244
|
-
return d(),
|
|
2245
|
-
"prepend-icon": `svg:${
|
|
2244
|
+
const e = Y;
|
|
2245
|
+
return d(), _(e, {
|
|
2246
|
+
"prepend-icon": `svg:${t(Ft)}`,
|
|
2246
2247
|
title: "Dashboard",
|
|
2247
2248
|
to: "/user/dashboard"
|
|
2248
2249
|
}, null, 8, ["prepend-icon"]);
|
|
2249
2250
|
};
|
|
2250
2251
|
}
|
|
2251
|
-
}),
|
|
2252
|
+
}), ms = /* @__PURE__ */ b({
|
|
2252
2253
|
__name: "VoUserList",
|
|
2253
2254
|
setup(u) {
|
|
2254
|
-
const o =
|
|
2255
|
-
return (i,
|
|
2256
|
-
const r =
|
|
2257
|
-
return d(),
|
|
2255
|
+
const o = O();
|
|
2256
|
+
return (i, e) => {
|
|
2257
|
+
const r = ps, a = ds, l = ts, c = Ho, h = go, p = po;
|
|
2258
|
+
return d(), _(oe, {
|
|
2258
2259
|
density: "compact",
|
|
2259
2260
|
nav: "",
|
|
2260
2261
|
slim: ""
|
|
@@ -2262,58 +2263,58 @@ const Xe = X("settings", () => {
|
|
|
2262
2263
|
default: n(() => [
|
|
2263
2264
|
s(r),
|
|
2264
2265
|
s(a),
|
|
2265
|
-
s(
|
|
2266
|
-
|
|
2267
|
-
s(
|
|
2268
|
-
|
|
2266
|
+
s(l),
|
|
2267
|
+
t(o).user ? (d(), _(c, { key: 0 })) : S("", !0),
|
|
2268
|
+
s(h),
|
|
2269
|
+
t(o).user ? (d(), _(p, { key: 1 })) : S("", !0)
|
|
2269
2270
|
]),
|
|
2270
2271
|
_: 1
|
|
2271
2272
|
});
|
|
2272
2273
|
};
|
|
2273
2274
|
}
|
|
2274
|
-
}),
|
|
2275
|
+
}), fs = { key: 0 }, vs = { class: "d-flex align-center justify-center pa-1 ga-2" }, _s = /* @__PURE__ */ b({
|
|
2275
2276
|
__name: "VoUserQuickActions",
|
|
2276
2277
|
setup(u) {
|
|
2277
|
-
const o =
|
|
2278
|
-
return (i,
|
|
2278
|
+
const o = H();
|
|
2279
|
+
return (i, e) => (d(), _(ie, null, {
|
|
2279
2280
|
default: n(() => [
|
|
2280
|
-
|
|
2281
|
-
v("div",
|
|
2282
|
-
s(
|
|
2283
|
-
color:
|
|
2281
|
+
t(o).quickbar ? (d(), w("div", fs, [
|
|
2282
|
+
v("div", vs, [
|
|
2283
|
+
s(Q, {
|
|
2284
|
+
color: t(o).colors.one,
|
|
2284
2285
|
class: "text-caption",
|
|
2285
2286
|
density: "comfortable",
|
|
2286
2287
|
href: "https://play.vuetifyjs.com",
|
|
2287
2288
|
icon: "$vuetify-play",
|
|
2288
2289
|
target: "_blank"
|
|
2289
2290
|
}, null, 8, ["color"]),
|
|
2290
|
-
s(
|
|
2291
|
-
color:
|
|
2292
|
-
icon: `svg:${
|
|
2291
|
+
s(Q, {
|
|
2292
|
+
color: t(o).colors.one,
|
|
2293
|
+
icon: `svg:${t(jt)}`,
|
|
2293
2294
|
class: "text-caption",
|
|
2294
2295
|
density: "comfortable",
|
|
2295
2296
|
href: "https://bin.vuetifyjs.com",
|
|
2296
2297
|
target: "_blank"
|
|
2297
2298
|
}, null, 8, ["color", "icon"]),
|
|
2298
|
-
s(
|
|
2299
|
-
color:
|
|
2300
|
-
icon: `svg:${
|
|
2299
|
+
s(Q, {
|
|
2300
|
+
color: t(o).colors.one,
|
|
2301
|
+
icon: `svg:${t(Nt)}`,
|
|
2301
2302
|
class: "text-caption",
|
|
2302
2303
|
density: "comfortable",
|
|
2303
2304
|
href: "https://issues.vuetifyjs.com",
|
|
2304
2305
|
target: "_blank"
|
|
2305
2306
|
}, null, 8, ["color", "icon"])
|
|
2306
2307
|
])
|
|
2307
|
-
])) :
|
|
2308
|
+
])) : S("", !0)
|
|
2308
2309
|
]),
|
|
2309
2310
|
_: 1
|
|
2310
2311
|
}));
|
|
2311
2312
|
}
|
|
2312
|
-
}),
|
|
2313
|
+
}), hs = { class: "mb-2" }, gs = { key: 0 }, bs = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, ys = { class: "text-h6" }, Vs = /* @__PURE__ */ b({
|
|
2313
2314
|
__name: "VoUserAvatar",
|
|
2314
2315
|
setup(u) {
|
|
2315
|
-
const o =
|
|
2316
|
-
const
|
|
2316
|
+
const o = O(), i = H(), e = U(!1), r = A(() => {
|
|
2317
|
+
const c = [
|
|
2317
2318
|
"https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
2318
2319
|
"https://cdn.vuetifyjs.com/docs/images/avatars/grass.png",
|
|
2319
2320
|
"https://cdn.vuetifyjs.com/docs/images/avatars/wood.png",
|
|
@@ -2329,35 +2330,35 @@ const Xe = X("settings", () => {
|
|
|
2329
2330
|
"https://cdn.vuetifyjs.com/docs/images/avatars/meteor.png",
|
|
2330
2331
|
"https://cdn.vuetifyjs.com/docs/images/avatars/tada.png"
|
|
2331
2332
|
];
|
|
2332
|
-
return o.user &&
|
|
2333
|
+
return o.user && c.unshift(o.user.picture), c;
|
|
2333
2334
|
});
|
|
2334
|
-
function a(
|
|
2335
|
-
i.avatar =
|
|
2335
|
+
function a(c) {
|
|
2336
|
+
i.avatar = c;
|
|
2336
2337
|
}
|
|
2337
|
-
function
|
|
2338
|
-
o.isSubscriber && (
|
|
2338
|
+
function l() {
|
|
2339
|
+
o.isSubscriber && (e.value = !e.value);
|
|
2339
2340
|
}
|
|
2340
|
-
return (
|
|
2341
|
+
return (c, h) => {
|
|
2341
2342
|
var p;
|
|
2342
2343
|
return d(), w("div", null, [
|
|
2343
|
-
Se((d(),
|
|
2344
|
-
class:
|
|
2344
|
+
Se((d(), _(ue, {
|
|
2345
|
+
class: Ke([
|
|
2345
2346
|
"border-md border-opacity-100 border-surface-variant",
|
|
2346
2347
|
{
|
|
2347
|
-
"cursor-pointer":
|
|
2348
|
+
"cursor-pointer": t(o).isSubscriber
|
|
2348
2349
|
}
|
|
2349
2350
|
]),
|
|
2350
2351
|
color: "surface",
|
|
2351
2352
|
size: "72",
|
|
2352
2353
|
text: "Foobar",
|
|
2353
|
-
onClick:
|
|
2354
|
+
onClick: Fe(l, ["prevent", "stop"])
|
|
2354
2355
|
}, {
|
|
2355
2356
|
default: n(() => [
|
|
2356
|
-
|
|
2357
|
+
t(o).user && t(i).avatar ? (d(), _(Le, {
|
|
2357
2358
|
key: 0,
|
|
2358
|
-
src:
|
|
2359
|
+
src: t(i).avatar,
|
|
2359
2360
|
alt: "User avatar"
|
|
2360
|
-
}, null, 8, ["src"])) : (d(),
|
|
2361
|
+
}, null, 8, ["src"])) : (d(), _(N, {
|
|
2361
2362
|
key: 1,
|
|
2362
2363
|
class: "mt-1",
|
|
2363
2364
|
icon: "$vuetify",
|
|
@@ -2366,29 +2367,29 @@ const Xe = X("settings", () => {
|
|
|
2366
2367
|
]),
|
|
2367
2368
|
_: 1
|
|
2368
2369
|
}, 8, ["class"])), [
|
|
2369
|
-
[
|
|
2370
|
+
[Kt, t(o).isSubscriber]
|
|
2370
2371
|
]),
|
|
2371
|
-
v("div",
|
|
2372
|
-
s(
|
|
2372
|
+
v("div", hs, [
|
|
2373
|
+
s(ie, null, {
|
|
2373
2374
|
default: n(() => [
|
|
2374
|
-
|
|
2375
|
-
s(
|
|
2375
|
+
e.value ? (d(), w("div", gs, [
|
|
2376
|
+
s(T, {
|
|
2376
2377
|
class: "pt-6 pb-1",
|
|
2377
2378
|
rounded: "0",
|
|
2378
2379
|
flat: ""
|
|
2379
2380
|
}, {
|
|
2380
2381
|
default: n(() => [
|
|
2381
|
-
v("div",
|
|
2382
|
-
(d(!0), w(
|
|
2383
|
-
key:
|
|
2384
|
-
active:
|
|
2382
|
+
v("div", bs, [
|
|
2383
|
+
(d(!0), w(F, null, te(r.value, (k, L) => (d(), _(Q, {
|
|
2384
|
+
key: L,
|
|
2385
|
+
active: t(i).avatar === k,
|
|
2385
2386
|
variant: "flat",
|
|
2386
2387
|
icon: "",
|
|
2387
|
-
onClick: (m) => a(
|
|
2388
|
+
onClick: (m) => a(k)
|
|
2388
2389
|
}, {
|
|
2389
2390
|
default: n(() => [
|
|
2390
|
-
s(
|
|
2391
|
-
image:
|
|
2391
|
+
s(ue, {
|
|
2392
|
+
image: k,
|
|
2392
2393
|
eager: ""
|
|
2393
2394
|
}, null, 8, ["image"])
|
|
2394
2395
|
]),
|
|
@@ -2398,27 +2399,27 @@ const Xe = X("settings", () => {
|
|
|
2398
2399
|
]),
|
|
2399
2400
|
_: 1
|
|
2400
2401
|
})
|
|
2401
|
-
])) :
|
|
2402
|
+
])) : S("", !0)
|
|
2402
2403
|
]),
|
|
2403
2404
|
_: 1
|
|
2404
2405
|
})
|
|
2405
2406
|
]),
|
|
2406
|
-
v("div",
|
|
2407
|
+
v("div", ys, C(((p = t(o).user) == null ? void 0 : p.name) ?? "Guest"), 1)
|
|
2407
2408
|
]);
|
|
2408
2409
|
};
|
|
2409
2410
|
}
|
|
2410
|
-
}),
|
|
2411
|
+
}), ks = { class: "d-flex" }, $s = { key: "reset" }, xs = /* @__PURE__ */ b({
|
|
2411
2412
|
__name: "VoUserColors",
|
|
2412
2413
|
setup(u) {
|
|
2413
|
-
const o =
|
|
2414
|
+
const o = O(), i = H(), e = U(!1);
|
|
2414
2415
|
function r() {
|
|
2415
2416
|
i.colors.one = "surface-light";
|
|
2416
2417
|
}
|
|
2417
|
-
return (a,
|
|
2418
|
-
const
|
|
2419
|
-
return d(), w(
|
|
2420
|
-
s(
|
|
2421
|
-
color:
|
|
2418
|
+
return (a, l) => {
|
|
2419
|
+
const c = ae;
|
|
2420
|
+
return d(), w(F, null, [
|
|
2421
|
+
s(Le, {
|
|
2422
|
+
color: t(o).user ? t(i).colors.one : "surface-light",
|
|
2422
2423
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
2423
2424
|
height: "88",
|
|
2424
2425
|
rounded: "0",
|
|
@@ -2426,40 +2427,40 @@ const Xe = X("settings", () => {
|
|
|
2426
2427
|
flat: ""
|
|
2427
2428
|
}, {
|
|
2428
2429
|
default: n(() => [
|
|
2429
|
-
v("div",
|
|
2430
|
-
|
|
2430
|
+
v("div", ks, [
|
|
2431
|
+
t(o).isSubscriber ? (d(), _(c, {
|
|
2431
2432
|
key: 0,
|
|
2432
|
-
active:
|
|
2433
|
-
icon:
|
|
2434
|
-
variant:
|
|
2433
|
+
active: e.value,
|
|
2434
|
+
icon: e.value ? `svg:${t(ee)}` : "$edit",
|
|
2435
|
+
variant: e.value ? "text" : "plain",
|
|
2435
2436
|
color: "inherit",
|
|
2436
|
-
onClick:
|
|
2437
|
+
onClick: l[0] || (l[0] = (h) => e.value = !e.value)
|
|
2437
2438
|
}, {
|
|
2438
2439
|
default: n(() => [
|
|
2439
2440
|
s(Ce, { "leave-absolute": "" }, {
|
|
2440
2441
|
default: n(() => [
|
|
2441
|
-
(d(),
|
|
2442
|
-
key: String(
|
|
2442
|
+
(d(), _(N, {
|
|
2443
|
+
key: String(e.value)
|
|
2443
2444
|
}))
|
|
2444
2445
|
]),
|
|
2445
2446
|
_: 1
|
|
2446
2447
|
})
|
|
2447
2448
|
]),
|
|
2448
2449
|
_: 1
|
|
2449
|
-
}, 8, ["active", "icon", "variant"])) :
|
|
2450
|
-
s(
|
|
2450
|
+
}, 8, ["active", "icon", "variant"])) : S("", !0),
|
|
2451
|
+
s(Mt, null, {
|
|
2451
2452
|
default: n(() => [
|
|
2452
|
-
Se(v("div",
|
|
2453
|
-
s(
|
|
2454
|
-
disabled:
|
|
2455
|
-
icon: `svg:${
|
|
2453
|
+
Se(v("div", $s, [
|
|
2454
|
+
s(c, {
|
|
2455
|
+
disabled: t(i).colors.one === "surface-light",
|
|
2456
|
+
icon: `svg:${t(Ot)}`,
|
|
2456
2457
|
class: "ms-1",
|
|
2457
2458
|
color: "inherit",
|
|
2458
2459
|
variant: "text",
|
|
2459
2460
|
onClick: r
|
|
2460
2461
|
}, null, 8, ["disabled", "icon"])
|
|
2461
2462
|
], 512), [
|
|
2462
|
-
[
|
|
2463
|
+
[Oe, e.value]
|
|
2463
2464
|
])
|
|
2464
2465
|
]),
|
|
2465
2466
|
_: 1
|
|
@@ -2468,11 +2469,11 @@ const Xe = X("settings", () => {
|
|
|
2468
2469
|
]),
|
|
2469
2470
|
_: 1
|
|
2470
2471
|
}, 8, ["color"]),
|
|
2471
|
-
s(
|
|
2472
|
+
s(ie, null, {
|
|
2472
2473
|
default: n(() => [
|
|
2473
|
-
|
|
2474
|
+
e.value ? (d(), _(eo, {
|
|
2474
2475
|
key: 0,
|
|
2475
|
-
"model-value":
|
|
2476
|
+
"model-value": t(i).colors.one !== "surface-light" ? t(i).colors.one : void 0,
|
|
2476
2477
|
elevation: "0",
|
|
2477
2478
|
height: "250",
|
|
2478
2479
|
rounded: "0",
|
|
@@ -2482,182 +2483,98 @@ const Xe = X("settings", () => {
|
|
|
2482
2483
|
"hide-inputs": "",
|
|
2483
2484
|
"hide-sliders": "",
|
|
2484
2485
|
"show-swatches": "",
|
|
2485
|
-
"onUpdate:modelValue":
|
|
2486
|
-
}, null, 8, ["model-value"])) :
|
|
2486
|
+
"onUpdate:modelValue": l[1] || (l[1] = (h) => t(i).colors.one = h)
|
|
2487
|
+
}, null, 8, ["model-value"])) : S("", !0)
|
|
2487
2488
|
]),
|
|
2488
2489
|
_: 1
|
|
2489
2490
|
})
|
|
2490
2491
|
], 64);
|
|
2491
2492
|
};
|
|
2492
2493
|
}
|
|
2493
|
-
}),
|
|
2494
|
+
}), ws = { class: "text-center mt-n9 mb-4" }, Ss = /* @__PURE__ */ b({
|
|
2494
2495
|
__name: "VoUserMenu",
|
|
2495
2496
|
setup(u) {
|
|
2496
|
-
const o =
|
|
2497
|
-
return
|
|
2498
|
-
r
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
}, {
|
|
2508
|
-
default: n(() => [
|
|
2509
|
-
s(c),
|
|
2510
|
-
v("div", Ls, [
|
|
2511
|
-
s(l),
|
|
2512
|
-
s(f)
|
|
2513
|
-
]),
|
|
2514
|
-
s(R),
|
|
2515
|
-
s(p),
|
|
2516
|
-
s(R),
|
|
2517
|
-
s(y)
|
|
2518
|
-
]),
|
|
2519
|
-
_: 1
|
|
2520
|
-
});
|
|
2521
|
-
};
|
|
2522
|
-
}
|
|
2523
|
-
}), As = /* @__PURE__ */ V({
|
|
2524
|
-
__name: "VoUserBtn",
|
|
2525
|
-
setup(u) {
|
|
2526
|
-
const o = N(), i = z();
|
|
2527
|
-
return (t, r) => {
|
|
2528
|
-
const a = Ke;
|
|
2529
|
-
return d(), h(E, {
|
|
2530
|
-
loading: e(o).isLoading,
|
|
2531
|
-
class: "vo-user-btn",
|
|
2532
|
-
icon: ""
|
|
2497
|
+
const o = X();
|
|
2498
|
+
return (i, e) => {
|
|
2499
|
+
const r = xs, a = Vs, l = _s, c = ms, h = uo;
|
|
2500
|
+
return d(), _(to, {
|
|
2501
|
+
modelValue: t(o).isOpen,
|
|
2502
|
+
"onUpdate:modelValue": e[0] || (e[0] = (p) => t(o).isOpen = p),
|
|
2503
|
+
"close-on-click": !1,
|
|
2504
|
+
"close-on-content-click": !1,
|
|
2505
|
+
activator: "parent",
|
|
2506
|
+
location: "bottom end",
|
|
2507
|
+
eager: ""
|
|
2533
2508
|
}, {
|
|
2534
|
-
loader: n(() => [
|
|
2535
|
-
s(we, { type: "avatar" })
|
|
2536
|
-
]),
|
|
2537
2509
|
default: n(() => [
|
|
2538
|
-
s(
|
|
2539
|
-
"
|
|
2540
|
-
"
|
|
2541
|
-
|
|
2542
|
-
activator: "parent",
|
|
2543
|
-
location: "bottom end"
|
|
2510
|
+
s(T, {
|
|
2511
|
+
rounded: "lg",
|
|
2512
|
+
width: "280",
|
|
2513
|
+
border: ""
|
|
2544
2514
|
}, {
|
|
2545
2515
|
default: n(() => [
|
|
2546
|
-
s(
|
|
2516
|
+
s(r),
|
|
2517
|
+
v("div", ws, [
|
|
2518
|
+
s(a),
|
|
2519
|
+
s(l)
|
|
2520
|
+
]),
|
|
2521
|
+
s(R),
|
|
2522
|
+
s(c),
|
|
2523
|
+
s(R),
|
|
2524
|
+
s(h)
|
|
2547
2525
|
]),
|
|
2548
2526
|
_: 1
|
|
2549
|
-
}
|
|
2550
|
-
e(o).user ? (d(), h(ce, {
|
|
2551
|
-
key: 0,
|
|
2552
|
-
image: e(i).avatar || e(o).user.picture || ""
|
|
2553
|
-
}, null, 8, ["image"])) : C("", !0)
|
|
2527
|
+
})
|
|
2554
2528
|
]),
|
|
2555
2529
|
_: 1
|
|
2556
|
-
}, 8, ["
|
|
2530
|
+
}, 8, ["modelValue"]);
|
|
2557
2531
|
};
|
|
2558
2532
|
}
|
|
2559
|
-
})
|
|
2560
|
-
const et = (u, o) => {
|
|
2561
|
-
const i = u.__vccOpts || u;
|
|
2562
|
-
for (const [t, r] of o)
|
|
2563
|
-
i[t] = r;
|
|
2564
|
-
return i;
|
|
2565
|
-
}, tt = /* @__PURE__ */ et(As, [["__scopeId", "data-v-66be3e26"]]), Is = /* @__PURE__ */ V({
|
|
2533
|
+
}), Cs = { key: 0 }, Ls = /* @__PURE__ */ b({
|
|
2566
2534
|
__name: "VoAuthBtn",
|
|
2567
2535
|
props: {
|
|
2568
2536
|
external: Boolean
|
|
2569
2537
|
},
|
|
2570
2538
|
setup(u) {
|
|
2571
|
-
const o =
|
|
2572
|
-
return (
|
|
2573
|
-
const
|
|
2574
|
-
return d(),
|
|
2575
|
-
|
|
2576
|
-
!e(o).user && !e(o).isLoading ? (d(), h(E, se({ key: 0 }, {
|
|
2577
|
-
...f,
|
|
2578
|
-
[`${e(i) ? "append-" : ""}icon`]: `svg:${e(Re)}`,
|
|
2579
|
-
text: e(i) ? "Login" : void 0
|
|
2580
|
-
}, {
|
|
2581
|
-
rounded: e(t),
|
|
2582
|
-
class: "text-none",
|
|
2583
|
-
color: "primary",
|
|
2584
|
-
variant: "outlined"
|
|
2585
|
-
}), null, 16, ["rounded"])) : (d(), h(c, { key: 1 }))
|
|
2586
|
-
]),
|
|
2587
|
-
default: n(() => [
|
|
2588
|
-
s(l)
|
|
2589
|
-
]),
|
|
2590
|
-
_: 1
|
|
2591
|
-
});
|
|
2592
|
-
};
|
|
2593
|
-
}
|
|
2594
|
-
}), Ds = { class: "text-center mb-6" }, Us = /* @__PURE__ */ V({
|
|
2595
|
-
__name: "VoAuthDialog",
|
|
2596
|
-
setup(u) {
|
|
2597
|
-
const o = N(), { mdAndDown: i, lgAndUp: t } = Le(), r = Pe();
|
|
2598
|
-
return (a, c) => {
|
|
2599
|
-
const l = Je, f = Ye, p = tt;
|
|
2600
|
-
return !e(o).user && !e(o).isLoading ? (d(), h(Me, {
|
|
2601
|
-
key: 0,
|
|
2602
|
-
"max-width": "480"
|
|
2539
|
+
const o = O(), i = X(), e = H(), { lgAndUp: r, mdAndDown: a } = He();
|
|
2540
|
+
return (l, c) => {
|
|
2541
|
+
const h = Ss, p = ae;
|
|
2542
|
+
return d(), _(p, ce({
|
|
2543
|
+
[`${t(r) ? "append-" : ""}icon`]: t(o).user ? void 0 : `svg:${t(Bt)}`
|
|
2603
2544
|
}, {
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
}), null, 16, ["rounded"])
|
|
2545
|
+
color: t(i).isOpen ? "primary" : "surface-light",
|
|
2546
|
+
icon: t(o).user,
|
|
2547
|
+
rounded: t(a),
|
|
2548
|
+
class: "vo-auth-btn",
|
|
2549
|
+
size: "default",
|
|
2550
|
+
variant: "outlined",
|
|
2551
|
+
active: ""
|
|
2552
|
+
}), {
|
|
2553
|
+
loader: n(() => [
|
|
2554
|
+
s(we, { type: "avatar" })
|
|
2615
2555
|
]),
|
|
2616
2556
|
default: n(() => [
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
}, null, 8, ["src"]),
|
|
2624
|
-
v("div", Ds, [
|
|
2625
|
-
s(Gt, { class: "text-h5 mb-1 text-md-h4 font-weight-bold" }, {
|
|
2626
|
-
default: n(() => [
|
|
2627
|
-
F(S(e(o).lastLoginProvider() ? "Welcome Back" : "Log in to Vuetify"), 1)
|
|
2628
|
-
]),
|
|
2629
|
-
_: 1
|
|
2630
|
-
}),
|
|
2631
|
-
s(qt, { class: "text-wrap" }, {
|
|
2632
|
-
default: n(() => [
|
|
2633
|
-
F(" Sign in with GitHub or Discord to save your settings and unlock exclusive subscriber perks. ")
|
|
2634
|
-
]),
|
|
2635
|
-
_: 1
|
|
2636
|
-
})
|
|
2637
|
-
]),
|
|
2638
|
-
s(Q, {
|
|
2639
|
-
class: "mx-auto",
|
|
2640
|
-
"max-width": "300",
|
|
2641
|
-
width: "100%"
|
|
2642
|
-
}, {
|
|
2643
|
-
default: n(() => [
|
|
2644
|
-
s(l, { class: "mb-3" }),
|
|
2645
|
-
s(f)
|
|
2646
|
-
]),
|
|
2647
|
-
_: 1
|
|
2648
|
-
})
|
|
2649
|
-
]),
|
|
2650
|
-
_: 1
|
|
2651
|
-
})
|
|
2557
|
+
t(o).user ? S("", !0) : (d(), w("span", Cs, "Login")),
|
|
2558
|
+
t(o).user ? (d(), _(ue, {
|
|
2559
|
+
key: 1,
|
|
2560
|
+
image: t(e).avatar || t(o).user.picture || ""
|
|
2561
|
+
}, null, 8, ["image"])) : S("", !0),
|
|
2562
|
+
s(h)
|
|
2652
2563
|
]),
|
|
2653
2564
|
_: 1
|
|
2654
|
-
}
|
|
2565
|
+
}, 16, ["color", "icon", "rounded"]);
|
|
2655
2566
|
};
|
|
2656
2567
|
}
|
|
2657
|
-
})
|
|
2568
|
+
});
|
|
2569
|
+
const Ye = (u, o) => {
|
|
2570
|
+
const i = u.__vccOpts || u;
|
|
2571
|
+
for (const [e, r] of o)
|
|
2572
|
+
i[e] = r;
|
|
2573
|
+
return i;
|
|
2574
|
+
}, Is = /* @__PURE__ */ Ye(Ls, [["__scopeId", "data-v-5f125c79"]]), As = (u) => (et("data-v-86d0e524"), u = u(), tt(), u), Ds = ["href", "title"], Us = {
|
|
2658
2575
|
class: "text-caption text-disabled",
|
|
2659
2576
|
style: { position: "absolute", right: "16px" }
|
|
2660
|
-
},
|
|
2577
|
+
}, Fs = /* @__PURE__ */ As(() => /* @__PURE__ */ v("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), js = /* @__PURE__ */ b({
|
|
2661
2578
|
__name: "VoFooter",
|
|
2662
2579
|
setup(u) {
|
|
2663
2580
|
const o = [
|
|
@@ -2668,7 +2585,7 @@ const et = (u, o) => {
|
|
|
2668
2585
|
},
|
|
2669
2586
|
{
|
|
2670
2587
|
title: "Vuetify Support",
|
|
2671
|
-
icon: `svg:${
|
|
2588
|
+
icon: `svg:${zt}`,
|
|
2672
2589
|
href: "https://support.vuetifyjs.com/"
|
|
2673
2590
|
},
|
|
2674
2591
|
{
|
|
@@ -2683,21 +2600,21 @@ const et = (u, o) => {
|
|
|
2683
2600
|
},
|
|
2684
2601
|
{
|
|
2685
2602
|
title: "Vuetify Discord",
|
|
2686
|
-
icon: `svg:${
|
|
2603
|
+
icon: `svg:${Be}`,
|
|
2687
2604
|
href: "https://community.vuetifyjs.com/"
|
|
2688
2605
|
},
|
|
2689
2606
|
{
|
|
2690
2607
|
title: "Vuetify Reddit",
|
|
2691
|
-
icon: `svg:${
|
|
2608
|
+
icon: `svg:${Tt}`,
|
|
2692
2609
|
href: "https://reddit.com/r/vuetifyjs"
|
|
2693
2610
|
}
|
|
2694
2611
|
];
|
|
2695
|
-
return (i,
|
|
2612
|
+
return (i, e) => (d(), _(oo, {
|
|
2696
2613
|
class: "vo-footer",
|
|
2697
2614
|
height: "40"
|
|
2698
2615
|
}, {
|
|
2699
2616
|
default: n(() => [
|
|
2700
|
-
(d(), w(
|
|
2617
|
+
(d(), w(F, null, te(o, (r) => v("a", {
|
|
2701
2618
|
key: r.title,
|
|
2702
2619
|
href: r.href,
|
|
2703
2620
|
title: r.title,
|
|
@@ -2705,25 +2622,25 @@ const et = (u, o) => {
|
|
|
2705
2622
|
rel: "noopener noreferrer",
|
|
2706
2623
|
target: "_blank"
|
|
2707
2624
|
}, [
|
|
2708
|
-
s(
|
|
2625
|
+
s(N, {
|
|
2709
2626
|
icon: r.icon,
|
|
2710
2627
|
size: r.icon === "$vuetify" ? 24 : 16
|
|
2711
2628
|
}, null, 8, ["icon", "size"])
|
|
2712
|
-
], 8,
|
|
2713
|
-
v("div",
|
|
2714
|
-
|
|
2715
|
-
|
|
2629
|
+
], 8, Ds)), 64)),
|
|
2630
|
+
v("div", Us, [
|
|
2631
|
+
j(" © 2016-" + C((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
|
|
2632
|
+
Fs
|
|
2716
2633
|
])
|
|
2717
2634
|
]),
|
|
2718
2635
|
_: 1
|
|
2719
2636
|
}));
|
|
2720
2637
|
}
|
|
2721
2638
|
});
|
|
2722
|
-
const
|
|
2723
|
-
const u =
|
|
2724
|
-
|
|
2639
|
+
const Ns = /* @__PURE__ */ Ye(js, [["__scopeId", "data-v-86d0e524"]]), Vn = K("bins", () => {
|
|
2640
|
+
const u = O(), o = _e(), i = Z([]), e = Z(), r = U(!1), a = U(-1), l = A(() => !u.user || !e.value ? !1 : u.user.id === e.value.owner.id), c = A(() => i.value.filter((g) => g.favorite)), h = A(() => i.value.filter((g) => g.pinned));
|
|
2641
|
+
W(e, () => {
|
|
2725
2642
|
window.clearTimeout(a.value), a.value = window.setTimeout(() => {
|
|
2726
|
-
!
|
|
2643
|
+
!e.value || !l.value || m(e.value, e.value.id);
|
|
2727
2644
|
}, 100);
|
|
2728
2645
|
}, { deep: !0 });
|
|
2729
2646
|
async function p() {
|
|
@@ -2737,90 +2654,90 @@ const zs = /* @__PURE__ */ et(Os, [["__scopeId", "data-v-86d0e524"]]), xn = X("b
|
|
|
2737
2654
|
}
|
|
2738
2655
|
return i.value;
|
|
2739
2656
|
}
|
|
2740
|
-
async function
|
|
2657
|
+
async function k(g) {
|
|
2741
2658
|
try {
|
|
2742
|
-
r.value = !0, await o.delete(`/one/bins/${g}`), i.value = i.value.filter((
|
|
2659
|
+
r.value = !0, await o.delete(`/one/bins/${g}`), i.value = i.value.filter(($) => $.id !== g);
|
|
2743
2660
|
} catch {
|
|
2744
2661
|
} finally {
|
|
2745
2662
|
r.value = !1;
|
|
2746
2663
|
}
|
|
2747
2664
|
return !0;
|
|
2748
2665
|
}
|
|
2749
|
-
async function
|
|
2666
|
+
async function L(g) {
|
|
2750
2667
|
try {
|
|
2751
2668
|
r.value = !0;
|
|
2752
|
-
const
|
|
2753
|
-
return i.value.push(
|
|
2669
|
+
const $ = await o.post("/one/bins", { bin: g });
|
|
2670
|
+
return i.value.push($.bin), e.value = $.bin, $;
|
|
2754
2671
|
} catch {
|
|
2755
2672
|
} finally {
|
|
2756
2673
|
r.value = !1;
|
|
2757
2674
|
}
|
|
2758
2675
|
return { bin: g };
|
|
2759
2676
|
}
|
|
2760
|
-
async function m(g,
|
|
2677
|
+
async function m(g, $) {
|
|
2761
2678
|
try {
|
|
2762
2679
|
r.value = !0;
|
|
2763
|
-
const
|
|
2764
|
-
i.value.splice(
|
|
2680
|
+
const I = await o.post(`/one/bins/${$}`, { bin: g }), V = i.value.findIndex((B) => B.id === $);
|
|
2681
|
+
i.value.splice(V, 1, I.bin);
|
|
2765
2682
|
} catch {
|
|
2766
2683
|
} finally {
|
|
2767
2684
|
r.value = !1;
|
|
2768
2685
|
}
|
|
2769
2686
|
return { bin: g };
|
|
2770
2687
|
}
|
|
2771
|
-
async function
|
|
2688
|
+
async function y(g, $) {
|
|
2772
2689
|
try {
|
|
2773
2690
|
r.value = !0;
|
|
2774
|
-
const
|
|
2775
|
-
|
|
2691
|
+
const I = $ ? await m(g, $) : await L(g);
|
|
2692
|
+
e.value = I.bin;
|
|
2776
2693
|
} catch {
|
|
2777
2694
|
} finally {
|
|
2778
2695
|
r.value = !1;
|
|
2779
2696
|
}
|
|
2780
2697
|
return { bin: g };
|
|
2781
2698
|
}
|
|
2782
|
-
async function
|
|
2699
|
+
async function D(g) {
|
|
2783
2700
|
try {
|
|
2784
2701
|
r.value = !0;
|
|
2785
|
-
const
|
|
2786
|
-
|
|
2702
|
+
const $ = await o.get(`/one/bins/${g}`);
|
|
2703
|
+
e.value = $.bin;
|
|
2787
2704
|
} catch {
|
|
2788
2705
|
} finally {
|
|
2789
2706
|
r.value = !1;
|
|
2790
2707
|
}
|
|
2791
|
-
return { bin:
|
|
2708
|
+
return { bin: e.value };
|
|
2792
2709
|
}
|
|
2793
2710
|
return {
|
|
2794
2711
|
isLoading: r,
|
|
2795
|
-
isOwner:
|
|
2796
|
-
pinned:
|
|
2797
|
-
favorites:
|
|
2712
|
+
isOwner: l,
|
|
2713
|
+
pinned: h,
|
|
2714
|
+
favorites: c,
|
|
2798
2715
|
all: i,
|
|
2799
|
-
create:
|
|
2800
|
-
delete:
|
|
2801
|
-
current:
|
|
2802
|
-
find:
|
|
2716
|
+
create: L,
|
|
2717
|
+
delete: k,
|
|
2718
|
+
current: e,
|
|
2719
|
+
find: D,
|
|
2803
2720
|
get: p,
|
|
2804
2721
|
update: m,
|
|
2805
|
-
updateOrCreate:
|
|
2722
|
+
updateOrCreate: y
|
|
2806
2723
|
};
|
|
2807
2724
|
});
|
|
2808
|
-
function
|
|
2725
|
+
function kn() {
|
|
2809
2726
|
function u(o) {
|
|
2810
|
-
o.component("VoAuthBtn", Is), o.component("
|
|
2727
|
+
o.component("VoAuthBtn", Is), o.component("VoFooter", Ns);
|
|
2811
2728
|
}
|
|
2812
2729
|
return { install: u };
|
|
2813
2730
|
}
|
|
2814
|
-
function
|
|
2731
|
+
function $n(u) {
|
|
2815
2732
|
u.store.url = "https://api.vuetifyjs.com";
|
|
2816
2733
|
}
|
|
2817
2734
|
export {
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2735
|
+
kn as createOne,
|
|
2736
|
+
$n as one,
|
|
2737
|
+
O as useAuthStore,
|
|
2738
|
+
Vn as useBinsStore,
|
|
2822
2739
|
_e as useHttpStore,
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2740
|
+
X as useOneStore,
|
|
2741
|
+
Ge as useSettingsStore,
|
|
2742
|
+
H as useUserStore
|
|
2826
2743
|
};
|