@m3ui-vue/m3ui-vue 0.8.7 → 0.8.8
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/{MMenuItem-DmrsQrK7.js → MMenuItem-5xojJYAL.js} +2 -2
- package/dist/{MMenuItem-DmrsQrK7.js.map → MMenuItem-5xojJYAL.js.map} +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/composables/useLocale.d.ts +4 -0
- package/dist/locales/index.js +35 -7
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +740 -729
- package/dist/m3ui.js.map +1 -1
- package/dist/rich-text-editor.js +2 -2
- package/dist/styles.css +1 -1
- package/dist/{useLocale-Bircp823.js → useLocale-D3ZWZ8jY.js} +6 -2
- package/dist/useLocale-D3ZWZ8jY.js.map +1 -0
- package/package.json +1 -1
- package/src/__tests__/MPagination.test.ts +37 -0
- package/src/__tests__/MPullToRefresh.test.ts +39 -0
- package/src/components/MNavigationRail.vue +5 -2
- package/src/components/MPagination.vue +8 -5
- package/src/components/MPullToRefresh.vue +13 -1
- package/src/composables/useLocale.ts +10 -0
- package/src/locales/de.ts +5 -0
- package/src/locales/es.ts +5 -0
- package/src/locales/fr.ts +5 -0
- package/src/locales/ja.ts +5 -0
- package/src/locales/ko.ts +5 -0
- package/src/locales/pt.ts +5 -0
- package/src/locales/zh.ts +5 -0
- package/dist/useLocale-Bircp823.js.map +0 -1
package/dist/m3ui.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./useLocale-
|
|
1
|
+
import { n as e, r as t, t as n } from "./useLocale-D3ZWZ8jY.js";
|
|
2
2
|
import { t as r } from "./MIcon-CaEooCmZ.js";
|
|
3
|
-
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f, u as p } from "./MMenuItem-
|
|
3
|
+
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f, u as p } from "./MMenuItem-5xojJYAL.js";
|
|
4
4
|
import { t as m } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
5
5
|
import { Fragment as h, Teleport as g, Transition as _, TransitionGroup as v, computed as y, createApp as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, defineComponent as O, getCurrentInstance as k, h as A, inject as j, mergeProps as M, nextTick as N, normalizeClass as P, normalizeStyle as F, onBeforeUnmount as I, onBeforeUpdate as L, onMounted as R, onUnmounted as z, onUpdated as B, openBlock as V, provide as H, reactive as ee, ref as U, renderList as W, renderSlot as G, resolveComponent as te, resolveDynamicComponent as K, shallowRef as ne, toDisplayString as q, toValue as re, unref as J, useAttrs as ie, useId as ae, useSlots as oe, vModelText as se, vShow as ce, watch as Y, watchEffect as le, withCtx as X, withDirectives as ue, withKeys as de, withModifiers as Z } from "vue";
|
|
6
6
|
//#region src/composables/useColorPalette.ts
|
|
@@ -3227,22 +3227,26 @@ var Ln = {
|
|
|
3227
3227
|
total: {}
|
|
3228
3228
|
},
|
|
3229
3229
|
emits: ["update:page"],
|
|
3230
|
-
setup(e, { emit:
|
|
3231
|
-
let
|
|
3232
|
-
|
|
3233
|
-
|
|
3230
|
+
setup(e, { emit: n }) {
|
|
3231
|
+
let r = e, i = n, a = t(), o = y(() => Math.max(1, Math.ceil(r.total / r.perPage))), s = y(() => {
|
|
3232
|
+
if (r.total === 0) return a.noResults;
|
|
3233
|
+
let e = (r.page - 1) * r.perPage + 1, t = Math.min(r.page * r.perPage, r.total);
|
|
3234
|
+
return a.paginationRange.replace("{from}", String(e)).replace("{to}", String(t)).replace("{total}", String(r.total));
|
|
3235
|
+
}), c = y(() => a.paginationPage.replace("{page}", String(r.page)).replace("{pages}", String(o.value)));
|
|
3236
|
+
return (t, n) => (V(), C("div", Oi, [w("span", null, q(s.value), 1), w("div", ki, [
|
|
3237
|
+
w("span", null, q(c.value), 1),
|
|
3234
3238
|
D(d, {
|
|
3235
3239
|
icon: "chevron_left",
|
|
3236
|
-
label:
|
|
3240
|
+
label: J(a).previousPage,
|
|
3237
3241
|
disabled: e.page <= 1,
|
|
3238
|
-
onClick: n[0] ||= (t) =>
|
|
3239
|
-
}, null, 8, ["disabled"]),
|
|
3242
|
+
onClick: n[0] ||= (t) => i("update:page", e.page - 1)
|
|
3243
|
+
}, null, 8, ["label", "disabled"]),
|
|
3240
3244
|
D(d, {
|
|
3241
3245
|
icon: "chevron_right",
|
|
3242
|
-
label:
|
|
3243
|
-
disabled: e.page >=
|
|
3244
|
-
onClick: n[1] ||= (t) =>
|
|
3245
|
-
}, null, 8, ["disabled"])
|
|
3246
|
+
label: J(a).nextPage,
|
|
3247
|
+
disabled: e.page >= o.value,
|
|
3248
|
+
onClick: n[1] ||= (t) => i("update:page", e.page + 1)
|
|
3249
|
+
}, null, 8, ["label", "disabled"])
|
|
3246
3250
|
])]));
|
|
3247
3251
|
}
|
|
3248
3252
|
}), ji = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Mi = {
|
|
@@ -8906,10 +8910,10 @@ function ku() {
|
|
|
8906
8910
|
var Au = {
|
|
8907
8911
|
key: 0,
|
|
8908
8912
|
class: "flex shrink-0 flex-col items-start gap-2 px-3 pt-3 pb-2"
|
|
8909
|
-
}, ju = { class: "flex h-10 w-14 shrink-0 items-center justify-center" }, Mu = { class: "wnr-panel fixed inset-y-0 left-0 z-10 flex flex-col overflow-hidden rounded-r-lg bg-surface-container shadow-elevation-2" }, Nu = {
|
|
8913
|
+
}, ju = { class: "flex min-h-10 min-w-14 shrink-0 items-center justify-center" }, Mu = { class: "wnr-panel fixed inset-y-0 left-0 z-10 flex flex-col overflow-hidden rounded-r-lg bg-surface-container shadow-elevation-2" }, Nu = {
|
|
8910
8914
|
key: 0,
|
|
8911
8915
|
class: "flex shrink-0 flex-col items-start gap-2 px-3 pt-3 pb-2"
|
|
8912
|
-
}, Pu = { class: "flex h-10 w-14 shrink-0 items-center justify-center" }, Fu = 220, Iu = .9, Lu = 1400, Ru = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
8916
|
+
}, Pu = { class: "flex min-h-10 min-w-14 shrink-0 items-center justify-center" }, Fu = 220, Iu = .9, Lu = 1400, Ru = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
8913
8917
|
__name: "MNavigationRail",
|
|
8914
8918
|
props: {
|
|
8915
8919
|
modelValue: {},
|
|
@@ -9055,7 +9059,7 @@ var Au = {
|
|
|
9055
9059
|
_: 3
|
|
9056
9060
|
})])) : S("", !0)], 64));
|
|
9057
9061
|
}
|
|
9058
|
-
}), [["__scopeId", "data-v-
|
|
9062
|
+
}), [["__scopeId", "data-v-fd27bcb3"]]), zu = { class: "text-label-medium font-medium" }, Bu = "text-on-surface-variant/38", Vu = /* @__PURE__ */ O({
|
|
9059
9063
|
__name: "MShortNavigationBar",
|
|
9060
9064
|
props: {
|
|
9061
9065
|
modelValue: {},
|
|
@@ -9525,7 +9529,7 @@ var Au = {
|
|
|
9525
9529
|
onFocus: (e) => p(n)
|
|
9526
9530
|
}, null, 42, ad), i.value.has(n) ? (V(), C("span", od, q(e.separator), 1)) : S("", !0)], 64))), 128))], 8, id), e.error && e.errorLabel ? (V(), C("p", sd, q(e.errorLabel), 1)) : e.hint ? (V(), C("p", cd, q(e.hint), 1)) : S("", !0)]));
|
|
9527
9531
|
}
|
|
9528
|
-
}), dd = { class: "relative overflow-hidden" }, fd = 1.8, pd = .45, md = 12, hd = /* @__PURE__ */ O({
|
|
9532
|
+
}), dd = { class: "relative overflow-hidden" }, fd = 1.8, pd = .45, md = 12, hd = 4, gd = /* @__PURE__ */ O({
|
|
9529
9533
|
__name: "MPullToRefresh",
|
|
9530
9534
|
props: {
|
|
9531
9535
|
refreshing: {
|
|
@@ -9577,48 +9581,55 @@ var Au = {
|
|
|
9577
9581
|
function y() {
|
|
9578
9582
|
l && (l = !1, o.value = !1, u >= n.threshold ? (d = !0, m(!0), r("refresh")) : h(!0), u = 0);
|
|
9579
9583
|
}
|
|
9580
|
-
|
|
9581
|
-
e.pointerType !== "touch" && e.button === 0 && g() && (s = e.pointerId, _(e.clientY), i.value.setPointerCapture(e.pointerId));
|
|
9582
|
-
}
|
|
9584
|
+
let b = !1;
|
|
9583
9585
|
function x(e) {
|
|
9584
|
-
|
|
9586
|
+
e.pointerType !== "touch" && e.button === 0 && g() && (s = e.pointerId, b = !1, _(e.clientY));
|
|
9585
9587
|
}
|
|
9586
9588
|
function S(e) {
|
|
9589
|
+
if (l && e.pointerId === s) {
|
|
9590
|
+
if (!b) {
|
|
9591
|
+
if (e.clientY - c < hd) return;
|
|
9592
|
+
b = !0, i.value.setPointerCapture(e.pointerId);
|
|
9593
|
+
}
|
|
9594
|
+
v(e.clientY);
|
|
9595
|
+
}
|
|
9596
|
+
}
|
|
9597
|
+
function T(e) {
|
|
9587
9598
|
l && e.pointerId === s && (s = null, i.value?.hasPointerCapture(e.pointerId) && i.value.releasePointerCapture(e.pointerId), y());
|
|
9588
9599
|
}
|
|
9589
|
-
let
|
|
9590
|
-
function
|
|
9600
|
+
let E = null, O = !1;
|
|
9601
|
+
function k(e) {
|
|
9591
9602
|
if (e.touches.length !== 1 || !g()) return;
|
|
9592
9603
|
let t = e.touches[0];
|
|
9593
|
-
|
|
9604
|
+
E = t.identifier, O = !1, _(t.clientY);
|
|
9594
9605
|
}
|
|
9595
|
-
function
|
|
9596
|
-
if (!l ||
|
|
9597
|
-
let t = Array.from(e.changedTouches).find((e) => e.identifier ===
|
|
9606
|
+
function A(e) {
|
|
9607
|
+
if (!l || E === null) return;
|
|
9608
|
+
let t = Array.from(e.changedTouches).find((e) => e.identifier === E);
|
|
9598
9609
|
if (t) {
|
|
9599
|
-
if (!
|
|
9610
|
+
if (!O) {
|
|
9600
9611
|
if (t.clientY <= c || (i.value?.scrollTop ?? 0) > 0) {
|
|
9601
|
-
t.clientY < c && (l = !1,
|
|
9612
|
+
t.clientY < c && (l = !1, E = null);
|
|
9602
9613
|
return;
|
|
9603
9614
|
}
|
|
9604
|
-
|
|
9615
|
+
O = !0;
|
|
9605
9616
|
}
|
|
9606
9617
|
e.cancelable && e.preventDefault(), v(t.clientY);
|
|
9607
9618
|
}
|
|
9608
9619
|
}
|
|
9609
|
-
function
|
|
9610
|
-
|
|
9620
|
+
function j(e) {
|
|
9621
|
+
E !== null && Array.from(e.changedTouches).some((e) => e.identifier === E) && (E = null, O = !1, y());
|
|
9611
9622
|
}
|
|
9612
9623
|
return Y(() => n.refreshing, (e) => {
|
|
9613
9624
|
e ? d || (d = !0, m(!0)) : d && (d = !1, h(!0));
|
|
9614
9625
|
}), R(() => {
|
|
9615
9626
|
h(!1);
|
|
9616
9627
|
let e = i.value;
|
|
9617
|
-
e && (e.addEventListener("touchstart",
|
|
9628
|
+
e && (e.addEventListener("touchstart", k, { passive: !0 }), e.addEventListener("touchmove", A, { passive: !1 }), e.addEventListener("touchend", j), e.addEventListener("touchcancel", j));
|
|
9618
9629
|
}), I(() => {
|
|
9619
9630
|
l = !1;
|
|
9620
9631
|
let e = i.value;
|
|
9621
|
-
e && (e.removeEventListener("touchstart",
|
|
9632
|
+
e && (e.removeEventListener("touchstart", k), e.removeEventListener("touchmove", A), e.removeEventListener("touchend", j), e.removeEventListener("touchcancel", j));
|
|
9622
9633
|
}), (t, n) => (V(), C("div", dd, [w("div", {
|
|
9623
9634
|
ref_key: "indicatorEl",
|
|
9624
9635
|
ref: a,
|
|
@@ -9631,19 +9642,19 @@ var Au = {
|
|
|
9631
9642
|
ref_key: "scrollEl",
|
|
9632
9643
|
ref: i,
|
|
9633
9644
|
class: P(["h-full overflow-y-auto overscroll-y-contain", { "select-none": o.value }]),
|
|
9634
|
-
onPointerdown:
|
|
9635
|
-
onPointermove:
|
|
9636
|
-
onPointerup:
|
|
9637
|
-
onPointercancel:
|
|
9645
|
+
onPointerdown: x,
|
|
9646
|
+
onPointermove: S,
|
|
9647
|
+
onPointerup: T,
|
|
9648
|
+
onPointercancel: T
|
|
9638
9649
|
}, [G(t.$slots, "default")], 34)]));
|
|
9639
9650
|
}
|
|
9640
|
-
}),
|
|
9651
|
+
}), _d = { class: "flex flex-col gap-1" }, vd = {
|
|
9641
9652
|
key: 0,
|
|
9642
9653
|
class: "text-label-small text-on-surface-variant"
|
|
9643
|
-
},
|
|
9654
|
+
}, yd = ["aria-valuenow"], bd = ["aria-valuenow"], xd = ["height", "viewBox"], Sd = ["d", "stroke-width"], Cd = {
|
|
9644
9655
|
key: 1,
|
|
9645
9656
|
class: "absolute inset-0 overflow-hidden rounded-full"
|
|
9646
|
-
},
|
|
9657
|
+
}, wd = ["height", "viewBox"], Td = ["d", "stroke-width"], Ed = 20, Dd = 2.5, Od = 2, kd = 4, Ad = 10, jd = 130, Md = /* @__PURE__ */ O({
|
|
9647
9658
|
__name: "MProgressBar",
|
|
9648
9659
|
props: {
|
|
9649
9660
|
value: {},
|
|
@@ -9675,10 +9686,10 @@ var Au = {
|
|
|
9675
9686
|
track: "bg-error-container",
|
|
9676
9687
|
text: "text-error"
|
|
9677
9688
|
}
|
|
9678
|
-
}, a = y(() => t.thickness ?? 4), o = y(() =>
|
|
9689
|
+
}, a = y(() => t.thickness ?? 4), o = y(() => Dd + a.value / 2), s = y(() => 2 * Dd + a.value), c = 1600, l = (() => {
|
|
9679
9690
|
let e = "";
|
|
9680
|
-
for (let t = 0; t <= c; t +=
|
|
9681
|
-
let n = 4 -
|
|
9691
|
+
for (let t = 0; t <= c; t += Od) {
|
|
9692
|
+
let n = 4 - Dd * Math.sin(t / Ed * Math.PI * 2);
|
|
9682
9693
|
e += `${t === 0 ? "M" : "L"}${t},${n.toFixed(2)} `;
|
|
9683
9694
|
}
|
|
9684
9695
|
return e.trim();
|
|
@@ -9706,8 +9717,8 @@ var Au = {
|
|
|
9706
9717
|
let v = U(null), b = U(null), x = U(""), T = null, E = 0, D = 2 * Math.PI / 800;
|
|
9707
9718
|
function O(e, t) {
|
|
9708
9719
|
let n = o.value, r = [];
|
|
9709
|
-
for (let i = 0; i <= c; i +=
|
|
9710
|
-
let a = n -
|
|
9720
|
+
for (let i = 0; i <= c; i += Od) {
|
|
9721
|
+
let a = n - Dd * e * Math.sin(i / Ed * Math.PI * 2 + t);
|
|
9711
9722
|
r.push(`${i === 0 ? "M" : "L"}${i},${a.toFixed(2)}`);
|
|
9712
9723
|
}
|
|
9713
9724
|
return r.join(" ");
|
|
@@ -9715,23 +9726,23 @@ var Au = {
|
|
|
9715
9726
|
function k(e) {
|
|
9716
9727
|
let t = T === null ? 0 : e - T;
|
|
9717
9728
|
if (T = e, f -= t * D, t > 0) {
|
|
9718
|
-
let e = 1 - Math.exp(-t /
|
|
9729
|
+
let e = 1 - Math.exp(-t / jd);
|
|
9719
9730
|
u += (r.value - u) * e;
|
|
9720
9731
|
}
|
|
9721
9732
|
d = _(p, e);
|
|
9722
|
-
let n =
|
|
9733
|
+
let n = kd * d, i = u;
|
|
9723
9734
|
v.value && (v.value.style.clipPath = `inset(0 ${(100 - i).toFixed(3)}% 0 0)`), b.value && (b.value.style.left = `calc(${i.toFixed(3)}% + ${n.toFixed(2)}px)`, b.value.style.height = `${a.value}px`), x.value = O(d, f), E = requestAnimationFrame(k);
|
|
9724
9735
|
}
|
|
9725
9736
|
Y(r, (e, r) => {
|
|
9726
9737
|
if (t.variant !== "wavy" || n.value) return;
|
|
9727
9738
|
let i = performance.now();
|
|
9728
|
-
r <=
|
|
9739
|
+
r <= Ad && e > Ad && e < 100 ? g(p, d, 1, i) : r > Ad && e <= Ad || e === 100 ? g(p, d, 0, i) : r === 100 && e > Ad && g(p, d, 1, i);
|
|
9729
9740
|
});
|
|
9730
9741
|
function A() {
|
|
9731
9742
|
u = r.value;
|
|
9732
9743
|
let e = r.value;
|
|
9733
|
-
d = +(e >
|
|
9734
|
-
let t =
|
|
9744
|
+
d = +(e > Ad && e < 100), p.to = d, p.t0 = -1;
|
|
9745
|
+
let t = kd * d;
|
|
9735
9746
|
v.value && (v.value.style.clipPath = `inset(0 ${(100 - e).toFixed(3)}% 0 0)`), b.value && (b.value.style.left = `calc(${e.toFixed(3)}% + ${t.toFixed(2)}px)`, b.value.style.height = `${a.value}px`), x.value = O(d, f), E ||= requestAnimationFrame(k);
|
|
9736
9747
|
}
|
|
9737
9748
|
function j() {
|
|
@@ -9743,7 +9754,7 @@ var Au = {
|
|
|
9743
9754
|
e === "wavy" && !n.value ? (await N(), A()) : j();
|
|
9744
9755
|
}), Y(n, async (e) => {
|
|
9745
9756
|
!e && t.variant === "wavy" ? (await N(), A()) : j();
|
|
9746
|
-
}), (t, o) => (V(), C("div",
|
|
9757
|
+
}), (t, o) => (V(), C("div", _d, [e.label ? (V(), C("span", vd, q(e.label), 1)) : S("", !0), e.variant === "linear" ? (V(), C("div", {
|
|
9747
9758
|
key: 1,
|
|
9748
9759
|
class: P(["relative w-full overflow-hidden rounded-full", n.value ? i[e.color].track : ""]),
|
|
9749
9760
|
style: F({ height: `${a.value}px` }),
|
|
@@ -9760,7 +9771,7 @@ var Au = {
|
|
|
9760
9771
|
}, null, 6), w("div", {
|
|
9761
9772
|
class: P(["absolute inset-y-0 right-0 rounded-full transition-[left] duration-300 ease-in-out", i[e.color].track]),
|
|
9762
9773
|
style: F({ left: `calc(${r.value}% + 4px)` })
|
|
9763
|
-
}, null, 6)], 64))], 14,
|
|
9774
|
+
}, null, 6)], 64))], 14, yd)) : (V(), C("div", {
|
|
9764
9775
|
key: 2,
|
|
9765
9776
|
class: "relative w-full overflow-visible",
|
|
9766
9777
|
style: F({ height: `${s.value}px` }),
|
|
@@ -9768,7 +9779,7 @@ var Au = {
|
|
|
9768
9779
|
"aria-valuenow": n.value ? void 0 : r.value,
|
|
9769
9780
|
"aria-valuemin": "0",
|
|
9770
9781
|
"aria-valuemax": "100"
|
|
9771
|
-
}, [n.value ? (V(), C("div",
|
|
9782
|
+
}, [n.value ? (V(), C("div", Cd, [w("div", {
|
|
9772
9783
|
class: P(["absolute top-0 left-0 h-full animate-[m3-wave-flow_0.9s_linear_infinite]", i[e.color].text]),
|
|
9773
9784
|
style: F({ width: `${c}px` })
|
|
9774
9785
|
}, [(V(), C("svg", {
|
|
@@ -9783,7 +9794,7 @@ var Au = {
|
|
|
9783
9794
|
stroke: "currentColor",
|
|
9784
9795
|
"stroke-width": a.value,
|
|
9785
9796
|
"stroke-linecap": "round"
|
|
9786
|
-
}, null, 8,
|
|
9797
|
+
}, null, 8, Td)], 8, wd))], 6)])) : (V(), C(h, { key: 0 }, [
|
|
9787
9798
|
w("div", {
|
|
9788
9799
|
ref_key: "waveClipEl",
|
|
9789
9800
|
ref: v,
|
|
@@ -9800,7 +9811,7 @@ var Au = {
|
|
|
9800
9811
|
stroke: "currentColor",
|
|
9801
9812
|
"stroke-width": a.value,
|
|
9802
9813
|
"stroke-linecap": "round"
|
|
9803
|
-
}, null, 8,
|
|
9814
|
+
}, null, 8, Sd)], 10, xd))], 512),
|
|
9804
9815
|
w("div", {
|
|
9805
9816
|
ref_key: "trackEl",
|
|
9806
9817
|
ref: b,
|
|
@@ -9821,23 +9832,23 @@ var Au = {
|
|
|
9821
9832
|
height: `${a.value}px`
|
|
9822
9833
|
})
|
|
9823
9834
|
}, null, 6)
|
|
9824
|
-
], 64))], 12,
|
|
9835
|
+
], 64))], 12, bd))]));
|
|
9825
9836
|
}
|
|
9826
|
-
}),
|
|
9837
|
+
}), Nd = { class: "inline-flex flex-col items-center gap-1" }, Pd = {
|
|
9827
9838
|
key: 0,
|
|
9828
9839
|
class: "text-label-small text-on-surface-variant"
|
|
9829
|
-
},
|
|
9840
|
+
}, Fd = { class: "relative" }, Id = [
|
|
9830
9841
|
"width",
|
|
9831
9842
|
"height",
|
|
9832
9843
|
"aria-valuenow"
|
|
9833
|
-
],
|
|
9844
|
+
], Ld = ["stroke-width"], Rd = ["stroke-width"], zd = ["id"], Bd = ["stroke-width"], Vd = ["stroke-width"], Hd = [
|
|
9834
9845
|
"d",
|
|
9835
9846
|
"stroke-width",
|
|
9836
9847
|
"mask"
|
|
9837
|
-
],
|
|
9848
|
+
], Ud = ["stroke-width"], Wd = ["stroke-width"], Gd = {
|
|
9838
9849
|
key: 0,
|
|
9839
9850
|
class: "absolute inset-0 flex items-center justify-center"
|
|
9840
|
-
},
|
|
9851
|
+
}, Kd = 40, qd = 12, Jd = .055, Yd = 10, Xd = 130, Zd = /* @__PURE__ */ O({
|
|
9841
9852
|
__name: "MCircleProgressBar",
|
|
9842
9853
|
props: {
|
|
9843
9854
|
value: {},
|
|
@@ -9866,7 +9877,7 @@ var Au = {
|
|
|
9866
9877
|
fill: "var(--color-error)",
|
|
9867
9878
|
track: "var(--color-error-container)"
|
|
9868
9879
|
}
|
|
9869
|
-
}, a = y(() => i[t.color]), o = 2 * Math.PI *
|
|
9880
|
+
}, a = y(() => i[t.color]), o = 2 * Math.PI * Kd, s = y(() => t.thickness), c = y(() => t.thickness + Math.ceil(80 * Jd) + 2), l = y(() => .75 + t.thickness * .25), u = y(() => n.value / 100 * o);
|
|
9870
9881
|
function d(e) {
|
|
9871
9882
|
return e < .5 ? 2 * e * e : 1 - (-2 * e + 2) ** 2 / 2;
|
|
9872
9883
|
}
|
|
@@ -9900,13 +9911,13 @@ var Au = {
|
|
|
9900
9911
|
return n >= 1 && (e.t0 = -1), r;
|
|
9901
9912
|
}
|
|
9902
9913
|
Y(n, (e, n) => {
|
|
9903
|
-
t.indeterminate || (n <=
|
|
9914
|
+
t.indeterminate || (n <= Yd && e > Yd && E(v, p, 1, performance.now()), n > Yd && e <= Yd && E(v, p, 0, performance.now()), e === 100 ? (p = 1, v.t0 = -1, T.t0 = -1, E(b, m, 0, performance.now()), x.t0 = -1, x.to = 1, g = 1) : n === 100 && (b.t0 = -1, b.to = 1, x.t0 = -1, x.to = 1, T.t0 = -1, E(T, Math.min(m, g), 1, performance.now())));
|
|
9904
9915
|
});
|
|
9905
|
-
let O = U(null), k = U(null), A = U(I(
|
|
9916
|
+
let O = U(null), k = U(null), A = U(I(Kd * Jd, 0)), j = null, M = 0, N = 2 * Math.PI / qd / 90;
|
|
9906
9917
|
function P(e) {
|
|
9907
9918
|
let t = j === null ? 0 : e - j;
|
|
9908
9919
|
if (j = e, _ += t * N, t > 0) {
|
|
9909
|
-
let e = 1 - Math.exp(-t /
|
|
9920
|
+
let e = 1 - Math.exp(-t / Xd);
|
|
9910
9921
|
f += (u.value - f) * e;
|
|
9911
9922
|
}
|
|
9912
9923
|
if (p = D(v, e), (b.t0 >= 0 || b.to === 0) && (m = D(b, e), b.t0 < 0 && m <= 0 && x.t0 < 0 && x.to !== 0 && E(x, g, 0, e)), (x.t0 >= 0 || x.to === 0) && (g = D(x, e)), T.t0 >= 0) {
|
|
@@ -9916,12 +9927,12 @@ var Au = {
|
|
|
9916
9927
|
let n = p * g, r = l.value * n * m, i = f, a = o - i, s = Math.max(0, i - 2 * r), c = -90 + r / o * 360, d = O.value;
|
|
9917
9928
|
d && (d.setAttribute("stroke-dasharray", `${s.toFixed(2)} ${(o - s).toFixed(2)}`), d.setAttribute("transform", `rotate(${c.toFixed(3)}, 50, 50)`));
|
|
9918
9929
|
let h = Math.max(0, a - 2 * r), y = Math.max(0, a - r), S = k.value;
|
|
9919
|
-
S && (S.setAttribute("stroke-dasharray", `${h.toFixed(2)} ${(o - h).toFixed(2)}`), S.setAttribute("stroke-dashoffset", y.toFixed(2))), A.value = I(
|
|
9930
|
+
S && (S.setAttribute("stroke-dasharray", `${h.toFixed(2)} ${(o - h).toFixed(2)}`), S.setAttribute("stroke-dashoffset", y.toFixed(2))), A.value = I(Kd * Jd * n, _), M = requestAnimationFrame(P);
|
|
9920
9931
|
}
|
|
9921
9932
|
function I(e, t) {
|
|
9922
9933
|
let n = [];
|
|
9923
9934
|
for (let r = 0; r <= 240; r++) {
|
|
9924
|
-
let i = 2 * Math.PI * r / 240 - Math.PI / 2, a =
|
|
9935
|
+
let i = 2 * Math.PI * r / 240 - Math.PI / 2, a = Kd + e * Math.sin(qd * i + t), o = 50 + a * Math.cos(i), s = 50 + a * Math.sin(i);
|
|
9925
9936
|
n.push(`${r === 0 ? "M" : "L"}${o.toFixed(2)},${s.toFixed(2)}`);
|
|
9926
9937
|
}
|
|
9927
9938
|
return n.join("") + "Z";
|
|
@@ -9934,7 +9945,7 @@ var Au = {
|
|
|
9934
9945
|
}
|
|
9935
9946
|
function H() {
|
|
9936
9947
|
let e = n.value;
|
|
9937
|
-
f = u.value, p = 0, m = 1, g = 1, v.t0 = b.t0 = x.t0 = T.t0 = -1, v.to = 0, b.to = 1, x.to = 1, e === 100 ? (p = 1, m = 0, g = 0, b.to = 0, x.to = 0) : e >
|
|
9948
|
+
f = u.value, p = 0, m = 1, g = 1, v.t0 = b.t0 = x.t0 = T.t0 = -1, v.to = 0, b.to = 1, x.to = 1, e === 100 ? (p = 1, m = 0, g = 0, b.to = 0, x.to = 0) : e > Yd && (p = 1, v.to = 1);
|
|
9938
9949
|
}
|
|
9939
9950
|
R(() => {
|
|
9940
9951
|
t.variant === "wavy" && !t.indeterminate && (H(), L());
|
|
@@ -9944,7 +9955,7 @@ var Au = {
|
|
|
9944
9955
|
e ? B() : t.variant === "wavy" && (H(), L());
|
|
9945
9956
|
});
|
|
9946
9957
|
let ee = ae();
|
|
9947
|
-
return (t, i) => (V(), C("div",
|
|
9958
|
+
return (t, i) => (V(), C("div", Nd, [e.label ? (V(), C("span", Pd, q(e.label), 1)) : S("", !0), w("div", Fd, [(V(), C("svg", {
|
|
9948
9959
|
width: r.value,
|
|
9949
9960
|
height: r.value,
|
|
9950
9961
|
viewBox: "0 0 100 100",
|
|
@@ -9956,14 +9967,14 @@ var Au = {
|
|
|
9956
9967
|
}, [e.indeterminate ? (V(), C(h, { key: 0 }, [w("circle", {
|
|
9957
9968
|
cx: "50",
|
|
9958
9969
|
cy: "50",
|
|
9959
|
-
r:
|
|
9970
|
+
r: Kd,
|
|
9960
9971
|
fill: "none",
|
|
9961
9972
|
"stroke-width": s.value,
|
|
9962
9973
|
style: F({ stroke: a.value.track })
|
|
9963
|
-
}, null, 12,
|
|
9974
|
+
}, null, 12, Ld), w("circle", {
|
|
9964
9975
|
cx: "50",
|
|
9965
9976
|
cy: "50",
|
|
9966
|
-
r:
|
|
9977
|
+
r: Kd,
|
|
9967
9978
|
fill: "none",
|
|
9968
9979
|
"stroke-width": s.value,
|
|
9969
9980
|
"stroke-linecap": "round",
|
|
@@ -9972,7 +9983,7 @@ var Au = {
|
|
|
9972
9983
|
transformOrigin: "50px 50px",
|
|
9973
9984
|
animation: "m3-cpb-spin 1.4s linear infinite, m3-cpb-arc 3s ease-in-out infinite"
|
|
9974
9985
|
})
|
|
9975
|
-
}, null, 12,
|
|
9986
|
+
}, null, 12, Rd)], 64)) : e.variant === "wavy" ? (V(), C(h, { key: 1 }, [
|
|
9976
9987
|
w("defs", null, [w("mask", {
|
|
9977
9988
|
id: J(ee),
|
|
9978
9989
|
maskUnits: "userSpaceOnUse"
|
|
@@ -9987,25 +9998,25 @@ var Au = {
|
|
|
9987
9998
|
ref: O,
|
|
9988
9999
|
cx: "50",
|
|
9989
10000
|
cy: "50",
|
|
9990
|
-
r:
|
|
10001
|
+
r: Kd,
|
|
9991
10002
|
fill: "none",
|
|
9992
10003
|
"stroke-width": c.value,
|
|
9993
10004
|
stroke: "white",
|
|
9994
10005
|
"stroke-dasharray": "0 251",
|
|
9995
10006
|
transform: "rotate(-90, 50, 50)"
|
|
9996
|
-
}, null, 8,
|
|
10007
|
+
}, null, 8, Bd)], 8, zd)]),
|
|
9997
10008
|
w("circle", {
|
|
9998
10009
|
ref_key: "trackCircleEl",
|
|
9999
10010
|
ref: k,
|
|
10000
10011
|
cx: "50",
|
|
10001
10012
|
cy: "50",
|
|
10002
|
-
r:
|
|
10013
|
+
r: Kd,
|
|
10003
10014
|
fill: "none",
|
|
10004
10015
|
"stroke-width": s.value,
|
|
10005
10016
|
style: F({ stroke: a.value.track }),
|
|
10006
10017
|
"stroke-dasharray": "251 0",
|
|
10007
10018
|
transform: "rotate(-90, 50, 50)"
|
|
10008
|
-
}, null, 12,
|
|
10019
|
+
}, null, 12, Vd),
|
|
10009
10020
|
w("path", {
|
|
10010
10021
|
d: A.value,
|
|
10011
10022
|
fill: "none",
|
|
@@ -10014,18 +10025,18 @@ var Au = {
|
|
|
10014
10025
|
"stroke-linejoin": "round",
|
|
10015
10026
|
mask: `url(#${J(ee)})`,
|
|
10016
10027
|
style: F({ stroke: a.value.fill })
|
|
10017
|
-
}, null, 12,
|
|
10028
|
+
}, null, 12, Hd)
|
|
10018
10029
|
], 64)) : e.indeterminate ? S("", !0) : (V(), C(h, { key: 2 }, [w("circle", {
|
|
10019
10030
|
cx: "50",
|
|
10020
10031
|
cy: "50",
|
|
10021
|
-
r:
|
|
10032
|
+
r: Kd,
|
|
10022
10033
|
fill: "none",
|
|
10023
10034
|
"stroke-width": s.value,
|
|
10024
10035
|
style: F({ stroke: a.value.track })
|
|
10025
|
-
}, null, 12,
|
|
10036
|
+
}, null, 12, Ud), w("circle", {
|
|
10026
10037
|
cx: "50",
|
|
10027
10038
|
cy: "50",
|
|
10028
|
-
r:
|
|
10039
|
+
r: Kd,
|
|
10029
10040
|
fill: "none",
|
|
10030
10041
|
"stroke-width": s.value,
|
|
10031
10042
|
"stroke-linecap": "round",
|
|
@@ -10036,7 +10047,7 @@ var Au = {
|
|
|
10036
10047
|
transformOrigin: "50px 50px",
|
|
10037
10048
|
transition: "stroke-dasharray 300ms ease"
|
|
10038
10049
|
})
|
|
10039
|
-
}, null, 12,
|
|
10050
|
+
}, null, 12, Wd)], 64)), !e.indeterminate && !t.$slots.default ? (V(), C("text", {
|
|
10040
10051
|
key: 3,
|
|
10041
10052
|
x: "50",
|
|
10042
10053
|
y: "50",
|
|
@@ -10048,16 +10059,16 @@ var Au = {
|
|
|
10048
10059
|
fontWeight: "600",
|
|
10049
10060
|
fontFamily: "var(--font-sans, Roboto, sans-serif)"
|
|
10050
10061
|
})
|
|
10051
|
-
}, q(n.value) + "%", 5)) : S("", !0)], 8,
|
|
10062
|
+
}, q(n.value) + "%", 5)) : S("", !0)], 8, Id)), t.$slots.default ? (V(), C("div", Gd, [G(t.$slots, "default")])) : S("", !0)])]));
|
|
10052
10063
|
}
|
|
10053
|
-
}),
|
|
10064
|
+
}), Qd = ["for"], $d = { class: "relative -m-2.5 inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-full" }, ef = [
|
|
10054
10065
|
"id",
|
|
10055
10066
|
"checked",
|
|
10056
10067
|
"disabled"
|
|
10057
|
-
],
|
|
10068
|
+
], tf = { class: "relative flex h-5 w-5" }, nf = {
|
|
10058
10069
|
key: 0,
|
|
10059
10070
|
class: "text-body-large text-on-surface"
|
|
10060
|
-
},
|
|
10071
|
+
}, rf = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
10061
10072
|
__name: "MRadio",
|
|
10062
10073
|
props: {
|
|
10063
10074
|
modelValue: {},
|
|
@@ -10085,7 +10096,7 @@ var Au = {
|
|
|
10085
10096
|
return (t, n) => (V(), C("label", {
|
|
10086
10097
|
for: J(i),
|
|
10087
10098
|
class: P(["group inline-flex items-center gap-3 select-none", e.disabled ? "cursor-not-allowed opacity-[0.38]" : "cursor-pointer"])
|
|
10088
|
-
}, [w("span",
|
|
10099
|
+
}, [w("span", $d, [
|
|
10089
10100
|
w("input", {
|
|
10090
10101
|
id: J(i),
|
|
10091
10102
|
type: "radio",
|
|
@@ -10093,12 +10104,12 @@ var Au = {
|
|
|
10093
10104
|
checked: a.value,
|
|
10094
10105
|
disabled: e.disabled,
|
|
10095
10106
|
onChange: n[0] ||= (t) => r("update:modelValue", e.value)
|
|
10096
|
-
}, null, 40,
|
|
10107
|
+
}, null, 40, ef),
|
|
10097
10108
|
e.disabled ? S("", !0) : (V(), C("span", {
|
|
10098
10109
|
key: 0,
|
|
10099
10110
|
class: P(["pointer-events-none absolute inset-0 rounded-full opacity-0 transition-opacity duration-150 group-hover:opacity-[0.08] group-active:opacity-[0.12] peer-focus-visible:opacity-[0.08]", a.value ? s[e.color] : "bg-on-surface"])
|
|
10100
10111
|
}, null, 2)),
|
|
10101
|
-
w("span",
|
|
10112
|
+
w("span", tf, [(V(), C("svg", {
|
|
10102
10113
|
viewBox: "0 0 20 20",
|
|
10103
10114
|
class: P(["h-full w-full transition-colors duration-150", c.value]),
|
|
10104
10115
|
"aria-hidden": "true"
|
|
@@ -10116,12 +10127,12 @@ var Au = {
|
|
|
10116
10127
|
r: "4.5",
|
|
10117
10128
|
fill: "currentColor"
|
|
10118
10129
|
}, null, 2)], 2))])
|
|
10119
|
-
]), e.label ? (V(), C("span",
|
|
10130
|
+
]), e.label ? (V(), C("span", nf, q(e.label), 1)) : S("", !0)], 10, Qd));
|
|
10120
10131
|
}
|
|
10121
|
-
}), [["__scopeId", "data-v-a32b03cb"]]),
|
|
10132
|
+
}), [["__scopeId", "data-v-a32b03cb"]]), af = { class: "flex flex-col gap-2" }, of = {
|
|
10122
10133
|
key: 0,
|
|
10123
10134
|
class: "text-label-large text-on-surface-variant"
|
|
10124
|
-
},
|
|
10135
|
+
}, sf = /* @__PURE__ */ O({
|
|
10125
10136
|
__name: "MRadioGroup",
|
|
10126
10137
|
props: {
|
|
10127
10138
|
modelValue: {},
|
|
@@ -10137,7 +10148,7 @@ var Au = {
|
|
|
10137
10148
|
emits: ["update:modelValue"],
|
|
10138
10149
|
setup(e, { emit: t }) {
|
|
10139
10150
|
let n = t;
|
|
10140
|
-
return (t, r) => (V(), C("div",
|
|
10151
|
+
return (t, r) => (V(), C("div", af, [e.label ? (V(), C("span", of, q(e.label), 1)) : S("", !0), w("div", { class: P(["flex gap-4", e.direction === "row" ? "flex-row flex-wrap" : "flex-col"]) }, [(V(!0), C(h, null, W(e.options, (t) => (V(), x(rf, {
|
|
10141
10152
|
key: String(t.value),
|
|
10142
10153
|
"model-value": e.modelValue,
|
|
10143
10154
|
value: t.value,
|
|
@@ -10153,7 +10164,7 @@ var Au = {
|
|
|
10153
10164
|
"disabled"
|
|
10154
10165
|
]))), 128))], 2)]));
|
|
10155
10166
|
}
|
|
10156
|
-
}),
|
|
10167
|
+
}), cf = [
|
|
10157
10168
|
"role",
|
|
10158
10169
|
"tabindex",
|
|
10159
10170
|
"aria-label",
|
|
@@ -10162,7 +10173,7 @@ var Au = {
|
|
|
10162
10173
|
"aria-valuenow",
|
|
10163
10174
|
"aria-valuetext",
|
|
10164
10175
|
"aria-disabled"
|
|
10165
|
-
],
|
|
10176
|
+
], lf = { class: "absolute inset-0.5" }, uf = /* @__PURE__ */ O({
|
|
10166
10177
|
__name: "MRating",
|
|
10167
10178
|
props: {
|
|
10168
10179
|
modelValue: {},
|
|
@@ -10286,7 +10297,7 @@ var Au = {
|
|
|
10286
10297
|
}, [w("span", {
|
|
10287
10298
|
class: P(["pointer-events-none absolute -inset-1 rounded-full bg-current transition-opacity duration-150", [o.value, k(n)]]),
|
|
10288
10299
|
style: F(s.value)
|
|
10289
|
-
}, null, 6), w("span",
|
|
10300
|
+
}, null, 6), w("span", lf, [w("span", {
|
|
10290
10301
|
class: "absolute inset-y-0 end-0 overflow-hidden",
|
|
10291
10302
|
style: F({ width: `${(1 - t) * 100}%` })
|
|
10292
10303
|
}, [D(r, {
|
|
@@ -10310,13 +10321,13 @@ var Au = {
|
|
|
10310
10321
|
"size",
|
|
10311
10322
|
"class",
|
|
10312
10323
|
"style"
|
|
10313
|
-
])], 4)])], 4))), 128))], 42,
|
|
10324
|
+
])], 4)])], 4))), 128))], 42, cf));
|
|
10314
10325
|
}
|
|
10315
|
-
}),
|
|
10316
|
-
function
|
|
10317
|
-
return V(), C("div",
|
|
10326
|
+
}), df = {}, ff = { class: "relative" };
|
|
10327
|
+
function pf(e, t) {
|
|
10328
|
+
return V(), C("div", ff, [G(e.$slots, "default")]);
|
|
10318
10329
|
}
|
|
10319
|
-
var
|
|
10330
|
+
var mf = /*#__PURE__*/ m(df, [["render", pf]]), hf = ["datetime", "title"], gf = /* @__PURE__ */ O({
|
|
10320
10331
|
__name: "MRelativeTime",
|
|
10321
10332
|
props: {
|
|
10322
10333
|
value: {},
|
|
@@ -10387,9 +10398,9 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10387
10398
|
return (e, t) => (V(), C("time", {
|
|
10388
10399
|
datetime: a.value.toISOString(),
|
|
10389
10400
|
title: d.value
|
|
10390
|
-
}, q(u.value), 9,
|
|
10401
|
+
}, q(u.value), 9, hf));
|
|
10391
10402
|
}
|
|
10392
|
-
}),
|
|
10403
|
+
}), _f = /* @__PURE__ */ O({
|
|
10393
10404
|
__name: "MResponsive",
|
|
10394
10405
|
props: {
|
|
10395
10406
|
show: {},
|
|
@@ -10421,19 +10432,19 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10421
10432
|
_: 3
|
|
10422
10433
|
}, 8, ["class"]));
|
|
10423
10434
|
}
|
|
10424
|
-
}),
|
|
10435
|
+
}), vf = { class: "flex flex-col items-center justify-center gap-4 py-14 text-center" }, yf = {
|
|
10425
10436
|
key: 0,
|
|
10426
10437
|
class: "text-display-small font-medium text-on-surface-variant/30"
|
|
10427
|
-
},
|
|
10438
|
+
}, bf = { class: "text-headline-small font-medium text-on-surface" }, xf = {
|
|
10428
10439
|
key: 1,
|
|
10429
10440
|
class: "max-w-md text-body-large text-on-surface-variant"
|
|
10430
|
-
},
|
|
10441
|
+
}, Sf = {
|
|
10431
10442
|
key: 2,
|
|
10432
10443
|
class: "mt-2 flex flex-wrap items-center justify-center gap-3"
|
|
10433
|
-
},
|
|
10444
|
+
}, Cf = {
|
|
10434
10445
|
key: 3,
|
|
10435
10446
|
class: "mt-2"
|
|
10436
|
-
},
|
|
10447
|
+
}, wf = /* @__PURE__ */ O({
|
|
10437
10448
|
__name: "MResult",
|
|
10438
10449
|
props: {
|
|
10439
10450
|
status: {},
|
|
@@ -10485,19 +10496,19 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10485
10496
|
defaultDesc: i[`result${e}Desc`]
|
|
10486
10497
|
};
|
|
10487
10498
|
}), s = y(() => n.status === "404" || n.status === "403" || n.status === "500" ? n.status : null);
|
|
10488
|
-
return (t, n) => (V(), C("div",
|
|
10489
|
-
s.value ? (V(), C("span",
|
|
10499
|
+
return (t, n) => (V(), C("div", vf, [
|
|
10500
|
+
s.value ? (V(), C("span", yf, q(s.value), 1)) : S("", !0),
|
|
10490
10501
|
w("div", { class: P(["flex h-20 w-20 items-center justify-center rounded-full", [o.value.bg, o.value.text]]) }, [D(r, {
|
|
10491
10502
|
name: o.value.icon,
|
|
10492
10503
|
size: 40
|
|
10493
10504
|
}, null, 8, ["name"])], 2),
|
|
10494
|
-
w("h2",
|
|
10495
|
-
e.description ?? o.value.defaultDesc ? (V(), C("p",
|
|
10496
|
-
t.$slots.actions ? (V(), C("div",
|
|
10497
|
-
t.$slots.default ? (V(), C("div",
|
|
10505
|
+
w("h2", bf, q(e.title ?? o.value.defaultTitle), 1),
|
|
10506
|
+
e.description ?? o.value.defaultDesc ? (V(), C("p", xf, q(e.description ?? o.value.defaultDesc), 1)) : S("", !0),
|
|
10507
|
+
t.$slots.actions ? (V(), C("div", Sf, [G(t.$slots, "actions")])) : S("", !0),
|
|
10508
|
+
t.$slots.default ? (V(), C("div", Cf, [G(t.$slots, "default")])) : S("", !0)
|
|
10498
10509
|
]));
|
|
10499
10510
|
}
|
|
10500
|
-
}),
|
|
10511
|
+
}), Tf = { class: "flex flex-col overflow-hidden rounded-lg border border-outline-variant" }, Ef = { class: "flex items-center justify-between border-b border-outline-variant bg-surface-container px-4 py-3" }, Df = { class: "flex items-center gap-1" }, Of = { class: "text-title-medium font-medium capitalize text-on-surface" }, kf = { class: "flex rounded-full bg-surface-container-high p-0.5" }, Af = ["onClick"], jf = { class: "overflow-auto" }, Mf = { class: "w-full border-collapse" }, Nf = { class: "text-label-small uppercase text-on-surface-variant" }, Pf = { class: "w-16 border-r border-b border-outline-variant/50 p-0 pr-2 text-right align-top" }, Ff = { class: "relative -top-2.5 text-label-small text-on-surface-variant" }, If = ["onClick"], Lf = ["onClick"], Rf = { class: "truncate text-label-small font-medium" }, zf = { class: "truncate text-label-small opacity-70" }, Bf = /* @__PURE__ */ O({
|
|
10501
10512
|
__name: "MScheduler",
|
|
10502
10513
|
props: {
|
|
10503
10514
|
events: { default: () => [] },
|
|
@@ -10578,8 +10589,8 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10578
10589
|
error: "bg-error-container text-on-error-container border-error/30",
|
|
10579
10590
|
success: "bg-success-container text-on-success-container border-success/30"
|
|
10580
10591
|
};
|
|
10581
|
-
return (t, n) => (V(), C("div",
|
|
10582
|
-
w("div",
|
|
10592
|
+
return (t, n) => (V(), C("div", Tf, [w("div", Ef, [
|
|
10593
|
+
w("div", Df, [
|
|
10583
10594
|
D(d, {
|
|
10584
10595
|
icon: "chevron_left",
|
|
10585
10596
|
label: e.prevLabel ?? J(r).previous,
|
|
@@ -10598,17 +10609,17 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10598
10609
|
onClick: T
|
|
10599
10610
|
}, q(e.todayLabel ?? J(r).today), 1)
|
|
10600
10611
|
]),
|
|
10601
|
-
w("h3",
|
|
10602
|
-
w("div",
|
|
10612
|
+
w("h3", Of, q(b.value), 1),
|
|
10613
|
+
w("div", kf, [(V(), C(h, null, W(["day", "week"], (t) => w("button", {
|
|
10603
10614
|
key: t,
|
|
10604
10615
|
type: "button",
|
|
10605
10616
|
class: P(["cursor-pointer rounded-full px-3 py-1 text-label-medium transition-all duration-150", c.value === t ? "bg-secondary-container text-on-secondary-container shadow-elevation-1" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
10606
10617
|
onClick: (e) => c.value = t
|
|
10607
|
-
}, q(t === "day" ? e.dayViewLabel ?? J(r).dayView : e.weekViewLabel ?? J(r).weekView), 11,
|
|
10608
|
-
]), w("div",
|
|
10618
|
+
}, q(t === "day" ? e.dayViewLabel ?? J(r).dayView : e.weekViewLabel ?? J(r).weekView), 11, Af)), 64))])
|
|
10619
|
+
]), w("div", jf, [w("table", Mf, [w("thead", null, [w("tr", null, [n[2] ||= w("th", { class: "sticky top-0 z-10 w-16 border-b border-r border-outline-variant bg-surface-container p-2" }, null, -1), (V(!0), C(h, null, W(p.value, (e) => (V(), C("th", {
|
|
10609
10620
|
key: g(e),
|
|
10610
10621
|
class: P(["sticky top-0 z-10 border-b border-r border-outline-variant bg-surface-container px-2 py-2 text-center last:border-r-0", g(e) === J(m) ? "bg-primary-container/30" : ""])
|
|
10611
|
-
}, [w("div",
|
|
10622
|
+
}, [w("div", Nf, q(_.value.format(e)), 1), w("div", { class: P(["mx-auto mt-0.5 flex h-8 w-8 items-center justify-center rounded-full text-title-medium", g(e) === J(m) ? "bg-primary text-on-primary font-medium" : "text-on-surface"]) }, q(v.value.format(e)), 3)], 2))), 128))])]), w("tbody", null, [(V(!0), C(h, null, W(l.value, (e) => (V(), C("tr", { key: e }, [w("td", Pf, [w("span", Ff, q(String(e).padStart(2, "0")) + ":00 ", 1)]), (V(!0), C(h, null, W(p.value, (t) => (V(), C("td", {
|
|
10612
10623
|
key: g(t),
|
|
10613
10624
|
class: P(["relative h-14 border-r border-b border-outline-variant/50 p-0 last:border-r-0", g(t) === J(m) ? "bg-primary-container/5" : ""]),
|
|
10614
10625
|
onClick: (n) => o("slotClick", {
|
|
@@ -10621,9 +10632,9 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10621
10632
|
class: P(["absolute inset-x-0.5 top-0.5 z-5 cursor-pointer overflow-hidden rounded border-l-[3px] px-2 py-1 text-left transition-opacity hover:opacity-90", j[t.color ?? "primary"]]),
|
|
10622
10633
|
style: F({ height: `calc(${k(t) * 100}% - 4px)` }),
|
|
10623
10634
|
onClick: Z((e) => o("eventClick", t), ["stop"])
|
|
10624
|
-
}, [w("p",
|
|
10635
|
+
}, [w("p", Rf, q(t.title), 1), w("p", zf, q(A(t)), 1)], 14, Lf)) : S("", !0)], 64))), 128))], 10, If))), 128))]))), 128))])])])]));
|
|
10625
10636
|
}
|
|
10626
|
-
}),
|
|
10637
|
+
}), Vf = /* @__PURE__ */ O({
|
|
10627
10638
|
__name: "MScrollable",
|
|
10628
10639
|
props: {
|
|
10629
10640
|
direction: { default: "vertical" },
|
|
@@ -10644,13 +10655,13 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10644
10655
|
style: F(i.value)
|
|
10645
10656
|
}, [G(e.$slots, "default")], 6));
|
|
10646
10657
|
}
|
|
10647
|
-
}),
|
|
10658
|
+
}), Hf = [
|
|
10648
10659
|
"id",
|
|
10649
10660
|
"value",
|
|
10650
10661
|
"placeholder",
|
|
10651
10662
|
"disabled",
|
|
10652
10663
|
"aria-expanded"
|
|
10653
|
-
],
|
|
10664
|
+
], Uf = ["value", "placeholder"], Wf = { class: "flex-1 overflow-y-auto" }, Gf = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
10654
10665
|
inheritAttrs: !1,
|
|
10655
10666
|
__name: "MSearchBar",
|
|
10656
10667
|
props: {
|
|
@@ -10751,7 +10762,7 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10751
10762
|
onFocus: y,
|
|
10752
10763
|
onInput: T,
|
|
10753
10764
|
onKeydown: O
|
|
10754
|
-
}, null, 42,
|
|
10765
|
+
}, null, 42, Hf),
|
|
10755
10766
|
e.clearable && e.modelValue && !e.disabled ? (V(), C("button", {
|
|
10756
10767
|
key: 0,
|
|
10757
10768
|
type: "button",
|
|
@@ -10788,7 +10799,7 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10788
10799
|
class: P(["w-full bg-transparent text-body-large text-on-surface outline-none placeholder:text-on-surface-variant", e.textAlign === "center" ? "text-center" : ""]),
|
|
10789
10800
|
onInput: T,
|
|
10790
10801
|
onKeydown: O
|
|
10791
|
-
}, null, 42,
|
|
10802
|
+
}, null, 42, Uf),
|
|
10792
10803
|
e.loading ? (V(), x(p, {
|
|
10793
10804
|
key: 0,
|
|
10794
10805
|
size: 20,
|
|
@@ -10805,18 +10816,18 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10805
10816
|
G(t.$slots, "trailing", {}, void 0, !0)
|
|
10806
10817
|
], 2),
|
|
10807
10818
|
n[0] ||= w("div", { class: "h-px shrink-0 bg-outline" }, null, -1),
|
|
10808
|
-
w("div",
|
|
10819
|
+
w("div", Wf, [G(t.$slots, "default", {}, void 0, !0)])
|
|
10809
10820
|
], 6)) : S("", !0)]),
|
|
10810
10821
|
_: 3
|
|
10811
10822
|
}, 8, ["name"])]))], 64));
|
|
10812
10823
|
}
|
|
10813
|
-
}), [["__scopeId", "data-v-fce1650c"]]),
|
|
10824
|
+
}), [["__scopeId", "data-v-fce1650c"]]), Kf = { key: 0 }, qf = { class: "flex items-start justify-between" }, Jf = {
|
|
10814
10825
|
key: 0,
|
|
10815
10826
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
10816
|
-
},
|
|
10827
|
+
}, Yf = {
|
|
10817
10828
|
key: 0,
|
|
10818
10829
|
class: "mt-4 h-px bg-outline-variant"
|
|
10819
|
-
},
|
|
10830
|
+
}, Xf = /* @__PURE__ */ O({
|
|
10820
10831
|
__name: "MSection",
|
|
10821
10832
|
props: {
|
|
10822
10833
|
title: {},
|
|
@@ -10853,19 +10864,19 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10853
10864
|
"label-medium": "text-label-medium",
|
|
10854
10865
|
"label-small": "text-label-small"
|
|
10855
10866
|
}, i = y(() => n[t.gap]), a = y(() => [r[t.titleVariant], "font-medium"]);
|
|
10856
|
-
return (t, n) => (V(), C("section", { class: P(["flex flex-col", i.value]) }, [e.title || e.subtitle || t.$slots.title || t.$slots.actions ? (V(), C("div",
|
|
10867
|
+
return (t, n) => (V(), C("section", { class: P(["flex flex-col", i.value]) }, [e.title || e.subtitle || t.$slots.title || t.$slots.actions ? (V(), C("div", Kf, [w("div", qf, [w("div", null, [G(t.$slots, "title", {}, () => [e.title ? (V(), C("p", {
|
|
10857
10868
|
key: 0,
|
|
10858
10869
|
class: P(a.value)
|
|
10859
|
-
}, q(e.title), 3)) : S("", !0)]), G(t.$slots, "subtitle", {}, () => [e.subtitle ? (V(), C("p",
|
|
10870
|
+
}, q(e.title), 3)) : S("", !0)]), G(t.$slots, "subtitle", {}, () => [e.subtitle ? (V(), C("p", Jf, q(e.subtitle), 1)) : S("", !0)])]), G(t.$slots, "actions")]), e.divider ? (V(), C("div", Yf)) : S("", !0)])) : S("", !0), G(t.$slots, "default")], 2));
|
|
10860
10871
|
}
|
|
10861
|
-
}),
|
|
10872
|
+
}), Zf = {
|
|
10862
10873
|
class: "inline-flex overflow-hidden rounded-full border border-outline",
|
|
10863
10874
|
role: "group"
|
|
10864
|
-
},
|
|
10875
|
+
}, Qf = [
|
|
10865
10876
|
"disabled",
|
|
10866
10877
|
"aria-pressed",
|
|
10867
10878
|
"onClick"
|
|
10868
|
-
],
|
|
10879
|
+
], $f = /* @__PURE__ */ O({
|
|
10869
10880
|
__name: "MSegmentedButton",
|
|
10870
10881
|
props: {
|
|
10871
10882
|
modelValue: {},
|
|
@@ -10891,7 +10902,7 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10891
10902
|
} else n("update:modelValue", e.value);
|
|
10892
10903
|
}
|
|
10893
10904
|
}
|
|
10894
|
-
return (t, n) => (V(), C("div",
|
|
10905
|
+
return (t, n) => (V(), C("div", Zf, [(V(!0), C(h, null, W(e.options, (t, n) => (V(), C("button", {
|
|
10895
10906
|
key: t.value,
|
|
10896
10907
|
type: "button",
|
|
10897
10908
|
class: P(["relative inline-flex items-center justify-center gap-2 text-label-large font-medium transition-[background-color,color] duration-150 outline-none before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", [
|
|
@@ -10913,32 +10924,32 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
10913
10924
|
key: 1,
|
|
10914
10925
|
name: t.icon,
|
|
10915
10926
|
size: 18
|
|
10916
|
-
}, null, 8, ["name"])) : S("", !0), w("span", null, q(t.label), 1)], 10,
|
|
10927
|
+
}, null, 8, ["name"])) : S("", !0), w("span", null, q(t.label), 1)], 10, Qf))), 128))]));
|
|
10917
10928
|
}
|
|
10918
|
-
}),
|
|
10929
|
+
}), ep = [
|
|
10919
10930
|
"id",
|
|
10920
10931
|
"tabindex",
|
|
10921
10932
|
"aria-expanded",
|
|
10922
10933
|
"aria-disabled"
|
|
10923
|
-
],
|
|
10934
|
+
], tp = ["for"], np = {
|
|
10924
10935
|
key: 0,
|
|
10925
10936
|
class: "text-error"
|
|
10926
|
-
},
|
|
10937
|
+
}, rp = { class: "pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 flex h-6 items-center" }, ip = {
|
|
10927
10938
|
key: 0,
|
|
10928
10939
|
class: "px-4 text-body-small text-error"
|
|
10929
|
-
},
|
|
10940
|
+
}, ap = {
|
|
10930
10941
|
key: 1,
|
|
10931
10942
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
10932
|
-
},
|
|
10943
|
+
}, op = ["onClick"], sp = {
|
|
10933
10944
|
key: 1,
|
|
10934
10945
|
class: "w-[18px] shrink-0"
|
|
10935
|
-
},
|
|
10946
|
+
}, cp = {
|
|
10936
10947
|
key: 0,
|
|
10937
10948
|
class: "px-4 py-3 text-center text-body-small text-on-surface-variant"
|
|
10938
|
-
},
|
|
10949
|
+
}, lp = { class: "select-modal-box flex max-h-[80vh] w-full max-w-sm flex-col overflow-hidden rounded-[28px] bg-surface-container-high shadow-elevation-3" }, up = { class: "flex items-center justify-between px-6 pt-6 pb-4" }, dp = { class: "text-headline-small text-on-surface" }, fp = { class: "flex-1 overflow-y-auto py-2" }, pp = ["onClick"], mp = {
|
|
10939
10950
|
key: 0,
|
|
10940
10951
|
class: "px-6 py-4 text-center text-body-medium text-on-surface-variant"
|
|
10941
|
-
},
|
|
10952
|
+
}, hp = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
10942
10953
|
inheritAttrs: !1,
|
|
10943
10954
|
__name: "MSelect",
|
|
10944
10955
|
props: {
|
|
@@ -11094,11 +11105,11 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
11094
11105
|
}, [T.value ? (V(), C("span", {
|
|
11095
11106
|
key: 0,
|
|
11096
11107
|
class: P(e.disabled ? "text-on-surface/38" : "text-on-surface")
|
|
11097
|
-
}, q(O.value), 3)) : S("", !0)], 42,
|
|
11108
|
+
}, q(O.value), 3)) : S("", !0)], 42, ep),
|
|
11098
11109
|
w("label", {
|
|
11099
11110
|
for: J(c),
|
|
11100
11111
|
class: P(te.value)
|
|
11101
|
-
}, [E(q(e.label), 1), e.required ? (V(), C("span",
|
|
11112
|
+
}, [E(q(e.label), 1), e.required ? (V(), C("span", np, "\xA0*")) : S("", !0)], 10, tp),
|
|
11102
11113
|
e.clearable && T.value && !e.disabled ? (V(), C("button", {
|
|
11103
11114
|
key: 1,
|
|
11104
11115
|
type: "button",
|
|
@@ -11110,12 +11121,12 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
11110
11121
|
name: "close",
|
|
11111
11122
|
size: 18
|
|
11112
11123
|
})])) : S("", !0),
|
|
11113
|
-
w("div",
|
|
11124
|
+
w("div", rp, [D(r, {
|
|
11114
11125
|
name: "arrow_drop_down",
|
|
11115
11126
|
size: 24,
|
|
11116
11127
|
class: P(["transition-transform duration-200", [l.value || u.value ? "rotate-180" : "", e.disabled ? "text-on-surface/38" : "text-on-surface-variant"]])
|
|
11117
11128
|
}, null, 8, ["class"])])
|
|
11118
|
-
], 6), e.error && e.errorLabel ? (V(), C("p",
|
|
11129
|
+
], 6), e.error && e.errorLabel ? (V(), C("p", ip, q(e.errorLabel), 1)) : e.hint ? (V(), C("p", ap, q(e.hint), 1)) : S("", !0)], 16), (V(), x(g, { to: "body" }, [D(_, {
|
|
11119
11130
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
11120
11131
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
11121
11132
|
"enter-to-class": "opacity-100 translate-y-0 scale-100",
|
|
@@ -11138,21 +11149,21 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
11138
11149
|
name: "check",
|
|
11139
11150
|
size: 18,
|
|
11140
11151
|
class: "shrink-0 text-on-secondary-container"
|
|
11141
|
-
})) : (V(), C("span",
|
|
11152
|
+
})) : (V(), C("span", sp)), E(" " + q(t.label), 1)], 10, op))), 128)), e.options.length ? S("", !0) : (V(), C("p", cp, q(k.value), 1))], 4)) : S("", !0)]),
|
|
11142
11153
|
_: 1
|
|
11143
11154
|
}), D(_, { name: "m3-select-modal" }, {
|
|
11144
11155
|
default: X(() => [u.value && e.mode === "modal" ? (V(), C("div", {
|
|
11145
11156
|
key: 0,
|
|
11146
11157
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-scrim/32 p-4",
|
|
11147
11158
|
onClick: Z(H, ["self"])
|
|
11148
|
-
}, [w("div",
|
|
11149
|
-
w("div",
|
|
11159
|
+
}, [w("div", lp, [
|
|
11160
|
+
w("div", up, [w("h2", dp, q(e.label || e.placeholder), 1), D(d, {
|
|
11150
11161
|
icon: "close",
|
|
11151
11162
|
label: J(o).close,
|
|
11152
11163
|
onClick: H
|
|
11153
11164
|
}, null, 8, ["label"])]),
|
|
11154
11165
|
n[1] ||= w("div", { class: "h-px bg-outline-variant" }, null, -1),
|
|
11155
|
-
w("div",
|
|
11166
|
+
w("div", fp, [(V(!0), C(h, null, W(e.options, (t, n) => (V(), C("div", {
|
|
11156
11167
|
key: n,
|
|
11157
11168
|
class: P(["flex cursor-pointer items-center gap-4 px-6 py-3.5 text-body-large transition-colors", [t.disabled ? "cursor-not-allowed opacity-38 text-on-surface" : "text-on-surface hover:bg-on-surface/8", b(t.value, e.modelValue) ? "bg-secondary-container" : ""]]),
|
|
11158
11169
|
onClick: (e) => N(t)
|
|
@@ -11160,21 +11171,21 @@ var pf = /*#__PURE__*/ m(uf, [["render", ff]]), mf = ["datetime", "title"], hf =
|
|
|
11160
11171
|
name: b(t.value, e.modelValue) ? "radio_button_checked" : "radio_button_unchecked",
|
|
11161
11172
|
size: 20,
|
|
11162
11173
|
class: P(b(t.value, e.modelValue) ? "text-on-secondary-container" : "text-on-surface-variant")
|
|
11163
|
-
}, null, 8, ["name", "class"]), w("span", { class: P(b(t.value, e.modelValue) ? "text-on-secondary-container font-medium" : "") }, q(t.label), 3)], 10,
|
|
11174
|
+
}, null, 8, ["name", "class"]), w("span", { class: P(b(t.value, e.modelValue) ? "text-on-secondary-container font-medium" : "") }, q(t.label), 3)], 10, pp))), 128)), e.options.length ? S("", !0) : (V(), C("p", mp, q(k.value), 1))])
|
|
11164
11175
|
])])) : S("", !0)]),
|
|
11165
11176
|
_: 1
|
|
11166
11177
|
})]))], 64));
|
|
11167
11178
|
}
|
|
11168
|
-
}), [["__scopeId", "data-v-c5366910"]]),
|
|
11179
|
+
}), [["__scopeId", "data-v-c5366910"]]), gp = {
|
|
11169
11180
|
key: 0,
|
|
11170
11181
|
class: "absolute inset-0 flex items-center justify-center"
|
|
11171
|
-
},
|
|
11182
|
+
}, _p = {
|
|
11172
11183
|
key: 1,
|
|
11173
11184
|
class: "absolute inset-0 flex items-center justify-center p-4"
|
|
11174
|
-
},
|
|
11185
|
+
}, vp = {
|
|
11175
11186
|
key: 2,
|
|
11176
11187
|
class: "absolute inset-0 flex items-center justify-center overflow-auto p-4"
|
|
11177
|
-
},
|
|
11188
|
+
}, yp = { class: "max-h-full w-full overflow-auto whitespace-pre-wrap text-body-small text-error" }, bp = /* @__PURE__ */ O({
|
|
11178
11189
|
__name: "MShader",
|
|
11179
11190
|
props: {
|
|
11180
11191
|
code: {},
|
|
@@ -11469,110 +11480,110 @@ void main() {
|
|
|
11469
11480
|
ref_key: "canvasRef",
|
|
11470
11481
|
ref: s,
|
|
11471
11482
|
class: "block h-full w-full touch-none"
|
|
11472
|
-
}, null, 512), c.value === "loading" ? (V(), C("div",
|
|
11483
|
+
}, null, 512), c.value === "loading" ? (V(), C("div", gp, [G(e.$slots, "loading", {}, () => [D(p)])])) : c.value === "fallback" ? (V(), C("div", _p, [G(e.$slots, "fallback", {}, () => [t[0] ||= w("p", { class: "text-center text-body-medium text-on-surface-variant" }, " Shaders are not supported in this browser. ", -1)])])) : c.value === "error" ? (V(), C("div", vp, [G(e.$slots, "error", { message: l.value }, () => [w("pre", yp, q(l.value), 1)])])) : S("", !0)], 512));
|
|
11473
11484
|
}
|
|
11474
|
-
}),
|
|
11485
|
+
}), xp = Math.PI;
|
|
11475
11486
|
2 * Math.PI;
|
|
11476
|
-
function
|
|
11487
|
+
function Sp(e, t) {
|
|
11477
11488
|
return {
|
|
11478
11489
|
x: e,
|
|
11479
11490
|
y: t
|
|
11480
11491
|
};
|
|
11481
11492
|
}
|
|
11482
|
-
function
|
|
11493
|
+
function Cp(e) {
|
|
11483
11494
|
return Math.sqrt(e.x * e.x + e.y * e.y);
|
|
11484
11495
|
}
|
|
11485
|
-
function
|
|
11486
|
-
let t =
|
|
11496
|
+
function wp(e) {
|
|
11497
|
+
let t = Cp(e);
|
|
11487
11498
|
return {
|
|
11488
11499
|
x: e.x / t,
|
|
11489
11500
|
y: e.y / t
|
|
11490
11501
|
};
|
|
11491
11502
|
}
|
|
11492
|
-
function
|
|
11503
|
+
function Tp(e, t) {
|
|
11493
11504
|
return e.x * t.x + e.y * t.y;
|
|
11494
11505
|
}
|
|
11495
|
-
function
|
|
11506
|
+
function Ep(e, t) {
|
|
11496
11507
|
return e.x * t.y - e.y * t.x > 0;
|
|
11497
11508
|
}
|
|
11498
|
-
function
|
|
11509
|
+
function Dp(e) {
|
|
11499
11510
|
return {
|
|
11500
11511
|
x: -e.y,
|
|
11501
11512
|
y: e.x
|
|
11502
11513
|
};
|
|
11503
11514
|
}
|
|
11504
|
-
function
|
|
11515
|
+
function Op(e, t) {
|
|
11505
11516
|
return {
|
|
11506
11517
|
x: e.x - t.x,
|
|
11507
11518
|
y: e.y - t.y
|
|
11508
11519
|
};
|
|
11509
11520
|
}
|
|
11510
|
-
function
|
|
11521
|
+
function kp(e, t) {
|
|
11511
11522
|
return {
|
|
11512
11523
|
x: e.x + t.x,
|
|
11513
11524
|
y: e.y + t.y
|
|
11514
11525
|
};
|
|
11515
11526
|
}
|
|
11516
|
-
function
|
|
11527
|
+
function Ap(e, t) {
|
|
11517
11528
|
return {
|
|
11518
11529
|
x: e.x * t,
|
|
11519
11530
|
y: e.y * t
|
|
11520
11531
|
};
|
|
11521
11532
|
}
|
|
11522
|
-
function
|
|
11533
|
+
function jp(e, t) {
|
|
11523
11534
|
return {
|
|
11524
11535
|
x: e.x / t,
|
|
11525
11536
|
y: e.y / t
|
|
11526
11537
|
};
|
|
11527
11538
|
}
|
|
11528
|
-
function
|
|
11539
|
+
function Mp(e, t) {
|
|
11529
11540
|
return Math.sqrt(e * e + t * t);
|
|
11530
11541
|
}
|
|
11531
|
-
function
|
|
11542
|
+
function Np(e, t) {
|
|
11532
11543
|
return e * e + t * t;
|
|
11533
11544
|
}
|
|
11534
|
-
function
|
|
11535
|
-
let n =
|
|
11545
|
+
function Pp(e, t) {
|
|
11546
|
+
let n = Mp(e, t);
|
|
11536
11547
|
return {
|
|
11537
11548
|
x: e / n,
|
|
11538
11549
|
y: t / n
|
|
11539
11550
|
};
|
|
11540
11551
|
}
|
|
11541
|
-
function
|
|
11552
|
+
function Fp(e) {
|
|
11542
11553
|
return {
|
|
11543
11554
|
x: Math.cos(e),
|
|
11544
11555
|
y: Math.sin(e)
|
|
11545
11556
|
};
|
|
11546
11557
|
}
|
|
11547
|
-
function
|
|
11558
|
+
function Ip(e, t, n = {
|
|
11548
11559
|
x: 0,
|
|
11549
11560
|
y: 0
|
|
11550
11561
|
}) {
|
|
11551
|
-
let r =
|
|
11562
|
+
let r = Fp(t);
|
|
11552
11563
|
return {
|
|
11553
11564
|
x: r.x * e + n.x,
|
|
11554
11565
|
y: r.y * e + n.y
|
|
11555
11566
|
};
|
|
11556
11567
|
}
|
|
11557
|
-
function
|
|
11568
|
+
function Lp(e, t, n) {
|
|
11558
11569
|
return (1 - n) * e + n * t;
|
|
11559
11570
|
}
|
|
11560
|
-
function
|
|
11571
|
+
function Rp(e, t, n) {
|
|
11561
11572
|
return {
|
|
11562
|
-
x:
|
|
11563
|
-
y:
|
|
11573
|
+
x: Lp(e.x, t.x, n),
|
|
11574
|
+
y: Lp(e.y, t.y, n)
|
|
11564
11575
|
};
|
|
11565
11576
|
}
|
|
11566
|
-
function
|
|
11577
|
+
function zp(e, t) {
|
|
11567
11578
|
return (e % t + t) % t;
|
|
11568
11579
|
}
|
|
11569
|
-
function
|
|
11570
|
-
return
|
|
11580
|
+
function Bp(e, t, n) {
|
|
11581
|
+
return Ep(Op(t, e), Op(n, t));
|
|
11571
11582
|
}
|
|
11572
|
-
function
|
|
11583
|
+
function Vp(e) {
|
|
11573
11584
|
return e * e;
|
|
11574
11585
|
}
|
|
11575
|
-
function
|
|
11586
|
+
function Hp(e, t, n) {
|
|
11576
11587
|
if (Math.abs(e) < 1e-4) {
|
|
11577
11588
|
if (t !== 0) {
|
|
11578
11589
|
let e = 2 * n / (-2 * t);
|
|
@@ -11586,7 +11597,7 @@ function Vp(e, t, n) {
|
|
|
11586
11597
|
for (let n of [(-t + i) / (2 * e), (-t - i) / (2 * e)]) n >= 0 && n <= 1 && a.push(n);
|
|
11587
11598
|
return a;
|
|
11588
11599
|
}
|
|
11589
|
-
var
|
|
11600
|
+
var Up = class e {
|
|
11590
11601
|
points;
|
|
11591
11602
|
constructor(e, t, n, r, i, a, o, s) {
|
|
11592
11603
|
this.points = e instanceof Float64Array ? e : new Float64Array([
|
|
@@ -11626,13 +11637,13 @@ var Hp = class e {
|
|
|
11626
11637
|
}
|
|
11627
11638
|
pointOnCurve(e) {
|
|
11628
11639
|
let t = 1 - e;
|
|
11629
|
-
return
|
|
11640
|
+
return Sp(this.anchor0X * (t * t * t) + this.control0X * (3 * e * t * t) + this.control1X * (3 * e * e * t) + this.anchor1X * (e * e * e), this.anchor0Y * (t * t * t) + this.control0Y * (3 * e * t * t) + this.control1Y * (3 * e * e * t) + this.anchor1Y * (e * e * e));
|
|
11630
11641
|
}
|
|
11631
11642
|
zeroLength() {
|
|
11632
11643
|
return Math.abs(this.anchor0X - this.anchor1X) < 1e-4 && Math.abs(this.anchor0Y - this.anchor1Y) < 1e-4;
|
|
11633
11644
|
}
|
|
11634
11645
|
convexTo(e) {
|
|
11635
|
-
return
|
|
11646
|
+
return Bp(Sp(this.anchor0X, this.anchor0Y), Sp(this.anchor1X, this.anchor1Y), Sp(e.anchor1X, e.anchor1Y));
|
|
11636
11647
|
}
|
|
11637
11648
|
split(t) {
|
|
11638
11649
|
let n = 1 - t, r = this.pointOnCurve(t);
|
|
@@ -11668,7 +11679,7 @@ var Hp = class e {
|
|
|
11668
11679
|
2 * this.anchor0X - 4 * this.control0X + 2 * this.control1X,
|
|
11669
11680
|
-this.anchor0X + this.control0X
|
|
11670
11681
|
];
|
|
11671
|
-
for (let e of
|
|
11682
|
+
for (let e of Hp(...a)) {
|
|
11672
11683
|
let n = this.pointOnCurve(e).x;
|
|
11673
11684
|
t = Math.min(t, n), r = Math.max(r, n);
|
|
11674
11685
|
}
|
|
@@ -11677,7 +11688,7 @@ var Hp = class e {
|
|
|
11677
11688
|
2 * this.anchor0Y - 4 * this.control0Y + 2 * this.control1Y,
|
|
11678
11689
|
-this.anchor0Y + this.control0Y
|
|
11679
11690
|
];
|
|
11680
|
-
for (let e of
|
|
11691
|
+
for (let e of Hp(...o)) {
|
|
11681
11692
|
let t = this.pointOnCurve(e).y;
|
|
11682
11693
|
n = Math.min(n, t), i = Math.max(i, t);
|
|
11683
11694
|
}
|
|
@@ -11689,19 +11700,19 @@ var Hp = class e {
|
|
|
11689
11700
|
];
|
|
11690
11701
|
}
|
|
11691
11702
|
static straightLine(t, n, r, i) {
|
|
11692
|
-
return new e(t, n,
|
|
11703
|
+
return new e(t, n, Lp(t, r, 1 / 3), Lp(n, i, 1 / 3), Lp(t, r, 2 / 3), Lp(n, i, 2 / 3), r, i);
|
|
11693
11704
|
}
|
|
11694
11705
|
static circularArc(t, n, r, i, a, o) {
|
|
11695
|
-
let s =
|
|
11706
|
+
let s = Pp(r - t, i - n), c = Pp(a - t, o - n), l = Dp(s), u = Dp(c), d = l.x * (a - t) + l.y * (o - n) >= 0, f = s.x * c.x + s.y * c.y;
|
|
11696
11707
|
if (f > .999) return e.straightLine(r, i, a, o);
|
|
11697
|
-
let p =
|
|
11708
|
+
let p = Mp(r - t, i - n) * 4 * (Math.sqrt(2 * (1 - f)) - Math.sqrt(1 - f * f)) / (3 * (1 - f)) * (d ? 1 : -1);
|
|
11698
11709
|
return new e(r, i, r + l.x * p, i + l.y * p, a - u.x * p, o - u.y * p, a, o);
|
|
11699
11710
|
}
|
|
11700
11711
|
static empty(t, n) {
|
|
11701
11712
|
return new e(t, n, t, n, t, n, t, n);
|
|
11702
11713
|
}
|
|
11703
11714
|
};
|
|
11704
|
-
function
|
|
11715
|
+
function Wp(e, t) {
|
|
11705
11716
|
let n = e.cubics.map((e) => e.transformed(t));
|
|
11706
11717
|
return e.type === "edge" ? {
|
|
11707
11718
|
type: "edge",
|
|
@@ -11712,7 +11723,7 @@ function Up(e, t) {
|
|
|
11712
11723
|
convex: e.convex
|
|
11713
11724
|
};
|
|
11714
11725
|
}
|
|
11715
|
-
var
|
|
11726
|
+
var Gp = {
|
|
11716
11727
|
radius: 0,
|
|
11717
11728
|
smoothing: 0
|
|
11718
11729
|
};
|
|
@@ -11722,12 +11733,12 @@ function Q(e, t = 0) {
|
|
|
11722
11733
|
smoothing: t
|
|
11723
11734
|
};
|
|
11724
11735
|
}
|
|
11725
|
-
var
|
|
11736
|
+
var Kp = class e {
|
|
11726
11737
|
features;
|
|
11727
11738
|
center;
|
|
11728
11739
|
cubics;
|
|
11729
11740
|
constructor(e, t) {
|
|
11730
|
-
this.features = e, this.center = t, this.cubics =
|
|
11741
|
+
this.features = e, this.center = t, this.cubics = Yp(e, t);
|
|
11731
11742
|
}
|
|
11732
11743
|
get centerX() {
|
|
11733
11744
|
return this.center.x;
|
|
@@ -11736,12 +11747,12 @@ var Gp = class e {
|
|
|
11736
11747
|
return this.center.y;
|
|
11737
11748
|
}
|
|
11738
11749
|
transformed(t) {
|
|
11739
|
-
let n = t(this.center.x, this.center.y), r = this.features.map((e) =>
|
|
11750
|
+
let n = t(this.center.x, this.center.y), r = this.features.map((e) => Wp(e, t));
|
|
11740
11751
|
return new e(r, n);
|
|
11741
11752
|
}
|
|
11742
11753
|
normalized() {
|
|
11743
11754
|
let e = this.calculateBounds(), t = e[2] - e[0], n = e[3] - e[1], r = Math.max(t, n), i = (r - t) / 2 - e[0], a = (r - n) / 2 - e[1];
|
|
11744
|
-
return this.transformed((e, t) =>
|
|
11755
|
+
return this.transformed((e, t) => Sp((e + i) / r, (t + a) / r));
|
|
11745
11756
|
}
|
|
11746
11757
|
calculateBounds(e = !0) {
|
|
11747
11758
|
let t = Number.MAX_VALUE, n = Number.MAX_VALUE, r = -Number.MAX_VALUE, i = -Number.MAX_VALUE;
|
|
@@ -11759,7 +11770,7 @@ var Gp = class e {
|
|
|
11759
11770
|
calculateMaxBounds() {
|
|
11760
11771
|
let e = 0;
|
|
11761
11772
|
for (let t of this.cubics) {
|
|
11762
|
-
let n =
|
|
11773
|
+
let n = Np(t.anchor0X - this.centerX, t.anchor0Y - this.centerY), r = t.pointOnCurve(.5), i = Np(r.x - this.centerX, r.y - this.centerY);
|
|
11763
11774
|
e = Math.max(e, Math.max(n, i));
|
|
11764
11775
|
}
|
|
11765
11776
|
let t = Math.sqrt(e);
|
|
@@ -11771,20 +11782,20 @@ var Gp = class e {
|
|
|
11771
11782
|
];
|
|
11772
11783
|
}
|
|
11773
11784
|
};
|
|
11774
|
-
function
|
|
11785
|
+
function qp(e, t, n, r) {
|
|
11775
11786
|
return t === 0 && r ? r : t === e.length ? n : e[t].cubics;
|
|
11776
11787
|
}
|
|
11777
|
-
function
|
|
11788
|
+
function Jp(e, t) {
|
|
11778
11789
|
if (e.zeroLength()) {
|
|
11779
11790
|
if (t.last) {
|
|
11780
11791
|
let n = new Float64Array(t.last.points);
|
|
11781
|
-
n[6] = e.anchor1X, n[7] = e.anchor1Y, t.last = new
|
|
11792
|
+
n[6] = e.anchor1X, n[7] = e.anchor1Y, t.last = new Up(n);
|
|
11782
11793
|
}
|
|
11783
11794
|
return;
|
|
11784
11795
|
}
|
|
11785
11796
|
t.last && t.result.push(t.last), t.last = e, t.first ||= e;
|
|
11786
11797
|
}
|
|
11787
|
-
function
|
|
11798
|
+
function Yp(e, t) {
|
|
11788
11799
|
let n = null, r = null;
|
|
11789
11800
|
if (e.length > 0 && e[0].cubics.length === 3) {
|
|
11790
11801
|
let [t, i] = e[0].cubics[1].split(.5);
|
|
@@ -11796,13 +11807,13 @@ function Jp(e, t) {
|
|
|
11796
11807
|
result: []
|
|
11797
11808
|
};
|
|
11798
11809
|
for (let t = 0; t <= e.length; t++) {
|
|
11799
|
-
let a =
|
|
11810
|
+
let a = qp(e, t, n, r);
|
|
11800
11811
|
if (!a) break;
|
|
11801
|
-
for (let e of a)
|
|
11812
|
+
for (let e of a) Jp(e, i);
|
|
11802
11813
|
}
|
|
11803
|
-
return i.last && i.first ? i.result.push(new
|
|
11814
|
+
return i.last && i.first ? i.result.push(new Up(i.last.anchor0X, i.last.anchor0Y, i.last.control0X, i.last.control0Y, i.last.control1X, i.last.control1Y, i.first.anchor0X, i.first.anchor0Y)) : i.result.push(Up.empty(t.x, t.y)), i.result;
|
|
11804
11815
|
}
|
|
11805
|
-
var
|
|
11816
|
+
var Xp = class {
|
|
11806
11817
|
d1;
|
|
11807
11818
|
d2;
|
|
11808
11819
|
cornerRadius;
|
|
@@ -11810,14 +11821,14 @@ var Yp = class {
|
|
|
11810
11821
|
cosAngle;
|
|
11811
11822
|
sinAngle;
|
|
11812
11823
|
expectedRoundCut;
|
|
11813
|
-
center =
|
|
11824
|
+
center = Sp(0, 0);
|
|
11814
11825
|
p0;
|
|
11815
11826
|
p1;
|
|
11816
11827
|
p2;
|
|
11817
11828
|
constructor(e, t, n, r) {
|
|
11818
11829
|
this.p0 = e, this.p1 = t, this.p2 = n;
|
|
11819
|
-
let i =
|
|
11820
|
-
o > 0 && s > 0 ? (this.d1 =
|
|
11830
|
+
let i = Op(e, t), a = Op(n, t), o = Cp(i), s = Cp(a);
|
|
11831
|
+
o > 0 && s > 0 ? (this.d1 = jp(i, o), this.d2 = jp(a, s), this.cornerRadius = r.radius, this.smoothing = r.smoothing, this.cosAngle = Tp(this.d1, this.d2), this.sinAngle = Math.sqrt(1 - Vp(this.cosAngle)), this.expectedRoundCut = this.sinAngle > .001 ? this.cornerRadius * (this.cosAngle + 1) / this.sinAngle : 0) : (this.d1 = Sp(0, 0), this.d2 = Sp(0, 0), this.cornerRadius = 0, this.smoothing = 0, this.cosAngle = 0, this.sinAngle = 0, this.expectedRoundCut = 0);
|
|
11821
11832
|
}
|
|
11822
11833
|
get expectedCut() {
|
|
11823
11834
|
return (1 + this.smoothing) * this.expectedRoundCut;
|
|
@@ -11826,51 +11837,51 @@ var Yp = class {
|
|
|
11826
11837
|
return e > this.expectedCut ? this.smoothing : e > this.expectedRoundCut ? this.smoothing * (e - this.expectedRoundCut) / (this.expectedCut - this.expectedRoundCut) : 0;
|
|
11827
11838
|
}
|
|
11828
11839
|
lineIntersection(e, t, n, r) {
|
|
11829
|
-
let i =
|
|
11840
|
+
let i = Dp(r), a = Tp(t, i);
|
|
11830
11841
|
if (Math.abs(a) < 1e-4) return null;
|
|
11831
|
-
let o =
|
|
11832
|
-
return Math.abs(a) < 1e-4 * Math.abs(o) ? null :
|
|
11842
|
+
let o = Tp(Op(n, e), i);
|
|
11843
|
+
return Math.abs(a) < 1e-4 * Math.abs(o) ? null : kp(e, Ap(t, o / a));
|
|
11833
11844
|
}
|
|
11834
11845
|
computeFlankingCurve(e, t, n, r, i, a, o, s) {
|
|
11835
|
-
let c =
|
|
11836
|
-
return new
|
|
11846
|
+
let c = wp(Op(r, n)), l = kp(n, Ap(c, e * (1 + t))), u = Rp(i, jp(kp(i, a), 2), t), d = kp(o, Ap(Pp(u.x - o.x, u.y - o.y), s)), f = Dp(Op(d, o)), p = this.lineIntersection(r, c, d, f) ?? i, m = jp(kp(l, Ap(p, 2)), 3);
|
|
11847
|
+
return new Up(l.x, l.y, m.x, m.y, p.x, p.y, d.x, d.y);
|
|
11837
11848
|
}
|
|
11838
11849
|
getCubics(e, t = e) {
|
|
11839
11850
|
let n = Math.min(e, t);
|
|
11840
|
-
if (this.expectedRoundCut < 1e-4 || n < 1e-4 || this.cornerRadius < 1e-4) return this.center = this.p1, [
|
|
11841
|
-
let r = Math.min(n, this.expectedRoundCut), i = this.calculateActualSmoothingValue(e), a = this.calculateActualSmoothingValue(t), o = this.cornerRadius * (r / this.expectedRoundCut), s = Math.sqrt(
|
|
11842
|
-
this.center =
|
|
11843
|
-
let l =
|
|
11851
|
+
if (this.expectedRoundCut < 1e-4 || n < 1e-4 || this.cornerRadius < 1e-4) return this.center = this.p1, [Up.straightLine(this.p1.x, this.p1.y, this.p1.x, this.p1.y)];
|
|
11852
|
+
let r = Math.min(n, this.expectedRoundCut), i = this.calculateActualSmoothingValue(e), a = this.calculateActualSmoothingValue(t), o = this.cornerRadius * (r / this.expectedRoundCut), s = Math.sqrt(Vp(o) + Vp(r)), c = wp(jp(kp(this.d1, this.d2), 2));
|
|
11853
|
+
this.center = kp(this.p1, Ap(c, s));
|
|
11854
|
+
let l = kp(this.p1, Ap(this.d1, r)), u = kp(this.p1, Ap(this.d2, r)), d = this.computeFlankingCurve(r, i, this.p1, this.p0, l, u, this.center, o), f = this.computeFlankingCurve(r, a, this.p1, this.p2, u, l, this.center, o).reverse();
|
|
11844
11855
|
return [
|
|
11845
11856
|
d,
|
|
11846
|
-
|
|
11857
|
+
Up.circularArc(this.center.x, this.center.y, d.anchor1X, d.anchor1Y, f.anchor0X, f.anchor0Y),
|
|
11847
11858
|
f
|
|
11848
11859
|
];
|
|
11849
11860
|
}
|
|
11850
11861
|
};
|
|
11851
|
-
function
|
|
11862
|
+
function Zp(e) {
|
|
11852
11863
|
let t = 0, n = 0;
|
|
11853
11864
|
for (let r = 0; r < e.length; r += 2) t += e[r], n += e[r + 1];
|
|
11854
11865
|
let r = e.length / 2;
|
|
11855
|
-
return
|
|
11866
|
+
return Sp(t / r, n / r);
|
|
11856
11867
|
}
|
|
11857
|
-
function
|
|
11868
|
+
function Qp(e, t, n, r) {
|
|
11858
11869
|
let i = [];
|
|
11859
11870
|
for (let a = 0; a < e; a++) {
|
|
11860
|
-
let o =
|
|
11871
|
+
let o = Ip(t, xp / e * 2 * a, Sp(n, r));
|
|
11861
11872
|
i.push(o.x, o.y);
|
|
11862
11873
|
}
|
|
11863
11874
|
return i;
|
|
11864
11875
|
}
|
|
11865
|
-
function
|
|
11876
|
+
function $p(e, t = Gp, n = null, r = Number.MIN_VALUE, i = Number.MIN_VALUE) {
|
|
11866
11877
|
let a = e.length / 2, o = [];
|
|
11867
11878
|
for (let r = 0; r < a; r++) {
|
|
11868
11879
|
let i = n?.[r] ?? t, s = (r + a - 1) % a * 2, c = (r + 1) % a * 2;
|
|
11869
|
-
o.push(new
|
|
11880
|
+
o.push(new Xp(Sp(e[s], e[s + 1]), Sp(e[r * 2], e[r * 2 + 1]), Sp(e[c], e[c + 1]), i));
|
|
11870
11881
|
}
|
|
11871
11882
|
let s = [];
|
|
11872
11883
|
for (let t = 0; t < a; t++) {
|
|
11873
|
-
let n = o[t].expectedRoundCut + o[(t + 1) % a].expectedRoundCut, r = o[t].expectedCut + o[(t + 1) % a].expectedCut, i = e[t * 2], c = e[t * 2 + 1], l = e[(t + 1) % a * 2], u = e[(t + 1) % a * 2 + 1], d =
|
|
11884
|
+
let n = o[t].expectedRoundCut + o[(t + 1) % a].expectedRoundCut, r = o[t].expectedCut + o[(t + 1) % a].expectedCut, i = e[t * 2], c = e[t * 2 + 1], l = e[(t + 1) % a * 2], u = e[(t + 1) % a * 2 + 1], d = Mp(i - l, c - u);
|
|
11874
11885
|
n > d ? s.push([d / n, 0]) : r > d ? s.push([1, (d - n) / (r - n)]) : s.push([1, 1]);
|
|
11875
11886
|
}
|
|
11876
11887
|
let c = [];
|
|
@@ -11884,32 +11895,32 @@ function Qp(e, t = Wp, n = null, r = Number.MIN_VALUE, i = Number.MIN_VALUE) {
|
|
|
11884
11895
|
}
|
|
11885
11896
|
let l = [];
|
|
11886
11897
|
for (let t = 0; t < a; t++) {
|
|
11887
|
-
let n = (t + a - 1) % a, r = (t + 1) % a, i =
|
|
11898
|
+
let n = (t + a - 1) % a, r = (t + 1) % a, i = Sp(e[t * 2], e[t * 2 + 1]), o = em(Sp(e[n * 2], e[n * 2 + 1]), i, Sp(e[r * 2], e[r * 2 + 1]));
|
|
11888
11899
|
l.push({
|
|
11889
11900
|
type: "corner",
|
|
11890
11901
|
cubics: c[t],
|
|
11891
11902
|
convex: o
|
|
11892
11903
|
}), l.push({
|
|
11893
11904
|
type: "edge",
|
|
11894
|
-
cubics: [
|
|
11905
|
+
cubics: [Up.straightLine(c[t][c[t].length - 1].anchor1X, c[t][c[t].length - 1].anchor1Y, c[(t + 1) % a][0].anchor0X, c[(t + 1) % a][0].anchor0Y)]
|
|
11895
11906
|
});
|
|
11896
11907
|
}
|
|
11897
|
-
return new
|
|
11908
|
+
return new Kp(l, r === Number.MIN_VALUE || i === Number.MIN_VALUE ? Zp(e) : Sp(r, i));
|
|
11898
11909
|
}
|
|
11899
|
-
function
|
|
11900
|
-
let r =
|
|
11910
|
+
function em(e, t, n) {
|
|
11911
|
+
let r = Op(t, e), i = Op(n, t);
|
|
11901
11912
|
return r.x * i.y - r.y * i.x > 0;
|
|
11902
11913
|
}
|
|
11903
|
-
function
|
|
11904
|
-
return Qp(
|
|
11914
|
+
function tm(e, t = 1, n = 0, r = 0, i = Gp, a = null) {
|
|
11915
|
+
return $p(Qp(e, t, n, r), i, a, n, r);
|
|
11905
11916
|
}
|
|
11906
|
-
function
|
|
11907
|
-
let i =
|
|
11908
|
-
return
|
|
11917
|
+
function nm(e = 8, t = 1, n = 0, r = 0) {
|
|
11918
|
+
let i = xp / e;
|
|
11919
|
+
return tm(e, t / Math.cos(i), n, r, Q(t));
|
|
11909
11920
|
}
|
|
11910
|
-
function
|
|
11921
|
+
function rm(e = 2, t = 2, n = Gp, r = null, i = 0, a = 0) {
|
|
11911
11922
|
let o = i - e / 2, s = a - t / 2, c = i + e / 2, l = a + t / 2;
|
|
11912
|
-
return
|
|
11923
|
+
return $p([
|
|
11913
11924
|
c,
|
|
11914
11925
|
l,
|
|
11915
11926
|
o,
|
|
@@ -11920,234 +11931,234 @@ function nm(e = 2, t = 2, n = Wp, r = null, i = 0, a = 0) {
|
|
|
11920
11931
|
s
|
|
11921
11932
|
], n, r, i, a);
|
|
11922
11933
|
}
|
|
11923
|
-
function
|
|
11934
|
+
function im(e, t, n, r, i) {
|
|
11924
11935
|
let a = [];
|
|
11925
11936
|
for (let o = 0; o < e; o++) {
|
|
11926
|
-
let s =
|
|
11927
|
-
a.push(s.x + r, s.y + i), s =
|
|
11937
|
+
let s = Ip(t, xp / e * 2 * o);
|
|
11938
|
+
a.push(s.x + r, s.y + i), s = Ip(n, xp / e * (2 * o + 1)), a.push(s.x + r, s.y + i);
|
|
11928
11939
|
}
|
|
11929
11940
|
return a;
|
|
11930
11941
|
}
|
|
11931
|
-
function
|
|
11942
|
+
function am(e, t = 1, n = .5, r = Gp, i = null, a = null, o = 0, s = 0) {
|
|
11932
11943
|
let c = a;
|
|
11933
11944
|
if (!c && i) {
|
|
11934
11945
|
c = [];
|
|
11935
11946
|
for (let t = 0; t < e; t++) c.push(r, i);
|
|
11936
11947
|
}
|
|
11937
|
-
return
|
|
11948
|
+
return $p(im(e, t, n, o, s), r, c, o, s);
|
|
11938
11949
|
}
|
|
11939
|
-
function $(e, t, n =
|
|
11950
|
+
function $(e, t, n = Gp) {
|
|
11940
11951
|
return {
|
|
11941
11952
|
x: e,
|
|
11942
11953
|
y: t,
|
|
11943
11954
|
r: n
|
|
11944
11955
|
};
|
|
11945
11956
|
}
|
|
11946
|
-
function
|
|
11947
|
-
return Math.atan2(t, e) * 180 /
|
|
11957
|
+
function om(e, t) {
|
|
11958
|
+
return Math.atan2(t, e) * 180 / xp;
|
|
11948
11959
|
}
|
|
11949
|
-
function
|
|
11950
|
-
return e / 360 * 2 *
|
|
11960
|
+
function sm(e) {
|
|
11961
|
+
return e / 360 * 2 * xp;
|
|
11951
11962
|
}
|
|
11952
|
-
function
|
|
11963
|
+
function cm(e, t) {
|
|
11953
11964
|
return Math.sqrt(e * e + t * t);
|
|
11954
11965
|
}
|
|
11955
|
-
function
|
|
11956
|
-
let a =
|
|
11966
|
+
function lm(e, t, n, r = 0, i = 0) {
|
|
11967
|
+
let a = sm(n), o = e - r, s = t - i;
|
|
11957
11968
|
return [o * Math.cos(a) - s * Math.sin(a) + r, o * Math.sin(a) + s * Math.cos(a) + i];
|
|
11958
11969
|
}
|
|
11959
|
-
function
|
|
11960
|
-
let i = e.map((e) =>
|
|
11970
|
+
function um(e, t, n, r) {
|
|
11971
|
+
let i = e.map((e) => om(e.x - n, e.y - r)), a = e.map((e) => cm(e.x - n, e.y - r)), o = t * 2, s = 360 / o, c = [];
|
|
11961
11972
|
for (let t = 0; t < o; t++) {
|
|
11962
11973
|
let o = t % 2 != 0;
|
|
11963
11974
|
for (let l = 0; l < e.length; l++) {
|
|
11964
11975
|
let u = o ? e.length - 1 - l : l;
|
|
11965
11976
|
if (u > 0 || !o) {
|
|
11966
|
-
let l = o ? s - i[u] + 2 * i[0] : i[u], d =
|
|
11977
|
+
let l = o ? s - i[u] + 2 * i[0] : i[u], d = sm(s * t + l), f = Math.cos(d) * a[u] + n, p = Math.sin(d) * a[u] + r;
|
|
11967
11978
|
c.push($(f, p, e[u].r));
|
|
11968
11979
|
}
|
|
11969
11980
|
}
|
|
11970
11981
|
}
|
|
11971
11982
|
return c;
|
|
11972
11983
|
}
|
|
11973
|
-
function
|
|
11984
|
+
function dm(e, t, n, r) {
|
|
11974
11985
|
let i = e.length, a = [];
|
|
11975
11986
|
for (let o = 0; o < i * t; o++) {
|
|
11976
|
-
let s = e[o % i], [c, l] =
|
|
11987
|
+
let s = e[o % i], [c, l] = lm(s.x, s.y, Math.floor(o / i) * (360 / t), n, r);
|
|
11977
11988
|
a.push($(c, l, s.r));
|
|
11978
11989
|
}
|
|
11979
11990
|
return a;
|
|
11980
11991
|
}
|
|
11981
|
-
function
|
|
11982
|
-
return i ?
|
|
11992
|
+
function fm(e, t, n, r, i) {
|
|
11993
|
+
return i ? um(e, t, n, r) : dm(e, t, n, r);
|
|
11983
11994
|
}
|
|
11984
|
-
function
|
|
11985
|
-
let a =
|
|
11995
|
+
function pm(e, t, n = .5, r = .5, i = !1) {
|
|
11996
|
+
let a = fm(e, t, n, r, i), o = [], s = [];
|
|
11986
11997
|
for (let e of a) o.push(e.x, e.y), s.push(e.r);
|
|
11987
|
-
return
|
|
11998
|
+
return $p(o, Gp, s, n, r);
|
|
11988
11999
|
}
|
|
11989
|
-
function
|
|
11990
|
-
let n =
|
|
12000
|
+
function mm(e, t) {
|
|
12001
|
+
let n = sm(t), r = Math.cos(n), i = Math.sin(n);
|
|
11991
12002
|
return e.transformed((e, t) => ({
|
|
11992
12003
|
x: e * r - t * i,
|
|
11993
12004
|
y: e * i + t * r
|
|
11994
12005
|
}));
|
|
11995
12006
|
}
|
|
11996
|
-
var
|
|
11997
|
-
function ym() {
|
|
11998
|
-
return tm(10);
|
|
11999
|
-
}
|
|
12007
|
+
var hm = Q(.15), gm = Q(.2), _m = Q(.3), vm = Q(.5), ym = Q(1);
|
|
12000
12008
|
function bm() {
|
|
12001
|
-
return nm(
|
|
12009
|
+
return nm(10);
|
|
12002
12010
|
}
|
|
12003
12011
|
function xm() {
|
|
12004
|
-
return
|
|
12012
|
+
return rm(1, 1, _m);
|
|
12005
12013
|
}
|
|
12006
12014
|
function Sm() {
|
|
12007
|
-
return pm(
|
|
12015
|
+
return pm([$(.926, .97, Q(.189, .811)), $(-.021, .967, Q(.187, .057))], 2);
|
|
12016
|
+
}
|
|
12017
|
+
function Cm() {
|
|
12018
|
+
return mm($p((() => {
|
|
12008
12019
|
let e = [];
|
|
12009
12020
|
for (let t = 0; t < 4; t++) {
|
|
12010
|
-
let n =
|
|
12021
|
+
let n = xp / 4 * 2 * t;
|
|
12011
12022
|
e.push(Math.cos(n) * 1, Math.sin(n) * 1);
|
|
12012
12023
|
}
|
|
12013
12024
|
return e;
|
|
12014
|
-
})(),
|
|
12015
|
-
|
|
12016
|
-
|
|
12017
|
-
|
|
12018
|
-
|
|
12025
|
+
})(), Gp, [
|
|
12026
|
+
ym,
|
|
12027
|
+
ym,
|
|
12028
|
+
gm,
|
|
12029
|
+
gm
|
|
12019
12030
|
], 0, 0), -135);
|
|
12020
12031
|
}
|
|
12021
|
-
function
|
|
12022
|
-
return
|
|
12032
|
+
function wm() {
|
|
12033
|
+
return pm([
|
|
12023
12034
|
$(1.004, 1, Q(.148, .417)),
|
|
12024
12035
|
$(0, 1, Q(.151)),
|
|
12025
12036
|
$(0, -.003, Q(.148)),
|
|
12026
12037
|
$(.978, .02, Q(.803))
|
|
12027
12038
|
], 1);
|
|
12028
12039
|
}
|
|
12029
|
-
function
|
|
12030
|
-
return
|
|
12040
|
+
function Tm() {
|
|
12041
|
+
return pm([
|
|
12031
12042
|
$(.5, .892, Q(.313)),
|
|
12032
12043
|
$(-.216, 1.05, Q(.207)),
|
|
12033
12044
|
$(.499, -.16, Q(.215, 1)),
|
|
12034
12045
|
$(1.225, 1.06, Q(.211))
|
|
12035
12046
|
], 1);
|
|
12036
12047
|
}
|
|
12037
|
-
function
|
|
12038
|
-
return
|
|
12039
|
-
|
|
12040
|
-
|
|
12041
|
-
|
|
12042
|
-
|
|
12048
|
+
function Em() {
|
|
12049
|
+
return rm(1.6, 1, Gp, [
|
|
12050
|
+
gm,
|
|
12051
|
+
gm,
|
|
12052
|
+
ym,
|
|
12053
|
+
ym
|
|
12043
12054
|
]);
|
|
12044
12055
|
}
|
|
12045
|
-
function
|
|
12046
|
-
return
|
|
12056
|
+
function Dm() {
|
|
12057
|
+
return mm(nm().transformed((e, t) => ({
|
|
12047
12058
|
x: e,
|
|
12048
12059
|
y: t * .64
|
|
12049
12060
|
})), -45);
|
|
12050
12061
|
}
|
|
12051
|
-
function
|
|
12052
|
-
return
|
|
12062
|
+
function Om() {
|
|
12063
|
+
return pm([
|
|
12053
12064
|
$(.961, .039, Q(.426)),
|
|
12054
12065
|
$(1.001, .428),
|
|
12055
12066
|
$(1, .609, Q(1))
|
|
12056
12067
|
], 2, .5, .5, !0);
|
|
12057
12068
|
}
|
|
12058
|
-
function
|
|
12059
|
-
return
|
|
12069
|
+
function km() {
|
|
12070
|
+
return mm($p((() => {
|
|
12060
12071
|
let e = [];
|
|
12061
|
-
for (let t = 0; t < 3; t++) e.push(Math.cos(
|
|
12072
|
+
for (let t = 0; t < 3; t++) e.push(Math.cos(xp / 3 * 2 * t), Math.sin(xp / 3 * 2 * t));
|
|
12062
12073
|
return e;
|
|
12063
|
-
})(),
|
|
12064
|
-
}
|
|
12065
|
-
function km() {
|
|
12066
|
-
return fm([$(.5, 1.096, Q(.151, .524)), $(.04, .5, Q(.159))], 2);
|
|
12074
|
+
})(), gm, null, 0, 0), -90);
|
|
12067
12075
|
}
|
|
12068
12076
|
function Am() {
|
|
12069
|
-
return
|
|
12077
|
+
return pm([$(.5, 1.096, Q(.151, .524)), $(.04, .5, Q(.159))], 2);
|
|
12078
|
+
}
|
|
12079
|
+
function jm() {
|
|
12080
|
+
return pm([
|
|
12070
12081
|
$(.171, .841, Q(.159)),
|
|
12071
12082
|
$(-.02, .5, Q(.14)),
|
|
12072
12083
|
$(.17, .159, Q(.159))
|
|
12073
12084
|
], 2);
|
|
12074
12085
|
}
|
|
12075
|
-
function
|
|
12076
|
-
return
|
|
12086
|
+
function Mm() {
|
|
12087
|
+
return pm([
|
|
12077
12088
|
$(.5, -.009, Q(.172)),
|
|
12078
12089
|
$(1.03, .365, Q(.164)),
|
|
12079
12090
|
$(.828, .97, Q(.169))
|
|
12080
12091
|
], 1, .5, .5, !0);
|
|
12081
12092
|
}
|
|
12082
|
-
function
|
|
12083
|
-
return
|
|
12093
|
+
function Nm() {
|
|
12094
|
+
return pm([
|
|
12084
12095
|
$(.499, 1.023, Q(.241, .778)),
|
|
12085
12096
|
$(-.005, .792, Q(.208)),
|
|
12086
12097
|
$(.073, .258, Q(.228)),
|
|
12087
12098
|
$(.433, 0, Q(.491))
|
|
12088
12099
|
], 1, .5, .5, !0);
|
|
12089
12100
|
}
|
|
12090
|
-
function Nm() {
|
|
12091
|
-
return im(8, 1, .8, mm);
|
|
12092
|
-
}
|
|
12093
12101
|
function Pm() {
|
|
12094
|
-
return
|
|
12102
|
+
return am(8, 1, .8, hm);
|
|
12095
12103
|
}
|
|
12096
12104
|
function Fm() {
|
|
12097
|
-
return
|
|
12105
|
+
return pm([$(.5, 1.08, Q(.085)), $(.358, .843, Q(.085))], 8);
|
|
12098
12106
|
}
|
|
12099
12107
|
function Im() {
|
|
12100
|
-
return
|
|
12108
|
+
return pm([$(1.237, 1.236, Q(.258)), $(.5, .918, Q(.233))], 4);
|
|
12101
12109
|
}
|
|
12102
12110
|
function Lm() {
|
|
12103
|
-
return pm(
|
|
12111
|
+
return pm([$(.723, .884, Q(.394)), $(.5, 1.099, Q(.398))], 6);
|
|
12104
12112
|
}
|
|
12105
12113
|
function Rm() {
|
|
12106
|
-
return
|
|
12114
|
+
return mm(am(7, 1, .75, vm), -90);
|
|
12107
12115
|
}
|
|
12108
12116
|
function zm() {
|
|
12109
|
-
return
|
|
12117
|
+
return mm(am(9, 1, .8, vm), -90);
|
|
12110
12118
|
}
|
|
12111
12119
|
function Bm() {
|
|
12112
|
-
return
|
|
12120
|
+
return mm(am(12, 1, .8, vm), -90);
|
|
12121
|
+
}
|
|
12122
|
+
function Vm() {
|
|
12123
|
+
return pm([
|
|
12113
12124
|
$(.5, 0, Q(1)),
|
|
12114
12125
|
$(1, 0, Q(1)),
|
|
12115
12126
|
$(1, 1.14, Q(.254, .106)),
|
|
12116
12127
|
$(.575, .906, Q(.253))
|
|
12117
12128
|
], 1, .5, .5, !0);
|
|
12118
12129
|
}
|
|
12119
|
-
function Vm() {
|
|
12120
|
-
return fm([$(.5, .074), $(.725, -.099, Q(.476))], 4, .5, .5, !0);
|
|
12121
|
-
}
|
|
12122
12130
|
function Hm() {
|
|
12123
|
-
return
|
|
12131
|
+
return pm([$(.5, .074), $(.725, -.099, Q(.476))], 4, .5, .5, !0);
|
|
12124
12132
|
}
|
|
12125
12133
|
function Um() {
|
|
12126
|
-
return
|
|
12134
|
+
return pm([$(.5, .036), $(.758, -.101, Q(.209))], 8);
|
|
12127
12135
|
}
|
|
12128
12136
|
function Wm() {
|
|
12129
|
-
return
|
|
12137
|
+
return pm([$(.5, -.006, Q(.006)), $(.592, .158, Q(.006))], 12);
|
|
12130
12138
|
}
|
|
12131
12139
|
function Gm() {
|
|
12132
|
-
return
|
|
12140
|
+
return pm([$(.193, .277, Q(.053)), $(.176, .055, Q(.053))], 10);
|
|
12133
12141
|
}
|
|
12134
12142
|
function Km() {
|
|
12135
|
-
return
|
|
12143
|
+
return pm([$(.457, .296, Q(.007)), $(.5, -.051, Q(.007))], 15);
|
|
12144
|
+
}
|
|
12145
|
+
function qm() {
|
|
12146
|
+
return pm([
|
|
12136
12147
|
$(.733, .454),
|
|
12137
12148
|
$(.839, .437, Q(.532)),
|
|
12138
12149
|
$(.949, .449, Q(.439, 1)),
|
|
12139
12150
|
$(.998, .478, Q(.174))
|
|
12140
12151
|
], 16, .5, .5, !0);
|
|
12141
12152
|
}
|
|
12142
|
-
function
|
|
12143
|
-
return
|
|
12153
|
+
function Jm() {
|
|
12154
|
+
return pm([
|
|
12144
12155
|
$(.37, .187),
|
|
12145
12156
|
$(.416, .049, Q(.381)),
|
|
12146
12157
|
$(.479, .001, Q(.095))
|
|
12147
12158
|
], 8, .5, .5, !0);
|
|
12148
12159
|
}
|
|
12149
|
-
function
|
|
12150
|
-
return
|
|
12160
|
+
function Ym() {
|
|
12161
|
+
return pm([
|
|
12151
12162
|
$(.5, .053),
|
|
12152
12163
|
$(.545, -.04, Q(.405)),
|
|
12153
12164
|
$(.67, -.035, Q(.426)),
|
|
@@ -12164,15 +12175,15 @@ function Jm() {
|
|
|
12164
12175
|
y: t * .742
|
|
12165
12176
|
}));
|
|
12166
12177
|
}
|
|
12167
|
-
function
|
|
12168
|
-
return
|
|
12178
|
+
function Xm() {
|
|
12179
|
+
return pm([
|
|
12169
12180
|
$(.87, .13, Q(.146)),
|
|
12170
12181
|
$(.818, .357),
|
|
12171
12182
|
$(1, .332, Q(.853))
|
|
12172
12183
|
], 4, .5, .5, !0);
|
|
12173
12184
|
}
|
|
12174
|
-
function
|
|
12175
|
-
return
|
|
12185
|
+
function Zm() {
|
|
12186
|
+
return pm([
|
|
12176
12187
|
$(.5, 0),
|
|
12177
12188
|
$(.704, 0),
|
|
12178
12189
|
$(.704, .065),
|
|
@@ -12183,8 +12194,8 @@ function Xm() {
|
|
|
12183
12194
|
$(1, .296)
|
|
12184
12195
|
], 2, .5, .5, !0);
|
|
12185
12196
|
}
|
|
12186
|
-
function
|
|
12187
|
-
return
|
|
12197
|
+
function Qm() {
|
|
12198
|
+
return pm([
|
|
12188
12199
|
$(.11, .5),
|
|
12189
12200
|
$(.113, 0),
|
|
12190
12201
|
$(.287, 0),
|
|
@@ -12200,68 +12211,68 @@ function Zm() {
|
|
|
12200
12211
|
$(.888, .439)
|
|
12201
12212
|
], 1, .5, .5, !0);
|
|
12202
12213
|
}
|
|
12203
|
-
function
|
|
12204
|
-
return
|
|
12214
|
+
function $m() {
|
|
12215
|
+
return pm([
|
|
12205
12216
|
$(.796, .5),
|
|
12206
12217
|
$(.853, .518, Q(1)),
|
|
12207
12218
|
$(.992, .631, Q(1)),
|
|
12208
12219
|
$(.968, 1, Q(1))
|
|
12209
12220
|
], 2, .5, .5, !0);
|
|
12210
12221
|
}
|
|
12211
|
-
function
|
|
12212
|
-
return
|
|
12222
|
+
function eh() {
|
|
12223
|
+
return pm([
|
|
12213
12224
|
$(.5, .268, Q(.016)),
|
|
12214
12225
|
$(.792, -.066, Q(.958)),
|
|
12215
12226
|
$(1.064, .276, Q(1)),
|
|
12216
12227
|
$(.501, .946, Q(.129))
|
|
12217
12228
|
], 1, .5, .5, !0);
|
|
12218
12229
|
}
|
|
12219
|
-
var
|
|
12220
|
-
Circle:
|
|
12221
|
-
Square:
|
|
12222
|
-
Slanted:
|
|
12223
|
-
Arch:
|
|
12224
|
-
Fan:
|
|
12225
|
-
Arrow:
|
|
12226
|
-
SemiCircle:
|
|
12227
|
-
Oval:
|
|
12228
|
-
Pill:
|
|
12229
|
-
Triangle:
|
|
12230
|
-
Diamond:
|
|
12231
|
-
ClamShell:
|
|
12232
|
-
Pentagon:
|
|
12233
|
-
Gem:
|
|
12234
|
-
Sunny:
|
|
12235
|
-
VerySunny:
|
|
12236
|
-
Cookie4Sided:
|
|
12237
|
-
Cookie6Sided:
|
|
12238
|
-
Cookie7Sided:
|
|
12239
|
-
Cookie9Sided:
|
|
12240
|
-
Cookie12Sided:
|
|
12241
|
-
Ghostish:
|
|
12242
|
-
Clover4Leaf:
|
|
12243
|
-
Clover8Leaf:
|
|
12244
|
-
Burst:
|
|
12245
|
-
SoftBurst:
|
|
12246
|
-
Boom:
|
|
12247
|
-
SoftBoom:
|
|
12248
|
-
Flower:
|
|
12249
|
-
Puffy:
|
|
12250
|
-
PuffyDiamond:
|
|
12251
|
-
PixelCircle:
|
|
12252
|
-
PixelTriangle:
|
|
12253
|
-
Bun:
|
|
12254
|
-
Heart:
|
|
12255
|
-
},
|
|
12256
|
-
function
|
|
12257
|
-
let t =
|
|
12230
|
+
var th = {
|
|
12231
|
+
Circle: bm,
|
|
12232
|
+
Square: xm,
|
|
12233
|
+
Slanted: Sm,
|
|
12234
|
+
Arch: Cm,
|
|
12235
|
+
Fan: wm,
|
|
12236
|
+
Arrow: Tm,
|
|
12237
|
+
SemiCircle: Em,
|
|
12238
|
+
Oval: Dm,
|
|
12239
|
+
Pill: Om,
|
|
12240
|
+
Triangle: km,
|
|
12241
|
+
Diamond: Am,
|
|
12242
|
+
ClamShell: jm,
|
|
12243
|
+
Pentagon: Mm,
|
|
12244
|
+
Gem: Nm,
|
|
12245
|
+
Sunny: Pm,
|
|
12246
|
+
VerySunny: Fm,
|
|
12247
|
+
Cookie4Sided: Im,
|
|
12248
|
+
Cookie6Sided: Lm,
|
|
12249
|
+
Cookie7Sided: Rm,
|
|
12250
|
+
Cookie9Sided: zm,
|
|
12251
|
+
Cookie12Sided: Bm,
|
|
12252
|
+
Ghostish: Vm,
|
|
12253
|
+
Clover4Leaf: Hm,
|
|
12254
|
+
Clover8Leaf: Um,
|
|
12255
|
+
Burst: Wm,
|
|
12256
|
+
SoftBurst: Gm,
|
|
12257
|
+
Boom: Km,
|
|
12258
|
+
SoftBoom: qm,
|
|
12259
|
+
Flower: Jm,
|
|
12260
|
+
Puffy: Ym,
|
|
12261
|
+
PuffyDiamond: Xm,
|
|
12262
|
+
PixelCircle: Zm,
|
|
12263
|
+
PixelTriangle: Qm,
|
|
12264
|
+
Bun: $m,
|
|
12265
|
+
Heart: eh
|
|
12266
|
+
}, nh = Object.keys(th), rh = /* @__PURE__ */ new Map();
|
|
12267
|
+
function ih(e) {
|
|
12268
|
+
let t = rh.get(e);
|
|
12258
12269
|
if (!t) {
|
|
12259
|
-
let n =
|
|
12260
|
-
t = n().normalized(),
|
|
12270
|
+
let n = th[e];
|
|
12271
|
+
t = n().normalized(), rh.set(e, t);
|
|
12261
12272
|
}
|
|
12262
12273
|
return t;
|
|
12263
12274
|
}
|
|
12264
|
-
var
|
|
12275
|
+
var ah = class {
|
|
12265
12276
|
segments = 3;
|
|
12266
12277
|
measureCubic(e) {
|
|
12267
12278
|
return this.closestProgressTo(e, Infinity)[1];
|
|
@@ -12270,16 +12281,16 @@ var ih = class {
|
|
|
12270
12281
|
return this.closestProgressTo(e, t)[0];
|
|
12271
12282
|
}
|
|
12272
12283
|
closestProgressTo(e, t) {
|
|
12273
|
-
let n = 0, r = t, i =
|
|
12284
|
+
let n = 0, r = t, i = Sp(e.anchor0X, e.anchor0Y);
|
|
12274
12285
|
for (let a = 1; a <= this.segments; a++) {
|
|
12275
|
-
let o = a / this.segments, s = e.pointOnCurve(o), c =
|
|
12286
|
+
let o = a / this.segments, s = e.pointOnCurve(o), c = Cp(Op(s, i));
|
|
12276
12287
|
if (c >= r) return [o - (1 - r / c) / this.segments, t];
|
|
12277
12288
|
r -= c, n += c, i = s;
|
|
12278
12289
|
}
|
|
12279
12290
|
return [1, n];
|
|
12280
12291
|
}
|
|
12281
12292
|
};
|
|
12282
|
-
function
|
|
12293
|
+
function oh(e, t, n) {
|
|
12283
12294
|
let r = Math.max(e.startOutlineProgress, Math.min(e.endOutlineProgress, t)), i = e.endOutlineProgress - e.startOutlineProgress, a = (r - e.startOutlineProgress) / i, o = n.findCubicCutPoint(e.cubic, a * e.measuredSize), [s, c] = e.cubic.split(o);
|
|
12284
12295
|
return [{
|
|
12285
12296
|
cubic: s,
|
|
@@ -12293,7 +12304,7 @@ function ah(e, t, n) {
|
|
|
12293
12304
|
measuredSize: n.measureCubic(c)
|
|
12294
12305
|
}];
|
|
12295
12306
|
}
|
|
12296
|
-
function
|
|
12307
|
+
function sh(e, t) {
|
|
12297
12308
|
let n = [], r = [];
|
|
12298
12309
|
for (let e of t.features) for (let t = 0; t < e.cubics.length; t++) e.type === "corner" && t === Math.floor(e.cubics.length / 2) && r.push([e, n.length]), n.push(e.cubics[t]);
|
|
12299
12310
|
let i = [0], a = 0;
|
|
@@ -12302,7 +12313,7 @@ function oh(e, t) {
|
|
|
12302
12313
|
a += n, i.push(a);
|
|
12303
12314
|
}
|
|
12304
12315
|
let o = a, s = i.map((e) => e / o), c = r.map(([e, t]) => ({
|
|
12305
|
-
progress:
|
|
12316
|
+
progress: zp((s[t] + s[t + 1]) / 2, 1),
|
|
12306
12317
|
feature: e
|
|
12307
12318
|
})), l = [], u = 0;
|
|
12308
12319
|
for (let t = 0; t < n.length; t++) s[t + 1] - s[t] > 1e-4 && (l.push({
|
|
@@ -12318,11 +12329,11 @@ function oh(e, t) {
|
|
|
12318
12329
|
measurer: e
|
|
12319
12330
|
};
|
|
12320
12331
|
}
|
|
12321
|
-
function
|
|
12332
|
+
function ch(e, t) {
|
|
12322
12333
|
if (t < 1e-4) return e;
|
|
12323
12334
|
let n = e.cubics, r = n.findIndex((e) => t >= e.startOutlineProgress && t <= e.endOutlineProgress);
|
|
12324
12335
|
r === -1 && (r = n.length - 1);
|
|
12325
|
-
let [i, a] =
|
|
12336
|
+
let [i, a] = oh(n[r], t, e.measurer), o = [a.cubic];
|
|
12326
12337
|
for (let e = 1; e < n.length; e++) o.push(n[(e + r) % n.length].cubic);
|
|
12327
12338
|
o.push(i.cubic);
|
|
12328
12339
|
let s = [];
|
|
@@ -12330,10 +12341,10 @@ function sh(e, t) {
|
|
|
12330
12341
|
else if (e === n.length + 1) s.push(1);
|
|
12331
12342
|
else {
|
|
12332
12343
|
let i = (r + e - 1) % n.length;
|
|
12333
|
-
s.push(
|
|
12344
|
+
s.push(zp(n[i].endOutlineProgress - t, 1));
|
|
12334
12345
|
}
|
|
12335
12346
|
let c = e.features.map((e) => ({
|
|
12336
|
-
progress:
|
|
12347
|
+
progress: zp(e.progress - t, 1),
|
|
12337
12348
|
feature: e.feature
|
|
12338
12349
|
})), l = [], u = 0;
|
|
12339
12350
|
for (let t = 0; t < o.length; t++) s[t + 1] - s[t] > 1e-4 && (l.push({
|
|
@@ -12349,49 +12360,49 @@ function sh(e, t) {
|
|
|
12349
12360
|
measurer: e.measurer
|
|
12350
12361
|
};
|
|
12351
12362
|
}
|
|
12352
|
-
function
|
|
12363
|
+
function lh(e, t, n) {
|
|
12353
12364
|
return n >= t ? e >= t && e <= n : e >= t || e <= n;
|
|
12354
12365
|
}
|
|
12355
|
-
function
|
|
12366
|
+
function uh(e, t) {
|
|
12356
12367
|
let n = Math.abs(e - t);
|
|
12357
12368
|
return Math.min(n, 1 - n);
|
|
12358
12369
|
}
|
|
12359
|
-
function
|
|
12370
|
+
function dh(e, t, n) {
|
|
12360
12371
|
let r = 0;
|
|
12361
|
-
for (let t = 0; t < e.length; t++) if (
|
|
12372
|
+
for (let t = 0; t < e.length; t++) if (lh(n, e[t], e[(t + 1) % e.length])) {
|
|
12362
12373
|
r = t;
|
|
12363
12374
|
break;
|
|
12364
12375
|
}
|
|
12365
|
-
let i = (r + 1) % e.length, a =
|
|
12366
|
-
return
|
|
12376
|
+
let i = (r + 1) % e.length, a = zp(e[i] - e[r], 1), o = zp(t[i] - t[r], 1), s = a < .001 ? .5 : zp(n - e[r], 1) / a;
|
|
12377
|
+
return zp(t[r] + o * s, 1);
|
|
12367
12378
|
}
|
|
12368
|
-
var
|
|
12379
|
+
var fh = class e {
|
|
12369
12380
|
sourceValues;
|
|
12370
12381
|
targetValues;
|
|
12371
12382
|
constructor(e) {
|
|
12372
12383
|
this.sourceValues = e.map((e) => e[0]), this.targetValues = e.map((e) => e[1]);
|
|
12373
12384
|
}
|
|
12374
12385
|
map(e) {
|
|
12375
|
-
return
|
|
12386
|
+
return dh(this.sourceValues, this.targetValues, e);
|
|
12376
12387
|
}
|
|
12377
12388
|
mapBack(e) {
|
|
12378
|
-
return
|
|
12389
|
+
return dh(this.targetValues, this.sourceValues, e);
|
|
12379
12390
|
}
|
|
12380
12391
|
static Identity = new e([[0, 0], [.5, .5]]);
|
|
12381
12392
|
};
|
|
12382
|
-
function
|
|
12393
|
+
function ph(e) {
|
|
12383
12394
|
let t = e.cubics[0], n = e.cubics.at(-1) ?? t;
|
|
12384
|
-
return
|
|
12395
|
+
return Sp((t.anchor0X + n.anchor1X) / 2, (t.anchor0Y + n.anchor1Y) / 2);
|
|
12385
12396
|
}
|
|
12386
|
-
function
|
|
12397
|
+
function mh(e, t) {
|
|
12387
12398
|
if (e.type === "corner" && t.type === "corner" && e.convex !== t.convex) return Number.MAX_VALUE;
|
|
12388
|
-
let n =
|
|
12399
|
+
let n = Op(ph(e), ph(t));
|
|
12389
12400
|
return n.x * n.x + n.y * n.y;
|
|
12390
12401
|
}
|
|
12391
|
-
function
|
|
12402
|
+
function hh(e, t) {
|
|
12392
12403
|
let n = [];
|
|
12393
12404
|
for (let r of e) for (let e of t) {
|
|
12394
|
-
let t =
|
|
12405
|
+
let t = mh(r.feature, e.feature);
|
|
12395
12406
|
t !== Number.MAX_VALUE && n.push({
|
|
12396
12407
|
distance: t,
|
|
12397
12408
|
f1: r,
|
|
@@ -12400,14 +12411,14 @@ function mh(e, t) {
|
|
|
12400
12411
|
}
|
|
12401
12412
|
return n.sort((e, t) => e.distance - t.distance), n;
|
|
12402
12413
|
}
|
|
12403
|
-
function
|
|
12414
|
+
function gh(e, t, n, r) {
|
|
12404
12415
|
let i = e.length;
|
|
12405
12416
|
if (i === 0) return !0;
|
|
12406
12417
|
let [a, o] = e[(t + i - 1) % i], [s, c] = e[t % i];
|
|
12407
|
-
return
|
|
12418
|
+
return uh(n, a) < 1e-4 || uh(n, s) < 1e-4 || uh(r, o) < 1e-4 || uh(r, c) < 1e-4 ? !1 : i <= 1 || lh(r, o, c);
|
|
12408
12419
|
}
|
|
12409
|
-
function
|
|
12410
|
-
let n =
|
|
12420
|
+
function _h(e, t) {
|
|
12421
|
+
let n = hh(e, t);
|
|
12411
12422
|
if (n.length === 0) return [[0, 0], [.5, .5]];
|
|
12412
12423
|
if (n.length === 1) {
|
|
12413
12424
|
let e = n[0];
|
|
@@ -12418,48 +12429,48 @@ function gh(e, t) {
|
|
|
12418
12429
|
if (i.has(e.f1) || a.has(e.f2)) continue;
|
|
12419
12430
|
let t = 0;
|
|
12420
12431
|
for (let n = 0; n < r.length; n++) r[n][0] < e.f1.progress && (t = n + 1);
|
|
12421
|
-
|
|
12432
|
+
gh(r, t, e.f1.progress, e.f2.progress) && (r.splice(t, 0, [e.f1.progress, e.f2.progress]), i.add(e.f1), a.add(e.f2));
|
|
12422
12433
|
}
|
|
12423
12434
|
return r;
|
|
12424
12435
|
}
|
|
12425
|
-
function
|
|
12426
|
-
return new
|
|
12436
|
+
function vh(e, t) {
|
|
12437
|
+
return new fh(_h(e.filter((e) => e.feature.type === "corner"), t.filter((e) => e.feature.type === "corner")));
|
|
12427
12438
|
}
|
|
12428
|
-
var
|
|
12439
|
+
var yh = class {
|
|
12429
12440
|
morphMatch;
|
|
12430
12441
|
constructor(e, t) {
|
|
12431
|
-
this.morphMatch =
|
|
12442
|
+
this.morphMatch = bh(e, t);
|
|
12432
12443
|
}
|
|
12433
12444
|
asCubics(e) {
|
|
12434
12445
|
let t = [], n = null, r = null;
|
|
12435
12446
|
for (let [i, a] of this.morphMatch) {
|
|
12436
12447
|
let o = /* @__PURE__ */ new Float64Array(8);
|
|
12437
|
-
for (let t = 0; t < 8; t++) o[t] =
|
|
12438
|
-
let s = new
|
|
12448
|
+
for (let t = 0; t < 8; t++) o[t] = Lp(i.points[t], a.points[t], e);
|
|
12449
|
+
let s = new Up(o);
|
|
12439
12450
|
n ||= s, r && t.push(r), r = s;
|
|
12440
12451
|
}
|
|
12441
|
-
return r && n && t.push(new
|
|
12452
|
+
return r && n && t.push(new Up(r.anchor0X, r.anchor0Y, r.control0X, r.control0Y, r.control1X, r.control1Y, n.anchor0X, n.anchor0Y)), t;
|
|
12442
12453
|
}
|
|
12443
12454
|
};
|
|
12444
|
-
function
|
|
12445
|
-
let n = new
|
|
12455
|
+
function bh(e, t) {
|
|
12456
|
+
let n = new ah(), r = sh(n, e), i = sh(n, t), a = vh(r.features, i.features), o = a.map(0), s = r, c = ch(i, o), l = [], u = 0, d = 0, f = s.cubics[u++] ?? null, p = c.cubics[d++] ?? null;
|
|
12446
12457
|
for (; f !== null && p !== null;) {
|
|
12447
|
-
let e = u === s.cubics.length ? 1 : f.endOutlineProgress, t = d === c.cubics.length ? 1 : a.mapBack(
|
|
12458
|
+
let e = u === s.cubics.length ? 1 : f.endOutlineProgress, t = d === c.cubics.length ? 1 : a.mapBack(zp(p.endOutlineProgress + o, 1)), r = Math.min(e, t), i, m;
|
|
12448
12459
|
if (e > r + 1e-6) {
|
|
12449
|
-
let [e, t] =
|
|
12460
|
+
let [e, t] = oh(f, r, n);
|
|
12450
12461
|
i = e, m = t;
|
|
12451
12462
|
} else i = f, m = s.cubics[u++] ?? null;
|
|
12452
12463
|
let h, g;
|
|
12453
12464
|
if (t > r + 1e-6) {
|
|
12454
|
-
let [e, t] =
|
|
12465
|
+
let [e, t] = oh(p, zp(a.map(r) - o, 1), n);
|
|
12455
12466
|
h = e, g = t;
|
|
12456
12467
|
} else h = p, g = c.cubics[d++] ?? null;
|
|
12457
12468
|
l.push([i.cubic, h.cubic]), f = m, p = g;
|
|
12458
12469
|
}
|
|
12459
12470
|
return l;
|
|
12460
12471
|
}
|
|
12461
|
-
var
|
|
12462
|
-
function
|
|
12472
|
+
var xh = (e) => e < .5 ? 2 * e * e : 1 - (-2 * e + 2) ** 2 / 2;
|
|
12473
|
+
function Sh(e, t = 4) {
|
|
12463
12474
|
if (e.length === 0) return "polygon(0% 0%)";
|
|
12464
12475
|
let n = [];
|
|
12465
12476
|
for (let r of e) for (let e = 0; e < t; e++) {
|
|
@@ -12468,16 +12479,16 @@ function xh(e, t = 4) {
|
|
|
12468
12479
|
}
|
|
12469
12480
|
return `polygon(${n.join(",")})`;
|
|
12470
12481
|
}
|
|
12471
|
-
function
|
|
12482
|
+
function Ch(e, t = 100) {
|
|
12472
12483
|
if (e.length === 0) return "";
|
|
12473
12484
|
let n = t, r = [`M${(e[0].anchor0X * n).toFixed(2)},${(e[0].anchor0Y * n).toFixed(2)}`];
|
|
12474
12485
|
for (let t of e) r.push(`C${(t.control0X * n).toFixed(2)},${(t.control0Y * n).toFixed(2)} ${(t.control1X * n).toFixed(2)},${(t.control1Y * n).toFixed(2)} ${(t.anchor1X * n).toFixed(2)},${(t.anchor1Y * n).toFixed(2)}`);
|
|
12475
12486
|
return r.push("Z"), r.join("");
|
|
12476
12487
|
}
|
|
12477
|
-
function
|
|
12478
|
-
return
|
|
12488
|
+
function wh(e, t = 100) {
|
|
12489
|
+
return Ch(e.cubics, t);
|
|
12479
12490
|
}
|
|
12480
|
-
var
|
|
12491
|
+
var Th = class {
|
|
12481
12492
|
morph;
|
|
12482
12493
|
options;
|
|
12483
12494
|
_progress = 0;
|
|
@@ -12485,15 +12496,15 @@ var wh = class {
|
|
|
12485
12496
|
velocity = 0;
|
|
12486
12497
|
animId = 0;
|
|
12487
12498
|
constructor(e, t, n) {
|
|
12488
|
-
|
|
12489
|
-
let r = typeof e == "string" ?
|
|
12490
|
-
this.morph = new
|
|
12499
|
+
Eh(n);
|
|
12500
|
+
let r = typeof e == "string" ? ih(e) : e, i = typeof t == "string" ? ih(t) : t;
|
|
12501
|
+
this.morph = new yh(r, i), this.options = n, this.emitFrame(0);
|
|
12491
12502
|
}
|
|
12492
12503
|
get progress() {
|
|
12493
12504
|
return this._progress;
|
|
12494
12505
|
}
|
|
12495
12506
|
set progress(e) {
|
|
12496
|
-
this._progress = e, this.options.spring === void 0 ? this.options.lerp === void 0 ? this.animateDuration(this.currentProgress, e, this.options.duration ?? 300, this.options.easing ??
|
|
12507
|
+
this._progress = e, this.options.spring === void 0 ? this.options.lerp === void 0 ? this.animateDuration(this.currentProgress, e, this.options.duration ?? 300, this.options.easing ?? xh) : this.animateLerp(e, this.options.lerp) : this.animateSpring(e, this.options.spring);
|
|
12497
12508
|
}
|
|
12498
12509
|
dispose() {
|
|
12499
12510
|
cancelAnimationFrame(this.animId);
|
|
@@ -12502,8 +12513,8 @@ var wh = class {
|
|
|
12502
12513
|
this.currentProgress = e;
|
|
12503
12514
|
let t = Math.max(0, Math.min(1, e)), n = this.morph.asCubics(t), r = this.options.samples ?? 4, i = this.options.size ?? 100;
|
|
12504
12515
|
this.options.onFrame({
|
|
12505
|
-
pathD:
|
|
12506
|
-
clipPath:
|
|
12516
|
+
pathD: Ch(n, i),
|
|
12517
|
+
clipPath: Sh(n, r),
|
|
12507
12518
|
progress: e
|
|
12508
12519
|
});
|
|
12509
12520
|
}
|
|
@@ -12549,21 +12560,21 @@ var wh = class {
|
|
|
12549
12560
|
this.animId = requestAnimationFrame(a);
|
|
12550
12561
|
}
|
|
12551
12562
|
};
|
|
12552
|
-
function
|
|
12563
|
+
function Eh(e) {
|
|
12553
12564
|
let t = [];
|
|
12554
12565
|
if ((e.duration !== void 0 || e.easing !== void 0) && t.push("duration/easing"), e.lerp !== void 0 && t.push("lerp"), e.spring !== void 0 && t.push("spring"), t.length > 1) throw Error(`Cannot combine animation modes: ${t.join(" and ")}`);
|
|
12555
12566
|
}
|
|
12556
12567
|
//#endregion
|
|
12557
12568
|
//#region src/components/MShape.vue?vue&type=script&setup=true&lang.ts
|
|
12558
|
-
var
|
|
12569
|
+
var Dh = { class: "relative inline-block" }, Oh = {
|
|
12559
12570
|
width: "0",
|
|
12560
12571
|
height: "0",
|
|
12561
12572
|
class: "absolute"
|
|
12562
|
-
},
|
|
12573
|
+
}, kh = ["d"], Ah = {
|
|
12563
12574
|
key: 1,
|
|
12564
12575
|
viewBox: "0 0 1 1",
|
|
12565
12576
|
class: "h-full w-full"
|
|
12566
|
-
},
|
|
12577
|
+
}, jh = ["d", "fill"], Mh = /* @__PURE__ */ O({
|
|
12567
12578
|
__name: "MShape",
|
|
12568
12579
|
props: {
|
|
12569
12580
|
shape: {},
|
|
@@ -12575,7 +12586,7 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
12575
12586
|
speed: { default: 1 }
|
|
12576
12587
|
},
|
|
12577
12588
|
setup(e) {
|
|
12578
|
-
let t = e, n = `m3-shape-${ae()}`, r = U(
|
|
12589
|
+
let t = e, n = `m3-shape-${ae()}`, r = U(wh(ih(t.shape), 1)), i = null, a = t.shape;
|
|
12579
12590
|
function o(e) {
|
|
12580
12591
|
return {
|
|
12581
12592
|
stiffness: 380 * e ** 2,
|
|
@@ -12585,10 +12596,10 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
12585
12596
|
return Y(() => t.shape, (e, n) => {
|
|
12586
12597
|
if (n && e !== n) {
|
|
12587
12598
|
if (i?.dispose(), !t.animate) {
|
|
12588
|
-
r.value =
|
|
12599
|
+
r.value = wh(ih(e), 1), a = e;
|
|
12589
12600
|
return;
|
|
12590
12601
|
}
|
|
12591
|
-
i = new
|
|
12602
|
+
i = new Th(a, e, {
|
|
12592
12603
|
spring: o(t.speed),
|
|
12593
12604
|
size: 1,
|
|
12594
12605
|
onFrame: (e) => {
|
|
@@ -12596,28 +12607,28 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
12596
12607
|
}
|
|
12597
12608
|
}), i.progress = 1, a = e;
|
|
12598
12609
|
}
|
|
12599
|
-
}), z(() => i?.dispose()), (t, i) => (V(), C("span",
|
|
12610
|
+
}), z(() => i?.dispose()), (t, i) => (V(), C("span", Dh, [(V(), C("svg", Oh, [w("defs", null, [w("clipPath", {
|
|
12600
12611
|
id: n,
|
|
12601
12612
|
clipPathUnits: "objectBoundingBox"
|
|
12602
|
-
}, [w("path", { d: r.value }, null, 8,
|
|
12613
|
+
}, [w("path", { d: r.value }, null, 8, kh)])])])), t.$slots.default ? (V(), C("div", {
|
|
12603
12614
|
key: 0,
|
|
12604
12615
|
class: "h-full w-full",
|
|
12605
12616
|
style: F({ clipPath: `url(#${n})` })
|
|
12606
|
-
}, [G(t.$slots, "default")], 4)) : (V(), C("svg",
|
|
12617
|
+
}, [G(t.$slots, "default")], 4)) : (V(), C("svg", Ah, [w("path", {
|
|
12607
12618
|
d: r.value,
|
|
12608
12619
|
fill: e.fill
|
|
12609
|
-
}, null, 8,
|
|
12620
|
+
}, null, 8, jh)]))]));
|
|
12610
12621
|
}
|
|
12611
|
-
}),
|
|
12622
|
+
}), Nh = {
|
|
12612
12623
|
key: 0,
|
|
12613
12624
|
class: "fixed inset-0 z-200 flex justify-end"
|
|
12614
|
-
},
|
|
12625
|
+
}, Ph = {
|
|
12615
12626
|
key: 0,
|
|
12616
12627
|
class: "flex shrink-0 items-center justify-between border-b border-outline-variant px-6 py-4"
|
|
12617
|
-
},
|
|
12628
|
+
}, Fh = { class: "text-title-large text-on-surface" }, Ih = { class: "flex-1 overflow-y-auto px-6 py-4" }, Lh = {
|
|
12618
12629
|
key: 1,
|
|
12619
12630
|
class: "shrink-0 border-t border-outline-variant px-6 py-4"
|
|
12620
|
-
},
|
|
12631
|
+
}, Rh = /* @__PURE__ */ O({
|
|
12621
12632
|
__name: "MSideSheet",
|
|
12622
12633
|
props: {
|
|
12623
12634
|
modelValue: { type: Boolean },
|
|
@@ -12632,7 +12643,7 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
12632
12643
|
onEnter: J(a).onEnter,
|
|
12633
12644
|
onLeave: J(a).onLeave
|
|
12634
12645
|
}, {
|
|
12635
|
-
default: X(() => [e.modelValue ? (V(), C("div",
|
|
12646
|
+
default: X(() => [e.modelValue ? (V(), C("div", Nh, [w("div", {
|
|
12636
12647
|
"data-sheet-scrim": "",
|
|
12637
12648
|
class: "absolute inset-0 bg-scrim/32",
|
|
12638
12649
|
onClick: i
|
|
@@ -12647,7 +12658,7 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
12647
12658
|
onPointerup: n[2] ||= (...e) => J(a).onDragEnd && J(a).onDragEnd(...e),
|
|
12648
12659
|
onPointercancel: n[3] ||= (...e) => J(a).onDragEnd && J(a).onDragEnd(...e)
|
|
12649
12660
|
}, null, 32),
|
|
12650
|
-
e.title || t.$slots.header ? (V(), C("div",
|
|
12661
|
+
e.title || t.$slots.header ? (V(), C("div", Ph, [G(t.$slots, "header", {}, () => [w("h2", Fh, q(e.title), 1)]), w("button", {
|
|
12651
12662
|
type: "button",
|
|
12652
12663
|
class: "flex h-9 w-9 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8",
|
|
12653
12664
|
onClick: i
|
|
@@ -12655,13 +12666,13 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
12655
12666
|
name: "close",
|
|
12656
12667
|
size: 20
|
|
12657
12668
|
})])])) : S("", !0),
|
|
12658
|
-
w("div",
|
|
12659
|
-
t.$slots.actions ? (V(), C("div",
|
|
12669
|
+
w("div", Ih, [G(t.$slots, "default")]),
|
|
12670
|
+
t.$slots.actions ? (V(), C("div", Lh, [G(t.$slots, "actions")])) : S("", !0)
|
|
12660
12671
|
], 2)])) : S("", !0)]),
|
|
12661
12672
|
_: 3
|
|
12662
12673
|
}, 8, ["onEnter", "onLeave"])]));
|
|
12663
12674
|
}
|
|
12664
|
-
}),
|
|
12675
|
+
}), zh = ["width", "height"], Bh = /* @__PURE__ */ O({
|
|
12665
12676
|
__name: "MSignaturePad",
|
|
12666
12677
|
props: {
|
|
12667
12678
|
width: { default: 400 },
|
|
@@ -12749,21 +12760,21 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
12749
12760
|
onPointermove: p,
|
|
12750
12761
|
onPointerup: m,
|
|
12751
12762
|
onPointerleave: m
|
|
12752
|
-
}, null, 40,
|
|
12763
|
+
}, null, 40, zh)], 2));
|
|
12753
12764
|
}
|
|
12754
|
-
}),
|
|
12765
|
+
}), Vh = ["src", "alt"], Hh = {
|
|
12755
12766
|
key: 0,
|
|
12756
12767
|
class: "absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/70 via-black/30 to-transparent px-5 pb-4 pt-12"
|
|
12757
|
-
},
|
|
12768
|
+
}, Uh = {
|
|
12758
12769
|
key: 0,
|
|
12759
12770
|
class: "text-title-medium font-medium text-white"
|
|
12760
|
-
},
|
|
12771
|
+
}, Wh = {
|
|
12761
12772
|
key: 1,
|
|
12762
12773
|
class: "mt-0.5 text-body-small text-white/80"
|
|
12763
|
-
},
|
|
12774
|
+
}, Gh = {
|
|
12764
12775
|
key: 0,
|
|
12765
12776
|
class: "flex justify-center gap-1.5 pt-3"
|
|
12766
|
-
},
|
|
12777
|
+
}, Kh = ["onClick"], qh = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
12767
12778
|
__name: "MSimpleCarousel",
|
|
12768
12779
|
props: {
|
|
12769
12780
|
items: {},
|
|
@@ -12931,7 +12942,7 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
12931
12942
|
alt: e.alt ?? e.label ?? "",
|
|
12932
12943
|
class: "pointer-events-none h-full w-full object-cover",
|
|
12933
12944
|
style: F(O(t))
|
|
12934
|
-
}, null, 12,
|
|
12945
|
+
}, null, 12, Vh), e.label || e.supportingText ? (V(), C("div", Hh, [e.label ? (V(), C("p", Uh, q(e.label), 1)) : S("", !0), e.supportingText ? (V(), C("p", Wh, q(e.supportingText), 1)) : S("", !0)])) : S("", !0)], 4))), 128))], 38), e.showArrows && e.items.length > 1 ? (V(), C(h, { key: 0 }, [w("button", {
|
|
12935
12946
|
type: "button",
|
|
12936
12947
|
class: "absolute left-3 top-1/2 z-10 flex h-10 w-10 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full bg-surface/80 text-on-surface shadow-elevation-1 opacity-0 backdrop-blur-sm transition-all duration-200 hover:bg-surface hover:shadow-elevation-2 group-hover:opacity-100",
|
|
12937
12948
|
onClick: M
|
|
@@ -12945,17 +12956,17 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
12945
12956
|
}, [D(r, {
|
|
12946
12957
|
name: "chevron_right",
|
|
12947
12958
|
size: 24
|
|
12948
|
-
})])], 64)) : S("", !0)], 32), e.showIndicators && d.value > 1 ? (V(), C("div",
|
|
12959
|
+
})])], 64)) : S("", !0)], 32), e.showIndicators && d.value > 1 ? (V(), C("div", Gh, [(V(!0), C(h, null, W(d.value, (e) => (V(), C("button", {
|
|
12949
12960
|
key: e,
|
|
12950
12961
|
type: "button",
|
|
12951
12962
|
class: P(["h-2 cursor-pointer rounded-full transition-all duration-300", e - 1 === f.value ? "w-5 bg-on-surface" : "w-2 bg-on-surface/30 hover:bg-on-surface/50"]),
|
|
12952
12963
|
onClick: (t) => u.value ? A(e - 1) : k(e - 1)
|
|
12953
|
-
}, null, 10,
|
|
12964
|
+
}, null, 10, Kh))), 128))])) : S("", !0)], 64));
|
|
12954
12965
|
}
|
|
12955
|
-
}), [["__scopeId", "data-v-c2b7bc53"]]),
|
|
12966
|
+
}), [["__scopeId", "data-v-c2b7bc53"]]), Jh = {
|
|
12956
12967
|
key: 0,
|
|
12957
12968
|
class: "flex flex-col gap-2.5"
|
|
12958
|
-
},
|
|
12969
|
+
}, Yh = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
12959
12970
|
__name: "MSkeleton",
|
|
12960
12971
|
props: {
|
|
12961
12972
|
variant: { default: "text" },
|
|
@@ -12965,7 +12976,7 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
12965
12976
|
animation: { default: "pulse" }
|
|
12966
12977
|
},
|
|
12967
12978
|
setup(e) {
|
|
12968
|
-
return (t, n) => e.variant === "text" && e.lines > 1 ? (V(), C("div",
|
|
12979
|
+
return (t, n) => e.variant === "text" && e.lines > 1 ? (V(), C("div", Jh, [(V(!0), C(h, null, W(e.lines, (t) => (V(), C("div", {
|
|
12969
12980
|
key: t,
|
|
12970
12981
|
class: P(["h-3.5 rounded-full bg-on-surface/10", e.animation === "pulse" ? "animate-pulse" : e.animation === "wave" ? "skeleton-wave" : ""]),
|
|
12971
12982
|
style: F({ width: t === e.lines ? "60%" : e.width ?? "100%" })
|
|
@@ -12978,22 +12989,22 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
12978
12989
|
})
|
|
12979
12990
|
}, null, 6));
|
|
12980
12991
|
}
|
|
12981
|
-
}), [["__scopeId", "data-v-32ecf05b"]]),
|
|
12992
|
+
}), [["__scopeId", "data-v-32ecf05b"]]), Xh = {
|
|
12982
12993
|
key: 0,
|
|
12983
12994
|
class: "flex items-center justify-between"
|
|
12984
|
-
},
|
|
12995
|
+
}, Zh = {
|
|
12985
12996
|
key: 0,
|
|
12986
12997
|
class: "text-label-large text-on-surface"
|
|
12987
|
-
},
|
|
12998
|
+
}, Qh = {
|
|
12988
12999
|
key: 1,
|
|
12989
13000
|
class: "tabular-nums text-label-large text-on-surface-variant"
|
|
12990
|
-
},
|
|
13001
|
+
}, $h = [
|
|
12991
13002
|
"aria-valuenow",
|
|
12992
13003
|
"aria-valuemin",
|
|
12993
13004
|
"aria-valuemax",
|
|
12994
13005
|
"aria-disabled",
|
|
12995
13006
|
"aria-orientation"
|
|
12996
|
-
],
|
|
13007
|
+
], eg = "color-mix(in srgb, var(--color-on-surface) 38%, transparent)", tg = "color-mix(in srgb, var(--color-on-surface) 12%, transparent)", ng = /* @__PURE__ */ O({
|
|
12997
13008
|
__name: "MSlider",
|
|
12998
13009
|
props: {
|
|
12999
13010
|
modelValue: {},
|
|
@@ -13124,14 +13135,14 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
13124
13135
|
return k[n] ?? n;
|
|
13125
13136
|
}
|
|
13126
13137
|
let j = y(() => n.disabled ? {
|
|
13127
|
-
active:
|
|
13128
|
-
inactive:
|
|
13138
|
+
active: eg,
|
|
13139
|
+
inactive: tg
|
|
13129
13140
|
} : {
|
|
13130
13141
|
active: A(n.fillColor, n.color),
|
|
13131
13142
|
inactive: "var(--color-secondary-container)"
|
|
13132
13143
|
}), M = y(() => n.disabled ? {
|
|
13133
|
-
active:
|
|
13134
|
-
inactive:
|
|
13144
|
+
active: eg,
|
|
13145
|
+
inactive: tg
|
|
13135
13146
|
} : {
|
|
13136
13147
|
active: A(n.thumbColor, n.color),
|
|
13137
13148
|
inactive: "var(--color-secondary-container)"
|
|
@@ -13280,7 +13291,7 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
13280
13291
|
};
|
|
13281
13292
|
}
|
|
13282
13293
|
let ye = y(() => l.value ? `${u.value.lo} – ${u.value.hi}` : String(n.modelValue)), be = y(() => l.value && typeof o.value == "number" ? n.modelValue[o.value] : n.modelValue), xe = y(() => l.value && typeof o.value == "number" ? d(n.modelValue[o.value]) : f.value);
|
|
13283
|
-
return (t, n) => (V(), C("div", { class: P(["flex select-none", c.value ? "h-full flex-col items-center" : "flex-col gap-1"]) }, [e.label || e.showValue ? (V(), C("div",
|
|
13294
|
+
return (t, n) => (V(), C("div", { class: P(["flex select-none", c.value ? "h-full flex-col items-center" : "flex-col gap-1"]) }, [e.label || e.showValue ? (V(), C("div", Xh, [e.label ? (V(), C("span", Zh, q(e.label), 1)) : S("", !0), e.showValue ? (V(), C("span", Qh, q(ye.value), 1)) : S("", !0)])) : S("", !0), w("div", { class: P(["flex items-center", c.value ? "flex-1 flex-col" : ""]) }, [w("div", {
|
|
13284
13295
|
ref_key: "trackEl",
|
|
13285
13296
|
ref: a,
|
|
13286
13297
|
role: "slider",
|
|
@@ -13597,13 +13608,13 @@ var Eh = { class: "relative inline-block" }, Dh = {
|
|
|
13597
13608
|
}, q(be.value), 5)) : S("", !0)]),
|
|
13598
13609
|
_: 1
|
|
13599
13610
|
})
|
|
13600
|
-
], 46,
|
|
13611
|
+
], 46, $h)], 2)], 2));
|
|
13601
13612
|
}
|
|
13602
|
-
}),
|
|
13603
|
-
function
|
|
13604
|
-
return V(), C("div",
|
|
13613
|
+
}), rg = {}, ig = { class: "flex-1" };
|
|
13614
|
+
function ag(e, t) {
|
|
13615
|
+
return V(), C("div", ig);
|
|
13605
13616
|
}
|
|
13606
|
-
var
|
|
13617
|
+
var og = /*#__PURE__*/ m(rg, [["render", ag]]), sg = ["disabled"], cg = ["disabled"], lg = ["disabled", "onClick"], ug = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
13607
13618
|
__name: "MSplitButton",
|
|
13608
13619
|
props: {
|
|
13609
13620
|
label: {},
|
|
@@ -13817,7 +13828,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
13817
13828
|
key: 0,
|
|
13818
13829
|
name: e.icon,
|
|
13819
13830
|
size: d.value.icon
|
|
13820
|
-
}, null, 8, ["name", "size"])) : S("", !0), E(" " + q(e.label), 1)], 46,
|
|
13831
|
+
}, null, 8, ["name", "size"])) : S("", !0), E(" " + q(e.label), 1)], 46, sg), w("button", {
|
|
13821
13832
|
type: "button",
|
|
13822
13833
|
class: P(["toggle-btn relative flex cursor-pointer items-center justify-center overflow-hidden", [
|
|
13823
13834
|
d.value.h,
|
|
@@ -13833,7 +13844,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
13833
13844
|
name: "arrow_drop_down",
|
|
13834
13845
|
size: d.value.arrow,
|
|
13835
13846
|
class: P(["transition-transform duration-200", a.value ? "rotate-180" : ""])
|
|
13836
|
-
}, null, 8, ["size", "class"])], 46,
|
|
13847
|
+
}, null, 8, ["size", "class"])], 46, cg)], 2), (V(), x(g, { to: "body" }, [D(_, {
|
|
13837
13848
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
13838
13849
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
13839
13850
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
@@ -13856,7 +13867,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
13856
13867
|
name: e.icon,
|
|
13857
13868
|
size: 18,
|
|
13858
13869
|
class: "shrink-0 text-on-surface-variant"
|
|
13859
|
-
}, null, 8, ["name"])) : S("", !0), E(" " + q(e.label), 1)], 10,
|
|
13870
|
+
}, null, 8, ["name"])) : S("", !0), E(" " + q(e.label), 1)], 10, lg))), 128))], 4)) : S("", !0)]),
|
|
13860
13871
|
_: 1
|
|
13861
13872
|
}), D(_, {
|
|
13862
13873
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
@@ -13873,7 +13884,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
13873
13884
|
_: 3
|
|
13874
13885
|
})]))], 64));
|
|
13875
13886
|
}
|
|
13876
|
-
}), [["__scopeId", "data-v-9a60cc8b"]]),
|
|
13887
|
+
}), [["__scopeId", "data-v-9a60cc8b"]]), dg = /* @__PURE__ */ O({
|
|
13877
13888
|
__name: "MSplitter",
|
|
13878
13889
|
props: {
|
|
13879
13890
|
direction: { default: "horizontal" },
|
|
@@ -13920,26 +13931,26 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
13920
13931
|
}, [G(e.$slots, "second")], 4)
|
|
13921
13932
|
], 2));
|
|
13922
13933
|
}
|
|
13923
|
-
}),
|
|
13934
|
+
}), fg = { class: "spot-box flex w-full max-w-xl flex-col overflow-hidden rounded-2xl bg-surface-container-high shadow-elevation-3" }, pg = { class: "flex items-center gap-3 px-5 py-1" }, mg = ["placeholder"], hg = {
|
|
13924
13935
|
key: 0,
|
|
13925
13936
|
class: "max-h-96 overflow-y-auto border-t border-outline-variant"
|
|
13926
|
-
},
|
|
13937
|
+
}, gg = {
|
|
13927
13938
|
key: 0,
|
|
13928
13939
|
class: "px-5 pt-4 pb-1 text-label-small font-medium tracking-wide text-on-surface-variant uppercase"
|
|
13929
|
-
},
|
|
13940
|
+
}, _g = [
|
|
13930
13941
|
"data-spot-active",
|
|
13931
13942
|
"onClick",
|
|
13932
13943
|
"onPointerenter"
|
|
13933
|
-
],
|
|
13944
|
+
], vg = {
|
|
13934
13945
|
key: 0,
|
|
13935
13946
|
class: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary-container"
|
|
13936
|
-
},
|
|
13947
|
+
}, yg = { class: "min-w-0 flex-1" }, bg = { class: "truncate text-body-medium text-on-surface" }, xg = {
|
|
13937
13948
|
key: 0,
|
|
13938
13949
|
class: "truncate text-body-small text-on-surface-variant"
|
|
13939
|
-
},
|
|
13950
|
+
}, Sg = {
|
|
13940
13951
|
key: 1,
|
|
13941
13952
|
class: "flex flex-col items-center gap-2 py-10"
|
|
13942
|
-
},
|
|
13953
|
+
}, Cg = { class: "text-body-medium text-on-surface-variant" }, wg = { class: "flex items-center gap-4 border-t border-outline-variant px-5 py-2" }, Tg = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Eg = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Dg = { class: "flex items-center gap-1 text-label-small text-on-surface-variant" }, Og = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
13943
13954
|
__name: "MSpotlightSearch",
|
|
13944
13955
|
props: {
|
|
13945
13956
|
modelValue: { type: Boolean },
|
|
@@ -14004,8 +14015,8 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14004
14015
|
key: 0,
|
|
14005
14016
|
class: "fixed inset-0 z-50 flex items-start justify-center bg-scrim/32 pt-[12vh]",
|
|
14006
14017
|
onClick: Z(m, ["self"])
|
|
14007
|
-
}, [w("div",
|
|
14008
|
-
w("div",
|
|
14018
|
+
}, [w("div", fg, [
|
|
14019
|
+
w("div", pg, [
|
|
14009
14020
|
D(r, {
|
|
14010
14021
|
name: "search",
|
|
14011
14022
|
size: 24,
|
|
@@ -14019,7 +14030,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14019
14030
|
placeholder: e.placeholder ?? J(i).search,
|
|
14020
14031
|
class: "h-14 flex-1 bg-transparent text-title-medium text-on-surface outline-none placeholder:text-on-surface-variant/50",
|
|
14021
14032
|
onKeydown: T
|
|
14022
|
-
}, null, 40,
|
|
14033
|
+
}, null, 40, mg), [[se, s.value]]),
|
|
14023
14034
|
e.loading ? (V(), x(p, {
|
|
14024
14035
|
key: 0,
|
|
14025
14036
|
size: 20,
|
|
@@ -14034,7 +14045,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14034
14045
|
size: 18
|
|
14035
14046
|
})])) : S("", !0)
|
|
14036
14047
|
]),
|
|
14037
|
-
d.value ? (V(), C("div",
|
|
14048
|
+
d.value ? (V(), C("div", hg, [e.results.length ? (V(!0), C(h, { key: 0 }, W(f.value, ([t, n]) => (V(), C(h, { key: t }, [t ? (V(), C("p", gg, q(t), 1)) : S("", !0), (V(!0), C(h, null, W(n, (t) => (V(), C("button", {
|
|
14038
14049
|
key: t.id,
|
|
14039
14050
|
type: "button",
|
|
14040
14051
|
"data-spot-active": e.results.indexOf(t) === c.value || void 0,
|
|
@@ -14042,32 +14053,32 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14042
14053
|
onClick: (e) => v(t),
|
|
14043
14054
|
onPointerenter: (n) => c.value = e.results.indexOf(t)
|
|
14044
14055
|
}, [
|
|
14045
|
-
t.icon ? (V(), C("div",
|
|
14056
|
+
t.icon ? (V(), C("div", vg, [D(r, {
|
|
14046
14057
|
name: t.icon,
|
|
14047
14058
|
size: 20,
|
|
14048
14059
|
class: "text-on-primary-container"
|
|
14049
14060
|
}, null, 8, ["name"])])) : S("", !0),
|
|
14050
|
-
w("div",
|
|
14061
|
+
w("div", yg, [w("p", bg, q(t.title), 1), t.description ? (V(), C("p", xg, q(t.description), 1)) : S("", !0)]),
|
|
14051
14062
|
D(r, {
|
|
14052
14063
|
name: "arrow_forward",
|
|
14053
14064
|
size: 16,
|
|
14054
14065
|
class: "shrink-0 text-on-surface-variant/40"
|
|
14055
14066
|
})
|
|
14056
|
-
], 42,
|
|
14067
|
+
], 42, _g))), 128))], 64))), 128)) : e.loading ? S("", !0) : (V(), C("div", Sg, [D(r, {
|
|
14057
14068
|
name: "search_off",
|
|
14058
14069
|
size: 40,
|
|
14059
14070
|
class: "text-on-surface-variant/40"
|
|
14060
|
-
}), w("p",
|
|
14061
|
-
w("div",
|
|
14062
|
-
w("span",
|
|
14063
|
-
w("span",
|
|
14064
|
-
w("span",
|
|
14071
|
+
}), w("p", Cg, q(e.noResultsText ?? J(i).noResults), 1)]))])) : S("", !0),
|
|
14072
|
+
w("div", wg, [
|
|
14073
|
+
w("span", Tg, [n[2] ||= w("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↑↓", -1), E(" " + q(e.navigateHint ?? J(i).navigateHint), 1)]),
|
|
14074
|
+
w("span", Eg, [n[3] ||= w("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "↵", -1), E(" " + q(e.openHint ?? J(i).openHint), 1)]),
|
|
14075
|
+
w("span", Dg, [n[4] ||= w("kbd", { class: "rounded bg-surface-container px-1 py-0.5" }, "esc", -1), E(" " + q(e.closeHint ?? J(i).closeHint), 1)])
|
|
14065
14076
|
])
|
|
14066
14077
|
])])) : S("", !0)]),
|
|
14067
14078
|
_: 1
|
|
14068
14079
|
})]));
|
|
14069
14080
|
}
|
|
14070
|
-
}), [["__scopeId", "data-v-e6c418fc"]]),
|
|
14081
|
+
}), [["__scopeId", "data-v-e6c418fc"]]), kg = /* @__PURE__ */ O({
|
|
14071
14082
|
__name: "MStack",
|
|
14072
14083
|
props: {
|
|
14073
14084
|
direction: { default: "column" },
|
|
@@ -14122,19 +14133,19 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14122
14133
|
role: "separator"
|
|
14123
14134
|
}, null, 2)) : S("", !0), (V(), x(K(e)))], 64))), 128)) : G(t.$slots, "default", {}, void 0, void 0, 1)], 2));
|
|
14124
14135
|
}
|
|
14125
|
-
}),
|
|
14136
|
+
}), Ag = { class: "flex flex-col gap-2 overflow-hidden rounded-lg border border-outline-variant bg-surface-container-lowest p-4" }, jg = { class: "flex items-start justify-between gap-2" }, Mg = { class: "flex min-w-0 flex-col gap-1" }, Ng = { class: "truncate text-label-large text-on-surface-variant" }, Pg = {
|
|
14126
14137
|
key: 0,
|
|
14127
14138
|
class: "h-8 w-24 animate-pulse rounded-md bg-on-surface/10"
|
|
14128
|
-
},
|
|
14139
|
+
}, Fg = {
|
|
14129
14140
|
key: 1,
|
|
14130
14141
|
class: "truncate text-headline-medium font-medium text-on-surface"
|
|
14131
|
-
},
|
|
14142
|
+
}, Ig = {
|
|
14132
14143
|
key: 0,
|
|
14133
14144
|
class: "flex flex-wrap items-center gap-x-2 gap-y-1"
|
|
14134
|
-
},
|
|
14145
|
+
}, Lg = {
|
|
14135
14146
|
key: 1,
|
|
14136
14147
|
class: "text-label-medium text-on-surface-variant"
|
|
14137
|
-
},
|
|
14148
|
+
}, Rg = /* @__PURE__ */ O({
|
|
14138
14149
|
__name: "MStatCard",
|
|
14139
14150
|
props: {
|
|
14140
14151
|
title: {},
|
|
@@ -14153,13 +14164,13 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14153
14164
|
error: "bg-error-container text-on-error-container",
|
|
14154
14165
|
success: "bg-success-container text-on-success-container"
|
|
14155
14166
|
}, i = y(() => t.trend == null ? "" : t.trend > 0 ? "text-success" : t.trend < 0 ? "text-error" : "text-on-surface-variant"), a = y(() => t.trend == null ? "" : t.trend > 0 ? "trending_up" : t.trend < 0 ? "trending_down" : "trending_flat");
|
|
14156
|
-
return (t, o) => (V(), C("div",
|
|
14167
|
+
return (t, o) => (V(), C("div", Ag, [w("div", jg, [w("div", Mg, [w("span", Ng, q(e.title), 1), e.loading ? (V(), C("div", Pg)) : (V(), C("span", Fg, q(e.value), 1))]), e.icon ? (V(), C("div", {
|
|
14157
14168
|
key: 0,
|
|
14158
14169
|
class: P(["flex h-11 w-11 shrink-0 items-center justify-center rounded-xl", n[e.color]])
|
|
14159
14170
|
}, [D(r, {
|
|
14160
14171
|
name: e.icon,
|
|
14161
14172
|
size: 24
|
|
14162
|
-
}, null, 8, ["name"])], 2)) : S("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (V(), C("div",
|
|
14173
|
+
}, null, 8, ["name"])], 2)) : S("", !0)]), e.trend != null || e.trendLabel || t.$slots.footer ? (V(), C("div", Ig, [
|
|
14163
14174
|
e.trend == null ? S("", !0) : (V(), C("span", {
|
|
14164
14175
|
key: 0,
|
|
14165
14176
|
class: P(["inline-flex items-center gap-0.5 text-label-medium font-medium", i.value])
|
|
@@ -14167,35 +14178,35 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14167
14178
|
name: a.value,
|
|
14168
14179
|
size: 16
|
|
14169
14180
|
}, null, 8, ["name"]), E(" " + q(e.trend > 0 ? "+" : "") + q(e.trend) + "% ", 1)], 2)),
|
|
14170
|
-
e.trendLabel ? (V(), C("span",
|
|
14181
|
+
e.trendLabel ? (V(), C("span", Lg, q(e.trendLabel), 1)) : S("", !0),
|
|
14171
14182
|
G(t.$slots, "footer")
|
|
14172
14183
|
])) : S("", !0)]));
|
|
14173
14184
|
}
|
|
14174
|
-
}),
|
|
14185
|
+
}), zg = {
|
|
14175
14186
|
key: 0,
|
|
14176
14187
|
class: "flex w-full items-start"
|
|
14177
|
-
},
|
|
14188
|
+
}, Bg = ["onClick"], Vg = { key: 3 }, Hg = { class: "flex flex-col items-center text-center" }, Ug = {
|
|
14178
14189
|
key: 0,
|
|
14179
14190
|
class: "text-body-small text-on-surface-variant"
|
|
14180
|
-
},
|
|
14191
|
+
}, Wg = {
|
|
14181
14192
|
key: 1,
|
|
14182
14193
|
class: "text-body-small text-on-surface-variant"
|
|
14183
|
-
},
|
|
14194
|
+
}, Gg = {
|
|
14184
14195
|
key: 0,
|
|
14185
14196
|
class: "mt-[18px] flex flex-1 items-center px-2"
|
|
14186
|
-
},
|
|
14197
|
+
}, Kg = {
|
|
14187
14198
|
key: 1,
|
|
14188
14199
|
class: "flex flex-col"
|
|
14189
|
-
},
|
|
14200
|
+
}, qg = { class: "flex flex-col items-center" }, Jg = ["onClick"], Yg = { key: 3 }, Xg = ["onClick"], Zg = {
|
|
14190
14201
|
key: 0,
|
|
14191
14202
|
class: "mt-0.5 text-body-small text-on-surface-variant"
|
|
14192
|
-
},
|
|
14203
|
+
}, Qg = {
|
|
14193
14204
|
key: 1,
|
|
14194
14205
|
class: "text-body-small text-on-surface-variant"
|
|
14195
|
-
},
|
|
14206
|
+
}, $g = {
|
|
14196
14207
|
key: 2,
|
|
14197
14208
|
class: "mt-3"
|
|
14198
|
-
},
|
|
14209
|
+
}, e_ = /* @__PURE__ */ O({
|
|
14199
14210
|
__name: "MStepper",
|
|
14200
14211
|
props: {
|
|
14201
14212
|
steps: {},
|
|
@@ -14216,7 +14227,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14216
14227
|
function s(e) {
|
|
14217
14228
|
o.value && i("update:modelValue", e);
|
|
14218
14229
|
}
|
|
14219
|
-
return (t, n) => e.direction === "horizontal" ? (V(), C("div",
|
|
14230
|
+
return (t, n) => e.direction === "horizontal" ? (V(), C("div", zg, [(V(!0), C(h, null, W(e.steps, (t, n) => (V(), C(h, { key: n }, [w("div", {
|
|
14220
14231
|
class: P(["flex flex-col items-center gap-2", o.value && a(n) !== "active" ? "cursor-pointer" : ""]),
|
|
14221
14232
|
onClick: (e) => s(n)
|
|
14222
14233
|
}, [w("div", { class: P(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", {
|
|
@@ -14235,18 +14246,18 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14235
14246
|
key: 2,
|
|
14236
14247
|
name: t.icon,
|
|
14237
14248
|
size: 20
|
|
14238
|
-
}, null, 8, ["name"])) : (V(), C("span",
|
|
14249
|
+
}, null, 8, ["name"])) : (V(), C("span", Vg, q(n + 1), 1))], 2), w("div", Hg, [
|
|
14239
14250
|
w("span", { class: P(["text-label-large", {
|
|
14240
14251
|
"font-medium text-on-surface": a(n) === "active" || a(n) === "completed",
|
|
14241
14252
|
"text-error": a(n) === "error",
|
|
14242
14253
|
"text-on-surface-variant": a(n) === "inactive"
|
|
14243
14254
|
}]) }, q(t.label), 3),
|
|
14244
|
-
t.description ? (V(), C("span",
|
|
14245
|
-
t.optional ? (V(), C("span",
|
|
14246
|
-
])], 10,
|
|
14255
|
+
t.description ? (V(), C("span", Ug, q(t.description), 1)) : S("", !0),
|
|
14256
|
+
t.optional ? (V(), C("span", Wg, " Opcional ")) : S("", !0)
|
|
14257
|
+
])], 10, Bg), n < e.steps.length - 1 ? (V(), C("div", Gg, [w("div", { class: P(["h-px w-full transition-colors duration-300", n < e.modelValue ? "bg-primary" : "bg-outline-variant"]) }, null, 2)])) : S("", !0)], 64))), 128))])) : (V(), C("div", Kg, [(V(!0), C(h, null, W(e.steps, (n, i) => (V(), C("div", {
|
|
14247
14258
|
key: i,
|
|
14248
14259
|
class: "flex gap-4"
|
|
14249
|
-
}, [w("div",
|
|
14260
|
+
}, [w("div", qg, [w("div", {
|
|
14250
14261
|
class: P(["flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-label-large font-medium transition-colors duration-200", [{
|
|
14251
14262
|
"bg-primary text-on-primary": a(i) === "active" || a(i) === "completed",
|
|
14252
14263
|
"bg-error text-on-error": a(i) === "error",
|
|
@@ -14265,7 +14276,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14265
14276
|
key: 2,
|
|
14266
14277
|
name: n.icon,
|
|
14267
14278
|
size: 20
|
|
14268
|
-
}, null, 8, ["name"])) : (V(), C("span",
|
|
14279
|
+
}, null, 8, ["name"])) : (V(), C("span", Yg, q(i + 1), 1))], 10, Jg), i < e.steps.length - 1 ? (V(), C("div", {
|
|
14269
14280
|
key: 0,
|
|
14270
14281
|
class: P(["my-1 w-px flex-1 transition-colors duration-300", i < e.modelValue ? "bg-primary" : "bg-outline-variant"]),
|
|
14271
14282
|
style: { "min-height": "24px" }
|
|
@@ -14278,12 +14289,12 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14278
14289
|
"text-error": a(i) === "error",
|
|
14279
14290
|
"text-on-surface-variant": a(i) === "inactive"
|
|
14280
14291
|
}]) }, q(n.label), 3),
|
|
14281
|
-
n.description ? (V(), C("p",
|
|
14282
|
-
n.optional ? (V(), C("p",
|
|
14283
|
-
a(i) === "active" && t.$slots[`step-${i}`] ? (V(), C("div",
|
|
14284
|
-
], 10,
|
|
14292
|
+
n.description ? (V(), C("p", Zg, q(n.description), 1)) : S("", !0),
|
|
14293
|
+
n.optional ? (V(), C("p", Qg, " Opcional ")) : S("", !0),
|
|
14294
|
+
a(i) === "active" && t.$slots[`step-${i}`] ? (V(), C("div", $g, [G(t.$slots, `step-${i}`)])) : S("", !0)
|
|
14295
|
+
], 10, Xg)]))), 128))]));
|
|
14285
14296
|
}
|
|
14286
|
-
}),
|
|
14297
|
+
}), t_ = /* @__PURE__ */ O({
|
|
14287
14298
|
__name: "MSticky",
|
|
14288
14299
|
props: {
|
|
14289
14300
|
top: { default: 0 },
|
|
@@ -14301,7 +14312,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14301
14312
|
}));
|
|
14302
14313
|
return (e, t) => (V(), C("div", { style: F(r.value) }, [G(e.$slots, "default")], 4));
|
|
14303
14314
|
}
|
|
14304
|
-
}),
|
|
14315
|
+
}), n_ = /* @__PURE__ */ O({
|
|
14305
14316
|
__name: "MText",
|
|
14306
14317
|
props: {
|
|
14307
14318
|
variant: { default: "body-medium" },
|
|
@@ -14381,7 +14392,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14381
14392
|
_: 3
|
|
14382
14393
|
}, 8, ["class"]));
|
|
14383
14394
|
}
|
|
14384
|
-
}),
|
|
14395
|
+
}), r_ = /* @__PURE__ */ O({
|
|
14385
14396
|
__name: "MSubtitle",
|
|
14386
14397
|
props: {
|
|
14387
14398
|
size: { default: "large" },
|
|
@@ -14395,7 +14406,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14395
14406
|
medium: "body-medium",
|
|
14396
14407
|
small: "body-small"
|
|
14397
14408
|
}, r = y(() => n[t.size]);
|
|
14398
|
-
return (t, n) => (V(), x(
|
|
14409
|
+
return (t, n) => (V(), x(n_, {
|
|
14399
14410
|
variant: r.value,
|
|
14400
14411
|
color: e.color,
|
|
14401
14412
|
align: e.align,
|
|
@@ -14410,31 +14421,31 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14410
14421
|
"truncate"
|
|
14411
14422
|
]));
|
|
14412
14423
|
}
|
|
14413
|
-
}),
|
|
14424
|
+
}), i_ = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, a_ = {
|
|
14414
14425
|
key: 0,
|
|
14415
14426
|
class: "flex flex-wrap items-center gap-3 border-b border-outline-variant bg-surface-container-lowest px-4 py-2.5"
|
|
14416
|
-
},
|
|
14427
|
+
}, o_ = {
|
|
14417
14428
|
key: 0,
|
|
14418
14429
|
class: "flex min-w-48 flex-1 items-center gap-2 rounded-full border border-outline-variant bg-surface-container px-3 py-1.5 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary/30 transition-[border-color,box-shadow] duration-150"
|
|
14419
|
-
},
|
|
14430
|
+
}, s_ = ["placeholder"], c_ = {
|
|
14420
14431
|
key: 0,
|
|
14421
14432
|
class: "rounded-full bg-primary/12 px-3 py-1 text-label-small font-medium text-primary"
|
|
14422
|
-
},
|
|
14433
|
+
}, l_ = { class: "overflow-x-auto" }, u_ = { class: "w-full border-collapse" }, d_ = { class: "bg-surface-container-high" }, f_ = {
|
|
14423
14434
|
key: 0,
|
|
14424
14435
|
class: "w-12 px-4 py-3"
|
|
14425
|
-
},
|
|
14436
|
+
}, p_ = ["onClick"], m_ = { class: "inline-flex items-center gap-1" }, h_ = {
|
|
14426
14437
|
key: 0,
|
|
14427
14438
|
class: "inline-flex"
|
|
14428
|
-
},
|
|
14439
|
+
}, g_ = {
|
|
14429
14440
|
key: 1,
|
|
14430
14441
|
class: "w-1 px-4 py-3"
|
|
14431
|
-
},
|
|
14442
|
+
}, __ = {
|
|
14432
14443
|
key: 0,
|
|
14433
14444
|
class: "px-4 py-3.5"
|
|
14434
|
-
},
|
|
14445
|
+
}, v_ = {
|
|
14435
14446
|
key: 1,
|
|
14436
14447
|
class: "px-4 py-3.5"
|
|
14437
|
-
},
|
|
14448
|
+
}, y_ = { key: 1 }, b_ = ["colspan"], x_ = { class: "text-body-medium text-on-surface-variant" }, S_ = ["onClick"], C_ = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, w_ = /* @__PURE__ */ O({
|
|
14438
14449
|
__name: "MTable",
|
|
14439
14450
|
props: {
|
|
14440
14451
|
columns: {},
|
|
@@ -14579,9 +14590,9 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14579
14590
|
return `${a[(e * 3 + t) % a.length]}%`;
|
|
14580
14591
|
}
|
|
14581
14592
|
let H = oe(), ee = y(() => !!H["row-actions"]);
|
|
14582
|
-
return (t, n) => (V(), C("div",
|
|
14583
|
-
e.searchable || t.$slots.toolbar ? (V(), C("div",
|
|
14584
|
-
e.searchable ? (V(), C("div",
|
|
14593
|
+
return (t, n) => (V(), C("div", i_, [
|
|
14594
|
+
e.searchable || t.$slots.toolbar ? (V(), C("div", a_, [
|
|
14595
|
+
e.searchable ? (V(), C("div", o_, [
|
|
14585
14596
|
D(r, {
|
|
14586
14597
|
name: "search",
|
|
14587
14598
|
size: 16,
|
|
@@ -14592,7 +14603,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14592
14603
|
type: "text",
|
|
14593
14604
|
placeholder: e.searchPlaceholder ?? J(i).search,
|
|
14594
14605
|
class: "w-full bg-transparent text-body-medium text-on-surface outline-none placeholder:text-on-surface-variant"
|
|
14595
|
-
}, null, 8,
|
|
14606
|
+
}, null, 8, s_), [[se, c.value]]),
|
|
14596
14607
|
c.value ? (V(), C("button", {
|
|
14597
14608
|
key: 0,
|
|
14598
14609
|
class: "text-on-surface-variant transition-colors hover:text-on-surface",
|
|
@@ -14609,12 +14620,12 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14609
14620
|
"leave-active-class": "transition-[opacity,transform] duration-100",
|
|
14610
14621
|
"leave-to-class": "opacity-0 scale-90"
|
|
14611
14622
|
}, {
|
|
14612
|
-
default: X(() => [e.selectable && O.value.length > 0 ? (V(), C("span",
|
|
14623
|
+
default: X(() => [e.selectable && O.value.length > 0 ? (V(), C("span", c_, q(O.value.length) + " " + q(e.selectedText ?? J(i).selectedCount) + q(O.value.length === 1 ? "" : "s"), 1)) : S("", !0)]),
|
|
14613
14624
|
_: 1
|
|
14614
14625
|
})
|
|
14615
14626
|
])) : S("", !0),
|
|
14616
|
-
w("div",
|
|
14617
|
-
e.selectable ? (V(), C("th",
|
|
14627
|
+
w("div", l_, [w("table", u_, [w("thead", null, [w("tr", d_, [
|
|
14628
|
+
e.selectable ? (V(), C("th", f_, [D(jr, {
|
|
14618
14629
|
"model-value": M.value,
|
|
14619
14630
|
indeterminate: N.value,
|
|
14620
14631
|
"onUpdate:modelValue": I
|
|
@@ -14628,7 +14639,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14628
14639
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors duration-100" : ""
|
|
14629
14640
|
]),
|
|
14630
14641
|
onClick: (t) => e.sortable ? d(e.key) : void 0
|
|
14631
|
-
}, [w("span",
|
|
14642
|
+
}, [w("span", m_, [E(q(e.label) + " ", 1), e.sortable ? (V(), C("span", h_, [l.value === e.key && u.value === "asc" ? (V(), x(r, {
|
|
14632
14643
|
key: 0,
|
|
14633
14644
|
name: "arrow_upward",
|
|
14634
14645
|
size: 14,
|
|
@@ -14643,13 +14654,13 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14643
14654
|
name: "unfold_more",
|
|
14644
14655
|
size: 14,
|
|
14645
14656
|
class: "opacity-30"
|
|
14646
|
-
}))])) : S("", !0)])], 14,
|
|
14647
|
-
ee.value ? (V(), C("th",
|
|
14657
|
+
}))])) : S("", !0)])], 14, p_))), 128)),
|
|
14658
|
+
ee.value ? (V(), C("th", g_)) : S("", !0)
|
|
14648
14659
|
])]), w("tbody", null, [e.loading ? (V(!0), C(h, { key: 0 }, W(e.perPage, (t) => (V(), C("tr", {
|
|
14649
14660
|
key: `sk-${t}`,
|
|
14650
14661
|
class: "border-t border-outline-variant"
|
|
14651
14662
|
}, [
|
|
14652
|
-
e.selectable ? (V(), C("td",
|
|
14663
|
+
e.selectable ? (V(), C("td", __, [...n[5] ||= [w("div", { class: "h-4 w-4 animate-pulse rounded bg-on-surface/10" }, null, -1)]])) : S("", !0),
|
|
14653
14664
|
(V(!0), C(h, null, W(e.columns, (e, n) => (V(), C("td", {
|
|
14654
14665
|
key: e.key,
|
|
14655
14666
|
class: "px-4 py-3.5"
|
|
@@ -14657,15 +14668,15 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14657
14668
|
class: "h-4 animate-pulse rounded-full bg-on-surface/10",
|
|
14658
14669
|
style: F({ width: B(t, n) })
|
|
14659
14670
|
}, null, 4)]))), 128)),
|
|
14660
|
-
ee.value ? (V(), C("td",
|
|
14661
|
-
]))), 128)) : v.value.length === 0 ? (V(), C("tr",
|
|
14671
|
+
ee.value ? (V(), C("td", v_, [...n[6] ||= [w("div", { class: "ml-auto h-4 w-16 animate-pulse rounded-full bg-on-surface/10" }, null, -1)]])) : S("", !0)
|
|
14672
|
+
]))), 128)) : v.value.length === 0 ? (V(), C("tr", y_, [w("td", {
|
|
14662
14673
|
colspan: e.columns.length + L.value,
|
|
14663
14674
|
class: "border-t border-outline-variant px-4 py-14 text-center"
|
|
14664
14675
|
}, [G(t.$slots, "empty", {}, () => [D(r, {
|
|
14665
14676
|
name: "search_off",
|
|
14666
14677
|
size: 36,
|
|
14667
14678
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
14668
|
-
}), w("p",
|
|
14679
|
+
}), w("p", x_, q(e.emptyText ?? J(i).noResults), 1)])], 8, b_)])) : (V(!0), C(h, { key: 2 }, W(v.value, (r) => (V(), C("tr", {
|
|
14669
14680
|
key: k(r),
|
|
14670
14681
|
class: P([
|
|
14671
14682
|
"border-t border-outline-variant transition-colors duration-100",
|
|
@@ -14696,8 +14707,8 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14696
14707
|
class: "px-4 py-3 text-right",
|
|
14697
14708
|
onClick: n[3] ||= Z(() => {}, ["stop"])
|
|
14698
14709
|
}, [G(t.$slots, "row-actions", { row: r })])) : S("", !0)
|
|
14699
|
-
], 10,
|
|
14700
|
-
w("div",
|
|
14710
|
+
], 10, S_))), 128))])])]),
|
|
14711
|
+
w("div", C_, [D(Ai, {
|
|
14701
14712
|
page: p.value,
|
|
14702
14713
|
"per-page": e.perPage,
|
|
14703
14714
|
total: g.value,
|
|
@@ -14709,21 +14720,21 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14709
14720
|
])])
|
|
14710
14721
|
]));
|
|
14711
14722
|
}
|
|
14712
|
-
}),
|
|
14723
|
+
}), T_ = { class: "flex flex-col gap-1" }, E_ = ["id"], D_ = ["onClick"], O_ = [
|
|
14713
14724
|
"value",
|
|
14714
14725
|
"placeholder",
|
|
14715
14726
|
"disabled",
|
|
14716
14727
|
"readonly"
|
|
14717
|
-
],
|
|
14728
|
+
], k_ = {
|
|
14718
14729
|
key: 0,
|
|
14719
14730
|
class: "text-error"
|
|
14720
|
-
},
|
|
14731
|
+
}, A_ = {
|
|
14721
14732
|
key: 0,
|
|
14722
14733
|
class: "px-4 text-body-small text-error"
|
|
14723
|
-
},
|
|
14734
|
+
}, j_ = {
|
|
14724
14735
|
key: 1,
|
|
14725
14736
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
14726
|
-
},
|
|
14737
|
+
}, M_ = /* @__PURE__ */ O({
|
|
14727
14738
|
__name: "MTagInput",
|
|
14728
14739
|
props: {
|
|
14729
14740
|
modelValue: { default: () => [] },
|
|
@@ -14825,7 +14836,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14825
14836
|
n.disabled ? "text-on-surface/38" : c.value ? n.error ? "text-error" : "text-primary" : n.error ? "text-error" : "text-on-surface-variant"
|
|
14826
14837
|
].join(" ");
|
|
14827
14838
|
});
|
|
14828
|
-
return (t, n) => (V(), C("div",
|
|
14839
|
+
return (t, n) => (V(), C("div", T_, [w("div", {
|
|
14829
14840
|
ref_key: "fieldEl",
|
|
14830
14841
|
ref: u,
|
|
14831
14842
|
class: P(["relative", e.variant === "outlined" ? "mt-2" : ""]),
|
|
@@ -14853,7 +14864,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14853
14864
|
}, [D(r, {
|
|
14854
14865
|
name: "close",
|
|
14855
14866
|
size: 12
|
|
14856
|
-
})], 8,
|
|
14867
|
+
})], 8, D_))], 2))), 128)), w("input", {
|
|
14857
14868
|
ref_key: "inputEl",
|
|
14858
14869
|
ref: d,
|
|
14859
14870
|
value: l.value,
|
|
@@ -14873,8 +14884,8 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14873
14884
|
onPaste: O,
|
|
14874
14885
|
onFocus: n[0] ||= (e) => c.value = !0,
|
|
14875
14886
|
onBlur: k
|
|
14876
|
-
}, null, 42,
|
|
14877
|
-
w("label", { class: P(M.value) }, [E(q(e.label), 1), e.required ? (V(), C("span",
|
|
14887
|
+
}, null, 42, O_)], 10, E_),
|
|
14888
|
+
w("label", { class: P(M.value) }, [E(q(e.label), 1), e.required ? (V(), C("span", k_, "\xA0*")) : S("", !0)], 2),
|
|
14878
14889
|
e.clearable && g.value && !e.disabled ? (V(), C("button", {
|
|
14879
14890
|
key: 1,
|
|
14880
14891
|
type: "button",
|
|
@@ -14886,15 +14897,15 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14886
14897
|
name: "close",
|
|
14887
14898
|
size: 18
|
|
14888
14899
|
})])) : S("", !0)
|
|
14889
|
-
], 6), e.error && e.errorLabel ? (V(), C("p",
|
|
14900
|
+
], 6), e.error && e.errorLabel ? (V(), C("p", A_, q(e.errorLabel), 1)) : e.hint ? (V(), C("p", j_, q(e.hint), 1)) : S("", !0)]));
|
|
14890
14901
|
}
|
|
14891
|
-
}),
|
|
14902
|
+
}), N_ = {
|
|
14892
14903
|
key: 0,
|
|
14893
14904
|
class: "border-b border-outline-variant"
|
|
14894
|
-
},
|
|
14905
|
+
}, P_ = ["disabled", "onClick"], F_ = {
|
|
14895
14906
|
key: 1,
|
|
14896
14907
|
class: "border-b border-outline-variant"
|
|
14897
|
-
},
|
|
14908
|
+
}, I_ = ["disabled", "onClick"], L_ = .9, R_ = 700, z_ = /* @__PURE__ */ O({
|
|
14898
14909
|
__name: "MTabs",
|
|
14899
14910
|
props: {
|
|
14900
14911
|
modelValue: {},
|
|
@@ -14915,7 +14926,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14915
14926
|
width: t.offsetWidth
|
|
14916
14927
|
} : null;
|
|
14917
14928
|
}
|
|
14918
|
-
let l = 2 *
|
|
14929
|
+
let l = 2 * L_ * Math.sqrt(R_), u = 0, d = 0, f = 0, p = 0, m = 0, g = 0, _ = 0, v = 0;
|
|
14919
14930
|
function y(e, t, n, r) {
|
|
14920
14931
|
let i = t + (-700 * (e - n) - l * t) * r;
|
|
14921
14932
|
return [e + i * r, i];
|
|
@@ -14949,7 +14960,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14949
14960
|
function O(e) {
|
|
14950
14961
|
e.disabled || i("update:modelValue", e.value);
|
|
14951
14962
|
}
|
|
14952
|
-
return (t, n) => e.variant === "primary" ? (V(), C("div",
|
|
14963
|
+
return (t, n) => e.variant === "primary" ? (V(), C("div", N_, [w("div", {
|
|
14953
14964
|
class: P(["relative flex", e.scrollable ? "overflow-x-auto" : "overflow-x-hidden"]),
|
|
14954
14965
|
style: { "scrollbar-width": "none" }
|
|
14955
14966
|
}, [(V(!0), C(h, null, W(e.tabs, (t) => (V(), C("button", {
|
|
@@ -14970,13 +14981,13 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14970
14981
|
key: 0,
|
|
14971
14982
|
name: t.icon,
|
|
14972
14983
|
size: 24
|
|
14973
|
-
}, null, 8, ["name"])) : S("", !0), w("span", null, q(t.label), 1)], 10,
|
|
14984
|
+
}, null, 8, ["name"])) : S("", !0), w("span", null, q(t.label), 1)], 10, P_))), 128)), w("div", {
|
|
14974
14985
|
class: "absolute bottom-0 h-[3px] rounded-t-full bg-primary",
|
|
14975
14986
|
style: F({
|
|
14976
14987
|
left: `${o.value}px`,
|
|
14977
14988
|
width: `${s.value}px`
|
|
14978
14989
|
})
|
|
14979
|
-
}, null, 4)], 2)])) : (V(), C("div",
|
|
14990
|
+
}, null, 4)], 2)])) : (V(), C("div", F_, [w("div", {
|
|
14980
14991
|
class: P(["relative flex", e.scrollable ? "overflow-x-auto" : "overflow-x-hidden"]),
|
|
14981
14992
|
style: { "scrollbar-width": "none" }
|
|
14982
14993
|
}, [(V(!0), C(h, null, W(e.tabs, (t) => (V(), C("button", {
|
|
@@ -14993,7 +15004,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
14993
15004
|
key: 0,
|
|
14994
15005
|
name: t.icon,
|
|
14995
15006
|
size: 24
|
|
14996
|
-
}, null, 8, ["name"])) : S("", !0), E(" " + q(t.label), 1)], 10,
|
|
15007
|
+
}, null, 8, ["name"])) : S("", !0), E(" " + q(t.label), 1)], 10, I_))), 128)), w("div", {
|
|
14997
15008
|
class: "absolute bottom-0 h-[3px] bg-primary",
|
|
14998
15009
|
style: F({
|
|
14999
15010
|
left: `${o.value}px`,
|
|
@@ -15001,25 +15012,25 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15001
15012
|
})
|
|
15002
15013
|
}, null, 4)], 2)]));
|
|
15003
15014
|
}
|
|
15004
|
-
}),
|
|
15015
|
+
}), B_ = { class: "flex flex-col items-center" }, V_ = { class: "flex items-baseline justify-between gap-2" }, H_ = { class: "text-body-large font-medium text-on-surface" }, U_ = {
|
|
15005
15016
|
key: 0,
|
|
15006
15017
|
class: "shrink-0 text-label-small text-on-surface-variant"
|
|
15007
|
-
},
|
|
15018
|
+
}, W_ = {
|
|
15008
15019
|
key: 0,
|
|
15009
15020
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
15010
|
-
},
|
|
15021
|
+
}, G_ = {
|
|
15011
15022
|
key: 1,
|
|
15012
15023
|
class: "mt-2"
|
|
15013
|
-
},
|
|
15024
|
+
}, K_ = { class: "text-body-large font-medium text-on-surface" }, q_ = {
|
|
15014
15025
|
key: 0,
|
|
15015
15026
|
class: "mt-1 text-body-medium text-on-surface-variant"
|
|
15016
|
-
},
|
|
15027
|
+
}, J_ = {
|
|
15017
15028
|
key: 1,
|
|
15018
15029
|
class: "mt-1 inline-block text-label-small text-on-surface-variant"
|
|
15019
|
-
},
|
|
15030
|
+
}, Y_ = { class: "flex w-14 shrink-0 flex-col items-center" }, X_ = {
|
|
15020
15031
|
key: 0,
|
|
15021
15032
|
class: "w-[2px] flex-1 bg-outline-variant"
|
|
15022
|
-
},
|
|
15033
|
+
}, Z_ = /* @__PURE__ */ O({
|
|
15023
15034
|
__name: "MTimeline",
|
|
15024
15035
|
props: {
|
|
15025
15036
|
items: {},
|
|
@@ -15045,23 +15056,23 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15045
15056
|
class: P(["flex items-stretch", a % 2 == 0 ? "flex-row" : "flex-row-reverse"])
|
|
15046
15057
|
}, [
|
|
15047
15058
|
w("div", { class: P(["flex-1", [a % 2 == 0 ? "text-right" : "text-left", e.dense ? "pb-4" : "pb-8"]]) }, [
|
|
15048
|
-
w("p",
|
|
15049
|
-
n.description ? (V(), C("p",
|
|
15050
|
-
n.date ? (V(), C("span",
|
|
15059
|
+
w("p", K_, q(n.title), 1),
|
|
15060
|
+
n.description ? (V(), C("p", q_, q(n.description), 1)) : S("", !0),
|
|
15061
|
+
n.date ? (V(), C("span", J_, q(n.date), 1)) : S("", !0)
|
|
15051
15062
|
], 2),
|
|
15052
|
-
w("div",
|
|
15063
|
+
w("div", Y_, [w("div", {
|
|
15053
15064
|
class: P(["z-1 flex shrink-0 items-center justify-center rounded-full", [n.icon ? "h-9 w-9" : "h-3.5 w-3.5", t[n.color ?? "primary"]]]),
|
|
15054
15065
|
style: F(n.dotColor ? { backgroundColor: n.dotColor } : void 0)
|
|
15055
15066
|
}, [n.icon ? (V(), x(r, {
|
|
15056
15067
|
key: 0,
|
|
15057
15068
|
name: n.icon,
|
|
15058
15069
|
size: 18
|
|
15059
|
-
}, null, 8, ["name"])) : S("", !0)], 6), a < e.items.length - 1 ? (V(), C("div",
|
|
15070
|
+
}, null, 8, ["name"])) : S("", !0)], 6), a < e.items.length - 1 ? (V(), C("div", X_)) : S("", !0)]),
|
|
15060
15071
|
i[0] ||= w("div", { class: "flex-1" }, null, -1)
|
|
15061
15072
|
], 2))), 128)) : (V(!0), C(h, { key: 0 }, W(e.items, (i, a) => (V(), C("div", {
|
|
15062
15073
|
key: a,
|
|
15063
15074
|
class: P(["relative flex gap-4", e.dense ? "pb-4" : "pb-8"])
|
|
15064
|
-
}, [w("div",
|
|
15075
|
+
}, [w("div", B_, [w("div", {
|
|
15065
15076
|
class: P(["z-1 flex shrink-0 items-center justify-center rounded-full", [i.icon ? "h-9 w-9" : "h-3 w-3", t[i.color ?? "primary"]]]),
|
|
15066
15077
|
style: F(i.dotColor ? { backgroundColor: i.dotColor } : void 0)
|
|
15067
15078
|
}, [i.icon ? (V(), x(r, {
|
|
@@ -15073,24 +15084,24 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15073
15084
|
class: P(["w-[2px] flex-1", t[i.color ?? "primary"].split(" ")[0] + "/30"]),
|
|
15074
15085
|
style: { "min-height": "16px" }
|
|
15075
15086
|
}, null, 2)) : S("", !0)]), w("div", { class: P([i.icon ? "" : "pt-0", "-mt-0.5 flex-1"]) }, [
|
|
15076
|
-
w("div",
|
|
15077
|
-
i.description ? (V(), C("p",
|
|
15078
|
-
n.$slots[`item-${a}`] ? (V(), C("div",
|
|
15087
|
+
w("div", V_, [w("p", H_, q(i.title), 1), i.date ? (V(), C("span", U_, q(i.date), 1)) : S("", !0)]),
|
|
15088
|
+
i.description ? (V(), C("p", W_, q(i.description), 1)) : S("", !0),
|
|
15089
|
+
n.$slots[`item-${a}`] ? (V(), C("div", G_, [G(n.$slots, `item-${a}`, { item: i })])) : S("", !0)
|
|
15079
15090
|
], 2)], 2))), 128))], 2));
|
|
15080
15091
|
}
|
|
15081
|
-
}),
|
|
15092
|
+
}), Q_ = { class: "flex flex-col gap-1" }, $_ = {
|
|
15082
15093
|
key: 0,
|
|
15083
15094
|
class: "px-4 text-body-small text-error"
|
|
15084
|
-
},
|
|
15095
|
+
}, ev = {
|
|
15085
15096
|
key: 1,
|
|
15086
15097
|
class: "px-4 text-body-small text-on-surface-variant"
|
|
15087
|
-
},
|
|
15098
|
+
}, tv = { class: "flex items-center justify-center gap-1 border-b border-outline-variant px-4 py-4" }, nv = { class: "p-3" }, rv = {
|
|
15088
15099
|
key: 0,
|
|
15089
15100
|
class: "grid grid-cols-6 gap-1"
|
|
15090
|
-
},
|
|
15101
|
+
}, iv = ["onClick"], av = {
|
|
15091
15102
|
key: 1,
|
|
15092
15103
|
class: "grid grid-cols-6 gap-1"
|
|
15093
|
-
},
|
|
15104
|
+
}, ov = ["onClick"], sv = /* @__PURE__ */ O({
|
|
15094
15105
|
__name: "MTimePicker",
|
|
15095
15106
|
props: {
|
|
15096
15107
|
modelValue: {},
|
|
@@ -15163,7 +15174,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15163
15174
|
e ? (d.value = "hour", v.value = m.value.h, b.value = m.value.m, N(), setTimeout(() => document.addEventListener("mousedown", I), 0)) : document.removeEventListener("mousedown", I);
|
|
15164
15175
|
}), R(() => window.addEventListener("scroll", L, !0)), z(() => {
|
|
15165
15176
|
window.removeEventListener("scroll", L, !0), document.removeEventListener("mousedown", I);
|
|
15166
|
-
}), (t, n) => (V(), C("div",
|
|
15177
|
+
}), (t, n) => (V(), C("div", Q_, [
|
|
15167
15178
|
w("div", {
|
|
15168
15179
|
ref_key: "triggerEl",
|
|
15169
15180
|
ref: l,
|
|
@@ -15197,7 +15208,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15197
15208
|
key: 0,
|
|
15198
15209
|
class: P(["pointer-events-none absolute -top-2.5 left-3 bg-(--field-bg) px-1 text-label-small transition-colors", e.disabled ? "text-on-surface/38" : c.value ? e.error ? "text-error" : "text-primary" : e.error ? "text-error" : "text-on-surface-variant"])
|
|
15199
15210
|
}, q(e.label), 3)) : S("", !0)], 4),
|
|
15200
|
-
e.error && e.errorLabel ? (V(), C("p",
|
|
15211
|
+
e.error && e.errorLabel ? (V(), C("p", $_, q(e.errorLabel), 1)) : e.hint ? (V(), C("p", ev, q(e.hint), 1)) : S("", !0),
|
|
15201
15212
|
(V(), x(g, { to: "body" }, [D(_, {
|
|
15202
15213
|
"enter-active-class": "transition-[opacity,transform] duration-150",
|
|
15203
15214
|
"enter-from-class": "opacity-0 -translate-y-1 scale-[0.98]",
|
|
@@ -15210,7 +15221,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15210
15221
|
ref: u,
|
|
15211
15222
|
class: "fixed z-500 w-[280px] rounded-[28px] bg-surface-container-high shadow-elevation-3",
|
|
15212
15223
|
style: F(f.value)
|
|
15213
|
-
}, [w("div",
|
|
15224
|
+
}, [w("div", tv, [
|
|
15214
15225
|
w("button", {
|
|
15215
15226
|
type: "button",
|
|
15216
15227
|
class: P(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", d.value === "hour" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -15222,34 +15233,34 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15222
15233
|
class: P(["rounded-lg px-3 py-2 font-mono text-headline-medium transition-colors", d.value === "minute" ? "bg-primary-container text-on-primary-container cursor-default" : "cursor-pointer text-on-surface-variant hover:bg-on-surface/8"]),
|
|
15223
15234
|
onClick: n[2] ||= (e) => d.value = "minute"
|
|
15224
15235
|
}, q(O(b.value)), 3)
|
|
15225
|
-
]), w("div",
|
|
15236
|
+
]), w("div", nv, [d.value === "hour" ? (V(), C("div", rv, [(V(!0), C(h, null, W(J(T), (e) => (V(), C("button", {
|
|
15226
15237
|
key: e,
|
|
15227
15238
|
type: "button",
|
|
15228
15239
|
class: P(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === v.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
15229
15240
|
onClick: (t) => k(e)
|
|
15230
|
-
}, q(O(e)), 11,
|
|
15241
|
+
}, q(O(e)), 11, iv))), 128))])) : (V(), C("div", av, [(V(!0), C(h, null, W(E.value, (e) => (V(), C("button", {
|
|
15231
15242
|
key: e,
|
|
15232
15243
|
type: "button",
|
|
15233
15244
|
class: P(["flex h-9 cursor-pointer items-center justify-center rounded-full text-body-medium transition-colors duration-100", e === b.value ? "bg-primary text-on-primary" : "text-on-surface hover:bg-on-surface/8"]),
|
|
15234
15245
|
onClick: (t) => A(e)
|
|
15235
|
-
}, q(O(e)), 11,
|
|
15246
|
+
}, q(O(e)), 11, ov))), 128))]))])], 4)) : S("", !0)]),
|
|
15236
15247
|
_: 1
|
|
15237
15248
|
})]))
|
|
15238
15249
|
]));
|
|
15239
15250
|
}
|
|
15240
|
-
}),
|
|
15251
|
+
}), cv = { class: "tp-box w-[328px] rounded-[28px] bg-surface-container-high px-6 pt-6 pb-4 shadow-elevation-3" }, lv = { class: "mb-5 text-label-medium text-on-surface-variant" }, uv = { class: "mb-5 flex items-center justify-center gap-2" }, dv = {
|
|
15241
15252
|
key: 0,
|
|
15242
15253
|
class: "ml-2 flex h-20 flex-col overflow-hidden rounded-sm border border-outline"
|
|
15243
|
-
},
|
|
15254
|
+
}, fv = {
|
|
15244
15255
|
class: "pointer-events-none absolute inset-0",
|
|
15245
15256
|
viewBox: "0 0 256 256"
|
|
15246
|
-
},
|
|
15257
|
+
}, pv = ["x2", "y2"], mv = ["cx", "cy"], hv = ["onClick"], gv = ["onClick"], _v = {
|
|
15247
15258
|
key: 1,
|
|
15248
15259
|
class: "mx-auto flex items-center justify-center gap-2 py-8"
|
|
15249
|
-
},
|
|
15260
|
+
}, vv = {
|
|
15250
15261
|
key: 0,
|
|
15251
15262
|
class: "ml-2 flex h-20 flex-col overflow-hidden rounded-sm border border-outline"
|
|
15252
|
-
},
|
|
15263
|
+
}, yv = { class: "mt-2 flex items-center justify-between" }, bv = { class: "flex gap-2" }, xv = 256, Sv = 100, Cv = 64, wv = 24, Tv = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
15253
15264
|
__name: "MTimePickerModal",
|
|
15254
15265
|
props: {
|
|
15255
15266
|
modelValue: { default: null },
|
|
@@ -15287,7 +15298,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15287
15298
|
r.use24h ? u.value = e : (c.value = e >= 12 ? "PM" : "AM", u.value = e % 12 || 12), f.value = t, o.value = "hour", s.value = "dial", document.addEventListener("keydown", K), document.body.style.overflow = "hidden";
|
|
15288
15299
|
} else document.removeEventListener("keydown", K), document.body.style.overflow = "";
|
|
15289
15300
|
});
|
|
15290
|
-
let O =
|
|
15301
|
+
let O = xv / 2;
|
|
15291
15302
|
function k(e, t, n) {
|
|
15292
15303
|
let r = e / t * Math.PI * 2 - Math.PI / 2;
|
|
15293
15304
|
return {
|
|
@@ -15298,7 +15309,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15298
15309
|
let A = y(() => {
|
|
15299
15310
|
let e = [];
|
|
15300
15311
|
for (let t = 0; t < 12; t++) {
|
|
15301
|
-
let n = t === 0 ? 12 : t, r = k(t, 12,
|
|
15312
|
+
let n = t === 0 ? 12 : t, r = k(t, 12, Sv);
|
|
15302
15313
|
e.push({
|
|
15303
15314
|
value: n,
|
|
15304
15315
|
label: String(n),
|
|
@@ -15306,7 +15317,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15306
15317
|
});
|
|
15307
15318
|
}
|
|
15308
15319
|
if (r.use24h) for (let t = 0; t < 12; t++) {
|
|
15309
|
-
let n = t === 0 ? 0 : t + 12, r = k(t, 12,
|
|
15320
|
+
let n = t === 0 ? 0 : t + 12, r = k(t, 12, Cv);
|
|
15310
15321
|
e.push({
|
|
15311
15322
|
value: n,
|
|
15312
15323
|
label: b(n),
|
|
@@ -15315,7 +15326,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15315
15326
|
}
|
|
15316
15327
|
return e;
|
|
15317
15328
|
}), j = y(() => Array.from({ length: 12 }, (e, t) => {
|
|
15318
|
-
let n = t * 5, r = k(t, 12,
|
|
15329
|
+
let n = t * 5, r = k(t, 12, Sv);
|
|
15319
15330
|
return {
|
|
15320
15331
|
value: n,
|
|
15321
15332
|
label: b(n),
|
|
@@ -15323,7 +15334,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15323
15334
|
};
|
|
15324
15335
|
})), M = y(() => {
|
|
15325
15336
|
if (o.value === "hour") {
|
|
15326
|
-
let e = u.value, t = r.use24h && (e === 0 || e > 12) ?
|
|
15337
|
+
let e = u.value, t = r.use24h && (e === 0 || e > 12) ? Cv : Sv, n = e % 12 / 12 * Math.PI * 2 - Math.PI / 2;
|
|
15327
15338
|
return {
|
|
15328
15339
|
x: O + Math.cos(n) * t,
|
|
15329
15340
|
y: O + Math.sin(n) * t
|
|
@@ -15331,8 +15342,8 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15331
15342
|
}
|
|
15332
15343
|
let e = f.value / 60 * Math.PI * 2 - Math.PI / 2;
|
|
15333
15344
|
return {
|
|
15334
|
-
x: O + Math.cos(e) *
|
|
15335
|
-
y: O + Math.sin(e) *
|
|
15345
|
+
x: O + Math.cos(e) * Sv,
|
|
15346
|
+
y: O + Math.sin(e) * Sv
|
|
15336
15347
|
};
|
|
15337
15348
|
});
|
|
15338
15349
|
function N(e) {
|
|
@@ -15410,9 +15421,9 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15410
15421
|
key: 0,
|
|
15411
15422
|
class: "fixed inset-0 z-50 flex items-center justify-center bg-scrim/32 p-4",
|
|
15412
15423
|
onClick: Z(G, ["self"])
|
|
15413
|
-
}, [w("div",
|
|
15414
|
-
w("p",
|
|
15415
|
-
s.value === "dial" ? (V(), C(h, { key: 0 }, [w("div",
|
|
15424
|
+
}, [w("div", cv, [
|
|
15425
|
+
w("p", lv, q(e.title || J(i).selectTime), 1),
|
|
15426
|
+
s.value === "dial" ? (V(), C(h, { key: 0 }, [w("div", uv, [
|
|
15416
15427
|
w("button", {
|
|
15417
15428
|
type: "button",
|
|
15418
15429
|
class: P(["flex h-20 min-w-[96px] items-center justify-center rounded-sm text-display-large transition-colors", o.value === "hour" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface cursor-pointer hover:bg-on-surface/8"]),
|
|
@@ -15424,7 +15435,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15424
15435
|
class: P(["flex h-20 min-w-[96px] items-center justify-center rounded-sm text-display-large transition-colors", o.value === "minute" ? "bg-primary-container text-on-primary-container" : "bg-surface-container-highest text-on-surface cursor-pointer hover:bg-on-surface/8"]),
|
|
15425
15436
|
onClick: n[1] ||= (e) => o.value = "minute"
|
|
15426
15437
|
}, q(b(f.value)), 3),
|
|
15427
|
-
e.use24h ? S("", !0) : (V(), C("div",
|
|
15438
|
+
e.use24h ? S("", !0) : (V(), C("div", dv, [
|
|
15428
15439
|
w("button", {
|
|
15429
15440
|
type: "button",
|
|
15430
15441
|
class: P(["flex flex-1 items-center justify-center px-3 text-title-medium transition-colors", c.value === "AM" ? "bg-tertiary-container text-on-tertiary-container" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -15445,7 +15456,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15445
15456
|
onTouchstart: Z(R, ["prevent"])
|
|
15446
15457
|
}, [
|
|
15447
15458
|
n[11] ||= w("div", { class: "absolute inset-0 rounded-full bg-surface-container-highest" }, null, -1),
|
|
15448
|
-
(V(), C("svg",
|
|
15459
|
+
(V(), C("svg", fv, [
|
|
15449
15460
|
w("line", {
|
|
15450
15461
|
x1: O,
|
|
15451
15462
|
y1: O,
|
|
@@ -15453,7 +15464,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15453
15464
|
y2: M.value.y,
|
|
15454
15465
|
stroke: "var(--color-primary)",
|
|
15455
15466
|
"stroke-width": "2"
|
|
15456
|
-
}, null, 8,
|
|
15467
|
+
}, null, 8, pv),
|
|
15457
15468
|
w("circle", {
|
|
15458
15469
|
cx: O,
|
|
15459
15470
|
cy: O,
|
|
@@ -15463,9 +15474,9 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15463
15474
|
w("circle", {
|
|
15464
15475
|
cx: M.value.x,
|
|
15465
15476
|
cy: M.value.y,
|
|
15466
|
-
r:
|
|
15477
|
+
r: wv,
|
|
15467
15478
|
fill: "var(--color-primary)"
|
|
15468
|
-
}, null, 8,
|
|
15479
|
+
}, null, 8, mv)
|
|
15469
15480
|
])),
|
|
15470
15481
|
o.value === "hour" ? (V(!0), C(h, { key: 0 }, W(A.value, (e) => (V(), C("button", {
|
|
15471
15482
|
key: "h" + e.value,
|
|
@@ -15477,7 +15488,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15477
15488
|
transform: "translate(-50%, -50%)"
|
|
15478
15489
|
}),
|
|
15479
15490
|
onClick: Z((t) => z(e.value), ["stop"])
|
|
15480
|
-
}, q(e.label), 15,
|
|
15491
|
+
}, q(e.label), 15, hv))), 128)) : (V(!0), C(h, { key: 1 }, W(j.value, (e) => (V(), C("button", {
|
|
15481
15492
|
key: "m" + e.value,
|
|
15482
15493
|
type: "button",
|
|
15483
15494
|
class: P(["pointer-events-auto absolute flex h-10 w-10 items-center justify-center rounded-full text-body-large transition-colors", e.value === f.value ? "text-on-primary font-medium" : "text-on-surface cursor-pointer"]),
|
|
@@ -15487,8 +15498,8 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15487
15498
|
transform: "translate(-50%, -50%)"
|
|
15488
15499
|
}),
|
|
15489
15500
|
onClick: Z((t) => f.value = e.value, ["stop"])
|
|
15490
|
-
}, q(e.label), 15,
|
|
15491
|
-
], 544)], 64)) : (V(), C("div",
|
|
15501
|
+
}, q(e.label), 15, gv))), 128))
|
|
15502
|
+
], 544)], 64)) : (V(), C("div", _v, [
|
|
15492
15503
|
ue(w("input", {
|
|
15493
15504
|
ref_key: "inputHourEl",
|
|
15494
15505
|
ref: m,
|
|
@@ -15508,7 +15519,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15508
15519
|
class: "h-20 w-[96px] rounded-sm border border-outline bg-surface-container-highest text-center text-display-large text-on-surface outline-none transition-colors focus:border-2 focus:border-primary",
|
|
15509
15520
|
onBlur: ee
|
|
15510
15521
|
}, null, 544), [[se, H.value]]),
|
|
15511
|
-
e.use24h ? S("", !0) : (V(), C("div",
|
|
15522
|
+
e.use24h ? S("", !0) : (V(), C("div", vv, [
|
|
15512
15523
|
w("button", {
|
|
15513
15524
|
type: "button",
|
|
15514
15525
|
class: P(["flex flex-1 items-center justify-center px-3 text-title-medium transition-colors", c.value === "AM" ? "bg-tertiary-container text-on-tertiary-container" : "text-on-surface-variant hover:bg-on-surface/8"]),
|
|
@@ -15522,11 +15533,11 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15522
15533
|
}, "PM", 2)
|
|
15523
15534
|
]))
|
|
15524
15535
|
])),
|
|
15525
|
-
w("div",
|
|
15536
|
+
w("div", yv, [D(d, {
|
|
15526
15537
|
icon: s.value === "dial" ? "keyboard" : "schedule",
|
|
15527
15538
|
label: s.value === "dial" ? "Switch to keyboard" : "Switch to dial",
|
|
15528
15539
|
onClick: n[8] ||= (e) => s.value = s.value === "dial" ? "input" : "dial"
|
|
15529
|
-
}, null, 8, ["icon", "label"]), w("div",
|
|
15540
|
+
}, null, 8, ["icon", "label"]), w("div", bv, [D(l, {
|
|
15530
15541
|
variant: "text",
|
|
15531
15542
|
onClick: G
|
|
15532
15543
|
}, {
|
|
@@ -15543,7 +15554,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15543
15554
|
_: 1
|
|
15544
15555
|
})]));
|
|
15545
15556
|
}
|
|
15546
|
-
}), [["__scopeId", "data-v-5588b0a4"]]),
|
|
15557
|
+
}), [["__scopeId", "data-v-5588b0a4"]]), Ev = /* @__PURE__ */ O({
|
|
15547
15558
|
__name: "MTitle",
|
|
15548
15559
|
props: {
|
|
15549
15560
|
size: { default: "large" },
|
|
@@ -15557,7 +15568,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15557
15568
|
medium: "headline-medium",
|
|
15558
15569
|
small: "headline-small"
|
|
15559
15570
|
}, r = y(() => n[t.size]);
|
|
15560
|
-
return (t, n) => (V(), x(
|
|
15571
|
+
return (t, n) => (V(), x(n_, {
|
|
15561
15572
|
variant: r.value,
|
|
15562
15573
|
weight: "medium",
|
|
15563
15574
|
color: e.color,
|
|
@@ -15573,7 +15584,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15573
15584
|
"truncate"
|
|
15574
15585
|
]));
|
|
15575
15586
|
}
|
|
15576
|
-
}),
|
|
15587
|
+
}), Dv = ["aria-pressed", "disabled"], Ov = "relative inline-flex items-center justify-center font-medium whitespace-nowrap overflow-hidden transition-[box-shadow,background-color,color] duration-150 select-none cursor-pointer disabled:cursor-not-allowed disabled:shadow-none disabled:text-on-surface/38 before:content-[''] before:pointer-events-none before:absolute before:inset-0 before:bg-current before:opacity-0 before:transition-opacity before:duration-150 enabled:hover:before:opacity-[0.08] enabled:active:before:opacity-[0.12]", kv = 1400, Av = /* @__PURE__ */ O({
|
|
15577
15588
|
__name: "MToggleButton",
|
|
15578
15589
|
props: {
|
|
15579
15590
|
checked: { type: Boolean },
|
|
@@ -15660,7 +15671,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15660
15671
|
function h() {
|
|
15661
15672
|
n.disabled || i("update:checked", !n.checked);
|
|
15662
15673
|
}
|
|
15663
|
-
let g = 1.8 * Math.sqrt(
|
|
15674
|
+
let g = 1.8 * Math.sqrt(kv), _ = y(() => d.value ? o.value.pressedRadius : n.checked ? o.value.checkedRadius : o.value.pillRadius), v = _.value, b = 0, w = 0;
|
|
15664
15675
|
function T() {
|
|
15665
15676
|
u.value && (u.value.style.borderRadius = `${v}px`);
|
|
15666
15677
|
}
|
|
@@ -15669,7 +15680,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15669
15680
|
let e = performance.now(), t = (n) => {
|
|
15670
15681
|
let r = Math.min((n - e) / 1e3, 1 / 30);
|
|
15671
15682
|
e = n;
|
|
15672
|
-
let i = _.value, a =
|
|
15683
|
+
let i = _.value, a = kv * (i - v), o = g * b;
|
|
15673
15684
|
if (b += (a - o) * r, v += b * r, Math.abs(i - v) < .1 && Math.abs(b) < .1) {
|
|
15674
15685
|
v = i, b = 0, T(), w = 0;
|
|
15675
15686
|
return;
|
|
@@ -15686,7 +15697,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15686
15697
|
"aria-pressed": e.checked,
|
|
15687
15698
|
disabled: e.disabled,
|
|
15688
15699
|
class: P([
|
|
15689
|
-
|
|
15700
|
+
Ov,
|
|
15690
15701
|
s.value,
|
|
15691
15702
|
c.value,
|
|
15692
15703
|
l.value
|
|
@@ -15700,15 +15711,15 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15700
15711
|
key: 0,
|
|
15701
15712
|
name: e.icon,
|
|
15702
15713
|
size: o.value.icon
|
|
15703
|
-
}, null, 8, ["name", "size"])) : S("", !0), G(t.$slots, "default")], 42,
|
|
15714
|
+
}, null, 8, ["name", "size"])) : S("", !0), G(t.$slots, "default")], 42, Dv));
|
|
15704
15715
|
}
|
|
15705
|
-
}),
|
|
15716
|
+
}), jv = {
|
|
15706
15717
|
key: 0,
|
|
15707
15718
|
class: "px-4 pt-3 pb-1 text-title-small font-medium text-on-surface-variant"
|
|
15708
|
-
},
|
|
15719
|
+
}, Mv = { class: "px-4 py-2 text-body-medium text-on-surface-variant" }, Nv = {
|
|
15709
15720
|
key: 1,
|
|
15710
15721
|
class: "flex justify-end gap-2 px-4 pb-3"
|
|
15711
|
-
},
|
|
15722
|
+
}, Pv = /* @__PURE__ */ O({
|
|
15712
15723
|
__name: "MTooltip",
|
|
15713
15724
|
props: {
|
|
15714
15725
|
text: {},
|
|
@@ -15798,20 +15809,20 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15798
15809
|
onMouseenter: d,
|
|
15799
15810
|
onMouseleave: f
|
|
15800
15811
|
}, [
|
|
15801
|
-
e.text ? (V(), C("div",
|
|
15802
|
-
w("div",
|
|
15803
|
-
t.$slots.actions ? (V(), C("div",
|
|
15812
|
+
e.text ? (V(), C("div", jv, q(e.text), 1)) : S("", !0),
|
|
15813
|
+
w("div", Mv, [G(t.$slots, "content")]),
|
|
15814
|
+
t.$slots.actions ? (V(), C("div", Nv, [G(t.$slots, "actions")])) : S("", !0)
|
|
15804
15815
|
], 36)) : S("", !0)]),
|
|
15805
15816
|
_: 3
|
|
15806
15817
|
})]))], 64));
|
|
15807
15818
|
}
|
|
15808
|
-
}),
|
|
15819
|
+
}), Fv = {
|
|
15809
15820
|
key: 0,
|
|
15810
15821
|
class: "shrink-0"
|
|
15811
|
-
},
|
|
15822
|
+
}, Iv = {
|
|
15812
15823
|
key: 1,
|
|
15813
15824
|
class: "shrink-0"
|
|
15814
|
-
},
|
|
15825
|
+
}, Lv = /* @__PURE__ */ O({
|
|
15815
15826
|
__name: "MToolbar",
|
|
15816
15827
|
props: {
|
|
15817
15828
|
variant: { default: "docked" },
|
|
@@ -15840,7 +15851,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15840
15851
|
e.fabPosition === "start" && !i.value ? "flex-row" : "",
|
|
15841
15852
|
e.fabPosition === "start" && i.value ? "flex-col" : ""
|
|
15842
15853
|
]]) }, [
|
|
15843
|
-
t.$slots.fab && e.fabPosition === "start" ? (V(), C("div",
|
|
15854
|
+
t.$slots.fab && e.fabPosition === "start" ? (V(), C("div", Fv, [G(t.$slots, "fab")])) : S("", !0),
|
|
15844
15855
|
w("div", { class: P(["flex items-center gap-1", [
|
|
15845
15856
|
i.value ? "flex-col w-16" : "flex-row h-16",
|
|
15846
15857
|
i.value ? e.variant === "floating" ? "py-2" : "py-4" : e.variant === "floating" ? "px-2" : "px-4",
|
|
@@ -15851,16 +15862,16 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15851
15862
|
e.variant === "docked" ? "w-full border-t border-outline-variant" : "",
|
|
15852
15863
|
e.variant === "docked" && i.value ? "h-full w-16 border-t-0 border-r border-outline-variant" : ""
|
|
15853
15864
|
]]) }, [G(t.$slots, "default")], 2),
|
|
15854
|
-
t.$slots.fab && e.fabPosition === "end" ? (V(), C("div",
|
|
15865
|
+
t.$slots.fab && e.fabPosition === "end" ? (V(), C("div", Iv, [G(t.$slots, "fab")])) : S("", !0)
|
|
15855
15866
|
], 2));
|
|
15856
15867
|
}
|
|
15857
|
-
}),
|
|
15868
|
+
}), Rv = { class: "flex h-16 shrink-0 items-center gap-1 px-2" }, zv = {
|
|
15858
15869
|
key: 1,
|
|
15859
15870
|
class: "flex-1"
|
|
15860
|
-
},
|
|
15871
|
+
}, Bv = {
|
|
15861
15872
|
key: 2,
|
|
15862
15873
|
class: "flex items-center gap-1"
|
|
15863
|
-
},
|
|
15874
|
+
}, Vv = /* @__PURE__ */ O({
|
|
15864
15875
|
__name: "MTopAppBar",
|
|
15865
15876
|
props: {
|
|
15866
15877
|
title: {},
|
|
@@ -15873,7 +15884,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15873
15884
|
emits: ["navigation"],
|
|
15874
15885
|
setup(e) {
|
|
15875
15886
|
let n = t();
|
|
15876
|
-
return (t, r) => (V(), C("header", { class: P(["flex w-full flex-col transition-[background-color,box-shadow]", [e.elevated ? "bg-surface-container shadow-elevation-2" : "bg-surface", e.bordered ? "border-b border-outline-variant" : ""]]) }, [w("div",
|
|
15887
|
+
return (t, r) => (V(), C("header", { class: P(["flex w-full flex-col transition-[background-color,box-shadow]", [e.elevated ? "bg-surface-container shadow-elevation-2" : "bg-surface", e.bordered ? "border-b border-outline-variant" : ""]]) }, [w("div", Rv, [
|
|
15877
15888
|
G(t.$slots, "navigation", {}, () => [e.navigationIcon ? (V(), x(d, {
|
|
15878
15889
|
key: 0,
|
|
15879
15890
|
icon: e.navigationIcon,
|
|
@@ -15884,14 +15895,14 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15884
15895
|
e.variant === "center" || e.variant === "small" ? (V(), C("h1", {
|
|
15885
15896
|
key: 0,
|
|
15886
15897
|
class: P(["flex flex-1 items-center truncate px-4 text-title-large text-on-surface", e.variant === "center" ? "justify-center" : ""])
|
|
15887
|
-
}, [G(t.$slots, "title", {}, () => [E(q(e.title), 1)])], 2)) : (V(), C("div",
|
|
15888
|
-
t.$slots.actions ? (V(), C("div",
|
|
15898
|
+
}, [G(t.$slots, "title", {}, () => [E(q(e.title), 1)])], 2)) : (V(), C("div", zv)),
|
|
15899
|
+
t.$slots.actions ? (V(), C("div", Bv, [G(t.$slots, "actions")])) : S("", !0)
|
|
15889
15900
|
]), e.variant === "medium" || e.variant === "large" ? (V(), C("div", {
|
|
15890
15901
|
key: 0,
|
|
15891
15902
|
class: P(["flex items-end px-4", e.variant === "large" ? "h-[88px] pb-7" : "h-12 pb-6"])
|
|
15892
15903
|
}, [w("h1", { class: P(["truncate text-on-surface", e.variant === "large" ? "text-headline-medium" : "text-headline-small"]) }, [G(t.$slots, "title", {}, () => [E(q(e.title), 1)])], 2)], 2)) : S("", !0)], 2));
|
|
15893
15904
|
}
|
|
15894
|
-
}),
|
|
15905
|
+
}), Hv = { class: "mb-2 flex items-center justify-between" }, Uv = { class: "text-label-small text-on-surface-variant" }, Wv = { class: "mb-1 text-title-medium font-medium text-on-surface" }, Gv = { class: "mb-4 text-body-medium text-on-surface-variant" }, Kv = { class: "mb-4 flex justify-center gap-1.5" }, qv = { class: "flex justify-between" }, Jv = { key: 1 }, Yv = /* @__PURE__ */ O({
|
|
15895
15906
|
__name: "MTour",
|
|
15896
15907
|
props: {
|
|
15897
15908
|
modelValue: { type: Boolean },
|
|
@@ -15974,7 +15985,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15974
15985
|
class: "h-0 w-0",
|
|
15975
15986
|
style: F(u.value)
|
|
15976
15987
|
}, null, 4),
|
|
15977
|
-
w("div",
|
|
15988
|
+
w("div", Hv, [w("span", Uv, q(s.value + 1) + " / " + q(e.steps.length), 1), w("button", {
|
|
15978
15989
|
type: "button",
|
|
15979
15990
|
class: "flex h-6 w-6 cursor-pointer items-center justify-center rounded-full text-on-surface-variant transition-colors hover:bg-on-surface/8",
|
|
15980
15991
|
onClick: z
|
|
@@ -15982,13 +15993,13 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
15982
15993
|
name: "close",
|
|
15983
15994
|
size: 16
|
|
15984
15995
|
})])]),
|
|
15985
|
-
w("h3",
|
|
15986
|
-
w("p",
|
|
15987
|
-
w("div",
|
|
15996
|
+
w("h3", Wv, q(f.value.title), 1),
|
|
15997
|
+
w("p", Gv, q(f.value.content), 1),
|
|
15998
|
+
w("div", Kv, [(V(!0), C(h, null, W(e.steps, (e, t) => (V(), C("div", {
|
|
15988
15999
|
key: t,
|
|
15989
16000
|
class: P(["h-1.5 rounded-full transition-all duration-200", t === s.value ? "w-6 bg-primary" : "w-1.5 bg-outline-variant"])
|
|
15990
16001
|
}, null, 2))), 128))]),
|
|
15991
|
-
w("div",
|
|
16002
|
+
w("div", qv, [p.value ? (V(), C("span", Jv)) : (V(), x(l, {
|
|
15992
16003
|
key: 0,
|
|
15993
16004
|
variant: "text",
|
|
15994
16005
|
onClick: R
|
|
@@ -16003,10 +16014,10 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16003
16014
|
_: 1
|
|
16004
16015
|
})]));
|
|
16005
16016
|
}
|
|
16006
|
-
}),
|
|
16017
|
+
}), Xv = { class: "flex min-w-0 flex-1 flex-col overflow-hidden rounded-lg bg-surface-container-low" }, Zv = { class: "flex items-center gap-4 px-4 pt-3 pb-2" }, Qv = { class: "min-w-0 flex-1 truncate text-title-medium text-on-surface" }, $v = { class: "shrink-0 text-label-medium tabular-nums text-on-surface-variant" }, ey = {
|
|
16007
16018
|
key: 0,
|
|
16008
16019
|
class: "px-3 pb-2"
|
|
16009
|
-
},
|
|
16020
|
+
}, ty = { class: "flex h-10 items-center gap-2 rounded-full bg-surface-container-high pr-1 pl-3 focus-within:ring-2 focus-within:ring-secondary" }, ny = ["value", "placeholder"], ry = ["aria-label"], iy = [
|
|
16010
16021
|
"tabindex",
|
|
16011
16022
|
"role",
|
|
16012
16023
|
"aria-checked",
|
|
@@ -16014,13 +16025,13 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16014
16025
|
"onClick",
|
|
16015
16026
|
"onDblclick",
|
|
16016
16027
|
"onKeydown"
|
|
16017
|
-
],
|
|
16028
|
+
], ay = {
|
|
16018
16029
|
key: 0,
|
|
16019
16030
|
class: "relative min-w-0 flex-1"
|
|
16020
|
-
},
|
|
16031
|
+
}, oy = { class: "relative min-w-0 flex-1" }, sy = {
|
|
16021
16032
|
key: 0,
|
|
16022
16033
|
class: "absolute inset-0 flex flex-col items-center justify-center gap-2 p-6 text-center"
|
|
16023
|
-
},
|
|
16034
|
+
}, cy = { class: "text-body-medium text-on-surface-variant" }, ly = "button, a, select, textarea, [contenteditable], [data-transfer-action], input:not([type=\"checkbox\"])", uy = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
16024
16035
|
__name: "_MTransferPane",
|
|
16025
16036
|
props: {
|
|
16026
16037
|
title: {},
|
|
@@ -16060,7 +16071,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16060
16071
|
right: "auto"
|
|
16061
16072
|
});
|
|
16062
16073
|
}
|
|
16063
|
-
let d = (e) => !!e.target.closest(
|
|
16074
|
+
let d = (e) => !!e.target.closest(ly);
|
|
16064
16075
|
function f(e, t) {
|
|
16065
16076
|
e.target.closest("label") || d(e) || i("toggle", t);
|
|
16066
16077
|
}
|
|
@@ -16070,8 +16081,8 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16070
16081
|
function m(e, t) {
|
|
16071
16082
|
n.bare && e.target === e.currentTarget && (e.preventDefault(), i("toggle", t));
|
|
16072
16083
|
}
|
|
16073
|
-
return (t, n) => (V(), C("section",
|
|
16074
|
-
w("header",
|
|
16084
|
+
return (t, n) => (V(), C("section", Xv, [
|
|
16085
|
+
w("header", Zv, [
|
|
16075
16086
|
D(jr, {
|
|
16076
16087
|
"model-value": o.value,
|
|
16077
16088
|
indeterminate: s.value,
|
|
@@ -16084,10 +16095,10 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16084
16095
|
"disabled",
|
|
16085
16096
|
"aria-label"
|
|
16086
16097
|
]),
|
|
16087
|
-
w("h3",
|
|
16088
|
-
w("span",
|
|
16098
|
+
w("h3", Qv, q(e.title), 1),
|
|
16099
|
+
w("span", $v, q(a.value) + "/" + q(e.items.length), 1)
|
|
16089
16100
|
]),
|
|
16090
|
-
e.filterable ? (V(), C("div",
|
|
16101
|
+
e.filterable ? (V(), C("div", ey, [w("div", ty, [
|
|
16091
16102
|
D(r, {
|
|
16092
16103
|
name: "search",
|
|
16093
16104
|
size: 20,
|
|
@@ -16099,7 +16110,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16099
16110
|
placeholder: e.searchPlaceholder,
|
|
16100
16111
|
class: "min-w-0 flex-1 bg-transparent text-body-medium text-on-surface caret-primary outline-none placeholder:text-on-surface-variant",
|
|
16101
16112
|
onInput: n[1] ||= (e) => i("update:search", e.target.value)
|
|
16102
|
-
}, null, 40,
|
|
16113
|
+
}, null, 40, ny),
|
|
16103
16114
|
e.search ? (V(), C("button", {
|
|
16104
16115
|
key: 0,
|
|
16105
16116
|
type: "button",
|
|
@@ -16109,7 +16120,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16109
16120
|
}, [D(r, {
|
|
16110
16121
|
name: "close",
|
|
16111
16122
|
size: 18
|
|
16112
|
-
})], 8,
|
|
16123
|
+
})], 8, ry)) : S("", !0)
|
|
16113
16124
|
])])) : S("", !0),
|
|
16114
16125
|
w("div", {
|
|
16115
16126
|
ref_key: "listEl",
|
|
@@ -16152,7 +16163,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16152
16163
|
"aria-label",
|
|
16153
16164
|
"onUpdate:modelValue"
|
|
16154
16165
|
]),
|
|
16155
|
-
t.$slots.item ? (V(), C("div",
|
|
16166
|
+
t.$slots.item ? (V(), C("div", ay, [G(t.$slots, "item", {
|
|
16156
16167
|
item: n,
|
|
16157
16168
|
checked: e.checked.has(n.value),
|
|
16158
16169
|
toggle: () => i("toggle", n.value),
|
|
@@ -16163,20 +16174,20 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16163
16174
|
}, [D(r, {
|
|
16164
16175
|
name: n.icon,
|
|
16165
16176
|
size: 20
|
|
16166
|
-
}, null, 8, ["name"])], 2)) : S("", !0), w("span",
|
|
16177
|
+
}, null, 8, ["name"])], 2)) : S("", !0), w("span", oy, [w("span", { class: P(["block truncate text-body-large", e.checked.has(n.value) ? "text-on-secondary-container" : "text-on-surface"]) }, q(n.label), 3), n.description ? (V(), C("span", {
|
|
16167
16178
|
key: 0,
|
|
16168
16179
|
class: P(["block truncate text-body-medium", e.checked.has(n.value) ? "text-on-secondary-container/80" : "text-on-surface-variant"])
|
|
16169
16180
|
}, q(n.description), 3)) : S("", !0)])], 64))
|
|
16170
|
-
], 64))], 42,
|
|
16181
|
+
], 64))], 42, iy))), 128))]),
|
|
16171
16182
|
_: 3
|
|
16172
|
-
}, 8, ["name", "class"]), e.items.length ? S("", !0) : (V(), C("div",
|
|
16183
|
+
}, 8, ["name", "class"]), e.items.length ? S("", !0) : (V(), C("div", sy, [G(t.$slots, "empty", {}, () => [D(r, {
|
|
16173
16184
|
name: e.search ? "search_off" : "inbox",
|
|
16174
16185
|
size: 32,
|
|
16175
16186
|
class: "text-on-surface-variant/60"
|
|
16176
|
-
}, null, 8, ["name"]), w("p",
|
|
16187
|
+
}, null, 8, ["name"]), w("p", cy, q(e.emptyText), 1)], !0)]))], 4)
|
|
16177
16188
|
]));
|
|
16178
16189
|
}
|
|
16179
|
-
}), [["__scopeId", "data-v-50eeaba2"]]),
|
|
16190
|
+
}), [["__scopeId", "data-v-50eeaba2"]]), dy = { class: "@container" }, fy = { class: "flex flex-col items-stretch gap-3 @xl:flex-row" }, py = { class: "flex items-center justify-center gap-2 @xl:flex-col" }, my = /* @__PURE__ */ O({
|
|
16180
16191
|
__name: "MTransferList",
|
|
16181
16192
|
props: {
|
|
16182
16193
|
modelValue: {},
|
|
@@ -16248,8 +16259,8 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16248
16259
|
let t = new Set(s.value);
|
|
16249
16260
|
t.delete(e), s.value = t;
|
|
16250
16261
|
}
|
|
16251
|
-
return (t, n) => (V(), C("div",
|
|
16252
|
-
D(
|
|
16262
|
+
return (t, n) => (V(), C("div", dy, [w("div", fy, [
|
|
16263
|
+
D(uy, {
|
|
16253
16264
|
title: e.sourceTitle ?? J(r).available,
|
|
16254
16265
|
items: f.value,
|
|
16255
16266
|
checked: o.value,
|
|
@@ -16290,7 +16301,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16290
16301
|
"clear-search-label",
|
|
16291
16302
|
"bare"
|
|
16292
16303
|
]),
|
|
16293
|
-
w("div",
|
|
16304
|
+
w("div", py, [
|
|
16294
16305
|
D(d, {
|
|
16295
16306
|
icon: "keyboard_double_arrow_right",
|
|
16296
16307
|
variant: "outlined",
|
|
@@ -16324,7 +16335,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16324
16335
|
onClick: O
|
|
16325
16336
|
}, null, 8, ["label", "disabled"])
|
|
16326
16337
|
]),
|
|
16327
|
-
D(
|
|
16338
|
+
D(uy, {
|
|
16328
16339
|
title: e.targetTitle ?? J(r).selected,
|
|
16329
16340
|
items: p.value,
|
|
16330
16341
|
checked: s.value,
|
|
@@ -16367,13 +16378,13 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16367
16378
|
])
|
|
16368
16379
|
])]));
|
|
16369
16380
|
}
|
|
16370
|
-
}),
|
|
16381
|
+
}), hy = ["aria-expanded", "aria-selected"], gy = { class: "flex w-6 shrink-0 items-center justify-center" }, _y = ["disabled"], vy = {
|
|
16371
16382
|
key: 2,
|
|
16372
16383
|
class: "shrink-0 text-label-small tabular-nums text-on-surface-variant"
|
|
16373
|
-
},
|
|
16384
|
+
}, yy = {
|
|
16374
16385
|
key: 0,
|
|
16375
16386
|
class: "ml-3 border-l border-outline-variant pl-2"
|
|
16376
|
-
},
|
|
16387
|
+
}, by = /* @__PURE__ */ O({
|
|
16377
16388
|
__name: "_MTreeNode",
|
|
16378
16389
|
props: {
|
|
16379
16390
|
node: {},
|
|
@@ -16418,7 +16429,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16418
16429
|
]),
|
|
16419
16430
|
onClick: d
|
|
16420
16431
|
}, [
|
|
16421
|
-
w("div",
|
|
16432
|
+
w("div", gy, [i.value ? (V(), C("button", {
|
|
16422
16433
|
key: 0,
|
|
16423
16434
|
type: "button",
|
|
16424
16435
|
class: P(["flex h-5 w-5 items-center justify-center rounded text-on-surface-variant transition-transform duration-200", a.value ? "rotate-90" : ""]),
|
|
@@ -16427,7 +16438,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16427
16438
|
}, [D(r, {
|
|
16428
16439
|
name: "chevron_right",
|
|
16429
16440
|
size: 16
|
|
16430
|
-
})], 10,
|
|
16441
|
+
})], 10, _y)) : S("", !0)]),
|
|
16431
16442
|
J(n).checkable.value ? (V(), C("div", {
|
|
16432
16443
|
key: 0,
|
|
16433
16444
|
class: "shrink-0",
|
|
@@ -16449,7 +16460,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16449
16460
|
class: P(["shrink-0 transition-colors", o.value ? "text-primary" : "text-on-surface-variant"])
|
|
16450
16461
|
}, null, 8, ["name", "class"])) : S("", !0),
|
|
16451
16462
|
w("span", { class: P(["min-w-0 flex-1 truncate text-body-medium transition-colors", o.value ? "font-medium text-primary" : "text-on-surface"]) }, [G(t.$slots, "label", { node: e.node }, () => [E(q(e.node.label), 1)])], 2),
|
|
16452
|
-
i.value && J(n).checkable.value ? (V(), C("span",
|
|
16463
|
+
i.value && J(n).checkable.value ? (V(), C("span", vy, q(c.value) + "/" + q(s.value.length), 1)) : S("", !0),
|
|
16453
16464
|
G(t.$slots, "trailing", { node: e.node })
|
|
16454
16465
|
], 2), D(_, {
|
|
16455
16466
|
onEnter: m,
|
|
@@ -16457,7 +16468,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16457
16468
|
onLeave: v,
|
|
16458
16469
|
onAfterLeave: b
|
|
16459
16470
|
}, {
|
|
16460
|
-
default: X(() => [a.value && i.value ? (V(), C("div",
|
|
16471
|
+
default: X(() => [a.value && i.value ? (V(), C("div", yy, [(V(!0), C(h, null, W(e.node.children, (n) => (V(), x(by, {
|
|
16461
16472
|
key: n.id,
|
|
16462
16473
|
node: n,
|
|
16463
16474
|
depth: e.depth + 1
|
|
@@ -16466,15 +16477,15 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16466
16477
|
fn: X((e) => [G(t.$slots, n, M({ ref_for: !0 }, e ?? {}))])
|
|
16467
16478
|
}))]), 1032, ["node", "depth"]))), 128))])) : S("", !0)]),
|
|
16468
16479
|
_: 3
|
|
16469
|
-
})], 8,
|
|
16480
|
+
})], 8, hy));
|
|
16470
16481
|
}
|
|
16471
|
-
}),
|
|
16482
|
+
}), xy = {
|
|
16472
16483
|
role: "tree",
|
|
16473
16484
|
class: "flex flex-col"
|
|
16474
|
-
},
|
|
16485
|
+
}, Sy = {
|
|
16475
16486
|
key: 1,
|
|
16476
16487
|
class: "flex flex-col items-center gap-2 py-10 text-on-surface-variant"
|
|
16477
|
-
},
|
|
16488
|
+
}, Cy = { class: "text-body-medium" }, wy = /* @__PURE__ */ O({
|
|
16478
16489
|
__name: "MTree",
|
|
16479
16490
|
props: {
|
|
16480
16491
|
nodes: {},
|
|
@@ -16540,26 +16551,26 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16540
16551
|
return n({
|
|
16541
16552
|
expandAll: b,
|
|
16542
16553
|
collapseAll: S
|
|
16543
|
-
}), (t, n) => (V(), C("div",
|
|
16554
|
+
}), (t, n) => (V(), C("div", xy, [e.nodes.length ? (V(!0), C(h, { key: 0 }, W(e.nodes, (e) => (V(), x(by, {
|
|
16544
16555
|
key: e.id,
|
|
16545
16556
|
node: e,
|
|
16546
16557
|
depth: 0
|
|
16547
16558
|
}, T({ _: 2 }, [W(t.$slots, (e, n) => ({
|
|
16548
16559
|
name: n,
|
|
16549
16560
|
fn: X((e) => [G(t.$slots, n, M({ ref_for: !0 }, e ?? {}))])
|
|
16550
|
-
}))]), 1032, ["node"]))), 128)) : (V(), C("div",
|
|
16561
|
+
}))]), 1032, ["node"]))), 128)) : (V(), C("div", Sy, [D(r, {
|
|
16551
16562
|
name: "account_tree",
|
|
16552
16563
|
size: 32,
|
|
16553
16564
|
class: "opacity-30"
|
|
16554
|
-
}), w("p",
|
|
16565
|
+
}), w("p", Cy, q(e.emptyText ?? J(o).noItems), 1)]))]));
|
|
16555
16566
|
}
|
|
16556
|
-
}),
|
|
16567
|
+
}), Ty = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Ey = {
|
|
16557
16568
|
key: 0,
|
|
16558
16569
|
class: "flex items-center gap-2 border-b border-outline-variant bg-surface-container-lowest px-4 py-2"
|
|
16559
|
-
},
|
|
16570
|
+
}, Dy = { class: "overflow-x-auto" }, Oy = { class: "w-full border-collapse" }, ky = { class: "bg-surface-container-high" }, Ay = ["onClick"], jy = ["onClick"], My = {
|
|
16560
16571
|
key: 1,
|
|
16561
16572
|
class: "w-6 shrink-0"
|
|
16562
|
-
},
|
|
16573
|
+
}, Ny = { key: 0 }, Py = ["colspan"], Fy = { class: "text-body-medium text-on-surface-variant" }, Iy = /* @__PURE__ */ O({
|
|
16563
16574
|
__name: "MTreeTable",
|
|
16564
16575
|
props: {
|
|
16565
16576
|
columns: {},
|
|
@@ -16615,10 +16626,10 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16615
16626
|
function m(e) {
|
|
16616
16627
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
16617
16628
|
}
|
|
16618
|
-
return (t, n) => (V(), C("div",
|
|
16629
|
+
return (t, n) => (V(), C("div", Ty, [t.$slots.toolbar ? (V(), C("div", Ey, [G(t.$slots, "toolbar", {
|
|
16619
16630
|
expandAll: f,
|
|
16620
16631
|
collapseAll: p
|
|
16621
|
-
})])) : S("", !0), w("div",
|
|
16632
|
+
})])) : S("", !0), w("div", Dy, [w("table", Oy, [w("thead", null, [w("tr", ky, [(V(!0), C(h, null, W(e.columns, (t, n) => (V(), C("th", {
|
|
16622
16633
|
key: t.key,
|
|
16623
16634
|
style: F(t.width ? { width: t.width } : void 0),
|
|
16624
16635
|
class: P([
|
|
@@ -16649,7 +16660,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16649
16660
|
}, [D(r, {
|
|
16650
16661
|
name: "chevron_right",
|
|
16651
16662
|
size: 18
|
|
16652
|
-
})], 10,
|
|
16663
|
+
})], 10, jy)) : (V(), C("span", My)), G(t.$slots, `cell-${i.key}`, {
|
|
16653
16664
|
row: n.row,
|
|
16654
16665
|
value: n.row[i.key],
|
|
16655
16666
|
depth: n.depth
|
|
@@ -16657,19 +16668,19 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16657
16668
|
row: n.row,
|
|
16658
16669
|
value: n.row[i.key],
|
|
16659
16670
|
depth: n.depth
|
|
16660
|
-
}, () => [E(q(n.row[i.key] ?? "—"), 1)], void 0, 1)], 2))), 128))], 10,
|
|
16671
|
+
}, () => [E(q(n.row[i.key] ?? "—"), 1)], void 0, 1)], 2))), 128))], 10, Ay))), 128)), d.value.length ? S("", !0) : (V(), C("tr", Ny, [w("td", {
|
|
16661
16672
|
colspan: e.columns.length,
|
|
16662
16673
|
class: "border-t border-outline-variant px-4 py-10 text-center"
|
|
16663
16674
|
}, [D(r, {
|
|
16664
16675
|
name: "account_tree",
|
|
16665
16676
|
size: 36,
|
|
16666
16677
|
class: "mb-2 text-on-surface-variant opacity-30"
|
|
16667
|
-
}), w("p",
|
|
16678
|
+
}), w("p", Fy, q(e.emptyText ?? J(a).noResults), 1)], 8, Py)]))])])])]));
|
|
16668
16679
|
}
|
|
16669
|
-
}),
|
|
16680
|
+
}), Ly = { class: "flex flex-col overflow-hidden rounded-sm border border-outline-variant" }, Ry = { class: "flex bg-surface-container-high" }, zy = ["onClick"], By = { class: "inline-flex items-center gap-1" }, Vy = {
|
|
16670
16681
|
key: 0,
|
|
16671
16682
|
class: "inline-flex"
|
|
16672
|
-
},
|
|
16683
|
+
}, Hy = ["onClick"], Uy = { class: "truncate" }, Wy = { class: "border-t border-outline-variant bg-surface-container-lowest px-4 py-2" }, Gy = { class: "text-label-small text-on-surface-variant" }, Ky = /* @__PURE__ */ O({
|
|
16673
16684
|
__name: "MVirtualTable",
|
|
16674
16685
|
props: {
|
|
16675
16686
|
columns: {},
|
|
@@ -16715,8 +16726,8 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16715
16726
|
function v(e) {
|
|
16716
16727
|
return e === "center" ? "text-center" : e === "right" ? "text-right" : "text-left";
|
|
16717
16728
|
}
|
|
16718
|
-
return (t, n) => (V(), C("div",
|
|
16719
|
-
w("div",
|
|
16729
|
+
return (t, n) => (V(), C("div", Ly, [
|
|
16730
|
+
w("div", Ry, [(V(!0), C(h, null, W(e.columns, (e) => (V(), C("div", {
|
|
16720
16731
|
key: e.key,
|
|
16721
16732
|
style: F({
|
|
16722
16733
|
width: e.width || "auto",
|
|
@@ -16728,7 +16739,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16728
16739
|
e.sortable ? "cursor-pointer select-none hover:text-on-surface transition-colors" : ""
|
|
16729
16740
|
]),
|
|
16730
16741
|
onClick: (t) => e.sortable ? u(e.key) : void 0
|
|
16731
|
-
}, [w("span",
|
|
16742
|
+
}, [w("span", By, [E(q(e.label) + " ", 1), e.sortable ? (V(), C("span", Vy, [c.value === e.key && l.value === "asc" ? (V(), x(r, {
|
|
16732
16743
|
key: 0,
|
|
16733
16744
|
name: "arrow_upward",
|
|
16734
16745
|
size: 14,
|
|
@@ -16743,7 +16754,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16743
16754
|
name: "unfold_more",
|
|
16744
16755
|
size: 14,
|
|
16745
16756
|
class: "opacity-30"
|
|
16746
|
-
}))])) : S("", !0)])], 14,
|
|
16757
|
+
}))])) : S("", !0)])], 14, zy))), 128))]),
|
|
16747
16758
|
w("div", {
|
|
16748
16759
|
ref_key: "scrollEl",
|
|
16749
16760
|
ref: a,
|
|
@@ -16771,11 +16782,11 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16771
16782
|
}, [G(t.$slots, `cell-${e.key}`, {
|
|
16772
16783
|
row: n,
|
|
16773
16784
|
value: n[e.key]
|
|
16774
|
-
}, () => [w("span",
|
|
16775
|
-
w("div",
|
|
16785
|
+
}, () => [w("span", Uy, q(n[e.key] ?? "—"), 1)])], 6))), 128))], 14, Hy))), 128))], 4)], 36),
|
|
16786
|
+
w("div", Wy, [w("span", Gy, [E(q(d.value.length.toLocaleString()) + " filas ", 1), p.value.end - p.value.start < d.value.length ? (V(), C(h, { key: 0 }, [E(" · mostrando " + q(p.value.start + 1) + "–" + q(p.value.end), 1)], 64)) : S("", !0)])])
|
|
16776
16787
|
]));
|
|
16777
16788
|
}
|
|
16778
|
-
}),
|
|
16789
|
+
}), qy = ["aria-label"], Jy = ["aria-label", "title"], Yy = ["aria-label", "title"], Xy = ["aria-label", "title"], Zy = { class: "min-h-0 flex-1 overflow-auto" }, Qy = ["onPointerdown"], $y = 10, eb = 0, tb = U(null), nb = /*#__PURE__*/ m(/* @__PURE__ */ O({
|
|
16779
16790
|
__name: "MWindow",
|
|
16780
16791
|
props: {
|
|
16781
16792
|
modelValue: { type: Boolean },
|
|
@@ -16830,7 +16841,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16830
16841
|
"focus"
|
|
16831
16842
|
],
|
|
16832
16843
|
setup(e, { expose: n, emit: i }) {
|
|
16833
|
-
let a = t(), o =
|
|
16844
|
+
let a = t(), o = ++eb, s = e, c = i, l = U(s.x), u = U(s.y), d = U(parseInt(s.width) || 400), f = U(parseInt(s.height) || 300), p = U(!1), m = U(!1), v = U($y), b = y(() => tb.value === o), T = U(!1), E = U(!1), O, k = {
|
|
16834
16845
|
x: 0,
|
|
16835
16846
|
y: 0,
|
|
16836
16847
|
w: 0,
|
|
@@ -16854,7 +16865,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
16854
16865
|
zIndex: v.value
|
|
16855
16866
|
}));
|
|
16856
16867
|
function me() {
|
|
16857
|
-
|
|
16868
|
+
tb.value !== o && c("focus"), tb.value = o, $y++, v.value = $y;
|
|
16858
16869
|
}
|
|
16859
16870
|
function he() {
|
|
16860
16871
|
window.addEventListener("pointermove", je), window.addEventListener("pointerup", Me), window.addEventListener("pointercancel", Me);
|
|
@@ -17016,7 +17027,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
17016
17027
|
Ge(), Ue();
|
|
17017
17028
|
}));
|
|
17018
17029
|
}), z(() => {
|
|
17019
|
-
ge(), clearTimeout(O), cancelAnimationFrame(xe),
|
|
17030
|
+
ge(), clearTimeout(O), cancelAnimationFrame(xe), tb.value === o && (tb.value = null), We?.disconnect();
|
|
17020
17031
|
}), n({
|
|
17021
17032
|
focus: me,
|
|
17022
17033
|
toggleMaximize: ze,
|
|
@@ -17101,7 +17112,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
17101
17112
|
}, [D(r, {
|
|
17102
17113
|
name: p.value ? "expand_content" : "minimize",
|
|
17103
17114
|
size: 18
|
|
17104
|
-
}, null, 8, ["name"])], 8,
|
|
17115
|
+
}, null, 8, ["name"])], 8, Jy)) : S("", !0),
|
|
17105
17116
|
e.maximizable ? (V(), C("button", {
|
|
17106
17117
|
key: 1,
|
|
17107
17118
|
type: "button",
|
|
@@ -17112,7 +17123,7 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
17112
17123
|
}, [D(r, {
|
|
17113
17124
|
name: m.value ? "close_fullscreen" : "open_in_full",
|
|
17114
17125
|
size: 16
|
|
17115
|
-
}, null, 8, ["name"])], 8,
|
|
17126
|
+
}, null, 8, ["name"])], 8, Yy)) : S("", !0),
|
|
17116
17127
|
e.closable ? (V(), C("button", {
|
|
17117
17128
|
key: 2,
|
|
17118
17129
|
type: "button",
|
|
@@ -17123,9 +17134,9 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
17123
17134
|
}, [D(r, {
|
|
17124
17135
|
name: "close",
|
|
17125
17136
|
size: 18
|
|
17126
|
-
})], 8,
|
|
17137
|
+
})], 8, Xy)) : S("", !0)
|
|
17127
17138
|
], 34),
|
|
17128
|
-
ue(w("div",
|
|
17139
|
+
ue(w("div", Zy, [G(t.$slots, "default", {}, void 0, !0)], 512), [[ce, !p.value || E.value]]),
|
|
17129
17140
|
e.snap && I.value ? (V(), x(g, {
|
|
17130
17141
|
key: 0,
|
|
17131
17142
|
to: I.value
|
|
@@ -17142,13 +17153,13 @@ var ag = /*#__PURE__*/ m(ng, [["render", ig]]), og = ["disabled"], sg = ["disabl
|
|
|
17142
17153
|
key: e.dir,
|
|
17143
17154
|
class: P(["absolute touch-none", [e.class, e.cursor]]),
|
|
17144
17155
|
onPointerdown: (t) => Ae(t, e.dir)
|
|
17145
|
-
}, null, 42,
|
|
17146
|
-
], 46,
|
|
17156
|
+
}, null, 42, Qy)), 64)) : S("", !0)
|
|
17157
|
+
], 46, qy)) : S("", !0)]),
|
|
17147
17158
|
_: 3
|
|
17148
17159
|
}));
|
|
17149
17160
|
}
|
|
17150
17161
|
}), [["__scopeId", "data-v-de8fe40f"]]);
|
|
17151
17162
|
//#endregion
|
|
17152
|
-
export { Mt as MAbsolute, Rt as MAlert, cn as MAppBar, fn as MAppLayout, pn as MAspectRatio, rn as MAutocomplete, mn as MAvatar, _n as MBadge, On as MBar, Hn as MBottomSheet, Un as MBox, Kn as MBreadcrumbs, l as MButton, Xn as MButtonGroup, cr as MCalendar, _r as MCard, xr as MCarousel, Sr as MCenter, Dr as MChatBubble, jr as MCheckbox, Pr as MChip,
|
|
17163
|
+
export { Mt as MAbsolute, Rt as MAlert, cn as MAppBar, fn as MAppLayout, pn as MAspectRatio, rn as MAutocomplete, mn as MAvatar, _n as MBadge, On as MBar, Hn as MBottomSheet, Un as MBox, Kn as MBreadcrumbs, l as MButton, Xn as MButtonGroup, cr as MCalendar, _r as MCard, xr as MCarousel, Sr as MCenter, Dr as MChatBubble, jr as MCheckbox, Pr as MChip, Zd as MCircleProgressBar, Wr as MColorPicker, ni as MColorPickerModal, gi as MCommandPalette, vi as MConfirmDialog, yi as MContainer, Ei as MContextMenu, Di as MCopyButton, na as MDataTable, da as MDatePicker, Ta as MDatePickerModal, Fa as MDateRangePicker, Za as MDateRangePickerModal, i as MDialog, to as MDivider, co as MDragDropList, uo as MEmoji, _o as MEmojiButton, To as MEmojiSelector, Eo as MEmptyState, No as MExpansionPanel, Po as MExportButton, Bo as MFab, Vo as MFabMenu, is as MFileUpload, as as MFixed, ds as MFlex, us as MFooter, fs as MFullscreen, ps as MGrid, ys as MHotkeys, r as MIcon, d as MIconButton, Cs as MInfiniteScroll, Ms as MJsonViewer, Ys as MKanban, Qs as MKbd, cc as MLightbox, lc as MList, Ju as MListDetail, xc as MListItem, Sc as MListSubheader, Mc as MLoadingIndicator, Ic as MLoadingOverlay, Wc as MMaskField, Lc as MMasonry, c as MMenu, o as MMenuDivider, f as MMenuItem, fl as MMultiAutocomplete, Il as MMultiSelect, zl as MNavigationBar, Ou as MNavigationDrawer, Ru as MNavigationRail, Gu as MNavigationSuite, ql as MNumberField, Zu as MOverlay, $u as MPageProgress, Ai as MPagination, nd as MPasswordMeter, ud as MPinInput, Md as MProgressBar, gd as MPullToRefresh, rf as MRadio, sf as MRadioGroup, uf as MRating, mf as MRelative, gf as MRelativeTime, _f as MResponsive, wf as MResult, Bf as MScheduler, Vf as MScrollable, Gf as MSearchBar, Xf as MSection, $f as MSegmentedButton, hp as MSelect, bp as MShader, Mh as MShape, Vu as MShortNavigationBar, Rh as MSideSheet, Bh as MSignaturePad, qh as MSimpleCarousel, Yh as MSkeleton, ng as MSlider, Oe as MSnackbar, og as MSpacer, p as MSpinner, ug as MSplitButton, dg as MSplitter, Og as MSpotlightSearch, kg as MStack, Rg as MStatCard, e_ as MStepper, t_ as MSticky, r_ as MSubtitle, Yu as MSupportingPane, mc as MSwitch, w_ as MTable, z_ as MTabs, M_ as MTagInput, n_ as MText, u as MTextField, sv as MTimePicker, Tv as MTimePickerModal, Z_ as MTimeline, Ev as MTitle, Av as MToggleButton, Lv as MToolbar, Pv as MTooltip, Vv as MTopAppBar, Yv as MTour, my as MTransferList, wy as MTree, Iy as MTreeTable, Ky as MVirtualTable, nb as MWindow, po as allEmojis, ve as createM3UI, e as defaultLocale, fo as emojiCategories, Xe as heightSizeClass, fe as palettes, mo as randomEmoji, nh as shapeNames, he as useColorPalette, a as useDebounce, Je as useDevice, s as useFieldBg, t as useLocale, St as useNotification, jt as usePageProgress, Se as useTheme, Ue as useToast, tt as useWindowSizeClass, Ye as widthSizeClass };
|
|
17153
17164
|
|
|
17154
17165
|
//# sourceMappingURL=m3ui.js.map
|