335 lines
11 KiB
JavaScript
335 lines
11 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 39c0420b837da380.f3eff5e6e8.js
|
|
* Module id: 764218
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e) => {
|
|
"use strict";
|
|
var r = e.i(462214),
|
|
t = e.i(358379),
|
|
n = e.i(593307);
|
|
function o(e) {
|
|
let o = (0, t.forwardRef)(e);
|
|
return (
|
|
(o.withProps = (e) => {
|
|
let n = (0, t.forwardRef)((t, n) =>
|
|
(0, r.jsx)(o, { ...e, ...t, ref: n }),
|
|
);
|
|
return (
|
|
(n.extend = o.extend),
|
|
(n.displayName = `WithProps(${o.displayName})`),
|
|
n
|
|
);
|
|
}),
|
|
(o.extend = n.identity),
|
|
o
|
|
);
|
|
}
|
|
e.s(["polymorphicFactory", () => o], 910655), e.i(7284);
|
|
var i = e.i(978459);
|
|
let a = (e) => ({
|
|
in: { opacity: 1, transform: "scale(1)" },
|
|
out: {
|
|
opacity: 0,
|
|
transform: `scale(.9) translateY(${"bottom" === e ? 10 : -10}px)`,
|
|
},
|
|
transitionProperty: "transform, opacity",
|
|
}),
|
|
s = {
|
|
fade: {
|
|
in: { opacity: 1 },
|
|
out: { opacity: 0 },
|
|
transitionProperty: "opacity",
|
|
},
|
|
"fade-up": {
|
|
in: { opacity: 1, transform: "translateY(0)" },
|
|
out: { opacity: 0, transform: "translateY(30px)" },
|
|
transitionProperty: "opacity, transform",
|
|
},
|
|
"fade-down": {
|
|
in: { opacity: 1, transform: "translateY(0)" },
|
|
out: { opacity: 0, transform: "translateY(-30px)" },
|
|
transitionProperty: "opacity, transform",
|
|
},
|
|
"fade-left": {
|
|
in: { opacity: 1, transform: "translateX(0)" },
|
|
out: { opacity: 0, transform: "translateX(30px)" },
|
|
transitionProperty: "opacity, transform",
|
|
},
|
|
"fade-right": {
|
|
in: { opacity: 1, transform: "translateX(0)" },
|
|
out: { opacity: 0, transform: "translateX(-30px)" },
|
|
transitionProperty: "opacity, transform",
|
|
},
|
|
scale: {
|
|
in: { opacity: 1, transform: "scale(1)" },
|
|
out: { opacity: 0, transform: "scale(0)" },
|
|
common: { transformOrigin: "top" },
|
|
transitionProperty: "transform, opacity",
|
|
},
|
|
"scale-y": {
|
|
in: { opacity: 1, transform: "scaleY(1)" },
|
|
out: { opacity: 0, transform: "scaleY(0)" },
|
|
common: { transformOrigin: "top" },
|
|
transitionProperty: "transform, opacity",
|
|
},
|
|
"scale-x": {
|
|
in: { opacity: 1, transform: "scaleX(1)" },
|
|
out: { opacity: 0, transform: "scaleX(0)" },
|
|
common: { transformOrigin: "left" },
|
|
transitionProperty: "transform, opacity",
|
|
},
|
|
"skew-up": {
|
|
in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
|
|
out: {
|
|
opacity: 0,
|
|
transform: "translateY(-20px) skew(-10deg, -5deg)",
|
|
},
|
|
common: { transformOrigin: "top" },
|
|
transitionProperty: "transform, opacity",
|
|
},
|
|
"skew-down": {
|
|
in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
|
|
out: {
|
|
opacity: 0,
|
|
transform: "translateY(20px) skew(-10deg, -5deg)",
|
|
},
|
|
common: { transformOrigin: "bottom" },
|
|
transitionProperty: "transform, opacity",
|
|
},
|
|
"rotate-left": {
|
|
in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
|
|
out: { opacity: 0, transform: "translateY(20px) rotate(-5deg)" },
|
|
common: { transformOrigin: "bottom" },
|
|
transitionProperty: "transform, opacity",
|
|
},
|
|
"rotate-right": {
|
|
in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
|
|
out: { opacity: 0, transform: "translateY(20px) rotate(5deg)" },
|
|
common: { transformOrigin: "top" },
|
|
transitionProperty: "transform, opacity",
|
|
},
|
|
"slide-down": {
|
|
in: { opacity: 1, transform: "translateY(0)" },
|
|
out: { opacity: 0, transform: "translateY(-100%)" },
|
|
common: { transformOrigin: "top" },
|
|
transitionProperty: "transform, opacity",
|
|
},
|
|
"slide-up": {
|
|
in: { opacity: 1, transform: "translateY(0)" },
|
|
out: { opacity: 0, transform: "translateY(100%)" },
|
|
common: { transformOrigin: "bottom" },
|
|
transitionProperty: "transform, opacity",
|
|
},
|
|
"slide-left": {
|
|
in: { opacity: 1, transform: "translateX(0)" },
|
|
out: { opacity: 0, transform: "translateX(100%)" },
|
|
common: { transformOrigin: "left" },
|
|
transitionProperty: "transform, opacity",
|
|
},
|
|
"slide-right": {
|
|
in: { opacity: 1, transform: "translateX(0)" },
|
|
out: { opacity: 0, transform: "translateX(-100%)" },
|
|
common: { transformOrigin: "right" },
|
|
transitionProperty: "transform, opacity",
|
|
},
|
|
pop: { ...a("bottom"), common: { transformOrigin: "center center" } },
|
|
"pop-bottom-left": {
|
|
...a("bottom"),
|
|
common: { transformOrigin: "bottom left" },
|
|
},
|
|
"pop-bottom-right": {
|
|
...a("bottom"),
|
|
common: { transformOrigin: "bottom right" },
|
|
},
|
|
"pop-top-left": {
|
|
...a("top"),
|
|
common: { transformOrigin: "top left" },
|
|
},
|
|
"pop-top-right": {
|
|
...a("top"),
|
|
common: { transformOrigin: "top right" },
|
|
},
|
|
},
|
|
l = {
|
|
entering: "in",
|
|
entered: "in",
|
|
exiting: "out",
|
|
exited: "out",
|
|
"pre-exiting": "out",
|
|
"pre-entering": "out",
|
|
};
|
|
var c = e.i(111558),
|
|
m = e.i(547628);
|
|
function p(e, r) {
|
|
return (0, m.useMediaQuery)("(prefers-reduced-motion: reduce)", e, r);
|
|
}
|
|
function f(e, r) {
|
|
let n = (0, t.useRef)(!1);
|
|
(0, t.useEffect)(
|
|
() => () => {
|
|
n.current = !1;
|
|
},
|
|
[],
|
|
),
|
|
(0, t.useEffect)(() => {
|
|
if (n.current) return e();
|
|
n.current = !0;
|
|
}, r);
|
|
}
|
|
e.s(["useReducedMotion", () => p], 621600),
|
|
e.s(["useDidUpdate", () => f], 361752);
|
|
var u = e.i(830744);
|
|
function d({
|
|
keepMounted: e,
|
|
transition: n = "fade",
|
|
duration: o = 250,
|
|
exitDuration: a = o,
|
|
mounted: m,
|
|
children: d,
|
|
timingFunction: y = "ease",
|
|
onExit: h,
|
|
onEntered: g,
|
|
onEnter: b,
|
|
onExited: v,
|
|
enterDelay: $,
|
|
exitDelay: k,
|
|
}) {
|
|
let x = (0, i.useMantineEnv)(),
|
|
{
|
|
transitionDuration: w,
|
|
transitionStatus: S,
|
|
transitionTimingFunction: C,
|
|
} = (function ({
|
|
duration: e,
|
|
exitDuration: r,
|
|
timingFunction: n,
|
|
mounted: o,
|
|
onEnter: i,
|
|
onExit: a,
|
|
onEntered: s,
|
|
onExited: l,
|
|
enterDelay: m,
|
|
exitDelay: d,
|
|
}) {
|
|
let y = (0, u.useMantineTheme)(),
|
|
h = p(),
|
|
g = !!y.respectReducedMotion && h,
|
|
[b, v] = (0, t.useState)(g ? 0 : e),
|
|
[$, k] = (0, t.useState)(o ? "entered" : "exited"),
|
|
x = (0, t.useRef)(-1),
|
|
w = (0, t.useRef)(-1),
|
|
S = (0, t.useRef)(-1);
|
|
function C() {
|
|
window.clearTimeout(x.current),
|
|
window.clearTimeout(w.current),
|
|
cancelAnimationFrame(S.current);
|
|
}
|
|
let T = (t) => {
|
|
C();
|
|
let n = t ? i : a,
|
|
o = t ? s : l,
|
|
m = g ? 0 : t ? e : r;
|
|
v(m),
|
|
0 === m
|
|
? ("function" == typeof n && n(),
|
|
"function" == typeof o && o(),
|
|
k(t ? "entered" : "exited"))
|
|
: (S.current = requestAnimationFrame(() => {
|
|
c.default.flushSync(() => {
|
|
k(t ? "pre-entering" : "pre-exiting");
|
|
}),
|
|
(S.current = requestAnimationFrame(() => {
|
|
"function" == typeof n && n(),
|
|
k(t ? "entering" : "exiting"),
|
|
(x.current = window.setTimeout(() => {
|
|
"function" == typeof o && o(),
|
|
k(t ? "entered" : "exited");
|
|
}, m));
|
|
}));
|
|
}));
|
|
};
|
|
return (
|
|
f(() => {
|
|
(C(), "number" != typeof (o ? m : d))
|
|
? T(o)
|
|
: (w.current = window.setTimeout(
|
|
() => {
|
|
T(o);
|
|
},
|
|
o ? m : d,
|
|
));
|
|
}, [o]),
|
|
(0, t.useEffect)(
|
|
() => () => {
|
|
C();
|
|
},
|
|
[],
|
|
),
|
|
{
|
|
transitionDuration: b,
|
|
transitionStatus: $,
|
|
transitionTimingFunction: n || "ease",
|
|
}
|
|
);
|
|
})({
|
|
mounted: m,
|
|
exitDuration: a,
|
|
duration: o,
|
|
timingFunction: y,
|
|
onExit: h,
|
|
onEntered: g,
|
|
onEnter: b,
|
|
onExited: v,
|
|
enterDelay: $,
|
|
exitDelay: k,
|
|
});
|
|
return 0 === w || "test" === x
|
|
? m
|
|
? (0, r.jsx)(r.Fragment, { children: d({}) })
|
|
: e
|
|
? d({ display: "none" })
|
|
: null
|
|
: "exited" === S
|
|
? e
|
|
? d({ display: "none" })
|
|
: null
|
|
: (0, r.jsx)(r.Fragment, {
|
|
children: d(
|
|
(function ({
|
|
transition: e,
|
|
state: r,
|
|
duration: t,
|
|
timingFunction: n,
|
|
}) {
|
|
let o = {
|
|
WebkitBackfaceVisibility: "hidden",
|
|
transitionDuration: `${t}ms`,
|
|
transitionTimingFunction: n,
|
|
};
|
|
return "string" == typeof e
|
|
? e in s
|
|
? {
|
|
transitionProperty: s[e].transitionProperty,
|
|
...o,
|
|
...s[e].common,
|
|
...s[e][l[r]],
|
|
}
|
|
: {}
|
|
: {
|
|
transitionProperty: e.transitionProperty,
|
|
...o,
|
|
...e.common,
|
|
...e[l[r]],
|
|
};
|
|
})({ transition: n, duration: w, state: S, timingFunction: C }),
|
|
),
|
|
});
|
|
}
|
|
(d.displayName = "@mantine/core/Transition"),
|
|
e.s(["Transition", () => d], 764218);
|
|
};
|
|
|
|
export default moduleFactory;
|