@vireo-ai/trellis-ui 0.1.19 → 0.1.20
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/package.json +1 -1
- package/packages/client/src/styles/generated/theme-runtime.css +2 -2
- package/packages/client/types/components/container/contract.d.ts +1 -1
- package/packages/client/types/runtime/composition-breakpoint.d.ts +4 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.css +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.min.css +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js +471 -468
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js.map +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.js +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.min.js +2 -2
|
@@ -14253,9 +14253,9 @@ var sC = [J({
|
|
|
14253
14253
|
};
|
|
14254
14254
|
}, bC = (e) => {
|
|
14255
14255
|
e.data("UiModal", () => vC()), e.data("UiModalTrigger", () => yC());
|
|
14256
|
-
}, xC = (e) => {
|
|
14257
|
-
let
|
|
14258
|
-
return Number.isFinite(
|
|
14256
|
+
}, xC = (e, t) => {
|
|
14257
|
+
let n = getComputedStyle(e).getPropertyValue(`--breakpoint-${t}`), r = Number.parseFloat(n);
|
|
14258
|
+
return Number.isFinite(r) ? r : Infinity;
|
|
14259
14259
|
}, SC = ["horizontal", "vertical"], CC = [
|
|
14260
14260
|
"div",
|
|
14261
14261
|
"section",
|
|
@@ -15222,7 +15222,7 @@ var sC = [J({
|
|
|
15222
15222
|
}, ue = () => {
|
|
15223
15223
|
s.forEach((e) => e()), s.clear(), le();
|
|
15224
15224
|
}, de = (e) => y() === "horizontal" ? e.previewWidth : e.previewHeight, fe = (e) => {
|
|
15225
|
-
let t = g().orientation === "horizontal" && e < xC(d()) ? "stacked" : "wide";
|
|
15225
|
+
let t = g().orientation === "horizontal" && e < xC(d(), "sm") ? "stacked" : "wide";
|
|
15226
15226
|
t !== r && (r = t, P(), ue());
|
|
15227
15227
|
}, K = Se({
|
|
15228
15228
|
schema: DC,
|
|
@@ -15308,7 +15308,7 @@ var sC = [J({
|
|
|
15308
15308
|
}), { "data-ui-panels": "" }] });
|
|
15309
15309
|
},
|
|
15310
15310
|
init() {
|
|
15311
|
-
e = this.$el, K.connect(this.$el, this.snapshot), d().id ||= g().id, r = g().orientation === "horizontal" && d().getBoundingClientRect().width < xC(d()) ? "stacked" : "wide", ZC.add(he), $C(), P(), le(), n = new ResizeObserver((e) => {
|
|
15311
|
+
e = this.$el, K.connect(this.$el, this.snapshot), d().id ||= g().id, r = g().orientation === "horizontal" && d().getBoundingClientRect().width < xC(d(), "sm") ? "stacked" : "wide", ZC.add(he), $C(), P(), le(), n = new ResizeObserver((e) => {
|
|
15312
15312
|
fe(e[0]?.contentRect.width ?? d().clientWidth);
|
|
15313
15313
|
}), n.observe(d()), me(), g().persist && z(), i.push(U({
|
|
15314
15314
|
target: d(),
|
|
@@ -17853,27 +17853,30 @@ var _T = [
|
|
|
17853
17853
|
}, ge;
|
|
17854
17854
|
}, WT = (e) => {
|
|
17855
17855
|
e.data("UiSelect", () => UT());
|
|
17856
|
-
}, GT =
|
|
17856
|
+
}, GT = (e) => {
|
|
17857
|
+
let t = getComputedStyle(e).getPropertyValue("--ui-shell-sidebar-breakpoint"), n = Number.parseFloat(t);
|
|
17858
|
+
return Number.isFinite(n) ? n : Infinity;
|
|
17859
|
+
}, KT = ["left", "right"], qT = ["side", "top"], JT = [
|
|
17857
17860
|
"none",
|
|
17858
17861
|
"mobile",
|
|
17859
17862
|
"desktop",
|
|
17860
17863
|
"both"
|
|
17861
|
-
],
|
|
17864
|
+
], YT = [
|
|
17862
17865
|
"toggle",
|
|
17863
17866
|
"open",
|
|
17864
17867
|
"close",
|
|
17865
17868
|
"stash",
|
|
17866
17869
|
"expand"
|
|
17867
|
-
],
|
|
17870
|
+
], XT = ["a", "button"], ZT = ["ghost", "surface"], QT = ["neutral", "accent"], $T = jg, eE = Mg, tE = {
|
|
17868
17871
|
id: R.default("ui-sidebar"),
|
|
17869
|
-
placement: V(
|
|
17870
|
-
side: V(
|
|
17871
|
-
surface: V(
|
|
17872
|
-
elevation: V(
|
|
17873
|
-
drawerElevation: V(
|
|
17872
|
+
placement: V(qT, "side"),
|
|
17873
|
+
side: V(KT, "left"),
|
|
17874
|
+
surface: V($T, "inherit"),
|
|
17875
|
+
elevation: V(eE, "none"),
|
|
17876
|
+
drawerElevation: V(eE, "2"),
|
|
17874
17877
|
divider: B.default(!0),
|
|
17875
17878
|
sticky: B.default(!0),
|
|
17876
|
-
collapse: V(
|
|
17879
|
+
collapse: V(JT, "mobile"),
|
|
17877
17880
|
open: B,
|
|
17878
17881
|
stashed: B,
|
|
17879
17882
|
persist: B.default(!0),
|
|
@@ -17881,31 +17884,31 @@ var _T = [
|
|
|
17881
17884
|
resizable: B,
|
|
17882
17885
|
class: R
|
|
17883
17886
|
};
|
|
17884
|
-
V(
|
|
17885
|
-
var
|
|
17887
|
+
V(XT, "a"), V(ZT, "ghost"), V(QT, "neutral"), B.default(!0);
|
|
17888
|
+
var nE = {
|
|
17886
17889
|
target: R,
|
|
17887
17890
|
icon: R.default("side_panel"),
|
|
17888
17891
|
label: R.default("Toggle sidebar"),
|
|
17889
|
-
action: V(
|
|
17892
|
+
action: V(YT, "toggle"),
|
|
17890
17893
|
class: R
|
|
17891
|
-
},
|
|
17894
|
+
}, rE = ({ context: e }) => ({
|
|
17892
17895
|
mode: e.responsive.mode,
|
|
17893
17896
|
presentation: e.transition.presentation,
|
|
17894
17897
|
width: e.layout.width,
|
|
17895
17898
|
height: e.layout.height
|
|
17896
|
-
}),
|
|
17899
|
+
}), iE = [J({
|
|
17897
17900
|
name: "opening",
|
|
17898
17901
|
state: "opening",
|
|
17899
|
-
project:
|
|
17902
|
+
project: rE,
|
|
17900
17903
|
onDone: "OPENING_DONE",
|
|
17901
17904
|
onError: "OPENING_ERROR"
|
|
17902
17905
|
}), J({
|
|
17903
17906
|
name: "closing",
|
|
17904
17907
|
state: "closing",
|
|
17905
|
-
project:
|
|
17908
|
+
project: rE,
|
|
17906
17909
|
onDone: "CLOSING_DONE",
|
|
17907
17910
|
onError: "CLOSING_ERROR"
|
|
17908
|
-
})],
|
|
17911
|
+
})], aE = (e, t) => typeof e.target == "string" ? e.target : t, oE = (e) => e.presentation === "layout" ? "layout" : "drawer", sE = ({ props: e, mode: t, desktopStashed: n, effects: r }) => {
|
|
17909
17912
|
let i = t === "mobile" ? e.open ? "mobileOpen" : "mobileClosed" : e.placement === "top" ? "desktopTop" : n ? "desktopStashed" : "desktopExpanded", a = {
|
|
17910
17913
|
target: "opening",
|
|
17911
17914
|
reduce: "beginOpen",
|
|
@@ -18142,7 +18145,7 @@ var tE = {
|
|
|
18142
18145
|
},
|
|
18143
18146
|
reducers: {
|
|
18144
18147
|
beginOpen: ({ context: e, event: t }) => {
|
|
18145
|
-
let n =
|
|
18148
|
+
let n = aE(t, "mobileOpen");
|
|
18146
18149
|
return { context: {
|
|
18147
18150
|
...e,
|
|
18148
18151
|
layout: {
|
|
@@ -18152,12 +18155,12 @@ var tE = {
|
|
|
18152
18155
|
},
|
|
18153
18156
|
transition: {
|
|
18154
18157
|
target: n,
|
|
18155
|
-
presentation:
|
|
18158
|
+
presentation: oE(t)
|
|
18156
18159
|
}
|
|
18157
18160
|
} };
|
|
18158
18161
|
},
|
|
18159
18162
|
beginClose: ({ context: e, event: t }) => {
|
|
18160
|
-
let n =
|
|
18163
|
+
let n = aE(t, "mobileClosed"), r = n === "desktopStashed" || n === "mobileClosed" && e.layout.desktopStashed;
|
|
18161
18164
|
return { context: {
|
|
18162
18165
|
...e,
|
|
18163
18166
|
layout: {
|
|
@@ -18167,7 +18170,7 @@ var tE = {
|
|
|
18167
18170
|
},
|
|
18168
18171
|
transition: {
|
|
18169
18172
|
target: n,
|
|
18170
|
-
presentation:
|
|
18173
|
+
presentation: oE(t)
|
|
18171
18174
|
}
|
|
18172
18175
|
} };
|
|
18173
18176
|
},
|
|
@@ -18208,7 +18211,7 @@ var tE = {
|
|
|
18208
18211
|
syncProps: r.syncProps
|
|
18209
18212
|
}
|
|
18210
18213
|
});
|
|
18211
|
-
},
|
|
18214
|
+
}, cE = cm({ definition: {
|
|
18212
18215
|
component: "ui.sidebar",
|
|
18213
18216
|
parts: {
|
|
18214
18217
|
root: {
|
|
@@ -18347,24 +18350,24 @@ var tE = {
|
|
|
18347
18350
|
defaults: { side: "left" }
|
|
18348
18351
|
}
|
|
18349
18352
|
}
|
|
18350
|
-
} }),
|
|
18351
|
-
target:
|
|
18352
|
-
action:
|
|
18353
|
-
class:
|
|
18354
|
-
},
|
|
18353
|
+
} }), lE = {
|
|
18354
|
+
target: nE.target,
|
|
18355
|
+
action: nE.action,
|
|
18356
|
+
class: nE.class
|
|
18357
|
+
}, uE = /* @__PURE__ */ new Set(), dE = (e) => e instanceof CustomEvent && e.detail && typeof e.detail == "object" ? e.detail : {}, fE = (() => {
|
|
18355
18358
|
let e = !1;
|
|
18356
18359
|
return () => {
|
|
18357
18360
|
if (e || typeof document > "u") return;
|
|
18358
18361
|
let t = (e) => (t) => {
|
|
18359
18362
|
if (t.target instanceof Element && t.target.hasAttribute("data-ui-sidebar")) return;
|
|
18360
|
-
let n =
|
|
18361
|
-
|
|
18363
|
+
let n = dE(t);
|
|
18364
|
+
uE.forEach((t) => {
|
|
18362
18365
|
(!n.id || n.id === t.id) && t.perform(n.action ?? e, n.trigger);
|
|
18363
18366
|
});
|
|
18364
18367
|
};
|
|
18365
18368
|
document.addEventListener("ui:sidebar-open", t("open")), document.addEventListener("ui:sidebar-close", t("close")), document.addEventListener("ui:sidebar-toggle", t("toggle")), e = !0;
|
|
18366
18369
|
};
|
|
18367
|
-
})(),
|
|
18370
|
+
})(), pE = () => {
|
|
18368
18371
|
let e = null, t = [], n = null, r = "mobile", i = null, a = !1, o = null, s = null, c = !1, l = () => {
|
|
18369
18372
|
if (!e) throw Error("Sidebar has not been initialized.");
|
|
18370
18373
|
return e;
|
|
@@ -18460,11 +18463,11 @@ var tE = {
|
|
|
18460
18463
|
});
|
|
18461
18464
|
}, ee = () => L({
|
|
18462
18465
|
el: l(),
|
|
18463
|
-
schema:
|
|
18466
|
+
schema: tE
|
|
18464
18467
|
}), A = Se({
|
|
18465
|
-
schema:
|
|
18466
|
-
hooks:
|
|
18467
|
-
createMachine: ({ props: e }) =>
|
|
18468
|
+
schema: tE,
|
|
18469
|
+
hooks: iE,
|
|
18470
|
+
createMachine: ({ props: e }) => sE({
|
|
18468
18471
|
props: e,
|
|
18469
18472
|
mode: r,
|
|
18470
18473
|
desktopStashed: y(e) ?? e.stashed,
|
|
@@ -18531,7 +18534,7 @@ var tE = {
|
|
|
18531
18534
|
g() ? N(e) : M(e);
|
|
18532
18535
|
}
|
|
18533
18536
|
}, I = (e) => {
|
|
18534
|
-
let t = f(), n = e >=
|
|
18537
|
+
let t = f(), n = e >= GT(u() ?? l()) ? "desktop" : "mobile";
|
|
18535
18538
|
if (n === r) return;
|
|
18536
18539
|
r = n;
|
|
18537
18540
|
let i = p().layout.desktopStashed;
|
|
@@ -18579,7 +18582,7 @@ var tE = {
|
|
|
18579
18582
|
init() {
|
|
18580
18583
|
e = this.$el;
|
|
18581
18584
|
let i = u() ?? l();
|
|
18582
|
-
r = i.getBoundingClientRect().width >=
|
|
18585
|
+
r = i.getBoundingClientRect().width >= GT(i) ? "desktop" : "mobile", A.connect(this.$el, this.snapshot), l().id ||= f().id, uE.add(ie), fE(), n = new ResizeObserver((e) => I(e[0]?.contentRect.width ?? i.clientWidth)), n.observe(i), t.push(Jn({
|
|
18583
18586
|
isEnabled: m,
|
|
18584
18587
|
roots: () => [l()],
|
|
18585
18588
|
onDismiss: N
|
|
@@ -18619,7 +18622,7 @@ var tE = {
|
|
|
18619
18622
|
})), C();
|
|
18620
18623
|
},
|
|
18621
18624
|
destroy() {
|
|
18622
|
-
|
|
18625
|
+
uE.delete(ie), n?.disconnect(), n = null, t.forEach((e) => e()), t = [], a && lg(), a = !1, A.disconnect(), e = null;
|
|
18623
18626
|
},
|
|
18624
18627
|
transitionSidebar(e) {
|
|
18625
18628
|
if (e.data.presentation === "layout") {
|
|
@@ -18655,7 +18658,7 @@ var tE = {
|
|
|
18655
18658
|
get root() {
|
|
18656
18659
|
let e = this.snapshot.current?.props ?? ee();
|
|
18657
18660
|
return Ln({ inputs: [Z({
|
|
18658
|
-
part:
|
|
18661
|
+
part: cE.parts.root,
|
|
18659
18662
|
props: e,
|
|
18660
18663
|
className: e.class
|
|
18661
18664
|
}), { "data-ui-sidebar": "" }] });
|
|
@@ -18677,7 +18680,7 @@ var tE = {
|
|
|
18677
18680
|
},
|
|
18678
18681
|
syncToggles: S
|
|
18679
18682
|
}, ie;
|
|
18680
|
-
},
|
|
18683
|
+
}, mE = () => {
|
|
18681
18684
|
let e = {};
|
|
18682
18685
|
return {
|
|
18683
18686
|
get props() {
|
|
@@ -18686,13 +18689,13 @@ var tE = {
|
|
|
18686
18689
|
init() {
|
|
18687
18690
|
e = L({
|
|
18688
18691
|
el: this.$el,
|
|
18689
|
-
schema:
|
|
18692
|
+
schema: lE
|
|
18690
18693
|
});
|
|
18691
18694
|
},
|
|
18692
18695
|
destroy() {},
|
|
18693
18696
|
get root() {
|
|
18694
18697
|
return Ln({ inputs: [Z({
|
|
18695
|
-
part:
|
|
18698
|
+
part: cE.parts.toggle,
|
|
18696
18699
|
props: {},
|
|
18697
18700
|
className: e.class
|
|
18698
18701
|
}), {
|
|
@@ -18710,7 +18713,7 @@ var tE = {
|
|
|
18710
18713
|
} }));
|
|
18711
18714
|
}
|
|
18712
18715
|
};
|
|
18713
|
-
},
|
|
18716
|
+
}, hE = () => {
|
|
18714
18717
|
let e = {};
|
|
18715
18718
|
return {
|
|
18716
18719
|
get props() {
|
|
@@ -18719,13 +18722,13 @@ var tE = {
|
|
|
18719
18722
|
init() {
|
|
18720
18723
|
e = L({
|
|
18721
18724
|
el: this.$el,
|
|
18722
|
-
schema:
|
|
18725
|
+
schema: lE
|
|
18723
18726
|
});
|
|
18724
18727
|
},
|
|
18725
18728
|
destroy() {},
|
|
18726
18729
|
get root() {
|
|
18727
18730
|
return Ln({ inputs: [Z({
|
|
18728
|
-
part:
|
|
18731
|
+
part: cE.parts.edge,
|
|
18729
18732
|
props: { side: this.$el.dataset.side || "left" },
|
|
18730
18733
|
className: e.class
|
|
18731
18734
|
}), {
|
|
@@ -18753,9 +18756,9 @@ var tE = {
|
|
|
18753
18756
|
} }));
|
|
18754
18757
|
}
|
|
18755
18758
|
};
|
|
18756
|
-
},
|
|
18757
|
-
e.data("UiSidebar", () =>
|
|
18758
|
-
},
|
|
18759
|
+
}, gE = (e) => {
|
|
18760
|
+
e.data("UiSidebar", () => pE()), e.data("UiSidebarEdge", () => hE()), e.data("UiSidebarToggle", () => mE());
|
|
18761
|
+
}, _E = gg, vE = Tg, yE = Cg, bE = {
|
|
18759
18762
|
name: R,
|
|
18760
18763
|
value: R,
|
|
18761
18764
|
defaultValue: R.default("0"),
|
|
@@ -18765,9 +18768,9 @@ var tE = {
|
|
|
18765
18768
|
bigStep: z.default(10),
|
|
18766
18769
|
minStepsBetween: z.default(0),
|
|
18767
18770
|
range: B,
|
|
18768
|
-
orientation: V(
|
|
18769
|
-
size: V(
|
|
18770
|
-
variant: V(
|
|
18771
|
+
orientation: V(yE, "horizontal"),
|
|
18772
|
+
size: V(_E, "md"),
|
|
18773
|
+
variant: V(vE, "default"),
|
|
18771
18774
|
disabled: B,
|
|
18772
18775
|
required: B,
|
|
18773
18776
|
invalid: B,
|
|
@@ -18795,11 +18798,11 @@ var tE = {
|
|
|
18795
18798
|
z.default(0);
|
|
18796
18799
|
//#endregion
|
|
18797
18800
|
//#region packages/client/src/components/slider/machine.ts
|
|
18798
|
-
var
|
|
18801
|
+
var xE = [], SE = (e, t, n) => {
|
|
18799
18802
|
if (!Number.isFinite(n) || n <= 0) return e;
|
|
18800
18803
|
let r = Math.round((e - t) / n) * n + t, i = Math.max(0, `${n}`.split(".")[1]?.length ?? 0);
|
|
18801
18804
|
return Number(r.toFixed(i));
|
|
18802
|
-
},
|
|
18805
|
+
}, CE = (e) => {
|
|
18803
18806
|
let t = Math.min(e.min, e.max), n = Math.max(e.min, e.max), r = e.step > 0 ? e.step : 1;
|
|
18804
18807
|
return {
|
|
18805
18808
|
min: t,
|
|
@@ -18807,48 +18810,48 @@ var bE = [], xE = (e, t, n) => {
|
|
|
18807
18810
|
step: r,
|
|
18808
18811
|
bigStep: e.bigStep > 0 ? e.bigStep : r * 10
|
|
18809
18812
|
};
|
|
18810
|
-
},
|
|
18813
|
+
}, wE = (e, t) => {
|
|
18811
18814
|
let n = typeof e == "number" ? e : Number(e);
|
|
18812
18815
|
return Number.isFinite(n) ? n : t;
|
|
18813
|
-
},
|
|
18814
|
-
let { min: r, max: i, step: a } =
|
|
18816
|
+
}, TE = (e, t, n) => {
|
|
18817
|
+
let { min: r, max: i, step: a } = CE(e), o = SE(he(wE(t.lower, r), r, i), r, a), s = SE(he(wE(t.upper, i), r, i), r, a);
|
|
18815
18818
|
if (!e.range) return {
|
|
18816
18819
|
lower: o,
|
|
18817
18820
|
upper: o
|
|
18818
18821
|
};
|
|
18819
18822
|
o > s && ([o, s] = [s, o]);
|
|
18820
18823
|
let c = Math.max(0, e.minStepsBetween) * a;
|
|
18821
|
-
return s - o < c && (n === "lower" ? o = he(
|
|
18824
|
+
return s - o < c && (n === "lower" ? o = he(SE(s - c, r, a), r, i) : s = he(SE(o + c, r, a), r, i)), {
|
|
18822
18825
|
lower: o,
|
|
18823
18826
|
upper: s
|
|
18824
18827
|
};
|
|
18825
|
-
},
|
|
18826
|
-
let { min: n, max: r } =
|
|
18827
|
-
return
|
|
18828
|
-
lower:
|
|
18829
|
-
upper: e.range ?
|
|
18828
|
+
}, EE = (e, t) => {
|
|
18829
|
+
let { min: n, max: r } = CE(e), i = t.split(",").map((e) => e.trim());
|
|
18830
|
+
return TE(e, {
|
|
18831
|
+
lower: wE(i[0], n),
|
|
18832
|
+
upper: e.range ? wE(i[1], r) : wE(i[0], n)
|
|
18830
18833
|
});
|
|
18831
|
-
},
|
|
18832
|
-
if (Array.isArray(e.event.values)) return
|
|
18833
|
-
lower:
|
|
18834
|
-
upper:
|
|
18835
|
-
},
|
|
18836
|
-
let t =
|
|
18837
|
-
return
|
|
18834
|
+
}, DE = (e) => EE(e, e.value || e.defaultValue || String(CE(e).min)), OE = (e) => e.thumb === "single" || e.thumb === "lower" || e.thumb === "upper" ? e.thumb : null, kE = (e) => {
|
|
18835
|
+
if (Array.isArray(e.event.values)) return TE(e.props, {
|
|
18836
|
+
lower: wE(e.event.values[0], e.context.value.lower),
|
|
18837
|
+
upper: wE(e.event.values[1], e.context.value.upper)
|
|
18838
|
+
}, OE(e.event));
|
|
18839
|
+
let t = OE(e.event) ?? e.context.interaction.activeThumb ?? "single", n = wE(e.event.value, t === "upper" ? e.context.value.upper : e.context.value.lower);
|
|
18840
|
+
return TE(e.props, {
|
|
18838
18841
|
lower: t === "upper" ? e.context.value.lower : n,
|
|
18839
18842
|
upper: t === "upper" ? n : e.context.value.upper
|
|
18840
18843
|
}, t);
|
|
18841
|
-
},
|
|
18844
|
+
}, AE = (e) => {
|
|
18842
18845
|
let t = Gn(e.event)?.props;
|
|
18843
18846
|
return t ? {
|
|
18844
18847
|
...t,
|
|
18845
18848
|
range: e.props.range,
|
|
18846
18849
|
defaultValue: e.props.defaultValue
|
|
18847
18850
|
} : e.props;
|
|
18848
|
-
},
|
|
18849
|
-
let t =
|
|
18850
|
-
return Kn(e.event, "value") ?
|
|
18851
|
-
},
|
|
18851
|
+
}, jE = (e) => {
|
|
18852
|
+
let t = AE(e);
|
|
18853
|
+
return Kn(e.event, "value") ? EE(t, t.value || t.defaultValue || String(CE(t).min)) : TE(t, e.context.value);
|
|
18854
|
+
}, ME = (e) => ({ event: t }) => t.thumb === e, NE = (e) => AE(e).disabled, PE = ({ props: e, context: t, effects: n }) => Wn({
|
|
18852
18855
|
initial: "idle",
|
|
18853
18856
|
on: {
|
|
18854
18857
|
INPUT_CHANGED: {
|
|
@@ -18883,7 +18886,7 @@ var bE = [], xE = (e, t, n) => {
|
|
|
18883
18886
|
POINTER_STARTED: [
|
|
18884
18887
|
{
|
|
18885
18888
|
target: "dragging.single",
|
|
18886
|
-
guard:
|
|
18889
|
+
guard: ME("single"),
|
|
18887
18890
|
reduce: "startDrag",
|
|
18888
18891
|
effects: [
|
|
18889
18892
|
"beginDrag",
|
|
@@ -18893,7 +18896,7 @@ var bE = [], xE = (e, t, n) => {
|
|
|
18893
18896
|
},
|
|
18894
18897
|
{
|
|
18895
18898
|
target: "dragging.lower",
|
|
18896
|
-
guard:
|
|
18899
|
+
guard: ME("lower"),
|
|
18897
18900
|
reduce: "startDrag",
|
|
18898
18901
|
effects: [
|
|
18899
18902
|
"beginDrag",
|
|
@@ -18903,7 +18906,7 @@ var bE = [], xE = (e, t, n) => {
|
|
|
18903
18906
|
},
|
|
18904
18907
|
{
|
|
18905
18908
|
target: "dragging.upper",
|
|
18906
|
-
guard:
|
|
18909
|
+
guard: ME("upper"),
|
|
18907
18910
|
reduce: "startDrag",
|
|
18908
18911
|
effects: [
|
|
18909
18912
|
"beginDrag",
|
|
@@ -18937,7 +18940,7 @@ var bE = [], xE = (e, t, n) => {
|
|
|
18937
18940
|
},
|
|
18938
18941
|
PROPS_CHANGED: [{
|
|
18939
18942
|
target: "idle",
|
|
18940
|
-
guard:
|
|
18943
|
+
guard: NE,
|
|
18941
18944
|
reduce: "reconcileProps",
|
|
18942
18945
|
effects: ["endDrag", "sync"]
|
|
18943
18946
|
}, {
|
|
@@ -18958,35 +18961,35 @@ var bE = [], xE = (e, t, n) => {
|
|
|
18958
18961
|
reducers: {
|
|
18959
18962
|
setEventValue: (e) => ({ context: {
|
|
18960
18963
|
...e.context,
|
|
18961
|
-
value:
|
|
18964
|
+
value: kE(e)
|
|
18962
18965
|
} }),
|
|
18963
18966
|
startDrag: (e) => ({ context: {
|
|
18964
|
-
value:
|
|
18965
|
-
interaction: { activeThumb:
|
|
18967
|
+
value: kE(e),
|
|
18968
|
+
interaction: { activeThumb: OE(e.event) }
|
|
18966
18969
|
} }),
|
|
18967
18970
|
endDrag: (e) => ({ context: {
|
|
18968
18971
|
...e.context,
|
|
18969
18972
|
interaction: { activeThumb: null }
|
|
18970
18973
|
} }),
|
|
18971
18974
|
reconcileProps: (e) => ({
|
|
18972
|
-
props:
|
|
18975
|
+
props: AE(e),
|
|
18973
18976
|
context: {
|
|
18974
18977
|
...e.context,
|
|
18975
|
-
value:
|
|
18978
|
+
value: jE(e)
|
|
18976
18979
|
}
|
|
18977
18980
|
})
|
|
18978
18981
|
},
|
|
18979
18982
|
effects: n
|
|
18980
|
-
}),
|
|
18983
|
+
}), FE = (e, t) => {
|
|
18981
18984
|
let n = Number(e);
|
|
18982
18985
|
return Number.isFinite(n) ? n : t;
|
|
18983
|
-
},
|
|
18986
|
+
}, IE = (e, t, n) => n <= t ? 0 : he((e - t) / (n - t) * 100, 0, 100), LE = (e, t) => {
|
|
18984
18987
|
let n = (t) => e.format === "percent" ? `${Math.round(t)}%` : String(t);
|
|
18985
18988
|
return e.range ? `${n(t.lower)} - ${n(t.upper)}` : n(t.lower);
|
|
18986
|
-
},
|
|
18987
|
-
let { min: r, max: i, step: a } =
|
|
18989
|
+
}, RE = (e, t, n) => {
|
|
18990
|
+
let { min: r, max: i, step: a } = CE(n), o = e.getBoundingClientRect(), s = he(r + he(n.orientation === "vertical" ? 1 - (t.clientY - o.top) / Math.max(o.height, 1) : (t.clientX - o.left) / Math.max(o.width, 1), 0, 1) * (i - r), r, i), c = Math.round((s - r) / a) * a + r, l = Math.max(0, `${a}`.split(".")[1]?.length ?? 0);
|
|
18988
18991
|
return Number(c.toFixed(l));
|
|
18989
|
-
},
|
|
18992
|
+
}, zE = (e, t) => Math.abs(e - t.lower) <= Math.abs(e - t.upper) ? "lower" : "upper", BE = (e, t, n, r) => {
|
|
18990
18993
|
e && (W({
|
|
18991
18994
|
el: e,
|
|
18992
18995
|
attr: "data-focus",
|
|
@@ -19000,7 +19003,7 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19000
19003
|
attr: "data-invalid",
|
|
19001
19004
|
present: r
|
|
19002
19005
|
}));
|
|
19003
|
-
},
|
|
19006
|
+
}, VE = ({ input: e, props: t, value: n, min: r, max: i, label: a, valueText: o, nativeRequired: s }) => {
|
|
19004
19007
|
e && (e.min = String(r), e.max = String(i), e.step = String(t.step > 0 ? t.step : 1), Xn({
|
|
19005
19008
|
input: e,
|
|
19006
19009
|
state: {
|
|
@@ -19012,13 +19015,13 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19012
19015
|
invalid: t.invalid
|
|
19013
19016
|
}
|
|
19014
19017
|
}), e.setAttribute("aria-valuemin", String(r)), e.setAttribute("aria-valuemax", String(i)), e.setAttribute("aria-valuenow", String(n)), o ? e.setAttribute("aria-valuetext", o) : e.removeAttribute("aria-valuetext"), a && e.setAttribute("aria-label", a), t.orientation === "vertical" ? e.setAttribute("aria-orientation", "vertical") : e.removeAttribute("aria-orientation"));
|
|
19015
|
-
},
|
|
19016
|
-
let { min: r, max: i } =
|
|
19018
|
+
}, HE = (e, t, n) => {
|
|
19019
|
+
let { min: r, max: i } = CE(e), a = IE(n.lower, r, i), o = IE(n.upper, r, i), s = e.range ? a : 0, c = e.range ? o : a;
|
|
19017
19020
|
t.root.style.setProperty("--ui-slider-lower-percent", `${a}%`), t.root.style.setProperty("--ui-slider-upper-percent", `${o}%`), e.orientation === "vertical" ? (t.range && (t.range.style.bottom = `${s}%`, t.range.style.height = `${Math.max(0, c - s)}%`, t.range.style.left = "", t.range.style.width = ""), t.singleThumb && (t.singleThumb.style.bottom = `${a}%`), t.lowerThumb && (t.lowerThumb.style.bottom = `${a}%`), t.upperThumb && (t.upperThumb.style.bottom = `${o}%`)) : (t.range && (t.range.style.left = `${s}%`, t.range.style.width = `${Math.max(0, c - s)}%`, t.range.style.bottom = "", t.range.style.height = ""), t.singleThumb && (t.singleThumb.style.left = `${a}%`), t.lowerThumb && (t.lowerThumb.style.left = `${a}%`), t.upperThumb && (t.upperThumb.style.left = `${o}%`)), t.ticks.forEach((t) => {
|
|
19018
|
-
let n = FE(
|
|
19021
|
+
let n = IE(FE(t.dataset.value ?? "", r), r, i);
|
|
19019
19022
|
e.orientation === "vertical" ? (t.style.bottom = `${n}%`, t.style.left = "") : (t.style.left = `${n}%`, t.style.bottom = "");
|
|
19020
19023
|
});
|
|
19021
|
-
},
|
|
19024
|
+
}, UE = () => {
|
|
19022
19025
|
let e = null, t = [], n = "", r = null, i = !1, a = () => {
|
|
19023
19026
|
if (!e) throw Error("Slider has not been initialized.");
|
|
19024
19027
|
return e;
|
|
@@ -19040,8 +19043,8 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19040
19043
|
ticks: Array.from(e.querySelectorAll("[data-ui-slider-tick]"))
|
|
19041
19044
|
};
|
|
19042
19045
|
}, u = (e, t = l()) => e === "upper" ? t.upperInput : e === "lower" ? t.lowerInput : t.singleInput, d = (e) => e.dataset.thumb === "upper" ? "upper" : e.dataset.thumb === "lower" ? "lower" : "single", f = () => {
|
|
19043
|
-
let e = s(), t = c(), r = l(), { min: i, max: o } =
|
|
19044
|
-
|
|
19046
|
+
let e = s(), t = c(), r = l(), { min: i, max: o } = CE(e);
|
|
19047
|
+
VE({
|
|
19045
19048
|
input: r.singleInput,
|
|
19046
19049
|
props: e,
|
|
19047
19050
|
value: t.lower,
|
|
@@ -19050,7 +19053,7 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19050
19053
|
label: e.label,
|
|
19051
19054
|
valueText: e.valueText,
|
|
19052
19055
|
nativeRequired: e.required
|
|
19053
|
-
}),
|
|
19056
|
+
}), VE({
|
|
19054
19057
|
input: r.lowerInput,
|
|
19055
19058
|
props: e,
|
|
19056
19059
|
value: t.lower,
|
|
@@ -19059,7 +19062,7 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19059
19062
|
label: e.lowerLabel,
|
|
19060
19063
|
valueText: e.lowerValueText,
|
|
19061
19064
|
nativeRequired: !1
|
|
19062
|
-
}),
|
|
19065
|
+
}), VE({
|
|
19063
19066
|
input: r.upperInput,
|
|
19064
19067
|
props: e,
|
|
19065
19068
|
value: t.upper,
|
|
@@ -19068,7 +19071,7 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19068
19071
|
label: e.upperLabel,
|
|
19069
19072
|
valueText: e.upperValueText,
|
|
19070
19073
|
nativeRequired: !1
|
|
19071
|
-
}),
|
|
19074
|
+
}), HE(e, r, t), r.value && (r.value.textContent = LE(e, t)), Yn({
|
|
19072
19075
|
el: a(),
|
|
19073
19076
|
state: e
|
|
19074
19077
|
}), Yn({
|
|
@@ -19086,7 +19089,7 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19086
19089
|
disabled: e.disabled,
|
|
19087
19090
|
invalid: e.invalid
|
|
19088
19091
|
}
|
|
19089
|
-
}),
|
|
19092
|
+
}), BE(r.singleThumb, r.singleInput === document.activeElement, e.disabled, e.invalid), BE(r.lowerThumb, r.lowerInput === document.activeElement, e.disabled, e.invalid), BE(r.upperThumb, r.upperInput === document.activeElement, e.disabled, e.invalid), e.range && r.hiddenInputs ? n = Qn({
|
|
19090
19093
|
container: r.hiddenInputs,
|
|
19091
19094
|
currentKey: n,
|
|
19092
19095
|
state: {
|
|
@@ -19130,12 +19133,12 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19130
19133
|
r = null;
|
|
19131
19134
|
}
|
|
19132
19135
|
}, _ = Se({
|
|
19133
|
-
schema:
|
|
19134
|
-
hooks:
|
|
19135
|
-
createMachine: ({ props: e }) =>
|
|
19136
|
+
schema: bE,
|
|
19137
|
+
hooks: xE,
|
|
19138
|
+
createMachine: ({ props: e }) => PE({
|
|
19136
19139
|
props: e,
|
|
19137
19140
|
context: {
|
|
19138
|
-
value:
|
|
19141
|
+
value: DE(e),
|
|
19139
19142
|
interaction: { activeThumb: null }
|
|
19140
19143
|
},
|
|
19141
19144
|
effects: {
|
|
@@ -19163,11 +19166,11 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19163
19166
|
_.send({
|
|
19164
19167
|
type: "KEY_STEPPED",
|
|
19165
19168
|
thumb: n,
|
|
19166
|
-
value:
|
|
19169
|
+
value: FE(e.target.value, CE(s()).min) + t * CE(s()).bigStep
|
|
19167
19170
|
});
|
|
19168
19171
|
}, b = (e) => {
|
|
19169
19172
|
if (s().disabled) return;
|
|
19170
|
-
let t =
|
|
19173
|
+
let t = RE(l().root, e, s()), n = s().range ? zE(t, c()) : "single";
|
|
19171
19174
|
_.send({
|
|
19172
19175
|
type: "POINTER_STARTED",
|
|
19173
19176
|
value: t,
|
|
@@ -19177,7 +19180,7 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19177
19180
|
}, x = (e) => {
|
|
19178
19181
|
r !== e.pointerId || !_.hasTag("dragging") || _.send({
|
|
19179
19182
|
type: "POINTER_MOVED",
|
|
19180
|
-
value:
|
|
19183
|
+
value: RE(l().root, e, s()),
|
|
19181
19184
|
thumb: o().context.interaction.activeThumb
|
|
19182
19185
|
});
|
|
19183
19186
|
}, S = (e) => {
|
|
@@ -19268,9 +19271,9 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19268
19271
|
g(), t.splice(0).forEach((e) => e()), _.disconnect(), e = null;
|
|
19269
19272
|
}
|
|
19270
19273
|
}, C;
|
|
19271
|
-
},
|
|
19272
|
-
e.data("UiSlider", () =>
|
|
19273
|
-
},
|
|
19274
|
+
}, WE = (e) => {
|
|
19275
|
+
e.data("UiSlider", () => UE());
|
|
19276
|
+
}, GE = ["trailing", "leading"], KE = gg, qE = Tg, JE = {
|
|
19274
19277
|
value: R.default("on"),
|
|
19275
19278
|
name: R,
|
|
19276
19279
|
label: R,
|
|
@@ -19279,9 +19282,9 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19279
19282
|
disabled: N(B, "prop-disabled"),
|
|
19280
19283
|
required: N(B, "prop-required"),
|
|
19281
19284
|
invalid: N(B, "prop-invalid"),
|
|
19282
|
-
placement: V(
|
|
19283
|
-
variant: V(
|
|
19284
|
-
size: V(
|
|
19285
|
+
placement: V(GE, "trailing"),
|
|
19286
|
+
variant: V(qE, "default"),
|
|
19287
|
+
size: V(KE, "md"),
|
|
19285
19288
|
inputClass: R,
|
|
19286
19289
|
trackClass: R,
|
|
19287
19290
|
thumbClass: R,
|
|
@@ -19290,44 +19293,44 @@ var bE = [], xE = (e, t, n) => {
|
|
|
19290
19293
|
descriptionClass: R,
|
|
19291
19294
|
class: R
|
|
19292
19295
|
};
|
|
19293
|
-
({ ...
|
|
19296
|
+
({ ...JE });
|
|
19294
19297
|
//#endregion
|
|
19295
19298
|
//#region packages/client/src/components/switch/machine.ts
|
|
19296
|
-
var
|
|
19299
|
+
var YE = [], XE = (e) => e.checked === !0, ZE = (e) => ({ event: t }) => XE(t) === e, QE = ({ event: e }) => Kn(e, "checked"), $E = (e) => (t) => {
|
|
19297
19300
|
let n = Gn(t.event)?.props;
|
|
19298
|
-
return
|
|
19299
|
-
},
|
|
19301
|
+
return QE(t) && n?.checked === e;
|
|
19302
|
+
}, eD = (e) => ({ context: {
|
|
19300
19303
|
...e.context,
|
|
19301
|
-
selection: { checked:
|
|
19302
|
-
} }),
|
|
19304
|
+
selection: { checked: XE(e.event) }
|
|
19305
|
+
} }), tD = (e) => ({ context: {
|
|
19303
19306
|
...e.context,
|
|
19304
19307
|
selection: { checked: !e.context.selection.checked }
|
|
19305
|
-
} }),
|
|
19308
|
+
} }), nD = (e) => {
|
|
19306
19309
|
let t = Gn(e.event)?.props;
|
|
19307
19310
|
if (t) return {
|
|
19308
19311
|
props: t,
|
|
19309
|
-
context:
|
|
19312
|
+
context: QE(e) ? {
|
|
19310
19313
|
...e.context,
|
|
19311
19314
|
selection: { checked: t.checked }
|
|
19312
19315
|
} : e.context
|
|
19313
19316
|
};
|
|
19314
|
-
},
|
|
19317
|
+
}, rD = ({ props: e, effects: t }) => Wn({
|
|
19315
19318
|
initial: e.checked ? "checked" : "unchecked",
|
|
19316
19319
|
on: {
|
|
19317
19320
|
NATIVE_CHANGED: [{
|
|
19318
19321
|
target: "checked",
|
|
19319
|
-
guard:
|
|
19322
|
+
guard: ZE(!0),
|
|
19320
19323
|
reduce: "setChecked",
|
|
19321
19324
|
effects: "sync"
|
|
19322
19325
|
}, {
|
|
19323
19326
|
target: "unchecked",
|
|
19324
|
-
guard:
|
|
19327
|
+
guard: ZE(!1),
|
|
19325
19328
|
reduce: "setChecked",
|
|
19326
19329
|
effects: "sync"
|
|
19327
19330
|
}],
|
|
19328
19331
|
SET_CHECKED: [{
|
|
19329
19332
|
target: "checked",
|
|
19330
|
-
guard:
|
|
19333
|
+
guard: ZE(!0),
|
|
19331
19334
|
reduce: "setChecked",
|
|
19332
19335
|
effects: [
|
|
19333
19336
|
"sync",
|
|
@@ -19336,7 +19339,7 @@ var JE = [], YE = (e) => e.checked === !0, XE = (e) => ({ event: t }) => YE(t) =
|
|
|
19336
19339
|
]
|
|
19337
19340
|
}, {
|
|
19338
19341
|
target: "unchecked",
|
|
19339
|
-
guard:
|
|
19342
|
+
guard: ZE(!1),
|
|
19340
19343
|
reduce: "setChecked",
|
|
19341
19344
|
effects: [
|
|
19342
19345
|
"sync",
|
|
@@ -19366,13 +19369,13 @@ var JE = [], YE = (e) => e.checked === !0, XE = (e) => ({ event: t }) => YE(t) =
|
|
|
19366
19369
|
PROPS_CHANGED: [
|
|
19367
19370
|
{
|
|
19368
19371
|
target: "checked",
|
|
19369
|
-
guard:
|
|
19372
|
+
guard: $E(!0),
|
|
19370
19373
|
reduce: "reconcileProps",
|
|
19371
19374
|
effects: "sync"
|
|
19372
19375
|
},
|
|
19373
19376
|
{
|
|
19374
19377
|
target: "unchecked",
|
|
19375
|
-
guard:
|
|
19378
|
+
guard: $E(!1),
|
|
19376
19379
|
reduce: "reconcileProps",
|
|
19377
19380
|
effects: "sync"
|
|
19378
19381
|
},
|
|
@@ -19390,12 +19393,12 @@ var JE = [], YE = (e) => e.checked === !0, XE = (e) => ({ event: t }) => YE(t) =
|
|
|
19390
19393
|
context: { selection: { checked: e.checked } },
|
|
19391
19394
|
props: e,
|
|
19392
19395
|
reducers: {
|
|
19393
|
-
setChecked:
|
|
19394
|
-
toggle:
|
|
19395
|
-
reconcileProps:
|
|
19396
|
+
setChecked: eD,
|
|
19397
|
+
toggle: tD,
|
|
19398
|
+
reconcileProps: nD
|
|
19396
19399
|
},
|
|
19397
19400
|
effects: t
|
|
19398
|
-
}),
|
|
19401
|
+
}), iD = () => {
|
|
19399
19402
|
let e = null, t = null, n = [], r = !1, i = () => {
|
|
19400
19403
|
if (!e) throw Error("Switch has not been initialized.");
|
|
19401
19404
|
return e;
|
|
@@ -19479,9 +19482,9 @@ var JE = [], YE = (e) => e.checked === !0, XE = (e) => ({ event: t }) => YE(t) =
|
|
|
19479
19482
|
r = !1;
|
|
19480
19483
|
}
|
|
19481
19484
|
}, l = Se({
|
|
19482
|
-
schema:
|
|
19483
|
-
hooks:
|
|
19484
|
-
createMachine: ({ props: e }) =>
|
|
19485
|
+
schema: JE,
|
|
19486
|
+
hooks: YE,
|
|
19487
|
+
createMachine: ({ props: e }) => rD({
|
|
19485
19488
|
props: e,
|
|
19486
19489
|
effects: {
|
|
19487
19490
|
sync: s,
|
|
@@ -19526,22 +19529,22 @@ var JE = [], YE = (e) => e.checked === !0, XE = (e) => ({ event: t }) => YE(t) =
|
|
|
19526
19529
|
});
|
|
19527
19530
|
}
|
|
19528
19531
|
};
|
|
19529
|
-
},
|
|
19530
|
-
e.data("UiSwitch", () =>
|
|
19531
|
-
},
|
|
19532
|
-
[...
|
|
19533
|
-
var
|
|
19532
|
+
}, aD = (e) => {
|
|
19533
|
+
e.data("UiSwitch", () => iD());
|
|
19534
|
+
}, oD = ["manual", "automatic"], sD = Cg;
|
|
19535
|
+
[...sD];
|
|
19536
|
+
var cD = ["auto", ...Og], lD = {
|
|
19534
19537
|
id: R.default("ui-tabs"),
|
|
19535
19538
|
animate: B,
|
|
19536
19539
|
defaultValue: R,
|
|
19537
19540
|
value: R,
|
|
19538
|
-
activation: V(
|
|
19539
|
-
orientation: V(
|
|
19540
|
-
gap: V(
|
|
19541
|
+
activation: V(oD, "manual"),
|
|
19542
|
+
orientation: V(sD, "horizontal"),
|
|
19543
|
+
gap: V(cD, "auto"),
|
|
19541
19544
|
loop: B.default(!0),
|
|
19542
19545
|
panels: R,
|
|
19543
19546
|
class: R
|
|
19544
|
-
},
|
|
19547
|
+
}, uD = [J({
|
|
19545
19548
|
name: "switching",
|
|
19546
19549
|
state: "switching",
|
|
19547
19550
|
project: (e) => e.context.change,
|
|
@@ -19551,35 +19554,35 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19551
19554
|
type: "SELECT",
|
|
19552
19555
|
value: e
|
|
19553
19556
|
}) }
|
|
19554
|
-
})],
|
|
19555
|
-
values:
|
|
19556
|
-
disabledValues:
|
|
19557
|
-
panelIds:
|
|
19558
|
-
} : e.context.collection,
|
|
19559
|
-
let t =
|
|
19557
|
+
})], dD = (e) => typeof e == "string" ? e : "", fD = (e) => Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], pD = (e) => !e || typeof e != "object" || Array.isArray(e) ? {} : Object.fromEntries(Object.entries(e).filter((e) => typeof e[1] == "string")), mD = (e) => Gn(e.event)?.props ?? e.props, hD = (e) => e.event.type === "ITEMS_CHANGED" ? {
|
|
19558
|
+
values: fD(e.event.values),
|
|
19559
|
+
disabledValues: fD(e.event.disabledValues),
|
|
19560
|
+
panelIds: pD(e.event.panelIds)
|
|
19561
|
+
} : e.context.collection, gD = (e, t) => e && t.values.includes(e) && !t.disabledValues.includes(e) ? e : t.values.find((e) => !t.disabledValues.includes(e)) ?? "", _D = (e) => {
|
|
19562
|
+
let t = hD(e);
|
|
19560
19563
|
if (e.event.type === "SELECT") {
|
|
19561
|
-
let n =
|
|
19564
|
+
let n = dD(e.event.value);
|
|
19562
19565
|
return n && t.values.includes(n) && !t.disabledValues.includes(n) ? n : e.context.selection.value;
|
|
19563
19566
|
}
|
|
19564
|
-
return e.event.type === "PROPS_CHANGED" && Kn(e.event, "value") ?
|
|
19565
|
-
},
|
|
19567
|
+
return e.event.type === "PROPS_CHANGED" && Kn(e.event, "value") ? gD(mD(e).value, t) : gD(e.context.selection.value, t);
|
|
19568
|
+
}, vD = (e) => e.context.selection.value !== _D(e), yD = (e, t) => ({
|
|
19566
19569
|
target: e,
|
|
19567
|
-
guard:
|
|
19570
|
+
guard: vD,
|
|
19568
19571
|
reduce: "applySwitch",
|
|
19569
19572
|
effects: t
|
|
19570
|
-
}),
|
|
19573
|
+
}), bD = ({ props: e, context: t, effects: n }) => Wn({
|
|
19571
19574
|
initial: "stable",
|
|
19572
19575
|
on: { DOM_INVALIDATED: { effects: "syncDom" } },
|
|
19573
19576
|
states: {
|
|
19574
19577
|
stable: {
|
|
19575
19578
|
tags: ["stable"],
|
|
19576
19579
|
on: {
|
|
19577
|
-
SELECT:
|
|
19578
|
-
PROPS_CHANGED: [
|
|
19580
|
+
SELECT: yD("switching", "prepareSwitch"),
|
|
19581
|
+
PROPS_CHANGED: [yD("switching", "prepareSwitch"), {
|
|
19579
19582
|
reduce: "reconcile",
|
|
19580
19583
|
effects: "syncProps"
|
|
19581
19584
|
}],
|
|
19582
|
-
ITEMS_CHANGED: [
|
|
19585
|
+
ITEMS_CHANGED: [yD("switching", "prepareSwitch"), {
|
|
19583
19586
|
reduce: "reconcile",
|
|
19584
19587
|
effects: "syncItems"
|
|
19585
19588
|
}]
|
|
@@ -19596,12 +19599,12 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19596
19599
|
target: "stable",
|
|
19597
19600
|
effects: "finishSwitch"
|
|
19598
19601
|
},
|
|
19599
|
-
SELECT:
|
|
19600
|
-
PROPS_CHANGED: [
|
|
19602
|
+
SELECT: yD("switching", "prepareSwitch"),
|
|
19603
|
+
PROPS_CHANGED: [yD("switching", "prepareSwitch"), {
|
|
19601
19604
|
reduce: "reconcile",
|
|
19602
19605
|
effects: "syncProps"
|
|
19603
19606
|
}],
|
|
19604
|
-
ITEMS_CHANGED: [
|
|
19607
|
+
ITEMS_CHANGED: [yD("switching", "prepareSwitch"), {
|
|
19605
19608
|
reduce: "reconcile",
|
|
19606
19609
|
effects: "syncItems"
|
|
19607
19610
|
}]
|
|
@@ -19613,9 +19616,9 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19613
19616
|
props: e,
|
|
19614
19617
|
reducers: {
|
|
19615
19618
|
applySwitch: (e) => {
|
|
19616
|
-
let t =
|
|
19619
|
+
let t = hD(e), n = _D(e);
|
|
19617
19620
|
return {
|
|
19618
|
-
props:
|
|
19621
|
+
props: mD(e),
|
|
19619
19622
|
context: {
|
|
19620
19623
|
...e.context,
|
|
19621
19624
|
selection: { value: n },
|
|
@@ -19629,11 +19632,11 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19629
19632
|
};
|
|
19630
19633
|
},
|
|
19631
19634
|
reconcile: (e) => ({
|
|
19632
|
-
props:
|
|
19635
|
+
props: mD(e),
|
|
19633
19636
|
context: {
|
|
19634
19637
|
...e.context,
|
|
19635
|
-
collection:
|
|
19636
|
-
selection: { value:
|
|
19638
|
+
collection: hD(e),
|
|
19639
|
+
selection: { value: _D(e) }
|
|
19637
19640
|
}
|
|
19638
19641
|
})
|
|
19639
19642
|
},
|
|
@@ -19644,11 +19647,11 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19644
19647
|
syncProps: n.syncProps,
|
|
19645
19648
|
syncItems: n.syncItems
|
|
19646
19649
|
}
|
|
19647
|
-
}),
|
|
19650
|
+
}), xD = "ui-tabs", SD = (e) => e ? "active" : "inactive", CD = (e) => e.trim().toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "") || "tab", wD = (e, t) => `${e}-tab-${CD(t)}`, TD = (e, t) => `${e}-panel-${CD(t)}`, ED = (e) => e instanceof HTMLButtonElement || e instanceof HTMLAnchorElement, DD = (e) => Array.from(new Set(e)), OD = () => {
|
|
19648
19651
|
let e = null, t = null, n = null, r = null, i = null, a, o = null, s = () => {
|
|
19649
19652
|
if (!e) throw Error("Tabs has not been initialized.");
|
|
19650
19653
|
return e;
|
|
19651
|
-
}, c = () => s().id || s().dataset.id || s().dataset.owner ||
|
|
19654
|
+
}, c = () => s().id || s().dataset.id || s().dataset.owner || xD, l = (e) => e.closest("[data-ui-tabs]") === s(), u = (e) => le({ value: e }), d = () => Array.from(s().querySelectorAll("[data-ui-tabs-list]")).find(l) ?? null, f = (e) => {
|
|
19652
19655
|
let t = (e ?? d())?.dataset.variant;
|
|
19653
19656
|
return t === "subtle" || t === "segmented" || t === "pills" ? t : "line";
|
|
19654
19657
|
}, p = (e) => (e ?? d())?.dataset.size === "sm" ? "sm" : "md", m = (e) => {
|
|
@@ -19660,8 +19663,8 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19660
19663
|
let e = document.querySelector(r);
|
|
19661
19664
|
e && n.push(...Array.from(e.querySelectorAll("[data-ui-tabs-panel]")).filter(t));
|
|
19662
19665
|
}
|
|
19663
|
-
return n.push(...Array.from(document.querySelectorAll(`[data-ui-tabs-panel][data-ui-tabs-owner="${CSS.escape(e)}"]`)).filter(t)),
|
|
19664
|
-
}, g = (e) => h().find((t) => t.dataset.value === e) ?? null, _ = () => Array.from(s().querySelectorAll("[data-ui-tabs-tab]")).filter(l).map((e, t) =>
|
|
19666
|
+
return n.push(...Array.from(document.querySelectorAll(`[data-ui-tabs-panel][data-ui-tabs-owner="${CSS.escape(e)}"]`)).filter(t)), DD(n);
|
|
19667
|
+
}, g = (e) => h().find((t) => t.dataset.value === e) ?? null, _ = () => Array.from(s().querySelectorAll("[data-ui-tabs-tab]")).filter(l).map((e, t) => ED(e) ? (e.dataset.value ||= `tab-${t + 1}`, {
|
|
19665
19668
|
tab: e,
|
|
19666
19669
|
value: e.dataset.value,
|
|
19667
19670
|
disabled: u(e.dataset.disabled) || e.hasAttribute("disabled"),
|
|
@@ -19675,7 +19678,7 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19675
19678
|
return {
|
|
19676
19679
|
values: e.map((e) => e.value),
|
|
19677
19680
|
disabledValues: e.filter((e) => e.disabled).map((e) => e.value),
|
|
19678
|
-
panelIds: Object.fromEntries(e.map((e) => [e.value, e.panel?.id ||
|
|
19681
|
+
panelIds: Object.fromEntries(e.map((e) => [e.value, e.panel?.id || TD(e.tab.dataset.uiTabsOwner || e.tab.dataset.owner || c(), e.value)]))
|
|
19679
19682
|
};
|
|
19680
19683
|
}, x = (e) => {
|
|
19681
19684
|
let t = b(), n = _().find((e) => u(e.tab.dataset.selected) || e.tab.getAttribute("aria-selected") === "true"), r = h().find((e) => u(e.dataset.selected)), i = e.value || e.defaultValue || n?.value || r?.dataset.value || "", a = i && t.values.includes(i) && !t.disabledValues.includes(i) ? i : t.values.find((e) => !t.disabledValues.includes(e)) ?? "";
|
|
@@ -19727,8 +19730,8 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19727
19730
|
let t = m(e);
|
|
19728
19731
|
e.setAttribute("role", "tablist"), e.dataset.orientation = t, t === "vertical" ? e.setAttribute("aria-orientation", "vertical") : e.removeAttribute("aria-orientation");
|
|
19729
19732
|
}, A = (e) => {
|
|
19730
|
-
let t = e.value === w(), n = e.tab.closest("[data-ui-tabs-list]"), r = m(n), i = f(n), a = p(n), o = e.tab.dataset.uiTabsOwner || e.tab.dataset.owner || c(), s = e.tab.querySelector("[data-ui-tabs-tab-selected-icon]"), l =
|
|
19731
|
-
e.tab.id ||=
|
|
19733
|
+
let t = e.value === w(), n = e.tab.closest("[data-ui-tabs-list]"), r = m(n), i = f(n), a = p(n), o = e.tab.dataset.uiTabsOwner || e.tab.dataset.owner || c(), s = e.tab.querySelector("[data-ui-tabs-tab-selected-icon]"), l = SD(t), u = T();
|
|
19734
|
+
e.tab.id ||= wD(o, e.value), e.tab.dataset.state = l, e.tab.dataset.orientation = r, e.tab.dataset.variant = i, e.tab.dataset.size = a, e.tab.setAttribute("role", "tab"), e.tab.setAttribute("aria-selected", t ? "true" : "false"), e.tab.setAttribute("aria-controls", e.panel?.id || TD(o, e.value)), e.tab.tabIndex = e.tab === u ? 0 : -1, W({
|
|
19732
19735
|
el: e.tab,
|
|
19733
19736
|
attr: "data-selected",
|
|
19734
19737
|
present: t
|
|
@@ -19738,8 +19741,8 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19738
19741
|
present: e.disabled
|
|
19739
19742
|
}), e.disabled ? (e.tab.setAttribute("aria-disabled", "true"), e.tab.tabIndex = -1) : e.tab.removeAttribute("aria-disabled"), e.tab instanceof HTMLButtonElement && (e.tab.disabled = e.disabled);
|
|
19740
19743
|
}, j = (e) => {
|
|
19741
|
-
let t = e.dataset.value || "", n = t === w(), r = e.dataset.uiTabsOwner || e.dataset.owner || c(), i =
|
|
19742
|
-
t && !e.id && (e.id = i), t && !e.hasAttribute("data-ui-key") && e.setAttribute("data-ui-key", e.id || i), e.dataset.state =
|
|
19744
|
+
let t = e.dataset.value || "", n = t === w(), r = e.dataset.uiTabsOwner || e.dataset.owner || c(), i = TD(r, t);
|
|
19745
|
+
t && !e.id && (e.id = i), t && !e.hasAttribute("data-ui-key") && e.setAttribute("data-ui-key", e.id || i), e.dataset.state = SD(n), e.dataset.orientation = S().orientation, e.setAttribute("role", "tabpanel"), e.setAttribute("aria-labelledby", wD(r, t)), e.hasAttribute("tabindex") || (e.tabIndex = 0), e.hidden = !n, W({
|
|
19743
19746
|
el: e,
|
|
19744
19747
|
attr: "data-selected",
|
|
19745
19748
|
present: n
|
|
@@ -19766,13 +19769,13 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19766
19769
|
}, te = () => {
|
|
19767
19770
|
M({ indicator: !0 }), R(), z();
|
|
19768
19771
|
}, F = Se({
|
|
19769
|
-
schema:
|
|
19770
|
-
hooks:
|
|
19772
|
+
schema: lD,
|
|
19773
|
+
hooks: uD,
|
|
19771
19774
|
resolveTransitionElement: ({ data: e }) => v(e.value)?.tab ?? null,
|
|
19772
19775
|
createMachine: ({ props: e }) => {
|
|
19773
19776
|
o = e;
|
|
19774
19777
|
let t = x(e);
|
|
19775
|
-
return o = null,
|
|
19778
|
+
return o = null, bD({
|
|
19776
19779
|
props: e,
|
|
19777
19780
|
context: t,
|
|
19778
19781
|
effects: {
|
|
@@ -19858,7 +19861,7 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19858
19861
|
n && e.push(n);
|
|
19859
19862
|
}
|
|
19860
19863
|
n = lr({
|
|
19861
|
-
targets:
|
|
19864
|
+
targets: DD(e),
|
|
19862
19865
|
read: b,
|
|
19863
19866
|
onChange: oe,
|
|
19864
19867
|
observer: {
|
|
@@ -19934,38 +19937,38 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19934
19937
|
return this.snapshot.current?.context.selection.value === e;
|
|
19935
19938
|
}
|
|
19936
19939
|
}, B;
|
|
19937
|
-
},
|
|
19938
|
-
e.data("UiTabs", () =>
|
|
19939
|
-
},
|
|
19940
|
+
}, kD = (e) => {
|
|
19941
|
+
e.data("UiTabs", () => OD());
|
|
19942
|
+
}, AD = [
|
|
19940
19943
|
"info",
|
|
19941
19944
|
"success",
|
|
19942
19945
|
"warning",
|
|
19943
19946
|
"danger",
|
|
19944
19947
|
"debug"
|
|
19945
|
-
],
|
|
19948
|
+
], jD = [
|
|
19946
19949
|
"auto",
|
|
19947
19950
|
"neutral",
|
|
19948
19951
|
"accent",
|
|
19949
19952
|
"success",
|
|
19950
19953
|
"warning",
|
|
19951
19954
|
"danger"
|
|
19952
|
-
],
|
|
19955
|
+
], MD = [
|
|
19953
19956
|
"default",
|
|
19954
19957
|
"soft",
|
|
19955
19958
|
"surface",
|
|
19956
19959
|
"solid",
|
|
19957
19960
|
"outline"
|
|
19958
|
-
],
|
|
19961
|
+
], ND = [
|
|
19959
19962
|
"top-right",
|
|
19960
19963
|
"top-left",
|
|
19961
19964
|
"top-center",
|
|
19962
19965
|
"bottom-right",
|
|
19963
19966
|
"bottom-left",
|
|
19964
19967
|
"bottom-center"
|
|
19965
|
-
],
|
|
19966
|
-
level: V(
|
|
19967
|
-
color: V(
|
|
19968
|
-
variant: V(
|
|
19968
|
+
], PD = {
|
|
19969
|
+
level: V(AD, "info"),
|
|
19970
|
+
color: V(jD, "auto"),
|
|
19971
|
+
variant: V(MD, "default"),
|
|
19969
19972
|
title: R,
|
|
19970
19973
|
description: R,
|
|
19971
19974
|
duration: z.default(5e3).min(0),
|
|
@@ -19973,14 +19976,14 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19973
19976
|
class: R,
|
|
19974
19977
|
contentClass: R,
|
|
19975
19978
|
closeClass: R
|
|
19976
|
-
},
|
|
19979
|
+
}, FD = {
|
|
19977
19980
|
id: R.default("ui-toast-root"),
|
|
19978
|
-
position: V(
|
|
19981
|
+
position: V(ND, "top-right"),
|
|
19979
19982
|
duration: z.default(5e3).min(0),
|
|
19980
19983
|
includeMessages: B.default(!0),
|
|
19981
19984
|
maxItems: z.default(3).min(0),
|
|
19982
19985
|
class: R
|
|
19983
|
-
},
|
|
19986
|
+
}, ID = [J({
|
|
19984
19987
|
name: "opening",
|
|
19985
19988
|
state: "opening",
|
|
19986
19989
|
project: () => ({}),
|
|
@@ -19992,7 +19995,7 @@ var sD = ["auto", ...Og], cD = {
|
|
|
19992
19995
|
project: ({ context: e }) => ({ reason: e.dismissal.reason }),
|
|
19993
19996
|
onDone: "CLOSING_DONE",
|
|
19994
19997
|
onError: "CLOSING_ERROR"
|
|
19995
|
-
})],
|
|
19998
|
+
})], LD = (e, t) => Wn({
|
|
19996
19999
|
initial: "idle",
|
|
19997
20000
|
on: { PROPS_CHANGED: {
|
|
19998
20001
|
reduce: "replaceProps",
|
|
@@ -20183,7 +20186,7 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20183
20186
|
syncProps: t.syncProps,
|
|
20184
20187
|
finishClose: ({ context: e }) => t.finishClose(e.dismissal.reason)
|
|
20185
20188
|
}
|
|
20186
|
-
}),
|
|
20189
|
+
}), RD = cm({ definition: {
|
|
20187
20190
|
component: "ui.toast",
|
|
20188
20191
|
parts: {
|
|
20189
20192
|
root: {
|
|
@@ -20260,32 +20263,32 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20260
20263
|
defaults: { position: "top-right" }
|
|
20261
20264
|
}
|
|
20262
20265
|
}
|
|
20263
|
-
} }),
|
|
20266
|
+
} }), zD = (e) => [
|
|
20264
20267
|
"info",
|
|
20265
20268
|
"success",
|
|
20266
20269
|
"warning",
|
|
20267
20270
|
"danger",
|
|
20268
20271
|
"debug"
|
|
20269
|
-
].includes(String(e)),
|
|
20272
|
+
].includes(String(e)), BD = (e) => [
|
|
20270
20273
|
"auto",
|
|
20271
20274
|
"neutral",
|
|
20272
20275
|
"accent",
|
|
20273
20276
|
"success",
|
|
20274
20277
|
"warning",
|
|
20275
20278
|
"danger"
|
|
20276
|
-
].includes(String(e)),
|
|
20279
|
+
].includes(String(e)), VD = (e) => [
|
|
20277
20280
|
"default",
|
|
20278
20281
|
"soft",
|
|
20279
20282
|
"surface",
|
|
20280
20283
|
"solid",
|
|
20281
20284
|
"outline"
|
|
20282
|
-
].includes(String(e)),
|
|
20285
|
+
].includes(String(e)), HD = (e) => e === "info" ? "accent" : e === "success" || e === "warning" || e === "danger" ? e : "neutral", UD = (e, t) => BD(e) && e !== "auto" ? e : HD(t), WD = (e, t) => {
|
|
20283
20286
|
let n = typeof e == "number" ? e : Number(e);
|
|
20284
20287
|
return Number.isFinite(n) && n >= 0 ? n : t;
|
|
20285
|
-
},
|
|
20288
|
+
}, GD = (e) => {
|
|
20286
20289
|
let t = e.style;
|
|
20287
20290
|
return `translateY(${Number.parseFloat(t.getPropertyValue("--ui-toast-stack-offset")) || 0}px) scale(${Number.parseFloat(t.getPropertyValue("--ui-toast-stack-scale")) || 1})`;
|
|
20288
|
-
},
|
|
20291
|
+
}, KD = (e) => Array.from(e.querySelectorAll(":scope > [data-ui-toast]")).filter((e) => e.dataset.state !== "closing" && e.dataset.state !== "closed"), qD = (e, t = !1) => {
|
|
20289
20292
|
let n = Array.from(e.querySelectorAll(":scope > [data-ui-toast]"));
|
|
20290
20293
|
e.dataset.stack = n.length > 1 ? "collapsed" : "single";
|
|
20291
20294
|
let r = getComputedStyle(e), i = Number.parseFloat(r.rowGap || r.gap || "0") || 0, a = n.map((e) => Math.ceil(e.scrollHeight || e.getBoundingClientRect().height)), o = Number.parseFloat(r.getPropertyValue("--ui-toast-stack-peek")) || 8, s = e.dataset.position?.startsWith("bottom") ? -1 : 1, c = e.dataset.stackExpanded === "true", l = Math.min(Math.max(0, n.length - 1), 3);
|
|
@@ -20300,12 +20303,12 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20300
20303
|
transform: h
|
|
20301
20304
|
}).speed("moderate").play() : r.dataset.state === "open" && (r.style.opacity = String(m), r.style.transform = h));
|
|
20302
20305
|
});
|
|
20303
|
-
}, qD = (e, t) => {
|
|
20304
|
-
e.dispatchEvent(new CustomEvent("ui:toast-dismiss-request", { detail: { reason: t } }));
|
|
20305
20306
|
}, JD = (e, t) => {
|
|
20306
|
-
|
|
20307
|
+
e.dispatchEvent(new CustomEvent("ui:toast-dismiss-request", { detail: { reason: t } }));
|
|
20307
20308
|
}, YD = (e, t) => {
|
|
20308
|
-
|
|
20309
|
+
t !== 0 && KD(e).slice(t).forEach((e) => JD(e, "api"));
|
|
20310
|
+
}, XD = (e, t) => {
|
|
20311
|
+
let n = UD(t.color, t.level), r = e.dataset.description === "true" || !!t.description.trim(), i = n !== "neutral" && t.variant !== "solid" && t.variant !== "default", a = t.level === "danger" || t.level === "warning";
|
|
20309
20312
|
Object.assign(e.dataset, {
|
|
20310
20313
|
level: t.level,
|
|
20311
20314
|
color: n,
|
|
@@ -20313,7 +20316,7 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20313
20316
|
duration: String(t.duration),
|
|
20314
20317
|
dismissible: String(t.dismissible)
|
|
20315
20318
|
}), e.setAttribute("role", a ? "alert" : "status"), e.setAttribute("aria-live", a ? "assertive" : "polite"), e.className = Z({
|
|
20316
|
-
part:
|
|
20319
|
+
part: RD.parts.root,
|
|
20317
20320
|
props: {
|
|
20318
20321
|
variant: t.variant,
|
|
20319
20322
|
color: n,
|
|
@@ -20322,41 +20325,41 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20322
20325
|
},
|
|
20323
20326
|
className: t.class
|
|
20324
20327
|
}), e.querySelector("[data-ui-toast-marker]")?.setAttribute("class", Z({
|
|
20325
|
-
part:
|
|
20328
|
+
part: RD.parts.marker,
|
|
20326
20329
|
props: {
|
|
20327
20330
|
variant: t.variant,
|
|
20328
20331
|
color: n
|
|
20329
20332
|
}
|
|
20330
20333
|
})), e.querySelectorAll("[data-ui-toast-content]").forEach((e) => {
|
|
20331
20334
|
e.className = Z({
|
|
20332
|
-
part:
|
|
20335
|
+
part: RD.parts.content,
|
|
20333
20336
|
className: t.contentClass
|
|
20334
20337
|
});
|
|
20335
20338
|
}), e.querySelectorAll("[data-ui-toast-title]").forEach((e) => {
|
|
20336
|
-
e.className = `text-sm font-medium ${Z({ part:
|
|
20339
|
+
e.className = `text-sm font-medium ${Z({ part: RD.parts.title })}`;
|
|
20337
20340
|
}), e.querySelectorAll("[data-ui-toast-description]").forEach((e) => {
|
|
20338
|
-
e.className = `text-sm ${Z({ part:
|
|
20341
|
+
e.className = `text-sm ${Z({ part: RD.parts.description })}`;
|
|
20339
20342
|
}), e.querySelectorAll("[data-ui-toast-close]").forEach((e) => {
|
|
20340
20343
|
e.hidden = !t.dismissible, e.className = Z({
|
|
20341
|
-
part:
|
|
20344
|
+
part: RD.parts.close,
|
|
20342
20345
|
className: t.closeClass
|
|
20343
20346
|
});
|
|
20344
20347
|
});
|
|
20345
|
-
},
|
|
20348
|
+
}, ZD = () => {
|
|
20346
20349
|
let e = null, t = [], n = 0, r = null, i = null, a = 0, o = /* @__PURE__ */ new Set(), s = () => {
|
|
20347
20350
|
if (!e) throw Error("Toast has not been initialized.");
|
|
20348
20351
|
return e;
|
|
20349
20352
|
}, c = () => s().parentElement?.matches("[data-ui-toast-outlet]") ? s().parentElement : null, l = () => r === null ? d.getSnapshot().context.timer.remaining : Math.max(0, n - performance.now()), u = () => {
|
|
20350
20353
|
r !== null && clearTimeout(r), i !== null && clearInterval(i), r = i = null;
|
|
20351
20354
|
}, d = Se({
|
|
20352
|
-
schema:
|
|
20353
|
-
hooks:
|
|
20354
|
-
createMachine: ({ props: e }) =>
|
|
20355
|
+
schema: PD,
|
|
20356
|
+
hooks: ID,
|
|
20357
|
+
createMachine: ({ props: e }) => LD(e, {
|
|
20355
20358
|
prepareOpen: () => {
|
|
20356
|
-
s().dataset.state = "opening",
|
|
20359
|
+
s().dataset.state = "opening", XD(s(), d.getSnapshot().props), c() && qD(c(), !0);
|
|
20357
20360
|
},
|
|
20358
20361
|
finishOpen: () => {
|
|
20359
|
-
s().dataset.state = "open", c() &&
|
|
20362
|
+
s().dataset.state = "open", c() && qD(c(), !0);
|
|
20360
20363
|
},
|
|
20361
20364
|
startTimer: () => {
|
|
20362
20365
|
let e = d.getSnapshot().context.timer.remaining;
|
|
@@ -20370,7 +20373,7 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20370
20373
|
},
|
|
20371
20374
|
stopTimer: u,
|
|
20372
20375
|
prepareClose: () => {
|
|
20373
|
-
u(), s().dataset.state = "closing", c() &&
|
|
20376
|
+
u(), s().dataset.state = "closing", c() && qD(c(), !0);
|
|
20374
20377
|
},
|
|
20375
20378
|
finishClose: (e) => {
|
|
20376
20379
|
let t = s(), n = c();
|
|
@@ -20378,11 +20381,11 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20378
20381
|
el: t,
|
|
20379
20382
|
name: "ui:dismiss",
|
|
20380
20383
|
detail: { reason: e }
|
|
20381
|
-
}), t.remove(), n &&
|
|
20384
|
+
}), t.remove(), n && qD(n, !0);
|
|
20382
20385
|
},
|
|
20383
20386
|
syncProps: () => {
|
|
20384
20387
|
let e = d.getSnapshot().props;
|
|
20385
|
-
|
|
20388
|
+
XD(s(), e), e.duration !== a && (a = e.duration, d.send("DURATION_CHANGED")), c() && qD(c());
|
|
20386
20389
|
}
|
|
20387
20390
|
})
|
|
20388
20391
|
}), f = (e) => {
|
|
@@ -20445,7 +20448,7 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20445
20448
|
event: "pointerdown",
|
|
20446
20449
|
handler: (e) => {
|
|
20447
20450
|
if (!(e instanceof PointerEvent) || !e.isPrimary || e.button !== 0 || !d.getSnapshot().props.dismissible || e.target instanceof Element && e.target.closest("button, a, input, select, textarea")) return;
|
|
20448
|
-
let t = s(), n = c()?.dataset.position ?? "bottom-right", r = n.endsWith("left") || n.endsWith("right"), i = r ? n.endsWith("left") ? -1 : 1 : n.startsWith("top") ? -1 : 1, a = r ? e.clientX : e.clientY, o = performance.now(), l =
|
|
20451
|
+
let t = s(), n = c()?.dataset.position ?? "bottom-right", r = n.endsWith("left") || n.endsWith("right"), i = r ? n.endsWith("left") ? -1 : 1 : n.startsWith("top") ? -1 : 1, a = r ? e.clientX : e.clientY, o = performance.now(), l = GD(t), u = Number.parseFloat(t.style.getPropertyValue("--ui-toast-stack-opacity")) || 1, m = gl(0);
|
|
20449
20452
|
Ff(t), f("gesture"), t.dataset.swiping = "true", t.setPointerCapture(e.pointerId);
|
|
20450
20453
|
let h = m.on("change", (e) => {
|
|
20451
20454
|
let n = r ? `translateX(${e}px)` : `translateY(${e}px)`;
|
|
@@ -20472,7 +20475,7 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20472
20475
|
ease: Bf.out
|
|
20473
20476
|
});
|
|
20474
20477
|
Promise.allSettled([y.finished, b.finished]).then(() => {
|
|
20475
|
-
h(), delete t.dataset.swiping, p("gesture"), f ?
|
|
20478
|
+
h(), delete t.dataset.swiping, p("gesture"), f ? JD(t, "swipe") : (t.style.opacity = String(u), t.style.transform = l);
|
|
20476
20479
|
});
|
|
20477
20480
|
}, v = (e) => _(e, !0);
|
|
20478
20481
|
window.addEventListener("pointermove", g), window.addEventListener("pointerup", _), window.addEventListener("pointercancel", v);
|
|
@@ -20496,20 +20499,20 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20496
20499
|
p("consumer");
|
|
20497
20500
|
}
|
|
20498
20501
|
};
|
|
20499
|
-
},
|
|
20502
|
+
}, QD = (e) => {
|
|
20500
20503
|
let t = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
20501
20504
|
t.setAttribute("viewBox", "0 0 32 32"), t.setAttribute("aria-hidden", "true"), t.dataset.uiToastCloseIcon = "", t.setAttribute("class", e);
|
|
20502
20505
|
let n = document.createElementNS("http://www.w3.org/2000/svg", "polygon");
|
|
20503
20506
|
return n.setAttribute("points", "17.4141 16 24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16"), t.append(n), t;
|
|
20504
|
-
},
|
|
20505
|
-
let n =
|
|
20507
|
+
}, $D = (e, t) => {
|
|
20508
|
+
let n = zD(e.level) ? e.level : "info", r = VD(e.variant) ? e.variant : "default", i = typeof e.title == "string" ? e.title : "", a = typeof e.description == "string" ? e.description : "", o = WD(e.duration, t), s = typeof e.dismissible == "boolean" ? e.dismissible : !0, c = document.createElement("div");
|
|
20506
20509
|
c.setAttribute("x-data", "UiToast"), c.setAttribute("x-ui-transition:opening", "$ui.motion($transition).animate($ui.motion.presets.toast.in).speed('moderate').play()"), c.setAttribute("x-ui-transition:closing", "$transition.data.reason === 'swipe' ? null : $ui.motion($transition).animate($ui.motion.presets.toast.out).speed('moderate').play()"), Object.assign(c.dataset, {
|
|
20507
20510
|
uiToast: "",
|
|
20508
20511
|
uiToastRecipe: "",
|
|
20509
20512
|
uiSurface: "+3",
|
|
20510
20513
|
uiElevation: "4",
|
|
20511
20514
|
level: n,
|
|
20512
|
-
color:
|
|
20515
|
+
color: BD(e.color) ? e.color : "auto",
|
|
20513
20516
|
variant: r,
|
|
20514
20517
|
duration: String(o),
|
|
20515
20518
|
dismissible: String(s),
|
|
@@ -20529,19 +20532,19 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20529
20532
|
}
|
|
20530
20533
|
if (c.append(u), s) {
|
|
20531
20534
|
let e = document.createElement("button");
|
|
20532
|
-
e.type = "button", e.dataset.uiToastClose = "", e.setAttribute("aria-label", "Dismiss notification"), e.append(
|
|
20535
|
+
e.type = "button", e.dataset.uiToastClose = "", e.setAttribute("aria-label", "Dismiss notification"), e.append(QD(Z({ part: RD.parts.closeIcon }))), c.append(e);
|
|
20533
20536
|
}
|
|
20534
20537
|
return c;
|
|
20535
|
-
},
|
|
20538
|
+
}, eO = (e) => {
|
|
20536
20539
|
let t = /* @__PURE__ */ new Set(), n = null, r = (e) => {
|
|
20537
20540
|
n?.querySelectorAll(":scope > [data-ui-toast]").forEach((t) => {
|
|
20538
20541
|
t.dispatchEvent(new CustomEvent("ui:toast-pause-request", { detail: { paused: e } }));
|
|
20539
20542
|
});
|
|
20540
20543
|
}, i = (e) => {
|
|
20541
20544
|
let i = t.size === 0;
|
|
20542
|
-
t.add(e), !(!n || !i) && (n.dataset.stackExpanded = "true", r(!0),
|
|
20545
|
+
t.add(e), !(!n || !i) && (n.dataset.stackExpanded = "true", r(!0), qD(n, !0));
|
|
20543
20546
|
}, a = (e) => {
|
|
20544
|
-
t.delete(e), !(!n || t.size > 0) && (delete n.dataset.stackExpanded, r(!1),
|
|
20547
|
+
t.delete(e), !(!n || t.size > 0) && (delete n.dataset.stackExpanded, r(!1), qD(n, !0));
|
|
20545
20548
|
};
|
|
20546
20549
|
return {
|
|
20547
20550
|
props: null,
|
|
@@ -20549,7 +20552,7 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20549
20552
|
init() {
|
|
20550
20553
|
this.props = oe({
|
|
20551
20554
|
el: this.$el,
|
|
20552
|
-
schema:
|
|
20555
|
+
schema: FD,
|
|
20553
20556
|
onChange: () => this.sync()
|
|
20554
20557
|
});
|
|
20555
20558
|
let e = this.$el;
|
|
@@ -20570,7 +20573,7 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20570
20573
|
event: "ui:toast",
|
|
20571
20574
|
handler: (e) => this.add(e instanceof CustomEvent ? e.detail : {}),
|
|
20572
20575
|
cleanup: this.cleanup
|
|
20573
|
-
}), queueMicrotask(() =>
|
|
20576
|
+
}), queueMicrotask(() => YD(e, this.props.maxItems));
|
|
20574
20577
|
},
|
|
20575
20578
|
destroy() {
|
|
20576
20579
|
this.props.disconnect(), this.cleanup.forEach((e) => e()), this.cleanup = [], t.clear(), n = null;
|
|
@@ -20578,76 +20581,76 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20578
20581
|
sync() {
|
|
20579
20582
|
let e = this.$el;
|
|
20580
20583
|
e.id = this.props.id, e.dataset.position = this.props.position, e.dataset.duration = String(this.props.duration), e.dataset.maxItems = String(this.props.maxItems), e.className = Z({
|
|
20581
|
-
part:
|
|
20584
|
+
part: RD.parts.outlet,
|
|
20582
20585
|
props: { position: this.props.position },
|
|
20583
20586
|
className: this.props.class
|
|
20584
|
-
}),
|
|
20587
|
+
}), qD(e), YD(e, this.props.maxItems);
|
|
20585
20588
|
},
|
|
20586
20589
|
add(n) {
|
|
20587
20590
|
let r = typeof n.title == "string" ? n.title : "", i = typeof n.description == "string" ? n.description : "";
|
|
20588
20591
|
if (!r.trim() && !i.trim()) return;
|
|
20589
|
-
let a = this.$el, o =
|
|
20590
|
-
a.prepend(o), e.initTree(o), t.size > 0 && o.dispatchEvent(new CustomEvent("ui:toast-pause-request", { detail: { paused: !0 } })),
|
|
20592
|
+
let a = this.$el, o = $D(n, this.props.duration);
|
|
20593
|
+
a.prepend(o), e.initTree(o), t.size > 0 && o.dispatchEvent(new CustomEvent("ui:toast-pause-request", { detail: { paused: !0 } })), qD(a), YD(a, this.props.maxItems);
|
|
20591
20594
|
}
|
|
20592
20595
|
};
|
|
20593
|
-
},
|
|
20594
|
-
e.data("UiToast", () =>
|
|
20595
|
-
},
|
|
20596
|
+
}, tO = (e) => {
|
|
20597
|
+
e.data("UiToast", () => ZD()), e.data("UiToastOutlet", () => eO(e));
|
|
20598
|
+
}, nO = (e, t) => {
|
|
20596
20599
|
if (!(!e || typeof t.evaluate != "function")) return t.evaluate(e);
|
|
20597
|
-
},
|
|
20600
|
+
}, rO = (e) => {
|
|
20598
20601
|
if (typeof e == "string") return { key: e };
|
|
20599
20602
|
if (typeof e == "object" && e) {
|
|
20600
20603
|
let t = e.key ?? e.id;
|
|
20601
20604
|
return t ? { key: t } : {};
|
|
20602
20605
|
}
|
|
20603
20606
|
return {};
|
|
20604
|
-
},
|
|
20607
|
+
}, iO = (e) => {
|
|
20605
20608
|
e.directive("ui-layout", (e, { expression: t }, n) => {
|
|
20606
20609
|
if (!(e instanceof Element)) return;
|
|
20607
|
-
let r = yp(e, nO(
|
|
20610
|
+
let r = yp(e, rO(nO(t, n)));
|
|
20608
20611
|
n.cleanup?.(() => {
|
|
20609
20612
|
r();
|
|
20610
20613
|
});
|
|
20611
20614
|
});
|
|
20612
|
-
},
|
|
20615
|
+
}, aO = "[x-ui-request], [x-ui-request\\.navigate]", oO = new Set([
|
|
20613
20616
|
"data",
|
|
20614
20617
|
"extra",
|
|
20615
20618
|
"headers",
|
|
20616
20619
|
"method"
|
|
20617
|
-
]),
|
|
20620
|
+
]), sO = [
|
|
20618
20621
|
"altKey",
|
|
20619
20622
|
"ctrlKey",
|
|
20620
20623
|
"metaKey",
|
|
20621
20624
|
"shiftKey"
|
|
20622
|
-
],
|
|
20625
|
+
], cO = /* @__PURE__ */ new WeakSet(), lO = (e, { expression: t }, n) => {
|
|
20623
20626
|
if (!t?.trim()) return {};
|
|
20624
20627
|
let r = n.Alpine.evaluate(e, t);
|
|
20625
20628
|
return fe(r) ? (Object.keys(r).forEach((e) => {
|
|
20626
|
-
|
|
20629
|
+
oO.has(e) || q("x-ui-request: unknown option key", e);
|
|
20627
20630
|
}), r) : (q("x-ui-request: expression must evaluate to an object"), null);
|
|
20628
|
-
},
|
|
20629
|
-
if (t.defaultPrevented || t.button !== 0 || n &&
|
|
20631
|
+
}, uO = (e) => e.submitter instanceof HTMLElement ? e.submitter : null, dO = (e, t, n) => t.defaultPrevented || (n?.getAttribute("formmethod") || e.getAttribute("method"))?.toLowerCase() === "dialog" || e.getAttribute("target") || n?.getAttribute("formtarget") ? !1 : !e.noValidate && !e.checkValidity() ? (e.reportValidity(), !1) : !0, fO = (e) => e.hash !== "" && e.origin === window.location.origin && e.pathname === window.location.pathname && e.search === window.location.search, pO = (e, t, n) => {
|
|
20632
|
+
if (t.defaultPrevented || t.button !== 0 || n && sO.some((e) => t[e]) || e.hasAttribute("download") || e.getAttribute("target")) return !1;
|
|
20630
20633
|
let r = new URL(e.href, document.baseURI);
|
|
20631
|
-
return r.origin === window.location.origin ? !
|
|
20632
|
-
},
|
|
20634
|
+
return r.origin === window.location.origin ? !fO(r) : !1;
|
|
20635
|
+
}, mO = (e, t, n, r) => {
|
|
20633
20636
|
let i = (i) => {
|
|
20634
|
-
if (
|
|
20635
|
-
let a =
|
|
20636
|
-
if (!
|
|
20637
|
-
let o =
|
|
20637
|
+
if (cO.delete(t)) return;
|
|
20638
|
+
let a = uO(i);
|
|
20639
|
+
if (!dO(t, i, a)) return;
|
|
20640
|
+
let o = lO(t, n, r);
|
|
20638
20641
|
o && (i.preventDefault(), nh(e, void 0, {
|
|
20639
20642
|
...o,
|
|
20640
20643
|
source: t,
|
|
20641
20644
|
submitter: a
|
|
20642
20645
|
}).then((e) => {
|
|
20643
|
-
e.type === "unavailable" && (
|
|
20646
|
+
e.type === "unavailable" && (cO.add(t), t.requestSubmit(a ?? void 0));
|
|
20644
20647
|
}).catch((e) => q("x-ui-request: request failed", e)));
|
|
20645
20648
|
};
|
|
20646
20649
|
t.addEventListener("submit", i), r.cleanup?.(() => t.removeEventListener("submit", i));
|
|
20647
|
-
},
|
|
20650
|
+
}, hO = (e, t, n, r, i) => {
|
|
20648
20651
|
let a = (a) => {
|
|
20649
|
-
if (!
|
|
20650
|
-
let o =
|
|
20652
|
+
if (!pO(t, a, i.navigate)) return;
|
|
20653
|
+
let o = lO(t, n, r);
|
|
20651
20654
|
o && (a.preventDefault(), nh(e, t.href, {
|
|
20652
20655
|
...o,
|
|
20653
20656
|
method: o.method ?? "GET",
|
|
@@ -20657,20 +20660,20 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20657
20660
|
}).catch((e) => q("x-ui-request: request failed", e)));
|
|
20658
20661
|
};
|
|
20659
20662
|
t.addEventListener("click", a), r.cleanup?.(() => t.removeEventListener("click", a));
|
|
20660
|
-
},
|
|
20661
|
-
e.addRootSelector(() =>
|
|
20663
|
+
}, gO = (e) => {
|
|
20664
|
+
e.addRootSelector(() => aO), lh(e), e.directive("ui-request", (t, { expression: n, modifiers: r }, i) => {
|
|
20662
20665
|
let a = { expression: n };
|
|
20663
20666
|
if (t instanceof HTMLFormElement) {
|
|
20664
|
-
|
|
20667
|
+
mO(e, t, a, i);
|
|
20665
20668
|
return;
|
|
20666
20669
|
}
|
|
20667
20670
|
if (t instanceof HTMLAnchorElement) {
|
|
20668
|
-
|
|
20671
|
+
hO(e, t, a, i, { navigate: r.includes("navigate") });
|
|
20669
20672
|
return;
|
|
20670
20673
|
}
|
|
20671
20674
|
q("x-ui-request: directive only supports forms and anchors", t);
|
|
20672
20675
|
});
|
|
20673
|
-
},
|
|
20676
|
+
}, _O = (e, t) => {
|
|
20674
20677
|
let n = !0, r = !1, i, a, o = new Promise((e) => {
|
|
20675
20678
|
a = e;
|
|
20676
20679
|
});
|
|
@@ -20681,7 +20684,7 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20681
20684
|
}
|
|
20682
20685
|
a(e);
|
|
20683
20686
|
}, { scope: { $transition: t } }), n = !1, r ? i : o;
|
|
20684
|
-
},
|
|
20687
|
+
}, vO = (e) => {
|
|
20685
20688
|
e.directive("ui-transition", e.skipDuringClone((t, { value: n, expression: r }, i) => {
|
|
20686
20689
|
if (!n) {
|
|
20687
20690
|
q("x-ui-transition requires a transition name", t);
|
|
@@ -20692,38 +20695,38 @@ var sD = ["auto", ...Og], cD = {
|
|
|
20692
20695
|
q(`x-ui-transition:${n} requires an owning Trellis machine`, t);
|
|
20693
20696
|
return;
|
|
20694
20697
|
}
|
|
20695
|
-
let o = r?.trim() ? i.evaluateLater(r) : null, s = a.onTransition(n, (e) => o ?
|
|
20698
|
+
let o = r?.trim() ? i.evaluateLater(r) : null, s = a.onTransition(n, (e) => o ? _O(o, e) : void 0, t);
|
|
20696
20699
|
i.cleanup(s);
|
|
20697
20700
|
}));
|
|
20698
|
-
},
|
|
20699
|
-
function
|
|
20700
|
-
|
|
20701
|
-
var t =
|
|
20701
|
+
}, yO = /* @__PURE__ */ new Map(), bO = /* @__PURE__ */ new Set();
|
|
20702
|
+
function xO(e) {
|
|
20703
|
+
SO(e);
|
|
20704
|
+
var t = yO.get(e);
|
|
20702
20705
|
if (t) return t;
|
|
20703
20706
|
var n = { timeOfEngagementStart: Date.now() };
|
|
20704
|
-
return
|
|
20705
|
-
}
|
|
20706
|
-
function xO(e) {
|
|
20707
|
-
yO.add(e);
|
|
20707
|
+
return yO.set(e, n), n;
|
|
20708
20708
|
}
|
|
20709
20709
|
function SO(e) {
|
|
20710
|
-
|
|
20711
|
-
|
|
20712
|
-
|
|
20710
|
+
bO.add(e);
|
|
20711
|
+
}
|
|
20712
|
+
function CO(e) {
|
|
20713
|
+
bO.clear(), e(), yO.forEach(function(e, t) {
|
|
20714
|
+
bO.has(t) || yO.delete(t);
|
|
20715
|
+
}), bO.clear();
|
|
20713
20716
|
}
|
|
20714
|
-
function
|
|
20715
|
-
|
|
20717
|
+
function wO() {
|
|
20718
|
+
yO.clear();
|
|
20716
20719
|
}
|
|
20717
20720
|
//#endregion
|
|
20718
20721
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/shared/scheduler.js
|
|
20719
|
-
var
|
|
20720
|
-
function
|
|
20721
|
-
var t =
|
|
20722
|
+
var TO = /* @__PURE__ */ new Map();
|
|
20723
|
+
function EO(e) {
|
|
20724
|
+
var t = TO.get(e);
|
|
20722
20725
|
if (t) return t;
|
|
20723
|
-
var n =
|
|
20724
|
-
return
|
|
20726
|
+
var n = DO(e);
|
|
20727
|
+
return TO.set(e, n), n;
|
|
20725
20728
|
}
|
|
20726
|
-
function
|
|
20729
|
+
function DO(e) {
|
|
20727
20730
|
var t = { type: "idle" }, n = [];
|
|
20728
20731
|
function r(e) {
|
|
20729
20732
|
if (t.type === "running") {
|
|
@@ -20731,7 +20734,7 @@ function EO(e) {
|
|
|
20731
20734
|
x: a.location.current.input.clientX,
|
|
20732
20735
|
y: a.location.current.input.clientY
|
|
20733
20736
|
});
|
|
20734
|
-
|
|
20737
|
+
CO(function() {
|
|
20735
20738
|
n.forEach(function(e) {
|
|
20736
20739
|
return e({
|
|
20737
20740
|
underUsersPointer: o,
|
|
@@ -20743,7 +20746,7 @@ function EO(e) {
|
|
|
20743
20746
|
}
|
|
20744
20747
|
}
|
|
20745
20748
|
function i() {
|
|
20746
|
-
t.type !== "idle" && (cancelAnimationFrame(t.frameId),
|
|
20749
|
+
t.type !== "idle" && (cancelAnimationFrame(t.frameId), wO(), t = { type: "idle" });
|
|
20747
20750
|
}
|
|
20748
20751
|
function a(e) {
|
|
20749
20752
|
t.type === "idle" && (t = {
|
|
@@ -20777,15 +20780,15 @@ function EO(e) {
|
|
|
20777
20780
|
}
|
|
20778
20781
|
//#endregion
|
|
20779
20782
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/over-element/data-attributes.js
|
|
20780
|
-
var
|
|
20781
|
-
function
|
|
20782
|
-
return e.setAttribute(
|
|
20783
|
-
return e.removeAttribute(
|
|
20783
|
+
var OO = "data-auto-scrollable", kO = `[${OO}="true"]`;
|
|
20784
|
+
function AO(e) {
|
|
20785
|
+
return e.setAttribute(OO, "true"), function() {
|
|
20786
|
+
return e.removeAttribute(OO);
|
|
20784
20787
|
};
|
|
20785
20788
|
}
|
|
20786
20789
|
//#endregion
|
|
20787
20790
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/shared/configuration.js
|
|
20788
|
-
function
|
|
20791
|
+
function jO(e, t) {
|
|
20789
20792
|
var n = Object.keys(e);
|
|
20790
20793
|
if (Object.getOwnPropertySymbols) {
|
|
20791
20794
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -20795,18 +20798,18 @@ function AO(e, t) {
|
|
|
20795
20798
|
}
|
|
20796
20799
|
return n;
|
|
20797
20800
|
}
|
|
20798
|
-
function
|
|
20801
|
+
function MO(e) {
|
|
20799
20802
|
for (var t = 1; t < arguments.length; t++) {
|
|
20800
20803
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
20801
|
-
t % 2 ?
|
|
20804
|
+
t % 2 ? jO(Object(n), !0).forEach(function(t) {
|
|
20802
20805
|
Tr(e, t, n[t]);
|
|
20803
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
20806
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jO(Object(n)).forEach(function(t) {
|
|
20804
20807
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
20805
20808
|
});
|
|
20806
20809
|
}
|
|
20807
20810
|
return e;
|
|
20808
20811
|
}
|
|
20809
|
-
var
|
|
20812
|
+
var NO = {
|
|
20810
20813
|
startHitboxAtPercentageRemainingOfElement: {
|
|
20811
20814
|
top: .25,
|
|
20812
20815
|
right: .25,
|
|
@@ -20821,16 +20824,16 @@ var MO = {
|
|
|
20821
20824
|
},
|
|
20822
20825
|
timeDampeningDurationMs: 400,
|
|
20823
20826
|
maxMainAxisHitboxSize: 180
|
|
20824
|
-
},
|
|
20827
|
+
}, PO = {
|
|
20825
20828
|
standard: 900,
|
|
20826
20829
|
fast: 1500
|
|
20827
20830
|
};
|
|
20828
|
-
function
|
|
20829
|
-
return
|
|
20831
|
+
function FO(e) {
|
|
20832
|
+
return MO(MO({}, NO), {}, { maxPixelScrollPerSecond: PO[e?.maxScrollSpeed ?? "standard"] });
|
|
20830
20833
|
}
|
|
20831
20834
|
//#endregion
|
|
20832
20835
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/shared/can-scroll-on-edge.js
|
|
20833
|
-
var
|
|
20836
|
+
var IO = {
|
|
20834
20837
|
top: function(e) {
|
|
20835
20838
|
return e.scrollTop > 0;
|
|
20836
20839
|
},
|
|
@@ -20843,36 +20846,36 @@ var FO = {
|
|
|
20843
20846
|
left: function(e) {
|
|
20844
20847
|
return e.scrollLeft > 0;
|
|
20845
20848
|
}
|
|
20846
|
-
},
|
|
20849
|
+
}, LO = [
|
|
20847
20850
|
"top",
|
|
20848
20851
|
"right",
|
|
20849
20852
|
"bottom",
|
|
20850
20853
|
"left"
|
|
20851
|
-
],
|
|
20854
|
+
], RO = {
|
|
20852
20855
|
top: "vertical",
|
|
20853
20856
|
right: "horizontal",
|
|
20854
20857
|
bottom: "vertical",
|
|
20855
20858
|
left: "horizontal"
|
|
20856
|
-
},
|
|
20859
|
+
}, zO = {
|
|
20857
20860
|
start: "top",
|
|
20858
20861
|
end: "bottom",
|
|
20859
20862
|
point: "y",
|
|
20860
20863
|
size: "height"
|
|
20861
|
-
},
|
|
20864
|
+
}, BO = {
|
|
20862
20865
|
start: "left",
|
|
20863
20866
|
end: "right",
|
|
20864
20867
|
point: "x",
|
|
20865
20868
|
size: "width"
|
|
20866
|
-
},
|
|
20869
|
+
}, VO = {
|
|
20867
20870
|
vertical: {
|
|
20868
|
-
mainAxis:
|
|
20869
|
-
crossAxis:
|
|
20871
|
+
mainAxis: zO,
|
|
20872
|
+
crossAxis: BO
|
|
20870
20873
|
},
|
|
20871
20874
|
horizontal: {
|
|
20872
|
-
mainAxis:
|
|
20873
|
-
crossAxis:
|
|
20875
|
+
mainAxis: BO,
|
|
20876
|
+
crossAxis: zO
|
|
20874
20877
|
}
|
|
20875
|
-
},
|
|
20878
|
+
}, HO = {
|
|
20876
20879
|
top: "start",
|
|
20877
20880
|
right: "end",
|
|
20878
20881
|
bottom: "end",
|
|
@@ -20880,34 +20883,34 @@ var FO = {
|
|
|
20880
20883
|
};
|
|
20881
20884
|
//#endregion
|
|
20882
20885
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/shared/get-over-element-hitbox.js
|
|
20883
|
-
function
|
|
20886
|
+
function UO(e) {
|
|
20884
20887
|
var t = e.edge, n = e.axis;
|
|
20885
20888
|
return function(e) {
|
|
20886
|
-
var r = e.clientRect, i = e.config, a =
|
|
20889
|
+
var r = e.clientRect, i = e.config, a = VO[n], o = a.mainAxis, s = a.crossAxis, c = HO[t], l = Math.min(i.startHitboxAtPercentageRemainingOfElement[t] * r[o.size], i.maxMainAxisHitboxSize);
|
|
20887
20890
|
return DOMRect.fromRect(Tr(Tr(Tr(Tr({}, o.point, c === "start" ? r[o.point] : r[o.point] + r[o.size] - l), s.point, r[s.point]), o.size, l), s.size, r[s.size]));
|
|
20888
20891
|
};
|
|
20889
20892
|
}
|
|
20890
|
-
var
|
|
20891
|
-
top:
|
|
20893
|
+
var WO = {
|
|
20894
|
+
top: UO({
|
|
20892
20895
|
axis: "vertical",
|
|
20893
20896
|
edge: "top"
|
|
20894
20897
|
}),
|
|
20895
|
-
right:
|
|
20898
|
+
right: UO({
|
|
20896
20899
|
axis: "horizontal",
|
|
20897
20900
|
edge: "right"
|
|
20898
20901
|
}),
|
|
20899
|
-
bottom:
|
|
20902
|
+
bottom: UO({
|
|
20900
20903
|
axis: "vertical",
|
|
20901
20904
|
edge: "bottom"
|
|
20902
20905
|
}),
|
|
20903
|
-
left:
|
|
20906
|
+
left: UO({
|
|
20904
20907
|
axis: "horizontal",
|
|
20905
20908
|
edge: "left"
|
|
20906
20909
|
})
|
|
20907
20910
|
};
|
|
20908
20911
|
//#endregion
|
|
20909
20912
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/shared/get-percentage-in-range.js
|
|
20910
|
-
function
|
|
20913
|
+
function GO(e) {
|
|
20911
20914
|
var t = e.startOfRange, n = e.endOfRange, r = e.value;
|
|
20912
20915
|
if (!(t < n) || r < t) return 0;
|
|
20913
20916
|
if (r > n) return 1;
|
|
@@ -20916,68 +20919,68 @@ function WO(e) {
|
|
|
20916
20919
|
}
|
|
20917
20920
|
//#endregion
|
|
20918
20921
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/shared/get-scroll-change.js
|
|
20919
|
-
function
|
|
20922
|
+
function KO(e) {
|
|
20920
20923
|
var t = e.timeSinceLastFrame, n = e.config, r = n.maxPixelScrollPerSecond / 1e3, i = Math.ceil(r * t), a = n.maxPixelScrollPerSecond / 60;
|
|
20921
20924
|
return Math.min(i, a);
|
|
20922
20925
|
}
|
|
20923
|
-
function
|
|
20924
|
-
var t = e.client, n = e.axis, r = e.edge, i = e.hitbox, a = e.config, o =
|
|
20925
|
-
return s === "end" ?
|
|
20926
|
+
function qO(e) {
|
|
20927
|
+
var t = e.client, n = e.axis, r = e.edge, i = e.hitbox, a = e.config, o = VO[n].mainAxis, s = HO[r], c = i[o.size] * a.maxScrollAtPercentageRemainingOfHitbox[r];
|
|
20928
|
+
return s === "end" ? GO({
|
|
20926
20929
|
startOfRange: i[o.start],
|
|
20927
20930
|
endOfRange: i[o.end] - c,
|
|
20928
20931
|
value: t[o.point]
|
|
20929
|
-
}) : 1 -
|
|
20932
|
+
}) : 1 - GO({
|
|
20930
20933
|
startOfRange: i[o.start] + c,
|
|
20931
20934
|
endOfRange: i[o.end],
|
|
20932
20935
|
value: t[o.point]
|
|
20933
20936
|
});
|
|
20934
20937
|
}
|
|
20935
|
-
function
|
|
20936
|
-
var t = e.client, n = e.timeSinceLastFrame, r = e.engagement, i = e.axis, a = e.hitbox, o = e.edge, s = e.isDistanceDampeningEnabled, c = e.config, l =
|
|
20938
|
+
function JO(e) {
|
|
20939
|
+
var t = e.client, n = e.timeSinceLastFrame, r = e.engagement, i = e.axis, a = e.hitbox, o = e.edge, s = e.isDistanceDampeningEnabled, c = e.config, l = KO({
|
|
20937
20940
|
timeSinceLastFrame: n,
|
|
20938
20941
|
config: c
|
|
20939
|
-
}), u = (s ?
|
|
20942
|
+
}), u = (s ? qO({
|
|
20940
20943
|
client: t,
|
|
20941
20944
|
edge: o,
|
|
20942
20945
|
hitbox: a,
|
|
20943
20946
|
axis: i,
|
|
20944
20947
|
config: c
|
|
20945
|
-
}) : 1) *
|
|
20948
|
+
}) : 1) * GO({
|
|
20946
20949
|
startOfRange: r.timeOfEngagementStart,
|
|
20947
20950
|
endOfRange: r.timeOfEngagementStart + c.timeDampeningDurationMs,
|
|
20948
20951
|
value: Date.now()
|
|
20949
20952
|
}), d = Math.max(l * u, 1);
|
|
20950
|
-
return
|
|
20953
|
+
return HO[o] === "end" ? d : -1 * d;
|
|
20951
20954
|
}
|
|
20952
20955
|
//#endregion
|
|
20953
20956
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/shared/is-axis-allowed.js
|
|
20954
|
-
function
|
|
20957
|
+
function YO(e, t) {
|
|
20955
20958
|
return t === "all" || e === t;
|
|
20956
20959
|
}
|
|
20957
20960
|
//#endregion
|
|
20958
20961
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/shared/is-within.js
|
|
20959
|
-
function
|
|
20962
|
+
function XO(e) {
|
|
20960
20963
|
var t = e.client, n = e.clientRect;
|
|
20961
20964
|
return t.x >= n.x && t.x <= n.x + n.width && t.y >= n.y && t.y <= n.y + n.height;
|
|
20962
20965
|
}
|
|
20963
20966
|
//#endregion
|
|
20964
20967
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/over-element/get-scroll-by.js
|
|
20965
|
-
function
|
|
20968
|
+
function ZO(e) {
|
|
20966
20969
|
return e.getBoundingClientRect();
|
|
20967
20970
|
}
|
|
20968
|
-
function
|
|
20969
|
-
var t = e.element, n = e.input, r = e.timeSinceLastFrame, i = e.engagement, a = e.config, o = e.allowedAxis, s = e.getRect, c = s === void 0 ?
|
|
20971
|
+
function QO(e) {
|
|
20972
|
+
var t = e.element, n = e.input, r = e.timeSinceLastFrame, i = e.engagement, a = e.config, o = e.allowedAxis, s = e.getRect, c = s === void 0 ? ZO : s, l = {
|
|
20970
20973
|
x: n.clientX,
|
|
20971
20974
|
y: n.clientY
|
|
20972
|
-
}, u = c(t), d =
|
|
20973
|
-
var r =
|
|
20975
|
+
}, u = c(t), d = LO.reduce(function(e, n) {
|
|
20976
|
+
var r = WO[n]({
|
|
20974
20977
|
clientRect: u,
|
|
20975
20978
|
config: a
|
|
20976
|
-
}), i =
|
|
20977
|
-
return !
|
|
20979
|
+
}), i = RO[n];
|
|
20980
|
+
return !YO(i, o) || !XO({
|
|
20978
20981
|
client: l,
|
|
20979
20982
|
clientRect: r
|
|
20980
|
-
}) || !
|
|
20983
|
+
}) || !IO[n](t) || e.set(n, {
|
|
20981
20984
|
edge: n,
|
|
20982
20985
|
hitbox: r
|
|
20983
20986
|
}), e;
|
|
@@ -20985,7 +20988,7 @@ function ZO(e) {
|
|
|
20985
20988
|
return {
|
|
20986
20989
|
left: function() {
|
|
20987
20990
|
var e = "horizontal", t = d.get("left");
|
|
20988
|
-
if (t) return
|
|
20991
|
+
if (t) return JO({
|
|
20989
20992
|
client: l,
|
|
20990
20993
|
edge: t.edge,
|
|
20991
20994
|
hitbox: t.hitbox,
|
|
@@ -20996,7 +20999,7 @@ function ZO(e) {
|
|
|
20996
20999
|
config: a
|
|
20997
21000
|
});
|
|
20998
21001
|
var n = d.get("right");
|
|
20999
|
-
return n ?
|
|
21002
|
+
return n ? JO({
|
|
21000
21003
|
client: l,
|
|
21001
21004
|
edge: n.edge,
|
|
21002
21005
|
hitbox: n.hitbox,
|
|
@@ -21009,7 +21012,7 @@ function ZO(e) {
|
|
|
21009
21012
|
}(),
|
|
21010
21013
|
top: function() {
|
|
21011
21014
|
var e = "vertical", t = d.get("bottom");
|
|
21012
|
-
if (t) return
|
|
21015
|
+
if (t) return JO({
|
|
21013
21016
|
client: l,
|
|
21014
21017
|
edge: t.edge,
|
|
21015
21018
|
hitbox: t.hitbox,
|
|
@@ -21020,7 +21023,7 @@ function ZO(e) {
|
|
|
21020
21023
|
config: a
|
|
21021
21024
|
});
|
|
21022
21025
|
var n = d.get("top");
|
|
21023
|
-
return n ?
|
|
21026
|
+
return n ? JO({
|
|
21024
21027
|
client: l,
|
|
21025
21028
|
edge: n.edge,
|
|
21026
21029
|
hitbox: n.hitbox,
|
|
@@ -21035,10 +21038,10 @@ function ZO(e) {
|
|
|
21035
21038
|
}
|
|
21036
21039
|
//#endregion
|
|
21037
21040
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/over-element/try-scroll.js
|
|
21038
|
-
function
|
|
21041
|
+
function $O(e, t) {
|
|
21039
21042
|
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
21040
21043
|
if (!n) {
|
|
21041
|
-
if (Array.isArray(e) || (n =
|
|
21044
|
+
if (Array.isArray(e) || (n = ek(e)) || t && e && typeof e.length == "number") {
|
|
21042
21045
|
n && (e = n);
|
|
21043
21046
|
var r = 0, i = function() {};
|
|
21044
21047
|
return {
|
|
@@ -21078,33 +21081,33 @@ function QO(e, t) {
|
|
|
21078
21081
|
}
|
|
21079
21082
|
};
|
|
21080
21083
|
}
|
|
21081
|
-
function
|
|
21084
|
+
function ek(e, t) {
|
|
21082
21085
|
if (e) {
|
|
21083
|
-
if (typeof e == "string") return
|
|
21086
|
+
if (typeof e == "string") return tk(e, t);
|
|
21084
21087
|
var n = {}.toString.call(e).slice(8, -1);
|
|
21085
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
21088
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? tk(e, t) : void 0;
|
|
21086
21089
|
}
|
|
21087
21090
|
}
|
|
21088
|
-
function
|
|
21091
|
+
function tk(e, t) {
|
|
21089
21092
|
(t == null || t > e.length) && (t = e.length);
|
|
21090
21093
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
21091
21094
|
return r;
|
|
21092
21095
|
}
|
|
21093
|
-
function
|
|
21096
|
+
function nk(e) {
|
|
21094
21097
|
return !!(e.top || e.left);
|
|
21095
21098
|
}
|
|
21096
|
-
function
|
|
21099
|
+
function rk(e) {
|
|
21097
21100
|
var t = e.target, n = e.input, r = e.source, i = e.findEntry, a = e.timeSinceLastFrame, o = e.available, s = o === void 0 ? {
|
|
21098
21101
|
top: !0,
|
|
21099
21102
|
left: !0
|
|
21100
21103
|
} : o;
|
|
21101
|
-
if (!
|
|
21102
|
-
var c = t.closest(
|
|
21104
|
+
if (!nk(s) || !t) return s;
|
|
21105
|
+
var c = t.closest(kO);
|
|
21103
21106
|
if (!c) return s;
|
|
21104
21107
|
var l = i(c);
|
|
21105
21108
|
if (!l) return s;
|
|
21106
21109
|
function u() {
|
|
21107
|
-
return
|
|
21110
|
+
return rk({
|
|
21108
21111
|
target: c?.parentElement ?? null,
|
|
21109
21112
|
findEntry: i,
|
|
21110
21113
|
source: r,
|
|
@@ -21119,7 +21122,7 @@ function nk(e) {
|
|
|
21119
21122
|
element: c
|
|
21120
21123
|
};
|
|
21121
21124
|
if (l.canScroll && !l.canScroll(d)) return u();
|
|
21122
|
-
var f =
|
|
21125
|
+
var f = xO(c), p = FO(l.getConfiguration?.call(l, d)), m = QO({
|
|
21123
21126
|
element: c,
|
|
21124
21127
|
engagement: f,
|
|
21125
21128
|
input: n,
|
|
@@ -21132,21 +21135,21 @@ function nk(e) {
|
|
|
21132
21135
|
};
|
|
21133
21136
|
return s.top && m.top !== 0 && (h.top = m.top, s.top = !1), s.left && m.left !== 0 && (h.left = m.left, s.left = !1), (h.top !== 0 || h.left !== 0) && c.scrollBy(h), u();
|
|
21134
21137
|
}
|
|
21135
|
-
function
|
|
21138
|
+
function ik(e) {
|
|
21136
21139
|
var t = e.input, n = e.timeSinceLastFrame, r = e.available, i = e.source, a = e.entries, o = document.documentElement, s = {
|
|
21137
21140
|
input: t,
|
|
21138
21141
|
source: i,
|
|
21139
21142
|
element: o
|
|
21140
|
-
}, c =
|
|
21143
|
+
}, c = $O(a), l;
|
|
21141
21144
|
try {
|
|
21142
21145
|
for (c.s(); !(l = c.n()).done;) {
|
|
21143
21146
|
var u = l.value;
|
|
21144
21147
|
if (!(u.canScroll && !u.canScroll(s))) {
|
|
21145
|
-
var d =
|
|
21148
|
+
var d = QO({
|
|
21146
21149
|
element: o,
|
|
21147
|
-
engagement:
|
|
21150
|
+
engagement: xO(o),
|
|
21148
21151
|
input: t,
|
|
21149
|
-
config:
|
|
21152
|
+
config: FO(u.getConfiguration?.call(u, s)),
|
|
21150
21153
|
allowedAxis: u.getAllowedAxis?.call(u, s) ?? "all",
|
|
21151
21154
|
getRect: function(e) {
|
|
21152
21155
|
return DOMRect.fromRect({
|
|
@@ -21171,15 +21174,15 @@ function rk(e) {
|
|
|
21171
21174
|
c.f();
|
|
21172
21175
|
}
|
|
21173
21176
|
}
|
|
21174
|
-
function
|
|
21175
|
-
var t = e.input, n = e.findEntry, r = e.timeSinceLastFrame, i = e.source, a = e.getWindowScrollEntries, o = e.underUsersPointer, s =
|
|
21177
|
+
function ak(e) {
|
|
21178
|
+
var t = e.input, n = e.findEntry, r = e.timeSinceLastFrame, i = e.source, a = e.getWindowScrollEntries, o = e.underUsersPointer, s = rk({
|
|
21176
21179
|
target: o,
|
|
21177
21180
|
timeSinceLastFrame: r,
|
|
21178
21181
|
input: t,
|
|
21179
21182
|
source: i,
|
|
21180
21183
|
findEntry: n
|
|
21181
21184
|
});
|
|
21182
|
-
|
|
21185
|
+
nk(s) && ik({
|
|
21183
21186
|
input: t,
|
|
21184
21187
|
source: i,
|
|
21185
21188
|
entries: a(),
|
|
@@ -21189,7 +21192,7 @@ function ik(e) {
|
|
|
21189
21192
|
}
|
|
21190
21193
|
//#endregion
|
|
21191
21194
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/over-element/make-api.js
|
|
21192
|
-
function
|
|
21195
|
+
function ok(e, t) {
|
|
21193
21196
|
var n = Object.keys(e);
|
|
21194
21197
|
if (Object.getOwnPropertySymbols) {
|
|
21195
21198
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -21199,26 +21202,26 @@ function ak(e, t) {
|
|
|
21199
21202
|
}
|
|
21200
21203
|
return n;
|
|
21201
21204
|
}
|
|
21202
|
-
function
|
|
21205
|
+
function sk(e) {
|
|
21203
21206
|
for (var t = 1; t < arguments.length; t++) {
|
|
21204
21207
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
21205
|
-
t % 2 ?
|
|
21208
|
+
t % 2 ? ok(Object(n), !0).forEach(function(t) {
|
|
21206
21209
|
Tr(e, t, n[t]);
|
|
21207
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
21210
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ok(Object(n)).forEach(function(t) {
|
|
21208
21211
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
21209
21212
|
});
|
|
21210
21213
|
}
|
|
21211
21214
|
return e;
|
|
21212
21215
|
}
|
|
21213
|
-
function
|
|
21216
|
+
function ck(e) {
|
|
21214
21217
|
var t = e.monitor, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set();
|
|
21215
21218
|
function i(e) {
|
|
21216
|
-
return n.set(e.element, e), Or(_i(
|
|
21219
|
+
return n.set(e.element, e), Or(_i(AO(e.element), function() {
|
|
21217
21220
|
return n.delete(e.element);
|
|
21218
21221
|
}));
|
|
21219
21222
|
}
|
|
21220
21223
|
function a() {
|
|
21221
|
-
var e =
|
|
21224
|
+
var e = sk({}, arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {});
|
|
21222
21225
|
r.add(e);
|
|
21223
21226
|
function t() {
|
|
21224
21227
|
r.delete(e);
|
|
@@ -21233,7 +21236,7 @@ function sk(e) {
|
|
|
21233
21236
|
}
|
|
21234
21237
|
function c(e) {
|
|
21235
21238
|
var t = e.latestArgs, n = e.underUsersPointer, r = e.timeSinceLastFrame;
|
|
21236
|
-
|
|
21239
|
+
ak({
|
|
21237
21240
|
input: t.location.current.input,
|
|
21238
21241
|
source: t.source,
|
|
21239
21242
|
findEntry: o,
|
|
@@ -21242,57 +21245,57 @@ function sk(e) {
|
|
|
21242
21245
|
getWindowScrollEntries: s
|
|
21243
21246
|
});
|
|
21244
21247
|
}
|
|
21245
|
-
return
|
|
21248
|
+
return EO(t).onFrame(c), {
|
|
21246
21249
|
autoScroll: i,
|
|
21247
21250
|
autoScrollWindow: a
|
|
21248
21251
|
};
|
|
21249
21252
|
}
|
|
21250
21253
|
//#endregion
|
|
21251
21254
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop-auto-scroll@3.0.0/node_modules/@atlaskit/pragmatic-drag-and-drop-auto-scroll/dist/esm/entry-point/element.js
|
|
21252
|
-
var
|
|
21255
|
+
var lk = ck({ monitor: Hi }), uk = lk.autoScroll, dk = lk.autoScrollWindow;
|
|
21253
21256
|
//#endregion
|
|
21254
21257
|
//#region node_modules/.pnpm/@atlaskit+pragmatic-drag-and-drop@2.0.1/node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/prevent-unhandled.js
|
|
21255
|
-
function
|
|
21258
|
+
function fk(e) {
|
|
21256
21259
|
e.defaultPrevented || (e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.preventDefault());
|
|
21257
21260
|
}
|
|
21258
|
-
var
|
|
21259
|
-
function
|
|
21260
|
-
|
|
21261
|
+
var pk = null;
|
|
21262
|
+
function mk() {
|
|
21263
|
+
hk(), pk = (0, vr.bindAll)(window, [
|
|
21261
21264
|
{
|
|
21262
21265
|
type: "dragover",
|
|
21263
|
-
listener:
|
|
21266
|
+
listener: fk
|
|
21264
21267
|
},
|
|
21265
21268
|
{
|
|
21266
21269
|
type: "dragenter",
|
|
21267
|
-
listener:
|
|
21270
|
+
listener: fk
|
|
21268
21271
|
},
|
|
21269
21272
|
{
|
|
21270
21273
|
type: "drop",
|
|
21271
21274
|
listener: function(e) {
|
|
21272
|
-
e.preventDefault(),
|
|
21275
|
+
e.preventDefault(), hk();
|
|
21273
21276
|
}
|
|
21274
21277
|
},
|
|
21275
21278
|
{
|
|
21276
21279
|
type: "dragend",
|
|
21277
|
-
listener:
|
|
21280
|
+
listener: hk
|
|
21278
21281
|
}
|
|
21279
|
-
].concat(Kr(ti({ onDragEnd:
|
|
21282
|
+
].concat(Kr(ti({ onDragEnd: hk }))), { capture: !1 });
|
|
21280
21283
|
}
|
|
21281
|
-
function
|
|
21284
|
+
function hk() {
|
|
21282
21285
|
var e;
|
|
21283
|
-
(e =
|
|
21286
|
+
(e = pk) == null || e(), pk = null;
|
|
21284
21287
|
}
|
|
21285
|
-
function
|
|
21288
|
+
function gk() {
|
|
21286
21289
|
if (window.event?.type === "drop") {
|
|
21287
21290
|
var e;
|
|
21288
21291
|
(e = window.event) == null || e.preventDefault();
|
|
21289
21292
|
}
|
|
21290
|
-
|
|
21293
|
+
hk();
|
|
21291
21294
|
}
|
|
21292
|
-
var
|
|
21293
|
-
start:
|
|
21294
|
-
stop:
|
|
21295
|
-
},
|
|
21295
|
+
var _k = {
|
|
21296
|
+
start: mk,
|
|
21297
|
+
stop: gk
|
|
21298
|
+
}, vk = "[data-ui-sortable]", yk = "[data-ui-sortable-item]", bk = "[data-ui-sortable-source]", xk = "[x-ui-sortable\\:handle], [data-ui-sortable-handle]", Sk = "[x-ui-sortable\\:preview], [data-ui-sortable-preview]", Ck = "[x-ui-sortable\\:indicator], [data-ui-sortable-indicator]", wk = "ui-sortable", Tk = 2, Ek = "a, button, input, select, textarea, summary, [contenteditable], [role=\"button\"], [role=\"link\"]", Dk = {
|
|
21296
21299
|
sortableScope: R.trim,
|
|
21297
21300
|
sortableId: R.trim,
|
|
21298
21301
|
orientation: V([
|
|
@@ -21310,7 +21313,7 @@ var gk = {
|
|
|
21310
21313
|
dragCursor: R.trim.default("default"),
|
|
21311
21314
|
label: R.trim,
|
|
21312
21315
|
sortableData: se.object({})
|
|
21313
|
-
},
|
|
21316
|
+
}, Ok = {
|
|
21314
21317
|
sortableScope: R.trim,
|
|
21315
21318
|
sortableId: R.trim,
|
|
21316
21319
|
sortableType: R.trim,
|
|
@@ -21320,7 +21323,7 @@ var gk = {
|
|
|
21320
21323
|
sourceOpacity: z.clamp(0, 1).default(.4),
|
|
21321
21324
|
ghostOpacity: z.clamp(0, 1).default(.92),
|
|
21322
21325
|
dragCursor: R.trim.default("default")
|
|
21323
|
-
},
|
|
21326
|
+
}, kk = [
|
|
21324
21327
|
J({
|
|
21325
21328
|
name: "starting",
|
|
21326
21329
|
state: "interaction.starting",
|
|
@@ -21342,7 +21345,7 @@ var gk = {
|
|
|
21342
21345
|
onDone: "ENDING_DONE",
|
|
21343
21346
|
onError: "ENDING_DONE"
|
|
21344
21347
|
})
|
|
21345
|
-
],
|
|
21348
|
+
], Ak = /* @__PURE__ */ new WeakMap(), jk = /* @__PURE__ */ new Set(), Mk = /* @__PURE__ */ new WeakMap(), $ = null, Nk = (e, t) => e.closest(t), Pk = (e) => [...e.querySelectorAll(yk)].filter((t) => Nk(t.parentElement ?? t, vk) === e), Fk = (e) => {
|
|
21346
21349
|
let t = e.group();
|
|
21347
21350
|
return {
|
|
21348
21351
|
controller: e,
|
|
@@ -21352,13 +21355,13 @@ var gk = {
|
|
|
21352
21355
|
direction: getComputedStyle(e.el).direction === "rtl" ? "rtl" : "ltr",
|
|
21353
21356
|
columns: t.columns,
|
|
21354
21357
|
groupRect: e.el.getBoundingClientRect(),
|
|
21355
|
-
items:
|
|
21358
|
+
items: Pk(e.el).map((e) => ({
|
|
21356
21359
|
id: e.dataset.sortableId ?? "",
|
|
21357
21360
|
rect: e.getBoundingClientRect()
|
|
21358
21361
|
}))
|
|
21359
21362
|
}
|
|
21360
21363
|
};
|
|
21361
|
-
},
|
|
21364
|
+
}, Ik = (e) => {
|
|
21362
21365
|
let t = e.controller.group(), n = e.controller.el.getBoundingClientRect(), r = n.left - e.layout.groupRect.left, i = n.top - e.layout.groupRect.top, a = (e) => ({
|
|
21363
21366
|
left: e.left + r,
|
|
21364
21367
|
right: e.right + r,
|
|
@@ -21377,42 +21380,42 @@ var gk = {
|
|
|
21377
21380
|
rect: a(e.rect)
|
|
21378
21381
|
}))
|
|
21379
21382
|
};
|
|
21380
|
-
},
|
|
21383
|
+
}, Lk = (e, t, n) => {
|
|
21381
21384
|
if (t.target === n) return null;
|
|
21382
21385
|
t.target = n;
|
|
21383
21386
|
let r = Ep(e).animate({ translate: n || "none" }).speed("moderate").transition({ ease: Ep.easings.inOut }).play();
|
|
21384
21387
|
return t.handle = r, r.finished.then(() => {
|
|
21385
21388
|
t.handle === r && (t.handle = null, e.style.translate = t.target);
|
|
21386
21389
|
}), r;
|
|
21387
|
-
},
|
|
21390
|
+
}, Rk = () => {
|
|
21388
21391
|
let e = $;
|
|
21389
21392
|
if (!e) return;
|
|
21390
21393
|
let t = [...e.projections.keys()];
|
|
21391
21394
|
e.projections.forEach((t, n) => {
|
|
21392
21395
|
t.handle = null, n.style.translate = t.target, t.target === t.baseline && (n.removeAttribute("data-reordering"), e.projections.delete(n));
|
|
21393
21396
|
}), t.forEach((e) => e.getBoundingClientRect());
|
|
21394
|
-
},
|
|
21397
|
+
}, zk = (e = !1) => {
|
|
21395
21398
|
let t = $;
|
|
21396
21399
|
if (!t) return [];
|
|
21397
21400
|
let n = [];
|
|
21398
21401
|
return t.projections.forEach((t, r) => {
|
|
21399
21402
|
if (e) t.handle?.stop(), r.style.translate = t.baseline;
|
|
21400
21403
|
else {
|
|
21401
|
-
let e =
|
|
21404
|
+
let e = Lk(r, t, t.baseline);
|
|
21402
21405
|
e && n.push(e);
|
|
21403
21406
|
}
|
|
21404
21407
|
r.removeAttribute("data-reordering");
|
|
21405
|
-
}), e && t.projections.clear(),
|
|
21406
|
-
},
|
|
21407
|
-
|
|
21408
|
+
}), e && t.projections.clear(), jk.forEach(({ el: e }) => e.removeAttribute("data-reordering")), n;
|
|
21409
|
+
}, Bk = (e = null) => {
|
|
21410
|
+
jk.forEach(({ el: t }) => {
|
|
21408
21411
|
t !== e && t.removeAttribute("data-drag-rejected");
|
|
21409
21412
|
});
|
|
21410
|
-
},
|
|
21413
|
+
}, Vk = (e) => {
|
|
21411
21414
|
let t = $;
|
|
21412
21415
|
if (!t) return [];
|
|
21413
21416
|
let n = [], r = /* @__PURE__ */ new Map();
|
|
21414
21417
|
e.forEach(({ groupId: e, id: n, x: i, y: a }) => {
|
|
21415
|
-
let o = t.layouts.get(e), s = o &&
|
|
21418
|
+
let o = t.layouts.get(e), s = o && Pk(o.controller.el).find((e) => e.dataset.sortableId === n);
|
|
21416
21419
|
s && r.set(s, {
|
|
21417
21420
|
x: i,
|
|
21418
21421
|
y: a,
|
|
@@ -21420,7 +21423,7 @@ var gk = {
|
|
|
21420
21423
|
});
|
|
21421
21424
|
}), t.projections.forEach((e, t) => {
|
|
21422
21425
|
if (r.has(t)) return;
|
|
21423
|
-
let i =
|
|
21426
|
+
let i = Lk(t, e, e.baseline);
|
|
21424
21427
|
i && n.push(i), t.removeAttribute("data-reordering");
|
|
21425
21428
|
});
|
|
21426
21429
|
let i = /* @__PURE__ */ new Set();
|
|
@@ -21431,10 +21434,10 @@ var gk = {
|
|
|
21431
21434
|
target: o.style.translate,
|
|
21432
21435
|
handle: null
|
|
21433
21436
|
}, t.projections.set(o, s));
|
|
21434
|
-
let c = `${e}px ${r}px`, l =
|
|
21437
|
+
let c = `${e}px ${r}px`, l = Lk(o, s, c);
|
|
21435
21438
|
l && n.push(l), o.setAttribute("data-reordering", ""), i.add(a);
|
|
21436
|
-
}),
|
|
21437
|
-
},
|
|
21439
|
+
}), jk.forEach((e) => e.el.toggleAttribute("data-reordering", i.has(e))), n;
|
|
21440
|
+
}, Hk = (e, t, n, r = null) => {
|
|
21438
21441
|
let i = e.indicator();
|
|
21439
21442
|
if (!i) return;
|
|
21440
21443
|
if (!t || !r) {
|
|
@@ -21449,36 +21452,36 @@ var gk = {
|
|
|
21449
21452
|
let a = t.anchor?.edge ?? "empty", o = i.offsetParent, s = o instanceof Element ? o.getBoundingClientRect() : {
|
|
21450
21453
|
left: -window.scrollX,
|
|
21451
21454
|
top: -window.scrollY
|
|
21452
|
-
}, c = o instanceof HTMLElement ? o.scrollLeft : 0, l = o instanceof HTMLElement ? o.scrollTop : 0, u = r.kind === "inline-boundary", d = r.kind === "block-boundary", f = r.x - s.left + c - (u ?
|
|
21455
|
+
}, c = o instanceof HTMLElement ? o.scrollLeft : 0, l = o instanceof HTMLElement ? o.scrollTop : 0, u = r.kind === "inline-boundary", d = r.kind === "block-boundary", f = r.x - s.left + c - (u ? Tk / 2 : 0), p = r.y - s.top + l - (d ? Tk / 2 : 0);
|
|
21453
21456
|
Object.assign(i.style, {
|
|
21454
21457
|
transform: `translate3d(${f}px, ${p}px, 0)`,
|
|
21455
|
-
width: `${u ?
|
|
21456
|
-
height: `${d ?
|
|
21458
|
+
width: `${u ? Tk : r.width}px`,
|
|
21459
|
+
height: `${d ? Tk : r.height}px`,
|
|
21457
21460
|
pointerEvents: "none",
|
|
21458
21461
|
zIndex: "2147483646"
|
|
21459
21462
|
}), i.dataset.orientation = e.group().orientation, i.dataset.edge = a, i.dataset.operation = n ?? "", i.dataset.indicatorKind = r.kind;
|
|
21460
|
-
},
|
|
21461
|
-
$?.group && ($.group.el.removeAttribute("data-drag-over"), $.group.el.removeAttribute("data-drop-edge"), $.group.el.removeAttribute("data-drop-effect"), $.group.el.removeAttribute("data-drop-noop"), $.group.el.removeAttribute("data-placing"),
|
|
21462
|
-
},
|
|
21463
|
+
}, Uk = () => {
|
|
21464
|
+
$?.group && ($.group.el.removeAttribute("data-drag-over"), $.group.el.removeAttribute("data-drop-edge"), $.group.el.removeAttribute("data-drop-effect"), $.group.el.removeAttribute("data-drop-noop"), $.group.el.removeAttribute("data-placing"), Hk($.group, null), $.group = null);
|
|
21465
|
+
}, Wk = (e = !1) => {
|
|
21463
21466
|
if (!$) return [];
|
|
21464
|
-
let t =
|
|
21465
|
-
return
|
|
21466
|
-
},
|
|
21467
|
+
let t = zk(e);
|
|
21468
|
+
return Uk(), $.placement = null, t;
|
|
21469
|
+
}, Gk = (e, t = "outside") => {
|
|
21467
21470
|
let n = $;
|
|
21468
21471
|
if (!n) return;
|
|
21469
|
-
|
|
21472
|
+
_k.stop();
|
|
21470
21473
|
let r = n.placement, i = n.source.groupId === null ? null : n.layouts.get(n.source.groupId) ?? null, a = r ? n.layouts.get(r.destination.groupId) ?? null : null, o = e === "drop" && r && a ? pa({
|
|
21471
21474
|
source: n.source,
|
|
21472
21475
|
placement: r,
|
|
21473
|
-
sourceLayout: i ?
|
|
21474
|
-
destinationLayout:
|
|
21476
|
+
sourceLayout: i ? Ik(i) : null,
|
|
21477
|
+
destinationLayout: Ik(a)
|
|
21475
21478
|
}) : null, s = o ? {
|
|
21476
21479
|
x: o.left,
|
|
21477
21480
|
y: o.top,
|
|
21478
21481
|
width: o.width,
|
|
21479
21482
|
height: o.height
|
|
21480
21483
|
} : kp(n.controller.el.getBoundingClientRect());
|
|
21481
|
-
|
|
21484
|
+
Wk(!0), $ = null, n.controller.el.removeAttribute("data-dragging"), n.controller.el.removeAttribute("data-drag-operation"), n.controller.el.removeAttribute("data-sortable-phase"), n.controller.restoreAppearance(), n.restoreCursor(), Bk(), e === "cancel" && H({
|
|
21482
21485
|
el: n.controller.el,
|
|
21483
21486
|
name: "ui:sortable-cancel",
|
|
21484
21487
|
composed: !0,
|
|
@@ -21503,11 +21506,11 @@ var gk = {
|
|
|
21503
21506
|
toTransform: s ? `translate3d(${s.x}px, ${s.y}px, 0)` : n.ghost.positioner.style.transform
|
|
21504
21507
|
}
|
|
21505
21508
|
});
|
|
21506
|
-
},
|
|
21509
|
+
}, Kk = (e, t) => {
|
|
21507
21510
|
if (!$) return;
|
|
21508
21511
|
let n = $.placement, r = $.group !== e;
|
|
21509
|
-
r &&
|
|
21510
|
-
let i = e.group(), a = $.source.operation === "insert" ? "indicator" : i.feedback, o =
|
|
21512
|
+
r && Uk();
|
|
21513
|
+
let i = e.group(), a = $.source.operation === "insert" ? "indicator" : i.feedback, o = Fk(e).layout, s = o.items, c = s.map(({ id: e }) => e), l = $.source.id, u = a === "reorder" && i.id === $.source.groupId ? s.filter(({ id: e }) => e !== l) : s, d = {
|
|
21511
21514
|
groupId: i.id,
|
|
21512
21515
|
orientation: i.orientation,
|
|
21513
21516
|
direction: o.direction,
|
|
@@ -21533,8 +21536,8 @@ var gk = {
|
|
|
21533
21536
|
let _ = $.source.groupId === null ? null : $.layouts.get($.source.groupId) ?? null, v = $.layouts.get(i.id), y = Up.isNoop($.source, g), b = a === "reorder" && !y ? ma({
|
|
21534
21537
|
source: $.source,
|
|
21535
21538
|
placement: g,
|
|
21536
|
-
sourceLayout: _ ?
|
|
21537
|
-
destinationLayout: v ?
|
|
21539
|
+
sourceLayout: _ ? Ik(_) : null,
|
|
21540
|
+
destinationLayout: v ? Ik(v) : null
|
|
21538
21541
|
}) : [];
|
|
21539
21542
|
$.group = e, $.placement = g, e.el.setAttribute("data-drag-over", ""), e.el.dataset.dropEdge = g.anchor?.edge ?? "empty", e.el.dataset.dropEffect = $.source.operation === "insert" ? "copy" : "move", e.el.toggleAttribute("data-drop-noop", y), H({
|
|
21540
21543
|
el: e.el,
|
|
@@ -21557,25 +21560,25 @@ var gk = {
|
|
|
21557
21560
|
noop: y
|
|
21558
21561
|
}
|
|
21559
21562
|
});
|
|
21560
|
-
},
|
|
21563
|
+
}, qk = (e) => {
|
|
21561
21564
|
let t = $;
|
|
21562
21565
|
if (!t?.group || !Zi(t.placement, e.placement)) return;
|
|
21563
21566
|
t.controller.el.dataset.sortablePhase = "placing", t.group.el.setAttribute("data-placing", "");
|
|
21564
|
-
let n = e.feedback === "reorder" && !e.noop ?
|
|
21565
|
-
e.feedback === "reorder" && !e.noop ?
|
|
21567
|
+
let n = e.feedback === "reorder" && !e.noop ? Vk(e.offsets) : zk();
|
|
21568
|
+
e.feedback === "reorder" && !e.noop ? Hk(t.group, null) : Hk(t.group, e.noop ? null : e.placement, t.source.operation, e.indicatorFrame);
|
|
21566
21569
|
let r = () => {
|
|
21567
|
-
$ === t &&
|
|
21570
|
+
$ === t && Rk();
|
|
21568
21571
|
};
|
|
21569
21572
|
if (n.length === 0) {
|
|
21570
21573
|
r();
|
|
21571
21574
|
return;
|
|
21572
21575
|
}
|
|
21573
21576
|
return Promise.allSettled(n.map(({ finished: e }) => e)).then(r);
|
|
21574
|
-
},
|
|
21577
|
+
}, Jk = (e, t) => {
|
|
21575
21578
|
e.setAttribute("data-ui-sortable", ""), vh(e, "data-ui-sortable");
|
|
21576
21579
|
let n = () => void 0, r = oe({
|
|
21577
21580
|
el: e,
|
|
21578
|
-
schema:
|
|
21581
|
+
schema: Dk,
|
|
21579
21582
|
onChange: () => n()
|
|
21580
21583
|
}), i = {
|
|
21581
21584
|
el: e,
|
|
@@ -21594,24 +21597,24 @@ var gk = {
|
|
|
21594
21597
|
dragCursor: r.dragCursor,
|
|
21595
21598
|
...Object.keys(r.sortableData).length ? { data: Object.freeze({ ...r.sortableData }) } : {}
|
|
21596
21599
|
}),
|
|
21597
|
-
itemIds: () =>
|
|
21598
|
-
indicator: () => [...e.querySelectorAll(
|
|
21600
|
+
itemIds: () => Pk(e).map((e) => e.dataset.sortableId ?? "").filter(Boolean),
|
|
21601
|
+
indicator: () => [...e.querySelectorAll(Ck)].find((t) => Nk(t.parentElement ?? t, vk) === e) ?? null,
|
|
21599
21602
|
refresh: () => n()
|
|
21600
21603
|
};
|
|
21601
|
-
(!r.sortableScope || !r.sortableId || r.accepts.length === 0) && q("Invalid sortable group props", e), r.orientation === "grid" && !Yi(r.columns) && q("Grid sortable groups require positive data-columns", e),
|
|
21604
|
+
(!r.sortableScope || !r.sortableId || r.accepts.length === 0) && q("Invalid sortable group props", e), r.orientation === "grid" && !Yi(r.columns) && q("Grid sortable groups require positive data-columns", e), Ak.set(e, i), jk.add(i);
|
|
21602
21605
|
let a = Up.registerGroup({
|
|
21603
21606
|
element: e,
|
|
21604
21607
|
getGroup: i.group,
|
|
21605
21608
|
getItemIds: i.itemIds,
|
|
21606
|
-
canDrop: (t) =>
|
|
21609
|
+
canDrop: (t) => Mk.get(e)?.(t) !== !1
|
|
21607
21610
|
});
|
|
21608
21611
|
n = () => {
|
|
21609
|
-
$?.group === i &&
|
|
21612
|
+
$?.group === i && Gk("cancel", "removed"), a.refresh();
|
|
21610
21613
|
};
|
|
21611
21614
|
let o = kn(e, { invalidateDom: i.refresh }), s = Vi({
|
|
21612
21615
|
element: e,
|
|
21613
21616
|
canDrop: ({ source: t, input: n }) => {
|
|
21614
|
-
let r = $, a = t.data.marker ===
|
|
21617
|
+
let r = $, a = t.data.marker === wk && r !== null, o = a && Up.canDrop(r.source, i.group().id, {
|
|
21615
21618
|
clientX: n.clientX,
|
|
21616
21619
|
clientY: n.clientY
|
|
21617
21620
|
});
|
|
@@ -21621,18 +21624,18 @@ var gk = {
|
|
|
21621
21624
|
onDrop: () => {
|
|
21622
21625
|
if (!$ || $.group !== i || !$.placement) return;
|
|
21623
21626
|
let e = Up.emitDrop($.source, $.placement, $.input), t = i.group();
|
|
21624
|
-
|
|
21627
|
+
Gk(e ? "drop" : "cancel", t.disabled || t.readOnly ? "disabled" : "outside");
|
|
21625
21628
|
}
|
|
21626
|
-
}), c =
|
|
21629
|
+
}), c = uk({ element: e });
|
|
21627
21630
|
t.cleanup(() => {
|
|
21628
|
-
$?.group === i &&
|
|
21631
|
+
$?.group === i && Wk(!0), c(), s(), o(), a(), r.disconnect(), Ak.delete(e), jk.delete(i), e.removeAttribute("data-drag-rejected");
|
|
21629
21632
|
});
|
|
21630
|
-
},
|
|
21633
|
+
}, Yk = (e, t, n) => {
|
|
21631
21634
|
let r = t === "item" ? "data-ui-sortable-item" : "data-ui-sortable-source";
|
|
21632
21635
|
e.setAttribute(r, ""), vh(e, r, "draggable");
|
|
21633
|
-
let i = () => t === "item" ?
|
|
21634
|
-
schema:
|
|
21635
|
-
hooks:
|
|
21636
|
+
let i = () => t === "item" ? Nk(e.parentElement ?? e, vk) : null, a, o = Se({
|
|
21637
|
+
schema: Ok,
|
|
21638
|
+
hooks: kk,
|
|
21636
21639
|
createMachine: ({ props: t }) => qp({
|
|
21637
21640
|
props: t,
|
|
21638
21641
|
effects: {
|
|
@@ -21640,7 +21643,7 @@ var gk = {
|
|
|
21640
21643
|
let t = $, n = e.pointer;
|
|
21641
21644
|
if (!t || !n) return;
|
|
21642
21645
|
let r = n.destinationId === null ? null : t.layouts.get(n.destinationId)?.controller ?? null;
|
|
21643
|
-
r &&
|
|
21646
|
+
r && Kk(r, n.input);
|
|
21644
21647
|
},
|
|
21645
21648
|
synced: () => {
|
|
21646
21649
|
e.removeAttribute("data-sortable-phase"), $?.group?.el.removeAttribute("data-placing");
|
|
@@ -21657,7 +21660,7 @@ var gk = {
|
|
|
21657
21660
|
el: e,
|
|
21658
21661
|
owner: i,
|
|
21659
21662
|
source: () => {
|
|
21660
|
-
let e = s(), n = i(), r = n ?
|
|
21663
|
+
let e = s(), n = i(), r = n ? Ak.get(n)?.group() : null, a = {
|
|
21661
21664
|
scopeId: t === "item" ? r?.scopeId ?? "" : e.sortableScope,
|
|
21662
21665
|
id: e.sortableId,
|
|
21663
21666
|
type: e.sortableType,
|
|
@@ -21675,11 +21678,11 @@ var gk = {
|
|
|
21675
21678
|
});
|
|
21676
21679
|
},
|
|
21677
21680
|
disabled: () => {
|
|
21678
|
-
let e = i(), t = e ?
|
|
21681
|
+
let e = i(), t = e ? Ak.get(e)?.group() : null;
|
|
21679
21682
|
return s().disabled || t?.disabled === !0 || t?.readOnly === !0;
|
|
21680
21683
|
},
|
|
21681
21684
|
appearance: () => {
|
|
21682
|
-
let e = s(), t = i(), n = t ?
|
|
21685
|
+
let e = s(), t = i(), n = t ? Ak.get(t)?.group() : null;
|
|
21683
21686
|
return {
|
|
21684
21687
|
sourceOpacity: n?.sourceOpacity ?? e.sourceOpacity,
|
|
21685
21688
|
ghostOpacity: n?.ghostOpacity ?? e.ghostOpacity,
|
|
@@ -21695,7 +21698,7 @@ var gk = {
|
|
|
21695
21698
|
afterEnd: null,
|
|
21696
21699
|
previousOpacity: null
|
|
21697
21700
|
};
|
|
21698
|
-
let c = o.onTransition("placing", (e) =>
|
|
21701
|
+
let c = o.onTransition("placing", (e) => qk(e.data)), l = e.getAttributeNames().some((e) => e === "x-ui-transition:ending") ? () => void 0 : o.onTransition("ending", (e) => {
|
|
21699
21702
|
let t = e.data.toFrame ?? null;
|
|
21700
21703
|
return a.ghost?.finish(t);
|
|
21701
21704
|
}), u = a.source();
|
|
@@ -21706,19 +21709,19 @@ var gk = {
|
|
|
21706
21709
|
isDisabled: a.disabled
|
|
21707
21710
|
});
|
|
21708
21711
|
a.refresh = () => {
|
|
21709
|
-
$?.controller === a &&
|
|
21712
|
+
$?.controller === a && Gk("cancel", "removed"), d.refresh();
|
|
21710
21713
|
};
|
|
21711
|
-
let f = [...e.querySelectorAll(
|
|
21714
|
+
let f = [...e.querySelectorAll(xk)].find((t) => Nk(t, `${yk}, ${bk}`) === e), p = [...e.querySelectorAll(Sk)].find((t) => Nk(t, `${yk}, ${bk}`) === e), m = Ki(e, "move"), h = Ui({
|
|
21712
21715
|
element: e,
|
|
21713
21716
|
...f ? { dragHandle: f } : {},
|
|
21714
21717
|
canDrag: ({ input: t }) => {
|
|
21715
|
-
let n = document.elementFromPoint(t.clientX, t.clientY)?.closest(
|
|
21718
|
+
let n = document.elementFromPoint(t.clientX, t.clientY)?.closest(Ek) ?? null;
|
|
21716
21719
|
return !a.disabled() && (!!f || n === null || n === e);
|
|
21717
21720
|
},
|
|
21718
21721
|
getInitialData: () => {
|
|
21719
21722
|
let e = a.source();
|
|
21720
21723
|
return {
|
|
21721
|
-
marker:
|
|
21724
|
+
marker: wk,
|
|
21722
21725
|
scopeId: e.scopeId,
|
|
21723
21726
|
sortableId: e.id,
|
|
21724
21727
|
sortableType: e.type
|
|
@@ -21726,7 +21729,7 @@ var gk = {
|
|
|
21726
21729
|
},
|
|
21727
21730
|
onGenerateDragPreview: Gi,
|
|
21728
21731
|
onDragStart: (t) => {
|
|
21729
|
-
|
|
21732
|
+
_k.start();
|
|
21730
21733
|
let n = a.source(), r = qi(t), i = a.appearance(), s = Ap({
|
|
21731
21734
|
source: e,
|
|
21732
21735
|
input: Ji(t),
|
|
@@ -21741,9 +21744,9 @@ var gk = {
|
|
|
21741
21744
|
ghost: s,
|
|
21742
21745
|
placement: null,
|
|
21743
21746
|
group: null,
|
|
21744
|
-
layouts: new Map([...
|
|
21747
|
+
layouts: new Map([...jk].flatMap((e) => {
|
|
21745
21748
|
let t = e.group();
|
|
21746
|
-
return t.scopeId === n.scopeId ? [[t.id,
|
|
21749
|
+
return t.scopeId === n.scopeId ? [[t.id, Fk(e)]] : [];
|
|
21747
21750
|
})),
|
|
21748
21751
|
projections: /* @__PURE__ */ new Map(),
|
|
21749
21752
|
input: r,
|
|
@@ -21767,14 +21770,14 @@ var gk = {
|
|
|
21767
21770
|
if ($?.controller !== a) return;
|
|
21768
21771
|
let n = qi(t), r = $.input, i = performance.now(), s = Math.max(i - $.timestamp, 1);
|
|
21769
21772
|
$.input = n, $.timestamp = i, $.ghost.move(n);
|
|
21770
|
-
let c = t.location.current.dropTargets.map(({ element: e }) => e instanceof HTMLElement ?
|
|
21773
|
+
let c = t.location.current.dropTargets.map(({ element: e }) => e instanceof HTMLElement ? Ak.get(e) : void 0).find((e) => e !== void 0);
|
|
21771
21774
|
o.send({
|
|
21772
21775
|
type: "POINTER_MOVED",
|
|
21773
21776
|
pointer: {
|
|
21774
21777
|
destinationId: c?.group().id ?? null,
|
|
21775
21778
|
input: n
|
|
21776
21779
|
}
|
|
21777
|
-
}),
|
|
21780
|
+
}), Bk(document.elementFromPoint(n.clientX, n.clientY)?.closest(vk) ?? null), H({
|
|
21778
21781
|
el: e,
|
|
21779
21782
|
name: "ui:sortable-drag",
|
|
21780
21783
|
composed: !0,
|
|
@@ -21795,13 +21798,13 @@ var gk = {
|
|
|
21795
21798
|
});
|
|
21796
21799
|
},
|
|
21797
21800
|
onDrop: () => queueMicrotask(() => {
|
|
21798
|
-
$?.controller === a &&
|
|
21801
|
+
$?.controller === a && Gk("cancel", a.disabled() ? "disabled" : "outside");
|
|
21799
21802
|
})
|
|
21800
21803
|
});
|
|
21801
21804
|
n.cleanup(() => {
|
|
21802
21805
|
if ($?.controller === a) {
|
|
21803
21806
|
let t = $;
|
|
21804
|
-
|
|
21807
|
+
_k.stop(), Wk(!0), $ = null, e.removeAttribute("data-dragging"), e.removeAttribute("data-drag-operation"), e.removeAttribute("data-sortable-phase"), H({
|
|
21805
21808
|
el: e,
|
|
21806
21809
|
name: "ui:sortable-cancel",
|
|
21807
21810
|
composed: !0,
|
|
@@ -21809,18 +21812,18 @@ var gk = {
|
|
|
21809
21812
|
source: t.source,
|
|
21810
21813
|
reason: "removed"
|
|
21811
21814
|
})
|
|
21812
|
-
}), t.ghost.remove(), t.restoreCursor(),
|
|
21815
|
+
}), t.ghost.remove(), t.restoreCursor(), Bk(), a.restoreAppearance(), a.ghost = null, a.afterEnd = null;
|
|
21813
21816
|
}
|
|
21814
21817
|
h(), m(), c(), l(), d(), o.disconnect(), a.afterEnd?.(), a.ghost?.remove(), a.ghost = null, a.afterEnd = null;
|
|
21815
21818
|
});
|
|
21816
|
-
},
|
|
21817
|
-
e.addInitSelector(() => "[x-ui-sortable], [x-ui-sortable\\:item], [x-ui-sortable\\:source]"),
|
|
21818
|
-
e instanceof HTMLElement && (t ? t === "item" || t === "source" ?
|
|
21819
|
+
}, Xk = null, Zk = (e) => {
|
|
21820
|
+
e.addInitSelector(() => "[x-ui-sortable], [x-ui-sortable\\:item], [x-ui-sortable\\:source]"), Xk ??= dk(), e.directive("ui-sortable", e.skipDuringClone((e, { value: t, expression: n }, r) => {
|
|
21821
|
+
e instanceof HTMLElement && (t ? t === "item" || t === "source" ? Yk(e, t, r) : t === "handle" ? (e.setAttribute("data-ui-sortable-handle", ""), vh(e, "data-ui-sortable-handle")) : t === "indicator" ? (e.setAttribute("data-ui-sortable-indicator", ""), vh(e, "data-ui-sortable-indicator", "aria-hidden", "hidden"), e.setAttribute("aria-hidden", "true"), e.hidden = !0) : t === "preview" ? (e.setAttribute("data-ui-sortable-preview", ""), vh(e, "data-ui-sortable-preview")) : t === "can-drop" && n?.trim() && (Mk.set(e, (e) => r.evaluate(n, { scope: { $sortable: e } }) !== !1), r.cleanup(() => Mk.delete(e))) : Jk(e, r));
|
|
21819
21822
|
}));
|
|
21820
|
-
},
|
|
21821
|
-
ae(e.reactive), e.plugin(b),
|
|
21823
|
+
}, Qk = (e) => {
|
|
21824
|
+
ae(e.reactive), e.plugin(b), iO(e), hg(e), vO(e), Zk(e), ag(e), Dn(), P_(), gO(e), m_(e), ov(e), bx(e), Nx(e), Gx(e), zS(e), QS(e), bC(e), iw(e), Nw(e), Xw(e), WT(e), gE(e), WE(e), im(e), qh(e), aD(e), kD(e), tO(e);
|
|
21822
21825
|
};
|
|
21823
21826
|
//#endregion
|
|
21824
|
-
export { B as bool, Se as createAlpineMachine, Wn as createMachine, rm as createResizable, Hp as createSortableRegistry, ye as createTransitionCoordinator, L as decodeProps,
|
|
21827
|
+
export { B as bool, Se as createAlpineMachine, Wn as createMachine, rm as createResizable, Hp as createSortableRegistry, ye as createTransitionCoordinator, L as decodeProps, Qk as default, Qk as trellisUi, J as defineHook, om as defineManifest, oe as defineProps, cm as defineStyles, se as json, Ln as mergeBindings, Ep as motion, z as number, V as oneOf, sm as propsFromSchema, vO as registerTransitionDirective, Z as resolveStyle, Up as sortable, R as string, pg as ui };
|
|
21825
21828
|
|
|
21826
21829
|
//# sourceMappingURL=index.js.map
|