@sudobility/subscription-components 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
- import { jsxs as G, jsx as g, Fragment as We } from "react/jsx-runtime";
1
+ import { jsxs as G, jsx as p, Fragment as Be } from "react/jsx-runtime";
2
2
  import { textVariants as he } from "@sudobility/design";
3
- import { Card as Be, CardContent as Ue, Button as ve } from "@sudobility/components";
4
- import { createContext as Ke, useState as K, useCallback as Y, useEffect as Ye, useContext as qe } from "react";
3
+ import { Card as We, CardContent as Ue, Button as ve } from "@sudobility/components";
4
+ import { createContext as Ke, useState as q, useCallback as X, useEffect as Ye, useContext as qe } from "react";
5
5
  function Ie(e) {
6
6
  var o, r, t = "";
7
7
  if (typeof e == "string" || typeof e == "number") t += e;
@@ -38,13 +38,13 @@ const Je = (e, o) => {
38
38
  getClassGroupId: (a) => {
39
39
  if (a.startsWith("[") && a.endsWith("]"))
40
40
  return et(a);
41
- const p = a.split(me), c = p[0] === "" && p.length > 1 ? 1 : 0;
42
- return Me(p, c, o);
41
+ const u = a.split(me), d = u[0] === "" && u.length > 1 ? 1 : 0;
42
+ return Me(u, d, o);
43
43
  },
44
- getConflictingClassGroupIds: (a, p) => {
45
- if (p) {
46
- const c = t[a], h = r[a];
47
- return c ? h ? Je(h, c) : c : h || Ce;
44
+ getConflictingClassGroupIds: (a, u) => {
45
+ if (u) {
46
+ const d = t[a], x = r[a];
47
+ return d ? x ? Je(x, d) : d : x || Ce;
48
48
  }
49
49
  return r[a] || Ce;
50
50
  }
@@ -54,17 +54,17 @@ const Je = (e, o) => {
54
54
  return r.classGroupId;
55
55
  const n = e[o], s = r.nextPart.get(n);
56
56
  if (s) {
57
- const h = Me(e, o + 1, s);
58
- if (h) return h;
57
+ const x = Me(e, o + 1, s);
58
+ if (x) return x;
59
59
  }
60
60
  const a = r.validators;
61
61
  if (a === null)
62
62
  return;
63
- const p = o === 0 ? e.join(me) : e.slice(o).join(me), c = a.length;
64
- for (let h = 0; h < c; h++) {
65
- const x = a[h];
66
- if (x.validator(p))
67
- return x.classGroupId;
63
+ const u = o === 0 ? e.join(me) : e.slice(o).join(me), d = a.length;
64
+ for (let x = 0; x < d; x++) {
65
+ const w = a[x];
66
+ if (w.validator(u))
67
+ return w.classGroupId;
68
68
  }
69
69
  }, et = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
70
70
  const o = e.slice(1, -1), r = o.indexOf(":"), t = o.slice(0, r);
@@ -110,16 +110,16 @@ const Je = (e, o) => {
110
110
  }, at = (e, o, r, t) => {
111
111
  const n = Object.entries(e), s = n.length;
112
112
  for (let a = 0; a < s; a++) {
113
- const [p, c] = n[a];
114
- we(c, De(o, p), r, t);
113
+ const [u, d] = n[a];
114
+ we(d, De(o, u), r, t);
115
115
  }
116
116
  }, De = (e, o) => {
117
117
  let r = e;
118
118
  const t = o.split(me), n = t.length;
119
119
  for (let s = 0; s < n; s++) {
120
120
  const a = t[s];
121
- let p = r.nextPart.get(a);
122
- p || (p = Re(), r.nextPart.set(a, p)), r = p;
121
+ let u = r.nextPart.get(a);
122
+ u || (u = Re(), r.nextPart.set(a, u)), r = u;
123
123
  }
124
124
  return r;
125
125
  }, it = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, lt = (e) => {
@@ -159,33 +159,33 @@ const Je = (e, o) => {
159
159
  } = e;
160
160
  let t = (n) => {
161
161
  const s = [];
162
- let a = 0, p = 0, c = 0, h;
163
- const x = n.length;
164
- for (let z = 0; z < x; z++) {
165
- const k = n[z];
166
- if (a === 0 && p === 0) {
167
- if (k === Pe) {
168
- s.push(n.slice(c, z)), c = z + 1;
162
+ let a = 0, u = 0, d = 0, x;
163
+ const w = n.length;
164
+ for (let z = 0; z < w; z++) {
165
+ const v = n[z];
166
+ if (a === 0 && u === 0) {
167
+ if (v === Pe) {
168
+ s.push(n.slice(d, z)), d = z + 1;
169
169
  continue;
170
170
  }
171
- if (k === "/") {
172
- h = z;
171
+ if (v === "/") {
172
+ x = z;
173
173
  continue;
174
174
  }
175
175
  }
176
- k === "[" ? a++ : k === "]" ? a-- : k === "(" ? p++ : k === ")" && p--;
176
+ v === "[" ? a++ : v === "]" ? a-- : v === "(" ? u++ : v === ")" && u--;
177
177
  }
178
- const S = s.length === 0 ? n : n.slice(c);
179
- let w = S, y = !1;
180
- S.endsWith(xe) ? (w = S.slice(0, -1), y = !0) : (
178
+ const S = s.length === 0 ? n : n.slice(d);
179
+ let y = S, k = !1;
180
+ S.endsWith(xe) ? (y = S.slice(0, -1), k = !0) : (
181
181
  /**
182
182
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
183
183
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
184
184
  */
185
- S.startsWith(xe) && (w = S.slice(1), y = !0)
185
+ S.startsWith(xe) && (y = S.slice(1), k = !0)
186
186
  );
187
- const j = h && h > c ? h - c : void 0;
188
- return ze(s, y, w, j);
187
+ const j = x && x > d ? x - d : void 0;
188
+ return ze(s, k, y, j);
189
189
  };
190
190
  if (o) {
191
191
  const n = o + Pe, s = t;
@@ -207,8 +207,8 @@ const Je = (e, o) => {
207
207
  const t = [];
208
208
  let n = [];
209
209
  for (let s = 0; s < r.length; s++) {
210
- const a = r[s], p = a[0] === "[", c = o.has(a);
211
- p || c ? (n.length > 0 && (n.sort(), t.push(...n), n = []), t.push(a)) : n.push(a);
210
+ const a = r[s], u = a[0] === "[", d = o.has(a);
211
+ u || d ? (n.length > 0 && (n.sort(), t.push(...n), n = []), t.push(a)) : n.push(a);
212
212
  }
213
213
  return n.length > 0 && (n.sort(), t.push(...n)), t;
214
214
  };
@@ -223,44 +223,44 @@ const Je = (e, o) => {
223
223
  getClassGroupId: t,
224
224
  getConflictingClassGroupIds: n,
225
225
  sortModifiers: s
226
- } = o, a = [], p = e.trim().split(ft);
227
- let c = "";
228
- for (let h = p.length - 1; h >= 0; h -= 1) {
229
- const x = p[h], {
226
+ } = o, a = [], u = e.trim().split(ft);
227
+ let d = "";
228
+ for (let x = u.length - 1; x >= 0; x -= 1) {
229
+ const w = u[x], {
230
230
  isExternal: S,
231
- modifiers: w,
232
- hasImportantModifier: y,
231
+ modifiers: y,
232
+ hasImportantModifier: k,
233
233
  baseClassName: j,
234
234
  maybePostfixModifierPosition: z
235
- } = r(x);
235
+ } = r(w);
236
236
  if (S) {
237
- c = x + (c.length > 0 ? " " + c : c);
237
+ d = w + (d.length > 0 ? " " + d : d);
238
238
  continue;
239
239
  }
240
- let k = !!z, D = t(k ? j.substring(0, z) : j);
241
- if (!D) {
242
- if (!k) {
243
- c = x + (c.length > 0 ? " " + c : c);
240
+ let v = !!z, M = t(v ? j.substring(0, z) : j);
241
+ if (!M) {
242
+ if (!v) {
243
+ d = w + (d.length > 0 ? " " + d : d);
244
244
  continue;
245
245
  }
246
- if (D = t(j), !D) {
247
- c = x + (c.length > 0 ? " " + c : c);
246
+ if (M = t(j), !M) {
247
+ d = w + (d.length > 0 ? " " + d : d);
248
248
  continue;
249
249
  }
250
- k = !1;
250
+ v = !1;
251
251
  }
252
- const F = w.length === 0 ? "" : w.length === 1 ? w[0] : s(w).join(":"), M = y ? F + xe : F, L = M + D;
252
+ const F = y.length === 0 ? "" : y.length === 1 ? y[0] : s(y).join(":"), R = k ? F + xe : F, L = R + M;
253
253
  if (a.indexOf(L) > -1)
254
254
  continue;
255
255
  a.push(L);
256
- const N = n(D, k);
256
+ const N = n(M, v);
257
257
  for (let C = 0; C < N.length; ++C) {
258
- const E = N[C];
259
- a.push(M + E);
258
+ const D = N[C];
259
+ a.push(R + D);
260
260
  }
261
- c = x + (c.length > 0 ? " " + c : c);
261
+ d = w + (d.length > 0 ? " " + d : d);
262
262
  }
263
- return c;
263
+ return d;
264
264
  }, gt = (...e) => {
265
265
  let o = 0, r, t, n = "";
266
266
  for (; o < e.length; )
@@ -275,33 +275,33 @@ const Je = (e, o) => {
275
275
  return r;
276
276
  }, bt = (e, ...o) => {
277
277
  let r, t, n, s;
278
- const a = (c) => {
279
- const h = o.reduce((x, S) => S(x), e());
280
- return r = ut(h), t = r.cache.get, n = r.cache.set, s = p, p(c);
281
- }, p = (c) => {
282
- const h = t(c);
283
- if (h)
284
- return h;
285
- const x = pt(c, r);
286
- return n(c, x), x;
278
+ const a = (d) => {
279
+ const x = o.reduce((w, S) => S(w), e());
280
+ return r = ut(x), t = r.cache.get, n = r.cache.set, s = u, u(d);
281
+ }, u = (d) => {
282
+ const x = t(d);
283
+ if (x)
284
+ return x;
285
+ const w = pt(d, r);
286
+ return n(d, w), w;
287
287
  };
288
- return s = a, (...c) => s(gt(...c));
288
+ return s = a, (...d) => s(gt(...d));
289
289
  }, ht = [], A = (e) => {
290
290
  const o = (r) => r[e] || ht;
291
291
  return o.isThemeGetter = !0, o;
292
- }, Oe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Te = /^\((?:(\w[\w-]*):)?(.+)\)$/i, xt = /^\d+\/\d+$/, wt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, yt = /\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$/, kt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, vt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ct = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Z = (e) => xt.test(e), b = (e) => !!e && !Number.isNaN(Number(e)), q = (e) => !!e && Number.isInteger(Number(e)), fe = (e) => e.endsWith("%") && b(e.slice(0, -1)), B = (e) => wt.test(e), Pt = () => !0, zt = (e) => (
292
+ }, Oe = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Te = /^\((?:(\w[\w-]*):)?(.+)\)$/i, xt = /^\d+\/\d+$/, wt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, yt = /\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$/, kt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, vt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ct = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, te = (e) => xt.test(e), g = (e) => !!e && !Number.isNaN(Number(e)), J = (e) => !!e && Number.isInteger(Number(e)), fe = (e) => e.endsWith("%") && g(e.slice(0, -1)), K = (e) => wt.test(e), Pt = () => !0, zt = (e) => (
293
293
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
294
294
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
295
295
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
296
296
  yt.test(e) && !kt.test(e)
297
- ), Ge = () => !1, Nt = (e) => vt.test(e), At = (e) => Ct.test(e), St = (e) => !i(e) && !l(e), It = (e) => ee(e, _e, Ge), i = (e) => Oe.test(e), X = (e) => ee(e, Fe, zt), pe = (e) => ee(e, Ot, b), Ne = (e) => ee(e, je, Ge), Rt = (e) => ee(e, Le, At), ce = (e) => ee(e, Ve, Nt), l = (e) => Te.test(e), ne = (e) => te(e, Fe), Mt = (e) => te(e, Tt), Ae = (e) => te(e, je), Dt = (e) => te(e, _e), Et = (e) => te(e, Le), de = (e) => te(e, Ve, !0), ee = (e, o, r) => {
297
+ ), Ge = () => !1, Nt = (e) => vt.test(e), At = (e) => Ct.test(e), St = (e) => !i(e) && !l(e), It = (e) => re(e, _e, Ge), i = (e) => Oe.test(e), Q = (e) => re(e, Fe, zt), pe = (e) => re(e, Ot, g), Ne = (e) => re(e, je, Ge), Rt = (e) => re(e, Le, At), ce = (e) => re(e, Ve, Nt), l = (e) => Te.test(e), ne = (e) => oe(e, Fe), Mt = (e) => oe(e, Tt), Ae = (e) => oe(e, je), Dt = (e) => oe(e, _e), Et = (e) => oe(e, Le), de = (e) => oe(e, Ve, !0), re = (e, o, r) => {
298
298
  const t = Oe.exec(e);
299
299
  return t ? t[1] ? o(t[1]) : r(t[2]) : !1;
300
- }, te = (e, o, r = !1) => {
300
+ }, oe = (e, o, r = !1) => {
301
301
  const t = Te.exec(e);
302
302
  return t ? t[1] ? o(t[1]) : r : !1;
303
303
  }, je = (e) => e === "position" || e === "percentage", Le = (e) => e === "image" || e === "url", _e = (e) => e === "length" || e === "size" || e === "bg-size", Fe = (e) => e === "length", Ot = (e) => e === "number", Tt = (e) => e === "family-name", Ve = (e) => e === "shadow", Gt = () => {
304
- const e = A("color"), o = A("font"), r = A("text"), t = A("font-weight"), n = A("tracking"), s = A("leading"), a = A("breakpoint"), p = A("container"), c = A("spacing"), h = A("radius"), x = A("shadow"), S = A("inset-shadow"), w = A("text-shadow"), y = A("drop-shadow"), j = A("blur"), z = A("perspective"), k = A("aspect"), D = A("ease"), F = A("animate"), M = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => [
304
+ const e = A("color"), o = A("font"), r = A("text"), t = A("font-weight"), n = A("tracking"), s = A("leading"), a = A("breakpoint"), u = A("container"), d = A("spacing"), x = A("radius"), w = A("shadow"), S = A("inset-shadow"), y = A("text-shadow"), k = A("drop-shadow"), j = A("blur"), z = A("perspective"), v = A("aspect"), M = A("ease"), F = A("animate"), R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], L = () => [
305
305
  "center",
306
306
  "top",
307
307
  "bottom",
@@ -319,51 +319,51 @@ const Je = (e, o) => {
319
319
  "bottom-left",
320
320
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
321
321
  "left-bottom"
322
- ], N = () => [...L(), l, i], C = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], m = () => [l, i, c], V = () => [Z, "full", "auto", ...m()], J = () => [q, "none", "subgrid", l, i], H = () => ["auto", {
323
- span: ["full", q, l, i]
324
- }, q, l, i], I = () => [q, "auto", l, i], U = () => ["auto", "min", "max", "fr", l, i], re = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], u = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], f = () => ["auto", ...m()], v = () => [Z, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...m()], d = () => [e, l, i], O = () => [...L(), Ae, Ne, {
322
+ ], N = () => [...L(), l, i], C = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], m = () => [l, i, d], V = () => [te, "full", "auto", ...m()], Z = () => [J, "none", "subgrid", l, i], ee = () => ["auto", {
323
+ span: ["full", J, l, i]
324
+ }, J, l, i], Y = () => [J, "auto", l, i], E = () => ["auto", "min", "max", "fr", l, i], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], f = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], h = () => ["auto", ...m()], b = () => [te, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...m()], c = () => [e, l, i], O = () => [...L(), Ae, Ne, {
325
325
  position: [l, i]
326
- }], W = () => ["no-repeat", {
326
+ }], U = () => ["no-repeat", {
327
327
  repeat: ["", "x", "y", "space", "round"]
328
- }], Q = () => ["auto", "cover", "contain", Dt, It, {
328
+ }], B = () => ["auto", "cover", "contain", Dt, It, {
329
329
  size: [l, i]
330
- }], oe = () => [fe, ne, X], _ = () => [
330
+ }], H = () => [fe, ne, Q], _ = () => [
331
331
  // Deprecated since Tailwind CSS v4.0.0
332
332
  "",
333
333
  "none",
334
334
  "full",
335
- h,
335
+ x,
336
336
  l,
337
337
  i
338
- ], $ = () => ["", b, ne, X], se = () => ["solid", "dashed", "dotted", "double"], ye = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], R = () => [b, fe, Ae, Ne], ke = () => [
338
+ ], $ = () => ["", g, ne, Q], se = () => ["solid", "dashed", "dotted", "double"], ye = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], I = () => [g, fe, Ae, Ne], ke = () => [
339
339
  // Deprecated since Tailwind CSS v4.0.0
340
340
  "",
341
341
  "none",
342
342
  j,
343
343
  l,
344
344
  i
345
- ], ae = () => ["none", b, l, i], ie = () => ["none", b, l, i], ue = () => [b, l, i], le = () => [Z, "full", ...m()];
345
+ ], ae = () => ["none", g, l, i], ie = () => ["none", g, l, i], ue = () => [g, l, i], le = () => [te, "full", ...m()];
346
346
  return {
347
347
  cacheSize: 500,
348
348
  theme: {
349
349
  animate: ["spin", "ping", "pulse", "bounce"],
350
350
  aspect: ["video"],
351
- blur: [B],
352
- breakpoint: [B],
351
+ blur: [K],
352
+ breakpoint: [K],
353
353
  color: [Pt],
354
- container: [B],
355
- "drop-shadow": [B],
354
+ container: [K],
355
+ "drop-shadow": [K],
356
356
  ease: ["in", "out", "in-out"],
357
357
  font: [St],
358
358
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
359
- "inset-shadow": [B],
359
+ "inset-shadow": [K],
360
360
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
361
361
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
362
- radius: [B],
363
- shadow: [B],
364
- spacing: ["px", b],
365
- text: [B],
366
- "text-shadow": [B],
362
+ radius: [K],
363
+ shadow: [K],
364
+ spacing: ["px", g],
365
+ text: [K],
366
+ "text-shadow": [K],
367
367
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
368
368
  },
369
369
  classGroups: {
@@ -375,7 +375,7 @@ const Je = (e, o) => {
375
375
  * @see https://tailwindcss.com/docs/aspect-ratio
376
376
  */
377
377
  aspect: [{
378
- aspect: ["auto", "square", Z, i, l, k]
378
+ aspect: ["auto", "square", te, i, l, v]
379
379
  }],
380
380
  /**
381
381
  * Container
@@ -388,21 +388,21 @@ const Je = (e, o) => {
388
388
  * @see https://tailwindcss.com/docs/columns
389
389
  */
390
390
  columns: [{
391
- columns: [b, i, l, p]
391
+ columns: [g, i, l, u]
392
392
  }],
393
393
  /**
394
394
  * Break After
395
395
  * @see https://tailwindcss.com/docs/break-after
396
396
  */
397
397
  "break-after": [{
398
- "break-after": M()
398
+ "break-after": R()
399
399
  }],
400
400
  /**
401
401
  * Break Before
402
402
  * @see https://tailwindcss.com/docs/break-before
403
403
  */
404
404
  "break-before": [{
405
- "break-before": M()
405
+ "break-before": R()
406
406
  }],
407
407
  /**
408
408
  * Break Inside
@@ -494,21 +494,21 @@ const Je = (e, o) => {
494
494
  * @see https://tailwindcss.com/docs/overscroll-behavior
495
495
  */
496
496
  overscroll: [{
497
- overscroll: E()
497
+ overscroll: D()
498
498
  }],
499
499
  /**
500
500
  * Overscroll Behavior X
501
501
  * @see https://tailwindcss.com/docs/overscroll-behavior
502
502
  */
503
503
  "overscroll-x": [{
504
- "overscroll-x": E()
504
+ "overscroll-x": D()
505
505
  }],
506
506
  /**
507
507
  * Overscroll Behavior Y
508
508
  * @see https://tailwindcss.com/docs/overscroll-behavior
509
509
  */
510
510
  "overscroll-y": [{
511
- "overscroll-y": E()
511
+ "overscroll-y": D()
512
512
  }],
513
513
  /**
514
514
  * Position
@@ -588,7 +588,7 @@ const Je = (e, o) => {
588
588
  * @see https://tailwindcss.com/docs/z-index
589
589
  */
590
590
  z: [{
591
- z: [q, "auto", l, i]
591
+ z: [J, "auto", l, i]
592
592
  }],
593
593
  // ------------------------
594
594
  // --- Flexbox and Grid ---
@@ -598,7 +598,7 @@ const Je = (e, o) => {
598
598
  * @see https://tailwindcss.com/docs/flex-basis
599
599
  */
600
600
  basis: [{
601
- basis: [Z, "full", "auto", p, ...m()]
601
+ basis: [te, "full", "auto", u, ...m()]
602
602
  }],
603
603
  /**
604
604
  * Flex Direction
@@ -619,84 +619,84 @@ const Je = (e, o) => {
619
619
  * @see https://tailwindcss.com/docs/flex
620
620
  */
621
621
  flex: [{
622
- flex: [b, Z, "auto", "initial", "none", i]
622
+ flex: [g, te, "auto", "initial", "none", i]
623
623
  }],
624
624
  /**
625
625
  * Flex Grow
626
626
  * @see https://tailwindcss.com/docs/flex-grow
627
627
  */
628
628
  grow: [{
629
- grow: ["", b, l, i]
629
+ grow: ["", g, l, i]
630
630
  }],
631
631
  /**
632
632
  * Flex Shrink
633
633
  * @see https://tailwindcss.com/docs/flex-shrink
634
634
  */
635
635
  shrink: [{
636
- shrink: ["", b, l, i]
636
+ shrink: ["", g, l, i]
637
637
  }],
638
638
  /**
639
639
  * Order
640
640
  * @see https://tailwindcss.com/docs/order
641
641
  */
642
642
  order: [{
643
- order: [q, "first", "last", "none", l, i]
643
+ order: [J, "first", "last", "none", l, i]
644
644
  }],
645
645
  /**
646
646
  * Grid Template Columns
647
647
  * @see https://tailwindcss.com/docs/grid-template-columns
648
648
  */
649
649
  "grid-cols": [{
650
- "grid-cols": J()
650
+ "grid-cols": Z()
651
651
  }],
652
652
  /**
653
653
  * Grid Column Start / End
654
654
  * @see https://tailwindcss.com/docs/grid-column
655
655
  */
656
656
  "col-start-end": [{
657
- col: H()
657
+ col: ee()
658
658
  }],
659
659
  /**
660
660
  * Grid Column Start
661
661
  * @see https://tailwindcss.com/docs/grid-column
662
662
  */
663
663
  "col-start": [{
664
- "col-start": I()
664
+ "col-start": Y()
665
665
  }],
666
666
  /**
667
667
  * Grid Column End
668
668
  * @see https://tailwindcss.com/docs/grid-column
669
669
  */
670
670
  "col-end": [{
671
- "col-end": I()
671
+ "col-end": Y()
672
672
  }],
673
673
  /**
674
674
  * Grid Template Rows
675
675
  * @see https://tailwindcss.com/docs/grid-template-rows
676
676
  */
677
677
  "grid-rows": [{
678
- "grid-rows": J()
678
+ "grid-rows": Z()
679
679
  }],
680
680
  /**
681
681
  * Grid Row Start / End
682
682
  * @see https://tailwindcss.com/docs/grid-row
683
683
  */
684
684
  "row-start-end": [{
685
- row: H()
685
+ row: ee()
686
686
  }],
687
687
  /**
688
688
  * Grid Row Start
689
689
  * @see https://tailwindcss.com/docs/grid-row
690
690
  */
691
691
  "row-start": [{
692
- "row-start": I()
692
+ "row-start": Y()
693
693
  }],
694
694
  /**
695
695
  * Grid Row End
696
696
  * @see https://tailwindcss.com/docs/grid-row
697
697
  */
698
698
  "row-end": [{
699
- "row-end": I()
699
+ "row-end": Y()
700
700
  }],
701
701
  /**
702
702
  * Grid Auto Flow
@@ -710,14 +710,14 @@ const Je = (e, o) => {
710
710
  * @see https://tailwindcss.com/docs/grid-auto-columns
711
711
  */
712
712
  "auto-cols": [{
713
- "auto-cols": U()
713
+ "auto-cols": E()
714
714
  }],
715
715
  /**
716
716
  * Grid Auto Rows
717
717
  * @see https://tailwindcss.com/docs/grid-auto-rows
718
718
  */
719
719
  "auto-rows": [{
720
- "auto-rows": U()
720
+ "auto-rows": E()
721
721
  }],
722
722
  /**
723
723
  * Gap
@@ -745,35 +745,35 @@ const Je = (e, o) => {
745
745
  * @see https://tailwindcss.com/docs/justify-content
746
746
  */
747
747
  "justify-content": [{
748
- justify: [...re(), "normal"]
748
+ justify: [...W(), "normal"]
749
749
  }],
750
750
  /**
751
751
  * Justify Items
752
752
  * @see https://tailwindcss.com/docs/justify-items
753
753
  */
754
754
  "justify-items": [{
755
- "justify-items": [...u(), "normal"]
755
+ "justify-items": [...f(), "normal"]
756
756
  }],
757
757
  /**
758
758
  * Justify Self
759
759
  * @see https://tailwindcss.com/docs/justify-self
760
760
  */
761
761
  "justify-self": [{
762
- "justify-self": ["auto", ...u()]
762
+ "justify-self": ["auto", ...f()]
763
763
  }],
764
764
  /**
765
765
  * Align Content
766
766
  * @see https://tailwindcss.com/docs/align-content
767
767
  */
768
768
  "align-content": [{
769
- content: ["normal", ...re()]
769
+ content: ["normal", ...W()]
770
770
  }],
771
771
  /**
772
772
  * Align Items
773
773
  * @see https://tailwindcss.com/docs/align-items
774
774
  */
775
775
  "align-items": [{
776
- items: [...u(), {
776
+ items: [...f(), {
777
777
  baseline: ["", "last"]
778
778
  }]
779
779
  }],
@@ -782,7 +782,7 @@ const Je = (e, o) => {
782
782
  * @see https://tailwindcss.com/docs/align-self
783
783
  */
784
784
  "align-self": [{
785
- self: ["auto", ...u(), {
785
+ self: ["auto", ...f(), {
786
786
  baseline: ["", "last"]
787
787
  }]
788
788
  }],
@@ -791,21 +791,21 @@ const Je = (e, o) => {
791
791
  * @see https://tailwindcss.com/docs/place-content
792
792
  */
793
793
  "place-content": [{
794
- "place-content": re()
794
+ "place-content": W()
795
795
  }],
796
796
  /**
797
797
  * Place Items
798
798
  * @see https://tailwindcss.com/docs/place-items
799
799
  */
800
800
  "place-items": [{
801
- "place-items": [...u(), "baseline"]
801
+ "place-items": [...f(), "baseline"]
802
802
  }],
803
803
  /**
804
804
  * Place Self
805
805
  * @see https://tailwindcss.com/docs/place-self
806
806
  */
807
807
  "place-self": [{
808
- "place-self": ["auto", ...u()]
808
+ "place-self": ["auto", ...f()]
809
809
  }],
810
810
  // Spacing
811
811
  /**
@@ -876,63 +876,63 @@ const Je = (e, o) => {
876
876
  * @see https://tailwindcss.com/docs/margin
877
877
  */
878
878
  m: [{
879
- m: f()
879
+ m: h()
880
880
  }],
881
881
  /**
882
882
  * Margin X
883
883
  * @see https://tailwindcss.com/docs/margin
884
884
  */
885
885
  mx: [{
886
- mx: f()
886
+ mx: h()
887
887
  }],
888
888
  /**
889
889
  * Margin Y
890
890
  * @see https://tailwindcss.com/docs/margin
891
891
  */
892
892
  my: [{
893
- my: f()
893
+ my: h()
894
894
  }],
895
895
  /**
896
896
  * Margin Start
897
897
  * @see https://tailwindcss.com/docs/margin
898
898
  */
899
899
  ms: [{
900
- ms: f()
900
+ ms: h()
901
901
  }],
902
902
  /**
903
903
  * Margin End
904
904
  * @see https://tailwindcss.com/docs/margin
905
905
  */
906
906
  me: [{
907
- me: f()
907
+ me: h()
908
908
  }],
909
909
  /**
910
910
  * Margin Top
911
911
  * @see https://tailwindcss.com/docs/margin
912
912
  */
913
913
  mt: [{
914
- mt: f()
914
+ mt: h()
915
915
  }],
916
916
  /**
917
917
  * Margin Right
918
918
  * @see https://tailwindcss.com/docs/margin
919
919
  */
920
920
  mr: [{
921
- mr: f()
921
+ mr: h()
922
922
  }],
923
923
  /**
924
924
  * Margin Bottom
925
925
  * @see https://tailwindcss.com/docs/margin
926
926
  */
927
927
  mb: [{
928
- mb: f()
928
+ mb: h()
929
929
  }],
930
930
  /**
931
931
  * Margin Left
932
932
  * @see https://tailwindcss.com/docs/margin
933
933
  */
934
934
  ml: [{
935
- ml: f()
935
+ ml: h()
936
936
  }],
937
937
  /**
938
938
  * Space Between X
@@ -966,14 +966,14 @@ const Je = (e, o) => {
966
966
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
967
967
  */
968
968
  size: [{
969
- size: v()
969
+ size: b()
970
970
  }],
971
971
  /**
972
972
  * Width
973
973
  * @see https://tailwindcss.com/docs/width
974
974
  */
975
975
  w: [{
976
- w: [p, "screen", ...v()]
976
+ w: [u, "screen", ...b()]
977
977
  }],
978
978
  /**
979
979
  * Min-Width
@@ -981,11 +981,11 @@ const Je = (e, o) => {
981
981
  */
982
982
  "min-w": [{
983
983
  "min-w": [
984
- p,
984
+ u,
985
985
  "screen",
986
986
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
987
987
  "none",
988
- ...v()
988
+ ...b()
989
989
  ]
990
990
  }],
991
991
  /**
@@ -994,7 +994,7 @@ const Je = (e, o) => {
994
994
  */
995
995
  "max-w": [{
996
996
  "max-w": [
997
- p,
997
+ u,
998
998
  "screen",
999
999
  "none",
1000
1000
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
@@ -1003,7 +1003,7 @@ const Je = (e, o) => {
1003
1003
  {
1004
1004
  screen: [a]
1005
1005
  },
1006
- ...v()
1006
+ ...b()
1007
1007
  ]
1008
1008
  }],
1009
1009
  /**
@@ -1011,21 +1011,21 @@ const Je = (e, o) => {
1011
1011
  * @see https://tailwindcss.com/docs/height
1012
1012
  */
1013
1013
  h: [{
1014
- h: ["screen", "lh", ...v()]
1014
+ h: ["screen", "lh", ...b()]
1015
1015
  }],
1016
1016
  /**
1017
1017
  * Min-Height
1018
1018
  * @see https://tailwindcss.com/docs/min-height
1019
1019
  */
1020
1020
  "min-h": [{
1021
- "min-h": ["screen", "lh", "none", ...v()]
1021
+ "min-h": ["screen", "lh", "none", ...b()]
1022
1022
  }],
1023
1023
  /**
1024
1024
  * Max-Height
1025
1025
  * @see https://tailwindcss.com/docs/max-height
1026
1026
  */
1027
1027
  "max-h": [{
1028
- "max-h": ["screen", "lh", ...v()]
1028
+ "max-h": ["screen", "lh", ...b()]
1029
1029
  }],
1030
1030
  // ------------------
1031
1031
  // --- Typography ---
@@ -1035,7 +1035,7 @@ const Je = (e, o) => {
1035
1035
  * @see https://tailwindcss.com/docs/font-size
1036
1036
  */
1037
1037
  "font-size": [{
1038
- text: ["base", r, ne, X]
1038
+ text: ["base", r, ne, Q]
1039
1039
  }],
1040
1040
  /**
1041
1041
  * Font Smoothing
@@ -1110,7 +1110,7 @@ const Je = (e, o) => {
1110
1110
  * @see https://tailwindcss.com/docs/line-clamp
1111
1111
  */
1112
1112
  "line-clamp": [{
1113
- "line-clamp": [b, "none", l, pe]
1113
+ "line-clamp": [g, "none", l, pe]
1114
1114
  }],
1115
1115
  /**
1116
1116
  * Line Height
@@ -1157,14 +1157,14 @@ const Je = (e, o) => {
1157
1157
  * @see https://v3.tailwindcss.com/docs/placeholder-color
1158
1158
  */
1159
1159
  "placeholder-color": [{
1160
- placeholder: d()
1160
+ placeholder: c()
1161
1161
  }],
1162
1162
  /**
1163
1163
  * Text Color
1164
1164
  * @see https://tailwindcss.com/docs/text-color
1165
1165
  */
1166
1166
  "text-color": [{
1167
- text: d()
1167
+ text: c()
1168
1168
  }],
1169
1169
  /**
1170
1170
  * Text Decoration
@@ -1183,21 +1183,21 @@ const Je = (e, o) => {
1183
1183
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1184
1184
  */
1185
1185
  "text-decoration-thickness": [{
1186
- decoration: [b, "from-font", "auto", l, X]
1186
+ decoration: [g, "from-font", "auto", l, Q]
1187
1187
  }],
1188
1188
  /**
1189
1189
  * Text Decoration Color
1190
1190
  * @see https://tailwindcss.com/docs/text-decoration-color
1191
1191
  */
1192
1192
  "text-decoration-color": [{
1193
- decoration: d()
1193
+ decoration: c()
1194
1194
  }],
1195
1195
  /**
1196
1196
  * Text Underline Offset
1197
1197
  * @see https://tailwindcss.com/docs/text-underline-offset
1198
1198
  */
1199
1199
  "underline-offset": [{
1200
- "underline-offset": [b, "auto", l, i]
1200
+ "underline-offset": [g, "auto", l, i]
1201
1201
  }],
1202
1202
  /**
1203
1203
  * Text Transform
@@ -1301,14 +1301,14 @@ const Je = (e, o) => {
1301
1301
  * @see https://tailwindcss.com/docs/background-repeat
1302
1302
  */
1303
1303
  "bg-repeat": [{
1304
- bg: W()
1304
+ bg: U()
1305
1305
  }],
1306
1306
  /**
1307
1307
  * Background Size
1308
1308
  * @see https://tailwindcss.com/docs/background-size
1309
1309
  */
1310
1310
  "bg-size": [{
1311
- bg: Q()
1311
+ bg: B()
1312
1312
  }],
1313
1313
  /**
1314
1314
  * Background Image
@@ -1318,9 +1318,9 @@ const Je = (e, o) => {
1318
1318
  bg: ["none", {
1319
1319
  linear: [{
1320
1320
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1321
- }, q, l, i],
1321
+ }, J, l, i],
1322
1322
  radial: ["", l, i],
1323
- conic: [q, l, i]
1323
+ conic: [J, l, i]
1324
1324
  }, Et, Rt]
1325
1325
  }],
1326
1326
  /**
@@ -1328,49 +1328,49 @@ const Je = (e, o) => {
1328
1328
  * @see https://tailwindcss.com/docs/background-color
1329
1329
  */
1330
1330
  "bg-color": [{
1331
- bg: d()
1331
+ bg: c()
1332
1332
  }],
1333
1333
  /**
1334
1334
  * Gradient Color Stops From Position
1335
1335
  * @see https://tailwindcss.com/docs/gradient-color-stops
1336
1336
  */
1337
1337
  "gradient-from-pos": [{
1338
- from: oe()
1338
+ from: H()
1339
1339
  }],
1340
1340
  /**
1341
1341
  * Gradient Color Stops Via Position
1342
1342
  * @see https://tailwindcss.com/docs/gradient-color-stops
1343
1343
  */
1344
1344
  "gradient-via-pos": [{
1345
- via: oe()
1345
+ via: H()
1346
1346
  }],
1347
1347
  /**
1348
1348
  * Gradient Color Stops To Position
1349
1349
  * @see https://tailwindcss.com/docs/gradient-color-stops
1350
1350
  */
1351
1351
  "gradient-to-pos": [{
1352
- to: oe()
1352
+ to: H()
1353
1353
  }],
1354
1354
  /**
1355
1355
  * Gradient Color Stops From
1356
1356
  * @see https://tailwindcss.com/docs/gradient-color-stops
1357
1357
  */
1358
1358
  "gradient-from": [{
1359
- from: d()
1359
+ from: c()
1360
1360
  }],
1361
1361
  /**
1362
1362
  * Gradient Color Stops Via
1363
1363
  * @see https://tailwindcss.com/docs/gradient-color-stops
1364
1364
  */
1365
1365
  "gradient-via": [{
1366
- via: d()
1366
+ via: c()
1367
1367
  }],
1368
1368
  /**
1369
1369
  * Gradient Color Stops To
1370
1370
  * @see https://tailwindcss.com/docs/gradient-color-stops
1371
1371
  */
1372
1372
  "gradient-to": [{
1373
- to: d()
1373
+ to: c()
1374
1374
  }],
1375
1375
  // ---------------
1376
1376
  // --- Borders ---
@@ -1586,70 +1586,70 @@ const Je = (e, o) => {
1586
1586
  * @see https://tailwindcss.com/docs/border-color
1587
1587
  */
1588
1588
  "border-color": [{
1589
- border: d()
1589
+ border: c()
1590
1590
  }],
1591
1591
  /**
1592
1592
  * Border Color X
1593
1593
  * @see https://tailwindcss.com/docs/border-color
1594
1594
  */
1595
1595
  "border-color-x": [{
1596
- "border-x": d()
1596
+ "border-x": c()
1597
1597
  }],
1598
1598
  /**
1599
1599
  * Border Color Y
1600
1600
  * @see https://tailwindcss.com/docs/border-color
1601
1601
  */
1602
1602
  "border-color-y": [{
1603
- "border-y": d()
1603
+ "border-y": c()
1604
1604
  }],
1605
1605
  /**
1606
1606
  * Border Color S
1607
1607
  * @see https://tailwindcss.com/docs/border-color
1608
1608
  */
1609
1609
  "border-color-s": [{
1610
- "border-s": d()
1610
+ "border-s": c()
1611
1611
  }],
1612
1612
  /**
1613
1613
  * Border Color E
1614
1614
  * @see https://tailwindcss.com/docs/border-color
1615
1615
  */
1616
1616
  "border-color-e": [{
1617
- "border-e": d()
1617
+ "border-e": c()
1618
1618
  }],
1619
1619
  /**
1620
1620
  * Border Color Top
1621
1621
  * @see https://tailwindcss.com/docs/border-color
1622
1622
  */
1623
1623
  "border-color-t": [{
1624
- "border-t": d()
1624
+ "border-t": c()
1625
1625
  }],
1626
1626
  /**
1627
1627
  * Border Color Right
1628
1628
  * @see https://tailwindcss.com/docs/border-color
1629
1629
  */
1630
1630
  "border-color-r": [{
1631
- "border-r": d()
1631
+ "border-r": c()
1632
1632
  }],
1633
1633
  /**
1634
1634
  * Border Color Bottom
1635
1635
  * @see https://tailwindcss.com/docs/border-color
1636
1636
  */
1637
1637
  "border-color-b": [{
1638
- "border-b": d()
1638
+ "border-b": c()
1639
1639
  }],
1640
1640
  /**
1641
1641
  * Border Color Left
1642
1642
  * @see https://tailwindcss.com/docs/border-color
1643
1643
  */
1644
1644
  "border-color-l": [{
1645
- "border-l": d()
1645
+ "border-l": c()
1646
1646
  }],
1647
1647
  /**
1648
1648
  * Divide Color
1649
1649
  * @see https://tailwindcss.com/docs/divide-color
1650
1650
  */
1651
1651
  "divide-color": [{
1652
- divide: d()
1652
+ divide: c()
1653
1653
  }],
1654
1654
  /**
1655
1655
  * Outline Style
@@ -1663,21 +1663,21 @@ const Je = (e, o) => {
1663
1663
  * @see https://tailwindcss.com/docs/outline-offset
1664
1664
  */
1665
1665
  "outline-offset": [{
1666
- "outline-offset": [b, l, i]
1666
+ "outline-offset": [g, l, i]
1667
1667
  }],
1668
1668
  /**
1669
1669
  * Outline Width
1670
1670
  * @see https://tailwindcss.com/docs/outline-width
1671
1671
  */
1672
1672
  "outline-w": [{
1673
- outline: ["", b, ne, X]
1673
+ outline: ["", g, ne, Q]
1674
1674
  }],
1675
1675
  /**
1676
1676
  * Outline Color
1677
1677
  * @see https://tailwindcss.com/docs/outline-color
1678
1678
  */
1679
1679
  "outline-color": [{
1680
- outline: d()
1680
+ outline: c()
1681
1681
  }],
1682
1682
  // ---------------
1683
1683
  // --- Effects ---
@@ -1691,7 +1691,7 @@ const Je = (e, o) => {
1691
1691
  // Deprecated since Tailwind CSS v4.0.0
1692
1692
  "",
1693
1693
  "none",
1694
- x,
1694
+ w,
1695
1695
  de,
1696
1696
  ce
1697
1697
  ]
@@ -1701,7 +1701,7 @@ const Je = (e, o) => {
1701
1701
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
1702
1702
  */
1703
1703
  "shadow-color": [{
1704
- shadow: d()
1704
+ shadow: c()
1705
1705
  }],
1706
1706
  /**
1707
1707
  * Inset Box Shadow
@@ -1715,7 +1715,7 @@ const Je = (e, o) => {
1715
1715
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
1716
1716
  */
1717
1717
  "inset-shadow-color": [{
1718
- "inset-shadow": d()
1718
+ "inset-shadow": c()
1719
1719
  }],
1720
1720
  /**
1721
1721
  * Ring Width
@@ -1736,7 +1736,7 @@ const Je = (e, o) => {
1736
1736
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
1737
1737
  */
1738
1738
  "ring-color": [{
1739
- ring: d()
1739
+ ring: c()
1740
1740
  }],
1741
1741
  /**
1742
1742
  * Ring Offset Width
@@ -1745,7 +1745,7 @@ const Je = (e, o) => {
1745
1745
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1746
1746
  */
1747
1747
  "ring-offset-w": [{
1748
- "ring-offset": [b, X]
1748
+ "ring-offset": [g, Q]
1749
1749
  }],
1750
1750
  /**
1751
1751
  * Ring Offset Color
@@ -1754,7 +1754,7 @@ const Je = (e, o) => {
1754
1754
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1755
1755
  */
1756
1756
  "ring-offset-color": [{
1757
- "ring-offset": d()
1757
+ "ring-offset": c()
1758
1758
  }],
1759
1759
  /**
1760
1760
  * Inset Ring Width
@@ -1768,28 +1768,28 @@ const Je = (e, o) => {
1768
1768
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
1769
1769
  */
1770
1770
  "inset-ring-color": [{
1771
- "inset-ring": d()
1771
+ "inset-ring": c()
1772
1772
  }],
1773
1773
  /**
1774
1774
  * Text Shadow
1775
1775
  * @see https://tailwindcss.com/docs/text-shadow
1776
1776
  */
1777
1777
  "text-shadow": [{
1778
- "text-shadow": ["none", w, de, ce]
1778
+ "text-shadow": ["none", y, de, ce]
1779
1779
  }],
1780
1780
  /**
1781
1781
  * Text Shadow Color
1782
1782
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
1783
1783
  */
1784
1784
  "text-shadow-color": [{
1785
- "text-shadow": d()
1785
+ "text-shadow": c()
1786
1786
  }],
1787
1787
  /**
1788
1788
  * Opacity
1789
1789
  * @see https://tailwindcss.com/docs/opacity
1790
1790
  */
1791
1791
  opacity: [{
1792
- opacity: [b, l, i]
1792
+ opacity: [g, l, i]
1793
1793
  }],
1794
1794
  /**
1795
1795
  * Mix Blend Mode
@@ -1824,106 +1824,106 @@ const Je = (e, o) => {
1824
1824
  * @see https://tailwindcss.com/docs/mask-image
1825
1825
  */
1826
1826
  "mask-image-linear-pos": [{
1827
- "mask-linear": [b]
1827
+ "mask-linear": [g]
1828
1828
  }],
1829
1829
  "mask-image-linear-from-pos": [{
1830
- "mask-linear-from": R()
1830
+ "mask-linear-from": I()
1831
1831
  }],
1832
1832
  "mask-image-linear-to-pos": [{
1833
- "mask-linear-to": R()
1833
+ "mask-linear-to": I()
1834
1834
  }],
1835
1835
  "mask-image-linear-from-color": [{
1836
- "mask-linear-from": d()
1836
+ "mask-linear-from": c()
1837
1837
  }],
1838
1838
  "mask-image-linear-to-color": [{
1839
- "mask-linear-to": d()
1839
+ "mask-linear-to": c()
1840
1840
  }],
1841
1841
  "mask-image-t-from-pos": [{
1842
- "mask-t-from": R()
1842
+ "mask-t-from": I()
1843
1843
  }],
1844
1844
  "mask-image-t-to-pos": [{
1845
- "mask-t-to": R()
1845
+ "mask-t-to": I()
1846
1846
  }],
1847
1847
  "mask-image-t-from-color": [{
1848
- "mask-t-from": d()
1848
+ "mask-t-from": c()
1849
1849
  }],
1850
1850
  "mask-image-t-to-color": [{
1851
- "mask-t-to": d()
1851
+ "mask-t-to": c()
1852
1852
  }],
1853
1853
  "mask-image-r-from-pos": [{
1854
- "mask-r-from": R()
1854
+ "mask-r-from": I()
1855
1855
  }],
1856
1856
  "mask-image-r-to-pos": [{
1857
- "mask-r-to": R()
1857
+ "mask-r-to": I()
1858
1858
  }],
1859
1859
  "mask-image-r-from-color": [{
1860
- "mask-r-from": d()
1860
+ "mask-r-from": c()
1861
1861
  }],
1862
1862
  "mask-image-r-to-color": [{
1863
- "mask-r-to": d()
1863
+ "mask-r-to": c()
1864
1864
  }],
1865
1865
  "mask-image-b-from-pos": [{
1866
- "mask-b-from": R()
1866
+ "mask-b-from": I()
1867
1867
  }],
1868
1868
  "mask-image-b-to-pos": [{
1869
- "mask-b-to": R()
1869
+ "mask-b-to": I()
1870
1870
  }],
1871
1871
  "mask-image-b-from-color": [{
1872
- "mask-b-from": d()
1872
+ "mask-b-from": c()
1873
1873
  }],
1874
1874
  "mask-image-b-to-color": [{
1875
- "mask-b-to": d()
1875
+ "mask-b-to": c()
1876
1876
  }],
1877
1877
  "mask-image-l-from-pos": [{
1878
- "mask-l-from": R()
1878
+ "mask-l-from": I()
1879
1879
  }],
1880
1880
  "mask-image-l-to-pos": [{
1881
- "mask-l-to": R()
1881
+ "mask-l-to": I()
1882
1882
  }],
1883
1883
  "mask-image-l-from-color": [{
1884
- "mask-l-from": d()
1884
+ "mask-l-from": c()
1885
1885
  }],
1886
1886
  "mask-image-l-to-color": [{
1887
- "mask-l-to": d()
1887
+ "mask-l-to": c()
1888
1888
  }],
1889
1889
  "mask-image-x-from-pos": [{
1890
- "mask-x-from": R()
1890
+ "mask-x-from": I()
1891
1891
  }],
1892
1892
  "mask-image-x-to-pos": [{
1893
- "mask-x-to": R()
1893
+ "mask-x-to": I()
1894
1894
  }],
1895
1895
  "mask-image-x-from-color": [{
1896
- "mask-x-from": d()
1896
+ "mask-x-from": c()
1897
1897
  }],
1898
1898
  "mask-image-x-to-color": [{
1899
- "mask-x-to": d()
1899
+ "mask-x-to": c()
1900
1900
  }],
1901
1901
  "mask-image-y-from-pos": [{
1902
- "mask-y-from": R()
1902
+ "mask-y-from": I()
1903
1903
  }],
1904
1904
  "mask-image-y-to-pos": [{
1905
- "mask-y-to": R()
1905
+ "mask-y-to": I()
1906
1906
  }],
1907
1907
  "mask-image-y-from-color": [{
1908
- "mask-y-from": d()
1908
+ "mask-y-from": c()
1909
1909
  }],
1910
1910
  "mask-image-y-to-color": [{
1911
- "mask-y-to": d()
1911
+ "mask-y-to": c()
1912
1912
  }],
1913
1913
  "mask-image-radial": [{
1914
1914
  "mask-radial": [l, i]
1915
1915
  }],
1916
1916
  "mask-image-radial-from-pos": [{
1917
- "mask-radial-from": R()
1917
+ "mask-radial-from": I()
1918
1918
  }],
1919
1919
  "mask-image-radial-to-pos": [{
1920
- "mask-radial-to": R()
1920
+ "mask-radial-to": I()
1921
1921
  }],
1922
1922
  "mask-image-radial-from-color": [{
1923
- "mask-radial-from": d()
1923
+ "mask-radial-from": c()
1924
1924
  }],
1925
1925
  "mask-image-radial-to-color": [{
1926
- "mask-radial-to": d()
1926
+ "mask-radial-to": c()
1927
1927
  }],
1928
1928
  "mask-image-radial-shape": [{
1929
1929
  "mask-radial": ["circle", "ellipse"]
@@ -1938,19 +1938,19 @@ const Je = (e, o) => {
1938
1938
  "mask-radial-at": L()
1939
1939
  }],
1940
1940
  "mask-image-conic-pos": [{
1941
- "mask-conic": [b]
1941
+ "mask-conic": [g]
1942
1942
  }],
1943
1943
  "mask-image-conic-from-pos": [{
1944
- "mask-conic-from": R()
1944
+ "mask-conic-from": I()
1945
1945
  }],
1946
1946
  "mask-image-conic-to-pos": [{
1947
- "mask-conic-to": R()
1947
+ "mask-conic-to": I()
1948
1948
  }],
1949
1949
  "mask-image-conic-from-color": [{
1950
- "mask-conic-from": d()
1950
+ "mask-conic-from": c()
1951
1951
  }],
1952
1952
  "mask-image-conic-to-color": [{
1953
- "mask-conic-to": d()
1953
+ "mask-conic-to": c()
1954
1954
  }],
1955
1955
  /**
1956
1956
  * Mask Mode
@@ -1978,14 +1978,14 @@ const Je = (e, o) => {
1978
1978
  * @see https://tailwindcss.com/docs/mask-repeat
1979
1979
  */
1980
1980
  "mask-repeat": [{
1981
- mask: W()
1981
+ mask: U()
1982
1982
  }],
1983
1983
  /**
1984
1984
  * Mask Size
1985
1985
  * @see https://tailwindcss.com/docs/mask-size
1986
1986
  */
1987
1987
  "mask-size": [{
1988
- mask: Q()
1988
+ mask: B()
1989
1989
  }],
1990
1990
  /**
1991
1991
  * Mask Type
@@ -2029,14 +2029,14 @@ const Je = (e, o) => {
2029
2029
  * @see https://tailwindcss.com/docs/brightness
2030
2030
  */
2031
2031
  brightness: [{
2032
- brightness: [b, l, i]
2032
+ brightness: [g, l, i]
2033
2033
  }],
2034
2034
  /**
2035
2035
  * Contrast
2036
2036
  * @see https://tailwindcss.com/docs/contrast
2037
2037
  */
2038
2038
  contrast: [{
2039
- contrast: [b, l, i]
2039
+ contrast: [g, l, i]
2040
2040
  }],
2041
2041
  /**
2042
2042
  * Drop Shadow
@@ -2047,7 +2047,7 @@ const Je = (e, o) => {
2047
2047
  // Deprecated since Tailwind CSS v4.0.0
2048
2048
  "",
2049
2049
  "none",
2050
- y,
2050
+ k,
2051
2051
  de,
2052
2052
  ce
2053
2053
  ]
@@ -2057,42 +2057,42 @@ const Je = (e, o) => {
2057
2057
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
2058
2058
  */
2059
2059
  "drop-shadow-color": [{
2060
- "drop-shadow": d()
2060
+ "drop-shadow": c()
2061
2061
  }],
2062
2062
  /**
2063
2063
  * Grayscale
2064
2064
  * @see https://tailwindcss.com/docs/grayscale
2065
2065
  */
2066
2066
  grayscale: [{
2067
- grayscale: ["", b, l, i]
2067
+ grayscale: ["", g, l, i]
2068
2068
  }],
2069
2069
  /**
2070
2070
  * Hue Rotate
2071
2071
  * @see https://tailwindcss.com/docs/hue-rotate
2072
2072
  */
2073
2073
  "hue-rotate": [{
2074
- "hue-rotate": [b, l, i]
2074
+ "hue-rotate": [g, l, i]
2075
2075
  }],
2076
2076
  /**
2077
2077
  * Invert
2078
2078
  * @see https://tailwindcss.com/docs/invert
2079
2079
  */
2080
2080
  invert: [{
2081
- invert: ["", b, l, i]
2081
+ invert: ["", g, l, i]
2082
2082
  }],
2083
2083
  /**
2084
2084
  * Saturate
2085
2085
  * @see https://tailwindcss.com/docs/saturate
2086
2086
  */
2087
2087
  saturate: [{
2088
- saturate: [b, l, i]
2088
+ saturate: [g, l, i]
2089
2089
  }],
2090
2090
  /**
2091
2091
  * Sepia
2092
2092
  * @see https://tailwindcss.com/docs/sepia
2093
2093
  */
2094
2094
  sepia: [{
2095
- sepia: ["", b, l, i]
2095
+ sepia: ["", g, l, i]
2096
2096
  }],
2097
2097
  /**
2098
2098
  * Backdrop Filter
@@ -2119,56 +2119,56 @@ const Je = (e, o) => {
2119
2119
  * @see https://tailwindcss.com/docs/backdrop-brightness
2120
2120
  */
2121
2121
  "backdrop-brightness": [{
2122
- "backdrop-brightness": [b, l, i]
2122
+ "backdrop-brightness": [g, l, i]
2123
2123
  }],
2124
2124
  /**
2125
2125
  * Backdrop Contrast
2126
2126
  * @see https://tailwindcss.com/docs/backdrop-contrast
2127
2127
  */
2128
2128
  "backdrop-contrast": [{
2129
- "backdrop-contrast": [b, l, i]
2129
+ "backdrop-contrast": [g, l, i]
2130
2130
  }],
2131
2131
  /**
2132
2132
  * Backdrop Grayscale
2133
2133
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2134
2134
  */
2135
2135
  "backdrop-grayscale": [{
2136
- "backdrop-grayscale": ["", b, l, i]
2136
+ "backdrop-grayscale": ["", g, l, i]
2137
2137
  }],
2138
2138
  /**
2139
2139
  * Backdrop Hue Rotate
2140
2140
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2141
2141
  */
2142
2142
  "backdrop-hue-rotate": [{
2143
- "backdrop-hue-rotate": [b, l, i]
2143
+ "backdrop-hue-rotate": [g, l, i]
2144
2144
  }],
2145
2145
  /**
2146
2146
  * Backdrop Invert
2147
2147
  * @see https://tailwindcss.com/docs/backdrop-invert
2148
2148
  */
2149
2149
  "backdrop-invert": [{
2150
- "backdrop-invert": ["", b, l, i]
2150
+ "backdrop-invert": ["", g, l, i]
2151
2151
  }],
2152
2152
  /**
2153
2153
  * Backdrop Opacity
2154
2154
  * @see https://tailwindcss.com/docs/backdrop-opacity
2155
2155
  */
2156
2156
  "backdrop-opacity": [{
2157
- "backdrop-opacity": [b, l, i]
2157
+ "backdrop-opacity": [g, l, i]
2158
2158
  }],
2159
2159
  /**
2160
2160
  * Backdrop Saturate
2161
2161
  * @see https://tailwindcss.com/docs/backdrop-saturate
2162
2162
  */
2163
2163
  "backdrop-saturate": [{
2164
- "backdrop-saturate": [b, l, i]
2164
+ "backdrop-saturate": [g, l, i]
2165
2165
  }],
2166
2166
  /**
2167
2167
  * Backdrop Sepia
2168
2168
  * @see https://tailwindcss.com/docs/backdrop-sepia
2169
2169
  */
2170
2170
  "backdrop-sepia": [{
2171
- "backdrop-sepia": ["", b, l, i]
2171
+ "backdrop-sepia": ["", g, l, i]
2172
2172
  }],
2173
2173
  // --------------
2174
2174
  // --- Tables ---
@@ -2237,21 +2237,21 @@ const Je = (e, o) => {
2237
2237
  * @see https://tailwindcss.com/docs/transition-duration
2238
2238
  */
2239
2239
  duration: [{
2240
- duration: [b, "initial", l, i]
2240
+ duration: [g, "initial", l, i]
2241
2241
  }],
2242
2242
  /**
2243
2243
  * Transition Timing Function
2244
2244
  * @see https://tailwindcss.com/docs/transition-timing-function
2245
2245
  */
2246
2246
  ease: [{
2247
- ease: ["linear", "initial", D, l, i]
2247
+ ease: ["linear", "initial", M, l, i]
2248
2248
  }],
2249
2249
  /**
2250
2250
  * Transition Delay
2251
2251
  * @see https://tailwindcss.com/docs/transition-delay
2252
2252
  */
2253
2253
  delay: [{
2254
- delay: [b, l, i]
2254
+ delay: [g, l, i]
2255
2255
  }],
2256
2256
  /**
2257
2257
  * Animation
@@ -2428,7 +2428,7 @@ const Je = (e, o) => {
2428
2428
  * @see https://tailwindcss.com/docs/accent-color
2429
2429
  */
2430
2430
  accent: [{
2431
- accent: d()
2431
+ accent: c()
2432
2432
  }],
2433
2433
  /**
2434
2434
  * Appearance
@@ -2442,7 +2442,7 @@ const Je = (e, o) => {
2442
2442
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
2443
2443
  */
2444
2444
  "caret-color": [{
2445
- caret: d()
2445
+ caret: c()
2446
2446
  }],
2447
2447
  /**
2448
2448
  * Color Scheme
@@ -2688,21 +2688,21 @@ const Je = (e, o) => {
2688
2688
  * @see https://tailwindcss.com/docs/fill
2689
2689
  */
2690
2690
  fill: [{
2691
- fill: ["none", ...d()]
2691
+ fill: ["none", ...c()]
2692
2692
  }],
2693
2693
  /**
2694
2694
  * Stroke Width
2695
2695
  * @see https://tailwindcss.com/docs/stroke-width
2696
2696
  */
2697
2697
  "stroke-w": [{
2698
- stroke: [b, ne, X, pe]
2698
+ stroke: [g, ne, Q, pe]
2699
2699
  }],
2700
2700
  /**
2701
2701
  * Stroke
2702
2702
  * @see https://tailwindcss.com/docs/stroke
2703
2703
  */
2704
2704
  stroke: [{
2705
- stroke: ["none", ...d()]
2705
+ stroke: ["none", ...c()]
2706
2706
  }],
2707
2707
  // ---------------------
2708
2708
  // --- Accessibility ---
@@ -2788,61 +2788,59 @@ const Lt = {
2788
2788
  features: n,
2789
2789
  isSelected: s,
2790
2790
  onSelect: a,
2791
- topBadge: p,
2792
- discountBadge: c,
2793
- premiumCallout: h,
2794
- bottomNote: x,
2791
+ topBadge: u,
2792
+ discountBadge: d,
2793
+ premiumCallout: x,
2794
+ bottomNote: w,
2795
2795
  introPriceNote: S,
2796
- isBestValue: w = !1,
2797
- ctaButton: y,
2796
+ isBestValue: y = !1,
2797
+ ctaButton: k,
2798
2798
  className: j,
2799
2799
  children: z,
2800
- disabled: k = !1,
2801
- ariaLabel: D,
2800
+ disabled: v = !1,
2801
+ ariaLabel: M,
2802
2802
  onTrack: F,
2803
- trackingLabel: M,
2803
+ trackingLabel: R,
2804
2804
  componentName: L = "SubscriptionTile",
2805
2805
  hideSelectionIndicator: N = !1
2806
2806
  }) => {
2807
- const C = !!y, E = !N, m = s ? "bg-blue-600 text-white ring-4 ring-blue-600 ring-offset-4 ring-offset-white dark:ring-offset-gray-900 border-transparent" : "bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600 hover:shadow-md", V = () => {
2808
- !k && !C && (F?.({ action: "select", trackingLabel: M, componentName: L }), a());
2809
- }, J = (I) => {
2810
- !k && !C && (I.key === "Enter" || I.key === " ") && (I.preventDefault(), F?.({ action: "select", trackingLabel: M, componentName: L }), a());
2811
- }, H = (I) => {
2812
- I.stopPropagation(), F?.({ action: "cta_click", trackingLabel: M, componentName: L }), y?.onClick && y.onClick();
2813
- };
2807
+ const C = !!k, D = !N, m = s ? "bg-blue-600 text-white ring-4 ring-blue-600 ring-offset-4 ring-offset-white dark:ring-offset-gray-900 border-transparent" : "bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600 hover:shadow-md", V = () => {
2808
+ !v && !C && (F?.({ action: "select", trackingLabel: R, componentName: L }), a());
2809
+ }, Z = (E) => {
2810
+ !v && !C && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), F?.({ action: "select", trackingLabel: R, componentName: L }), a());
2811
+ }, ee = (E) => {
2812
+ E.stopPropagation(), F?.({ action: "cta_click", trackingLabel: R, componentName: L }), k?.onClick && k.onClick();
2813
+ }, Y = D ? C ? "mb-16" : "mb-10" : "";
2814
2814
  return /* @__PURE__ */ G(
2815
2815
  "div",
2816
2816
  {
2817
2817
  className: P(
2818
2818
  "relative rounded-2xl p-6 transition-all flex flex-col h-full",
2819
- // Add extra bottom padding for radio button or CTA button (not needed if hidden)
2820
- E && (C ? "pb-20" : "pb-14"),
2821
- k ? "opacity-50 cursor-not-allowed" : C ? "cursor-default" : "cursor-pointer",
2819
+ v ? "opacity-50 cursor-not-allowed" : C ? "cursor-default" : "cursor-pointer",
2822
2820
  m,
2823
2821
  j
2824
2822
  ),
2825
2823
  onClick: V,
2826
- onKeyDown: J,
2824
+ onKeyDown: Z,
2827
2825
  role: C ? "article" : "radio",
2828
2826
  "aria-checked": C ? void 0 : s,
2829
- "aria-label": D || `${o} - ${r}${t || ""}`,
2830
- "aria-disabled": k,
2831
- tabIndex: C || k ? -1 : 0,
2827
+ "aria-label": M || `${o} - ${r}${t || ""}`,
2828
+ "aria-disabled": v,
2829
+ tabIndex: C || v ? -1 : 0,
2832
2830
  children: [
2833
- p && /* @__PURE__ */ g("div", { className: "absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10", children: /* @__PURE__ */ g(
2831
+ u && /* @__PURE__ */ p("div", { className: "absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10", children: /* @__PURE__ */ p(
2834
2832
  "span",
2835
2833
  {
2836
2834
  className: P(
2837
- Lt[p.color],
2835
+ Lt[u.color],
2838
2836
  "text-white px-4 py-1.5 rounded-full text-sm font-semibold shadow-lg whitespace-nowrap"
2839
2837
  ),
2840
- children: p.text
2838
+ children: u.text
2841
2839
  }
2842
2840
  ) }),
2843
- /* @__PURE__ */ G("div", { className: "flex flex-col flex-grow", children: [
2844
- /* @__PURE__ */ G("div", { className: P("text-center mb-6", p && "mt-2"), children: [
2845
- /* @__PURE__ */ g(
2841
+ /* @__PURE__ */ G("div", { className: P("flex flex-col flex-grow", Y), children: [
2842
+ /* @__PURE__ */ G("div", { className: P("text-center mb-6", u && "mt-2"), children: [
2843
+ /* @__PURE__ */ p(
2846
2844
  "h3",
2847
2845
  {
2848
2846
  className: P(
@@ -2854,7 +2852,7 @@ const Lt = {
2854
2852
  }
2855
2853
  ),
2856
2854
  /* @__PURE__ */ G("div", { className: "mb-3", children: [
2857
- /* @__PURE__ */ g(
2855
+ /* @__PURE__ */ p(
2858
2856
  "span",
2859
2857
  {
2860
2858
  className: P(
@@ -2864,7 +2862,7 @@ const Lt = {
2864
2862
  children: r
2865
2863
  }
2866
2864
  ),
2867
- t && /* @__PURE__ */ g(
2865
+ t && /* @__PURE__ */ p(
2868
2866
  "span",
2869
2867
  {
2870
2868
  className: P(
@@ -2875,20 +2873,20 @@ const Lt = {
2875
2873
  }
2876
2874
  )
2877
2875
  ] }),
2878
- c && /* @__PURE__ */ g(
2876
+ d && /* @__PURE__ */ p(
2879
2877
  "div",
2880
2878
  {
2881
2879
  className: P(
2882
2880
  "inline-flex items-center px-2 py-1 rounded-full text-sm font-semibold",
2883
2881
  s ? "bg-blue-500 text-white" : "bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300"
2884
2882
  ),
2885
- children: c.text
2883
+ children: d.text
2886
2884
  }
2887
2885
  )
2888
2886
  ] }),
2889
2887
  z,
2890
- n.length > 0 && /* @__PURE__ */ g("div", { className: "space-y-3 mb-6 flex-grow", children: n.map((I, U) => /* @__PURE__ */ G("div", { className: "flex items-start", children: [
2891
- /* @__PURE__ */ g(
2888
+ n.length > 0 && /* @__PURE__ */ p("div", { className: "space-y-3 mb-6 flex-grow", children: n.map((E, W) => /* @__PURE__ */ G("div", { className: "flex items-start", children: [
2889
+ /* @__PURE__ */ p(
2892
2890
  "svg",
2893
2891
  {
2894
2892
  className: P(
@@ -2898,7 +2896,7 @@ const Lt = {
2898
2896
  fill: "none",
2899
2897
  stroke: "currentColor",
2900
2898
  viewBox: "0 0 24 24",
2901
- children: /* @__PURE__ */ g(
2899
+ children: /* @__PURE__ */ p(
2902
2900
  "path",
2903
2901
  {
2904
2902
  strokeLinecap: "round",
@@ -2909,18 +2907,18 @@ const Lt = {
2909
2907
  )
2910
2908
  }
2911
2909
  ),
2912
- /* @__PURE__ */ g(
2910
+ /* @__PURE__ */ p(
2913
2911
  "span",
2914
2912
  {
2915
2913
  className: P(
2916
2914
  "text-sm text-left",
2917
2915
  s ? "text-white" : "text-gray-700 dark:text-gray-300"
2918
2916
  ),
2919
- children: I.replace(/^✓\s*/, "")
2917
+ children: E.replace(/^✓\s*/, "")
2920
2918
  }
2921
2919
  )
2922
- ] }, U)) }),
2923
- h && /* @__PURE__ */ G(
2920
+ ] }, W)) }),
2921
+ x && /* @__PURE__ */ G(
2924
2922
  "div",
2925
2923
  {
2926
2924
  className: P(
@@ -2928,50 +2926,50 @@ const Lt = {
2928
2926
  s ? "bg-blue-500/30" : "bg-gradient-to-r from-purple-50 to-blue-50 dark:from-purple-900/20 dark:to-blue-900/20"
2929
2927
  ),
2930
2928
  children: [
2931
- /* @__PURE__ */ g("div", { className: "flex items-center mb-2", children: /* @__PURE__ */ g(
2929
+ /* @__PURE__ */ p("div", { className: "flex items-center mb-2", children: /* @__PURE__ */ p(
2932
2930
  "span",
2933
2931
  {
2934
2932
  className: P(
2935
2933
  "font-semibold text-sm",
2936
2934
  s ? "text-white" : "text-purple-600 dark:text-purple-400"
2937
2935
  ),
2938
- children: h.title
2936
+ children: x.title
2939
2937
  }
2940
2938
  ) }),
2941
- /* @__PURE__ */ g(
2939
+ /* @__PURE__ */ p(
2942
2940
  "ul",
2943
2941
  {
2944
2942
  className: P(
2945
2943
  "text-xs space-y-1",
2946
2944
  s ? "text-blue-100" : "text-gray-600 dark:text-gray-400"
2947
2945
  ),
2948
- children: h.features.map((I, U) => /* @__PURE__ */ G("li", { children: [
2946
+ children: x.features.map((E, W) => /* @__PURE__ */ G("li", { children: [
2949
2947
  "• ",
2950
- I
2951
- ] }, U))
2948
+ E
2949
+ ] }, W))
2952
2950
  }
2953
2951
  )
2954
2952
  ]
2955
2953
  }
2956
2954
  ),
2957
- x && /* @__PURE__ */ g(
2955
+ w && /* @__PURE__ */ p(
2958
2956
  "div",
2959
2957
  {
2960
2958
  className: P(
2961
2959
  "text-center text-sm font-medium mb-4",
2962
2960
  s ? "text-blue-100" : "text-blue-600 dark:text-blue-400"
2963
2961
  ),
2964
- children: x
2962
+ children: w
2965
2963
  }
2966
2964
  ),
2967
- S && /* @__PURE__ */ g(
2965
+ S && /* @__PURE__ */ p(
2968
2966
  "div",
2969
2967
  {
2970
2968
  className: P(
2971
2969
  "p-3 rounded-lg mt-auto",
2972
2970
  s ? "bg-blue-500/30" : "bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800"
2973
2971
  ),
2974
- children: /* @__PURE__ */ g(
2972
+ children: /* @__PURE__ */ p(
2975
2973
  "p",
2976
2974
  {
2977
2975
  className: P(
@@ -2984,38 +2982,38 @@ const Lt = {
2984
2982
  }
2985
2983
  )
2986
2984
  ] }),
2987
- E && C && /* @__PURE__ */ g("div", { className: "absolute bottom-4 left-0 right-0 px-6", children: y.href ? /* @__PURE__ */ g(
2985
+ D && C && /* @__PURE__ */ p("div", { className: "absolute bottom-4 left-0 right-0 px-6", children: k.href ? /* @__PURE__ */ p(
2988
2986
  "a",
2989
2987
  {
2990
- href: y.href,
2988
+ href: k.href,
2991
2989
  className: P(
2992
2990
  "block w-full py-3 font-semibold rounded-lg text-center transition-colors",
2993
2991
  s ? "bg-white text-blue-600 hover:bg-gray-100" : "bg-blue-600 text-white hover:bg-blue-700"
2994
2992
  ),
2995
- onClick: (I) => I.stopPropagation(),
2996
- children: y.label
2993
+ onClick: (E) => E.stopPropagation(),
2994
+ children: k.label
2997
2995
  }
2998
- ) : /* @__PURE__ */ g(
2996
+ ) : /* @__PURE__ */ p(
2999
2997
  "button",
3000
2998
  {
3001
- onClick: H,
3002
- disabled: k,
2999
+ onClick: ee,
3000
+ disabled: v,
3003
3001
  className: P(
3004
3002
  "w-full py-3 font-semibold rounded-lg transition-colors",
3005
3003
  s ? "bg-white text-blue-600 hover:bg-gray-100" : "bg-blue-600 text-white hover:bg-blue-700",
3006
- k && "opacity-50 cursor-not-allowed"
3004
+ v && "opacity-50 cursor-not-allowed"
3007
3005
  ),
3008
- children: y.label
3006
+ children: k.label
3009
3007
  }
3010
3008
  ) }),
3011
- E && !C && /* @__PURE__ */ g("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ g(
3009
+ D && !C && /* @__PURE__ */ p("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ p(
3012
3010
  "div",
3013
3011
  {
3014
3012
  className: P(
3015
3013
  "w-5 h-5 rounded-full border-2 flex items-center justify-center",
3016
3014
  s ? "border-white bg-white" : "border-gray-300 dark:border-gray-600"
3017
3015
  ),
3018
- children: s && /* @__PURE__ */ g("div", { className: "w-2 h-2 rounded-full bg-blue-600" })
3016
+ children: s && /* @__PURE__ */ p("div", { className: "w-2 h-2 rounded-full bg-blue-600" })
3019
3017
  }
3020
3018
  ) })
3021
3019
  ]
@@ -3029,83 +3027,83 @@ const Lt = {
3029
3027
  currentStatus: n,
3030
3028
  primaryAction: s,
3031
3029
  secondaryAction: a,
3032
- minTileWidth: p = 240,
3033
- className: c,
3034
- headerContent: h,
3035
- aboveProducts: x,
3030
+ minTileWidth: u = 240,
3031
+ className: d,
3032
+ headerContent: x,
3033
+ aboveProducts: w,
3036
3034
  footerContent: S,
3037
- currentStatusLabel: w = "Current Status",
3038
- freeTileConfig: y,
3035
+ currentStatusLabel: y = "Current Status",
3036
+ freeTileConfig: k,
3039
3037
  onTrack: j,
3040
3038
  trackingLabel: z,
3041
- componentName: k = "SubscriptionLayout"
3039
+ componentName: v = "SubscriptionLayout"
3042
3040
  }) => {
3043
- const D = t === "selection" && s, F = () => {
3044
- j?.({ action: "primary_action", trackingLabel: z, componentName: k }), s?.onClick();
3045
- }, M = () => {
3046
- j?.({ action: "secondary_action", trackingLabel: z, componentName: k }), a?.onClick();
3047
- }, L = t === "cta" && y, N = {
3041
+ const M = t === "selection" && s, F = () => {
3042
+ j?.({ action: "primary_action", trackingLabel: z, componentName: v }), s?.onClick();
3043
+ }, R = () => {
3044
+ j?.({ action: "secondary_action", trackingLabel: z, componentName: v }), a?.onClick();
3045
+ }, L = t === "cta" && k, N = {
3048
3046
  display: "grid",
3049
- gridTemplateColumns: `repeat(auto-fit, minmax(min(100%, ${p}px), 1fr))`,
3047
+ gridTemplateColumns: `repeat(auto-fit, minmax(min(100%, ${u}px), 1fr))`,
3050
3048
  gap: "1.5rem"
3051
3049
  };
3052
- return /* @__PURE__ */ g(Be, { className: c, children: /* @__PURE__ */ G(Ue, { className: "pt-6", children: [
3053
- h,
3054
- n && /* @__PURE__ */ G(We, { children: [
3055
- /* @__PURE__ */ g("h2", { className: P(he.heading.h3(), "mb-4"), children: w }),
3050
+ return /* @__PURE__ */ p(We, { className: d, children: /* @__PURE__ */ G(Ue, { className: "pt-6", children: [
3051
+ x,
3052
+ n && /* @__PURE__ */ G(Be, { children: [
3053
+ /* @__PURE__ */ p("h2", { className: P(he.heading.h3(), "mb-4"), children: y }),
3056
3054
  n.isActive ? /* @__PURE__ */ G("div", { className: "bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4 mb-6", children: [
3057
3055
  /* @__PURE__ */ G("div", { className: "flex items-center mb-2", children: [
3058
- /* @__PURE__ */ g("div", { className: "w-3 h-3 bg-green-500 rounded-full mr-3" }),
3059
- /* @__PURE__ */ g("span", { className: "font-semibold text-green-800 dark:text-green-300", children: n.activeContent?.title || "Active Subscription" })
3056
+ /* @__PURE__ */ p("div", { className: "w-3 h-3 bg-green-500 rounded-full mr-3" }),
3057
+ /* @__PURE__ */ p("span", { className: "font-semibold text-green-800 dark:text-green-300", children: n.activeContent?.title || "Active Subscription" })
3060
3058
  ] }),
3061
- n.activeContent?.fields && n.activeContent.fields.length > 0 && /* @__PURE__ */ g("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 mt-4", children: n.activeContent.fields.map(
3062
- (C, E) => /* @__PURE__ */ G("div", { children: [
3063
- /* @__PURE__ */ g("p", { className: "text-sm text-green-600 dark:text-green-400", children: C.label }),
3064
- /* @__PURE__ */ g("p", { className: "font-semibold text-green-800 dark:text-green-300", children: C.value })
3065
- ] }, E)
3059
+ n.activeContent?.fields && n.activeContent.fields.length > 0 && /* @__PURE__ */ p("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 mt-4", children: n.activeContent.fields.map(
3060
+ (C, D) => /* @__PURE__ */ G("div", { children: [
3061
+ /* @__PURE__ */ p("p", { className: "text-sm text-green-600 dark:text-green-400", children: C.label }),
3062
+ /* @__PURE__ */ p("p", { className: "font-semibold text-green-800 dark:text-green-300", children: C.value })
3063
+ ] }, D)
3066
3064
  ) })
3067
3065
  ] }) : /* @__PURE__ */ G("div", { className: "bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4 mb-6", children: [
3068
3066
  /* @__PURE__ */ G("div", { className: "flex items-center mb-2", children: [
3069
- /* @__PURE__ */ g("div", { className: "w-3 h-3 bg-yellow-500 rounded-full mr-3" }),
3070
- /* @__PURE__ */ g("span", { className: "font-semibold text-yellow-800 dark:text-yellow-300", children: n.inactiveContent?.title || "No Active Subscription" })
3067
+ /* @__PURE__ */ p("div", { className: "w-3 h-3 bg-yellow-500 rounded-full mr-3" }),
3068
+ /* @__PURE__ */ p("span", { className: "font-semibold text-yellow-800 dark:text-yellow-300", children: n.inactiveContent?.title || "No Active Subscription" })
3071
3069
  ] }),
3072
- n.inactiveContent?.message && /* @__PURE__ */ g("p", { className: "text-yellow-700 dark:text-yellow-400", children: n.inactiveContent.message })
3070
+ n.inactiveContent?.message && /* @__PURE__ */ p("p", { className: "text-yellow-700 dark:text-yellow-400", children: n.inactiveContent.message })
3073
3071
  ] })
3074
3072
  ] }),
3075
- /* @__PURE__ */ g("h2", { className: P(he.heading.h3(), "mb-4"), children: e }),
3076
- x,
3073
+ /* @__PURE__ */ p("h2", { className: P(he.heading.h3(), "mb-4"), children: e }),
3074
+ w,
3077
3075
  /* @__PURE__ */ G("div", { style: N, children: [
3078
- L && /* @__PURE__ */ g(
3076
+ L && /* @__PURE__ */ p(
3079
3077
  _t,
3080
3078
  {
3081
3079
  id: "free",
3082
- title: y.title,
3083
- price: y.price,
3084
- periodLabel: y.periodLabel,
3085
- features: y.features,
3080
+ title: k.title,
3081
+ price: k.price,
3082
+ periodLabel: k.periodLabel,
3083
+ features: k.features,
3086
3084
  isSelected: !1,
3087
3085
  onSelect: () => {
3088
3086
  },
3089
- topBadge: y.topBadge,
3090
- ctaButton: y.ctaButton
3087
+ topBadge: k.topBadge,
3088
+ ctaButton: k.ctaButton
3091
3089
  }
3092
3090
  ),
3093
3091
  o
3094
3092
  ] }),
3095
3093
  S,
3096
- r && /* @__PURE__ */ g("div", { className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4 mt-6", children: /* @__PURE__ */ g("p", { className: "text-red-600 dark:text-red-400", children: r }) }),
3097
- D && /* @__PURE__ */ G("div", { className: "flex flex-col sm:flex-row gap-3 mt-6", children: [
3098
- a && /* @__PURE__ */ g(
3094
+ r && /* @__PURE__ */ p("div", { className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4 mt-6", children: /* @__PURE__ */ p("p", { className: "text-red-600 dark:text-red-400", children: r }) }),
3095
+ M && /* @__PURE__ */ G("div", { className: "flex flex-col sm:flex-row gap-3 mt-6", children: [
3096
+ a && /* @__PURE__ */ p(
3099
3097
  ve,
3100
3098
  {
3101
- onClick: M,
3099
+ onClick: R,
3102
3100
  disabled: a.disabled || a.loading,
3103
3101
  variant: "outline",
3104
3102
  className: "sm:flex-shrink-0",
3105
3103
  children: a.label
3106
3104
  }
3107
3105
  ),
3108
- /* @__PURE__ */ g(
3106
+ /* @__PURE__ */ p(
3109
3107
  ve,
3110
3108
  {
3111
3109
  onClick: F,
@@ -3130,7 +3128,7 @@ function Yt({
3130
3128
  md: "px-4 py-2 text-sm",
3131
3129
  lg: "px-6 py-3 text-base"
3132
3130
  };
3133
- return /* @__PURE__ */ g(
3131
+ return /* @__PURE__ */ p(
3134
3132
  "div",
3135
3133
  {
3136
3134
  className: P(
@@ -3139,25 +3137,25 @@ function Yt({
3139
3137
  t
3140
3138
  ),
3141
3139
  role: "radiogroup",
3142
- children: e.map((p) => {
3143
- const c = o === p.value;
3144
- return /* @__PURE__ */ g(
3140
+ children: e.map((u) => {
3141
+ const d = o === u.value;
3142
+ return /* @__PURE__ */ p(
3145
3143
  "button",
3146
3144
  {
3147
3145
  type: "button",
3148
3146
  role: "radio",
3149
- "aria-checked": c,
3147
+ "aria-checked": d,
3150
3148
  disabled: n,
3151
- onClick: () => !n && r(p.value),
3149
+ onClick: () => !n && r(u.value),
3152
3150
  className: P(
3153
3151
  a[s],
3154
3152
  "font-medium rounded-md transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
3155
- c ? "bg-white dark:bg-gray-700 text-gray-900 dark:text-white shadow-sm" : "text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white",
3153
+ d ? "bg-white dark:bg-gray-700 text-gray-900 dark:text-white shadow-sm" : "text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white",
3156
3154
  n && "cursor-not-allowed"
3157
3155
  ),
3158
- children: p.label
3156
+ children: u.label
3159
3157
  },
3160
- p.value
3158
+ u.value
3161
3159
  );
3162
3160
  })
3163
3161
  }
@@ -3209,185 +3207,188 @@ const Se = (e, o) => {
3209
3207
  onPurchaseSuccess: t,
3210
3208
  children: n
3211
3209
  }) => {
3212
- const [s, a] = K([]), [p, c] = K(null), [h, x] = K(!1), [S, w] = K(null), [y, j] = K(!1), [z, k] = K(null), [D, F] = K(null), [M, L] = K(null), N = !e || e === "your_revenuecat_api_key_here", C = Y(() => {
3213
- a([]), c(null), F(null), L(null), w(null), j(!1), k(null), T = null;
3214
- }, []), E = Y(async () => {
3210
+ const [s, a] = q([]), [u, d] = q(null), [x, w] = q(!1), [S, y] = q(null), [k, j] = q(!1), [z, v] = q(null), [M, F] = q(null), [R, L] = q(null), N = !e || e === "your_revenuecat_api_key_here", C = X(() => {
3211
+ a([]), d(null), F(null), L(null), y(null), j(!1), v(null), T = null;
3212
+ }, []), D = X(async () => {
3215
3213
  if (T)
3216
3214
  try {
3217
- const u = await T.getOfferings();
3218
- u.current && F(u.current);
3219
- const f = u.all;
3220
- if (f) {
3221
- L(f);
3222
- const v = [];
3223
- for (const d of Object.keys(f)) {
3224
- const O = f[d];
3215
+ const f = await T.getOfferings();
3216
+ f.current && F(f.current);
3217
+ const h = f.all;
3218
+ if (h) {
3219
+ L(h);
3220
+ const b = [];
3221
+ for (const c of Object.keys(h)) {
3222
+ const O = h[c];
3225
3223
  if (O?.availablePackages) {
3226
- const W = O.metadata, Q = O.availablePackages.map(
3227
- (oe) => Se(oe, W)
3224
+ const U = O.metadata, B = O.availablePackages.map(
3225
+ (H) => Se(H, U)
3228
3226
  );
3229
- v.push(...Q);
3227
+ b.push(...B);
3230
3228
  }
3231
3229
  }
3232
- a(v);
3233
- } else if (u.current) {
3234
- const v = u.current.metadata, d = u.current.availablePackages.map(
3235
- (O) => Se(O, v)
3230
+ a(b);
3231
+ } else if (f.current) {
3232
+ const b = f.current.metadata, c = f.current.availablePackages.map(
3233
+ (O) => Se(O, b)
3236
3234
  );
3237
- a(d);
3235
+ a(c);
3238
3236
  }
3239
- } catch (u) {
3240
- const f = u instanceof Error ? u.message : "Failed to load offerings";
3241
- w(f), r?.(u instanceof Error ? u : new Error(f));
3237
+ } catch (f) {
3238
+ const h = f instanceof Error ? f.message : "Failed to load offerings";
3239
+ y(h), r?.(f instanceof Error ? f : new Error(h));
3242
3240
  }
3243
- }, [r]), m = Y(async () => {
3241
+ }, [r]), m = X(async () => {
3244
3242
  if (T)
3245
3243
  try {
3246
- const u = await T.getCustomerInfo(), f = be(u);
3247
- c(f.isActive ? f : null);
3248
- } catch (u) {
3249
- const f = u instanceof Error ? u.message : "Failed to load subscription status";
3250
- w(f), r?.(u instanceof Error ? u : new Error(f));
3244
+ const f = await T.getCustomerInfo(), h = be(f);
3245
+ d(h.isActive ? h : null);
3246
+ } catch (f) {
3247
+ const h = f instanceof Error ? f.message : "Failed to load subscription status";
3248
+ y(h), r?.(f instanceof Error ? f : new Error(h));
3251
3249
  }
3252
- }, [r]), V = Y(
3253
- async (u, f) => {
3254
- if (z && z !== u && C(), !(y && z === u))
3250
+ }, [r]), V = X(
3251
+ async (f, h) => {
3252
+ if (z && z !== f && C(), !(k && z === f))
3255
3253
  try {
3256
- if (x(!0), w(null), N)
3254
+ if (w(!0), y(null), N)
3257
3255
  console.warn(
3258
3256
  "[SubscriptionProvider] RevenueCat API key not configured"
3259
- ), a([]), c(null);
3257
+ ), a([]), d(null);
3260
3258
  else {
3261
- const v = await Ft(), d = {
3259
+ const b = await Ft(), c = {
3262
3260
  apiKey: e,
3263
- appUserId: u
3261
+ appUserId: f
3264
3262
  };
3265
- T = v.Purchases.configure(d);
3266
- const O = f || o;
3263
+ T = b.Purchases.configure(c);
3264
+ const O = h || o;
3267
3265
  if (O && T)
3268
3266
  try {
3269
3267
  await T.setAttributes({ email: O });
3270
3268
  } catch {
3271
3269
  }
3272
- await Promise.all([E(), m()]);
3270
+ await Promise.all([D(), m()]);
3273
3271
  }
3274
- k(u), j(!0);
3275
- } catch (v) {
3276
- const d = v instanceof Error ? v.message : "Failed to initialize";
3277
- w(d), c(null), a([]), r?.(v instanceof Error ? v : new Error(d));
3272
+ v(f), j(!0);
3273
+ } catch (b) {
3274
+ const c = b instanceof Error ? b.message : "Failed to initialize";
3275
+ y(c), d(null), a([]), r?.(b instanceof Error ? b : new Error(c));
3278
3276
  } finally {
3279
- x(!1);
3277
+ w(!1);
3280
3278
  }
3281
3279
  },
3282
3280
  [
3283
3281
  z,
3284
- y,
3282
+ k,
3285
3283
  N,
3286
3284
  e,
3287
3285
  o,
3288
- E,
3286
+ D,
3289
3287
  m,
3290
3288
  r,
3291
3289
  C
3292
3290
  ]
3293
- ), J = Y(
3294
- async (u) => {
3291
+ ), Z = X(
3292
+ async (f, h) => {
3295
3293
  try {
3296
- if (x(!0), w(null), N) {
3297
- await new Promise((W) => setTimeout(W, 2e3));
3298
- const O = {
3294
+ if (w(!0), y(null), N) {
3295
+ await new Promise((B) => setTimeout(B, 2e3));
3296
+ const U = {
3299
3297
  isActive: !0,
3300
3298
  expirationDate: new Date(Date.now() + 365 * 24 * 60 * 60 * 1e3),
3301
3299
  purchaseDate: /* @__PURE__ */ new Date(),
3302
- productIdentifier: u,
3300
+ productIdentifier: f,
3303
3301
  willRenew: !0
3304
3302
  };
3305
- return c(O), t?.(u), !0;
3303
+ return d(U), t?.(f), !0;
3306
3304
  }
3307
- if (!T || !D && !M)
3305
+ if (!T || !M && !R)
3308
3306
  throw new Error("Subscription service not initialized");
3309
- let f;
3310
- if (M)
3311
- for (const O of Object.keys(M)) {
3312
- const W = M[O];
3313
- if (W?.availablePackages && (f = W.availablePackages.find(
3314
- (Q) => Q.identifier === u
3315
- ), f))
3307
+ let b;
3308
+ if (R)
3309
+ for (const U of Object.keys(R)) {
3310
+ const B = R[U];
3311
+ if (B?.availablePackages && (b = B.availablePackages.find(
3312
+ (H) => H.identifier === f
3313
+ ), b))
3316
3314
  break;
3317
3315
  }
3318
- else D && (f = D.availablePackages.find(
3319
- (W) => W.identifier === u
3316
+ else M && (b = M.availablePackages.find(
3317
+ (B) => B.identifier === f
3320
3318
  ));
3321
- if (!f)
3322
- throw new Error(`Package not found: ${u}`);
3323
- const v = await T.purchase({
3324
- rcPackage: f,
3319
+ if (!b)
3320
+ throw new Error(`Package not found: ${f}`);
3321
+ const c = await T.purchase({
3322
+ rcPackage: b,
3325
3323
  ...o ? { customerEmail: o } : {}
3326
- }), d = be(v.customerInfo);
3327
- return c(d.isActive ? d : null), d.isActive && t?.(u), d.isActive;
3328
- } catch (f) {
3329
- const v = f instanceof Error ? f.message : "Purchase failed";
3330
- return w(v), r?.(f instanceof Error ? f : new Error(v)), !1;
3324
+ }), O = be(c.customerInfo);
3325
+ return d(O.isActive ? O : null), O.isActive && t?.(f), O.isActive;
3326
+ } catch (b) {
3327
+ const c = b instanceof Error ? b.message : "Purchase failed";
3328
+ return y(c), r?.(b instanceof Error ? b : new Error(c)), !1;
3331
3329
  } finally {
3332
- x(!1);
3330
+ w(!1);
3333
3331
  }
3334
3332
  },
3335
3333
  [
3336
3334
  N,
3337
- D,
3338
3335
  M,
3336
+ R,
3339
3337
  o,
3340
3338
  t,
3341
3339
  r
3342
3340
  ]
3343
- ), H = Y(async () => {
3344
- try {
3345
- if (x(!0), w(null), N)
3346
- return await new Promise((v) => setTimeout(v, 1e3)), w("No previous purchases found"), !1;
3347
- if (!T)
3348
- throw new Error("Subscription service not initialized");
3349
- const u = await T.getCustomerInfo(), f = be(u);
3350
- return c(f.isActive ? f : null), f.isActive || w("No previous purchases found"), f.isActive;
3351
- } catch (u) {
3352
- const f = u instanceof Error ? u.message : "Restore failed";
3353
- return w(f), r?.(u instanceof Error ? u : new Error(f)), !1;
3354
- } finally {
3355
- x(!1);
3356
- }
3357
- }, [N, r]), I = Y(async () => {
3341
+ ), ee = X(
3342
+ async (f) => {
3343
+ try {
3344
+ if (w(!0), y(null), N)
3345
+ return await new Promise((c) => setTimeout(c, 1e3)), y("No previous purchases found"), !1;
3346
+ if (!T)
3347
+ throw new Error("Subscription service not initialized");
3348
+ const h = await T.getCustomerInfo(), b = be(h);
3349
+ return d(b.isActive ? b : null), b.isActive || y("No previous purchases found"), b.isActive;
3350
+ } catch (h) {
3351
+ const b = h instanceof Error ? h.message : "Restore failed";
3352
+ return y(b), r?.(h instanceof Error ? h : new Error(b)), !1;
3353
+ } finally {
3354
+ w(!1);
3355
+ }
3356
+ },
3357
+ [N, r]
3358
+ ), Y = X(async () => {
3358
3359
  if (!N)
3359
3360
  try {
3360
- w(null), await Promise.all([m(), E()]);
3361
- } catch (u) {
3362
- const f = u instanceof Error ? u.message : "Refresh failed";
3363
- w(f), r?.(u instanceof Error ? u : new Error(f));
3361
+ y(null), await Promise.all([m(), D()]);
3362
+ } catch (f) {
3363
+ const h = f instanceof Error ? f.message : "Refresh failed";
3364
+ y(h), r?.(f instanceof Error ? f : new Error(h));
3364
3365
  }
3365
- }, [N, m, E, r]), U = Y(() => {
3366
- w(null);
3366
+ }, [N, m, D, r]), E = X(() => {
3367
+ y(null);
3367
3368
  }, []);
3368
3369
  Ye(() => {
3369
- if (!y || N || !T) return;
3370
- const u = setInterval(
3370
+ if (!k || N || !T) return;
3371
+ const f = setInterval(
3371
3372
  () => {
3372
3373
  m().catch(() => {
3373
3374
  });
3374
3375
  },
3375
3376
  300 * 1e3
3376
3377
  );
3377
- return () => clearInterval(u);
3378
- }, [y, N, m]);
3379
- const re = {
3378
+ return () => clearInterval(f);
3379
+ }, [k, N, m]);
3380
+ const W = {
3380
3381
  products: s,
3381
- currentSubscription: p,
3382
- isLoading: h,
3382
+ currentSubscription: u,
3383
+ isLoading: x,
3383
3384
  error: S,
3384
3385
  initialize: V,
3385
- purchase: J,
3386
- restore: H,
3387
- refresh: I,
3388
- clearError: U
3386
+ purchase: Z,
3387
+ restore: ee,
3388
+ refresh: Y,
3389
+ clearError: E
3389
3390
  };
3390
- return /* @__PURE__ */ g($e.Provider, { value: re, children: n });
3391
+ return /* @__PURE__ */ p($e.Provider, { value: W, children: n });
3391
3392
  }, Xt = () => {
3392
3393
  const e = qe($e);
3393
3394
  if (!e)