@sudobility/subscription-components 1.0.1 → 1.0.3
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.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +378 -329
- package/dist/index.umd.js +1 -1
- package/dist/segmented-control.d.ts +41 -0
- package/dist/segmented-control.d.ts.map +1 -0
- package/dist/subscription-layout.d.ts +2 -0
- package/dist/subscription-layout.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as I, jsx as b, Fragment as $e } from "react/jsx-runtime";
|
|
2
2
|
import { textVariants as be } from "@sudobility/design";
|
|
3
3
|
import { Card as We, CardContent as Ue, Button as ve } from "@sudobility/components";
|
|
4
4
|
import { createContext as Be, useState as B, useCallback as W, useEffect as Ye, useContext as Ke } from "react";
|
|
@@ -38,13 +38,13 @@ const Xe = (e, o) => {
|
|
|
38
38
|
getClassGroupId: (i) => {
|
|
39
39
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
40
40
|
return Ze(i);
|
|
41
|
-
const
|
|
42
|
-
return Ie(
|
|
41
|
+
const m = i.split(ce), c = m[0] === "" && m.length > 1 ? 1 : 0;
|
|
42
|
+
return Ie(m, c, o);
|
|
43
43
|
},
|
|
44
|
-
getConflictingClassGroupIds: (i,
|
|
45
|
-
if (
|
|
46
|
-
const
|
|
47
|
-
return
|
|
44
|
+
getConflictingClassGroupIds: (i, m) => {
|
|
45
|
+
if (m) {
|
|
46
|
+
const c = t[i], f = r[i];
|
|
47
|
+
return c ? f ? Xe(f, c) : c : f || Ce;
|
|
48
48
|
}
|
|
49
49
|
return r[i] || Ce;
|
|
50
50
|
}
|
|
@@ -60,10 +60,10 @@ const Xe = (e, o) => {
|
|
|
60
60
|
const i = r.validators;
|
|
61
61
|
if (i === null)
|
|
62
62
|
return;
|
|
63
|
-
const
|
|
64
|
-
for (let f = 0; f <
|
|
63
|
+
const m = o === 0 ? e.join(ce) : e.slice(o).join(ce), c = i.length;
|
|
64
|
+
for (let f = 0; f < c; f++) {
|
|
65
65
|
const k = i[f];
|
|
66
|
-
if (k.validator(
|
|
66
|
+
if (k.validator(m))
|
|
67
67
|
return k.classGroupId;
|
|
68
68
|
}
|
|
69
69
|
}, Ze = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
@@ -110,16 +110,16 @@ const Xe = (e, o) => {
|
|
|
110
110
|
}, nr = (e, o, r, t) => {
|
|
111
111
|
const s = Object.entries(e), l = s.length;
|
|
112
112
|
for (let i = 0; i < l; i++) {
|
|
113
|
-
const [
|
|
114
|
-
xe(
|
|
113
|
+
const [m, c] = s[i];
|
|
114
|
+
xe(c, Me(o, m), r, t);
|
|
115
115
|
}
|
|
116
116
|
}, Me = (e, o) => {
|
|
117
117
|
let r = e;
|
|
118
118
|
const t = o.split(ce), s = t.length;
|
|
119
119
|
for (let l = 0; l < s; l++) {
|
|
120
120
|
const i = t[l];
|
|
121
|
-
let
|
|
122
|
-
|
|
121
|
+
let m = r.nextPart.get(i);
|
|
122
|
+
m || (m = Re(), r.nextPart.set(i, m)), r = m;
|
|
123
123
|
}
|
|
124
124
|
return r;
|
|
125
125
|
}, ar = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ir = (e) => {
|
|
@@ -146,7 +146,7 @@ const Xe = (e, o) => {
|
|
|
146
146
|
l in r ? r[l] = i : s(l, i);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
}, he = "!", ze = ":", lr = [],
|
|
149
|
+
}, he = "!", ze = ":", lr = [], Ne = (e, o, r, t, s) => ({
|
|
150
150
|
modifiers: e,
|
|
151
151
|
hasImportantModifier: o,
|
|
152
152
|
baseClassName: r,
|
|
@@ -159,23 +159,23 @@ const Xe = (e, o) => {
|
|
|
159
159
|
} = e;
|
|
160
160
|
let t = (s) => {
|
|
161
161
|
const l = [];
|
|
162
|
-
let i = 0,
|
|
162
|
+
let i = 0, m = 0, c = 0, f;
|
|
163
163
|
const k = s.length;
|
|
164
164
|
for (let z = 0; z < k; z++) {
|
|
165
|
-
const
|
|
166
|
-
if (i === 0 &&
|
|
167
|
-
if (
|
|
168
|
-
l.push(s.slice(
|
|
165
|
+
const N = s[z];
|
|
166
|
+
if (i === 0 && m === 0) {
|
|
167
|
+
if (N === ze) {
|
|
168
|
+
l.push(s.slice(c, z)), c = z + 1;
|
|
169
169
|
continue;
|
|
170
170
|
}
|
|
171
|
-
if (
|
|
171
|
+
if (N === "/") {
|
|
172
172
|
f = z;
|
|
173
173
|
continue;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
N === "[" ? i++ : N === "]" ? i-- : N === "(" ? m++ : N === ")" && m--;
|
|
177
177
|
}
|
|
178
|
-
const v = l.length === 0 ? s : s.slice(
|
|
178
|
+
const v = l.length === 0 ? s : s.slice(c);
|
|
179
179
|
let C = v, x = !1;
|
|
180
180
|
v.endsWith(he) ? (C = v.slice(0, -1), x = !0) : (
|
|
181
181
|
/**
|
|
@@ -184,12 +184,12 @@ const Xe = (e, o) => {
|
|
|
184
184
|
*/
|
|
185
185
|
v.startsWith(he) && (C = v.slice(1), x = !0)
|
|
186
186
|
);
|
|
187
|
-
const
|
|
188
|
-
return
|
|
187
|
+
const A = f && f > c ? f - c : void 0;
|
|
188
|
+
return Ne(l, x, C, A);
|
|
189
189
|
};
|
|
190
190
|
if (o) {
|
|
191
191
|
const s = o + ze, l = t;
|
|
192
|
-
t = (i) => i.startsWith(s) ? l(i.slice(s.length)) :
|
|
192
|
+
t = (i) => i.startsWith(s) ? l(i.slice(s.length)) : Ne(lr, !1, i, void 0, !0);
|
|
193
193
|
}
|
|
194
194
|
if (r) {
|
|
195
195
|
const s = t;
|
|
@@ -207,8 +207,8 @@ const Xe = (e, o) => {
|
|
|
207
207
|
const t = [];
|
|
208
208
|
let s = [];
|
|
209
209
|
for (let l = 0; l < r.length; l++) {
|
|
210
|
-
const i = r[l],
|
|
211
|
-
|
|
210
|
+
const i = r[l], m = i[0] === "[", c = o.has(i);
|
|
211
|
+
m || c ? (s.length > 0 && (s.sort(), t.push(...s), s = []), t.push(i)) : s.push(i);
|
|
212
212
|
}
|
|
213
213
|
return s.length > 0 && (s.sort(), t.push(...s)), t;
|
|
214
214
|
};
|
|
@@ -223,44 +223,44 @@ const Xe = (e, o) => {
|
|
|
223
223
|
getClassGroupId: t,
|
|
224
224
|
getConflictingClassGroupIds: s,
|
|
225
225
|
sortModifiers: l
|
|
226
|
-
} = o, i = [],
|
|
227
|
-
let
|
|
228
|
-
for (let f =
|
|
229
|
-
const k =
|
|
226
|
+
} = o, i = [], m = e.trim().split(ur);
|
|
227
|
+
let c = "";
|
|
228
|
+
for (let f = m.length - 1; f >= 0; f -= 1) {
|
|
229
|
+
const k = m[f], {
|
|
230
230
|
isExternal: v,
|
|
231
231
|
modifiers: C,
|
|
232
232
|
hasImportantModifier: x,
|
|
233
|
-
baseClassName:
|
|
233
|
+
baseClassName: A,
|
|
234
234
|
maybePostfixModifierPosition: z
|
|
235
235
|
} = r(k);
|
|
236
236
|
if (v) {
|
|
237
|
-
|
|
237
|
+
c = k + (c.length > 0 ? " " + c : c);
|
|
238
238
|
continue;
|
|
239
239
|
}
|
|
240
|
-
let
|
|
240
|
+
let N = !!z, G = t(N ? A.substring(0, z) : A);
|
|
241
241
|
if (!G) {
|
|
242
|
-
if (!
|
|
243
|
-
|
|
242
|
+
if (!N) {
|
|
243
|
+
c = k + (c.length > 0 ? " " + c : c);
|
|
244
244
|
continue;
|
|
245
245
|
}
|
|
246
|
-
if (G = t(
|
|
247
|
-
|
|
246
|
+
if (G = t(A), !G) {
|
|
247
|
+
c = k + (c.length > 0 ? " " + c : c);
|
|
248
248
|
continue;
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
N = !1;
|
|
251
251
|
}
|
|
252
|
-
const
|
|
252
|
+
const F = C.length === 0 ? "" : C.length === 1 ? C[0] : l(C).join(":"), V = x ? F + he : F, w = V + G;
|
|
253
253
|
if (i.indexOf(w) > -1)
|
|
254
254
|
continue;
|
|
255
255
|
i.push(w);
|
|
256
|
-
const T = s(G,
|
|
256
|
+
const T = s(G, N);
|
|
257
257
|
for (let O = 0; O < T.length; ++O) {
|
|
258
258
|
const j = T[O];
|
|
259
|
-
i.push(
|
|
259
|
+
i.push(V + j);
|
|
260
260
|
}
|
|
261
|
-
|
|
261
|
+
c = k + (c.length > 0 ? " " + c : c);
|
|
262
262
|
}
|
|
263
|
-
return
|
|
263
|
+
return c;
|
|
264
264
|
}, fr = (...e) => {
|
|
265
265
|
let o = 0, r, t, s = "";
|
|
266
266
|
for (; o < e.length; )
|
|
@@ -275,18 +275,18 @@ const Xe = (e, o) => {
|
|
|
275
275
|
return r;
|
|
276
276
|
}, gr = (e, ...o) => {
|
|
277
277
|
let r, t, s, l;
|
|
278
|
-
const i = (
|
|
278
|
+
const i = (c) => {
|
|
279
279
|
const f = o.reduce((k, v) => v(k), e());
|
|
280
|
-
return r = mr(f), t = r.cache.get, s = r.cache.set, l =
|
|
281
|
-
},
|
|
282
|
-
const f = t(
|
|
280
|
+
return r = mr(f), t = r.cache.get, s = r.cache.set, l = m, m(c);
|
|
281
|
+
}, m = (c) => {
|
|
282
|
+
const f = t(c);
|
|
283
283
|
if (f)
|
|
284
284
|
return f;
|
|
285
|
-
const k = pr(
|
|
286
|
-
return s(
|
|
285
|
+
const k = pr(c, r);
|
|
286
|
+
return s(c, k), k;
|
|
287
287
|
};
|
|
288
|
-
return l = i, (...
|
|
289
|
-
}, br = [],
|
|
288
|
+
return l = i, (...c) => l(fr(...c));
|
|
289
|
+
}, br = [], P = (e) => {
|
|
290
290
|
const o = (r) => r[e] || br;
|
|
291
291
|
return o.isThemeGetter = !0, o;
|
|
292
292
|
}, Te = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ee = /^\((?:(\w[\w-]*):)?(.+)\)$/i, hr = /^\d+\/\d+$/, xr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wr = /\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$/, kr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, yr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, vr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, X = (e) => hr.test(e), g = (e) => !!e && !Number.isNaN(Number(e)), U = (e) => !!e && Number.isInteger(Number(e)), ue = (e) => e.endsWith("%") && g(e.slice(0, -1)), $ = (e) => xr.test(e), Cr = () => !0, zr = (e) => (
|
|
@@ -294,14 +294,14 @@ const Xe = (e, o) => {
|
|
|
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
|
wr.test(e) && !kr.test(e)
|
|
297
|
-
), Ge = () => !1,
|
|
297
|
+
), Ge = () => !1, Nr = (e) => yr.test(e), Pr = (e) => vr.test(e), Sr = (e) => !n(e) && !a(e), Ar = (e) => J(e, Le, Ge), n = (e) => Te.test(e), Y = (e) => J(e, _e, zr), pe = (e) => J(e, Tr, g), Pe = (e) => J(e, Oe, Ge), Rr = (e) => J(e, je, Pr), ie = (e) => J(e, Fe, Nr), a = (e) => Ee.test(e), Q = (e) => H(e, _e), Ir = (e) => H(e, Er), Se = (e) => H(e, Oe), Mr = (e) => H(e, Le), Dr = (e) => H(e, je), le = (e) => H(e, Fe, !0), J = (e, o, r) => {
|
|
298
298
|
const t = Te.exec(e);
|
|
299
299
|
return t ? t[1] ? o(t[1]) : r(t[2]) : !1;
|
|
300
300
|
}, H = (e, o, r = !1) => {
|
|
301
301
|
const t = Ee.exec(e);
|
|
302
302
|
return t ? t[1] ? o(t[1]) : r : !1;
|
|
303
303
|
}, Oe = (e) => e === "position" || e === "percentage", je = (e) => e === "image" || e === "url", Le = (e) => e === "length" || e === "size" || e === "bg-size", _e = (e) => e === "length", Tr = (e) => e === "number", Er = (e) => e === "family-name", Fe = (e) => e === "shadow", Gr = () => {
|
|
304
|
-
const e =
|
|
304
|
+
const e = P("color"), o = P("font"), r = P("text"), t = P("font-weight"), s = P("tracking"), l = P("leading"), i = P("breakpoint"), m = P("container"), c = P("spacing"), f = P("radius"), k = P("shadow"), v = P("inset-shadow"), C = P("text-shadow"), x = P("drop-shadow"), A = P("blur"), z = P("perspective"), N = P("aspect"), G = P("ease"), F = P("animate"), V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], w = () => [
|
|
305
305
|
"center",
|
|
306
306
|
"top",
|
|
307
307
|
"bottom",
|
|
@@ -319,15 +319,15 @@ const Xe = (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
|
-
], T = () => [...w(), a, n], O = () => ["auto", "hidden", "clip", "visible", "scroll"], j = () => ["auto", "contain", "none"],
|
|
322
|
+
], T = () => [...w(), a, n], O = () => ["auto", "hidden", "clip", "visible", "scroll"], j = () => ["auto", "contain", "none"], u = () => [a, n, c], _ = () => [X, "full", "auto", ...u()], Z = () => [U, "none", "subgrid", a, n], ee = () => ["auto", {
|
|
323
323
|
span: ["full", U, a, n]
|
|
324
|
-
}, U, a, n], K = () => [U, "auto", a, n], re = () => ["auto", "min", "max", "fr", a, n],
|
|
324
|
+
}, U, a, n], K = () => [U, "auto", a, n], re = () => ["auto", "min", "max", "fr", a, n], p = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], h = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], y = () => ["auto", ...u()], D = () => [X, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...u()], d = () => [e, a, n], q = () => [...w(), Se, Pe, {
|
|
325
325
|
position: [a, n]
|
|
326
326
|
}], te = () => ["no-repeat", {
|
|
327
327
|
repeat: ["", "x", "y", "space", "round"]
|
|
328
328
|
}], we = () => ["auto", "cover", "contain", Mr, Ar, {
|
|
329
329
|
size: [a, n]
|
|
330
|
-
}], de = () => [ue, Q, Y],
|
|
330
|
+
}], de = () => [ue, Q, Y], M = () => [
|
|
331
331
|
// Deprecated since Tailwind CSS v4.0.0
|
|
332
332
|
"",
|
|
333
333
|
"none",
|
|
@@ -335,14 +335,14 @@ const Xe = (e, o) => {
|
|
|
335
335
|
f,
|
|
336
336
|
a,
|
|
337
337
|
n
|
|
338
|
-
], E = () => ["", g, Q, Y], oe = () => ["solid", "dashed", "dotted", "double"], ke = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], S = () => [g, ue, Se,
|
|
338
|
+
], E = () => ["", g, Q, Y], oe = () => ["solid", "dashed", "dotted", "double"], ke = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], S = () => [g, ue, Se, Pe], ye = () => [
|
|
339
339
|
// Deprecated since Tailwind CSS v4.0.0
|
|
340
340
|
"",
|
|
341
341
|
"none",
|
|
342
|
-
|
|
342
|
+
A,
|
|
343
343
|
a,
|
|
344
344
|
n
|
|
345
|
-
], se = () => ["none", g, a, n], ne = () => ["none", g, a, n], me = () => [g, a, n], ae = () => [X, "full", ...
|
|
345
|
+
], se = () => ["none", g, a, n], ne = () => ["none", g, a, n], me = () => [g, a, n], ae = () => [X, "full", ...u()];
|
|
346
346
|
return {
|
|
347
347
|
cacheSize: 500,
|
|
348
348
|
theme: {
|
|
@@ -375,7 +375,7 @@ const Xe = (e, o) => {
|
|
|
375
375
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
376
376
|
*/
|
|
377
377
|
aspect: [{
|
|
378
|
-
aspect: ["auto", "square", X, n, a,
|
|
378
|
+
aspect: ["auto", "square", X, n, a, N]
|
|
379
379
|
}],
|
|
380
380
|
/**
|
|
381
381
|
* Container
|
|
@@ -388,21 +388,21 @@ const Xe = (e, o) => {
|
|
|
388
388
|
* @see https://tailwindcss.com/docs/columns
|
|
389
389
|
*/
|
|
390
390
|
columns: [{
|
|
391
|
-
columns: [g, n, a,
|
|
391
|
+
columns: [g, n, a, m]
|
|
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":
|
|
398
|
+
"break-after": V()
|
|
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":
|
|
405
|
+
"break-before": V()
|
|
406
406
|
}],
|
|
407
407
|
/**
|
|
408
408
|
* Break Inside
|
|
@@ -520,63 +520,63 @@ const Xe = (e, o) => {
|
|
|
520
520
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
521
521
|
*/
|
|
522
522
|
inset: [{
|
|
523
|
-
inset:
|
|
523
|
+
inset: _()
|
|
524
524
|
}],
|
|
525
525
|
/**
|
|
526
526
|
* Right / Left
|
|
527
527
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
528
528
|
*/
|
|
529
529
|
"inset-x": [{
|
|
530
|
-
"inset-x":
|
|
530
|
+
"inset-x": _()
|
|
531
531
|
}],
|
|
532
532
|
/**
|
|
533
533
|
* Top / Bottom
|
|
534
534
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
535
535
|
*/
|
|
536
536
|
"inset-y": [{
|
|
537
|
-
"inset-y":
|
|
537
|
+
"inset-y": _()
|
|
538
538
|
}],
|
|
539
539
|
/**
|
|
540
540
|
* Start
|
|
541
541
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
542
542
|
*/
|
|
543
543
|
start: [{
|
|
544
|
-
start:
|
|
544
|
+
start: _()
|
|
545
545
|
}],
|
|
546
546
|
/**
|
|
547
547
|
* End
|
|
548
548
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
549
549
|
*/
|
|
550
550
|
end: [{
|
|
551
|
-
end:
|
|
551
|
+
end: _()
|
|
552
552
|
}],
|
|
553
553
|
/**
|
|
554
554
|
* Top
|
|
555
555
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
556
556
|
*/
|
|
557
557
|
top: [{
|
|
558
|
-
top:
|
|
558
|
+
top: _()
|
|
559
559
|
}],
|
|
560
560
|
/**
|
|
561
561
|
* Right
|
|
562
562
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
563
563
|
*/
|
|
564
564
|
right: [{
|
|
565
|
-
right:
|
|
565
|
+
right: _()
|
|
566
566
|
}],
|
|
567
567
|
/**
|
|
568
568
|
* Bottom
|
|
569
569
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
570
570
|
*/
|
|
571
571
|
bottom: [{
|
|
572
|
-
bottom:
|
|
572
|
+
bottom: _()
|
|
573
573
|
}],
|
|
574
574
|
/**
|
|
575
575
|
* Left
|
|
576
576
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
577
577
|
*/
|
|
578
578
|
left: [{
|
|
579
|
-
left:
|
|
579
|
+
left: _()
|
|
580
580
|
}],
|
|
581
581
|
/**
|
|
582
582
|
* Visibility
|
|
@@ -598,7 +598,7 @@ const Xe = (e, o) => {
|
|
|
598
598
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
599
599
|
*/
|
|
600
600
|
basis: [{
|
|
601
|
-
basis: [X, "full", "auto",
|
|
601
|
+
basis: [X, "full", "auto", m, ...u()]
|
|
602
602
|
}],
|
|
603
603
|
/**
|
|
604
604
|
* Flex Direction
|
|
@@ -724,56 +724,56 @@ const Xe = (e, o) => {
|
|
|
724
724
|
* @see https://tailwindcss.com/docs/gap
|
|
725
725
|
*/
|
|
726
726
|
gap: [{
|
|
727
|
-
gap:
|
|
727
|
+
gap: u()
|
|
728
728
|
}],
|
|
729
729
|
/**
|
|
730
730
|
* Gap X
|
|
731
731
|
* @see https://tailwindcss.com/docs/gap
|
|
732
732
|
*/
|
|
733
733
|
"gap-x": [{
|
|
734
|
-
"gap-x":
|
|
734
|
+
"gap-x": u()
|
|
735
735
|
}],
|
|
736
736
|
/**
|
|
737
737
|
* Gap Y
|
|
738
738
|
* @see https://tailwindcss.com/docs/gap
|
|
739
739
|
*/
|
|
740
740
|
"gap-y": [{
|
|
741
|
-
"gap-y":
|
|
741
|
+
"gap-y": u()
|
|
742
742
|
}],
|
|
743
743
|
/**
|
|
744
744
|
* Justify Content
|
|
745
745
|
* @see https://tailwindcss.com/docs/justify-content
|
|
746
746
|
*/
|
|
747
747
|
"justify-content": [{
|
|
748
|
-
justify: [...
|
|
748
|
+
justify: [...p(), "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": [...
|
|
755
|
+
"justify-items": [...h(), "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", ...
|
|
762
|
+
"justify-self": ["auto", ...h()]
|
|
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", ...
|
|
769
|
+
content: ["normal", ...p()]
|
|
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: [...
|
|
776
|
+
items: [...h(), {
|
|
777
777
|
baseline: ["", "last"]
|
|
778
778
|
}]
|
|
779
779
|
}],
|
|
@@ -782,7 +782,7 @@ const Xe = (e, o) => {
|
|
|
782
782
|
* @see https://tailwindcss.com/docs/align-self
|
|
783
783
|
*/
|
|
784
784
|
"align-self": [{
|
|
785
|
-
self: ["auto", ...
|
|
785
|
+
self: ["auto", ...h(), {
|
|
786
786
|
baseline: ["", "last"]
|
|
787
787
|
}]
|
|
788
788
|
}],
|
|
@@ -791,21 +791,21 @@ const Xe = (e, o) => {
|
|
|
791
791
|
* @see https://tailwindcss.com/docs/place-content
|
|
792
792
|
*/
|
|
793
793
|
"place-content": [{
|
|
794
|
-
"place-content":
|
|
794
|
+
"place-content": p()
|
|
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": [...
|
|
801
|
+
"place-items": [...h(), "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", ...
|
|
808
|
+
"place-self": ["auto", ...h()]
|
|
809
809
|
}],
|
|
810
810
|
// Spacing
|
|
811
811
|
/**
|
|
@@ -813,63 +813,63 @@ const Xe = (e, o) => {
|
|
|
813
813
|
* @see https://tailwindcss.com/docs/padding
|
|
814
814
|
*/
|
|
815
815
|
p: [{
|
|
816
|
-
p:
|
|
816
|
+
p: u()
|
|
817
817
|
}],
|
|
818
818
|
/**
|
|
819
819
|
* Padding X
|
|
820
820
|
* @see https://tailwindcss.com/docs/padding
|
|
821
821
|
*/
|
|
822
822
|
px: [{
|
|
823
|
-
px:
|
|
823
|
+
px: u()
|
|
824
824
|
}],
|
|
825
825
|
/**
|
|
826
826
|
* Padding Y
|
|
827
827
|
* @see https://tailwindcss.com/docs/padding
|
|
828
828
|
*/
|
|
829
829
|
py: [{
|
|
830
|
-
py:
|
|
830
|
+
py: u()
|
|
831
831
|
}],
|
|
832
832
|
/**
|
|
833
833
|
* Padding Start
|
|
834
834
|
* @see https://tailwindcss.com/docs/padding
|
|
835
835
|
*/
|
|
836
836
|
ps: [{
|
|
837
|
-
ps:
|
|
837
|
+
ps: u()
|
|
838
838
|
}],
|
|
839
839
|
/**
|
|
840
840
|
* Padding End
|
|
841
841
|
* @see https://tailwindcss.com/docs/padding
|
|
842
842
|
*/
|
|
843
843
|
pe: [{
|
|
844
|
-
pe:
|
|
844
|
+
pe: u()
|
|
845
845
|
}],
|
|
846
846
|
/**
|
|
847
847
|
* Padding Top
|
|
848
848
|
* @see https://tailwindcss.com/docs/padding
|
|
849
849
|
*/
|
|
850
850
|
pt: [{
|
|
851
|
-
pt:
|
|
851
|
+
pt: u()
|
|
852
852
|
}],
|
|
853
853
|
/**
|
|
854
854
|
* Padding Right
|
|
855
855
|
* @see https://tailwindcss.com/docs/padding
|
|
856
856
|
*/
|
|
857
857
|
pr: [{
|
|
858
|
-
pr:
|
|
858
|
+
pr: u()
|
|
859
859
|
}],
|
|
860
860
|
/**
|
|
861
861
|
* Padding Bottom
|
|
862
862
|
* @see https://tailwindcss.com/docs/padding
|
|
863
863
|
*/
|
|
864
864
|
pb: [{
|
|
865
|
-
pb:
|
|
865
|
+
pb: u()
|
|
866
866
|
}],
|
|
867
867
|
/**
|
|
868
868
|
* Padding Left
|
|
869
869
|
* @see https://tailwindcss.com/docs/padding
|
|
870
870
|
*/
|
|
871
871
|
pl: [{
|
|
872
|
-
pl:
|
|
872
|
+
pl: u()
|
|
873
873
|
}],
|
|
874
874
|
/**
|
|
875
875
|
* Margin
|
|
@@ -939,7 +939,7 @@ const Xe = (e, o) => {
|
|
|
939
939
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
940
940
|
*/
|
|
941
941
|
"space-x": [{
|
|
942
|
-
"space-x":
|
|
942
|
+
"space-x": u()
|
|
943
943
|
}],
|
|
944
944
|
/**
|
|
945
945
|
* Space Between X Reverse
|
|
@@ -951,7 +951,7 @@ const Xe = (e, o) => {
|
|
|
951
951
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
952
952
|
*/
|
|
953
953
|
"space-y": [{
|
|
954
|
-
"space-y":
|
|
954
|
+
"space-y": u()
|
|
955
955
|
}],
|
|
956
956
|
/**
|
|
957
957
|
* Space Between Y Reverse
|
|
@@ -973,7 +973,7 @@ const Xe = (e, o) => {
|
|
|
973
973
|
* @see https://tailwindcss.com/docs/width
|
|
974
974
|
*/
|
|
975
975
|
w: [{
|
|
976
|
-
w: [
|
|
976
|
+
w: [m, "screen", ...D()]
|
|
977
977
|
}],
|
|
978
978
|
/**
|
|
979
979
|
* Min-Width
|
|
@@ -981,7 +981,7 @@ const Xe = (e, o) => {
|
|
|
981
981
|
*/
|
|
982
982
|
"min-w": [{
|
|
983
983
|
"min-w": [
|
|
984
|
-
|
|
984
|
+
m,
|
|
985
985
|
"screen",
|
|
986
986
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
987
987
|
"none",
|
|
@@ -994,7 +994,7 @@ const Xe = (e, o) => {
|
|
|
994
994
|
*/
|
|
995
995
|
"max-w": [{
|
|
996
996
|
"max-w": [
|
|
997
|
-
|
|
997
|
+
m,
|
|
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 */
|
|
@@ -1120,7 +1120,7 @@ const Xe = (e, o) => {
|
|
|
1120
1120
|
leading: [
|
|
1121
1121
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1122
1122
|
l,
|
|
1123
|
-
...
|
|
1123
|
+
...u()
|
|
1124
1124
|
]
|
|
1125
1125
|
}],
|
|
1126
1126
|
/**
|
|
@@ -1157,14 +1157,14 @@ const Xe = (e, o) => {
|
|
|
1157
1157
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1158
1158
|
*/
|
|
1159
1159
|
"placeholder-color": [{
|
|
1160
|
-
placeholder:
|
|
1160
|
+
placeholder: d()
|
|
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:
|
|
1167
|
+
text: d()
|
|
1168
1168
|
}],
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Text Decoration
|
|
@@ -1190,7 +1190,7 @@ const Xe = (e, o) => {
|
|
|
1190
1190
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1191
1191
|
*/
|
|
1192
1192
|
"text-decoration-color": [{
|
|
1193
|
-
decoration:
|
|
1193
|
+
decoration: d()
|
|
1194
1194
|
}],
|
|
1195
1195
|
/**
|
|
1196
1196
|
* Text Underline Offset
|
|
@@ -1221,7 +1221,7 @@ const Xe = (e, o) => {
|
|
|
1221
1221
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1222
1222
|
*/
|
|
1223
1223
|
indent: [{
|
|
1224
|
-
indent:
|
|
1224
|
+
indent: u()
|
|
1225
1225
|
}],
|
|
1226
1226
|
/**
|
|
1227
1227
|
* Vertical Alignment
|
|
@@ -1328,7 +1328,7 @@ const Xe = (e, o) => {
|
|
|
1328
1328
|
* @see https://tailwindcss.com/docs/background-color
|
|
1329
1329
|
*/
|
|
1330
1330
|
"bg-color": [{
|
|
1331
|
-
bg:
|
|
1331
|
+
bg: d()
|
|
1332
1332
|
}],
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Gradient Color Stops From Position
|
|
@@ -1356,21 +1356,21 @@ const Xe = (e, o) => {
|
|
|
1356
1356
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1357
1357
|
*/
|
|
1358
1358
|
"gradient-from": [{
|
|
1359
|
-
from:
|
|
1359
|
+
from: d()
|
|
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:
|
|
1366
|
+
via: d()
|
|
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:
|
|
1373
|
+
to: d()
|
|
1374
1374
|
}],
|
|
1375
1375
|
// ---------------
|
|
1376
1376
|
// --- Borders ---
|
|
@@ -1380,105 +1380,105 @@ const Xe = (e, o) => {
|
|
|
1380
1380
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1381
1381
|
*/
|
|
1382
1382
|
rounded: [{
|
|
1383
|
-
rounded:
|
|
1383
|
+
rounded: M()
|
|
1384
1384
|
}],
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Border Radius Start
|
|
1387
1387
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1388
1388
|
*/
|
|
1389
1389
|
"rounded-s": [{
|
|
1390
|
-
"rounded-s":
|
|
1390
|
+
"rounded-s": M()
|
|
1391
1391
|
}],
|
|
1392
1392
|
/**
|
|
1393
1393
|
* Border Radius End
|
|
1394
1394
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1395
1395
|
*/
|
|
1396
1396
|
"rounded-e": [{
|
|
1397
|
-
"rounded-e":
|
|
1397
|
+
"rounded-e": M()
|
|
1398
1398
|
}],
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Border Radius Top
|
|
1401
1401
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1402
1402
|
*/
|
|
1403
1403
|
"rounded-t": [{
|
|
1404
|
-
"rounded-t":
|
|
1404
|
+
"rounded-t": M()
|
|
1405
1405
|
}],
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Border Radius Right
|
|
1408
1408
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1409
1409
|
*/
|
|
1410
1410
|
"rounded-r": [{
|
|
1411
|
-
"rounded-r":
|
|
1411
|
+
"rounded-r": M()
|
|
1412
1412
|
}],
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Border Radius Bottom
|
|
1415
1415
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1416
1416
|
*/
|
|
1417
1417
|
"rounded-b": [{
|
|
1418
|
-
"rounded-b":
|
|
1418
|
+
"rounded-b": M()
|
|
1419
1419
|
}],
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Border Radius Left
|
|
1422
1422
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1423
1423
|
*/
|
|
1424
1424
|
"rounded-l": [{
|
|
1425
|
-
"rounded-l":
|
|
1425
|
+
"rounded-l": M()
|
|
1426
1426
|
}],
|
|
1427
1427
|
/**
|
|
1428
1428
|
* Border Radius Start Start
|
|
1429
1429
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1430
1430
|
*/
|
|
1431
1431
|
"rounded-ss": [{
|
|
1432
|
-
"rounded-ss":
|
|
1432
|
+
"rounded-ss": M()
|
|
1433
1433
|
}],
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Border Radius Start End
|
|
1436
1436
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1437
1437
|
*/
|
|
1438
1438
|
"rounded-se": [{
|
|
1439
|
-
"rounded-se":
|
|
1439
|
+
"rounded-se": M()
|
|
1440
1440
|
}],
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Border Radius End End
|
|
1443
1443
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1444
1444
|
*/
|
|
1445
1445
|
"rounded-ee": [{
|
|
1446
|
-
"rounded-ee":
|
|
1446
|
+
"rounded-ee": M()
|
|
1447
1447
|
}],
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Border Radius End Start
|
|
1450
1450
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1451
1451
|
*/
|
|
1452
1452
|
"rounded-es": [{
|
|
1453
|
-
"rounded-es":
|
|
1453
|
+
"rounded-es": M()
|
|
1454
1454
|
}],
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Border Radius Top Left
|
|
1457
1457
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1458
1458
|
*/
|
|
1459
1459
|
"rounded-tl": [{
|
|
1460
|
-
"rounded-tl":
|
|
1460
|
+
"rounded-tl": M()
|
|
1461
1461
|
}],
|
|
1462
1462
|
/**
|
|
1463
1463
|
* Border Radius Top Right
|
|
1464
1464
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1465
1465
|
*/
|
|
1466
1466
|
"rounded-tr": [{
|
|
1467
|
-
"rounded-tr":
|
|
1467
|
+
"rounded-tr": M()
|
|
1468
1468
|
}],
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Border Radius Bottom Right
|
|
1471
1471
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1472
1472
|
*/
|
|
1473
1473
|
"rounded-br": [{
|
|
1474
|
-
"rounded-br":
|
|
1474
|
+
"rounded-br": M()
|
|
1475
1475
|
}],
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Border Radius Bottom Left
|
|
1478
1478
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1479
1479
|
*/
|
|
1480
1480
|
"rounded-bl": [{
|
|
1481
|
-
"rounded-bl":
|
|
1481
|
+
"rounded-bl": M()
|
|
1482
1482
|
}],
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Border Width
|
|
@@ -1586,70 +1586,70 @@ const Xe = (e, o) => {
|
|
|
1586
1586
|
* @see https://tailwindcss.com/docs/border-color
|
|
1587
1587
|
*/
|
|
1588
1588
|
"border-color": [{
|
|
1589
|
-
border:
|
|
1589
|
+
border: d()
|
|
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":
|
|
1596
|
+
"border-x": d()
|
|
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":
|
|
1603
|
+
"border-y": d()
|
|
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":
|
|
1610
|
+
"border-s": d()
|
|
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":
|
|
1617
|
+
"border-e": d()
|
|
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":
|
|
1624
|
+
"border-t": d()
|
|
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":
|
|
1631
|
+
"border-r": d()
|
|
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":
|
|
1638
|
+
"border-b": d()
|
|
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":
|
|
1645
|
+
"border-l": d()
|
|
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:
|
|
1652
|
+
divide: d()
|
|
1653
1653
|
}],
|
|
1654
1654
|
/**
|
|
1655
1655
|
* Outline Style
|
|
@@ -1677,7 +1677,7 @@ const Xe = (e, o) => {
|
|
|
1677
1677
|
* @see https://tailwindcss.com/docs/outline-color
|
|
1678
1678
|
*/
|
|
1679
1679
|
"outline-color": [{
|
|
1680
|
-
outline:
|
|
1680
|
+
outline: d()
|
|
1681
1681
|
}],
|
|
1682
1682
|
// ---------------
|
|
1683
1683
|
// --- Effects ---
|
|
@@ -1701,7 +1701,7 @@ const Xe = (e, o) => {
|
|
|
1701
1701
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
1702
1702
|
*/
|
|
1703
1703
|
"shadow-color": [{
|
|
1704
|
-
shadow:
|
|
1704
|
+
shadow: d()
|
|
1705
1705
|
}],
|
|
1706
1706
|
/**
|
|
1707
1707
|
* Inset Box Shadow
|
|
@@ -1715,7 +1715,7 @@ const Xe = (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":
|
|
1718
|
+
"inset-shadow": d()
|
|
1719
1719
|
}],
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Ring Width
|
|
@@ -1736,7 +1736,7 @@ const Xe = (e, o) => {
|
|
|
1736
1736
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
1737
1737
|
*/
|
|
1738
1738
|
"ring-color": [{
|
|
1739
|
-
ring:
|
|
1739
|
+
ring: d()
|
|
1740
1740
|
}],
|
|
1741
1741
|
/**
|
|
1742
1742
|
* Ring Offset Width
|
|
@@ -1754,7 +1754,7 @@ const Xe = (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":
|
|
1757
|
+
"ring-offset": d()
|
|
1758
1758
|
}],
|
|
1759
1759
|
/**
|
|
1760
1760
|
* Inset Ring Width
|
|
@@ -1768,7 +1768,7 @@ const Xe = (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":
|
|
1771
|
+
"inset-ring": d()
|
|
1772
1772
|
}],
|
|
1773
1773
|
/**
|
|
1774
1774
|
* Text Shadow
|
|
@@ -1782,7 +1782,7 @@ const Xe = (e, o) => {
|
|
|
1782
1782
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
1783
1783
|
*/
|
|
1784
1784
|
"text-shadow-color": [{
|
|
1785
|
-
"text-shadow":
|
|
1785
|
+
"text-shadow": d()
|
|
1786
1786
|
}],
|
|
1787
1787
|
/**
|
|
1788
1788
|
* Opacity
|
|
@@ -1833,10 +1833,10 @@ const Xe = (e, o) => {
|
|
|
1833
1833
|
"mask-linear-to": S()
|
|
1834
1834
|
}],
|
|
1835
1835
|
"mask-image-linear-from-color": [{
|
|
1836
|
-
"mask-linear-from":
|
|
1836
|
+
"mask-linear-from": d()
|
|
1837
1837
|
}],
|
|
1838
1838
|
"mask-image-linear-to-color": [{
|
|
1839
|
-
"mask-linear-to":
|
|
1839
|
+
"mask-linear-to": d()
|
|
1840
1840
|
}],
|
|
1841
1841
|
"mask-image-t-from-pos": [{
|
|
1842
1842
|
"mask-t-from": S()
|
|
@@ -1845,10 +1845,10 @@ const Xe = (e, o) => {
|
|
|
1845
1845
|
"mask-t-to": S()
|
|
1846
1846
|
}],
|
|
1847
1847
|
"mask-image-t-from-color": [{
|
|
1848
|
-
"mask-t-from":
|
|
1848
|
+
"mask-t-from": d()
|
|
1849
1849
|
}],
|
|
1850
1850
|
"mask-image-t-to-color": [{
|
|
1851
|
-
"mask-t-to":
|
|
1851
|
+
"mask-t-to": d()
|
|
1852
1852
|
}],
|
|
1853
1853
|
"mask-image-r-from-pos": [{
|
|
1854
1854
|
"mask-r-from": S()
|
|
@@ -1857,10 +1857,10 @@ const Xe = (e, o) => {
|
|
|
1857
1857
|
"mask-r-to": S()
|
|
1858
1858
|
}],
|
|
1859
1859
|
"mask-image-r-from-color": [{
|
|
1860
|
-
"mask-r-from":
|
|
1860
|
+
"mask-r-from": d()
|
|
1861
1861
|
}],
|
|
1862
1862
|
"mask-image-r-to-color": [{
|
|
1863
|
-
"mask-r-to":
|
|
1863
|
+
"mask-r-to": d()
|
|
1864
1864
|
}],
|
|
1865
1865
|
"mask-image-b-from-pos": [{
|
|
1866
1866
|
"mask-b-from": S()
|
|
@@ -1869,10 +1869,10 @@ const Xe = (e, o) => {
|
|
|
1869
1869
|
"mask-b-to": S()
|
|
1870
1870
|
}],
|
|
1871
1871
|
"mask-image-b-from-color": [{
|
|
1872
|
-
"mask-b-from":
|
|
1872
|
+
"mask-b-from": d()
|
|
1873
1873
|
}],
|
|
1874
1874
|
"mask-image-b-to-color": [{
|
|
1875
|
-
"mask-b-to":
|
|
1875
|
+
"mask-b-to": d()
|
|
1876
1876
|
}],
|
|
1877
1877
|
"mask-image-l-from-pos": [{
|
|
1878
1878
|
"mask-l-from": S()
|
|
@@ -1881,10 +1881,10 @@ const Xe = (e, o) => {
|
|
|
1881
1881
|
"mask-l-to": S()
|
|
1882
1882
|
}],
|
|
1883
1883
|
"mask-image-l-from-color": [{
|
|
1884
|
-
"mask-l-from":
|
|
1884
|
+
"mask-l-from": d()
|
|
1885
1885
|
}],
|
|
1886
1886
|
"mask-image-l-to-color": [{
|
|
1887
|
-
"mask-l-to":
|
|
1887
|
+
"mask-l-to": d()
|
|
1888
1888
|
}],
|
|
1889
1889
|
"mask-image-x-from-pos": [{
|
|
1890
1890
|
"mask-x-from": S()
|
|
@@ -1893,10 +1893,10 @@ const Xe = (e, o) => {
|
|
|
1893
1893
|
"mask-x-to": S()
|
|
1894
1894
|
}],
|
|
1895
1895
|
"mask-image-x-from-color": [{
|
|
1896
|
-
"mask-x-from":
|
|
1896
|
+
"mask-x-from": d()
|
|
1897
1897
|
}],
|
|
1898
1898
|
"mask-image-x-to-color": [{
|
|
1899
|
-
"mask-x-to":
|
|
1899
|
+
"mask-x-to": d()
|
|
1900
1900
|
}],
|
|
1901
1901
|
"mask-image-y-from-pos": [{
|
|
1902
1902
|
"mask-y-from": S()
|
|
@@ -1905,10 +1905,10 @@ const Xe = (e, o) => {
|
|
|
1905
1905
|
"mask-y-to": S()
|
|
1906
1906
|
}],
|
|
1907
1907
|
"mask-image-y-from-color": [{
|
|
1908
|
-
"mask-y-from":
|
|
1908
|
+
"mask-y-from": d()
|
|
1909
1909
|
}],
|
|
1910
1910
|
"mask-image-y-to-color": [{
|
|
1911
|
-
"mask-y-to":
|
|
1911
|
+
"mask-y-to": d()
|
|
1912
1912
|
}],
|
|
1913
1913
|
"mask-image-radial": [{
|
|
1914
1914
|
"mask-radial": [a, n]
|
|
@@ -1920,10 +1920,10 @@ const Xe = (e, o) => {
|
|
|
1920
1920
|
"mask-radial-to": S()
|
|
1921
1921
|
}],
|
|
1922
1922
|
"mask-image-radial-from-color": [{
|
|
1923
|
-
"mask-radial-from":
|
|
1923
|
+
"mask-radial-from": d()
|
|
1924
1924
|
}],
|
|
1925
1925
|
"mask-image-radial-to-color": [{
|
|
1926
|
-
"mask-radial-to":
|
|
1926
|
+
"mask-radial-to": d()
|
|
1927
1927
|
}],
|
|
1928
1928
|
"mask-image-radial-shape": [{
|
|
1929
1929
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -1947,10 +1947,10 @@ const Xe = (e, o) => {
|
|
|
1947
1947
|
"mask-conic-to": S()
|
|
1948
1948
|
}],
|
|
1949
1949
|
"mask-image-conic-from-color": [{
|
|
1950
|
-
"mask-conic-from":
|
|
1950
|
+
"mask-conic-from": d()
|
|
1951
1951
|
}],
|
|
1952
1952
|
"mask-image-conic-to-color": [{
|
|
1953
|
-
"mask-conic-to":
|
|
1953
|
+
"mask-conic-to": d()
|
|
1954
1954
|
}],
|
|
1955
1955
|
/**
|
|
1956
1956
|
* Mask Mode
|
|
@@ -2057,7 +2057,7 @@ const Xe = (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":
|
|
2060
|
+
"drop-shadow": d()
|
|
2061
2061
|
}],
|
|
2062
2062
|
/**
|
|
2063
2063
|
* Grayscale
|
|
@@ -2185,21 +2185,21 @@ const Xe = (e, o) => {
|
|
|
2185
2185
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2186
2186
|
*/
|
|
2187
2187
|
"border-spacing": [{
|
|
2188
|
-
"border-spacing":
|
|
2188
|
+
"border-spacing": u()
|
|
2189
2189
|
}],
|
|
2190
2190
|
/**
|
|
2191
2191
|
* Border Spacing X
|
|
2192
2192
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2193
2193
|
*/
|
|
2194
2194
|
"border-spacing-x": [{
|
|
2195
|
-
"border-spacing-x":
|
|
2195
|
+
"border-spacing-x": u()
|
|
2196
2196
|
}],
|
|
2197
2197
|
/**
|
|
2198
2198
|
* Border Spacing Y
|
|
2199
2199
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2200
2200
|
*/
|
|
2201
2201
|
"border-spacing-y": [{
|
|
2202
|
-
"border-spacing-y":
|
|
2202
|
+
"border-spacing-y": u()
|
|
2203
2203
|
}],
|
|
2204
2204
|
/**
|
|
2205
2205
|
* Table Layout
|
|
@@ -2258,7 +2258,7 @@ const Xe = (e, o) => {
|
|
|
2258
2258
|
* @see https://tailwindcss.com/docs/animation
|
|
2259
2259
|
*/
|
|
2260
2260
|
animate: [{
|
|
2261
|
-
animate: ["none",
|
|
2261
|
+
animate: ["none", F, a, n]
|
|
2262
2262
|
}],
|
|
2263
2263
|
// ------------------
|
|
2264
2264
|
// --- Transforms ---
|
|
@@ -2428,7 +2428,7 @@ const Xe = (e, o) => {
|
|
|
2428
2428
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2429
2429
|
*/
|
|
2430
2430
|
accent: [{
|
|
2431
|
-
accent:
|
|
2431
|
+
accent: d()
|
|
2432
2432
|
}],
|
|
2433
2433
|
/**
|
|
2434
2434
|
* Appearance
|
|
@@ -2442,7 +2442,7 @@ const Xe = (e, o) => {
|
|
|
2442
2442
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2443
2443
|
*/
|
|
2444
2444
|
"caret-color": [{
|
|
2445
|
-
caret:
|
|
2445
|
+
caret: d()
|
|
2446
2446
|
}],
|
|
2447
2447
|
/**
|
|
2448
2448
|
* Color Scheme
|
|
@@ -2491,126 +2491,126 @@ const Xe = (e, o) => {
|
|
|
2491
2491
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2492
2492
|
*/
|
|
2493
2493
|
"scroll-m": [{
|
|
2494
|
-
"scroll-m":
|
|
2494
|
+
"scroll-m": u()
|
|
2495
2495
|
}],
|
|
2496
2496
|
/**
|
|
2497
2497
|
* Scroll Margin X
|
|
2498
2498
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2499
2499
|
*/
|
|
2500
2500
|
"scroll-mx": [{
|
|
2501
|
-
"scroll-mx":
|
|
2501
|
+
"scroll-mx": u()
|
|
2502
2502
|
}],
|
|
2503
2503
|
/**
|
|
2504
2504
|
* Scroll Margin Y
|
|
2505
2505
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2506
2506
|
*/
|
|
2507
2507
|
"scroll-my": [{
|
|
2508
|
-
"scroll-my":
|
|
2508
|
+
"scroll-my": u()
|
|
2509
2509
|
}],
|
|
2510
2510
|
/**
|
|
2511
2511
|
* Scroll Margin Start
|
|
2512
2512
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2513
2513
|
*/
|
|
2514
2514
|
"scroll-ms": [{
|
|
2515
|
-
"scroll-ms":
|
|
2515
|
+
"scroll-ms": u()
|
|
2516
2516
|
}],
|
|
2517
2517
|
/**
|
|
2518
2518
|
* Scroll Margin End
|
|
2519
2519
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2520
2520
|
*/
|
|
2521
2521
|
"scroll-me": [{
|
|
2522
|
-
"scroll-me":
|
|
2522
|
+
"scroll-me": u()
|
|
2523
2523
|
}],
|
|
2524
2524
|
/**
|
|
2525
2525
|
* Scroll Margin Top
|
|
2526
2526
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2527
2527
|
*/
|
|
2528
2528
|
"scroll-mt": [{
|
|
2529
|
-
"scroll-mt":
|
|
2529
|
+
"scroll-mt": u()
|
|
2530
2530
|
}],
|
|
2531
2531
|
/**
|
|
2532
2532
|
* Scroll Margin Right
|
|
2533
2533
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2534
2534
|
*/
|
|
2535
2535
|
"scroll-mr": [{
|
|
2536
|
-
"scroll-mr":
|
|
2536
|
+
"scroll-mr": u()
|
|
2537
2537
|
}],
|
|
2538
2538
|
/**
|
|
2539
2539
|
* Scroll Margin Bottom
|
|
2540
2540
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2541
2541
|
*/
|
|
2542
2542
|
"scroll-mb": [{
|
|
2543
|
-
"scroll-mb":
|
|
2543
|
+
"scroll-mb": u()
|
|
2544
2544
|
}],
|
|
2545
2545
|
/**
|
|
2546
2546
|
* Scroll Margin Left
|
|
2547
2547
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2548
2548
|
*/
|
|
2549
2549
|
"scroll-ml": [{
|
|
2550
|
-
"scroll-ml":
|
|
2550
|
+
"scroll-ml": u()
|
|
2551
2551
|
}],
|
|
2552
2552
|
/**
|
|
2553
2553
|
* Scroll Padding
|
|
2554
2554
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2555
2555
|
*/
|
|
2556
2556
|
"scroll-p": [{
|
|
2557
|
-
"scroll-p":
|
|
2557
|
+
"scroll-p": u()
|
|
2558
2558
|
}],
|
|
2559
2559
|
/**
|
|
2560
2560
|
* Scroll Padding X
|
|
2561
2561
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2562
2562
|
*/
|
|
2563
2563
|
"scroll-px": [{
|
|
2564
|
-
"scroll-px":
|
|
2564
|
+
"scroll-px": u()
|
|
2565
2565
|
}],
|
|
2566
2566
|
/**
|
|
2567
2567
|
* Scroll Padding Y
|
|
2568
2568
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2569
2569
|
*/
|
|
2570
2570
|
"scroll-py": [{
|
|
2571
|
-
"scroll-py":
|
|
2571
|
+
"scroll-py": u()
|
|
2572
2572
|
}],
|
|
2573
2573
|
/**
|
|
2574
2574
|
* Scroll Padding Start
|
|
2575
2575
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2576
2576
|
*/
|
|
2577
2577
|
"scroll-ps": [{
|
|
2578
|
-
"scroll-ps":
|
|
2578
|
+
"scroll-ps": u()
|
|
2579
2579
|
}],
|
|
2580
2580
|
/**
|
|
2581
2581
|
* Scroll Padding End
|
|
2582
2582
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2583
2583
|
*/
|
|
2584
2584
|
"scroll-pe": [{
|
|
2585
|
-
"scroll-pe":
|
|
2585
|
+
"scroll-pe": u()
|
|
2586
2586
|
}],
|
|
2587
2587
|
/**
|
|
2588
2588
|
* Scroll Padding Top
|
|
2589
2589
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2590
2590
|
*/
|
|
2591
2591
|
"scroll-pt": [{
|
|
2592
|
-
"scroll-pt":
|
|
2592
|
+
"scroll-pt": u()
|
|
2593
2593
|
}],
|
|
2594
2594
|
/**
|
|
2595
2595
|
* Scroll Padding Right
|
|
2596
2596
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2597
2597
|
*/
|
|
2598
2598
|
"scroll-pr": [{
|
|
2599
|
-
"scroll-pr":
|
|
2599
|
+
"scroll-pr": u()
|
|
2600
2600
|
}],
|
|
2601
2601
|
/**
|
|
2602
2602
|
* Scroll Padding Bottom
|
|
2603
2603
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2604
2604
|
*/
|
|
2605
2605
|
"scroll-pb": [{
|
|
2606
|
-
"scroll-pb":
|
|
2606
|
+
"scroll-pb": u()
|
|
2607
2607
|
}],
|
|
2608
2608
|
/**
|
|
2609
2609
|
* Scroll Padding Left
|
|
2610
2610
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2611
2611
|
*/
|
|
2612
2612
|
"scroll-pl": [{
|
|
2613
|
-
"scroll-pl":
|
|
2613
|
+
"scroll-pl": u()
|
|
2614
2614
|
}],
|
|
2615
2615
|
/**
|
|
2616
2616
|
* Scroll Snap Align
|
|
@@ -2688,7 +2688,7 @@ const Xe = (e, o) => {
|
|
|
2688
2688
|
* @see https://tailwindcss.com/docs/fill
|
|
2689
2689
|
*/
|
|
2690
2690
|
fill: [{
|
|
2691
|
-
fill: ["none", ...
|
|
2691
|
+
fill: ["none", ...d()]
|
|
2692
2692
|
}],
|
|
2693
2693
|
/**
|
|
2694
2694
|
* Stroke Width
|
|
@@ -2702,7 +2702,7 @@ const Xe = (e, o) => {
|
|
|
2702
2702
|
* @see https://tailwindcss.com/docs/stroke
|
|
2703
2703
|
*/
|
|
2704
2704
|
stroke: [{
|
|
2705
|
-
stroke: ["none", ...
|
|
2705
|
+
stroke: ["none", ...d()]
|
|
2706
2706
|
}],
|
|
2707
2707
|
// ---------------------
|
|
2708
2708
|
// --- Accessibility ---
|
|
@@ -2771,7 +2771,7 @@ const Xe = (e, o) => {
|
|
|
2771
2771
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2772
2772
|
};
|
|
2773
2773
|
}, Or = /* @__PURE__ */ gr(Gr);
|
|
2774
|
-
function
|
|
2774
|
+
function L(...e) {
|
|
2775
2775
|
return Or(qe(e));
|
|
2776
2776
|
}
|
|
2777
2777
|
const jr = {
|
|
@@ -2788,101 +2788,101 @@ const jr = {
|
|
|
2788
2788
|
features: s,
|
|
2789
2789
|
isSelected: l,
|
|
2790
2790
|
onSelect: i,
|
|
2791
|
-
topBadge:
|
|
2792
|
-
discountBadge:
|
|
2791
|
+
topBadge: m,
|
|
2792
|
+
discountBadge: c,
|
|
2793
2793
|
premiumCallout: f,
|
|
2794
2794
|
bottomNote: k,
|
|
2795
2795
|
introPriceNote: v,
|
|
2796
2796
|
isBestValue: C = !1,
|
|
2797
2797
|
className: x,
|
|
2798
|
-
children:
|
|
2798
|
+
children: A,
|
|
2799
2799
|
disabled: z = !1,
|
|
2800
|
-
ariaLabel:
|
|
2800
|
+
ariaLabel: N
|
|
2801
2801
|
}) => {
|
|
2802
|
-
const G = l ? C ? "border-purple-500 bg-purple-50 dark:bg-purple-900/20 shadow-lg" : "border-blue-500 bg-blue-50 dark:bg-blue-900/20 shadow-lg" : "border-gray-200 dark:border-gray-700 hover:border-gray-300 hover:shadow-md",
|
|
2802
|
+
const G = l ? C ? "border-purple-500 bg-purple-50 dark:bg-purple-900/20 shadow-lg" : "border-blue-500 bg-blue-50 dark:bg-blue-900/20 shadow-lg" : "border-gray-200 dark:border-gray-700 hover:border-gray-300 hover:shadow-md", F = () => {
|
|
2803
2803
|
z || i();
|
|
2804
|
-
},
|
|
2804
|
+
}, V = (w) => {
|
|
2805
2805
|
!z && (w.key === "Enter" || w.key === " ") && (w.preventDefault(), i());
|
|
2806
2806
|
};
|
|
2807
|
-
return /* @__PURE__ */
|
|
2807
|
+
return /* @__PURE__ */ I(
|
|
2808
2808
|
"div",
|
|
2809
2809
|
{
|
|
2810
|
-
className:
|
|
2810
|
+
className: L(
|
|
2811
2811
|
"relative border-2 rounded-xl p-6 transition-all flex flex-col",
|
|
2812
2812
|
z ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
2813
2813
|
G,
|
|
2814
2814
|
x
|
|
2815
2815
|
),
|
|
2816
|
-
onClick:
|
|
2817
|
-
onKeyDown:
|
|
2816
|
+
onClick: F,
|
|
2817
|
+
onKeyDown: V,
|
|
2818
2818
|
role: "radio",
|
|
2819
2819
|
"aria-checked": l,
|
|
2820
|
-
"aria-label":
|
|
2820
|
+
"aria-label": N || `${o} - ${r}${t || ""}`,
|
|
2821
2821
|
"aria-disabled": z,
|
|
2822
2822
|
tabIndex: z ? -1 : 0,
|
|
2823
2823
|
children: [
|
|
2824
|
-
|
|
2824
|
+
m && /* @__PURE__ */ b("div", { className: "absolute -top-3 left-1/2 transform -translate-x-1/2", children: /* @__PURE__ */ b(
|
|
2825
2825
|
"span",
|
|
2826
2826
|
{
|
|
2827
|
-
className:
|
|
2828
|
-
jr[
|
|
2827
|
+
className: L(
|
|
2828
|
+
jr[m.color],
|
|
2829
2829
|
"text-white px-3 py-1 rounded-full text-sm font-semibold shadow-lg whitespace-nowrap"
|
|
2830
2830
|
),
|
|
2831
|
-
children:
|
|
2831
|
+
children: m.text
|
|
2832
2832
|
}
|
|
2833
2833
|
) }),
|
|
2834
|
-
/* @__PURE__ */
|
|
2835
|
-
/* @__PURE__ */
|
|
2836
|
-
/* @__PURE__ */
|
|
2837
|
-
/* @__PURE__ */
|
|
2838
|
-
/* @__PURE__ */
|
|
2834
|
+
/* @__PURE__ */ I("div", { className: "flex flex-col flex-grow", children: [
|
|
2835
|
+
/* @__PURE__ */ I("div", { className: "text-center mb-6", children: [
|
|
2836
|
+
/* @__PURE__ */ b("h3", { className: L(be.heading.h4(), "mb-2"), children: o }),
|
|
2837
|
+
/* @__PURE__ */ I("div", { className: "mb-3", children: [
|
|
2838
|
+
/* @__PURE__ */ b(
|
|
2839
2839
|
"span",
|
|
2840
2840
|
{
|
|
2841
|
-
className:
|
|
2841
|
+
className: L(
|
|
2842
2842
|
"text-4xl font-bold",
|
|
2843
2843
|
C ? "text-purple-600 dark:text-purple-400" : "text-blue-600 dark:text-blue-400"
|
|
2844
2844
|
),
|
|
2845
2845
|
children: r
|
|
2846
2846
|
}
|
|
2847
2847
|
),
|
|
2848
|
-
t && /* @__PURE__ */
|
|
2848
|
+
t && /* @__PURE__ */ b("span", { className: "text-gray-500 dark:text-gray-400 text-lg", children: t })
|
|
2849
2849
|
] }),
|
|
2850
|
-
|
|
2850
|
+
c && /* @__PURE__ */ b(
|
|
2851
2851
|
"div",
|
|
2852
2852
|
{
|
|
2853
|
-
className:
|
|
2853
|
+
className: L(
|
|
2854
2854
|
"inline-flex items-center px-2 py-1 rounded-full text-sm font-semibold",
|
|
2855
|
-
|
|
2855
|
+
c.isBestValue ? "bg-purple-100 text-purple-700 dark:bg-purple-900/50 dark:text-purple-300" : "bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300"
|
|
2856
2856
|
),
|
|
2857
|
-
children:
|
|
2857
|
+
children: c.text
|
|
2858
2858
|
}
|
|
2859
2859
|
)
|
|
2860
2860
|
] }),
|
|
2861
|
-
|
|
2862
|
-
s.length > 0 && /* @__PURE__ */
|
|
2863
|
-
/* @__PURE__ */
|
|
2861
|
+
A,
|
|
2862
|
+
s.length > 0 && /* @__PURE__ */ b("div", { className: "space-y-3 mb-6 flex-grow", children: s.map((w, T) => /* @__PURE__ */ I("div", { className: "flex items-start", children: [
|
|
2863
|
+
/* @__PURE__ */ b(
|
|
2864
2864
|
"span",
|
|
2865
2865
|
{
|
|
2866
|
-
className:
|
|
2866
|
+
className: L(
|
|
2867
2867
|
"text-lg mr-3 flex-shrink-0",
|
|
2868
2868
|
C ? "text-purple-500" : "text-green-500"
|
|
2869
2869
|
),
|
|
2870
2870
|
children: "✓"
|
|
2871
2871
|
}
|
|
2872
2872
|
),
|
|
2873
|
-
/* @__PURE__ */
|
|
2873
|
+
/* @__PURE__ */ b("span", { className: "text-sm text-gray-700 dark:text-gray-300 text-left", children: w.replace(/^✓\s*/, "") })
|
|
2874
2874
|
] }, T)) }),
|
|
2875
|
-
f && /* @__PURE__ */
|
|
2876
|
-
/* @__PURE__ */
|
|
2877
|
-
/* @__PURE__ */
|
|
2875
|
+
f && /* @__PURE__ */ I("div", { className: "bg-gradient-to-r from-purple-50 to-blue-50 dark:from-purple-900/20 dark:to-blue-900/20 rounded-lg p-4 mb-4", children: [
|
|
2876
|
+
/* @__PURE__ */ b("div", { className: "flex items-center mb-2", children: /* @__PURE__ */ b("span", { className: "text-purple-600 dark:text-purple-400 font-semibold text-sm", children: f.title }) }),
|
|
2877
|
+
/* @__PURE__ */ b("ul", { className: "text-xs text-gray-600 dark:text-gray-400 space-y-1", children: f.features.map((w, T) => /* @__PURE__ */ I("li", { children: [
|
|
2878
2878
|
"• ",
|
|
2879
2879
|
w
|
|
2880
2880
|
] }, T)) })
|
|
2881
2881
|
] }),
|
|
2882
|
-
k && /* @__PURE__ */
|
|
2882
|
+
k && /* @__PURE__ */ b(
|
|
2883
2883
|
"div",
|
|
2884
2884
|
{
|
|
2885
|
-
className:
|
|
2885
|
+
className: L(
|
|
2886
2886
|
"text-center text-sm font-medium mb-4",
|
|
2887
2887
|
C ? "text-purple-600 dark:text-purple-400" : "text-blue-600 dark:text-blue-400"
|
|
2888
2888
|
),
|
|
@@ -2890,16 +2890,16 @@ const jr = {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
)
|
|
2892
2892
|
] }),
|
|
2893
|
-
/* @__PURE__ */
|
|
2894
|
-
v && /* @__PURE__ */
|
|
2895
|
-
/* @__PURE__ */
|
|
2893
|
+
/* @__PURE__ */ I("div", { className: "mt-auto space-y-4", children: [
|
|
2894
|
+
v && /* @__PURE__ */ b("div", { className: "p-3 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg", children: /* @__PURE__ */ b("p", { className: "text-sm text-yellow-700 dark:text-yellow-300 font-semibold text-center", children: v }) }),
|
|
2895
|
+
/* @__PURE__ */ b("div", { className: "flex justify-center", children: /* @__PURE__ */ b(
|
|
2896
2896
|
"div",
|
|
2897
2897
|
{
|
|
2898
|
-
className:
|
|
2898
|
+
className: L(
|
|
2899
2899
|
"w-5 h-5 rounded-full border-2 flex items-center justify-center",
|
|
2900
2900
|
l ? C ? "border-purple-600 bg-purple-600" : "border-blue-600 bg-blue-600" : "border-gray-300 dark:border-gray-600"
|
|
2901
2901
|
),
|
|
2902
|
-
children: l && /* @__PURE__ */
|
|
2902
|
+
children: l && /* @__PURE__ */ b("div", { className: "w-2 h-2 rounded-full bg-white" })
|
|
2903
2903
|
}
|
|
2904
2904
|
) })
|
|
2905
2905
|
] })
|
|
@@ -2914,45 +2914,47 @@ const jr = {
|
|
|
2914
2914
|
primaryAction: s,
|
|
2915
2915
|
secondaryAction: l,
|
|
2916
2916
|
minTileWidth: i = 240,
|
|
2917
|
-
className:
|
|
2918
|
-
headerContent:
|
|
2919
|
-
|
|
2920
|
-
|
|
2917
|
+
className: m,
|
|
2918
|
+
headerContent: c,
|
|
2919
|
+
aboveProducts: f,
|
|
2920
|
+
footerContent: k,
|
|
2921
|
+
currentStatusLabel: v = "Current Status"
|
|
2921
2922
|
}) => {
|
|
2922
|
-
const
|
|
2923
|
+
const C = {
|
|
2923
2924
|
display: "grid",
|
|
2924
2925
|
gridTemplateColumns: `repeat(auto-fit, minmax(min(100%, ${i}px), 1fr))`,
|
|
2925
2926
|
gap: "1.5rem"
|
|
2926
2927
|
};
|
|
2927
|
-
return /* @__PURE__ */
|
|
2928
|
-
|
|
2929
|
-
t && /* @__PURE__ */
|
|
2930
|
-
/* @__PURE__ */
|
|
2931
|
-
t.isActive ? /* @__PURE__ */
|
|
2932
|
-
/* @__PURE__ */
|
|
2933
|
-
/* @__PURE__ */
|
|
2934
|
-
/* @__PURE__ */
|
|
2928
|
+
return /* @__PURE__ */ b(We, { className: m, children: /* @__PURE__ */ I(Ue, { className: "pt-6", children: [
|
|
2929
|
+
c,
|
|
2930
|
+
t && /* @__PURE__ */ I($e, { children: [
|
|
2931
|
+
/* @__PURE__ */ b("h2", { className: L(be.heading.h3(), "mb-4"), children: v }),
|
|
2932
|
+
t.isActive ? /* @__PURE__ */ I("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: [
|
|
2933
|
+
/* @__PURE__ */ I("div", { className: "flex items-center mb-2", children: [
|
|
2934
|
+
/* @__PURE__ */ b("div", { className: "w-3 h-3 bg-green-500 rounded-full mr-3" }),
|
|
2935
|
+
/* @__PURE__ */ b("span", { className: "font-semibold text-green-800 dark:text-green-300", children: t.activeContent?.title || "Active Subscription" })
|
|
2935
2936
|
] }),
|
|
2936
|
-
t.activeContent?.fields && t.activeContent.fields.length > 0 && /* @__PURE__ */
|
|
2937
|
-
(
|
|
2938
|
-
/* @__PURE__ */
|
|
2939
|
-
/* @__PURE__ */
|
|
2940
|
-
] },
|
|
2937
|
+
t.activeContent?.fields && t.activeContent.fields.length > 0 && /* @__PURE__ */ b("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 mt-4", children: t.activeContent.fields.map(
|
|
2938
|
+
(x, A) => /* @__PURE__ */ I("div", { children: [
|
|
2939
|
+
/* @__PURE__ */ b("p", { className: "text-sm text-green-600 dark:text-green-400", children: x.label }),
|
|
2940
|
+
/* @__PURE__ */ b("p", { className: "font-semibold text-green-800 dark:text-green-300", children: x.value })
|
|
2941
|
+
] }, A)
|
|
2941
2942
|
) })
|
|
2942
|
-
] }) : /* @__PURE__ */
|
|
2943
|
-
/* @__PURE__ */
|
|
2944
|
-
/* @__PURE__ */
|
|
2945
|
-
/* @__PURE__ */
|
|
2943
|
+
] }) : /* @__PURE__ */ I("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: [
|
|
2944
|
+
/* @__PURE__ */ I("div", { className: "flex items-center mb-2", children: [
|
|
2945
|
+
/* @__PURE__ */ b("div", { className: "w-3 h-3 bg-yellow-500 rounded-full mr-3" }),
|
|
2946
|
+
/* @__PURE__ */ b("span", { className: "font-semibold text-yellow-800 dark:text-yellow-300", children: t.inactiveContent?.title || "No Active Subscription" })
|
|
2946
2947
|
] }),
|
|
2947
|
-
t.inactiveContent?.message && /* @__PURE__ */
|
|
2948
|
+
t.inactiveContent?.message && /* @__PURE__ */ b("p", { className: "text-yellow-700 dark:text-yellow-400", children: t.inactiveContent.message })
|
|
2948
2949
|
] })
|
|
2949
2950
|
] }),
|
|
2950
|
-
/* @__PURE__ */
|
|
2951
|
-
/* @__PURE__ */ h("div", { style: v, children: o }),
|
|
2951
|
+
/* @__PURE__ */ b("h2", { className: L(be.heading.h3(), "mb-4"), children: e }),
|
|
2952
2952
|
f,
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2953
|
+
/* @__PURE__ */ b("div", { style: C, children: o }),
|
|
2954
|
+
k,
|
|
2955
|
+
r && /* @__PURE__ */ b("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__ */ b("p", { className: "text-red-600 dark:text-red-400", children: r }) }),
|
|
2956
|
+
/* @__PURE__ */ I("div", { className: "flex flex-col sm:flex-row gap-3 mt-6", children: [
|
|
2957
|
+
l && /* @__PURE__ */ b(
|
|
2956
2958
|
ve,
|
|
2957
2959
|
{
|
|
2958
2960
|
onClick: l.onClick,
|
|
@@ -2962,7 +2964,7 @@ const jr = {
|
|
|
2962
2964
|
children: l.label
|
|
2963
2965
|
}
|
|
2964
2966
|
),
|
|
2965
|
-
/* @__PURE__ */
|
|
2967
|
+
/* @__PURE__ */ b(
|
|
2966
2968
|
ve,
|
|
2967
2969
|
{
|
|
2968
2970
|
onClick: s.onClick,
|
|
@@ -2974,9 +2976,55 @@ const jr = {
|
|
|
2974
2976
|
] })
|
|
2975
2977
|
] }) });
|
|
2976
2978
|
};
|
|
2979
|
+
function Kr({
|
|
2980
|
+
options: e,
|
|
2981
|
+
value: o,
|
|
2982
|
+
onChange: r,
|
|
2983
|
+
className: t,
|
|
2984
|
+
disabled: s = !1,
|
|
2985
|
+
size: l = "md"
|
|
2986
|
+
}) {
|
|
2987
|
+
const i = {
|
|
2988
|
+
sm: "px-3 py-1.5 text-xs",
|
|
2989
|
+
md: "px-4 py-2 text-sm",
|
|
2990
|
+
lg: "px-6 py-3 text-base"
|
|
2991
|
+
};
|
|
2992
|
+
return /* @__PURE__ */ b(
|
|
2993
|
+
"div",
|
|
2994
|
+
{
|
|
2995
|
+
className: L(
|
|
2996
|
+
"inline-flex rounded-lg bg-gray-100 dark:bg-gray-800 p-1",
|
|
2997
|
+
s && "opacity-50",
|
|
2998
|
+
t
|
|
2999
|
+
),
|
|
3000
|
+
role: "radiogroup",
|
|
3001
|
+
children: e.map((m) => {
|
|
3002
|
+
const c = o === m.value;
|
|
3003
|
+
return /* @__PURE__ */ b(
|
|
3004
|
+
"button",
|
|
3005
|
+
{
|
|
3006
|
+
type: "button",
|
|
3007
|
+
role: "radio",
|
|
3008
|
+
"aria-checked": c,
|
|
3009
|
+
disabled: s,
|
|
3010
|
+
onClick: () => !s && r(m.value),
|
|
3011
|
+
className: L(
|
|
3012
|
+
i[l],
|
|
3013
|
+
"font-medium rounded-md transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
|
|
3014
|
+
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",
|
|
3015
|
+
s && "cursor-not-allowed"
|
|
3016
|
+
),
|
|
3017
|
+
children: m.label
|
|
3018
|
+
},
|
|
3019
|
+
m.value
|
|
3020
|
+
);
|
|
3021
|
+
})
|
|
3022
|
+
}
|
|
3023
|
+
);
|
|
3024
|
+
}
|
|
2977
3025
|
let fe = null;
|
|
2978
3026
|
const Lr = async () => (fe || (fe = await import("@revenuecat/purchases-js")), fe);
|
|
2979
|
-
let
|
|
3027
|
+
let R = null;
|
|
2980
3028
|
const _r = (e) => {
|
|
2981
3029
|
const o = e.rcBillingProduct, r = o?.defaultSubscriptionOption;
|
|
2982
3030
|
return {
|
|
@@ -3007,7 +3055,7 @@ const _r = (e) => {
|
|
|
3007
3055
|
} : { isActive: !1 };
|
|
3008
3056
|
}, Ve = Be(
|
|
3009
3057
|
void 0
|
|
3010
|
-
),
|
|
3058
|
+
), qr = ({
|
|
3011
3059
|
apiKey: e,
|
|
3012
3060
|
entitlementId: o,
|
|
3013
3061
|
userEmail: r,
|
|
@@ -3015,65 +3063,65 @@ const _r = (e) => {
|
|
|
3015
3063
|
onPurchaseSuccess: s,
|
|
3016
3064
|
children: l
|
|
3017
3065
|
}) => {
|
|
3018
|
-
const [i,
|
|
3019
|
-
|
|
3066
|
+
const [i, m] = B([]), [c, f] = B(null), [k, v] = B(!1), [C, x] = B(null), [A, z] = B(!1), [N, G] = B(null), [F, V] = B(null), w = !e || e === "your_revenuecat_api_key_here", T = W(() => {
|
|
3067
|
+
m([]), f(null), V(null), x(null), z(!1), G(null), R = null;
|
|
3020
3068
|
}, []), O = W(async () => {
|
|
3021
|
-
if (
|
|
3069
|
+
if (R)
|
|
3022
3070
|
try {
|
|
3023
|
-
const
|
|
3024
|
-
if (
|
|
3025
|
-
|
|
3026
|
-
const
|
|
3071
|
+
const p = await R.getOfferings();
|
|
3072
|
+
if (p.current) {
|
|
3073
|
+
V(p.current);
|
|
3074
|
+
const h = p.current.availablePackages.map(
|
|
3027
3075
|
_r
|
|
3028
3076
|
);
|
|
3029
|
-
|
|
3077
|
+
m(h);
|
|
3030
3078
|
}
|
|
3031
|
-
} catch (
|
|
3032
|
-
const
|
|
3033
|
-
x(
|
|
3079
|
+
} catch (p) {
|
|
3080
|
+
const h = p instanceof Error ? p.message : "Failed to load offerings";
|
|
3081
|
+
x(h), t?.(p instanceof Error ? p : new Error(h));
|
|
3034
3082
|
}
|
|
3035
3083
|
}, [t]), j = W(async () => {
|
|
3036
|
-
if (
|
|
3084
|
+
if (R)
|
|
3037
3085
|
try {
|
|
3038
|
-
const
|
|
3039
|
-
f(
|
|
3040
|
-
} catch (
|
|
3041
|
-
const
|
|
3042
|
-
x(
|
|
3086
|
+
const p = await R.getCustomerInfo(), h = ge(p, o);
|
|
3087
|
+
f(h.isActive ? h : null);
|
|
3088
|
+
} catch (p) {
|
|
3089
|
+
const h = p instanceof Error ? p.message : "Failed to load subscription status";
|
|
3090
|
+
x(h), t?.(p instanceof Error ? p : new Error(h));
|
|
3043
3091
|
}
|
|
3044
|
-
}, [o, t]),
|
|
3045
|
-
async (
|
|
3046
|
-
if (
|
|
3092
|
+
}, [o, t]), u = W(
|
|
3093
|
+
async (p, h) => {
|
|
3094
|
+
if (N && N !== p && T(), !(A && N === p))
|
|
3047
3095
|
try {
|
|
3048
3096
|
if (v(!0), x(null), w)
|
|
3049
3097
|
console.warn(
|
|
3050
3098
|
"[SubscriptionProvider] RevenueCat API key not configured"
|
|
3051
|
-
),
|
|
3099
|
+
), m([]), f(null);
|
|
3052
3100
|
else {
|
|
3053
3101
|
const y = await Lr(), D = {
|
|
3054
3102
|
apiKey: e,
|
|
3055
|
-
appUserId:
|
|
3103
|
+
appUserId: p
|
|
3056
3104
|
};
|
|
3057
|
-
|
|
3058
|
-
const
|
|
3059
|
-
if (
|
|
3105
|
+
R = y.Purchases.configure(D);
|
|
3106
|
+
const d = h || r;
|
|
3107
|
+
if (d && R)
|
|
3060
3108
|
try {
|
|
3061
|
-
await
|
|
3109
|
+
await R.setAttributes({ email: d });
|
|
3062
3110
|
} catch {
|
|
3063
3111
|
}
|
|
3064
3112
|
await Promise.all([O(), j()]);
|
|
3065
3113
|
}
|
|
3066
|
-
G(
|
|
3114
|
+
G(p), z(!0);
|
|
3067
3115
|
} catch (y) {
|
|
3068
3116
|
const D = y instanceof Error ? y.message : "Failed to initialize";
|
|
3069
|
-
x(D), f(null),
|
|
3117
|
+
x(D), f(null), m([]), t?.(y instanceof Error ? y : new Error(D));
|
|
3070
3118
|
} finally {
|
|
3071
3119
|
v(!1);
|
|
3072
3120
|
}
|
|
3073
3121
|
},
|
|
3074
3122
|
[
|
|
3075
|
-
|
|
3076
|
-
|
|
3123
|
+
N,
|
|
3124
|
+
A,
|
|
3077
3125
|
w,
|
|
3078
3126
|
e,
|
|
3079
3127
|
r,
|
|
@@ -3082,8 +3130,8 @@ const _r = (e) => {
|
|
|
3082
3130
|
t,
|
|
3083
3131
|
T
|
|
3084
3132
|
]
|
|
3085
|
-
),
|
|
3086
|
-
async (
|
|
3133
|
+
), _ = W(
|
|
3134
|
+
async (p) => {
|
|
3087
3135
|
try {
|
|
3088
3136
|
if (v(!0), x(null), w) {
|
|
3089
3137
|
await new Promise((te) => setTimeout(te, 2e3));
|
|
@@ -3091,33 +3139,33 @@ const _r = (e) => {
|
|
|
3091
3139
|
isActive: !0,
|
|
3092
3140
|
expirationDate: new Date(Date.now() + 365 * 24 * 60 * 60 * 1e3),
|
|
3093
3141
|
purchaseDate: /* @__PURE__ */ new Date(),
|
|
3094
|
-
productIdentifier:
|
|
3142
|
+
productIdentifier: p,
|
|
3095
3143
|
willRenew: !0
|
|
3096
3144
|
};
|
|
3097
|
-
return f(q), s?.(
|
|
3145
|
+
return f(q), s?.(p), !0;
|
|
3098
3146
|
}
|
|
3099
|
-
if (!
|
|
3147
|
+
if (!R || !F)
|
|
3100
3148
|
throw new Error("Subscription service not initialized");
|
|
3101
|
-
const y =
|
|
3102
|
-
(q) => q.identifier ===
|
|
3149
|
+
const y = F.availablePackages.find(
|
|
3150
|
+
(q) => q.identifier === p
|
|
3103
3151
|
);
|
|
3104
3152
|
if (!y)
|
|
3105
|
-
throw new Error(`Package not found: ${
|
|
3106
|
-
const D = await
|
|
3153
|
+
throw new Error(`Package not found: ${p}`);
|
|
3154
|
+
const D = await R.purchase({
|
|
3107
3155
|
rcPackage: y,
|
|
3108
3156
|
...r ? { customerEmail: r } : {}
|
|
3109
|
-
}),
|
|
3110
|
-
return f(
|
|
3111
|
-
} catch (
|
|
3112
|
-
const y =
|
|
3113
|
-
return x(y), t?.(
|
|
3157
|
+
}), d = ge(D.customerInfo, o);
|
|
3158
|
+
return f(d.isActive ? d : null), d.isActive && s?.(p), d.isActive;
|
|
3159
|
+
} catch (h) {
|
|
3160
|
+
const y = h instanceof Error ? h.message : "Purchase failed";
|
|
3161
|
+
return x(y), t?.(h instanceof Error ? h : new Error(y)), !1;
|
|
3114
3162
|
} finally {
|
|
3115
3163
|
v(!1);
|
|
3116
3164
|
}
|
|
3117
3165
|
},
|
|
3118
3166
|
[
|
|
3119
3167
|
w,
|
|
3120
|
-
|
|
3168
|
+
F,
|
|
3121
3169
|
r,
|
|
3122
3170
|
o,
|
|
3123
3171
|
s,
|
|
@@ -3127,13 +3175,13 @@ const _r = (e) => {
|
|
|
3127
3175
|
try {
|
|
3128
3176
|
if (v(!0), x(null), w)
|
|
3129
3177
|
return await new Promise((y) => setTimeout(y, 1e3)), x("No previous purchases found"), !1;
|
|
3130
|
-
if (!
|
|
3178
|
+
if (!R)
|
|
3131
3179
|
throw new Error("Subscription service not initialized");
|
|
3132
|
-
const
|
|
3133
|
-
return f(
|
|
3134
|
-
} catch (
|
|
3135
|
-
const
|
|
3136
|
-
return x(
|
|
3180
|
+
const p = await R.getCustomerInfo(), h = ge(p, o);
|
|
3181
|
+
return f(h.isActive ? h : null), h.isActive || x("No previous purchases found"), h.isActive;
|
|
3182
|
+
} catch (p) {
|
|
3183
|
+
const h = p instanceof Error ? p.message : "Restore failed";
|
|
3184
|
+
return x(h), t?.(p instanceof Error ? p : new Error(h)), !1;
|
|
3137
3185
|
} finally {
|
|
3138
3186
|
v(!1);
|
|
3139
3187
|
}
|
|
@@ -3141,37 +3189,37 @@ const _r = (e) => {
|
|
|
3141
3189
|
if (!w)
|
|
3142
3190
|
try {
|
|
3143
3191
|
x(null), await Promise.all([j(), O()]);
|
|
3144
|
-
} catch (
|
|
3145
|
-
const
|
|
3146
|
-
x(
|
|
3192
|
+
} catch (p) {
|
|
3193
|
+
const h = p instanceof Error ? p.message : "Refresh failed";
|
|
3194
|
+
x(h), t?.(p instanceof Error ? p : new Error(h));
|
|
3147
3195
|
}
|
|
3148
3196
|
}, [w, j, O, t]), K = W(() => {
|
|
3149
3197
|
x(null);
|
|
3150
3198
|
}, []);
|
|
3151
3199
|
Ye(() => {
|
|
3152
|
-
if (!
|
|
3153
|
-
const
|
|
3200
|
+
if (!A || w || !R) return;
|
|
3201
|
+
const p = setInterval(
|
|
3154
3202
|
() => {
|
|
3155
3203
|
j().catch(() => {
|
|
3156
3204
|
});
|
|
3157
3205
|
},
|
|
3158
3206
|
300 * 1e3
|
|
3159
3207
|
);
|
|
3160
|
-
return () => clearInterval(
|
|
3161
|
-
}, [
|
|
3208
|
+
return () => clearInterval(p);
|
|
3209
|
+
}, [A, w, j]);
|
|
3162
3210
|
const re = {
|
|
3163
3211
|
products: i,
|
|
3164
|
-
currentSubscription:
|
|
3212
|
+
currentSubscription: c,
|
|
3165
3213
|
isLoading: k,
|
|
3166
3214
|
error: C,
|
|
3167
|
-
initialize:
|
|
3168
|
-
purchase:
|
|
3215
|
+
initialize: u,
|
|
3216
|
+
purchase: _,
|
|
3169
3217
|
restore: Z,
|
|
3170
3218
|
refresh: ee,
|
|
3171
3219
|
clearError: K
|
|
3172
3220
|
};
|
|
3173
|
-
return /* @__PURE__ */
|
|
3174
|
-
},
|
|
3221
|
+
return /* @__PURE__ */ b(Ve.Provider, { value: re, children: l });
|
|
3222
|
+
}, Xr = () => {
|
|
3175
3223
|
const e = Ke(Ve);
|
|
3176
3224
|
if (!e)
|
|
3177
3225
|
throw new Error(
|
|
@@ -3194,18 +3242,19 @@ const _r = (e) => {
|
|
|
3194
3242
|
o.forEach((r) => sessionStorage.removeItem(r));
|
|
3195
3243
|
} catch {
|
|
3196
3244
|
}
|
|
3197
|
-
},
|
|
3245
|
+
}, Jr = () => {
|
|
3198
3246
|
try {
|
|
3199
|
-
|
|
3247
|
+
R && (R.close(), R = null), Fr();
|
|
3200
3248
|
} catch {
|
|
3201
3249
|
}
|
|
3202
3250
|
};
|
|
3203
3251
|
export {
|
|
3252
|
+
Kr as SegmentedControl,
|
|
3204
3253
|
Yr as SubscriptionLayout,
|
|
3205
|
-
|
|
3254
|
+
qr as SubscriptionProvider,
|
|
3206
3255
|
Br as SubscriptionTile,
|
|
3207
3256
|
Fr as clearRevenueCatCheckoutSessions,
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3257
|
+
Jr as closeRevenueCatInstance,
|
|
3258
|
+
L as cn,
|
|
3259
|
+
Xr as useSubscriptionContext
|
|
3211
3260
|
};
|