@vuetify/one 1.0.11 → 1.0.13

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.
Files changed (2) hide show
  1. package/dist/index.js +1402 -1384
  2. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -1,74 +1,74 @@
1
- import { reactive as Ze, toRefs as Ke, ref as oe, shallowRef as F, computed as A, defineComponent as V, openBlock as d, createBlock as _, withCtx as i, renderSlot as z, normalizeStyle as Be, createSlots as G, createCommentVNode as $, watch as W, unref as e, createElementVNode as f, toDisplayString as C, createVNode as o, withModifiers as Te, mergeModels as et, useModel as he, createElementBlock as S, Fragment as U, createTextVNode as j, renderList as ne, mergeProps as X, onBeforeMount as tt, onMounted as Re, resolveComponent as He, withDirectives as Ae, vShow as Me, normalizeClass as ot, pushScopeId as st, popScopeId as nt } from "vue";
2
- import { defineStore as se } from "pinia";
3
- import { merge as we } from "lodash-es";
4
- import { VBadge as Pe } from "vuetify/lib/components/VBadge/index.mjs";
1
+ import { reactive as ot, toRefs as nt, ref as te, shallowRef as O, computed as L, watch as z, defineComponent as k, openBlock as d, createBlock as m, unref as e, withCtx as s, renderSlot as R, normalizeStyle as Me, createSlots as G, createCommentVNode as x, createElementVNode as v, toDisplayString as D, createVNode as o, withModifiers as Pe, mergeModels as st, useModel as ae, createElementBlock as S, Fragment as N, createTextVNode as j, inject as it, onBeforeMount as at, nextTick as _e, renderList as se, mergeProps as J, resolveComponent as We, withDirectives as Ne, vShow as qe, onMounted as rt, normalizeClass as lt, pushScopeId as ct, popScopeId as ut } from "vue";
2
+ import { defineStore as oe } from "pinia";
3
+ import { merge as Ce } from "lodash-es";
4
+ import { VBadge as Ge } from "vuetify/lib/components/VBadge/index.mjs";
5
5
  import { VBtn as Z } from "vuetify/lib/components/VBtn/index.mjs";
6
- import { VProgressCircular as it } from "vuetify/lib/components/VProgressCircular/index.mjs";
7
- import { mdiDiscord as Ie, mdiGithub as De, mdiSync as at, mdiSyncOff as rt, mdiLogoutVariant as lt, mdiCheck as te, mdiHome as ct, mdiTextBox as ut, mdiSpaceInvaders as Ee, mdiWhiteBalanceSunny as dt, mdiWeatherNight as pt, mdiDesktopTowerMonitor as mt, mdiImageFilterHdr as ft, mdiRocketLaunchOutline as vt, mdiContrastCircle as _t, mdiCog as ht, mdiCogOutline as gt, mdiFileDocument as bt, mdiCreditCardSettingsOutline as yt, mdiRocketOutline as Vt, mdiCheckCircleOutline as re, mdiCreditCard as kt, mdiReload as $t, mdiPlaylistCheck as xt, mdiCreditCardOutline as wt, mdiHandHeart as St, mdiMedal as pe, mdiInformationOutline as Oe, mdiChartLine as Ct, mdiHandHeartOutline as Lt, mdiEmailOpenOutline as At, mdiEmailVariant as It, mdiOpenInNew as Dt, mdiBell as Ut, mdiInboxOutline as Nt, mdiInboxFullOutline as Ft, mdiBellOutline as jt, mdiViewDashboardOutline as Ot, mdiTrashCan as zt, mdiBug as Bt, mdiCrown as Tt, mdiArrowULeftBottom as Rt, mdiLogin as Ht, mdiShieldStarOutline as Mt, mdiReddit as Pt } from "@mdi/js";
8
- import { VListItem as ge, VList as ie, VListItemTitle as Et } from "vuetify/lib/components/VList/index.mjs";
9
- import { VAvatar as ve } from "vuetify/lib/components/VAvatar/index.mjs";
10
- import { VCard as B, VCardText as Y } from "vuetify/lib/components/VCard/index.mjs";
11
- import { VSheet as We } from "vuetify/lib/components/VSheet/index.mjs";
12
- import { VSwitch as Ge } from "vuetify/lib/components/VSwitch/index.mjs";
13
- import { VFadeTransition as Ue, VExpandTransition as ce, VExpandXTransition as Wt } from "vuetify/lib/components/transitions/index.mjs";
14
- import { useDisplay as be, useTheme as Gt, useDate as ye } from "vuetify";
15
- import { VDialog as qt } from "vuetify/lib/components/VDialog/index.mjs";
16
- import { VDivider as T } from "vuetify/lib/components/VDivider/index.mjs";
17
- import { VIcon as N } from "vuetify/lib/components/VIcon/index.mjs";
18
- import { VLabel as Ce } from "vuetify/lib/components/VLabel/index.mjs";
19
- import { VChip as E } from "vuetify/lib/components/VChip/index.mjs";
20
- import { VChipGroup as Yt } from "vuetify/lib/components/VChipGroup/index.mjs";
21
- import { VSelect as Jt } from "vuetify/lib/components/VSelect/index.mjs";
22
- import { VRow as Ve, VCol as le } from "vuetify/lib/components/VGrid/index.mjs";
23
- import { VHover as qe } from "vuetify/lib/components/VHover/index.mjs";
24
- import { VImg as Ne } from "vuetify/lib/components/VImg/index.mjs";
25
- import { VItemGroup as Ye, VItem as Le } from "vuetify/lib/components/VItemGroup/index.mjs";
26
- import { VLayout as Fe } from "vuetify/lib/components/VLayout/index.mjs";
27
- import { VMain as je } from "vuetify/lib/components/VMain/index.mjs";
28
- import { VDataTableVirtual as Qt } from "vuetify/lib/components/VDataTable/index.mjs";
29
- import { VSkeletonLoader as ze } from "vuetify/lib/components/VSkeletonLoader/index.mjs";
30
- import { VWindow as Je, VWindowItem as _e } from "vuetify/lib/components/VWindow/index.mjs";
31
- import { VTimeline as Xt, VTimelineItem as me } from "vuetify/lib/components/VTimeline/index.mjs";
32
- import { VResponsive as Zt } from "vuetify/lib/components/VResponsive/index.mjs";
33
- import { VTooltip as ae } from "vuetify/lib/components/VTooltip/index.mjs";
34
- import { VNavigationDrawer as Kt } from "vuetify/lib/components/VNavigationDrawer/index.mjs";
35
- import { Ripple as eo } from "vuetify/lib/directives/index.mjs";
36
- import { VColorPicker as to } from "vuetify/lib/components/VColorPicker/index.mjs";
37
- import { VMenu as oo } from "vuetify/lib/components/VMenu/index.mjs";
38
- import { VFooter as so } from "vuetify/lib/components/VFooter/index.mjs";
39
- const ke = se("http", {
6
+ import { VProgressCircular as dt } from "vuetify/lib/components/VProgressCircular/index.mjs";
7
+ import { mdiDiscord as Oe, mdiGithub as je, mdiSync as pt, mdiSyncOff as mt, mdiLogoutVariant as ft, mdiCheck as ne, mdiHome as vt, mdiTextBox as _t, mdiSpaceInvaders as Ye, mdiWhiteBalanceSunny as ht, mdiWeatherNight as gt, mdiDesktopTowerMonitor as bt, mdiImageFilterHdr as yt, mdiRocketLaunchOutline as Vt, mdiContrastCircle as kt, mdiCog as $t, mdiCogOutline as xt, mdiFileDocument as wt, mdiCreditCardSettingsOutline as St, mdiRocketOutline as Ct, mdiCheckCircleOutline as le, mdiCreditCard as Lt, mdiReload as It, mdiPlaylistCheck as At, mdiCreditCardOutline as Dt, mdiHandHeart as Ut, mdiInformationOutline as ze, mdiMedal as Le, mdiChartLine as Nt, mdiHandHeartOutline as Ot, mdiEmailOpenOutline as jt, mdiEmailVariant as Bt, mdiOpenInNew as Ft, mdiBell as zt, mdiInboxOutline as Et, mdiInboxFullOutline as Tt, mdiBellOutline as Rt, mdiViewDashboardOutline as Ht, mdiTrashCan as Mt, mdiBug as Pt, mdiCrown as Wt, mdiArrowULeftBottom as qt, mdiLogin as Gt, mdiShieldStarOutline as Yt, mdiReddit as Qt } from "@mdi/js";
8
+ import { VListItem as he, VList as ie, VListItemTitle as Jt } from "vuetify/lib/components/VList/index.mjs";
9
+ import { VAvatar as fe } from "vuetify/lib/components/VAvatar/index.mjs";
10
+ import { VCard as M, VCardText as X } from "vuetify/lib/components/VCard/index.mjs";
11
+ import { VSheet as Qe } from "vuetify/lib/components/VSheet/index.mjs";
12
+ import { VSwitch as Je } from "vuetify/lib/components/VSwitch/index.mjs";
13
+ import { VFadeTransition as Be, VExpandTransition as ue, VExpandXTransition as Xt } from "vuetify/lib/components/transitions/index.mjs";
14
+ import { useDisplay as ge, useTheme as Zt, useDate as be } from "vuetify";
15
+ import { VDialog as Kt } from "vuetify/lib/components/VDialog/index.mjs";
16
+ import { VDivider as P } from "vuetify/lib/components/VDivider/index.mjs";
17
+ import { VIcon as U } from "vuetify/lib/components/VIcon/index.mjs";
18
+ import { VLabel as De } from "vuetify/lib/components/VLabel/index.mjs";
19
+ import { VChip as Y } from "vuetify/lib/components/VChip/index.mjs";
20
+ import { VChipGroup as eo } from "vuetify/lib/components/VChipGroup/index.mjs";
21
+ import { VSelect as to } from "vuetify/lib/components/VSelect/index.mjs";
22
+ import { VRow as ye, VCol as ce } from "vuetify/lib/components/VGrid/index.mjs";
23
+ import { VHover as Xe } from "vuetify/lib/components/VHover/index.mjs";
24
+ import { VImg as Fe } from "vuetify/lib/components/VImg/index.mjs";
25
+ import { VItemGroup as Ze, VItem as Ue } from "vuetify/lib/components/VItemGroup/index.mjs";
26
+ import { VLayout as Ve } from "vuetify/lib/components/VLayout/index.mjs";
27
+ import { VMain as ke } from "vuetify/lib/components/VMain/index.mjs";
28
+ import { VDataTableVirtual as oo } from "vuetify/lib/components/VDataTable/index.mjs";
29
+ import { VSkeletonLoader as Ee } from "vuetify/lib/components/VSkeletonLoader/index.mjs";
30
+ import { VWindow as Ke, VWindowItem as ve } from "vuetify/lib/components/VWindow/index.mjs";
31
+ import { VTimeline as no, VTimelineItem as Ie } from "vuetify/lib/components/VTimeline/index.mjs";
32
+ import { VResponsive as so } from "vuetify/lib/components/VResponsive/index.mjs";
33
+ import { VTooltip as re } from "vuetify/lib/components/VTooltip/index.mjs";
34
+ import { VNavigationDrawer as io } from "vuetify/lib/components/VNavigationDrawer/index.mjs";
35
+ import { Ripple as ao } from "vuetify/lib/directives/index.mjs";
36
+ import { VColorPicker as ro } from "vuetify/lib/components/VColorPicker/index.mjs";
37
+ import { VMenu as lo } from "vuetify/lib/components/VMenu/index.mjs";
38
+ import { VFooter as co } from "vuetify/lib/components/VFooter/index.mjs";
39
+ const $e = oe("http", {
40
40
  state: () => ({
41
41
  url: ""
42
42
  }),
43
43
  actions: {
44
- async fetch(u, t = {}) {
45
- const a = await fetch(`${this.url}${u}`, {
44
+ async fetch(c, t = {}) {
45
+ const i = await fetch(`${this.url}${c}`, {
46
46
  credentials: "include",
47
47
  ...t
48
48
  });
49
- return a.status === 204 ? a : a.json();
49
+ return i.status === 204 ? i : i.json();
50
50
  },
51
- async post(u, t, a = {}) {
52
- return this.fetch(u, {
51
+ async post(c, t, i = {}) {
52
+ return this.fetch(c, {
53
53
  method: "POST",
54
54
  headers: {
55
55
  "Content-Type": "application/json"
56
56
  },
57
57
  body: JSON.stringify(t),
58
- ...a
58
+ ...i
59
59
  });
60
60
  },
61
- async get(u, t = {}) {
62
- return this.fetch(u, t);
61
+ async get(c, t = {}) {
62
+ return this.fetch(c, t);
63
63
  },
64
- async delete(u, t = {}) {
65
- return this.fetch(u, {
64
+ async delete(c, t = {}) {
65
+ return this.fetch(c, {
66
66
  method: "DELETE",
67
67
  ...t
68
68
  });
69
69
  }
70
70
  }
71
- }), Se = typeof window < "u", fe = {
71
+ }), Ae = typeof window < "u", me = {
72
72
  v: 5,
73
73
  api: "link-only",
74
74
  avatar: "",
@@ -106,324 +106,325 @@ const ke = se("http", {
106
106
  jobs: null
107
107
  }
108
108
  }
109
- }, P = se("user", () => {
110
- const u = Ze(we({}, fe));
109
+ }, E = oe("user", () => {
110
+ const c = ot(Ce({}, me));
111
111
  function t() {
112
- if (!Se)
112
+ if (!Ae)
113
113
  return;
114
- const n = localStorage.getItem("vuetify@user"), r = n ? JSON.parse(n) : {};
115
- let c = r.v === u.v;
116
- r.v || (r.pwaRefresh = !0, typeof r.api == "boolean" && (r.api = r.api ? "inline" : "link-only"), typeof r.rtl == "boolean" && (r.direction = r.rtl ? "rtl" : "ltr", delete r.rtl), typeof r.theme == "object" && (r.mixedTheme = r.theme.mixed, r.theme = r.theme.system ? "system" : r.theme.dark ? "dark" : "light"), Array.isArray(r.notifications) && (r.notifications = { read: r.notifications }), typeof r.last == "object" && (r.notifications.last = r.last, delete r.last)), r.v === 1 && (Array.isArray(r.composition) && (r.composition = "composition"), Array.isArray(r.notifications.last.banner) || (r.notifications = r.notifications || {}, r.notifications.last = r.notifications.last || {}, r.notifications.last.banner = [])), r.v === 2 && (r.syncSettings = !0, r.disableAds = !1, r.v = 3), r.v === 3 && (r.quickbar = !1), r.v === 4 && (r.suits = fe.suits, r.notifications.banners = fe.notifications.banners, c = !0), r.v = u.v, Object.assign(u, we(u, r)), c && a();
114
+ const l = localStorage.getItem("vuetify@user"), a = l ? JSON.parse(l) : {};
115
+ let r = a.v === c.v;
116
+ a.v || (a.pwaRefresh = !0, typeof a.api == "boolean" && (a.api = a.api ? "inline" : "link-only"), typeof a.rtl == "boolean" && (a.direction = a.rtl ? "rtl" : "ltr", delete a.rtl), typeof a.theme == "object" && (a.mixedTheme = a.theme.mixed, a.theme = a.theme.system ? "system" : a.theme.dark ? "dark" : "light"), Array.isArray(a.notifications) && (a.notifications = { read: a.notifications }), typeof a.last == "object" && (a.notifications.last = a.last, delete a.last)), a.v === 1 && (Array.isArray(a.composition) && (a.composition = "composition"), Array.isArray(a.notifications.last.banner) || (a.notifications = a.notifications || {}, a.notifications.last = a.notifications.last || {}, a.notifications.last.banner = [])), a.v === 2 && (a.syncSettings = !0, a.disableAds = !1, a.v = 3), a.v === 3 && (a.quickbar = !1), a.v === 4 && (a.suits = me.suits, a.notifications.banners = me.notifications.banners, r = !0), a.v = c.v, Object.assign(c, Ce(c, a)), r && i();
117
117
  }
118
- function a() {
119
- Se && localStorage.setItem("vuetify@user", JSON.stringify(u, null, 2));
118
+ function i() {
119
+ Ae && localStorage.setItem("vuetify@user", JSON.stringify(c, null, 2));
120
120
  }
121
- function s() {
122
- Se && (Object.assign(u, we({}, fe)), a());
121
+ function n() {
122
+ Ae && (Object.assign(c, Ce({}, me)), i());
123
123
  }
124
124
  return t(), {
125
- ...Ke(u),
125
+ ...nt(c),
126
126
  load: t,
127
- save: a,
128
- reset: s
127
+ save: i,
128
+ reset: n
129
129
  };
130
- }), $e = se("notifications", () => {
131
- const u = ke(), t = P(), a = oe([]), s = F(!1), n = A(() => a.value.filter((l) => !t.notifications.read.includes(l.slug))), r = A(() => a.value.filter((l) => t.notifications.read.includes(l.slug)));
132
- async function c() {
133
- try {
134
- s.value = !0;
135
- const l = await u.get("/one/notifications");
136
- a.value = l.notifications;
137
- } catch {
138
- } finally {
139
- s.value = !1;
140
- }
141
- return a.value;
142
- }
143
- return {
144
- isLoading: s,
145
- all: a,
146
- get: c,
147
- read: r,
148
- unread: n
149
- };
150
- }), no = /* @__PURE__ */ V({
151
- __name: "VoNotificationsTotalBadge",
152
- setup(u) {
153
- const t = $e(), a = A(() => t.unread.length);
154
- return (s, n) => (d(), _(Pe, {
155
- content: a.value,
156
- "model-value": a.value > 0,
157
- color: "error",
158
- location: "start top"
159
- }, {
160
- default: i(() => [
161
- z(s.$slots, "default")
162
- ]),
163
- _: 3
164
- }, 8, ["content", "model-value"]));
165
- }
166
- }), ue = /* @__PURE__ */ V({
167
- __name: "VoBtn",
168
- props: {
169
- readonly: { type: Boolean }
170
- },
171
- setup(u) {
172
- const t = u;
173
- return (a, s) => (d(), _(Z, {
174
- style: Be({
175
- pointerEvents: t.readonly ? "none" : void 0
176
- }),
177
- tabindex: t.readonly ? -1 : void 0,
178
- class: "text-none font-weight-regular",
179
- color: "primary",
180
- size: "small",
181
- variant: "flat"
182
- }, G({
183
- loader: i(() => [
184
- a.$slots.loader ? $("", !0) : (d(), _(it, {
185
- key: 0,
186
- indeterminate: "disable-shrink",
187
- size: "16",
188
- width: "2"
189
- })),
190
- z(a.$slots, "loader")
191
- ]),
192
- _: 2
193
- }, [
194
- a.$slots.default ? {
195
- name: "default",
196
- fn: i(() => [
197
- z(a.$slots, "default")
198
- ]),
199
- key: "0"
200
- } : void 0
201
- ]), 1032, ["style", "tabindex"]));
202
- }
203
- }), R = se("auth", () => {
204
- const u = oe(null), t = ke(), a = P(), s = F(!1), n = A(() => {
205
- var m, k;
206
- return !t.url || ((m = u.value) == null ? void 0 : m.isAdmin) || !!((k = u.value) != null && k.sponsorships.some((D) => D.isActive));
130
+ }), F = oe("auth", () => {
131
+ const c = te(null), t = $e(), i = E(), n = O(!1), l = L(() => {
132
+ var _, w;
133
+ return !t.url || ((_ = c.value) == null ? void 0 : _.isAdmin) || !!((w = c.value) != null && w.sponsorships.some((b) => b.isActive));
207
134
  });
208
- let r = !1;
209
- W(u, (m) => {
210
- if (!(m != null && m.settings))
135
+ let a = !1;
136
+ z(c, (_) => {
137
+ if (!(_ != null && _.settings))
211
138
  return;
212
- const k = localStorage.getItem("vuetify@user") || "{}";
213
- JSON.stringify(m.settings, null, 2) !== k && (r = !0, Object.assign(a, m.settings));
214
- }), a.$subscribe(() => {
215
- r || c(), r = !1;
139
+ const w = localStorage.getItem("vuetify@user") || "{}";
140
+ JSON.stringify(_.settings, null, 2) !== w && (a = !0, Object.assign(i, _.settings));
141
+ }), i.$subscribe(() => {
142
+ a || r(), a = !1;
216
143
  });
217
- async function c() {
144
+ async function r() {
218
145
  try {
219
- await t.post("/user/settings", { settings: a.$state });
220
- } catch (m) {
221
- console.error(m);
146
+ await t.post("/user/settings", { settings: i.$state });
147
+ } catch (_) {
148
+ console.error(_);
222
149
  }
223
150
  }
224
- async function l(m = !1) {
225
- if (l.promise)
226
- return l.promise;
227
- s.value = !0, l.promise = fetch(`${t.url}/auth/verify`, {
151
+ async function u(_ = !1) {
152
+ if (u.promise)
153
+ return u.promise;
154
+ n.value = !0, u.promise = fetch(`${t.url}/auth/verify`, {
228
155
  credentials: "include",
229
- headers: m ? {
156
+ headers: _ ? {
230
157
  "Cache-Control": "no-cache"
231
158
  } : void 0
232
159
  }).then(
233
- async (k) => {
234
- k.ok ? u.value = (await k.json()).user : k.status === 401 ? u.value = null : console.error(k.statusText);
160
+ async (w) => {
161
+ w.ok ? c.value = (await w.json()).user : w.status === 401 ? c.value = null : console.error(w.statusText);
235
162
  },
236
163
  () => {
237
164
  }
238
165
  ).finally(() => {
239
- s.value = !1, l.promise = null;
166
+ n.value = !1, u.promise = null;
240
167
  });
241
168
  }
242
- l.promise = null;
243
- async function h(m = "github") {
244
- s.value = !0;
245
- const k = `${t.url}/auth/${m}/redirect`, D = 400, b = 600, w = window.screenX + (window.innerWidth - D) / 2, I = window.screenY + (window.innerHeight - b) / 2, O = window.open(
169
+ u.promise = null;
170
+ async function h(_ = "github") {
171
+ n.value = !0;
172
+ const w = `${t.url}/auth/${_}/redirect`, b = 400, y = 600, $ = window.screenX + (window.innerWidth - b) / 2, B = window.screenY + (window.innerHeight - y) / 2, I = window.open(
246
173
  "",
247
174
  "vuetify:authorize:popup",
248
- `popup,left=${w},top=${I},width=${D},height=${b},resizable`
175
+ `popup,left=${$},top=${B},width=${b},height=${y},resizable`
249
176
  );
250
- if (!O) {
177
+ if (!I) {
251
178
  console.error("Failed to open popup");
252
179
  return;
253
180
  }
254
- O.location.href = k;
255
- let q = -1, K = -1;
256
- function x(v) {
257
- var y;
258
- v.origin === t.url && ((y = v.data) == null ? void 0 : y.type) === "auth-response" && (v.data.status === "success" ? (u.value || localStorage.setItem("vuetify@lastLoginProvider", m), u.value = v.data.body.user) : console.error(v.data.message), H());
181
+ I.location.href = w;
182
+ let W = -1, K = -1;
183
+ function A(f) {
184
+ var V;
185
+ f.origin === t.url && ((V = f.data) == null ? void 0 : V.type) === "auth-response" && (f.data.status === "success" ? (c.value || localStorage.setItem("vuetify@lastLoginProvider", _), c.value = f.data.body.user) : console.error(f.data.message), H());
259
186
  }
260
187
  function H() {
261
- window.removeEventListener("message", x), window.clearInterval(q), window.clearTimeout(K), O == null || O.close(), s.value = !1;
188
+ window.removeEventListener("message", A), window.clearInterval(W), window.clearTimeout(K), I == null || I.close(), n.value = !1;
262
189
  }
263
- window.addEventListener("message", x), q = window.setInterval(() => {
264
- !O || O.closed ? (console.error("Auth popup closed"), H()) : O.postMessage({ type: "auth-request" }, "*");
190
+ window.addEventListener("message", A), W = window.setInterval(() => {
191
+ !I || I.closed ? (console.error("Auth popup closed"), H()) : I.postMessage({ type: "auth-request" }, "*");
265
192
  }, 1e3), K = window.setTimeout(() => {
266
193
  H(), console.error("Auth timed out");
267
194
  }, 120 * 1e3);
268
195
  }
269
- async function p(m) {
270
- s.value = !0;
271
- const k = m ? `/auth/${m}/logout` : "/auth/logout";
196
+ async function p(_) {
197
+ n.value = !0;
198
+ const w = _ ? `/auth/${_}/logout` : "/auth/logout";
272
199
  try {
273
- await t.post(k), await l(!0), u.value = null;
274
- } catch (D) {
275
- console.error(D);
200
+ await t.post(w), await u(!0), c.value = null;
201
+ } catch (b) {
202
+ console.error(b);
276
203
  } finally {
277
- s.value = !1;
204
+ n.value = !1;
278
205
  }
279
206
  }
280
- function g(m) {
281
- var k;
282
- return (k = u.value) == null ? void 0 : k.identities.find((D) => D.provider === m);
207
+ function g(_) {
208
+ var w;
209
+ return (w = c.value) == null ? void 0 : w.identities.find((b) => b.provider === _);
283
210
  }
284
- function L() {
211
+ function C() {
285
212
  return localStorage.getItem("vuetify@lastLoginProvider");
286
213
  }
287
- return L() && l(), {
288
- user: u,
214
+ return C() && u(), {
215
+ user: c,
289
216
  url: t.url,
290
- isLoading: s,
217
+ isLoading: n,
291
218
  findIdentity: g,
292
- verify: l,
219
+ verify: u,
293
220
  login: h,
294
221
  logout: p,
295
- isSubscriber: n,
296
- lastLoginProvider: L,
297
- sync: c
222
+ isSubscriber: l,
223
+ lastLoginProvider: C,
224
+ sync: r
225
+ };
226
+ }), xe = oe("notifications", () => {
227
+ const c = $e(), t = E(), i = te([]), n = O(!1), l = L(() => i.value.filter((u) => !t.notifications.read.includes(u.slug))), a = L(() => i.value.filter((u) => t.notifications.read.includes(u.slug)));
228
+ async function r() {
229
+ try {
230
+ n.value = !0;
231
+ const u = await c.get("/one/notifications");
232
+ i.value = u.notifications;
233
+ } catch {
234
+ } finally {
235
+ n.value = !1;
236
+ }
237
+ return i.value;
238
+ }
239
+ return {
240
+ isLoading: n,
241
+ all: i,
242
+ get: r,
243
+ read: a,
244
+ unread: l
298
245
  };
299
- }), io = { class: "text-body-2" }, ao = /* @__PURE__ */ f("div", { class: "text-caption mt-n1" }, "Last Used", -1), ro = /* @__PURE__ */ V({
246
+ }), uo = /* @__PURE__ */ k({
247
+ __name: "VoNotificationsTotalBadge",
248
+ setup(c) {
249
+ const t = F(), i = xe(), n = E(), l = L(() => n.notifications.show ? i.unread.length : 0);
250
+ return (a, r) => (d(), m(Ge, {
251
+ content: l.value,
252
+ dot: !!e(t).user,
253
+ "model-value": l.value > 0,
254
+ color: "error",
255
+ location: "start top"
256
+ }, {
257
+ default: s(() => [
258
+ R(a.$slots, "default")
259
+ ]),
260
+ _: 3
261
+ }, 8, ["content", "dot", "model-value"]));
262
+ }
263
+ }), de = /* @__PURE__ */ k({
264
+ __name: "VoBtn",
265
+ props: {
266
+ readonly: { type: Boolean }
267
+ },
268
+ setup(c) {
269
+ const t = c;
270
+ return (i, n) => (d(), m(Z, {
271
+ style: Me({
272
+ pointerEvents: t.readonly ? "none" : void 0
273
+ }),
274
+ tabindex: t.readonly ? -1 : void 0,
275
+ class: "text-none font-weight-regular",
276
+ color: "primary",
277
+ size: "small",
278
+ variant: "flat"
279
+ }, G({
280
+ loader: s(() => [
281
+ i.$slots.loader ? x("", !0) : (d(), m(dt, {
282
+ key: 0,
283
+ indeterminate: "disable-shrink",
284
+ size: "16",
285
+ width: "2"
286
+ })),
287
+ R(i.$slots, "loader")
288
+ ]),
289
+ _: 2
290
+ }, [
291
+ i.$slots.default ? {
292
+ name: "default",
293
+ fn: s(() => [
294
+ R(i.$slots, "default")
295
+ ]),
296
+ key: "0"
297
+ } : void 0
298
+ ]), 1032, ["style", "tabindex"]));
299
+ }
300
+ }), po = { class: "text-body-2" }, mo = /* @__PURE__ */ v("div", { class: "text-caption mt-n1" }, "Last Used", -1), fo = /* @__PURE__ */ k({
300
301
  __name: "VoAuthDiscord",
301
- setup(u) {
302
- const t = R(), a = A(() => t.user && t.findIdentity("discord")), s = A(() => t.user ? a.value ? "Connected to Discord" : "Connect Discord" : "Log in with Discord");
303
- return (n, r) => (d(), _(ge, {
304
- "prepend-icon": `svg:${e(Ie)}`,
302
+ setup(c) {
303
+ const t = F(), i = L(() => t.user && t.findIdentity("discord")), n = L(() => t.user ? i.value ? "Connected to Discord" : "Connect Discord" : "Log in with Discord");
304
+ return (l, a) => (d(), m(he, {
305
+ "prepend-icon": `svg:${e(Oe)}`,
305
306
  "base-color": "#5865F2",
306
307
  rounded: "pill",
307
308
  variant: "flat",
308
309
  slim: "",
309
- onClick: r[0] || (r[0] = (c) => e(t).login("discord"))
310
+ onClick: a[0] || (a[0] = (r) => e(t).login("discord"))
310
311
  }, G({
311
- title: i(() => [
312
- f("span", io, C(s.value), 1)
312
+ title: s(() => [
313
+ v("span", po, D(n.value), 1)
313
314
  ]),
314
315
  _: 2
315
316
  }, [
316
317
  !e(t).user && e(t).lastLoginProvider() === "discord" ? {
317
318
  name: "subtitle",
318
- fn: i(() => [
319
- ao
319
+ fn: s(() => [
320
+ mo
320
321
  ]),
321
322
  key: "0"
322
323
  } : void 0
323
324
  ]), 1032, ["prepend-icon"]));
324
325
  }
325
- }), lo = { class: "text-body-2" }, co = /* @__PURE__ */ f("div", { class: "text-caption mt-n1" }, "Last Used", -1), uo = /* @__PURE__ */ V({
326
+ }), vo = { class: "text-body-2" }, _o = /* @__PURE__ */ v("div", { class: "text-caption mt-n1" }, "Last Used", -1), ho = /* @__PURE__ */ k({
326
327
  __name: "VoAuthGithub",
327
- setup(u) {
328
- const t = R(), a = A(() => t.user && t.findIdentity("github")), s = A(() => t.user ? a.value ? "Connected to GitHub" : "Connect GitHub" : "Log in with GitHub");
329
- return (n, r) => (d(), _(ge, {
330
- "prepend-icon": `svg:${e(De)}`,
328
+ setup(c) {
329
+ const t = F(), i = L(() => t.user && t.findIdentity("github")), n = L(() => t.user ? i.value ? "Connected to GitHub" : "Connect GitHub" : "Log in with GitHub");
330
+ return (l, a) => (d(), m(he, {
331
+ "prepend-icon": `svg:${e(je)}`,
331
332
  "base-color": "#2a2a2a",
332
333
  rounded: "pill",
333
334
  variant: "flat",
334
335
  slim: "",
335
- onClick: r[0] || (r[0] = (c) => e(t).login("github"))
336
+ onClick: a[0] || (a[0] = (r) => e(t).login("github"))
336
337
  }, G({
337
- title: i(() => [
338
- f("span", lo, C(s.value), 1)
338
+ title: s(() => [
339
+ v("span", vo, D(n.value), 1)
339
340
  ]),
340
341
  _: 2
341
342
  }, [
342
343
  !e(t).user && e(t).lastLoginProvider() === "github" ? {
343
344
  name: "subtitle",
344
- fn: i(() => [
345
- co
345
+ fn: s(() => [
346
+ _o
346
347
  ]),
347
348
  key: "0"
348
349
  } : void 0
349
350
  ]), 1032, ["prepend-icon"]));
350
351
  }
351
- }), po = { class: "pa-4 d-flex flex-column ga-4" }, mo = /* @__PURE__ */ V({
352
+ }), go = { class: "pa-4 d-flex flex-column ga-4" }, bo = /* @__PURE__ */ k({
352
353
  __name: "VoAuthListItem",
353
- setup(u) {
354
- const t = R(), a = P(), s = F(!t.user && !t.isLoading);
355
- W(() => t.user, (r) => {
356
- s.value = !r;
354
+ setup(c) {
355
+ const t = F(), i = E(), n = O(!t.user && !t.isLoading);
356
+ z(() => t.user, (a) => {
357
+ n.value = !a;
357
358
  });
358
- function n() {
359
- t.user && (s.value = !s.value);
359
+ function l() {
360
+ t.user && (n.value = !n.value);
360
361
  }
361
- return (r, c) => {
362
- const l = uo, h = ro;
363
- return d(), _(B, {
364
- variant: s.value ? "tonal" : "text",
362
+ return (a, r) => {
363
+ const u = ho, h = fo;
364
+ return d(), m(M, {
365
+ variant: n.value ? "tonal" : "text",
365
366
  class: "ma-2",
366
367
  rounded: "lg"
367
368
  }, {
368
- default: i(() => [
369
+ default: s(() => [
369
370
  o(ie, { class: "py-0" }, {
370
- default: i(() => [
371
- o(ge, {
371
+ default: s(() => [
372
+ o(he, {
372
373
  link: !!e(t).user,
373
- "prepend-icon": `svg:${e(t).user && e(a).syncSettings ? e(at) : e(rt)}`,
374
- title: e(t).user && e(a).syncSettings ? "Sync is on" : "Sync is paused",
374
+ "prepend-icon": `svg:${e(t).user && e(i).syncSettings ? e(pt) : e(mt)}`,
375
+ title: e(t).user && e(i).syncSettings ? "Sync is on" : "Sync is paused",
375
376
  class: "mb-0",
376
377
  rounded: "b-0",
377
378
  nav: "",
378
379
  slim: "",
379
- onClick: n
380
+ onClick: l
380
381
  }, {
381
- append: i(() => [
382
- o(Ue, null, {
383
- default: i(() => [
384
- e(t).user && (s.value || !e(a).syncSettings) ? (d(), _(Ge, {
382
+ append: s(() => [
383
+ o(Be, null, {
384
+ default: s(() => [
385
+ e(t).user && (n.value || !e(i).syncSettings) ? (d(), m(Je, {
385
386
  key: 0,
386
- modelValue: e(a).syncSettings,
387
- "onUpdate:modelValue": c[0] || (c[0] = (p) => e(a).syncSettings = p),
388
- color: e(a).syncSettings ? "success" : void 0,
387
+ modelValue: e(i).syncSettings,
388
+ "onUpdate:modelValue": r[0] || (r[0] = (p) => e(i).syncSettings = p),
389
+ color: e(i).syncSettings ? "success" : void 0,
389
390
  density: "compact",
390
391
  "hide-details": "",
391
392
  inset: "",
392
- onClick: c[1] || (c[1] = Te(() => {
393
+ onClick: r[1] || (r[1] = Pe(() => {
393
394
  }, ["stop"]))
394
395
  }, {
395
- thumb: i(() => [
396
- o(ve, {
397
- color: e(a).syncSettings ? "success" : void 0
396
+ thumb: s(() => [
397
+ o(fe, {
398
+ color: e(i).syncSettings ? "success" : void 0
398
399
  }, null, 8, ["color"])
399
400
  ]),
400
401
  _: 1
401
- }, 8, ["modelValue", "color"])) : $("", !0)
402
+ }, 8, ["modelValue", "color"])) : x("", !0)
402
403
  ]),
403
404
  _: 1
404
405
  })
405
406
  ]),
406
407
  _: 1
407
408
  }, 8, ["link", "prepend-icon", "title"]),
408
- o(ce, null, {
409
- default: i(() => [
410
- !e(t).user && !e(t).isLoading || s.value ? (d(), _(We, {
409
+ o(ue, null, {
410
+ default: s(() => [
411
+ !e(t).user && !e(t).isLoading || n.value ? (d(), m(Qe, {
411
412
  key: 0,
412
413
  border: "t",
413
414
  color: "transparent"
414
415
  }, {
415
- default: i(() => [
416
- f("div", po, [
417
- o(l, {
418
- onClick: c[2] || (c[2] = (p) => s.value = !1)
416
+ default: s(() => [
417
+ v("div", go, [
418
+ o(u, {
419
+ onClick: r[2] || (r[2] = (p) => n.value = !1)
419
420
  }),
420
421
  o(h, {
421
- onClick: c[3] || (c[3] = (p) => s.value = !1)
422
+ onClick: r[3] || (r[3] = (p) => n.value = !1)
422
423
  })
423
424
  ])
424
425
  ]),
425
426
  _: 1
426
- })) : $("", !0)
427
+ })) : x("", !0)
427
428
  ]),
428
429
  _: 1
429
430
  })
@@ -435,61 +436,61 @@ const ke = se("http", {
435
436
  }, 8, ["variant"]);
436
437
  };
437
438
  }
438
- }), J = /* @__PURE__ */ V({
439
+ }), Q = /* @__PURE__ */ k({
439
440
  __name: "VoListItem",
440
- setup(u) {
441
- return (t, a) => (d(), _(ge, { slim: "" }, G({
442
- default: i(() => [
443
- z(t.$slots, "default")
441
+ setup(c) {
442
+ return (t, i) => (d(), m(he, { slim: "" }, G({
443
+ default: s(() => [
444
+ R(t.$slots, "default")
444
445
  ]),
445
446
  _: 2
446
447
  }, [
447
448
  t.$slots.prepend ? {
448
449
  name: "prepend",
449
- fn: i(() => [
450
- z(t.$slots, "prepend")
450
+ fn: s(() => [
451
+ R(t.$slots, "prepend")
451
452
  ]),
452
453
  key: "0"
453
454
  } : void 0,
454
455
  t.$slots.title ? {
455
456
  name: "title",
456
- fn: i(() => [
457
- z(t.$slots, "title")
457
+ fn: s(() => [
458
+ R(t.$slots, "title")
458
459
  ]),
459
460
  key: "1"
460
461
  } : void 0,
461
462
  t.$slots.append ? {
462
463
  name: "append",
463
- fn: i(() => [
464
- z(t.$slots, "append")
464
+ fn: s(() => [
465
+ R(t.$slots, "append")
465
466
  ]),
466
467
  key: "2"
467
468
  } : void 0
468
469
  ]), 1024));
469
470
  }
470
- }), fo = /* @__PURE__ */ V({
471
+ }), yo = /* @__PURE__ */ k({
471
472
  __name: "VoAuthLogoutListItem",
472
- setup(u) {
473
- const t = R(), a = F(!1);
474
- async function s() {
475
- a.value = !0, await t.logout(), a.value = !1;
473
+ setup(c) {
474
+ const t = F(), i = O(!1);
475
+ async function n() {
476
+ i.value = !0, await t.logout(), i.value = !1;
476
477
  }
477
- return (n, r) => {
478
- const c = J;
479
- return d(), _(c, {
480
- disabled: a.value,
481
- loading: a.value,
482
- "prepend-icon": `svg:${e(lt)}`,
478
+ return (l, a) => {
479
+ const r = Q;
480
+ return d(), m(r, {
481
+ disabled: i.value,
482
+ loading: i.value,
483
+ "prepend-icon": `svg:${e(ft)}`,
483
484
  class: "mb-0",
484
485
  title: "Logout",
485
486
  link: "",
486
- onClick: s
487
+ onClick: n
487
488
  }, null, 8, ["disabled", "loading", "prepend-icon"]);
488
489
  };
489
490
  }
490
- }), xe = /* @__PURE__ */ V({
491
+ }), we = /* @__PURE__ */ k({
491
492
  __name: "VoDialog",
492
- props: /* @__PURE__ */ et({
493
+ props: /* @__PURE__ */ st({
493
494
  prependIcon: {},
494
495
  title: {}
495
496
  }, {
@@ -497,51 +498,51 @@ const ke = se("http", {
497
498
  modelModifiers: {}
498
499
  }),
499
500
  emits: ["update:modelValue"],
500
- setup(u) {
501
- const t = he(u, "modelValue"), a = be();
502
- return (s, n) => (d(), _(qt, {
501
+ setup(c) {
502
+ const t = ae(c, "modelValue"), i = ge();
503
+ return (n, l) => (d(), m(Kt, {
503
504
  modelValue: t.value,
504
- "onUpdate:modelValue": n[1] || (n[1] = (r) => t.value = r),
505
- fullscreen: e(a).xs.value,
506
- "max-height": e(a).xs.value ? "100%" : 800,
507
- "max-width": e(a).xs.value ? "100%" : 800,
505
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => t.value = a),
506
+ fullscreen: e(i).xs.value,
507
+ "max-height": e(i).xs.value ? "100%" : 800,
508
+ "max-width": e(i).xs.value ? "100%" : 800,
508
509
  activator: "parent",
509
510
  height: "100%"
510
511
  }, {
511
- default: i(({ isActive: r }) => [
512
- o(B, {
513
- "prepend-icon": s.prependIcon,
514
- title: s.title,
512
+ default: s(({ isActive: a }) => [
513
+ o(M, {
514
+ "prepend-icon": n.prependIcon,
515
+ title: n.title,
515
516
  class: "overflow-hidden",
516
517
  height: "inherit"
517
518
  }, G({
518
- append: i(() => [
519
- z(s.$slots, "append"),
519
+ append: s(() => [
520
+ R(n.$slots, "append"),
520
521
  o(Z, {
521
522
  density: "comfortable",
522
523
  icon: "$close",
523
524
  size: "small",
524
525
  variant: "text",
525
- onClick: n[0] || (n[0] = (c) => t.value = !t.value)
526
+ onClick: l[0] || (l[0] = (r) => t.value = !t.value)
526
527
  })
527
528
  ]),
528
- default: i(() => [
529
- o(T, { class: "mt-4" }),
530
- z(s.$slots, "default")
529
+ default: s(() => [
530
+ o(P, { class: "mt-4" }),
531
+ R(n.$slots, "default")
531
532
  ]),
532
533
  _: 2
533
534
  }, [
534
- s.$slots.prepend ? {
535
+ n.$slots.prepend ? {
535
536
  name: "prepend",
536
- fn: i(() => [
537
- z(s.$slots, "prepend")
537
+ fn: s(() => [
538
+ R(n.$slots, "prepend")
538
539
  ]),
539
540
  key: "0"
540
541
  } : void 0,
541
- s.$slots.actions ? {
542
+ n.$slots.actions ? {
542
543
  name: "actions",
543
- fn: i(() => [
544
- z(s.$slots, "actions", { isActive: r })
544
+ fn: s(() => [
545
+ R(n.$slots, "actions", { isActive: a })
545
546
  ]),
546
547
  key: "1"
547
548
  } : void 0
@@ -550,21 +551,21 @@ const ke = se("http", {
550
551
  _: 3
551
552
  }, 8, ["modelValue", "fullscreen", "max-height", "max-width"]));
552
553
  }
553
- }), Qe = /* @__PURE__ */ V({
554
+ }), et = /* @__PURE__ */ k({
554
555
  __name: "VoSwitch",
555
556
  props: {
556
557
  disabled: { type: Boolean }
557
558
  },
558
- setup(u) {
559
- return (t, a) => (d(), _(Ge, {
559
+ setup(c) {
560
+ return (t, i) => (d(), m(Je, {
560
561
  disabled: t.disabled,
561
- "true-icon": `svg:${e(te)}`,
562
+ "true-icon": `svg:${e(ne)}`,
562
563
  color: "primary",
563
564
  density: "compact",
564
565
  inset: ""
565
566
  }, G({
566
- thumb: i(() => [
567
- o(N, {
567
+ thumb: s(() => [
568
+ o(U, {
568
569
  color: t.disabled ? void 0 : "primary"
569
570
  }, null, 8, ["color"])
570
571
  ]),
@@ -572,40 +573,40 @@ const ke = se("http", {
572
573
  }, [
573
574
  t.$slots.label ? {
574
575
  name: "label",
575
- fn: i(() => [
576
- z(t.$slots, "label")
576
+ fn: s(() => [
577
+ R(t.$slots, "label")
577
578
  ]),
578
579
  key: "0"
579
580
  } : void 0
580
581
  ]), 1032, ["disabled", "true-icon"]));
581
582
  }
582
- }), vo = {
583
+ }), Vo = {
583
584
  key: 1,
584
585
  class: "mb-3 text-caption text-medium-emphasis"
585
- }, de = /* @__PURE__ */ V({
586
+ }, pe = /* @__PURE__ */ k({
586
587
  __name: "VoDialogSubheader",
587
588
  props: {
588
589
  title: {},
589
590
  text: {}
590
591
  },
591
- setup(u) {
592
- return (t, a) => (d(), S(U, null, [
593
- t.title ? (d(), _(Ce, {
592
+ setup(c) {
593
+ return (t, i) => (d(), S(N, null, [
594
+ t.title ? (d(), m(De, {
594
595
  key: 0,
595
596
  class: "font-weight-black"
596
597
  }, {
597
- default: i(() => [
598
- j(C(t.title), 1)
598
+ default: s(() => [
599
+ j(D(t.title), 1)
599
600
  ]),
600
601
  _: 1
601
- })) : $("", !0),
602
- t.text ? (d(), S("div", vo, C(t.text), 1)) : $("", !0)
602
+ })) : x("", !0),
603
+ t.text ? (d(), S("div", Vo, D(t.text), 1)) : x("", !0)
603
604
  ], 64));
604
605
  }
605
- }), _o = { key: 0 }, ho = /* @__PURE__ */ V({
606
+ }), ko = { key: 0 }, $o = /* @__PURE__ */ k({
606
607
  __name: "VoSettingsPageSuitOption",
607
- setup(u) {
608
- const t = P(), a = [
608
+ setup(c) {
609
+ const t = E(), i = [
609
610
  {
610
611
  title: "Choose a page suit",
611
612
  value: "",
@@ -613,7 +614,7 @@ const ke = se("http", {
613
614
  },
614
615
  {
615
616
  title: "Blackguard",
616
- prependIcon: `svg:${Ee}`,
617
+ prependIcon: `svg:${Ye}`,
617
618
  value: "blackguard"
618
619
  }
619
620
  // {
@@ -627,23 +628,23 @@ const ke = se("http", {
627
628
  // value: 'nebula',
628
629
  // },
629
630
  ];
630
- return (s, n) => {
631
- const r = Qe, c = de;
632
- return d(), S(U, null, [
633
- o(r, {
631
+ return (n, l) => {
632
+ const a = et, r = pe;
633
+ return d(), S(N, null, [
634
+ o(a, {
634
635
  modelValue: e(t).suits.show,
635
- "onUpdate:modelValue": n[0] || (n[0] = (l) => e(t).suits.show = l),
636
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => e(t).suits.show = u),
636
637
  class: "mb-2",
637
638
  label: "Enable Page suits",
638
639
  messages: "Customize layout elements with a unique background, styled after one of our themed releases."
639
640
  }, null, 8, ["modelValue"]),
640
- o(ce, null, {
641
- default: i(() => [
642
- e(t).suits.show ? (d(), S("div", _o, [
643
- o(Jt, {
641
+ o(ue, null, {
642
+ default: s(() => [
643
+ e(t).suits.show ? (d(), S("div", ko, [
644
+ o(to, {
644
645
  modelValue: e(t).suits.suit,
645
- "onUpdate:modelValue": n[1] || (n[1] = (l) => e(t).suits.suit = l),
646
- items: a,
646
+ "onUpdate:modelValue": l[1] || (l[1] = (u) => e(t).suits.suit = u),
647
+ items: i,
647
648
  density: "compact",
648
649
  placeholder: "Choose a page suit",
649
650
  style: { "max-width": "300px" },
@@ -652,77 +653,77 @@ const ke = se("http", {
652
653
  "item-props": "",
653
654
  "single-line": ""
654
655
  }, {
655
- selection: i(({ item: l }) => [
656
- o(N, {
657
- icon: l.props.prependIcon,
656
+ selection: s(({ item: u }) => [
657
+ o(U, {
658
+ icon: u.props.prependIcon,
658
659
  size: "x-small",
659
660
  start: ""
660
661
  }, null, 8, ["icon"]),
661
- j(" " + C(l.title), 1)
662
+ j(" " + D(u.title), 1)
662
663
  ]),
663
664
  _: 1
664
665
  }, 8, ["modelValue"]),
665
- o(c, { text: "Select your suit elements to display the background image:" }),
666
- o(Yt, {
666
+ o(r, { text: "Select your suit elements to display the background image:" }),
667
+ o(eo, {
667
668
  modelValue: e(t).suits.elements,
668
- "onUpdate:modelValue": n[2] || (n[2] = (l) => e(t).suits.elements = l),
669
+ "onUpdate:modelValue": l[2] || (l[2] = (u) => e(t).suits.elements = u),
669
670
  color: "primary",
670
671
  filter: "",
671
672
  multiple: ""
672
673
  }, {
673
- default: i(() => [
674
- o(E, {
675
- "append-icon": `svg:${e(ct)}`,
674
+ default: s(() => [
675
+ o(Y, {
676
+ "append-icon": `svg:${e(vt)}`,
676
677
  "filter-icon": "$success",
677
678
  text: "App Bar",
678
679
  value: "app-bar",
679
680
  variant: "flat"
680
681
  }, {
681
- append: i(() => [
682
- o(T, {
682
+ append: s(() => [
683
+ o(P, {
683
684
  class: "ms-2 border-opacity-50",
684
685
  vertical: ""
685
686
  }),
686
- o(N, { size: "x-small" })
687
+ o(U, { size: "x-small" })
687
688
  ]),
688
689
  _: 1
689
690
  }, 8, ["append-icon"]),
690
- o(E, {
691
- "append-icon": `svg:${e(ut)}`,
691
+ o(Y, {
692
+ "append-icon": `svg:${e(_t)}`,
692
693
  "filter-icon": "$success",
693
694
  text: "Navigation Drawer",
694
695
  value: "drawer",
695
696
  variant: "flat"
696
697
  }, {
697
- append: i(() => [
698
- o(T, {
698
+ append: s(() => [
699
+ o(P, {
699
700
  class: "ms-2 border-opacity-50",
700
701
  vertical: ""
701
702
  }),
702
- o(N, { size: "x-small" })
703
+ o(U, { size: "x-small" })
703
704
  ]),
704
705
  _: 1
705
706
  }, 8, ["append-icon"]),
706
- o(E, {
707
+ o(Y, {
707
708
  "append-icon": "$info",
708
709
  "filter-icon": "$success",
709
710
  text: "Footer",
710
711
  value: "footer",
711
712
  variant: "flat"
712
713
  }, {
713
- append: i(() => [
714
- o(T, {
714
+ append: s(() => [
715
+ o(P, {
715
716
  class: "ms-2 border-opacity-50",
716
717
  vertical: ""
717
718
  }),
718
- o(N, { size: "x-small" })
719
+ o(U, { size: "x-small" })
719
720
  ]),
720
721
  _: 1
721
722
  })
722
723
  ]),
723
724
  _: 1
724
725
  }, 8, ["modelValue"])
725
- ])) : $("", !0)
726
+ ])) : x("", !0)
726
727
  ]),
727
728
  _: 1
728
729
  })
@@ -730,7 +731,168 @@ const ke = se("http", {
730
731
  };
731
732
  }
732
733
  });
733
- function go() {
734
+ /*!
735
+ * vue-router v4.2.5
736
+ * (c) 2023 Eduardo San Martin Morote
737
+ * @license MIT
738
+ */
739
+ var Te;
740
+ (function(c) {
741
+ c.pop = "pop", c.push = "push";
742
+ })(Te || (Te = {}));
743
+ var Re;
744
+ (function(c) {
745
+ c.back = "back", c.forward = "forward", c.unknown = "";
746
+ })(Re || (Re = {}));
747
+ Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
748
+ var He;
749
+ (function(c) {
750
+ c[c.aborted = 4] = "aborted", c[c.cancelled = 8] = "cancelled", c[c.duplicated = 16] = "duplicated";
751
+ })(He || (He = {}));
752
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
753
+ Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
754
+ Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
755
+ const xo = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
756
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
757
+ function wo() {
758
+ return it(xo);
759
+ }
760
+ function Se() {
761
+ const c = wo();
762
+ return L(
763
+ () => c.query
764
+ );
765
+ }
766
+ const q = oe("one", () => {
767
+ const t = new URLSearchParams(window.location.search).get("session_id"), i = F(), n = $e(), l = O(!1), a = te(!1), r = te(), u = te([]), h = L(() => {
768
+ var f;
769
+ return (f = r.value) == null ? void 0 : f.items[0].plan.interval;
770
+ }), p = L(() => {
771
+ var f;
772
+ return (f = i.user) == null ? void 0 : f.sponsorships.find((V) => V.platform === "stripe" && V.tierName.startsWith("sub_"));
773
+ }), g = L(() => {
774
+ var f;
775
+ return !!((f = p.value) != null && f.tierName);
776
+ }), C = L(() => {
777
+ var f;
778
+ return (f = p.value) == null ? void 0 : f.isActive;
779
+ }), _ = L(() => {
780
+ var f;
781
+ return (f = i.user) == null ? void 0 : f.sponsorships.find((V) => V.platform === "github");
782
+ }), w = L(() => {
783
+ var f;
784
+ return (f = i.user) == null ? void 0 : f.sponsorships.find((V) => V.platform === "discord");
785
+ }), b = L(() => {
786
+ var f;
787
+ return (f = i.user) == null ? void 0 : f.sponsorships.find((V) => V.platform === "patreon");
788
+ }), y = L(() => {
789
+ var f;
790
+ return (f = i.user) == null ? void 0 : f.sponsorships.reduce((V, T) => {
791
+ if (!T.isActive || T.interval === "once" || T.platform === "stripe")
792
+ return V;
793
+ const ee = T.interval === "month" ? T.amount : T.amount / 12;
794
+ return V + ee / 100;
795
+ }, 0);
796
+ });
797
+ at(async () => {
798
+ t && await $();
799
+ }), z(C, (f, V) => {
800
+ f === !1 && V !== !0 || A();
801
+ });
802
+ async function $() {
803
+ try {
804
+ l.value = !0;
805
+ const f = await n.post("/one/activate", { sessionId: t });
806
+ i.user = f.user;
807
+ const V = new URL(window.location.href);
808
+ V.searchParams.delete("session_id"), history.pushState(null, "", V.toString()), H();
809
+ } catch {
810
+ } finally {
811
+ l.value = !1;
812
+ }
813
+ }
814
+ async function B() {
815
+ window.open(`${n.url}/one/manage`, "_blank");
816
+ }
817
+ async function I(f) {
818
+ l.value = !0, window.location.href = `${n.url}/one/subscribe?interval=${f}`;
819
+ }
820
+ async function W() {
821
+ var f;
822
+ if (p.value)
823
+ try {
824
+ l.value = !0;
825
+ const V = await n.post(
826
+ `/one/cancel?subscriptionId=${(f = p.value) == null ? void 0 : f.tierName}`
827
+ );
828
+ i.user = V.user;
829
+ } catch {
830
+ } finally {
831
+ l.value = !1;
832
+ }
833
+ }
834
+ async function K(f) {
835
+ if (p.value)
836
+ try {
837
+ l.value = !0;
838
+ const V = await n.post("/one/modify", {
839
+ subscriptionId: p.value.tierName,
840
+ interval: f
841
+ });
842
+ i.user = V.user;
843
+ } catch {
844
+ } finally {
845
+ l.value = !1;
846
+ }
847
+ }
848
+ async function A() {
849
+ var f;
850
+ if (p.value)
851
+ try {
852
+ l.value = !0;
853
+ const V = await n.post(
854
+ `/one/verify?subscriptionId=${(f = p.value) == null ? void 0 : f.tierName}`
855
+ );
856
+ i.user = V.user;
857
+ } catch {
858
+ } finally {
859
+ l.value = !1;
860
+ }
861
+ }
862
+ async function H() {
863
+ try {
864
+ l.value = !0;
865
+ const f = await n.get("/one/info");
866
+ return r.value = f.subscription, u.value = f.invoices, f;
867
+ } catch {
868
+ } finally {
869
+ l.value = !1;
870
+ }
871
+ }
872
+ return {
873
+ info: r,
874
+ interval: h,
875
+ invoices: u,
876
+ sessionId: t,
877
+ subscription: p,
878
+ monthlyTotal: y,
879
+ hasBilling: g,
880
+ isLoading: l,
881
+ isOpen: a,
882
+ isSubscriber: C,
883
+ github: _,
884
+ patreon: b,
885
+ discord: w,
886
+ activate: $,
887
+ cancel: W,
888
+ manage: B,
889
+ modify: K,
890
+ subscribe: I,
891
+ subscriptionInfo: H,
892
+ verify: A
893
+ };
894
+ });
895
+ function So() {
734
896
  return {
735
897
  blackguard: {
736
898
  dark: !0,
@@ -846,11 +1008,11 @@ function go() {
846
1008
  }
847
1009
  };
848
1010
  }
849
- const Xe = se("settings", () => {
850
- const u = "https://cdn.vuetifyjs.com/docs/images/one/", t = R(), a = P(), s = Gt(), n = go(), r = {
1011
+ const tt = oe("settings", () => {
1012
+ const c = "https://cdn.vuetifyjs.com/docs/images/one/", t = F(), i = E(), n = Zt(), l = So(), a = {
851
1013
  blackguard: {
852
- "app-bar": u + "suits/blackguard/blackguard-app-bar.png",
853
- drawer: u + "suits/blackguard/blackguard-app-drawer.png",
1014
+ "app-bar": c + "suits/blackguard/blackguard-app-bar.png",
1015
+ drawer: c + "suits/blackguard/blackguard-app-drawer.png",
854
1016
  footer: ""
855
1017
  }
856
1018
  // polaris: {
@@ -863,139 +1025,141 @@ const Xe = se("settings", () => {
863
1025
  // 'drawer': '',
864
1026
  // footer: '',
865
1027
  // },
866
- }, c = A(() => {
867
- if (!a.suits.suit || !a.suits.show || !t.isSubscriber)
1028
+ }, r = L(() => {
1029
+ if (!i.suits.suit || !i.suits.show || !t.isSubscriber)
868
1030
  return {};
869
- const l = r[a.suits.suit.toLowerCase()], h = {};
870
- for (const p of a.suits.elements)
871
- h[p] = l[p];
1031
+ const u = a[i.suits.suit.toLowerCase()], h = {};
1032
+ for (const p of i.suits.elements)
1033
+ h[p] = u[p];
872
1034
  return h;
873
1035
  });
874
- return s.themes.value = {
875
- ...s.themes.value,
876
- ...n
877
- }, W(() => a.theme, (l) => {
878
- l === "system" ? s.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : s.global.name.value = l, a.theme = l;
1036
+ return n.themes.value = {
1037
+ ...n.themes.value,
1038
+ ...l
1039
+ }, z(() => i.theme, (u) => {
1040
+ u === "system" ? n.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : n.global.name.value = u, i.theme = u;
879
1041
  }, { immediate: !0 }), {
880
- suit: c,
881
- CDN_URL: u
1042
+ suit: r,
1043
+ CDN_URL: c
882
1044
  };
883
- }), bo = /* @__PURE__ */ V({
1045
+ }), Co = /* @__PURE__ */ k({
884
1046
  __name: "VoSettingsDialog",
885
1047
  props: {
886
1048
  modelValue: { type: Boolean },
887
1049
  modelModifiers: {}
888
1050
  },
889
1051
  emits: ["update:modelValue"],
890
- setup(u) {
891
- const t = he(u, "modelValue"), a = R(), s = Xe(), n = P(), r = [
1052
+ setup(c) {
1053
+ const t = ae(c, "modelValue"), i = F(), n = q(), l = tt(), a = E(), r = [
892
1054
  {
893
1055
  title: "Light",
894
1056
  subtitle: "A standard light theme.",
895
- image: s.CDN_URL + "themes/light.png",
896
- prependIcon: `svg:${dt}`,
1057
+ image: l.CDN_URL + "themes/light.png",
1058
+ prependIcon: `svg:${ht}`,
897
1059
  value: "light"
898
1060
  },
899
1061
  {
900
1062
  title: "Dark",
901
1063
  subtitle: "A standard dark theme.",
902
- image: s.CDN_URL + "themes/dark.png",
903
- prependIcon: `svg:${pt}`,
1064
+ image: l.CDN_URL + "themes/dark.png",
1065
+ prependIcon: `svg:${gt}`,
904
1066
  value: "dark"
905
1067
  },
906
1068
  {
907
1069
  title: "System",
908
1070
  subtitle: "A theme based on the system preference.",
909
- image: s.CDN_URL + "themes/system.png",
910
- prependIcon: `svg:${mt}`,
1071
+ image: l.CDN_URL + "themes/system.png",
1072
+ prependIcon: `svg:${bt}`,
911
1073
  value: "system"
912
1074
  },
913
1075
  {
914
1076
  title: "Blackguard",
915
1077
  subtitle: "A theme for v3.4 Blackguard.",
916
- image: s.CDN_URL + "themes/blackguard.png",
917
- prependIcon: `svg:${Ee}`,
1078
+ image: l.CDN_URL + "themes/blackguard.png",
1079
+ prependIcon: `svg:${Ye}`,
918
1080
  value: "blackguard"
919
1081
  },
920
1082
  {
921
1083
  title: "Polaris",
922
1084
  subtitle: "A theme for v3.5 Polaris.",
923
- image: s.CDN_URL + "themes/polaris.png",
924
- prependIcon: `svg:${ft}`,
1085
+ image: l.CDN_URL + "themes/polaris.png",
1086
+ prependIcon: `svg:${yt}`,
925
1087
  value: "polaris",
926
1088
  disabled: !0
927
1089
  },
928
1090
  {
929
1091
  title: "Nebula",
930
1092
  subtitle: "A theme for v3.6 Nebula.",
931
- image: s.CDN_URL + "themes/nebula.png",
932
- prependIcon: `svg:${vt}`,
1093
+ image: l.CDN_URL + "themes/nebula.png",
1094
+ prependIcon: `svg:${Vt}`,
933
1095
  value: "nebula",
934
1096
  disabled: !0
935
1097
  },
936
1098
  {
937
1099
  title: "High Contrast",
938
1100
  subtitle: "A theme for high contrast.",
939
- image: s.CDN_URL + "themes/high-contrast.png",
940
- prependIcon: `svg:${_t}`,
1101
+ image: l.CDN_URL + "themes/high-contrast.png",
1102
+ prependIcon: `svg:${kt}`,
941
1103
  value: "highContrast",
942
1104
  disabled: !0
943
1105
  }
944
- ];
945
- return (c, l) => {
946
- const h = de, p = ho, g = Qe, L = xe;
947
- return d(), _(L, {
1106
+ ], u = Se();
1107
+ return z(u, async () => {
1108
+ u.value.one === "settings" && (n.isOpen = !0, await _e(), t.value = !0);
1109
+ }, { immediate: !0 }), (h, p) => {
1110
+ const g = pe, C = $o, _ = et, w = we;
1111
+ return d(), m(w, {
948
1112
  modelValue: t.value,
949
- "onUpdate:modelValue": l[5] || (l[5] = (m) => t.value = m),
950
- "prepend-icon": `svg:${e(ht)}`,
1113
+ "onUpdate:modelValue": p[5] || (p[5] = (b) => t.value = b),
1114
+ "prepend-icon": `svg:${e($t)}`,
951
1115
  title: "Settings"
952
1116
  }, {
953
- default: i(() => [
954
- o(Fe, null, {
955
- default: i(() => [
956
- o(je, { scrollable: "" }, {
957
- default: i(() => [
958
- o(Y, { class: "px-7" }, {
959
- default: i(() => [
960
- o(h, {
1117
+ default: s(() => [
1118
+ o(Ve, null, {
1119
+ default: s(() => [
1120
+ o(ke, { scrollable: "" }, {
1121
+ default: s(() => [
1122
+ o(X, { class: "px-7" }, {
1123
+ default: s(() => [
1124
+ o(g, {
961
1125
  text: "Customize your documentation experience with light and dark themes, as well as a combination of both named.",
962
1126
  title: "Theme"
963
1127
  }),
964
- o(Ye, {
965
- modelValue: e(n).theme,
966
- "onUpdate:modelValue": l[0] || (l[0] = (m) => e(n).theme = m),
1128
+ o(Ze, {
1129
+ modelValue: e(a).theme,
1130
+ "onUpdate:modelValue": p[0] || (p[0] = (b) => e(a).theme = b),
967
1131
  mandatory: ""
968
1132
  }, {
969
- default: i(() => [
970
- o(Ve, { dense: "" }, {
971
- default: i(() => [
972
- (d(), S(U, null, ne(r, (m, k) => o(le, {
973
- key: k,
1133
+ default: s(() => [
1134
+ o(ye, { dense: "" }, {
1135
+ default: s(() => [
1136
+ (d(), S(N, null, se(r, (b, y) => o(ce, {
1137
+ key: y,
974
1138
  cols: "12",
975
1139
  md: "6"
976
1140
  }, {
977
- default: i(() => [
978
- o(Le, {
979
- value: m.value
1141
+ default: s(() => [
1142
+ o(Ue, {
1143
+ value: b.value
980
1144
  }, {
981
- default: i(({ toggle: D, isSelected: b }) => [
982
- o(qe, null, {
983
- default: i(({ props: w, isHovering: I }) => [
984
- o(B, X({
985
- color: b ? "primary" : "surface-variant",
986
- disabled: m.disabled,
987
- image: m.image,
988
- "prepend-icon": m.prependIcon,
989
- ripple: !m.disabled,
990
- subtitle: m.disabled ? "In Development" : m.subtitle,
991
- title: m.title,
1145
+ default: s(({ toggle: $, isSelected: B }) => [
1146
+ o(Xe, null, {
1147
+ default: s(({ props: I, isHovering: W }) => [
1148
+ o(M, J({
1149
+ color: B ? "primary" : "surface-variant",
1150
+ disabled: b.disabled,
1151
+ image: b.image,
1152
+ "prepend-icon": b.prependIcon,
1153
+ ripple: !b.disabled,
1154
+ subtitle: b.disabled ? "In Development" : b.subtitle,
1155
+ title: b.title,
992
1156
  height: "76",
993
1157
  variant: "tonal"
994
- }, w, { onClick: D }), {
995
- image: i(() => [
996
- o(Ne, {
997
- style: Be({
998
- filter: b || I ? "none" : "grayscale(100%)"
1158
+ }, I, { onClick: $ }), {
1159
+ image: s(() => [
1160
+ o(Fe, {
1161
+ style: Me({
1162
+ filter: B || W ? "none" : "grayscale(100%)"
999
1163
  })
1000
1164
  }, null, 8, ["style"])
1001
1165
  ]),
@@ -1016,65 +1180,65 @@ const Xe = se("settings", () => {
1016
1180
  ]),
1017
1181
  _: 1
1018
1182
  }, 8, ["modelValue"]),
1019
- e(a).isSubscriber ? (d(), S(U, { key: 0 }, [
1020
- o(T, { class: "mt-6 mb-4" }),
1021
- o(p)
1022
- ], 64)) : $("", !0)
1183
+ e(i).isSubscriber ? (d(), S(N, { key: 0 }, [
1184
+ o(P, { class: "mt-6 mb-4" }),
1185
+ o(C)
1186
+ ], 64)) : x("", !0)
1023
1187
  ]),
1024
1188
  _: 1
1025
1189
  }),
1026
- o(T),
1027
- o(Y, { class: "px-7" }, {
1028
- default: i(() => [
1029
- o(h, {
1190
+ o(P),
1191
+ o(X, { class: "px-7" }, {
1192
+ default: s(() => [
1193
+ o(g, {
1030
1194
  text: "These options change your browsing experience within Vuetify properties",
1031
1195
  title: "Experience"
1032
1196
  }),
1033
- e(a).isSubscriber ? (d(), _(g, {
1197
+ e(i).isSubscriber ? (d(), m(_, {
1034
1198
  key: 0,
1035
- modelValue: e(n).disableAds,
1036
- "onUpdate:modelValue": l[1] || (l[1] = (m) => e(n).disableAds = m),
1199
+ modelValue: e(a).disableAds,
1200
+ "onUpdate:modelValue": p[1] || (p[1] = (b) => e(a).disableAds = b),
1037
1201
  class: "mb-2",
1038
1202
  label: "Disable Ads",
1039
1203
  messages: "Disable traditional advertisements on all documentation pages."
1040
- }, null, 8, ["modelValue"])) : $("", !0),
1041
- o(g, {
1042
- modelValue: e(n).quickbar,
1043
- "onUpdate:modelValue": l[2] || (l[2] = (m) => e(n).quickbar = m),
1204
+ }, null, 8, ["modelValue"])) : x("", !0),
1205
+ o(_, {
1206
+ modelValue: e(a).quickbar,
1207
+ "onUpdate:modelValue": p[2] || (p[2] = (b) => e(a).quickbar = b),
1044
1208
  label: "Enable Quick Actions",
1045
1209
  messages: "Quick actions are located on the Vuetify One user menu and provide quick access to common tasks."
1046
1210
  }, null, 8, ["modelValue"])
1047
1211
  ]),
1048
1212
  _: 1
1049
1213
  }),
1050
- o(T),
1051
- e(a).isSubscriber ? (d(), _(Y, {
1214
+ o(P),
1215
+ e(i).isSubscriber ? (d(), m(X, {
1052
1216
  key: 0,
1053
1217
  class: "px-7"
1054
1218
  }, {
1055
- default: i(() => [
1056
- o(h, {
1219
+ default: s(() => [
1220
+ o(g, {
1057
1221
  text: "Vuetify will communicate with you through banners and notifications. You can disable these features here or reset your local notification cache.",
1058
1222
  title: "Communication"
1059
1223
  }),
1060
- o(g, {
1061
- modelValue: e(n).notifications.show,
1062
- "onUpdate:modelValue": l[3] || (l[3] = (m) => e(n).notifications.show = m),
1224
+ o(_, {
1225
+ modelValue: e(a).notifications.show,
1226
+ "onUpdate:modelValue": p[3] || (p[3] = (b) => e(a).notifications.show = b),
1063
1227
  class: "mb-2",
1064
1228
  label: "Enable Notifications",
1065
1229
  messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
1066
1230
  }, null, 8, ["modelValue"]),
1067
- e(n).notifications.show ? (d(), _(g, {
1231
+ e(a).notifications.show ? (d(), m(_, {
1068
1232
  key: 0,
1069
- modelValue: e(n).notifications.banners,
1070
- "onUpdate:modelValue": l[4] || (l[4] = (m) => e(n).notifications.banners = m),
1233
+ modelValue: e(a).notifications.banners,
1234
+ "onUpdate:modelValue": p[4] || (p[4] = (b) => e(a).notifications.banners = b),
1071
1235
  class: "mb-2",
1072
1236
  label: "Enable Banners",
1073
1237
  messages: "Banners are located at the top of the screen and provide a callout for important information."
1074
- }, null, 8, ["modelValue"])) : $("", !0)
1238
+ }, null, 8, ["modelValue"])) : x("", !0)
1075
1239
  ]),
1076
1240
  _: 1
1077
- })) : $("", !0)
1241
+ })) : x("", !0)
1078
1242
  ]),
1079
1243
  _: 1
1080
1244
  })
@@ -1086,190 +1250,62 @@ const Xe = se("settings", () => {
1086
1250
  }, 8, ["modelValue", "prepend-icon"]);
1087
1251
  };
1088
1252
  }
1089
- }), yo = /* @__PURE__ */ V({
1253
+ }), Lo = /* @__PURE__ */ k({
1090
1254
  __name: "VoSettingsListItem",
1091
- setup(u) {
1092
- const t = F(!1);
1093
- return (a, s) => {
1094
- const n = bo, r = J;
1095
- return d(), _(r, {
1255
+ setup(c) {
1256
+ const t = O(!1);
1257
+ return (i, n) => {
1258
+ const l = Co, a = Q;
1259
+ return d(), m(a, {
1096
1260
  active: t.value,
1097
- "prepend-icon": `svg:${e(gt)}`,
1261
+ "prepend-icon": `svg:${e(xt)}`,
1098
1262
  title: "Settings",
1099
1263
  link: ""
1100
1264
  }, {
1101
- default: i(() => [
1102
- o(n, {
1265
+ default: s(() => [
1266
+ o(l, {
1103
1267
  modelValue: t.value,
1104
- "onUpdate:modelValue": s[0] || (s[0] = (c) => t.value = c)
1268
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r)
1105
1269
  }, null, 8, ["modelValue"])
1106
1270
  ]),
1107
1271
  _: 1
1108
1272
  }, 8, ["active", "prepend-icon"]);
1109
1273
  };
1110
1274
  }
1111
- }), Q = se("one", () => {
1112
- const t = new URLSearchParams(window.location.search).get("session_id"), a = R(), s = ke(), n = F(!1), r = oe(!1), c = oe(), l = oe([]), h = A(() => {
1113
- var v;
1114
- return (v = c.value) == null ? void 0 : v.items[0].plan.interval;
1115
- }), p = A(() => {
1116
- var v;
1117
- return (v = a.user) == null ? void 0 : v.sponsorships.find((y) => y.platform === "stripe" && y.tierName.startsWith("sub_"));
1118
- }), g = A(() => {
1119
- var v;
1120
- return !!((v = p.value) != null && v.tierName);
1121
- }), L = A(() => {
1122
- var v;
1123
- return (v = p.value) == null ? void 0 : v.isActive;
1124
- }), m = A(() => {
1125
- var v;
1126
- return (v = a.user) == null ? void 0 : v.sponsorships.find((y) => y.platform === "github");
1127
- }), k = A(() => {
1128
- var v;
1129
- return (v = a.user) == null ? void 0 : v.sponsorships.find((y) => y.platform === "discord");
1130
- }), D = A(() => {
1131
- var v;
1132
- return (v = a.user) == null ? void 0 : v.sponsorships.find((y) => y.platform === "patreon");
1133
- }), b = A(() => {
1134
- var v;
1135
- return (v = a.user) == null ? void 0 : v.sponsorships.reduce((y, M) => {
1136
- if (!M.isActive || M.interval === "once")
1137
- return y;
1138
- const ee = M.interval === "month" ? M.amount : M.amount / 12;
1139
- return y + ee / 100;
1140
- }, 0);
1141
- });
1142
- tt(async () => {
1143
- t && await w();
1144
- }), W(L, (v, y) => {
1145
- v === !1 && y !== !0 || x();
1146
- });
1147
- async function w() {
1148
- try {
1149
- n.value = !0;
1150
- const v = await s.post("/one/activate", { sessionId: t });
1151
- a.user = v.user;
1152
- const y = new URL(window.location.href);
1153
- y.searchParams.delete("session_id"), history.pushState(null, "", y.toString()), H();
1154
- } catch {
1155
- } finally {
1156
- n.value = !1;
1157
- }
1158
- }
1159
- async function I() {
1160
- window.open(`${s.url}/one/manage`, "_blank");
1161
- }
1162
- async function O(v) {
1163
- n.value = !0, window.location.href = `${s.url}/one/subscribe?interval=${v}`;
1164
- }
1165
- async function q() {
1166
- var v;
1167
- if (p.value)
1168
- try {
1169
- n.value = !0;
1170
- const y = await s.post(
1171
- `/one/cancel?subscriptionId=${(v = p.value) == null ? void 0 : v.tierName}`
1172
- );
1173
- a.user = y.user;
1174
- } catch {
1175
- } finally {
1176
- n.value = !1;
1177
- }
1178
- }
1179
- async function K(v) {
1180
- if (p.value)
1181
- try {
1182
- n.value = !0;
1183
- const y = await s.post("/one/modify", {
1184
- subscriptionId: p.value.tierName,
1185
- interval: v
1186
- });
1187
- a.user = y.user;
1188
- } catch {
1189
- } finally {
1190
- n.value = !1;
1191
- }
1192
- }
1193
- async function x() {
1194
- var v;
1195
- if (p.value)
1196
- try {
1197
- n.value = !0;
1198
- const y = await s.post(
1199
- `/one/verify?subscriptionId=${(v = p.value) == null ? void 0 : v.tierName}`
1200
- );
1201
- a.user = y.user;
1202
- } catch {
1203
- } finally {
1204
- n.value = !1;
1205
- }
1206
- }
1207
- async function H() {
1208
- try {
1209
- n.value = !0;
1210
- const v = await s.get("/one/info");
1211
- return c.value = v.subscription, l.value = v.invoices, v;
1212
- } catch {
1213
- } finally {
1214
- n.value = !1;
1215
- }
1216
- }
1217
- return {
1218
- info: c,
1219
- interval: h,
1220
- invoices: l,
1221
- sessionId: t,
1222
- subscription: p,
1223
- monthlyTotal: b,
1224
- hasBilling: g,
1225
- isLoading: n,
1226
- isOpen: r,
1227
- isSubscriber: L,
1228
- github: m,
1229
- patreon: D,
1230
- discord: k,
1231
- activate: w,
1232
- cancel: q,
1233
- manage: I,
1234
- modify: K,
1235
- subscribe: O,
1236
- subscriptionInfo: H,
1237
- verify: x
1238
- };
1239
- }), Vo = { class: "text-caption" }, ko = /* @__PURE__ */ V({
1275
+ }), Io = { class: "text-caption" }, Ao = /* @__PURE__ */ k({
1240
1276
  __name: "VoSubscriptionInvoices",
1241
- setup(u) {
1242
- const t = ye(), a = Q();
1243
- return (s, n) => {
1244
- const r = de;
1245
- return d(), _(Ve, null, {
1246
- default: i(() => [
1247
- o(le, { cols: "12" }, {
1248
- default: i(() => [
1249
- o(r, {
1277
+ setup(c) {
1278
+ const t = be(), i = q();
1279
+ return (n, l) => {
1280
+ const a = pe;
1281
+ return d(), m(ye, null, {
1282
+ default: s(() => [
1283
+ o(ce, { cols: "12" }, {
1284
+ default: s(() => [
1285
+ o(a, {
1250
1286
  text: "View and download your invoice history.",
1251
1287
  title: "Invoice History"
1252
1288
  }),
1253
- o(B, {
1289
+ o(M, {
1254
1290
  height: "450",
1255
1291
  rounded: "lg",
1256
1292
  border: ""
1257
1293
  }, {
1258
- default: i(() => [
1259
- o(Qt, {
1260
- items: e(a).invoices,
1261
- loading: e(a).isLoading,
1294
+ default: s(() => [
1295
+ o(oo, {
1296
+ items: e(i).invoices,
1297
+ loading: e(i).isLoading,
1262
1298
  sticky: ""
1263
1299
  }, {
1264
- "item.date": i(({ item: c }) => [
1265
- f("div", Vo, C(e(t).format(new Date(c.date * 1e3), "fullDateWithWeekday")), 1)
1300
+ "item.date": s(({ item: r }) => [
1301
+ v("div", Io, D(e(t).format(new Date(r.date * 1e3), "fullDateWithWeekday")), 1)
1266
1302
  ]),
1267
- "item.amount": i(({ item: c }) => [
1268
- j(" $" + C(c.amount / 100), 1)
1303
+ "item.amount": s(({ item: r }) => [
1304
+ j(" $" + D(r.amount / 100), 1)
1269
1305
  ]),
1270
- "item.status": i(({ item: c }) => [
1271
- o(E, {
1272
- text: c.status,
1306
+ "item.status": s(({ item: r }) => [
1307
+ o(Y, {
1308
+ text: r.status,
1273
1309
  border: "success sm",
1274
1310
  class: "text-capitalize",
1275
1311
  color: "success",
@@ -1278,10 +1314,10 @@ const Xe = se("settings", () => {
1278
1314
  label: ""
1279
1315
  }, null, 8, ["text"])
1280
1316
  ]),
1281
- "item.pdf": i(({ item: c }) => [
1317
+ "item.pdf": s(({ item: r }) => [
1282
1318
  o(Z, {
1283
- href: c.pdf,
1284
- icon: `svg:${e(bt)}`,
1319
+ href: r.pdf,
1320
+ icon: `svg:${e(wt)}`,
1285
1321
  size: "small",
1286
1322
  target: "_blank",
1287
1323
  variant: "text"
@@ -1300,93 +1336,93 @@ const Xe = se("settings", () => {
1300
1336
  });
1301
1337
  };
1302
1338
  }
1303
- }), $o = { class: "d-flex align-center" }, xo = {
1339
+ }), Do = { class: "d-flex align-center" }, Uo = {
1304
1340
  key: "status",
1305
1341
  class: "text-capitalize hidden-sm-and-down"
1306
- }, wo = /* @__PURE__ */ f("span", { class: "mx-1 hidden-sm-and-down" }, "—", -1), So = { class: "me-1" }, Co = { class: "text-medium-emphasis text-caption" }, Lo = { class: "d-flex align-start justify-space-between text-caption py-2" }, Ao = { class: "font-weight-bold" }, Io = { class: "font-weight-bold" }, Do = /* @__PURE__ */ V({
1342
+ }, No = /* @__PURE__ */ v("span", { class: "mx-1 hidden-sm-and-down" }, "—", -1), Oo = { class: "me-1" }, jo = { class: "text-medium-emphasis text-caption" }, Bo = { class: "d-flex align-start justify-space-between text-caption py-2" }, Fo = { class: "font-weight-bold" }, zo = { class: "font-weight-bold" }, Eo = /* @__PURE__ */ k({
1307
1343
  __name: "VoSubscriptionStatus",
1308
1344
  emits: ["change:subscription"],
1309
- setup(u, { emit: t }) {
1310
- const a = ye(), s = Q(), n = t, r = A(() => {
1311
- if (!s.info)
1345
+ setup(c, { emit: t }) {
1346
+ const i = be(), n = q(), l = t, a = L(() => {
1347
+ if (!n.info)
1312
1348
  return;
1313
- const l = new Date(s.info.currentPeriodEnd * 1e3);
1314
- return a.format(l, "keyboardDate");
1349
+ const u = new Date(n.info.currentPeriodEnd * 1e3);
1350
+ return i.format(u, "keyboardDate");
1315
1351
  });
1316
- async function c() {
1317
- s.interval && (s.isLoading = !0, s.subscribe(s.interval));
1352
+ async function r() {
1353
+ n.interval && (n.isLoading = !0, n.subscribe(n.interval));
1318
1354
  }
1319
- return (l, h) => {
1320
- const p = ue;
1321
- return d(), _(Ve, null, {
1322
- default: i(() => [
1323
- o(le, { cols: "12" }, {
1324
- default: i(() => {
1325
- var g, L;
1355
+ return (u, h) => {
1356
+ const p = de;
1357
+ return d(), m(ye, null, {
1358
+ default: s(() => [
1359
+ o(ce, { cols: "12" }, {
1360
+ default: s(() => {
1361
+ var g, C;
1326
1362
  return [
1327
- o(B, {
1363
+ o(M, {
1328
1364
  "prepend-icon": "$vuetify",
1329
1365
  rounded: "lg",
1330
1366
  title: "Subscription Status",
1331
1367
  border: "",
1332
1368
  flat: ""
1333
1369
  }, G({
1334
- append: i(() => {
1335
- var m;
1370
+ append: s(() => {
1371
+ var _;
1336
1372
  return [
1337
- e(s).hasBilling && ((m = e(s).info) == null ? void 0 : m.status) === "canceled" ? (d(), _(p, {
1373
+ e(n).hasBilling && ((_ = e(n).info) == null ? void 0 : _.status) === "canceled" ? (d(), m(p, {
1338
1374
  key: 0,
1339
- loading: e(s).isLoading,
1375
+ loading: e(n).isLoading,
1340
1376
  class: "me-2",
1341
1377
  color: "success",
1342
1378
  "prepend-icon": "$success",
1343
1379
  text: "Activate",
1344
1380
  variant: "outlined",
1345
- onClick: c
1346
- }, null, 8, ["loading"])) : $("", !0),
1347
- e(s).hasBilling ? (d(), _(p, {
1381
+ onClick: r
1382
+ }, null, 8, ["loading"])) : x("", !0),
1383
+ e(n).hasBilling ? (d(), m(p, {
1348
1384
  key: 1,
1349
- loading: e(s).isLoading,
1350
- "prepend-icon": `svg:${e(yt)}`,
1385
+ loading: e(n).isLoading,
1386
+ "prepend-icon": `svg:${e(St)}`,
1351
1387
  text: "Billing",
1352
- onClick: e(s).manage
1353
- }, null, 8, ["loading", "prepend-icon", "onClick"])) : $("", !0)
1388
+ onClick: e(n).manage
1389
+ }, null, 8, ["loading", "prepend-icon", "onClick"])) : x("", !0)
1354
1390
  ];
1355
1391
  }),
1356
1392
  _: 2
1357
1393
  }, [
1358
- e(s).info ? {
1394
+ e(n).info ? {
1359
1395
  name: "subtitle",
1360
- fn: i(() => [
1361
- f("div", $o, [
1362
- f("span", xo, C(e(s).info.status), 1),
1363
- e(s).info.items.length ? (d(), S(U, { key: 0 }, [
1364
- wo,
1365
- f("span", So, [
1366
- j(" $" + C(e(s).info.items[0].plan.amount / 100), 1),
1367
- f("span", Co, "/" + C(e(s).interval), 1)
1396
+ fn: s(() => [
1397
+ v("div", Do, [
1398
+ v("span", Uo, D(e(n).info.status), 1),
1399
+ e(n).info.items.length ? (d(), S(N, { key: 0 }, [
1400
+ No,
1401
+ v("span", Oo, [
1402
+ j(" $" + D(e(n).info.items[0].plan.amount / 100), 1),
1403
+ v("span", jo, "/" + D(e(n).interval), 1)
1368
1404
  ]),
1369
1405
  o(p, {
1370
1406
  size: "x-small",
1371
1407
  text: "(Change Subscription)",
1372
1408
  variant: "text",
1373
- onClick: h[0] || (h[0] = (m) => n("change:subscription"))
1409
+ onClick: h[0] || (h[0] = (_) => l("change:subscription"))
1374
1410
  })
1375
- ], 64)) : $("", !0)
1411
+ ], 64)) : x("", !0)
1376
1412
  ])
1377
1413
  ]),
1378
1414
  key: "0"
1379
1415
  } : {
1380
1416
  name: "subtitle",
1381
- fn: i(() => [
1382
- f("div", { class: "d-flex align-center" }, [
1383
- o(ze, {
1417
+ fn: s(() => [
1418
+ v("div", { class: "d-flex align-center" }, [
1419
+ o(Ee, {
1384
1420
  height: "16",
1385
1421
  type: "ossein",
1386
1422
  width: "40"
1387
1423
  }),
1388
- f("span", { class: "mx-1" }, "—"),
1389
- o(ze, {
1424
+ v("span", { class: "mx-1" }, "—"),
1425
+ o(Ee, {
1390
1426
  height: "16",
1391
1427
  type: "ossein",
1392
1428
  width: "80"
@@ -1396,15 +1432,15 @@ const Xe = se("settings", () => {
1396
1432
  key: "1"
1397
1433
  }
1398
1434
  ]), 1024),
1399
- f("div", Lo, [
1400
- f("div", null, [
1401
- ((g = e(s).info) == null ? void 0 : g.status) === "active" ? (d(), S(U, { key: 0 }, [
1435
+ v("div", Bo, [
1436
+ v("div", null, [
1437
+ ((g = e(n).info) == null ? void 0 : g.status) === "active" ? (d(), S(N, { key: 0 }, [
1402
1438
  j(" Your plan renews on "),
1403
- f("span", Ao, C(e(a).format(r.value, "fullDateWithWeekday")), 1),
1439
+ v("span", Fo, D(e(i).format(a.value, "fullDateWithWeekday")), 1),
1404
1440
  j(". ")
1405
- ], 64)) : (d(), S(U, { key: 1 }, [
1441
+ ], 64)) : (d(), S(N, { key: 1 }, [
1406
1442
  j(" Your plan ends on "),
1407
- f("span", Io, C(e(a).format((L = e(s).info) == null ? void 0 : L.currentPeriodEnd, "fullDateWithWeekday")), 1),
1443
+ v("span", zo, D(e(i).format((C = e(n).info) == null ? void 0 : C.currentPeriodEnd, "fullDateWithWeekday")), 1),
1408
1444
  j(". ")
1409
1445
  ], 64))
1410
1446
  ])
@@ -1418,87 +1454,87 @@ const Xe = se("settings", () => {
1418
1454
  });
1419
1455
  };
1420
1456
  }
1421
- }), Uo = /* @__PURE__ */ f("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The Vuetify One subscription comes with the following perks: ", -1), No = ["innerHTML"], Fo = /* @__PURE__ */ f("br", null, null, -1), jo = /* @__PURE__ */ f("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The following features are in development and coming soon: ", -1), Oo = ["innerHTML"], zo = /* @__PURE__ */ V({
1457
+ }), To = /* @__PURE__ */ v("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The Vuetify One subscription comes with the following perks: ", -1), Ro = ["innerHTML"], Ho = /* @__PURE__ */ v("br", null, null, -1), Mo = /* @__PURE__ */ v("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The following features are in development and coming soon: ", -1), Po = ["innerHTML"], Wo = /* @__PURE__ */ k({
1422
1458
  __name: "VoSubscriptionPerks",
1423
- setup(u) {
1459
+ setup(c) {
1424
1460
  const t = [
1425
1461
  "Ad Free Experience on all Vuetify properties",
1426
1462
  'Save and share code snippets with <a href="https://vbin.io/" target="_blank">VBin</a>',
1427
1463
  'Pinned Navigation Items and Rail drawer in <a href="https://vuetifyjs.com/" target="_blank">Documentation</a>',
1428
1464
  "Customize Navigation components with Page Suits",
1429
1465
  "Custom Vuetify One menu avatar"
1430
- ], a = [
1466
+ ], i = [
1431
1467
  'Special role in the <a href="https://discord.vuetifyjs.com/" target="_blank">Vuetify Discord</a>',
1432
1468
  'Save and share your playgrounds with <a href="https://play.vuetifyjs.com" target="_blank">Vuetify Play</a>',
1433
1469
  "Receive a special label on GitHub created issues and pull requests"
1434
- ], s = F(!1), n = Q();
1435
- return W(s, async (r) => {
1436
- r && n.subscriptionInfo();
1437
- }), (r, c) => {
1438
- const l = J;
1439
- return d(), S(U, null, [
1440
- o(Ce, { class: "font-weight-black" }, {
1441
- default: i(() => [
1470
+ ], n = O(!1), l = q();
1471
+ return z(n, async (a) => {
1472
+ a && l.subscriptionInfo();
1473
+ }), (a, r) => {
1474
+ const u = Q;
1475
+ return d(), S(N, null, [
1476
+ o(De, { class: "font-weight-black" }, {
1477
+ default: s(() => [
1442
1478
  j("Perks")
1443
1479
  ]),
1444
1480
  _: 1
1445
1481
  }),
1446
- Uo,
1482
+ To,
1447
1483
  o(ie, {
1448
1484
  lines: !1,
1449
1485
  class: "py-0",
1450
1486
  density: "compact",
1451
1487
  nav: ""
1452
1488
  }, {
1453
- default: i(() => [
1454
- (d(), S(U, null, ne(t, (h, p) => o(l, {
1489
+ default: s(() => [
1490
+ (d(), S(N, null, se(t, (h, p) => o(u, {
1455
1491
  key: p,
1456
- "prepend-icon": `svg:${e(te)}`,
1492
+ "prepend-icon": `svg:${e(ne)}`,
1457
1493
  class: "mb-0"
1458
1494
  }, {
1459
- prepend: i(() => [
1460
- o(N, {
1495
+ prepend: s(() => [
1496
+ o(U, {
1461
1497
  class: "mx-n2",
1462
1498
  color: "success",
1463
1499
  size: "small"
1464
1500
  })
1465
1501
  ]),
1466
- title: i(() => [
1467
- f("div", { innerHTML: h }, null, 8, No)
1502
+ title: s(() => [
1503
+ v("div", { innerHTML: h }, null, 8, Ro)
1468
1504
  ]),
1469
1505
  _: 2
1470
1506
  }, 1032, ["prepend-icon"])), 64))
1471
1507
  ]),
1472
1508
  _: 1
1473
1509
  }),
1474
- Fo,
1475
- o(Ce, { class: "font-weight-black" }, {
1476
- default: i(() => [
1510
+ Ho,
1511
+ o(De, { class: "font-weight-black" }, {
1512
+ default: s(() => [
1477
1513
  j("Up Next")
1478
1514
  ]),
1479
1515
  _: 1
1480
1516
  }),
1481
- jo,
1517
+ Mo,
1482
1518
  o(ie, {
1483
1519
  lines: !1,
1484
1520
  class: "py-0",
1485
1521
  density: "compact",
1486
1522
  nav: ""
1487
1523
  }, {
1488
- default: i(() => [
1489
- (d(), S(U, null, ne(a, (h, p) => o(l, {
1524
+ default: s(() => [
1525
+ (d(), S(N, null, se(i, (h, p) => o(u, {
1490
1526
  key: p,
1491
- "prepend-icon": `svg:${e(Vt)}`,
1527
+ "prepend-icon": `svg:${e(Ct)}`,
1492
1528
  class: "mb-0"
1493
1529
  }, {
1494
- prepend: i(() => [
1495
- o(N, {
1530
+ prepend: s(() => [
1531
+ o(U, {
1496
1532
  class: "mx-n2",
1497
1533
  size: "small"
1498
1534
  })
1499
1535
  ]),
1500
- title: i(() => [
1501
- f("div", { innerHTML: h }, null, 8, Oo)
1536
+ title: s(() => [
1537
+ v("div", { innerHTML: h }, null, 8, Po)
1502
1538
  ]),
1503
1539
  _: 2
1504
1540
  }, 1032, ["prepend-icon"])), 64))
@@ -1508,7 +1544,7 @@ const Xe = se("settings", () => {
1508
1544
  ], 64);
1509
1545
  };
1510
1546
  }
1511
- }), Bo = /* @__PURE__ */ V({
1547
+ }), qo = /* @__PURE__ */ k({
1512
1548
  __name: "VoSubscriptionSubscribe",
1513
1549
  props: {
1514
1550
  modelValue: {
@@ -1517,38 +1553,39 @@ const Xe = se("settings", () => {
1517
1553
  modelModifiers: {}
1518
1554
  },
1519
1555
  emits: ["update:modelValue"],
1520
- setup(u) {
1521
- const t = F(!1), a = he(u, "modelValue"), s = Q();
1522
- return W(t, async (n) => {
1523
- n && s.subscriptionInfo();
1524
- }), W(() => s.interval, (n) => {
1525
- a.value = n;
1526
- }, { immediate: !0 }), (n, r) => (d(), _(Ye, {
1527
- modelValue: a.value,
1528
- "onUpdate:modelValue": r[0] || (r[0] = (c) => a.value = c)
1556
+ setup(c) {
1557
+ const t = O(!1), i = ae(c, "modelValue"), n = q();
1558
+ return z(t, async (l) => {
1559
+ l && n.subscriptionInfo();
1560
+ }), z(() => n.interval, (l) => {
1561
+ i.value = l;
1562
+ }, { immediate: !0 }), (l, a) => (d(), m(Ze, {
1563
+ modelValue: i.value,
1564
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => i.value = r),
1565
+ mandatory: ""
1529
1566
  }, {
1530
- default: i(() => [
1531
- o(Ve, null, {
1532
- default: i(() => [
1533
- o(le, {
1567
+ default: s(() => [
1568
+ o(ye, null, {
1569
+ default: s(() => [
1570
+ o(ce, {
1534
1571
  cols: "12",
1535
1572
  md: "6"
1536
1573
  }, {
1537
- default: i(() => [
1538
- o(Le, { value: "month" }, {
1539
- default: i(({ toggle: c, isSelected: l }) => [
1540
- o(B, {
1541
- border: l ? "sm primary opacity-100" : "sm",
1542
- color: l ? "primary" : void 0,
1543
- "prepend-icon": l ? `svg:${e(re)}` : "$radioOff",
1544
- variant: l ? "tonal" : "text",
1574
+ default: s(() => [
1575
+ o(Ue, { value: "month" }, {
1576
+ default: s(({ toggle: r, isSelected: u }) => [
1577
+ o(M, {
1578
+ border: u ? "sm primary opacity-100" : "sm",
1579
+ color: u ? "primary" : void 0,
1580
+ "prepend-icon": u ? `svg:${e(le)}` : "$radioOff",
1581
+ variant: u ? "tonal" : "text",
1545
1582
  rounded: "lg",
1546
1583
  subtitle: "$2.99/month",
1547
1584
  title: "Monthly",
1548
- onClick: c
1585
+ onClick: r
1549
1586
  }, {
1550
- prepend: i(() => [
1551
- o(N, { class: "mt-n6" })
1587
+ prepend: s(() => [
1588
+ o(U, { class: "mt-n6" })
1552
1589
  ]),
1553
1590
  _: 2
1554
1591
  }, 1032, ["border", "color", "prepend-icon", "variant", "onClick"])
@@ -1558,28 +1595,28 @@ const Xe = se("settings", () => {
1558
1595
  ]),
1559
1596
  _: 1
1560
1597
  }),
1561
- o(le, {
1598
+ o(ce, {
1562
1599
  cols: "12",
1563
1600
  md: "6"
1564
1601
  }, {
1565
- default: i(() => [
1566
- o(Le, { value: "year" }, {
1567
- default: i(({ toggle: c, isSelected: l }) => [
1568
- o(B, {
1569
- border: l ? "sm primary opacity-100" : "sm",
1570
- color: l ? "primary" : void 0,
1571
- "prepend-icon": l ? `svg:${e(re)}` : "$radioOff",
1572
- variant: l ? "tonal" : "text",
1602
+ default: s(() => [
1603
+ o(Ue, { value: "year" }, {
1604
+ default: s(({ toggle: r, isSelected: u }) => [
1605
+ o(M, {
1606
+ border: u ? "sm primary opacity-100" : "sm",
1607
+ color: u ? "primary" : void 0,
1608
+ "prepend-icon": u ? `svg:${e(le)}` : "$radioOff",
1609
+ variant: u ? "tonal" : "text",
1573
1610
  rounded: "lg",
1574
1611
  subtitle: "$29.99/year",
1575
1612
  title: "Yearly",
1576
- onClick: c
1613
+ onClick: r
1577
1614
  }, {
1578
- prepend: i(() => [
1579
- o(N, { class: "mt-n6" })
1615
+ prepend: s(() => [
1616
+ o(U, { class: "mt-n6" })
1580
1617
  ]),
1581
- append: i(() => [
1582
- o(E, {
1618
+ append: s(() => [
1619
+ o(Y, {
1583
1620
  class: "mt-n6",
1584
1621
  color: "success",
1585
1622
  size: "small",
@@ -1602,107 +1639,117 @@ const Xe = se("settings", () => {
1602
1639
  _: 1
1603
1640
  }, 8, ["modelValue"]));
1604
1641
  }
1605
- }), To = { class: "px-3 h-screen" }, Ro = /* @__PURE__ */ f("br", null, null, -1), Ho = { class: "flex-grow-1 px-4 pb-3 overflow-hidden" }, Mo = /* @__PURE__ */ V({
1642
+ }), Go = { class: "px-3" }, Yo = /* @__PURE__ */ v("br", null, null, -1), Qo = { class: "flex-grow-1 px-4 pb-3 overflow-hidden" }, Jo = /* @__PURE__ */ k({
1606
1643
  __name: "VoSubscriptionDialog",
1607
1644
  props: {
1608
1645
  modelValue: { type: Boolean },
1609
1646
  modelModifiers: {}
1610
1647
  },
1611
1648
  emits: ["update:modelValue"],
1612
- setup(u) {
1613
- function t(h) {
1614
- return new Promise((p) => setTimeout(p, h));
1649
+ setup(c) {
1650
+ function t(p) {
1651
+ return new Promise((g) => setTimeout(g, p));
1615
1652
  }
1616
- const a = he(u, "modelValue"), s = Q(), n = F(s.interval), r = F(s.hasBilling ? "status" : "subscribe"), c = F(!1);
1617
- W(n, (h) => {
1618
- !s.isSubscriber || !s.interval || (c.value = h !== s.interval);
1619
- }), W(a, async (h) => {
1620
- !h || !s.isSubscriber || s.subscriptionInfo();
1621
- }), Re(() => {
1622
- s.sessionId && (r.value = "status", a.value = !0);
1623
- });
1624
- async function l() {
1625
- await s.modify(n.value), await s.subscriptionInfo(), c.value = null, await t(3e3), r.value = "status", await t(300), c.value = !1;
1653
+ const i = ae(c, "modelValue"), n = q(), l = Se(), a = O(n.interval), r = O(n.hasBilling ? "status" : "subscribe"), u = O(!1);
1654
+ z(a, (p) => {
1655
+ !n.isSubscriber || !n.interval || (u.value = p !== n.interval);
1656
+ }), z(i, async (p) => {
1657
+ !p || !n.isSubscriber || n.subscriptionInfo();
1658
+ }), z(l, async () => {
1659
+ !n.sessionId && !["subscribe", "status"].includes(l.value.one) || (r.value = n.sessionId || l.value.one === "status" ? "status" : "subscribe", n.isOpen = !0, await _e(), i.value = !0);
1660
+ }, { immediate: !0 });
1661
+ async function h() {
1662
+ await n.modify(a.value), await n.subscriptionInfo(), u.value = null, await t(3e3), r.value = "status", await t(300), u.value = !1;
1626
1663
  }
1627
- return (h, p) => {
1628
- const g = de, L = Bo, m = zo, k = Do, D = ko, b = ue, w = xe;
1629
- return d(), _(w, {
1630
- modelValue: a.value,
1631
- "onUpdate:modelValue": p[4] || (p[4] = (I) => a.value = I),
1632
- "prepend-icon": `svg:${e(kt)}`,
1664
+ return (p, g) => {
1665
+ const C = pe, _ = qo, w = Wo, b = Eo, y = Ao, $ = de, B = we;
1666
+ return d(), m(B, {
1667
+ modelValue: i.value,
1668
+ "onUpdate:modelValue": g[4] || (g[4] = (I) => i.value = I),
1669
+ "prepend-icon": `svg:${e(Lt)}`,
1633
1670
  title: "Subscriptions"
1634
1671
  }, G({
1635
- default: i(() => [
1636
- f("div", To, [
1637
- o(Y, null, {
1638
- default: i(() => [
1639
- o(g, {
1640
- text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
1641
- title: "Vuetify One"
1642
- }),
1643
- o(Je, { "model-value": r.value }, {
1644
- default: i(() => [
1645
- o(_e, { value: "subscribe" }, {
1646
- default: i(() => [
1647
- o(L, {
1648
- modelValue: n.value,
1649
- "onUpdate:modelValue": p[0] || (p[0] = (I) => n.value = I)
1650
- }, null, 8, ["modelValue"]),
1651
- Ro,
1652
- o(m)
1653
- ]),
1654
- _: 1
1655
- }),
1656
- o(_e, { value: "status" }, {
1657
- default: i(() => [
1658
- o(k, {
1659
- "onChange:subscription": p[1] || (p[1] = (I) => r.value = "subscribe")
1672
+ default: s(() => [
1673
+ o(Ve, null, {
1674
+ default: s(() => [
1675
+ o(ke, { scrollable: "" }, {
1676
+ default: s(() => [
1677
+ v("div", Go, [
1678
+ o(X, null, {
1679
+ default: s(() => [
1680
+ o(C, {
1681
+ text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
1682
+ title: "Vuetify One"
1660
1683
  }),
1661
- o(D)
1684
+ o(Ke, { "model-value": r.value }, {
1685
+ default: s(() => [
1686
+ o(ve, { value: "subscribe" }, {
1687
+ default: s(() => [
1688
+ o(_, {
1689
+ modelValue: a.value,
1690
+ "onUpdate:modelValue": g[0] || (g[0] = (I) => a.value = I)
1691
+ }, null, 8, ["modelValue"]),
1692
+ Yo,
1693
+ o(w)
1694
+ ]),
1695
+ _: 1
1696
+ }),
1697
+ o(ve, { value: "status" }, {
1698
+ default: s(() => [
1699
+ o(b, {
1700
+ "onChange:subscription": g[1] || (g[1] = (I) => r.value = "subscribe")
1701
+ }),
1702
+ o(y)
1703
+ ]),
1704
+ _: 1
1705
+ })
1706
+ ]),
1707
+ _: 1
1708
+ }, 8, ["model-value"])
1662
1709
  ]),
1663
1710
  _: 1
1664
1711
  })
1665
- ]),
1666
- _: 1
1667
- }, 8, ["model-value"])
1668
- ]),
1669
- _: 1
1670
- })
1671
- ])
1712
+ ])
1713
+ ]),
1714
+ _: 1
1715
+ })
1716
+ ]),
1717
+ _: 1
1718
+ })
1672
1719
  ]),
1673
1720
  _: 2
1674
1721
  }, [
1675
1722
  r.value === "subscribe" ? {
1676
1723
  name: "actions",
1677
- fn: i(() => [
1678
- f("div", Ho, [
1679
- c.value !== !1 ? (d(), _(b, {
1724
+ fn: s(() => [
1725
+ v("div", Qo, [
1726
+ u.value !== !1 ? (d(), m($, {
1680
1727
  key: 0,
1681
- loading: e(s).isLoading,
1682
- "prepend-icon": `svg:${c.value !== null ? e($t) : e(re)}`,
1683
- readonly: c.value === null,
1684
- text: c.value !== null ? "Modify Subscription" : "Success",
1728
+ loading: e(n).isLoading,
1729
+ "prepend-icon": `svg:${u.value !== null ? e(It) : e(le)}`,
1730
+ readonly: u.value === null,
1731
+ text: u.value !== null ? "Modify Subscription" : "Success",
1685
1732
  color: "success",
1686
1733
  size: "default",
1687
1734
  block: "",
1688
- onClick: l
1689
- }, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : e(s).isSubscriber ? (d(), _(b, {
1735
+ onClick: h
1736
+ }, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : e(n).isSubscriber ? (d(), m($, {
1690
1737
  key: 2,
1691
- "prepend-icon": `svg:${e(xt)}`,
1738
+ "prepend-icon": `svg:${e(At)}`,
1692
1739
  size: "default",
1693
1740
  text: "Manage Subscription",
1694
1741
  block: "",
1695
- onClick: p[3] || (p[3] = (I) => r.value = "status")
1696
- }, null, 8, ["prepend-icon"])) : (d(), _(b, {
1742
+ onClick: g[3] || (g[3] = (I) => r.value = "status")
1743
+ }, null, 8, ["prepend-icon"])) : (d(), m($, {
1697
1744
  key: 1,
1698
- color: n.value ? "primary" : "disabled",
1699
- disabled: !n.value,
1700
- loading: e(s).isLoading,
1745
+ color: a.value ? "primary" : "disabled",
1746
+ disabled: !a.value,
1747
+ loading: e(n).isLoading,
1701
1748
  "prepend-icon": "$vuetify",
1702
1749
  size: "default",
1703
1750
  text: "Activate Subscription",
1704
1751
  block: "",
1705
- onClick: p[2] || (p[2] = (I) => e(s).subscribe(n.value))
1752
+ onClick: g[2] || (g[2] = (I) => e(n).subscribe(a.value))
1706
1753
  }, null, 8, ["color", "disabled", "loading"]))
1707
1754
  ])
1708
1755
  ]),
@@ -1711,177 +1758,131 @@ const Xe = se("settings", () => {
1711
1758
  ]), 1032, ["modelValue", "prepend-icon"]);
1712
1759
  };
1713
1760
  }
1714
- }), Po = /* @__PURE__ */ V({
1761
+ }), Xo = /* @__PURE__ */ k({
1715
1762
  __name: "VoSubscriptionListItem",
1716
- setup(u) {
1717
- const t = F(!1);
1718
- return (a, s) => {
1719
- const n = Mo, r = J;
1720
- return d(), _(r, {
1763
+ setup(c) {
1764
+ const t = O(!1);
1765
+ return (i, n) => {
1766
+ const l = Jo, a = Q;
1767
+ return d(), m(a, {
1721
1768
  active: t.value,
1722
- "prepend-icon": `svg:${e(wt)}`,
1769
+ "prepend-icon": `svg:${e(Dt)}`,
1723
1770
  title: "Subscriptions",
1724
1771
  link: ""
1725
1772
  }, {
1726
- default: i(() => [
1727
- o(n, {
1773
+ default: s(() => [
1774
+ o(l, {
1728
1775
  modelValue: t.value,
1729
- "onUpdate:modelValue": s[0] || (s[0] = (c) => t.value = c)
1776
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r)
1730
1777
  }, null, 8, ["modelValue"])
1731
1778
  ]),
1732
1779
  _: 1
1733
1780
  }, 8, ["active", "prepend-icon"]);
1734
1781
  };
1735
1782
  }
1736
- }), Eo = { class: "px-3 pb-5 d-flex flex-column" }, Wo = { class: "ps-16" }, Go = { class: "text-caption text-end" }, qo = { class: "font-weight-bold" }, Yo = { class: "ps-16" }, Jo = { class: "text-caption text-end" }, Qo = { class: "font-weight-bold" }, Xo = { class: "ps-16" }, Zo = { class: "text-caption text-end" }, Ko = { class: "font-weight-bold" }, es = { class: "ps-16" }, ts = { class: "text-caption text-end" }, os = { class: "font-weight-bold" }, ss = { class: "py-4" }, ns = /* @__PURE__ */ f("div", { class: "text-caption text-medium-emphasis" }, [
1783
+ }), Zo = { class: "px-3 pb-5 d-flex flex-column" }, Ko = { class: "ps-16" }, en = { class: "text-caption text-end" }, tn = { class: "font-weight-bold" }, on = { class: "ps-16" }, nn = { class: "text-caption text-end" }, sn = { class: "font-weight-bold" }, an = { class: "ps-16" }, rn = { class: "text-caption text-end" }, ln = { class: "font-weight-bold" }, cn = { class: "py-4" }, un = /* @__PURE__ */ v("div", { class: "text-caption text-medium-emphasis" }, [
1737
1784
  /* @__PURE__ */ j(" A total of $2.99 or more unlocks "),
1738
- /* @__PURE__ */ f("span", { class: "font-weight-black" }, "all"),
1785
+ /* @__PURE__ */ v("span", { class: "font-weight-black" }, "all"),
1739
1786
  /* @__PURE__ */ j(" Vuetify One benefits ")
1740
- ], -1), is = /* @__PURE__ */ V({
1787
+ ], -1), dn = /* @__PURE__ */ k({
1741
1788
  __name: "VoSponsorshipsDialog",
1742
- setup(u) {
1743
- const t = ye(), a = be(), s = R(), n = Q(), r = Xe();
1744
- function c(l) {
1745
- return t.format(l, "fullDateWithWeekday");
1789
+ props: {
1790
+ modelValue: { type: Boolean },
1791
+ modelModifiers: {}
1792
+ },
1793
+ emits: ["update:modelValue"],
1794
+ setup(c) {
1795
+ const t = ae(c, "modelValue"), i = be(), n = ge(), l = Se(), a = F(), r = q(), u = tt();
1796
+ function h(p) {
1797
+ return i.format(p, "fullDateWithWeekday");
1746
1798
  }
1747
- return (l, h) => {
1748
- const p = de, g = ue, L = He("v-empty-state"), m = xe;
1749
- return d(), _(m, {
1750
- "max-height": e(a).xs.value ? void 0 : 820,
1751
- "prepend-icon": `svg:${e(St)}`,
1799
+ return z(l, async () => {
1800
+ l.value.one === "sponsorships" && (r.isOpen = !0, await _e(), t.value = !0);
1801
+ }, { immediate: !0 }), (p, g) => {
1802
+ const C = pe, _ = de, w = We("v-empty-state"), b = we;
1803
+ return d(), m(b, {
1804
+ modelValue: t.value,
1805
+ "onUpdate:modelValue": g[0] || (g[0] = (y) => t.value = y),
1806
+ "max-height": e(n).xs.value ? void 0 : 820,
1807
+ "prepend-icon": `svg:${e(Ut)}`,
1752
1808
  title: "Sponsorships"
1753
1809
  }, {
1754
- default: i(() => [
1755
- o(Fe, null, {
1756
- default: i(() => [
1757
- o(je, { scrollable: "" }, {
1758
- default: i(() => [
1759
- f("div", Eo, [
1760
- o(Y, null, {
1761
- default: i(() => [
1762
- o(p, {
1810
+ default: s(() => [
1811
+ o(Ve, null, {
1812
+ default: s(() => [
1813
+ o(ke, { scrollable: "" }, {
1814
+ default: s(() => [
1815
+ v("div", Zo, [
1816
+ o(X, null, {
1817
+ default: s(() => [
1818
+ o(C, {
1763
1819
  text: "Support Vuetify through GitHub Sponsors, Discord, or Patreon to unlock exclusive benefits and content.",
1764
1820
  title: "Support Vuetify"
1765
1821
  }),
1766
- o(Xt, {
1822
+ o(no, {
1767
1823
  class: "justify-start ms-n7",
1768
1824
  "line-inset": "12",
1769
1825
  side: "end",
1770
1826
  style: { "grid-template-columns": "auto auto 1fr" },
1771
1827
  "truncate-line": "both"
1772
1828
  }, {
1773
- default: i(() => {
1774
- var k, D, b, w, I, O, q, K;
1829
+ default: s(() => {
1830
+ var y, $, B, I, W, K;
1775
1831
  return [
1776
- o(me, {
1777
- "dot-color": (k = e(n).subscription) != null && k.isActive ? "success" : "transparent",
1778
- icon: (D = e(n).subscription) != null && D.isActive ? `svg:${e(te)}` : void 0,
1832
+ o(Ie, {
1833
+ "dot-color": (y = e(r).github) != null && y.isActive ? "success" : "transparent",
1834
+ icon: ($ = e(r).github) != null && $.isActive ? `svg:${e(ne)}` : void 0,
1779
1835
  size: "x-small",
1780
1836
  width: "100%"
1781
1837
  }, {
1782
- default: i(() => [
1783
- o(B, {
1784
- "prepend-avatar": e(r).CDN_URL + "/logos/vuetify-one.png",
1785
- rounded: "lg",
1786
- title: "Vuetify One",
1787
- variant: "text",
1788
- border: ""
1789
- }, {
1790
- append: i(() => {
1791
- var x;
1792
- return [
1793
- f("div", Wo, [
1794
- o(g, {
1795
- text: (x = e(n).subscription) != null && x.isActive ? "Active" : "Info",
1796
- color: "surface-variant",
1797
- readonly: ""
1798
- }, null, 8, ["text"])
1799
- ])
1800
- ];
1801
- }),
1802
- default: i(() => {
1803
- var x;
1804
- return [
1805
- (x = e(n).subscription) != null && x.isActive ? (d(), S(U, { key: 0 }, [
1806
- o(T),
1807
- o(Y, { class: "d-flex justify-space-between align-center flex-wrap" }, {
1808
- default: i(() => [
1809
- o(E, {
1810
- "prepend-icon": `svg:${e(pe)}`,
1811
- text: e(n).subscription.tierName,
1812
- color: "success",
1813
- variant: "text",
1814
- label: ""
1815
- }, null, 8, ["prepend-icon", "text"]),
1816
- f("div", Go, [
1817
- j(" Subscriber since "),
1818
- f("span", qo, C(c(e(n).subscription.createdAt)), 1)
1819
- ])
1820
- ]),
1821
- _: 1
1822
- })
1823
- ], 64)) : $("", !0)
1824
- ];
1825
- }),
1826
- _: 1
1827
- }, 8, ["prepend-avatar"])
1828
- ]),
1829
- _: 1
1830
- }, 8, ["dot-color", "icon"]),
1831
- o(me, {
1832
- "dot-color": (b = e(n).github) != null && b.isActive ? "success" : "transparent",
1833
- icon: (w = e(n).github) != null && w.isActive ? `svg:${e(te)}` : void 0,
1834
- size: "x-small",
1835
- width: "100%"
1836
- }, {
1837
- default: i(() => [
1838
- o(B, {
1839
- "prepend-avatar": e(r).CDN_URL + "/logos/github.png",
1838
+ default: s(() => [
1839
+ o(M, {
1840
+ "prepend-avatar": e(u).CDN_URL + "/logos/github.png",
1840
1841
  rounded: "lg",
1841
1842
  subtitle: "Support Vuetify through GitHub sponsors.",
1842
1843
  title: "GitHub Sponsors",
1843
1844
  variant: "text",
1844
1845
  border: ""
1845
1846
  }, {
1846
- append: i(() => {
1847
- var x, H, v, y, M, ee;
1847
+ append: s(() => {
1848
+ var A, H, f, V, T, ee;
1848
1849
  return [
1849
- f("div", Yo, [
1850
- o(g, {
1851
- color: (x = e(n).github) != null && x.isActive ? "success" : "primary",
1852
- href: (H = e(n).github) != null && H.isActive ? void 0 : "https://github.com/sponsors/johnleider",
1853
- "prepend-icon": `svg:${(v = e(n).github) != null && v.isActive ? e(re) : e(Oe)}`,
1854
- readonly: (y = e(n).github) == null ? void 0 : y.isActive,
1855
- target: (M = e(n).github) != null && M.isActive ? void 0 : "_blank",
1856
- text: (ee = e(n).github) != null && ee.isActive ? "Active" : "Info",
1850
+ v("div", Ko, [
1851
+ o(_, {
1852
+ color: (A = e(r).github) != null && A.isActive ? "success" : "primary",
1853
+ href: (H = e(r).github) != null && H.isActive ? void 0 : "https://github.com/sponsors/johnleider",
1854
+ "prepend-icon": `svg:${(f = e(r).github) != null && f.isActive ? e(le) : e(ze)}`,
1855
+ readonly: (V = e(r).github) == null ? void 0 : V.isActive,
1856
+ target: (T = e(r).github) != null && T.isActive ? void 0 : "_blank",
1857
+ text: (ee = e(r).github) != null && ee.isActive ? "Active" : "Info",
1857
1858
  width: "88"
1858
1859
  }, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
1859
1860
  ])
1860
1861
  ];
1861
1862
  }),
1862
- default: i(() => {
1863
- var x;
1863
+ default: s(() => {
1864
+ var A;
1864
1865
  return [
1865
- (x = e(n).github) != null && x.isActive ? (d(), S(U, { key: 0 }, [
1866
- o(T),
1867
- o(Y, { class: "d-flex justify-space-between align-center flex-wrap" }, {
1868
- default: i(() => [
1869
- o(E, {
1870
- "prepend-icon": `svg:${e(pe)}`,
1871
- text: e(n).github.tierName,
1866
+ (A = e(r).github) != null && A.isActive ? (d(), S(N, { key: 0 }, [
1867
+ o(P),
1868
+ o(X, { class: "d-flex justify-space-between align-center flex-wrap" }, {
1869
+ default: s(() => [
1870
+ o(Y, {
1871
+ "prepend-icon": `svg:${e(Le)}`,
1872
+ text: e(r).github.tierName,
1872
1873
  color: "surface-variant",
1873
1874
  size: "small",
1874
1875
  variant: "text",
1875
1876
  label: ""
1876
1877
  }, null, 8, ["prepend-icon", "text"]),
1877
- f("div", Jo, [
1878
+ v("div", en, [
1878
1879
  j(" Sponsor since "),
1879
- f("span", Qo, C(c(e(n).github.createdAt)), 1)
1880
+ v("span", tn, D(h(e(r).github.createdAt)), 1)
1880
1881
  ])
1881
1882
  ]),
1882
1883
  _: 1
1883
1884
  })
1884
- ], 64)) : $("", !0)
1885
+ ], 64)) : x("", !0)
1885
1886
  ];
1886
1887
  }),
1887
1888
  _: 1
@@ -1889,60 +1890,60 @@ const Xe = se("settings", () => {
1889
1890
  ]),
1890
1891
  _: 1
1891
1892
  }, 8, ["dot-color", "icon"]),
1892
- o(me, {
1893
- "dot-color": (I = e(n).discord) != null && I.isActive ? "success" : "transparent",
1894
- icon: (O = e(n).discord) != null && O.isActive ? `svg:${e(te)}` : void 0,
1893
+ o(Ie, {
1894
+ "dot-color": (B = e(r).discord) != null && B.isActive ? "success" : "transparent",
1895
+ icon: (I = e(r).discord) != null && I.isActive ? `svg:${e(ne)}` : void 0,
1895
1896
  size: "x-small",
1896
1897
  width: "100%"
1897
1898
  }, {
1898
- default: i(() => [
1899
- o(B, {
1900
- "prepend-avatar": e(r).CDN_URL + "/logos/discord.png",
1899
+ default: s(() => [
1900
+ o(M, {
1901
+ "prepend-avatar": e(u).CDN_URL + "/logos/discord.png",
1901
1902
  rounded: "lg",
1902
1903
  subtitle: "Support Vuetify through Discord.",
1903
1904
  title: "Discord Subscriber",
1904
1905
  variant: "text",
1905
1906
  border: ""
1906
1907
  }, {
1907
- append: i(() => {
1908
- var x, H, v, y, M, ee;
1908
+ append: s(() => {
1909
+ var A, H, f, V, T, ee;
1909
1910
  return [
1910
- f("div", Xo, [
1911
- o(g, {
1912
- color: (x = e(n).discord) != null && x.isActive ? "success" : "primary",
1913
- href: (H = e(n).discord) != null && H.isActive ? void 0 : "https://discord.com/servers/vuetify-340160225338195969",
1914
- "prepend-icon": `svg:${(v = e(n).discord) != null && v.isActive ? e(re) : e(Oe)}`,
1915
- readonly: (y = e(n).discord) == null ? void 0 : y.isActive,
1916
- target: (M = e(n).discord) != null && M.isActive ? void 0 : "_blank",
1917
- text: (ee = e(n).discord) != null && ee.isActive ? "Active" : "Info",
1911
+ v("div", on, [
1912
+ o(_, {
1913
+ color: (A = e(r).discord) != null && A.isActive ? "success" : "primary",
1914
+ href: (H = e(r).discord) != null && H.isActive ? void 0 : "https://discord.com/servers/vuetify-340160225338195969",
1915
+ "prepend-icon": `svg:${(f = e(r).discord) != null && f.isActive ? e(le) : e(ze)}`,
1916
+ readonly: (V = e(r).discord) == null ? void 0 : V.isActive,
1917
+ target: (T = e(r).discord) != null && T.isActive ? void 0 : "_blank",
1918
+ text: (ee = e(r).discord) != null && ee.isActive ? "Active" : "Info",
1918
1919
  width: "88"
1919
1920
  }, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
1920
1921
  ])
1921
1922
  ];
1922
1923
  }),
1923
- default: i(() => {
1924
- var x;
1924
+ default: s(() => {
1925
+ var A;
1925
1926
  return [
1926
- (x = e(n).discord) != null && x.isActive ? (d(), S(U, { key: 0 }, [
1927
- o(T),
1928
- o(Y, { class: "d-flex justify-space-between align-center flex-wrap" }, {
1929
- default: i(() => [
1930
- o(E, {
1931
- "prepend-icon": `svg:${e(pe)}`,
1932
- text: e(n).discord.tierName,
1927
+ (A = e(r).discord) != null && A.isActive ? (d(), S(N, { key: 0 }, [
1928
+ o(P),
1929
+ o(X, { class: "d-flex justify-space-between align-center flex-wrap" }, {
1930
+ default: s(() => [
1931
+ o(Y, {
1932
+ "prepend-icon": `svg:${e(Le)}`,
1933
+ text: e(r).discord.tierName,
1933
1934
  color: "surface-variant",
1934
1935
  size: "small",
1935
1936
  variant: "text",
1936
1937
  label: ""
1937
1938
  }, null, 8, ["prepend-icon", "text"]),
1938
- f("div", Zo, [
1939
+ v("div", nn, [
1939
1940
  j(" Subscriber since "),
1940
- f("span", Ko, C(c(e(n).discord.createdAt)), 1)
1941
+ v("span", sn, D(h(e(r).discord.createdAt)), 1)
1941
1942
  ])
1942
1943
  ]),
1943
1944
  _: 1
1944
1945
  })
1945
- ], 64)) : $("", !0)
1946
+ ], 64)) : x("", !0)
1946
1947
  ];
1947
1948
  }),
1948
1949
  _: 1
@@ -1950,55 +1951,55 @@ const Xe = se("settings", () => {
1950
1951
  ]),
1951
1952
  _: 1
1952
1953
  }, 8, ["dot-color", "icon"]),
1953
- o(me, {
1954
- "dot-color": (q = e(n).patreon) != null && q.isActive ? "success" : "transparent",
1955
- icon: (K = e(n).patreon) != null && K.isActive ? `svg:${e(te)}` : void 0,
1954
+ o(Ie, {
1955
+ "dot-color": (W = e(r).patreon) != null && W.isActive ? "success" : "transparent",
1956
+ icon: (K = e(r).patreon) != null && K.isActive ? `svg:${e(ne)}` : void 0,
1956
1957
  size: "x-small",
1957
1958
  width: "100%"
1958
1959
  }, {
1959
- default: i(() => [
1960
- o(B, {
1961
- "prepend-avatar": e(r).CDN_URL + "/logos/patreon.png",
1960
+ default: s(() => [
1961
+ o(M, {
1962
+ "prepend-avatar": e(u).CDN_URL + "/logos/patreon.png",
1962
1963
  rounded: "lg",
1963
1964
  subtitle: "Support Vuetify through Patreon.",
1964
1965
  title: "Patreon Subscriber",
1965
1966
  variant: "text",
1966
1967
  border: ""
1967
1968
  }, {
1968
- append: i(() => {
1969
- var x;
1969
+ append: s(() => {
1970
+ var A;
1970
1971
  return [
1971
- f("div", es, [
1972
- o(g, {
1973
- text: (x = e(n).patreon) != null && x.isActive ? "Active" : "Coming Soon",
1972
+ v("div", an, [
1973
+ o(_, {
1974
+ text: (A = e(r).patreon) != null && A.isActive ? "Active" : "Coming Soon",
1974
1975
  color: "surface-variant",
1975
1976
  readonly: ""
1976
1977
  }, null, 8, ["text"])
1977
1978
  ])
1978
1979
  ];
1979
1980
  }),
1980
- default: i(() => {
1981
- var x;
1981
+ default: s(() => {
1982
+ var A;
1982
1983
  return [
1983
- (x = e(n).patreon) != null && x.isActive ? (d(), S(U, { key: 0 }, [
1984
- o(T),
1985
- o(Y, { class: "d-flex justify-space-between align-center flex-wrap" }, {
1986
- default: i(() => [
1987
- o(E, {
1988
- "prepend-icon": `svg:${e(pe)}`,
1989
- text: e(n).patreon.tierName,
1984
+ (A = e(r).patreon) != null && A.isActive ? (d(), S(N, { key: 0 }, [
1985
+ o(P),
1986
+ o(X, { class: "d-flex justify-space-between align-center flex-wrap" }, {
1987
+ default: s(() => [
1988
+ o(Y, {
1989
+ "prepend-icon": `svg:${e(Le)}`,
1990
+ text: e(r).patreon.tierName,
1990
1991
  color: "success",
1991
1992
  variant: "text",
1992
1993
  label: ""
1993
1994
  }, null, 8, ["prepend-icon", "text"]),
1994
- f("div", ts, [
1995
+ v("div", rn, [
1995
1996
  j(" Sponsor since "),
1996
- f("span", os, C(c(e(n).patreon.createdAt)), 1)
1997
+ v("span", ln, D(h(e(r).patreon.createdAt)), 1)
1997
1998
  ])
1998
1999
  ]),
1999
2000
  _: 1
2000
2001
  })
2001
- ], 64)) : $("", !0)
2002
+ ], 64)) : x("", !0)
2002
2003
  ];
2003
2004
  }),
2004
2005
  _: 1
@@ -2013,27 +2014,27 @@ const Xe = se("settings", () => {
2013
2014
  ]),
2014
2015
  _: 1
2015
2016
  }),
2016
- o(L, {
2017
- icon: `svg:${e(Ct)}`,
2017
+ o(w, {
2018
+ icon: `svg:${e(Nt)}`,
2018
2019
  class: "mt-auto",
2019
2020
  "min-height": "auto",
2020
2021
  size: "64",
2021
2022
  title: "Your Monthly Contributions"
2022
2023
  }, {
2023
- media: i(() => [
2024
- o(N, { color: "success" })
2024
+ media: s(() => [
2025
+ o(U, { color: "success" })
2025
2026
  ]),
2026
- headline: i(() => [
2027
- f("div", ss, [
2028
- e(s).isSubscriber ? (d(), S(U, { key: 0 }, [
2029
- j(" $" + C(parseFloat(String(e(n).monthlyTotal)).toFixed(2)), 1)
2030
- ], 64)) : (d(), S(U, { key: 1 }, [
2027
+ headline: s(() => [
2028
+ v("div", cn, [
2029
+ e(a).isSubscriber ? (d(), S(N, { key: 0 }, [
2030
+ j(" $" + D(parseFloat(String(e(r).monthlyTotal)).toFixed(2)), 1)
2031
+ ], 64)) : (d(), S(N, { key: 1 }, [
2031
2032
  j(" $0.00 ")
2032
2033
  ], 64))
2033
2034
  ])
2034
2035
  ]),
2035
- text: i(() => [
2036
- ns
2036
+ text: s(() => [
2037
+ un
2037
2038
  ]),
2038
2039
  _: 1
2039
2040
  }, 8, ["icon"])
@@ -2046,88 +2047,88 @@ const Xe = se("settings", () => {
2046
2047
  })
2047
2048
  ]),
2048
2049
  _: 1
2049
- }, 8, ["max-height", "prepend-icon"]);
2050
+ }, 8, ["modelValue", "max-height", "prepend-icon"]);
2050
2051
  };
2051
2052
  }
2052
- }), as = /* @__PURE__ */ V({
2053
+ }), pn = /* @__PURE__ */ k({
2053
2054
  __name: "VoSponsorshipsListItem",
2054
- setup(u) {
2055
- const t = F(!1);
2056
- return (a, s) => {
2057
- const n = is, r = J;
2058
- return d(), _(r, {
2055
+ setup(c) {
2056
+ const t = O(!1);
2057
+ return (i, n) => {
2058
+ const l = dn, a = Q;
2059
+ return d(), m(a, {
2059
2060
  active: t.value,
2060
- "prepend-icon": `svg:${e(Lt)}`,
2061
+ "prepend-icon": `svg:${e(Ot)}`,
2061
2062
  title: "Sponsorships",
2062
2063
  link: ""
2063
2064
  }, {
2064
- default: i(() => [
2065
- o(n, {
2065
+ default: s(() => [
2066
+ o(l, {
2066
2067
  modelValue: t.value,
2067
- "onUpdate:modelValue": s[0] || (s[0] = (c) => t.value = c)
2068
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r)
2068
2069
  }, null, 8, ["modelValue"])
2069
2070
  ]),
2070
2071
  _: 1
2071
2072
  }, 8, ["active", "prepend-icon"]);
2072
2073
  };
2073
2074
  }
2074
- }), rs = {
2075
+ }), mn = {
2075
2076
  key: 0,
2076
2077
  class: "pt-16"
2077
- }, ls = /* @__PURE__ */ f("div", { class: "text-medium-emphasis" }, " All caught up ", -1), cs = { class: "ps-3 text-subtitle-2 pe-2" }, us = { class: "text-truncate" }, ds = { class: "text-caption font-weight-bold text-medium-emphasis" }, ps = { class: "text-disabled text-caption my-2" }, ms = /* @__PURE__ */ V({
2078
+ }, fn = /* @__PURE__ */ v("div", { class: "text-medium-emphasis" }, " All caught up ", -1), vn = { class: "ps-3 text-subtitle-2 pe-2" }, _n = { class: "text-truncate" }, hn = { class: "text-caption font-weight-bold text-medium-emphasis" }, gn = { class: "text-disabled text-caption my-2" }, bn = /* @__PURE__ */ k({
2078
2079
  __name: "VoNotificationsList",
2079
2080
  props: {
2080
2081
  items: {}
2081
2082
  },
2082
- setup(u) {
2083
- const t = P(), a = ye();
2084
- function s(r) {
2085
- return t.notifications.read.includes(r);
2083
+ setup(c) {
2084
+ const t = E(), i = be();
2085
+ function n(a) {
2086
+ return t.notifications.read.includes(a);
2086
2087
  }
2087
- function n(r) {
2088
- s(r.slug) ? t.notifications.read = t.notifications.read.filter((c) => c !== r.slug) : t.notifications.read.push(r.slug);
2088
+ function l(a) {
2089
+ n(a.slug) ? t.notifications.read = t.notifications.read.filter((r) => r !== a.slug) : t.notifications.read.push(a.slug);
2089
2090
  }
2090
- return (r, c) => {
2091
- const l = He("v-empty-state"), h = J;
2092
- return d(), _(ie, {
2091
+ return (a, r) => {
2092
+ const u = We("v-empty-state"), h = Q;
2093
+ return d(), m(ie, {
2093
2094
  class: "py-0",
2094
2095
  height: "100%",
2095
2096
  lines: "three"
2096
2097
  }, {
2097
- default: i(() => [
2098
- r.items.length ? (d(!0), S(U, { key: 1 }, ne(r.items, (p, g) => (d(), _(qe, {
2098
+ default: s(() => [
2099
+ a.items.length ? (d(!0), S(N, { key: 1 }, se(a.items, (p, g) => (d(), m(Xe, {
2099
2100
  key: p.slug
2100
2101
  }, {
2101
- default: i(({ isHovering: L, props: m }) => [
2102
- o(h, X(m, {
2102
+ default: s(({ isHovering: C, props: _ }) => [
2103
+ o(h, J(_, {
2103
2104
  border: g !== 0 && "t",
2104
2105
  class: "py-4 mb-0"
2105
2106
  }), {
2106
- prepend: i(() => [
2107
- f("div", cs, C(p.metadata.emoji), 1)
2107
+ prepend: s(() => [
2108
+ v("div", vn, D(p.metadata.emoji), 1)
2108
2109
  ]),
2109
- append: i(() => [
2110
- o(Zt, {
2110
+ append: s(() => [
2111
+ o(so, {
2111
2112
  class: "mt-n3",
2112
2113
  width: "56"
2113
2114
  }, {
2114
- default: i(() => [
2115
- o(ae, {
2116
- text: s(p.slug) ? "Mark as unread" : "Mark as read",
2115
+ default: s(() => [
2116
+ o(re, {
2117
+ text: n(p.slug) ? "Mark as unread" : "Mark as read",
2117
2118
  location: "bottom"
2118
2119
  }, {
2119
- activator: i(({ props: k }) => [
2120
- o(Ue, { "hide-on-leave": "" }, {
2121
- default: i(() => [
2122
- Ae(o(Z, X(k, {
2123
- icon: `svg:${s(p.slug) ? e(It) : e(At)}`,
2120
+ activator: s(({ props: w }) => [
2121
+ o(Be, { "hide-on-leave": "" }, {
2122
+ default: s(() => [
2123
+ Ne(o(Z, J(w, {
2124
+ icon: `svg:${n(p.slug) ? e(Bt) : e(jt)}`,
2124
2125
  class: "ms-auto",
2125
2126
  size: "small",
2126
2127
  variant: "text",
2127
2128
  "mdi-email-variant": "",
2128
- onClick: (D) => n(p)
2129
+ onClick: (b) => l(p)
2129
2130
  }), null, 16, ["icon", "onClick"]), [
2130
- [Me, L]
2131
+ [qe, C]
2131
2132
  ])
2132
2133
  ]),
2133
2134
  _: 2
@@ -2139,17 +2140,17 @@ const Xe = se("settings", () => {
2139
2140
  _: 2
2140
2141
  }, 1024)
2141
2142
  ]),
2142
- default: i(() => [
2143
- o(Et, { class: "text-wrap text-h6 mb-1" }, {
2144
- default: i(() => [
2145
- f("div", us, C(p.title), 1)
2143
+ default: s(() => [
2144
+ o(Jt, { class: "text-wrap text-h6 mb-1" }, {
2145
+ default: s(() => [
2146
+ v("div", _n, D(p.title), 1)
2146
2147
  ]),
2147
2148
  _: 2
2148
2149
  }, 1024),
2149
- f("div", ds, C(e(a).format(p.created_at, "fullDateWithWeekday")), 1),
2150
- f("div", ps, C(p.metadata.text), 1),
2151
- o(E, {
2152
- "append-icon": `svg:${e(Dt)}`,
2150
+ v("div", hn, D(e(i).format(p.created_at, "fullDateWithWeekday")), 1),
2151
+ v("div", gn, D(p.metadata.text), 1),
2152
+ o(Y, {
2153
+ "append-icon": `svg:${e(Ft)}`,
2153
2154
  href: p.metadata.action,
2154
2155
  text: p.metadata.action_text,
2155
2156
  size: "small",
@@ -2157,10 +2158,10 @@ const Xe = se("settings", () => {
2157
2158
  variant: "text",
2158
2159
  border: "",
2159
2160
  label: "",
2160
- onClick: (k) => n(p)
2161
+ onClick: (w) => l(p)
2161
2162
  }, {
2162
- append: i(() => [
2163
- o(N, { size: "12" })
2163
+ append: s(() => [
2164
+ o(U, { size: "12" })
2164
2165
  ]),
2165
2166
  _: 2
2166
2167
  }, 1032, ["append-icon", "href", "text", "onClick"])
@@ -2169,16 +2170,16 @@ const Xe = se("settings", () => {
2169
2170
  }, 1040, ["border"])
2170
2171
  ]),
2171
2172
  _: 2
2172
- }, 1024))), 128)) : (d(), S("div", rs, [
2173
- o(l, {
2173
+ }, 1024))), 128)) : (d(), S("div", mn, [
2174
+ o(u, {
2174
2175
  icon: "$vuetify",
2175
2176
  size: "256"
2176
2177
  }, {
2177
- media: i(() => [
2178
- o(N, { color: "medium-emphasis" })
2178
+ media: s(() => [
2179
+ o(U, { color: "medium-emphasis" })
2179
2180
  ]),
2180
- title: i(() => [
2181
- ls
2181
+ title: s(() => [
2182
+ fn
2182
2183
  ]),
2183
2184
  _: 1
2184
2185
  })
@@ -2188,51 +2189,58 @@ const Xe = se("settings", () => {
2188
2189
  });
2189
2190
  };
2190
2191
  }
2191
- }), fs = { class: "text-caption" }, vs = /* @__PURE__ */ V({
2192
+ }), yn = { class: "text-caption" }, Vn = /* @__PURE__ */ k({
2192
2193
  __name: "VoNotificationsDialog",
2193
- setup(u) {
2194
- const t = $e(), a = be(), s = F(["0"]), n = F(!1);
2195
- return (r, c) => {
2196
- const l = J, h = ms, p = xe;
2197
- return d(), _(p, {
2198
- modelValue: n.value,
2199
- "onUpdate:modelValue": c[2] || (c[2] = (g) => n.value = g),
2200
- "prepend-icon": `svg:${e(Ut)}`,
2194
+ props: {
2195
+ modelValue: { type: Boolean },
2196
+ modelModifiers: {}
2197
+ },
2198
+ emits: ["update:modelValue"],
2199
+ setup(c) {
2200
+ const t = ge(), i = Se(), n = q(), l = xe(), a = O(["0"]), r = ae(c, "modelValue");
2201
+ return z(i, async () => {
2202
+ i.value.one === "notifications" && (n.isOpen = !0, await _e(), r.value = !0);
2203
+ }, { immediate: !0 }), (u, h) => {
2204
+ const p = Q, g = bn, C = we;
2205
+ return d(), m(C, {
2206
+ modelValue: r.value,
2207
+ "onUpdate:modelValue": h[2] || (h[2] = (_) => r.value = _),
2208
+ "prepend-icon": `svg:${e(zt)}`,
2201
2209
  title: "Notifications"
2202
2210
  }, {
2203
- default: i(() => [
2204
- o(Fe, null, {
2205
- default: i(() => [
2206
- o(Kt, {
2207
- location: e(a).mobile.value ? "top" : "start",
2208
- width: e(a).mobile.value ? 128 : 168,
2211
+ default: s(() => [
2212
+ o(Ve, null, {
2213
+ default: s(() => [
2214
+ o(io, {
2215
+ location: e(t).mobile.value ? "top" : "start",
2216
+ width: e(t).mobile.value ? 128 : 168,
2209
2217
  permanent: ""
2210
2218
  }, {
2211
- default: i(() => [
2219
+ default: s(() => [
2212
2220
  o(ie, {
2213
- selected: s.value,
2214
- "onUpdate:selected": c[0] || (c[0] = (g) => s.value = g),
2221
+ selected: a.value,
2222
+ "onUpdate:selected": h[0] || (h[0] = (_) => a.value = _),
2215
2223
  class: "px-4 pt-4",
2216
2224
  density: "compact",
2217
2225
  mandatory: "",
2218
2226
  nav: ""
2219
2227
  }, {
2220
- default: i(() => [
2221
- o(l, {
2222
- "prepend-icon": `svg:${e(Nt)}`,
2228
+ default: s(() => [
2229
+ o(p, {
2230
+ "prepend-icon": `svg:${e(Et)}`,
2223
2231
  title: "Unread",
2224
2232
  value: "0"
2225
2233
  }, G({ _: 2 }, [
2226
- e(t).unread.length > 0 ? {
2234
+ e(l).unread.length > 0 ? {
2227
2235
  name: "append",
2228
- fn: i(() => [
2229
- f("span", fs, C(e(t).unread.length), 1)
2236
+ fn: s(() => [
2237
+ v("span", yn, D(e(l).unread.length), 1)
2230
2238
  ]),
2231
2239
  key: "0"
2232
2240
  } : void 0
2233
2241
  ]), 1032, ["prepend-icon"]),
2234
- o(l, {
2235
- "prepend-icon": `svg:${e(Ft)}`,
2242
+ o(p, {
2243
+ "prepend-icon": `svg:${e(Tt)}`,
2236
2244
  title: "Read",
2237
2245
  value: "1",
2238
2246
  "mdi-archive-outline": ""
@@ -2243,25 +2251,25 @@ const Xe = se("settings", () => {
2243
2251
  ]),
2244
2252
  _: 1
2245
2253
  }, 8, ["location", "width"]),
2246
- o(je, { scrollable: "" }, {
2247
- default: i(() => [
2248
- o(Je, {
2249
- modelValue: s.value,
2250
- "onUpdate:modelValue": c[1] || (c[1] = (g) => s.value = g)
2254
+ o(ke, { scrollable: "" }, {
2255
+ default: s(() => [
2256
+ o(Ke, {
2257
+ modelValue: a.value,
2258
+ "onUpdate:modelValue": h[1] || (h[1] = (_) => a.value = _)
2251
2259
  }, {
2252
- default: i(() => [
2253
- o(_e, { value: "0" }, {
2254
- default: i(() => [
2255
- o(h, {
2256
- items: e(t).unread
2260
+ default: s(() => [
2261
+ o(ve, { value: "0" }, {
2262
+ default: s(() => [
2263
+ o(g, {
2264
+ items: e(l).unread
2257
2265
  }, null, 8, ["items"])
2258
2266
  ]),
2259
2267
  _: 1
2260
2268
  }),
2261
- o(_e, { value: "1" }, {
2262
- default: i(() => [
2263
- o(h, {
2264
- items: e(t).read
2269
+ o(ve, { value: "1" }, {
2270
+ default: s(() => [
2271
+ o(g, {
2272
+ items: e(l).read
2265
2273
  }, null, 8, ["items"])
2266
2274
  ]),
2267
2275
  _: 1
@@ -2280,102 +2288,102 @@ const Xe = se("settings", () => {
2280
2288
  }, 8, ["modelValue", "prepend-icon"]);
2281
2289
  };
2282
2290
  }
2283
- }), _s = /* @__PURE__ */ V({
2291
+ }), kn = /* @__PURE__ */ k({
2284
2292
  __name: "VoNotificationsBadge",
2285
- setup(u) {
2286
- const t = $e();
2287
- return (a, s) => (d(), _(Pe, {
2293
+ setup(c) {
2294
+ const t = xe(), i = E();
2295
+ return (n, l) => (d(), m(Ge, {
2288
2296
  content: e(t).unread.length,
2289
- "model-value": e(t).unread.length > 0,
2297
+ "model-value": e(i).notifications.show && e(t).unread.length > 0,
2290
2298
  color: "error"
2291
2299
  }, {
2292
- default: i(() => [
2293
- z(a.$slots, "default")
2300
+ default: s(() => [
2301
+ R(n.$slots, "default")
2294
2302
  ]),
2295
2303
  _: 3
2296
2304
  }, 8, ["content", "model-value"]));
2297
2305
  }
2298
- }), hs = /* @__PURE__ */ V({
2306
+ }), $n = /* @__PURE__ */ k({
2299
2307
  __name: "VoNotificationsListItem",
2300
- setup(u) {
2301
- const t = P(), a = $e(), s = F(!1);
2302
- return Re(async () => {
2303
- await a.get();
2304
- }), (n, r) => {
2305
- const c = _s, l = vs, h = J;
2306
- return e(t).notifications.show ? (d(), _(h, {
2308
+ setup(c) {
2309
+ const t = E(), i = xe(), n = O(!1);
2310
+ return rt(async () => {
2311
+ await i.get();
2312
+ }), (l, a) => {
2313
+ const r = kn, u = Vn, h = Q;
2314
+ return e(t).notifications.show ? (d(), m(h, {
2307
2315
  key: 0,
2308
- active: s.value,
2309
- "prepend-icon": `svg:${e(jt)}`,
2316
+ active: n.value,
2317
+ "prepend-icon": `svg:${e(Rt)}`,
2310
2318
  title: "Notifications",
2311
2319
  link: ""
2312
2320
  }, G({
2313
- default: i(() => [
2314
- o(l, {
2315
- modelValue: s.value,
2316
- "onUpdate:modelValue": r[0] || (r[0] = (p) => s.value = p)
2321
+ default: s(() => [
2322
+ o(u, {
2323
+ modelValue: n.value,
2324
+ "onUpdate:modelValue": a[0] || (a[0] = (p) => n.value = p)
2317
2325
  }, null, 8, ["modelValue"])
2318
2326
  ]),
2319
2327
  _: 2
2320
2328
  }, [
2321
- e(a).unread.length ? {
2329
+ e(i).unread.length ? {
2322
2330
  name: "prepend",
2323
- fn: i(() => [
2324
- o(c, null, {
2325
- default: i(() => [
2326
- o(N)
2331
+ fn: s(() => [
2332
+ o(r, null, {
2333
+ default: s(() => [
2334
+ o(U)
2327
2335
  ]),
2328
2336
  _: 1
2329
2337
  })
2330
2338
  ]),
2331
2339
  key: "0"
2332
2340
  } : void 0
2333
- ]), 1032, ["active", "prepend-icon"])) : $("", !0);
2341
+ ]), 1032, ["active", "prepend-icon"])) : x("", !0);
2334
2342
  };
2335
2343
  }
2336
- }), gs = /* @__PURE__ */ V({
2344
+ }), xn = /* @__PURE__ */ k({
2337
2345
  __name: "VoDashboardListItem",
2338
- setup(u) {
2339
- return (t, a) => {
2340
- const s = J;
2341
- return d(), _(s, {
2342
- "prepend-icon": `svg:${e(Ot)}`,
2346
+ setup(c) {
2347
+ return (t, i) => {
2348
+ const n = Q;
2349
+ return d(), m(n, {
2350
+ "prepend-icon": `svg:${e(Ht)}`,
2343
2351
  title: "Dashboard",
2344
2352
  to: "/user/dashboard"
2345
2353
  }, null, 8, ["prepend-icon"]);
2346
2354
  };
2347
2355
  }
2348
- }), bs = /* @__PURE__ */ V({
2356
+ }), wn = /* @__PURE__ */ k({
2349
2357
  __name: "VoUserList",
2350
- setup(u) {
2351
- const t = R();
2352
- return (a, s) => {
2353
- const n = gs, r = hs, c = as, l = Po, h = yo, p = fo;
2354
- return d(), _(ie, {
2358
+ setup(c) {
2359
+ const t = F();
2360
+ return (i, n) => {
2361
+ const l = xn, a = $n, r = pn, u = Xo, h = Lo, p = yo;
2362
+ return d(), m(ie, {
2355
2363
  density: "compact",
2356
2364
  nav: "",
2357
2365
  slim: ""
2358
2366
  }, {
2359
- default: i(() => [
2360
- o(n),
2367
+ default: s(() => [
2368
+ o(l),
2369
+ o(a),
2361
2370
  o(r),
2362
- o(c),
2363
- e(t).user ? (d(), _(l, { key: 0 })) : $("", !0),
2371
+ e(t).user ? (d(), m(u, { key: 0 })) : x("", !0),
2364
2372
  o(h),
2365
- e(t).user ? (d(), _(p, { key: 1 })) : $("", !0)
2373
+ e(t).user ? (d(), m(p, { key: 1 })) : x("", !0)
2366
2374
  ]),
2367
2375
  _: 1
2368
2376
  });
2369
2377
  };
2370
2378
  }
2371
- }), ys = { key: 0 }, Vs = { class: "d-flex align-center justify-center pa-1 ga-2" }, ks = /* @__PURE__ */ V({
2379
+ }), Sn = { key: 0 }, Cn = { class: "d-flex align-center justify-center pa-1 ga-2" }, Ln = /* @__PURE__ */ k({
2372
2380
  __name: "VoUserQuickActions",
2373
- setup(u) {
2374
- const t = P();
2375
- return (a, s) => (d(), _(ce, null, {
2376
- default: i(() => [
2377
- e(t).quickbar ? (d(), S("div", ys, [
2378
- f("div", Vs, [
2381
+ setup(c) {
2382
+ const t = E();
2383
+ return (i, n) => (d(), m(ue, null, {
2384
+ default: s(() => [
2385
+ e(t).quickbar ? (d(), S("div", Sn, [
2386
+ v("div", Cn, [
2379
2387
  o(Z, {
2380
2388
  color: e(t).colors.one,
2381
2389
  class: "text-caption",
@@ -2386,7 +2394,7 @@ const Xe = se("settings", () => {
2386
2394
  }, null, 8, ["color"]),
2387
2395
  o(Z, {
2388
2396
  color: e(t).colors.one,
2389
- icon: `svg:${e(zt)}`,
2397
+ icon: `svg:${e(Mt)}`,
2390
2398
  class: "text-caption",
2391
2399
  density: "comfortable",
2392
2400
  href: "https://bin.vuetifyjs.com",
@@ -2394,23 +2402,23 @@ const Xe = se("settings", () => {
2394
2402
  }, null, 8, ["color", "icon"]),
2395
2403
  o(Z, {
2396
2404
  color: e(t).colors.one,
2397
- icon: `svg:${e(Bt)}`,
2405
+ icon: `svg:${e(Pt)}`,
2398
2406
  class: "text-caption",
2399
2407
  density: "comfortable",
2400
2408
  href: "https://issues.vuetifyjs.com",
2401
2409
  target: "_blank"
2402
2410
  }, null, 8, ["color", "icon"])
2403
2411
  ])
2404
- ])) : $("", !0)
2412
+ ])) : x("", !0)
2405
2413
  ]),
2406
2414
  _: 1
2407
2415
  }));
2408
2416
  }
2409
- }), $s = { class: "mb-2" }, xs = { key: 0 }, ws = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, Ss = { class: "text-h6" }, Cs = /* @__PURE__ */ V({
2417
+ }), In = { class: "mb-2" }, An = { key: 0 }, Dn = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, Un = { class: "text-h6" }, Nn = /* @__PURE__ */ k({
2410
2418
  __name: "VoUserAvatar",
2411
- setup(u) {
2412
- const t = R(), a = P(), s = F(!1), n = A(() => {
2413
- const l = [
2419
+ setup(c) {
2420
+ const t = F(), i = E(), n = O(!1), l = L(() => {
2421
+ const u = [
2414
2422
  "https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
2415
2423
  "https://cdn.vuetifyjs.com/docs/images/avatars/grass.png",
2416
2424
  "https://cdn.vuetifyjs.com/docs/images/avatars/wood.png",
@@ -2426,19 +2434,19 @@ const Xe = se("settings", () => {
2426
2434
  "https://cdn.vuetifyjs.com/docs/images/avatars/meteor.png",
2427
2435
  "https://cdn.vuetifyjs.com/docs/images/avatars/tada.png"
2428
2436
  ];
2429
- return t.user && l.unshift(t.user.picture), l;
2437
+ return t.user && u.unshift(t.user.picture), u;
2430
2438
  });
2431
- function r(l) {
2432
- a.avatar = l;
2439
+ function a(u) {
2440
+ i.avatar = u;
2433
2441
  }
2434
- function c() {
2435
- t.isSubscriber && (s.value = !s.value);
2442
+ function r() {
2443
+ t.isSubscriber && (n.value = !n.value);
2436
2444
  }
2437
- return (l, h) => {
2445
+ return (u, h) => {
2438
2446
  var p;
2439
2447
  return d(), S("div", null, [
2440
- Ae((d(), _(ve, {
2441
- class: ot([
2448
+ Ne((d(), m(fe, {
2449
+ class: lt([
2442
2450
  "border-md border-opacity-100 border-surface-variant",
2443
2451
  {
2444
2452
  "cursor-pointer": e(t).isSubscriber
@@ -2447,14 +2455,14 @@ const Xe = se("settings", () => {
2447
2455
  color: "surface",
2448
2456
  size: "72",
2449
2457
  text: "Foobar",
2450
- onClick: Te(c, ["prevent", "stop"])
2458
+ onClick: Pe(r, ["prevent", "stop"])
2451
2459
  }, {
2452
- default: i(() => [
2453
- e(t).user && e(a).avatar ? (d(), _(Ne, {
2460
+ default: s(() => [
2461
+ e(t).user && e(i).avatar ? (d(), m(Fe, {
2454
2462
  key: 0,
2455
- src: e(a).avatar,
2463
+ src: e(i).avatar,
2456
2464
  alt: "User avatar"
2457
- }, null, 8, ["src"])) : (d(), _(N, {
2465
+ }, null, 8, ["src"])) : (d(), m(U, {
2458
2466
  key: 1,
2459
2467
  class: "mt-1",
2460
2468
  icon: "$vuetify",
@@ -2463,28 +2471,28 @@ const Xe = se("settings", () => {
2463
2471
  ]),
2464
2472
  _: 1
2465
2473
  }, 8, ["class"])), [
2466
- [eo, e(t).isSubscriber]
2474
+ [ao, e(t).isSubscriber]
2467
2475
  ]),
2468
- f("div", $s, [
2469
- o(ce, null, {
2470
- default: i(() => [
2471
- s.value ? (d(), S("div", xs, [
2472
- o(B, {
2476
+ v("div", In, [
2477
+ o(ue, null, {
2478
+ default: s(() => [
2479
+ n.value ? (d(), S("div", An, [
2480
+ o(M, {
2473
2481
  class: "pt-6 pb-1",
2474
2482
  rounded: "0",
2475
2483
  flat: ""
2476
2484
  }, {
2477
- default: i(() => [
2478
- f("div", ws, [
2479
- (d(!0), S(U, null, ne(n.value, (g, L) => (d(), _(Z, {
2480
- key: L,
2481
- active: e(a).avatar === g,
2485
+ default: s(() => [
2486
+ v("div", Dn, [
2487
+ (d(!0), S(N, null, se(l.value, (g, C) => (d(), m(Z, {
2488
+ key: C,
2489
+ active: e(i).avatar === g,
2482
2490
  variant: "flat",
2483
2491
  icon: "",
2484
- onClick: (m) => r(g)
2492
+ onClick: (_) => a(g)
2485
2493
  }, {
2486
- default: i(() => [
2487
- o(ve, {
2494
+ default: s(() => [
2495
+ o(fe, {
2488
2496
  image: g,
2489
2497
  eager: ""
2490
2498
  }, null, 8, ["image"])
@@ -2495,118 +2503,128 @@ const Xe = se("settings", () => {
2495
2503
  ]),
2496
2504
  _: 1
2497
2505
  })
2498
- ])) : $("", !0)
2506
+ ])) : x("", !0)
2499
2507
  ]),
2500
2508
  _: 1
2501
2509
  })
2502
2510
  ]),
2503
- f("div", Ss, C(((p = e(t).user) == null ? void 0 : p.name) ?? "Guest"), 1)
2511
+ v("div", Un, D(((p = e(t).user) == null ? void 0 : p.name) ?? "Guest"), 1)
2504
2512
  ]);
2505
2513
  };
2506
2514
  }
2507
- }), Ls = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, As = {
2515
+ }), On = /* @__PURE__ */ k({
2516
+ __name: "VoUserBadges",
2517
+ setup(c) {
2518
+ const t = F(), i = q(), n = L(() => {
2519
+ var l;
2520
+ return i.github || i.discord || i.isSubscriber || ((l = t.user) == null ? void 0 : l.isAdmin);
2521
+ });
2522
+ return (l, a) => n.value ? (d(), m(Qe, {
2523
+ key: 0,
2524
+ class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
2525
+ color: "rgba(0,0,0,.36)",
2526
+ rounded: "lg",
2527
+ style: { left: "0" }
2528
+ }, {
2529
+ default: s(() => {
2530
+ var r;
2531
+ return [
2532
+ (r = e(t).user) != null && r.isAdmin ? (d(), m(re, {
2533
+ key: 0,
2534
+ location: "bottom",
2535
+ text: "Vuetify Administrator"
2536
+ }, {
2537
+ activator: s(({ props: u }) => [
2538
+ o(U, J({
2539
+ color: "blue",
2540
+ icon: "$vuetify"
2541
+ }, u, { size: "16" }), null, 16)
2542
+ ]),
2543
+ _: 1
2544
+ })) : x("", !0),
2545
+ e(i).isSubscriber ? (d(), m(re, {
2546
+ key: 1,
2547
+ location: "bottom",
2548
+ text: "Vuetify One Subscriber"
2549
+ }, {
2550
+ activator: s(({ props: u }) => [
2551
+ o(U, J({
2552
+ icon: `svg:${e(Wt)}`,
2553
+ color: "amber-darken-2"
2554
+ }, u, { size: "16" }), null, 16, ["icon"])
2555
+ ]),
2556
+ _: 1
2557
+ })) : x("", !0),
2558
+ e(i).github ? (d(), m(re, {
2559
+ key: 2,
2560
+ location: "bottom",
2561
+ text: "GitHub Sponsor"
2562
+ }, {
2563
+ activator: s(({ props: u }) => [
2564
+ o(U, J({
2565
+ icon: `svg:${e(je)}`,
2566
+ color: "medium-emphasis"
2567
+ }, u, { size: "16" }), null, 16, ["icon"])
2568
+ ]),
2569
+ _: 1
2570
+ })) : x("", !0),
2571
+ e(i).discord ? (d(), m(re, {
2572
+ key: 3,
2573
+ location: "bottom",
2574
+ text: "Discord Subscriber"
2575
+ }, {
2576
+ activator: s(({ props: u }) => [
2577
+ o(U, J({
2578
+ icon: `svg:${e(Oe)}`,
2579
+ color: "medium-emphasis"
2580
+ }, u, { size: "16" }), null, 16, ["icon"])
2581
+ ]),
2582
+ _: 1
2583
+ })) : x("", !0)
2584
+ ];
2585
+ }),
2586
+ _: 1
2587
+ })) : x("", !0);
2588
+ }
2589
+ }), jn = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, Bn = {
2508
2590
  key: "reset",
2509
2591
  class: "align-self-end"
2510
- }, Is = /* @__PURE__ */ V({
2592
+ }, Fn = /* @__PURE__ */ k({
2511
2593
  __name: "VoUserColors",
2512
- setup(u) {
2513
- const t = R(), a = Q(), s = P(), n = F(!1);
2514
- function r() {
2515
- s.colors.one = "surface-light";
2594
+ setup(c) {
2595
+ const t = F(), i = E(), n = O(!1);
2596
+ function l() {
2597
+ i.colors.one = "surface-light";
2516
2598
  }
2517
- return (c, l) => {
2518
- const h = ue;
2519
- return d(), S(U, null, [
2520
- o(Ne, {
2521
- color: e(t).user ? e(s).colors.one : "surface-light",
2599
+ return (a, r) => {
2600
+ const u = On, h = de;
2601
+ return d(), S(N, null, [
2602
+ o(Fe, {
2603
+ color: e(t).user ? e(i).colors.one : "surface-light",
2522
2604
  "content-class": "d-flex align-start justify-end pa-2",
2523
2605
  height: "88",
2524
2606
  rounded: "0",
2525
2607
  cover: "",
2526
2608
  flat: ""
2527
2609
  }, {
2528
- default: i(() => [
2529
- f("div", Ls, [
2530
- o(We, {
2531
- class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
2532
- color: "rgba(0,0,0,.36)",
2533
- rounded: "lg",
2534
- style: { left: "0" }
2535
- }, {
2536
- default: i(() => {
2537
- var p;
2538
- return [
2539
- (p = e(t).user) != null && p.isAdmin ? (d(), _(ae, {
2540
- key: 0,
2541
- location: "bottom",
2542
- text: "Vuetify Administrator"
2543
- }, {
2544
- activator: i(({ props: g }) => [
2545
- o(N, X({
2546
- color: "blue",
2547
- icon: "$vuetify"
2548
- }, g, { size: "16" }), null, 16)
2549
- ]),
2550
- _: 1
2551
- })) : $("", !0),
2552
- e(a).isSubscriber ? (d(), _(ae, {
2553
- key: 1,
2554
- location: "bottom",
2555
- text: "Vuetify One Subscriber"
2556
- }, {
2557
- activator: i(({ props: g }) => [
2558
- o(N, X({
2559
- icon: `svg:${e(Tt)}`,
2560
- color: "amber-darken-2"
2561
- }, g, { size: "16" }), null, 16, ["icon"])
2562
- ]),
2563
- _: 1
2564
- })) : $("", !0),
2565
- e(a).github ? (d(), _(ae, {
2566
- key: 2,
2567
- location: "bottom",
2568
- text: "GitHub Sponsor"
2569
- }, {
2570
- activator: i(({ props: g }) => [
2571
- o(N, X({
2572
- icon: `svg:${e(De)}`,
2573
- color: "medium-emphasis"
2574
- }, g, { size: "16" }), null, 16, ["icon"])
2575
- ]),
2576
- _: 1
2577
- })) : $("", !0),
2578
- e(a).discord ? (d(), _(ae, {
2579
- key: 3,
2580
- location: "bottom",
2581
- text: "Discord Subscriber"
2582
- }, {
2583
- activator: i(({ props: g }) => [
2584
- o(N, X({
2585
- icon: `svg:${e(Ie)}`,
2586
- color: "medium-emphasis"
2587
- }, g, { size: "16" }), null, 16, ["icon"])
2588
- ]),
2589
- _: 1
2590
- })) : $("", !0)
2591
- ];
2592
- }),
2593
- _: 1
2594
- }),
2595
- e(t).isSubscriber ? (d(), _(h, {
2610
+ default: s(() => [
2611
+ v("div", jn, [
2612
+ o(u),
2613
+ e(t).isSubscriber ? (d(), m(h, {
2596
2614
  key: 0,
2597
2615
  active: n.value,
2598
- icon: n.value ? `svg:${e(te)}` : "$edit",
2616
+ icon: n.value ? `svg:${e(ne)}` : "$edit",
2599
2617
  variant: n.value ? "text" : "plain",
2600
2618
  class: "align-self-end",
2601
2619
  color: "inherit",
2602
2620
  density: "comfortable",
2603
2621
  title: "Edit One Header Color",
2604
- onClick: l[0] || (l[0] = (p) => n.value = !n.value)
2622
+ onClick: r[0] || (r[0] = (p) => n.value = !n.value)
2605
2623
  }, {
2606
- default: i(() => [
2607
- o(Ue, { "leave-absolute": "" }, {
2608
- default: i(() => [
2609
- (d(), _(N, {
2624
+ default: s(() => [
2625
+ o(Be, { "leave-absolute": "" }, {
2626
+ default: s(() => [
2627
+ (d(), m(U, {
2610
2628
  key: String(n.value)
2611
2629
  }))
2612
2630
  ]),
@@ -2614,22 +2632,22 @@ const Xe = se("settings", () => {
2614
2632
  })
2615
2633
  ]),
2616
2634
  _: 1
2617
- }, 8, ["active", "icon", "variant"])) : $("", !0),
2618
- o(Wt, null, {
2619
- default: i(() => [
2620
- Ae(f("div", As, [
2635
+ }, 8, ["active", "icon", "variant"])) : x("", !0),
2636
+ o(Xt, null, {
2637
+ default: s(() => [
2638
+ Ne(v("div", Bn, [
2621
2639
  o(h, {
2622
- disabled: e(s).colors.one === "surface-light",
2623
- icon: `svg:${e(Rt)}`,
2640
+ disabled: e(i).colors.one === "surface-light",
2641
+ icon: `svg:${e(qt)}`,
2624
2642
  class: "ms-2 me-1",
2625
2643
  color: "inherit",
2626
2644
  density: "comfortable",
2627
2645
  title: "Revert to Default",
2628
2646
  variant: "text",
2629
- onClick: r
2647
+ onClick: l
2630
2648
  }, null, 8, ["disabled", "icon"])
2631
2649
  ], 512), [
2632
- [Me, n.value]
2650
+ [qe, n.value]
2633
2651
  ])
2634
2652
  ]),
2635
2653
  _: 1
@@ -2638,11 +2656,11 @@ const Xe = se("settings", () => {
2638
2656
  ]),
2639
2657
  _: 1
2640
2658
  }, 8, ["color"]),
2641
- o(ce, null, {
2642
- default: i(() => [
2643
- n.value ? (d(), _(to, {
2659
+ o(ue, null, {
2660
+ default: s(() => [
2661
+ n.value ? (d(), m(ro, {
2644
2662
  key: 0,
2645
- "model-value": e(s).colors.one !== "surface-light" ? e(s).colors.one : void 0,
2663
+ "model-value": e(i).colors.one !== "surface-light" ? e(i).colors.one : void 0,
2646
2664
  elevation: "0",
2647
2665
  height: "250",
2648
2666
  rounded: "0",
@@ -2652,44 +2670,44 @@ const Xe = se("settings", () => {
2652
2670
  "hide-inputs": "",
2653
2671
  "hide-sliders": "",
2654
2672
  "show-swatches": "",
2655
- "onUpdate:modelValue": l[1] || (l[1] = (p) => e(s).colors.one = p)
2656
- }, null, 8, ["model-value"])) : $("", !0)
2673
+ "onUpdate:modelValue": r[1] || (r[1] = (p) => e(i).colors.one = p)
2674
+ }, null, 8, ["model-value"])) : x("", !0)
2657
2675
  ]),
2658
2676
  _: 1
2659
2677
  })
2660
2678
  ], 64);
2661
2679
  };
2662
2680
  }
2663
- }), Ds = { class: "text-center mt-n9 mb-4" }, Us = /* @__PURE__ */ V({
2681
+ }), zn = { class: "text-center mt-n9 mb-4" }, En = /* @__PURE__ */ k({
2664
2682
  __name: "VoUserMenu",
2665
- setup(u) {
2666
- const t = Q();
2667
- return (a, s) => {
2668
- const n = Is, r = Cs, c = ks, l = bs, h = mo;
2669
- return d(), _(oo, {
2683
+ setup(c) {
2684
+ const t = q();
2685
+ return (i, n) => {
2686
+ const l = Fn, a = Nn, r = Ln, u = wn, h = bo;
2687
+ return d(), m(lo, {
2670
2688
  modelValue: e(t).isOpen,
2671
- "onUpdate:modelValue": s[0] || (s[0] = (p) => e(t).isOpen = p),
2689
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => e(t).isOpen = p),
2672
2690
  "close-on-click": !1,
2673
2691
  "close-on-content-click": !1,
2674
2692
  activator: "parent",
2675
2693
  location: "bottom end",
2676
2694
  eager: ""
2677
2695
  }, {
2678
- default: i(() => [
2679
- o(B, {
2696
+ default: s(() => [
2697
+ o(M, {
2680
2698
  rounded: "lg",
2681
2699
  width: "280",
2682
2700
  border: ""
2683
2701
  }, {
2684
- default: i(() => [
2685
- o(n),
2686
- f("div", Ds, [
2687
- o(r),
2688
- o(c)
2689
- ]),
2690
- o(T),
2702
+ default: s(() => [
2691
2703
  o(l),
2692
- o(T),
2704
+ v("div", zn, [
2705
+ o(a),
2706
+ o(r)
2707
+ ]),
2708
+ o(P),
2709
+ o(u),
2710
+ o(P),
2693
2711
  o(h)
2694
2712
  ]),
2695
2713
  _: 1
@@ -2699,38 +2717,38 @@ const Xe = se("settings", () => {
2699
2717
  }, 8, ["modelValue"]);
2700
2718
  };
2701
2719
  }
2702
- }), Ns = { key: 0 }, Fs = /* @__PURE__ */ V({
2720
+ }), Tn = { key: 0 }, Rn = /* @__PURE__ */ k({
2703
2721
  __name: "VoAuthBtn",
2704
2722
  props: {
2705
2723
  external: Boolean
2706
2724
  },
2707
- setup(u) {
2708
- const t = R(), a = Q(), s = P(), { lgAndUp: n, mdAndDown: r } = be(), c = A(() => a.isOpen || !t.user ? s.colors.one === "surface-light" ? "primary" : s.colors.one : "surface-light");
2709
- return (l, h) => {
2710
- const p = Us, g = ue, L = no;
2711
- return d(), _(L, {
2725
+ setup(c) {
2726
+ const t = F(), i = q(), n = E(), { lgAndUp: l, mdAndDown: a } = ge(), r = L(() => i.isOpen || !t.user ? n.colors.one === "surface-light" ? "primary" : n.colors.one : "surface-light");
2727
+ return (u, h) => {
2728
+ const p = En, g = de, C = uo;
2729
+ return d(), m(C, {
2712
2730
  "offset-y": e(t).user ? 5 : 0
2713
2731
  }, {
2714
- default: i(() => [
2715
- o(g, X({
2716
- [`${e(n) ? "append-" : ""}icon`]: e(t).user ? void 0 : `svg:${e(Ht)}`
2732
+ default: s(() => [
2733
+ o(g, J({
2734
+ [`${e(l) ? "append-" : ""}icon`]: e(t).user ? void 0 : `svg:${e(Gt)}`
2717
2735
  }, {
2718
- color: c.value,
2736
+ color: r.value,
2719
2737
  icon: e(t).user || e(t).isLoading,
2720
2738
  loading: e(t).isLoading,
2721
- rounded: e(r),
2739
+ rounded: e(a),
2722
2740
  variant: e(t).user ? "outlined" : "flat",
2723
2741
  class: "vo-auth-btn",
2724
2742
  size: "default",
2725
2743
  style: { transition: ".2s ease" },
2726
2744
  active: ""
2727
2745
  }), {
2728
- default: i(() => [
2729
- e(t).user ? $("", !0) : (d(), S("span", Ns, "Login")),
2730
- e(t).user ? (d(), _(ve, {
2746
+ default: s(() => [
2747
+ e(t).user ? x("", !0) : (d(), S("span", Tn, "Login")),
2748
+ e(t).user ? (d(), m(fe, {
2731
2749
  key: 1,
2732
- image: e(s).avatar || e(t).user.picture || ""
2733
- }, null, 8, ["image"])) : $("", !0),
2750
+ image: e(n).avatar || e(t).user.picture || ""
2751
+ }, null, 8, ["image"])) : x("", !0),
2734
2752
  o(p)
2735
2753
  ]),
2736
2754
  _: 1
@@ -2740,12 +2758,12 @@ const Xe = se("settings", () => {
2740
2758
  }, 8, ["offset-y"]);
2741
2759
  };
2742
2760
  }
2743
- }), js = (u) => (st("data-v-86d0e524"), u = u(), nt(), u), Os = ["href", "title"], zs = {
2761
+ }), Hn = (c) => (ct("data-v-86d0e524"), c = c(), ut(), c), Mn = ["href", "title"], Pn = {
2744
2762
  class: "text-caption text-disabled",
2745
2763
  style: { position: "absolute", right: "16px" }
2746
- }, Bs = /* @__PURE__ */ js(() => /* @__PURE__ */ f("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), Ts = /* @__PURE__ */ V({
2764
+ }, Wn = /* @__PURE__ */ Hn(() => /* @__PURE__ */ v("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), qn = /* @__PURE__ */ k({
2747
2765
  __name: "VoFooter",
2748
- setup(u) {
2766
+ setup(c) {
2749
2767
  const t = [
2750
2768
  {
2751
2769
  title: "Vuetify Documentation",
@@ -2754,7 +2772,7 @@ const Xe = se("settings", () => {
2754
2772
  },
2755
2773
  {
2756
2774
  title: "Vuetify Support",
2757
- icon: `svg:${Mt}`,
2775
+ icon: `svg:${Yt}`,
2758
2776
  href: "https://support.vuetifyjs.com/"
2759
2777
  },
2760
2778
  {
@@ -2764,154 +2782,154 @@ const Xe = se("settings", () => {
2764
2782
  },
2765
2783
  {
2766
2784
  title: "Vuetify GitHub",
2767
- icon: `svg:${De}`,
2785
+ icon: `svg:${je}`,
2768
2786
  href: "https://github.com/vuetifyjs/vuetify"
2769
2787
  },
2770
2788
  {
2771
2789
  title: "Vuetify Discord",
2772
- icon: `svg:${Ie}`,
2790
+ icon: `svg:${Oe}`,
2773
2791
  href: "https://community.vuetifyjs.com/"
2774
2792
  },
2775
2793
  {
2776
2794
  title: "Vuetify Reddit",
2777
- icon: `svg:${Pt}`,
2795
+ icon: `svg:${Qt}`,
2778
2796
  href: "https://reddit.com/r/vuetifyjs"
2779
2797
  }
2780
2798
  ];
2781
- return (a, s) => (d(), _(so, {
2799
+ return (i, n) => (d(), m(co, {
2782
2800
  class: "vo-footer",
2783
2801
  height: "40"
2784
2802
  }, {
2785
- default: i(() => [
2786
- (d(), S(U, null, ne(t, (n) => f("a", {
2787
- key: n.title,
2788
- href: n.href,
2789
- title: n.title,
2803
+ default: s(() => [
2804
+ (d(), S(N, null, se(t, (l) => v("a", {
2805
+ key: l.title,
2806
+ href: l.href,
2807
+ title: l.title,
2790
2808
  class: "d-inline-block mx-2 social-link",
2791
2809
  rel: "noopener noreferrer",
2792
2810
  target: "_blank"
2793
2811
  }, [
2794
- o(N, {
2795
- icon: n.icon,
2796
- size: n.icon === "$vuetify" ? 24 : 16
2812
+ o(U, {
2813
+ icon: l.icon,
2814
+ size: l.icon === "$vuetify" ? 24 : 16
2797
2815
  }, null, 8, ["icon", "size"])
2798
- ], 8, Os)), 64)),
2799
- f("div", zs, [
2800
- j(" © 2016-" + C((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
2801
- Bs
2816
+ ], 8, Mn)), 64)),
2817
+ v("div", Pn, [
2818
+ j(" © 2016-" + D((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
2819
+ Wn
2802
2820
  ])
2803
2821
  ]),
2804
2822
  _: 1
2805
2823
  }));
2806
2824
  }
2807
2825
  });
2808
- const Rs = (u, t) => {
2809
- const a = u.__vccOpts || u;
2810
- for (const [s, n] of t)
2811
- a[s] = n;
2812
- return a;
2813
- }, Hs = /* @__PURE__ */ Rs(Ts, [["__scopeId", "data-v-86d0e524"]]), Cn = se("bins", () => {
2814
- const u = R(), t = ke(), a = oe([]), s = oe(), n = F(!1), r = F(-1), c = A(() => !u.user || !s.value ? !1 : u.user.id === s.value.owner.id), l = A(() => a.value.filter((b) => b.favorite)), h = A(() => a.value.filter((b) => b.pinned));
2815
- W(s, () => {
2816
- window.clearTimeout(r.value), r.value = window.setTimeout(() => {
2817
- !s.value || !c.value || m(s.value, s.value.id);
2826
+ const Gn = (c, t) => {
2827
+ const i = c.__vccOpts || c;
2828
+ for (const [n, l] of t)
2829
+ i[n] = l;
2830
+ return i;
2831
+ }, Yn = /* @__PURE__ */ Gn(qn, [["__scopeId", "data-v-86d0e524"]]), Ns = oe("bins", () => {
2832
+ const c = F(), t = $e(), i = te([]), n = te(), l = O(!1), a = O(-1), r = L(() => !c.user || !n.value ? !1 : c.user.id === n.value.owner.id), u = L(() => i.value.filter((y) => y.favorite)), h = L(() => i.value.filter((y) => y.pinned));
2833
+ z(n, () => {
2834
+ window.clearTimeout(a.value), a.value = window.setTimeout(() => {
2835
+ !n.value || !r.value || _(n.value, n.value.id);
2818
2836
  }, 100);
2819
2837
  }, { deep: !0 });
2820
2838
  async function p() {
2821
2839
  try {
2822
- n.value = !0;
2823
- const b = await t.get("/one/bins");
2824
- a.value = b.bins;
2840
+ l.value = !0;
2841
+ const y = await t.get("/one/bins");
2842
+ i.value = y.bins;
2825
2843
  } catch {
2826
2844
  } finally {
2827
- n.value = !1;
2845
+ l.value = !1;
2828
2846
  }
2829
- return a.value;
2847
+ return i.value;
2830
2848
  }
2831
- async function g(b) {
2849
+ async function g(y) {
2832
2850
  try {
2833
- n.value = !0, await t.delete(`/one/bins/${b}`), a.value = a.value.filter((w) => w.id !== b);
2851
+ l.value = !0, await t.delete(`/one/bins/${y}`), i.value = i.value.filter(($) => $.id !== y);
2834
2852
  } catch {
2835
2853
  } finally {
2836
- n.value = !1;
2854
+ l.value = !1;
2837
2855
  }
2838
2856
  return !0;
2839
2857
  }
2840
- async function L(b) {
2858
+ async function C(y) {
2841
2859
  try {
2842
- n.value = !0;
2843
- const w = await t.post("/one/bins", { bin: b });
2844
- return a.value.push(w.bin), s.value = w.bin, w;
2860
+ l.value = !0;
2861
+ const $ = await t.post("/one/bins", { bin: y });
2862
+ return i.value.push($.bin), n.value = $.bin, $;
2845
2863
  } catch {
2846
2864
  } finally {
2847
- n.value = !1;
2865
+ l.value = !1;
2848
2866
  }
2849
- return { bin: b };
2867
+ return { bin: y };
2850
2868
  }
2851
- async function m(b, w) {
2869
+ async function _(y, $) {
2852
2870
  try {
2853
- n.value = !0;
2854
- const I = await t.post(`/one/bins/${w}`, { bin: b }), O = a.value.findIndex((q) => q.id === w);
2855
- a.value.splice(O, 1, I.bin);
2871
+ l.value = !0;
2872
+ const B = await t.post(`/one/bins/${$}`, { bin: y }), I = i.value.findIndex((W) => W.id === $);
2873
+ i.value.splice(I, 1, B.bin);
2856
2874
  } catch {
2857
2875
  } finally {
2858
- n.value = !1;
2876
+ l.value = !1;
2859
2877
  }
2860
- return { bin: b };
2878
+ return { bin: y };
2861
2879
  }
2862
- async function k(b, w) {
2880
+ async function w(y, $) {
2863
2881
  try {
2864
- n.value = !0;
2865
- const I = w ? await m(b, w) : await L(b);
2866
- s.value = I.bin;
2882
+ l.value = !0;
2883
+ const B = $ ? await _(y, $) : await C(y);
2884
+ n.value = B.bin;
2867
2885
  } catch {
2868
2886
  } finally {
2869
- n.value = !1;
2887
+ l.value = !1;
2870
2888
  }
2871
- return { bin: b };
2889
+ return { bin: y };
2872
2890
  }
2873
- async function D(b) {
2891
+ async function b(y) {
2874
2892
  try {
2875
- n.value = !0;
2876
- const w = await t.get(`/one/bins/${b}`);
2877
- s.value = w.bin;
2893
+ l.value = !0;
2894
+ const $ = await t.get(`/one/bins/${y}`);
2895
+ n.value = $.bin;
2878
2896
  } catch {
2879
2897
  } finally {
2880
- n.value = !1;
2898
+ l.value = !1;
2881
2899
  }
2882
- return { bin: s.value };
2900
+ return { bin: n.value };
2883
2901
  }
2884
2902
  return {
2885
- isLoading: n,
2886
- isOwner: c,
2903
+ isLoading: l,
2904
+ isOwner: r,
2887
2905
  pinned: h,
2888
- favorites: l,
2889
- all: a,
2890
- create: L,
2906
+ favorites: u,
2907
+ all: i,
2908
+ create: C,
2891
2909
  delete: g,
2892
- current: s,
2893
- find: D,
2910
+ current: n,
2911
+ find: b,
2894
2912
  get: p,
2895
- update: m,
2896
- updateOrCreate: k
2913
+ update: _,
2914
+ updateOrCreate: w
2897
2915
  };
2898
2916
  });
2899
- function Ln() {
2900
- function u(t) {
2901
- t.component("VoAuthBtn", Fs), t.component("VoFooter", Hs);
2917
+ function Os() {
2918
+ function c(t) {
2919
+ t.component("VoAuthBtn", Rn), t.component("VoFooter", Yn);
2902
2920
  }
2903
- return { install: u };
2921
+ return { install: c };
2904
2922
  }
2905
- function An(u) {
2906
- u.store.url = "http://localhost:8096";
2923
+ function js(c) {
2924
+ c.store.url = "https://api.vuetifyjs.com";
2907
2925
  }
2908
2926
  export {
2909
- Ln as createOne,
2910
- An as one,
2911
- R as useAuthStore,
2912
- Cn as useBinsStore,
2913
- ke as useHttpStore,
2914
- Q as useOneStore,
2915
- Xe as useSettingsStore,
2916
- P as useUserStore
2927
+ Os as createOne,
2928
+ js as one,
2929
+ F as useAuthStore,
2930
+ Ns as useBinsStore,
2931
+ $e as useHttpStore,
2932
+ q as useOneStore,
2933
+ tt as useSettingsStore,
2934
+ E as useUserStore
2917
2935
  };