201 lines
6.0 KiB
JavaScript
201 lines
6.0 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 20293dbce215808d.10cf9e27a9.js
|
|
* Module id: 257469
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e) => {
|
|
"use strict";
|
|
var t = e.i(462214),
|
|
n = e.i(358379),
|
|
r = e.i(7284),
|
|
o = e.i(479324),
|
|
i = e.i(593307),
|
|
l = e.i(124859),
|
|
a = e.i(559394);
|
|
let [u, s] = (0, a.createSafeContext)(
|
|
"ModalBase component was not found in tree",
|
|
);
|
|
e.s(["ModalBaseProvider", () => u, "useModalBaseContext", () => s], 328316);
|
|
var c = {
|
|
title: "m_615af6c9",
|
|
header: "m_b5489c3c",
|
|
inner: "m_60c222c7",
|
|
content: "m_fd1ab0aa",
|
|
close: "m_606cb269",
|
|
body: "m_5df29311",
|
|
};
|
|
e.s(["default", () => c], 189772);
|
|
let d = (0, n.forwardRef)(({ className: e, ...o }, i) => {
|
|
let a,
|
|
u =
|
|
((a = s()),
|
|
(0, n.useEffect)(
|
|
() => (a.setBodyMounted(!0), () => a.setBodyMounted(!1)),
|
|
[],
|
|
),
|
|
a.getBodyId()),
|
|
d = s();
|
|
return (0, t.jsx)(l.Box, {
|
|
ref: i,
|
|
...o,
|
|
id: u,
|
|
className: (0, r.default)({ [c.body]: !d.unstyled }, e),
|
|
});
|
|
});
|
|
(d.displayName = "@mantine/core/ModalBaseBody"),
|
|
e.s(["ModalBaseBody", () => d], 336668);
|
|
let [f, m] = (0, a.createSafeContext)(
|
|
"Modal component was not found in tree",
|
|
);
|
|
e.s(["ModalProvider", () => f, "useModalContext", () => m], 70427);
|
|
var p = e.i(887422);
|
|
let v = (0, i.factory)((e, n) => {
|
|
let {
|
|
classNames: r,
|
|
className: i,
|
|
style: l,
|
|
styles: a,
|
|
vars: u,
|
|
...s
|
|
} = (0, o.useProps)("ModalBody", null, e),
|
|
c = m();
|
|
return (0, t.jsx)(d, {
|
|
ref: n,
|
|
...c.getStyles("body", {
|
|
classNames: r,
|
|
style: l,
|
|
styles: a,
|
|
className: i,
|
|
}),
|
|
...s,
|
|
});
|
|
});
|
|
(v.classes = p.default),
|
|
(v.displayName = "@mantine/core/ModalBody"),
|
|
e.s(["ModalBody", () => v], 621414);
|
|
var g = e.i(389435),
|
|
h = e.i(855698),
|
|
y = e.i(938202),
|
|
w = e.i(450943),
|
|
b = e.i(910655),
|
|
x = e.i(606227),
|
|
E = { root: "m_86a44da5", "root--subtle": "m_220c80f2" };
|
|
let S = (0, n.forwardRef)(
|
|
({ size: e = "var(--cb-icon-size, 70%)", style: n, ...r }, o) =>
|
|
(0, t.jsx)("svg", {
|
|
viewBox: "0 0 15 15",
|
|
fill: "none",
|
|
xmlns: "http://www.w3.org/2000/svg",
|
|
style: { ...n, width: e, height: e },
|
|
ref: o,
|
|
...r,
|
|
children: (0, t.jsx)("path", {
|
|
d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
|
|
fill: "currentColor",
|
|
fillRule: "evenodd",
|
|
clipRule: "evenodd",
|
|
}),
|
|
}),
|
|
);
|
|
S.displayName = "@mantine/core/CloseIcon";
|
|
let C = { variant: "subtle" },
|
|
R = (0, y.createVarsResolver)(
|
|
(e, { size: t, radius: n, iconSize: r }) => ({
|
|
root: {
|
|
"--cb-size": (0, h.getSize)(t, "cb-size"),
|
|
"--cb-radius": void 0 === n ? void 0 : (0, h.getRadius)(n),
|
|
"--cb-icon-size": (0, g.rem)(r),
|
|
},
|
|
}),
|
|
),
|
|
T = (0, b.polymorphicFactory)((e, n) => {
|
|
let r = (0, o.useProps)("CloseButton", C, e),
|
|
{
|
|
iconSize: i,
|
|
children: l,
|
|
vars: a,
|
|
radius: u,
|
|
className: s,
|
|
classNames: c,
|
|
style: d,
|
|
styles: f,
|
|
unstyled: m,
|
|
"data-disabled": p,
|
|
disabled: v,
|
|
variant: g,
|
|
icon: h,
|
|
mod: y,
|
|
attributes: b,
|
|
__staticSelector: T,
|
|
...M
|
|
} = r,
|
|
A = (0, w.useStyles)({
|
|
name: T || "CloseButton",
|
|
props: r,
|
|
className: s,
|
|
style: d,
|
|
classes: E,
|
|
classNames: c,
|
|
styles: f,
|
|
unstyled: m,
|
|
attributes: b,
|
|
vars: a,
|
|
varsResolver: R,
|
|
});
|
|
return (0, t.jsxs)(x.UnstyledButton, {
|
|
ref: n,
|
|
...M,
|
|
unstyled: m,
|
|
variant: g,
|
|
disabled: v,
|
|
mod: [{ disabled: v || p }, y],
|
|
...A("root", { variant: g, active: !v && !p }),
|
|
children: [h || (0, t.jsx)(S, {}), l],
|
|
});
|
|
});
|
|
(T.classes = E),
|
|
(T.displayName = "@mantine/core/CloseButton"),
|
|
e.s(["CloseButton", () => T], 709172);
|
|
let M = (0, n.forwardRef)(({ className: e, onClick: n, ...o }, i) => {
|
|
let l = s();
|
|
return (0, t.jsx)(T, {
|
|
ref: i,
|
|
...o,
|
|
onClick: (e) => {
|
|
l.onClose(), n?.(e);
|
|
},
|
|
className: (0, r.default)({ [c.close]: !l.unstyled }, e),
|
|
unstyled: l.unstyled,
|
|
});
|
|
});
|
|
(M.displayName = "@mantine/core/ModalBaseCloseButton"),
|
|
e.s(["ModalBaseCloseButton", () => M], 827691);
|
|
let A = (0, i.factory)((e, n) => {
|
|
let {
|
|
classNames: r,
|
|
className: i,
|
|
style: l,
|
|
styles: a,
|
|
vars: u,
|
|
...s
|
|
} = (0, o.useProps)("ModalCloseButton", null, e),
|
|
c = m();
|
|
return (0, t.jsx)(M, {
|
|
ref: n,
|
|
...c.getStyles("close", {
|
|
classNames: r,
|
|
style: l,
|
|
styles: a,
|
|
className: i,
|
|
}),
|
|
...s,
|
|
});
|
|
});
|
|
(A.classes = p.default),
|
|
(A.displayName = "@mantine/core/ModalCloseButton"),
|
|
e.s(["ModalCloseButton", () => A], 257469);
|
|
};
|
|
|
|
export default moduleFactory;
|