react-bunny-banners
Version:
Reusable React UI components for Bajaj Finance Fixed Deposit features
976 lines (973 loc) • 49.7 kB
JavaScript
import * as S from "react";
import D, { useState as ce, useRef as Rt, useEffect as _t } from "react";
import "react-dom";
import { Slot as Tt } from "@radix-ui/react-slot";
import { cva as St } from "class-variance-authority";
import { clsx as Ct } from "clsx";
import { twMerge as kt } from "tailwind-merge";
var he = { exports: {} }, H = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Fe;
function jt() {
if (Fe) return H;
Fe = 1;
var r = D, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
function f(m, v, O) {
var w, _ = {}, x = null, N = null;
O !== void 0 && (x = "" + O), v.key !== void 0 && (x = "" + v.key), v.ref !== void 0 && (N = v.ref);
for (w in v) d.call(v, w) && !u.hasOwnProperty(w) && (_[w] = v[w]);
if (m && m.defaultProps) for (w in v = m.defaultProps, v) _[w] === void 0 && (_[w] = v[w]);
return { $$typeof: t, type: m, key: x, ref: N, props: _, _owner: c.current };
}
return H.Fragment = n, H.jsx = f, H.jsxs = f, H;
}
var J = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var ze;
function Ot() {
return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
var r = D, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), m = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), N = Symbol.for("react.offscreen"), C = Symbol.iterator, P = "@@iterator";
function W(e) {
if (e === null || typeof e != "object")
return null;
var a = C && e[C] || e[P];
return typeof a == "function" ? a : null;
}
var k = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function g(e) {
{
for (var a = arguments.length, o = new Array(a > 1 ? a - 1 : 0), s = 1; s < a; s++)
o[s - 1] = arguments[s];
I("error", e, o);
}
}
function I(e, a, o) {
{
var s = k.ReactDebugCurrentFrame, h = s.getStackAddendum();
h !== "" && (a += "%s", o = o.concat([h]));
var p = o.map(function(l) {
return String(l);
});
p.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, p);
}
}
var Be = !1, Ve = !1, Ue = !1, He = !1, Je = !1, me;
me = Symbol.for("react.module.reference");
function Xe(e) {
return !!(typeof e == "string" || typeof e == "function" || e === d || e === u || Je || e === c || e === O || e === w || He || e === N || Be || Ve || Ue || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === _ || e.$$typeof === f || e.$$typeof === m || e.$$typeof === v || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
e.$$typeof === me || e.getModuleId !== void 0));
}
function Ke(e, a, o) {
var s = e.displayName;
if (s)
return s;
var h = a.displayName || a.name || "";
return h !== "" ? o + "(" + h + ")" : o;
}
function ve(e) {
return e.displayName || "Context";
}
function $(e) {
if (e == null)
return null;
if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
return e.displayName || e.name || null;
if (typeof e == "string")
return e;
switch (e) {
case d:
return "Fragment";
case n:
return "Portal";
case u:
return "Profiler";
case c:
return "StrictMode";
case O:
return "Suspense";
case w:
return "SuspenseList";
}
if (typeof e == "object")
switch (e.$$typeof) {
case m:
var a = e;
return ve(a) + ".Consumer";
case f:
var o = e;
return ve(o._context) + ".Provider";
case v:
return Ke(e, e.render, "ForwardRef");
case _:
var s = e.displayName || null;
return s !== null ? s : $(e.type) || "Memo";
case x: {
var h = e, p = h._payload, l = h._init;
try {
return $(l(p));
} catch {
return null;
}
}
}
return null;
}
var M = Object.assign, B = 0, ge, be, ye, we, xe, Ee, Re;
function _e() {
}
_e.__reactDisabledLog = !0;
function qe() {
{
if (B === 0) {
ge = console.log, be = console.info, ye = console.warn, we = console.error, xe = console.group, Ee = console.groupCollapsed, Re = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: _e,
writable: !0
};
Object.defineProperties(console, {
info: e,
log: e,
warn: e,
error: e,
group: e,
groupCollapsed: e,
groupEnd: e
});
}
B++;
}
}
function Ge() {
{
if (B--, B === 0) {
var e = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: M({}, e, {
value: ge
}),
info: M({}, e, {
value: be
}),
warn: M({}, e, {
value: ye
}),
error: M({}, e, {
value: we
}),
group: M({}, e, {
value: xe
}),
groupCollapsed: M({}, e, {
value: Ee
}),
groupEnd: M({}, e, {
value: Re
})
});
}
B < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var te = k.ReactCurrentDispatcher, re;
function K(e, a, o) {
{
if (re === void 0)
try {
throw Error();
} catch (h) {
var s = h.stack.trim().match(/\n( *(at )?)/);
re = s && s[1] || "";
}
return `
` + re + e;
}
}
var ae = !1, q;
{
var Qe = typeof WeakMap == "function" ? WeakMap : Map;
q = new Qe();
}
function Te(e, a) {
if (!e || ae)
return "";
{
var o = q.get(e);
if (o !== void 0)
return o;
}
var s;
ae = !0;
var h = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var p;
p = te.current, te.current = null, qe();
try {
if (a) {
var l = function() {
throw Error();
};
if (Object.defineProperty(l.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct(l, []);
} catch (T) {
s = T;
}
Reflect.construct(e, [], l);
} else {
try {
l.call();
} catch (T) {
s = T;
}
e.call(l.prototype);
}
} else {
try {
throw Error();
} catch (T) {
s = T;
}
e();
}
} catch (T) {
if (T && s && typeof T.stack == "string") {
for (var i = T.stack.split(`
`), R = s.stack.split(`
`), b = i.length - 1, y = R.length - 1; b >= 1 && y >= 0 && i[b] !== R[y]; )
y--;
for (; b >= 1 && y >= 0; b--, y--)
if (i[b] !== R[y]) {
if (b !== 1 || y !== 1)
do
if (b--, y--, y < 0 || i[b] !== R[y]) {
var j = `
` + i[b].replace(" at new ", " at ");
return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, j), j;
}
while (b >= 1 && y >= 0);
break;
}
}
} finally {
ae = !1, te.current = p, Ge(), Error.prepareStackTrace = h;
}
var L = e ? e.displayName || e.name : "", F = L ? K(L) : "";
return typeof e == "function" && q.set(e, F), F;
}
function Ze(e, a, o) {
return Te(e, !1);
}
function et(e) {
var a = e.prototype;
return !!(a && a.isReactComponent);
}
function G(e, a, o) {
if (e == null)
return "";
if (typeof e == "function")
return Te(e, et(e));
if (typeof e == "string")
return K(e);
switch (e) {
case O:
return K("Suspense");
case w:
return K("SuspenseList");
}
if (typeof e == "object")
switch (e.$$typeof) {
case v:
return Ze(e.render);
case _:
return G(e.type, a, o);
case x: {
var s = e, h = s._payload, p = s._init;
try {
return G(p(h), a, o);
} catch {
}
}
}
return "";
}
var V = Object.prototype.hasOwnProperty, Se = {}, Ce = k.ReactDebugCurrentFrame;
function Q(e) {
if (e) {
var a = e._owner, o = G(e.type, e._source, a ? a.type : null);
Ce.setExtraStackFrame(o);
} else
Ce.setExtraStackFrame(null);
}
function tt(e, a, o, s, h) {
{
var p = Function.call.bind(V);
for (var l in e)
if (p(e, l)) {
var i = void 0;
try {
if (typeof e[l] != "function") {
var R = Error((s || "React class") + ": " + o + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw R.name = "Invariant Violation", R;
}
i = e[l](a, l, s, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (b) {
i = b;
}
i && !(i instanceof Error) && (Q(h), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", o, l, typeof i), Q(null)), i instanceof Error && !(i.message in Se) && (Se[i.message] = !0, Q(h), g("Failed %s type: %s", o, i.message), Q(null));
}
}
}
var rt = Array.isArray;
function ne(e) {
return rt(e);
}
function at(e) {
{
var a = typeof Symbol == "function" && Symbol.toStringTag, o = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
return o;
}
}
function nt(e) {
try {
return ke(e), !1;
} catch {
return !0;
}
}
function ke(e) {
return "" + e;
}
function je(e) {
if (nt(e))
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", at(e)), ke(e);
}
var U = k.ReactCurrentOwner, ot = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, Oe, Pe, oe;
oe = {};
function st(e) {
if (V.call(e, "ref")) {
var a = Object.getOwnPropertyDescriptor(e, "ref").get;
if (a && a.isReactWarning)
return !1;
}
return e.ref !== void 0;
}
function it(e) {
if (V.call(e, "key")) {
var a = Object.getOwnPropertyDescriptor(e, "key").get;
if (a && a.isReactWarning)
return !1;
}
return e.key !== void 0;
}
function lt(e, a) {
if (typeof e.ref == "string" && U.current && a && U.current.stateNode !== a) {
var o = $(U.current.type);
oe[o] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(U.current.type), e.ref), oe[o] = !0);
}
}
function dt(e, a) {
{
var o = function() {
Oe || (Oe = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
};
o.isReactWarning = !0, Object.defineProperty(e, "key", {
get: o,
configurable: !0
});
}
}
function ct(e, a) {
{
var o = function() {
Pe || (Pe = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
};
o.isReactWarning = !0, Object.defineProperty(e, "ref", {
get: o,
configurable: !0
});
}
}
var ut = function(e, a, o, s, h, p, l) {
var i = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: e,
key: a,
ref: o,
props: l,
// Record the component responsible for creating this element.
_owner: p
};
return i._store = {}, Object.defineProperty(i._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(i, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: s
}), Object.defineProperty(i, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: h
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
};
function ft(e, a, o, s, h) {
{
var p, l = {}, i = null, R = null;
o !== void 0 && (je(o), i = "" + o), it(a) && (je(a.key), i = "" + a.key), st(a) && (R = a.ref, lt(a, h));
for (p in a)
V.call(a, p) && !ot.hasOwnProperty(p) && (l[p] = a[p]);
if (e && e.defaultProps) {
var b = e.defaultProps;
for (p in b)
l[p] === void 0 && (l[p] = b[p]);
}
if (i || R) {
var y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
i && dt(l, y), R && ct(l, y);
}
return ut(e, i, R, h, s, U.current, l);
}
}
var se = k.ReactCurrentOwner, Ae = k.ReactDebugCurrentFrame;
function z(e) {
if (e) {
var a = e._owner, o = G(e.type, e._source, a ? a.type : null);
Ae.setExtraStackFrame(o);
} else
Ae.setExtraStackFrame(null);
}
var ie;
ie = !1;
function le(e) {
return typeof e == "object" && e !== null && e.$$typeof === t;
}
function $e() {
{
if (se.current) {
var e = $(se.current.type);
if (e)
return `
Check the render method of \`` + e + "`.";
}
return "";
}
}
function ht(e) {
return "";
}
var De = {};
function pt(e) {
{
var a = $e();
if (!a) {
var o = typeof e == "string" ? e : e.displayName || e.name;
o && (a = `
Check the top-level render call using <` + o + ">.");
}
return a;
}
}
function Ne(e, a) {
{
if (!e._store || e._store.validated || e.key != null)
return;
e._store.validated = !0;
var o = pt(a);
if (De[o])
return;
De[o] = !0;
var s = "";
e && e._owner && e._owner !== se.current && (s = " It was passed a child from " + $(e._owner.type) + "."), z(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, s), z(null);
}
}
function Ie(e, a) {
{
if (typeof e != "object")
return;
if (ne(e))
for (var o = 0; o < e.length; o++) {
var s = e[o];
le(s) && Ne(s, a);
}
else if (le(e))
e._store && (e._store.validated = !0);
else if (e) {
var h = W(e);
if (typeof h == "function" && h !== e.entries)
for (var p = h.call(e), l; !(l = p.next()).done; )
le(l.value) && Ne(l.value, a);
}
}
}
function mt(e) {
{
var a = e.type;
if (a == null || typeof a == "string")
return;
var o;
if (typeof a == "function")
o = a.propTypes;
else if (typeof a == "object" && (a.$$typeof === v || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
a.$$typeof === _))
o = a.propTypes;
else
return;
if (o) {
var s = $(a);
tt(o, e.props, "prop", s, e);
} else if (a.PropTypes !== void 0 && !ie) {
ie = !0;
var h = $(a);
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
}
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function vt(e) {
{
for (var a = Object.keys(e.props), o = 0; o < a.length; o++) {
var s = a[o];
if (s !== "children" && s !== "key") {
z(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), z(null);
break;
}
}
e.ref !== null && (z(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
}
}
var Ye = {};
function Me(e, a, o, s, h, p) {
{
var l = Xe(e);
if (!l) {
var i = "";
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var R = ht();
R ? i += R : i += $e();
var b;
e === null ? b = "null" : ne(e) ? b = "array" : e !== void 0 && e.$$typeof === t ? (b = "<" + ($(e.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, i);
}
var y = ft(e, a, o, h, p);
if (y == null)
return y;
if (l) {
var j = a.children;
if (j !== void 0)
if (s)
if (ne(j)) {
for (var L = 0; L < j.length; L++)
Ie(j[L], e);
Object.freeze && Object.freeze(j);
} else
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
Ie(j, e);
}
if (V.call(a, "key")) {
var F = $(e), T = Object.keys(a).filter(function(Et) {
return Et !== "key";
}), de = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!Ye[F + de]) {
var xt = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
g(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, de, F, xt, F), Ye[F + de] = !0;
}
}
return e === d ? vt(y) : mt(y), y;
}
}
function gt(e, a, o) {
return Me(e, a, o, !0);
}
function bt(e, a, o) {
return Me(e, a, o, !1);
}
var yt = bt, wt = gt;
J.Fragment = d, J.jsx = yt, J.jsxs = wt;
}()), J;
}
process.env.NODE_ENV === "production" ? he.exports = jt() : he.exports = Ot();
var E = he.exports;
const nr = () => /* @__PURE__ */ E.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ E.jsxs("div", { className: "relative", children: [
/* @__PURE__ */ E.jsx("div", { className: "w-16 h-16 bg-gradient-to-br from-primary to-secondary rounded-full flex items-center justify-center text-white font-bold text-3xl shadow-lg", children: "🐰" }),
/* @__PURE__ */ E.jsx("div", { className: "absolute -bottom-1 -right-1 w-6 h-6 bg-gradient-to-br from-orange-400 to-orange-500 rounded-full flex items-center justify-center text-xs shadow-md", children: "🥕" })
] }) }), or = () => /* @__PURE__ */ E.jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ E.jsx("div", { className: "animate-spin text-6xl", children: "🥕" }) }), sr = ({
onToggle: r,
isUIVisible: t,
imageSrc: n = "🐰🥕",
alt: d = "Toggle UI"
}) => {
const [c, u] = ce(!1), [f, m] = ce({ x: 50, y: 50 }), [v, O] = ce({ x: 0, y: 0 }), w = Rt(null), _ = (P) => {
u(!0), O({
x: P.clientX - f.x,
y: P.clientY - f.y
});
}, x = (P) => {
if (c) {
const W = P.clientX - v.x, k = P.clientY - v.y, g = window.innerWidth - 80, I = window.innerHeight - 80;
m({
x: Math.max(0, Math.min(W, g)),
y: Math.max(0, Math.min(k, I))
});
}
}, N = () => {
u(!1);
}, C = () => {
c || r();
};
return _t(() => {
if (c)
return document.addEventListener("mousemove", x), document.addEventListener("mouseup", N), () => {
document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", N);
};
}, [c, v]), /* @__PURE__ */ E.jsx(
"button",
{
ref: w,
className: `fixed z-50 w-28 h-28 flex items-center justify-center cursor-move transition-all duration-200 ${c ? "scale-110" : "hover:scale-105"}`,
style: {
left: `${f.x}px`,
top: `${f.y}px`,
userSelect: "none"
},
onMouseDown: _,
onClick: C,
title: t ? "Hide BannerBunny" : "Show BannerBunny",
children: n.startsWith("http") || n.startsWith("/") ? /* @__PURE__ */ E.jsx(
"img",
{
src: n,
alt: d,
className: "w-24 h-24 object-contain pointer-events-none"
}
) : /* @__PURE__ */ E.jsx("div", { className: "text-6xl pointer-events-none", children: n })
}
);
}, Pt = 1, At = 1e6;
let ue = 0;
function $t() {
return ue = (ue + 1) % Number.MAX_SAFE_INTEGER, ue.toString();
}
const fe = /* @__PURE__ */ new Map(), Le = (r) => {
if (fe.has(r))
return;
const t = setTimeout(() => {
fe.delete(r), X({
type: "REMOVE_TOAST",
toastId: r
});
}, At);
fe.set(r, t);
}, Dt = (r, t) => {
switch (t.type) {
case "ADD_TOAST":
return {
...r,
toasts: [t.toast, ...r.toasts].slice(0, Pt)
};
case "UPDATE_TOAST":
return {
...r,
toasts: r.toasts.map(
(n) => n.id === t.toast.id ? { ...n, ...t.toast } : n
)
};
case "DISMISS_TOAST": {
const { toastId: n } = t;
return n ? Le(n) : r.toasts.forEach((d) => {
Le(d.id);
}), {
...r,
toasts: r.toasts.map(
(d) => d.id === n || n === void 0 ? {
...d,
open: !1
} : d
)
};
}
case "REMOVE_TOAST":
return t.toastId === void 0 ? {
...r,
toasts: []
} : {
...r,
toasts: r.toasts.filter((n) => n.id !== t.toastId)
};
}
}, Z = [];
let ee = { toasts: [] };
function X(r) {
ee = Dt(ee, r), Z.forEach((t) => {
t(ee);
});
}
function Nt({ ...r }) {
const t = $t(), n = (c) => X({
type: "UPDATE_TOAST",
toast: { ...c, id: t }
}), d = () => X({ type: "DISMISS_TOAST", toastId: t });
return X({
type: "ADD_TOAST",
toast: {
...r,
id: t,
open: !0,
onOpenChange: (c) => {
c || d();
}
}
}), {
id: t,
dismiss: d,
update: n
};
}
function ir() {
const [r, t] = S.useState(ee);
return S.useEffect(() => (Z.push(t), () => {
const n = Z.indexOf(t);
n > -1 && Z.splice(n, 1);
}), [r]), {
...r,
toast: Nt,
dismiss: (n) => X({ type: "DISMISS_TOAST", toastId: n })
};
}
var We = ["light", "dark"], It = "(prefers-color-scheme: dark)";
S.createContext(void 0);
S.memo(({ forcedTheme: r, storageKey: t, attribute: n, enableSystem: d, enableColorScheme: c, defaultTheme: u, value: f, attrs: m, nonce: v }) => {
let O = u === "system", w = n === "class" ? `var d=document.documentElement,c=d.classList;${`c.remove(${m.map((C) => `'${C}'`).join(",")})`};` : `var d=document.documentElement,n='${n}',s='setAttribute';`, _ = c ? We.includes(u) && u ? `if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${u}'` : "if(e==='light'||e==='dark')d.style.colorScheme=e" : "", x = (C, P = !1, W = !0) => {
let k = f ? f[C] : C, g = P ? C + "|| ''" : `'${k}'`, I = "";
return c && W && !P && We.includes(C) && (I += `d.style.colorScheme = '${C}';`), n === "class" ? P || k ? I += `c.add(${g})` : I += "null" : k && (I += `d[s](n,${g})`), I;
}, N = r ? `!function(){${w}${x(r)}}()` : d ? `!function(){try{${w}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${O})){var t='${It}',m=window.matchMedia(t);if(m.media!==t||m.matches){${x("dark")}}else{${x("light")}}}else if(e){${f ? `var x=${JSON.stringify(f)};` : ""}${x(f ? "x[e]" : "e", !0)}}${O ? "" : "else{" + x(u, !1, !1) + "}"}${_}}catch(e){}}()` : `!function(){try{${w}var e=localStorage.getItem('${t}');if(e){${f ? `var x=${JSON.stringify(f)};` : ""}${x(f ? "x[e]" : "e", !0)}}else{${x(u, !1, !1)};}${_}}catch(t){}}();`;
return S.createElement("script", { nonce: v, dangerouslySetInnerHTML: { __html: N } });
});
Array(12).fill(0);
D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, D.createElement("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z", clipRule: "evenodd" }));
D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", height: "20", width: "20" }, D.createElement("path", { fillRule: "evenodd", d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z", clipRule: "evenodd" }));
D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, D.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z", clipRule: "evenodd" }));
D.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", height: "20", width: "20" }, D.createElement("path", { fillRule: "evenodd", d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z", clipRule: "evenodd" }));
var pe = 1, Yt = class {
constructor() {
this.subscribe = (r) => (this.subscribers.push(r), () => {
let t = this.subscribers.indexOf(r);
this.subscribers.splice(t, 1);
}), this.publish = (r) => {
this.subscribers.forEach((t) => t(r));
}, this.addToast = (r) => {
this.publish(r), this.toasts = [...this.toasts, r];
}, this.create = (r) => {
var t;
let { message: n, ...d } = r, c = typeof (r == null ? void 0 : r.id) == "number" || ((t = r.id) == null ? void 0 : t.length) > 0 ? r.id : pe++, u = this.toasts.find((m) => m.id === c), f = r.dismissible === void 0 ? !0 : r.dismissible;
return u ? this.toasts = this.toasts.map((m) => m.id === c ? (this.publish({ ...m, ...r, id: c, title: n }), { ...m, ...r, id: c, dismissible: f, title: n }) : m) : this.addToast({ title: n, ...d, dismissible: f, id: c }), c;
}, this.dismiss = (r) => (r || this.toasts.forEach((t) => {
this.subscribers.forEach((n) => n({ id: t.id, dismiss: !0 }));
}), this.subscribers.forEach((t) => t({ id: r, dismiss: !0 })), r), this.message = (r, t) => this.create({ ...t, message: r }), this.error = (r, t) => this.create({ ...t, message: r, type: "error" }), this.success = (r, t) => this.create({ ...t, type: "success", message: r }), this.info = (r, t) => this.create({ ...t, type: "info", message: r }), this.warning = (r, t) => this.create({ ...t, type: "warning", message: r }), this.loading = (r, t) => this.create({ ...t, type: "loading", message: r }), this.promise = (r, t) => {
if (!t) return;
let n;
t.loading !== void 0 && (n = this.create({ ...t, promise: r, type: "loading", message: t.loading, description: typeof t.description != "function" ? t.description : void 0 }));
let d = r instanceof Promise ? r : r(), c = n !== void 0;
return d.then(async (u) => {
if (Ft(u) && !u.ok) {
c = !1;
let f = typeof t.error == "function" ? await t.error(`HTTP error! status: ${u.status}`) : t.error, m = typeof t.description == "function" ? await t.description(`HTTP error! status: ${u.status}`) : t.description;
this.create({ id: n, type: "error", message: f, description: m });
} else if (t.success !== void 0) {
c = !1;
let f = typeof t.success == "function" ? await t.success(u) : t.success, m = typeof t.description == "function" ? await t.description(u) : t.description;
this.create({ id: n, type: "success", message: f, description: m });
}
}).catch(async (u) => {
if (t.error !== void 0) {
c = !1;
let f = typeof t.error == "function" ? await t.error(u) : t.error, m = typeof t.description == "function" ? await t.description(u) : t.description;
this.create({ id: n, type: "error", message: f, description: m });
}
}).finally(() => {
var u;
c && (this.dismiss(n), n = void 0), (u = t.finally) == null || u.call(t);
}), n;
}, this.custom = (r, t) => {
let n = (t == null ? void 0 : t.id) || pe++;
return this.create({ jsx: r(n), id: n, ...t }), n;
}, this.subscribers = [], this.toasts = [];
}
}, A = new Yt(), Mt = (r, t) => {
let n = (t == null ? void 0 : t.id) || pe++;
return A.addToast({ title: r, ...t, id: n }), n;
}, Ft = (r) => r && typeof r == "object" && "ok" in r && typeof r.ok == "boolean" && "status" in r && typeof r.status == "number", zt = Mt, Lt = () => A.toasts, lr = Object.assign(zt, { success: A.success, info: A.info, warning: A.warning, error: A.error, custom: A.custom, message: A.message, promise: A.promise, dismiss: A.dismiss, loading: A.loading }, { getHistory: Lt });
function Wt(r, { insertAt: t } = {}) {
if (typeof document > "u") return;
let n = document.head || document.getElementsByTagName("head")[0], d = document.createElement("style");
d.type = "text/css", t === "top" && n.firstChild ? n.insertBefore(d, n.firstChild) : n.appendChild(d), d.styleSheet ? d.styleSheet.cssText = r : d.appendChild(document.createTextNode(r));
}
Wt(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);
function Y(...r) {
return kt(Ct(r));
}
const Bt = St(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
{
variants: {
variant: {
default: "bg-primary text-primary-foreground hover:bg-primary/90",
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
ghost: "hover:bg-accent hover:text-accent-foreground",
link: "text-primary underline-offset-4 hover:underline"
},
size: {
default: "h-10 px-4 py-2",
sm: "h-9 rounded-md px-3",
lg: "h-11 rounded-md px-8",
icon: "h-10 w-10"
}
},
defaultVariants: {
variant: "default",
size: "default"
}
}
), Vt = S.forwardRef(
({ className: r, variant: t, size: n, asChild: d = !1, ...c }, u) => {
const f = d ? Tt : "button";
return /* @__PURE__ */ E.jsx(
f,
{
className: Y(Bt({ variant: t, size: n, className: r })),
ref: u,
...c
}
);
}
);
Vt.displayName = "Button";
const Ut = S.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ E.jsx(
"div",
{
ref: n,
className: Y(
"rounded-lg border bg-card text-card-foreground shadow-sm",
r
),
...t
}
));
Ut.displayName = "Card";
const Ht = S.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ E.jsx(
"div",
{
ref: n,
className: Y("flex flex-col space-y-1.5 p-6", r),
...t
}
));
Ht.displayName = "CardHeader";
const Jt = S.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ E.jsx(
"h3",
{
ref: n,
className: Y(
"text-2xl font-semibold leading-none tracking-tight",
r
),
...t
}
));
Jt.displayName = "CardTitle";
const Xt = S.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ E.jsx(
"p",
{
ref: n,
className: Y("text-sm text-muted-foreground", r),
...t
}
));
Xt.displayName = "CardDescription";
const Kt = S.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ E.jsx("div", { ref: n, className: Y("p-6 pt-0", r), ...t }));
Kt.displayName = "CardContent";
const qt = S.forwardRef(({ className: r, ...t }, n) => /* @__PURE__ */ E.jsx(
"div",
{
ref: n,
className: Y("flex items-center p-6 pt-0", r),
...t
}
));
qt.displayName = "CardFooter";
const Gt = S.forwardRef(
({ className: r, ...t }, n) => /* @__PURE__ */ E.jsx(
"textarea",
{
className: Y(
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
r
),
ref: n,
...t
}
)
);
Gt.displayName = "Textarea";
export {
nr as BunnyLogo,
Vt as Button,
Ut as Card,
Kt as CardContent,
Ht as CardHeader,
Jt as CardTitle,
or as CarrotSpinner,
sr as DraggableCarrotButton,
Gt as Textarea,
Y as cn,
lr as toast,
ir as useToast
};