@vuetify/one 1.0.4 → 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 +884 -963
- 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,16 +534,16 @@ 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: {},
|
|
@@ -516,23 +551,23 @@ const _e = X("http", {
|
|
|
516
551
|
},
|
|
517
552
|
setup(u) {
|
|
518
553
|
return (o, i) => (d(), w(F, null, [
|
|
519
|
-
o.title ? (d(),
|
|
554
|
+
o.title ? (d(), _($e, {
|
|
520
555
|
key: 0,
|
|
521
556
|
class: "font-weight-black"
|
|
522
557
|
}, {
|
|
523
558
|
default: n(() => [
|
|
524
|
-
j(
|
|
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 =
|
|
587
|
+
return (e, r) => {
|
|
588
|
+
const a = We, l = re;
|
|
554
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
|
-
j(" " +
|
|
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(F, null, te(a, (m,
|
|
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
|
-
j(" $" +
|
|
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
|
-
j(" $" +
|
|
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,15 +1347,15 @@ 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
|
+
((k = t(e).info) == null ? void 0 : k.status) === "active" ? (d(), w(F, { key: 0 }, [
|
|
1352
1353
|
j(" Your plan renews on "),
|
|
1353
|
-
v("span",
|
|
1354
|
+
v("span", Co, C(t(i).format(a.value, "fullDateWithWeekday")), 1),
|
|
1354
1355
|
j(". ")
|
|
1355
1356
|
], 64)) : (d(), w(F, { key: 1 }, [
|
|
1356
1357
|
j(" Your plan ends on "),
|
|
1357
|
-
v("span",
|
|
1358
|
+
v("span", Lo, C(t(i).format((L = t(e).info) == null ? void 0 : L.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1358
1359
|
j(". ")
|
|
1359
1360
|
], 64))
|
|
1360
1361
|
])
|
|
@@ -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,11 +1382,11 @@ 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
|
|
1388
|
+
}), (a, l) => {
|
|
1389
|
+
const c = Y;
|
|
1389
1390
|
return d(), w(F, null, [
|
|
1390
1391
|
s($e, { class: "font-weight-black" }, {
|
|
1391
1392
|
default: n(() => [
|
|
@@ -1393,62 +1394,62 @@ const Xe = X("settings", () => {
|
|
|
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(F, null, te(o, (
|
|
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(F, null, te(i, (
|
|
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,55 +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
|
+
}), 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 "),
|
|
1689
|
+
/* @__PURE__ */ v("span", { class: "font-weight-black" }, "all"),
|
|
1690
|
+
/* @__PURE__ */ j(" Vuetify One benefits ")
|
|
1691
|
+
], -1), es = /* @__PURE__ */ b({
|
|
1687
1692
|
__name: "VoSponsorshipsDialog",
|
|
1688
1693
|
setup(u) {
|
|
1689
|
-
const o =
|
|
1690
|
-
function a(
|
|
1691
|
-
return o.format(
|
|
1694
|
+
const o = fe(), i = O(), e = X(), r = Ge();
|
|
1695
|
+
function a(l) {
|
|
1696
|
+
return o.format(l, "fullDateWithWeekday");
|
|
1692
1697
|
}
|
|
1693
|
-
return (
|
|
1694
|
-
const
|
|
1695
|
-
return d(),
|
|
1696
|
-
"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)}`,
|
|
1697
1702
|
"max-height": "820",
|
|
1698
1703
|
title: "Sponsorships"
|
|
1699
1704
|
}, {
|
|
1700
1705
|
default: n(() => [
|
|
1701
|
-
s(
|
|
1706
|
+
s(Ie, null, {
|
|
1702
1707
|
default: n(() => [
|
|
1703
|
-
s(
|
|
1708
|
+
s(Ae, { scrollable: "" }, {
|
|
1704
1709
|
default: n(() => [
|
|
1705
|
-
v("div",
|
|
1710
|
+
v("div", Mo, [
|
|
1706
1711
|
s(J, null, {
|
|
1707
1712
|
default: n(() => [
|
|
1708
|
-
s(
|
|
1713
|
+
s(h, {
|
|
1709
1714
|
text: "Support Vuetify through GitHub Sponsors, Discord, or Patreon to unlock exclusive benefits and content.",
|
|
1710
1715
|
title: "Support Vuetify"
|
|
1711
1716
|
}),
|
|
1712
|
-
s(
|
|
1717
|
+
s(Yt, {
|
|
1713
1718
|
class: "justify-start ms-n7",
|
|
1714
1719
|
"line-inset": "12",
|
|
1715
1720
|
side: "end",
|
|
@@ -1717,17 +1722,17 @@ const Xe = X("settings", () => {
|
|
|
1717
1722
|
"truncate-line": "both"
|
|
1718
1723
|
}, {
|
|
1719
1724
|
default: n(() => {
|
|
1720
|
-
var m,
|
|
1725
|
+
var m, y, D, g, $, I;
|
|
1721
1726
|
return [
|
|
1722
1727
|
s(Ve, {
|
|
1723
|
-
"dot-color": (m = e
|
|
1724
|
-
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,
|
|
1725
1730
|
size: "x-small",
|
|
1726
1731
|
width: "100%"
|
|
1727
1732
|
}, {
|
|
1728
1733
|
default: n(() => [
|
|
1729
|
-
s(
|
|
1730
|
-
"prepend-avatar":
|
|
1734
|
+
s(T, {
|
|
1735
|
+
"prepend-avatar": t(r).CDN_URL + "/logos/github.png",
|
|
1731
1736
|
rounded: "lg",
|
|
1732
1737
|
subtitle: "Support Vuetify through GitHub sponsors.",
|
|
1733
1738
|
title: "GitHub Sponsors",
|
|
@@ -1735,44 +1740,44 @@ const Xe = X("settings", () => {
|
|
|
1735
1740
|
border: ""
|
|
1736
1741
|
}, {
|
|
1737
1742
|
append: n(() => {
|
|
1738
|
-
var
|
|
1743
|
+
var V, B, P, M, z, f;
|
|
1739
1744
|
return [
|
|
1740
|
-
v("div",
|
|
1745
|
+
v("div", Po, [
|
|
1741
1746
|
s(p, {
|
|
1742
|
-
color: (
|
|
1743
|
-
href: (
|
|
1744
|
-
"prepend-icon": `svg:${(
|
|
1745
|
-
readonly: (
|
|
1746
|
-
target: (
|
|
1747
|
-
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",
|
|
1748
1753
|
width: "88"
|
|
1749
1754
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
|
|
1750
1755
|
])
|
|
1751
1756
|
];
|
|
1752
1757
|
}),
|
|
1753
1758
|
default: n(() => {
|
|
1754
|
-
var
|
|
1759
|
+
var V;
|
|
1755
1760
|
return [
|
|
1756
|
-
(
|
|
1761
|
+
(V = t(e).github) != null && V.isActive ? (d(), w(F, { key: 0 }, [
|
|
1757
1762
|
s(R),
|
|
1758
1763
|
s(J, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
1759
1764
|
default: n(() => [
|
|
1760
1765
|
s(q, {
|
|
1761
|
-
"prepend-icon": `svg:${
|
|
1762
|
-
text: e
|
|
1766
|
+
"prepend-icon": `svg:${t(ye)}`,
|
|
1767
|
+
text: t(e).github.tierName,
|
|
1763
1768
|
color: "surface-variant",
|
|
1764
1769
|
size: "small",
|
|
1765
1770
|
variant: "text",
|
|
1766
1771
|
label: ""
|
|
1767
1772
|
}, null, 8, ["prepend-icon", "text"]),
|
|
1768
|
-
v("div",
|
|
1773
|
+
v("div", Eo, [
|
|
1769
1774
|
j(" Sponsor since "),
|
|
1770
|
-
v("span",
|
|
1775
|
+
v("span", Wo, C(a(t(e).github.createdAt)), 1)
|
|
1771
1776
|
])
|
|
1772
1777
|
]),
|
|
1773
1778
|
_: 1
|
|
1774
1779
|
})
|
|
1775
|
-
], 64)) :
|
|
1780
|
+
], 64)) : S("", !0)
|
|
1776
1781
|
];
|
|
1777
1782
|
}),
|
|
1778
1783
|
_: 1
|
|
@@ -1781,14 +1786,14 @@ const Xe = X("settings", () => {
|
|
|
1781
1786
|
_: 1
|
|
1782
1787
|
}, 8, ["dot-color", "icon"]),
|
|
1783
1788
|
s(Ve, {
|
|
1784
|
-
"dot-color": (
|
|
1785
|
-
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,
|
|
1786
1791
|
size: "x-small",
|
|
1787
1792
|
width: "100%"
|
|
1788
1793
|
}, {
|
|
1789
1794
|
default: n(() => [
|
|
1790
|
-
s(
|
|
1791
|
-
"prepend-avatar":
|
|
1795
|
+
s(T, {
|
|
1796
|
+
"prepend-avatar": t(r).CDN_URL + "/logos/discord.png",
|
|
1792
1797
|
rounded: "lg",
|
|
1793
1798
|
subtitle: "Support Vuetify through Discord.",
|
|
1794
1799
|
title: "Discord Subscriber",
|
|
@@ -1796,44 +1801,44 @@ const Xe = X("settings", () => {
|
|
|
1796
1801
|
border: ""
|
|
1797
1802
|
}, {
|
|
1798
1803
|
append: n(() => {
|
|
1799
|
-
var
|
|
1804
|
+
var V, B, P, M, z, f;
|
|
1800
1805
|
return [
|
|
1801
|
-
v("div",
|
|
1806
|
+
v("div", Go, [
|
|
1802
1807
|
s(p, {
|
|
1803
|
-
color: (
|
|
1804
|
-
href: (
|
|
1805
|
-
"prepend-icon": `svg:${(
|
|
1806
|
-
readonly: (
|
|
1807
|
-
target: (
|
|
1808
|
-
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",
|
|
1809
1814
|
width: "88"
|
|
1810
1815
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
|
|
1811
1816
|
])
|
|
1812
1817
|
];
|
|
1813
1818
|
}),
|
|
1814
1819
|
default: n(() => {
|
|
1815
|
-
var
|
|
1820
|
+
var V;
|
|
1816
1821
|
return [
|
|
1817
|
-
(
|
|
1822
|
+
(V = t(e).discord) != null && V.isActive ? (d(), w(F, { key: 0 }, [
|
|
1818
1823
|
s(R),
|
|
1819
1824
|
s(J, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
1820
1825
|
default: n(() => [
|
|
1821
1826
|
s(q, {
|
|
1822
|
-
"prepend-icon": `svg:${
|
|
1823
|
-
text: e
|
|
1827
|
+
"prepend-icon": `svg:${t(ye)}`,
|
|
1828
|
+
text: t(e).discord.tierName,
|
|
1824
1829
|
color: "surface-variant",
|
|
1825
1830
|
size: "small",
|
|
1826
1831
|
variant: "text",
|
|
1827
1832
|
label: ""
|
|
1828
1833
|
}, null, 8, ["prepend-icon", "text"]),
|
|
1829
|
-
v("div",
|
|
1834
|
+
v("div", qo, [
|
|
1830
1835
|
j(" Subscriber since "),
|
|
1831
|
-
v("span",
|
|
1836
|
+
v("span", Yo, C(a(t(e).discord.createdAt)), 1)
|
|
1832
1837
|
])
|
|
1833
1838
|
]),
|
|
1834
1839
|
_: 1
|
|
1835
1840
|
})
|
|
1836
|
-
], 64)) :
|
|
1841
|
+
], 64)) : S("", !0)
|
|
1837
1842
|
];
|
|
1838
1843
|
}),
|
|
1839
1844
|
_: 1
|
|
@@ -1842,14 +1847,14 @@ const Xe = X("settings", () => {
|
|
|
1842
1847
|
_: 1
|
|
1843
1848
|
}, 8, ["dot-color", "icon"]),
|
|
1844
1849
|
s(Ve, {
|
|
1845
|
-
"dot-color": (
|
|
1846
|
-
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,
|
|
1847
1852
|
size: "x-small",
|
|
1848
1853
|
width: "100%"
|
|
1849
1854
|
}, {
|
|
1850
1855
|
default: n(() => [
|
|
1851
|
-
s(
|
|
1852
|
-
"prepend-avatar":
|
|
1856
|
+
s(T, {
|
|
1857
|
+
"prepend-avatar": t(r).CDN_URL + "/logos/patreon.png",
|
|
1853
1858
|
rounded: "lg",
|
|
1854
1859
|
subtitle: "Support Vuetify through Patreon.",
|
|
1855
1860
|
title: "Patreon Subscriber",
|
|
@@ -1857,11 +1862,11 @@ const Xe = X("settings", () => {
|
|
|
1857
1862
|
border: ""
|
|
1858
1863
|
}, {
|
|
1859
1864
|
append: n(() => {
|
|
1860
|
-
var
|
|
1865
|
+
var V;
|
|
1861
1866
|
return [
|
|
1862
|
-
v("div",
|
|
1867
|
+
v("div", Jo, [
|
|
1863
1868
|
s(p, {
|
|
1864
|
-
text: (
|
|
1869
|
+
text: (V = t(e).patreon) != null && V.isActive ? "Active" : "Coming Soon",
|
|
1865
1870
|
color: "surface-variant",
|
|
1866
1871
|
readonly: ""
|
|
1867
1872
|
}, null, 8, ["text"])
|
|
@@ -1869,27 +1874,27 @@ const Xe = X("settings", () => {
|
|
|
1869
1874
|
];
|
|
1870
1875
|
}),
|
|
1871
1876
|
default: n(() => {
|
|
1872
|
-
var
|
|
1877
|
+
var V;
|
|
1873
1878
|
return [
|
|
1874
|
-
(
|
|
1879
|
+
(V = t(e).patreon) != null && V.isActive ? (d(), w(F, { key: 0 }, [
|
|
1875
1880
|
s(R),
|
|
1876
1881
|
s(J, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
1877
1882
|
default: n(() => [
|
|
1878
1883
|
s(q, {
|
|
1879
|
-
"prepend-icon": `svg:${
|
|
1880
|
-
text: e
|
|
1884
|
+
"prepend-icon": `svg:${t(ye)}`,
|
|
1885
|
+
text: t(e).patreon.tierName,
|
|
1881
1886
|
color: "success",
|
|
1882
1887
|
variant: "text",
|
|
1883
1888
|
label: ""
|
|
1884
1889
|
}, null, 8, ["prepend-icon", "text"]),
|
|
1885
|
-
v("div",
|
|
1890
|
+
v("div", Qo, [
|
|
1886
1891
|
j(" Sponsor since "),
|
|
1887
|
-
v("span",
|
|
1892
|
+
v("span", Xo, C(a(t(e).patreon.createdAt)), 1)
|
|
1888
1893
|
])
|
|
1889
1894
|
]),
|
|
1890
1895
|
_: 1
|
|
1891
1896
|
})
|
|
1892
|
-
], 64)) :
|
|
1897
|
+
], 64)) : S("", !0)
|
|
1893
1898
|
];
|
|
1894
1899
|
}),
|
|
1895
1900
|
_: 1
|
|
@@ -1904,27 +1909,27 @@ const Xe = X("settings", () => {
|
|
|
1904
1909
|
]),
|
|
1905
1910
|
_: 1
|
|
1906
1911
|
}),
|
|
1907
|
-
s(
|
|
1908
|
-
icon: `svg:${
|
|
1912
|
+
s(k, {
|
|
1913
|
+
icon: `svg:${t(xt)}`,
|
|
1909
1914
|
class: "mt-auto",
|
|
1910
1915
|
"min-height": "auto",
|
|
1911
1916
|
size: "64",
|
|
1912
1917
|
title: "Your Monthly Contributions"
|
|
1913
1918
|
}, {
|
|
1914
1919
|
media: n(() => [
|
|
1915
|
-
s(
|
|
1920
|
+
s(N, { color: "success" })
|
|
1916
1921
|
]),
|
|
1917
1922
|
headline: n(() => [
|
|
1918
|
-
v("div",
|
|
1919
|
-
|
|
1920
|
-
j(" $" +
|
|
1923
|
+
v("div", Zo, [
|
|
1924
|
+
t(i).isSubscriber ? (d(), w(F, { key: 0 }, [
|
|
1925
|
+
j(" $" + C(parseFloat(String(t(e).monthlyTotal)).toFixed(2)), 1)
|
|
1921
1926
|
], 64)) : (d(), w(F, { key: 1 }, [
|
|
1922
1927
|
j(" $0.00 ")
|
|
1923
1928
|
], 64))
|
|
1924
1929
|
])
|
|
1925
1930
|
]),
|
|
1926
1931
|
text: n(() => [
|
|
1927
|
-
|
|
1932
|
+
Ko
|
|
1928
1933
|
]),
|
|
1929
1934
|
_: 1
|
|
1930
1935
|
}, 8, ["icon"])
|
|
@@ -1940,85 +1945,85 @@ const Xe = X("settings", () => {
|
|
|
1940
1945
|
}, 8, ["prepend-icon"]);
|
|
1941
1946
|
};
|
|
1942
1947
|
}
|
|
1943
|
-
}),
|
|
1948
|
+
}), ts = /* @__PURE__ */ b({
|
|
1944
1949
|
__name: "VoSponsorshipsListItem",
|
|
1945
1950
|
setup(u) {
|
|
1946
|
-
const o =
|
|
1947
|
-
return (i,
|
|
1948
|
-
const r =
|
|
1949
|
-
return d(),
|
|
1951
|
+
const o = U(!1);
|
|
1952
|
+
return (i, e) => {
|
|
1953
|
+
const r = es, a = Y;
|
|
1954
|
+
return d(), _(a, {
|
|
1950
1955
|
active: o.value,
|
|
1951
|
-
"prepend-icon": `svg:${
|
|
1956
|
+
"prepend-icon": `svg:${t(wt)}`,
|
|
1952
1957
|
title: "Sponsorships",
|
|
1953
1958
|
link: ""
|
|
1954
1959
|
}, {
|
|
1955
1960
|
default: n(() => [
|
|
1956
1961
|
s(r, {
|
|
1957
1962
|
modelValue: o.value,
|
|
1958
|
-
"onUpdate:modelValue":
|
|
1963
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => o.value = l)
|
|
1959
1964
|
}, null, 8, ["modelValue"])
|
|
1960
1965
|
]),
|
|
1961
1966
|
_: 1
|
|
1962
1967
|
}, 8, ["active", "prepend-icon"]);
|
|
1963
1968
|
};
|
|
1964
1969
|
}
|
|
1965
|
-
}),
|
|
1970
|
+
}), os = {
|
|
1966
1971
|
key: 0,
|
|
1967
1972
|
class: "pt-16"
|
|
1968
|
-
},
|
|
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({
|
|
1969
1974
|
__name: "VoNotificationsList",
|
|
1970
1975
|
props: {
|
|
1971
1976
|
items: {}
|
|
1972
1977
|
},
|
|
1973
1978
|
setup(u) {
|
|
1974
|
-
const o =
|
|
1975
|
-
function
|
|
1979
|
+
const o = H(), i = fe();
|
|
1980
|
+
function e(a) {
|
|
1976
1981
|
return o.notifications.read.includes(a);
|
|
1977
1982
|
}
|
|
1978
1983
|
function r(a) {
|
|
1979
|
-
|
|
1984
|
+
e(a.slug) ? o.notifications.read = o.notifications.read.filter((l) => l !== a.slug) : o.notifications.read.push(a.slug);
|
|
1980
1985
|
}
|
|
1981
|
-
return (a,
|
|
1982
|
-
const
|
|
1983
|
-
return d(),
|
|
1986
|
+
return (a, l) => {
|
|
1987
|
+
const c = Ne("v-empty-state"), h = Y;
|
|
1988
|
+
return d(), _(oe, {
|
|
1984
1989
|
class: "py-0",
|
|
1985
1990
|
height: "100%",
|
|
1986
1991
|
lines: "three"
|
|
1987
1992
|
}, {
|
|
1988
1993
|
default: n(() => [
|
|
1989
|
-
a.items.length ? (d(!0), w(F, { key: 1 }, te(a.items, (p,
|
|
1994
|
+
a.items.length ? (d(!0), w(F, { key: 1 }, te(a.items, (p, k) => (d(), _(Me, {
|
|
1990
1995
|
key: p.slug
|
|
1991
1996
|
}, {
|
|
1992
|
-
default: n(({ isHovering:
|
|
1993
|
-
s(
|
|
1994
|
-
border:
|
|
1997
|
+
default: n(({ isHovering: L, props: m }) => [
|
|
1998
|
+
s(h, ce(m, {
|
|
1999
|
+
border: k !== 0 && "t",
|
|
1995
2000
|
class: "py-4 mb-0"
|
|
1996
2001
|
}), {
|
|
1997
2002
|
prepend: n(() => [
|
|
1998
|
-
v("div",
|
|
2003
|
+
v("div", ns, C(p.metadata.emoji), 1)
|
|
1999
2004
|
]),
|
|
2000
2005
|
append: n(() => [
|
|
2001
|
-
s(
|
|
2006
|
+
s(Jt, {
|
|
2002
2007
|
class: "mt-n3",
|
|
2003
2008
|
width: "56"
|
|
2004
2009
|
}, {
|
|
2005
2010
|
default: n(() => [
|
|
2006
|
-
s(
|
|
2007
|
-
text:
|
|
2011
|
+
s(Qt, {
|
|
2012
|
+
text: e(p.slug) ? "Mark as unread" : "Mark as read",
|
|
2008
2013
|
location: "bottom"
|
|
2009
2014
|
}, {
|
|
2010
|
-
activator: n(({ props:
|
|
2015
|
+
activator: n(({ props: y }) => [
|
|
2011
2016
|
s(Ce, { "hide-on-leave": "" }, {
|
|
2012
2017
|
default: n(() => [
|
|
2013
|
-
Se(s(
|
|
2014
|
-
icon: `svg:${
|
|
2018
|
+
Se(s(Q, ce(y, {
|
|
2019
|
+
icon: `svg:${e(p.slug) ? t(Ct) : t(St)}`,
|
|
2015
2020
|
class: "ms-auto",
|
|
2016
2021
|
size: "small",
|
|
2017
2022
|
variant: "text",
|
|
2018
2023
|
"mdi-email-variant": "",
|
|
2019
|
-
onClick: (
|
|
2024
|
+
onClick: (D) => r(p)
|
|
2020
2025
|
}), null, 16, ["icon", "onClick"]), [
|
|
2021
|
-
[
|
|
2026
|
+
[Oe, L]
|
|
2022
2027
|
])
|
|
2023
2028
|
]),
|
|
2024
2029
|
_: 2
|
|
@@ -2031,16 +2036,16 @@ const Xe = X("settings", () => {
|
|
|
2031
2036
|
}, 1024)
|
|
2032
2037
|
]),
|
|
2033
2038
|
default: n(() => [
|
|
2034
|
-
s(
|
|
2039
|
+
s(Rt, { class: "text-wrap text-h6 mb-1" }, {
|
|
2035
2040
|
default: n(() => [
|
|
2036
|
-
v("div",
|
|
2041
|
+
v("div", is, C(p.title), 1)
|
|
2037
2042
|
]),
|
|
2038
2043
|
_: 2
|
|
2039
2044
|
}, 1024),
|
|
2040
|
-
v("div",
|
|
2041
|
-
v("div",
|
|
2045
|
+
v("div", as, C(t(i).format(p.created_at, "fullDateWithWeekday")), 1),
|
|
2046
|
+
v("div", rs, C(p.metadata.text), 1),
|
|
2042
2047
|
s(q, {
|
|
2043
|
-
"append-icon": `svg:${
|
|
2048
|
+
"append-icon": `svg:${t(Lt)}`,
|
|
2044
2049
|
href: p.metadata.action,
|
|
2045
2050
|
text: p.metadata.action_text,
|
|
2046
2051
|
size: "small",
|
|
@@ -2048,10 +2053,10 @@ const Xe = X("settings", () => {
|
|
|
2048
2053
|
variant: "text",
|
|
2049
2054
|
border: "",
|
|
2050
2055
|
label: "",
|
|
2051
|
-
onClick: (
|
|
2056
|
+
onClick: (y) => r(p)
|
|
2052
2057
|
}, {
|
|
2053
2058
|
append: n(() => [
|
|
2054
|
-
s(
|
|
2059
|
+
s(N, { size: "12" })
|
|
2055
2060
|
]),
|
|
2056
2061
|
_: 2
|
|
2057
2062
|
}, 1032, ["append-icon", "href", "text", "onClick"])
|
|
@@ -2060,16 +2065,16 @@ const Xe = X("settings", () => {
|
|
|
2060
2065
|
}, 1040, ["border"])
|
|
2061
2066
|
]),
|
|
2062
2067
|
_: 2
|
|
2063
|
-
}, 1024))), 128)) : (d(), w("div",
|
|
2064
|
-
s(
|
|
2068
|
+
}, 1024))), 128)) : (d(), w("div", os, [
|
|
2069
|
+
s(c, {
|
|
2065
2070
|
icon: "$vuetify",
|
|
2066
2071
|
size: "256"
|
|
2067
2072
|
}, {
|
|
2068
2073
|
media: n(() => [
|
|
2069
|
-
s(
|
|
2074
|
+
s(N, { color: "medium-emphasis" })
|
|
2070
2075
|
]),
|
|
2071
2076
|
title: n(() => [
|
|
2072
|
-
|
|
2077
|
+
ss
|
|
2073
2078
|
]),
|
|
2074
2079
|
_: 1
|
|
2075
2080
|
})
|
|
@@ -2079,71 +2084,71 @@ const Xe = X("settings", () => {
|
|
|
2079
2084
|
});
|
|
2080
2085
|
};
|
|
2081
2086
|
}
|
|
2082
|
-
}),
|
|
2083
|
-
const u = _e(), o =
|
|
2084
|
-
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() {
|
|
2085
2090
|
try {
|
|
2086
|
-
|
|
2087
|
-
const
|
|
2088
|
-
i.value =
|
|
2091
|
+
e.value = !0;
|
|
2092
|
+
const c = await u.get("/one/notifications");
|
|
2093
|
+
i.value = c.notifications;
|
|
2089
2094
|
} catch {
|
|
2090
2095
|
} finally {
|
|
2091
|
-
|
|
2096
|
+
e.value = !1;
|
|
2092
2097
|
}
|
|
2093
2098
|
return i.value;
|
|
2094
2099
|
}
|
|
2095
2100
|
return {
|
|
2096
|
-
isLoading:
|
|
2101
|
+
isLoading: e,
|
|
2097
2102
|
all: i,
|
|
2098
|
-
get:
|
|
2103
|
+
get: l,
|
|
2099
2104
|
read: a,
|
|
2100
2105
|
unread: r
|
|
2101
2106
|
};
|
|
2102
|
-
}),
|
|
2107
|
+
}), cs = { class: "text-caption" }, us = /* @__PURE__ */ b({
|
|
2103
2108
|
__name: "VoNotificationsDialog",
|
|
2104
2109
|
setup(u) {
|
|
2105
|
-
const o =
|
|
2106
|
-
return (a,
|
|
2107
|
-
const
|
|
2108
|
-
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, {
|
|
2109
2114
|
modelValue: r.value,
|
|
2110
|
-
"onUpdate:modelValue":
|
|
2111
|
-
"prepend-icon": `svg:${
|
|
2115
|
+
"onUpdate:modelValue": l[2] || (l[2] = (k) => r.value = k),
|
|
2116
|
+
"prepend-icon": `svg:${t(It)}`,
|
|
2112
2117
|
title: "Notifications"
|
|
2113
2118
|
}, {
|
|
2114
2119
|
default: n(() => [
|
|
2115
|
-
s(
|
|
2120
|
+
s(Ie, null, {
|
|
2116
2121
|
default: n(() => [
|
|
2117
|
-
s(
|
|
2118
|
-
location:
|
|
2119
|
-
width:
|
|
2122
|
+
s(Xt, {
|
|
2123
|
+
location: t(i).mobile.value ? "top" : "start",
|
|
2124
|
+
width: t(i).mobile.value ? 128 : 168,
|
|
2120
2125
|
permanent: ""
|
|
2121
2126
|
}, {
|
|
2122
2127
|
default: n(() => [
|
|
2123
|
-
s(
|
|
2124
|
-
selected:
|
|
2125
|
-
"onUpdate:selected":
|
|
2128
|
+
s(oe, {
|
|
2129
|
+
selected: e.value,
|
|
2130
|
+
"onUpdate:selected": l[0] || (l[0] = (k) => e.value = k),
|
|
2126
2131
|
class: "px-4 pt-4",
|
|
2127
2132
|
density: "compact",
|
|
2128
2133
|
mandatory: "",
|
|
2129
2134
|
nav: ""
|
|
2130
2135
|
}, {
|
|
2131
2136
|
default: n(() => [
|
|
2132
|
-
s(
|
|
2133
|
-
"prepend-icon": `svg:${
|
|
2137
|
+
s(c, {
|
|
2138
|
+
"prepend-icon": `svg:${t(At)}`,
|
|
2134
2139
|
title: "Unread",
|
|
2135
2140
|
value: "0"
|
|
2136
2141
|
}, G({ _: 2 }, [
|
|
2137
|
-
|
|
2142
|
+
t(o).unread.length > 0 ? {
|
|
2138
2143
|
name: "append",
|
|
2139
2144
|
fn: n(() => [
|
|
2140
|
-
v("span",
|
|
2145
|
+
v("span", cs, C(t(o).unread.length), 1)
|
|
2141
2146
|
]),
|
|
2142
2147
|
key: "0"
|
|
2143
2148
|
} : void 0
|
|
2144
2149
|
]), 1032, ["prepend-icon"]),
|
|
2145
|
-
s(
|
|
2146
|
-
"prepend-icon": `svg:${
|
|
2150
|
+
s(c, {
|
|
2151
|
+
"prepend-icon": `svg:${t(Dt)}`,
|
|
2147
2152
|
title: "Read",
|
|
2148
2153
|
value: "1",
|
|
2149
2154
|
"mdi-archive-outline": ""
|
|
@@ -2154,25 +2159,25 @@ const Xe = X("settings", () => {
|
|
|
2154
2159
|
]),
|
|
2155
2160
|
_: 1
|
|
2156
2161
|
}, 8, ["location", "width"]),
|
|
2157
|
-
s(
|
|
2162
|
+
s(Ae, { scrollable: "" }, {
|
|
2158
2163
|
default: n(() => [
|
|
2159
|
-
s(
|
|
2160
|
-
modelValue:
|
|
2161
|
-
"onUpdate:modelValue":
|
|
2164
|
+
s(Ee, {
|
|
2165
|
+
modelValue: e.value,
|
|
2166
|
+
"onUpdate:modelValue": l[1] || (l[1] = (k) => e.value = k)
|
|
2162
2167
|
}, {
|
|
2163
2168
|
default: n(() => [
|
|
2164
|
-
s(
|
|
2169
|
+
s(de, { value: "0" }, {
|
|
2165
2170
|
default: n(() => [
|
|
2166
|
-
s(
|
|
2167
|
-
items:
|
|
2171
|
+
s(h, {
|
|
2172
|
+
items: t(o).unread
|
|
2168
2173
|
}, null, 8, ["items"])
|
|
2169
2174
|
]),
|
|
2170
2175
|
_: 1
|
|
2171
2176
|
}),
|
|
2172
|
-
s(
|
|
2177
|
+
s(de, { value: "1" }, {
|
|
2173
2178
|
default: n(() => [
|
|
2174
|
-
s(
|
|
2175
|
-
items:
|
|
2179
|
+
s(h, {
|
|
2180
|
+
items: t(o).read
|
|
2176
2181
|
}, null, 8, ["items"])
|
|
2177
2182
|
]),
|
|
2178
2183
|
_: 1
|
|
@@ -2191,66 +2196,66 @@ const Xe = X("settings", () => {
|
|
|
2191
2196
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2192
2197
|
};
|
|
2193
2198
|
}
|
|
2194
|
-
}),
|
|
2199
|
+
}), ds = /* @__PURE__ */ b({
|
|
2195
2200
|
__name: "VoNotificationsListItem",
|
|
2196
2201
|
setup(u) {
|
|
2197
|
-
const o =
|
|
2202
|
+
const o = H(), i = qe(), e = U(!1);
|
|
2198
2203
|
return je(async () => {
|
|
2199
2204
|
await i.get();
|
|
2200
2205
|
}), (r, a) => {
|
|
2201
|
-
const
|
|
2202
|
-
return
|
|
2206
|
+
const l = us, c = Y;
|
|
2207
|
+
return t(o).notifications.show ? (d(), _(c, {
|
|
2203
2208
|
key: 0,
|
|
2204
|
-
active:
|
|
2205
|
-
"prepend-icon": `svg:${
|
|
2209
|
+
active: e.value,
|
|
2210
|
+
"prepend-icon": `svg:${t(Ut)}`,
|
|
2206
2211
|
title: "Notifications",
|
|
2207
2212
|
link: ""
|
|
2208
2213
|
}, G({
|
|
2209
2214
|
default: n(() => [
|
|
2210
|
-
s(
|
|
2211
|
-
modelValue:
|
|
2212
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2215
|
+
s(l, {
|
|
2216
|
+
modelValue: e.value,
|
|
2217
|
+
"onUpdate:modelValue": a[0] || (a[0] = (h) => e.value = h)
|
|
2213
2218
|
}, null, 8, ["modelValue"])
|
|
2214
2219
|
]),
|
|
2215
2220
|
_: 2
|
|
2216
2221
|
}, [
|
|
2217
|
-
|
|
2222
|
+
t(i).unread.length ? {
|
|
2218
2223
|
name: "prepend",
|
|
2219
2224
|
fn: n(() => [
|
|
2220
|
-
s(
|
|
2221
|
-
content:
|
|
2225
|
+
s(Zt, {
|
|
2226
|
+
content: t(i).unread.length,
|
|
2222
2227
|
color: "error"
|
|
2223
2228
|
}, {
|
|
2224
2229
|
default: n(() => [
|
|
2225
|
-
s(
|
|
2230
|
+
s(N)
|
|
2226
2231
|
]),
|
|
2227
2232
|
_: 1
|
|
2228
2233
|
}, 8, ["content"])
|
|
2229
2234
|
]),
|
|
2230
2235
|
key: "0"
|
|
2231
2236
|
} : void 0
|
|
2232
|
-
]), 1032, ["active", "prepend-icon"])) :
|
|
2237
|
+
]), 1032, ["active", "prepend-icon"])) : S("", !0);
|
|
2233
2238
|
};
|
|
2234
2239
|
}
|
|
2235
|
-
}),
|
|
2240
|
+
}), ps = /* @__PURE__ */ b({
|
|
2236
2241
|
__name: "VoDashboardListItem",
|
|
2237
2242
|
setup(u) {
|
|
2238
2243
|
return (o, i) => {
|
|
2239
|
-
const
|
|
2240
|
-
return d(),
|
|
2241
|
-
"prepend-icon": `svg:${
|
|
2244
|
+
const e = Y;
|
|
2245
|
+
return d(), _(e, {
|
|
2246
|
+
"prepend-icon": `svg:${t(Ft)}`,
|
|
2242
2247
|
title: "Dashboard",
|
|
2243
2248
|
to: "/user/dashboard"
|
|
2244
2249
|
}, null, 8, ["prepend-icon"]);
|
|
2245
2250
|
};
|
|
2246
2251
|
}
|
|
2247
|
-
}),
|
|
2252
|
+
}), ms = /* @__PURE__ */ b({
|
|
2248
2253
|
__name: "VoUserList",
|
|
2249
2254
|
setup(u) {
|
|
2250
|
-
const o =
|
|
2251
|
-
return (i,
|
|
2252
|
-
const r =
|
|
2253
|
-
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, {
|
|
2254
2259
|
density: "compact",
|
|
2255
2260
|
nav: "",
|
|
2256
2261
|
slim: ""
|
|
@@ -2258,58 +2263,58 @@ const Xe = X("settings", () => {
|
|
|
2258
2263
|
default: n(() => [
|
|
2259
2264
|
s(r),
|
|
2260
2265
|
s(a),
|
|
2261
|
-
s(
|
|
2262
|
-
|
|
2263
|
-
s(
|
|
2264
|
-
|
|
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)
|
|
2265
2270
|
]),
|
|
2266
2271
|
_: 1
|
|
2267
2272
|
});
|
|
2268
2273
|
};
|
|
2269
2274
|
}
|
|
2270
|
-
}),
|
|
2275
|
+
}), fs = { key: 0 }, vs = { class: "d-flex align-center justify-center pa-1 ga-2" }, _s = /* @__PURE__ */ b({
|
|
2271
2276
|
__name: "VoUserQuickActions",
|
|
2272
2277
|
setup(u) {
|
|
2273
|
-
const o =
|
|
2274
|
-
return (i,
|
|
2278
|
+
const o = H();
|
|
2279
|
+
return (i, e) => (d(), _(ie, null, {
|
|
2275
2280
|
default: n(() => [
|
|
2276
|
-
|
|
2277
|
-
v("div",
|
|
2278
|
-
s(
|
|
2279
|
-
color:
|
|
2281
|
+
t(o).quickbar ? (d(), w("div", fs, [
|
|
2282
|
+
v("div", vs, [
|
|
2283
|
+
s(Q, {
|
|
2284
|
+
color: t(o).colors.one,
|
|
2280
2285
|
class: "text-caption",
|
|
2281
2286
|
density: "comfortable",
|
|
2282
2287
|
href: "https://play.vuetifyjs.com",
|
|
2283
2288
|
icon: "$vuetify-play",
|
|
2284
2289
|
target: "_blank"
|
|
2285
2290
|
}, null, 8, ["color"]),
|
|
2286
|
-
s(
|
|
2287
|
-
color:
|
|
2288
|
-
icon: `svg:${
|
|
2291
|
+
s(Q, {
|
|
2292
|
+
color: t(o).colors.one,
|
|
2293
|
+
icon: `svg:${t(jt)}`,
|
|
2289
2294
|
class: "text-caption",
|
|
2290
2295
|
density: "comfortable",
|
|
2291
2296
|
href: "https://bin.vuetifyjs.com",
|
|
2292
2297
|
target: "_blank"
|
|
2293
2298
|
}, null, 8, ["color", "icon"]),
|
|
2294
|
-
s(
|
|
2295
|
-
color:
|
|
2296
|
-
icon: `svg:${
|
|
2299
|
+
s(Q, {
|
|
2300
|
+
color: t(o).colors.one,
|
|
2301
|
+
icon: `svg:${t(Nt)}`,
|
|
2297
2302
|
class: "text-caption",
|
|
2298
2303
|
density: "comfortable",
|
|
2299
2304
|
href: "https://issues.vuetifyjs.com",
|
|
2300
2305
|
target: "_blank"
|
|
2301
2306
|
}, null, 8, ["color", "icon"])
|
|
2302
2307
|
])
|
|
2303
|
-
])) :
|
|
2308
|
+
])) : S("", !0)
|
|
2304
2309
|
]),
|
|
2305
2310
|
_: 1
|
|
2306
2311
|
}));
|
|
2307
2312
|
}
|
|
2308
|
-
}),
|
|
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({
|
|
2309
2314
|
__name: "VoUserAvatar",
|
|
2310
2315
|
setup(u) {
|
|
2311
|
-
const o =
|
|
2312
|
-
const
|
|
2316
|
+
const o = O(), i = H(), e = U(!1), r = A(() => {
|
|
2317
|
+
const c = [
|
|
2313
2318
|
"https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
2314
2319
|
"https://cdn.vuetifyjs.com/docs/images/avatars/grass.png",
|
|
2315
2320
|
"https://cdn.vuetifyjs.com/docs/images/avatars/wood.png",
|
|
@@ -2325,35 +2330,35 @@ const Xe = X("settings", () => {
|
|
|
2325
2330
|
"https://cdn.vuetifyjs.com/docs/images/avatars/meteor.png",
|
|
2326
2331
|
"https://cdn.vuetifyjs.com/docs/images/avatars/tada.png"
|
|
2327
2332
|
];
|
|
2328
|
-
return o.user &&
|
|
2333
|
+
return o.user && c.unshift(o.user.picture), c;
|
|
2329
2334
|
});
|
|
2330
|
-
function a(
|
|
2331
|
-
i.avatar =
|
|
2335
|
+
function a(c) {
|
|
2336
|
+
i.avatar = c;
|
|
2332
2337
|
}
|
|
2333
|
-
function
|
|
2334
|
-
o.isSubscriber && (
|
|
2338
|
+
function l() {
|
|
2339
|
+
o.isSubscriber && (e.value = !e.value);
|
|
2335
2340
|
}
|
|
2336
|
-
return (
|
|
2341
|
+
return (c, h) => {
|
|
2337
2342
|
var p;
|
|
2338
2343
|
return d(), w("div", null, [
|
|
2339
|
-
Se((d(),
|
|
2340
|
-
class:
|
|
2344
|
+
Se((d(), _(ue, {
|
|
2345
|
+
class: Ke([
|
|
2341
2346
|
"border-md border-opacity-100 border-surface-variant",
|
|
2342
2347
|
{
|
|
2343
|
-
"cursor-pointer":
|
|
2348
|
+
"cursor-pointer": t(o).isSubscriber
|
|
2344
2349
|
}
|
|
2345
2350
|
]),
|
|
2346
2351
|
color: "surface",
|
|
2347
2352
|
size: "72",
|
|
2348
2353
|
text: "Foobar",
|
|
2349
|
-
onClick:
|
|
2354
|
+
onClick: Fe(l, ["prevent", "stop"])
|
|
2350
2355
|
}, {
|
|
2351
2356
|
default: n(() => [
|
|
2352
|
-
|
|
2357
|
+
t(o).user && t(i).avatar ? (d(), _(Le, {
|
|
2353
2358
|
key: 0,
|
|
2354
|
-
src:
|
|
2359
|
+
src: t(i).avatar,
|
|
2355
2360
|
alt: "User avatar"
|
|
2356
|
-
}, null, 8, ["src"])) : (d(),
|
|
2361
|
+
}, null, 8, ["src"])) : (d(), _(N, {
|
|
2357
2362
|
key: 1,
|
|
2358
2363
|
class: "mt-1",
|
|
2359
2364
|
icon: "$vuetify",
|
|
@@ -2362,29 +2367,29 @@ const Xe = X("settings", () => {
|
|
|
2362
2367
|
]),
|
|
2363
2368
|
_: 1
|
|
2364
2369
|
}, 8, ["class"])), [
|
|
2365
|
-
[
|
|
2370
|
+
[Kt, t(o).isSubscriber]
|
|
2366
2371
|
]),
|
|
2367
|
-
v("div",
|
|
2368
|
-
s(
|
|
2372
|
+
v("div", hs, [
|
|
2373
|
+
s(ie, null, {
|
|
2369
2374
|
default: n(() => [
|
|
2370
|
-
|
|
2371
|
-
s(
|
|
2375
|
+
e.value ? (d(), w("div", gs, [
|
|
2376
|
+
s(T, {
|
|
2372
2377
|
class: "pt-6 pb-1",
|
|
2373
2378
|
rounded: "0",
|
|
2374
2379
|
flat: ""
|
|
2375
2380
|
}, {
|
|
2376
2381
|
default: n(() => [
|
|
2377
|
-
v("div",
|
|
2378
|
-
(d(!0), w(F, null, te(r.value, (
|
|
2379
|
-
key:
|
|
2380
|
-
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,
|
|
2381
2386
|
variant: "flat",
|
|
2382
2387
|
icon: "",
|
|
2383
|
-
onClick: (m) => a(
|
|
2388
|
+
onClick: (m) => a(k)
|
|
2384
2389
|
}, {
|
|
2385
2390
|
default: n(() => [
|
|
2386
|
-
s(
|
|
2387
|
-
image:
|
|
2391
|
+
s(ue, {
|
|
2392
|
+
image: k,
|
|
2388
2393
|
eager: ""
|
|
2389
2394
|
}, null, 8, ["image"])
|
|
2390
2395
|
]),
|
|
@@ -2394,27 +2399,27 @@ const Xe = X("settings", () => {
|
|
|
2394
2399
|
]),
|
|
2395
2400
|
_: 1
|
|
2396
2401
|
})
|
|
2397
|
-
])) :
|
|
2402
|
+
])) : S("", !0)
|
|
2398
2403
|
]),
|
|
2399
2404
|
_: 1
|
|
2400
2405
|
})
|
|
2401
2406
|
]),
|
|
2402
|
-
v("div",
|
|
2407
|
+
v("div", ys, C(((p = t(o).user) == null ? void 0 : p.name) ?? "Guest"), 1)
|
|
2403
2408
|
]);
|
|
2404
2409
|
};
|
|
2405
2410
|
}
|
|
2406
|
-
}),
|
|
2411
|
+
}), ks = { class: "d-flex" }, $s = { key: "reset" }, xs = /* @__PURE__ */ b({
|
|
2407
2412
|
__name: "VoUserColors",
|
|
2408
2413
|
setup(u) {
|
|
2409
|
-
const o =
|
|
2414
|
+
const o = O(), i = H(), e = U(!1);
|
|
2410
2415
|
function r() {
|
|
2411
2416
|
i.colors.one = "surface-light";
|
|
2412
2417
|
}
|
|
2413
|
-
return (a,
|
|
2414
|
-
const
|
|
2418
|
+
return (a, l) => {
|
|
2419
|
+
const c = ae;
|
|
2415
2420
|
return d(), w(F, null, [
|
|
2416
|
-
s(
|
|
2417
|
-
color:
|
|
2421
|
+
s(Le, {
|
|
2422
|
+
color: t(o).user ? t(i).colors.one : "surface-light",
|
|
2418
2423
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
2419
2424
|
height: "88",
|
|
2420
2425
|
rounded: "0",
|
|
@@ -2422,40 +2427,40 @@ const Xe = X("settings", () => {
|
|
|
2422
2427
|
flat: ""
|
|
2423
2428
|
}, {
|
|
2424
2429
|
default: n(() => [
|
|
2425
|
-
v("div",
|
|
2426
|
-
|
|
2430
|
+
v("div", ks, [
|
|
2431
|
+
t(o).isSubscriber ? (d(), _(c, {
|
|
2427
2432
|
key: 0,
|
|
2428
|
-
active:
|
|
2429
|
-
icon:
|
|
2430
|
-
variant:
|
|
2433
|
+
active: e.value,
|
|
2434
|
+
icon: e.value ? `svg:${t(ee)}` : "$edit",
|
|
2435
|
+
variant: e.value ? "text" : "plain",
|
|
2431
2436
|
color: "inherit",
|
|
2432
|
-
onClick:
|
|
2437
|
+
onClick: l[0] || (l[0] = (h) => e.value = !e.value)
|
|
2433
2438
|
}, {
|
|
2434
2439
|
default: n(() => [
|
|
2435
2440
|
s(Ce, { "leave-absolute": "" }, {
|
|
2436
2441
|
default: n(() => [
|
|
2437
|
-
(d(),
|
|
2438
|
-
key: String(
|
|
2442
|
+
(d(), _(N, {
|
|
2443
|
+
key: String(e.value)
|
|
2439
2444
|
}))
|
|
2440
2445
|
]),
|
|
2441
2446
|
_: 1
|
|
2442
2447
|
})
|
|
2443
2448
|
]),
|
|
2444
2449
|
_: 1
|
|
2445
|
-
}, 8, ["active", "icon", "variant"])) :
|
|
2446
|
-
s(
|
|
2450
|
+
}, 8, ["active", "icon", "variant"])) : S("", !0),
|
|
2451
|
+
s(Mt, null, {
|
|
2447
2452
|
default: n(() => [
|
|
2448
|
-
Se(v("div",
|
|
2449
|
-
s(
|
|
2450
|
-
disabled:
|
|
2451
|
-
icon: `svg:${
|
|
2453
|
+
Se(v("div", $s, [
|
|
2454
|
+
s(c, {
|
|
2455
|
+
disabled: t(i).colors.one === "surface-light",
|
|
2456
|
+
icon: `svg:${t(Ot)}`,
|
|
2452
2457
|
class: "ms-1",
|
|
2453
2458
|
color: "inherit",
|
|
2454
2459
|
variant: "text",
|
|
2455
2460
|
onClick: r
|
|
2456
2461
|
}, null, 8, ["disabled", "icon"])
|
|
2457
2462
|
], 512), [
|
|
2458
|
-
[
|
|
2463
|
+
[Oe, e.value]
|
|
2459
2464
|
])
|
|
2460
2465
|
]),
|
|
2461
2466
|
_: 1
|
|
@@ -2464,11 +2469,11 @@ const Xe = X("settings", () => {
|
|
|
2464
2469
|
]),
|
|
2465
2470
|
_: 1
|
|
2466
2471
|
}, 8, ["color"]),
|
|
2467
|
-
s(
|
|
2472
|
+
s(ie, null, {
|
|
2468
2473
|
default: n(() => [
|
|
2469
|
-
|
|
2474
|
+
e.value ? (d(), _(eo, {
|
|
2470
2475
|
key: 0,
|
|
2471
|
-
"model-value":
|
|
2476
|
+
"model-value": t(i).colors.one !== "surface-light" ? t(i).colors.one : void 0,
|
|
2472
2477
|
elevation: "0",
|
|
2473
2478
|
height: "250",
|
|
2474
2479
|
rounded: "0",
|
|
@@ -2478,182 +2483,98 @@ const Xe = X("settings", () => {
|
|
|
2478
2483
|
"hide-inputs": "",
|
|
2479
2484
|
"hide-sliders": "",
|
|
2480
2485
|
"show-swatches": "",
|
|
2481
|
-
"onUpdate:modelValue":
|
|
2482
|
-
}, null, 8, ["model-value"])) :
|
|
2486
|
+
"onUpdate:modelValue": l[1] || (l[1] = (h) => t(i).colors.one = h)
|
|
2487
|
+
}, null, 8, ["model-value"])) : S("", !0)
|
|
2483
2488
|
]),
|
|
2484
2489
|
_: 1
|
|
2485
2490
|
})
|
|
2486
2491
|
], 64);
|
|
2487
2492
|
};
|
|
2488
2493
|
}
|
|
2489
|
-
}),
|
|
2494
|
+
}), ws = { class: "text-center mt-n9 mb-4" }, Ss = /* @__PURE__ */ b({
|
|
2490
2495
|
__name: "VoUserMenu",
|
|
2491
2496
|
setup(u) {
|
|
2492
|
-
const o =
|
|
2493
|
-
return
|
|
2494
|
-
r
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
}, {
|
|
2504
|
-
default: n(() => [
|
|
2505
|
-
s(c),
|
|
2506
|
-
v("div", Ls, [
|
|
2507
|
-
s(l),
|
|
2508
|
-
s(f)
|
|
2509
|
-
]),
|
|
2510
|
-
s(R),
|
|
2511
|
-
s(p),
|
|
2512
|
-
s(R),
|
|
2513
|
-
s(y)
|
|
2514
|
-
]),
|
|
2515
|
-
_: 1
|
|
2516
|
-
});
|
|
2517
|
-
};
|
|
2518
|
-
}
|
|
2519
|
-
}), As = /* @__PURE__ */ V({
|
|
2520
|
-
__name: "VoUserBtn",
|
|
2521
|
-
setup(u) {
|
|
2522
|
-
const o = N(), i = z();
|
|
2523
|
-
return (t, r) => {
|
|
2524
|
-
const a = Ke;
|
|
2525
|
-
return d(), h(E, {
|
|
2526
|
-
loading: e(o).isLoading,
|
|
2527
|
-
class: "vo-user-btn",
|
|
2528
|
-
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: ""
|
|
2529
2508
|
}, {
|
|
2530
|
-
loader: n(() => [
|
|
2531
|
-
s(we, { type: "avatar" })
|
|
2532
|
-
]),
|
|
2533
2509
|
default: n(() => [
|
|
2534
|
-
s(
|
|
2535
|
-
"
|
|
2536
|
-
"
|
|
2537
|
-
|
|
2538
|
-
activator: "parent",
|
|
2539
|
-
location: "bottom end"
|
|
2510
|
+
s(T, {
|
|
2511
|
+
rounded: "lg",
|
|
2512
|
+
width: "280",
|
|
2513
|
+
border: ""
|
|
2540
2514
|
}, {
|
|
2541
2515
|
default: n(() => [
|
|
2542
|
-
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)
|
|
2543
2525
|
]),
|
|
2544
2526
|
_: 1
|
|
2545
|
-
}
|
|
2546
|
-
e(o).user ? (d(), h(ce, {
|
|
2547
|
-
key: 0,
|
|
2548
|
-
image: e(i).avatar || e(o).user.picture || ""
|
|
2549
|
-
}, null, 8, ["image"])) : C("", !0)
|
|
2527
|
+
})
|
|
2550
2528
|
]),
|
|
2551
2529
|
_: 1
|
|
2552
|
-
}, 8, ["
|
|
2530
|
+
}, 8, ["modelValue"]);
|
|
2553
2531
|
};
|
|
2554
2532
|
}
|
|
2555
|
-
})
|
|
2556
|
-
const et = (u, o) => {
|
|
2557
|
-
const i = u.__vccOpts || u;
|
|
2558
|
-
for (const [t, r] of o)
|
|
2559
|
-
i[t] = r;
|
|
2560
|
-
return i;
|
|
2561
|
-
}, tt = /* @__PURE__ */ et(As, [["__scopeId", "data-v-66be3e26"]]), Is = /* @__PURE__ */ V({
|
|
2533
|
+
}), Cs = { key: 0 }, Ls = /* @__PURE__ */ b({
|
|
2562
2534
|
__name: "VoAuthBtn",
|
|
2563
2535
|
props: {
|
|
2564
2536
|
external: Boolean
|
|
2565
2537
|
},
|
|
2566
2538
|
setup(u) {
|
|
2567
|
-
const o =
|
|
2568
|
-
return (
|
|
2569
|
-
const
|
|
2570
|
-
return d(),
|
|
2571
|
-
|
|
2572
|
-
!e(o).user && !e(o).isLoading ? (d(), h(E, se({ key: 0 }, {
|
|
2573
|
-
...f,
|
|
2574
|
-
[`${e(i) ? "append-" : ""}icon`]: `svg:${e(Re)}`,
|
|
2575
|
-
text: e(i) ? "Login" : void 0
|
|
2576
|
-
}, {
|
|
2577
|
-
rounded: e(t),
|
|
2578
|
-
class: "text-none",
|
|
2579
|
-
color: "primary",
|
|
2580
|
-
variant: "outlined"
|
|
2581
|
-
}), null, 16, ["rounded"])) : (d(), h(c, { key: 1 }))
|
|
2582
|
-
]),
|
|
2583
|
-
default: n(() => [
|
|
2584
|
-
s(l)
|
|
2585
|
-
]),
|
|
2586
|
-
_: 1
|
|
2587
|
-
});
|
|
2588
|
-
};
|
|
2589
|
-
}
|
|
2590
|
-
}), Ds = { class: "text-center mb-6" }, Us = /* @__PURE__ */ V({
|
|
2591
|
-
__name: "VoAuthDialog",
|
|
2592
|
-
setup(u) {
|
|
2593
|
-
const o = N(), { mdAndDown: i, lgAndUp: t } = Le(), r = Pe();
|
|
2594
|
-
return (a, c) => {
|
|
2595
|
-
const l = Je, f = Ye, p = tt;
|
|
2596
|
-
return !e(o).user && !e(o).isLoading ? (d(), h(Me, {
|
|
2597
|
-
key: 0,
|
|
2598
|
-
"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)}`
|
|
2599
2544
|
}, {
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
}), 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" })
|
|
2611
2555
|
]),
|
|
2612
2556
|
default: n(() => [
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
}, null, 8, ["src"]),
|
|
2620
|
-
v("div", Ds, [
|
|
2621
|
-
s(Gt, { class: "text-h5 mb-1 text-md-h4 font-weight-bold" }, {
|
|
2622
|
-
default: n(() => [
|
|
2623
|
-
j(S(e(o).lastLoginProvider() ? "Welcome Back" : "Log in to Vuetify"), 1)
|
|
2624
|
-
]),
|
|
2625
|
-
_: 1
|
|
2626
|
-
}),
|
|
2627
|
-
s(qt, { class: "text-wrap" }, {
|
|
2628
|
-
default: n(() => [
|
|
2629
|
-
j(" Sign in with GitHub or Discord to save your settings and unlock exclusive subscriber perks. ")
|
|
2630
|
-
]),
|
|
2631
|
-
_: 1
|
|
2632
|
-
})
|
|
2633
|
-
]),
|
|
2634
|
-
s(Q, {
|
|
2635
|
-
class: "mx-auto",
|
|
2636
|
-
"max-width": "300",
|
|
2637
|
-
width: "100%"
|
|
2638
|
-
}, {
|
|
2639
|
-
default: n(() => [
|
|
2640
|
-
s(l, { class: "mb-3" }),
|
|
2641
|
-
s(f)
|
|
2642
|
-
]),
|
|
2643
|
-
_: 1
|
|
2644
|
-
})
|
|
2645
|
-
]),
|
|
2646
|
-
_: 1
|
|
2647
|
-
})
|
|
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)
|
|
2648
2563
|
]),
|
|
2649
2564
|
_: 1
|
|
2650
|
-
}
|
|
2565
|
+
}, 16, ["color", "icon", "rounded"]);
|
|
2651
2566
|
};
|
|
2652
2567
|
}
|
|
2653
|
-
})
|
|
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 = {
|
|
2654
2575
|
class: "text-caption text-disabled",
|
|
2655
2576
|
style: { position: "absolute", right: "16px" }
|
|
2656
|
-
},
|
|
2577
|
+
}, Fs = /* @__PURE__ */ As(() => /* @__PURE__ */ v("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), js = /* @__PURE__ */ b({
|
|
2657
2578
|
__name: "VoFooter",
|
|
2658
2579
|
setup(u) {
|
|
2659
2580
|
const o = [
|
|
@@ -2664,7 +2585,7 @@ const et = (u, o) => {
|
|
|
2664
2585
|
},
|
|
2665
2586
|
{
|
|
2666
2587
|
title: "Vuetify Support",
|
|
2667
|
-
icon: `svg:${
|
|
2588
|
+
icon: `svg:${zt}`,
|
|
2668
2589
|
href: "https://support.vuetifyjs.com/"
|
|
2669
2590
|
},
|
|
2670
2591
|
{
|
|
@@ -2679,16 +2600,16 @@ const et = (u, o) => {
|
|
|
2679
2600
|
},
|
|
2680
2601
|
{
|
|
2681
2602
|
title: "Vuetify Discord",
|
|
2682
|
-
icon: `svg:${
|
|
2603
|
+
icon: `svg:${Be}`,
|
|
2683
2604
|
href: "https://community.vuetifyjs.com/"
|
|
2684
2605
|
},
|
|
2685
2606
|
{
|
|
2686
2607
|
title: "Vuetify Reddit",
|
|
2687
|
-
icon: `svg:${
|
|
2608
|
+
icon: `svg:${Tt}`,
|
|
2688
2609
|
href: "https://reddit.com/r/vuetifyjs"
|
|
2689
2610
|
}
|
|
2690
2611
|
];
|
|
2691
|
-
return (i,
|
|
2612
|
+
return (i, e) => (d(), _(oo, {
|
|
2692
2613
|
class: "vo-footer",
|
|
2693
2614
|
height: "40"
|
|
2694
2615
|
}, {
|
|
@@ -2701,25 +2622,25 @@ const et = (u, o) => {
|
|
|
2701
2622
|
rel: "noopener noreferrer",
|
|
2702
2623
|
target: "_blank"
|
|
2703
2624
|
}, [
|
|
2704
|
-
s(
|
|
2625
|
+
s(N, {
|
|
2705
2626
|
icon: r.icon,
|
|
2706
2627
|
size: r.icon === "$vuetify" ? 24 : 16
|
|
2707
2628
|
}, null, 8, ["icon", "size"])
|
|
2708
|
-
], 8,
|
|
2709
|
-
v("div",
|
|
2710
|
-
j(" © 2016-" +
|
|
2711
|
-
|
|
2629
|
+
], 8, Ds)), 64)),
|
|
2630
|
+
v("div", Us, [
|
|
2631
|
+
j(" © 2016-" + C((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
|
|
2632
|
+
Fs
|
|
2712
2633
|
])
|
|
2713
2634
|
]),
|
|
2714
2635
|
_: 1
|
|
2715
2636
|
}));
|
|
2716
2637
|
}
|
|
2717
2638
|
});
|
|
2718
|
-
const
|
|
2719
|
-
const u =
|
|
2720
|
-
|
|
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, () => {
|
|
2721
2642
|
window.clearTimeout(a.value), a.value = window.setTimeout(() => {
|
|
2722
|
-
!
|
|
2643
|
+
!e.value || !l.value || m(e.value, e.value.id);
|
|
2723
2644
|
}, 100);
|
|
2724
2645
|
}, { deep: !0 });
|
|
2725
2646
|
async function p() {
|
|
@@ -2733,90 +2654,90 @@ const zs = /* @__PURE__ */ et(Os, [["__scopeId", "data-v-86d0e524"]]), xn = X("b
|
|
|
2733
2654
|
}
|
|
2734
2655
|
return i.value;
|
|
2735
2656
|
}
|
|
2736
|
-
async function
|
|
2657
|
+
async function k(g) {
|
|
2737
2658
|
try {
|
|
2738
|
-
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);
|
|
2739
2660
|
} catch {
|
|
2740
2661
|
} finally {
|
|
2741
2662
|
r.value = !1;
|
|
2742
2663
|
}
|
|
2743
2664
|
return !0;
|
|
2744
2665
|
}
|
|
2745
|
-
async function
|
|
2666
|
+
async function L(g) {
|
|
2746
2667
|
try {
|
|
2747
2668
|
r.value = !0;
|
|
2748
|
-
const
|
|
2749
|
-
return i.value.push(
|
|
2669
|
+
const $ = await o.post("/one/bins", { bin: g });
|
|
2670
|
+
return i.value.push($.bin), e.value = $.bin, $;
|
|
2750
2671
|
} catch {
|
|
2751
2672
|
} finally {
|
|
2752
2673
|
r.value = !1;
|
|
2753
2674
|
}
|
|
2754
2675
|
return { bin: g };
|
|
2755
2676
|
}
|
|
2756
|
-
async function m(g,
|
|
2677
|
+
async function m(g, $) {
|
|
2757
2678
|
try {
|
|
2758
2679
|
r.value = !0;
|
|
2759
|
-
const
|
|
2760
|
-
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);
|
|
2761
2682
|
} catch {
|
|
2762
2683
|
} finally {
|
|
2763
2684
|
r.value = !1;
|
|
2764
2685
|
}
|
|
2765
2686
|
return { bin: g };
|
|
2766
2687
|
}
|
|
2767
|
-
async function
|
|
2688
|
+
async function y(g, $) {
|
|
2768
2689
|
try {
|
|
2769
2690
|
r.value = !0;
|
|
2770
|
-
const
|
|
2771
|
-
|
|
2691
|
+
const I = $ ? await m(g, $) : await L(g);
|
|
2692
|
+
e.value = I.bin;
|
|
2772
2693
|
} catch {
|
|
2773
2694
|
} finally {
|
|
2774
2695
|
r.value = !1;
|
|
2775
2696
|
}
|
|
2776
2697
|
return { bin: g };
|
|
2777
2698
|
}
|
|
2778
|
-
async function
|
|
2699
|
+
async function D(g) {
|
|
2779
2700
|
try {
|
|
2780
2701
|
r.value = !0;
|
|
2781
|
-
const
|
|
2782
|
-
|
|
2702
|
+
const $ = await o.get(`/one/bins/${g}`);
|
|
2703
|
+
e.value = $.bin;
|
|
2783
2704
|
} catch {
|
|
2784
2705
|
} finally {
|
|
2785
2706
|
r.value = !1;
|
|
2786
2707
|
}
|
|
2787
|
-
return { bin:
|
|
2708
|
+
return { bin: e.value };
|
|
2788
2709
|
}
|
|
2789
2710
|
return {
|
|
2790
2711
|
isLoading: r,
|
|
2791
|
-
isOwner:
|
|
2792
|
-
pinned:
|
|
2793
|
-
favorites:
|
|
2712
|
+
isOwner: l,
|
|
2713
|
+
pinned: h,
|
|
2714
|
+
favorites: c,
|
|
2794
2715
|
all: i,
|
|
2795
|
-
create:
|
|
2796
|
-
delete:
|
|
2797
|
-
current:
|
|
2798
|
-
find:
|
|
2716
|
+
create: L,
|
|
2717
|
+
delete: k,
|
|
2718
|
+
current: e,
|
|
2719
|
+
find: D,
|
|
2799
2720
|
get: p,
|
|
2800
2721
|
update: m,
|
|
2801
|
-
updateOrCreate:
|
|
2722
|
+
updateOrCreate: y
|
|
2802
2723
|
};
|
|
2803
2724
|
});
|
|
2804
|
-
function
|
|
2725
|
+
function kn() {
|
|
2805
2726
|
function u(o) {
|
|
2806
|
-
o.component("VoAuthBtn", Is), o.component("
|
|
2727
|
+
o.component("VoAuthBtn", Is), o.component("VoFooter", Ns);
|
|
2807
2728
|
}
|
|
2808
2729
|
return { install: u };
|
|
2809
2730
|
}
|
|
2810
|
-
function
|
|
2731
|
+
function $n(u) {
|
|
2811
2732
|
u.store.url = "https://api.vuetifyjs.com";
|
|
2812
2733
|
}
|
|
2813
2734
|
export {
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2735
|
+
kn as createOne,
|
|
2736
|
+
$n as one,
|
|
2737
|
+
O as useAuthStore,
|
|
2738
|
+
Vn as useBinsStore,
|
|
2818
2739
|
_e as useHttpStore,
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2740
|
+
X as useOneStore,
|
|
2741
|
+
Ge as useSettingsStore,
|
|
2742
|
+
H as useUserStore
|
|
2822
2743
|
};
|