diff --git a/package.json b/package.json index f96bdbcd..c60e5d00 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "private": true, + "type": "module", "scripts": { "build": "turbo run build", "dev": "turbo run dev", diff --git a/packages/ecommerce/dist-lib/cart/useCartStore.d.ts b/packages/ecommerce/dist-lib/cart/useCartStore.d.ts index e3e99e8a..bb282cbb 100644 --- a/packages/ecommerce/dist-lib/cart/useCartStore.d.ts +++ b/packages/ecommerce/dist-lib/cart/useCartStore.d.ts @@ -1,10 +1,22 @@ import { CartState } from './types'; /** - * Global cart store. + * Global cart store — persisted to localStorage. * * Usage: * ```tsx * const { items, addItem, subtotal } = useCartStore(); * ``` */ -export declare const useCartStore: import('zustand').UseBoundStore>; +export declare const useCartStore: import('zustand').UseBoundStore, "setState" | "persist"> & { + setState(partial: CartState | Partial | ((state: CartState) => CartState | Partial), replace?: false): unknown; + setState(state: CartState | ((state: CartState) => CartState), replace: true): unknown; + persist: { + setOptions: (options: Partial>) => void; + clearStorage: () => void; + rehydrate: () => Promise | void; + hasHydrated: () => boolean; + onHydrate: (fn: (state: CartState) => void) => () => void; + onFinishHydration: (fn: (state: CartState) => void) => () => void; + getOptions: () => Partial>; + }; +}>; diff --git a/packages/ecommerce/dist-lib/checkout/CheckoutPage.d.ts b/packages/ecommerce/dist-lib/checkout/CheckoutPage.d.ts index f84c7182..3ab75960 100644 --- a/packages/ecommerce/dist-lib/checkout/CheckoutPage.d.ts +++ b/packages/ecommerce/dist-lib/checkout/CheckoutPage.d.ts @@ -16,6 +16,8 @@ export interface CheckoutPageProps { }) => void; /** Called when user clicks "Back to Cart". */ onBackToCart?: () => void; + /** Pre-fill shipping form fields (e.g. from user profile). */ + initialShipping?: Partial; /** Pre-filled tax amount, if known. */ tax?: number; /** Pre-filled shipping cost. */ @@ -27,4 +29,4 @@ export interface CheckoutPageProps { * Checkout page — two-column layout with shipping form + payment selector on * the left and an OrderSummary on the right. */ -export declare function CheckoutPage({ onPlaceOrder, onBackToCart, tax, shipping, className, }: CheckoutPageProps): import("react/jsx-runtime").JSX.Element; +export declare function CheckoutPage({ onPlaceOrder, onBackToCart, initialShipping, tax, shipping, className, }: CheckoutPageProps): import("react/jsx-runtime").JSX.Element; diff --git a/packages/ecommerce/dist-lib/lib-export.d.ts b/packages/ecommerce/dist-lib/lib-export.d.ts index 875873f7..760770c9 100644 --- a/packages/ecommerce/dist-lib/lib-export.d.ts +++ b/packages/ecommerce/dist-lib/lib-export.d.ts @@ -8,3 +8,15 @@ export { OrderSummary } from './checkout/OrderSummary'; export type { OrderSummaryProps } from './checkout/OrderSummary'; export { CheckoutPage } from './checkout/CheckoutPage'; export type { CheckoutPageProps, ShippingAddress, PaymentMethod, } from './checkout/CheckoutPage'; +export { PolicyPage } from './policies/PolicyPage'; +export type { PolicyPageProps } from './policies/PolicyPage'; +export { ShippingPage } from './policies/ShippingPage'; +export type { ShippingPageProps, ShippingRate } from './policies/ShippingPage'; +export { ReturnsPage } from './policies/ReturnsPage'; +export type { ReturnsPageProps } from './policies/ReturnsPage'; +export { PrivacyPolicyPage } from './policies/PrivacyPolicyPage'; +export type { PrivacyPolicyPageProps } from './policies/PrivacyPolicyPage'; +export { TermsPage } from './policies/TermsPage'; +export type { TermsPageProps } from './policies/TermsPage'; +export { PolicyLinks } from './policies/PolicyLinks'; +export type { PolicyLinksProps, PolicyLink } from './policies/PolicyLinks'; diff --git a/packages/ecommerce/dist-lib/pm-ecommerce.es.js b/packages/ecommerce/dist-lib/pm-ecommerce.es.js index ad8f96fc..a3190fc6 100644 --- a/packages/ecommerce/dist-lib/pm-ecommerce.es.js +++ b/packages/ecommerce/dist-lib/pm-ecommerce.es.js @@ -1,8 +1,8 @@ -import * as j from "react"; -import se, { useState as ir } from "react"; -import { Minus as it, Plus as lt, Trash2 as xr, ShoppingCart as lr, ShoppingBag as ct, CreditCard as dt, Bitcoin as ut } from "lucide-react"; +import * as k from "react"; +import te, { useState as cr } from "react"; +import { Minus as dt, Plus as ut, Trash2 as yr, ShoppingCart as dr, ShoppingBag as ft, CreditCard as pt, Bitcoin as mt, Truck as ht, Clock as wr, Globe as gt, DollarSign as bt, RotateCcw as xt, CheckCircle as vt, XCircle as yt } from "lucide-react"; import "react-dom"; -var Ve = { exports: {} }, pe = {}; +var Le = { exports: {} }, ye = {}; /** * @license React * react-jsx-runtime.production.min.js @@ -12,21 +12,21 @@ var Ve = { exports: {} }, pe = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var cr; -function ft() { - if (cr) return pe; - cr = 1; - var e = se, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 }; - function c(d, u, p) { - var m, v = {}, b = null, T = null; - p !== void 0 && (b = "" + p), u.key !== void 0 && (b = "" + u.key), u.ref !== void 0 && (T = u.ref); - for (m in u) o.call(u, m) && !i.hasOwnProperty(m) && (v[m] = u[m]); - if (d && d.defaultProps) for (m in u = d.defaultProps, u) v[m] === void 0 && (v[m] = u[m]); - return { $$typeof: t, type: d, key: b, ref: T, props: v, _owner: a.current }; +var ur; +function wt() { + if (ur) return ye; + ur = 1; + var e = te, o = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 }; + function d(c, u, p) { + var m, g = {}, j = null, x = null; + p !== void 0 && (j = "" + p), u.key !== void 0 && (j = "" + u.key), u.ref !== void 0 && (x = u.ref); + for (m in u) s.call(u, m) && !a.hasOwnProperty(m) && (g[m] = u[m]); + if (c && c.defaultProps) for (m in u = c.defaultProps, u) g[m] === void 0 && (g[m] = u[m]); + return { $$typeof: o, type: c, key: j, ref: x, props: g, _owner: i.current }; } - return pe.Fragment = n, pe.jsx = c, pe.jsxs = c, pe; + return ye.Fragment = r, ye.jsx = d, ye.jsxs = d, ye; } -var me = {}; +var we = {}; /** * @license React * react-jsx-runtime.development.js @@ -36,91 +36,91 @@ var me = {}; * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -var dr; -function pt() { - return dr || (dr = 1, process.env.NODE_ENV !== "production" && function() { - var e = se, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), I = Symbol.iterator, _ = "@@iterator"; - function R(r) { - if (r === null || typeof r != "object") +var fr; +function jt() { + return fr || (fr = 1, process.env.NODE_ENV !== "production" && function() { + var e = te, o = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), T = Symbol.iterator, S = "@@iterator"; + function h(n) { + if (n === null || typeof n != "object") return null; - var l = I && r[I] || r[_]; + var l = T && n[T] || n[S]; return typeof l == "function" ? l : null; } - var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - function C(r) { + var N = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + function C(n) { { - for (var l = arguments.length, f = new Array(l > 1 ? l - 1 : 0), g = 1; g < l; g++) - f[g - 1] = arguments[g]; - K("error", r, f); + for (var l = arguments.length, f = new Array(l > 1 ? l - 1 : 0), b = 1; b < l; b++) + f[b - 1] = arguments[b]; + D("error", n, f); } } - function K(r, l, f) { + function D(n, l, f) { { - var g = k.ReactDebugCurrentFrame, w = g.getStackAddendum(); - w !== "" && (l += "%s", f = f.concat([w])); - var S = f.map(function(y) { - return String(y); + var b = N.ReactDebugCurrentFrame, R = b.getStackAddendum(); + R !== "" && (l += "%s", f = f.concat([R])); + var _ = f.map(function(w) { + return String(w); }); - S.unshift("Warning: " + l), Function.prototype.apply.call(console[r], console, S); + _.unshift("Warning: " + l), Function.prototype.apply.call(console[n], console, _); } } - var W = !1, ee = !1, je = !1, Ce = !1, Re = !1, re; - re = Symbol.for("react.module.reference"); - function le(r) { - return !!(typeof r == "string" || typeof r == "function" || r === o || r === i || Re || r === a || r === p || r === m || Ce || r === T || W || ee || je || typeof r == "object" && r !== null && (r.$$typeof === b || r.$$typeof === v || r.$$typeof === c || r.$$typeof === d || r.$$typeof === u || // This needs to include all possible module reference object + var O = !1, z = !1, B = !1, ne = !1, Ne = !1, oe; + oe = Symbol.for("react.module.reference"); + function he(n) { + return !!(typeof n == "string" || typeof n == "function" || n === s || n === a || Ne || n === i || n === p || n === m || ne || n === x || O || z || B || typeof n == "object" && n !== null && (n.$$typeof === j || n.$$typeof === g || n.$$typeof === d || n.$$typeof === c || n.$$typeof === u || // 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. - r.$$typeof === re || r.getModuleId !== void 0)); + n.$$typeof === oe || n.getModuleId !== void 0)); } - function ce(r, l, f) { - var g = r.displayName; - if (g) - return g; - var w = l.displayName || l.name || ""; - return w !== "" ? f + "(" + w + ")" : f; + function ge(n, l, f) { + var b = n.displayName; + if (b) + return b; + var R = l.displayName || l.name || ""; + return R !== "" ? f + "(" + R + ")" : f; } - function N(r) { - return r.displayName || "Context"; + function E(n) { + return n.displayName || "Context"; } - function V(r) { - if (r == null) + function Y(n) { + if (n == null) return null; - if (typeof r.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function") - return r.displayName || r.name || null; - if (typeof r == "string") - return r; - switch (r) { - case o: + if (typeof n.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function") + return n.displayName || n.name || null; + if (typeof n == "string") + return n; + switch (n) { + case s: return "Fragment"; - case n: + case r: return "Portal"; - case i: - return "Profiler"; case a: + return "Profiler"; + case i: return "StrictMode"; case p: return "Suspense"; case m: return "SuspenseList"; } - if (typeof r == "object") - switch (r.$$typeof) { - case d: - var l = r; - return N(l) + ".Consumer"; + if (typeof n == "object") + switch (n.$$typeof) { case c: - var f = r; - return N(f._context) + ".Provider"; + var l = n; + return E(l) + ".Consumer"; + case d: + var f = n; + return E(f._context) + ".Provider"; case u: - return ce(r, r.render, "ForwardRef"); - case v: - var g = r.displayName || null; - return g !== null ? g : V(r.type) || "Memo"; - case b: { - var w = r, S = w._payload, y = w._init; + return ge(n, n.render, "ForwardRef"); + case g: + var b = n.displayName || null; + return b !== null ? b : Y(n.type) || "Memo"; + case j: { + var R = n, _ = R._payload, w = R._init; try { - return V(y(S)); + return Y(w(_)); } catch { return null; } @@ -128,373 +128,373 @@ function pt() { } return null; } - var $ = Object.assign, Y = 0, H, de, te, U, ue, M, qe; - function Ye() { + var W = Object.assign, H = 0, Z, be, se, J, xe, L, Ue; + function Be() { } - Ye.__reactDisabledLog = !0; - function Ir() { + Be.__reactDisabledLog = !0; + function $r() { { - if (Y === 0) { - H = console.log, de = console.info, te = console.warn, U = console.error, ue = console.group, M = console.groupCollapsed, qe = console.groupEnd; - var r = { + if (H === 0) { + Z = console.log, be = console.info, se = console.warn, J = console.error, xe = console.group, L = console.groupCollapsed, Ue = console.groupEnd; + var n = { configurable: !0, enumerable: !0, - value: Ye, + value: Be, writable: !0 }; Object.defineProperties(console, { - info: r, - log: r, - warn: r, - error: r, - group: r, - groupCollapsed: r, - groupEnd: r + info: n, + log: n, + warn: n, + error: n, + group: n, + groupCollapsed: n, + groupEnd: n }); } - Y++; + H++; } } - function zr() { + function Mr() { { - if (Y--, Y === 0) { - var r = { + if (H--, H === 0) { + var n = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { - log: $({}, r, { - value: H + log: W({}, n, { + value: Z }), - info: $({}, r, { - value: de + info: W({}, n, { + value: be }), - warn: $({}, r, { - value: te + warn: W({}, n, { + value: se }), - error: $({}, r, { - value: U + error: W({}, n, { + value: J }), - group: $({}, r, { - value: ue + group: W({}, n, { + value: xe }), - groupCollapsed: $({}, r, { - value: M + groupCollapsed: W({}, n, { + value: L }), - groupEnd: $({}, r, { - value: qe + groupEnd: W({}, n, { + value: Ue }) }); } - Y < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + H < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } - var Te = k.ReactCurrentDispatcher, Oe; - function Ne(r, l, f) { + var Oe = N.ReactCurrentDispatcher, Ie; + function Re(n, l, f) { { - if (Oe === void 0) + if (Ie === void 0) try { throw Error(); - } catch (w) { - var g = w.stack.trim().match(/\n( *(at )?)/); - Oe = g && g[1] || ""; + } catch (R) { + var b = R.stack.trim().match(/\n( *(at )?)/); + Ie = b && b[1] || ""; } return ` -` + Oe + r; +` + Ie + n; } } - var Ae = !1, Se; + var Ae = !1, ke; { - var Fr = typeof WeakMap == "function" ? WeakMap : Map; - Se = new Fr(); + var Dr = typeof WeakMap == "function" ? WeakMap : Map; + ke = new Dr(); } - function Ue(r, l) { - if (!r || Ae) + function He(n, l) { + if (!n || Ae) return ""; { - var f = Se.get(r); + var f = ke.get(n); if (f !== void 0) return f; } - var g; + var b; Ae = !0; - var w = Error.prepareStackTrace; + var R = Error.prepareStackTrace; Error.prepareStackTrace = void 0; - var S; - S = Te.current, Te.current = null, Ir(); + var _; + _ = Oe.current, Oe.current = null, $r(); try { if (l) { - var y = function() { + var w = function() { throw Error(); }; - if (Object.defineProperty(y.prototype, "props", { + if (Object.defineProperty(w.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { - Reflect.construct(y, []); - } catch (F) { - g = F; + Reflect.construct(w, []); + } catch (M) { + b = M; } - Reflect.construct(r, [], y); + Reflect.construct(n, [], w); } else { try { - y.call(); - } catch (F) { - g = F; + w.call(); + } catch (M) { + b = M; } - r.call(y.prototype); + n.call(w.prototype); } } else { try { throw Error(); - } catch (F) { - g = F; + } catch (M) { + b = M; } - r(); + n(); } - } catch (F) { - if (F && g && typeof F.stack == "string") { - for (var x = F.stack.split(` -`), z = g.stack.split(` -`), P = x.length - 1, O = z.length - 1; P >= 1 && O >= 0 && x[P] !== z[O]; ) - O--; - for (; P >= 1 && O >= 0; P--, O--) - if (x[P] !== z[O]) { - if (P !== 1 || O !== 1) + } catch (M) { + if (M && b && typeof M.stack == "string") { + for (var y = M.stack.split(` +`), $ = b.stack.split(` +`), I = y.length - 1, F = $.length - 1; I >= 1 && F >= 0 && y[I] !== $[F]; ) + F--; + for (; I >= 1 && F >= 0; I--, F--) + if (y[I] !== $[F]) { + if (I !== 1 || F !== 1) do - if (P--, O--, O < 0 || x[P] !== z[O]) { - var D = ` -` + x[P].replace(" at new ", " at "); - return r.displayName && D.includes("") && (D = D.replace("", r.displayName)), typeof r == "function" && Se.set(r, D), D; + if (I--, F--, F < 0 || y[I] !== $[F]) { + var V = ` +` + y[I].replace(" at new ", " at "); + return n.displayName && V.includes("") && (V = V.replace("", n.displayName)), typeof n == "function" && ke.set(n, V), V; } - while (P >= 1 && O >= 0); + while (I >= 1 && F >= 0); break; } } } finally { - Ae = !1, Te.current = S, zr(), Error.prepareStackTrace = w; + Ae = !1, Oe.current = _, Mr(), Error.prepareStackTrace = R; } - var oe = r ? r.displayName || r.name : "", X = oe ? Ne(oe) : ""; - return typeof r == "function" && Se.set(r, X), X; + var ie = n ? n.displayName || n.name : "", Q = ie ? Re(ie) : ""; + return typeof n == "function" && ke.set(n, Q), Q; } - function $r(r, l, f) { - return Ue(r, !1); + function Wr(n, l, f) { + return He(n, !1); } - function Mr(r) { - var l = r.prototype; + function Lr(n) { + var l = n.prototype; return !!(l && l.isReactComponent); } - function Ee(r, l, f) { - if (r == null) + function Se(n, l, f) { + if (n == null) return ""; - if (typeof r == "function") - return Ue(r, Mr(r)); - if (typeof r == "string") - return Ne(r); - switch (r) { + if (typeof n == "function") + return He(n, Lr(n)); + if (typeof n == "string") + return Re(n); + switch (n) { case p: - return Ne("Suspense"); + return Re("Suspense"); case m: - return Ne("SuspenseList"); + return Re("SuspenseList"); } - if (typeof r == "object") - switch (r.$$typeof) { + if (typeof n == "object") + switch (n.$$typeof) { case u: - return $r(r.render); - case v: - return Ee(r.type, l, f); - case b: { - var g = r, w = g._payload, S = g._init; + return Wr(n.render); + case g: + return Se(n.type, l, f); + case j: { + var b = n, R = b._payload, _ = b._init; try { - return Ee(S(w), l, f); + return Se(_(R), l, f); } catch { } } } return ""; } - var fe = Object.prototype.hasOwnProperty, Be = {}, Je = k.ReactDebugCurrentFrame; - function ke(r) { - if (r) { - var l = r._owner, f = Ee(r.type, r._source, l ? l.type : null); - Je.setExtraStackFrame(f); + var ve = Object.prototype.hasOwnProperty, Je = {}, Ke = N.ReactDebugCurrentFrame; + function Ee(n) { + if (n) { + var l = n._owner, f = Se(n.type, n._source, l ? l.type : null); + Ke.setExtraStackFrame(f); } else - Je.setExtraStackFrame(null); + Ke.setExtraStackFrame(null); } - function Dr(r, l, f, g, w) { + function Vr(n, l, f, b, R) { { - var S = Function.call.bind(fe); - for (var y in r) - if (S(r, y)) { - var x = void 0; + var _ = Function.call.bind(ve); + for (var w in n) + if (_(n, w)) { + var y = void 0; try { - if (typeof r[y] != "function") { - var z = Error((g || "React class") + ": " + f + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - throw z.name = "Invariant Violation", z; + if (typeof n[w] != "function") { + var $ = Error((b || "React class") + ": " + f + " type `" + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[w] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + throw $.name = "Invariant Violation", $; } - x = r[y](l, y, g, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); - } catch (P) { - x = P; + y = n[w](l, w, b, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (I) { + y = I; } - x && !(x instanceof Error) && (ke(w), C("%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).", g || "React class", f, y, typeof x), ke(null)), x instanceof Error && !(x.message in Be) && (Be[x.message] = !0, ke(w), C("Failed %s type: %s", f, x.message), ke(null)); + y && !(y instanceof Error) && (Ee(R), C("%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).", b || "React class", f, w, typeof y), Ee(null)), y instanceof Error && !(y.message in Je) && (Je[y.message] = !0, Ee(R), C("Failed %s type: %s", f, y.message), Ee(null)); } } } - var Vr = Array.isArray; - function Ie(r) { - return Vr(r); + var Yr = Array.isArray; + function Fe(n) { + return Yr(n); } - function Wr(r) { + function qr(n) { { - var l = typeof Symbol == "function" && Symbol.toStringTag, f = l && r[Symbol.toStringTag] || r.constructor.name || "Object"; + var l = typeof Symbol == "function" && Symbol.toStringTag, f = l && n[Symbol.toStringTag] || n.constructor.name || "Object"; return f; } } - function Lr(r) { + function Gr(n) { try { - return Ke(r), !1; + return Xe(n), !1; } catch { return !0; } } - function Ke(r) { - return "" + r; + function Xe(n) { + return "" + n; } - function He(r) { - if (Lr(r)) - return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Wr(r)), Ke(r); + function Ze(n) { + if (Gr(n)) + return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qr(n)), Xe(n); } - var Xe = k.ReactCurrentOwner, Gr = { + var Qe = N.ReactCurrentOwner, Ur = { key: !0, ref: !0, __self: !0, __source: !0 - }, Ze, Qe; - function qr(r) { - if (fe.call(r, "ref")) { - var l = Object.getOwnPropertyDescriptor(r, "ref").get; + }, er, rr; + function Br(n) { + if (ve.call(n, "ref")) { + var l = Object.getOwnPropertyDescriptor(n, "ref").get; if (l && l.isReactWarning) return !1; } - return r.ref !== void 0; + return n.ref !== void 0; } - function Yr(r) { - if (fe.call(r, "key")) { - var l = Object.getOwnPropertyDescriptor(r, "key").get; + function Hr(n) { + if (ve.call(n, "key")) { + var l = Object.getOwnPropertyDescriptor(n, "key").get; if (l && l.isReactWarning) return !1; } - return r.key !== void 0; + return n.key !== void 0; } - function Ur(r, l) { - typeof r.ref == "string" && Xe.current; + function Jr(n, l) { + typeof n.ref == "string" && Qe.current; } - function Br(r, l) { + function Kr(n, l) { { var f = function() { - Ze || (Ze = !0, C("%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)", l)); + er || (er = !0, C("%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)", l)); }; - f.isReactWarning = !0, Object.defineProperty(r, "key", { + f.isReactWarning = !0, Object.defineProperty(n, "key", { get: f, configurable: !0 }); } } - function Jr(r, l) { + function Xr(n, l) { { var f = function() { - Qe || (Qe = !0, C("%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)", l)); + rr || (rr = !0, C("%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)", l)); }; - f.isReactWarning = !0, Object.defineProperty(r, "ref", { + f.isReactWarning = !0, Object.defineProperty(n, "ref", { get: f, configurable: !0 }); } } - var Kr = function(r, l, f, g, w, S, y) { - var x = { + var Zr = function(n, l, f, b, R, _, w) { + var y = { // This tag allows us to uniquely identify this as a React Element - $$typeof: t, + $$typeof: o, // Built-in properties that belong on the element - type: r, + type: n, key: l, ref: f, - props: y, + props: w, // Record the component responsible for creating this element. - _owner: S + _owner: _ }; - return x._store = {}, Object.defineProperty(x._store, "validated", { + return y._store = {}, Object.defineProperty(y._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 - }), Object.defineProperty(x, "_self", { + }), Object.defineProperty(y, "_self", { configurable: !1, enumerable: !1, writable: !1, - value: g - }), Object.defineProperty(x, "_source", { + value: b + }), Object.defineProperty(y, "_source", { configurable: !1, enumerable: !1, writable: !1, - value: w - }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x; + value: R + }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y; }; - function Hr(r, l, f, g, w) { + function Qr(n, l, f, b, R) { { - var S, y = {}, x = null, z = null; - f !== void 0 && (He(f), x = "" + f), Yr(l) && (He(l.key), x = "" + l.key), qr(l) && (z = l.ref, Ur(l, w)); - for (S in l) - fe.call(l, S) && !Gr.hasOwnProperty(S) && (y[S] = l[S]); - if (r && r.defaultProps) { - var P = r.defaultProps; - for (S in P) - y[S] === void 0 && (y[S] = P[S]); + var _, w = {}, y = null, $ = null; + f !== void 0 && (Ze(f), y = "" + f), Hr(l) && (Ze(l.key), y = "" + l.key), Br(l) && ($ = l.ref, Jr(l, R)); + for (_ in l) + ve.call(l, _) && !Ur.hasOwnProperty(_) && (w[_] = l[_]); + if (n && n.defaultProps) { + var I = n.defaultProps; + for (_ in I) + w[_] === void 0 && (w[_] = I[_]); } - if (x || z) { - var O = typeof r == "function" ? r.displayName || r.name || "Unknown" : r; - x && Br(y, O), z && Jr(y, O); + if (y || $) { + var F = typeof n == "function" ? n.displayName || n.name || "Unknown" : n; + y && Kr(w, F), $ && Xr(w, F); } - return Kr(r, x, z, w, g, Xe.current, y); + return Zr(n, y, $, R, b, Qe.current, w); } } - var ze = k.ReactCurrentOwner, er = k.ReactDebugCurrentFrame; - function ne(r) { - if (r) { - var l = r._owner, f = Ee(r.type, r._source, l ? l.type : null); - er.setExtraStackFrame(f); + var ze = N.ReactCurrentOwner, tr = N.ReactDebugCurrentFrame; + function ae(n) { + if (n) { + var l = n._owner, f = Se(n.type, n._source, l ? l.type : null); + tr.setExtraStackFrame(f); } else - er.setExtraStackFrame(null); + tr.setExtraStackFrame(null); } - var Fe; - Fe = !1; - function $e(r) { - return typeof r == "object" && r !== null && r.$$typeof === t; + var $e; + $e = !1; + function Me(n) { + return typeof n == "object" && n !== null && n.$$typeof === o; } - function rr() { + function nr() { { if (ze.current) { - var r = V(ze.current.type); - if (r) + var n = Y(ze.current.type); + if (n) return ` -Check the render method of \`` + r + "`."; +Check the render method of \`` + n + "`."; } return ""; } } - function Xr(r) { + function et(n) { return ""; } - var tr = {}; - function Zr(r) { + var or = {}; + function rt(n) { { - var l = rr(); + var l = nr(); if (!l) { - var f = typeof r == "string" ? r : r.displayName || r.name; + var f = typeof n == "string" ? n : n.displayName || n.name; f && (l = ` Check the top-level render call using <` + f + ">."); @@ -502,41 +502,41 @@ Check the top-level render call using <` + f + ">."); return l; } } - function nr(r, l) { + function sr(n, l) { { - if (!r._store || r._store.validated || r.key != null) + if (!n._store || n._store.validated || n.key != null) return; - r._store.validated = !0; - var f = Zr(l); - if (tr[f]) + n._store.validated = !0; + var f = rt(l); + if (or[f]) return; - tr[f] = !0; - var g = ""; - r && r._owner && r._owner !== ze.current && (g = " It was passed a child from " + V(r._owner.type) + "."), ne(r), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, g), ne(null); + or[f] = !0; + var b = ""; + n && n._owner && n._owner !== ze.current && (b = " It was passed a child from " + Y(n._owner.type) + "."), ae(n), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, b), ae(null); } } - function or(r, l) { + function ar(n, l) { { - if (typeof r != "object") + if (typeof n != "object") return; - if (Ie(r)) - for (var f = 0; f < r.length; f++) { - var g = r[f]; - $e(g) && nr(g, l); + if (Fe(n)) + for (var f = 0; f < n.length; f++) { + var b = n[f]; + Me(b) && sr(b, l); } - else if ($e(r)) - r._store && (r._store.validated = !0); - else if (r) { - var w = R(r); - if (typeof w == "function" && w !== r.entries) - for (var S = w.call(r), y; !(y = S.next()).done; ) - $e(y.value) && nr(y.value, l); + else if (Me(n)) + n._store && (n._store.validated = !0); + else if (n) { + var R = h(n); + if (typeof R == "function" && R !== n.entries) + for (var _ = R.call(n), w; !(w = _.next()).done; ) + Me(w.value) && sr(w.value, l); } } } - function Qr(r) { + function tt(n) { { - var l = r.type; + var l = n.type; if (l == null || typeof l == "string") return; var f; @@ -544,286 +544,286 @@ Check the top-level render call using <` + f + ">."); f = l.propTypes; else if (typeof l == "object" && (l.$$typeof === u || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. - l.$$typeof === v)) + l.$$typeof === g)) f = l.propTypes; else return; if (f) { - var g = V(l); - Dr(f, r.props, "prop", g, r); - } else if (l.PropTypes !== void 0 && !Fe) { - Fe = !0; - var w = V(l); - C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown"); + var b = Y(l); + Vr(f, n.props, "prop", b, n); + } else if (l.PropTypes !== void 0 && !$e) { + $e = !0; + var R = Y(l); + C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown"); } typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } - function et(r) { + function nt(n) { { - for (var l = Object.keys(r.props), f = 0; f < l.length; f++) { - var g = l[f]; - if (g !== "children" && g !== "key") { - ne(r), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), ne(null); + for (var l = Object.keys(n.props), f = 0; f < l.length; f++) { + var b = l[f]; + if (b !== "children" && b !== "key") { + ae(n), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", b), ae(null); break; } } - r.ref !== null && (ne(r), C("Invalid attribute `ref` supplied to `React.Fragment`."), ne(null)); + n.ref !== null && (ae(n), C("Invalid attribute `ref` supplied to `React.Fragment`."), ae(null)); } } - var sr = {}; - function ar(r, l, f, g, w, S) { + var ir = {}; + function lr(n, l, f, b, R, _) { { - var y = le(r); - if (!y) { - var x = ""; - (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (x += " 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 z = Xr(); - z ? x += z : x += rr(); - var P; - r === null ? P = "null" : Ie(r) ? P = "array" : r !== void 0 && r.$$typeof === t ? (P = "<" + (V(r.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : P = typeof r, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, x); + var w = he(n); + if (!w) { + var y = ""; + (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (y += " 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 $ = et(); + $ ? y += $ : y += nr(); + var I; + n === null ? I = "null" : Fe(n) ? I = "array" : n !== void 0 && n.$$typeof === o ? (I = "<" + (Y(n.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : I = typeof n, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", I, y); } - var O = Hr(r, l, f, w, S); - if (O == null) - return O; - if (y) { - var D = l.children; - if (D !== void 0) - if (g) - if (Ie(D)) { - for (var oe = 0; oe < D.length; oe++) - or(D[oe], r); - Object.freeze && Object.freeze(D); + var F = Qr(n, l, f, R, _); + if (F == null) + return F; + if (w) { + var V = l.children; + if (V !== void 0) + if (b) + if (Fe(V)) { + for (var ie = 0; ie < V.length; ie++) + ar(V[ie], n); + Object.freeze && Object.freeze(V); } else C("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 - or(D, r); + ar(V, n); } - if (fe.call(l, "key")) { - var X = V(r), F = Object.keys(l).filter(function(at) { - return at !== "key"; - }), Me = F.length > 0 ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}"; - if (!sr[X + Me]) { - var st = F.length > 0 ? "{" + F.join(": ..., ") + ": ...}" : "{}"; + if (ve.call(l, "key")) { + var Q = Y(n), M = Object.keys(l).filter(function(ct) { + return ct !== "key"; + }), De = M.length > 0 ? "{key: someKey, " + M.join(": ..., ") + ": ...}" : "{key: someKey}"; + if (!ir[Q + De]) { + var lt = M.length > 0 ? "{" + M.join(": ..., ") + ": ...}" : "{}"; C(`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} />`, Me, X, st, X), sr[X + Me] = !0; + <%s key={someKey} {...props} />`, De, Q, lt, Q), ir[Q + De] = !0; } } - return r === o ? et(O) : Qr(O), O; + return n === s ? nt(F) : tt(F), F; } } - function rt(r, l, f) { - return ar(r, l, f, !0); + function ot(n, l, f) { + return lr(n, l, f, !0); } - function tt(r, l, f) { - return ar(r, l, f, !1); + function st(n, l, f) { + return lr(n, l, f, !1); } - var nt = tt, ot = rt; - me.Fragment = o, me.jsx = nt, me.jsxs = ot; - }()), me; + var at = st, it = ot; + we.Fragment = s, we.jsx = at, we.jsxs = it; + }()), we; } -process.env.NODE_ENV === "production" ? Ve.exports = ft() : Ve.exports = pt(); -var s = Ve.exports; -function ur(e, t) { +process.env.NODE_ENV === "production" ? Le.exports = wt() : Le.exports = jt(); +var t = Le.exports; +function pr(e, o) { if (typeof e == "function") - return e(t); - e != null && (e.current = t); + return e(o); + e != null && (e.current = o); } -function mt(...e) { - return (t) => { - let n = !1; - const o = e.map((a) => { - const i = ur(a, t); - return !n && typeof i == "function" && (n = !0), i; +function Ct(...e) { + return (o) => { + let r = !1; + const s = e.map((i) => { + const a = pr(i, o); + return !r && typeof a == "function" && (r = !0), a; }); - if (n) + if (r) return () => { - for (let a = 0; a < o.length; a++) { - const i = o[a]; - typeof i == "function" ? i() : ur(e[a], null); + for (let i = 0; i < s.length; i++) { + const a = s[i]; + typeof a == "function" ? a() : pr(e[i], null); } }; }; } -var bt = Symbol.for("react.lazy"), Pe = j[" use ".trim().toString()]; -function gt(e) { +var Nt = Symbol.for("react.lazy"), Pe = k[" use ".trim().toString()]; +function Rt(e) { return typeof e == "object" && e !== null && "then" in e; } -function yr(e) { - return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === bt && "_payload" in e && gt(e._payload); +function jr(e) { + return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Nt && "_payload" in e && Rt(e._payload); } // @__NO_SIDE_EFFECTS__ -function Le(e) { - const t = /* @__PURE__ */ vt(e), n = j.forwardRef((o, a) => { - let { children: i, ...c } = o; - yr(i) && typeof Pe == "function" && (i = Pe(i._payload)); - const d = j.Children.toArray(i), u = d.find(yt); +function qe(e) { + const o = /* @__PURE__ */ St(e), r = k.forwardRef((s, i) => { + let { children: a, ...d } = s; + jr(a) && typeof Pe == "function" && (a = Pe(a._payload)); + const c = k.Children.toArray(a), u = c.find(_t); if (u) { - const p = u.props.children, m = d.map((v) => v === u ? j.Children.count(p) > 1 ? j.Children.only(null) : j.isValidElement(p) ? p.props.children : null : v); - return /* @__PURE__ */ s.jsx(t, { ...c, ref: a, children: j.isValidElement(p) ? j.cloneElement(p, void 0, m) : null }); + const p = u.props.children, m = c.map((g) => g === u ? k.Children.count(p) > 1 ? k.Children.only(null) : k.isValidElement(p) ? p.props.children : null : g); + return /* @__PURE__ */ t.jsx(o, { ...d, ref: i, children: k.isValidElement(p) ? k.cloneElement(p, void 0, m) : null }); } - return /* @__PURE__ */ s.jsx(t, { ...c, ref: a, children: i }); + return /* @__PURE__ */ t.jsx(o, { ...d, ref: i, children: a }); }); - return n.displayName = `${e}.Slot`, n; + return r.displayName = `${e}.Slot`, r; } -var ht = /* @__PURE__ */ Le("Slot"); +var kt = /* @__PURE__ */ qe("Slot"); // @__NO_SIDE_EFFECTS__ -function vt(e) { - const t = j.forwardRef((n, o) => { - let { children: a, ...i } = n; - if (yr(a) && typeof Pe == "function" && (a = Pe(a._payload)), j.isValidElement(a)) { - const c = jt(a), d = wt(i, a.props); - return a.type !== j.Fragment && (d.ref = o ? mt(o, c) : c), j.cloneElement(a, d); +function St(e) { + const o = k.forwardRef((r, s) => { + let { children: i, ...a } = r; + if (jr(i) && typeof Pe == "function" && (i = Pe(i._payload)), k.isValidElement(i)) { + const d = Tt(i), c = Pt(a, i.props); + return i.type !== k.Fragment && (c.ref = s ? Ct(s, d) : d), k.cloneElement(i, c); } - return j.Children.count(a) > 1 ? j.Children.only(null) : null; + return k.Children.count(i) > 1 ? k.Children.only(null) : null; }); - return t.displayName = `${e}.SlotClone`, t; + return o.displayName = `${e}.SlotClone`, o; } -var xt = Symbol("radix.slottable"); -function yt(e) { - return j.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === xt; +var Et = Symbol("radix.slottable"); +function _t(e) { + return k.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Et; } -function wt(e, t) { - const n = { ...t }; - for (const o in t) { - const a = e[o], i = t[o]; - /^on[A-Z]/.test(o) ? a && i ? n[o] = (...d) => { - const u = i(...d); - return a(...d), u; - } : a && (n[o] = a) : o === "style" ? n[o] = { ...a, ...i } : o === "className" && (n[o] = [a, i].filter(Boolean).join(" ")); +function Pt(e, o) { + const r = { ...o }; + for (const s in o) { + const i = e[s], a = o[s]; + /^on[A-Z]/.test(s) ? i && a ? r[s] = (...c) => { + const u = a(...c); + return i(...c), u; + } : i && (r[s] = i) : s === "style" ? r[s] = { ...i, ...a } : s === "className" && (r[s] = [i, a].filter(Boolean).join(" ")); } - return { ...e, ...n }; + return { ...e, ...r }; } -function jt(e) { - var o, a; - let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning; - return n ? e.ref : (t = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref); +function Tt(e) { + var s, i; + let o = (s = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : s.get, r = o && "isReactWarning" in o && o.isReactWarning; + return r ? e.ref : (o = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, r = o && "isReactWarning" in o && o.isReactWarning, r ? e.props.ref : e.props.ref || e.ref); } -function wr(e) { - var t, n, o = ""; - if (typeof e == "string" || typeof e == "number") o += e; +function Cr(e) { + var o, r, s = ""; + if (typeof e == "string" || typeof e == "number") s += e; else if (typeof e == "object") if (Array.isArray(e)) { - var a = e.length; - for (t = 0; t < a; t++) e[t] && (n = wr(e[t])) && (o && (o += " "), o += n); - } else for (n in e) e[n] && (o && (o += " "), o += n); - return o; + var i = e.length; + for (o = 0; o < i; o++) e[o] && (r = Cr(e[o])) && (s && (s += " "), s += r); + } else for (r in e) e[r] && (s && (s += " "), s += r); + return s; } -function jr() { - for (var e, t, n = 0, o = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (t = wr(e)) && (o && (o += " "), o += t); - return o; +function Nr() { + for (var e, o, r = 0, s = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (o = Cr(e)) && (s && (s += " "), s += o); + return s; } -const fr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, pr = jr, Cr = (e, t) => (n) => { - var o; - if ((t == null ? void 0 : t.variants) == null) return pr(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className); - const { variants: a, defaultVariants: i } = t, c = Object.keys(a).map((p) => { - const m = n == null ? void 0 : n[p], v = i == null ? void 0 : i[p]; +const mr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, hr = Nr, Rr = (e, o) => (r) => { + var s; + if ((o == null ? void 0 : o.variants) == null) return hr(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className); + const { variants: i, defaultVariants: a } = o, d = Object.keys(i).map((p) => { + const m = r == null ? void 0 : r[p], g = a == null ? void 0 : a[p]; if (m === null) return null; - const b = fr(m) || fr(v); - return a[p][b]; - }), d = n && Object.entries(n).reduce((p, m) => { - let [v, b] = m; - return b === void 0 || (p[v] = b), p; - }, {}), u = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((p, m) => { - let { class: v, className: b, ...T } = m; - return Object.entries(T).every((I) => { - let [_, R] = I; - return Array.isArray(R) ? R.includes({ - ...i, - ...d - }[_]) : { - ...i, - ...d - }[_] === R; + const j = mr(m) || mr(g); + return i[p][j]; + }), c = r && Object.entries(r).reduce((p, m) => { + let [g, j] = m; + return j === void 0 || (p[g] = j), p; + }, {}), u = o == null || (s = o.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((p, m) => { + let { class: g, className: j, ...x } = m; + return Object.entries(x).every((T) => { + let [S, h] = T; + return Array.isArray(h) ? h.includes({ + ...a, + ...c + }[S]) : { + ...a, + ...c + }[S] === h; }) ? [ ...p, - v, - b + g, + j ] : p; }, []); - return pr(e, c, u, n == null ? void 0 : n.class, n == null ? void 0 : n.className); -}, Ge = "-", Ct = (e) => { - const t = Nt(e), { - conflictingClassGroups: n, - conflictingClassGroupModifiers: o + return hr(e, d, u, r == null ? void 0 : r.class, r == null ? void 0 : r.className); +}, Ge = "-", Ot = (e) => { + const o = At(e), { + conflictingClassGroups: r, + conflictingClassGroupModifiers: s } = e; return { - getClassGroupId: (c) => { - const d = c.split(Ge); - return d[0] === "" && d.length !== 1 && d.shift(), Rr(d, t) || Rt(c); + getClassGroupId: (d) => { + const c = d.split(Ge); + return c[0] === "" && c.length !== 1 && c.shift(), kr(c, o) || It(d); }, - getConflictingClassGroupIds: (c, d) => { - const u = n[c] || []; - return d && o[c] ? [...u, ...o[c]] : u; + getConflictingClassGroupIds: (d, c) => { + const u = r[d] || []; + return c && s[d] ? [...u, ...s[d]] : u; } }; -}, Rr = (e, t) => { - var c; +}, kr = (e, o) => { + var d; if (e.length === 0) - return t.classGroupId; - const n = e[0], o = t.nextPart.get(n), a = o ? Rr(e.slice(1), o) : void 0; - if (a) - return a; - if (t.validators.length === 0) + return o.classGroupId; + const r = e[0], s = o.nextPart.get(r), i = s ? kr(e.slice(1), s) : void 0; + if (i) + return i; + if (o.validators.length === 0) return; - const i = e.join(Ge); - return (c = t.validators.find(({ - validator: d - }) => d(i))) == null ? void 0 : c.classGroupId; -}, mr = /^\[(.+)\]$/, Rt = (e) => { - if (mr.test(e)) { - const t = mr.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":")); - if (n) - return "arbitrary.." + n; + const a = e.join(Ge); + return (d = o.validators.find(({ + validator: c + }) => c(a))) == null ? void 0 : d.classGroupId; +}, gr = /^\[(.+)\]$/, It = (e) => { + if (gr.test(e)) { + const o = gr.exec(e)[1], r = o == null ? void 0 : o.substring(0, o.indexOf(":")); + if (r) + return "arbitrary.." + r; } -}, Nt = (e) => { +}, At = (e) => { const { - theme: t, - prefix: n - } = e, o = { + theme: o, + prefix: r + } = e, s = { nextPart: /* @__PURE__ */ new Map(), validators: [] }; - return Et(Object.entries(e.classGroups), n).forEach(([i, c]) => { - We(c, o, i, t); - }), o; -}, We = (e, t, n, o) => { - e.forEach((a) => { - if (typeof a == "string") { - const i = a === "" ? t : br(t, a); - i.classGroupId = n; + return zt(Object.entries(e.classGroups), r).forEach(([a, d]) => { + Ve(d, s, a, o); + }), s; +}, Ve = (e, o, r, s) => { + e.forEach((i) => { + if (typeof i == "string") { + const a = i === "" ? o : br(o, i); + a.classGroupId = r; return; } - if (typeof a == "function") { - if (St(a)) { - We(a(o), t, n, o); + if (typeof i == "function") { + if (Ft(i)) { + Ve(i(s), o, r, s); return; } - t.validators.push({ - validator: a, - classGroupId: n + o.validators.push({ + validator: i, + classGroupId: r }); return; } - Object.entries(a).forEach(([i, c]) => { - We(c, br(t, i), n, o); + Object.entries(i).forEach(([a, d]) => { + Ve(d, br(o, a), r, s); }); }); -}, br = (e, t) => { - let n = e; - return t.split(Ge).forEach((o) => { - n.nextPart.has(o) || n.nextPart.set(o, { +}, br = (e, o) => { + let r = e; + return o.split(Ge).forEach((s) => { + r.nextPart.has(s) || r.nextPart.set(s, { nextPart: /* @__PURE__ */ new Map(), validators: [] - }), n = n.nextPart.get(o); - }), n; -}, St = (e) => e.isThemeGetter, Et = (e, t) => t ? e.map(([n, o]) => { - const a = o.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([c, d]) => [t + c, d])) : i); - return [n, a]; -}) : e, kt = (e) => { + }), r = r.nextPart.get(s); + }), r; +}, Ft = (e) => e.isThemeGetter, zt = (e, o) => o ? e.map(([r, s]) => { + const i = s.map((a) => typeof a == "string" ? o + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(([d, c]) => [o + d, c])) : a); + return [r, i]; +}) : e, $t = (e) => { if (e < 1) return { get: () => { @@ -831,179 +831,179 @@ const fr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, pr = jr, C set: () => { } }; - let t = 0, n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(); - const a = (i, c) => { - n.set(i, c), t++, t > e && (t = 0, o = n, n = /* @__PURE__ */ new Map()); + let o = 0, r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); + const i = (a, d) => { + r.set(a, d), o++, o > e && (o = 0, s = r, r = /* @__PURE__ */ new Map()); }; return { - get(i) { - let c = n.get(i); - if (c !== void 0) - return c; - if ((c = o.get(i)) !== void 0) - return a(i, c), c; + get(a) { + let d = r.get(a); + if (d !== void 0) + return d; + if ((d = s.get(a)) !== void 0) + return i(a, d), d; }, - set(i, c) { - n.has(i) ? n.set(i, c) : a(i, c); + set(a, d) { + r.has(a) ? r.set(a, d) : i(a, d); } }; -}, Nr = "!", _t = (e) => { +}, Sr = "!", Mt = (e) => { const { - separator: t, - experimentalParseClassName: n - } = e, o = t.length === 1, a = t[0], i = t.length, c = (d) => { + separator: o, + experimentalParseClassName: r + } = e, s = o.length === 1, i = o[0], a = o.length, d = (c) => { const u = []; - let p = 0, m = 0, v; - for (let R = 0; R < d.length; R++) { - let k = d[R]; + let p = 0, m = 0, g; + for (let h = 0; h < c.length; h++) { + let N = c[h]; if (p === 0) { - if (k === a && (o || d.slice(R, R + i) === t)) { - u.push(d.slice(m, R)), m = R + i; + if (N === i && (s || c.slice(h, h + a) === o)) { + u.push(c.slice(m, h)), m = h + a; continue; } - if (k === "/") { - v = R; + if (N === "/") { + g = h; continue; } } - k === "[" ? p++ : k === "]" && p--; + N === "[" ? p++ : N === "]" && p--; } - const b = u.length === 0 ? d : d.substring(m), T = b.startsWith(Nr), I = T ? b.substring(1) : b, _ = v && v > m ? v - m : void 0; + const j = u.length === 0 ? c : c.substring(m), x = j.startsWith(Sr), T = x ? j.substring(1) : j, S = g && g > m ? g - m : void 0; return { modifiers: u, - hasImportantModifier: T, - baseClassName: I, - maybePostfixModifierPosition: _ + hasImportantModifier: x, + baseClassName: T, + maybePostfixModifierPosition: S }; }; - return n ? (d) => n({ - className: d, - parseClassName: c - }) : c; -}, Pt = (e) => { + return r ? (c) => r({ + className: c, + parseClassName: d + }) : d; +}, Dt = (e) => { if (e.length <= 1) return e; - const t = []; - let n = []; - return e.forEach((o) => { - o[0] === "[" ? (t.push(...n.sort(), o), n = []) : n.push(o); - }), t.push(...n.sort()), t; -}, Tt = (e) => ({ - cache: kt(e.cacheSize), - parseClassName: _t(e), - ...Ct(e) -}), Ot = /\s+/, At = (e, t) => { + const o = []; + let r = []; + return e.forEach((s) => { + s[0] === "[" ? (o.push(...r.sort(), s), r = []) : r.push(s); + }), o.push(...r.sort()), o; +}, Wt = (e) => ({ + cache: $t(e.cacheSize), + parseClassName: Mt(e), + ...Ot(e) +}), Lt = /\s+/, Vt = (e, o) => { const { - parseClassName: n, - getClassGroupId: o, - getConflictingClassGroupIds: a - } = t, i = [], c = e.trim().split(Ot); - let d = ""; - for (let u = c.length - 1; u >= 0; u -= 1) { - const p = c[u], { + parseClassName: r, + getClassGroupId: s, + getConflictingClassGroupIds: i + } = o, a = [], d = e.trim().split(Lt); + let c = ""; + for (let u = d.length - 1; u >= 0; u -= 1) { + const p = d[u], { modifiers: m, - hasImportantModifier: v, - baseClassName: b, - maybePostfixModifierPosition: T - } = n(p); - let I = !!T, _ = o(I ? b.substring(0, T) : b); - if (!_) { - if (!I) { - d = p + (d.length > 0 ? " " + d : d); + hasImportantModifier: g, + baseClassName: j, + maybePostfixModifierPosition: x + } = r(p); + let T = !!x, S = s(T ? j.substring(0, x) : j); + if (!S) { + if (!T) { + c = p + (c.length > 0 ? " " + c : c); continue; } - if (_ = o(b), !_) { - d = p + (d.length > 0 ? " " + d : d); + if (S = s(j), !S) { + c = p + (c.length > 0 ? " " + c : c); continue; } - I = !1; + T = !1; } - const R = Pt(m).join(":"), k = v ? R + Nr : R, C = k + _; - if (i.includes(C)) + const h = Dt(m).join(":"), N = g ? h + Sr : h, C = N + S; + if (a.includes(C)) continue; - i.push(C); - const K = a(_, I); - for (let W = 0; W < K.length; ++W) { - const ee = K[W]; - i.push(k + ee); + a.push(C); + const D = i(S, T); + for (let O = 0; O < D.length; ++O) { + const z = D[O]; + a.push(N + z); } - d = p + (d.length > 0 ? " " + d : d); + c = p + (c.length > 0 ? " " + c : c); } - return d; + return c; }; -function It() { - let e = 0, t, n, o = ""; +function Yt() { + let e = 0, o, r, s = ""; for (; e < arguments.length; ) - (t = arguments[e++]) && (n = Sr(t)) && (o && (o += " "), o += n); - return o; + (o = arguments[e++]) && (r = Er(o)) && (s && (s += " "), s += r); + return s; } -const Sr = (e) => { +const Er = (e) => { if (typeof e == "string") return e; - let t, n = ""; - for (let o = 0; o < e.length; o++) - e[o] && (t = Sr(e[o])) && (n && (n += " "), n += t); - return n; + let o, r = ""; + for (let s = 0; s < e.length; s++) + e[s] && (o = Er(e[s])) && (r && (r += " "), r += o); + return r; }; -function zt(e, ...t) { - let n, o, a, i = c; - function c(u) { - const p = t.reduce((m, v) => v(m), e()); - return n = Tt(p), o = n.cache.get, a = n.cache.set, i = d, d(u); - } +function qt(e, ...o) { + let r, s, i, a = d; function d(u) { - const p = o(u); + const p = o.reduce((m, g) => g(m), e()); + return r = Wt(p), s = r.cache.get, i = r.cache.set, a = c, c(u); + } + function c(u) { + const p = s(u); if (p) return p; - const m = At(u, n); - return a(u, m), m; + const m = Vt(u, r); + return i(u, m), m; } return function() { - return i(It.apply(null, arguments)); + return a(Yt.apply(null, arguments)); }; } -const E = (e) => { - const t = (n) => n[e] || []; - return t.isThemeGetter = !0, t; -}, Er = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ft = /^\d+\/\d+$/, $t = /* @__PURE__ */ new Set(["px", "full", "screen"]), Mt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Dt = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Vt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Wt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Lt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, L = (e) => ae(e) || $t.has(e) || Ft.test(e), B = (e) => ie(e, "length", Ht), ae = (e) => !!e && !Number.isNaN(Number(e)), De = (e) => ie(e, "number", ae), be = (e) => !!e && Number.isInteger(Number(e)), Gt = (e) => e.endsWith("%") && ae(e.slice(0, -1)), h = (e) => Er.test(e), J = (e) => Mt.test(e), qt = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Yt = (e) => ie(e, qt, kr), Ut = (e) => ie(e, "position", kr), Bt = /* @__PURE__ */ new Set(["image", "url"]), Jt = (e) => ie(e, Bt, Zt), Kt = (e) => ie(e, "", Xt), ge = () => !0, ie = (e, t, n) => { - const o = Er.exec(e); - return o ? o[1] ? typeof t == "string" ? o[1] === t : t.has(o[1]) : n(o[2]) : !1; -}, Ht = (e) => ( +const P = (e) => { + const o = (r) => r[e] || []; + return o.isThemeGetter = !0, o; +}, _r = /^\[(?:([a-z-]+):)?(.+)\]$/i, Gt = /^\d+\/\d+$/, Ut = /* @__PURE__ */ new Set(["px", "full", "screen"]), Bt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ht = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Jt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Kt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Xt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, q = (e) => le(e) || Ut.has(e) || Gt.test(e), K = (e) => me(e, "length", sn), le = (e) => !!e && !Number.isNaN(Number(e)), We = (e) => me(e, "number", le), je = (e) => !!e && Number.isInteger(Number(e)), Zt = (e) => e.endsWith("%") && le(e.slice(0, -1)), v = (e) => _r.test(e), X = (e) => Bt.test(e), Qt = /* @__PURE__ */ new Set(["length", "size", "percentage"]), en = (e) => me(e, Qt, Pr), rn = (e) => me(e, "position", Pr), tn = /* @__PURE__ */ new Set(["image", "url"]), nn = (e) => me(e, tn, ln), on = (e) => me(e, "", an), Ce = () => !0, me = (e, o, r) => { + const s = _r.exec(e); + return s ? s[1] ? typeof o == "string" ? s[1] === o : o.has(s[1]) : r(s[2]) : !1; +}, sn = (e) => ( // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths. // For example, `hsl(0 0% 0%)` would be classified as a length without this check. // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough. - Dt.test(e) && !Vt.test(e) -), kr = () => !1, Xt = (e) => Wt.test(e), Zt = (e) => Lt.test(e), Qt = () => { - const e = E("colors"), t = E("spacing"), n = E("blur"), o = E("brightness"), a = E("borderColor"), i = E("borderRadius"), c = E("borderSpacing"), d = E("borderWidth"), u = E("contrast"), p = E("grayscale"), m = E("hueRotate"), v = E("invert"), b = E("gap"), T = E("gradientColorStops"), I = E("gradientColorStopPositions"), _ = E("inset"), R = E("margin"), k = E("opacity"), C = E("padding"), K = E("saturate"), W = E("scale"), ee = E("sepia"), je = E("skew"), Ce = E("space"), Re = E("translate"), re = () => ["auto", "contain", "none"], le = () => ["auto", "hidden", "clip", "visible", "scroll"], ce = () => ["auto", h, t], N = () => [h, t], V = () => ["", L, B], $ = () => ["auto", ae, h], Y = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], H = () => ["solid", "dashed", "dotted", "double", "none"], de = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], U = () => ["", "0", h], ue = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [ae, h]; + Ht.test(e) && !Jt.test(e) +), Pr = () => !1, an = (e) => Kt.test(e), ln = (e) => Xt.test(e), cn = () => { + const e = P("colors"), o = P("spacing"), r = P("blur"), s = P("brightness"), i = P("borderColor"), a = P("borderRadius"), d = P("borderSpacing"), c = P("borderWidth"), u = P("contrast"), p = P("grayscale"), m = P("hueRotate"), g = P("invert"), j = P("gap"), x = P("gradientColorStops"), T = P("gradientColorStopPositions"), S = P("inset"), h = P("margin"), N = P("opacity"), C = P("padding"), D = P("saturate"), O = P("scale"), z = P("sepia"), B = P("skew"), ne = P("space"), Ne = P("translate"), oe = () => ["auto", "contain", "none"], he = () => ["auto", "hidden", "clip", "visible", "scroll"], ge = () => ["auto", v, o], E = () => [v, o], Y = () => ["", q, K], W = () => ["auto", le, v], H = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Z = () => ["solid", "dashed", "dotted", "double", "none"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], se = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], J = () => ["", "0", v], xe = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => [le, v]; return { cacheSize: 500, separator: ":", theme: { - colors: [ge], - spacing: [L, B], - blur: ["none", "", J, h], - brightness: M(), + colors: [Ce], + spacing: [q, K], + blur: ["none", "", X, v], + brightness: L(), borderColor: [e], - borderRadius: ["none", "", "full", J, h], - borderSpacing: N(), - borderWidth: V(), - contrast: M(), - grayscale: U(), - hueRotate: M(), - invert: U(), - gap: N(), + borderRadius: ["none", "", "full", X, v], + borderSpacing: E(), + borderWidth: Y(), + contrast: L(), + grayscale: J(), + hueRotate: L(), + invert: J(), + gap: E(), gradientColorStops: [e], - gradientColorStopPositions: [Gt, B], - inset: ce(), - margin: ce(), - opacity: M(), - padding: N(), - saturate: M(), - scale: M(), - sepia: U(), - skew: M(), - space: N(), - translate: N() + gradientColorStopPositions: [Zt, K], + inset: ge(), + margin: ge(), + opacity: L(), + padding: E(), + saturate: L(), + scale: L(), + sepia: J(), + skew: L(), + space: E(), + translate: E() }, classGroups: { // Layout @@ -1012,7 +1012,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/aspect-ratio */ aspect: [{ - aspect: ["auto", "square", "video", h] + aspect: ["auto", "square", "video", v] }], /** * Container @@ -1024,21 +1024,21 @@ const E = (e) => { * @see https://tailwindcss.com/docs/columns */ columns: [{ - columns: [J] + columns: [X] }], /** * Break After * @see https://tailwindcss.com/docs/break-after */ "break-after": [{ - "break-after": ue() + "break-after": xe() }], /** * Break Before * @see https://tailwindcss.com/docs/break-before */ "break-before": [{ - "break-before": ue() + "break-before": xe() }], /** * Break Inside @@ -1097,49 +1097,49 @@ const E = (e) => { * @see https://tailwindcss.com/docs/object-position */ "object-position": [{ - object: [...Y(), h] + object: [...H(), v] }], /** * Overflow * @see https://tailwindcss.com/docs/overflow */ overflow: [{ - overflow: le() + overflow: he() }], /** * Overflow X * @see https://tailwindcss.com/docs/overflow */ "overflow-x": [{ - "overflow-x": le() + "overflow-x": he() }], /** * Overflow Y * @see https://tailwindcss.com/docs/overflow */ "overflow-y": [{ - "overflow-y": le() + "overflow-y": he() }], /** * Overscroll Behavior * @see https://tailwindcss.com/docs/overscroll-behavior */ overscroll: [{ - overscroll: re() + overscroll: oe() }], /** * Overscroll Behavior X * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-x": [{ - "overscroll-x": re() + "overscroll-x": oe() }], /** * Overscroll Behavior Y * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-y": [{ - "overscroll-y": re() + "overscroll-y": oe() }], /** * Position @@ -1151,63 +1151,63 @@ const E = (e) => { * @see https://tailwindcss.com/docs/top-right-bottom-left */ inset: [{ - inset: [_] + inset: [S] }], /** * Right / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-x": [{ - "inset-x": [_] + "inset-x": [S] }], /** * Top / Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-y": [{ - "inset-y": [_] + "inset-y": [S] }], /** * Start * @see https://tailwindcss.com/docs/top-right-bottom-left */ start: [{ - start: [_] + start: [S] }], /** * End * @see https://tailwindcss.com/docs/top-right-bottom-left */ end: [{ - end: [_] + end: [S] }], /** * Top * @see https://tailwindcss.com/docs/top-right-bottom-left */ top: [{ - top: [_] + top: [S] }], /** * Right * @see https://tailwindcss.com/docs/top-right-bottom-left */ right: [{ - right: [_] + right: [S] }], /** * Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ bottom: [{ - bottom: [_] + bottom: [S] }], /** * Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ left: [{ - left: [_] + left: [S] }], /** * Visibility @@ -1219,7 +1219,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/z-index */ z: [{ - z: ["auto", be, h] + z: ["auto", je, v] }], // Flexbox and Grid /** @@ -1227,7 +1227,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/flex-basis */ basis: [{ - basis: ce() + basis: ge() }], /** * Flex Direction @@ -1248,35 +1248,35 @@ const E = (e) => { * @see https://tailwindcss.com/docs/flex */ flex: [{ - flex: ["1", "auto", "initial", "none", h] + flex: ["1", "auto", "initial", "none", v] }], /** * Flex Grow * @see https://tailwindcss.com/docs/flex-grow */ grow: [{ - grow: U() + grow: J() }], /** * Flex Shrink * @see https://tailwindcss.com/docs/flex-shrink */ shrink: [{ - shrink: U() + shrink: J() }], /** * Order * @see https://tailwindcss.com/docs/order */ order: [{ - order: ["first", "last", "none", be, h] + order: ["first", "last", "none", je, v] }], /** * Grid Template Columns * @see https://tailwindcss.com/docs/grid-template-columns */ "grid-cols": [{ - "grid-cols": [ge] + "grid-cols": [Ce] }], /** * Grid Column Start / End @@ -1284,29 +1284,29 @@ const E = (e) => { */ "col-start-end": [{ col: ["auto", { - span: ["full", be, h] - }, h] + span: ["full", je, v] + }, v] }], /** * Grid Column Start * @see https://tailwindcss.com/docs/grid-column */ "col-start": [{ - "col-start": $() + "col-start": W() }], /** * Grid Column End * @see https://tailwindcss.com/docs/grid-column */ "col-end": [{ - "col-end": $() + "col-end": W() }], /** * Grid Template Rows * @see https://tailwindcss.com/docs/grid-template-rows */ "grid-rows": [{ - "grid-rows": [ge] + "grid-rows": [Ce] }], /** * Grid Row Start / End @@ -1314,22 +1314,22 @@ const E = (e) => { */ "row-start-end": [{ row: ["auto", { - span: [be, h] - }, h] + span: [je, v] + }, v] }], /** * Grid Row Start * @see https://tailwindcss.com/docs/grid-row */ "row-start": [{ - "row-start": $() + "row-start": W() }], /** * Grid Row End * @see https://tailwindcss.com/docs/grid-row */ "row-end": [{ - "row-end": $() + "row-end": W() }], /** * Grid Auto Flow @@ -1343,42 +1343,42 @@ const E = (e) => { * @see https://tailwindcss.com/docs/grid-auto-columns */ "auto-cols": [{ - "auto-cols": ["auto", "min", "max", "fr", h] + "auto-cols": ["auto", "min", "max", "fr", v] }], /** * Grid Auto Rows * @see https://tailwindcss.com/docs/grid-auto-rows */ "auto-rows": [{ - "auto-rows": ["auto", "min", "max", "fr", h] + "auto-rows": ["auto", "min", "max", "fr", v] }], /** * Gap * @see https://tailwindcss.com/docs/gap */ gap: [{ - gap: [b] + gap: [j] }], /** * Gap X * @see https://tailwindcss.com/docs/gap */ "gap-x": [{ - "gap-x": [b] + "gap-x": [j] }], /** * Gap Y * @see https://tailwindcss.com/docs/gap */ "gap-y": [{ - "gap-y": [b] + "gap-y": [j] }], /** * Justify Content * @see https://tailwindcss.com/docs/justify-content */ "justify-content": [{ - justify: ["normal", ...te()] + justify: ["normal", ...se()] }], /** * Justify Items @@ -1399,7 +1399,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/align-content */ "align-content": [{ - content: ["normal", ...te(), "baseline"] + content: ["normal", ...se(), "baseline"] }], /** * Align Items @@ -1420,7 +1420,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/place-content */ "place-content": [{ - "place-content": [...te(), "baseline"] + "place-content": [...se(), "baseline"] }], /** * Place Items @@ -1505,70 +1505,70 @@ const E = (e) => { * @see https://tailwindcss.com/docs/margin */ m: [{ - m: [R] + m: [h] }], /** * Margin X * @see https://tailwindcss.com/docs/margin */ mx: [{ - mx: [R] + mx: [h] }], /** * Margin Y * @see https://tailwindcss.com/docs/margin */ my: [{ - my: [R] + my: [h] }], /** * Margin Start * @see https://tailwindcss.com/docs/margin */ ms: [{ - ms: [R] + ms: [h] }], /** * Margin End * @see https://tailwindcss.com/docs/margin */ me: [{ - me: [R] + me: [h] }], /** * Margin Top * @see https://tailwindcss.com/docs/margin */ mt: [{ - mt: [R] + mt: [h] }], /** * Margin Right * @see https://tailwindcss.com/docs/margin */ mr: [{ - mr: [R] + mr: [h] }], /** * Margin Bottom * @see https://tailwindcss.com/docs/margin */ mb: [{ - mb: [R] + mb: [h] }], /** * Margin Left * @see https://tailwindcss.com/docs/margin */ ml: [{ - ml: [R] + ml: [h] }], /** * Space Between X * @see https://tailwindcss.com/docs/space */ "space-x": [{ - "space-x": [Ce] + "space-x": [ne] }], /** * Space Between X Reverse @@ -1580,7 +1580,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/space */ "space-y": [{ - "space-y": [Ce] + "space-y": [ne] }], /** * Space Between Y Reverse @@ -1593,51 +1593,51 @@ const E = (e) => { * @see https://tailwindcss.com/docs/width */ w: [{ - w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", h, t] + w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", v, o] }], /** * Min-Width * @see https://tailwindcss.com/docs/min-width */ "min-w": [{ - "min-w": [h, t, "min", "max", "fit"] + "min-w": [v, o, "min", "max", "fit"] }], /** * Max-Width * @see https://tailwindcss.com/docs/max-width */ "max-w": [{ - "max-w": [h, t, "none", "full", "min", "max", "fit", "prose", { - screen: [J] - }, J] + "max-w": [v, o, "none", "full", "min", "max", "fit", "prose", { + screen: [X] + }, X] }], /** * Height * @see https://tailwindcss.com/docs/height */ h: [{ - h: [h, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] + h: [v, o, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Min-Height * @see https://tailwindcss.com/docs/min-height */ "min-h": [{ - "min-h": [h, t, "min", "max", "fit", "svh", "lvh", "dvh"] + "min-h": [v, o, "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Max-Height * @see https://tailwindcss.com/docs/max-height */ "max-h": [{ - "max-h": [h, t, "min", "max", "fit", "svh", "lvh", "dvh"] + "max-h": [v, o, "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Size * @see https://tailwindcss.com/docs/size */ size: [{ - size: [h, t, "auto", "min", "max", "fit"] + size: [v, o, "auto", "min", "max", "fit"] }], // Typography /** @@ -1645,7 +1645,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/font-size */ "font-size": [{ - text: ["base", J, B] + text: ["base", X, K] }], /** * Font Smoothing @@ -1662,14 +1662,14 @@ const E = (e) => { * @see https://tailwindcss.com/docs/font-weight */ "font-weight": [{ - font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", De] + font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", We] }], /** * Font Family * @see https://tailwindcss.com/docs/font-family */ "font-family": [{ - font: [ge] + font: [Ce] }], /** * Font Variant Numeric @@ -1706,35 +1706,35 @@ const E = (e) => { * @see https://tailwindcss.com/docs/letter-spacing */ tracking: [{ - tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", h] + tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", v] }], /** * Line Clamp * @see https://tailwindcss.com/docs/line-clamp */ "line-clamp": [{ - "line-clamp": ["none", ae, De] + "line-clamp": ["none", le, We] }], /** * Line Height * @see https://tailwindcss.com/docs/line-height */ leading: [{ - leading: ["none", "tight", "snug", "normal", "relaxed", "loose", L, h] + leading: ["none", "tight", "snug", "normal", "relaxed", "loose", q, v] }], /** * List Style Image * @see https://tailwindcss.com/docs/list-style-image */ "list-image": [{ - "list-image": ["none", h] + "list-image": ["none", v] }], /** * List Style Type * @see https://tailwindcss.com/docs/list-style-type */ "list-style-type": [{ - list: ["none", "disc", "decimal", h] + list: ["none", "disc", "decimal", v] }], /** * List Style Position @@ -1756,7 +1756,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/placeholder-opacity */ "placeholder-opacity": [{ - "placeholder-opacity": [k] + "placeholder-opacity": [N] }], /** * Text Alignment @@ -1777,7 +1777,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/text-opacity */ "text-opacity": [{ - "text-opacity": [k] + "text-opacity": [N] }], /** * Text Decoration @@ -1789,21 +1789,21 @@ const E = (e) => { * @see https://tailwindcss.com/docs/text-decoration-style */ "text-decoration-style": [{ - decoration: [...H(), "wavy"] + decoration: [...Z(), "wavy"] }], /** * Text Decoration Thickness * @see https://tailwindcss.com/docs/text-decoration-thickness */ "text-decoration-thickness": [{ - decoration: ["auto", "from-font", L, B] + decoration: ["auto", "from-font", q, K] }], /** * Text Underline Offset * @see https://tailwindcss.com/docs/text-underline-offset */ "underline-offset": [{ - "underline-offset": ["auto", L, h] + "underline-offset": ["auto", q, v] }], /** * Text Decoration Color @@ -1834,14 +1834,14 @@ const E = (e) => { * @see https://tailwindcss.com/docs/text-indent */ indent: [{ - indent: N() + indent: E() }], /** * Vertical Alignment * @see https://tailwindcss.com/docs/vertical-align */ "vertical-align": [{ - align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", h] + align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", v] }], /** * Whitespace @@ -1869,7 +1869,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/content */ content: [{ - content: ["none", h] + content: ["none", v] }], // Backgrounds /** @@ -1892,7 +1892,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/background-opacity */ "bg-opacity": [{ - "bg-opacity": [k] + "bg-opacity": [N] }], /** * Background Origin @@ -1906,7 +1906,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/background-position */ "bg-position": [{ - bg: [...Y(), Ut] + bg: [...H(), rn] }], /** * Background Repeat @@ -1922,7 +1922,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/background-size */ "bg-size": [{ - bg: ["auto", "cover", "contain", Yt] + bg: ["auto", "cover", "contain", en] }], /** * Background Image @@ -1931,7 +1931,7 @@ const E = (e) => { "bg-image": [{ bg: ["none", { "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] - }, Jt] + }, nn] }], /** * Background Color @@ -1945,42 +1945,42 @@ const E = (e) => { * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from-pos": [{ - from: [I] + from: [T] }], /** * Gradient Color Stops Via Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via-pos": [{ - via: [I] + via: [T] }], /** * Gradient Color Stops To Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to-pos": [{ - to: [I] + to: [T] }], /** * Gradient Color Stops From * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from": [{ - from: [T] + from: [x] }], /** * Gradient Color Stops Via * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via": [{ - via: [T] + via: [x] }], /** * Gradient Color Stops To * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to": [{ - to: [T] + to: [x] }], // Borders /** @@ -1988,189 +1988,189 @@ const E = (e) => { * @see https://tailwindcss.com/docs/border-radius */ rounded: [{ - rounded: [i] + rounded: [a] }], /** * Border Radius Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-s": [{ - "rounded-s": [i] + "rounded-s": [a] }], /** * Border Radius End * @see https://tailwindcss.com/docs/border-radius */ "rounded-e": [{ - "rounded-e": [i] + "rounded-e": [a] }], /** * Border Radius Top * @see https://tailwindcss.com/docs/border-radius */ "rounded-t": [{ - "rounded-t": [i] + "rounded-t": [a] }], /** * Border Radius Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-r": [{ - "rounded-r": [i] + "rounded-r": [a] }], /** * Border Radius Bottom * @see https://tailwindcss.com/docs/border-radius */ "rounded-b": [{ - "rounded-b": [i] + "rounded-b": [a] }], /** * Border Radius Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-l": [{ - "rounded-l": [i] + "rounded-l": [a] }], /** * Border Radius Start Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-ss": [{ - "rounded-ss": [i] + "rounded-ss": [a] }], /** * Border Radius Start End * @see https://tailwindcss.com/docs/border-radius */ "rounded-se": [{ - "rounded-se": [i] + "rounded-se": [a] }], /** * Border Radius End End * @see https://tailwindcss.com/docs/border-radius */ "rounded-ee": [{ - "rounded-ee": [i] + "rounded-ee": [a] }], /** * Border Radius End Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-es": [{ - "rounded-es": [i] + "rounded-es": [a] }], /** * Border Radius Top Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-tl": [{ - "rounded-tl": [i] + "rounded-tl": [a] }], /** * Border Radius Top Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-tr": [{ - "rounded-tr": [i] + "rounded-tr": [a] }], /** * Border Radius Bottom Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-br": [{ - "rounded-br": [i] + "rounded-br": [a] }], /** * Border Radius Bottom Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-bl": [{ - "rounded-bl": [i] + "rounded-bl": [a] }], /** * Border Width * @see https://tailwindcss.com/docs/border-width */ "border-w": [{ - border: [d] + border: [c] }], /** * Border Width X * @see https://tailwindcss.com/docs/border-width */ "border-w-x": [{ - "border-x": [d] + "border-x": [c] }], /** * Border Width Y * @see https://tailwindcss.com/docs/border-width */ "border-w-y": [{ - "border-y": [d] + "border-y": [c] }], /** * Border Width Start * @see https://tailwindcss.com/docs/border-width */ "border-w-s": [{ - "border-s": [d] + "border-s": [c] }], /** * Border Width End * @see https://tailwindcss.com/docs/border-width */ "border-w-e": [{ - "border-e": [d] + "border-e": [c] }], /** * Border Width Top * @see https://tailwindcss.com/docs/border-width */ "border-w-t": [{ - "border-t": [d] + "border-t": [c] }], /** * Border Width Right * @see https://tailwindcss.com/docs/border-width */ "border-w-r": [{ - "border-r": [d] + "border-r": [c] }], /** * Border Width Bottom * @see https://tailwindcss.com/docs/border-width */ "border-w-b": [{ - "border-b": [d] + "border-b": [c] }], /** * Border Width Left * @see https://tailwindcss.com/docs/border-width */ "border-w-l": [{ - "border-l": [d] + "border-l": [c] }], /** * Border Opacity * @see https://tailwindcss.com/docs/border-opacity */ "border-opacity": [{ - "border-opacity": [k] + "border-opacity": [N] }], /** * Border Style * @see https://tailwindcss.com/docs/border-style */ "border-style": [{ - border: [...H(), "hidden"] + border: [...Z(), "hidden"] }], /** * Divide Width X * @see https://tailwindcss.com/docs/divide-width */ "divide-x": [{ - "divide-x": [d] + "divide-x": [c] }], /** * Divide Width X Reverse @@ -2182,7 +2182,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/divide-width */ "divide-y": [{ - "divide-y": [d] + "divide-y": [c] }], /** * Divide Width Y Reverse @@ -2194,105 +2194,105 @@ const E = (e) => { * @see https://tailwindcss.com/docs/divide-opacity */ "divide-opacity": [{ - "divide-opacity": [k] + "divide-opacity": [N] }], /** * Divide Style * @see https://tailwindcss.com/docs/divide-style */ "divide-style": [{ - divide: H() + divide: Z() }], /** * Border Color * @see https://tailwindcss.com/docs/border-color */ "border-color": [{ - border: [a] + border: [i] }], /** * Border Color X * @see https://tailwindcss.com/docs/border-color */ "border-color-x": [{ - "border-x": [a] + "border-x": [i] }], /** * Border Color Y * @see https://tailwindcss.com/docs/border-color */ "border-color-y": [{ - "border-y": [a] + "border-y": [i] }], /** * Border Color S * @see https://tailwindcss.com/docs/border-color */ "border-color-s": [{ - "border-s": [a] + "border-s": [i] }], /** * Border Color E * @see https://tailwindcss.com/docs/border-color */ "border-color-e": [{ - "border-e": [a] + "border-e": [i] }], /** * Border Color Top * @see https://tailwindcss.com/docs/border-color */ "border-color-t": [{ - "border-t": [a] + "border-t": [i] }], /** * Border Color Right * @see https://tailwindcss.com/docs/border-color */ "border-color-r": [{ - "border-r": [a] + "border-r": [i] }], /** * Border Color Bottom * @see https://tailwindcss.com/docs/border-color */ "border-color-b": [{ - "border-b": [a] + "border-b": [i] }], /** * Border Color Left * @see https://tailwindcss.com/docs/border-color */ "border-color-l": [{ - "border-l": [a] + "border-l": [i] }], /** * Divide Color * @see https://tailwindcss.com/docs/divide-color */ "divide-color": [{ - divide: [a] + divide: [i] }], /** * Outline Style * @see https://tailwindcss.com/docs/outline-style */ "outline-style": [{ - outline: ["", ...H()] + outline: ["", ...Z()] }], /** * Outline Offset * @see https://tailwindcss.com/docs/outline-offset */ "outline-offset": [{ - "outline-offset": [L, h] + "outline-offset": [q, v] }], /** * Outline Width * @see https://tailwindcss.com/docs/outline-width */ "outline-w": [{ - outline: [L, B] + outline: [q, K] }], /** * Outline Color @@ -2306,7 +2306,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/ring-width */ "ring-w": [{ - ring: V() + ring: Y() }], /** * Ring Width Inset @@ -2325,14 +2325,14 @@ const E = (e) => { * @see https://tailwindcss.com/docs/ring-opacity */ "ring-opacity": [{ - "ring-opacity": [k] + "ring-opacity": [N] }], /** * Ring Offset Width * @see https://tailwindcss.com/docs/ring-offset-width */ "ring-offset-w": [{ - "ring-offset": [L, B] + "ring-offset": [q, K] }], /** * Ring Offset Color @@ -2347,35 +2347,35 @@ const E = (e) => { * @see https://tailwindcss.com/docs/box-shadow */ shadow: [{ - shadow: ["", "inner", "none", J, Kt] + shadow: ["", "inner", "none", X, on] }], /** * Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow-color */ "shadow-color": [{ - shadow: [ge] + shadow: [Ce] }], /** * Opacity * @see https://tailwindcss.com/docs/opacity */ opacity: [{ - opacity: [k] + opacity: [N] }], /** * Mix Blend Mode * @see https://tailwindcss.com/docs/mix-blend-mode */ "mix-blend": [{ - "mix-blend": [...de(), "plus-lighter", "plus-darker"] + "mix-blend": [...be(), "plus-lighter", "plus-darker"] }], /** * Background Blend Mode * @see https://tailwindcss.com/docs/background-blend-mode */ "bg-blend": [{ - "bg-blend": de() + "bg-blend": be() }], // Filters /** @@ -2391,14 +2391,14 @@ const E = (e) => { * @see https://tailwindcss.com/docs/blur */ blur: [{ - blur: [n] + blur: [r] }], /** * Brightness * @see https://tailwindcss.com/docs/brightness */ brightness: [{ - brightness: [o] + brightness: [s] }], /** * Contrast @@ -2412,7 +2412,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/drop-shadow */ "drop-shadow": [{ - "drop-shadow": ["", "none", J, h] + "drop-shadow": ["", "none", X, v] }], /** * Grayscale @@ -2433,21 +2433,21 @@ const E = (e) => { * @see https://tailwindcss.com/docs/invert */ invert: [{ - invert: [v] + invert: [g] }], /** * Saturate * @see https://tailwindcss.com/docs/saturate */ saturate: [{ - saturate: [K] + saturate: [D] }], /** * Sepia * @see https://tailwindcss.com/docs/sepia */ sepia: [{ - sepia: [ee] + sepia: [z] }], /** * Backdrop Filter @@ -2462,14 +2462,14 @@ const E = (e) => { * @see https://tailwindcss.com/docs/backdrop-blur */ "backdrop-blur": [{ - "backdrop-blur": [n] + "backdrop-blur": [r] }], /** * Backdrop Brightness * @see https://tailwindcss.com/docs/backdrop-brightness */ "backdrop-brightness": [{ - "backdrop-brightness": [o] + "backdrop-brightness": [s] }], /** * Backdrop Contrast @@ -2497,28 +2497,28 @@ const E = (e) => { * @see https://tailwindcss.com/docs/backdrop-invert */ "backdrop-invert": [{ - "backdrop-invert": [v] + "backdrop-invert": [g] }], /** * Backdrop Opacity * @see https://tailwindcss.com/docs/backdrop-opacity */ "backdrop-opacity": [{ - "backdrop-opacity": [k] + "backdrop-opacity": [N] }], /** * Backdrop Saturate * @see https://tailwindcss.com/docs/backdrop-saturate */ "backdrop-saturate": [{ - "backdrop-saturate": [K] + "backdrop-saturate": [D] }], /** * Backdrop Sepia * @see https://tailwindcss.com/docs/backdrop-sepia */ "backdrop-sepia": [{ - "backdrop-sepia": [ee] + "backdrop-sepia": [z] }], // Tables /** @@ -2533,21 +2533,21 @@ const E = (e) => { * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing": [{ - "border-spacing": [c] + "border-spacing": [d] }], /** * Border Spacing X * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing-x": [{ - "border-spacing-x": [c] + "border-spacing-x": [d] }], /** * Border Spacing Y * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing-y": [{ - "border-spacing-y": [c] + "border-spacing-y": [d] }], /** * Table Layout @@ -2569,35 +2569,35 @@ const E = (e) => { * @see https://tailwindcss.com/docs/transition-property */ transition: [{ - transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", h] + transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", v] }], /** * Transition Duration * @see https://tailwindcss.com/docs/transition-duration */ duration: [{ - duration: M() + duration: L() }], /** * Transition Timing Function * @see https://tailwindcss.com/docs/transition-timing-function */ ease: [{ - ease: ["linear", "in", "out", "in-out", h] + ease: ["linear", "in", "out", "in-out", v] }], /** * Transition Delay * @see https://tailwindcss.com/docs/transition-delay */ delay: [{ - delay: M() + delay: L() }], /** * Animation * @see https://tailwindcss.com/docs/animation */ animate: [{ - animate: ["none", "spin", "ping", "pulse", "bounce", h] + animate: ["none", "spin", "ping", "pulse", "bounce", v] }], // Transforms /** @@ -2612,63 +2612,63 @@ const E = (e) => { * @see https://tailwindcss.com/docs/scale */ scale: [{ - scale: [W] + scale: [O] }], /** * Scale X * @see https://tailwindcss.com/docs/scale */ "scale-x": [{ - "scale-x": [W] + "scale-x": [O] }], /** * Scale Y * @see https://tailwindcss.com/docs/scale */ "scale-y": [{ - "scale-y": [W] + "scale-y": [O] }], /** * Rotate * @see https://tailwindcss.com/docs/rotate */ rotate: [{ - rotate: [be, h] + rotate: [je, v] }], /** * Translate X * @see https://tailwindcss.com/docs/translate */ "translate-x": [{ - "translate-x": [Re] + "translate-x": [Ne] }], /** * Translate Y * @see https://tailwindcss.com/docs/translate */ "translate-y": [{ - "translate-y": [Re] + "translate-y": [Ne] }], /** * Skew X * @see https://tailwindcss.com/docs/skew */ "skew-x": [{ - "skew-x": [je] + "skew-x": [B] }], /** * Skew Y * @see https://tailwindcss.com/docs/skew */ "skew-y": [{ - "skew-y": [je] + "skew-y": [B] }], /** * Transform Origin * @see https://tailwindcss.com/docs/transform-origin */ "transform-origin": [{ - origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", h] + origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", v] }], // Interactivity /** @@ -2690,7 +2690,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/cursor */ cursor: [{ - cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", h] + cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", v] }], /** * Caret Color @@ -2725,126 +2725,126 @@ const E = (e) => { * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-m": [{ - "scroll-m": N() + "scroll-m": E() }], /** * Scroll Margin X * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mx": [{ - "scroll-mx": N() + "scroll-mx": E() }], /** * Scroll Margin Y * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-my": [{ - "scroll-my": N() + "scroll-my": E() }], /** * Scroll Margin Start * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-ms": [{ - "scroll-ms": N() + "scroll-ms": E() }], /** * Scroll Margin End * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-me": [{ - "scroll-me": N() + "scroll-me": E() }], /** * Scroll Margin Top * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mt": [{ - "scroll-mt": N() + "scroll-mt": E() }], /** * Scroll Margin Right * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mr": [{ - "scroll-mr": N() + "scroll-mr": E() }], /** * Scroll Margin Bottom * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mb": [{ - "scroll-mb": N() + "scroll-mb": E() }], /** * Scroll Margin Left * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-ml": [{ - "scroll-ml": N() + "scroll-ml": E() }], /** * Scroll Padding * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-p": [{ - "scroll-p": N() + "scroll-p": E() }], /** * Scroll Padding X * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-px": [{ - "scroll-px": N() + "scroll-px": E() }], /** * Scroll Padding Y * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-py": [{ - "scroll-py": N() + "scroll-py": E() }], /** * Scroll Padding Start * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-ps": [{ - "scroll-ps": N() + "scroll-ps": E() }], /** * Scroll Padding End * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pe": [{ - "scroll-pe": N() + "scroll-pe": E() }], /** * Scroll Padding Top * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pt": [{ - "scroll-pt": N() + "scroll-pt": E() }], /** * Scroll Padding Right * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pr": [{ - "scroll-pr": N() + "scroll-pr": E() }], /** * Scroll Padding Bottom * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pb": [{ - "scroll-pb": N() + "scroll-pb": E() }], /** * Scroll Padding Left * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pl": [{ - "scroll-pl": N() + "scroll-pl": E() }], /** * Scroll Snap Align @@ -2912,7 +2912,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/will-change */ "will-change": [{ - "will-change": ["auto", "scroll", "contents", "transform", h] + "will-change": ["auto", "scroll", "contents", "transform", v] }], // SVG /** @@ -2927,7 +2927,7 @@ const E = (e) => { * @see https://tailwindcss.com/docs/stroke-width */ "stroke-w": [{ - stroke: [L, B, De] + stroke: [q, K, We] }], /** * Stroke @@ -3002,11 +3002,11 @@ const E = (e) => { "font-size": ["leading"] } }; -}, en = /* @__PURE__ */ zt(Qt); +}, dn = /* @__PURE__ */ qt(cn); function A(...e) { - return en(jr(e)); + return dn(Nr(e)); } -const rn = Cr( +const un = Rr( "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: { @@ -3030,163 +3030,308 @@ const rn = Cr( size: "default" } } -), q = j.forwardRef( - ({ className: e, variant: t, size: n, asChild: o = !1, ...a }, i) => { - const c = o ? ht : "button"; - return /* @__PURE__ */ s.jsx(c, { className: A(rn({ variant: t, size: n, className: e })), ref: i, ...a }); +), U = k.forwardRef( + ({ className: e, variant: o, size: r, asChild: s = !1, ...i }, a) => { + const d = s ? kt : "button"; + return /* @__PURE__ */ t.jsx(d, { className: A(un({ variant: o, size: r, className: e })), ref: a, ...i }); } ); -q.displayName = "Button"; -const gr = (e) => { - let t; - const n = /* @__PURE__ */ new Set(), o = (p, m) => { - const v = typeof p == "function" ? p(t) : p; - if (!Object.is(v, t)) { - const b = t; - t = m ?? (typeof v != "object" || v === null) ? v : Object.assign({}, t, v), n.forEach((T) => T(t, b)); +U.displayName = "Button"; +const xr = (e) => { + let o; + const r = /* @__PURE__ */ new Set(), s = (p, m) => { + const g = typeof p == "function" ? p(o) : p; + if (!Object.is(g, o)) { + const j = o; + o = m ?? (typeof g != "object" || g === null) ? g : Object.assign({}, o, g), r.forEach((x) => x(o, j)); } - }, a = () => t, d = { setState: o, getState: a, getInitialState: () => u, subscribe: (p) => (n.add(p), () => n.delete(p)) }, u = t = e(o, a, d); - return d; -}, tn = (e) => e ? gr(e) : gr, nn = (e) => e; -function on(e, t = nn) { - const n = se.useSyncExternalStore( + }, i = () => o, c = { setState: s, getState: i, getInitialState: () => u, subscribe: (p) => (r.add(p), () => r.delete(p)) }, u = o = e(s, i, c); + return c; +}, fn = (e) => e ? xr(e) : xr, pn = (e) => e; +function mn(e, o = pn) { + const r = te.useSyncExternalStore( e.subscribe, - se.useCallback(() => t(e.getState()), [e, t]), - se.useCallback(() => t(e.getInitialState()), [e, t]) + te.useCallback(() => o(e.getState()), [e, o]), + te.useCallback(() => o(e.getInitialState()), [e, o]) ); - return se.useDebugValue(n), n; + return te.useDebugValue(r), r; } -const hr = (e) => { - const t = tn(e), n = (o) => on(t, o); - return Object.assign(n, t), n; -}, sn = (e) => e ? hr(e) : hr; -function _e(e) { +const hn = (e) => { + const o = fn(e), r = (s) => mn(o, s); + return Object.assign(r, o), r; +}, gn = (e) => hn; +function bn(e, o) { + let r; + try { + r = e(); + } catch { + return; + } return { - subtotal: e.reduce((t, n) => t + n.price * n.quantity, 0), - itemCount: e.reduce((t, n) => t + n.quantity, 0) + getItem: (i) => { + var a; + const d = (u) => u === null ? null : JSON.parse(u, void 0), c = (a = r.getItem(i)) != null ? a : null; + return c instanceof Promise ? c.then(d) : d(c); + }, + setItem: (i, a) => r.setItem(i, JSON.stringify(a, void 0)), + removeItem: (i) => r.removeItem(i) }; } -const G = sn((e) => ({ - items: [], - subtotal: 0, - itemCount: 0, - addItem: (t) => e((n) => { - const o = n.items.find((i) => i.id === t.id); - let a; - return o ? a = n.items.map( - (i) => i.id === t.id ? { ...i, quantity: i.quantity + (t.quantity ?? 1) } : i - ) : a = [...n.items, { ...t, quantity: t.quantity ?? 1 }], { items: a, ..._e(a) }; - }), - removeItem: (t) => e((n) => { - const o = n.items.filter((a) => a.id !== t); - return { items: o, ..._e(o) }; - }), - updateQuantity: (t, n) => e((o) => { - if (n <= 0) { - const i = o.items.filter((c) => c.id !== t); - return { items: i, ..._e(i) }; - } - const a = o.items.map( - (i) => i.id === t ? { ...i, quantity: n } : i +const Ye = (e) => (o) => { + try { + const r = e(o); + return r instanceof Promise ? r : { + then(s) { + return Ye(s)(r); + }, + catch(s) { + return this; + } + }; + } catch (r) { + return { + then(s) { + return this; + }, + catch(s) { + return Ye(s)(r); + } + }; + } +}, xn = (e, o) => (r, s, i) => { + let a = { + storage: bn(() => window.localStorage), + partialize: (h) => h, + version: 0, + merge: (h, N) => ({ + ...N, + ...h + }), + ...o + }, d = !1, c = 0; + const u = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Set(); + let m = a.storage; + if (!m) + return e( + (...h) => { + console.warn( + `[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.` + ), r(...h); + }, + s, + i ); - return { items: a, ..._e(a) }; - }), - clearCart: () => e({ items: [], subtotal: 0, itemCount: 0 }) -})); -function an({ item: e, className: t }) { - const n = G((i) => i.updateQuantity), o = G((i) => i.removeItem), a = e.price * e.quantity; - return /* @__PURE__ */ s.jsxs( + const g = () => { + const h = a.partialize({ ...s() }); + return m.setItem(a.name, { + state: h, + version: a.version + }); + }, j = i.setState; + i.setState = (h, N) => (j(h, N), g()); + const x = e( + (...h) => (r(...h), g()), + s, + i + ); + i.getInitialState = () => x; + let T; + const S = () => { + var h, N; + if (!m) return; + const C = ++c; + d = !1, u.forEach((O) => { + var z; + return O((z = s()) != null ? z : x); + }); + const D = ((N = a.onRehydrateStorage) == null ? void 0 : N.call(a, (h = s()) != null ? h : x)) || void 0; + return Ye(m.getItem.bind(m))(a.name).then((O) => { + if (O) + if (typeof O.version == "number" && O.version !== a.version) { + if (a.migrate) { + const z = a.migrate( + O.state, + O.version + ); + return z instanceof Promise ? z.then((B) => [!0, B]) : [!0, z]; + } + console.error( + "State loaded from storage couldn't be migrated since no migrate function was provided" + ); + } else + return [!1, O.state]; + return [!1, void 0]; + }).then((O) => { + var z; + if (C !== c) + return; + const [B, ne] = O; + if (T = a.merge( + ne, + (z = s()) != null ? z : x + ), r(T, !0), B) + return g(); + }).then(() => { + C === c && (D == null || D(T, void 0), T = s(), d = !0, p.forEach((O) => O(T))); + }).catch((O) => { + C === c && (D == null || D(void 0, O)); + }); + }; + return i.persist = { + setOptions: (h) => { + a = { + ...a, + ...h + }, h.storage && (m = h.storage); + }, + clearStorage: () => { + m == null || m.removeItem(a.name); + }, + getOptions: () => a, + rehydrate: () => S(), + hasHydrated: () => d, + onHydrate: (h) => (u.add(h), () => { + u.delete(h); + }), + onFinishHydration: (h) => (p.add(h), () => { + p.delete(h); + }) + }, a.skipHydration || S(), T || x; +}, vn = xn; +function _e(e) { + return { + subtotal: e.reduce((o, r) => o + r.price * r.quantity, 0), + itemCount: e.reduce((o, r) => o + r.quantity, 0) + }; +} +const G = gn()( + vn( + (e) => ({ + items: [], + subtotal: 0, + itemCount: 0, + addItem: (o) => e((r) => { + const s = r.items.find((a) => a.id === o.id); + let i; + return s ? i = r.items.map( + (a) => a.id === o.id ? { ...a, quantity: a.quantity + (o.quantity ?? 1) } : a + ) : i = [...r.items, { ...o, quantity: o.quantity ?? 1 }], { items: i, ..._e(i) }; + }), + removeItem: (o) => e((r) => { + const s = r.items.filter((i) => i.id !== o); + return { items: s, ..._e(s) }; + }), + updateQuantity: (o, r) => e((s) => { + if (r <= 0) { + const a = s.items.filter((d) => d.id !== o); + return { items: a, ..._e(a) }; + } + const i = s.items.map( + (a) => a.id === o ? { ...a, quantity: r } : a + ); + return { items: i, ..._e(i) }; + }), + clearCart: () => e({ items: [], subtotal: 0, itemCount: 0 }) + }), + { + name: "pm-ecommerce-cart" + } + ) +); +function yn({ item: e, className: o }) { + const r = G((a) => a.updateQuantity), s = G((a) => a.removeItem), i = e.price * e.quantity; + return /* @__PURE__ */ t.jsxs( "div", { className: A( "flex items-center gap-4 rounded-lg border border-border/50 bg-card p-4 transition-colors hover:bg-accent/5", - t + o ), children: [ - e.image ? /* @__PURE__ */ s.jsx( + e.image ? /* @__PURE__ */ t.jsx( "img", { src: e.image, alt: e.title, className: "h-20 w-20 shrink-0 rounded-md object-cover" } - ) : /* @__PURE__ */ s.jsx("div", { className: "flex h-20 w-20 shrink-0 items-center justify-center rounded-md bg-muted text-xs text-muted-foreground", children: "No img" }), - /* @__PURE__ */ s.jsxs("div", { className: "flex flex-1 flex-col gap-1 min-w-0", children: [ - /* @__PURE__ */ s.jsx("span", { className: "truncate font-medium", children: e.title }), - e.variant && /* @__PURE__ */ s.jsx("span", { className: "text-xs text-muted-foreground", children: e.variant }), - /* @__PURE__ */ s.jsxs("span", { className: "text-sm text-muted-foreground", children: [ + ) : /* @__PURE__ */ t.jsx("div", { className: "flex h-20 w-20 shrink-0 items-center justify-center rounded-md bg-muted text-xs text-muted-foreground", children: "No img" }), + /* @__PURE__ */ t.jsxs("div", { className: "flex flex-1 flex-col gap-1 min-w-0", children: [ + /* @__PURE__ */ t.jsx("span", { className: "truncate font-medium", children: e.title }), + e.variant && /* @__PURE__ */ t.jsx("span", { className: "text-xs text-muted-foreground", children: e.variant }), + /* @__PURE__ */ t.jsxs("span", { className: "text-sm text-muted-foreground", children: [ "$", e.price.toFixed(2), " each" ] }) ] }), - /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-1", children: [ - /* @__PURE__ */ s.jsx( - q, + /* @__PURE__ */ t.jsxs("div", { className: "flex items-center gap-1", children: [ + /* @__PURE__ */ t.jsx( + U, { variant: "outline", size: "icon", className: "h-8 w-8", - onClick: () => n(e.id, e.quantity - 1), + onClick: () => r(e.id, e.quantity - 1), "aria-label": "Decrease quantity", - children: /* @__PURE__ */ s.jsx(it, { className: "h-3 w-3" }) + children: /* @__PURE__ */ t.jsx(dt, { className: "h-3 w-3" }) } ), - /* @__PURE__ */ s.jsx("span", { className: "w-8 text-center text-sm font-medium tabular-nums", children: e.quantity }), - /* @__PURE__ */ s.jsx( - q, + /* @__PURE__ */ t.jsx("span", { className: "w-8 text-center text-sm font-medium tabular-nums", children: e.quantity }), + /* @__PURE__ */ t.jsx( + U, { variant: "outline", size: "icon", className: "h-8 w-8", - onClick: () => n(e.id, e.quantity + 1), + onClick: () => r(e.id, e.quantity + 1), "aria-label": "Increase quantity", - children: /* @__PURE__ */ s.jsx(lt, { className: "h-3 w-3" }) + children: /* @__PURE__ */ t.jsx(ut, { className: "h-3 w-3" }) } ) ] }), - /* @__PURE__ */ s.jsxs("span", { className: "w-20 text-right font-semibold tabular-nums", children: [ + /* @__PURE__ */ t.jsxs("span", { className: "w-20 text-right font-semibold tabular-nums", children: [ "$", - a.toFixed(2) + i.toFixed(2) ] }), - /* @__PURE__ */ s.jsx( - q, + /* @__PURE__ */ t.jsx( + U, { variant: "ghost", size: "icon", className: "h-8 w-8 text-destructive hover:text-destructive", - onClick: () => o(e.id), + onClick: () => s(e.id), "aria-label": `Remove ${e.title}`, - children: /* @__PURE__ */ s.jsx(xr, { className: "h-4 w-4" }) + children: /* @__PURE__ */ t.jsx(yr, { className: "h-4 w-4" }) } ) ] } ); } -const he = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s.jsx("div", { ref: n, className: A("rounded-lg border bg-card text-card-foreground shadow-sm", e), ...t })); -he.displayName = "Card"; -const ve = j.forwardRef( - ({ className: e, ...t }, n) => /* @__PURE__ */ s.jsx("div", { ref: n, className: A("flex flex-col space-y-1.5 p-6", e), ...t }) +const ce = k.forwardRef(({ className: e, ...o }, r) => /* @__PURE__ */ t.jsx("div", { ref: r, className: A("rounded-lg border bg-card text-card-foreground shadow-sm", e), ...o })); +ce.displayName = "Card"; +const de = k.forwardRef( + ({ className: e, ...o }, r) => /* @__PURE__ */ t.jsx("div", { ref: r, className: A("flex flex-col space-y-1.5 p-6", e), ...o }) ); -ve.displayName = "CardHeader"; -const xe = j.forwardRef( - ({ className: e, ...t }, n) => /* @__PURE__ */ s.jsx("h3", { ref: n, className: A("text-2xl font-semibold leading-none tracking-tight", e), ...t }) +de.displayName = "CardHeader"; +const ue = k.forwardRef( + ({ className: e, ...o }, r) => /* @__PURE__ */ t.jsx("h3", { ref: r, className: A("text-2xl font-semibold leading-none tracking-tight", e), ...o }) ); -xe.displayName = "CardTitle"; -const ln = j.forwardRef( - ({ className: e, ...t }, n) => /* @__PURE__ */ s.jsx("p", { ref: n, className: A("text-sm text-muted-foreground", e), ...t }) +ue.displayName = "CardTitle"; +const wn = k.forwardRef( + ({ className: e, ...o }, r) => /* @__PURE__ */ t.jsx("p", { ref: r, className: A("text-sm text-muted-foreground", e), ...o }) ); -ln.displayName = "CardDescription"; -const ye = j.forwardRef( - ({ className: e, ...t }, n) => /* @__PURE__ */ s.jsx("div", { ref: n, className: A("p-6 pt-0", e), ...t }) +wn.displayName = "CardDescription"; +const fe = k.forwardRef( + ({ className: e, ...o }, r) => /* @__PURE__ */ t.jsx("div", { ref: r, className: A("p-6 pt-0", e), ...o }) ); -ye.displayName = "CardContent"; -const _r = j.forwardRef( - ({ className: e, ...t }, n) => /* @__PURE__ */ s.jsx("div", { ref: n, className: A("flex items-center p-6 pt-0", e), ...t }) +fe.displayName = "CardContent"; +const Tr = k.forwardRef( + ({ className: e, ...o }, r) => /* @__PURE__ */ t.jsx("div", { ref: r, className: A("flex items-center p-6 pt-0", e), ...o }) ); -_r.displayName = "CardFooter"; -var cn = [ +Tr.displayName = "CardFooter"; +var jn = [ "a", "button", "div", @@ -3204,140 +3349,155 @@ var cn = [ "span", "svg", "ul" -], dn = cn.reduce((e, t) => { - const n = /* @__PURE__ */ Le(`Primitive.${t}`), o = j.forwardRef((a, i) => { - const { asChild: c, ...d } = a, u = c ? n : t; - return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s.jsx(u, { ...d, ref: i }); +], Cn = jn.reduce((e, o) => { + const r = /* @__PURE__ */ qe(`Primitive.${o}`), s = k.forwardRef((i, a) => { + const { asChild: d, ...c } = i, u = d ? r : o; + return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ t.jsx(u, { ...c, ref: a }); }); - return o.displayName = `Primitive.${t}`, { ...e, [t]: o }; -}, {}), un = "Separator", vr = "horizontal", fn = ["horizontal", "vertical"], Pr = j.forwardRef((e, t) => { - const { decorative: n, orientation: o = vr, ...a } = e, i = pn(o) ? o : vr, d = n ? { role: "none" } : { "aria-orientation": i === "vertical" ? i : void 0, role: "separator" }; - return /* @__PURE__ */ s.jsx( - dn.div, + return s.displayName = `Primitive.${o}`, { ...e, [o]: s }; +}, {}), Nn = "Separator", vr = "horizontal", Rn = ["horizontal", "vertical"], Or = k.forwardRef((e, o) => { + const { decorative: r, orientation: s = vr, ...i } = e, a = kn(s) ? s : vr, c = r ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" }; + return /* @__PURE__ */ t.jsx( + Cn.div, { - "data-orientation": i, - ...d, - ...a, - ref: t + "data-orientation": a, + ...c, + ...i, + ref: o } ); }); -Pr.displayName = un; -function pn(e) { - return fn.includes(e); +Or.displayName = Nn; +function kn(e) { + return Rn.includes(e); } -var Tr = Pr; -const we = j.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...o }, a) => /* @__PURE__ */ s.jsx( - Tr, +var Ir = Or; +const pe = k.forwardRef(({ className: e, orientation: o = "horizontal", decorative: r = !0, ...s }, i) => /* @__PURE__ */ t.jsx( + Ir, { - ref: a, - decorative: n, - orientation: t, - className: A("shrink-0 bg-border", t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", e), - ...o + ref: i, + decorative: r, + orientation: o, + className: A("shrink-0 bg-border", o === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", e), + ...s } )); -we.displayName = Tr.displayName; -function jn({ onCheckout: e, className: t }) { - const n = G((c) => c.items), o = G((c) => c.subtotal), a = G((c) => c.itemCount), i = G((c) => c.clearCart); - return n.length === 0 ? /* @__PURE__ */ s.jsxs("div", { className: A("flex flex-col items-center justify-center gap-6 py-24", t), children: [ - /* @__PURE__ */ s.jsx("div", { className: "flex h-24 w-24 items-center justify-center rounded-full bg-muted", children: /* @__PURE__ */ s.jsx(lr, { className: "h-10 w-10 text-muted-foreground" }) }), - /* @__PURE__ */ s.jsxs("div", { className: "text-center", children: [ - /* @__PURE__ */ s.jsx("h2", { className: "text-xl font-semibold", children: "Your cart is empty" }), - /* @__PURE__ */ s.jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: "Add some products to get started." }) +pe.displayName = Ir.displayName; +const Sn = [ + { label: "Returns & Refunds", href: "/returns" }, + { label: "Shipping", href: "/shipping" }, + { label: "Privacy Policy", href: "/privacy" }, + { label: "Terms of Service", href: "/terms" } +]; +function Ar({ links: e = Sn, className: o }) { + return /* @__PURE__ */ t.jsx("nav", { className: A("flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-xs text-muted-foreground", o), children: e.map((r, s) => /* @__PURE__ */ t.jsxs(te.Fragment, { children: [ + s > 0 && /* @__PURE__ */ t.jsx("span", { className: "hidden sm:inline", "aria-hidden": !0, children: "·" }), + /* @__PURE__ */ t.jsx("a", { href: r.href, className: "hover:text-foreground hover:underline transition-colors", children: r.label }) + ] }, r.href)) }); +} +function $n({ onCheckout: e, className: o }) { + const r = G((d) => d.items), s = G((d) => d.subtotal), i = G((d) => d.itemCount), a = G((d) => d.clearCart); + return r.length === 0 ? /* @__PURE__ */ t.jsxs("div", { className: A("flex flex-col items-center justify-center gap-6 py-24", o), children: [ + /* @__PURE__ */ t.jsx("div", { className: "flex h-24 w-24 items-center justify-center rounded-full bg-muted", children: /* @__PURE__ */ t.jsx(dr, { className: "h-10 w-10 text-muted-foreground" }) }), + /* @__PURE__ */ t.jsxs("div", { className: "text-center", children: [ + /* @__PURE__ */ t.jsx("h2", { className: "text-xl font-semibold", children: "Your cart is empty" }), + /* @__PURE__ */ t.jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: "Add some products to get started." }) ] }) - ] }) : /* @__PURE__ */ s.jsx("div", { className: A("mx-auto max-w-3xl space-y-6", t), children: /* @__PURE__ */ s.jsxs(he, { children: [ - /* @__PURE__ */ s.jsxs(ve, { className: "flex-row items-center justify-between space-y-0", children: [ - /* @__PURE__ */ s.jsxs(xe, { className: "flex items-center gap-2 text-xl", children: [ - /* @__PURE__ */ s.jsx(lr, { className: "h-5 w-5" }), - "Cart", - /* @__PURE__ */ s.jsxs("span", { className: "text-sm font-normal text-muted-foreground", children: [ - "(", - a, - " ", - a === 1 ? "item" : "items", - ")" + ] }) : /* @__PURE__ */ t.jsxs("div", { className: A("mx-auto max-w-3xl space-y-6", o), children: [ + /* @__PURE__ */ t.jsxs(ce, { children: [ + /* @__PURE__ */ t.jsxs(de, { className: "flex-row items-center justify-between space-y-0", children: [ + /* @__PURE__ */ t.jsxs(ue, { className: "flex items-center gap-2 text-xl", children: [ + /* @__PURE__ */ t.jsx(dr, { className: "h-5 w-5" }), + "Cart", + /* @__PURE__ */ t.jsxs("span", { className: "text-sm font-normal text-muted-foreground", children: [ + "(", + i, + " ", + i === 1 ? "item" : "items", + ")" + ] }) + ] }), + /* @__PURE__ */ t.jsxs(U, { variant: "ghost", size: "sm", className: "text-destructive", onClick: a, children: [ + /* @__PURE__ */ t.jsx(yr, { className: "mr-1 h-4 w-4" }), + "Clear" ] }) ] }), - /* @__PURE__ */ s.jsxs(q, { variant: "ghost", size: "sm", className: "text-destructive", onClick: i, children: [ - /* @__PURE__ */ s.jsx(xr, { className: "mr-1 h-4 w-4" }), - "Clear" + /* @__PURE__ */ t.jsx(fe, { className: "space-y-3", children: r.map((d) => /* @__PURE__ */ t.jsx(yn, { item: d }, d.id)) }), + /* @__PURE__ */ t.jsx(pe, {}), + /* @__PURE__ */ t.jsxs(Tr, { className: "flex-col items-stretch gap-4 pt-6", children: [ + /* @__PURE__ */ t.jsxs("div", { className: "flex items-center justify-between text-lg font-semibold", children: [ + /* @__PURE__ */ t.jsx("span", { children: "Subtotal" }), + /* @__PURE__ */ t.jsxs("span", { className: "tabular-nums", children: [ + "$", + s.toFixed(2) + ] }) + ] }), + /* @__PURE__ */ t.jsx("p", { className: "text-xs text-muted-foreground", children: "Shipping and taxes calculated at checkout." }), + /* @__PURE__ */ t.jsx(U, { size: "lg", className: "w-full", onClick: e, children: "Proceed to Checkout" }) ] }) ] }), - /* @__PURE__ */ s.jsx(ye, { className: "space-y-3", children: n.map((c) => /* @__PURE__ */ s.jsx(an, { item: c }, c.id)) }), - /* @__PURE__ */ s.jsx(we, {}), - /* @__PURE__ */ s.jsxs(_r, { className: "flex-col items-stretch gap-4 pt-6", children: [ - /* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between text-lg font-semibold", children: [ - /* @__PURE__ */ s.jsx("span", { children: "Subtotal" }), - /* @__PURE__ */ s.jsxs("span", { className: "tabular-nums", children: [ - "$", - o.toFixed(2) - ] }) - ] }), - /* @__PURE__ */ s.jsx("p", { className: "text-xs text-muted-foreground", children: "Shipping and taxes calculated at checkout." }), - /* @__PURE__ */ s.jsx(q, { size: "lg", className: "w-full", onClick: e, children: "Proceed to Checkout" }) - ] }) - ] }) }); + /* @__PURE__ */ t.jsx(Ar, { className: "pt-2" }) + ] }); } -function mn({ tax: e, shipping: t, className: n }) { - const o = G((u) => u.items), a = G((u) => u.subtotal), i = e ?? 0, c = t ?? 0, d = a + i + c; - return /* @__PURE__ */ s.jsxs(he, { className: A("", n), children: [ - /* @__PURE__ */ s.jsx(ve, { children: /* @__PURE__ */ s.jsx(xe, { className: "text-lg", children: "Order Summary" }) }), - /* @__PURE__ */ s.jsxs(ye, { className: "space-y-4", children: [ - /* @__PURE__ */ s.jsx("ul", { className: "space-y-2 text-sm", children: o.map((u) => /* @__PURE__ */ s.jsxs("li", { className: "flex justify-between gap-2", children: [ - /* @__PURE__ */ s.jsxs("span", { className: "truncate text-muted-foreground", children: [ +function En({ tax: e, shipping: o, className: r }) { + const s = G((u) => u.items), i = G((u) => u.subtotal), a = e ?? 0, d = o ?? 0, c = i + a + d; + return /* @__PURE__ */ t.jsxs(ce, { className: A("", r), children: [ + /* @__PURE__ */ t.jsx(de, { children: /* @__PURE__ */ t.jsx(ue, { className: "text-lg", children: "Order Summary" }) }), + /* @__PURE__ */ t.jsxs(fe, { className: "space-y-4", children: [ + /* @__PURE__ */ t.jsx("ul", { className: "space-y-2 text-sm", children: s.map((u) => /* @__PURE__ */ t.jsxs("li", { className: "flex justify-between gap-2", children: [ + /* @__PURE__ */ t.jsxs("span", { className: "truncate text-muted-foreground", children: [ u.title, " × ", u.quantity ] }), - /* @__PURE__ */ s.jsxs("span", { className: "shrink-0 tabular-nums", children: [ + /* @__PURE__ */ t.jsxs("span", { className: "shrink-0 tabular-nums", children: [ "$", (u.price * u.quantity).toFixed(2) ] }) ] }, u.id)) }), - /* @__PURE__ */ s.jsx(we, {}), - /* @__PURE__ */ s.jsxs("div", { className: "flex justify-between text-sm", children: [ - /* @__PURE__ */ s.jsx("span", { className: "text-muted-foreground", children: "Subtotal" }), - /* @__PURE__ */ s.jsxs("span", { className: "tabular-nums", children: [ + /* @__PURE__ */ t.jsx(pe, {}), + /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between text-sm", children: [ + /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Subtotal" }), + /* @__PURE__ */ t.jsxs("span", { className: "tabular-nums", children: [ "$", - a.toFixed(2) + i.toFixed(2) ] }) ] }), - /* @__PURE__ */ s.jsxs("div", { className: "flex justify-between text-sm", children: [ - /* @__PURE__ */ s.jsx("span", { className: "text-muted-foreground", children: "Tax" }), - /* @__PURE__ */ s.jsx("span", { className: "tabular-nums", children: e !== void 0 ? `$${i.toFixed(2)}` : "Calculated at next step" }) + /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between text-sm", children: [ + /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Tax" }), + /* @__PURE__ */ t.jsx("span", { className: "tabular-nums", children: e !== void 0 ? `$${a.toFixed(2)}` : "Calculated at next step" }) ] }), - /* @__PURE__ */ s.jsxs("div", { className: "flex justify-between text-sm", children: [ - /* @__PURE__ */ s.jsx("span", { className: "text-muted-foreground", children: "Shipping" }), - /* @__PURE__ */ s.jsx("span", { className: "tabular-nums", children: t !== void 0 ? c === 0 ? "Free" : `$${c.toFixed(2)}` : "TBD" }) + /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between text-sm", children: [ + /* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: "Shipping" }), + /* @__PURE__ */ t.jsx("span", { className: "tabular-nums", children: o !== void 0 ? d === 0 ? "Free" : `$${d.toFixed(2)}` : "TBD" }) ] }), - /* @__PURE__ */ s.jsx(we, {}), - /* @__PURE__ */ s.jsxs("div", { className: "flex justify-between text-base font-semibold", children: [ - /* @__PURE__ */ s.jsx("span", { children: "Total" }), - /* @__PURE__ */ s.jsxs("span", { className: "tabular-nums", children: [ + /* @__PURE__ */ t.jsx(pe, {}), + /* @__PURE__ */ t.jsxs("div", { className: "flex justify-between text-base font-semibold", children: [ + /* @__PURE__ */ t.jsx("span", { children: "Total" }), + /* @__PURE__ */ t.jsxs("span", { className: "tabular-nums", children: [ "$", - d.toFixed(2) + c.toFixed(2) ] }) ] }) ] }) ] }); } -const Z = j.forwardRef( - ({ className: e, type: t, ...n }, o) => /* @__PURE__ */ s.jsx( +const ee = k.forwardRef( + ({ className: e, type: o, ...r }, s) => /* @__PURE__ */ t.jsx( "input", { - type: t, + type: o, className: A( "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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 md:text-sm", e ), - ref: o, - ...n + ref: s, + ...r } ) ); -Z.displayName = "Input"; -var bn = [ +ee.displayName = "Input"; +var _n = [ "a", "button", "div", @@ -3355,176 +3515,177 @@ var bn = [ "span", "svg", "ul" -], gn = bn.reduce((e, t) => { - const n = /* @__PURE__ */ Le(`Primitive.${t}`), o = j.forwardRef((a, i) => { - const { asChild: c, ...d } = a, u = c ? n : t; - return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ s.jsx(u, { ...d, ref: i }); +], Pn = _n.reduce((e, o) => { + const r = /* @__PURE__ */ qe(`Primitive.${o}`), s = k.forwardRef((i, a) => { + const { asChild: d, ...c } = i, u = d ? r : o; + return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ t.jsx(u, { ...c, ref: a }); }); - return o.displayName = `Primitive.${t}`, { ...e, [t]: o }; -}, {}), hn = "Label", Or = j.forwardRef((e, t) => /* @__PURE__ */ s.jsx( - gn.label, + return s.displayName = `Primitive.${o}`, { ...e, [o]: s }; +}, {}), Tn = "Label", Fr = k.forwardRef((e, o) => /* @__PURE__ */ t.jsx( + Pn.label, { ...e, - ref: t, - onMouseDown: (n) => { - var a; - n.target.closest("button, input, select, textarea") || ((a = e.onMouseDown) == null || a.call(e, n), !n.defaultPrevented && n.detail > 1 && n.preventDefault()); + ref: o, + onMouseDown: (r) => { + var i; + r.target.closest("button, input, select, textarea") || ((i = e.onMouseDown) == null || i.call(e, r), !r.defaultPrevented && r.detail > 1 && r.preventDefault()); } } )); -Or.displayName = hn; -var Ar = Or; -const vn = Cr( +Fr.displayName = Tn; +var zr = Fr; +const On = Rr( "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" -), Q = j.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ s.jsx(Ar, { ref: n, className: A(vn(), e), ...t })); -Q.displayName = Ar.displayName; -function Cn({ +), re = k.forwardRef(({ className: e, ...o }, r) => /* @__PURE__ */ t.jsx(zr, { ref: r, className: A(On(), e), ...o })); +re.displayName = zr.displayName; +function Mn({ onPlaceOrder: e, - onBackToCart: t, - tax: n, - shipping: o, + onBackToCart: o, + initialShipping: r, + tax: s, + shipping: i, className: a }) { - const i = G((b) => b.itemCount), [c, d] = ir("shopify"), [u, p] = ir({ - fullName: "", - email: "", - address: "", - city: "", - zip: "", - country: "" - }), m = (b, T) => p((I) => ({ ...I, [b]: T })), v = (b) => { - b.preventDefault(), e == null || e({ shipping: u, paymentMethod: c }); + const d = G((x) => x.itemCount), [c, u] = cr("shopify"), [p, m] = cr({ + fullName: (r == null ? void 0 : r.fullName) ?? "", + email: (r == null ? void 0 : r.email) ?? "", + address: (r == null ? void 0 : r.address) ?? "", + city: (r == null ? void 0 : r.city) ?? "", + zip: (r == null ? void 0 : r.zip) ?? "", + country: (r == null ? void 0 : r.country) ?? "" + }), g = (x, T) => m((S) => ({ ...S, [x]: T })), j = (x) => { + x.preventDefault(), e == null || e({ shipping: p, paymentMethod: c }); }; - return i === 0 ? /* @__PURE__ */ s.jsxs("div", { className: A("flex flex-col items-center justify-center gap-6 py-24", a), children: [ - /* @__PURE__ */ s.jsx(ct, { className: "h-12 w-12 text-muted-foreground" }), - /* @__PURE__ */ s.jsx("p", { className: "text-muted-foreground", children: "Your cart is empty — nothing to check out." }), - t && /* @__PURE__ */ s.jsx(q, { variant: "outline", onClick: t, children: "Back to Cart" }) - ] }) : /* @__PURE__ */ s.jsxs( + return d === 0 ? /* @__PURE__ */ t.jsxs("div", { className: A("flex flex-col items-center justify-center gap-6 py-24", a), children: [ + /* @__PURE__ */ t.jsx(ft, { className: "h-12 w-12 text-muted-foreground" }), + /* @__PURE__ */ t.jsx("p", { className: "text-muted-foreground", children: "Your cart is empty — nothing to check out." }), + o && /* @__PURE__ */ t.jsx(U, { variant: "outline", onClick: o, children: "Back to Cart" }) + ] }) : /* @__PURE__ */ t.jsxs( "form", { - onSubmit: v, + onSubmit: j, className: A("mx-auto grid max-w-5xl gap-8 lg:grid-cols-[1fr_380px]", a), children: [ - /* @__PURE__ */ s.jsxs("div", { className: "space-y-6", children: [ - /* @__PURE__ */ s.jsxs(he, { children: [ - /* @__PURE__ */ s.jsx(ve, { children: /* @__PURE__ */ s.jsx(xe, { className: "text-lg", children: "Shipping Information" }) }), - /* @__PURE__ */ s.jsxs(ye, { className: "grid gap-4 sm:grid-cols-2", children: [ - /* @__PURE__ */ s.jsxs("div", { className: "sm:col-span-2 space-y-1.5", children: [ - /* @__PURE__ */ s.jsx(Q, { htmlFor: "ck-name", children: "Full Name" }), - /* @__PURE__ */ s.jsx( - Z, + /* @__PURE__ */ t.jsxs("div", { className: "space-y-6", children: [ + /* @__PURE__ */ t.jsxs(ce, { children: [ + /* @__PURE__ */ t.jsx(de, { children: /* @__PURE__ */ t.jsx(ue, { className: "text-lg", children: "Shipping Information" }) }), + /* @__PURE__ */ t.jsxs(fe, { className: "grid gap-4 sm:grid-cols-2", children: [ + /* @__PURE__ */ t.jsxs("div", { className: "sm:col-span-2 space-y-1.5", children: [ + /* @__PURE__ */ t.jsx(re, { htmlFor: "ck-name", children: "Full Name" }), + /* @__PURE__ */ t.jsx( + ee, { id: "ck-name", required: !0, placeholder: "Jane Doe", - value: u.fullName, - onChange: (b) => m("fullName", b.target.value) + value: p.fullName, + onChange: (x) => g("fullName", x.target.value) } ) ] }), - /* @__PURE__ */ s.jsxs("div", { className: "sm:col-span-2 space-y-1.5", children: [ - /* @__PURE__ */ s.jsx(Q, { htmlFor: "ck-email", children: "Email" }), - /* @__PURE__ */ s.jsx( - Z, + /* @__PURE__ */ t.jsxs("div", { className: "sm:col-span-2 space-y-1.5", children: [ + /* @__PURE__ */ t.jsx(re, { htmlFor: "ck-email", children: "Email" }), + /* @__PURE__ */ t.jsx( + ee, { id: "ck-email", type: "email", required: !0, placeholder: "jane@example.com", - value: u.email, - onChange: (b) => m("email", b.target.value) + value: p.email, + onChange: (x) => g("email", x.target.value) } ) ] }), - /* @__PURE__ */ s.jsxs("div", { className: "sm:col-span-2 space-y-1.5", children: [ - /* @__PURE__ */ s.jsx(Q, { htmlFor: "ck-address", children: "Address" }), - /* @__PURE__ */ s.jsx( - Z, + /* @__PURE__ */ t.jsxs("div", { className: "sm:col-span-2 space-y-1.5", children: [ + /* @__PURE__ */ t.jsx(re, { htmlFor: "ck-address", children: "Address" }), + /* @__PURE__ */ t.jsx( + ee, { id: "ck-address", required: !0, placeholder: "123 Main St", - value: u.address, - onChange: (b) => m("address", b.target.value) + value: p.address, + onChange: (x) => g("address", x.target.value) } ) ] }), - /* @__PURE__ */ s.jsxs("div", { className: "space-y-1.5", children: [ - /* @__PURE__ */ s.jsx(Q, { htmlFor: "ck-city", children: "City" }), - /* @__PURE__ */ s.jsx( - Z, + /* @__PURE__ */ t.jsxs("div", { className: "space-y-1.5", children: [ + /* @__PURE__ */ t.jsx(re, { htmlFor: "ck-city", children: "City" }), + /* @__PURE__ */ t.jsx( + ee, { id: "ck-city", required: !0, placeholder: "New York", - value: u.city, - onChange: (b) => m("city", b.target.value) + value: p.city, + onChange: (x) => g("city", x.target.value) } ) ] }), - /* @__PURE__ */ s.jsxs("div", { className: "space-y-1.5", children: [ - /* @__PURE__ */ s.jsx(Q, { htmlFor: "ck-zip", children: "ZIP / Postal Code" }), - /* @__PURE__ */ s.jsx( - Z, + /* @__PURE__ */ t.jsxs("div", { className: "space-y-1.5", children: [ + /* @__PURE__ */ t.jsx(re, { htmlFor: "ck-zip", children: "ZIP / Postal Code" }), + /* @__PURE__ */ t.jsx( + ee, { id: "ck-zip", required: !0, placeholder: "10001", - value: u.zip, - onChange: (b) => m("zip", b.target.value) + value: p.zip, + onChange: (x) => g("zip", x.target.value) } ) ] }), - /* @__PURE__ */ s.jsxs("div", { className: "sm:col-span-2 space-y-1.5", children: [ - /* @__PURE__ */ s.jsx(Q, { htmlFor: "ck-country", children: "Country" }), - /* @__PURE__ */ s.jsx( - Z, + /* @__PURE__ */ t.jsxs("div", { className: "sm:col-span-2 space-y-1.5", children: [ + /* @__PURE__ */ t.jsx(re, { htmlFor: "ck-country", children: "Country" }), + /* @__PURE__ */ t.jsx( + ee, { id: "ck-country", required: !0, placeholder: "United States", - value: u.country, - onChange: (b) => m("country", b.target.value) + value: p.country, + onChange: (x) => g("country", x.target.value) } ) ] }) ] }) ] }), - /* @__PURE__ */ s.jsxs(he, { children: [ - /* @__PURE__ */ s.jsx(ve, { children: /* @__PURE__ */ s.jsx(xe, { className: "text-lg", children: "Payment Method" }) }), - /* @__PURE__ */ s.jsxs(ye, { className: "space-y-3", children: [ - /* @__PURE__ */ s.jsxs( + /* @__PURE__ */ t.jsxs(ce, { children: [ + /* @__PURE__ */ t.jsx(de, { children: /* @__PURE__ */ t.jsx(ue, { className: "text-lg", children: "Payment Method" }) }), + /* @__PURE__ */ t.jsxs(fe, { className: "space-y-3", children: [ + /* @__PURE__ */ t.jsxs( "button", { type: "button", - onClick: () => d("shopify"), + onClick: () => u("shopify"), className: A( "flex w-full items-center gap-3 rounded-lg border p-4 text-left transition-colors", c === "shopify" ? "border-primary bg-primary/5" : "border-border hover:bg-accent/5" ), children: [ - /* @__PURE__ */ s.jsx(dt, { className: "h-5 w-5 shrink-0" }), - /* @__PURE__ */ s.jsxs("div", { children: [ - /* @__PURE__ */ s.jsx("p", { className: "font-medium", children: "Shopify Checkout" }), - /* @__PURE__ */ s.jsx("p", { className: "text-xs text-muted-foreground", children: "Credit / debit card via Shopify" }) + /* @__PURE__ */ t.jsx(pt, { className: "h-5 w-5 shrink-0" }), + /* @__PURE__ */ t.jsxs("div", { children: [ + /* @__PURE__ */ t.jsx("p", { className: "font-medium", children: "Shopify Checkout" }), + /* @__PURE__ */ t.jsx("p", { className: "text-xs text-muted-foreground", children: "Credit / debit card via Shopify" }) ] }) ] } ), - /* @__PURE__ */ s.jsxs( + /* @__PURE__ */ t.jsxs( "button", { type: "button", - onClick: () => d("crypto"), + onClick: () => u("crypto"), className: A( "flex w-full items-center gap-3 rounded-lg border p-4 text-left transition-colors", c === "crypto" ? "border-primary bg-primary/5" : "border-border hover:bg-accent/5" ), children: [ - /* @__PURE__ */ s.jsx(ut, { className: "h-5 w-5 shrink-0" }), - /* @__PURE__ */ s.jsxs("div", { children: [ - /* @__PURE__ */ s.jsx("p", { className: "font-medium", children: "Crypto Payment" }), - /* @__PURE__ */ s.jsx("p", { className: "text-xs text-muted-foreground", children: "Bitcoin, Ethereum, and more" }) + /* @__PURE__ */ t.jsx(mt, { className: "h-5 w-5 shrink-0" }), + /* @__PURE__ */ t.jsxs("div", { children: [ + /* @__PURE__ */ t.jsx("p", { className: "font-medium", children: "Crypto Payment" }), + /* @__PURE__ */ t.jsx("p", { className: "text-xs text-muted-foreground", children: "Bitcoin, Ethereum, and more" }) ] }) ] } @@ -3532,30 +3693,221 @@ function Cn({ ] }) ] }) ] }), - /* @__PURE__ */ s.jsxs("div", { className: "space-y-4", children: [ - /* @__PURE__ */ s.jsx(mn, { tax: n, shipping: o }), - /* @__PURE__ */ s.jsx(we, {}), - /* @__PURE__ */ s.jsx(q, { type: "submit", size: "lg", className: "w-full", children: "Place Order" }), - t && /* @__PURE__ */ s.jsx( - q, + /* @__PURE__ */ t.jsxs("div", { className: "space-y-4", children: [ + /* @__PURE__ */ t.jsx(En, { tax: s, shipping: i }), + /* @__PURE__ */ t.jsx(pe, {}), + /* @__PURE__ */ t.jsx(U, { type: "submit", size: "lg", className: "w-full", children: "Place Order" }), + o && /* @__PURE__ */ t.jsx( + U, { type: "button", variant: "ghost", className: "w-full", - onClick: t, + onClick: o, children: "← Back to Cart" } - ) + ), + /* @__PURE__ */ t.jsx(Ar, { className: "pt-4" }) ] }) ] } ); } +function Te({ title: e, children: o, className: r }) { + return /* @__PURE__ */ t.jsx("div", { className: A("mx-auto max-w-3xl py-8", r), children: /* @__PURE__ */ t.jsxs(ce, { children: [ + /* @__PURE__ */ t.jsx(de, { children: /* @__PURE__ */ t.jsx(ue, { className: "text-2xl", children: e }) }), + /* @__PURE__ */ t.jsx(pe, {}), + /* @__PURE__ */ t.jsx(fe, { className: "prose prose-sm dark:prose-invert max-w-none pt-6", children: o }) + ] }) }); +} +const In = [ + { region: "Domestic", method: "Standard", estimate: "5–7 business days", price: "$4.99" }, + { region: "Domestic", method: "Express", estimate: "2–3 business days", price: "$12.99" }, + { region: "International", method: "Standard", estimate: "10–20 business days", price: "$14.99" }, + { region: "International", method: "Express", estimate: "5–8 business days", price: "$29.99" } +]; +function Dn({ rates: e = In, className: o }) { + return /* @__PURE__ */ t.jsxs(Te, { title: "Shipping Information", className: o, children: [ + /* @__PURE__ */ t.jsx("div", { className: "not-prose mb-8 grid gap-4 sm:grid-cols-2", children: [ + { icon: ht, label: "Free shipping on orders over $75" }, + { icon: wr, label: "Same-day dispatch on orders before 2 PM" }, + { icon: gt, label: "We ship worldwide" }, + { icon: bt, label: "No hidden fees at checkout" } + ].map(({ icon: r, label: s }) => /* @__PURE__ */ t.jsxs( + "div", + { + className: "flex items-center gap-3 rounded-lg border border-border/50 bg-accent/5 p-4", + children: [ + /* @__PURE__ */ t.jsx(r, { className: "h-5 w-5 shrink-0 text-primary" }), + /* @__PURE__ */ t.jsx("span", { className: "text-sm font-medium", children: s }) + ] + }, + s + )) }), + /* @__PURE__ */ t.jsx("h3", { children: "Shipping Rates" }), + /* @__PURE__ */ t.jsx("div", { className: "not-prose overflow-x-auto", children: /* @__PURE__ */ t.jsxs("table", { className: "w-full text-sm", children: [ + /* @__PURE__ */ t.jsx("thead", { children: /* @__PURE__ */ t.jsxs("tr", { className: "border-b text-left text-muted-foreground", children: [ + /* @__PURE__ */ t.jsx("th", { className: "pb-2 pr-4 font-medium", children: "Region" }), + /* @__PURE__ */ t.jsx("th", { className: "pb-2 pr-4 font-medium", children: "Method" }), + /* @__PURE__ */ t.jsx("th", { className: "pb-2 pr-4 font-medium", children: "Estimate" }), + /* @__PURE__ */ t.jsx("th", { className: "pb-2 font-medium text-right", children: "Price" }) + ] }) }), + /* @__PURE__ */ t.jsx("tbody", { children: e.map((r, s) => /* @__PURE__ */ t.jsxs("tr", { className: A("border-b border-border/30", s % 2 === 0 && "bg-accent/5"), children: [ + /* @__PURE__ */ t.jsx("td", { className: "py-2.5 pr-4", children: r.region }), + /* @__PURE__ */ t.jsx("td", { className: "py-2.5 pr-4", children: r.method }), + /* @__PURE__ */ t.jsx("td", { className: "py-2.5 pr-4 text-muted-foreground", children: r.estimate }), + /* @__PURE__ */ t.jsx("td", { className: "py-2.5 text-right font-medium", children: r.price }) + ] }, s)) }) + ] }) }), + /* @__PURE__ */ t.jsx("h3", { children: "Processing Time" }), + /* @__PURE__ */ t.jsx("p", { children: "Orders placed before 2:00 PM (local time) on business days are typically processed and shipped the same day. Orders placed after this cut-off or on weekends/holidays will be processed the next business day." }), + /* @__PURE__ */ t.jsx("h3", { children: "Tracking" }), + /* @__PURE__ */ t.jsx("p", { children: "Once your order ships, you will receive a confirmation email with a tracking number. You can use this number to track your package on the carrier's website." }) + ] }); +} +function Wn({ returnWindowDays: e = 30, className: o }) { + return /* @__PURE__ */ t.jsxs(Te, { title: "Returns & Refund Policy", className: o, children: [ + /* @__PURE__ */ t.jsx("div", { className: "not-prose mb-8 grid gap-4 sm:grid-cols-2", children: [ + { icon: wr, label: `${e}-day return window` }, + { icon: xt, label: "Free returns on defective items" }, + { icon: vt, label: "Full refund to original payment" }, + { icon: yt, label: "No restocking fees" } + ].map(({ icon: r, label: s }) => /* @__PURE__ */ t.jsxs( + "div", + { + className: "flex items-center gap-3 rounded-lg border border-border/50 bg-accent/5 p-4", + children: [ + /* @__PURE__ */ t.jsx(r, { className: "h-5 w-5 shrink-0 text-primary" }), + /* @__PURE__ */ t.jsx("span", { className: "text-sm font-medium", children: s }) + ] + }, + s + )) }), + /* @__PURE__ */ t.jsx("h3", { children: "Eligibility" }), + /* @__PURE__ */ t.jsxs("p", { children: [ + "Items must be returned within ", + /* @__PURE__ */ t.jsxs("strong", { children: [ + e, + " days" + ] }), + " of delivery in their original, unused condition with all tags and packaging intact." + ] }), + /* @__PURE__ */ t.jsx("h3", { children: "How to Initiate a Return" }), + /* @__PURE__ */ t.jsxs("ol", { children: [ + /* @__PURE__ */ t.jsx("li", { children: "Contact our support team with your order number." }), + /* @__PURE__ */ t.jsx("li", { children: "Receive a prepaid return label (for defective items) or return instructions." }), + /* @__PURE__ */ t.jsx("li", { children: "Ship the item back using the provided label or your preferred carrier." }) + ] }), + /* @__PURE__ */ t.jsx("h3", { children: "Refund Processing" }), + /* @__PURE__ */ t.jsx("p", { children: "Once we receive and inspect the returned item, your refund will be processed within 5–10 business days to your original payment method. You will receive an email confirmation when the refund has been issued." }), + /* @__PURE__ */ t.jsx("h3", { children: "Exceptions" }), + /* @__PURE__ */ t.jsx("p", { children: "The following items are not eligible for return: gift cards, downloadable products, and items marked as final sale. Perishable goods cannot be returned unless they arrive damaged or defective." }) + ] }); +} +function Ln({ + siteName: e = "Our Store", + contactEmail: o = "privacy@example.com", + className: r +}) { + return /* @__PURE__ */ t.jsxs(Te, { title: "Privacy Policy", className: r, children: [ + /* @__PURE__ */ t.jsxs("p", { children: [ + "At ", + /* @__PURE__ */ t.jsx("strong", { children: e }), + ", we are committed to protecting your personal information and your right to privacy. This policy explains what information we collect, how we use it, and what rights you have in relation to it." + ] }), + /* @__PURE__ */ t.jsx("h3", { children: "Information We Collect" }), + /* @__PURE__ */ t.jsxs("ul", { children: [ + /* @__PURE__ */ t.jsxs("li", { children: [ + /* @__PURE__ */ t.jsx("strong", { children: "Personal information:" }), + " name, email, shipping address, and payment details provided during checkout." + ] }), + /* @__PURE__ */ t.jsxs("li", { children: [ + /* @__PURE__ */ t.jsx("strong", { children: "Usage data:" }), + " pages visited, time spent, browser type, and device information collected automatically." + ] }), + /* @__PURE__ */ t.jsxs("li", { children: [ + /* @__PURE__ */ t.jsx("strong", { children: "Cookies:" }), + " small data files stored on your device to improve your browsing experience and remember your preferences." + ] }) + ] }), + /* @__PURE__ */ t.jsx("h3", { children: "How We Use Your Information" }), + /* @__PURE__ */ t.jsxs("ul", { children: [ + /* @__PURE__ */ t.jsx("li", { children: "To process and fulfill your orders." }), + /* @__PURE__ */ t.jsx("li", { children: "To communicate with you about orders, updates, and promotions." }), + /* @__PURE__ */ t.jsx("li", { children: "To improve our website and services." }), + /* @__PURE__ */ t.jsx("li", { children: "To comply with legal obligations." }) + ] }), + /* @__PURE__ */ t.jsx("h3", { children: "Data Sharing" }), + /* @__PURE__ */ t.jsx("p", { children: "We do not sell your personal data. We share information only with service providers necessary to fulfill your order (e.g., payment processors, shipping carriers) and as required by law." }), + /* @__PURE__ */ t.jsx("h3", { children: "Cookies" }), + /* @__PURE__ */ t.jsx("p", { children: "We use essential cookies for site functionality and optional analytics cookies to understand usage patterns. You can manage cookie preferences through your browser settings." }), + /* @__PURE__ */ t.jsx("h3", { children: "Your Rights" }), + /* @__PURE__ */ t.jsxs("p", { children: [ + "You may request access to, correction of, or deletion of your personal data at any time by contacting us at", + " ", + /* @__PURE__ */ t.jsx("a", { href: `mailto:${o}`, className: "text-primary underline", children: o }), + "." + ] }), + /* @__PURE__ */ t.jsx("h3", { children: "Contact Us" }), + /* @__PURE__ */ t.jsxs("p", { children: [ + "If you have questions about this privacy policy, please contact us at", + " ", + /* @__PURE__ */ t.jsx("a", { href: `mailto:${o}`, className: "text-primary underline", children: o }), + "." + ] }) + ] }); +} +function Vn({ + siteName: e = "Our Store", + contactEmail: o = "legal@example.com", + className: r +}) { + return /* @__PURE__ */ t.jsxs(Te, { title: "Terms of Service", className: r, children: [ + /* @__PURE__ */ t.jsxs("p", { children: [ + "By accessing and using ", + /* @__PURE__ */ t.jsx("strong", { children: e }), + ", you agree to be bound by these Terms of Service." + ] }), + /* @__PURE__ */ t.jsx("h3", { children: "Use of the Site" }), + /* @__PURE__ */ t.jsx("p", { children: "You agree to use this site only for lawful purposes and in a manner that does not infringe on the rights of others or restrict their use and enjoyment of the site." }), + /* @__PURE__ */ t.jsx("h3", { children: "Products & Pricing" }), + /* @__PURE__ */ t.jsx("p", { children: "All product descriptions and prices are subject to change without notice. We reserve the right to modify or discontinue any product at any time. Prices are displayed in the store's base currency and may exclude taxes and shipping costs, which are calculated at checkout." }), + /* @__PURE__ */ t.jsx("h3", { children: "Orders & Payment" }), + /* @__PURE__ */ t.jsx("p", { children: "By placing an order, you make an offer to purchase the selected products. We reserve the right to refuse or cancel any order for any reason, including pricing errors or suspected fraud." }), + /* @__PURE__ */ t.jsx("h3", { children: "Intellectual Property" }), + /* @__PURE__ */ t.jsxs("p", { children: [ + "All content on this site — including text, images, logos, and software — is the property of ", + e, + " or its licensors and is protected by applicable intellectual property laws." + ] }), + /* @__PURE__ */ t.jsx("h3", { children: "Limitation of Liability" }), + /* @__PURE__ */ t.jsxs("p", { children: [ + "To the fullest extent permitted by law, ", + e, + " shall not be liable for any indirect, incidental, or consequential damages arising from your use of the site or purchase of products." + ] }), + /* @__PURE__ */ t.jsx("h3", { children: "Changes to These Terms" }), + /* @__PURE__ */ t.jsx("p", { children: "We may update these Terms of Service from time to time. Continued use of the site after changes constitutes acceptance of the revised terms." }), + /* @__PURE__ */ t.jsx("h3", { children: "Contact" }), + /* @__PURE__ */ t.jsxs("p", { children: [ + "For questions about these terms, contact us at", + " ", + /* @__PURE__ */ t.jsx("a", { href: `mailto:${o}`, className: "text-primary underline", children: o }), + "." + ] }) + ] }); +} export { - an as CartItemRow, - jn as CartPage, - Cn as CheckoutPage, - mn as OrderSummary, + yn as CartItemRow, + $n as CartPage, + Mn as CheckoutPage, + En as OrderSummary, + Ar as PolicyLinks, + Te as PolicyPage, + Ln as PrivacyPolicyPage, + Wn as ReturnsPage, + Dn as ShippingPage, + Vn as TermsPage, G as useCartStore }; //# sourceMappingURL=pm-ecommerce.es.js.map diff --git a/packages/ecommerce/dist-lib/pm-ecommerce.es.js.map b/packages/ecommerce/dist-lib/pm-ecommerce.es.js.map index 83006b2a..f91040c6 100644 --- a/packages/ecommerce/dist-lib/pm-ecommerce.es.js.map +++ b/packages/ecommerce/dist-lib/pm-ecommerce.es.js.map @@ -1 +1 @@ -{"version":3,"file":"pm-ecommerce.es.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/@radix-ui/react-compose-refs/dist/index.mjs","../node_modules/@radix-ui/react-slot/dist/index.mjs","../node_modules/clsx/dist/clsx.mjs","../node_modules/class-variance-authority/dist/index.mjs","../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../src/lib/utils.ts","../src/components/ui/button.tsx","../node_modules/zustand/esm/vanilla.mjs","../node_modules/zustand/esm/react.mjs","../src/cart/useCartStore.ts","../src/cart/CartItem.tsx","../src/components/ui/card.tsx","../node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.mjs","../node_modules/@radix-ui/react-separator/dist/index.mjs","../src/components/ui/separator.tsx","../src/cart/CartPage.tsx","../src/checkout/OrderSummary.tsx","../src/components/ui/input.tsx","../node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.mjs","../node_modules/@radix-ui/react-label/dist/index.mjs","../src/components/ui/label.tsx","../src/checkout/CheckoutPage.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('')) {\n _frame = _frame.replace('', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie.
\n // or
). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n //
, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nvar didWarnAboutKeySpread = {};\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n {\n if (hasOwnProperty.call(props, 'key')) {\n var componentName = getComponentNameFromType(type);\n var keys = Object.keys(props).filter(function (k) {\n return k !== 'key';\n });\n var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';\n\n if (!didWarnAboutKeySpread[componentName + beforeExample]) {\n var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';\n\n error('A props object containing a \"key\" prop is being spread into JSX:\\n' + ' let props = %s;\\n' + ' <%s {...props} />\\n' + 'React keys must be passed directly to JSX without using spread:\\n' + ' let props = %s;\\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);\n\n didWarnAboutKeySpread[componentName + beforeExample] = true;\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n","// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nvar use = React[\" use \".trim().toString()];\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n","const CLASS_PART_SEPARATOR = '-';\nconst createClassGroupUtils = config => {\n const classMap = createClassMap(config);\n const {\n conflictingClassGroups,\n conflictingClassGroupModifiers\n } = config;\n const getClassGroupId = className => {\n const classParts = className.split(CLASS_PART_SEPARATOR);\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift();\n }\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n };\n const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {\n const conflicts = conflictingClassGroups[classGroupId] || [];\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];\n }\n return conflicts;\n };\n return {\n getClassGroupId,\n getConflictingClassGroupIds\n };\n};\nconst getGroupRecursive = (classParts, classPartObject) => {\n if (classParts.length === 0) {\n return classPartObject.classGroupId;\n }\n const currentClassPart = classParts[0];\n const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart;\n }\n if (classPartObject.validators.length === 0) {\n return undefined;\n }\n const classRest = classParts.join(CLASS_PART_SEPARATOR);\n return classPartObject.validators.find(({\n validator\n }) => validator(classRest))?.classGroupId;\n};\nconst arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nconst getGroupIdForArbitraryProperty = className => {\n if (arbitraryPropertyRegex.test(className)) {\n const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property;\n }\n }\n};\n/**\n * Exported for testing only\n */\nconst createClassMap = config => {\n const {\n theme,\n prefix\n } = config;\n const classMap = {\n nextPart: new Map(),\n validators: []\n };\n const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {\n processClassesRecursively(classGroup, classMap, classGroupId, theme);\n });\n return classMap;\n};\nconst processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {\n classGroup.forEach(classDefinition => {\n if (typeof classDefinition === 'string') {\n const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n classPartObjectToEdit.classGroupId = classGroupId;\n return;\n }\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n return;\n }\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId\n });\n return;\n }\n Object.entries(classDefinition).forEach(([key, classGroup]) => {\n processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n });\n });\n};\nconst getPart = (classPartObject, path) => {\n let currentClassPartObject = classPartObject;\n path.split(CLASS_PART_SEPARATOR).forEach(pathPart => {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: []\n });\n }\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n });\n return currentClassPartObject;\n};\nconst isThemeGetter = func => func.isThemeGetter;\nconst getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {\n if (!prefix) {\n return classGroupEntries;\n }\n return classGroupEntries.map(([classGroupId, classGroup]) => {\n const prefixedClassGroup = classGroup.map(classDefinition => {\n if (typeof classDefinition === 'string') {\n return prefix + classDefinition;\n }\n if (typeof classDefinition === 'object') {\n return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));\n }\n return classDefinition;\n });\n return [classGroupId, prefixedClassGroup];\n });\n};\n\n// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nconst createLruCache = maxCacheSize => {\n if (maxCacheSize < 1) {\n return {\n get: () => undefined,\n set: () => {}\n };\n }\n let cacheSize = 0;\n let cache = new Map();\n let previousCache = new Map();\n const update = (key, value) => {\n cache.set(key, value);\n cacheSize++;\n if (cacheSize > maxCacheSize) {\n cacheSize = 0;\n previousCache = cache;\n cache = new Map();\n }\n };\n return {\n get(key) {\n let value = cache.get(key);\n if (value !== undefined) {\n return value;\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value);\n return value;\n }\n },\n set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value);\n } else {\n update(key, value);\n }\n }\n };\n};\nconst IMPORTANT_MODIFIER = '!';\nconst createParseClassName = config => {\n const {\n separator,\n experimentalParseClassName\n } = config;\n const isSeparatorSingleCharacter = separator.length === 1;\n const firstSeparatorCharacter = separator[0];\n const separatorLength = separator.length;\n // parseClassName inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n const parseClassName = className => {\n const modifiers = [];\n let bracketDepth = 0;\n let modifierStart = 0;\n let postfixModifierPosition;\n for (let index = 0; index < className.length; index++) {\n let currentCharacter = className[index];\n if (bracketDepth === 0) {\n if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n modifiers.push(className.slice(modifierStart, index));\n modifierStart = index + separatorLength;\n continue;\n }\n if (currentCharacter === '/') {\n postfixModifierPosition = index;\n continue;\n }\n }\n if (currentCharacter === '[') {\n bracketDepth++;\n } else if (currentCharacter === ']') {\n bracketDepth--;\n }\n }\n const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n return {\n modifiers,\n hasImportantModifier,\n baseClassName,\n maybePostfixModifierPosition\n };\n };\n if (experimentalParseClassName) {\n return className => experimentalParseClassName({\n className,\n parseClassName\n });\n }\n return parseClassName;\n};\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nconst sortModifiers = modifiers => {\n if (modifiers.length <= 1) {\n return modifiers;\n }\n const sortedModifiers = [];\n let unsortedModifiers = [];\n modifiers.forEach(modifier => {\n const isArbitraryVariant = modifier[0] === '[';\n if (isArbitraryVariant) {\n sortedModifiers.push(...unsortedModifiers.sort(), modifier);\n unsortedModifiers = [];\n } else {\n unsortedModifiers.push(modifier);\n }\n });\n sortedModifiers.push(...unsortedModifiers.sort());\n return sortedModifiers;\n};\nconst createConfigUtils = config => ({\n cache: createLruCache(config.cacheSize),\n parseClassName: createParseClassName(config),\n ...createClassGroupUtils(config)\n});\nconst SPLIT_CLASSES_REGEX = /\\s+/;\nconst mergeClassList = (classList, configUtils) => {\n const {\n parseClassName,\n getClassGroupId,\n getConflictingClassGroupIds\n } = configUtils;\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n const classGroupsInConflict = [];\n const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);\n let result = '';\n for (let index = classNames.length - 1; index >= 0; index -= 1) {\n const originalClassName = classNames[index];\n const {\n modifiers,\n hasImportantModifier,\n baseClassName,\n maybePostfixModifierPosition\n } = parseClassName(originalClassName);\n let hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n if (!classGroupId) {\n if (!hasPostfixModifier) {\n // Not a Tailwind class\n result = originalClassName + (result.length > 0 ? ' ' + result : result);\n continue;\n }\n classGroupId = getClassGroupId(baseClassName);\n if (!classGroupId) {\n // Not a Tailwind class\n result = originalClassName + (result.length > 0 ? ' ' + result : result);\n continue;\n }\n hasPostfixModifier = false;\n }\n const variantModifier = sortModifiers(modifiers).join(':');\n const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n const classId = modifierId + classGroupId;\n if (classGroupsInConflict.includes(classId)) {\n // Tailwind class omitted due to conflict\n continue;\n }\n classGroupsInConflict.push(classId);\n const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);\n for (let i = 0; i < conflictGroups.length; ++i) {\n const group = conflictGroups[i];\n classGroupsInConflict.push(modifierId + group);\n }\n // Tailwind class not in conflict\n result = originalClassName + (result.length > 0 ? ' ' + result : result);\n }\n return result;\n};\n\n/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com)\n */\nfunction twJoin() {\n let index = 0;\n let argument;\n let resolvedValue;\n let string = '';\n while (index < arguments.length) {\n if (argument = arguments[index++]) {\n if (resolvedValue = toValue(argument)) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nconst toValue = mix => {\n if (typeof mix === 'string') {\n return mix;\n }\n let resolvedValue;\n let string = '';\n for (let k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (resolvedValue = toValue(mix[k])) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n};\nfunction createTailwindMerge(createConfigFirst, ...createConfigRest) {\n let configUtils;\n let cacheGet;\n let cacheSet;\n let functionToCall = initTailwindMerge;\n function initTailwindMerge(classList) {\n const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());\n configUtils = createConfigUtils(config);\n cacheGet = configUtils.cache.get;\n cacheSet = configUtils.cache.set;\n functionToCall = tailwindMerge;\n return tailwindMerge(classList);\n }\n function tailwindMerge(classList) {\n const cachedResult = cacheGet(classList);\n if (cachedResult) {\n return cachedResult;\n }\n const result = mergeClassList(classList, configUtils);\n cacheSet(classList, result);\n return result;\n }\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments));\n };\n}\nconst fromTheme = key => {\n const themeGetter = theme => theme[key] || [];\n themeGetter.isThemeGetter = true;\n return themeGetter;\n};\nconst arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nconst fractionRegex = /^\\d+\\/\\d+$/;\nconst stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nconst tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nconst lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\nconst colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\\(.+\\)$/;\n// Shadow always begins with x and y offset separated by underscore optionally prepended by inset\nconst shadowRegex = /^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nconst imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/;\nconst isLength = value => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);\nconst isArbitraryLength = value => getIsArbitraryValue(value, 'length', isLengthOnly);\nconst isNumber = value => Boolean(value) && !Number.isNaN(Number(value));\nconst isArbitraryNumber = value => getIsArbitraryValue(value, 'number', isNumber);\nconst isInteger = value => Boolean(value) && Number.isInteger(Number(value));\nconst isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));\nconst isArbitraryValue = value => arbitraryValueRegex.test(value);\nconst isTshirtSize = value => tshirtUnitRegex.test(value);\nconst sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);\nconst isArbitrarySize = value => getIsArbitraryValue(value, sizeLabels, isNever);\nconst isArbitraryPosition = value => getIsArbitraryValue(value, 'position', isNever);\nconst imageLabels = /*#__PURE__*/new Set(['image', 'url']);\nconst isArbitraryImage = value => getIsArbitraryValue(value, imageLabels, isImage);\nconst isArbitraryShadow = value => getIsArbitraryValue(value, '', isShadow);\nconst isAny = () => true;\nconst getIsArbitraryValue = (value, label, testValue) => {\n const result = arbitraryValueRegex.exec(value);\n if (result) {\n if (result[1]) {\n return typeof label === 'string' ? result[1] === label : label.has(result[1]);\n }\n return testValue(result[2]);\n }\n return false;\n};\nconst isLengthOnly = value =>\n// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.\n// For example, `hsl(0 0% 0%)` would be classified as a length without this check.\n// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.\nlengthUnitRegex.test(value) && !colorFunctionRegex.test(value);\nconst isNever = () => false;\nconst isShadow = value => shadowRegex.test(value);\nconst isImage = value => imageRegex.test(value);\nconst validators = /*#__PURE__*/Object.defineProperty({\n __proto__: null,\n isAny,\n isArbitraryImage,\n isArbitraryLength,\n isArbitraryNumber,\n isArbitraryPosition,\n isArbitraryShadow,\n isArbitrarySize,\n isArbitraryValue,\n isInteger,\n isLength,\n isNumber,\n isPercent,\n isTshirtSize\n}, Symbol.toStringTag, {\n value: 'Module'\n});\nconst getDefaultConfig = () => {\n const colors = fromTheme('colors');\n const spacing = fromTheme('spacing');\n const blur = fromTheme('blur');\n const brightness = fromTheme('brightness');\n const borderColor = fromTheme('borderColor');\n const borderRadius = fromTheme('borderRadius');\n const borderSpacing = fromTheme('borderSpacing');\n const borderWidth = fromTheme('borderWidth');\n const contrast = fromTheme('contrast');\n const grayscale = fromTheme('grayscale');\n const hueRotate = fromTheme('hueRotate');\n const invert = fromTheme('invert');\n const gap = fromTheme('gap');\n const gradientColorStops = fromTheme('gradientColorStops');\n const gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n const inset = fromTheme('inset');\n const margin = fromTheme('margin');\n const opacity = fromTheme('opacity');\n const padding = fromTheme('padding');\n const saturate = fromTheme('saturate');\n const scale = fromTheme('scale');\n const sepia = fromTheme('sepia');\n const skew = fromTheme('skew');\n const space = fromTheme('space');\n const translate = fromTheme('translate');\n const getOverscroll = () => ['auto', 'contain', 'none'];\n const getOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n const getSpacingWithAutoAndArbitrary = () => ['auto', isArbitraryValue, spacing];\n const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];\n const getLengthWithEmptyAndArbitrary = () => ['', isLength, isArbitraryLength];\n const getNumberWithAutoAndArbitrary = () => ['auto', isNumber, isArbitraryValue];\n const getPositions = () => ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n const getLineStyles = () => ['solid', 'dashed', 'dotted', 'double', 'none'];\n const getBlendModes = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];\n const getAlign = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n const getZeroAndEmpty = () => ['', '0', isArbitraryValue];\n const getBreaks = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];\n return {\n cacheSize: 500,\n separator: ':',\n theme: {\n colors: [isAny],\n spacing: [isLength, isArbitraryLength],\n blur: ['none', '', isTshirtSize, isArbitraryValue],\n brightness: getNumberAndArbitrary(),\n borderColor: [colors],\n borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n borderSpacing: getSpacingWithArbitrary(),\n borderWidth: getLengthWithEmptyAndArbitrary(),\n contrast: getNumberAndArbitrary(),\n grayscale: getZeroAndEmpty(),\n hueRotate: getNumberAndArbitrary(),\n invert: getZeroAndEmpty(),\n gap: getSpacingWithArbitrary(),\n gradientColorStops: [colors],\n gradientColorStopPositions: [isPercent, isArbitraryLength],\n inset: getSpacingWithAutoAndArbitrary(),\n margin: getSpacingWithAutoAndArbitrary(),\n opacity: getNumberAndArbitrary(),\n padding: getSpacingWithArbitrary(),\n saturate: getNumberAndArbitrary(),\n scale: getNumberAndArbitrary(),\n sepia: getZeroAndEmpty(),\n skew: getNumberAndArbitrary(),\n space: getSpacingWithArbitrary(),\n translate: getSpacingWithArbitrary()\n },\n classGroups: {\n // Layout\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [{\n aspect: ['auto', 'square', 'video', isArbitraryValue]\n }],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [{\n columns: [isTshirtSize]\n }],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{\n 'break-after': getBreaks()\n }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{\n 'break-before': getBreaks()\n }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{\n 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{\n 'box-decoration': ['slice', 'clone']\n }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{\n box: ['border', 'content']\n }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n float: [{\n float: ['right', 'left', 'none', 'start', 'end']\n }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{\n clear: ['left', 'right', 'both', 'none', 'start', 'end']\n }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{\n object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{\n object: [...getPositions(), isArbitraryValue]\n }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{\n overflow: getOverflow()\n }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{\n 'overflow-x': getOverflow()\n }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{\n 'overflow-y': getOverflow()\n }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{\n overscroll: getOverscroll()\n }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{\n 'overscroll-x': getOverscroll()\n }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{\n 'overscroll-y': getOverscroll()\n }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{\n inset: [inset]\n }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{\n 'inset-x': [inset]\n }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{\n 'inset-y': [inset]\n }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{\n start: [inset]\n }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{\n end: [inset]\n }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{\n top: [inset]\n }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{\n right: [inset]\n }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{\n bottom: [inset]\n }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{\n left: [inset]\n }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{\n z: ['auto', isInteger, isArbitraryValue]\n }],\n // Flexbox and Grid\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [{\n basis: getSpacingWithAutoAndArbitrary()\n }],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{\n flex: ['row', 'row-reverse', 'col', 'col-reverse']\n }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{\n flex: ['wrap', 'wrap-reverse', 'nowrap']\n }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{\n flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{\n grow: getZeroAndEmpty()\n }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{\n shrink: getZeroAndEmpty()\n }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [{\n order: ['first', 'last', 'none', isInteger, isArbitraryValue]\n }],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{\n 'grid-cols': [isAny]\n }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{\n col: ['auto', {\n span: ['full', isInteger, isArbitraryValue]\n }, isArbitraryValue]\n }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{\n 'col-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{\n 'col-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{\n 'grid-rows': [isAny]\n }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{\n row: ['auto', {\n span: [isInteger, isArbitraryValue]\n }, isArbitraryValue]\n }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{\n 'row-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{\n 'row-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{\n 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{\n 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{\n 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{\n gap: [gap]\n }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{\n 'gap-x': [gap]\n }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{\n 'gap-y': [gap]\n }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{\n justify: ['normal', ...getAlign()]\n }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{\n 'justify-items': ['start', 'end', 'center', 'stretch']\n }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{\n 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{\n content: ['normal', ...getAlign(), 'baseline']\n }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{\n items: ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [{\n self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n }],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{\n 'place-content': [...getAlign(), 'baseline']\n }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{\n 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{\n 'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{\n p: [padding]\n }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{\n px: [padding]\n }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{\n py: [padding]\n }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{\n ps: [padding]\n }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{\n pe: [padding]\n }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{\n pt: [padding]\n }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{\n pr: [padding]\n }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{\n pb: [padding]\n }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{\n pl: [padding]\n }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{\n m: [margin]\n }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{\n mx: [margin]\n }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{\n my: [margin]\n }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{\n ms: [margin]\n }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{\n me: [margin]\n }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{\n mt: [margin]\n }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{\n mr: [margin]\n }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{\n mb: [margin]\n }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{\n ml: [margin]\n }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x': [{\n 'space-x': [space]\n }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y': [{\n 'space-y': [space]\n }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y-reverse': ['space-y-reverse'],\n // Sizing\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{\n w: ['auto', 'min', 'max', 'fit', 'svw', 'lvw', 'dvw', isArbitraryValue, spacing]\n }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [{\n 'min-w': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n }],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [{\n 'max-w': [isArbitraryValue, spacing, 'none', 'full', 'min', 'max', 'fit', 'prose', {\n screen: [isTshirtSize]\n }, isTshirtSize]\n }],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{\n h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{\n 'min-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{\n 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n }],\n /**\n * Size\n * @see https://tailwindcss.com/docs/size\n */\n size: [{\n size: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n }],\n // Typography\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [{\n text: ['base', isTshirtSize, isArbitraryLength]\n }],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{\n font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n }],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{\n font: [isAny]\n }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractions'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [{\n 'line-clamp': ['none', isNumber, isArbitraryNumber]\n }],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [{\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isLength, isArbitraryValue]\n }],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{\n 'list-image': ['none', isArbitraryValue]\n }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [{\n list: ['none', 'disc', 'decimal', isArbitraryValue]\n }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{\n list: ['inside', 'outside']\n }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{\n placeholder: [colors]\n }],\n /**\n * Placeholder Opacity\n * @see https://tailwindcss.com/docs/placeholder-opacity\n */\n 'placeholder-opacity': [{\n 'placeholder-opacity': [opacity]\n }],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{\n text: ['left', 'center', 'right', 'justify', 'start', 'end']\n }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{\n text: [colors]\n }],\n /**\n * Text Opacity\n * @see https://tailwindcss.com/docs/text-opacity\n */\n 'text-opacity': [{\n 'text-opacity': [opacity]\n }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{\n decoration: [...getLineStyles(), 'wavy']\n }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [{\n decoration: ['auto', 'from-font', isLength, isArbitraryLength]\n }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [{\n 'underline-offset': ['auto', isLength, isArbitraryValue]\n }],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{\n decoration: [colors]\n }],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Wrap\n * @see https://tailwindcss.com/docs/text-wrap\n */\n 'text-wrap': [{\n text: ['wrap', 'nowrap', 'balance', 'pretty']\n }],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{\n indent: getSpacingWithArbitrary()\n }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [{\n align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n }],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [{\n whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n }],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n break: [{\n break: ['normal', 'words', 'all', 'keep']\n }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{\n hyphens: ['none', 'manual', 'auto']\n }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{\n content: ['none', isArbitraryValue]\n }],\n // Backgrounds\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{\n bg: ['fixed', 'local', 'scroll']\n }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{\n 'bg-clip': ['border', 'padding', 'content', 'text']\n }],\n /**\n * Background Opacity\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/background-opacity\n */\n 'bg-opacity': [{\n 'bg-opacity': [opacity]\n }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{\n 'bg-origin': ['border', 'padding', 'content']\n }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{\n bg: [...getPositions(), isArbitraryPosition]\n }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{\n bg: ['no-repeat', {\n repeat: ['', 'x', 'y', 'round', 'space']\n }]\n }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{\n bg: ['auto', 'cover', 'contain', isArbitrarySize]\n }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [{\n bg: ['none', {\n 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n }, isArbitraryImage]\n }],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{\n bg: [colors]\n }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{\n from: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{\n via: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{\n to: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{\n from: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{\n via: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{\n to: [gradientColorStops]\n }],\n // Borders\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{\n rounded: [borderRadius]\n }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{\n 'rounded-s': [borderRadius]\n }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{\n 'rounded-e': [borderRadius]\n }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{\n 'rounded-t': [borderRadius]\n }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{\n 'rounded-r': [borderRadius]\n }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{\n 'rounded-b': [borderRadius]\n }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{\n 'rounded-l': [borderRadius]\n }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{\n 'rounded-ss': [borderRadius]\n }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{\n 'rounded-se': [borderRadius]\n }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{\n 'rounded-ee': [borderRadius]\n }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{\n 'rounded-es': [borderRadius]\n }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{\n 'rounded-tl': [borderRadius]\n }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{\n 'rounded-tr': [borderRadius]\n }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{\n 'rounded-br': [borderRadius]\n }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{\n 'rounded-bl': [borderRadius]\n }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{\n border: [borderWidth]\n }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{\n 'border-x': [borderWidth]\n }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{\n 'border-y': [borderWidth]\n }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{\n 'border-s': [borderWidth]\n }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{\n 'border-e': [borderWidth]\n }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{\n 'border-t': [borderWidth]\n }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{\n 'border-r': [borderWidth]\n }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{\n 'border-b': [borderWidth]\n }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{\n 'border-l': [borderWidth]\n }],\n /**\n * Border Opacity\n * @see https://tailwindcss.com/docs/border-opacity\n */\n 'border-opacity': [{\n 'border-opacity': [opacity]\n }],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{\n border: [...getLineStyles(), 'hidden']\n }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x': [{\n 'divide-x': [borderWidth]\n }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y': [{\n 'divide-y': [borderWidth]\n }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Divide Opacity\n * @see https://tailwindcss.com/docs/divide-opacity\n */\n 'divide-opacity': [{\n 'divide-opacity': [opacity]\n }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/divide-style\n */\n 'divide-style': [{\n divide: getLineStyles()\n }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{\n border: [borderColor]\n }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{\n 'border-x': [borderColor]\n }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{\n 'border-y': [borderColor]\n }],\n /**\n * Border Color S\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-s': [{\n 'border-s': [borderColor]\n }],\n /**\n * Border Color E\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-e': [{\n 'border-e': [borderColor]\n }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{\n 'border-t': [borderColor]\n }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{\n 'border-r': [borderColor]\n }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{\n 'border-b': [borderColor]\n }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{\n 'border-l': [borderColor]\n }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{\n divide: [borderColor]\n }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{\n outline: ['', ...getLineStyles()]\n }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [{\n 'outline-offset': [isLength, isArbitraryValue]\n }],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [{\n outline: [isLength, isArbitraryLength]\n }],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{\n outline: [colors]\n }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w': [{\n ring: getLengthWithEmptyAndArbitrary()\n }],\n /**\n * Ring Width Inset\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/ring-color\n */\n 'ring-color': [{\n ring: [colors]\n }],\n /**\n * Ring Opacity\n * @see https://tailwindcss.com/docs/ring-opacity\n */\n 'ring-opacity': [{\n 'ring-opacity': [opacity]\n }],\n /**\n * Ring Offset Width\n * @see https://tailwindcss.com/docs/ring-offset-width\n */\n 'ring-offset-w': [{\n 'ring-offset': [isLength, isArbitraryLength]\n }],\n /**\n * Ring Offset Color\n * @see https://tailwindcss.com/docs/ring-offset-color\n */\n 'ring-offset-color': [{\n 'ring-offset': [colors]\n }],\n // Effects\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [{\n shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n }],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow-color\n */\n 'shadow-color': [{\n shadow: [isAny]\n }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{\n opacity: [opacity]\n }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{\n 'mix-blend': [...getBlendModes(), 'plus-lighter', 'plus-darker']\n }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{\n 'bg-blend': getBlendModes()\n }],\n // Filters\n /**\n * Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [{\n filter: ['', 'none']\n }],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{\n blur: [blur]\n }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{\n brightness: [brightness]\n }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{\n contrast: [contrast]\n }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [{\n 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{\n grayscale: [grayscale]\n }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{\n 'hue-rotate': [hueRotate]\n }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{\n invert: [invert]\n }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{\n saturate: [saturate]\n }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{\n sepia: [sepia]\n }],\n /**\n * Backdrop Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [{\n 'backdrop-filter': ['', 'none']\n }],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{\n 'backdrop-blur': [blur]\n }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [{\n 'backdrop-brightness': [brightness]\n }],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [{\n 'backdrop-contrast': [contrast]\n }],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [{\n 'backdrop-grayscale': [grayscale]\n }],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [{\n 'backdrop-hue-rotate': [hueRotate]\n }],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [{\n 'backdrop-invert': [invert]\n }],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [{\n 'backdrop-opacity': [opacity]\n }],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [{\n 'backdrop-saturate': [saturate]\n }],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [{\n 'backdrop-sepia': [sepia]\n }],\n // Tables\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{\n border: ['collapse', 'separate']\n }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{\n 'border-spacing': [borderSpacing]\n }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{\n 'border-spacing-x': [borderSpacing]\n }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{\n 'border-spacing-y': [borderSpacing]\n }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{\n table: ['auto', 'fixed']\n }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{\n caption: ['top', 'bottom']\n }],\n // Transitions and Animation\n /**\n * Tranisition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [{\n transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{\n duration: getNumberAndArbitrary()\n }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [{\n ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n }],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{\n delay: getNumberAndArbitrary()\n }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{\n animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n }],\n // Transforms\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [{\n transform: ['', 'gpu', 'none']\n }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{\n scale: [scale]\n }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{\n 'scale-x': [scale]\n }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{\n 'scale-y': [scale]\n }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{\n rotate: [isInteger, isArbitraryValue]\n }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{\n 'translate-x': [translate]\n }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{\n 'translate-y': [translate]\n }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{\n 'skew-x': [skew]\n }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{\n 'skew-y': [skew]\n }],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{\n origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n }],\n // Interactivity\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{\n accent: ['auto', colors]\n }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: [{\n appearance: ['none', 'auto']\n }],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [{\n cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{\n caret: [colors]\n }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{\n 'pointer-events': ['none', 'auto']\n }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{\n resize: ['none', 'y', 'x', '']\n }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{\n scroll: ['auto', 'smooth']\n }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{\n 'scroll-m': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{\n 'scroll-mx': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{\n 'scroll-my': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{\n 'scroll-ms': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{\n 'scroll-me': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{\n 'scroll-mt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{\n 'scroll-mr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{\n 'scroll-mb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{\n 'scroll-ml': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{\n 'scroll-p': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{\n 'scroll-px': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{\n 'scroll-py': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{\n 'scroll-ps': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{\n 'scroll-pe': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{\n 'scroll-pt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{\n 'scroll-pr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{\n 'scroll-pb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{\n 'scroll-pl': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{\n snap: ['start', 'end', 'center', 'align-none']\n }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{\n snap: ['normal', 'always']\n }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{\n snap: ['none', 'x', 'y', 'both']\n }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{\n snap: ['mandatory', 'proximity']\n }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{\n touch: ['auto', 'none', 'manipulation']\n }],\n /**\n * Touch Action X\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-x': [{\n 'touch-pan': ['x', 'left', 'right']\n }],\n /**\n * Touch Action Y\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-y': [{\n 'touch-pan': ['y', 'up', 'down']\n }],\n /**\n * Touch Action Pinch Zoom\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-pz': ['touch-pinch-zoom'],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{\n select: ['none', 'text', 'all', 'auto']\n }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [{\n 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n }],\n // SVG\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{\n fill: [colors, 'none']\n }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [{\n stroke: [isLength, isArbitraryLength, isArbitraryNumber]\n }],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{\n stroke: [colors, 'none']\n }],\n // Accessibility\n /**\n * Screen Readers\n * @see https://tailwindcss.com/docs/screen-readers\n */\n sr: ['sr-only', 'not-sr-only'],\n /**\n * Forced Color Adjust\n * @see https://tailwindcss.com/docs/forced-color-adjust\n */\n 'forced-color-adjust': [{\n 'forced-color-adjust': ['auto', 'none']\n }]\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n size: ['w', 'h'],\n 'font-size': ['leading'],\n 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n 'line-clamp': ['display', 'overflow'],\n rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': ['border-color-s', 'border-color-e', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb'],\n touch: ['touch-x', 'touch-y', 'touch-pz'],\n 'touch-x': ['touch'],\n 'touch-y': ['touch'],\n 'touch-pz': ['touch']\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading']\n }\n };\n};\n\n/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nconst mergeConfigs = (baseConfig, {\n cacheSize,\n prefix,\n separator,\n experimentalParseClassName,\n extend = {},\n override = {}\n}) => {\n overrideProperty(baseConfig, 'cacheSize', cacheSize);\n overrideProperty(baseConfig, 'prefix', prefix);\n overrideProperty(baseConfig, 'separator', separator);\n overrideProperty(baseConfig, 'experimentalParseClassName', experimentalParseClassName);\n for (const configKey in override) {\n overrideConfigProperties(baseConfig[configKey], override[configKey]);\n }\n for (const key in extend) {\n mergeConfigProperties(baseConfig[key], extend[key]);\n }\n return baseConfig;\n};\nconst overrideProperty = (baseObject, overrideKey, overrideValue) => {\n if (overrideValue !== undefined) {\n baseObject[overrideKey] = overrideValue;\n }\n};\nconst overrideConfigProperties = (baseObject, overrideObject) => {\n if (overrideObject) {\n for (const key in overrideObject) {\n overrideProperty(baseObject, key, overrideObject[key]);\n }\n }\n};\nconst mergeConfigProperties = (baseObject, mergeObject) => {\n if (mergeObject) {\n for (const key in mergeObject) {\n const mergeValue = mergeObject[key];\n if (mergeValue !== undefined) {\n baseObject[key] = (baseObject[key] || []).concat(mergeValue);\n }\n }\n }\n};\nconst extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === 'function' ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);\nconst twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\nexport { createTailwindMerge, extendTailwindMerge, fromTheme, getDefaultConfig, mergeConfigs, twJoin, twMerge, validators };\n//# sourceMappingURL=bundle-mjs.mjs.map\n","import { clsx, type ClassValue } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n return twMerge(clsx(inputs));\r\n}\r\n","import * as React from \"react\";\r\nimport { Slot } from \"@radix-ui/react-slot\";\r\nimport { cva, type VariantProps } from \"class-variance-authority\";\r\n\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nconst buttonVariants = cva(\r\n \"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\",\r\n {\r\n variants: {\r\n variant: {\r\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\r\n destructive: \"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\r\n outline: \"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\r\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\r\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\r\n link: \"text-primary underline-offset-4 hover:underline\",\r\n },\r\n size: {\r\n default: \"h-10 px-4 py-2\",\r\n sm: \"h-9 rounded-md px-2\",\r\n lg: \"h-11 rounded-md px-4\",\r\n icon: \"h-10 w-10\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n size: \"default\",\r\n },\r\n },\r\n);\r\n\r\nexport interface ButtonProps\r\n extends React.ButtonHTMLAttributes,\r\n VariantProps {\r\n asChild?: boolean;\r\n}\r\n\r\nconst Button = React.forwardRef(\r\n ({ className, variant, size, asChild = false, ...props }, ref) => {\r\n const Comp = asChild ? Slot : \"button\";\r\n return ;\r\n },\r\n);\r\nButton.displayName = \"Button\";\r\n\r\nexport { Button, buttonVariants };\r\n","const createStoreImpl = (createState) => {\n let state;\n const listeners = /* @__PURE__ */ new Set();\n const setState = (partial, replace) => {\n const nextState = typeof partial === \"function\" ? partial(state) : partial;\n if (!Object.is(nextState, state)) {\n const previousState = state;\n state = (replace != null ? replace : typeof nextState !== \"object\" || nextState === null) ? nextState : Object.assign({}, state, nextState);\n listeners.forEach((listener) => listener(state, previousState));\n }\n };\n const getState = () => state;\n const getInitialState = () => initialState;\n const subscribe = (listener) => {\n listeners.add(listener);\n return () => listeners.delete(listener);\n };\n const api = { setState, getState, getInitialState, subscribe };\n const initialState = state = createState(setState, getState, api);\n return api;\n};\nconst createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);\n\nexport { createStore };\n","import React from 'react';\nimport { createStore } from 'zustand/vanilla';\n\nconst identity = (arg) => arg;\nfunction useStore(api, selector = identity) {\n const slice = React.useSyncExternalStore(\n api.subscribe,\n React.useCallback(() => selector(api.getState()), [api, selector]),\n React.useCallback(() => selector(api.getInitialState()), [api, selector])\n );\n React.useDebugValue(slice);\n return slice;\n}\nconst createImpl = (createState) => {\n const api = createStore(createState);\n const useBoundStore = (selector) => useStore(api, selector);\n Object.assign(useBoundStore, api);\n return useBoundStore;\n};\nconst create = ((createState) => createState ? createImpl(createState) : createImpl);\n\nexport { create, useStore };\n","import { create } from \"zustand\";\r\nimport type { CartItem, CartState } from \"./types\";\r\n\r\n/** Recompute derived totals from items array. */\r\nfunction computeTotals(items: CartItem[]) {\r\n return {\r\n subtotal: items.reduce((sum, i) => sum + i.price * i.quantity, 0),\r\n itemCount: items.reduce((sum, i) => sum + i.quantity, 0),\r\n };\r\n}\r\n\r\n/**\r\n * Global cart store.\r\n *\r\n * Usage:\r\n * ```tsx\r\n * const { items, addItem, subtotal } = useCartStore();\r\n * ```\r\n */\r\nexport const useCartStore = create((set) => ({\r\n items: [],\r\n subtotal: 0,\r\n itemCount: 0,\r\n\r\n addItem: (incoming) =>\r\n set((state) => {\r\n const existing = state.items.find((i) => i.id === incoming.id);\r\n let items: CartItem[];\r\n if (existing) {\r\n items = state.items.map((i) =>\r\n i.id === incoming.id\r\n ? { ...i, quantity: i.quantity + (incoming.quantity ?? 1) }\r\n : i,\r\n );\r\n } else {\r\n items = [...state.items, { ...incoming, quantity: incoming.quantity ?? 1 }];\r\n }\r\n return { items, ...computeTotals(items) };\r\n }),\r\n\r\n removeItem: (id) =>\r\n set((state) => {\r\n const items = state.items.filter((i) => i.id !== id);\r\n return { items, ...computeTotals(items) };\r\n }),\r\n\r\n updateQuantity: (id, quantity) =>\r\n set((state) => {\r\n if (quantity <= 0) {\r\n const items = state.items.filter((i) => i.id !== id);\r\n return { items, ...computeTotals(items) };\r\n }\r\n const items = state.items.map((i) =>\r\n i.id === id ? { ...i, quantity } : i,\r\n );\r\n return { items, ...computeTotals(items) };\r\n }),\r\n\r\n clearCart: () => set({ items: [], subtotal: 0, itemCount: 0 }),\r\n}));\r\n","import React from \"react\";\r\nimport { Minus, Plus, Trash2 } from \"lucide-react\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { useCartStore } from \"./useCartStore\";\r\nimport type { CartItem as CartItemType } from \"./types\";\r\n\r\nexport interface CartItemProps {\r\n item: CartItemType;\r\n /** Optional extra class names for the root element. */\r\n className?: string;\r\n}\r\n\r\n/** A single cart row — thumbnail, title, quantity stepper, line total, remove. */\r\nexport function CartItemRow({ item, className }: CartItemProps) {\r\n const updateQuantity = useCartStore((s) => s.updateQuantity);\r\n const removeItem = useCartStore((s) => s.removeItem);\r\n\r\n const lineTotal = item.price * item.quantity;\r\n\r\n return (\r\n \r\n {/* Thumbnail */}\r\n {item.image ? (\r\n \r\n ) : (\r\n
\r\n No img\r\n
\r\n )}\r\n\r\n {/* Info */}\r\n
\r\n {item.title}\r\n {item.variant && (\r\n {item.variant}\r\n )}\r\n \r\n ${item.price.toFixed(2)} each\r\n \r\n
\r\n\r\n {/* Quantity stepper */}\r\n
\r\n updateQuantity(item.id, item.quantity - 1)}\r\n aria-label=\"Decrease quantity\"\r\n >\r\n \r\n \r\n \r\n {item.quantity}\r\n \r\n updateQuantity(item.id, item.quantity + 1)}\r\n aria-label=\"Increase quantity\"\r\n >\r\n \r\n \r\n
\r\n\r\n {/* Line total */}\r\n \r\n ${lineTotal.toFixed(2)}\r\n \r\n\r\n {/* Remove */}\r\n removeItem(item.id)}\r\n aria-label={`Remove ${item.title}`}\r\n >\r\n \r\n \r\n
\r\n );\r\n}\r\n","import * as React from \"react\";\r\n\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nconst Card = React.forwardRef>(({ className, ...props }, ref) => (\r\n
\r\n));\r\nCard.displayName = \"Card\";\r\n\r\nconst CardHeader = React.forwardRef>(\r\n ({ className, ...props }, ref) => (\r\n
\r\n ),\r\n);\r\nCardHeader.displayName = \"CardHeader\";\r\n\r\nconst CardTitle = React.forwardRef>(\r\n ({ className, ...props }, ref) => (\r\n

\r\n ),\r\n);\r\nCardTitle.displayName = \"CardTitle\";\r\n\r\nconst CardDescription = React.forwardRef>(\r\n ({ className, ...props }, ref) => (\r\n

\r\n ),\r\n);\r\nCardDescription.displayName = \"CardDescription\";\r\n\r\nconst CardContent = React.forwardRef>(\r\n ({ className, ...props }, ref) =>

,\r\n);\r\nCardContent.displayName = \"CardContent\";\r\n\r\nconst CardFooter = React.forwardRef>(\r\n ({ className, ...props }, ref) => (\r\n
\r\n ),\r\n);\r\nCardFooter.displayName = \"CardFooter\";\r\n\r\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\r\n","// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n","// src/separator.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Separator\";\nvar DEFAULT_ORIENTATION = \"horizontal\";\nvar ORIENTATIONS = [\"horizontal\", \"vertical\"];\nvar Separator = React.forwardRef((props, forwardedRef) => {\n const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;\n const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;\n const ariaOrientation = orientation === \"vertical\" ? orientation : void 0;\n const semanticProps = decorative ? { role: \"none\" } : { \"aria-orientation\": ariaOrientation, role: \"separator\" };\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-orientation\": orientation,\n ...semanticProps,\n ...domProps,\n ref: forwardedRef\n }\n );\n});\nSeparator.displayName = NAME;\nfunction isValidOrientation(orientation) {\n return ORIENTATIONS.includes(orientation);\n}\nvar Root = Separator;\nexport {\n Root,\n Separator\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\r\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\r\n\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nconst Separator = React.forwardRef<\r\n React.ElementRef,\r\n React.ComponentPropsWithoutRef\r\n>(({ className, orientation = \"horizontal\", decorative = true, ...props }, ref) => (\r\n \r\n));\r\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\r\n\r\nexport { Separator };\r\n","import React from \"react\";\r\nimport { ShoppingCart, Trash2 } from \"lucide-react\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { Card, CardContent, CardFooter, CardHeader, CardTitle } from \"@/components/ui/card\";\r\nimport { Separator } from \"@/components/ui/separator\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { useCartStore } from \"./useCartStore\";\r\nimport { CartItemRow } from \"./CartItem\";\r\n\r\nexport interface CartPageProps {\r\n /** Called when user clicks \"Proceed to Checkout\". */\r\n onCheckout?: () => void;\r\n /** Optional extra class names. */\r\n className?: string;\r\n}\r\n\r\n/**\r\n * Full cart page — shows items, subtotal, and a checkout CTA.\r\n * Renders an empty-state when the cart has no items.\r\n */\r\nexport function CartPage({ onCheckout, className }: CartPageProps) {\r\n const items = useCartStore((s) => s.items);\r\n const subtotal = useCartStore((s) => s.subtotal);\r\n const itemCount = useCartStore((s) => s.itemCount);\r\n const clearCart = useCartStore((s) => s.clearCart);\r\n\r\n /* ---------- Empty state ---------- */\r\n if (items.length === 0) {\r\n return (\r\n
\r\n
\r\n \r\n
\r\n
\r\n

Your cart is empty

\r\n

\r\n Add some products to get started.\r\n

\r\n
\r\n
\r\n );\r\n }\r\n\r\n /* ---------- Cart with items ---------- */\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n Cart\r\n \r\n ({itemCount} {itemCount === 1 ? \"item\" : \"items\"})\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n {items.map((item) => (\r\n \r\n ))}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n Subtotal\r\n ${subtotal.toFixed(2)}\r\n
\r\n

\r\n Shipping and taxes calculated at checkout.\r\n

\r\n \r\n
\r\n
\r\n
\r\n );\r\n}\r\n","import React from \"react\";\r\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/components/ui/card\";\r\nimport { Separator } from \"@/components/ui/separator\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { useCartStore } from \"@/cart/useCartStore\";\r\n\r\nexport interface OrderSummaryProps {\r\n /** Tax amount (pass 0 or leave undefined to show \"Calculated at next step\"). */\r\n tax?: number;\r\n /** Shipping cost (pass 0 or leave undefined to show \"Free\" / \"TBD\"). */\r\n shipping?: number;\r\n /** Optional extra class names. */\r\n className?: string;\r\n}\r\n\r\n/**\r\n * Read-only order breakdown: line items, subtotal, tax, shipping, total.\r\n */\r\nexport function OrderSummary({ tax, shipping, className }: OrderSummaryProps) {\r\n const items = useCartStore((s) => s.items);\r\n const subtotal = useCartStore((s) => s.subtotal);\r\n\r\n const taxAmount = tax ?? 0;\r\n const shippingAmount = shipping ?? 0;\r\n const total = subtotal + taxAmount + shippingAmount;\r\n\r\n return (\r\n \r\n \r\n Order Summary\r\n \r\n\r\n \r\n {/* Line items */}\r\n
    \r\n {items.map((item) => (\r\n
  • \r\n \r\n {item.title} × {item.quantity}\r\n \r\n \r\n ${(item.price * item.quantity).toFixed(2)}\r\n \r\n
  • \r\n ))}\r\n
\r\n\r\n \r\n\r\n {/* Subtotal */}\r\n
\r\n Subtotal\r\n ${subtotal.toFixed(2)}\r\n
\r\n\r\n {/* Tax */}\r\n
\r\n Tax\r\n \r\n {tax !== undefined ? `$${taxAmount.toFixed(2)}` : \"Calculated at next step\"}\r\n \r\n
\r\n\r\n {/* Shipping */}\r\n
\r\n Shipping\r\n \r\n {shipping !== undefined\r\n ? shippingAmount === 0\r\n ? \"Free\"\r\n : `$${shippingAmount.toFixed(2)}`\r\n : \"TBD\"}\r\n \r\n
\r\n\r\n \r\n\r\n {/* Total */}\r\n
\r\n Total\r\n ${total.toFixed(2)}\r\n
\r\n
\r\n
\r\n );\r\n}\r\n","import * as React from \"react\";\r\n\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nconst Input = React.forwardRef>(\r\n ({ className, type, ...props }, ref) => {\r\n return (\r\n \r\n );\r\n },\r\n);\r\nInput.displayName = \"Input\";\r\n\r\nexport { Input };\r\n","// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/label.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Label\";\nvar Label = React.forwardRef((props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.label,\n {\n ...props,\n ref: forwardedRef,\n onMouseDown: (event) => {\n const target = event.target;\n if (target.closest(\"button, input, select, textarea\")) return;\n props.onMouseDown?.(event);\n if (!event.defaultPrevented && event.detail > 1) event.preventDefault();\n }\n }\n );\n});\nLabel.displayName = NAME;\nvar Root = Label;\nexport {\n Label,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\r\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\r\nimport { cva, type VariantProps } from \"class-variance-authority\";\r\n\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nconst labelVariants = cva(\r\n \"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\",\r\n);\r\n\r\nconst Label = React.forwardRef<\r\n React.ElementRef,\r\n React.ComponentPropsWithoutRef & VariantProps\r\n>(({ className, ...props }, ref) => (\r\n \r\n));\r\nLabel.displayName = LabelPrimitive.Root.displayName;\r\n\r\nexport { Label };\r\n","import React, { useState } from \"react\";\r\nimport { CreditCard, Bitcoin, ShoppingBag } from \"lucide-react\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/components/ui/card\";\r\nimport { Input } from \"@/components/ui/input\";\r\nimport { Label } from \"@/components/ui/label\";\r\nimport { Separator } from \"@/components/ui/separator\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { useCartStore } from \"@/cart/useCartStore\";\r\nimport { OrderSummary } from \"./OrderSummary\";\r\n\r\n/** Shipping address fields collected at checkout. */\r\nexport interface ShippingAddress {\r\n fullName: string;\r\n email: string;\r\n address: string;\r\n city: string;\r\n zip: string;\r\n country: string;\r\n}\r\n\r\nexport type PaymentMethod = \"shopify\" | \"crypto\";\r\n\r\nexport interface CheckoutPageProps {\r\n /** Called when user submits the checkout form. */\r\n onPlaceOrder?: (data: {\r\n shipping: ShippingAddress;\r\n paymentMethod: PaymentMethod;\r\n }) => void;\r\n /** Called when user clicks \"Back to Cart\". */\r\n onBackToCart?: () => void;\r\n /** Pre-filled tax amount, if known. */\r\n tax?: number;\r\n /** Pre-filled shipping cost. */\r\n shipping?: number;\r\n /** Optional extra class names. */\r\n className?: string;\r\n}\r\n\r\n/**\r\n * Checkout page — two-column layout with shipping form + payment selector on\r\n * the left and an OrderSummary on the right.\r\n */\r\nexport function CheckoutPage({\r\n onPlaceOrder,\r\n onBackToCart,\r\n tax,\r\n shipping,\r\n className,\r\n}: CheckoutPageProps) {\r\n const itemCount = useCartStore((s) => s.itemCount);\r\n\r\n const [paymentMethod, setPaymentMethod] = useState(\"shopify\");\r\n const [form, setForm] = useState({\r\n fullName: \"\",\r\n email: \"\",\r\n address: \"\",\r\n city: \"\",\r\n zip: \"\",\r\n country: \"\",\r\n });\r\n\r\n const field = (key: keyof ShippingAddress, value: string) =>\r\n setForm((prev) => ({ ...prev, [key]: value }));\r\n\r\n const handleSubmit = (e: React.FormEvent) => {\r\n e.preventDefault();\r\n onPlaceOrder?.({ shipping: form, paymentMethod });\r\n };\r\n\r\n /* ---- Empty cart guard ---- */\r\n if (itemCount === 0) {\r\n return (\r\n
\r\n \r\n

Your cart is empty — nothing to check out.

\r\n {onBackToCart && (\r\n \r\n )}\r\n
\r\n );\r\n }\r\n\r\n return (\r\n \r\n {/* ---- Left: Shipping + Payment ---- */}\r\n
\r\n {/* Shipping */}\r\n \r\n \r\n Shipping Information\r\n \r\n \r\n
\r\n \r\n field(\"fullName\", e.target.value)}\r\n />\r\n
\r\n\r\n
\r\n \r\n field(\"email\", e.target.value)}\r\n />\r\n
\r\n\r\n
\r\n \r\n field(\"address\", e.target.value)}\r\n />\r\n
\r\n\r\n
\r\n \r\n field(\"city\", e.target.value)}\r\n />\r\n
\r\n\r\n
\r\n \r\n field(\"zip\", e.target.value)}\r\n />\r\n
\r\n\r\n
\r\n \r\n field(\"country\", e.target.value)}\r\n />\r\n
\r\n
\r\n
\r\n\r\n {/* Payment Method */}\r\n \r\n \r\n Payment Method\r\n \r\n \r\n setPaymentMethod(\"shopify\")}\r\n className={cn(\r\n \"flex w-full items-center gap-3 rounded-lg border p-4 text-left transition-colors\",\r\n paymentMethod === \"shopify\"\r\n ? \"border-primary bg-primary/5\"\r\n : \"border-border hover:bg-accent/5\",\r\n )}\r\n >\r\n \r\n
\r\n

Shopify Checkout

\r\n

\r\n Credit / debit card via Shopify\r\n

\r\n
\r\n \r\n\r\n setPaymentMethod(\"crypto\")}\r\n className={cn(\r\n \"flex w-full items-center gap-3 rounded-lg border p-4 text-left transition-colors\",\r\n paymentMethod === \"crypto\"\r\n ? \"border-primary bg-primary/5\"\r\n : \"border-border hover:bg-accent/5\",\r\n )}\r\n >\r\n \r\n
\r\n

Crypto Payment

\r\n

\r\n Bitcoin, Ethereum, and more\r\n

\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n {/* ---- Right: Summary + CTA ---- */}\r\n
\r\n \r\n\r\n \r\n\r\n \r\n\r\n {onBackToCart && (\r\n \r\n ← Back to Cart\r\n \r\n )}\r\n
\r\n \r\n );\r\n}\r\n"],"names":["f","require$$0","k","l","m","n","p","q","c","a","g","b","d","e","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","args","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","type","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","name","source","ownerFn","x","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","fn","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","s","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","value","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","i","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","didWarnAboutKeySpread","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","beforeExample","afterExample","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","require$$1","setRef","composeRefs","refs","hasCleanup","cleanups","cleanup","use","isPromiseLike","isLazyComponent","createSlot","ownerName","SlotClone","createSlotClone","Slot2","forwardedRef","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","Slot","childrenRef","getElementRef","props2","mergeProps","SLOTTABLE_IDENTIFIER","childProps","overrideProps","slotPropValue","childPropValue","result","_a","mayWarn","_b","r","o","clsx","falsyToString","cx","cva","base","_config_compoundVariants","variants","defaultVariants","getVariantClassNames","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","acc","param","getCompoundVariantClassNames","cvClass","cvClassName","compoundVariantOptions","CLASS_PART_SEPARATOR","createClassGroupUtils","classMap","createClassMap","conflictingClassGroups","conflictingClassGroupModifiers","className","classParts","getGroupRecursive","getGroupIdForArbitraryProperty","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","classGroupFromNextClassPart","classRest","validator","arbitraryPropertyRegex","arbitraryPropertyClassName","property","theme","getPrefixedClassGroupEntries","classGroup","processClassesRecursively","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","path","currentClassPartObject","pathPart","func","classGroupEntries","prefixedClassGroup","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","IMPORTANT_MODIFIER","createParseClassName","separator","experimentalParseClassName","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","parseClassName","modifiers","bracketDepth","modifierStart","postfixModifierPosition","index","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","baseClassName","maybePostfixModifierPosition","sortModifiers","sortedModifiers","unsortedModifiers","modifier","createConfigUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","getClassGroupId","getConflictingClassGroupIds","classGroupsInConflict","classNames","originalClassName","variantModifier","modifierId","classId","conflictGroups","group","twJoin","argument","resolvedValue","string","toValue","mix","createTailwindMerge","createConfigFirst","createConfigRest","cacheGet","cacheSet","functionToCall","initTailwindMerge","previousConfig","createConfigCurrent","tailwindMerge","cachedResult","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","colorFunctionRegex","shadowRegex","imageRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","isArbitraryNumber","isInteger","isPercent","isArbitraryValue","isTshirtSize","sizeLabels","isArbitrarySize","isNever","isArbitraryPosition","imageLabels","isArbitraryImage","isImage","isArbitraryShadow","isShadow","isAny","label","testValue","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getOverscroll","getOverflow","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmptyAndArbitrary","getNumberWithAutoAndArbitrary","getPositions","getLineStyles","getBlendModes","getAlign","getZeroAndEmpty","getBreaks","getNumberAndArbitrary","twMerge","cn","inputs","buttonVariants","Button","size","asChild","Comp","createStoreImpl","createState","state","listeners","setState","partial","replace","nextState","previousState","listener","getState","api","initialState","createStore","identity","arg","useStore","selector","slice","createImpl","useBoundStore","create","computeTotals","items","sum","useCartStore","set","incoming","existing","id","quantity","CartItemRow","updateQuantity","removeItem","lineTotal","Minus","Plus","Trash2","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","NODES","Primitive","primitive","Node","primitiveProps","NAME","DEFAULT_ORIENTATION","ORIENTATIONS","Separator","decorative","orientationProp","domProps","orientation","isValidOrientation","semanticProps","Root","SeparatorPrimitive.Root","CartPage","onCheckout","subtotal","itemCount","clearCart","ShoppingCart","OrderSummary","tax","shipping","taxAmount","shippingAmount","total","Input","Label","event","labelVariants","LabelPrimitive.Root","CheckoutPage","onPlaceOrder","onBackToCart","paymentMethod","setPaymentMethod","useState","form","setForm","field","prev","handleSubmit","ShoppingBag","CreditCard","Bitcoin"],"mappings":";;;;;;;;;;;;;;;;;;AASa,MAAIA,IAAEC,IAAiBC,IAAE,OAAO,IAAI,eAAe,GAAEC,IAAE,OAAO,IAAI,gBAAgB,GAAEC,IAA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AAAA,cACR,WAAU;AAAA,cACV,SAASoF;AAAA,cACZ,UAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QAED,EAAA,CAER;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ;","x_google_ignoreList":[0,1,2,3,4,5,6,7,10,11,15,16,21,22]} \ No newline at end of file +{"version":3,"file":"pm-ecommerce.es.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/@radix-ui/react-compose-refs/dist/index.mjs","../node_modules/@radix-ui/react-slot/dist/index.mjs","../node_modules/clsx/dist/clsx.mjs","../node_modules/class-variance-authority/dist/index.mjs","../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../src/lib/utils.ts","../src/components/ui/button.tsx","../node_modules/zustand/esm/vanilla.mjs","../node_modules/zustand/esm/react.mjs","../node_modules/zustand/esm/middleware.mjs","../src/cart/useCartStore.ts","../src/cart/CartItem.tsx","../src/components/ui/card.tsx","../node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.mjs","../node_modules/@radix-ui/react-separator/dist/index.mjs","../src/components/ui/separator.tsx","../src/policies/PolicyLinks.tsx","../src/cart/CartPage.tsx","../src/checkout/OrderSummary.tsx","../src/components/ui/input.tsx","../node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.mjs","../node_modules/@radix-ui/react-label/dist/index.mjs","../src/components/ui/label.tsx","../src/checkout/CheckoutPage.tsx","../src/policies/PolicyPage.tsx","../src/policies/ShippingPage.tsx","../src/policies/ReturnsPage.tsx","../src/policies/PrivacyPolicyPage.tsx","../src/policies/TermsPage.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('')) {\n _frame = _frame.replace('', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie.
\n // or
). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n //
, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nvar didWarnAboutKeySpread = {};\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n {\n if (hasOwnProperty.call(props, 'key')) {\n var componentName = getComponentNameFromType(type);\n var keys = Object.keys(props).filter(function (k) {\n return k !== 'key';\n });\n var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';\n\n if (!didWarnAboutKeySpread[componentName + beforeExample]) {\n var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';\n\n error('A props object containing a \"key\" prop is being spread into JSX:\\n' + ' let props = %s;\\n' + ' <%s {...props} />\\n' + 'React keys must be passed directly to JSX without using spread:\\n' + ' let props = %s;\\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);\n\n didWarnAboutKeySpread[componentName + beforeExample] = true;\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n","// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nvar use = React[\" use \".trim().toString()];\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };\n\n","const CLASS_PART_SEPARATOR = '-';\nconst createClassGroupUtils = config => {\n const classMap = createClassMap(config);\n const {\n conflictingClassGroups,\n conflictingClassGroupModifiers\n } = config;\n const getClassGroupId = className => {\n const classParts = className.split(CLASS_PART_SEPARATOR);\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift();\n }\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n };\n const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {\n const conflicts = conflictingClassGroups[classGroupId] || [];\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [...conflicts, ...conflictingClassGroupModifiers[classGroupId]];\n }\n return conflicts;\n };\n return {\n getClassGroupId,\n getConflictingClassGroupIds\n };\n};\nconst getGroupRecursive = (classParts, classPartObject) => {\n if (classParts.length === 0) {\n return classPartObject.classGroupId;\n }\n const currentClassPart = classParts[0];\n const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n const classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart;\n }\n if (classPartObject.validators.length === 0) {\n return undefined;\n }\n const classRest = classParts.join(CLASS_PART_SEPARATOR);\n return classPartObject.validators.find(({\n validator\n }) => validator(classRest))?.classGroupId;\n};\nconst arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nconst getGroupIdForArbitraryProperty = className => {\n if (arbitraryPropertyRegex.test(className)) {\n const arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n const property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property;\n }\n }\n};\n/**\n * Exported for testing only\n */\nconst createClassMap = config => {\n const {\n theme,\n prefix\n } = config;\n const classMap = {\n nextPart: new Map(),\n validators: []\n };\n const prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n prefixedClassGroupEntries.forEach(([classGroupId, classGroup]) => {\n processClassesRecursively(classGroup, classMap, classGroupId, theme);\n });\n return classMap;\n};\nconst processClassesRecursively = (classGroup, classPartObject, classGroupId, theme) => {\n classGroup.forEach(classDefinition => {\n if (typeof classDefinition === 'string') {\n const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n classPartObjectToEdit.classGroupId = classGroupId;\n return;\n }\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n return;\n }\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId\n });\n return;\n }\n Object.entries(classDefinition).forEach(([key, classGroup]) => {\n processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n });\n });\n};\nconst getPart = (classPartObject, path) => {\n let currentClassPartObject = classPartObject;\n path.split(CLASS_PART_SEPARATOR).forEach(pathPart => {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: []\n });\n }\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n });\n return currentClassPartObject;\n};\nconst isThemeGetter = func => func.isThemeGetter;\nconst getPrefixedClassGroupEntries = (classGroupEntries, prefix) => {\n if (!prefix) {\n return classGroupEntries;\n }\n return classGroupEntries.map(([classGroupId, classGroup]) => {\n const prefixedClassGroup = classGroup.map(classDefinition => {\n if (typeof classDefinition === 'string') {\n return prefix + classDefinition;\n }\n if (typeof classDefinition === 'object') {\n return Object.fromEntries(Object.entries(classDefinition).map(([key, value]) => [prefix + key, value]));\n }\n return classDefinition;\n });\n return [classGroupId, prefixedClassGroup];\n });\n};\n\n// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nconst createLruCache = maxCacheSize => {\n if (maxCacheSize < 1) {\n return {\n get: () => undefined,\n set: () => {}\n };\n }\n let cacheSize = 0;\n let cache = new Map();\n let previousCache = new Map();\n const update = (key, value) => {\n cache.set(key, value);\n cacheSize++;\n if (cacheSize > maxCacheSize) {\n cacheSize = 0;\n previousCache = cache;\n cache = new Map();\n }\n };\n return {\n get(key) {\n let value = cache.get(key);\n if (value !== undefined) {\n return value;\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value);\n return value;\n }\n },\n set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value);\n } else {\n update(key, value);\n }\n }\n };\n};\nconst IMPORTANT_MODIFIER = '!';\nconst createParseClassName = config => {\n const {\n separator,\n experimentalParseClassName\n } = config;\n const isSeparatorSingleCharacter = separator.length === 1;\n const firstSeparatorCharacter = separator[0];\n const separatorLength = separator.length;\n // parseClassName inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n const parseClassName = className => {\n const modifiers = [];\n let bracketDepth = 0;\n let modifierStart = 0;\n let postfixModifierPosition;\n for (let index = 0; index < className.length; index++) {\n let currentCharacter = className[index];\n if (bracketDepth === 0) {\n if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n modifiers.push(className.slice(modifierStart, index));\n modifierStart = index + separatorLength;\n continue;\n }\n if (currentCharacter === '/') {\n postfixModifierPosition = index;\n continue;\n }\n }\n if (currentCharacter === '[') {\n bracketDepth++;\n } else if (currentCharacter === ']') {\n bracketDepth--;\n }\n }\n const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n const hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n const baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n return {\n modifiers,\n hasImportantModifier,\n baseClassName,\n maybePostfixModifierPosition\n };\n };\n if (experimentalParseClassName) {\n return className => experimentalParseClassName({\n className,\n parseClassName\n });\n }\n return parseClassName;\n};\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nconst sortModifiers = modifiers => {\n if (modifiers.length <= 1) {\n return modifiers;\n }\n const sortedModifiers = [];\n let unsortedModifiers = [];\n modifiers.forEach(modifier => {\n const isArbitraryVariant = modifier[0] === '[';\n if (isArbitraryVariant) {\n sortedModifiers.push(...unsortedModifiers.sort(), modifier);\n unsortedModifiers = [];\n } else {\n unsortedModifiers.push(modifier);\n }\n });\n sortedModifiers.push(...unsortedModifiers.sort());\n return sortedModifiers;\n};\nconst createConfigUtils = config => ({\n cache: createLruCache(config.cacheSize),\n parseClassName: createParseClassName(config),\n ...createClassGroupUtils(config)\n});\nconst SPLIT_CLASSES_REGEX = /\\s+/;\nconst mergeClassList = (classList, configUtils) => {\n const {\n parseClassName,\n getClassGroupId,\n getConflictingClassGroupIds\n } = configUtils;\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n const classGroupsInConflict = [];\n const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);\n let result = '';\n for (let index = classNames.length - 1; index >= 0; index -= 1) {\n const originalClassName = classNames[index];\n const {\n modifiers,\n hasImportantModifier,\n baseClassName,\n maybePostfixModifierPosition\n } = parseClassName(originalClassName);\n let hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n if (!classGroupId) {\n if (!hasPostfixModifier) {\n // Not a Tailwind class\n result = originalClassName + (result.length > 0 ? ' ' + result : result);\n continue;\n }\n classGroupId = getClassGroupId(baseClassName);\n if (!classGroupId) {\n // Not a Tailwind class\n result = originalClassName + (result.length > 0 ? ' ' + result : result);\n continue;\n }\n hasPostfixModifier = false;\n }\n const variantModifier = sortModifiers(modifiers).join(':');\n const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n const classId = modifierId + classGroupId;\n if (classGroupsInConflict.includes(classId)) {\n // Tailwind class omitted due to conflict\n continue;\n }\n classGroupsInConflict.push(classId);\n const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);\n for (let i = 0; i < conflictGroups.length; ++i) {\n const group = conflictGroups[i];\n classGroupsInConflict.push(modifierId + group);\n }\n // Tailwind class not in conflict\n result = originalClassName + (result.length > 0 ? ' ' + result : result);\n }\n return result;\n};\n\n/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com)\n */\nfunction twJoin() {\n let index = 0;\n let argument;\n let resolvedValue;\n let string = '';\n while (index < arguments.length) {\n if (argument = arguments[index++]) {\n if (resolvedValue = toValue(argument)) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nconst toValue = mix => {\n if (typeof mix === 'string') {\n return mix;\n }\n let resolvedValue;\n let string = '';\n for (let k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (resolvedValue = toValue(mix[k])) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n};\nfunction createTailwindMerge(createConfigFirst, ...createConfigRest) {\n let configUtils;\n let cacheGet;\n let cacheSet;\n let functionToCall = initTailwindMerge;\n function initTailwindMerge(classList) {\n const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());\n configUtils = createConfigUtils(config);\n cacheGet = configUtils.cache.get;\n cacheSet = configUtils.cache.set;\n functionToCall = tailwindMerge;\n return tailwindMerge(classList);\n }\n function tailwindMerge(classList) {\n const cachedResult = cacheGet(classList);\n if (cachedResult) {\n return cachedResult;\n }\n const result = mergeClassList(classList, configUtils);\n cacheSet(classList, result);\n return result;\n }\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments));\n };\n}\nconst fromTheme = key => {\n const themeGetter = theme => theme[key] || [];\n themeGetter.isThemeGetter = true;\n return themeGetter;\n};\nconst arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nconst fractionRegex = /^\\d+\\/\\d+$/;\nconst stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nconst tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nconst lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\nconst colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\\(.+\\)$/;\n// Shadow always begins with x and y offset separated by underscore optionally prepended by inset\nconst shadowRegex = /^(inset_)?-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nconst imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\\(.+\\)$/;\nconst isLength = value => isNumber(value) || stringLengths.has(value) || fractionRegex.test(value);\nconst isArbitraryLength = value => getIsArbitraryValue(value, 'length', isLengthOnly);\nconst isNumber = value => Boolean(value) && !Number.isNaN(Number(value));\nconst isArbitraryNumber = value => getIsArbitraryValue(value, 'number', isNumber);\nconst isInteger = value => Boolean(value) && Number.isInteger(Number(value));\nconst isPercent = value => value.endsWith('%') && isNumber(value.slice(0, -1));\nconst isArbitraryValue = value => arbitraryValueRegex.test(value);\nconst isTshirtSize = value => tshirtUnitRegex.test(value);\nconst sizeLabels = /*#__PURE__*/new Set(['length', 'size', 'percentage']);\nconst isArbitrarySize = value => getIsArbitraryValue(value, sizeLabels, isNever);\nconst isArbitraryPosition = value => getIsArbitraryValue(value, 'position', isNever);\nconst imageLabels = /*#__PURE__*/new Set(['image', 'url']);\nconst isArbitraryImage = value => getIsArbitraryValue(value, imageLabels, isImage);\nconst isArbitraryShadow = value => getIsArbitraryValue(value, '', isShadow);\nconst isAny = () => true;\nconst getIsArbitraryValue = (value, label, testValue) => {\n const result = arbitraryValueRegex.exec(value);\n if (result) {\n if (result[1]) {\n return typeof label === 'string' ? result[1] === label : label.has(result[1]);\n }\n return testValue(result[2]);\n }\n return false;\n};\nconst isLengthOnly = value =>\n// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.\n// For example, `hsl(0 0% 0%)` would be classified as a length without this check.\n// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.\nlengthUnitRegex.test(value) && !colorFunctionRegex.test(value);\nconst isNever = () => false;\nconst isShadow = value => shadowRegex.test(value);\nconst isImage = value => imageRegex.test(value);\nconst validators = /*#__PURE__*/Object.defineProperty({\n __proto__: null,\n isAny,\n isArbitraryImage,\n isArbitraryLength,\n isArbitraryNumber,\n isArbitraryPosition,\n isArbitraryShadow,\n isArbitrarySize,\n isArbitraryValue,\n isInteger,\n isLength,\n isNumber,\n isPercent,\n isTshirtSize\n}, Symbol.toStringTag, {\n value: 'Module'\n});\nconst getDefaultConfig = () => {\n const colors = fromTheme('colors');\n const spacing = fromTheme('spacing');\n const blur = fromTheme('blur');\n const brightness = fromTheme('brightness');\n const borderColor = fromTheme('borderColor');\n const borderRadius = fromTheme('borderRadius');\n const borderSpacing = fromTheme('borderSpacing');\n const borderWidth = fromTheme('borderWidth');\n const contrast = fromTheme('contrast');\n const grayscale = fromTheme('grayscale');\n const hueRotate = fromTheme('hueRotate');\n const invert = fromTheme('invert');\n const gap = fromTheme('gap');\n const gradientColorStops = fromTheme('gradientColorStops');\n const gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n const inset = fromTheme('inset');\n const margin = fromTheme('margin');\n const opacity = fromTheme('opacity');\n const padding = fromTheme('padding');\n const saturate = fromTheme('saturate');\n const scale = fromTheme('scale');\n const sepia = fromTheme('sepia');\n const skew = fromTheme('skew');\n const space = fromTheme('space');\n const translate = fromTheme('translate');\n const getOverscroll = () => ['auto', 'contain', 'none'];\n const getOverflow = () => ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n const getSpacingWithAutoAndArbitrary = () => ['auto', isArbitraryValue, spacing];\n const getSpacingWithArbitrary = () => [isArbitraryValue, spacing];\n const getLengthWithEmptyAndArbitrary = () => ['', isLength, isArbitraryLength];\n const getNumberWithAutoAndArbitrary = () => ['auto', isNumber, isArbitraryValue];\n const getPositions = () => ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n const getLineStyles = () => ['solid', 'dashed', 'dotted', 'double', 'none'];\n const getBlendModes = () => ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity'];\n const getAlign = () => ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n const getZeroAndEmpty = () => ['', '0', isArbitraryValue];\n const getBreaks = () => ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n const getNumberAndArbitrary = () => [isNumber, isArbitraryValue];\n return {\n cacheSize: 500,\n separator: ':',\n theme: {\n colors: [isAny],\n spacing: [isLength, isArbitraryLength],\n blur: ['none', '', isTshirtSize, isArbitraryValue],\n brightness: getNumberAndArbitrary(),\n borderColor: [colors],\n borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n borderSpacing: getSpacingWithArbitrary(),\n borderWidth: getLengthWithEmptyAndArbitrary(),\n contrast: getNumberAndArbitrary(),\n grayscale: getZeroAndEmpty(),\n hueRotate: getNumberAndArbitrary(),\n invert: getZeroAndEmpty(),\n gap: getSpacingWithArbitrary(),\n gradientColorStops: [colors],\n gradientColorStopPositions: [isPercent, isArbitraryLength],\n inset: getSpacingWithAutoAndArbitrary(),\n margin: getSpacingWithAutoAndArbitrary(),\n opacity: getNumberAndArbitrary(),\n padding: getSpacingWithArbitrary(),\n saturate: getNumberAndArbitrary(),\n scale: getNumberAndArbitrary(),\n sepia: getZeroAndEmpty(),\n skew: getNumberAndArbitrary(),\n space: getSpacingWithArbitrary(),\n translate: getSpacingWithArbitrary()\n },\n classGroups: {\n // Layout\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [{\n aspect: ['auto', 'square', 'video', isArbitraryValue]\n }],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [{\n columns: [isTshirtSize]\n }],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{\n 'break-after': getBreaks()\n }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{\n 'break-before': getBreaks()\n }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{\n 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{\n 'box-decoration': ['slice', 'clone']\n }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{\n box: ['border', 'content']\n }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n float: [{\n float: ['right', 'left', 'none', 'start', 'end']\n }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{\n clear: ['left', 'right', 'both', 'none', 'start', 'end']\n }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{\n object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{\n object: [...getPositions(), isArbitraryValue]\n }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{\n overflow: getOverflow()\n }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{\n 'overflow-x': getOverflow()\n }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{\n 'overflow-y': getOverflow()\n }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{\n overscroll: getOverscroll()\n }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{\n 'overscroll-x': getOverscroll()\n }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{\n 'overscroll-y': getOverscroll()\n }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{\n inset: [inset]\n }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{\n 'inset-x': [inset]\n }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{\n 'inset-y': [inset]\n }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{\n start: [inset]\n }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{\n end: [inset]\n }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{\n top: [inset]\n }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{\n right: [inset]\n }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{\n bottom: [inset]\n }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{\n left: [inset]\n }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{\n z: ['auto', isInteger, isArbitraryValue]\n }],\n // Flexbox and Grid\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [{\n basis: getSpacingWithAutoAndArbitrary()\n }],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{\n flex: ['row', 'row-reverse', 'col', 'col-reverse']\n }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{\n flex: ['wrap', 'wrap-reverse', 'nowrap']\n }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{\n flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{\n grow: getZeroAndEmpty()\n }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{\n shrink: getZeroAndEmpty()\n }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [{\n order: ['first', 'last', 'none', isInteger, isArbitraryValue]\n }],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{\n 'grid-cols': [isAny]\n }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{\n col: ['auto', {\n span: ['full', isInteger, isArbitraryValue]\n }, isArbitraryValue]\n }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{\n 'col-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{\n 'col-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{\n 'grid-rows': [isAny]\n }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{\n row: ['auto', {\n span: [isInteger, isArbitraryValue]\n }, isArbitraryValue]\n }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{\n 'row-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{\n 'row-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{\n 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{\n 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{\n 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{\n gap: [gap]\n }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{\n 'gap-x': [gap]\n }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{\n 'gap-y': [gap]\n }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{\n justify: ['normal', ...getAlign()]\n }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{\n 'justify-items': ['start', 'end', 'center', 'stretch']\n }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{\n 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{\n content: ['normal', ...getAlign(), 'baseline']\n }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{\n items: ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [{\n self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n }],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{\n 'place-content': [...getAlign(), 'baseline']\n }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{\n 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{\n 'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{\n p: [padding]\n }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{\n px: [padding]\n }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{\n py: [padding]\n }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{\n ps: [padding]\n }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{\n pe: [padding]\n }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{\n pt: [padding]\n }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{\n pr: [padding]\n }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{\n pb: [padding]\n }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{\n pl: [padding]\n }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{\n m: [margin]\n }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{\n mx: [margin]\n }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{\n my: [margin]\n }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{\n ms: [margin]\n }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{\n me: [margin]\n }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{\n mt: [margin]\n }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{\n mr: [margin]\n }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{\n mb: [margin]\n }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{\n ml: [margin]\n }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x': [{\n 'space-x': [space]\n }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y': [{\n 'space-y': [space]\n }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y-reverse': ['space-y-reverse'],\n // Sizing\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{\n w: ['auto', 'min', 'max', 'fit', 'svw', 'lvw', 'dvw', isArbitraryValue, spacing]\n }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [{\n 'min-w': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n }],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [{\n 'max-w': [isArbitraryValue, spacing, 'none', 'full', 'min', 'max', 'fit', 'prose', {\n screen: [isTshirtSize]\n }, isTshirtSize]\n }],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{\n h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{\n 'min-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{\n 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit', 'svh', 'lvh', 'dvh']\n }],\n /**\n * Size\n * @see https://tailwindcss.com/docs/size\n */\n size: [{\n size: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n }],\n // Typography\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [{\n text: ['base', isTshirtSize, isArbitraryLength]\n }],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{\n font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n }],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{\n font: [isAny]\n }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractions'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [{\n 'line-clamp': ['none', isNumber, isArbitraryNumber]\n }],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [{\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isLength, isArbitraryValue]\n }],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{\n 'list-image': ['none', isArbitraryValue]\n }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [{\n list: ['none', 'disc', 'decimal', isArbitraryValue]\n }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{\n list: ['inside', 'outside']\n }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{\n placeholder: [colors]\n }],\n /**\n * Placeholder Opacity\n * @see https://tailwindcss.com/docs/placeholder-opacity\n */\n 'placeholder-opacity': [{\n 'placeholder-opacity': [opacity]\n }],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{\n text: ['left', 'center', 'right', 'justify', 'start', 'end']\n }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{\n text: [colors]\n }],\n /**\n * Text Opacity\n * @see https://tailwindcss.com/docs/text-opacity\n */\n 'text-opacity': [{\n 'text-opacity': [opacity]\n }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{\n decoration: [...getLineStyles(), 'wavy']\n }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [{\n decoration: ['auto', 'from-font', isLength, isArbitraryLength]\n }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [{\n 'underline-offset': ['auto', isLength, isArbitraryValue]\n }],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{\n decoration: [colors]\n }],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Wrap\n * @see https://tailwindcss.com/docs/text-wrap\n */\n 'text-wrap': [{\n text: ['wrap', 'nowrap', 'balance', 'pretty']\n }],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{\n indent: getSpacingWithArbitrary()\n }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [{\n align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n }],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [{\n whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n }],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n break: [{\n break: ['normal', 'words', 'all', 'keep']\n }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{\n hyphens: ['none', 'manual', 'auto']\n }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{\n content: ['none', isArbitraryValue]\n }],\n // Backgrounds\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{\n bg: ['fixed', 'local', 'scroll']\n }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{\n 'bg-clip': ['border', 'padding', 'content', 'text']\n }],\n /**\n * Background Opacity\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/background-opacity\n */\n 'bg-opacity': [{\n 'bg-opacity': [opacity]\n }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{\n 'bg-origin': ['border', 'padding', 'content']\n }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{\n bg: [...getPositions(), isArbitraryPosition]\n }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{\n bg: ['no-repeat', {\n repeat: ['', 'x', 'y', 'round', 'space']\n }]\n }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{\n bg: ['auto', 'cover', 'contain', isArbitrarySize]\n }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [{\n bg: ['none', {\n 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n }, isArbitraryImage]\n }],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{\n bg: [colors]\n }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{\n from: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{\n via: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{\n to: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{\n from: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{\n via: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{\n to: [gradientColorStops]\n }],\n // Borders\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{\n rounded: [borderRadius]\n }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{\n 'rounded-s': [borderRadius]\n }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{\n 'rounded-e': [borderRadius]\n }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{\n 'rounded-t': [borderRadius]\n }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{\n 'rounded-r': [borderRadius]\n }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{\n 'rounded-b': [borderRadius]\n }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{\n 'rounded-l': [borderRadius]\n }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{\n 'rounded-ss': [borderRadius]\n }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{\n 'rounded-se': [borderRadius]\n }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{\n 'rounded-ee': [borderRadius]\n }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{\n 'rounded-es': [borderRadius]\n }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{\n 'rounded-tl': [borderRadius]\n }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{\n 'rounded-tr': [borderRadius]\n }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{\n 'rounded-br': [borderRadius]\n }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{\n 'rounded-bl': [borderRadius]\n }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{\n border: [borderWidth]\n }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{\n 'border-x': [borderWidth]\n }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{\n 'border-y': [borderWidth]\n }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{\n 'border-s': [borderWidth]\n }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{\n 'border-e': [borderWidth]\n }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{\n 'border-t': [borderWidth]\n }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{\n 'border-r': [borderWidth]\n }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{\n 'border-b': [borderWidth]\n }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{\n 'border-l': [borderWidth]\n }],\n /**\n * Border Opacity\n * @see https://tailwindcss.com/docs/border-opacity\n */\n 'border-opacity': [{\n 'border-opacity': [opacity]\n }],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{\n border: [...getLineStyles(), 'hidden']\n }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x': [{\n 'divide-x': [borderWidth]\n }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y': [{\n 'divide-y': [borderWidth]\n }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Divide Opacity\n * @see https://tailwindcss.com/docs/divide-opacity\n */\n 'divide-opacity': [{\n 'divide-opacity': [opacity]\n }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/divide-style\n */\n 'divide-style': [{\n divide: getLineStyles()\n }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{\n border: [borderColor]\n }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{\n 'border-x': [borderColor]\n }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{\n 'border-y': [borderColor]\n }],\n /**\n * Border Color S\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-s': [{\n 'border-s': [borderColor]\n }],\n /**\n * Border Color E\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-e': [{\n 'border-e': [borderColor]\n }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{\n 'border-t': [borderColor]\n }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{\n 'border-r': [borderColor]\n }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{\n 'border-b': [borderColor]\n }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{\n 'border-l': [borderColor]\n }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{\n divide: [borderColor]\n }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{\n outline: ['', ...getLineStyles()]\n }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [{\n 'outline-offset': [isLength, isArbitraryValue]\n }],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [{\n outline: [isLength, isArbitraryLength]\n }],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{\n outline: [colors]\n }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w': [{\n ring: getLengthWithEmptyAndArbitrary()\n }],\n /**\n * Ring Width Inset\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/ring-color\n */\n 'ring-color': [{\n ring: [colors]\n }],\n /**\n * Ring Opacity\n * @see https://tailwindcss.com/docs/ring-opacity\n */\n 'ring-opacity': [{\n 'ring-opacity': [opacity]\n }],\n /**\n * Ring Offset Width\n * @see https://tailwindcss.com/docs/ring-offset-width\n */\n 'ring-offset-w': [{\n 'ring-offset': [isLength, isArbitraryLength]\n }],\n /**\n * Ring Offset Color\n * @see https://tailwindcss.com/docs/ring-offset-color\n */\n 'ring-offset-color': [{\n 'ring-offset': [colors]\n }],\n // Effects\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [{\n shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n }],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow-color\n */\n 'shadow-color': [{\n shadow: [isAny]\n }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{\n opacity: [opacity]\n }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{\n 'mix-blend': [...getBlendModes(), 'plus-lighter', 'plus-darker']\n }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{\n 'bg-blend': getBlendModes()\n }],\n // Filters\n /**\n * Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [{\n filter: ['', 'none']\n }],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{\n blur: [blur]\n }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{\n brightness: [brightness]\n }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{\n contrast: [contrast]\n }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [{\n 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{\n grayscale: [grayscale]\n }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{\n 'hue-rotate': [hueRotate]\n }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{\n invert: [invert]\n }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{\n saturate: [saturate]\n }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{\n sepia: [sepia]\n }],\n /**\n * Backdrop Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [{\n 'backdrop-filter': ['', 'none']\n }],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{\n 'backdrop-blur': [blur]\n }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [{\n 'backdrop-brightness': [brightness]\n }],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [{\n 'backdrop-contrast': [contrast]\n }],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [{\n 'backdrop-grayscale': [grayscale]\n }],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [{\n 'backdrop-hue-rotate': [hueRotate]\n }],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [{\n 'backdrop-invert': [invert]\n }],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [{\n 'backdrop-opacity': [opacity]\n }],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [{\n 'backdrop-saturate': [saturate]\n }],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [{\n 'backdrop-sepia': [sepia]\n }],\n // Tables\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{\n border: ['collapse', 'separate']\n }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{\n 'border-spacing': [borderSpacing]\n }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{\n 'border-spacing-x': [borderSpacing]\n }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{\n 'border-spacing-y': [borderSpacing]\n }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{\n table: ['auto', 'fixed']\n }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{\n caption: ['top', 'bottom']\n }],\n // Transitions and Animation\n /**\n * Tranisition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [{\n transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{\n duration: getNumberAndArbitrary()\n }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [{\n ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n }],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{\n delay: getNumberAndArbitrary()\n }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{\n animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n }],\n // Transforms\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [{\n transform: ['', 'gpu', 'none']\n }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{\n scale: [scale]\n }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{\n 'scale-x': [scale]\n }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{\n 'scale-y': [scale]\n }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{\n rotate: [isInteger, isArbitraryValue]\n }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{\n 'translate-x': [translate]\n }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{\n 'translate-y': [translate]\n }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{\n 'skew-x': [skew]\n }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{\n 'skew-y': [skew]\n }],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{\n origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n }],\n // Interactivity\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{\n accent: ['auto', colors]\n }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: [{\n appearance: ['none', 'auto']\n }],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [{\n cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{\n caret: [colors]\n }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{\n 'pointer-events': ['none', 'auto']\n }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{\n resize: ['none', 'y', 'x', '']\n }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{\n scroll: ['auto', 'smooth']\n }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{\n 'scroll-m': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{\n 'scroll-mx': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{\n 'scroll-my': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{\n 'scroll-ms': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{\n 'scroll-me': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{\n 'scroll-mt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{\n 'scroll-mr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{\n 'scroll-mb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{\n 'scroll-ml': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{\n 'scroll-p': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{\n 'scroll-px': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{\n 'scroll-py': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{\n 'scroll-ps': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{\n 'scroll-pe': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{\n 'scroll-pt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{\n 'scroll-pr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{\n 'scroll-pb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{\n 'scroll-pl': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{\n snap: ['start', 'end', 'center', 'align-none']\n }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{\n snap: ['normal', 'always']\n }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{\n snap: ['none', 'x', 'y', 'both']\n }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{\n snap: ['mandatory', 'proximity']\n }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{\n touch: ['auto', 'none', 'manipulation']\n }],\n /**\n * Touch Action X\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-x': [{\n 'touch-pan': ['x', 'left', 'right']\n }],\n /**\n * Touch Action Y\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-y': [{\n 'touch-pan': ['y', 'up', 'down']\n }],\n /**\n * Touch Action Pinch Zoom\n * @see https://tailwindcss.com/docs/touch-action\n */\n 'touch-pz': ['touch-pinch-zoom'],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{\n select: ['none', 'text', 'all', 'auto']\n }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [{\n 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n }],\n // SVG\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{\n fill: [colors, 'none']\n }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [{\n stroke: [isLength, isArbitraryLength, isArbitraryNumber]\n }],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{\n stroke: [colors, 'none']\n }],\n // Accessibility\n /**\n * Screen Readers\n * @see https://tailwindcss.com/docs/screen-readers\n */\n sr: ['sr-only', 'not-sr-only'],\n /**\n * Forced Color Adjust\n * @see https://tailwindcss.com/docs/forced-color-adjust\n */\n 'forced-color-adjust': [{\n 'forced-color-adjust': ['auto', 'none']\n }]\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n size: ['w', 'h'],\n 'font-size': ['leading'],\n 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n 'line-clamp': ['display', 'overflow'],\n rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': ['border-color-s', 'border-color-e', 'border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb'],\n touch: ['touch-x', 'touch-y', 'touch-pz'],\n 'touch-x': ['touch'],\n 'touch-y': ['touch'],\n 'touch-pz': ['touch']\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading']\n }\n };\n};\n\n/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nconst mergeConfigs = (baseConfig, {\n cacheSize,\n prefix,\n separator,\n experimentalParseClassName,\n extend = {},\n override = {}\n}) => {\n overrideProperty(baseConfig, 'cacheSize', cacheSize);\n overrideProperty(baseConfig, 'prefix', prefix);\n overrideProperty(baseConfig, 'separator', separator);\n overrideProperty(baseConfig, 'experimentalParseClassName', experimentalParseClassName);\n for (const configKey in override) {\n overrideConfigProperties(baseConfig[configKey], override[configKey]);\n }\n for (const key in extend) {\n mergeConfigProperties(baseConfig[key], extend[key]);\n }\n return baseConfig;\n};\nconst overrideProperty = (baseObject, overrideKey, overrideValue) => {\n if (overrideValue !== undefined) {\n baseObject[overrideKey] = overrideValue;\n }\n};\nconst overrideConfigProperties = (baseObject, overrideObject) => {\n if (overrideObject) {\n for (const key in overrideObject) {\n overrideProperty(baseObject, key, overrideObject[key]);\n }\n }\n};\nconst mergeConfigProperties = (baseObject, mergeObject) => {\n if (mergeObject) {\n for (const key in mergeObject) {\n const mergeValue = mergeObject[key];\n if (mergeValue !== undefined) {\n baseObject[key] = (baseObject[key] || []).concat(mergeValue);\n }\n }\n }\n};\nconst extendTailwindMerge = (configExtension, ...createConfig) => typeof configExtension === 'function' ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);\nconst twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\nexport { createTailwindMerge, extendTailwindMerge, fromTheme, getDefaultConfig, mergeConfigs, twJoin, twMerge, validators };\n//# sourceMappingURL=bundle-mjs.mjs.map\n","import { clsx, type ClassValue } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n return twMerge(clsx(inputs));\r\n}\r\n","import * as React from \"react\";\r\nimport { Slot } from \"@radix-ui/react-slot\";\r\nimport { cva, type VariantProps } from \"class-variance-authority\";\r\n\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nconst buttonVariants = cva(\r\n \"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\",\r\n {\r\n variants: {\r\n variant: {\r\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\r\n destructive: \"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\r\n outline: \"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\r\n secondary: \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\r\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\r\n link: \"text-primary underline-offset-4 hover:underline\",\r\n },\r\n size: {\r\n default: \"h-10 px-4 py-2\",\r\n sm: \"h-9 rounded-md px-2\",\r\n lg: \"h-11 rounded-md px-4\",\r\n icon: \"h-10 w-10\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"default\",\r\n size: \"default\",\r\n },\r\n },\r\n);\r\n\r\nexport interface ButtonProps\r\n extends React.ButtonHTMLAttributes,\r\n VariantProps {\r\n asChild?: boolean;\r\n}\r\n\r\nconst Button = React.forwardRef(\r\n ({ className, variant, size, asChild = false, ...props }, ref) => {\r\n const Comp = asChild ? Slot : \"button\";\r\n return ;\r\n },\r\n);\r\nButton.displayName = \"Button\";\r\n\r\nexport { Button, buttonVariants };\r\n","const createStoreImpl = (createState) => {\n let state;\n const listeners = /* @__PURE__ */ new Set();\n const setState = (partial, replace) => {\n const nextState = typeof partial === \"function\" ? partial(state) : partial;\n if (!Object.is(nextState, state)) {\n const previousState = state;\n state = (replace != null ? replace : typeof nextState !== \"object\" || nextState === null) ? nextState : Object.assign({}, state, nextState);\n listeners.forEach((listener) => listener(state, previousState));\n }\n };\n const getState = () => state;\n const getInitialState = () => initialState;\n const subscribe = (listener) => {\n listeners.add(listener);\n return () => listeners.delete(listener);\n };\n const api = { setState, getState, getInitialState, subscribe };\n const initialState = state = createState(setState, getState, api);\n return api;\n};\nconst createStore = ((createState) => createState ? createStoreImpl(createState) : createStoreImpl);\n\nexport { createStore };\n","import React from 'react';\nimport { createStore } from 'zustand/vanilla';\n\nconst identity = (arg) => arg;\nfunction useStore(api, selector = identity) {\n const slice = React.useSyncExternalStore(\n api.subscribe,\n React.useCallback(() => selector(api.getState()), [api, selector]),\n React.useCallback(() => selector(api.getInitialState()), [api, selector])\n );\n React.useDebugValue(slice);\n return slice;\n}\nconst createImpl = (createState) => {\n const api = createStore(createState);\n const useBoundStore = (selector) => useStore(api, selector);\n Object.assign(useBoundStore, api);\n return useBoundStore;\n};\nconst create = ((createState) => createState ? createImpl(createState) : createImpl);\n\nexport { create, useStore };\n","const reduxImpl = (reducer, initial) => (set, _get, api) => {\n api.dispatch = (action) => {\n set((state) => reducer(state, action), false, action);\n return action;\n };\n api.dispatchFromDevtools = true;\n return { dispatch: (...args) => api.dispatch(...args), ...initial };\n};\nconst redux = reduxImpl;\n\nconst shouldDispatchFromDevtools = (api) => !!api.dispatchFromDevtools && typeof api.dispatch === \"function\";\nconst trackedConnections = /* @__PURE__ */ new Map();\nconst getTrackedConnectionState = (name) => {\n const api = trackedConnections.get(name);\n if (!api) return {};\n return Object.fromEntries(\n Object.entries(api.stores).map(([key, api2]) => [key, api2.getState()])\n );\n};\nconst extractConnectionInformation = (store, extensionConnector, options) => {\n if (store === void 0) {\n return {\n type: \"untracked\",\n connection: extensionConnector.connect(options)\n };\n }\n const existingConnection = trackedConnections.get(options.name);\n if (existingConnection) {\n return { type: \"tracked\", store, ...existingConnection };\n }\n const newConnection = {\n connection: extensionConnector.connect(options),\n stores: {}\n };\n trackedConnections.set(options.name, newConnection);\n return { type: \"tracked\", store, ...newConnection };\n};\nconst removeStoreFromTrackedConnections = (name, store) => {\n if (store === void 0) return;\n const connectionInfo = trackedConnections.get(name);\n if (!connectionInfo) return;\n delete connectionInfo.stores[store];\n if (Object.keys(connectionInfo.stores).length === 0) {\n trackedConnections.delete(name);\n }\n};\nconst findCallerName = (stack) => {\n var _a, _b;\n if (!stack) return void 0;\n const traceLines = stack.split(\"\\n\");\n const apiSetStateLineIndex = traceLines.findIndex(\n (traceLine) => traceLine.includes(\"api.setState\")\n );\n if (apiSetStateLineIndex < 0) return void 0;\n const callerLine = ((_a = traceLines[apiSetStateLineIndex + 1]) == null ? void 0 : _a.trim()) || \"\";\n return (_b = /.+ (.+) .+/.exec(callerLine)) == null ? void 0 : _b[1];\n};\nconst devtoolsImpl = (fn, devtoolsOptions = {}) => (set, get, api) => {\n const { enabled, anonymousActionType, store, ...options } = devtoolsOptions;\n let extensionConnector;\n try {\n extensionConnector = (enabled != null ? enabled : (import.meta.env ? import.meta.env.MODE : void 0) !== \"production\") && window.__REDUX_DEVTOOLS_EXTENSION__;\n } catch (e) {\n }\n if (!extensionConnector) {\n return fn(set, get, api);\n }\n const { connection, ...connectionInformation } = extractConnectionInformation(store, extensionConnector, options);\n let isRecording = true;\n api.setState = ((state, replace, nameOrAction) => {\n const r = set(state, replace);\n if (!isRecording) return r;\n const action = nameOrAction === void 0 ? {\n type: anonymousActionType || findCallerName(new Error().stack) || \"anonymous\"\n } : typeof nameOrAction === \"string\" ? { type: nameOrAction } : nameOrAction;\n if (store === void 0) {\n connection == null ? void 0 : connection.send(action, get());\n return r;\n }\n connection == null ? void 0 : connection.send(\n {\n ...action,\n type: `${store}/${action.type}`\n },\n {\n ...getTrackedConnectionState(options.name),\n [store]: api.getState()\n }\n );\n return r;\n });\n api.devtools = {\n cleanup: () => {\n if (connection && typeof connection.unsubscribe === \"function\") {\n connection.unsubscribe();\n }\n removeStoreFromTrackedConnections(options.name, store);\n }\n };\n const setStateFromDevtools = (...a) => {\n const originalIsRecording = isRecording;\n isRecording = false;\n set(...a);\n isRecording = originalIsRecording;\n };\n const initialState = fn(api.setState, get, api);\n if (connectionInformation.type === \"untracked\") {\n connection == null ? void 0 : connection.init(initialState);\n } else {\n connectionInformation.stores[connectionInformation.store] = api;\n connection == null ? void 0 : connection.init(\n Object.fromEntries(\n Object.entries(connectionInformation.stores).map(([key, store2]) => [\n key,\n key === connectionInformation.store ? initialState : store2.getState()\n ])\n )\n );\n }\n if (shouldDispatchFromDevtools(api)) {\n let didWarnAboutReservedActionType = false;\n const originalDispatch = api.dispatch;\n api.dispatch = (...args) => {\n if ((import.meta.env ? import.meta.env.MODE : void 0) !== \"production\" && args[0].type === \"__setState\" && !didWarnAboutReservedActionType) {\n console.warn(\n '[zustand devtools middleware] \"__setState\" action type is reserved to set state from the devtools. Avoid using it.'\n );\n didWarnAboutReservedActionType = true;\n }\n originalDispatch(...args);\n };\n }\n connection.subscribe((message) => {\n var _a;\n switch (message.type) {\n case \"ACTION\":\n if (typeof message.payload !== \"string\") {\n console.error(\n \"[zustand devtools middleware] Unsupported action format\"\n );\n return;\n }\n return parseJsonThen(\n message.payload,\n (action) => {\n if (action.type === \"__setState\") {\n if (store === void 0) {\n setStateFromDevtools(action.state);\n return;\n }\n if (Object.keys(action.state).length !== 1) {\n console.error(\n `\n [zustand devtools middleware] Unsupported __setState action format.\n When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),\n and value of this only key should be a state object. Example: { \"type\": \"__setState\", \"state\": { \"abc123Store\": { \"foo\": \"bar\" } } }\n `\n );\n }\n const stateFromDevtools = action.state[store];\n if (stateFromDevtools === void 0 || stateFromDevtools === null) {\n return;\n }\n if (JSON.stringify(api.getState()) !== JSON.stringify(stateFromDevtools)) {\n setStateFromDevtools(stateFromDevtools);\n }\n return;\n }\n if (shouldDispatchFromDevtools(api)) {\n api.dispatch(action);\n }\n }\n );\n case \"DISPATCH\":\n switch (message.payload.type) {\n case \"RESET\":\n setStateFromDevtools(initialState);\n if (store === void 0) {\n return connection == null ? void 0 : connection.init(api.getState());\n }\n return connection == null ? void 0 : connection.init(getTrackedConnectionState(options.name));\n case \"COMMIT\":\n if (store === void 0) {\n connection == null ? void 0 : connection.init(api.getState());\n return;\n }\n return connection == null ? void 0 : connection.init(getTrackedConnectionState(options.name));\n case \"ROLLBACK\":\n return parseJsonThen(message.state, (state) => {\n if (store === void 0) {\n setStateFromDevtools(state);\n connection == null ? void 0 : connection.init(api.getState());\n return;\n }\n setStateFromDevtools(state[store]);\n connection == null ? void 0 : connection.init(getTrackedConnectionState(options.name));\n });\n case \"JUMP_TO_STATE\":\n case \"JUMP_TO_ACTION\":\n return parseJsonThen(message.state, (state) => {\n if (store === void 0) {\n setStateFromDevtools(state);\n return;\n }\n if (JSON.stringify(api.getState()) !== JSON.stringify(state[store])) {\n setStateFromDevtools(state[store]);\n }\n });\n case \"IMPORT_STATE\": {\n const { nextLiftedState } = message.payload;\n const lastComputedState = (_a = nextLiftedState.computedStates.slice(-1)[0]) == null ? void 0 : _a.state;\n if (!lastComputedState) return;\n if (store === void 0) {\n setStateFromDevtools(lastComputedState);\n } else {\n setStateFromDevtools(lastComputedState[store]);\n }\n connection == null ? void 0 : connection.send(\n null,\n // FIXME no-any\n nextLiftedState\n );\n return;\n }\n case \"PAUSE_RECORDING\":\n return isRecording = !isRecording;\n }\n return;\n }\n });\n return initialState;\n};\nconst devtools = devtoolsImpl;\nconst parseJsonThen = (stringified, fn) => {\n let parsed;\n try {\n parsed = JSON.parse(stringified);\n } catch (e) {\n console.error(\n \"[zustand devtools middleware] Could not parse the received json\",\n e\n );\n }\n if (parsed !== void 0) fn(parsed);\n};\n\nconst subscribeWithSelectorImpl = (fn) => (set, get, api) => {\n const origSubscribe = api.subscribe;\n api.subscribe = ((selector, optListener, options) => {\n let listener = selector;\n if (optListener) {\n const equalityFn = (options == null ? void 0 : options.equalityFn) || Object.is;\n let currentSlice = selector(api.getState());\n listener = (state) => {\n const nextSlice = selector(state);\n if (!equalityFn(currentSlice, nextSlice)) {\n const previousSlice = currentSlice;\n optListener(currentSlice = nextSlice, previousSlice);\n }\n };\n if (options == null ? void 0 : options.fireImmediately) {\n optListener(currentSlice, currentSlice);\n }\n }\n return origSubscribe(listener);\n });\n const initialState = fn(set, get, api);\n return initialState;\n};\nconst subscribeWithSelector = subscribeWithSelectorImpl;\n\nfunction combine(initialState, create) {\n return (...args) => Object.assign({}, initialState, create(...args));\n}\n\nfunction createJSONStorage(getStorage, options) {\n let storage;\n try {\n storage = getStorage();\n } catch (e) {\n return;\n }\n const persistStorage = {\n getItem: (name) => {\n var _a;\n const parse = (str2) => {\n if (str2 === null) {\n return null;\n }\n return JSON.parse(str2, options == null ? void 0 : options.reviver);\n };\n const str = (_a = storage.getItem(name)) != null ? _a : null;\n if (str instanceof Promise) {\n return str.then(parse);\n }\n return parse(str);\n },\n setItem: (name, newValue) => storage.setItem(name, JSON.stringify(newValue, options == null ? void 0 : options.replacer)),\n removeItem: (name) => storage.removeItem(name)\n };\n return persistStorage;\n}\nconst toThenable = (fn) => (input) => {\n try {\n const result = fn(input);\n if (result instanceof Promise) {\n return result;\n }\n return {\n then(onFulfilled) {\n return toThenable(onFulfilled)(result);\n },\n catch(_onRejected) {\n return this;\n }\n };\n } catch (e) {\n return {\n then(_onFulfilled) {\n return this;\n },\n catch(onRejected) {\n return toThenable(onRejected)(e);\n }\n };\n }\n};\nconst persistImpl = (config, baseOptions) => (set, get, api) => {\n let options = {\n storage: createJSONStorage(() => window.localStorage),\n partialize: (state) => state,\n version: 0,\n merge: (persistedState, currentState) => ({\n ...currentState,\n ...persistedState\n }),\n ...baseOptions\n };\n let hasHydrated = false;\n let hydrationVersion = 0;\n const hydrationListeners = /* @__PURE__ */ new Set();\n const finishHydrationListeners = /* @__PURE__ */ new Set();\n let storage = options.storage;\n if (!storage) {\n return config(\n (...args) => {\n console.warn(\n `[zustand persist middleware] Unable to update item '${options.name}', the given storage is currently unavailable.`\n );\n set(...args);\n },\n get,\n api\n );\n }\n const setItem = () => {\n const state = options.partialize({ ...get() });\n return storage.setItem(options.name, {\n state,\n version: options.version\n });\n };\n const savedSetState = api.setState;\n api.setState = (state, replace) => {\n savedSetState(state, replace);\n return setItem();\n };\n const configResult = config(\n (...args) => {\n set(...args);\n return setItem();\n },\n get,\n api\n );\n api.getInitialState = () => configResult;\n let stateFromStorage;\n const hydrate = () => {\n var _a, _b;\n if (!storage) return;\n const currentVersion = ++hydrationVersion;\n hasHydrated = false;\n hydrationListeners.forEach((cb) => {\n var _a2;\n return cb((_a2 = get()) != null ? _a2 : configResult);\n });\n const postRehydrationCallback = ((_b = options.onRehydrateStorage) == null ? void 0 : _b.call(options, (_a = get()) != null ? _a : configResult)) || void 0;\n return toThenable(storage.getItem.bind(storage))(options.name).then((deserializedStorageValue) => {\n if (deserializedStorageValue) {\n if (typeof deserializedStorageValue.version === \"number\" && deserializedStorageValue.version !== options.version) {\n if (options.migrate) {\n const migration = options.migrate(\n deserializedStorageValue.state,\n deserializedStorageValue.version\n );\n if (migration instanceof Promise) {\n return migration.then((result) => [true, result]);\n }\n return [true, migration];\n }\n console.error(\n `State loaded from storage couldn't be migrated since no migrate function was provided`\n );\n } else {\n return [false, deserializedStorageValue.state];\n }\n }\n return [false, void 0];\n }).then((migrationResult) => {\n var _a2;\n if (currentVersion !== hydrationVersion) {\n return;\n }\n const [migrated, migratedState] = migrationResult;\n stateFromStorage = options.merge(\n migratedState,\n (_a2 = get()) != null ? _a2 : configResult\n );\n set(stateFromStorage, true);\n if (migrated) {\n return setItem();\n }\n }).then(() => {\n if (currentVersion !== hydrationVersion) {\n return;\n }\n postRehydrationCallback == null ? void 0 : postRehydrationCallback(stateFromStorage, void 0);\n stateFromStorage = get();\n hasHydrated = true;\n finishHydrationListeners.forEach((cb) => cb(stateFromStorage));\n }).catch((e) => {\n if (currentVersion !== hydrationVersion) {\n return;\n }\n postRehydrationCallback == null ? void 0 : postRehydrationCallback(void 0, e);\n });\n };\n api.persist = {\n setOptions: (newOptions) => {\n options = {\n ...options,\n ...newOptions\n };\n if (newOptions.storage) {\n storage = newOptions.storage;\n }\n },\n clearStorage: () => {\n storage == null ? void 0 : storage.removeItem(options.name);\n },\n getOptions: () => options,\n rehydrate: () => hydrate(),\n hasHydrated: () => hasHydrated,\n onHydrate: (cb) => {\n hydrationListeners.add(cb);\n return () => {\n hydrationListeners.delete(cb);\n };\n },\n onFinishHydration: (cb) => {\n finishHydrationListeners.add(cb);\n return () => {\n finishHydrationListeners.delete(cb);\n };\n }\n };\n if (!options.skipHydration) {\n hydrate();\n }\n return stateFromStorage || configResult;\n};\nconst persist = persistImpl;\n\nfunction ssrSafe(config, isSSR = typeof window === \"undefined\") {\n return (set, get, api) => {\n if (!isSSR) {\n return config(set, get, api);\n }\n const ssrSet = () => {\n throw new Error(\"Cannot set state of Zustand store in SSR\");\n };\n api.setState = ssrSet;\n return config(ssrSet, get, api);\n };\n}\n\nexport { combine, createJSONStorage, devtools, persist, redux, subscribeWithSelector, ssrSafe as unstable_ssrSafe };\n","import { create } from \"zustand\";\r\nimport { persist } from \"zustand/middleware\";\r\nimport type { CartItem, CartState } from \"./types\";\r\n\r\n/** Recompute derived totals from items array. */\r\nfunction computeTotals(items: CartItem[]) {\r\n return {\r\n subtotal: items.reduce((sum, i) => sum + i.price * i.quantity, 0),\r\n itemCount: items.reduce((sum, i) => sum + i.quantity, 0),\r\n };\r\n}\r\n\r\n/**\r\n * Global cart store — persisted to localStorage.\r\n *\r\n * Usage:\r\n * ```tsx\r\n * const { items, addItem, subtotal } = useCartStore();\r\n * ```\r\n */\r\nexport const useCartStore = create()(\r\n persist(\r\n (set) => ({\r\n items: [],\r\n subtotal: 0,\r\n itemCount: 0,\r\n\r\n addItem: (incoming) =>\r\n set((state) => {\r\n const existing = state.items.find((i) => i.id === incoming.id);\r\n let items: CartItem[];\r\n if (existing) {\r\n items = state.items.map((i) =>\r\n i.id === incoming.id\r\n ? { ...i, quantity: i.quantity + (incoming.quantity ?? 1) }\r\n : i,\r\n );\r\n } else {\r\n items = [...state.items, { ...incoming, quantity: incoming.quantity ?? 1 }];\r\n }\r\n return { items, ...computeTotals(items) };\r\n }),\r\n\r\n removeItem: (id) =>\r\n set((state) => {\r\n const items = state.items.filter((i) => i.id !== id);\r\n return { items, ...computeTotals(items) };\r\n }),\r\n\r\n updateQuantity: (id, quantity) =>\r\n set((state) => {\r\n if (quantity <= 0) {\r\n const items = state.items.filter((i) => i.id !== id);\r\n return { items, ...computeTotals(items) };\r\n }\r\n const items = state.items.map((i) =>\r\n i.id === id ? { ...i, quantity } : i,\r\n );\r\n return { items, ...computeTotals(items) };\r\n }),\r\n\r\n clearCart: () => set({ items: [], subtotal: 0, itemCount: 0 }),\r\n }),\r\n {\r\n name: \"pm-ecommerce-cart\",\r\n },\r\n ),\r\n);\r\n","import React from \"react\";\r\nimport { Minus, Plus, Trash2 } from \"lucide-react\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { useCartStore } from \"./useCartStore\";\r\nimport type { CartItem as CartItemType } from \"./types\";\r\n\r\nexport interface CartItemProps {\r\n item: CartItemType;\r\n /** Optional extra class names for the root element. */\r\n className?: string;\r\n}\r\n\r\n/** A single cart row — thumbnail, title, quantity stepper, line total, remove. */\r\nexport function CartItemRow({ item, className }: CartItemProps) {\r\n const updateQuantity = useCartStore((s) => s.updateQuantity);\r\n const removeItem = useCartStore((s) => s.removeItem);\r\n\r\n const lineTotal = item.price * item.quantity;\r\n\r\n return (\r\n \r\n {/* Thumbnail */}\r\n {item.image ? (\r\n \r\n ) : (\r\n
\r\n No img\r\n
\r\n )}\r\n\r\n {/* Info */}\r\n
\r\n {item.title}\r\n {item.variant && (\r\n {item.variant}\r\n )}\r\n \r\n ${item.price.toFixed(2)} each\r\n \r\n
\r\n\r\n {/* Quantity stepper */}\r\n
\r\n updateQuantity(item.id, item.quantity - 1)}\r\n aria-label=\"Decrease quantity\"\r\n >\r\n \r\n \r\n \r\n {item.quantity}\r\n \r\n updateQuantity(item.id, item.quantity + 1)}\r\n aria-label=\"Increase quantity\"\r\n >\r\n \r\n \r\n
\r\n\r\n {/* Line total */}\r\n \r\n ${lineTotal.toFixed(2)}\r\n \r\n\r\n {/* Remove */}\r\n removeItem(item.id)}\r\n aria-label={`Remove ${item.title}`}\r\n >\r\n \r\n \r\n
\r\n );\r\n}\r\n","import * as React from \"react\";\r\n\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nconst Card = React.forwardRef>(({ className, ...props }, ref) => (\r\n
\r\n));\r\nCard.displayName = \"Card\";\r\n\r\nconst CardHeader = React.forwardRef>(\r\n ({ className, ...props }, ref) => (\r\n
\r\n ),\r\n);\r\nCardHeader.displayName = \"CardHeader\";\r\n\r\nconst CardTitle = React.forwardRef>(\r\n ({ className, ...props }, ref) => (\r\n

\r\n ),\r\n);\r\nCardTitle.displayName = \"CardTitle\";\r\n\r\nconst CardDescription = React.forwardRef>(\r\n ({ className, ...props }, ref) => (\r\n

\r\n ),\r\n);\r\nCardDescription.displayName = \"CardDescription\";\r\n\r\nconst CardContent = React.forwardRef>(\r\n ({ className, ...props }, ref) =>

,\r\n);\r\nCardContent.displayName = \"CardContent\";\r\n\r\nconst CardFooter = React.forwardRef>(\r\n ({ className, ...props }, ref) => (\r\n
\r\n ),\r\n);\r\nCardFooter.displayName = \"CardFooter\";\r\n\r\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\r\n","// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n","// src/separator.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Separator\";\nvar DEFAULT_ORIENTATION = \"horizontal\";\nvar ORIENTATIONS = [\"horizontal\", \"vertical\"];\nvar Separator = React.forwardRef((props, forwardedRef) => {\n const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;\n const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;\n const ariaOrientation = orientation === \"vertical\" ? orientation : void 0;\n const semanticProps = decorative ? { role: \"none\" } : { \"aria-orientation\": ariaOrientation, role: \"separator\" };\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-orientation\": orientation,\n ...semanticProps,\n ...domProps,\n ref: forwardedRef\n }\n );\n});\nSeparator.displayName = NAME;\nfunction isValidOrientation(orientation) {\n return ORIENTATIONS.includes(orientation);\n}\nvar Root = Separator;\nexport {\n Root,\n Separator\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\r\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\r\n\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nconst Separator = React.forwardRef<\r\n React.ElementRef,\r\n React.ComponentPropsWithoutRef\r\n>(({ className, orientation = \"horizontal\", decorative = true, ...props }, ref) => (\r\n \r\n));\r\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\r\n\r\nexport { Separator };\r\n","import React from \"react\";\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nexport interface PolicyLink {\r\n label: string;\r\n href: string;\r\n}\r\n\r\nconst defaultLinks: PolicyLink[] = [\r\n { label: \"Returns & Refunds\", href: \"/returns\" },\r\n { label: \"Shipping\", href: \"/shipping\" },\r\n { label: \"Privacy Policy\", href: \"/privacy\" },\r\n { label: \"Terms of Service\", href: \"/terms\" },\r\n];\r\n\r\nexport interface PolicyLinksProps {\r\n links?: PolicyLink[];\r\n className?: string;\r\n}\r\n\r\n/**\r\n * Small footer row of policy links for cart / checkout pages.\r\n */\r\nexport function PolicyLinks({ links = defaultLinks, className }: PolicyLinksProps) {\r\n return (\r\n \r\n );\r\n}\r\n","import React from \"react\";\r\nimport { ShoppingCart, Trash2 } from \"lucide-react\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { Card, CardContent, CardFooter, CardHeader, CardTitle } from \"@/components/ui/card\";\r\nimport { Separator } from \"@/components/ui/separator\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { useCartStore } from \"./useCartStore\";\r\nimport { CartItemRow } from \"./CartItem\";\r\nimport { PolicyLinks } from \"@/policies/PolicyLinks\";\r\n\r\nexport interface CartPageProps {\r\n /** Called when user clicks \"Proceed to Checkout\". */\r\n onCheckout?: () => void;\r\n /** Optional extra class names. */\r\n className?: string;\r\n}\r\n\r\n/**\r\n * Full cart page — shows items, subtotal, and a checkout CTA.\r\n * Renders an empty-state when the cart has no items.\r\n */\r\nexport function CartPage({ onCheckout, className }: CartPageProps) {\r\n const items = useCartStore((s) => s.items);\r\n const subtotal = useCartStore((s) => s.subtotal);\r\n const itemCount = useCartStore((s) => s.itemCount);\r\n const clearCart = useCartStore((s) => s.clearCart);\r\n\r\n /* ---------- Empty state ---------- */\r\n if (items.length === 0) {\r\n return (\r\n
\r\n
\r\n \r\n
\r\n
\r\n

Your cart is empty

\r\n

\r\n Add some products to get started.\r\n

\r\n
\r\n
\r\n );\r\n }\r\n\r\n /* ---------- Cart with items ---------- */\r\n return (\r\n
\r\n \r\n \r\n \r\n \r\n Cart\r\n \r\n ({itemCount} {itemCount === 1 ? \"item\" : \"items\"})\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n {items.map((item) => (\r\n \r\n ))}\r\n \r\n\r\n \r\n\r\n \r\n
\r\n Subtotal\r\n ${subtotal.toFixed(2)}\r\n
\r\n

\r\n Shipping and taxes calculated at checkout.\r\n

\r\n \r\n
\r\n
\r\n\r\n \r\n
\r\n );\r\n}\r\n","import React from \"react\";\r\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/components/ui/card\";\r\nimport { Separator } from \"@/components/ui/separator\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { useCartStore } from \"@/cart/useCartStore\";\r\n\r\nexport interface OrderSummaryProps {\r\n /** Tax amount (pass 0 or leave undefined to show \"Calculated at next step\"). */\r\n tax?: number;\r\n /** Shipping cost (pass 0 or leave undefined to show \"Free\" / \"TBD\"). */\r\n shipping?: number;\r\n /** Optional extra class names. */\r\n className?: string;\r\n}\r\n\r\n/**\r\n * Read-only order breakdown: line items, subtotal, tax, shipping, total.\r\n */\r\nexport function OrderSummary({ tax, shipping, className }: OrderSummaryProps) {\r\n const items = useCartStore((s) => s.items);\r\n const subtotal = useCartStore((s) => s.subtotal);\r\n\r\n const taxAmount = tax ?? 0;\r\n const shippingAmount = shipping ?? 0;\r\n const total = subtotal + taxAmount + shippingAmount;\r\n\r\n return (\r\n \r\n \r\n Order Summary\r\n \r\n\r\n \r\n {/* Line items */}\r\n
    \r\n {items.map((item) => (\r\n
  • \r\n \r\n {item.title} × {item.quantity}\r\n \r\n \r\n ${(item.price * item.quantity).toFixed(2)}\r\n \r\n
  • \r\n ))}\r\n
\r\n\r\n \r\n\r\n {/* Subtotal */}\r\n
\r\n Subtotal\r\n ${subtotal.toFixed(2)}\r\n
\r\n\r\n {/* Tax */}\r\n
\r\n Tax\r\n \r\n {tax !== undefined ? `$${taxAmount.toFixed(2)}` : \"Calculated at next step\"}\r\n \r\n
\r\n\r\n {/* Shipping */}\r\n
\r\n Shipping\r\n \r\n {shipping !== undefined\r\n ? shippingAmount === 0\r\n ? \"Free\"\r\n : `$${shippingAmount.toFixed(2)}`\r\n : \"TBD\"}\r\n \r\n
\r\n\r\n \r\n\r\n {/* Total */}\r\n
\r\n Total\r\n ${total.toFixed(2)}\r\n
\r\n
\r\n
\r\n );\r\n}\r\n","import * as React from \"react\";\r\n\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nconst Input = React.forwardRef>(\r\n ({ className, type, ...props }, ref) => {\r\n return (\r\n \r\n );\r\n },\r\n);\r\nInput.displayName = \"Input\";\r\n\r\nexport { Input };\r\n","// src/primitive.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NODES = [\n \"a\",\n \"button\",\n \"div\",\n \"form\",\n \"h2\",\n \"h3\",\n \"img\",\n \"input\",\n \"label\",\n \"li\",\n \"nav\",\n \"ol\",\n \"p\",\n \"select\",\n \"span\",\n \"svg\",\n \"ul\"\n];\nvar Primitive = NODES.reduce((primitive, node) => {\n const Slot = createSlot(`Primitive.${node}`);\n const Node = React.forwardRef((props, forwardedRef) => {\n const { asChild, ...primitiveProps } = props;\n const Comp = asChild ? Slot : node;\n if (typeof window !== \"undefined\") {\n window[Symbol.for(\"radix-ui\")] = true;\n }\n return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });\n });\n Node.displayName = `Primitive.${node}`;\n return { ...primitive, [node]: Node };\n}, {});\nfunction dispatchDiscreteCustomEvent(target, event) {\n if (target) ReactDOM.flushSync(() => target.dispatchEvent(event));\n}\nvar Root = Primitive;\nexport {\n Primitive,\n Root,\n dispatchDiscreteCustomEvent\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// src/label.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Label\";\nvar Label = React.forwardRef((props, forwardedRef) => {\n return /* @__PURE__ */ jsx(\n Primitive.label,\n {\n ...props,\n ref: forwardedRef,\n onMouseDown: (event) => {\n const target = event.target;\n if (target.closest(\"button, input, select, textarea\")) return;\n props.onMouseDown?.(event);\n if (!event.defaultPrevented && event.detail > 1) event.preventDefault();\n }\n }\n );\n});\nLabel.displayName = NAME;\nvar Root = Label;\nexport {\n Label,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n","import * as React from \"react\";\r\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\r\nimport { cva, type VariantProps } from \"class-variance-authority\";\r\n\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nconst labelVariants = cva(\r\n \"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\",\r\n);\r\n\r\nconst Label = React.forwardRef<\r\n React.ElementRef,\r\n React.ComponentPropsWithoutRef & VariantProps\r\n>(({ className, ...props }, ref) => (\r\n \r\n));\r\nLabel.displayName = LabelPrimitive.Root.displayName;\r\n\r\nexport { Label };\r\n","import React, { useState } from \"react\";\r\nimport { CreditCard, Bitcoin, ShoppingBag } from \"lucide-react\";\r\nimport { Button } from \"@/components/ui/button\";\r\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/components/ui/card\";\r\nimport { Input } from \"@/components/ui/input\";\r\nimport { Label } from \"@/components/ui/label\";\r\nimport { Separator } from \"@/components/ui/separator\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { useCartStore } from \"@/cart/useCartStore\";\r\nimport { OrderSummary } from \"./OrderSummary\";\r\nimport { PolicyLinks } from \"@/policies/PolicyLinks\";\r\n\r\n/** Shipping address fields collected at checkout. */\r\nexport interface ShippingAddress {\r\n fullName: string;\r\n email: string;\r\n address: string;\r\n city: string;\r\n zip: string;\r\n country: string;\r\n}\r\n\r\nexport type PaymentMethod = \"shopify\" | \"crypto\";\r\n\r\nexport interface CheckoutPageProps {\r\n /** Called when user submits the checkout form. */\r\n onPlaceOrder?: (data: {\r\n shipping: ShippingAddress;\r\n paymentMethod: PaymentMethod;\r\n }) => void;\r\n /** Called when user clicks \"Back to Cart\". */\r\n onBackToCart?: () => void;\r\n /** Pre-fill shipping form fields (e.g. from user profile). */\r\n initialShipping?: Partial;\r\n /** Pre-filled tax amount, if known. */\r\n tax?: number;\r\n /** Pre-filled shipping cost. */\r\n shipping?: number;\r\n /** Optional extra class names. */\r\n className?: string;\r\n}\r\n\r\n/**\r\n * Checkout page — two-column layout with shipping form + payment selector on\r\n * the left and an OrderSummary on the right.\r\n */\r\nexport function CheckoutPage({\r\n onPlaceOrder,\r\n onBackToCart,\r\n initialShipping,\r\n tax,\r\n shipping,\r\n className,\r\n}: CheckoutPageProps) {\r\n const itemCount = useCartStore((s) => s.itemCount);\r\n\r\n const [paymentMethod, setPaymentMethod] = useState(\"shopify\");\r\n const [form, setForm] = useState({\r\n fullName: initialShipping?.fullName ?? \"\",\r\n email: initialShipping?.email ?? \"\",\r\n address: initialShipping?.address ?? \"\",\r\n city: initialShipping?.city ?? \"\",\r\n zip: initialShipping?.zip ?? \"\",\r\n country: initialShipping?.country ?? \"\",\r\n });\r\n\r\n const field = (key: keyof ShippingAddress, value: string) =>\r\n setForm((prev) => ({ ...prev, [key]: value }));\r\n\r\n const handleSubmit = (e: React.FormEvent) => {\r\n e.preventDefault();\r\n onPlaceOrder?.({ shipping: form, paymentMethod });\r\n };\r\n\r\n /* ---- Empty cart guard ---- */\r\n if (itemCount === 0) {\r\n return (\r\n
\r\n \r\n

Your cart is empty — nothing to check out.

\r\n {onBackToCart && (\r\n \r\n )}\r\n
\r\n );\r\n }\r\n\r\n return (\r\n \r\n {/* ---- Left: Shipping + Payment ---- */}\r\n
\r\n {/* Shipping */}\r\n \r\n \r\n Shipping Information\r\n \r\n \r\n
\r\n \r\n field(\"fullName\", e.target.value)}\r\n />\r\n
\r\n\r\n
\r\n \r\n field(\"email\", e.target.value)}\r\n />\r\n
\r\n\r\n
\r\n \r\n field(\"address\", e.target.value)}\r\n />\r\n
\r\n\r\n
\r\n \r\n field(\"city\", e.target.value)}\r\n />\r\n
\r\n\r\n
\r\n \r\n field(\"zip\", e.target.value)}\r\n />\r\n
\r\n\r\n
\r\n \r\n field(\"country\", e.target.value)}\r\n />\r\n
\r\n
\r\n
\r\n\r\n {/* Payment Method */}\r\n \r\n \r\n Payment Method\r\n \r\n \r\n setPaymentMethod(\"shopify\")}\r\n className={cn(\r\n \"flex w-full items-center gap-3 rounded-lg border p-4 text-left transition-colors\",\r\n paymentMethod === \"shopify\"\r\n ? \"border-primary bg-primary/5\"\r\n : \"border-border hover:bg-accent/5\",\r\n )}\r\n >\r\n \r\n
\r\n

Shopify Checkout

\r\n

\r\n Credit / debit card via Shopify\r\n

\r\n
\r\n \r\n\r\n setPaymentMethod(\"crypto\")}\r\n className={cn(\r\n \"flex w-full items-center gap-3 rounded-lg border p-4 text-left transition-colors\",\r\n paymentMethod === \"crypto\"\r\n ? \"border-primary bg-primary/5\"\r\n : \"border-border hover:bg-accent/5\",\r\n )}\r\n >\r\n \r\n
\r\n

Crypto Payment

\r\n

\r\n Bitcoin, Ethereum, and more\r\n

\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n {/* ---- Right: Summary + CTA ---- */}\r\n
\r\n \r\n\r\n \r\n\r\n \r\n\r\n {onBackToCart && (\r\n \r\n ← Back to Cart\r\n \r\n )}\r\n\r\n \r\n
\r\n \r\n );\r\n}\r\n","import React from \"react\";\r\nimport { Card, CardContent, CardHeader, CardTitle } from \"@/components/ui/card\";\r\nimport { Separator } from \"@/components/ui/separator\";\r\nimport { cn } from \"@/lib/utils\";\r\n\r\nexport interface PolicyPageProps {\r\n /** Page title override. */\r\n title?: string;\r\n /** Rich content to render inside the page body (JSX). */\r\n children?: React.ReactNode;\r\n /** Optional extra class names. */\r\n className?: string;\r\n}\r\n\r\n/**\r\n * Generic policy/info page shell — centered card with title + prose body.\r\n * Used by ShippingPage, ReturnsPage, PrivacyPolicyPage, TermsPage.\r\n */\r\nexport function PolicyPage({ title, children, className }: PolicyPageProps) {\r\n return (\r\n
\r\n \r\n \r\n {title}\r\n \r\n \r\n \r\n {children}\r\n \r\n \r\n
\r\n );\r\n}\r\n","import React from \"react\";\r\nimport { Truck, Clock, Globe, DollarSign } from \"lucide-react\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport { PolicyPage } from \"./PolicyPage\";\r\n\r\nexport interface ShippingRate {\r\n region: string;\r\n method: string;\r\n estimate: string;\r\n price: string;\r\n}\r\n\r\nexport interface ShippingPageProps {\r\n /** Custom shipping rates to display. Falls back to placeholder content. */\r\n rates?: ShippingRate[];\r\n /** Optional extra class names. */\r\n className?: string;\r\n}\r\n\r\nconst defaultRates: ShippingRate[] = [\r\n { region: \"Domestic\", method: \"Standard\", estimate: \"5–7 business days\", price: \"$4.99\" },\r\n { region: \"Domestic\", method: \"Express\", estimate: \"2–3 business days\", price: \"$12.99\" },\r\n { region: \"International\", method: \"Standard\", estimate: \"10–20 business days\", price: \"$14.99\" },\r\n { region: \"International\", method: \"Express\", estimate: \"5–8 business days\", price: \"$29.99\" },\r\n];\r\n\r\n/** Public page with shipping info and rates. */\r\nexport function ShippingPage({ rates = defaultRates, className }: ShippingPageProps) {\r\n return (\r\n \r\n {/* Highlights */}\r\n
\r\n {[\r\n { icon: Truck, label: \"Free shipping on orders over $75\" },\r\n { icon: Clock, label: \"Same-day dispatch on orders before 2 PM\" },\r\n { icon: Globe, label: \"We ship worldwide\" },\r\n { icon: DollarSign, label: \"No hidden fees at checkout\" },\r\n ].map(({ icon: Icon, label }) => (\r\n \r\n \r\n {label}\r\n
\r\n ))}\r\n
\r\n\r\n {/* Rates table */}\r\n

Shipping Rates

\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {rates.map((r, i) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n ))}\r\n \r\n
RegionMethodEstimatePrice
{r.region}{r.method}{r.estimate}{r.price}
\r\n
\r\n\r\n

Processing Time

\r\n

\r\n Orders placed before 2:00 PM (local time) on business days are typically processed and\r\n shipped the same day. Orders placed after this cut-off or on weekends/holidays will be\r\n processed the next business day.\r\n

\r\n\r\n

Tracking

\r\n

\r\n Once your order ships, you will receive a confirmation email with a tracking number.\r\n You can use this number to track your package on the carrier's website.\r\n

\r\n \r\n );\r\n}\r\n","import React from \"react\";\r\nimport { RotateCcw, CheckCircle, XCircle, Clock } from \"lucide-react\";\r\nimport { PolicyPage } from \"./PolicyPage\";\r\n\r\nexport interface ReturnsPageProps {\r\n /** Number of days for return window. */\r\n returnWindowDays?: number;\r\n /** Optional extra class names. */\r\n className?: string;\r\n}\r\n\r\n/** Public page with refund / return policy. */\r\nexport function ReturnsPage({ returnWindowDays = 30, className }: ReturnsPageProps) {\r\n return (\r\n \r\n {/* Quick summary */}\r\n
\r\n {[\r\n { icon: Clock, label: `${returnWindowDays}-day return window` },\r\n { icon: RotateCcw, label: \"Free returns on defective items\" },\r\n { icon: CheckCircle, label: \"Full refund to original payment\" },\r\n { icon: XCircle, label: \"No restocking fees\" },\r\n ].map(({ icon: Icon, label }) => (\r\n \r\n \r\n {label}\r\n
\r\n ))}\r\n
\r\n\r\n

Eligibility

\r\n

\r\n Items must be returned within {returnWindowDays} days of delivery in their\r\n original, unused condition with all tags and packaging intact.\r\n

\r\n\r\n

How to Initiate a Return

\r\n
    \r\n
  1. Contact our support team with your order number.
  2. \r\n
  3. Receive a prepaid return label (for defective items) or return instructions.
  4. \r\n
  5. Ship the item back using the provided label or your preferred carrier.
  6. \r\n
\r\n\r\n

Refund Processing

\r\n

\r\n Once we receive and inspect the returned item, your refund will be processed within\r\n 5–10 business days to your original payment method. You will receive an email\r\n confirmation when the refund has been issued.\r\n

\r\n\r\n

Exceptions

\r\n

\r\n The following items are not eligible for return: gift cards, downloadable products,\r\n and items marked as final sale. Perishable goods cannot be returned unless they arrive\r\n damaged or defective.\r\n

\r\n \r\n );\r\n}\r\n","import React from \"react\";\r\nimport { PolicyPage } from \"./PolicyPage\";\r\n\r\nexport interface PrivacyPolicyPageProps {\r\n /** Business / site name used in the policy text. */\r\n siteName?: string;\r\n /** Contact email for privacy inquiries. */\r\n contactEmail?: string;\r\n /** Optional extra class names. */\r\n className?: string;\r\n}\r\n\r\n/** Public page with privacy / cookie information. */\r\nexport function PrivacyPolicyPage({\r\n siteName = \"Our Store\",\r\n contactEmail = \"privacy@example.com\",\r\n className,\r\n}: PrivacyPolicyPageProps) {\r\n return (\r\n \r\n

\r\n At {siteName}, we are committed to protecting your personal information\r\n and your right to privacy. This policy explains what information we collect, how we use\r\n it, and what rights you have in relation to it.\r\n

\r\n\r\n

Information We Collect

\r\n
    \r\n
  • \r\n Personal information: name, email, shipping address, and payment\r\n details provided during checkout.\r\n
  • \r\n
  • \r\n Usage data: pages visited, time spent, browser type, and device\r\n information collected automatically.\r\n
  • \r\n
  • \r\n Cookies: small data files stored on your device to improve your\r\n browsing experience and remember your preferences.\r\n
  • \r\n
\r\n\r\n

How We Use Your Information

\r\n
    \r\n
  • To process and fulfill your orders.
  • \r\n
  • To communicate with you about orders, updates, and promotions.
  • \r\n
  • To improve our website and services.
  • \r\n
  • To comply with legal obligations.
  • \r\n
\r\n\r\n

Data Sharing

\r\n

\r\n We do not sell your personal data. We share information only with service providers\r\n necessary to fulfill your order (e.g., payment processors, shipping carriers) and as\r\n required by law.\r\n

\r\n\r\n

Cookies

\r\n

\r\n We use essential cookies for site functionality and optional analytics cookies to\r\n understand usage patterns. You can manage cookie preferences through your browser\r\n settings.\r\n

\r\n\r\n

Your Rights

\r\n

\r\n You may request access to, correction of, or deletion of your personal data at any\r\n time by contacting us at{\" \"}\r\n \r\n {contactEmail}\r\n \r\n .\r\n

\r\n\r\n

Contact Us

\r\n

\r\n If you have questions about this privacy policy, please contact us at{\" \"}\r\n \r\n {contactEmail}\r\n \r\n .\r\n

\r\n
\r\n );\r\n}\r\n","import React from \"react\";\r\nimport { PolicyPage } from \"./PolicyPage\";\r\n\r\nexport interface TermsPageProps {\r\n /** Business / site name. */\r\n siteName?: string;\r\n /** Contact email for legal inquiries. */\r\n contactEmail?: string;\r\n /** Optional extra class names. */\r\n className?: string;\r\n}\r\n\r\n/** Optional terms of service page. */\r\nexport function TermsPage({\r\n siteName = \"Our Store\",\r\n contactEmail = \"legal@example.com\",\r\n className,\r\n}: TermsPageProps) {\r\n return (\r\n \r\n

\r\n By accessing and using {siteName}, you agree to be bound by these\r\n Terms of Service.\r\n

\r\n\r\n

Use of the Site

\r\n

\r\n You agree to use this site only for lawful purposes and in a manner that does not\r\n infringe on the rights of others or restrict their use and enjoyment of the site.\r\n

\r\n\r\n

Products & Pricing

\r\n

\r\n All product descriptions and prices are subject to change without notice. We reserve\r\n the right to modify or discontinue any product at any time. Prices are displayed in\r\n the store's base currency and may exclude taxes and shipping costs, which are\r\n calculated at checkout.\r\n

\r\n\r\n

Orders & Payment

\r\n

\r\n By placing an order, you make an offer to purchase the selected products. We reserve\r\n the right to refuse or cancel any order for any reason, including pricing errors or\r\n suspected fraud.\r\n

\r\n\r\n

Intellectual Property

\r\n

\r\n All content on this site — including text, images, logos, and software — is the\r\n property of {siteName} or its licensors and is protected by applicable intellectual\r\n property laws.\r\n

\r\n\r\n

Limitation of Liability

\r\n

\r\n To the fullest extent permitted by law, {siteName} shall not be liable for any\r\n indirect, incidental, or consequential damages arising from your use of the site or\r\n purchase of products.\r\n

\r\n\r\n

Changes to These Terms

\r\n

\r\n We may update these Terms of Service from time to time. Continued use of the site\r\n after changes constitutes acceptance of the revised terms.\r\n

\r\n\r\n

Contact

\r\n

\r\n For questions about these terms, contact us at{\" \"}\r\n \r\n {contactEmail}\r\n \r\n .\r\n

\r\n
\r\n );\r\n}\r\n"],"names":["f","require$$0","k","l","m","n","p","q","a","g","b","d","e","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","args","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","type","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","name","source","ownerFn","x","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","fn","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","s","c","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","value","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","i","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","didWarnAboutKeySpread","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","beforeExample","afterExample","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","require$$1","setRef","composeRefs","refs","hasCleanup","cleanups","cleanup","use","isPromiseLike","isLazyComponent","createSlot","ownerName","SlotClone","createSlotClone","Slot2","forwardedRef","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","Slot","childrenRef","getElementRef","props2","mergeProps","SLOTTABLE_IDENTIFIER","childProps","overrideProps","slotPropValue","childPropValue","result","_a","mayWarn","_b","r","t","o","clsx","falsyToString","cx","cva","base","_config_compoundVariants","variants","defaultVariants","getVariantClassNames","variant","variantProp","defaultVariantProp","variantKey","propsWithoutUndefined","acc","param","getCompoundVariantClassNames","cvClass","cvClassName","compoundVariantOptions","CLASS_PART_SEPARATOR","createClassGroupUtils","classMap","createClassMap","conflictingClassGroups","conflictingClassGroupModifiers","className","classParts","getGroupRecursive","getGroupIdForArbitraryProperty","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","classGroupFromNextClassPart","classRest","validator","arbitraryPropertyRegex","arbitraryPropertyClassName","property","theme","getPrefixedClassGroupEntries","classGroup","processClassesRecursively","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","path","currentClassPartObject","pathPart","func","classGroupEntries","prefixedClassGroup","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","IMPORTANT_MODIFIER","createParseClassName","separator","experimentalParseClassName","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","parseClassName","modifiers","bracketDepth","modifierStart","postfixModifierPosition","index","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","baseClassName","maybePostfixModifierPosition","sortModifiers","sortedModifiers","unsortedModifiers","modifier","createConfigUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","getClassGroupId","getConflictingClassGroupIds","classGroupsInConflict","classNames","originalClassName","variantModifier","modifierId","classId","conflictGroups","group","twJoin","argument","resolvedValue","string","toValue","mix","createTailwindMerge","createConfigFirst","createConfigRest","cacheGet","cacheSet","functionToCall","initTailwindMerge","previousConfig","createConfigCurrent","tailwindMerge","cachedResult","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","colorFunctionRegex","shadowRegex","imageRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","isArbitraryNumber","isInteger","isPercent","isArbitraryValue","isTshirtSize","sizeLabels","isArbitrarySize","isNever","isArbitraryPosition","imageLabels","isArbitraryImage","isImage","isArbitraryShadow","isShadow","isAny","label","testValue","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getOverscroll","getOverflow","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmptyAndArbitrary","getNumberWithAutoAndArbitrary","getPositions","getLineStyles","getBlendModes","getAlign","getZeroAndEmpty","getBreaks","getNumberAndArbitrary","twMerge","cn","inputs","buttonVariants","Button","size","asChild","Comp","createStoreImpl","createState","state","listeners","setState","partial","replace","nextState","previousState","listener","getState","api","initialState","createStore","identity","arg","useStore","selector","slice","createImpl","useBoundStore","create","createJSONStorage","getStorage","options","storage","parse","str2","str","newValue","toThenable","input","onFulfilled","_onRejected","_onFulfilled","onRejected","persistImpl","baseOptions","set","get","persistedState","currentState","hasHydrated","hydrationVersion","hydrationListeners","finishHydrationListeners","setItem","savedSetState","configResult","stateFromStorage","hydrate","currentVersion","cb","_a2","postRehydrationCallback","deserializedStorageValue","migration","migrationResult","migrated","migratedState","newOptions","persist","computeTotals","items","sum","useCartStore","incoming","existing","id","quantity","CartItemRow","updateQuantity","removeItem","lineTotal","Minus","Plus","Trash2","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","NODES","Primitive","primitive","Node","primitiveProps","NAME","DEFAULT_ORIENTATION","ORIENTATIONS","Separator","decorative","orientationProp","domProps","orientation","isValidOrientation","semanticProps","Root","SeparatorPrimitive.Root","defaultLinks","PolicyLinks","links","CartPage","onCheckout","subtotal","itemCount","clearCart","ShoppingCart","OrderSummary","tax","shipping","taxAmount","shippingAmount","total","Input","Label","event","labelVariants","LabelPrimitive.Root","CheckoutPage","onPlaceOrder","onBackToCart","initialShipping","paymentMethod","setPaymentMethod","useState","form","setForm","field","prev","handleSubmit","ShoppingBag","CreditCard","Bitcoin","PolicyPage","title","defaultRates","ShippingPage","rates","Truck","Clock","Globe","DollarSign","Icon","ReturnsPage","returnWindowDays","RotateCcw","CheckCircle","XCircle","PrivacyPolicyPage","siteName","contactEmail","TermsPage"],"mappings":";;;;;;;;;;;;;;;;;;AASa,MAAIA,IAAEC,IAAiBC,IAAE,OAAO,IAAI,eAAe,GAAEC,IAAE,OAAO,IAAI,gBAAgB,GAAEC,IAAE,OAAO,UAAU,gBAAeC,IAAEL,EAAE,mDAAmD,mBAAkBM,IAAE,EAAC,KAAI,IAAG,KAAI,IAAG,QAAO,IAAG,UAAS,GAAE;AAClP,WAASC,EAAE,GAAEC,GAAEC,GAAE;AAAC,QAAIC,GAAEC,IAAE,CAAA,GAAGC,IAAE,MAAKC,IAAE;AAAK,IAASJ,MAAT,WA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,IAAC,QAAG,UAAA,mBAAA,CAAgB;AAAA,IACpBA,gBAAAA,EAAAA,IAAC,OAAE,UAAA,4LAAA,CAIH;AAAA,IAEAA,gBAAAA,EAAAA,IAAC,QAAG,UAAA,wBAAA,CAAqB;AAAA,2BACxB,KAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MAEcqY;AAAA,MAAS;AAAA,IAAA,GAE1B;AAAA,IAEArY,gBAAAA,EAAAA,IAAC,QAAG,UAAA,0BAAA,CAAuB;AAAA,2BAC1B,KAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MAC0CqY;AAAA,MAAS;AAAA,IAAA,GAGtD;AAAA,IAEArY,gBAAAA,EAAAA,IAAC,QAAG,UAAA,yBAAA,CAAsB;AAAA,IAC1BA,gBAAAA,EAAAA,IAAC,OAAE,UAAA,+IAAA,CAGH;AAAA,IAEAA,gBAAAA,EAAAA,IAAC,QAAG,UAAA,UAAA,CAAO;AAAA,2BACV,KAAA,EAAE,UAAA;AAAA,MAAA;AAAA,MACgD;AAAA,MAC/CA,gBAAAA,EAAAA,IAAC,OAAE,MAAM,UAAUsY,CAAY,IAAI,WAAU,0BACxC,UAAAA,EAAA,CACL;AAAA,MAAI;AAAA,IAAA,EAAA,CAER;AAAA,EAAA,GACJ;AAER;","x_google_ignoreList":[0,1,2,3,4,5,6,7,10,11,12,16,17,23,24]} \ No newline at end of file diff --git a/packages/ecommerce/dist-lib/policies/PolicyLinks.d.ts b/packages/ecommerce/dist-lib/policies/PolicyLinks.d.ts new file mode 100644 index 00000000..2325acad --- /dev/null +++ b/packages/ecommerce/dist-lib/policies/PolicyLinks.d.ts @@ -0,0 +1,12 @@ +export interface PolicyLink { + label: string; + href: string; +} +export interface PolicyLinksProps { + links?: PolicyLink[]; + className?: string; +} +/** + * Small footer row of policy links for cart / checkout pages. + */ +export declare function PolicyLinks({ links, className }: PolicyLinksProps): import("react/jsx-runtime").JSX.Element; diff --git a/packages/ecommerce/dist-lib/policies/PolicyPage.d.ts b/packages/ecommerce/dist-lib/policies/PolicyPage.d.ts new file mode 100644 index 00000000..293b56fc --- /dev/null +++ b/packages/ecommerce/dist-lib/policies/PolicyPage.d.ts @@ -0,0 +1,14 @@ +import { default as React } from 'react'; +export interface PolicyPageProps { + /** Page title override. */ + title?: string; + /** Rich content to render inside the page body (JSX). */ + children?: React.ReactNode; + /** Optional extra class names. */ + className?: string; +} +/** + * Generic policy/info page shell — centered card with title + prose body. + * Used by ShippingPage, ReturnsPage, PrivacyPolicyPage, TermsPage. + */ +export declare function PolicyPage({ title, children, className }: PolicyPageProps): import("react/jsx-runtime").JSX.Element; diff --git a/packages/ecommerce/dist-lib/policies/PrivacyPolicyPage.d.ts b/packages/ecommerce/dist-lib/policies/PrivacyPolicyPage.d.ts new file mode 100644 index 00000000..73d28d8f --- /dev/null +++ b/packages/ecommerce/dist-lib/policies/PrivacyPolicyPage.d.ts @@ -0,0 +1,10 @@ +export interface PrivacyPolicyPageProps { + /** Business / site name used in the policy text. */ + siteName?: string; + /** Contact email for privacy inquiries. */ + contactEmail?: string; + /** Optional extra class names. */ + className?: string; +} +/** Public page with privacy / cookie information. */ +export declare function PrivacyPolicyPage({ siteName, contactEmail, className, }: PrivacyPolicyPageProps): import("react/jsx-runtime").JSX.Element; diff --git a/packages/ecommerce/dist-lib/policies/ReturnsPage.d.ts b/packages/ecommerce/dist-lib/policies/ReturnsPage.d.ts new file mode 100644 index 00000000..fcb89a37 --- /dev/null +++ b/packages/ecommerce/dist-lib/policies/ReturnsPage.d.ts @@ -0,0 +1,8 @@ +export interface ReturnsPageProps { + /** Number of days for return window. */ + returnWindowDays?: number; + /** Optional extra class names. */ + className?: string; +} +/** Public page with refund / return policy. */ +export declare function ReturnsPage({ returnWindowDays, className }: ReturnsPageProps): import("react/jsx-runtime").JSX.Element; diff --git a/packages/ecommerce/dist-lib/policies/ShippingPage.d.ts b/packages/ecommerce/dist-lib/policies/ShippingPage.d.ts new file mode 100644 index 00000000..c80d94f4 --- /dev/null +++ b/packages/ecommerce/dist-lib/policies/ShippingPage.d.ts @@ -0,0 +1,14 @@ +export interface ShippingRate { + region: string; + method: string; + estimate: string; + price: string; +} +export interface ShippingPageProps { + /** Custom shipping rates to display. Falls back to placeholder content. */ + rates?: ShippingRate[]; + /** Optional extra class names. */ + className?: string; +} +/** Public page with shipping info and rates. */ +export declare function ShippingPage({ rates, className }: ShippingPageProps): import("react/jsx-runtime").JSX.Element; diff --git a/packages/ecommerce/dist-lib/policies/TermsPage.d.ts b/packages/ecommerce/dist-lib/policies/TermsPage.d.ts new file mode 100644 index 00000000..c6dc726c --- /dev/null +++ b/packages/ecommerce/dist-lib/policies/TermsPage.d.ts @@ -0,0 +1,10 @@ +export interface TermsPageProps { + /** Business / site name. */ + siteName?: string; + /** Contact email for legal inquiries. */ + contactEmail?: string; + /** Optional extra class names. */ + className?: string; +} +/** Optional terms of service page. */ +export declare function TermsPage({ siteName, contactEmail, className, }: TermsPageProps): import("react/jsx-runtime").JSX.Element; diff --git a/packages/ecommerce/package-lock.json b/packages/ecommerce/package-lock.json index 7239937a..17f45817 100644 --- a/packages/ecommerce/package-lock.json +++ b/packages/ecommerce/package-lock.json @@ -7,6 +7,127 @@ "": { "name": "@polymech/ecommerce", "version": "0.0.1", + "dependencies": { + "@google/genai": "^1.34.0", + "@google/generative-ai": "^0.24.1", + "@hookform/resolvers": "^3.10.0", + "@mdxeditor/editor": "^3.47.0", + "@milkdown/core": "^7.16.0", + "@milkdown/crepe": "^7.16.0", + "@milkdown/utils": "^7.16.0", + "@playwright/test": "^1.55.1", + "@polymech/ui": "file:../ui", + "@radix-ui/react-accordion": "^1.2.11", + "@radix-ui/react-alert-dialog": "^1.1.14", + "@radix-ui/react-aspect-ratio": "^1.1.7", + "@radix-ui/react-avatar": "^1.1.10", + "@radix-ui/react-checkbox": "^1.3.2", + "@radix-ui/react-collapsible": "^1.1.11", + "@radix-ui/react-context-menu": "^2.2.15", + "@radix-ui/react-dialog": "^1.1.14", + "@radix-ui/react-dropdown-menu": "^2.1.15", + "@radix-ui/react-hover-card": "^1.1.14", + "@radix-ui/react-label": "^2.1.7", + "@radix-ui/react-menubar": "^1.1.15", + "@radix-ui/react-navigation-menu": "^1.2.13", + "@radix-ui/react-popover": "^1.1.14", + "@radix-ui/react-progress": "^1.1.7", + "@radix-ui/react-radio-group": "^1.3.7", + "@radix-ui/react-scroll-area": "^1.2.9", + "@radix-ui/react-select": "^2.2.5", + "@radix-ui/react-separator": "^1.1.7", + "@radix-ui/react-slider": "^1.3.5", + "@radix-ui/react-slot": "^1.2.3", + "@radix-ui/react-switch": "^1.2.5", + "@radix-ui/react-tabs": "^1.1.12", + "@radix-ui/react-toast": "^1.2.14", + "@radix-ui/react-toggle": "^1.1.9", + "@radix-ui/react-toggle-group": "^1.1.10", + "@radix-ui/react-tooltip": "^1.2.7", + "@supabase-cache-helpers/postgrest-swr": "^2.0.3", + "@supabase/supabase-js": "^2.58.0", + "@tanstack/react-query": "^5.83.0", + "@types/dompurify": "^3.2.0", + "@types/file-saver": "^2.0.7", + "@uppy/tus": "^5.0.2", + "@vidstack/react": "^1.12.13", + "@xyflow/react": "^12.8.6", + "axios": "^1.12.2", + "buffer": "^6.0.3", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "cmdk": "^1.1.1", + "date-fns": "^3.6.0", + "dompurify": "^3.2.7", + "dotenv": "^17.2.3", + "embla-carousel-react": "^8.6.0", + "exifreader": "^4.33.1", + "file-saver": "^2.0.5", + "hls.js": "^1.6.13", + "idb-keyval": "^6.2.2", + "input-otp": "^1.4.2", + "jszip": "^3.10.1", + "lucide-react": "^0.462.0", + "marked": "^16.3.0", + "next-themes": "^0.3.0", + "openai": "^6.0.0", + "playwright": "^1.55.1", + "prismjs": "^1.30.0", + "react": "^18.3.1", + "react-day-picker": "^8.10.1", + "react-dom": "^18.3.1", + "react-hook-form": "^7.61.1", + "react-intersection-observer": "^10.0.0", + "react-markdown": "^10.1.0", + "react-resizable-panels": "^2.1.9", + "react-router-dom": "^6.30.1", + "react-zoom-pan-pinch": "^3.7.0", + "recharts": "^2.15.4", + "replicate": "^1.2.0", + "rollup-plugin-visualizer": "^6.0.5", + "sonner": "^1.7.4", + "stream-browserify": "^3.0.0", + "swr": "^2.3.7", + "tailwind-merge": "^2.6.0", + "tailwindcss-animate": "^1.0.7", + "vaul": "^0.9.9", + "vite-bundle-analyzer": "^1.3.1", + "vite-plugin-compression": "^0.5.1", + "vite-plugin-pwa": "^1.0.3", + "vue": "^3.5.22", + "workbox-core": "^7.4.0", + "zod": "^3.25.76", + "zod-to-json-schema": "^3.24.6", + "zustand": "^5.0.11" + }, + "devDependencies": { + "@eslint/js": "^9.32.0", + "@tailwindcss/typography": "^0.5.16", + "@types/node": "^22.16.5", + "@types/react": "^18.3.23", + "@types/react-dom": "^18.3.7", + "@vitejs/plugin-react-swc": "^3.11.0", + "@vitejs/plugin-vue": "^6.0.1", + "autoprefixer": "^10.4.21", + "eslint": "^9.32.0", + "eslint-plugin-react-hooks": "^5.2.0", + "eslint-plugin-react-refresh": "^0.4.20", + "globals": "^15.15.0", + "lovable-tagger": "^1.1.10", + "postcss": "^8.5.6", + "tailwindcss": "^3.4.17", + "typescript": "^5.8.3", + "typescript-eslint": "^8.38.0", + "vite": "^5.4.19", + "vite-plugin-dts": "^4.5.4", + "workbox-precaching": "^7.4.0", + "workbox-routing": "^7.4.0", + "workbox-window": "^7.4.0" + } + }, + "../ui": { + "name": "@polymech/ui", + "version": "0.0.1", "dependencies": { "@google/genai": "^1.34.0", "@google/generative-ai": "^0.24.1", @@ -97,7 +218,7 @@ "workbox-core": "^7.4.0", "zod": "^3.25.76", "zod-to-json-schema": "^3.24.6", - "zustand": "^5.0.11" + "zustand": "^5.0.8" }, "devDependencies": { "@eslint/js": "^9.32.0", @@ -2872,9 +2993,9 @@ } }, "node_modules/@isaacs/brace-expansion": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.0.tgz", - "integrity": "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/brace-expansion/-/brace-expansion-5.0.1.tgz", + "integrity": "sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==", "license": "MIT", "dependencies": { "@isaacs/balanced-match": "^4.0.1" @@ -3479,9 +3600,9 @@ } }, "node_modules/@microsoft/api-extractor": { - "version": "7.55.2", - "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.55.2.tgz", - "integrity": "sha512-1jlWO4qmgqYoVUcyh+oXYRztZde/pAi7cSVzBz/rc+S7CoVzDasy8QE13dx6sLG4VRo8SfkkLbFORR6tBw4uGQ==", + "version": "7.56.3", + "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.56.3.tgz", + "integrity": "sha512-fRqok4aRNq5GpgGBv2fKlSSKbirPKTJ75vQefthB5x9dwt4Zz+AezUzdc1p/AG4wUBIgmhjcEwn/Rj+N4Wh4Mw==", "dev": true, "license": "MIT", "dependencies": { @@ -3490,11 +3611,11 @@ "@microsoft/tsdoc-config": "~0.18.0", "@rushstack/node-core-library": "5.19.1", "@rushstack/rig-package": "0.6.0", - "@rushstack/terminal": "0.19.5", - "@rushstack/ts-command-line": "5.1.5", + "@rushstack/terminal": "0.21.0", + "@rushstack/ts-command-line": "5.2.0", "diff": "~8.0.2", - "lodash": "~4.17.15", - "minimatch": "10.0.3", + "lodash": "~4.17.23", + "minimatch": "10.1.2", "resolve": "~1.22.1", "semver": "~7.5.4", "source-map": "~0.6.1", @@ -3540,13 +3661,13 @@ } }, "node_modules/@microsoft/api-extractor/node_modules/minimatch": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", - "integrity": "sha512-IPZ167aShDZZUMdRk66cyQAW3qr0WzbHkPdMYa8bzZhlHhO3jALbKdxcaak7W9FfT2rZNpQuUu4Od7ILEpXSaw==", + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.1.2.tgz", + "integrity": "sha512-fu656aJ0n2kcXwsnwnv9g24tkU5uSmOlTjd6WyyaKm2Z+h1qmY6bAjrcaIxF/BslFqbZ8UBtbJi7KgQOZD2PTw==", "dev": true, - "license": "ISC", + "license": "BlueOak-1.0.0", "dependencies": { - "@isaacs/brace-expansion": "^5.0.0" + "@isaacs/brace-expansion": "^5.0.1" }, "engines": { "node": "20 || >=22" @@ -4040,6 +4161,10 @@ "node": ">=18" } }, + "node_modules/@polymech/ui": { + "resolved": "../ui", + "link": true + }, "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", @@ -6388,9 +6513,9 @@ } }, "node_modules/@rushstack/terminal": { - "version": "0.19.5", - "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.19.5.tgz", - "integrity": "sha512-6k5tpdB88G0K7QrH/3yfKO84HK9ggftfUZ51p7fePyCE7+RLLHkWZbID9OFWbXuna+eeCFE7AkKnRMHMxNbz7Q==", + "version": "0.21.0", + "resolved": "https://registry.npmjs.org/@rushstack/terminal/-/terminal-0.21.0.tgz", + "integrity": "sha512-cLaI4HwCNYmknM5ns4G+drqdEB6q3dCPV423+d3TZeBusYSSm09+nR7CnhzJMjJqeRcdMAaLnrA4M/3xDz4R3w==", "dev": true, "license": "MIT", "dependencies": { @@ -6424,13 +6549,13 @@ } }, "node_modules/@rushstack/ts-command-line": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-5.1.5.tgz", - "integrity": "sha512-YmrFTFUdHXblYSa+Xc9OO9FsL/XFcckZy0ycQ6q7VSBsVs5P0uD9vcges5Q9vctGlVdu27w+Ct6IuJ458V0cTQ==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-5.2.0.tgz", + "integrity": "sha512-lYxCX0nDdkDtCkVpvF0m25ymf66SaMWuppbD6b7MdkIzvGXKBXNIVZlwBH/C0YfkanrupnICWf2n4z3AKSfaHw==", "dev": true, "license": "MIT", "dependencies": { - "@rushstack/terminal": "0.19.5", + "@rushstack/terminal": "0.21.0", "@types/argparse": "1.0.38", "argparse": "~1.0.9", "string-argv": "~0.3.1" @@ -7129,17 +7254,17 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.53.1.tgz", - "integrity": "sha512-cFYYFZ+oQFi6hUnBTbLRXfTJiaQtYE3t4O692agbBl+2Zy+eqSKWtPjhPXJu1G7j4RLjKgeJPDdq3EqOwmX5Ag==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.56.0.tgz", + "integrity": "sha512-lRyPDLzNCuae71A3t9NEINBiTn7swyOhvUj3MyUOxb8x6g6vPEFoOU+ZRmGMusNC3X3YMhqMIX7i8ShqhT74Pw==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.53.1", - "@typescript-eslint/type-utils": "8.53.1", - "@typescript-eslint/utils": "8.53.1", - "@typescript-eslint/visitor-keys": "8.53.1", + "@typescript-eslint/scope-manager": "8.56.0", + "@typescript-eslint/type-utils": "8.56.0", + "@typescript-eslint/utils": "8.56.0", + "@typescript-eslint/visitor-keys": "8.56.0", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.4.0" @@ -7152,8 +7277,8 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.53.1", - "eslint": "^8.57.0 || ^9.0.0", + "@typescript-eslint/parser": "^8.56.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.0.0" } }, @@ -7168,17 +7293,17 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.53.1.tgz", - "integrity": "sha512-nm3cvFN9SqZGXjmw5bZ6cGmvJSyJPn0wU9gHAZZHDnZl2wF9PhHv78Xf06E0MaNk4zLVHL8hb2/c32XvyJOLQg==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.56.0.tgz", + "integrity": "sha512-IgSWvLobTDOjnaxAfDTIHaECbkNlAlKv2j5SjpB2v7QHKv1FIfjwMy8FsDbVfDX/KjmCmYICcw7uGaXLhtsLNg==", "dev": true, "license": "MIT", "peer": true, "dependencies": { - "@typescript-eslint/scope-manager": "8.53.1", - "@typescript-eslint/types": "8.53.1", - "@typescript-eslint/typescript-estree": "8.53.1", - "@typescript-eslint/visitor-keys": "8.53.1", + "@typescript-eslint/scope-manager": "8.56.0", + "@typescript-eslint/types": "8.56.0", + "@typescript-eslint/typescript-estree": "8.56.0", + "@typescript-eslint/visitor-keys": "8.56.0", "debug": "^4.4.3" }, "engines": { @@ -7189,19 +7314,19 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.53.1.tgz", - "integrity": "sha512-WYC4FB5Ra0xidsmlPb+1SsnaSKPmS3gsjIARwbEkHkoWloQmuzcfypljaJcR78uyLA1h8sHdWWPHSLDI+MtNog==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.56.0.tgz", + "integrity": "sha512-M3rnyL1vIQOMeWxTWIW096/TtVP+8W3p/XnaFflhmcFp+U4zlxUxWj4XwNs6HbDeTtN4yun0GNTTDBw/SvufKg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.53.1", - "@typescript-eslint/types": "^8.53.1", + "@typescript-eslint/tsconfig-utils": "^8.56.0", + "@typescript-eslint/types": "^8.56.0", "debug": "^4.4.3" }, "engines": { @@ -7216,14 +7341,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.53.1.tgz", - "integrity": "sha512-Lu23yw1uJMFY8cUeq7JlrizAgeQvWugNQzJp8C3x8Eo5Jw5Q2ykMdiiTB9vBVOOUBysMzmRRmUfwFrZuI2C4SQ==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.56.0.tgz", + "integrity": "sha512-7UiO/XwMHquH+ZzfVCfUNkIXlp/yQjjnlYUyYz7pfvlK3/EyyN6BK+emDmGNyQLBtLGaYrTAI6KOw8tFucWL2w==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.53.1", - "@typescript-eslint/visitor-keys": "8.53.1" + "@typescript-eslint/types": "8.56.0", + "@typescript-eslint/visitor-keys": "8.56.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -7234,9 +7359,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.53.1.tgz", - "integrity": "sha512-qfvLXS6F6b1y43pnf0pPbXJ+YoXIC7HKg0UGZ27uMIemKMKA6XH2DTxsEDdpdN29D+vHV07x/pnlPNVLhdhWiA==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.56.0.tgz", + "integrity": "sha512-bSJoIIt4o3lKXD3xmDh9chZcjCz5Lk8xS7Rxn+6l5/pKrDpkCwtQNQQwZ2qRPk7TkUYhrq3WPIHXOXlbXP0itg==", "dev": true, "license": "MIT", "engines": { @@ -7251,15 +7376,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.53.1.tgz", - "integrity": "sha512-MOrdtNvyhy0rHyv0ENzub1d4wQYKb2NmIqG7qEqPWFW7Mpy2jzFC3pQ2yKDvirZB7jypm5uGjF2Qqs6OIqu47w==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.56.0.tgz", + "integrity": "sha512-qX2L3HWOU2nuDs6GzglBeuFXviDODreS58tLY/BALPC7iu3Fa+J7EOTwnX9PdNBxUI7Uh0ntP0YWGnxCkXzmfA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.53.1", - "@typescript-eslint/typescript-estree": "8.53.1", - "@typescript-eslint/utils": "8.53.1", + "@typescript-eslint/types": "8.56.0", + "@typescript-eslint/typescript-estree": "8.56.0", + "@typescript-eslint/utils": "8.56.0", "debug": "^4.4.3", "ts-api-utils": "^2.4.0" }, @@ -7271,14 +7396,14 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/types": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.53.1.tgz", - "integrity": "sha512-jr/swrr2aRmUAUjW5/zQHbMaui//vQlsZcJKijZf3M26bnmLj8LyZUpj8/Rd6uzaek06OWsqdofN/Thenm5O8A==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.56.0.tgz", + "integrity": "sha512-DBsLPs3GsWhX5HylbP9HNG15U0bnwut55Lx12bHB9MpXxQ+R5GC8MwQe+N1UFXxAeQDvEsEDY6ZYwX03K7Z6HQ==", "dev": true, "license": "MIT", "engines": { @@ -7290,16 +7415,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.53.1.tgz", - "integrity": "sha512-RGlVipGhQAG4GxV1s34O91cxQ/vWiHJTDHbXRr0li2q/BGg3RR/7NM8QDWgkEgrwQYCvmJV9ichIwyoKCQ+DTg==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.56.0.tgz", + "integrity": "sha512-ex1nTUMWrseMltXUHmR2GAQ4d+WjkZCT4f+4bVsps8QEdh0vlBsaCokKTPlnqBFqqGaxilDNJG7b8dolW2m43Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.53.1", - "@typescript-eslint/tsconfig-utils": "8.53.1", - "@typescript-eslint/types": "8.53.1", - "@typescript-eslint/visitor-keys": "8.53.1", + "@typescript-eslint/project-service": "8.56.0", + "@typescript-eslint/tsconfig-utils": "8.56.0", + "@typescript-eslint/types": "8.56.0", + "@typescript-eslint/visitor-keys": "8.56.0", "debug": "^4.4.3", "minimatch": "^9.0.5", "semver": "^7.7.3", @@ -7344,16 +7469,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.53.1.tgz", - "integrity": "sha512-c4bMvGVWW4hv6JmDUEG7fSYlWOl3II2I4ylt0NM+seinYQlZMQIaKaXIIVJWt9Ofh6whrpM+EdDQXKXjNovvrg==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.56.0.tgz", + "integrity": "sha512-RZ3Qsmi2nFGsS+n+kjLAYDPVlrzf7UhTffrDIKr+h2yzAlYP/y5ZulU0yeDEPItos2Ph46JAL5P/On3pe7kDIQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.53.1", - "@typescript-eslint/types": "8.53.1", - "@typescript-eslint/typescript-estree": "8.53.1" + "@typescript-eslint/scope-manager": "8.56.0", + "@typescript-eslint/types": "8.56.0", + "@typescript-eslint/typescript-estree": "8.56.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -7363,19 +7488,19 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.0.0" } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.53.1.tgz", - "integrity": "sha512-oy+wV7xDKFPRyNggmXuZQSBzvoLnpmJs+GhzRhPjrxl2b/jIlyjVokzm47CZCDUdXKr2zd7ZLodPfOBpOPyPlg==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.56.0.tgz", + "integrity": "sha512-q+SL+b+05Ud6LbEE35qe4A99P+htKTKVbyiNEe45eCbJFyh/HVK9QXwlrbz+Q4L8SOW4roxSVwXYj4DMBT7Ieg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.53.1", - "eslint-visitor-keys": "^4.2.1" + "@typescript-eslint/types": "8.56.0", + "eslint-visitor-keys": "^5.0.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -7385,6 +7510,19 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.0.tgz", + "integrity": "sha512-A0XeIi7CXU7nPlfHS9loMYEKxUaONu/hTEzHTGba9Huu94Cq1hPivf+DE5erJozZOky0LfvXAyrV/tcswpLI0Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, "node_modules/@ungap/structured-clone": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", @@ -7848,9 +7986,9 @@ } }, "node_modules/ajv-formats/node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz", + "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==", "dev": true, "license": "MIT", "dependencies": { @@ -8086,13 +8224,13 @@ } }, "node_modules/axios": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz", - "integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==", + "version": "1.13.5", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.5.tgz", + "integrity": "sha512-cz4ur7Vb0xS4/KUN0tPWe44eqxrIu31me+fbang3ijiNscE129POzipJJA6zniq2C/Z6sJCjMimjS8Lc/GAs8Q==", "license": "MIT", "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.4", + "follow-redirects": "^1.15.11", + "form-data": "^4.0.5", "proxy-from-env": "^1.1.0" } }, @@ -9246,9 +9384,9 @@ "license": "Apache-2.0" }, "node_modules/diff": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", - "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.2.tgz", + "integrity": "sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==", "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" @@ -11820,15 +11958,15 @@ } }, "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "version": "4.17.23", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.23.tgz", + "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==", "license": "MIT" }, "node_modules/lodash-es": { - "version": "4.17.22", - "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.22.tgz", - "integrity": "sha512-XEawp1t0gxSi9x01glktRZ5HDy0HXqrM0x5pXQM98EaI0NxO6jVM7omDOxsuEo5UIASAnm2bRp1Jt/e0a2XU8Q==", + "version": "4.17.23", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.23.tgz", + "integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==", "license": "MIT" }, "node_modules/lodash._baseiteratee": { @@ -15374,9 +15512,9 @@ } }, "node_modules/semver": { - "version": "7.7.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", - "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", "dev": true, "license": "ISC", "bin": { @@ -16424,16 +16562,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.53.1", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.53.1.tgz", - "integrity": "sha512-gB+EVQfP5RDElh9ittfXlhZJdjSU4jUSTyE2+ia8CYyNvet4ElfaLlAIqDvQV9JPknKx0jQH1racTYe/4LaLSg==", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.56.0.tgz", + "integrity": "sha512-c7toRLrotJ9oixgdW7liukZpsnq5CZ7PuKztubGYlNppuTqhIoWfhgHo/7EU0v06gS2l/x0i2NEFK1qMIf0rIg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.53.1", - "@typescript-eslint/parser": "8.53.1", - "@typescript-eslint/typescript-estree": "8.53.1", - "@typescript-eslint/utils": "8.53.1" + "@typescript-eslint/eslint-plugin": "8.56.0", + "@typescript-eslint/parser": "8.56.0", + "@typescript-eslint/typescript-estree": "8.56.0", + "@typescript-eslint/utils": "8.56.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -16443,7 +16581,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.0.0" } }, @@ -17748,9 +17886,9 @@ "license": "MIT" }, "node_modules/workbox-build/node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz", + "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==", "license": "MIT", "peer": true, "dependencies": { diff --git a/packages/ecommerce/package.json b/packages/ecommerce/package.json index 42b7d837..f4e4847c 100644 --- a/packages/ecommerce/package.json +++ b/packages/ecommerce/package.json @@ -41,6 +41,7 @@ "@milkdown/crepe": "^7.16.0", "@milkdown/utils": "^7.16.0", "@playwright/test": "^1.55.1", + "@polymech/ui": "file:../ui", "@radix-ui/react-accordion": "^1.2.11", "@radix-ui/react-alert-dialog": "^1.1.14", "@radix-ui/react-aspect-ratio": "^1.1.7", @@ -148,4 +149,4 @@ "workbox-routing": "^7.4.0", "workbox-window": "^7.4.0" } -} \ No newline at end of file +} diff --git a/packages/ecommerce/src/cart/CartPage.tsx b/packages/ecommerce/src/cart/CartPage.tsx index 90c4c6f4..8f2721eb 100644 --- a/packages/ecommerce/src/cart/CartPage.tsx +++ b/packages/ecommerce/src/cart/CartPage.tsx @@ -6,6 +6,7 @@ import { Separator } from "@/components/ui/separator"; import { cn } from "@/lib/utils"; import { useCartStore } from "./useCartStore"; import { CartItemRow } from "./CartItem"; +import { PolicyLinks } from "@/policies/PolicyLinks"; export interface CartPageProps { /** Called when user clicks "Proceed to Checkout". */ @@ -81,6 +82,8 @@ export function CartPage({ onCheckout, className }: CartPageProps) { + +

); } diff --git a/packages/ecommerce/src/cart/useCartStore.ts b/packages/ecommerce/src/cart/useCartStore.ts index 1b021db7..a018f0ff 100644 --- a/packages/ecommerce/src/cart/useCartStore.ts +++ b/packages/ecommerce/src/cart/useCartStore.ts @@ -1,4 +1,5 @@ import { create } from "zustand"; +import { persist } from "zustand/middleware"; import type { CartItem, CartState } from "./types"; /** Recompute derived totals from items array. */ @@ -10,51 +11,58 @@ function computeTotals(items: CartItem[]) { } /** - * Global cart store. + * Global cart store — persisted to localStorage. * * Usage: * ```tsx * const { items, addItem, subtotal } = useCartStore(); * ``` */ -export const useCartStore = create((set) => ({ - items: [], - subtotal: 0, - itemCount: 0, +export const useCartStore = create()( + persist( + (set) => ({ + items: [], + subtotal: 0, + itemCount: 0, - addItem: (incoming) => - set((state) => { - const existing = state.items.find((i) => i.id === incoming.id); - let items: CartItem[]; - if (existing) { - items = state.items.map((i) => - i.id === incoming.id - ? { ...i, quantity: i.quantity + (incoming.quantity ?? 1) } - : i, - ); - } else { - items = [...state.items, { ...incoming, quantity: incoming.quantity ?? 1 }]; - } - return { items, ...computeTotals(items) }; + addItem: (incoming) => + set((state) => { + const existing = state.items.find((i) => i.id === incoming.id); + let items: CartItem[]; + if (existing) { + items = state.items.map((i) => + i.id === incoming.id + ? { ...i, quantity: i.quantity + (incoming.quantity ?? 1) } + : i, + ); + } else { + items = [...state.items, { ...incoming, quantity: incoming.quantity ?? 1 }]; + } + return { items, ...computeTotals(items) }; + }), + + removeItem: (id) => + set((state) => { + const items = state.items.filter((i) => i.id !== id); + return { items, ...computeTotals(items) }; + }), + + updateQuantity: (id, quantity) => + set((state) => { + if (quantity <= 0) { + const items = state.items.filter((i) => i.id !== id); + return { items, ...computeTotals(items) }; + } + const items = state.items.map((i) => + i.id === id ? { ...i, quantity } : i, + ); + return { items, ...computeTotals(items) }; + }), + + clearCart: () => set({ items: [], subtotal: 0, itemCount: 0 }), }), - - removeItem: (id) => - set((state) => { - const items = state.items.filter((i) => i.id !== id); - return { items, ...computeTotals(items) }; - }), - - updateQuantity: (id, quantity) => - set((state) => { - if (quantity <= 0) { - const items = state.items.filter((i) => i.id !== id); - return { items, ...computeTotals(items) }; - } - const items = state.items.map((i) => - i.id === id ? { ...i, quantity } : i, - ); - return { items, ...computeTotals(items) }; - }), - - clearCart: () => set({ items: [], subtotal: 0, itemCount: 0 }), -})); + { + name: "pm-ecommerce-cart", + }, + ), +); diff --git a/packages/ecommerce/src/checkout/CheckoutPage.tsx b/packages/ecommerce/src/checkout/CheckoutPage.tsx index 231538a9..31964e84 100644 --- a/packages/ecommerce/src/checkout/CheckoutPage.tsx +++ b/packages/ecommerce/src/checkout/CheckoutPage.tsx @@ -8,6 +8,7 @@ import { Separator } from "@/components/ui/separator"; import { cn } from "@/lib/utils"; import { useCartStore } from "@/cart/useCartStore"; import { OrderSummary } from "./OrderSummary"; +import { PolicyLinks } from "@/policies/PolicyLinks"; /** Shipping address fields collected at checkout. */ export interface ShippingAddress { @@ -29,6 +30,8 @@ export interface CheckoutPageProps { }) => void; /** Called when user clicks "Back to Cart". */ onBackToCart?: () => void; + /** Pre-fill shipping form fields (e.g. from user profile). */ + initialShipping?: Partial; /** Pre-filled tax amount, if known. */ tax?: number; /** Pre-filled shipping cost. */ @@ -44,6 +47,7 @@ export interface CheckoutPageProps { export function CheckoutPage({ onPlaceOrder, onBackToCart, + initialShipping, tax, shipping, className, @@ -52,12 +56,12 @@ export function CheckoutPage({ const [paymentMethod, setPaymentMethod] = useState("shopify"); const [form, setForm] = useState({ - fullName: "", - email: "", - address: "", - city: "", - zip: "", - country: "", + fullName: initialShipping?.fullName ?? "", + email: initialShipping?.email ?? "", + address: initialShipping?.address ?? "", + city: initialShipping?.city ?? "", + zip: initialShipping?.zip ?? "", + country: initialShipping?.country ?? "", }); const field = (key: keyof ShippingAddress, value: string) => @@ -232,6 +236,8 @@ export function CheckoutPage({ ← Back to Cart )} + +
); diff --git a/packages/ecommerce/src/lib-export.ts b/packages/ecommerce/src/lib-export.ts index f30ab522..d2e73927 100644 --- a/packages/ecommerce/src/lib-export.ts +++ b/packages/ecommerce/src/lib-export.ts @@ -19,3 +19,22 @@ export type { ShippingAddress, PaymentMethod, } from "./checkout/CheckoutPage"; + +// === Policies === +export { PolicyPage } from "./policies/PolicyPage"; +export type { PolicyPageProps } from "./policies/PolicyPage"; + +export { ShippingPage } from "./policies/ShippingPage"; +export type { ShippingPageProps, ShippingRate } from "./policies/ShippingPage"; + +export { ReturnsPage } from "./policies/ReturnsPage"; +export type { ReturnsPageProps } from "./policies/ReturnsPage"; + +export { PrivacyPolicyPage } from "./policies/PrivacyPolicyPage"; +export type { PrivacyPolicyPageProps } from "./policies/PrivacyPolicyPage"; + +export { TermsPage } from "./policies/TermsPage"; +export type { TermsPageProps } from "./policies/TermsPage"; + +export { PolicyLinks } from "./policies/PolicyLinks"; +export type { PolicyLinksProps, PolicyLink } from "./policies/PolicyLinks"; diff --git a/packages/ecommerce/src/policies/PolicyLinks.tsx b/packages/ecommerce/src/policies/PolicyLinks.tsx new file mode 100644 index 00000000..9b4e3d33 --- /dev/null +++ b/packages/ecommerce/src/policies/PolicyLinks.tsx @@ -0,0 +1,37 @@ +import React from "react"; +import { cn } from "@/lib/utils"; + +export interface PolicyLink { + label: string; + href: string; +} + +const defaultLinks: PolicyLink[] = [ + { label: "Returns & Refunds", href: "/returns" }, + { label: "Shipping", href: "/shipping" }, + { label: "Privacy Policy", href: "/privacy" }, + { label: "Terms of Service", href: "/terms" }, +]; + +export interface PolicyLinksProps { + links?: PolicyLink[]; + className?: string; +} + +/** + * Small footer row of policy links for cart / checkout pages. + */ +export function PolicyLinks({ links = defaultLinks, className }: PolicyLinksProps) { + return ( + + ); +} diff --git a/packages/ecommerce/src/policies/PolicyPage.tsx b/packages/ecommerce/src/policies/PolicyPage.tsx new file mode 100644 index 00000000..93fb0dae --- /dev/null +++ b/packages/ecommerce/src/policies/PolicyPage.tsx @@ -0,0 +1,33 @@ +import React from "react"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { Separator } from "@/components/ui/separator"; +import { cn } from "@/lib/utils"; + +export interface PolicyPageProps { + /** Page title override. */ + title?: string; + /** Rich content to render inside the page body (JSX). */ + children?: React.ReactNode; + /** Optional extra class names. */ + className?: string; +} + +/** + * Generic policy/info page shell — centered card with title + prose body. + * Used by ShippingPage, ReturnsPage, PrivacyPolicyPage, TermsPage. + */ +export function PolicyPage({ title, children, className }: PolicyPageProps) { + return ( +
+ + + {title} + + + + {children} + + +
+ ); +} diff --git a/packages/ecommerce/src/policies/PrivacyPolicyPage.tsx b/packages/ecommerce/src/policies/PrivacyPolicyPage.tsx new file mode 100644 index 00000000..0cc0aea2 --- /dev/null +++ b/packages/ecommerce/src/policies/PrivacyPolicyPage.tsx @@ -0,0 +1,85 @@ +import React from "react"; +import { PolicyPage } from "./PolicyPage"; + +export interface PrivacyPolicyPageProps { + /** Business / site name used in the policy text. */ + siteName?: string; + /** Contact email for privacy inquiries. */ + contactEmail?: string; + /** Optional extra class names. */ + className?: string; +} + +/** Public page with privacy / cookie information. */ +export function PrivacyPolicyPage({ + siteName = "Our Store", + contactEmail = "privacy@example.com", + className, +}: PrivacyPolicyPageProps) { + return ( + +

+ At {siteName}, we are committed to protecting your personal information + and your right to privacy. This policy explains what information we collect, how we use + it, and what rights you have in relation to it. +

+ +

Information We Collect

+
    +
  • + Personal information: name, email, shipping address, and payment + details provided during checkout. +
  • +
  • + Usage data: pages visited, time spent, browser type, and device + information collected automatically. +
  • +
  • + Cookies: small data files stored on your device to improve your + browsing experience and remember your preferences. +
  • +
+ +

How We Use Your Information

+
    +
  • To process and fulfill your orders.
  • +
  • To communicate with you about orders, updates, and promotions.
  • +
  • To improve our website and services.
  • +
  • To comply with legal obligations.
  • +
+ +

Data Sharing

+

+ We do not sell your personal data. We share information only with service providers + necessary to fulfill your order (e.g., payment processors, shipping carriers) and as + required by law. +

+ +

Cookies

+

+ We use essential cookies for site functionality and optional analytics cookies to + understand usage patterns. You can manage cookie preferences through your browser + settings. +

+ +

Your Rights

+

+ You may request access to, correction of, or deletion of your personal data at any + time by contacting us at{" "} + + {contactEmail} + + . +

+ +

Contact Us

+

+ If you have questions about this privacy policy, please contact us at{" "} + + {contactEmail} + + . +

+
+ ); +} diff --git a/packages/ecommerce/src/policies/ReturnsPage.tsx b/packages/ecommerce/src/policies/ReturnsPage.tsx new file mode 100644 index 00000000..f4657119 --- /dev/null +++ b/packages/ecommerce/src/policies/ReturnsPage.tsx @@ -0,0 +1,62 @@ +import React from "react"; +import { RotateCcw, CheckCircle, XCircle, Clock } from "lucide-react"; +import { PolicyPage } from "./PolicyPage"; + +export interface ReturnsPageProps { + /** Number of days for return window. */ + returnWindowDays?: number; + /** Optional extra class names. */ + className?: string; +} + +/** Public page with refund / return policy. */ +export function ReturnsPage({ returnWindowDays = 30, className }: ReturnsPageProps) { + return ( + + {/* Quick summary */} +
+ {[ + { icon: Clock, label: `${returnWindowDays}-day return window` }, + { icon: RotateCcw, label: "Free returns on defective items" }, + { icon: CheckCircle, label: "Full refund to original payment" }, + { icon: XCircle, label: "No restocking fees" }, + ].map(({ icon: Icon, label }) => ( +
+ + {label} +
+ ))} +
+ +

Eligibility

+

+ Items must be returned within {returnWindowDays} days of delivery in their + original, unused condition with all tags and packaging intact. +

+ +

How to Initiate a Return

+
    +
  1. Contact our support team with your order number.
  2. +
  3. Receive a prepaid return label (for defective items) or return instructions.
  4. +
  5. Ship the item back using the provided label or your preferred carrier.
  6. +
+ +

Refund Processing

+

+ Once we receive and inspect the returned item, your refund will be processed within + 5–10 business days to your original payment method. You will receive an email + confirmation when the refund has been issued. +

+ +

Exceptions

+

+ The following items are not eligible for return: gift cards, downloadable products, + and items marked as final sale. Perishable goods cannot be returned unless they arrive + damaged or defective. +

+
+ ); +} diff --git a/packages/ecommerce/src/policies/ShippingPage.tsx b/packages/ecommerce/src/policies/ShippingPage.tsx new file mode 100644 index 00000000..cf1f4c64 --- /dev/null +++ b/packages/ecommerce/src/policies/ShippingPage.tsx @@ -0,0 +1,88 @@ +import React from "react"; +import { Truck, Clock, Globe, DollarSign } from "lucide-react"; +import { cn } from "@/lib/utils"; +import { PolicyPage } from "./PolicyPage"; + +export interface ShippingRate { + region: string; + method: string; + estimate: string; + price: string; +} + +export interface ShippingPageProps { + /** Custom shipping rates to display. Falls back to placeholder content. */ + rates?: ShippingRate[]; + /** Optional extra class names. */ + className?: string; +} + +const defaultRates: ShippingRate[] = [ + { region: "Domestic", method: "Standard", estimate: "5–7 business days", price: "$4.99" }, + { region: "Domestic", method: "Express", estimate: "2–3 business days", price: "$12.99" }, + { region: "International", method: "Standard", estimate: "10–20 business days", price: "$14.99" }, + { region: "International", method: "Express", estimate: "5–8 business days", price: "$29.99" }, +]; + +/** Public page with shipping info and rates. */ +export function ShippingPage({ rates = defaultRates, className }: ShippingPageProps) { + return ( + + {/* Highlights */} +
+ {[ + { icon: Truck, label: "Free shipping on orders over $75" }, + { icon: Clock, label: "Same-day dispatch on orders before 2 PM" }, + { icon: Globe, label: "We ship worldwide" }, + { icon: DollarSign, label: "No hidden fees at checkout" }, + ].map(({ icon: Icon, label }) => ( +
+ + {label} +
+ ))} +
+ + {/* Rates table */} +

Shipping Rates

+
+ + + + + + + + + + + {rates.map((r, i) => ( + + + + + + + ))} + +
RegionMethodEstimatePrice
{r.region}{r.method}{r.estimate}{r.price}
+
+ +

Processing Time

+

+ Orders placed before 2:00 PM (local time) on business days are typically processed and + shipped the same day. Orders placed after this cut-off or on weekends/holidays will be + processed the next business day. +

+ +

Tracking

+

+ Once your order ships, you will receive a confirmation email with a tracking number. + You can use this number to track your package on the carrier's website. +

+
+ ); +} diff --git a/packages/ecommerce/src/policies/TermsPage.tsx b/packages/ecommerce/src/policies/TermsPage.tsx new file mode 100644 index 00000000..3deca4de --- /dev/null +++ b/packages/ecommerce/src/policies/TermsPage.tsx @@ -0,0 +1,77 @@ +import React from "react"; +import { PolicyPage } from "./PolicyPage"; + +export interface TermsPageProps { + /** Business / site name. */ + siteName?: string; + /** Contact email for legal inquiries. */ + contactEmail?: string; + /** Optional extra class names. */ + className?: string; +} + +/** Optional terms of service page. */ +export function TermsPage({ + siteName = "Our Store", + contactEmail = "legal@example.com", + className, +}: TermsPageProps) { + return ( + +

+ By accessing and using {siteName}, you agree to be bound by these + Terms of Service. +

+ +

Use of the Site

+

+ You agree to use this site only for lawful purposes and in a manner that does not + infringe on the rights of others or restrict their use and enjoyment of the site. +

+ +

Products & Pricing

+

+ All product descriptions and prices are subject to change without notice. We reserve + the right to modify or discontinue any product at any time. Prices are displayed in + the store's base currency and may exclude taxes and shipping costs, which are + calculated at checkout. +

+ +

Orders & Payment

+

+ By placing an order, you make an offer to purchase the selected products. We reserve + the right to refuse or cancel any order for any reason, including pricing errors or + suspected fraud. +

+ +

Intellectual Property

+

+ All content on this site — including text, images, logos, and software — is the + property of {siteName} or its licensors and is protected by applicable intellectual + property laws. +

+ +

Limitation of Liability

+

+ To the fullest extent permitted by law, {siteName} shall not be liable for any + indirect, incidental, or consequential damages arising from your use of the site or + purchase of products. +

+ +

Changes to These Terms

+

+ We may update these Terms of Service from time to time. Continued use of the site + after changes constitutes acceptance of the revised terms. +

+ +

Contact

+

+ For questions about these terms, contact us at{" "} + + {contactEmail} + + . +

+
+ ); +}