@sudobility/subscription-components 1.0.14 → 1.0.19

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 p, Fragment as Be } from "react/jsx-runtime";
1
+ import { jsxs as D, jsx as p, Fragment as We } from "react/jsx-runtime";
2
2
  import { textVariants as he } from "@sudobility/design";
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";
3
+ import { Card as Be, CardContent as Ue, Button as ve } from "@sudobility/components";
4
+ import { createContext as Ke, useState as Y, useCallback as q, 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;
@@ -184,8 +184,8 @@ const Je = (e, o) => {
184
184
  */
185
185
  S.startsWith(xe) && (y = S.slice(1), k = !0)
186
186
  );
187
- const j = x && x > d ? x - d : void 0;
188
- return ze(s, k, y, j);
187
+ const G = x && x > d ? x - d : void 0;
188
+ return ze(s, k, y, G);
189
189
  };
190
190
  if (o) {
191
191
  const n = o + Pe, s = t;
@@ -230,33 +230,33 @@ const Je = (e, o) => {
230
230
  isExternal: S,
231
231
  modifiers: y,
232
232
  hasImportantModifier: k,
233
- baseClassName: j,
233
+ baseClassName: G,
234
234
  maybePostfixModifierPosition: z
235
235
  } = r(w);
236
236
  if (S) {
237
237
  d = w + (d.length > 0 ? " " + d : d);
238
238
  continue;
239
239
  }
240
- let v = !!z, M = t(v ? j.substring(0, z) : j);
241
- if (!M) {
240
+ let v = !!z, E = t(v ? G.substring(0, z) : G);
241
+ if (!E) {
242
242
  if (!v) {
243
243
  d = w + (d.length > 0 ? " " + d : d);
244
244
  continue;
245
245
  }
246
- if (M = t(j), !M) {
246
+ if (E = t(G), !E) {
247
247
  d = w + (d.length > 0 ? " " + d : d);
248
248
  continue;
249
249
  }
250
250
  v = !1;
251
251
  }
252
- const F = y.length === 0 ? "" : y.length === 1 ? y[0] : s(y).join(":"), R = k ? F + xe : F, L = R + M;
253
- if (a.indexOf(L) > -1)
252
+ const F = y.length === 0 ? "" : y.length === 1 ? y[0] : s(y).join(":"), M = k ? F + xe : F, j = M + E;
253
+ if (a.indexOf(j) > -1)
254
254
  continue;
255
- a.push(L);
256
- const N = n(M, v);
255
+ a.push(j);
256
+ const N = n(E, v);
257
257
  for (let C = 0; C < N.length; ++C) {
258
- const D = N[C];
259
- a.push(R + D);
258
+ const L = N[C];
259
+ a.push(M + L);
260
260
  }
261
261
  d = w + (d.length > 0 ? " " + d : d);
262
262
  }
@@ -289,19 +289,19 @@ const Je = (e, o) => {
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)\(.+\)$/, 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) => (
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)\(.+\)$/, ee = (e) => xt.test(e), g = (e) => !!e && !Number.isNaN(Number(e)), X = (e) => !!e && Number.isInteger(Number(e)), fe = (e) => e.endsWith("%") && g(e.slice(0, -1)), U = (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) => 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) => {
297
+ ), Ge = () => !1, Nt = (e) => vt.test(e), At = (e) => Ct.test(e), St = (e) => !i(e) && !l(e), It = (e) => te(e, _e, Ge), i = (e) => Oe.test(e), H = (e) => te(e, Fe, zt), pe = (e) => te(e, Ot, g), Ne = (e) => te(e, je, Ge), Rt = (e) => te(e, Le, At), ce = (e) => te(e, Ve, Nt), l = (e) => Te.test(e), ne = (e) => re(e, Fe), Mt = (e) => re(e, Tt), Ae = (e) => re(e, je), Dt = (e) => re(e, _e), Et = (e) => re(e, Le), de = (e) => re(e, Ve, !0), te = (e, o, r) => {
298
298
  const t = Oe.exec(e);
299
299
  return t ? t[1] ? o(t[1]) : r(t[2]) : !1;
300
- }, oe = (e, o, r = !1) => {
300
+ }, re = (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"), 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 = () => [
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"), G = A("blur"), z = A("perspective"), v = A("aspect"), E = A("ease"), F = A("animate"), M = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [
305
305
  "center",
306
306
  "top",
307
307
  "bottom",
@@ -319,15 +319,15 @@ 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"], 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, {
322
+ ], N = () => [...j(), l, i], C = () => ["auto", "hidden", "clip", "visible", "scroll"], L = () => ["auto", "contain", "none"], m = () => [l, i, d], V = () => [ee, "full", "auto", ...m()], Q = () => [X, "none", "subgrid", l, i], Z = () => ["auto", {
323
+ span: ["full", X, l, i]
324
+ }, X, l, i], I = () => [X, "auto", l, i], K = () => ["auto", "min", "max", "fr", l, i], oe = () => ["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 = () => [ee, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...m()], c = () => [e, l, i], O = () => [...j(), Ae, Ne, {
325
325
  position: [l, i]
326
- }], U = () => ["no-repeat", {
326
+ }], B = () => ["no-repeat", {
327
327
  repeat: ["", "x", "y", "space", "round"]
328
- }], B = () => ["auto", "cover", "contain", Dt, It, {
328
+ }], W = () => ["auto", "cover", "contain", Dt, It, {
329
329
  size: [l, i]
330
- }], H = () => [fe, ne, Q], _ = () => [
330
+ }], J = () => [fe, ne, H], _ = () => [
331
331
  // Deprecated since Tailwind CSS v4.0.0
332
332
  "",
333
333
  "none",
@@ -335,35 +335,35 @@ const Je = (e, o) => {
335
335
  x,
336
336
  l,
337
337
  i
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 = () => [
338
+ ], $ = () => ["", g, ne, H], 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 = () => [g, fe, Ae, Ne], ke = () => [
339
339
  // Deprecated since Tailwind CSS v4.0.0
340
340
  "",
341
341
  "none",
342
- j,
342
+ G,
343
343
  l,
344
344
  i
345
- ], ae = () => ["none", g, l, i], ie = () => ["none", g, l, i], ue = () => [g, l, i], le = () => [te, "full", ...m()];
345
+ ], ae = () => ["none", g, l, i], ie = () => ["none", g, l, i], ue = () => [g, l, i], le = () => [ee, "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: [K],
352
- breakpoint: [K],
351
+ blur: [U],
352
+ breakpoint: [U],
353
353
  color: [Pt],
354
- container: [K],
355
- "drop-shadow": [K],
354
+ container: [U],
355
+ "drop-shadow": [U],
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": [K],
359
+ "inset-shadow": [U],
360
360
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
361
361
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
362
- radius: [K],
363
- shadow: [K],
362
+ radius: [U],
363
+ shadow: [U],
364
364
  spacing: ["px", g],
365
- text: [K],
366
- "text-shadow": [K],
365
+ text: [U],
366
+ "text-shadow": [U],
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", te, i, l, v]
378
+ aspect: ["auto", "square", ee, i, l, v]
379
379
  }],
380
380
  /**
381
381
  * Container
@@ -395,14 +395,14 @@ const Je = (e, o) => {
395
395
  * @see https://tailwindcss.com/docs/break-after
396
396
  */
397
397
  "break-after": [{
398
- "break-after": R()
398
+ "break-after": M()
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": R()
405
+ "break-before": M()
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: D()
497
+ overscroll: L()
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": D()
504
+ "overscroll-x": L()
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": D()
511
+ "overscroll-y": L()
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: [J, "auto", l, i]
591
+ z: [X, "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: [te, "full", "auto", u, ...m()]
601
+ basis: [ee, "full", "auto", u, ...m()]
602
602
  }],
603
603
  /**
604
604
  * Flex Direction
@@ -619,7 +619,7 @@ const Je = (e, o) => {
619
619
  * @see https://tailwindcss.com/docs/flex
620
620
  */
621
621
  flex: [{
622
- flex: [g, te, "auto", "initial", "none", i]
622
+ flex: [g, ee, "auto", "initial", "none", i]
623
623
  }],
624
624
  /**
625
625
  * Flex Grow
@@ -640,63 +640,63 @@ const Je = (e, o) => {
640
640
  * @see https://tailwindcss.com/docs/order
641
641
  */
642
642
  order: [{
643
- order: [J, "first", "last", "none", l, i]
643
+ order: [X, "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": Z()
650
+ "grid-cols": Q()
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: ee()
657
+ col: Z()
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": Y()
664
+ "col-start": I()
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": Y()
671
+ "col-end": I()
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": Z()
678
+ "grid-rows": Q()
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: ee()
685
+ row: Z()
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": Y()
692
+ "row-start": I()
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": Y()
699
+ "row-end": I()
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": E()
713
+ "auto-cols": K()
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": E()
720
+ "auto-rows": K()
721
721
  }],
722
722
  /**
723
723
  * Gap
@@ -745,7 +745,7 @@ const Je = (e, o) => {
745
745
  * @see https://tailwindcss.com/docs/justify-content
746
746
  */
747
747
  "justify-content": [{
748
- justify: [...W(), "normal"]
748
+ justify: [...oe(), "normal"]
749
749
  }],
750
750
  /**
751
751
  * Justify Items
@@ -766,7 +766,7 @@ const Je = (e, o) => {
766
766
  * @see https://tailwindcss.com/docs/align-content
767
767
  */
768
768
  "align-content": [{
769
- content: ["normal", ...W()]
769
+ content: ["normal", ...oe()]
770
770
  }],
771
771
  /**
772
772
  * Align Items
@@ -791,7 +791,7 @@ const Je = (e, o) => {
791
791
  * @see https://tailwindcss.com/docs/place-content
792
792
  */
793
793
  "place-content": [{
794
- "place-content": W()
794
+ "place-content": oe()
795
795
  }],
796
796
  /**
797
797
  * Place Items
@@ -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, Q]
1038
+ text: ["base", r, ne, H]
1039
1039
  }],
1040
1040
  /**
1041
1041
  * Font Smoothing
@@ -1183,7 +1183,7 @@ const Je = (e, o) => {
1183
1183
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1184
1184
  */
1185
1185
  "text-decoration-thickness": [{
1186
- decoration: [g, "from-font", "auto", l, Q]
1186
+ decoration: [g, "from-font", "auto", l, H]
1187
1187
  }],
1188
1188
  /**
1189
1189
  * Text Decoration Color
@@ -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: U()
1304
+ bg: B()
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: B()
1311
+ bg: W()
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
- }, J, l, i],
1321
+ }, X, l, i],
1322
1322
  radial: ["", l, i],
1323
- conic: [J, l, i]
1323
+ conic: [X, l, i]
1324
1324
  }, Et, Rt]
1325
1325
  }],
1326
1326
  /**
@@ -1335,21 +1335,21 @@ const Je = (e, o) => {
1335
1335
  * @see https://tailwindcss.com/docs/gradient-color-stops
1336
1336
  */
1337
1337
  "gradient-from-pos": [{
1338
- from: H()
1338
+ from: J()
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: H()
1345
+ via: J()
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: H()
1352
+ to: J()
1353
1353
  }],
1354
1354
  /**
1355
1355
  * Gradient Color Stops From
@@ -1670,7 +1670,7 @@ const Je = (e, o) => {
1670
1670
  * @see https://tailwindcss.com/docs/outline-width
1671
1671
  */
1672
1672
  "outline-w": [{
1673
- outline: ["", g, ne, Q]
1673
+ outline: ["", g, ne, H]
1674
1674
  }],
1675
1675
  /**
1676
1676
  * Outline Color
@@ -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": [g, Q]
1748
+ "ring-offset": [g, H]
1749
1749
  }],
1750
1750
  /**
1751
1751
  * Ring Offset Color
@@ -1827,10 +1827,10 @@ const Je = (e, o) => {
1827
1827
  "mask-linear": [g]
1828
1828
  }],
1829
1829
  "mask-image-linear-from-pos": [{
1830
- "mask-linear-from": I()
1830
+ "mask-linear-from": R()
1831
1831
  }],
1832
1832
  "mask-image-linear-to-pos": [{
1833
- "mask-linear-to": I()
1833
+ "mask-linear-to": R()
1834
1834
  }],
1835
1835
  "mask-image-linear-from-color": [{
1836
1836
  "mask-linear-from": c()
@@ -1839,10 +1839,10 @@ const Je = (e, o) => {
1839
1839
  "mask-linear-to": c()
1840
1840
  }],
1841
1841
  "mask-image-t-from-pos": [{
1842
- "mask-t-from": I()
1842
+ "mask-t-from": R()
1843
1843
  }],
1844
1844
  "mask-image-t-to-pos": [{
1845
- "mask-t-to": I()
1845
+ "mask-t-to": R()
1846
1846
  }],
1847
1847
  "mask-image-t-from-color": [{
1848
1848
  "mask-t-from": c()
@@ -1851,10 +1851,10 @@ const Je = (e, o) => {
1851
1851
  "mask-t-to": c()
1852
1852
  }],
1853
1853
  "mask-image-r-from-pos": [{
1854
- "mask-r-from": I()
1854
+ "mask-r-from": R()
1855
1855
  }],
1856
1856
  "mask-image-r-to-pos": [{
1857
- "mask-r-to": I()
1857
+ "mask-r-to": R()
1858
1858
  }],
1859
1859
  "mask-image-r-from-color": [{
1860
1860
  "mask-r-from": c()
@@ -1863,10 +1863,10 @@ const Je = (e, o) => {
1863
1863
  "mask-r-to": c()
1864
1864
  }],
1865
1865
  "mask-image-b-from-pos": [{
1866
- "mask-b-from": I()
1866
+ "mask-b-from": R()
1867
1867
  }],
1868
1868
  "mask-image-b-to-pos": [{
1869
- "mask-b-to": I()
1869
+ "mask-b-to": R()
1870
1870
  }],
1871
1871
  "mask-image-b-from-color": [{
1872
1872
  "mask-b-from": c()
@@ -1875,10 +1875,10 @@ const Je = (e, o) => {
1875
1875
  "mask-b-to": c()
1876
1876
  }],
1877
1877
  "mask-image-l-from-pos": [{
1878
- "mask-l-from": I()
1878
+ "mask-l-from": R()
1879
1879
  }],
1880
1880
  "mask-image-l-to-pos": [{
1881
- "mask-l-to": I()
1881
+ "mask-l-to": R()
1882
1882
  }],
1883
1883
  "mask-image-l-from-color": [{
1884
1884
  "mask-l-from": c()
@@ -1887,10 +1887,10 @@ const Je = (e, o) => {
1887
1887
  "mask-l-to": c()
1888
1888
  }],
1889
1889
  "mask-image-x-from-pos": [{
1890
- "mask-x-from": I()
1890
+ "mask-x-from": R()
1891
1891
  }],
1892
1892
  "mask-image-x-to-pos": [{
1893
- "mask-x-to": I()
1893
+ "mask-x-to": R()
1894
1894
  }],
1895
1895
  "mask-image-x-from-color": [{
1896
1896
  "mask-x-from": c()
@@ -1899,10 +1899,10 @@ const Je = (e, o) => {
1899
1899
  "mask-x-to": c()
1900
1900
  }],
1901
1901
  "mask-image-y-from-pos": [{
1902
- "mask-y-from": I()
1902
+ "mask-y-from": R()
1903
1903
  }],
1904
1904
  "mask-image-y-to-pos": [{
1905
- "mask-y-to": I()
1905
+ "mask-y-to": R()
1906
1906
  }],
1907
1907
  "mask-image-y-from-color": [{
1908
1908
  "mask-y-from": c()
@@ -1914,10 +1914,10 @@ const Je = (e, o) => {
1914
1914
  "mask-radial": [l, i]
1915
1915
  }],
1916
1916
  "mask-image-radial-from-pos": [{
1917
- "mask-radial-from": I()
1917
+ "mask-radial-from": R()
1918
1918
  }],
1919
1919
  "mask-image-radial-to-pos": [{
1920
- "mask-radial-to": I()
1920
+ "mask-radial-to": R()
1921
1921
  }],
1922
1922
  "mask-image-radial-from-color": [{
1923
1923
  "mask-radial-from": c()
@@ -1935,16 +1935,16 @@ const Je = (e, o) => {
1935
1935
  }]
1936
1936
  }],
1937
1937
  "mask-image-radial-pos": [{
1938
- "mask-radial-at": L()
1938
+ "mask-radial-at": j()
1939
1939
  }],
1940
1940
  "mask-image-conic-pos": [{
1941
1941
  "mask-conic": [g]
1942
1942
  }],
1943
1943
  "mask-image-conic-from-pos": [{
1944
- "mask-conic-from": I()
1944
+ "mask-conic-from": R()
1945
1945
  }],
1946
1946
  "mask-image-conic-to-pos": [{
1947
- "mask-conic-to": I()
1947
+ "mask-conic-to": R()
1948
1948
  }],
1949
1949
  "mask-image-conic-from-color": [{
1950
1950
  "mask-conic-from": c()
@@ -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: U()
1981
+ mask: B()
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: B()
1988
+ mask: W()
1989
1989
  }],
1990
1990
  /**
1991
1991
  * Mask Type
@@ -2244,7 +2244,7 @@ const Je = (e, o) => {
2244
2244
  * @see https://tailwindcss.com/docs/transition-timing-function
2245
2245
  */
2246
2246
  ease: [{
2247
- ease: ["linear", "initial", M, l, i]
2247
+ ease: ["linear", "initial", E, l, i]
2248
2248
  }],
2249
2249
  /**
2250
2250
  * Transition Delay
@@ -2695,7 +2695,7 @@ const Je = (e, o) => {
2695
2695
  * @see https://tailwindcss.com/docs/stroke-width
2696
2696
  */
2697
2697
  "stroke-w": [{
2698
- stroke: [g, ne, Q, pe]
2698
+ stroke: [g, ne, H, pe]
2699
2699
  }],
2700
2700
  /**
2701
2701
  * Stroke
@@ -2795,36 +2795,36 @@ const Lt = {
2795
2795
  introPriceNote: S,
2796
2796
  isBestValue: y = !1,
2797
2797
  ctaButton: k,
2798
- className: j,
2798
+ className: G,
2799
2799
  children: z,
2800
2800
  disabled: v = !1,
2801
- ariaLabel: M,
2801
+ ariaLabel: E,
2802
2802
  onTrack: F,
2803
- trackingLabel: R,
2804
- componentName: L = "SubscriptionTile",
2803
+ trackingLabel: M,
2804
+ componentName: j = "SubscriptionTile",
2805
2805
  hideSelectionIndicator: N = !1
2806
2806
  }) => {
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
- return /* @__PURE__ */ G(
2807
+ const C = !!k, L = !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: M, componentName: j }), a());
2809
+ }, Q = (I) => {
2810
+ !v && !C && (I.key === "Enter" || I.key === " ") && (I.preventDefault(), F?.({ action: "select", trackingLabel: M, componentName: j }), a());
2811
+ }, Z = (I) => {
2812
+ I.stopPropagation(), F?.({ action: "cta_click", trackingLabel: M, componentName: j }), k?.onClick && k.onClick();
2813
+ };
2814
+ return /* @__PURE__ */ D(
2815
2815
  "div",
2816
2816
  {
2817
2817
  className: P(
2818
2818
  "relative rounded-2xl p-6 transition-all flex flex-col h-full",
2819
2819
  v ? "opacity-50 cursor-not-allowed" : C ? "cursor-default" : "cursor-pointer",
2820
2820
  m,
2821
- j
2821
+ G
2822
2822
  ),
2823
2823
  onClick: V,
2824
- onKeyDown: Z,
2824
+ onKeyDown: Q,
2825
2825
  role: C ? "article" : "radio",
2826
2826
  "aria-checked": C ? void 0 : s,
2827
- "aria-label": M || `${o} - ${r}${t || ""}`,
2827
+ "aria-label": E || `${o} - ${r}${t || ""}`,
2828
2828
  "aria-disabled": v,
2829
2829
  tabIndex: C || v ? -1 : 0,
2830
2830
  children: [
@@ -2838,8 +2838,8 @@ const Lt = {
2838
2838
  children: u.text
2839
2839
  }
2840
2840
  ) }),
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: [
2841
+ /* @__PURE__ */ D("div", { className: "flex-1 flex flex-col", children: [
2842
+ /* @__PURE__ */ D("div", { className: P("text-center mb-6", u && "mt-2"), children: [
2843
2843
  /* @__PURE__ */ p(
2844
2844
  "h3",
2845
2845
  {
@@ -2851,7 +2851,7 @@ const Lt = {
2851
2851
  children: o
2852
2852
  }
2853
2853
  ),
2854
- /* @__PURE__ */ G("div", { className: "mb-3", children: [
2854
+ /* @__PURE__ */ D("div", { className: "mb-3", children: [
2855
2855
  /* @__PURE__ */ p(
2856
2856
  "span",
2857
2857
  {
@@ -2885,7 +2885,7 @@ const Lt = {
2885
2885
  )
2886
2886
  ] }),
2887
2887
  z,
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: [
2888
+ n.length > 0 && /* @__PURE__ */ p("div", { className: "space-y-3 mb-6", children: n.map((I, K) => /* @__PURE__ */ D("div", { className: "flex items-start", children: [
2889
2889
  /* @__PURE__ */ p(
2890
2890
  "svg",
2891
2891
  {
@@ -2914,11 +2914,11 @@ const Lt = {
2914
2914
  "text-sm text-left",
2915
2915
  s ? "text-white" : "text-gray-700 dark:text-gray-300"
2916
2916
  ),
2917
- children: E.replace(/^✓\s*/, "")
2917
+ children: I.replace(/^✓\s*/, "")
2918
2918
  }
2919
2919
  )
2920
- ] }, W)) }),
2921
- x && /* @__PURE__ */ G(
2920
+ ] }, K)) }),
2921
+ x && /* @__PURE__ */ D(
2922
2922
  "div",
2923
2923
  {
2924
2924
  className: P(
@@ -2943,10 +2943,10 @@ const Lt = {
2943
2943
  "text-xs space-y-1",
2944
2944
  s ? "text-blue-100" : "text-gray-600 dark:text-gray-400"
2945
2945
  ),
2946
- children: x.features.map((E, W) => /* @__PURE__ */ G("li", { children: [
2946
+ children: x.features.map((I, K) => /* @__PURE__ */ D("li", { children: [
2947
2947
  "• ",
2948
- E
2949
- ] }, W))
2948
+ I
2949
+ ] }, K))
2950
2950
  }
2951
2951
  )
2952
2952
  ]
@@ -2966,7 +2966,7 @@ const Lt = {
2966
2966
  "div",
2967
2967
  {
2968
2968
  className: P(
2969
- "p-3 rounded-lg mt-auto",
2969
+ "p-3 rounded-lg",
2970
2970
  s ? "bg-blue-500/30" : "bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800"
2971
2971
  ),
2972
2972
  children: /* @__PURE__ */ p(
@@ -2982,40 +2982,42 @@ const Lt = {
2982
2982
  }
2983
2983
  )
2984
2984
  ] }),
2985
- D && C && /* @__PURE__ */ p("div", { className: "absolute bottom-4 left-0 right-0 px-6", children: k.href ? /* @__PURE__ */ p(
2986
- "a",
2987
- {
2988
- href: k.href,
2989
- className: P(
2990
- "block w-full py-3 font-semibold rounded-lg text-center transition-colors",
2991
- s ? "bg-white text-blue-600 hover:bg-gray-100" : "bg-blue-600 text-white hover:bg-blue-700"
2992
- ),
2993
- onClick: (E) => E.stopPropagation(),
2994
- children: k.label
2995
- }
2996
- ) : /* @__PURE__ */ p(
2997
- "button",
2998
- {
2999
- onClick: ee,
3000
- disabled: v,
3001
- className: P(
3002
- "w-full py-3 font-semibold rounded-lg transition-colors",
3003
- s ? "bg-white text-blue-600 hover:bg-gray-100" : "bg-blue-600 text-white hover:bg-blue-700",
3004
- v && "opacity-50 cursor-not-allowed"
3005
- ),
3006
- children: k.label
3007
- }
3008
- ) }),
3009
- D && !C && /* @__PURE__ */ p("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2", children: /* @__PURE__ */ p(
3010
- "div",
3011
- {
3012
- className: P(
3013
- "w-5 h-5 rounded-full border-2 flex items-center justify-center",
3014
- s ? "border-white bg-white" : "border-gray-300 dark:border-gray-600"
3015
- ),
3016
- children: s && /* @__PURE__ */ p("div", { className: "w-2 h-2 rounded-full bg-blue-600" })
3017
- }
3018
- ) })
2985
+ /* @__PURE__ */ D("div", { className: "h-14 flex-shrink-0 flex items-end justify-center", children: [
2986
+ L && C && /* @__PURE__ */ p("div", { className: "w-full", children: k.href ? /* @__PURE__ */ p(
2987
+ "a",
2988
+ {
2989
+ href: k.href,
2990
+ className: P(
2991
+ "block w-full py-3 font-semibold rounded-lg text-center transition-colors",
2992
+ s ? "bg-white text-blue-600 hover:bg-gray-100" : "bg-blue-600 text-white hover:bg-blue-700"
2993
+ ),
2994
+ onClick: (I) => I.stopPropagation(),
2995
+ children: k.label
2996
+ }
2997
+ ) : /* @__PURE__ */ p(
2998
+ "button",
2999
+ {
3000
+ onClick: Z,
3001
+ disabled: v,
3002
+ className: P(
3003
+ "w-full py-3 font-semibold rounded-lg transition-colors",
3004
+ s ? "bg-white text-blue-600 hover:bg-gray-100" : "bg-blue-600 text-white hover:bg-blue-700",
3005
+ v && "opacity-50 cursor-not-allowed"
3006
+ ),
3007
+ children: k.label
3008
+ }
3009
+ ) }),
3010
+ L && !C && /* @__PURE__ */ p(
3011
+ "div",
3012
+ {
3013
+ className: P(
3014
+ "w-5 h-5 rounded-full border-2 flex items-center justify-center",
3015
+ s ? "border-white bg-white" : "border-gray-300 dark:border-gray-600"
3016
+ ),
3017
+ children: s && /* @__PURE__ */ p("div", { className: "w-2 h-2 rounded-full bg-blue-600" })
3018
+ }
3019
+ )
3020
+ ] })
3019
3021
  ]
3020
3022
  }
3021
3023
  );
@@ -3034,36 +3036,36 @@ const Lt = {
3034
3036
  footerContent: S,
3035
3037
  currentStatusLabel: y = "Current Status",
3036
3038
  freeTileConfig: k,
3037
- onTrack: j,
3039
+ onTrack: G,
3038
3040
  trackingLabel: z,
3039
3041
  componentName: v = "SubscriptionLayout"
3040
3042
  }) => {
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 = {
3043
+ const E = t === "selection" && s, F = () => {
3044
+ G?.({ action: "primary_action", trackingLabel: z, componentName: v }), s?.onClick();
3045
+ }, M = () => {
3046
+ G?.({ action: "secondary_action", trackingLabel: z, componentName: v }), a?.onClick();
3047
+ }, j = t === "cta" && k, N = {
3046
3048
  display: "grid",
3047
3049
  gridTemplateColumns: `repeat(auto-fit, minmax(min(100%, ${u}px), 1fr))`,
3048
3050
  gap: "1.5rem"
3049
3051
  };
3050
- return /* @__PURE__ */ p(We, { className: d, children: /* @__PURE__ */ G(Ue, { className: "pt-6", children: [
3052
+ return /* @__PURE__ */ p(Be, { className: d, children: /* @__PURE__ */ D(Ue, { className: "pt-6", children: [
3051
3053
  x,
3052
- n && /* @__PURE__ */ G(Be, { children: [
3054
+ n && /* @__PURE__ */ D(We, { children: [
3053
3055
  /* @__PURE__ */ p("h2", { className: P(he.heading.h3(), "mb-4"), children: y }),
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: [
3055
- /* @__PURE__ */ G("div", { className: "flex items-center mb-2", children: [
3056
+ n.isActive ? /* @__PURE__ */ D("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
+ /* @__PURE__ */ D("div", { className: "flex items-center mb-2", children: [
3056
3058
  /* @__PURE__ */ p("div", { className: "w-3 h-3 bg-green-500 rounded-full mr-3" }),
3057
3059
  /* @__PURE__ */ p("span", { className: "font-semibold text-green-800 dark:text-green-300", children: n.activeContent?.title || "Active Subscription" })
3058
3060
  ] }),
3059
3061
  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: [
3062
+ (C, L) => /* @__PURE__ */ D("div", { children: [
3061
3063
  /* @__PURE__ */ p("p", { className: "text-sm text-green-600 dark:text-green-400", children: C.label }),
3062
3064
  /* @__PURE__ */ p("p", { className: "font-semibold text-green-800 dark:text-green-300", children: C.value })
3063
- ] }, D)
3065
+ ] }, L)
3064
3066
  ) })
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: [
3066
- /* @__PURE__ */ G("div", { className: "flex items-center mb-2", children: [
3067
+ ] }) : /* @__PURE__ */ D("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
+ /* @__PURE__ */ D("div", { className: "flex items-center mb-2", children: [
3067
3069
  /* @__PURE__ */ p("div", { className: "w-3 h-3 bg-yellow-500 rounded-full mr-3" }),
3068
3070
  /* @__PURE__ */ p("span", { className: "font-semibold text-yellow-800 dark:text-yellow-300", children: n.inactiveContent?.title || "No Active Subscription" })
3069
3071
  ] }),
@@ -3072,8 +3074,8 @@ const Lt = {
3072
3074
  ] }),
3073
3075
  /* @__PURE__ */ p("h2", { className: P(he.heading.h3(), "mb-4"), children: e }),
3074
3076
  w,
3075
- /* @__PURE__ */ G("div", { style: N, children: [
3076
- L && /* @__PURE__ */ p(
3077
+ /* @__PURE__ */ D("div", { style: N, children: [
3078
+ j && /* @__PURE__ */ p(
3077
3079
  _t,
3078
3080
  {
3079
3081
  id: "free",
@@ -3092,11 +3094,11 @@ const Lt = {
3092
3094
  ] }),
3093
3095
  S,
3094
3096
  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: [
3097
+ E && /* @__PURE__ */ D("div", { className: "flex flex-col sm:flex-row gap-3 mt-6", children: [
3096
3098
  a && /* @__PURE__ */ p(
3097
3099
  ve,
3098
3100
  {
3099
- onClick: R,
3101
+ onClick: M,
3100
3102
  disabled: a.disabled || a.loading,
3101
3103
  variant: "outline",
3102
3104
  className: "sm:flex-shrink-0",
@@ -3207,24 +3209,24 @@ const Se = (e, o) => {
3207
3209
  onPurchaseSuccess: t,
3208
3210
  children: n
3209
3211
  }) => {
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 () => {
3212
+ const [s, a] = Y([]), [u, d] = Y(null), [x, w] = Y(!1), [S, y] = Y(null), [k, G] = Y(!1), [z, v] = Y(null), [E, F] = Y(null), [M, j] = Y(null), N = !e || e === "your_revenuecat_api_key_here", C = q(() => {
3213
+ a([]), d(null), F(null), j(null), y(null), G(!1), v(null), T = null;
3214
+ }, []), L = q(async () => {
3213
3215
  if (T)
3214
3216
  try {
3215
3217
  const f = await T.getOfferings();
3216
3218
  f.current && F(f.current);
3217
3219
  const h = f.all;
3218
3220
  if (h) {
3219
- L(h);
3221
+ j(h);
3220
3222
  const b = [];
3221
3223
  for (const c of Object.keys(h)) {
3222
3224
  const O = h[c];
3223
3225
  if (O?.availablePackages) {
3224
- const U = O.metadata, B = O.availablePackages.map(
3225
- (H) => Se(H, U)
3226
+ const B = O.metadata, W = O.availablePackages.map(
3227
+ (J) => Se(J, B)
3226
3228
  );
3227
- b.push(...B);
3229
+ b.push(...W);
3228
3230
  }
3229
3231
  }
3230
3232
  a(b);
@@ -3238,7 +3240,7 @@ const Se = (e, o) => {
3238
3240
  const h = f instanceof Error ? f.message : "Failed to load offerings";
3239
3241
  y(h), r?.(f instanceof Error ? f : new Error(h));
3240
3242
  }
3241
- }, [r]), m = X(async () => {
3243
+ }, [r]), m = q(async () => {
3242
3244
  if (T)
3243
3245
  try {
3244
3246
  const f = await T.getCustomerInfo(), h = be(f);
@@ -3247,7 +3249,7 @@ const Se = (e, o) => {
3247
3249
  const h = f instanceof Error ? f.message : "Failed to load subscription status";
3248
3250
  y(h), r?.(f instanceof Error ? f : new Error(h));
3249
3251
  }
3250
- }, [r]), V = X(
3252
+ }, [r]), V = q(
3251
3253
  async (f, h) => {
3252
3254
  if (z && z !== f && C(), !(k && z === f))
3253
3255
  try {
@@ -3267,9 +3269,9 @@ const Se = (e, o) => {
3267
3269
  await T.setAttributes({ email: O });
3268
3270
  } catch {
3269
3271
  }
3270
- await Promise.all([D(), m()]);
3272
+ await Promise.all([L(), m()]);
3271
3273
  }
3272
- v(f), j(!0);
3274
+ v(f), G(!0);
3273
3275
  } catch (b) {
3274
3276
  const c = b instanceof Error ? b.message : "Failed to initialize";
3275
3277
  y(c), d(null), a([]), r?.(b instanceof Error ? b : new Error(c));
@@ -3283,38 +3285,38 @@ const Se = (e, o) => {
3283
3285
  N,
3284
3286
  e,
3285
3287
  o,
3286
- D,
3288
+ L,
3287
3289
  m,
3288
3290
  r,
3289
3291
  C
3290
3292
  ]
3291
- ), Z = X(
3293
+ ), Q = q(
3292
3294
  async (f, h) => {
3293
3295
  try {
3294
3296
  if (w(!0), y(null), N) {
3295
- await new Promise((B) => setTimeout(B, 2e3));
3296
- const U = {
3297
+ await new Promise((W) => setTimeout(W, 2e3));
3298
+ const B = {
3297
3299
  isActive: !0,
3298
3300
  expirationDate: new Date(Date.now() + 365 * 24 * 60 * 60 * 1e3),
3299
3301
  purchaseDate: /* @__PURE__ */ new Date(),
3300
3302
  productIdentifier: f,
3301
3303
  willRenew: !0
3302
3304
  };
3303
- return d(U), t?.(f), !0;
3305
+ return d(B), t?.(f), !0;
3304
3306
  }
3305
- if (!T || !M && !R)
3307
+ if (!T || !E && !M)
3306
3308
  throw new Error("Subscription service not initialized");
3307
3309
  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
3310
+ if (M)
3311
+ for (const B of Object.keys(M)) {
3312
+ const W = M[B];
3313
+ if (W?.availablePackages && (b = W.availablePackages.find(
3314
+ (J) => J.identifier === f
3313
3315
  ), b))
3314
3316
  break;
3315
3317
  }
3316
- else M && (b = M.availablePackages.find(
3317
- (B) => B.identifier === f
3318
+ else E && (b = E.availablePackages.find(
3319
+ (W) => W.identifier === f
3318
3320
  ));
3319
3321
  if (!b)
3320
3322
  throw new Error(`Package not found: ${f}`);
@@ -3332,13 +3334,13 @@ const Se = (e, o) => {
3332
3334
  },
3333
3335
  [
3334
3336
  N,
3337
+ E,
3335
3338
  M,
3336
- R,
3337
3339
  o,
3338
3340
  t,
3339
3341
  r
3340
3342
  ]
3341
- ), ee = X(
3343
+ ), Z = q(
3342
3344
  async (f) => {
3343
3345
  try {
3344
3346
  if (w(!0), y(null), N)
@@ -3355,15 +3357,15 @@ const Se = (e, o) => {
3355
3357
  }
3356
3358
  },
3357
3359
  [N, r]
3358
- ), Y = X(async () => {
3360
+ ), I = q(async () => {
3359
3361
  if (!N)
3360
3362
  try {
3361
- y(null), await Promise.all([m(), D()]);
3363
+ y(null), await Promise.all([m(), L()]);
3362
3364
  } catch (f) {
3363
3365
  const h = f instanceof Error ? f.message : "Refresh failed";
3364
3366
  y(h), r?.(f instanceof Error ? f : new Error(h));
3365
3367
  }
3366
- }, [N, m, D, r]), E = X(() => {
3368
+ }, [N, m, L, r]), K = q(() => {
3367
3369
  y(null);
3368
3370
  }, []);
3369
3371
  Ye(() => {
@@ -3377,18 +3379,18 @@ const Se = (e, o) => {
3377
3379
  );
3378
3380
  return () => clearInterval(f);
3379
3381
  }, [k, N, m]);
3380
- const W = {
3382
+ const oe = {
3381
3383
  products: s,
3382
3384
  currentSubscription: u,
3383
3385
  isLoading: x,
3384
3386
  error: S,
3385
3387
  initialize: V,
3386
- purchase: Z,
3387
- restore: ee,
3388
- refresh: Y,
3389
- clearError: E
3388
+ purchase: Q,
3389
+ restore: Z,
3390
+ refresh: I,
3391
+ clearError: K
3390
3392
  };
3391
- return /* @__PURE__ */ p($e.Provider, { value: W, children: n });
3393
+ return /* @__PURE__ */ p($e.Provider, { value: oe, children: n });
3392
3394
  }, Xt = () => {
3393
3395
  const e = qe($e);
3394
3396
  if (!e)