@aham.ro/ui-designer 0.1.8 → 0.1.9
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/Designer.vue.d.ts +10 -1
- package/dist/index.d.ts +4 -1
- package/dist/stores/translations.d.ts +47 -0
- package/dist/ui-designer.css +1 -1
- package/dist/ui-designer.js +1136 -759
- package/dist/widgets/Header.vue.d.ts +10 -1
- package/dist/widgets/ThemeSidebar.vue.d.ts +13 -0
- package/dist/widgets/TranslationSidebar.vue.d.ts +21 -0
- package/dist/widgets/header/IconButton.vue.d.ts +2 -0
- package/package.json +1 -1
package/dist/ui-designer.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t,
|
|
2
|
-
import { defineStore as
|
|
1
|
+
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createStaticVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, onUnmounted as v, openBlock as y, ref as b, renderList as x, renderSlot as S, resolveComponent as C, resolveDynamicComponent as w, shallowRef as T, toDisplayString as E, toRefs as D, unref as O, vModelText as k, watch as A, watchPostEffect as j, withCtx as M, withDirectives as ee, withKeys as N, withModifiers as P } from "vue";
|
|
2
|
+
import { defineStore as F } from "pinia";
|
|
3
3
|
//#region src/composables/useTranslation.ts
|
|
4
|
-
function
|
|
5
|
-
let e =
|
|
4
|
+
function I() {
|
|
5
|
+
let e = f()?.appContext.config.globalProperties, t = e?.$t, n = typeof t == "function" ? t.bind(e) : void 0;
|
|
6
6
|
return (e, t) => {
|
|
7
7
|
let r = n?.(e);
|
|
8
8
|
return r && r !== e ? r : t;
|
|
@@ -10,7 +10,7 @@ function P() {
|
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region node_modules/overlayscrollbars/overlayscrollbars.mjs
|
|
13
|
-
var
|
|
13
|
+
var L = (e, t) => {
|
|
14
14
|
let { o: n, i: r, u: i } = e, a = n, o, s = (e, t) => {
|
|
15
15
|
let n = a, s = e, c = t || (r ? !r(n, s) : n !== s);
|
|
16
16
|
return (c || i) && (a = s, o = n), [
|
|
@@ -24,21 +24,21 @@ var F = (e, t) => {
|
|
|
24
24
|
!!e,
|
|
25
25
|
o
|
|
26
26
|
]];
|
|
27
|
-
},
|
|
27
|
+
}, R = typeof window < "u" && typeof HTMLElement < "u" && window.document ? window : {}, z = Math.max, B = Math.min, V = Math.round, H = Math.abs, te = Math.sign, ne = R.cancelAnimationFrame, re = R.requestAnimationFrame, ie = R.setTimeout, ae = R.clearTimeout, oe = (e) => R[e] === void 0 ? void 0 : R[e], se = oe("MutationObserver"), ce = oe("IntersectionObserver"), le = oe("ResizeObserver"), ue = oe("ScrollTimeline"), de = (e) => e === void 0, fe = (e) => e === null, pe = (e) => typeof e == "number", me = (e) => typeof e == "string", he = (e) => typeof e == "boolean", U = (e) => typeof e == "function", W = (e) => Array.isArray(e), ge = (e) => typeof e == "object" && !W(e) && !fe(e), _e = (e) => {
|
|
28
28
|
let t = !!e && e.length, n = pe(t) && t > -1 && t % 1 == 0;
|
|
29
|
-
return
|
|
30
|
-
}, ve = (e) => !!e && e.constructor === Object, ye = (e) => e instanceof HTMLElement,
|
|
29
|
+
return W(e) || !U(e) && n ? t > 0 && ge(e) ? t - 1 in e : !0 : !1;
|
|
30
|
+
}, ve = (e) => !!e && e.constructor === Object, ye = (e) => e instanceof HTMLElement, be = (e) => e instanceof Element;
|
|
31
31
|
function G(e, t) {
|
|
32
32
|
if (_e(e)) for (let n = 0; n < e.length && t(e[n], n, e) !== !1; n++);
|
|
33
33
|
else e && G(Object.keys(e), ((n) => t(e[n], n, e)));
|
|
34
34
|
return e;
|
|
35
35
|
}
|
|
36
|
-
var
|
|
36
|
+
var xe = (e, t) => e.indexOf(t) >= 0, Se = (e, t) => e.concat(t), K = (e, t, n) => (!me(t) && _e(t) ? Array.prototype.push.apply(e, t) : e.push(t), e), Ce = (e) => Array.from(e || []), we = (e) => W(e) ? e : !me(e) && _e(e) ? Ce(e) : [e], Te = (e) => !!e && !e.length, Ee = (e) => Ce(new Set(e)), q = (e, t, n) => {
|
|
37
37
|
G(e, (e) => !e || e.apply(void 0, t || [])), n || (e.length = 0);
|
|
38
|
-
},
|
|
38
|
+
}, De = "paddingTop", Oe = "paddingRight", ke = "paddingLeft", Ae = "paddingBottom", je = "marginLeft", Me = "marginRight", Ne = "marginBottom", Pe = "overflowX", Fe = "overflowY", Ie = "width", Le = "height", Re = "visible", ze = "hidden", Be = "scroll", Ve = (e) => {
|
|
39
39
|
let t = String(e || "");
|
|
40
40
|
return t ? t[0].toUpperCase() + t.slice(1) : "";
|
|
41
|
-
},
|
|
41
|
+
}, He = (e, t, n, r) => {
|
|
42
42
|
if (e && t) {
|
|
43
43
|
let r = !0;
|
|
44
44
|
return G(n, ((n) => {
|
|
@@ -46,18 +46,18 @@ var be = (e, t) => e.indexOf(t) >= 0, xe = (e, t) => e.concat(t), K = (e, t, n)
|
|
|
46
46
|
})), r;
|
|
47
47
|
}
|
|
48
48
|
return !1;
|
|
49
|
-
},
|
|
49
|
+
}, Ue = (e, t) => He(e, t, ["w", "h"]), We = (e, t) => He(e, t, ["x", "y"]), Ge = (e, t) => He(e, t, [
|
|
50
50
|
"t",
|
|
51
51
|
"r",
|
|
52
52
|
"b",
|
|
53
53
|
"l"
|
|
54
|
-
]), J = (e, ...t) => e.bind(0, ...t),
|
|
54
|
+
]), J = (e, ...t) => e.bind(0, ...t), Ke = (e) => {
|
|
55
55
|
let t, n = e ? ie : re, r = e ? ae : ne;
|
|
56
56
|
return [(i) => {
|
|
57
|
-
r(t), t = n((() => i()),
|
|
57
|
+
r(t), t = n((() => i()), U(e) ? e() : e);
|
|
58
58
|
}, () => r(t)];
|
|
59
|
-
},
|
|
60
|
-
let t =
|
|
59
|
+
}, qe = (e) => {
|
|
60
|
+
let t = U(e) ? e() : e;
|
|
61
61
|
if (pe(t)) {
|
|
62
62
|
let e = t ? ie : re, n = t ? ae : ne;
|
|
63
63
|
return (r) => {
|
|
@@ -68,20 +68,20 @@ var be = (e, t) => e.indexOf(t) >= 0, xe = (e, t) => e.concat(t), K = (e, t, n)
|
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
return t && t._;
|
|
71
|
-
},
|
|
71
|
+
}, Je = (e, t) => {
|
|
72
72
|
let { p: n, v: r, S: i, m: a } = t || {}, o, s, c, l, u = function(t) {
|
|
73
73
|
s && s(), o && o(), l = s = o = c = void 0, e.apply(this, t);
|
|
74
74
|
}, d = (e) => a && c ? a(c, e) : e, f = () => {
|
|
75
75
|
s && c && u(d(c) || c);
|
|
76
76
|
}, p = function() {
|
|
77
|
-
let e =
|
|
77
|
+
let e = Ce(arguments), t = qe(n);
|
|
78
78
|
if (t) {
|
|
79
|
-
let n = typeof i == "function" ? i() : i, a =
|
|
79
|
+
let n = typeof i == "function" ? i() : i, a = qe(r), p = d(e) || e, m = u.bind(0, p);
|
|
80
80
|
s && s(), n && !l ? (m(), l = !0, s = t((() => l = void 0))) : (s = t(m), a && !o && (o = a(f))), c = p;
|
|
81
81
|
} else u(e);
|
|
82
82
|
};
|
|
83
83
|
return p.O = f, p;
|
|
84
|
-
},
|
|
84
|
+
}, Ye = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Y = (e) => e ? Object.keys(e) : [], X = (e, t, n, r, i, a, o) => {
|
|
85
85
|
let s = [
|
|
86
86
|
t,
|
|
87
87
|
n,
|
|
@@ -90,116 +90,116 @@ var be = (e, t) => e.indexOf(t) >= 0, xe = (e, t) => e.concat(t), K = (e, t, n)
|
|
|
90
90
|
a,
|
|
91
91
|
o
|
|
92
92
|
];
|
|
93
|
-
return (typeof e != "object" || fe(e)) && !
|
|
93
|
+
return (typeof e != "object" || fe(e)) && !U(e) && (e = {}), G(s, ((t) => {
|
|
94
94
|
G(t, ((n, r) => {
|
|
95
95
|
let i = t[r];
|
|
96
96
|
if (e === i) return !0;
|
|
97
|
-
let a =
|
|
97
|
+
let a = W(i);
|
|
98
98
|
if (i && ve(i)) {
|
|
99
99
|
let t = e[r], n = t;
|
|
100
|
-
a && !
|
|
100
|
+
a && !W(t) ? n = [] : !a && !ve(t) && (n = {}), e[r] = X(n, i);
|
|
101
101
|
} else e[r] = a ? i.slice() : i;
|
|
102
102
|
}));
|
|
103
103
|
})), e;
|
|
104
|
-
},
|
|
105
|
-
e === void 0 ? delete n[t] : e && ve(e) && (n[t] =
|
|
106
|
-
})),
|
|
107
|
-
G(
|
|
104
|
+
}, Xe = (e, t) => G(X({}, e), ((e, t, n) => {
|
|
105
|
+
e === void 0 ? delete n[t] : e && ve(e) && (n[t] = Xe(e));
|
|
106
|
+
})), Ze = (e) => !Y(e).length, Qe = () => {}, $e = (e, t, n) => z(e, B(t, n)), et = (e) => Ee((W(e) ? e : (e || "").split(" ")).filter(((e) => e))), tt = (e, t) => e && e.getAttribute(t), nt = (e, t) => e && e.hasAttribute(t), rt = (e, t, n) => {
|
|
107
|
+
G(et(t), ((t) => {
|
|
108
108
|
e && e.setAttribute(t, String(n || ""));
|
|
109
109
|
}));
|
|
110
|
-
}, rt = (e, t) => {
|
|
111
|
-
G($e(t), ((t) => e && e.removeAttribute(t)));
|
|
112
110
|
}, it = (e, t) => {
|
|
113
|
-
|
|
111
|
+
G(et(t), ((t) => e && e.removeAttribute(t)));
|
|
112
|
+
}, at = (e, t) => {
|
|
113
|
+
let n = et(tt(e, t)), r = J(rt, e, t), i = (e, t) => {
|
|
114
114
|
let r = new Set(n);
|
|
115
|
-
return G(
|
|
115
|
+
return G(et(e), ((e) => {
|
|
116
116
|
r[t](e);
|
|
117
|
-
})),
|
|
117
|
+
})), Ce(r).join(" ");
|
|
118
118
|
};
|
|
119
119
|
return {
|
|
120
120
|
C: (e) => r(i(e, "delete")),
|
|
121
121
|
$: (e) => r(i(e, "add")),
|
|
122
122
|
H: (e) => {
|
|
123
|
-
let t =
|
|
123
|
+
let t = et(e);
|
|
124
124
|
return t.reduce(((e, t) => e && n.includes(t)), t.length > 0);
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
let n = t ?
|
|
131
|
-
return n ?
|
|
132
|
-
},
|
|
133
|
-
let n = t ?
|
|
127
|
+
}, ot = (e, t, n) => (at(e, t).C(n), J(st, e, t, n)), st = (e, t, n) => (at(e, t).$(n), J(ot, e, t, n)), ct = (e, t, n, r) => (r ? st : ot)(e, t, n), lt = (e, t, n) => at(e, t).H(n), ut = (e) => at(e, "class"), dt = (e, t) => {
|
|
128
|
+
ut(e).C(t);
|
|
129
|
+
}, ft = (e, t) => (ut(e).$(t), J(dt, e, t)), pt = (e, t) => {
|
|
130
|
+
let n = t ? be(t) && t : document;
|
|
131
|
+
return n ? Ce(n.querySelectorAll(e)) : [];
|
|
132
|
+
}, mt = (e, t) => {
|
|
133
|
+
let n = t ? be(t) && t : document;
|
|
134
134
|
return n && n.querySelector(e);
|
|
135
|
-
},
|
|
136
|
-
let r =
|
|
137
|
-
return r && i ? r === e || i === e || a &&
|
|
138
|
-
},
|
|
139
|
-
G(
|
|
140
|
-
let t =
|
|
135
|
+
}, ht = (e, t) => be(e) && e.matches(t), gt = (e) => ht(e, "body"), _t = (e) => e ? Ce(e.childNodes) : [], vt = (e) => e && e.parentElement, yt = (e, t) => be(e) && e.closest(t), bt = (e) => document.activeElement, xt = (e, t, n) => {
|
|
136
|
+
let r = yt(e, t), i = e && mt(n, r), a = yt(i, t) === r;
|
|
137
|
+
return r && i ? r === e || i === e || a && yt(yt(e, n), t) !== r : !1;
|
|
138
|
+
}, St = (e) => {
|
|
139
|
+
G(we(e), ((e) => {
|
|
140
|
+
let t = vt(e);
|
|
141
141
|
e && t && t.removeChild(e);
|
|
142
142
|
}));
|
|
143
|
-
}, Z = (e, t) => J(
|
|
143
|
+
}, Z = (e, t) => J(St, e && t && G(we(t), ((t) => {
|
|
144
144
|
t && e.appendChild(t);
|
|
145
|
-
}))),
|
|
146
|
-
|
|
147
|
-
}, Tt = (e) => {
|
|
148
|
-
let t = document.createElement("div");
|
|
149
|
-
return nt(t, "class", e), t;
|
|
145
|
+
}))), Ct, wt = () => Ct, Tt = (e) => {
|
|
146
|
+
Ct = e;
|
|
150
147
|
}, Et = (e) => {
|
|
151
|
-
let t =
|
|
152
|
-
return t
|
|
153
|
-
}, Dt = (e
|
|
148
|
+
let t = document.createElement("div");
|
|
149
|
+
return rt(t, "class", e), t;
|
|
150
|
+
}, Dt = (e) => {
|
|
151
|
+
let t = Et(), n = wt(), r = e.trim();
|
|
152
|
+
return t.innerHTML = n ? n.createHTML(r) : r, G(_t(t), ((e) => St(e)));
|
|
153
|
+
}, Ot = (e, t) => e.getPropertyValue(t) || e[t] || "", kt = (e) => {
|
|
154
154
|
let t = e || 0;
|
|
155
155
|
return isFinite(t) ? t : 0;
|
|
156
|
-
},
|
|
157
|
-
function
|
|
156
|
+
}, At = (e) => kt(parseFloat(e || "")), jt = (e) => Math.round(e * 1e4) / 1e4, Mt = (e) => `${jt(kt(e))}px`;
|
|
157
|
+
function Nt(e, t) {
|
|
158
158
|
e && t && G(t, ((t, n) => {
|
|
159
159
|
try {
|
|
160
|
-
let r = e.style, i = fe(t) || he(t) ? "" : pe(t) ?
|
|
160
|
+
let r = e.style, i = fe(t) || he(t) ? "" : pe(t) ? Mt(t) : t;
|
|
161
161
|
n.indexOf("--") === 0 ? r.setProperty(n, i) : r[n] = i;
|
|
162
162
|
} catch {}
|
|
163
163
|
}));
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Pt(e, t, n) {
|
|
166
166
|
let r = me(t), i = r ? "" : {};
|
|
167
167
|
if (e) {
|
|
168
|
-
let a =
|
|
169
|
-
i = r ?
|
|
168
|
+
let a = R.getComputedStyle(e, n) || e.style;
|
|
169
|
+
i = r ? Ot(a, t) : Ce(t).reduce(((e, t) => (e[t] = Ot(a, t), e)), i);
|
|
170
170
|
}
|
|
171
171
|
return i;
|
|
172
172
|
}
|
|
173
|
-
var
|
|
174
|
-
let r = t ? `${t}-` : "", i = n ? `-${n}` : "", a = `${r}top${i}`, o = `${r}right${i}`, s = `${r}bottom${i}`, c = `${r}left${i}`, l =
|
|
173
|
+
var Ft = (e, t, n) => {
|
|
174
|
+
let r = t ? `${t}-` : "", i = n ? `-${n}` : "", a = `${r}top${i}`, o = `${r}right${i}`, s = `${r}bottom${i}`, c = `${r}left${i}`, l = Pt(e, [
|
|
175
175
|
a,
|
|
176
176
|
o,
|
|
177
177
|
s,
|
|
178
178
|
c
|
|
179
179
|
]);
|
|
180
180
|
return {
|
|
181
|
-
t:
|
|
182
|
-
r:
|
|
183
|
-
b:
|
|
184
|
-
l:
|
|
181
|
+
t: At(l[a]),
|
|
182
|
+
r: At(l[o]),
|
|
183
|
+
b: At(l[s]),
|
|
184
|
+
l: At(l[c])
|
|
185
185
|
};
|
|
186
|
-
},
|
|
186
|
+
}, It = (e, t) => `translate${ge(e) ? `(${e.x},${e.y})` : `${t ? "X" : "Y"}(${e})`}`, Lt = (e) => !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length), Rt = {
|
|
187
187
|
w: 0,
|
|
188
188
|
h: 0
|
|
189
|
-
},
|
|
189
|
+
}, zt = (e, t) => t ? {
|
|
190
190
|
w: t[`${e}Width`],
|
|
191
191
|
h: t[`${e}Height`]
|
|
192
|
-
} :
|
|
193
|
-
let t = parseFloat(
|
|
192
|
+
} : Rt, Bt = (e) => zt("inner", e || R), Vt = J(zt, "offset"), Ht = J(zt, "client"), Ut = J(zt, "scroll"), Wt = (e) => {
|
|
193
|
+
let t = parseFloat(Pt(e, Ie)) || 0, n = parseFloat(Pt(e, Le)) || 0;
|
|
194
194
|
return {
|
|
195
|
-
w: t -
|
|
196
|
-
h: n -
|
|
195
|
+
w: t - V(t),
|
|
196
|
+
h: n - V(n)
|
|
197
197
|
};
|
|
198
|
-
},
|
|
199
|
-
let n =
|
|
200
|
-
return !
|
|
201
|
-
},
|
|
202
|
-
G(
|
|
198
|
+
}, Gt = (e) => e.getBoundingClientRect(), Kt = (e) => !!e && Lt(e), qt = (e) => !!(e && (e[Le] || e[Ie])), Jt = (e, t) => {
|
|
199
|
+
let n = qt(e);
|
|
200
|
+
return !qt(t) && n;
|
|
201
|
+
}, Yt = (e, t, n, r) => {
|
|
202
|
+
G(et(t), ((t) => {
|
|
203
203
|
e && e.removeEventListener(t, n, r);
|
|
204
204
|
}));
|
|
205
205
|
}, Q = (e, t, n, r) => {
|
|
@@ -207,22 +207,22 @@ var Pt = (e, t, n) => {
|
|
|
207
207
|
passive: i,
|
|
208
208
|
capture: a
|
|
209
209
|
};
|
|
210
|
-
return J(q,
|
|
210
|
+
return J(q, et(t).map(((t) => {
|
|
211
211
|
let r = o ? (i) => {
|
|
212
|
-
|
|
212
|
+
Yt(e, t, r, a), n && n(i);
|
|
213
213
|
} : n;
|
|
214
|
-
return e && e.addEventListener(t, r, s), J(
|
|
214
|
+
return e && e.addEventListener(t, r, s), J(Yt, e, t, r, a);
|
|
215
215
|
})));
|
|
216
|
-
},
|
|
216
|
+
}, Xt = (e) => e.stopPropagation(), Zt = (e) => e.preventDefault(), Qt = (e) => Xt(e) || Zt(e), $t = (e, t) => {
|
|
217
217
|
let { x: n, y: r } = pe(t) ? {
|
|
218
218
|
x: t,
|
|
219
219
|
y: t
|
|
220
220
|
} : t || {};
|
|
221
221
|
pe(n) && (e.scrollLeft = n), pe(r) && (e.scrollTop = r);
|
|
222
|
-
},
|
|
222
|
+
}, en = (e) => ({
|
|
223
223
|
x: e.scrollLeft,
|
|
224
224
|
y: e.scrollTop
|
|
225
|
-
}),
|
|
225
|
+
}), tn = () => ({
|
|
226
226
|
T: {
|
|
227
227
|
x: 0,
|
|
228
228
|
y: 0
|
|
@@ -231,11 +231,11 @@ var Pt = (e, t, n) => {
|
|
|
231
231
|
x: 0,
|
|
232
232
|
y: 0
|
|
233
233
|
}
|
|
234
|
-
}),
|
|
234
|
+
}), nn = (e, t) => {
|
|
235
235
|
let { T: n, k: r } = e, { w: i, h: a } = t, o = (e, t, n) => {
|
|
236
|
-
let r =
|
|
236
|
+
let r = te(e) * n, i = te(t) * n;
|
|
237
237
|
if (r === i) {
|
|
238
|
-
let n =
|
|
238
|
+
let n = H(e), a = H(t);
|
|
239
239
|
i = n > a ? 0 : i, r = n < a ? 0 : r;
|
|
240
240
|
}
|
|
241
241
|
return r = r === i ? 0 : r, [r + 0, i + 0];
|
|
@@ -250,30 +250,30 @@ var Pt = (e, t, n) => {
|
|
|
250
250
|
y: u
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
|
-
},
|
|
253
|
+
}, rn = ({ T: e, k: t }) => {
|
|
254
254
|
let n = (e, t) => e === 0 && e <= t;
|
|
255
255
|
return {
|
|
256
256
|
x: n(e.x, t.x),
|
|
257
257
|
y: n(e.y, t.y)
|
|
258
258
|
};
|
|
259
|
-
},
|
|
260
|
-
let r = (e, t, n) =>
|
|
259
|
+
}, an = ({ T: e, k: t }, n) => {
|
|
260
|
+
let r = (e, t, n) => $e(0, 1, (e - n) / (e - t) || 0);
|
|
261
261
|
return {
|
|
262
262
|
x: r(e.x, t.x, n.x),
|
|
263
263
|
y: r(e.y, t.y, n.y)
|
|
264
264
|
};
|
|
265
|
-
},
|
|
265
|
+
}, on = (e) => {
|
|
266
266
|
e && e.focus && e.focus({
|
|
267
267
|
preventScroll: !0,
|
|
268
268
|
focusVisible: !1
|
|
269
269
|
});
|
|
270
|
-
},
|
|
271
|
-
G(
|
|
272
|
-
},
|
|
270
|
+
}, sn = (e, t) => {
|
|
271
|
+
G(we(t), e);
|
|
272
|
+
}, cn = (e) => {
|
|
273
273
|
let t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
274
274
|
if (e) {
|
|
275
275
|
let r = t.get(e);
|
|
276
|
-
|
|
276
|
+
sn(((e) => {
|
|
277
277
|
r && r[e ? "delete" : "clear"](e);
|
|
278
278
|
}), n);
|
|
279
279
|
} else t.forEach(((e) => {
|
|
@@ -282,8 +282,8 @@ var Pt = (e, t, n) => {
|
|
|
282
282
|
}, r = (e, i) => {
|
|
283
283
|
if (me(e)) {
|
|
284
284
|
let r = t.get(e) || /* @__PURE__ */ new Set();
|
|
285
|
-
return t.set(e, r),
|
|
286
|
-
|
|
285
|
+
return t.set(e, r), sn(((e) => {
|
|
286
|
+
U(e) && r.add(e);
|
|
287
287
|
}), i), J(n, e, i);
|
|
288
288
|
}
|
|
289
289
|
he(i) && i && n();
|
|
@@ -297,57 +297,57 @@ var Pt = (e, t, n) => {
|
|
|
297
297
|
r,
|
|
298
298
|
n,
|
|
299
299
|
(e, n) => {
|
|
300
|
-
G(
|
|
301
|
-
n && !
|
|
300
|
+
G(Ce(t.get(e)), ((e) => {
|
|
301
|
+
n && !Te(n) ? e.apply(0, n) : e();
|
|
302
302
|
}));
|
|
303
303
|
}
|
|
304
304
|
];
|
|
305
|
-
},
|
|
305
|
+
}, ln = {}, un = {}, dn = (e) => {
|
|
306
306
|
G(e, ((e) => G(e, ((t, n) => {
|
|
307
|
-
|
|
307
|
+
ln[n] = e[n];
|
|
308
308
|
}))));
|
|
309
|
-
},
|
|
309
|
+
}, fn = (e, t, n) => Y(e).map(((r) => {
|
|
310
310
|
let { static: i, instance: a } = e[r], [o, s, c] = n || [], l = n ? a : i;
|
|
311
311
|
if (l) {
|
|
312
312
|
let e = n ? l(o, s, t) : l(t);
|
|
313
|
-
return (c ||
|
|
313
|
+
return (c || un)[r] = e;
|
|
314
314
|
}
|
|
315
|
-
})),
|
|
316
|
-
`${
|
|
317
|
-
var
|
|
315
|
+
})), pn = (e, t) => e[t], mn = (e) => pn(un, e), hn = "__osOptionsValidationPlugin", gn = "data-overlayscrollbars", _n = "os-environment", vn = `${_n}-scrollbar-hidden`, yn = `${gn}-initialize`, bn = "noClipping", xn = `${gn}-body`, Sn = gn, Cn = "host", wn = `${gn}-viewport`, Tn = Pe, En = Fe, Dn = "arrange", On = "measuring", kn = "scrolling", An = "scrollbarHidden", jn = "noContent", Mn = `${gn}-padding`, Nn = `${gn}-content`, Pn = "os-size-observer", Fn = `${Pn}-appear`, In = `${Pn}-listener`;
|
|
316
|
+
`${In}`, `${In}`;
|
|
317
|
+
var Ln = "os-trinsic-observer", Rn = "os-theme-none", zn = "os-scrollbar", Bn = `${zn}-rtl`, Vn = `${zn}-horizontal`, Hn = `${zn}-vertical`, Un = `${zn}-track`, Wn = `${zn}-handle`, Gn = `${zn}-visible`, Kn = `${zn}-cornerless`, qn = `${zn}-interaction`, Jn = `${zn}-unusable`, Yn = `${zn}-auto-hide`, Xn = `${Yn}-hidden`, Zn = `${zn}-wheel`, Qn = `${Un}-interactive`, $n = `${Wn}-interactive`, er = "__osSizeObserverPlugin", tr = (e, t) => {
|
|
318
318
|
let { M: n } = t, [r, i] = e("showNativeOverlaidScrollbars");
|
|
319
319
|
return [r && n.x && n.y, i];
|
|
320
|
-
},
|
|
321
|
-
if (e === "auto") return t ?
|
|
322
|
-
let n = e ||
|
|
320
|
+
}, nr = (e) => e.indexOf(Re) === 0, rr = (e) => e.replace(`${Re}-`, ""), ir = (e, t) => {
|
|
321
|
+
if (e === "auto") return t ? Be : ze;
|
|
322
|
+
let n = e || ze;
|
|
323
323
|
return [
|
|
324
|
-
Re,
|
|
325
324
|
ze,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
325
|
+
Be,
|
|
326
|
+
Re
|
|
327
|
+
].includes(n) ? n : ze;
|
|
328
|
+
}, ar = (e, t) => {
|
|
329
|
+
let { overflowX: n, overflowY: r } = Pt(e, [Pe, Fe]);
|
|
330
330
|
return {
|
|
331
|
-
x:
|
|
332
|
-
y:
|
|
331
|
+
x: ir(n, t.x),
|
|
332
|
+
y: ir(r, t.y)
|
|
333
333
|
};
|
|
334
|
-
},
|
|
335
|
-
if (
|
|
334
|
+
}, or = "__osScrollbarsHidingPlugin", sr = "__osClickScrollPlugin", cr = (e) => JSON.stringify(e, ((e, t) => {
|
|
335
|
+
if (U(t)) throw 0;
|
|
336
336
|
return t;
|
|
337
|
-
})),
|
|
337
|
+
})), lr = (e, t) => e ? `${t}`.split(".").reduce(((e, t) => e && Ye(e, t) ? e[t] : void 0), e) : void 0, ur = [0, 33], dr = [33, 99], fr = [
|
|
338
338
|
222,
|
|
339
339
|
666,
|
|
340
340
|
!0
|
|
341
|
-
],
|
|
341
|
+
], pr = {
|
|
342
342
|
paddingAbsolute: !1,
|
|
343
343
|
showNativeOverlaidScrollbars: !1,
|
|
344
344
|
update: {
|
|
345
345
|
elementEvents: [["img", "load"]],
|
|
346
346
|
debounce: {
|
|
347
|
-
mutation:
|
|
347
|
+
mutation: ur,
|
|
348
348
|
resize: null,
|
|
349
|
-
event:
|
|
350
|
-
env:
|
|
349
|
+
event: dr,
|
|
350
|
+
env: fr
|
|
351
351
|
},
|
|
352
352
|
attributes: null,
|
|
353
353
|
ignoreMutation: null,
|
|
@@ -371,40 +371,40 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
371
371
|
"pen"
|
|
372
372
|
]
|
|
373
373
|
}
|
|
374
|
-
},
|
|
374
|
+
}, mr = (e, t) => {
|
|
375
375
|
let n = {};
|
|
376
|
-
return G(
|
|
376
|
+
return G(Se(Y(t), Y(e)), ((r) => {
|
|
377
377
|
let i = e[r], a = t[r];
|
|
378
|
-
if (ge(i) && ge(a)) X(n[r] = {},
|
|
379
|
-
else if (
|
|
378
|
+
if (ge(i) && ge(a)) X(n[r] = {}, mr(i, a)), Ze(n[r]) && delete n[r];
|
|
379
|
+
else if (Ye(t, r) && a !== i) {
|
|
380
380
|
let e = !0;
|
|
381
|
-
if (
|
|
382
|
-
|
|
381
|
+
if (W(i) || W(a)) try {
|
|
382
|
+
cr(i) === cr(a) && (e = !1);
|
|
383
383
|
} catch {}
|
|
384
384
|
e && (n[r] = a);
|
|
385
385
|
}
|
|
386
386
|
})), n;
|
|
387
|
-
},
|
|
388
|
-
|
|
389
|
-
},
|
|
387
|
+
}, hr = (e, t, n) => (r) => [lr(e, r), n || lr(t, r) !== void 0], gr, _r = () => gr, vr = (e) => {
|
|
388
|
+
gr = e;
|
|
389
|
+
}, yr, br = () => {
|
|
390
390
|
let e = (e, t, n) => {
|
|
391
391
|
Z(document.body, e), Z(document.body, e);
|
|
392
|
-
let r =
|
|
393
|
-
return n &&
|
|
392
|
+
let r = Ht(e), i = Vt(e), a = Wt(t);
|
|
393
|
+
return n && St(e), {
|
|
394
394
|
x: i.h - r.h + a.h,
|
|
395
395
|
y: i.w - r.w + a.w
|
|
396
396
|
};
|
|
397
397
|
}, t = (e) => {
|
|
398
|
-
let t = !1, n =
|
|
398
|
+
let t = !1, n = ft(e, vn);
|
|
399
399
|
try {
|
|
400
|
-
t =
|
|
400
|
+
t = Pt(e, "scrollbar-width") === "none" || Pt(e, "display", "::-webkit-scrollbar") === "none";
|
|
401
401
|
} catch {}
|
|
402
402
|
return n(), t;
|
|
403
|
-
}, n =
|
|
403
|
+
}, n = Dt(`<div class="${_n}"><div></div><style>${`.${_n}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${_n} div{width:200%;height:200%;margin:10px 0}.${vn}{scrollbar-width:none!important}.${vn}::-webkit-scrollbar,.${vn}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`}</style></div>`)[0], r = n.firstChild, i = n.lastChild, a = _r();
|
|
404
404
|
a && (i.nonce = a);
|
|
405
|
-
let [o, , s] =
|
|
405
|
+
let [o, , s] = cn(), [c, l] = L({
|
|
406
406
|
o: e(n, r),
|
|
407
|
-
i:
|
|
407
|
+
i: We
|
|
408
408
|
}, J(e, n, r, !0)), [u] = l(), d = t(n), f = {
|
|
409
409
|
x: u.x === 0,
|
|
410
410
|
y: u.y === 0
|
|
@@ -412,7 +412,7 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
412
412
|
elements: {
|
|
413
413
|
host: null,
|
|
414
414
|
padding: !d,
|
|
415
|
-
viewport: (e) => d &&
|
|
415
|
+
viewport: (e) => d && gt(e) && e,
|
|
416
416
|
content: !1
|
|
417
417
|
},
|
|
418
418
|
scrollbars: { slot: !0 },
|
|
@@ -420,7 +420,7 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
420
420
|
nativeScrollbarsOverlaid: !1,
|
|
421
421
|
body: null
|
|
422
422
|
}
|
|
423
|
-
}, m = X({},
|
|
423
|
+
}, m = X({}, pr), h = J(X, {}, m), g = J(X, {}, p), _ = {
|
|
424
424
|
U: u,
|
|
425
425
|
M: f,
|
|
426
426
|
P: d,
|
|
@@ -433,11 +433,11 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
433
433
|
ot: X({}, p),
|
|
434
434
|
st: X({}, m)
|
|
435
435
|
};
|
|
436
|
-
if (
|
|
436
|
+
if (it(n, "style"), St(n), Q(R, "resize", (() => {
|
|
437
437
|
s("r", []);
|
|
438
|
-
})),
|
|
438
|
+
})), U(R.matchMedia) && !d && (!f.x || !f.y)) {
|
|
439
439
|
let e = (t) => {
|
|
440
|
-
Q(
|
|
440
|
+
Q(R.matchMedia(`(resolution: ${R.devicePixelRatio}dppx)`), "change", (() => {
|
|
441
441
|
t(), e(t);
|
|
442
442
|
}), { A: !0 });
|
|
443
443
|
};
|
|
@@ -447,13 +447,13 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
447
447
|
}));
|
|
448
448
|
}
|
|
449
449
|
return _;
|
|
450
|
-
},
|
|
450
|
+
}, xr = () => (yr ||= br(), yr), Sr = (e, t, n) => {
|
|
451
451
|
let r = !1, i = n ? /* @__PURE__ */ new WeakMap() : !1, a = () => {
|
|
452
452
|
r = !0;
|
|
453
453
|
}, o = (a) => {
|
|
454
454
|
i && n && G(n.map(((t) => {
|
|
455
455
|
let [n, r] = t || [];
|
|
456
|
-
return [r && n ? (a ||
|
|
456
|
+
return [r && n ? (a || pt)(n, e) : [], r];
|
|
457
457
|
})), ((n) => G(n[0], ((a) => {
|
|
458
458
|
let o = n[1], s = i.get(a) || [];
|
|
459
459
|
if (e.contains(a) && o) {
|
|
@@ -465,20 +465,20 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
465
465
|
}))));
|
|
466
466
|
};
|
|
467
467
|
return o(), [a, o];
|
|
468
|
-
},
|
|
469
|
-
let i = !1, { et: a, ct: o, rt: s, it: c, lt: l, ut: u } = r || {}, [d, f] =
|
|
470
|
-
if (!
|
|
471
|
-
let o = l ||
|
|
468
|
+
}, Cr = (e, t, n, r) => {
|
|
469
|
+
let i = !1, { et: a, ct: o, rt: s, it: c, lt: l, ut: u } = r || {}, [d, f] = Sr(e, (() => i && n(!0)), s), p = a || [], m = o || [], h = Se(p, m), g = (i, a) => {
|
|
470
|
+
if (!Te(a)) {
|
|
471
|
+
let o = l || Qe, s = u || Qe, d = [], p = [], h = !1, g = !1;
|
|
472
472
|
if (G(a, ((n) => {
|
|
473
|
-
let { attributeName: i, target: a, type: l, oldValue: u, addedNodes: f, removedNodes: _ } = n, v = l === "attributes", y = l === "childList", b = e === a, x = v && i, S = x &&
|
|
473
|
+
let { attributeName: i, target: a, type: l, oldValue: u, addedNodes: f, removedNodes: _ } = n, v = l === "attributes", y = l === "childList", b = e === a, x = v && i, S = x && tt(a, i || ""), C = me(S) ? S : null, w = x && u !== C, T = xe(m, i) && w;
|
|
474
474
|
if (t && (y || !b)) {
|
|
475
|
-
let t = v && w, l = t && c &&
|
|
475
|
+
let t = v && w, l = t && c && ht(a, c), p = (l ? !o(a, i, u, C) : !v || t) && !s(n, !!l, e, r);
|
|
476
476
|
G(f, ((e) => K(d, e))), G(_, ((e) => K(d, e))), g ||= p;
|
|
477
477
|
}
|
|
478
478
|
!t && b && w && !o(a, i, u, C) && (K(p, i), h ||= T);
|
|
479
|
-
})), f(((e) =>
|
|
480
|
-
if (!
|
|
481
|
-
let e = [
|
|
479
|
+
})), f(((e) => Ee(d).reduce(((t, n) => (K(t, pt(e, n)), ht(n, e) ? K(t, n) : t)), []))), t) return !i && g && n(!1), [!1];
|
|
480
|
+
if (!Te(p) || h) {
|
|
481
|
+
let e = [Ee(p), h];
|
|
482
482
|
return i || n.apply(0, e), e;
|
|
483
483
|
}
|
|
484
484
|
}
|
|
@@ -495,17 +495,17 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
495
495
|
}), () => {
|
|
496
496
|
if (i) return g(!0, _.takeRecords());
|
|
497
497
|
}];
|
|
498
|
-
},
|
|
499
|
-
let { ft: r } = n || {}, i =
|
|
498
|
+
}, wr = null, Tr = (e, t, n) => {
|
|
499
|
+
let { ft: r } = n || {}, i = mn(er), [a] = L({
|
|
500
500
|
o: !1,
|
|
501
501
|
u: !0
|
|
502
502
|
});
|
|
503
503
|
return () => {
|
|
504
|
-
let n = [], o =
|
|
505
|
-
let n =
|
|
504
|
+
let n = [], o = Dt(`<div class="${Pn}"><div class="${In}"></div></div>`)[0], s = o.firstChild, c = (e) => {
|
|
505
|
+
let n = W(e) && !Te(e), r = !1, i = !1;
|
|
506
506
|
if (n) {
|
|
507
|
-
let t = e[0], [n, , o] = a(t.contentRect), s =
|
|
508
|
-
i =
|
|
507
|
+
let t = e[0], [n, , o] = a(t.contentRect), s = qt(n);
|
|
508
|
+
i = Jt(n, o), r = !i && !s;
|
|
509
509
|
} else i = e === !0;
|
|
510
510
|
r || t({
|
|
511
511
|
_t: !0,
|
|
@@ -513,34 +513,34 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
513
513
|
});
|
|
514
514
|
};
|
|
515
515
|
if (le) {
|
|
516
|
-
if (!he(
|
|
517
|
-
let t = new le(
|
|
516
|
+
if (!he(wr)) {
|
|
517
|
+
let t = new le(Qe);
|
|
518
518
|
t.observe(e, { get box() {
|
|
519
|
-
|
|
520
|
-
} }),
|
|
519
|
+
wr = !0;
|
|
520
|
+
} }), wr ||= !1, t.disconnect();
|
|
521
521
|
}
|
|
522
|
-
let t =
|
|
522
|
+
let t = Je(c, {
|
|
523
523
|
p: 0,
|
|
524
524
|
v: 0
|
|
525
525
|
}), r = (e) => t(e), i = new le(r);
|
|
526
|
-
if (i.observe(
|
|
526
|
+
if (i.observe(wr ? e : s), K(n, [() => {
|
|
527
527
|
i.disconnect();
|
|
528
|
-
}, !
|
|
528
|
+
}, !wr && Z(e, o)]), wr) {
|
|
529
529
|
let t = new le(r);
|
|
530
530
|
t.observe(e, { box: "border-box" }), K(n, (() => t.disconnect()));
|
|
531
531
|
}
|
|
532
532
|
} else if (i) {
|
|
533
533
|
let [t, a] = i(s, c, r);
|
|
534
|
-
K(n,
|
|
535
|
-
|
|
534
|
+
K(n, Se([
|
|
535
|
+
ft(o, Fn),
|
|
536
536
|
Q(o, "animationstart", t),
|
|
537
537
|
Z(e, o)
|
|
538
538
|
], a));
|
|
539
|
-
} else return
|
|
539
|
+
} else return Qe;
|
|
540
540
|
return J(q, n);
|
|
541
541
|
};
|
|
542
|
-
},
|
|
543
|
-
let n, r = (e) => e.h === 0 || e.isIntersecting || e.intersectionRatio > 0, i =
|
|
542
|
+
}, Er = (e, t) => {
|
|
543
|
+
let n, r = (e) => e.h === 0 || e.isIntersecting || e.intersectionRatio > 0, i = Et(Ln), [a] = L({ o: !1 }), o = (e, n) => {
|
|
544
544
|
if (e) {
|
|
545
545
|
let i = a(r(e)), [, o] = i;
|
|
546
546
|
return o && !n && t(i) && [i];
|
|
@@ -553,15 +553,15 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
553
553
|
}));
|
|
554
554
|
else {
|
|
555
555
|
let e = () => {
|
|
556
|
-
let e =
|
|
556
|
+
let e = Vt(i);
|
|
557
557
|
o(e);
|
|
558
558
|
};
|
|
559
|
-
K(t,
|
|
559
|
+
K(t, Tr(i, e)()), e();
|
|
560
560
|
}
|
|
561
561
|
return J(q, K(t, Z(e, i)));
|
|
562
562
|
}, () => n && s(!0, n.takeRecords())];
|
|
563
|
-
},
|
|
564
|
-
let i, a, o, s, c, l, u, d, f = `[${
|
|
563
|
+
}, Dr = (e, t, n, r) => {
|
|
564
|
+
let i, a, o, s, c, l, u, d, f = `[${Sn}]`, p = `[${wn}]`, m = [
|
|
565
565
|
"id",
|
|
566
566
|
"class",
|
|
567
567
|
"style",
|
|
@@ -569,17 +569,17 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
569
569
|
"wrap",
|
|
570
570
|
"cols",
|
|
571
571
|
"rows"
|
|
572
|
-
], { dt: h, vt: g, L: _, gt: v, ht: y, V: b, bt: x, yt: S, wt: C, St: w } = e, T = (e) =>
|
|
573
|
-
let e, t, n, i =
|
|
572
|
+
], { dt: h, vt: g, L: _, gt: v, ht: y, V: b, bt: x, yt: S, wt: C, St: w } = e, T = (e) => Pt(e, "direction") === "rtl", E = () => {
|
|
573
|
+
let e, t, n, i = Je(r, {
|
|
574
574
|
p: () => e,
|
|
575
575
|
v: () => t,
|
|
576
576
|
S: () => n,
|
|
577
577
|
m(e, t) {
|
|
578
578
|
let [n] = e, [r] = t;
|
|
579
|
-
return [
|
|
579
|
+
return [Se(Y(n), Y(r)).reduce(((e, t) => (e[t] = n[t] || r[t], e)), {})];
|
|
580
580
|
}
|
|
581
581
|
}), a = (r, a) => {
|
|
582
|
-
if (
|
|
582
|
+
if (W(a)) {
|
|
583
583
|
let [r, i, o] = a;
|
|
584
584
|
e = r, t = i, n = o;
|
|
585
585
|
} else pe(a) ? (e = a, t = !1, n = !1) : (e = !1, t = !1, n = !1);
|
|
@@ -589,15 +589,15 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
589
589
|
}, D = {
|
|
590
590
|
Ot: !1,
|
|
591
591
|
B: T(h)
|
|
592
|
-
}, O =
|
|
593
|
-
i:
|
|
592
|
+
}, O = xr(), k = mn(or), [A] = L({
|
|
593
|
+
i: Ue,
|
|
594
594
|
o: {
|
|
595
595
|
w: 0,
|
|
596
596
|
h: 0
|
|
597
597
|
}
|
|
598
598
|
}, (() => {
|
|
599
|
-
let r = k && k.R(e, t, D, O, n).Y, i = !(x && b) &&
|
|
600
|
-
return l && l(),
|
|
599
|
+
let r = k && k.R(e, t, D, O, n).Y, i = !(x && b) && lt(g, Sn, bn), a = !b && S(Dn), o = a && en(v), s = o && w(), c = C(On, i), l = a && r && r(), u = Ut(_), d = Wt(_);
|
|
600
|
+
return l && l(), $t(v, o), s && s(), i && c(), {
|
|
601
601
|
w: u.w + d.w,
|
|
602
602
|
h: u.h + d.h
|
|
603
603
|
};
|
|
@@ -613,26 +613,26 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
613
613
|
ft: t
|
|
614
614
|
};
|
|
615
615
|
M(i), n(i, a);
|
|
616
|
-
},
|
|
616
|
+
}, P = (e, t) => {
|
|
617
617
|
let [, n] = A(), r = { xt: n };
|
|
618
618
|
return M(r), n && !t && j(r, e ? o : i), r;
|
|
619
|
-
},
|
|
619
|
+
}, F = (e, t, n) => {
|
|
620
620
|
let r = { Ht: t };
|
|
621
621
|
return M(r), t && !n && j(r, i), r;
|
|
622
|
-
}, [I,
|
|
622
|
+
}, [I, R] = y ? Er(g, ee) : [], z = !b && Tr(g, N, { ft: !0 }), [B, V] = Cr(g, !1, F, {
|
|
623
623
|
ct: m,
|
|
624
624
|
et: m
|
|
625
|
-
}),
|
|
625
|
+
}), H = b && le && new le(((e) => {
|
|
626
626
|
let t = e[e.length - 1].contentRect;
|
|
627
627
|
N({
|
|
628
628
|
_t: !0,
|
|
629
|
-
ft:
|
|
629
|
+
ft: Jt(t, u)
|
|
630
630
|
}), u = t;
|
|
631
631
|
}));
|
|
632
632
|
return [
|
|
633
633
|
() => {
|
|
634
|
-
|
|
635
|
-
let e =
|
|
634
|
+
H && H.observe(g);
|
|
635
|
+
let e = z && z(), t = I && I(), n = B(), r = O.G(((e) => {
|
|
636
636
|
let [, t] = A();
|
|
637
637
|
j({
|
|
638
638
|
Et: e,
|
|
@@ -641,40 +641,40 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
641
641
|
}, s);
|
|
642
642
|
}));
|
|
643
643
|
return () => {
|
|
644
|
-
|
|
644
|
+
H && H.disconnect(), e && e(), t && t(), l && l(), n(), r();
|
|
645
645
|
};
|
|
646
646
|
},
|
|
647
647
|
({ Dt: e, zt: t, It: n }) => {
|
|
648
|
-
let r = {}, [u] = e("update.ignoreMutation"), [d, h] = e("update.attributes"), [g, v] = e("update.elementEvents"), [x, S] = e("update.debounce"), C = v || h, w = t || n, T = (e) =>
|
|
648
|
+
let r = {}, [u] = e("update.ignoreMutation"), [d, h] = e("update.attributes"), [g, v] = e("update.elementEvents"), [x, S] = e("update.debounce"), C = v || h, w = t || n, T = (e) => U(u) && !!u(e);
|
|
649
649
|
if (C) {
|
|
650
650
|
c && c(), l && l();
|
|
651
|
-
let [e, t] =
|
|
652
|
-
et:
|
|
651
|
+
let [e, t] = Cr(y || _, !0, P, {
|
|
652
|
+
et: Se(m, d || []),
|
|
653
653
|
rt: g,
|
|
654
654
|
it: f,
|
|
655
655
|
ut: (e, t) => {
|
|
656
656
|
let { target: n, attributeName: r } = e;
|
|
657
|
-
return (!t && r && !b ?
|
|
657
|
+
return (!t && r && !b ? xt(n, f, p) : !1) || !!yt(n, `.${zn}`) || T(e);
|
|
658
658
|
}
|
|
659
659
|
});
|
|
660
660
|
l = e(), c = t;
|
|
661
661
|
}
|
|
662
|
-
if (S && (j.O(),
|
|
663
|
-
let e =
|
|
664
|
-
e && X(r,
|
|
662
|
+
if (S && (j.O(), W(x) || pe(x) ? (i = x, a = !1, o = dr, s = fr) : ve(x) ? (i = x.mutation, a = x.resize, o = x.event, s = x.env) : (i = !1, a = !1, o = !1, s = !1)), w) {
|
|
663
|
+
let e = V(), t = R && R(), n = c && c();
|
|
664
|
+
e && X(r, F(e[0], e[1], w)), t && X(r, ee(t[0], w)), n && X(r, P(n[0], w));
|
|
665
665
|
}
|
|
666
666
|
return M(r), r;
|
|
667
667
|
},
|
|
668
668
|
D
|
|
669
669
|
];
|
|
670
|
-
},
|
|
671
|
-
let i =
|
|
670
|
+
}, Or = (e, t) => U(t) ? t.apply(0, e) : t, kr = (e, t, n, r) => Or(e, de(r) ? n : r) || t.apply(0, e), Ar = (e, t, n, r) => {
|
|
671
|
+
let i = Or(e, de(r) ? n : r);
|
|
672
672
|
return !!i && (ye(i) ? i : t.apply(0, e));
|
|
673
|
-
},
|
|
674
|
-
let { nativeScrollbarsOverlaid: n, body: r } = t || {}, { M: i, P: a, K: o } =
|
|
673
|
+
}, jr = (e, t) => {
|
|
674
|
+
let { nativeScrollbarsOverlaid: n, body: r } = t || {}, { M: i, P: a, K: o } = xr(), { nativeScrollbarsOverlaid: s, body: c } = o().cancel, l = n ?? s, u = de(r) ? c : r, d = (i.x || i.y) && l, f = e && (fe(u) ? !a : u);
|
|
675
675
|
return !!d || !!f;
|
|
676
|
-
},
|
|
677
|
-
let { K: i } =
|
|
676
|
+
}, Mr = (e, t, n, r) => {
|
|
677
|
+
let { K: i } = xr(), { scrollbars: a } = i(), { slot: o } = a, { dt: s, vt: c, L: l, At: u, gt: d, bt: f, V: p } = t, { scrollbars: m } = u ? {} : e, { slot: h } = m || {}, g = [], _ = [], v = [], y = Ar([
|
|
678
678
|
s,
|
|
679
679
|
c,
|
|
680
680
|
l
|
|
@@ -687,7 +687,7 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
687
687
|
t && t.cancel(), t = null;
|
|
688
688
|
};
|
|
689
689
|
return { Mt: (o) => {
|
|
690
|
-
let { Tt: s } = n, c =
|
|
690
|
+
let { Tt: s } = n, c = rn(s)[e], l = e === "x", u = [It(0, l), It(`calc(-100% + 100cq${l ? "w" : "h"})`, l)], d = c ? u : u.reverse();
|
|
691
691
|
return r[0] === d[0] && r[1] === d[1] ? a : (r = d, a(), t = o.kt.animate({
|
|
692
692
|
clear: ["left"],
|
|
693
693
|
transform: d
|
|
@@ -698,43 +698,43 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
698
698
|
x: b("x"),
|
|
699
699
|
y: b("y")
|
|
700
700
|
}, S = () => {
|
|
701
|
-
let { Rt: e, Vt: t } = n, r = (e, t) =>
|
|
701
|
+
let { Rt: e, Vt: t } = n, r = (e, t) => $e(0, 1, e / (e + t) || 0);
|
|
702
702
|
return {
|
|
703
703
|
x: r(t.x, e.x),
|
|
704
704
|
y: r(t.y, e.y)
|
|
705
705
|
};
|
|
706
706
|
}, C = (e, t, n) => {
|
|
707
|
-
let r = n ?
|
|
707
|
+
let r = n ? ft : dt;
|
|
708
708
|
G(e, ((e) => {
|
|
709
709
|
r(e.Lt, t);
|
|
710
710
|
}));
|
|
711
711
|
}, w = (e, t) => {
|
|
712
712
|
G(e, ((e) => {
|
|
713
713
|
let [n, r] = t(e);
|
|
714
|
-
|
|
714
|
+
Nt(n, r);
|
|
715
715
|
}));
|
|
716
716
|
}, T = (e, t, n) => {
|
|
717
717
|
let r = he(n), i = !r || n, a = !r || !n;
|
|
718
718
|
i && C(_, e, t), a && C(v, e, t);
|
|
719
719
|
}, E = () => {
|
|
720
|
-
let e = S(), t = (e) => (t) => [t.Lt, { "--os-viewport-percent":
|
|
720
|
+
let e = S(), t = (e) => (t) => [t.Lt, { "--os-viewport-percent": jt(e) + "" }];
|
|
721
721
|
w(_, t(e.x)), w(v, t(e.y));
|
|
722
722
|
}, D = () => {
|
|
723
723
|
if (!ue) {
|
|
724
|
-
let { Tt: e } = n, t =
|
|
724
|
+
let { Tt: e } = n, t = an(e, en(d)), r = (e) => (t) => [t.Lt, { "--os-scroll-percent": jt(e) + "" }];
|
|
725
725
|
w(_, r(t.x)), w(v, r(t.y));
|
|
726
726
|
}
|
|
727
727
|
}, O = () => {
|
|
728
|
-
let { Tt: e } = n, t =
|
|
728
|
+
let { Tt: e } = n, t = rn(e), r = (e) => (t) => [t.Lt, { "--os-scroll-direction": e ? "0" : "1" }];
|
|
729
729
|
w(_, r(t.x)), w(v, r(t.y)), ue && (_.forEach(x.x.Mt), v.forEach(x.y.Mt));
|
|
730
730
|
}, k = () => {
|
|
731
731
|
if (p && !f) {
|
|
732
|
-
let { Rt: e, Tt: t } = n, r =
|
|
733
|
-
let { Lt: n } = t, a =
|
|
732
|
+
let { Rt: e, Tt: t } = n, r = rn(t), i = an(t, en(d)), a = (t) => {
|
|
733
|
+
let { Lt: n } = t, a = vt(n) === l && n, o = (e, t, n) => {
|
|
734
734
|
let r = t * e;
|
|
735
|
-
return
|
|
735
|
+
return Mt(n ? r : -r);
|
|
736
736
|
};
|
|
737
|
-
return [a, a && { transform:
|
|
737
|
+
return [a, a && { transform: It({
|
|
738
738
|
x: o(i.x, e.x, r.x),
|
|
739
739
|
y: o(i.y, e.y, r.y)
|
|
740
740
|
}) }];
|
|
@@ -742,7 +742,7 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
742
742
|
w(_, a), w(v, a);
|
|
743
743
|
}
|
|
744
744
|
}, A = (e) => {
|
|
745
|
-
let t = e ? "x" : "y", n =
|
|
745
|
+
let t = e ? "x" : "y", n = Et(`${zn} ${e ? Vn : Hn}`), i = Et(Un), a = Et(Wn), o = {
|
|
746
746
|
Lt: n,
|
|
747
747
|
Pt: i,
|
|
748
748
|
kt: a
|
|
@@ -750,7 +750,7 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
750
750
|
return K(e ? _ : v, o), K(g, [
|
|
751
751
|
Z(n, i),
|
|
752
752
|
Z(i, a),
|
|
753
|
-
J(
|
|
753
|
+
J(St, n),
|
|
754
754
|
s && s.Mt(o),
|
|
755
755
|
r(o, T, e)
|
|
756
756
|
]), o;
|
|
@@ -772,49 +772,49 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
772
772
|
Wt: J(w, v)
|
|
773
773
|
}
|
|
774
774
|
}, () => (Z(y, _[0].Lt), Z(y, v[0].Lt), J(q, g))];
|
|
775
|
-
},
|
|
776
|
-
let { vt: c, L: l, V: u, gt: d, Gt: f, St: p } = t, { Lt: m, Pt: h, kt: g } = a, [_, v] =
|
|
777
|
-
|
|
775
|
+
}, Nr = (e, t, n, r, i) => (a, o, s) => {
|
|
776
|
+
let { vt: c, L: l, V: u, gt: d, Gt: f, St: p } = t, { Lt: m, Pt: h, kt: g } = a, [_, v] = Ke(333), [y, b] = Ke(444), x = (e) => {
|
|
777
|
+
U(d.scrollBy) && d.scrollBy({
|
|
778
778
|
behavior: "smooth",
|
|
779
779
|
left: e.x,
|
|
780
780
|
top: e.y
|
|
781
781
|
});
|
|
782
782
|
}, S = () => {
|
|
783
|
-
let t = "pointerup pointercancel lostpointercapture", i = `client${s ? "X" : "Y"}`, a = s ?
|
|
783
|
+
let t = "pointerup pointercancel lostpointercapture", i = `client${s ? "X" : "Y"}`, a = s ? Ie : Le, o = s ? "left" : "top", c = s ? "w" : "h", l = s ? "x" : "y", u = [];
|
|
784
784
|
return Q(h, "pointerdown", r(((r) => {
|
|
785
|
-
let m =
|
|
785
|
+
let m = yt(r.target, `.${Wn}`) === g, _ = m ? g : h, v = e.scrollbars, S = v[m ? "dragScroll" : "clickScroll"], { button: C, isPrimary: w, pointerType: T } = r, { pointers: E } = v;
|
|
786
786
|
if (C === 0 && w && S && (E || []).includes(T)) {
|
|
787
787
|
q(u), b();
|
|
788
|
-
let e = !m && (r.shiftKey || S === "instant"), v = J(
|
|
789
|
-
|
|
788
|
+
let e = !m && (r.shiftKey || S === "instant"), v = J(Gt, g), C = J(Gt, h), w = (e, t) => (e || v())[o] - (t || C())[o], T = V(Gt(d)[a]) / Vt(d)[c] || 1, E = en(d)[l], D = (e) => {
|
|
789
|
+
$t(d, { [l]: E + e });
|
|
790
790
|
}, O = (e) => {
|
|
791
|
-
let { Rt: t } = n, r =
|
|
791
|
+
let { Rt: t } = n, r = Vt(h)[c] - Vt(g)[c], i = 1 / T * e / r;
|
|
792
792
|
D(i * t[l]);
|
|
793
|
-
}, k = r[i], A = v(), j = C(), M = A[a], ee = w(A, j) + M / 2, N = k - j[o] - ee,
|
|
794
|
-
q(
|
|
795
|
-
},
|
|
796
|
-
Q(f, t,
|
|
797
|
-
Q(f, "selectstart", ((e) =>
|
|
798
|
-
Q(h, t,
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
let e =
|
|
802
|
-
|
|
803
|
-
let t =
|
|
793
|
+
}, k = r[i], A = v(), j = C(), M = A[a], ee = w(A, j) + M / 2, N = k - j[o] - ee, P = m ? 0 : N, F = (e) => {
|
|
794
|
+
q(R), _.releasePointerCapture(e.pointerId);
|
|
795
|
+
}, I = m || e, L = p(), R = [
|
|
796
|
+
Q(f, t, F),
|
|
797
|
+
Q(f, "selectstart", ((e) => Zt(e)), { D: !1 }),
|
|
798
|
+
Q(h, t, F),
|
|
799
|
+
I && Q(h, "pointermove", ((e) => O(P + e[i] - k))),
|
|
800
|
+
I && (() => {
|
|
801
|
+
let e = en(d);
|
|
802
|
+
L();
|
|
803
|
+
let t = en(d), n = {
|
|
804
804
|
x: t.x - e.x,
|
|
805
805
|
y: t.y - e.y
|
|
806
806
|
};
|
|
807
|
-
(
|
|
807
|
+
(H(n.x) > 3 || H(n.y) > 3) && (p(), $t(d, e), x(n), y(L));
|
|
808
808
|
})
|
|
809
809
|
];
|
|
810
810
|
if (_.setPointerCapture(r.pointerId), e) O(N);
|
|
811
811
|
else if (!m) {
|
|
812
|
-
let e =
|
|
812
|
+
let e = mn(sr);
|
|
813
813
|
if (e) {
|
|
814
814
|
let { Vt: t } = n, r = e(D, O, J(w), N, t[l], S, !!s, ((e) => {
|
|
815
|
-
e ?
|
|
815
|
+
e ? L() : K(R, L);
|
|
816
816
|
}));
|
|
817
|
-
K(
|
|
817
|
+
K(R, r), K(u, J(r, !0));
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
}
|
|
@@ -823,30 +823,30 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
823
823
|
return J(q, [
|
|
824
824
|
Q(g, "pointermove pointerleave", r(i)),
|
|
825
825
|
Q(m, "pointerenter", r((() => {
|
|
826
|
-
o(
|
|
826
|
+
o(qn, !0);
|
|
827
827
|
}))),
|
|
828
828
|
Q(m, "pointerleave pointercancel", r((() => {
|
|
829
|
-
o(
|
|
829
|
+
o(qn, !1);
|
|
830
830
|
}))),
|
|
831
831
|
Q(m, "wheel", r(((e) => {
|
|
832
832
|
let { deltaX: t, deltaY: n, deltaMode: r } = e;
|
|
833
|
-
C && r === 0 &&
|
|
833
|
+
C && r === 0 && vt(m) === c && x({
|
|
834
834
|
x: t,
|
|
835
835
|
y: n
|
|
836
|
-
}), C = !1, o(
|
|
837
|
-
C = !0, o(
|
|
838
|
-
})),
|
|
836
|
+
}), C = !1, o(Zn, !0), _((() => {
|
|
837
|
+
C = !0, o(Zn);
|
|
838
|
+
})), Zt(e);
|
|
839
839
|
})), {
|
|
840
840
|
D: !1,
|
|
841
841
|
I: !0
|
|
842
842
|
}),
|
|
843
843
|
!u && Q(m, "mousedown", r((() => {
|
|
844
|
-
let e =
|
|
845
|
-
(
|
|
844
|
+
let e = bt();
|
|
845
|
+
(nt(e, wn) || nt(e, Sn) || e === document.body) && ie(J(on, l), 25);
|
|
846
846
|
}))),
|
|
847
847
|
Q(m, "pointerdown", (() => {
|
|
848
848
|
let e = Q(f, "click", ((e) => {
|
|
849
|
-
t(),
|
|
849
|
+
t(), Qt(e);
|
|
850
850
|
}), {
|
|
851
851
|
A: !0,
|
|
852
852
|
I: !0,
|
|
@@ -865,144 +865,144 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
865
865
|
v,
|
|
866
866
|
b
|
|
867
867
|
]);
|
|
868
|
-
},
|
|
869
|
-
let s, c, l, u, d, f =
|
|
868
|
+
}, Pr = (e, t, n, r, i, a, o) => {
|
|
869
|
+
let s, c, l, u, d, f = Qe, p = 0, m = ["mouse", "pen"], h = (e) => (t) => {
|
|
870
870
|
n.Kt || e(t);
|
|
871
|
-
}, g = (e) => m.includes(e.pointerType), [_, v] =
|
|
871
|
+
}, g = (e) => m.includes(e.pointerType), [_, v] = Ke(), [y, b] = Ke(100), [x, S] = Ke(50), [C, w] = Ke((() => p)), [T, E] = Mr(e, a, i, Nr(t, a, i, h, ((e) => g(e) && F()))), { vt: D, Qt: O, bt: k } = a, { Ft: A, Ut: j, Nt: M, qt: ee, Bt: N } = T, P = (e, t) => {
|
|
872
872
|
w();
|
|
873
873
|
let r = (e) => {
|
|
874
|
-
n.Kt || A(
|
|
874
|
+
n.Kt || A(Xn, e);
|
|
875
875
|
};
|
|
876
876
|
if (e) r();
|
|
877
877
|
else {
|
|
878
878
|
let e = !l || !s;
|
|
879
879
|
p > 0 && !t ? C(J(r, e)) : r(e);
|
|
880
880
|
}
|
|
881
|
-
},
|
|
882
|
-
(l ? !s : !u) && (
|
|
883
|
-
|
|
881
|
+
}, F = () => {
|
|
882
|
+
(l ? !s : !u) && (P(!0), y((() => {
|
|
883
|
+
P(!1);
|
|
884
884
|
})));
|
|
885
|
-
}, F = (e) => {
|
|
886
|
-
g(e) && (s = !0, !n.Kt && l && te(!0));
|
|
887
885
|
}, I = (e) => {
|
|
888
|
-
g(e) && (s = !
|
|
886
|
+
g(e) && (s = !0, !n.Kt && l && P(!0));
|
|
889
887
|
}, L = (e) => {
|
|
890
|
-
|
|
891
|
-
}, R =
|
|
888
|
+
g(e) && (s = !1, !n.Kt && l && P(!1));
|
|
889
|
+
}, R = (e) => {
|
|
890
|
+
A(Yn, e, !0), A(Yn, e, !1);
|
|
891
|
+
}, z = [
|
|
892
892
|
w,
|
|
893
893
|
b,
|
|
894
894
|
S,
|
|
895
895
|
v,
|
|
896
896
|
() => f(),
|
|
897
|
-
Q(D, "pointerover",
|
|
898
|
-
Q(D, "pointerenter",
|
|
899
|
-
Q(D, "pointerleave",
|
|
897
|
+
Q(D, "pointerover", I, { A: !0 }),
|
|
898
|
+
Q(D, "pointerenter", I),
|
|
899
|
+
Q(D, "pointerleave", L),
|
|
900
900
|
Q(D, "pointermove", h(((e) => {
|
|
901
|
-
g(e) && c &&
|
|
901
|
+
g(e) && c && F();
|
|
902
902
|
}))),
|
|
903
903
|
Q(O, "scroll", h(((e) => {
|
|
904
904
|
_((() => {
|
|
905
|
-
M(),
|
|
905
|
+
M(), F();
|
|
906
906
|
})), o(e), N();
|
|
907
907
|
})))
|
|
908
|
-
],
|
|
908
|
+
], B = mn(or);
|
|
909
909
|
return [
|
|
910
|
-
() => J(q, K(
|
|
910
|
+
() => J(q, K(z, E())),
|
|
911
911
|
({ Dt: e, It: t, Zt: n, tn: a }) => {
|
|
912
|
-
let { nn: o, sn: s, en: m, cn: g } = a || {}, { Ct: _, ft: v } = n || {}, { B: y } = r, { M: b, P: S } =
|
|
913
|
-
let r = e.includes(
|
|
914
|
-
return A(
|
|
912
|
+
let { nn: o, sn: s, en: m, cn: g } = a || {}, { Ct: _, ft: v } = n || {}, { B: y } = r, { M: b, P: S } = xr(), { rn: C, j: w } = i, [T, E] = e("showNativeOverlaidScrollbars"), [D, F] = e("scrollbars.theme"), [I, L] = e("scrollbars.visibility"), [z, V] = e("scrollbars.autoHide"), [H, te] = e("scrollbars.autoHideSuspend"), [ne] = e("scrollbars.autoHideDelay"), [re, ie] = e("scrollbars.dragScroll"), [ae, oe] = e("scrollbars.clickScroll"), [se, ce] = e("overflow"), le = v && !t, ue = o || s || g || _ || t, de = m || L || ce, fe = T && b.x && b.y, pe = !S && !B, me = fe || pe, he = (e, t, n) => {
|
|
913
|
+
let r = e.includes(Be) && (I === Re || I === "auto" && t === Be);
|
|
914
|
+
return A(Gn, r, n), r;
|
|
915
915
|
};
|
|
916
|
-
if (p =
|
|
917
|
-
f = Q(O,
|
|
918
|
-
}))) :
|
|
919
|
-
let e =
|
|
920
|
-
A(
|
|
916
|
+
if (p = ne, (E || pe) && A(Rn, me), F && (A(d), A(D, !0), d = D), (te || le) && (R(!H), le && H && (w.x || w.y ? (f(), x((() => {
|
|
917
|
+
f = Q(O, Be, h(J(R, !0)), { A: !0 });
|
|
918
|
+
}))) : R(!0))), V && (c = z === "move", l = z === "leave", u = z === "never", P(u, !0)), ie && A($n, re), oe && A(Qn, !!ae), de) {
|
|
919
|
+
let e = he(se.x, C.x, !0), t = he(se.y, C.y, !1);
|
|
920
|
+
A(Kn, !(e && t));
|
|
921
921
|
}
|
|
922
|
-
|
|
922
|
+
ue && (M(), j(), N(), g && ee(), A(Jn, !w.x, !0), A(Jn, !w.y, !1), A(Bn, y && !k));
|
|
923
923
|
},
|
|
924
924
|
{},
|
|
925
925
|
T
|
|
926
926
|
];
|
|
927
|
-
},
|
|
928
|
-
let { K: t, P: n } =
|
|
929
|
-
let t =
|
|
930
|
-
return n.w - t.w > 0 && !
|
|
927
|
+
}, Fr = (e) => {
|
|
928
|
+
let { K: t, P: n } = xr(), { elements: r } = t(), { padding: i, viewport: a, content: o } = r, s = ye(e), c = s ? {} : e, { elements: l } = c, { padding: u, viewport: d, content: f } = l || {}, p = s ? e : c.target, m = gt(p), h = p.ownerDocument, g = h.documentElement, _ = () => h.defaultView || R, v = J(kr, [p]), y = J(Ar, [p]), b = J(Et, ""), x = J(v, b, a), S = J(y, b, o), C = (e) => {
|
|
929
|
+
let t = Vt(e), n = Ut(e), r = Pt(e, Pe), i = Pt(e, Fe);
|
|
930
|
+
return n.w - t.w > 0 && !nr(r) || n.h - t.h > 0 && !nr(i);
|
|
931
931
|
}, w = x(d), T = w === p, E = T && m, D = !T && S(f), O = !T && w === D, k = E ? g : w, A = E ? k : p, j = !T && y(b, i, u), M = !O && D, ee = [
|
|
932
932
|
M,
|
|
933
933
|
k,
|
|
934
934
|
j,
|
|
935
935
|
A
|
|
936
|
-
].map(((e) => ye(e) && !
|
|
936
|
+
].map(((e) => ye(e) && !vt(e) && e)), N = (e) => e && xe(ee, e), P = !N(k) && C(k) ? k : p, F = E ? g : k, I = {
|
|
937
937
|
dt: p,
|
|
938
938
|
vt: A,
|
|
939
939
|
L: k,
|
|
940
940
|
ln: j,
|
|
941
941
|
ht: M,
|
|
942
|
-
gt:
|
|
942
|
+
gt: F,
|
|
943
943
|
Qt: E ? h : k,
|
|
944
|
-
an: m ? g :
|
|
944
|
+
an: m ? g : P,
|
|
945
945
|
Gt: h,
|
|
946
946
|
bt: m,
|
|
947
947
|
At: s,
|
|
948
948
|
V: T,
|
|
949
949
|
un: _,
|
|
950
|
-
yt: (e) =>
|
|
951
|
-
wt: (e, t) =>
|
|
952
|
-
St: () =>
|
|
953
|
-
}, { dt: L, vt:
|
|
954
|
-
|
|
955
|
-
}],
|
|
950
|
+
yt: (e) => lt(k, wn, e),
|
|
951
|
+
wt: (e, t) => ct(k, wn, e, t),
|
|
952
|
+
St: () => ct(F, wn, kn, !0)
|
|
953
|
+
}, { dt: L, vt: z, ln: B, L: V, ht: H } = I, te = [() => {
|
|
954
|
+
it(z, [Sn, yn]), it(L, yn), m && it(g, [yn, Sn]);
|
|
955
|
+
}], ne = _t([
|
|
956
|
+
H,
|
|
956
957
|
V,
|
|
957
958
|
B,
|
|
958
959
|
z,
|
|
959
|
-
R,
|
|
960
960
|
L
|
|
961
|
-
].find(((e) => e && !N(e)))),
|
|
961
|
+
].find(((e) => e && !N(e)))), re = E ? L : H || V, ie = J(q, te);
|
|
962
962
|
return [
|
|
963
|
-
|
|
963
|
+
I,
|
|
964
964
|
() => {
|
|
965
|
-
let e = _(), t =
|
|
966
|
-
Z(
|
|
967
|
-
}, i = (e) => Q(e, "focusin focusout focus blur",
|
|
965
|
+
let e = _(), t = bt(), r = (e) => {
|
|
966
|
+
Z(vt(e), _t(e)), St(e);
|
|
967
|
+
}, i = (e) => Q(e, "focusin focusout focus blur", Qt, {
|
|
968
968
|
I: !0,
|
|
969
969
|
D: !1
|
|
970
|
-
}), a = "tabindex", o =
|
|
971
|
-
return
|
|
972
|
-
let e =
|
|
973
|
-
|
|
974
|
-
}]), n && !T && (
|
|
970
|
+
}), a = "tabindex", o = tt(V, a), s = i(t);
|
|
971
|
+
return rt(z, Sn, T ? "" : Cn), rt(B, Mn, ""), rt(V, wn, ""), rt(H, Nn, ""), T || (rt(V, a, o || "-1"), m && rt(g, xn, "")), Z(re, ne), Z(z, B), Z(B || z, !T && V), Z(V, H), K(te, [s, () => {
|
|
972
|
+
let e = bt(), t = N(V), n = t && e === V ? L : e, s = i(n);
|
|
973
|
+
it(B, Mn), it(H, Nn), it(V, wn), m && it(g, xn), o ? rt(V, a, o) : it(V, a), N(H) && r(H), t && r(V), N(B) && r(B), on(n), s();
|
|
974
|
+
}]), n && !T && (st(V, wn, An), K(te, J(it, V, wn))), on(!T && m && t === L && e.top === e ? V : t), s(), ne = 0, ie;
|
|
975
975
|
},
|
|
976
|
-
|
|
976
|
+
ie
|
|
977
977
|
];
|
|
978
|
-
},
|
|
978
|
+
}, Ir = ({ ht: e }) => ({ Zt: t, fn: n, It: r }) => {
|
|
979
979
|
let { $t: i } = t || {}, { Ot: a } = n;
|
|
980
|
-
e && (i || r) &&
|
|
981
|
-
},
|
|
982
|
-
let [a, o] =
|
|
983
|
-
i:
|
|
984
|
-
o:
|
|
985
|
-
}, J(
|
|
980
|
+
e && (i || r) && Nt(e, { [Le]: a && "100%" });
|
|
981
|
+
}, Lr = ({ vt: e, ln: t, L: n, V: r }, i) => {
|
|
982
|
+
let [a, o] = L({
|
|
983
|
+
i: Ge,
|
|
984
|
+
o: Ft()
|
|
985
|
+
}, J(Ft, e, "padding", ""));
|
|
986
986
|
return ({ Dt: e, Zt: s, fn: c, It: l }) => {
|
|
987
|
-
let [u, d] = o(l), { P: f } =
|
|
987
|
+
let [u, d] = o(l), { P: f } = xr(), { _t: p, xt: m, Ct: h } = s || {}, { B: g } = c, [_, v] = e("paddingAbsolute");
|
|
988
988
|
(p || d || l || m) && ([u, d] = a(l));
|
|
989
989
|
let y = !r && (v || h || d);
|
|
990
990
|
if (y) {
|
|
991
991
|
let e = !_ || !t && !f, r = u.r + u.l, a = u.t + u.b, o = {
|
|
992
|
-
[
|
|
993
|
-
[
|
|
994
|
-
[
|
|
992
|
+
[Me]: e && !g ? -r : 0,
|
|
993
|
+
[Ne]: e ? -a : 0,
|
|
994
|
+
[je]: e && g ? -r : 0,
|
|
995
995
|
top: e ? -u.t : 0,
|
|
996
996
|
right: e ? g ? -u.r : "auto" : 0,
|
|
997
997
|
left: e ? g ? "auto" : -u.l : 0,
|
|
998
|
-
[
|
|
998
|
+
[Ie]: e && `calc(100% + ${r}px)`
|
|
999
999
|
}, s = {
|
|
1000
|
-
[
|
|
1001
|
-
[
|
|
1002
|
-
[
|
|
1003
|
-
[
|
|
1000
|
+
[De]: e ? u.t : 0,
|
|
1001
|
+
[Oe]: e ? u.r : 0,
|
|
1002
|
+
[Ae]: e ? u.b : 0,
|
|
1003
|
+
[ke]: e ? u.l : 0
|
|
1004
1004
|
};
|
|
1005
|
-
|
|
1005
|
+
Nt(t || n, o), Nt(n, s), X(i, {
|
|
1006
1006
|
ln: u,
|
|
1007
1007
|
_n: !e,
|
|
1008
1008
|
F: t ? s : X({}, o, s)
|
|
@@ -1010,29 +1010,29 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1010
1010
|
}
|
|
1011
1011
|
return { dn: y };
|
|
1012
1012
|
};
|
|
1013
|
-
},
|
|
1014
|
-
let n =
|
|
1013
|
+
}, Rr = (e, t) => {
|
|
1014
|
+
let n = xr(), { vt: r, ln: i, L: a, V: o, Qt: s, gt: c, bt: l, wt: u, un: d } = e, { P: f } = n, p = l && o, m = J(z, 0), h = {
|
|
1015
1015
|
display: () => !1,
|
|
1016
1016
|
direction: (e) => e !== "ltr",
|
|
1017
1017
|
flexDirection: (e) => e.endsWith("-reverse"),
|
|
1018
1018
|
writingMode: (e) => e !== "horizontal-tb"
|
|
1019
1019
|
}, g = Y(h), _ = {
|
|
1020
|
-
i:
|
|
1020
|
+
i: Ue,
|
|
1021
1021
|
o: {
|
|
1022
1022
|
w: 0,
|
|
1023
1023
|
h: 0
|
|
1024
1024
|
}
|
|
1025
1025
|
}, v = {
|
|
1026
|
-
i:
|
|
1026
|
+
i: We,
|
|
1027
1027
|
o: {}
|
|
1028
1028
|
}, y = (e) => {
|
|
1029
|
-
u(
|
|
1030
|
-
}, b = () =>
|
|
1029
|
+
u(On, !p && e);
|
|
1030
|
+
}, b = () => Pt(a, g), x = (e, t) => {
|
|
1031
1031
|
let n = !Y(e).length, r = t ? !0 : g.some(((t) => {
|
|
1032
1032
|
let n = e[t];
|
|
1033
1033
|
return me(n) && h[t](n);
|
|
1034
1034
|
}));
|
|
1035
|
-
if (n || !r || !
|
|
1035
|
+
if (n || !r || !Kt(a)) return {
|
|
1036
1036
|
T: {
|
|
1037
1037
|
x: 0,
|
|
1038
1038
|
y: 0
|
|
@@ -1043,43 +1043,43 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1043
1043
|
}
|
|
1044
1044
|
};
|
|
1045
1045
|
y(!0);
|
|
1046
|
-
let i =
|
|
1047
|
-
let t =
|
|
1048
|
-
e.isTrusted && t.x === i.x && t.y === i.y &&
|
|
1046
|
+
let i = en(c), o = Q(s, Be, ((e) => {
|
|
1047
|
+
let t = en(c);
|
|
1048
|
+
e.isTrusted && t.x === i.x && t.y === i.y && Xt(e);
|
|
1049
1049
|
}), {
|
|
1050
1050
|
I: !0,
|
|
1051
1051
|
A: !0
|
|
1052
|
-
}), l = u(
|
|
1053
|
-
|
|
1052
|
+
}), l = u(jn, !0);
|
|
1053
|
+
$t(c, {
|
|
1054
1054
|
x: 0,
|
|
1055
1055
|
y: 0
|
|
1056
1056
|
}), l();
|
|
1057
|
-
let d =
|
|
1058
|
-
|
|
1057
|
+
let d = en(c), f = Ut(c);
|
|
1058
|
+
$t(c, {
|
|
1059
1059
|
x: f.w,
|
|
1060
1060
|
y: f.h
|
|
1061
1061
|
});
|
|
1062
|
-
let p =
|
|
1062
|
+
let p = en(c), m = {
|
|
1063
1063
|
x: p.x - d.x,
|
|
1064
1064
|
y: p.y - d.y
|
|
1065
1065
|
};
|
|
1066
|
-
|
|
1066
|
+
$t(c, {
|
|
1067
1067
|
x: -f.w,
|
|
1068
1068
|
y: -f.h
|
|
1069
1069
|
});
|
|
1070
|
-
let _ =
|
|
1070
|
+
let _ = en(c), v = {
|
|
1071
1071
|
x: _.x - d.x,
|
|
1072
1072
|
y: _.y - d.y
|
|
1073
1073
|
}, b = {
|
|
1074
|
-
x:
|
|
1075
|
-
y:
|
|
1074
|
+
x: H(m.x) >= H(v.x) ? p.x : _.x,
|
|
1075
|
+
y: H(m.y) >= H(v.y) ? p.y : _.y
|
|
1076
1076
|
};
|
|
1077
|
-
return
|
|
1077
|
+
return $t(c, i), re((() => o())), {
|
|
1078
1078
|
T: d,
|
|
1079
1079
|
k: b
|
|
1080
1080
|
};
|
|
1081
1081
|
}, S = (e, t) => {
|
|
1082
|
-
let n =
|
|
1082
|
+
let n = R.devicePixelRatio % 1 == 0 ? 0 : 1, r = {
|
|
1083
1083
|
w: m(e.w - t.w),
|
|
1084
1084
|
h: m(e.h - t.h)
|
|
1085
1085
|
};
|
|
@@ -1089,8 +1089,8 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1089
1089
|
};
|
|
1090
1090
|
}, C = (e, t) => {
|
|
1091
1091
|
let n = (e, t, n, r) => {
|
|
1092
|
-
let i = e ===
|
|
1093
|
-
return !t && !r ?
|
|
1092
|
+
let i = e === Re ? ze : rr(e), a = nr(e), o = nr(n);
|
|
1093
|
+
return !t && !r ? ze : a && o ? Re : a ? t && r ? i : t ? Re : ze : t ? i : o && r ? Re : ze;
|
|
1094
1094
|
};
|
|
1095
1095
|
return {
|
|
1096
1096
|
x: n(t.x, e.x, t.y, e.y),
|
|
@@ -1098,58 +1098,58 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1098
1098
|
};
|
|
1099
1099
|
}, w = (e) => {
|
|
1100
1100
|
let t = (e) => [
|
|
1101
|
-
Le,
|
|
1102
1101
|
Re,
|
|
1103
|
-
ze
|
|
1104
|
-
|
|
1102
|
+
ze,
|
|
1103
|
+
Be
|
|
1104
|
+
].map(((t) => V(ir(t), e))), n = t(!0).concat(t()).join(" ");
|
|
1105
1105
|
u(n), u(Y(e).map(((t) => V(e[t], t === "x"))).join(" "), !0);
|
|
1106
|
-
}, [T, E] =
|
|
1107
|
-
i: (e, t) =>
|
|
1106
|
+
}, [T, E] = L(_, J(Wt, a)), [D, O] = L(_, J(Ut, a)), [k, A] = L(_), [j] = L(v), [M, ee] = L(_), [N] = L(v), [P] = L({
|
|
1107
|
+
i: (e, t) => He(e, t, Ee(Se(Y(e), Y(t)))),
|
|
1108
1108
|
o: {}
|
|
1109
|
-
}), [
|
|
1110
|
-
i: (e, t) =>
|
|
1111
|
-
o:
|
|
1112
|
-
}),
|
|
1109
|
+
}), [F, I] = L({
|
|
1110
|
+
i: (e, t) => We(e.T, t.T) && We(e.k, t.k),
|
|
1111
|
+
o: tn()
|
|
1112
|
+
}), B = mn(or), V = (e, t) => `${t ? Tn : En}${Ve(e)}`;
|
|
1113
1113
|
return ({ Dt: o, Zt: s, fn: c, It: l }, { dn: h }) => {
|
|
1114
|
-
let { _t: g, Ht: _, xt: v, Ct:
|
|
1115
|
-
if (
|
|
1116
|
-
|
|
1117
|
-
let e =
|
|
1114
|
+
let { _t: g, Ht: _, xt: v, Ct: L, ft: R, Et: z } = s || {}, { X: V, Y: H, W: te } = B && B.R(e, t, c, n, o) || {}, [ne, re] = tr(o, n), [ie, ae] = o("overflow"), oe = nr(ie.x), se = nr(ie.y), ce = g || h || v || L || z || re, le = E(l), ue = O(l), de = A(l), fe = ee(l);
|
|
1115
|
+
if (re && f && u(An, !ne), ce) {
|
|
1116
|
+
lt(r, Sn, bn) && y(!0);
|
|
1117
|
+
let e = H && H(), [t] = le = T(l), [n] = ue = D(l), i = Ht(a), o = p && Bt(d()), s = {
|
|
1118
1118
|
w: m(n.w + t.w),
|
|
1119
1119
|
h: m(n.h + t.h)
|
|
1120
1120
|
}, c = {
|
|
1121
1121
|
w: m((o ? o.w : i.w + m(i.w - n.w)) + t.w),
|
|
1122
1122
|
h: m((o ? o.h : i.h + m(i.h - n.h)) + t.h)
|
|
1123
1123
|
};
|
|
1124
|
-
e && e(),
|
|
1125
|
-
}
|
|
1126
|
-
let [
|
|
1127
|
-
x:
|
|
1128
|
-
y:
|
|
1129
|
-
}),
|
|
1130
|
-
y(!1),
|
|
1131
|
-
let [
|
|
1132
|
-
return
|
|
1133
|
-
rn:
|
|
1124
|
+
e && e(), fe = M(c), de = k(S(s, c), l);
|
|
1125
|
+
}
|
|
1126
|
+
let [pe, me] = fe, [he, U] = de, [W, ge] = ue, [_e, ve] = le, [ye] = j({
|
|
1127
|
+
x: he.w > 0,
|
|
1128
|
+
y: he.h > 0
|
|
1129
|
+
}), be = oe && se && (ye.x || ye.y) || oe && ye.x && !ye.y || se && ye.y && !ye.x, G = h || L || z || ve || ge || me || U || ae || re || ce || _ && p, [xe] = o("update.flowDirectionStyles"), [Se, K] = P(xe ? xe(a) || {} : b(), l), [Ce, we] = L || R || K || l ? F(x(Se, !!xe), l) : I(), Te = C(ye, ie);
|
|
1130
|
+
y(!1), G && (w(Te), Te = ar(a, ye), te && V && (V(Te, W, _e), Nt(a, te(Te))));
|
|
1131
|
+
let [Ee, q] = N(Te);
|
|
1132
|
+
return ct(r, Sn, bn, be), ct(i, Mn, bn, be), X(t, {
|
|
1133
|
+
rn: Ee,
|
|
1134
1134
|
Vt: {
|
|
1135
|
-
x:
|
|
1136
|
-
y:
|
|
1135
|
+
x: pe.w,
|
|
1136
|
+
y: pe.h
|
|
1137
1137
|
},
|
|
1138
1138
|
Rt: {
|
|
1139
|
-
x:
|
|
1140
|
-
y:
|
|
1139
|
+
x: he.w,
|
|
1140
|
+
y: he.h
|
|
1141
1141
|
},
|
|
1142
|
-
j:
|
|
1143
|
-
Tt:
|
|
1142
|
+
j: ye,
|
|
1143
|
+
Tt: nn(Ce, he)
|
|
1144
1144
|
}), {
|
|
1145
|
-
en:
|
|
1146
|
-
nn:
|
|
1145
|
+
en: q,
|
|
1146
|
+
nn: me,
|
|
1147
1147
|
sn: U,
|
|
1148
1148
|
cn: we || U
|
|
1149
1149
|
};
|
|
1150
1150
|
};
|
|
1151
|
-
},
|
|
1152
|
-
let [t, n, r] =
|
|
1151
|
+
}, zr = (e) => {
|
|
1152
|
+
let [t, n, r] = Fr(e), i = {
|
|
1153
1153
|
ln: {
|
|
1154
1154
|
t: 0,
|
|
1155
1155
|
r: 0,
|
|
@@ -1158,13 +1158,13 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1158
1158
|
},
|
|
1159
1159
|
_n: !1,
|
|
1160
1160
|
F: {
|
|
1161
|
-
[je]: 0,
|
|
1162
1161
|
[Me]: 0,
|
|
1163
|
-
[
|
|
1164
|
-
[
|
|
1162
|
+
[Ne]: 0,
|
|
1163
|
+
[je]: 0,
|
|
1165
1164
|
[De]: 0,
|
|
1166
|
-
[
|
|
1167
|
-
[
|
|
1165
|
+
[Oe]: 0,
|
|
1166
|
+
[Ae]: 0,
|
|
1167
|
+
[ke]: 0
|
|
1168
1168
|
},
|
|
1169
1169
|
Vt: {
|
|
1170
1170
|
x: 0,
|
|
@@ -1175,42 +1175,42 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1175
1175
|
y: 0
|
|
1176
1176
|
},
|
|
1177
1177
|
rn: {
|
|
1178
|
-
x:
|
|
1179
|
-
y:
|
|
1178
|
+
x: ze,
|
|
1179
|
+
y: ze
|
|
1180
1180
|
},
|
|
1181
1181
|
j: {
|
|
1182
1182
|
x: !1,
|
|
1183
1183
|
y: !1
|
|
1184
1184
|
},
|
|
1185
|
-
Tt:
|
|
1186
|
-
}, { dt: a, gt: o, V: s, St: c } = t, { P: l, M: u } =
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1185
|
+
Tt: tn()
|
|
1186
|
+
}, { dt: a, gt: o, V: s, St: c } = t, { P: l, M: u } = xr(), d = !l && (u.x || u.y), f = [
|
|
1187
|
+
Ir(t),
|
|
1188
|
+
Lr(t, i),
|
|
1189
|
+
Rr(t, i)
|
|
1190
1190
|
];
|
|
1191
1191
|
return [
|
|
1192
1192
|
n,
|
|
1193
1193
|
(e) => {
|
|
1194
|
-
let t = {}, n = d &&
|
|
1194
|
+
let t = {}, n = d && en(o), r = n && c();
|
|
1195
1195
|
return G(f, ((n) => {
|
|
1196
1196
|
X(t, n(e, t) || {});
|
|
1197
|
-
})),
|
|
1197
|
+
})), $t(o, n), r && r(), s || $t(a, 0), t;
|
|
1198
1198
|
},
|
|
1199
1199
|
i,
|
|
1200
1200
|
t,
|
|
1201
1201
|
r
|
|
1202
1202
|
];
|
|
1203
|
-
},
|
|
1203
|
+
}, Br = (e, t, n, r) => {
|
|
1204
1204
|
let i = !1, a = {
|
|
1205
1205
|
Kt: !1,
|
|
1206
1206
|
pn: !1
|
|
1207
|
-
}, o =
|
|
1207
|
+
}, o = hr(t, {}), [s, c, l, u, d] = zr(e), [f, p, m] = Dr(u, l, o, ((e) => {
|
|
1208
1208
|
y({}, e);
|
|
1209
|
-
})), [h, g, , _] =
|
|
1209
|
+
})), [h, g, , _] = Pr(e, t, a, m, l, u, r), v = (e) => Y(e).some(((t) => !!e[t])), y = (e, r) => {
|
|
1210
1210
|
let { Kt: o, pn: s } = a;
|
|
1211
1211
|
if (s || o && i) return !1;
|
|
1212
1212
|
let { vn: l, It: u, zt: d } = e, f = l || {}, h = !!u || !i, _ = {
|
|
1213
|
-
Dt:
|
|
1213
|
+
Dt: hr(t, f, h),
|
|
1214
1214
|
vn: f,
|
|
1215
1215
|
It: h
|
|
1216
1216
|
}, y = r || p(X({}, _, { zt: d })), b = c(X({}, _, {
|
|
@@ -1221,7 +1221,7 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1221
1221
|
Zt: y,
|
|
1222
1222
|
tn: b
|
|
1223
1223
|
}));
|
|
1224
|
-
let x = v(y), S = v(b), C = x || S || !
|
|
1224
|
+
let x = v(y), S = v(b), C = x || S || !Ze(f) || h;
|
|
1225
1225
|
return i = !0, C && n(e, {
|
|
1226
1226
|
Zt: y,
|
|
1227
1227
|
tn: b
|
|
@@ -1229,7 +1229,7 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1229
1229
|
};
|
|
1230
1230
|
return [
|
|
1231
1231
|
() => {
|
|
1232
|
-
let { an: e, gt: t, St: n } = u, r =
|
|
1232
|
+
let { an: e, gt: t, St: n } = u, r = en(e), i = [
|
|
1233
1233
|
f(),
|
|
1234
1234
|
s(),
|
|
1235
1235
|
h(),
|
|
@@ -1237,7 +1237,7 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1237
1237
|
a.pn = !0;
|
|
1238
1238
|
}
|
|
1239
1239
|
], o = n();
|
|
1240
|
-
return
|
|
1240
|
+
return $t(t, r), o(), J(q, i);
|
|
1241
1241
|
},
|
|
1242
1242
|
y,
|
|
1243
1243
|
(e) => {
|
|
@@ -1249,7 +1249,7 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1249
1249
|
},
|
|
1250
1250
|
() => {
|
|
1251
1251
|
g({
|
|
1252
|
-
Dt:
|
|
1252
|
+
Dt: hr(t, {}, !1),
|
|
1253
1253
|
vn: {},
|
|
1254
1254
|
It: !1
|
|
1255
1255
|
});
|
|
@@ -1265,19 +1265,19 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1265
1265
|
},
|
|
1266
1266
|
d
|
|
1267
1267
|
];
|
|
1268
|
-
},
|
|
1269
|
-
|
|
1270
|
-
},
|
|
1271
|
-
|
|
1272
|
-
},
|
|
1273
|
-
let { tt: r } =
|
|
1268
|
+
}, Vr = /* @__PURE__ */ new WeakMap(), Hr = (e, t) => {
|
|
1269
|
+
Vr.set(e, t);
|
|
1270
|
+
}, Ur = (e) => {
|
|
1271
|
+
Vr.delete(e);
|
|
1272
|
+
}, Wr = (e) => Vr.get(e), Gr = (e, t, n) => {
|
|
1273
|
+
let { tt: r } = xr(), i = ye(e), a = i ? e : e.target, o = Wr(a);
|
|
1274
1274
|
if (t && !o) {
|
|
1275
1275
|
let o = [], s = {}, c = (e) => {
|
|
1276
|
-
let t =
|
|
1276
|
+
let t = Xe(e), n = mn(hn);
|
|
1277
1277
|
return n ? n(t, !0) : t;
|
|
1278
|
-
}, l = X({}, r(), c(t)), [u, d, f] =
|
|
1278
|
+
}, l = X({}, r(), c(t)), [u, d, f] = cn(), [p, m, h] = cn(n), g = (e, t) => {
|
|
1279
1279
|
h(e, t), f(e, t);
|
|
1280
|
-
}, [_, v, y, b, x, S, C] =
|
|
1280
|
+
}, [_, v, y, b, x, S, C] = Br(e, l, (({ vn: e, It: t }, { Zt: n, tn: r }) => {
|
|
1281
1281
|
let { _t: i, Ct: a, $t: o, xt: s, Ht: c, ft: l } = n, { nn: u, sn: d, en: f, cn: p } = r;
|
|
1282
1282
|
g("updated", [T, {
|
|
1283
1283
|
updateHints: {
|
|
@@ -1297,12 +1297,12 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1297
1297
|
}]);
|
|
1298
1298
|
}), ((e) => g("scroll", [T, e]))), w = (e) => {
|
|
1299
1299
|
let { gn: t } = x(), { pn: n } = t;
|
|
1300
|
-
n || (
|
|
1300
|
+
n || (Ur(a), q(o), g("destroyed", [T, e]), d(), m());
|
|
1301
1301
|
}, T = {
|
|
1302
1302
|
options(e, t) {
|
|
1303
1303
|
if (e) {
|
|
1304
|
-
let n = t ? r() : {}, i =
|
|
1305
|
-
|
|
1304
|
+
let n = t ? r() : {}, i = mr(l, X(n, c(e)));
|
|
1305
|
+
Ze(i) || (X(l, i), v({ vn: i }));
|
|
1306
1306
|
}
|
|
1307
1307
|
return X({}, l);
|
|
1308
1308
|
},
|
|
@@ -1363,22 +1363,22 @@ var In = "os-trinsic-observer", Ln = "os-theme-none", Rn = "os-scrollbar", zn =
|
|
|
1363
1363
|
sleep: y,
|
|
1364
1364
|
plugin: (e) => s[Y(e)[0]]
|
|
1365
1365
|
};
|
|
1366
|
-
return K(o, [C]),
|
|
1366
|
+
return K(o, [C]), Hr(a, T), fn(ln, Gr, [
|
|
1367
1367
|
T,
|
|
1368
1368
|
u,
|
|
1369
1369
|
s
|
|
1370
|
-
]),
|
|
1370
|
+
]), jr(S.yn.bt, !i && e.cancel) ? (w(!0), T) : (K(o, _()), g("initialized", [T]), T.update(), T);
|
|
1371
1371
|
}
|
|
1372
1372
|
return o;
|
|
1373
1373
|
};
|
|
1374
|
-
|
|
1375
|
-
let t =
|
|
1376
|
-
return
|
|
1377
|
-
},
|
|
1378
|
-
let t = e && e.elements, n =
|
|
1379
|
-
return ve(n) && !!
|
|
1380
|
-
},
|
|
1381
|
-
let { U: e, M: t, P: n, J: r, ot: i, st: a, K: o, Z: s, tt: c, nt: l } =
|
|
1374
|
+
Gr.plugin = (e) => {
|
|
1375
|
+
let t = W(e), n = t ? e : [e], r = n.map(((e) => fn(e, Gr)[0]));
|
|
1376
|
+
return dn(n), t ? r : r[0];
|
|
1377
|
+
}, Gr.valid = (e) => {
|
|
1378
|
+
let t = e && e.elements, n = U(t) && t();
|
|
1379
|
+
return ve(n) && !!Wr(n.target);
|
|
1380
|
+
}, Gr.env = () => {
|
|
1381
|
+
let { U: e, M: t, P: n, J: r, ot: i, st: a, K: o, Z: s, tt: c, nt: l } = xr();
|
|
1382
1382
|
return X({}, {
|
|
1383
1383
|
scrollbarsSize: e,
|
|
1384
1384
|
scrollbarsOverlaid: t,
|
|
@@ -1391,10 +1391,10 @@ Wr.plugin = (e) => {
|
|
|
1391
1391
|
getDefaultOptions: c,
|
|
1392
1392
|
setDefaultOptions: l
|
|
1393
1393
|
});
|
|
1394
|
-
},
|
|
1394
|
+
}, Gr.nonce = vr, Gr.trustedTypePolicy = Tt;
|
|
1395
1395
|
//#endregion
|
|
1396
1396
|
//#region node_modules/overlayscrollbars-vue/overlayscrollbars-vue.mjs
|
|
1397
|
-
var
|
|
1397
|
+
var Kr = () => {
|
|
1398
1398
|
if (typeof window > "u") {
|
|
1399
1399
|
let e = () => {};
|
|
1400
1400
|
return [e, e];
|
|
@@ -1407,20 +1407,20 @@ var Gr = () => {
|
|
|
1407
1407
|
c(), t = i(n);
|
|
1408
1408
|
} : n, typeof a == "object" ? a : { timeout: 2233 });
|
|
1409
1409
|
}, c];
|
|
1410
|
-
},
|
|
1411
|
-
let t = null, n, r, i, a =
|
|
1412
|
-
return
|
|
1410
|
+
}, qr = (e) => {
|
|
1411
|
+
let t = null, n, r, i, a = T(e || {}), [o, s] = Kr();
|
|
1412
|
+
return A(() => O(a.value?.defer), (e) => {
|
|
1413
1413
|
i = e;
|
|
1414
1414
|
}, {
|
|
1415
1415
|
deep: !0,
|
|
1416
1416
|
immediate: !0
|
|
1417
|
-
}),
|
|
1418
|
-
n = e,
|
|
1417
|
+
}), A(() => O(a.value?.options), (e) => {
|
|
1418
|
+
n = e, Gr.valid(t) && t.options(n || {}, !0);
|
|
1419
1419
|
}, {
|
|
1420
1420
|
deep: !0,
|
|
1421
1421
|
immediate: !0
|
|
1422
|
-
}),
|
|
1423
|
-
r = e,
|
|
1422
|
+
}), A(() => O(a.value?.events), (e) => {
|
|
1423
|
+
r = e, Gr.valid(t) && t.on(
|
|
1424
1424
|
/* c8 ignore next */
|
|
1425
1425
|
r || {},
|
|
1426
1426
|
!0
|
|
@@ -1428,14 +1428,14 @@ var Gr = () => {
|
|
|
1428
1428
|
}, {
|
|
1429
1429
|
deep: !0,
|
|
1430
1430
|
immediate: !0
|
|
1431
|
-
}),
|
|
1431
|
+
}), v(() => {
|
|
1432
1432
|
s(), t?.destroy();
|
|
1433
1433
|
}), [(e) => {
|
|
1434
|
-
if (
|
|
1435
|
-
let a = () => t =
|
|
1434
|
+
if (Gr.valid(t)) return t;
|
|
1435
|
+
let a = () => t = Gr(e, n || {}, r || {});
|
|
1436
1436
|
i ? o(a, i) : a();
|
|
1437
1437
|
}, () => t];
|
|
1438
|
-
},
|
|
1438
|
+
}, Jr = /* @__PURE__ */ d({
|
|
1439
1439
|
__name: "OverlayScrollbarsComponent",
|
|
1440
1440
|
props: {
|
|
1441
1441
|
element: {
|
|
@@ -1453,12 +1453,12 @@ var Gr = () => {
|
|
|
1453
1453
|
"osScroll"
|
|
1454
1454
|
],
|
|
1455
1455
|
setup(e, { expose: t, emit: n }) {
|
|
1456
|
-
let
|
|
1456
|
+
let r = e, a = {
|
|
1457
1457
|
initialized: "osInitialized",
|
|
1458
1458
|
updated: "osUpdated",
|
|
1459
1459
|
destroyed: "osDestroyed",
|
|
1460
1460
|
scroll: "osScroll"
|
|
1461
|
-
}, { element: s, options: c, events: l, defer: u } =
|
|
1461
|
+
}, { element: s, options: c, events: l, defer: u } = D(r), d = T(null), f = T(null), p = b(), [m, h] = qr({
|
|
1462
1462
|
options: c,
|
|
1463
1463
|
events: p,
|
|
1464
1464
|
defer: u
|
|
@@ -1466,7 +1466,7 @@ var Gr = () => {
|
|
|
1466
1466
|
return t({
|
|
1467
1467
|
osInstance: h,
|
|
1468
1468
|
getElement: () => d.value
|
|
1469
|
-
}),
|
|
1469
|
+
}), j((e) => {
|
|
1470
1470
|
let { value: t } = d, { value: n } = f;
|
|
1471
1471
|
t && (m(s.value === "body" ? {
|
|
1472
1472
|
target: t,
|
|
@@ -1478,30 +1478,30 @@ var Gr = () => {
|
|
|
1478
1478
|
content: n
|
|
1479
1479
|
}
|
|
1480
1480
|
}), e(() => h()?.destroy()));
|
|
1481
|
-
}),
|
|
1481
|
+
}), A(() => O(l), (e) => {
|
|
1482
1482
|
let t = e || {};
|
|
1483
|
-
p.value = Object.keys(
|
|
1483
|
+
p.value = Object.keys(a).reduce((e, r) => {
|
|
1484
1484
|
let i = t[r];
|
|
1485
|
-
return e[r] = [(...e) => n(
|
|
1485
|
+
return e[r] = [(...e) => n(a[r], ...e), ...(Array.isArray(i) ? i : [i]).filter(Boolean)], e;
|
|
1486
1486
|
}, {});
|
|
1487
1487
|
}, {
|
|
1488
1488
|
deep: !0,
|
|
1489
1489
|
immediate: !0
|
|
1490
|
-
}), (e, t) => (
|
|
1490
|
+
}), (e, t) => (y(), i(w(O(s)), {
|
|
1491
1491
|
"data-overlayscrollbars-initialize": "",
|
|
1492
1492
|
ref_key: "elementRef",
|
|
1493
1493
|
ref: d
|
|
1494
1494
|
}, {
|
|
1495
|
-
default:
|
|
1495
|
+
default: M(() => [O(s) === "body" ? S(e.$slots, "default", { key: 0 }) : (y(), o("div", {
|
|
1496
1496
|
key: 1,
|
|
1497
1497
|
"data-overlayscrollbars-contents": "",
|
|
1498
1498
|
ref_key: "slotRef",
|
|
1499
1499
|
ref: f
|
|
1500
|
-
}, [
|
|
1500
|
+
}, [S(e.$slots, "default")], 512))]),
|
|
1501
1501
|
_: 3
|
|
1502
1502
|
}, 512));
|
|
1503
1503
|
}
|
|
1504
|
-
}),
|
|
1504
|
+
}), Yr = /*@__PURE__*/ d({
|
|
1505
1505
|
__name: "TextScroller",
|
|
1506
1506
|
props: {
|
|
1507
1507
|
delay: { default: 500 },
|
|
@@ -1513,36 +1513,36 @@ var Gr = () => {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
},
|
|
1515
1515
|
setup(e) {
|
|
1516
|
-
let t = e, n =
|
|
1516
|
+
let t = e, n = b(), r = b(), i = b(!1), a = b(0), c = b(!1), l;
|
|
1517
1517
|
function u() {
|
|
1518
1518
|
return c.value || t.active;
|
|
1519
1519
|
}
|
|
1520
1520
|
function d() {
|
|
1521
|
-
l &&= (clearTimeout(l), void 0), i.value = !1,
|
|
1521
|
+
l &&= (clearTimeout(l), void 0), i.value = !1, a.value = 0;
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function f() {
|
|
1524
1524
|
let e = n.value?.clientWidth ?? 0, t = r.value?.scrollWidth ?? 0;
|
|
1525
|
-
|
|
1525
|
+
a.value = Math.max(0, t - e), i.value = a.value > 0;
|
|
1526
1526
|
}
|
|
1527
1527
|
function _() {
|
|
1528
1528
|
d(), l = setTimeout(async () => {
|
|
1529
|
-
await
|
|
1529
|
+
await p(), u() && f();
|
|
1530
1530
|
}, t.delay);
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function v() {
|
|
1533
1533
|
u() && (i.value = !1, l = setTimeout(() => {
|
|
1534
|
-
u() &&
|
|
1534
|
+
u() && f();
|
|
1535
1535
|
}, t.repeatDelay));
|
|
1536
1536
|
}
|
|
1537
|
-
return
|
|
1537
|
+
return A(() => t.active, (e) => {
|
|
1538
1538
|
e ? _() : c.value || d();
|
|
1539
|
-
}),
|
|
1539
|
+
}), g(d), (e, l) => (y(), o("span", {
|
|
1540
1540
|
ref_key: "viewport",
|
|
1541
1541
|
ref: n,
|
|
1542
|
-
class:
|
|
1543
|
-
style:
|
|
1544
|
-
"--scroll-distance": `${
|
|
1545
|
-
"--scroll-duration": `${Math.max(2,
|
|
1542
|
+
class: m(["text-scroller", { scrolling: i.value }]),
|
|
1543
|
+
style: h({
|
|
1544
|
+
"--scroll-distance": `${a.value}px`,
|
|
1545
|
+
"--scroll-duration": `${Math.max(2, a.value / t.speed)}s`
|
|
1546
1546
|
}),
|
|
1547
1547
|
onMouseenter: l[0] ||= (e) => {
|
|
1548
1548
|
c.value = !0, t.active || _();
|
|
@@ -1550,32 +1550,32 @@ var Gr = () => {
|
|
|
1550
1550
|
onMouseleave: l[1] ||= (e) => {
|
|
1551
1551
|
c.value = !1, t.active || d();
|
|
1552
1552
|
}
|
|
1553
|
-
}, [
|
|
1553
|
+
}, [s("span", {
|
|
1554
1554
|
ref_key: "content",
|
|
1555
1555
|
ref: r,
|
|
1556
1556
|
class: "text-scroller-content",
|
|
1557
|
-
onAnimationend:
|
|
1558
|
-
}, [
|
|
1557
|
+
onAnimationend: v
|
|
1558
|
+
}, [S(e.$slots, "default", {}, void 0, !0)], 544)], 38));
|
|
1559
1559
|
}
|
|
1560
1560
|
}), $ = (e, t) => {
|
|
1561
1561
|
let n = e.__vccOpts || e;
|
|
1562
1562
|
for (let [e, r] of t) n[e] = r;
|
|
1563
1563
|
return n;
|
|
1564
|
-
},
|
|
1564
|
+
}, Xr = /*#__PURE__*/ $(Yr, [["__scopeId", "data-v-8fac895b"]]), Zr = { class: "component-list" }, Qr = { class: "component-head" }, $r = ["title"], ei = { class: "palette-search" }, ti = {
|
|
1565
1565
|
key: 0,
|
|
1566
1566
|
class: "component-groups"
|
|
1567
|
-
},
|
|
1567
|
+
}, ni = { class: "group-label" }, ri = { class: "component-items" }, ii = [
|
|
1568
1568
|
"aria-label",
|
|
1569
1569
|
"onMouseenter",
|
|
1570
1570
|
"onClick"
|
|
1571
|
-
],
|
|
1571
|
+
], ai = { class: "component-icon icon" }, oi = {
|
|
1572
1572
|
key: 1,
|
|
1573
1573
|
class: "component-empty"
|
|
1574
|
-
},
|
|
1574
|
+
}, si = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
1575
1575
|
__name: "ComponenList",
|
|
1576
1576
|
emits: ["select"],
|
|
1577
|
-
setup(t, { emit:
|
|
1578
|
-
let i =
|
|
1577
|
+
setup(t, { emit: n }) {
|
|
1578
|
+
let i = n, a = I(), c = b(""), d = b(), f = {
|
|
1579
1579
|
overflow: {
|
|
1580
1580
|
x: "hidden",
|
|
1581
1581
|
y: "scroll"
|
|
@@ -1753,10 +1753,10 @@ var Gr = () => {
|
|
|
1753
1753
|
groupKey: "component-oauth",
|
|
1754
1754
|
icon: "checklist"
|
|
1755
1755
|
}
|
|
1756
|
-
], m =
|
|
1757
|
-
let e =
|
|
1756
|
+
], m = r(() => {
|
|
1757
|
+
let e = c.value.trim().toLowerCase();
|
|
1758
1758
|
return e ? p.filter((t) => `${t.label} ${t.type}`.toLowerCase().includes(e)) : p;
|
|
1759
|
-
}), h =
|
|
1759
|
+
}), h = r(() => {
|
|
1760
1760
|
let e = /* @__PURE__ */ new Map();
|
|
1761
1761
|
for (let t of m.value) {
|
|
1762
1762
|
let n = e.get(t.group) ?? [];
|
|
@@ -1768,49 +1768,49 @@ var Gr = () => {
|
|
|
1768
1768
|
items: t
|
|
1769
1769
|
}));
|
|
1770
1770
|
});
|
|
1771
|
-
return (t, n) => (
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1771
|
+
return (t, n) => (y(), o("section", Zr, [
|
|
1772
|
+
s("div", Qr, [s("span", { title: O(a)("components", "Components") }, E(O(a)("components", "Components")), 9, $r)]),
|
|
1773
|
+
s("div", ei, [n[2] ||= s("span", { class: "icon" }, "search", -1), ee(s("input", {
|
|
1774
|
+
"onUpdate:modelValue": n[0] ||= (e) => c.value = e,
|
|
1775
1775
|
type: "search",
|
|
1776
1776
|
placeholder: "Search components...",
|
|
1777
1777
|
"aria-label": "Search components"
|
|
1778
|
-
}, null, 512), [[
|
|
1779
|
-
|
|
1778
|
+
}, null, 512), [[k, c.value]])]),
|
|
1779
|
+
u(O(Jr), {
|
|
1780
1780
|
class: "component-content",
|
|
1781
1781
|
options: f,
|
|
1782
1782
|
defer: ""
|
|
1783
1783
|
}, {
|
|
1784
|
-
default:
|
|
1784
|
+
default: M(() => [h.value.length ? (y(), o("div", ti, [(y(!0), o(e, null, x(h.value, (t) => (y(), o("section", {
|
|
1785
1785
|
key: t.name,
|
|
1786
1786
|
class: "component-group"
|
|
1787
|
-
}, [
|
|
1787
|
+
}, [s("div", ni, E(O(a)(t.key, t.name)), 1), s("div", ri, [(y(!0), o(e, null, x(t.items, (e) => (y(), o("button", {
|
|
1788
1788
|
key: e.type,
|
|
1789
1789
|
type: "button",
|
|
1790
1790
|
class: "component-item",
|
|
1791
|
-
"aria-label": `${
|
|
1791
|
+
"aria-label": `${O(a)("add-component", "Add")} ${O(a)(e.key, e.label)}`,
|
|
1792
1792
|
onMouseenter: (t) => d.value = e.type,
|
|
1793
1793
|
onMouseleave: n[1] ||= (e) => d.value = void 0,
|
|
1794
1794
|
onClick: (t) => i("select", e.type)
|
|
1795
|
-
}, [
|
|
1795
|
+
}, [s("span", ai, E(e.icon), 1), u(Xr, {
|
|
1796
1796
|
class: "component-label",
|
|
1797
1797
|
active: d.value === e.type
|
|
1798
1798
|
}, {
|
|
1799
|
-
default:
|
|
1799
|
+
default: M(() => [l(E(O(a)(e.key, e.label)), 1)]),
|
|
1800
1800
|
_: 2
|
|
1801
|
-
}, 1032, ["active"])], 40,
|
|
1801
|
+
}, 1032, ["active"])], 40, ii))), 128))])]))), 128))])) : (y(), o("span", oi, E(O(a)("no-components-found", "No components found.")), 1))]),
|
|
1802
1802
|
_: 1
|
|
1803
1803
|
})
|
|
1804
1804
|
]));
|
|
1805
1805
|
}
|
|
1806
|
-
}), [["__scopeId", "data-v-
|
|
1806
|
+
}), [["__scopeId", "data-v-874f9d09"]]), ci = [
|
|
1807
1807
|
"title",
|
|
1808
1808
|
"aria-label",
|
|
1809
1809
|
"disabled"
|
|
1810
|
-
],
|
|
1810
|
+
], li = {
|
|
1811
1811
|
class: "icon",
|
|
1812
1812
|
"aria-hidden": "true"
|
|
1813
|
-
},
|
|
1813
|
+
}, ui = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
1814
1814
|
__name: "IconButton",
|
|
1815
1815
|
props: {
|
|
1816
1816
|
icon: { default: "settings" },
|
|
@@ -1818,38 +1818,42 @@ var Gr = () => {
|
|
|
1818
1818
|
disabled: {
|
|
1819
1819
|
type: Boolean,
|
|
1820
1820
|
default: !1
|
|
1821
|
+
},
|
|
1822
|
+
active: {
|
|
1823
|
+
type: Boolean,
|
|
1824
|
+
default: !1
|
|
1821
1825
|
}
|
|
1822
1826
|
},
|
|
1823
1827
|
setup(e) {
|
|
1824
|
-
return (t, n) => (
|
|
1825
|
-
class: "icon-button",
|
|
1828
|
+
return (t, n) => (y(), o("button", {
|
|
1829
|
+
class: m(["icon-button", { active: e.active }]),
|
|
1826
1830
|
type: "button",
|
|
1827
1831
|
title: e.title,
|
|
1828
1832
|
"aria-label": e.title,
|
|
1829
1833
|
disabled: e.disabled
|
|
1830
|
-
}, [
|
|
1834
|
+
}, [s("span", li, E(e.icon), 1)], 10, ci));
|
|
1831
1835
|
}
|
|
1832
|
-
}), [["__scopeId", "data-v-
|
|
1836
|
+
}), [["__scopeId", "data-v-5184fa46"]]), di = [
|
|
1833
1837
|
"title",
|
|
1834
1838
|
"aria-label",
|
|
1835
1839
|
"aria-expanded"
|
|
1836
|
-
],
|
|
1840
|
+
], fi = ["disabled", "onClick"], pi = {
|
|
1837
1841
|
key: 0,
|
|
1838
1842
|
class: "icon",
|
|
1839
1843
|
"aria-hidden": "true"
|
|
1840
|
-
},
|
|
1844
|
+
}, mi = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
1841
1845
|
__name: "MoreButton",
|
|
1842
1846
|
props: { items: {} },
|
|
1843
1847
|
emits: ["select"],
|
|
1844
|
-
setup(n, { emit:
|
|
1845
|
-
let c =
|
|
1848
|
+
setup(n, { emit: r }) {
|
|
1849
|
+
let c = r, l = b(!1), u = b(), d = b(), f = b(), m = b({
|
|
1846
1850
|
top: 0,
|
|
1847
1851
|
right: 0
|
|
1848
|
-
}),
|
|
1852
|
+
}), v = I()("tooltip-sidebar-more", "More");
|
|
1849
1853
|
function C() {
|
|
1850
1854
|
if (!d.value) return;
|
|
1851
1855
|
let e = d.value.getBoundingClientRect();
|
|
1852
|
-
|
|
1856
|
+
m.value = {
|
|
1853
1857
|
top: e.bottom + 6,
|
|
1854
1858
|
right: Math.max(8, window.innerWidth - e.right)
|
|
1855
1859
|
};
|
|
@@ -1857,63 +1861,63 @@ var Gr = () => {
|
|
|
1857
1861
|
function w() {
|
|
1858
1862
|
l.value = !l.value;
|
|
1859
1863
|
}
|
|
1860
|
-
function
|
|
1864
|
+
function T(e) {
|
|
1861
1865
|
e.disabled || (c("select", e.id), l.value = !1);
|
|
1862
1866
|
}
|
|
1863
|
-
function
|
|
1867
|
+
function D(e) {
|
|
1864
1868
|
let t = e.target;
|
|
1865
|
-
u.value && !u.value.contains(t) && !
|
|
1869
|
+
u.value && !u.value.contains(t) && !f.value?.contains(t) && (l.value = !1);
|
|
1866
1870
|
}
|
|
1867
|
-
function
|
|
1871
|
+
function k(e) {
|
|
1868
1872
|
e.key === "Escape" && (l.value = !1);
|
|
1869
1873
|
}
|
|
1870
|
-
return
|
|
1871
|
-
document.addEventListener("click",
|
|
1872
|
-
}),
|
|
1873
|
-
document.removeEventListener("click",
|
|
1874
|
-
}),
|
|
1875
|
-
e && (await
|
|
1876
|
-
}), (
|
|
1874
|
+
return _(() => {
|
|
1875
|
+
document.addEventListener("click", D), document.addEventListener("keydown", k), window.addEventListener("resize", C), window.addEventListener("scroll", C, !0);
|
|
1876
|
+
}), g(() => {
|
|
1877
|
+
document.removeEventListener("click", D), document.removeEventListener("keydown", k), window.removeEventListener("resize", C), window.removeEventListener("scroll", C, !0);
|
|
1878
|
+
}), A(l, async (e) => {
|
|
1879
|
+
e && (await p(), C());
|
|
1880
|
+
}), (r, c) => (y(), o("div", {
|
|
1877
1881
|
ref_key: "root",
|
|
1878
1882
|
ref: u,
|
|
1879
1883
|
class: "more-menu"
|
|
1880
|
-
}, [
|
|
1884
|
+
}, [s("button", {
|
|
1881
1885
|
ref_key: "button",
|
|
1882
1886
|
ref: d,
|
|
1883
1887
|
class: "more-button",
|
|
1884
1888
|
type: "button",
|
|
1885
|
-
title:
|
|
1886
|
-
"aria-label":
|
|
1889
|
+
title: O(v),
|
|
1890
|
+
"aria-label": O(v),
|
|
1887
1891
|
"aria-expanded": l.value,
|
|
1888
1892
|
"aria-haspopup": "menu",
|
|
1889
|
-
onClick:
|
|
1890
|
-
}, [...c[0] ||= [
|
|
1893
|
+
onClick: P(w, ["stop"])
|
|
1894
|
+
}, [...c[0] ||= [s("span", {
|
|
1891
1895
|
class: "icon",
|
|
1892
1896
|
"aria-hidden": "true"
|
|
1893
|
-
}, "more_vert", -1)]], 8,
|
|
1897
|
+
}, "more_vert", -1)]], 8, di), (y(), i(t, { to: "body" }, [l.value ? (y(), o("div", {
|
|
1894
1898
|
key: 0,
|
|
1895
1899
|
ref_key: "dropdown",
|
|
1896
|
-
ref:
|
|
1900
|
+
ref: f,
|
|
1897
1901
|
class: "dropdown",
|
|
1898
1902
|
role: "menu",
|
|
1899
|
-
style:
|
|
1900
|
-
top: `${
|
|
1901
|
-
right: `${
|
|
1903
|
+
style: h({
|
|
1904
|
+
top: `${m.value.top}px`,
|
|
1905
|
+
right: `${m.value.right}px`
|
|
1902
1906
|
})
|
|
1903
|
-
}, [n.items?.length ? (
|
|
1907
|
+
}, [n.items?.length ? (y(!0), o(e, { key: 0 }, x(n.items, (e) => (y(), o("button", {
|
|
1904
1908
|
key: e.id,
|
|
1905
1909
|
class: "menu-item",
|
|
1906
1910
|
type: "button",
|
|
1907
1911
|
role: "menuitem",
|
|
1908
1912
|
disabled: e.disabled,
|
|
1909
|
-
onClick: (t) =>
|
|
1910
|
-
}, [e.icon ? (
|
|
1913
|
+
onClick: (t) => T(e)
|
|
1914
|
+
}, [e.icon ? (y(), o("span", pi, E(e.icon), 1)) : a("", !0), s("span", null, E(e.label), 1)], 8, fi))), 128)) : S(r.$slots, "menu", { close: () => l.value = !1 }, void 0, !0, 1)], 4)) : a("", !0)]))], 512));
|
|
1911
1915
|
}
|
|
1912
|
-
}), [["__scopeId", "data-v-923fea1e"]]),
|
|
1916
|
+
}), [["__scopeId", "data-v-923fea1e"]]), hi = ["disabled", "aria-busy"], gi = {
|
|
1913
1917
|
key: 0,
|
|
1914
1918
|
class: "spinner",
|
|
1915
1919
|
"aria-hidden": "true"
|
|
1916
|
-
},
|
|
1920
|
+
}, _i = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
1917
1921
|
__name: "SaveButton",
|
|
1918
1922
|
props: {
|
|
1919
1923
|
disabled: {
|
|
@@ -1926,81 +1930,94 @@ var Gr = () => {
|
|
|
1926
1930
|
}
|
|
1927
1931
|
},
|
|
1928
1932
|
setup(e) {
|
|
1929
|
-
let t =
|
|
1930
|
-
return (n, r) => (
|
|
1933
|
+
let t = I();
|
|
1934
|
+
return (n, r) => (y(), o("button", {
|
|
1931
1935
|
class: "save-button",
|
|
1932
1936
|
type: "button",
|
|
1933
1937
|
disabled: e.disabled || e.working,
|
|
1934
1938
|
"aria-busy": e.working
|
|
1935
|
-
}, [e.working ? (
|
|
1939
|
+
}, [e.working ? (y(), o("span", gi)) : a("", !0), s("span", null, E(O(t)("save-changes", "Save changes")), 1)], 8, hi));
|
|
1936
1940
|
}
|
|
1937
|
-
}), [["__scopeId", "data-v-4a359870"]]),
|
|
1941
|
+
}), [["__scopeId", "data-v-4a359870"]]), vi = { class: "branding" }, yi = { class: "title" }, bi = { class: "subject" }, xi = { class: "document-name" }, Si = ["title"], Ci = { class: "actions" }, wi = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
1938
1942
|
__name: "Header",
|
|
1939
1943
|
props: {
|
|
1940
1944
|
subject: {},
|
|
1941
1945
|
shared: { type: Boolean },
|
|
1942
|
-
|
|
1943
|
-
moreItems: {}
|
|
1946
|
+
darkModeChangeable: { type: Boolean },
|
|
1947
|
+
moreItems: {},
|
|
1948
|
+
darkMode: { type: Boolean },
|
|
1949
|
+
translationsOpen: { type: Boolean },
|
|
1950
|
+
themeOpen: { type: Boolean }
|
|
1944
1951
|
},
|
|
1945
|
-
emits: [
|
|
1952
|
+
emits: [
|
|
1953
|
+
"moreSelect",
|
|
1954
|
+
"toggleTheme",
|
|
1955
|
+
"toggleTranslations",
|
|
1956
|
+
"toggleThemePanel"
|
|
1957
|
+
],
|
|
1946
1958
|
setup(e, { emit: t }) {
|
|
1947
|
-
let n = e,
|
|
1948
|
-
return (t,
|
|
1949
|
-
|
|
1950
|
-
|
|
1959
|
+
let n = e, r = t, c = I();
|
|
1960
|
+
return (t, l) => (y(), o("header", null, [
|
|
1961
|
+
s("div", vi, [l[4] ||= s("span", { class: "icon" }, "design_services", -1), s("span", yi, E(O(c)("designer", "Designer")), 1)]),
|
|
1962
|
+
s("div", bi, [s("span", xi, E(e.subject), 1), e.shared ? (y(), o("span", {
|
|
1951
1963
|
key: 0,
|
|
1952
1964
|
class: "shared icon",
|
|
1953
|
-
title:
|
|
1954
|
-
}, "groups", 8,
|
|
1955
|
-
|
|
1956
|
-
|
|
1965
|
+
title: O(c)("shared", "Shared")
|
|
1966
|
+
}, "groups", 8, Si)) : a("", !0)]),
|
|
1967
|
+
s("div", Ci, [
|
|
1968
|
+
u(ui, {
|
|
1957
1969
|
icon: "translate",
|
|
1958
|
-
title:
|
|
1959
|
-
|
|
1960
|
-
|
|
1970
|
+
title: O(c)("translations", "Translations"),
|
|
1971
|
+
active: n.translationsOpen,
|
|
1972
|
+
onClick: l[0] ||= (e) => r("toggleTranslations")
|
|
1973
|
+
}, null, 8, ["title", "active"]),
|
|
1974
|
+
u(ui, {
|
|
1961
1975
|
icon: "palette",
|
|
1962
|
-
title:
|
|
1963
|
-
|
|
1964
|
-
|
|
1976
|
+
title: O(c)("change-theme", "Change theme"),
|
|
1977
|
+
active: n.themeOpen,
|
|
1978
|
+
onClick: l[1] ||= (e) => r("toggleThemePanel")
|
|
1979
|
+
}, null, 8, ["title", "active"]),
|
|
1980
|
+
n.darkModeChangeable === !1 ? a("", !0) : (y(), i(ui, {
|
|
1965
1981
|
key: 0,
|
|
1966
|
-
icon: "dark_mode",
|
|
1967
|
-
title:
|
|
1968
|
-
|
|
1969
|
-
|
|
1982
|
+
icon: n.darkMode ? "light_mode" : "dark_mode",
|
|
1983
|
+
title: O(c)("toggle-theme", "Toggle theme"),
|
|
1984
|
+
onClick: l[2] ||= (e) => r("toggleTheme")
|
|
1985
|
+
}, null, 8, ["icon", "title"])),
|
|
1986
|
+
u(ui, {
|
|
1970
1987
|
icon: "visibility",
|
|
1971
|
-
title:
|
|
1988
|
+
title: O(c)("preview", "Preview")
|
|
1972
1989
|
}, null, 8, ["title"]),
|
|
1973
|
-
|
|
1990
|
+
u(_i, {
|
|
1974
1991
|
disabled: !1,
|
|
1975
1992
|
working: !1
|
|
1976
1993
|
}),
|
|
1977
|
-
|
|
1994
|
+
u(mi, {
|
|
1978
1995
|
items: n.moreItems,
|
|
1979
|
-
onSelect:
|
|
1996
|
+
onSelect: l[3] ||= (e) => r("moreSelect", e)
|
|
1980
1997
|
}, null, 8, ["items"])
|
|
1981
1998
|
])
|
|
1982
1999
|
]));
|
|
1983
2000
|
}
|
|
1984
|
-
}), [["__scopeId", "data-v-
|
|
1985
|
-
function
|
|
1986
|
-
return
|
|
2001
|
+
}), [["__scopeId", "data-v-4d3e05c9"]]), Ti = {}, Ei = { class: "properties-panel" };
|
|
2002
|
+
function Di(e, t) {
|
|
2003
|
+
return y(), o("section", Ei, [...t[0] ||= [c("<div class=\"properties-head\" data-v-d42babf5><span class=\"property-icon icon\" data-v-d42babf5>radio_button_unchecked</span><strong data-v-d42babf5>No selection</strong></div><div class=\"properties-empty\" data-v-d42babf5>Select an element on the canvas, or add one from the left, to edit its properties here.</div><div class=\"layers\" data-v-d42babf5><div class=\"layers-title\" data-v-d42babf5>Layers</div><div class=\"layer-empty\" data-v-d42babf5>No layers yet.</div></div>", 3)]]);
|
|
1987
2004
|
}
|
|
1988
|
-
var
|
|
2005
|
+
var Oi = /*#__PURE__*/ $(Ti, [["render", Di], ["__scopeId", "data-v-d42babf5"]]), ki = {
|
|
1989
2006
|
key: 0,
|
|
1990
2007
|
class: "side-info"
|
|
1991
|
-
},
|
|
2008
|
+
}, Ai = { class: "info-title" }, ji = 102, Mi = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
1992
2009
|
__name: "SideInfo",
|
|
1993
2010
|
props: { items: {} },
|
|
1994
2011
|
setup(t) {
|
|
1995
|
-
let
|
|
1996
|
-
function
|
|
2012
|
+
let n = t, c = I(), l = b(), u = b(0), d = r(() => (n.items?.length ?? 0) > 1 && u.value > ji), f;
|
|
2013
|
+
function h() {
|
|
1997
2014
|
u.value = l.value?.scrollHeight ?? 0;
|
|
1998
2015
|
}
|
|
1999
|
-
return
|
|
2000
|
-
|
|
2001
|
-
|
|
2016
|
+
return A(() => n.items, () => void p(h), { deep: !0 }), _(() => {
|
|
2017
|
+
p(() => {
|
|
2018
|
+
h(), f = new ResizeObserver(h), l.value && f.observe(l.value);
|
|
2002
2019
|
});
|
|
2003
|
-
}),
|
|
2020
|
+
}), g(() => f?.disconnect()), (t, r) => n.items?.length ? (y(), o("section", ki, [s("div", Ai, E(O(c)("checklist", "Checklist")), 1), d.value ? (y(), i(O(Jr), {
|
|
2004
2021
|
key: 0,
|
|
2005
2022
|
class: "info-list scrollable",
|
|
2006
2023
|
options: {
|
|
@@ -2012,35 +2029,35 @@ var Di = /*#__PURE__*/ $(wi, [["render", Ei], ["__scopeId", "data-v-d42babf5"]])
|
|
|
2012
2029
|
},
|
|
2013
2030
|
defer: ""
|
|
2014
2031
|
}, {
|
|
2015
|
-
default:
|
|
2032
|
+
default: M(() => [s("div", {
|
|
2016
2033
|
ref_key: "listElement",
|
|
2017
2034
|
ref: l
|
|
2018
|
-
}, [(
|
|
2035
|
+
}, [(y(!0), o(e, null, x(n.items, (e) => (y(), o("div", {
|
|
2019
2036
|
key: e.id,
|
|
2020
2037
|
class: "info-row"
|
|
2021
|
-
}, [
|
|
2038
|
+
}, [s("span", { class: m(["info-dot", { complete: e.complete }]) }, null, 2), s("span", null, E(e.label), 1)]))), 128))], 512)]),
|
|
2022
2039
|
_: 1
|
|
2023
|
-
})) : (
|
|
2040
|
+
})) : (y(), o("div", {
|
|
2024
2041
|
key: 1,
|
|
2025
2042
|
ref_key: "listElement",
|
|
2026
2043
|
ref: l,
|
|
2027
2044
|
class: "info-list"
|
|
2028
|
-
}, [(
|
|
2045
|
+
}, [(y(!0), o(e, null, x(n.items, (e) => (y(), o("div", {
|
|
2029
2046
|
key: e.id,
|
|
2030
2047
|
class: "info-row"
|
|
2031
|
-
}, [
|
|
2048
|
+
}, [s("span", { class: m(["info-dot", { complete: e.complete }]) }, null, 2), s("span", null, E(e.label), 1)]))), 128))], 512))])) : a("", !0);
|
|
2032
2049
|
}
|
|
2033
|
-
}), [["__scopeId", "data-v-ee9b479a"]]),
|
|
2050
|
+
}), [["__scopeId", "data-v-ee9b479a"]]), Ni = { class: "template-list" }, Pi = { class: "section-head" }, Fi = ["title"], Ii = ["aria-label", "title"], Li = ["onClick"], Ri = {
|
|
2034
2051
|
class: "tab-icon icon",
|
|
2035
2052
|
"aria-hidden": "true"
|
|
2036
|
-
},
|
|
2053
|
+
}, zi = ["onKeydown", "onBlur"], Bi = { class: "tab-channel" }, Vi = { class: "tab-version" }, Hi = {
|
|
2037
2054
|
key: 2,
|
|
2038
2055
|
class: "tab-changed",
|
|
2039
2056
|
"aria-label": "Unsaved changes"
|
|
2040
|
-
},
|
|
2057
|
+
}, Ui = {
|
|
2041
2058
|
key: 0,
|
|
2042
2059
|
class: "empty-list"
|
|
2043
|
-
},
|
|
2060
|
+
}, Wi = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2044
2061
|
__name: "TemplateList",
|
|
2045
2062
|
props: {
|
|
2046
2063
|
templates: {},
|
|
@@ -2052,31 +2069,31 @@ var Di = /*#__PURE__*/ $(wi, [["render", Ei], ["__scopeId", "data-v-d42babf5"]])
|
|
|
2052
2069
|
"select"
|
|
2053
2070
|
],
|
|
2054
2071
|
setup(t, { emit: n }) {
|
|
2055
|
-
let
|
|
2056
|
-
function
|
|
2057
|
-
t instanceof HTMLElement ?
|
|
2072
|
+
let r = t, c = n, d = I(), f = /* @__PURE__ */ new Map(), h = b(), g = b(""), _ = b();
|
|
2073
|
+
function v(e, t) {
|
|
2074
|
+
t instanceof HTMLElement ? f.set(e, t) : f.delete(e);
|
|
2058
2075
|
}
|
|
2059
2076
|
async function S(e) {
|
|
2060
|
-
await
|
|
2077
|
+
await p(), f.get(e)?.scrollIntoView({ block: "nearest" });
|
|
2061
2078
|
}
|
|
2062
2079
|
function C(e) {
|
|
2063
|
-
h.value = e.id, g.value = e.name,
|
|
2080
|
+
h.value = e.id, g.value = e.name, p(() => _.value?.select());
|
|
2064
2081
|
}
|
|
2065
2082
|
function w(e) {
|
|
2066
2083
|
let t = g.value.trim();
|
|
2067
|
-
h.value = void 0, t && t !== e.name &&
|
|
2084
|
+
h.value = void 0, t && t !== e.name && c("rename", e.id, t);
|
|
2068
2085
|
}
|
|
2069
|
-
function
|
|
2086
|
+
function T() {
|
|
2070
2087
|
h.value = void 0;
|
|
2071
2088
|
}
|
|
2072
|
-
return
|
|
2089
|
+
return A(() => r.focusedTemplateId, (e) => {
|
|
2073
2090
|
e && S(e);
|
|
2074
|
-
}, { immediate: !0 }), (n,
|
|
2091
|
+
}, { immediate: !0 }), (n, r) => (y(), o("section", Ni, [s("div", Pi, [s("span", { title: O(d)("screens", "Screens") }, E(O(d)("screens", "Screens")), 9, Fi), s("button", {
|
|
2075
2092
|
type: "button",
|
|
2076
|
-
"aria-label":
|
|
2077
|
-
title:
|
|
2078
|
-
onClick:
|
|
2079
|
-
}, [...
|
|
2093
|
+
"aria-label": O(d)("add-screen", "Add screen"),
|
|
2094
|
+
title: O(d)("add-screen", "Add screen"),
|
|
2095
|
+
onClick: r[0] ||= (e) => c("add")
|
|
2096
|
+
}, [...r[4] ||= [s("span", { "aria-hidden": "true" }, "+", -1)]], 8, Ii)]), u(O(Jr), {
|
|
2080
2097
|
class: "template-tabs",
|
|
2081
2098
|
options: {
|
|
2082
2099
|
overflow: {
|
|
@@ -2087,43 +2104,346 @@ var Di = /*#__PURE__*/ $(wi, [["render", Ei], ["__scopeId", "data-v-d42babf5"]])
|
|
|
2087
2104
|
},
|
|
2088
2105
|
defer: ""
|
|
2089
2106
|
}, {
|
|
2090
|
-
default:
|
|
2107
|
+
default: M(() => [(y(!0), o(e, null, x(t.templates ?? [], (e, n) => (y(), o("button", {
|
|
2091
2108
|
key: e.id,
|
|
2092
2109
|
ref_for: !0,
|
|
2093
|
-
ref: (t) =>
|
|
2110
|
+
ref: (t) => v(e.id, t),
|
|
2094
2111
|
type: "button",
|
|
2095
|
-
class:
|
|
2096
|
-
onClick: (t) =>
|
|
2112
|
+
class: m(["template-tab", { active: t.focusedTemplateId ? e.id === t.focusedTemplateId : n === 0 }]),
|
|
2113
|
+
onClick: (t) => c("select", e.id)
|
|
2097
2114
|
}, [
|
|
2098
|
-
|
|
2099
|
-
h.value === e.id ?
|
|
2115
|
+
s("span", Ri, E(e.icon), 1),
|
|
2116
|
+
h.value === e.id ? ee((y(), o("input", {
|
|
2100
2117
|
key: 0,
|
|
2101
2118
|
ref_for: !0,
|
|
2102
2119
|
ref_key: "editInput",
|
|
2103
2120
|
ref: _,
|
|
2104
|
-
"onUpdate:modelValue":
|
|
2121
|
+
"onUpdate:modelValue": r[1] ||= (e) => g.value = e,
|
|
2105
2122
|
class: "tab-label tab-label-input",
|
|
2106
2123
|
type: "text",
|
|
2107
|
-
onClick:
|
|
2108
|
-
onDblclick:
|
|
2109
|
-
onKeydown: [
|
|
2124
|
+
onClick: r[2] ||= P(() => {}, ["stop"]),
|
|
2125
|
+
onDblclick: r[3] ||= P(() => {}, ["stop"]),
|
|
2126
|
+
onKeydown: [N(P((t) => w(e), ["prevent"]), ["enter"]), N(P(T, ["prevent"]), ["esc"])],
|
|
2110
2127
|
onBlur: (t) => w(e)
|
|
2111
|
-
}, null, 40,
|
|
2128
|
+
}, null, 40, zi)), [[k, g.value]]) : (y(), i(Xr, {
|
|
2112
2129
|
key: 1,
|
|
2113
2130
|
class: "tab-label",
|
|
2114
|
-
onDblclick:
|
|
2131
|
+
onDblclick: P((t) => e.type === "dynamic" && C(e), ["stop"])
|
|
2115
2132
|
}, {
|
|
2116
|
-
default:
|
|
2133
|
+
default: M(() => [l(E(e.name), 1)]),
|
|
2117
2134
|
_: 2
|
|
2118
2135
|
}, 1032, ["onDblclick"])),
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
e.changed ? (
|
|
2122
|
-
], 10,
|
|
2136
|
+
s("span", Bi, E(e.channel.charAt(0).toUpperCase()), 1),
|
|
2137
|
+
s("span", Vi, E(e.version), 1),
|
|
2138
|
+
e.changed ? (y(), o("span", Hi)) : a("", !0)
|
|
2139
|
+
], 10, Li))), 128)), t.templates?.length ? a("", !0) : (y(), o("p", Ui, "No screens yet."))]),
|
|
2123
2140
|
_: 1
|
|
2124
2141
|
})]));
|
|
2125
2142
|
}
|
|
2126
|
-
}), [["__scopeId", "data-v-927e0835"]])
|
|
2143
|
+
}), [["__scopeId", "data-v-927e0835"]]);
|
|
2144
|
+
//#endregion
|
|
2145
|
+
//#region src/stores/translations.ts
|
|
2146
|
+
function Gi(e) {
|
|
2147
|
+
return {
|
|
2148
|
+
...e,
|
|
2149
|
+
key: e.key ?? e.id,
|
|
2150
|
+
translations: {
|
|
2151
|
+
...e.value === void 0 ? {} : { en: e.value },
|
|
2152
|
+
...e.translations
|
|
2153
|
+
}
|
|
2154
|
+
};
|
|
2155
|
+
}
|
|
2156
|
+
var Ki = F("translations", {
|
|
2157
|
+
state: () => ({ items: [] }),
|
|
2158
|
+
getters: { fields: (e) => e.items },
|
|
2159
|
+
actions: {
|
|
2160
|
+
setItems(e) {
|
|
2161
|
+
this.items = e.map(Gi);
|
|
2162
|
+
},
|
|
2163
|
+
setScreenItems(e, t) {
|
|
2164
|
+
this.items = [...this.items.filter((t) => t.screenId !== e), ...t.map((t) => Gi({
|
|
2165
|
+
...t,
|
|
2166
|
+
screenId: e
|
|
2167
|
+
}))];
|
|
2168
|
+
},
|
|
2169
|
+
setComponentItems(e, t) {
|
|
2170
|
+
this.items = [...this.items.filter((t) => t.componentId !== e), ...t.map((t) => Gi({
|
|
2171
|
+
...t,
|
|
2172
|
+
componentId: e
|
|
2173
|
+
}))];
|
|
2174
|
+
},
|
|
2175
|
+
updateValue(e, t, n = "en") {
|
|
2176
|
+
let r = this.items.find((t) => t.id === e);
|
|
2177
|
+
r && (r.translations[n] = t);
|
|
2178
|
+
},
|
|
2179
|
+
getValue(e, t = "en") {
|
|
2180
|
+
return this.items.find((t) => t.id === e)?.translations[t] ?? "";
|
|
2181
|
+
},
|
|
2182
|
+
remove(e) {
|
|
2183
|
+
this.items = this.items.filter((t) => t.id !== e);
|
|
2184
|
+
},
|
|
2185
|
+
clear() {
|
|
2186
|
+
this.items = [];
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
}), qi = {
|
|
2190
|
+
class: "translation-sidebar",
|
|
2191
|
+
"aria-label": "Translations"
|
|
2192
|
+
}, Ji = { class: "translation-header" }, Yi = { class: "translation-heading" }, Xi = ["title"], Zi = { class: "translation-body" }, Qi = { class: "translation-controls" }, $i = { class: "language-row" }, ea = { class: "language-heading" }, ta = ["disabled", "title"], na = {
|
|
2193
|
+
key: 0,
|
|
2194
|
+
class: "translate-spinner",
|
|
2195
|
+
"aria-hidden": "true"
|
|
2196
|
+
}, ra = { key: 1 }, ia = [
|
|
2197
|
+
"aria-keyshortcuts",
|
|
2198
|
+
"onClick",
|
|
2199
|
+
"onKeydown"
|
|
2200
|
+
], aa = { class: "translation-search" }, oa = {
|
|
2201
|
+
key: 0,
|
|
2202
|
+
class: "translation-fields"
|
|
2203
|
+
}, sa = { class: "translation-field-heading" }, ca = { class: "field-language" }, la = { class: "field-path" }, ua = [
|
|
2204
|
+
"value",
|
|
2205
|
+
"aria-label",
|
|
2206
|
+
"onInput"
|
|
2207
|
+
], da = {
|
|
2208
|
+
key: 1,
|
|
2209
|
+
class: "translation-empty"
|
|
2210
|
+
}, fa = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2211
|
+
__name: "TranslationSidebar",
|
|
2212
|
+
props: {
|
|
2213
|
+
open: { type: Boolean },
|
|
2214
|
+
fields: {}
|
|
2215
|
+
},
|
|
2216
|
+
emits: ["close", "update"],
|
|
2217
|
+
setup(t, { emit: c }) {
|
|
2218
|
+
let l = t, d = c, f = I(), h = Ki(), v = b(["en"]), S = b("en"), C = b(""), w = b(!1), T = b(""), D = b(!1), j = b(), F = b(), L = b(), R = b(), z = r(() => h.fields), B = r(() => {
|
|
2219
|
+
let e = C.value.trim().toLowerCase();
|
|
2220
|
+
return e ? z.value.filter((t) => [
|
|
2221
|
+
t.key,
|
|
2222
|
+
t.path,
|
|
2223
|
+
t.source
|
|
2224
|
+
].some((t) => t?.toLowerCase().includes(e))) : z.value;
|
|
2225
|
+
});
|
|
2226
|
+
A(() => l.fields, (e) => {
|
|
2227
|
+
e && h.setItems(e);
|
|
2228
|
+
}, { immediate: !0 });
|
|
2229
|
+
function V(e, t) {
|
|
2230
|
+
return h.getValue(e.id, t);
|
|
2231
|
+
}
|
|
2232
|
+
function H() {
|
|
2233
|
+
D.value = !1, T.value = "", j.value = void 0;
|
|
2234
|
+
}
|
|
2235
|
+
function te() {
|
|
2236
|
+
let e = T.value.trim().toLowerCase();
|
|
2237
|
+
if (!e || v.value.includes(e)) {
|
|
2238
|
+
H();
|
|
2239
|
+
return;
|
|
2240
|
+
}
|
|
2241
|
+
v.value.push(e), S.value = e, H();
|
|
2242
|
+
}
|
|
2243
|
+
function ne(e) {
|
|
2244
|
+
if (e === "en") return;
|
|
2245
|
+
let t = v.value.indexOf(e);
|
|
2246
|
+
if (t !== -1) {
|
|
2247
|
+
if (j.value !== e) {
|
|
2248
|
+
j.value = e;
|
|
2249
|
+
return;
|
|
2250
|
+
}
|
|
2251
|
+
v.value.splice(t, 1), j.value = void 0, S.value === e && (S.value = v.value[Math.max(0, t - 1)] ?? "en");
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
function re() {
|
|
2255
|
+
D.value = !0, p(() => L.value?.focus());
|
|
2256
|
+
}
|
|
2257
|
+
function ie(e) {
|
|
2258
|
+
D.value && !F.value?.contains(e.target) && H(), R.value?.contains(e.target) || (j.value = void 0);
|
|
2259
|
+
}
|
|
2260
|
+
function ae(e) {
|
|
2261
|
+
if (e.key === "Escape") {
|
|
2262
|
+
j.value = void 0, D.value && H();
|
|
2263
|
+
return;
|
|
2264
|
+
}
|
|
2265
|
+
!l.open || D.value || e.key !== "Delete" && e.key !== "Backspace" || e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement || ne(S.value);
|
|
2266
|
+
}
|
|
2267
|
+
async function oe() {
|
|
2268
|
+
if (S.value === "en" || w.value || !z.value.length) return;
|
|
2269
|
+
w.value = !0;
|
|
2270
|
+
let e = z.value, t = e.map((e) => V(e, "en")).join("\n"), n = new URL("https://translate.googleapis.com/translate_a/single");
|
|
2271
|
+
n.searchParams.set("client", "gtx"), n.searchParams.set("sl", "en"), n.searchParams.set("tl", S.value), n.searchParams.set("dt", "t"), n.searchParams.set("q", t);
|
|
2272
|
+
try {
|
|
2273
|
+
let t = await fetch(n);
|
|
2274
|
+
if (!t.ok) throw Error(`Translation request failed with status ${t.status}.`);
|
|
2275
|
+
let r = await t.json();
|
|
2276
|
+
if (!Array.isArray(r) || !Array.isArray(r[0])) throw Error("Translation response has an unexpected format.");
|
|
2277
|
+
let i = r[0].map((e) => Array.isArray(e) && typeof e[0] == "string" ? e[0] : "").join("").split("\n");
|
|
2278
|
+
if (i.length !== e.length) throw Error("Translation response did not contain one value per label.");
|
|
2279
|
+
i.forEach((t, n) => {
|
|
2280
|
+
h.updateValue(e[n].id, t, S.value), d("update", e[n].id, t, S.value);
|
|
2281
|
+
});
|
|
2282
|
+
} finally {
|
|
2283
|
+
w.value = !1;
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
return _(() => {
|
|
2287
|
+
document.addEventListener("pointerdown", ie), document.addEventListener("keydown", ae);
|
|
2288
|
+
}), g(() => {
|
|
2289
|
+
document.removeEventListener("pointerdown", ie), document.removeEventListener("keydown", ae);
|
|
2290
|
+
}), (r, c) => (y(), i(n, { name: "translation" }, {
|
|
2291
|
+
default: M(() => [t.open ? (y(), o("div", {
|
|
2292
|
+
key: 0,
|
|
2293
|
+
class: "translation-overlay",
|
|
2294
|
+
onClick: c[3] ||= P((e) => d("close"), ["self"])
|
|
2295
|
+
}, [s("aside", qi, [s("div", Ji, [
|
|
2296
|
+
c[4] ||= s("span", {
|
|
2297
|
+
class: "translation-icon icon",
|
|
2298
|
+
"aria-hidden": "true"
|
|
2299
|
+
}, "translate", -1),
|
|
2300
|
+
s("div", Yi, [s("strong", null, E(O(f)("translations", "Translations")), 1), s("span", null, E(O(f)("translations-subtitle", "Translate this screen")), 1)]),
|
|
2301
|
+
s("button", {
|
|
2302
|
+
type: "button",
|
|
2303
|
+
class: "translation-close icon",
|
|
2304
|
+
title: O(f)("close", "Close"),
|
|
2305
|
+
onClick: c[0] ||= (e) => d("close")
|
|
2306
|
+
}, "close", 8, Xi)
|
|
2307
|
+
]), s("div", Zi, [s("div", Qi, [s("div", $i, [s("div", ea, [s("span", null, E(O(f)("language", "Language")), 1), s("button", {
|
|
2308
|
+
type: "button",
|
|
2309
|
+
class: "translate-labels-button",
|
|
2310
|
+
disabled: S.value === "en" || w.value,
|
|
2311
|
+
title: O(f)("auto-translate", "Auto-translate"),
|
|
2312
|
+
onClick: oe
|
|
2313
|
+
}, [c[5] ||= s("span", {
|
|
2314
|
+
class: "icon",
|
|
2315
|
+
"aria-hidden": "true"
|
|
2316
|
+
}, "translate", -1), w.value ? (y(), o("span", na)) : (y(), o("span", ra, E(O(f)("auto-translate", "Auto-translate")), 1))], 8, ta)]), s("div", {
|
|
2317
|
+
ref_key: "languageChips",
|
|
2318
|
+
ref: R,
|
|
2319
|
+
class: "language-chips"
|
|
2320
|
+
}, [(y(!0), o(e, null, x(v.value, (e) => (y(), o("button", {
|
|
2321
|
+
key: e,
|
|
2322
|
+
type: "button",
|
|
2323
|
+
class: m({
|
|
2324
|
+
active: S.value === e,
|
|
2325
|
+
"delete-armed": j.value === e
|
|
2326
|
+
}),
|
|
2327
|
+
"aria-keyshortcuts": e === "en" ? void 0 : "Delete",
|
|
2328
|
+
onClick: (t) => {
|
|
2329
|
+
S.value = e, j.value = void 0;
|
|
2330
|
+
},
|
|
2331
|
+
onKeydown: [N(P((t) => ne(e), ["prevent"]), ["delete"]), N(P((t) => ne(e), ["prevent"]), ["backspace"])]
|
|
2332
|
+
}, E(e), 43, ia))), 128)), D.value ? (y(), o("span", {
|
|
2333
|
+
key: 0,
|
|
2334
|
+
ref_key: "languageAdder",
|
|
2335
|
+
ref: F,
|
|
2336
|
+
class: "add-language"
|
|
2337
|
+
}, [s("form", { onSubmit: P(te, ["prevent"]) }, [ee(s("input", {
|
|
2338
|
+
ref_key: "languageInput",
|
|
2339
|
+
ref: L,
|
|
2340
|
+
"onUpdate:modelValue": c[1] ||= (e) => T.value = e,
|
|
2341
|
+
"aria-label": "New language"
|
|
2342
|
+
}, null, 512), [[k, T.value]])], 32)], 512)) : (y(), o("button", {
|
|
2343
|
+
key: 1,
|
|
2344
|
+
type: "button",
|
|
2345
|
+
class: "add-language-button",
|
|
2346
|
+
"aria-label": "Add language",
|
|
2347
|
+
onClick: re
|
|
2348
|
+
}, "+"))], 512)]), s("div", aa, [c[6] ||= s("span", {
|
|
2349
|
+
class: "icon",
|
|
2350
|
+
"aria-hidden": "true"
|
|
2351
|
+
}, "search", -1), ee(s("input", {
|
|
2352
|
+
"onUpdate:modelValue": c[2] ||= (e) => C.value = e,
|
|
2353
|
+
type: "search",
|
|
2354
|
+
"aria-label": "Search translations",
|
|
2355
|
+
placeholder: "Search translations..."
|
|
2356
|
+
}, null, 512), [[k, C.value]])])]), u(O(Jr), {
|
|
2357
|
+
class: "translation-scroll",
|
|
2358
|
+
options: {
|
|
2359
|
+
overflow: {
|
|
2360
|
+
x: "hidden",
|
|
2361
|
+
y: "scroll"
|
|
2362
|
+
},
|
|
2363
|
+
scrollbars: { autoHide: "never" }
|
|
2364
|
+
},
|
|
2365
|
+
defer: ""
|
|
2366
|
+
}, {
|
|
2367
|
+
default: M(() => [B.value.length ? (y(), o("div", oa, [(y(!0), o(e, null, x(B.value, (e) => (y(), o("div", {
|
|
2368
|
+
key: e.id,
|
|
2369
|
+
class: "translation-field"
|
|
2370
|
+
}, [s("div", sa, [s("span", ca, E(V(e, "en")), 1), s("span", la, E(e.key ?? e.path), 1)]), s("input", {
|
|
2371
|
+
value: V(e, S.value),
|
|
2372
|
+
"aria-label": e.source,
|
|
2373
|
+
onInput: (t) => d("update", e.id, t.target.value, S.value)
|
|
2374
|
+
}, null, 40, ua)]))), 128))])) : (y(), o("p", da, E(O(f)("no-translations", "No translatable fields are available for this screen.")), 1))]),
|
|
2375
|
+
_: 1
|
|
2376
|
+
})])])])) : a("", !0)]),
|
|
2377
|
+
_: 1
|
|
2378
|
+
}));
|
|
2379
|
+
}
|
|
2380
|
+
}), [["__scopeId", "data-v-618d6192"]]), pa = {
|
|
2381
|
+
class: "theme-sidebar",
|
|
2382
|
+
"aria-label": "Theme"
|
|
2383
|
+
}, ma = { class: "theme-header" }, ha = { class: "theme-heading" }, ga = ["title"], _a = { class: "theme-body" }, va = { class: "theme-label" }, ya = { class: "theme-presets" }, ba = ["aria-label", "onClick"], xa = {
|
|
2384
|
+
class: "theme-label",
|
|
2385
|
+
for: "designer-theme-color"
|
|
2386
|
+
}, Sa = { class: "theme-color-row" }, Ca = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2387
|
+
__name: "ThemeSidebar",
|
|
2388
|
+
props: {
|
|
2389
|
+
open: { type: Boolean },
|
|
2390
|
+
color: {}
|
|
2391
|
+
},
|
|
2392
|
+
emits: ["close", "update"],
|
|
2393
|
+
setup(t, { emit: r }) {
|
|
2394
|
+
let c = t, l = r, u = I(), d = [
|
|
2395
|
+
"#3d7a68",
|
|
2396
|
+
"#2563eb",
|
|
2397
|
+
"#8b6fae",
|
|
2398
|
+
"#c9973f",
|
|
2399
|
+
"#b8564a"
|
|
2400
|
+
], f = b(c.color ?? d[0]);
|
|
2401
|
+
function p(e) {
|
|
2402
|
+
f.value = e, l("update", e);
|
|
2403
|
+
}
|
|
2404
|
+
return (r, c) => (y(), i(n, { name: "theme" }, {
|
|
2405
|
+
default: M(() => [t.open ? (y(), o("div", {
|
|
2406
|
+
key: 0,
|
|
2407
|
+
class: "theme-overlay",
|
|
2408
|
+
onClick: c[5] ||= P((e) => l("close"), ["self"])
|
|
2409
|
+
}, [s("aside", pa, [s("div", ma, [
|
|
2410
|
+
c[6] ||= s("span", {
|
|
2411
|
+
class: "theme-icon icon",
|
|
2412
|
+
"aria-hidden": "true"
|
|
2413
|
+
}, "palette", -1),
|
|
2414
|
+
s("div", ha, [s("strong", null, E(O(u)("theme", "Theme")), 1), s("span", null, E(O(u)("theme-subtitle", "Colors used across every screen")), 1)]),
|
|
2415
|
+
s("button", {
|
|
2416
|
+
type: "button",
|
|
2417
|
+
class: "theme-close icon",
|
|
2418
|
+
title: O(u)("close", "Close"),
|
|
2419
|
+
onClick: c[0] ||= (e) => l("close")
|
|
2420
|
+
}, "close", 8, ga)
|
|
2421
|
+
]), s("div", _a, [
|
|
2422
|
+
s("span", va, E(O(u)("presets", "Presets")), 1),
|
|
2423
|
+
s("div", ya, [(y(), o(e, null, x(d, (e) => s("button", {
|
|
2424
|
+
key: e,
|
|
2425
|
+
type: "button",
|
|
2426
|
+
class: m({ active: f.value === e }),
|
|
2427
|
+
style: h({ "--theme-color": e }),
|
|
2428
|
+
"aria-label": e,
|
|
2429
|
+
onClick: (t) => p(e)
|
|
2430
|
+
}, [...c[7] ||= [s("span", null, null, -1)]], 14, ba)), 64))]),
|
|
2431
|
+
s("label", xa, E(O(u)("primary-color", "Primary color")), 1),
|
|
2432
|
+
s("div", Sa, [ee(s("input", {
|
|
2433
|
+
id: "designer-theme-color",
|
|
2434
|
+
"onUpdate:modelValue": c[1] ||= (e) => f.value = e,
|
|
2435
|
+
type: "color",
|
|
2436
|
+
onInput: c[2] ||= (e) => p(f.value)
|
|
2437
|
+
}, null, 544), [[k, f.value]]), ee(s("input", {
|
|
2438
|
+
"onUpdate:modelValue": c[3] ||= (e) => f.value = e,
|
|
2439
|
+
type: "text",
|
|
2440
|
+
onChange: c[4] ||= (e) => p(f.value)
|
|
2441
|
+
}, null, 544), [[k, f.value]])])
|
|
2442
|
+
])])])) : a("", !0)]),
|
|
2443
|
+
_: 1
|
|
2444
|
+
}));
|
|
2445
|
+
}
|
|
2446
|
+
}), [["__scopeId", "data-v-2b2352d5"]]), wa = ["data-theme", "data-theme-mode"], Ta = { class: "contents" }, Ea = "aham-ui-designer-screens-height", Da = "aham-ui-designer-theme", Oa = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2127
2447
|
__name: "Designer",
|
|
2128
2448
|
props: {
|
|
2129
2449
|
value: {},
|
|
@@ -2131,19 +2451,31 @@ var Di = /*#__PURE__*/ $(wi, [["render", Ei], ["__scopeId", "data-v-d42babf5"]])
|
|
|
2131
2451
|
},
|
|
2132
2452
|
emits: [
|
|
2133
2453
|
"moreSelect",
|
|
2454
|
+
"translationUpdate",
|
|
2134
2455
|
"screenSelect",
|
|
2135
2456
|
"screenAdd",
|
|
2136
|
-
"screenRename"
|
|
2457
|
+
"screenRename",
|
|
2458
|
+
"themeUpdate"
|
|
2137
2459
|
],
|
|
2138
2460
|
setup(e, { emit: t }) {
|
|
2139
|
-
let
|
|
2461
|
+
let n = e, i = t, a = b(), c = b([]), l = b(), d = b(50), f = b(!1), p = b(!1), m = b(!1), v = b(n.options?.theme?.color), x = Ki(), S = !1, w = r(() => n.options?.theme?.mode ?? "default"), T = r(() => n.options?.checklist?.map((e) => ({
|
|
2140
2462
|
...e,
|
|
2141
2463
|
complete: e.check ? e.check({ templates: c.value }) : e.complete
|
|
2142
2464
|
})));
|
|
2143
|
-
|
|
2144
|
-
c.value = e ? [...e] : [], !
|
|
2145
|
-
}, { immediate: !0 })
|
|
2146
|
-
|
|
2465
|
+
A(() => n.options?.templates, (e) => {
|
|
2466
|
+
c.value = e ? [...e] : [], !l.value && c.value[0] && (l.value = c.value[0].id);
|
|
2467
|
+
}, { immediate: !0 }), A(() => n.options?.translations, (e) => {
|
|
2468
|
+
e && x.setItems(e);
|
|
2469
|
+
}, { immediate: !0 }), A(() => n.options?.translationScreens, (e) => {
|
|
2470
|
+
Object.entries(e ?? {}).forEach(([e, t]) => {
|
|
2471
|
+
x.setScreenItems(e, t);
|
|
2472
|
+
});
|
|
2473
|
+
}), A(() => n.options?.translationComponents, (e) => {
|
|
2474
|
+
Object.entries(e ?? {}).forEach(([e, t]) => {
|
|
2475
|
+
x.setComponentItems(e, t);
|
|
2476
|
+
});
|
|
2477
|
+
});
|
|
2478
|
+
function E() {
|
|
2147
2479
|
let e = c.value.filter((e) => e.icon === "view_column").length, t = `layout-${Date.now()}`, n = {
|
|
2148
2480
|
id: t,
|
|
2149
2481
|
name: e ? `New Layout ${e + 1}` : "New Layout",
|
|
@@ -2153,80 +2485,125 @@ var Di = /*#__PURE__*/ $(wi, [["render", Ei], ["__scopeId", "data-v-d42babf5"]])
|
|
|
2153
2485
|
changed: !0,
|
|
2154
2486
|
type: "dynamic"
|
|
2155
2487
|
};
|
|
2156
|
-
c.value.push(n),
|
|
2488
|
+
c.value.push(n), l.value = t, i("screenAdd", n), i("screenSelect", n);
|
|
2157
2489
|
}
|
|
2158
|
-
function
|
|
2490
|
+
function D(e, t) {
|
|
2159
2491
|
let n = c.value.find((t) => t.id === e);
|
|
2160
2492
|
n && (n.name = t, i("screenRename", e, t));
|
|
2161
2493
|
}
|
|
2162
|
-
function
|
|
2494
|
+
function O(e) {
|
|
2163
2495
|
let t = c.value.find((t) => t.id === e);
|
|
2164
|
-
t && (
|
|
2496
|
+
t && (l.value = e, i("screenSelect", t));
|
|
2165
2497
|
}
|
|
2166
|
-
function
|
|
2498
|
+
function k(e) {
|
|
2167
2499
|
i("moreSelect", e);
|
|
2168
2500
|
}
|
|
2169
|
-
function
|
|
2170
|
-
f
|
|
2501
|
+
function j() {
|
|
2502
|
+
f.value = !f.value;
|
|
2171
2503
|
}
|
|
2172
|
-
function
|
|
2173
|
-
|
|
2504
|
+
function M() {
|
|
2505
|
+
p.value = !p.value, p.value && (m.value = !1);
|
|
2506
|
+
}
|
|
2507
|
+
function ee() {
|
|
2508
|
+
m.value = !m.value, m.value && (p.value = !1);
|
|
2509
|
+
}
|
|
2510
|
+
function N(e) {
|
|
2511
|
+
v.value = e, i("themeUpdate", e);
|
|
2512
|
+
}
|
|
2513
|
+
function P(e, t, n) {
|
|
2514
|
+
x.updateValue(e, t, n), i("translationUpdate", e, t, n);
|
|
2515
|
+
}
|
|
2516
|
+
function F() {
|
|
2517
|
+
S && (S = !1, document.body.style.removeProperty("cursor"), document.removeEventListener("pointermove", I), document.removeEventListener("pointerup", F));
|
|
2518
|
+
}
|
|
2519
|
+
function I(e) {
|
|
2520
|
+
let t = a.value?.getBoundingClientRect();
|
|
2174
2521
|
if (!t) return;
|
|
2175
2522
|
let n = (e.clientY - t.top) / t.height * 100;
|
|
2176
2523
|
d.value = Math.min(80, Math.max(20, n));
|
|
2177
2524
|
}
|
|
2178
|
-
function
|
|
2179
|
-
|
|
2180
|
-
}
|
|
2181
|
-
return
|
|
2182
|
-
let e = Number(localStorage.getItem(
|
|
2183
|
-
Number.isFinite(e) && (d.value = Math.min(80, Math.max(20, e)));
|
|
2184
|
-
}),
|
|
2185
|
-
localStorage.setItem(
|
|
2186
|
-
}),
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
"
|
|
2192
|
-
"
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2525
|
+
function L(e) {
|
|
2526
|
+
S = !0, document.body.style.cursor = "row-resize", document.addEventListener("pointermove", I), document.addEventListener("pointerup", F), e.currentTarget.setPointerCapture?.(e.pointerId);
|
|
2527
|
+
}
|
|
2528
|
+
return _(() => {
|
|
2529
|
+
let e = Number(localStorage.getItem(Ea));
|
|
2530
|
+
Number.isFinite(e) && (d.value = Math.min(80, Math.max(20, e))), f.value = w.value === "default" && localStorage.getItem(Da) === "dark";
|
|
2531
|
+
}), A(d, (e) => {
|
|
2532
|
+
localStorage.setItem(Ea, String(e));
|
|
2533
|
+
}), A([f, w], ([e, t]) => {
|
|
2534
|
+
t === "default" && localStorage.setItem(Da, e ? "dark" : "light");
|
|
2535
|
+
}), g(F), (t, n) => {
|
|
2536
|
+
let r = C("Workspace");
|
|
2537
|
+
return y(), o("section", {
|
|
2538
|
+
class: "ui-designer",
|
|
2539
|
+
"data-theme": f.value ? "dark" : "light",
|
|
2540
|
+
"data-theme-mode": w.value,
|
|
2541
|
+
style: h(v.value ? { "--designer-primary": v.value } : void 0)
|
|
2542
|
+
}, [
|
|
2543
|
+
u(wi, {
|
|
2544
|
+
subject: e.options?.subject ?? "",
|
|
2545
|
+
shared: e.options?.shared,
|
|
2546
|
+
"dark-mode-changeable": e.options?.theme?.darkModeChangeable,
|
|
2547
|
+
"dark-mode": f.value,
|
|
2548
|
+
"translations-open": p.value,
|
|
2549
|
+
"theme-open": m.value,
|
|
2550
|
+
"more-items": e.options?.moreItems,
|
|
2551
|
+
onMoreSelect: k,
|
|
2552
|
+
onToggleTheme: j,
|
|
2553
|
+
onToggleTranslations: M,
|
|
2554
|
+
onToggleThemePanel: ee
|
|
2555
|
+
}, null, 8, [
|
|
2556
|
+
"subject",
|
|
2557
|
+
"shared",
|
|
2558
|
+
"dark-mode-changeable",
|
|
2559
|
+
"dark-mode",
|
|
2560
|
+
"translations-open",
|
|
2561
|
+
"theme-open",
|
|
2562
|
+
"more-items"
|
|
2563
|
+
]),
|
|
2564
|
+
s("div", Ta, [
|
|
2565
|
+
s("aside", null, [s("div", {
|
|
2566
|
+
ref_key: "sidebarPanels",
|
|
2567
|
+
ref: a,
|
|
2568
|
+
class: "sidebar-panels",
|
|
2569
|
+
style: h({ "--screens-height": `${d.value}%` })
|
|
2570
|
+
}, [
|
|
2571
|
+
u(Wi, {
|
|
2572
|
+
templates: c.value,
|
|
2573
|
+
"focused-template-id": l.value,
|
|
2574
|
+
onAdd: E,
|
|
2575
|
+
onRename: D,
|
|
2576
|
+
onSelect: O
|
|
2577
|
+
}, null, 8, ["templates", "focused-template-id"]),
|
|
2578
|
+
s("button", {
|
|
2579
|
+
type: "button",
|
|
2580
|
+
class: "panel-resizer",
|
|
2581
|
+
"aria-label": "Resize screens and components panels",
|
|
2582
|
+
onPointerdown: L
|
|
2583
|
+
}, [...n[2] ||= [s("span", { "aria-hidden": "true" }, null, -1)]], 32),
|
|
2584
|
+
u(si)
|
|
2585
|
+
], 4), u(Mi, { items: T.value }, null, 8, ["items"])]),
|
|
2586
|
+
u(r, {
|
|
2587
|
+
class: "workspace",
|
|
2588
|
+
subject: e.options?.subject ?? ""
|
|
2589
|
+
}, null, 8, ["subject"]),
|
|
2590
|
+
u(Oi, { class: "properties" })
|
|
2591
|
+
]),
|
|
2592
|
+
u(fa, {
|
|
2593
|
+
open: p.value,
|
|
2594
|
+
onClose: n[0] ||= (e) => p.value = !1,
|
|
2595
|
+
onUpdate: P
|
|
2596
|
+
}, null, 8, ["open"]),
|
|
2597
|
+
u(Ca, {
|
|
2598
|
+
open: m.value,
|
|
2599
|
+
color: v.value,
|
|
2600
|
+
onClose: n[1] ||= (e) => m.value = !1,
|
|
2601
|
+
onUpdate: N
|
|
2602
|
+
}, null, 8, ["open", "color"])
|
|
2603
|
+
], 12, wa);
|
|
2227
2604
|
};
|
|
2228
2605
|
}
|
|
2229
|
-
}), [["__scopeId", "data-v-
|
|
2606
|
+
}), [["__scopeId", "data-v-90a0bee0"]]), ka = F("checklist", {
|
|
2230
2607
|
state: () => ({ items: [{
|
|
2231
2608
|
id: "all-screens-completed",
|
|
2232
2609
|
label: "All screens completed",
|
|
@@ -2244,7 +2621,7 @@ var Di = /*#__PURE__*/ $(wi, [["render", Ei], ["__scopeId", "data-v-d42babf5"]])
|
|
|
2244
2621
|
});
|
|
2245
2622
|
}
|
|
2246
2623
|
}
|
|
2247
|
-
}),
|
|
2624
|
+
}), Aa = F("screens", {
|
|
2248
2625
|
state: () => ({
|
|
2249
2626
|
screens: [],
|
|
2250
2627
|
screen: null
|
|
@@ -2279,10 +2656,10 @@ var Di = /*#__PURE__*/ $(wi, [["render", Ei], ["__scopeId", "data-v-d42babf5"]])
|
|
|
2279
2656
|
});
|
|
2280
2657
|
//#endregion
|
|
2281
2658
|
//#region src/widgets/components/types.ts
|
|
2282
|
-
function
|
|
2659
|
+
function ja(e) {
|
|
2283
2660
|
if (e !== void 0 && e !== "") return typeof e == "number" || /^-?\d+(?:\.\d+)?$/.test(String(e)) ? `${e}px` : String(e);
|
|
2284
2661
|
}
|
|
2285
|
-
function
|
|
2662
|
+
function Ma(e) {
|
|
2286
2663
|
let t = {};
|
|
2287
2664
|
for (let n of [
|
|
2288
2665
|
"width",
|
|
@@ -2293,10 +2670,10 @@ function Zi(e) {
|
|
|
2293
2670
|
"borderWidth",
|
|
2294
2671
|
"radius"
|
|
2295
2672
|
]) {
|
|
2296
|
-
let r =
|
|
2673
|
+
let r = ja(e[n]);
|
|
2297
2674
|
r && (t[n === "radius" ? "borderRadius" : n] = r);
|
|
2298
2675
|
}
|
|
2299
|
-
if (e.background && (t.background = e.background), e.layout === "grid" ? (t.display = "grid", t.gridTemplateColumns = e.columns || "1fr 1fr", t.alignItems = e.align || "stretch") : e.layout === "block" ? t.display = "block" : (t.display = "flex", t.flexDirection = e.direction || "column", t.alignItems = e.align || "stretch", t.justifyContent = e.justify || "flex-start"), e.layout !== "block" && e.gap !== void 0 && (t.gap =
|
|
2676
|
+
if (e.background && (t.background = e.background), e.layout === "grid" ? (t.display = "grid", t.gridTemplateColumns = e.columns || "1fr 1fr", t.alignItems = e.align || "stretch") : e.layout === "block" ? t.display = "block" : (t.display = "flex", t.flexDirection = e.direction || "column", t.alignItems = e.align || "stretch", t.justifyContent = e.justify || "flex-start"), e.layout !== "block" && e.gap !== void 0 && (t.gap = ja(e.gap) || "0"), e.borderStyle && e.borderStyle !== "none" && (t.border = `${ja(e.borderWidth) || "1px"} ${e.borderStyle} ${e.borderColor || "currentColor"}`), e.position) {
|
|
2300
2677
|
t.position = e.position;
|
|
2301
2678
|
for (let n of [
|
|
2302
2679
|
"left",
|
|
@@ -2304,7 +2681,7 @@ function Zi(e) {
|
|
|
2304
2681
|
"right",
|
|
2305
2682
|
"bottom"
|
|
2306
2683
|
]) {
|
|
2307
|
-
let r =
|
|
2684
|
+
let r = ja(e[n]);
|
|
2308
2685
|
r && (t[n] = r);
|
|
2309
2686
|
}
|
|
2310
2687
|
}
|
|
@@ -2312,7 +2689,7 @@ function Zi(e) {
|
|
|
2312
2689
|
}
|
|
2313
2690
|
//#endregion
|
|
2314
2691
|
//#region src/widgets/components/Container.vue
|
|
2315
|
-
var
|
|
2692
|
+
var Na = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2316
2693
|
__name: "Container",
|
|
2317
2694
|
props: {
|
|
2318
2695
|
width: {},
|
|
@@ -2337,13 +2714,13 @@ var Qi = /*#__PURE__*/ $(/* @__PURE__ */ u({
|
|
|
2337
2714
|
bottom: {}
|
|
2338
2715
|
},
|
|
2339
2716
|
setup(e) {
|
|
2340
|
-
let t = e,
|
|
2341
|
-
return (e, t) => (
|
|
2717
|
+
let t = e, n = r(() => Ma(t));
|
|
2718
|
+
return (e, t) => (y(), o("div", {
|
|
2342
2719
|
class: "container-component",
|
|
2343
|
-
style:
|
|
2344
|
-
}, [
|
|
2720
|
+
style: h(n.value)
|
|
2721
|
+
}, [S(e.$slots, "default", {}, () => [t[0] ||= s("div", { class: "empty" }, "Drop components here", -1)], !0)], 4));
|
|
2345
2722
|
}
|
|
2346
|
-
}), [["__scopeId", "data-v-42c23412"]]),
|
|
2723
|
+
}), [["__scopeId", "data-v-42c23412"]]), Pa = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2347
2724
|
__name: "Card",
|
|
2348
2725
|
props: {
|
|
2349
2726
|
shadow: {
|
|
@@ -2372,32 +2749,32 @@ var Qi = /*#__PURE__*/ $(/* @__PURE__ */ u({
|
|
|
2372
2749
|
bottom: {}
|
|
2373
2750
|
},
|
|
2374
2751
|
setup(e) {
|
|
2375
|
-
let t = e,
|
|
2376
|
-
...
|
|
2752
|
+
let t = e, n = r(() => ({
|
|
2753
|
+
...Ma(t),
|
|
2377
2754
|
boxShadow: t.shadow ? "var(--shadow-soft, 0 8px 24px rgb(0 0 0 / 10%))" : "none"
|
|
2378
2755
|
}));
|
|
2379
|
-
return (e, t) => (
|
|
2756
|
+
return (e, t) => (y(), o("div", {
|
|
2380
2757
|
class: "card-component",
|
|
2381
|
-
style:
|
|
2382
|
-
}, [
|
|
2758
|
+
style: h(n.value)
|
|
2759
|
+
}, [S(e.$slots, "default", {}, () => [t[0] ||= s("div", { class: "empty" }, "Drop components here", -1)], !0)], 4));
|
|
2383
2760
|
}
|
|
2384
|
-
}), [["__scopeId", "data-v-b06c1052"]]),
|
|
2761
|
+
}), [["__scopeId", "data-v-b06c1052"]]), Fa = /* @__PURE__ */ d({
|
|
2385
2762
|
__name: "Spacer",
|
|
2386
2763
|
props: { height: { default: 20 } },
|
|
2387
2764
|
setup(e) {
|
|
2388
|
-
return (t, n) => (
|
|
2765
|
+
return (t, n) => (y(), o("div", {
|
|
2389
2766
|
class: "spacer-component",
|
|
2390
|
-
style:
|
|
2767
|
+
style: h({ height: typeof e.height == "number" ? `${e.height}px` : e.height }),
|
|
2391
2768
|
"aria-hidden": "true"
|
|
2392
2769
|
}, null, 4));
|
|
2393
2770
|
}
|
|
2394
|
-
}),
|
|
2771
|
+
}), Ia = { class: "divider-component" }, La = { key: 0 }, Ra = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2395
2772
|
__name: "Divider",
|
|
2396
2773
|
props: { label: { default: "or" } },
|
|
2397
2774
|
setup(e) {
|
|
2398
|
-
return (t, n) => (
|
|
2775
|
+
return (t, n) => (y(), o("div", Ia, [e.label ? (y(), o("span", La, E(e.label), 1)) : a("", !0)]));
|
|
2399
2776
|
}
|
|
2400
|
-
}), [["__scopeId", "data-v-a6e861b8"]]),
|
|
2777
|
+
}), [["__scopeId", "data-v-a6e861b8"]]), za = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2401
2778
|
__name: "Layout",
|
|
2402
2779
|
props: {
|
|
2403
2780
|
direction: { default: "column" },
|
|
@@ -2405,27 +2782,27 @@ var Qi = /*#__PURE__*/ $(/* @__PURE__ */ u({
|
|
|
2405
2782
|
padding: { default: 12 }
|
|
2406
2783
|
},
|
|
2407
2784
|
setup(e) {
|
|
2408
|
-
let t = e,
|
|
2785
|
+
let t = e, n = r(() => ({
|
|
2409
2786
|
display: "flex",
|
|
2410
2787
|
flexDirection: t.direction,
|
|
2411
2788
|
gap: typeof t.gap == "number" ? `${t.gap}px` : t.gap,
|
|
2412
2789
|
padding: typeof t.padding == "number" ? `${t.padding}px` : t.padding
|
|
2413
2790
|
}));
|
|
2414
|
-
return (e, t) => (
|
|
2791
|
+
return (e, t) => (y(), o("div", {
|
|
2415
2792
|
class: "layout-component",
|
|
2416
|
-
style:
|
|
2417
|
-
}, [
|
|
2793
|
+
style: h(n.value)
|
|
2794
|
+
}, [S(e.$slots, "default", {}, () => [t[0] ||= s("div", { class: "empty" }, "Drop components here", -1)], !0)], 4));
|
|
2418
2795
|
}
|
|
2419
|
-
}), [["__scopeId", "data-v-be209bd5"]]),
|
|
2796
|
+
}), [["__scopeId", "data-v-be209bd5"]]), Ba = { class: "layout-ref-component" }, Va = { class: "badge" }, Ha = { key: 0 }, Ua = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2420
2797
|
__name: "LayoutRef",
|
|
2421
2798
|
props: {
|
|
2422
2799
|
layoutKey: { default: "" },
|
|
2423
2800
|
label: { default: "Layout" }
|
|
2424
2801
|
},
|
|
2425
2802
|
setup(e) {
|
|
2426
|
-
return (t, n) => (
|
|
2803
|
+
return (t, n) => (y(), o("div", Ba, [s("div", Va, [l("◆ " + E(e.label), 1), e.layoutKey ? (y(), o("span", Ha, " · " + E(e.layoutKey), 1)) : a("", !0)]), S(t.$slots, "default", {}, () => [n[0] ||= s("div", { class: "empty" }, "Drop components here", -1)], !0)]));
|
|
2427
2804
|
}
|
|
2428
|
-
}), [["__scopeId", "data-v-d41ee6eb"]]),
|
|
2805
|
+
}), [["__scopeId", "data-v-d41ee6eb"]]), Wa = { class: "field-component" }, Ga = { class: "label" }, Ka = { key: 0 }, qa = ["value", "placeholder"], Ja = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2429
2806
|
__name: "EmailInput",
|
|
2430
2807
|
props: {
|
|
2431
2808
|
label: { default: "Email" },
|
|
@@ -2437,14 +2814,14 @@ var Qi = /*#__PURE__*/ $(/* @__PURE__ */ u({
|
|
|
2437
2814
|
modelValue: {}
|
|
2438
2815
|
},
|
|
2439
2816
|
setup(e) {
|
|
2440
|
-
return (t, n) => (
|
|
2817
|
+
return (t, n) => (y(), o("label", Wa, [s("span", Ga, [l(E(e.label), 1), e.required ? (y(), o("b", Ka, "*")) : a("", !0)]), s("input", {
|
|
2441
2818
|
value: e.modelValue,
|
|
2442
2819
|
type: "email",
|
|
2443
2820
|
placeholder: e.placeholder,
|
|
2444
2821
|
readonly: ""
|
|
2445
|
-
}, null, 8,
|
|
2822
|
+
}, null, 8, qa)]));
|
|
2446
2823
|
}
|
|
2447
|
-
}), [["__scopeId", "data-v-c7f2e797"]]),
|
|
2824
|
+
}), [["__scopeId", "data-v-c7f2e797"]]), Ya = { class: "field-component" }, Xa = { class: "label" }, Za = { key: 0 }, Qa = ["value", "placeholder"], $a = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2448
2825
|
__name: "TextInput",
|
|
2449
2826
|
props: {
|
|
2450
2827
|
label: { default: "Full name" },
|
|
@@ -2456,14 +2833,14 @@ var Qi = /*#__PURE__*/ $(/* @__PURE__ */ u({
|
|
|
2456
2833
|
modelValue: {}
|
|
2457
2834
|
},
|
|
2458
2835
|
setup(e) {
|
|
2459
|
-
return (t, n) => (
|
|
2836
|
+
return (t, n) => (y(), o("label", Ya, [s("span", Xa, [l(E(e.label), 1), e.required ? (y(), o("b", Za, "*")) : a("", !0)]), s("input", {
|
|
2460
2837
|
value: e.modelValue,
|
|
2461
2838
|
type: "text",
|
|
2462
2839
|
placeholder: e.placeholder,
|
|
2463
2840
|
readonly: ""
|
|
2464
|
-
}, null, 8,
|
|
2841
|
+
}, null, 8, Qa)]));
|
|
2465
2842
|
}
|
|
2466
|
-
}), [["__scopeId", "data-v-b5ed7071"]]),
|
|
2843
|
+
}), [["__scopeId", "data-v-b5ed7071"]]), eo = { class: "field-component" }, to = { class: "field-row" }, no = { class: "label" }, ro = { key: 0 }, io = ["value", "placeholder"], ao = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2467
2844
|
__name: "PasswordInput",
|
|
2468
2845
|
props: {
|
|
2469
2846
|
label: { default: "Password" },
|
|
@@ -2479,31 +2856,31 @@ var Qi = /*#__PURE__*/ $(/* @__PURE__ */ u({
|
|
|
2479
2856
|
modelValue: {}
|
|
2480
2857
|
},
|
|
2481
2858
|
setup(e) {
|
|
2482
|
-
return (t, n) => (
|
|
2859
|
+
return (t, n) => (y(), o("label", eo, [s("span", to, [s("span", no, [l(E(e.label), 1), e.required ? (y(), o("b", ro, "*")) : a("", !0)]), e.showForgot ? (y(), o("a", {
|
|
2483
2860
|
key: 0,
|
|
2484
2861
|
href: "#",
|
|
2485
|
-
onClick: n[0] ||=
|
|
2486
|
-
}, "Forgot?")) :
|
|
2862
|
+
onClick: n[0] ||= P(() => {}, ["prevent"])
|
|
2863
|
+
}, "Forgot?")) : a("", !0)]), s("input", {
|
|
2487
2864
|
value: e.modelValue,
|
|
2488
2865
|
type: "password",
|
|
2489
2866
|
placeholder: e.placeholder,
|
|
2490
2867
|
readonly: ""
|
|
2491
|
-
}, null, 8,
|
|
2868
|
+
}, null, 8, io)]));
|
|
2492
2869
|
}
|
|
2493
|
-
}), [["__scopeId", "data-v-ad9dff41"]]),
|
|
2870
|
+
}), [["__scopeId", "data-v-ad9dff41"]]), oo = { class: "field-component" }, so = { class: "label" }, co = { class: "otp-row" }, lo = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2494
2871
|
__name: "OtpInput",
|
|
2495
2872
|
props: {
|
|
2496
2873
|
label: { default: "Verification code" },
|
|
2497
2874
|
digits: { default: 6 }
|
|
2498
2875
|
},
|
|
2499
2876
|
setup(t) {
|
|
2500
|
-
let
|
|
2501
|
-
return (n, r) => (
|
|
2877
|
+
let n = t, i = r(() => Array.from({ length: Math.max(1, n.digits) }));
|
|
2878
|
+
return (n, r) => (y(), o("div", oo, [s("span", so, E(t.label), 1), s("div", co, [(y(!0), o(e, null, x(i.value, (e, t) => (y(), o("span", {
|
|
2502
2879
|
key: t,
|
|
2503
2880
|
class: "otp-box"
|
|
2504
2881
|
}))), 128))])]));
|
|
2505
2882
|
}
|
|
2506
|
-
}), [["__scopeId", "data-v-1914959e"]]),
|
|
2883
|
+
}), [["__scopeId", "data-v-1914959e"]]), uo = { class: "checkbox-component" }, fo = ["checked"], po = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2507
2884
|
__name: "Checkbox",
|
|
2508
2885
|
props: {
|
|
2509
2886
|
label: { default: "Remember me" },
|
|
@@ -2514,35 +2891,35 @@ var Qi = /*#__PURE__*/ $(/* @__PURE__ */ u({
|
|
|
2514
2891
|
modelValue: { type: Boolean }
|
|
2515
2892
|
},
|
|
2516
2893
|
setup(e) {
|
|
2517
|
-
return (t, n) => (
|
|
2894
|
+
return (t, n) => (y(), o("label", uo, [s("input", {
|
|
2518
2895
|
type: "checkbox",
|
|
2519
2896
|
checked: e.modelValue ?? e.checked,
|
|
2520
2897
|
readonly: ""
|
|
2521
|
-
}, null, 8,
|
|
2898
|
+
}, null, 8, fo), s("span", null, E(e.label), 1)]));
|
|
2522
2899
|
}
|
|
2523
|
-
}), [["__scopeId", "data-v-3d492d6d"]]),
|
|
2900
|
+
}), [["__scopeId", "data-v-3d492d6d"]]), mo = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2524
2901
|
__name: "SubmitButton",
|
|
2525
2902
|
props: {
|
|
2526
2903
|
text: { default: "Sign in" },
|
|
2527
2904
|
style: { default: "primary" }
|
|
2528
2905
|
},
|
|
2529
2906
|
setup(e) {
|
|
2530
|
-
return (t, n) => (
|
|
2907
|
+
return (t, n) => (y(), o("button", {
|
|
2531
2908
|
type: "button",
|
|
2532
|
-
class:
|
|
2533
|
-
},
|
|
2909
|
+
class: m(["submit-button", e.style])
|
|
2910
|
+
}, E(e.text), 3));
|
|
2534
2911
|
}
|
|
2535
|
-
}), [["__scopeId", "data-v-9807299a"]]),
|
|
2912
|
+
}), [["__scopeId", "data-v-9807299a"]]), ho = {
|
|
2536
2913
|
type: "button",
|
|
2537
2914
|
class: "social-button"
|
|
2538
|
-
},
|
|
2915
|
+
}, go = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2539
2916
|
__name: "SocialButton",
|
|
2540
2917
|
props: {
|
|
2541
2918
|
provider: { default: "google" },
|
|
2542
2919
|
text: { default: "Continue with Google" }
|
|
2543
2920
|
},
|
|
2544
2921
|
setup(e) {
|
|
2545
|
-
let t = e,
|
|
2922
|
+
let t = e, n = {
|
|
2546
2923
|
google: {
|
|
2547
2924
|
letter: "G",
|
|
2548
2925
|
color: "#4285f4"
|
|
@@ -2559,17 +2936,17 @@ var Qi = /*#__PURE__*/ $(/* @__PURE__ */ u({
|
|
|
2559
2936
|
letter: "●",
|
|
2560
2937
|
color: "#111"
|
|
2561
2938
|
}
|
|
2562
|
-
}, i =
|
|
2563
|
-
return (t, n) => (
|
|
2939
|
+
}, i = r(() => n[t.provider]);
|
|
2940
|
+
return (t, n) => (y(), o("button", ho, [s("span", {
|
|
2564
2941
|
class: "social-icon",
|
|
2565
|
-
style:
|
|
2566
|
-
},
|
|
2942
|
+
style: h({ background: i.value.color })
|
|
2943
|
+
}, E(i.value.letter), 5), l(E(e.text), 1)]));
|
|
2567
2944
|
}
|
|
2568
|
-
}), [["__scopeId", "data-v-3045616f"]]),
|
|
2945
|
+
}), [["__scopeId", "data-v-3045616f"]]), _o = [
|
|
2569
2946
|
"href",
|
|
2570
2947
|
"target",
|
|
2571
2948
|
"rel"
|
|
2572
|
-
],
|
|
2949
|
+
], vo = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2573
2950
|
__name: "TextLink",
|
|
2574
2951
|
props: {
|
|
2575
2952
|
text: { default: "Forgot password?" },
|
|
@@ -2577,37 +2954,37 @@ var Qi = /*#__PURE__*/ $(/* @__PURE__ */ u({
|
|
|
2577
2954
|
target: { default: "_self" }
|
|
2578
2955
|
},
|
|
2579
2956
|
setup(e) {
|
|
2580
|
-
return (t, n) => (
|
|
2957
|
+
return (t, n) => (y(), o("a", {
|
|
2581
2958
|
class: "text-link",
|
|
2582
2959
|
href: e.href,
|
|
2583
2960
|
target: e.target,
|
|
2584
2961
|
rel: e.target === "_blank" ? "noopener noreferrer" : void 0
|
|
2585
|
-
},
|
|
2962
|
+
}, E(e.text), 9, _o));
|
|
2586
2963
|
}
|
|
2587
|
-
}), [["__scopeId", "data-v-8d18edb1"]]),
|
|
2964
|
+
}), [["__scopeId", "data-v-8d18edb1"]]), yo = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2588
2965
|
__name: "Heading",
|
|
2589
2966
|
props: {
|
|
2590
2967
|
text: { default: "Welcome back" },
|
|
2591
2968
|
size: { default: "lg" }
|
|
2592
2969
|
},
|
|
2593
2970
|
setup(e) {
|
|
2594
|
-
let t = e,
|
|
2595
|
-
return (t,
|
|
2596
|
-
default:
|
|
2971
|
+
let t = e, n = r(() => t.size === "xl" ? "h1" : t.size === "lg" ? "h2" : t.size === "md" ? "h3" : "h4");
|
|
2972
|
+
return (t, r) => (y(), i(w(n.value), { class: m(["heading-component", e.size]) }, {
|
|
2973
|
+
default: M(() => [l(E(e.text), 1)]),
|
|
2597
2974
|
_: 1
|
|
2598
2975
|
}, 8, ["class"]));
|
|
2599
2976
|
}
|
|
2600
|
-
}), [["__scopeId", "data-v-1c78b10f"]]),
|
|
2977
|
+
}), [["__scopeId", "data-v-1c78b10f"]]), bo = { class: "text-component" }, xo = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2601
2978
|
__name: "Text",
|
|
2602
2979
|
props: { text: { default: "Enter your details to continue." } },
|
|
2603
2980
|
setup(e) {
|
|
2604
|
-
return (t, n) => (
|
|
2981
|
+
return (t, n) => (y(), o("p", bo, E(e.text), 1));
|
|
2605
2982
|
}
|
|
2606
|
-
}), [["__scopeId", "data-v-3be0c0c9"]]),
|
|
2983
|
+
}), [["__scopeId", "data-v-3be0c0c9"]]), So = [
|
|
2607
2984
|
"href",
|
|
2608
2985
|
"target",
|
|
2609
2986
|
"rel"
|
|
2610
|
-
],
|
|
2987
|
+
], Co = ["src", "alt"], wo = { key: 1 }, To = ["src", "alt"], Eo = { key: 1 }, Do = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2611
2988
|
__name: "Image",
|
|
2612
2989
|
props: {
|
|
2613
2990
|
src: { default: "" },
|
|
@@ -2619,63 +2996,63 @@ var Qi = /*#__PURE__*/ $(/* @__PURE__ */ u({
|
|
|
2619
2996
|
hrefTarget: { default: "_self" }
|
|
2620
2997
|
},
|
|
2621
2998
|
setup(e) {
|
|
2622
|
-
let t = e,
|
|
2623
|
-
width:
|
|
2999
|
+
let t = e, n = (e) => typeof e == "number" || /^-?\d+(?:\.\d+)?$/.test(String(e)) ? `${e}px` : String(e), i = r(() => ({
|
|
3000
|
+
width: n(t.width),
|
|
2624
3001
|
maxWidth: "100%",
|
|
2625
|
-
height:
|
|
2626
|
-
borderRadius:
|
|
3002
|
+
height: n(t.height),
|
|
3003
|
+
borderRadius: n(t.radius)
|
|
2627
3004
|
}));
|
|
2628
|
-
return (t, n) => e.href ? (
|
|
3005
|
+
return (t, n) => e.href ? (y(), o("a", {
|
|
2629
3006
|
key: 0,
|
|
2630
3007
|
class: "image-link",
|
|
2631
3008
|
href: e.href,
|
|
2632
3009
|
target: e.hrefTarget,
|
|
2633
3010
|
rel: e.hrefTarget === "_blank" ? "noopener noreferrer" : void 0
|
|
2634
|
-
}, [
|
|
3011
|
+
}, [s("div", {
|
|
2635
3012
|
class: "image-component",
|
|
2636
|
-
style:
|
|
2637
|
-
}, [e.src ? (
|
|
3013
|
+
style: h(i.value)
|
|
3014
|
+
}, [e.src ? (y(), o("img", {
|
|
2638
3015
|
key: 0,
|
|
2639
3016
|
src: e.src,
|
|
2640
3017
|
alt: e.alt
|
|
2641
|
-
}, null, 8,
|
|
3018
|
+
}, null, 8, Co)) : (y(), o("span", wo, E(e.alt), 1))], 4)], 8, So)) : (y(), o("div", {
|
|
2642
3019
|
key: 1,
|
|
2643
3020
|
class: "image-component",
|
|
2644
|
-
style:
|
|
2645
|
-
}, [e.src ? (
|
|
3021
|
+
style: h(i.value)
|
|
3022
|
+
}, [e.src ? (y(), o("img", {
|
|
2646
3023
|
key: 0,
|
|
2647
3024
|
src: e.src,
|
|
2648
3025
|
alt: e.alt
|
|
2649
|
-
}, null, 8,
|
|
3026
|
+
}, null, 8, To)) : (y(), o("span", Eo, E(e.alt), 1))], 4));
|
|
2650
3027
|
}
|
|
2651
|
-
}), [["__scopeId", "data-v-ecc98881"]]),
|
|
3028
|
+
}), [["__scopeId", "data-v-ecc98881"]]), Oo = { "aria-hidden": "true" }, ko = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2652
3029
|
__name: "Alert",
|
|
2653
3030
|
props: {
|
|
2654
3031
|
tone: { default: "info" },
|
|
2655
3032
|
text: { default: "Check your inbox for the reset link." }
|
|
2656
3033
|
},
|
|
2657
3034
|
setup(e) {
|
|
2658
|
-
return (t, n) => (
|
|
3035
|
+
return (t, n) => (y(), o("div", { class: m(["alert-component", e.tone]) }, [s("span", Oo, E(e.tone === "error" ? "⚠" : e.tone === "success" ? "✓" : "ⓘ"), 1), s("span", null, E(e.text), 1)], 2));
|
|
2659
3036
|
}
|
|
2660
|
-
}), [["__scopeId", "data-v-bf171873"]]),
|
|
3037
|
+
}), [["__scopeId", "data-v-bf171873"]]), Ao = { class: "content-component" }, jo = { class: "empty" }, Mo = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2661
3038
|
__name: "Content",
|
|
2662
3039
|
props: { note: { default: "Page content goes here" } },
|
|
2663
3040
|
setup(e) {
|
|
2664
|
-
return (t, n) => (
|
|
3041
|
+
return (t, n) => (y(), o("div", Ao, [S(t.$slots, "default", {}, () => [s("div", jo, E(e.note), 1)], !0)]));
|
|
2665
3042
|
}
|
|
2666
|
-
}), [["__scopeId", "data-v-1c551f9d"]]),
|
|
3043
|
+
}), [["__scopeId", "data-v-1c551f9d"]]), No = { class: "consent-card" }, Po = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2667
3044
|
__name: "ConsentCard",
|
|
2668
3045
|
props: {
|
|
2669
3046
|
appName: { default: "Acme Analytics" },
|
|
2670
3047
|
requestedBy: { default: "acme.io" }
|
|
2671
3048
|
},
|
|
2672
3049
|
setup(e) {
|
|
2673
|
-
return (t, n) => (
|
|
3050
|
+
return (t, n) => (y(), o("div", No, [n[0] ||= s("span", {
|
|
2674
3051
|
class: "icon",
|
|
2675
3052
|
"aria-hidden": "true"
|
|
2676
|
-
}, "✓", -1),
|
|
3053
|
+
}, "✓", -1), s("div", null, [s("strong", null, E(e.appName), 1), s("span", null, "wants to access your account · " + E(e.requestedBy), 1)])]));
|
|
2677
3054
|
}
|
|
2678
|
-
}), [["__scopeId", "data-v-9008f821"]]),
|
|
3055
|
+
}), [["__scopeId", "data-v-9008f821"]]), Fo = { class: "scope-list" }, Io = /*#__PURE__*/ $(/* @__PURE__ */ d({
|
|
2679
3056
|
__name: "ScopeList",
|
|
2680
3057
|
props: { scopes: { default: () => [
|
|
2681
3058
|
"Read your profile",
|
|
@@ -2683,12 +3060,12 @@ var Qi = /*#__PURE__*/ $(/* @__PURE__ */ u({
|
|
|
2683
3060
|
"Access your workspace list"
|
|
2684
3061
|
] } },
|
|
2685
3062
|
setup(t) {
|
|
2686
|
-
let
|
|
2687
|
-
return (t, n) => (
|
|
3063
|
+
let n = t, i = r(() => Array.isArray(n.scopes) ? n.scopes : n.scopes.split("\n").filter(Boolean));
|
|
3064
|
+
return (t, n) => (y(), o("div", Fo, [(y(!0), o(e, null, x(i.value, (e) => (y(), o("div", {
|
|
2688
3065
|
key: e,
|
|
2689
3066
|
class: "scope"
|
|
2690
|
-
}, [n[0] ||=
|
|
3067
|
+
}, [n[0] ||= s("span", { "aria-hidden": "true" }, "✓", -1), s("span", null, E(e), 1)]))), 128))]));
|
|
2691
3068
|
}
|
|
2692
3069
|
}), [["__scopeId", "data-v-cdebac9d"]]);
|
|
2693
3070
|
//#endregion
|
|
2694
|
-
export {
|
|
3071
|
+
export { ko as Alert, Pa as Card, po as Checkbox, Po as ConsentCard, Na as Container, Mo as Content, Oa as Designer, Ra as Divider, Ja as EmailInput, yo as Heading, Do as Image, za as Layout, Ua as LayoutRef, lo as OtpInput, ao as PasswordInput, Io as ScopeList, go as SocialButton, Fa as Spacer, mo as SubmitButton, xo as Text, $a as TextInput, vo as TextLink, Xr as TextScroller, Ca as ThemeSidebar, ka as useChecklistStore, Aa as useScreensStore, Ki as useTranslationStore };
|