@vuetify/one 2.1.2 → 2.2.0
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/README.md +51 -41
- package/dist/index.d.ts +339 -1
- package/dist/index.js +1189 -1092
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as T, defineComponent as k, createBlock as _, openBlock as c, unref as e, reactive as Pt, watch as P, toRefs as jt, computed as w, shallowRef as D, onMounted as Ne, createSlots as W, withCtx as r, createElementVNode as V, toDisplayString as S, createVNode as i, createTextVNode as B, renderSlot as M, normalizeStyle as ft, createCommentVNode as C, withModifiers as et, mergeModels as Rt, useModel as ce, createElementBlock as L, Fragment as N, nextTick as ye, renderList as re, mergeProps as J, withDirectives as be, vShow as Fe, isRef as te, watchEffect as Ht, normalizeClass as Et, resolveComponent as qt, useCssVars as Wt, onBeforeMount as ze, onBeforeUnmount as Zt, onServerPrefetch as Gt } from "vue";
|
|
2
2
|
import { defineStore as G } from "pinia";
|
|
3
|
-
import { VSnackbarQueue as
|
|
4
|
-
import { mdiStorefront as
|
|
5
|
-
import { useRoute as
|
|
6
|
-
import { merge as
|
|
7
|
-
import { VListItem as
|
|
3
|
+
import { VSnackbarQueue as Qt } from "vuetify/components/VSnackbarQueue";
|
|
4
|
+
import { mdiStorefront as Yt, mdiSync as Jt, mdiSyncOff as Xt, mdiLogoutVariant as Kt, mdiFullscreenExit as eo, mdiFullscreen as to, mdiCheck as Ae, mdiSelect as oo, mdiSpaceInvaders as vt, mdiImageFilterHdr as ht, mdiTransmissionTower as gt, mdiRocketLaunchOutline as _t, mdiHome as no, mdiTextBox as so, mdiWhiteBalanceSunny as ao, mdiWeatherNight as io, mdiDesktopTowerMonitor as ro, mdiContrastCircle as lo, mdiCog as uo, mdiCogOutline as co, mdiFileDocument as po, mdiCreditCardSettingsOutline as mo, mdiRocketOutline as fo, mdiCheckCircleOutline as Me, mdiCreditCard as vo, mdiReload as ho, mdiPlaylistCheck as go, mdiCreditCardOutline as _o, mdiOpenInNew as Pe, mdiMedal as yo, mdiHandHeart as bo, mdiHandHeartOutline as Vo, mdiCloudDownload as ko, mdiTrayArrowDown as dt, mdiAccountGroup as wo, mdiAccount as $o, mdiLinkVariant as xo, mdiContentCopy as Co, mdiShieldLock as pt, mdiAccountRemoveOutline as So, mdiExitToApp as Lo, mdiAccountGroupOutline as Io, mdiEmailOpenOutline as yt, mdiEmailVariant as bt, mdiBell as Ao, mdiInboxOutline as To, mdiInboxFullOutline as Do, mdiBillboard as Uo, mdiBellOutline as Oo, mdiViewDashboardOutline as Bo, mdiCrown as Mo, mdiArrowULeftBottom as No, mdiAtomVariant as Fo, mdiLogin as mt, mdiShieldStarOutline as zo } from "@mdi/js";
|
|
5
|
+
import { useRoute as Po, useRouter as tt } from "vue-router";
|
|
6
|
+
import { merge as Qe } from "lodash-es";
|
|
7
|
+
import { VListItem as Ve, VList as de, VListSubheader as jo, VListItemTitle as Vt, VListItemSubtitle as Ro } from "vuetify/components/VList";
|
|
8
8
|
import { VAvatar as oe } from "vuetify/components/VAvatar";
|
|
9
|
-
import { VCard as q, VCardTitle as
|
|
9
|
+
import { VCard as q, VCardTitle as Ho, VCardSubtitle as Eo, VCardText as ae, VCardItem as Ye, VCardActions as qo } from "vuetify/components/VCard";
|
|
10
10
|
import { VDialog as ot } from "vuetify/components/VDialog";
|
|
11
11
|
import { VBadge as nt } from "vuetify/components/VBadge";
|
|
12
|
-
import { VBtn as
|
|
13
|
-
import { VProgressCircular as
|
|
12
|
+
import { VBtn as j } from "vuetify/components/VBtn";
|
|
13
|
+
import { VProgressCircular as Wo } from "vuetify/components/VProgressCircular";
|
|
14
14
|
import { VSheet as je } from "vuetify/components/VSheet";
|
|
15
15
|
import { VSwitch as st } from "vuetify/components/VSwitch";
|
|
16
|
-
import { VFadeTransition as
|
|
17
|
-
import { useDisplay as
|
|
16
|
+
import { VFadeTransition as Re, VExpandTransition as ke, VExpandXTransition as Zo } from "vuetify/components/transitions";
|
|
17
|
+
import { useDisplay as me, useTheme as He, useDate as Te } from "vuetify";
|
|
18
18
|
import { VDivider as X } from "vuetify/components/VDivider";
|
|
19
19
|
import { VIcon as O } from "vuetify/components/VIcon";
|
|
20
|
-
import { VLabel as
|
|
20
|
+
import { VLabel as Xe } from "vuetify/components/VLabel";
|
|
21
21
|
import { VChip as ie } from "vuetify/components/VChip";
|
|
22
|
-
import { VChipGroup as
|
|
23
|
-
import { VSelect as
|
|
24
|
-
import { VRow as De, VCol as
|
|
25
|
-
import { VHover as
|
|
22
|
+
import { VChipGroup as Go } from "vuetify/components/VChipGroup";
|
|
23
|
+
import { VSelect as Qo } from "vuetify/components/VSelect";
|
|
24
|
+
import { VRow as De, VCol as _e, VSpacer as Yo } from "vuetify/components/VGrid";
|
|
25
|
+
import { VHover as Ee } from "vuetify/components/VHover";
|
|
26
26
|
import { VImg as le } from "vuetify/components/VImg";
|
|
27
|
-
import { VItemGroup as
|
|
28
|
-
import { VLayout as
|
|
29
|
-
import { VMain as
|
|
30
|
-
import { VDataTableVirtual as
|
|
27
|
+
import { VItemGroup as kt, VItem as Ke } from "vuetify/components/VItemGroup";
|
|
28
|
+
import { VLayout as we } from "vuetify/components/VLayout";
|
|
29
|
+
import { VMain as $e } from "vuetify/components/VMain";
|
|
30
|
+
import { VDataTableVirtual as wt, VDataTable as Jo } from "vuetify/components/VDataTable";
|
|
31
31
|
import { VSkeletonLoader as Ie } from "vuetify/components/VSkeletonLoader";
|
|
32
32
|
import { VWindow as $t, VWindowItem as Le } from "vuetify/components/VWindow";
|
|
33
|
-
import { VTimelineItem as
|
|
33
|
+
import { VTimelineItem as Xo, VTimeline as Ko } from "vuetify/components/VTimeline";
|
|
34
34
|
import { VEmptyState as at } from "vuetify/components/VEmptyState";
|
|
35
|
-
import { VMenu as
|
|
36
|
-
import { VTextField as
|
|
37
|
-
import { Tooltip as
|
|
35
|
+
import { VMenu as xt } from "vuetify/components/VMenu";
|
|
36
|
+
import { VTextField as en } from "vuetify/components/VTextField";
|
|
37
|
+
import { Tooltip as tn, Ripple as on } from "vuetify/directives";
|
|
38
38
|
import { VTooltip as se } from "vuetify/components/VTooltip";
|
|
39
|
-
import { VResponsive as
|
|
40
|
-
import { VNavigationDrawer as
|
|
41
|
-
import { VColorPicker as
|
|
42
|
-
import { VAppBar as
|
|
43
|
-
import { VLazy as
|
|
44
|
-
import { VFooter as
|
|
45
|
-
const
|
|
46
|
-
const u =
|
|
39
|
+
import { VResponsive as nn } from "vuetify/components/VResponsive";
|
|
40
|
+
import { VNavigationDrawer as sn } from "vuetify/components/VNavigationDrawer";
|
|
41
|
+
import { VColorPicker as an } from "vuetify/components/VColorPicker";
|
|
42
|
+
import { VAppBar as Ct } from "vuetify/components/VAppBar";
|
|
43
|
+
import { VLazy as rn } from "vuetify/components/VLazy";
|
|
44
|
+
import { VFooter as ln } from "vuetify/components/VFooter";
|
|
45
|
+
const St = G("Queue", () => {
|
|
46
|
+
const u = T([]);
|
|
47
47
|
function t(o) {
|
|
48
48
|
const a = typeof o == "string" ? { text: o } : o;
|
|
49
49
|
u.value.push(a);
|
|
@@ -61,18 +61,18 @@ const Ct = G("Queue", () => {
|
|
|
61
61
|
show: t,
|
|
62
62
|
showError: s
|
|
63
63
|
};
|
|
64
|
-
}),
|
|
64
|
+
}), un = /* @__PURE__ */ k({
|
|
65
65
|
__name: "VoSnackbarQueue",
|
|
66
66
|
setup(u) {
|
|
67
|
-
const t =
|
|
68
|
-
return (s, o) => (c(),
|
|
67
|
+
const t = St();
|
|
68
|
+
return (s, o) => (c(), _(Qt, {
|
|
69
69
|
modelValue: e(t).queue,
|
|
70
70
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => e(t).queue = a),
|
|
71
71
|
closable: "",
|
|
72
72
|
location: "bottom end"
|
|
73
73
|
}, null, 8, ["modelValue"]));
|
|
74
74
|
}
|
|
75
|
-
}),
|
|
75
|
+
}), K = G("http", {
|
|
76
76
|
state: () => ({
|
|
77
77
|
url: ""
|
|
78
78
|
}),
|
|
@@ -113,7 +113,7 @@ const Ct = G("Queue", () => {
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
}),
|
|
116
|
+
}), Je = typeof window < "u", Be = {
|
|
117
117
|
v: 5,
|
|
118
118
|
api: "link-only",
|
|
119
119
|
avatar: "",
|
|
@@ -153,19 +153,19 @@ const Ct = G("Queue", () => {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}, R = G("user", () => {
|
|
156
|
-
const u =
|
|
157
|
-
|
|
156
|
+
const u = Pt(Qe({}, Be));
|
|
157
|
+
P(u, s);
|
|
158
158
|
function t() {
|
|
159
|
-
if (!
|
|
159
|
+
if (!Je) return;
|
|
160
160
|
const a = localStorage.getItem("vuetify@user"), n = a ? JSON.parse(a) : {};
|
|
161
161
|
let l = n.v === u.v;
|
|
162
|
-
n.v || (n.pwaRefresh = !0, typeof n.api == "boolean" && (n.api = n.api ? "inline" : "link-only"), typeof n.rtl == "boolean" && (n.direction = n.rtl ? "rtl" : "ltr", delete n.rtl), typeof n.theme == "object" && (n.mixedTheme = n.theme.mixed, n.theme = n.theme.system ? "system" : n.theme.dark ? "dark" : "light"), Array.isArray(n.notifications) && (n.notifications = { read: n.notifications }), typeof n.last == "object" && (n.notifications.last = n.last, delete n.last)), n.v === 1 && (Array.isArray(n.composition) && (n.composition = "composition"), Array.isArray(n.notifications.last.banner) || (n.notifications = n.notifications || {}, n.notifications.last = n.notifications.last || {}, n.notifications.last.banner = [])), n.v === 2 && (n.syncSettings = !0, n.disableAds = !1, n.v = 3), n.v === 3 && (n.quickbar = !1), n.v === 4 && (n.suits = Be.suits, n.notifications.banners = Be.notifications.banners, l = !0), n.v = u.v, Object.assign(u,
|
|
162
|
+
n.v || (n.pwaRefresh = !0, typeof n.api == "boolean" && (n.api = n.api ? "inline" : "link-only"), typeof n.rtl == "boolean" && (n.direction = n.rtl ? "rtl" : "ltr", delete n.rtl), typeof n.theme == "object" && (n.mixedTheme = n.theme.mixed, n.theme = n.theme.system ? "system" : n.theme.dark ? "dark" : "light"), Array.isArray(n.notifications) && (n.notifications = { read: n.notifications }), typeof n.last == "object" && (n.notifications.last = n.last, delete n.last)), n.v === 1 && (Array.isArray(n.composition) && (n.composition = "composition"), Array.isArray(n.notifications.last.banner) || (n.notifications = n.notifications || {}, n.notifications.last = n.notifications.last || {}, n.notifications.last.banner = [])), n.v === 2 && (n.syncSettings = !0, n.disableAds = !1, n.v = 3), n.v === 3 && (n.quickbar = !1), n.v === 4 && (n.suits = Be.suits, n.notifications.banners = Be.notifications.banners, l = !0), n.v = u.v, Object.assign(u, Qe(u, n)), l && s();
|
|
163
163
|
}
|
|
164
164
|
function s() {
|
|
165
|
-
|
|
165
|
+
Je && localStorage.setItem("vuetify@user", JSON.stringify(u, null, 2));
|
|
166
166
|
}
|
|
167
167
|
function o() {
|
|
168
|
-
|
|
168
|
+
Je && (Object.assign(u, Qe({}, Be)), s());
|
|
169
169
|
}
|
|
170
170
|
return t(), {
|
|
171
171
|
...jt(u),
|
|
@@ -174,134 +174,134 @@ const Ct = G("Queue", () => {
|
|
|
174
174
|
reset: o
|
|
175
175
|
};
|
|
176
176
|
});
|
|
177
|
-
function
|
|
178
|
-
const u =
|
|
179
|
-
return
|
|
177
|
+
function fe() {
|
|
178
|
+
const u = Po();
|
|
179
|
+
return w(
|
|
180
180
|
() => u.query
|
|
181
181
|
);
|
|
182
182
|
}
|
|
183
183
|
const xe = G("team", () => {
|
|
184
|
-
const u =
|
|
184
|
+
const u = fe(), t = H(), s = z(), o = K(), a = St(), n = D(!1), l = T(null), p = T(!1), m = w(() => u.value.invite), v = w(
|
|
185
185
|
() => {
|
|
186
|
-
var
|
|
187
|
-
return l.value ? (
|
|
186
|
+
var d;
|
|
187
|
+
return l.value ? (d = s.access) == null ? void 0 : d.some((y) => ["one/team", "snips/team"].includes(y)) : !1;
|
|
188
188
|
}
|
|
189
189
|
);
|
|
190
|
-
|
|
191
|
-
if (
|
|
190
|
+
P(m, async () => {
|
|
191
|
+
if (m.value) {
|
|
192
192
|
t.user || (t.dialog = !0);
|
|
193
193
|
try {
|
|
194
194
|
n.value = !0;
|
|
195
|
-
const
|
|
196
|
-
l.value =
|
|
197
|
-
} catch (
|
|
198
|
-
|
|
195
|
+
const d = await o.get(`/one/team/${m.value}`);
|
|
196
|
+
l.value = d.team, p.value = !0;
|
|
197
|
+
} catch (d) {
|
|
198
|
+
b(), a.showError(d.message);
|
|
199
199
|
} finally {
|
|
200
200
|
n.value = !1;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
|
-
async function
|
|
204
|
+
async function g(d) {
|
|
205
205
|
try {
|
|
206
206
|
if (n.value = !0, !l.value) return;
|
|
207
|
-
await o.post("/one/team/remove", { userId:
|
|
208
|
-
} catch (
|
|
209
|
-
a.showError(
|
|
207
|
+
await o.post("/one/team/remove", { userId: d }), l.value.members = l.value.members.filter((y) => y.id !== d);
|
|
208
|
+
} catch (y) {
|
|
209
|
+
a.showError(y.message);
|
|
210
210
|
} finally {
|
|
211
211
|
n.value = !1;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
async function f() {
|
|
215
|
-
var
|
|
215
|
+
var d;
|
|
216
216
|
try {
|
|
217
|
-
n.value = !0, await o.post("/one/team/leave", { teamId: (
|
|
218
|
-
} catch (
|
|
219
|
-
a.showError(
|
|
217
|
+
n.value = !0, await o.post("/one/team/leave", { teamId: (d = l.value) == null ? void 0 : d.id }), await t.verify(!0);
|
|
218
|
+
} catch (y) {
|
|
219
|
+
a.showError(y.message);
|
|
220
220
|
} finally {
|
|
221
221
|
n.value = !1;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
async function
|
|
224
|
+
async function $() {
|
|
225
225
|
try {
|
|
226
|
-
n.value = !0, await o.post("/one/team/join", { inviteCode:
|
|
227
|
-
} catch (
|
|
228
|
-
a.showError(
|
|
226
|
+
n.value = !0, await o.post("/one/team/join", { inviteCode: m.value }), await t.verify(!0), b();
|
|
227
|
+
} catch (d) {
|
|
228
|
+
a.showError(d.message);
|
|
229
229
|
} finally {
|
|
230
230
|
n.value = !1;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
235
|
-
const
|
|
236
|
-
|
|
233
|
+
function b() {
|
|
234
|
+
p.value = !1;
|
|
235
|
+
const d = new URL(window.location.href);
|
|
236
|
+
d.searchParams.delete("invite"), window.history.replaceState({}, "", d.toString());
|
|
237
237
|
}
|
|
238
|
-
const
|
|
239
|
-
var
|
|
240
|
-
return ((
|
|
238
|
+
const h = w(() => {
|
|
239
|
+
var d, y, A;
|
|
240
|
+
return ((d = t.user) == null ? void 0 : d.id) === ((A = (y = t.user) == null ? void 0 : y.team) == null ? void 0 : A.owner.id);
|
|
241
241
|
});
|
|
242
242
|
return {
|
|
243
243
|
team: l,
|
|
244
|
-
teamInviteDialog:
|
|
245
|
-
teamInviteCode:
|
|
244
|
+
teamInviteDialog: p,
|
|
245
|
+
teamInviteCode: m,
|
|
246
246
|
hasTeamAccess: v,
|
|
247
|
-
isTeamOwner:
|
|
247
|
+
isTeamOwner: h,
|
|
248
248
|
isLoading: n,
|
|
249
|
-
removeFromTeam:
|
|
249
|
+
removeFromTeam: g,
|
|
250
250
|
leaveTeam: f,
|
|
251
|
-
joinTeam:
|
|
252
|
-
clearTeamQuery:
|
|
251
|
+
joinTeam: $,
|
|
252
|
+
clearTeamQuery: b
|
|
253
253
|
};
|
|
254
254
|
}), z = G("one", () => {
|
|
255
|
-
const u =
|
|
255
|
+
const u = fe(), t = tt(), s = H(), o = K(), a = xe(), n = D(!1), l = D(!1), p = T(), m = T([]), v = w(() => u.value.session_id), g = w(() => {
|
|
256
256
|
var x;
|
|
257
|
-
return (x =
|
|
258
|
-
}), f =
|
|
257
|
+
return (x = p.value) == null ? void 0 : x.items[0].plan.interval;
|
|
258
|
+
}), f = w(() => {
|
|
259
259
|
var x;
|
|
260
|
-
return (x =
|
|
261
|
-
}),
|
|
260
|
+
return (x = p.value) == null ? void 0 : x.items[0].plan.type;
|
|
261
|
+
}), $ = T([]), b = w(() => {
|
|
262
262
|
var x;
|
|
263
263
|
return (x = s.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "stripe" && I.tierName.startsWith("sub_"));
|
|
264
|
-
}),
|
|
264
|
+
}), h = w(() => {
|
|
265
265
|
var x;
|
|
266
|
-
return !!((x =
|
|
267
|
-
}),
|
|
266
|
+
return !!((x = b.value) != null && x.tierName);
|
|
267
|
+
}), d = w(() => {
|
|
268
268
|
var x;
|
|
269
269
|
return ((x = s.user) == null ? void 0 : x.sponsorships.reduce((I, E) => {
|
|
270
270
|
if (!E.isActive || E.interval === "once" || E.platform === "stripe") return I;
|
|
271
271
|
const Oe = ["teamMonth", "soloMonth"].includes(E.interval) ? E.amount : E.amount / 12;
|
|
272
272
|
return I + Oe / 100;
|
|
273
273
|
}, 0)) ?? 0;
|
|
274
|
-
}),
|
|
274
|
+
}), y = w(() => {
|
|
275
275
|
var x;
|
|
276
276
|
return (x = s.user) == null ? void 0 : x.sponsorships.find((I) => I.tierName.startsWith("sub_") && I.isActive);
|
|
277
|
-
}), A =
|
|
277
|
+
}), A = w(() => {
|
|
278
278
|
var x;
|
|
279
279
|
return (x = s.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "github" && I.isActive);
|
|
280
|
-
}),
|
|
280
|
+
}), U = w(() => {
|
|
281
281
|
var x;
|
|
282
282
|
return (x = s.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "discord" && I.isActive);
|
|
283
|
-
}), F =
|
|
283
|
+
}), F = w(() => {
|
|
284
284
|
var x;
|
|
285
285
|
return (x = s.user) == null ? void 0 : x.identities.find((I) => I.provider === "shopify");
|
|
286
|
-
}), Q =
|
|
286
|
+
}), Q = w(() => {
|
|
287
287
|
var x;
|
|
288
288
|
return (x = s.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "patreon" && I.isActive);
|
|
289
|
-
}), Z =
|
|
289
|
+
}), Z = w(() => {
|
|
290
290
|
var x, I, E, Oe, ct;
|
|
291
|
-
return !o.url || ((x = s.user) == null ? void 0 : x.isAdmin) || ((I =
|
|
291
|
+
return !o.url || ((x = s.user) == null ? void 0 : x.isAdmin) || ((I = b.value) == null ? void 0 : I.isActive) || ((E = A.value) == null ? void 0 : E.isActive) || ((Oe = U.value) == null ? void 0 : Oe.isActive) || ((ct = Q.value) == null ? void 0 : ct.isActive) || d.value >= 2.99;
|
|
292
292
|
});
|
|
293
293
|
Ne(async () => {
|
|
294
294
|
v.value && await Y();
|
|
295
|
-
}),
|
|
295
|
+
}), P(l, ut), P(v, async (x) => {
|
|
296
296
|
x && await Y();
|
|
297
|
-
}, { immediate: !0 }),
|
|
297
|
+
}, { immediate: !0 }), P(u, (x) => {
|
|
298
298
|
if (x.one !== "subscribe" || s.user) return;
|
|
299
299
|
s.dialog = !0;
|
|
300
|
-
const I =
|
|
300
|
+
const I = P(() => s.user, (E) => {
|
|
301
301
|
E && (s.dialog = !1, I());
|
|
302
302
|
});
|
|
303
|
-
}, { immediate: !0 }),
|
|
304
|
-
x === !1 && I !== !0 ||
|
|
303
|
+
}, { immediate: !0 }), P(Z, (x, I) => {
|
|
304
|
+
x === !1 && I !== !0 || ge();
|
|
305
305
|
});
|
|
306
306
|
async function Y() {
|
|
307
307
|
try {
|
|
@@ -321,13 +321,13 @@ const xe = G("team", () => {
|
|
|
321
321
|
const E = new URL("/one/subscribe", o.url);
|
|
322
322
|
E.searchParams.set("interval", x), E.searchParams.set("type", I), window.location.href = E.toString();
|
|
323
323
|
}
|
|
324
|
-
async function
|
|
324
|
+
async function he() {
|
|
325
325
|
var x;
|
|
326
|
-
if (
|
|
326
|
+
if (b.value)
|
|
327
327
|
try {
|
|
328
328
|
n.value = !0;
|
|
329
329
|
const I = await o.post(
|
|
330
|
-
`/one/cancel?subscriptionId=${(x =
|
|
330
|
+
`/one/cancel?subscriptionId=${(x = b.value) == null ? void 0 : x.tierName}`
|
|
331
331
|
);
|
|
332
332
|
s.user = I.user;
|
|
333
333
|
} catch {
|
|
@@ -336,27 +336,27 @@ const xe = G("team", () => {
|
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
async function ne(x, I) {
|
|
339
|
-
if (
|
|
339
|
+
if (b.value)
|
|
340
340
|
try {
|
|
341
341
|
n.value = !0, await o.post("/one/modify", {
|
|
342
|
-
subscriptionId:
|
|
342
|
+
subscriptionId: b.value.tierName,
|
|
343
343
|
interval: x,
|
|
344
344
|
type: I
|
|
345
|
-
}), await
|
|
345
|
+
}), await ge();
|
|
346
346
|
} catch {
|
|
347
347
|
} finally {
|
|
348
348
|
n.value = !1;
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
async function
|
|
351
|
+
async function ge() {
|
|
352
352
|
var x, I;
|
|
353
|
-
if (
|
|
353
|
+
if (b.value)
|
|
354
354
|
try {
|
|
355
355
|
n.value = !0;
|
|
356
356
|
const E = await o.post(
|
|
357
|
-
`/one/verify?subscriptionId=${(x =
|
|
357
|
+
`/one/verify?subscriptionId=${(x = b.value) == null ? void 0 : x.tierName}`
|
|
358
358
|
);
|
|
359
|
-
s.user = E.user,
|
|
359
|
+
s.user = E.user, $.value = E.access, a.team = ((I = s.user) == null ? void 0 : I.team) ?? null;
|
|
360
360
|
} catch {
|
|
361
361
|
} finally {
|
|
362
362
|
n.value = !1;
|
|
@@ -366,7 +366,7 @@ const xe = G("team", () => {
|
|
|
366
366
|
try {
|
|
367
367
|
n.value = !0;
|
|
368
368
|
const x = await o.get("/one/info");
|
|
369
|
-
return
|
|
369
|
+
return p.value = x.subscription, m.value = x.invoices, x;
|
|
370
370
|
} catch {
|
|
371
371
|
} finally {
|
|
372
372
|
n.value = !1;
|
|
@@ -381,113 +381,113 @@ const xe = G("team", () => {
|
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
return {
|
|
384
|
-
info:
|
|
385
|
-
interval:
|
|
384
|
+
info: p,
|
|
385
|
+
interval: g,
|
|
386
386
|
subscriptionType: f,
|
|
387
|
-
access:
|
|
388
|
-
invoices:
|
|
387
|
+
access: $,
|
|
388
|
+
invoices: m,
|
|
389
389
|
sessionId: v,
|
|
390
|
-
subscription:
|
|
391
|
-
monthlyTotal:
|
|
392
|
-
hasBilling:
|
|
390
|
+
subscription: b,
|
|
391
|
+
monthlyTotal: d,
|
|
392
|
+
hasBilling: h,
|
|
393
393
|
isLoading: n,
|
|
394
394
|
isOpen: l,
|
|
395
395
|
isSubscriber: Z,
|
|
396
396
|
github: A,
|
|
397
397
|
patreon: Q,
|
|
398
|
-
discord:
|
|
398
|
+
discord: U,
|
|
399
399
|
shopify: F,
|
|
400
|
-
one:
|
|
400
|
+
one: y,
|
|
401
401
|
activate: Y,
|
|
402
|
-
cancel:
|
|
402
|
+
cancel: he,
|
|
403
403
|
manage: ue,
|
|
404
404
|
modify: ne,
|
|
405
405
|
resetQuery: ut,
|
|
406
406
|
subscribe: pe,
|
|
407
407
|
subscriptionInfo: Se,
|
|
408
|
-
verify:
|
|
408
|
+
verify: ge
|
|
409
409
|
};
|
|
410
410
|
}), H = G("auth", () => {
|
|
411
|
-
const u =
|
|
412
|
-
let
|
|
413
|
-
|
|
414
|
-
if (!(
|
|
415
|
-
const
|
|
416
|
-
JSON.stringify(
|
|
411
|
+
const u = T(!1), t = T(null), s = K(), o = R(), a = tt(), n = D(!1), l = z(), p = xe();
|
|
412
|
+
let m = !!h();
|
|
413
|
+
P(t, (d) => {
|
|
414
|
+
if (!(d != null && d.settings)) return;
|
|
415
|
+
const y = localStorage.getItem("vuetify@user") || "{}";
|
|
416
|
+
JSON.stringify(d.settings, null, 2) !== y && (m = !0, Object.assign(o, d.settings));
|
|
417
417
|
}), o.$subscribe(() => {
|
|
418
|
-
|
|
418
|
+
m || v(), m = !1;
|
|
419
419
|
});
|
|
420
420
|
async function v() {
|
|
421
421
|
if (!(!t.value || !o.syncSettings))
|
|
422
422
|
try {
|
|
423
423
|
await s.post("/user/settings", { settings: o.$state });
|
|
424
|
-
} catch (
|
|
425
|
-
console.error(
|
|
424
|
+
} catch (d) {
|
|
425
|
+
console.error(d);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
async function
|
|
429
|
-
var
|
|
430
|
-
if (
|
|
431
|
-
if (!
|
|
432
|
-
((
|
|
428
|
+
async function g(d = !1) {
|
|
429
|
+
var y, A;
|
|
430
|
+
if (g.promise) return g.promise;
|
|
431
|
+
if (!d && !document.cookie.includes("sx=1") && // This check only works if the api and site are on the same domain
|
|
432
|
+
((y = location.hostname.match(/([^.]+\.[^.]+)$/)) == null ? void 0 : y[1]) === ((A = new URL(s.url).hostname.match(/([^.]+\.[^.]+)$/)) == null ? void 0 : A[1])) {
|
|
433
433
|
t.value = null;
|
|
434
434
|
return;
|
|
435
435
|
}
|
|
436
|
-
n.value = !0,
|
|
436
|
+
n.value = !0, g.promise = fetch(`${s.url}/auth/verify`, {
|
|
437
437
|
credentials: "include",
|
|
438
|
-
cache:
|
|
438
|
+
cache: d ? "reload" : void 0
|
|
439
439
|
}).then(
|
|
440
|
-
async (
|
|
440
|
+
async (U) => {
|
|
441
441
|
var F;
|
|
442
|
-
if (
|
|
443
|
-
const Q = await
|
|
444
|
-
t.value = Q.user, l.access = Q.access,
|
|
442
|
+
if (U.ok || U.status === 401) {
|
|
443
|
+
const Q = await U.json();
|
|
444
|
+
t.value = Q.user, l.access = Q.access, p.team = (F = Q.user) == null ? void 0 : F.team;
|
|
445
445
|
} else
|
|
446
|
-
console.error(
|
|
446
|
+
console.error(U.statusText);
|
|
447
447
|
},
|
|
448
448
|
() => {
|
|
449
449
|
}
|
|
450
450
|
).finally(() => {
|
|
451
|
-
n.value = !1,
|
|
451
|
+
n.value = !1, g.promise = null;
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
|
|
455
|
-
async function f(
|
|
454
|
+
g.promise = null;
|
|
455
|
+
async function f(d = "github") {
|
|
456
456
|
n.value = !0;
|
|
457
|
-
const
|
|
458
|
-
if (
|
|
459
|
-
window.location.assign(
|
|
457
|
+
const y = `${s.url}/auth/${d}/redirect`;
|
|
458
|
+
if (d === "shopify") {
|
|
459
|
+
window.location.assign(y + "?next=" + encodeURIComponent(window.location.href));
|
|
460
460
|
return;
|
|
461
461
|
}
|
|
462
|
-
const A = 400,
|
|
462
|
+
const A = 400, U = 600, F = window.screenX + (window.innerWidth - A) / 2, Q = window.screenY + (window.innerHeight - U) / 2, Z = window.open(
|
|
463
463
|
"",
|
|
464
464
|
"vuetify:authorize:popup",
|
|
465
|
-
`popup,left=${F},top=${Q},width=${A},height=${
|
|
465
|
+
`popup,left=${F},top=${Q},width=${A},height=${U},resizable`
|
|
466
466
|
);
|
|
467
467
|
if (!Z) {
|
|
468
468
|
console.error("Failed to open popup");
|
|
469
469
|
return;
|
|
470
470
|
}
|
|
471
|
-
Z.location.href =
|
|
471
|
+
Z.location.href = y;
|
|
472
472
|
let Y = -1, ue = -1;
|
|
473
473
|
function pe(ne) {
|
|
474
|
-
var
|
|
475
|
-
ne.origin === s.url && ((
|
|
474
|
+
var ge, Se;
|
|
475
|
+
ne.origin === s.url && ((ge = ne.data) == null ? void 0 : ge.type) === "auth-response" && (ne.data.status === "success" ? (t.value || localStorage.setItem("vuetify@lastLoginProvider", d), t.value = ne.data.body.user, l.access = ne.data.body.access, p.team = (Se = ne.data.body.user) == null ? void 0 : Se.team, v()) : console.error(ne.data.message), he());
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function he() {
|
|
478
478
|
window.removeEventListener("message", pe), window.clearInterval(Y), window.clearTimeout(ue), Z == null || Z.close(), n.value = !1;
|
|
479
479
|
}
|
|
480
480
|
window.addEventListener("message", pe), Y = window.setInterval(() => {
|
|
481
|
-
!Z || Z.closed ? (console.error("Auth popup closed"),
|
|
481
|
+
!Z || Z.closed ? (console.error("Auth popup closed"), he()) : Z.postMessage({ type: "auth-request" }, "*");
|
|
482
482
|
}, 1e3), ue = window.setTimeout(() => {
|
|
483
|
-
|
|
483
|
+
he(), console.error("Auth timed out");
|
|
484
484
|
}, 120 * 1e3);
|
|
485
485
|
}
|
|
486
|
-
async function
|
|
486
|
+
async function $(d) {
|
|
487
487
|
n.value = !0;
|
|
488
|
-
const
|
|
488
|
+
const y = d ? `/auth/${d}/logout` : "/auth/logout";
|
|
489
489
|
try {
|
|
490
|
-
await s.post(
|
|
490
|
+
await s.post(y), await g(!0), t.value = null;
|
|
491
491
|
} catch (A) {
|
|
492
492
|
console.error(A);
|
|
493
493
|
} finally {
|
|
@@ -497,39 +497,39 @@ const xe = G("team", () => {
|
|
|
497
497
|
}), n.value = !1;
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
function
|
|
501
|
-
var
|
|
502
|
-
return (
|
|
500
|
+
function b(d) {
|
|
501
|
+
var y;
|
|
502
|
+
return (y = t.value) == null ? void 0 : y.identities.find((A) => A.provider === d);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function h() {
|
|
505
505
|
return localStorage.getItem("vuetify@lastLoginProvider");
|
|
506
506
|
}
|
|
507
|
-
return
|
|
507
|
+
return g(), {
|
|
508
508
|
user: t,
|
|
509
509
|
url: s.url,
|
|
510
510
|
dialog: u,
|
|
511
511
|
isLoading: n,
|
|
512
|
-
findIdentity:
|
|
513
|
-
verify:
|
|
512
|
+
findIdentity: b,
|
|
513
|
+
verify: g,
|
|
514
514
|
login: f,
|
|
515
|
-
logout:
|
|
516
|
-
lastLoginProvider:
|
|
515
|
+
logout: $,
|
|
516
|
+
lastLoginProvider: h,
|
|
517
517
|
sync: v
|
|
518
518
|
};
|
|
519
|
-
}),
|
|
519
|
+
}), cn = { class: "text-body-2" }, Lt = /* @__PURE__ */ k({
|
|
520
520
|
__name: "VoAuthShopify",
|
|
521
521
|
setup(u) {
|
|
522
|
-
const t = H(), s =
|
|
523
|
-
return (a, n) => (c(),
|
|
522
|
+
const t = H(), s = w(() => t.user && t.findIdentity("shopify")), o = w(() => t.user ? s.value ? "Connected to Shopify" : "Connect Shopify" : "Login with Shopify");
|
|
523
|
+
return (a, n) => (c(), _(Ve, {
|
|
524
524
|
"base-color": "#5b8a3c",
|
|
525
|
-
"prepend-icon": `svg:${e(
|
|
525
|
+
"prepend-icon": `svg:${e(Yt)}`,
|
|
526
526
|
rounded: "pill",
|
|
527
527
|
slim: "",
|
|
528
528
|
variant: "flat",
|
|
529
529
|
onClick: n[0] || (n[0] = (l) => e(t).login("shopify"))
|
|
530
530
|
}, W({
|
|
531
531
|
title: r(() => [
|
|
532
|
-
V("span",
|
|
532
|
+
V("span", cn, S(e(o)), 1)
|
|
533
533
|
]),
|
|
534
534
|
_: 2
|
|
535
535
|
}, [
|
|
@@ -542,11 +542,11 @@ const xe = G("team", () => {
|
|
|
542
542
|
} : void 0
|
|
543
543
|
]), 1032, ["prepend-icon"]));
|
|
544
544
|
}
|
|
545
|
-
}),
|
|
545
|
+
}), dn = { class: "text-body-2" }, It = /* @__PURE__ */ k({
|
|
546
546
|
__name: "VoAuthDiscord",
|
|
547
547
|
setup(u) {
|
|
548
|
-
const t = H(), s =
|
|
549
|
-
return (a, n) => (c(),
|
|
548
|
+
const t = H(), s = w(() => t.user && t.findIdentity("discord")), o = w(() => t.user ? s.value ? "Connected to Discord" : "Connect Discord" : "Login with Discord");
|
|
549
|
+
return (a, n) => (c(), _(Ve, {
|
|
550
550
|
"base-color": "#5865F2",
|
|
551
551
|
"prepend-icon": "$discord",
|
|
552
552
|
rounded: "pill",
|
|
@@ -555,7 +555,7 @@ const xe = G("team", () => {
|
|
|
555
555
|
onClick: n[0] || (n[0] = (l) => e(t).login("discord"))
|
|
556
556
|
}, W({
|
|
557
557
|
title: r(() => [
|
|
558
|
-
V("span",
|
|
558
|
+
V("span", dn, S(e(o)), 1)
|
|
559
559
|
]),
|
|
560
560
|
_: 2
|
|
561
561
|
}, [
|
|
@@ -568,11 +568,11 @@ const xe = G("team", () => {
|
|
|
568
568
|
} : void 0
|
|
569
569
|
]), 1024));
|
|
570
570
|
}
|
|
571
|
-
}),
|
|
571
|
+
}), pn = { class: "text-body-2" }, At = /* @__PURE__ */ k({
|
|
572
572
|
__name: "VoAuthGithub",
|
|
573
573
|
setup(u) {
|
|
574
|
-
const t = H(), s =
|
|
575
|
-
return (a, n) => (c(),
|
|
574
|
+
const t = H(), s = w(() => t.user && t.findIdentity("github")), o = w(() => t.user ? s.value ? "Connected to GitHub" : "Connect GitHub" : "Login with GitHub");
|
|
575
|
+
return (a, n) => (c(), _(Ve, {
|
|
576
576
|
"base-color": "#2a2a2a",
|
|
577
577
|
"prepend-icon": "$github",
|
|
578
578
|
rounded: "pill",
|
|
@@ -581,7 +581,7 @@ const xe = G("team", () => {
|
|
|
581
581
|
onClick: n[0] || (n[0] = (l) => e(t).login("github"))
|
|
582
582
|
}, W({
|
|
583
583
|
title: r(() => [
|
|
584
|
-
V("span",
|
|
584
|
+
V("span", pn, S(e(o)), 1)
|
|
585
585
|
]),
|
|
586
586
|
_: 2
|
|
587
587
|
}, [
|
|
@@ -594,33 +594,33 @@ const xe = G("team", () => {
|
|
|
594
594
|
} : void 0
|
|
595
595
|
]), 1024));
|
|
596
596
|
}
|
|
597
|
-
}),
|
|
597
|
+
}), mn = { class: "text-center" }, fn = { class: "text-center mb-6" }, vn = { class: "text-h6 font-weight-light" }, Tt = /* @__PURE__ */ k({
|
|
598
598
|
__name: "VoAuthCard",
|
|
599
599
|
setup(u) {
|
|
600
600
|
const t = H();
|
|
601
601
|
return (s, o) => {
|
|
602
|
-
const a =
|
|
603
|
-
return c(),
|
|
602
|
+
const a = At, n = It, l = Lt;
|
|
603
|
+
return c(), _(q, {
|
|
604
604
|
class: "pt-6 pb-8 px-4 px-sm-8 mx-auto",
|
|
605
605
|
"max-width": "480"
|
|
606
606
|
}, {
|
|
607
607
|
default: r(() => [
|
|
608
|
-
V("div",
|
|
608
|
+
V("div", mn, [
|
|
609
609
|
i(oe, {
|
|
610
610
|
class: "mx-auto",
|
|
611
611
|
image: "https://vuetifyjs.b-cdn.net/docs/images/avatars/one.png",
|
|
612
612
|
size: "64"
|
|
613
613
|
})
|
|
614
614
|
]),
|
|
615
|
-
V("div",
|
|
616
|
-
i(
|
|
615
|
+
V("div", fn, [
|
|
616
|
+
i(Ho, { class: "text-h5 mb-1 text-md-h4" }, {
|
|
617
617
|
default: r(() => [
|
|
618
|
-
V("div",
|
|
618
|
+
V("div", vn, S(e(t).lastLoginProvider() ? "Welcome back to" : "Login to"), 1),
|
|
619
619
|
o[0] || (o[0] = V("span", { class: "text-h3 font-weight-bold" }, "Vuetify One", -1))
|
|
620
620
|
]),
|
|
621
621
|
_: 1
|
|
622
622
|
}),
|
|
623
|
-
i(
|
|
623
|
+
i(Eo, { class: "text-wrap" }, {
|
|
624
624
|
default: r(() => o[1] || (o[1] = [
|
|
625
625
|
B(" Login to save your settings and gain access to exclusive subscriber perks. ")
|
|
626
626
|
])),
|
|
@@ -644,13 +644,13 @@ const xe = G("team", () => {
|
|
|
644
644
|
});
|
|
645
645
|
};
|
|
646
646
|
}
|
|
647
|
-
}),
|
|
647
|
+
}), Dt = /* @__PURE__ */ k({
|
|
648
648
|
__name: "VoAuthDialog",
|
|
649
649
|
setup(u) {
|
|
650
650
|
const t = H();
|
|
651
651
|
return (s, o) => {
|
|
652
|
-
const a =
|
|
653
|
-
return c(),
|
|
652
|
+
const a = Tt;
|
|
653
|
+
return c(), _(ot, {
|
|
654
654
|
modelValue: e(t).dialog,
|
|
655
655
|
"onUpdate:modelValue": o[0] || (o[0] = (n) => e(t).dialog = n),
|
|
656
656
|
"max-width": "480"
|
|
@@ -662,62 +662,62 @@ const xe = G("team", () => {
|
|
|
662
662
|
}, 8, ["modelValue"]);
|
|
663
663
|
};
|
|
664
664
|
}
|
|
665
|
-
}),
|
|
666
|
-
const u =
|
|
667
|
-
async function
|
|
665
|
+
}), qe = G("notifications", () => {
|
|
666
|
+
const u = K(), t = R(), s = T([]), o = T([]), a = T(), n = D(!1), l = w(() => s.value.filter((h) => !t.notifications.read.includes(h.slug))), p = w(() => s.value.filter((h) => t.notifications.read.includes(h.slug)));
|
|
667
|
+
async function m() {
|
|
668
668
|
try {
|
|
669
669
|
n.value = !0;
|
|
670
|
-
const
|
|
671
|
-
s.value =
|
|
670
|
+
const h = await u.get("/one/notifications");
|
|
671
|
+
s.value = h.notifications;
|
|
672
672
|
} catch {
|
|
673
673
|
} finally {
|
|
674
674
|
n.value = !1;
|
|
675
675
|
}
|
|
676
676
|
return s.value;
|
|
677
677
|
}
|
|
678
|
-
async function v(
|
|
678
|
+
async function v(h) {
|
|
679
679
|
try {
|
|
680
680
|
n.value = !0;
|
|
681
|
-
const
|
|
682
|
-
return a.value =
|
|
681
|
+
const d = await u.get(`/one/admin/notifications/${h}`);
|
|
682
|
+
return a.value = d.notification, d.notification;
|
|
683
683
|
} catch {
|
|
684
684
|
} finally {
|
|
685
685
|
n.value = !1;
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
|
-
async function h
|
|
688
|
+
async function g(h) {
|
|
689
689
|
try {
|
|
690
690
|
n.value = !0;
|
|
691
|
-
const
|
|
691
|
+
const d = await u.form(
|
|
692
692
|
"/one/admin/notifications",
|
|
693
|
-
|
|
693
|
+
h
|
|
694
694
|
);
|
|
695
|
-
return a.value =
|
|
695
|
+
return a.value = d.notification, d.notification;
|
|
696
696
|
} catch {
|
|
697
697
|
} finally {
|
|
698
698
|
n.value = !1;
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
|
-
async function f(
|
|
701
|
+
async function f(h, d) {
|
|
702
702
|
try {
|
|
703
703
|
n.value = !0;
|
|
704
|
-
const
|
|
705
|
-
`/one/admin/notifications/${
|
|
706
|
-
|
|
704
|
+
const y = await u.form(
|
|
705
|
+
`/one/admin/notifications/${h}`,
|
|
706
|
+
d
|
|
707
707
|
);
|
|
708
|
-
return a.value =
|
|
708
|
+
return a.value = y.notification, y.notification;
|
|
709
709
|
} catch {
|
|
710
710
|
} finally {
|
|
711
711
|
n.value = !1;
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
async function
|
|
714
|
+
async function $() {
|
|
715
715
|
}
|
|
716
|
-
async function
|
|
716
|
+
async function b() {
|
|
717
717
|
try {
|
|
718
718
|
n.value = !0;
|
|
719
|
-
const
|
|
720
|
-
o.value =
|
|
719
|
+
const h = await u.get("/one/admin/notifications");
|
|
720
|
+
o.value = h.notifications;
|
|
721
721
|
} catch {
|
|
722
722
|
} finally {
|
|
723
723
|
n.value = !1;
|
|
@@ -728,21 +728,21 @@ const xe = G("team", () => {
|
|
|
728
728
|
isLoading: n,
|
|
729
729
|
all: s,
|
|
730
730
|
aall: o,
|
|
731
|
-
admin:
|
|
731
|
+
admin: b,
|
|
732
732
|
record: a,
|
|
733
|
-
index:
|
|
733
|
+
index: m,
|
|
734
734
|
show: v,
|
|
735
|
-
store:
|
|
735
|
+
store: g,
|
|
736
736
|
update: f,
|
|
737
|
-
destroy:
|
|
738
|
-
read:
|
|
737
|
+
destroy: $,
|
|
738
|
+
read: p,
|
|
739
739
|
unread: l
|
|
740
740
|
};
|
|
741
|
-
}),
|
|
741
|
+
}), hn = /* @__PURE__ */ k({
|
|
742
742
|
__name: "VoNotificationsTotalBadge",
|
|
743
743
|
setup(u) {
|
|
744
|
-
const t = H(), s =
|
|
745
|
-
return (n, l) => (c(),
|
|
744
|
+
const t = H(), s = qe(), o = R(), a = w(() => o.notifications.show ? s.unread.length : 0);
|
|
745
|
+
return (n, l) => (c(), _(nt, {
|
|
746
746
|
color: "error",
|
|
747
747
|
content: e(a),
|
|
748
748
|
dot: !!e(t).user,
|
|
@@ -762,18 +762,18 @@ const xe = G("team", () => {
|
|
|
762
762
|
},
|
|
763
763
|
setup(u) {
|
|
764
764
|
const t = u;
|
|
765
|
-
return (s, o) => (c(),
|
|
765
|
+
return (s, o) => (c(), _(j, {
|
|
766
766
|
class: "text-none font-weight-regular",
|
|
767
767
|
color: "primary",
|
|
768
768
|
size: "small",
|
|
769
|
-
style:
|
|
769
|
+
style: ft({
|
|
770
770
|
pointerEvents: t.readonly ? "none" : void 0
|
|
771
771
|
}),
|
|
772
772
|
tabindex: t.readonly ? -1 : void 0,
|
|
773
773
|
variant: "flat"
|
|
774
774
|
}, W({
|
|
775
775
|
loader: r(() => [
|
|
776
|
-
s.$slots.loader ? C("", !0) : (c(),
|
|
776
|
+
s.$slots.loader ? C("", !0) : (c(), _(Wo, {
|
|
777
777
|
key: 0,
|
|
778
778
|
indeterminate: "disable-shrink",
|
|
779
779
|
size: "16",
|
|
@@ -799,19 +799,19 @@ const xe = G("team", () => {
|
|
|
799
799
|
} : void 0
|
|
800
800
|
]), 1032, ["style", "tabindex"]));
|
|
801
801
|
}
|
|
802
|
-
}),
|
|
802
|
+
}), gn = { class: "pa-4 d-flex flex-column ga-4" }, Ut = /* @__PURE__ */ k({
|
|
803
803
|
__name: "VoAuthListItem",
|
|
804
804
|
setup(u) {
|
|
805
|
-
const t = H(), s = R(), o =
|
|
806
|
-
|
|
805
|
+
const t = H(), s = R(), o = D(!t.user && !t.isLoading);
|
|
806
|
+
P(() => t.user, (n) => {
|
|
807
807
|
o.value = !n;
|
|
808
808
|
});
|
|
809
809
|
function a() {
|
|
810
810
|
t.user && (o.value = !o.value);
|
|
811
811
|
}
|
|
812
812
|
return (n, l) => {
|
|
813
|
-
const
|
|
814
|
-
return c(),
|
|
813
|
+
const p = At, m = It, v = Lt;
|
|
814
|
+
return c(), _(q, {
|
|
815
815
|
class: "ma-2",
|
|
816
816
|
rounded: "lg",
|
|
817
817
|
variant: e(o) ? "tonal" : "text"
|
|
@@ -819,28 +819,28 @@ const xe = G("team", () => {
|
|
|
819
819
|
default: r(() => [
|
|
820
820
|
i(de, { class: "py-0" }, {
|
|
821
821
|
default: r(() => [
|
|
822
|
-
i(
|
|
822
|
+
i(Ve, {
|
|
823
823
|
class: "mb-0",
|
|
824
824
|
link: !!e(t).user,
|
|
825
825
|
nav: "",
|
|
826
|
-
"prepend-icon": `svg:${e(t).user && e(s).syncSettings ? e(
|
|
826
|
+
"prepend-icon": `svg:${e(t).user && e(s).syncSettings ? e(Jt) : e(Xt)}`,
|
|
827
827
|
rounded: "b-0",
|
|
828
828
|
slim: "",
|
|
829
829
|
title: e(t).user && e(s).syncSettings ? "Sync is on" : "Sync is paused",
|
|
830
830
|
onClick: a
|
|
831
831
|
}, {
|
|
832
832
|
append: r(() => [
|
|
833
|
-
i(
|
|
833
|
+
i(Re, null, {
|
|
834
834
|
default: r(() => [
|
|
835
|
-
e(t).user && (e(o) || !e(s).syncSettings) ? (c(),
|
|
835
|
+
e(t).user && (e(o) || !e(s).syncSettings) ? (c(), _(st, {
|
|
836
836
|
key: 0,
|
|
837
837
|
modelValue: e(s).syncSettings,
|
|
838
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
838
|
+
"onUpdate:modelValue": l[0] || (l[0] = (g) => e(s).syncSettings = g),
|
|
839
839
|
color: e(s).syncSettings ? "success" : void 0,
|
|
840
840
|
density: "compact",
|
|
841
841
|
"hide-details": "",
|
|
842
842
|
inset: "",
|
|
843
|
-
onClick: l[1] || (l[1] =
|
|
843
|
+
onClick: l[1] || (l[1] = et(() => {
|
|
844
844
|
}, ["stop"]))
|
|
845
845
|
}, {
|
|
846
846
|
thumb: r(() => [
|
|
@@ -856,23 +856,23 @@ const xe = G("team", () => {
|
|
|
856
856
|
]),
|
|
857
857
|
_: 1
|
|
858
858
|
}, 8, ["link", "prepend-icon", "title"]),
|
|
859
|
-
i(
|
|
859
|
+
i(ke, null, {
|
|
860
860
|
default: r(() => [
|
|
861
|
-
!e(t).user && !e(t).isLoading || e(o) ? (c(),
|
|
861
|
+
!e(t).user && !e(t).isLoading || e(o) ? (c(), _(je, {
|
|
862
862
|
key: 0,
|
|
863
863
|
border: "t",
|
|
864
864
|
color: "transparent"
|
|
865
865
|
}, {
|
|
866
866
|
default: r(() => [
|
|
867
|
-
V("div",
|
|
868
|
-
i(d, {
|
|
869
|
-
onClick: l[2] || (l[2] = (h) => o.value = !1)
|
|
870
|
-
}),
|
|
867
|
+
V("div", gn, [
|
|
871
868
|
i(p, {
|
|
872
|
-
onClick: l[
|
|
869
|
+
onClick: l[2] || (l[2] = (g) => o.value = !1)
|
|
870
|
+
}),
|
|
871
|
+
i(m, {
|
|
872
|
+
onClick: l[3] || (l[3] = (g) => o.value = !1)
|
|
873
873
|
}),
|
|
874
874
|
i(v, {
|
|
875
|
-
onClick: l[4] || (l[4] = (
|
|
875
|
+
onClick: l[4] || (l[4] = (g) => o.value = !1)
|
|
876
876
|
})
|
|
877
877
|
])
|
|
878
878
|
]),
|
|
@@ -889,10 +889,10 @@ const xe = G("team", () => {
|
|
|
889
889
|
}, 8, ["variant"]);
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
|
-
}),
|
|
892
|
+
}), ee = /* @__PURE__ */ k({
|
|
893
893
|
__name: "VoListItem",
|
|
894
894
|
setup(u) {
|
|
895
|
-
return (t, s) => (c(),
|
|
895
|
+
return (t, s) => (c(), _(Ve, { slim: "" }, W({
|
|
896
896
|
default: r(() => [
|
|
897
897
|
M(t.$slots, "default")
|
|
898
898
|
]),
|
|
@@ -921,21 +921,21 @@ const xe = G("team", () => {
|
|
|
921
921
|
} : void 0
|
|
922
922
|
]), 1024));
|
|
923
923
|
}
|
|
924
|
-
}),
|
|
924
|
+
}), _n = /* @__PURE__ */ k({
|
|
925
925
|
__name: "VoAuthLogoutNavItem",
|
|
926
926
|
setup(u) {
|
|
927
|
-
const t = H(), s =
|
|
927
|
+
const t = H(), s = D(!1);
|
|
928
928
|
async function o() {
|
|
929
929
|
s.value = !0, await t.logout(), s.value = !1;
|
|
930
930
|
}
|
|
931
931
|
return (a, n) => {
|
|
932
|
-
const l =
|
|
933
|
-
return c(),
|
|
932
|
+
const l = ee;
|
|
933
|
+
return c(), _(l, {
|
|
934
934
|
class: "mb-0",
|
|
935
935
|
disabled: e(s),
|
|
936
936
|
link: "",
|
|
937
937
|
loading: e(s),
|
|
938
|
-
"prepend-icon": `svg:${e(
|
|
938
|
+
"prepend-icon": `svg:${e(Kt)}`,
|
|
939
939
|
title: "Logout",
|
|
940
940
|
onClick: o
|
|
941
941
|
}, null, 8, ["disabled", "loading", "prepend-icon"]);
|
|
@@ -943,7 +943,7 @@ const xe = G("team", () => {
|
|
|
943
943
|
}
|
|
944
944
|
}), Ce = /* @__PURE__ */ k({
|
|
945
945
|
__name: "VoDialog",
|
|
946
|
-
props: /* @__PURE__ */
|
|
946
|
+
props: /* @__PURE__ */ Rt({
|
|
947
947
|
prependIcon: {},
|
|
948
948
|
title: {}
|
|
949
949
|
}, {
|
|
@@ -952,8 +952,8 @@ const xe = G("team", () => {
|
|
|
952
952
|
}),
|
|
953
953
|
emits: ["update:modelValue"],
|
|
954
954
|
setup(u) {
|
|
955
|
-
const t = ce(u, "modelValue"), s =
|
|
956
|
-
return (a, n) => (c(),
|
|
955
|
+
const t = ce(u, "modelValue"), s = me(), o = D(!1);
|
|
956
|
+
return (a, n) => (c(), _(ot, {
|
|
957
957
|
modelValue: t.value,
|
|
958
958
|
"onUpdate:modelValue": n[2] || (n[2] = (l) => t.value = l),
|
|
959
959
|
activator: "parent",
|
|
@@ -971,21 +971,21 @@ const xe = G("team", () => {
|
|
|
971
971
|
}, W({
|
|
972
972
|
append: r(() => [
|
|
973
973
|
M(a.$slots, "append"),
|
|
974
|
-
e(s).xs.value ? C("", !0) : (c(),
|
|
974
|
+
e(s).xs.value ? C("", !0) : (c(), _(j, {
|
|
975
975
|
key: 0,
|
|
976
976
|
class: "me-2",
|
|
977
977
|
density: "comfortable",
|
|
978
|
-
icon: `svg:${e(o) ? e(
|
|
978
|
+
icon: `svg:${e(o) ? e(eo) : e(to)}`,
|
|
979
979
|
size: "small",
|
|
980
980
|
variant: "text",
|
|
981
|
-
onClick: n[0] || (n[0] = (
|
|
981
|
+
onClick: n[0] || (n[0] = (p) => o.value = !e(o))
|
|
982
982
|
}, null, 8, ["icon"])),
|
|
983
|
-
i(
|
|
983
|
+
i(j, {
|
|
984
984
|
density: "comfortable",
|
|
985
985
|
icon: "$close",
|
|
986
986
|
size: "small",
|
|
987
987
|
variant: "text",
|
|
988
|
-
onClick: n[1] || (n[1] = (
|
|
988
|
+
onClick: n[1] || (n[1] = (p) => t.value = !t.value)
|
|
989
989
|
})
|
|
990
990
|
]),
|
|
991
991
|
default: r(() => [
|
|
@@ -1013,13 +1013,13 @@ const xe = G("team", () => {
|
|
|
1013
1013
|
_: 3
|
|
1014
1014
|
}, 8, ["modelValue", "fullscreen", "max-height", "max-width"]));
|
|
1015
1015
|
}
|
|
1016
|
-
}),
|
|
1016
|
+
}), Ot = /* @__PURE__ */ k({
|
|
1017
1017
|
__name: "VoSwitch",
|
|
1018
1018
|
props: {
|
|
1019
1019
|
disabled: { type: Boolean }
|
|
1020
1020
|
},
|
|
1021
1021
|
setup(u) {
|
|
1022
|
-
return (t, s) => (c(),
|
|
1022
|
+
return (t, s) => (c(), _(st, {
|
|
1023
1023
|
color: "primary",
|
|
1024
1024
|
density: "compact",
|
|
1025
1025
|
disabled: t.disabled,
|
|
@@ -1042,10 +1042,10 @@ const xe = G("team", () => {
|
|
|
1042
1042
|
} : void 0
|
|
1043
1043
|
]), 1032, ["disabled", "true-icon"]));
|
|
1044
1044
|
}
|
|
1045
|
-
}),
|
|
1045
|
+
}), yn = {
|
|
1046
1046
|
key: 1,
|
|
1047
1047
|
class: "mb-3 text-caption text-medium-emphasis"
|
|
1048
|
-
},
|
|
1048
|
+
}, ve = /* @__PURE__ */ k({
|
|
1049
1049
|
__name: "VoDialogSubheader",
|
|
1050
1050
|
props: {
|
|
1051
1051
|
title: {},
|
|
@@ -1053,7 +1053,7 @@ const xe = G("team", () => {
|
|
|
1053
1053
|
},
|
|
1054
1054
|
setup(u) {
|
|
1055
1055
|
return (t, s) => (c(), L(N, null, [
|
|
1056
|
-
t.title ? (c(),
|
|
1056
|
+
t.title ? (c(), _(Xe, {
|
|
1057
1057
|
key: 0,
|
|
1058
1058
|
class: "font-weight-black"
|
|
1059
1059
|
}, {
|
|
@@ -1062,56 +1062,56 @@ const xe = G("team", () => {
|
|
|
1062
1062
|
]),
|
|
1063
1063
|
_: 1
|
|
1064
1064
|
})) : C("", !0),
|
|
1065
|
-
t.text ? (c(), L("div",
|
|
1065
|
+
t.text ? (c(), L("div", yn, S(t.text), 1)) : C("", !0)
|
|
1066
1066
|
], 64));
|
|
1067
1067
|
}
|
|
1068
|
-
}),
|
|
1068
|
+
}), bn = { key: 0 }, Vn = /* @__PURE__ */ k({
|
|
1069
1069
|
__name: "VoSettingsPageSuitOption",
|
|
1070
1070
|
setup(u) {
|
|
1071
1071
|
const t = R(), s = [
|
|
1072
1072
|
{
|
|
1073
1073
|
title: "Choose a page suit",
|
|
1074
1074
|
value: "",
|
|
1075
|
-
prependIcon: `svg:${
|
|
1075
|
+
prependIcon: `svg:${oo}`,
|
|
1076
1076
|
disabled: !0
|
|
1077
1077
|
},
|
|
1078
1078
|
{
|
|
1079
1079
|
title: "Blackguard",
|
|
1080
|
-
prependIcon: `svg:${
|
|
1080
|
+
prependIcon: `svg:${vt}`,
|
|
1081
1081
|
value: "blackguard"
|
|
1082
1082
|
},
|
|
1083
1083
|
{
|
|
1084
1084
|
title: "Polaris",
|
|
1085
|
-
prependIcon: `svg:${
|
|
1085
|
+
prependIcon: `svg:${ht}`,
|
|
1086
1086
|
value: "polaris"
|
|
1087
1087
|
},
|
|
1088
1088
|
{
|
|
1089
1089
|
title: "Nebula",
|
|
1090
|
-
prependIcon: `svg:${
|
|
1090
|
+
prependIcon: `svg:${gt}`,
|
|
1091
1091
|
value: "nebula"
|
|
1092
1092
|
},
|
|
1093
1093
|
{
|
|
1094
1094
|
title: "Odyssey",
|
|
1095
|
-
prependIcon: `svg:${
|
|
1095
|
+
prependIcon: `svg:${_t}`,
|
|
1096
1096
|
value: "odyssey"
|
|
1097
1097
|
}
|
|
1098
1098
|
];
|
|
1099
1099
|
return (o, a) => {
|
|
1100
|
-
const n =
|
|
1100
|
+
const n = Ot, l = ve;
|
|
1101
1101
|
return c(), L(N, null, [
|
|
1102
1102
|
i(n, {
|
|
1103
1103
|
modelValue: e(t).suits.show,
|
|
1104
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
1104
|
+
"onUpdate:modelValue": a[0] || (a[0] = (p) => e(t).suits.show = p),
|
|
1105
1105
|
class: "mb-2",
|
|
1106
1106
|
label: "Enable Page suits",
|
|
1107
1107
|
messages: "Customize layout elements with a unique background, styled after one of our themed releases."
|
|
1108
1108
|
}, null, 8, ["modelValue"]),
|
|
1109
|
-
i(
|
|
1109
|
+
i(ke, null, {
|
|
1110
1110
|
default: r(() => [
|
|
1111
|
-
e(t).suits.show ? (c(), L("div",
|
|
1112
|
-
i(
|
|
1111
|
+
e(t).suits.show ? (c(), L("div", bn, [
|
|
1112
|
+
i(Qo, {
|
|
1113
1113
|
modelValue: e(t).suits.suit,
|
|
1114
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
1114
|
+
"onUpdate:modelValue": a[1] || (a[1] = (p) => e(t).suits.suit = p),
|
|
1115
1115
|
clearable: "",
|
|
1116
1116
|
density: "compact",
|
|
1117
1117
|
"item-props": "",
|
|
@@ -1121,27 +1121,27 @@ const xe = G("team", () => {
|
|
|
1121
1121
|
style: { "max-width": "300px" },
|
|
1122
1122
|
variant: "outlined"
|
|
1123
1123
|
}, {
|
|
1124
|
-
selection: r(({ item:
|
|
1124
|
+
selection: r(({ item: p }) => [
|
|
1125
1125
|
i(O, {
|
|
1126
|
-
icon:
|
|
1126
|
+
icon: p.props.prependIcon,
|
|
1127
1127
|
size: "x-small",
|
|
1128
1128
|
start: ""
|
|
1129
1129
|
}, null, 8, ["icon"]),
|
|
1130
|
-
B(" " + S(
|
|
1130
|
+
B(" " + S(p.title), 1)
|
|
1131
1131
|
]),
|
|
1132
1132
|
_: 1
|
|
1133
1133
|
}, 8, ["modelValue"]),
|
|
1134
1134
|
i(l, { text: "Select your suit elements to display the background image:" }),
|
|
1135
|
-
i(
|
|
1135
|
+
i(Go, {
|
|
1136
1136
|
modelValue: e(t).suits.elements,
|
|
1137
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
1137
|
+
"onUpdate:modelValue": a[2] || (a[2] = (p) => e(t).suits.elements = p),
|
|
1138
1138
|
color: "primary",
|
|
1139
1139
|
filter: "",
|
|
1140
1140
|
multiple: ""
|
|
1141
1141
|
}, {
|
|
1142
1142
|
default: r(() => [
|
|
1143
1143
|
i(ie, {
|
|
1144
|
-
"append-icon": `svg:${e(
|
|
1144
|
+
"append-icon": `svg:${e(no)}`,
|
|
1145
1145
|
"filter-icon": "$success",
|
|
1146
1146
|
text: "App Bar",
|
|
1147
1147
|
value: "app-bar",
|
|
@@ -1157,7 +1157,7 @@ const xe = G("team", () => {
|
|
|
1157
1157
|
_: 1
|
|
1158
1158
|
}, 8, ["append-icon"]),
|
|
1159
1159
|
i(ie, {
|
|
1160
|
-
"append-icon": `svg:${e(
|
|
1160
|
+
"append-icon": `svg:${e(so)}`,
|
|
1161
1161
|
"filter-icon": "$success",
|
|
1162
1162
|
text: "Navigation Drawer",
|
|
1163
1163
|
value: "drawer",
|
|
@@ -1199,7 +1199,7 @@ const xe = G("team", () => {
|
|
|
1199
1199
|
};
|
|
1200
1200
|
}
|
|
1201
1201
|
});
|
|
1202
|
-
function
|
|
1202
|
+
function kn() {
|
|
1203
1203
|
return {
|
|
1204
1204
|
blackguard: {
|
|
1205
1205
|
dark: !0,
|
|
@@ -1392,8 +1392,8 @@ function Vn() {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
|
-
const
|
|
1396
|
-
const u = "https://cdn.vuetifyjs.com/docs/images/one/", t = z(), s = R(), o =
|
|
1395
|
+
const We = G("settings", () => {
|
|
1396
|
+
const u = "https://cdn.vuetifyjs.com/docs/images/one/", t = z(), s = R(), o = He(), a = kn(), n = {
|
|
1397
1397
|
blackguard: {
|
|
1398
1398
|
"app-bar": u + "suits/blackguard/blackguard-app-bar.png",
|
|
1399
1399
|
drawer: u + "suits/blackguard/blackguard-app-drawer.png",
|
|
@@ -1414,23 +1414,23 @@ const qe = G("settings", () => {
|
|
|
1414
1414
|
drawer: u + "suits/odyssey/odyssey-app-drawer.png",
|
|
1415
1415
|
footer: u + "suits/odyssey/odyssey-app-footer.png"
|
|
1416
1416
|
}
|
|
1417
|
-
}, l =
|
|
1417
|
+
}, l = w(() => {
|
|
1418
1418
|
if (!s.suits.suit || !s.suits.show || !t.isSubscriber) return {};
|
|
1419
|
-
const
|
|
1419
|
+
const p = n[s.suits.suit.toLowerCase()], m = {};
|
|
1420
1420
|
for (const v of s.suits.elements)
|
|
1421
|
-
|
|
1422
|
-
return
|
|
1421
|
+
m[v] = p[v];
|
|
1422
|
+
return m;
|
|
1423
1423
|
});
|
|
1424
1424
|
return o.themes.value = {
|
|
1425
1425
|
...o.themes.value,
|
|
1426
1426
|
...a
|
|
1427
|
-
},
|
|
1428
|
-
|
|
1427
|
+
}, P(() => s.theme, (p) => {
|
|
1428
|
+
p === "system" ? o.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (o.global.name.value = p, s.suits.suit = n[p] ? p : ""), s.theme = p;
|
|
1429
1429
|
}, { immediate: !0 }), {
|
|
1430
1430
|
suit: l,
|
|
1431
1431
|
CDN_URL: u
|
|
1432
1432
|
};
|
|
1433
|
-
}),
|
|
1433
|
+
}), wn = { class: "ms-5" }, $n = { class: "pb-2" }, xn = /* @__PURE__ */ k({
|
|
1434
1434
|
__name: "VoSettingsDialog",
|
|
1435
1435
|
props: {
|
|
1436
1436
|
modelValue: { type: Boolean },
|
|
@@ -1438,42 +1438,42 @@ const qe = G("settings", () => {
|
|
|
1438
1438
|
},
|
|
1439
1439
|
emits: ["update:modelValue"],
|
|
1440
1440
|
setup(u) {
|
|
1441
|
-
const t = ce(u, "modelValue"), s = z(), o =
|
|
1441
|
+
const t = ce(u, "modelValue"), s = z(), o = We(), a = R(), n = w(() => [
|
|
1442
1442
|
{
|
|
1443
1443
|
title: "Light",
|
|
1444
1444
|
subtitle: "A standard light theme.",
|
|
1445
1445
|
image: o.CDN_URL + "themes/light.png",
|
|
1446
|
-
prependIcon: `svg:${
|
|
1446
|
+
prependIcon: `svg:${ao}`,
|
|
1447
1447
|
value: "light"
|
|
1448
1448
|
},
|
|
1449
1449
|
{
|
|
1450
1450
|
title: "Dark",
|
|
1451
1451
|
subtitle: "A standard dark theme.",
|
|
1452
1452
|
image: o.CDN_URL + "themes/dark.png",
|
|
1453
|
-
prependIcon: `svg:${
|
|
1453
|
+
prependIcon: `svg:${io}`,
|
|
1454
1454
|
value: "dark"
|
|
1455
1455
|
},
|
|
1456
1456
|
{
|
|
1457
1457
|
title: "System",
|
|
1458
1458
|
subtitle: "A theme based on the system preference.",
|
|
1459
1459
|
image: o.CDN_URL + "themes/system.png",
|
|
1460
|
-
prependIcon: `svg:${
|
|
1460
|
+
prependIcon: `svg:${ro}`,
|
|
1461
1461
|
value: "system"
|
|
1462
1462
|
},
|
|
1463
1463
|
{
|
|
1464
1464
|
title: "High Contrast",
|
|
1465
1465
|
subtitle: "A theme for high contrast.",
|
|
1466
1466
|
image: o.CDN_URL + "themes/high-contrast.png",
|
|
1467
|
-
prependIcon: `svg:${
|
|
1467
|
+
prependIcon: `svg:${lo}`,
|
|
1468
1468
|
value: "highContrast",
|
|
1469
1469
|
disabled: !s.isSubscriber
|
|
1470
1470
|
}
|
|
1471
|
-
]), l =
|
|
1471
|
+
]), l = w(() => [
|
|
1472
1472
|
{
|
|
1473
1473
|
title: "Blackguard",
|
|
1474
1474
|
subtitle: "A theme for v3.4 Blackguard.",
|
|
1475
1475
|
image: o.CDN_URL + "themes/blackguard.png",
|
|
1476
|
-
prependIcon: `svg:${
|
|
1476
|
+
prependIcon: `svg:${vt}`,
|
|
1477
1477
|
value: "blackguard",
|
|
1478
1478
|
disabled: !s.isSubscriber
|
|
1479
1479
|
},
|
|
@@ -1481,7 +1481,7 @@ const qe = G("settings", () => {
|
|
|
1481
1481
|
title: "Polaris",
|
|
1482
1482
|
subtitle: "A theme for v3.5 Polaris.",
|
|
1483
1483
|
image: o.CDN_URL + "themes/polaris.png",
|
|
1484
|
-
prependIcon: `svg:${
|
|
1484
|
+
prependIcon: `svg:${ht}`,
|
|
1485
1485
|
value: "polaris",
|
|
1486
1486
|
disabled: !s.isSubscriber
|
|
1487
1487
|
},
|
|
@@ -1489,7 +1489,7 @@ const qe = G("settings", () => {
|
|
|
1489
1489
|
title: "Nebula",
|
|
1490
1490
|
subtitle: "A theme for v3.6 Nebula.",
|
|
1491
1491
|
image: o.CDN_URL + "themes/nebula.png",
|
|
1492
|
-
prependIcon: `svg:${
|
|
1492
|
+
prependIcon: `svg:${gt}`,
|
|
1493
1493
|
value: "nebula",
|
|
1494
1494
|
disabled: !s.isSubscriber
|
|
1495
1495
|
},
|
|
@@ -1497,48 +1497,48 @@ const qe = G("settings", () => {
|
|
|
1497
1497
|
title: "Odyssey",
|
|
1498
1498
|
subtitle: "A theme for v3.7 Odyssey.",
|
|
1499
1499
|
image: o.CDN_URL + "themes/odyssey.png",
|
|
1500
|
-
prependIcon: `svg:${
|
|
1500
|
+
prependIcon: `svg:${_t}`,
|
|
1501
1501
|
value: "odyssey",
|
|
1502
1502
|
disabled: !s.isSubscriber
|
|
1503
1503
|
}
|
|
1504
|
-
]),
|
|
1504
|
+
]), p = w(() => [
|
|
1505
1505
|
{ title: "Standard", items: n.value },
|
|
1506
1506
|
{ title: "Releases", items: l.value }
|
|
1507
|
-
]),
|
|
1508
|
-
|
|
1509
|
-
|
|
1507
|
+
]), m = fe();
|
|
1508
|
+
P(m, async () => {
|
|
1509
|
+
m.value.one === "settings" && (s.isOpen = !0, await ye(), t.value = !0);
|
|
1510
1510
|
}, { immediate: !0 });
|
|
1511
|
-
function v(
|
|
1512
|
-
f.disabled || (a.theme = f.value,
|
|
1511
|
+
function v(g, f) {
|
|
1512
|
+
f.disabled || (a.theme = f.value, g == null || g());
|
|
1513
1513
|
}
|
|
1514
|
-
return (
|
|
1515
|
-
const
|
|
1516
|
-
return c(),
|
|
1514
|
+
return (g, f) => {
|
|
1515
|
+
const $ = ve, b = Vn, h = Ot, d = Ce;
|
|
1516
|
+
return c(), _(d, {
|
|
1517
1517
|
modelValue: t.value,
|
|
1518
|
-
"onUpdate:modelValue": f[6] || (f[6] = (
|
|
1519
|
-
"prepend-icon": `svg:${e(
|
|
1518
|
+
"onUpdate:modelValue": f[6] || (f[6] = (y) => t.value = y),
|
|
1519
|
+
"prepend-icon": `svg:${e(uo)}`,
|
|
1520
1520
|
title: "Settings"
|
|
1521
1521
|
}, {
|
|
1522
1522
|
default: r(() => [
|
|
1523
|
-
i(
|
|
1523
|
+
i(we, null, {
|
|
1524
1524
|
default: r(() => [
|
|
1525
|
-
i(
|
|
1525
|
+
i($e, { scrollable: "" }, {
|
|
1526
1526
|
default: r(() => [
|
|
1527
1527
|
i(ae, { class: "px-7" }, {
|
|
1528
1528
|
default: r(() => [
|
|
1529
|
-
i(
|
|
1529
|
+
i($, {
|
|
1530
1530
|
text: "Customize your documentation experience with light and dark themes, as well as a combination of both named.",
|
|
1531
1531
|
title: "Theme"
|
|
1532
1532
|
}),
|
|
1533
|
-
i(
|
|
1533
|
+
i(kt, {
|
|
1534
1534
|
modelValue: e(a).theme,
|
|
1535
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
1535
|
+
"onUpdate:modelValue": f[0] || (f[0] = (y) => e(a).theme = y),
|
|
1536
1536
|
mandatory: ""
|
|
1537
1537
|
}, {
|
|
1538
1538
|
default: r(() => [
|
|
1539
1539
|
i(De, { dense: "" }, {
|
|
1540
1540
|
default: r(() => [
|
|
1541
|
-
(c(!0), L(N, null, re(
|
|
1541
|
+
(c(!0), L(N, null, re(p.value, (y, A) => (c(), _(_e, {
|
|
1542
1542
|
key: A,
|
|
1543
1543
|
class: "d-flex flex-column ga-3",
|
|
1544
1544
|
cols: "12",
|
|
@@ -1547,34 +1547,34 @@ const qe = G("settings", () => {
|
|
|
1547
1547
|
default: r(() => [
|
|
1548
1548
|
i(jo, { class: "mb-n4" }, {
|
|
1549
1549
|
default: r(() => [
|
|
1550
|
-
B(S(
|
|
1550
|
+
B(S(y.title), 1)
|
|
1551
1551
|
]),
|
|
1552
1552
|
_: 2
|
|
1553
1553
|
}, 1024),
|
|
1554
|
-
(c(!0), L(N, null, re(
|
|
1555
|
-
key:
|
|
1556
|
-
value:
|
|
1554
|
+
(c(!0), L(N, null, re(y.items, (U) => (c(), _(Ke, {
|
|
1555
|
+
key: U.value,
|
|
1556
|
+
value: U.value
|
|
1557
1557
|
}, {
|
|
1558
1558
|
default: r(({ toggle: F, isSelected: Q }) => [
|
|
1559
|
-
i(
|
|
1559
|
+
i(Ee, null, {
|
|
1560
1560
|
default: r(({ props: Z, isHovering: Y }) => [
|
|
1561
1561
|
i(q, J({
|
|
1562
1562
|
color: Q ? "primary" : "surface-variant",
|
|
1563
1563
|
height: "76",
|
|
1564
|
-
image:
|
|
1565
|
-
"prepend-icon":
|
|
1566
|
-
readonly:
|
|
1567
|
-
ripple: !
|
|
1568
|
-
subtitle:
|
|
1569
|
-
title:
|
|
1564
|
+
image: U.image,
|
|
1565
|
+
"prepend-icon": U.prependIcon,
|
|
1566
|
+
readonly: U.disabled,
|
|
1567
|
+
ripple: !U.disabled,
|
|
1568
|
+
subtitle: U.disabled ? "🔓 Unlock with Vuetify One" : U.subtitle,
|
|
1569
|
+
title: U.title,
|
|
1570
1570
|
variant: "tonal",
|
|
1571
1571
|
ref_for: !0
|
|
1572
1572
|
}, Z, {
|
|
1573
|
-
onClick: (ue) => v(F,
|
|
1573
|
+
onClick: (ue) => v(F, U)
|
|
1574
1574
|
}), {
|
|
1575
1575
|
image: r(() => [
|
|
1576
1576
|
i(le, {
|
|
1577
|
-
style:
|
|
1577
|
+
style: ft({
|
|
1578
1578
|
filter: Q || Y ? "none" : "grayscale(100%)"
|
|
1579
1579
|
})
|
|
1580
1580
|
}, null, 8, ["style"])
|
|
@@ -1598,7 +1598,7 @@ const qe = G("settings", () => {
|
|
|
1598
1598
|
}, 8, ["modelValue"]),
|
|
1599
1599
|
e(s).isSubscriber ? (c(), L(N, { key: 0 }, [
|
|
1600
1600
|
i(X, { class: "mt-6 mb-4" }),
|
|
1601
|
-
i(
|
|
1601
|
+
i(b)
|
|
1602
1602
|
], 64)) : C("", !0)
|
|
1603
1603
|
]),
|
|
1604
1604
|
_: 1
|
|
@@ -1606,25 +1606,25 @@ const qe = G("settings", () => {
|
|
|
1606
1606
|
i(X),
|
|
1607
1607
|
i(ae, { class: "px-7" }, {
|
|
1608
1608
|
default: r(() => [
|
|
1609
|
-
i(
|
|
1609
|
+
i($, {
|
|
1610
1610
|
text: "These options change your browsing experience within Vuetify properties",
|
|
1611
1611
|
title: "Experience"
|
|
1612
1612
|
}),
|
|
1613
|
-
e(s).isSubscriber ? (c(),
|
|
1613
|
+
e(s).isSubscriber ? (c(), _(h, {
|
|
1614
1614
|
key: 0,
|
|
1615
1615
|
modelValue: e(a).disableAds,
|
|
1616
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
1616
|
+
"onUpdate:modelValue": f[1] || (f[1] = (y) => e(a).disableAds = y),
|
|
1617
1617
|
class: "mb-2",
|
|
1618
1618
|
label: "Disable Ads",
|
|
1619
1619
|
messages: "Disable traditional advertisements on all documentation pages."
|
|
1620
1620
|
}, null, 8, ["modelValue"])) : C("", !0),
|
|
1621
|
-
i(
|
|
1621
|
+
i(ke, null, {
|
|
1622
1622
|
default: r(() => [
|
|
1623
|
-
|
|
1623
|
+
be(V("div", wn, [
|
|
1624
1624
|
V("div", $n, [
|
|
1625
|
-
i(
|
|
1625
|
+
i(h, {
|
|
1626
1626
|
modelValue: e(a).showHouseAds,
|
|
1627
|
-
"onUpdate:modelValue": f[2] || (f[2] = (
|
|
1627
|
+
"onUpdate:modelValue": f[2] || (f[2] = (y) => e(a).showHouseAds = y),
|
|
1628
1628
|
label: "Show House Ads",
|
|
1629
1629
|
messages: "These advertisements are for Vuetify products and services only."
|
|
1630
1630
|
}, null, 8, ["modelValue"])
|
|
@@ -1635,9 +1635,9 @@ const qe = G("settings", () => {
|
|
|
1635
1635
|
]),
|
|
1636
1636
|
_: 1
|
|
1637
1637
|
}),
|
|
1638
|
-
i(
|
|
1638
|
+
i(h, {
|
|
1639
1639
|
modelValue: e(a).quickbar,
|
|
1640
|
-
"onUpdate:modelValue": f[3] || (f[3] = (
|
|
1640
|
+
"onUpdate:modelValue": f[3] || (f[3] = (y) => e(a).quickbar = y),
|
|
1641
1641
|
label: "Enable Quick Actions",
|
|
1642
1642
|
messages: "Quick actions are located on the Vuetify One user menu and provide quick access to common tasks."
|
|
1643
1643
|
}, null, 8, ["modelValue"])
|
|
@@ -1645,25 +1645,25 @@ const qe = G("settings", () => {
|
|
|
1645
1645
|
_: 1
|
|
1646
1646
|
}),
|
|
1647
1647
|
i(X),
|
|
1648
|
-
e(s).isSubscriber ? (c(),
|
|
1648
|
+
e(s).isSubscriber ? (c(), _(ae, {
|
|
1649
1649
|
key: 0,
|
|
1650
1650
|
class: "px-7"
|
|
1651
1651
|
}, {
|
|
1652
1652
|
default: r(() => [
|
|
1653
|
-
i(
|
|
1653
|
+
i($, {
|
|
1654
1654
|
text: "Vuetify will communicate with you through banners and notifications. You can disable these features here or reset your local notification cache.",
|
|
1655
1655
|
title: "Communication"
|
|
1656
1656
|
}),
|
|
1657
|
-
i(
|
|
1657
|
+
i(h, {
|
|
1658
1658
|
modelValue: e(a).notifications.show,
|
|
1659
|
-
"onUpdate:modelValue": f[4] || (f[4] = (
|
|
1659
|
+
"onUpdate:modelValue": f[4] || (f[4] = (y) => e(a).notifications.show = y),
|
|
1660
1660
|
class: "mb-2",
|
|
1661
1661
|
label: "Enable Notifications",
|
|
1662
1662
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
1663
1663
|
}, null, 8, ["modelValue"]),
|
|
1664
|
-
i(
|
|
1664
|
+
i(h, {
|
|
1665
1665
|
modelValue: e(a).notifications.banners,
|
|
1666
|
-
"onUpdate:modelValue": f[5] || (f[5] = (
|
|
1666
|
+
"onUpdate:modelValue": f[5] || (f[5] = (y) => e(a).notifications.banners = y),
|
|
1667
1667
|
label: "Enable Banners",
|
|
1668
1668
|
messages: "Banners are located at the top of the screen and provide a callout for important information."
|
|
1669
1669
|
}, null, 8, ["modelValue"])
|
|
@@ -1681,16 +1681,16 @@ const qe = G("settings", () => {
|
|
|
1681
1681
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
1682
1682
|
};
|
|
1683
1683
|
}
|
|
1684
|
-
}),
|
|
1684
|
+
}), Cn = /* @__PURE__ */ k({
|
|
1685
1685
|
__name: "VoSettingsListItem",
|
|
1686
1686
|
setup(u) {
|
|
1687
|
-
const t =
|
|
1687
|
+
const t = D(!1);
|
|
1688
1688
|
return (s, o) => {
|
|
1689
|
-
const a =
|
|
1690
|
-
return c(),
|
|
1689
|
+
const a = xn, n = ee;
|
|
1690
|
+
return c(), _(n, {
|
|
1691
1691
|
active: e(t),
|
|
1692
1692
|
link: "",
|
|
1693
|
-
"prepend-icon": `svg:${e(
|
|
1693
|
+
"prepend-icon": `svg:${e(co)}`,
|
|
1694
1694
|
title: "Settings"
|
|
1695
1695
|
}, {
|
|
1696
1696
|
default: r(() => [
|
|
@@ -1703,15 +1703,15 @@ const qe = G("settings", () => {
|
|
|
1703
1703
|
}, 8, ["active", "prepend-icon"]);
|
|
1704
1704
|
};
|
|
1705
1705
|
}
|
|
1706
|
-
}),
|
|
1706
|
+
}), Sn = { class: "text-caption" }, Ln = /* @__PURE__ */ k({
|
|
1707
1707
|
__name: "VoSubscriptionInvoices",
|
|
1708
1708
|
setup(u) {
|
|
1709
1709
|
const t = Te(), s = z();
|
|
1710
1710
|
return (o, a) => {
|
|
1711
|
-
const n =
|
|
1712
|
-
return c(),
|
|
1711
|
+
const n = ve;
|
|
1712
|
+
return c(), _(De, null, {
|
|
1713
1713
|
default: r(() => [
|
|
1714
|
-
i(
|
|
1714
|
+
i(_e, { cols: "12" }, {
|
|
1715
1715
|
default: r(() => [
|
|
1716
1716
|
i(n, {
|
|
1717
1717
|
text: "View and download your invoice history.",
|
|
@@ -1722,7 +1722,7 @@ const qe = G("settings", () => {
|
|
|
1722
1722
|
rounded: "lg"
|
|
1723
1723
|
}, {
|
|
1724
1724
|
default: r(() => [
|
|
1725
|
-
i(
|
|
1725
|
+
i(wt, {
|
|
1726
1726
|
"fixed-header": "",
|
|
1727
1727
|
height: "450",
|
|
1728
1728
|
items: e(s).invoices,
|
|
@@ -1730,7 +1730,7 @@ const qe = G("settings", () => {
|
|
|
1730
1730
|
sticky: ""
|
|
1731
1731
|
}, {
|
|
1732
1732
|
"item.date": r(({ item: l }) => [
|
|
1733
|
-
V("div",
|
|
1733
|
+
V("div", Sn, S(e(t).format(new Date(l.date * 1e3), "fullDateWithWeekday")), 1)
|
|
1734
1734
|
]),
|
|
1735
1735
|
"item.amount": r(({ item: l }) => [
|
|
1736
1736
|
B(" $" + S(l.amount / 100), 1)
|
|
@@ -1747,9 +1747,9 @@ const qe = G("settings", () => {
|
|
|
1747
1747
|
}, null, 8, ["text"])
|
|
1748
1748
|
]),
|
|
1749
1749
|
"item.pdf": r(({ item: l }) => [
|
|
1750
|
-
i(
|
|
1750
|
+
i(j, {
|
|
1751
1751
|
href: l.pdf,
|
|
1752
|
-
icon: `svg:${e(
|
|
1752
|
+
icon: `svg:${e(po)}`,
|
|
1753
1753
|
size: "small",
|
|
1754
1754
|
target: "_blank",
|
|
1755
1755
|
variant: "text"
|
|
@@ -1768,25 +1768,25 @@ const qe = G("settings", () => {
|
|
|
1768
1768
|
});
|
|
1769
1769
|
};
|
|
1770
1770
|
}
|
|
1771
|
-
}),
|
|
1771
|
+
}), In = { class: "d-flex align-center" }, An = ["textContent"], Tn = { class: "me-1" }, Dn = { class: "text-medium-emphasis text-caption" }, Un = { class: "d-flex align-center" }, On = { class: "d-flex align-start justify-space-between text-caption py-2" }, Bn = { class: "font-weight-bold" }, Mn = { class: "font-weight-bold" }, Nn = /* @__PURE__ */ k({
|
|
1772
1772
|
__name: "VoSubscriptionStatus",
|
|
1773
1773
|
emits: ["change:subscription"],
|
|
1774
1774
|
setup(u, { emit: t }) {
|
|
1775
|
-
const s = Te(), o = z(), a = t, n =
|
|
1775
|
+
const s = Te(), o = z(), a = t, n = w(() => {
|
|
1776
1776
|
if (!o.info) return;
|
|
1777
|
-
const
|
|
1778
|
-
return s.format(
|
|
1777
|
+
const p = new Date(o.info.currentPeriodEnd * 1e3);
|
|
1778
|
+
return s.format(p, "keyboardDate");
|
|
1779
1779
|
});
|
|
1780
1780
|
async function l() {
|
|
1781
1781
|
!o.interval || !o.subscriptionType || (o.isLoading = !0, o.subscribe(o.interval, o.subscriptionType));
|
|
1782
1782
|
}
|
|
1783
|
-
return (
|
|
1783
|
+
return (p, m) => {
|
|
1784
1784
|
const v = Ue;
|
|
1785
|
-
return c(),
|
|
1785
|
+
return c(), _(De, null, {
|
|
1786
1786
|
default: r(() => [
|
|
1787
|
-
i(
|
|
1787
|
+
i(_e, { cols: "12" }, {
|
|
1788
1788
|
default: r(() => {
|
|
1789
|
-
var
|
|
1789
|
+
var g, f;
|
|
1790
1790
|
return [
|
|
1791
1791
|
i(q, {
|
|
1792
1792
|
border: "",
|
|
@@ -1801,9 +1801,9 @@ const qe = G("settings", () => {
|
|
|
1801
1801
|
}, null, 8, ["color"])
|
|
1802
1802
|
]),
|
|
1803
1803
|
append: r(() => {
|
|
1804
|
-
var
|
|
1804
|
+
var $;
|
|
1805
1805
|
return [
|
|
1806
|
-
e(o).hasBilling && ((
|
|
1806
|
+
e(o).hasBilling && (($ = e(o).info) == null ? void 0 : $.status) === "canceled" ? (c(), _(v, {
|
|
1807
1807
|
key: 0,
|
|
1808
1808
|
class: "me-2",
|
|
1809
1809
|
color: "success",
|
|
@@ -1813,10 +1813,10 @@ const qe = G("settings", () => {
|
|
|
1813
1813
|
variant: "outlined",
|
|
1814
1814
|
onClick: l
|
|
1815
1815
|
}, null, 8, ["loading"])) : C("", !0),
|
|
1816
|
-
e(o).hasBilling ? (c(),
|
|
1816
|
+
e(o).hasBilling ? (c(), _(v, {
|
|
1817
1817
|
key: 1,
|
|
1818
1818
|
loading: e(o).isLoading,
|
|
1819
|
-
"prepend-icon": `svg:${e(
|
|
1819
|
+
"prepend-icon": `svg:${e(mo)}`,
|
|
1820
1820
|
text: "Billing",
|
|
1821
1821
|
onClick: e(o).manage
|
|
1822
1822
|
}, null, 8, ["loading", "prepend-icon", "onClick"])) : C("", !0)
|
|
@@ -1827,23 +1827,23 @@ const qe = G("settings", () => {
|
|
|
1827
1827
|
e(o).info ? {
|
|
1828
1828
|
name: "subtitle",
|
|
1829
1829
|
fn: r(() => [
|
|
1830
|
-
V("div",
|
|
1830
|
+
V("div", In, [
|
|
1831
1831
|
V("strong", {
|
|
1832
1832
|
key: "status",
|
|
1833
1833
|
class: "text-capitalize hidden-sm-and-down",
|
|
1834
1834
|
textContent: S(e(o).info.status)
|
|
1835
|
-
}, null, 8,
|
|
1835
|
+
}, null, 8, An),
|
|
1836
1836
|
e(o).info.items.length ? (c(), L(N, { key: 0 }, [
|
|
1837
|
-
|
|
1838
|
-
V("span",
|
|
1837
|
+
m[1] || (m[1] = V("span", { class: "mx-1 hidden-sm-and-down" }, "—", -1)),
|
|
1838
|
+
V("span", Tn, [
|
|
1839
1839
|
B(" $" + S(e(o).info.items[0].plan.amount / 100), 1),
|
|
1840
|
-
V("span",
|
|
1840
|
+
V("span", Dn, "/" + S(e(o).interval), 1)
|
|
1841
1841
|
]),
|
|
1842
1842
|
i(v, {
|
|
1843
1843
|
size: "x-small",
|
|
1844
1844
|
text: "(Change Subscription)",
|
|
1845
1845
|
variant: "text",
|
|
1846
|
-
onClick:
|
|
1846
|
+
onClick: m[0] || (m[0] = ($) => a("change:subscription"))
|
|
1847
1847
|
})
|
|
1848
1848
|
], 64)) : C("", !0)
|
|
1849
1849
|
])
|
|
@@ -1852,13 +1852,13 @@ const qe = G("settings", () => {
|
|
|
1852
1852
|
} : {
|
|
1853
1853
|
name: "subtitle",
|
|
1854
1854
|
fn: r(() => [
|
|
1855
|
-
V("div",
|
|
1855
|
+
V("div", Un, [
|
|
1856
1856
|
i(Ie, {
|
|
1857
1857
|
height: "16",
|
|
1858
1858
|
type: "ossein",
|
|
1859
1859
|
width: "40"
|
|
1860
1860
|
}),
|
|
1861
|
-
|
|
1861
|
+
m[2] || (m[2] = V("span", { class: "mx-1" }, "—", -1)),
|
|
1862
1862
|
i(Ie, {
|
|
1863
1863
|
height: "16",
|
|
1864
1864
|
type: "ossein",
|
|
@@ -1869,16 +1869,16 @@ const qe = G("settings", () => {
|
|
|
1869
1869
|
key: "1"
|
|
1870
1870
|
}
|
|
1871
1871
|
]), 1024),
|
|
1872
|
-
V("div",
|
|
1872
|
+
V("div", On, [
|
|
1873
1873
|
V("div", null, [
|
|
1874
|
-
((
|
|
1875
|
-
|
|
1876
|
-
V("span",
|
|
1877
|
-
|
|
1874
|
+
((g = e(o).info) == null ? void 0 : g.status) === "active" ? (c(), L(N, { key: 0 }, [
|
|
1875
|
+
m[3] || (m[3] = B(" Your plan renews on ")),
|
|
1876
|
+
V("span", Bn, S(e(s).format(e(n), "fullDateWithWeekday")), 1),
|
|
1877
|
+
m[4] || (m[4] = B(". "))
|
|
1878
1878
|
], 64)) : (c(), L(N, { key: 1 }, [
|
|
1879
|
-
|
|
1880
|
-
V("span",
|
|
1881
|
-
|
|
1879
|
+
m[5] || (m[5] = B(" Your plan ends on ")),
|
|
1880
|
+
V("span", Mn, S(e(s).format((f = e(o).info) == null ? void 0 : f.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1881
|
+
m[6] || (m[6] = B(". "))
|
|
1882
1882
|
], 64))
|
|
1883
1883
|
])
|
|
1884
1884
|
])
|
|
@@ -1891,7 +1891,7 @@ const qe = G("settings", () => {
|
|
|
1891
1891
|
});
|
|
1892
1892
|
};
|
|
1893
1893
|
}
|
|
1894
|
-
}),
|
|
1894
|
+
}), Fn = ["innerHTML"], zn = ["innerHTML"], Pn = /* @__PURE__ */ k({
|
|
1895
1895
|
__name: "VoSubscriptionPerks",
|
|
1896
1896
|
props: {
|
|
1897
1897
|
type: {}
|
|
@@ -1901,7 +1901,7 @@ const qe = G("settings", () => {
|
|
|
1901
1901
|
"Access to the Vuetify MCP server",
|
|
1902
1902
|
"Team wide Playgrounds, Bins, and Studios",
|
|
1903
1903
|
"Receive a special label on GitHub created issues and pull requests"
|
|
1904
|
-
], s =
|
|
1904
|
+
], s = D(!1), o = z(), a = w(() => {
|
|
1905
1905
|
const n = [
|
|
1906
1906
|
"Ad Free Experience on all Vuetify properties",
|
|
1907
1907
|
'Save and share across our platforms <a href="https://play.vuetifyjs.com" target="_blank">VPlay</a>, <a href="https://bin.vuetifyjs.com" target="_blank">VBin</a>, and <a href="https://studio.vuetifyjs.com" target="_blank">VStudio</a>',
|
|
@@ -1913,12 +1913,12 @@ const qe = G("settings", () => {
|
|
|
1913
1913
|
];
|
|
1914
1914
|
return u.type === "team" && n.unshift("Invite up to 25 team members"), n;
|
|
1915
1915
|
});
|
|
1916
|
-
return
|
|
1916
|
+
return P(s, async (n) => {
|
|
1917
1917
|
n && o.subscriptionInfo();
|
|
1918
1918
|
}), (n, l) => {
|
|
1919
|
-
const
|
|
1919
|
+
const p = ee;
|
|
1920
1920
|
return c(), L(N, null, [
|
|
1921
|
-
i(
|
|
1921
|
+
i(Xe, { class: "font-weight-black" }, {
|
|
1922
1922
|
default: r(() => l[0] || (l[0] = [
|
|
1923
1923
|
B("Perks")
|
|
1924
1924
|
])),
|
|
@@ -1932,7 +1932,7 @@ const qe = G("settings", () => {
|
|
|
1932
1932
|
nav: ""
|
|
1933
1933
|
}, {
|
|
1934
1934
|
default: r(() => [
|
|
1935
|
-
(c(!0), L(N, null, re(e(a), (
|
|
1935
|
+
(c(!0), L(N, null, re(e(a), (m, v) => (c(), _(p, {
|
|
1936
1936
|
key: v,
|
|
1937
1937
|
class: "mb-0",
|
|
1938
1938
|
"prepend-icon": `svg:${e(Ae)}`
|
|
@@ -1945,7 +1945,7 @@ const qe = G("settings", () => {
|
|
|
1945
1945
|
})
|
|
1946
1946
|
]),
|
|
1947
1947
|
title: r(() => [
|
|
1948
|
-
V("div", { innerHTML:
|
|
1948
|
+
V("div", { innerHTML: m }, null, 8, Fn)
|
|
1949
1949
|
]),
|
|
1950
1950
|
_: 2
|
|
1951
1951
|
}, 1032, ["prepend-icon"]))), 128))
|
|
@@ -1953,7 +1953,7 @@ const qe = G("settings", () => {
|
|
|
1953
1953
|
_: 1
|
|
1954
1954
|
}),
|
|
1955
1955
|
l[3] || (l[3] = V("br", null, null, -1)),
|
|
1956
|
-
i(
|
|
1956
|
+
i(Xe, { class: "font-weight-black" }, {
|
|
1957
1957
|
default: r(() => l[1] || (l[1] = [
|
|
1958
1958
|
B("Up Next")
|
|
1959
1959
|
])),
|
|
@@ -1967,10 +1967,10 @@ const qe = G("settings", () => {
|
|
|
1967
1967
|
nav: ""
|
|
1968
1968
|
}, {
|
|
1969
1969
|
default: r(() => [
|
|
1970
|
-
(c(), L(N, null, re(t, (
|
|
1970
|
+
(c(), L(N, null, re(t, (m, v) => i(p, {
|
|
1971
1971
|
key: v,
|
|
1972
1972
|
class: "mb-0",
|
|
1973
|
-
"prepend-icon": `svg:${e(
|
|
1973
|
+
"prepend-icon": `svg:${e(fo)}`
|
|
1974
1974
|
}, {
|
|
1975
1975
|
prepend: r(() => [
|
|
1976
1976
|
i(O, {
|
|
@@ -1979,7 +1979,7 @@ const qe = G("settings", () => {
|
|
|
1979
1979
|
})
|
|
1980
1980
|
]),
|
|
1981
1981
|
title: r(() => [
|
|
1982
|
-
V("div", { innerHTML:
|
|
1982
|
+
V("div", { innerHTML: m }, null, 8, zn)
|
|
1983
1983
|
]),
|
|
1984
1984
|
_: 2
|
|
1985
1985
|
}, 1032, ["prepend-icon"])), 64))
|
|
@@ -1999,7 +1999,7 @@ const qe = G("settings", () => {
|
|
|
1999
1999
|
},
|
|
2000
2000
|
emits: ["update:interval", "update:type"],
|
|
2001
2001
|
setup(u) {
|
|
2002
|
-
const t =
|
|
2002
|
+
const t = D(!1), s = ce(u, "interval"), o = ce(u, "type"), a = z(), n = xe(), l = w(() => n.hasTeamAccess && !n.isTeamOwner), p = {
|
|
2003
2003
|
solo: {
|
|
2004
2004
|
month: "2.99 /month",
|
|
2005
2005
|
year: "29.99 /year"
|
|
@@ -2009,34 +2009,34 @@ const qe = G("settings", () => {
|
|
|
2009
2009
|
year: "299.99 /year"
|
|
2010
2010
|
}
|
|
2011
2011
|
};
|
|
2012
|
-
return
|
|
2013
|
-
|
|
2014
|
-
}), (
|
|
2015
|
-
i(
|
|
2012
|
+
return P(t, async (m) => {
|
|
2013
|
+
m && a.subscriptionInfo();
|
|
2014
|
+
}), (m, v) => (c(), L(N, null, [
|
|
2015
|
+
i(kt, {
|
|
2016
2016
|
modelValue: o.value,
|
|
2017
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
2017
|
+
"onUpdate:modelValue": v[0] || (v[0] = (g) => o.value = g),
|
|
2018
2018
|
class: "mb-4",
|
|
2019
2019
|
mandatory: ""
|
|
2020
2020
|
}, {
|
|
2021
2021
|
default: r(() => [
|
|
2022
2022
|
i(De, null, {
|
|
2023
2023
|
default: r(() => [
|
|
2024
|
-
i(
|
|
2024
|
+
i(_e, {
|
|
2025
2025
|
cols: "12",
|
|
2026
2026
|
md: "6"
|
|
2027
2027
|
}, {
|
|
2028
2028
|
default: r(() => [
|
|
2029
|
-
i(
|
|
2030
|
-
default: r(({ toggle:
|
|
2029
|
+
i(Ke, { value: "solo" }, {
|
|
2030
|
+
default: r(({ toggle: g, isSelected: f }) => [
|
|
2031
2031
|
i(q, {
|
|
2032
2032
|
border: f ? "sm primary opacity-50" : "sm",
|
|
2033
2033
|
color: f ? "primary" : void 0,
|
|
2034
2034
|
"prepend-icon": f ? `svg:${e(Me)}` : "$radioOff",
|
|
2035
2035
|
rounded: "lg",
|
|
2036
|
-
subtitle: `$${
|
|
2036
|
+
subtitle: `$${p.solo[s.value]}`,
|
|
2037
2037
|
title: "Solo Developer",
|
|
2038
2038
|
variant: f ? "tonal" : "text",
|
|
2039
|
-
onClick:
|
|
2039
|
+
onClick: g
|
|
2040
2040
|
}, {
|
|
2041
2041
|
prepend: r(() => [
|
|
2042
2042
|
i(O, { class: "mt-n6" })
|
|
@@ -2049,23 +2049,23 @@ const qe = G("settings", () => {
|
|
|
2049
2049
|
]),
|
|
2050
2050
|
_: 1
|
|
2051
2051
|
}),
|
|
2052
|
-
i(
|
|
2052
|
+
i(_e, {
|
|
2053
2053
|
cols: "12",
|
|
2054
2054
|
md: "6"
|
|
2055
2055
|
}, {
|
|
2056
2056
|
default: r(() => [
|
|
2057
|
-
i(
|
|
2058
|
-
default: r(({ toggle:
|
|
2057
|
+
i(Ke, { value: "team" }, {
|
|
2058
|
+
default: r(({ toggle: g, isSelected: f }) => [
|
|
2059
2059
|
i(q, {
|
|
2060
2060
|
border: f ? "sm primary opacity-50" : "sm",
|
|
2061
2061
|
color: f ? "primary" : void 0,
|
|
2062
2062
|
disabled: e(l),
|
|
2063
2063
|
"prepend-icon": f ? `svg:${e(Me)}` : "$radioOff",
|
|
2064
2064
|
rounded: "lg",
|
|
2065
|
-
subtitle: `$${
|
|
2065
|
+
subtitle: `$${p.team[s.value]}`,
|
|
2066
2066
|
title: "Team Access",
|
|
2067
2067
|
variant: f ? "tonal" : "text",
|
|
2068
|
-
onClick:
|
|
2068
|
+
onClick: g
|
|
2069
2069
|
}, {
|
|
2070
2070
|
prepend: r(() => [
|
|
2071
2071
|
i(O, { class: "mt-n6" })
|
|
@@ -2086,7 +2086,7 @@ const qe = G("settings", () => {
|
|
|
2086
2086
|
}, 8, ["modelValue"]),
|
|
2087
2087
|
i(st, {
|
|
2088
2088
|
modelValue: s.value,
|
|
2089
|
-
"onUpdate:modelValue": v[1] || (v[1] = (
|
|
2089
|
+
"onUpdate:modelValue": v[1] || (v[1] = (g) => s.value = g),
|
|
2090
2090
|
"false-value": "month",
|
|
2091
2091
|
"hide-details": "",
|
|
2092
2092
|
inset: "",
|
|
@@ -2095,7 +2095,7 @@ const qe = G("settings", () => {
|
|
|
2095
2095
|
}, null, 8, ["modelValue"])
|
|
2096
2096
|
], 64));
|
|
2097
2097
|
}
|
|
2098
|
-
}),
|
|
2098
|
+
}), Rn = { class: "px-3" }, Hn = { class: "flex-grow-1 px-4 pb-3 overflow-hidden" }, En = /* @__PURE__ */ k({
|
|
2099
2099
|
__name: "VoSubscriptionDialog",
|
|
2100
2100
|
props: {
|
|
2101
2101
|
modelValue: { type: Boolean },
|
|
@@ -2103,67 +2103,67 @@ const qe = G("settings", () => {
|
|
|
2103
2103
|
},
|
|
2104
2104
|
emits: ["update:modelValue"],
|
|
2105
2105
|
setup(u) {
|
|
2106
|
-
function t(
|
|
2107
|
-
return new Promise((f) => setTimeout(f,
|
|
2106
|
+
function t(g) {
|
|
2107
|
+
return new Promise((f) => setTimeout(f, g));
|
|
2108
2108
|
}
|
|
2109
|
-
const s = ce(u, "modelValue"), o = z(), a =
|
|
2110
|
-
|
|
2111
|
-
!o.isSubscriber || !o.interval || !o.subscriptionType || (
|
|
2112
|
-
}),
|
|
2113
|
-
if (!
|
|
2114
|
-
|
|
2109
|
+
const s = ce(u, "modelValue"), o = z(), a = fe(), n = D(o.interval), l = D(o.subscriptionType), p = D(o.hasBilling ? "status" : "subscribe"), m = D(!1);
|
|
2110
|
+
P([n, l], ([g, f]) => {
|
|
2111
|
+
!o.isSubscriber || !o.interval || !o.subscriptionType || (m.value = g !== o.interval || f !== o.subscriptionType);
|
|
2112
|
+
}), P(s, async (g) => {
|
|
2113
|
+
if (!g || !o.isSubscriber) {
|
|
2114
|
+
g || o.resetQuery();
|
|
2115
2115
|
return;
|
|
2116
2116
|
}
|
|
2117
2117
|
o.subscriptionInfo();
|
|
2118
|
-
}),
|
|
2119
|
-
!o.sessionId && !["subscribe", "status"].includes(a.value.one) || a.value.team || (
|
|
2120
|
-
}, { immediate: !0 }),
|
|
2118
|
+
}), P(a, async () => {
|
|
2119
|
+
!o.sessionId && !["subscribe", "status"].includes(a.value.one) || a.value.team || (p.value = o.sessionId || a.value.one === "status" ? "status" : "subscribe", o.isOpen = !0, await ye(), s.value = !0);
|
|
2120
|
+
}, { immediate: !0 }), Ht(() => {
|
|
2121
2121
|
n.value = o.interval ?? "year", l.value = o.subscriptionType ?? "solo";
|
|
2122
2122
|
});
|
|
2123
2123
|
async function v() {
|
|
2124
|
-
await o.modify(n.value, l.value), await o.subscriptionInfo(),
|
|
2124
|
+
await o.modify(n.value, l.value), await o.subscriptionInfo(), m.value = null, await t(3e3), p.value = "status", await t(300), m.value = !1;
|
|
2125
2125
|
}
|
|
2126
|
-
return (
|
|
2127
|
-
const
|
|
2128
|
-
return c(),
|
|
2126
|
+
return (g, f) => {
|
|
2127
|
+
const $ = ve, b = jn, h = Pn, d = Nn, y = Ln, A = Ue, U = Ce;
|
|
2128
|
+
return c(), _(U, {
|
|
2129
2129
|
modelValue: s.value,
|
|
2130
2130
|
"onUpdate:modelValue": f[5] || (f[5] = (F) => s.value = F),
|
|
2131
|
-
"prepend-icon": `svg:${e(
|
|
2131
|
+
"prepend-icon": `svg:${e(vo)}`,
|
|
2132
2132
|
title: "Subscriptions"
|
|
2133
2133
|
}, W({
|
|
2134
2134
|
default: r(() => [
|
|
2135
|
-
i(
|
|
2135
|
+
i(we, null, {
|
|
2136
2136
|
default: r(() => [
|
|
2137
|
-
i(
|
|
2137
|
+
i($e, { scrollable: "" }, {
|
|
2138
2138
|
default: r(() => [
|
|
2139
|
-
V("div",
|
|
2139
|
+
V("div", Rn, [
|
|
2140
2140
|
i(ae, null, {
|
|
2141
2141
|
default: r(() => [
|
|
2142
|
-
i(
|
|
2142
|
+
i($, {
|
|
2143
2143
|
text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
|
|
2144
2144
|
title: "Vuetify One"
|
|
2145
2145
|
}),
|
|
2146
|
-
i($t, { "model-value": e(
|
|
2146
|
+
i($t, { "model-value": e(p) }, {
|
|
2147
2147
|
default: r(() => [
|
|
2148
2148
|
i(Le, { value: "subscribe" }, {
|
|
2149
2149
|
default: r(() => [
|
|
2150
|
-
i(
|
|
2150
|
+
i(b, {
|
|
2151
2151
|
interval: e(n),
|
|
2152
2152
|
"onUpdate:interval": f[0] || (f[0] = (F) => te(n) ? n.value = F : null),
|
|
2153
2153
|
type: e(l),
|
|
2154
2154
|
"onUpdate:type": f[1] || (f[1] = (F) => te(l) ? l.value = F : null)
|
|
2155
2155
|
}, null, 8, ["interval", "type"]),
|
|
2156
2156
|
f[6] || (f[6] = V("br", null, null, -1)),
|
|
2157
|
-
i(
|
|
2157
|
+
i(h, { type: e(l) }, null, 8, ["type"])
|
|
2158
2158
|
]),
|
|
2159
2159
|
_: 1
|
|
2160
2160
|
}),
|
|
2161
2161
|
i(Le, { value: "status" }, {
|
|
2162
2162
|
default: r(() => [
|
|
2163
|
-
i(
|
|
2164
|
-
"onChange:subscription": f[2] || (f[2] = (F) =>
|
|
2163
|
+
i(d, {
|
|
2164
|
+
"onChange:subscription": f[2] || (f[2] = (F) => p.value = "subscribe")
|
|
2165
2165
|
}),
|
|
2166
|
-
i(
|
|
2166
|
+
i(y)
|
|
2167
2167
|
]),
|
|
2168
2168
|
_: 1
|
|
2169
2169
|
})
|
|
@@ -2183,28 +2183,28 @@ const qe = G("settings", () => {
|
|
|
2183
2183
|
]),
|
|
2184
2184
|
_: 2
|
|
2185
2185
|
}, [
|
|
2186
|
-
e(
|
|
2186
|
+
e(p) === "subscribe" ? {
|
|
2187
2187
|
name: "actions",
|
|
2188
2188
|
fn: r(() => [
|
|
2189
|
-
V("div",
|
|
2190
|
-
e(
|
|
2189
|
+
V("div", Hn, [
|
|
2190
|
+
e(m) !== !1 ? (c(), _(A, {
|
|
2191
2191
|
key: 0,
|
|
2192
2192
|
block: "",
|
|
2193
2193
|
color: "success",
|
|
2194
2194
|
loading: e(o).isLoading,
|
|
2195
|
-
"prepend-icon": `svg:${e(
|
|
2196
|
-
readonly: e(
|
|
2195
|
+
"prepend-icon": `svg:${e(m) !== null ? e(ho) : e(Me)}`,
|
|
2196
|
+
readonly: e(m) === null,
|
|
2197
2197
|
size: "default",
|
|
2198
|
-
text: e(
|
|
2198
|
+
text: e(m) !== null ? "Modify Subscription" : "Success",
|
|
2199
2199
|
onClick: v
|
|
2200
|
-
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : e(o).one ? (c(),
|
|
2200
|
+
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : e(o).one ? (c(), _(A, {
|
|
2201
2201
|
key: 2,
|
|
2202
2202
|
block: "",
|
|
2203
|
-
"prepend-icon": `svg:${e(
|
|
2203
|
+
"prepend-icon": `svg:${e(go)}`,
|
|
2204
2204
|
size: "default",
|
|
2205
2205
|
text: "Manage Subscription",
|
|
2206
|
-
onClick: f[4] || (f[4] = (F) =>
|
|
2207
|
-
}, null, 8, ["prepend-icon"])) : (c(),
|
|
2206
|
+
onClick: f[4] || (f[4] = (F) => p.value = "status")
|
|
2207
|
+
}, null, 8, ["prepend-icon"])) : (c(), _(A, {
|
|
2208
2208
|
key: 1,
|
|
2209
2209
|
block: "",
|
|
2210
2210
|
color: e(n) && e(l) ? "success" : "disabled",
|
|
@@ -2222,16 +2222,16 @@ const qe = G("settings", () => {
|
|
|
2222
2222
|
]), 1032, ["modelValue", "prepend-icon"]);
|
|
2223
2223
|
};
|
|
2224
2224
|
}
|
|
2225
|
-
}),
|
|
2225
|
+
}), qn = /* @__PURE__ */ k({
|
|
2226
2226
|
__name: "VoSubscriptionListItem",
|
|
2227
2227
|
setup(u) {
|
|
2228
|
-
const t =
|
|
2228
|
+
const t = D(!1);
|
|
2229
2229
|
return (s, o) => {
|
|
2230
|
-
const a =
|
|
2231
|
-
return c(),
|
|
2230
|
+
const a = En, n = ee;
|
|
2231
|
+
return c(), _(n, {
|
|
2232
2232
|
active: e(t),
|
|
2233
2233
|
link: "",
|
|
2234
|
-
"prepend-icon": `svg:${e(
|
|
2234
|
+
"prepend-icon": `svg:${e(_o)}`,
|
|
2235
2235
|
title: "Subscriptions"
|
|
2236
2236
|
}, {
|
|
2237
2237
|
default: r(() => [
|
|
@@ -2244,10 +2244,10 @@ const qe = G("settings", () => {
|
|
|
2244
2244
|
}, 8, ["active", "prepend-icon"]);
|
|
2245
2245
|
};
|
|
2246
2246
|
}
|
|
2247
|
-
}),
|
|
2247
|
+
}), Wn = {
|
|
2248
2248
|
key: 0,
|
|
2249
2249
|
class: "text-success"
|
|
2250
|
-
},
|
|
2250
|
+
}, Ze = /* @__PURE__ */ k({
|
|
2251
2251
|
__name: "VoSponsorshipsTimelineItem",
|
|
2252
2252
|
props: {
|
|
2253
2253
|
title: {},
|
|
@@ -2259,16 +2259,16 @@ const qe = G("settings", () => {
|
|
|
2259
2259
|
sponsorship: {}
|
|
2260
2260
|
},
|
|
2261
2261
|
setup(u) {
|
|
2262
|
-
const t = u, s =
|
|
2262
|
+
const t = u, s = We(), o = w(() => {
|
|
2263
2263
|
var n, l;
|
|
2264
2264
|
return `$${parseFloat(String((((n = t.sponsorship) == null ? void 0 : n.amount) ?? 0) / 100)).toFixed(2)} /${(l = t.sponsorship) == null ? void 0 : l.interval}`;
|
|
2265
2265
|
});
|
|
2266
2266
|
return (a, n) => {
|
|
2267
|
-
var
|
|
2267
|
+
var p, m;
|
|
2268
2268
|
const l = Ue;
|
|
2269
|
-
return c(),
|
|
2270
|
-
"dot-color": (
|
|
2271
|
-
icon: (
|
|
2269
|
+
return c(), _(Xo, {
|
|
2270
|
+
"dot-color": (p = a.sponsorship) != null && p.isActive ? "success" : "transparent",
|
|
2271
|
+
icon: (m = a.sponsorship) != null && m.isActive ? `svg:${e(Ae)}` : void 0,
|
|
2272
2272
|
size: "x-small",
|
|
2273
2273
|
width: "100%"
|
|
2274
2274
|
}, {
|
|
@@ -2283,9 +2283,9 @@ const qe = G("settings", () => {
|
|
|
2283
2283
|
subtitle: r(() => {
|
|
2284
2284
|
var v;
|
|
2285
2285
|
return [
|
|
2286
|
-
(v = a.sponsorship) != null && v.isActive ? (c(), L("div",
|
|
2286
|
+
(v = a.sponsorship) != null && v.isActive ? (c(), L("div", Wn, [
|
|
2287
2287
|
i(O, {
|
|
2288
|
-
icon: `svg:${e(
|
|
2288
|
+
icon: `svg:${e(yo)}`,
|
|
2289
2289
|
size: "x-small"
|
|
2290
2290
|
}, null, 8, ["icon"]),
|
|
2291
2291
|
B(" " + S(e(o)), 1)
|
|
@@ -2295,22 +2295,22 @@ const qe = G("settings", () => {
|
|
|
2295
2295
|
];
|
|
2296
2296
|
}),
|
|
2297
2297
|
append: r(() => {
|
|
2298
|
-
var v,
|
|
2298
|
+
var v, g, f, $, b, h;
|
|
2299
2299
|
return [
|
|
2300
|
-
a.disabled ? (c(),
|
|
2300
|
+
a.disabled ? (c(), _(l, {
|
|
2301
2301
|
key: 1,
|
|
2302
2302
|
color: "surface-variant",
|
|
2303
2303
|
readonly: "",
|
|
2304
2304
|
text: "Coming Soon"
|
|
2305
|
-
})) : (c(),
|
|
2305
|
+
})) : (c(), _(l, {
|
|
2306
2306
|
key: 0,
|
|
2307
2307
|
active: !1,
|
|
2308
2308
|
color: (v = a.sponsorship) != null && v.isActive ? "success" : "primary",
|
|
2309
|
-
href: (
|
|
2310
|
-
"prepend-icon": `svg:${(f = a.sponsorship) != null && f.isActive ? e(Me) : e(
|
|
2311
|
-
readonly: (
|
|
2312
|
-
target: (
|
|
2313
|
-
text: (
|
|
2309
|
+
href: (g = a.sponsorship) != null && g.isActive || a.to ? void 0 : a.href,
|
|
2310
|
+
"prepend-icon": `svg:${(f = a.sponsorship) != null && f.isActive ? e(Me) : e(Pe)}`,
|
|
2311
|
+
readonly: ($ = a.sponsorship) == null ? void 0 : $.isActive,
|
|
2312
|
+
target: (b = a.sponsorship) != null && b.isActive || a.to ? void 0 : "_blank",
|
|
2313
|
+
text: (h = a.sponsorship) != null && h.isActive ? "Active" : "Info",
|
|
2314
2314
|
to: a.to,
|
|
2315
2315
|
width: "88"
|
|
2316
2316
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text", "to"]))
|
|
@@ -2323,12 +2323,12 @@ const qe = G("settings", () => {
|
|
|
2323
2323
|
}, 8, ["dot-color", "icon"]);
|
|
2324
2324
|
};
|
|
2325
2325
|
}
|
|
2326
|
-
}),
|
|
2326
|
+
}), Zn = /* @__PURE__ */ k({
|
|
2327
2327
|
__name: "VoSponsorshipsTimelineItemPatreon",
|
|
2328
2328
|
setup(u) {
|
|
2329
2329
|
return (t, s) => {
|
|
2330
|
-
const o =
|
|
2331
|
-
return c(),
|
|
2330
|
+
const o = Ze;
|
|
2331
|
+
return c(), _(o, {
|
|
2332
2332
|
disabled: "",
|
|
2333
2333
|
logo: "patreon",
|
|
2334
2334
|
text: "Support Vuetify through Patreon.",
|
|
@@ -2336,13 +2336,13 @@ const qe = G("settings", () => {
|
|
|
2336
2336
|
});
|
|
2337
2337
|
};
|
|
2338
2338
|
}
|
|
2339
|
-
}),
|
|
2339
|
+
}), Gn = /* @__PURE__ */ k({
|
|
2340
2340
|
__name: "VoSponsorshipsTimelineItemDiscord",
|
|
2341
2341
|
setup(u) {
|
|
2342
2342
|
const t = z();
|
|
2343
2343
|
return (s, o) => {
|
|
2344
|
-
const a =
|
|
2345
|
-
return c(),
|
|
2344
|
+
const a = Ze;
|
|
2345
|
+
return c(), _(a, {
|
|
2346
2346
|
href: "https://discord.com/servers/vuetify-340160225338195969",
|
|
2347
2347
|
logo: "discord",
|
|
2348
2348
|
sponsorship: e(t).discord,
|
|
@@ -2351,13 +2351,13 @@ const qe = G("settings", () => {
|
|
|
2351
2351
|
}, null, 8, ["sponsorship"]);
|
|
2352
2352
|
};
|
|
2353
2353
|
}
|
|
2354
|
-
}),
|
|
2354
|
+
}), Qn = /* @__PURE__ */ k({
|
|
2355
2355
|
__name: "VoSponsorshipsTimelineItemGithub",
|
|
2356
2356
|
setup(u) {
|
|
2357
2357
|
const t = z();
|
|
2358
2358
|
return (s, o) => {
|
|
2359
|
-
const a =
|
|
2360
|
-
return c(),
|
|
2359
|
+
const a = Ze;
|
|
2360
|
+
return c(), _(a, {
|
|
2361
2361
|
href: "https://github.com/sponsors/johnleider",
|
|
2362
2362
|
logo: "github",
|
|
2363
2363
|
sponsorship: e(t).github,
|
|
@@ -2366,13 +2366,13 @@ const qe = G("settings", () => {
|
|
|
2366
2366
|
}, null, 8, ["sponsorship"]);
|
|
2367
2367
|
};
|
|
2368
2368
|
}
|
|
2369
|
-
}),
|
|
2369
|
+
}), Yn = /* @__PURE__ */ k({
|
|
2370
2370
|
__name: "VoSponsorshipsTimelineItemOne",
|
|
2371
2371
|
setup(u) {
|
|
2372
2372
|
const t = z();
|
|
2373
2373
|
return (s, o) => {
|
|
2374
|
-
const a =
|
|
2375
|
-
return c(),
|
|
2374
|
+
const a = Ze;
|
|
2375
|
+
return c(), _(a, {
|
|
2376
2376
|
logo: "one",
|
|
2377
2377
|
sponsorship: e(t).one,
|
|
2378
2378
|
text: "Support Vuetify through Vuetify One.",
|
|
@@ -2381,12 +2381,12 @@ const qe = G("settings", () => {
|
|
|
2381
2381
|
}, null, 8, ["sponsorship"]);
|
|
2382
2382
|
};
|
|
2383
2383
|
}
|
|
2384
|
-
}),
|
|
2384
|
+
}), Jn = /* @__PURE__ */ k({
|
|
2385
2385
|
__name: "VoSponsorshipsTimeline",
|
|
2386
2386
|
setup(u) {
|
|
2387
2387
|
return (t, s) => {
|
|
2388
|
-
const o =
|
|
2389
|
-
return c(),
|
|
2388
|
+
const o = Yn, a = Qn, n = Gn, l = Zn;
|
|
2389
|
+
return c(), _(Ko, {
|
|
2390
2390
|
class: "justify-start ms-n7",
|
|
2391
2391
|
"line-inset": "12",
|
|
2392
2392
|
side: "end",
|
|
@@ -2403,7 +2403,7 @@ const qe = G("settings", () => {
|
|
|
2403
2403
|
});
|
|
2404
2404
|
};
|
|
2405
2405
|
}
|
|
2406
|
-
}),
|
|
2406
|
+
}), Xn = { class: "px-3 pb-5 d-flex flex-column h-100" }, Kn = { class: "font-weight-black" }, es = { class: "text-caption text-medium-emphasis" }, ts = /* @__PURE__ */ k({
|
|
2407
2407
|
__name: "VoSponsorshipsDialog",
|
|
2408
2408
|
props: {
|
|
2409
2409
|
modelValue: { type: Boolean },
|
|
@@ -2411,30 +2411,30 @@ const qe = G("settings", () => {
|
|
|
2411
2411
|
},
|
|
2412
2412
|
emits: ["update:modelValue"],
|
|
2413
2413
|
setup(u) {
|
|
2414
|
-
const t = ce(u, "modelValue"), s =
|
|
2415
|
-
return
|
|
2416
|
-
s.value.one === "sponsorships" && (o.isOpen = !0, await
|
|
2414
|
+
const t = ce(u, "modelValue"), s = fe(), o = z();
|
|
2415
|
+
return P(s, async () => {
|
|
2416
|
+
s.value.one === "sponsorships" && (o.isOpen = !0, await ye(), t.value = !0);
|
|
2417
2417
|
}, { immediate: !0 }), (a, n) => {
|
|
2418
|
-
const l =
|
|
2419
|
-
return c(),
|
|
2418
|
+
const l = ve, p = Jn, m = Ce;
|
|
2419
|
+
return c(), _(m, {
|
|
2420
2420
|
modelValue: t.value,
|
|
2421
2421
|
"onUpdate:modelValue": n[0] || (n[0] = (v) => t.value = v),
|
|
2422
|
-
"prepend-icon": `svg:${e(
|
|
2422
|
+
"prepend-icon": `svg:${e(bo)}`,
|
|
2423
2423
|
title: "Sponsorships"
|
|
2424
2424
|
}, {
|
|
2425
2425
|
default: r(() => [
|
|
2426
|
-
i(
|
|
2426
|
+
i(we, null, {
|
|
2427
2427
|
default: r(() => [
|
|
2428
|
-
i(
|
|
2428
|
+
i($e, { scrollable: "" }, {
|
|
2429
2429
|
default: r(() => [
|
|
2430
|
-
V("div",
|
|
2430
|
+
V("div", Xn, [
|
|
2431
2431
|
i(ae, { class: "flex-0-0 mb-16 mb-sm-4" }, {
|
|
2432
2432
|
default: r(() => [
|
|
2433
2433
|
i(l, {
|
|
2434
2434
|
text: "Support Vuetify through GitHub Sponsors, Discord, or Patreon to unlock exclusive benefits and content.",
|
|
2435
2435
|
title: "Support Vuetify"
|
|
2436
2436
|
}),
|
|
2437
|
-
i(
|
|
2437
|
+
i(p)
|
|
2438
2438
|
]),
|
|
2439
2439
|
_: 1
|
|
2440
2440
|
}),
|
|
@@ -2451,10 +2451,10 @@ const qe = G("settings", () => {
|
|
|
2451
2451
|
]),
|
|
2452
2452
|
title: r(() => [
|
|
2453
2453
|
n[1] || (n[1] = B(" One Status: ")),
|
|
2454
|
-
V("span",
|
|
2454
|
+
V("span", Kn, S(e(o).isSubscriber ? "Active" : "Inactive"), 1)
|
|
2455
2455
|
]),
|
|
2456
2456
|
text: r(() => [
|
|
2457
|
-
V("div",
|
|
2457
|
+
V("div", es, S(e(o).isSubscriber ? "You are currently receiving benefits of Vuetify One." : "Login to activate Vuetify One benefits"), 1)
|
|
2458
2458
|
]),
|
|
2459
2459
|
_: 1
|
|
2460
2460
|
})
|
|
@@ -2470,16 +2470,16 @@ const qe = G("settings", () => {
|
|
|
2470
2470
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2471
2471
|
};
|
|
2472
2472
|
}
|
|
2473
|
-
}),
|
|
2473
|
+
}), os = /* @__PURE__ */ k({
|
|
2474
2474
|
__name: "VoSponsorshipsListItem",
|
|
2475
2475
|
setup(u) {
|
|
2476
|
-
const t =
|
|
2476
|
+
const t = D(!1);
|
|
2477
2477
|
return (s, o) => {
|
|
2478
|
-
const a =
|
|
2479
|
-
return c(),
|
|
2478
|
+
const a = ts, n = ee;
|
|
2479
|
+
return c(), _(n, {
|
|
2480
2480
|
active: e(t),
|
|
2481
2481
|
link: "",
|
|
2482
|
-
"prepend-icon": `svg:${e(
|
|
2482
|
+
"prepend-icon": `svg:${e(Vo)}`,
|
|
2483
2483
|
title: "Sponsorships"
|
|
2484
2484
|
}, {
|
|
2485
2485
|
default: r(() => [
|
|
@@ -2492,8 +2492,8 @@ const qe = G("settings", () => {
|
|
|
2492
2492
|
}, 8, ["active", "prepend-icon"]);
|
|
2493
2493
|
};
|
|
2494
2494
|
}
|
|
2495
|
-
}),
|
|
2496
|
-
const u =
|
|
2495
|
+
}), ns = G("downloads", () => {
|
|
2496
|
+
const u = K(), t = T([]), s = D(!1);
|
|
2497
2497
|
async function o() {
|
|
2498
2498
|
if (t.value.length) return t.value;
|
|
2499
2499
|
s.value = !0;
|
|
@@ -2511,10 +2511,10 @@ const qe = G("settings", () => {
|
|
|
2511
2511
|
isLoading: s,
|
|
2512
2512
|
index: o
|
|
2513
2513
|
};
|
|
2514
|
-
}),
|
|
2514
|
+
}), ss = /* @__PURE__ */ k({
|
|
2515
2515
|
__name: "VoDownloadsTable",
|
|
2516
2516
|
setup(u) {
|
|
2517
|
-
const t = Te(), s =
|
|
2517
|
+
const t = Te(), s = ns(), o = [
|
|
2518
2518
|
{
|
|
2519
2519
|
title: "Order ID",
|
|
2520
2520
|
value: "order_name"
|
|
@@ -2537,10 +2537,10 @@ const qe = G("settings", () => {
|
|
|
2537
2537
|
return Ne(async () => {
|
|
2538
2538
|
await s.index();
|
|
2539
2539
|
}), (a, n) => {
|
|
2540
|
-
const l =
|
|
2541
|
-
return c(),
|
|
2540
|
+
const l = ve;
|
|
2541
|
+
return c(), _(De, null, {
|
|
2542
2542
|
default: r(() => [
|
|
2543
|
-
i(
|
|
2543
|
+
i(_e, { cols: "12" }, {
|
|
2544
2544
|
default: r(() => [
|
|
2545
2545
|
i(l, {
|
|
2546
2546
|
text: "View and download your store purchases.",
|
|
@@ -2552,30 +2552,30 @@ const qe = G("settings", () => {
|
|
|
2552
2552
|
rounded: "lg"
|
|
2553
2553
|
}, {
|
|
2554
2554
|
default: r(() => [
|
|
2555
|
-
i(
|
|
2555
|
+
i(wt, {
|
|
2556
2556
|
"fixed-header": "",
|
|
2557
2557
|
headers: o,
|
|
2558
2558
|
height: "640",
|
|
2559
2559
|
items: e(s).all,
|
|
2560
2560
|
loading: e(s).isLoading
|
|
2561
2561
|
}, {
|
|
2562
|
-
"item.order_name": r(({ item:
|
|
2563
|
-
B(" #" + S(
|
|
2562
|
+
"item.order_name": r(({ item: p }) => [
|
|
2563
|
+
B(" #" + S(p.order_name), 1)
|
|
2564
2564
|
]),
|
|
2565
|
-
"item.created_at": r(({ item:
|
|
2566
|
-
B(S(e(t).format(
|
|
2565
|
+
"item.created_at": r(({ item: p }) => [
|
|
2566
|
+
B(S(e(t).format(p.created_at, "shortDate")), 1)
|
|
2567
2567
|
]),
|
|
2568
|
-
"item.download_items": r(({ item:
|
|
2569
|
-
(c(!0), L(N, null, re(
|
|
2568
|
+
"item.download_items": r(({ item: p }) => [
|
|
2569
|
+
(c(!0), L(N, null, re(p.download_items, (m, v) => (c(), L("div", {
|
|
2570
2570
|
key: v,
|
|
2571
2571
|
class: "text-truncate"
|
|
2572
|
-
}, S(
|
|
2572
|
+
}, S(m.name), 1))), 128))
|
|
2573
2573
|
]),
|
|
2574
|
-
"item.download_url": r(({ item:
|
|
2575
|
-
i(
|
|
2574
|
+
"item.download_url": r(({ item: p }) => [
|
|
2575
|
+
i(j, {
|
|
2576
2576
|
color: "medium-emphasis",
|
|
2577
|
-
href:
|
|
2578
|
-
icon: `svg:${e(
|
|
2577
|
+
href: p.download_url,
|
|
2578
|
+
icon: `svg:${e(ko)}`,
|
|
2579
2579
|
size: "small",
|
|
2580
2580
|
target: "_blank",
|
|
2581
2581
|
variant: "text"
|
|
@@ -2594,13 +2594,13 @@ const qe = G("settings", () => {
|
|
|
2594
2594
|
});
|
|
2595
2595
|
};
|
|
2596
2596
|
}
|
|
2597
|
-
}),
|
|
2597
|
+
}), as = { class: "px-3" }, is = /* @__PURE__ */ k({
|
|
2598
2598
|
__name: "VoDownloadsNavItem",
|
|
2599
2599
|
setup(u) {
|
|
2600
|
-
const t =
|
|
2600
|
+
const t = D(!1);
|
|
2601
2601
|
return (s, o) => {
|
|
2602
|
-
const a =
|
|
2603
|
-
return c(),
|
|
2602
|
+
const a = ss, n = Ce, l = ee;
|
|
2603
|
+
return c(), _(l, {
|
|
2604
2604
|
active: e(t),
|
|
2605
2605
|
link: "",
|
|
2606
2606
|
"prepend-icon": `svg:${e(dt)}`,
|
|
@@ -2609,16 +2609,16 @@ const qe = G("settings", () => {
|
|
|
2609
2609
|
default: r(() => [
|
|
2610
2610
|
i(n, {
|
|
2611
2611
|
modelValue: e(t),
|
|
2612
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
2612
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => te(t) ? t.value = p : null),
|
|
2613
2613
|
"prepend-icon": `svg:${e(dt)}`,
|
|
2614
2614
|
title: "Downloads"
|
|
2615
2615
|
}, {
|
|
2616
2616
|
default: r(() => [
|
|
2617
|
-
i(
|
|
2617
|
+
i(we, null, {
|
|
2618
2618
|
default: r(() => [
|
|
2619
|
-
i(
|
|
2619
|
+
i($e, { scrollable: "" }, {
|
|
2620
2620
|
default: r(() => [
|
|
2621
|
-
V("div",
|
|
2621
|
+
V("div", as, [
|
|
2622
2622
|
i(ae, null, {
|
|
2623
2623
|
default: r(() => [
|
|
2624
2624
|
i(a)
|
|
@@ -2640,7 +2640,7 @@ const qe = G("settings", () => {
|
|
|
2640
2640
|
}, 8, ["active", "prepend-icon"]);
|
|
2641
2641
|
};
|
|
2642
2642
|
}
|
|
2643
|
-
}),
|
|
2643
|
+
}), rs = { class: "px-3" }, ls = { class: "d-flex align-center" }, us = { class: "d-flex align-center" }, cs = /* @__PURE__ */ k({
|
|
2644
2644
|
__name: "VoTeamDialog",
|
|
2645
2645
|
props: {
|
|
2646
2646
|
modelValue: { type: Boolean },
|
|
@@ -2648,7 +2648,7 @@ const qe = G("settings", () => {
|
|
|
2648
2648
|
},
|
|
2649
2649
|
emits: ["update:modelValue"],
|
|
2650
2650
|
setup(u) {
|
|
2651
|
-
const t = z(), s = xe(), o =
|
|
2651
|
+
const t = z(), s = xe(), o = K(), a = w(() => s.team), n = fe(), l = D(!1), p = D(!1), m = [
|
|
2652
2652
|
{
|
|
2653
2653
|
title: "Name",
|
|
2654
2654
|
key: "name"
|
|
@@ -2659,43 +2659,43 @@ const qe = G("settings", () => {
|
|
|
2659
2659
|
align: "end",
|
|
2660
2660
|
sortable: !1
|
|
2661
2661
|
}
|
|
2662
|
-
], v =
|
|
2663
|
-
var
|
|
2664
|
-
return `https://one.vuetifyjs.com/?invite=${(
|
|
2665
|
-
}),
|
|
2662
|
+
], v = w(() => {
|
|
2663
|
+
var b;
|
|
2664
|
+
return `https://one.vuetifyjs.com/?invite=${(b = s.team) == null ? void 0 : b.inviteCode}`;
|
|
2665
|
+
}), g = ce(u, "modelValue");
|
|
2666
2666
|
function f() {
|
|
2667
2667
|
l.value = !0, navigator.clipboard.writeText(v.value), setTimeout(() => {
|
|
2668
2668
|
l.value = !1;
|
|
2669
2669
|
}, 2e3);
|
|
2670
2670
|
}
|
|
2671
|
-
async function
|
|
2672
|
-
|
|
2673
|
-
const
|
|
2674
|
-
s.team =
|
|
2671
|
+
async function $() {
|
|
2672
|
+
p.value = !0;
|
|
2673
|
+
const b = await o.post("/one/team/regen");
|
|
2674
|
+
s.team = b.team;
|
|
2675
2675
|
}
|
|
2676
|
-
return
|
|
2677
|
-
!t.sessionId || n.value.one === "subscribe" || n.value.team && (t.isOpen = !0, await
|
|
2678
|
-
}, { immediate: !0 }), (
|
|
2679
|
-
const
|
|
2680
|
-
return c(),
|
|
2681
|
-
modelValue:
|
|
2682
|
-
"onUpdate:modelValue":
|
|
2683
|
-
"prepend-icon": `svg:${e(
|
|
2676
|
+
return P(n, async () => {
|
|
2677
|
+
!t.sessionId || n.value.one === "subscribe" || n.value.team && (t.isOpen = !0, await ye(), g.value = !0);
|
|
2678
|
+
}, { immediate: !0 }), (b, h) => {
|
|
2679
|
+
const d = ve, y = Ce;
|
|
2680
|
+
return c(), _(y, {
|
|
2681
|
+
modelValue: g.value,
|
|
2682
|
+
"onUpdate:modelValue": h[1] || (h[1] = (A) => g.value = A),
|
|
2683
|
+
"prepend-icon": `svg:${e(wo)}`,
|
|
2684
2684
|
title: "Team"
|
|
2685
2685
|
}, {
|
|
2686
2686
|
default: r(() => [
|
|
2687
|
-
i(
|
|
2687
|
+
i(we, null, {
|
|
2688
2688
|
default: r(() => [
|
|
2689
|
-
i(
|
|
2689
|
+
i($e, { scrollable: "" }, {
|
|
2690
2690
|
default: r(() => [
|
|
2691
|
-
V("div",
|
|
2691
|
+
V("div", rs, [
|
|
2692
2692
|
i(ae, null, {
|
|
2693
2693
|
default: r(() => [
|
|
2694
|
-
i(
|
|
2694
|
+
i(d, {
|
|
2695
2695
|
text: "Share access to Vuetify One with up to 25 team members.",
|
|
2696
2696
|
title: "Manage your team"
|
|
2697
2697
|
}),
|
|
2698
|
-
e(s).isTeamOwner ? (c(),
|
|
2698
|
+
e(s).isTeamOwner ? (c(), _(q, {
|
|
2699
2699
|
key: 0,
|
|
2700
2700
|
border: "",
|
|
2701
2701
|
class: "mb-4",
|
|
@@ -2705,27 +2705,27 @@ const qe = G("settings", () => {
|
|
|
2705
2705
|
rounded: "lg"
|
|
2706
2706
|
}, {
|
|
2707
2707
|
default: r(() => {
|
|
2708
|
-
var A,
|
|
2708
|
+
var A, U;
|
|
2709
2709
|
return [
|
|
2710
|
-
i(
|
|
2710
|
+
i(Ye, {
|
|
2711
2711
|
class: "bg-surface",
|
|
2712
|
-
subtitle: `Team - ${(
|
|
2712
|
+
subtitle: `Team - ${(U = (A = e(a)) == null ? void 0 : A.members) == null ? void 0 : U.length} member(s)`,
|
|
2713
2713
|
title: "Members"
|
|
2714
2714
|
}, W({ _: 2 }, [
|
|
2715
2715
|
e(s).isTeamOwner ? {
|
|
2716
2716
|
name: "append",
|
|
2717
2717
|
fn: r(() => [
|
|
2718
|
-
i(
|
|
2718
|
+
i(j, {
|
|
2719
2719
|
border: "",
|
|
2720
2720
|
class: "text-none",
|
|
2721
2721
|
color: "primary",
|
|
2722
|
-
"prepend-icon": `svg:${e(
|
|
2722
|
+
"prepend-icon": `svg:${e($o)}`,
|
|
2723
2723
|
rounded: "lg",
|
|
2724
2724
|
variant: "flat"
|
|
2725
2725
|
}, {
|
|
2726
2726
|
default: r(() => [
|
|
2727
|
-
|
|
2728
|
-
i(
|
|
2727
|
+
h[2] || (h[2] = B(" Add member ")),
|
|
2728
|
+
i(xt, {
|
|
2729
2729
|
activator: "parent",
|
|
2730
2730
|
"close-on-content-click": !1,
|
|
2731
2731
|
location: "bottom end",
|
|
@@ -2736,28 +2736,28 @@ const qe = G("settings", () => {
|
|
|
2736
2736
|
default: r(() => [
|
|
2737
2737
|
i(q, { color: "surface-light" }, {
|
|
2738
2738
|
default: r(() => [
|
|
2739
|
-
i(
|
|
2739
|
+
i(Ye, {
|
|
2740
2740
|
class: "bg-surface",
|
|
2741
|
-
"prepend-icon": `svg:${e(
|
|
2741
|
+
"prepend-icon": `svg:${e(xo)}`,
|
|
2742
2742
|
subtitle: "Provide this link to invite your team members",
|
|
2743
2743
|
title: "Member invite link"
|
|
2744
2744
|
}, {
|
|
2745
2745
|
append: r(() => [
|
|
2746
|
-
i(
|
|
2746
|
+
i(j, {
|
|
2747
2747
|
class: "text-none",
|
|
2748
|
-
color: e(
|
|
2749
|
-
disabled: e(
|
|
2748
|
+
color: e(p) ? void 0 : "error",
|
|
2749
|
+
disabled: e(p),
|
|
2750
2750
|
flat: "",
|
|
2751
2751
|
slim: "",
|
|
2752
2752
|
text: "Reset",
|
|
2753
|
-
onClick:
|
|
2753
|
+
onClick: $
|
|
2754
2754
|
}, null, 8, ["color", "disabled"])
|
|
2755
2755
|
]),
|
|
2756
2756
|
_: 1
|
|
2757
2757
|
}, 8, ["prepend-icon"]),
|
|
2758
2758
|
i(ae, { class: "pt-4" }, {
|
|
2759
2759
|
default: r(() => [
|
|
2760
|
-
i(
|
|
2760
|
+
i(en, {
|
|
2761
2761
|
flat: "",
|
|
2762
2762
|
"hide-details": "",
|
|
2763
2763
|
label: "Invite link",
|
|
@@ -2766,12 +2766,12 @@ const qe = G("settings", () => {
|
|
|
2766
2766
|
variant: "solo"
|
|
2767
2767
|
}, {
|
|
2768
2768
|
"append-inner": r(() => [
|
|
2769
|
-
|
|
2770
|
-
icon: `svg:${e(l) ? e(Ae) : e(
|
|
2769
|
+
be(i(O, {
|
|
2770
|
+
icon: `svg:${e(l) ? e(Ae) : e(Co)}`,
|
|
2771
2771
|
size: "small",
|
|
2772
2772
|
onClick: f
|
|
2773
2773
|
}, null, 8, ["icon"]), [
|
|
2774
|
-
[
|
|
2774
|
+
[tn, "Copy Team link"]
|
|
2775
2775
|
])
|
|
2776
2776
|
]),
|
|
2777
2777
|
_: 1
|
|
@@ -2802,13 +2802,13 @@ const qe = G("settings", () => {
|
|
|
2802
2802
|
default: r(() => {
|
|
2803
2803
|
var F, Q, Z;
|
|
2804
2804
|
return [
|
|
2805
|
-
i(
|
|
2806
|
-
headers:
|
|
2805
|
+
i(Jo, {
|
|
2806
|
+
headers: m,
|
|
2807
2807
|
"hide-default-footer": ((Q = (F = e(a)) == null ? void 0 : F.members) == null ? void 0 : Q.length) < 10,
|
|
2808
2808
|
items: (Z = e(a)) == null ? void 0 : Z.members
|
|
2809
2809
|
}, {
|
|
2810
2810
|
"item.name": r(({ item: Y }) => [
|
|
2811
|
-
V("div",
|
|
2811
|
+
V("div", ls, [
|
|
2812
2812
|
i(oe, {
|
|
2813
2813
|
image: Y.picture,
|
|
2814
2814
|
size: "x-small",
|
|
@@ -2820,7 +2820,7 @@ const qe = G("settings", () => {
|
|
|
2820
2820
|
"item.actions": r(({ item: Y }) => {
|
|
2821
2821
|
var ue, pe;
|
|
2822
2822
|
return [
|
|
2823
|
-
((pe = (ue = e(a)) == null ? void 0 : ue.owner) == null ? void 0 : pe.id) === Y.id ? (c(),
|
|
2823
|
+
((pe = (ue = e(a)) == null ? void 0 : ue.owner) == null ? void 0 : pe.id) === Y.id ? (c(), _(j, {
|
|
2824
2824
|
key: 0,
|
|
2825
2825
|
class: "me-n3",
|
|
2826
2826
|
color: "primary",
|
|
@@ -2830,16 +2830,16 @@ const qe = G("settings", () => {
|
|
|
2830
2830
|
slim: "",
|
|
2831
2831
|
text: "Team owner",
|
|
2832
2832
|
variant: "tonal"
|
|
2833
|
-
}, null, 8, ["prepend-icon"])) : (c(),
|
|
2833
|
+
}, null, 8, ["prepend-icon"])) : (c(), _(j, {
|
|
2834
2834
|
key: 1,
|
|
2835
2835
|
class: "me-n3",
|
|
2836
2836
|
color: "medium-emphasis",
|
|
2837
2837
|
density: "comfortable",
|
|
2838
|
-
"prepend-icon": `svg:${e(
|
|
2838
|
+
"prepend-icon": `svg:${e(So)}`,
|
|
2839
2839
|
slim: "",
|
|
2840
2840
|
text: "Revoke",
|
|
2841
2841
|
variant: "text",
|
|
2842
|
-
onClick: (
|
|
2842
|
+
onClick: (he) => e(s).removeFromTeam(Y.id)
|
|
2843
2843
|
}, null, 8, ["prepend-icon", "onClick"]))
|
|
2844
2844
|
];
|
|
2845
2845
|
}),
|
|
@@ -2855,7 +2855,7 @@ const qe = G("settings", () => {
|
|
|
2855
2855
|
];
|
|
2856
2856
|
}),
|
|
2857
2857
|
_: 1
|
|
2858
|
-
})) : (c(),
|
|
2858
|
+
})) : (c(), _(q, {
|
|
2859
2859
|
key: 1,
|
|
2860
2860
|
border: "",
|
|
2861
2861
|
color: "surface-light",
|
|
@@ -2864,14 +2864,14 @@ const qe = G("settings", () => {
|
|
|
2864
2864
|
rounded: "lg"
|
|
2865
2865
|
}, {
|
|
2866
2866
|
default: r(() => [
|
|
2867
|
-
i(
|
|
2867
|
+
i(Ye, {
|
|
2868
2868
|
"prepend-icon": `svg:${e(pt)}`,
|
|
2869
2869
|
subtitle: "You are currently a member of a team with an All-access Pass.",
|
|
2870
2870
|
title: "My Team access"
|
|
2871
2871
|
}, {
|
|
2872
2872
|
title: r(() => [
|
|
2873
|
-
V("div",
|
|
2874
|
-
|
|
2873
|
+
V("div", us, [
|
|
2874
|
+
h[3] || (h[3] = B(" My Team Access ")),
|
|
2875
2875
|
i(ie, {
|
|
2876
2876
|
border: "thin opacity-25 success",
|
|
2877
2877
|
class: "ms-2",
|
|
@@ -2883,12 +2883,12 @@ const qe = G("settings", () => {
|
|
|
2883
2883
|
])
|
|
2884
2884
|
]),
|
|
2885
2885
|
append: r(() => [
|
|
2886
|
-
i(
|
|
2887
|
-
"prepend-icon": `svg:${e(
|
|
2886
|
+
i(j, {
|
|
2887
|
+
"prepend-icon": `svg:${e(Lo)}`,
|
|
2888
2888
|
rounded: "lg",
|
|
2889
2889
|
text: "Leave team",
|
|
2890
2890
|
width: "145",
|
|
2891
|
-
onClick:
|
|
2891
|
+
onClick: h[0] || (h[0] = (A) => e(s).leaveTeam())
|
|
2892
2892
|
}, null, 8, ["prepend-icon"])
|
|
2893
2893
|
]),
|
|
2894
2894
|
_: 1
|
|
@@ -2911,16 +2911,16 @@ const qe = G("settings", () => {
|
|
|
2911
2911
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2912
2912
|
};
|
|
2913
2913
|
}
|
|
2914
|
-
}),
|
|
2914
|
+
}), ds = /* @__PURE__ */ k({
|
|
2915
2915
|
__name: "VoTeamListItem",
|
|
2916
2916
|
setup(u) {
|
|
2917
|
-
const t =
|
|
2917
|
+
const t = D(!1);
|
|
2918
2918
|
return (s, o) => {
|
|
2919
|
-
const a =
|
|
2920
|
-
return c(),
|
|
2919
|
+
const a = cs, n = ee;
|
|
2920
|
+
return c(), _(n, {
|
|
2921
2921
|
active: e(t),
|
|
2922
2922
|
link: "",
|
|
2923
|
-
"prepend-icon": `svg:${e(
|
|
2923
|
+
"prepend-icon": `svg:${e(Io)}`,
|
|
2924
2924
|
title: "My Team"
|
|
2925
2925
|
}, {
|
|
2926
2926
|
default: r(() => [
|
|
@@ -2933,13 +2933,13 @@ const qe = G("settings", () => {
|
|
|
2933
2933
|
}, 8, ["active", "prepend-icon"]);
|
|
2934
2934
|
};
|
|
2935
2935
|
}
|
|
2936
|
-
}),
|
|
2936
|
+
}), ps = /* @__PURE__ */ k({
|
|
2937
2937
|
__name: "VoStudioNavItem",
|
|
2938
2938
|
setup(u) {
|
|
2939
|
-
const t =
|
|
2939
|
+
const t = D(!1);
|
|
2940
2940
|
return (s, o) => {
|
|
2941
|
-
const a =
|
|
2942
|
-
return c(),
|
|
2941
|
+
const a = ee;
|
|
2942
|
+
return c(), _(a, {
|
|
2943
2943
|
active: e(t),
|
|
2944
2944
|
href: "https://studio.vuetifyjs.com/",
|
|
2945
2945
|
link: "",
|
|
@@ -2965,39 +2965,39 @@ const qe = G("settings", () => {
|
|
|
2965
2965
|
};
|
|
2966
2966
|
}
|
|
2967
2967
|
}), it = G("site", () => {
|
|
2968
|
-
const u =
|
|
2968
|
+
const u = T([]), t = T();
|
|
2969
2969
|
return {
|
|
2970
2970
|
id: u,
|
|
2971
2971
|
url: t
|
|
2972
2972
|
};
|
|
2973
|
-
}),
|
|
2973
|
+
}), ms = {
|
|
2974
2974
|
key: 0,
|
|
2975
2975
|
class: "pt-16"
|
|
2976
|
-
},
|
|
2976
|
+
}, fs = {
|
|
2977
2977
|
key: 1,
|
|
2978
2978
|
class: "pa-5"
|
|
2979
|
-
},
|
|
2979
|
+
}, vs = { class: "text-subtitle-1 font-weight-bold" }, hs = { class: "text-caption font-weight-bold text-medium-emphasis" }, gs = { class: "text-disabled text-caption mt-2 mb-3" }, _s = /* @__PURE__ */ k({
|
|
2980
2980
|
__name: "VoNotificationsBannerList",
|
|
2981
2981
|
props: {
|
|
2982
2982
|
items: {}
|
|
2983
2983
|
},
|
|
2984
2984
|
setup(u) {
|
|
2985
|
-
const t = Te(), s =
|
|
2986
|
-
function n(
|
|
2987
|
-
return o.notifications.last.banner.includes(
|
|
2985
|
+
const t = Te(), s = me(), o = R(), a = it();
|
|
2986
|
+
function n(p) {
|
|
2987
|
+
return o.notifications.last.banner.includes(p);
|
|
2988
2988
|
}
|
|
2989
|
-
function l(
|
|
2990
|
-
n(
|
|
2989
|
+
function l(p) {
|
|
2990
|
+
n(p.slug) ? o.notifications.last.banner = o.notifications.last.banner.filter((m) => m !== p.slug) : o.notifications.last.banner.push(p.slug);
|
|
2991
2991
|
}
|
|
2992
|
-
return (
|
|
2992
|
+
return (p, m) => (c(), _(de, {
|
|
2993
2993
|
class: "py-0",
|
|
2994
2994
|
height: "100%",
|
|
2995
2995
|
lines: "three"
|
|
2996
2996
|
}, {
|
|
2997
2997
|
default: r(() => [
|
|
2998
|
-
|
|
2999
|
-
(c(!0), L(N, null, re(
|
|
3000
|
-
var
|
|
2998
|
+
p.items.length ? (c(), L("div", fs, [
|
|
2999
|
+
(c(!0), L(N, null, re(p.items, (v) => {
|
|
3000
|
+
var g;
|
|
3001
3001
|
return c(), L("div", {
|
|
3002
3002
|
key: v.slug,
|
|
3003
3003
|
class: "mb-4"
|
|
@@ -3005,7 +3005,7 @@ const qe = G("settings", () => {
|
|
|
3005
3005
|
i(q, {
|
|
3006
3006
|
color: v.metadata.color,
|
|
3007
3007
|
flat: "",
|
|
3008
|
-
image: (
|
|
3008
|
+
image: (g = v.metadata.images.bg) == null ? void 0 : g.url,
|
|
3009
3009
|
rounded: "b-0",
|
|
3010
3010
|
title: v.title
|
|
3011
3011
|
}, {
|
|
@@ -3022,31 +3022,31 @@ const qe = G("settings", () => {
|
|
|
3022
3022
|
]),
|
|
3023
3023
|
_: 2
|
|
3024
3024
|
}, 1032, ["color", "image", "title"]),
|
|
3025
|
-
i(
|
|
3026
|
-
default: r(({ props: f, isHovering:
|
|
3025
|
+
i(Ee, null, {
|
|
3026
|
+
default: r(({ props: f, isHovering: $ }) => [
|
|
3027
3027
|
i(je, J({ ref_for: !0 }, f, {
|
|
3028
3028
|
border: "",
|
|
3029
3029
|
class: "px-8 pt-2 pb-4 position-relative",
|
|
3030
3030
|
rounded: "b"
|
|
3031
3031
|
}), {
|
|
3032
3032
|
default: r(() => [
|
|
3033
|
-
v.metadata.site.some((
|
|
3033
|
+
v.metadata.site.some((b) => e(a).id.includes(b)) ? (c(), _(se, {
|
|
3034
3034
|
key: 0,
|
|
3035
3035
|
location: "bottom",
|
|
3036
3036
|
text: n(v.slug) ? "Mark as unread" : "Mark as read"
|
|
3037
3037
|
}, {
|
|
3038
|
-
activator: r(({ props:
|
|
3039
|
-
i(
|
|
3038
|
+
activator: r(({ props: b }) => [
|
|
3039
|
+
i(Re, { "hide-on-leave": "" }, {
|
|
3040
3040
|
default: r(() => [
|
|
3041
|
-
|
|
3041
|
+
be(i(j, J({ ref_for: !0 }, b, {
|
|
3042
3042
|
class: "ms-auto float-right",
|
|
3043
|
-
icon: `svg:${n(v.slug) ? e(
|
|
3043
|
+
icon: `svg:${n(v.slug) ? e(bt) : e(yt)}`,
|
|
3044
3044
|
"mdi-email-variant": "",
|
|
3045
3045
|
size: "small",
|
|
3046
3046
|
variant: "text",
|
|
3047
|
-
onClick: (
|
|
3047
|
+
onClick: (h) => l(v)
|
|
3048
3048
|
}), null, 16, ["icon", "onClick"]), [
|
|
3049
|
-
[Fe,
|
|
3049
|
+
[Fe, $ || e(s).mobile.value]
|
|
3050
3050
|
])
|
|
3051
3051
|
]),
|
|
3052
3052
|
_: 2
|
|
@@ -3054,15 +3054,15 @@ const qe = G("settings", () => {
|
|
|
3054
3054
|
]),
|
|
3055
3055
|
_: 2
|
|
3056
3056
|
}, 1032, ["text"])) : C("", !0),
|
|
3057
|
-
V("div",
|
|
3058
|
-
V("div",
|
|
3059
|
-
V("div",
|
|
3057
|
+
V("div", vs, S(v.metadata.text), 1),
|
|
3058
|
+
V("div", hs, S(e(t).format(v.created_at, "fullDateWithWeekday")), 1),
|
|
3059
|
+
V("div", gs, S(v.metadata.subtext), 1),
|
|
3060
3060
|
i(ie, J({ ref_for: !0 }, {
|
|
3061
3061
|
href: v.metadata.link.startsWith("http") ? v.metadata.link : void 0,
|
|
3062
3062
|
target: v.metadata.link.startsWith("http") ? "_blank" : void 0,
|
|
3063
3063
|
to: v.metadata.link.startsWith("http") ? void 0 : v.metadata.link
|
|
3064
3064
|
}, {
|
|
3065
|
-
"append-icon": `svg:${e(
|
|
3065
|
+
"append-icon": `svg:${e(Pe)}`,
|
|
3066
3066
|
border: "",
|
|
3067
3067
|
label: "",
|
|
3068
3068
|
size: "small",
|
|
@@ -3082,7 +3082,7 @@ const qe = G("settings", () => {
|
|
|
3082
3082
|
}, 1024)
|
|
3083
3083
|
]);
|
|
3084
3084
|
}), 128))
|
|
3085
|
-
])) : (c(), L("div",
|
|
3085
|
+
])) : (c(), L("div", ms, [
|
|
3086
3086
|
i(at, {
|
|
3087
3087
|
icon: "$vuetify",
|
|
3088
3088
|
size: "256"
|
|
@@ -3090,7 +3090,7 @@ const qe = G("settings", () => {
|
|
|
3090
3090
|
media: r(() => [
|
|
3091
3091
|
i(O, { color: "medium-emphasis" })
|
|
3092
3092
|
]),
|
|
3093
|
-
title: r(() =>
|
|
3093
|
+
title: r(() => m[0] || (m[0] = [
|
|
3094
3094
|
V("div", { class: "text-medium-emphasis" }, " All caught up ", -1)
|
|
3095
3095
|
])),
|
|
3096
3096
|
_: 1
|
|
@@ -3100,59 +3100,59 @@ const qe = G("settings", () => {
|
|
|
3100
3100
|
_: 1
|
|
3101
3101
|
}));
|
|
3102
3102
|
}
|
|
3103
|
-
}),
|
|
3103
|
+
}), ys = { class: "ps-3 text-subtitle-2 pe-2" }, bs = { class: "text-truncate" }, Vs = { class: "text-caption font-weight-bold text-medium-emphasis" }, ks = { class: "text-disabled text-caption my-2" }, ws = /* @__PURE__ */ k({
|
|
3104
3104
|
__name: "VoNotificationsListItem",
|
|
3105
3105
|
props: {
|
|
3106
3106
|
demo: { type: Boolean },
|
|
3107
3107
|
notification: {}
|
|
3108
3108
|
},
|
|
3109
3109
|
setup(u) {
|
|
3110
|
-
const t = u, s = R(), o = Te(), a =
|
|
3111
|
-
const
|
|
3110
|
+
const t = u, s = R(), o = Te(), a = me(), n = w(() => {
|
|
3111
|
+
const m = t.notification.metadata ?? { action: "" };
|
|
3112
3112
|
return {
|
|
3113
|
-
href:
|
|
3114
|
-
target:
|
|
3115
|
-
to:
|
|
3113
|
+
href: m.action.startsWith("http") ? m.action : void 0,
|
|
3114
|
+
target: m.action.startsWith("http") ? "_blank" : void 0,
|
|
3115
|
+
to: m.action.startsWith("http") ? void 0 : m.action,
|
|
3116
3116
|
...t.notification.metadata.attributes,
|
|
3117
3117
|
onClick() {
|
|
3118
3118
|
t.demo || s.notifications.read.includes(t.notification.slug) || s.notifications.read.push(t.notification.slug);
|
|
3119
3119
|
}
|
|
3120
3120
|
};
|
|
3121
3121
|
});
|
|
3122
|
-
function l(
|
|
3123
|
-
return s.notifications.read.includes(
|
|
3122
|
+
function l(m) {
|
|
3123
|
+
return s.notifications.read.includes(m);
|
|
3124
3124
|
}
|
|
3125
|
-
function
|
|
3126
|
-
t.demo || (l(
|
|
3125
|
+
function p(m) {
|
|
3126
|
+
t.demo || (l(m.slug) ? s.notifications.read = s.notifications.read.filter((v) => v !== m.slug) : s.notifications.read.push(m.slug));
|
|
3127
3127
|
}
|
|
3128
|
-
return (
|
|
3129
|
-
const
|
|
3130
|
-
return c(),
|
|
3131
|
-
default: r(({ isHovering: f, props:
|
|
3132
|
-
i(
|
|
3128
|
+
return (m, v) => {
|
|
3129
|
+
const g = ee;
|
|
3130
|
+
return c(), _(Ee, null, {
|
|
3131
|
+
default: r(({ isHovering: f, props: $ }) => [
|
|
3132
|
+
i(g, J($, { class: "py-4 mb-0" }), {
|
|
3133
3133
|
prepend: r(() => [
|
|
3134
|
-
V("div",
|
|
3134
|
+
V("div", ys, S(m.notification.metadata.emoji), 1)
|
|
3135
3135
|
]),
|
|
3136
3136
|
append: r(() => [
|
|
3137
|
-
i(
|
|
3137
|
+
i(nn, {
|
|
3138
3138
|
class: "mt-n3",
|
|
3139
3139
|
width: "56"
|
|
3140
3140
|
}, {
|
|
3141
3141
|
default: r(() => [
|
|
3142
3142
|
i(se, {
|
|
3143
3143
|
location: "bottom",
|
|
3144
|
-
text: l(
|
|
3144
|
+
text: l(m.notification.slug) ? "Mark as unread" : "Mark as read"
|
|
3145
3145
|
}, {
|
|
3146
|
-
activator: r(({ props:
|
|
3147
|
-
i(
|
|
3146
|
+
activator: r(({ props: b }) => [
|
|
3147
|
+
i(Re, { "hide-on-leave": "" }, {
|
|
3148
3148
|
default: r(() => [
|
|
3149
|
-
|
|
3149
|
+
be(i(j, J(b, {
|
|
3150
3150
|
class: "ms-auto",
|
|
3151
|
-
icon: `svg:${l(
|
|
3151
|
+
icon: `svg:${l(m.notification.slug) ? e(bt) : e(yt)}`,
|
|
3152
3152
|
"mdi-email-variant": "",
|
|
3153
3153
|
size: "small",
|
|
3154
3154
|
variant: "text",
|
|
3155
|
-
onClick: v[0] || (v[0] = (
|
|
3155
|
+
onClick: v[0] || (v[0] = (h) => p(m.notification))
|
|
3156
3156
|
}), null, 16, ["icon"]), [
|
|
3157
3157
|
[Fe, f || e(a).mobile.value]
|
|
3158
3158
|
])
|
|
@@ -3167,21 +3167,21 @@ const qe = G("settings", () => {
|
|
|
3167
3167
|
}, 1024)
|
|
3168
3168
|
]),
|
|
3169
3169
|
default: r(() => [
|
|
3170
|
-
i(
|
|
3170
|
+
i(Vt, { class: "text-wrap text-h6 mb-1" }, {
|
|
3171
3171
|
default: r(() => [
|
|
3172
|
-
V("div",
|
|
3172
|
+
V("div", bs, S(m.notification.title), 1)
|
|
3173
3173
|
]),
|
|
3174
3174
|
_: 1
|
|
3175
3175
|
}),
|
|
3176
|
-
V("div",
|
|
3177
|
-
V("div",
|
|
3176
|
+
V("div", Vs, S(e(o).format(m.notification.created_at, "fullDateWithWeekday")), 1),
|
|
3177
|
+
V("div", ks, S(m.notification.metadata.text), 1),
|
|
3178
3178
|
i(ie, J({
|
|
3179
|
-
"append-icon": `svg:${e(
|
|
3179
|
+
"append-icon": `svg:${e(Pe)}`
|
|
3180
3180
|
}, e(n), {
|
|
3181
3181
|
border: "",
|
|
3182
3182
|
label: "",
|
|
3183
3183
|
size: "small",
|
|
3184
|
-
text:
|
|
3184
|
+
text: m.notification.metadata.action_text,
|
|
3185
3185
|
variant: "text"
|
|
3186
3186
|
}), {
|
|
3187
3187
|
append: r(() => [
|
|
@@ -3200,15 +3200,15 @@ const qe = G("settings", () => {
|
|
|
3200
3200
|
}), $s = {
|
|
3201
3201
|
key: 0,
|
|
3202
3202
|
class: "pt-16"
|
|
3203
|
-
},
|
|
3203
|
+
}, xs = /* @__PURE__ */ k({
|
|
3204
3204
|
__name: "VoNotificationsList",
|
|
3205
3205
|
props: {
|
|
3206
3206
|
items: {}
|
|
3207
3207
|
},
|
|
3208
3208
|
setup(u) {
|
|
3209
3209
|
return (t, s) => {
|
|
3210
|
-
const o =
|
|
3211
|
-
return c(),
|
|
3210
|
+
const o = ws;
|
|
3211
|
+
return c(), _(de, {
|
|
3212
3212
|
class: "py-0",
|
|
3213
3213
|
height: "100%",
|
|
3214
3214
|
lines: "three"
|
|
@@ -3217,7 +3217,7 @@ const qe = G("settings", () => {
|
|
|
3217
3217
|
t.items.length ? (c(!0), L(N, { key: 1 }, re(t.items, (a, n) => (c(), L(N, {
|
|
3218
3218
|
key: a.slug
|
|
3219
3219
|
}, [
|
|
3220
|
-
n !== 0 ? (c(),
|
|
3220
|
+
n !== 0 ? (c(), _(X, { key: 0 })) : C("", !0),
|
|
3221
3221
|
i(o, { notification: a }, null, 8, ["notification"])
|
|
3222
3222
|
], 64))), 128)) : (c(), L("div", $s, [
|
|
3223
3223
|
i(at, {
|
|
@@ -3238,64 +3238,64 @@ const qe = G("settings", () => {
|
|
|
3238
3238
|
});
|
|
3239
3239
|
};
|
|
3240
3240
|
}
|
|
3241
|
-
}),
|
|
3242
|
-
const u =
|
|
3241
|
+
}), Ge = G("banners", () => {
|
|
3242
|
+
const u = K(), t = it(), s = R(), o = T([]), a = T([]), n = T(), l = D(!1), p = w(() => {
|
|
3243
3243
|
if (n.value) return n.value;
|
|
3244
|
-
if (
|
|
3244
|
+
if (m.value) return m.value;
|
|
3245
3245
|
if (s.notifications.banners)
|
|
3246
3246
|
return o.value.find(({
|
|
3247
|
-
slug:
|
|
3247
|
+
slug: d,
|
|
3248
3248
|
metadata: {
|
|
3249
|
-
site:
|
|
3249
|
+
site: y,
|
|
3250
3250
|
active: A
|
|
3251
3251
|
}
|
|
3252
|
-
}) => !A || s.notifications.last.banner.includes(
|
|
3253
|
-
}),
|
|
3252
|
+
}) => !A || s.notifications.last.banner.includes(d) ? !1 : y.includes("dev") && !1 || y.includes("*") ? !0 : y.some((U) => t.id.includes(U)));
|
|
3253
|
+
}), m = w(() => o.value.find(({
|
|
3254
3254
|
metadata: {
|
|
3255
|
-
site:
|
|
3256
|
-
active:
|
|
3255
|
+
site: d,
|
|
3256
|
+
active: y
|
|
3257
3257
|
}
|
|
3258
|
-
}) =>
|
|
3258
|
+
}) => y ? d.includes("server") : !1));
|
|
3259
3259
|
async function v() {
|
|
3260
3260
|
try {
|
|
3261
3261
|
l.value = !0;
|
|
3262
|
-
const
|
|
3263
|
-
o.value =
|
|
3262
|
+
const d = await u.get("/one/banners");
|
|
3263
|
+
o.value = d.banners;
|
|
3264
3264
|
} catch {
|
|
3265
3265
|
} finally {
|
|
3266
3266
|
l.value = !1;
|
|
3267
3267
|
}
|
|
3268
3268
|
return o.value;
|
|
3269
3269
|
}
|
|
3270
|
-
async function
|
|
3270
|
+
async function g(d) {
|
|
3271
3271
|
try {
|
|
3272
3272
|
l.value = !0;
|
|
3273
|
-
const
|
|
3274
|
-
return n.value =
|
|
3273
|
+
const y = await u.get(`/one/admin/banners/${d}`);
|
|
3274
|
+
return n.value = y.banner, y.banner;
|
|
3275
3275
|
} catch {
|
|
3276
3276
|
} finally {
|
|
3277
3277
|
l.value = !1;
|
|
3278
3278
|
}
|
|
3279
3279
|
}
|
|
3280
|
-
async function f(
|
|
3280
|
+
async function f(d) {
|
|
3281
3281
|
try {
|
|
3282
3282
|
l.value = !0;
|
|
3283
|
-
const
|
|
3283
|
+
const y = await u.form(
|
|
3284
3284
|
"/one/admin/banners",
|
|
3285
|
-
|
|
3285
|
+
d
|
|
3286
3286
|
);
|
|
3287
|
-
return n.value =
|
|
3287
|
+
return n.value = y.banner, y.banner;
|
|
3288
3288
|
} catch {
|
|
3289
3289
|
} finally {
|
|
3290
3290
|
l.value = !1;
|
|
3291
3291
|
}
|
|
3292
3292
|
}
|
|
3293
|
-
async function
|
|
3293
|
+
async function $(d, y) {
|
|
3294
3294
|
try {
|
|
3295
3295
|
l.value = !0;
|
|
3296
3296
|
const A = await u.form(
|
|
3297
|
-
`/one/admin/banners/${
|
|
3298
|
-
|
|
3297
|
+
`/one/admin/banners/${d}`,
|
|
3298
|
+
y
|
|
3299
3299
|
);
|
|
3300
3300
|
return n.value = A.banner, A.banner;
|
|
3301
3301
|
} catch {
|
|
@@ -3303,13 +3303,13 @@ const qe = G("settings", () => {
|
|
|
3303
3303
|
l.value = !1;
|
|
3304
3304
|
}
|
|
3305
3305
|
}
|
|
3306
|
-
async function
|
|
3306
|
+
async function b() {
|
|
3307
3307
|
}
|
|
3308
|
-
async function
|
|
3308
|
+
async function h() {
|
|
3309
3309
|
try {
|
|
3310
3310
|
l.value = !0;
|
|
3311
|
-
const
|
|
3312
|
-
a.value =
|
|
3311
|
+
const d = await u.get("/one/admin/banners");
|
|
3312
|
+
a.value = d.banners;
|
|
3313
3313
|
} catch {
|
|
3314
3314
|
} finally {
|
|
3315
3315
|
l.value = !1;
|
|
@@ -3320,17 +3320,17 @@ const qe = G("settings", () => {
|
|
|
3320
3320
|
all: o,
|
|
3321
3321
|
aall: a,
|
|
3322
3322
|
isLoading: l,
|
|
3323
|
-
server:
|
|
3324
|
-
banner:
|
|
3323
|
+
server: m,
|
|
3324
|
+
banner: p,
|
|
3325
3325
|
record: n,
|
|
3326
|
-
admin:
|
|
3327
|
-
destroy:
|
|
3326
|
+
admin: h,
|
|
3327
|
+
destroy: b,
|
|
3328
3328
|
index: v,
|
|
3329
|
-
show:
|
|
3329
|
+
show: g,
|
|
3330
3330
|
store: f,
|
|
3331
|
-
update:
|
|
3331
|
+
update: $
|
|
3332
3332
|
};
|
|
3333
|
-
}),
|
|
3333
|
+
}), Cs = { class: "text-caption" }, Ss = { class: "text-caption" }, Ls = /* @__PURE__ */ k({
|
|
3334
3334
|
__name: "VoNotificationsDialog",
|
|
3335
3335
|
props: {
|
|
3336
3336
|
modelValue: { type: Boolean },
|
|
@@ -3338,33 +3338,33 @@ const qe = G("settings", () => {
|
|
|
3338
3338
|
},
|
|
3339
3339
|
emits: ["update:modelValue"],
|
|
3340
3340
|
setup(u) {
|
|
3341
|
-
const t =
|
|
3342
|
-
return
|
|
3341
|
+
const t = me(), s = fe(), o = Ge(), a = qe(), n = z(), l = R(), p = D(["read"]), m = ce(u, "modelValue");
|
|
3342
|
+
return P(s, async () => {
|
|
3343
3343
|
if (s.value.one !== "notifications") {
|
|
3344
|
-
|
|
3344
|
+
m.value && (m.value = !1);
|
|
3345
3345
|
return;
|
|
3346
3346
|
}
|
|
3347
|
-
n.isOpen = !0, await
|
|
3348
|
-
}, { immediate: !0 }), (v,
|
|
3349
|
-
const f =
|
|
3350
|
-
return c(),
|
|
3351
|
-
modelValue:
|
|
3352
|
-
"onUpdate:modelValue":
|
|
3353
|
-
"prepend-icon": `svg:${e(
|
|
3347
|
+
n.isOpen = !0, await ye(), m.value = !0;
|
|
3348
|
+
}, { immediate: !0 }), (v, g) => {
|
|
3349
|
+
const f = ee, $ = xs, b = _s, h = Ce;
|
|
3350
|
+
return c(), _(h, {
|
|
3351
|
+
modelValue: m.value,
|
|
3352
|
+
"onUpdate:modelValue": g[2] || (g[2] = (d) => m.value = d),
|
|
3353
|
+
"prepend-icon": `svg:${e(Ao)}`,
|
|
3354
3354
|
title: "Notifications"
|
|
3355
3355
|
}, {
|
|
3356
3356
|
default: r(() => [
|
|
3357
|
-
i(
|
|
3357
|
+
i(we, null, {
|
|
3358
3358
|
default: r(() => [
|
|
3359
|
-
i(
|
|
3359
|
+
i(sn, {
|
|
3360
3360
|
location: e(t).mobile.value ? "top" : "start",
|
|
3361
3361
|
permanent: "",
|
|
3362
3362
|
width: e(t).mobile.value ? 128 : 168
|
|
3363
3363
|
}, {
|
|
3364
3364
|
default: r(() => [
|
|
3365
3365
|
i(de, {
|
|
3366
|
-
selected: e(
|
|
3367
|
-
"onUpdate:selected":
|
|
3366
|
+
selected: e(p),
|
|
3367
|
+
"onUpdate:selected": g[0] || (g[0] = (d) => te(p) ? p.value = d : null),
|
|
3368
3368
|
class: "px-4 pt-4",
|
|
3369
3369
|
density: "compact",
|
|
3370
3370
|
mandatory: "",
|
|
@@ -3372,34 +3372,34 @@ const qe = G("settings", () => {
|
|
|
3372
3372
|
}, {
|
|
3373
3373
|
default: r(() => [
|
|
3374
3374
|
i(f, {
|
|
3375
|
-
"prepend-icon": `svg:${e(
|
|
3375
|
+
"prepend-icon": `svg:${e(To)}`,
|
|
3376
3376
|
title: "Unread",
|
|
3377
3377
|
value: "read"
|
|
3378
3378
|
}, W({ _: 2 }, [
|
|
3379
3379
|
e(a).unread.length > 0 ? {
|
|
3380
3380
|
name: "append",
|
|
3381
3381
|
fn: r(() => [
|
|
3382
|
-
V("span",
|
|
3382
|
+
V("span", Cs, S(e(a).unread.length), 1)
|
|
3383
3383
|
]),
|
|
3384
3384
|
key: "0"
|
|
3385
3385
|
} : void 0
|
|
3386
3386
|
]), 1032, ["prepend-icon"]),
|
|
3387
3387
|
i(f, {
|
|
3388
|
-
"prepend-icon": `svg:${e(
|
|
3388
|
+
"prepend-icon": `svg:${e(Do)}`,
|
|
3389
3389
|
title: "Read",
|
|
3390
3390
|
value: "unread"
|
|
3391
3391
|
}, W({ _: 2 }, [
|
|
3392
3392
|
e(a).read.length > 0 ? {
|
|
3393
3393
|
name: "append",
|
|
3394
3394
|
fn: r(() => [
|
|
3395
|
-
V("span",
|
|
3395
|
+
V("span", Ss, S(e(a).read.length), 1)
|
|
3396
3396
|
]),
|
|
3397
3397
|
key: "0"
|
|
3398
3398
|
} : void 0
|
|
3399
3399
|
]), 1032, ["prepend-icon"]),
|
|
3400
|
-
e(o).all.length > 0 && e(l).notifications.banners ? (c(),
|
|
3400
|
+
e(o).all.length > 0 && e(l).notifications.banners ? (c(), _(f, {
|
|
3401
3401
|
key: 0,
|
|
3402
|
-
"prepend-icon": `svg:${e(
|
|
3402
|
+
"prepend-icon": `svg:${e(Uo)}`,
|
|
3403
3403
|
title: "Banners",
|
|
3404
3404
|
value: "banners"
|
|
3405
3405
|
}, {
|
|
@@ -3417,16 +3417,16 @@ const qe = G("settings", () => {
|
|
|
3417
3417
|
]),
|
|
3418
3418
|
_: 1
|
|
3419
3419
|
}, 8, ["location", "width"]),
|
|
3420
|
-
i(
|
|
3420
|
+
i($e, { scrollable: "" }, {
|
|
3421
3421
|
default: r(() => [
|
|
3422
3422
|
i($t, {
|
|
3423
|
-
modelValue: e(
|
|
3424
|
-
"onUpdate:modelValue":
|
|
3423
|
+
modelValue: e(p),
|
|
3424
|
+
"onUpdate:modelValue": g[1] || (g[1] = (d) => te(p) ? p.value = d : null)
|
|
3425
3425
|
}, {
|
|
3426
3426
|
default: r(() => [
|
|
3427
3427
|
i(Le, { value: "read" }, {
|
|
3428
3428
|
default: r(() => [
|
|
3429
|
-
i(
|
|
3429
|
+
i($, {
|
|
3430
3430
|
items: e(a).unread
|
|
3431
3431
|
}, null, 8, ["items"])
|
|
3432
3432
|
]),
|
|
@@ -3434,7 +3434,7 @@ const qe = G("settings", () => {
|
|
|
3434
3434
|
}),
|
|
3435
3435
|
i(Le, { value: "unread" }, {
|
|
3436
3436
|
default: r(() => [
|
|
3437
|
-
i(
|
|
3437
|
+
i($, {
|
|
3438
3438
|
items: e(a).read
|
|
3439
3439
|
}, null, 8, ["items"])
|
|
3440
3440
|
]),
|
|
@@ -3442,7 +3442,7 @@ const qe = G("settings", () => {
|
|
|
3442
3442
|
}),
|
|
3443
3443
|
i(Le, { value: "banners" }, {
|
|
3444
3444
|
default: r(() => [
|
|
3445
|
-
i(
|
|
3445
|
+
i(b, {
|
|
3446
3446
|
items: e(o).all
|
|
3447
3447
|
}, null, 8, ["items"])
|
|
3448
3448
|
]),
|
|
@@ -3462,11 +3462,11 @@ const qe = G("settings", () => {
|
|
|
3462
3462
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
3463
3463
|
};
|
|
3464
3464
|
}
|
|
3465
|
-
}),
|
|
3465
|
+
}), Is = /* @__PURE__ */ k({
|
|
3466
3466
|
__name: "VoNotificationsBadge",
|
|
3467
3467
|
setup(u) {
|
|
3468
|
-
const t =
|
|
3469
|
-
return (o, a) => (c(),
|
|
3468
|
+
const t = qe(), s = R();
|
|
3469
|
+
return (o, a) => (c(), _(nt, {
|
|
3470
3470
|
color: "error",
|
|
3471
3471
|
content: e(t).unread.length,
|
|
3472
3472
|
"model-value": e(s).notifications.show && e(t).unread.length > 0
|
|
@@ -3477,25 +3477,25 @@ const qe = G("settings", () => {
|
|
|
3477
3477
|
_: 3
|
|
3478
3478
|
}, 8, ["content", "model-value"]));
|
|
3479
3479
|
}
|
|
3480
|
-
}),
|
|
3480
|
+
}), As = /* @__PURE__ */ k({
|
|
3481
3481
|
__name: "VoNotificationsNavItem",
|
|
3482
3482
|
setup(u) {
|
|
3483
|
-
const t =
|
|
3483
|
+
const t = Ge(), s = R(), o = qe(), a = D(!1);
|
|
3484
3484
|
return Ne(async () => {
|
|
3485
3485
|
o.index(), t.index();
|
|
3486
3486
|
}), (n, l) => {
|
|
3487
|
-
const
|
|
3488
|
-
return e(s).notifications.show ? (c(),
|
|
3487
|
+
const p = Is, m = Ls, v = ee;
|
|
3488
|
+
return e(s).notifications.show ? (c(), _(v, {
|
|
3489
3489
|
key: 0,
|
|
3490
3490
|
active: e(a),
|
|
3491
3491
|
link: "",
|
|
3492
|
-
"prepend-icon": `svg:${e(
|
|
3492
|
+
"prepend-icon": `svg:${e(Oo)}`,
|
|
3493
3493
|
title: "Notifications"
|
|
3494
3494
|
}, W({
|
|
3495
3495
|
default: r(() => [
|
|
3496
|
-
i(
|
|
3496
|
+
i(m, {
|
|
3497
3497
|
modelValue: e(a),
|
|
3498
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
3498
|
+
"onUpdate:modelValue": l[0] || (l[0] = (g) => te(a) ? a.value = g : null)
|
|
3499
3499
|
}, null, 8, ["modelValue"])
|
|
3500
3500
|
]),
|
|
3501
3501
|
_: 2
|
|
@@ -3503,7 +3503,7 @@ const qe = G("settings", () => {
|
|
|
3503
3503
|
e(o).unread.length ? {
|
|
3504
3504
|
name: "prepend",
|
|
3505
3505
|
fn: r(() => [
|
|
3506
|
-
i(
|
|
3506
|
+
i(p, null, {
|
|
3507
3507
|
default: r(() => [
|
|
3508
3508
|
i(O)
|
|
3509
3509
|
]),
|
|
@@ -3515,7 +3515,7 @@ const qe = G("settings", () => {
|
|
|
3515
3515
|
]), 1032, ["active", "prepend-icon"])) : C("", !0);
|
|
3516
3516
|
};
|
|
3517
3517
|
}
|
|
3518
|
-
}),
|
|
3518
|
+
}), Ts = /* @__PURE__ */ k({
|
|
3519
3519
|
__name: "VoDashboardNavItem",
|
|
3520
3520
|
setup(u) {
|
|
3521
3521
|
const t = z();
|
|
@@ -3525,42 +3525,42 @@ const qe = G("settings", () => {
|
|
|
3525
3525
|
}, 100);
|
|
3526
3526
|
}
|
|
3527
3527
|
return (o, a) => {
|
|
3528
|
-
const n =
|
|
3529
|
-
return c(),
|
|
3530
|
-
"prepend-icon": `svg:${e(
|
|
3528
|
+
const n = ee;
|
|
3529
|
+
return c(), _(n, {
|
|
3530
|
+
"prepend-icon": `svg:${e(Bo)}`,
|
|
3531
3531
|
title: "Dashboard",
|
|
3532
3532
|
to: "/user/dashboard",
|
|
3533
3533
|
onClick: s
|
|
3534
3534
|
}, null, 8, ["prepend-icon"]);
|
|
3535
3535
|
};
|
|
3536
3536
|
}
|
|
3537
|
-
}),
|
|
3537
|
+
}), Ds = /* @__PURE__ */ k({
|
|
3538
3538
|
__name: "VoUserList",
|
|
3539
3539
|
setup(u) {
|
|
3540
3540
|
const t = H(), s = z(), o = xe();
|
|
3541
3541
|
return (a, n) => {
|
|
3542
|
-
const l =
|
|
3543
|
-
return c(),
|
|
3542
|
+
const l = Ts, p = As, m = ps, v = ds, g = is, f = os, $ = qn, b = Cn, h = _n;
|
|
3543
|
+
return c(), _(de, {
|
|
3544
3544
|
density: "compact",
|
|
3545
3545
|
nav: "",
|
|
3546
3546
|
slim: ""
|
|
3547
3547
|
}, {
|
|
3548
3548
|
default: r(() => [
|
|
3549
|
-
e(t).user ? (c(),
|
|
3550
|
-
i(d),
|
|
3549
|
+
e(t).user ? (c(), _(l, { key: 0 })) : C("", !0),
|
|
3551
3550
|
i(p),
|
|
3552
|
-
|
|
3553
|
-
e(
|
|
3551
|
+
i(m),
|
|
3552
|
+
e(o).hasTeamAccess ? (c(), _(v, { key: 1 })) : C("", !0),
|
|
3553
|
+
e(s).shopify ? (c(), _(g, { key: 2 })) : C("", !0),
|
|
3554
3554
|
i(f),
|
|
3555
|
-
e(t).user ? (c(),
|
|
3556
|
-
i(
|
|
3557
|
-
e(t).user ? (c(),
|
|
3555
|
+
e(t).user ? (c(), _($, { key: 3 })) : C("", !0),
|
|
3556
|
+
i(b),
|
|
3557
|
+
e(t).user ? (c(), _(h, { key: 4 })) : C("", !0)
|
|
3558
3558
|
]),
|
|
3559
3559
|
_: 1
|
|
3560
3560
|
});
|
|
3561
3561
|
};
|
|
3562
3562
|
}
|
|
3563
|
-
}),
|
|
3563
|
+
}), Bt = /* @__PURE__ */ k({
|
|
3564
3564
|
__name: "VoIconIssues",
|
|
3565
3565
|
setup(u) {
|
|
3566
3566
|
const t = [
|
|
@@ -3568,24 +3568,24 @@ const qe = G("settings", () => {
|
|
|
3568
3568
|
"M8.63152 12.7367L8.50057 12.5L6 8H11.263L8.63152 12.7367Z",
|
|
3569
3569
|
["M9.11205 13.6004L11 17L16 8H12.223L9.11205 13.6004Z", 0.6]
|
|
3570
3570
|
];
|
|
3571
|
-
return (s, o) => (c(),
|
|
3571
|
+
return (s, o) => (c(), _(O, { icon: t }));
|
|
3572
3572
|
}
|
|
3573
|
-
}),
|
|
3573
|
+
}), Mt = /* @__PURE__ */ k({
|
|
3574
3574
|
__name: "VoIconBin",
|
|
3575
3575
|
setup(u) {
|
|
3576
|
-
return (t, s) => (c(),
|
|
3576
|
+
return (t, s) => (c(), _(O, { icon: "$vuetify-bin" }));
|
|
3577
3577
|
}
|
|
3578
|
-
}),
|
|
3578
|
+
}), Us = { key: 0 }, Os = { class: "d-flex align-center justify-center pa-1 ga-2" }, Bs = /* @__PURE__ */ k({
|
|
3579
3579
|
__name: "VoUserQuickActions",
|
|
3580
3580
|
setup(u) {
|
|
3581
3581
|
const t = R();
|
|
3582
3582
|
return (s, o) => {
|
|
3583
|
-
const a =
|
|
3584
|
-
return c(),
|
|
3583
|
+
const a = Mt, n = Bt;
|
|
3584
|
+
return c(), _(ke, null, {
|
|
3585
3585
|
default: r(() => [
|
|
3586
|
-
e(t).quickbar ? (c(), L("div",
|
|
3587
|
-
V("div",
|
|
3588
|
-
i(
|
|
3586
|
+
e(t).quickbar ? (c(), L("div", Us, [
|
|
3587
|
+
V("div", Os, [
|
|
3588
|
+
i(j, {
|
|
3589
3589
|
class: "text-caption",
|
|
3590
3590
|
color: e(t).colors.one,
|
|
3591
3591
|
density: "comfortable",
|
|
@@ -3604,7 +3604,7 @@ const qe = G("settings", () => {
|
|
|
3604
3604
|
]),
|
|
3605
3605
|
_: 1
|
|
3606
3606
|
}, 8, ["color"]),
|
|
3607
|
-
i(
|
|
3607
|
+
i(j, {
|
|
3608
3608
|
class: "text-caption",
|
|
3609
3609
|
color: e(t).colors.one,
|
|
3610
3610
|
density: "comfortable",
|
|
@@ -3623,7 +3623,7 @@ const qe = G("settings", () => {
|
|
|
3623
3623
|
]),
|
|
3624
3624
|
_: 1
|
|
3625
3625
|
}, 8, ["color"]),
|
|
3626
|
-
i(
|
|
3626
|
+
i(j, {
|
|
3627
3627
|
class: "text-caption",
|
|
3628
3628
|
color: e(t).colors.one,
|
|
3629
3629
|
density: "comfortable",
|
|
@@ -3649,11 +3649,11 @@ const qe = G("settings", () => {
|
|
|
3649
3649
|
});
|
|
3650
3650
|
};
|
|
3651
3651
|
}
|
|
3652
|
-
}),
|
|
3652
|
+
}), Ms = { class: "mb-2" }, Ns = { key: 0 }, Fs = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, zs = { class: "text-h6" }, Ps = /* @__PURE__ */ k({
|
|
3653
3653
|
__name: "VoUserAvatar",
|
|
3654
3654
|
setup(u) {
|
|
3655
|
-
const t = H(), s = z(), o = R(), a =
|
|
3656
|
-
const
|
|
3655
|
+
const t = H(), s = z(), o = R(), a = D(!1), n = w(() => {
|
|
3656
|
+
const m = [
|
|
3657
3657
|
"https://cdn.vuetifyjs.com/docs/images/avatars/dark.png",
|
|
3658
3658
|
"https://cdn.vuetifyjs.com/docs/images/avatars/blackguard.png",
|
|
3659
3659
|
"https://cdn.vuetifyjs.com/docs/images/avatars/grass.png",
|
|
@@ -3669,19 +3669,19 @@ const qe = G("settings", () => {
|
|
|
3669
3669
|
"https://cdn.vuetifyjs.com/docs/images/avatars/blackhole.png",
|
|
3670
3670
|
"https://cdn.vuetifyjs.com/docs/images/avatars/meteor.png"
|
|
3671
3671
|
];
|
|
3672
|
-
return s.isSubscriber &&
|
|
3672
|
+
return s.isSubscriber && m.unshift("https://cdn.vuetifyjs.com/docs/images/avatars/one.png"), t.user && m.unshift(t.user.picture), m;
|
|
3673
3673
|
});
|
|
3674
|
-
function l(
|
|
3675
|
-
o.avatar =
|
|
3674
|
+
function l(m) {
|
|
3675
|
+
o.avatar = m;
|
|
3676
3676
|
}
|
|
3677
|
-
function
|
|
3677
|
+
function p() {
|
|
3678
3678
|
s.isSubscriber && (a.value = !a.value);
|
|
3679
3679
|
}
|
|
3680
|
-
return (
|
|
3681
|
-
var
|
|
3680
|
+
return (m, v) => {
|
|
3681
|
+
var g;
|
|
3682
3682
|
return c(), L("div", null, [
|
|
3683
|
-
|
|
3684
|
-
class:
|
|
3683
|
+
be((c(), _(oe, {
|
|
3684
|
+
class: Et([
|
|
3685
3685
|
"border-md border-opacity-100 border-surface-light",
|
|
3686
3686
|
{
|
|
3687
3687
|
"cursor-pointer": e(s).isSubscriber
|
|
@@ -3690,14 +3690,14 @@ const qe = G("settings", () => {
|
|
|
3690
3690
|
color: "surface",
|
|
3691
3691
|
size: "72",
|
|
3692
3692
|
text: "Foobar",
|
|
3693
|
-
onClick:
|
|
3693
|
+
onClick: et(p, ["prevent", "stop"])
|
|
3694
3694
|
}, {
|
|
3695
3695
|
default: r(() => [
|
|
3696
|
-
e(t).user && e(o).avatar ? (c(),
|
|
3696
|
+
e(t).user && e(o).avatar ? (c(), _(le, {
|
|
3697
3697
|
key: 0,
|
|
3698
3698
|
alt: "User avatar",
|
|
3699
3699
|
src: e(o).avatar
|
|
3700
|
-
}, null, 8, ["src"])) : (c(),
|
|
3700
|
+
}, null, 8, ["src"])) : (c(), _(O, {
|
|
3701
3701
|
key: 1,
|
|
3702
3702
|
class: "mt-1",
|
|
3703
3703
|
icon: "$vuetify",
|
|
@@ -3706,25 +3706,25 @@ const qe = G("settings", () => {
|
|
|
3706
3706
|
]),
|
|
3707
3707
|
_: 1
|
|
3708
3708
|
}, 8, ["class"])), [
|
|
3709
|
-
[
|
|
3709
|
+
[on, e(s).isSubscriber]
|
|
3710
3710
|
]),
|
|
3711
|
-
V("div",
|
|
3712
|
-
i(
|
|
3711
|
+
V("div", Ms, [
|
|
3712
|
+
i(ke, null, {
|
|
3713
3713
|
default: r(() => [
|
|
3714
|
-
e(a) ? (c(), L("div",
|
|
3714
|
+
e(a) ? (c(), L("div", Ns, [
|
|
3715
3715
|
i(q, {
|
|
3716
3716
|
class: "pt-6 pb-1",
|
|
3717
3717
|
flat: "",
|
|
3718
3718
|
rounded: "0"
|
|
3719
3719
|
}, {
|
|
3720
3720
|
default: r(() => [
|
|
3721
|
-
V("div",
|
|
3722
|
-
(c(!0), L(N, null, re(e(n), (f,
|
|
3723
|
-
key:
|
|
3721
|
+
V("div", Fs, [
|
|
3722
|
+
(c(!0), L(N, null, re(e(n), (f, $) => (c(), _(j, {
|
|
3723
|
+
key: $,
|
|
3724
3724
|
active: e(o).avatar === f,
|
|
3725
3725
|
icon: "",
|
|
3726
3726
|
variant: "flat",
|
|
3727
|
-
onClick: (
|
|
3727
|
+
onClick: (b) => l(f)
|
|
3728
3728
|
}, {
|
|
3729
3729
|
default: r(() => [
|
|
3730
3730
|
i(oe, {
|
|
@@ -3743,18 +3743,18 @@ const qe = G("settings", () => {
|
|
|
3743
3743
|
_: 1
|
|
3744
3744
|
})
|
|
3745
3745
|
]),
|
|
3746
|
-
V("div",
|
|
3746
|
+
V("div", zs, S(((g = e(t).user) == null ? void 0 : g.name) ?? "Guest"), 1)
|
|
3747
3747
|
]);
|
|
3748
3748
|
};
|
|
3749
3749
|
}
|
|
3750
3750
|
}), js = /* @__PURE__ */ k({
|
|
3751
3751
|
__name: "VoUserBadges",
|
|
3752
3752
|
setup(u) {
|
|
3753
|
-
const t = H(), s = z(), o =
|
|
3753
|
+
const t = H(), s = z(), o = w(() => {
|
|
3754
3754
|
var a;
|
|
3755
3755
|
return s.github || s.discord || s.isSubscriber || ((a = t.user) == null ? void 0 : a.isAdmin);
|
|
3756
3756
|
});
|
|
3757
|
-
return (a, n) => e(o) ? (c(),
|
|
3757
|
+
return (a, n) => e(o) ? (c(), _(je, {
|
|
3758
3758
|
key: 0,
|
|
3759
3759
|
class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
|
|
3760
3760
|
color: "rgba(0,0,0,.54)",
|
|
@@ -3764,55 +3764,55 @@ const qe = G("settings", () => {
|
|
|
3764
3764
|
default: r(() => {
|
|
3765
3765
|
var l;
|
|
3766
3766
|
return [
|
|
3767
|
-
(l = e(t).user) != null && l.isAdmin ? (c(),
|
|
3767
|
+
(l = e(t).user) != null && l.isAdmin ? (c(), _(se, {
|
|
3768
3768
|
key: 0,
|
|
3769
3769
|
location: "bottom",
|
|
3770
3770
|
text: "Vuetify Administrator"
|
|
3771
3771
|
}, {
|
|
3772
|
-
activator: r(({ props:
|
|
3772
|
+
activator: r(({ props: p }) => [
|
|
3773
3773
|
i(O, J({
|
|
3774
3774
|
color: "blue",
|
|
3775
3775
|
icon: "$vuetify"
|
|
3776
|
-
},
|
|
3776
|
+
}, p, { size: "16" }), null, 16)
|
|
3777
3777
|
]),
|
|
3778
3778
|
_: 1
|
|
3779
3779
|
})) : C("", !0),
|
|
3780
|
-
e(s).isSubscriber ? (c(),
|
|
3780
|
+
e(s).isSubscriber ? (c(), _(se, {
|
|
3781
3781
|
key: 1,
|
|
3782
3782
|
location: "bottom",
|
|
3783
3783
|
text: "Vuetify One Subscriber"
|
|
3784
3784
|
}, {
|
|
3785
|
-
activator: r(({ props:
|
|
3785
|
+
activator: r(({ props: p }) => [
|
|
3786
3786
|
i(O, J({
|
|
3787
3787
|
color: "amber-darken-2",
|
|
3788
|
-
icon: `svg:${e(
|
|
3789
|
-
},
|
|
3788
|
+
icon: `svg:${e(Mo)}`
|
|
3789
|
+
}, p, { size: "16" }), null, 16, ["icon"])
|
|
3790
3790
|
]),
|
|
3791
3791
|
_: 1
|
|
3792
3792
|
})) : C("", !0),
|
|
3793
|
-
e(s).github ? (c(),
|
|
3793
|
+
e(s).github ? (c(), _(se, {
|
|
3794
3794
|
key: 2,
|
|
3795
3795
|
location: "bottom",
|
|
3796
3796
|
text: "GitHub Sponsor"
|
|
3797
3797
|
}, {
|
|
3798
|
-
activator: r(({ props:
|
|
3798
|
+
activator: r(({ props: p }) => [
|
|
3799
3799
|
i(O, J({
|
|
3800
3800
|
color: "white",
|
|
3801
3801
|
icon: "$github"
|
|
3802
|
-
},
|
|
3802
|
+
}, p, { size: "16" }), null, 16)
|
|
3803
3803
|
]),
|
|
3804
3804
|
_: 1
|
|
3805
3805
|
})) : C("", !0),
|
|
3806
|
-
e(s).discord ? (c(),
|
|
3806
|
+
e(s).discord ? (c(), _(se, {
|
|
3807
3807
|
key: 3,
|
|
3808
3808
|
location: "bottom",
|
|
3809
3809
|
text: "Discord Subscriber"
|
|
3810
3810
|
}, {
|
|
3811
|
-
activator: r(({ props:
|
|
3811
|
+
activator: r(({ props: p }) => [
|
|
3812
3812
|
i(O, J({
|
|
3813
3813
|
color: "white",
|
|
3814
3814
|
icon: "$discord"
|
|
3815
|
-
},
|
|
3815
|
+
}, p, { size: "16" }), null, 16)
|
|
3816
3816
|
]),
|
|
3817
3817
|
_: 1
|
|
3818
3818
|
})) : C("", !0)
|
|
@@ -3821,18 +3821,18 @@ const qe = G("settings", () => {
|
|
|
3821
3821
|
_: 1
|
|
3822
3822
|
})) : C("", !0);
|
|
3823
3823
|
}
|
|
3824
|
-
}),
|
|
3824
|
+
}), Rs = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, Hs = {
|
|
3825
3825
|
key: "reset",
|
|
3826
3826
|
class: "align-self-end"
|
|
3827
|
-
},
|
|
3827
|
+
}, Es = /* @__PURE__ */ k({
|
|
3828
3828
|
__name: "VoUserColors",
|
|
3829
3829
|
setup(u) {
|
|
3830
|
-
const t = H(), s = z(), o = R(), a =
|
|
3830
|
+
const t = H(), s = z(), o = R(), a = D(!1);
|
|
3831
3831
|
function n() {
|
|
3832
3832
|
o.colors.one = "surface-light";
|
|
3833
3833
|
}
|
|
3834
|
-
return (l,
|
|
3835
|
-
const
|
|
3834
|
+
return (l, p) => {
|
|
3835
|
+
const m = js, v = Ue;
|
|
3836
3836
|
return c(), L(N, null, [
|
|
3837
3837
|
i(le, {
|
|
3838
3838
|
color: e(t).user ? e(o).colors.one : "surface-light",
|
|
@@ -3843,17 +3843,17 @@ const qe = G("settings", () => {
|
|
|
3843
3843
|
rounded: "0"
|
|
3844
3844
|
}, {
|
|
3845
3845
|
default: r(() => [
|
|
3846
|
-
V("div",
|
|
3847
|
-
i(
|
|
3848
|
-
i(
|
|
3846
|
+
V("div", Rs, [
|
|
3847
|
+
i(m),
|
|
3848
|
+
i(Zo, null, {
|
|
3849
3849
|
default: r(() => [
|
|
3850
|
-
|
|
3850
|
+
be(V("div", Hs, [
|
|
3851
3851
|
i(v, {
|
|
3852
3852
|
class: "ms-2 me-1",
|
|
3853
3853
|
color: "inherit",
|
|
3854
3854
|
density: "comfortable",
|
|
3855
3855
|
disabled: e(o).colors.one === "surface-light",
|
|
3856
|
-
icon: `svg:${e(
|
|
3856
|
+
icon: `svg:${e(No)}`,
|
|
3857
3857
|
title: "Revert to Default",
|
|
3858
3858
|
variant: "text",
|
|
3859
3859
|
onClick: n
|
|
@@ -3864,7 +3864,7 @@ const qe = G("settings", () => {
|
|
|
3864
3864
|
]),
|
|
3865
3865
|
_: 1
|
|
3866
3866
|
}),
|
|
3867
|
-
e(s).isSubscriber ? (c(),
|
|
3867
|
+
e(s).isSubscriber ? (c(), _(v, {
|
|
3868
3868
|
key: 0,
|
|
3869
3869
|
active: e(a),
|
|
3870
3870
|
class: "align-self-end",
|
|
@@ -3873,12 +3873,12 @@ const qe = G("settings", () => {
|
|
|
3873
3873
|
icon: e(a) ? `svg:${e(Ae)}` : "$edit",
|
|
3874
3874
|
title: "Edit One Header Color",
|
|
3875
3875
|
variant: e(a) ? "text" : "plain",
|
|
3876
|
-
onClick:
|
|
3876
|
+
onClick: p[0] || (p[0] = (g) => a.value = !e(a))
|
|
3877
3877
|
}, {
|
|
3878
3878
|
default: r(() => [
|
|
3879
|
-
i(
|
|
3879
|
+
i(Re, { "leave-absolute": "" }, {
|
|
3880
3880
|
default: r(() => [
|
|
3881
|
-
(c(),
|
|
3881
|
+
(c(), _(O, {
|
|
3882
3882
|
key: String(e(a))
|
|
3883
3883
|
}))
|
|
3884
3884
|
]),
|
|
@@ -3891,9 +3891,9 @@ const qe = G("settings", () => {
|
|
|
3891
3891
|
]),
|
|
3892
3892
|
_: 1
|
|
3893
3893
|
}, 8, ["color"]),
|
|
3894
|
-
i(
|
|
3894
|
+
i(ke, null, {
|
|
3895
3895
|
default: r(() => [
|
|
3896
|
-
e(a) ? (c(),
|
|
3896
|
+
e(a) ? (c(), _(an, {
|
|
3897
3897
|
key: 0,
|
|
3898
3898
|
elevation: "0",
|
|
3899
3899
|
height: "250",
|
|
@@ -3905,7 +3905,7 @@ const qe = G("settings", () => {
|
|
|
3905
3905
|
"show-swatches": "",
|
|
3906
3906
|
"swatches-max-height": "200",
|
|
3907
3907
|
width: "278",
|
|
3908
|
-
"onUpdate:modelValue":
|
|
3908
|
+
"onUpdate:modelValue": p[1] || (p[1] = (g) => e(o).colors.one = g)
|
|
3909
3909
|
}, null, 8, ["model-value"])) : C("", !0)
|
|
3910
3910
|
]),
|
|
3911
3911
|
_: 1
|
|
@@ -3913,16 +3913,16 @@ const qe = G("settings", () => {
|
|
|
3913
3913
|
], 64);
|
|
3914
3914
|
};
|
|
3915
3915
|
}
|
|
3916
|
-
}),
|
|
3916
|
+
}), qs = { class: "text-center mt-n9 mb-4" }, Ws = /* @__PURE__ */ k({
|
|
3917
3917
|
__name: "VoUserMenu",
|
|
3918
3918
|
setup(u) {
|
|
3919
|
-
const t =
|
|
3920
|
-
return
|
|
3919
|
+
const t = Ge(), s = z(), o = T();
|
|
3920
|
+
return P(() => t.banner, async () => {
|
|
3921
3921
|
var a, n;
|
|
3922
3922
|
await new Promise((l) => setTimeout(l, 300)), s.isOpen && ((n = (a = o.value) == null ? void 0 : a.updateLocation) == null || n.call(a));
|
|
3923
3923
|
}, { flush: "pre" }), (a, n) => {
|
|
3924
|
-
const l =
|
|
3925
|
-
return c(),
|
|
3924
|
+
const l = Es, p = Ps, m = Bs, v = Ds, g = Ut;
|
|
3925
|
+
return c(), _(xt, {
|
|
3926
3926
|
ref_key: "menu",
|
|
3927
3927
|
ref: o,
|
|
3928
3928
|
modelValue: e(s).isOpen,
|
|
@@ -3941,14 +3941,14 @@ const qe = G("settings", () => {
|
|
|
3941
3941
|
}, {
|
|
3942
3942
|
default: r(() => [
|
|
3943
3943
|
i(l),
|
|
3944
|
-
V("div",
|
|
3945
|
-
i(
|
|
3946
|
-
i(
|
|
3944
|
+
V("div", qs, [
|
|
3945
|
+
i(p),
|
|
3946
|
+
i(m)
|
|
3947
3947
|
]),
|
|
3948
3948
|
i(X),
|
|
3949
3949
|
i(v),
|
|
3950
3950
|
i(X),
|
|
3951
|
-
i(
|
|
3951
|
+
i(g)
|
|
3952
3952
|
]),
|
|
3953
3953
|
_: 1
|
|
3954
3954
|
})
|
|
@@ -3957,17 +3957,17 @@ const qe = G("settings", () => {
|
|
|
3957
3957
|
}, 8, ["modelValue"]);
|
|
3958
3958
|
};
|
|
3959
3959
|
}
|
|
3960
|
-
}),
|
|
3960
|
+
}), Zs = { class: "me-n3" }, Gs = /* @__PURE__ */ k({
|
|
3961
3961
|
__name: "VoTeamInvite",
|
|
3962
3962
|
setup(u) {
|
|
3963
|
-
const t = xe(), s =
|
|
3963
|
+
const t = xe(), s = w(() => {
|
|
3964
3964
|
var a, n;
|
|
3965
3965
|
return (a = t.team) != null && a.name ? t.team.name : `${(n = t.team) == null ? void 0 : n.owner.name}'s team`;
|
|
3966
3966
|
});
|
|
3967
3967
|
function o(a) {
|
|
3968
3968
|
t.clearTeamQuery(), a.value = !1;
|
|
3969
3969
|
}
|
|
3970
|
-
return (a, n) => e(t).teamInviteDialog ? (c(),
|
|
3970
|
+
return (a, n) => e(t).teamInviteDialog ? (c(), _(ot, {
|
|
3971
3971
|
key: 0,
|
|
3972
3972
|
modelValue: e(t).teamInviteDialog,
|
|
3973
3973
|
"onUpdate:modelValue": n[1] || (n[1] = (l) => e(t).teamInviteDialog = l),
|
|
@@ -3975,17 +3975,17 @@ const qe = G("settings", () => {
|
|
|
3975
3975
|
}, {
|
|
3976
3976
|
default: r(({ isActive: l }) => [
|
|
3977
3977
|
i(q, {
|
|
3978
|
-
"prepend-icon": `svg:${e(
|
|
3978
|
+
"prepend-icon": `svg:${e(Fo)}`,
|
|
3979
3979
|
rounded: "lg",
|
|
3980
3980
|
title: "Join a Team"
|
|
3981
3981
|
}, {
|
|
3982
3982
|
append: r(() => [
|
|
3983
|
-
V("div",
|
|
3984
|
-
i(
|
|
3983
|
+
V("div", Zs, [
|
|
3984
|
+
i(j, {
|
|
3985
3985
|
icon: "$close",
|
|
3986
3986
|
size: "x-small",
|
|
3987
3987
|
variant: "text",
|
|
3988
|
-
onClick: (
|
|
3988
|
+
onClick: (p) => o(l)
|
|
3989
3989
|
}, null, 8, ["onClick"])
|
|
3990
3990
|
])
|
|
3991
3991
|
]),
|
|
@@ -3996,24 +3996,24 @@ const qe = G("settings", () => {
|
|
|
3996
3996
|
]),
|
|
3997
3997
|
default: r(() => [
|
|
3998
3998
|
i(X, { opacity: ".2" }),
|
|
3999
|
-
i(
|
|
3999
|
+
i(qo, { class: "bg-surface-light" }, {
|
|
4000
4000
|
default: r(() => [
|
|
4001
|
-
i(
|
|
4001
|
+
i(j, {
|
|
4002
4002
|
disabled: e(t).isLoading,
|
|
4003
4003
|
rounded: "lg",
|
|
4004
4004
|
text: "Cancel",
|
|
4005
4005
|
variant: "plain",
|
|
4006
|
-
onClick: (
|
|
4006
|
+
onClick: (p) => o(l)
|
|
4007
4007
|
}, null, 8, ["disabled", "onClick"]),
|
|
4008
|
-
i(
|
|
4009
|
-
i(
|
|
4008
|
+
i(Yo),
|
|
4009
|
+
i(j, {
|
|
4010
4010
|
"append-icon": "$success",
|
|
4011
4011
|
color: "success",
|
|
4012
4012
|
disabled: e(t).isLoading,
|
|
4013
4013
|
rounded: "lg",
|
|
4014
4014
|
text: "Accept",
|
|
4015
4015
|
variant: "flat",
|
|
4016
|
-
onClick: n[0] || (n[0] = (
|
|
4016
|
+
onClick: n[0] || (n[0] = (p) => e(t).joinTeam())
|
|
4017
4017
|
}, null, 8, ["disabled"])
|
|
4018
4018
|
]),
|
|
4019
4019
|
_: 2
|
|
@@ -4025,68 +4025,72 @@ const qe = G("settings", () => {
|
|
|
4025
4025
|
_: 1
|
|
4026
4026
|
}, 8, ["modelValue"])) : C("", !0);
|
|
4027
4027
|
}
|
|
4028
|
-
}),
|
|
4028
|
+
}), Qs = { key: 0 }, Nt = /* @__PURE__ */ k({
|
|
4029
4029
|
__name: "VoAuthBtn",
|
|
4030
4030
|
props: {
|
|
4031
4031
|
external: Boolean
|
|
4032
4032
|
},
|
|
4033
4033
|
setup(u) {
|
|
4034
|
-
const t = H(), s = z(), o = R(), { lgAndUp: a } =
|
|
4035
|
-
return (
|
|
4036
|
-
const
|
|
4034
|
+
const t = H(), s = z(), o = R(), { lgAndUp: a } = me(), n = w(() => s.isOpen || !t.user ? o.colors.one === "surface-light" ? "primary" : o.colors.one : "surface-light"), { smAndUp: l } = me();
|
|
4035
|
+
return (p, m) => {
|
|
4036
|
+
const v = Ws, g = Ue, f = hn, $ = Dt, b = un;
|
|
4037
4037
|
return c(), L(N, null, [
|
|
4038
|
-
i(
|
|
4038
|
+
i(f, {
|
|
4039
4039
|
"offset-y": e(t).user ? 5 : 0
|
|
4040
4040
|
}, {
|
|
4041
4041
|
default: r(() => [
|
|
4042
|
-
i(
|
|
4043
|
-
[`${e(a) ? "append-" : ""}icon`]: e(t).user ? void 0 : `svg:${e(
|
|
4042
|
+
i(g, J({
|
|
4043
|
+
[`${e(a) ? "append-" : ""}icon`]: e(t).user ? void 0 : `svg:${e(mt)}`
|
|
4044
4044
|
}, {
|
|
4045
4045
|
active: "",
|
|
4046
4046
|
border: !!e(t).user,
|
|
4047
4047
|
class: "vo-auth-btn",
|
|
4048
4048
|
color: e(n),
|
|
4049
|
-
icon: e(t).user || e(t).isLoading,
|
|
4049
|
+
icon: e(t).user || e(t).isLoading || !e(l),
|
|
4050
4050
|
loading: e(t).isLoading,
|
|
4051
|
-
size: "default",
|
|
4051
|
+
size: e(l) ? "default" : "small",
|
|
4052
4052
|
style: { transition: ".2s ease" },
|
|
4053
4053
|
variant: e(t).user ? e(s).isOpen ? "outlined" : "text" : "flat"
|
|
4054
4054
|
}), {
|
|
4055
4055
|
default: r(() => [
|
|
4056
|
-
e(t).user ?
|
|
4057
|
-
|
|
4058
|
-
key: 1,
|
|
4056
|
+
e(t).user ? (c(), _(oe, {
|
|
4057
|
+
key: 0,
|
|
4059
4058
|
image: e(o).avatar || e(t).user.picture || ""
|
|
4060
|
-
}, null, 8, ["image"])) :
|
|
4061
|
-
|
|
4059
|
+
}, null, 8, ["image"])) : (c(), L(N, { key: 1 }, [
|
|
4060
|
+
e(l) ? (c(), L("span", Qs, "Login")) : (c(), _(O, {
|
|
4061
|
+
key: 1,
|
|
4062
|
+
icon: `svg:${e(mt)}`
|
|
4063
|
+
}, null, 8, ["icon"]))
|
|
4064
|
+
], 64)),
|
|
4065
|
+
i(v)
|
|
4062
4066
|
]),
|
|
4063
4067
|
_: 1
|
|
4064
|
-
}, 16, ["border", "color", "icon", "loading", "variant"])
|
|
4068
|
+
}, 16, ["border", "color", "icon", "loading", "size", "variant"])
|
|
4065
4069
|
]),
|
|
4066
4070
|
_: 1
|
|
4067
4071
|
}, 8, ["offset-y"]),
|
|
4068
|
-
i(
|
|
4069
|
-
i(
|
|
4070
|
-
i(
|
|
4072
|
+
i($),
|
|
4073
|
+
i(Gs),
|
|
4074
|
+
i(b)
|
|
4071
4075
|
], 64);
|
|
4072
4076
|
};
|
|
4073
4077
|
}
|
|
4074
|
-
}),
|
|
4078
|
+
}), Ys = /* @__PURE__ */ k({
|
|
4075
4079
|
__name: "VoAppBar",
|
|
4076
4080
|
props: {
|
|
4077
4081
|
logo: {}
|
|
4078
4082
|
},
|
|
4079
4083
|
setup(u) {
|
|
4080
|
-
const t = u, s =
|
|
4084
|
+
const t = u, s = He(), o = We(), a = w(() => `https://cdn.vuetifyjs.com/docs/images/one/logos/${t.logo}-logo-${s.current.value.dark ? "dark" : "light"}.png`);
|
|
4081
4085
|
return (n, l) => {
|
|
4082
|
-
const
|
|
4083
|
-
return c(),
|
|
4086
|
+
const p = qt("router-link"), m = Nt;
|
|
4087
|
+
return c(), _(Ct, {
|
|
4084
4088
|
class: "border-b",
|
|
4085
4089
|
image: e(o).suit["app-bar"],
|
|
4086
4090
|
name: "vo-app-bar"
|
|
4087
4091
|
}, W({
|
|
4088
4092
|
prepend: r(() => [
|
|
4089
|
-
i(
|
|
4093
|
+
i(p, {
|
|
4090
4094
|
class: "ps-2",
|
|
4091
4095
|
to: "/"
|
|
4092
4096
|
}, {
|
|
@@ -4102,13 +4106,13 @@ const qe = G("settings", () => {
|
|
|
4102
4106
|
]),
|
|
4103
4107
|
append: r(() => [
|
|
4104
4108
|
M(n.$slots, "append"),
|
|
4105
|
-
n.$slots.append ? (c(),
|
|
4109
|
+
n.$slots.append ? (c(), _(X, {
|
|
4106
4110
|
key: 0,
|
|
4107
|
-
class: "
|
|
4111
|
+
class: "align-self-center h-100 mx-2 mx-sm-4",
|
|
4108
4112
|
length: "20",
|
|
4109
4113
|
vertical: ""
|
|
4110
4114
|
})) : C("", !0),
|
|
4111
|
-
i(
|
|
4115
|
+
i(m)
|
|
4112
4116
|
]),
|
|
4113
4117
|
default: r(() => [
|
|
4114
4118
|
M(n.$slots, "default")
|
|
@@ -4132,77 +4136,77 @@ const qe = G("settings", () => {
|
|
|
4132
4136
|
]), 1032, ["image"]);
|
|
4133
4137
|
};
|
|
4134
4138
|
}
|
|
4135
|
-
}),
|
|
4139
|
+
}), Js = /* @__PURE__ */ k({
|
|
4136
4140
|
__name: "VoNotificationsBanner",
|
|
4137
4141
|
props: {
|
|
4138
4142
|
demo: { type: Boolean }
|
|
4139
4143
|
},
|
|
4140
4144
|
setup(u) {
|
|
4141
|
-
|
|
4142
|
-
var
|
|
4145
|
+
Wt((b) => {
|
|
4146
|
+
var h;
|
|
4143
4147
|
return {
|
|
4144
|
-
"0b9050b7": (
|
|
4148
|
+
"0b9050b7": (h = e(l)) == null ? void 0 : h.metadata.bg_blur
|
|
4145
4149
|
};
|
|
4146
4150
|
});
|
|
4147
|
-
const t = u, { mdAndUp: s } =
|
|
4148
|
-
var
|
|
4149
|
-
return ((
|
|
4150
|
-
}),
|
|
4151
|
+
const t = u, { mdAndUp: s } = me(), o = tt(), a = R(), n = Ge(), l = w(() => n.banner), p = w(() => {
|
|
4152
|
+
var b, h;
|
|
4153
|
+
return ((b = l.value) == null ? void 0 : b.metadata.height) || ((h = l.value) != null && h.metadata.subtext ? 88 : 48);
|
|
4154
|
+
}), m = w(() => t.demo ? !0 : !l.value || !a.notifications.last.banner.includes(l.value.slug));
|
|
4151
4155
|
function v() {
|
|
4152
4156
|
t.demo || l.value && a.notifications.last.banner.push(l.value.slug);
|
|
4153
4157
|
}
|
|
4154
|
-
async function
|
|
4155
|
-
var
|
|
4158
|
+
async function g(b) {
|
|
4159
|
+
var y;
|
|
4156
4160
|
if (!l.value) return;
|
|
4157
|
-
v(), await
|
|
4158
|
-
const
|
|
4159
|
-
if (
|
|
4160
|
-
|
|
4161
|
-
const
|
|
4162
|
-
o.push({ query: { one:
|
|
4161
|
+
v(), await ye();
|
|
4162
|
+
const h = ((y = l.value) == null ? void 0 : y.metadata) ?? { link: "" };
|
|
4163
|
+
if (h.link.indexOf("?one=") === -1) return;
|
|
4164
|
+
b.preventDefault(), b.stopPropagation();
|
|
4165
|
+
const d = h.link.split("?one=")[1];
|
|
4166
|
+
o.push({ query: { one: d } });
|
|
4163
4167
|
}
|
|
4164
|
-
const f =
|
|
4165
|
-
var
|
|
4166
|
-
const
|
|
4168
|
+
const f = w(() => {
|
|
4169
|
+
var h, d;
|
|
4170
|
+
const b = ((h = l.value) == null ? void 0 : h.metadata) ?? { link: "" };
|
|
4167
4171
|
return {
|
|
4168
|
-
href:
|
|
4169
|
-
target:
|
|
4170
|
-
to:
|
|
4171
|
-
...(
|
|
4172
|
-
onClick:
|
|
4172
|
+
href: b.link.startsWith("http") ? b.link : void 0,
|
|
4173
|
+
target: b.link.startsWith("http") ? "_blank" : void 0,
|
|
4174
|
+
to: b.link.startsWith("http") ? void 0 : b.link,
|
|
4175
|
+
...(d = l.value) == null ? void 0 : d.metadata.attributes,
|
|
4176
|
+
onClick: g
|
|
4173
4177
|
};
|
|
4174
|
-
}),
|
|
4175
|
-
var
|
|
4176
|
-
const
|
|
4177
|
-
if (!(
|
|
4178
|
-
const
|
|
4179
|
-
return
|
|
4178
|
+
}), $ = w(() => {
|
|
4179
|
+
var d, y;
|
|
4180
|
+
const b = (y = (d = l.value) == null ? void 0 : d.metadata.images.bg) == null ? void 0 : y.url;
|
|
4181
|
+
if (!(b != null && b.startsWith("https://cdn.cosmicjs.com/"))) return b;
|
|
4182
|
+
const h = new URL(b);
|
|
4183
|
+
return h.host = "imgix.cosmicjs.com", h.search = new URLSearchParams({
|
|
4180
4184
|
auto: "format,compress",
|
|
4181
4185
|
q: "10",
|
|
4182
4186
|
fit: "crop",
|
|
4183
4187
|
w: "4096",
|
|
4184
4188
|
h: "256"
|
|
4185
|
-
}).toString(),
|
|
4189
|
+
}).toString(), h.toString();
|
|
4186
4190
|
});
|
|
4187
|
-
return (
|
|
4191
|
+
return (b, h) => e(l) ? (c(), _(Ct, {
|
|
4188
4192
|
key: 0,
|
|
4189
4193
|
color: e(l).metadata.color,
|
|
4190
4194
|
flat: "",
|
|
4191
|
-
height: e(
|
|
4192
|
-
image: e(
|
|
4193
|
-
location:
|
|
4194
|
-
"model-value": e(
|
|
4195
|
+
height: e(p),
|
|
4196
|
+
image: e($),
|
|
4197
|
+
location: b.demo ? "bottom" : void 0,
|
|
4198
|
+
"model-value": e(m),
|
|
4195
4199
|
order: "-1"
|
|
4196
4200
|
}, {
|
|
4197
4201
|
default: r(() => [
|
|
4198
|
-
i(
|
|
4202
|
+
i(Ve, J(e(f), {
|
|
4199
4203
|
active: !1,
|
|
4200
4204
|
class: "flex-grow-1 py-6",
|
|
4201
4205
|
lines: "two",
|
|
4202
|
-
onClick:
|
|
4206
|
+
onClick: g
|
|
4203
4207
|
}), {
|
|
4204
4208
|
prepend: r(() => [
|
|
4205
|
-
e(l).metadata.images.logo ? (c(),
|
|
4209
|
+
e(l).metadata.images.logo ? (c(), _(oe, {
|
|
4206
4210
|
key: 0,
|
|
4207
4211
|
icon: "$vuetify",
|
|
4208
4212
|
image: e(l).metadata.images.logo.url,
|
|
@@ -4211,19 +4215,19 @@ const qe = G("settings", () => {
|
|
|
4211
4215
|
}, null, 8, ["image"])) : C("", !0)
|
|
4212
4216
|
]),
|
|
4213
4217
|
append: r(() => [
|
|
4214
|
-
e(s) && e(l).metadata.link && e(l).metadata.link_text ? (c(),
|
|
4215
|
-
default: r(({ isHovering:
|
|
4216
|
-
i(
|
|
4217
|
-
...
|
|
4218
|
+
e(s) && e(l).metadata.link && e(l).metadata.link_text ? (c(), _(Ee, { key: 0 }, {
|
|
4219
|
+
default: r(({ isHovering: d, props: y }) => [
|
|
4220
|
+
i(j, J({
|
|
4221
|
+
...y,
|
|
4218
4222
|
...e(f)
|
|
4219
4223
|
}, {
|
|
4220
|
-
"append-icon": `svg:${e(
|
|
4224
|
+
"append-icon": `svg:${e(Pe)}`,
|
|
4221
4225
|
class: "text-none me-2",
|
|
4222
4226
|
color: e(l).metadata.link_color,
|
|
4223
|
-
elevation:
|
|
4227
|
+
elevation: d ? 8 : 0,
|
|
4224
4228
|
title: e(l).metadata.link_text,
|
|
4225
4229
|
variant: "elevated",
|
|
4226
|
-
onClick:
|
|
4230
|
+
onClick: g
|
|
4227
4231
|
}), {
|
|
4228
4232
|
default: r(() => [
|
|
4229
4233
|
B(S(e(l).metadata.link_text), 1)
|
|
@@ -4233,18 +4237,18 @@ const qe = G("settings", () => {
|
|
|
4233
4237
|
]),
|
|
4234
4238
|
_: 1
|
|
4235
4239
|
})) : C("", !0),
|
|
4236
|
-
e(l).metadata.closable ? (c(),
|
|
4240
|
+
e(l).metadata.closable ? (c(), _(j, {
|
|
4237
4241
|
key: 1,
|
|
4238
4242
|
class: "ms-6 me-2",
|
|
4239
4243
|
density: "comfortable",
|
|
4240
4244
|
icon: "$clear",
|
|
4241
4245
|
size: "small",
|
|
4242
4246
|
variant: "plain",
|
|
4243
|
-
onClick:
|
|
4247
|
+
onClick: et(v, ["prevent", "stop"])
|
|
4244
4248
|
})) : C("", !0)
|
|
4245
4249
|
]),
|
|
4246
4250
|
default: r(() => [
|
|
4247
|
-
e(l).metadata.text ? (c(),
|
|
4251
|
+
e(l).metadata.text ? (c(), _(Vt, {
|
|
4248
4252
|
key: 0,
|
|
4249
4253
|
class: "text-subtitle-2 text-md-subtitle-1 font-weight-medium"
|
|
4250
4254
|
}, {
|
|
@@ -4253,7 +4257,7 @@ const qe = G("settings", () => {
|
|
|
4253
4257
|
]),
|
|
4254
4258
|
_: 1
|
|
4255
4259
|
})) : C("", !0),
|
|
4256
|
-
e(l).metadata.subtext ? (c(),
|
|
4260
|
+
e(l).metadata.subtext ? (c(), _(Ro, { key: 1 }, {
|
|
4257
4261
|
default: r(() => [
|
|
4258
4262
|
B(S(e(l).metadata.subtext), 1)
|
|
4259
4263
|
]),
|
|
@@ -4271,18 +4275,18 @@ const qe = G("settings", () => {
|
|
|
4271
4275
|
for (const [o, a] of t)
|
|
4272
4276
|
s[o] = a;
|
|
4273
4277
|
return s;
|
|
4274
|
-
},
|
|
4278
|
+
}, Xs = /* @__PURE__ */ rt(Js, [["__scopeId", "data-v-2a88ced7"]]), Ks = {
|
|
4275
4279
|
key: 0,
|
|
4276
4280
|
class: "text-uppercase position-absolute ms-auto font-weight-medium on-surface-light",
|
|
4277
4281
|
style: { right: "12px", bottom: "8px", "font-size": "10px" }
|
|
4278
|
-
},
|
|
4282
|
+
}, Ft = /* @__PURE__ */ k({
|
|
4279
4283
|
__name: "VoPromotionsCard",
|
|
4280
4284
|
props: {
|
|
4281
4285
|
caption: {},
|
|
4282
4286
|
minHeight: {}
|
|
4283
4287
|
},
|
|
4284
4288
|
setup(u) {
|
|
4285
|
-
return (t, s) => (c(),
|
|
4289
|
+
return (t, s) => (c(), _(q, {
|
|
4286
4290
|
class: "d-inline-flex flex-child-1 position-relative",
|
|
4287
4291
|
color: "surface-light",
|
|
4288
4292
|
flat: "",
|
|
@@ -4291,7 +4295,7 @@ const qe = G("settings", () => {
|
|
|
4291
4295
|
target: "_blank"
|
|
4292
4296
|
}, W({
|
|
4293
4297
|
default: r(() => [
|
|
4294
|
-
i(
|
|
4298
|
+
i(rn, {
|
|
4295
4299
|
"min-height": t.minHeight,
|
|
4296
4300
|
width: "100%"
|
|
4297
4301
|
}, {
|
|
@@ -4300,7 +4304,7 @@ const qe = G("settings", () => {
|
|
|
4300
4304
|
]),
|
|
4301
4305
|
_: 3
|
|
4302
4306
|
}, 8, ["min-height"]),
|
|
4303
|
-
t.caption ? (c(), L("div",
|
|
4307
|
+
t.caption ? (c(), L("div", Ks, S(t.caption), 1)) : C("", !0)
|
|
4304
4308
|
]),
|
|
4305
4309
|
_: 2
|
|
4306
4310
|
}, [
|
|
@@ -4321,66 +4325,66 @@ const qe = G("settings", () => {
|
|
|
4321
4325
|
]), 1024));
|
|
4322
4326
|
}
|
|
4323
4327
|
}), lt = G("promotions", () => {
|
|
4324
|
-
const u =
|
|
4325
|
-
|
|
4326
|
-
function
|
|
4327
|
-
const
|
|
4328
|
-
return
|
|
4328
|
+
const u = K(), t = T([]), s = T([]), o = T(), a = D(!1), n = D(!1), l = w(() => t.value.filter((h) => h.metadata.discoverable));
|
|
4329
|
+
ze(m);
|
|
4330
|
+
function p(h) {
|
|
4331
|
+
const d = h.filter((y) => y.metadata.active);
|
|
4332
|
+
return d[Math.floor(Math.random() * d.length)];
|
|
4329
4333
|
}
|
|
4330
|
-
async function
|
|
4334
|
+
async function m() {
|
|
4331
4335
|
try {
|
|
4332
4336
|
a.value = !0;
|
|
4333
|
-
const
|
|
4334
|
-
t.value =
|
|
4337
|
+
const h = await u.get("/one/promotions");
|
|
4338
|
+
t.value = h.promotions;
|
|
4335
4339
|
} catch {
|
|
4336
4340
|
} finally {
|
|
4337
4341
|
a.value = !1, n.value = !0;
|
|
4338
4342
|
}
|
|
4339
4343
|
return t.value;
|
|
4340
4344
|
}
|
|
4341
|
-
async function v(
|
|
4345
|
+
async function v(h) {
|
|
4342
4346
|
try {
|
|
4343
4347
|
a.value = !0;
|
|
4344
|
-
const
|
|
4345
|
-
return o.value =
|
|
4348
|
+
const d = await u.get(`/one/admin/promotions/${h}`);
|
|
4349
|
+
return o.value = d.promotion, d.promotion;
|
|
4346
4350
|
} catch {
|
|
4347
4351
|
} finally {
|
|
4348
4352
|
a.value = !1;
|
|
4349
4353
|
}
|
|
4350
4354
|
}
|
|
4351
|
-
async function h
|
|
4355
|
+
async function g(h) {
|
|
4352
4356
|
try {
|
|
4353
4357
|
a.value = !0;
|
|
4354
|
-
const
|
|
4358
|
+
const d = await u.form(
|
|
4355
4359
|
"/one/admin/promotions",
|
|
4356
|
-
|
|
4360
|
+
h
|
|
4357
4361
|
);
|
|
4358
|
-
return o.value =
|
|
4362
|
+
return o.value = d.promotion, d.promotion;
|
|
4359
4363
|
} catch {
|
|
4360
4364
|
} finally {
|
|
4361
4365
|
a.value = !1;
|
|
4362
4366
|
}
|
|
4363
4367
|
}
|
|
4364
|
-
async function f(
|
|
4368
|
+
async function f(h, d) {
|
|
4365
4369
|
try {
|
|
4366
4370
|
a.value = !0;
|
|
4367
|
-
const
|
|
4368
|
-
`/one/admin/promotions/${
|
|
4369
|
-
|
|
4371
|
+
const y = await u.form(
|
|
4372
|
+
`/one/admin/promotions/${h}`,
|
|
4373
|
+
d
|
|
4370
4374
|
);
|
|
4371
|
-
return o.value =
|
|
4375
|
+
return o.value = y.promotion, y.promotion;
|
|
4372
4376
|
} catch {
|
|
4373
4377
|
} finally {
|
|
4374
4378
|
a.value = !1;
|
|
4375
4379
|
}
|
|
4376
4380
|
}
|
|
4377
|
-
async function
|
|
4381
|
+
async function $() {
|
|
4378
4382
|
}
|
|
4379
|
-
async function
|
|
4383
|
+
async function b() {
|
|
4380
4384
|
try {
|
|
4381
4385
|
a.value = !0;
|
|
4382
|
-
const
|
|
4383
|
-
s.value =
|
|
4386
|
+
const h = await u.get("/one/admin/promotions");
|
|
4387
|
+
s.value = h.promotions;
|
|
4384
4388
|
} catch {
|
|
4385
4389
|
} finally {
|
|
4386
4390
|
a.value = !1;
|
|
@@ -4394,50 +4398,50 @@ const qe = G("settings", () => {
|
|
|
4394
4398
|
hasLoaded: n,
|
|
4395
4399
|
discoverable: l,
|
|
4396
4400
|
record: o,
|
|
4397
|
-
admin:
|
|
4398
|
-
destroy:
|
|
4399
|
-
index:
|
|
4400
|
-
random:
|
|
4401
|
+
admin: b,
|
|
4402
|
+
destroy: $,
|
|
4403
|
+
index: m,
|
|
4404
|
+
random: p,
|
|
4401
4405
|
show: v,
|
|
4402
|
-
store:
|
|
4406
|
+
store: g,
|
|
4403
4407
|
update: f
|
|
4404
4408
|
};
|
|
4405
|
-
}),
|
|
4409
|
+
}), ea = /* @__PURE__ */ k({
|
|
4406
4410
|
__name: "VoPromotionsCardHighlight",
|
|
4407
4411
|
props: {
|
|
4408
4412
|
slug: {}
|
|
4409
4413
|
},
|
|
4410
4414
|
setup(u) {
|
|
4411
|
-
const t = u, s = H(), o = lt(), a =
|
|
4415
|
+
const t = u, s = H(), o = lt(), a = He(), n = R(), l = w(() => {
|
|
4412
4416
|
if (o.record) return o.record;
|
|
4413
4417
|
if (!(s.user && n.disableAds))
|
|
4414
4418
|
return t.slug ? o.all.find((v) => v.slug === t.slug) : o.random(o.all);
|
|
4415
|
-
}),
|
|
4416
|
-
var
|
|
4419
|
+
}), p = w(() => {
|
|
4420
|
+
var g, f;
|
|
4417
4421
|
const v = a.current.value.dark ? "logodark" : "logolight";
|
|
4418
|
-
return (f = (
|
|
4419
|
-
}),
|
|
4420
|
-
var
|
|
4422
|
+
return (f = (g = l.value) == null ? void 0 : g.metadata.images[v]) == null ? void 0 : f.url;
|
|
4423
|
+
}), m = w(() => {
|
|
4424
|
+
var g, f;
|
|
4421
4425
|
const v = a.current.value.dark ? "bgdark" : "bglight";
|
|
4422
|
-
return (f = (
|
|
4426
|
+
return (f = (g = l.value) == null ? void 0 : g.metadata.images[v]) == null ? void 0 : f.url;
|
|
4423
4427
|
});
|
|
4424
|
-
return (v,
|
|
4425
|
-
var
|
|
4426
|
-
const f =
|
|
4427
|
-
return e(l) || !e(o).hasLoaded ? (c(),
|
|
4428
|
+
return (v, g) => {
|
|
4429
|
+
var $, b, h;
|
|
4430
|
+
const f = Ft;
|
|
4431
|
+
return e(l) || !e(o).hasLoaded ? (c(), _(f, {
|
|
4428
4432
|
key: 0,
|
|
4429
4433
|
class: "vo-promotions-card-highlight",
|
|
4430
|
-
color: ((
|
|
4434
|
+
color: (($ = e(l)) == null ? void 0 : $.metadata.color) ?? "surface",
|
|
4431
4435
|
height: "60",
|
|
4432
|
-
href: (
|
|
4433
|
-
image: e(
|
|
4436
|
+
href: (b = e(l)) == null ? void 0 : b.metadata.url,
|
|
4437
|
+
image: e(m),
|
|
4434
4438
|
"max-width": "720",
|
|
4435
|
-
"prepend-avatar": e(
|
|
4436
|
-
title: (
|
|
4439
|
+
"prepend-avatar": e(p),
|
|
4440
|
+
title: (h = e(l)) == null ? void 0 : h.metadata.short_text,
|
|
4437
4441
|
width: "100%"
|
|
4438
4442
|
}, W({
|
|
4439
4443
|
default: r(() => [
|
|
4440
|
-
e(o).hasLoaded ? C("", !0) : (c(),
|
|
4444
|
+
e(o).hasLoaded ? C("", !0) : (c(), _(Ie, {
|
|
4441
4445
|
key: 0,
|
|
4442
4446
|
class: "flex-1-0 overflow-hidden",
|
|
4443
4447
|
color: "transparent",
|
|
@@ -4469,32 +4473,32 @@ const qe = G("settings", () => {
|
|
|
4469
4473
|
]), 1032, ["color", "href", "image", "prepend-avatar", "title"])) : C("", !0);
|
|
4470
4474
|
};
|
|
4471
4475
|
}
|
|
4472
|
-
}),
|
|
4476
|
+
}), ta = { class: "d-flex ga-4" }, oa = { class: "d-flex align-start ga-4" }, na = { class: "text-caption on-surface-light" }, sa = /* @__PURE__ */ k({
|
|
4473
4477
|
__name: "VoPromotionsCardVuetify",
|
|
4474
4478
|
props: {
|
|
4475
4479
|
slug: {}
|
|
4476
4480
|
},
|
|
4477
4481
|
setup(u) {
|
|
4478
|
-
const t = u, s = H(), o = lt(), a = R(), n =
|
|
4482
|
+
const t = u, s = H(), o = lt(), a = R(), n = w(() => {
|
|
4479
4483
|
if (o.record) return o.record;
|
|
4480
4484
|
if (!(s.user && a.disableAds && !a.showHouseAds))
|
|
4481
4485
|
return t.slug ? o.all.find((l) => l.slug === t.slug) : o.random(a.disableAds && a.showHouseAds ? o.discoverable : o.all);
|
|
4482
4486
|
});
|
|
4483
|
-
return (l,
|
|
4484
|
-
var v,
|
|
4485
|
-
const
|
|
4486
|
-
return e(n) || !e(o).hasLoaded ? (c(),
|
|
4487
|
+
return (l, p) => {
|
|
4488
|
+
var v, g;
|
|
4489
|
+
const m = Ft;
|
|
4490
|
+
return e(n) || !e(o).hasLoaded ? (c(), _(m, {
|
|
4487
4491
|
key: 0,
|
|
4488
4492
|
border: "",
|
|
4489
4493
|
caption: "ads via vuetify",
|
|
4490
4494
|
class: "vo-promotions-card-vuetify pa-2",
|
|
4491
|
-
href: (
|
|
4495
|
+
href: (g = (v = e(n)) == null ? void 0 : v.metadata) == null ? void 0 : g.url,
|
|
4492
4496
|
width: "360"
|
|
4493
4497
|
}, {
|
|
4494
4498
|
default: r(() => {
|
|
4495
|
-
var f,
|
|
4499
|
+
var f, $, b;
|
|
4496
4500
|
return [
|
|
4497
|
-
V("div",
|
|
4501
|
+
V("div", ta, [
|
|
4498
4502
|
e(o).hasLoaded ? e(n) ? (c(), L(N, { key: 1 }, [
|
|
4499
4503
|
i(le, {
|
|
4500
4504
|
cover: "",
|
|
@@ -4502,11 +4506,11 @@ const qe = G("settings", () => {
|
|
|
4502
4506
|
"max-width": "130",
|
|
4503
4507
|
position: "right",
|
|
4504
4508
|
rounded: "s",
|
|
4505
|
-
src: (
|
|
4509
|
+
src: ($ = (f = e(n).metadata) == null ? void 0 : f.images.default) == null ? void 0 : $.url,
|
|
4506
4510
|
width: "100%"
|
|
4507
4511
|
}, null, 8, ["src"]),
|
|
4508
|
-
V("div",
|
|
4509
|
-
V("div",
|
|
4512
|
+
V("div", oa, [
|
|
4513
|
+
V("div", na, S((b = e(n).metadata) == null ? void 0 : b.text), 1)
|
|
4510
4514
|
])
|
|
4511
4515
|
], 64)) : C("", !0) : (c(), L(N, { key: 0 }, [
|
|
4512
4516
|
i(Ie, {
|
|
@@ -4532,22 +4536,22 @@ const qe = G("settings", () => {
|
|
|
4532
4536
|
}, 8, ["href"])) : C("", !0);
|
|
4533
4537
|
};
|
|
4534
4538
|
}
|
|
4535
|
-
}),
|
|
4539
|
+
}), aa = {
|
|
4536
4540
|
key: 0,
|
|
4537
4541
|
class: "v-footer__image"
|
|
4538
|
-
},
|
|
4542
|
+
}, ia = /* @__PURE__ */ k({
|
|
4539
4543
|
__name: "VoFooter",
|
|
4540
4544
|
props: {
|
|
4541
4545
|
image: {}
|
|
4542
4546
|
},
|
|
4543
4547
|
setup(u) {
|
|
4544
|
-
return (t, s) => (c(),
|
|
4548
|
+
return (t, s) => (c(), _(ln, {
|
|
4545
4549
|
class: "vo-footer",
|
|
4546
4550
|
height: "40"
|
|
4547
4551
|
}, {
|
|
4548
4552
|
default: r(() => [
|
|
4549
|
-
t.image || t.$slots.image ? (c(), L("div",
|
|
4550
|
-
t.$slots.image ? M(t.$slots, "image", { key: 0 }, void 0, !0) : (c(),
|
|
4553
|
+
t.image || t.$slots.image ? (c(), L("div", aa, [
|
|
4554
|
+
t.$slots.image ? M(t.$slots, "image", { key: 0 }, void 0, !0) : (c(), _(le, {
|
|
4551
4555
|
key: 1,
|
|
4552
4556
|
cover: "",
|
|
4553
4557
|
position: "left",
|
|
@@ -4559,41 +4563,41 @@ const qe = G("settings", () => {
|
|
|
4559
4563
|
_: 3
|
|
4560
4564
|
}));
|
|
4561
4565
|
}
|
|
4562
|
-
}),
|
|
4566
|
+
}), zt = /* @__PURE__ */ rt(ia, [["__scopeId", "data-v-3135ada5"]]), ra = ["href"], la = /* @__PURE__ */ k({
|
|
4563
4567
|
__name: "VoPromotionsFooter",
|
|
4564
4568
|
props: {
|
|
4565
4569
|
slug: {}
|
|
4566
4570
|
},
|
|
4567
4571
|
setup(u) {
|
|
4568
|
-
const t = u, s = H(), o = lt(), a = R(), n =
|
|
4572
|
+
const t = u, s = H(), o = lt(), a = R(), n = He(), l = w(() => {
|
|
4569
4573
|
if (o.record) return o.record;
|
|
4570
4574
|
if (!(s.user && a.disableAds))
|
|
4571
4575
|
return t.slug ? o.all.find((v) => v.slug === t.slug) : o.random(o.all);
|
|
4572
|
-
}),
|
|
4573
|
-
var
|
|
4576
|
+
}), p = w(() => {
|
|
4577
|
+
var g, f;
|
|
4574
4578
|
const v = n.current.value.dark ? "logodark" : "logolight";
|
|
4575
|
-
return (f = (
|
|
4576
|
-
}),
|
|
4577
|
-
var
|
|
4579
|
+
return (f = (g = l.value) == null ? void 0 : g.metadata.images[v]) == null ? void 0 : f.url;
|
|
4580
|
+
}), m = w(() => {
|
|
4581
|
+
var g, f;
|
|
4578
4582
|
const v = n.current.value.dark ? "bgdark" : "bglight";
|
|
4579
|
-
return (f = (
|
|
4583
|
+
return (f = (g = l.value) == null ? void 0 : g.metadata.images[v]) == null ? void 0 : f.url;
|
|
4580
4584
|
});
|
|
4581
|
-
return
|
|
4585
|
+
return ze(async () => {
|
|
4582
4586
|
t.slug && await o.show(t.slug);
|
|
4583
|
-
}), (v,
|
|
4584
|
-
var
|
|
4585
|
-
const f =
|
|
4586
|
-
return c(),
|
|
4587
|
-
color: ((
|
|
4588
|
-
image: e(
|
|
4587
|
+
}), (v, g) => {
|
|
4588
|
+
var $;
|
|
4589
|
+
const f = zt;
|
|
4590
|
+
return c(), _(f, {
|
|
4591
|
+
color: (($ = e(l)) == null ? void 0 : $.metadata.color) ?? "surface",
|
|
4592
|
+
image: e(m),
|
|
4589
4593
|
style: { transform: "translateY(0)" }
|
|
4590
4594
|
}, {
|
|
4591
4595
|
default: r(() => {
|
|
4592
|
-
var
|
|
4596
|
+
var b, h, d;
|
|
4593
4597
|
return [
|
|
4594
4598
|
V("a", {
|
|
4595
4599
|
class: "d-flex align-center text-decoration-none py-2 px-4 ms-n4 flex-1-0 me-n4 position-relative",
|
|
4596
|
-
href: (
|
|
4600
|
+
href: (b = e(l)) == null ? void 0 : b.metadata.url,
|
|
4597
4601
|
rel: "noopener noreferrer",
|
|
4598
4602
|
style: { color: "inherit" },
|
|
4599
4603
|
target: "_blank"
|
|
@@ -4601,11 +4605,11 @@ const qe = G("settings", () => {
|
|
|
4601
4605
|
i(oe, {
|
|
4602
4606
|
class: "me-4",
|
|
4603
4607
|
icon: "$vuetify",
|
|
4604
|
-
image: e(
|
|
4608
|
+
image: e(p),
|
|
4605
4609
|
size: "24"
|
|
4606
4610
|
}, null, 8, ["image"]),
|
|
4607
|
-
V("div", null, S((
|
|
4608
|
-
(
|
|
4611
|
+
V("div", null, S((h = e(l)) == null ? void 0 : h.metadata.text), 1),
|
|
4612
|
+
(d = e(l)) != null && d.metadata.advertisement ? (c(), _(ie, {
|
|
4609
4613
|
key: 0,
|
|
4610
4614
|
class: "ms-auto me-n4 align-self-end mb-n2 py-1 ps-3",
|
|
4611
4615
|
rounded: "0 ts-lg",
|
|
@@ -4613,14 +4617,14 @@ const qe = G("settings", () => {
|
|
|
4613
4617
|
text: "SPONSORED",
|
|
4614
4618
|
variant: "flat"
|
|
4615
4619
|
})) : C("", !0)
|
|
4616
|
-
], 8,
|
|
4620
|
+
], 8, ra)
|
|
4617
4621
|
];
|
|
4618
4622
|
}),
|
|
4619
4623
|
_: 1
|
|
4620
4624
|
}, 8, ["color", "image"]);
|
|
4621
4625
|
};
|
|
4622
4626
|
}
|
|
4623
|
-
}),
|
|
4627
|
+
}), ua = ["id"], ca = /* @__PURE__ */ k({
|
|
4624
4628
|
__name: "VoScript",
|
|
4625
4629
|
props: {
|
|
4626
4630
|
id: {
|
|
@@ -4638,27 +4642,27 @@ const qe = G("settings", () => {
|
|
|
4638
4642
|
},
|
|
4639
4643
|
emits: ["script:error", "script:load"],
|
|
4640
4644
|
setup(u, { emit: t }) {
|
|
4641
|
-
const s = u, o = t, a =
|
|
4642
|
-
return
|
|
4643
|
-
const l = document.createElement("script"),
|
|
4644
|
-
l.type = "text/javascript", l.id = s.scriptId, l.src = s.src, l.onload = () => o("script:load"), l.onerror =
|
|
4645
|
+
const s = u, o = t, a = T(), n = T();
|
|
4646
|
+
return ze(async () => {
|
|
4647
|
+
const l = document.createElement("script"), p = () => o("script:error");
|
|
4648
|
+
l.type = "text/javascript", l.id = s.scriptId, l.src = s.src, l.onload = () => o("script:load"), l.onerror = p, n.value = l;
|
|
4645
4649
|
}), Ne(() => {
|
|
4646
4650
|
n.value && a.value && a.value.appendChild(n.value);
|
|
4647
|
-
}),
|
|
4651
|
+
}), Zt(() => {
|
|
4648
4652
|
n.value && a.value && a.value.removeChild(n.value);
|
|
4649
|
-
}), (l,
|
|
4653
|
+
}), (l, p) => (c(), L("div", {
|
|
4650
4654
|
id: u.id,
|
|
4651
4655
|
ref_key: "rootEl",
|
|
4652
4656
|
ref: a
|
|
4653
|
-
}, null, 8,
|
|
4657
|
+
}, null, 8, ua));
|
|
4654
4658
|
}
|
|
4655
|
-
}),
|
|
4659
|
+
}), da = ["href", "title"], pa = {
|
|
4656
4660
|
class: "text-caption text-disabled",
|
|
4657
4661
|
style: { position: "absolute", right: "16px" }
|
|
4658
|
-
},
|
|
4662
|
+
}, ma = /* @__PURE__ */ k({
|
|
4659
4663
|
__name: "VoSocialFooter",
|
|
4660
4664
|
setup(u) {
|
|
4661
|
-
const t =
|
|
4665
|
+
const t = We(), s = [
|
|
4662
4666
|
{
|
|
4663
4667
|
title: "Vuetify Documentation",
|
|
4664
4668
|
icon: "$vuetify",
|
|
@@ -4666,7 +4670,7 @@ const qe = G("settings", () => {
|
|
|
4666
4670
|
},
|
|
4667
4671
|
{
|
|
4668
4672
|
title: "Vuetify Support",
|
|
4669
|
-
icon: `svg:${
|
|
4673
|
+
icon: `svg:${zo}`,
|
|
4670
4674
|
href: "https://support.vuetifyjs.com/"
|
|
4671
4675
|
},
|
|
4672
4676
|
{
|
|
@@ -4691,8 +4695,8 @@ const qe = G("settings", () => {
|
|
|
4691
4695
|
}
|
|
4692
4696
|
];
|
|
4693
4697
|
return (o, a) => {
|
|
4694
|
-
const n =
|
|
4695
|
-
return c(),
|
|
4698
|
+
const n = zt;
|
|
4699
|
+
return c(), _(n, {
|
|
4696
4700
|
class: "vo-footer",
|
|
4697
4701
|
height: "40",
|
|
4698
4702
|
image: e(t).suit.footer
|
|
@@ -4710,8 +4714,8 @@ const qe = G("settings", () => {
|
|
|
4710
4714
|
icon: l.icon,
|
|
4711
4715
|
size: l.icon === "$vuetify" ? 24 : 16
|
|
4712
4716
|
}, null, 8, ["icon", "size"])
|
|
4713
|
-
], 8,
|
|
4714
|
-
V("div",
|
|
4717
|
+
], 8, da)), 64)),
|
|
4718
|
+
V("div", pa, [
|
|
4715
4719
|
B(" © 2016-" + S((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
|
|
4716
4720
|
a[0] || (a[0] = V("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1))
|
|
4717
4721
|
])
|
|
@@ -4728,55 +4732,55 @@ const qe = G("settings", () => {
|
|
|
4728
4732
|
]), 1032, ["image"]);
|
|
4729
4733
|
};
|
|
4730
4734
|
}
|
|
4731
|
-
}),
|
|
4732
|
-
const u =
|
|
4735
|
+
}), fa = /* @__PURE__ */ rt(ma, [["__scopeId", "data-v-d01d30e4"]]), va = G("spots", () => {
|
|
4736
|
+
const u = K(), t = it(), s = T([]), o = T([]), a = T(), n = D(!1), l = w(() => a.value ? a.value : s.value.find(({
|
|
4733
4737
|
metadata: {
|
|
4734
|
-
site:
|
|
4735
|
-
active:
|
|
4738
|
+
site: b,
|
|
4739
|
+
active: h
|
|
4736
4740
|
}
|
|
4737
|
-
}) =>
|
|
4738
|
-
async function
|
|
4741
|
+
}) => h ? b.includes("dev") && !1 || b.includes("*") ? !0 : b.some((d) => t.id.includes(d)) : !1));
|
|
4742
|
+
async function p() {
|
|
4739
4743
|
try {
|
|
4740
4744
|
n.value = !0;
|
|
4741
|
-
const
|
|
4742
|
-
s.value =
|
|
4745
|
+
const b = await u.get("/one/spots");
|
|
4746
|
+
s.value = b.spots;
|
|
4743
4747
|
} catch {
|
|
4744
4748
|
} finally {
|
|
4745
4749
|
n.value = !1;
|
|
4746
4750
|
}
|
|
4747
4751
|
return s.value;
|
|
4748
4752
|
}
|
|
4749
|
-
async function
|
|
4753
|
+
async function m(b) {
|
|
4750
4754
|
try {
|
|
4751
4755
|
n.value = !0;
|
|
4752
|
-
const
|
|
4753
|
-
return a.value =
|
|
4756
|
+
const h = await u.get(`/one/admin/spots/${b}`);
|
|
4757
|
+
return a.value = h.spot, h.spot;
|
|
4754
4758
|
} catch {
|
|
4755
4759
|
} finally {
|
|
4756
4760
|
n.value = !1;
|
|
4757
4761
|
}
|
|
4758
4762
|
}
|
|
4759
|
-
async function v(
|
|
4763
|
+
async function v(b) {
|
|
4760
4764
|
try {
|
|
4761
4765
|
n.value = !0;
|
|
4762
|
-
const
|
|
4766
|
+
const h = await u.form(
|
|
4763
4767
|
"/one/admin/spots",
|
|
4764
|
-
|
|
4768
|
+
b
|
|
4765
4769
|
);
|
|
4766
|
-
return a.value =
|
|
4770
|
+
return a.value = h.spot, h.spot;
|
|
4767
4771
|
} catch {
|
|
4768
4772
|
} finally {
|
|
4769
4773
|
n.value = !1;
|
|
4770
4774
|
}
|
|
4771
4775
|
}
|
|
4772
|
-
async function
|
|
4776
|
+
async function g(b, h) {
|
|
4773
4777
|
try {
|
|
4774
4778
|
n.value = !0;
|
|
4775
|
-
const
|
|
4776
|
-
`/one/admin/spots/${
|
|
4777
|
-
|
|
4779
|
+
const d = await u.form(
|
|
4780
|
+
`/one/admin/spots/${b}`,
|
|
4781
|
+
h
|
|
4778
4782
|
);
|
|
4779
|
-
return a.value =
|
|
4783
|
+
return a.value = d.spot, d.spot;
|
|
4780
4784
|
} catch {
|
|
4781
4785
|
} finally {
|
|
4782
4786
|
n.value = !1;
|
|
@@ -4784,11 +4788,11 @@ const qe = G("settings", () => {
|
|
|
4784
4788
|
}
|
|
4785
4789
|
async function f() {
|
|
4786
4790
|
}
|
|
4787
|
-
async function
|
|
4791
|
+
async function $() {
|
|
4788
4792
|
try {
|
|
4789
4793
|
n.value = !0;
|
|
4790
|
-
const
|
|
4791
|
-
o.value =
|
|
4794
|
+
const b = await u.get("/one/admin/spots");
|
|
4795
|
+
o.value = b.spots;
|
|
4792
4796
|
} catch {
|
|
4793
4797
|
} finally {
|
|
4794
4798
|
n.value = !1;
|
|
@@ -4801,17 +4805,17 @@ const qe = G("settings", () => {
|
|
|
4801
4805
|
isLoading: n,
|
|
4802
4806
|
spot: l,
|
|
4803
4807
|
record: a,
|
|
4804
|
-
admin:
|
|
4805
|
-
index:
|
|
4806
|
-
show:
|
|
4808
|
+
admin: $,
|
|
4809
|
+
index: p,
|
|
4810
|
+
show: m,
|
|
4807
4811
|
store: v,
|
|
4808
|
-
update:
|
|
4812
|
+
update: g,
|
|
4809
4813
|
destroy: f
|
|
4810
4814
|
};
|
|
4811
|
-
}),
|
|
4815
|
+
}), ha = ["href"], ga = /* @__PURE__ */ k({
|
|
4812
4816
|
__name: "VoSpot",
|
|
4813
4817
|
setup(u) {
|
|
4814
|
-
const t =
|
|
4818
|
+
const t = va();
|
|
4815
4819
|
return (s, o) => {
|
|
4816
4820
|
var a;
|
|
4817
4821
|
return e(t).spot ? (c(), L("a", {
|
|
@@ -4827,10 +4831,10 @@ const qe = G("settings", () => {
|
|
|
4827
4831
|
src: (a = e(t).spot.metadata.image) == null ? void 0 : a.url,
|
|
4828
4832
|
width: "225"
|
|
4829
4833
|
}, null, 8, ["color", "src"])
|
|
4830
|
-
], 8,
|
|
4834
|
+
], 8, ha)) : C("", !0);
|
|
4831
4835
|
};
|
|
4832
4836
|
}
|
|
4833
|
-
}),
|
|
4837
|
+
}), li = {
|
|
4834
4838
|
discord: ["M22,24L16.75,19L17.38,21H4.5A2.5,2.5 0 0,1 2,18.5V3.5A2.5,2.5 0 0,1 4.5,1H19.5A2.5,2.5 0 0,1 22,3.5V24M12,6.8C9.32,6.8 7.44,7.95 7.44,7.95C8.47,7.03 10.27,6.5 10.27,6.5L10.1,6.33C8.41,6.36 6.88,7.53 6.88,7.53C5.16,11.12 5.27,14.22 5.27,14.22C6.67,16.03 8.75,15.9 8.75,15.9L9.46,15C8.21,14.73 7.42,13.62 7.42,13.62C7.42,13.62 9.3,14.9 12,14.9C14.7,14.9 16.58,13.62 16.58,13.62C16.58,13.62 15.79,14.73 14.54,15L15.25,15.9C15.25,15.9 17.33,16.03 18.73,14.22C18.73,14.22 18.84,11.12 17.12,7.53C17.12,7.53 15.59,6.36 13.9,6.33L13.73,6.5C13.73,6.5 15.53,7.03 16.56,7.95C16.56,7.95 14.68,6.8 12,6.8M9.93,10.59C10.58,10.59 11.11,11.16 11.1,11.86C11.1,12.55 10.58,13.13 9.93,13.13C9.29,13.13 8.77,12.55 8.77,11.86C8.77,11.16 9.28,10.59 9.93,10.59M14.1,10.59C14.75,10.59 15.27,11.16 15.27,11.86C15.27,12.55 14.75,13.13 14.1,13.13C13.46,13.13 12.94,12.55 12.94,11.86C12.94,11.16 13.45,10.59 14.1,10.59Z"],
|
|
4835
4839
|
github: ["M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z"],
|
|
4836
4840
|
reddit: "M14.5 15.41C14.58 15.5 14.58 15.69 14.5 15.8C13.77 16.5 12.41 16.56 12 16.56C11.61 16.56 10.25 16.5 9.54 15.8C9.44 15.69 9.44 15.5 9.54 15.41C9.65 15.31 9.82 15.31 9.92 15.41C10.38 15.87 11.33 16 12 16C12.69 16 13.66 15.87 14.1 15.41C14.21 15.31 14.38 15.31 14.5 15.41M10.75 13.04C10.75 12.47 10.28 12 9.71 12C9.14 12 8.67 12.47 8.67 13.04C8.67 13.61 9.14 14.09 9.71 14.08C10.28 14.08 10.75 13.61 10.75 13.04M14.29 12C13.72 12 13.25 12.5 13.25 13.05S13.72 14.09 14.29 14.09C14.86 14.09 15.33 13.61 15.33 13.05C15.33 12.5 14.86 12 14.29 12M22 12C22 17.5 17.5 22 12 22S2 17.5 2 12C2 6.5 6.5 2 12 2S22 6.5 22 12M18.67 12C18.67 11.19 18 10.54 17.22 10.54C16.82 10.54 16.46 10.7 16.2 10.95C15.2 10.23 13.83 9.77 12.3 9.71L12.97 6.58L15.14 7.05C15.16 7.6 15.62 8.04 16.18 8.04C16.75 8.04 17.22 7.57 17.22 7C17.22 6.43 16.75 5.96 16.18 5.96C15.77 5.96 15.41 6.2 15.25 6.55L12.82 6.03C12.75 6 12.68 6.03 12.63 6.07C12.57 6.11 12.54 6.17 12.53 6.24L11.79 9.72C10.24 9.77 8.84 10.23 7.82 10.96C7.56 10.71 7.2 10.56 6.81 10.56C6 10.56 5.35 11.21 5.35 12C5.35 12.61 5.71 13.11 6.21 13.34C6.19 13.5 6.18 13.62 6.18 13.78C6.18 16 8.79 17.85 12 17.85C15.23 17.85 17.85 16.03 17.85 13.78C17.85 13.64 17.84 13.5 17.81 13.34C18.31 13.11 18.67 12.6 18.67 12Z",
|
|
@@ -4851,71 +4855,71 @@ const qe = G("settings", () => {
|
|
|
4851
4855
|
["M12.435 14.3194L22 4L9.26479 7.61064L12.435 14.3194Z", 1],
|
|
4852
4856
|
["M2 4L6.87046 12.2799L9.26479 7.61064L2 4Z", 1]
|
|
4853
4857
|
]
|
|
4854
|
-
},
|
|
4855
|
-
const u = H(), t =
|
|
4856
|
-
|
|
4858
|
+
}, ui = G("bins", () => {
|
|
4859
|
+
const u = H(), t = K(), s = T([]), o = T(), a = D(!1), n = D(-1), l = w(() => !u.user || !o.value ? !1 : u.user.id === o.value.owner.id), p = w(() => s.value.filter((d) => d.favorite)), m = w(() => s.value.filter((d) => d.pinned));
|
|
4860
|
+
P(o, () => {
|
|
4857
4861
|
window.clearTimeout(n.value), n.value = window.setTimeout(() => {
|
|
4858
|
-
!o.value || !l.value ||
|
|
4862
|
+
!o.value || !l.value || $(o.value, o.value.id);
|
|
4859
4863
|
}, 100);
|
|
4860
4864
|
}, { deep: !0 });
|
|
4861
4865
|
async function v() {
|
|
4862
4866
|
try {
|
|
4863
4867
|
a.value = !0;
|
|
4864
|
-
const
|
|
4865
|
-
s.value =
|
|
4868
|
+
const d = await t.get("/one/bins");
|
|
4869
|
+
s.value = d.bins;
|
|
4866
4870
|
} catch {
|
|
4867
4871
|
} finally {
|
|
4868
4872
|
a.value = !1;
|
|
4869
4873
|
}
|
|
4870
4874
|
return s.value;
|
|
4871
4875
|
}
|
|
4872
|
-
async function
|
|
4876
|
+
async function g(d) {
|
|
4873
4877
|
try {
|
|
4874
|
-
a.value = !0, await t.delete(`/one/bins/${
|
|
4878
|
+
a.value = !0, await t.delete(`/one/bins/${d}`), s.value = s.value.filter((y) => y.id !== d);
|
|
4875
4879
|
} catch {
|
|
4876
4880
|
} finally {
|
|
4877
4881
|
a.value = !1;
|
|
4878
4882
|
}
|
|
4879
4883
|
return !0;
|
|
4880
4884
|
}
|
|
4881
|
-
async function f(
|
|
4885
|
+
async function f(d) {
|
|
4882
4886
|
try {
|
|
4883
4887
|
a.value = !0;
|
|
4884
|
-
const
|
|
4885
|
-
return s.value.push(
|
|
4888
|
+
const y = await t.post("/one/bins", { bin: d });
|
|
4889
|
+
return s.value.push(y.bin), o.value = y.bin, y;
|
|
4886
4890
|
} catch {
|
|
4887
4891
|
} finally {
|
|
4888
4892
|
a.value = !1;
|
|
4889
4893
|
}
|
|
4890
|
-
return { bin:
|
|
4894
|
+
return { bin: d };
|
|
4891
4895
|
}
|
|
4892
|
-
async function
|
|
4896
|
+
async function $(d, y) {
|
|
4893
4897
|
try {
|
|
4894
4898
|
a.value = !0;
|
|
4895
|
-
const A = await t.post(`/one/bins/${
|
|
4896
|
-
s.value.splice(
|
|
4899
|
+
const A = await t.post(`/one/bins/${y}`, { bin: d }), U = s.value.findIndex((F) => F.id === y);
|
|
4900
|
+
s.value.splice(U, 1, A.bin);
|
|
4897
4901
|
} catch {
|
|
4898
4902
|
} finally {
|
|
4899
4903
|
a.value = !1;
|
|
4900
4904
|
}
|
|
4901
|
-
return { bin:
|
|
4905
|
+
return { bin: d };
|
|
4902
4906
|
}
|
|
4903
|
-
async function
|
|
4907
|
+
async function b(d, y) {
|
|
4904
4908
|
try {
|
|
4905
4909
|
a.value = !0;
|
|
4906
|
-
const A =
|
|
4910
|
+
const A = y ? await $(d, y) : await f(d);
|
|
4907
4911
|
o.value = A.bin;
|
|
4908
4912
|
} catch {
|
|
4909
4913
|
} finally {
|
|
4910
4914
|
a.value = !1;
|
|
4911
4915
|
}
|
|
4912
|
-
return { bin:
|
|
4916
|
+
return { bin: d };
|
|
4913
4917
|
}
|
|
4914
|
-
async function
|
|
4918
|
+
async function h(d) {
|
|
4915
4919
|
try {
|
|
4916
4920
|
a.value = !0;
|
|
4917
|
-
const
|
|
4918
|
-
o.value =
|
|
4921
|
+
const y = await t.get(`/one/bins/${d}`);
|
|
4922
|
+
o.value = y.bin;
|
|
4919
4923
|
} catch {
|
|
4920
4924
|
} finally {
|
|
4921
4925
|
a.value = !1;
|
|
@@ -4925,19 +4929,19 @@ const qe = G("settings", () => {
|
|
|
4925
4929
|
return {
|
|
4926
4930
|
isLoading: a,
|
|
4927
4931
|
isOwner: l,
|
|
4928
|
-
pinned:
|
|
4929
|
-
favorites:
|
|
4932
|
+
pinned: m,
|
|
4933
|
+
favorites: p,
|
|
4930
4934
|
all: s,
|
|
4931
4935
|
create: f,
|
|
4932
|
-
delete:
|
|
4936
|
+
delete: g,
|
|
4933
4937
|
current: o,
|
|
4934
|
-
find:
|
|
4938
|
+
find: h,
|
|
4935
4939
|
get: v,
|
|
4936
|
-
update:
|
|
4937
|
-
updateOrCreate:
|
|
4940
|
+
update: $,
|
|
4941
|
+
updateOrCreate: b
|
|
4938
4942
|
};
|
|
4939
|
-
}),
|
|
4940
|
-
const u =
|
|
4943
|
+
}), ci = G("products", () => {
|
|
4944
|
+
const u = K(), t = T([]), s = w(() => t.value.filter((n) => n.product_type === "Themes"));
|
|
4941
4945
|
async function o() {
|
|
4942
4946
|
if (t.value.length) return t.value;
|
|
4943
4947
|
try {
|
|
@@ -4956,32 +4960,125 @@ const qe = G("settings", () => {
|
|
|
4956
4960
|
index: o,
|
|
4957
4961
|
randomize: a
|
|
4958
4962
|
};
|
|
4963
|
+
}), di = G("sponsors", () => {
|
|
4964
|
+
const u = T([]), t = T([]), s = T([]), o = T(!1), a = T(), n = K(), l = w(() => {
|
|
4965
|
+
const h = {};
|
|
4966
|
+
for (const d of u.value) {
|
|
4967
|
+
const y = d.metadata.tier;
|
|
4968
|
+
h[y] || (h[y] = []), h[y].push(d);
|
|
4969
|
+
}
|
|
4970
|
+
return h;
|
|
4971
|
+
});
|
|
4972
|
+
Gt(p), ze(p);
|
|
4973
|
+
async function p() {
|
|
4974
|
+
try {
|
|
4975
|
+
o.value = !0;
|
|
4976
|
+
const h = await n.get("/one/sponsors");
|
|
4977
|
+
t.value = h.sponsors;
|
|
4978
|
+
} catch {
|
|
4979
|
+
} finally {
|
|
4980
|
+
o.value = !1;
|
|
4981
|
+
}
|
|
4982
|
+
return t.value;
|
|
4983
|
+
}
|
|
4984
|
+
async function m(h) {
|
|
4985
|
+
try {
|
|
4986
|
+
o.value = !0;
|
|
4987
|
+
const d = await n.get(`/one/admin/sponsors/${h}`);
|
|
4988
|
+
return a.value = d.sponsor, d.sponsor;
|
|
4989
|
+
} catch {
|
|
4990
|
+
} finally {
|
|
4991
|
+
o.value = !1;
|
|
4992
|
+
}
|
|
4993
|
+
}
|
|
4994
|
+
async function v(h) {
|
|
4995
|
+
try {
|
|
4996
|
+
o.value = !0;
|
|
4997
|
+
const d = await n.form(
|
|
4998
|
+
"/one/admin/sponsors",
|
|
4999
|
+
h
|
|
5000
|
+
);
|
|
5001
|
+
return a.value = d.sponsor, d.sponsor;
|
|
5002
|
+
} catch {
|
|
5003
|
+
} finally {
|
|
5004
|
+
o.value = !1;
|
|
5005
|
+
}
|
|
5006
|
+
}
|
|
5007
|
+
async function g(h, d) {
|
|
5008
|
+
try {
|
|
5009
|
+
o.value = !0;
|
|
5010
|
+
const y = await n.form(
|
|
5011
|
+
`/one/admin/sponsors/${h}`,
|
|
5012
|
+
d
|
|
5013
|
+
);
|
|
5014
|
+
return a.value = y.sponsor, y.sponsor;
|
|
5015
|
+
} catch {
|
|
5016
|
+
} finally {
|
|
5017
|
+
o.value = !1;
|
|
5018
|
+
}
|
|
5019
|
+
}
|
|
5020
|
+
async function f() {
|
|
5021
|
+
}
|
|
5022
|
+
async function $() {
|
|
5023
|
+
try {
|
|
5024
|
+
o.value = !0;
|
|
5025
|
+
const h = await n.get("/one/admin/sponsors");
|
|
5026
|
+
s.value = h.sponsors;
|
|
5027
|
+
} catch {
|
|
5028
|
+
} finally {
|
|
5029
|
+
o.value = !1;
|
|
5030
|
+
}
|
|
5031
|
+
return s.value;
|
|
5032
|
+
}
|
|
5033
|
+
function b(h) {
|
|
5034
|
+
return u.value.find((d) => d.slug === h);
|
|
5035
|
+
}
|
|
5036
|
+
return {
|
|
5037
|
+
isLoading: o,
|
|
5038
|
+
all: t,
|
|
5039
|
+
aall: s,
|
|
5040
|
+
sponsors: u,
|
|
5041
|
+
byTier: l,
|
|
5042
|
+
record: a,
|
|
5043
|
+
bySlug: b,
|
|
5044
|
+
admin: $,
|
|
5045
|
+
index: p,
|
|
5046
|
+
show: m,
|
|
5047
|
+
store: v,
|
|
5048
|
+
update: g,
|
|
5049
|
+
destroy: f
|
|
5050
|
+
};
|
|
4959
5051
|
});
|
|
4960
|
-
function
|
|
5052
|
+
function pi() {
|
|
4961
5053
|
function u(t) {
|
|
4962
|
-
t.component("VoAppBar",
|
|
5054
|
+
t.component("VoAppBar", Ys), t.component("VoAuthBtn", Nt), t.component("VoAuthCard", Tt), t.component("VoAuthDialog", Dt), t.component("VoAuthListItem", Ut), t.component("VoIconBin", Mt), t.component("VoIconIssues", Bt), t.component("VoNotificationsBanner", Xs), t.component("VoPromotionsCardHighlight", ea), t.component("VoPromotionsCardVuetify", sa), t.component("VoPromotionsFooter", la), t.component("VoScript", ca), t.component("VoSocialFooter", fa), t.component("VoSpot", ga);
|
|
4963
5055
|
}
|
|
4964
5056
|
return { install: u };
|
|
4965
5057
|
}
|
|
4966
|
-
function
|
|
5058
|
+
function mi(u, t) {
|
|
4967
5059
|
return function(s) {
|
|
4968
5060
|
const o = s.store;
|
|
4969
5061
|
o.url = t, o.$id === "site" && (o.id = u);
|
|
4970
5062
|
};
|
|
4971
5063
|
}
|
|
4972
5064
|
export {
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
5065
|
+
li as aliases,
|
|
5066
|
+
pi as createOne,
|
|
5067
|
+
mi as one,
|
|
4976
5068
|
H as useAuthStore,
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
5069
|
+
Ge as useBannersStore,
|
|
5070
|
+
ui as useBinsStore,
|
|
5071
|
+
ns as useDownloadsStore,
|
|
5072
|
+
K as useHttpStore,
|
|
5073
|
+
qe as useNotificationsStore,
|
|
4980
5074
|
z as useOneStore,
|
|
4981
|
-
|
|
5075
|
+
ci as useProductsStore,
|
|
4982
5076
|
lt as usePromotionsStore,
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
5077
|
+
St as useQueueStore,
|
|
5078
|
+
We as useSettingsStore,
|
|
5079
|
+
it as useSiteStore,
|
|
5080
|
+
di as useSponsorsStore,
|
|
5081
|
+
va as useSpotsStore,
|
|
5082
|
+
xe as useTeamStore,
|
|
4986
5083
|
R as useUserStore
|
|
4987
5084
|
};
|