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