@vuetify/one 2.8.0 → 2.8.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.js +717 -714
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y, createBlock as m, openBlock as c, unref as e, computed as
|
|
1
|
+
import { defineComponent as y, createBlock as m, openBlock as c, unref as e, computed as b, createSlots as z, withCtx as s, createElementVNode as g, toDisplayString as C, createVNode as n, createTextVNode as S, normalizeStyle as it, createCommentVNode as h, renderSlot as w, shallowRef as M, watch as H, withModifiers as ye, mergeModels as rt, useModel as W, createElementBlock as k, Fragment as D, nextTick as be, renderList as G, mergeProps as R, withDirectives as N, vShow as Ie, isRef as j, ref as E, readonly as Se, resolveComponent as lt, watchEffect as Nt, onMounted as He, toRef as ge, normalizeClass as Zt, useSlots as ut, normalizeProps as ct, guardReactiveProps as dt, onBeforeMount as je, onBeforeUnmount as Ht, useCssVars as jt, onServerPrefetch as Rt } from "vue";
|
|
2
2
|
import { u as oe, a as F, b as T, c as O, d as ke, e as J, f as De } from "./auth-QWWxnYQv.js";
|
|
3
3
|
import { VSnackbarQueue as qt } from "vuetify/components/VSnackbarQueue";
|
|
4
4
|
import { mdiStorefront as Wt, mdiSync as Gt, mdiSyncOff as Kt, mdiLogoutVariant as Yt, mdiFullscreenExit as Qt, mdiFullscreen as Xt, mdiCheck as Ve, mdiSelect as Jt, mdiSpaceInvaders as pt, mdiImageFilterHdr as mt, mdiTransmissionTower as ft, mdiRocketLaunchOutline as vt, mdiHome as eo, mdiTextBox as to, mdiWhiteBalanceSunny as oo, mdiWeatherNight as no, mdiDesktopTowerMonitor as so, mdiContrastCircle as ao, mdiCog as io, mdiCogOutline as ro, mdiShieldKeyOutline as lo, mdiContentCopy as Re, mdiFileDocument as gt, mdiKey as uo, mdiPlus as co, mdiRefresh as po, mdiKeyOutline as mo, mdiCreditCardSettingsOutline as fo, mdiRocketOutline as vo, mdiCheckCircleOutline as Me, mdiCreditCard as go, mdiReload as _o, mdiPlaylistCheck as yo, mdiCreditCardOutline as ho, mdiOpenInNew as Ae, mdiMedal as bo, mdiHandHeart as ko, mdiHandHeartOutline as Vo, mdiCloudDownload as Co, mdiTrayArrowDown as tt, mdiAccountGroup as $o, mdiAccount as xo, mdiLinkVariant as Lo, mdiShieldLock as ot, mdiAccountRemoveOutline as wo, mdiExitToApp as So, mdiAccountGroupOutline as Mo, mdiPin as Io, mdiPinOutline as Do, mdiEmailOpenOutline as qe, mdiEmailVariant as We, mdiBell as Ao, mdiInboxOutline as To, mdiInboxFullOutline as Uo, mdiBillboard as Po, mdiBellOutline as zo, mdiViewDashboardOutline as Oo, mdiCrown as Bo, mdiArrowULeftBottom as Eo, mdiAtomVariant as Fo, mdiLogin as nt, mdiDotsVertical as No, mdiShieldStarOutline as Zo } from "@mdi/js";
|
|
@@ -48,9 +48,9 @@ const pn = /* @__PURE__ */ y({
|
|
|
48
48
|
__name: "VoSnackbarQueue",
|
|
49
49
|
setup(p) {
|
|
50
50
|
const t = oe();
|
|
51
|
-
return (
|
|
51
|
+
return (a, o) => (c(), m(qt, {
|
|
52
52
|
modelValue: e(t).queue,
|
|
53
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
53
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => e(t).queue = i),
|
|
54
54
|
closable: "",
|
|
55
55
|
location: "bottom end"
|
|
56
56
|
}, null, 8, ["modelValue"]));
|
|
@@ -58,8 +58,8 @@ const pn = /* @__PURE__ */ y({
|
|
|
58
58
|
}), mn = { class: "text-body-2" }, Lt = /* @__PURE__ */ y({
|
|
59
59
|
__name: "VoAuthShopify",
|
|
60
60
|
setup(p) {
|
|
61
|
-
const t = F(),
|
|
62
|
-
return (
|
|
61
|
+
const t = F(), a = b(() => t.user && t.findIdentity("shopify")), o = b(() => t.user ? a.value ? "Connected to Shopify" : "Connect Shopify" : "Login with Shopify");
|
|
62
|
+
return (i, u) => (c(), m(le, {
|
|
63
63
|
"base-color": "#5b8a3c",
|
|
64
64
|
"prepend-icon": `svg:${e(Wt)}`,
|
|
65
65
|
rounded: "pill",
|
|
@@ -68,14 +68,14 @@ const pn = /* @__PURE__ */ y({
|
|
|
68
68
|
onClick: u[0] || (u[0] = (r) => e(t).login("shopify"))
|
|
69
69
|
}, z({
|
|
70
70
|
title: s(() => [
|
|
71
|
-
|
|
71
|
+
g("span", mn, C(e(o)), 1)
|
|
72
72
|
]),
|
|
73
73
|
_: 2
|
|
74
74
|
}, [
|
|
75
75
|
!e(t).user && e(t).lastLoginProvider() === "shopify" ? {
|
|
76
76
|
name: "subtitle",
|
|
77
77
|
fn: s(() => [
|
|
78
|
-
u[1] || (u[1] =
|
|
78
|
+
u[1] || (u[1] = g("div", { class: "text-caption mt-n1" }, "Last Used", -1))
|
|
79
79
|
]),
|
|
80
80
|
key: "0"
|
|
81
81
|
} : void 0
|
|
@@ -84,8 +84,8 @@ const pn = /* @__PURE__ */ y({
|
|
|
84
84
|
}), fn = { class: "text-body-2" }, wt = /* @__PURE__ */ y({
|
|
85
85
|
__name: "VoAuthDiscord",
|
|
86
86
|
setup(p) {
|
|
87
|
-
const t = F(),
|
|
88
|
-
return (
|
|
87
|
+
const t = F(), a = b(() => t.user && t.findIdentity("discord")), o = b(() => t.user ? a.value ? "Connected to Discord" : "Connect Discord" : "Login with Discord");
|
|
88
|
+
return (i, u) => (c(), m(le, {
|
|
89
89
|
"base-color": "#5865F2",
|
|
90
90
|
"prepend-icon": "$discord",
|
|
91
91
|
rounded: "pill",
|
|
@@ -94,14 +94,14 @@ const pn = /* @__PURE__ */ y({
|
|
|
94
94
|
onClick: u[0] || (u[0] = (r) => e(t).login("discord"))
|
|
95
95
|
}, z({
|
|
96
96
|
title: s(() => [
|
|
97
|
-
|
|
97
|
+
g("span", fn, C(e(o)), 1)
|
|
98
98
|
]),
|
|
99
99
|
_: 2
|
|
100
100
|
}, [
|
|
101
101
|
!e(t).user && e(t).lastLoginProvider() === "discord" ? {
|
|
102
102
|
name: "subtitle",
|
|
103
103
|
fn: s(() => [
|
|
104
|
-
u[1] || (u[1] =
|
|
104
|
+
u[1] || (u[1] = g("div", { class: "text-caption mt-n1" }, "Last Used", -1))
|
|
105
105
|
]),
|
|
106
106
|
key: "0"
|
|
107
107
|
} : void 0
|
|
@@ -110,8 +110,8 @@ const pn = /* @__PURE__ */ y({
|
|
|
110
110
|
}), vn = { class: "text-body-2" }, St = /* @__PURE__ */ y({
|
|
111
111
|
__name: "VoAuthGithub",
|
|
112
112
|
setup(p) {
|
|
113
|
-
const t = F(),
|
|
114
|
-
return (
|
|
113
|
+
const t = F(), a = b(() => t.user && t.findIdentity("github")), o = b(() => t.user ? a.value ? "Connected to GitHub" : "Connect GitHub" : "Login with GitHub");
|
|
114
|
+
return (i, u) => (c(), m(le, {
|
|
115
115
|
"base-color": "#2a2a2a",
|
|
116
116
|
"prepend-icon": "$github",
|
|
117
117
|
rounded: "pill",
|
|
@@ -120,14 +120,14 @@ const pn = /* @__PURE__ */ y({
|
|
|
120
120
|
onClick: u[0] || (u[0] = (r) => e(t).login("github"))
|
|
121
121
|
}, z({
|
|
122
122
|
title: s(() => [
|
|
123
|
-
|
|
123
|
+
g("span", vn, C(e(o)), 1)
|
|
124
124
|
]),
|
|
125
125
|
_: 2
|
|
126
126
|
}, [
|
|
127
127
|
!e(t).user && e(t).lastLoginProvider() === "github" ? {
|
|
128
128
|
name: "subtitle",
|
|
129
129
|
fn: s(() => [
|
|
130
|
-
u[1] || (u[1] =
|
|
130
|
+
u[1] || (u[1] = g("div", { class: "text-caption mt-n1" }, "Last Used", -1))
|
|
131
131
|
]),
|
|
132
132
|
key: "0"
|
|
133
133
|
} : void 0
|
|
@@ -137,26 +137,26 @@ const pn = /* @__PURE__ */ y({
|
|
|
137
137
|
__name: "VoAuthCard",
|
|
138
138
|
setup(p) {
|
|
139
139
|
const t = F();
|
|
140
|
-
return (
|
|
141
|
-
const
|
|
140
|
+
return (a, o) => {
|
|
141
|
+
const i = St, u = wt, r = Lt;
|
|
142
142
|
return c(), m(P, {
|
|
143
143
|
class: "pt-6 pb-8 px-4 px-sm-8 mx-auto",
|
|
144
144
|
"max-width": "480",
|
|
145
145
|
rounded: "lg"
|
|
146
146
|
}, {
|
|
147
147
|
default: s(() => [
|
|
148
|
-
|
|
148
|
+
g("div", gn, [
|
|
149
149
|
n(te, {
|
|
150
150
|
class: "mx-auto",
|
|
151
151
|
image: "https://vuetifyjs.b-cdn.net/docs/images/avatars/one.png",
|
|
152
152
|
size: "64"
|
|
153
153
|
})
|
|
154
154
|
]),
|
|
155
|
-
|
|
155
|
+
g("div", _n, [
|
|
156
156
|
n(Ro, { class: "text-h5 mb-1 text-md-h4" }, {
|
|
157
157
|
default: s(() => [
|
|
158
|
-
|
|
159
|
-
o[0] || (o[0] =
|
|
158
|
+
g("div", yn, C(e(t).lastLoginProvider() ? "Welcome back to" : "Login to"), 1),
|
|
159
|
+
o[0] || (o[0] = g("span", { class: "text-h3 font-weight-bold" }, "Vuetify One", -1))
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
162
|
}),
|
|
@@ -173,7 +173,7 @@ const pn = /* @__PURE__ */ y({
|
|
|
173
173
|
width: "100%"
|
|
174
174
|
}, {
|
|
175
175
|
default: s(() => [
|
|
176
|
-
n(
|
|
176
|
+
n(i, { class: "mb-3" }),
|
|
177
177
|
n(u, { class: "mb-3" }),
|
|
178
178
|
n(r)
|
|
179
179
|
]),
|
|
@@ -188,15 +188,15 @@ const pn = /* @__PURE__ */ y({
|
|
|
188
188
|
__name: "VoAuthDialog",
|
|
189
189
|
setup(p) {
|
|
190
190
|
const t = F();
|
|
191
|
-
return (
|
|
192
|
-
const
|
|
191
|
+
return (a, o) => {
|
|
192
|
+
const i = Mt;
|
|
193
193
|
return c(), m(Ce, {
|
|
194
194
|
modelValue: e(t).dialog,
|
|
195
195
|
"onUpdate:modelValue": o[0] || (o[0] = (u) => e(t).dialog = u),
|
|
196
196
|
"max-width": "480"
|
|
197
197
|
}, {
|
|
198
198
|
default: s(() => [
|
|
199
|
-
n(
|
|
199
|
+
n(i)
|
|
200
200
|
]),
|
|
201
201
|
_: 1
|
|
202
202
|
}, 8, ["modelValue"]);
|
|
@@ -209,7 +209,7 @@ const pn = /* @__PURE__ */ y({
|
|
|
209
209
|
},
|
|
210
210
|
setup(p) {
|
|
211
211
|
const t = p;
|
|
212
|
-
return (
|
|
212
|
+
return (a, o) => (c(), m(A, {
|
|
213
213
|
class: "text-none font-weight-regular",
|
|
214
214
|
color: "primary",
|
|
215
215
|
size: "small",
|
|
@@ -220,27 +220,27 @@ const pn = /* @__PURE__ */ y({
|
|
|
220
220
|
variant: "flat"
|
|
221
221
|
}, z({
|
|
222
222
|
loader: s(() => [
|
|
223
|
-
|
|
223
|
+
a.$slots.loader ? h("", !0) : (c(), m(Wo, {
|
|
224
224
|
key: 0,
|
|
225
225
|
indeterminate: "disable-shrink",
|
|
226
226
|
size: "16",
|
|
227
227
|
width: "2"
|
|
228
228
|
})),
|
|
229
|
-
w(
|
|
229
|
+
w(a.$slots, "loader")
|
|
230
230
|
]),
|
|
231
231
|
_: 2
|
|
232
232
|
}, [
|
|
233
|
-
|
|
233
|
+
a.$slots.prepend ? {
|
|
234
234
|
name: "prepend",
|
|
235
235
|
fn: s(() => [
|
|
236
|
-
w(
|
|
236
|
+
w(a.$slots, "prepend")
|
|
237
237
|
]),
|
|
238
238
|
key: "0"
|
|
239
239
|
} : void 0,
|
|
240
|
-
|
|
240
|
+
a.$slots.default ? {
|
|
241
241
|
name: "default",
|
|
242
242
|
fn: s(() => [
|
|
243
|
-
w(
|
|
243
|
+
w(a.$slots, "default")
|
|
244
244
|
]),
|
|
245
245
|
key: "1"
|
|
246
246
|
} : void 0
|
|
@@ -249,11 +249,11 @@ const pn = /* @__PURE__ */ y({
|
|
|
249
249
|
}), hn = { class: "pa-4 d-flex flex-column ga-4" }, Dt = /* @__PURE__ */ y({
|
|
250
250
|
__name: "VoAuthListItem",
|
|
251
251
|
setup(p) {
|
|
252
|
-
const t = F(),
|
|
252
|
+
const t = F(), a = T(), o = M(!t.user && !t.isLoading);
|
|
253
253
|
H(() => t.user, (u) => {
|
|
254
254
|
o.value = !u;
|
|
255
255
|
});
|
|
256
|
-
function
|
|
256
|
+
function i() {
|
|
257
257
|
t.user && (o.value = !o.value);
|
|
258
258
|
}
|
|
259
259
|
return (u, r) => {
|
|
@@ -270,20 +270,20 @@ const pn = /* @__PURE__ */ y({
|
|
|
270
270
|
class: "mb-0",
|
|
271
271
|
link: !!e(t).user,
|
|
272
272
|
nav: "",
|
|
273
|
-
"prepend-icon": `svg:${e(t).user && e(
|
|
273
|
+
"prepend-icon": `svg:${e(t).user && e(a).one.sync ? e(Gt) : e(Kt)}`,
|
|
274
274
|
rounded: "b-0",
|
|
275
275
|
slim: "",
|
|
276
|
-
title: e(t).user && e(
|
|
277
|
-
onClick:
|
|
276
|
+
title: e(t).user && e(a).one.sync ? "Sync is on" : "Sync is paused",
|
|
277
|
+
onClick: i
|
|
278
278
|
}, {
|
|
279
279
|
append: s(() => [
|
|
280
280
|
n(xe, null, {
|
|
281
281
|
default: s(() => [
|
|
282
|
-
e(t).user && (e(o) || !e(
|
|
282
|
+
e(t).user && (e(o) || !e(a).one.sync) ? (c(), m(Ge, {
|
|
283
283
|
key: 0,
|
|
284
|
-
modelValue: e(
|
|
285
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
286
|
-
color: e(
|
|
284
|
+
modelValue: e(a).one.sync,
|
|
285
|
+
"onUpdate:modelValue": r[0] || (r[0] = (v) => e(a).one.sync = v),
|
|
286
|
+
color: e(a).one.sync ? "success" : void 0,
|
|
287
287
|
density: "compact",
|
|
288
288
|
"hide-details": "",
|
|
289
289
|
inset: "",
|
|
@@ -292,11 +292,11 @@ const pn = /* @__PURE__ */ y({
|
|
|
292
292
|
}, {
|
|
293
293
|
thumb: s(() => [
|
|
294
294
|
n(te, {
|
|
295
|
-
color: e(
|
|
295
|
+
color: e(a).one.sync ? "success" : void 0
|
|
296
296
|
}, null, 8, ["color"])
|
|
297
297
|
]),
|
|
298
298
|
_: 1
|
|
299
|
-
}, 8, ["modelValue", "color"])) :
|
|
299
|
+
}, 8, ["modelValue", "color"])) : h("", !0)
|
|
300
300
|
]),
|
|
301
301
|
_: 1
|
|
302
302
|
})
|
|
@@ -311,20 +311,20 @@ const pn = /* @__PURE__ */ y({
|
|
|
311
311
|
color: "transparent"
|
|
312
312
|
}, {
|
|
313
313
|
default: s(() => [
|
|
314
|
-
|
|
314
|
+
g("div", hn, [
|
|
315
315
|
n(l, {
|
|
316
|
-
onClick: r[2] || (r[2] = (
|
|
316
|
+
onClick: r[2] || (r[2] = (v) => o.value = !1)
|
|
317
317
|
}),
|
|
318
318
|
n(d, {
|
|
319
|
-
onClick: r[3] || (r[3] = (
|
|
319
|
+
onClick: r[3] || (r[3] = (v) => o.value = !1)
|
|
320
320
|
}),
|
|
321
321
|
n(f, {
|
|
322
|
-
onClick: r[4] || (r[4] = (
|
|
322
|
+
onClick: r[4] || (r[4] = (v) => o.value = !1)
|
|
323
323
|
})
|
|
324
324
|
])
|
|
325
325
|
]),
|
|
326
326
|
_: 1
|
|
327
|
-
})) :
|
|
327
|
+
})) : h("", !0)
|
|
328
328
|
]),
|
|
329
329
|
_: 1
|
|
330
330
|
})
|
|
@@ -339,7 +339,7 @@ const pn = /* @__PURE__ */ y({
|
|
|
339
339
|
}), q = /* @__PURE__ */ y({
|
|
340
340
|
__name: "VoListItem",
|
|
341
341
|
setup(p) {
|
|
342
|
-
return (t,
|
|
342
|
+
return (t, a) => (c(), m(le, { slim: "" }, z({
|
|
343
343
|
default: s(() => [
|
|
344
344
|
w(t.$slots, "default")
|
|
345
345
|
]),
|
|
@@ -371,17 +371,17 @@ const pn = /* @__PURE__ */ y({
|
|
|
371
371
|
}), bn = /* @__PURE__ */ y({
|
|
372
372
|
__name: "VoAuthLogoutNavItem",
|
|
373
373
|
setup(p) {
|
|
374
|
-
const t = F(),
|
|
374
|
+
const t = F(), a = M(!1);
|
|
375
375
|
async function o() {
|
|
376
|
-
|
|
376
|
+
a.value = !0, await t.logout(), a.value = !1;
|
|
377
377
|
}
|
|
378
|
-
return (
|
|
378
|
+
return (i, u) => {
|
|
379
379
|
const r = q;
|
|
380
380
|
return c(), m(r, {
|
|
381
381
|
class: "mb-0",
|
|
382
|
-
disabled: e(
|
|
382
|
+
disabled: e(a),
|
|
383
383
|
link: "",
|
|
384
|
-
loading: e(
|
|
384
|
+
loading: e(a),
|
|
385
385
|
"prepend-icon": `svg:${e(Yt)}`,
|
|
386
386
|
rounded: "lg",
|
|
387
387
|
title: "Logout",
|
|
@@ -400,27 +400,27 @@ const pn = /* @__PURE__ */ y({
|
|
|
400
400
|
}),
|
|
401
401
|
emits: ["update:modelValue"],
|
|
402
402
|
setup(p) {
|
|
403
|
-
const t = W(p, "modelValue"),
|
|
404
|
-
return (
|
|
403
|
+
const t = W(p, "modelValue"), a = ae(), o = M(!1);
|
|
404
|
+
return (i, u) => (c(), m(Ce, {
|
|
405
405
|
modelValue: t.value,
|
|
406
406
|
"onUpdate:modelValue": u[2] || (u[2] = (r) => t.value = r),
|
|
407
407
|
activator: "parent",
|
|
408
|
-
fullscreen: e(o) || e(
|
|
408
|
+
fullscreen: e(o) || e(a).xs.value,
|
|
409
409
|
height: "100%",
|
|
410
|
-
"max-height": e(o) || e(
|
|
411
|
-
"max-width": e(o) || e(
|
|
410
|
+
"max-height": e(o) || e(a).xs.value ? "100%" : 800,
|
|
411
|
+
"max-width": e(o) || e(a).xs.value ? "100%" : 800
|
|
412
412
|
}, {
|
|
413
413
|
default: s(({ isActive: r }) => [
|
|
414
414
|
n(P, {
|
|
415
415
|
class: "overflow-hidden",
|
|
416
416
|
height: "inherit",
|
|
417
|
-
"prepend-icon":
|
|
418
|
-
rounded: e(o) || e(
|
|
419
|
-
title:
|
|
417
|
+
"prepend-icon": i.prependIcon,
|
|
418
|
+
rounded: e(o) || e(a).xs.value ? 0 : "lg",
|
|
419
|
+
title: i.title
|
|
420
420
|
}, z({
|
|
421
421
|
append: s(() => [
|
|
422
|
-
w(
|
|
423
|
-
e(
|
|
422
|
+
w(i.$slots, "append"),
|
|
423
|
+
e(a).xs.value ? h("", !0) : (c(), m(A, {
|
|
424
424
|
key: 0,
|
|
425
425
|
class: "me-2",
|
|
426
426
|
density: "comfortable",
|
|
@@ -439,21 +439,21 @@ const pn = /* @__PURE__ */ y({
|
|
|
439
439
|
]),
|
|
440
440
|
default: s(() => [
|
|
441
441
|
n(Z),
|
|
442
|
-
w(
|
|
442
|
+
w(i.$slots, "default")
|
|
443
443
|
]),
|
|
444
444
|
_: 2
|
|
445
445
|
}, [
|
|
446
|
-
|
|
446
|
+
i.$slots.prepend ? {
|
|
447
447
|
name: "prepend",
|
|
448
448
|
fn: s(() => [
|
|
449
|
-
w(
|
|
449
|
+
w(i.$slots, "prepend")
|
|
450
450
|
]),
|
|
451
451
|
key: "0"
|
|
452
452
|
} : void 0,
|
|
453
|
-
|
|
453
|
+
i.$slots.actions ? {
|
|
454
454
|
name: "actions",
|
|
455
455
|
fn: s(() => [
|
|
456
|
-
w(
|
|
456
|
+
w(i.$slots, "actions", { isActive: r })
|
|
457
457
|
]),
|
|
458
458
|
key: "1"
|
|
459
459
|
} : void 0
|
|
@@ -468,7 +468,7 @@ const pn = /* @__PURE__ */ y({
|
|
|
468
468
|
disabled: { type: Boolean }
|
|
469
469
|
},
|
|
470
470
|
setup(p) {
|
|
471
|
-
return (t,
|
|
471
|
+
return (t, a) => (c(), m(Ge, {
|
|
472
472
|
color: "primary",
|
|
473
473
|
density: "compact",
|
|
474
474
|
disabled: t.disabled,
|
|
@@ -501,23 +501,23 @@ const pn = /* @__PURE__ */ y({
|
|
|
501
501
|
text: {}
|
|
502
502
|
},
|
|
503
503
|
setup(p) {
|
|
504
|
-
return (t,
|
|
504
|
+
return (t, a) => (c(), k(D, null, [
|
|
505
505
|
t.title ? (c(), m(Ne, {
|
|
506
506
|
key: 0,
|
|
507
507
|
class: "font-weight-black"
|
|
508
508
|
}, {
|
|
509
509
|
default: s(() => [
|
|
510
|
-
S(
|
|
510
|
+
S(C(t.title), 1)
|
|
511
511
|
]),
|
|
512
512
|
_: 1
|
|
513
|
-
})) :
|
|
514
|
-
t.text ? (c(),
|
|
513
|
+
})) : h("", !0),
|
|
514
|
+
t.text ? (c(), k("div", kn, C(t.text), 1)) : h("", !0)
|
|
515
515
|
], 64));
|
|
516
516
|
}
|
|
517
517
|
}), Vn = { key: 0 }, Cn = /* @__PURE__ */ y({
|
|
518
518
|
__name: "VoSettingsPageSuitOption",
|
|
519
519
|
setup(p) {
|
|
520
|
-
const t = T(),
|
|
520
|
+
const t = T(), a = [
|
|
521
521
|
{
|
|
522
522
|
title: "Choose a page suit",
|
|
523
523
|
value: "",
|
|
@@ -545,26 +545,26 @@ const pn = /* @__PURE__ */ y({
|
|
|
545
545
|
value: "odyssey"
|
|
546
546
|
}
|
|
547
547
|
];
|
|
548
|
-
return (o,
|
|
548
|
+
return (o, i) => {
|
|
549
549
|
const u = At, r = ie;
|
|
550
|
-
return c(),
|
|
550
|
+
return c(), k(D, null, [
|
|
551
551
|
n(u, {
|
|
552
552
|
modelValue: e(t).one.suits.enabled,
|
|
553
|
-
"onUpdate:modelValue":
|
|
553
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => e(t).one.suits.enabled = l),
|
|
554
554
|
class: "mb-2",
|
|
555
555
|
label: "Enable Page suits",
|
|
556
556
|
messages: "Customize layout elements with a unique background, styled after one of our themed releases."
|
|
557
557
|
}, null, 8, ["modelValue"]),
|
|
558
558
|
n(Le, null, {
|
|
559
559
|
default: s(() => [
|
|
560
|
-
e(t).one.suits.enabled ? (c(),
|
|
560
|
+
e(t).one.suits.enabled ? (c(), k("div", Vn, [
|
|
561
561
|
n(Yo, {
|
|
562
562
|
modelValue: e(t).one.suits.suit,
|
|
563
|
-
"onUpdate:modelValue":
|
|
563
|
+
"onUpdate:modelValue": i[1] || (i[1] = (l) => e(t).one.suits.suit = l),
|
|
564
564
|
clearable: "",
|
|
565
565
|
density: "compact",
|
|
566
566
|
"item-props": "",
|
|
567
|
-
items:
|
|
567
|
+
items: a,
|
|
568
568
|
placeholder: "Choose a page suit",
|
|
569
569
|
"single-line": "",
|
|
570
570
|
style: { "max-width": "300px" },
|
|
@@ -576,14 +576,14 @@ const pn = /* @__PURE__ */ y({
|
|
|
576
576
|
size: "x-small",
|
|
577
577
|
start: ""
|
|
578
578
|
}, null, 8, ["icon"]),
|
|
579
|
-
S(" " +
|
|
579
|
+
S(" " + C(l.title), 1)
|
|
580
580
|
]),
|
|
581
581
|
_: 1
|
|
582
582
|
}, 8, ["modelValue"]),
|
|
583
583
|
n(r, { text: "Select your suit elements to display the background image:" }),
|
|
584
584
|
n(Ko, {
|
|
585
585
|
modelValue: e(t).one.suits.elements,
|
|
586
|
-
"onUpdate:modelValue":
|
|
586
|
+
"onUpdate:modelValue": i[2] || (i[2] = (l) => e(t).one.suits.elements = l),
|
|
587
587
|
color: "primary",
|
|
588
588
|
filter: "",
|
|
589
589
|
multiple: ""
|
|
@@ -640,7 +640,7 @@ const pn = /* @__PURE__ */ y({
|
|
|
640
640
|
]),
|
|
641
641
|
_: 1
|
|
642
642
|
}, 8, ["modelValue"])
|
|
643
|
-
])) :
|
|
643
|
+
])) : h("", !0)
|
|
644
644
|
]),
|
|
645
645
|
_: 1
|
|
646
646
|
})
|
|
@@ -842,7 +842,7 @@ function $n() {
|
|
|
842
842
|
};
|
|
843
843
|
}
|
|
844
844
|
const Pe = K("settings", () => {
|
|
845
|
-
const p = "https://cdn.vuetifyjs.com/docs/images/one/", t = O(),
|
|
845
|
+
const p = "https://cdn.vuetifyjs.com/docs/images/one/", t = O(), a = T(), o = Te(), i = $n(), u = {
|
|
846
846
|
blackguard: {
|
|
847
847
|
"app-bar": p + "suits/blackguard/blackguard-app-bar.png",
|
|
848
848
|
drawer: p + "suits/blackguard/blackguard-app-drawer.png",
|
|
@@ -863,21 +863,21 @@ const Pe = K("settings", () => {
|
|
|
863
863
|
drawer: p + "suits/odyssey/odyssey-app-drawer.png",
|
|
864
864
|
footer: p + "suits/odyssey/odyssey-app-footer.png"
|
|
865
865
|
}
|
|
866
|
-
}, r =
|
|
867
|
-
if (!
|
|
866
|
+
}, r = b(() => {
|
|
867
|
+
if (!a.one.suits.suit || !a.one.suits.enabled || !t.isSubscriber)
|
|
868
868
|
return {};
|
|
869
|
-
const l = u[
|
|
870
|
-
for (const f of
|
|
871
|
-
const
|
|
872
|
-
d[
|
|
869
|
+
const l = u[a.one.suits.suit.toLowerCase()], d = {};
|
|
870
|
+
for (const f of a.one.suits.elements) {
|
|
871
|
+
const v = f;
|
|
872
|
+
d[v] = l[v];
|
|
873
873
|
}
|
|
874
874
|
return d;
|
|
875
875
|
});
|
|
876
876
|
return o.themes.value = {
|
|
877
877
|
...o.themes.value,
|
|
878
|
-
...
|
|
879
|
-
}, H(() =>
|
|
880
|
-
l === "system" ? o.change(window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light") : (o.change(l),
|
|
878
|
+
...i
|
|
879
|
+
}, H(() => a.one.theme, (l) => {
|
|
880
|
+
l === "system" ? o.change(window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light") : (o.change(l), a.one.suits.suit = u[l] ? l : ""), a.one.theme = l;
|
|
881
881
|
}, { immediate: !0 }), {
|
|
882
882
|
suit: r,
|
|
883
883
|
CDN_URL: p
|
|
@@ -890,7 +890,7 @@ const Pe = K("settings", () => {
|
|
|
890
890
|
},
|
|
891
891
|
emits: ["update:modelValue"],
|
|
892
892
|
setup(p) {
|
|
893
|
-
const t = W(p, "modelValue"),
|
|
893
|
+
const t = W(p, "modelValue"), a = O(), o = Pe(), i = T(), u = b(() => [
|
|
894
894
|
{
|
|
895
895
|
title: "Light",
|
|
896
896
|
subtitle: "A standard light theme.",
|
|
@@ -918,16 +918,16 @@ const Pe = K("settings", () => {
|
|
|
918
918
|
image: o.CDN_URL + "themes/high-contrast.png",
|
|
919
919
|
prependIcon: `svg:${ao}`,
|
|
920
920
|
value: "highContrast",
|
|
921
|
-
disabled: !
|
|
921
|
+
disabled: !a.isSubscriber
|
|
922
922
|
}
|
|
923
|
-
]), r =
|
|
923
|
+
]), r = b(() => [
|
|
924
924
|
{
|
|
925
925
|
title: "Blackguard",
|
|
926
926
|
subtitle: "A theme for v3.4 Blackguard.",
|
|
927
927
|
image: o.CDN_URL + "themes/blackguard.png",
|
|
928
928
|
prependIcon: `svg:${pt}`,
|
|
929
929
|
value: "blackguard",
|
|
930
|
-
disabled: !
|
|
930
|
+
disabled: !a.isSubscriber
|
|
931
931
|
},
|
|
932
932
|
{
|
|
933
933
|
title: "Polaris",
|
|
@@ -935,7 +935,7 @@ const Pe = K("settings", () => {
|
|
|
935
935
|
image: o.CDN_URL + "themes/polaris.png",
|
|
936
936
|
prependIcon: `svg:${mt}`,
|
|
937
937
|
value: "polaris",
|
|
938
|
-
disabled: !
|
|
938
|
+
disabled: !a.isSubscriber
|
|
939
939
|
},
|
|
940
940
|
{
|
|
941
941
|
title: "Nebula",
|
|
@@ -943,7 +943,7 @@ const Pe = K("settings", () => {
|
|
|
943
943
|
image: o.CDN_URL + "themes/nebula.png",
|
|
944
944
|
prependIcon: `svg:${ft}`,
|
|
945
945
|
value: "nebula",
|
|
946
|
-
disabled: !
|
|
946
|
+
disabled: !a.isSubscriber
|
|
947
947
|
},
|
|
948
948
|
{
|
|
949
949
|
title: "Odyssey",
|
|
@@ -951,28 +951,28 @@ const Pe = K("settings", () => {
|
|
|
951
951
|
image: o.CDN_URL + "themes/odyssey.png",
|
|
952
952
|
prependIcon: `svg:${vt}`,
|
|
953
953
|
value: "odyssey",
|
|
954
|
-
disabled: !
|
|
954
|
+
disabled: !a.isSubscriber
|
|
955
955
|
}
|
|
956
|
-
]), l =
|
|
956
|
+
]), l = b(() => [
|
|
957
957
|
{ title: "Standard", items: u.value },
|
|
958
958
|
{ title: "Releases", items: r.value }
|
|
959
|
-
]), d =
|
|
960
|
-
get: () => !
|
|
959
|
+
]), d = b({
|
|
960
|
+
get: () => !i.one.ads.enabled,
|
|
961
961
|
set: (_) => {
|
|
962
|
-
|
|
962
|
+
i.one.ads.enabled = !_;
|
|
963
963
|
}
|
|
964
964
|
}), f = ke();
|
|
965
965
|
H(f, async () => {
|
|
966
|
-
f.value.one === "settings" && (
|
|
966
|
+
f.value.one === "settings" && (a.isOpen = !0, await be(), t.value = !0);
|
|
967
967
|
}, { immediate: !0 });
|
|
968
|
-
function
|
|
969
|
-
|
|
968
|
+
function v(_, V) {
|
|
969
|
+
V.disabled || (i.one.theme = V.value, _?.());
|
|
970
970
|
}
|
|
971
|
-
return (_,
|
|
972
|
-
const
|
|
971
|
+
return (_, V) => {
|
|
972
|
+
const $ = ie, L = Cn, U = At, Y = de;
|
|
973
973
|
return c(), m(Y, {
|
|
974
974
|
modelValue: t.value,
|
|
975
|
-
"onUpdate:modelValue":
|
|
975
|
+
"onUpdate:modelValue": V[6] || (V[6] = (x) => t.value = x),
|
|
976
976
|
"prepend-icon": `svg:${e(io)}`,
|
|
977
977
|
title: "Settings"
|
|
978
978
|
}, {
|
|
@@ -983,19 +983,19 @@ const Pe = K("settings", () => {
|
|
|
983
983
|
default: s(() => [
|
|
984
984
|
n(X, { class: "px-7" }, {
|
|
985
985
|
default: s(() => [
|
|
986
|
-
n(
|
|
986
|
+
n($, {
|
|
987
987
|
text: "Customize your documentation experience with light and dark themes, as well as a combination of both named.",
|
|
988
988
|
title: "Theme"
|
|
989
989
|
}),
|
|
990
990
|
n(bt, {
|
|
991
|
-
modelValue: e(
|
|
992
|
-
"onUpdate:modelValue":
|
|
991
|
+
modelValue: e(i).one.theme,
|
|
992
|
+
"onUpdate:modelValue": V[0] || (V[0] = (x) => e(i).one.theme = x),
|
|
993
993
|
mandatory: ""
|
|
994
994
|
}, {
|
|
995
995
|
default: s(() => [
|
|
996
996
|
n(fe, { dense: "" }, {
|
|
997
997
|
default: s(() => [
|
|
998
|
-
(c(!0),
|
|
998
|
+
(c(!0), k(D, null, G(l.value, (x, pe) => (c(), m(re, {
|
|
999
999
|
key: pe,
|
|
1000
1000
|
class: "d-flex flex-column ga-3",
|
|
1001
1001
|
cols: "12",
|
|
@@ -1004,11 +1004,11 @@ const Pe = K("settings", () => {
|
|
|
1004
1004
|
default: s(() => [
|
|
1005
1005
|
n(Ho, { class: "mb-n4" }, {
|
|
1006
1006
|
default: s(() => [
|
|
1007
|
-
S(
|
|
1007
|
+
S(C(x.title), 1)
|
|
1008
1008
|
]),
|
|
1009
1009
|
_: 2
|
|
1010
1010
|
}, 1024),
|
|
1011
|
-
(c(!0),
|
|
1011
|
+
(c(!0), k(D, null, G(x.items, (B) => (c(), m(Ze, {
|
|
1012
1012
|
key: B.value,
|
|
1013
1013
|
value: B.value
|
|
1014
1014
|
}, {
|
|
@@ -1026,7 +1026,7 @@ const Pe = K("settings", () => {
|
|
|
1026
1026
|
title: B.title,
|
|
1027
1027
|
variant: "tonal"
|
|
1028
1028
|
}, { ref_for: !0 }, Et, {
|
|
1029
|
-
onClick: (Ta) =>
|
|
1029
|
+
onClick: (Ta) => v(Bt, B)
|
|
1030
1030
|
}), {
|
|
1031
1031
|
image: s(() => [
|
|
1032
1032
|
n(se, {
|
|
@@ -1052,35 +1052,35 @@ const Pe = K("settings", () => {
|
|
|
1052
1052
|
]),
|
|
1053
1053
|
_: 1
|
|
1054
1054
|
}, 8, ["modelValue"]),
|
|
1055
|
-
e(
|
|
1055
|
+
e(a).isSubscriber ? (c(), k(D, { key: 0 }, [
|
|
1056
1056
|
n(Z, { class: "mt-6 mb-4" }),
|
|
1057
1057
|
n(L)
|
|
1058
|
-
], 64)) :
|
|
1058
|
+
], 64)) : h("", !0)
|
|
1059
1059
|
]),
|
|
1060
1060
|
_: 1
|
|
1061
1061
|
}),
|
|
1062
1062
|
n(Z),
|
|
1063
1063
|
n(X, { class: "px-7" }, {
|
|
1064
1064
|
default: s(() => [
|
|
1065
|
-
n(
|
|
1065
|
+
n($, {
|
|
1066
1066
|
text: "These options change your browsing experience within Vuetify properties",
|
|
1067
1067
|
title: "Experience"
|
|
1068
1068
|
}),
|
|
1069
|
-
e(
|
|
1069
|
+
e(a).isSubscriber ? (c(), m(U, {
|
|
1070
1070
|
key: 0,
|
|
1071
1071
|
modelValue: d.value,
|
|
1072
|
-
"onUpdate:modelValue":
|
|
1072
|
+
"onUpdate:modelValue": V[1] || (V[1] = (x) => d.value = x),
|
|
1073
1073
|
class: "mb-2",
|
|
1074
1074
|
label: "Disable Ads",
|
|
1075
1075
|
messages: "Disable traditional advertisements on all documentation pages."
|
|
1076
|
-
}, null, 8, ["modelValue"])) :
|
|
1076
|
+
}, null, 8, ["modelValue"])) : h("", !0),
|
|
1077
1077
|
n(Le, null, {
|
|
1078
1078
|
default: s(() => [
|
|
1079
|
-
N(
|
|
1080
|
-
|
|
1079
|
+
N(g("div", xn, [
|
|
1080
|
+
g("div", Ln, [
|
|
1081
1081
|
n(U, {
|
|
1082
|
-
modelValue: e(
|
|
1083
|
-
"onUpdate:modelValue":
|
|
1082
|
+
modelValue: e(i).one.ads.house,
|
|
1083
|
+
"onUpdate:modelValue": V[2] || (V[2] = (x) => e(i).one.ads.house = x),
|
|
1084
1084
|
label: "Show House Ads",
|
|
1085
1085
|
messages: "These advertisements are for Vuetify products and services only."
|
|
1086
1086
|
}, null, 8, ["modelValue"])
|
|
@@ -1092,8 +1092,8 @@ const Pe = K("settings", () => {
|
|
|
1092
1092
|
_: 1
|
|
1093
1093
|
}),
|
|
1094
1094
|
n(U, {
|
|
1095
|
-
modelValue: e(
|
|
1096
|
-
"onUpdate:modelValue":
|
|
1095
|
+
modelValue: e(i).one.quicklinks,
|
|
1096
|
+
"onUpdate:modelValue": V[3] || (V[3] = (x) => e(i).one.quicklinks = x),
|
|
1097
1097
|
label: "Show Pinned Ecosystem Links",
|
|
1098
1098
|
messages: "Display your pinned ecosystem links below your avatar in the user menu."
|
|
1099
1099
|
}, null, 8, ["modelValue"])
|
|
@@ -1101,31 +1101,31 @@ const Pe = K("settings", () => {
|
|
|
1101
1101
|
_: 1
|
|
1102
1102
|
}),
|
|
1103
1103
|
n(Z),
|
|
1104
|
-
e(
|
|
1104
|
+
e(a).isSubscriber ? (c(), m(X, {
|
|
1105
1105
|
key: 0,
|
|
1106
1106
|
class: "px-7"
|
|
1107
1107
|
}, {
|
|
1108
1108
|
default: s(() => [
|
|
1109
|
-
n(
|
|
1109
|
+
n($, {
|
|
1110
1110
|
text: "Vuetify will communicate with you through banners and notifications. You can disable these features here or reset your local notification cache.",
|
|
1111
1111
|
title: "Communication"
|
|
1112
1112
|
}),
|
|
1113
1113
|
n(U, {
|
|
1114
|
-
modelValue: e(
|
|
1115
|
-
"onUpdate:modelValue":
|
|
1114
|
+
modelValue: e(i).one.notifications.enabled,
|
|
1115
|
+
"onUpdate:modelValue": V[4] || (V[4] = (x) => e(i).one.notifications.enabled = x),
|
|
1116
1116
|
class: "mb-2",
|
|
1117
1117
|
label: "Enable Notifications",
|
|
1118
1118
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
1119
1119
|
}, null, 8, ["modelValue"]),
|
|
1120
1120
|
n(U, {
|
|
1121
|
-
modelValue: e(
|
|
1122
|
-
"onUpdate:modelValue":
|
|
1121
|
+
modelValue: e(i).one.banners.enabled,
|
|
1122
|
+
"onUpdate:modelValue": V[5] || (V[5] = (x) => e(i).one.banners.enabled = x),
|
|
1123
1123
|
label: "Enable Banners",
|
|
1124
1124
|
messages: "Banners are located at the top of the screen and provide a callout for important information."
|
|
1125
1125
|
}, null, 8, ["modelValue"])
|
|
1126
1126
|
]),
|
|
1127
1127
|
_: 1
|
|
1128
|
-
})) :
|
|
1128
|
+
})) : h("", !0)
|
|
1129
1129
|
]),
|
|
1130
1130
|
_: 1
|
|
1131
1131
|
})
|
|
@@ -1141,8 +1141,8 @@ const Pe = K("settings", () => {
|
|
|
1141
1141
|
__name: "VoSettingsListItem",
|
|
1142
1142
|
setup(p) {
|
|
1143
1143
|
const t = M(!1);
|
|
1144
|
-
return (
|
|
1145
|
-
const
|
|
1144
|
+
return (a, o) => {
|
|
1145
|
+
const i = wn, u = q;
|
|
1146
1146
|
return c(), m(u, {
|
|
1147
1147
|
active: e(t),
|
|
1148
1148
|
link: "",
|
|
@@ -1151,7 +1151,7 @@ const Pe = K("settings", () => {
|
|
|
1151
1151
|
title: "Settings"
|
|
1152
1152
|
}, {
|
|
1153
1153
|
default: s(() => [
|
|
1154
|
-
n(
|
|
1154
|
+
n(i, {
|
|
1155
1155
|
modelValue: e(t),
|
|
1156
1156
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => j(t) ? t.value = r : null)
|
|
1157
1157
|
}, null, 8, ["modelValue"])
|
|
@@ -1161,14 +1161,14 @@ const Pe = K("settings", () => {
|
|
|
1161
1161
|
};
|
|
1162
1162
|
}
|
|
1163
1163
|
}), ze = K("api-key", () => {
|
|
1164
|
-
const p = J(), t = E(null),
|
|
1164
|
+
const p = J(), t = E(null), a = M(!1), o = b(() => t.value?.apiKey || ""), i = b(() => {
|
|
1165
1165
|
if (!o.value)
|
|
1166
1166
|
return "";
|
|
1167
1167
|
const l = o.value;
|
|
1168
1168
|
return `${l.slice(0, 6)}...${l.slice(-6)}`;
|
|
1169
1169
|
});
|
|
1170
1170
|
async function u(l = !1) {
|
|
1171
|
-
!
|
|
1171
|
+
!a.value && l && (a.value = !0);
|
|
1172
1172
|
const d = l ? "regenerate" : "generate", f = await p[l ? "post" : "fetch"](`/one/mcp/${d}`);
|
|
1173
1173
|
return t.value = f, f;
|
|
1174
1174
|
}
|
|
@@ -1179,18 +1179,18 @@ const Pe = K("settings", () => {
|
|
|
1179
1179
|
return {
|
|
1180
1180
|
accessToken: Se(t),
|
|
1181
1181
|
key: Se(o),
|
|
1182
|
-
regenerated: Se(
|
|
1183
|
-
trim: Se(
|
|
1182
|
+
regenerated: Se(a),
|
|
1183
|
+
trim: Se(i),
|
|
1184
1184
|
generate: u,
|
|
1185
1185
|
fetch: r
|
|
1186
1186
|
};
|
|
1187
1187
|
});
|
|
1188
1188
|
function Oe(p = 1e3) {
|
|
1189
1189
|
const t = M(!1);
|
|
1190
|
-
async function
|
|
1190
|
+
async function a(o) {
|
|
1191
1191
|
await navigator.clipboard.writeText(o), t.value = !0, setTimeout(() => t.value = !1, p);
|
|
1192
1192
|
}
|
|
1193
|
-
return { copied: t, copy:
|
|
1193
|
+
return { copied: t, copy: a };
|
|
1194
1194
|
}
|
|
1195
1195
|
const Mn = /* @__PURE__ */ y({
|
|
1196
1196
|
__name: "VoMcpCopyDialog",
|
|
@@ -1200,12 +1200,12 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1200
1200
|
},
|
|
1201
1201
|
emits: ["update:modelValue"],
|
|
1202
1202
|
setup(p) {
|
|
1203
|
-
const t = ze(), { copy:
|
|
1203
|
+
const t = ze(), { copy: a, copied: o } = Oe(), i = W(p, "modelValue");
|
|
1204
1204
|
return (u, r) => {
|
|
1205
1205
|
const l = lt("v-icon-btn");
|
|
1206
1206
|
return c(), m(Ce, {
|
|
1207
|
-
modelValue:
|
|
1208
|
-
"onUpdate:modelValue": r[2] || (r[2] = (d) =>
|
|
1207
|
+
modelValue: i.value,
|
|
1208
|
+
"onUpdate:modelValue": r[2] || (r[2] = (d) => i.value = d),
|
|
1209
1209
|
"max-width": "500"
|
|
1210
1210
|
}, {
|
|
1211
1211
|
default: s(({ isActive: d }) => [
|
|
@@ -1224,9 +1224,9 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1224
1224
|
n(Z),
|
|
1225
1225
|
n(X, null, {
|
|
1226
1226
|
default: s(() => [
|
|
1227
|
-
r[4] || (r[4] =
|
|
1227
|
+
r[4] || (r[4] = g("p", { class: "mb-4" }, [
|
|
1228
1228
|
S(" Please save your secret key in a safe place since "),
|
|
1229
|
-
|
|
1229
|
+
g("strong", null, "you won't be able"),
|
|
1230
1230
|
S(" to view it again. Keep it secure, as anyone with your API key can make requests on your behalf. If you do lose it, you'll need to generate a new one. ")
|
|
1231
1231
|
], -1)),
|
|
1232
1232
|
e(t).key ? (c(), m(kt, {
|
|
@@ -1242,7 +1242,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1242
1242
|
"prepend-icon": e(o) ? "mdi-check" : "mdi-content-copy",
|
|
1243
1243
|
size: "small",
|
|
1244
1244
|
variant: "flat",
|
|
1245
|
-
onClick: r[0] || (r[0] = (f) => e(
|
|
1245
|
+
onClick: r[0] || (r[0] = (f) => e(a)(e(t).key))
|
|
1246
1246
|
}, {
|
|
1247
1247
|
prepend: s(() => [
|
|
1248
1248
|
n(xe, { "hide-on-leave": "" }, {
|
|
@@ -1261,7 +1261,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1261
1261
|
}, 8, ["prepend-icon"])
|
|
1262
1262
|
]),
|
|
1263
1263
|
_: 1
|
|
1264
|
-
}, 8, ["model-value"])) :
|
|
1264
|
+
}, 8, ["model-value"])) : h("", !0)
|
|
1265
1265
|
]),
|
|
1266
1266
|
_: 1
|
|
1267
1267
|
}),
|
|
@@ -1274,7 +1274,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1274
1274
|
size: "small",
|
|
1275
1275
|
text: "Done",
|
|
1276
1276
|
variant: "flat",
|
|
1277
|
-
onClick: r[1] || (r[1] = (f) =>
|
|
1277
|
+
onClick: r[1] || (r[1] = (f) => i.value = !1)
|
|
1278
1278
|
})
|
|
1279
1279
|
]),
|
|
1280
1280
|
_: 1
|
|
@@ -1290,14 +1290,14 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1290
1290
|
}), In = { class: "d-flex align-center justify-end" }, Dn = { class: "text-end" }, An = /* @__PURE__ */ y({
|
|
1291
1291
|
__name: "VoMcpTokenTable",
|
|
1292
1292
|
setup(p) {
|
|
1293
|
-
const t = ze(), { copy:
|
|
1293
|
+
const t = ze(), { copy: a, copied: o } = Oe(2e3), i = me();
|
|
1294
1294
|
return (u, r) => (c(), m(Qo, { class: "rounded border mt-4" }, {
|
|
1295
1295
|
default: s(() => [
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
r[2] || (r[2] =
|
|
1299
|
-
r[3] || (r[3] =
|
|
1300
|
-
|
|
1296
|
+
g("thead", null, [
|
|
1297
|
+
g("tr", null, [
|
|
1298
|
+
r[2] || (r[2] = g("th", { class: "ps-6" }, "Secret Key", -1)),
|
|
1299
|
+
r[3] || (r[3] = g("th", null, "Created", -1)),
|
|
1300
|
+
g("th", In, [
|
|
1301
1301
|
r[1] || (r[1] = S(" Last Used ", -1)),
|
|
1302
1302
|
N(n(I, {
|
|
1303
1303
|
end: "",
|
|
@@ -1309,9 +1309,9 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1309
1309
|
])
|
|
1310
1310
|
])
|
|
1311
1311
|
]),
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1312
|
+
g("tbody", null, [
|
|
1313
|
+
g("tr", null, [
|
|
1314
|
+
g("td", null, [
|
|
1315
1315
|
n(ve, null, {
|
|
1316
1316
|
default: s(({ isHovering: l, props: d }) => [
|
|
1317
1317
|
n(A, R(d, {
|
|
@@ -1319,7 +1319,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1319
1319
|
slim: "",
|
|
1320
1320
|
text: e(t).key ? e(t).trim : "",
|
|
1321
1321
|
variant: l || e(o) ? "tonal" : "text",
|
|
1322
|
-
onClick: r[0] || (r[0] = (f) => e(
|
|
1322
|
+
onClick: r[0] || (r[0] = (f) => e(a)(e(t).key))
|
|
1323
1323
|
}), {
|
|
1324
1324
|
append: s(() => [
|
|
1325
1325
|
n(I, {
|
|
@@ -1333,8 +1333,8 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1333
1333
|
_: 1
|
|
1334
1334
|
})
|
|
1335
1335
|
]),
|
|
1336
|
-
|
|
1337
|
-
|
|
1336
|
+
g("td", null, C(e(t).accessToken ? e(i).format(e(t).accessToken.createdAt, "fullDate") : ""), 1),
|
|
1337
|
+
g("td", Dn, C(e(t).accessToken ? e(i).format(e(t).accessToken.updatedAt, "fullDate") : ""), 1)
|
|
1338
1338
|
])
|
|
1339
1339
|
])
|
|
1340
1340
|
]),
|
|
@@ -1344,7 +1344,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1344
1344
|
}), Tn = { class: "my-4" }, Un = { class: "bg-surface-variant rounded pa-2 d-block" }, Pn = /* @__PURE__ */ y({
|
|
1345
1345
|
__name: "VoMcpHowTo",
|
|
1346
1346
|
setup(p) {
|
|
1347
|
-
const t = ze(), { copy:
|
|
1347
|
+
const t = ze(), { copy: a, copied: o } = Oe(), i = b(() => `npx -y @vuetify/mcp config --api-key="${t.key || "YOUR_KEY"}"`), u = b(() => t.key ? `npx -y @vuetify/mcp config --api-key="${t.trim}"` : i.value);
|
|
1348
1348
|
return (r, l) => (c(), m(Jo, {
|
|
1349
1349
|
"bg-color": "surface-variant",
|
|
1350
1350
|
class: "mb-4",
|
|
@@ -1363,24 +1363,24 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1363
1363
|
default: s(() => [
|
|
1364
1364
|
n(tn, { class: "bg-surface-light rounded-b" }, {
|
|
1365
1365
|
default: s(() => [
|
|
1366
|
-
l[2] || (l[2] =
|
|
1367
|
-
l[3] || (l[3] =
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
S(
|
|
1366
|
+
l[2] || (l[2] = g("strong", null, "Quick Setup", -1)),
|
|
1367
|
+
l[3] || (l[3] = g("p", { class: "mb-4 mt-2" }, " Run the following command to configure your favorite IDE or AI agent: ", -1)),
|
|
1368
|
+
g("div", Tn, [
|
|
1369
|
+
g("code", Un, [
|
|
1370
|
+
S(C(e(u)) + " ", 1),
|
|
1371
1371
|
n(I, {
|
|
1372
1372
|
class: "ms-2",
|
|
1373
1373
|
end: "",
|
|
1374
1374
|
icon: e(o) ? "$success" : `svg:${e(Re)}`,
|
|
1375
1375
|
size: "1em",
|
|
1376
|
-
onClick: l[0] || (l[0] = (d) => e(
|
|
1376
|
+
onClick: l[0] || (l[0] = (d) => e(a)(e(i)))
|
|
1377
1377
|
}, null, 8, ["icon"])
|
|
1378
1378
|
])
|
|
1379
1379
|
]),
|
|
1380
|
-
l[4] || (l[4] =
|
|
1381
|
-
l[5] || (l[5] =
|
|
1380
|
+
l[4] || (l[4] = g("p", { class: "mb-2" }, "Follow the on-screen prompts to complete the setup.", -1)),
|
|
1381
|
+
l[5] || (l[5] = g("p", null, [
|
|
1382
1382
|
S(" For hosted server setup, manual configuration, or troubleshooting, see the "),
|
|
1383
|
-
|
|
1383
|
+
g("a", {
|
|
1384
1384
|
class: "text-primary",
|
|
1385
1385
|
href: "https://github.com/vuetifyjs/mcp#authentication",
|
|
1386
1386
|
rel: "noopener",
|
|
@@ -1406,17 +1406,17 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1406
1406
|
},
|
|
1407
1407
|
emits: ["update:modelValue"],
|
|
1408
1408
|
setup(p) {
|
|
1409
|
-
const t = ze(),
|
|
1409
|
+
const t = ze(), a = T(), o = M(!1), i = W(p, "modelValue");
|
|
1410
1410
|
async function u(r = !1) {
|
|
1411
1411
|
await t.generate(r), o.value = !0;
|
|
1412
1412
|
}
|
|
1413
|
-
return H(
|
|
1414
|
-
r && (
|
|
1413
|
+
return H(i, async (r) => {
|
|
1414
|
+
r && (a.ecosystem.mcp.seen = !0, await t.fetch());
|
|
1415
1415
|
}), (r, l) => {
|
|
1416
|
-
const d = ie, f = Pn,
|
|
1417
|
-
return c(), m(
|
|
1418
|
-
modelValue:
|
|
1419
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
|
1416
|
+
const d = ie, f = Pn, v = An, _ = Mn, V = de;
|
|
1417
|
+
return c(), m(V, {
|
|
1418
|
+
modelValue: i.value,
|
|
1419
|
+
"onUpdate:modelValue": l[3] || (l[3] = ($) => i.value = $),
|
|
1420
1420
|
height: "auto",
|
|
1421
1421
|
"prepend-icon": `svg:${e(uo)}`,
|
|
1422
1422
|
title: "API Key"
|
|
@@ -1426,14 +1426,14 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1426
1426
|
default: s(() => [
|
|
1427
1427
|
n(ce, null, {
|
|
1428
1428
|
default: s(() => [
|
|
1429
|
-
|
|
1429
|
+
g("div", zn, [
|
|
1430
1430
|
n(X, null, {
|
|
1431
1431
|
default: s(() => [
|
|
1432
1432
|
n(d, {
|
|
1433
1433
|
text: "As a subscriber of Vuetify One, you have access to create a personal MCP API key.",
|
|
1434
1434
|
title: "MCP Access Token"
|
|
1435
1435
|
}),
|
|
1436
|
-
l[4] || (l[4] =
|
|
1436
|
+
l[4] || (l[4] = g("p", { class: "mb-2" }, " Do not share your API key with others or expose it in the browser or other client-side code. To protect your account's security, Vuetify may disable any API key that has leaked publicly. ", -1)),
|
|
1437
1437
|
n(f),
|
|
1438
1438
|
!e(t).key || !e(t).regenerated ? (c(), m(fe, {
|
|
1439
1439
|
key: 0,
|
|
@@ -1443,34 +1443,34 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1443
1443
|
default: s(() => [
|
|
1444
1444
|
n(re, { cols: "auto" }, {
|
|
1445
1445
|
default: s(() => [
|
|
1446
|
-
e(t).key ? e(t).regenerated ?
|
|
1446
|
+
e(t).key ? e(t).regenerated ? h("", !0) : (c(), m(A, {
|
|
1447
1447
|
key: 1,
|
|
1448
1448
|
color: "success",
|
|
1449
1449
|
"prepend-icon": `svg:${e(po)}`,
|
|
1450
1450
|
text: "Regenerate API Key",
|
|
1451
1451
|
variant: "flat",
|
|
1452
|
-
onClick: l[1] || (l[1] = (
|
|
1452
|
+
onClick: l[1] || (l[1] = ($) => u(!0))
|
|
1453
1453
|
}, null, 8, ["prepend-icon"])) : (c(), m(A, {
|
|
1454
1454
|
key: 0,
|
|
1455
1455
|
color: "success",
|
|
1456
1456
|
"prepend-icon": `svg:${e(co)}`,
|
|
1457
1457
|
text: "Generate API Key",
|
|
1458
1458
|
variant: "flat",
|
|
1459
|
-
onClick: l[0] || (l[0] = (
|
|
1459
|
+
onClick: l[0] || (l[0] = ($) => u(!1))
|
|
1460
1460
|
}, null, 8, ["prepend-icon"]))
|
|
1461
1461
|
]),
|
|
1462
1462
|
_: 1
|
|
1463
1463
|
})
|
|
1464
1464
|
]),
|
|
1465
1465
|
_: 1
|
|
1466
|
-
})) :
|
|
1467
|
-
e(t).key ? (c(),
|
|
1468
|
-
n(
|
|
1466
|
+
})) : h("", !0),
|
|
1467
|
+
e(t).key ? (c(), k(D, { key: 1 }, [
|
|
1468
|
+
n(v),
|
|
1469
1469
|
n(_, {
|
|
1470
1470
|
modelValue: e(o),
|
|
1471
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
1471
|
+
"onUpdate:modelValue": l[2] || (l[2] = ($) => j(o) ? o.value = $ : null)
|
|
1472
1472
|
}, null, 8, ["modelValue"])
|
|
1473
|
-
], 64)) :
|
|
1473
|
+
], 64)) : h("", !0)
|
|
1474
1474
|
]),
|
|
1475
1475
|
_: 1
|
|
1476
1476
|
})
|
|
@@ -1489,11 +1489,11 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1489
1489
|
}), Bn = /* @__PURE__ */ y({
|
|
1490
1490
|
__name: "VoMcpListItem",
|
|
1491
1491
|
setup(p) {
|
|
1492
|
-
const t = T(),
|
|
1493
|
-
return (o,
|
|
1492
|
+
const t = T(), a = M(!1);
|
|
1493
|
+
return (o, i) => {
|
|
1494
1494
|
const u = On, r = q;
|
|
1495
1495
|
return c(), m(r, {
|
|
1496
|
-
active: e(
|
|
1496
|
+
active: e(a),
|
|
1497
1497
|
link: "",
|
|
1498
1498
|
"prepend-icon": `svg:${e(mo)}`,
|
|
1499
1499
|
rounded: "lg",
|
|
@@ -1501,8 +1501,8 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1501
1501
|
}, z({
|
|
1502
1502
|
default: s(() => [
|
|
1503
1503
|
n(u, {
|
|
1504
|
-
modelValue: e(
|
|
1505
|
-
"onUpdate:modelValue":
|
|
1504
|
+
modelValue: e(a),
|
|
1505
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => j(a) ? a.value = l : null)
|
|
1506
1506
|
}, null, 8, ["modelValue"])
|
|
1507
1507
|
]),
|
|
1508
1508
|
_: 2
|
|
@@ -1515,7 +1515,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1515
1515
|
size: "x-small",
|
|
1516
1516
|
variant: "flat"
|
|
1517
1517
|
}, {
|
|
1518
|
-
default: s(() => [...
|
|
1518
|
+
default: s(() => [...i[1] || (i[1] = [
|
|
1519
1519
|
S("NEW", -1)
|
|
1520
1520
|
])]),
|
|
1521
1521
|
_: 1
|
|
@@ -1529,8 +1529,8 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1529
1529
|
}), En = { class: "text-caption" }, Fn = /* @__PURE__ */ y({
|
|
1530
1530
|
__name: "VoSubscriptionInvoices",
|
|
1531
1531
|
setup(p) {
|
|
1532
|
-
const t = me(),
|
|
1533
|
-
return (o,
|
|
1532
|
+
const t = me(), a = O();
|
|
1533
|
+
return (o, i) => {
|
|
1534
1534
|
const u = ie;
|
|
1535
1535
|
return c(), m(fe, null, {
|
|
1536
1536
|
default: s(() => [
|
|
@@ -1548,15 +1548,15 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1548
1548
|
n(Vt, {
|
|
1549
1549
|
"fixed-header": "",
|
|
1550
1550
|
height: "450",
|
|
1551
|
-
items: e(
|
|
1552
|
-
loading: e(
|
|
1551
|
+
items: e(a).invoices,
|
|
1552
|
+
loading: e(a).isLoading,
|
|
1553
1553
|
sticky: ""
|
|
1554
1554
|
}, {
|
|
1555
1555
|
"item.date": s(({ item: r }) => [
|
|
1556
|
-
|
|
1556
|
+
g("div", En, C(e(t).format(new Date(r.date * 1e3), "fullDateWithWeekday")), 1)
|
|
1557
1557
|
]),
|
|
1558
1558
|
"item.amount": s(({ item: r }) => [
|
|
1559
|
-
S(" $" +
|
|
1559
|
+
S(" $" + C(r.amount / 100), 1)
|
|
1560
1560
|
]),
|
|
1561
1561
|
"item.status": s(({ item: r }) => [
|
|
1562
1562
|
n(ee, {
|
|
@@ -1595,10 +1595,10 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1595
1595
|
__name: "VoSubscriptionStatus",
|
|
1596
1596
|
emits: ["change:subscription"],
|
|
1597
1597
|
setup(p, { emit: t }) {
|
|
1598
|
-
const
|
|
1598
|
+
const a = me(), o = O(), i = t, u = b(() => {
|
|
1599
1599
|
if (!o.info) return;
|
|
1600
1600
|
const l = new Date(o.info.currentPeriodEnd * 1e3);
|
|
1601
|
-
return
|
|
1601
|
+
return a.format(l, "keyboardDate");
|
|
1602
1602
|
});
|
|
1603
1603
|
async function r() {
|
|
1604
1604
|
!o.interval || !o.subscriptionType || (o.isLoading = !0, o.subscribe(o.interval, o.subscriptionType));
|
|
@@ -1631,52 +1631,52 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1631
1631
|
text: "Activate",
|
|
1632
1632
|
variant: "outlined",
|
|
1633
1633
|
onClick: r
|
|
1634
|
-
}, null, 8, ["loading"])) :
|
|
1634
|
+
}, null, 8, ["loading"])) : h("", !0),
|
|
1635
1635
|
e(o).hasBilling ? (c(), m(f, {
|
|
1636
1636
|
key: 1,
|
|
1637
1637
|
loading: e(o).isLoading,
|
|
1638
1638
|
"prepend-icon": `svg:${e(fo)}`,
|
|
1639
1639
|
text: "Billing",
|
|
1640
1640
|
onClick: e(o).manage
|
|
1641
|
-
}, null, 8, ["loading", "prepend-icon", "onClick"])) :
|
|
1641
|
+
}, null, 8, ["loading", "prepend-icon", "onClick"])) : h("", !0)
|
|
1642
1642
|
]),
|
|
1643
1643
|
_: 2
|
|
1644
1644
|
}, [
|
|
1645
1645
|
e(o).info ? {
|
|
1646
1646
|
name: "subtitle",
|
|
1647
1647
|
fn: s(() => [
|
|
1648
|
-
|
|
1649
|
-
|
|
1648
|
+
g("div", Nn, [
|
|
1649
|
+
g("strong", {
|
|
1650
1650
|
key: "status",
|
|
1651
1651
|
class: "text-capitalize hidden-sm-and-down",
|
|
1652
|
-
textContent:
|
|
1652
|
+
textContent: C(e(o).info.status)
|
|
1653
1653
|
}, null, 8, Zn),
|
|
1654
|
-
e(o).info.items.length > 0 ? (c(),
|
|
1655
|
-
d[1] || (d[1] =
|
|
1656
|
-
|
|
1657
|
-
S(" $" +
|
|
1658
|
-
|
|
1654
|
+
e(o).info.items.length > 0 ? (c(), k(D, { key: 0 }, [
|
|
1655
|
+
d[1] || (d[1] = g("span", { class: "mx-1 hidden-sm-and-down" }, "—", -1)),
|
|
1656
|
+
g("span", Hn, [
|
|
1657
|
+
S(" $" + C(e(o).info.items[0].plan.amount / 100), 1),
|
|
1658
|
+
g("span", jn, "/" + C(e(o).interval), 1)
|
|
1659
1659
|
]),
|
|
1660
1660
|
n(f, {
|
|
1661
1661
|
size: "x-small",
|
|
1662
1662
|
text: "(Change Subscription)",
|
|
1663
1663
|
variant: "text",
|
|
1664
|
-
onClick: d[0] || (d[0] = (
|
|
1664
|
+
onClick: d[0] || (d[0] = (v) => i("change:subscription"))
|
|
1665
1665
|
})
|
|
1666
|
-
], 64)) :
|
|
1666
|
+
], 64)) : h("", !0)
|
|
1667
1667
|
])
|
|
1668
1668
|
]),
|
|
1669
1669
|
key: "0"
|
|
1670
1670
|
} : {
|
|
1671
1671
|
name: "subtitle",
|
|
1672
1672
|
fn: s(() => [
|
|
1673
|
-
|
|
1673
|
+
g("div", Rn, [
|
|
1674
1674
|
n(he, {
|
|
1675
1675
|
height: "16",
|
|
1676
1676
|
type: "ossein",
|
|
1677
1677
|
width: "40"
|
|
1678
1678
|
}),
|
|
1679
|
-
d[2] || (d[2] =
|
|
1679
|
+
d[2] || (d[2] = g("span", { class: "mx-1" }, "—", -1)),
|
|
1680
1680
|
n(he, {
|
|
1681
1681
|
height: "16",
|
|
1682
1682
|
type: "ossein",
|
|
@@ -1687,15 +1687,15 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1687
1687
|
key: "1"
|
|
1688
1688
|
}
|
|
1689
1689
|
]), 1024),
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
e(o).info?.status === "active" ? (c(),
|
|
1690
|
+
g("div", qn, [
|
|
1691
|
+
g("div", null, [
|
|
1692
|
+
e(o).info?.status === "active" ? (c(), k(D, { key: 0 }, [
|
|
1693
1693
|
d[3] || (d[3] = S(" Your plan renews on ", -1)),
|
|
1694
|
-
|
|
1694
|
+
g("span", Wn, C(e(a).format(e(u), "fullDateWithWeekday")), 1),
|
|
1695
1695
|
d[4] || (d[4] = S(". ", -1))
|
|
1696
|
-
], 64)) : (c(),
|
|
1696
|
+
], 64)) : (c(), k(D, { key: 1 }, [
|
|
1697
1697
|
d[5] || (d[5] = S(" Your plan ends on ", -1)),
|
|
1698
|
-
|
|
1698
|
+
g("span", Gn, C(e(a).format(e(o).info?.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1699
1699
|
d[6] || (d[6] = S(". ", -1))
|
|
1700
1700
|
], 64))
|
|
1701
1701
|
])
|
|
@@ -1718,7 +1718,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1718
1718
|
"Access to the Vuetify MCP server",
|
|
1719
1719
|
"Team wide Playgrounds, Bins, and Studios",
|
|
1720
1720
|
"Receive a special label on GitHub created issues and pull requests"
|
|
1721
|
-
],
|
|
1721
|
+
], a = M(!1), o = O(), i = b(() => {
|
|
1722
1722
|
const u = [
|
|
1723
1723
|
"Ad Free Experience on all Vuetify properties",
|
|
1724
1724
|
'Save and share across our platforms <a href="https://play.vuetifyjs.com" target="_blank">VPlay</a>, <a href="https://bin.vuetifyjs.com" target="_blank">VBin</a>, and <a href="https://studio.vuetifyjs.com" target="_blank">VStudio</a>',
|
|
@@ -1730,18 +1730,18 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1730
1730
|
];
|
|
1731
1731
|
return p.type === "team" && u.unshift("Invite up to 25 team members"), u;
|
|
1732
1732
|
});
|
|
1733
|
-
return H(
|
|
1733
|
+
return H(a, async (u) => {
|
|
1734
1734
|
u && o.subscriptionInfo();
|
|
1735
1735
|
}), (u, r) => {
|
|
1736
1736
|
const l = q;
|
|
1737
|
-
return c(),
|
|
1737
|
+
return c(), k(D, null, [
|
|
1738
1738
|
n(Ne, { class: "font-weight-black" }, {
|
|
1739
1739
|
default: s(() => [...r[0] || (r[0] = [
|
|
1740
1740
|
S("Perks", -1)
|
|
1741
1741
|
])]),
|
|
1742
1742
|
_: 1
|
|
1743
1743
|
}),
|
|
1744
|
-
r[2] || (r[2] =
|
|
1744
|
+
r[2] || (r[2] = g("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The Vuetify One subscription comes with the following perks: ", -1)),
|
|
1745
1745
|
n(ne, {
|
|
1746
1746
|
class: "py-0",
|
|
1747
1747
|
density: "compact",
|
|
@@ -1749,7 +1749,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1749
1749
|
nav: ""
|
|
1750
1750
|
}, {
|
|
1751
1751
|
default: s(() => [
|
|
1752
|
-
(c(!0),
|
|
1752
|
+
(c(!0), k(D, null, G(e(i), (d, f) => (c(), m(l, {
|
|
1753
1753
|
key: f,
|
|
1754
1754
|
class: "mb-0",
|
|
1755
1755
|
"prepend-icon": `svg:${e(Ve)}`
|
|
@@ -1762,21 +1762,21 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1762
1762
|
})
|
|
1763
1763
|
]),
|
|
1764
1764
|
title: s(() => [
|
|
1765
|
-
|
|
1765
|
+
g("div", { innerHTML: d }, null, 8, Yn)
|
|
1766
1766
|
]),
|
|
1767
1767
|
_: 2
|
|
1768
1768
|
}, 1032, ["prepend-icon"]))), 128))
|
|
1769
1769
|
]),
|
|
1770
1770
|
_: 1
|
|
1771
1771
|
}),
|
|
1772
|
-
r[3] || (r[3] =
|
|
1772
|
+
r[3] || (r[3] = g("br", null, null, -1)),
|
|
1773
1773
|
n(Ne, { class: "font-weight-black" }, {
|
|
1774
1774
|
default: s(() => [...r[1] || (r[1] = [
|
|
1775
1775
|
S("Up Next", -1)
|
|
1776
1776
|
])]),
|
|
1777
1777
|
_: 1
|
|
1778
1778
|
}),
|
|
1779
|
-
r[4] || (r[4] =
|
|
1779
|
+
r[4] || (r[4] = g("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The following features are in development and coming soon: ", -1)),
|
|
1780
1780
|
n(ne, {
|
|
1781
1781
|
class: "py-0",
|
|
1782
1782
|
density: "compact",
|
|
@@ -1784,7 +1784,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1784
1784
|
nav: ""
|
|
1785
1785
|
}, {
|
|
1786
1786
|
default: s(() => [
|
|
1787
|
-
(c(),
|
|
1787
|
+
(c(), k(D, null, G(t, (d, f) => n(l, {
|
|
1788
1788
|
key: f,
|
|
1789
1789
|
class: "mb-0",
|
|
1790
1790
|
"prepend-icon": `svg:${e(vo)}`
|
|
@@ -1796,7 +1796,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1796
1796
|
})
|
|
1797
1797
|
]),
|
|
1798
1798
|
title: s(() => [
|
|
1799
|
-
|
|
1799
|
+
g("div", { innerHTML: d }, null, 8, Qn)
|
|
1800
1800
|
]),
|
|
1801
1801
|
_: 2
|
|
1802
1802
|
}, 1032, ["prepend-icon"])), 64))
|
|
@@ -1816,7 +1816,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1816
1816
|
},
|
|
1817
1817
|
emits: ["update:interval", "update:type"],
|
|
1818
1818
|
setup(p) {
|
|
1819
|
-
const t = M(!1),
|
|
1819
|
+
const t = M(!1), a = W(p, "interval"), o = W(p, "type"), i = O(), u = De(), r = b(() => u.hasTeamAccess && !u.isTeamOwner), l = {
|
|
1820
1820
|
solo: {
|
|
1821
1821
|
month: "2.99 /month",
|
|
1822
1822
|
year: "29.99 /year"
|
|
@@ -1827,11 +1827,11 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1827
1827
|
}
|
|
1828
1828
|
};
|
|
1829
1829
|
return H(t, async (d) => {
|
|
1830
|
-
d &&
|
|
1831
|
-
}), (d, f) => (c(),
|
|
1830
|
+
d && i.subscriptionInfo();
|
|
1831
|
+
}), (d, f) => (c(), k(D, null, [
|
|
1832
1832
|
n(bt, {
|
|
1833
1833
|
modelValue: o.value,
|
|
1834
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
1834
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => o.value = v),
|
|
1835
1835
|
class: "mb-4",
|
|
1836
1836
|
mandatory: ""
|
|
1837
1837
|
}, {
|
|
@@ -1844,16 +1844,16 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1844
1844
|
}, {
|
|
1845
1845
|
default: s(() => [
|
|
1846
1846
|
n(Ze, { value: "solo" }, {
|
|
1847
|
-
default: s(({ toggle:
|
|
1847
|
+
default: s(({ toggle: v, isSelected: _ }) => [
|
|
1848
1848
|
n(P, {
|
|
1849
1849
|
border: _ ? "sm primary opacity-50" : "sm",
|
|
1850
1850
|
color: _ ? "primary" : void 0,
|
|
1851
1851
|
"prepend-icon": _ ? `svg:${e(Me)}` : "$radioOff",
|
|
1852
1852
|
rounded: "lg",
|
|
1853
|
-
subtitle: `$${l.solo[
|
|
1853
|
+
subtitle: `$${l.solo[a.value]}`,
|
|
1854
1854
|
title: "Solo Developer",
|
|
1855
1855
|
variant: _ ? "tonal" : "text",
|
|
1856
|
-
onClick:
|
|
1856
|
+
onClick: v
|
|
1857
1857
|
}, {
|
|
1858
1858
|
prepend: s(() => [
|
|
1859
1859
|
n(I, { class: "mt-n6" })
|
|
@@ -1872,17 +1872,17 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1872
1872
|
}, {
|
|
1873
1873
|
default: s(() => [
|
|
1874
1874
|
n(Ze, { value: "team" }, {
|
|
1875
|
-
default: s(({ toggle:
|
|
1875
|
+
default: s(({ toggle: v, isSelected: _ }) => [
|
|
1876
1876
|
n(P, {
|
|
1877
1877
|
border: _ ? "sm primary opacity-50" : "sm",
|
|
1878
1878
|
color: _ ? "primary" : void 0,
|
|
1879
1879
|
disabled: e(r),
|
|
1880
1880
|
"prepend-icon": _ ? `svg:${e(Me)}` : "$radioOff",
|
|
1881
1881
|
rounded: "lg",
|
|
1882
|
-
subtitle: `$${l.team[
|
|
1882
|
+
subtitle: `$${l.team[a.value]}`,
|
|
1883
1883
|
title: "Team Access",
|
|
1884
1884
|
variant: _ ? "tonal" : "text",
|
|
1885
|
-
onClick:
|
|
1885
|
+
onClick: v
|
|
1886
1886
|
}, {
|
|
1887
1887
|
prepend: s(() => [
|
|
1888
1888
|
n(I, { class: "mt-n6" })
|
|
@@ -1902,8 +1902,8 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1902
1902
|
_: 1
|
|
1903
1903
|
}, 8, ["modelValue"]),
|
|
1904
1904
|
n(Ge, {
|
|
1905
|
-
modelValue:
|
|
1906
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
1905
|
+
modelValue: a.value,
|
|
1906
|
+
"onUpdate:modelValue": f[1] || (f[1] = (v) => a.value = v),
|
|
1907
1907
|
"false-value": "month",
|
|
1908
1908
|
"hide-details": "",
|
|
1909
1909
|
inset: "",
|
|
@@ -1920,31 +1920,31 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1920
1920
|
},
|
|
1921
1921
|
emits: ["update:modelValue"],
|
|
1922
1922
|
setup(p) {
|
|
1923
|
-
function t(
|
|
1924
|
-
return new Promise((_) => setTimeout(_,
|
|
1923
|
+
function t(v) {
|
|
1924
|
+
return new Promise((_) => setTimeout(_, v));
|
|
1925
1925
|
}
|
|
1926
|
-
const
|
|
1927
|
-
H([u, r], ([
|
|
1928
|
-
!o.isSubscriber || !o.interval || !o.subscriptionType || (d.value =
|
|
1929
|
-
}), H(
|
|
1930
|
-
if (!
|
|
1931
|
-
|
|
1926
|
+
const a = W(p, "modelValue"), o = O(), i = ke(), u = M(o.interval), r = M(o.subscriptionType), l = M(o.hasBilling ? "status" : "subscribe"), d = M(!1);
|
|
1927
|
+
H([u, r], ([v, _]) => {
|
|
1928
|
+
!o.isSubscriber || !o.interval || !o.subscriptionType || (d.value = v !== o.interval || _ !== o.subscriptionType);
|
|
1929
|
+
}), H(a, async (v) => {
|
|
1930
|
+
if (!v || !o.isSubscriber) {
|
|
1931
|
+
v || o.resetQuery();
|
|
1932
1932
|
return;
|
|
1933
1933
|
}
|
|
1934
1934
|
o.subscriptionInfo();
|
|
1935
|
-
}), H(
|
|
1936
|
-
!o.sessionId && !["subscribe", "status"].includes(
|
|
1935
|
+
}), H(i, async () => {
|
|
1936
|
+
!o.sessionId && !["subscribe", "status"].includes(i.value.one) || i.value.team || (l.value = o.sessionId || i.value.one === "status" ? "status" : "subscribe", o.isOpen = !0, await be(), a.value = !0);
|
|
1937
1937
|
}, { immediate: !0 }), Nt(() => {
|
|
1938
1938
|
u.value = o.interval ?? "year", r.value = o.subscriptionType ?? "solo";
|
|
1939
1939
|
});
|
|
1940
1940
|
async function f() {
|
|
1941
1941
|
await o.modify(u.value, r.value), await o.subscriptionInfo(), d.value = null, await t(3e3), l.value = "status", await t(300), d.value = !1;
|
|
1942
1942
|
}
|
|
1943
|
-
return (
|
|
1944
|
-
const
|
|
1943
|
+
return (v, _) => {
|
|
1944
|
+
const V = ie, $ = Jn, L = Xn, U = Kn, Y = Fn, x = we, pe = de;
|
|
1945
1945
|
return c(), m(pe, {
|
|
1946
|
-
modelValue:
|
|
1947
|
-
"onUpdate:modelValue": _[5] || (_[5] = (B) =>
|
|
1946
|
+
modelValue: a.value,
|
|
1947
|
+
"onUpdate:modelValue": _[5] || (_[5] = (B) => a.value = B),
|
|
1948
1948
|
"prepend-icon": `svg:${e(go)}`,
|
|
1949
1949
|
title: "Subscriptions"
|
|
1950
1950
|
}, z({
|
|
@@ -1953,10 +1953,10 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1953
1953
|
default: s(() => [
|
|
1954
1954
|
n(ce, { scrollable: "" }, {
|
|
1955
1955
|
default: s(() => [
|
|
1956
|
-
|
|
1956
|
+
g("div", es, [
|
|
1957
1957
|
n(X, null, {
|
|
1958
1958
|
default: s(() => [
|
|
1959
|
-
n(
|
|
1959
|
+
n(V, {
|
|
1960
1960
|
text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
|
|
1961
1961
|
title: "Vuetify One"
|
|
1962
1962
|
}),
|
|
@@ -1964,13 +1964,13 @@ const Mn = /* @__PURE__ */ y({
|
|
|
1964
1964
|
default: s(() => [
|
|
1965
1965
|
n(_e, { value: "subscribe" }, {
|
|
1966
1966
|
default: s(() => [
|
|
1967
|
-
n(
|
|
1967
|
+
n($, {
|
|
1968
1968
|
interval: e(u),
|
|
1969
1969
|
"onUpdate:interval": _[0] || (_[0] = (B) => j(u) ? u.value = B : null),
|
|
1970
1970
|
type: e(r),
|
|
1971
1971
|
"onUpdate:type": _[1] || (_[1] = (B) => j(r) ? r.value = B : null)
|
|
1972
1972
|
}, null, 8, ["interval", "type"]),
|
|
1973
|
-
_[6] || (_[6] =
|
|
1973
|
+
_[6] || (_[6] = g("br", null, null, -1)),
|
|
1974
1974
|
n(L, { type: e(r) }, null, 8, ["type"])
|
|
1975
1975
|
]),
|
|
1976
1976
|
_: 1
|
|
@@ -2003,7 +2003,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2003
2003
|
e(l) === "subscribe" ? {
|
|
2004
2004
|
name: "actions",
|
|
2005
2005
|
fn: s(() => [
|
|
2006
|
-
|
|
2006
|
+
g("div", ts, [
|
|
2007
2007
|
e(d) !== !1 ? (c(), m(x, {
|
|
2008
2008
|
key: 0,
|
|
2009
2009
|
block: "",
|
|
@@ -2043,8 +2043,8 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2043
2043
|
__name: "VoSubscriptionListItem",
|
|
2044
2044
|
setup(p) {
|
|
2045
2045
|
const t = M(!1);
|
|
2046
|
-
return (
|
|
2047
|
-
const
|
|
2046
|
+
return (a, o) => {
|
|
2047
|
+
const i = os, u = q;
|
|
2048
2048
|
return c(), m(u, {
|
|
2049
2049
|
active: e(t),
|
|
2050
2050
|
link: "",
|
|
@@ -2053,7 +2053,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2053
2053
|
title: "Subscriptions"
|
|
2054
2054
|
}, {
|
|
2055
2055
|
default: s(() => [
|
|
2056
|
-
n(
|
|
2056
|
+
n(i, {
|
|
2057
2057
|
modelValue: e(t),
|
|
2058
2058
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => j(t) ? t.value = r : null)
|
|
2059
2059
|
}, null, 8, ["modelValue"])
|
|
@@ -2077,36 +2077,36 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2077
2077
|
sponsorship: {}
|
|
2078
2078
|
},
|
|
2079
2079
|
setup(p) {
|
|
2080
|
-
const t = p,
|
|
2081
|
-
return (
|
|
2080
|
+
const t = p, a = Pe(), o = b(() => `$${Number.parseFloat(String((t.sponsorship?.amount ?? 0) / 100)).toFixed(2)} /${t.sponsorship?.interval}`);
|
|
2081
|
+
return (i, u) => {
|
|
2082
2082
|
const r = we;
|
|
2083
2083
|
return c(), m(nn, {
|
|
2084
|
-
"dot-color":
|
|
2085
|
-
icon:
|
|
2084
|
+
"dot-color": i.sponsorship?.isActive ? "success" : "transparent",
|
|
2085
|
+
icon: i.sponsorship?.isActive ? `svg:${e(Ve)}` : void 0,
|
|
2086
2086
|
size: "x-small",
|
|
2087
2087
|
width: "100%"
|
|
2088
2088
|
}, {
|
|
2089
2089
|
default: s(() => [
|
|
2090
2090
|
n(P, {
|
|
2091
2091
|
border: "",
|
|
2092
|
-
"prepend-avatar": `${e(
|
|
2092
|
+
"prepend-avatar": `${e(a).CDN_URL}logos/${i.logo}.png`,
|
|
2093
2093
|
rounded: "lg",
|
|
2094
|
-
title:
|
|
2094
|
+
title: i.title,
|
|
2095
2095
|
variant: "text"
|
|
2096
2096
|
}, {
|
|
2097
2097
|
subtitle: s(() => [
|
|
2098
|
-
|
|
2098
|
+
i.sponsorship?.isActive ? (c(), k("div", ss, [
|
|
2099
2099
|
n(I, {
|
|
2100
2100
|
icon: `svg:${e(bo)}`,
|
|
2101
2101
|
size: "x-small"
|
|
2102
2102
|
}, null, 8, ["icon"]),
|
|
2103
|
-
S(" " +
|
|
2104
|
-
])) : (c(),
|
|
2105
|
-
S(
|
|
2103
|
+
S(" " + C(e(o)), 1)
|
|
2104
|
+
])) : (c(), k(D, { key: 1 }, [
|
|
2105
|
+
S(C(i.text), 1)
|
|
2106
2106
|
], 64))
|
|
2107
2107
|
]),
|
|
2108
2108
|
append: s(() => [
|
|
2109
|
-
|
|
2109
|
+
i.disabled ? (c(), m(r, {
|
|
2110
2110
|
key: 1,
|
|
2111
2111
|
color: "surface-variant",
|
|
2112
2112
|
readonly: "",
|
|
@@ -2114,13 +2114,13 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2114
2114
|
})) : (c(), m(r, {
|
|
2115
2115
|
key: 0,
|
|
2116
2116
|
active: !1,
|
|
2117
|
-
color:
|
|
2118
|
-
href:
|
|
2119
|
-
"prepend-icon": `svg:${
|
|
2120
|
-
readonly:
|
|
2121
|
-
target:
|
|
2122
|
-
text:
|
|
2123
|
-
to:
|
|
2117
|
+
color: i.sponsorship?.isActive ? "success" : "primary",
|
|
2118
|
+
href: i.sponsorship?.isActive || i.to ? void 0 : i.href,
|
|
2119
|
+
"prepend-icon": `svg:${i.sponsorship?.isActive ? e(Me) : e(Ae)}`,
|
|
2120
|
+
readonly: i.sponsorship?.isActive,
|
|
2121
|
+
target: i.sponsorship?.isActive || i.to ? void 0 : "_blank",
|
|
2122
|
+
text: i.sponsorship?.isActive ? "Active" : "Info",
|
|
2123
|
+
to: i.to,
|
|
2124
2124
|
width: "88"
|
|
2125
2125
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text", "to"]))
|
|
2126
2126
|
]),
|
|
@@ -2135,9 +2135,9 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2135
2135
|
__name: "VoSponsorshipsTimelineItemDiscord",
|
|
2136
2136
|
setup(p) {
|
|
2137
2137
|
const t = O();
|
|
2138
|
-
return (
|
|
2139
|
-
const
|
|
2140
|
-
return c(), m(
|
|
2138
|
+
return (a, o) => {
|
|
2139
|
+
const i = Qe;
|
|
2140
|
+
return c(), m(i, {
|
|
2141
2141
|
href: "https://discord.com/servers/vuetify-340160225338195969",
|
|
2142
2142
|
logo: "discord",
|
|
2143
2143
|
sponsorship: e(t).discord,
|
|
@@ -2150,9 +2150,9 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2150
2150
|
__name: "VoSponsorshipsTimelineItemGithub",
|
|
2151
2151
|
setup(p) {
|
|
2152
2152
|
const t = O();
|
|
2153
|
-
return (
|
|
2154
|
-
const
|
|
2155
|
-
return c(), m(
|
|
2153
|
+
return (a, o) => {
|
|
2154
|
+
const i = Qe;
|
|
2155
|
+
return c(), m(i, {
|
|
2156
2156
|
href: "https://github.com/sponsors/johnleider",
|
|
2157
2157
|
logo: "github",
|
|
2158
2158
|
sponsorship: e(t).github,
|
|
@@ -2165,9 +2165,9 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2165
2165
|
__name: "VoSponsorshipsTimelineItemOne",
|
|
2166
2166
|
setup(p) {
|
|
2167
2167
|
const t = O();
|
|
2168
|
-
return (
|
|
2169
|
-
const
|
|
2170
|
-
return c(), m(
|
|
2168
|
+
return (a, o) => {
|
|
2169
|
+
const i = Qe;
|
|
2170
|
+
return c(), m(i, {
|
|
2171
2171
|
logo: "one",
|
|
2172
2172
|
sponsorship: e(t).one,
|
|
2173
2173
|
text: "Support Vuetify through Vuetify One.",
|
|
@@ -2179,8 +2179,8 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2179
2179
|
}), ls = /* @__PURE__ */ y({
|
|
2180
2180
|
__name: "VoSponsorshipsTimeline",
|
|
2181
2181
|
setup(p) {
|
|
2182
|
-
return (t,
|
|
2183
|
-
const o = rs,
|
|
2182
|
+
return (t, a) => {
|
|
2183
|
+
const o = rs, i = is, u = as;
|
|
2184
2184
|
return c(), m(sn, {
|
|
2185
2185
|
class: "justify-start ms-n7",
|
|
2186
2186
|
"line-inset": "12",
|
|
@@ -2190,7 +2190,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2190
2190
|
}, {
|
|
2191
2191
|
default: s(() => [
|
|
2192
2192
|
n(o),
|
|
2193
|
-
n(
|
|
2193
|
+
n(i),
|
|
2194
2194
|
n(u)
|
|
2195
2195
|
]),
|
|
2196
2196
|
_: 1
|
|
@@ -2205,10 +2205,10 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2205
2205
|
},
|
|
2206
2206
|
emits: ["update:modelValue"],
|
|
2207
2207
|
setup(p) {
|
|
2208
|
-
const t = W(p, "modelValue"),
|
|
2209
|
-
return H(
|
|
2210
|
-
|
|
2211
|
-
}, { immediate: !0 }), (
|
|
2208
|
+
const t = W(p, "modelValue"), a = ke(), o = O();
|
|
2209
|
+
return H(a, async () => {
|
|
2210
|
+
a.value.one === "sponsorships" && (o.isOpen = !0, await be(), t.value = !0);
|
|
2211
|
+
}, { immediate: !0 }), (i, u) => {
|
|
2212
2212
|
const r = ie, l = ls, d = de;
|
|
2213
2213
|
return c(), m(d, {
|
|
2214
2214
|
modelValue: t.value,
|
|
@@ -2221,7 +2221,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2221
2221
|
default: s(() => [
|
|
2222
2222
|
n(ce, { scrollable: "" }, {
|
|
2223
2223
|
default: s(() => [
|
|
2224
|
-
|
|
2224
|
+
g("div", us, [
|
|
2225
2225
|
n(X, { class: "flex-0-0 mb-16 mb-sm-4" }, {
|
|
2226
2226
|
default: s(() => [
|
|
2227
2227
|
n(r, {
|
|
@@ -2245,10 +2245,10 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2245
2245
|
]),
|
|
2246
2246
|
title: s(() => [
|
|
2247
2247
|
u[1] || (u[1] = S(" One Status: ", -1)),
|
|
2248
|
-
|
|
2248
|
+
g("span", cs, C(e(o).isSubscriber ? "Active" : "Inactive"), 1)
|
|
2249
2249
|
]),
|
|
2250
2250
|
text: s(() => [
|
|
2251
|
-
|
|
2251
|
+
g("div", ds, C(e(o).isSubscriber ? "You are currently receiving benefits of Vuetify One." : "Login to activate Vuetify One benefits"), 1)
|
|
2252
2252
|
]),
|
|
2253
2253
|
_: 1
|
|
2254
2254
|
})
|
|
@@ -2268,8 +2268,8 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2268
2268
|
__name: "VoSponsorshipsListItem",
|
|
2269
2269
|
setup(p) {
|
|
2270
2270
|
const t = M(!1);
|
|
2271
|
-
return (
|
|
2272
|
-
const
|
|
2271
|
+
return (a, o) => {
|
|
2272
|
+
const i = ps, u = q;
|
|
2273
2273
|
return c(), m(u, {
|
|
2274
2274
|
active: e(t),
|
|
2275
2275
|
link: "",
|
|
@@ -2278,7 +2278,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2278
2278
|
title: "Sponsorships"
|
|
2279
2279
|
}, {
|
|
2280
2280
|
default: s(() => [
|
|
2281
|
-
n(
|
|
2281
|
+
n(i, {
|
|
2282
2282
|
modelValue: e(t),
|
|
2283
2283
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => j(t) ? t.value = r : null)
|
|
2284
2284
|
}, null, 8, ["modelValue"])
|
|
@@ -2288,30 +2288,30 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2288
2288
|
};
|
|
2289
2289
|
}
|
|
2290
2290
|
}), fs = K("downloads", () => {
|
|
2291
|
-
const p = J(), t = oe(),
|
|
2292
|
-
async function
|
|
2293
|
-
if (
|
|
2294
|
-
return
|
|
2291
|
+
const p = J(), t = oe(), a = E([]), o = M(!1);
|
|
2292
|
+
async function i() {
|
|
2293
|
+
if (a.value.length > 0)
|
|
2294
|
+
return a.value;
|
|
2295
2295
|
o.value = !0;
|
|
2296
2296
|
try {
|
|
2297
2297
|
const u = await p.get("/one/sendowl/downloads");
|
|
2298
|
-
|
|
2298
|
+
a.value = u.downloads;
|
|
2299
2299
|
} catch (u) {
|
|
2300
2300
|
t.showError(u?.message ?? "Error fetching downloads");
|
|
2301
2301
|
} finally {
|
|
2302
2302
|
o.value = !1;
|
|
2303
2303
|
}
|
|
2304
|
-
return
|
|
2304
|
+
return a.value;
|
|
2305
2305
|
}
|
|
2306
2306
|
return {
|
|
2307
|
-
all:
|
|
2307
|
+
all: a,
|
|
2308
2308
|
isLoading: o,
|
|
2309
|
-
index:
|
|
2309
|
+
index: i
|
|
2310
2310
|
};
|
|
2311
2311
|
}), vs = /* @__PURE__ */ y({
|
|
2312
2312
|
__name: "VoDownloadsTable",
|
|
2313
2313
|
setup(p) {
|
|
2314
|
-
const t = me(),
|
|
2314
|
+
const t = me(), a = fs(), o = [
|
|
2315
2315
|
{
|
|
2316
2316
|
title: "Order ID",
|
|
2317
2317
|
value: "order_name"
|
|
@@ -2332,8 +2332,8 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2332
2332
|
}
|
|
2333
2333
|
];
|
|
2334
2334
|
return He(async () => {
|
|
2335
|
-
await
|
|
2336
|
-
}), (
|
|
2335
|
+
await a.index();
|
|
2336
|
+
}), (i, u) => {
|
|
2337
2337
|
const r = ie;
|
|
2338
2338
|
return c(), m(fe, null, {
|
|
2339
2339
|
default: s(() => [
|
|
@@ -2353,20 +2353,20 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2353
2353
|
"fixed-header": "",
|
|
2354
2354
|
headers: o,
|
|
2355
2355
|
height: "640",
|
|
2356
|
-
items: e(
|
|
2357
|
-
loading: e(
|
|
2356
|
+
items: e(a).all,
|
|
2357
|
+
loading: e(a).isLoading
|
|
2358
2358
|
}, {
|
|
2359
2359
|
"item.order_name": s(({ item: l }) => [
|
|
2360
|
-
S(" #" +
|
|
2360
|
+
S(" #" + C(l.order_name), 1)
|
|
2361
2361
|
]),
|
|
2362
2362
|
"item.created_at": s(({ item: l }) => [
|
|
2363
|
-
S(
|
|
2363
|
+
S(C(e(t).format(l.created_at, "shortDate")), 1)
|
|
2364
2364
|
]),
|
|
2365
2365
|
"item.download_items": s(({ item: l }) => [
|
|
2366
|
-
(c(!0),
|
|
2366
|
+
(c(!0), k(D, null, G(l.download_items, (d, f) => (c(), k("div", {
|
|
2367
2367
|
key: f,
|
|
2368
2368
|
class: "text-truncate"
|
|
2369
|
-
},
|
|
2369
|
+
}, C(d.name), 1))), 128))
|
|
2370
2370
|
]),
|
|
2371
2371
|
"item.download_url": s(({ item: l }) => [
|
|
2372
2372
|
n(A, {
|
|
@@ -2395,8 +2395,8 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2395
2395
|
__name: "VoDownloadsNavItem",
|
|
2396
2396
|
setup(p) {
|
|
2397
2397
|
const t = M(!1);
|
|
2398
|
-
return (
|
|
2399
|
-
const
|
|
2398
|
+
return (a, o) => {
|
|
2399
|
+
const i = vs, u = de, r = q;
|
|
2400
2400
|
return c(), m(r, {
|
|
2401
2401
|
active: e(t),
|
|
2402
2402
|
link: "",
|
|
@@ -2416,10 +2416,10 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2416
2416
|
default: s(() => [
|
|
2417
2417
|
n(ce, { scrollable: "" }, {
|
|
2418
2418
|
default: s(() => [
|
|
2419
|
-
|
|
2419
|
+
g("div", gs, [
|
|
2420
2420
|
n(X, null, {
|
|
2421
2421
|
default: s(() => [
|
|
2422
|
-
n(
|
|
2422
|
+
n(i)
|
|
2423
2423
|
]),
|
|
2424
2424
|
_: 1
|
|
2425
2425
|
})
|
|
@@ -2446,7 +2446,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2446
2446
|
},
|
|
2447
2447
|
emits: ["update:modelValue"],
|
|
2448
2448
|
setup(p) {
|
|
2449
|
-
const t = O(),
|
|
2449
|
+
const t = O(), a = De(), o = J(), { copy: i, copied: u } = Oe(), r = b(() => a.team), l = ke(), d = M(!1), f = [
|
|
2450
2450
|
{
|
|
2451
2451
|
title: "Name",
|
|
2452
2452
|
key: "name"
|
|
@@ -2457,15 +2457,15 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2457
2457
|
align: "end",
|
|
2458
2458
|
sortable: !1
|
|
2459
2459
|
}
|
|
2460
|
-
],
|
|
2461
|
-
async function
|
|
2460
|
+
], v = b(() => `https://one.vuetifyjs.com/?invite=${a.team?.inviteCode}`), _ = W(p, "modelValue");
|
|
2461
|
+
async function V() {
|
|
2462
2462
|
d.value = !0;
|
|
2463
|
-
const
|
|
2464
|
-
|
|
2463
|
+
const $ = await o.post("/one/team/regen");
|
|
2464
|
+
a.team = $.team;
|
|
2465
2465
|
}
|
|
2466
2466
|
return H(l, async () => {
|
|
2467
2467
|
!t.sessionId || l.value.one === "subscribe" || l.value.team && (t.isOpen = !0, await be(), _.value = !0);
|
|
2468
|
-
}, { immediate: !0 }), (
|
|
2468
|
+
}, { immediate: !0 }), ($, L) => {
|
|
2469
2469
|
const U = ie, Y = de;
|
|
2470
2470
|
return c(), m(Y, {
|
|
2471
2471
|
modelValue: _.value,
|
|
@@ -2478,14 +2478,14 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2478
2478
|
default: s(() => [
|
|
2479
2479
|
n(ce, { scrollable: "" }, {
|
|
2480
2480
|
default: s(() => [
|
|
2481
|
-
|
|
2481
|
+
g("div", ys, [
|
|
2482
2482
|
n(X, null, {
|
|
2483
2483
|
default: s(() => [
|
|
2484
2484
|
n(U, {
|
|
2485
2485
|
text: "Share access to Vuetify One with up to 25 team members.",
|
|
2486
2486
|
title: "Manage your team"
|
|
2487
2487
|
}),
|
|
2488
|
-
e(
|
|
2488
|
+
e(a).isTeamOwner ? (c(), m(P, {
|
|
2489
2489
|
key: 0,
|
|
2490
2490
|
border: "",
|
|
2491
2491
|
class: "mb-4",
|
|
@@ -2500,7 +2500,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2500
2500
|
subtitle: `Team - ${e(r)?.members?.length} member(s)`,
|
|
2501
2501
|
title: "Members"
|
|
2502
2502
|
}, z({ _: 2 }, [
|
|
2503
|
-
e(
|
|
2503
|
+
e(a).isTeamOwner ? {
|
|
2504
2504
|
name: "append",
|
|
2505
2505
|
fn: s(() => [
|
|
2506
2506
|
n(A, {
|
|
@@ -2538,7 +2538,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2538
2538
|
flat: "",
|
|
2539
2539
|
slim: "",
|
|
2540
2540
|
text: "Reset",
|
|
2541
|
-
onClick:
|
|
2541
|
+
onClick: V
|
|
2542
2542
|
}, null, 8, ["color", "disabled"])
|
|
2543
2543
|
]),
|
|
2544
2544
|
_: 1
|
|
@@ -2549,7 +2549,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2549
2549
|
flat: "",
|
|
2550
2550
|
"hide-details": "",
|
|
2551
2551
|
label: "Invite link",
|
|
2552
|
-
"model-value": e(
|
|
2552
|
+
"model-value": e(v),
|
|
2553
2553
|
readonly: "",
|
|
2554
2554
|
variant: "solo"
|
|
2555
2555
|
}, {
|
|
@@ -2557,7 +2557,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2557
2557
|
N(n(I, {
|
|
2558
2558
|
icon: `svg:${e(u) ? e(Ve) : e(Re)}`,
|
|
2559
2559
|
size: "small",
|
|
2560
|
-
onClick: L[0] || (L[0] = (x) => e(
|
|
2560
|
+
onClick: L[0] || (L[0] = (x) => e(i)(e(v)))
|
|
2561
2561
|
}, null, 8, ["icon"]), [
|
|
2562
2562
|
[Q, "Copy Team link"]
|
|
2563
2563
|
])
|
|
@@ -2594,13 +2594,13 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2594
2594
|
items: e(r)?.members
|
|
2595
2595
|
}, {
|
|
2596
2596
|
"item.name": s(({ item: x }) => [
|
|
2597
|
-
|
|
2597
|
+
g("div", hs, [
|
|
2598
2598
|
n(te, {
|
|
2599
2599
|
image: x.picture,
|
|
2600
2600
|
size: "x-small",
|
|
2601
2601
|
start: ""
|
|
2602
2602
|
}, null, 8, ["image"]),
|
|
2603
|
-
|
|
2603
|
+
g("span", null, C(x.name), 1)
|
|
2604
2604
|
])
|
|
2605
2605
|
]),
|
|
2606
2606
|
"item.actions": s(({ item: x }) => [
|
|
@@ -2623,7 +2623,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2623
2623
|
slim: "",
|
|
2624
2624
|
text: "Revoke",
|
|
2625
2625
|
variant: "text",
|
|
2626
|
-
onClick: (pe) => e(
|
|
2626
|
+
onClick: (pe) => e(a).removeFromTeam(x.id)
|
|
2627
2627
|
}, null, 8, ["prepend-icon", "onClick"]))
|
|
2628
2628
|
]),
|
|
2629
2629
|
_: 1
|
|
@@ -2651,7 +2651,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2651
2651
|
title: "My Team access"
|
|
2652
2652
|
}, {
|
|
2653
2653
|
title: s(() => [
|
|
2654
|
-
|
|
2654
|
+
g("div", bs, [
|
|
2655
2655
|
L[4] || (L[4] = S(" My Team Access ", -1)),
|
|
2656
2656
|
n(ee, {
|
|
2657
2657
|
border: "thin opacity-25 success",
|
|
@@ -2669,7 +2669,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2669
2669
|
rounded: "lg",
|
|
2670
2670
|
text: "Leave team",
|
|
2671
2671
|
width: "145",
|
|
2672
|
-
onClick: L[1] || (L[1] = (x) => e(
|
|
2672
|
+
onClick: L[1] || (L[1] = (x) => e(a).leaveTeam())
|
|
2673
2673
|
}, null, 8, ["prepend-icon"])
|
|
2674
2674
|
]),
|
|
2675
2675
|
_: 1
|
|
@@ -2696,8 +2696,8 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2696
2696
|
__name: "VoTeamListItem",
|
|
2697
2697
|
setup(p) {
|
|
2698
2698
|
const t = M(!1);
|
|
2699
|
-
return (
|
|
2700
|
-
const
|
|
2699
|
+
return (a, o) => {
|
|
2700
|
+
const i = ks, u = q;
|
|
2701
2701
|
return c(), m(u, {
|
|
2702
2702
|
active: e(t),
|
|
2703
2703
|
link: "",
|
|
@@ -2706,7 +2706,7 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2706
2706
|
title: "My Team"
|
|
2707
2707
|
}, {
|
|
2708
2708
|
default: s(() => [
|
|
2709
|
-
n(
|
|
2709
|
+
n(i, {
|
|
2710
2710
|
modelValue: e(t),
|
|
2711
2711
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => j(t) ? t.value = r : null)
|
|
2712
2712
|
}, null, 8, ["modelValue"])
|
|
@@ -2767,28 +2767,28 @@ const Mn = /* @__PURE__ */ y({
|
|
|
2767
2767
|
}
|
|
2768
2768
|
];
|
|
2769
2769
|
function Tt() {
|
|
2770
|
-
const p = T(), t = ge(() => st.filter((
|
|
2771
|
-
H(() => p.one.quicklinks, (
|
|
2772
|
-
!
|
|
2770
|
+
const p = T(), t = ge(() => st.filter((i) => p.one.ecosystem.pinned.includes(i.id)));
|
|
2771
|
+
H(() => p.one.quicklinks, (i) => {
|
|
2772
|
+
!i && p.one.ecosystem.pinned.length > 0 && (p.one.ecosystem.pinned = []);
|
|
2773
2773
|
});
|
|
2774
|
-
function i
|
|
2775
|
-
return p.one.ecosystem.pinned.includes(
|
|
2774
|
+
function a(i) {
|
|
2775
|
+
return p.one.ecosystem.pinned.includes(i);
|
|
2776
2776
|
}
|
|
2777
|
-
function o(
|
|
2778
|
-
const u = p.one.ecosystem.pinned.indexOf(
|
|
2779
|
-
u === -1 ? (p.one.ecosystem.pinned.push(
|
|
2777
|
+
function o(i) {
|
|
2778
|
+
const u = p.one.ecosystem.pinned.indexOf(i);
|
|
2779
|
+
u === -1 ? (p.one.ecosystem.pinned.push(i), p.one.quicklinks || (p.one.quicklinks = !0)) : p.one.ecosystem.pinned.splice(u, 1);
|
|
2780
2780
|
}
|
|
2781
2781
|
return {
|
|
2782
2782
|
actions: st,
|
|
2783
2783
|
pinned: t,
|
|
2784
|
-
isPinned:
|
|
2784
|
+
isPinned: a,
|
|
2785
2785
|
togglePin: o
|
|
2786
2786
|
};
|
|
2787
2787
|
}
|
|
2788
2788
|
const at = /* @__PURE__ */ y({
|
|
2789
2789
|
__name: "VoEcosystemMenu",
|
|
2790
2790
|
setup(p) {
|
|
2791
|
-
const t = F(), { actions:
|
|
2791
|
+
const t = F(), { actions: a, isPinned: o, togglePin: i } = Tt();
|
|
2792
2792
|
return (u, r) => (c(), m(P, {
|
|
2793
2793
|
border: "",
|
|
2794
2794
|
"min-width": "240",
|
|
@@ -2800,7 +2800,7 @@ const at = /* @__PURE__ */ y({
|
|
|
2800
2800
|
nav: ""
|
|
2801
2801
|
}, {
|
|
2802
2802
|
default: s(() => [
|
|
2803
|
-
(c(!0),
|
|
2803
|
+
(c(!0), k(D, null, G(e(a), (l) => N((c(), m(le, {
|
|
2804
2804
|
key: l.id,
|
|
2805
2805
|
href: l.href,
|
|
2806
2806
|
"prepend-icon": l.icon,
|
|
@@ -2815,7 +2815,7 @@ const at = /* @__PURE__ */ y({
|
|
|
2815
2815
|
icon: `svg:${e(o)(l.id) ? e(Io) : e(Do)}`,
|
|
2816
2816
|
size: "x-small",
|
|
2817
2817
|
variant: "text",
|
|
2818
|
-
onClick: ye((d) => e(
|
|
2818
|
+
onClick: ye((d) => e(i)(l.id), ["prevent", "stop"])
|
|
2819
2819
|
}, null, 8, ["icon", "onClick"]), [
|
|
2820
2820
|
[Q, e(o)(l.id) ? "Unpin" : "Pin", "top"]
|
|
2821
2821
|
])
|
|
@@ -2835,10 +2835,10 @@ const at = /* @__PURE__ */ y({
|
|
|
2835
2835
|
}), Cs = /* @__PURE__ */ y({
|
|
2836
2836
|
__name: "VoEcosystemListItem",
|
|
2837
2837
|
setup(p) {
|
|
2838
|
-
const t = T(), { mobile:
|
|
2839
|
-
return H(o, (
|
|
2840
|
-
|
|
2841
|
-
}), (
|
|
2838
|
+
const t = T(), { mobile: a } = ae(), o = M(!1);
|
|
2839
|
+
return H(o, (i) => {
|
|
2840
|
+
i && !t.one.ecosystem.seen && (t.one.ecosystem.seen = !0);
|
|
2841
|
+
}), (i, u) => {
|
|
2842
2842
|
const r = q;
|
|
2843
2843
|
return c(), m(r, {
|
|
2844
2844
|
link: "",
|
|
@@ -2847,7 +2847,7 @@ const at = /* @__PURE__ */ y({
|
|
|
2847
2847
|
title: "Vuetify Ecosystem"
|
|
2848
2848
|
}, z({
|
|
2849
2849
|
default: s(() => [
|
|
2850
|
-
e(
|
|
2850
|
+
e(a) ? (c(), m(Ce, {
|
|
2851
2851
|
key: 0,
|
|
2852
2852
|
modelValue: e(o),
|
|
2853
2853
|
"onUpdate:modelValue": u[0] || (u[0] = (l) => j(o) ? o.value = l : null),
|
|
@@ -2902,12 +2902,12 @@ const at = /* @__PURE__ */ y({
|
|
|
2902
2902
|
items: {}
|
|
2903
2903
|
},
|
|
2904
2904
|
setup(p) {
|
|
2905
|
-
const t = me(),
|
|
2906
|
-
function
|
|
2905
|
+
const t = me(), a = ae(), o = T();
|
|
2906
|
+
function i(r) {
|
|
2907
2907
|
return o.one.banners.read.includes(r);
|
|
2908
2908
|
}
|
|
2909
2909
|
function u(r) {
|
|
2910
|
-
|
|
2910
|
+
i(r.slug) ? o.one.banners.read = o.one.banners.read.filter((l) => l !== r.slug) : o.one.banners.read.push(r.slug);
|
|
2911
2911
|
}
|
|
2912
2912
|
return (r, l) => (c(), m(ne, {
|
|
2913
2913
|
class: "py-0",
|
|
@@ -2915,7 +2915,7 @@ const at = /* @__PURE__ */ y({
|
|
|
2915
2915
|
lines: "three"
|
|
2916
2916
|
}, {
|
|
2917
2917
|
default: s(() => [
|
|
2918
|
-
r.items.length === 0 ? (c(),
|
|
2918
|
+
r.items.length === 0 ? (c(), k("div", $s, [
|
|
2919
2919
|
n(Ke, {
|
|
2920
2920
|
icon: "$vuetify",
|
|
2921
2921
|
size: "256"
|
|
@@ -2924,12 +2924,12 @@ const at = /* @__PURE__ */ y({
|
|
|
2924
2924
|
n(I, { color: "medium-emphasis" })
|
|
2925
2925
|
]),
|
|
2926
2926
|
title: s(() => [...l[0] || (l[0] = [
|
|
2927
|
-
|
|
2927
|
+
g("div", { class: "text-medium-emphasis" }, " All caught up ", -1)
|
|
2928
2928
|
])]),
|
|
2929
2929
|
_: 1
|
|
2930
2930
|
})
|
|
2931
|
-
])) : (c(),
|
|
2932
|
-
(c(!0),
|
|
2931
|
+
])) : (c(), k("div", xs, [
|
|
2932
|
+
(c(!0), k(D, null, G(r.items, (d) => (c(), k("div", {
|
|
2933
2933
|
key: d.slug,
|
|
2934
2934
|
class: "mb-4"
|
|
2935
2935
|
}, [
|
|
@@ -2951,7 +2951,7 @@ const at = /* @__PURE__ */ y({
|
|
|
2951
2951
|
_: 2
|
|
2952
2952
|
}, 1032, ["color", "image", "title"]),
|
|
2953
2953
|
n(ve, null, {
|
|
2954
|
-
default: s(({ props: f, isHovering:
|
|
2954
|
+
default: s(({ props: f, isHovering: v }) => [
|
|
2955
2955
|
n($e, R({ ref_for: !0 }, f, {
|
|
2956
2956
|
border: "",
|
|
2957
2957
|
class: "px-8 pt-2 pb-4 position-relative",
|
|
@@ -2960,19 +2960,19 @@ const at = /* @__PURE__ */ y({
|
|
|
2960
2960
|
default: s(() => [
|
|
2961
2961
|
n($t, {
|
|
2962
2962
|
location: "bottom",
|
|
2963
|
-
text:
|
|
2963
|
+
text: i(d.slug) ? "Mark as unread" : "Mark as read"
|
|
2964
2964
|
}, {
|
|
2965
2965
|
activator: s(({ props: _ }) => [
|
|
2966
2966
|
n(xe, { "hide-on-leave": "" }, {
|
|
2967
2967
|
default: s(() => [
|
|
2968
2968
|
N(n(A, R({ ref_for: !0 }, _, {
|
|
2969
2969
|
class: "ms-auto float-right",
|
|
2970
|
-
icon: `svg:${
|
|
2970
|
+
icon: `svg:${i(d.slug) ? e(We) : e(qe)}`,
|
|
2971
2971
|
size: "small",
|
|
2972
2972
|
variant: "text",
|
|
2973
|
-
onClick: (
|
|
2973
|
+
onClick: (V) => u(d)
|
|
2974
2974
|
}), null, 16, ["icon", "onClick"]), [
|
|
2975
|
-
[Ie,
|
|
2975
|
+
[Ie, v || e(a).mobile.value]
|
|
2976
2976
|
])
|
|
2977
2977
|
]),
|
|
2978
2978
|
_: 2
|
|
@@ -2980,9 +2980,9 @@ const at = /* @__PURE__ */ y({
|
|
|
2980
2980
|
]),
|
|
2981
2981
|
_: 2
|
|
2982
2982
|
}, 1032, ["text"]),
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2983
|
+
g("div", Ls, C(d.metadata.text), 1),
|
|
2984
|
+
g("div", ws, C(e(t).format(d.created_at, "fullDateWithWeekday")), 1),
|
|
2985
|
+
g("div", Ss, C(d.metadata.subtext), 1),
|
|
2986
2986
|
n(ee, R({ ref_for: !0 }, {
|
|
2987
2987
|
href: d.metadata.link.startsWith("http") ? d.metadata.link : void 0,
|
|
2988
2988
|
target: d.metadata.link.startsWith("http") ? "_blank" : void 0,
|
|
@@ -3019,7 +3019,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3019
3019
|
notification: {}
|
|
3020
3020
|
},
|
|
3021
3021
|
setup(p) {
|
|
3022
|
-
const t = p,
|
|
3022
|
+
const t = p, a = T(), o = me(), i = ae(), u = b(() => {
|
|
3023
3023
|
const d = t.notification.metadata ?? { action: "" };
|
|
3024
3024
|
return {
|
|
3025
3025
|
href: d.action.startsWith("http") ? d.action : void 0,
|
|
@@ -3027,23 +3027,23 @@ const at = /* @__PURE__ */ y({
|
|
|
3027
3027
|
to: d.action.startsWith("http") ? void 0 : d.action,
|
|
3028
3028
|
...t.notification.metadata.attributes,
|
|
3029
3029
|
onClick() {
|
|
3030
|
-
t.demo ||
|
|
3030
|
+
t.demo || a.one.notifications.read.includes(t.notification.slug) || a.one.notifications.read.push(t.notification.slug);
|
|
3031
3031
|
}
|
|
3032
3032
|
};
|
|
3033
3033
|
});
|
|
3034
3034
|
function r(d) {
|
|
3035
|
-
return
|
|
3035
|
+
return a.one.notifications.read.includes(d);
|
|
3036
3036
|
}
|
|
3037
3037
|
function l(d) {
|
|
3038
|
-
t.demo || (r(d.slug) ?
|
|
3038
|
+
t.demo || (r(d.slug) ? a.one.notifications.read = a.one.notifications.read.filter((f) => f !== d.slug) : a.one.notifications.read.push(d.slug));
|
|
3039
3039
|
}
|
|
3040
3040
|
return (d, f) => {
|
|
3041
|
-
const
|
|
3041
|
+
const v = q;
|
|
3042
3042
|
return c(), m(ve, null, {
|
|
3043
|
-
default: s(({ isHovering: _, props:
|
|
3044
|
-
n(
|
|
3043
|
+
default: s(({ isHovering: _, props: V }) => [
|
|
3044
|
+
n(v, R(V, { class: "py-4 mb-0" }), {
|
|
3045
3045
|
prepend: s(() => [
|
|
3046
|
-
|
|
3046
|
+
g("div", Is, C(d.notification.metadata.emoji), 1)
|
|
3047
3047
|
]),
|
|
3048
3048
|
append: s(() => [
|
|
3049
3049
|
n(an, {
|
|
@@ -3055,10 +3055,10 @@ const at = /* @__PURE__ */ y({
|
|
|
3055
3055
|
location: "bottom",
|
|
3056
3056
|
text: r(d.notification.slug) ? "Mark as unread" : "Mark as read"
|
|
3057
3057
|
}, {
|
|
3058
|
-
activator: s(({ props:
|
|
3058
|
+
activator: s(({ props: $ }) => [
|
|
3059
3059
|
n(xe, { "hide-on-leave": "" }, {
|
|
3060
3060
|
default: s(() => [
|
|
3061
|
-
N(n(A, R(
|
|
3061
|
+
N(n(A, R($, {
|
|
3062
3062
|
class: "ms-auto",
|
|
3063
3063
|
icon: `svg:${r(d.notification.slug) ? e(We) : e(qe)}`,
|
|
3064
3064
|
"mdi-email-variant": "",
|
|
@@ -3066,7 +3066,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3066
3066
|
variant: "text",
|
|
3067
3067
|
onClick: f[0] || (f[0] = (L) => l(d.notification))
|
|
3068
3068
|
}), null, 16, ["icon"]), [
|
|
3069
|
-
[Ie, _ || e(
|
|
3069
|
+
[Ie, _ || e(i).mobile.value]
|
|
3070
3070
|
])
|
|
3071
3071
|
]),
|
|
3072
3072
|
_: 2
|
|
@@ -3081,12 +3081,12 @@ const at = /* @__PURE__ */ y({
|
|
|
3081
3081
|
default: s(() => [
|
|
3082
3082
|
n(_t, { class: "text-wrap text-h6 mb-1" }, {
|
|
3083
3083
|
default: s(() => [
|
|
3084
|
-
|
|
3084
|
+
g("div", Ds, C(d.notification.title), 1)
|
|
3085
3085
|
]),
|
|
3086
3086
|
_: 1
|
|
3087
3087
|
}),
|
|
3088
|
-
|
|
3089
|
-
|
|
3088
|
+
g("div", As, C(e(o).format(d.notification.created_at, "fullDateWithWeekday")), 1),
|
|
3089
|
+
g("div", Ts, C(d.notification.metadata.text), 1),
|
|
3090
3090
|
n(ee, R({
|
|
3091
3091
|
"append-icon": `svg:${e(Ae)}`
|
|
3092
3092
|
}, e(u), {
|
|
@@ -3118,7 +3118,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3118
3118
|
items: {}
|
|
3119
3119
|
},
|
|
3120
3120
|
setup(p) {
|
|
3121
|
-
return (t,
|
|
3121
|
+
return (t, a) => {
|
|
3122
3122
|
const o = Us;
|
|
3123
3123
|
return c(), m(ne, {
|
|
3124
3124
|
class: "py-0",
|
|
@@ -3126,7 +3126,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3126
3126
|
lines: "three"
|
|
3127
3127
|
}, {
|
|
3128
3128
|
default: s(() => [
|
|
3129
|
-
t.items.length === 0 ? (c(),
|
|
3129
|
+
t.items.length === 0 ? (c(), k("div", Ps, [
|
|
3130
3130
|
n(Ke, {
|
|
3131
3131
|
icon: "$vuetify",
|
|
3132
3132
|
size: "256"
|
|
@@ -3134,16 +3134,16 @@ const at = /* @__PURE__ */ y({
|
|
|
3134
3134
|
media: s(() => [
|
|
3135
3135
|
n(I, { color: "medium-emphasis" })
|
|
3136
3136
|
]),
|
|
3137
|
-
title: s(() => [...
|
|
3138
|
-
|
|
3137
|
+
title: s(() => [...a[0] || (a[0] = [
|
|
3138
|
+
g("div", { class: "text-medium-emphasis" }, " All caught up ", -1)
|
|
3139
3139
|
])]),
|
|
3140
3140
|
_: 1
|
|
3141
3141
|
})
|
|
3142
|
-
])) : (c(!0),
|
|
3143
|
-
key:
|
|
3142
|
+
])) : (c(!0), k(D, { key: 1 }, G(t.items, (i, u) => (c(), k(D, {
|
|
3143
|
+
key: i.slug
|
|
3144
3144
|
}, [
|
|
3145
|
-
u !== 0 ? (c(), m(Z, { key: 0 })) :
|
|
3146
|
-
n(o, { notification:
|
|
3145
|
+
u !== 0 ? (c(), m(Z, { key: 0 })) : h("", !0),
|
|
3146
|
+
n(o, { notification: i }, null, 8, ["notification"])
|
|
3147
3147
|
], 64))), 128))
|
|
3148
3148
|
]),
|
|
3149
3149
|
_: 1
|
|
@@ -3157,64 +3157,64 @@ const at = /* @__PURE__ */ y({
|
|
|
3157
3157
|
url: t
|
|
3158
3158
|
};
|
|
3159
3159
|
}), Be = K("banners", () => {
|
|
3160
|
-
const p = J(), t = Ut(),
|
|
3160
|
+
const p = J(), t = Ut(), a = T(), o = oe(), i = E([]), u = M(!1), r = b(() => {
|
|
3161
3161
|
if (l.value)
|
|
3162
3162
|
return l.value;
|
|
3163
|
-
if (
|
|
3164
|
-
if (
|
|
3165
|
-
const f = new Date(
|
|
3166
|
-
if (f >
|
|
3163
|
+
if (a.one.banners.enabled) {
|
|
3164
|
+
if (a.one.banners.last) {
|
|
3165
|
+
const f = new Date(a.one.banners.last), v = new Date(Date.now() - 3 * 24 * 60 * 60 * 1e3);
|
|
3166
|
+
if (f > v)
|
|
3167
3167
|
return;
|
|
3168
3168
|
}
|
|
3169
|
-
return
|
|
3169
|
+
return i.value.find(({
|
|
3170
3170
|
slug: f,
|
|
3171
3171
|
metadata: {
|
|
3172
|
-
site:
|
|
3172
|
+
site: v,
|
|
3173
3173
|
active: _
|
|
3174
3174
|
}
|
|
3175
|
-
}) => !_ ||
|
|
3175
|
+
}) => !_ || a.one.banners.read.includes(f) ? !1 : v.includes("dev") && !1 || v.includes("*") ? !0 : v.some((V) => t.id.includes(V)));
|
|
3176
3176
|
}
|
|
3177
|
-
}), l =
|
|
3177
|
+
}), l = b(() => i.value.find(({
|
|
3178
3178
|
metadata: {
|
|
3179
3179
|
site: f,
|
|
3180
|
-
active:
|
|
3180
|
+
active: v
|
|
3181
3181
|
}
|
|
3182
|
-
}) =>
|
|
3182
|
+
}) => v ? f.includes("server") : !1));
|
|
3183
3183
|
async function d() {
|
|
3184
3184
|
try {
|
|
3185
3185
|
u.value = !0;
|
|
3186
3186
|
const f = await p.get("/one/banners");
|
|
3187
|
-
|
|
3187
|
+
i.value = f.banners;
|
|
3188
3188
|
} catch (f) {
|
|
3189
3189
|
o.showError(f?.message ?? "Error fetching banners");
|
|
3190
3190
|
} finally {
|
|
3191
3191
|
u.value = !1;
|
|
3192
3192
|
}
|
|
3193
|
-
return
|
|
3193
|
+
return i.value;
|
|
3194
3194
|
}
|
|
3195
3195
|
return {
|
|
3196
|
-
all:
|
|
3196
|
+
all: i,
|
|
3197
3197
|
isLoading: u,
|
|
3198
3198
|
server: l,
|
|
3199
3199
|
banner: r,
|
|
3200
3200
|
index: d
|
|
3201
3201
|
};
|
|
3202
3202
|
}), Ee = K("notifications", () => {
|
|
3203
|
-
const p = J(), t = T(),
|
|
3203
|
+
const p = J(), t = T(), a = oe(), o = E([]), i = M(!1), u = b(() => o.value.filter((d) => !t.one.notifications.read.includes(d.slug))), r = b(() => o.value.filter((d) => t.one.notifications.read.includes(d.slug)));
|
|
3204
3204
|
async function l() {
|
|
3205
3205
|
try {
|
|
3206
|
-
|
|
3206
|
+
i.value = !0;
|
|
3207
3207
|
const d = await p.get("/one/notifications");
|
|
3208
3208
|
o.value = d.notifications;
|
|
3209
3209
|
} catch (d) {
|
|
3210
|
-
|
|
3210
|
+
a.showError(d?.message ?? "Error fetching notifications");
|
|
3211
3211
|
} finally {
|
|
3212
|
-
|
|
3212
|
+
i.value = !1;
|
|
3213
3213
|
}
|
|
3214
3214
|
return o.value;
|
|
3215
3215
|
}
|
|
3216
3216
|
return {
|
|
3217
|
-
isLoading:
|
|
3217
|
+
isLoading: i,
|
|
3218
3218
|
all: o,
|
|
3219
3219
|
read: r,
|
|
3220
3220
|
unread: u,
|
|
@@ -3228,25 +3228,25 @@ const at = /* @__PURE__ */ y({
|
|
|
3228
3228
|
},
|
|
3229
3229
|
emits: ["update:modelValue"],
|
|
3230
3230
|
setup(p) {
|
|
3231
|
-
const t = ae(),
|
|
3231
|
+
const t = ae(), a = ke(), o = Be(), i = Ee(), u = O(), r = T(), l = M(["read"]), d = W(p, "modelValue");
|
|
3232
3232
|
function f() {
|
|
3233
|
-
const _ =
|
|
3233
|
+
const _ = i.unread.map((V) => V.slug);
|
|
3234
3234
|
r.one.notifications.read.push(..._);
|
|
3235
3235
|
}
|
|
3236
|
-
function
|
|
3236
|
+
function v() {
|
|
3237
3237
|
r.one.notifications.read = [];
|
|
3238
3238
|
}
|
|
3239
|
-
return H(
|
|
3240
|
-
if (
|
|
3239
|
+
return H(a, async () => {
|
|
3240
|
+
if (a.value.one !== "notifications") {
|
|
3241
3241
|
d.value && (d.value = !1);
|
|
3242
3242
|
return;
|
|
3243
3243
|
}
|
|
3244
3244
|
u.isOpen = !0, await be(), d.value = !0;
|
|
3245
|
-
}, { immediate: !0 }), (_,
|
|
3246
|
-
const
|
|
3245
|
+
}, { immediate: !0 }), (_, V) => {
|
|
3246
|
+
const $ = q, L = zs, U = Ms, Y = de;
|
|
3247
3247
|
return c(), m(Y, {
|
|
3248
3248
|
modelValue: d.value,
|
|
3249
|
-
"onUpdate:modelValue":
|
|
3249
|
+
"onUpdate:modelValue": V[2] || (V[2] = (x) => d.value = x),
|
|
3250
3250
|
"prepend-icon": `svg:${e(Ao)}`,
|
|
3251
3251
|
title: "Notifications"
|
|
3252
3252
|
}, {
|
|
@@ -3255,26 +3255,26 @@ const at = /* @__PURE__ */ y({
|
|
|
3255
3255
|
key: 0,
|
|
3256
3256
|
class: "me-2",
|
|
3257
3257
|
density: "comfortable",
|
|
3258
|
-
disabled: e(
|
|
3258
|
+
disabled: e(i).unread.length === 0,
|
|
3259
3259
|
icon: `svg:${e(qe)}`,
|
|
3260
3260
|
size: "small",
|
|
3261
3261
|
variant: "text",
|
|
3262
3262
|
onClick: f
|
|
3263
3263
|
}, null, 8, ["disabled", "icon"])), [
|
|
3264
3264
|
[Q, "Mark All as Read", "start"]
|
|
3265
|
-
]) :
|
|
3265
|
+
]) : h("", !0),
|
|
3266
3266
|
e(l)[0] === "unread" ? N((c(), m(A, {
|
|
3267
3267
|
key: 1,
|
|
3268
3268
|
class: "me-2",
|
|
3269
3269
|
density: "comfortable",
|
|
3270
|
-
disabled: e(
|
|
3270
|
+
disabled: e(i).read.length === 0,
|
|
3271
3271
|
icon: `svg:${e(We)}`,
|
|
3272
3272
|
size: "small",
|
|
3273
3273
|
variant: "text",
|
|
3274
|
-
onClick:
|
|
3274
|
+
onClick: v
|
|
3275
3275
|
}, null, 8, ["disabled", "icon"])), [
|
|
3276
3276
|
[Q, "Mark All as Unread", "start"]
|
|
3277
|
-
]) :
|
|
3277
|
+
]) : h("", !0)
|
|
3278
3278
|
]),
|
|
3279
3279
|
default: s(() => [
|
|
3280
3280
|
n(ue, null, {
|
|
@@ -3287,40 +3287,40 @@ const at = /* @__PURE__ */ y({
|
|
|
3287
3287
|
default: s(() => [
|
|
3288
3288
|
n(ne, {
|
|
3289
3289
|
selected: e(l),
|
|
3290
|
-
"onUpdate:selected":
|
|
3290
|
+
"onUpdate:selected": V[0] || (V[0] = (x) => j(l) ? l.value = x : null),
|
|
3291
3291
|
class: "px-4 pt-4",
|
|
3292
3292
|
density: "compact",
|
|
3293
3293
|
mandatory: "",
|
|
3294
3294
|
nav: ""
|
|
3295
3295
|
}, {
|
|
3296
3296
|
default: s(() => [
|
|
3297
|
-
n(
|
|
3297
|
+
n($, {
|
|
3298
3298
|
"prepend-icon": `svg:${e(To)}`,
|
|
3299
3299
|
title: "Unread",
|
|
3300
3300
|
value: "read"
|
|
3301
3301
|
}, z({ _: 2 }, [
|
|
3302
|
-
e(
|
|
3302
|
+
e(i).unread.length > 0 ? {
|
|
3303
3303
|
name: "append",
|
|
3304
3304
|
fn: s(() => [
|
|
3305
|
-
|
|
3305
|
+
g("span", Os, C(e(i).unread.length), 1)
|
|
3306
3306
|
]),
|
|
3307
3307
|
key: "0"
|
|
3308
3308
|
} : void 0
|
|
3309
3309
|
]), 1032, ["prepend-icon"]),
|
|
3310
|
-
n(
|
|
3310
|
+
n($, {
|
|
3311
3311
|
"prepend-icon": `svg:${e(Uo)}`,
|
|
3312
3312
|
title: "Read",
|
|
3313
3313
|
value: "unread"
|
|
3314
3314
|
}, z({ _: 2 }, [
|
|
3315
|
-
e(
|
|
3315
|
+
e(i).read.length > 0 ? {
|
|
3316
3316
|
name: "append",
|
|
3317
3317
|
fn: s(() => [
|
|
3318
|
-
|
|
3318
|
+
g("span", Bs, C(e(i).read.length), 1)
|
|
3319
3319
|
]),
|
|
3320
3320
|
key: "0"
|
|
3321
3321
|
} : void 0
|
|
3322
3322
|
]), 1032, ["prepend-icon"]),
|
|
3323
|
-
e(o).all.length > 0 && e(r).one.banners.enabled ? (c(), m(
|
|
3323
|
+
e(o).all.length > 0 && e(r).one.banners.enabled ? (c(), m($, {
|
|
3324
3324
|
key: 0,
|
|
3325
3325
|
"prepend-icon": `svg:${e(Po)}`,
|
|
3326
3326
|
title: "Banners",
|
|
@@ -3333,7 +3333,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3333
3333
|
})
|
|
3334
3334
|
]),
|
|
3335
3335
|
_: 1
|
|
3336
|
-
}, 8, ["prepend-icon"])) :
|
|
3336
|
+
}, 8, ["prepend-icon"])) : h("", !0)
|
|
3337
3337
|
]),
|
|
3338
3338
|
_: 1
|
|
3339
3339
|
}, 8, ["selected"])
|
|
@@ -3344,13 +3344,13 @@ const at = /* @__PURE__ */ y({
|
|
|
3344
3344
|
default: s(() => [
|
|
3345
3345
|
n(Ct, {
|
|
3346
3346
|
modelValue: e(l),
|
|
3347
|
-
"onUpdate:modelValue":
|
|
3347
|
+
"onUpdate:modelValue": V[1] || (V[1] = (x) => j(l) ? l.value = x : null)
|
|
3348
3348
|
}, {
|
|
3349
3349
|
default: s(() => [
|
|
3350
3350
|
n(_e, { value: "read" }, {
|
|
3351
3351
|
default: s(() => [
|
|
3352
3352
|
n(L, {
|
|
3353
|
-
items: e(
|
|
3353
|
+
items: e(i).unread
|
|
3354
3354
|
}, null, 8, ["items"])
|
|
3355
3355
|
]),
|
|
3356
3356
|
_: 1
|
|
@@ -3358,7 +3358,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3358
3358
|
n(_e, { value: "unread" }, {
|
|
3359
3359
|
default: s(() => [
|
|
3360
3360
|
n(L, {
|
|
3361
|
-
items: e(
|
|
3361
|
+
items: e(i).read
|
|
3362
3362
|
}, null, 8, ["items"])
|
|
3363
3363
|
]),
|
|
3364
3364
|
_: 1
|
|
@@ -3388,11 +3388,11 @@ const at = /* @__PURE__ */ y({
|
|
|
3388
3388
|
}), Fs = /* @__PURE__ */ y({
|
|
3389
3389
|
__name: "VoNotificationsBadge",
|
|
3390
3390
|
setup(p) {
|
|
3391
|
-
const t = Ee(),
|
|
3392
|
-
return (o,
|
|
3391
|
+
const t = Ee(), a = T();
|
|
3392
|
+
return (o, i) => (c(), m(Ye, {
|
|
3393
3393
|
color: "error",
|
|
3394
3394
|
content: e(t).unread.length,
|
|
3395
|
-
"model-value": e(
|
|
3395
|
+
"model-value": e(a).one.notifications.enabled && e(t).unread.length > 0
|
|
3396
3396
|
}, {
|
|
3397
3397
|
default: s(() => [
|
|
3398
3398
|
w(o.$slots, "default")
|
|
@@ -3403,14 +3403,14 @@ const at = /* @__PURE__ */ y({
|
|
|
3403
3403
|
}), Ns = /* @__PURE__ */ y({
|
|
3404
3404
|
__name: "VoNotificationsNavItem",
|
|
3405
3405
|
setup(p) {
|
|
3406
|
-
const t = Be(),
|
|
3406
|
+
const t = Be(), a = T(), o = Ee(), i = M(!1);
|
|
3407
3407
|
return He(async () => {
|
|
3408
3408
|
o.index(), t.index();
|
|
3409
3409
|
}), (u, r) => {
|
|
3410
3410
|
const l = Fs, d = Es, f = q;
|
|
3411
|
-
return e(
|
|
3411
|
+
return e(a).one.notifications.enabled ? (c(), m(f, {
|
|
3412
3412
|
key: 0,
|
|
3413
|
-
active: e(
|
|
3413
|
+
active: e(i),
|
|
3414
3414
|
link: "",
|
|
3415
3415
|
"prepend-icon": `svg:${e(zo)}`,
|
|
3416
3416
|
rounded: "lg",
|
|
@@ -3418,8 +3418,8 @@ const at = /* @__PURE__ */ y({
|
|
|
3418
3418
|
}, z({
|
|
3419
3419
|
default: s(() => [
|
|
3420
3420
|
n(d, {
|
|
3421
|
-
modelValue: e(
|
|
3422
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
3421
|
+
modelValue: e(i),
|
|
3422
|
+
"onUpdate:modelValue": r[0] || (r[0] = (v) => j(i) ? i.value = v : null)
|
|
3423
3423
|
}, null, 8, ["modelValue"])
|
|
3424
3424
|
]),
|
|
3425
3425
|
_: 2
|
|
@@ -3436,51 +3436,51 @@ const at = /* @__PURE__ */ y({
|
|
|
3436
3436
|
]),
|
|
3437
3437
|
key: "0"
|
|
3438
3438
|
} : void 0
|
|
3439
|
-
]), 1032, ["active", "prepend-icon"])) :
|
|
3439
|
+
]), 1032, ["active", "prepend-icon"])) : h("", !0);
|
|
3440
3440
|
};
|
|
3441
3441
|
}
|
|
3442
3442
|
}), Zs = /* @__PURE__ */ y({
|
|
3443
3443
|
__name: "VoDashboardNavItem",
|
|
3444
3444
|
setup(p) {
|
|
3445
3445
|
const t = O();
|
|
3446
|
-
function
|
|
3446
|
+
function a() {
|
|
3447
3447
|
setTimeout(() => {
|
|
3448
3448
|
t.isOpen = !1;
|
|
3449
3449
|
}, 100);
|
|
3450
3450
|
}
|
|
3451
|
-
return (o,
|
|
3451
|
+
return (o, i) => {
|
|
3452
3452
|
const u = q;
|
|
3453
3453
|
return c(), m(u, {
|
|
3454
3454
|
"prepend-icon": `svg:${e(Oo)}`,
|
|
3455
3455
|
rounded: "lg",
|
|
3456
3456
|
title: "Dashboard",
|
|
3457
3457
|
to: "/user/dashboard",
|
|
3458
|
-
onClick:
|
|
3458
|
+
onClick: a
|
|
3459
3459
|
}, null, 8, ["prepend-icon"]);
|
|
3460
3460
|
};
|
|
3461
3461
|
}
|
|
3462
3462
|
}), Hs = /* @__PURE__ */ y({
|
|
3463
3463
|
__name: "VoUserList",
|
|
3464
3464
|
setup(p) {
|
|
3465
|
-
const t = F(),
|
|
3466
|
-
return (
|
|
3467
|
-
const r = Zs, l = Ns, d = Cs, f = Vs,
|
|
3465
|
+
const t = F(), a = O(), o = De();
|
|
3466
|
+
return (i, u) => {
|
|
3467
|
+
const r = Zs, l = Ns, d = Cs, f = Vs, v = _s, _ = ms, V = ns, $ = Bn, L = Sn, U = bn;
|
|
3468
3468
|
return c(), m(ne, {
|
|
3469
3469
|
density: "compact",
|
|
3470
3470
|
nav: "",
|
|
3471
3471
|
slim: ""
|
|
3472
3472
|
}, {
|
|
3473
3473
|
default: s(() => [
|
|
3474
|
-
e(t).user ? (c(), m(r, { key: 0 })) :
|
|
3474
|
+
e(t).user ? (c(), m(r, { key: 0 })) : h("", !0),
|
|
3475
3475
|
n(l),
|
|
3476
3476
|
n(d),
|
|
3477
|
-
e(o).hasTeamAccess ? (c(), m(f, { key: 1 })) :
|
|
3478
|
-
e(
|
|
3477
|
+
e(o).hasTeamAccess ? (c(), m(f, { key: 1 })) : h("", !0),
|
|
3478
|
+
e(a).shopify ? (c(), m(v, { key: 2 })) : h("", !0),
|
|
3479
3479
|
n(_),
|
|
3480
|
-
e(t).user ? (c(), m(
|
|
3481
|
-
e(
|
|
3480
|
+
e(t).user ? (c(), m(V, { key: 3 })) : h("", !0),
|
|
3481
|
+
e(a).isSubscriber ? (c(), m($, { key: 4 })) : h("", !0),
|
|
3482
3482
|
n(L),
|
|
3483
|
-
e(t).user ? (c(), m(U, { key: 5 })) :
|
|
3483
|
+
e(t).user ? (c(), m(U, { key: 5 })) : h("", !0)
|
|
3484
3484
|
]),
|
|
3485
3485
|
_: 1
|
|
3486
3486
|
});
|
|
@@ -3489,7 +3489,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3489
3489
|
}), js = { class: "mb-2" }, Rs = { key: 0 }, qs = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, Ws = { class: "text-h6" }, Gs = /* @__PURE__ */ y({
|
|
3490
3490
|
__name: "VoUserAvatar",
|
|
3491
3491
|
setup(p) {
|
|
3492
|
-
const t = F(),
|
|
3492
|
+
const t = F(), a = O(), o = T(), i = M(!1), u = b(() => {
|
|
3493
3493
|
const d = [
|
|
3494
3494
|
"https://cdn.vuetifyjs.com/docs/images/avatars/dark.png",
|
|
3495
3495
|
"https://cdn.vuetifyjs.com/docs/images/avatars/blackguard.png",
|
|
@@ -3506,20 +3506,20 @@ const at = /* @__PURE__ */ y({
|
|
|
3506
3506
|
"https://cdn.vuetifyjs.com/docs/images/avatars/blackhole.png",
|
|
3507
3507
|
"https://cdn.vuetifyjs.com/docs/images/avatars/meteor.png"
|
|
3508
3508
|
];
|
|
3509
|
-
return
|
|
3509
|
+
return a.isSubscriber && d.unshift("https://cdn.vuetifyjs.com/docs/images/avatars/one.png"), t.user && d.unshift(t.user.picture), d;
|
|
3510
3510
|
});
|
|
3511
3511
|
function r(d) {
|
|
3512
3512
|
o.one.avatar = d;
|
|
3513
3513
|
}
|
|
3514
3514
|
function l() {
|
|
3515
|
-
|
|
3515
|
+
a.isSubscriber && (i.value = !i.value);
|
|
3516
3516
|
}
|
|
3517
|
-
return (d, f) => (c(),
|
|
3517
|
+
return (d, f) => (c(), k("div", null, [
|
|
3518
3518
|
N((c(), m(te, {
|
|
3519
3519
|
class: Zt([
|
|
3520
3520
|
"border-md border-opacity-100 border-surface-light",
|
|
3521
3521
|
{
|
|
3522
|
-
"cursor-pointer": e(
|
|
3522
|
+
"cursor-pointer": e(a).isSubscriber
|
|
3523
3523
|
}
|
|
3524
3524
|
]),
|
|
3525
3525
|
color: "surface",
|
|
@@ -3541,30 +3541,30 @@ const at = /* @__PURE__ */ y({
|
|
|
3541
3541
|
]),
|
|
3542
3542
|
_: 1
|
|
3543
3543
|
}, 8, ["class"])), [
|
|
3544
|
-
[Xo, e(
|
|
3544
|
+
[Xo, e(a).isSubscriber]
|
|
3545
3545
|
]),
|
|
3546
|
-
|
|
3546
|
+
g("div", js, [
|
|
3547
3547
|
n(Le, null, {
|
|
3548
3548
|
default: s(() => [
|
|
3549
|
-
e(
|
|
3549
|
+
e(i) ? (c(), k("div", Rs, [
|
|
3550
3550
|
n(P, {
|
|
3551
3551
|
class: "pt-6 pb-1",
|
|
3552
3552
|
flat: "",
|
|
3553
3553
|
rounded: "0"
|
|
3554
3554
|
}, {
|
|
3555
3555
|
default: s(() => [
|
|
3556
|
-
|
|
3557
|
-
(c(!0),
|
|
3556
|
+
g("div", qs, [
|
|
3557
|
+
(c(!0), k(D, null, G(e(u), (v, _) => (c(), m(A, {
|
|
3558
3558
|
key: _,
|
|
3559
|
-
active: e(o).one.avatar ===
|
|
3559
|
+
active: e(o).one.avatar === v,
|
|
3560
3560
|
icon: "",
|
|
3561
3561
|
variant: "flat",
|
|
3562
|
-
onClick: (
|
|
3562
|
+
onClick: (V) => r(v)
|
|
3563
3563
|
}, {
|
|
3564
3564
|
default: s(() => [
|
|
3565
3565
|
n(te, {
|
|
3566
3566
|
eager: "",
|
|
3567
|
-
image:
|
|
3567
|
+
image: v
|
|
3568
3568
|
}, null, 8, ["image"])
|
|
3569
3569
|
]),
|
|
3570
3570
|
_: 2
|
|
@@ -3573,19 +3573,19 @@ const at = /* @__PURE__ */ y({
|
|
|
3573
3573
|
]),
|
|
3574
3574
|
_: 1
|
|
3575
3575
|
})
|
|
3576
|
-
])) :
|
|
3576
|
+
])) : h("", !0)
|
|
3577
3577
|
]),
|
|
3578
3578
|
_: 1
|
|
3579
3579
|
})
|
|
3580
3580
|
]),
|
|
3581
|
-
|
|
3581
|
+
g("div", Ws, C(e(t).user?.name ?? "Guest"), 1)
|
|
3582
3582
|
]));
|
|
3583
3583
|
}
|
|
3584
3584
|
}), Ks = ["href"], Ys = /* @__PURE__ */ y({
|
|
3585
3585
|
__name: "VoUserPinnedEcosystem",
|
|
3586
3586
|
setup(p) {
|
|
3587
|
-
const t = T(), { pinned:
|
|
3588
|
-
return (o,
|
|
3587
|
+
const t = T(), { pinned: a } = Tt();
|
|
3588
|
+
return (o, i) => e(t).one.quicklinks && e(a).length > 0 ? (c(), m($e, {
|
|
3589
3589
|
key: 0,
|
|
3590
3590
|
class: "align-center position-absolute d-flex ga-2 pa-2 me-2",
|
|
3591
3591
|
color: "rgba(0,0,0,.54)",
|
|
@@ -3593,11 +3593,11 @@ const at = /* @__PURE__ */ y({
|
|
|
3593
3593
|
style: { right: "0", top: "8px" }
|
|
3594
3594
|
}, {
|
|
3595
3595
|
default: s(() => [
|
|
3596
|
-
(c(!0),
|
|
3596
|
+
(c(!0), k(D, null, G(e(a), (u) => (c(), m(ve, {
|
|
3597
3597
|
key: u.id
|
|
3598
3598
|
}, {
|
|
3599
3599
|
default: s(({ isHovering: r, props: l }) => [
|
|
3600
|
-
N((c(),
|
|
3600
|
+
N((c(), k("a", R({
|
|
3601
3601
|
class: "d-inline-flex",
|
|
3602
3602
|
href: u.href,
|
|
3603
3603
|
target: "_blank"
|
|
@@ -3615,13 +3615,13 @@ const at = /* @__PURE__ */ y({
|
|
|
3615
3615
|
}, 1024))), 128))
|
|
3616
3616
|
]),
|
|
3617
3617
|
_: 1
|
|
3618
|
-
})) :
|
|
3618
|
+
})) : h("", !0);
|
|
3619
3619
|
}
|
|
3620
3620
|
}), Qs = /* @__PURE__ */ y({
|
|
3621
3621
|
__name: "VoUserBadges",
|
|
3622
3622
|
setup(p) {
|
|
3623
|
-
const t = F(),
|
|
3624
|
-
return (
|
|
3623
|
+
const t = F(), a = O(), o = b(() => a.github || a.discord || a.isSubscriber || t.user?.isAdmin);
|
|
3624
|
+
return (i, u) => e(o) ? (c(), m($e, {
|
|
3625
3625
|
key: 0,
|
|
3626
3626
|
class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
|
|
3627
3627
|
color: "rgba(0,0,0,.54)",
|
|
@@ -3636,34 +3636,34 @@ const at = /* @__PURE__ */ y({
|
|
|
3636
3636
|
size: "16"
|
|
3637
3637
|
}, null, 512)), [
|
|
3638
3638
|
[Q, "Vuetify Administrator", "bottom"]
|
|
3639
|
-
]) :
|
|
3640
|
-
e(
|
|
3639
|
+
]) : h("", !0),
|
|
3640
|
+
e(a).isSubscriber ? N((c(), m(I, {
|
|
3641
3641
|
key: 1,
|
|
3642
3642
|
color: "amber-darken-2",
|
|
3643
3643
|
icon: `svg:${e(Bo)}`,
|
|
3644
3644
|
size: "16"
|
|
3645
3645
|
}, null, 8, ["icon"])), [
|
|
3646
3646
|
[Q, "Vuetify One Subscriber", "bottom"]
|
|
3647
|
-
]) :
|
|
3648
|
-
e(
|
|
3647
|
+
]) : h("", !0),
|
|
3648
|
+
e(a).github ? N((c(), m(I, {
|
|
3649
3649
|
key: 2,
|
|
3650
3650
|
color: "white",
|
|
3651
3651
|
icon: "$github",
|
|
3652
3652
|
size: "16"
|
|
3653
3653
|
}, null, 512)), [
|
|
3654
3654
|
[Q, "GitHub Sponsor", "bottom"]
|
|
3655
|
-
]) :
|
|
3656
|
-
e(
|
|
3655
|
+
]) : h("", !0),
|
|
3656
|
+
e(a).discord ? N((c(), m(I, {
|
|
3657
3657
|
key: 3,
|
|
3658
3658
|
color: "white",
|
|
3659
3659
|
icon: "$discord",
|
|
3660
3660
|
size: "16"
|
|
3661
3661
|
}, null, 512)), [
|
|
3662
3662
|
[Q, "Discord Subscriber", "bottom"]
|
|
3663
|
-
]) :
|
|
3663
|
+
]) : h("", !0)
|
|
3664
3664
|
]),
|
|
3665
3665
|
_: 1
|
|
3666
|
-
})) :
|
|
3666
|
+
})) : h("", !0);
|
|
3667
3667
|
}
|
|
3668
3668
|
}), Xs = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, Js = {
|
|
3669
3669
|
key: "reset",
|
|
@@ -3671,13 +3671,13 @@ const at = /* @__PURE__ */ y({
|
|
|
3671
3671
|
}, ea = /* @__PURE__ */ y({
|
|
3672
3672
|
__name: "VoUserColors",
|
|
3673
3673
|
setup(p) {
|
|
3674
|
-
const t = F(),
|
|
3674
|
+
const t = F(), a = O(), o = T(), i = M(!1);
|
|
3675
3675
|
function u() {
|
|
3676
3676
|
o.one.colors.primary = "surface-light";
|
|
3677
3677
|
}
|
|
3678
3678
|
return (r, l) => {
|
|
3679
|
-
const d = Qs, f = Ys,
|
|
3680
|
-
return c(),
|
|
3679
|
+
const d = Qs, f = Ys, v = we;
|
|
3680
|
+
return c(), k(D, null, [
|
|
3681
3681
|
n(se, {
|
|
3682
3682
|
color: e(t).user ? e(o).one.colors.primary : "surface-light",
|
|
3683
3683
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
@@ -3687,13 +3687,13 @@ const at = /* @__PURE__ */ y({
|
|
|
3687
3687
|
rounded: "0"
|
|
3688
3688
|
}, {
|
|
3689
3689
|
default: s(() => [
|
|
3690
|
-
|
|
3690
|
+
g("div", Xs, [
|
|
3691
3691
|
n(d),
|
|
3692
3692
|
n(f),
|
|
3693
3693
|
n(Go, null, {
|
|
3694
3694
|
default: s(() => [
|
|
3695
|
-
N(
|
|
3696
|
-
n(
|
|
3695
|
+
N(g("div", Js, [
|
|
3696
|
+
n(v, {
|
|
3697
3697
|
class: "ms-2 me-1",
|
|
3698
3698
|
color: "inherit",
|
|
3699
3699
|
density: "comfortable",
|
|
@@ -3704,41 +3704,41 @@ const at = /* @__PURE__ */ y({
|
|
|
3704
3704
|
onClick: u
|
|
3705
3705
|
}, null, 8, ["disabled", "icon"])
|
|
3706
3706
|
], 512), [
|
|
3707
|
-
[Ie, e(
|
|
3707
|
+
[Ie, e(i)]
|
|
3708
3708
|
])
|
|
3709
3709
|
]),
|
|
3710
3710
|
_: 1
|
|
3711
3711
|
}),
|
|
3712
|
-
e(
|
|
3712
|
+
e(a).isSubscriber ? (c(), m(v, {
|
|
3713
3713
|
key: 0,
|
|
3714
|
-
active: e(
|
|
3714
|
+
active: e(i),
|
|
3715
3715
|
class: "align-self-end",
|
|
3716
3716
|
color: "inherit",
|
|
3717
3717
|
density: "comfortable",
|
|
3718
|
-
icon: e(
|
|
3718
|
+
icon: e(i) ? `svg:${e(Ve)}` : "$edit",
|
|
3719
3719
|
title: "Edit One Header Color",
|
|
3720
|
-
variant: e(
|
|
3721
|
-
onClick: l[0] || (l[0] = (_) =>
|
|
3720
|
+
variant: e(i) ? "text" : "plain",
|
|
3721
|
+
onClick: l[0] || (l[0] = (_) => i.value = !e(i))
|
|
3722
3722
|
}, {
|
|
3723
3723
|
default: s(() => [
|
|
3724
3724
|
n(xe, { "leave-absolute": "" }, {
|
|
3725
3725
|
default: s(() => [
|
|
3726
3726
|
(c(), m(I, {
|
|
3727
|
-
key: String(e(
|
|
3727
|
+
key: String(e(i))
|
|
3728
3728
|
}))
|
|
3729
3729
|
]),
|
|
3730
3730
|
_: 1
|
|
3731
3731
|
})
|
|
3732
3732
|
]),
|
|
3733
3733
|
_: 1
|
|
3734
|
-
}, 8, ["active", "icon", "variant"])) :
|
|
3734
|
+
}, 8, ["active", "icon", "variant"])) : h("", !0)
|
|
3735
3735
|
])
|
|
3736
3736
|
]),
|
|
3737
3737
|
_: 1
|
|
3738
3738
|
}, 8, ["color"]),
|
|
3739
3739
|
n(Le, null, {
|
|
3740
3740
|
default: s(() => [
|
|
3741
|
-
e(
|
|
3741
|
+
e(i) ? (c(), m(ln, {
|
|
3742
3742
|
key: 0,
|
|
3743
3743
|
elevation: "0",
|
|
3744
3744
|
height: "250",
|
|
@@ -3751,7 +3751,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3751
3751
|
"swatches-max-height": "200",
|
|
3752
3752
|
width: "278",
|
|
3753
3753
|
"onUpdate:modelValue": l[1] || (l[1] = (_) => e(o).one.colors.primary = _)
|
|
3754
|
-
}, null, 8, ["model-value"])) :
|
|
3754
|
+
}, null, 8, ["model-value"])) : h("", !0)
|
|
3755
3755
|
]),
|
|
3756
3756
|
_: 1
|
|
3757
3757
|
})
|
|
@@ -3761,16 +3761,16 @@ const at = /* @__PURE__ */ y({
|
|
|
3761
3761
|
}), ta = { class: "text-center mt-n9 mb-4" }, oa = /* @__PURE__ */ y({
|
|
3762
3762
|
__name: "VoUserMenu",
|
|
3763
3763
|
setup(p) {
|
|
3764
|
-
const t = Be(),
|
|
3764
|
+
const t = Be(), a = O(), o = E();
|
|
3765
3765
|
return H(() => t.banner, async () => {
|
|
3766
|
-
await new Promise((
|
|
3767
|
-
}, { flush: "pre" }), (
|
|
3766
|
+
await new Promise((i) => setTimeout(i, 300)), a.isOpen && o.value?.updateLocation?.();
|
|
3767
|
+
}, { flush: "pre" }), (i, u) => {
|
|
3768
3768
|
const r = ea, l = Gs, d = Hs, f = Dt;
|
|
3769
3769
|
return c(), m(Ue, {
|
|
3770
3770
|
ref_key: "menu",
|
|
3771
3771
|
ref: o,
|
|
3772
|
-
modelValue: e(
|
|
3773
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
3772
|
+
modelValue: e(a).isOpen,
|
|
3773
|
+
"onUpdate:modelValue": u[0] || (u[0] = (v) => e(a).isOpen = v),
|
|
3774
3774
|
activator: "parent",
|
|
3775
3775
|
"close-on-click": !1,
|
|
3776
3776
|
"close-on-content-click": !1,
|
|
@@ -3785,7 +3785,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3785
3785
|
}, {
|
|
3786
3786
|
default: s(() => [
|
|
3787
3787
|
n(r),
|
|
3788
|
-
|
|
3788
|
+
g("div", ta, [
|
|
3789
3789
|
n(l)
|
|
3790
3790
|
]),
|
|
3791
3791
|
n(Z),
|
|
@@ -3803,11 +3803,11 @@ const at = /* @__PURE__ */ y({
|
|
|
3803
3803
|
}), na = { class: "me-n3" }, sa = /* @__PURE__ */ y({
|
|
3804
3804
|
__name: "VoTeamInvite",
|
|
3805
3805
|
setup(p) {
|
|
3806
|
-
const t = De(),
|
|
3807
|
-
function o(
|
|
3808
|
-
t.clearTeamQuery(),
|
|
3806
|
+
const t = De(), a = b(() => t.team?.name ?? `${t.team?.owner.name}'s team`);
|
|
3807
|
+
function o(i) {
|
|
3808
|
+
t.clearTeamQuery(), i.value = !1;
|
|
3809
3809
|
}
|
|
3810
|
-
return (
|
|
3810
|
+
return (i, u) => e(t).teamInviteDialog ? (c(), m(Ce, {
|
|
3811
3811
|
key: 0,
|
|
3812
3812
|
modelValue: e(t).teamInviteDialog,
|
|
3813
3813
|
"onUpdate:modelValue": u[1] || (u[1] = (r) => e(t).teamInviteDialog = r),
|
|
@@ -3820,7 +3820,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3820
3820
|
title: "Join a Team"
|
|
3821
3821
|
}, {
|
|
3822
3822
|
append: s(() => [
|
|
3823
|
-
|
|
3823
|
+
g("div", na, [
|
|
3824
3824
|
n(A, {
|
|
3825
3825
|
icon: "$close",
|
|
3826
3826
|
size: "x-small",
|
|
@@ -3831,7 +3831,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3831
3831
|
]),
|
|
3832
3832
|
text: s(() => [
|
|
3833
3833
|
u[2] || (u[2] = S(" You have been invited to join ", -1)),
|
|
3834
|
-
|
|
3834
|
+
g("strong", null, C(e(a)), 1),
|
|
3835
3835
|
u[3] || (u[3] = S("! ", -1))
|
|
3836
3836
|
]),
|
|
3837
3837
|
default: s(() => [
|
|
@@ -3863,7 +3863,7 @@ const at = /* @__PURE__ */ y({
|
|
|
3863
3863
|
}, 1032, ["prepend-icon"])
|
|
3864
3864
|
]),
|
|
3865
3865
|
_: 1
|
|
3866
|
-
}, 8, ["modelValue"])) :
|
|
3866
|
+
}, 8, ["modelValue"])) : h("", !0);
|
|
3867
3867
|
}
|
|
3868
3868
|
}), aa = { key: 0 }, Pt = /* @__PURE__ */ y({
|
|
3869
3869
|
__name: "VoAuthBtn",
|
|
@@ -3871,18 +3871,18 @@ const at = /* @__PURE__ */ y({
|
|
|
3871
3871
|
external: Boolean
|
|
3872
3872
|
},
|
|
3873
3873
|
setup(p) {
|
|
3874
|
-
const t = F(),
|
|
3875
|
-
function
|
|
3874
|
+
const t = F(), a = Ee(), o = O(), i = T(), { lgAndUp: u, smAndUp: r } = ae(), l = b(() => o.isOpen || !t.user ? i.one.colors.primary === "surface-light" ? "primary" : i.one.colors.primary : "surface-light"), d = ge(() => i.one.notifications.enabled && a.unread.length > 0), f = ge(() => o.isSubscriber && !i.ecosystem.mcp.seen), v = ge(() => !!t.user && (d.value || f.value)), _ = ge(() => f.value ? "success" : "error");
|
|
3875
|
+
function V() {
|
|
3876
3876
|
t.user || (t.dialog = !0);
|
|
3877
3877
|
}
|
|
3878
|
-
return (
|
|
3878
|
+
return ($, L) => {
|
|
3879
3879
|
const U = oa, Y = we, x = It, pe = pn;
|
|
3880
|
-
return c(),
|
|
3880
|
+
return c(), k(D, null, [
|
|
3881
3881
|
n(Ye, {
|
|
3882
3882
|
color: e(_),
|
|
3883
3883
|
dot: "",
|
|
3884
3884
|
location: "end top",
|
|
3885
|
-
"model-value": e(
|
|
3885
|
+
"model-value": e(v),
|
|
3886
3886
|
"offset-x": e(t).user ? -2 : 0,
|
|
3887
3887
|
"offset-y": e(t).user ? 5 : 0
|
|
3888
3888
|
}, {
|
|
@@ -3899,19 +3899,19 @@ const at = /* @__PURE__ */ y({
|
|
|
3899
3899
|
size: e(r) ? "default" : "small",
|
|
3900
3900
|
style: { transition: ".2s ease" },
|
|
3901
3901
|
variant: e(t).user ? e(o).isOpen ? "outlined" : "text" : "flat",
|
|
3902
|
-
onClick:
|
|
3902
|
+
onClick: V
|
|
3903
3903
|
}), {
|
|
3904
3904
|
default: s(() => [
|
|
3905
3905
|
e(t).user ? (c(), m(te, {
|
|
3906
3906
|
key: 0,
|
|
3907
|
-
image: e(
|
|
3908
|
-
}, null, 8, ["image"])) : (c(),
|
|
3909
|
-
e(r) ? (c(),
|
|
3907
|
+
image: e(i).one.avatar || e(t).user.picture || ""
|
|
3908
|
+
}, null, 8, ["image"])) : (c(), k(D, { key: 1 }, [
|
|
3909
|
+
e(r) ? (c(), k("span", aa, "Login")) : (c(), m(I, {
|
|
3910
3910
|
key: 1,
|
|
3911
3911
|
icon: `svg:${e(nt)}`
|
|
3912
3912
|
}, null, 8, ["icon"]))
|
|
3913
3913
|
], 64)),
|
|
3914
|
-
e(t).user ? (c(), m(U, { key: 2 })) :
|
|
3914
|
+
e(t).user ? (c(), m(U, { key: 2 })) : h("", !0)
|
|
3915
3915
|
]),
|
|
3916
3916
|
_: 1
|
|
3917
3917
|
}, 16, ["border", "color", "icon", "loading", "size", "variant"])
|
|
@@ -3938,10 +3938,10 @@ const at = /* @__PURE__ */ y({
|
|
|
3938
3938
|
},
|
|
3939
3939
|
emits: ["update:modelValue"],
|
|
3940
3940
|
setup(p) {
|
|
3941
|
-
const t = W(p, "modelValue"),
|
|
3942
|
-
return (o,
|
|
3941
|
+
const t = W(p, "modelValue"), a = ut();
|
|
3942
|
+
return (o, i) => (c(), m(Ue, {
|
|
3943
3943
|
modelValue: t.value,
|
|
3944
|
-
"onUpdate:modelValue":
|
|
3944
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => t.value = u),
|
|
3945
3945
|
"close-on-content-click": !1,
|
|
3946
3946
|
"max-height": 500,
|
|
3947
3947
|
"min-width": 300
|
|
@@ -3960,28 +3960,28 @@ const at = /* @__PURE__ */ y({
|
|
|
3960
3960
|
rounded: "lg"
|
|
3961
3961
|
}, {
|
|
3962
3962
|
default: s(() => [
|
|
3963
|
-
|
|
3963
|
+
a.prepend ? (c(), k("div", ia, [
|
|
3964
3964
|
w(o.$slots, "prepend")
|
|
3965
|
-
])) :
|
|
3966
|
-
|
|
3967
|
-
|
|
3965
|
+
])) : h("", !0),
|
|
3966
|
+
a.title ? (c(), k(D, { key: 1 }, [
|
|
3967
|
+
a.prepend ? (c(), m(Z, {
|
|
3968
3968
|
key: 0,
|
|
3969
3969
|
class: "mb-3"
|
|
3970
|
-
})) :
|
|
3971
|
-
|
|
3970
|
+
})) : h("", !0),
|
|
3971
|
+
g("div", ra, [
|
|
3972
3972
|
w(o.$slots, "title")
|
|
3973
3973
|
])
|
|
3974
|
-
], 64)) :
|
|
3975
|
-
|
|
3976
|
-
|
|
3974
|
+
], 64)) : h("", !0),
|
|
3975
|
+
a.default ? w(o.$slots, "default", { key: 2 }) : h("", !0),
|
|
3976
|
+
a.extension ? (c(), k("div", la, [
|
|
3977
3977
|
w(o.$slots, "extension")
|
|
3978
|
-
])) :
|
|
3979
|
-
|
|
3978
|
+
])) : h("", !0),
|
|
3979
|
+
a.append ? (c(), k(D, { key: 4 }, [
|
|
3980
3980
|
n(Z, { class: "my-3" }),
|
|
3981
|
-
|
|
3981
|
+
g("div", ua, [
|
|
3982
3982
|
w(o.$slots, "append")
|
|
3983
3983
|
])
|
|
3984
|
-
], 64)) :
|
|
3984
|
+
], 64)) : h("", !0)
|
|
3985
3985
|
]),
|
|
3986
3986
|
_: 3
|
|
3987
3987
|
})
|
|
@@ -4000,9 +4000,9 @@ const at = /* @__PURE__ */ y({
|
|
|
4000
4000
|
}),
|
|
4001
4001
|
emits: ["update:mobileMenu"],
|
|
4002
4002
|
setup(p) {
|
|
4003
|
-
const t = p,
|
|
4004
|
-
return (f,
|
|
4005
|
-
const _ = lt("router-link"),
|
|
4003
|
+
const t = p, a = W(p, "mobileMenu"), o = ut(), i = Te(), u = Pe(), { mobile: r } = ae(), l = b(() => t.responsive == !0 && r.value), d = b(() => `https://cdn.vuetifyjs.com/docs/images/one/logos/${t.logo}-logo-${i.current.value.dark ? "dark" : "light"}.png`);
|
|
4004
|
+
return (f, v) => {
|
|
4005
|
+
const _ = lt("router-link"), V = ca, $ = Pt;
|
|
4006
4006
|
return c(), m(xt, {
|
|
4007
4007
|
class: "border-b",
|
|
4008
4008
|
image: e(u).suit["app-bar"],
|
|
@@ -4022,14 +4022,14 @@ const at = /* @__PURE__ */ y({
|
|
|
4022
4022
|
_: 1
|
|
4023
4023
|
}),
|
|
4024
4024
|
w(f.$slots, "prepend-fixed"),
|
|
4025
|
-
e(l) ?
|
|
4025
|
+
e(l) ? h("", !0) : w(f.$slots, "prepend", { key: 0 })
|
|
4026
4026
|
]),
|
|
4027
4027
|
append: s(() => [
|
|
4028
4028
|
w(f.$slots, "append-fixed"),
|
|
4029
|
-
e(l) ? (c(), m(
|
|
4029
|
+
e(l) ? (c(), m(V, {
|
|
4030
4030
|
key: 0,
|
|
4031
|
-
modelValue:
|
|
4032
|
-
"onUpdate:modelValue":
|
|
4031
|
+
modelValue: a.value,
|
|
4032
|
+
"onUpdate:modelValue": v[0] || (v[0] = (L) => a.value = L)
|
|
4033
4033
|
}, z({
|
|
4034
4034
|
activator: s((L) => [
|
|
4035
4035
|
w(f.$slots, "menu-activator", ct(dt(L)))
|
|
@@ -4048,11 +4048,11 @@ const at = /* @__PURE__ */ y({
|
|
|
4048
4048
|
class: "align-self-center h-100 mx-2 mx-sm-4",
|
|
4049
4049
|
length: "20",
|
|
4050
4050
|
vertical: ""
|
|
4051
|
-
})) :
|
|
4052
|
-
n(
|
|
4051
|
+
})) : h("", !0),
|
|
4052
|
+
n($)
|
|
4053
4053
|
]),
|
|
4054
4054
|
default: s(() => [
|
|
4055
|
-
e(l) ?
|
|
4055
|
+
e(l) ? h("", !0) : w(f.$slots, "default", { key: 0 })
|
|
4056
4056
|
]),
|
|
4057
4057
|
_: 2
|
|
4058
4058
|
}, [
|
|
@@ -4091,18 +4091,18 @@ const at = /* @__PURE__ */ y({
|
|
|
4091
4091
|
},
|
|
4092
4092
|
emits: ["script:error", "script:load"],
|
|
4093
4093
|
setup(p, { emit: t }) {
|
|
4094
|
-
const
|
|
4094
|
+
const a = p, o = t, i = E(), u = E();
|
|
4095
4095
|
return je(async () => {
|
|
4096
4096
|
const r = document.createElement("script"), l = () => o("script:error");
|
|
4097
|
-
r.type = "text/javascript", r.id =
|
|
4097
|
+
r.type = "text/javascript", r.id = a.scriptId, r.src = a.src, r.addEventListener("load", () => o("script:load")), r.onerror = l, u.value = r;
|
|
4098
4098
|
}), He(() => {
|
|
4099
|
-
u.value &&
|
|
4099
|
+
u.value && i.value && i.value.append(u.value);
|
|
4100
4100
|
}), Ht(() => {
|
|
4101
|
-
u.value &&
|
|
4102
|
-
}), (r, l) => (c(),
|
|
4101
|
+
u.value && i.value && u.value.remove();
|
|
4102
|
+
}), (r, l) => (c(), k("div", {
|
|
4103
4103
|
id: p.id,
|
|
4104
4104
|
ref_key: "rootEl",
|
|
4105
|
-
ref:
|
|
4105
|
+
ref: i
|
|
4106
4106
|
}, null, 8, pa));
|
|
4107
4107
|
}
|
|
4108
4108
|
}), fa = {
|
|
@@ -4114,36 +4114,36 @@ const at = /* @__PURE__ */ y({
|
|
|
4114
4114
|
image: {}
|
|
4115
4115
|
},
|
|
4116
4116
|
setup(p) {
|
|
4117
|
-
return (t,
|
|
4117
|
+
return (t, a) => (c(), m(un, {
|
|
4118
4118
|
class: "vo-footer",
|
|
4119
4119
|
height: "40"
|
|
4120
4120
|
}, {
|
|
4121
4121
|
default: s(() => [
|
|
4122
|
-
t.image || t.$slots.image ? (c(),
|
|
4122
|
+
t.image || t.$slots.image ? (c(), k("div", fa, [
|
|
4123
4123
|
t.$slots.image ? w(t.$slots, "image", { key: 0 }, void 0, !0) : (c(), m(se, {
|
|
4124
4124
|
key: 1,
|
|
4125
4125
|
cover: "",
|
|
4126
4126
|
position: "left",
|
|
4127
4127
|
src: t.image
|
|
4128
4128
|
}, null, 8, ["src"]))
|
|
4129
|
-
])) :
|
|
4129
|
+
])) : h("", !0),
|
|
4130
4130
|
w(t.$slots, "default", {}, void 0, !0)
|
|
4131
4131
|
]),
|
|
4132
4132
|
_: 3
|
|
4133
4133
|
}));
|
|
4134
4134
|
}
|
|
4135
4135
|
}), Xe = (p, t) => {
|
|
4136
|
-
const
|
|
4137
|
-
for (const [o,
|
|
4138
|
-
|
|
4139
|
-
return
|
|
4136
|
+
const a = p.__vccOpts || p;
|
|
4137
|
+
for (const [o, i] of t)
|
|
4138
|
+
a[o] = i;
|
|
4139
|
+
return a;
|
|
4140
4140
|
}, zt = /* @__PURE__ */ Xe(va, [["__scopeId", "data-v-31335c0a"]]), ga = ["href", "title"], _a = {
|
|
4141
4141
|
class: "text-caption text-disabled",
|
|
4142
4142
|
style: { position: "absolute", right: "16px" }
|
|
4143
4143
|
}, ya = /* @__PURE__ */ y({
|
|
4144
4144
|
__name: "VoSocialFooter",
|
|
4145
4145
|
setup(p) {
|
|
4146
|
-
const t = Pe(),
|
|
4146
|
+
const t = Pe(), a = [
|
|
4147
4147
|
{
|
|
4148
4148
|
title: "Vuetify Documentation",
|
|
4149
4149
|
icon: "$vuetify",
|
|
@@ -4175,7 +4175,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4175
4175
|
href: "https://reddit.com/r/vuetifyjs"
|
|
4176
4176
|
}
|
|
4177
4177
|
];
|
|
4178
|
-
return (o,
|
|
4178
|
+
return (o, i) => {
|
|
4179
4179
|
const u = zt;
|
|
4180
4180
|
return c(), m(u, {
|
|
4181
4181
|
class: "vo-footer",
|
|
@@ -4183,7 +4183,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4183
4183
|
image: e(t).suit.footer
|
|
4184
4184
|
}, z({
|
|
4185
4185
|
default: s(() => [
|
|
4186
|
-
(c(),
|
|
4186
|
+
(c(), k(D, null, G(a, (r) => g("a", {
|
|
4187
4187
|
key: r.title,
|
|
4188
4188
|
class: "d-inline-block mx-2 social-link",
|
|
4189
4189
|
href: r.href,
|
|
@@ -4196,9 +4196,9 @@ const at = /* @__PURE__ */ y({
|
|
|
4196
4196
|
size: r.icon === "$vuetify" ? 24 : 16
|
|
4197
4197
|
}, null, 8, ["icon", "size"])
|
|
4198
4198
|
], 8, ga)), 64)),
|
|
4199
|
-
|
|
4200
|
-
S(" © 2016-" +
|
|
4201
|
-
|
|
4199
|
+
g("div", _a, [
|
|
4200
|
+
S(" © 2016-" + C((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
|
|
4201
|
+
i[0] || (i[0] = g("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1))
|
|
4202
4202
|
])
|
|
4203
4203
|
]),
|
|
4204
4204
|
_: 2
|
|
@@ -4219,34 +4219,34 @@ const at = /* @__PURE__ */ y({
|
|
|
4219
4219
|
demo: { type: Boolean }
|
|
4220
4220
|
},
|
|
4221
4221
|
setup(p) {
|
|
4222
|
-
jt((
|
|
4222
|
+
jt(($) => ({
|
|
4223
4223
|
"581d2818": e(r)?.metadata.bg_blur
|
|
4224
4224
|
}));
|
|
4225
|
-
const t = p, { mdAndUp:
|
|
4225
|
+
const t = p, { mdAndUp: a } = ae(), o = cn(), i = T(), u = Be(), r = b(() => u.banner), l = b(() => r.value?.metadata.height || (r.value?.metadata.subtext ? 88 : 48)), d = b(() => t.demo ? !0 : !!r.value && !i.one.banners.read.includes(r.value.slug));
|
|
4226
4226
|
function f() {
|
|
4227
|
-
t.demo || r.value && (
|
|
4227
|
+
t.demo || r.value && (i.one.banners.read.push(r.value.slug), i.one.banners.last = (/* @__PURE__ */ new Date()).toISOString());
|
|
4228
4228
|
}
|
|
4229
|
-
async function
|
|
4229
|
+
async function v($) {
|
|
4230
4230
|
if (!r.value) return;
|
|
4231
|
-
|
|
4231
|
+
i.one.banners.last = (/* @__PURE__ */ new Date()).toISOString();
|
|
4232
4232
|
const L = r.value?.metadata ?? { link: "" };
|
|
4233
4233
|
if (!L.link.includes("?one=")) return;
|
|
4234
|
-
|
|
4234
|
+
$.preventDefault(), $.stopPropagation();
|
|
4235
4235
|
const U = L.link.split("?one=")[1];
|
|
4236
4236
|
o.push({ query: { one: U } });
|
|
4237
4237
|
}
|
|
4238
|
-
const _ =
|
|
4239
|
-
const
|
|
4238
|
+
const _ = b(() => {
|
|
4239
|
+
const $ = r.value?.metadata ?? { link: "" };
|
|
4240
4240
|
return {
|
|
4241
|
-
href:
|
|
4242
|
-
target:
|
|
4243
|
-
to:
|
|
4241
|
+
href: $.link.startsWith("http") ? $.link : void 0,
|
|
4242
|
+
target: $.link.startsWith("http") ? "_blank" : void 0,
|
|
4243
|
+
to: $.link.startsWith("http") ? void 0 : $.link,
|
|
4244
4244
|
...r.value?.metadata.attributes
|
|
4245
4245
|
};
|
|
4246
|
-
}),
|
|
4247
|
-
const
|
|
4248
|
-
if (
|
|
4249
|
-
const L = new URL(
|
|
4246
|
+
}), V = b(() => {
|
|
4247
|
+
const $ = r.value?.metadata.images.bg?.url;
|
|
4248
|
+
if (!$?.startsWith("https://cdn.cosmicjs.com/")) return $;
|
|
4249
|
+
const L = new URL($);
|
|
4250
4250
|
return L.host = "imgix.cosmicjs.com", L.search = new URLSearchParams({
|
|
4251
4251
|
auto: "format,compress",
|
|
4252
4252
|
q: "10",
|
|
@@ -4255,14 +4255,14 @@ const at = /* @__PURE__ */ y({
|
|
|
4255
4255
|
h: "256"
|
|
4256
4256
|
}).toString(), L.toString();
|
|
4257
4257
|
});
|
|
4258
|
-
return (
|
|
4258
|
+
return ($, L) => e(r) ? (c(), m(xt, {
|
|
4259
4259
|
key: 0,
|
|
4260
4260
|
class: "vo-notifications-banner",
|
|
4261
4261
|
color: e(r).metadata.color,
|
|
4262
4262
|
flat: "",
|
|
4263
4263
|
height: e(l),
|
|
4264
|
-
image: e(
|
|
4265
|
-
location:
|
|
4264
|
+
image: e(V),
|
|
4265
|
+
location: $.demo ? "bottom" : void 0,
|
|
4266
4266
|
"model-value": e(d),
|
|
4267
4267
|
order: "-1"
|
|
4268
4268
|
}, {
|
|
@@ -4271,7 +4271,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4271
4271
|
active: !1,
|
|
4272
4272
|
class: "flex-grow-1 py-6",
|
|
4273
4273
|
lines: "two"
|
|
4274
|
-
}, e(_), { onClick:
|
|
4274
|
+
}, e(_), { onClick: v }), {
|
|
4275
4275
|
prepend: s(() => [
|
|
4276
4276
|
e(r).metadata.images.logo ? (c(), m(te, {
|
|
4277
4277
|
key: 0,
|
|
@@ -4280,10 +4280,10 @@ const at = /* @__PURE__ */ y({
|
|
|
4280
4280
|
size: "x-large",
|
|
4281
4281
|
tile: "",
|
|
4282
4282
|
variant: "text"
|
|
4283
|
-
}, null, 8, ["image"])) :
|
|
4283
|
+
}, null, 8, ["image"])) : h("", !0)
|
|
4284
4284
|
]),
|
|
4285
4285
|
append: s(() => [
|
|
4286
|
-
e(
|
|
4286
|
+
e(a) && e(r).metadata.link && e(r).metadata.link_text ? (c(), m(ve, { key: 0 }, {
|
|
4287
4287
|
default: s(({ isHovering: U, props: Y }) => [
|
|
4288
4288
|
n(A, R({
|
|
4289
4289
|
"append-icon": `svg:${e(Ae)}`,
|
|
@@ -4296,16 +4296,16 @@ const at = /* @__PURE__ */ y({
|
|
|
4296
4296
|
...e(_)
|
|
4297
4297
|
}, {
|
|
4298
4298
|
variant: "elevated",
|
|
4299
|
-
onClick: ye(
|
|
4299
|
+
onClick: ye(v, ["stop"])
|
|
4300
4300
|
}), {
|
|
4301
4301
|
default: s(() => [
|
|
4302
|
-
S(
|
|
4302
|
+
S(C(e(r).metadata.link_text), 1)
|
|
4303
4303
|
]),
|
|
4304
4304
|
_: 1
|
|
4305
4305
|
}, 16, ["append-icon", "color", "elevation", "title"])
|
|
4306
4306
|
]),
|
|
4307
4307
|
_: 1
|
|
4308
|
-
})) :
|
|
4308
|
+
})) : h("", !0),
|
|
4309
4309
|
e(r).metadata.closable ? (c(), m(A, {
|
|
4310
4310
|
key: 1,
|
|
4311
4311
|
class: "ms-6 me-2",
|
|
@@ -4314,7 +4314,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4314
4314
|
size: "small",
|
|
4315
4315
|
variant: "plain",
|
|
4316
4316
|
onClick: ye(f, ["prevent", "stop"])
|
|
4317
|
-
})) :
|
|
4317
|
+
})) : h("", !0)
|
|
4318
4318
|
]),
|
|
4319
4319
|
default: s(() => [
|
|
4320
4320
|
e(r).metadata.text ? (c(), m(_t, {
|
|
@@ -4322,22 +4322,22 @@ const at = /* @__PURE__ */ y({
|
|
|
4322
4322
|
class: "text-subtitle-2 text-md-subtitle-1 font-weight-medium"
|
|
4323
4323
|
}, {
|
|
4324
4324
|
default: s(() => [
|
|
4325
|
-
S(
|
|
4325
|
+
S(C(e(r).metadata.text), 1)
|
|
4326
4326
|
]),
|
|
4327
4327
|
_: 1
|
|
4328
|
-
})) :
|
|
4328
|
+
})) : h("", !0),
|
|
4329
4329
|
e(r).metadata.subtext ? (c(), m(jo, { key: 1 }, {
|
|
4330
4330
|
default: s(() => [
|
|
4331
|
-
S(
|
|
4331
|
+
S(C(e(r).metadata.subtext), 1)
|
|
4332
4332
|
]),
|
|
4333
4333
|
_: 1
|
|
4334
|
-
})) :
|
|
4334
|
+
})) : h("", !0)
|
|
4335
4335
|
]),
|
|
4336
4336
|
_: 1
|
|
4337
4337
|
}, 16)
|
|
4338
4338
|
]),
|
|
4339
4339
|
_: 1
|
|
4340
|
-
}, 8, ["color", "height", "image", "location", "model-value"])) :
|
|
4340
|
+
}, 8, ["color", "height", "image", "location", "model-value"])) : h("", !0);
|
|
4341
4341
|
}
|
|
4342
4342
|
}), ka = /* @__PURE__ */ Xe(ba, [["__scopeId", "data-v-dee53f67"]]), Va = {
|
|
4343
4343
|
key: 0,
|
|
@@ -4350,7 +4350,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4350
4350
|
minHeight: {}
|
|
4351
4351
|
},
|
|
4352
4352
|
setup(p) {
|
|
4353
|
-
return (t,
|
|
4353
|
+
return (t, a) => (c(), m(P, {
|
|
4354
4354
|
class: "d-inline-flex flex-child-1 position-relative",
|
|
4355
4355
|
color: "surface-light",
|
|
4356
4356
|
flat: "",
|
|
@@ -4368,7 +4368,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4368
4368
|
]),
|
|
4369
4369
|
_: 3
|
|
4370
4370
|
}, 8, ["min-height"]),
|
|
4371
|
-
t.caption ? (c(),
|
|
4371
|
+
t.caption ? (c(), k("div", Va, C(t.caption), 1)) : h("", !0)
|
|
4372
4372
|
]),
|
|
4373
4373
|
_: 2
|
|
4374
4374
|
}, [
|
|
@@ -4389,28 +4389,28 @@ const at = /* @__PURE__ */ y({
|
|
|
4389
4389
|
]), 1024));
|
|
4390
4390
|
}
|
|
4391
4391
|
}), Je = K("promotions", () => {
|
|
4392
|
-
const p = J(), t = oe(),
|
|
4392
|
+
const p = J(), t = oe(), a = E([]), o = M(!1), i = M(!1), u = b(() => a.value.filter((d) => d.metadata.discoverable));
|
|
4393
4393
|
je(l);
|
|
4394
4394
|
function r(d) {
|
|
4395
|
-
const f = d.filter((
|
|
4395
|
+
const f = d.filter((v) => v.metadata.active);
|
|
4396
4396
|
return f[Math.floor(Math.random() * f.length)];
|
|
4397
4397
|
}
|
|
4398
4398
|
async function l() {
|
|
4399
4399
|
try {
|
|
4400
4400
|
o.value = !0;
|
|
4401
4401
|
const d = await p.get("/one/promotions");
|
|
4402
|
-
|
|
4402
|
+
a.value = d.promotions;
|
|
4403
4403
|
} catch (d) {
|
|
4404
4404
|
t.showError(d?.message ?? "Error fetching promotions");
|
|
4405
4405
|
} finally {
|
|
4406
|
-
o.value = !1,
|
|
4406
|
+
o.value = !1, i.value = !0;
|
|
4407
4407
|
}
|
|
4408
|
-
return
|
|
4408
|
+
return a.value;
|
|
4409
4409
|
}
|
|
4410
4410
|
return {
|
|
4411
|
-
all:
|
|
4411
|
+
all: a,
|
|
4412
4412
|
isLoading: o,
|
|
4413
|
-
hasLoaded:
|
|
4413
|
+
hasLoaded: i,
|
|
4414
4414
|
discoverable: u,
|
|
4415
4415
|
index: l,
|
|
4416
4416
|
random: r
|
|
@@ -4421,17 +4421,17 @@ const at = /* @__PURE__ */ y({
|
|
|
4421
4421
|
slug: {}
|
|
4422
4422
|
},
|
|
4423
4423
|
setup(p) {
|
|
4424
|
-
const t = p,
|
|
4425
|
-
if (!(
|
|
4424
|
+
const t = p, a = F(), o = Je(), i = Te(), u = T(), r = b(() => {
|
|
4425
|
+
if (!(a.user && !u.one.ads.enabled))
|
|
4426
4426
|
return t.slug ? o.all.find((f) => f.slug === t.slug) : o.random(o.all);
|
|
4427
|
-
}), l =
|
|
4428
|
-
const f =
|
|
4427
|
+
}), l = b(() => {
|
|
4428
|
+
const f = i.current.value.dark ? "logodark" : "logolight";
|
|
4429
4429
|
return r.value?.metadata.images[f]?.url;
|
|
4430
|
-
}), d =
|
|
4431
|
-
const f =
|
|
4430
|
+
}), d = b(() => {
|
|
4431
|
+
const f = i.current.value.dark ? "bgdark" : "bglight";
|
|
4432
4432
|
return r.value?.metadata.images[f]?.url;
|
|
4433
4433
|
});
|
|
4434
|
-
return (f,
|
|
4434
|
+
return (f, v) => {
|
|
4435
4435
|
const _ = Ot;
|
|
4436
4436
|
return e(r) || !e(o).hasLoaded ? (c(), m(_, {
|
|
4437
4437
|
key: 0,
|
|
@@ -4446,7 +4446,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4446
4446
|
width: "100%"
|
|
4447
4447
|
}, z({
|
|
4448
4448
|
default: s(() => [
|
|
4449
|
-
e(o).hasLoaded ?
|
|
4449
|
+
e(o).hasLoaded ? h("", !0) : (c(), m(he, {
|
|
4450
4450
|
key: 0,
|
|
4451
4451
|
class: "flex-1-0 overflow-hidden",
|
|
4452
4452
|
color: "transparent",
|
|
@@ -4475,7 +4475,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4475
4475
|
]),
|
|
4476
4476
|
key: "1"
|
|
4477
4477
|
} : void 0
|
|
4478
|
-
]), 1032, ["color", "href", "image", "prepend-avatar", "title"])) :
|
|
4478
|
+
]), 1032, ["color", "href", "image", "prepend-avatar", "title"])) : h("", !0);
|
|
4479
4479
|
};
|
|
4480
4480
|
}
|
|
4481
4481
|
}), $a = { class: "d-flex ga-4" }, xa = { class: "d-flex align-start ga-4" }, La = { class: "text-caption on-surface-light" }, wa = /* @__PURE__ */ y({
|
|
@@ -4484,9 +4484,9 @@ const at = /* @__PURE__ */ y({
|
|
|
4484
4484
|
slug: {}
|
|
4485
4485
|
},
|
|
4486
4486
|
setup(p) {
|
|
4487
|
-
const t = p,
|
|
4488
|
-
if (!(
|
|
4489
|
-
return t.slug ? o.all.find((r) => r.slug === t.slug) : o.random(!
|
|
4487
|
+
const t = p, a = F(), o = Je(), i = T(), u = b(() => {
|
|
4488
|
+
if (!(a.user && !i.one.ads.enabled && !i.one.ads.house))
|
|
4489
|
+
return t.slug ? o.all.find((r) => r.slug === t.slug) : o.random(!i.one.ads.enabled && i.one.ads.house ? o.discoverable : o.all);
|
|
4490
4490
|
});
|
|
4491
4491
|
return (r, l) => {
|
|
4492
4492
|
const d = Ot;
|
|
@@ -4499,8 +4499,8 @@ const at = /* @__PURE__ */ y({
|
|
|
4499
4499
|
width: "360"
|
|
4500
4500
|
}, {
|
|
4501
4501
|
default: s(() => [
|
|
4502
|
-
|
|
4503
|
-
e(o).hasLoaded ? e(u) ? (c(),
|
|
4502
|
+
g("div", $a, [
|
|
4503
|
+
e(o).hasLoaded ? e(u) ? (c(), k(D, { key: 1 }, [
|
|
4504
4504
|
n(se, {
|
|
4505
4505
|
cover: "",
|
|
4506
4506
|
height: "100",
|
|
@@ -4510,10 +4510,10 @@ const at = /* @__PURE__ */ y({
|
|
|
4510
4510
|
src: e(u).metadata?.images.default?.url,
|
|
4511
4511
|
width: "100%"
|
|
4512
4512
|
}, null, 8, ["src"]),
|
|
4513
|
-
|
|
4514
|
-
|
|
4513
|
+
g("div", xa, [
|
|
4514
|
+
g("div", La, C(e(u).metadata?.text), 1)
|
|
4515
4515
|
])
|
|
4516
|
-
], 64)) :
|
|
4516
|
+
], 64)) : h("", !0) : (c(), k(D, { key: 0 }, [
|
|
4517
4517
|
n(he, {
|
|
4518
4518
|
class: "flex-1-0 overflow-hidden",
|
|
4519
4519
|
color: "transparent",
|
|
@@ -4533,7 +4533,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4533
4533
|
])
|
|
4534
4534
|
]),
|
|
4535
4535
|
_: 1
|
|
4536
|
-
}, 8, ["href"])) :
|
|
4536
|
+
}, 8, ["href"])) : h("", !0);
|
|
4537
4537
|
};
|
|
4538
4538
|
}
|
|
4539
4539
|
}), Sa = ["href"], Ma = /* @__PURE__ */ y({
|
|
@@ -4542,17 +4542,17 @@ const at = /* @__PURE__ */ y({
|
|
|
4542
4542
|
slug: {}
|
|
4543
4543
|
},
|
|
4544
4544
|
setup(p) {
|
|
4545
|
-
const t = p,
|
|
4546
|
-
if (!(
|
|
4545
|
+
const t = p, a = F(), o = Je(), i = T(), u = Te(), r = b(() => {
|
|
4546
|
+
if (!(a.user && !i.one.ads.enabled))
|
|
4547
4547
|
return t.slug ? o.all.find((f) => f.slug === t.slug) : o.random(o.all);
|
|
4548
|
-
}), l =
|
|
4548
|
+
}), l = b(() => {
|
|
4549
4549
|
const f = u.current.value.dark ? "logodark" : "logolight";
|
|
4550
4550
|
return r.value?.metadata.images[f]?.url;
|
|
4551
|
-
}), d =
|
|
4551
|
+
}), d = b(() => {
|
|
4552
4552
|
const f = u.current.value.dark ? "bgdark" : "bglight";
|
|
4553
4553
|
return r.value?.metadata.images[f]?.url;
|
|
4554
4554
|
});
|
|
4555
|
-
return (f,
|
|
4555
|
+
return (f, v) => {
|
|
4556
4556
|
const _ = zt;
|
|
4557
4557
|
return c(), m(_, {
|
|
4558
4558
|
color: e(r)?.metadata.color ?? "surface",
|
|
@@ -4560,7 +4560,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4560
4560
|
style: { transform: "translateY(0)" }
|
|
4561
4561
|
}, {
|
|
4562
4562
|
default: s(() => [
|
|
4563
|
-
|
|
4563
|
+
g("a", {
|
|
4564
4564
|
class: "d-flex align-center text-decoration-none py-2 px-4 ms-n4 flex-1-0 me-n4 position-relative",
|
|
4565
4565
|
href: e(r)?.metadata.url,
|
|
4566
4566
|
rel: "noopener noreferrer",
|
|
@@ -4573,7 +4573,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4573
4573
|
image: e(l),
|
|
4574
4574
|
size: "24"
|
|
4575
4575
|
}, null, 8, ["image"]),
|
|
4576
|
-
|
|
4576
|
+
g("div", null, C(e(r)?.metadata.text), 1),
|
|
4577
4577
|
e(r)?.metadata.advertisement ? (c(), m(ee, {
|
|
4578
4578
|
key: 0,
|
|
4579
4579
|
class: "ms-auto me-n4 align-self-end mb-n2 py-1 ps-3",
|
|
@@ -4581,7 +4581,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4581
4581
|
size: "x-small",
|
|
4582
4582
|
text: "SPONSORED",
|
|
4583
4583
|
variant: "flat"
|
|
4584
|
-
})) :
|
|
4584
|
+
})) : h("", !0)
|
|
4585
4585
|
], 8, Sa)
|
|
4586
4586
|
]),
|
|
4587
4587
|
_: 1
|
|
@@ -4589,7 +4589,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4589
4589
|
};
|
|
4590
4590
|
}
|
|
4591
4591
|
}), Ia = K("spots", () => {
|
|
4592
|
-
const p = J(), t = Ut(),
|
|
4592
|
+
const p = J(), t = Ut(), a = oe(), o = E([]), i = M(!1), u = b(() => o.value.find(({
|
|
4593
4593
|
metadata: {
|
|
4594
4594
|
site: l,
|
|
4595
4595
|
active: d
|
|
@@ -4597,19 +4597,19 @@ const at = /* @__PURE__ */ y({
|
|
|
4597
4597
|
}) => d ? l.includes("dev") && !1 || l.includes("*") ? !0 : l.some((f) => t.id.includes(f)) : !1));
|
|
4598
4598
|
async function r() {
|
|
4599
4599
|
try {
|
|
4600
|
-
|
|
4600
|
+
i.value = !0;
|
|
4601
4601
|
const l = await p.get("/one/spots");
|
|
4602
4602
|
o.value = l.spots;
|
|
4603
4603
|
} catch (l) {
|
|
4604
|
-
|
|
4604
|
+
a.showError(l?.message ?? "Error fetching spots");
|
|
4605
4605
|
} finally {
|
|
4606
|
-
|
|
4606
|
+
i.value = !1;
|
|
4607
4607
|
}
|
|
4608
4608
|
return o.value;
|
|
4609
4609
|
}
|
|
4610
4610
|
return {
|
|
4611
4611
|
all: o,
|
|
4612
|
-
isLoading:
|
|
4612
|
+
isLoading: i,
|
|
4613
4613
|
spot: u,
|
|
4614
4614
|
index: r
|
|
4615
4615
|
};
|
|
@@ -4617,7 +4617,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4617
4617
|
__name: "VoSpot",
|
|
4618
4618
|
setup(p) {
|
|
4619
4619
|
const t = Ia();
|
|
4620
|
-
return (
|
|
4620
|
+
return (a, o) => e(t).spot ? (c(), k("a", {
|
|
4621
4621
|
key: 0,
|
|
4622
4622
|
href: e(t).spot.metadata.href,
|
|
4623
4623
|
rel: "noopener noreferrer sponsored",
|
|
@@ -4630,7 +4630,7 @@ const at = /* @__PURE__ */ y({
|
|
|
4630
4630
|
src: e(t).spot.metadata.image?.url,
|
|
4631
4631
|
width: "225"
|
|
4632
4632
|
}, null, 8, ["color", "src"])
|
|
4633
|
-
], 8, Da)) :
|
|
4633
|
+
], 8, Da)) : h("", !0);
|
|
4634
4634
|
}
|
|
4635
4635
|
}), Li = {
|
|
4636
4636
|
discord: ["M22,24L16.75,19L17.38,21H4.5A2.5,2.5 0 0,1 2,18.5V3.5A2.5,2.5 0 0,1 4.5,1H19.5A2.5,2.5 0 0,1 22,3.5V24M12,6.8C9.32,6.8 7.44,7.95 7.44,7.95C8.47,7.03 10.27,6.5 10.27,6.5L10.1,6.33C8.41,6.36 6.88,7.53 6.88,7.53C5.16,11.12 5.27,14.22 5.27,14.22C6.67,16.03 8.75,15.9 8.75,15.9L9.46,15C8.21,14.73 7.42,13.62 7.42,13.62C7.42,13.62 9.3,14.9 12,14.9C14.7,14.9 16.58,13.62 16.58,13.62C16.58,13.62 15.79,14.73 14.54,15L15.25,15.9C15.25,15.9 17.33,16.03 18.73,14.22C18.73,14.22 18.84,11.12 17.12,7.53C17.12,7.53 15.59,6.36 13.9,6.33L13.73,6.5C13.73,6.5 15.53,7.03 16.56,7.95C16.56,7.95 14.68,6.8 12,6.8M9.93,10.59C10.58,10.59 11.11,11.16 11.1,11.86C11.1,12.55 10.58,13.13 9.93,13.13C9.29,13.13 8.77,12.55 8.77,11.86C8.77,11.16 9.28,10.59 9.93,10.59M14.1,10.59C14.75,10.59 15.27,11.16 15.27,11.86C15.27,12.55 14.75,13.13 14.1,13.13C13.46,13.13 12.94,12.55 12.94,11.86C12.94,11.16 13.45,10.59 14.1,10.59Z"],
|
|
@@ -4701,129 +4701,132 @@ const at = /* @__PURE__ */ y({
|
|
|
4701
4701
|
["M22 21L18.3734 17.675L14.3133 21H22Z", 0.4]
|
|
4702
4702
|
]
|
|
4703
4703
|
}, wi = K("bins", () => {
|
|
4704
|
-
const p = J(), t = oe(),
|
|
4704
|
+
const p = J(), t = oe(), a = E([]), o = M(!1), i = b(() => a.value.filter((l) => l.favorite)), u = b(() => a.value.filter((l) => l.pinned));
|
|
4705
4705
|
async function r() {
|
|
4706
4706
|
try {
|
|
4707
4707
|
o.value = !0;
|
|
4708
4708
|
const l = await p.get("/one/bins");
|
|
4709
|
-
|
|
4709
|
+
a.value = l.bins;
|
|
4710
4710
|
} catch (l) {
|
|
4711
4711
|
t.showError(l?.message ?? "Error fetching bins");
|
|
4712
4712
|
} finally {
|
|
4713
4713
|
o.value = !1;
|
|
4714
4714
|
}
|
|
4715
|
-
return
|
|
4715
|
+
return a.value;
|
|
4716
4716
|
}
|
|
4717
4717
|
return {
|
|
4718
4718
|
isLoading: o,
|
|
4719
4719
|
pinned: u,
|
|
4720
|
-
favorites:
|
|
4721
|
-
all:
|
|
4720
|
+
favorites: i,
|
|
4721
|
+
all: a,
|
|
4722
4722
|
index: r
|
|
4723
4723
|
};
|
|
4724
4724
|
}), Si = K("links", () => {
|
|
4725
|
-
const p = J(), t = oe(),
|
|
4726
|
-
|
|
4725
|
+
const p = J(), t = oe(), a = E([]), o = M(!1), i = M(!1), u = b(() => a.value.filter((v) => v.favorite)), r = b(() => a.value.filter((v) => v.pinned)), l = b(() => {
|
|
4726
|
+
const v = F(), _ = O();
|
|
4727
|
+
return v.user?.isAdmin || _.isSubscriber;
|
|
4728
|
+
});
|
|
4729
|
+
async function d() {
|
|
4727
4730
|
try {
|
|
4728
|
-
|
|
4729
|
-
const
|
|
4730
|
-
a.value =
|
|
4731
|
-
} catch (
|
|
4732
|
-
t.showError(
|
|
4731
|
+
o.value = !0;
|
|
4732
|
+
const v = await p.get("/one/links");
|
|
4733
|
+
a.value = v.links;
|
|
4734
|
+
} catch (v) {
|
|
4735
|
+
t.showError(v?.message ?? "Error fetching links");
|
|
4733
4736
|
} finally {
|
|
4734
|
-
|
|
4737
|
+
o.value = !1;
|
|
4735
4738
|
}
|
|
4736
4739
|
return a.value;
|
|
4737
4740
|
}
|
|
4738
|
-
async function
|
|
4739
|
-
if (!
|
|
4741
|
+
async function f(v) {
|
|
4742
|
+
if (!l.value) {
|
|
4740
4743
|
t.showError("Must be a Vuetify One subscriber to create links");
|
|
4741
4744
|
return;
|
|
4742
4745
|
}
|
|
4743
4746
|
try {
|
|
4744
|
-
|
|
4745
|
-
const
|
|
4747
|
+
i.value = !0;
|
|
4748
|
+
const _ = await p.post("/one/links", {
|
|
4746
4749
|
link: {
|
|
4747
|
-
title:
|
|
4748
|
-
url:
|
|
4749
|
-
slug:
|
|
4750
|
-
favorite:
|
|
4751
|
-
pinned:
|
|
4752
|
-
scoped:
|
|
4753
|
-
passwordProtection:
|
|
4754
|
-
password:
|
|
4755
|
-
timer:
|
|
4756
|
-
expiresAt:
|
|
4750
|
+
title: v.title,
|
|
4751
|
+
url: v.url,
|
|
4752
|
+
slug: v.slug || "",
|
|
4753
|
+
favorite: v.favorite ?? !1,
|
|
4754
|
+
pinned: v.pinned ?? !1,
|
|
4755
|
+
scoped: v.scoped ?? !1,
|
|
4756
|
+
passwordProtection: v.passwordProtection ?? !1,
|
|
4757
|
+
password: v.password ?? null,
|
|
4758
|
+
timer: v.timer ?? null,
|
|
4759
|
+
expiresAt: v.expiresAt ?? null
|
|
4757
4760
|
}
|
|
4758
4761
|
});
|
|
4759
|
-
return a.value.unshift(
|
|
4760
|
-
} catch (
|
|
4761
|
-
t.showError(
|
|
4762
|
+
return a.value.unshift(_.link), _.link;
|
|
4763
|
+
} catch (_) {
|
|
4764
|
+
t.showError(_?.message ?? "Error creating link");
|
|
4762
4765
|
} finally {
|
|
4763
|
-
|
|
4766
|
+
i.value = !1;
|
|
4764
4767
|
}
|
|
4765
4768
|
}
|
|
4766
4769
|
return {
|
|
4767
|
-
isLoading:
|
|
4768
|
-
isSaving:
|
|
4769
|
-
canCreate:
|
|
4770
|
-
pinned:
|
|
4771
|
-
favorites:
|
|
4770
|
+
isLoading: o,
|
|
4771
|
+
isSaving: i,
|
|
4772
|
+
canCreate: l,
|
|
4773
|
+
pinned: r,
|
|
4774
|
+
favorites: u,
|
|
4772
4775
|
all: a,
|
|
4773
|
-
index:
|
|
4774
|
-
create:
|
|
4776
|
+
index: d,
|
|
4777
|
+
create: f
|
|
4775
4778
|
};
|
|
4776
4779
|
}), Mi = K("products", () => {
|
|
4777
|
-
const p = J(), t = oe(),
|
|
4778
|
-
async function
|
|
4779
|
-
if (
|
|
4780
|
-
return
|
|
4780
|
+
const p = J(), t = oe(), a = E([]), o = b(() => a.value.filter((r) => r.product_type === "Themes"));
|
|
4781
|
+
async function i() {
|
|
4782
|
+
if (a.value.length > 0)
|
|
4783
|
+
return a.value;
|
|
4781
4784
|
try {
|
|
4782
4785
|
const r = await p.get("/one/shopify/products");
|
|
4783
|
-
|
|
4786
|
+
a.value = r.products;
|
|
4784
4787
|
} catch (r) {
|
|
4785
4788
|
t.showError(r?.message ?? "Error fetching products");
|
|
4786
4789
|
}
|
|
4787
|
-
return
|
|
4790
|
+
return a.value;
|
|
4788
4791
|
}
|
|
4789
4792
|
function u(r) {
|
|
4790
4793
|
return r.slice().sort(() => Math.random() - 0.5);
|
|
4791
4794
|
}
|
|
4792
4795
|
return {
|
|
4793
|
-
all:
|
|
4796
|
+
all: a,
|
|
4794
4797
|
themes: o,
|
|
4795
|
-
index:
|
|
4798
|
+
index: i,
|
|
4796
4799
|
randomize: u
|
|
4797
4800
|
};
|
|
4798
4801
|
}), Ii = K("sponsors", () => {
|
|
4799
|
-
const p = J(), t = oe(),
|
|
4802
|
+
const p = J(), t = oe(), a = E([]), o = E([]), i = E(!1), u = b(() => {
|
|
4800
4803
|
const d = {};
|
|
4801
|
-
for (const f of
|
|
4802
|
-
const
|
|
4803
|
-
d[
|
|
4804
|
+
for (const f of a.value) {
|
|
4805
|
+
const v = f.metadata.tier;
|
|
4806
|
+
d[v] || (d[v] = []), d[v].push(f);
|
|
4804
4807
|
}
|
|
4805
4808
|
return d;
|
|
4806
4809
|
});
|
|
4807
4810
|
Rt(r), je(r);
|
|
4808
4811
|
async function r() {
|
|
4809
4812
|
try {
|
|
4810
|
-
|
|
4813
|
+
i.value = !0;
|
|
4811
4814
|
const d = await p.get("/one/sponsors");
|
|
4812
4815
|
o.value = d.sponsors;
|
|
4813
4816
|
} catch (d) {
|
|
4814
4817
|
t.showError(d?.message ?? "Error fetching sponsors");
|
|
4815
4818
|
} finally {
|
|
4816
|
-
|
|
4819
|
+
i.value = !1;
|
|
4817
4820
|
}
|
|
4818
4821
|
return o.value;
|
|
4819
4822
|
}
|
|
4820
4823
|
function l(d) {
|
|
4821
|
-
return
|
|
4824
|
+
return a.value.find((f) => f.slug === d);
|
|
4822
4825
|
}
|
|
4823
4826
|
return {
|
|
4824
|
-
isLoading:
|
|
4827
|
+
isLoading: i,
|
|
4825
4828
|
all: o,
|
|
4826
|
-
sponsors:
|
|
4829
|
+
sponsors: a,
|
|
4827
4830
|
byTier: u,
|
|
4828
4831
|
bySlug: l,
|
|
4829
4832
|
index: r
|
|
@@ -4836,8 +4839,8 @@ function Di() {
|
|
|
4836
4839
|
return { install: p };
|
|
4837
4840
|
}
|
|
4838
4841
|
function Ai(p, t) {
|
|
4839
|
-
return function(
|
|
4840
|
-
const o =
|
|
4842
|
+
return function(a) {
|
|
4843
|
+
const o = a.store;
|
|
4841
4844
|
o.url = t, o.$id === "site" && (o.id = p);
|
|
4842
4845
|
};
|
|
4843
4846
|
}
|