@vuetify/one 1.0.12 → 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 +1383 -1310
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,74 +1,74 @@
1
- import { reactive as Ze, toRefs as Ke, ref as ee, shallowRef as F, computed as L, defineComponent as V, openBlock as d, createBlock as v, withCtx as i, renderSlot as B, normalizeStyle as Be, createSlots as G, createCommentVNode as $, watch as W, unref as e, createElementVNode as _, toDisplayString as I, createVNode as o, withModifiers as ze, mergeModels as et, useModel as fe, createElementBlock as w, Fragment as N, createTextVNode as j, renderList as se, mergeProps as Q, onBeforeMount as tt, onMounted as Te, resolveComponent as Re, withDirectives as Le, vShow as He, normalizeClass as ot, pushScopeId as st, popScopeId as nt } from "vue";
2
- import { defineStore as te } from "pinia";
3
- import { merge as ke } from "lodash-es";
4
- import { VBadge as Me } 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 Ae, mdiSync as at, mdiSyncOff as rt, mdiLogoutVariant as lt, mdiCheck as oe, mdiHome as ct, mdiTextBox as ut, mdiSpaceInvaders as Pe, 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 ae, mdiCreditCard as kt, mdiReload as $t, mdiPlaylistCheck as xt, mdiCreditCardOutline as wt, mdiHandHeart as St, mdiInformationOutline as je, mdiMedal as $e, mdiChartLine as Ct, mdiHandHeartOutline as Lt, mdiEmailOpenOutline as It, mdiEmailVariant as At, mdiOpenInNew as Dt, mdiBell as Ut, mdiInboxOutline as Ft, mdiInboxFullOutline as Nt, mdiBellOutline as jt, mdiViewDashboardOutline as Ot, mdiTrashCan as Bt, mdiBug as zt, mdiCrown as Tt, mdiArrowULeftBottom as Rt, mdiLogin as Ht, mdiShieldStarOutline as Mt, mdiReddit as Pt } from "@mdi/js";
8
- import { VListItem as ve, VList as ne, VListItemTitle as Et } from "vuetify/lib/components/VList/index.mjs";
9
- import { VAvatar as pe } from "vuetify/lib/components/VAvatar/index.mjs";
10
- import { VCard as R, VCardText as X } from "vuetify/lib/components/VCard/index.mjs";
11
- import { VSheet as Ee } from "vuetify/lib/components/VSheet/index.mjs";
12
- import { VSwitch as We } from "vuetify/lib/components/VSwitch/index.mjs";
13
- import { VFadeTransition as De, VExpandTransition as le, VExpandXTransition as Wt } from "vuetify/lib/components/transitions/index.mjs";
14
- import { useDisplay as _e, useTheme as Gt, useDate as he } from "vuetify";
15
- import { VDialog as qt } from "vuetify/lib/components/VDialog/index.mjs";
16
- import { VDivider as H } from "vuetify/lib/components/VDivider/index.mjs";
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
17
  import { VIcon as U } from "vuetify/lib/components/VIcon/index.mjs";
18
- import { VLabel as Se } from "vuetify/lib/components/VLabel/index.mjs";
19
- import { VChip as q } 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 ge, VCol as re } from "vuetify/lib/components/VGrid/index.mjs";
23
- import { VHover as Ge } from "vuetify/lib/components/VHover/index.mjs";
24
- import { VImg as Ue } from "vuetify/lib/components/VImg/index.mjs";
25
- import { VItemGroup as qe, VItem as Ce } from "vuetify/lib/components/VItemGroup/index.mjs";
26
- import { VLayout as Fe } from "vuetify/lib/components/VLayout/index.mjs";
27
- import { VMain as Ne } from "vuetify/lib/components/VMain/index.mjs";
28
- import { VDataTableVirtual as Qt } from "vuetify/lib/components/VDataTable/index.mjs";
29
- import { VSkeletonLoader as Oe } from "vuetify/lib/components/VSkeletonLoader/index.mjs";
30
- import { VWindow as Ye, VWindowItem as me } from "vuetify/lib/components/VWindow/index.mjs";
31
- import { VTimeline as Xt, VTimelineItem as xe } from "vuetify/lib/components/VTimeline/index.mjs";
32
- import { VResponsive as Zt } from "vuetify/lib/components/VResponsive/index.mjs";
33
- import { VTooltip as ie } 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 be = te("http", {
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
- }), we = typeof window < "u", de = {
71
+ }), Ae = typeof window < "u", me = {
72
72
  v: 5,
73
73
  api: "link-only",
74
74
  avatar: "",
@@ -106,324 +106,325 @@ const be = te("http", {
106
106
  jobs: null
107
107
  }
108
108
  }
109
- }, M = te("user", () => {
110
- const u = Ze(ke({}, de));
109
+ }, E = oe("user", () => {
110
+ const c = ot(Ce({}, me));
111
111
  function t() {
112
- if (!we)
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 = de.suits, r.notifications.banners = de.notifications.banners, c = !0), r.v = u.v, Object.assign(u, ke(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
- we && 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
- we && (Object.assign(u, ke({}, de)), 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
- }), ye = te("notifications", () => {
131
- const u = be(), t = M(), a = ee([]), s = F(!1), n = L(() => a.value.filter((l) => !t.notifications.read.includes(l.slug))), r = L(() => 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 = ye(), a = L(() => t.unread.length);
154
- return (s, n) => (d(), v(Me, {
155
- content: a.value,
156
- "model-value": a.value > 0,
157
- color: "error",
158
- location: "start top"
159
- }, {
160
- default: i(() => [
161
- B(s.$slots, "default")
162
- ]),
163
- _: 3
164
- }, 8, ["content", "model-value"]));
165
- }
166
- }), ce = /* @__PURE__ */ V({
167
- __name: "VoBtn",
168
- props: {
169
- readonly: { type: Boolean }
170
- },
171
- setup(u) {
172
- const t = u;
173
- return (a, s) => (d(), v(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(), v(it, {
185
- key: 0,
186
- indeterminate: "disable-shrink",
187
- size: "16",
188
- width: "2"
189
- })),
190
- B(a.$slots, "loader")
191
- ]),
192
- _: 2
193
- }, [
194
- a.$slots.default ? {
195
- name: "default",
196
- fn: i(() => [
197
- B(a.$slots, "default")
198
- ]),
199
- key: "0"
200
- } : void 0
201
- ]), 1032, ["style", "tabindex"]));
202
- }
203
- }), z = te("auth", () => {
204
- const u = ee(null), t = be(), a = M(), s = F(!1), n = L(() => {
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, x = window.screenX + (window.innerWidth - D) / 2, A = 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=${x},top=${A},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 S = -1, E = -1;
256
- function P(f) {
257
- var y;
258
- f.origin === t.url && ((y = f.data) == null ? void 0 : y.type) === "auth-response" && (f.data.status === "success" ? (u.value || localStorage.setItem("vuetify@lastLoginProvider", m), u.value = f.data.body.user) : console.error(f.data.message), T());
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
- function T() {
261
- window.removeEventListener("message", P), window.clearInterval(S), window.clearTimeout(E), O == null || O.close(), s.value = !1;
187
+ function H() {
188
+ window.removeEventListener("message", A), window.clearInterval(W), window.clearTimeout(K), I == null || I.close(), n.value = !1;
262
189
  }
263
- window.addEventListener("message", P), S = window.setInterval(() => {
264
- !O || O.closed ? (console.error("Auth popup closed"), T()) : O.postMessage({ type: "auth-request" }, "*");
265
- }, 1e3), E = window.setTimeout(() => {
266
- T(), console.error("Auth timed out");
190
+ window.addEventListener("message", A), W = window.setInterval(() => {
191
+ !I || I.closed ? (console.error("Auth popup closed"), H()) : I.postMessage({ type: "auth-request" }, "*");
192
+ }, 1e3), K = window.setTimeout(() => {
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
211
  function C() {
285
212
  return localStorage.getItem("vuetify@lastLoginProvider");
286
213
  }
287
- return C() && 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,
222
+ isSubscriber: l,
296
223
  lastLoginProvider: C,
297
- sync: c
224
+ sync: r
298
225
  };
299
- }), io = { class: "text-body-2" }, ao = /* @__PURE__ */ _("div", { class: "text-caption mt-n1" }, "Last Used", -1), ro = /* @__PURE__ */ V({
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
245
+ };
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 = z(), a = L(() => t.user && t.findIdentity("discord")), s = L(() => t.user ? a.value ? "Connected to Discord" : "Connect Discord" : "Log in with Discord");
303
- return (n, r) => (d(), v(ve, {
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
- _("span", io, I(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__ */ _("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 = z(), a = L(() => t.user && t.findIdentity("github")), s = L(() => t.user ? a.value ? "Connected to GitHub" : "Connect GitHub" : "Log in with GitHub");
329
- return (n, r) => (d(), v(ve, {
330
- "prepend-icon": `svg:${e(Ae)}`,
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
- _("span", lo, I(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 = z(), a = M(), 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(), v(R, {
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
- o(ne, { class: "py-0" }, {
370
- default: i(() => [
371
- o(ve, {
369
+ default: s(() => [
370
+ o(ie, { class: "py-0" }, {
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(De, null, {
383
- default: i(() => [
384
- e(t).user && (s.value || !e(a).syncSettings) ? (d(), v(We, {
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] = ze(() => {
393
+ onClick: r[1] || (r[1] = Pe(() => {
393
394
  }, ["stop"]))
394
395
  }, {
395
- thumb: i(() => [
396
- o(pe, {
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(le, null, {
409
- default: i(() => [
410
- !e(t).user && !e(t).isLoading || s.value ? (d(), v(Ee, {
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
- _("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 be = te("http", {
435
436
  }, 8, ["variant"]);
436
437
  };
437
438
  }
438
- }), Y = /* @__PURE__ */ V({
439
+ }), Q = /* @__PURE__ */ k({
439
440
  __name: "VoListItem",
440
- setup(u) {
441
- return (t, a) => (d(), v(ve, { slim: "" }, G({
442
- default: i(() => [
443
- B(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
- B(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
- B(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
- B(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 = z(), 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 = Y;
479
- return d(), v(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
- }), Ve = /* @__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 be = te("http", {
497
498
  modelModifiers: {}
498
499
  }),
499
500
  emits: ["update:modelValue"],
500
- setup(u) {
501
- const t = fe(u, "modelValue"), a = _e();
502
- return (s, n) => (d(), v(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(R, {
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
- B(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(H, { class: "mt-4" }),
530
- B(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
- B(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
- B(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,20 +551,20 @@ const be = te("http", {
550
551
  _: 3
551
552
  }, 8, ["modelValue", "fullscreen", "max-height", "max-width"]));
552
553
  }
553
- }), Je = /* @__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(), v(We, {
559
+ setup(c) {
560
+ return (t, i) => (d(), m(Je, {
560
561
  disabled: t.disabled,
561
- "true-icon": `svg:${e(oe)}`,
562
+ "true-icon": `svg:${e(ne)}`,
562
563
  color: "primary",
563
564
  density: "compact",
564
565
  inset: ""
565
566
  }, G({
566
- thumb: i(() => [
567
+ thumb: s(() => [
567
568
  o(U, {
568
569
  color: t.disabled ? void 0 : "primary"
569
570
  }, null, 8, ["color"])
@@ -572,40 +573,40 @@ const be = te("http", {
572
573
  }, [
573
574
  t.$slots.label ? {
574
575
  name: "label",
575
- fn: i(() => [
576
- B(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
- }, ue = /* @__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(), w(N, null, [
593
- t.title ? (d(), v(Se, {
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(I(t.title), 1)
598
+ default: s(() => [
599
+ j(D(t.title), 1)
599
600
  ]),
600
601
  _: 1
601
- })) : $("", !0),
602
- t.text ? (d(), w("div", vo, I(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 = M(), 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 be = te("http", {
613
614
  },
614
615
  {
615
616
  title: "Blackguard",
616
- prependIcon: `svg:${Pe}`,
617
+ prependIcon: `svg:${Ye}`,
617
618
  value: "blackguard"
618
619
  }
619
620
  // {
@@ -627,23 +628,23 @@ const be = te("http", {
627
628
  // value: 'nebula',
628
629
  // },
629
630
  ];
630
- return (s, n) => {
631
- const r = Je, c = ue;
632
- return d(), w(N, 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(le, null, {
641
- default: i(() => [
642
- e(t).suits.show ? (d(), w("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,34 +653,34 @@ const be = te("http", {
652
653
  "item-props": "",
653
654
  "single-line": ""
654
655
  }, {
655
- selection: i(({ item: l }) => [
656
+ selection: s(({ item: u }) => [
656
657
  o(U, {
657
- icon: l.props.prependIcon,
658
+ icon: u.props.prependIcon,
658
659
  size: "x-small",
659
660
  start: ""
660
661
  }, null, 8, ["icon"]),
661
- j(" " + I(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(q, {
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(H, {
682
+ append: s(() => [
683
+ o(P, {
683
684
  class: "ms-2 border-opacity-50",
684
685
  vertical: ""
685
686
  }),
@@ -687,15 +688,15 @@ const be = te("http", {
687
688
  ]),
688
689
  _: 1
689
690
  }, 8, ["append-icon"]),
690
- o(q, {
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(H, {
698
+ append: s(() => [
699
+ o(P, {
699
700
  class: "ms-2 border-opacity-50",
700
701
  vertical: ""
701
702
  }),
@@ -703,15 +704,15 @@ const be = te("http", {
703
704
  ]),
704
705
  _: 1
705
706
  }, 8, ["append-icon"]),
706
- o(q, {
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(H, {
714
+ append: s(() => [
715
+ o(P, {
715
716
  class: "ms-2 border-opacity-50",
716
717
  vertical: ""
717
718
  }),
@@ -722,7 +723,7 @@ const be = te("http", {
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 be = te("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 Qe = te("settings", () => {
850
- const u = "https://cdn.vuetifyjs.com/docs/images/one/", t = z(), a = M(), 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 Qe = te("settings", () => {
863
1025
  // 'drawer': '',
864
1026
  // footer: '',
865
1027
  // },
866
- }, c = L(() => {
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 = fe(u, "modelValue"), a = z(), s = Qe(), n = M(), 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:${Pe}`,
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 = ue, p = ho, g = Je, C = Ve;
947
- return d(), v(C, {
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(Ne, { scrollable: "" }, {
957
- default: i(() => [
1117
+ default: s(() => [
1118
+ o(Ve, null, {
1119
+ default: s(() => [
1120
+ o(ke, { scrollable: "" }, {
1121
+ default: s(() => [
958
1122
  o(X, { class: "px-7" }, {
959
- default: i(() => [
960
- o(h, {
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(qe, {
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(ge, { dense: "" }, {
971
- default: i(() => [
972
- (d(), w(N, null, se(r, (m, k) => o(re, {
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(Ce, {
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(Ge, null, {
983
- default: i(({ props: x, isHovering: A }) => [
984
- o(R, Q({
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
- }, x, { onClick: D }), {
995
- image: i(() => [
996
- o(Ue, {
997
- style: Be({
998
- filter: b || A ? "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 Qe = te("settings", () => {
1016
1180
  ]),
1017
1181
  _: 1
1018
1182
  }, 8, ["modelValue"]),
1019
- e(a).isSubscriber ? (d(), w(N, { key: 0 }, [
1020
- o(H, { 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(H),
1190
+ o(P),
1027
1191
  o(X, { class: "px-7" }, {
1028
- default: i(() => [
1029
- o(h, {
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(), v(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(H),
1051
- e(a).isSubscriber ? (d(), v(X, {
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(), v(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 Qe = te("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 = Y;
1095
- return d(), v(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
- }), J = te("one", () => {
1112
- const t = new URLSearchParams(window.location.search).get("session_id"), a = z(), s = be(), n = F(!1), r = ee(!1), c = ee(), l = ee([]), h = L(() => {
1113
- var f;
1114
- return (f = c.value) == null ? void 0 : f.items[0].plan.interval;
1115
- }), p = L(() => {
1116
- var f;
1117
- return (f = a.user) == null ? void 0 : f.sponsorships.find((y) => y.platform === "stripe" && y.tierName.startsWith("sub_"));
1118
- }), g = L(() => {
1119
- var f;
1120
- return !!((f = p.value) != null && f.tierName);
1121
- }), C = L(() => {
1122
- var f;
1123
- return (f = p.value) == null ? void 0 : f.isActive;
1124
- }), m = L(() => {
1125
- var f;
1126
- return (f = a.user) == null ? void 0 : f.sponsorships.find((y) => y.platform === "github");
1127
- }), k = L(() => {
1128
- var f;
1129
- return (f = a.user) == null ? void 0 : f.sponsorships.find((y) => y.platform === "discord");
1130
- }), D = L(() => {
1131
- var f;
1132
- return (f = a.user) == null ? void 0 : f.sponsorships.find((y) => y.platform === "patreon");
1133
- }), b = L(() => {
1134
- var f;
1135
- return (f = a.user) == null ? void 0 : f.sponsorships.reduce((y, K) => {
1136
- if (!K.isActive || K.interval === "once" || K.platform === "stripe")
1137
- return y;
1138
- const Xe = K.interval === "month" ? K.amount : K.amount / 12;
1139
- return y + Xe / 100;
1140
- }, 0);
1141
- });
1142
- tt(async () => {
1143
- t && await x();
1144
- }), W(C, (f, y) => {
1145
- f === !1 && y !== !0 || P();
1146
- });
1147
- async function x() {
1148
- try {
1149
- n.value = !0;
1150
- const f = await s.post("/one/activate", { sessionId: t });
1151
- a.user = f.user;
1152
- const y = new URL(window.location.href);
1153
- y.searchParams.delete("session_id"), history.pushState(null, "", y.toString()), T();
1154
- } catch {
1155
- } finally {
1156
- n.value = !1;
1157
- }
1158
- }
1159
- async function A() {
1160
- window.open(`${s.url}/one/manage`, "_blank");
1161
- }
1162
- async function O(f) {
1163
- n.value = !0, window.location.href = `${s.url}/one/subscribe?interval=${f}`;
1164
- }
1165
- async function S() {
1166
- var f;
1167
- if (p.value)
1168
- try {
1169
- n.value = !0;
1170
- const y = await s.post(
1171
- `/one/cancel?subscriptionId=${(f = p.value) == null ? void 0 : f.tierName}`
1172
- );
1173
- a.user = y.user;
1174
- } catch {
1175
- } finally {
1176
- n.value = !1;
1177
- }
1178
- }
1179
- async function E(f) {
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: f
1186
- });
1187
- a.user = y.user;
1188
- } catch {
1189
- } finally {
1190
- n.value = !1;
1191
- }
1192
- }
1193
- async function P() {
1194
- var f;
1195
- if (p.value)
1196
- try {
1197
- n.value = !0;
1198
- const y = await s.post(
1199
- `/one/verify?subscriptionId=${(f = p.value) == null ? void 0 : f.tierName}`
1200
- );
1201
- a.user = y.user;
1202
- } catch {
1203
- } finally {
1204
- n.value = !1;
1205
- }
1206
- }
1207
- async function T() {
1208
- try {
1209
- n.value = !0;
1210
- const f = await s.get("/one/info");
1211
- return c.value = f.subscription, l.value = f.invoices, f;
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: C,
1228
- github: m,
1229
- patreon: D,
1230
- discord: k,
1231
- activate: x,
1232
- cancel: S,
1233
- manage: A,
1234
- modify: E,
1235
- subscribe: O,
1236
- subscriptionInfo: T,
1237
- verify: P
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 = he(), a = J();
1243
- return (s, n) => {
1244
- const r = ue;
1245
- return d(), v(ge, null, {
1246
- default: i(() => [
1247
- o(re, { 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(R, {
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
- _("div", Vo, I(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(" $" + I(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(q, {
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 Qe = te("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 Qe = te("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__ */ _("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" }, Io = { class: "font-weight-bold" }, Ao = { 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 = he(), s = J(), n = t, r = L(() => {
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 = ce;
1321
- return d(), v(ge, null, {
1322
- default: i(() => [
1323
- o(re, { cols: "12" }, {
1324
- default: i(() => {
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(() => {
1325
1361
  var g, C;
1326
1362
  return [
1327
- o(R, {
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(), v(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(), v(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
- _("div", $o, [
1362
- _("span", xo, I(e(s).info.status), 1),
1363
- e(s).info.items.length ? (d(), w(N, { key: 0 }, [
1364
- wo,
1365
- _("span", So, [
1366
- j(" $" + I(e(s).info.items[0].plan.amount / 100), 1),
1367
- _("span", Co, "/" + I(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
- _("div", { class: "d-flex align-center" }, [
1383
- o(Oe, {
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
- _("span", { class: "mx-1" }, "—"),
1389
- o(Oe, {
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 Qe = te("settings", () => {
1396
1432
  key: "1"
1397
1433
  }
1398
1434
  ]), 1024),
1399
- _("div", Lo, [
1400
- _("div", null, [
1401
- ((g = e(s).info) == null ? void 0 : g.status) === "active" ? (d(), w(N, { 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
- _("span", Io, I(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(), w(N, { key: 1 }, [
1441
+ ], 64)) : (d(), S(N, { key: 1 }, [
1406
1442
  j(" Your plan ends on "),
1407
- _("span", Ao, I(e(a).format((C = e(s).info) == null ? void 0 : C.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 Qe = te("settings", () => {
1418
1454
  });
1419
1455
  };
1420
1456
  }
1421
- }), Uo = /* @__PURE__ */ _("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The Vuetify One subscription comes with the following perks: ", -1), Fo = ["innerHTML"], No = /* @__PURE__ */ _("br", null, null, -1), jo = /* @__PURE__ */ _("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The following features are in development and coming soon: ", -1), Oo = ["innerHTML"], Bo = /* @__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 = J();
1435
- return W(s, async (r) => {
1436
- r && n.subscriptionInfo();
1437
- }), (r, c) => {
1438
- const l = Y;
1439
- return d(), w(N, null, [
1440
- o(Se, { 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,
1447
- o(ne, {
1482
+ To,
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(), w(N, null, se(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(oe)}`,
1492
+ "prepend-icon": `svg:${e(ne)}`,
1457
1493
  class: "mb-0"
1458
1494
  }, {
1459
- prepend: i(() => [
1495
+ prepend: s(() => [
1460
1496
  o(U, {
1461
1497
  class: "mx-n2",
1462
1498
  color: "success",
1463
1499
  size: "small"
1464
1500
  })
1465
1501
  ]),
1466
- title: i(() => [
1467
- _("div", { innerHTML: h }, null, 8, Fo)
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
- No,
1475
- o(Se, { 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,
1482
- o(ne, {
1517
+ Mo,
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(), w(N, null, se(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(() => [
1530
+ prepend: s(() => [
1495
1531
  o(U, {
1496
1532
  class: "mx-n2",
1497
1533
  size: "small"
1498
1534
  })
1499
1535
  ]),
1500
- title: i(() => [
1501
- _("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 Qe = te("settings", () => {
1508
1544
  ], 64);
1509
1545
  };
1510
1546
  }
1511
- }), zo = /* @__PURE__ */ V({
1547
+ }), qo = /* @__PURE__ */ k({
1512
1548
  __name: "VoSubscriptionSubscribe",
1513
1549
  props: {
1514
1550
  modelValue: {
@@ -1517,37 +1553,38 @@ const Qe = te("settings", () => {
1517
1553
  modelModifiers: {}
1518
1554
  },
1519
1555
  emits: ["update:modelValue"],
1520
- setup(u) {
1521
- const t = F(!1), a = fe(u, "modelValue"), s = J();
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(), v(qe, {
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(ge, null, {
1532
- default: i(() => [
1533
- o(re, {
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(Ce, { value: "month" }, {
1539
- default: i(({ toggle: c, isSelected: l }) => [
1540
- o(R, {
1541
- border: l ? "sm primary opacity-100" : "sm",
1542
- color: l ? "primary" : void 0,
1543
- "prepend-icon": l ? `svg:${e(ae)}` : "$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(() => [
1587
+ prepend: s(() => [
1551
1588
  o(U, { class: "mt-n6" })
1552
1589
  ]),
1553
1590
  _: 2
@@ -1558,28 +1595,28 @@ const Qe = te("settings", () => {
1558
1595
  ]),
1559
1596
  _: 1
1560
1597
  }),
1561
- o(re, {
1598
+ o(ce, {
1562
1599
  cols: "12",
1563
1600
  md: "6"
1564
1601
  }, {
1565
- default: i(() => [
1566
- o(Ce, { value: "year" }, {
1567
- default: i(({ toggle: c, isSelected: l }) => [
1568
- o(R, {
1569
- border: l ? "sm primary opacity-100" : "sm",
1570
- color: l ? "primary" : void 0,
1571
- "prepend-icon": l ? `svg:${e(ae)}` : "$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(() => [
1615
+ prepend: s(() => [
1579
1616
  o(U, { class: "mt-n6" })
1580
1617
  ]),
1581
- append: i(() => [
1582
- o(q, {
1618
+ append: s(() => [
1619
+ o(Y, {
1583
1620
  class: "mt-n6",
1584
1621
  color: "success",
1585
1622
  size: "small",
@@ -1602,107 +1639,117 @@ const Qe = te("settings", () => {
1602
1639
  _: 1
1603
1640
  }, 8, ["modelValue"]));
1604
1641
  }
1605
- }), To = { class: "px-3 h-screen" }, Ro = /* @__PURE__ */ _("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 = fe(u, "modelValue"), s = J(), 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
- }), Te(() => {
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 = ue, C = zo, m = Bo, k = Do, D = ko, b = ce, x = Ve;
1629
- return d(), v(x, {
1630
- modelValue: a.value,
1631
- "onUpdate:modelValue": p[4] || (p[4] = (A) => a.value = A),
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
- _("div", To, [
1637
- o(X, 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(Ye, { "model-value": r.value }, {
1644
- default: i(() => [
1645
- o(me, { value: "subscribe" }, {
1646
- default: i(() => [
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(() => [
1647
1680
  o(C, {
1648
- modelValue: n.value,
1649
- "onUpdate:modelValue": p[0] || (p[0] = (A) => n.value = A)
1650
- }, null, 8, ["modelValue"]),
1651
- Ro,
1652
- o(m)
1653
- ]),
1654
- _: 1
1655
- }),
1656
- o(me, { value: "status" }, {
1657
- default: i(() => [
1658
- o(k, {
1659
- "onChange:subscription": p[1] || (p[1] = (A) => r.value = "subscribe")
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
- _("div", Ho, [
1679
- c.value !== !1 ? (d(), v(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(ae)}`,
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(), v(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] = (A) => r.value = "status")
1696
- }, null, 8, ["prepend-icon"])) : (d(), v(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] = (A) => 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,122 +1758,131 @@ const Qe = te("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 = Y;
1720
- return d(), v(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: "py-4" }, ts = /* @__PURE__ */ _("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__ */ _("span", { class: "font-weight-black" }, "all"),
1785
+ /* @__PURE__ */ v("span", { class: "font-weight-black" }, "all"),
1739
1786
  /* @__PURE__ */ j(" Vuetify One benefits ")
1740
- ], -1), os = /* @__PURE__ */ V({
1787
+ ], -1), dn = /* @__PURE__ */ k({
1741
1788
  __name: "VoSponsorshipsDialog",
1742
- setup(u) {
1743
- const t = he(), a = _e(), s = z(), n = J(), r = Qe();
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 = ue, g = ce, C = Re("v-empty-state"), m = Ve;
1749
- return d(), v(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(Ne, { scrollable: "" }, {
1758
- default: i(() => [
1759
- _("div", Eo, [
1810
+ default: s(() => [
1811
+ o(Ve, null, {
1812
+ default: s(() => [
1813
+ o(ke, { scrollable: "" }, {
1814
+ default: s(() => [
1815
+ v("div", Zo, [
1760
1816
  o(X, null, {
1761
- default: i(() => [
1762
- o(p, {
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, x, A, O;
1829
+ default: s(() => {
1830
+ var y, $, B, I, W, K;
1775
1831
  return [
1776
- o(xe, {
1777
- "dot-color": (k = e(n).github) != null && k.isActive ? "success" : "transparent",
1778
- icon: (D = e(n).github) != null && D.isActive ? `svg:${e(oe)}` : 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(R, {
1784
- "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",
1785
1841
  rounded: "lg",
1786
1842
  subtitle: "Support Vuetify through GitHub sponsors.",
1787
1843
  title: "GitHub Sponsors",
1788
1844
  variant: "text",
1789
1845
  border: ""
1790
1846
  }, {
1791
- append: i(() => {
1792
- var S, E, P, T, f, y;
1847
+ append: s(() => {
1848
+ var A, H, f, V, T, ee;
1793
1849
  return [
1794
- _("div", Wo, [
1795
- o(g, {
1796
- color: (S = e(n).github) != null && S.isActive ? "success" : "primary",
1797
- href: (E = e(n).github) != null && E.isActive ? void 0 : "https://github.com/sponsors/johnleider",
1798
- "prepend-icon": `svg:${(P = e(n).github) != null && P.isActive ? e(ae) : e(je)}`,
1799
- readonly: (T = e(n).github) == null ? void 0 : T.isActive,
1800
- target: (f = e(n).github) != null && f.isActive ? void 0 : "_blank",
1801
- text: (y = e(n).github) != null && y.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",
1802
1858
  width: "88"
1803
1859
  }, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
1804
1860
  ])
1805
1861
  ];
1806
1862
  }),
1807
- default: i(() => {
1808
- var S;
1863
+ default: s(() => {
1864
+ var A;
1809
1865
  return [
1810
- (S = e(n).github) != null && S.isActive ? (d(), w(N, { key: 0 }, [
1811
- o(H),
1866
+ (A = e(r).github) != null && A.isActive ? (d(), S(N, { key: 0 }, [
1867
+ o(P),
1812
1868
  o(X, { class: "d-flex justify-space-between align-center flex-wrap" }, {
1813
- default: i(() => [
1814
- o(q, {
1815
- "prepend-icon": `svg:${e($e)}`,
1816
- text: e(n).github.tierName,
1869
+ default: s(() => [
1870
+ o(Y, {
1871
+ "prepend-icon": `svg:${e(Le)}`,
1872
+ text: e(r).github.tierName,
1817
1873
  color: "surface-variant",
1818
1874
  size: "small",
1819
1875
  variant: "text",
1820
1876
  label: ""
1821
1877
  }, null, 8, ["prepend-icon", "text"]),
1822
- _("div", Go, [
1878
+ v("div", en, [
1823
1879
  j(" Sponsor since "),
1824
- _("span", qo, I(c(e(n).github.createdAt)), 1)
1880
+ v("span", tn, D(h(e(r).github.createdAt)), 1)
1825
1881
  ])
1826
1882
  ]),
1827
1883
  _: 1
1828
1884
  })
1829
- ], 64)) : $("", !0)
1885
+ ], 64)) : x("", !0)
1830
1886
  ];
1831
1887
  }),
1832
1888
  _: 1
@@ -1834,60 +1890,60 @@ const Qe = te("settings", () => {
1834
1890
  ]),
1835
1891
  _: 1
1836
1892
  }, 8, ["dot-color", "icon"]),
1837
- o(xe, {
1838
- "dot-color": (b = e(n).discord) != null && b.isActive ? "success" : "transparent",
1839
- icon: (x = e(n).discord) != null && x.isActive ? `svg:${e(oe)}` : 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,
1840
1896
  size: "x-small",
1841
1897
  width: "100%"
1842
1898
  }, {
1843
- default: i(() => [
1844
- o(R, {
1845
- "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",
1846
1902
  rounded: "lg",
1847
1903
  subtitle: "Support Vuetify through Discord.",
1848
1904
  title: "Discord Subscriber",
1849
1905
  variant: "text",
1850
1906
  border: ""
1851
1907
  }, {
1852
- append: i(() => {
1853
- var S, E, P, T, f, y;
1908
+ append: s(() => {
1909
+ var A, H, f, V, T, ee;
1854
1910
  return [
1855
- _("div", Yo, [
1856
- o(g, {
1857
- color: (S = e(n).discord) != null && S.isActive ? "success" : "primary",
1858
- href: (E = e(n).discord) != null && E.isActive ? void 0 : "https://discord.com/servers/vuetify-340160225338195969",
1859
- "prepend-icon": `svg:${(P = e(n).discord) != null && P.isActive ? e(ae) : e(je)}`,
1860
- readonly: (T = e(n).discord) == null ? void 0 : T.isActive,
1861
- target: (f = e(n).discord) != null && f.isActive ? void 0 : "_blank",
1862
- text: (y = e(n).discord) != null && y.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",
1863
1919
  width: "88"
1864
1920
  }, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text"])
1865
1921
  ])
1866
1922
  ];
1867
1923
  }),
1868
- default: i(() => {
1869
- var S;
1924
+ default: s(() => {
1925
+ var A;
1870
1926
  return [
1871
- (S = e(n).discord) != null && S.isActive ? (d(), w(N, { key: 0 }, [
1872
- o(H),
1927
+ (A = e(r).discord) != null && A.isActive ? (d(), S(N, { key: 0 }, [
1928
+ o(P),
1873
1929
  o(X, { class: "d-flex justify-space-between align-center flex-wrap" }, {
1874
- default: i(() => [
1875
- o(q, {
1876
- "prepend-icon": `svg:${e($e)}`,
1877
- text: e(n).discord.tierName,
1930
+ default: s(() => [
1931
+ o(Y, {
1932
+ "prepend-icon": `svg:${e(Le)}`,
1933
+ text: e(r).discord.tierName,
1878
1934
  color: "surface-variant",
1879
1935
  size: "small",
1880
1936
  variant: "text",
1881
1937
  label: ""
1882
1938
  }, null, 8, ["prepend-icon", "text"]),
1883
- _("div", Jo, [
1939
+ v("div", nn, [
1884
1940
  j(" Subscriber since "),
1885
- _("span", Qo, I(c(e(n).discord.createdAt)), 1)
1941
+ v("span", sn, D(h(e(r).discord.createdAt)), 1)
1886
1942
  ])
1887
1943
  ]),
1888
1944
  _: 1
1889
1945
  })
1890
- ], 64)) : $("", !0)
1946
+ ], 64)) : x("", !0)
1891
1947
  ];
1892
1948
  }),
1893
1949
  _: 1
@@ -1895,55 +1951,55 @@ const Qe = te("settings", () => {
1895
1951
  ]),
1896
1952
  _: 1
1897
1953
  }, 8, ["dot-color", "icon"]),
1898
- o(xe, {
1899
- "dot-color": (A = e(n).patreon) != null && A.isActive ? "success" : "transparent",
1900
- icon: (O = e(n).patreon) != null && O.isActive ? `svg:${e(oe)}` : 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,
1901
1957
  size: "x-small",
1902
1958
  width: "100%"
1903
1959
  }, {
1904
- default: i(() => [
1905
- o(R, {
1906
- "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",
1907
1963
  rounded: "lg",
1908
1964
  subtitle: "Support Vuetify through Patreon.",
1909
1965
  title: "Patreon Subscriber",
1910
1966
  variant: "text",
1911
1967
  border: ""
1912
1968
  }, {
1913
- append: i(() => {
1914
- var S;
1969
+ append: s(() => {
1970
+ var A;
1915
1971
  return [
1916
- _("div", Xo, [
1917
- o(g, {
1918
- text: (S = e(n).patreon) != null && S.isActive ? "Active" : "Coming Soon",
1972
+ v("div", an, [
1973
+ o(_, {
1974
+ text: (A = e(r).patreon) != null && A.isActive ? "Active" : "Coming Soon",
1919
1975
  color: "surface-variant",
1920
1976
  readonly: ""
1921
1977
  }, null, 8, ["text"])
1922
1978
  ])
1923
1979
  ];
1924
1980
  }),
1925
- default: i(() => {
1926
- var S;
1981
+ default: s(() => {
1982
+ var A;
1927
1983
  return [
1928
- (S = e(n).patreon) != null && S.isActive ? (d(), w(N, { key: 0 }, [
1929
- o(H),
1984
+ (A = e(r).patreon) != null && A.isActive ? (d(), S(N, { key: 0 }, [
1985
+ o(P),
1930
1986
  o(X, { class: "d-flex justify-space-between align-center flex-wrap" }, {
1931
- default: i(() => [
1932
- o(q, {
1933
- "prepend-icon": `svg:${e($e)}`,
1934
- text: e(n).patreon.tierName,
1987
+ default: s(() => [
1988
+ o(Y, {
1989
+ "prepend-icon": `svg:${e(Le)}`,
1990
+ text: e(r).patreon.tierName,
1935
1991
  color: "success",
1936
1992
  variant: "text",
1937
1993
  label: ""
1938
1994
  }, null, 8, ["prepend-icon", "text"]),
1939
- _("div", Zo, [
1995
+ v("div", rn, [
1940
1996
  j(" Sponsor since "),
1941
- _("span", Ko, I(c(e(n).patreon.createdAt)), 1)
1997
+ v("span", ln, D(h(e(r).patreon.createdAt)), 1)
1942
1998
  ])
1943
1999
  ]),
1944
2000
  _: 1
1945
2001
  })
1946
- ], 64)) : $("", !0)
2002
+ ], 64)) : x("", !0)
1947
2003
  ];
1948
2004
  }),
1949
2005
  _: 1
@@ -1958,27 +2014,27 @@ const Qe = te("settings", () => {
1958
2014
  ]),
1959
2015
  _: 1
1960
2016
  }),
1961
- o(C, {
1962
- icon: `svg:${e(Ct)}`,
2017
+ o(w, {
2018
+ icon: `svg:${e(Nt)}`,
1963
2019
  class: "mt-auto",
1964
2020
  "min-height": "auto",
1965
2021
  size: "64",
1966
2022
  title: "Your Monthly Contributions"
1967
2023
  }, {
1968
- media: i(() => [
2024
+ media: s(() => [
1969
2025
  o(U, { color: "success" })
1970
2026
  ]),
1971
- headline: i(() => [
1972
- _("div", es, [
1973
- e(s).isSubscriber ? (d(), w(N, { key: 0 }, [
1974
- j(" $" + I(parseFloat(String(e(n).monthlyTotal)).toFixed(2)), 1)
1975
- ], 64)) : (d(), w(N, { 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 }, [
1976
2032
  j(" $0.00 ")
1977
2033
  ], 64))
1978
2034
  ])
1979
2035
  ]),
1980
- text: i(() => [
1981
- ts
2036
+ text: s(() => [
2037
+ un
1982
2038
  ]),
1983
2039
  _: 1
1984
2040
  }, 8, ["icon"])
@@ -1991,88 +2047,88 @@ const Qe = te("settings", () => {
1991
2047
  })
1992
2048
  ]),
1993
2049
  _: 1
1994
- }, 8, ["max-height", "prepend-icon"]);
2050
+ }, 8, ["modelValue", "max-height", "prepend-icon"]);
1995
2051
  };
1996
2052
  }
1997
- }), ss = /* @__PURE__ */ V({
2053
+ }), pn = /* @__PURE__ */ k({
1998
2054
  __name: "VoSponsorshipsListItem",
1999
- setup(u) {
2000
- const t = F(!1);
2001
- return (a, s) => {
2002
- const n = os, r = Y;
2003
- return d(), v(r, {
2055
+ setup(c) {
2056
+ const t = O(!1);
2057
+ return (i, n) => {
2058
+ const l = dn, a = Q;
2059
+ return d(), m(a, {
2004
2060
  active: t.value,
2005
- "prepend-icon": `svg:${e(Lt)}`,
2061
+ "prepend-icon": `svg:${e(Ot)}`,
2006
2062
  title: "Sponsorships",
2007
2063
  link: ""
2008
2064
  }, {
2009
- default: i(() => [
2010
- o(n, {
2065
+ default: s(() => [
2066
+ o(l, {
2011
2067
  modelValue: t.value,
2012
- "onUpdate:modelValue": s[0] || (s[0] = (c) => t.value = c)
2068
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r)
2013
2069
  }, null, 8, ["modelValue"])
2014
2070
  ]),
2015
2071
  _: 1
2016
2072
  }, 8, ["active", "prepend-icon"]);
2017
2073
  };
2018
2074
  }
2019
- }), ns = {
2075
+ }), mn = {
2020
2076
  key: 0,
2021
2077
  class: "pt-16"
2022
- }, is = /* @__PURE__ */ _("div", { class: "text-medium-emphasis" }, " All caught up ", -1), as = { class: "ps-3 text-subtitle-2 pe-2" }, rs = { class: "text-truncate" }, ls = { class: "text-caption font-weight-bold text-medium-emphasis" }, cs = { class: "text-disabled text-caption my-2" }, us = /* @__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({
2023
2079
  __name: "VoNotificationsList",
2024
2080
  props: {
2025
2081
  items: {}
2026
2082
  },
2027
- setup(u) {
2028
- const t = M(), a = he();
2029
- function s(r) {
2030
- 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);
2031
2087
  }
2032
- function n(r) {
2033
- 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);
2034
2090
  }
2035
- return (r, c) => {
2036
- const l = Re("v-empty-state"), h = Y;
2037
- return d(), v(ne, {
2091
+ return (a, r) => {
2092
+ const u = We("v-empty-state"), h = Q;
2093
+ return d(), m(ie, {
2038
2094
  class: "py-0",
2039
2095
  height: "100%",
2040
2096
  lines: "three"
2041
2097
  }, {
2042
- default: i(() => [
2043
- r.items.length ? (d(!0), w(N, { key: 1 }, se(r.items, (p, g) => (d(), v(Ge, {
2098
+ default: s(() => [
2099
+ a.items.length ? (d(!0), S(N, { key: 1 }, se(a.items, (p, g) => (d(), m(Xe, {
2044
2100
  key: p.slug
2045
2101
  }, {
2046
- default: i(({ isHovering: C, props: m }) => [
2047
- o(h, Q(m, {
2102
+ default: s(({ isHovering: C, props: _ }) => [
2103
+ o(h, J(_, {
2048
2104
  border: g !== 0 && "t",
2049
2105
  class: "py-4 mb-0"
2050
2106
  }), {
2051
- prepend: i(() => [
2052
- _("div", as, I(p.metadata.emoji), 1)
2107
+ prepend: s(() => [
2108
+ v("div", vn, D(p.metadata.emoji), 1)
2053
2109
  ]),
2054
- append: i(() => [
2055
- o(Zt, {
2110
+ append: s(() => [
2111
+ o(so, {
2056
2112
  class: "mt-n3",
2057
2113
  width: "56"
2058
2114
  }, {
2059
- default: i(() => [
2060
- o(ie, {
2061
- 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",
2062
2118
  location: "bottom"
2063
2119
  }, {
2064
- activator: i(({ props: k }) => [
2065
- o(De, { "hide-on-leave": "" }, {
2066
- default: i(() => [
2067
- Le(o(Z, Q(k, {
2068
- icon: `svg:${s(p.slug) ? e(At) : e(It)}`,
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)}`,
2069
2125
  class: "ms-auto",
2070
2126
  size: "small",
2071
2127
  variant: "text",
2072
2128
  "mdi-email-variant": "",
2073
- onClick: (D) => n(p)
2129
+ onClick: (b) => l(p)
2074
2130
  }), null, 16, ["icon", "onClick"]), [
2075
- [He, C]
2131
+ [qe, C]
2076
2132
  ])
2077
2133
  ]),
2078
2134
  _: 2
@@ -2084,17 +2140,17 @@ const Qe = te("settings", () => {
2084
2140
  _: 2
2085
2141
  }, 1024)
2086
2142
  ]),
2087
- default: i(() => [
2088
- o(Et, { class: "text-wrap text-h6 mb-1" }, {
2089
- default: i(() => [
2090
- _("div", rs, I(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)
2091
2147
  ]),
2092
2148
  _: 2
2093
2149
  }, 1024),
2094
- _("div", ls, I(e(a).format(p.created_at, "fullDateWithWeekday")), 1),
2095
- _("div", cs, I(p.metadata.text), 1),
2096
- o(q, {
2097
- "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)}`,
2098
2154
  href: p.metadata.action,
2099
2155
  text: p.metadata.action_text,
2100
2156
  size: "small",
@@ -2102,9 +2158,9 @@ const Qe = te("settings", () => {
2102
2158
  variant: "text",
2103
2159
  border: "",
2104
2160
  label: "",
2105
- onClick: (k) => n(p)
2161
+ onClick: (w) => l(p)
2106
2162
  }, {
2107
- append: i(() => [
2163
+ append: s(() => [
2108
2164
  o(U, { size: "12" })
2109
2165
  ]),
2110
2166
  _: 2
@@ -2114,16 +2170,16 @@ const Qe = te("settings", () => {
2114
2170
  }, 1040, ["border"])
2115
2171
  ]),
2116
2172
  _: 2
2117
- }, 1024))), 128)) : (d(), w("div", ns, [
2118
- o(l, {
2173
+ }, 1024))), 128)) : (d(), S("div", mn, [
2174
+ o(u, {
2119
2175
  icon: "$vuetify",
2120
2176
  size: "256"
2121
2177
  }, {
2122
- media: i(() => [
2178
+ media: s(() => [
2123
2179
  o(U, { color: "medium-emphasis" })
2124
2180
  ]),
2125
- title: i(() => [
2126
- is
2181
+ title: s(() => [
2182
+ fn
2127
2183
  ]),
2128
2184
  _: 1
2129
2185
  })
@@ -2133,51 +2189,58 @@ const Qe = te("settings", () => {
2133
2189
  });
2134
2190
  };
2135
2191
  }
2136
- }), ds = { class: "text-caption" }, ps = /* @__PURE__ */ V({
2192
+ }), yn = { class: "text-caption" }, Vn = /* @__PURE__ */ k({
2137
2193
  __name: "VoNotificationsDialog",
2138
- setup(u) {
2139
- const t = ye(), a = _e(), s = F(["0"]), n = F(!1);
2140
- return (r, c) => {
2141
- const l = Y, h = us, p = Ve;
2142
- return d(), v(p, {
2143
- modelValue: n.value,
2144
- "onUpdate:modelValue": c[2] || (c[2] = (g) => n.value = g),
2145
- "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)}`,
2146
2209
  title: "Notifications"
2147
2210
  }, {
2148
- default: i(() => [
2149
- o(Fe, null, {
2150
- default: i(() => [
2151
- o(Kt, {
2152
- location: e(a).mobile.value ? "top" : "start",
2153
- 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,
2154
2217
  permanent: ""
2155
2218
  }, {
2156
- default: i(() => [
2157
- o(ne, {
2158
- selected: s.value,
2159
- "onUpdate:selected": c[0] || (c[0] = (g) => s.value = g),
2219
+ default: s(() => [
2220
+ o(ie, {
2221
+ selected: a.value,
2222
+ "onUpdate:selected": h[0] || (h[0] = (_) => a.value = _),
2160
2223
  class: "px-4 pt-4",
2161
2224
  density: "compact",
2162
2225
  mandatory: "",
2163
2226
  nav: ""
2164
2227
  }, {
2165
- default: i(() => [
2166
- o(l, {
2167
- "prepend-icon": `svg:${e(Ft)}`,
2228
+ default: s(() => [
2229
+ o(p, {
2230
+ "prepend-icon": `svg:${e(Et)}`,
2168
2231
  title: "Unread",
2169
2232
  value: "0"
2170
2233
  }, G({ _: 2 }, [
2171
- e(t).unread.length > 0 ? {
2234
+ e(l).unread.length > 0 ? {
2172
2235
  name: "append",
2173
- fn: i(() => [
2174
- _("span", ds, I(e(t).unread.length), 1)
2236
+ fn: s(() => [
2237
+ v("span", yn, D(e(l).unread.length), 1)
2175
2238
  ]),
2176
2239
  key: "0"
2177
2240
  } : void 0
2178
2241
  ]), 1032, ["prepend-icon"]),
2179
- o(l, {
2180
- "prepend-icon": `svg:${e(Nt)}`,
2242
+ o(p, {
2243
+ "prepend-icon": `svg:${e(Tt)}`,
2181
2244
  title: "Read",
2182
2245
  value: "1",
2183
2246
  "mdi-archive-outline": ""
@@ -2188,25 +2251,25 @@ const Qe = te("settings", () => {
2188
2251
  ]),
2189
2252
  _: 1
2190
2253
  }, 8, ["location", "width"]),
2191
- o(Ne, { scrollable: "" }, {
2192
- default: i(() => [
2193
- o(Ye, {
2194
- modelValue: s.value,
2195
- "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 = _)
2196
2259
  }, {
2197
- default: i(() => [
2198
- o(me, { value: "0" }, {
2199
- default: i(() => [
2200
- o(h, {
2201
- items: e(t).unread
2260
+ default: s(() => [
2261
+ o(ve, { value: "0" }, {
2262
+ default: s(() => [
2263
+ o(g, {
2264
+ items: e(l).unread
2202
2265
  }, null, 8, ["items"])
2203
2266
  ]),
2204
2267
  _: 1
2205
2268
  }),
2206
- o(me, { value: "1" }, {
2207
- default: i(() => [
2208
- o(h, {
2209
- items: e(t).read
2269
+ o(ve, { value: "1" }, {
2270
+ default: s(() => [
2271
+ o(g, {
2272
+ items: e(l).read
2210
2273
  }, null, 8, ["items"])
2211
2274
  ]),
2212
2275
  _: 1
@@ -2225,49 +2288,49 @@ const Qe = te("settings", () => {
2225
2288
  }, 8, ["modelValue", "prepend-icon"]);
2226
2289
  };
2227
2290
  }
2228
- }), ms = /* @__PURE__ */ V({
2291
+ }), kn = /* @__PURE__ */ k({
2229
2292
  __name: "VoNotificationsBadge",
2230
- setup(u) {
2231
- const t = ye();
2232
- return (a, s) => (d(), v(Me, {
2293
+ setup(c) {
2294
+ const t = xe(), i = E();
2295
+ return (n, l) => (d(), m(Ge, {
2233
2296
  content: e(t).unread.length,
2234
- "model-value": e(t).unread.length > 0,
2297
+ "model-value": e(i).notifications.show && e(t).unread.length > 0,
2235
2298
  color: "error"
2236
2299
  }, {
2237
- default: i(() => [
2238
- B(a.$slots, "default")
2300
+ default: s(() => [
2301
+ R(n.$slots, "default")
2239
2302
  ]),
2240
2303
  _: 3
2241
2304
  }, 8, ["content", "model-value"]));
2242
2305
  }
2243
- }), fs = /* @__PURE__ */ V({
2306
+ }), $n = /* @__PURE__ */ k({
2244
2307
  __name: "VoNotificationsListItem",
2245
- setup(u) {
2246
- const t = M(), a = ye(), s = F(!1);
2247
- return Te(async () => {
2248
- await a.get();
2249
- }), (n, r) => {
2250
- const c = ms, l = ps, h = Y;
2251
- return e(t).notifications.show ? (d(), v(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, {
2252
2315
  key: 0,
2253
- active: s.value,
2254
- "prepend-icon": `svg:${e(jt)}`,
2316
+ active: n.value,
2317
+ "prepend-icon": `svg:${e(Rt)}`,
2255
2318
  title: "Notifications",
2256
2319
  link: ""
2257
2320
  }, G({
2258
- default: i(() => [
2259
- o(l, {
2260
- modelValue: s.value,
2261
- "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)
2262
2325
  }, null, 8, ["modelValue"])
2263
2326
  ]),
2264
2327
  _: 2
2265
2328
  }, [
2266
- e(a).unread.length ? {
2329
+ e(i).unread.length ? {
2267
2330
  name: "prepend",
2268
- fn: i(() => [
2269
- o(c, null, {
2270
- default: i(() => [
2331
+ fn: s(() => [
2332
+ o(r, null, {
2333
+ default: s(() => [
2271
2334
  o(U)
2272
2335
  ]),
2273
2336
  _: 1
@@ -2275,52 +2338,52 @@ const Qe = te("settings", () => {
2275
2338
  ]),
2276
2339
  key: "0"
2277
2340
  } : void 0
2278
- ]), 1032, ["active", "prepend-icon"])) : $("", !0);
2341
+ ]), 1032, ["active", "prepend-icon"])) : x("", !0);
2279
2342
  };
2280
2343
  }
2281
- }), vs = /* @__PURE__ */ V({
2344
+ }), xn = /* @__PURE__ */ k({
2282
2345
  __name: "VoDashboardListItem",
2283
- setup(u) {
2284
- return (t, a) => {
2285
- const s = Y;
2286
- return d(), v(s, {
2287
- "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)}`,
2288
2351
  title: "Dashboard",
2289
2352
  to: "/user/dashboard"
2290
2353
  }, null, 8, ["prepend-icon"]);
2291
2354
  };
2292
2355
  }
2293
- }), _s = /* @__PURE__ */ V({
2356
+ }), wn = /* @__PURE__ */ k({
2294
2357
  __name: "VoUserList",
2295
- setup(u) {
2296
- const t = z();
2297
- return (a, s) => {
2298
- const n = vs, r = fs, c = ss, l = Po, h = yo, p = fo;
2299
- return d(), v(ne, {
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, {
2300
2363
  density: "compact",
2301
2364
  nav: "",
2302
2365
  slim: ""
2303
2366
  }, {
2304
- default: i(() => [
2305
- o(n),
2367
+ default: s(() => [
2368
+ o(l),
2369
+ o(a),
2306
2370
  o(r),
2307
- o(c),
2308
- e(t).user ? (d(), v(l, { key: 0 })) : $("", !0),
2371
+ e(t).user ? (d(), m(u, { key: 0 })) : x("", !0),
2309
2372
  o(h),
2310
- e(t).user ? (d(), v(p, { key: 1 })) : $("", !0)
2373
+ e(t).user ? (d(), m(p, { key: 1 })) : x("", !0)
2311
2374
  ]),
2312
2375
  _: 1
2313
2376
  });
2314
2377
  };
2315
2378
  }
2316
- }), hs = { key: 0 }, gs = { class: "d-flex align-center justify-center pa-1 ga-2" }, bs = /* @__PURE__ */ V({
2379
+ }), Sn = { key: 0 }, Cn = { class: "d-flex align-center justify-center pa-1 ga-2" }, Ln = /* @__PURE__ */ k({
2317
2380
  __name: "VoUserQuickActions",
2318
- setup(u) {
2319
- const t = M();
2320
- return (a, s) => (d(), v(le, null, {
2321
- default: i(() => [
2322
- e(t).quickbar ? (d(), w("div", hs, [
2323
- _("div", gs, [
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, [
2324
2387
  o(Z, {
2325
2388
  color: e(t).colors.one,
2326
2389
  class: "text-caption",
@@ -2331,7 +2394,7 @@ const Qe = te("settings", () => {
2331
2394
  }, null, 8, ["color"]),
2332
2395
  o(Z, {
2333
2396
  color: e(t).colors.one,
2334
- icon: `svg:${e(Bt)}`,
2397
+ icon: `svg:${e(Mt)}`,
2335
2398
  class: "text-caption",
2336
2399
  density: "comfortable",
2337
2400
  href: "https://bin.vuetifyjs.com",
@@ -2339,23 +2402,23 @@ const Qe = te("settings", () => {
2339
2402
  }, null, 8, ["color", "icon"]),
2340
2403
  o(Z, {
2341
2404
  color: e(t).colors.one,
2342
- icon: `svg:${e(zt)}`,
2405
+ icon: `svg:${e(Pt)}`,
2343
2406
  class: "text-caption",
2344
2407
  density: "comfortable",
2345
2408
  href: "https://issues.vuetifyjs.com",
2346
2409
  target: "_blank"
2347
2410
  }, null, 8, ["color", "icon"])
2348
2411
  ])
2349
- ])) : $("", !0)
2412
+ ])) : x("", !0)
2350
2413
  ]),
2351
2414
  _: 1
2352
2415
  }));
2353
2416
  }
2354
- }), ys = { class: "mb-2" }, Vs = { key: 0 }, ks = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, $s = { class: "text-h6" }, xs = /* @__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({
2355
2418
  __name: "VoUserAvatar",
2356
- setup(u) {
2357
- const t = z(), a = M(), s = F(!1), n = L(() => {
2358
- const l = [
2419
+ setup(c) {
2420
+ const t = F(), i = E(), n = O(!1), l = L(() => {
2421
+ const u = [
2359
2422
  "https://cdn.vuetifyjs.com/docs/images/avatars/one.png",
2360
2423
  "https://cdn.vuetifyjs.com/docs/images/avatars/grass.png",
2361
2424
  "https://cdn.vuetifyjs.com/docs/images/avatars/wood.png",
@@ -2371,19 +2434,19 @@ const Qe = te("settings", () => {
2371
2434
  "https://cdn.vuetifyjs.com/docs/images/avatars/meteor.png",
2372
2435
  "https://cdn.vuetifyjs.com/docs/images/avatars/tada.png"
2373
2436
  ];
2374
- return t.user && l.unshift(t.user.picture), l;
2437
+ return t.user && u.unshift(t.user.picture), u;
2375
2438
  });
2376
- function r(l) {
2377
- a.avatar = l;
2439
+ function a(u) {
2440
+ i.avatar = u;
2378
2441
  }
2379
- function c() {
2380
- t.isSubscriber && (s.value = !s.value);
2442
+ function r() {
2443
+ t.isSubscriber && (n.value = !n.value);
2381
2444
  }
2382
- return (l, h) => {
2445
+ return (u, h) => {
2383
2446
  var p;
2384
- return d(), w("div", null, [
2385
- Le((d(), v(pe, {
2386
- class: ot([
2447
+ return d(), S("div", null, [
2448
+ Ne((d(), m(fe, {
2449
+ class: lt([
2387
2450
  "border-md border-opacity-100 border-surface-variant",
2388
2451
  {
2389
2452
  "cursor-pointer": e(t).isSubscriber
@@ -2392,14 +2455,14 @@ const Qe = te("settings", () => {
2392
2455
  color: "surface",
2393
2456
  size: "72",
2394
2457
  text: "Foobar",
2395
- onClick: ze(c, ["prevent", "stop"])
2458
+ onClick: Pe(r, ["prevent", "stop"])
2396
2459
  }, {
2397
- default: i(() => [
2398
- e(t).user && e(a).avatar ? (d(), v(Ue, {
2460
+ default: s(() => [
2461
+ e(t).user && e(i).avatar ? (d(), m(Fe, {
2399
2462
  key: 0,
2400
- src: e(a).avatar,
2463
+ src: e(i).avatar,
2401
2464
  alt: "User avatar"
2402
- }, null, 8, ["src"])) : (d(), v(U, {
2465
+ }, null, 8, ["src"])) : (d(), m(U, {
2403
2466
  key: 1,
2404
2467
  class: "mt-1",
2405
2468
  icon: "$vuetify",
@@ -2408,28 +2471,28 @@ const Qe = te("settings", () => {
2408
2471
  ]),
2409
2472
  _: 1
2410
2473
  }, 8, ["class"])), [
2411
- [eo, e(t).isSubscriber]
2474
+ [ao, e(t).isSubscriber]
2412
2475
  ]),
2413
- _("div", ys, [
2414
- o(le, null, {
2415
- default: i(() => [
2416
- s.value ? (d(), w("div", Vs, [
2417
- o(R, {
2476
+ v("div", In, [
2477
+ o(ue, null, {
2478
+ default: s(() => [
2479
+ n.value ? (d(), S("div", An, [
2480
+ o(M, {
2418
2481
  class: "pt-6 pb-1",
2419
2482
  rounded: "0",
2420
2483
  flat: ""
2421
2484
  }, {
2422
- default: i(() => [
2423
- _("div", ks, [
2424
- (d(!0), w(N, null, se(n.value, (g, C) => (d(), v(Z, {
2485
+ default: s(() => [
2486
+ v("div", Dn, [
2487
+ (d(!0), S(N, null, se(l.value, (g, C) => (d(), m(Z, {
2425
2488
  key: C,
2426
- active: e(a).avatar === g,
2489
+ active: e(i).avatar === g,
2427
2490
  variant: "flat",
2428
2491
  icon: "",
2429
- onClick: (m) => r(g)
2492
+ onClick: (_) => a(g)
2430
2493
  }, {
2431
- default: i(() => [
2432
- o(pe, {
2494
+ default: s(() => [
2495
+ o(fe, {
2433
2496
  image: g,
2434
2497
  eager: ""
2435
2498
  }, null, 8, ["image"])
@@ -2440,118 +2503,128 @@ const Qe = te("settings", () => {
2440
2503
  ]),
2441
2504
  _: 1
2442
2505
  })
2443
- ])) : $("", !0)
2506
+ ])) : x("", !0)
2444
2507
  ]),
2445
2508
  _: 1
2446
2509
  })
2447
2510
  ]),
2448
- _("div", $s, I(((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)
2449
2512
  ]);
2450
2513
  };
2451
2514
  }
2452
- }), ws = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, Ss = {
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 = {
2453
2590
  key: "reset",
2454
2591
  class: "align-self-end"
2455
- }, Cs = /* @__PURE__ */ V({
2592
+ }, Fn = /* @__PURE__ */ k({
2456
2593
  __name: "VoUserColors",
2457
- setup(u) {
2458
- const t = z(), a = J(), s = M(), n = F(!1);
2459
- function r() {
2460
- 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";
2461
2598
  }
2462
- return (c, l) => {
2463
- const h = ce;
2464
- return d(), w(N, null, [
2465
- o(Ue, {
2466
- 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",
2467
2604
  "content-class": "d-flex align-start justify-end pa-2",
2468
2605
  height: "88",
2469
2606
  rounded: "0",
2470
2607
  cover: "",
2471
2608
  flat: ""
2472
2609
  }, {
2473
- default: i(() => [
2474
- _("div", ws, [
2475
- o(Ee, {
2476
- class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
2477
- color: "rgba(0,0,0,.36)",
2478
- rounded: "lg",
2479
- style: { left: "0" }
2480
- }, {
2481
- default: i(() => {
2482
- var p;
2483
- return [
2484
- (p = e(t).user) != null && p.isAdmin ? (d(), v(ie, {
2485
- key: 0,
2486
- location: "bottom",
2487
- text: "Vuetify Administrator"
2488
- }, {
2489
- activator: i(({ props: g }) => [
2490
- o(U, Q({
2491
- color: "blue",
2492
- icon: "$vuetify"
2493
- }, g, { size: "16" }), null, 16)
2494
- ]),
2495
- _: 1
2496
- })) : $("", !0),
2497
- e(a).isSubscriber ? (d(), v(ie, {
2498
- key: 1,
2499
- location: "bottom",
2500
- text: "Vuetify One Subscriber"
2501
- }, {
2502
- activator: i(({ props: g }) => [
2503
- o(U, Q({
2504
- icon: `svg:${e(Tt)}`,
2505
- color: "amber-darken-2"
2506
- }, g, { size: "16" }), null, 16, ["icon"])
2507
- ]),
2508
- _: 1
2509
- })) : $("", !0),
2510
- e(a).github ? (d(), v(ie, {
2511
- key: 2,
2512
- location: "bottom",
2513
- text: "GitHub Sponsor"
2514
- }, {
2515
- activator: i(({ props: g }) => [
2516
- o(U, Q({
2517
- icon: `svg:${e(Ae)}`,
2518
- color: "medium-emphasis"
2519
- }, g, { size: "16" }), null, 16, ["icon"])
2520
- ]),
2521
- _: 1
2522
- })) : $("", !0),
2523
- e(a).discord ? (d(), v(ie, {
2524
- key: 3,
2525
- location: "bottom",
2526
- text: "Discord Subscriber"
2527
- }, {
2528
- activator: i(({ props: g }) => [
2529
- o(U, Q({
2530
- icon: `svg:${e(Ie)}`,
2531
- color: "medium-emphasis"
2532
- }, g, { size: "16" }), null, 16, ["icon"])
2533
- ]),
2534
- _: 1
2535
- })) : $("", !0)
2536
- ];
2537
- }),
2538
- _: 1
2539
- }),
2540
- e(t).isSubscriber ? (d(), v(h, {
2610
+ default: s(() => [
2611
+ v("div", jn, [
2612
+ o(u),
2613
+ e(t).isSubscriber ? (d(), m(h, {
2541
2614
  key: 0,
2542
2615
  active: n.value,
2543
- icon: n.value ? `svg:${e(oe)}` : "$edit",
2616
+ icon: n.value ? `svg:${e(ne)}` : "$edit",
2544
2617
  variant: n.value ? "text" : "plain",
2545
2618
  class: "align-self-end",
2546
2619
  color: "inherit",
2547
2620
  density: "comfortable",
2548
2621
  title: "Edit One Header Color",
2549
- onClick: l[0] || (l[0] = (p) => n.value = !n.value)
2622
+ onClick: r[0] || (r[0] = (p) => n.value = !n.value)
2550
2623
  }, {
2551
- default: i(() => [
2552
- o(De, { "leave-absolute": "" }, {
2553
- default: i(() => [
2554
- (d(), v(U, {
2624
+ default: s(() => [
2625
+ o(Be, { "leave-absolute": "" }, {
2626
+ default: s(() => [
2627
+ (d(), m(U, {
2555
2628
  key: String(n.value)
2556
2629
  }))
2557
2630
  ]),
@@ -2559,22 +2632,22 @@ const Qe = te("settings", () => {
2559
2632
  })
2560
2633
  ]),
2561
2634
  _: 1
2562
- }, 8, ["active", "icon", "variant"])) : $("", !0),
2563
- o(Wt, null, {
2564
- default: i(() => [
2565
- Le(_("div", Ss, [
2635
+ }, 8, ["active", "icon", "variant"])) : x("", !0),
2636
+ o(Xt, null, {
2637
+ default: s(() => [
2638
+ Ne(v("div", Bn, [
2566
2639
  o(h, {
2567
- disabled: e(s).colors.one === "surface-light",
2568
- icon: `svg:${e(Rt)}`,
2640
+ disabled: e(i).colors.one === "surface-light",
2641
+ icon: `svg:${e(qt)}`,
2569
2642
  class: "ms-2 me-1",
2570
2643
  color: "inherit",
2571
2644
  density: "comfortable",
2572
2645
  title: "Revert to Default",
2573
2646
  variant: "text",
2574
- onClick: r
2647
+ onClick: l
2575
2648
  }, null, 8, ["disabled", "icon"])
2576
2649
  ], 512), [
2577
- [He, n.value]
2650
+ [qe, n.value]
2578
2651
  ])
2579
2652
  ]),
2580
2653
  _: 1
@@ -2583,11 +2656,11 @@ const Qe = te("settings", () => {
2583
2656
  ]),
2584
2657
  _: 1
2585
2658
  }, 8, ["color"]),
2586
- o(le, null, {
2587
- default: i(() => [
2588
- n.value ? (d(), v(to, {
2659
+ o(ue, null, {
2660
+ default: s(() => [
2661
+ n.value ? (d(), m(ro, {
2589
2662
  key: 0,
2590
- "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,
2591
2664
  elevation: "0",
2592
2665
  height: "250",
2593
2666
  rounded: "0",
@@ -2597,44 +2670,44 @@ const Qe = te("settings", () => {
2597
2670
  "hide-inputs": "",
2598
2671
  "hide-sliders": "",
2599
2672
  "show-swatches": "",
2600
- "onUpdate:modelValue": l[1] || (l[1] = (p) => e(s).colors.one = p)
2601
- }, 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)
2602
2675
  ]),
2603
2676
  _: 1
2604
2677
  })
2605
2678
  ], 64);
2606
2679
  };
2607
2680
  }
2608
- }), Ls = { class: "text-center mt-n9 mb-4" }, Is = /* @__PURE__ */ V({
2681
+ }), zn = { class: "text-center mt-n9 mb-4" }, En = /* @__PURE__ */ k({
2609
2682
  __name: "VoUserMenu",
2610
- setup(u) {
2611
- const t = J();
2612
- return (a, s) => {
2613
- const n = Cs, r = xs, c = bs, l = _s, h = mo;
2614
- return d(), v(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, {
2615
2688
  modelValue: e(t).isOpen,
2616
- "onUpdate:modelValue": s[0] || (s[0] = (p) => e(t).isOpen = p),
2689
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => e(t).isOpen = p),
2617
2690
  "close-on-click": !1,
2618
2691
  "close-on-content-click": !1,
2619
2692
  activator: "parent",
2620
2693
  location: "bottom end",
2621
2694
  eager: ""
2622
2695
  }, {
2623
- default: i(() => [
2624
- o(R, {
2696
+ default: s(() => [
2697
+ o(M, {
2625
2698
  rounded: "lg",
2626
2699
  width: "280",
2627
2700
  border: ""
2628
2701
  }, {
2629
- default: i(() => [
2630
- o(n),
2631
- _("div", Ls, [
2632
- o(r),
2633
- o(c)
2634
- ]),
2635
- o(H),
2702
+ default: s(() => [
2636
2703
  o(l),
2637
- o(H),
2704
+ v("div", zn, [
2705
+ o(a),
2706
+ o(r)
2707
+ ]),
2708
+ o(P),
2709
+ o(u),
2710
+ o(P),
2638
2711
  o(h)
2639
2712
  ]),
2640
2713
  _: 1
@@ -2644,38 +2717,38 @@ const Qe = te("settings", () => {
2644
2717
  }, 8, ["modelValue"]);
2645
2718
  };
2646
2719
  }
2647
- }), As = { key: 0 }, Ds = /* @__PURE__ */ V({
2720
+ }), Tn = { key: 0 }, Rn = /* @__PURE__ */ k({
2648
2721
  __name: "VoAuthBtn",
2649
2722
  props: {
2650
2723
  external: Boolean
2651
2724
  },
2652
- setup(u) {
2653
- const t = z(), a = J(), s = M(), { lgAndUp: n, mdAndDown: r } = _e(), c = L(() => a.isOpen || !t.user ? s.colors.one === "surface-light" ? "primary" : s.colors.one : "surface-light");
2654
- return (l, h) => {
2655
- const p = Is, g = ce, C = no;
2656
- return d(), v(C, {
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, {
2657
2730
  "offset-y": e(t).user ? 5 : 0
2658
2731
  }, {
2659
- default: i(() => [
2660
- o(g, Q({
2661
- [`${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)}`
2662
2735
  }, {
2663
- color: c.value,
2736
+ color: r.value,
2664
2737
  icon: e(t).user || e(t).isLoading,
2665
2738
  loading: e(t).isLoading,
2666
- rounded: e(r),
2739
+ rounded: e(a),
2667
2740
  variant: e(t).user ? "outlined" : "flat",
2668
2741
  class: "vo-auth-btn",
2669
2742
  size: "default",
2670
2743
  style: { transition: ".2s ease" },
2671
2744
  active: ""
2672
2745
  }), {
2673
- default: i(() => [
2674
- e(t).user ? $("", !0) : (d(), w("span", As, "Login")),
2675
- e(t).user ? (d(), v(pe, {
2746
+ default: s(() => [
2747
+ e(t).user ? x("", !0) : (d(), S("span", Tn, "Login")),
2748
+ e(t).user ? (d(), m(fe, {
2676
2749
  key: 1,
2677
- image: e(s).avatar || e(t).user.picture || ""
2678
- }, null, 8, ["image"])) : $("", !0),
2750
+ image: e(n).avatar || e(t).user.picture || ""
2751
+ }, null, 8, ["image"])) : x("", !0),
2679
2752
  o(p)
2680
2753
  ]),
2681
2754
  _: 1
@@ -2685,12 +2758,12 @@ const Qe = te("settings", () => {
2685
2758
  }, 8, ["offset-y"]);
2686
2759
  };
2687
2760
  }
2688
- }), Us = (u) => (st("data-v-86d0e524"), u = u(), nt(), u), Fs = ["href", "title"], Ns = {
2761
+ }), Hn = (c) => (ct("data-v-86d0e524"), c = c(), ut(), c), Mn = ["href", "title"], Pn = {
2689
2762
  class: "text-caption text-disabled",
2690
2763
  style: { position: "absolute", right: "16px" }
2691
- }, js = /* @__PURE__ */ Us(() => /* @__PURE__ */ _("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), Os = /* @__PURE__ */ V({
2764
+ }, Wn = /* @__PURE__ */ Hn(() => /* @__PURE__ */ v("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), qn = /* @__PURE__ */ k({
2692
2765
  __name: "VoFooter",
2693
- setup(u) {
2766
+ setup(c) {
2694
2767
  const t = [
2695
2768
  {
2696
2769
  title: "Vuetify Documentation",
@@ -2699,7 +2772,7 @@ const Qe = te("settings", () => {
2699
2772
  },
2700
2773
  {
2701
2774
  title: "Vuetify Support",
2702
- icon: `svg:${Mt}`,
2775
+ icon: `svg:${Yt}`,
2703
2776
  href: "https://support.vuetifyjs.com/"
2704
2777
  },
2705
2778
  {
@@ -2709,154 +2782,154 @@ const Qe = te("settings", () => {
2709
2782
  },
2710
2783
  {
2711
2784
  title: "Vuetify GitHub",
2712
- icon: `svg:${Ae}`,
2785
+ icon: `svg:${je}`,
2713
2786
  href: "https://github.com/vuetifyjs/vuetify"
2714
2787
  },
2715
2788
  {
2716
2789
  title: "Vuetify Discord",
2717
- icon: `svg:${Ie}`,
2790
+ icon: `svg:${Oe}`,
2718
2791
  href: "https://community.vuetifyjs.com/"
2719
2792
  },
2720
2793
  {
2721
2794
  title: "Vuetify Reddit",
2722
- icon: `svg:${Pt}`,
2795
+ icon: `svg:${Qt}`,
2723
2796
  href: "https://reddit.com/r/vuetifyjs"
2724
2797
  }
2725
2798
  ];
2726
- return (a, s) => (d(), v(so, {
2799
+ return (i, n) => (d(), m(co, {
2727
2800
  class: "vo-footer",
2728
2801
  height: "40"
2729
2802
  }, {
2730
- default: i(() => [
2731
- (d(), w(N, null, se(t, (n) => _("a", {
2732
- key: n.title,
2733
- href: n.href,
2734
- 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,
2735
2808
  class: "d-inline-block mx-2 social-link",
2736
2809
  rel: "noopener noreferrer",
2737
2810
  target: "_blank"
2738
2811
  }, [
2739
2812
  o(U, {
2740
- icon: n.icon,
2741
- size: n.icon === "$vuetify" ? 24 : 16
2813
+ icon: l.icon,
2814
+ size: l.icon === "$vuetify" ? 24 : 16
2742
2815
  }, null, 8, ["icon", "size"])
2743
- ], 8, Fs)), 64)),
2744
- _("div", Ns, [
2745
- j(" © 2016-" + I((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
2746
- js
2816
+ ], 8, Mn)), 64)),
2817
+ v("div", Pn, [
2818
+ j(" © 2016-" + D((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
2819
+ Wn
2747
2820
  ])
2748
2821
  ]),
2749
2822
  _: 1
2750
2823
  }));
2751
2824
  }
2752
2825
  });
2753
- const Bs = (u, t) => {
2754
- const a = u.__vccOpts || u;
2755
- for (const [s, n] of t)
2756
- a[s] = n;
2757
- return a;
2758
- }, zs = /* @__PURE__ */ Bs(Os, [["__scopeId", "data-v-86d0e524"]]), xn = te("bins", () => {
2759
- const u = z(), t = be(), a = ee([]), s = ee(), n = F(!1), r = F(-1), c = L(() => !u.user || !s.value ? !1 : u.user.id === s.value.owner.id), l = L(() => a.value.filter((b) => b.favorite)), h = L(() => a.value.filter((b) => b.pinned));
2760
- W(s, () => {
2761
- window.clearTimeout(r.value), r.value = window.setTimeout(() => {
2762
- !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);
2763
2836
  }, 100);
2764
2837
  }, { deep: !0 });
2765
2838
  async function p() {
2766
2839
  try {
2767
- n.value = !0;
2768
- const b = await t.get("/one/bins");
2769
- a.value = b.bins;
2840
+ l.value = !0;
2841
+ const y = await t.get("/one/bins");
2842
+ i.value = y.bins;
2770
2843
  } catch {
2771
2844
  } finally {
2772
- n.value = !1;
2845
+ l.value = !1;
2773
2846
  }
2774
- return a.value;
2847
+ return i.value;
2775
2848
  }
2776
- async function g(b) {
2849
+ async function g(y) {
2777
2850
  try {
2778
- n.value = !0, await t.delete(`/one/bins/${b}`), a.value = a.value.filter((x) => x.id !== b);
2851
+ l.value = !0, await t.delete(`/one/bins/${y}`), i.value = i.value.filter(($) => $.id !== y);
2779
2852
  } catch {
2780
2853
  } finally {
2781
- n.value = !1;
2854
+ l.value = !1;
2782
2855
  }
2783
2856
  return !0;
2784
2857
  }
2785
- async function C(b) {
2858
+ async function C(y) {
2786
2859
  try {
2787
- n.value = !0;
2788
- const x = await t.post("/one/bins", { bin: b });
2789
- return a.value.push(x.bin), s.value = x.bin, x;
2860
+ l.value = !0;
2861
+ const $ = await t.post("/one/bins", { bin: y });
2862
+ return i.value.push($.bin), n.value = $.bin, $;
2790
2863
  } catch {
2791
2864
  } finally {
2792
- n.value = !1;
2865
+ l.value = !1;
2793
2866
  }
2794
- return { bin: b };
2867
+ return { bin: y };
2795
2868
  }
2796
- async function m(b, x) {
2869
+ async function _(y, $) {
2797
2870
  try {
2798
- n.value = !0;
2799
- const A = await t.post(`/one/bins/${x}`, { bin: b }), O = a.value.findIndex((S) => S.id === x);
2800
- a.value.splice(O, 1, A.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);
2801
2874
  } catch {
2802
2875
  } finally {
2803
- n.value = !1;
2876
+ l.value = !1;
2804
2877
  }
2805
- return { bin: b };
2878
+ return { bin: y };
2806
2879
  }
2807
- async function k(b, x) {
2880
+ async function w(y, $) {
2808
2881
  try {
2809
- n.value = !0;
2810
- const A = x ? await m(b, x) : await C(b);
2811
- s.value = A.bin;
2882
+ l.value = !0;
2883
+ const B = $ ? await _(y, $) : await C(y);
2884
+ n.value = B.bin;
2812
2885
  } catch {
2813
2886
  } finally {
2814
- n.value = !1;
2887
+ l.value = !1;
2815
2888
  }
2816
- return { bin: b };
2889
+ return { bin: y };
2817
2890
  }
2818
- async function D(b) {
2891
+ async function b(y) {
2819
2892
  try {
2820
- n.value = !0;
2821
- const x = await t.get(`/one/bins/${b}`);
2822
- s.value = x.bin;
2893
+ l.value = !0;
2894
+ const $ = await t.get(`/one/bins/${y}`);
2895
+ n.value = $.bin;
2823
2896
  } catch {
2824
2897
  } finally {
2825
- n.value = !1;
2898
+ l.value = !1;
2826
2899
  }
2827
- return { bin: s.value };
2900
+ return { bin: n.value };
2828
2901
  }
2829
2902
  return {
2830
- isLoading: n,
2831
- isOwner: c,
2903
+ isLoading: l,
2904
+ isOwner: r,
2832
2905
  pinned: h,
2833
- favorites: l,
2834
- all: a,
2906
+ favorites: u,
2907
+ all: i,
2835
2908
  create: C,
2836
2909
  delete: g,
2837
- current: s,
2838
- find: D,
2910
+ current: n,
2911
+ find: b,
2839
2912
  get: p,
2840
- update: m,
2841
- updateOrCreate: k
2913
+ update: _,
2914
+ updateOrCreate: w
2842
2915
  };
2843
2916
  });
2844
- function wn() {
2845
- function u(t) {
2846
- t.component("VoAuthBtn", Ds), t.component("VoFooter", zs);
2917
+ function Os() {
2918
+ function c(t) {
2919
+ t.component("VoAuthBtn", Rn), t.component("VoFooter", Yn);
2847
2920
  }
2848
- return { install: u };
2921
+ return { install: c };
2849
2922
  }
2850
- function Sn(u) {
2851
- u.store.url = "http://localhost:8096";
2923
+ function js(c) {
2924
+ c.store.url = "https://api.vuetifyjs.com";
2852
2925
  }
2853
2926
  export {
2854
- wn as createOne,
2855
- Sn as one,
2856
- z as useAuthStore,
2857
- xn as useBinsStore,
2858
- be as useHttpStore,
2859
- J as useOneStore,
2860
- Qe as useSettingsStore,
2861
- M 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
2862
2935
  };