@onside/install-widget 1.0.2 → 1.0.4

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.
Files changed (30) hide show
  1. package/README.md +13 -0
  2. package/dist-lib/{AndroidPlatformModal-B8lt-w-V.js → AndroidPlatformModal-2Ykjo2V7.js} +14 -13
  3. package/dist-lib/AndroidPlatformModal-DTglyxUG.cjs +1 -0
  4. package/dist-lib/{Dialog-DXOEeh8t.js → Dialog-yEP-7Deb.js} +1 -1
  5. package/dist-lib/{Dialog-D53Br-Xy.cjs → Dialog-yZ9bWtK1.cjs} +1 -1
  6. package/dist-lib/{GoToSafariModal-CLxmpCng.js → GoToSafariModal-C_KBizh8.js} +27 -26
  7. package/dist-lib/GoToSafariModal-Cgx0X0rg.cjs +1 -0
  8. package/dist-lib/{UpdateIOSModal-ms1UJmHc.js → UpdateIOSModal-BGWvssyd.js} +20 -19
  9. package/dist-lib/UpdateIOSModal-CE-d3YCr.cjs +1 -0
  10. package/dist-lib/hooks.cjs +1 -0
  11. package/dist-lib/hooks.d.ts +45 -0
  12. package/dist-lib/hooks.js +5 -0
  13. package/dist-lib/install-package-B17QfMPy.cjs +1 -0
  14. package/dist-lib/{install-package-CyWo-B7v.js → install-package-DowlG4hO.js} +600 -969
  15. package/dist-lib/install-package.cjs +1 -1
  16. package/dist-lib/install-package.d.ts +106 -2
  17. package/dist-lib/install-package.js +21 -6
  18. package/dist-lib/install-widget.css +1 -1
  19. package/dist-lib/installUrlService-AjG03i8i.cjs +1 -0
  20. package/dist-lib/installUrlService-CrJfYPwM.js +95 -0
  21. package/dist-lib/useInstallUrl-CjUspi0p.cjs +1 -0
  22. package/dist-lib/useInstallUrl-JIdkWpgj.js +87 -0
  23. package/dist-lib/utils.cjs +1 -0
  24. package/dist-lib/utils.d.ts +92 -0
  25. package/dist-lib/utils.js +289 -0
  26. package/package.json +22 -2
  27. package/dist-lib/AndroidPlatformModal-BNghy_S2.cjs +0 -1
  28. package/dist-lib/GoToSafariModal-DJDoZzSN.cjs +0 -1
  29. package/dist-lib/UpdateIOSModal-Cd2FI2Dl.cjs +0 -1
  30. package/dist-lib/install-package-q3ncGygt.cjs +0 -1
@@ -1,94 +1,97 @@
1
- import { jsx as h, jsxs as W } from "react/jsx-runtime";
2
- import * as H from "react";
3
- import re, { useRef as dt, useEffect as $e, useState as ut, useCallback as ne, createContext as pt, useContext as mt, lazy as ye, Suspense as ft } from "react";
4
- function He(e) {
5
- var t, o, r = "";
6
- if (typeof e == "string" || typeof e == "number") r += e;
1
+ import { jsx as w, jsxs as j, Fragment as Be } from "react/jsx-runtime";
2
+ import * as $ from "react";
3
+ import { useState as Ve, useCallback as Q, createContext as je, useRef as Ue, useContext as We, useEffect as $e, lazy as me, Suspense as He } from "react";
4
+ import { S as ue, c as Ke, u as De, i as Ze } from "./useInstallUrl-JIdkWpgj.js";
5
+ import { trackModalEvent as Ye, trackEvent as qe, resolveInstallConditions as Je, getDeviceInfo as Xe } from "./utils.js";
6
+ import "./installUrlService-CrJfYPwM.js";
7
+ function Se(e) {
8
+ var t, r, o = "";
9
+ if (typeof e == "string" || typeof e == "number") o += e;
7
10
  else if (typeof e == "object") if (Array.isArray(e)) {
8
- var n = e.length;
9
- for (t = 0; t < n; t++) e[t] && (o = He(e[t])) && (r && (r += " "), r += o);
10
- } else for (o in e) e[o] && (r && (r += " "), r += o);
11
- return r;
11
+ var a = e.length;
12
+ for (t = 0; t < a; t++) e[t] && (r = Se(e[t])) && (o && (o += " "), o += r);
13
+ } else for (r in e) e[r] && (o && (o += " "), o += r);
14
+ return o;
12
15
  }
13
- function bt() {
14
- for (var e, t, o = 0, r = "", n = arguments.length; o < n; o++) (e = arguments[o]) && (t = He(e)) && (r && (r += " "), r += t);
15
- return r;
16
+ function Qe() {
17
+ for (var e, t, r = 0, o = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = Se(e)) && (o && (o += " "), o += t);
18
+ return o;
16
19
  }
17
- const ve = "-", gt = (e) => {
18
- const t = wt(e), {
19
- conflictingClassGroups: o,
20
- conflictingClassGroupModifiers: r
20
+ const pe = "-", et = (e) => {
21
+ const t = ot(e), {
22
+ conflictingClassGroups: r,
23
+ conflictingClassGroupModifiers: o
21
24
  } = e;
22
25
  return {
23
26
  getClassGroupId: (i) => {
24
- const p = i.split(ve);
25
- return p[0] === "" && p.length !== 1 && p.shift(), Xe(p, t) || ht(i);
27
+ const p = i.split(pe);
28
+ return p[0] === "" && p.length !== 1 && p.shift(), ze(p, t) || tt(i);
26
29
  },
27
30
  getConflictingClassGroupIds: (i, p) => {
28
- const u = o[i] || [];
29
- return p && r[i] ? [...u, ...r[i]] : u;
31
+ const m = r[i] || [];
32
+ return p && o[i] ? [...m, ...o[i]] : m;
30
33
  }
31
34
  };
32
- }, Xe = (e, t) => {
35
+ }, ze = (e, t) => {
33
36
  if (e.length === 0)
34
37
  return t.classGroupId;
35
- const o = e[0], r = t.nextPart.get(o), n = r ? Xe(e.slice(1), r) : void 0;
36
- if (n)
37
- return n;
38
+ const r = e[0], o = t.nextPart.get(r), a = o ? ze(e.slice(1), o) : void 0;
39
+ if (a)
40
+ return a;
38
41
  if (t.validators.length === 0)
39
42
  return;
40
- const s = e.join(ve);
43
+ const l = e.join(pe);
41
44
  return t.validators.find(({
42
45
  validator: i
43
- }) => i(s))?.classGroupId;
44
- }, Re = /^\[(.+)\]$/, ht = (e) => {
45
- if (Re.test(e)) {
46
- const t = Re.exec(e)[1], o = t?.substring(0, t.indexOf(":"));
47
- if (o)
48
- return "arbitrary.." + o;
46
+ }) => i(l))?.classGroupId;
47
+ }, ve = /^\[(.+)\]$/, tt = (e) => {
48
+ if (ve.test(e)) {
49
+ const t = ve.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
50
+ if (r)
51
+ return "arbitrary.." + r;
49
52
  }
50
- }, wt = (e) => {
53
+ }, ot = (e) => {
51
54
  const {
52
55
  theme: t,
53
- classGroups: o
54
- } = e, r = {
56
+ classGroups: r
57
+ } = e, o = {
55
58
  nextPart: /* @__PURE__ */ new Map(),
56
59
  validators: []
57
60
  };
58
- for (const n in o)
59
- he(o[n], r, n, t);
60
- return r;
61
- }, he = (e, t, o, r) => {
62
- e.forEach((n) => {
63
- if (typeof n == "string") {
64
- const s = n === "" ? t : Pe(t, n);
65
- s.classGroupId = o;
61
+ for (const a in r)
62
+ le(r[a], o, a, t);
63
+ return o;
64
+ }, le = (e, t, r, o) => {
65
+ e.forEach((a) => {
66
+ if (typeof a == "string") {
67
+ const l = a === "" ? t : Ce(t, a);
68
+ l.classGroupId = r;
66
69
  return;
67
70
  }
68
- if (typeof n == "function") {
69
- if (xt(n)) {
70
- he(n(r), t, o, r);
71
+ if (typeof a == "function") {
72
+ if (rt(a)) {
73
+ le(a(o), t, r, o);
71
74
  return;
72
75
  }
73
76
  t.validators.push({
74
- validator: n,
75
- classGroupId: o
77
+ validator: a,
78
+ classGroupId: r
76
79
  });
77
80
  return;
78
81
  }
79
- Object.entries(n).forEach(([s, i]) => {
80
- he(i, Pe(t, s), o, r);
82
+ Object.entries(a).forEach(([l, i]) => {
83
+ le(i, Ce(t, l), r, o);
81
84
  });
82
85
  });
83
- }, Pe = (e, t) => {
84
- let o = e;
85
- return t.split(ve).forEach((r) => {
86
- o.nextPart.has(r) || o.nextPart.set(r, {
86
+ }, Ce = (e, t) => {
87
+ let r = e;
88
+ return t.split(pe).forEach((o) => {
89
+ r.nextPart.has(o) || r.nextPart.set(o, {
87
90
  nextPart: /* @__PURE__ */ new Map(),
88
91
  validators: []
89
- }), o = o.nextPart.get(r);
90
- }), o;
91
- }, xt = (e) => e.isThemeGetter, kt = (e) => {
92
+ }), r = r.nextPart.get(o);
93
+ }), r;
94
+ }, rt = (e) => e.isThemeGetter, nt = (e) => {
92
95
  if (e < 1)
93
96
  return {
94
97
  get: () => {
@@ -96,55 +99,55 @@ const ve = "-", gt = (e) => {
96
99
  set: () => {
97
100
  }
98
101
  };
99
- let t = 0, o = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
100
- const n = (s, i) => {
101
- o.set(s, i), t++, t > e && (t = 0, r = o, o = /* @__PURE__ */ new Map());
102
+ let t = 0, r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
103
+ const a = (l, i) => {
104
+ r.set(l, i), t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ new Map());
102
105
  };
103
106
  return {
104
- get(s) {
105
- let i = o.get(s);
107
+ get(l) {
108
+ let i = r.get(l);
106
109
  if (i !== void 0)
107
110
  return i;
108
- if ((i = r.get(s)) !== void 0)
109
- return n(s, i), i;
111
+ if ((i = o.get(l)) !== void 0)
112
+ return a(l, i), i;
110
113
  },
111
- set(s, i) {
112
- o.has(s) ? o.set(s, i) : n(s, i);
114
+ set(l, i) {
115
+ r.has(l) ? r.set(l, i) : a(l, i);
113
116
  }
114
117
  };
115
- }, we = "!", xe = ":", yt = xe.length, vt = (e) => {
118
+ }, ce = "!", de = ":", st = de.length, at = (e) => {
116
119
  const {
117
120
  prefix: t,
118
- experimentalParseClassName: o
121
+ experimentalParseClassName: r
119
122
  } = e;
120
- let r = (n) => {
121
- const s = [];
122
- let i = 0, p = 0, u = 0, m;
123
- for (let v = 0; v < n.length; v++) {
124
- let w = n[v];
123
+ let o = (a) => {
124
+ const l = [];
125
+ let i = 0, p = 0, m = 0, g;
126
+ for (let b = 0; b < a.length; b++) {
127
+ let k = a[b];
125
128
  if (i === 0 && p === 0) {
126
- if (w === xe) {
127
- s.push(n.slice(u, v)), u = v + yt;
129
+ if (k === de) {
130
+ l.push(a.slice(m, b)), m = b + st;
128
131
  continue;
129
132
  }
130
- if (w === "/") {
131
- m = v;
133
+ if (k === "/") {
134
+ g = b;
132
135
  continue;
133
136
  }
134
137
  }
135
- w === "[" ? i++ : w === "]" ? i-- : w === "(" ? p++ : w === ")" && p--;
138
+ k === "[" ? i++ : k === "]" ? i-- : k === "(" ? p++ : k === ")" && p--;
136
139
  }
137
- const g = s.length === 0 ? n : n.substring(u), k = St(g), S = k !== g, I = m && m > u ? m - u : void 0;
140
+ const f = l.length === 0 ? a : a.substring(m), M = it(f), T = M !== f, C = g && g > m ? g - m : void 0;
138
141
  return {
139
- modifiers: s,
140
- hasImportantModifier: S,
141
- baseClassName: k,
142
- maybePostfixModifierPosition: I
142
+ modifiers: l,
143
+ hasImportantModifier: T,
144
+ baseClassName: M,
145
+ maybePostfixModifierPosition: C
143
146
  };
144
147
  };
145
148
  if (t) {
146
- const n = t + xe, s = r;
147
- r = (i) => i.startsWith(n) ? s(i.substring(n.length)) : {
149
+ const a = t + de, l = o;
150
+ o = (i) => i.startsWith(a) ? l(i.substring(a.length)) : {
148
151
  isExternal: !0,
149
152
  modifiers: [],
150
153
  hasImportantModifier: !1,
@@ -152,122 +155,122 @@ const ve = "-", gt = (e) => {
152
155
  maybePostfixModifierPosition: void 0
153
156
  };
154
157
  }
155
- if (o) {
156
- const n = r;
157
- r = (s) => o({
158
- className: s,
159
- parseClassName: n
158
+ if (r) {
159
+ const a = o;
160
+ o = (l) => r({
161
+ className: l,
162
+ parseClassName: a
160
163
  });
161
164
  }
162
- return r;
163
- }, St = (e) => e.endsWith(we) ? e.substring(0, e.length - 1) : e.startsWith(we) ? e.substring(1) : e, It = (e) => {
164
- const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
165
- return (r) => {
166
- if (r.length <= 1)
167
- return r;
168
- const n = [];
169
- let s = [];
170
- return r.forEach((i) => {
171
- i[0] === "[" || t[i] ? (n.push(...s.sort(), i), s = []) : s.push(i);
172
- }), n.push(...s.sort()), n;
165
+ return o;
166
+ }, it = (e) => e.endsWith(ce) ? e.substring(0, e.length - 1) : e.startsWith(ce) ? e.substring(1) : e, lt = (e) => {
167
+ const t = Object.fromEntries(e.orderSensitiveModifiers.map((o) => [o, !0]));
168
+ return (o) => {
169
+ if (o.length <= 1)
170
+ return o;
171
+ const a = [];
172
+ let l = [];
173
+ return o.forEach((i) => {
174
+ i[0] === "[" || t[i] ? (a.push(...l.sort(), i), l = []) : l.push(i);
175
+ }), a.push(...l.sort()), a;
173
176
  };
174
- }, Ot = (e) => ({
175
- cache: kt(e.cacheSize),
176
- parseClassName: vt(e),
177
- sortModifiers: It(e),
178
- ...gt(e)
179
- }), _t = /\s+/, Et = (e, t) => {
177
+ }, ct = (e) => ({
178
+ cache: nt(e.cacheSize),
179
+ parseClassName: at(e),
180
+ sortModifiers: lt(e),
181
+ ...et(e)
182
+ }), dt = /\s+/, mt = (e, t) => {
180
183
  const {
181
- parseClassName: o,
182
- getClassGroupId: r,
183
- getConflictingClassGroupIds: n,
184
- sortModifiers: s
185
- } = t, i = [], p = e.trim().split(_t);
186
- let u = "";
187
- for (let m = p.length - 1; m >= 0; m -= 1) {
188
- const g = p[m], {
189
- isExternal: k,
190
- modifiers: S,
191
- hasImportantModifier: I,
192
- baseClassName: v,
193
- maybePostfixModifierPosition: w
194
- } = o(g);
195
- if (k) {
196
- u = g + (u.length > 0 ? " " + u : u);
184
+ parseClassName: r,
185
+ getClassGroupId: o,
186
+ getConflictingClassGroupIds: a,
187
+ sortModifiers: l
188
+ } = t, i = [], p = e.trim().split(dt);
189
+ let m = "";
190
+ for (let g = p.length - 1; g >= 0; g -= 1) {
191
+ const f = p[g], {
192
+ isExternal: M,
193
+ modifiers: T,
194
+ hasImportantModifier: C,
195
+ baseClassName: b,
196
+ maybePostfixModifierPosition: k
197
+ } = r(f);
198
+ if (M) {
199
+ m = f + (m.length > 0 ? " " + m : m);
197
200
  continue;
198
201
  }
199
- let _ = !!w, C = r(_ ? v.substring(0, w) : v);
200
- if (!C) {
201
- if (!_) {
202
- u = g + (u.length > 0 ? " " + u : u);
202
+ let z = !!k, y = o(z ? b.substring(0, k) : b);
203
+ if (!y) {
204
+ if (!z) {
205
+ m = f + (m.length > 0 ? " " + m : m);
203
206
  continue;
204
207
  }
205
- if (C = r(v), !C) {
206
- u = g + (u.length > 0 ? " " + u : u);
208
+ if (y = o(b), !y) {
209
+ m = f + (m.length > 0 ? " " + m : m);
207
210
  continue;
208
211
  }
209
- _ = !1;
212
+ z = !1;
210
213
  }
211
- const L = s(S).join(":"), T = I ? L + we : L, M = T + C;
212
- if (i.includes(M))
214
+ const A = l(T).join(":"), E = C ? A + ce : A, N = E + y;
215
+ if (i.includes(N))
213
216
  continue;
214
- i.push(M);
215
- const R = n(C, _);
216
- for (let E = 0; E < R.length; ++E) {
217
- const D = R[E];
218
- i.push(T + D);
217
+ i.push(N);
218
+ const P = a(y, z);
219
+ for (let _ = 0; _ < P.length; ++_) {
220
+ const R = P[_];
221
+ i.push(E + R);
219
222
  }
220
- u = g + (u.length > 0 ? " " + u : u);
223
+ m = f + (m.length > 0 ? " " + m : m);
221
224
  }
222
- return u;
225
+ return m;
223
226
  };
224
- function At() {
225
- let e = 0, t, o, r = "";
227
+ function ut() {
228
+ let e = 0, t, r, o = "";
226
229
  for (; e < arguments.length; )
227
- (t = arguments[e++]) && (o = Ye(t)) && (r && (r += " "), r += o);
228
- return r;
230
+ (t = arguments[e++]) && (r = Ae(t)) && (o && (o += " "), o += r);
231
+ return o;
229
232
  }
230
- const Ye = (e) => {
233
+ const Ae = (e) => {
231
234
  if (typeof e == "string")
232
235
  return e;
233
- let t, o = "";
234
- for (let r = 0; r < e.length; r++)
235
- e[r] && (t = Ye(e[r])) && (o && (o += " "), o += t);
236
- return o;
236
+ let t, r = "";
237
+ for (let o = 0; o < e.length; o++)
238
+ e[o] && (t = Ae(e[o])) && (r && (r += " "), r += t);
239
+ return r;
237
240
  };
238
- function Ct(e, ...t) {
239
- let o, r, n, s = i;
240
- function i(u) {
241
- const m = t.reduce((g, k) => k(g), e());
242
- return o = Ot(m), r = o.cache.get, n = o.cache.set, s = p, p(u);
241
+ function pt(e, ...t) {
242
+ let r, o, a, l = i;
243
+ function i(m) {
244
+ const g = t.reduce((f, M) => M(f), e());
245
+ return r = ct(g), o = r.cache.get, a = r.cache.set, l = p, p(m);
243
246
  }
244
- function p(u) {
245
- const m = r(u);
246
- if (m)
247
- return m;
248
- const g = Et(u, o);
249
- return n(u, g), g;
247
+ function p(m) {
248
+ const g = o(m);
249
+ if (g)
250
+ return g;
251
+ const f = mt(m, r);
252
+ return a(m, f), f;
250
253
  }
251
254
  return function() {
252
- return s(At.apply(null, arguments));
255
+ return l(ut.apply(null, arguments));
253
256
  };
254
257
  }
255
- const x = (e) => {
256
- const t = (o) => o[e] || [];
258
+ const h = (e) => {
259
+ const t = (r) => r[e] || [];
257
260
  return t.isThemeGetter = !0, t;
258
- }, Je = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ze = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Tt = /^\d+\/\d+$/, Mt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Rt = /\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$/, Pt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Nt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, K = (e) => Tt.test(e), f = (e) => !!e && !Number.isNaN(Number(e)), F = (e) => !!e && Number.isInteger(Number(e)), me = (e) => e.endsWith("%") && f(e.slice(0, -1)), z = (e) => Mt.test(e), Lt = () => !0, Dt = (e) => (
261
+ }, Ee = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, _e = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ft = /^\d+\/\d+$/, bt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, gt = /\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$/, ht = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, xt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, W = (e) => ft.test(e), u = (e) => !!e && !Number.isNaN(Number(e)), F = (e) => !!e && Number.isInteger(Number(e)), ae = (e) => e.endsWith("%") && u(e.slice(0, -1)), L = (e) => bt.test(e), kt = () => !0, yt = (e) => (
259
262
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
260
263
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
261
264
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
262
- Rt.test(e) && !Pt.test(e)
263
- ), qe = () => !1, Ft = (e) => Nt.test(e), Gt = (e) => zt.test(e), Ut = (e) => !a(e) && !l(e), Vt = (e) => X(e, tt, qe), a = (e) => Je.test(e), V = (e) => X(e, ot, Dt), fe = (e) => X(e, $t, f), Ne = (e) => X(e, Qe, qe), Bt = (e) => X(e, et, Gt), se = (e) => X(e, rt, Ft), l = (e) => Ze.test(e), J = (e) => Y(e, ot), Wt = (e) => Y(e, Ht), ze = (e) => Y(e, Qe), jt = (e) => Y(e, tt), Kt = (e) => Y(e, et), ie = (e) => Y(e, rt, !0), X = (e, t, o) => {
264
- const r = Je.exec(e);
265
- return r ? r[1] ? t(r[1]) : o(r[2]) : !1;
266
- }, Y = (e, t, o = !1) => {
267
- const r = Ze.exec(e);
268
- return r ? r[1] ? t(r[1]) : o : !1;
269
- }, Qe = (e) => e === "position" || e === "percentage", et = (e) => e === "image" || e === "url", tt = (e) => e === "length" || e === "size" || e === "bg-size", ot = (e) => e === "length", $t = (e) => e === "number", Ht = (e) => e === "family-name", rt = (e) => e === "shadow", Xt = () => {
270
- const e = x("color"), t = x("font"), o = x("text"), r = x("font-weight"), n = x("tracking"), s = x("leading"), i = x("breakpoint"), p = x("container"), u = x("spacing"), m = x("radius"), g = x("shadow"), k = x("inset-shadow"), S = x("text-shadow"), I = x("drop-shadow"), v = x("blur"), w = x("perspective"), _ = x("aspect"), C = x("ease"), L = x("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [
265
+ gt.test(e) && !ht.test(e)
266
+ ), Ne = () => !1, vt = (e) => xt.test(e), Ct = (e) => wt.test(e), It = (e) => !n(e) && !s(e), Mt = (e) => H(e, Re, Ne), n = (e) => Ee.test(e), V = (e) => H(e, Ge, yt), ie = (e) => H(e, _t, u), Ie = (e) => H(e, Pe, Ne), St = (e) => H(e, Te, Ct), ee = (e) => H(e, Le, vt), s = (e) => _e.test(e), D = (e) => K(e, Ge), zt = (e) => K(e, Nt), Me = (e) => K(e, Pe), At = (e) => K(e, Re), Et = (e) => K(e, Te), te = (e) => K(e, Le, !0), H = (e, t, r) => {
267
+ const o = Ee.exec(e);
268
+ return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
269
+ }, K = (e, t, r = !1) => {
270
+ const o = _e.exec(e);
271
+ return o ? o[1] ? t(o[1]) : r : !1;
272
+ }, Pe = (e) => e === "position" || e === "percentage", Te = (e) => e === "image" || e === "url", Re = (e) => e === "length" || e === "size" || e === "bg-size", Ge = (e) => e === "length", _t = (e) => e === "number", Nt = (e) => e === "family-name", Le = (e) => e === "shadow", Pt = () => {
273
+ const e = h("color"), t = h("font"), r = h("text"), o = h("font-weight"), a = h("tracking"), l = h("leading"), i = h("breakpoint"), p = h("container"), m = h("spacing"), g = h("radius"), f = h("shadow"), M = h("inset-shadow"), T = h("text-shadow"), C = h("drop-shadow"), b = h("blur"), k = h("perspective"), z = h("aspect"), y = h("ease"), A = h("animate"), E = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], N = () => [
271
274
  "center",
272
275
  "top",
273
276
  "bottom",
@@ -285,51 +288,51 @@ const x = (e) => {
285
288
  "bottom-left",
286
289
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
287
290
  "left-bottom"
288
- ], R = () => [...M(), l, a], E = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], c = () => [l, a, u], P = () => [K, "full", "auto", ...c()], Ie = () => [F, "none", "subgrid", l, a], Oe = () => ["auto", {
289
- span: ["full", F, l, a]
290
- }, F, l, a], q = () => [F, "auto", l, a], _e = () => ["auto", "min", "max", "fr", l, a], de = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], j = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], N = () => ["auto", ...c()], U = () => [K, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...c()], d = () => [e, l, a], Ee = () => [...M(), ze, Ne, {
291
- position: [l, a]
292
- }], Ae = () => ["no-repeat", {
291
+ ], P = () => [...N(), s, n], _ = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], c = () => [s, n, m], S = () => [W, "full", "auto", ...c()], fe = () => [F, "none", "subgrid", s, n], be = () => ["auto", {
292
+ span: ["full", F, s, n]
293
+ }, F, s, n], Z = () => [F, "auto", s, n], ge = () => ["auto", "min", "max", "fr", s, n], re = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ...c()], B = () => [W, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...c()], d = () => [e, s, n], he = () => [...N(), Me, Ie, {
294
+ position: [s, n]
295
+ }], xe = () => ["no-repeat", {
293
296
  repeat: ["", "x", "y", "space", "round"]
294
- }], Ce = () => ["auto", "cover", "contain", jt, Vt, {
295
- size: [l, a]
296
- }], ue = () => [me, J, V], O = () => [
297
+ }], we = () => ["auto", "cover", "contain", At, Mt, {
298
+ size: [s, n]
299
+ }], ne = () => [ae, D, V], v = () => [
297
300
  // Deprecated since Tailwind CSS v4.0.0
298
301
  "",
299
302
  "none",
300
303
  "full",
301
- m,
302
- l,
303
- a
304
- ], A = () => ["", f, J, V], Q = () => ["solid", "dashed", "dotted", "double"], Te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], y = () => [f, me, ze, Ne], Me = () => [
304
+ g,
305
+ s,
306
+ n
307
+ ], I = () => ["", u, D, V], Y = () => ["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"], x = () => [u, ae, Me, Ie], ye = () => [
305
308
  // Deprecated since Tailwind CSS v4.0.0
306
309
  "",
307
310
  "none",
308
- v,
309
- l,
310
- a
311
- ], ee = () => ["none", f, l, a], te = () => ["none", f, l, a], pe = () => [f, l, a], oe = () => [K, "full", ...c()];
311
+ b,
312
+ s,
313
+ n
314
+ ], q = () => ["none", u, s, n], J = () => ["none", u, s, n], se = () => [u, s, n], X = () => [W, "full", ...c()];
312
315
  return {
313
316
  cacheSize: 500,
314
317
  theme: {
315
318
  animate: ["spin", "ping", "pulse", "bounce"],
316
319
  aspect: ["video"],
317
- blur: [z],
318
- breakpoint: [z],
319
- color: [Lt],
320
- container: [z],
321
- "drop-shadow": [z],
320
+ blur: [L],
321
+ breakpoint: [L],
322
+ color: [kt],
323
+ container: [L],
324
+ "drop-shadow": [L],
322
325
  ease: ["in", "out", "in-out"],
323
- font: [Ut],
326
+ font: [It],
324
327
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
325
- "inset-shadow": [z],
328
+ "inset-shadow": [L],
326
329
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
327
330
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
328
- radius: [z],
329
- shadow: [z],
330
- spacing: ["px", f],
331
- text: [z],
332
- "text-shadow": [z],
331
+ radius: [L],
332
+ shadow: [L],
333
+ spacing: ["px", u],
334
+ text: [L],
335
+ "text-shadow": [L],
333
336
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
334
337
  },
335
338
  classGroups: {
@@ -341,7 +344,7 @@ const x = (e) => {
341
344
  * @see https://tailwindcss.com/docs/aspect-ratio
342
345
  */
343
346
  aspect: [{
344
- aspect: ["auto", "square", K, a, l, _]
347
+ aspect: ["auto", "square", W, n, s, z]
345
348
  }],
346
349
  /**
347
350
  * Container
@@ -354,21 +357,21 @@ const x = (e) => {
354
357
  * @see https://tailwindcss.com/docs/columns
355
358
  */
356
359
  columns: [{
357
- columns: [f, a, l, p]
360
+ columns: [u, n, s, p]
358
361
  }],
359
362
  /**
360
363
  * Break After
361
364
  * @see https://tailwindcss.com/docs/break-after
362
365
  */
363
366
  "break-after": [{
364
- "break-after": T()
367
+ "break-after": E()
365
368
  }],
366
369
  /**
367
370
  * Break Before
368
371
  * @see https://tailwindcss.com/docs/break-before
369
372
  */
370
373
  "break-before": [{
371
- "break-before": T()
374
+ "break-before": E()
372
375
  }],
373
376
  /**
374
377
  * Break Inside
@@ -432,49 +435,49 @@ const x = (e) => {
432
435
  * @see https://tailwindcss.com/docs/object-position
433
436
  */
434
437
  "object-position": [{
435
- object: R()
438
+ object: P()
436
439
  }],
437
440
  /**
438
441
  * Overflow
439
442
  * @see https://tailwindcss.com/docs/overflow
440
443
  */
441
444
  overflow: [{
442
- overflow: E()
445
+ overflow: _()
443
446
  }],
444
447
  /**
445
448
  * Overflow X
446
449
  * @see https://tailwindcss.com/docs/overflow
447
450
  */
448
451
  "overflow-x": [{
449
- "overflow-x": E()
452
+ "overflow-x": _()
450
453
  }],
451
454
  /**
452
455
  * Overflow Y
453
456
  * @see https://tailwindcss.com/docs/overflow
454
457
  */
455
458
  "overflow-y": [{
456
- "overflow-y": E()
459
+ "overflow-y": _()
457
460
  }],
458
461
  /**
459
462
  * Overscroll Behavior
460
463
  * @see https://tailwindcss.com/docs/overscroll-behavior
461
464
  */
462
465
  overscroll: [{
463
- overscroll: D()
466
+ overscroll: R()
464
467
  }],
465
468
  /**
466
469
  * Overscroll Behavior X
467
470
  * @see https://tailwindcss.com/docs/overscroll-behavior
468
471
  */
469
472
  "overscroll-x": [{
470
- "overscroll-x": D()
473
+ "overscroll-x": R()
471
474
  }],
472
475
  /**
473
476
  * Overscroll Behavior Y
474
477
  * @see https://tailwindcss.com/docs/overscroll-behavior
475
478
  */
476
479
  "overscroll-y": [{
477
- "overscroll-y": D()
480
+ "overscroll-y": R()
478
481
  }],
479
482
  /**
480
483
  * Position
@@ -486,63 +489,63 @@ const x = (e) => {
486
489
  * @see https://tailwindcss.com/docs/top-right-bottom-left
487
490
  */
488
491
  inset: [{
489
- inset: P()
492
+ inset: S()
490
493
  }],
491
494
  /**
492
495
  * Right / Left
493
496
  * @see https://tailwindcss.com/docs/top-right-bottom-left
494
497
  */
495
498
  "inset-x": [{
496
- "inset-x": P()
499
+ "inset-x": S()
497
500
  }],
498
501
  /**
499
502
  * Top / Bottom
500
503
  * @see https://tailwindcss.com/docs/top-right-bottom-left
501
504
  */
502
505
  "inset-y": [{
503
- "inset-y": P()
506
+ "inset-y": S()
504
507
  }],
505
508
  /**
506
509
  * Start
507
510
  * @see https://tailwindcss.com/docs/top-right-bottom-left
508
511
  */
509
512
  start: [{
510
- start: P()
513
+ start: S()
511
514
  }],
512
515
  /**
513
516
  * End
514
517
  * @see https://tailwindcss.com/docs/top-right-bottom-left
515
518
  */
516
519
  end: [{
517
- end: P()
520
+ end: S()
518
521
  }],
519
522
  /**
520
523
  * Top
521
524
  * @see https://tailwindcss.com/docs/top-right-bottom-left
522
525
  */
523
526
  top: [{
524
- top: P()
527
+ top: S()
525
528
  }],
526
529
  /**
527
530
  * Right
528
531
  * @see https://tailwindcss.com/docs/top-right-bottom-left
529
532
  */
530
533
  right: [{
531
- right: P()
534
+ right: S()
532
535
  }],
533
536
  /**
534
537
  * Bottom
535
538
  * @see https://tailwindcss.com/docs/top-right-bottom-left
536
539
  */
537
540
  bottom: [{
538
- bottom: P()
541
+ bottom: S()
539
542
  }],
540
543
  /**
541
544
  * Left
542
545
  * @see https://tailwindcss.com/docs/top-right-bottom-left
543
546
  */
544
547
  left: [{
545
- left: P()
548
+ left: S()
546
549
  }],
547
550
  /**
548
551
  * Visibility
@@ -554,7 +557,7 @@ const x = (e) => {
554
557
  * @see https://tailwindcss.com/docs/z-index
555
558
  */
556
559
  z: [{
557
- z: [F, "auto", l, a]
560
+ z: [F, "auto", s, n]
558
561
  }],
559
562
  // ------------------------
560
563
  // --- Flexbox and Grid ---
@@ -564,7 +567,7 @@ const x = (e) => {
564
567
  * @see https://tailwindcss.com/docs/flex-basis
565
568
  */
566
569
  basis: [{
567
- basis: [K, "full", "auto", p, ...c()]
570
+ basis: [W, "full", "auto", p, ...c()]
568
571
  }],
569
572
  /**
570
573
  * Flex Direction
@@ -585,84 +588,84 @@ const x = (e) => {
585
588
  * @see https://tailwindcss.com/docs/flex
586
589
  */
587
590
  flex: [{
588
- flex: [f, K, "auto", "initial", "none", a]
591
+ flex: [u, W, "auto", "initial", "none", n]
589
592
  }],
590
593
  /**
591
594
  * Flex Grow
592
595
  * @see https://tailwindcss.com/docs/flex-grow
593
596
  */
594
597
  grow: [{
595
- grow: ["", f, l, a]
598
+ grow: ["", u, s, n]
596
599
  }],
597
600
  /**
598
601
  * Flex Shrink
599
602
  * @see https://tailwindcss.com/docs/flex-shrink
600
603
  */
601
604
  shrink: [{
602
- shrink: ["", f, l, a]
605
+ shrink: ["", u, s, n]
603
606
  }],
604
607
  /**
605
608
  * Order
606
609
  * @see https://tailwindcss.com/docs/order
607
610
  */
608
611
  order: [{
609
- order: [F, "first", "last", "none", l, a]
612
+ order: [F, "first", "last", "none", s, n]
610
613
  }],
611
614
  /**
612
615
  * Grid Template Columns
613
616
  * @see https://tailwindcss.com/docs/grid-template-columns
614
617
  */
615
618
  "grid-cols": [{
616
- "grid-cols": Ie()
619
+ "grid-cols": fe()
617
620
  }],
618
621
  /**
619
622
  * Grid Column Start / End
620
623
  * @see https://tailwindcss.com/docs/grid-column
621
624
  */
622
625
  "col-start-end": [{
623
- col: Oe()
626
+ col: be()
624
627
  }],
625
628
  /**
626
629
  * Grid Column Start
627
630
  * @see https://tailwindcss.com/docs/grid-column
628
631
  */
629
632
  "col-start": [{
630
- "col-start": q()
633
+ "col-start": Z()
631
634
  }],
632
635
  /**
633
636
  * Grid Column End
634
637
  * @see https://tailwindcss.com/docs/grid-column
635
638
  */
636
639
  "col-end": [{
637
- "col-end": q()
640
+ "col-end": Z()
638
641
  }],
639
642
  /**
640
643
  * Grid Template Rows
641
644
  * @see https://tailwindcss.com/docs/grid-template-rows
642
645
  */
643
646
  "grid-rows": [{
644
- "grid-rows": Ie()
647
+ "grid-rows": fe()
645
648
  }],
646
649
  /**
647
650
  * Grid Row Start / End
648
651
  * @see https://tailwindcss.com/docs/grid-row
649
652
  */
650
653
  "row-start-end": [{
651
- row: Oe()
654
+ row: be()
652
655
  }],
653
656
  /**
654
657
  * Grid Row Start
655
658
  * @see https://tailwindcss.com/docs/grid-row
656
659
  */
657
660
  "row-start": [{
658
- "row-start": q()
661
+ "row-start": Z()
659
662
  }],
660
663
  /**
661
664
  * Grid Row End
662
665
  * @see https://tailwindcss.com/docs/grid-row
663
666
  */
664
667
  "row-end": [{
665
- "row-end": q()
668
+ "row-end": Z()
666
669
  }],
667
670
  /**
668
671
  * Grid Auto Flow
@@ -676,14 +679,14 @@ const x = (e) => {
676
679
  * @see https://tailwindcss.com/docs/grid-auto-columns
677
680
  */
678
681
  "auto-cols": [{
679
- "auto-cols": _e()
682
+ "auto-cols": ge()
680
683
  }],
681
684
  /**
682
685
  * Grid Auto Rows
683
686
  * @see https://tailwindcss.com/docs/grid-auto-rows
684
687
  */
685
688
  "auto-rows": [{
686
- "auto-rows": _e()
689
+ "auto-rows": ge()
687
690
  }],
688
691
  /**
689
692
  * Gap
@@ -711,35 +714,35 @@ const x = (e) => {
711
714
  * @see https://tailwindcss.com/docs/justify-content
712
715
  */
713
716
  "justify-content": [{
714
- justify: [...de(), "normal"]
717
+ justify: [...re(), "normal"]
715
718
  }],
716
719
  /**
717
720
  * Justify Items
718
721
  * @see https://tailwindcss.com/docs/justify-items
719
722
  */
720
723
  "justify-items": [{
721
- "justify-items": [...j(), "normal"]
724
+ "justify-items": [...U(), "normal"]
722
725
  }],
723
726
  /**
724
727
  * Justify Self
725
728
  * @see https://tailwindcss.com/docs/justify-self
726
729
  */
727
730
  "justify-self": [{
728
- "justify-self": ["auto", ...j()]
731
+ "justify-self": ["auto", ...U()]
729
732
  }],
730
733
  /**
731
734
  * Align Content
732
735
  * @see https://tailwindcss.com/docs/align-content
733
736
  */
734
737
  "align-content": [{
735
- content: ["normal", ...de()]
738
+ content: ["normal", ...re()]
736
739
  }],
737
740
  /**
738
741
  * Align Items
739
742
  * @see https://tailwindcss.com/docs/align-items
740
743
  */
741
744
  "align-items": [{
742
- items: [...j(), {
745
+ items: [...U(), {
743
746
  baseline: ["", "last"]
744
747
  }]
745
748
  }],
@@ -748,7 +751,7 @@ const x = (e) => {
748
751
  * @see https://tailwindcss.com/docs/align-self
749
752
  */
750
753
  "align-self": [{
751
- self: ["auto", ...j(), {
754
+ self: ["auto", ...U(), {
752
755
  baseline: ["", "last"]
753
756
  }]
754
757
  }],
@@ -757,21 +760,21 @@ const x = (e) => {
757
760
  * @see https://tailwindcss.com/docs/place-content
758
761
  */
759
762
  "place-content": [{
760
- "place-content": de()
763
+ "place-content": re()
761
764
  }],
762
765
  /**
763
766
  * Place Items
764
767
  * @see https://tailwindcss.com/docs/place-items
765
768
  */
766
769
  "place-items": [{
767
- "place-items": [...j(), "baseline"]
770
+ "place-items": [...U(), "baseline"]
768
771
  }],
769
772
  /**
770
773
  * Place Self
771
774
  * @see https://tailwindcss.com/docs/place-self
772
775
  */
773
776
  "place-self": [{
774
- "place-self": ["auto", ...j()]
777
+ "place-self": ["auto", ...U()]
775
778
  }],
776
779
  // Spacing
777
780
  /**
@@ -842,63 +845,63 @@ const x = (e) => {
842
845
  * @see https://tailwindcss.com/docs/margin
843
846
  */
844
847
  m: [{
845
- m: N()
848
+ m: G()
846
849
  }],
847
850
  /**
848
851
  * Margin X
849
852
  * @see https://tailwindcss.com/docs/margin
850
853
  */
851
854
  mx: [{
852
- mx: N()
855
+ mx: G()
853
856
  }],
854
857
  /**
855
858
  * Margin Y
856
859
  * @see https://tailwindcss.com/docs/margin
857
860
  */
858
861
  my: [{
859
- my: N()
862
+ my: G()
860
863
  }],
861
864
  /**
862
865
  * Margin Start
863
866
  * @see https://tailwindcss.com/docs/margin
864
867
  */
865
868
  ms: [{
866
- ms: N()
869
+ ms: G()
867
870
  }],
868
871
  /**
869
872
  * Margin End
870
873
  * @see https://tailwindcss.com/docs/margin
871
874
  */
872
875
  me: [{
873
- me: N()
876
+ me: G()
874
877
  }],
875
878
  /**
876
879
  * Margin Top
877
880
  * @see https://tailwindcss.com/docs/margin
878
881
  */
879
882
  mt: [{
880
- mt: N()
883
+ mt: G()
881
884
  }],
882
885
  /**
883
886
  * Margin Right
884
887
  * @see https://tailwindcss.com/docs/margin
885
888
  */
886
889
  mr: [{
887
- mr: N()
890
+ mr: G()
888
891
  }],
889
892
  /**
890
893
  * Margin Bottom
891
894
  * @see https://tailwindcss.com/docs/margin
892
895
  */
893
896
  mb: [{
894
- mb: N()
897
+ mb: G()
895
898
  }],
896
899
  /**
897
900
  * Margin Left
898
901
  * @see https://tailwindcss.com/docs/margin
899
902
  */
900
903
  ml: [{
901
- ml: N()
904
+ ml: G()
902
905
  }],
903
906
  /**
904
907
  * Space Between X
@@ -932,14 +935,14 @@ const x = (e) => {
932
935
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
933
936
  */
934
937
  size: [{
935
- size: U()
938
+ size: B()
936
939
  }],
937
940
  /**
938
941
  * Width
939
942
  * @see https://tailwindcss.com/docs/width
940
943
  */
941
944
  w: [{
942
- w: [p, "screen", ...U()]
945
+ w: [p, "screen", ...B()]
943
946
  }],
944
947
  /**
945
948
  * Min-Width
@@ -951,7 +954,7 @@ const x = (e) => {
951
954
  "screen",
952
955
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
953
956
  "none",
954
- ...U()
957
+ ...B()
955
958
  ]
956
959
  }],
957
960
  /**
@@ -969,7 +972,7 @@ const x = (e) => {
969
972
  {
970
973
  screen: [i]
971
974
  },
972
- ...U()
975
+ ...B()
973
976
  ]
974
977
  }],
975
978
  /**
@@ -977,21 +980,21 @@ const x = (e) => {
977
980
  * @see https://tailwindcss.com/docs/height
978
981
  */
979
982
  h: [{
980
- h: ["screen", "lh", ...U()]
983
+ h: ["screen", "lh", ...B()]
981
984
  }],
982
985
  /**
983
986
  * Min-Height
984
987
  * @see https://tailwindcss.com/docs/min-height
985
988
  */
986
989
  "min-h": [{
987
- "min-h": ["screen", "lh", "none", ...U()]
990
+ "min-h": ["screen", "lh", "none", ...B()]
988
991
  }],
989
992
  /**
990
993
  * Max-Height
991
994
  * @see https://tailwindcss.com/docs/max-height
992
995
  */
993
996
  "max-h": [{
994
- "max-h": ["screen", "lh", ...U()]
997
+ "max-h": ["screen", "lh", ...B()]
995
998
  }],
996
999
  // ------------------
997
1000
  // --- Typography ---
@@ -1001,7 +1004,7 @@ const x = (e) => {
1001
1004
  * @see https://tailwindcss.com/docs/font-size
1002
1005
  */
1003
1006
  "font-size": [{
1004
- text: ["base", o, J, V]
1007
+ text: ["base", r, D, V]
1005
1008
  }],
1006
1009
  /**
1007
1010
  * Font Smoothing
@@ -1018,21 +1021,21 @@ const x = (e) => {
1018
1021
  * @see https://tailwindcss.com/docs/font-weight
1019
1022
  */
1020
1023
  "font-weight": [{
1021
- font: [r, l, fe]
1024
+ font: [o, s, ie]
1022
1025
  }],
1023
1026
  /**
1024
1027
  * Font Stretch
1025
1028
  * @see https://tailwindcss.com/docs/font-stretch
1026
1029
  */
1027
1030
  "font-stretch": [{
1028
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", me, a]
1031
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ae, n]
1029
1032
  }],
1030
1033
  /**
1031
1034
  * Font Family
1032
1035
  * @see https://tailwindcss.com/docs/font-family
1033
1036
  */
1034
1037
  "font-family": [{
1035
- font: [Wt, a, t]
1038
+ font: [zt, n, t]
1036
1039
  }],
1037
1040
  /**
1038
1041
  * Font Variant Numeric
@@ -1069,14 +1072,14 @@ const x = (e) => {
1069
1072
  * @see https://tailwindcss.com/docs/letter-spacing
1070
1073
  */
1071
1074
  tracking: [{
1072
- tracking: [n, l, a]
1075
+ tracking: [a, s, n]
1073
1076
  }],
1074
1077
  /**
1075
1078
  * Line Clamp
1076
1079
  * @see https://tailwindcss.com/docs/line-clamp
1077
1080
  */
1078
1081
  "line-clamp": [{
1079
- "line-clamp": [f, "none", l, fe]
1082
+ "line-clamp": [u, "none", s, ie]
1080
1083
  }],
1081
1084
  /**
1082
1085
  * Line Height
@@ -1085,7 +1088,7 @@ const x = (e) => {
1085
1088
  leading: [{
1086
1089
  leading: [
1087
1090
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1088
- s,
1091
+ l,
1089
1092
  ...c()
1090
1093
  ]
1091
1094
  }],
@@ -1094,7 +1097,7 @@ const x = (e) => {
1094
1097
  * @see https://tailwindcss.com/docs/list-style-image
1095
1098
  */
1096
1099
  "list-image": [{
1097
- "list-image": ["none", l, a]
1100
+ "list-image": ["none", s, n]
1098
1101
  }],
1099
1102
  /**
1100
1103
  * List Style Position
@@ -1108,7 +1111,7 @@ const x = (e) => {
1108
1111
  * @see https://tailwindcss.com/docs/list-style-type
1109
1112
  */
1110
1113
  "list-style-type": [{
1111
- list: ["disc", "decimal", "none", l, a]
1114
+ list: ["disc", "decimal", "none", s, n]
1112
1115
  }],
1113
1116
  /**
1114
1117
  * Text Alignment
@@ -1142,14 +1145,14 @@ const x = (e) => {
1142
1145
  * @see https://tailwindcss.com/docs/text-decoration-style
1143
1146
  */
1144
1147
  "text-decoration-style": [{
1145
- decoration: [...Q(), "wavy"]
1148
+ decoration: [...Y(), "wavy"]
1146
1149
  }],
1147
1150
  /**
1148
1151
  * Text Decoration Thickness
1149
1152
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1150
1153
  */
1151
1154
  "text-decoration-thickness": [{
1152
- decoration: [f, "from-font", "auto", l, V]
1155
+ decoration: [u, "from-font", "auto", s, V]
1153
1156
  }],
1154
1157
  /**
1155
1158
  * Text Decoration Color
@@ -1163,7 +1166,7 @@ const x = (e) => {
1163
1166
  * @see https://tailwindcss.com/docs/text-underline-offset
1164
1167
  */
1165
1168
  "underline-offset": [{
1166
- "underline-offset": [f, "auto", l, a]
1169
+ "underline-offset": [u, "auto", s, n]
1167
1170
  }],
1168
1171
  /**
1169
1172
  * Text Transform
@@ -1194,7 +1197,7 @@ const x = (e) => {
1194
1197
  * @see https://tailwindcss.com/docs/vertical-align
1195
1198
  */
1196
1199
  "vertical-align": [{
1197
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", l, a]
1200
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", s, n]
1198
1201
  }],
1199
1202
  /**
1200
1203
  * Whitespace
@@ -1229,7 +1232,7 @@ const x = (e) => {
1229
1232
  * @see https://tailwindcss.com/docs/content
1230
1233
  */
1231
1234
  content: [{
1232
- content: ["none", l, a]
1235
+ content: ["none", s, n]
1233
1236
  }],
1234
1237
  // -------------------
1235
1238
  // --- Backgrounds ---
@@ -1260,21 +1263,21 @@ const x = (e) => {
1260
1263
  * @see https://tailwindcss.com/docs/background-position
1261
1264
  */
1262
1265
  "bg-position": [{
1263
- bg: Ee()
1266
+ bg: he()
1264
1267
  }],
1265
1268
  /**
1266
1269
  * Background Repeat
1267
1270
  * @see https://tailwindcss.com/docs/background-repeat
1268
1271
  */
1269
1272
  "bg-repeat": [{
1270
- bg: Ae()
1273
+ bg: xe()
1271
1274
  }],
1272
1275
  /**
1273
1276
  * Background Size
1274
1277
  * @see https://tailwindcss.com/docs/background-size
1275
1278
  */
1276
1279
  "bg-size": [{
1277
- bg: Ce()
1280
+ bg: we()
1278
1281
  }],
1279
1282
  /**
1280
1283
  * Background Image
@@ -1284,10 +1287,10 @@ const x = (e) => {
1284
1287
  bg: ["none", {
1285
1288
  linear: [{
1286
1289
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1287
- }, F, l, a],
1288
- radial: ["", l, a],
1289
- conic: [F, l, a]
1290
- }, Kt, Bt]
1290
+ }, F, s, n],
1291
+ radial: ["", s, n],
1292
+ conic: [F, s, n]
1293
+ }, Et, St]
1291
1294
  }],
1292
1295
  /**
1293
1296
  * Background Color
@@ -1301,21 +1304,21 @@ const x = (e) => {
1301
1304
  * @see https://tailwindcss.com/docs/gradient-color-stops
1302
1305
  */
1303
1306
  "gradient-from-pos": [{
1304
- from: ue()
1307
+ from: ne()
1305
1308
  }],
1306
1309
  /**
1307
1310
  * Gradient Color Stops Via Position
1308
1311
  * @see https://tailwindcss.com/docs/gradient-color-stops
1309
1312
  */
1310
1313
  "gradient-via-pos": [{
1311
- via: ue()
1314
+ via: ne()
1312
1315
  }],
1313
1316
  /**
1314
1317
  * Gradient Color Stops To Position
1315
1318
  * @see https://tailwindcss.com/docs/gradient-color-stops
1316
1319
  */
1317
1320
  "gradient-to-pos": [{
1318
- to: ue()
1321
+ to: ne()
1319
1322
  }],
1320
1323
  /**
1321
1324
  * Gradient Color Stops From
@@ -1346,175 +1349,175 @@ const x = (e) => {
1346
1349
  * @see https://tailwindcss.com/docs/border-radius
1347
1350
  */
1348
1351
  rounded: [{
1349
- rounded: O()
1352
+ rounded: v()
1350
1353
  }],
1351
1354
  /**
1352
1355
  * Border Radius Start
1353
1356
  * @see https://tailwindcss.com/docs/border-radius
1354
1357
  */
1355
1358
  "rounded-s": [{
1356
- "rounded-s": O()
1359
+ "rounded-s": v()
1357
1360
  }],
1358
1361
  /**
1359
1362
  * Border Radius End
1360
1363
  * @see https://tailwindcss.com/docs/border-radius
1361
1364
  */
1362
1365
  "rounded-e": [{
1363
- "rounded-e": O()
1366
+ "rounded-e": v()
1364
1367
  }],
1365
1368
  /**
1366
1369
  * Border Radius Top
1367
1370
  * @see https://tailwindcss.com/docs/border-radius
1368
1371
  */
1369
1372
  "rounded-t": [{
1370
- "rounded-t": O()
1373
+ "rounded-t": v()
1371
1374
  }],
1372
1375
  /**
1373
1376
  * Border Radius Right
1374
1377
  * @see https://tailwindcss.com/docs/border-radius
1375
1378
  */
1376
1379
  "rounded-r": [{
1377
- "rounded-r": O()
1380
+ "rounded-r": v()
1378
1381
  }],
1379
1382
  /**
1380
1383
  * Border Radius Bottom
1381
1384
  * @see https://tailwindcss.com/docs/border-radius
1382
1385
  */
1383
1386
  "rounded-b": [{
1384
- "rounded-b": O()
1387
+ "rounded-b": v()
1385
1388
  }],
1386
1389
  /**
1387
1390
  * Border Radius Left
1388
1391
  * @see https://tailwindcss.com/docs/border-radius
1389
1392
  */
1390
1393
  "rounded-l": [{
1391
- "rounded-l": O()
1394
+ "rounded-l": v()
1392
1395
  }],
1393
1396
  /**
1394
1397
  * Border Radius Start Start
1395
1398
  * @see https://tailwindcss.com/docs/border-radius
1396
1399
  */
1397
1400
  "rounded-ss": [{
1398
- "rounded-ss": O()
1401
+ "rounded-ss": v()
1399
1402
  }],
1400
1403
  /**
1401
1404
  * Border Radius Start End
1402
1405
  * @see https://tailwindcss.com/docs/border-radius
1403
1406
  */
1404
1407
  "rounded-se": [{
1405
- "rounded-se": O()
1408
+ "rounded-se": v()
1406
1409
  }],
1407
1410
  /**
1408
1411
  * Border Radius End End
1409
1412
  * @see https://tailwindcss.com/docs/border-radius
1410
1413
  */
1411
1414
  "rounded-ee": [{
1412
- "rounded-ee": O()
1415
+ "rounded-ee": v()
1413
1416
  }],
1414
1417
  /**
1415
1418
  * Border Radius End Start
1416
1419
  * @see https://tailwindcss.com/docs/border-radius
1417
1420
  */
1418
1421
  "rounded-es": [{
1419
- "rounded-es": O()
1422
+ "rounded-es": v()
1420
1423
  }],
1421
1424
  /**
1422
1425
  * Border Radius Top Left
1423
1426
  * @see https://tailwindcss.com/docs/border-radius
1424
1427
  */
1425
1428
  "rounded-tl": [{
1426
- "rounded-tl": O()
1429
+ "rounded-tl": v()
1427
1430
  }],
1428
1431
  /**
1429
1432
  * Border Radius Top Right
1430
1433
  * @see https://tailwindcss.com/docs/border-radius
1431
1434
  */
1432
1435
  "rounded-tr": [{
1433
- "rounded-tr": O()
1436
+ "rounded-tr": v()
1434
1437
  }],
1435
1438
  /**
1436
1439
  * Border Radius Bottom Right
1437
1440
  * @see https://tailwindcss.com/docs/border-radius
1438
1441
  */
1439
1442
  "rounded-br": [{
1440
- "rounded-br": O()
1443
+ "rounded-br": v()
1441
1444
  }],
1442
1445
  /**
1443
1446
  * Border Radius Bottom Left
1444
1447
  * @see https://tailwindcss.com/docs/border-radius
1445
1448
  */
1446
1449
  "rounded-bl": [{
1447
- "rounded-bl": O()
1450
+ "rounded-bl": v()
1448
1451
  }],
1449
1452
  /**
1450
1453
  * Border Width
1451
1454
  * @see https://tailwindcss.com/docs/border-width
1452
1455
  */
1453
1456
  "border-w": [{
1454
- border: A()
1457
+ border: I()
1455
1458
  }],
1456
1459
  /**
1457
1460
  * Border Width X
1458
1461
  * @see https://tailwindcss.com/docs/border-width
1459
1462
  */
1460
1463
  "border-w-x": [{
1461
- "border-x": A()
1464
+ "border-x": I()
1462
1465
  }],
1463
1466
  /**
1464
1467
  * Border Width Y
1465
1468
  * @see https://tailwindcss.com/docs/border-width
1466
1469
  */
1467
1470
  "border-w-y": [{
1468
- "border-y": A()
1471
+ "border-y": I()
1469
1472
  }],
1470
1473
  /**
1471
1474
  * Border Width Start
1472
1475
  * @see https://tailwindcss.com/docs/border-width
1473
1476
  */
1474
1477
  "border-w-s": [{
1475
- "border-s": A()
1478
+ "border-s": I()
1476
1479
  }],
1477
1480
  /**
1478
1481
  * Border Width End
1479
1482
  * @see https://tailwindcss.com/docs/border-width
1480
1483
  */
1481
1484
  "border-w-e": [{
1482
- "border-e": A()
1485
+ "border-e": I()
1483
1486
  }],
1484
1487
  /**
1485
1488
  * Border Width Top
1486
1489
  * @see https://tailwindcss.com/docs/border-width
1487
1490
  */
1488
1491
  "border-w-t": [{
1489
- "border-t": A()
1492
+ "border-t": I()
1490
1493
  }],
1491
1494
  /**
1492
1495
  * Border Width Right
1493
1496
  * @see https://tailwindcss.com/docs/border-width
1494
1497
  */
1495
1498
  "border-w-r": [{
1496
- "border-r": A()
1499
+ "border-r": I()
1497
1500
  }],
1498
1501
  /**
1499
1502
  * Border Width Bottom
1500
1503
  * @see https://tailwindcss.com/docs/border-width
1501
1504
  */
1502
1505
  "border-w-b": [{
1503
- "border-b": A()
1506
+ "border-b": I()
1504
1507
  }],
1505
1508
  /**
1506
1509
  * Border Width Left
1507
1510
  * @see https://tailwindcss.com/docs/border-width
1508
1511
  */
1509
1512
  "border-w-l": [{
1510
- "border-l": A()
1513
+ "border-l": I()
1511
1514
  }],
1512
1515
  /**
1513
1516
  * Divide Width X
1514
1517
  * @see https://tailwindcss.com/docs/border-width#between-children
1515
1518
  */
1516
1519
  "divide-x": [{
1517
- "divide-x": A()
1520
+ "divide-x": I()
1518
1521
  }],
1519
1522
  /**
1520
1523
  * Divide Width X Reverse
@@ -1526,7 +1529,7 @@ const x = (e) => {
1526
1529
  * @see https://tailwindcss.com/docs/border-width#between-children
1527
1530
  */
1528
1531
  "divide-y": [{
1529
- "divide-y": A()
1532
+ "divide-y": I()
1530
1533
  }],
1531
1534
  /**
1532
1535
  * Divide Width Y Reverse
@@ -1538,14 +1541,14 @@ const x = (e) => {
1538
1541
  * @see https://tailwindcss.com/docs/border-style
1539
1542
  */
1540
1543
  "border-style": [{
1541
- border: [...Q(), "hidden", "none"]
1544
+ border: [...Y(), "hidden", "none"]
1542
1545
  }],
1543
1546
  /**
1544
1547
  * Divide Style
1545
1548
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
1546
1549
  */
1547
1550
  "divide-style": [{
1548
- divide: [...Q(), "hidden", "none"]
1551
+ divide: [...Y(), "hidden", "none"]
1549
1552
  }],
1550
1553
  /**
1551
1554
  * Border Color
@@ -1622,21 +1625,21 @@ const x = (e) => {
1622
1625
  * @see https://tailwindcss.com/docs/outline-style
1623
1626
  */
1624
1627
  "outline-style": [{
1625
- outline: [...Q(), "none", "hidden"]
1628
+ outline: [...Y(), "none", "hidden"]
1626
1629
  }],
1627
1630
  /**
1628
1631
  * Outline Offset
1629
1632
  * @see https://tailwindcss.com/docs/outline-offset
1630
1633
  */
1631
1634
  "outline-offset": [{
1632
- "outline-offset": [f, l, a]
1635
+ "outline-offset": [u, s, n]
1633
1636
  }],
1634
1637
  /**
1635
1638
  * Outline Width
1636
1639
  * @see https://tailwindcss.com/docs/outline-width
1637
1640
  */
1638
1641
  "outline-w": [{
1639
- outline: ["", f, J, V]
1642
+ outline: ["", u, D, V]
1640
1643
  }],
1641
1644
  /**
1642
1645
  * Outline Color
@@ -1657,9 +1660,9 @@ const x = (e) => {
1657
1660
  // Deprecated since Tailwind CSS v4.0.0
1658
1661
  "",
1659
1662
  "none",
1660
- g,
1661
- ie,
1662
- se
1663
+ f,
1664
+ te,
1665
+ ee
1663
1666
  ]
1664
1667
  }],
1665
1668
  /**
@@ -1674,7 +1677,7 @@ const x = (e) => {
1674
1677
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
1675
1678
  */
1676
1679
  "inset-shadow": [{
1677
- "inset-shadow": ["none", k, ie, se]
1680
+ "inset-shadow": ["none", M, te, ee]
1678
1681
  }],
1679
1682
  /**
1680
1683
  * Inset Box Shadow Color
@@ -1688,7 +1691,7 @@ const x = (e) => {
1688
1691
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
1689
1692
  */
1690
1693
  "ring-w": [{
1691
- ring: A()
1694
+ ring: I()
1692
1695
  }],
1693
1696
  /**
1694
1697
  * Ring Width Inset
@@ -1711,7 +1714,7 @@ const x = (e) => {
1711
1714
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
1712
1715
  */
1713
1716
  "ring-offset-w": [{
1714
- "ring-offset": [f, V]
1717
+ "ring-offset": [u, V]
1715
1718
  }],
1716
1719
  /**
1717
1720
  * Ring Offset Color
@@ -1727,7 +1730,7 @@ const x = (e) => {
1727
1730
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
1728
1731
  */
1729
1732
  "inset-ring-w": [{
1730
- "inset-ring": A()
1733
+ "inset-ring": I()
1731
1734
  }],
1732
1735
  /**
1733
1736
  * Inset Ring Color
@@ -1741,7 +1744,7 @@ const x = (e) => {
1741
1744
  * @see https://tailwindcss.com/docs/text-shadow
1742
1745
  */
1743
1746
  "text-shadow": [{
1744
- "text-shadow": ["none", S, ie, se]
1747
+ "text-shadow": ["none", T, te, ee]
1745
1748
  }],
1746
1749
  /**
1747
1750
  * Text Shadow Color
@@ -1755,21 +1758,21 @@ const x = (e) => {
1755
1758
  * @see https://tailwindcss.com/docs/opacity
1756
1759
  */
1757
1760
  opacity: [{
1758
- opacity: [f, l, a]
1761
+ opacity: [u, s, n]
1759
1762
  }],
1760
1763
  /**
1761
1764
  * Mix Blend Mode
1762
1765
  * @see https://tailwindcss.com/docs/mix-blend-mode
1763
1766
  */
1764
1767
  "mix-blend": [{
1765
- "mix-blend": [...Te(), "plus-darker", "plus-lighter"]
1768
+ "mix-blend": [...ke(), "plus-darker", "plus-lighter"]
1766
1769
  }],
1767
1770
  /**
1768
1771
  * Background Blend Mode
1769
1772
  * @see https://tailwindcss.com/docs/background-blend-mode
1770
1773
  */
1771
1774
  "bg-blend": [{
1772
- "bg-blend": Te()
1775
+ "bg-blend": ke()
1773
1776
  }],
1774
1777
  /**
1775
1778
  * Mask Clip
@@ -1790,13 +1793,13 @@ const x = (e) => {
1790
1793
  * @see https://tailwindcss.com/docs/mask-image
1791
1794
  */
1792
1795
  "mask-image-linear-pos": [{
1793
- "mask-linear": [f]
1796
+ "mask-linear": [u]
1794
1797
  }],
1795
1798
  "mask-image-linear-from-pos": [{
1796
- "mask-linear-from": y()
1799
+ "mask-linear-from": x()
1797
1800
  }],
1798
1801
  "mask-image-linear-to-pos": [{
1799
- "mask-linear-to": y()
1802
+ "mask-linear-to": x()
1800
1803
  }],
1801
1804
  "mask-image-linear-from-color": [{
1802
1805
  "mask-linear-from": d()
@@ -1805,10 +1808,10 @@ const x = (e) => {
1805
1808
  "mask-linear-to": d()
1806
1809
  }],
1807
1810
  "mask-image-t-from-pos": [{
1808
- "mask-t-from": y()
1811
+ "mask-t-from": x()
1809
1812
  }],
1810
1813
  "mask-image-t-to-pos": [{
1811
- "mask-t-to": y()
1814
+ "mask-t-to": x()
1812
1815
  }],
1813
1816
  "mask-image-t-from-color": [{
1814
1817
  "mask-t-from": d()
@@ -1817,10 +1820,10 @@ const x = (e) => {
1817
1820
  "mask-t-to": d()
1818
1821
  }],
1819
1822
  "mask-image-r-from-pos": [{
1820
- "mask-r-from": y()
1823
+ "mask-r-from": x()
1821
1824
  }],
1822
1825
  "mask-image-r-to-pos": [{
1823
- "mask-r-to": y()
1826
+ "mask-r-to": x()
1824
1827
  }],
1825
1828
  "mask-image-r-from-color": [{
1826
1829
  "mask-r-from": d()
@@ -1829,10 +1832,10 @@ const x = (e) => {
1829
1832
  "mask-r-to": d()
1830
1833
  }],
1831
1834
  "mask-image-b-from-pos": [{
1832
- "mask-b-from": y()
1835
+ "mask-b-from": x()
1833
1836
  }],
1834
1837
  "mask-image-b-to-pos": [{
1835
- "mask-b-to": y()
1838
+ "mask-b-to": x()
1836
1839
  }],
1837
1840
  "mask-image-b-from-color": [{
1838
1841
  "mask-b-from": d()
@@ -1841,10 +1844,10 @@ const x = (e) => {
1841
1844
  "mask-b-to": d()
1842
1845
  }],
1843
1846
  "mask-image-l-from-pos": [{
1844
- "mask-l-from": y()
1847
+ "mask-l-from": x()
1845
1848
  }],
1846
1849
  "mask-image-l-to-pos": [{
1847
- "mask-l-to": y()
1850
+ "mask-l-to": x()
1848
1851
  }],
1849
1852
  "mask-image-l-from-color": [{
1850
1853
  "mask-l-from": d()
@@ -1853,10 +1856,10 @@ const x = (e) => {
1853
1856
  "mask-l-to": d()
1854
1857
  }],
1855
1858
  "mask-image-x-from-pos": [{
1856
- "mask-x-from": y()
1859
+ "mask-x-from": x()
1857
1860
  }],
1858
1861
  "mask-image-x-to-pos": [{
1859
- "mask-x-to": y()
1862
+ "mask-x-to": x()
1860
1863
  }],
1861
1864
  "mask-image-x-from-color": [{
1862
1865
  "mask-x-from": d()
@@ -1865,10 +1868,10 @@ const x = (e) => {
1865
1868
  "mask-x-to": d()
1866
1869
  }],
1867
1870
  "mask-image-y-from-pos": [{
1868
- "mask-y-from": y()
1871
+ "mask-y-from": x()
1869
1872
  }],
1870
1873
  "mask-image-y-to-pos": [{
1871
- "mask-y-to": y()
1874
+ "mask-y-to": x()
1872
1875
  }],
1873
1876
  "mask-image-y-from-color": [{
1874
1877
  "mask-y-from": d()
@@ -1877,13 +1880,13 @@ const x = (e) => {
1877
1880
  "mask-y-to": d()
1878
1881
  }],
1879
1882
  "mask-image-radial": [{
1880
- "mask-radial": [l, a]
1883
+ "mask-radial": [s, n]
1881
1884
  }],
1882
1885
  "mask-image-radial-from-pos": [{
1883
- "mask-radial-from": y()
1886
+ "mask-radial-from": x()
1884
1887
  }],
1885
1888
  "mask-image-radial-to-pos": [{
1886
- "mask-radial-to": y()
1889
+ "mask-radial-to": x()
1887
1890
  }],
1888
1891
  "mask-image-radial-from-color": [{
1889
1892
  "mask-radial-from": d()
@@ -1901,16 +1904,16 @@ const x = (e) => {
1901
1904
  }]
1902
1905
  }],
1903
1906
  "mask-image-radial-pos": [{
1904
- "mask-radial-at": M()
1907
+ "mask-radial-at": N()
1905
1908
  }],
1906
1909
  "mask-image-conic-pos": [{
1907
- "mask-conic": [f]
1910
+ "mask-conic": [u]
1908
1911
  }],
1909
1912
  "mask-image-conic-from-pos": [{
1910
- "mask-conic-from": y()
1913
+ "mask-conic-from": x()
1911
1914
  }],
1912
1915
  "mask-image-conic-to-pos": [{
1913
- "mask-conic-to": y()
1916
+ "mask-conic-to": x()
1914
1917
  }],
1915
1918
  "mask-image-conic-from-color": [{
1916
1919
  "mask-conic-from": d()
@@ -1937,21 +1940,21 @@ const x = (e) => {
1937
1940
  * @see https://tailwindcss.com/docs/mask-position
1938
1941
  */
1939
1942
  "mask-position": [{
1940
- mask: Ee()
1943
+ mask: he()
1941
1944
  }],
1942
1945
  /**
1943
1946
  * Mask Repeat
1944
1947
  * @see https://tailwindcss.com/docs/mask-repeat
1945
1948
  */
1946
1949
  "mask-repeat": [{
1947
- mask: Ae()
1950
+ mask: xe()
1948
1951
  }],
1949
1952
  /**
1950
1953
  * Mask Size
1951
1954
  * @see https://tailwindcss.com/docs/mask-size
1952
1955
  */
1953
1956
  "mask-size": [{
1954
- mask: Ce()
1957
+ mask: we()
1955
1958
  }],
1956
1959
  /**
1957
1960
  * Mask Type
@@ -1965,7 +1968,7 @@ const x = (e) => {
1965
1968
  * @see https://tailwindcss.com/docs/mask-image
1966
1969
  */
1967
1970
  "mask-image": [{
1968
- mask: ["none", l, a]
1971
+ mask: ["none", s, n]
1969
1972
  }],
1970
1973
  // ---------------
1971
1974
  // --- Filters ---
@@ -1979,8 +1982,8 @@ const x = (e) => {
1979
1982
  // Deprecated since Tailwind CSS v3.0.0
1980
1983
  "",
1981
1984
  "none",
1982
- l,
1983
- a
1985
+ s,
1986
+ n
1984
1987
  ]
1985
1988
  }],
1986
1989
  /**
@@ -1988,21 +1991,21 @@ const x = (e) => {
1988
1991
  * @see https://tailwindcss.com/docs/blur
1989
1992
  */
1990
1993
  blur: [{
1991
- blur: Me()
1994
+ blur: ye()
1992
1995
  }],
1993
1996
  /**
1994
1997
  * Brightness
1995
1998
  * @see https://tailwindcss.com/docs/brightness
1996
1999
  */
1997
2000
  brightness: [{
1998
- brightness: [f, l, a]
2001
+ brightness: [u, s, n]
1999
2002
  }],
2000
2003
  /**
2001
2004
  * Contrast
2002
2005
  * @see https://tailwindcss.com/docs/contrast
2003
2006
  */
2004
2007
  contrast: [{
2005
- contrast: [f, l, a]
2008
+ contrast: [u, s, n]
2006
2009
  }],
2007
2010
  /**
2008
2011
  * Drop Shadow
@@ -2013,9 +2016,9 @@ const x = (e) => {
2013
2016
  // Deprecated since Tailwind CSS v4.0.0
2014
2017
  "",
2015
2018
  "none",
2016
- I,
2017
- ie,
2018
- se
2019
+ C,
2020
+ te,
2021
+ ee
2019
2022
  ]
2020
2023
  }],
2021
2024
  /**
@@ -2030,35 +2033,35 @@ const x = (e) => {
2030
2033
  * @see https://tailwindcss.com/docs/grayscale
2031
2034
  */
2032
2035
  grayscale: [{
2033
- grayscale: ["", f, l, a]
2036
+ grayscale: ["", u, s, n]
2034
2037
  }],
2035
2038
  /**
2036
2039
  * Hue Rotate
2037
2040
  * @see https://tailwindcss.com/docs/hue-rotate
2038
2041
  */
2039
2042
  "hue-rotate": [{
2040
- "hue-rotate": [f, l, a]
2043
+ "hue-rotate": [u, s, n]
2041
2044
  }],
2042
2045
  /**
2043
2046
  * Invert
2044
2047
  * @see https://tailwindcss.com/docs/invert
2045
2048
  */
2046
2049
  invert: [{
2047
- invert: ["", f, l, a]
2050
+ invert: ["", u, s, n]
2048
2051
  }],
2049
2052
  /**
2050
2053
  * Saturate
2051
2054
  * @see https://tailwindcss.com/docs/saturate
2052
2055
  */
2053
2056
  saturate: [{
2054
- saturate: [f, l, a]
2057
+ saturate: [u, s, n]
2055
2058
  }],
2056
2059
  /**
2057
2060
  * Sepia
2058
2061
  * @see https://tailwindcss.com/docs/sepia
2059
2062
  */
2060
2063
  sepia: [{
2061
- sepia: ["", f, l, a]
2064
+ sepia: ["", u, s, n]
2062
2065
  }],
2063
2066
  /**
2064
2067
  * Backdrop Filter
@@ -2069,8 +2072,8 @@ const x = (e) => {
2069
2072
  // Deprecated since Tailwind CSS v3.0.0
2070
2073
  "",
2071
2074
  "none",
2072
- l,
2073
- a
2075
+ s,
2076
+ n
2074
2077
  ]
2075
2078
  }],
2076
2079
  /**
@@ -2078,63 +2081,63 @@ const x = (e) => {
2078
2081
  * @see https://tailwindcss.com/docs/backdrop-blur
2079
2082
  */
2080
2083
  "backdrop-blur": [{
2081
- "backdrop-blur": Me()
2084
+ "backdrop-blur": ye()
2082
2085
  }],
2083
2086
  /**
2084
2087
  * Backdrop Brightness
2085
2088
  * @see https://tailwindcss.com/docs/backdrop-brightness
2086
2089
  */
2087
2090
  "backdrop-brightness": [{
2088
- "backdrop-brightness": [f, l, a]
2091
+ "backdrop-brightness": [u, s, n]
2089
2092
  }],
2090
2093
  /**
2091
2094
  * Backdrop Contrast
2092
2095
  * @see https://tailwindcss.com/docs/backdrop-contrast
2093
2096
  */
2094
2097
  "backdrop-contrast": [{
2095
- "backdrop-contrast": [f, l, a]
2098
+ "backdrop-contrast": [u, s, n]
2096
2099
  }],
2097
2100
  /**
2098
2101
  * Backdrop Grayscale
2099
2102
  * @see https://tailwindcss.com/docs/backdrop-grayscale
2100
2103
  */
2101
2104
  "backdrop-grayscale": [{
2102
- "backdrop-grayscale": ["", f, l, a]
2105
+ "backdrop-grayscale": ["", u, s, n]
2103
2106
  }],
2104
2107
  /**
2105
2108
  * Backdrop Hue Rotate
2106
2109
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
2107
2110
  */
2108
2111
  "backdrop-hue-rotate": [{
2109
- "backdrop-hue-rotate": [f, l, a]
2112
+ "backdrop-hue-rotate": [u, s, n]
2110
2113
  }],
2111
2114
  /**
2112
2115
  * Backdrop Invert
2113
2116
  * @see https://tailwindcss.com/docs/backdrop-invert
2114
2117
  */
2115
2118
  "backdrop-invert": [{
2116
- "backdrop-invert": ["", f, l, a]
2119
+ "backdrop-invert": ["", u, s, n]
2117
2120
  }],
2118
2121
  /**
2119
2122
  * Backdrop Opacity
2120
2123
  * @see https://tailwindcss.com/docs/backdrop-opacity
2121
2124
  */
2122
2125
  "backdrop-opacity": [{
2123
- "backdrop-opacity": [f, l, a]
2126
+ "backdrop-opacity": [u, s, n]
2124
2127
  }],
2125
2128
  /**
2126
2129
  * Backdrop Saturate
2127
2130
  * @see https://tailwindcss.com/docs/backdrop-saturate
2128
2131
  */
2129
2132
  "backdrop-saturate": [{
2130
- "backdrop-saturate": [f, l, a]
2133
+ "backdrop-saturate": [u, s, n]
2131
2134
  }],
2132
2135
  /**
2133
2136
  * Backdrop Sepia
2134
2137
  * @see https://tailwindcss.com/docs/backdrop-sepia
2135
2138
  */
2136
2139
  "backdrop-sepia": [{
2137
- "backdrop-sepia": ["", f, l, a]
2140
+ "backdrop-sepia": ["", u, s, n]
2138
2141
  }],
2139
2142
  // --------------
2140
2143
  // --- Tables ---
@@ -2189,7 +2192,7 @@ const x = (e) => {
2189
2192
  * @see https://tailwindcss.com/docs/transition-property
2190
2193
  */
2191
2194
  transition: [{
2192
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", l, a]
2195
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", s, n]
2193
2196
  }],
2194
2197
  /**
2195
2198
  * Transition Behavior
@@ -2203,28 +2206,28 @@ const x = (e) => {
2203
2206
  * @see https://tailwindcss.com/docs/transition-duration
2204
2207
  */
2205
2208
  duration: [{
2206
- duration: [f, "initial", l, a]
2209
+ duration: [u, "initial", s, n]
2207
2210
  }],
2208
2211
  /**
2209
2212
  * Transition Timing Function
2210
2213
  * @see https://tailwindcss.com/docs/transition-timing-function
2211
2214
  */
2212
2215
  ease: [{
2213
- ease: ["linear", "initial", C, l, a]
2216
+ ease: ["linear", "initial", y, s, n]
2214
2217
  }],
2215
2218
  /**
2216
2219
  * Transition Delay
2217
2220
  * @see https://tailwindcss.com/docs/transition-delay
2218
2221
  */
2219
2222
  delay: [{
2220
- delay: [f, l, a]
2223
+ delay: [u, s, n]
2221
2224
  }],
2222
2225
  /**
2223
2226
  * Animation
2224
2227
  * @see https://tailwindcss.com/docs/animation
2225
2228
  */
2226
2229
  animate: [{
2227
- animate: ["none", L, l, a]
2230
+ animate: ["none", A, s, n]
2228
2231
  }],
2229
2232
  // ------------------
2230
2233
  // --- Transforms ---
@@ -2241,70 +2244,70 @@ const x = (e) => {
2241
2244
  * @see https://tailwindcss.com/docs/perspective
2242
2245
  */
2243
2246
  perspective: [{
2244
- perspective: [w, l, a]
2247
+ perspective: [k, s, n]
2245
2248
  }],
2246
2249
  /**
2247
2250
  * Perspective Origin
2248
2251
  * @see https://tailwindcss.com/docs/perspective-origin
2249
2252
  */
2250
2253
  "perspective-origin": [{
2251
- "perspective-origin": R()
2254
+ "perspective-origin": P()
2252
2255
  }],
2253
2256
  /**
2254
2257
  * Rotate
2255
2258
  * @see https://tailwindcss.com/docs/rotate
2256
2259
  */
2257
2260
  rotate: [{
2258
- rotate: ee()
2261
+ rotate: q()
2259
2262
  }],
2260
2263
  /**
2261
2264
  * Rotate X
2262
2265
  * @see https://tailwindcss.com/docs/rotate
2263
2266
  */
2264
2267
  "rotate-x": [{
2265
- "rotate-x": ee()
2268
+ "rotate-x": q()
2266
2269
  }],
2267
2270
  /**
2268
2271
  * Rotate Y
2269
2272
  * @see https://tailwindcss.com/docs/rotate
2270
2273
  */
2271
2274
  "rotate-y": [{
2272
- "rotate-y": ee()
2275
+ "rotate-y": q()
2273
2276
  }],
2274
2277
  /**
2275
2278
  * Rotate Z
2276
2279
  * @see https://tailwindcss.com/docs/rotate
2277
2280
  */
2278
2281
  "rotate-z": [{
2279
- "rotate-z": ee()
2282
+ "rotate-z": q()
2280
2283
  }],
2281
2284
  /**
2282
2285
  * Scale
2283
2286
  * @see https://tailwindcss.com/docs/scale
2284
2287
  */
2285
2288
  scale: [{
2286
- scale: te()
2289
+ scale: J()
2287
2290
  }],
2288
2291
  /**
2289
2292
  * Scale X
2290
2293
  * @see https://tailwindcss.com/docs/scale
2291
2294
  */
2292
2295
  "scale-x": [{
2293
- "scale-x": te()
2296
+ "scale-x": J()
2294
2297
  }],
2295
2298
  /**
2296
2299
  * Scale Y
2297
2300
  * @see https://tailwindcss.com/docs/scale
2298
2301
  */
2299
2302
  "scale-y": [{
2300
- "scale-y": te()
2303
+ "scale-y": J()
2301
2304
  }],
2302
2305
  /**
2303
2306
  * Scale Z
2304
2307
  * @see https://tailwindcss.com/docs/scale
2305
2308
  */
2306
2309
  "scale-z": [{
2307
- "scale-z": te()
2310
+ "scale-z": J()
2308
2311
  }],
2309
2312
  /**
2310
2313
  * Scale 3D
@@ -2316,35 +2319,35 @@ const x = (e) => {
2316
2319
  * @see https://tailwindcss.com/docs/skew
2317
2320
  */
2318
2321
  skew: [{
2319
- skew: pe()
2322
+ skew: se()
2320
2323
  }],
2321
2324
  /**
2322
2325
  * Skew X
2323
2326
  * @see https://tailwindcss.com/docs/skew
2324
2327
  */
2325
2328
  "skew-x": [{
2326
- "skew-x": pe()
2329
+ "skew-x": se()
2327
2330
  }],
2328
2331
  /**
2329
2332
  * Skew Y
2330
2333
  * @see https://tailwindcss.com/docs/skew
2331
2334
  */
2332
2335
  "skew-y": [{
2333
- "skew-y": pe()
2336
+ "skew-y": se()
2334
2337
  }],
2335
2338
  /**
2336
2339
  * Transform
2337
2340
  * @see https://tailwindcss.com/docs/transform
2338
2341
  */
2339
2342
  transform: [{
2340
- transform: [l, a, "", "none", "gpu", "cpu"]
2343
+ transform: [s, n, "", "none", "gpu", "cpu"]
2341
2344
  }],
2342
2345
  /**
2343
2346
  * Transform Origin
2344
2347
  * @see https://tailwindcss.com/docs/transform-origin
2345
2348
  */
2346
2349
  "transform-origin": [{
2347
- origin: R()
2350
+ origin: P()
2348
2351
  }],
2349
2352
  /**
2350
2353
  * Transform Style
@@ -2358,28 +2361,28 @@ const x = (e) => {
2358
2361
  * @see https://tailwindcss.com/docs/translate
2359
2362
  */
2360
2363
  translate: [{
2361
- translate: oe()
2364
+ translate: X()
2362
2365
  }],
2363
2366
  /**
2364
2367
  * Translate X
2365
2368
  * @see https://tailwindcss.com/docs/translate
2366
2369
  */
2367
2370
  "translate-x": [{
2368
- "translate-x": oe()
2371
+ "translate-x": X()
2369
2372
  }],
2370
2373
  /**
2371
2374
  * Translate Y
2372
2375
  * @see https://tailwindcss.com/docs/translate
2373
2376
  */
2374
2377
  "translate-y": [{
2375
- "translate-y": oe()
2378
+ "translate-y": X()
2376
2379
  }],
2377
2380
  /**
2378
2381
  * Translate Z
2379
2382
  * @see https://tailwindcss.com/docs/translate
2380
2383
  */
2381
2384
  "translate-z": [{
2382
- "translate-z": oe()
2385
+ "translate-z": X()
2383
2386
  }],
2384
2387
  /**
2385
2388
  * Translate None
@@ -2422,7 +2425,7 @@ const x = (e) => {
2422
2425
  * @see https://tailwindcss.com/docs/cursor
2423
2426
  */
2424
2427
  cursor: [{
2425
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", l, a]
2428
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", s, n]
2426
2429
  }],
2427
2430
  /**
2428
2431
  * Field Sizing
@@ -2644,7 +2647,7 @@ const x = (e) => {
2644
2647
  * @see https://tailwindcss.com/docs/will-change
2645
2648
  */
2646
2649
  "will-change": [{
2647
- "will-change": ["auto", "scroll", "contents", "transform", l, a]
2650
+ "will-change": ["auto", "scroll", "contents", "transform", s, n]
2648
2651
  }],
2649
2652
  // -----------
2650
2653
  // --- SVG ---
@@ -2661,7 +2664,7 @@ const x = (e) => {
2661
2664
  * @see https://tailwindcss.com/docs/stroke-width
2662
2665
  */
2663
2666
  "stroke-w": [{
2664
- stroke: [f, J, V, fe]
2667
+ stroke: [u, D, V, ie]
2665
2668
  }],
2666
2669
  /**
2667
2670
  * Stroke
@@ -2736,16 +2739,16 @@ const x = (e) => {
2736
2739
  },
2737
2740
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
2738
2741
  };
2739
- }, Yt = /* @__PURE__ */ Ct(Xt);
2740
- function G(...e) {
2741
- return Yt(bt(e));
2742
+ }, Tt = /* @__PURE__ */ pt(Pt);
2743
+ function O(...e) {
2744
+ return Tt(Qe(e));
2742
2745
  }
2743
- const Jt = {
2746
+ const Rt = {
2744
2747
  primary: "rounded-[var(--onside-btn-radius,9999px)] whitespace-nowrap leading-none !font-medium transition-bg duration-300 flex items-center justify-center text-center",
2745
2748
  secondary: "rounded-[var(--onside-btn-radius,9999px)] whitespace-nowrap leading-none !font-medium bg-transparent border transition-bg transition-color duration-300 flex items-center justify-center text-center",
2746
2749
  text: "whitespace-nowrap leading-none !font-medium transition-colors duration-300 flex items-center justify-center text-center",
2747
2750
  transparent: "rounded-[var(--onside-btn-radius,9999px)] whitespace-nowrap leading-none !font-medium transition-opacity duration-300 flex items-center justify-center text-center"
2748
- }, Zt = {
2751
+ }, Gt = {
2749
2752
  primary: {
2750
2753
  blue: "bg-[var(--onside-btn-bg,#0A5EFF)] text-[color:var(--onside-btn-text,#FFFFFF)] hover:bg-[var(--onside-btn-bg-hover,#337AFF)] focus:bg-[var(--onside-btn-bg,#0A5EFF)] disabled:bg-[var(--onside-btn-disabled-bg,rgba(10,94,255,0.2))]",
2751
2754
  lightBlue: "bg-[#e2eaf8] text-blue hover:opacity-60 focus:opacity-100",
@@ -2766,640 +2769,268 @@ const Jt = {
2766
2769
  lightBlue: "bg-transparent text-[#e2eaf8] hover:opacity-75",
2767
2770
  white: "bg-transparent text-white hover:opacity-75"
2768
2771
  }
2769
- }, qt = {
2772
+ }, Lt = {
2770
2773
  lg: "py-[var(--onside-btn-py,1rem)] px-[var(--onside-btn-px,2rem)] text-[length:var(--onside-btn-font-size,1.125rem)] font-medium",
2771
2774
  md: "py-[var(--onside-btn-py,0.75rem)] px-[var(--onside-btn-px,1.25rem)] text-[length:var(--onside-btn-font-size,1rem)] font-medium"
2772
2775
  };
2773
- function ce({ className: e, ...t }) {
2774
- const o = t.variant ?? "primary", r = t.color ?? "blue", n = t.size ?? "md", s = G(
2775
- Jt[o],
2776
- qt[o !== "text" ? n : "md"],
2776
+ function oe({ className: e, ...t }) {
2777
+ const r = t.variant ?? "primary", o = t.color ?? "blue", a = t.size ?? "md", l = O(
2778
+ Rt[r],
2779
+ Lt[r !== "text" ? a : "md"],
2777
2780
  // default size for text
2778
- Zt[o][r],
2781
+ Gt[r][o],
2779
2782
  e
2780
2783
  );
2781
2784
  if (typeof t.href > "u")
2782
- return /* @__PURE__ */ h("button", { className: s, ...t });
2785
+ return /* @__PURE__ */ w("button", { className: l, ...t });
2783
2786
  const i = t, p = ("rel" in i ? i.rel : void 0) ?? (i.target === "_blank" ? "noopener noreferrer" : void 0);
2784
- return /* @__PURE__ */ h("a", { className: s, rel: p, ...i });
2785
- }
2786
- const Qt = "https://onside.io/web-api/v1/marketplace/install", Se = 1e3, Wo = 7 * Se, jo = 7 * Se, eo = 2 * Se, ke = "onside_token_data", Le = 15552e3, le = {
2787
- IOS: /iPhone|iPad|iPod/i,
2788
- IPAD: /iPad/i,
2789
- ANDROID: /Android/i,
2790
- INTEL_MAC: /Intel Mac/i
2791
- }, b = {
2792
- IOS_CHROME: /CriOS/i,
2793
- IOS_FIREFOX: /FxiOS/i,
2794
- IOS_EDGE: /EdgiOS/i,
2795
- IOS_OPERA: /OPiOS/i,
2796
- IOS_OPERA_NEW: /OPT\//i,
2797
- IOS_BRAVE: /Brave\//i,
2798
- IOS_DUCKDUCKGO: /Ddg\//i,
2799
- IOS_GOOGLE_APP: /GSA/i,
2800
- SAFARI: /Safari/i,
2801
- CHROME: /Chrome|CriOS/i,
2802
- FIREFOX: /Firefox|FxiOS/i,
2803
- EDGE: /Edge|Edg/i,
2804
- OPERA: /Opera|OPiOS|OPT\/|OPR\/|OPX\//i
2805
- }, ae = {
2806
- IOS_VERSION: /Version\/(\d+[_.\d]*)/,
2807
- IOS_OS: /(?:iPhone|iPad|iPod).*?OS (\d+[_.\d]*)/i,
2808
- ANDROID_VERSION: /Android\s+(\d+[.\d]*)/,
2809
- MACOS_VERSION: /Mac OS X (\d+[_.\d]*)/i
2810
- }, De = {
2811
- MOBILE: /Mobile/i,
2812
- ANDROID_TABLET_KEYWORDS: /Tablet|SM-T|SM-P|GT-P|SCH-I|SCH-T/i
2813
- }, $ = {
2814
- IOS_INSTAGRAM: /\bInstagram\b/i,
2815
- IOS_FACEBOOK: /\bFBAN\/FBIOS\b|\bFBAV\b/i,
2816
- IOS_LINKEDIN: /LinkedInApp/i,
2817
- IOS_DISCORD: /\bDiscord\b/i,
2818
- IOS_TWITTER: /Twitter for iPhone/i,
2819
- IOS_TIKTOK: /\bTikTok\b/i
2820
- }, to = 768, oo = () => typeof window < "u" && ("ontouchstart" in window || window.navigator?.maxTouchPoints > 0 || // @ts-expect-error - msMaxTouchPoints exists in some browsers
2821
- window.navigator?.msMaxTouchPoints > 0), ro = () => typeof window > "u" ? "" : window.navigator.userAgent, no = (e) => {
2822
- if (le.IOS.test(e)) {
2823
- const t = le.IPAD.test(e);
2824
- return {
2825
- platform: "ios",
2826
- isMobile: !t,
2827
- isTablet: t,
2828
- isDesktop: !1
2829
- };
2830
- }
2831
- if (le.ANDROID.test(e)) {
2832
- const t = De.MOBILE.test(e) && (window.innerWidth >= to || De.ANDROID_TABLET_KEYWORDS.test(e));
2833
- return {
2834
- platform: "android",
2835
- isMobile: !t,
2836
- isTablet: t,
2837
- isDesktop: !1
2838
- };
2839
- }
2840
- return so(e) ? {
2841
- platform: "ios",
2842
- isMobile: !1,
2843
- isTablet: !0,
2844
- isDesktop: !1
2845
- } : b.IOS_GOOGLE_APP.test(e) ? {
2846
- platform: "ios",
2847
- isMobile: !0,
2848
- isTablet: !1,
2849
- isDesktop: !1
2850
- } : {
2851
- platform: "desktop",
2852
- isMobile: !1,
2853
- isTablet: !1,
2854
- isDesktop: !0
2855
- };
2856
- }, so = (e) => b.SAFARI.test(e) && le.INTEL_MAC.test(e) && !b.CHROME.test(e) && !b.FIREFOX.test(e) && !b.OPERA.test(e) ? oo() : !1, Fe = () => (
2857
- // @ts-expect-error - TelegramWebviewProxy may exist
2858
- typeof window?.TelegramWebviewProxy < "u"
2859
- ), io = (e) => {
2860
- const t = (...o) => o.some((r) => r.test(e));
2861
- return t(b.IOS_EDGE, b.EDGE) ? "edge" : t(
2862
- b.IOS_OPERA,
2863
- b.IOS_OPERA_NEW,
2864
- b.OPERA
2865
- ) ? "opera" : t(b.IOS_BRAVE) ? "brave" : t(b.IOS_DUCKDUCKGO) ? "duckduckgo" : t(b.IOS_CHROME, b.CHROME) ? "chrome" : t(b.IOS_GOOGLE_APP) ? "google" : t(b.IOS_FIREFOX, b.FIREFOX) ? "firefox" : b.SAFARI.test(e) && !b.CHROME.test(e) && !b.FIREFOX.test(e) && !b.OPERA.test(e) && !b.IOS_BRAVE.test(e) && !b.IOS_DUCKDUCKGO.test(e) && !b.IOS_GOOGLE_APP.test(e) && !Fe() ? "safari" : t(
2866
- $.IOS_INSTAGRAM,
2867
- $.IOS_FACEBOOK,
2868
- $.IOS_LINKEDIN,
2869
- $.IOS_DISCORD,
2870
- $.IOS_TWITTER,
2871
- $.IOS_TIKTOK
2872
- ) || Fe() ? "in-app" : "unknown";
2873
- }, ao = (e, t) => {
2874
- switch (t) {
2875
- case "ios": {
2876
- let o = e.match(ae.IOS_OS);
2877
- if (o || (o = e.match(ae.IOS_VERSION)), o) {
2878
- const r = o[1].replace(/_/g, ".");
2879
- return parseFloat(r);
2880
- }
2881
- return;
2882
- }
2883
- case "android": {
2884
- const o = e.match(ae.ANDROID_VERSION);
2885
- return o ? parseFloat(o[1]) : void 0;
2886
- }
2887
- case "desktop": {
2888
- const o = e.match(ae.MACOS_VERSION);
2889
- if (o) {
2890
- const r = o[1].replace(/_/g, ".");
2891
- return parseFloat(r);
2892
- }
2893
- return;
2894
- }
2895
- default:
2896
- return;
2897
- }
2898
- }, lo = {
2899
- platform: "unknown",
2900
- browser: "unknown",
2901
- isMobile: !1,
2902
- isTablet: !1,
2903
- isDesktop: !1,
2904
- version: void 0,
2905
- userAgent: ""
2906
- };
2907
- let be = null, Ge = null, Ue = null;
2908
- function nt() {
2909
- if (typeof window > "u")
2910
- return lo;
2911
- const e = ro(), t = window.innerWidth;
2912
- if (be && Ge === e && Ue === t)
2913
- return be;
2914
- const o = no(e), r = io(e), n = ao(e, o.platform), s = {
2915
- ...o,
2916
- browser: r,
2917
- version: n,
2918
- userAgent: e
2919
- };
2920
- return be = s, Ge = e, Ue = t, s;
2921
- }
2922
- const Ve = 17.6, co = 18.6, uo = [
2923
- "safari",
2924
- "chrome",
2925
- "edge",
2926
- "brave",
2927
- "duckduckgo"
2928
- ];
2929
- function po(e) {
2930
- return e.platform === "ios" && (e.isMobile || e.isTablet) ? uo.includes(
2931
- e.browser
2932
- ) : !1;
2933
- }
2934
- function mo(e) {
2935
- return !!(e.platform === "ios" && e.version && e.version >= co);
2936
- }
2937
- const fo = () => {
2938
- const e = nt(), t = po(e), o = !!(e.platform === "ios" && e.version && e.version >= Ve), r = !!(e.platform === "ios" && e.version && e.version < Ve), n = e.platform === "ios" && (e.isMobile || e.isTablet) && !r && !t, s = mo(e), i = o && t, p = e.platform === "android";
2939
- return {
2940
- canInstall: i,
2941
- shouldGoToSafari: n,
2942
- shouldUpdateIOS: r,
2943
- isIOS186PlusVersion: s,
2944
- isAndroid: p
2945
- };
2946
- }, Be = (e) => {
2947
- let t;
2948
- const o = /* @__PURE__ */ new Set(), r = (m, g) => {
2949
- const k = typeof m == "function" ? m(t) : m;
2950
- if (!Object.is(k, t)) {
2951
- const S = t;
2952
- t = g ?? (typeof k != "object" || k === null) ? k : Object.assign({}, t, k), o.forEach((I) => I(t, S));
2953
- }
2954
- }, n = () => t, p = { setState: r, getState: n, getInitialState: () => u, subscribe: (m) => (o.add(m), () => o.delete(m)) }, u = t = e(r, n, p);
2955
- return p;
2956
- }, bo = ((e) => e ? Be(e) : Be), go = (e) => e;
2957
- function ho(e, t = go) {
2958
- const o = re.useSyncExternalStore(
2959
- e.subscribe,
2960
- re.useCallback(() => t(e.getState()), [e, t]),
2961
- re.useCallback(() => t(e.getInitialState()), [e, t])
2962
- );
2963
- return re.useDebugValue(o), o;
2787
+ return /* @__PURE__ */ w("a", { className: l, rel: p, ...i });
2964
2788
  }
2965
- const We = (e) => {
2966
- const t = bo(e), o = (r) => ho(t, r);
2967
- return Object.assign(o, t), o;
2968
- }, st = ((e) => e ? We(e) : We), it = st((e) => ({
2789
+ const lo = 7 * ue, co = 7 * ue, Ft = 2 * ue, Fe = Ke((e) => ({
2969
2790
  activeModal: null,
2970
2791
  openModal: (t) => e({ activeModal: t }),
2971
2792
  closeModal: () => e({ activeModal: null })
2972
- })), wo = (e) => {
2973
- if (typeof document > "u") return null;
2974
- const t = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`));
2975
- if (!t) return null;
2976
- const o = t.indexOf("=");
2977
- return o !== -1 ? t.slice(o + 1) : null;
2978
- }, je = (e, t, o) => {
2979
- if (typeof document > "u") return;
2980
- const r = new Date(Date.now() + o * 1e3), n = typeof window < "u" && window.location?.protocol === "https:" ? "; Secure" : "";
2981
- document.cookie = `${e}=${t}; expires=${r.toUTCString()}; path=/; SameSite=Lax${n}`;
2982
- }, xo = () => {
2983
- if (typeof crypto < "u" && crypto.randomUUID)
2984
- return crypto.randomUUID();
2985
- if (typeof crypto > "u" || !crypto.getRandomValues)
2986
- throw new Error("Secure random UUID generation is not available");
2987
- const e = new Uint8Array(16);
2988
- crypto.getRandomValues(e), e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128;
2989
- const t = Array.from(e, (o) => o.toString(16).padStart(2, "0")).join("");
2990
- return `${t.slice(0, 8)}-${t.slice(8, 12)}-${t.slice(12, 16)}-${t.slice(16, 20)}-${t.slice(20)}`;
2991
- }, at = () => {
2992
- const e = wo(ke);
2993
- if (!e) return null;
2994
- try {
2995
- return JSON.parse(decodeURIComponent(e)).token;
2996
- } catch {
2997
- return null;
2998
- }
2999
- }, ko = () => {
3000
- const e = at();
3001
- if (e) {
3002
- const r = {
3003
- token: e,
3004
- createdAt: Date.now()
3005
- };
3006
- return je(
3007
- ke,
3008
- encodeURIComponent(JSON.stringify(r)),
3009
- Le
3010
- ), e;
3011
- }
3012
- const t = xo(), o = {
3013
- token: t,
3014
- createdAt: Date.now()
3015
- };
3016
- return je(
3017
- ke,
3018
- encodeURIComponent(JSON.stringify(o)),
3019
- Le
3020
- ), t;
3021
- }, yo = async (e) => {
3022
- const t = await fetch(Qt, {
3023
- method: "POST",
3024
- headers: {
3025
- "Content-Type": "application/json"
3026
- },
3027
- body: JSON.stringify({
3028
- referer_url: window.location.href,
3029
- onside_token: e
3030
- })
3031
- });
3032
- if (!t.ok)
3033
- throw new Error(`HTTP ${t.status}: ${t.statusText}`);
3034
- const o = await t.json();
3035
- if (!o.url || !o.attribution_token || !o.exp)
3036
- throw new Error("Invalid response format");
3037
- return o;
3038
- }, vo = async () => {
3039
- const t = at() || ko(), o = await yo(t), r = o.exp < 1e12 ? o.exp * 1e3 : o.exp;
3040
- return {
3041
- installUrl: o.url,
3042
- attribution_token: o.attribution_token,
3043
- is_eligible: o.is_eligible,
3044
- onside_token: t,
3045
- install_expires_at: r
3046
- };
3047
- }, Ke = 3, So = (e) => Math.min(1e3 * 2 ** e, 3e4), ge = {
3048
- installUrl: null,
3049
- attribution_token: null,
3050
- isEligible: null,
3051
- onside_token: null,
3052
- installExpiresAt: null,
3053
- isLoading: !1,
3054
- error: null
3055
- };
3056
- let Z = null;
3057
- const Io = (e) => e ? Date.now() < e : !1, B = st((e, t) => ({
3058
- ...ge,
3059
- fetchInstallData: async () => {
3060
- const o = t();
3061
- if (!(o.installUrl && Io(o.installExpiresAt))) {
3062
- if (Z) {
3063
- await Z;
3064
- return;
3065
- }
3066
- if (!o.isLoading) {
3067
- e({ isLoading: !0, error: null }), Z = (async () => {
3068
- let r = null;
3069
- for (let n = 0; n < Ke; n++)
3070
- try {
3071
- const s = await vo();
3072
- e({
3073
- ...ge,
3074
- installUrl: s.installUrl,
3075
- attribution_token: s.attribution_token,
3076
- isEligible: s.is_eligible,
3077
- onside_token: s.onside_token,
3078
- installExpiresAt: s.install_expires_at,
3079
- isLoading: !1,
3080
- error: null
3081
- });
3082
- return;
3083
- } catch (s) {
3084
- r = s instanceof Error ? s : new Error(String(s)), n < Ke - 1 && await new Promise(
3085
- (i) => setTimeout(i, So(n))
3086
- );
3087
- }
3088
- e({
3089
- isLoading: !1,
3090
- error: r
3091
- });
3092
- })();
3093
- try {
3094
- await Z;
3095
- } finally {
3096
- Z = null;
3097
- }
3098
- }
3099
- }
3100
- },
3101
- reset: () => e(ge)
3102
- })), Oo = (e = !0) => {
3103
- const t = B((m) => m.installUrl), o = B(
3104
- (m) => m.attribution_token
3105
- ), r = B((m) => m.isEligible), n = B((m) => m.onside_token), s = B((m) => m.isLoading), i = B((m) => m.error), p = B((m) => m.fetchInstallData), u = dt(!1);
3106
- return $e(() => {
3107
- e && !u.current && (u.current = !0, p());
3108
- }, [e, p]), {
3109
- installUrl: t,
3110
- attribution_token: o,
3111
- isEligible: r,
3112
- onside_token: n,
3113
- isLoading: s,
3114
- error: i,
3115
- fetchInstallData: p
3116
- };
3117
- };
3118
- function _o() {
3119
- return typeof window > "u" ? !1 : localStorage.getItem("onside_analytics_logging") === "true";
3120
- }
3121
- function lt(e, t = {}, o) {
3122
- try {
3123
- if (typeof window > "u") return null;
3124
- window.dataLayer || (window.dataLayer = []);
3125
- const r = {
3126
- ...t,
3127
- ...nt()
3128
- }, n = {
3129
- event: "amplitude_event",
3130
- event_name: e,
3131
- event_properties: {
3132
- timestamp: Date.now(),
3133
- ...r
3134
- },
3135
- ...o ? { user_properties: o } : {},
3136
- url: window.location.href
3137
- };
3138
- return window.dataLayer.push({
3139
- event: n.event,
3140
- event_name: n.event_name,
3141
- event_properties: n.event_properties,
3142
- ...n.user_properties ? { user_properties: n.user_properties } : {}
3143
- }), _o() && console.log("🎯 Analytics Event:", {
3144
- event_name: n.event_name,
3145
- event_properties: n.event_properties,
3146
- user_properties: n.user_properties,
3147
- url: n.url
3148
- }), n;
3149
- } catch (r) {
3150
- return console.error("Analytics error:", r), null;
3151
- }
3152
- }
3153
- function Eo(e, t, o, r = {}) {
3154
- const n = `${e}.${t}`, s = {
3155
- modal_name: e,
3156
- event_type: t,
3157
- ...r
3158
- };
3159
- return o && (s.action = o), lt(n, s);
3160
- }
3161
- const Ao = {
2793
+ })), Ot = {
3162
2794
  INSTALL_BUTTON_CLICK: "install_button_click"
3163
- }, Co = (e = {}, t) => ({
3164
- trackInstallEvent: (n) => {
3165
- const s = lt(Ao.INSTALL_BUTTON_CLICK, {
2795
+ }, Bt = (e = {}, t) => ({
2796
+ trackInstallEvent: (a) => {
2797
+ const l = qe(Ot.INSTALL_BUTTON_CLICK, {
3166
2798
  ...e,
3167
- event_type: n
2799
+ event_type: a
3168
2800
  });
3169
- s && t?.onEvent?.(s);
2801
+ l && t?.onEvent?.(l);
3170
2802
  },
3171
- trackOpenModalEvent: (n) => {
3172
- const s = Eo(n, "opened", "install_button", {
2803
+ trackOpenModalEvent: (a) => {
2804
+ const l = Ye(a, "opened", "install_button", {
3173
2805
  ...e
3174
2806
  });
3175
- s && t?.onEvent?.(s);
2807
+ l && t?.onEvent?.(l);
3176
2808
  }
3177
- }), To = (e) => {
3178
- const { id: t, location: o = "hero", customAnalytics: r, handleCustomStep: n, pathname: s } = e, i = fo(), { installUrl: p, error: u, onside_token: m, attribution_token: g, isEligible: k } = Oo(i.canInstall), { openModal: S } = it(), [I, v] = ut(!1), { trackOpenModalEvent: w, trackInstallEvent: _ } = Co(
2809
+ }), Vt = (e) => e ? "ios_18_6_plus" : "install_click", jt = (e, t) => {
2810
+ e(Vt(t));
2811
+ }, Ut = (e) => {
2812
+ e("no_condition_matched");
2813
+ }, Wt = (e) => {
2814
+ window.location.assign(e);
2815
+ }, $t = (e, t = Wt) => {
2816
+ t(e);
2817
+ }, Ht = (e) => {
2818
+ const { id: t, location: r = "hero", customAnalytics: o, handleCustomStep: a, pathname: l } = e, i = Je(Xe()), p = i.installState === "install_available", { data: m, error: g } = De(p), f = m?.url ?? null, M = m?.onside_token ?? null, T = m?.attribution_token ?? null, C = m?.is_eligible ?? null, { openModal: b } = Fe(), [k, z] = Ve(!1), { trackOpenModalEvent: y, trackInstallEvent: A } = Bt(
3179
2819
  {
3180
- page: s,
3181
- location: o,
2820
+ page: l,
2821
+ location: r,
3182
2822
  button_id: t ?? void 0,
3183
- onside_token: m ?? void 0,
3184
- attribution_token: g ?? void 0
2823
+ onside_token: M ?? void 0,
2824
+ attribution_token: T ?? void 0
3185
2825
  },
3186
- r
3187
- ), C = ne(() => {
3188
- v(!0);
3189
- const E = setTimeout(() => {
3190
- v(!1), clearTimeout(E);
3191
- }, eo);
3192
- }, []), L = ne(
3193
- (E) => {
3194
- if (!p) {
3195
- E.preventDefault();
2826
+ o
2827
+ ), E = Q(() => {
2828
+ z(!0);
2829
+ const c = setTimeout(() => {
2830
+ z(!1), clearTimeout(c);
2831
+ }, Ft);
2832
+ }, []), N = Q(
2833
+ (c) => {
2834
+ if (!f || !Ze) {
2835
+ c.preventDefault();
3196
2836
  return;
3197
2837
  }
3198
- if (n) {
3199
- n();
2838
+ if (a) {
2839
+ a();
3200
2840
  return;
3201
2841
  }
3202
- _(
3203
- i.isIOS186PlusVersion ? "ios_18_6_plus" : "install_click"
3204
- ), window.location.href = p;
2842
+ jt(A, i.usesNewInstallFlow), $t(f);
3205
2843
  },
3206
- [p, n, i.isIOS186PlusVersion, _]
3207
- ), T = ne(() => {
3208
- if (i.shouldGoToSafari) {
3209
- w("go_to_safari"), S("goToSafari");
2844
+ [f, a, i.usesNewInstallFlow, A]
2845
+ ), P = Q(() => {
2846
+ if (i.installState === "go_to_safari") {
2847
+ y("go_to_safari"), b("goToSafari");
3210
2848
  return;
3211
2849
  }
3212
- if (i.shouldUpdateIOS) {
3213
- w("update_ios"), S("updateIOS");
2850
+ if (i.installState === "update_ios") {
2851
+ y("update_ios"), b("updateIOS");
3214
2852
  return;
3215
2853
  }
3216
- C(), _("no_condition_matched");
2854
+ E(), Ut(A);
3217
2855
  }, [
3218
- i.shouldGoToSafari,
3219
- i.shouldUpdateIOS,
3220
- S,
3221
- C,
3222
- _,
3223
- w
3224
- ]), M = ne(() => {
3225
- w("is_android"), S("isAndroid");
3226
- }, [S, w]);
2856
+ i.installState,
2857
+ b,
2858
+ E,
2859
+ A,
2860
+ y
2861
+ ]), _ = Q(() => {
2862
+ y("is_android"), b("isAndroid");
2863
+ }, [b, y]);
3227
2864
  return {
3228
- viewMode: i.isAndroid ? "android" : I ? "loading" : p && i.canInstall ? "link" : "button",
3229
- installUrl: p,
3230
- error: u,
3231
- isEligible: k,
2865
+ viewMode: i.installState === "android" ? "android" : k ? "loading" : f && p ? "link" : "button",
2866
+ installUrl: f,
2867
+ error: g,
2868
+ isEligible: C,
3232
2869
  conditions: i,
3233
- handleInstallClick: L,
3234
- handleModalFlowClick: T,
3235
- handleAndroidClick: M
2870
+ handleInstallClick: N,
2871
+ handleModalFlowClick: P,
2872
+ handleAndroidClick: _
3236
2873
  };
3237
- }, Mo = (e) => /* @__PURE__ */ H.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ H.createElement("path", { d: "M12.1268 5.74646C11.3368 5.74646 10.1139 4.84824 8.82613 4.88071C7.12708 4.90235 5.56872 5.8655 4.69214 7.39139C2.92817 10.454 4.23762 14.9776 5.95831 17.4667C6.80243 18.6787 7.79805 20.0423 9.11832 19.999C10.3845 19.9449 10.8607 19.1765 12.3974 19.1765C13.9233 19.1765 14.3562 19.999 15.6981 19.9665C17.0617 19.9449 17.9274 18.7328 18.7607 17.5099C19.7239 16.1031 20.1243 14.7395 20.1459 14.6638C20.1134 14.653 17.4945 13.6465 17.4621 10.6164C17.4404 8.084 19.5291 6.87195 19.6265 6.81784C18.436 5.0755 16.6071 4.88071 15.9686 4.83742C14.3021 4.70755 12.906 5.74646 12.1268 5.74646ZM14.9406 3.19248C15.644 2.34837 16.1093 1.16877 15.9795 0C14.973 0.0432878 13.761 0.670965 13.0359 1.51508C12.3866 2.26179 11.8238 3.46303 11.9753 4.61016C13.09 4.69673 14.2371 4.03659 14.9406 3.19248Z", fill: "currentColor" })), Ro = ({
2874
+ }, Kt = (e) => /* @__PURE__ */ $.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ $.createElement("path", { d: "M12.1268 5.74646C11.3368 5.74646 10.1139 4.84824 8.82613 4.88071C7.12708 4.90235 5.56872 5.8655 4.69214 7.39139C2.92817 10.454 4.23762 14.9776 5.95831 17.4667C6.80243 18.6787 7.79805 20.0423 9.11832 19.999C10.3845 19.9449 10.8607 19.1765 12.3974 19.1765C13.9233 19.1765 14.3562 19.999 15.6981 19.9665C17.0617 19.9449 17.9274 18.7328 18.7607 17.5099C19.7239 16.1031 20.1243 14.7395 20.1459 14.6638C20.1134 14.653 17.4945 13.6465 17.4621 10.6164C17.4404 8.084 19.5291 6.87195 19.6265 6.81784C18.436 5.0755 16.6071 4.88071 15.9686 4.83742C14.3021 4.70755 12.906 5.74646 12.1268 5.74646ZM14.9406 3.19248C15.644 2.34837 16.1093 1.16877 15.9795 0C14.973 0.0432878 13.761 0.670965 13.0359 1.51508C12.3866 2.26179 11.8238 3.46303 11.9753 4.61016C13.09 4.69673 14.2371 4.03659 14.9406 3.19248Z", fill: "currentColor" })), Dt = ({
3238
2875
  className: e,
3239
2876
  onClick: t,
3240
- children: o,
3241
- id: r,
3242
- androidClassName: n,
3243
- androidTextClassName: s
3244
- }) => /* @__PURE__ */ h(
3245
- ce,
2877
+ children: r,
2878
+ id: o,
2879
+ androidClassName: a,
2880
+ androidTextClassName: l
2881
+ }) => /* @__PURE__ */ w(
2882
+ oe,
3246
2883
  {
3247
- id: r,
3248
- className: G("bg-white px-7", e, n),
2884
+ id: o,
2885
+ className: O("bg-white px-7", e, a),
3249
2886
  variant: "secondary",
3250
2887
  size: "lg",
3251
2888
  onClick: t,
3252
- children: /* @__PURE__ */ W("span", { className: "flex flex-row items-center gap-1", children: [
3253
- /* @__PURE__ */ h(Mo, { className: s ? "text-[#FF465D]" : void 0 }),
3254
- /* @__PURE__ */ h("span", { className: G("flex-1", s), children: o })
2889
+ children: /* @__PURE__ */ j("span", { className: "flex flex-row items-center gap-1", children: [
2890
+ /* @__PURE__ */ w(Kt, { className: l ? "text-[#FF465D]" : void 0 }),
2891
+ /* @__PURE__ */ w("span", { className: O("flex-1", l), children: r })
3255
2892
  ] })
3256
2893
  }
3257
- ), Po = ({
2894
+ ), Zt = ({
3258
2895
  href: e,
3259
2896
  onClick: t,
3260
- children: o,
3261
- className: r,
3262
- id: n
3263
- }) => /* @__PURE__ */ h(
3264
- ce,
2897
+ children: r,
2898
+ className: o,
2899
+ id: a
2900
+ }) => /* @__PURE__ */ w(
2901
+ oe,
3265
2902
  {
3266
- id: n,
2903
+ id: a,
3267
2904
  href: e,
3268
2905
  size: "lg",
3269
2906
  onClick: t,
3270
- className: r,
3271
- children: o
2907
+ className: o,
2908
+ children: r
3272
2909
  }
3273
- ), No = (e) => /* @__PURE__ */ H.createElement("svg", { stroke: "customColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ H.createElement("style", null, ".spinner_V8m1{transform-origin:center;animation:spinner_zKoa 2s linear infinite}.spinner_V8m1 circle{stroke-linecap:round;animation:spinner_YpZS 1.5s ease-in-out infinite}@keyframes spinner_zKoa{100%{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}95%,100%{stroke-dasharray:42 150;stroke-dashoffset:-59}}"), /* @__PURE__ */ H.createElement("g", { className: "spinner_V8m1" }, /* @__PURE__ */ H.createElement("circle", { cx: 12, cy: 12, r: 9.5, fill: "none", strokeWidth: 3 }))), zo = (e) => {
2910
+ ), Yt = (e) => /* @__PURE__ */ $.createElement("svg", { stroke: "customColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ $.createElement("style", null, ".spinner_V8m1{transform-origin:center;animation:spinner_zKoa 2s linear infinite}.spinner_V8m1 circle{stroke-linecap:round;animation:spinner_YpZS 1.5s ease-in-out infinite}@keyframes spinner_zKoa{100%{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}95%,100%{stroke-dasharray:42 150;stroke-dashoffset:-59}}"), /* @__PURE__ */ $.createElement("g", { className: "spinner_V8m1" }, /* @__PURE__ */ $.createElement("circle", { cx: 12, cy: 12, r: 9.5, fill: "none", strokeWidth: 3 }))), qt = (e) => {
3274
2911
  const {
3275
2912
  id: t,
3276
- className: o,
3277
- children: r = "Loading...",
3278
- showLoaderOnly: n
2913
+ className: r,
2914
+ children: o = "Loading...",
2915
+ showLoaderOnly: a
3279
2916
  } = e;
3280
- return /* @__PURE__ */ h(ce, { id: t, className: G("px-8 py-4", o), disabled: !0, children: /* @__PURE__ */ W("span", { className: "flex items-center gap-2", children: [
3281
- /* @__PURE__ */ h(No, { className: "size-5 animate-spin stroke-blue" }),
3282
- !n && r
2917
+ return /* @__PURE__ */ w(oe, { id: t, className: O("px-8 py-4", r), disabled: !0, children: /* @__PURE__ */ j("span", { className: "flex items-center gap-2", children: [
2918
+ /* @__PURE__ */ w(Yt, { className: "size-5 animate-spin stroke-blue" }),
2919
+ !a && o
3283
2920
  ] }) });
3284
- }, Lo = () => /* @__PURE__ */ h("p", { className: "mt-2 text-center text-sm text-red-600", children: "Unable to load install link. Please try again." }), ct = pt(!1), Ko = (e) => {
2921
+ }, Jt = () => /* @__PURE__ */ w("p", { className: "mt-2 text-center text-sm text-red-600", children: "Unable to load install link. Please try again." }), Oe = je(!1), Xt = () => typeof window < "u" ? window.location.pathname : "", mo = (e) => {
3285
2922
  const {
3286
2923
  className: t,
3287
- children: o = "Install Onside",
3288
- handleCustomStep: r,
3289
- location: n = "hero",
3290
- caption: s,
2924
+ children: r = "Install Onside",
2925
+ handleCustomStep: o,
2926
+ location: a = "hero",
2927
+ caption: l,
3291
2928
  captionClassName: i,
3292
2929
  showCaption: p = !0,
3293
- showLoaderOnly: u = !1,
3294
- androidClassName: m,
3295
- androidTextClassName: g,
3296
- customAnalytics: k,
3297
- styleVars: S,
3298
- id: I
3299
- } = e, v = typeof window < "u" ? window.location.pathname : "", w = mt(ct), {
3300
- viewMode: _,
3301
- installUrl: C,
3302
- error: L,
3303
- isEligible: T,
3304
- handleInstallClick: M,
3305
- handleModalFlowClick: R,
3306
- handleAndroidClick: E
3307
- } = To({
3308
- id: I,
3309
- location: n,
3310
- customAnalytics: k,
3311
- handleCustomStep: r,
3312
- pathname: v
2930
+ showLoaderOnly: m = !1,
2931
+ androidClassName: g,
2932
+ androidTextClassName: f,
2933
+ customAnalytics: M,
2934
+ styleVars: T,
2935
+ id: C
2936
+ } = e, b = Ue(Xt()), k = We(Oe), {
2937
+ viewMode: z,
2938
+ installUrl: y,
2939
+ error: A,
2940
+ isEligible: E,
2941
+ handleInstallClick: N,
2942
+ handleModalFlowClick: P,
2943
+ handleAndroidClick: _
2944
+ } = Ht({
2945
+ id: C,
2946
+ location: a,
2947
+ customAnalytics: M,
2948
+ handleCustomStep: o,
2949
+ pathname: b.current
3313
2950
  });
3314
2951
  $e(() => {
3315
- }, [w]);
3316
- const D = p && (!T || s) && /* @__PURE__ */ h(
2952
+ }, [k]);
2953
+ const R = p && (!E || l) && /* @__PURE__ */ w(
3317
2954
  "div",
3318
2955
  {
3319
- className: G(
2956
+ className: O(
3320
2957
  "text-2xs font-mono opacity-60 [color:var(--onside-caption-color,rgba(30,28,31,0.6))] [font-size:var(--onside-caption-size,var(--text-2xs))] [line-height:var(--onside-caption-line-height,var(--text-2xs--line-height))]",
3321
2958
  i
3322
2959
  ),
3323
- children: T ? s : "Only available in the EU. Install from an eligible region."
2960
+ children: E ? l : "Only available in the EU. Install from an eligible region."
3324
2961
  }
3325
2962
  ), c = {
3326
2963
  "data-provider-widget-host": "",
3327
- style: S
3328
- };
3329
- switch (_) {
3330
- case "android":
3331
- return /* @__PURE__ */ h("div", { ...c, children: /* @__PURE__ */ h(
3332
- Ro,
3333
- {
3334
- id: I,
3335
- className: t,
3336
- androidClassName: m,
3337
- androidTextClassName: g,
3338
- onClick: E,
3339
- children: "Onside is for iPhone and iPad"
3340
- }
3341
- ) });
3342
- case "loading":
3343
- return /* @__PURE__ */ h("div", { ...c, children: /* @__PURE__ */ h(
3344
- zo,
3345
- {
3346
- showLoaderOnly: u,
3347
- id: I,
3348
- className: G("bg-buttonHover!", t)
3349
- }
3350
- ) });
3351
- case "link":
3352
- return /* @__PURE__ */ W("div", { ...c, children: [
3353
- /* @__PURE__ */ W(
3354
- Po,
3355
- {
3356
- id: I,
3357
- className: G(t, "flex-col gap-1"),
3358
- href: C ?? "",
3359
- onClick: M,
3360
- children: [
3361
- o,
3362
- D
3363
- ]
3364
- }
3365
- ),
3366
- L && /* @__PURE__ */ h(Lo, {})
3367
- ] });
3368
- default:
3369
- return /* @__PURE__ */ h("div", { ...c, children: /* @__PURE__ */ W(
3370
- ce,
2964
+ style: T
2965
+ }, S = {
2966
+ android: /* @__PURE__ */ w(
2967
+ Dt,
2968
+ {
2969
+ id: C,
2970
+ className: t,
2971
+ androidClassName: g,
2972
+ androidTextClassName: f,
2973
+ onClick: _,
2974
+ children: "Onside is for iPhone and iPad"
2975
+ }
2976
+ ),
2977
+ loading: /* @__PURE__ */ w(
2978
+ qt,
2979
+ {
2980
+ showLoaderOnly: m,
2981
+ id: C,
2982
+ className: O("bg-buttonHover!", t)
2983
+ }
2984
+ ),
2985
+ link: /* @__PURE__ */ j(Be, { children: [
2986
+ /* @__PURE__ */ j(
2987
+ Zt,
3371
2988
  {
3372
- id: I,
3373
- className: G(t, "flex-col gap-1"),
3374
- size: "lg",
3375
- onClick: R,
2989
+ id: C,
2990
+ className: O(t, "flex-col gap-1"),
2991
+ href: y ?? "",
2992
+ onClick: N,
3376
2993
  children: [
3377
- o,
3378
- D
2994
+ r,
2995
+ R
3379
2996
  ]
3380
2997
  }
3381
- ) });
3382
- }
3383
- }, Do = ye(async () => ({ default: (await import("./AndroidPlatformModal-B8lt-w-V.js")).AndroidPlatformModal })), Fo = ye(async () => ({ default: (await import("./GoToSafariModal-CLxmpCng.js")).GoToSafariModal })), Go = ye(async () => ({ default: (await import("./UpdateIOSModal-ms1UJmHc.js")).UpdateIOSModal })), Uo = () => {
3384
- const { activeModal: e, closeModal: t } = it();
3385
- return /* @__PURE__ */ W(ft, { fallback: null, children: [
3386
- /* @__PURE__ */ h(Fo, { open: e === "goToSafari", onClose: t }),
3387
- /* @__PURE__ */ h(Go, { open: e === "updateIOS", onClose: t }),
3388
- /* @__PURE__ */ h(Do, { open: e === "isAndroid", onClose: t })
2998
+ ),
2999
+ A && /* @__PURE__ */ w(Jt, {})
3000
+ ] }),
3001
+ button: /* @__PURE__ */ j(
3002
+ oe,
3003
+ {
3004
+ id: C,
3005
+ className: O(t, "flex-col gap-1"),
3006
+ size: "lg",
3007
+ onClick: P,
3008
+ children: [
3009
+ r,
3010
+ R
3011
+ ]
3012
+ }
3013
+ )
3014
+ };
3015
+ return /* @__PURE__ */ w("div", { ...c, children: S[z] ?? S.button });
3016
+ }, Qt = me(async () => ({ default: (await import("./AndroidPlatformModal-2Ykjo2V7.js")).AndroidPlatformModal })), eo = me(async () => ({ default: (await import("./GoToSafariModal-C_KBizh8.js")).GoToSafariModal })), to = me(async () => ({ default: (await import("./UpdateIOSModal-BGWvssyd.js")).UpdateIOSModal })), oo = () => {
3017
+ const { activeModal: e, closeModal: t } = Fe();
3018
+ return /* @__PURE__ */ j(He, { fallback: null, children: [
3019
+ /* @__PURE__ */ w(eo, { open: e === "goToSafari", onClose: t }),
3020
+ /* @__PURE__ */ w(to, { open: e === "updateIOS", onClose: t }),
3021
+ /* @__PURE__ */ w(Qt, { open: e === "isAndroid", onClose: t })
3389
3022
  ] });
3390
- }, $o = ({ children: e }) => /* @__PURE__ */ W(ct.Provider, { value: !0, children: [
3023
+ }, uo = ({ children: e }) => /* @__PURE__ */ j(Oe.Provider, { value: !0, children: [
3391
3024
  e,
3392
- /* @__PURE__ */ h(Uo, {})
3025
+ /* @__PURE__ */ w(oo, {})
3393
3026
  ] });
3394
3027
  export {
3395
- eo as A,
3396
- ce as B,
3397
- Ko as I,
3398
- G as a,
3399
- $o as b,
3400
- bt as c,
3401
- jo as d,
3402
- Wo as e,
3403
- nt as g,
3404
- Eo as t
3028
+ Ft as A,
3029
+ oe as B,
3030
+ mo as I,
3031
+ O as a,
3032
+ uo as b,
3033
+ Qe as c,
3034
+ co as d,
3035
+ lo as e
3405
3036
  };