@vuetify/one 1.9.1 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1173 -1167
- package/dist/style.css +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -1,46 +1,48 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { ref as O, defineComponent as k, openBlock as u, createBlock as h, unref as t, reactive as Dt, watch as z, toRefs as Ut, shallowRef as A, computed as x, createSlots as R, withCtx as r, createElementVNode as V, toDisplayString as S, createVNode as i, createTextVNode as N, renderSlot as B, normalizeStyle as at, createCommentVNode as C, withModifiers as Ze, mergeModels as Ot, useModel as pe, createElementBlock as I, Fragment as T, onMounted as Ue, nextTick as be, renderList as K, mergeProps as E, withDirectives as Ve, vShow as Oe, isRef as se, normalizeClass as Bt, resolveComponent as Nt, onBeforeMount as Ge, onBeforeUnmount as Tt, pushScopeId as Ft, popScopeId as Mt } from "vue";
|
|
2
|
+
import { defineStore as q } from "pinia";
|
|
3
|
+
import { VSnackbarQueue as zt } from "vuetify/lib/labs/VSnackbarQueue/index.mjs";
|
|
4
|
+
import { mdiStorefront as jt, mdiSync as Pt, mdiSyncOff as Ht, mdiLogoutVariant as Rt, mdiFullscreenExit as Et, mdiFullscreen as Wt, mdiCheck as Be, mdiHome as qt, mdiTextBox as Zt, mdiSelect as Gt, mdiSpaceInvaders as it, mdiImageFilterHdr as rt, mdiTransmissionTower as lt, mdiRocketLaunchOutline as ct, mdiWhiteBalanceSunny as Qt, mdiWeatherNight as Yt, mdiDesktopTowerMonitor as Jt, mdiContrastCircle as Xt, mdiCog as Kt, mdiCogOutline as eo, mdiFileDocument as to, mdiCreditCardSettingsOutline as oo, mdiRocketOutline as no, mdiCheckCircleOutline as De, mdiCreditCard as so, mdiReload as ao, mdiPlaylistCheck as io, mdiCreditCardOutline as ro, mdiMedal as lo, mdiOpenInNew as Ne, mdiHandHeart as co, mdiHandHeartOutline as uo, mdiCloudDownload as po, mdiTrayArrowDown as st, mdiEmailOpenOutline as ut, mdiEmailVariant as dt, mdiBell as mo, mdiInboxOutline as fo, mdiInboxFullOutline as vo, mdiBillboard as _o, mdiBellOutline as ho, mdiViewDashboardOutline as go, mdiCrown as yo, mdiArrowULeftBottom as bo, mdiLogin as Vo, mdiShieldStarOutline as ko } from "@mdi/js";
|
|
5
|
+
import { useRouter as Qe, useRoute as $o } from "vue-router";
|
|
6
|
+
import { merge as Re } from "lodash-es";
|
|
7
|
+
import { VListItem as me, VList as ae, VListSubheader as wo, VListItemTitle as pt, VListItemSubtitle as xo } from "vuetify/lib/components/VList/index.mjs";
|
|
6
8
|
import { VAvatar as ee } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
7
|
-
import { VCard as
|
|
8
|
-
import { VDialog as
|
|
9
|
+
import { VCard as W, VCardTitle as Co, VCardSubtitle as So, VCardText as ue } from "vuetify/lib/components/VCard/index.mjs";
|
|
10
|
+
import { VDialog as mt } from "vuetify/lib/components/VDialog/index.mjs";
|
|
9
11
|
import { VBadge as Ye } from "vuetify/lib/components/VBadge/index.mjs";
|
|
10
|
-
import { VBtn as
|
|
11
|
-
import { VProgressCircular as
|
|
12
|
+
import { VBtn as Z } from "vuetify/lib/components/VBtn/index.mjs";
|
|
13
|
+
import { VProgressCircular as Lo } from "vuetify/lib/components/VProgressCircular/index.mjs";
|
|
12
14
|
import { VSheet as Je } from "vuetify/lib/components/VSheet/index.mjs";
|
|
13
|
-
import { VSwitch as
|
|
14
|
-
import { VFadeTransition as Te, VExpandTransition as fe, VExpandXTransition as
|
|
15
|
-
import { useDisplay as ve, useTheme as
|
|
16
|
-
import { VDivider as
|
|
17
|
-
import { VIcon as
|
|
18
|
-
import { VLabel as
|
|
15
|
+
import { VSwitch as ft } from "vuetify/lib/components/VSwitch/index.mjs";
|
|
16
|
+
import { VFadeTransition as Te, VExpandTransition as fe, VExpandXTransition as Io } from "vuetify/lib/components/transitions/index.mjs";
|
|
17
|
+
import { useDisplay as ve, useTheme as Fe, useDate as ke } from "vuetify";
|
|
18
|
+
import { VDivider as Q } from "vuetify/lib/components/VDivider/index.mjs";
|
|
19
|
+
import { VIcon as U } from "vuetify/lib/components/VIcon/index.mjs";
|
|
20
|
+
import { VLabel as We } from "vuetify/lib/components/VLabel/index.mjs";
|
|
19
21
|
import { VChip as X } from "vuetify/lib/components/VChip/index.mjs";
|
|
20
|
-
import { VChipGroup as
|
|
21
|
-
import { VSelect as
|
|
22
|
-
import { VRow as
|
|
23
|
-
import { VHover as
|
|
22
|
+
import { VChipGroup as Ao } from "vuetify/lib/components/VChipGroup/index.mjs";
|
|
23
|
+
import { VSelect as Do } from "vuetify/lib/components/VSelect/index.mjs";
|
|
24
|
+
import { VRow as $e, VCol as de } from "vuetify/lib/components/VGrid/index.mjs";
|
|
25
|
+
import { VHover as Me } from "vuetify/lib/components/VHover/index.mjs";
|
|
24
26
|
import { VImg as te } from "vuetify/lib/components/VImg/index.mjs";
|
|
25
|
-
import { VItemGroup as
|
|
26
|
-
import { VLayout as
|
|
27
|
-
import { VMain as
|
|
28
|
-
import { VDataTableVirtual as
|
|
27
|
+
import { VItemGroup as vt, VItem as qe } from "vuetify/lib/components/VItemGroup/index.mjs";
|
|
28
|
+
import { VLayout as we } from "vuetify/lib/components/VLayout/index.mjs";
|
|
29
|
+
import { VMain as xe } from "vuetify/lib/components/VMain/index.mjs";
|
|
30
|
+
import { VDataTableVirtual as _t } from "vuetify/lib/components/VDataTable/index.mjs";
|
|
29
31
|
import { VSkeletonLoader as ye } from "vuetify/lib/components/VSkeletonLoader/index.mjs";
|
|
30
|
-
import { VWindow as
|
|
31
|
-
import { VTimelineItem as
|
|
32
|
+
import { VWindow as ht, VWindowItem as ge } from "vuetify/lib/components/VWindow/index.mjs";
|
|
33
|
+
import { VTimelineItem as Uo, VTimeline as Oo } from "vuetify/lib/components/VTimeline/index.mjs";
|
|
32
34
|
import { VEmptyState as Xe } from "vuetify/lib/components/VEmptyState/index.mjs";
|
|
33
35
|
import { VTooltip as J } from "vuetify/lib/components/VTooltip/index.mjs";
|
|
34
|
-
import { VResponsive as
|
|
35
|
-
import { VNavigationDrawer as
|
|
36
|
-
import { Ripple as
|
|
37
|
-
import { VColorPicker as
|
|
38
|
-
import { VMenu as
|
|
39
|
-
import { VAppBar as
|
|
40
|
-
import { VLazy as
|
|
41
|
-
import { VFooter as
|
|
42
|
-
const
|
|
43
|
-
const c =
|
|
36
|
+
import { VResponsive as Bo } from "vuetify/lib/components/VResponsive/index.mjs";
|
|
37
|
+
import { VNavigationDrawer as No } from "vuetify/lib/components/VNavigationDrawer/index.mjs";
|
|
38
|
+
import { Ripple as To } from "vuetify/lib/directives/index.mjs";
|
|
39
|
+
import { VColorPicker as Fo } from "vuetify/lib/components/VColorPicker/index.mjs";
|
|
40
|
+
import { VMenu as Mo } from "vuetify/lib/components/VMenu/index.mjs";
|
|
41
|
+
import { VAppBar as gt } from "vuetify/lib/components/VAppBar/index.mjs";
|
|
42
|
+
import { VLazy as zo } from "vuetify/lib/components/VLazy/index.mjs";
|
|
43
|
+
import { VFooter as jo } from "vuetify/lib/components/VFooter/index.mjs";
|
|
44
|
+
const Po = q("Queue", () => {
|
|
45
|
+
const c = O([]);
|
|
44
46
|
function e(n) {
|
|
45
47
|
const o = typeof n == "string" ? { text: n } : n;
|
|
46
48
|
c.value.push(o);
|
|
@@ -49,23 +51,18 @@ const no = W("Queue", () => {
|
|
|
49
51
|
queue: c,
|
|
50
52
|
show: e
|
|
51
53
|
};
|
|
52
|
-
}),
|
|
54
|
+
}), Ho = /* @__PURE__ */ k({
|
|
53
55
|
__name: "VoSnackbarQueue",
|
|
54
56
|
setup(c) {
|
|
55
|
-
const e =
|
|
56
|
-
return (n, o) => {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
location: "bottom end"
|
|
63
|
-
}, null, 8, ["modelValue"]);
|
|
64
|
-
};
|
|
57
|
+
const e = Po();
|
|
58
|
+
return (n, o) => (u(), h(zt, {
|
|
59
|
+
modelValue: t(e).queue,
|
|
60
|
+
"onUpdate:modelValue": o[0] || (o[0] = (s) => t(e).queue = s),
|
|
61
|
+
closable: "",
|
|
62
|
+
location: "bottom end"
|
|
63
|
+
}, null, 8, ["modelValue"]));
|
|
65
64
|
}
|
|
66
|
-
})
|
|
67
|
-
var ao = "M20 10.5C20 14.09 17.09 17 13.5 17H7.83L10.92 20.09L9.5 21.5L4 16L9.5 10.5L10.91 11.91L7.83 15H13.5C16 15 18 13 18 10.5S16 6 13.5 6H6V4H13.5C17.09 4 20 6.91 20 10.5Z", io = "M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21", ro = "M10 21H14C14 22.1 13.1 23 12 23S10 22.1 10 21M21 19V20H3V19L5 17V11C5 7.9 7 5.2 10 4.3V4C10 2.9 10.9 2 12 2S14 2.9 14 4V4.3C17 5.2 19 7.9 19 11V17L21 19M17 11C17 8.2 14.8 6 12 6S7 8.2 7 11V18H17V11Z", lo = "M20 22H18V17H20M6 22H4V17H6M23 4V13A2 2 0 0 1 21 15H3A2 2 0 0 1 1 13V4A2 2 0 0 1 3 2H21A2 2 0 0 1 23 4M21 4H3V13H21M20 6H15V8H20M18 9H15V11H18M14 11H4L6.73 7.36L8.73 10.09L9.46 9.55L8.2 7.82L9.91 5.55Z", Be = "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z", Ae = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z", co = "M6.5 20Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.83 7.13 7.39 5.75 8.95 4.38 11 4.08V12.15L9.4 10.6L8 12L12 16L16 12L14.6 10.6L13 12.15V4.08Q15.58 4.43 17.29 6.39 19 8.35 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20Z", uo = "M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z", po = "M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M10,22C9.75,22 9.54,21.82 9.5,21.58L9.13,18.93C8.5,18.68 7.96,18.34 7.44,17.94L4.95,18.95C4.73,19.03 4.46,18.95 4.34,18.73L2.34,15.27C2.21,15.05 2.27,14.78 2.46,14.63L4.57,12.97L4.5,12L4.57,11L2.46,9.37C2.27,9.22 2.21,8.95 2.34,8.73L4.34,5.27C4.46,5.05 4.73,4.96 4.95,5.05L7.44,6.05C7.96,5.66 8.5,5.32 9.13,5.07L9.5,2.42C9.54,2.18 9.75,2 10,2H14C14.25,2 14.46,2.18 14.5,2.42L14.87,5.07C15.5,5.32 16.04,5.66 16.56,6.05L19.05,5.05C19.27,4.96 19.54,5.05 19.66,5.27L21.66,8.73C21.79,8.95 21.73,9.22 21.54,9.37L19.43,11L19.5,12L19.43,13L21.54,14.63C21.73,14.78 21.79,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.04 19.05,18.95L16.56,17.95C16.04,18.34 15.5,18.68 14.87,18.93L14.5,21.58C14.46,21.82 14.25,22 14,22H10M11.25,4L10.88,6.61C9.68,6.86 8.62,7.5 7.85,8.39L5.44,7.35L4.69,8.65L6.8,10.2C6.4,11.37 6.4,12.64 6.8,13.8L4.68,15.36L5.43,16.66L7.86,15.62C8.63,16.5 9.68,17.14 10.87,17.38L11.24,20H12.76L13.13,17.39C14.32,17.14 15.37,16.5 16.14,15.62L18.57,16.66L19.32,15.36L17.2,13.81C17.6,12.64 17.6,11.37 17.2,10.2L19.31,8.65L18.56,7.35L16.15,8.39C15.38,7.5 14.32,6.86 13.12,6.62L12.75,4H11.25Z", mo = "M12,20C9.79,20 7.79,19.1 6.34,17.66L17.66,6.34C19.1,7.79 20,9.79 20,12A8,8 0 0,1 12,20M6,8H8V6H9.5V8H11.5V9.5H9.5V11.5H8V9.5H6M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,16H17V14.5H12V16Z", fo = "M20 4H4A2 2 0 0 0 2 6V18A2 2 0 0 0 4 20H20A2 2 0 0 0 22 18V6A2 2 0 0 0 20 4M20 11H4V8H20Z", vo = "M20,8H4V6H20M20,18H4V12H20M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z", _o = "M20,8H4V6H20M20,18H4V12H20M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4M7,22H9V24H7V22M11,22H13V24H11V22M15,22H17V24H15V22Z", ho = "M5 16L3 5L8.5 10L12 4L15.5 10L21 5L19 16H5M19 19C19 19.6 18.6 20 18 20H6C5.4 20 5 19.6 5 19V18H19V19Z", go = "M22,18H17A1,1 0 0,1 16,17V7A1,1 0 0,1 17,6H22A1,1 0 0,1 23,7V17A1,1 0 0,1 22,18M22,8H17V9H22V8M22,10H17V11H22V10M9,15V17H10V18H5V17H6V15H2A1,1 0 0,1 1,14V7A1,1 0 0,1 2,6H13A1,1 0 0,1 14,7V14A1,1 0 0,1 13,15H9M12,8H3V13H12V8Z", mt = "M21.03 6.29L12 .64L2.97 6.29C2.39 6.64 2 7.27 2 8V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 7.27 21.61 6.64 21.03 6.29M20 18H4V10L12 15L20 10V18M12 13L4 8L12 3L20 8L12 13Z", ft = "M12,13L2,6.76V6C2,4.89 2.89,4 4,4H20A2,2 0 0,1 22,6V6.75L12,13M22,18A2,2 0 0,1 20,20H4C2.89,20 2,19.1 2,18V9.11L4,10.36V18H20V10.36L22,9.11V18Z", yo = "M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z", Vo = "M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z", bo = "M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z", Co = "M20 17Q20.86 17 21.45 17.6T22.03 19L14 22L7 20V11H8.95L16.22 13.69Q17 14 17 14.81 17 15.28 16.66 15.63T15.8 16H13L11.25 15.33L10.92 16.27L13 17H20M16 3.23Q17.06 2 18.7 2 20.06 2 21 3T22 5.3Q22 6.33 21 7.76T19.03 10.15 16 13Q13.92 11.11 12.94 10.15T10.97 7.76 10 5.3Q10 3.94 10.97 3T13.31 2Q14.91 2 16 3.23M.984 11H5V22H.984V11Z", Lo = "M16 3.23C16.71 2.41 17.61 2 18.7 2C19.61 2 20.37 2.33 21 3C21.63 3.67 21.96 4.43 22 5.3C22 6 21.67 6.81 21 7.76S19.68 9.5 19.03 10.15C18.38 10.79 17.37 11.74 16 13C14.61 11.74 13.59 10.79 12.94 10.15S11.63 8.71 10.97 7.76C10.31 6.81 10 6 10 5.3C10 4.39 10.32 3.63 10.97 3C11.62 2.37 12.4 2.04 13.31 2C14.38 2 15.27 2.41 16 3.23M22 19V20L14 22.5L7 20.56V22H1V11H8.97L15.13 13.3C16.25 13.72 17 14.8 17 16H19C20.66 16 22 17.34 22 19M5 20V13H3V20H5M19.9 18.57C19.74 18.24 19.39 18 19 18H13.65C13.11 18 12.58 17.92 12.07 17.75L9.69 16.96L10.32 15.06L12.7 15.85C13 15.95 15 16 15 16C15 15.63 14.77 15.3 14.43 15.17L8.61 13H7V18.5L13.97 20.41L19.9 18.57Z", Ho = "M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z", vt = "M14,6L10.25,11L13.1,14.8L11.5,16C9.81,13.75 7,10 7,10L1,18H23L14,6Z", ko = "M19 3C20.1 3 21 3.9 21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19M5 19H9.4C8.79 18.47 8.35 17.78 8.13 17H5V19M19 19V17H15.87C15.65 17.78 15.21 18.47 14.6 19H19M19 15V5H5V15H10V16C10 18.67 14 18.67 14 16V15H19M7 7H17V9H7V7M17 11V13H7V11H17Z", $o = "M19 3H5A2 2 0 0 0 3 5V19A2 2 0 0 0 5 21H19A2 2 0 0 0 21 19V5A2 2 0 0 0 19 3M5 19V17H8.13A4.13 4.13 0 0 0 9.4 19M19 19H14.6A4.13 4.13 0 0 0 15.87 17H19M19 15H14V16A2 2 0 0 1 10 16V15H5V5H19Z", wo = "M11 7L9.6 8.4L12.2 11H2V13H12.2L9.6 15.6L11 17L16 12L11 7M20 19H12V21H20C21.1 21 22 20.1 22 19V5C22 3.9 21.1 3 20 3H12V5H20V19Z", xo = "M14.08,15.59L16.67,13H7V11H16.67L14.08,8.41L15.5,7L20.5,12L15.5,17L14.08,15.59M19,3A2,2 0 0,1 21,5V9.67L19,7.67V5H5V19H19V16.33L21,14.33V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H19Z", Mo = "M20,2H4V4L9.81,8.36C6.14,9.57 4.14,13.53 5.35,17.2C6.56,20.87 10.5,22.87 14.19,21.66C17.86,20.45 19.86,16.5 18.65,12.82C17.95,10.71 16.3,9.05 14.19,8.36L20,4V2M14.94,19.5L12,17.78L9.06,19.5L9.84,16.17L7.25,13.93L10.66,13.64L12,10.5L13.34,13.64L16.75,13.93L14.16,16.17L14.94,19.5Z", Ne = "M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z", So = "M14 10H3V12H14V10M14 6H3V8H14V6M3 16H10V14H3V16M21.5 11.5L23 13L16 20L11.5 15.5L13 14L16 17L21.5 11.5Z", Ao = "M2 12C2 16.97 6.03 21 11 21C13.39 21 15.68 20.06 17.4 18.4L15.9 16.9C14.63 18.25 12.86 19 11 19C4.76 19 1.64 11.46 6.05 7.05C10.46 2.64 18 5.77 18 12H15L19 16H19.1L23 12H20C20 7.03 15.97 3 11 3C6.03 3 2 7.03 2 12Z", _t = "M13.13 22.19L11.5 18.36C13.07 17.78 14.54 17 15.9 16.09L13.13 22.19M5.64 12.5L1.81 10.87L7.91 8.1C7 9.46 6.22 10.93 5.64 12.5M19.22 4C19.5 4 19.75 4 19.96 4.05C20.13 5.44 19.94 8.3 16.66 11.58C14.96 13.29 12.93 14.6 10.65 15.47L8.5 13.37C9.42 11.06 10.73 9.03 12.42 7.34C15.18 4.58 17.64 4 19.22 4M19.22 2C17.24 2 14.24 2.69 11 5.93C8.81 8.12 7.5 10.53 6.65 12.64C6.37 13.39 6.56 14.21 7.11 14.77L9.24 16.89C9.62 17.27 10.13 17.5 10.66 17.5C10.89 17.5 11.13 17.44 11.36 17.35C13.5 16.53 15.88 15.19 18.07 13C23.73 7.34 21.61 2.39 21.61 2.39S20.7 2 19.22 2M14.54 9.46C13.76 8.68 13.76 7.41 14.54 6.63S16.59 5.85 17.37 6.63C18.14 7.41 18.15 8.68 17.37 9.46C16.59 10.24 15.32 10.24 14.54 9.46M8.88 16.53L7.47 15.12L8.88 16.53M6.24 22L9.88 18.36C9.54 18.27 9.21 18.12 8.91 17.91L4.83 22H6.24M2 22H3.41L8.18 17.24L6.76 15.83L2 20.59V22M2 19.17L6.09 15.09C5.88 14.79 5.73 14.47 5.64 14.12L2 17.76V19.17Z", Io = "M12 2C12 2 7 4 7 12C7 15.1 7.76 17.75 8.67 19.83C9 20.55 9.71 21 10.5 21H13.5C14.29 21 15 20.55 15.33 19.83C16.25 17.75 17 15.1 17 12C17 4 12 2 12 2M13.5 19H10.5C9.5 16.76 9 14.41 9 12C9 7.36 10.9 5.2 12 4.33C13.1 5.2 15 7.36 15 12C15 14.41 14.5 16.76 13.5 19M20 22L16.14 20.45C16.84 18.92 17.34 17.34 17.65 15.73M7.86 20.45L4 22L6.35 15.73C6.66 17.34 7.16 18.92 7.86 20.45M12 12C10.9 12 10 11.1 10 10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 11.1 13.1 12 12 12Z", Do = "M4,3H5V5H3V4A1,1 0 0,1 4,3M20,3A1,1 0 0,1 21,4V5H19V3H20M15,5V3H17V5H15M11,5V3H13V5H11M7,5V3H9V5H7M21,20A1,1 0 0,1 20,21H19V19H21V20M15,21V19H17V21H15M11,21V19H13V21H11M7,21V19H9V21H7M4,21A1,1 0 0,1 3,20V19H5V21H4M3,15H5V17H3V15M21,15V17H19V15H21M3,11H5V13H3V11M21,11V13H19V11H21M3,7H5V9H3V7M21,7V9H19V7H21Z", To = "M21 11C21 16.55 17.16 21.74 12 23C6.84 21.74 3 16.55 3 11V5L12 1L21 5V11M12 21C15.75 20 19 15.54 19 11.22V6.3L12 3.18L5 6.3V11.22C5 15.54 8.25 20 12 21M15.05 16L11.97 14.15L8.9 16L9.71 12.5L7 10.16L10.58 9.85L11.97 6.55L13.37 9.84L16.95 10.15L14.23 12.5L15.05 16", ht = "M7,6H5V4H7V6M17,6H19V4H17V6M23,12V18H21V14H19V18H17V16H7V18H5V14H3V18H1V12H3V10H5V8H7V6H9V8H15V6H17V8H19V10H21V12H23M15,10V12H17V10H15M7,12H9V10H7V12M11,18H7V20H11V18M17,18H13V20H17V18Z", Oo = "M5.06 3C4.63 3 4.22 3.14 3.84 3.42C3.46 3.7 3.24 4.06 3.14 4.5L2.11 8.91C1.86 10 2.06 10.92 2.69 11.73C2.81 11.85 2.93 11.97 3.04 12.07C3.63 12.64 4.28 13 5.22 13C6.16 13 6.91 12.59 7.47 12.05C8.1 12.67 8.86 13 9.8 13C10.64 13 11.44 12.63 12 12.07C12.68 12.7 13.45 13 14.3 13C15.17 13 15.91 12.67 16.54 12.05C17.11 12.62 17.86 13 18.81 13C19.76 13 20.43 12.65 21 12.06C21.09 11.97 21.18 11.87 21.28 11.77C21.94 10.95 22.14 10 21.89 8.91L20.86 4.5C20.73 4.06 20.5 3.7 20.13 3.42C19.77 3.14 19.38 3 18.94 3M18.89 4.97L19.97 9.38C20.06 9.81 19.97 10.2 19.69 10.55C19.44 10.86 19.13 11 18.75 11C18.44 11 18.17 10.9 17.95 10.66C17.73 10.43 17.61 10.16 17.58 9.84L16.97 5M5.06 5H7.03L6.42 9.84C6.3 10.63 5.91 11 5.25 11C4.84 11 4.53 10.86 4.31 10.55C4.03 10.2 3.94 9.81 4.03 9.38M9.05 5H11V9.7C11 10.05 10.89 10.35 10.64 10.62C10.39 10.88 10.08 11 9.7 11C9.36 11 9.07 10.88 8.84 10.59C8.61 10.3 8.5 10 8.5 9.66V9.5M13 5H14.95L15.5 9.5C15.58 9.92 15.5 10.27 15.21 10.57C14.95 10.87 14.61 11 14.2 11C13.89 11 13.61 10.88 13.36 10.62C13.11 10.35 13 10.05 13 9.7M3 14.03V19C3 20.11 3.89 21 5 21C9.67 21 14.33 21 19 21C20.1 21 21 20.11 21 19V14.05C20.45 14.63 19.75 14.96 19 15C18 15.03 17.25 14.74 16.54 14.05C15.94 14.65 15.14 15 14.3 15C13.4 15 12.6 14.64 12 14.07C11.43 14.64 10.65 15 9.78 15C8.87 15 8.07 14.65 7.47 14.05C6.89 14.64 6.1 15 5.23 15C4.33 15 3.66 14.65 3 14.03Z", Uo = "M12,18A6,6 0 0,1 6,12C6,11 6.25,10.03 6.7,9.2L5.24,7.74C4.46,8.97 4,10.43 4,12A8,8 0 0,0 12,20V23L16,19L12,15M12,4V1L8,5L12,9V6A6,6 0 0,1 18,12C18,13 17.75,13.97 17.3,14.8L18.76,16.26C19.54,15.03 20,13.57 20,12A8,8 0 0,0 12,4Z", Bo = "M20,4H14V10L16.24,7.76C17.32,8.85 18,10.34 18,12C18,13 17.75,13.94 17.32,14.77L18.78,16.23C19.55,15 20,13.56 20,12C20,9.79 19.09,7.8 17.64,6.36L20,4M2.86,5.41L5.22,7.77C4.45,9 4,10.44 4,12C4,14.21 4.91,16.2 6.36,17.64L4,20H10V14L7.76,16.24C6.68,15.15 6,13.66 6,12C6,11 6.25,10.06 6.68,9.23L14.76,17.31C14.5,17.44 14.26,17.56 14,17.65V19.74C14.79,19.53 15.54,19.2 16.22,18.78L18.58,21.14L19.85,19.87L4.14,4.14L2.86,5.41M10,6.35V4.26C9.2,4.47 8.45,4.8 7.77,5.22L9.23,6.68C9.5,6.56 9.73,6.44 10,6.35Z", No = "M14,17H7V15H14M17,13H7V11H17M17,9H7V7H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z", gt = "M8.28,5.45L6.5,4.55L7.76,2H16.23L17.5,4.55L15.72,5.44L15,4H9L8.28,5.45M18.62,8H14.09L13.3,5H10.7L9.91,8H5.38L4.1,10.55L5.89,11.44L6.62,10H17.38L18.1,11.45L19.89,10.56L18.62,8M17.77,22H15.7L15.46,21.1L12,15.9L8.53,21.1L8.3,22H6.23L9.12,11H11.19L10.83,12.35L12,14.1L13.16,12.35L12.81,11H14.88L17.77,22M11.4,15L10.5,13.65L9.32,18.13L11.4,15M14.68,18.12L13.5,13.64L12.6,15L14.68,18.12Z", nt = "M2 12H4V17H20V12H22V17C22 18.11 21.11 19 20 19H4C2.9 19 2 18.11 2 17V12M12 15L17.55 9.54L16.13 8.13L13 11.25V2H11V11.25L7.88 8.13L6.46 9.55L12 15Z", Fo = "M19,5V7H15V5H19M9,5V11H5V5H9M19,13V19H15V13H19M9,17V19H5V17H9M21,3H13V9H21V3M11,3H3V13H11V3M21,11H13V21H21V11M11,15H3V21H11V15Z", Zo = "M17.75,4.09L15.22,6.03L16.13,9.09L13.5,7.28L10.87,9.09L11.78,6.03L9.25,4.09L12.44,4L13.5,1L14.56,4L17.75,4.09M21.25,11L19.61,12.25L20.2,14.23L18.5,13.06L16.8,14.23L17.39,12.25L15.75,11L17.81,10.95L18.5,9L19.19,10.95L21.25,11M18.97,15.95C19.8,15.87 20.69,17.05 20.16,17.8C19.84,18.25 19.5,18.67 19.08,19.07C15.17,23 8.84,23 4.94,19.07C1.03,15.17 1.03,8.83 4.94,4.93C5.34,4.53 5.76,4.17 6.21,3.85C6.96,3.32 8.14,4.21 8.06,5.04C7.79,7.9 8.75,10.87 10.95,13.06C13.14,15.26 16.1,16.22 18.97,15.95M17.33,17.97C14.5,17.81 11.7,16.64 9.53,14.5C7.36,12.31 6.2,9.5 6.04,6.68C3.23,9.82 3.34,14.64 6.35,17.66C9.37,20.67 14.19,20.78 17.33,17.97Z", zo = "M3.55 19.09L4.96 20.5L6.76 18.71L5.34 17.29M12 6C8.69 6 6 8.69 6 12S8.69 18 12 18 18 15.31 18 12C18 8.68 15.31 6 12 6M20 13H23V11H20M17.24 18.71L19.04 20.5L20.45 19.09L18.66 17.29M20.45 5L19.04 3.6L17.24 5.39L18.66 6.81M13 1H11V4H13M6.76 5.39L4.96 3.6L3.55 5L5.34 6.81L6.76 5.39M1 13H4V11H1M13 20H11V23H13";
|
|
68
|
-
const oe = W("http", {
|
|
65
|
+
}), oe = q("http", {
|
|
69
66
|
state: () => ({
|
|
70
67
|
url: ""
|
|
71
68
|
}),
|
|
@@ -104,7 +101,7 @@ const oe = W("http", {
|
|
|
104
101
|
});
|
|
105
102
|
}
|
|
106
103
|
}
|
|
107
|
-
}),
|
|
104
|
+
}), Ee = typeof window < "u", Ae = {
|
|
108
105
|
v: 5,
|
|
109
106
|
api: "link-only",
|
|
110
107
|
avatar: "",
|
|
@@ -143,34 +140,34 @@ const oe = W("http", {
|
|
|
143
140
|
jobs: null
|
|
144
141
|
}
|
|
145
142
|
}
|
|
146
|
-
},
|
|
147
|
-
const c =
|
|
148
|
-
|
|
143
|
+
}, F = q("user", () => {
|
|
144
|
+
const c = Dt(Re({}, Ae));
|
|
145
|
+
z(c, n);
|
|
149
146
|
function e() {
|
|
150
|
-
if (!
|
|
147
|
+
if (!Ee) return;
|
|
151
148
|
const s = localStorage.getItem("vuetify@user"), a = s ? JSON.parse(s) : {};
|
|
152
149
|
let l = a.v === c.v;
|
|
153
|
-
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 =
|
|
150
|
+
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 = Ae.suits, a.notifications.banners = Ae.notifications.banners, l = !0), a.v = c.v, Object.assign(c, Re(c, a)), l && n();
|
|
154
151
|
}
|
|
155
152
|
function n() {
|
|
156
|
-
|
|
153
|
+
Ee && localStorage.setItem("vuetify@user", JSON.stringify(c, null, 2));
|
|
157
154
|
}
|
|
158
155
|
function o() {
|
|
159
|
-
|
|
156
|
+
Ee && (Object.assign(c, Re({}, Ae)), n());
|
|
160
157
|
}
|
|
161
158
|
return e(), {
|
|
162
|
-
...
|
|
159
|
+
...Ut(c),
|
|
163
160
|
load: e,
|
|
164
161
|
save: n,
|
|
165
162
|
reset: o
|
|
166
163
|
};
|
|
167
|
-
}),
|
|
168
|
-
const c =
|
|
169
|
-
let l =
|
|
170
|
-
|
|
171
|
-
if (!(
|
|
172
|
-
const
|
|
173
|
-
JSON.stringify(
|
|
164
|
+
}), P = q("auth", () => {
|
|
165
|
+
const c = O(!1), e = O(null), n = oe(), o = F(), s = Qe(), a = A(!1);
|
|
166
|
+
let l = !!$();
|
|
167
|
+
z(e, (g) => {
|
|
168
|
+
if (!(g != null && g.settings)) return;
|
|
169
|
+
const f = localStorage.getItem("vuetify@user") || "{}";
|
|
170
|
+
JSON.stringify(g.settings, null, 2) !== f && (l = !0, Object.assign(o, g.settings));
|
|
174
171
|
}), o.$subscribe(() => {
|
|
175
172
|
l || d(), l = !1;
|
|
176
173
|
});
|
|
@@ -178,20 +175,20 @@ const oe = W("http", {
|
|
|
178
175
|
if (!(!e.value || !o.syncSettings))
|
|
179
176
|
try {
|
|
180
177
|
await n.post("/user/settings", { settings: o.$state });
|
|
181
|
-
} catch (
|
|
182
|
-
console.error(
|
|
178
|
+
} catch (g) {
|
|
179
|
+
console.error(g);
|
|
183
180
|
}
|
|
184
181
|
}
|
|
185
|
-
async function p(
|
|
182
|
+
async function p(g = !1) {
|
|
186
183
|
if (p.promise) return p.promise;
|
|
187
184
|
a.value = !0, p.promise = fetch(`${n.url}/auth/verify`, {
|
|
188
185
|
credentials: "include",
|
|
189
|
-
headers:
|
|
186
|
+
headers: g ? {
|
|
190
187
|
"Cache-Control": "no-cache"
|
|
191
188
|
} : void 0
|
|
192
189
|
}).then(
|
|
193
|
-
async (
|
|
194
|
-
|
|
190
|
+
async (f) => {
|
|
191
|
+
f.ok ? e.value = (await f.json()).user : f.status === 401 ? e.value = null : console.error(f.statusText);
|
|
195
192
|
},
|
|
196
193
|
() => {
|
|
197
194
|
}
|
|
@@ -200,44 +197,44 @@ const oe = W("http", {
|
|
|
200
197
|
});
|
|
201
198
|
}
|
|
202
199
|
p.promise = null;
|
|
203
|
-
async function m(
|
|
200
|
+
async function m(g = "github") {
|
|
204
201
|
a.value = !0;
|
|
205
|
-
const
|
|
206
|
-
if (
|
|
207
|
-
window.location.assign(
|
|
202
|
+
const f = `${n.url}/auth/${g}/redirect`;
|
|
203
|
+
if (g === "shopify") {
|
|
204
|
+
window.location.assign(f + "?next=" + encodeURIComponent(window.location.href));
|
|
208
205
|
return;
|
|
209
206
|
}
|
|
210
|
-
const
|
|
207
|
+
const v = 400, b = 600, M = window.screenX + (window.innerWidth - v) / 2, D = window.screenY + (window.innerHeight - b) / 2, H = window.open(
|
|
211
208
|
"",
|
|
212
209
|
"vuetify:authorize:popup",
|
|
213
|
-
`popup,left=${
|
|
210
|
+
`popup,left=${M},top=${D},width=${v},height=${b},resizable`
|
|
214
211
|
);
|
|
215
|
-
if (!
|
|
212
|
+
if (!H) {
|
|
216
213
|
console.error("Failed to open popup");
|
|
217
214
|
return;
|
|
218
215
|
}
|
|
219
|
-
|
|
216
|
+
H.location.href = f;
|
|
220
217
|
let ie = -1, re = -1;
|
|
221
218
|
function le(ne) {
|
|
222
219
|
var he;
|
|
223
|
-
ne.origin === n.url && ((he = ne.data) == null ? void 0 : he.type) === "auth-response" && (ne.data.status === "success" ? (e.value || localStorage.setItem("vuetify@lastLoginProvider",
|
|
220
|
+
ne.origin === n.url && ((he = ne.data) == null ? void 0 : he.type) === "auth-response" && (ne.data.status === "success" ? (e.value || localStorage.setItem("vuetify@lastLoginProvider", g), e.value = ne.data.body.user, d()) : console.error(ne.data.message), ce());
|
|
224
221
|
}
|
|
225
222
|
function ce() {
|
|
226
|
-
window.removeEventListener("message", le), window.clearInterval(ie), window.clearTimeout(re),
|
|
223
|
+
window.removeEventListener("message", le), window.clearInterval(ie), window.clearTimeout(re), H == null || H.close(), a.value = !1;
|
|
227
224
|
}
|
|
228
225
|
window.addEventListener("message", le), ie = window.setInterval(() => {
|
|
229
|
-
!
|
|
226
|
+
!H || H.closed ? (console.error("Auth popup closed"), ce()) : H.postMessage({ type: "auth-request" }, "*");
|
|
230
227
|
}, 1e3), re = window.setTimeout(() => {
|
|
231
228
|
ce(), console.error("Auth timed out");
|
|
232
229
|
}, 120 * 1e3);
|
|
233
230
|
}
|
|
234
|
-
async function
|
|
231
|
+
async function _(g) {
|
|
235
232
|
a.value = !0;
|
|
236
|
-
const
|
|
233
|
+
const f = g ? `/auth/${g}/logout` : "/auth/logout";
|
|
237
234
|
try {
|
|
238
|
-
await n.post(
|
|
239
|
-
} catch (
|
|
240
|
-
console.error(
|
|
235
|
+
await n.post(f), await p(!0), e.value = null;
|
|
236
|
+
} catch (v) {
|
|
237
|
+
console.error(v);
|
|
241
238
|
} finally {
|
|
242
239
|
s.push({
|
|
243
240
|
path: "/",
|
|
@@ -245,11 +242,11 @@ const oe = W("http", {
|
|
|
245
242
|
}), a.value = !1;
|
|
246
243
|
}
|
|
247
244
|
}
|
|
248
|
-
function g
|
|
249
|
-
var
|
|
250
|
-
return (
|
|
245
|
+
function y(g) {
|
|
246
|
+
var f;
|
|
247
|
+
return (f = e.value) == null ? void 0 : f.identities.find((v) => v.provider === g);
|
|
251
248
|
}
|
|
252
|
-
function
|
|
249
|
+
function $() {
|
|
253
250
|
return localStorage.getItem("vuetify@lastLoginProvider");
|
|
254
251
|
}
|
|
255
252
|
return p(), {
|
|
@@ -257,120 +254,120 @@ const oe = W("http", {
|
|
|
257
254
|
url: n.url,
|
|
258
255
|
dialog: c,
|
|
259
256
|
isLoading: a,
|
|
260
|
-
findIdentity:
|
|
257
|
+
findIdentity: y,
|
|
261
258
|
verify: p,
|
|
262
259
|
login: m,
|
|
263
|
-
logout:
|
|
264
|
-
lastLoginProvider:
|
|
260
|
+
logout: _,
|
|
261
|
+
lastLoginProvider: $,
|
|
265
262
|
sync: d
|
|
266
263
|
};
|
|
267
|
-
}),
|
|
264
|
+
}), Ro = { class: "text-body-2" }, Eo = /* @__PURE__ */ V("div", { class: "text-caption mt-n1" }, "Last Used", -1), yt = /* @__PURE__ */ k({
|
|
268
265
|
__name: "VoAuthShopify",
|
|
269
266
|
setup(c) {
|
|
270
|
-
const e =
|
|
271
|
-
return (s, a) => (u(),
|
|
267
|
+
const e = P(), n = x(() => e.user && e.findIdentity("shopify")), o = x(() => e.user ? n.value ? "Connected to Shopify" : "Connect Shopify" : "Login with Shopify");
|
|
268
|
+
return (s, a) => (u(), h(me, {
|
|
272
269
|
"base-color": "#5b8a3c",
|
|
273
|
-
"prepend-icon": `svg:${t(
|
|
270
|
+
"prepend-icon": `svg:${t(jt)}`,
|
|
274
271
|
rounded: "pill",
|
|
275
272
|
slim: "",
|
|
276
273
|
variant: "flat",
|
|
277
274
|
onClick: a[0] || (a[0] = (l) => t(e).login("shopify"))
|
|
278
|
-
},
|
|
275
|
+
}, R({
|
|
279
276
|
title: r(() => [
|
|
280
|
-
|
|
277
|
+
V("span", Ro, S(t(o)), 1)
|
|
281
278
|
]),
|
|
282
279
|
_: 2
|
|
283
280
|
}, [
|
|
284
281
|
!t(e).user && t(e).lastLoginProvider() === "shopify" ? {
|
|
285
282
|
name: "subtitle",
|
|
286
283
|
fn: r(() => [
|
|
287
|
-
|
|
284
|
+
Eo
|
|
288
285
|
]),
|
|
289
286
|
key: "0"
|
|
290
287
|
} : void 0
|
|
291
288
|
]), 1032, ["prepend-icon"]));
|
|
292
289
|
}
|
|
293
|
-
}),
|
|
290
|
+
}), Wo = { class: "text-body-2" }, qo = /* @__PURE__ */ V("div", { class: "text-caption mt-n1" }, "Last Used", -1), bt = /* @__PURE__ */ k({
|
|
294
291
|
__name: "VoAuthDiscord",
|
|
295
292
|
setup(c) {
|
|
296
|
-
const e =
|
|
297
|
-
return (s, a) => (u(),
|
|
293
|
+
const e = P(), n = x(() => e.user && e.findIdentity("discord")), o = x(() => e.user ? n.value ? "Connected to Discord" : "Connect Discord" : "Login with Discord");
|
|
294
|
+
return (s, a) => (u(), h(me, {
|
|
298
295
|
"base-color": "#5865F2",
|
|
299
296
|
"prepend-icon": "$discord",
|
|
300
297
|
rounded: "pill",
|
|
301
298
|
slim: "",
|
|
302
299
|
variant: "flat",
|
|
303
300
|
onClick: a[0] || (a[0] = (l) => t(e).login("discord"))
|
|
304
|
-
},
|
|
301
|
+
}, R({
|
|
305
302
|
title: r(() => [
|
|
306
|
-
|
|
303
|
+
V("span", Wo, S(t(o)), 1)
|
|
307
304
|
]),
|
|
308
305
|
_: 2
|
|
309
306
|
}, [
|
|
310
307
|
!t(e).user && t(e).lastLoginProvider() === "discord" ? {
|
|
311
308
|
name: "subtitle",
|
|
312
309
|
fn: r(() => [
|
|
313
|
-
|
|
310
|
+
qo
|
|
314
311
|
]),
|
|
315
312
|
key: "0"
|
|
316
313
|
} : void 0
|
|
317
314
|
]), 1024));
|
|
318
315
|
}
|
|
319
|
-
}),
|
|
316
|
+
}), Zo = { class: "text-body-2" }, Go = /* @__PURE__ */ V("div", { class: "text-caption mt-n1" }, "Last Used", -1), Vt = /* @__PURE__ */ k({
|
|
320
317
|
__name: "VoAuthGithub",
|
|
321
318
|
setup(c) {
|
|
322
|
-
const e =
|
|
323
|
-
return (s, a) => (u(),
|
|
319
|
+
const e = P(), n = x(() => e.user && e.findIdentity("github")), o = x(() => e.user ? n.value ? "Connected to GitHub" : "Connect GitHub" : "Login with GitHub");
|
|
320
|
+
return (s, a) => (u(), h(me, {
|
|
324
321
|
"base-color": "#2a2a2a",
|
|
325
322
|
"prepend-icon": "$github",
|
|
326
323
|
rounded: "pill",
|
|
327
324
|
slim: "",
|
|
328
325
|
variant: "flat",
|
|
329
326
|
onClick: a[0] || (a[0] = (l) => t(e).login("github"))
|
|
330
|
-
},
|
|
327
|
+
}, R({
|
|
331
328
|
title: r(() => [
|
|
332
|
-
|
|
329
|
+
V("span", Zo, S(t(o)), 1)
|
|
333
330
|
]),
|
|
334
331
|
_: 2
|
|
335
332
|
}, [
|
|
336
333
|
!t(e).user && t(e).lastLoginProvider() === "github" ? {
|
|
337
334
|
name: "subtitle",
|
|
338
335
|
fn: r(() => [
|
|
339
|
-
|
|
336
|
+
Go
|
|
340
337
|
]),
|
|
341
338
|
key: "0"
|
|
342
339
|
} : void 0
|
|
343
340
|
]), 1024));
|
|
344
341
|
}
|
|
345
|
-
}), Qo = { class: "text-center" },
|
|
342
|
+
}), Qo = { class: "text-center" }, Yo = { class: "text-center mb-6" }, Jo = { class: "text-h6 font-weight-light" }, Xo = /* @__PURE__ */ V("span", { class: "text-h3 font-weight-bold" }, "Vuetify One", -1), kt = /* @__PURE__ */ k({
|
|
346
343
|
__name: "VoAuthCard",
|
|
347
344
|
setup(c) {
|
|
348
|
-
const e =
|
|
345
|
+
const e = P();
|
|
349
346
|
return (n, o) => {
|
|
350
|
-
const s =
|
|
351
|
-
return u(),
|
|
347
|
+
const s = Vt, a = bt, l = yt;
|
|
348
|
+
return u(), h(W, {
|
|
352
349
|
class: "pt-6 pb-8 px-4 px-sm-8 mx-auto",
|
|
353
350
|
"max-width": "480"
|
|
354
351
|
}, {
|
|
355
352
|
default: r(() => [
|
|
356
|
-
|
|
353
|
+
V("div", Qo, [
|
|
357
354
|
i(ee, {
|
|
358
355
|
class: "mx-auto",
|
|
359
356
|
image: "https://vuetifyjs.b-cdn.net/docs/images/avatars/one.png",
|
|
360
357
|
size: "64"
|
|
361
358
|
})
|
|
362
359
|
]),
|
|
363
|
-
|
|
364
|
-
i(
|
|
360
|
+
V("div", Yo, [
|
|
361
|
+
i(Co, { class: "text-h5 mb-1 text-md-h4" }, {
|
|
365
362
|
default: r(() => [
|
|
366
|
-
|
|
367
|
-
|
|
363
|
+
V("div", Jo, S(t(e).lastLoginProvider() ? "Welcome back to" : "Login to"), 1),
|
|
364
|
+
Xo
|
|
368
365
|
]),
|
|
369
366
|
_: 1
|
|
370
367
|
}),
|
|
371
|
-
i(
|
|
368
|
+
i(So, { class: "text-wrap" }, {
|
|
372
369
|
default: r(() => [
|
|
373
|
-
|
|
370
|
+
N(" Login to save your settings and gain access to exclusive subscriber perks. ")
|
|
374
371
|
]),
|
|
375
372
|
_: 1
|
|
376
373
|
})
|
|
@@ -392,13 +389,13 @@ const oe = W("http", {
|
|
|
392
389
|
});
|
|
393
390
|
};
|
|
394
391
|
}
|
|
395
|
-
}),
|
|
392
|
+
}), $t = /* @__PURE__ */ k({
|
|
396
393
|
__name: "VoAuthDialog",
|
|
397
394
|
setup(c) {
|
|
398
|
-
const e =
|
|
395
|
+
const e = P();
|
|
399
396
|
return (n, o) => {
|
|
400
|
-
const s =
|
|
401
|
-
return u(),
|
|
397
|
+
const s = kt;
|
|
398
|
+
return u(), h(mt, {
|
|
402
399
|
modelValue: t(e).dialog,
|
|
403
400
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t(e).dialog = a),
|
|
404
401
|
"max-width": "480"
|
|
@@ -410,62 +407,62 @@ const oe = W("http", {
|
|
|
410
407
|
}, 8, ["modelValue"]);
|
|
411
408
|
};
|
|
412
409
|
}
|
|
413
|
-
}),
|
|
414
|
-
const c = oe(), e =
|
|
410
|
+
}), ze = q("notifications", () => {
|
|
411
|
+
const c = oe(), e = F(), n = O([]), o = O([]), s = O(), a = A(!1), l = x(() => n.value.filter((f) => !e.notifications.read.includes(f.slug))), d = x(() => n.value.filter((f) => e.notifications.read.includes(f.slug)));
|
|
415
412
|
async function p() {
|
|
416
413
|
try {
|
|
417
414
|
a.value = !0;
|
|
418
|
-
const
|
|
419
|
-
n.value =
|
|
415
|
+
const f = await c.get("/one/notifications");
|
|
416
|
+
n.value = f.notifications;
|
|
420
417
|
} catch {
|
|
421
418
|
} finally {
|
|
422
419
|
a.value = !1;
|
|
423
420
|
}
|
|
424
421
|
return n.value;
|
|
425
422
|
}
|
|
426
|
-
async function m(
|
|
423
|
+
async function m(f) {
|
|
427
424
|
try {
|
|
428
425
|
a.value = !0;
|
|
429
|
-
const
|
|
430
|
-
return s.value =
|
|
426
|
+
const v = await c.get(`/one/admin/notifications/${f}`);
|
|
427
|
+
return s.value = v.notification, v.notification;
|
|
431
428
|
} catch {
|
|
432
429
|
} finally {
|
|
433
430
|
a.value = !1;
|
|
434
431
|
}
|
|
435
432
|
}
|
|
436
|
-
async function f
|
|
433
|
+
async function _(f) {
|
|
437
434
|
try {
|
|
438
435
|
a.value = !0;
|
|
439
|
-
const
|
|
436
|
+
const v = await c.form(
|
|
440
437
|
"/one/admin/notifications",
|
|
441
|
-
|
|
438
|
+
f
|
|
442
439
|
);
|
|
443
|
-
return s.value =
|
|
440
|
+
return s.value = v.notification, v.notification;
|
|
444
441
|
} catch {
|
|
445
442
|
} finally {
|
|
446
443
|
a.value = !1;
|
|
447
444
|
}
|
|
448
445
|
}
|
|
449
|
-
async function
|
|
446
|
+
async function y(f, v) {
|
|
450
447
|
try {
|
|
451
448
|
a.value = !0;
|
|
452
|
-
const
|
|
453
|
-
`/one/admin/notifications/${
|
|
454
|
-
|
|
449
|
+
const b = await c.form(
|
|
450
|
+
`/one/admin/notifications/${f}`,
|
|
451
|
+
v
|
|
455
452
|
);
|
|
456
|
-
return s.value =
|
|
453
|
+
return s.value = b.notification, b.notification;
|
|
457
454
|
} catch {
|
|
458
455
|
} finally {
|
|
459
456
|
a.value = !1;
|
|
460
457
|
}
|
|
461
458
|
}
|
|
462
|
-
async function
|
|
459
|
+
async function $() {
|
|
463
460
|
}
|
|
464
|
-
async function
|
|
461
|
+
async function g() {
|
|
465
462
|
try {
|
|
466
463
|
a.value = !0;
|
|
467
|
-
const
|
|
468
|
-
o.value =
|
|
464
|
+
const f = await c.get("/one/admin/notifications");
|
|
465
|
+
o.value = f.notifications;
|
|
469
466
|
} catch {
|
|
470
467
|
} finally {
|
|
471
468
|
a.value = !1;
|
|
@@ -476,21 +473,21 @@ const oe = W("http", {
|
|
|
476
473
|
isLoading: a,
|
|
477
474
|
all: n,
|
|
478
475
|
aall: o,
|
|
479
|
-
admin:
|
|
476
|
+
admin: g,
|
|
480
477
|
record: s,
|
|
481
478
|
index: p,
|
|
482
479
|
show: m,
|
|
483
|
-
store:
|
|
484
|
-
update:
|
|
485
|
-
destroy:
|
|
480
|
+
store: _,
|
|
481
|
+
update: y,
|
|
482
|
+
destroy: $,
|
|
486
483
|
read: d,
|
|
487
484
|
unread: l
|
|
488
485
|
};
|
|
489
|
-
}),
|
|
486
|
+
}), Ko = /* @__PURE__ */ k({
|
|
490
487
|
__name: "VoNotificationsTotalBadge",
|
|
491
488
|
setup(c) {
|
|
492
|
-
const e =
|
|
493
|
-
return (a, l) => (u(),
|
|
489
|
+
const e = P(), n = ze(), o = F(), s = x(() => o.notifications.show ? n.unread.length : 0);
|
|
490
|
+
return (a, l) => (u(), h(Ye, {
|
|
494
491
|
color: "error",
|
|
495
492
|
content: t(s),
|
|
496
493
|
dot: !!t(e).user,
|
|
@@ -498,19 +495,19 @@ const oe = W("http", {
|
|
|
498
495
|
"model-value": t(s) > 0
|
|
499
496
|
}, {
|
|
500
497
|
default: r(() => [
|
|
501
|
-
|
|
498
|
+
B(a.$slots, "default")
|
|
502
499
|
]),
|
|
503
500
|
_: 3
|
|
504
501
|
}, 8, ["content", "dot", "model-value"]));
|
|
505
502
|
}
|
|
506
|
-
}),
|
|
503
|
+
}), Ce = /* @__PURE__ */ k({
|
|
507
504
|
__name: "VoBtn",
|
|
508
505
|
props: {
|
|
509
506
|
readonly: { type: Boolean }
|
|
510
507
|
},
|
|
511
508
|
setup(c) {
|
|
512
509
|
const e = c;
|
|
513
|
-
return (n, o) => (u(),
|
|
510
|
+
return (n, o) => (u(), h(Z, {
|
|
514
511
|
class: "text-none font-weight-regular",
|
|
515
512
|
color: "primary",
|
|
516
513
|
size: "small",
|
|
@@ -519,47 +516,47 @@ const oe = W("http", {
|
|
|
519
516
|
}),
|
|
520
517
|
tabindex: e.readonly ? -1 : void 0,
|
|
521
518
|
variant: "flat"
|
|
522
|
-
},
|
|
519
|
+
}, R({
|
|
523
520
|
loader: r(() => [
|
|
524
|
-
n.$slots.loader ?
|
|
521
|
+
n.$slots.loader ? C("", !0) : (u(), h(Lo, {
|
|
525
522
|
key: 0,
|
|
526
523
|
indeterminate: "disable-shrink",
|
|
527
524
|
size: "16",
|
|
528
525
|
width: "2"
|
|
529
526
|
})),
|
|
530
|
-
|
|
527
|
+
B(n.$slots, "loader")
|
|
531
528
|
]),
|
|
532
529
|
_: 2
|
|
533
530
|
}, [
|
|
534
531
|
n.$slots.prepend ? {
|
|
535
532
|
name: "prepend",
|
|
536
533
|
fn: r(() => [
|
|
537
|
-
|
|
534
|
+
B(n.$slots, "prepend")
|
|
538
535
|
]),
|
|
539
536
|
key: "0"
|
|
540
537
|
} : void 0,
|
|
541
538
|
n.$slots.default ? {
|
|
542
539
|
name: "default",
|
|
543
540
|
fn: r(() => [
|
|
544
|
-
|
|
541
|
+
B(n.$slots, "default")
|
|
545
542
|
]),
|
|
546
543
|
key: "1"
|
|
547
544
|
} : void 0
|
|
548
545
|
]), 1032, ["style", "tabindex"]));
|
|
549
546
|
}
|
|
550
|
-
}),
|
|
547
|
+
}), en = { class: "pa-4 d-flex flex-column ga-4" }, wt = /* @__PURE__ */ k({
|
|
551
548
|
__name: "VoAuthListItem",
|
|
552
549
|
setup(c) {
|
|
553
|
-
const e =
|
|
554
|
-
|
|
550
|
+
const e = P(), n = F(), o = A(!e.user && !e.isLoading);
|
|
551
|
+
z(() => e.user, (a) => {
|
|
555
552
|
o.value = !a;
|
|
556
553
|
});
|
|
557
554
|
function s() {
|
|
558
555
|
e.user && (o.value = !o.value);
|
|
559
556
|
}
|
|
560
557
|
return (a, l) => {
|
|
561
|
-
const d =
|
|
562
|
-
return u(),
|
|
558
|
+
const d = Vt, p = bt, m = yt;
|
|
559
|
+
return u(), h(W, {
|
|
563
560
|
class: "ma-2",
|
|
564
561
|
rounded: "lg",
|
|
565
562
|
variant: t(o) ? "tonal" : "text"
|
|
@@ -571,7 +568,7 @@ const oe = W("http", {
|
|
|
571
568
|
class: "mb-0",
|
|
572
569
|
link: !!t(e).user,
|
|
573
570
|
nav: "",
|
|
574
|
-
"prepend-icon": `svg:${t(e).user && t(n).syncSettings ? t(
|
|
571
|
+
"prepend-icon": `svg:${t(e).user && t(n).syncSettings ? t(Pt) : t(Ht)}`,
|
|
575
572
|
rounded: "b-0",
|
|
576
573
|
slim: "",
|
|
577
574
|
title: t(e).user && t(n).syncSettings ? "Sync is on" : "Sync is paused",
|
|
@@ -580,15 +577,15 @@ const oe = W("http", {
|
|
|
580
577
|
append: r(() => [
|
|
581
578
|
i(Te, null, {
|
|
582
579
|
default: r(() => [
|
|
583
|
-
t(e).user && (t(o) || !t(n).syncSettings) ? (u(),
|
|
580
|
+
t(e).user && (t(o) || !t(n).syncSettings) ? (u(), h(ft, {
|
|
584
581
|
key: 0,
|
|
585
582
|
modelValue: t(n).syncSettings,
|
|
586
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
583
|
+
"onUpdate:modelValue": l[0] || (l[0] = (_) => t(n).syncSettings = _),
|
|
587
584
|
color: t(n).syncSettings ? "success" : void 0,
|
|
588
585
|
density: "compact",
|
|
589
586
|
"hide-details": "",
|
|
590
587
|
inset: "",
|
|
591
|
-
onClick: l[1] || (l[1] =
|
|
588
|
+
onClick: l[1] || (l[1] = Ze(() => {
|
|
592
589
|
}, ["stop"]))
|
|
593
590
|
}, {
|
|
594
591
|
thumb: r(() => [
|
|
@@ -597,7 +594,7 @@ const oe = W("http", {
|
|
|
597
594
|
}, null, 8, ["color"])
|
|
598
595
|
]),
|
|
599
596
|
_: 1
|
|
600
|
-
}, 8, ["modelValue", "color"])) :
|
|
597
|
+
}, 8, ["modelValue", "color"])) : C("", !0)
|
|
601
598
|
]),
|
|
602
599
|
_: 1
|
|
603
600
|
})
|
|
@@ -606,26 +603,26 @@ const oe = W("http", {
|
|
|
606
603
|
}, 8, ["link", "prepend-icon", "title"]),
|
|
607
604
|
i(fe, null, {
|
|
608
605
|
default: r(() => [
|
|
609
|
-
!t(e).user && !t(e).isLoading || t(o) ? (u(),
|
|
606
|
+
!t(e).user && !t(e).isLoading || t(o) ? (u(), h(Je, {
|
|
610
607
|
key: 0,
|
|
611
608
|
border: "t",
|
|
612
609
|
color: "transparent"
|
|
613
610
|
}, {
|
|
614
611
|
default: r(() => [
|
|
615
|
-
|
|
612
|
+
V("div", en, [
|
|
616
613
|
i(d, {
|
|
617
|
-
onClick: l[2] || (l[2] = (
|
|
614
|
+
onClick: l[2] || (l[2] = (_) => o.value = !1)
|
|
618
615
|
}),
|
|
619
616
|
i(p, {
|
|
620
|
-
onClick: l[3] || (l[3] = (
|
|
617
|
+
onClick: l[3] || (l[3] = (_) => o.value = !1)
|
|
621
618
|
}),
|
|
622
619
|
i(m, {
|
|
623
|
-
onClick: l[4] || (l[4] = (
|
|
620
|
+
onClick: l[4] || (l[4] = (_) => o.value = !1)
|
|
624
621
|
})
|
|
625
622
|
])
|
|
626
623
|
]),
|
|
627
624
|
_: 1
|
|
628
|
-
})) :
|
|
625
|
+
})) : C("", !0)
|
|
629
626
|
]),
|
|
630
627
|
_: 1
|
|
631
628
|
})
|
|
@@ -637,61 +634,61 @@ const oe = W("http", {
|
|
|
637
634
|
}, 8, ["variant"]);
|
|
638
635
|
};
|
|
639
636
|
}
|
|
640
|
-
}), Y = /* @__PURE__ */
|
|
637
|
+
}), Y = /* @__PURE__ */ k({
|
|
641
638
|
__name: "VoListItem",
|
|
642
639
|
setup(c) {
|
|
643
|
-
return (e, n) => (u(),
|
|
640
|
+
return (e, n) => (u(), h(me, { slim: "" }, R({
|
|
644
641
|
default: r(() => [
|
|
645
|
-
|
|
642
|
+
B(e.$slots, "default")
|
|
646
643
|
]),
|
|
647
644
|
_: 2
|
|
648
645
|
}, [
|
|
649
646
|
e.$slots.prepend ? {
|
|
650
647
|
name: "prepend",
|
|
651
648
|
fn: r(() => [
|
|
652
|
-
|
|
649
|
+
B(e.$slots, "prepend")
|
|
653
650
|
]),
|
|
654
651
|
key: "0"
|
|
655
652
|
} : void 0,
|
|
656
653
|
e.$slots.title ? {
|
|
657
654
|
name: "title",
|
|
658
655
|
fn: r(() => [
|
|
659
|
-
|
|
656
|
+
B(e.$slots, "title")
|
|
660
657
|
]),
|
|
661
658
|
key: "1"
|
|
662
659
|
} : void 0,
|
|
663
660
|
e.$slots.append ? {
|
|
664
661
|
name: "append",
|
|
665
662
|
fn: r(() => [
|
|
666
|
-
|
|
663
|
+
B(e.$slots, "append")
|
|
667
664
|
]),
|
|
668
665
|
key: "2"
|
|
669
666
|
} : void 0
|
|
670
667
|
]), 1024));
|
|
671
668
|
}
|
|
672
|
-
}),
|
|
669
|
+
}), tn = /* @__PURE__ */ k({
|
|
673
670
|
__name: "VoAuthLogoutNavItem",
|
|
674
671
|
setup(c) {
|
|
675
|
-
const e =
|
|
672
|
+
const e = P(), n = A(!1);
|
|
676
673
|
async function o() {
|
|
677
674
|
n.value = !0, await e.logout(), n.value = !1;
|
|
678
675
|
}
|
|
679
676
|
return (s, a) => {
|
|
680
677
|
const l = Y;
|
|
681
|
-
return u(),
|
|
678
|
+
return u(), h(l, {
|
|
682
679
|
class: "mb-0",
|
|
683
680
|
disabled: t(n),
|
|
684
681
|
link: "",
|
|
685
682
|
loading: t(n),
|
|
686
|
-
"prepend-icon": `svg:${t(
|
|
683
|
+
"prepend-icon": `svg:${t(Rt)}`,
|
|
687
684
|
title: "Logout",
|
|
688
685
|
onClick: o
|
|
689
686
|
}, null, 8, ["disabled", "loading", "prepend-icon"]);
|
|
690
687
|
};
|
|
691
688
|
}
|
|
692
|
-
}),
|
|
689
|
+
}), Se = /* @__PURE__ */ k({
|
|
693
690
|
__name: "VoDialog",
|
|
694
|
-
props: /* @__PURE__ */
|
|
691
|
+
props: /* @__PURE__ */ Ot({
|
|
695
692
|
prependIcon: {},
|
|
696
693
|
title: {}
|
|
697
694
|
}, {
|
|
@@ -700,8 +697,8 @@ const oe = W("http", {
|
|
|
700
697
|
}),
|
|
701
698
|
emits: ["update:modelValue"],
|
|
702
699
|
setup(c) {
|
|
703
|
-
const e = pe(c, "modelValue"), n = ve(), o =
|
|
704
|
-
return (s, a) => (u(),
|
|
700
|
+
const e = pe(c, "modelValue"), n = ve(), o = A(!1);
|
|
701
|
+
return (s, a) => (u(), h(mt, {
|
|
705
702
|
modelValue: e.value,
|
|
706
703
|
"onUpdate:modelValue": a[2] || (a[2] = (l) => e.value = l),
|
|
707
704
|
activator: "parent",
|
|
@@ -711,24 +708,24 @@ const oe = W("http", {
|
|
|
711
708
|
"max-width": t(o) || t(n).xs.value ? "100%" : 800
|
|
712
709
|
}, {
|
|
713
710
|
default: r(({ isActive: l }) => [
|
|
714
|
-
i(
|
|
711
|
+
i(W, {
|
|
715
712
|
class: "overflow-hidden",
|
|
716
713
|
height: "inherit",
|
|
717
714
|
"prepend-icon": s.prependIcon,
|
|
718
715
|
title: s.title
|
|
719
|
-
},
|
|
716
|
+
}, R({
|
|
720
717
|
append: r(() => [
|
|
721
|
-
|
|
722
|
-
t(n).xs.value ?
|
|
718
|
+
B(s.$slots, "append"),
|
|
719
|
+
t(n).xs.value ? C("", !0) : (u(), h(Z, {
|
|
723
720
|
key: 0,
|
|
724
721
|
class: "me-2",
|
|
725
722
|
density: "comfortable",
|
|
726
|
-
icon: `svg:${t(o) ? t(
|
|
723
|
+
icon: `svg:${t(o) ? t(Et) : t(Wt)}`,
|
|
727
724
|
size: "small",
|
|
728
725
|
variant: "text",
|
|
729
726
|
onClick: a[0] || (a[0] = (d) => o.value = !t(o))
|
|
730
727
|
}, null, 8, ["icon"])),
|
|
731
|
-
i(
|
|
728
|
+
i(Z, {
|
|
732
729
|
density: "comfortable",
|
|
733
730
|
icon: "$close",
|
|
734
731
|
size: "small",
|
|
@@ -737,22 +734,22 @@ const oe = W("http", {
|
|
|
737
734
|
})
|
|
738
735
|
]),
|
|
739
736
|
default: r(() => [
|
|
740
|
-
i(
|
|
741
|
-
|
|
737
|
+
i(Q),
|
|
738
|
+
B(s.$slots, "default")
|
|
742
739
|
]),
|
|
743
740
|
_: 2
|
|
744
741
|
}, [
|
|
745
742
|
s.$slots.prepend ? {
|
|
746
743
|
name: "prepend",
|
|
747
744
|
fn: r(() => [
|
|
748
|
-
|
|
745
|
+
B(s.$slots, "prepend")
|
|
749
746
|
]),
|
|
750
747
|
key: "0"
|
|
751
748
|
} : void 0,
|
|
752
749
|
s.$slots.actions ? {
|
|
753
750
|
name: "actions",
|
|
754
751
|
fn: r(() => [
|
|
755
|
-
|
|
752
|
+
B(s.$slots, "actions", { isActive: l })
|
|
756
753
|
]),
|
|
757
754
|
key: "1"
|
|
758
755
|
} : void 0
|
|
@@ -761,21 +758,21 @@ const oe = W("http", {
|
|
|
761
758
|
_: 3
|
|
762
759
|
}, 8, ["modelValue", "fullscreen", "max-height", "max-width"]));
|
|
763
760
|
}
|
|
764
|
-
}),
|
|
761
|
+
}), xt = /* @__PURE__ */ k({
|
|
765
762
|
__name: "VoSwitch",
|
|
766
763
|
props: {
|
|
767
764
|
disabled: { type: Boolean }
|
|
768
765
|
},
|
|
769
766
|
setup(c) {
|
|
770
|
-
return (e, n) => (u(),
|
|
767
|
+
return (e, n) => (u(), h(ft, {
|
|
771
768
|
color: "primary",
|
|
772
769
|
density: "compact",
|
|
773
770
|
disabled: e.disabled,
|
|
774
771
|
inset: "",
|
|
775
772
|
"true-icon": `svg:${t(Be)}`
|
|
776
|
-
},
|
|
773
|
+
}, R({
|
|
777
774
|
thumb: r(() => [
|
|
778
|
-
i(
|
|
775
|
+
i(U, {
|
|
779
776
|
color: e.disabled ? void 0 : "primary"
|
|
780
777
|
}, null, 8, ["color"])
|
|
781
778
|
]),
|
|
@@ -784,69 +781,69 @@ const oe = W("http", {
|
|
|
784
781
|
e.$slots.label ? {
|
|
785
782
|
name: "label",
|
|
786
783
|
fn: r(() => [
|
|
787
|
-
|
|
784
|
+
B(e.$slots, "label")
|
|
788
785
|
]),
|
|
789
786
|
key: "0"
|
|
790
787
|
} : void 0
|
|
791
788
|
]), 1032, ["disabled", "true-icon"]));
|
|
792
789
|
}
|
|
793
|
-
}),
|
|
790
|
+
}), on = {
|
|
794
791
|
key: 1,
|
|
795
792
|
class: "mb-3 text-caption text-medium-emphasis"
|
|
796
|
-
}, _e = /* @__PURE__ */
|
|
793
|
+
}, _e = /* @__PURE__ */ k({
|
|
797
794
|
__name: "VoDialogSubheader",
|
|
798
795
|
props: {
|
|
799
796
|
title: {},
|
|
800
797
|
text: {}
|
|
801
798
|
},
|
|
802
799
|
setup(c) {
|
|
803
|
-
return (e, n) => (u(),
|
|
804
|
-
e.title ? (u(),
|
|
800
|
+
return (e, n) => (u(), I(T, null, [
|
|
801
|
+
e.title ? (u(), h(We, {
|
|
805
802
|
key: 0,
|
|
806
803
|
class: "font-weight-black"
|
|
807
804
|
}, {
|
|
808
805
|
default: r(() => [
|
|
809
|
-
|
|
806
|
+
N(S(e.title), 1)
|
|
810
807
|
]),
|
|
811
808
|
_: 1
|
|
812
|
-
})) :
|
|
813
|
-
e.text ? (u(),
|
|
809
|
+
})) : C("", !0),
|
|
810
|
+
e.text ? (u(), I("div", on, S(e.text), 1)) : C("", !0)
|
|
814
811
|
], 64));
|
|
815
812
|
}
|
|
816
|
-
}),
|
|
813
|
+
}), nn = { key: 0 }, sn = /* @__PURE__ */ k({
|
|
817
814
|
__name: "VoSettingsPageSuitOption",
|
|
818
815
|
setup(c) {
|
|
819
|
-
const e =
|
|
816
|
+
const e = F(), n = [
|
|
820
817
|
{
|
|
821
818
|
title: "Choose a page suit",
|
|
822
819
|
value: "",
|
|
823
|
-
prependIcon: `svg:${
|
|
820
|
+
prependIcon: `svg:${Gt}`,
|
|
824
821
|
disabled: !0
|
|
825
822
|
},
|
|
826
823
|
{
|
|
827
824
|
title: "Blackguard",
|
|
828
|
-
prependIcon: `svg:${
|
|
825
|
+
prependIcon: `svg:${it}`,
|
|
829
826
|
value: "blackguard"
|
|
830
827
|
},
|
|
831
828
|
{
|
|
832
829
|
title: "Polaris",
|
|
833
|
-
prependIcon: `svg:${
|
|
830
|
+
prependIcon: `svg:${rt}`,
|
|
834
831
|
value: "polaris"
|
|
835
832
|
},
|
|
836
833
|
{
|
|
837
834
|
title: "Nebula",
|
|
838
|
-
prependIcon: `svg:${
|
|
835
|
+
prependIcon: `svg:${lt}`,
|
|
839
836
|
value: "nebula"
|
|
840
837
|
},
|
|
841
838
|
{
|
|
842
839
|
title: "Odyssey",
|
|
843
|
-
prependIcon: `svg:${
|
|
840
|
+
prependIcon: `svg:${ct}`,
|
|
844
841
|
value: "odyssey"
|
|
845
842
|
}
|
|
846
843
|
];
|
|
847
844
|
return (o, s) => {
|
|
848
|
-
const a =
|
|
849
|
-
return u(),
|
|
845
|
+
const a = xt, l = _e;
|
|
846
|
+
return u(), I(T, null, [
|
|
850
847
|
i(a, {
|
|
851
848
|
modelValue: t(e).suits.show,
|
|
852
849
|
"onUpdate:modelValue": s[0] || (s[0] = (d) => t(e).suits.show = d),
|
|
@@ -856,8 +853,8 @@ const oe = W("http", {
|
|
|
856
853
|
}, null, 8, ["modelValue"]),
|
|
857
854
|
i(fe, null, {
|
|
858
855
|
default: r(() => [
|
|
859
|
-
t(e).suits.show ? (u(),
|
|
860
|
-
i(
|
|
856
|
+
t(e).suits.show ? (u(), I("div", nn, [
|
|
857
|
+
i(Do, {
|
|
861
858
|
modelValue: t(e).suits.suit,
|
|
862
859
|
"onUpdate:modelValue": s[1] || (s[1] = (d) => t(e).suits.suit = d),
|
|
863
860
|
clearable: "",
|
|
@@ -870,17 +867,17 @@ const oe = W("http", {
|
|
|
870
867
|
variant: "outlined"
|
|
871
868
|
}, {
|
|
872
869
|
selection: r(({ item: d }) => [
|
|
873
|
-
i(
|
|
870
|
+
i(U, {
|
|
874
871
|
icon: d.props.prependIcon,
|
|
875
872
|
size: "x-small",
|
|
876
873
|
start: ""
|
|
877
874
|
}, null, 8, ["icon"]),
|
|
878
|
-
|
|
875
|
+
N(" " + S(d.title), 1)
|
|
879
876
|
]),
|
|
880
877
|
_: 1
|
|
881
878
|
}, 8, ["modelValue"]),
|
|
882
879
|
i(l, { text: "Select your suit elements to display the background image:" }),
|
|
883
|
-
i(
|
|
880
|
+
i(Ao, {
|
|
884
881
|
modelValue: t(e).suits.elements,
|
|
885
882
|
"onUpdate:modelValue": s[2] || (s[2] = (d) => t(e).suits.elements = d),
|
|
886
883
|
color: "primary",
|
|
@@ -889,34 +886,34 @@ const oe = W("http", {
|
|
|
889
886
|
}, {
|
|
890
887
|
default: r(() => [
|
|
891
888
|
i(X, {
|
|
892
|
-
"append-icon": `svg:${t(
|
|
889
|
+
"append-icon": `svg:${t(qt)}`,
|
|
893
890
|
"filter-icon": "$success",
|
|
894
891
|
text: "App Bar",
|
|
895
892
|
value: "app-bar",
|
|
896
893
|
variant: "flat"
|
|
897
894
|
}, {
|
|
898
895
|
append: r(() => [
|
|
899
|
-
i(
|
|
896
|
+
i(Q, {
|
|
900
897
|
class: "ms-2 border-opacity-50",
|
|
901
898
|
vertical: ""
|
|
902
899
|
}),
|
|
903
|
-
i(
|
|
900
|
+
i(U, { size: "x-small" })
|
|
904
901
|
]),
|
|
905
902
|
_: 1
|
|
906
903
|
}, 8, ["append-icon"]),
|
|
907
904
|
i(X, {
|
|
908
|
-
"append-icon": `svg:${t(
|
|
905
|
+
"append-icon": `svg:${t(Zt)}`,
|
|
909
906
|
"filter-icon": "$success",
|
|
910
907
|
text: "Navigation Drawer",
|
|
911
908
|
value: "drawer",
|
|
912
909
|
variant: "flat"
|
|
913
910
|
}, {
|
|
914
911
|
append: r(() => [
|
|
915
|
-
i(
|
|
912
|
+
i(Q, {
|
|
916
913
|
class: "ms-2 border-opacity-50",
|
|
917
914
|
vertical: ""
|
|
918
915
|
}),
|
|
919
|
-
i(
|
|
916
|
+
i(U, { size: "x-small" })
|
|
920
917
|
]),
|
|
921
918
|
_: 1
|
|
922
919
|
}, 8, ["append-icon"]),
|
|
@@ -928,18 +925,18 @@ const oe = W("http", {
|
|
|
928
925
|
variant: "flat"
|
|
929
926
|
}, {
|
|
930
927
|
append: r(() => [
|
|
931
|
-
i(
|
|
928
|
+
i(Q, {
|
|
932
929
|
class: "ms-2 border-opacity-50",
|
|
933
930
|
vertical: ""
|
|
934
931
|
}),
|
|
935
|
-
i(
|
|
932
|
+
i(U, { size: "x-small" })
|
|
936
933
|
]),
|
|
937
934
|
_: 1
|
|
938
935
|
})
|
|
939
936
|
]),
|
|
940
937
|
_: 1
|
|
941
938
|
}, 8, ["modelValue"])
|
|
942
|
-
])) :
|
|
939
|
+
])) : C("", !0)
|
|
943
940
|
]),
|
|
944
941
|
_: 1
|
|
945
942
|
})
|
|
@@ -947,68 +944,68 @@ const oe = W("http", {
|
|
|
947
944
|
};
|
|
948
945
|
}
|
|
949
946
|
});
|
|
950
|
-
function
|
|
951
|
-
const c =
|
|
952
|
-
return
|
|
947
|
+
function Le() {
|
|
948
|
+
const c = $o();
|
|
949
|
+
return x(
|
|
953
950
|
() => c.query
|
|
954
951
|
);
|
|
955
952
|
}
|
|
956
|
-
const
|
|
957
|
-
const c =
|
|
958
|
-
var
|
|
959
|
-
return (
|
|
960
|
-
}),
|
|
961
|
-
var
|
|
962
|
-
return (
|
|
963
|
-
}),
|
|
964
|
-
var
|
|
965
|
-
return !!((
|
|
966
|
-
}),
|
|
967
|
-
var
|
|
968
|
-
return ((
|
|
969
|
-
if (!
|
|
970
|
-
const
|
|
971
|
-
return
|
|
953
|
+
const j = q("one", () => {
|
|
954
|
+
const c = Le(), e = Qe(), n = P(), o = oe(), s = A(!1), a = A(!1), l = O(), d = O([]), p = x(() => c.value.session_id), m = x(() => {
|
|
955
|
+
var w;
|
|
956
|
+
return (w = l.value) == null ? void 0 : w.items[0].plan.interval;
|
|
957
|
+
}), _ = x(() => {
|
|
958
|
+
var w;
|
|
959
|
+
return (w = n.user) == null ? void 0 : w.sponsorships.find((L) => L.platform === "stripe" && L.tierName.startsWith("sub_"));
|
|
960
|
+
}), y = x(() => {
|
|
961
|
+
var w;
|
|
962
|
+
return !!((w = _.value) != null && w.tierName);
|
|
963
|
+
}), $ = x(() => {
|
|
964
|
+
var w;
|
|
965
|
+
return ((w = n.user) == null ? void 0 : w.sponsorships.reduce((L, G) => {
|
|
966
|
+
if (!G.isActive || G.interval === "once" || G.platform === "stripe") return L;
|
|
967
|
+
const Ie = G.interval === "month" ? G.amount : G.amount / 12;
|
|
968
|
+
return L + Ie / 100;
|
|
972
969
|
}, 0)) ?? 0;
|
|
973
|
-
}),
|
|
974
|
-
var
|
|
975
|
-
return (
|
|
976
|
-
}),
|
|
977
|
-
var
|
|
978
|
-
return (
|
|
979
|
-
}),
|
|
980
|
-
var
|
|
981
|
-
return (
|
|
982
|
-
}),
|
|
983
|
-
var
|
|
984
|
-
return (
|
|
985
|
-
}),
|
|
986
|
-
var
|
|
987
|
-
return (
|
|
988
|
-
}),
|
|
989
|
-
var
|
|
990
|
-
return !o.url || ((
|
|
970
|
+
}), g = x(() => {
|
|
971
|
+
var w;
|
|
972
|
+
return (w = n.user) == null ? void 0 : w.sponsorships.find((L) => L.tierName.startsWith("sub_") && L.isActive);
|
|
973
|
+
}), f = x(() => {
|
|
974
|
+
var w;
|
|
975
|
+
return (w = n.user) == null ? void 0 : w.sponsorships.find((L) => L.platform === "github" && L.isActive);
|
|
976
|
+
}), v = x(() => {
|
|
977
|
+
var w;
|
|
978
|
+
return (w = n.user) == null ? void 0 : w.sponsorships.find((L) => L.platform === "discord" && L.isActive);
|
|
979
|
+
}), b = x(() => {
|
|
980
|
+
var w;
|
|
981
|
+
return (w = n.user) == null ? void 0 : w.identities.find((L) => L.provider === "shopify");
|
|
982
|
+
}), M = x(() => {
|
|
983
|
+
var w;
|
|
984
|
+
return (w = n.user) == null ? void 0 : w.sponsorships.find((L) => L.platform === "patreon" && L.isActive);
|
|
985
|
+
}), D = x(() => {
|
|
986
|
+
var w, L, G, Ie, nt;
|
|
987
|
+
return !o.url || ((w = n.user) == null ? void 0 : w.isAdmin) || ((L = _.value) == null ? void 0 : L.isActive) || ((G = f.value) == null ? void 0 : G.isActive) || ((Ie = v.value) == null ? void 0 : Ie.isActive) || ((nt = M.value) == null ? void 0 : nt.isActive) || $.value >= 2.99;
|
|
991
988
|
});
|
|
992
|
-
|
|
993
|
-
p.value && await
|
|
994
|
-
}),
|
|
995
|
-
|
|
996
|
-
}, { immediate: !0 }),
|
|
997
|
-
if (
|
|
989
|
+
Ue(async () => {
|
|
990
|
+
p.value && await H();
|
|
991
|
+
}), z(a, ot), z(p, (w) => {
|
|
992
|
+
w && H();
|
|
993
|
+
}, { immediate: !0 }), z(c, (w) => {
|
|
994
|
+
if (w.one !== "subscribe" || n.user) return;
|
|
998
995
|
n.dialog = !0;
|
|
999
|
-
const
|
|
1000
|
-
|
|
996
|
+
const L = z(() => n.user, (G) => {
|
|
997
|
+
G && (n.dialog = !1, L());
|
|
1001
998
|
});
|
|
1002
|
-
}, { immediate: !0 }),
|
|
1003
|
-
|
|
999
|
+
}, { immediate: !0 }), z(D, (w, L) => {
|
|
1000
|
+
w === !1 && L !== !0 || ne();
|
|
1004
1001
|
});
|
|
1005
|
-
async function
|
|
1002
|
+
async function H() {
|
|
1006
1003
|
try {
|
|
1007
1004
|
s.value = !0;
|
|
1008
|
-
const
|
|
1009
|
-
n.user =
|
|
1010
|
-
const
|
|
1011
|
-
|
|
1005
|
+
const w = await o.post("/one/activate", { sessionId: p.value });
|
|
1006
|
+
n.user = w.user;
|
|
1007
|
+
const L = new URL(window.location.href);
|
|
1008
|
+
L.searchParams.delete("session_id"), history.pushState(null, "", L.toString()), he();
|
|
1012
1009
|
} catch {
|
|
1013
1010
|
} finally {
|
|
1014
1011
|
s.value = !1;
|
|
@@ -1017,46 +1014,46 @@ const Z = W("one", () => {
|
|
|
1017
1014
|
async function ie() {
|
|
1018
1015
|
window.open(`${o.url}/one/manage`, "_blank");
|
|
1019
1016
|
}
|
|
1020
|
-
async function re(
|
|
1021
|
-
s.value = !0, window.location.href = `${o.url}/one/subscribe?interval=${
|
|
1017
|
+
async function re(w) {
|
|
1018
|
+
s.value = !0, window.location.href = `${o.url}/one/subscribe?interval=${w}`;
|
|
1022
1019
|
}
|
|
1023
1020
|
async function le() {
|
|
1024
|
-
var
|
|
1025
|
-
if (
|
|
1021
|
+
var w;
|
|
1022
|
+
if (_.value)
|
|
1026
1023
|
try {
|
|
1027
1024
|
s.value = !0;
|
|
1028
|
-
const
|
|
1029
|
-
`/one/cancel?subscriptionId=${(
|
|
1025
|
+
const L = await o.post(
|
|
1026
|
+
`/one/cancel?subscriptionId=${(w = _.value) == null ? void 0 : w.tierName}`
|
|
1030
1027
|
);
|
|
1031
|
-
n.user =
|
|
1028
|
+
n.user = L.user;
|
|
1032
1029
|
} catch {
|
|
1033
1030
|
} finally {
|
|
1034
1031
|
s.value = !1;
|
|
1035
1032
|
}
|
|
1036
1033
|
}
|
|
1037
|
-
async function ce(
|
|
1038
|
-
if (
|
|
1034
|
+
async function ce(w) {
|
|
1035
|
+
if (_.value)
|
|
1039
1036
|
try {
|
|
1040
1037
|
s.value = !0;
|
|
1041
|
-
const
|
|
1042
|
-
subscriptionId:
|
|
1043
|
-
interval:
|
|
1038
|
+
const L = await o.post("/one/modify", {
|
|
1039
|
+
subscriptionId: _.value.tierName,
|
|
1040
|
+
interval: w
|
|
1044
1041
|
});
|
|
1045
|
-
n.user =
|
|
1042
|
+
n.user = L.user;
|
|
1046
1043
|
} catch {
|
|
1047
1044
|
} finally {
|
|
1048
1045
|
s.value = !1;
|
|
1049
1046
|
}
|
|
1050
1047
|
}
|
|
1051
1048
|
async function ne() {
|
|
1052
|
-
var
|
|
1053
|
-
if (
|
|
1049
|
+
var w;
|
|
1050
|
+
if (_.value)
|
|
1054
1051
|
try {
|
|
1055
1052
|
s.value = !0;
|
|
1056
|
-
const
|
|
1057
|
-
`/one/verify?subscriptionId=${(
|
|
1053
|
+
const L = await o.post(
|
|
1054
|
+
`/one/verify?subscriptionId=${(w = _.value) == null ? void 0 : w.tierName}`
|
|
1058
1055
|
);
|
|
1059
|
-
n.user =
|
|
1056
|
+
n.user = L.user;
|
|
1060
1057
|
} catch {
|
|
1061
1058
|
} finally {
|
|
1062
1059
|
s.value = !1;
|
|
@@ -1065,14 +1062,14 @@ const Z = W("one", () => {
|
|
|
1065
1062
|
async function he() {
|
|
1066
1063
|
try {
|
|
1067
1064
|
s.value = !0;
|
|
1068
|
-
const
|
|
1069
|
-
return l.value =
|
|
1065
|
+
const w = await o.get("/one/info");
|
|
1066
|
+
return l.value = w.subscription, d.value = w.invoices, w;
|
|
1070
1067
|
} catch {
|
|
1071
1068
|
} finally {
|
|
1072
1069
|
s.value = !1;
|
|
1073
1070
|
}
|
|
1074
1071
|
}
|
|
1075
|
-
function
|
|
1072
|
+
function ot() {
|
|
1076
1073
|
e.push({
|
|
1077
1074
|
query: {
|
|
1078
1075
|
...c.value,
|
|
@@ -1085,28 +1082,28 @@ const Z = W("one", () => {
|
|
|
1085
1082
|
interval: m,
|
|
1086
1083
|
invoices: d,
|
|
1087
1084
|
sessionId: p,
|
|
1088
|
-
subscription:
|
|
1089
|
-
monthlyTotal:
|
|
1090
|
-
hasBilling:
|
|
1085
|
+
subscription: _,
|
|
1086
|
+
monthlyTotal: $,
|
|
1087
|
+
hasBilling: y,
|
|
1091
1088
|
isLoading: s,
|
|
1092
1089
|
isOpen: a,
|
|
1093
|
-
isSubscriber:
|
|
1094
|
-
github:
|
|
1095
|
-
patreon:
|
|
1096
|
-
discord:
|
|
1097
|
-
shopify:
|
|
1098
|
-
one:
|
|
1099
|
-
activate:
|
|
1090
|
+
isSubscriber: D,
|
|
1091
|
+
github: f,
|
|
1092
|
+
patreon: M,
|
|
1093
|
+
discord: v,
|
|
1094
|
+
shopify: b,
|
|
1095
|
+
one: g,
|
|
1096
|
+
activate: H,
|
|
1100
1097
|
cancel: le,
|
|
1101
1098
|
manage: ie,
|
|
1102
1099
|
modify: ce,
|
|
1103
|
-
resetQuery:
|
|
1100
|
+
resetQuery: ot,
|
|
1104
1101
|
subscribe: re,
|
|
1105
1102
|
subscriptionInfo: he,
|
|
1106
1103
|
verify: ne
|
|
1107
1104
|
};
|
|
1108
1105
|
});
|
|
1109
|
-
function
|
|
1106
|
+
function an() {
|
|
1110
1107
|
return {
|
|
1111
1108
|
blackguard: {
|
|
1112
1109
|
dark: !0,
|
|
@@ -1241,7 +1238,7 @@ function sn() {
|
|
|
1241
1238
|
warning: "#ecb85b"
|
|
1242
1239
|
},
|
|
1243
1240
|
variables: {
|
|
1244
|
-
"border-color": "#
|
|
1241
|
+
"border-color": "#000000",
|
|
1245
1242
|
"border-opacity": 0.24,
|
|
1246
1243
|
"high-emphasis-opacity": 1,
|
|
1247
1244
|
"medium-emphasis-opacity": 0.87,
|
|
@@ -1263,20 +1260,20 @@ function sn() {
|
|
|
1263
1260
|
dark: !0,
|
|
1264
1261
|
colors: {
|
|
1265
1262
|
background: "#000000",
|
|
1266
|
-
surface: "#
|
|
1263
|
+
surface: "#121212",
|
|
1267
1264
|
primary: "#ffD700",
|
|
1268
1265
|
"primary-darken-1": "#e6c300",
|
|
1269
|
-
secondary: "#
|
|
1266
|
+
secondary: "#00ccdd",
|
|
1270
1267
|
"secondary-darken-1": "#00e600",
|
|
1271
1268
|
accent: "#ff00ff",
|
|
1272
1269
|
info: "#31aaff",
|
|
1273
1270
|
warning: "#ffaa00",
|
|
1274
1271
|
error: "#ff0000",
|
|
1275
1272
|
success: "#00ff00",
|
|
1276
|
-
"on-surface-variant": "#
|
|
1277
|
-
"surface-light": "#
|
|
1278
|
-
"surface-bright": "#
|
|
1279
|
-
"surface-variant": "#
|
|
1273
|
+
"on-surface-variant": "#ffffff",
|
|
1274
|
+
"surface-light": "#222222",
|
|
1275
|
+
"surface-bright": "#000000",
|
|
1276
|
+
"surface-variant": "#333333"
|
|
1280
1277
|
},
|
|
1281
1278
|
variables: {
|
|
1282
1279
|
"border-color": "#ffffff",
|
|
@@ -1299,8 +1296,8 @@ function sn() {
|
|
|
1299
1296
|
}
|
|
1300
1297
|
};
|
|
1301
1298
|
}
|
|
1302
|
-
const
|
|
1303
|
-
const c = "https://cdn.vuetifyjs.com/docs/images/one/", e =
|
|
1299
|
+
const je = q("settings", () => {
|
|
1300
|
+
const c = "https://cdn.vuetifyjs.com/docs/images/one/", e = j(), n = F(), o = Fe(), s = an(), a = {
|
|
1304
1301
|
blackguard: {
|
|
1305
1302
|
"app-bar": c + "suits/blackguard/blackguard-app-bar.png",
|
|
1306
1303
|
drawer: c + "suits/blackguard/blackguard-app-drawer.png",
|
|
@@ -1321,7 +1318,7 @@ const Ze = W("settings", () => {
|
|
|
1321
1318
|
drawer: c + "suits/odyssey/odyssey-app-drawer.png",
|
|
1322
1319
|
footer: c + "suits/odyssey/odyssey-app-footer.png"
|
|
1323
1320
|
}
|
|
1324
|
-
}, l =
|
|
1321
|
+
}, l = x(() => {
|
|
1325
1322
|
if (!n.suits.suit || !n.suits.show || !e.isSubscriber) return {};
|
|
1326
1323
|
const d = a[n.suits.suit.toLowerCase()], p = {};
|
|
1327
1324
|
for (const m of n.suits.elements)
|
|
@@ -1331,13 +1328,13 @@ const Ze = W("settings", () => {
|
|
|
1331
1328
|
return o.themes.value = {
|
|
1332
1329
|
...o.themes.value,
|
|
1333
1330
|
...s
|
|
1334
|
-
},
|
|
1331
|
+
}, z(() => n.theme, (d) => {
|
|
1335
1332
|
d === "system" ? o.global.name.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : (o.global.name.value = d, n.suits.suit = a[d] ? d : ""), n.theme = d;
|
|
1336
1333
|
}, { immediate: !0 }), {
|
|
1337
1334
|
suit: l,
|
|
1338
1335
|
CDN_URL: c
|
|
1339
1336
|
};
|
|
1340
|
-
}),
|
|
1337
|
+
}), rn = { class: "ms-5" }, ln = { class: "pb-2" }, cn = /* @__PURE__ */ k({
|
|
1341
1338
|
__name: "VoSettingsDialog",
|
|
1342
1339
|
props: {
|
|
1343
1340
|
modelValue: { type: Boolean },
|
|
@@ -1345,42 +1342,42 @@ const Ze = W("settings", () => {
|
|
|
1345
1342
|
},
|
|
1346
1343
|
emits: ["update:modelValue"],
|
|
1347
1344
|
setup(c) {
|
|
1348
|
-
const e = pe(c, "modelValue"), n =
|
|
1345
|
+
const e = pe(c, "modelValue"), n = j(), o = je(), s = F(), a = x(() => [
|
|
1349
1346
|
{
|
|
1350
1347
|
title: "Light",
|
|
1351
1348
|
subtitle: "A standard light theme.",
|
|
1352
1349
|
image: o.CDN_URL + "themes/light.png",
|
|
1353
|
-
prependIcon: `svg:${
|
|
1350
|
+
prependIcon: `svg:${Qt}`,
|
|
1354
1351
|
value: "light"
|
|
1355
1352
|
},
|
|
1356
1353
|
{
|
|
1357
1354
|
title: "Dark",
|
|
1358
1355
|
subtitle: "A standard dark theme.",
|
|
1359
1356
|
image: o.CDN_URL + "themes/dark.png",
|
|
1360
|
-
prependIcon: `svg:${
|
|
1357
|
+
prependIcon: `svg:${Yt}`,
|
|
1361
1358
|
value: "dark"
|
|
1362
1359
|
},
|
|
1363
1360
|
{
|
|
1364
1361
|
title: "System",
|
|
1365
1362
|
subtitle: "A theme based on the system preference.",
|
|
1366
1363
|
image: o.CDN_URL + "themes/system.png",
|
|
1367
|
-
prependIcon: `svg:${
|
|
1364
|
+
prependIcon: `svg:${Jt}`,
|
|
1368
1365
|
value: "system"
|
|
1369
1366
|
},
|
|
1370
1367
|
{
|
|
1371
1368
|
title: "High Contrast",
|
|
1372
1369
|
subtitle: "A theme for high contrast.",
|
|
1373
1370
|
image: o.CDN_URL + "themes/high-contrast.png",
|
|
1374
|
-
prependIcon: `svg:${
|
|
1371
|
+
prependIcon: `svg:${Xt}`,
|
|
1375
1372
|
value: "highContrast",
|
|
1376
1373
|
disabled: !n.isSubscriber
|
|
1377
1374
|
}
|
|
1378
|
-
]), l =
|
|
1375
|
+
]), l = x(() => [
|
|
1379
1376
|
{
|
|
1380
1377
|
title: "Blackguard",
|
|
1381
1378
|
subtitle: "A theme for v3.4 Blackguard.",
|
|
1382
1379
|
image: o.CDN_URL + "themes/blackguard.png",
|
|
1383
|
-
prependIcon: `svg:${
|
|
1380
|
+
prependIcon: `svg:${it}`,
|
|
1384
1381
|
value: "blackguard",
|
|
1385
1382
|
disabled: !n.isSubscriber
|
|
1386
1383
|
},
|
|
@@ -1388,7 +1385,7 @@ const Ze = W("settings", () => {
|
|
|
1388
1385
|
title: "Polaris",
|
|
1389
1386
|
subtitle: "A theme for v3.5 Polaris.",
|
|
1390
1387
|
image: o.CDN_URL + "themes/polaris.png",
|
|
1391
|
-
prependIcon: `svg:${
|
|
1388
|
+
prependIcon: `svg:${rt}`,
|
|
1392
1389
|
value: "polaris",
|
|
1393
1390
|
disabled: !n.isSubscriber
|
|
1394
1391
|
},
|
|
@@ -1396,7 +1393,7 @@ const Ze = W("settings", () => {
|
|
|
1396
1393
|
title: "Nebula",
|
|
1397
1394
|
subtitle: "A theme for v3.6 Nebula.",
|
|
1398
1395
|
image: o.CDN_URL + "themes/nebula.png",
|
|
1399
|
-
prependIcon: `svg:${
|
|
1396
|
+
prependIcon: `svg:${lt}`,
|
|
1400
1397
|
value: "nebula",
|
|
1401
1398
|
disabled: !n.isSubscriber
|
|
1402
1399
|
},
|
|
@@ -1404,80 +1401,80 @@ const Ze = W("settings", () => {
|
|
|
1404
1401
|
title: "Odyssey",
|
|
1405
1402
|
subtitle: "A theme for v3.7 Odyssey.",
|
|
1406
1403
|
image: o.CDN_URL + "themes/odyssey.png",
|
|
1407
|
-
prependIcon: `svg:${
|
|
1404
|
+
prependIcon: `svg:${ct}`,
|
|
1408
1405
|
value: "odyssey",
|
|
1409
1406
|
disabled: !n.isSubscriber
|
|
1410
1407
|
}
|
|
1411
|
-
]), d =
|
|
1408
|
+
]), d = x(() => [
|
|
1412
1409
|
{ title: "Standard", items: a.value },
|
|
1413
1410
|
{ title: "Releases", items: l.value }
|
|
1414
|
-
]), p =
|
|
1415
|
-
|
|
1416
|
-
p.value.one === "settings" && (n.isOpen = !0, await
|
|
1411
|
+
]), p = Le();
|
|
1412
|
+
z(p, async () => {
|
|
1413
|
+
p.value.one === "settings" && (n.isOpen = !0, await be(), e.value = !0);
|
|
1417
1414
|
}, { immediate: !0 });
|
|
1418
|
-
function m(
|
|
1419
|
-
|
|
1415
|
+
function m(_, y) {
|
|
1416
|
+
y.disabled || (s.theme = y.value, _ == null || _());
|
|
1420
1417
|
}
|
|
1421
|
-
return (
|
|
1422
|
-
const
|
|
1423
|
-
return u(), v
|
|
1418
|
+
return (_, y) => {
|
|
1419
|
+
const $ = _e, g = sn, f = xt, v = Se;
|
|
1420
|
+
return u(), h(v, {
|
|
1424
1421
|
modelValue: e.value,
|
|
1425
|
-
"onUpdate:modelValue":
|
|
1426
|
-
"prepend-icon": `svg:${t(
|
|
1422
|
+
"onUpdate:modelValue": y[6] || (y[6] = (b) => e.value = b),
|
|
1423
|
+
"prepend-icon": `svg:${t(Kt)}`,
|
|
1427
1424
|
title: "Settings"
|
|
1428
1425
|
}, {
|
|
1429
1426
|
default: r(() => [
|
|
1430
|
-
i(
|
|
1427
|
+
i(we, null, {
|
|
1431
1428
|
default: r(() => [
|
|
1432
|
-
i(
|
|
1429
|
+
i(xe, { scrollable: "" }, {
|
|
1433
1430
|
default: r(() => [
|
|
1434
1431
|
i(ue, { class: "px-7" }, {
|
|
1435
1432
|
default: r(() => [
|
|
1436
|
-
i(
|
|
1433
|
+
i($, {
|
|
1437
1434
|
text: "Customize your documentation experience with light and dark themes, as well as a combination of both named.",
|
|
1438
1435
|
title: "Theme"
|
|
1439
1436
|
}),
|
|
1440
|
-
i(
|
|
1437
|
+
i(vt, {
|
|
1441
1438
|
modelValue: t(s).theme,
|
|
1442
|
-
"onUpdate:modelValue":
|
|
1439
|
+
"onUpdate:modelValue": y[0] || (y[0] = (b) => t(s).theme = b),
|
|
1443
1440
|
mandatory: ""
|
|
1444
1441
|
}, {
|
|
1445
1442
|
default: r(() => [
|
|
1446
|
-
i(
|
|
1443
|
+
i($e, { dense: "" }, {
|
|
1447
1444
|
default: r(() => [
|
|
1448
|
-
(u(!0),
|
|
1449
|
-
key:
|
|
1445
|
+
(u(!0), I(T, null, K(d.value, (b, M) => (u(), h(de, {
|
|
1446
|
+
key: M,
|
|
1450
1447
|
class: "d-flex flex-column ga-3",
|
|
1451
1448
|
cols: "12",
|
|
1452
1449
|
md: "6"
|
|
1453
1450
|
}, {
|
|
1454
1451
|
default: r(() => [
|
|
1455
|
-
i(
|
|
1452
|
+
i(wo, { class: "mb-n4" }, {
|
|
1456
1453
|
default: r(() => [
|
|
1457
|
-
|
|
1454
|
+
N(S(b.title), 1)
|
|
1458
1455
|
]),
|
|
1459
1456
|
_: 2
|
|
1460
1457
|
}, 1024),
|
|
1461
|
-
(u(!0),
|
|
1462
|
-
key:
|
|
1463
|
-
value:
|
|
1458
|
+
(u(!0), I(T, null, K(b.items, (D) => (u(), h(qe, {
|
|
1459
|
+
key: D.value,
|
|
1460
|
+
value: D.value
|
|
1464
1461
|
}, {
|
|
1465
|
-
default: r(({ toggle:
|
|
1466
|
-
i(
|
|
1462
|
+
default: r(({ toggle: H, isSelected: ie }) => [
|
|
1463
|
+
i(Me, null, {
|
|
1467
1464
|
default: r(({ props: re, isHovering: le }) => [
|
|
1468
|
-
i(
|
|
1465
|
+
i(W, E({
|
|
1469
1466
|
color: ie ? "primary" : "surface-variant",
|
|
1470
1467
|
height: "76",
|
|
1471
|
-
image:
|
|
1472
|
-
"prepend-icon":
|
|
1473
|
-
readonly:
|
|
1474
|
-
ripple: !
|
|
1475
|
-
subtitle:
|
|
1476
|
-
title:
|
|
1468
|
+
image: D.image,
|
|
1469
|
+
"prepend-icon": D.prependIcon,
|
|
1470
|
+
readonly: D.disabled,
|
|
1471
|
+
ripple: !D.disabled,
|
|
1472
|
+
subtitle: D.disabled ? "🔓 Unlock with Vuetify One" : D.subtitle,
|
|
1473
|
+
title: D.title,
|
|
1477
1474
|
variant: "tonal",
|
|
1478
1475
|
ref_for: !0
|
|
1479
1476
|
}, re, {
|
|
1480
|
-
onClick: (ce) => m(
|
|
1477
|
+
onClick: (ce) => m(H, D)
|
|
1481
1478
|
}), {
|
|
1482
1479
|
image: r(() => [
|
|
1483
1480
|
i(te, {
|
|
@@ -1503,80 +1500,80 @@ const Ze = W("settings", () => {
|
|
|
1503
1500
|
]),
|
|
1504
1501
|
_: 1
|
|
1505
1502
|
}, 8, ["modelValue"]),
|
|
1506
|
-
t(n).isSubscriber ? (u(),
|
|
1507
|
-
i(
|
|
1508
|
-
i(
|
|
1509
|
-
], 64)) :
|
|
1503
|
+
t(n).isSubscriber ? (u(), I(T, { key: 0 }, [
|
|
1504
|
+
i(Q, { class: "mt-6 mb-4" }),
|
|
1505
|
+
i(g)
|
|
1506
|
+
], 64)) : C("", !0)
|
|
1510
1507
|
]),
|
|
1511
1508
|
_: 1
|
|
1512
1509
|
}),
|
|
1513
|
-
i(
|
|
1510
|
+
i(Q),
|
|
1514
1511
|
i(ue, { class: "px-7" }, {
|
|
1515
1512
|
default: r(() => [
|
|
1516
|
-
i(
|
|
1513
|
+
i($, {
|
|
1517
1514
|
text: "These options change your browsing experience within Vuetify properties",
|
|
1518
1515
|
title: "Experience"
|
|
1519
1516
|
}),
|
|
1520
|
-
t(n).isSubscriber ? (u(),
|
|
1517
|
+
t(n).isSubscriber ? (u(), h(f, {
|
|
1521
1518
|
key: 0,
|
|
1522
1519
|
modelValue: t(s).disableAds,
|
|
1523
|
-
"onUpdate:modelValue":
|
|
1520
|
+
"onUpdate:modelValue": y[1] || (y[1] = (b) => t(s).disableAds = b),
|
|
1524
1521
|
class: "mb-2",
|
|
1525
1522
|
label: "Disable Ads",
|
|
1526
1523
|
messages: "Disable traditional advertisements on all documentation pages."
|
|
1527
|
-
}, null, 8, ["modelValue"])) :
|
|
1524
|
+
}, null, 8, ["modelValue"])) : C("", !0),
|
|
1528
1525
|
i(fe, null, {
|
|
1529
1526
|
default: r(() => [
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
i(
|
|
1527
|
+
Ve(V("div", rn, [
|
|
1528
|
+
V("div", ln, [
|
|
1529
|
+
i(f, {
|
|
1533
1530
|
modelValue: t(s).showHouseAds,
|
|
1534
|
-
"onUpdate:modelValue":
|
|
1531
|
+
"onUpdate:modelValue": y[2] || (y[2] = (b) => t(s).showHouseAds = b),
|
|
1535
1532
|
label: "Show House Ads",
|
|
1536
1533
|
messages: "These advertisements are for Vuetify products and services only."
|
|
1537
1534
|
}, null, 8, ["modelValue"])
|
|
1538
1535
|
])
|
|
1539
1536
|
], 512), [
|
|
1540
|
-
[
|
|
1537
|
+
[Oe, t(s).disableAds]
|
|
1541
1538
|
])
|
|
1542
1539
|
]),
|
|
1543
1540
|
_: 1
|
|
1544
1541
|
}),
|
|
1545
|
-
i(
|
|
1542
|
+
i(f, {
|
|
1546
1543
|
modelValue: t(s).quickbar,
|
|
1547
|
-
"onUpdate:modelValue":
|
|
1544
|
+
"onUpdate:modelValue": y[3] || (y[3] = (b) => t(s).quickbar = b),
|
|
1548
1545
|
label: "Enable Quick Actions",
|
|
1549
1546
|
messages: "Quick actions are located on the Vuetify One user menu and provide quick access to common tasks."
|
|
1550
1547
|
}, null, 8, ["modelValue"])
|
|
1551
1548
|
]),
|
|
1552
1549
|
_: 1
|
|
1553
1550
|
}),
|
|
1554
|
-
i(
|
|
1555
|
-
t(n).isSubscriber ? (u(),
|
|
1551
|
+
i(Q),
|
|
1552
|
+
t(n).isSubscriber ? (u(), h(ue, {
|
|
1556
1553
|
key: 0,
|
|
1557
1554
|
class: "px-7"
|
|
1558
1555
|
}, {
|
|
1559
1556
|
default: r(() => [
|
|
1560
|
-
i(
|
|
1557
|
+
i($, {
|
|
1561
1558
|
text: "Vuetify will communicate with you through banners and notifications. You can disable these features here or reset your local notification cache.",
|
|
1562
1559
|
title: "Communication"
|
|
1563
1560
|
}),
|
|
1564
|
-
i(
|
|
1561
|
+
i(f, {
|
|
1565
1562
|
modelValue: t(s).notifications.show,
|
|
1566
|
-
"onUpdate:modelValue":
|
|
1563
|
+
"onUpdate:modelValue": y[4] || (y[4] = (b) => t(s).notifications.show = b),
|
|
1567
1564
|
class: "mb-2",
|
|
1568
1565
|
label: "Enable Notifications",
|
|
1569
1566
|
messages: "Notifications are short form messages that provide information about new releases, updates, and other important information."
|
|
1570
1567
|
}, null, 8, ["modelValue"]),
|
|
1571
|
-
i(
|
|
1568
|
+
i(f, {
|
|
1572
1569
|
modelValue: t(s).notifications.banners,
|
|
1573
|
-
"onUpdate:modelValue":
|
|
1570
|
+
"onUpdate:modelValue": y[5] || (y[5] = (b) => t(s).notifications.banners = b),
|
|
1574
1571
|
label: "Enable Banners",
|
|
1575
1572
|
messages: "Banners are located at the top of the screen and provide a callout for important information."
|
|
1576
1573
|
}, null, 8, ["modelValue"])
|
|
1577
1574
|
]),
|
|
1578
1575
|
_: 1
|
|
1579
|
-
})) :
|
|
1576
|
+
})) : C("", !0)
|
|
1580
1577
|
]),
|
|
1581
1578
|
_: 1
|
|
1582
1579
|
})
|
|
@@ -1588,16 +1585,16 @@ const Ze = W("settings", () => {
|
|
|
1588
1585
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
1589
1586
|
};
|
|
1590
1587
|
}
|
|
1591
|
-
}),
|
|
1588
|
+
}), un = /* @__PURE__ */ k({
|
|
1592
1589
|
__name: "VoSettingsListItem",
|
|
1593
1590
|
setup(c) {
|
|
1594
|
-
const e =
|
|
1591
|
+
const e = A(!1);
|
|
1595
1592
|
return (n, o) => {
|
|
1596
|
-
const s =
|
|
1597
|
-
return u(),
|
|
1593
|
+
const s = cn, a = Y;
|
|
1594
|
+
return u(), h(a, {
|
|
1598
1595
|
active: t(e),
|
|
1599
1596
|
link: "",
|
|
1600
|
-
"prepend-icon": `svg:${t(
|
|
1597
|
+
"prepend-icon": `svg:${t(eo)}`,
|
|
1601
1598
|
title: "Settings"
|
|
1602
1599
|
}, {
|
|
1603
1600
|
default: r(() => [
|
|
@@ -1610,13 +1607,13 @@ const Ze = W("settings", () => {
|
|
|
1610
1607
|
}, 8, ["active", "prepend-icon"]);
|
|
1611
1608
|
};
|
|
1612
1609
|
}
|
|
1613
|
-
}),
|
|
1610
|
+
}), dn = { class: "text-caption" }, pn = /* @__PURE__ */ k({
|
|
1614
1611
|
__name: "VoSubscriptionInvoices",
|
|
1615
1612
|
setup(c) {
|
|
1616
|
-
const e =
|
|
1613
|
+
const e = ke(), n = j();
|
|
1617
1614
|
return (o, s) => {
|
|
1618
1615
|
const a = _e;
|
|
1619
|
-
return u(),
|
|
1616
|
+
return u(), h($e, null, {
|
|
1620
1617
|
default: r(() => [
|
|
1621
1618
|
i(de, { cols: "12" }, {
|
|
1622
1619
|
default: r(() => [
|
|
@@ -1624,22 +1621,22 @@ const Ze = W("settings", () => {
|
|
|
1624
1621
|
text: "View and download your invoice history.",
|
|
1625
1622
|
title: "Invoice History"
|
|
1626
1623
|
}),
|
|
1627
|
-
i(
|
|
1624
|
+
i(W, {
|
|
1628
1625
|
border: "",
|
|
1629
1626
|
height: "450",
|
|
1630
1627
|
rounded: "lg"
|
|
1631
1628
|
}, {
|
|
1632
1629
|
default: r(() => [
|
|
1633
|
-
i(
|
|
1630
|
+
i(_t, {
|
|
1634
1631
|
items: t(n).invoices,
|
|
1635
1632
|
loading: t(n).isLoading,
|
|
1636
1633
|
sticky: ""
|
|
1637
1634
|
}, {
|
|
1638
1635
|
"item.date": r(({ item: l }) => [
|
|
1639
|
-
|
|
1636
|
+
V("div", dn, S(t(e).format(new Date(l.date * 1e3), "fullDateWithWeekday")), 1)
|
|
1640
1637
|
]),
|
|
1641
1638
|
"item.amount": r(({ item: l }) => [
|
|
1642
|
-
|
|
1639
|
+
N(" $" + S(l.amount / 100), 1)
|
|
1643
1640
|
]),
|
|
1644
1641
|
"item.status": r(({ item: l }) => [
|
|
1645
1642
|
i(X, {
|
|
@@ -1653,9 +1650,9 @@ const Ze = W("settings", () => {
|
|
|
1653
1650
|
}, null, 8, ["text"])
|
|
1654
1651
|
]),
|
|
1655
1652
|
"item.pdf": r(({ item: l }) => [
|
|
1656
|
-
i(
|
|
1653
|
+
i(Z, {
|
|
1657
1654
|
href: l.pdf,
|
|
1658
|
-
icon: `svg:${t(
|
|
1655
|
+
icon: `svg:${t(to)}`,
|
|
1659
1656
|
size: "small",
|
|
1660
1657
|
target: "_blank",
|
|
1661
1658
|
variant: "text"
|
|
@@ -1674,14 +1671,14 @@ const Ze = W("settings", () => {
|
|
|
1674
1671
|
});
|
|
1675
1672
|
};
|
|
1676
1673
|
}
|
|
1677
|
-
}),
|
|
1674
|
+
}), mn = { class: "d-flex align-center" }, fn = {
|
|
1678
1675
|
key: "status",
|
|
1679
1676
|
class: "text-capitalize hidden-sm-and-down"
|
|
1680
|
-
},
|
|
1677
|
+
}, vn = /* @__PURE__ */ V("span", { class: "mx-1 hidden-sm-and-down" }, "—", -1), _n = { class: "me-1" }, hn = { class: "text-medium-emphasis text-caption" }, gn = { class: "d-flex align-center" }, yn = /* @__PURE__ */ V("span", { class: "mx-1" }, "—", -1), bn = { class: "d-flex align-start justify-space-between text-caption py-2" }, Vn = { class: "font-weight-bold" }, kn = { class: "font-weight-bold" }, $n = /* @__PURE__ */ k({
|
|
1681
1678
|
__name: "VoSubscriptionStatus",
|
|
1682
1679
|
emits: ["change:subscription"],
|
|
1683
1680
|
setup(c, { emit: e }) {
|
|
1684
|
-
const n =
|
|
1681
|
+
const n = ke(), o = j(), s = e, a = x(() => {
|
|
1685
1682
|
if (!o.info) return;
|
|
1686
1683
|
const d = new Date(o.info.currentPeriodEnd * 1e3);
|
|
1687
1684
|
return n.format(d, "keyboardDate");
|
|
@@ -1690,24 +1687,24 @@ const Ze = W("settings", () => {
|
|
|
1690
1687
|
o.interval && (o.isLoading = !0, o.subscribe(o.interval));
|
|
1691
1688
|
}
|
|
1692
1689
|
return (d, p) => {
|
|
1693
|
-
const m =
|
|
1694
|
-
return u(),
|
|
1690
|
+
const m = Ce;
|
|
1691
|
+
return u(), h($e, null, {
|
|
1695
1692
|
default: r(() => [
|
|
1696
1693
|
i(de, { cols: "12" }, {
|
|
1697
1694
|
default: r(() => {
|
|
1698
|
-
var
|
|
1695
|
+
var _, y;
|
|
1699
1696
|
return [
|
|
1700
|
-
i(
|
|
1697
|
+
i(W, {
|
|
1701
1698
|
border: "",
|
|
1702
1699
|
flat: "",
|
|
1703
1700
|
"prepend-icon": "$vuetify",
|
|
1704
1701
|
rounded: "lg",
|
|
1705
1702
|
title: "Subscription Status"
|
|
1706
|
-
},
|
|
1703
|
+
}, R({
|
|
1707
1704
|
append: r(() => {
|
|
1708
|
-
var
|
|
1705
|
+
var $;
|
|
1709
1706
|
return [
|
|
1710
|
-
t(o).hasBilling && ((
|
|
1707
|
+
t(o).hasBilling && (($ = t(o).info) == null ? void 0 : $.status) === "canceled" ? (u(), h(m, {
|
|
1711
1708
|
key: 0,
|
|
1712
1709
|
class: "me-2",
|
|
1713
1710
|
color: "success",
|
|
@@ -1716,14 +1713,14 @@ const Ze = W("settings", () => {
|
|
|
1716
1713
|
text: "Activate",
|
|
1717
1714
|
variant: "outlined",
|
|
1718
1715
|
onClick: l
|
|
1719
|
-
}, null, 8, ["loading"])) :
|
|
1720
|
-
t(o).hasBilling ? (u(),
|
|
1716
|
+
}, null, 8, ["loading"])) : C("", !0),
|
|
1717
|
+
t(o).hasBilling ? (u(), h(m, {
|
|
1721
1718
|
key: 1,
|
|
1722
1719
|
loading: t(o).isLoading,
|
|
1723
|
-
"prepend-icon": `svg:${t(
|
|
1720
|
+
"prepend-icon": `svg:${t(oo)}`,
|
|
1724
1721
|
text: "Billing",
|
|
1725
1722
|
onClick: t(o).manage
|
|
1726
|
-
}, null, 8, ["loading", "prepend-icon", "onClick"])) :
|
|
1723
|
+
}, null, 8, ["loading", "prepend-icon", "onClick"])) : C("", !0)
|
|
1727
1724
|
];
|
|
1728
1725
|
}),
|
|
1729
1726
|
_: 2
|
|
@@ -1731,34 +1728,34 @@ const Ze = W("settings", () => {
|
|
|
1731
1728
|
t(o).info ? {
|
|
1732
1729
|
name: "subtitle",
|
|
1733
1730
|
fn: r(() => [
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
t(o).info.items.length ? (u(),
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1731
|
+
V("div", mn, [
|
|
1732
|
+
V("span", fn, S(t(o).info.status), 1),
|
|
1733
|
+
t(o).info.items.length ? (u(), I(T, { key: 0 }, [
|
|
1734
|
+
vn,
|
|
1735
|
+
V("span", _n, [
|
|
1736
|
+
N(" $" + S(t(o).info.items[0].plan.amount / 100), 1),
|
|
1737
|
+
V("span", hn, "/" + S(t(o).interval), 1)
|
|
1741
1738
|
]),
|
|
1742
1739
|
i(m, {
|
|
1743
1740
|
size: "x-small",
|
|
1744
1741
|
text: "(Change Subscription)",
|
|
1745
1742
|
variant: "text",
|
|
1746
|
-
onClick: p[0] || (p[0] = (
|
|
1743
|
+
onClick: p[0] || (p[0] = ($) => s("change:subscription"))
|
|
1747
1744
|
})
|
|
1748
|
-
], 64)) :
|
|
1745
|
+
], 64)) : C("", !0)
|
|
1749
1746
|
])
|
|
1750
1747
|
]),
|
|
1751
1748
|
key: "0"
|
|
1752
1749
|
} : {
|
|
1753
1750
|
name: "subtitle",
|
|
1754
1751
|
fn: r(() => [
|
|
1755
|
-
|
|
1752
|
+
V("div", gn, [
|
|
1756
1753
|
i(ye, {
|
|
1757
1754
|
height: "16",
|
|
1758
1755
|
type: "ossein",
|
|
1759
1756
|
width: "40"
|
|
1760
1757
|
}),
|
|
1761
|
-
|
|
1758
|
+
yn,
|
|
1762
1759
|
i(ye, {
|
|
1763
1760
|
height: "16",
|
|
1764
1761
|
type: "ossein",
|
|
@@ -1769,16 +1766,16 @@ const Ze = W("settings", () => {
|
|
|
1769
1766
|
key: "1"
|
|
1770
1767
|
}
|
|
1771
1768
|
]), 1024),
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
((
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
], 64)) : (u(),
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1769
|
+
V("div", bn, [
|
|
1770
|
+
V("div", null, [
|
|
1771
|
+
((_ = t(o).info) == null ? void 0 : _.status) === "active" ? (u(), I(T, { key: 0 }, [
|
|
1772
|
+
N(" Your plan renews on "),
|
|
1773
|
+
V("span", Vn, S(t(n).format(t(a), "fullDateWithWeekday")), 1),
|
|
1774
|
+
N(". ")
|
|
1775
|
+
], 64)) : (u(), I(T, { key: 1 }, [
|
|
1776
|
+
N(" Your plan ends on "),
|
|
1777
|
+
V("span", kn, S(t(n).format((y = t(o).info) == null ? void 0 : y.currentPeriodEnd, "fullDateWithWeekday")), 1),
|
|
1778
|
+
N(". ")
|
|
1782
1779
|
], 64))
|
|
1783
1780
|
])
|
|
1784
1781
|
])
|
|
@@ -1791,7 +1788,7 @@ const Ze = W("settings", () => {
|
|
|
1791
1788
|
});
|
|
1792
1789
|
};
|
|
1793
1790
|
}
|
|
1794
|
-
}),
|
|
1791
|
+
}), wn = /* @__PURE__ */ V("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The Vuetify One subscription comes with the following perks: ", -1), xn = ["innerHTML"], Cn = /* @__PURE__ */ V("br", null, null, -1), Sn = /* @__PURE__ */ V("div", { class: "mb-3 text-caption text-medium-emphasis" }, " The following features are in development and coming soon: ", -1), Ln = ["innerHTML"], In = /* @__PURE__ */ k({
|
|
1795
1792
|
__name: "VoSubscriptionPerks",
|
|
1796
1793
|
setup(c) {
|
|
1797
1794
|
const e = [
|
|
@@ -1805,19 +1802,19 @@ const Ze = W("settings", () => {
|
|
|
1805
1802
|
], n = [
|
|
1806
1803
|
"Early access to Vuetify Studio, a visual editor for Vuetify",
|
|
1807
1804
|
"Receive a special label on GitHub created issues and pull requests"
|
|
1808
|
-
], o =
|
|
1809
|
-
return
|
|
1805
|
+
], o = A(!1), s = j();
|
|
1806
|
+
return z(o, async (a) => {
|
|
1810
1807
|
a && s.subscriptionInfo();
|
|
1811
1808
|
}), (a, l) => {
|
|
1812
1809
|
const d = Y;
|
|
1813
|
-
return u(),
|
|
1814
|
-
i(
|
|
1810
|
+
return u(), I(T, null, [
|
|
1811
|
+
i(We, { class: "font-weight-black" }, {
|
|
1815
1812
|
default: r(() => [
|
|
1816
|
-
|
|
1813
|
+
N("Perks")
|
|
1817
1814
|
]),
|
|
1818
1815
|
_: 1
|
|
1819
1816
|
}),
|
|
1820
|
-
|
|
1817
|
+
wn,
|
|
1821
1818
|
i(ae, {
|
|
1822
1819
|
class: "py-0",
|
|
1823
1820
|
density: "compact",
|
|
@@ -1825,34 +1822,34 @@ const Ze = W("settings", () => {
|
|
|
1825
1822
|
nav: ""
|
|
1826
1823
|
}, {
|
|
1827
1824
|
default: r(() => [
|
|
1828
|
-
(u(),
|
|
1825
|
+
(u(), I(T, null, K(e, (p, m) => i(d, {
|
|
1829
1826
|
key: m,
|
|
1830
1827
|
class: "mb-0",
|
|
1831
1828
|
"prepend-icon": `svg:${t(Be)}`
|
|
1832
1829
|
}, {
|
|
1833
1830
|
prepend: r(() => [
|
|
1834
|
-
i(
|
|
1831
|
+
i(U, {
|
|
1835
1832
|
class: "mx-n2",
|
|
1836
1833
|
color: "success",
|
|
1837
1834
|
size: "small"
|
|
1838
1835
|
})
|
|
1839
1836
|
]),
|
|
1840
1837
|
title: r(() => [
|
|
1841
|
-
|
|
1838
|
+
V("div", { innerHTML: p }, null, 8, xn)
|
|
1842
1839
|
]),
|
|
1843
1840
|
_: 2
|
|
1844
1841
|
}, 1032, ["prepend-icon"])), 64))
|
|
1845
1842
|
]),
|
|
1846
1843
|
_: 1
|
|
1847
1844
|
}),
|
|
1848
|
-
|
|
1849
|
-
i(
|
|
1845
|
+
Cn,
|
|
1846
|
+
i(We, { class: "font-weight-black" }, {
|
|
1850
1847
|
default: r(() => [
|
|
1851
|
-
|
|
1848
|
+
N("Up Next")
|
|
1852
1849
|
]),
|
|
1853
1850
|
_: 1
|
|
1854
1851
|
}),
|
|
1855
|
-
|
|
1852
|
+
Sn,
|
|
1856
1853
|
i(ae, {
|
|
1857
1854
|
class: "py-0",
|
|
1858
1855
|
density: "compact",
|
|
@@ -1860,19 +1857,19 @@ const Ze = W("settings", () => {
|
|
|
1860
1857
|
nav: ""
|
|
1861
1858
|
}, {
|
|
1862
1859
|
default: r(() => [
|
|
1863
|
-
(u(),
|
|
1860
|
+
(u(), I(T, null, K(n, (p, m) => i(d, {
|
|
1864
1861
|
key: m,
|
|
1865
1862
|
class: "mb-0",
|
|
1866
|
-
"prepend-icon": `svg:${t(
|
|
1863
|
+
"prepend-icon": `svg:${t(no)}`
|
|
1867
1864
|
}, {
|
|
1868
1865
|
prepend: r(() => [
|
|
1869
|
-
i(
|
|
1866
|
+
i(U, {
|
|
1870
1867
|
class: "mx-n2",
|
|
1871
1868
|
size: "small"
|
|
1872
1869
|
})
|
|
1873
1870
|
]),
|
|
1874
1871
|
title: r(() => [
|
|
1875
|
-
|
|
1872
|
+
V("div", { innerHTML: p }, null, 8, Ln)
|
|
1876
1873
|
]),
|
|
1877
1874
|
_: 2
|
|
1878
1875
|
}, 1032, ["prepend-icon"])), 64))
|
|
@@ -1882,7 +1879,7 @@ const Ze = W("settings", () => {
|
|
|
1882
1879
|
], 64);
|
|
1883
1880
|
};
|
|
1884
1881
|
}
|
|
1885
|
-
}),
|
|
1882
|
+
}), An = /* @__PURE__ */ k({
|
|
1886
1883
|
__name: "VoSubscriptionSubscribe",
|
|
1887
1884
|
props: {
|
|
1888
1885
|
modelValue: {
|
|
@@ -1892,30 +1889,30 @@ const Ze = W("settings", () => {
|
|
|
1892
1889
|
},
|
|
1893
1890
|
emits: ["update:modelValue"],
|
|
1894
1891
|
setup(c) {
|
|
1895
|
-
const e =
|
|
1896
|
-
return
|
|
1892
|
+
const e = A(!1), n = pe(c, "modelValue"), o = j();
|
|
1893
|
+
return z(e, async (s) => {
|
|
1897
1894
|
s && o.subscriptionInfo();
|
|
1898
|
-
}),
|
|
1895
|
+
}), z(() => o.interval, (s) => {
|
|
1899
1896
|
n.value = s;
|
|
1900
|
-
}, { immediate: !0 }), (s, a) => (u(),
|
|
1897
|
+
}, { immediate: !0 }), (s, a) => (u(), h(vt, {
|
|
1901
1898
|
modelValue: n.value,
|
|
1902
1899
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
|
|
1903
1900
|
mandatory: ""
|
|
1904
1901
|
}, {
|
|
1905
1902
|
default: r(() => [
|
|
1906
|
-
i(
|
|
1903
|
+
i($e, null, {
|
|
1907
1904
|
default: r(() => [
|
|
1908
1905
|
i(de, {
|
|
1909
1906
|
cols: "12",
|
|
1910
1907
|
md: "6"
|
|
1911
1908
|
}, {
|
|
1912
1909
|
default: r(() => [
|
|
1913
|
-
i(
|
|
1910
|
+
i(qe, { value: "month" }, {
|
|
1914
1911
|
default: r(({ toggle: l, isSelected: d }) => [
|
|
1915
|
-
i(
|
|
1912
|
+
i(W, {
|
|
1916
1913
|
border: d ? "sm primary opacity-100" : "sm",
|
|
1917
1914
|
color: d ? "primary" : void 0,
|
|
1918
|
-
"prepend-icon": d ? `svg:${t(
|
|
1915
|
+
"prepend-icon": d ? `svg:${t(De)}` : "$radioOff",
|
|
1919
1916
|
rounded: "lg",
|
|
1920
1917
|
subtitle: "$2.99/month",
|
|
1921
1918
|
title: "Monthly",
|
|
@@ -1923,7 +1920,7 @@ const Ze = W("settings", () => {
|
|
|
1923
1920
|
onClick: l
|
|
1924
1921
|
}, {
|
|
1925
1922
|
prepend: r(() => [
|
|
1926
|
-
i(
|
|
1923
|
+
i(U, { class: "mt-n6" })
|
|
1927
1924
|
]),
|
|
1928
1925
|
_: 2
|
|
1929
1926
|
}, 1032, ["border", "color", "prepend-icon", "variant", "onClick"])
|
|
@@ -1938,12 +1935,12 @@ const Ze = W("settings", () => {
|
|
|
1938
1935
|
md: "6"
|
|
1939
1936
|
}, {
|
|
1940
1937
|
default: r(() => [
|
|
1941
|
-
i(
|
|
1938
|
+
i(qe, { value: "year" }, {
|
|
1942
1939
|
default: r(({ toggle: l, isSelected: d }) => [
|
|
1943
|
-
i(
|
|
1940
|
+
i(W, {
|
|
1944
1941
|
border: d ? "sm primary opacity-100" : "sm",
|
|
1945
1942
|
color: d ? "primary" : void 0,
|
|
1946
|
-
"prepend-icon": d ? `svg:${t(
|
|
1943
|
+
"prepend-icon": d ? `svg:${t(De)}` : "$radioOff",
|
|
1947
1944
|
rounded: "lg",
|
|
1948
1945
|
subtitle: "$29.99/year",
|
|
1949
1946
|
title: "Yearly",
|
|
@@ -1951,7 +1948,7 @@ const Ze = W("settings", () => {
|
|
|
1951
1948
|
onClick: l
|
|
1952
1949
|
}, {
|
|
1953
1950
|
prepend: r(() => [
|
|
1954
|
-
i(
|
|
1951
|
+
i(U, { class: "mt-n6" })
|
|
1955
1952
|
]),
|
|
1956
1953
|
append: r(() => [
|
|
1957
1954
|
i(X, {
|
|
@@ -1977,7 +1974,7 @@ const Ze = W("settings", () => {
|
|
|
1977
1974
|
_: 1
|
|
1978
1975
|
}, 8, ["modelValue"]));
|
|
1979
1976
|
}
|
|
1980
|
-
}),
|
|
1977
|
+
}), Dn = { class: "px-3" }, Un = /* @__PURE__ */ V("br", null, null, -1), On = { class: "flex-grow-1 px-4 pb-3 overflow-hidden" }, Bn = /* @__PURE__ */ k({
|
|
1981
1978
|
__name: "VoSubscriptionDialog",
|
|
1982
1979
|
props: {
|
|
1983
1980
|
modelValue: { type: Boolean },
|
|
@@ -1986,62 +1983,62 @@ const Ze = W("settings", () => {
|
|
|
1986
1983
|
emits: ["update:modelValue"],
|
|
1987
1984
|
setup(c) {
|
|
1988
1985
|
function e(m) {
|
|
1989
|
-
return new Promise((
|
|
1986
|
+
return new Promise((_) => setTimeout(_, m));
|
|
1990
1987
|
}
|
|
1991
|
-
const n = pe(c, "modelValue"), o =
|
|
1992
|
-
|
|
1988
|
+
const n = pe(c, "modelValue"), o = j(), s = Le(), a = A(o.interval), l = A(o.hasBilling ? "status" : "subscribe"), d = A(!1);
|
|
1989
|
+
z(a, (m) => {
|
|
1993
1990
|
!o.isSubscriber || !o.interval || (d.value = m !== o.interval);
|
|
1994
|
-
}),
|
|
1991
|
+
}), z(n, async (m) => {
|
|
1995
1992
|
if (!m || !o.isSubscriber) {
|
|
1996
1993
|
m || o.resetQuery();
|
|
1997
1994
|
return;
|
|
1998
1995
|
}
|
|
1999
1996
|
o.subscriptionInfo();
|
|
2000
|
-
}),
|
|
2001
|
-
!o.sessionId && !["subscribe", "status"].includes(s.value.one) || (l.value = o.sessionId || s.value.one === "status" ? "status" : "subscribe", o.isOpen = !0, await
|
|
1997
|
+
}), z(s, async () => {
|
|
1998
|
+
!o.sessionId && !["subscribe", "status"].includes(s.value.one) || (l.value = o.sessionId || s.value.one === "status" ? "status" : "subscribe", o.isOpen = !0, await be(), n.value = !0);
|
|
2002
1999
|
}, { immediate: !0 });
|
|
2003
2000
|
async function p() {
|
|
2004
2001
|
await o.modify(a.value), await o.subscriptionInfo(), d.value = null, await e(3e3), l.value = "status", await e(300), d.value = !1;
|
|
2005
2002
|
}
|
|
2006
|
-
return (m,
|
|
2007
|
-
const
|
|
2008
|
-
return u(),
|
|
2003
|
+
return (m, _) => {
|
|
2004
|
+
const y = _e, $ = An, g = In, f = $n, v = pn, b = Ce, M = Se;
|
|
2005
|
+
return u(), h(M, {
|
|
2009
2006
|
modelValue: n.value,
|
|
2010
|
-
"onUpdate:modelValue":
|
|
2011
|
-
"prepend-icon": `svg:${t(
|
|
2007
|
+
"onUpdate:modelValue": _[4] || (_[4] = (D) => n.value = D),
|
|
2008
|
+
"prepend-icon": `svg:${t(so)}`,
|
|
2012
2009
|
title: "Subscriptions"
|
|
2013
|
-
},
|
|
2010
|
+
}, R({
|
|
2014
2011
|
default: r(() => [
|
|
2015
|
-
i(
|
|
2012
|
+
i(we, null, {
|
|
2016
2013
|
default: r(() => [
|
|
2017
|
-
i(
|
|
2014
|
+
i(xe, { scrollable: "" }, {
|
|
2018
2015
|
default: r(() => [
|
|
2019
|
-
|
|
2016
|
+
V("div", Dn, [
|
|
2020
2017
|
i(ue, null, {
|
|
2021
2018
|
default: r(() => [
|
|
2022
|
-
i(
|
|
2019
|
+
i(y, {
|
|
2023
2020
|
text: "The Vuetify One subscription is a great way to support the Vuetify team and get access to exclusive features and content.",
|
|
2024
2021
|
title: "Vuetify One"
|
|
2025
2022
|
}),
|
|
2026
|
-
i(
|
|
2023
|
+
i(ht, { "model-value": t(l) }, {
|
|
2027
2024
|
default: r(() => [
|
|
2028
2025
|
i(ge, { value: "subscribe" }, {
|
|
2029
2026
|
default: r(() => [
|
|
2030
|
-
i(
|
|
2027
|
+
i($, {
|
|
2031
2028
|
modelValue: t(a),
|
|
2032
|
-
"onUpdate:modelValue":
|
|
2029
|
+
"onUpdate:modelValue": _[0] || (_[0] = (D) => se(a) ? a.value = D : null)
|
|
2033
2030
|
}, null, 8, ["modelValue"]),
|
|
2034
|
-
|
|
2035
|
-
i(
|
|
2031
|
+
Un,
|
|
2032
|
+
i(g)
|
|
2036
2033
|
]),
|
|
2037
2034
|
_: 1
|
|
2038
2035
|
}),
|
|
2039
2036
|
i(ge, { value: "status" }, {
|
|
2040
2037
|
default: r(() => [
|
|
2041
|
-
i(
|
|
2042
|
-
"onChange:subscription":
|
|
2038
|
+
i(f, {
|
|
2039
|
+
"onChange:subscription": _[1] || (_[1] = (D) => l.value = "subscribe")
|
|
2043
2040
|
}),
|
|
2044
|
-
i(
|
|
2041
|
+
i(v)
|
|
2045
2042
|
]),
|
|
2046
2043
|
_: 1
|
|
2047
2044
|
})
|
|
@@ -2064,25 +2061,25 @@ const Ze = W("settings", () => {
|
|
|
2064
2061
|
t(l) === "subscribe" ? {
|
|
2065
2062
|
name: "actions",
|
|
2066
2063
|
fn: r(() => [
|
|
2067
|
-
|
|
2068
|
-
t(d) !== !1 ? (u(),
|
|
2064
|
+
V("div", On, [
|
|
2065
|
+
t(d) !== !1 ? (u(), h(b, {
|
|
2069
2066
|
key: 0,
|
|
2070
2067
|
block: "",
|
|
2071
2068
|
color: "success",
|
|
2072
2069
|
loading: t(o).isLoading,
|
|
2073
|
-
"prepend-icon": `svg:${t(d) !== null ? t(
|
|
2070
|
+
"prepend-icon": `svg:${t(d) !== null ? t(ao) : t(De)}`,
|
|
2074
2071
|
readonly: t(d) === null,
|
|
2075
2072
|
size: "default",
|
|
2076
2073
|
text: t(d) !== null ? "Modify Subscription" : "Success",
|
|
2077
2074
|
onClick: p
|
|
2078
|
-
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : t(o).one ? (u(),
|
|
2075
|
+
}, null, 8, ["loading", "prepend-icon", "readonly", "text"])) : t(o).one ? (u(), h(b, {
|
|
2079
2076
|
key: 2,
|
|
2080
2077
|
block: "",
|
|
2081
|
-
"prepend-icon": `svg:${t(
|
|
2078
|
+
"prepend-icon": `svg:${t(io)}`,
|
|
2082
2079
|
size: "default",
|
|
2083
2080
|
text: "Manage Subscription",
|
|
2084
|
-
onClick:
|
|
2085
|
-
}, null, 8, ["prepend-icon"])) : (u(),
|
|
2081
|
+
onClick: _[3] || (_[3] = (D) => l.value = "status")
|
|
2082
|
+
}, null, 8, ["prepend-icon"])) : (u(), h(b, {
|
|
2086
2083
|
key: 1,
|
|
2087
2084
|
block: "",
|
|
2088
2085
|
color: t(a) ? "primary" : "disabled",
|
|
@@ -2091,7 +2088,7 @@ const Ze = W("settings", () => {
|
|
|
2091
2088
|
"prepend-icon": "$vuetify",
|
|
2092
2089
|
size: "default",
|
|
2093
2090
|
text: "Activate Subscription",
|
|
2094
|
-
onClick:
|
|
2091
|
+
onClick: _[2] || (_[2] = (D) => t(o).subscribe(t(a)))
|
|
2095
2092
|
}, null, 8, ["color", "disabled", "loading"]))
|
|
2096
2093
|
])
|
|
2097
2094
|
]),
|
|
@@ -2100,16 +2097,16 @@ const Ze = W("settings", () => {
|
|
|
2100
2097
|
]), 1032, ["modelValue", "prepend-icon"]);
|
|
2101
2098
|
};
|
|
2102
2099
|
}
|
|
2103
|
-
}),
|
|
2100
|
+
}), Nn = /* @__PURE__ */ k({
|
|
2104
2101
|
__name: "VoSubscriptionListItem",
|
|
2105
2102
|
setup(c) {
|
|
2106
|
-
const e =
|
|
2103
|
+
const e = A(!1);
|
|
2107
2104
|
return (n, o) => {
|
|
2108
|
-
const s =
|
|
2109
|
-
return u(),
|
|
2105
|
+
const s = Bn, a = Y;
|
|
2106
|
+
return u(), h(a, {
|
|
2110
2107
|
active: t(e),
|
|
2111
2108
|
link: "",
|
|
2112
|
-
"prepend-icon": `svg:${t(
|
|
2109
|
+
"prepend-icon": `svg:${t(ro)}`,
|
|
2113
2110
|
title: "Subscriptions"
|
|
2114
2111
|
}, {
|
|
2115
2112
|
default: r(() => [
|
|
@@ -2122,10 +2119,10 @@ const Ze = W("settings", () => {
|
|
|
2122
2119
|
}, 8, ["active", "prepend-icon"]);
|
|
2123
2120
|
};
|
|
2124
2121
|
}
|
|
2125
|
-
}),
|
|
2122
|
+
}), Tn = {
|
|
2126
2123
|
key: 0,
|
|
2127
2124
|
class: "text-success"
|
|
2128
|
-
},
|
|
2125
|
+
}, Pe = /* @__PURE__ */ k({
|
|
2129
2126
|
__name: "VoSponsorshipsTimelineItem",
|
|
2130
2127
|
props: {
|
|
2131
2128
|
title: {},
|
|
@@ -2137,21 +2134,21 @@ const Ze = W("settings", () => {
|
|
|
2137
2134
|
sponsorship: {}
|
|
2138
2135
|
},
|
|
2139
2136
|
setup(c) {
|
|
2140
|
-
const e = c, n =
|
|
2137
|
+
const e = c, n = je(), o = x(() => {
|
|
2141
2138
|
var a, l;
|
|
2142
2139
|
return `$${parseFloat(String((((a = e.sponsorship) == null ? void 0 : a.amount) ?? 0) / 100)).toFixed(2)} /${(l = e.sponsorship) == null ? void 0 : l.interval}`;
|
|
2143
2140
|
});
|
|
2144
2141
|
return (s, a) => {
|
|
2145
2142
|
var d, p;
|
|
2146
|
-
const l =
|
|
2147
|
-
return u(),
|
|
2143
|
+
const l = Ce;
|
|
2144
|
+
return u(), h(Uo, {
|
|
2148
2145
|
"dot-color": (d = s.sponsorship) != null && d.isActive ? "success" : "transparent",
|
|
2149
2146
|
icon: (p = s.sponsorship) != null && p.isActive ? `svg:${t(Be)}` : void 0,
|
|
2150
2147
|
size: "x-small",
|
|
2151
2148
|
width: "100%"
|
|
2152
2149
|
}, {
|
|
2153
2150
|
default: r(() => [
|
|
2154
|
-
i(
|
|
2151
|
+
i(W, {
|
|
2155
2152
|
border: "",
|
|
2156
2153
|
"prepend-avatar": `${t(n).CDN_URL}logos/${s.logo}.png`,
|
|
2157
2154
|
rounded: "lg",
|
|
@@ -2161,34 +2158,34 @@ const Ze = W("settings", () => {
|
|
|
2161
2158
|
subtitle: r(() => {
|
|
2162
2159
|
var m;
|
|
2163
2160
|
return [
|
|
2164
|
-
(m = s.sponsorship) != null && m.isActive ? (u(),
|
|
2165
|
-
i(
|
|
2166
|
-
icon: `svg:${t(
|
|
2161
|
+
(m = s.sponsorship) != null && m.isActive ? (u(), I("div", Tn, [
|
|
2162
|
+
i(U, {
|
|
2163
|
+
icon: `svg:${t(lo)}`,
|
|
2167
2164
|
size: "x-small"
|
|
2168
2165
|
}, null, 8, ["icon"]),
|
|
2169
|
-
|
|
2170
|
-
])) : (u(),
|
|
2171
|
-
|
|
2166
|
+
N(" " + S(t(o)), 1)
|
|
2167
|
+
])) : (u(), I(T, { key: 1 }, [
|
|
2168
|
+
N(S(s.text), 1)
|
|
2172
2169
|
], 64))
|
|
2173
2170
|
];
|
|
2174
2171
|
}),
|
|
2175
2172
|
append: r(() => {
|
|
2176
|
-
var m,
|
|
2173
|
+
var m, _, y, $, g, f;
|
|
2177
2174
|
return [
|
|
2178
|
-
s.disabled ? (u(),
|
|
2175
|
+
s.disabled ? (u(), h(l, {
|
|
2179
2176
|
key: 1,
|
|
2180
2177
|
color: "surface-variant",
|
|
2181
2178
|
readonly: "",
|
|
2182
2179
|
text: "Coming Soon"
|
|
2183
|
-
})) : (u(),
|
|
2180
|
+
})) : (u(), h(l, {
|
|
2184
2181
|
key: 0,
|
|
2185
2182
|
active: !1,
|
|
2186
2183
|
color: (m = s.sponsorship) != null && m.isActive ? "success" : "primary",
|
|
2187
|
-
href: (
|
|
2188
|
-
"prepend-icon": `svg:${(
|
|
2189
|
-
readonly: (
|
|
2190
|
-
target: (
|
|
2191
|
-
text: (
|
|
2184
|
+
href: (_ = s.sponsorship) != null && _.isActive || s.to ? void 0 : s.href,
|
|
2185
|
+
"prepend-icon": `svg:${(y = s.sponsorship) != null && y.isActive ? t(De) : t(Ne)}`,
|
|
2186
|
+
readonly: ($ = s.sponsorship) == null ? void 0 : $.isActive,
|
|
2187
|
+
target: (g = s.sponsorship) != null && g.isActive || s.to ? void 0 : "_blank",
|
|
2188
|
+
text: (f = s.sponsorship) != null && f.isActive ? "Active" : "Info",
|
|
2192
2189
|
to: s.to,
|
|
2193
2190
|
width: "88"
|
|
2194
2191
|
}, null, 8, ["color", "href", "prepend-icon", "readonly", "target", "text", "to"]))
|
|
@@ -2201,12 +2198,12 @@ const Ze = W("settings", () => {
|
|
|
2201
2198
|
}, 8, ["dot-color", "icon"]);
|
|
2202
2199
|
};
|
|
2203
2200
|
}
|
|
2204
|
-
}),
|
|
2201
|
+
}), Fn = /* @__PURE__ */ k({
|
|
2205
2202
|
__name: "VoSponsorshipsTimelineItemPatreon",
|
|
2206
2203
|
setup(c) {
|
|
2207
2204
|
return (e, n) => {
|
|
2208
|
-
const o =
|
|
2209
|
-
return u(),
|
|
2205
|
+
const o = Pe;
|
|
2206
|
+
return u(), h(o, {
|
|
2210
2207
|
disabled: "",
|
|
2211
2208
|
logo: "patreon",
|
|
2212
2209
|
text: "Support Vuetify through Patreon.",
|
|
@@ -2214,13 +2211,13 @@ const Ze = W("settings", () => {
|
|
|
2214
2211
|
});
|
|
2215
2212
|
};
|
|
2216
2213
|
}
|
|
2217
|
-
}),
|
|
2214
|
+
}), Mn = /* @__PURE__ */ k({
|
|
2218
2215
|
__name: "VoSponsorshipsTimelineItemDiscord",
|
|
2219
2216
|
setup(c) {
|
|
2220
|
-
const e =
|
|
2217
|
+
const e = j();
|
|
2221
2218
|
return (n, o) => {
|
|
2222
|
-
const s =
|
|
2223
|
-
return u(),
|
|
2219
|
+
const s = Pe;
|
|
2220
|
+
return u(), h(s, {
|
|
2224
2221
|
href: "https://discord.com/servers/vuetify-340160225338195969",
|
|
2225
2222
|
logo: "discord",
|
|
2226
2223
|
sponsorship: t(e).discord,
|
|
@@ -2229,13 +2226,13 @@ const Ze = W("settings", () => {
|
|
|
2229
2226
|
}, null, 8, ["sponsorship"]);
|
|
2230
2227
|
};
|
|
2231
2228
|
}
|
|
2232
|
-
}),
|
|
2229
|
+
}), zn = /* @__PURE__ */ k({
|
|
2233
2230
|
__name: "VoSponsorshipsTimelineItemGithub",
|
|
2234
2231
|
setup(c) {
|
|
2235
|
-
const e =
|
|
2232
|
+
const e = j();
|
|
2236
2233
|
return (n, o) => {
|
|
2237
|
-
const s =
|
|
2238
|
-
return u(),
|
|
2234
|
+
const s = Pe;
|
|
2235
|
+
return u(), h(s, {
|
|
2239
2236
|
href: "https://github.com/sponsors/johnleider",
|
|
2240
2237
|
logo: "github",
|
|
2241
2238
|
sponsorship: t(e).github,
|
|
@@ -2244,13 +2241,13 @@ const Ze = W("settings", () => {
|
|
|
2244
2241
|
}, null, 8, ["sponsorship"]);
|
|
2245
2242
|
};
|
|
2246
2243
|
}
|
|
2247
|
-
}),
|
|
2244
|
+
}), jn = /* @__PURE__ */ k({
|
|
2248
2245
|
__name: "VoSponsorshipsTimelineItemOne",
|
|
2249
2246
|
setup(c) {
|
|
2250
|
-
const e =
|
|
2247
|
+
const e = j();
|
|
2251
2248
|
return (n, o) => {
|
|
2252
|
-
const s =
|
|
2253
|
-
return u(),
|
|
2249
|
+
const s = Pe;
|
|
2250
|
+
return u(), h(s, {
|
|
2254
2251
|
logo: "one",
|
|
2255
2252
|
sponsorship: t(e).one,
|
|
2256
2253
|
text: "Support Vuetify through Vuetify One.",
|
|
@@ -2259,12 +2256,12 @@ const Ze = W("settings", () => {
|
|
|
2259
2256
|
}, null, 8, ["sponsorship"]);
|
|
2260
2257
|
};
|
|
2261
2258
|
}
|
|
2262
|
-
}),
|
|
2259
|
+
}), Pn = /* @__PURE__ */ k({
|
|
2263
2260
|
__name: "VoSponsorshipsTimeline",
|
|
2264
2261
|
setup(c) {
|
|
2265
2262
|
return (e, n) => {
|
|
2266
|
-
const o =
|
|
2267
|
-
return u(),
|
|
2263
|
+
const o = jn, s = zn, a = Mn, l = Fn;
|
|
2264
|
+
return u(), h(Oo, {
|
|
2268
2265
|
class: "justify-start ms-n7",
|
|
2269
2266
|
"line-inset": "12",
|
|
2270
2267
|
side: "end",
|
|
@@ -2281,7 +2278,7 @@ const Ze = W("settings", () => {
|
|
|
2281
2278
|
});
|
|
2282
2279
|
};
|
|
2283
2280
|
}
|
|
2284
|
-
}),
|
|
2281
|
+
}), Hn = { class: "px-3 pb-5 d-flex flex-column h-100" }, Rn = { class: "font-weight-black" }, En = { class: "text-caption text-medium-emphasis" }, Wn = /* @__PURE__ */ k({
|
|
2285
2282
|
__name: "VoSponsorshipsDialog",
|
|
2286
2283
|
props: {
|
|
2287
2284
|
modelValue: { type: Boolean },
|
|
@@ -2289,23 +2286,23 @@ const Ze = W("settings", () => {
|
|
|
2289
2286
|
},
|
|
2290
2287
|
emits: ["update:modelValue"],
|
|
2291
2288
|
setup(c) {
|
|
2292
|
-
const e = pe(c, "modelValue"), n =
|
|
2293
|
-
return
|
|
2294
|
-
n.value.one === "sponsorships" && (o.isOpen = !0, await
|
|
2289
|
+
const e = pe(c, "modelValue"), n = Le(), o = j();
|
|
2290
|
+
return z(n, async () => {
|
|
2291
|
+
n.value.one === "sponsorships" && (o.isOpen = !0, await be(), e.value = !0);
|
|
2295
2292
|
}, { immediate: !0 }), (s, a) => {
|
|
2296
|
-
const l = _e, d =
|
|
2297
|
-
return u(),
|
|
2293
|
+
const l = _e, d = Pn, p = Se;
|
|
2294
|
+
return u(), h(p, {
|
|
2298
2295
|
modelValue: e.value,
|
|
2299
2296
|
"onUpdate:modelValue": a[0] || (a[0] = (m) => e.value = m),
|
|
2300
|
-
"prepend-icon": `svg:${t(
|
|
2297
|
+
"prepend-icon": `svg:${t(co)}`,
|
|
2301
2298
|
title: "Sponsorships"
|
|
2302
2299
|
}, {
|
|
2303
2300
|
default: r(() => [
|
|
2304
|
-
i(
|
|
2301
|
+
i(we, null, {
|
|
2305
2302
|
default: r(() => [
|
|
2306
|
-
i(
|
|
2303
|
+
i(xe, { scrollable: "" }, {
|
|
2307
2304
|
default: r(() => [
|
|
2308
|
-
|
|
2305
|
+
V("div", Hn, [
|
|
2309
2306
|
i(ue, { class: "flex-0-0 mb-16 mb-sm-4" }, {
|
|
2310
2307
|
default: r(() => [
|
|
2311
2308
|
i(l, {
|
|
@@ -2323,16 +2320,16 @@ const Ze = W("settings", () => {
|
|
|
2323
2320
|
size: "128"
|
|
2324
2321
|
}, {
|
|
2325
2322
|
media: r(() => [
|
|
2326
|
-
i(
|
|
2323
|
+
i(U, {
|
|
2327
2324
|
color: t(o).isSubscriber ? "success" : "error"
|
|
2328
2325
|
}, null, 8, ["color"])
|
|
2329
2326
|
]),
|
|
2330
2327
|
title: r(() => [
|
|
2331
|
-
|
|
2332
|
-
|
|
2328
|
+
N(" One Status: "),
|
|
2329
|
+
V("span", Rn, S(t(o).isSubscriber ? "Active" : "Inactive"), 1)
|
|
2333
2330
|
]),
|
|
2334
2331
|
text: r(() => [
|
|
2335
|
-
|
|
2332
|
+
V("div", En, S(t(o).isSubscriber ? "You are currently receiving benefits of Vuetify One." : "Login to activate Vuetify One benefits"), 1)
|
|
2336
2333
|
]),
|
|
2337
2334
|
_: 1
|
|
2338
2335
|
})
|
|
@@ -2348,16 +2345,16 @@ const Ze = W("settings", () => {
|
|
|
2348
2345
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
2349
2346
|
};
|
|
2350
2347
|
}
|
|
2351
|
-
}),
|
|
2348
|
+
}), qn = /* @__PURE__ */ k({
|
|
2352
2349
|
__name: "VoSponsorshipsListItem",
|
|
2353
2350
|
setup(c) {
|
|
2354
|
-
const e =
|
|
2351
|
+
const e = A(!1);
|
|
2355
2352
|
return (n, o) => {
|
|
2356
|
-
const s =
|
|
2357
|
-
return u(),
|
|
2353
|
+
const s = Wn, a = Y;
|
|
2354
|
+
return u(), h(a, {
|
|
2358
2355
|
active: t(e),
|
|
2359
2356
|
link: "",
|
|
2360
|
-
"prepend-icon": `svg:${t(
|
|
2357
|
+
"prepend-icon": `svg:${t(uo)}`,
|
|
2361
2358
|
title: "Sponsorships"
|
|
2362
2359
|
}, {
|
|
2363
2360
|
default: r(() => [
|
|
@@ -2370,8 +2367,8 @@ const Ze = W("settings", () => {
|
|
|
2370
2367
|
}, 8, ["active", "prepend-icon"]);
|
|
2371
2368
|
};
|
|
2372
2369
|
}
|
|
2373
|
-
}),
|
|
2374
|
-
const c = oe(), e =
|
|
2370
|
+
}), Zn = q("downloads", () => {
|
|
2371
|
+
const c = oe(), e = O([]), n = A(!1);
|
|
2375
2372
|
async function o() {
|
|
2376
2373
|
if (e.value.length) return e.value;
|
|
2377
2374
|
n.value = !0;
|
|
@@ -2389,10 +2386,10 @@ const Ze = W("settings", () => {
|
|
|
2389
2386
|
isLoading: n,
|
|
2390
2387
|
index: o
|
|
2391
2388
|
};
|
|
2392
|
-
}),
|
|
2389
|
+
}), Gn = /* @__PURE__ */ k({
|
|
2393
2390
|
__name: "VoDownloadsTable",
|
|
2394
2391
|
setup(c) {
|
|
2395
|
-
const e =
|
|
2392
|
+
const e = ke(), n = Zn(), o = [
|
|
2396
2393
|
{
|
|
2397
2394
|
title: "Order ID",
|
|
2398
2395
|
value: "order_name"
|
|
@@ -2412,11 +2409,11 @@ const Ze = W("settings", () => {
|
|
|
2412
2409
|
value: "download_url"
|
|
2413
2410
|
}
|
|
2414
2411
|
];
|
|
2415
|
-
return
|
|
2412
|
+
return Ue(async () => {
|
|
2416
2413
|
await n.index();
|
|
2417
2414
|
}), (s, a) => {
|
|
2418
2415
|
const l = _e;
|
|
2419
|
-
return u(),
|
|
2416
|
+
return u(), h($e, null, {
|
|
2420
2417
|
default: r(() => [
|
|
2421
2418
|
i(de, { cols: "12" }, {
|
|
2422
2419
|
default: r(() => [
|
|
@@ -2424,13 +2421,13 @@ const Ze = W("settings", () => {
|
|
|
2424
2421
|
text: "View and download your store purchases.",
|
|
2425
2422
|
title: "Download history"
|
|
2426
2423
|
}),
|
|
2427
|
-
i(
|
|
2424
|
+
i(W, {
|
|
2428
2425
|
border: "",
|
|
2429
2426
|
flat: "",
|
|
2430
2427
|
rounded: "lg"
|
|
2431
2428
|
}, {
|
|
2432
2429
|
default: r(() => [
|
|
2433
|
-
i(
|
|
2430
|
+
i(_t, {
|
|
2434
2431
|
"fixed-header": "",
|
|
2435
2432
|
headers: o,
|
|
2436
2433
|
height: "640",
|
|
@@ -2438,22 +2435,22 @@ const Ze = W("settings", () => {
|
|
|
2438
2435
|
loading: t(n).isLoading
|
|
2439
2436
|
}, {
|
|
2440
2437
|
"item.order_name": r(({ item: d }) => [
|
|
2441
|
-
|
|
2438
|
+
N(" #" + S(d.order_name), 1)
|
|
2442
2439
|
]),
|
|
2443
2440
|
"item.created_at": r(({ item: d }) => [
|
|
2444
|
-
|
|
2441
|
+
N(S(t(e).format(d.created_at, "shortDate")), 1)
|
|
2445
2442
|
]),
|
|
2446
2443
|
"item.download_items": r(({ item: d }) => [
|
|
2447
|
-
(u(!0),
|
|
2444
|
+
(u(!0), I(T, null, K(d.download_items, (p, m) => (u(), I("div", {
|
|
2448
2445
|
key: m,
|
|
2449
2446
|
class: "text-truncate"
|
|
2450
|
-
},
|
|
2447
|
+
}, S(p.name), 1))), 128))
|
|
2451
2448
|
]),
|
|
2452
2449
|
"item.download_url": r(({ item: d }) => [
|
|
2453
|
-
i(
|
|
2450
|
+
i(Z, {
|
|
2454
2451
|
color: "medium-emphasis",
|
|
2455
2452
|
href: d.download_url,
|
|
2456
|
-
icon: `svg:${t(
|
|
2453
|
+
icon: `svg:${t(po)}`,
|
|
2457
2454
|
size: "small",
|
|
2458
2455
|
target: "_blank",
|
|
2459
2456
|
variant: "text"
|
|
@@ -2472,31 +2469,31 @@ const Ze = W("settings", () => {
|
|
|
2472
2469
|
});
|
|
2473
2470
|
};
|
|
2474
2471
|
}
|
|
2475
|
-
}), Qn = { class: "px-3" },
|
|
2472
|
+
}), Qn = { class: "px-3" }, Yn = /* @__PURE__ */ k({
|
|
2476
2473
|
__name: "VoDownloadsNavItem",
|
|
2477
2474
|
setup(c) {
|
|
2478
|
-
const e =
|
|
2475
|
+
const e = A(!1);
|
|
2479
2476
|
return (n, o) => {
|
|
2480
|
-
const s =
|
|
2481
|
-
return u(),
|
|
2477
|
+
const s = Gn, a = Se, l = Y;
|
|
2478
|
+
return u(), h(l, {
|
|
2482
2479
|
active: t(e),
|
|
2483
2480
|
link: "",
|
|
2484
|
-
"prepend-icon": `svg:${t(
|
|
2481
|
+
"prepend-icon": `svg:${t(st)}`,
|
|
2485
2482
|
title: "Downloads"
|
|
2486
2483
|
}, {
|
|
2487
2484
|
default: r(() => [
|
|
2488
2485
|
i(a, {
|
|
2489
2486
|
modelValue: t(e),
|
|
2490
2487
|
"onUpdate:modelValue": o[0] || (o[0] = (d) => se(e) ? e.value = d : null),
|
|
2491
|
-
"prepend-icon": `svg:${t(
|
|
2488
|
+
"prepend-icon": `svg:${t(st)}`,
|
|
2492
2489
|
title: "Downloads"
|
|
2493
2490
|
}, {
|
|
2494
2491
|
default: r(() => [
|
|
2495
|
-
i(
|
|
2492
|
+
i(we, null, {
|
|
2496
2493
|
default: r(() => [
|
|
2497
|
-
i(
|
|
2494
|
+
i(xe, { scrollable: "" }, {
|
|
2498
2495
|
default: r(() => [
|
|
2499
|
-
|
|
2496
|
+
V("div", Qn, [
|
|
2500
2497
|
i(ue, null, {
|
|
2501
2498
|
default: r(() => [
|
|
2502
2499
|
i(s)
|
|
@@ -2518,13 +2515,13 @@ const Ze = W("settings", () => {
|
|
|
2518
2515
|
}, 8, ["active", "prepend-icon"]);
|
|
2519
2516
|
};
|
|
2520
2517
|
}
|
|
2521
|
-
}),
|
|
2518
|
+
}), Jn = /* @__PURE__ */ k({
|
|
2522
2519
|
__name: "VoStudioNavItem",
|
|
2523
2520
|
setup(c) {
|
|
2524
|
-
const e =
|
|
2521
|
+
const e = A(!1);
|
|
2525
2522
|
return (n, o) => {
|
|
2526
2523
|
const s = Y;
|
|
2527
|
-
return u(),
|
|
2524
|
+
return u(), h(s, {
|
|
2528
2525
|
active: t(e),
|
|
2529
2526
|
href: "https://studio.vuetifyjs.com/",
|
|
2530
2527
|
link: "",
|
|
@@ -2540,7 +2537,7 @@ const Ze = W("settings", () => {
|
|
|
2540
2537
|
variant: "outlined"
|
|
2541
2538
|
}, {
|
|
2542
2539
|
default: r(() => [
|
|
2543
|
-
|
|
2540
|
+
N("Closed Alpha")
|
|
2544
2541
|
]),
|
|
2545
2542
|
_: 1
|
|
2546
2543
|
})
|
|
@@ -2549,56 +2546,56 @@ const Ze = W("settings", () => {
|
|
|
2549
2546
|
}, 8, ["active"]);
|
|
2550
2547
|
};
|
|
2551
2548
|
}
|
|
2552
|
-
}), Ke =
|
|
2553
|
-
const c =
|
|
2549
|
+
}), Ke = q("site", () => {
|
|
2550
|
+
const c = O([]), e = O();
|
|
2554
2551
|
return {
|
|
2555
2552
|
id: c,
|
|
2556
2553
|
url: e
|
|
2557
2554
|
};
|
|
2558
|
-
}),
|
|
2555
|
+
}), Xn = {
|
|
2559
2556
|
key: 0,
|
|
2560
2557
|
class: "pt-16"
|
|
2561
|
-
},
|
|
2558
|
+
}, Kn = /* @__PURE__ */ V("div", { class: "text-medium-emphasis" }, " All caught up ", -1), es = {
|
|
2562
2559
|
key: 1,
|
|
2563
2560
|
class: "pa-5"
|
|
2564
|
-
},
|
|
2561
|
+
}, ts = { class: "text-subtitle-1 font-weight-bold" }, os = { class: "text-caption font-weight-bold text-medium-emphasis" }, ns = { class: "text-disabled text-caption mt-2 mb-3" }, ss = /* @__PURE__ */ k({
|
|
2565
2562
|
__name: "VoNotificationsBannerList",
|
|
2566
2563
|
props: {
|
|
2567
2564
|
items: {}
|
|
2568
2565
|
},
|
|
2569
2566
|
setup(c) {
|
|
2570
|
-
const e =
|
|
2567
|
+
const e = ke(), n = ve(), o = F(), s = Ke();
|
|
2571
2568
|
function a(d) {
|
|
2572
2569
|
return o.notifications.last.banner.includes(d);
|
|
2573
2570
|
}
|
|
2574
2571
|
function l(d) {
|
|
2575
2572
|
a(d.slug) ? o.notifications.last.banner = o.notifications.last.banner.filter((p) => p !== d.slug) : o.notifications.last.banner.push(d.slug);
|
|
2576
2573
|
}
|
|
2577
|
-
return (d, p) => (u(),
|
|
2574
|
+
return (d, p) => (u(), h(ae, {
|
|
2578
2575
|
class: "py-0",
|
|
2579
2576
|
height: "100%",
|
|
2580
2577
|
lines: "three"
|
|
2581
2578
|
}, {
|
|
2582
2579
|
default: r(() => [
|
|
2583
|
-
d.items.length ? (u(),
|
|
2584
|
-
(u(!0),
|
|
2585
|
-
var
|
|
2586
|
-
return u(),
|
|
2580
|
+
d.items.length ? (u(), I("div", es, [
|
|
2581
|
+
(u(!0), I(T, null, K(d.items, (m) => {
|
|
2582
|
+
var _;
|
|
2583
|
+
return u(), I("div", {
|
|
2587
2584
|
key: m.slug,
|
|
2588
2585
|
class: "mb-4"
|
|
2589
2586
|
}, [
|
|
2590
|
-
i(
|
|
2587
|
+
i(W, {
|
|
2591
2588
|
color: m.metadata.color,
|
|
2592
2589
|
flat: "",
|
|
2593
|
-
image: (
|
|
2590
|
+
image: (_ = m.metadata.images.bg) == null ? void 0 : _.url,
|
|
2594
2591
|
rounded: "b-0",
|
|
2595
2592
|
title: m.title
|
|
2596
2593
|
}, {
|
|
2597
2594
|
prepend: r(() => {
|
|
2598
|
-
var
|
|
2595
|
+
var y;
|
|
2599
2596
|
return [
|
|
2600
2597
|
i(ee, {
|
|
2601
|
-
image: (
|
|
2598
|
+
image: (y = m.metadata.images.logo) == null ? void 0 : y.url
|
|
2602
2599
|
}, null, 8, ["image"])
|
|
2603
2600
|
];
|
|
2604
2601
|
}),
|
|
@@ -2607,42 +2604,42 @@ const Ze = W("settings", () => {
|
|
|
2607
2604
|
]),
|
|
2608
2605
|
_: 2
|
|
2609
2606
|
}, 1032, ["color", "image", "title"]),
|
|
2610
|
-
i(
|
|
2611
|
-
default: r(({ props:
|
|
2612
|
-
i(Je,
|
|
2607
|
+
i(Me, null, {
|
|
2608
|
+
default: r(({ props: y, isHovering: $ }) => [
|
|
2609
|
+
i(Je, E({ ref_for: !0 }, y, {
|
|
2613
2610
|
border: "",
|
|
2614
2611
|
class: "px-8 pt-2 pb-4 position-relative",
|
|
2615
2612
|
rounded: "b"
|
|
2616
2613
|
}), {
|
|
2617
2614
|
default: r(() => [
|
|
2618
|
-
m.metadata.site.some((
|
|
2615
|
+
m.metadata.site.some((g) => t(s).id.includes(g)) ? (u(), h(J, {
|
|
2619
2616
|
key: 0,
|
|
2620
2617
|
location: "bottom",
|
|
2621
2618
|
text: a(m.slug) ? "Mark as unread" : "Mark as read"
|
|
2622
2619
|
}, {
|
|
2623
|
-
activator: r(({ props:
|
|
2620
|
+
activator: r(({ props: g }) => [
|
|
2624
2621
|
i(Te, { "hide-on-leave": "" }, {
|
|
2625
2622
|
default: r(() => [
|
|
2626
|
-
|
|
2623
|
+
Ve(i(Z, E({ ref_for: !0 }, g, {
|
|
2627
2624
|
class: "ms-auto float-right",
|
|
2628
|
-
icon: `svg:${a(m.slug) ? t(
|
|
2625
|
+
icon: `svg:${a(m.slug) ? t(dt) : t(ut)}`,
|
|
2629
2626
|
"mdi-email-variant": "",
|
|
2630
2627
|
size: "small",
|
|
2631
2628
|
variant: "text",
|
|
2632
|
-
onClick: (
|
|
2629
|
+
onClick: (f) => l(m)
|
|
2633
2630
|
}), null, 16, ["icon", "onClick"]), [
|
|
2634
|
-
[
|
|
2631
|
+
[Oe, $ || t(n).mobile.value]
|
|
2635
2632
|
])
|
|
2636
2633
|
]),
|
|
2637
2634
|
_: 2
|
|
2638
2635
|
}, 1024)
|
|
2639
2636
|
]),
|
|
2640
2637
|
_: 2
|
|
2641
|
-
}, 1032, ["text"])) :
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
i(X,
|
|
2638
|
+
}, 1032, ["text"])) : C("", !0),
|
|
2639
|
+
V("div", ts, S(m.metadata.text), 1),
|
|
2640
|
+
V("div", os, S(t(e).format(m.created_at, "fullDateWithWeekday")), 1),
|
|
2641
|
+
V("div", ns, S(m.metadata.subtext), 1),
|
|
2642
|
+
i(X, E({ ref_for: !0 }, {
|
|
2646
2643
|
href: m.metadata.link.startsWith("http") ? m.metadata.link : void 0,
|
|
2647
2644
|
target: m.metadata.link.startsWith("http") ? "_blank" : void 0,
|
|
2648
2645
|
to: m.metadata.link.startsWith("http") ? void 0 : m.metadata.link
|
|
@@ -2655,7 +2652,7 @@ const Ze = W("settings", () => {
|
|
|
2655
2652
|
variant: "text"
|
|
2656
2653
|
}), {
|
|
2657
2654
|
append: r(() => [
|
|
2658
|
-
i(
|
|
2655
|
+
i(U, { size: "12" })
|
|
2659
2656
|
]),
|
|
2660
2657
|
_: 2
|
|
2661
2658
|
}, 1040, ["append-icon", "text"])
|
|
@@ -2667,16 +2664,16 @@ const Ze = W("settings", () => {
|
|
|
2667
2664
|
}, 1024)
|
|
2668
2665
|
]);
|
|
2669
2666
|
}), 128))
|
|
2670
|
-
])) : (u(),
|
|
2667
|
+
])) : (u(), I("div", Xn, [
|
|
2671
2668
|
i(Xe, {
|
|
2672
2669
|
icon: "$vuetify",
|
|
2673
2670
|
size: "256"
|
|
2674
2671
|
}, {
|
|
2675
2672
|
media: r(() => [
|
|
2676
|
-
i(
|
|
2673
|
+
i(U, { color: "medium-emphasis" })
|
|
2677
2674
|
]),
|
|
2678
2675
|
title: r(() => [
|
|
2679
|
-
|
|
2676
|
+
Kn
|
|
2680
2677
|
]),
|
|
2681
2678
|
_: 1
|
|
2682
2679
|
})
|
|
@@ -2685,14 +2682,14 @@ const Ze = W("settings", () => {
|
|
|
2685
2682
|
_: 1
|
|
2686
2683
|
}));
|
|
2687
2684
|
}
|
|
2688
|
-
}),
|
|
2685
|
+
}), as = { class: "ps-3 text-subtitle-2 pe-2" }, is = { class: "text-truncate" }, rs = { class: "text-caption font-weight-bold text-medium-emphasis" }, ls = { class: "text-disabled text-caption my-2" }, cs = /* @__PURE__ */ k({
|
|
2689
2686
|
__name: "VoNotificationsListItem",
|
|
2690
2687
|
props: {
|
|
2691
2688
|
demo: { type: Boolean },
|
|
2692
2689
|
notification: {}
|
|
2693
2690
|
},
|
|
2694
2691
|
setup(c) {
|
|
2695
|
-
const e = c, n =
|
|
2692
|
+
const e = c, n = F(), o = ke(), s = ve(), a = x(() => {
|
|
2696
2693
|
const p = e.notification.metadata ?? { action: "" };
|
|
2697
2694
|
return {
|
|
2698
2695
|
href: p.action.startsWith("http") ? p.action : void 0,
|
|
@@ -2711,15 +2708,15 @@ const Ze = W("settings", () => {
|
|
|
2711
2708
|
e.demo || (l(p.slug) ? n.notifications.read = n.notifications.read.filter((m) => m !== p.slug) : n.notifications.read.push(p.slug));
|
|
2712
2709
|
}
|
|
2713
2710
|
return (p, m) => {
|
|
2714
|
-
const
|
|
2715
|
-
return u(),
|
|
2716
|
-
default: r(({ isHovering:
|
|
2717
|
-
i(
|
|
2711
|
+
const _ = Y;
|
|
2712
|
+
return u(), h(Me, null, {
|
|
2713
|
+
default: r(({ isHovering: y, props: $ }) => [
|
|
2714
|
+
i(_, E($, { class: "py-4 mb-0" }), {
|
|
2718
2715
|
prepend: r(() => [
|
|
2719
|
-
|
|
2716
|
+
V("div", as, S(p.notification.metadata.emoji), 1)
|
|
2720
2717
|
]),
|
|
2721
2718
|
append: r(() => [
|
|
2722
|
-
i(
|
|
2719
|
+
i(Bo, {
|
|
2723
2720
|
class: "mt-n3",
|
|
2724
2721
|
width: "56"
|
|
2725
2722
|
}, {
|
|
@@ -2728,18 +2725,18 @@ const Ze = W("settings", () => {
|
|
|
2728
2725
|
location: "bottom",
|
|
2729
2726
|
text: l(p.notification.slug) ? "Mark as unread" : "Mark as read"
|
|
2730
2727
|
}, {
|
|
2731
|
-
activator: r(({ props:
|
|
2728
|
+
activator: r(({ props: g }) => [
|
|
2732
2729
|
i(Te, { "hide-on-leave": "" }, {
|
|
2733
2730
|
default: r(() => [
|
|
2734
|
-
|
|
2731
|
+
Ve(i(Z, E(g, {
|
|
2735
2732
|
class: "ms-auto",
|
|
2736
|
-
icon: `svg:${l(p.notification.slug) ? t(
|
|
2733
|
+
icon: `svg:${l(p.notification.slug) ? t(dt) : t(ut)}`,
|
|
2737
2734
|
"mdi-email-variant": "",
|
|
2738
2735
|
size: "small",
|
|
2739
2736
|
variant: "text",
|
|
2740
|
-
onClick: m[0] || (m[0] = (
|
|
2737
|
+
onClick: m[0] || (m[0] = (f) => d(p.notification))
|
|
2741
2738
|
}), null, 16, ["icon"]), [
|
|
2742
|
-
[
|
|
2739
|
+
[Oe, y || t(s).mobile.value]
|
|
2743
2740
|
])
|
|
2744
2741
|
]),
|
|
2745
2742
|
_: 2
|
|
@@ -2752,15 +2749,15 @@ const Ze = W("settings", () => {
|
|
|
2752
2749
|
}, 1024)
|
|
2753
2750
|
]),
|
|
2754
2751
|
default: r(() => [
|
|
2755
|
-
i(
|
|
2752
|
+
i(pt, { class: "text-wrap text-h6 mb-1" }, {
|
|
2756
2753
|
default: r(() => [
|
|
2757
|
-
|
|
2754
|
+
V("div", is, S(p.notification.title), 1)
|
|
2758
2755
|
]),
|
|
2759
2756
|
_: 1
|
|
2760
2757
|
}),
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
i(X,
|
|
2758
|
+
V("div", rs, S(t(o).format(p.notification.created_at, "fullDateWithWeekday")), 1),
|
|
2759
|
+
V("div", ls, S(p.notification.metadata.text), 1),
|
|
2760
|
+
i(X, E({
|
|
2764
2761
|
"append-icon": `svg:${t(Ne)}`
|
|
2765
2762
|
}, t(a), {
|
|
2766
2763
|
border: "",
|
|
@@ -2770,7 +2767,7 @@ const Ze = W("settings", () => {
|
|
|
2770
2767
|
variant: "text"
|
|
2771
2768
|
}), {
|
|
2772
2769
|
append: r(() => [
|
|
2773
|
-
i(
|
|
2770
|
+
i(U, { size: "12" })
|
|
2774
2771
|
]),
|
|
2775
2772
|
_: 1
|
|
2776
2773
|
}, 16, ["append-icon", "text"])
|
|
@@ -2782,38 +2779,38 @@ const Ze = W("settings", () => {
|
|
|
2782
2779
|
});
|
|
2783
2780
|
};
|
|
2784
2781
|
}
|
|
2785
|
-
}),
|
|
2782
|
+
}), us = {
|
|
2786
2783
|
key: 0,
|
|
2787
2784
|
class: "pt-16"
|
|
2788
|
-
},
|
|
2785
|
+
}, ds = /* @__PURE__ */ V("div", { class: "text-medium-emphasis" }, " All caught up ", -1), ps = /* @__PURE__ */ k({
|
|
2789
2786
|
__name: "VoNotificationsList",
|
|
2790
2787
|
props: {
|
|
2791
2788
|
items: {}
|
|
2792
2789
|
},
|
|
2793
2790
|
setup(c) {
|
|
2794
2791
|
return (e, n) => {
|
|
2795
|
-
const o =
|
|
2796
|
-
return u(),
|
|
2792
|
+
const o = cs;
|
|
2793
|
+
return u(), h(ae, {
|
|
2797
2794
|
class: "py-0",
|
|
2798
2795
|
height: "100%",
|
|
2799
2796
|
lines: "three"
|
|
2800
2797
|
}, {
|
|
2801
2798
|
default: r(() => [
|
|
2802
|
-
e.items.length ? (u(!0),
|
|
2799
|
+
e.items.length ? (u(!0), I(T, { key: 1 }, K(e.items, (s, a) => (u(), I(T, {
|
|
2803
2800
|
key: s.slug
|
|
2804
2801
|
}, [
|
|
2805
|
-
a !== 0 ? (u(),
|
|
2802
|
+
a !== 0 ? (u(), h(Q, { key: 0 })) : C("", !0),
|
|
2806
2803
|
i(o, { notification: s }, null, 8, ["notification"])
|
|
2807
|
-
], 64))), 128)) : (u(),
|
|
2804
|
+
], 64))), 128)) : (u(), I("div", us, [
|
|
2808
2805
|
i(Xe, {
|
|
2809
2806
|
icon: "$vuetify",
|
|
2810
2807
|
size: "256"
|
|
2811
2808
|
}, {
|
|
2812
2809
|
media: r(() => [
|
|
2813
|
-
i(
|
|
2810
|
+
i(U, { color: "medium-emphasis" })
|
|
2814
2811
|
]),
|
|
2815
2812
|
title: r(() => [
|
|
2816
|
-
|
|
2813
|
+
ds
|
|
2817
2814
|
]),
|
|
2818
2815
|
_: 1
|
|
2819
2816
|
})
|
|
@@ -2823,78 +2820,78 @@ const Ze = W("settings", () => {
|
|
|
2823
2820
|
});
|
|
2824
2821
|
};
|
|
2825
2822
|
}
|
|
2826
|
-
}),
|
|
2827
|
-
const c = oe(), e = Ke(), n =
|
|
2823
|
+
}), He = q("banners", () => {
|
|
2824
|
+
const c = oe(), e = Ke(), n = F(), o = O([]), s = O([]), a = O(), l = A(!1), d = x(() => {
|
|
2828
2825
|
if (a.value) return a.value;
|
|
2829
2826
|
if (p.value) return p.value;
|
|
2830
2827
|
if (n.notifications.banners)
|
|
2831
2828
|
return o.value.find(({
|
|
2832
|
-
slug:
|
|
2829
|
+
slug: v,
|
|
2833
2830
|
metadata: {
|
|
2834
|
-
site:
|
|
2835
|
-
active:
|
|
2831
|
+
site: b,
|
|
2832
|
+
active: M
|
|
2836
2833
|
}
|
|
2837
|
-
}) => !
|
|
2838
|
-
}), p =
|
|
2834
|
+
}) => !M || n.notifications.last.banner.includes(v) ? !1 : b.includes("dev") && !1 || b.includes("*") ? !0 : b.some((D) => e.id.includes(D)));
|
|
2835
|
+
}), p = x(() => o.value.find(({
|
|
2839
2836
|
metadata: {
|
|
2840
|
-
site:
|
|
2841
|
-
active:
|
|
2837
|
+
site: v,
|
|
2838
|
+
active: b
|
|
2842
2839
|
}
|
|
2843
|
-
}) =>
|
|
2840
|
+
}) => b ? v.includes("server") : !1));
|
|
2844
2841
|
async function m() {
|
|
2845
2842
|
try {
|
|
2846
2843
|
l.value = !0;
|
|
2847
|
-
const
|
|
2848
|
-
o.value =
|
|
2844
|
+
const v = await c.get("/one/banners");
|
|
2845
|
+
o.value = v.banners;
|
|
2849
2846
|
} catch {
|
|
2850
2847
|
} finally {
|
|
2851
2848
|
l.value = !1;
|
|
2852
2849
|
}
|
|
2853
2850
|
return o.value;
|
|
2854
2851
|
}
|
|
2855
|
-
async function
|
|
2852
|
+
async function _(v) {
|
|
2856
2853
|
try {
|
|
2857
2854
|
l.value = !0;
|
|
2858
|
-
const
|
|
2859
|
-
return a.value =
|
|
2855
|
+
const b = await c.get(`/one/admin/banners/${v}`);
|
|
2856
|
+
return a.value = b.banner, b.banner;
|
|
2860
2857
|
} catch {
|
|
2861
2858
|
} finally {
|
|
2862
2859
|
l.value = !1;
|
|
2863
2860
|
}
|
|
2864
2861
|
}
|
|
2865
|
-
async function
|
|
2862
|
+
async function y(v) {
|
|
2866
2863
|
try {
|
|
2867
2864
|
l.value = !0;
|
|
2868
|
-
const
|
|
2865
|
+
const b = await c.form(
|
|
2869
2866
|
"/one/admin/banners",
|
|
2870
|
-
|
|
2867
|
+
v
|
|
2871
2868
|
);
|
|
2872
|
-
return a.value =
|
|
2869
|
+
return a.value = b.banner, b.banner;
|
|
2873
2870
|
} catch {
|
|
2874
2871
|
} finally {
|
|
2875
2872
|
l.value = !1;
|
|
2876
2873
|
}
|
|
2877
2874
|
}
|
|
2878
|
-
async function
|
|
2875
|
+
async function $(v, b) {
|
|
2879
2876
|
try {
|
|
2880
2877
|
l.value = !0;
|
|
2881
|
-
const
|
|
2882
|
-
`/one/admin/banners/${
|
|
2883
|
-
|
|
2878
|
+
const M = await c.form(
|
|
2879
|
+
`/one/admin/banners/${v}`,
|
|
2880
|
+
b
|
|
2884
2881
|
);
|
|
2885
|
-
return a.value =
|
|
2882
|
+
return a.value = M.banner, M.banner;
|
|
2886
2883
|
} catch {
|
|
2887
2884
|
} finally {
|
|
2888
2885
|
l.value = !1;
|
|
2889
2886
|
}
|
|
2890
2887
|
}
|
|
2891
|
-
async function
|
|
2888
|
+
async function g() {
|
|
2892
2889
|
}
|
|
2893
|
-
async function
|
|
2890
|
+
async function f() {
|
|
2894
2891
|
try {
|
|
2895
2892
|
l.value = !0;
|
|
2896
|
-
const
|
|
2897
|
-
s.value =
|
|
2893
|
+
const v = await c.get("/one/admin/banners");
|
|
2894
|
+
s.value = v.banners;
|
|
2898
2895
|
} catch {
|
|
2899
2896
|
} finally {
|
|
2900
2897
|
l.value = !1;
|
|
@@ -2908,14 +2905,14 @@ const Ze = W("settings", () => {
|
|
|
2908
2905
|
server: p,
|
|
2909
2906
|
banner: d,
|
|
2910
2907
|
record: a,
|
|
2911
|
-
admin:
|
|
2912
|
-
destroy:
|
|
2908
|
+
admin: f,
|
|
2909
|
+
destroy: g,
|
|
2913
2910
|
index: m,
|
|
2914
|
-
show:
|
|
2915
|
-
store:
|
|
2916
|
-
update:
|
|
2911
|
+
show: _,
|
|
2912
|
+
store: y,
|
|
2913
|
+
update: $
|
|
2917
2914
|
};
|
|
2918
|
-
}),
|
|
2915
|
+
}), ms = { class: "text-caption" }, fs = { class: "text-caption" }, vs = /* @__PURE__ */ k({
|
|
2919
2916
|
__name: "VoNotificationsDialog",
|
|
2920
2917
|
props: {
|
|
2921
2918
|
modelValue: { type: Boolean },
|
|
@@ -2923,25 +2920,25 @@ const Ze = W("settings", () => {
|
|
|
2923
2920
|
},
|
|
2924
2921
|
emits: ["update:modelValue"],
|
|
2925
2922
|
setup(c) {
|
|
2926
|
-
const e = ve(), n =
|
|
2927
|
-
return
|
|
2923
|
+
const e = ve(), n = Le(), o = He(), s = ze(), a = j(), l = F(), d = A(["read"]), p = pe(c, "modelValue");
|
|
2924
|
+
return z(n, async () => {
|
|
2928
2925
|
if (n.value.one !== "notifications") {
|
|
2929
2926
|
p.value && (p.value = !1);
|
|
2930
2927
|
return;
|
|
2931
2928
|
}
|
|
2932
|
-
a.isOpen = !0, await
|
|
2933
|
-
}, { immediate: !0 }), (m,
|
|
2934
|
-
const
|
|
2935
|
-
return u(),
|
|
2929
|
+
a.isOpen = !0, await be(), p.value = !0;
|
|
2930
|
+
}, { immediate: !0 }), (m, _) => {
|
|
2931
|
+
const y = Y, $ = ps, g = ss, f = Se;
|
|
2932
|
+
return u(), h(f, {
|
|
2936
2933
|
modelValue: p.value,
|
|
2937
|
-
"onUpdate:modelValue":
|
|
2938
|
-
"prepend-icon": `svg:${t(
|
|
2934
|
+
"onUpdate:modelValue": _[2] || (_[2] = (v) => p.value = v),
|
|
2935
|
+
"prepend-icon": `svg:${t(mo)}`,
|
|
2939
2936
|
title: "Notifications"
|
|
2940
2937
|
}, {
|
|
2941
2938
|
default: r(() => [
|
|
2942
|
-
i(
|
|
2939
|
+
i(we, null, {
|
|
2943
2940
|
default: r(() => [
|
|
2944
|
-
i(
|
|
2941
|
+
i(No, {
|
|
2945
2942
|
location: t(e).mobile.value ? "top" : "start",
|
|
2946
2943
|
permanent: "",
|
|
2947
2944
|
width: t(e).mobile.value ? 128 : 168
|
|
@@ -2949,42 +2946,42 @@ const Ze = W("settings", () => {
|
|
|
2949
2946
|
default: r(() => [
|
|
2950
2947
|
i(ae, {
|
|
2951
2948
|
selected: t(d),
|
|
2952
|
-
"onUpdate:selected":
|
|
2949
|
+
"onUpdate:selected": _[0] || (_[0] = (v) => se(d) ? d.value = v : null),
|
|
2953
2950
|
class: "px-4 pt-4",
|
|
2954
2951
|
density: "compact",
|
|
2955
2952
|
mandatory: "",
|
|
2956
2953
|
nav: ""
|
|
2957
2954
|
}, {
|
|
2958
2955
|
default: r(() => [
|
|
2959
|
-
i(
|
|
2960
|
-
"prepend-icon": `svg:${t(
|
|
2956
|
+
i(y, {
|
|
2957
|
+
"prepend-icon": `svg:${t(fo)}`,
|
|
2961
2958
|
title: "Unread",
|
|
2962
2959
|
value: "read"
|
|
2963
|
-
},
|
|
2960
|
+
}, R({ _: 2 }, [
|
|
2964
2961
|
t(s).unread.length > 0 ? {
|
|
2965
2962
|
name: "append",
|
|
2966
2963
|
fn: r(() => [
|
|
2967
|
-
|
|
2964
|
+
V("span", ms, S(t(s).unread.length), 1)
|
|
2968
2965
|
]),
|
|
2969
2966
|
key: "0"
|
|
2970
2967
|
} : void 0
|
|
2971
2968
|
]), 1032, ["prepend-icon"]),
|
|
2972
|
-
i(
|
|
2973
|
-
"prepend-icon": `svg:${t(
|
|
2969
|
+
i(y, {
|
|
2970
|
+
"prepend-icon": `svg:${t(vo)}`,
|
|
2974
2971
|
title: "Read",
|
|
2975
2972
|
value: "unread"
|
|
2976
|
-
},
|
|
2973
|
+
}, R({ _: 2 }, [
|
|
2977
2974
|
t(s).read.length > 0 ? {
|
|
2978
2975
|
name: "append",
|
|
2979
2976
|
fn: r(() => [
|
|
2980
|
-
|
|
2977
|
+
V("span", fs, S(t(s).read.length), 1)
|
|
2981
2978
|
]),
|
|
2982
2979
|
key: "0"
|
|
2983
2980
|
} : void 0
|
|
2984
2981
|
]), 1032, ["prepend-icon"]),
|
|
2985
|
-
t(o).all.length > 0 && t(l).notifications.banners ? (u(),
|
|
2982
|
+
t(o).all.length > 0 && t(l).notifications.banners ? (u(), h(y, {
|
|
2986
2983
|
key: 0,
|
|
2987
|
-
"prepend-icon": `svg:${t(
|
|
2984
|
+
"prepend-icon": `svg:${t(_o)}`,
|
|
2988
2985
|
title: "Banners",
|
|
2989
2986
|
value: "banners"
|
|
2990
2987
|
}, {
|
|
@@ -2995,23 +2992,23 @@ const Ze = W("settings", () => {
|
|
|
2995
2992
|
})
|
|
2996
2993
|
]),
|
|
2997
2994
|
_: 1
|
|
2998
|
-
}, 8, ["prepend-icon"])) :
|
|
2995
|
+
}, 8, ["prepend-icon"])) : C("", !0)
|
|
2999
2996
|
]),
|
|
3000
2997
|
_: 1
|
|
3001
2998
|
}, 8, ["selected"])
|
|
3002
2999
|
]),
|
|
3003
3000
|
_: 1
|
|
3004
3001
|
}, 8, ["location", "width"]),
|
|
3005
|
-
i(
|
|
3002
|
+
i(xe, { scrollable: "" }, {
|
|
3006
3003
|
default: r(() => [
|
|
3007
|
-
i(
|
|
3004
|
+
i(ht, {
|
|
3008
3005
|
modelValue: t(d),
|
|
3009
|
-
"onUpdate:modelValue":
|
|
3006
|
+
"onUpdate:modelValue": _[1] || (_[1] = (v) => se(d) ? d.value = v : null)
|
|
3010
3007
|
}, {
|
|
3011
3008
|
default: r(() => [
|
|
3012
3009
|
i(ge, { value: "read" }, {
|
|
3013
3010
|
default: r(() => [
|
|
3014
|
-
i(
|
|
3011
|
+
i($, {
|
|
3015
3012
|
items: t(s).unread
|
|
3016
3013
|
}, null, 8, ["items"])
|
|
3017
3014
|
]),
|
|
@@ -3019,7 +3016,7 @@ const Ze = W("settings", () => {
|
|
|
3019
3016
|
}),
|
|
3020
3017
|
i(ge, { value: "unread" }, {
|
|
3021
3018
|
default: r(() => [
|
|
3022
|
-
i(
|
|
3019
|
+
i($, {
|
|
3023
3020
|
items: t(s).read
|
|
3024
3021
|
}, null, 8, ["items"])
|
|
3025
3022
|
]),
|
|
@@ -3027,7 +3024,7 @@ const Ze = W("settings", () => {
|
|
|
3027
3024
|
}),
|
|
3028
3025
|
i(ge, { value: "banners" }, {
|
|
3029
3026
|
default: r(() => [
|
|
3030
|
-
i(
|
|
3027
|
+
i(g, {
|
|
3031
3028
|
items: t(o).all
|
|
3032
3029
|
}, null, 8, ["items"])
|
|
3033
3030
|
]),
|
|
@@ -3047,40 +3044,40 @@ const Ze = W("settings", () => {
|
|
|
3047
3044
|
}, 8, ["modelValue", "prepend-icon"]);
|
|
3048
3045
|
};
|
|
3049
3046
|
}
|
|
3050
|
-
}),
|
|
3047
|
+
}), _s = /* @__PURE__ */ k({
|
|
3051
3048
|
__name: "VoNotificationsBadge",
|
|
3052
3049
|
setup(c) {
|
|
3053
|
-
const e =
|
|
3054
|
-
return (o, s) => (u(),
|
|
3050
|
+
const e = ze(), n = F();
|
|
3051
|
+
return (o, s) => (u(), h(Ye, {
|
|
3055
3052
|
color: "error",
|
|
3056
3053
|
content: t(e).unread.length,
|
|
3057
3054
|
"model-value": t(n).notifications.show && t(e).unread.length > 0
|
|
3058
3055
|
}, {
|
|
3059
3056
|
default: r(() => [
|
|
3060
|
-
|
|
3057
|
+
B(o.$slots, "default")
|
|
3061
3058
|
]),
|
|
3062
3059
|
_: 3
|
|
3063
3060
|
}, 8, ["content", "model-value"]));
|
|
3064
3061
|
}
|
|
3065
|
-
}),
|
|
3062
|
+
}), hs = /* @__PURE__ */ k({
|
|
3066
3063
|
__name: "VoNotificationsNavItem",
|
|
3067
3064
|
setup(c) {
|
|
3068
|
-
const e =
|
|
3069
|
-
return
|
|
3065
|
+
const e = He(), n = F(), o = ze(), s = A(!1);
|
|
3066
|
+
return Ue(async () => {
|
|
3070
3067
|
o.index(), e.index();
|
|
3071
3068
|
}), (a, l) => {
|
|
3072
|
-
const d =
|
|
3073
|
-
return t(n).notifications.show ? (u(),
|
|
3069
|
+
const d = _s, p = vs, m = Y;
|
|
3070
|
+
return t(n).notifications.show ? (u(), h(m, {
|
|
3074
3071
|
key: 0,
|
|
3075
3072
|
active: t(s),
|
|
3076
3073
|
link: "",
|
|
3077
|
-
"prepend-icon": `svg:${t(
|
|
3074
|
+
"prepend-icon": `svg:${t(ho)}`,
|
|
3078
3075
|
title: "Notifications"
|
|
3079
|
-
},
|
|
3076
|
+
}, R({
|
|
3080
3077
|
default: r(() => [
|
|
3081
3078
|
i(p, {
|
|
3082
3079
|
modelValue: t(s),
|
|
3083
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
3080
|
+
"onUpdate:modelValue": l[0] || (l[0] = (_) => se(s) ? s.value = _ : null)
|
|
3084
3081
|
}, null, 8, ["modelValue"])
|
|
3085
3082
|
]),
|
|
3086
3083
|
_: 2
|
|
@@ -3090,20 +3087,20 @@ const Ze = W("settings", () => {
|
|
|
3090
3087
|
fn: r(() => [
|
|
3091
3088
|
i(d, null, {
|
|
3092
3089
|
default: r(() => [
|
|
3093
|
-
i(
|
|
3090
|
+
i(U)
|
|
3094
3091
|
]),
|
|
3095
3092
|
_: 1
|
|
3096
3093
|
})
|
|
3097
3094
|
]),
|
|
3098
3095
|
key: "0"
|
|
3099
3096
|
} : void 0
|
|
3100
|
-
]), 1032, ["active", "prepend-icon"])) :
|
|
3097
|
+
]), 1032, ["active", "prepend-icon"])) : C("", !0);
|
|
3101
3098
|
};
|
|
3102
3099
|
}
|
|
3103
|
-
}),
|
|
3100
|
+
}), gs = /* @__PURE__ */ k({
|
|
3104
3101
|
__name: "VoDashboardNavItem",
|
|
3105
3102
|
setup(c) {
|
|
3106
|
-
const e =
|
|
3103
|
+
const e = j();
|
|
3107
3104
|
function n() {
|
|
3108
3105
|
setTimeout(() => {
|
|
3109
3106
|
e.isOpen = !1;
|
|
@@ -3111,40 +3108,40 @@ const Ze = W("settings", () => {
|
|
|
3111
3108
|
}
|
|
3112
3109
|
return (o, s) => {
|
|
3113
3110
|
const a = Y;
|
|
3114
|
-
return u(),
|
|
3115
|
-
"prepend-icon": `svg:${t(
|
|
3111
|
+
return u(), h(a, {
|
|
3112
|
+
"prepend-icon": `svg:${t(go)}`,
|
|
3116
3113
|
title: "Dashboard",
|
|
3117
3114
|
to: "/user/dashboard",
|
|
3118
3115
|
onClick: n
|
|
3119
3116
|
}, null, 8, ["prepend-icon"]);
|
|
3120
3117
|
};
|
|
3121
3118
|
}
|
|
3122
|
-
}),
|
|
3119
|
+
}), ys = /* @__PURE__ */ k({
|
|
3123
3120
|
__name: "VoUserList",
|
|
3124
3121
|
setup(c) {
|
|
3125
|
-
const e =
|
|
3122
|
+
const e = P(), n = j();
|
|
3126
3123
|
return (o, s) => {
|
|
3127
|
-
const a =
|
|
3128
|
-
return u(),
|
|
3124
|
+
const a = gs, l = hs, d = Jn, p = Yn, m = qn, _ = Nn, y = un, $ = tn;
|
|
3125
|
+
return u(), h(ae, {
|
|
3129
3126
|
density: "compact",
|
|
3130
3127
|
nav: "",
|
|
3131
3128
|
slim: ""
|
|
3132
3129
|
}, {
|
|
3133
3130
|
default: r(() => [
|
|
3134
|
-
t(e).user ? (u(),
|
|
3131
|
+
t(e).user ? (u(), h(a, { key: 0 })) : C("", !0),
|
|
3135
3132
|
i(l),
|
|
3136
3133
|
i(d),
|
|
3137
|
-
t(n).shopify ? (u(),
|
|
3134
|
+
t(n).shopify ? (u(), h(p, { key: 1 })) : C("", !0),
|
|
3138
3135
|
i(m),
|
|
3139
|
-
t(e).user ? (u(),
|
|
3140
|
-
i(
|
|
3141
|
-
t(e).user ? (u(),
|
|
3136
|
+
t(e).user ? (u(), h(_, { key: 2 })) : C("", !0),
|
|
3137
|
+
i(y),
|
|
3138
|
+
t(e).user ? (u(), h($, { key: 3 })) : C("", !0)
|
|
3142
3139
|
]),
|
|
3143
3140
|
_: 1
|
|
3144
3141
|
});
|
|
3145
3142
|
};
|
|
3146
3143
|
}
|
|
3147
|
-
}),
|
|
3144
|
+
}), Ct = /* @__PURE__ */ k({
|
|
3148
3145
|
__name: "VoIconIssues",
|
|
3149
3146
|
setup(c) {
|
|
3150
3147
|
const e = [
|
|
@@ -3152,24 +3149,24 @@ const Ze = W("settings", () => {
|
|
|
3152
3149
|
"M8.63152 12.7367L8.50057 12.5L6 8H11.263L8.63152 12.7367Z",
|
|
3153
3150
|
["M9.11205 13.6004L11 17L16 8H12.223L9.11205 13.6004Z", 0.6]
|
|
3154
3151
|
];
|
|
3155
|
-
return (n, o) => (u(),
|
|
3152
|
+
return (n, o) => (u(), h(U, { icon: e }));
|
|
3156
3153
|
}
|
|
3157
|
-
}),
|
|
3154
|
+
}), St = /* @__PURE__ */ k({
|
|
3158
3155
|
__name: "VoIconBin",
|
|
3159
3156
|
setup(c) {
|
|
3160
|
-
return (e, n) => (u(),
|
|
3157
|
+
return (e, n) => (u(), h(U, { icon: "$vuetify-bin" }));
|
|
3161
3158
|
}
|
|
3162
|
-
}),
|
|
3159
|
+
}), bs = { key: 0 }, Vs = { class: "d-flex align-center justify-center pa-1 ga-2" }, ks = /* @__PURE__ */ k({
|
|
3163
3160
|
__name: "VoUserQuickActions",
|
|
3164
3161
|
setup(c) {
|
|
3165
|
-
const e =
|
|
3162
|
+
const e = F();
|
|
3166
3163
|
return (n, o) => {
|
|
3167
|
-
const s =
|
|
3168
|
-
return u(),
|
|
3164
|
+
const s = St, a = Ct;
|
|
3165
|
+
return u(), h(fe, null, {
|
|
3169
3166
|
default: r(() => [
|
|
3170
|
-
t(e).quickbar ? (u(),
|
|
3171
|
-
|
|
3172
|
-
i(
|
|
3167
|
+
t(e).quickbar ? (u(), I("div", bs, [
|
|
3168
|
+
V("div", Vs, [
|
|
3169
|
+
i(Z, {
|
|
3173
3170
|
class: "text-caption",
|
|
3174
3171
|
color: t(e).colors.one,
|
|
3175
3172
|
density: "comfortable",
|
|
@@ -3179,7 +3176,7 @@ const Ze = W("settings", () => {
|
|
|
3179
3176
|
target: "_blank"
|
|
3180
3177
|
}, {
|
|
3181
3178
|
default: r(() => [
|
|
3182
|
-
i(
|
|
3179
|
+
i(U),
|
|
3183
3180
|
i(J, {
|
|
3184
3181
|
activator: "parent",
|
|
3185
3182
|
location: "top",
|
|
@@ -3188,7 +3185,7 @@ const Ze = W("settings", () => {
|
|
|
3188
3185
|
]),
|
|
3189
3186
|
_: 1
|
|
3190
3187
|
}, 8, ["color"]),
|
|
3191
|
-
i(
|
|
3188
|
+
i(Z, {
|
|
3192
3189
|
class: "text-caption",
|
|
3193
3190
|
color: t(e).colors.one,
|
|
3194
3191
|
density: "comfortable",
|
|
@@ -3207,7 +3204,7 @@ const Ze = W("settings", () => {
|
|
|
3207
3204
|
]),
|
|
3208
3205
|
_: 1
|
|
3209
3206
|
}, 8, ["color"]),
|
|
3210
|
-
i(
|
|
3207
|
+
i(Z, {
|
|
3211
3208
|
class: "text-caption",
|
|
3212
3209
|
color: t(e).colors.one,
|
|
3213
3210
|
density: "comfortable",
|
|
@@ -3227,16 +3224,16 @@ const Ze = W("settings", () => {
|
|
|
3227
3224
|
_: 1
|
|
3228
3225
|
}, 8, ["color"])
|
|
3229
3226
|
])
|
|
3230
|
-
])) :
|
|
3227
|
+
])) : C("", !0)
|
|
3231
3228
|
]),
|
|
3232
3229
|
_: 1
|
|
3233
3230
|
});
|
|
3234
3231
|
};
|
|
3235
3232
|
}
|
|
3236
|
-
}),
|
|
3233
|
+
}), $s = { class: "mb-2" }, ws = { key: 0 }, xs = { class: "d-flex ga-4 flex-wrap justify-center mb-4" }, Cs = { class: "text-h6" }, Ss = /* @__PURE__ */ k({
|
|
3237
3234
|
__name: "VoUserAvatar",
|
|
3238
3235
|
setup(c) {
|
|
3239
|
-
const e =
|
|
3236
|
+
const e = P(), n = j(), o = F(), s = A(!1), a = x(() => {
|
|
3240
3237
|
const p = [
|
|
3241
3238
|
"https://cdn.vuetifyjs.com/docs/images/avatars/dark.png",
|
|
3242
3239
|
"https://cdn.vuetifyjs.com/docs/images/avatars/blackguard.png",
|
|
@@ -3262,10 +3259,10 @@ const Ze = W("settings", () => {
|
|
|
3262
3259
|
n.isSubscriber && (s.value = !s.value);
|
|
3263
3260
|
}
|
|
3264
3261
|
return (p, m) => {
|
|
3265
|
-
var
|
|
3266
|
-
return u(),
|
|
3267
|
-
|
|
3268
|
-
class:
|
|
3262
|
+
var _;
|
|
3263
|
+
return u(), I("div", null, [
|
|
3264
|
+
Ve((u(), h(ee, {
|
|
3265
|
+
class: Bt([
|
|
3269
3266
|
"border-md border-opacity-100 border-surface-light",
|
|
3270
3267
|
{
|
|
3271
3268
|
"cursor-pointer": t(n).isSubscriber
|
|
@@ -3274,14 +3271,14 @@ const Ze = W("settings", () => {
|
|
|
3274
3271
|
color: "surface",
|
|
3275
3272
|
size: "72",
|
|
3276
3273
|
text: "Foobar",
|
|
3277
|
-
onClick:
|
|
3274
|
+
onClick: Ze(d, ["prevent", "stop"])
|
|
3278
3275
|
}, {
|
|
3279
3276
|
default: r(() => [
|
|
3280
|
-
t(e).user && t(o).avatar ? (u(),
|
|
3277
|
+
t(e).user && t(o).avatar ? (u(), h(te, {
|
|
3281
3278
|
key: 0,
|
|
3282
3279
|
alt: "User avatar",
|
|
3283
3280
|
src: t(o).avatar
|
|
3284
|
-
}, null, 8, ["src"])) : (u(),
|
|
3281
|
+
}, null, 8, ["src"])) : (u(), h(U, {
|
|
3285
3282
|
key: 1,
|
|
3286
3283
|
class: "mt-1",
|
|
3287
3284
|
icon: "$vuetify",
|
|
@@ -3290,30 +3287,30 @@ const Ze = W("settings", () => {
|
|
|
3290
3287
|
]),
|
|
3291
3288
|
_: 1
|
|
3292
3289
|
}, 8, ["class"])), [
|
|
3293
|
-
[
|
|
3290
|
+
[To, t(n).isSubscriber]
|
|
3294
3291
|
]),
|
|
3295
|
-
|
|
3292
|
+
V("div", $s, [
|
|
3296
3293
|
i(fe, null, {
|
|
3297
3294
|
default: r(() => [
|
|
3298
|
-
t(s) ? (u(),
|
|
3299
|
-
i(
|
|
3295
|
+
t(s) ? (u(), I("div", ws, [
|
|
3296
|
+
i(W, {
|
|
3300
3297
|
class: "pt-6 pb-1",
|
|
3301
3298
|
flat: "",
|
|
3302
3299
|
rounded: "0"
|
|
3303
3300
|
}, {
|
|
3304
3301
|
default: r(() => [
|
|
3305
|
-
|
|
3306
|
-
(u(!0),
|
|
3307
|
-
key:
|
|
3308
|
-
active: t(o).avatar ===
|
|
3302
|
+
V("div", xs, [
|
|
3303
|
+
(u(!0), I(T, null, K(t(a), (y, $) => (u(), h(Z, {
|
|
3304
|
+
key: $,
|
|
3305
|
+
active: t(o).avatar === y,
|
|
3309
3306
|
icon: "",
|
|
3310
3307
|
variant: "flat",
|
|
3311
|
-
onClick: (
|
|
3308
|
+
onClick: (g) => l(y)
|
|
3312
3309
|
}, {
|
|
3313
3310
|
default: r(() => [
|
|
3314
3311
|
i(ee, {
|
|
3315
3312
|
eager: "",
|
|
3316
|
-
image:
|
|
3313
|
+
image: y
|
|
3317
3314
|
}, null, 8, ["image"])
|
|
3318
3315
|
]),
|
|
3319
3316
|
_: 2
|
|
@@ -3322,23 +3319,23 @@ const Ze = W("settings", () => {
|
|
|
3322
3319
|
]),
|
|
3323
3320
|
_: 1
|
|
3324
3321
|
})
|
|
3325
|
-
])) :
|
|
3322
|
+
])) : C("", !0)
|
|
3326
3323
|
]),
|
|
3327
3324
|
_: 1
|
|
3328
3325
|
})
|
|
3329
3326
|
]),
|
|
3330
|
-
|
|
3327
|
+
V("div", Cs, S(((_ = t(e).user) == null ? void 0 : _.name) ?? "Guest"), 1)
|
|
3331
3328
|
]);
|
|
3332
3329
|
};
|
|
3333
3330
|
}
|
|
3334
|
-
}),
|
|
3331
|
+
}), Ls = /* @__PURE__ */ k({
|
|
3335
3332
|
__name: "VoUserBadges",
|
|
3336
3333
|
setup(c) {
|
|
3337
|
-
const e =
|
|
3334
|
+
const e = P(), n = j(), o = x(() => {
|
|
3338
3335
|
var s;
|
|
3339
3336
|
return n.github || n.discord || n.isSubscriber || ((s = e.user) == null ? void 0 : s.isAdmin);
|
|
3340
3337
|
});
|
|
3341
|
-
return (s, a) => t(o) ? (u(),
|
|
3338
|
+
return (s, a) => t(o) ? (u(), h(Je, {
|
|
3342
3339
|
key: 0,
|
|
3343
3340
|
class: "align-center position-absolute ms-2 d-flex ga-2 pa-2",
|
|
3344
3341
|
color: "rgba(0,0,0,.54)",
|
|
@@ -3348,76 +3345,76 @@ const Ze = W("settings", () => {
|
|
|
3348
3345
|
default: r(() => {
|
|
3349
3346
|
var l;
|
|
3350
3347
|
return [
|
|
3351
|
-
(l = t(e).user) != null && l.isAdmin ? (u(),
|
|
3348
|
+
(l = t(e).user) != null && l.isAdmin ? (u(), h(J, {
|
|
3352
3349
|
key: 0,
|
|
3353
3350
|
location: "bottom",
|
|
3354
3351
|
text: "Vuetify Administrator"
|
|
3355
3352
|
}, {
|
|
3356
3353
|
activator: r(({ props: d }) => [
|
|
3357
|
-
i(
|
|
3354
|
+
i(U, E({
|
|
3358
3355
|
color: "blue",
|
|
3359
3356
|
icon: "$vuetify"
|
|
3360
3357
|
}, d, { size: "16" }), null, 16)
|
|
3361
3358
|
]),
|
|
3362
3359
|
_: 1
|
|
3363
|
-
})) :
|
|
3364
|
-
t(n).isSubscriber ? (u(),
|
|
3360
|
+
})) : C("", !0),
|
|
3361
|
+
t(n).isSubscriber ? (u(), h(J, {
|
|
3365
3362
|
key: 1,
|
|
3366
3363
|
location: "bottom",
|
|
3367
3364
|
text: "Vuetify One Subscriber"
|
|
3368
3365
|
}, {
|
|
3369
3366
|
activator: r(({ props: d }) => [
|
|
3370
|
-
i(
|
|
3367
|
+
i(U, E({
|
|
3371
3368
|
color: "amber-darken-2",
|
|
3372
|
-
icon: `svg:${t(
|
|
3369
|
+
icon: `svg:${t(yo)}`
|
|
3373
3370
|
}, d, { size: "16" }), null, 16, ["icon"])
|
|
3374
3371
|
]),
|
|
3375
3372
|
_: 1
|
|
3376
|
-
})) :
|
|
3377
|
-
t(n).github ? (u(),
|
|
3373
|
+
})) : C("", !0),
|
|
3374
|
+
t(n).github ? (u(), h(J, {
|
|
3378
3375
|
key: 2,
|
|
3379
3376
|
location: "bottom",
|
|
3380
3377
|
text: "GitHub Sponsor"
|
|
3381
3378
|
}, {
|
|
3382
3379
|
activator: r(({ props: d }) => [
|
|
3383
|
-
i(
|
|
3380
|
+
i(U, E({
|
|
3384
3381
|
color: "white",
|
|
3385
3382
|
icon: "$github"
|
|
3386
3383
|
}, d, { size: "16" }), null, 16)
|
|
3387
3384
|
]),
|
|
3388
3385
|
_: 1
|
|
3389
|
-
})) :
|
|
3390
|
-
t(n).discord ? (u(),
|
|
3386
|
+
})) : C("", !0),
|
|
3387
|
+
t(n).discord ? (u(), h(J, {
|
|
3391
3388
|
key: 3,
|
|
3392
3389
|
location: "bottom",
|
|
3393
3390
|
text: "Discord Subscriber"
|
|
3394
3391
|
}, {
|
|
3395
3392
|
activator: r(({ props: d }) => [
|
|
3396
|
-
i(
|
|
3393
|
+
i(U, E({
|
|
3397
3394
|
color: "white",
|
|
3398
3395
|
icon: "$discord"
|
|
3399
3396
|
}, d, { size: "16" }), null, 16)
|
|
3400
3397
|
]),
|
|
3401
3398
|
_: 1
|
|
3402
|
-
})) :
|
|
3399
|
+
})) : C("", !0)
|
|
3403
3400
|
];
|
|
3404
3401
|
}),
|
|
3405
3402
|
_: 1
|
|
3406
|
-
})) :
|
|
3403
|
+
})) : C("", !0);
|
|
3407
3404
|
}
|
|
3408
|
-
}),
|
|
3405
|
+
}), Is = { class: "d-flex flex-grow-1 justify-end fill-height align-start" }, As = {
|
|
3409
3406
|
key: "reset",
|
|
3410
3407
|
class: "align-self-end"
|
|
3411
|
-
},
|
|
3408
|
+
}, Ds = /* @__PURE__ */ k({
|
|
3412
3409
|
__name: "VoUserColors",
|
|
3413
3410
|
setup(c) {
|
|
3414
|
-
const e =
|
|
3411
|
+
const e = P(), n = j(), o = F(), s = A(!1);
|
|
3415
3412
|
function a() {
|
|
3416
3413
|
o.colors.one = "surface-light";
|
|
3417
3414
|
}
|
|
3418
3415
|
return (l, d) => {
|
|
3419
|
-
const p =
|
|
3420
|
-
return u(),
|
|
3416
|
+
const p = Ls, m = Ce;
|
|
3417
|
+
return u(), I(T, null, [
|
|
3421
3418
|
i(te, {
|
|
3422
3419
|
color: t(e).user ? t(o).colors.one : "surface-light",
|
|
3423
3420
|
"content-class": "d-flex align-start justify-end pa-2",
|
|
@@ -3427,28 +3424,28 @@ const Ze = W("settings", () => {
|
|
|
3427
3424
|
rounded: "0"
|
|
3428
3425
|
}, {
|
|
3429
3426
|
default: r(() => [
|
|
3430
|
-
|
|
3427
|
+
V("div", Is, [
|
|
3431
3428
|
i(p),
|
|
3432
|
-
i(
|
|
3429
|
+
i(Io, null, {
|
|
3433
3430
|
default: r(() => [
|
|
3434
|
-
|
|
3431
|
+
Ve(V("div", As, [
|
|
3435
3432
|
i(m, {
|
|
3436
3433
|
class: "ms-2 me-1",
|
|
3437
3434
|
color: "inherit",
|
|
3438
3435
|
density: "comfortable",
|
|
3439
3436
|
disabled: t(o).colors.one === "surface-light",
|
|
3440
|
-
icon: `svg:${t(
|
|
3437
|
+
icon: `svg:${t(bo)}`,
|
|
3441
3438
|
title: "Revert to Default",
|
|
3442
3439
|
variant: "text",
|
|
3443
3440
|
onClick: a
|
|
3444
3441
|
}, null, 8, ["disabled", "icon"])
|
|
3445
3442
|
], 512), [
|
|
3446
|
-
[
|
|
3443
|
+
[Oe, t(s)]
|
|
3447
3444
|
])
|
|
3448
3445
|
]),
|
|
3449
3446
|
_: 1
|
|
3450
3447
|
}),
|
|
3451
|
-
t(n).isSubscriber ? (u(),
|
|
3448
|
+
t(n).isSubscriber ? (u(), h(m, {
|
|
3452
3449
|
key: 0,
|
|
3453
3450
|
active: t(s),
|
|
3454
3451
|
class: "align-self-end",
|
|
@@ -3457,12 +3454,12 @@ const Ze = W("settings", () => {
|
|
|
3457
3454
|
icon: t(s) ? `svg:${t(Be)}` : "$edit",
|
|
3458
3455
|
title: "Edit One Header Color",
|
|
3459
3456
|
variant: t(s) ? "text" : "plain",
|
|
3460
|
-
onClick: d[0] || (d[0] = (
|
|
3457
|
+
onClick: d[0] || (d[0] = (_) => s.value = !t(s))
|
|
3461
3458
|
}, {
|
|
3462
3459
|
default: r(() => [
|
|
3463
3460
|
i(Te, { "leave-absolute": "" }, {
|
|
3464
3461
|
default: r(() => [
|
|
3465
|
-
(u(),
|
|
3462
|
+
(u(), h(U, {
|
|
3466
3463
|
key: String(t(s))
|
|
3467
3464
|
}))
|
|
3468
3465
|
]),
|
|
@@ -3470,14 +3467,14 @@ const Ze = W("settings", () => {
|
|
|
3470
3467
|
})
|
|
3471
3468
|
]),
|
|
3472
3469
|
_: 1
|
|
3473
|
-
}, 8, ["active", "icon", "variant"])) :
|
|
3470
|
+
}, 8, ["active", "icon", "variant"])) : C("", !0)
|
|
3474
3471
|
])
|
|
3475
3472
|
]),
|
|
3476
3473
|
_: 1
|
|
3477
3474
|
}, 8, ["color"]),
|
|
3478
3475
|
i(fe, null, {
|
|
3479
3476
|
default: r(() => [
|
|
3480
|
-
t(s) ? (u(),
|
|
3477
|
+
t(s) ? (u(), h(Fo, {
|
|
3481
3478
|
key: 0,
|
|
3482
3479
|
elevation: "0",
|
|
3483
3480
|
height: "250",
|
|
@@ -3489,28 +3486,28 @@ const Ze = W("settings", () => {
|
|
|
3489
3486
|
"show-swatches": "",
|
|
3490
3487
|
"swatches-max-height": "200",
|
|
3491
3488
|
width: "278",
|
|
3492
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
3493
|
-
}, null, 8, ["model-value"])) :
|
|
3489
|
+
"onUpdate:modelValue": d[1] || (d[1] = (_) => t(o).colors.one = _)
|
|
3490
|
+
}, null, 8, ["model-value"])) : C("", !0)
|
|
3494
3491
|
]),
|
|
3495
3492
|
_: 1
|
|
3496
3493
|
})
|
|
3497
3494
|
], 64);
|
|
3498
3495
|
};
|
|
3499
3496
|
}
|
|
3500
|
-
}),
|
|
3497
|
+
}), Us = { class: "text-center mt-n9 mb-4" }, Os = /* @__PURE__ */ k({
|
|
3501
3498
|
__name: "VoUserMenu",
|
|
3502
3499
|
setup(c) {
|
|
3503
|
-
const e =
|
|
3504
|
-
return
|
|
3500
|
+
const e = He(), n = j(), o = O();
|
|
3501
|
+
return z(() => e.banner, async () => {
|
|
3505
3502
|
var s, a;
|
|
3506
3503
|
await new Promise((l) => setTimeout(l, 300)), n.isOpen && ((a = (s = o.value) == null ? void 0 : s.updateLocation) == null || a.call(s));
|
|
3507
3504
|
}, { flush: "pre" }), (s, a) => {
|
|
3508
|
-
const l =
|
|
3509
|
-
return u(),
|
|
3505
|
+
const l = Ds, d = Ss, p = ks, m = ys, _ = wt;
|
|
3506
|
+
return u(), h(Mo, {
|
|
3510
3507
|
ref_key: "menu",
|
|
3511
3508
|
ref: o,
|
|
3512
3509
|
modelValue: t(n).isOpen,
|
|
3513
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
3510
|
+
"onUpdate:modelValue": a[0] || (a[0] = (y) => t(n).isOpen = y),
|
|
3514
3511
|
activator: "parent",
|
|
3515
3512
|
"close-on-click": !1,
|
|
3516
3513
|
"close-on-content-click": !1,
|
|
@@ -3518,21 +3515,21 @@ const Ze = W("settings", () => {
|
|
|
3518
3515
|
location: "bottom end"
|
|
3519
3516
|
}, {
|
|
3520
3517
|
default: r(() => [
|
|
3521
|
-
i(
|
|
3518
|
+
i(W, {
|
|
3522
3519
|
border: "",
|
|
3523
3520
|
rounded: "lg",
|
|
3524
3521
|
width: "280"
|
|
3525
3522
|
}, {
|
|
3526
3523
|
default: r(() => [
|
|
3527
3524
|
i(l),
|
|
3528
|
-
|
|
3525
|
+
V("div", Us, [
|
|
3529
3526
|
i(d),
|
|
3530
3527
|
i(p)
|
|
3531
3528
|
]),
|
|
3532
|
-
i(
|
|
3529
|
+
i(Q),
|
|
3533
3530
|
i(m),
|
|
3534
|
-
i(
|
|
3535
|
-
i(
|
|
3531
|
+
i(Q),
|
|
3532
|
+
i(_)
|
|
3536
3533
|
]),
|
|
3537
3534
|
_: 1
|
|
3538
3535
|
})
|
|
@@ -3541,22 +3538,22 @@ const Ze = W("settings", () => {
|
|
|
3541
3538
|
}, 8, ["modelValue"]);
|
|
3542
3539
|
};
|
|
3543
3540
|
}
|
|
3544
|
-
}),
|
|
3541
|
+
}), Bs = { key: 0 }, Lt = /* @__PURE__ */ k({
|
|
3545
3542
|
__name: "VoAuthBtn",
|
|
3546
3543
|
props: {
|
|
3547
3544
|
external: Boolean
|
|
3548
3545
|
},
|
|
3549
3546
|
setup(c) {
|
|
3550
|
-
const e =
|
|
3547
|
+
const e = P(), n = j(), o = F(), { lgAndUp: s } = ve(), a = x(() => n.isOpen || !e.user ? o.colors.one === "surface-light" ? "primary" : o.colors.one : "surface-light");
|
|
3551
3548
|
return (l, d) => {
|
|
3552
|
-
const p =
|
|
3553
|
-
return u(),
|
|
3554
|
-
i(
|
|
3549
|
+
const p = Os, m = Ce, _ = Ko, y = $t, $ = Ho;
|
|
3550
|
+
return u(), I(T, null, [
|
|
3551
|
+
i(_, {
|
|
3555
3552
|
"offset-y": t(e).user ? 5 : 0
|
|
3556
3553
|
}, {
|
|
3557
3554
|
default: r(() => [
|
|
3558
|
-
i(m,
|
|
3559
|
-
[`${t(s) ? "append-" : ""}icon`]: t(e).user ? void 0 : `svg:${t(
|
|
3555
|
+
i(m, E({
|
|
3556
|
+
[`${t(s) ? "append-" : ""}icon`]: t(e).user ? void 0 : `svg:${t(Vo)}`
|
|
3560
3557
|
}, {
|
|
3561
3558
|
active: "",
|
|
3562
3559
|
border: !!t(e).user,
|
|
@@ -3569,11 +3566,11 @@ const Ze = W("settings", () => {
|
|
|
3569
3566
|
variant: t(e).user ? t(n).isOpen ? "outlined" : "text" : "flat"
|
|
3570
3567
|
}), {
|
|
3571
3568
|
default: r(() => [
|
|
3572
|
-
t(e).user ?
|
|
3573
|
-
t(e).user ? (u(),
|
|
3569
|
+
t(e).user ? C("", !0) : (u(), I("span", Bs, "Login")),
|
|
3570
|
+
t(e).user ? (u(), h(ee, {
|
|
3574
3571
|
key: 1,
|
|
3575
3572
|
image: t(o).avatar || t(e).user.picture || ""
|
|
3576
|
-
}, null, 8, ["image"])) :
|
|
3573
|
+
}, null, 8, ["image"])) : C("", !0),
|
|
3577
3574
|
i(p)
|
|
3578
3575
|
]),
|
|
3579
3576
|
_: 1
|
|
@@ -3581,25 +3578,25 @@ const Ze = W("settings", () => {
|
|
|
3581
3578
|
]),
|
|
3582
3579
|
_: 1
|
|
3583
3580
|
}, 8, ["offset-y"]),
|
|
3584
|
-
i(
|
|
3585
|
-
i(
|
|
3581
|
+
i(y),
|
|
3582
|
+
i($)
|
|
3586
3583
|
], 64);
|
|
3587
3584
|
};
|
|
3588
3585
|
}
|
|
3589
|
-
}),
|
|
3586
|
+
}), Ns = /* @__PURE__ */ k({
|
|
3590
3587
|
__name: "VoAppBar",
|
|
3591
3588
|
props: {
|
|
3592
3589
|
logo: {}
|
|
3593
3590
|
},
|
|
3594
3591
|
setup(c) {
|
|
3595
|
-
const e = c, n =
|
|
3592
|
+
const e = c, n = Fe(), o = je(), s = x(() => `https://cdn.vuetifyjs.com/docs/images/one/logos/${e.logo}-logo-${n.current.value.dark ? "dark" : "light"}.png`);
|
|
3596
3593
|
return (a, l) => {
|
|
3597
|
-
const d =
|
|
3598
|
-
return u(),
|
|
3594
|
+
const d = Nt("router-link"), p = Lt;
|
|
3595
|
+
return u(), h(gt, {
|
|
3599
3596
|
class: "border-b",
|
|
3600
3597
|
image: t(o).suit["app-bar"],
|
|
3601
3598
|
name: "vo-app-bar"
|
|
3602
|
-
},
|
|
3599
|
+
}, R({
|
|
3603
3600
|
prepend: r(() => [
|
|
3604
3601
|
i(d, {
|
|
3605
3602
|
class: "ps-2",
|
|
@@ -3613,270 +3610,284 @@ const Ze = W("settings", () => {
|
|
|
3613
3610
|
]),
|
|
3614
3611
|
_: 1
|
|
3615
3612
|
}),
|
|
3616
|
-
|
|
3613
|
+
B(a.$slots, "prepend")
|
|
3617
3614
|
]),
|
|
3618
3615
|
append: r(() => [
|
|
3619
|
-
|
|
3620
|
-
a.$slots.append ? (u(),
|
|
3616
|
+
B(a.$slots, "append"),
|
|
3617
|
+
a.$slots.append ? (u(), h(Q, {
|
|
3621
3618
|
key: 0,
|
|
3622
3619
|
class: "mx-4 align-self-center h-100",
|
|
3623
3620
|
length: "20",
|
|
3624
3621
|
vertical: ""
|
|
3625
|
-
})) :
|
|
3622
|
+
})) : C("", !0),
|
|
3626
3623
|
i(p)
|
|
3627
3624
|
]),
|
|
3628
3625
|
default: r(() => [
|
|
3629
|
-
|
|
3626
|
+
B(a.$slots, "default")
|
|
3630
3627
|
]),
|
|
3631
3628
|
_: 2
|
|
3632
3629
|
}, [
|
|
3633
3630
|
a.$slots.title ? {
|
|
3634
3631
|
name: "title",
|
|
3635
3632
|
fn: r(() => [
|
|
3636
|
-
|
|
3633
|
+
B(a.$slots, "title")
|
|
3637
3634
|
]),
|
|
3638
3635
|
key: "0"
|
|
3639
3636
|
} : void 0,
|
|
3640
3637
|
a.$slots.extension ? {
|
|
3641
3638
|
name: "extension",
|
|
3642
3639
|
fn: r(() => [
|
|
3643
|
-
|
|
3640
|
+
B(a.$slots, "extension")
|
|
3644
3641
|
]),
|
|
3645
3642
|
key: "1"
|
|
3646
3643
|
} : void 0
|
|
3647
3644
|
]), 1032, ["image"]);
|
|
3648
3645
|
};
|
|
3649
3646
|
}
|
|
3650
|
-
}),
|
|
3647
|
+
}), Ts = /* @__PURE__ */ k({
|
|
3651
3648
|
__name: "VoNotificationsBanner",
|
|
3652
3649
|
props: {
|
|
3653
3650
|
demo: { type: Boolean }
|
|
3654
3651
|
},
|
|
3655
3652
|
setup(c) {
|
|
3656
|
-
const e = c, { mdAndUp: n } = ve(), o =
|
|
3657
|
-
var
|
|
3658
|
-
return ((
|
|
3659
|
-
}), p =
|
|
3653
|
+
const e = c, { mdAndUp: n } = ve(), o = Qe(), s = F(), a = He(), l = x(() => a.banner), d = x(() => {
|
|
3654
|
+
var g, f;
|
|
3655
|
+
return ((g = l.value) == null ? void 0 : g.metadata.height) || ((f = l.value) != null && f.metadata.subtext ? 88 : 48);
|
|
3656
|
+
}), p = x(() => e.demo ? !0 : !l.value || !s.notifications.last.banner.includes(l.value.slug));
|
|
3660
3657
|
function m() {
|
|
3661
3658
|
l.value && s.notifications.last.banner.push(l.value.slug);
|
|
3662
3659
|
}
|
|
3663
|
-
async function
|
|
3664
|
-
var
|
|
3660
|
+
async function _(g) {
|
|
3661
|
+
var b;
|
|
3665
3662
|
if (!l.value) return;
|
|
3666
|
-
m(), await
|
|
3667
|
-
const
|
|
3668
|
-
if (
|
|
3669
|
-
|
|
3670
|
-
const
|
|
3671
|
-
o.push({ query: { one:
|
|
3663
|
+
m(), await be();
|
|
3664
|
+
const f = ((b = l.value) == null ? void 0 : b.metadata) ?? { link: "" };
|
|
3665
|
+
if (f.link.indexOf("?one=") === -1) return;
|
|
3666
|
+
g.preventDefault(), g.stopPropagation();
|
|
3667
|
+
const v = f.link.split("?one=")[1];
|
|
3668
|
+
o.push({ query: { one: v } });
|
|
3672
3669
|
}
|
|
3673
|
-
const
|
|
3674
|
-
var
|
|
3675
|
-
const
|
|
3670
|
+
const y = x(() => {
|
|
3671
|
+
var f, v;
|
|
3672
|
+
const g = ((f = l.value) == null ? void 0 : f.metadata) ?? { link: "" };
|
|
3676
3673
|
return {
|
|
3677
|
-
href:
|
|
3678
|
-
target:
|
|
3679
|
-
to:
|
|
3680
|
-
...(
|
|
3681
|
-
onClick:
|
|
3674
|
+
href: g.link.startsWith("http") ? g.link : void 0,
|
|
3675
|
+
target: g.link.startsWith("http") ? "_blank" : void 0,
|
|
3676
|
+
to: g.link.startsWith("http") ? void 0 : g.link,
|
|
3677
|
+
...(v = l.value) == null ? void 0 : v.metadata.attributes,
|
|
3678
|
+
onClick: _
|
|
3682
3679
|
};
|
|
3680
|
+
}), $ = x(() => {
|
|
3681
|
+
var v, b;
|
|
3682
|
+
const g = (b = (v = l.value) == null ? void 0 : v.metadata.images.bg) == null ? void 0 : b.url;
|
|
3683
|
+
if (!(g != null && g.startsWith("https://cdn.cosmicjs.com/"))) return g;
|
|
3684
|
+
const f = new URL(g);
|
|
3685
|
+
return f.host = "imgix.cosmicjs.com", f.search = new URLSearchParams({
|
|
3686
|
+
auto: "format,compress",
|
|
3687
|
+
q: "10",
|
|
3688
|
+
fit: "crop",
|
|
3689
|
+
w: "4096",
|
|
3690
|
+
h: "256"
|
|
3691
|
+
}).toString(), f.toString();
|
|
3683
3692
|
});
|
|
3684
|
-
return (
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
_: 1
|
|
3767
|
-
}, 8, ["color", "height", "image", "location", "model-value"])) : $("", !0);
|
|
3768
|
-
};
|
|
3693
|
+
return (g, f) => t(l) ? (u(), h(gt, {
|
|
3694
|
+
key: 0,
|
|
3695
|
+
color: t(l).metadata.color,
|
|
3696
|
+
flat: "",
|
|
3697
|
+
height: t(d),
|
|
3698
|
+
image: t($),
|
|
3699
|
+
location: g.demo ? "bottom" : void 0,
|
|
3700
|
+
"model-value": t(p),
|
|
3701
|
+
order: "-1"
|
|
3702
|
+
}, {
|
|
3703
|
+
default: r(() => [
|
|
3704
|
+
i(me, E(t(y), {
|
|
3705
|
+
active: !1,
|
|
3706
|
+
class: "flex-grow-1 py-6",
|
|
3707
|
+
lines: "two",
|
|
3708
|
+
onClick: _
|
|
3709
|
+
}), {
|
|
3710
|
+
prepend: r(() => [
|
|
3711
|
+
t(l).metadata.images.logo ? (u(), h(ee, {
|
|
3712
|
+
key: 0,
|
|
3713
|
+
icon: "$vuetify",
|
|
3714
|
+
image: t(l).metadata.images.logo.url,
|
|
3715
|
+
size: "x-large",
|
|
3716
|
+
tile: ""
|
|
3717
|
+
}, null, 8, ["image"])) : C("", !0)
|
|
3718
|
+
]),
|
|
3719
|
+
append: r(() => [
|
|
3720
|
+
t(n) && t(l).metadata.link && t(l).metadata.link_text ? (u(), h(Me, { key: 0 }, {
|
|
3721
|
+
default: r(({ isHovering: v, props: b }) => [
|
|
3722
|
+
i(Z, E({
|
|
3723
|
+
...b,
|
|
3724
|
+
...t(y)
|
|
3725
|
+
}, {
|
|
3726
|
+
"append-icon": `svg:${t(Ne)}`,
|
|
3727
|
+
class: "text-none me-2",
|
|
3728
|
+
color: t(l).metadata.link_color,
|
|
3729
|
+
elevation: v ? 8 : 0,
|
|
3730
|
+
title: t(l).metadata.link_text,
|
|
3731
|
+
variant: "elevated",
|
|
3732
|
+
onClick: _
|
|
3733
|
+
}), {
|
|
3734
|
+
default: r(() => [
|
|
3735
|
+
N(S(t(l).metadata.link_text), 1)
|
|
3736
|
+
]),
|
|
3737
|
+
_: 2
|
|
3738
|
+
}, 1040, ["append-icon", "color", "elevation", "title"])
|
|
3739
|
+
]),
|
|
3740
|
+
_: 1
|
|
3741
|
+
})) : C("", !0),
|
|
3742
|
+
t(l).metadata.closable ? (u(), h(Z, {
|
|
3743
|
+
key: 1,
|
|
3744
|
+
class: "ms-6 me-2",
|
|
3745
|
+
density: "comfortable",
|
|
3746
|
+
disabled: g.demo,
|
|
3747
|
+
icon: "$clear",
|
|
3748
|
+
size: "small",
|
|
3749
|
+
variant: "plain",
|
|
3750
|
+
onClick: Ze(m, ["prevent", "stop"])
|
|
3751
|
+
}, null, 8, ["disabled"])) : C("", !0)
|
|
3752
|
+
]),
|
|
3753
|
+
default: r(() => [
|
|
3754
|
+
t(l).metadata.text ? (u(), h(pt, {
|
|
3755
|
+
key: 0,
|
|
3756
|
+
class: "text-subtitle-2 text-md-subtitle-1 font-weight-medium"
|
|
3757
|
+
}, {
|
|
3758
|
+
default: r(() => [
|
|
3759
|
+
N(S(t(l).metadata.text), 1)
|
|
3760
|
+
]),
|
|
3761
|
+
_: 1
|
|
3762
|
+
})) : C("", !0),
|
|
3763
|
+
t(l).metadata.subtext ? (u(), h(xo, { key: 1 }, {
|
|
3764
|
+
default: r(() => [
|
|
3765
|
+
N(S(t(l).metadata.subtext), 1)
|
|
3766
|
+
]),
|
|
3767
|
+
_: 1
|
|
3768
|
+
})) : C("", !0)
|
|
3769
|
+
]),
|
|
3770
|
+
_: 1
|
|
3771
|
+
}, 16)
|
|
3772
|
+
]),
|
|
3773
|
+
_: 1
|
|
3774
|
+
}, 8, ["color", "height", "image", "location", "model-value"])) : C("", !0);
|
|
3769
3775
|
}
|
|
3770
|
-
}),
|
|
3776
|
+
}), et = (c, e) => {
|
|
3777
|
+
const n = c.__vccOpts || c;
|
|
3778
|
+
for (const [o, s] of e)
|
|
3779
|
+
n[o] = s;
|
|
3780
|
+
return n;
|
|
3781
|
+
}, Fs = /* @__PURE__ */ et(Ts, [["__scopeId", "data-v-73de1479"]]), Ms = {
|
|
3771
3782
|
key: 0,
|
|
3772
3783
|
class: "text-uppercase position-absolute ms-auto font-weight-medium on-surface-light",
|
|
3773
3784
|
style: { right: "12px", bottom: "8px", "font-size": "10px" }
|
|
3774
|
-
},
|
|
3785
|
+
}, It = /* @__PURE__ */ k({
|
|
3775
3786
|
__name: "VoPromotionsCard",
|
|
3776
3787
|
props: {
|
|
3777
3788
|
caption: {},
|
|
3778
3789
|
minHeight: {}
|
|
3779
3790
|
},
|
|
3780
3791
|
setup(c) {
|
|
3781
|
-
return (e, n) => (u(),
|
|
3792
|
+
return (e, n) => (u(), h(W, {
|
|
3782
3793
|
class: "d-inline-flex flex-child-1 position-relative",
|
|
3783
3794
|
color: "surface-light",
|
|
3784
3795
|
flat: "",
|
|
3785
3796
|
rel: "noopener",
|
|
3786
3797
|
rounded: "",
|
|
3787
3798
|
target: "_blank"
|
|
3788
|
-
},
|
|
3799
|
+
}, R({
|
|
3789
3800
|
default: r(() => [
|
|
3790
|
-
i(
|
|
3801
|
+
i(zo, {
|
|
3791
3802
|
"min-height": e.minHeight,
|
|
3792
3803
|
width: "100%"
|
|
3793
3804
|
}, {
|
|
3794
3805
|
default: r(() => [
|
|
3795
|
-
|
|
3806
|
+
B(e.$slots, "default")
|
|
3796
3807
|
]),
|
|
3797
3808
|
_: 3
|
|
3798
3809
|
}, 8, ["min-height"]),
|
|
3799
|
-
e.caption ? (u(),
|
|
3810
|
+
e.caption ? (u(), I("div", Ms, S(e.caption), 1)) : C("", !0)
|
|
3800
3811
|
]),
|
|
3801
3812
|
_: 2
|
|
3802
3813
|
}, [
|
|
3803
3814
|
e.$slots.prepend ? {
|
|
3804
3815
|
name: "prepend",
|
|
3805
3816
|
fn: r(() => [
|
|
3806
|
-
|
|
3817
|
+
B(e.$slots, "prepend")
|
|
3807
3818
|
]),
|
|
3808
3819
|
key: "0"
|
|
3809
3820
|
} : void 0,
|
|
3810
3821
|
e.$slots.image ? {
|
|
3811
3822
|
name: "image",
|
|
3812
3823
|
fn: r(() => [
|
|
3813
|
-
|
|
3824
|
+
B(e.$slots, "image")
|
|
3814
3825
|
]),
|
|
3815
3826
|
key: "1"
|
|
3816
3827
|
} : void 0
|
|
3817
3828
|
]), 1024));
|
|
3818
3829
|
}
|
|
3819
|
-
}),
|
|
3820
|
-
const c = oe(), e =
|
|
3821
|
-
|
|
3822
|
-
function d(
|
|
3823
|
-
const
|
|
3824
|
-
return
|
|
3830
|
+
}), tt = q("promotions", () => {
|
|
3831
|
+
const c = oe(), e = O([]), n = O([]), o = O(), s = A(!1), a = A(!1), l = x(() => e.value.filter((f) => f.metadata.discoverable));
|
|
3832
|
+
Ge(p);
|
|
3833
|
+
function d(f) {
|
|
3834
|
+
const v = f.filter((b) => b.metadata.active);
|
|
3835
|
+
return v[Math.floor(Math.random() * v.length)];
|
|
3825
3836
|
}
|
|
3826
3837
|
async function p() {
|
|
3827
3838
|
try {
|
|
3828
3839
|
s.value = !0;
|
|
3829
|
-
const
|
|
3830
|
-
e.value =
|
|
3840
|
+
const f = await c.get("/one/promotions");
|
|
3841
|
+
e.value = f.promotions;
|
|
3831
3842
|
} catch {
|
|
3832
3843
|
} finally {
|
|
3833
3844
|
s.value = !1, a.value = !0;
|
|
3834
3845
|
}
|
|
3835
3846
|
return e.value;
|
|
3836
3847
|
}
|
|
3837
|
-
async function m(
|
|
3848
|
+
async function m(f) {
|
|
3838
3849
|
try {
|
|
3839
3850
|
s.value = !0;
|
|
3840
|
-
const
|
|
3841
|
-
return o.value =
|
|
3851
|
+
const v = await c.get(`/one/admin/promotions/${f}`);
|
|
3852
|
+
return o.value = v.promotion, v.promotion;
|
|
3842
3853
|
} catch {
|
|
3843
3854
|
} finally {
|
|
3844
3855
|
s.value = !1;
|
|
3845
3856
|
}
|
|
3846
3857
|
}
|
|
3847
|
-
async function f
|
|
3858
|
+
async function _(f) {
|
|
3848
3859
|
try {
|
|
3849
3860
|
s.value = !0;
|
|
3850
|
-
const
|
|
3861
|
+
const v = await c.form(
|
|
3851
3862
|
"/one/admin/promotions",
|
|
3852
|
-
|
|
3863
|
+
f
|
|
3853
3864
|
);
|
|
3854
|
-
return o.value =
|
|
3865
|
+
return o.value = v.promotion, v.promotion;
|
|
3855
3866
|
} catch {
|
|
3856
3867
|
} finally {
|
|
3857
3868
|
s.value = !1;
|
|
3858
3869
|
}
|
|
3859
3870
|
}
|
|
3860
|
-
async function
|
|
3871
|
+
async function y(f, v) {
|
|
3861
3872
|
try {
|
|
3862
3873
|
s.value = !0;
|
|
3863
|
-
const
|
|
3864
|
-
`/one/admin/promotions/${
|
|
3865
|
-
|
|
3874
|
+
const b = await c.form(
|
|
3875
|
+
`/one/admin/promotions/${f}`,
|
|
3876
|
+
v
|
|
3866
3877
|
);
|
|
3867
|
-
return o.value =
|
|
3878
|
+
return o.value = b.promotion, b.promotion;
|
|
3868
3879
|
} catch {
|
|
3869
3880
|
} finally {
|
|
3870
3881
|
s.value = !1;
|
|
3871
3882
|
}
|
|
3872
3883
|
}
|
|
3873
|
-
async function
|
|
3884
|
+
async function $() {
|
|
3874
3885
|
}
|
|
3875
|
-
async function
|
|
3886
|
+
async function g() {
|
|
3876
3887
|
try {
|
|
3877
3888
|
s.value = !0;
|
|
3878
|
-
const
|
|
3879
|
-
n.value =
|
|
3889
|
+
const f = await c.get("/one/admin/promotions");
|
|
3890
|
+
n.value = f.promotions;
|
|
3880
3891
|
} catch {
|
|
3881
3892
|
} finally {
|
|
3882
3893
|
s.value = !1;
|
|
@@ -3890,50 +3901,50 @@ const Ze = W("settings", () => {
|
|
|
3890
3901
|
hasLoaded: a,
|
|
3891
3902
|
discoverable: l,
|
|
3892
3903
|
record: o,
|
|
3893
|
-
admin:
|
|
3894
|
-
destroy:
|
|
3904
|
+
admin: g,
|
|
3905
|
+
destroy: $,
|
|
3895
3906
|
index: p,
|
|
3896
3907
|
random: d,
|
|
3897
3908
|
show: m,
|
|
3898
|
-
store:
|
|
3899
|
-
update:
|
|
3909
|
+
store: _,
|
|
3910
|
+
update: y
|
|
3900
3911
|
};
|
|
3901
|
-
}),
|
|
3912
|
+
}), zs = /* @__PURE__ */ k({
|
|
3902
3913
|
__name: "VoPromotionsCardHighlight",
|
|
3903
3914
|
props: {
|
|
3904
3915
|
slug: {}
|
|
3905
3916
|
},
|
|
3906
3917
|
setup(c) {
|
|
3907
|
-
const e = c, n =
|
|
3918
|
+
const e = c, n = P(), o = tt(), s = Fe(), a = F(), l = x(() => {
|
|
3908
3919
|
if (o.record) return o.record;
|
|
3909
3920
|
if (!(n.user && a.disableAds))
|
|
3910
3921
|
return e.slug ? o.all.find((m) => m.slug === e.slug) : o.random(o.all);
|
|
3911
|
-
}), d =
|
|
3912
|
-
var
|
|
3922
|
+
}), d = x(() => {
|
|
3923
|
+
var _, y;
|
|
3913
3924
|
const m = s.current.value.dark ? "logodark" : "logolight";
|
|
3914
|
-
return (
|
|
3915
|
-
}), p =
|
|
3916
|
-
var
|
|
3925
|
+
return (y = (_ = l.value) == null ? void 0 : _.metadata.images[m]) == null ? void 0 : y.url;
|
|
3926
|
+
}), p = x(() => {
|
|
3927
|
+
var _, y;
|
|
3917
3928
|
const m = s.current.value.dark ? "bgdark" : "bglight";
|
|
3918
|
-
return (
|
|
3929
|
+
return (y = (_ = l.value) == null ? void 0 : _.metadata.images[m]) == null ? void 0 : y.url;
|
|
3919
3930
|
});
|
|
3920
|
-
return (m,
|
|
3921
|
-
var
|
|
3922
|
-
const
|
|
3923
|
-
return t(l) || !t(o).hasLoaded ? (u(),
|
|
3931
|
+
return (m, _) => {
|
|
3932
|
+
var $, g, f;
|
|
3933
|
+
const y = It;
|
|
3934
|
+
return t(l) || !t(o).hasLoaded ? (u(), h(y, {
|
|
3924
3935
|
key: 0,
|
|
3925
3936
|
class: "mb-4",
|
|
3926
|
-
color: ((
|
|
3937
|
+
color: (($ = t(l)) == null ? void 0 : $.metadata.color) ?? "surface",
|
|
3927
3938
|
height: "60",
|
|
3928
|
-
href: (
|
|
3939
|
+
href: (g = t(l)) == null ? void 0 : g.metadata.url,
|
|
3929
3940
|
image: t(p),
|
|
3930
3941
|
"max-width": "720",
|
|
3931
3942
|
"prepend-avatar": t(d),
|
|
3932
|
-
title: (
|
|
3943
|
+
title: (f = t(l)) == null ? void 0 : f.metadata.short_text,
|
|
3933
3944
|
width: "100%"
|
|
3934
|
-
},
|
|
3945
|
+
}, R({
|
|
3935
3946
|
default: r(() => [
|
|
3936
|
-
t(o).hasLoaded ?
|
|
3947
|
+
t(o).hasLoaded ? C("", !0) : (u(), h(ye, {
|
|
3937
3948
|
key: 0,
|
|
3938
3949
|
class: "flex-1-0 overflow-hidden",
|
|
3939
3950
|
color: "transparent",
|
|
@@ -3962,49 +3973,49 @@ const Ze = W("settings", () => {
|
|
|
3962
3973
|
]),
|
|
3963
3974
|
key: "1"
|
|
3964
3975
|
} : void 0
|
|
3965
|
-
]), 1032, ["color", "href", "image", "prepend-avatar", "title"])) :
|
|
3976
|
+
]), 1032, ["color", "href", "image", "prepend-avatar", "title"])) : C("", !0);
|
|
3966
3977
|
};
|
|
3967
3978
|
}
|
|
3968
|
-
}),
|
|
3979
|
+
}), js = { class: "d-flex ga-4" }, Ps = { class: "d-flex align-start ga-4" }, Hs = { class: "text-caption on-surface-light" }, Rs = /* @__PURE__ */ k({
|
|
3969
3980
|
__name: "VoPromotionsCardVuetify",
|
|
3970
3981
|
props: {
|
|
3971
3982
|
slug: {}
|
|
3972
3983
|
},
|
|
3973
3984
|
setup(c) {
|
|
3974
|
-
const e = c, n =
|
|
3985
|
+
const e = c, n = P(), o = tt(), s = F(), a = x(() => {
|
|
3975
3986
|
if (o.record) return o.record;
|
|
3976
3987
|
if (!(n.user && s.disableAds && !s.showHouseAds))
|
|
3977
|
-
return e.slug ? o.all.find((l) => l.slug === e.slug) : o.random(o.all);
|
|
3988
|
+
return e.slug ? o.all.find((l) => l.slug === e.slug) : o.random(s.disableAds && s.showHouseAds ? o.discoverable : o.all);
|
|
3978
3989
|
});
|
|
3979
3990
|
return (l, d) => {
|
|
3980
|
-
var m,
|
|
3981
|
-
const p =
|
|
3982
|
-
return t(a) || !t(o).hasLoaded ? (u(),
|
|
3991
|
+
var m, _;
|
|
3992
|
+
const p = It;
|
|
3993
|
+
return t(a) || !t(o).hasLoaded ? (u(), h(p, {
|
|
3983
3994
|
key: 0,
|
|
3984
3995
|
border: "",
|
|
3985
3996
|
caption: "ads via vuetify",
|
|
3986
3997
|
class: "pa-2 mb-4",
|
|
3987
|
-
href: (
|
|
3998
|
+
href: (_ = (m = t(a)) == null ? void 0 : m.metadata) == null ? void 0 : _.url,
|
|
3988
3999
|
width: "360"
|
|
3989
4000
|
}, {
|
|
3990
4001
|
default: r(() => {
|
|
3991
|
-
var
|
|
4002
|
+
var y, $, g;
|
|
3992
4003
|
return [
|
|
3993
|
-
|
|
3994
|
-
t(o).hasLoaded ? t(a) ? (u(),
|
|
4004
|
+
V("div", js, [
|
|
4005
|
+
t(o).hasLoaded ? t(a) ? (u(), I(T, { key: 1 }, [
|
|
3995
4006
|
i(te, {
|
|
3996
4007
|
cover: "",
|
|
3997
4008
|
height: "100",
|
|
3998
4009
|
"max-width": "130",
|
|
3999
4010
|
position: "right",
|
|
4000
4011
|
rounded: "s",
|
|
4001
|
-
src: (
|
|
4012
|
+
src: ($ = (y = t(a).metadata) == null ? void 0 : y.images.default) == null ? void 0 : $.url,
|
|
4002
4013
|
width: "100%"
|
|
4003
4014
|
}, null, 8, ["src"]),
|
|
4004
|
-
|
|
4005
|
-
|
|
4015
|
+
V("div", Ps, [
|
|
4016
|
+
V("div", Hs, S((g = t(a).metadata) == null ? void 0 : g.text), 1)
|
|
4006
4017
|
])
|
|
4007
|
-
], 64)) :
|
|
4018
|
+
], 64)) : C("", !0) : (u(), I(T, { key: 0 }, [
|
|
4008
4019
|
i(ye, {
|
|
4009
4020
|
class: "flex-1-0 overflow-hidden",
|
|
4010
4021
|
color: "transparent",
|
|
@@ -4025,76 +4036,71 @@ const Ze = W("settings", () => {
|
|
|
4025
4036
|
];
|
|
4026
4037
|
}),
|
|
4027
4038
|
_: 1
|
|
4028
|
-
}, 8, ["href"])) :
|
|
4039
|
+
}, 8, ["href"])) : C("", !0);
|
|
4029
4040
|
};
|
|
4030
4041
|
}
|
|
4031
|
-
}),
|
|
4042
|
+
}), Es = {
|
|
4032
4043
|
key: 0,
|
|
4033
4044
|
class: "v-footer__image"
|
|
4034
|
-
},
|
|
4045
|
+
}, Ws = /* @__PURE__ */ k({
|
|
4035
4046
|
__name: "VoFooter",
|
|
4036
4047
|
props: {
|
|
4037
4048
|
image: {}
|
|
4038
4049
|
},
|
|
4039
4050
|
setup(c) {
|
|
4040
|
-
return (e, n) => (u(),
|
|
4051
|
+
return (e, n) => (u(), h(jo, {
|
|
4041
4052
|
class: "vo-footer",
|
|
4042
4053
|
height: "40"
|
|
4043
4054
|
}, {
|
|
4044
4055
|
default: r(() => [
|
|
4045
|
-
e.image || e.$slots.image ? (u(),
|
|
4046
|
-
e.$slots.image ?
|
|
4056
|
+
e.image || e.$slots.image ? (u(), I("div", Es, [
|
|
4057
|
+
e.$slots.image ? B(e.$slots, "image", { key: 0 }, void 0, !0) : (u(), h(te, {
|
|
4047
4058
|
key: 1,
|
|
4048
4059
|
cover: "",
|
|
4049
4060
|
position: "left",
|
|
4050
4061
|
src: e.image
|
|
4051
4062
|
}, null, 8, ["src"]))
|
|
4052
|
-
])) :
|
|
4053
|
-
|
|
4063
|
+
])) : C("", !0),
|
|
4064
|
+
B(e.$slots, "default", {}, void 0, !0)
|
|
4054
4065
|
]),
|
|
4055
4066
|
_: 3
|
|
4056
4067
|
}));
|
|
4057
4068
|
}
|
|
4058
|
-
}),
|
|
4059
|
-
const n = c.__vccOpts || c;
|
|
4060
|
-
for (const [o, s] of e)
|
|
4061
|
-
n[o] = s;
|
|
4062
|
-
return n;
|
|
4063
|
-
}, At = /* @__PURE__ */ St(Ps, [["__scopeId", "data-v-3135ada5"]]), Rs = ["href"], Es = /* @__PURE__ */ L({
|
|
4069
|
+
}), At = /* @__PURE__ */ et(Ws, [["__scopeId", "data-v-3135ada5"]]), qs = ["href"], Zs = /* @__PURE__ */ k({
|
|
4064
4070
|
__name: "VoPromotionsFooter",
|
|
4065
4071
|
props: {
|
|
4066
4072
|
slug: {}
|
|
4067
4073
|
},
|
|
4068
4074
|
setup(c) {
|
|
4069
|
-
const e = c, n =
|
|
4075
|
+
const e = c, n = P(), o = tt(), s = F(), a = Fe(), l = x(() => {
|
|
4070
4076
|
if (o.record) return o.record;
|
|
4071
4077
|
if (!(n.user && s.disableAds))
|
|
4072
4078
|
return e.slug ? o.all.find((m) => m.slug === e.slug) : o.random(o.all);
|
|
4073
|
-
}), d =
|
|
4074
|
-
var
|
|
4079
|
+
}), d = x(() => {
|
|
4080
|
+
var _, y;
|
|
4075
4081
|
const m = a.current.value.dark ? "logodark" : "logolight";
|
|
4076
|
-
return (
|
|
4077
|
-
}), p =
|
|
4078
|
-
var
|
|
4082
|
+
return (y = (_ = l.value) == null ? void 0 : _.metadata.images[m]) == null ? void 0 : y.url;
|
|
4083
|
+
}), p = x(() => {
|
|
4084
|
+
var _, y;
|
|
4079
4085
|
const m = a.current.value.dark ? "bgdark" : "bglight";
|
|
4080
|
-
return (
|
|
4086
|
+
return (y = (_ = l.value) == null ? void 0 : _.metadata.images[m]) == null ? void 0 : y.url;
|
|
4081
4087
|
});
|
|
4082
|
-
return
|
|
4088
|
+
return Ge(async () => {
|
|
4083
4089
|
e.slug && await o.show(e.slug);
|
|
4084
|
-
}), (m,
|
|
4085
|
-
var
|
|
4086
|
-
const
|
|
4087
|
-
return u(),
|
|
4088
|
-
color: ((
|
|
4090
|
+
}), (m, _) => {
|
|
4091
|
+
var $;
|
|
4092
|
+
const y = At;
|
|
4093
|
+
return u(), h(y, {
|
|
4094
|
+
color: (($ = t(l)) == null ? void 0 : $.metadata.color) ?? "surface",
|
|
4089
4095
|
image: t(p),
|
|
4090
4096
|
style: { transform: "translateY(0)" }
|
|
4091
4097
|
}, {
|
|
4092
4098
|
default: r(() => {
|
|
4093
|
-
var
|
|
4099
|
+
var g, f, v;
|
|
4094
4100
|
return [
|
|
4095
|
-
|
|
4101
|
+
V("a", {
|
|
4096
4102
|
class: "d-flex align-center text-decoration-none py-2 px-4 ms-n4 flex-1-0 me-n4 position-relative",
|
|
4097
|
-
href: (
|
|
4103
|
+
href: (g = t(l)) == null ? void 0 : g.metadata.url,
|
|
4098
4104
|
rel: "noopener noreferrer",
|
|
4099
4105
|
style: { color: "inherit" },
|
|
4100
4106
|
target: "_blank"
|
|
@@ -4105,23 +4111,23 @@ const Ze = W("settings", () => {
|
|
|
4105
4111
|
image: t(d),
|
|
4106
4112
|
size: "24"
|
|
4107
4113
|
}, null, 8, ["image"]),
|
|
4108
|
-
|
|
4109
|
-
(
|
|
4114
|
+
V("div", null, S((f = t(l)) == null ? void 0 : f.metadata.text), 1),
|
|
4115
|
+
(v = t(l)) != null && v.metadata.advertisement ? (u(), h(X, {
|
|
4110
4116
|
key: 0,
|
|
4111
4117
|
class: "ms-auto me-n4 align-self-end mb-n2 py-1 ps-3",
|
|
4112
4118
|
rounded: "0 ts-lg",
|
|
4113
4119
|
size: "x-small",
|
|
4114
4120
|
text: "SPONSORED",
|
|
4115
4121
|
variant: "flat"
|
|
4116
|
-
})) :
|
|
4117
|
-
], 8,
|
|
4122
|
+
})) : C("", !0)
|
|
4123
|
+
], 8, qs)
|
|
4118
4124
|
];
|
|
4119
4125
|
}),
|
|
4120
4126
|
_: 1
|
|
4121
4127
|
}, 8, ["color", "image"]);
|
|
4122
4128
|
};
|
|
4123
4129
|
}
|
|
4124
|
-
}),
|
|
4130
|
+
}), Gs = ["id"], Qs = /* @__PURE__ */ k({
|
|
4125
4131
|
__name: "VoScript",
|
|
4126
4132
|
props: {
|
|
4127
4133
|
id: {
|
|
@@ -4139,29 +4145,29 @@ const Ze = W("settings", () => {
|
|
|
4139
4145
|
},
|
|
4140
4146
|
emits: ["script:error", "script:load"],
|
|
4141
4147
|
setup(c, { emit: e }) {
|
|
4142
|
-
const n = c, o = e, s =
|
|
4143
|
-
return
|
|
4148
|
+
const n = c, o = e, s = O(), a = O();
|
|
4149
|
+
return Ge(async () => {
|
|
4144
4150
|
const l = document.createElement("script"), d = () => o("script:error");
|
|
4145
4151
|
l.type = "text/javascript", l.id = n.scriptId, l.src = n.src, l.onload = () => o("script:load"), l.onerror = d, a.value = l;
|
|
4146
|
-
}),
|
|
4152
|
+
}), Ue(() => {
|
|
4147
4153
|
var l;
|
|
4148
4154
|
a.value && ((l = s.value) == null || l.appendChild(a.value));
|
|
4149
|
-
}),
|
|
4155
|
+
}), Tt(() => {
|
|
4150
4156
|
var l;
|
|
4151
4157
|
a.value && ((l = s.value) == null || l.removeChild(a.value));
|
|
4152
|
-
}), (l, d) => (u(),
|
|
4158
|
+
}), (l, d) => (u(), I("div", {
|
|
4153
4159
|
id: c.id,
|
|
4154
4160
|
ref_key: "rootEl",
|
|
4155
4161
|
ref: s
|
|
4156
|
-
}, null, 8,
|
|
4162
|
+
}, null, 8, Gs));
|
|
4157
4163
|
}
|
|
4158
|
-
}),
|
|
4164
|
+
}), Ys = (c) => (Ft("data-v-d01d30e4"), c = c(), Mt(), c), Js = ["href", "title"], Xs = {
|
|
4159
4165
|
class: "text-caption text-disabled",
|
|
4160
4166
|
style: { position: "absolute", right: "16px" }
|
|
4161
|
-
},
|
|
4167
|
+
}, Ks = /* @__PURE__ */ Ys(() => /* @__PURE__ */ V("span", { class: "d-none d-sm-inline-block" }, "Vuetify, LLC", -1)), ea = /* @__PURE__ */ k({
|
|
4162
4168
|
__name: "VoSocialFooter",
|
|
4163
4169
|
setup(c) {
|
|
4164
|
-
const e =
|
|
4170
|
+
const e = je(), n = [
|
|
4165
4171
|
{
|
|
4166
4172
|
title: "Vuetify Documentation",
|
|
4167
4173
|
icon: "$vuetify",
|
|
@@ -4169,7 +4175,7 @@ const Ze = W("settings", () => {
|
|
|
4169
4175
|
},
|
|
4170
4176
|
{
|
|
4171
4177
|
title: "Vuetify Support",
|
|
4172
|
-
icon: `svg:${
|
|
4178
|
+
icon: `svg:${ko}`,
|
|
4173
4179
|
href: "https://support.vuetifyjs.com/"
|
|
4174
4180
|
},
|
|
4175
4181
|
{
|
|
@@ -4195,13 +4201,13 @@ const Ze = W("settings", () => {
|
|
|
4195
4201
|
];
|
|
4196
4202
|
return (o, s) => {
|
|
4197
4203
|
const a = At;
|
|
4198
|
-
return u(),
|
|
4204
|
+
return u(), h(a, {
|
|
4199
4205
|
class: "vo-footer",
|
|
4200
4206
|
height: "40",
|
|
4201
4207
|
image: t(e).suit.footer
|
|
4202
|
-
},
|
|
4208
|
+
}, R({
|
|
4203
4209
|
default: r(() => [
|
|
4204
|
-
(u(),
|
|
4210
|
+
(u(), I(T, null, K(n, (l) => V("a", {
|
|
4205
4211
|
key: l.title,
|
|
4206
4212
|
class: "d-inline-block mx-2 social-link",
|
|
4207
4213
|
href: l.href,
|
|
@@ -4209,14 +4215,14 @@ const Ze = W("settings", () => {
|
|
|
4209
4215
|
target: "_blank",
|
|
4210
4216
|
title: l.title
|
|
4211
4217
|
}, [
|
|
4212
|
-
i(
|
|
4218
|
+
i(U, {
|
|
4213
4219
|
icon: l.icon,
|
|
4214
4220
|
size: l.icon === "$vuetify" ? 24 : 16
|
|
4215
4221
|
}, null, 8, ["icon", "size"])
|
|
4216
|
-
], 8,
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4222
|
+
], 8, Js)), 64)),
|
|
4223
|
+
V("div", Xs, [
|
|
4224
|
+
N(" © 2016-" + S((/* @__PURE__ */ new Date()).getFullYear()) + " ", 1),
|
|
4225
|
+
Ks
|
|
4220
4226
|
])
|
|
4221
4227
|
]),
|
|
4222
4228
|
_: 2
|
|
@@ -4224,74 +4230,74 @@ const Ze = W("settings", () => {
|
|
|
4224
4230
|
o.$slots.image ? {
|
|
4225
4231
|
name: "image",
|
|
4226
4232
|
fn: r(() => [
|
|
4227
|
-
|
|
4233
|
+
B(o.$slots, "image", {}, void 0, !0)
|
|
4228
4234
|
]),
|
|
4229
4235
|
key: "0"
|
|
4230
4236
|
} : void 0
|
|
4231
4237
|
]), 1032, ["image"]);
|
|
4232
4238
|
};
|
|
4233
4239
|
}
|
|
4234
|
-
}),
|
|
4235
|
-
const c = oe(), e = Ke(), n =
|
|
4240
|
+
}), ta = /* @__PURE__ */ et(ea, [["__scopeId", "data-v-d01d30e4"]]), oa = q("spots", () => {
|
|
4241
|
+
const c = oe(), e = Ke(), n = O([]), o = O([]), s = O(), a = A(!1), l = x(() => s.value ? s.value : n.value.find(({
|
|
4236
4242
|
metadata: {
|
|
4237
|
-
site:
|
|
4238
|
-
active:
|
|
4243
|
+
site: g,
|
|
4244
|
+
active: f
|
|
4239
4245
|
}
|
|
4240
|
-
}) =>
|
|
4246
|
+
}) => f ? g.includes("dev") && !1 || g.includes("*") ? !0 : g.some((v) => e.id.includes(v)) : !1));
|
|
4241
4247
|
async function d() {
|
|
4242
4248
|
try {
|
|
4243
4249
|
a.value = !0;
|
|
4244
|
-
const
|
|
4245
|
-
n.value =
|
|
4250
|
+
const g = await c.get("/one/spots");
|
|
4251
|
+
n.value = g.spots;
|
|
4246
4252
|
} catch {
|
|
4247
4253
|
} finally {
|
|
4248
4254
|
a.value = !1;
|
|
4249
4255
|
}
|
|
4250
4256
|
return n.value;
|
|
4251
4257
|
}
|
|
4252
|
-
async function p(
|
|
4258
|
+
async function p(g) {
|
|
4253
4259
|
try {
|
|
4254
4260
|
a.value = !0;
|
|
4255
|
-
const
|
|
4256
|
-
return s.value =
|
|
4261
|
+
const f = await c.get(`/one/admin/spots/${g}`);
|
|
4262
|
+
return s.value = f.spot, f.spot;
|
|
4257
4263
|
} catch {
|
|
4258
4264
|
} finally {
|
|
4259
4265
|
a.value = !1;
|
|
4260
4266
|
}
|
|
4261
4267
|
}
|
|
4262
|
-
async function m(
|
|
4268
|
+
async function m(g) {
|
|
4263
4269
|
try {
|
|
4264
4270
|
a.value = !0;
|
|
4265
|
-
const
|
|
4271
|
+
const f = await c.form(
|
|
4266
4272
|
"/one/admin/spots",
|
|
4267
|
-
|
|
4273
|
+
g
|
|
4268
4274
|
);
|
|
4269
|
-
return s.value =
|
|
4275
|
+
return s.value = f.spot, f.spot;
|
|
4270
4276
|
} catch {
|
|
4271
4277
|
} finally {
|
|
4272
4278
|
a.value = !1;
|
|
4273
4279
|
}
|
|
4274
4280
|
}
|
|
4275
|
-
async function
|
|
4281
|
+
async function _(g, f) {
|
|
4276
4282
|
try {
|
|
4277
4283
|
a.value = !0;
|
|
4278
|
-
const
|
|
4279
|
-
`/one/admin/spots/${
|
|
4280
|
-
|
|
4284
|
+
const v = await c.form(
|
|
4285
|
+
`/one/admin/spots/${g}`,
|
|
4286
|
+
f
|
|
4281
4287
|
);
|
|
4282
|
-
return s.value =
|
|
4288
|
+
return s.value = v.spot, v.spot;
|
|
4283
4289
|
} catch {
|
|
4284
4290
|
} finally {
|
|
4285
4291
|
a.value = !1;
|
|
4286
4292
|
}
|
|
4287
4293
|
}
|
|
4288
|
-
async function
|
|
4294
|
+
async function y() {
|
|
4289
4295
|
}
|
|
4290
|
-
async function
|
|
4296
|
+
async function $() {
|
|
4291
4297
|
try {
|
|
4292
4298
|
a.value = !0;
|
|
4293
|
-
const
|
|
4294
|
-
o.value =
|
|
4299
|
+
const g = await c.get("/one/admin/spots");
|
|
4300
|
+
o.value = g.spots;
|
|
4295
4301
|
} catch {
|
|
4296
4302
|
} finally {
|
|
4297
4303
|
a.value = !1;
|
|
@@ -4304,20 +4310,20 @@ const Ze = W("settings", () => {
|
|
|
4304
4310
|
isLoading: a,
|
|
4305
4311
|
spot: l,
|
|
4306
4312
|
record: s,
|
|
4307
|
-
admin:
|
|
4313
|
+
admin: $,
|
|
4308
4314
|
index: d,
|
|
4309
4315
|
show: p,
|
|
4310
4316
|
store: m,
|
|
4311
|
-
update:
|
|
4312
|
-
destroy:
|
|
4317
|
+
update: _,
|
|
4318
|
+
destroy: y
|
|
4313
4319
|
};
|
|
4314
|
-
}),
|
|
4320
|
+
}), na = ["href"], sa = /* @__PURE__ */ k({
|
|
4315
4321
|
__name: "VoSpot",
|
|
4316
4322
|
setup(c) {
|
|
4317
|
-
const e =
|
|
4323
|
+
const e = oa();
|
|
4318
4324
|
return (n, o) => {
|
|
4319
4325
|
var s;
|
|
4320
|
-
return t(e).spot ? (u(),
|
|
4326
|
+
return t(e).spot ? (u(), I("a", {
|
|
4321
4327
|
key: 0,
|
|
4322
4328
|
href: t(e).spot.metadata.href,
|
|
4323
4329
|
rel: "noopener noreferrer sponsored",
|
|
@@ -4330,10 +4336,10 @@ const Ze = W("settings", () => {
|
|
|
4330
4336
|
src: (s = t(e).spot.metadata.image) == null ? void 0 : s.url,
|
|
4331
4337
|
width: "225"
|
|
4332
4338
|
}, null, 8, ["color", "src"])
|
|
4333
|
-
], 8,
|
|
4339
|
+
], 8, na)) : C("", !0);
|
|
4334
4340
|
};
|
|
4335
4341
|
}
|
|
4336
|
-
}),
|
|
4342
|
+
}), Ga = {
|
|
4337
4343
|
discord: ["M22,24L16.75,19L17.38,21H4.5A2.5,2.5 0 0,1 2,18.5V3.5A2.5,2.5 0 0,1 4.5,1H19.5A2.5,2.5 0 0,1 22,3.5V24M12,6.8C9.32,6.8 7.44,7.95 7.44,7.95C8.47,7.03 10.27,6.5 10.27,6.5L10.1,6.33C8.41,6.36 6.88,7.53 6.88,7.53C5.16,11.12 5.27,14.22 5.27,14.22C6.67,16.03 8.75,15.9 8.75,15.9L9.46,15C8.21,14.73 7.42,13.62 7.42,13.62C7.42,13.62 9.3,14.9 12,14.9C14.7,14.9 16.58,13.62 16.58,13.62C16.58,13.62 15.79,14.73 14.54,15L15.25,15.9C15.25,15.9 17.33,16.03 18.73,14.22C18.73,14.22 18.84,11.12 17.12,7.53C17.12,7.53 15.59,6.36 13.9,6.33L13.73,6.5C13.73,6.5 15.53,7.03 16.56,7.95C16.56,7.95 14.68,6.8 12,6.8M9.93,10.59C10.58,10.59 11.11,11.16 11.1,11.86C11.1,12.55 10.58,13.13 9.93,13.13C9.29,13.13 8.77,12.55 8.77,11.86C8.77,11.16 9.28,10.59 9.93,10.59M14.1,10.59C14.75,10.59 15.27,11.16 15.27,11.86C15.27,12.55 14.75,13.13 14.1,13.13C13.46,13.13 12.94,12.55 12.94,11.86C12.94,11.16 13.45,10.59 14.1,10.59Z"],
|
|
4338
4344
|
github: ["M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z"],
|
|
4339
4345
|
reddit: "M14.5 15.41C14.58 15.5 14.58 15.69 14.5 15.8C13.77 16.5 12.41 16.56 12 16.56C11.61 16.56 10.25 16.5 9.54 15.8C9.44 15.69 9.44 15.5 9.54 15.41C9.65 15.31 9.82 15.31 9.92 15.41C10.38 15.87 11.33 16 12 16C12.69 16 13.66 15.87 14.1 15.41C14.21 15.31 14.38 15.31 14.5 15.41M10.75 13.04C10.75 12.47 10.28 12 9.71 12C9.14 12 8.67 12.47 8.67 13.04C8.67 13.61 9.14 14.09 9.71 14.08C10.28 14.08 10.75 13.61 10.75 13.04M14.29 12C13.72 12 13.25 12.5 13.25 13.05S13.72 14.09 14.29 14.09C14.86 14.09 15.33 13.61 15.33 13.05C15.33 12.5 14.86 12 14.29 12M22 12C22 17.5 17.5 22 12 22S2 17.5 2 12C2 6.5 6.5 2 12 2S22 6.5 22 12M18.67 12C18.67 11.19 18 10.54 17.22 10.54C16.82 10.54 16.46 10.7 16.2 10.95C15.2 10.23 13.83 9.77 12.3 9.71L12.97 6.58L15.14 7.05C15.16 7.6 15.62 8.04 16.18 8.04C16.75 8.04 17.22 7.57 17.22 7C17.22 6.43 16.75 5.96 16.18 5.96C15.77 5.96 15.41 6.2 15.25 6.55L12.82 6.03C12.75 6 12.68 6.03 12.63 6.07C12.57 6.11 12.54 6.17 12.53 6.24L11.79 9.72C10.24 9.77 8.84 10.23 7.82 10.96C7.56 10.71 7.2 10.56 6.81 10.56C6 10.56 5.35 11.21 5.35 12C5.35 12.61 5.71 13.11 6.21 13.34C6.19 13.5 6.18 13.62 6.18 13.78C6.18 16 8.79 17.85 12 17.85C15.23 17.85 17.85 16.03 17.85 13.78C17.85 13.64 17.84 13.5 17.81 13.34C18.31 13.11 18.67 12.6 18.67 12Z",
|
|
@@ -4354,71 +4360,71 @@ const Ze = W("settings", () => {
|
|
|
4354
4360
|
["M12.435 14.3194L22 4L9.26479 7.61064L12.435 14.3194Z", 1],
|
|
4355
4361
|
["M2 4L6.87046 12.2799L9.26479 7.61064L2 4Z", 1]
|
|
4356
4362
|
]
|
|
4357
|
-
},
|
|
4358
|
-
const c =
|
|
4359
|
-
|
|
4363
|
+
}, Qa = q("bins", () => {
|
|
4364
|
+
const c = P(), e = oe(), n = O([]), o = O(), s = A(!1), a = A(-1), l = x(() => !c.user || !o.value ? !1 : c.user.id === o.value.owner.id), d = x(() => n.value.filter((v) => v.favorite)), p = x(() => n.value.filter((v) => v.pinned));
|
|
4365
|
+
z(o, () => {
|
|
4360
4366
|
window.clearTimeout(a.value), a.value = window.setTimeout(() => {
|
|
4361
|
-
!o.value || !l.value ||
|
|
4367
|
+
!o.value || !l.value || $(o.value, o.value.id);
|
|
4362
4368
|
}, 100);
|
|
4363
4369
|
}, { deep: !0 });
|
|
4364
4370
|
async function m() {
|
|
4365
4371
|
try {
|
|
4366
4372
|
s.value = !0;
|
|
4367
|
-
const
|
|
4368
|
-
n.value =
|
|
4373
|
+
const v = await e.get("/one/bins");
|
|
4374
|
+
n.value = v.bins;
|
|
4369
4375
|
} catch {
|
|
4370
4376
|
} finally {
|
|
4371
4377
|
s.value = !1;
|
|
4372
4378
|
}
|
|
4373
4379
|
return n.value;
|
|
4374
4380
|
}
|
|
4375
|
-
async function
|
|
4381
|
+
async function _(v) {
|
|
4376
4382
|
try {
|
|
4377
|
-
s.value = !0, await e.delete(`/one/bins/${
|
|
4383
|
+
s.value = !0, await e.delete(`/one/bins/${v}`), n.value = n.value.filter((b) => b.id !== v);
|
|
4378
4384
|
} catch {
|
|
4379
4385
|
} finally {
|
|
4380
4386
|
s.value = !1;
|
|
4381
4387
|
}
|
|
4382
4388
|
return !0;
|
|
4383
4389
|
}
|
|
4384
|
-
async function
|
|
4390
|
+
async function y(v) {
|
|
4385
4391
|
try {
|
|
4386
4392
|
s.value = !0;
|
|
4387
|
-
const
|
|
4388
|
-
return n.value.push(
|
|
4393
|
+
const b = await e.post("/one/bins", { bin: v });
|
|
4394
|
+
return n.value.push(b.bin), o.value = b.bin, b;
|
|
4389
4395
|
} catch {
|
|
4390
4396
|
} finally {
|
|
4391
4397
|
s.value = !1;
|
|
4392
4398
|
}
|
|
4393
|
-
return { bin:
|
|
4399
|
+
return { bin: v };
|
|
4394
4400
|
}
|
|
4395
|
-
async function
|
|
4401
|
+
async function $(v, b) {
|
|
4396
4402
|
try {
|
|
4397
4403
|
s.value = !0;
|
|
4398
|
-
const
|
|
4399
|
-
n.value.splice(
|
|
4404
|
+
const M = await e.post(`/one/bins/${b}`, { bin: v }), D = n.value.findIndex((H) => H.id === b);
|
|
4405
|
+
n.value.splice(D, 1, M.bin);
|
|
4400
4406
|
} catch {
|
|
4401
4407
|
} finally {
|
|
4402
4408
|
s.value = !1;
|
|
4403
4409
|
}
|
|
4404
|
-
return { bin:
|
|
4410
|
+
return { bin: v };
|
|
4405
4411
|
}
|
|
4406
|
-
async function
|
|
4412
|
+
async function g(v, b) {
|
|
4407
4413
|
try {
|
|
4408
4414
|
s.value = !0;
|
|
4409
|
-
const
|
|
4410
|
-
o.value =
|
|
4415
|
+
const M = b ? await $(v, b) : await y(v);
|
|
4416
|
+
o.value = M.bin;
|
|
4411
4417
|
} catch {
|
|
4412
4418
|
} finally {
|
|
4413
4419
|
s.value = !1;
|
|
4414
4420
|
}
|
|
4415
|
-
return { bin:
|
|
4421
|
+
return { bin: v };
|
|
4416
4422
|
}
|
|
4417
|
-
async function
|
|
4423
|
+
async function f(v) {
|
|
4418
4424
|
try {
|
|
4419
4425
|
s.value = !0;
|
|
4420
|
-
const
|
|
4421
|
-
o.value =
|
|
4426
|
+
const b = await e.get(`/one/bins/${v}`);
|
|
4427
|
+
o.value = b.bin;
|
|
4422
4428
|
} catch {
|
|
4423
4429
|
} finally {
|
|
4424
4430
|
s.value = !1;
|
|
@@ -4431,16 +4437,16 @@ const Ze = W("settings", () => {
|
|
|
4431
4437
|
pinned: p,
|
|
4432
4438
|
favorites: d,
|
|
4433
4439
|
all: n,
|
|
4434
|
-
create:
|
|
4435
|
-
delete:
|
|
4440
|
+
create: y,
|
|
4441
|
+
delete: _,
|
|
4436
4442
|
current: o,
|
|
4437
|
-
find:
|
|
4443
|
+
find: f,
|
|
4438
4444
|
get: m,
|
|
4439
|
-
update:
|
|
4440
|
-
updateOrCreate:
|
|
4445
|
+
update: $,
|
|
4446
|
+
updateOrCreate: g
|
|
4441
4447
|
};
|
|
4442
|
-
}),
|
|
4443
|
-
const c = oe(), e =
|
|
4448
|
+
}), Ya = q("products", () => {
|
|
4449
|
+
const c = oe(), e = O([]), n = x(() => e.value.filter((a) => a.product_type === "Themes"));
|
|
4444
4450
|
async function o() {
|
|
4445
4451
|
if (e.value.length) return e.value;
|
|
4446
4452
|
try {
|
|
@@ -4460,31 +4466,31 @@ const Ze = W("settings", () => {
|
|
|
4460
4466
|
randomize: s
|
|
4461
4467
|
};
|
|
4462
4468
|
});
|
|
4463
|
-
function
|
|
4469
|
+
function Ja() {
|
|
4464
4470
|
function c(e) {
|
|
4465
|
-
e.component("VoAppBar",
|
|
4471
|
+
e.component("VoAppBar", Ns), e.component("VoAuthBtn", Lt), e.component("VoAuthCard", kt), e.component("VoAuthDialog", $t), e.component("VoAuthListItem", wt), e.component("VoIconBin", St), e.component("VoIconIssues", Ct), e.component("VoNotificationsBanner", Fs), e.component("VoPromotionsCardHighlight", zs), e.component("VoPromotionsCardVuetify", Rs), e.component("VoPromotionsFooter", Zs), e.component("VoScript", Qs), e.component("VoSocialFooter", ta), e.component("VoSpot", sa);
|
|
4466
4472
|
}
|
|
4467
4473
|
return { install: c };
|
|
4468
4474
|
}
|
|
4469
|
-
function
|
|
4475
|
+
function Xa(c, e) {
|
|
4470
4476
|
return function(n) {
|
|
4471
4477
|
const o = n.store;
|
|
4472
4478
|
o.url = e, o.$id === "site" && (o.id = c);
|
|
4473
4479
|
};
|
|
4474
4480
|
}
|
|
4475
4481
|
export {
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
+
Ga as aliases,
|
|
4483
|
+
Ja as createOne,
|
|
4484
|
+
Xa as one,
|
|
4485
|
+
P as useAuthStore,
|
|
4486
|
+
He as useBannersStore,
|
|
4487
|
+
Qa as useBinsStore,
|
|
4482
4488
|
oe as useHttpStore,
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4489
|
+
j as useOneStore,
|
|
4490
|
+
Ya as useProductsStore,
|
|
4491
|
+
tt as usePromotionsStore,
|
|
4492
|
+
Po as useQueueStore,
|
|
4493
|
+
je as useSettingsStore,
|
|
4494
|
+
oa as useSpotsStore,
|
|
4495
|
+
F as useUserStore
|
|
4490
4496
|
};
|