@vuetify/one 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1144 -1138
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { reactive as wt, watch as B, toRefs as St, ref as
|
|
2
|
-
import { mdiDiscord as Qe, mdiGithub as Ye, mdiSync as At, mdiSyncOff as Ot, mdiLogoutVariant as Nt, mdiFullscreenExit as Bt, mdiFullscreen as Ut, mdiCheck as
|
|
3
|
-
import { useRouter as
|
|
1
|
+
import { reactive as wt, watch as B, toRefs as St, ref as O, shallowRef as A, computed as S, defineComponent as $, openBlock as p, createBlock as _, unref as e, createSlots as R, withCtx as r, createElementVNode as g, toDisplayString as C, createVNode as s, createTextVNode as T, renderSlot as z, normalizeStyle as ot, createCommentVNode as w, withModifiers as Ee, mergeModels as nt, useModel as re, createElementBlock as L, Fragment as U, onMounted as qe, nextTick as pe, renderList as ne, mergeProps as H, isRef as se, resolveComponent as We, withDirectives as De, vShow as Ge, normalizeClass as Ct, pushScopeId as Lt, popScopeId as It, onBeforeMount as Ze, onBeforeUnmount as Dt } from "vue";
|
|
2
|
+
import { mdiDiscord as Qe, mdiGithub as Ye, mdiSync as At, mdiSyncOff as Ot, mdiLogoutVariant as Nt, mdiFullscreenExit as Bt, mdiFullscreen as Ut, mdiCheck as Ae, mdiHome as zt, mdiTextBox as Ft, mdiSelect as Tt, mdiSpaceInvaders as st, mdiImageFilterHdr as at, mdiRocketLaunchOutline as it, mdiWhiteBalanceSunny as jt, mdiWeatherNight as Mt, mdiDesktopTowerMonitor as Pt, mdiContrastCircle as Ht, mdiCog as Rt, mdiCogOutline as Et, mdiFileDocument as qt, mdiCreditCardSettingsOutline as Wt, mdiRocketOutline as Gt, mdiCheckCircleOutline as Ie, mdiCreditCard as Zt, mdiReload as Qt, mdiPlaylistCheck as Yt, mdiCreditCardOutline as Jt, mdiMedal as Xt, mdiOpenInNew as Oe, mdiHandHeart as Kt, mdiHandHeartOutline as eo, mdiEmailOpenOutline as rt, mdiEmailVariant as lt, mdiBell as to, mdiInboxOutline as oo, mdiInboxFullOutline as no, mdiBillboard as so, mdiBellOutline as ao, mdiViewDashboardOutline as io, mdiCrown as ro, mdiArrowULeftBottom as lo, mdiLogin as co, mdiShieldStarOutline as uo, mdiReddit as po } from "@mdi/js";
|
|
3
|
+
import { useRouter as Ne, useRoute as mo } from "vue-router";
|
|
4
4
|
import { defineStore as W } from "pinia";
|
|
5
|
-
import { merge as
|
|
6
|
-
import { VListItem as
|
|
5
|
+
import { merge as Me } from "lodash-es";
|
|
6
|
+
import { VListItem as Ve, VList as ae, VListItemTitle as ct, VListItemSubtitle as fo } from "vuetify/lib/components/VList/index.mjs";
|
|
7
7
|
import { VAvatar as Q } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
8
8
|
import { VCard as E, VCardTitle as vo, VCardSubtitle as ho, VCardText as _e } from "vuetify/lib/components/VCard/index.mjs";
|
|
9
9
|
import { VDialog as ut } from "vuetify/lib/components/VDialog/index.mjs";
|
|
@@ -12,20 +12,20 @@ import { VBtn as q } from "vuetify/lib/components/VBtn/index.mjs";
|
|
|
12
12
|
import { VProgressCircular as _o } from "vuetify/lib/components/VProgressCircular/index.mjs";
|
|
13
13
|
import { VSheet as ye } from "vuetify/lib/components/VSheet/index.mjs";
|
|
14
14
|
import { VSwitch as dt } from "vuetify/lib/components/VSwitch/index.mjs";
|
|
15
|
-
import { VFadeTransition as
|
|
16
|
-
import { useDisplay as le, useTheme as Xe, useDate as
|
|
15
|
+
import { VFadeTransition as Be, VExpandTransition as me, VExpandXTransition as go } from "vuetify/lib/components/transitions/index.mjs";
|
|
16
|
+
import { useDisplay as le, useTheme as Xe, useDate as Ue } from "vuetify";
|
|
17
17
|
import { VDivider as Z } from "vuetify/lib/components/VDivider/index.mjs";
|
|
18
18
|
import { VIcon as D } from "vuetify/lib/components/VIcon/index.mjs";
|
|
19
|
-
import { VLabel as
|
|
19
|
+
import { VLabel as He } from "vuetify/lib/components/VLabel/index.mjs";
|
|
20
20
|
import { VChip as te } from "vuetify/lib/components/VChip/index.mjs";
|
|
21
21
|
import { VChipGroup as yo } from "vuetify/lib/components/VChipGroup/index.mjs";
|
|
22
22
|
import { VSelect as bo } from "vuetify/lib/components/VSelect/index.mjs";
|
|
23
23
|
import { VRow as de, VCol as K, VContainer as tt } from "vuetify/lib/components/VGrid/index.mjs";
|
|
24
|
-
import { VHover as
|
|
24
|
+
import { VHover as ze } from "vuetify/lib/components/VHover/index.mjs";
|
|
25
25
|
import { VImg as Y } from "vuetify/lib/components/VImg/index.mjs";
|
|
26
|
-
import { VItemGroup as pt, VItem as
|
|
27
|
-
import { VLayout as
|
|
28
|
-
import { VMain as
|
|
26
|
+
import { VItemGroup as pt, VItem as Re } from "vuetify/lib/components/VItemGroup/index.mjs";
|
|
27
|
+
import { VLayout as ke } from "vuetify/lib/components/VLayout/index.mjs";
|
|
28
|
+
import { VMain as $e } from "vuetify/lib/components/VMain/index.mjs";
|
|
29
29
|
import { VDataTableVirtual as Vo } from "vuetify/lib/components/VDataTable/index.mjs";
|
|
30
30
|
import { VSkeletonLoader as be } from "vuetify/lib/components/VSkeletonLoader/index.mjs";
|
|
31
31
|
import { VWindow as mt, VWindowItem as ge } from "vuetify/lib/components/VWindow/index.mjs";
|
|
@@ -44,41 +44,41 @@ const ce = W("http", {
|
|
|
44
44
|
url: ""
|
|
45
45
|
}),
|
|
46
46
|
actions: {
|
|
47
|
-
async fetch(c,
|
|
47
|
+
async fetch(c, t = {}) {
|
|
48
48
|
const o = await fetch(`${this.url}${c}`, {
|
|
49
49
|
credentials: "include",
|
|
50
|
-
...
|
|
50
|
+
...t
|
|
51
51
|
});
|
|
52
52
|
return o.status === 204 ? o : o.json();
|
|
53
53
|
},
|
|
54
|
-
async post(c,
|
|
54
|
+
async post(c, t, o = {}) {
|
|
55
55
|
return this.fetch(c, {
|
|
56
56
|
method: "POST",
|
|
57
57
|
headers: {
|
|
58
58
|
"Content-Type": "application/json"
|
|
59
59
|
},
|
|
60
|
-
body: JSON.stringify(
|
|
60
|
+
body: JSON.stringify(t),
|
|
61
61
|
...o
|
|
62
62
|
});
|
|
63
63
|
},
|
|
64
|
-
async form(c,
|
|
64
|
+
async form(c, t, o = {}) {
|
|
65
65
|
return this.fetch(c, {
|
|
66
66
|
method: "POST",
|
|
67
|
-
body:
|
|
67
|
+
body: t,
|
|
68
68
|
...o
|
|
69
69
|
});
|
|
70
70
|
},
|
|
71
|
-
async get(c,
|
|
72
|
-
return this.fetch(c,
|
|
71
|
+
async get(c, t = {}) {
|
|
72
|
+
return this.fetch(c, t);
|
|
73
73
|
},
|
|
74
|
-
async delete(c,
|
|
74
|
+
async delete(c, t = {}) {
|
|
75
75
|
return this.fetch(c, {
|
|
76
76
|
method: "DELETE",
|
|
77
|
-
...
|
|
77
|
+
...t
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
}),
|
|
81
|
+
}), Pe = typeof window < "u", Le = {
|
|
82
82
|
v: 5,
|
|
83
83
|
api: "link-only",
|
|
84
84
|
avatar: "",
|
|
@@ -116,105 +116,105 @@ const ce = W("http", {
|
|
|
116
116
|
jobs: null
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
},
|
|
120
|
-
const c = wt(
|
|
119
|
+
}, F = W("user", () => {
|
|
120
|
+
const c = wt(Me({}, Le));
|
|
121
121
|
B(c, o);
|
|
122
|
-
function
|
|
123
|
-
if (!
|
|
122
|
+
function t() {
|
|
123
|
+
if (!Pe)
|
|
124
124
|
return;
|
|
125
125
|
const n = localStorage.getItem("vuetify@user"), i = n ? JSON.parse(n) : {};
|
|
126
126
|
let l = i.v === c.v;
|
|
127
|
-
i.v || (i.pwaRefresh = !0, typeof i.api == "boolean" && (i.api = i.api ? "inline" : "link-only"), typeof i.rtl == "boolean" && (i.direction = i.rtl ? "rtl" : "ltr", delete i.rtl), typeof i.theme == "object" && (i.mixedTheme = i.theme.mixed, i.theme = i.theme.system ? "system" : i.theme.dark ? "dark" : "light"), Array.isArray(i.notifications) && (i.notifications = { read: i.notifications }), typeof i.last == "object" && (i.notifications.last = i.last, delete i.last)), i.v === 1 && (Array.isArray(i.composition) && (i.composition = "composition"), Array.isArray(i.notifications.last.banner) || (i.notifications = i.notifications || {}, i.notifications.last = i.notifications.last || {}, i.notifications.last.banner = [])), i.v === 2 && (i.syncSettings = !0, i.disableAds = !1, i.v = 3), i.v === 3 && (i.quickbar = !1), i.v === 4 && (i.suits =
|
|
127
|
+
i.v || (i.pwaRefresh = !0, typeof i.api == "boolean" && (i.api = i.api ? "inline" : "link-only"), typeof i.rtl == "boolean" && (i.direction = i.rtl ? "rtl" : "ltr", delete i.rtl), typeof i.theme == "object" && (i.mixedTheme = i.theme.mixed, i.theme = i.theme.system ? "system" : i.theme.dark ? "dark" : "light"), Array.isArray(i.notifications) && (i.notifications = { read: i.notifications }), typeof i.last == "object" && (i.notifications.last = i.last, delete i.last)), i.v === 1 && (Array.isArray(i.composition) && (i.composition = "composition"), Array.isArray(i.notifications.last.banner) || (i.notifications = i.notifications || {}, i.notifications.last = i.notifications.last || {}, i.notifications.last.banner = [])), i.v === 2 && (i.syncSettings = !0, i.disableAds = !1, i.v = 3), i.v === 3 && (i.quickbar = !1), i.v === 4 && (i.suits = Le.suits, i.notifications.banners = Le.notifications.banners, l = !0), i.v = c.v, Object.assign(c, Me(c, i)), l && o();
|
|
128
128
|
}
|
|
129
129
|
function o() {
|
|
130
|
-
|
|
130
|
+
Pe && localStorage.setItem("vuetify@user", JSON.stringify(c, null, 2));
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
132
|
+
function a() {
|
|
133
|
+
Pe && (Object.assign(c, Me({}, Le)), o());
|
|
134
134
|
}
|
|
135
|
-
return
|
|
135
|
+
return t(), {
|
|
136
136
|
...St(c),
|
|
137
|
-
load:
|
|
137
|
+
load: t,
|
|
138
138
|
save: o,
|
|
139
|
-
reset:
|
|
139
|
+
reset: a
|
|
140
140
|
};
|
|
141
141
|
}), M = W("auth", () => {
|
|
142
|
-
const c =
|
|
142
|
+
const c = O(!1), t = O(null), o = ce(), a = F(), n = Ne(), i = A(!1), l = S(() => {
|
|
143
143
|
var m, v;
|
|
144
|
-
return !o.url || ((m =
|
|
144
|
+
return !o.url || ((m = t.value) == null ? void 0 : m.isAdmin) || !!((v = t.value) != null && v.sponsorships.some((b) => b.isActive));
|
|
145
145
|
});
|
|
146
|
-
let
|
|
147
|
-
B(
|
|
146
|
+
let d = !!V();
|
|
147
|
+
B(t, (m) => {
|
|
148
148
|
if (!(m != null && m.settings))
|
|
149
149
|
return;
|
|
150
150
|
const v = localStorage.getItem("vuetify@user") || "{}";
|
|
151
|
-
JSON.stringify(m.settings, null, 2) !== v && (
|
|
152
|
-
}),
|
|
153
|
-
|
|
151
|
+
JSON.stringify(m.settings, null, 2) !== v && (d = !0, Object.assign(a, m.settings));
|
|
152
|
+
}), a.$subscribe(() => {
|
|
153
|
+
d || f(), d = !1;
|
|
154
154
|
});
|
|
155
155
|
async function f() {
|
|
156
|
-
if (!(!
|
|
156
|
+
if (!(!t.value || !a.syncSettings))
|
|
157
157
|
try {
|
|
158
|
-
await o.post("/user/settings", { settings:
|
|
158
|
+
await o.post("/user/settings", { settings: a.$state });
|
|
159
159
|
} catch (m) {
|
|
160
160
|
console.error(m);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
async function
|
|
164
|
-
if (
|
|
165
|
-
return
|
|
166
|
-
i.value = !0,
|
|
163
|
+
async function u(m = !1) {
|
|
164
|
+
if (u.promise)
|
|
165
|
+
return u.promise;
|
|
166
|
+
i.value = !0, u.promise = fetch(`${o.url}/auth/verify`, {
|
|
167
167
|
credentials: "include",
|
|
168
168
|
headers: m ? {
|
|
169
169
|
"Cache-Control": "no-cache"
|
|
170
170
|
} : void 0
|
|
171
171
|
}).then(
|
|
172
172
|
async (v) => {
|
|
173
|
-
v.ok ?
|
|
173
|
+
v.ok ? t.value = (await v.json()).user : v.status === 401 ? t.value = null : console.error(v.statusText);
|
|
174
174
|
},
|
|
175
175
|
() => {
|
|
176
176
|
}
|
|
177
177
|
).finally(() => {
|
|
178
|
-
i.value = !1,
|
|
178
|
+
i.value = !1, u.promise = null;
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
u.promise = null;
|
|
182
182
|
async function h(m = "github") {
|
|
183
183
|
i.value = !0;
|
|
184
|
-
const v = `${o.url}/auth/${m}/redirect`,
|
|
184
|
+
const v = `${o.url}/auth/${m}/redirect`, b = 400, N = 600, j = window.screenX + (window.innerWidth - b) / 2, ie = window.screenY + (window.innerHeight - N) / 2, G = window.open(
|
|
185
185
|
"",
|
|
186
186
|
"vuetify:authorize:popup",
|
|
187
|
-
`popup,left=${
|
|
187
|
+
`popup,left=${j},top=${ie},width=${b},height=${N},resizable`
|
|
188
188
|
);
|
|
189
189
|
if (!G) {
|
|
190
190
|
console.error("Failed to open popup");
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
G.location.href = v;
|
|
194
|
-
let
|
|
194
|
+
let Se = -1, Ce = -1;
|
|
195
195
|
function he(oe) {
|
|
196
196
|
var x;
|
|
197
|
-
oe.origin === o.url && ((x = oe.data) == null ? void 0 : x.type) === "auth-response" && (oe.data.status === "success" ? (
|
|
197
|
+
oe.origin === o.url && ((x = oe.data) == null ? void 0 : x.type) === "auth-response" && (oe.data.status === "success" ? (t.value || localStorage.setItem("vuetify@lastLoginProvider", m), t.value = oe.data.body.user, n.push({
|
|
198
198
|
path: "/user/dashboard/",
|
|
199
199
|
query: n.currentRoute.value.query
|
|
200
200
|
}), f()) : console.error(oe.data.message), ue());
|
|
201
201
|
}
|
|
202
202
|
function ue() {
|
|
203
|
-
window.removeEventListener("message", he), window.clearInterval(
|
|
203
|
+
window.removeEventListener("message", he), window.clearInterval(Se), window.clearTimeout(Ce), G == null || G.close(), i.value = !1;
|
|
204
204
|
}
|
|
205
|
-
window.addEventListener("message", he),
|
|
205
|
+
window.addEventListener("message", he), Se = window.setInterval(() => {
|
|
206
206
|
!G || G.closed ? (console.error("Auth popup closed"), ue()) : G.postMessage({ type: "auth-request" }, "*");
|
|
207
|
-
}, 1e3),
|
|
207
|
+
}, 1e3), Ce = window.setTimeout(() => {
|
|
208
208
|
ue(), console.error("Auth timed out");
|
|
209
209
|
}, 120 * 1e3);
|
|
210
210
|
}
|
|
211
|
-
async function
|
|
211
|
+
async function k(m) {
|
|
212
212
|
i.value = !0;
|
|
213
213
|
const v = m ? `/auth/${m}/logout` : "/auth/logout";
|
|
214
214
|
try {
|
|
215
|
-
await o.post(v), await
|
|
216
|
-
} catch (
|
|
217
|
-
console.error(
|
|
215
|
+
await o.post(v), await u(!0), t.value = null;
|
|
216
|
+
} catch (b) {
|
|
217
|
+
console.error(b);
|
|
218
218
|
} finally {
|
|
219
219
|
n.push({
|
|
220
220
|
path: "/",
|
|
@@ -222,44 +222,44 @@ const ce = W("http", {
|
|
|
222
222
|
}), i.value = !1;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function y(m) {
|
|
226
226
|
var v;
|
|
227
|
-
return (v =
|
|
227
|
+
return (v = t.value) == null ? void 0 : v.identities.find((b) => b.provider === m);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function V() {
|
|
230
230
|
return localStorage.getItem("vuetify@lastLoginProvider");
|
|
231
231
|
}
|
|
232
|
-
return
|
|
233
|
-
user:
|
|
232
|
+
return u(), {
|
|
233
|
+
user: t,
|
|
234
234
|
url: o.url,
|
|
235
235
|
dialog: c,
|
|
236
236
|
isLoading: i,
|
|
237
|
-
findIdentity:
|
|
238
|
-
verify:
|
|
237
|
+
findIdentity: y,
|
|
238
|
+
verify: u,
|
|
239
239
|
login: h,
|
|
240
|
-
logout:
|
|
240
|
+
logout: k,
|
|
241
241
|
isSubscriber: l,
|
|
242
|
-
lastLoginProvider:
|
|
242
|
+
lastLoginProvider: V,
|
|
243
243
|
sync: f
|
|
244
244
|
};
|
|
245
|
-
}), Oo = { class: "text-body-2" }, No = /* @__PURE__ */
|
|
245
|
+
}), Oo = { class: "text-body-2" }, No = /* @__PURE__ */ g("div", { class: "text-caption mt-n1" }, "Last Used", -1), ft = /* @__PURE__ */ $({
|
|
246
246
|
__name: "VoAuthDiscord",
|
|
247
247
|
setup(c) {
|
|
248
|
-
const
|
|
249
|
-
return (n, i) => (p(), _(
|
|
248
|
+
const t = M(), o = S(() => t.user && t.findIdentity("discord")), a = S(() => t.user ? o.value ? "Connected to Discord" : "Connect Discord" : "Login with Discord");
|
|
249
|
+
return (n, i) => (p(), _(Ve, {
|
|
250
250
|
"base-color": "#5865F2",
|
|
251
|
-
"prepend-icon": `svg:${
|
|
251
|
+
"prepend-icon": `svg:${e(Qe)}`,
|
|
252
252
|
rounded: "pill",
|
|
253
253
|
slim: "",
|
|
254
254
|
variant: "flat",
|
|
255
|
-
onClick: i[0] || (i[0] = (l) => t
|
|
255
|
+
onClick: i[0] || (i[0] = (l) => e(t).login("discord"))
|
|
256
256
|
}, R({
|
|
257
257
|
title: r(() => [
|
|
258
|
-
|
|
258
|
+
g("span", Oo, C(e(a)), 1)
|
|
259
259
|
]),
|
|
260
260
|
_: 2
|
|
261
261
|
}, [
|
|
262
|
-
!t
|
|
262
|
+
!e(t).user && e(t).lastLoginProvider() === "discord" ? {
|
|
263
263
|
name: "subtitle",
|
|
264
264
|
fn: r(() => [
|
|
265
265
|
No
|
|
@@ -268,24 +268,24 @@ const ce = W("http", {
|
|
|
268
268
|
} : void 0
|
|
269
269
|
]), 1032, ["prepend-icon"]));
|
|
270
270
|
}
|
|
271
|
-
}), Bo = { class: "text-body-2" }, Uo = /* @__PURE__ */
|
|
271
|
+
}), Bo = { class: "text-body-2" }, Uo = /* @__PURE__ */ g("div", { class: "text-caption mt-n1" }, "Last Used", -1), vt = /* @__PURE__ */ $({
|
|
272
272
|
__name: "VoAuthGithub",
|
|
273
273
|
setup(c) {
|
|
274
|
-
const
|
|
275
|
-
return (n, i) => (p(), _(
|
|
274
|
+
const t = M(), o = S(() => t.user && t.findIdentity("github")), a = S(() => t.user ? o.value ? "Connected to GitHub" : "Connect GitHub" : "Login with GitHub");
|
|
275
|
+
return (n, i) => (p(), _(Ve, {
|
|
276
276
|
"base-color": "#2a2a2a",
|
|
277
|
-
"prepend-icon": `svg:${
|
|
277
|
+
"prepend-icon": `svg:${e(Ye)}`,
|
|
278
278
|
rounded: "pill",
|
|
279
279
|
slim: "",
|
|
280
280
|
variant: "flat",
|
|
281
|
-
onClick: i[0] || (i[0] = (l) => t
|
|
281
|
+
onClick: i[0] || (i[0] = (l) => e(t).login("github"))
|
|
282
282
|
}, R({
|
|
283
283
|
title: r(() => [
|
|
284
|
-
|
|
284
|
+
g("span", Bo, C(e(a)), 1)
|
|
285
285
|
]),
|
|
286
286
|
_: 2
|
|
287
287
|
}, [
|
|
288
|
-
!t
|
|
288
|
+
!e(t).user && e(t).lastLoginProvider() === "github" ? {
|
|
289
289
|
name: "subtitle",
|
|
290
290
|
fn: r(() => [
|
|
291
291
|
Uo
|
|
@@ -294,47 +294,47 @@ const ce = W("http", {
|
|
|
294
294
|
} : void 0
|
|
295
295
|
]), 1032, ["prepend-icon"]));
|
|
296
296
|
}
|
|
297
|
-
}), zo = { class: "text-center" }, Fo = { class: "text-center mb-6" }, To = { class: "font-weight-light mb-2" }, jo = /* @__PURE__ */
|
|
297
|
+
}), zo = { class: "text-center" }, Fo = { class: "text-center mb-6" }, To = { class: "font-weight-light mb-2" }, jo = /* @__PURE__ */ g("span", { class: "font-weight-bold" }, "Vuetify One", -1), ht = /* @__PURE__ */ $({
|
|
298
298
|
__name: "VoAuthCard",
|
|
299
299
|
setup(c) {
|
|
300
|
-
const
|
|
301
|
-
return (o,
|
|
300
|
+
const t = M();
|
|
301
|
+
return (o, a) => {
|
|
302
302
|
const n = vt, i = ft;
|
|
303
303
|
return p(), _(E, {
|
|
304
304
|
class: "pt-6 pb-8 px-4 px-sm-8 mx-auto",
|
|
305
305
|
"max-width": "480"
|
|
306
306
|
}, {
|
|
307
307
|
default: r(() => [
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
g("div", zo, [
|
|
309
|
+
s(Q, {
|
|
310
310
|
class: "mx-auto",
|
|
311
311
|
image: "https://vuetifyjs.b-cdn.net/docs/images/avatars/one.png",
|
|
312
312
|
size: "64"
|
|
313
313
|
}, null, 8, ["image"])
|
|
314
314
|
]),
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
g("div", Fo, [
|
|
316
|
+
s(vo, { class: "text-h5 mb-1 text-md-h4" }, {
|
|
317
317
|
default: r(() => [
|
|
318
|
-
|
|
318
|
+
g("div", To, C(e(t).lastLoginProvider() ? "Welcome back to" : "Login to"), 1),
|
|
319
319
|
jo
|
|
320
320
|
]),
|
|
321
321
|
_: 1
|
|
322
322
|
}),
|
|
323
|
-
|
|
323
|
+
s(ho, { class: "text-wrap" }, {
|
|
324
324
|
default: r(() => [
|
|
325
|
-
|
|
325
|
+
T(" Login with GitHub or Discord to save your settings and unlock exclusive subscriber perks. ")
|
|
326
326
|
]),
|
|
327
327
|
_: 1
|
|
328
328
|
})
|
|
329
329
|
]),
|
|
330
|
-
|
|
330
|
+
s(ae, {
|
|
331
331
|
class: "mx-auto",
|
|
332
332
|
"max-width": "300",
|
|
333
333
|
width: "100%"
|
|
334
334
|
}, {
|
|
335
335
|
default: r(() => [
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
s(n, { class: "mb-3" }),
|
|
337
|
+
s(i)
|
|
338
338
|
]),
|
|
339
339
|
_: 1
|
|
340
340
|
})
|
|
@@ -346,23 +346,23 @@ const ce = W("http", {
|
|
|
346
346
|
}), _t = /* @__PURE__ */ $({
|
|
347
347
|
__name: "VoAuthDialog",
|
|
348
348
|
setup(c) {
|
|
349
|
-
const
|
|
350
|
-
return (o,
|
|
349
|
+
const t = M();
|
|
350
|
+
return (o, a) => {
|
|
351
351
|
const n = ht;
|
|
352
352
|
return p(), _(ut, {
|
|
353
|
-
modelValue: t
|
|
354
|
-
"onUpdate:modelValue":
|
|
353
|
+
modelValue: e(t).dialog,
|
|
354
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => e(t).dialog = i),
|
|
355
355
|
"max-width": "480"
|
|
356
356
|
}, {
|
|
357
357
|
default: r(() => [
|
|
358
|
-
|
|
358
|
+
s(n)
|
|
359
359
|
]),
|
|
360
360
|
_: 1
|
|
361
361
|
}, 8, ["modelValue"]);
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
}),
|
|
365
|
-
const c = ce(),
|
|
364
|
+
}), Fe = W("notifications", () => {
|
|
365
|
+
const c = ce(), t = F(), o = O([]), a = O([]), n = O(), i = A(!1), l = S(() => o.value.filter((m) => !t.notifications.read.includes(m.slug))), d = S(() => o.value.filter((m) => t.notifications.read.includes(m.slug)));
|
|
366
366
|
async function f() {
|
|
367
367
|
try {
|
|
368
368
|
i.value = !0;
|
|
@@ -374,7 +374,7 @@ const ce = W("http", {
|
|
|
374
374
|
}
|
|
375
375
|
return o.value;
|
|
376
376
|
}
|
|
377
|
-
async function
|
|
377
|
+
async function u(m) {
|
|
378
378
|
try {
|
|
379
379
|
i.value = !0;
|
|
380
380
|
const v = await c.get(`/one/admin/notifications/${m}`);
|
|
@@ -397,26 +397,26 @@ const ce = W("http", {
|
|
|
397
397
|
i.value = !1;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
async function
|
|
400
|
+
async function k(m, v) {
|
|
401
401
|
try {
|
|
402
402
|
i.value = !0;
|
|
403
|
-
const
|
|
403
|
+
const b = await c.form(
|
|
404
404
|
`/one/admin/notifications/${m}`,
|
|
405
405
|
v
|
|
406
406
|
);
|
|
407
|
-
return n.value =
|
|
407
|
+
return n.value = b.notification, b.notification;
|
|
408
408
|
} catch {
|
|
409
409
|
} finally {
|
|
410
410
|
i.value = !1;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
|
-
async function
|
|
413
|
+
async function y() {
|
|
414
414
|
}
|
|
415
|
-
async function
|
|
415
|
+
async function V() {
|
|
416
416
|
try {
|
|
417
417
|
i.value = !0;
|
|
418
418
|
const m = await c.get("/one/admin/notifications");
|
|
419
|
-
|
|
419
|
+
a.value = m.notifications;
|
|
420
420
|
} catch {
|
|
421
421
|
} finally {
|
|
422
422
|
i.value = !1;
|
|
@@ -426,27 +426,27 @@ const ce = W("http", {
|
|
|
426
426
|
return {
|
|
427
427
|
isLoading: i,
|
|
428
428
|
all: o,
|
|
429
|
-
aall:
|
|
430
|
-
admin:
|
|
429
|
+
aall: a,
|
|
430
|
+
admin: V,
|
|
431
431
|
record: n,
|
|
432
432
|
index: f,
|
|
433
|
-
show:
|
|
433
|
+
show: u,
|
|
434
434
|
store: h,
|
|
435
|
-
update:
|
|
436
|
-
destroy:
|
|
437
|
-
read:
|
|
435
|
+
update: k,
|
|
436
|
+
destroy: y,
|
|
437
|
+
read: d,
|
|
438
438
|
unread: l
|
|
439
439
|
};
|
|
440
440
|
}), Mo = /* @__PURE__ */ $({
|
|
441
441
|
__name: "VoNotificationsTotalBadge",
|
|
442
442
|
setup(c) {
|
|
443
|
-
const
|
|
443
|
+
const t = M(), o = Fe(), a = F(), n = S(() => a.notifications.show ? o.unread.length : 0);
|
|
444
444
|
return (i, l) => (p(), _(Je, {
|
|
445
445
|
color: "error",
|
|
446
|
-
content:
|
|
447
|
-
dot: !!t
|
|
446
|
+
content: e(n),
|
|
447
|
+
dot: !!e(t).user,
|
|
448
448
|
location: "start top",
|
|
449
|
-
"model-value":
|
|
449
|
+
"model-value": e(n) > 0
|
|
450
450
|
}, {
|
|
451
451
|
default: r(() => [
|
|
452
452
|
z(i.$slots, "default")
|
|
@@ -460,19 +460,19 @@ const ce = W("http", {
|
|
|
460
460
|
readonly: { type: Boolean }
|
|
461
461
|
},
|
|
462
462
|
setup(c) {
|
|
463
|
-
const
|
|
464
|
-
return (o,
|
|
463
|
+
const t = c;
|
|
464
|
+
return (o, a) => (p(), _(q, {
|
|
465
465
|
class: "text-none font-weight-regular",
|
|
466
466
|
color: "primary",
|
|
467
467
|
size: "small",
|
|
468
468
|
style: ot({
|
|
469
|
-
pointerEvents:
|
|
469
|
+
pointerEvents: t.readonly ? "none" : void 0
|
|
470
470
|
}),
|
|
471
|
-
tabindex:
|
|
471
|
+
tabindex: t.readonly ? -1 : void 0,
|
|
472
472
|
variant: "flat"
|
|
473
473
|
}, R({
|
|
474
474
|
loader: r(() => [
|
|
475
|
-
o.$slots.loader ?
|
|
475
|
+
o.$slots.loader ? w("", !0) : (p(), _(_o, {
|
|
476
476
|
key: 0,
|
|
477
477
|
indeterminate: "disable-shrink",
|
|
478
478
|
size: "16",
|
|
@@ -501,79 +501,79 @@ const ce = W("http", {
|
|
|
501
501
|
}), Po = { class: "pa-4 d-flex flex-column ga-4" }, gt = /* @__PURE__ */ $({
|
|
502
502
|
__name: "VoAuthListItem",
|
|
503
503
|
setup(c) {
|
|
504
|
-
const
|
|
505
|
-
B(() =>
|
|
506
|
-
|
|
504
|
+
const t = M(), o = F(), a = A(!t.user && !t.isLoading);
|
|
505
|
+
B(() => t.user, (i) => {
|
|
506
|
+
a.value = !i;
|
|
507
507
|
});
|
|
508
508
|
function n() {
|
|
509
|
-
|
|
509
|
+
t.user && (a.value = !a.value);
|
|
510
510
|
}
|
|
511
511
|
return (i, l) => {
|
|
512
|
-
const
|
|
512
|
+
const d = vt, f = ft;
|
|
513
513
|
return p(), _(E, {
|
|
514
514
|
class: "ma-2",
|
|
515
515
|
rounded: "lg",
|
|
516
|
-
variant:
|
|
516
|
+
variant: e(a) ? "tonal" : "text"
|
|
517
517
|
}, {
|
|
518
518
|
default: r(() => [
|
|
519
|
-
|
|
519
|
+
s(ae, { class: "py-0" }, {
|
|
520
520
|
default: r(() => [
|
|
521
|
-
|
|
521
|
+
s(Ve, {
|
|
522
522
|
class: "mb-0",
|
|
523
|
-
link: !!t
|
|
523
|
+
link: !!e(t).user,
|
|
524
524
|
nav: "",
|
|
525
|
-
"prepend-icon": `svg:${t
|
|
525
|
+
"prepend-icon": `svg:${e(t).user && e(o).syncSettings ? e(At) : e(Ot)}`,
|
|
526
526
|
rounded: "b-0",
|
|
527
527
|
slim: "",
|
|
528
|
-
title: t
|
|
528
|
+
title: e(t).user && e(o).syncSettings ? "Sync is on" : "Sync is paused",
|
|
529
529
|
onClick: n
|
|
530
530
|
}, {
|
|
531
531
|
append: r(() => [
|
|
532
|
-
|
|
532
|
+
s(Be, null, {
|
|
533
533
|
default: r(() => [
|
|
534
|
-
t
|
|
534
|
+
e(t).user && (e(a) || !e(o).syncSettings) ? (p(), _(dt, {
|
|
535
535
|
key: 0,
|
|
536
|
-
modelValue:
|
|
537
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
538
|
-
color:
|
|
536
|
+
modelValue: e(o).syncSettings,
|
|
537
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => e(o).syncSettings = u),
|
|
538
|
+
color: e(o).syncSettings ? "success" : void 0,
|
|
539
539
|
density: "compact",
|
|
540
540
|
"hide-details": "",
|
|
541
541
|
inset: "",
|
|
542
|
-
onClick: l[1] || (l[1] =
|
|
542
|
+
onClick: l[1] || (l[1] = Ee(() => {
|
|
543
543
|
}, ["stop"]))
|
|
544
544
|
}, {
|
|
545
545
|
thumb: r(() => [
|
|
546
|
-
|
|
547
|
-
color:
|
|
546
|
+
s(Q, {
|
|
547
|
+
color: e(o).syncSettings ? "success" : void 0
|
|
548
548
|
}, null, 8, ["color"])
|
|
549
549
|
]),
|
|
550
550
|
_: 1
|
|
551
|
-
}, 8, ["modelValue", "color"])) :
|
|
551
|
+
}, 8, ["modelValue", "color"])) : w("", !0)
|
|
552
552
|
]),
|
|
553
553
|
_: 1
|
|
554
554
|
})
|
|
555
555
|
]),
|
|
556
556
|
_: 1
|
|
557
557
|
}, 8, ["link", "prepend-icon", "title"]),
|
|
558
|
-
|
|
558
|
+
s(me, null, {
|
|
559
559
|
default: r(() => [
|
|
560
|
-
!t
|
|
560
|
+
!e(t).user && !e(t).isLoading || e(a) ? (p(), _(ye, {
|
|
561
561
|
key: 0,
|
|
562
562
|
border: "t",
|
|
563
563
|
color: "transparent"
|
|
564
564
|
}, {
|
|
565
565
|
default: r(() => [
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
onClick: l[2] || (l[2] = (
|
|
566
|
+
g("div", Po, [
|
|
567
|
+
s(d, {
|
|
568
|
+
onClick: l[2] || (l[2] = (u) => a.value = !1)
|
|
569
569
|
}),
|
|
570
|
-
|
|
571
|
-
onClick: l[3] || (l[3] = (
|
|
570
|
+
s(f, {
|
|
571
|
+
onClick: l[3] || (l[3] = (u) => a.value = !1)
|
|
572
572
|
})
|
|
573
573
|
])
|
|
574
574
|
]),
|
|
575
575
|
_: 1
|
|
576
|
-
})) :
|
|
576
|
+
})) : w("", !0)
|
|
577
577
|
]),
|
|
578
578
|
_: 1
|
|
579
579
|
})
|
|
@@ -588,30 +588,30 @@ const ce = W("http", {
|
|
|
588
588
|
}), J = /* @__PURE__ */ $({
|
|
589
589
|
__name: "VoListItem",
|
|
590
590
|
setup(c) {
|
|
591
|
-
return (
|
|
591
|
+
return (t, o) => (p(), _(Ve, { slim: "" }, R({
|
|
592
592
|
default: r(() => [
|
|
593
|
-
z(
|
|
593
|
+
z(t.$slots, "default")
|
|
594
594
|
]),
|
|
595
595
|
_: 2
|
|
596
596
|
}, [
|
|
597
|
-
|
|
597
|
+
t.$slots.prepend ? {
|
|
598
598
|
name: "prepend",
|
|
599
599
|
fn: r(() => [
|
|
600
|
-
z(
|
|
600
|
+
z(t.$slots, "prepend")
|
|
601
601
|
]),
|
|
602
602
|
key: "0"
|
|
603
603
|
} : void 0,
|
|
604
|
-
|
|
604
|
+
t.$slots.title ? {
|
|
605
605
|
name: "title",
|
|
606
606
|
fn: r(() => [
|
|
607
|
-
z(
|
|
607
|
+
z(t.$slots, "title")
|
|
608
608
|
]),
|
|
609
609
|
key: "1"
|
|
610
610
|
} : void 0,
|
|
611
|
-
|
|
611
|
+
t.$slots.append ? {
|
|
612
612
|
name: "append",
|
|
613
613
|
fn: r(() => [
|
|
614
|
-
z(
|
|
614
|
+
z(t.$slots, "append")
|
|
615
615
|
]),
|
|
616
616
|
key: "2"
|
|
617
617
|
} : void 0
|
|
@@ -620,24 +620,24 @@ const ce = W("http", {
|
|
|
620
620
|
}), Ho = /* @__PURE__ */ $({
|
|
621
621
|
__name: "VoAuthLogoutNavItem",
|
|
622
622
|
setup(c) {
|
|
623
|
-
const
|
|
624
|
-
async function
|
|
625
|
-
o.value = !0, await
|
|
623
|
+
const t = M(), o = A(!1);
|
|
624
|
+
async function a() {
|
|
625
|
+
o.value = !0, await t.logout(), o.value = !1;
|
|
626
626
|
}
|
|
627
627
|
return (n, i) => {
|
|
628
628
|
const l = J;
|
|
629
629
|
return p(), _(l, {
|
|
630
630
|
class: "mb-0",
|
|
631
|
-
disabled:
|
|
631
|
+
disabled: e(o),
|
|
632
632
|
link: "",
|
|
633
|
-
loading:
|
|
634
|
-
"prepend-icon": `svg:${
|
|
633
|
+
loading: e(o),
|
|
634
|
+
"prepend-icon": `svg:${e(Nt)}`,
|
|
635
635
|
title: "Logout",
|
|
636
|
-
onClick:
|
|
636
|
+
onClick: a
|
|
637
637
|
}, null, 8, ["disabled", "loading", "prepend-icon"]);
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
-
}),
|
|
640
|
+
}), xe = /* @__PURE__ */ $({
|
|
641
641
|
__name: "VoDialog",
|
|
642
642
|
props: /* @__PURE__ */ nt({
|
|
643
643
|
prependIcon: {},
|
|
@@ -648,18 +648,18 @@ const ce = W("http", {
|
|
|
648
648
|
}),
|
|
649
649
|
emits: ["update:modelValue"],
|
|
650
650
|
setup(c) {
|
|
651
|
-
const
|
|
651
|
+
const t = re(c, "modelValue"), o = le(), a = A(!1);
|
|
652
652
|
return (n, i) => (p(), _(ut, {
|
|
653
|
-
modelValue:
|
|
654
|
-
"onUpdate:modelValue": i[2] || (i[2] = (l) =>
|
|
653
|
+
modelValue: t.value,
|
|
654
|
+
"onUpdate:modelValue": i[2] || (i[2] = (l) => t.value = l),
|
|
655
655
|
activator: "parent",
|
|
656
|
-
fullscreen:
|
|
656
|
+
fullscreen: e(a) || e(o).xs.value,
|
|
657
657
|
height: "100%",
|
|
658
|
-
"max-height":
|
|
659
|
-
"max-width":
|
|
658
|
+
"max-height": e(a) || e(o).xs.value ? "100%" : 800,
|
|
659
|
+
"max-width": e(a) || e(o).xs.value ? "100%" : 800
|
|
660
660
|
}, {
|
|
661
661
|
default: r(({ isActive: l }) => [
|
|
662
|
-
|
|
662
|
+
s(E, {
|
|
663
663
|
class: "overflow-hidden",
|
|
664
664
|
height: "inherit",
|
|
665
665
|
"prepend-icon": n.prependIcon,
|
|
@@ -667,25 +667,25 @@ const ce = W("http", {
|
|
|
667
667
|
}, R({
|
|
668
668
|
append: r(() => [
|
|
669
669
|
z(n.$slots, "append"),
|
|
670
|
-
|
|
670
|
+
e(o).xs.value ? w("", !0) : (p(), _(q, {
|
|
671
671
|
key: 0,
|
|
672
672
|
class: "me-2",
|
|
673
673
|
density: "comfortable",
|
|
674
|
-
icon: `svg:${
|
|
674
|
+
icon: `svg:${e(a) ? e(Bt) : e(Ut)}`,
|
|
675
675
|
size: "small",
|
|
676
676
|
variant: "text",
|
|
677
|
-
onClick: i[0] || (i[0] = (
|
|
677
|
+
onClick: i[0] || (i[0] = (d) => a.value = !e(a))
|
|
678
678
|
}, null, 8, ["icon"])),
|
|
679
|
-
|
|
679
|
+
s(q, {
|
|
680
680
|
density: "comfortable",
|
|
681
681
|
icon: "$close",
|
|
682
682
|
size: "small",
|
|
683
683
|
variant: "text",
|
|
684
|
-
onClick: i[1] || (i[1] = (
|
|
684
|
+
onClick: i[1] || (i[1] = (d) => t.value = !t.value)
|
|
685
685
|
})
|
|
686
686
|
]),
|
|
687
687
|
default: r(() => [
|
|
688
|
-
|
|
688
|
+
s(Z, { class: "mt-4" }),
|
|
689
689
|
z(n.$slots, "default")
|
|
690
690
|
]),
|
|
691
691
|
_: 2
|
|
@@ -715,24 +715,24 @@ const ce = W("http", {
|
|
|
715
715
|
disabled: { type: Boolean }
|
|
716
716
|
},
|
|
717
717
|
setup(c) {
|
|
718
|
-
return (
|
|
718
|
+
return (t, o) => (p(), _(dt, {
|
|
719
719
|
color: "primary",
|
|
720
720
|
density: "compact",
|
|
721
|
-
disabled:
|
|
721
|
+
disabled: t.disabled,
|
|
722
722
|
inset: "",
|
|
723
|
-
"true-icon": `svg:${
|
|
723
|
+
"true-icon": `svg:${e(Ae)}`
|
|
724
724
|
}, R({
|
|
725
725
|
thumb: r(() => [
|
|
726
|
-
|
|
727
|
-
color:
|
|
726
|
+
s(D, {
|
|
727
|
+
color: t.disabled ? void 0 : "primary"
|
|
728
728
|
}, null, 8, ["color"])
|
|
729
729
|
]),
|
|
730
730
|
_: 2
|
|
731
731
|
}, [
|
|
732
|
-
|
|
732
|
+
t.$slots.label ? {
|
|
733
733
|
name: "label",
|
|
734
734
|
fn: r(() => [
|
|
735
|
-
z(
|
|
735
|
+
z(t.$slots, "label")
|
|
736
736
|
]),
|
|
737
737
|
key: "0"
|
|
738
738
|
} : void 0
|
|
@@ -741,30 +741,30 @@ const ce = W("http", {
|
|
|
741
741
|
}), Ro = {
|
|
742
742
|
key: 1,
|
|
743
743
|
class: "mb-3 text-caption text-medium-emphasis"
|
|
744
|
-
},
|
|
744
|
+
}, we = /* @__PURE__ */ $({
|
|
745
745
|
__name: "VoDialogSubheader",
|
|
746
746
|
props: {
|
|
747
747
|
title: {},
|
|
748
748
|
text: {}
|
|
749
749
|
},
|
|
750
750
|
setup(c) {
|
|
751
|
-
return (
|
|
752
|
-
|
|
751
|
+
return (t, o) => (p(), L(U, null, [
|
|
752
|
+
t.title ? (p(), _(He, {
|
|
753
753
|
key: 0,
|
|
754
754
|
class: "font-weight-black"
|
|
755
755
|
}, {
|
|
756
756
|
default: r(() => [
|
|
757
|
-
|
|
757
|
+
T(C(t.title), 1)
|
|
758
758
|
]),
|
|
759
759
|
_: 1
|
|
760
|
-
})) :
|
|
761
|
-
|
|
760
|
+
})) : w("", !0),
|
|
761
|
+
t.text ? (p(), L("div", Ro, C(t.text), 1)) : w("", !0)
|
|
762
762
|
], 64));
|
|
763
763
|
}
|
|
764
764
|
}), Eo = { key: 0 }, qo = /* @__PURE__ */ $({
|
|
765
765
|
__name: "VoSettingsPageSuitOption",
|
|
766
766
|
setup(c) {
|
|
767
|
-
const
|
|
767
|
+
const t = F(), o = [
|
|
768
768
|
{
|
|
769
769
|
title: "Choose a page suit",
|
|
770
770
|
value: "",
|
|
@@ -787,22 +787,22 @@ const ce = W("http", {
|
|
|
787
787
|
value: "nebula"
|
|
788
788
|
}
|
|
789
789
|
];
|
|
790
|
-
return (
|
|
791
|
-
const i = yt, l =
|
|
790
|
+
return (a, n) => {
|
|
791
|
+
const i = yt, l = we;
|
|
792
792
|
return p(), L(U, null, [
|
|
793
|
-
|
|
794
|
-
modelValue: t
|
|
795
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
793
|
+
s(i, {
|
|
794
|
+
modelValue: e(t).suits.show,
|
|
795
|
+
"onUpdate:modelValue": n[0] || (n[0] = (d) => e(t).suits.show = d),
|
|
796
796
|
class: "mb-2",
|
|
797
797
|
label: "Enable Page suits",
|
|
798
798
|
messages: "Customize layout elements with a unique background, styled after one of our themed releases."
|
|
799
799
|
}, null, 8, ["modelValue"]),
|
|
800
|
-
|
|
800
|
+
s(me, null, {
|
|
801
801
|
default: r(() => [
|
|
802
|
-
t
|
|
803
|
-
|
|
804
|
-
modelValue: t
|
|
805
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
802
|
+
e(t).suits.show ? (p(), L("div", Eo, [
|
|
803
|
+
s(bo, {
|
|
804
|
+
modelValue: e(t).suits.suit,
|
|
805
|
+
"onUpdate:modelValue": n[1] || (n[1] = (d) => e(t).suits.suit = d),
|
|
806
806
|
clearable: "",
|
|
807
807
|
density: "compact",
|
|
808
808
|
"item-props": "",
|
|
@@ -812,58 +812,58 @@ const ce = W("http", {
|
|
|
812
812
|
style: { "max-width": "300px" },
|
|
813
813
|
variant: "outlined"
|
|
814
814
|
}, {
|
|
815
|
-
selection: r(({ item:
|
|
816
|
-
|
|
817
|
-
icon:
|
|
815
|
+
selection: r(({ item: d }) => [
|
|
816
|
+
s(D, {
|
|
817
|
+
icon: d.props.prependIcon,
|
|
818
818
|
size: "x-small",
|
|
819
819
|
start: ""
|
|
820
820
|
}, null, 8, ["icon"]),
|
|
821
|
-
|
|
821
|
+
T(" " + C(d.title), 1)
|
|
822
822
|
]),
|
|
823
823
|
_: 1
|
|
824
824
|
}, 8, ["modelValue"]),
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
modelValue: t
|
|
828
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
825
|
+
s(l, { text: "Select your suit elements to display the background image:" }),
|
|
826
|
+
s(yo, {
|
|
827
|
+
modelValue: e(t).suits.elements,
|
|
828
|
+
"onUpdate:modelValue": n[2] || (n[2] = (d) => e(t).suits.elements = d),
|
|
829
829
|
color: "primary",
|
|
830
830
|
filter: "",
|
|
831
831
|
multiple: ""
|
|
832
832
|
}, {
|
|
833
833
|
default: r(() => [
|
|
834
|
-
|
|
835
|
-
"append-icon": `svg:${
|
|
834
|
+
s(te, {
|
|
835
|
+
"append-icon": `svg:${e(zt)}`,
|
|
836
836
|
"filter-icon": "$success",
|
|
837
837
|
text: "App Bar",
|
|
838
838
|
value: "app-bar",
|
|
839
839
|
variant: "flat"
|
|
840
840
|
}, {
|
|
841
841
|
append: r(() => [
|
|
842
|
-
|
|
842
|
+
s(Z, {
|
|
843
843
|
class: "ms-2 border-opacity-50",
|
|
844
844
|
vertical: ""
|
|
845
845
|
}),
|
|
846
|
-
|
|
846
|
+
s(D, { size: "x-small" })
|
|
847
847
|
]),
|
|
848
848
|
_: 1
|
|
849
849
|
}, 8, ["append-icon"]),
|
|
850
|
-
|
|
851
|
-
"append-icon": `svg:${
|
|
850
|
+
s(te, {
|
|
851
|
+
"append-icon": `svg:${e(Ft)}`,
|
|
852
852
|
"filter-icon": "$success",
|
|
853
853
|
text: "Navigation Drawer",
|
|
854
854
|
value: "drawer",
|
|
855
855
|
variant: "flat"
|
|
856
856
|
}, {
|
|
857
857
|
append: r(() => [
|
|
858
|
-
|
|
858
|
+
s(Z, {
|
|
859
859
|
class: "ms-2 border-opacity-50",
|
|
860
860
|
vertical: ""
|
|
861
861
|
}),
|
|
862
|
-
|
|
862
|
+
s(D, { size: "x-small" })
|
|
863
863
|
]),
|
|
864
864
|
_: 1
|
|
865
865
|
}, 8, ["append-icon"]),
|
|
866
|
-
|
|
866
|
+
s(te, {
|
|
867
867
|
"append-icon": "$info",
|
|
868
868
|
"filter-icon": "$success",
|
|
869
869
|
text: "Footer",
|
|
@@ -871,18 +871,18 @@ const ce = W("http", {
|
|
|
871
871
|
variant: "flat"
|
|
872
872
|
}, {
|
|
873
873
|
append: r(() => [
|
|
874
|
-
|
|
874
|
+
s(Z, {
|
|
875
875
|
class: "ms-2 border-opacity-50",
|
|
876
876
|
vertical: ""
|
|
877
877
|
}),
|
|
878
|
-
|
|
878
|
+
s(D, { size: "x-small" })
|
|
879
879
|
]),
|
|
880
880
|
_: 1
|
|
881
881
|
})
|
|
882
882
|
]),
|
|
883
883
|
_: 1
|
|
884
884
|
}, 8, ["modelValue"])
|
|
885
|
-
])) :
|
|
885
|
+
])) : w("", !0)
|
|
886
886
|
]),
|
|
887
887
|
_: 1
|
|
888
888
|
})
|
|
@@ -892,36 +892,36 @@ const ce = W("http", {
|
|
|
892
892
|
});
|
|
893
893
|
function ve() {
|
|
894
894
|
const c = mo();
|
|
895
|
-
return
|
|
895
|
+
return S(
|
|
896
896
|
() => c.query
|
|
897
897
|
);
|
|
898
898
|
}
|
|
899
899
|
const P = W("one", () => {
|
|
900
|
-
const c = ve(),
|
|
900
|
+
const c = ve(), t = Ne(), o = M(), a = ce(), n = A(!1), i = O(!1), l = O(), d = O([]), f = S(() => c.value.session_id), u = S(() => {
|
|
901
901
|
var x;
|
|
902
902
|
return (x = l.value) == null ? void 0 : x.items[0].plan.interval;
|
|
903
|
-
}), h =
|
|
903
|
+
}), h = S(() => {
|
|
904
904
|
var x;
|
|
905
905
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "stripe" && I.tierName.startsWith("sub_"));
|
|
906
|
-
}),
|
|
906
|
+
}), k = S(() => {
|
|
907
907
|
var x;
|
|
908
908
|
return !!((x = h.value) != null && x.tierName);
|
|
909
|
-
}),
|
|
909
|
+
}), y = S(() => {
|
|
910
910
|
var x;
|
|
911
911
|
return (x = h.value) == null ? void 0 : x.isActive;
|
|
912
|
-
}),
|
|
912
|
+
}), V = S(() => {
|
|
913
913
|
var x;
|
|
914
914
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.tierName.startsWith("sub_"));
|
|
915
|
-
}), m =
|
|
915
|
+
}), m = S(() => {
|
|
916
916
|
var x;
|
|
917
917
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "github");
|
|
918
|
-
}), v =
|
|
918
|
+
}), v = S(() => {
|
|
919
919
|
var x;
|
|
920
920
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "discord");
|
|
921
|
-
}),
|
|
921
|
+
}), b = S(() => {
|
|
922
922
|
var x;
|
|
923
923
|
return (x = o.user) == null ? void 0 : x.sponsorships.find((I) => I.platform === "patreon");
|
|
924
|
-
}), N =
|
|
924
|
+
}), N = S(() => {
|
|
925
925
|
var x;
|
|
926
926
|
return (x = o.user) == null ? void 0 : x.sponsorships.reduce((I, X) => {
|
|
927
927
|
if (!X.isActive || X.interval === "once" || X.platform === "stripe")
|
|
@@ -930,10 +930,10 @@ const P = W("one", () => {
|
|
|
930
930
|
return I + xt / 100;
|
|
931
931
|
}, 0);
|
|
932
932
|
});
|
|
933
|
-
|
|
934
|
-
f.value && await
|
|
933
|
+
qe(async () => {
|
|
934
|
+
f.value && await j();
|
|
935
935
|
}), B(i, oe), B(f, (x) => {
|
|
936
|
-
x &&
|
|
936
|
+
x && j();
|
|
937
937
|
}, { immediate: !0 }), B(c, (x) => {
|
|
938
938
|
if (x.one !== "subscribe" || o.user)
|
|
939
939
|
return;
|
|
@@ -941,13 +941,13 @@ const P = W("one", () => {
|
|
|
941
941
|
const I = B(() => o.user, (X) => {
|
|
942
942
|
X && (o.dialog = !1, I());
|
|
943
943
|
});
|
|
944
|
-
}, { immediate: !0 }), B(
|
|
944
|
+
}, { immediate: !0 }), B(y, (x, I) => {
|
|
945
945
|
x === !1 && I !== !0 || he();
|
|
946
946
|
});
|
|
947
|
-
async function
|
|
947
|
+
async function j() {
|
|
948
948
|
try {
|
|
949
949
|
n.value = !0;
|
|
950
|
-
const x = await
|
|
950
|
+
const x = await a.post("/one/activate", { sessionId: f.value });
|
|
951
951
|
o.user = x.user;
|
|
952
952
|
const I = new URL(window.location.href);
|
|
953
953
|
I.searchParams.delete("session_id"), history.pushState(null, "", I.toString()), ue();
|
|
@@ -957,17 +957,17 @@ const P = W("one", () => {
|
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
async function ie() {
|
|
960
|
-
window.open(`${
|
|
960
|
+
window.open(`${a.url}/one/manage`, "_blank");
|
|
961
961
|
}
|
|
962
962
|
async function G(x) {
|
|
963
|
-
n.value = !0, window.location.href = `${
|
|
963
|
+
n.value = !0, window.location.href = `${a.url}/one/subscribe?interval=${x}`;
|
|
964
964
|
}
|
|
965
|
-
async function
|
|
965
|
+
async function Se() {
|
|
966
966
|
var x;
|
|
967
967
|
if (h.value)
|
|
968
968
|
try {
|
|
969
969
|
n.value = !0;
|
|
970
|
-
const I = await
|
|
970
|
+
const I = await a.post(
|
|
971
971
|
`/one/cancel?subscriptionId=${(x = h.value) == null ? void 0 : x.tierName}`
|
|
972
972
|
);
|
|
973
973
|
o.user = I.user;
|
|
@@ -976,11 +976,11 @@ const P = W("one", () => {
|
|
|
976
976
|
n.value = !1;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
async function
|
|
979
|
+
async function Ce(x) {
|
|
980
980
|
if (h.value)
|
|
981
981
|
try {
|
|
982
982
|
n.value = !0;
|
|
983
|
-
const I = await
|
|
983
|
+
const I = await a.post("/one/modify", {
|
|
984
984
|
subscriptionId: h.value.tierName,
|
|
985
985
|
interval: x
|
|
986
986
|
});
|
|
@@ -995,7 +995,7 @@ const P = W("one", () => {
|
|
|
995
995
|
if (h.value)
|
|
996
996
|
try {
|
|
997
997
|
n.value = !0;
|
|
998
|
-
const I = await
|
|
998
|
+
const I = await a.post(
|
|
999
999
|
`/one/verify?subscriptionId=${(x = h.value) == null ? void 0 : x.tierName}`
|
|
1000
1000
|
);
|
|
1001
1001
|
o.user = I.user;
|
|
@@ -1007,15 +1007,15 @@ const P = W("one", () => {
|
|
|
1007
1007
|
async function ue() {
|
|
1008
1008
|
try {
|
|
1009
1009
|
n.value = !0;
|
|
1010
|
-
const x = await
|
|
1011
|
-
return l.value = x.subscription,
|
|
1010
|
+
const x = await a.get("/one/info");
|
|
1011
|
+
return l.value = x.subscription, d.value = x.invoices, x;
|
|
1012
1012
|
} catch {
|
|
1013
1013
|
} finally {
|
|
1014
1014
|
n.value = !1;
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
1017
|
function oe() {
|
|
1018
|
-
|
|
1018
|
+
t.push({
|
|
1019
1019
|
query: {
|
|
1020
1020
|
...c.value,
|
|
1021
1021
|
one: void 0
|
|
@@ -1024,23 +1024,23 @@ const P = W("one", () => {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
return {
|
|
1026
1026
|
info: l,
|
|
1027
|
-
interval:
|
|
1028
|
-
invoices:
|
|
1027
|
+
interval: u,
|
|
1028
|
+
invoices: d,
|
|
1029
1029
|
sessionId: f,
|
|
1030
1030
|
subscription: h,
|
|
1031
1031
|
monthlyTotal: N,
|
|
1032
|
-
hasBilling:
|
|
1032
|
+
hasBilling: k,
|
|
1033
1033
|
isLoading: n,
|
|
1034
1034
|
isOpen: i,
|
|
1035
|
-
isSubscriber:
|
|
1035
|
+
isSubscriber: y,
|
|
1036
1036
|
github: m,
|
|
1037
|
-
patreon:
|
|
1037
|
+
patreon: b,
|
|
1038
1038
|
discord: v,
|
|
1039
|
-
one:
|
|
1040
|
-
activate:
|
|
1041
|
-
cancel:
|
|
1039
|
+
one: V,
|
|
1040
|
+
activate: j,
|
|
1041
|
+
cancel: Se,
|
|
1042
1042
|
manage: ie,
|
|
1043
|
-
modify:
|
|
1043
|
+
modify: Ce,
|
|
1044
1044
|
resetQuery: oe,
|
|
1045
1045
|
subscribe: G,
|
|
1046
1046
|
subscriptionInfo: ue,
|
|
@@ -1204,7 +1204,7 @@ function Wo() {
|
|
|
1204
1204
|
};
|
|
1205
1205
|
}
|
|
1206
1206
|
const Ke = W("settings", () => {
|
|
1207
|
-
const c = "https://cdn.vuetifyjs.com/docs/images/one/",
|
|
1207
|
+
const c = "https://cdn.vuetifyjs.com/docs/images/one/", t = M(), o = F(), a = Xe(), n = Wo(), i = {
|
|
1208
1208
|
blackguard: {
|
|
1209
1209
|
"app-bar": c + "suits/blackguard/blackguard-app-bar.png",
|
|
1210
1210
|
drawer: c + "suits/blackguard/blackguard-app-drawer.png",
|
|
@@ -1220,19 +1220,19 @@ const Ke = W("settings", () => {
|
|
|
1220
1220
|
drawer: c + "suits/nebula/nebula-app-drawer.png",
|
|
1221
1221
|
footer: c + "suits/nebula/nebula-app-footer.png"
|
|
1222
1222
|
}
|
|
1223
|
-
}, l =
|
|
1224
|
-
if (!o.suits.suit || !o.suits.show || !
|
|
1223
|
+
}, l = S(() => {
|
|
1224
|
+
if (!o.suits.suit || !o.suits.show || !t.isSubscriber)
|
|
1225
1225
|
return {};
|
|
1226
|
-
const
|
|
1227
|
-
for (const
|
|
1228
|
-
f[
|
|
1226
|
+
const d = i[o.suits.suit.toLowerCase()], f = {};
|
|
1227
|
+
for (const u of o.suits.elements)
|
|
1228
|
+
f[u] = d[u];
|
|
1229
1229
|
return f;
|
|
1230
1230
|
});
|
|
1231
|
-
return
|
|
1232
|
-
...
|
|
1231
|
+
return a.themes.value = {
|
|
1232
|
+
...a.themes.value,
|
|
1233
1233
|
...n
|
|
1234
|
-
}, B(() => o.theme, (
|
|
1235
|
-
|
|
1234
|
+
}, B(() => o.theme, (d) => {
|
|
1235
|
+
d === "system" ? a.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (a.global.name.value = d, o.suits.suit = i[d] ? d : ""), o.theme = d;
|
|
1236
1236
|
}, { immediate: !0 }), {
|
|
1237
1237
|
suit: l,
|
|
1238
1238
|
CDN_URL: c
|
|
@@ -1245,7 +1245,7 @@ const Ke = W("settings", () => {
|
|
|
1245
1245
|
},
|
|
1246
1246
|
emits: ["update:modelValue"],
|
|
1247
1247
|
setup(c) {
|
|
1248
|
-
const
|
|
1248
|
+
const t = re(c, "modelValue"), o = M(), a = P(), n = Ke(), i = F(), l = [
|
|
1249
1249
|
{
|
|
1250
1250
|
title: "Light",
|
|
1251
1251
|
subtitle: "A standard light theme.",
|
|
@@ -1296,49 +1296,49 @@ const Ke = W("settings", () => {
|
|
|
1296
1296
|
value: "highContrast",
|
|
1297
1297
|
disabled: !0
|
|
1298
1298
|
}
|
|
1299
|
-
],
|
|
1300
|
-
return B(
|
|
1301
|
-
|
|
1302
|
-
}, { immediate: !0 }), (f,
|
|
1303
|
-
const h =
|
|
1304
|
-
return p(), _(
|
|
1305
|
-
modelValue:
|
|
1306
|
-
"onUpdate:modelValue":
|
|
1307
|
-
"prepend-icon": `svg:${
|
|
1299
|
+
], d = ve();
|
|
1300
|
+
return B(d, async () => {
|
|
1301
|
+
d.value.one === "settings" && (a.isOpen = !0, await pe(), t.value = !0);
|
|
1302
|
+
}, { immediate: !0 }), (f, u) => {
|
|
1303
|
+
const h = we, k = qo, y = yt, V = xe;
|
|
1304
|
+
return p(), _(V, {
|
|
1305
|
+
modelValue: t.value,
|
|
1306
|
+
"onUpdate:modelValue": u[5] || (u[5] = (m) => t.value = m),
|
|
1307
|
+
"prepend-icon": `svg:${e(Rt)}`,
|
|
1308
1308
|
title: "Settings"
|
|
1309
1309
|
}, {
|
|
1310
1310
|
default: r(() => [
|
|
1311
|
-
|
|
1311
|
+
s(ke, null, {
|
|
1312
1312
|
default: r(() => [
|
|
1313
|
-
|
|
1313
|
+
s($e, { scrollable: "" }, {
|
|
1314
1314
|
default: r(() => [
|
|
1315
|
-
|
|
1315
|
+
s(_e, { class: "px-7" }, {
|
|
1316
1316
|
default: r(() => [
|
|
1317
|
-
|
|
1317
|
+
s(h, {
|
|
1318
1318
|
text: "Customize your documentation experience with light and dark themes, as well as a combination of both named.",
|
|
1319
1319
|
title: "Theme"
|
|
1320
1320
|
}),
|
|
1321
|
-
|
|
1322
|
-
modelValue:
|
|
1323
|
-
"onUpdate:modelValue":
|
|
1321
|
+
s(pt, {
|
|
1322
|
+
modelValue: e(i).theme,
|
|
1323
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => e(i).theme = m),
|
|
1324
1324
|
mandatory: ""
|
|
1325
1325
|
}, {
|
|
1326
1326
|
default: r(() => [
|
|
1327
|
-
|
|
1327
|
+
s(de, { dense: "" }, {
|
|
1328
1328
|
default: r(() => [
|
|
1329
|
-
(p(), L(U, null, ne(l, (m, v) =>
|
|
1329
|
+
(p(), L(U, null, ne(l, (m, v) => s(K, {
|
|
1330
1330
|
key: v,
|
|
1331
1331
|
cols: "12",
|
|
1332
1332
|
md: "6"
|
|
1333
1333
|
}, {
|
|
1334
1334
|
default: r(() => [
|
|
1335
|
-
|
|
1335
|
+
s(Re, {
|
|
1336
1336
|
value: m.value
|
|
1337
1337
|
}, {
|
|
1338
|
-
default: r(({ toggle:
|
|
1339
|
-
|
|
1340
|
-
default: r(({ props:
|
|
1341
|
-
|
|
1338
|
+
default: r(({ toggle: b, isSelected: N }) => [
|
|
1339
|
+
s(ze, null, {
|
|
1340
|
+
default: r(({ props: j, isHovering: ie }) => [
|
|
1341
|
+
s(E, H({
|
|
1342
1342
|
color: N ? "primary" : "surface-variant",
|
|
1343
1343
|
disabled: m.disabled,
|
|
1344
1344
|
height: "76",
|
|
@@ -1348,9 +1348,9 @@ const Ke = W("settings", () => {
|
|
|
1348
1348
|
subtitle: m.disabled ? "In Development" : m.subtitle,
|
|
1349
1349
|
title: m.title,
|
|
1350
1350
|
variant: "tonal"
|
|
1351
|
-
},
|
|
1351
|
+
}, j, { onClick: b }), {
|
|
1352
1352
|
image: r(() => [
|
|
1353
|
-
|
|
1353
|
+
s(Y, {
|
|
1354
1354
|
style: ot({
|
|
1355
1355
|
filter: N || ie ? "none" : "grayscale(100%)"
|
|
1356
1356
|
})
|
|
@@ -1373,69 +1373,69 @@ const Ke = W("settings", () => {
|
|
|
1373
1373
|
]),
|
|
1374
1374
|
_: 1
|
|
1375
1375
|
}, 8, ["modelValue"]),
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
], 64)) :
|
|
1376
|
+
e(o).isSubscriber ? (p(), L(U, { key: 0 }, [
|
|
1377
|
+
s(Z, { class: "mt-6 mb-4" }),
|
|
1378
|
+
s(k)
|
|
1379
|
+
], 64)) : w("", !0)
|
|
1380
1380
|
]),
|
|
1381
1381
|
_: 1
|
|
1382
1382
|
}),
|
|
1383
|
-
|
|
1384
|
-
|
|
1383
|
+
s(Z),
|
|
1384
|
+
s(_e, { class: "px-7" }, {
|
|
1385
1385
|
default: r(() => [
|
|
1386
|
-
|
|
1386
|
+
s(h, {
|
|
1387
1387
|
text: "These options change your browsing experience within Vuetify properties",
|
|
1388
1388
|
title: "Experience"
|
|
1389
1389
|
}),
|
|
1390
|
-
|
|
1390
|
+
e(o).isSubscriber ? (p(), _(y, {
|
|
1391
1391
|
key: 0,
|
|
1392
|
-
modelValue:
|
|
1393
|
-
"onUpdate:modelValue":
|
|
1392
|
+
modelValue: e(i).disableAds,
|
|
1393
|
+
"onUpdate:modelValue": u[1] || (u[1] = (m) => e(i).disableAds = m),
|
|
1394
1394
|
class: "mb-2",
|
|
1395
1395
|
label: "Disable Ads",
|
|
1396
1396
|
messages: "Disable traditional advertisements on all documentation pages."
|
|
1397
|
-
}, null, 8, ["modelValue"])) :
|
|
1398
|
-
|
|
1399
|
-
modelValue:
|
|
1400
|
-
"onUpdate:modelValue":
|
|
1397
|
+
}, null, 8, ["modelValue"])) : w("", !0),
|
|
1398
|
+
s(y, {
|
|
1399
|
+
modelValue: e(i).quickbar,
|
|
1400
|
+
"onUpdate:modelValue": u[2] || (u[2] = (m) => e(i).quickbar = m),
|
|
1401
1401
|
label: "Enable Quick Actions",
|
|
1402
1402
|
messages: "Quick actions are located on the Vuetify One user menu and provide quick access to common tasks."
|
|
1403
1403
|
}, null, 8, ["modelValue"])
|
|
1404
1404
|
]),
|
|
1405
1405
|
_: 1
|
|
1406
1406
|
}),
|
|
1407
|
-
|
|
1408
|
-
|
|
1407
|
+
s(Z),
|
|
1408
|
+
e(o).isSubscriber ? (p(), _(_e, {
|
|
1409
1409
|
key: 0,
|
|
1410
1410
|
class: "px-7"
|
|
1411
1411
|
}, {
|
|
1412
1412
|
default: r(() => [
|
|
1413
|
-
|
|
1413
|
+
s(h, {
|
|
1414
1414
|
text: "Vuetify will communicate with you through banners and notifications. You can disable these features here or reset your local notification cache.",
|
|
1415
1415
|
title: "Communication"
|
|
1416
1416
|
}),
|
|
1417
|
-
|
|
1418
|
-
modelValue:
|
|
1419
|
-
"onUpdate:modelValue":
|
|
1417
|
+
s(y, {
|
|
1418
|
+
modelValue: e(i).notifications.show,
|
|
1419
|
+
"onUpdate:modelValue": u[3] || (u[3] = (m) => e(i).notifications.show = m),
|
|
1420
1420
|
class: "mb-2",
|
|
1421
1421
|
label: "Enable Notifications",
|
|
1422
1422
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
1423
1423
|
}, null, 8, ["modelValue"]),
|
|
1424
|
-
|
|
1424
|
+
s(me, null, {
|
|
1425
1425
|
default: r(() => [
|
|
1426
|
-
|
|
1426
|
+
e(i).notifications.show ? (p(), _(y, {
|
|
1427
1427
|
key: 0,
|
|
1428
|
-
modelValue:
|
|
1429
|
-
"onUpdate:modelValue":
|
|
1428
|
+
modelValue: e(i).notifications.banners,
|
|
1429
|
+
"onUpdate:modelValue": u[4] || (u[4] = (m) => e(i).notifications.banners = m),
|
|
1430
1430
|
label: "Enable Banners",
|
|
1431
1431
|
messages: "Banners are located at the top of the screen and provide a callout for important information."
|
|
1432
|
-
}, null, 8, ["modelValue"])) :
|
|
1432
|
+
}, null, 8, ["modelValue"])) : w("", !0)
|
|
1433
1433
|
]),
|
|
1434
1434
|
_: 1
|
|
1435
1435
|
})
|
|
1436
1436
|
]),
|
|
1437
1437
|
_: 1
|
|
1438
|
-
})) :
|
|
1438
|
+
})) : w("", !0)
|
|
1439
1439
|
]),
|
|
1440
1440
|
_: 1
|
|
1441
1441
|
})
|
|
@@ -1450,19 +1450,19 @@ const Ke = W("settings", () => {
|
|
|
1450
1450
|
}), Zo = /* @__PURE__ */ $({
|
|
1451
1451
|
__name: "VoSettingsListItem",
|
|
1452
1452
|
setup(c) {
|
|
1453
|
-
const
|
|
1454
|
-
return (o,
|
|
1453
|
+
const t = A(!1);
|
|
1454
|
+
return (o, a) => {
|
|
1455
1455
|
const n = Go, i = J;
|
|
1456
1456
|
return p(), _(i, {
|
|
1457
|
-
active: t
|
|
1457
|
+
active: e(t),
|
|
1458
1458
|
link: "",
|
|
1459
|
-
"prepend-icon": `svg:${
|
|
1459
|
+
"prepend-icon": `svg:${e(Et)}`,
|
|
1460
1460
|
title: "Settings"
|
|
1461
1461
|
}, {
|
|
1462
1462
|
default: r(() => [
|
|
1463
|
-
|
|
1464
|
-
modelValue: t
|
|
1465
|
-
"onUpdate:modelValue":
|
|
1463
|
+
s(n, {
|
|
1464
|
+
modelValue: e(t),
|
|
1465
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => se(t) ? t.value = l : null)
|
|
1466
1466
|
}, null, 8, ["modelValue"])
|
|
1467
1467
|
]),
|
|
1468
1468
|
_: 1
|
|
@@ -1472,36 +1472,36 @@ const Ke = W("settings", () => {
|
|
|
1472
1472
|
}), Qo = { class: "text-caption" }, Yo = /* @__PURE__ */ $({
|
|
1473
1473
|
__name: "VoSubscriptionInvoices",
|
|
1474
1474
|
setup(c) {
|
|
1475
|
-
const
|
|
1476
|
-
return (
|
|
1477
|
-
const i =
|
|
1475
|
+
const t = Ue(), o = P();
|
|
1476
|
+
return (a, n) => {
|
|
1477
|
+
const i = we;
|
|
1478
1478
|
return p(), _(de, null, {
|
|
1479
1479
|
default: r(() => [
|
|
1480
|
-
|
|
1480
|
+
s(K, { cols: "12" }, {
|
|
1481
1481
|
default: r(() => [
|
|
1482
|
-
|
|
1482
|
+
s(i, {
|
|
1483
1483
|
text: "View and download your invoice history.",
|
|
1484
1484
|
title: "Invoice History"
|
|
1485
1485
|
}),
|
|
1486
|
-
|
|
1486
|
+
s(E, {
|
|
1487
1487
|
border: "",
|
|
1488
1488
|
height: "450",
|
|
1489
1489
|
rounded: "lg"
|
|
1490
1490
|
}, {
|
|
1491
1491
|
default: r(() => [
|
|
1492
|
-
|
|
1493
|
-
items:
|
|
1494
|
-
loading:
|
|
1492
|
+
s(Vo, {
|
|
1493
|
+
items: e(o).invoices,
|
|
1494
|
+
loading: e(o).isLoading,
|
|
1495
1495
|
sticky: ""
|
|
1496
1496
|
}, {
|
|
1497
1497
|
"item.date": r(({ item: l }) => [
|
|
1498
|
-
|
|
1498
|
+
g("div", Qo, C(e(t).format(new Date(l.date * 1e3), "fullDateWithWeekday")), 1)
|
|
1499
1499
|
]),
|
|
1500
1500
|
"item.amount": r(({ item: l }) => [
|
|
1501
|
-
|
|
1501
|
+
T(" $" + C(l.amount / 100), 1)
|
|
1502
1502
|
]),
|
|
1503
1503
|
"item.status": r(({ item: l }) => [
|
|
1504
|
-
|
|
1504
|
+
s(te, {
|
|
1505
1505
|
border: "success sm",
|
|
1506
1506
|
class: "text-capitalize",
|
|
1507
1507
|
color: "success",
|
|
@@ -1512,9 +1512,9 @@ const Ke = W("settings", () => {
|
|
|
1512
1512
|
}, null, 8, ["text"])
|
|
1513
1513
|
]),
|
|
1514
1514
|
"item.pdf": r(({ item: l }) => [
|
|
1515
|
-
|
|
1515
|
+
s(q, {
|
|
1516
1516
|
href: l.pdf,
|
|
1517
|
-
icon: `svg:${
|
|
1517
|
+
icon: `svg:${e(qt)}`,
|
|
1518
1518
|
size: "small",
|
|
1519
1519
|
target: "_blank",
|
|
1520
1520
|
variant: "text"
|
|
@@ -1536,28 +1536,28 @@ const Ke = W("settings", () => {
|
|
|
1536
1536
|
}), Jo = { class: "d-flex align-center" }, Xo = {
|
|
1537
1537
|
key: "status",
|
|
1538
1538
|
class: "text-capitalize hidden-sm-and-down"
|
|
1539
|
-
}, Ko = /* @__PURE__ */
|
|
1539
|
+
}, Ko = /* @__PURE__ */ g("span", { class: "mx-1 hidden-sm-and-down" }, "—", -1), en = { class: "me-1" }, tn = { class: "text-medium-emphasis text-caption" }, on = { class: "d-flex align-start justify-space-between text-caption py-2" }, nn = { class: "font-weight-bold" }, sn = { class: "font-weight-bold" }, an = /* @__PURE__ */ $({
|
|
1540
1540
|
__name: "VoSubscriptionStatus",
|
|
1541
1541
|
emits: ["change:subscription"],
|
|
1542
|
-
setup(c, { emit:
|
|
1543
|
-
const o =
|
|
1544
|
-
if (!
|
|
1542
|
+
setup(c, { emit: t }) {
|
|
1543
|
+
const o = Ue(), a = P(), n = t, i = S(() => {
|
|
1544
|
+
if (!a.info)
|
|
1545
1545
|
return;
|
|
1546
|
-
const
|
|
1547
|
-
return o.format(
|
|
1546
|
+
const d = new Date(a.info.currentPeriodEnd * 1e3);
|
|
1547
|
+
return o.format(d, "keyboardDate");
|
|
1548
1548
|
});
|
|
1549
1549
|
async function l() {
|
|
1550
|
-
|
|
1550
|
+
a.interval && (a.isLoading = !0, a.subscribe(a.interval));
|
|
1551
1551
|
}
|
|
1552
|
-
return (
|
|
1553
|
-
const
|
|
1552
|
+
return (d, f) => {
|
|
1553
|
+
const u = fe;
|
|
1554
1554
|
return p(), _(de, null, {
|
|
1555
1555
|
default: r(() => [
|
|
1556
|
-
|
|
1556
|
+
s(K, { cols: "12" }, {
|
|
1557
1557
|
default: r(() => {
|
|
1558
|
-
var h,
|
|
1558
|
+
var h, k;
|
|
1559
1559
|
return [
|
|
1560
|
-
|
|
1560
|
+
s(E, {
|
|
1561
1561
|
border: "",
|
|
1562
1562
|
flat: "",
|
|
1563
1563
|
"prepend-icon": "$vuetify",
|
|
@@ -1565,61 +1565,61 @@ const Ke = W("settings", () => {
|
|
|
1565
1565
|
title: "Subscription Status"
|
|
1566
1566
|
}, R({
|
|
1567
1567
|
append: r(() => {
|
|
1568
|
-
var
|
|
1568
|
+
var y;
|
|
1569
1569
|
return [
|
|
1570
|
-
|
|
1570
|
+
e(a).hasBilling && ((y = e(a).info) == null ? void 0 : y.status) === "canceled" ? (p(), _(u, {
|
|
1571
1571
|
key: 0,
|
|
1572
1572
|
class: "me-2",
|
|
1573
1573
|
color: "success",
|
|
1574
|
-
loading:
|
|
1574
|
+
loading: e(a).isLoading,
|
|
1575
1575
|
"prepend-icon": "$success",
|
|
1576
1576
|
text: "Activate",
|
|
1577
1577
|
variant: "outlined",
|
|
1578
1578
|
onClick: l
|
|
1579
|
-
}, null, 8, ["loading"])) :
|
|
1580
|
-
|
|
1579
|
+
}, null, 8, ["loading"])) : w("", !0),
|
|
1580
|
+
e(a).hasBilling ? (p(), _(u, {
|
|
1581
1581
|
key: 1,
|
|
1582
|
-
loading:
|
|
1583
|
-
"prepend-icon": `svg:${
|
|
1582
|
+
loading: e(a).isLoading,
|
|
1583
|
+
"prepend-icon": `svg:${e(Wt)}`,
|
|
1584
1584
|
text: "Billing",
|
|
1585
|
-
onClick:
|
|
1586
|
-
}, null, 8, ["loading", "prepend-icon", "onClick"])) :
|
|
1585
|
+
onClick: e(a).manage
|
|
1586
|
+
}, null, 8, ["loading", "prepend-icon", "onClick"])) : w("", !0)
|
|
1587
1587
|
];
|
|
1588
1588
|
}),
|
|
1589
1589
|
_: 2
|
|
1590
1590
|
}, [
|
|
1591
|
-
|
|
1591
|
+
e(a).info ? {
|
|
1592
1592
|
name: "subtitle",
|
|
1593
1593
|
fn: r(() => [
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1594
|
+
g("div", Jo, [
|
|
1595
|
+
g("span", Xo, C(e(a).info.status), 1),
|
|
1596
|
+
e(a).info.items.length ? (p(), L(U, { key: 0 }, [
|
|
1597
1597
|
Ko,
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1598
|
+
g("span", en, [
|
|
1599
|
+
T(" $" + C(e(a).info.items[0].plan.amount / 100), 1),
|
|
1600
|
+
g("span", tn, "/" + C(e(a).interval), 1)
|
|
1601
1601
|
]),
|
|
1602
|
-
|
|
1602
|
+
s(u, {
|
|
1603
1603
|
size: "x-small",
|
|
1604
1604
|
text: "(Change Subscription)",
|
|
1605
1605
|
variant: "text",
|
|
1606
|
-
onClick: f[0] || (f[0] = (
|
|
1606
|
+
onClick: f[0] || (f[0] = (y) => n("change:subscription"))
|
|
1607
1607
|
})
|
|
1608
|
-
], 64)) :
|
|
1608
|
+
], 64)) : w("", !0)
|
|
1609
1609
|
])
|
|
1610
1610
|
]),
|
|
1611
1611
|
key: "0"
|
|
1612
1612
|
} : {
|
|
1613
1613
|
name: "subtitle",
|
|
1614
1614
|
fn: r(() => [
|
|
1615
|
-
|
|
1616
|
-
|
|
1615
|
+
g("div", { class: "d-flex align-center" }, [
|
|
1616
|
+
s(be, {
|
|
1617
1617
|
height: "16",
|
|
1618
1618
|
type: "ossein",
|
|
1619
1619
|
width: "40"
|
|
1620
1620
|
}),
|
|
1621
|
-
|
|
1622
|
-
|
|
1621
|
+
g("span", { class: "mx-1" }, "—"),
|
|
1622
|
+
s(be, {
|
|
1623
1623
|
height: "16",
|
|
1624
1624
|
type: "ossein",
|
|
1625
1625
|
width: "80"
|
|
@@ -1629,16 +1629,16 @@ const Ke = W("settings", () => {
|
|
|
1629
1629
|
key: "1"
|
|
1630
1630
|
}
|
|
1631
1631
|
]), 1024),
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
((h =
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1632
|
+
g("div", on, [
|
|
1633
|
+
g("div", null, [
|
|
1634
|
+
((h = e(a).info) == null ? void 0 : h.status) === "active" ? (p(), L(U, { key: 0 }, [
|
|
1635
|
+
T(" Your plan renews on "),
|
|
1636
|
+
g("span", nn, C(e(o).format(e(i), "fullDateWithWeekday")), 1),
|
|
1637
|
+
T(". ")
|
|
1638
1638
|
], 64)) : (p(), L(U, { key: 1 }, [
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1639
|
+
T(" Your plan ends on "),
|
|
1640
|
+
g("span", sn, C(e(o).format((k = e(a).info) == null ? void 0 : k.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1641
|
+
T(". ")
|
|
1642
1642
|
], 64))
|
|
1643
1643
|
])
|
|
1644
1644
|
])
|
|
@@ -1651,10 +1651,10 @@ const Ke = W("settings", () => {
|
|
|
1651
1651
|
});
|
|
1652
1652
|
};
|
|
1653
1653
|
}
|
|
1654
|
-
}), rn = /* @__PURE__ */
|
|
1654
|
+
}), rn = /* @__PURE__ */ g("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The Vuetify One subscription comes with the following perks: ", -1), ln = ["innerHTML"], cn = /* @__PURE__ */ g("br", null, null, -1), un = /* @__PURE__ */ g("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The following features are in development and coming soon: ", -1), dn = ["innerHTML"], pn = /* @__PURE__ */ $({
|
|
1655
1655
|
__name: "VoSubscriptionPerks",
|
|
1656
1656
|
setup(c) {
|
|
1657
|
-
const
|
|
1657
|
+
const t = [
|
|
1658
1658
|
"Ad Free Experience on all Vuetify properties",
|
|
1659
1659
|
'Save and share code snippets with <a href="https://vbin.io/" target="_blank">VBin</a>',
|
|
1660
1660
|
'Pinned Navigation Items and Rail drawer in <a href="https://vuetifyjs.com/" target="_blank">Documentation</a>',
|
|
@@ -1664,40 +1664,40 @@ const Ke = W("settings", () => {
|
|
|
1664
1664
|
'Special role in the <a href="https://discord.vuetifyjs.com/" target="_blank">Vuetify Discord</a>',
|
|
1665
1665
|
'Save and share your playgrounds with <a href="https://play.vuetifyjs.com" target="_blank">Vuetify Play</a>',
|
|
1666
1666
|
"Receive a special label on GitHub created issues and pull requests"
|
|
1667
|
-
],
|
|
1668
|
-
return B(
|
|
1667
|
+
], a = A(!1), n = P();
|
|
1668
|
+
return B(a, async (i) => {
|
|
1669
1669
|
i && n.subscriptionInfo();
|
|
1670
1670
|
}), (i, l) => {
|
|
1671
|
-
const
|
|
1671
|
+
const d = J;
|
|
1672
1672
|
return p(), L(U, null, [
|
|
1673
|
-
|
|
1673
|
+
s(He, { class: "font-weight-black" }, {
|
|
1674
1674
|
default: r(() => [
|
|
1675
|
-
|
|
1675
|
+
T("Perks")
|
|
1676
1676
|
]),
|
|
1677
1677
|
_: 1
|
|
1678
1678
|
}),
|
|
1679
1679
|
rn,
|
|
1680
|
-
|
|
1680
|
+
s(ae, {
|
|
1681
1681
|
class: "py-0",
|
|
1682
1682
|
density: "compact",
|
|
1683
1683
|
lines: !1,
|
|
1684
1684
|
nav: ""
|
|
1685
1685
|
}, {
|
|
1686
1686
|
default: r(() => [
|
|
1687
|
-
(p(), L(U, null, ne(
|
|
1688
|
-
key:
|
|
1687
|
+
(p(), L(U, null, ne(t, (f, u) => s(d, {
|
|
1688
|
+
key: u,
|
|
1689
1689
|
class: "mb-0",
|
|
1690
|
-
"prepend-icon": `svg:${
|
|
1690
|
+
"prepend-icon": `svg:${e(Ae)}`
|
|
1691
1691
|
}, {
|
|
1692
1692
|
prepend: r(() => [
|
|
1693
|
-
|
|
1693
|
+
s(D, {
|
|
1694
1694
|
class: "mx-n2",
|
|
1695
1695
|
color: "success",
|
|
1696
1696
|
size: "small"
|
|
1697
1697
|
})
|
|
1698
1698
|
]),
|
|
1699
1699
|
title: r(() => [
|
|
1700
|
-
|
|
1700
|
+
g("div", { innerHTML: f }, null, 8, ln)
|
|
1701
1701
|
]),
|
|
1702
1702
|
_: 2
|
|
1703
1703
|
}, 1032, ["prepend-icon"])), 64))
|
|
@@ -1705,33 +1705,33 @@ const Ke = W("settings", () => {
|
|
|
1705
1705
|
_: 1
|
|
1706
1706
|
}),
|
|
1707
1707
|
cn,
|
|
1708
|
-
|
|
1708
|
+
s(He, { class: "font-weight-black" }, {
|
|
1709
1709
|
default: r(() => [
|
|
1710
|
-
|
|
1710
|
+
T("Up Next")
|
|
1711
1711
|
]),
|
|
1712
1712
|
_: 1
|
|
1713
1713
|
}),
|
|
1714
1714
|
un,
|
|
1715
|
-
|
|
1715
|
+
s(ae, {
|
|
1716
1716
|
class: "py-0",
|
|
1717
1717
|
density: "compact",
|
|
1718
1718
|
lines: !1,
|
|
1719
1719
|
nav: ""
|
|
1720
1720
|
}, {
|
|
1721
1721
|
default: r(() => [
|
|
1722
|
-
(p(), L(U, null, ne(o, (f,
|
|
1723
|
-
key:
|
|
1722
|
+
(p(), L(U, null, ne(o, (f, u) => s(d, {
|
|
1723
|
+
key: u,
|
|
1724
1724
|
class: "mb-0",
|
|
1725
|
-
"prepend-icon": `svg:${
|
|
1725
|
+
"prepend-icon": `svg:${e(Gt)}`
|
|
1726
1726
|
}, {
|
|
1727
1727
|
prepend: r(() => [
|
|
1728
|
-
|
|
1728
|
+
s(D, {
|
|
1729
1729
|
class: "mx-n2",
|
|
1730
1730
|
size: "small"
|
|
1731
1731
|
})
|
|
1732
1732
|
]),
|
|
1733
1733
|
title: r(() => [
|
|
1734
|
-
|
|
1734
|
+
g("div", { innerHTML: f }, null, 8, dn)
|
|
1735
1735
|
]),
|
|
1736
1736
|
_: 2
|
|
1737
1737
|
}, 1032, ["prepend-icon"])), 64))
|
|
@@ -1751,10 +1751,10 @@ const Ke = W("settings", () => {
|
|
|
1751
1751
|
},
|
|
1752
1752
|
emits: ["update:modelValue"],
|
|
1753
1753
|
setup(c) {
|
|
1754
|
-
const
|
|
1755
|
-
return B(
|
|
1756
|
-
n &&
|
|
1757
|
-
}), B(() =>
|
|
1754
|
+
const t = A(!1), o = re(c, "modelValue"), a = P();
|
|
1755
|
+
return B(t, async (n) => {
|
|
1756
|
+
n && a.subscriptionInfo();
|
|
1757
|
+
}), B(() => a.interval, (n) => {
|
|
1758
1758
|
o.value = n;
|
|
1759
1759
|
}, { immediate: !0 }), (n, i) => (p(), _(pt, {
|
|
1760
1760
|
modelValue: o.value,
|
|
@@ -1762,27 +1762,27 @@ const Ke = W("settings", () => {
|
|
|
1762
1762
|
mandatory: ""
|
|
1763
1763
|
}, {
|
|
1764
1764
|
default: r(() => [
|
|
1765
|
-
|
|
1765
|
+
s(de, null, {
|
|
1766
1766
|
default: r(() => [
|
|
1767
|
-
|
|
1767
|
+
s(K, {
|
|
1768
1768
|
cols: "12",
|
|
1769
1769
|
md: "6"
|
|
1770
1770
|
}, {
|
|
1771
1771
|
default: r(() => [
|
|
1772
|
-
|
|
1773
|
-
default: r(({ toggle: l, isSelected:
|
|
1774
|
-
|
|
1775
|
-
border:
|
|
1776
|
-
color:
|
|
1777
|
-
"prepend-icon":
|
|
1772
|
+
s(Re, { value: "month" }, {
|
|
1773
|
+
default: r(({ toggle: l, isSelected: d }) => [
|
|
1774
|
+
s(E, {
|
|
1775
|
+
border: d ? "sm primary opacity-100" : "sm",
|
|
1776
|
+
color: d ? "primary" : void 0,
|
|
1777
|
+
"prepend-icon": d ? `svg:${e(Ie)}` : "$radioOff",
|
|
1778
1778
|
rounded: "lg",
|
|
1779
1779
|
subtitle: "$2.99/month",
|
|
1780
1780
|
title: "Monthly",
|
|
1781
|
-
variant:
|
|
1781
|
+
variant: d ? "tonal" : "text",
|
|
1782
1782
|
onClick: l
|
|
1783
1783
|
}, {
|
|
1784
1784
|
prepend: r(() => [
|
|
1785
|
-
|
|
1785
|
+
s(D, { class: "mt-n6" })
|
|
1786
1786
|
]),
|
|
1787
1787
|
_: 2
|
|
1788
1788
|
}, 1032, ["border", "color", "prepend-icon", "variant", "onClick"])
|
|
@@ -1792,28 +1792,28 @@ const Ke = W("settings", () => {
|
|
|
1792
1792
|
]),
|
|
1793
1793
|
_: 1
|
|
1794
1794
|
}),
|
|
1795
|
-
|
|
1795
|
+
s(K, {
|
|
1796
1796
|
cols: "12",
|
|
1797
1797
|
md: "6"
|
|
1798
1798
|
}, {
|
|
1799
1799
|
default: r(() => [
|
|
1800
|
-
|
|
1801
|
-
default: r(({ toggle: l, isSelected:
|
|
1802
|
-
|
|
1803
|
-
border:
|
|
1804
|
-
color:
|
|
1805
|
-
"prepend-icon":
|
|
1800
|
+
s(Re, { value: "year" }, {
|
|
1801
|
+
default: r(({ toggle: l, isSelected: d }) => [
|
|
1802
|
+
s(E, {
|
|
1803
|
+
border: d ? "sm primary opacity-100" : "sm",
|
|
1804
|
+
color: d ? "primary" : void 0,
|
|
1805
|
+
"prepend-icon": d ? `svg:${e(Ie)}` : "$radioOff",
|
|
1806
1806
|
rounded: "lg",
|
|
1807
1807
|
subtitle: "$29.99/year",
|
|
1808
1808
|
title: "Yearly",
|
|
1809
|
-
variant:
|
|
1809
|
+
variant: d ? "tonal" : "text",
|
|
1810
1810
|
onClick: l
|
|
1811
1811
|
}, {
|
|
1812
1812
|
prepend: r(() => [
|
|
1813
|
-
|
|
1813
|
+
s(D, { class: "mt-n6" })
|
|
1814
1814
|
]),
|
|
1815
1815
|
append: r(() => [
|
|
1816
|
-
|
|
1816
|
+
s(te, {
|
|
1817
1817
|
class: "mt-n6",
|
|
1818
1818
|
color: "success",
|
|
1819
1819
|
size: "small",
|
|
@@ -1836,7 +1836,7 @@ const Ke = W("settings", () => {
|
|
|
1836
1836
|
_: 1
|
|
1837
1837
|
}, 8, ["modelValue"]));
|
|
1838
1838
|
}
|
|
1839
|
-
}), fn = { class: "px-3" }, vn = /* @__PURE__ */
|
|
1839
|
+
}), fn = { class: "px-3" }, vn = /* @__PURE__ */ g("br", null, null, -1), hn = { class: "flex-grow-1 px-4 pb-3 overflow-hidden" }, _n = /* @__PURE__ */ $({
|
|
1840
1840
|
__name: "VoSubscriptionDialog",
|
|
1841
1841
|
props: {
|
|
1842
1842
|
modelValue: { type: Boolean },
|
|
@@ -1844,63 +1844,63 @@ const Ke = W("settings", () => {
|
|
|
1844
1844
|
},
|
|
1845
1845
|
emits: ["update:modelValue"],
|
|
1846
1846
|
setup(c) {
|
|
1847
|
-
function
|
|
1848
|
-
return new Promise((h) => setTimeout(h,
|
|
1847
|
+
function t(u) {
|
|
1848
|
+
return new Promise((h) => setTimeout(h, u));
|
|
1849
1849
|
}
|
|
1850
|
-
const o = re(c, "modelValue"),
|
|
1851
|
-
B(i, (
|
|
1852
|
-
!
|
|
1853
|
-
}), B(o, async (
|
|
1854
|
-
if (!
|
|
1855
|
-
|
|
1850
|
+
const o = re(c, "modelValue"), a = P(), n = ve(), i = A(a.interval), l = A(a.hasBilling ? "status" : "subscribe"), d = A(!1);
|
|
1851
|
+
B(i, (u) => {
|
|
1852
|
+
!a.isSubscriber || !a.interval || (d.value = u !== a.interval);
|
|
1853
|
+
}), B(o, async (u) => {
|
|
1854
|
+
if (!u || !a.isSubscriber) {
|
|
1855
|
+
u || a.resetQuery();
|
|
1856
1856
|
return;
|
|
1857
1857
|
}
|
|
1858
|
-
|
|
1858
|
+
a.subscriptionInfo();
|
|
1859
1859
|
}), B(n, async () => {
|
|
1860
|
-
!
|
|
1860
|
+
!a.sessionId && !["subscribe", "status"].includes(n.value.one) || (l.value = a.sessionId || n.value.one === "status" ? "status" : "subscribe", a.isOpen = !0, await pe(), o.value = !0);
|
|
1861
1861
|
}, { immediate: !0 });
|
|
1862
1862
|
async function f() {
|
|
1863
|
-
await
|
|
1863
|
+
await a.modify(i.value), await a.subscriptionInfo(), d.value = null, await t(3e3), l.value = "status", await t(300), d.value = !1;
|
|
1864
1864
|
}
|
|
1865
|
-
return (
|
|
1866
|
-
const
|
|
1865
|
+
return (u, h) => {
|
|
1866
|
+
const k = we, y = mn, V = pn, m = an, v = Yo, b = fe, N = xe;
|
|
1867
1867
|
return p(), _(N, {
|
|
1868
1868
|
modelValue: o.value,
|
|
1869
|
-
"onUpdate:modelValue": h[4] || (h[4] = (
|
|
1870
|
-
"prepend-icon": `svg:${
|
|
1869
|
+
"onUpdate:modelValue": h[4] || (h[4] = (j) => o.value = j),
|
|
1870
|
+
"prepend-icon": `svg:${e(Zt)}`,
|
|
1871
1871
|
title: "Subscriptions"
|
|
1872
1872
|
}, R({
|
|
1873
1873
|
default: r(() => [
|
|
1874
|
-
|
|
1874
|
+
s(ke, null, {
|
|
1875
1875
|
default: r(() => [
|
|
1876
|
-
|
|
1876
|
+
s($e, { scrollable: "" }, {
|
|
1877
1877
|
default: r(() => [
|
|
1878
|
-
|
|
1879
|
-
|
|
1878
|
+
g("div", fn, [
|
|
1879
|
+
s(_e, null, {
|
|
1880
1880
|
default: r(() => [
|
|
1881
|
-
|
|
1881
|
+
s(k, {
|
|
1882
1882
|
text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
|
|
1883
1883
|
title: "Vuetify One"
|
|
1884
1884
|
}),
|
|
1885
|
-
|
|
1885
|
+
s(mt, { "model-value": e(l) }, {
|
|
1886
1886
|
default: r(() => [
|
|
1887
|
-
|
|
1887
|
+
s(ge, { value: "subscribe" }, {
|
|
1888
1888
|
default: r(() => [
|
|
1889
|
-
|
|
1890
|
-
modelValue:
|
|
1891
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
1889
|
+
s(y, {
|
|
1890
|
+
modelValue: e(i),
|
|
1891
|
+
"onUpdate:modelValue": h[0] || (h[0] = (j) => se(i) ? i.value = j : null)
|
|
1892
1892
|
}, null, 8, ["modelValue"]),
|
|
1893
1893
|
vn,
|
|
1894
|
-
|
|
1894
|
+
s(V)
|
|
1895
1895
|
]),
|
|
1896
1896
|
_: 1
|
|
1897
1897
|
}),
|
|
1898
|
-
|
|
1898
|
+
s(ge, { value: "status" }, {
|
|
1899
1899
|
default: r(() => [
|
|
1900
|
-
|
|
1901
|
-
"onChange:subscription": h[1] || (h[1] = (
|
|
1900
|
+
s(m, {
|
|
1901
|
+
"onChange:subscription": h[1] || (h[1] = (j) => l.value = "subscribe")
|
|
1902
1902
|
}),
|
|
1903
|
-
|
|
1903
|
+
s(v)
|
|
1904
1904
|
]),
|
|
1905
1905
|
_: 1
|
|
1906
1906
|
})
|
|
@@ -1920,37 +1920,37 @@ const Ke = W("settings", () => {
|
|
|
1920
1920
|
]),
|
|
1921
1921
|
_: 2
|
|
1922
1922
|
}, [
|
|
1923
|
-
|
|
1923
|
+
e(l) === "subscribe" ? {
|
|
1924
1924
|
name: "actions",
|
|
1925
1925
|
fn: r(() => [
|
|
1926
|
-
|
|
1927
|
-
|
|
1926
|
+
g("div", hn, [
|
|
1927
|
+
e(d) !== !1 ? (p(), _(b, {
|
|
1928
1928
|
key: 0,
|
|
1929
1929
|
block: "",
|
|
1930
1930
|
color: "success",
|
|
1931
|
-
loading:
|
|
1932
|
-
"prepend-icon": `svg:${
|
|
1933
|
-
readonly:
|
|
1931
|
+
loading: e(a).isLoading,
|
|
1932
|
+
"prepend-icon": `svg:${e(d) !== null ? e(Qt) : e(Ie)}`,
|
|
1933
|
+
readonly: e(d) === null,
|
|
1934
1934
|
size: "default",
|
|
1935
|
-
text:
|
|
1935
|
+
text: e(d) !== null ? "Modify Subscription" : "Success",
|
|
1936
1936
|
onClick: f
|
|
1937
|
-
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) :
|
|
1937
|
+
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : e(a).isSubscriber ? (p(), _(b, {
|
|
1938
1938
|
key: 2,
|
|
1939
1939
|
block: "",
|
|
1940
|
-
"prepend-icon": `svg:${
|
|
1940
|
+
"prepend-icon": `svg:${e(Yt)}`,
|
|
1941
1941
|
size: "default",
|
|
1942
1942
|
text: "Manage Subscription",
|
|
1943
|
-
onClick: h[3] || (h[3] = (
|
|
1944
|
-
}, null, 8, ["prepend-icon"])) : (p(), _(
|
|
1943
|
+
onClick: h[3] || (h[3] = (j) => l.value = "status")
|
|
1944
|
+
}, null, 8, ["prepend-icon"])) : (p(), _(b, {
|
|
1945
1945
|
key: 1,
|
|
1946
1946
|
block: "",
|
|
1947
|
-
color:
|
|
1948
|
-
disabled: !
|
|
1949
|
-
loading:
|
|
1947
|
+
color: e(i) ? "primary" : "disabled",
|
|
1948
|
+
disabled: !e(i),
|
|
1949
|
+
loading: e(a).isLoading,
|
|
1950
1950
|
"prepend-icon": "$vuetify",
|
|
1951
1951
|
size: "default",
|
|
1952
1952
|
text: "Activate Subscription",
|
|
1953
|
-
onClick: h[2] || (h[2] = (
|
|
1953
|
+
onClick: h[2] || (h[2] = (j) => e(a).subscribe(e(i)))
|
|
1954
1954
|
}, null, 8, ["color", "disabled", "loading"]))
|
|
1955
1955
|
])
|
|
1956
1956
|
]),
|
|
@@ -1962,19 +1962,19 @@ const Ke = W("settings", () => {
|
|
|
1962
1962
|
}), gn = /* @__PURE__ */ $({
|
|
1963
1963
|
__name: "VoSubscriptionListItem",
|
|
1964
1964
|
setup(c) {
|
|
1965
|
-
const
|
|
1966
|
-
return (o,
|
|
1965
|
+
const t = A(!1);
|
|
1966
|
+
return (o, a) => {
|
|
1967
1967
|
const n = _n, i = J;
|
|
1968
1968
|
return p(), _(i, {
|
|
1969
|
-
active: t
|
|
1969
|
+
active: e(t),
|
|
1970
1970
|
link: "",
|
|
1971
|
-
"prepend-icon": `svg:${
|
|
1971
|
+
"prepend-icon": `svg:${e(Jt)}`,
|
|
1972
1972
|
title: "Subscriptions"
|
|
1973
1973
|
}, {
|
|
1974
1974
|
default: r(() => [
|
|
1975
|
-
|
|
1976
|
-
modelValue: t
|
|
1977
|
-
"onUpdate:modelValue":
|
|
1975
|
+
s(n, {
|
|
1976
|
+
modelValue: e(t),
|
|
1977
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => se(t) ? t.value = l : null)
|
|
1978
1978
|
}, null, 8, ["modelValue"])
|
|
1979
1979
|
]),
|
|
1980
1980
|
_: 1
|
|
@@ -1984,7 +1984,7 @@ const Ke = W("settings", () => {
|
|
|
1984
1984
|
}), yn = {
|
|
1985
1985
|
key: 0,
|
|
1986
1986
|
class: "text-success"
|
|
1987
|
-
},
|
|
1987
|
+
}, Te = /* @__PURE__ */ $({
|
|
1988
1988
|
__name: "VoSponsorshipsTimelineItem",
|
|
1989
1989
|
props: {
|
|
1990
1990
|
title: {},
|
|
@@ -1996,43 +1996,43 @@ const Ke = W("settings", () => {
|
|
|
1996
1996
|
sponsorship: {}
|
|
1997
1997
|
},
|
|
1998
1998
|
setup(c) {
|
|
1999
|
-
const
|
|
1999
|
+
const t = c, o = Ke(), a = S(() => {
|
|
2000
2000
|
var i, l;
|
|
2001
|
-
return `$${parseFloat(String((((i =
|
|
2001
|
+
return `$${parseFloat(String((((i = t.sponsorship) == null ? void 0 : i.amount) ?? 0) / 100)).toFixed(2)} /${(l = t.sponsorship) == null ? void 0 : l.interval}`;
|
|
2002
2002
|
});
|
|
2003
2003
|
return (n, i) => {
|
|
2004
|
-
var
|
|
2004
|
+
var d, f;
|
|
2005
2005
|
const l = fe;
|
|
2006
2006
|
return p(), _(ko, {
|
|
2007
|
-
"dot-color": (
|
|
2008
|
-
icon: (f = n.sponsorship) != null && f.isActive ? `svg:${
|
|
2007
|
+
"dot-color": (d = n.sponsorship) != null && d.isActive ? "success" : "transparent",
|
|
2008
|
+
icon: (f = n.sponsorship) != null && f.isActive ? `svg:${e(Ae)}` : void 0,
|
|
2009
2009
|
size: "x-small",
|
|
2010
2010
|
width: "100%"
|
|
2011
2011
|
}, {
|
|
2012
2012
|
default: r(() => [
|
|
2013
|
-
|
|
2013
|
+
s(E, {
|
|
2014
2014
|
border: "",
|
|
2015
|
-
"prepend-avatar": `${
|
|
2015
|
+
"prepend-avatar": `${e(o).CDN_URL}logos/${n.logo}.png`,
|
|
2016
2016
|
rounded: "lg",
|
|
2017
2017
|
title: n.title,
|
|
2018
2018
|
variant: "text"
|
|
2019
2019
|
}, {
|
|
2020
2020
|
subtitle: r(() => {
|
|
2021
|
-
var
|
|
2021
|
+
var u;
|
|
2022
2022
|
return [
|
|
2023
|
-
(
|
|
2024
|
-
|
|
2025
|
-
icon: `svg:${
|
|
2023
|
+
(u = n.sponsorship) != null && u.isActive ? (p(), L("div", yn, [
|
|
2024
|
+
s(D, {
|
|
2025
|
+
icon: `svg:${e(Xt)}`,
|
|
2026
2026
|
size: "x-small"
|
|
2027
2027
|
}, null, 8, ["icon"]),
|
|
2028
|
-
|
|
2028
|
+
T(" " + C(e(a)), 1)
|
|
2029
2029
|
])) : (p(), L(U, { key: 1 }, [
|
|
2030
|
-
|
|
2030
|
+
T(C(n.text), 1)
|
|
2031
2031
|
], 64))
|
|
2032
2032
|
];
|
|
2033
2033
|
}),
|
|
2034
2034
|
append: r(() => {
|
|
2035
|
-
var
|
|
2035
|
+
var u, h, k, y, V, m;
|
|
2036
2036
|
return [
|
|
2037
2037
|
n.disabled ? (p(), _(l, {
|
|
2038
2038
|
key: 1,
|
|
@@ -2042,11 +2042,11 @@ const Ke = W("settings", () => {
|
|
|
2042
2042
|
})) : (p(), _(l, {
|
|
2043
2043
|
key: 0,
|
|
2044
2044
|
active: !1,
|
|
2045
|
-
color: (
|
|
2045
|
+
color: (u = n.sponsorship) != null && u.isActive ? "success" : "primary",
|
|
2046
2046
|
href: (h = n.sponsorship) != null && h.isActive || n.to ? void 0 : n.href,
|
|
2047
|
-
"prepend-icon": `svg:${(
|
|
2048
|
-
readonly: (
|
|
2049
|
-
target: (
|
|
2047
|
+
"prepend-icon": `svg:${(k = n.sponsorship) != null && k.isActive ? e(Ie) : e(Oe)}`,
|
|
2048
|
+
readonly: (y = n.sponsorship) == null ? void 0 : y.isActive,
|
|
2049
|
+
target: (V = n.sponsorship) != null && V.isActive || n.to ? void 0 : "_blank",
|
|
2050
2050
|
text: (m = n.sponsorship) != null && m.isActive ? "Active" : "Info",
|
|
2051
2051
|
to: n.to,
|
|
2052
2052
|
width: "88"
|
|
@@ -2063,9 +2063,9 @@ const Ke = W("settings", () => {
|
|
|
2063
2063
|
}), bn = /* @__PURE__ */ $({
|
|
2064
2064
|
__name: "VoSponsorshipsTimelineItemPatreon",
|
|
2065
2065
|
setup(c) {
|
|
2066
|
-
return (
|
|
2067
|
-
const
|
|
2068
|
-
return p(), _(
|
|
2066
|
+
return (t, o) => {
|
|
2067
|
+
const a = Te;
|
|
2068
|
+
return p(), _(a, {
|
|
2069
2069
|
disabled: "",
|
|
2070
2070
|
logo: "patreon",
|
|
2071
2071
|
text: "Support Vuetify through Patreon.",
|
|
@@ -2076,13 +2076,13 @@ const Ke = W("settings", () => {
|
|
|
2076
2076
|
}), Vn = /* @__PURE__ */ $({
|
|
2077
2077
|
__name: "VoSponsorshipsTimelineItemDiscord",
|
|
2078
2078
|
setup(c) {
|
|
2079
|
-
const
|
|
2080
|
-
return (o,
|
|
2081
|
-
const n =
|
|
2079
|
+
const t = P();
|
|
2080
|
+
return (o, a) => {
|
|
2081
|
+
const n = Te;
|
|
2082
2082
|
return p(), _(n, {
|
|
2083
2083
|
href: "https://discord.com/servers/vuetify-340160225338195969",
|
|
2084
2084
|
logo: "discord",
|
|
2085
|
-
sponsorship: t
|
|
2085
|
+
sponsorship: e(t).discord,
|
|
2086
2086
|
text: "Support Vuetify through Discord.",
|
|
2087
2087
|
title: "Discord Subscriber"
|
|
2088
2088
|
}, null, 8, ["sponsorship"]);
|
|
@@ -2091,13 +2091,13 @@ const Ke = W("settings", () => {
|
|
|
2091
2091
|
}), kn = /* @__PURE__ */ $({
|
|
2092
2092
|
__name: "VoSponsorshipsTimelineItemGithub",
|
|
2093
2093
|
setup(c) {
|
|
2094
|
-
const
|
|
2095
|
-
return (o,
|
|
2096
|
-
const n =
|
|
2094
|
+
const t = P();
|
|
2095
|
+
return (o, a) => {
|
|
2096
|
+
const n = Te;
|
|
2097
2097
|
return p(), _(n, {
|
|
2098
2098
|
href: "https://github.com/sponsors/johnleider",
|
|
2099
2099
|
logo: "github",
|
|
2100
|
-
sponsorship: t
|
|
2100
|
+
sponsorship: e(t).github,
|
|
2101
2101
|
text: "Support Vuetify through GitHub sponsors.",
|
|
2102
2102
|
title: "GitHub Sponsor"
|
|
2103
2103
|
}, null, 8, ["sponsorship"]);
|
|
@@ -2106,12 +2106,12 @@ const Ke = W("settings", () => {
|
|
|
2106
2106
|
}), $n = /* @__PURE__ */ $({
|
|
2107
2107
|
__name: "VoSponsorshipsTimelineItemOne",
|
|
2108
2108
|
setup(c) {
|
|
2109
|
-
const
|
|
2110
|
-
return (o,
|
|
2111
|
-
const n =
|
|
2109
|
+
const t = P();
|
|
2110
|
+
return (o, a) => {
|
|
2111
|
+
const n = Te;
|
|
2112
2112
|
return p(), _(n, {
|
|
2113
2113
|
logo: "one",
|
|
2114
|
-
sponsorship: t
|
|
2114
|
+
sponsorship: e(t).one,
|
|
2115
2115
|
text: "Support Vuetify through Vuetify One.",
|
|
2116
2116
|
title: "Vuetify One Subscriber",
|
|
2117
2117
|
to: "?one=subscribe"
|
|
@@ -2121,8 +2121,8 @@ const Ke = W("settings", () => {
|
|
|
2121
2121
|
}), xn = /* @__PURE__ */ $({
|
|
2122
2122
|
__name: "VoSponsorshipsTimeline",
|
|
2123
2123
|
setup(c) {
|
|
2124
|
-
return (
|
|
2125
|
-
const
|
|
2124
|
+
return (t, o) => {
|
|
2125
|
+
const a = $n, n = kn, i = Vn, l = bn;
|
|
2126
2126
|
return p(), _($o, {
|
|
2127
2127
|
class: "justify-start ms-n7",
|
|
2128
2128
|
"line-inset": "12",
|
|
@@ -2131,10 +2131,10 @@ const Ke = W("settings", () => {
|
|
|
2131
2131
|
"truncate-line": "both"
|
|
2132
2132
|
}, {
|
|
2133
2133
|
default: r(() => [
|
|
2134
|
-
a
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2134
|
+
s(a),
|
|
2135
|
+
s(n),
|
|
2136
|
+
s(i),
|
|
2137
|
+
s(l)
|
|
2138
2138
|
]),
|
|
2139
2139
|
_: 1
|
|
2140
2140
|
});
|
|
@@ -2148,50 +2148,50 @@ const Ke = W("settings", () => {
|
|
|
2148
2148
|
},
|
|
2149
2149
|
emits: ["update:modelValue"],
|
|
2150
2150
|
setup(c) {
|
|
2151
|
-
const
|
|
2151
|
+
const t = re(c, "modelValue"), o = ve(), a = M(), n = P();
|
|
2152
2152
|
return B(o, async () => {
|
|
2153
|
-
o.value.one === "sponsorships" && (n.isOpen = !0, await pe(),
|
|
2153
|
+
o.value.one === "sponsorships" && (n.isOpen = !0, await pe(), t.value = !0);
|
|
2154
2154
|
}, { immediate: !0 }), (i, l) => {
|
|
2155
|
-
const
|
|
2155
|
+
const d = we, f = xn, u = We("v-empty-state"), h = xe;
|
|
2156
2156
|
return p(), _(h, {
|
|
2157
|
-
modelValue:
|
|
2158
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
2159
|
-
"prepend-icon": `svg:${
|
|
2157
|
+
modelValue: t.value,
|
|
2158
|
+
"onUpdate:modelValue": l[0] || (l[0] = (k) => t.value = k),
|
|
2159
|
+
"prepend-icon": `svg:${e(Kt)}`,
|
|
2160
2160
|
title: "Sponsorships"
|
|
2161
2161
|
}, {
|
|
2162
2162
|
default: r(() => [
|
|
2163
|
-
|
|
2163
|
+
s(ke, null, {
|
|
2164
2164
|
default: r(() => [
|
|
2165
|
-
|
|
2165
|
+
s($e, { scrollable: "" }, {
|
|
2166
2166
|
default: r(() => [
|
|
2167
|
-
|
|
2168
|
-
|
|
2167
|
+
g("div", wn, [
|
|
2168
|
+
s(_e, { class: "flex-0-0 mb-16 mb-sm-4" }, {
|
|
2169
2169
|
default: r(() => [
|
|
2170
|
-
|
|
2170
|
+
s(d, {
|
|
2171
2171
|
text: "Support Vuetify through GitHub Sponsors, Discord, or Patreon to unlock exclusive benefits and content.",
|
|
2172
2172
|
title: "Support Vuetify"
|
|
2173
2173
|
}),
|
|
2174
|
-
|
|
2174
|
+
s(f)
|
|
2175
2175
|
]),
|
|
2176
2176
|
_: 1
|
|
2177
2177
|
}),
|
|
2178
|
-
|
|
2178
|
+
s(u, {
|
|
2179
2179
|
class: "flex-1-0",
|
|
2180
2180
|
icon: "$vuetify",
|
|
2181
2181
|
"min-height": "auto",
|
|
2182
2182
|
size: "128"
|
|
2183
2183
|
}, {
|
|
2184
2184
|
media: r(() => [
|
|
2185
|
-
|
|
2186
|
-
color:
|
|
2185
|
+
s(D, {
|
|
2186
|
+
color: e(a).isSubscriber ? "success" : "error"
|
|
2187
2187
|
}, null, 8, ["color"])
|
|
2188
2188
|
]),
|
|
2189
2189
|
title: r(() => [
|
|
2190
|
-
|
|
2191
|
-
|
|
2190
|
+
T(" One Status: "),
|
|
2191
|
+
g("span", Sn, C(e(a).isSubscriber ? "Active" : "Inactive"), 1)
|
|
2192
2192
|
]),
|
|
2193
2193
|
text: r(() => [
|
|
2194
|
-
|
|
2194
|
+
g("div", Cn, C(e(a).isSubscriber ? "You are currently receiving benefits from Vuetify One." : "Login to activate Vuetify One benefits"), 1)
|
|
2195
2195
|
]),
|
|
2196
2196
|
_: 1
|
|
2197
2197
|
})
|
|
@@ -2210,26 +2210,26 @@ const Ke = W("settings", () => {
|
|
|
2210
2210
|
}), In = /* @__PURE__ */ $({
|
|
2211
2211
|
__name: "VoSponsorshipsListItem",
|
|
2212
2212
|
setup(c) {
|
|
2213
|
-
const
|
|
2214
|
-
return (o,
|
|
2213
|
+
const t = A(!1);
|
|
2214
|
+
return (o, a) => {
|
|
2215
2215
|
const n = Ln, i = J;
|
|
2216
2216
|
return p(), _(i, {
|
|
2217
|
-
active: t
|
|
2217
|
+
active: e(t),
|
|
2218
2218
|
link: "",
|
|
2219
|
-
"prepend-icon": `svg:${
|
|
2219
|
+
"prepend-icon": `svg:${e(eo)}`,
|
|
2220
2220
|
title: "Sponsorships"
|
|
2221
2221
|
}, {
|
|
2222
2222
|
default: r(() => [
|
|
2223
|
-
|
|
2224
|
-
modelValue: t
|
|
2225
|
-
"onUpdate:modelValue":
|
|
2223
|
+
s(n, {
|
|
2224
|
+
modelValue: e(t),
|
|
2225
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => se(t) ? t.value = l : null)
|
|
2226
2226
|
}, null, 8, ["modelValue"])
|
|
2227
2227
|
]),
|
|
2228
2228
|
_: 1
|
|
2229
2229
|
}, 8, ["active", "prepend-icon"]);
|
|
2230
2230
|
};
|
|
2231
2231
|
}
|
|
2232
|
-
}), Dn = /* @__PURE__ */
|
|
2232
|
+
}), Dn = /* @__PURE__ */ g("h2", { class: "text-h4" }, " Configuration Tooling ", -1), An = /* @__PURE__ */ g("p", { class: "text-subtitle-1 text-medium-emphasis" }, " Coming soon to Vuetify One ", -1), On = { class: "text-uppercase text-info" }, Nn = { class: "text-h6 mb-2" }, Bn = { class: "text-caption" }, Un = /* @__PURE__ */ g("div", null, " Become a subscriber and be the first to gain access to the Vuetify Studio Alpha when it releases in April 2024. ", -1), zn = /* @__PURE__ */ $({
|
|
2233
2233
|
__name: "VoStudioDialog",
|
|
2234
2234
|
props: /* @__PURE__ */ nt({
|
|
2235
2235
|
prependIcon: {}
|
|
@@ -2239,7 +2239,7 @@ const Ke = W("settings", () => {
|
|
|
2239
2239
|
}),
|
|
2240
2240
|
emits: ["update:modelValue"],
|
|
2241
2241
|
setup(c) {
|
|
2242
|
-
const
|
|
2242
|
+
const t = re(c, "modelValue"), o = ve(), a = Ne(), n = M(), i = P(), { smAndUp: l } = le(), d = [
|
|
2243
2243
|
{
|
|
2244
2244
|
title: "Customize",
|
|
2245
2245
|
subtitle: "Customize your Vuetify theme, components, and more with the Vuetify Studio.",
|
|
@@ -2260,25 +2260,25 @@ const Ke = W("settings", () => {
|
|
|
2260
2260
|
}
|
|
2261
2261
|
];
|
|
2262
2262
|
B(o, async () => {
|
|
2263
|
-
o.value.one === "studio" && (i.isOpen = !0, await pe(),
|
|
2263
|
+
o.value.one === "studio" && (i.isOpen = !0, await pe(), t.value = !0);
|
|
2264
2264
|
}, { immediate: !0 });
|
|
2265
2265
|
function f() {
|
|
2266
|
-
|
|
2266
|
+
t.value = !1, a.push({ query: { one: "subscribe" } });
|
|
2267
2267
|
}
|
|
2268
|
-
return (
|
|
2269
|
-
const
|
|
2270
|
-
return p(), _(
|
|
2271
|
-
modelValue:
|
|
2272
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2273
|
-
"prepend-icon":
|
|
2268
|
+
return (u, h) => {
|
|
2269
|
+
const k = fe, y = xe;
|
|
2270
|
+
return p(), _(y, {
|
|
2271
|
+
modelValue: t.value,
|
|
2272
|
+
"onUpdate:modelValue": h[0] || (h[0] = (V) => t.value = V),
|
|
2273
|
+
"prepend-icon": u.prependIcon,
|
|
2274
2274
|
title: "Vuetify Studio"
|
|
2275
2275
|
}, {
|
|
2276
2276
|
default: r(() => [
|
|
2277
|
-
|
|
2277
|
+
s(ke, null, {
|
|
2278
2278
|
default: r(() => [
|
|
2279
|
-
|
|
2279
|
+
s($e, { scrollable: "" }, {
|
|
2280
2280
|
default: r(() => [
|
|
2281
|
-
|
|
2281
|
+
s(Y, {
|
|
2282
2282
|
"content-class": "d-flex align-center justify-center flex-column",
|
|
2283
2283
|
cover: "",
|
|
2284
2284
|
gradient: "to top right, rgba(var(--v-theme-primary),.8), rgba(0,0,0,.9)",
|
|
@@ -2288,16 +2288,16 @@ const Ke = W("settings", () => {
|
|
|
2288
2288
|
src: "https://cdn.vuetifyjs.com/docs/images/one/studio/hero.png"
|
|
2289
2289
|
}, {
|
|
2290
2290
|
default: r(() => [
|
|
2291
|
-
|
|
2291
|
+
s(E, {
|
|
2292
2292
|
class: "text-center pa-3",
|
|
2293
2293
|
color: "surface",
|
|
2294
2294
|
flat: "",
|
|
2295
2295
|
rounded: "xl"
|
|
2296
2296
|
}, {
|
|
2297
2297
|
text: r(() => [
|
|
2298
|
-
|
|
2298
|
+
s(D, {
|
|
2299
2299
|
color: "accent",
|
|
2300
|
-
icon:
|
|
2300
|
+
icon: u.prependIcon,
|
|
2301
2301
|
size: "80"
|
|
2302
2302
|
}, null, 8, ["icon"]),
|
|
2303
2303
|
Dn,
|
|
@@ -2308,17 +2308,17 @@ const Ke = W("settings", () => {
|
|
|
2308
2308
|
]),
|
|
2309
2309
|
_: 1
|
|
2310
2310
|
}),
|
|
2311
|
-
(p(), L(U, null, ne(
|
|
2311
|
+
(p(), L(U, null, ne(d, (V, m) => s(ye, {
|
|
2312
2312
|
key: m,
|
|
2313
2313
|
class: "py-8",
|
|
2314
2314
|
color: m % 2 === 0 ? "surface-light" : "surface-variant"
|
|
2315
2315
|
}, {
|
|
2316
2316
|
default: r(() => [
|
|
2317
|
-
|
|
2317
|
+
s(tt, null, {
|
|
2318
2318
|
default: r(() => [
|
|
2319
|
-
|
|
2319
|
+
s(de, { align: "center" }, {
|
|
2320
2320
|
default: r(() => [
|
|
2321
|
-
|
|
2321
|
+
s(K, {
|
|
2322
2322
|
cols: "12",
|
|
2323
2323
|
offset: "0",
|
|
2324
2324
|
"offset-sm": "1",
|
|
@@ -2326,24 +2326,24 @@ const Ke = W("settings", () => {
|
|
|
2326
2326
|
sm: "6"
|
|
2327
2327
|
}, {
|
|
2328
2328
|
default: r(() => [
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2329
|
+
g("strong", On, C(V.title), 1),
|
|
2330
|
+
g("p", Nn, C(V.subtitle), 1),
|
|
2331
|
+
g("p", Bn, C(V.text), 1)
|
|
2332
2332
|
]),
|
|
2333
2333
|
_: 2
|
|
2334
2334
|
}, 1032, ["order"]),
|
|
2335
|
-
|
|
2335
|
+
s(K, {
|
|
2336
2336
|
cols: "12",
|
|
2337
2337
|
offset: "0",
|
|
2338
2338
|
"offset-sm": m % 2,
|
|
2339
2339
|
sm: "4"
|
|
2340
2340
|
}, {
|
|
2341
2341
|
default: r(() => [
|
|
2342
|
-
|
|
2342
|
+
s(Y, {
|
|
2343
2343
|
cover: "",
|
|
2344
|
-
height:
|
|
2344
|
+
height: e(l) ? 180 : void 0,
|
|
2345
2345
|
rounded: "lg",
|
|
2346
|
-
src:
|
|
2346
|
+
src: V.image
|
|
2347
2347
|
}, null, 8, ["height", "src"])
|
|
2348
2348
|
]),
|
|
2349
2349
|
_: 2
|
|
@@ -2357,18 +2357,18 @@ const Ke = W("settings", () => {
|
|
|
2357
2357
|
]),
|
|
2358
2358
|
_: 2
|
|
2359
2359
|
}, 1032, ["color"])), 64)),
|
|
2360
|
-
|
|
2360
|
+
e(n).isSubscriber ? w("", !0) : (p(), _(ye, {
|
|
2361
2361
|
key: 0,
|
|
2362
2362
|
class: "text-center py-6"
|
|
2363
2363
|
}, {
|
|
2364
2364
|
default: r(() => [
|
|
2365
|
-
|
|
2365
|
+
s(tt, null, {
|
|
2366
2366
|
default: r(() => [
|
|
2367
|
-
|
|
2367
|
+
s(de, { justify: "center" }, {
|
|
2368
2368
|
default: r(() => [
|
|
2369
|
-
|
|
2369
|
+
s(K, { cols: "6" }, {
|
|
2370
2370
|
default: r(() => [
|
|
2371
|
-
|
|
2371
|
+
s(Q, {
|
|
2372
2372
|
image: "https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
2373
2373
|
size: "64"
|
|
2374
2374
|
}),
|
|
@@ -2376,9 +2376,9 @@ const Ke = W("settings", () => {
|
|
|
2376
2376
|
]),
|
|
2377
2377
|
_: 1
|
|
2378
2378
|
}),
|
|
2379
|
-
|
|
2379
|
+
s(K, { cols: "12" }, {
|
|
2380
2380
|
default: r(() => [
|
|
2381
|
-
|
|
2381
|
+
s(k, {
|
|
2382
2382
|
"prepend-icon": "$vuetify",
|
|
2383
2383
|
size: "x-large",
|
|
2384
2384
|
text: "Subscribe Today",
|
|
@@ -2410,35 +2410,35 @@ const Ke = W("settings", () => {
|
|
|
2410
2410
|
}), Fn = /* @__PURE__ */ $({
|
|
2411
2411
|
__name: "VoStudioNavItem",
|
|
2412
2412
|
setup(c) {
|
|
2413
|
-
const
|
|
2413
|
+
const t = A(!1), o = [
|
|
2414
2414
|
["M12.435 14.3194L12 21L6.87046 12.2799L12.435 14.3194Z", 1],
|
|
2415
2415
|
["M22 4L12.435 14.3194L6.87046 12.2799L9.26479 7.61064L12.435 14.3194L12 21L22 4Z", 0.5],
|
|
2416
2416
|
["M12.435 14.3194L22 4L9.26479 7.61064L12.435 14.3194Z", 1],
|
|
2417
2417
|
["M2 4L6.87046 12.2799L9.26479 7.61064L2 4Z", 1]
|
|
2418
2418
|
];
|
|
2419
|
-
return (
|
|
2419
|
+
return (a, n) => {
|
|
2420
2420
|
const i = zn, l = J;
|
|
2421
2421
|
return p(), _(l, {
|
|
2422
|
-
active: t
|
|
2422
|
+
active: e(t),
|
|
2423
2423
|
link: "",
|
|
2424
2424
|
"prepend-icon": o,
|
|
2425
2425
|
title: "Vuetify Studio"
|
|
2426
2426
|
}, {
|
|
2427
2427
|
append: r(() => [
|
|
2428
|
-
|
|
2428
|
+
s(te, {
|
|
2429
2429
|
label: "",
|
|
2430
2430
|
size: "x-small"
|
|
2431
2431
|
}, {
|
|
2432
2432
|
default: r(() => [
|
|
2433
|
-
|
|
2433
|
+
T("COMING SOON")
|
|
2434
2434
|
]),
|
|
2435
2435
|
_: 1
|
|
2436
2436
|
})
|
|
2437
2437
|
]),
|
|
2438
2438
|
default: r(() => [
|
|
2439
|
-
|
|
2440
|
-
modelValue: t
|
|
2441
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2439
|
+
s(i, {
|
|
2440
|
+
modelValue: e(t),
|
|
2441
|
+
"onUpdate:modelValue": n[0] || (n[0] = (d) => se(t) ? t.value = d : null),
|
|
2442
2442
|
"prepend-icon": o
|
|
2443
2443
|
}, null, 8, ["modelValue"])
|
|
2444
2444
|
]),
|
|
@@ -2449,7 +2449,7 @@ const Ke = W("settings", () => {
|
|
|
2449
2449
|
}), Tn = {
|
|
2450
2450
|
key: 0,
|
|
2451
2451
|
class: "pt-16"
|
|
2452
|
-
}, jn = /* @__PURE__ */
|
|
2452
|
+
}, jn = /* @__PURE__ */ g("div", { class: "text-medium-emphasis" }, " All caught up ", -1), Mn = {
|
|
2453
2453
|
key: 1,
|
|
2454
2454
|
class: "pa-5"
|
|
2455
2455
|
}, Pn = { class: "text-subtitle-1 font-weight-bold" }, Hn = { class: "text-caption font-weight-bold text-medium-emphasis" }, Rn = { class: "text-disabled text-caption mt-2 mb-3" }, En = /* @__PURE__ */ $({
|
|
@@ -2458,15 +2458,15 @@ const Ke = W("settings", () => {
|
|
|
2458
2458
|
items: {}
|
|
2459
2459
|
},
|
|
2460
2460
|
setup(c) {
|
|
2461
|
-
const
|
|
2461
|
+
const t = Ue(), o = le(), a = F();
|
|
2462
2462
|
function n(l) {
|
|
2463
|
-
return
|
|
2463
|
+
return a.notifications.last.banner.includes(l);
|
|
2464
2464
|
}
|
|
2465
2465
|
function i(l) {
|
|
2466
|
-
n(l.slug) ?
|
|
2466
|
+
n(l.slug) ? a.notifications.last.banner = a.notifications.last.banner.filter((d) => d !== l.slug) : a.notifications.last.banner.push(l.slug);
|
|
2467
2467
|
}
|
|
2468
|
-
return (l,
|
|
2469
|
-
const f =
|
|
2468
|
+
return (l, d) => {
|
|
2469
|
+
const f = We("v-empty-state");
|
|
2470
2470
|
return p(), _(ae, {
|
|
2471
2471
|
class: "py-0",
|
|
2472
2472
|
height: "100%",
|
|
@@ -2474,56 +2474,56 @@ const Ke = W("settings", () => {
|
|
|
2474
2474
|
}, {
|
|
2475
2475
|
default: r(() => [
|
|
2476
2476
|
l.items.length ? (p(), L("div", Mn, [
|
|
2477
|
-
(p(!0), L(U, null, ne(l.items, (
|
|
2477
|
+
(p(!0), L(U, null, ne(l.items, (u) => {
|
|
2478
2478
|
var h;
|
|
2479
2479
|
return p(), L("div", {
|
|
2480
|
-
key:
|
|
2480
|
+
key: u.slug,
|
|
2481
2481
|
class: "mb-4"
|
|
2482
2482
|
}, [
|
|
2483
|
-
|
|
2484
|
-
color:
|
|
2483
|
+
s(E, {
|
|
2484
|
+
color: u.metadata.color,
|
|
2485
2485
|
flat: "",
|
|
2486
|
-
image: (h =
|
|
2486
|
+
image: (h = u.metadata.images.bg) == null ? void 0 : h.url,
|
|
2487
2487
|
rounded: "b-0",
|
|
2488
|
-
title:
|
|
2488
|
+
title: u.title
|
|
2489
2489
|
}, {
|
|
2490
2490
|
prepend: r(() => {
|
|
2491
|
-
var
|
|
2491
|
+
var k;
|
|
2492
2492
|
return [
|
|
2493
|
-
|
|
2494
|
-
image: (
|
|
2493
|
+
s(Q, {
|
|
2494
|
+
image: (k = u.metadata.images.logo) == null ? void 0 : k.url
|
|
2495
2495
|
}, null, 8, ["image"])
|
|
2496
2496
|
];
|
|
2497
2497
|
}),
|
|
2498
2498
|
image: r(() => [
|
|
2499
|
-
|
|
2499
|
+
s(Y, { position: "right" })
|
|
2500
2500
|
]),
|
|
2501
2501
|
_: 2
|
|
2502
2502
|
}, 1032, ["color", "image", "title"]),
|
|
2503
|
-
|
|
2504
|
-
default: r(({ props:
|
|
2505
|
-
|
|
2503
|
+
s(ze, null, {
|
|
2504
|
+
default: r(({ props: k, isHovering: y }) => [
|
|
2505
|
+
s(ye, H(k, {
|
|
2506
2506
|
border: "",
|
|
2507
2507
|
class: "px-8 pt-2 pb-4 position-relative",
|
|
2508
2508
|
rounded: "b"
|
|
2509
2509
|
}), {
|
|
2510
2510
|
default: r(() => [
|
|
2511
|
-
|
|
2511
|
+
s(ee, {
|
|
2512
2512
|
location: "bottom",
|
|
2513
|
-
text: n(
|
|
2513
|
+
text: n(u.slug) ? "Mark as unread" : "Mark as read"
|
|
2514
2514
|
}, {
|
|
2515
|
-
activator: r(({ props:
|
|
2516
|
-
|
|
2515
|
+
activator: r(({ props: V }) => [
|
|
2516
|
+
s(Be, { "hide-on-leave": "" }, {
|
|
2517
2517
|
default: r(() => [
|
|
2518
|
-
|
|
2518
|
+
De(s(q, H(V, {
|
|
2519
2519
|
class: "ms-auto float-right",
|
|
2520
|
-
icon: `svg:${n(
|
|
2520
|
+
icon: `svg:${n(u.slug) ? e(lt) : e(rt)}`,
|
|
2521
2521
|
"mdi-email-variant": "",
|
|
2522
2522
|
size: "small",
|
|
2523
2523
|
variant: "text",
|
|
2524
|
-
onClick: (m) => i(
|
|
2524
|
+
onClick: (m) => i(u)
|
|
2525
2525
|
}), null, 16, ["icon", "onClick"]), [
|
|
2526
|
-
[
|
|
2526
|
+
[Ge, y || e(o).mobile.value]
|
|
2527
2527
|
])
|
|
2528
2528
|
]),
|
|
2529
2529
|
_: 2
|
|
@@ -2531,23 +2531,23 @@ const Ke = W("settings", () => {
|
|
|
2531
2531
|
]),
|
|
2532
2532
|
_: 2
|
|
2533
2533
|
}, 1032, ["text"]),
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
href:
|
|
2539
|
-
target:
|
|
2540
|
-
to:
|
|
2534
|
+
g("div", Pn, C(u.metadata.text), 1),
|
|
2535
|
+
g("div", Hn, C(e(t).format(u.created_at, "fullDateWithWeekday")), 1),
|
|
2536
|
+
g("div", Rn, C(u.metadata.subtext), 1),
|
|
2537
|
+
s(te, H({
|
|
2538
|
+
href: u.metadata.link.startsWith("http") ? u.metadata.link : void 0,
|
|
2539
|
+
target: u.metadata.link.startsWith("http") ? "_blank" : void 0,
|
|
2540
|
+
to: u.metadata.link.startsWith("http") ? void 0 : u.metadata.link
|
|
2541
2541
|
}, {
|
|
2542
|
-
"append-icon": `svg:${
|
|
2542
|
+
"append-icon": `svg:${e(Oe)}`,
|
|
2543
2543
|
border: "",
|
|
2544
2544
|
label: "",
|
|
2545
2545
|
size: "small",
|
|
2546
|
-
text:
|
|
2546
|
+
text: u.metadata.link_text,
|
|
2547
2547
|
variant: "text"
|
|
2548
2548
|
}), {
|
|
2549
2549
|
append: r(() => [
|
|
2550
|
-
|
|
2550
|
+
s(D, { size: "12" })
|
|
2551
2551
|
]),
|
|
2552
2552
|
_: 2
|
|
2553
2553
|
}, 1040, ["append-icon", "text"])
|
|
@@ -2560,12 +2560,12 @@ const Ke = W("settings", () => {
|
|
|
2560
2560
|
]);
|
|
2561
2561
|
}), 128))
|
|
2562
2562
|
])) : (p(), L("div", Tn, [
|
|
2563
|
-
|
|
2563
|
+
s(f, {
|
|
2564
2564
|
icon: "$vuetify",
|
|
2565
2565
|
size: "256"
|
|
2566
2566
|
}, {
|
|
2567
2567
|
media: r(() => [
|
|
2568
|
-
|
|
2568
|
+
s(D, { color: "medium-emphasis" })
|
|
2569
2569
|
]),
|
|
2570
2570
|
title: r(() => [
|
|
2571
2571
|
jn
|
|
@@ -2585,54 +2585,54 @@ const Ke = W("settings", () => {
|
|
|
2585
2585
|
notification: {}
|
|
2586
2586
|
},
|
|
2587
2587
|
setup(c) {
|
|
2588
|
-
const
|
|
2589
|
-
const f =
|
|
2588
|
+
const t = c, o = F(), a = Ue(), n = le(), i = S(() => {
|
|
2589
|
+
const f = t.notification.metadata ?? { action: "" };
|
|
2590
2590
|
return {
|
|
2591
2591
|
href: f.action.startsWith("http") ? f.action : void 0,
|
|
2592
2592
|
target: f.action.startsWith("http") ? "_blank" : void 0,
|
|
2593
2593
|
to: f.action.startsWith("http") ? void 0 : f.action,
|
|
2594
|
-
...
|
|
2594
|
+
...t.notification.metadata.attributes,
|
|
2595
2595
|
onClick() {
|
|
2596
|
-
|
|
2596
|
+
t.demo || o.notifications.read.includes(t.notification.slug) || o.notifications.read.push(t.notification.slug);
|
|
2597
2597
|
}
|
|
2598
2598
|
};
|
|
2599
2599
|
});
|
|
2600
2600
|
function l(f) {
|
|
2601
2601
|
return o.notifications.read.includes(f);
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2604
|
-
|
|
2603
|
+
function d(f) {
|
|
2604
|
+
t.demo || (l(f.slug) ? o.notifications.read = o.notifications.read.filter((u) => u !== f.slug) : o.notifications.read.push(f.slug));
|
|
2605
2605
|
}
|
|
2606
|
-
return (f,
|
|
2606
|
+
return (f, u) => {
|
|
2607
2607
|
const h = J;
|
|
2608
|
-
return p(), _(
|
|
2609
|
-
default: r(({ isHovering:
|
|
2610
|
-
|
|
2608
|
+
return p(), _(ze, null, {
|
|
2609
|
+
default: r(({ isHovering: k, props: y }) => [
|
|
2610
|
+
s(h, H(y, { class: "py-4 mb-0" }), {
|
|
2611
2611
|
prepend: r(() => [
|
|
2612
|
-
|
|
2612
|
+
g("div", qn, C(f.notification.metadata.emoji), 1)
|
|
2613
2613
|
]),
|
|
2614
2614
|
append: r(() => [
|
|
2615
|
-
|
|
2615
|
+
s(xo, {
|
|
2616
2616
|
class: "mt-n3",
|
|
2617
2617
|
width: "56"
|
|
2618
2618
|
}, {
|
|
2619
2619
|
default: r(() => [
|
|
2620
|
-
|
|
2620
|
+
s(ee, {
|
|
2621
2621
|
location: "bottom",
|
|
2622
2622
|
text: l(f.notification.slug) ? "Mark as unread" : "Mark as read"
|
|
2623
2623
|
}, {
|
|
2624
|
-
activator: r(({ props:
|
|
2625
|
-
|
|
2624
|
+
activator: r(({ props: V }) => [
|
|
2625
|
+
s(Be, { "hide-on-leave": "" }, {
|
|
2626
2626
|
default: r(() => [
|
|
2627
|
-
|
|
2627
|
+
De(s(q, H(V, {
|
|
2628
2628
|
class: "ms-auto",
|
|
2629
|
-
icon: `svg:${l(f.notification.slug) ?
|
|
2629
|
+
icon: `svg:${l(f.notification.slug) ? e(lt) : e(rt)}`,
|
|
2630
2630
|
"mdi-email-variant": "",
|
|
2631
2631
|
size: "small",
|
|
2632
2632
|
variant: "text",
|
|
2633
|
-
onClick:
|
|
2633
|
+
onClick: u[0] || (u[0] = (m) => d(f.notification))
|
|
2634
2634
|
}), null, 16, ["icon"]), [
|
|
2635
|
-
[
|
|
2635
|
+
[Ge, k || e(n).mobile.value]
|
|
2636
2636
|
])
|
|
2637
2637
|
]),
|
|
2638
2638
|
_: 2
|
|
@@ -2645,17 +2645,17 @@ const Ke = W("settings", () => {
|
|
|
2645
2645
|
}, 1024)
|
|
2646
2646
|
]),
|
|
2647
2647
|
default: r(() => [
|
|
2648
|
-
|
|
2648
|
+
s(ct, { class: "text-wrap text-h6 mb-1" }, {
|
|
2649
2649
|
default: r(() => [
|
|
2650
|
-
|
|
2650
|
+
g("div", Wn, C(f.notification.title), 1)
|
|
2651
2651
|
]),
|
|
2652
2652
|
_: 1
|
|
2653
2653
|
}),
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
"append-icon": `svg:${
|
|
2658
|
-
},
|
|
2654
|
+
g("div", Gn, C(e(a).format(f.notification.created_at, "fullDateWithWeekday")), 1),
|
|
2655
|
+
g("div", Zn, C(f.notification.metadata.text), 1),
|
|
2656
|
+
s(te, H({
|
|
2657
|
+
"append-icon": `svg:${e(Oe)}`
|
|
2658
|
+
}, e(i), {
|
|
2659
2659
|
border: "",
|
|
2660
2660
|
label: "",
|
|
2661
2661
|
size: "small",
|
|
@@ -2663,7 +2663,7 @@ const Ke = W("settings", () => {
|
|
|
2663
2663
|
variant: "text"
|
|
2664
2664
|
}), {
|
|
2665
2665
|
append: r(() => [
|
|
2666
|
-
|
|
2666
|
+
s(D, { size: "12" })
|
|
2667
2667
|
]),
|
|
2668
2668
|
_: 1
|
|
2669
2669
|
}, 16, ["append-icon", "text"])
|
|
@@ -2678,32 +2678,32 @@ const Ke = W("settings", () => {
|
|
|
2678
2678
|
}), Yn = {
|
|
2679
2679
|
key: 0,
|
|
2680
2680
|
class: "pt-16"
|
|
2681
|
-
}, Jn = /* @__PURE__ */
|
|
2681
|
+
}, Jn = /* @__PURE__ */ g("div", { class: "text-medium-emphasis" }, " All caught up ", -1), Xn = /* @__PURE__ */ $({
|
|
2682
2682
|
__name: "VoNotificationsList",
|
|
2683
2683
|
props: {
|
|
2684
2684
|
items: {}
|
|
2685
2685
|
},
|
|
2686
2686
|
setup(c) {
|
|
2687
|
-
return (
|
|
2688
|
-
const
|
|
2687
|
+
return (t, o) => {
|
|
2688
|
+
const a = We("v-empty-state"), n = Qn;
|
|
2689
2689
|
return p(), _(ae, {
|
|
2690
2690
|
class: "py-0",
|
|
2691
2691
|
height: "100%",
|
|
2692
2692
|
lines: "three"
|
|
2693
2693
|
}, {
|
|
2694
2694
|
default: r(() => [
|
|
2695
|
-
|
|
2695
|
+
t.items.length ? (p(!0), L(U, { key: 1 }, ne(t.items, (i, l) => (p(), L(U, {
|
|
2696
2696
|
key: i.slug
|
|
2697
2697
|
}, [
|
|
2698
|
-
l !== 0 ? (p(), _(Z, { key: 0 })) :
|
|
2699
|
-
|
|
2698
|
+
l !== 0 ? (p(), _(Z, { key: 0 })) : w("", !0),
|
|
2699
|
+
s(n, { notification: i }, null, 8, ["notification"])
|
|
2700
2700
|
], 64))), 128)) : (p(), L("div", Yn, [
|
|
2701
|
-
a
|
|
2701
|
+
s(a, {
|
|
2702
2702
|
icon: "$vuetify",
|
|
2703
2703
|
size: "256"
|
|
2704
2704
|
}, {
|
|
2705
2705
|
media: r(() => [
|
|
2706
|
-
|
|
2706
|
+
s(D, { color: "medium-emphasis" })
|
|
2707
2707
|
]),
|
|
2708
2708
|
title: r(() => [
|
|
2709
2709
|
Jn
|
|
@@ -2717,71 +2717,71 @@ const Ke = W("settings", () => {
|
|
|
2717
2717
|
};
|
|
2718
2718
|
}
|
|
2719
2719
|
}), bt = W("site", () => {
|
|
2720
|
-
const c =
|
|
2720
|
+
const c = O([]), t = O();
|
|
2721
2721
|
return {
|
|
2722
2722
|
id: c,
|
|
2723
|
-
url:
|
|
2723
|
+
url: t
|
|
2724
2724
|
};
|
|
2725
|
-
}),
|
|
2726
|
-
const c = ce(),
|
|
2725
|
+
}), je = W("banners", () => {
|
|
2726
|
+
const c = ce(), t = bt(), o = F(), a = O([]), n = O([]), i = O(), l = A(!1), d = S(() => {
|
|
2727
2727
|
if (i.value)
|
|
2728
2728
|
return i.value;
|
|
2729
2729
|
if (f.value)
|
|
2730
2730
|
return f.value;
|
|
2731
2731
|
if (o.notifications.banners)
|
|
2732
|
-
return
|
|
2732
|
+
return a.value.find(({
|
|
2733
2733
|
slug: v,
|
|
2734
2734
|
metadata: {
|
|
2735
|
-
site:
|
|
2735
|
+
site: b,
|
|
2736
2736
|
active: N
|
|
2737
2737
|
}
|
|
2738
|
-
}) => !N || o.notifications.last.banner.includes(v) ? !1 :
|
|
2739
|
-
}), f =
|
|
2738
|
+
}) => !N || o.notifications.last.banner.includes(v) ? !1 : b.includes("dev") && !1 || b.includes("*") ? !0 : b.some((j) => t.id.includes(j)));
|
|
2739
|
+
}), f = S(() => a.value.find(({
|
|
2740
2740
|
metadata: {
|
|
2741
2741
|
site: v,
|
|
2742
|
-
active:
|
|
2742
|
+
active: b
|
|
2743
2743
|
}
|
|
2744
|
-
}) =>
|
|
2745
|
-
async function
|
|
2744
|
+
}) => b ? v.includes("server") : !1));
|
|
2745
|
+
async function u() {
|
|
2746
2746
|
try {
|
|
2747
2747
|
l.value = !0;
|
|
2748
2748
|
const v = await c.get("/one/banners");
|
|
2749
|
-
|
|
2749
|
+
a.value = v.banners;
|
|
2750
2750
|
} catch {
|
|
2751
2751
|
} finally {
|
|
2752
2752
|
l.value = !1;
|
|
2753
2753
|
}
|
|
2754
|
-
return
|
|
2754
|
+
return a.value;
|
|
2755
2755
|
}
|
|
2756
2756
|
async function h(v) {
|
|
2757
2757
|
try {
|
|
2758
2758
|
l.value = !0;
|
|
2759
|
-
const
|
|
2760
|
-
return i.value =
|
|
2759
|
+
const b = await c.get(`/one/admin/banners/${v}`);
|
|
2760
|
+
return i.value = b.banner, b.banner;
|
|
2761
2761
|
} catch {
|
|
2762
2762
|
} finally {
|
|
2763
2763
|
l.value = !1;
|
|
2764
2764
|
}
|
|
2765
2765
|
}
|
|
2766
|
-
async function
|
|
2766
|
+
async function k(v) {
|
|
2767
2767
|
try {
|
|
2768
2768
|
l.value = !0;
|
|
2769
|
-
const
|
|
2769
|
+
const b = await c.form(
|
|
2770
2770
|
"/one/admin/banners",
|
|
2771
2771
|
v
|
|
2772
2772
|
);
|
|
2773
|
-
return i.value =
|
|
2773
|
+
return i.value = b.banner, b.banner;
|
|
2774
2774
|
} catch {
|
|
2775
2775
|
} finally {
|
|
2776
2776
|
l.value = !1;
|
|
2777
2777
|
}
|
|
2778
2778
|
}
|
|
2779
|
-
async function
|
|
2779
|
+
async function y(v, b) {
|
|
2780
2780
|
try {
|
|
2781
2781
|
l.value = !0;
|
|
2782
2782
|
const N = await c.form(
|
|
2783
2783
|
`/one/admin/banners/${v}`,
|
|
2784
|
-
|
|
2784
|
+
b
|
|
2785
2785
|
);
|
|
2786
2786
|
return i.value = N.banner, N.banner;
|
|
2787
2787
|
} catch {
|
|
@@ -2789,7 +2789,7 @@ const Ke = W("settings", () => {
|
|
|
2789
2789
|
l.value = !1;
|
|
2790
2790
|
}
|
|
2791
2791
|
}
|
|
2792
|
-
async function
|
|
2792
|
+
async function V() {
|
|
2793
2793
|
}
|
|
2794
2794
|
async function m() {
|
|
2795
2795
|
try {
|
|
@@ -2800,21 +2800,21 @@ const Ke = W("settings", () => {
|
|
|
2800
2800
|
} finally {
|
|
2801
2801
|
l.value = !1;
|
|
2802
2802
|
}
|
|
2803
|
-
return
|
|
2803
|
+
return a.value;
|
|
2804
2804
|
}
|
|
2805
2805
|
return {
|
|
2806
|
-
all:
|
|
2806
|
+
all: a,
|
|
2807
2807
|
aall: n,
|
|
2808
2808
|
isLoading: l,
|
|
2809
2809
|
server: f,
|
|
2810
|
-
banner:
|
|
2810
|
+
banner: d,
|
|
2811
2811
|
record: i,
|
|
2812
2812
|
admin: m,
|
|
2813
|
-
destroy:
|
|
2814
|
-
index:
|
|
2813
|
+
destroy: V,
|
|
2814
|
+
index: u,
|
|
2815
2815
|
show: h,
|
|
2816
|
-
store:
|
|
2817
|
-
update:
|
|
2816
|
+
store: k,
|
|
2817
|
+
update: y
|
|
2818
2818
|
};
|
|
2819
2819
|
}), Kn = { class: "text-caption" }, es = { class: "text-caption" }, ts = /* @__PURE__ */ $({
|
|
2820
2820
|
__name: "VoNotificationsDialog",
|
|
@@ -2824,112 +2824,112 @@ const Ke = W("settings", () => {
|
|
|
2824
2824
|
},
|
|
2825
2825
|
emits: ["update:modelValue"],
|
|
2826
2826
|
setup(c) {
|
|
2827
|
-
const
|
|
2827
|
+
const t = le(), o = ve(), a = je(), n = Fe(), i = P(), l = F(), d = A(["read"]), f = re(c, "modelValue");
|
|
2828
2828
|
return B(o, async () => {
|
|
2829
2829
|
if (o.value.one !== "notifications") {
|
|
2830
2830
|
f.value && (f.value = !1);
|
|
2831
2831
|
return;
|
|
2832
2832
|
}
|
|
2833
2833
|
i.isOpen = !0, await pe(), f.value = !0;
|
|
2834
|
-
}, { immediate: !0 }), (
|
|
2835
|
-
const
|
|
2834
|
+
}, { immediate: !0 }), (u, h) => {
|
|
2835
|
+
const k = J, y = Xn, V = En, m = xe;
|
|
2836
2836
|
return p(), _(m, {
|
|
2837
2837
|
modelValue: f.value,
|
|
2838
2838
|
"onUpdate:modelValue": h[2] || (h[2] = (v) => f.value = v),
|
|
2839
|
-
"prepend-icon": `svg:${
|
|
2839
|
+
"prepend-icon": `svg:${e(to)}`,
|
|
2840
2840
|
title: "Notifications"
|
|
2841
2841
|
}, {
|
|
2842
2842
|
default: r(() => [
|
|
2843
|
-
|
|
2843
|
+
s(ke, null, {
|
|
2844
2844
|
default: r(() => [
|
|
2845
|
-
|
|
2846
|
-
location: t
|
|
2845
|
+
s(wo, {
|
|
2846
|
+
location: e(t).mobile.value ? "top" : "start",
|
|
2847
2847
|
permanent: "",
|
|
2848
|
-
width: t
|
|
2848
|
+
width: e(t).mobile.value ? 128 : 168
|
|
2849
2849
|
}, {
|
|
2850
2850
|
default: r(() => [
|
|
2851
|
-
|
|
2852
|
-
selected:
|
|
2853
|
-
"onUpdate:selected": h[0] || (h[0] = (v) => se(
|
|
2851
|
+
s(ae, {
|
|
2852
|
+
selected: e(d),
|
|
2853
|
+
"onUpdate:selected": h[0] || (h[0] = (v) => se(d) ? d.value = v : null),
|
|
2854
2854
|
class: "px-4 pt-4",
|
|
2855
2855
|
density: "compact",
|
|
2856
2856
|
mandatory: "",
|
|
2857
2857
|
nav: ""
|
|
2858
2858
|
}, {
|
|
2859
2859
|
default: r(() => [
|
|
2860
|
-
|
|
2861
|
-
"prepend-icon": `svg:${
|
|
2860
|
+
s(k, {
|
|
2861
|
+
"prepend-icon": `svg:${e(oo)}`,
|
|
2862
2862
|
title: "Unread",
|
|
2863
2863
|
value: "read"
|
|
2864
2864
|
}, R({ _: 2 }, [
|
|
2865
|
-
|
|
2865
|
+
e(n).unread.length > 0 ? {
|
|
2866
2866
|
name: "append",
|
|
2867
2867
|
fn: r(() => [
|
|
2868
|
-
|
|
2868
|
+
g("span", Kn, C(e(n).unread.length), 1)
|
|
2869
2869
|
]),
|
|
2870
2870
|
key: "0"
|
|
2871
2871
|
} : void 0
|
|
2872
2872
|
]), 1032, ["prepend-icon"]),
|
|
2873
|
-
|
|
2874
|
-
"prepend-icon": `svg:${
|
|
2873
|
+
s(k, {
|
|
2874
|
+
"prepend-icon": `svg:${e(no)}`,
|
|
2875
2875
|
title: "Read",
|
|
2876
2876
|
value: "unread"
|
|
2877
2877
|
}, R({ _: 2 }, [
|
|
2878
|
-
|
|
2878
|
+
e(n).read.length > 0 ? {
|
|
2879
2879
|
name: "append",
|
|
2880
2880
|
fn: r(() => [
|
|
2881
|
-
|
|
2881
|
+
g("span", es, C(e(n).read.length), 1)
|
|
2882
2882
|
]),
|
|
2883
2883
|
key: "0"
|
|
2884
2884
|
} : void 0
|
|
2885
2885
|
]), 1032, ["prepend-icon"]),
|
|
2886
|
-
|
|
2886
|
+
e(a).all.length > 0 && e(l).notifications.banners ? (p(), _(k, {
|
|
2887
2887
|
key: 0,
|
|
2888
|
-
"prepend-icon": `svg:${
|
|
2888
|
+
"prepend-icon": `svg:${e(so)}`,
|
|
2889
2889
|
title: "Banners",
|
|
2890
2890
|
value: "banners"
|
|
2891
2891
|
}, {
|
|
2892
2892
|
append: r(() => [
|
|
2893
|
-
|
|
2893
|
+
s(Je, {
|
|
2894
2894
|
dot: "",
|
|
2895
2895
|
"offset-y": "-3"
|
|
2896
2896
|
})
|
|
2897
2897
|
]),
|
|
2898
2898
|
_: 1
|
|
2899
|
-
}, 8, ["prepend-icon"])) :
|
|
2899
|
+
}, 8, ["prepend-icon"])) : w("", !0)
|
|
2900
2900
|
]),
|
|
2901
2901
|
_: 1
|
|
2902
2902
|
}, 8, ["selected"])
|
|
2903
2903
|
]),
|
|
2904
2904
|
_: 1
|
|
2905
2905
|
}, 8, ["location", "width"]),
|
|
2906
|
-
|
|
2906
|
+
s($e, { scrollable: "" }, {
|
|
2907
2907
|
default: r(() => [
|
|
2908
|
-
|
|
2909
|
-
modelValue:
|
|
2910
|
-
"onUpdate:modelValue": h[1] || (h[1] = (v) => se(
|
|
2908
|
+
s(mt, {
|
|
2909
|
+
modelValue: e(d),
|
|
2910
|
+
"onUpdate:modelValue": h[1] || (h[1] = (v) => se(d) ? d.value = v : null)
|
|
2911
2911
|
}, {
|
|
2912
2912
|
default: r(() => [
|
|
2913
|
-
|
|
2913
|
+
s(ge, { value: "read" }, {
|
|
2914
2914
|
default: r(() => [
|
|
2915
|
-
|
|
2916
|
-
items:
|
|
2915
|
+
s(y, {
|
|
2916
|
+
items: e(n).unread
|
|
2917
2917
|
}, null, 8, ["items"])
|
|
2918
2918
|
]),
|
|
2919
2919
|
_: 1
|
|
2920
2920
|
}),
|
|
2921
|
-
|
|
2921
|
+
s(ge, { value: "unread" }, {
|
|
2922
2922
|
default: r(() => [
|
|
2923
|
-
|
|
2924
|
-
items:
|
|
2923
|
+
s(y, {
|
|
2924
|
+
items: e(n).read
|
|
2925
2925
|
}, null, 8, ["items"])
|
|
2926
2926
|
]),
|
|
2927
2927
|
_: 1
|
|
2928
2928
|
}),
|
|
2929
|
-
|
|
2929
|
+
s(ge, { value: "banners" }, {
|
|
2930
2930
|
default: r(() => [
|
|
2931
|
-
|
|
2932
|
-
items:
|
|
2931
|
+
s(V, {
|
|
2932
|
+
items: e(a).all
|
|
2933
2933
|
}, null, 8, ["items"])
|
|
2934
2934
|
]),
|
|
2935
2935
|
_: 1
|
|
@@ -2951,14 +2951,14 @@ const Ke = W("settings", () => {
|
|
|
2951
2951
|
}), os = /* @__PURE__ */ $({
|
|
2952
2952
|
__name: "VoNotificationsBadge",
|
|
2953
2953
|
setup(c) {
|
|
2954
|
-
const
|
|
2955
|
-
return (
|
|
2954
|
+
const t = Fe(), o = F();
|
|
2955
|
+
return (a, n) => (p(), _(Je, {
|
|
2956
2956
|
color: "error",
|
|
2957
|
-
content: t
|
|
2958
|
-
"model-value":
|
|
2957
|
+
content: e(t).unread.length,
|
|
2958
|
+
"model-value": e(o).notifications.show && e(t).unread.length > 0
|
|
2959
2959
|
}, {
|
|
2960
2960
|
default: r(() => [
|
|
2961
|
-
z(
|
|
2961
|
+
z(a.$slots, "default")
|
|
2962
2962
|
]),
|
|
2963
2963
|
_: 3
|
|
2964
2964
|
}, 8, ["content", "model-value"]));
|
|
@@ -2966,74 +2966,74 @@ const Ke = W("settings", () => {
|
|
|
2966
2966
|
}), ns = /* @__PURE__ */ $({
|
|
2967
2967
|
__name: "VoNotificationsNavItem",
|
|
2968
2968
|
setup(c) {
|
|
2969
|
-
const
|
|
2970
|
-
return
|
|
2971
|
-
|
|
2969
|
+
const t = je(), o = F(), a = Fe(), n = A(!1);
|
|
2970
|
+
return qe(async () => {
|
|
2971
|
+
a.index(), t.index();
|
|
2972
2972
|
}), (i, l) => {
|
|
2973
|
-
const
|
|
2974
|
-
return
|
|
2973
|
+
const d = os, f = ts, u = J;
|
|
2974
|
+
return e(o).notifications.show ? (p(), _(u, {
|
|
2975
2975
|
key: 0,
|
|
2976
|
-
active:
|
|
2976
|
+
active: e(n),
|
|
2977
2977
|
link: "",
|
|
2978
|
-
"prepend-icon": `svg:${
|
|
2978
|
+
"prepend-icon": `svg:${e(ao)}`,
|
|
2979
2979
|
title: "Notifications"
|
|
2980
2980
|
}, R({
|
|
2981
2981
|
default: r(() => [
|
|
2982
|
-
|
|
2983
|
-
modelValue:
|
|
2982
|
+
s(f, {
|
|
2983
|
+
modelValue: e(n),
|
|
2984
2984
|
"onUpdate:modelValue": l[0] || (l[0] = (h) => se(n) ? n.value = h : null)
|
|
2985
2985
|
}, null, 8, ["modelValue"])
|
|
2986
2986
|
]),
|
|
2987
2987
|
_: 2
|
|
2988
2988
|
}, [
|
|
2989
|
-
|
|
2989
|
+
e(a).unread.length ? {
|
|
2990
2990
|
name: "prepend",
|
|
2991
2991
|
fn: r(() => [
|
|
2992
|
-
|
|
2992
|
+
s(d, null, {
|
|
2993
2993
|
default: r(() => [
|
|
2994
|
-
|
|
2994
|
+
s(D)
|
|
2995
2995
|
]),
|
|
2996
2996
|
_: 1
|
|
2997
2997
|
})
|
|
2998
2998
|
]),
|
|
2999
2999
|
key: "0"
|
|
3000
3000
|
} : void 0
|
|
3001
|
-
]), 1032, ["active", "prepend-icon"])) :
|
|
3001
|
+
]), 1032, ["active", "prepend-icon"])) : w("", !0);
|
|
3002
3002
|
};
|
|
3003
3003
|
}
|
|
3004
3004
|
}), ss = /* @__PURE__ */ $({
|
|
3005
3005
|
__name: "VoDashboardNavItem",
|
|
3006
3006
|
setup(c) {
|
|
3007
|
-
const
|
|
3008
|
-
return (o,
|
|
3007
|
+
const t = P();
|
|
3008
|
+
return (o, a) => {
|
|
3009
3009
|
const n = J;
|
|
3010
3010
|
return p(), _(n, {
|
|
3011
|
-
"prepend-icon": `svg:${
|
|
3011
|
+
"prepend-icon": `svg:${e(io)}`,
|
|
3012
3012
|
title: "Dashboard",
|
|
3013
3013
|
to: "/user/dashboard",
|
|
3014
|
-
onClick:
|
|
3014
|
+
onClick: a[0] || (a[0] = (i) => e(t).isOpen = !1)
|
|
3015
3015
|
}, null, 8, ["prepend-icon"]);
|
|
3016
3016
|
};
|
|
3017
3017
|
}
|
|
3018
3018
|
}), as = /* @__PURE__ */ $({
|
|
3019
3019
|
__name: "VoUserList",
|
|
3020
3020
|
setup(c) {
|
|
3021
|
-
const
|
|
3022
|
-
return (o,
|
|
3023
|
-
const n = ss, i = ns, l = Fn,
|
|
3021
|
+
const t = M();
|
|
3022
|
+
return (o, a) => {
|
|
3023
|
+
const n = ss, i = ns, l = Fn, d = In, f = gn, u = Zo, h = Ho;
|
|
3024
3024
|
return p(), _(ae, {
|
|
3025
3025
|
density: "compact",
|
|
3026
3026
|
nav: "",
|
|
3027
3027
|
slim: ""
|
|
3028
3028
|
}, {
|
|
3029
3029
|
default: r(() => [
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
t
|
|
3035
|
-
|
|
3036
|
-
t
|
|
3030
|
+
s(n),
|
|
3031
|
+
s(i),
|
|
3032
|
+
s(l),
|
|
3033
|
+
s(d),
|
|
3034
|
+
e(t).user ? (p(), _(f, { key: 0 })) : w("", !0),
|
|
3035
|
+
s(u),
|
|
3036
|
+
e(t).user ? (p(), _(h, { key: 1 })) : w("", !0)
|
|
3037
3037
|
]),
|
|
3038
3038
|
_: 1
|
|
3039
3039
|
});
|
|
@@ -3042,31 +3042,31 @@ const Ke = W("settings", () => {
|
|
|
3042
3042
|
}), is = { key: 0 }, rs = { class: "d-flex align-center justify-center pa-1 ga-2" }, ls = /* @__PURE__ */ $({
|
|
3043
3043
|
__name: "VoUserQuickActions",
|
|
3044
3044
|
setup(c) {
|
|
3045
|
-
const
|
|
3045
|
+
const t = F(), o = [
|
|
3046
3046
|
["M18.9112 5.03206L3.68692 8.88953C3.68692 8.88953 2.00252 6.21666 2 6.21428C2.02517 6.20794 18.6159 2.00476 18.6394 2L18.8944 4.8489L18.9095 5.01937L18.9112 5.03285V5.03206Z", 0.6],
|
|
3047
3047
|
["M19.4556 10.9994C19.4556 10.9994 7.06082 14.1417 7.05915 14.1386L5.3739 11.4641C5.41836 11.453 18.4582 8.14817 18.4993 8.13945L19.1838 7.9658L19.4556 10.9994Z", 1],
|
|
3048
3048
|
"M20 17.0652C19.9916 17.0675 14.6826 18.4123 14.6742 18.4147C14.6994 17.3633 14.3353 16.3579 13.712 15.5563L19.7274 14.0331L20 17.066V17.0652Z",
|
|
3049
3049
|
["M12.353 16.0368C9.07567 12.843 3.90082 17.0493 6.66818 20.5975C9.94136 24.3844 15.773 19.6984 12.353 16.0368ZM11.1267 19.4129C10.2224 20.7664 7.79139 20.1099 7.82746 18.4686C8.04976 15.4897 12.7112 16.8495 11.1267 19.4129Z", 0.6]
|
|
3050
|
-
],
|
|
3050
|
+
], a = [
|
|
3051
3051
|
["M21.57 19.41L18.36 16.41C19.7242 14.5916 20.3549 12.3267 20.127 10.065C19.8991 7.80316 18.8293 5.70969 17.1298 4.19992C15.4303 2.69016 13.2254 1.87444 10.9525 1.91463C8.67959 1.95481 6.50486 2.84796 4.8598 4.41685C3.21475 5.98575 2.21959 8.11573 2.07179 10.3842C1.924 12.6526 2.63436 14.8937 4.06193 16.6628C5.4895 18.4319 7.52995 19.5997 9.77841 19.9344C12.0269 20.2692 14.319 19.7465 16.2 18.47L19.5 21.6C19.7743 21.8507 20.1287 21.996 20.5 22.01C20.7053 22.0117 20.9087 21.9698 21.0966 21.8871C21.2845 21.8043 21.4527 21.6826 21.59 21.53C21.729 21.3901 21.8389 21.224 21.9132 21.0413C21.9875 20.8586 22.0248 20.663 22.0229 20.4658C22.0211 20.2686 21.9801 20.0737 21.9023 19.8925C21.8246 19.7113 21.7116 19.5473 21.57 19.41ZM11.1 17.33C9.83508 17.328 8.59909 16.9512 7.54815 16.2472C6.49721 15.5432 5.67846 14.5436 5.1953 13.3746C4.71214 12.2055 4.58624 10.9195 4.8335 9.67898C5.08077 8.43843 5.6901 7.29898 6.58455 6.40453C7.47901 5.51007 8.61846 4.90074 9.85901 4.65347C11.0996 4.40621 12.3856 4.53211 13.5546 5.01527C14.7236 5.49843 15.7233 6.31718 16.4273 7.36812C17.1313 8.41906 17.5081 9.65506 17.51 10.92C17.51 11.7618 17.3442 12.5953 17.0221 13.373C16.7 14.1507 16.2278 14.8573 15.6326 15.4526C15.0374 16.0478 14.3307 16.5199 13.553 16.8421C12.7753 17.1642 11.9418 17.33 11.1 17.33Z", 0.8],
|
|
3052
3052
|
"M8.63152 12.7367L8.50057 12.5L6 8H11.263L8.63152 12.7367Z",
|
|
3053
3053
|
["M9.11205 13.6004L11 17L16 8H12.223L9.11205 13.6004Z", 0.6]
|
|
3054
3054
|
];
|
|
3055
3055
|
return (n, i) => (p(), _(me, null, {
|
|
3056
3056
|
default: r(() => [
|
|
3057
|
-
t
|
|
3058
|
-
|
|
3059
|
-
|
|
3057
|
+
e(t).quickbar ? (p(), L("div", is, [
|
|
3058
|
+
g("div", rs, [
|
|
3059
|
+
s(q, {
|
|
3060
3060
|
class: "text-caption",
|
|
3061
|
-
color: t
|
|
3061
|
+
color: e(t).colors.one,
|
|
3062
3062
|
density: "comfortable",
|
|
3063
3063
|
href: "https://play.vuetifyjs.com",
|
|
3064
3064
|
icon: "$vuetify-play",
|
|
3065
3065
|
target: "_blank"
|
|
3066
3066
|
}, {
|
|
3067
3067
|
default: r(() => [
|
|
3068
|
-
|
|
3069
|
-
|
|
3068
|
+
s(D),
|
|
3069
|
+
s(ee, {
|
|
3070
3070
|
activator: "parent",
|
|
3071
3071
|
location: "top",
|
|
3072
3072
|
text: "Vuetify Play"
|
|
@@ -3074,17 +3074,17 @@ const Ke = W("settings", () => {
|
|
|
3074
3074
|
]),
|
|
3075
3075
|
_: 1
|
|
3076
3076
|
}, 8, ["color"]),
|
|
3077
|
-
|
|
3077
|
+
s(q, {
|
|
3078
3078
|
class: "text-caption",
|
|
3079
|
-
color: t
|
|
3079
|
+
color: e(t).colors.one,
|
|
3080
3080
|
density: "comfortable",
|
|
3081
3081
|
href: "https://bin.vuetifyjs.com",
|
|
3082
3082
|
icon: o,
|
|
3083
3083
|
target: "_blank"
|
|
3084
3084
|
}, {
|
|
3085
3085
|
default: r(() => [
|
|
3086
|
-
|
|
3087
|
-
|
|
3086
|
+
s(D),
|
|
3087
|
+
s(ee, {
|
|
3088
3088
|
activator: "parent",
|
|
3089
3089
|
location: "top",
|
|
3090
3090
|
text: "Vuetify Bin"
|
|
@@ -3092,17 +3092,17 @@ const Ke = W("settings", () => {
|
|
|
3092
3092
|
]),
|
|
3093
3093
|
_: 1
|
|
3094
3094
|
}, 8, ["color"]),
|
|
3095
|
-
|
|
3095
|
+
s(q, {
|
|
3096
3096
|
class: "text-caption",
|
|
3097
|
-
color: t
|
|
3097
|
+
color: e(t).colors.one,
|
|
3098
3098
|
density: "comfortable",
|
|
3099
3099
|
href: "https://issues.vuetifyjs.com",
|
|
3100
|
-
icon:
|
|
3100
|
+
icon: a,
|
|
3101
3101
|
target: "_blank"
|
|
3102
3102
|
}, {
|
|
3103
3103
|
default: r(() => [
|
|
3104
|
-
|
|
3105
|
-
|
|
3104
|
+
s(D),
|
|
3105
|
+
s(ee, {
|
|
3106
3106
|
activator: "parent",
|
|
3107
3107
|
location: "top",
|
|
3108
3108
|
text: "Vuetify Issues"
|
|
@@ -3111,7 +3111,7 @@ const Ke = W("settings", () => {
|
|
|
3111
3111
|
_: 1
|
|
3112
3112
|
}, 8, ["color"])
|
|
3113
3113
|
])
|
|
3114
|
-
])) :
|
|
3114
|
+
])) : w("", !0)
|
|
3115
3115
|
]),
|
|
3116
3116
|
_: 1
|
|
3117
3117
|
}));
|
|
@@ -3119,8 +3119,8 @@ const Ke = W("settings", () => {
|
|
|
3119
3119
|
}), cs = { class: "mb-2" }, us = { key: 0 }, ds = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, ps = { class: "text-h6" }, ms = /* @__PURE__ */ $({
|
|
3120
3120
|
__name: "VoUserAvatar",
|
|
3121
3121
|
setup(c) {
|
|
3122
|
-
const
|
|
3123
|
-
const
|
|
3122
|
+
const t = M(), o = F(), a = A(!1), n = S(() => {
|
|
3123
|
+
const d = [
|
|
3124
3124
|
"https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
|
|
3125
3125
|
"https://cdn.vuetifyjs.com/docs/images/avatars/grass.png",
|
|
3126
3126
|
"https://cdn.vuetifyjs.com/docs/images/avatars/wood.png",
|
|
@@ -3136,34 +3136,34 @@ const Ke = W("settings", () => {
|
|
|
3136
3136
|
"https://cdn.vuetifyjs.com/docs/images/avatars/meteor.png",
|
|
3137
3137
|
"https://cdn.vuetifyjs.com/docs/images/avatars/tada.png"
|
|
3138
3138
|
];
|
|
3139
|
-
return
|
|
3139
|
+
return t.user && d.unshift(t.user.picture), d;
|
|
3140
3140
|
});
|
|
3141
|
-
function i(
|
|
3142
|
-
o.avatar =
|
|
3141
|
+
function i(d) {
|
|
3142
|
+
o.avatar = d;
|
|
3143
3143
|
}
|
|
3144
3144
|
function l() {
|
|
3145
|
-
|
|
3145
|
+
t.isSubscriber && (a.value = !a.value);
|
|
3146
3146
|
}
|
|
3147
|
-
return (
|
|
3148
|
-
var
|
|
3147
|
+
return (d, f) => {
|
|
3148
|
+
var u;
|
|
3149
3149
|
return p(), L("div", null, [
|
|
3150
|
-
|
|
3150
|
+
De((p(), _(Q, {
|
|
3151
3151
|
class: Ct([
|
|
3152
3152
|
"border-md border-opacity-100 border-surface-variant",
|
|
3153
3153
|
{
|
|
3154
|
-
"cursor-pointer": t
|
|
3154
|
+
"cursor-pointer": e(t).isSubscriber
|
|
3155
3155
|
}
|
|
3156
3156
|
]),
|
|
3157
3157
|
color: "surface",
|
|
3158
3158
|
size: "72",
|
|
3159
3159
|
text: "Foobar",
|
|
3160
|
-
onClick:
|
|
3160
|
+
onClick: Ee(l, ["prevent", "stop"])
|
|
3161
3161
|
}, {
|
|
3162
3162
|
default: r(() => [
|
|
3163
|
-
t
|
|
3163
|
+
e(t).user && e(o).avatar ? (p(), _(Y, {
|
|
3164
3164
|
key: 0,
|
|
3165
3165
|
alt: "User avatar",
|
|
3166
|
-
src:
|
|
3166
|
+
src: e(o).avatar
|
|
3167
3167
|
}, null, 8, ["src"])) : (p(), _(D, {
|
|
3168
3168
|
key: 1,
|
|
3169
3169
|
class: "mt-1",
|
|
@@ -3173,28 +3173,28 @@ const Ke = W("settings", () => {
|
|
|
3173
3173
|
]),
|
|
3174
3174
|
_: 1
|
|
3175
3175
|
}, 8, ["class"])), [
|
|
3176
|
-
[So, t
|
|
3176
|
+
[So, e(t).isSubscriber]
|
|
3177
3177
|
]),
|
|
3178
|
-
|
|
3179
|
-
|
|
3178
|
+
g("div", cs, [
|
|
3179
|
+
s(me, null, {
|
|
3180
3180
|
default: r(() => [
|
|
3181
|
-
|
|
3182
|
-
|
|
3181
|
+
e(a) ? (p(), L("div", us, [
|
|
3182
|
+
s(E, {
|
|
3183
3183
|
class: "pt-6 pb-1",
|
|
3184
3184
|
flat: "",
|
|
3185
3185
|
rounded: "0"
|
|
3186
3186
|
}, {
|
|
3187
3187
|
default: r(() => [
|
|
3188
|
-
|
|
3189
|
-
(p(!0), L(U, null, ne(
|
|
3190
|
-
key:
|
|
3191
|
-
active:
|
|
3188
|
+
g("div", ds, [
|
|
3189
|
+
(p(!0), L(U, null, ne(e(n), (h, k) => (p(), _(q, {
|
|
3190
|
+
key: k,
|
|
3191
|
+
active: e(o).avatar === h,
|
|
3192
3192
|
icon: "",
|
|
3193
3193
|
variant: "flat",
|
|
3194
|
-
onClick: (
|
|
3194
|
+
onClick: (y) => i(h)
|
|
3195
3195
|
}, {
|
|
3196
3196
|
default: r(() => [
|
|
3197
|
-
|
|
3197
|
+
s(Q, {
|
|
3198
3198
|
eager: "",
|
|
3199
3199
|
image: h
|
|
3200
3200
|
}, null, 8, ["image"])
|
|
@@ -3205,23 +3205,23 @@ const Ke = W("settings", () => {
|
|
|
3205
3205
|
]),
|
|
3206
3206
|
_: 1
|
|
3207
3207
|
})
|
|
3208
|
-
])) :
|
|
3208
|
+
])) : w("", !0)
|
|
3209
3209
|
]),
|
|
3210
3210
|
_: 1
|
|
3211
3211
|
})
|
|
3212
3212
|
]),
|
|
3213
|
-
|
|
3213
|
+
g("div", ps, C(((u = e(t).user) == null ? void 0 : u.name) ?? "Guest"), 1)
|
|
3214
3214
|
]);
|
|
3215
3215
|
};
|
|
3216
3216
|
}
|
|
3217
3217
|
}), fs = /* @__PURE__ */ $({
|
|
3218
3218
|
__name: "VoUserBadges",
|
|
3219
3219
|
setup(c) {
|
|
3220
|
-
const
|
|
3220
|
+
const t = M(), o = P(), a = S(() => {
|
|
3221
3221
|
var n;
|
|
3222
|
-
return o.github || o.discord || o.isSubscriber || ((n =
|
|
3222
|
+
return o.github || o.discord || o.isSubscriber || ((n = t.user) == null ? void 0 : n.isAdmin);
|
|
3223
3223
|
});
|
|
3224
|
-
return (n, i) =>
|
|
3224
|
+
return (n, i) => e(a) ? (p(), _(ye, {
|
|
3225
3225
|
key: 0,
|
|
3226
3226
|
class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
|
|
3227
3227
|
color: "rgba(0,0,0,.54)",
|
|
@@ -3231,62 +3231,62 @@ const Ke = W("settings", () => {
|
|
|
3231
3231
|
default: r(() => {
|
|
3232
3232
|
var l;
|
|
3233
3233
|
return [
|
|
3234
|
-
(l = t
|
|
3234
|
+
(l = e(t).user) != null && l.isAdmin ? (p(), _(ee, {
|
|
3235
3235
|
key: 0,
|
|
3236
3236
|
location: "bottom",
|
|
3237
3237
|
text: "Vuetify Administrator"
|
|
3238
3238
|
}, {
|
|
3239
|
-
activator: r(({ props:
|
|
3240
|
-
|
|
3239
|
+
activator: r(({ props: d }) => [
|
|
3240
|
+
s(D, H({
|
|
3241
3241
|
color: "blue",
|
|
3242
3242
|
icon: "$vuetify"
|
|
3243
|
-
},
|
|
3243
|
+
}, d, { size: "16" }), null, 16)
|
|
3244
3244
|
]),
|
|
3245
3245
|
_: 1
|
|
3246
|
-
})) :
|
|
3247
|
-
|
|
3246
|
+
})) : w("", !0),
|
|
3247
|
+
e(o).isSubscriber ? (p(), _(ee, {
|
|
3248
3248
|
key: 1,
|
|
3249
3249
|
location: "bottom",
|
|
3250
3250
|
text: "Vuetify One Subscriber"
|
|
3251
3251
|
}, {
|
|
3252
|
-
activator: r(({ props:
|
|
3253
|
-
|
|
3252
|
+
activator: r(({ props: d }) => [
|
|
3253
|
+
s(D, H({
|
|
3254
3254
|
color: "amber-darken-2",
|
|
3255
|
-
icon: `svg:${
|
|
3256
|
-
},
|
|
3255
|
+
icon: `svg:${e(ro)}`
|
|
3256
|
+
}, d, { size: "16" }), null, 16, ["icon"])
|
|
3257
3257
|
]),
|
|
3258
3258
|
_: 1
|
|
3259
|
-
})) :
|
|
3260
|
-
|
|
3259
|
+
})) : w("", !0),
|
|
3260
|
+
e(o).github ? (p(), _(ee, {
|
|
3261
3261
|
key: 2,
|
|
3262
3262
|
location: "bottom",
|
|
3263
3263
|
text: "GitHub Sponsor"
|
|
3264
3264
|
}, {
|
|
3265
|
-
activator: r(({ props:
|
|
3266
|
-
|
|
3265
|
+
activator: r(({ props: d }) => [
|
|
3266
|
+
s(D, H({
|
|
3267
3267
|
color: "white",
|
|
3268
|
-
icon: `svg:${
|
|
3269
|
-
},
|
|
3268
|
+
icon: `svg:${e(Ye)}`
|
|
3269
|
+
}, d, { size: "16" }), null, 16, ["icon"])
|
|
3270
3270
|
]),
|
|
3271
3271
|
_: 1
|
|
3272
|
-
})) :
|
|
3273
|
-
|
|
3272
|
+
})) : w("", !0),
|
|
3273
|
+
e(o).discord ? (p(), _(ee, {
|
|
3274
3274
|
key: 3,
|
|
3275
3275
|
location: "bottom",
|
|
3276
3276
|
text: "Discord Subscriber"
|
|
3277
3277
|
}, {
|
|
3278
|
-
activator: r(({ props:
|
|
3279
|
-
|
|
3278
|
+
activator: r(({ props: d }) => [
|
|
3279
|
+
s(D, H({
|
|
3280
3280
|
color: "white",
|
|
3281
|
-
icon: `svg:${
|
|
3282
|
-
},
|
|
3281
|
+
icon: `svg:${e(Qe)}`
|
|
3282
|
+
}, d, { size: "16" }), null, 16, ["icon"])
|
|
3283
3283
|
]),
|
|
3284
3284
|
_: 1
|
|
3285
|
-
})) :
|
|
3285
|
+
})) : w("", !0)
|
|
3286
3286
|
];
|
|
3287
3287
|
}),
|
|
3288
3288
|
_: 1
|
|
3289
|
-
})) :
|
|
3289
|
+
})) : w("", !0);
|
|
3290
3290
|
}
|
|
3291
3291
|
}), vs = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, hs = {
|
|
3292
3292
|
key: "reset",
|
|
@@ -3294,15 +3294,15 @@ const Ke = W("settings", () => {
|
|
|
3294
3294
|
}, _s = /* @__PURE__ */ $({
|
|
3295
3295
|
__name: "VoUserColors",
|
|
3296
3296
|
setup(c) {
|
|
3297
|
-
const
|
|
3297
|
+
const t = M(), o = F(), a = A(!1);
|
|
3298
3298
|
function n() {
|
|
3299
3299
|
o.colors.one = "surface-light";
|
|
3300
3300
|
}
|
|
3301
3301
|
return (i, l) => {
|
|
3302
|
-
const
|
|
3302
|
+
const d = fs, f = fe;
|
|
3303
3303
|
return p(), L(U, null, [
|
|
3304
|
-
|
|
3305
|
-
color: t
|
|
3304
|
+
s(Y, {
|
|
3305
|
+
color: e(t).user ? e(o).colors.one : "surface-light",
|
|
3306
3306
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
3307
3307
|
cover: "",
|
|
3308
3308
|
flat: "",
|
|
@@ -3310,46 +3310,46 @@ const Ke = W("settings", () => {
|
|
|
3310
3310
|
rounded: "0"
|
|
3311
3311
|
}, {
|
|
3312
3312
|
default: r(() => [
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
t
|
|
3313
|
+
g("div", vs, [
|
|
3314
|
+
s(d),
|
|
3315
|
+
e(t).isSubscriber ? (p(), _(f, {
|
|
3316
3316
|
key: 0,
|
|
3317
|
-
active:
|
|
3317
|
+
active: e(a),
|
|
3318
3318
|
class: "align-self-end",
|
|
3319
3319
|
color: "inherit",
|
|
3320
3320
|
density: "comfortable",
|
|
3321
|
-
icon:
|
|
3321
|
+
icon: e(a) ? `svg:${e(Ae)}` : "$edit",
|
|
3322
3322
|
title: "Edit One Header Color",
|
|
3323
|
-
variant:
|
|
3324
|
-
onClick: l[0] || (l[0] = (
|
|
3323
|
+
variant: e(a) ? "text" : "plain",
|
|
3324
|
+
onClick: l[0] || (l[0] = (u) => a.value = !e(a))
|
|
3325
3325
|
}, {
|
|
3326
3326
|
default: r(() => [
|
|
3327
|
-
|
|
3327
|
+
s(Be, { "leave-absolute": "" }, {
|
|
3328
3328
|
default: r(() => [
|
|
3329
3329
|
(p(), _(D, {
|
|
3330
|
-
key: String(
|
|
3330
|
+
key: String(e(a))
|
|
3331
3331
|
}))
|
|
3332
3332
|
]),
|
|
3333
3333
|
_: 1
|
|
3334
3334
|
})
|
|
3335
3335
|
]),
|
|
3336
3336
|
_: 1
|
|
3337
|
-
}, 8, ["active", "icon", "variant"])) :
|
|
3338
|
-
|
|
3337
|
+
}, 8, ["active", "icon", "variant"])) : w("", !0),
|
|
3338
|
+
s(go, null, {
|
|
3339
3339
|
default: r(() => [
|
|
3340
|
-
|
|
3341
|
-
|
|
3340
|
+
De(g("div", hs, [
|
|
3341
|
+
s(f, {
|
|
3342
3342
|
class: "ms-2 me-1",
|
|
3343
3343
|
color: "inherit",
|
|
3344
3344
|
density: "comfortable",
|
|
3345
|
-
disabled:
|
|
3346
|
-
icon: `svg:${
|
|
3345
|
+
disabled: e(o).colors.one === "surface-light",
|
|
3346
|
+
icon: `svg:${e(lo)}`,
|
|
3347
3347
|
title: "Revert to Default",
|
|
3348
3348
|
variant: "text",
|
|
3349
3349
|
onClick: n
|
|
3350
3350
|
}, null, 8, ["disabled", "icon"])
|
|
3351
3351
|
], 512), [
|
|
3352
|
-
[
|
|
3352
|
+
[Ge, e(a)]
|
|
3353
3353
|
])
|
|
3354
3354
|
]),
|
|
3355
3355
|
_: 1
|
|
@@ -3358,22 +3358,22 @@ const Ke = W("settings", () => {
|
|
|
3358
3358
|
]),
|
|
3359
3359
|
_: 1
|
|
3360
3360
|
}, 8, ["color"]),
|
|
3361
|
-
|
|
3361
|
+
s(me, null, {
|
|
3362
3362
|
default: r(() => [
|
|
3363
|
-
|
|
3363
|
+
e(a) ? (p(), _(Co, {
|
|
3364
3364
|
key: 0,
|
|
3365
3365
|
elevation: "0",
|
|
3366
3366
|
height: "250",
|
|
3367
3367
|
"hide-canvas": "",
|
|
3368
3368
|
"hide-inputs": "",
|
|
3369
3369
|
"hide-sliders": "",
|
|
3370
|
-
"model-value":
|
|
3370
|
+
"model-value": e(o).colors.one !== "surface-light" ? e(o).colors.one : void 0,
|
|
3371
3371
|
rounded: "0",
|
|
3372
3372
|
"show-swatches": "",
|
|
3373
3373
|
"swatches-max-height": "200",
|
|
3374
3374
|
width: "278",
|
|
3375
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
3376
|
-
}, null, 8, ["model-value"])) :
|
|
3375
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => e(o).colors.one = u)
|
|
3376
|
+
}, null, 8, ["model-value"])) : w("", !0)
|
|
3377
3377
|
]),
|
|
3378
3378
|
_: 1
|
|
3379
3379
|
})
|
|
@@ -3383,17 +3383,17 @@ const Ke = W("settings", () => {
|
|
|
3383
3383
|
}), gs = { class: "text-center mt-n9 mb-4" }, ys = /* @__PURE__ */ $({
|
|
3384
3384
|
__name: "VoUserMenu",
|
|
3385
3385
|
setup(c) {
|
|
3386
|
-
const
|
|
3387
|
-
return B(() =>
|
|
3386
|
+
const t = je(), o = P(), a = O();
|
|
3387
|
+
return B(() => t.banner, async () => {
|
|
3388
3388
|
var n, i;
|
|
3389
|
-
await new Promise((l) => setTimeout(l, 300)), o.isOpen && ((i = (n =
|
|
3389
|
+
await new Promise((l) => setTimeout(l, 300)), o.isOpen && ((i = (n = a.value) == null ? void 0 : n.updateLocation) == null || i.call(n));
|
|
3390
3390
|
}, { flush: "pre" }), (n, i) => {
|
|
3391
|
-
const l = _s,
|
|
3392
|
-
return p(), _(
|
|
3391
|
+
const l = _s, d = ms, f = ls, u = as, h = gt;
|
|
3392
|
+
return p(), _(e(Lo), {
|
|
3393
3393
|
ref_key: "menu",
|
|
3394
|
-
ref:
|
|
3395
|
-
modelValue:
|
|
3396
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
3394
|
+
ref: a,
|
|
3395
|
+
modelValue: e(o).isOpen,
|
|
3396
|
+
"onUpdate:modelValue": i[0] || (i[0] = (k) => e(o).isOpen = k),
|
|
3397
3397
|
activator: "parent",
|
|
3398
3398
|
"close-on-click": !1,
|
|
3399
3399
|
"close-on-content-click": !1,
|
|
@@ -3401,21 +3401,21 @@ const Ke = W("settings", () => {
|
|
|
3401
3401
|
location: "bottom end"
|
|
3402
3402
|
}, {
|
|
3403
3403
|
default: r(() => [
|
|
3404
|
-
|
|
3404
|
+
s(E, {
|
|
3405
3405
|
border: "",
|
|
3406
3406
|
rounded: "lg",
|
|
3407
3407
|
width: "280"
|
|
3408
3408
|
}, {
|
|
3409
3409
|
default: r(() => [
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3410
|
+
s(l),
|
|
3411
|
+
g("div", gs, [
|
|
3412
|
+
s(d),
|
|
3413
|
+
s(f)
|
|
3414
3414
|
]),
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3415
|
+
s(Z),
|
|
3416
|
+
s(u),
|
|
3417
|
+
s(Z),
|
|
3418
|
+
s(h)
|
|
3419
3419
|
]),
|
|
3420
3420
|
_: 1
|
|
3421
3421
|
})
|
|
@@ -3430,40 +3430,40 @@ const Ke = W("settings", () => {
|
|
|
3430
3430
|
external: Boolean
|
|
3431
3431
|
},
|
|
3432
3432
|
setup(c) {
|
|
3433
|
-
const
|
|
3434
|
-
return (l,
|
|
3435
|
-
const f = ys,
|
|
3433
|
+
const t = M(), o = P(), a = F(), { lgAndUp: n } = le(), i = S(() => o.isOpen || !t.user ? a.colors.one === "surface-light" ? "primary" : a.colors.one : "surface-light");
|
|
3434
|
+
return (l, d) => {
|
|
3435
|
+
const f = ys, u = fe, h = Mo, k = _t;
|
|
3436
3436
|
return p(), L(U, null, [
|
|
3437
|
-
|
|
3438
|
-
"offset-y": t
|
|
3437
|
+
s(h, {
|
|
3438
|
+
"offset-y": e(t).user ? 5 : 0
|
|
3439
3439
|
}, {
|
|
3440
3440
|
default: r(() => [
|
|
3441
|
-
|
|
3442
|
-
[`${
|
|
3441
|
+
s(u, H({
|
|
3442
|
+
[`${e(n) ? "append-" : ""}icon`]: e(t).user ? void 0 : `svg:${e(co)}`
|
|
3443
3443
|
}, {
|
|
3444
3444
|
active: "",
|
|
3445
3445
|
class: "vo-auth-btn",
|
|
3446
|
-
color:
|
|
3447
|
-
icon: t
|
|
3448
|
-
loading: t
|
|
3446
|
+
color: e(i),
|
|
3447
|
+
icon: e(t).user || e(t).isLoading,
|
|
3448
|
+
loading: e(t).isLoading,
|
|
3449
3449
|
size: "default",
|
|
3450
3450
|
style: { transition: ".2s ease" },
|
|
3451
|
-
variant: t
|
|
3451
|
+
variant: e(t).user ? "outlined" : "flat"
|
|
3452
3452
|
}), {
|
|
3453
3453
|
default: r(() => [
|
|
3454
|
-
t
|
|
3455
|
-
t
|
|
3454
|
+
e(t).user ? w("", !0) : (p(), L("span", bs, "Login")),
|
|
3455
|
+
e(t).user ? (p(), _(Q, {
|
|
3456
3456
|
key: 1,
|
|
3457
|
-
image:
|
|
3458
|
-
}, null, 8, ["image"])) :
|
|
3459
|
-
|
|
3457
|
+
image: e(a).avatar || e(t).user.picture || ""
|
|
3458
|
+
}, null, 8, ["image"])) : w("", !0),
|
|
3459
|
+
s(f)
|
|
3460
3460
|
]),
|
|
3461
3461
|
_: 1
|
|
3462
3462
|
}, 16, ["color", "icon", "loading", "variant"])
|
|
3463
3463
|
]),
|
|
3464
3464
|
_: 1
|
|
3465
3465
|
}, 8, ["offset-y"]),
|
|
3466
|
-
|
|
3466
|
+
s(k)
|
|
3467
3467
|
], 64);
|
|
3468
3468
|
};
|
|
3469
3469
|
}
|
|
@@ -3476,36 +3476,36 @@ const Ke = W("settings", () => {
|
|
|
3476
3476
|
image: {}
|
|
3477
3477
|
},
|
|
3478
3478
|
setup(c) {
|
|
3479
|
-
return (
|
|
3479
|
+
return (t, o) => (p(), _(Io, {
|
|
3480
3480
|
class: "vo-footer",
|
|
3481
3481
|
height: "40"
|
|
3482
3482
|
}, {
|
|
3483
3483
|
default: r(() => [
|
|
3484
|
-
|
|
3485
|
-
|
|
3484
|
+
t.image || t.$slots.image ? (p(), L("div", ks, [
|
|
3485
|
+
t.$slots.image ? z(t.$slots, "image", { key: 0 }, void 0, !0) : (p(), _(Y, {
|
|
3486
3486
|
key: 1,
|
|
3487
3487
|
cover: "",
|
|
3488
3488
|
position: "left",
|
|
3489
|
-
src:
|
|
3489
|
+
src: t.image
|
|
3490
3490
|
}, null, 8, ["src"]))
|
|
3491
|
-
])) :
|
|
3492
|
-
z(
|
|
3491
|
+
])) : w("", !0),
|
|
3492
|
+
z(t.$slots, "default", {}, void 0, !0)
|
|
3493
3493
|
]),
|
|
3494
3494
|
_: 3
|
|
3495
3495
|
}));
|
|
3496
3496
|
}
|
|
3497
|
-
}), Vt = (c,
|
|
3497
|
+
}), Vt = (c, t) => {
|
|
3498
3498
|
const o = c.__vccOpts || c;
|
|
3499
|
-
for (const [
|
|
3500
|
-
o[
|
|
3499
|
+
for (const [a, n] of t)
|
|
3500
|
+
o[a] = n;
|
|
3501
3501
|
return o;
|
|
3502
3502
|
}, kt = /* @__PURE__ */ Vt($s, [["__scopeId", "data-v-3135ada5"]]), xs = (c) => (Lt("data-v-584be7b0"), c = c(), It(), c), ws = ["href", "title"], Ss = {
|
|
3503
3503
|
class: "text-caption text-disabled",
|
|
3504
3504
|
style: { position: "absolute", right: "16px" }
|
|
3505
|
-
}, Cs = /* @__PURE__ */ xs(() => /* @__PURE__ */
|
|
3505
|
+
}, Cs = /* @__PURE__ */ xs(() => /* @__PURE__ */ g("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), Ls = /* @__PURE__ */ $({
|
|
3506
3506
|
__name: "VoSocialFooter",
|
|
3507
3507
|
setup(c) {
|
|
3508
|
-
const
|
|
3508
|
+
const t = Ke(), o = [
|
|
3509
3509
|
{
|
|
3510
3510
|
title: "Vuetify Documentation",
|
|
3511
3511
|
icon: "$vuetify",
|
|
@@ -3537,15 +3537,15 @@ const Ke = W("settings", () => {
|
|
|
3537
3537
|
href: "https://reddit.com/r/vuetifyjs"
|
|
3538
3538
|
}
|
|
3539
3539
|
];
|
|
3540
|
-
return (
|
|
3540
|
+
return (a, n) => {
|
|
3541
3541
|
const i = kt;
|
|
3542
3542
|
return p(), _(i, {
|
|
3543
3543
|
class: "vo-footer",
|
|
3544
3544
|
height: "40",
|
|
3545
|
-
image: t
|
|
3545
|
+
image: e(t).suit.footer
|
|
3546
3546
|
}, R({
|
|
3547
3547
|
default: r(() => [
|
|
3548
|
-
(p(), L(U, null, ne(o, (l) =>
|
|
3548
|
+
(p(), L(U, null, ne(o, (l) => g("a", {
|
|
3549
3549
|
key: l.title,
|
|
3550
3550
|
class: "d-inline-block mx-2 social-link",
|
|
3551
3551
|
href: l.href,
|
|
@@ -3553,22 +3553,22 @@ const Ke = W("settings", () => {
|
|
|
3553
3553
|
target: "_blank",
|
|
3554
3554
|
title: l.title
|
|
3555
3555
|
}, [
|
|
3556
|
-
|
|
3556
|
+
s(D, {
|
|
3557
3557
|
icon: l.icon,
|
|
3558
3558
|
size: l.icon === "$vuetify" ? 24 : 16
|
|
3559
3559
|
}, null, 8, ["icon", "size"])
|
|
3560
3560
|
], 8, ws)), 64)),
|
|
3561
|
-
|
|
3562
|
-
|
|
3561
|
+
g("div", Ss, [
|
|
3562
|
+
T(" © 2016-" + C((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
|
|
3563
3563
|
Cs
|
|
3564
3564
|
])
|
|
3565
3565
|
]),
|
|
3566
3566
|
_: 2
|
|
3567
3567
|
}, [
|
|
3568
|
-
|
|
3568
|
+
a.$slots.image ? {
|
|
3569
3569
|
name: "image",
|
|
3570
3570
|
fn: r(() => [
|
|
3571
|
-
z(
|
|
3571
|
+
z(a.$slots, "image", {}, void 0, !0)
|
|
3572
3572
|
]),
|
|
3573
3573
|
key: "0"
|
|
3574
3574
|
} : void 0
|
|
@@ -3581,119 +3581,119 @@ const Ke = W("settings", () => {
|
|
|
3581
3581
|
demo: { type: Boolean }
|
|
3582
3582
|
},
|
|
3583
3583
|
setup(c) {
|
|
3584
|
-
const
|
|
3585
|
-
var
|
|
3586
|
-
return ((
|
|
3587
|
-
}), f =
|
|
3588
|
-
function
|
|
3584
|
+
const t = c, { mdAndUp: o } = le(), a = Ne(), n = F(), i = je(), l = S(() => i.banner), d = S(() => {
|
|
3585
|
+
var y, V;
|
|
3586
|
+
return ((y = l.value) == null ? void 0 : y.metadata.height) || ((V = l.value) != null && V.metadata.subtext ? 88 : 48);
|
|
3587
|
+
}), f = S(() => t.demo ? !0 : !l.value || !n.notifications.last.banner.includes(l.value.slug));
|
|
3588
|
+
function u() {
|
|
3589
3589
|
l.value && n.notifications.last.banner.push(l.value.slug);
|
|
3590
3590
|
}
|
|
3591
|
-
async function h(
|
|
3591
|
+
async function h(y) {
|
|
3592
3592
|
var v;
|
|
3593
3593
|
if (!l.value)
|
|
3594
3594
|
return;
|
|
3595
|
-
|
|
3596
|
-
const
|
|
3597
|
-
if (
|
|
3595
|
+
u(), await pe();
|
|
3596
|
+
const V = ((v = l.value) == null ? void 0 : v.metadata) ?? { link: "" };
|
|
3597
|
+
if (V.link.indexOf("?one=") === -1)
|
|
3598
3598
|
return;
|
|
3599
|
-
|
|
3600
|
-
const m =
|
|
3601
|
-
|
|
3599
|
+
y.preventDefault(), y.stopPropagation();
|
|
3600
|
+
const m = V.link.split("?one=")[1];
|
|
3601
|
+
a.push({ query: { one: m } });
|
|
3602
3602
|
}
|
|
3603
|
-
const
|
|
3604
|
-
var
|
|
3605
|
-
const
|
|
3603
|
+
const k = S(() => {
|
|
3604
|
+
var V, m;
|
|
3605
|
+
const y = ((V = l.value) == null ? void 0 : V.metadata) ?? { link: "" };
|
|
3606
3606
|
return {
|
|
3607
|
-
href:
|
|
3608
|
-
target:
|
|
3609
|
-
to:
|
|
3607
|
+
href: y.link.startsWith("http") ? y.link : void 0,
|
|
3608
|
+
target: y.link.startsWith("http") ? "_blank" : void 0,
|
|
3609
|
+
to: y.link.startsWith("http") ? void 0 : y.link,
|
|
3610
3610
|
...(m = l.value) == null ? void 0 : m.metadata.attributes,
|
|
3611
3611
|
onClick: h
|
|
3612
3612
|
};
|
|
3613
3613
|
});
|
|
3614
|
-
return (
|
|
3614
|
+
return (y, V) => {
|
|
3615
3615
|
var m;
|
|
3616
|
-
return
|
|
3616
|
+
return e(l) ? (p(), _(Do, {
|
|
3617
3617
|
key: 0,
|
|
3618
|
-
color:
|
|
3618
|
+
color: e(l).metadata.color,
|
|
3619
3619
|
flat: "",
|
|
3620
|
-
height:
|
|
3621
|
-
image: (m =
|
|
3622
|
-
"model-value":
|
|
3620
|
+
height: e(d),
|
|
3621
|
+
image: (m = e(l).metadata.images.bg) == null ? void 0 : m.url,
|
|
3622
|
+
"model-value": e(f),
|
|
3623
3623
|
order: "-1"
|
|
3624
3624
|
}, {
|
|
3625
3625
|
default: r(() => [
|
|
3626
|
-
|
|
3626
|
+
s(Ve, H(e(k), {
|
|
3627
3627
|
active: !1,
|
|
3628
3628
|
class: "flex-grow-1 py-6",
|
|
3629
3629
|
lines: "two",
|
|
3630
3630
|
onClick: h
|
|
3631
3631
|
}), {
|
|
3632
3632
|
prepend: r(() => [
|
|
3633
|
-
|
|
3633
|
+
e(l).metadata.images.logo ? (p(), _(Q, {
|
|
3634
3634
|
key: 0,
|
|
3635
3635
|
icon: "$vuetify",
|
|
3636
|
-
image:
|
|
3636
|
+
image: e(l).metadata.images.logo.url,
|
|
3637
3637
|
size: "x-large",
|
|
3638
3638
|
tile: ""
|
|
3639
|
-
}, null, 8, ["image"])) :
|
|
3639
|
+
}, null, 8, ["image"])) : w("", !0)
|
|
3640
3640
|
]),
|
|
3641
3641
|
append: r(() => [
|
|
3642
|
-
|
|
3643
|
-
default: r(({ isHovering: v, props:
|
|
3644
|
-
|
|
3645
|
-
...
|
|
3646
|
-
...
|
|
3642
|
+
e(o) && e(l).metadata.link && e(l).metadata.link_text ? (p(), _(ze, { key: 0 }, {
|
|
3643
|
+
default: r(({ isHovering: v, props: b }) => [
|
|
3644
|
+
s(q, H({
|
|
3645
|
+
...b,
|
|
3646
|
+
...e(k)
|
|
3647
3647
|
}, {
|
|
3648
|
-
"append-icon": `svg:${
|
|
3648
|
+
"append-icon": `svg:${e(Oe)}`,
|
|
3649
3649
|
class: "text-none me-2",
|
|
3650
|
-
color:
|
|
3650
|
+
color: e(l).metadata.link_color,
|
|
3651
3651
|
elevation: v ? 8 : 0,
|
|
3652
|
-
title:
|
|
3652
|
+
title: e(l).metadata.link_text,
|
|
3653
3653
|
variant: "elevated",
|
|
3654
3654
|
onClick: h
|
|
3655
3655
|
}), {
|
|
3656
3656
|
default: r(() => [
|
|
3657
|
-
|
|
3657
|
+
T(C(e(l).metadata.link_text), 1)
|
|
3658
3658
|
]),
|
|
3659
3659
|
_: 2
|
|
3660
3660
|
}, 1040, ["append-icon", "color", "elevation", "title"])
|
|
3661
3661
|
]),
|
|
3662
3662
|
_: 1
|
|
3663
|
-
})) :
|
|
3664
|
-
|
|
3663
|
+
})) : w("", !0),
|
|
3664
|
+
e(l).metadata.closable ? (p(), _(q, {
|
|
3665
3665
|
key: 1,
|
|
3666
3666
|
class: "ms-6 me-2",
|
|
3667
3667
|
density: "comfortable",
|
|
3668
|
-
disabled:
|
|
3668
|
+
disabled: y.demo,
|
|
3669
3669
|
icon: "$clear",
|
|
3670
3670
|
size: "small",
|
|
3671
3671
|
variant: "plain",
|
|
3672
|
-
onClick:
|
|
3673
|
-
}, null, 8, ["disabled"])) :
|
|
3672
|
+
onClick: Ee(u, ["prevent", "stop"])
|
|
3673
|
+
}, null, 8, ["disabled"])) : w("", !0)
|
|
3674
3674
|
]),
|
|
3675
3675
|
default: r(() => [
|
|
3676
|
-
|
|
3676
|
+
e(l).metadata.text ? (p(), _(ct, {
|
|
3677
3677
|
key: 0,
|
|
3678
3678
|
class: "text-subtitle-2 text-md-subtitle-1 font-weight-medium"
|
|
3679
3679
|
}, {
|
|
3680
3680
|
default: r(() => [
|
|
3681
|
-
|
|
3681
|
+
T(C(e(l).metadata.text), 1)
|
|
3682
3682
|
]),
|
|
3683
3683
|
_: 1
|
|
3684
|
-
})) :
|
|
3685
|
-
|
|
3684
|
+
})) : w("", !0),
|
|
3685
|
+
e(l).metadata.subtext ? (p(), _(fo, { key: 1 }, {
|
|
3686
3686
|
default: r(() => [
|
|
3687
|
-
|
|
3687
|
+
T(C(e(l).metadata.subtext), 1)
|
|
3688
3688
|
]),
|
|
3689
3689
|
_: 1
|
|
3690
|
-
})) :
|
|
3690
|
+
})) : w("", !0)
|
|
3691
3691
|
]),
|
|
3692
3692
|
_: 1
|
|
3693
3693
|
}, 16)
|
|
3694
3694
|
]),
|
|
3695
3695
|
_: 1
|
|
3696
|
-
}, 8, ["color", "height", "image", "model-value"])) :
|
|
3696
|
+
}, 8, ["color", "height", "image", "model-value"])) : w("", !0);
|
|
3697
3697
|
};
|
|
3698
3698
|
}
|
|
3699
3699
|
}), As = {
|
|
@@ -3707,7 +3707,7 @@ const Ke = W("settings", () => {
|
|
|
3707
3707
|
minHeight: {}
|
|
3708
3708
|
},
|
|
3709
3709
|
setup(c) {
|
|
3710
|
-
return (
|
|
3710
|
+
return (t, o) => (p(), _(E, {
|
|
3711
3711
|
class: "d-inline-flex flex-child-1 position-relative",
|
|
3712
3712
|
color: "surface-light",
|
|
3713
3713
|
flat: "",
|
|
@@ -3716,114 +3716,115 @@ const Ke = W("settings", () => {
|
|
|
3716
3716
|
target: "_blank"
|
|
3717
3717
|
}, R({
|
|
3718
3718
|
default: r(() => [
|
|
3719
|
-
|
|
3720
|
-
"min-height":
|
|
3719
|
+
s(Ao, {
|
|
3720
|
+
"min-height": t.minHeight,
|
|
3721
3721
|
width: "100%"
|
|
3722
3722
|
}, {
|
|
3723
3723
|
default: r(() => [
|
|
3724
|
-
z(
|
|
3724
|
+
z(t.$slots, "default")
|
|
3725
3725
|
]),
|
|
3726
3726
|
_: 3
|
|
3727
3727
|
}, 8, ["min-height"]),
|
|
3728
|
-
|
|
3728
|
+
t.caption ? (p(), L("div", As, C(t.caption), 1)) : w("", !0)
|
|
3729
3729
|
]),
|
|
3730
3730
|
_: 2
|
|
3731
3731
|
}, [
|
|
3732
|
-
|
|
3732
|
+
t.$slots.prepend ? {
|
|
3733
3733
|
name: "prepend",
|
|
3734
3734
|
fn: r(() => [
|
|
3735
|
-
z(
|
|
3735
|
+
z(t.$slots, "prepend")
|
|
3736
3736
|
]),
|
|
3737
3737
|
key: "0"
|
|
3738
3738
|
} : void 0,
|
|
3739
|
-
|
|
3739
|
+
t.$slots.image ? {
|
|
3740
3740
|
name: "image",
|
|
3741
3741
|
fn: r(() => [
|
|
3742
|
-
z(
|
|
3742
|
+
z(t.$slots, "image")
|
|
3743
3743
|
]),
|
|
3744
3744
|
key: "1"
|
|
3745
3745
|
} : void 0
|
|
3746
3746
|
]), 1024));
|
|
3747
3747
|
}
|
|
3748
3748
|
}), et = W("promotions", () => {
|
|
3749
|
-
const c = ce(),
|
|
3750
|
-
|
|
3751
|
-
function
|
|
3752
|
-
return
|
|
3749
|
+
const c = ce(), t = O([]), o = O([]), a = O(), n = A(!1), i = A(!1), l = S(() => t.value.filter((m) => m.metadata.discoverable));
|
|
3750
|
+
Ze(f);
|
|
3751
|
+
function d(m) {
|
|
3752
|
+
return m[Math.floor(Math.random() * m.length)];
|
|
3753
3753
|
}
|
|
3754
|
-
async function
|
|
3754
|
+
async function f() {
|
|
3755
3755
|
try {
|
|
3756
3756
|
n.value = !0;
|
|
3757
|
-
const
|
|
3758
|
-
|
|
3757
|
+
const m = await c.get("/one/promotions");
|
|
3758
|
+
t.value = m.promotions;
|
|
3759
3759
|
} catch {
|
|
3760
3760
|
} finally {
|
|
3761
|
-
n.value = !1;
|
|
3761
|
+
n.value = !1, i.value = !0;
|
|
3762
3762
|
}
|
|
3763
|
-
return
|
|
3763
|
+
return t.value;
|
|
3764
3764
|
}
|
|
3765
|
-
async function
|
|
3765
|
+
async function u(m) {
|
|
3766
3766
|
try {
|
|
3767
3767
|
n.value = !0;
|
|
3768
|
-
const
|
|
3769
|
-
return
|
|
3768
|
+
const v = await c.get(`/one/admin/promotions/${m}`);
|
|
3769
|
+
return a.value = v.promotion, v.promotion;
|
|
3770
3770
|
} catch {
|
|
3771
3771
|
} finally {
|
|
3772
3772
|
n.value = !1;
|
|
3773
3773
|
}
|
|
3774
3774
|
}
|
|
3775
|
-
async function
|
|
3775
|
+
async function h(m) {
|
|
3776
3776
|
try {
|
|
3777
3777
|
n.value = !0;
|
|
3778
|
-
const
|
|
3778
|
+
const v = await c.form(
|
|
3779
3779
|
"/one/admin/promotions",
|
|
3780
|
-
|
|
3780
|
+
m
|
|
3781
3781
|
);
|
|
3782
|
-
return
|
|
3782
|
+
return a.value = v.promotion, v.promotion;
|
|
3783
3783
|
} catch {
|
|
3784
3784
|
} finally {
|
|
3785
3785
|
n.value = !1;
|
|
3786
3786
|
}
|
|
3787
3787
|
}
|
|
3788
|
-
async function
|
|
3788
|
+
async function k(m, v) {
|
|
3789
3789
|
try {
|
|
3790
3790
|
n.value = !0;
|
|
3791
|
-
const
|
|
3792
|
-
`/one/admin/promotions/${
|
|
3793
|
-
|
|
3791
|
+
const b = await c.form(
|
|
3792
|
+
`/one/admin/promotions/${m}`,
|
|
3793
|
+
v
|
|
3794
3794
|
);
|
|
3795
|
-
return
|
|
3795
|
+
return a.value = b.promotion, b.promotion;
|
|
3796
3796
|
} catch {
|
|
3797
3797
|
} finally {
|
|
3798
3798
|
n.value = !1;
|
|
3799
3799
|
}
|
|
3800
3800
|
}
|
|
3801
|
-
async function
|
|
3801
|
+
async function y() {
|
|
3802
3802
|
}
|
|
3803
3803
|
async function V() {
|
|
3804
3804
|
try {
|
|
3805
3805
|
n.value = !0;
|
|
3806
|
-
const
|
|
3807
|
-
o.value =
|
|
3806
|
+
const m = await c.get("/one/admin/promotions");
|
|
3807
|
+
o.value = m.promotions;
|
|
3808
3808
|
} catch {
|
|
3809
3809
|
} finally {
|
|
3810
3810
|
n.value = !1;
|
|
3811
3811
|
}
|
|
3812
|
-
return
|
|
3812
|
+
return t.value;
|
|
3813
3813
|
}
|
|
3814
3814
|
return {
|
|
3815
|
-
all:
|
|
3815
|
+
all: t,
|
|
3816
3816
|
aall: o,
|
|
3817
3817
|
isLoading: n,
|
|
3818
|
-
|
|
3819
|
-
|
|
3818
|
+
hasLoaded: i,
|
|
3819
|
+
discoverable: l,
|
|
3820
|
+
record: a,
|
|
3820
3821
|
admin: V,
|
|
3821
|
-
destroy:
|
|
3822
|
-
index:
|
|
3823
|
-
random:
|
|
3824
|
-
show:
|
|
3825
|
-
store:
|
|
3826
|
-
update:
|
|
3822
|
+
destroy: y,
|
|
3823
|
+
index: f,
|
|
3824
|
+
random: d,
|
|
3825
|
+
show: u,
|
|
3826
|
+
store: h,
|
|
3827
|
+
update: k
|
|
3827
3828
|
};
|
|
3828
3829
|
}), Os = /* @__PURE__ */ $({
|
|
3829
3830
|
__name: "VoPromotionsCardHighlight",
|
|
@@ -3831,31 +3832,34 @@ const Ke = W("settings", () => {
|
|
|
3831
3832
|
slug: {}
|
|
3832
3833
|
},
|
|
3833
3834
|
setup(c) {
|
|
3834
|
-
const
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3835
|
+
const t = c, o = et(), a = Xe(), n = F(), i = S(() => {
|
|
3836
|
+
if (!n.disableAds)
|
|
3837
|
+
return o.record ? o.record : t.slug ? o.all.find((f) => f.slug === t.slug) : o.random(o.all);
|
|
3838
|
+
}), l = S(() => {
|
|
3839
|
+
var u, h;
|
|
3840
|
+
const f = a.current.value.dark ? "logodark" : "logolight";
|
|
3841
|
+
return (h = (u = i.value) == null ? void 0 : u.metadata.images[f]) == null ? void 0 : h.url;
|
|
3842
|
+
}), d = S(() => {
|
|
3843
|
+
var u, h;
|
|
3844
|
+
const f = a.current.value.dark ? "bgdark" : "bglight";
|
|
3845
|
+
return (h = (u = i.value) == null ? void 0 : u.metadata.images[f]) == null ? void 0 : h.url;
|
|
3842
3846
|
});
|
|
3843
|
-
return
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3847
|
+
return (f, u) => {
|
|
3848
|
+
var k, y;
|
|
3849
|
+
const h = $t;
|
|
3850
|
+
return e(i) || !e(o).hasLoaded ? (p(), _(h, {
|
|
3851
|
+
key: 0,
|
|
3852
|
+
class: "mb-4",
|
|
3849
3853
|
height: "60",
|
|
3850
|
-
href: (
|
|
3851
|
-
image:
|
|
3854
|
+
href: (k = e(i)) == null ? void 0 : k.metadata.url,
|
|
3855
|
+
image: e(d),
|
|
3852
3856
|
"max-width": "720",
|
|
3853
|
-
"prepend-avatar":
|
|
3854
|
-
title: (
|
|
3857
|
+
"prepend-avatar": e(l),
|
|
3858
|
+
title: (y = e(i)) == null ? void 0 : y.metadata.short_text,
|
|
3855
3859
|
width: "100%"
|
|
3856
3860
|
}, R({
|
|
3857
3861
|
default: r(() => [
|
|
3858
|
-
|
|
3862
|
+
e(o).hasLoaded ? w("", !0) : (p(), _(be, {
|
|
3859
3863
|
key: 0,
|
|
3860
3864
|
class: "flex-1-0 overflow-hidden",
|
|
3861
3865
|
color: "transparent",
|
|
@@ -3866,24 +3870,24 @@ const Ke = W("settings", () => {
|
|
|
3866
3870
|
]),
|
|
3867
3871
|
_: 2
|
|
3868
3872
|
}, [
|
|
3869
|
-
|
|
3873
|
+
e(i) ? {
|
|
3870
3874
|
name: "prepend",
|
|
3871
3875
|
fn: r(() => [
|
|
3872
|
-
|
|
3876
|
+
s(Q, {
|
|
3873
3877
|
class: "my-n4 me-4",
|
|
3874
3878
|
size: "36"
|
|
3875
3879
|
})
|
|
3876
3880
|
]),
|
|
3877
3881
|
key: "0"
|
|
3878
3882
|
} : void 0,
|
|
3879
|
-
|
|
3883
|
+
e(i) ? {
|
|
3880
3884
|
name: "image",
|
|
3881
3885
|
fn: r(() => [
|
|
3882
|
-
|
|
3886
|
+
s(Y, { position: "right" })
|
|
3883
3887
|
]),
|
|
3884
3888
|
key: "1"
|
|
3885
3889
|
} : void 0
|
|
3886
|
-
]), 1032, ["href", "image", "prepend-avatar", "title"]);
|
|
3890
|
+
]), 1032, ["href", "image", "prepend-avatar", "title"])) : w("", !0);
|
|
3887
3891
|
};
|
|
3888
3892
|
}
|
|
3889
3893
|
}), Ns = { class: "d-flex ga-4" }, Bs = { class: "d-flex align-start ga-4" }, Us = { class: "text-caption on-surface-light" }, zs = /* @__PURE__ */ $({
|
|
@@ -3892,35 +3896,37 @@ const Ke = W("settings", () => {
|
|
|
3892
3896
|
slug: {}
|
|
3893
3897
|
},
|
|
3894
3898
|
setup(c) {
|
|
3895
|
-
const
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
})
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3899
|
+
const t = c, o = et(), a = F(), n = S(() => {
|
|
3900
|
+
if (!a.disableAds)
|
|
3901
|
+
return o.record ? o.record : t.slug ? o.all.find((i) => i.slug === t.slug) : o.random(o.all);
|
|
3902
|
+
});
|
|
3903
|
+
return (i, l) => {
|
|
3904
|
+
var f, u;
|
|
3905
|
+
const d = $t;
|
|
3906
|
+
return e(n) || !e(o).hasLoaded ? (p(), _(d, {
|
|
3907
|
+
key: 0,
|
|
3902
3908
|
border: "",
|
|
3903
|
-
class: "pa-2",
|
|
3904
|
-
href: (
|
|
3909
|
+
class: "pa-2 mb-4",
|
|
3910
|
+
href: (u = (f = e(n)) == null ? void 0 : f.metadata) == null ? void 0 : u.url,
|
|
3905
3911
|
width: "360"
|
|
3906
3912
|
}, {
|
|
3907
3913
|
default: r(() => {
|
|
3908
|
-
var
|
|
3914
|
+
var h, k, y;
|
|
3909
3915
|
return [
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3916
|
+
g("div", Ns, [
|
|
3917
|
+
e(o).hasLoaded ? e(n) ? (p(), L(U, { key: 1 }, [
|
|
3918
|
+
s(Y, {
|
|
3913
3919
|
height: "100",
|
|
3914
3920
|
"max-width": "130",
|
|
3915
3921
|
rounded: "s",
|
|
3916
|
-
src: (
|
|
3922
|
+
src: (k = (h = e(n).metadata) == null ? void 0 : h.images.default) == null ? void 0 : k.url,
|
|
3917
3923
|
width: "100%"
|
|
3918
3924
|
}, null, 8, ["src"]),
|
|
3919
|
-
|
|
3920
|
-
|
|
3925
|
+
g("div", Bs, [
|
|
3926
|
+
g("div", Us, C((y = e(n).metadata) == null ? void 0 : y.text), 1)
|
|
3921
3927
|
])
|
|
3922
|
-
], 64)) : (p(), L(U, { key:
|
|
3923
|
-
|
|
3928
|
+
], 64)) : w("", !0) : (p(), L(U, { key: 0 }, [
|
|
3929
|
+
s(be, {
|
|
3924
3930
|
class: "flex-1-0 overflow-hidden",
|
|
3925
3931
|
color: "transparent",
|
|
3926
3932
|
loading: "",
|
|
@@ -3928,7 +3934,7 @@ const Ke = W("settings", () => {
|
|
|
3928
3934
|
"min-width": "130",
|
|
3929
3935
|
type: "image"
|
|
3930
3936
|
}),
|
|
3931
|
-
|
|
3937
|
+
s(be, {
|
|
3932
3938
|
class: "flex-1-0 ms-n3 mt-n3",
|
|
3933
3939
|
color: "transparent",
|
|
3934
3940
|
loading: "",
|
|
@@ -3940,7 +3946,7 @@ const Ke = W("settings", () => {
|
|
|
3940
3946
|
];
|
|
3941
3947
|
}),
|
|
3942
3948
|
_: 1
|
|
3943
|
-
}, 8, ["href"]);
|
|
3949
|
+
}, 8, ["href"])) : w("", !0);
|
|
3944
3950
|
};
|
|
3945
3951
|
}
|
|
3946
3952
|
}), Fs = ["href"], Ts = { class: "text-white" }, js = /* @__PURE__ */ $({
|
|
@@ -3949,47 +3955,47 @@ const Ke = W("settings", () => {
|
|
|
3949
3955
|
slug: {}
|
|
3950
3956
|
},
|
|
3951
3957
|
setup(c) {
|
|
3952
|
-
const
|
|
3953
|
-
var f,
|
|
3954
|
-
const
|
|
3955
|
-
return (
|
|
3956
|
-
}), l =
|
|
3957
|
-
var f,
|
|
3958
|
-
const
|
|
3959
|
-
return (
|
|
3958
|
+
const t = c, o = et(), a = Xe(), n = S(() => o.record ? o.record : o.random(o.all)), i = S(() => {
|
|
3959
|
+
var f, u;
|
|
3960
|
+
const d = a.current.value.dark ? "logodark" : "logolight";
|
|
3961
|
+
return (u = (f = n.value) == null ? void 0 : f.metadata.images[d]) == null ? void 0 : u.url;
|
|
3962
|
+
}), l = S(() => {
|
|
3963
|
+
var f, u;
|
|
3964
|
+
const d = a.current.value.dark ? "bgdark" : "bglight";
|
|
3965
|
+
return (u = (f = n.value) == null ? void 0 : f.metadata.images[d]) == null ? void 0 : u.url;
|
|
3960
3966
|
});
|
|
3961
|
-
return
|
|
3962
|
-
|
|
3963
|
-
}), (
|
|
3964
|
-
const
|
|
3965
|
-
return p(), _(
|
|
3967
|
+
return Ze(async () => {
|
|
3968
|
+
t.slug && await o.show(t.slug);
|
|
3969
|
+
}), (d, f) => {
|
|
3970
|
+
const u = kt;
|
|
3971
|
+
return p(), _(u, {
|
|
3966
3972
|
color: "surface-light",
|
|
3967
|
-
image:
|
|
3973
|
+
image: e(l),
|
|
3968
3974
|
style: { transform: "translateY(0)" }
|
|
3969
3975
|
}, {
|
|
3970
3976
|
default: r(() => {
|
|
3971
|
-
var h,
|
|
3977
|
+
var h, k, y;
|
|
3972
3978
|
return [
|
|
3973
|
-
|
|
3979
|
+
g("a", {
|
|
3974
3980
|
class: "d-flex align-center text-decoration-none py-2 px-4 ms-n4 flex-1-0 me-n4 text-high-emphasis position-relative",
|
|
3975
|
-
href: (h =
|
|
3981
|
+
href: (h = e(n)) == null ? void 0 : h.metadata.url,
|
|
3976
3982
|
rel: "noopener noreferrer",
|
|
3977
3983
|
target: "_blank"
|
|
3978
3984
|
}, [
|
|
3979
|
-
|
|
3985
|
+
s(Q, {
|
|
3980
3986
|
class: "me-4",
|
|
3981
|
-
image:
|
|
3987
|
+
image: e(i),
|
|
3982
3988
|
size: "24"
|
|
3983
3989
|
}, null, 8, ["image"]),
|
|
3984
|
-
|
|
3985
|
-
(
|
|
3990
|
+
g("div", Ts, C((k = e(n)) == null ? void 0 : k.metadata.text), 1),
|
|
3991
|
+
(y = e(n)) != null && y.metadata.advertisement ? (p(), _(te, {
|
|
3986
3992
|
key: 0,
|
|
3987
3993
|
class: "ms-auto me-n4 align-self-end mb-n2 py-1 ps-3",
|
|
3988
3994
|
rounded: "0 ts-lg",
|
|
3989
3995
|
size: "x-small",
|
|
3990
3996
|
text: "SPONSORED",
|
|
3991
3997
|
variant: "flat"
|
|
3992
|
-
})) :
|
|
3998
|
+
})) : w("", !0)
|
|
3993
3999
|
], 8, Fs)
|
|
3994
4000
|
];
|
|
3995
4001
|
}),
|
|
@@ -4014,57 +4020,57 @@ const Ke = W("settings", () => {
|
|
|
4014
4020
|
}
|
|
4015
4021
|
},
|
|
4016
4022
|
emits: ["script:error", "script:load"],
|
|
4017
|
-
setup(c, { emit:
|
|
4018
|
-
const o = c,
|
|
4019
|
-
return
|
|
4020
|
-
const l = document.createElement("script"),
|
|
4021
|
-
l.type = "text/javascript", l.id = o.scriptId, l.src = o.src, l.onload = () =>
|
|
4022
|
-
}),
|
|
4023
|
+
setup(c, { emit: t }) {
|
|
4024
|
+
const o = c, a = t, n = O(), i = O();
|
|
4025
|
+
return Ze(async () => {
|
|
4026
|
+
const l = document.createElement("script"), d = () => a("script:error");
|
|
4027
|
+
l.type = "text/javascript", l.id = o.scriptId, l.src = o.src, l.onload = () => a("script:load"), l.onerror = d, i.value = l;
|
|
4028
|
+
}), qe(() => {
|
|
4023
4029
|
var l;
|
|
4024
4030
|
i.value && ((l = n.value) == null || l.appendChild(i.value));
|
|
4025
4031
|
}), Dt(() => {
|
|
4026
4032
|
var l;
|
|
4027
4033
|
i.value && ((l = n.value) == null || l.removeChild(i.value));
|
|
4028
|
-
}), (l,
|
|
4034
|
+
}), (l, d) => (p(), L("div", {
|
|
4029
4035
|
id: c.id,
|
|
4030
4036
|
ref_key: "rootEl",
|
|
4031
4037
|
ref: n
|
|
4032
4038
|
}, null, 8, Ms));
|
|
4033
4039
|
}
|
|
4034
4040
|
}), Hs = W("spots", () => {
|
|
4035
|
-
const c = ce(),
|
|
4041
|
+
const c = ce(), t = bt(), o = O([]), a = O([]), n = O(), i = A(!1), l = S(() => n.value ? n.value : o.value.find(({
|
|
4036
4042
|
metadata: {
|
|
4037
|
-
site:
|
|
4043
|
+
site: V,
|
|
4038
4044
|
active: m
|
|
4039
4045
|
}
|
|
4040
|
-
}) => m ?
|
|
4041
|
-
async function
|
|
4046
|
+
}) => m ? V.includes("dev") && !1 || V.includes("*") ? !0 : V.some((v) => t.id.includes(v)) : !1));
|
|
4047
|
+
async function d() {
|
|
4042
4048
|
try {
|
|
4043
4049
|
i.value = !0;
|
|
4044
|
-
const
|
|
4045
|
-
o.value =
|
|
4050
|
+
const V = await c.get("/one/spots");
|
|
4051
|
+
o.value = V.spots;
|
|
4046
4052
|
} catch {
|
|
4047
4053
|
} finally {
|
|
4048
4054
|
i.value = !1;
|
|
4049
4055
|
}
|
|
4050
4056
|
return o.value;
|
|
4051
4057
|
}
|
|
4052
|
-
async function f(
|
|
4058
|
+
async function f(V) {
|
|
4053
4059
|
try {
|
|
4054
4060
|
i.value = !0;
|
|
4055
|
-
const m = await c.get(`/one/admin/spots/${
|
|
4061
|
+
const m = await c.get(`/one/admin/spots/${V}`);
|
|
4056
4062
|
return n.value = m.spot, m.spot;
|
|
4057
4063
|
} catch {
|
|
4058
4064
|
} finally {
|
|
4059
4065
|
i.value = !1;
|
|
4060
4066
|
}
|
|
4061
4067
|
}
|
|
4062
|
-
async function
|
|
4068
|
+
async function u(V) {
|
|
4063
4069
|
try {
|
|
4064
4070
|
i.value = !0;
|
|
4065
4071
|
const m = await c.form(
|
|
4066
4072
|
"/one/admin/spots",
|
|
4067
|
-
|
|
4073
|
+
V
|
|
4068
4074
|
);
|
|
4069
4075
|
return n.value = m.spot, m.spot;
|
|
4070
4076
|
} catch {
|
|
@@ -4072,11 +4078,11 @@ const Ke = W("settings", () => {
|
|
|
4072
4078
|
i.value = !1;
|
|
4073
4079
|
}
|
|
4074
4080
|
}
|
|
4075
|
-
async function h(
|
|
4081
|
+
async function h(V, m) {
|
|
4076
4082
|
try {
|
|
4077
4083
|
i.value = !0;
|
|
4078
4084
|
const v = await c.form(
|
|
4079
|
-
`/one/admin/spots/${
|
|
4085
|
+
`/one/admin/spots/${V}`,
|
|
4080
4086
|
m
|
|
4081
4087
|
);
|
|
4082
4088
|
return n.value = v.spot, v.spot;
|
|
@@ -4085,13 +4091,13 @@ const Ke = W("settings", () => {
|
|
|
4085
4091
|
i.value = !1;
|
|
4086
4092
|
}
|
|
4087
4093
|
}
|
|
4088
|
-
async function
|
|
4094
|
+
async function k() {
|
|
4089
4095
|
}
|
|
4090
|
-
async function
|
|
4096
|
+
async function y() {
|
|
4091
4097
|
try {
|
|
4092
4098
|
i.value = !0;
|
|
4093
|
-
const
|
|
4094
|
-
|
|
4099
|
+
const V = await c.get("/one/admin/spots");
|
|
4100
|
+
a.value = V.spots;
|
|
4095
4101
|
} catch {
|
|
4096
4102
|
} finally {
|
|
4097
4103
|
i.value = !1;
|
|
@@ -4100,50 +4106,50 @@ const Ke = W("settings", () => {
|
|
|
4100
4106
|
}
|
|
4101
4107
|
return {
|
|
4102
4108
|
all: o,
|
|
4103
|
-
aall:
|
|
4109
|
+
aall: a,
|
|
4104
4110
|
isLoading: i,
|
|
4105
4111
|
spot: l,
|
|
4106
4112
|
record: n,
|
|
4107
|
-
admin:
|
|
4108
|
-
index:
|
|
4113
|
+
admin: y,
|
|
4114
|
+
index: d,
|
|
4109
4115
|
show: f,
|
|
4110
|
-
store:
|
|
4116
|
+
store: u,
|
|
4111
4117
|
update: h,
|
|
4112
|
-
destroy:
|
|
4118
|
+
destroy: k
|
|
4113
4119
|
};
|
|
4114
4120
|
}), Rs = ["href"], Es = /* @__PURE__ */ $({
|
|
4115
4121
|
__name: "VoSpot",
|
|
4116
4122
|
setup(c) {
|
|
4117
|
-
const
|
|
4118
|
-
return (o,
|
|
4123
|
+
const t = Hs();
|
|
4124
|
+
return (o, a) => {
|
|
4119
4125
|
var n;
|
|
4120
|
-
return t
|
|
4126
|
+
return e(t).spot ? (p(), L("a", {
|
|
4121
4127
|
key: 0,
|
|
4122
|
-
href: t
|
|
4128
|
+
href: e(t).spot.metadata.href,
|
|
4123
4129
|
rel: "noopener noreferrer sponsored",
|
|
4124
4130
|
target: "_blank"
|
|
4125
4131
|
}, [
|
|
4126
|
-
|
|
4132
|
+
s(Y, {
|
|
4127
4133
|
class: "mx-auto",
|
|
4128
|
-
color: t
|
|
4134
|
+
color: e(t).spot.metadata.image ? void 0 : "surface",
|
|
4129
4135
|
rounded: "",
|
|
4130
|
-
src: (n = t
|
|
4136
|
+
src: (n = e(t).spot.metadata.image) == null ? void 0 : n.url,
|
|
4131
4137
|
width: "225"
|
|
4132
4138
|
}, null, 8, ["color", "src"])
|
|
4133
|
-
], 8, Rs)) :
|
|
4139
|
+
], 8, Rs)) : w("", !0);
|
|
4134
4140
|
};
|
|
4135
4141
|
}
|
|
4136
4142
|
}), Oa = W("bins", () => {
|
|
4137
|
-
const c = M(),
|
|
4138
|
-
B(
|
|
4143
|
+
const c = M(), t = ce(), o = O([]), a = O(), n = A(!1), i = A(-1), l = S(() => !c.user || !a.value ? !1 : c.user.id === a.value.owner.id), d = S(() => o.value.filter((v) => v.favorite)), f = S(() => o.value.filter((v) => v.pinned));
|
|
4144
|
+
B(a, () => {
|
|
4139
4145
|
window.clearTimeout(i.value), i.value = window.setTimeout(() => {
|
|
4140
|
-
!
|
|
4146
|
+
!a.value || !l.value || y(a.value, a.value.id);
|
|
4141
4147
|
}, 100);
|
|
4142
4148
|
}, { deep: !0 });
|
|
4143
|
-
async function
|
|
4149
|
+
async function u() {
|
|
4144
4150
|
try {
|
|
4145
4151
|
n.value = !0;
|
|
4146
|
-
const v = await
|
|
4152
|
+
const v = await t.get("/one/bins");
|
|
4147
4153
|
o.value = v.bins;
|
|
4148
4154
|
} catch {
|
|
4149
4155
|
} finally {
|
|
@@ -4153,40 +4159,40 @@ const Ke = W("settings", () => {
|
|
|
4153
4159
|
}
|
|
4154
4160
|
async function h(v) {
|
|
4155
4161
|
try {
|
|
4156
|
-
n.value = !0, await
|
|
4162
|
+
n.value = !0, await t.delete(`/one/bins/${v}`), o.value = o.value.filter((b) => b.id !== v);
|
|
4157
4163
|
} catch {
|
|
4158
4164
|
} finally {
|
|
4159
4165
|
n.value = !1;
|
|
4160
4166
|
}
|
|
4161
4167
|
return !0;
|
|
4162
4168
|
}
|
|
4163
|
-
async function
|
|
4169
|
+
async function k(v) {
|
|
4164
4170
|
try {
|
|
4165
4171
|
n.value = !0;
|
|
4166
|
-
const
|
|
4167
|
-
return o.value.push(
|
|
4172
|
+
const b = await t.post("/one/bins", { bin: v });
|
|
4173
|
+
return o.value.push(b.bin), a.value = b.bin, b;
|
|
4168
4174
|
} catch {
|
|
4169
4175
|
} finally {
|
|
4170
4176
|
n.value = !1;
|
|
4171
4177
|
}
|
|
4172
4178
|
return { bin: v };
|
|
4173
4179
|
}
|
|
4174
|
-
async function
|
|
4180
|
+
async function y(v, b) {
|
|
4175
4181
|
try {
|
|
4176
4182
|
n.value = !0;
|
|
4177
|
-
const N = await
|
|
4178
|
-
o.value.splice(
|
|
4183
|
+
const N = await t.post(`/one/bins/${b}`, { bin: v }), j = o.value.findIndex((ie) => ie.id === b);
|
|
4184
|
+
o.value.splice(j, 1, N.bin);
|
|
4179
4185
|
} catch {
|
|
4180
4186
|
} finally {
|
|
4181
4187
|
n.value = !1;
|
|
4182
4188
|
}
|
|
4183
4189
|
return { bin: v };
|
|
4184
4190
|
}
|
|
4185
|
-
async function
|
|
4191
|
+
async function V(v, b) {
|
|
4186
4192
|
try {
|
|
4187
4193
|
n.value = !0;
|
|
4188
|
-
const N =
|
|
4189
|
-
|
|
4194
|
+
const N = b ? await y(v, b) : await k(v);
|
|
4195
|
+
a.value = N.bin;
|
|
4190
4196
|
} catch {
|
|
4191
4197
|
} finally {
|
|
4192
4198
|
n.value = !1;
|
|
@@ -4196,51 +4202,51 @@ const Ke = W("settings", () => {
|
|
|
4196
4202
|
async function m(v) {
|
|
4197
4203
|
try {
|
|
4198
4204
|
n.value = !0;
|
|
4199
|
-
const
|
|
4200
|
-
|
|
4205
|
+
const b = await t.get(`/one/bins/${v}`);
|
|
4206
|
+
a.value = b.bin;
|
|
4201
4207
|
} catch {
|
|
4202
4208
|
} finally {
|
|
4203
4209
|
n.value = !1;
|
|
4204
4210
|
}
|
|
4205
|
-
return { bin:
|
|
4211
|
+
return { bin: a.value };
|
|
4206
4212
|
}
|
|
4207
4213
|
return {
|
|
4208
4214
|
isLoading: n,
|
|
4209
4215
|
isOwner: l,
|
|
4210
4216
|
pinned: f,
|
|
4211
|
-
favorites:
|
|
4217
|
+
favorites: d,
|
|
4212
4218
|
all: o,
|
|
4213
|
-
create:
|
|
4219
|
+
create: k,
|
|
4214
4220
|
delete: h,
|
|
4215
|
-
current:
|
|
4221
|
+
current: a,
|
|
4216
4222
|
find: m,
|
|
4217
|
-
get:
|
|
4218
|
-
update:
|
|
4219
|
-
updateOrCreate:
|
|
4223
|
+
get: u,
|
|
4224
|
+
update: y,
|
|
4225
|
+
updateOrCreate: V
|
|
4220
4226
|
};
|
|
4221
4227
|
});
|
|
4222
4228
|
function Na() {
|
|
4223
|
-
function c(
|
|
4224
|
-
|
|
4229
|
+
function c(t) {
|
|
4230
|
+
t.component("VoAuthBtn", Vs), t.component("VoAuthCard", ht), t.component("VoAuthDialog", _t), t.component("VoAuthListItem", gt), t.component("VoSocialFooter", Is), t.component("VoNotificationsBanner", Ds), t.component("VoPromotionsCardHighlight", Os), t.component("VoPromotionsCardVuetify", zs), t.component("VoPromotionsFooter", js), t.component("VoScript", Ps), t.component("VoSpot", Es);
|
|
4225
4231
|
}
|
|
4226
4232
|
return { install: c };
|
|
4227
4233
|
}
|
|
4228
|
-
function Ba(c,
|
|
4234
|
+
function Ba(c, t) {
|
|
4229
4235
|
return function(o) {
|
|
4230
|
-
const
|
|
4231
|
-
|
|
4236
|
+
const a = o.store;
|
|
4237
|
+
a.url = t, a.$id === "site" && (a.id = c);
|
|
4232
4238
|
};
|
|
4233
4239
|
}
|
|
4234
4240
|
export {
|
|
4235
4241
|
Na as createOne,
|
|
4236
4242
|
Ba as one,
|
|
4237
4243
|
M as useAuthStore,
|
|
4238
|
-
|
|
4244
|
+
je as useBannersStore,
|
|
4239
4245
|
Oa as useBinsStore,
|
|
4240
4246
|
ce as useHttpStore,
|
|
4241
4247
|
P as useOneStore,
|
|
4242
4248
|
et as usePromotionsStore,
|
|
4243
4249
|
Ke as useSettingsStore,
|
|
4244
4250
|
Hs as useSpotsStore,
|
|
4245
|
-
|
|
4251
|
+
F as useUserStore
|
|
4246
4252
|
};
|