@vuetify/one 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +189 -186
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as ot, toRefs as st, ref as ee, shallowRef as I, computed as A, watch as H, defineComponent as V, openBlock as d, createBlock as
|
|
1
|
+
import { reactive as ot, toRefs as st, ref as ee, shallowRef as I, computed as A, watch as H, defineComponent as V, openBlock as d, createBlock as h, unref as e, createSlots as G, withCtx as n, createElementVNode as v, toDisplayString as S, createVNode as s, withModifiers as Ue, createCommentVNode as C, renderSlot as W, mergeModels as nt, useModel as de, createElementBlock as w, Fragment as F, createTextVNode as j, renderList as te, mergeProps as se, normalizeStyle as Fe, onBeforeMount as it, onMounted as je, resolveComponent as Ne, withDirectives as Se, vShow as Be, normalizeClass as at, pushScopeId as rt, popScopeId as lt } from "vue";
|
|
2
2
|
import { defineStore as X } from "pinia";
|
|
3
3
|
import { merge as be } from "lodash-es";
|
|
4
4
|
import { mdiDiscord as Oe, mdiGithub as ze, mdiSync as ct, mdiSyncOff as ut, mdiLogoutVariant as dt, mdiCheck as K, mdiHome as pt, mdiTextBox as mt, mdiSpaceInvaders as Te, mdiWhiteBalanceSunny as ft, mdiWeatherNight as vt, mdiDesktopTowerMonitor as _t, mdiImageFilterHdr as ht, mdiRocketLaunchOutline as gt, mdiContrastCircle as bt, mdiCog as yt, mdiCogOutline as Vt, mdiFileDocument as kt, mdiCreditCardSettingsOutline as $t, mdiRocketOutline as xt, mdiCheckCircleOutline as ne, mdiCreditCard as wt, mdiReload as St, mdiPlaylistCheck as Ct, mdiCreditCardOutline as Lt, mdiHandHeart as At, mdiInformationOutline as De, mdiMedal as ye, mdiChartLine as It, mdiHandHeartOutline as Dt, mdiEmailOpenOutline as Ut, mdiEmailVariant as Ft, mdiOpenInNew as jt, mdiBell as Nt, mdiInboxOutline as Bt, mdiInboxFullOutline as Ot, mdiBellOutline as zt, mdiViewDashboardOutline as Tt, mdiTrashCan as Rt, mdiBug as Ht, mdiArrowULeftBottom as Mt, mdiLogin as Re, mdiShieldStarOutline as Pt, mdiReddit as Et } from "@mdi/js";
|
|
@@ -182,15 +182,15 @@ const _e = X("http", {
|
|
|
182
182
|
let T = -1, M = -1;
|
|
183
183
|
function P(b) {
|
|
184
184
|
var Z;
|
|
185
|
-
b.origin === o.url && ((Z = b.data) == null ? void 0 : Z.type) === "auth-response" && (b.data.status === "success" ? (u.value || localStorage.setItem("vuetify@lastLoginProvider", m), u.value = b.data.body.user) : console.error(b.data.message),
|
|
185
|
+
b.origin === o.url && ((Z = b.data) == null ? void 0 : Z.type) === "auth-response" && (b.data.status === "success" ? (u.value || localStorage.setItem("vuetify@lastLoginProvider", m), u.value = b.data.body.user) : console.error(b.data.message), _());
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function _() {
|
|
188
188
|
window.removeEventListener("message", P), window.clearInterval(T), window.clearTimeout(M), $ == null || $.close(), t.value = !1;
|
|
189
189
|
}
|
|
190
190
|
window.addEventListener("message", P), T = window.setInterval(() => {
|
|
191
|
-
!$ || $.closed ? (console.error("Auth popup closed"),
|
|
191
|
+
!$ || $.closed ? (console.error("Auth popup closed"), _()) : $.postMessage({ type: "auth-request" }, "*");
|
|
192
192
|
}, 1e3), M = window.setTimeout(() => {
|
|
193
|
-
|
|
193
|
+
_(), console.error("Auth timed out");
|
|
194
194
|
}, 120 * 1e3);
|
|
195
195
|
}
|
|
196
196
|
async function p(m) {
|
|
@@ -227,7 +227,7 @@ const _e = X("http", {
|
|
|
227
227
|
__name: "VoAuthDiscord",
|
|
228
228
|
setup(u) {
|
|
229
229
|
const o = N(), i = A(() => o.user && o.findIdentity("discord")), t = A(() => o.user ? i.value ? "Connected to Discord" : "Connect Discord" : "Log in with Discord");
|
|
230
|
-
return (r, a) => (d(),
|
|
230
|
+
return (r, a) => (d(), h(pe, {
|
|
231
231
|
"prepend-icon": `svg:${e(Oe)}`,
|
|
232
232
|
"base-color": "#5865F2",
|
|
233
233
|
rounded: "pill",
|
|
@@ -236,7 +236,7 @@ const _e = X("http", {
|
|
|
236
236
|
onClick: a[0] || (a[0] = (c) => e(o).login("discord"))
|
|
237
237
|
}, G({
|
|
238
238
|
title: n(() => [
|
|
239
|
-
v("span", lo,
|
|
239
|
+
v("span", lo, S(t.value), 1)
|
|
240
240
|
]),
|
|
241
241
|
_: 2
|
|
242
242
|
}, [
|
|
@@ -253,7 +253,7 @@ const _e = X("http", {
|
|
|
253
253
|
__name: "VoAuthGithub",
|
|
254
254
|
setup(u) {
|
|
255
255
|
const o = N(), i = A(() => o.user && o.findIdentity("github")), t = A(() => o.user ? i.value ? "Connected to GitHub" : "Connect GitHub" : "Log in with GitHub");
|
|
256
|
-
return (r, a) => (d(),
|
|
256
|
+
return (r, a) => (d(), h(pe, {
|
|
257
257
|
"prepend-icon": `svg:${e(ze)}`,
|
|
258
258
|
"base-color": "#2a2a2a",
|
|
259
259
|
rounded: "pill",
|
|
@@ -262,7 +262,7 @@ const _e = X("http", {
|
|
|
262
262
|
onClick: a[0] || (a[0] = (c) => e(o).login("github"))
|
|
263
263
|
}, G({
|
|
264
264
|
title: n(() => [
|
|
265
|
-
v("span", uo,
|
|
265
|
+
v("span", uo, S(t.value), 1)
|
|
266
266
|
]),
|
|
267
267
|
_: 2
|
|
268
268
|
}, [
|
|
@@ -287,7 +287,7 @@ const _e = X("http", {
|
|
|
287
287
|
}
|
|
288
288
|
return (a, c) => {
|
|
289
289
|
const l = Je, f = Ye;
|
|
290
|
-
return d(),
|
|
290
|
+
return d(), h(O, {
|
|
291
291
|
variant: t.value ? "tonal" : "text",
|
|
292
292
|
class: "ma-2",
|
|
293
293
|
rounded: "lg"
|
|
@@ -308,7 +308,7 @@ const _e = X("http", {
|
|
|
308
308
|
append: n(() => [
|
|
309
309
|
s(Ce, null, {
|
|
310
310
|
default: n(() => [
|
|
311
|
-
e(o).user && (t.value || !e(i).syncSettings) ? (d(),
|
|
311
|
+
e(o).user && (t.value || !e(i).syncSettings) ? (d(), h(He, {
|
|
312
312
|
key: 0,
|
|
313
313
|
modelValue: e(i).syncSettings,
|
|
314
314
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => e(i).syncSettings = p),
|
|
@@ -334,7 +334,7 @@ const _e = X("http", {
|
|
|
334
334
|
}, 8, ["link", "prepend-icon", "title"]),
|
|
335
335
|
s(ae, null, {
|
|
336
336
|
default: n(() => [
|
|
337
|
-
!e(o).user && !e(o).isLoading || t.value ? (d(),
|
|
337
|
+
!e(o).user && !e(o).isLoading || t.value ? (d(), h(Yt, {
|
|
338
338
|
key: 0,
|
|
339
339
|
border: "t",
|
|
340
340
|
color: "transparent"
|
|
@@ -365,7 +365,7 @@ const _e = X("http", {
|
|
|
365
365
|
}), Y = /* @__PURE__ */ V({
|
|
366
366
|
__name: "VoListItem",
|
|
367
367
|
setup(u) {
|
|
368
|
-
return (o, i) => (d(),
|
|
368
|
+
return (o, i) => (d(), h(pe, { slim: "" }, G({
|
|
369
369
|
default: n(() => [
|
|
370
370
|
W(o.$slots, "default")
|
|
371
371
|
]),
|
|
@@ -403,7 +403,7 @@ const _e = X("http", {
|
|
|
403
403
|
}
|
|
404
404
|
return (r, a) => {
|
|
405
405
|
const c = Y;
|
|
406
|
-
return d(),
|
|
406
|
+
return d(), h(c, {
|
|
407
407
|
disabled: i.value,
|
|
408
408
|
loading: i.value,
|
|
409
409
|
"prepend-icon": `svg:${e(dt)}`,
|
|
@@ -426,7 +426,7 @@ const _e = X("http", {
|
|
|
426
426
|
emits: ["update:modelValue"],
|
|
427
427
|
setup(u) {
|
|
428
428
|
const o = de(u, "modelValue");
|
|
429
|
-
return (i, t) => (d(),
|
|
429
|
+
return (i, t) => (d(), h(Me, {
|
|
430
430
|
modelValue: o.value,
|
|
431
431
|
"onUpdate:modelValue": t[1] || (t[1] = (r) => o.value = r),
|
|
432
432
|
activator: "parent",
|
|
@@ -482,7 +482,7 @@ const _e = X("http", {
|
|
|
482
482
|
disabled: { type: Boolean }
|
|
483
483
|
},
|
|
484
484
|
setup(u) {
|
|
485
|
-
return (o, i) => (d(),
|
|
485
|
+
return (o, i) => (d(), h(He, {
|
|
486
486
|
disabled: o.disabled,
|
|
487
487
|
"true-icon": `svg:${e(K)}`,
|
|
488
488
|
color: "primary",
|
|
@@ -515,17 +515,17 @@ const _e = X("http", {
|
|
|
515
515
|
text: {}
|
|
516
516
|
},
|
|
517
517
|
setup(u) {
|
|
518
|
-
return (o, i) => (d(),
|
|
519
|
-
o.title ? (d(),
|
|
518
|
+
return (o, i) => (d(), w(F, null, [
|
|
519
|
+
o.title ? (d(), h($e, {
|
|
520
520
|
key: 0,
|
|
521
521
|
class: "font-weight-black"
|
|
522
522
|
}, {
|
|
523
523
|
default: n(() => [
|
|
524
|
-
j(
|
|
524
|
+
j(S(o.title), 1)
|
|
525
525
|
]),
|
|
526
526
|
_: 1
|
|
527
527
|
})) : C("", !0),
|
|
528
|
-
o.text ? (d(),
|
|
528
|
+
o.text ? (d(), w("div", _o, S(o.text), 1)) : C("", !0)
|
|
529
529
|
], 64));
|
|
530
530
|
}
|
|
531
531
|
}), ho = { key: 0 }, go = /* @__PURE__ */ V({
|
|
@@ -551,7 +551,7 @@ const _e = X("http", {
|
|
|
551
551
|
];
|
|
552
552
|
return (t, r) => {
|
|
553
553
|
const a = Qe, c = re;
|
|
554
|
-
return d(),
|
|
554
|
+
return d(), w(F, null, [
|
|
555
555
|
s(a, {
|
|
556
556
|
modelValue: e(o).suits.show,
|
|
557
557
|
"onUpdate:modelValue": r[0] || (r[0] = (l) => e(o).suits.show = l),
|
|
@@ -561,7 +561,7 @@ const _e = X("http", {
|
|
|
561
561
|
}, null, 8, ["modelValue"]),
|
|
562
562
|
s(ae, null, {
|
|
563
563
|
default: n(() => [
|
|
564
|
-
e(o).suits.show ? (d(),
|
|
564
|
+
e(o).suits.show ? (d(), w("div", ho, [
|
|
565
565
|
s(Xt, {
|
|
566
566
|
modelValue: e(o).suits.suit,
|
|
567
567
|
"onUpdate:modelValue": r[1] || (r[1] = (l) => e(o).suits.suit = l),
|
|
@@ -580,7 +580,7 @@ const _e = X("http", {
|
|
|
580
580
|
size: "x-small",
|
|
581
581
|
start: ""
|
|
582
582
|
}, null, 8, ["icon"]),
|
|
583
|
-
j(" " +
|
|
583
|
+
j(" " + S(l.title), 1)
|
|
584
584
|
]),
|
|
585
585
|
_: 1
|
|
586
586
|
}, 8, ["modelValue"]),
|
|
@@ -866,7 +866,7 @@ const Xe = X("settings", () => {
|
|
|
866
866
|
];
|
|
867
867
|
return (c, l) => {
|
|
868
868
|
const f = re, p = go, y = Qe, D = he;
|
|
869
|
-
return d(),
|
|
869
|
+
return d(), h(D, {
|
|
870
870
|
modelValue: o.value,
|
|
871
871
|
"onUpdate:modelValue": l[5] || (l[5] = (m) => o.value = m),
|
|
872
872
|
"prepend-icon": `svg:${e(yt)}`,
|
|
@@ -891,7 +891,7 @@ const Xe = X("settings", () => {
|
|
|
891
891
|
default: n(() => [
|
|
892
892
|
s(fe, { dense: "" }, {
|
|
893
893
|
default: n(() => [
|
|
894
|
-
(d(),
|
|
894
|
+
(d(), w(F, null, te(a, (m, k) => s(ie, {
|
|
895
895
|
key: k,
|
|
896
896
|
cols: "6"
|
|
897
897
|
}, {
|
|
@@ -937,7 +937,7 @@ const Xe = X("settings", () => {
|
|
|
937
937
|
]),
|
|
938
938
|
_: 1
|
|
939
939
|
}, 8, ["modelValue"]),
|
|
940
|
-
e(i).isSubscriber ? (d(),
|
|
940
|
+
e(i).isSubscriber ? (d(), w(F, { key: 0 }, [
|
|
941
941
|
s(R, { class: "mt-6 mb-4" }),
|
|
942
942
|
s(p)
|
|
943
943
|
], 64)) : C("", !0)
|
|
@@ -951,7 +951,7 @@ const Xe = X("settings", () => {
|
|
|
951
951
|
text: "These options change your browsing experience within Vuetify properties",
|
|
952
952
|
title: "Experience"
|
|
953
953
|
}),
|
|
954
|
-
e(i).isSubscriber ? (d(),
|
|
954
|
+
e(i).isSubscriber ? (d(), h(y, {
|
|
955
955
|
key: 0,
|
|
956
956
|
modelValue: e(r).disableAds,
|
|
957
957
|
"onUpdate:modelValue": l[1] || (l[1] = (m) => e(r).disableAds = m),
|
|
@@ -969,7 +969,7 @@ const Xe = X("settings", () => {
|
|
|
969
969
|
_: 1
|
|
970
970
|
}),
|
|
971
971
|
s(R),
|
|
972
|
-
e(i).isSubscriber ? (d(),
|
|
972
|
+
e(i).isSubscriber ? (d(), h(J, {
|
|
973
973
|
key: 0,
|
|
974
974
|
class: "px-7"
|
|
975
975
|
}, {
|
|
@@ -985,7 +985,7 @@ const Xe = X("settings", () => {
|
|
|
985
985
|
label: "Enable Notifications",
|
|
986
986
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
987
987
|
}, null, 8, ["modelValue"]),
|
|
988
|
-
e(r).notifications.show ? (d(),
|
|
988
|
+
e(r).notifications.show ? (d(), h(y, {
|
|
989
989
|
key: 0,
|
|
990
990
|
modelValue: e(r).notifications.banners,
|
|
991
991
|
"onUpdate:modelValue": l[4] || (l[4] = (m) => e(r).notifications.banners = m),
|
|
@@ -1013,7 +1013,7 @@ const Xe = X("settings", () => {
|
|
|
1013
1013
|
const o = I(!1);
|
|
1014
1014
|
return (i, t) => {
|
|
1015
1015
|
const r = yo, a = Y;
|
|
1016
|
-
return d(),
|
|
1016
|
+
return d(), h(a, {
|
|
1017
1017
|
active: o.value,
|
|
1018
1018
|
"prepend-icon": `svg:${e(Vt)}`,
|
|
1019
1019
|
title: "Settings",
|
|
@@ -1036,7 +1036,7 @@ const Xe = X("settings", () => {
|
|
|
1036
1036
|
},
|
|
1037
1037
|
setup(u) {
|
|
1038
1038
|
const o = u;
|
|
1039
|
-
return (i, t) => (d(),
|
|
1039
|
+
return (i, t) => (d(), h(E, {
|
|
1040
1040
|
style: Fe({
|
|
1041
1041
|
pointerEvents: o.readonly ? "none" : void 0
|
|
1042
1042
|
}),
|
|
@@ -1066,40 +1066,40 @@ const Xe = X("settings", () => {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
}), oe = X("one", () => {
|
|
1068
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 (
|
|
1069
|
+
var _;
|
|
1070
|
+
return (_ = a.value) == null ? void 0 : _.items[0].plan.interval;
|
|
1071
1071
|
}), f = A(() => {
|
|
1072
|
-
var
|
|
1073
|
-
return (
|
|
1072
|
+
var _;
|
|
1073
|
+
return (_ = i.user) == null ? void 0 : _.sponsorships.find((b) => b.platform === "stripe" && b.tierName.startsWith("sub_"));
|
|
1074
1074
|
}), p = A(() => {
|
|
1075
|
-
var
|
|
1076
|
-
return !!((
|
|
1075
|
+
var _;
|
|
1076
|
+
return !!((_ = f.value) != null && _.tierName);
|
|
1077
1077
|
}), y = A(() => {
|
|
1078
|
-
var
|
|
1079
|
-
return (
|
|
1078
|
+
var _;
|
|
1079
|
+
return (_ = f.value) == null ? void 0 : _.isActive;
|
|
1080
1080
|
}), D = A(() => {
|
|
1081
|
-
var
|
|
1082
|
-
return (
|
|
1081
|
+
var _;
|
|
1082
|
+
return (_ = i.user) == null ? void 0 : _.sponsorships.find((b) => b.platform === "github");
|
|
1083
1083
|
}), m = A(() => {
|
|
1084
|
-
var
|
|
1085
|
-
return (
|
|
1084
|
+
var _;
|
|
1085
|
+
return (_ = i.user) == null ? void 0 : _.sponsorships.find((b) => b.platform === "discord");
|
|
1086
1086
|
}), k = A(() => {
|
|
1087
|
-
var
|
|
1088
|
-
return (
|
|
1087
|
+
var _;
|
|
1088
|
+
return (_ = i.user) == null ? void 0 : _.sponsorships.find((b) => b.platform === "patreon");
|
|
1089
1089
|
}), U = A(() => {
|
|
1090
|
-
var
|
|
1091
|
-
return (
|
|
1090
|
+
var _;
|
|
1091
|
+
return (_ = i.user) == null ? void 0 : _.sponsorships.reduce((b, Z) => (Z.platform !== "stripe" && (b += Z.amount), b), 0);
|
|
1092
1092
|
});
|
|
1093
1093
|
it(async () => {
|
|
1094
1094
|
o && await g();
|
|
1095
|
-
}), H(y, (
|
|
1096
|
-
|
|
1095
|
+
}), H(y, (_, b) => {
|
|
1096
|
+
_ === !1 && b !== !0 || M();
|
|
1097
1097
|
});
|
|
1098
1098
|
async function g() {
|
|
1099
1099
|
try {
|
|
1100
1100
|
r.value = !0;
|
|
1101
|
-
const
|
|
1102
|
-
i.user =
|
|
1101
|
+
const _ = await t.post("/one/activate", { sessionId: o });
|
|
1102
|
+
i.user = _.user;
|
|
1103
1103
|
const b = new URL(window.location.href);
|
|
1104
1104
|
b.searchParams.delete("session_id"), history.pushState(null, "", b.toString()), P();
|
|
1105
1105
|
} catch {
|
|
@@ -1110,16 +1110,16 @@ const Xe = X("settings", () => {
|
|
|
1110
1110
|
async function x() {
|
|
1111
1111
|
window.open(`${t.url}/one/manage`, "_blank");
|
|
1112
1112
|
}
|
|
1113
|
-
async function L(
|
|
1114
|
-
r.value = !0, window.location.href = `${t.url}/one/subscribe?interval=${
|
|
1113
|
+
async function L(_) {
|
|
1114
|
+
r.value = !0, window.location.href = `${t.url}/one/subscribe?interval=${_}`;
|
|
1115
1115
|
}
|
|
1116
1116
|
async function $() {
|
|
1117
|
-
var
|
|
1117
|
+
var _;
|
|
1118
1118
|
if (f.value)
|
|
1119
1119
|
try {
|
|
1120
1120
|
r.value = !0;
|
|
1121
1121
|
const b = await t.post(
|
|
1122
|
-
`/one/cancel?subscriptionId=${(
|
|
1122
|
+
`/one/cancel?subscriptionId=${(_ = f.value) == null ? void 0 : _.tierName}`
|
|
1123
1123
|
);
|
|
1124
1124
|
i.user = b.user;
|
|
1125
1125
|
} catch {
|
|
@@ -1127,13 +1127,13 @@ const Xe = X("settings", () => {
|
|
|
1127
1127
|
r.value = !1;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
|
-
async function T(
|
|
1130
|
+
async function T(_) {
|
|
1131
1131
|
if (f.value)
|
|
1132
1132
|
try {
|
|
1133
1133
|
r.value = !0;
|
|
1134
1134
|
const b = await t.post("/one/modify", {
|
|
1135
1135
|
subscriptionId: f.value.tierName,
|
|
1136
|
-
interval:
|
|
1136
|
+
interval: _
|
|
1137
1137
|
});
|
|
1138
1138
|
i.user = b.user;
|
|
1139
1139
|
} catch {
|
|
@@ -1142,12 +1142,12 @@ const Xe = X("settings", () => {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
}
|
|
1144
1144
|
async function M() {
|
|
1145
|
-
var
|
|
1145
|
+
var _;
|
|
1146
1146
|
if (f.value)
|
|
1147
1147
|
try {
|
|
1148
1148
|
r.value = !0;
|
|
1149
1149
|
const b = await t.post(
|
|
1150
|
-
`/one/verify?subscriptionId=${(
|
|
1150
|
+
`/one/verify?subscriptionId=${(_ = f.value) == null ? void 0 : _.tierName}`
|
|
1151
1151
|
);
|
|
1152
1152
|
i.user = b.user;
|
|
1153
1153
|
} catch {
|
|
@@ -1158,8 +1158,8 @@ const Xe = X("settings", () => {
|
|
|
1158
1158
|
async function P() {
|
|
1159
1159
|
try {
|
|
1160
1160
|
r.value = !0;
|
|
1161
|
-
const
|
|
1162
|
-
return a.value =
|
|
1161
|
+
const _ = await t.get("/one/info");
|
|
1162
|
+
return a.value = _.subscription, c.value = _.invoices, _;
|
|
1163
1163
|
} catch {
|
|
1164
1164
|
} finally {
|
|
1165
1165
|
r.value = !1;
|
|
@@ -1192,7 +1192,7 @@ const Xe = X("settings", () => {
|
|
|
1192
1192
|
const o = me(), i = oe();
|
|
1193
1193
|
return (t, r) => {
|
|
1194
1194
|
const a = re;
|
|
1195
|
-
return d(),
|
|
1195
|
+
return d(), h(fe, null, {
|
|
1196
1196
|
default: n(() => [
|
|
1197
1197
|
s(ie, { cols: "12" }, {
|
|
1198
1198
|
default: n(() => [
|
|
@@ -1212,10 +1212,10 @@ const Xe = X("settings", () => {
|
|
|
1212
1212
|
sticky: ""
|
|
1213
1213
|
}, {
|
|
1214
1214
|
"item.date": n(({ item: c }) => [
|
|
1215
|
-
v("div", ko,
|
|
1215
|
+
v("div", ko, S(e(o).format(new Date(c.date * 1e3), "fullDateWithWeekday")), 1)
|
|
1216
1216
|
]),
|
|
1217
1217
|
"item.amount": n(({ item: c }) => [
|
|
1218
|
-
j(" $" +
|
|
1218
|
+
j(" $" + S(c.amount / 100), 1)
|
|
1219
1219
|
]),
|
|
1220
1220
|
"item.status": n(({ item: c }) => [
|
|
1221
1221
|
s(q, {
|
|
@@ -1268,7 +1268,7 @@ const Xe = X("settings", () => {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
return (l, f) => {
|
|
1270
1270
|
const p = ge;
|
|
1271
|
-
return d(),
|
|
1271
|
+
return d(), h(fe, null, {
|
|
1272
1272
|
default: n(() => [
|
|
1273
1273
|
s(ie, { cols: "12" }, {
|
|
1274
1274
|
default: n(() => {
|
|
@@ -1284,7 +1284,7 @@ const Xe = X("settings", () => {
|
|
|
1284
1284
|
append: n(() => {
|
|
1285
1285
|
var m;
|
|
1286
1286
|
return [
|
|
1287
|
-
e(t).hasBilling && ((m = e(t).info) == null ? void 0 : m.status) === "canceled" ? (d(),
|
|
1287
|
+
e(t).hasBilling && ((m = e(t).info) == null ? void 0 : m.status) === "canceled" ? (d(), h(p, {
|
|
1288
1288
|
key: 0,
|
|
1289
1289
|
loading: e(t).isLoading,
|
|
1290
1290
|
class: "me-2",
|
|
@@ -1294,7 +1294,7 @@ const Xe = X("settings", () => {
|
|
|
1294
1294
|
variant: "outlined",
|
|
1295
1295
|
onClick: c
|
|
1296
1296
|
}, null, 8, ["loading"])) : C("", !0),
|
|
1297
|
-
e(t).hasBilling ? (d(),
|
|
1297
|
+
e(t).hasBilling ? (d(), h(p, {
|
|
1298
1298
|
key: 1,
|
|
1299
1299
|
loading: e(t).isLoading,
|
|
1300
1300
|
"prepend-icon": `svg:${e($t)}`,
|
|
@@ -1309,12 +1309,12 @@ const Xe = X("settings", () => {
|
|
|
1309
1309
|
name: "subtitle",
|
|
1310
1310
|
fn: n(() => [
|
|
1311
1311
|
v("div", xo, [
|
|
1312
|
-
v("span", wo,
|
|
1313
|
-
e(t).info.items.length ? (d(),
|
|
1312
|
+
v("span", wo, S(e(t).info.status), 1),
|
|
1313
|
+
e(t).info.items.length ? (d(), w(F, { key: 0 }, [
|
|
1314
1314
|
So,
|
|
1315
1315
|
v("span", Co, [
|
|
1316
|
-
j(" $" +
|
|
1317
|
-
v("span", Lo, "/" +
|
|
1316
|
+
j(" $" + S(e(t).info.items[0].plan.amount / 100), 1),
|
|
1317
|
+
v("span", Lo, "/" + S(e(t).interval), 1)
|
|
1318
1318
|
]),
|
|
1319
1319
|
s(p, {
|
|
1320
1320
|
size: "x-small",
|
|
@@ -1348,13 +1348,13 @@ const Xe = X("settings", () => {
|
|
|
1348
1348
|
]), 1024),
|
|
1349
1349
|
v("div", Ao, [
|
|
1350
1350
|
v("div", null, [
|
|
1351
|
-
((y = e(t).info) == null ? void 0 : y.status) === "active" ? (d(),
|
|
1351
|
+
((y = e(t).info) == null ? void 0 : y.status) === "active" ? (d(), w(F, { key: 0 }, [
|
|
1352
1352
|
j(" Your plan renews on "),
|
|
1353
|
-
v("span", Io,
|
|
1353
|
+
v("span", Io, S(e(i).format(a.value, "fullDateWithWeekday")), 1),
|
|
1354
1354
|
j(". ")
|
|
1355
|
-
], 64)) : (d(),
|
|
1355
|
+
], 64)) : (d(), w(F, { key: 1 }, [
|
|
1356
1356
|
j(" Your plan ends on "),
|
|
1357
|
-
v("span", Do,
|
|
1357
|
+
v("span", Do, S(e(i).format((D = e(t).info) == null ? void 0 : D.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1358
1358
|
j(". ")
|
|
1359
1359
|
], 64))
|
|
1360
1360
|
])
|
|
@@ -1386,7 +1386,7 @@ const Xe = X("settings", () => {
|
|
|
1386
1386
|
a && r.subscriptionInfo();
|
|
1387
1387
|
}), (a, c) => {
|
|
1388
1388
|
const l = Y;
|
|
1389
|
-
return d(),
|
|
1389
|
+
return d(), w(F, null, [
|
|
1390
1390
|
s($e, { class: "font-weight-black" }, {
|
|
1391
1391
|
default: n(() => [
|
|
1392
1392
|
j("Perks")
|
|
@@ -1401,7 +1401,7 @@ const Xe = X("settings", () => {
|
|
|
1401
1401
|
nav: ""
|
|
1402
1402
|
}, {
|
|
1403
1403
|
default: n(() => [
|
|
1404
|
-
(d(),
|
|
1404
|
+
(d(), w(F, null, te(o, (f, p) => s(l, {
|
|
1405
1405
|
key: p,
|
|
1406
1406
|
"prepend-icon": `svg:${e(K)}`,
|
|
1407
1407
|
class: "mb-0"
|
|
@@ -1436,7 +1436,7 @@ const Xe = X("settings", () => {
|
|
|
1436
1436
|
nav: ""
|
|
1437
1437
|
}, {
|
|
1438
1438
|
default: n(() => [
|
|
1439
|
-
(d(),
|
|
1439
|
+
(d(), w(F, null, te(i, (f, p) => s(l, {
|
|
1440
1440
|
key: p,
|
|
1441
1441
|
"prepend-icon": `svg:${e(xt)}`,
|
|
1442
1442
|
class: "mb-0"
|
|
@@ -1473,7 +1473,7 @@ const Xe = X("settings", () => {
|
|
|
1473
1473
|
r && t.subscriptionInfo();
|
|
1474
1474
|
}), H(() => t.interval, (r) => {
|
|
1475
1475
|
i.value = r;
|
|
1476
|
-
}, { immediate: !0 }), (r, a) => (d(),
|
|
1476
|
+
}, { immediate: !0 }), (r, a) => (d(), h(We, {
|
|
1477
1477
|
modelValue: i.value,
|
|
1478
1478
|
"onUpdate:modelValue": a[0] || (a[0] = (c) => i.value = c)
|
|
1479
1479
|
}, {
|
|
@@ -1576,7 +1576,7 @@ const Xe = X("settings", () => {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
return (f, p) => {
|
|
1578
1578
|
const y = re, D = To, m = zo, k = Uo, U = $o, g = ge, x = he;
|
|
1579
|
-
return d(),
|
|
1579
|
+
return d(), h(x, {
|
|
1580
1580
|
modelValue: i.value,
|
|
1581
1581
|
"onUpdate:modelValue": p[4] || (p[4] = (L) => i.value = L),
|
|
1582
1582
|
"prepend-icon": `svg:${e(wt)}`,
|
|
@@ -1626,7 +1626,7 @@ const Xe = X("settings", () => {
|
|
|
1626
1626
|
name: "actions",
|
|
1627
1627
|
fn: n(() => [
|
|
1628
1628
|
v("div", Mo, [
|
|
1629
|
-
c.value !== !1 ? (d(),
|
|
1629
|
+
c.value !== !1 ? (d(), h(g, {
|
|
1630
1630
|
key: 0,
|
|
1631
1631
|
loading: e(t).isLoading,
|
|
1632
1632
|
"prepend-icon": `svg:${c.value !== null ? e(St) : e(ne)}`,
|
|
@@ -1636,14 +1636,14 @@ const Xe = X("settings", () => {
|
|
|
1636
1636
|
size: "default",
|
|
1637
1637
|
block: "",
|
|
1638
1638
|
onClick: l
|
|
1639
|
-
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : e(t).isSubscriber ? (d(),
|
|
1639
|
+
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : e(t).isSubscriber ? (d(), h(g, {
|
|
1640
1640
|
key: 2,
|
|
1641
1641
|
"prepend-icon": `svg:${e(Ct)}`,
|
|
1642
1642
|
size: "default",
|
|
1643
1643
|
text: "Manage Subscription",
|
|
1644
1644
|
block: "",
|
|
1645
1645
|
onClick: p[3] || (p[3] = (L) => a.value = "status")
|
|
1646
|
-
}, null, 8, ["prepend-icon"])) : (d(),
|
|
1646
|
+
}, null, 8, ["prepend-icon"])) : (d(), h(g, {
|
|
1647
1647
|
key: 1,
|
|
1648
1648
|
color: r.value ? "primary" : "disabled",
|
|
1649
1649
|
disabled: !r.value,
|
|
@@ -1667,7 +1667,7 @@ const Xe = X("settings", () => {
|
|
|
1667
1667
|
const o = I(!1);
|
|
1668
1668
|
return (i, t) => {
|
|
1669
1669
|
const r = Po, a = Y;
|
|
1670
|
-
return d(),
|
|
1670
|
+
return d(), h(a, {
|
|
1671
1671
|
active: o.value,
|
|
1672
1672
|
"prepend-icon": `svg:${e(Lt)}`,
|
|
1673
1673
|
title: "Subscriptions",
|
|
@@ -1692,7 +1692,7 @@ const Xe = X("settings", () => {
|
|
|
1692
1692
|
}
|
|
1693
1693
|
return (c, l) => {
|
|
1694
1694
|
const f = re, p = ge, y = Ne("v-empty-state"), D = he;
|
|
1695
|
-
return d(),
|
|
1695
|
+
return d(), h(D, {
|
|
1696
1696
|
"prepend-icon": `svg:${e(At)}`,
|
|
1697
1697
|
"max-height": "820",
|
|
1698
1698
|
title: "Sponsorships"
|
|
@@ -1734,7 +1734,7 @@ const Xe = X("settings", () => {
|
|
|
1734
1734
|
border: ""
|
|
1735
1735
|
}, {
|
|
1736
1736
|
append: n(() => {
|
|
1737
|
-
var $, T, M, P,
|
|
1737
|
+
var $, T, M, P, _, b;
|
|
1738
1738
|
return [
|
|
1739
1739
|
v("div", Go, [
|
|
1740
1740
|
s(p, {
|
|
@@ -1742,7 +1742,7 @@ const Xe = X("settings", () => {
|
|
|
1742
1742
|
href: (T = e(t).github) != null && T.isActive ? "https://github.com/sponsors/johnleider" : void 0,
|
|
1743
1743
|
"prepend-icon": `svg:${(M = e(t).github) != null && M.isActive ? e(ne) : e(De)}`,
|
|
1744
1744
|
readonly: (P = e(t).github) == null ? void 0 : P.isActive,
|
|
1745
|
-
target: (
|
|
1745
|
+
target: (_ = e(t).github) != null && _.isActive ? "_blank" : void 0,
|
|
1746
1746
|
text: (b = e(t).github) != null && b.isActive ? "Active" : "Info",
|
|
1747
1747
|
width: "88"
|
|
1748
1748
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
|
|
@@ -1752,7 +1752,7 @@ const Xe = X("settings", () => {
|
|
|
1752
1752
|
default: n(() => {
|
|
1753
1753
|
var $;
|
|
1754
1754
|
return [
|
|
1755
|
-
($ = e(t).github) != null && $.isActive ? (d(),
|
|
1755
|
+
($ = e(t).github) != null && $.isActive ? (d(), w(F, { key: 0 }, [
|
|
1756
1756
|
s(R),
|
|
1757
1757
|
s(J, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
1758
1758
|
default: n(() => [
|
|
@@ -1766,7 +1766,7 @@ const Xe = X("settings", () => {
|
|
|
1766
1766
|
}, null, 8, ["prepend-icon", "text"]),
|
|
1767
1767
|
v("div", qo, [
|
|
1768
1768
|
j(" Sponsor since "),
|
|
1769
|
-
v("span", Yo,
|
|
1769
|
+
v("span", Yo, S(a(e(t).github.createdAt)), 1)
|
|
1770
1770
|
])
|
|
1771
1771
|
]),
|
|
1772
1772
|
_: 1
|
|
@@ -1795,7 +1795,7 @@ const Xe = X("settings", () => {
|
|
|
1795
1795
|
border: ""
|
|
1796
1796
|
}, {
|
|
1797
1797
|
append: n(() => {
|
|
1798
|
-
var $, T, M, P,
|
|
1798
|
+
var $, T, M, P, _, b;
|
|
1799
1799
|
return [
|
|
1800
1800
|
v("div", Jo, [
|
|
1801
1801
|
s(p, {
|
|
@@ -1803,7 +1803,7 @@ const Xe = X("settings", () => {
|
|
|
1803
1803
|
href: (T = e(t).discord) != null && T.isActive ? "https://discord.com/servers/vuetify-340160225338195969" : void 0,
|
|
1804
1804
|
"prepend-icon": `svg:${(M = e(t).discord) != null && M.isActive ? e(ne) : e(De)}`,
|
|
1805
1805
|
readonly: (P = e(t).discord) == null ? void 0 : P.isActive,
|
|
1806
|
-
target: (
|
|
1806
|
+
target: (_ = e(t).discord) != null && _.isActive ? "_blank" : void 0,
|
|
1807
1807
|
text: (b = e(t).discord) != null && b.isActive ? "Active" : "Info",
|
|
1808
1808
|
width: "88"
|
|
1809
1809
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
|
|
@@ -1813,7 +1813,7 @@ const Xe = X("settings", () => {
|
|
|
1813
1813
|
default: n(() => {
|
|
1814
1814
|
var $;
|
|
1815
1815
|
return [
|
|
1816
|
-
($ = e(t).discord) != null && $.isActive ? (d(),
|
|
1816
|
+
($ = e(t).discord) != null && $.isActive ? (d(), w(F, { key: 0 }, [
|
|
1817
1817
|
s(R),
|
|
1818
1818
|
s(J, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
1819
1819
|
default: n(() => [
|
|
@@ -1827,7 +1827,7 @@ const Xe = X("settings", () => {
|
|
|
1827
1827
|
}, null, 8, ["prepend-icon", "text"]),
|
|
1828
1828
|
v("div", Qo, [
|
|
1829
1829
|
j(" Subscriber since "),
|
|
1830
|
-
v("span", Xo,
|
|
1830
|
+
v("span", Xo, S(a(e(t).discord.createdAt)), 1)
|
|
1831
1831
|
])
|
|
1832
1832
|
]),
|
|
1833
1833
|
_: 1
|
|
@@ -1869,7 +1869,7 @@ const Xe = X("settings", () => {
|
|
|
1869
1869
|
default: n(() => {
|
|
1870
1870
|
var $;
|
|
1871
1871
|
return [
|
|
1872
|
-
($ = e(t).patreon) != null && $.isActive ? (d(),
|
|
1872
|
+
($ = e(t).patreon) != null && $.isActive ? (d(), w(F, { key: 0 }, [
|
|
1873
1873
|
s(R),
|
|
1874
1874
|
s(J, { class: "d-flex justify-space-between align-center flex-wrap" }, {
|
|
1875
1875
|
default: n(() => [
|
|
@@ -1882,7 +1882,7 @@ const Xe = X("settings", () => {
|
|
|
1882
1882
|
}, null, 8, ["prepend-icon", "text"]),
|
|
1883
1883
|
v("div", Ko, [
|
|
1884
1884
|
j(" Sponsor since "),
|
|
1885
|
-
v("span", es,
|
|
1885
|
+
v("span", es, S(a(e(t).patreon.createdAt)), 1)
|
|
1886
1886
|
])
|
|
1887
1887
|
]),
|
|
1888
1888
|
_: 1
|
|
@@ -1914,9 +1914,9 @@ const Xe = X("settings", () => {
|
|
|
1914
1914
|
]),
|
|
1915
1915
|
headline: n(() => [
|
|
1916
1916
|
v("div", ts, [
|
|
1917
|
-
e(i).isSubscriber ? (d(),
|
|
1918
|
-
j(" $" +
|
|
1919
|
-
], 64)) : (d(),
|
|
1917
|
+
e(i).isSubscriber ? (d(), w(F, { key: 0 }, [
|
|
1918
|
+
j(" $" + S(parseFloat(String(e(t).monthlyTotal)).toFixed(2)), 1)
|
|
1919
|
+
], 64)) : (d(), w(F, { key: 1 }, [
|
|
1920
1920
|
j(" $0.00 ")
|
|
1921
1921
|
], 64))
|
|
1922
1922
|
])
|
|
@@ -1944,7 +1944,7 @@ const Xe = X("settings", () => {
|
|
|
1944
1944
|
const o = I(!1);
|
|
1945
1945
|
return (i, t) => {
|
|
1946
1946
|
const r = ss, a = Y;
|
|
1947
|
-
return d(),
|
|
1947
|
+
return d(), h(a, {
|
|
1948
1948
|
active: o.value,
|
|
1949
1949
|
"prepend-icon": `svg:${e(Dt)}`,
|
|
1950
1950
|
title: "Sponsorships",
|
|
@@ -1960,7 +1960,10 @@ const Xe = X("settings", () => {
|
|
|
1960
1960
|
}, 8, ["active", "prepend-icon"]);
|
|
1961
1961
|
};
|
|
1962
1962
|
}
|
|
1963
|
-
}), is =
|
|
1963
|
+
}), is = {
|
|
1964
|
+
key: 0,
|
|
1965
|
+
class: "pt-16"
|
|
1966
|
+
}, as = /* @__PURE__ */ v("div", { class: "text-medium-emphasis" }, " All caught up ", -1), rs = { class: "ps-3 text-subtitle-2 pe-2" }, ls = { class: "text-truncate" }, cs = { class: "text-caption font-weight-bold text-medium-emphasis" }, us = { class: "text-disabled text-caption my-2" }, ds = /* @__PURE__ */ V({
|
|
1964
1967
|
__name: "VoNotificationsList",
|
|
1965
1968
|
props: {
|
|
1966
1969
|
items: {}
|
|
@@ -1975,13 +1978,13 @@ const Xe = X("settings", () => {
|
|
|
1975
1978
|
}
|
|
1976
1979
|
return (a, c) => {
|
|
1977
1980
|
const l = Ne("v-empty-state"), f = Y;
|
|
1978
|
-
return d(),
|
|
1981
|
+
return d(), h(Q, {
|
|
1979
1982
|
class: "py-0",
|
|
1980
1983
|
height: "100%",
|
|
1981
1984
|
lines: "three"
|
|
1982
1985
|
}, {
|
|
1983
1986
|
default: n(() => [
|
|
1984
|
-
a.items.length ? (d(!0),
|
|
1987
|
+
a.items.length ? (d(!0), w(F, { key: 1 }, te(a.items, (p, y) => (d(), h(Ee, {
|
|
1985
1988
|
key: p.slug
|
|
1986
1989
|
}, {
|
|
1987
1990
|
default: n(({ isHovering: D, props: m }) => [
|
|
@@ -1990,7 +1993,7 @@ const Xe = X("settings", () => {
|
|
|
1990
1993
|
class: "py-4 mb-0"
|
|
1991
1994
|
}), {
|
|
1992
1995
|
prepend: n(() => [
|
|
1993
|
-
v("div",
|
|
1996
|
+
v("div", rs, S(p.metadata.emoji), 1)
|
|
1994
1997
|
]),
|
|
1995
1998
|
append: n(() => [
|
|
1996
1999
|
s(to, {
|
|
@@ -2028,12 +2031,12 @@ const Xe = X("settings", () => {
|
|
|
2028
2031
|
default: n(() => [
|
|
2029
2032
|
s(Wt, { class: "text-wrap text-h6 mb-1" }, {
|
|
2030
2033
|
default: n(() => [
|
|
2031
|
-
v("div",
|
|
2034
|
+
v("div", ls, S(p.title), 1)
|
|
2032
2035
|
]),
|
|
2033
2036
|
_: 2
|
|
2034
2037
|
}, 1024),
|
|
2035
|
-
v("div",
|
|
2036
|
-
v("div",
|
|
2038
|
+
v("div", cs, S(e(i).format(p.created_at, "fullDateWithWeekday")), 1),
|
|
2039
|
+
v("div", us, S(p.metadata.text), 1),
|
|
2037
2040
|
s(q, {
|
|
2038
2041
|
"append-icon": `svg:${e(jt)}`,
|
|
2039
2042
|
href: p.metadata.action,
|
|
@@ -2055,20 +2058,20 @@ const Xe = X("settings", () => {
|
|
|
2055
2058
|
}, 1040, ["border"])
|
|
2056
2059
|
]),
|
|
2057
2060
|
_: 2
|
|
2058
|
-
}, 1024))), 128)) : (d(),
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2061
|
+
}, 1024))), 128)) : (d(), w("div", is, [
|
|
2062
|
+
s(l, {
|
|
2063
|
+
icon: "$vuetify",
|
|
2064
|
+
size: "256"
|
|
2065
|
+
}, {
|
|
2066
|
+
media: n(() => [
|
|
2067
|
+
s(B, { color: "medium-emphasis" })
|
|
2068
|
+
]),
|
|
2069
|
+
title: n(() => [
|
|
2070
|
+
as
|
|
2071
|
+
]),
|
|
2072
|
+
_: 1
|
|
2073
|
+
})
|
|
2074
|
+
]))
|
|
2072
2075
|
]),
|
|
2073
2076
|
_: 1
|
|
2074
2077
|
});
|
|
@@ -2094,13 +2097,13 @@ const Xe = X("settings", () => {
|
|
|
2094
2097
|
read: a,
|
|
2095
2098
|
unread: r
|
|
2096
2099
|
};
|
|
2097
|
-
}),
|
|
2100
|
+
}), ps = { class: "text-caption" }, ms = /* @__PURE__ */ V({
|
|
2098
2101
|
__name: "VoNotificationsDialog",
|
|
2099
2102
|
setup(u) {
|
|
2100
2103
|
const o = Ze(), i = Le(), t = I(["0"]), r = I(!1);
|
|
2101
2104
|
return (a, c) => {
|
|
2102
|
-
const l = Y, f =
|
|
2103
|
-
return d(),
|
|
2105
|
+
const l = Y, f = ds, p = he;
|
|
2106
|
+
return d(), h(p, {
|
|
2104
2107
|
modelValue: r.value,
|
|
2105
2108
|
"onUpdate:modelValue": c[2] || (c[2] = (y) => r.value = y),
|
|
2106
2109
|
"prepend-icon": `svg:${e(Nt)}`,
|
|
@@ -2132,7 +2135,7 @@ const Xe = X("settings", () => {
|
|
|
2132
2135
|
e(o).unread.length > 0 ? {
|
|
2133
2136
|
name: "append",
|
|
2134
2137
|
fn: n(() => [
|
|
2135
|
-
v("span",
|
|
2138
|
+
v("span", ps, S(e(o).unread.length), 1)
|
|
2136
2139
|
]),
|
|
2137
2140
|
key: "0"
|
|
2138
2141
|
} : void 0
|
|
@@ -2186,15 +2189,15 @@ const Xe = X("settings", () => {
|
|
|
2186
2189
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2187
2190
|
};
|
|
2188
2191
|
}
|
|
2189
|
-
}),
|
|
2192
|
+
}), fs = /* @__PURE__ */ V({
|
|
2190
2193
|
__name: "VoNotificationsListItem",
|
|
2191
2194
|
setup(u) {
|
|
2192
2195
|
const o = z(), i = Ze(), t = I(!1);
|
|
2193
2196
|
return je(async () => {
|
|
2194
2197
|
await i.get();
|
|
2195
2198
|
}), (r, a) => {
|
|
2196
|
-
const c =
|
|
2197
|
-
return e(o).notifications.show ? (d(),
|
|
2199
|
+
const c = ms, l = Y;
|
|
2200
|
+
return e(o).notifications.show ? (d(), h(l, {
|
|
2198
2201
|
key: 0,
|
|
2199
2202
|
active: t.value,
|
|
2200
2203
|
"prepend-icon": `svg:${e(zt)}`,
|
|
@@ -2227,25 +2230,25 @@ const Xe = X("settings", () => {
|
|
|
2227
2230
|
]), 1032, ["active", "prepend-icon"])) : C("", !0);
|
|
2228
2231
|
};
|
|
2229
2232
|
}
|
|
2230
|
-
}),
|
|
2233
|
+
}), vs = /* @__PURE__ */ V({
|
|
2231
2234
|
__name: "VoDashboardListItem",
|
|
2232
2235
|
setup(u) {
|
|
2233
2236
|
return (o, i) => {
|
|
2234
2237
|
const t = Y;
|
|
2235
|
-
return d(),
|
|
2238
|
+
return d(), h(t, {
|
|
2236
2239
|
"prepend-icon": `svg:${e(Tt)}`,
|
|
2237
2240
|
title: "Dashboard",
|
|
2238
2241
|
to: "/user/dashboard"
|
|
2239
2242
|
}, null, 8, ["prepend-icon"]);
|
|
2240
2243
|
};
|
|
2241
2244
|
}
|
|
2242
|
-
}),
|
|
2245
|
+
}), _s = /* @__PURE__ */ V({
|
|
2243
2246
|
__name: "VoUserList",
|
|
2244
2247
|
setup(u) {
|
|
2245
2248
|
const o = N();
|
|
2246
2249
|
return (i, t) => {
|
|
2247
|
-
const r =
|
|
2248
|
-
return d(),
|
|
2250
|
+
const r = vs, a = fs, c = ns, l = Eo, f = Vo, p = vo;
|
|
2251
|
+
return d(), h(Q, {
|
|
2249
2252
|
density: "compact",
|
|
2250
2253
|
nav: "",
|
|
2251
2254
|
slim: ""
|
|
@@ -2254,22 +2257,22 @@ const Xe = X("settings", () => {
|
|
|
2254
2257
|
s(r),
|
|
2255
2258
|
s(a),
|
|
2256
2259
|
s(c),
|
|
2257
|
-
e(o).user ? (d(),
|
|
2260
|
+
e(o).user ? (d(), h(l, { key: 0 })) : C("", !0),
|
|
2258
2261
|
s(f),
|
|
2259
|
-
e(o).user ? (d(),
|
|
2262
|
+
e(o).user ? (d(), h(p, { key: 1 })) : C("", !0)
|
|
2260
2263
|
]),
|
|
2261
2264
|
_: 1
|
|
2262
2265
|
});
|
|
2263
2266
|
};
|
|
2264
2267
|
}
|
|
2265
|
-
}),
|
|
2268
|
+
}), hs = { key: 0 }, gs = { class: "d-flex align-center justify-center pa-1 ga-2" }, bs = /* @__PURE__ */ V({
|
|
2266
2269
|
__name: "VoUserQuickActions",
|
|
2267
2270
|
setup(u) {
|
|
2268
2271
|
const o = z();
|
|
2269
|
-
return (i, t) => (d(),
|
|
2272
|
+
return (i, t) => (d(), h(ae, null, {
|
|
2270
2273
|
default: n(() => [
|
|
2271
|
-
e(o).quickbar ? (d(),
|
|
2272
|
-
v("div",
|
|
2274
|
+
e(o).quickbar ? (d(), w("div", hs, [
|
|
2275
|
+
v("div", gs, [
|
|
2273
2276
|
s(E, {
|
|
2274
2277
|
color: e(o).colors.one,
|
|
2275
2278
|
class: "text-caption",
|
|
@@ -2300,7 +2303,7 @@ const Xe = X("settings", () => {
|
|
|
2300
2303
|
_: 1
|
|
2301
2304
|
}));
|
|
2302
2305
|
}
|
|
2303
|
-
}),
|
|
2306
|
+
}), ys = { class: "mb-2" }, Vs = { key: 0 }, ks = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, $s = { class: "text-h6" }, xs = /* @__PURE__ */ V({
|
|
2304
2307
|
__name: "VoUserAvatar",
|
|
2305
2308
|
setup(u) {
|
|
2306
2309
|
const o = N(), i = z(), t = I(!1), r = A(() => {
|
|
@@ -2330,8 +2333,8 @@ const Xe = X("settings", () => {
|
|
|
2330
2333
|
}
|
|
2331
2334
|
return (l, f) => {
|
|
2332
2335
|
var p;
|
|
2333
|
-
return d(),
|
|
2334
|
-
Se((d(),
|
|
2336
|
+
return d(), w("div", null, [
|
|
2337
|
+
Se((d(), h(ce, {
|
|
2335
2338
|
class: at([
|
|
2336
2339
|
"border-md border-opacity-100 border-surface-variant",
|
|
2337
2340
|
{
|
|
@@ -2344,11 +2347,11 @@ const Xe = X("settings", () => {
|
|
|
2344
2347
|
onClick: Ue(c, ["prevent", "stop"])
|
|
2345
2348
|
}, {
|
|
2346
2349
|
default: n(() => [
|
|
2347
|
-
e(o).user && e(i).avatar ? (d(),
|
|
2350
|
+
e(o).user && e(i).avatar ? (d(), h(ve, {
|
|
2348
2351
|
key: 0,
|
|
2349
2352
|
src: e(i).avatar,
|
|
2350
2353
|
alt: "User avatar"
|
|
2351
|
-
}, null, 8, ["src"])) : (d(),
|
|
2354
|
+
}, null, 8, ["src"])) : (d(), h(B, {
|
|
2352
2355
|
key: 1,
|
|
2353
2356
|
class: "mt-1",
|
|
2354
2357
|
icon: "$vuetify",
|
|
@@ -2359,18 +2362,18 @@ const Xe = X("settings", () => {
|
|
|
2359
2362
|
}, 8, ["class"])), [
|
|
2360
2363
|
[io, e(o).isSubscriber]
|
|
2361
2364
|
]),
|
|
2362
|
-
v("div",
|
|
2365
|
+
v("div", ys, [
|
|
2363
2366
|
s(ae, null, {
|
|
2364
2367
|
default: n(() => [
|
|
2365
|
-
t.value ? (d(),
|
|
2368
|
+
t.value ? (d(), w("div", Vs, [
|
|
2366
2369
|
s(O, {
|
|
2367
2370
|
class: "pt-6 pb-1",
|
|
2368
2371
|
rounded: "0",
|
|
2369
2372
|
flat: ""
|
|
2370
2373
|
}, {
|
|
2371
2374
|
default: n(() => [
|
|
2372
|
-
v("div",
|
|
2373
|
-
(d(!0),
|
|
2375
|
+
v("div", ks, [
|
|
2376
|
+
(d(!0), w(F, null, te(r.value, (y, D) => (d(), h(E, {
|
|
2374
2377
|
key: D,
|
|
2375
2378
|
active: e(i).avatar === y,
|
|
2376
2379
|
variant: "flat",
|
|
@@ -2394,11 +2397,11 @@ const Xe = X("settings", () => {
|
|
|
2394
2397
|
_: 1
|
|
2395
2398
|
})
|
|
2396
2399
|
]),
|
|
2397
|
-
v("div",
|
|
2400
|
+
v("div", $s, S(((p = e(o).user) == null ? void 0 : p.name) ?? "Guest"), 1)
|
|
2398
2401
|
]);
|
|
2399
2402
|
};
|
|
2400
2403
|
}
|
|
2401
|
-
}),
|
|
2404
|
+
}), ws = { class: "d-flex" }, Ss = { key: "reset" }, Cs = /* @__PURE__ */ V({
|
|
2402
2405
|
__name: "VoUserColors",
|
|
2403
2406
|
setup(u) {
|
|
2404
2407
|
const o = N(), i = z(), t = I(!1);
|
|
@@ -2407,7 +2410,7 @@ const Xe = X("settings", () => {
|
|
|
2407
2410
|
}
|
|
2408
2411
|
return (a, c) => {
|
|
2409
2412
|
const l = ge;
|
|
2410
|
-
return d(),
|
|
2413
|
+
return d(), w(F, null, [
|
|
2411
2414
|
s(ve, {
|
|
2412
2415
|
color: e(o).user ? e(i).colors.one : "surface-light",
|
|
2413
2416
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
@@ -2417,8 +2420,8 @@ const Xe = X("settings", () => {
|
|
|
2417
2420
|
flat: ""
|
|
2418
2421
|
}, {
|
|
2419
2422
|
default: n(() => [
|
|
2420
|
-
v("div",
|
|
2421
|
-
e(o).isSubscriber ? (d(),
|
|
2423
|
+
v("div", ws, [
|
|
2424
|
+
e(o).isSubscriber ? (d(), h(l, {
|
|
2422
2425
|
key: 0,
|
|
2423
2426
|
active: t.value,
|
|
2424
2427
|
icon: t.value ? `svg:${e(K)}` : "$edit",
|
|
@@ -2429,7 +2432,7 @@ const Xe = X("settings", () => {
|
|
|
2429
2432
|
default: n(() => [
|
|
2430
2433
|
s(Ce, { "leave-absolute": "" }, {
|
|
2431
2434
|
default: n(() => [
|
|
2432
|
-
(d(),
|
|
2435
|
+
(d(), h(B, {
|
|
2433
2436
|
key: String(t.value)
|
|
2434
2437
|
}))
|
|
2435
2438
|
]),
|
|
@@ -2440,7 +2443,7 @@ const Xe = X("settings", () => {
|
|
|
2440
2443
|
}, 8, ["active", "icon", "variant"])) : C("", !0),
|
|
2441
2444
|
s(Jt, null, {
|
|
2442
2445
|
default: n(() => [
|
|
2443
|
-
Se(v("div",
|
|
2446
|
+
Se(v("div", Ss, [
|
|
2444
2447
|
s(l, {
|
|
2445
2448
|
disabled: e(i).colors.one === "surface-light",
|
|
2446
2449
|
icon: `svg:${e(Mt)}`,
|
|
@@ -2461,7 +2464,7 @@ const Xe = X("settings", () => {
|
|
|
2461
2464
|
}, 8, ["color"]),
|
|
2462
2465
|
s(ae, null, {
|
|
2463
2466
|
default: n(() => [
|
|
2464
|
-
t.value ? (d(),
|
|
2467
|
+
t.value ? (d(), h(ao, {
|
|
2465
2468
|
key: 0,
|
|
2466
2469
|
"model-value": e(i).colors.one !== "surface-light" ? e(i).colors.one : void 0,
|
|
2467
2470
|
elevation: "0",
|
|
@@ -2481,7 +2484,7 @@ const Xe = X("settings", () => {
|
|
|
2481
2484
|
], 64);
|
|
2482
2485
|
};
|
|
2483
2486
|
}
|
|
2484
|
-
}),
|
|
2487
|
+
}), Ls = { class: "text-center mt-n9 mb-4" }, Ke = /* @__PURE__ */ V({
|
|
2485
2488
|
__name: "VoUserMenu",
|
|
2486
2489
|
setup(u) {
|
|
2487
2490
|
const o = N(), i = z(), t = I(!o.user);
|
|
@@ -2490,15 +2493,15 @@ const Xe = X("settings", () => {
|
|
|
2490
2493
|
}), H(() => o.user, (r) => {
|
|
2491
2494
|
r && (t.value = !1);
|
|
2492
2495
|
}), (r, a) => {
|
|
2493
|
-
const c =
|
|
2494
|
-
return d(),
|
|
2496
|
+
const c = Cs, l = xs, f = bs, p = _s, y = fo;
|
|
2497
|
+
return d(), h(O, {
|
|
2495
2498
|
rounded: "lg",
|
|
2496
2499
|
width: "280",
|
|
2497
2500
|
border: ""
|
|
2498
2501
|
}, {
|
|
2499
2502
|
default: n(() => [
|
|
2500
2503
|
s(c),
|
|
2501
|
-
v("div",
|
|
2504
|
+
v("div", Ls, [
|
|
2502
2505
|
s(l),
|
|
2503
2506
|
s(f)
|
|
2504
2507
|
]),
|
|
@@ -2511,13 +2514,13 @@ const Xe = X("settings", () => {
|
|
|
2511
2514
|
});
|
|
2512
2515
|
};
|
|
2513
2516
|
}
|
|
2514
|
-
}),
|
|
2517
|
+
}), As = /* @__PURE__ */ V({
|
|
2515
2518
|
__name: "VoUserBtn",
|
|
2516
2519
|
setup(u) {
|
|
2517
2520
|
const o = N(), i = z();
|
|
2518
2521
|
return (t, r) => {
|
|
2519
2522
|
const a = Ke;
|
|
2520
|
-
return d(),
|
|
2523
|
+
return d(), h(E, {
|
|
2521
2524
|
loading: e(o).isLoading,
|
|
2522
2525
|
class: "vo-user-btn",
|
|
2523
2526
|
icon: ""
|
|
@@ -2538,7 +2541,7 @@ const Xe = X("settings", () => {
|
|
|
2538
2541
|
]),
|
|
2539
2542
|
_: 1
|
|
2540
2543
|
}, 8, ["disabled"]),
|
|
2541
|
-
e(o).user ? (d(),
|
|
2544
|
+
e(o).user ? (d(), h(ce, {
|
|
2542
2545
|
key: 0,
|
|
2543
2546
|
image: e(i).avatar || e(o).user.picture || ""
|
|
2544
2547
|
}, null, 8, ["image"])) : C("", !0)
|
|
@@ -2553,7 +2556,7 @@ const et = (u, o) => {
|
|
|
2553
2556
|
for (const [t, r] of o)
|
|
2554
2557
|
i[t] = r;
|
|
2555
2558
|
return i;
|
|
2556
|
-
}, tt = /* @__PURE__ */ et(
|
|
2559
|
+
}, tt = /* @__PURE__ */ et(As, [["__scopeId", "data-v-66be3e26"]]), Is = /* @__PURE__ */ V({
|
|
2557
2560
|
__name: "VoAuthBtn",
|
|
2558
2561
|
props: {
|
|
2559
2562
|
external: Boolean
|
|
@@ -2562,9 +2565,9 @@ const et = (u, o) => {
|
|
|
2562
2565
|
const o = N(), { lgAndUp: i, mdAndDown: t } = Le();
|
|
2563
2566
|
return (r, a) => {
|
|
2564
2567
|
const c = tt, l = Ke;
|
|
2565
|
-
return d(),
|
|
2568
|
+
return d(), h(qe, null, {
|
|
2566
2569
|
activator: n(({ props: f }) => [
|
|
2567
|
-
!e(o).user && !e(o).isLoading ? (d(),
|
|
2570
|
+
!e(o).user && !e(o).isLoading ? (d(), h(E, se({ key: 0 }, {
|
|
2568
2571
|
...f,
|
|
2569
2572
|
[`${e(i) ? "append-" : ""}icon`]: `svg:${e(Re)}`,
|
|
2570
2573
|
text: e(i) ? "Login" : void 0
|
|
@@ -2573,7 +2576,7 @@ const et = (u, o) => {
|
|
|
2573
2576
|
class: "text-none",
|
|
2574
2577
|
color: "primary",
|
|
2575
2578
|
variant: "outlined"
|
|
2576
|
-
}), null, 16, ["rounded"])) : (d(),
|
|
2579
|
+
}), null, 16, ["rounded"])) : (d(), h(c, { key: 1 }))
|
|
2577
2580
|
]),
|
|
2578
2581
|
default: n(() => [
|
|
2579
2582
|
s(l)
|
|
@@ -2582,13 +2585,13 @@ const et = (u, o) => {
|
|
|
2582
2585
|
});
|
|
2583
2586
|
};
|
|
2584
2587
|
}
|
|
2585
|
-
}),
|
|
2588
|
+
}), Ds = { class: "text-center mb-6" }, Us = /* @__PURE__ */ V({
|
|
2586
2589
|
__name: "VoAuthDialog",
|
|
2587
2590
|
setup(u) {
|
|
2588
2591
|
const o = N(), { mdAndDown: i, lgAndUp: t } = Le(), r = Pe();
|
|
2589
2592
|
return (a, c) => {
|
|
2590
2593
|
const l = Je, f = Ye, p = tt;
|
|
2591
|
-
return !e(o).user && !e(o).isLoading ? (d(),
|
|
2594
|
+
return !e(o).user && !e(o).isLoading ? (d(), h(Me, {
|
|
2592
2595
|
key: 0,
|
|
2593
2596
|
"max-width": "480"
|
|
2594
2597
|
}, {
|
|
@@ -2612,10 +2615,10 @@ const et = (u, o) => {
|
|
|
2612
2615
|
class: "mb-4",
|
|
2613
2616
|
height: "30"
|
|
2614
2617
|
}, null, 8, ["src"]),
|
|
2615
|
-
v("div",
|
|
2618
|
+
v("div", Ds, [
|
|
2616
2619
|
s(Gt, { class: "text-h5 mb-1 text-md-h4 font-weight-bold" }, {
|
|
2617
2620
|
default: n(() => [
|
|
2618
|
-
j(
|
|
2621
|
+
j(S(e(o).lastLoginProvider() ? "Welcome Back" : "Log in to Vuetify"), 1)
|
|
2619
2622
|
]),
|
|
2620
2623
|
_: 1
|
|
2621
2624
|
}),
|
|
@@ -2642,13 +2645,13 @@ const et = (u, o) => {
|
|
|
2642
2645
|
})
|
|
2643
2646
|
]),
|
|
2644
2647
|
_: 1
|
|
2645
|
-
})) : (d(),
|
|
2648
|
+
})) : (d(), h(p, { key: 1 }));
|
|
2646
2649
|
};
|
|
2647
2650
|
}
|
|
2648
|
-
}),
|
|
2651
|
+
}), Fs = (u) => (rt("data-v-86d0e524"), u = u(), lt(), u), js = ["href", "title"], Ns = {
|
|
2649
2652
|
class: "text-caption text-disabled",
|
|
2650
2653
|
style: { position: "absolute", right: "16px" }
|
|
2651
|
-
},
|
|
2654
|
+
}, Bs = /* @__PURE__ */ Fs(() => /* @__PURE__ */ v("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), Os = /* @__PURE__ */ V({
|
|
2652
2655
|
__name: "VoFooter",
|
|
2653
2656
|
setup(u) {
|
|
2654
2657
|
const o = [
|
|
@@ -2683,12 +2686,12 @@ const et = (u, o) => {
|
|
|
2683
2686
|
href: "https://reddit.com/r/vuetifyjs"
|
|
2684
2687
|
}
|
|
2685
2688
|
];
|
|
2686
|
-
return (i, t) => (d(),
|
|
2689
|
+
return (i, t) => (d(), h(ro, {
|
|
2687
2690
|
class: "vo-footer",
|
|
2688
2691
|
height: "40"
|
|
2689
2692
|
}, {
|
|
2690
2693
|
default: n(() => [
|
|
2691
|
-
(d(),
|
|
2694
|
+
(d(), w(F, null, te(o, (r) => v("a", {
|
|
2692
2695
|
key: r.title,
|
|
2693
2696
|
href: r.href,
|
|
2694
2697
|
title: r.title,
|
|
@@ -2700,17 +2703,17 @@ const et = (u, o) => {
|
|
|
2700
2703
|
icon: r.icon,
|
|
2701
2704
|
size: r.icon === "$vuetify" ? 24 : 16
|
|
2702
2705
|
}, null, 8, ["icon", "size"])
|
|
2703
|
-
], 8,
|
|
2704
|
-
v("div",
|
|
2705
|
-
j(" © 2016-" +
|
|
2706
|
-
|
|
2706
|
+
], 8, js)), 64)),
|
|
2707
|
+
v("div", Ns, [
|
|
2708
|
+
j(" © 2016-" + S((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
|
|
2709
|
+
Bs
|
|
2707
2710
|
])
|
|
2708
2711
|
]),
|
|
2709
2712
|
_: 1
|
|
2710
2713
|
}));
|
|
2711
2714
|
}
|
|
2712
2715
|
});
|
|
2713
|
-
const
|
|
2716
|
+
const zs = /* @__PURE__ */ et(Os, [["__scopeId", "data-v-86d0e524"]]), xn = X("bins", () => {
|
|
2714
2717
|
const u = N(), o = _e(), i = ee([]), t = ee(), r = I(!1), a = I(-1), c = A(() => !u.user || !t.value ? !1 : u.user.id === t.value.owner.id), l = A(() => i.value.filter((g) => g.favorite)), f = A(() => i.value.filter((g) => g.pinned));
|
|
2715
2718
|
H(t, () => {
|
|
2716
2719
|
window.clearTimeout(a.value), a.value = window.setTimeout(() => {
|
|
@@ -2796,20 +2799,20 @@ const Os = /* @__PURE__ */ et(Bs, [["__scopeId", "data-v-86d0e524"]]), $n = X("b
|
|
|
2796
2799
|
updateOrCreate: k
|
|
2797
2800
|
};
|
|
2798
2801
|
});
|
|
2799
|
-
function
|
|
2802
|
+
function wn() {
|
|
2800
2803
|
function u(o) {
|
|
2801
|
-
o.component("VoAuthBtn",
|
|
2804
|
+
o.component("VoAuthBtn", Is), o.component("VoAuthDialog", Us), o.component("VoFooter", zs);
|
|
2802
2805
|
}
|
|
2803
2806
|
return { install: u };
|
|
2804
2807
|
}
|
|
2805
|
-
function
|
|
2808
|
+
function Sn(u) {
|
|
2806
2809
|
u.store.url = "https://api.vuetifyjs.com";
|
|
2807
2810
|
}
|
|
2808
2811
|
export {
|
|
2809
|
-
|
|
2810
|
-
|
|
2812
|
+
wn as createOne,
|
|
2813
|
+
Sn as one,
|
|
2811
2814
|
N as useAuthStore,
|
|
2812
|
-
|
|
2815
|
+
xn as useBinsStore,
|
|
2813
2816
|
_e as useHttpStore,
|
|
2814
2817
|
oe as useOneStore,
|
|
2815
2818
|
Xe as useSettingsStore,
|