portal-design-system 0.0.81 → 0.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/custom-elements/shadow-button.vue.d.ts +18 -0
- package/dist/components/custom-elements/shadow-label.vue.d.ts +18 -0
- package/dist/components/custom-elements/shadow-li.vue.d.ts +18 -0
- package/dist/components/custom-elements/shadow-ul.vue.d.ts +18 -0
- package/dist/components/inputs/CountryCode.vue.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1162 -1015
- package/dist/register-elements.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as V, useAttrs as an, computed as O, resolveComponent as Z, createBlock as B, openBlock as w, resolveDynamicComponent as qe, mergeProps as Ir, unref as Ee, withCtx as K, createElementBlock as D, Fragment as te, renderSlot as X, createCommentVNode as G, normalizeClass as H, toDisplayString as z, normalizeStyle as Je, createVNode as Y, renderList as Qe, createTextVNode as ae, onMounted as pe, onBeforeUnmount as er, useModel as se, ref as P, onUnmounted as rr, createElementVNode as j, withDirectives as Fr, vModelText as Pr, mergeModels as nr, withModifiers as Me, shallowRef as cn, watch as Ie, h as yr, nextTick as Ce, useSlots as ln, Teleport as Lr, Transition as tn, normalizeProps as Le, guardReactiveProps as Te, defineCustomElement as xe } from "vue";
|
|
2
|
+
const sn = (e, r) => {
|
|
3
|
+
const n = new Array(e.length + r.length);
|
|
4
4
|
for (let o = 0; o < e.length; o++)
|
|
5
|
-
|
|
6
|
-
for (let o = 0; o <
|
|
7
|
-
|
|
8
|
-
return
|
|
9
|
-
},
|
|
5
|
+
n[o] = e[o];
|
|
6
|
+
for (let o = 0; o < r.length; o++)
|
|
7
|
+
n[e.length + o] = r[o];
|
|
8
|
+
return n;
|
|
9
|
+
}, dn = (e, r) => ({
|
|
10
10
|
classGroupId: e,
|
|
11
|
-
validator:
|
|
12
|
-
}),
|
|
11
|
+
validator: r
|
|
12
|
+
}), Tr = (e = /* @__PURE__ */ new Map(), r = null, n) => ({
|
|
13
13
|
nextPart: e,
|
|
14
|
-
validators:
|
|
15
|
-
classGroupId:
|
|
16
|
-
}),
|
|
17
|
-
const
|
|
18
|
-
conflictingClassGroups:
|
|
14
|
+
validators: r,
|
|
15
|
+
classGroupId: n
|
|
16
|
+
}), Fe = "-", fr = [], un = "arbitrary..", mn = (e) => {
|
|
17
|
+
const r = fn(e), {
|
|
18
|
+
conflictingClassGroups: n,
|
|
19
19
|
conflictingClassGroupModifiers: o
|
|
20
20
|
} = e;
|
|
21
21
|
return {
|
|
22
22
|
getClassGroupId: (l) => {
|
|
23
23
|
if (l.startsWith("[") && l.endsWith("]"))
|
|
24
|
-
return
|
|
25
|
-
const s = l.split(
|
|
26
|
-
return
|
|
24
|
+
return yn(l);
|
|
25
|
+
const s = l.split(Fe), t = s[0] === "" && s.length > 1 ? 1 : 0;
|
|
26
|
+
return Br(s, t, r);
|
|
27
27
|
},
|
|
28
28
|
getConflictingClassGroupIds: (l, s) => {
|
|
29
29
|
if (s) {
|
|
30
|
-
const t = o[l], i =
|
|
31
|
-
return t ? i ?
|
|
30
|
+
const t = o[l], i = n[l];
|
|
31
|
+
return t ? i ? sn(i, t) : t : i || fr;
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return n[l] || fr;
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
},
|
|
37
|
-
if (e.length -
|
|
38
|
-
return
|
|
39
|
-
const a = e[
|
|
36
|
+
}, Br = (e, r, n) => {
|
|
37
|
+
if (e.length - r === 0)
|
|
38
|
+
return n.classGroupId;
|
|
39
|
+
const a = e[r], c = n.nextPart.get(a);
|
|
40
40
|
if (c) {
|
|
41
|
-
const i =
|
|
41
|
+
const i = Br(e, r + 1, c);
|
|
42
42
|
if (i) return i;
|
|
43
43
|
}
|
|
44
|
-
const l =
|
|
44
|
+
const l = n.validators;
|
|
45
45
|
if (l === null)
|
|
46
46
|
return;
|
|
47
|
-
const s =
|
|
47
|
+
const s = r === 0 ? e.join(Fe) : e.slice(r).join(Fe), t = l.length;
|
|
48
48
|
for (let i = 0; i < t; i++) {
|
|
49
49
|
const d = l[i];
|
|
50
50
|
if (d.validator(s))
|
|
51
51
|
return d.classGroupId;
|
|
52
52
|
}
|
|
53
|
-
},
|
|
54
|
-
const
|
|
55
|
-
return o ?
|
|
56
|
-
})(),
|
|
53
|
+
}, yn = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
54
|
+
const r = e.slice(1, -1), n = r.indexOf(":"), o = r.slice(0, n);
|
|
55
|
+
return o ? un + o : void 0;
|
|
56
|
+
})(), fn = (e) => {
|
|
57
57
|
const {
|
|
58
|
-
theme:
|
|
59
|
-
classGroups:
|
|
58
|
+
theme: r,
|
|
59
|
+
classGroups: n
|
|
60
60
|
} = e;
|
|
61
|
-
return
|
|
62
|
-
},
|
|
63
|
-
const
|
|
61
|
+
return _n(n, r);
|
|
62
|
+
}, _n = (e, r) => {
|
|
63
|
+
const n = Tr();
|
|
64
64
|
for (const o in e) {
|
|
65
65
|
const a = e[o];
|
|
66
|
-
|
|
66
|
+
or(a, n, o, r);
|
|
67
67
|
}
|
|
68
|
-
return
|
|
69
|
-
},
|
|
68
|
+
return n;
|
|
69
|
+
}, or = (e, r, n, o) => {
|
|
70
70
|
const a = e.length;
|
|
71
71
|
for (let c = 0; c < a; c++) {
|
|
72
72
|
const l = e[c];
|
|
73
|
-
|
|
73
|
+
gn(l, r, n, o);
|
|
74
74
|
}
|
|
75
|
-
},
|
|
75
|
+
}, gn = (e, r, n, o) => {
|
|
76
76
|
if (typeof e == "string") {
|
|
77
|
-
|
|
77
|
+
pn(e, r, n);
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
if (typeof e == "function") {
|
|
81
|
-
|
|
81
|
+
bn(e, r, n, o);
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
const o = e === "" ?
|
|
87
|
-
o.classGroupId =
|
|
88
|
-
},
|
|
89
|
-
if (
|
|
90
|
-
|
|
84
|
+
hn(e, r, n, o);
|
|
85
|
+
}, pn = (e, r, n) => {
|
|
86
|
+
const o = e === "" ? r : Nr(r, e);
|
|
87
|
+
o.classGroupId = n;
|
|
88
|
+
}, bn = (e, r, n, o) => {
|
|
89
|
+
if (vn(e)) {
|
|
90
|
+
or(e(o), r, n, o);
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
},
|
|
93
|
+
r.validators === null && (r.validators = []), r.validators.push(dn(n, e));
|
|
94
|
+
}, hn = (e, r, n, o) => {
|
|
95
95
|
const a = Object.entries(e), c = a.length;
|
|
96
96
|
for (let l = 0; l < c; l++) {
|
|
97
97
|
const [s, t] = a[l];
|
|
98
|
-
|
|
98
|
+
or(t, Nr(r, s), n, o);
|
|
99
99
|
}
|
|
100
|
-
},
|
|
101
|
-
let
|
|
102
|
-
const o =
|
|
100
|
+
}, Nr = (e, r) => {
|
|
101
|
+
let n = e;
|
|
102
|
+
const o = r.split(Fe), a = o.length;
|
|
103
103
|
for (let c = 0; c < a; c++) {
|
|
104
104
|
const l = o[c];
|
|
105
|
-
let s =
|
|
106
|
-
s || (s =
|
|
105
|
+
let s = n.nextPart.get(l);
|
|
106
|
+
s || (s = Tr(), n.nextPart.set(l, s)), n = s;
|
|
107
107
|
}
|
|
108
|
-
return
|
|
109
|
-
},
|
|
108
|
+
return n;
|
|
109
|
+
}, vn = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, wn = (e) => {
|
|
110
110
|
if (e < 1)
|
|
111
111
|
return {
|
|
112
112
|
get: () => {
|
|
@@ -114,178 +114,178 @@ const ln = (e, n) => {
|
|
|
114
114
|
set: () => {
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
|
-
let
|
|
117
|
+
let r = 0, n = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
118
118
|
const a = (c, l) => {
|
|
119
|
-
|
|
119
|
+
n[c] = l, r++, r > e && (r = 0, o = n, n = /* @__PURE__ */ Object.create(null));
|
|
120
120
|
};
|
|
121
121
|
return {
|
|
122
122
|
get(c) {
|
|
123
|
-
let l =
|
|
123
|
+
let l = n[c];
|
|
124
124
|
if (l !== void 0)
|
|
125
125
|
return l;
|
|
126
126
|
if ((l = o[c]) !== void 0)
|
|
127
127
|
return a(c, l), l;
|
|
128
128
|
},
|
|
129
129
|
set(c, l) {
|
|
130
|
-
c in
|
|
130
|
+
c in n ? n[c] = l : a(c, l);
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
|
-
},
|
|
133
|
+
}, je = "!", _r = ":", xn = [], gr = (e, r, n, o, a) => ({
|
|
134
134
|
modifiers: e,
|
|
135
|
-
hasImportantModifier:
|
|
136
|
-
baseClassName:
|
|
135
|
+
hasImportantModifier: r,
|
|
136
|
+
baseClassName: n,
|
|
137
137
|
maybePostfixModifierPosition: o,
|
|
138
138
|
isExternal: a
|
|
139
|
-
}),
|
|
139
|
+
}), kn = (e) => {
|
|
140
140
|
const {
|
|
141
|
-
prefix:
|
|
142
|
-
experimentalParseClassName:
|
|
141
|
+
prefix: r,
|
|
142
|
+
experimentalParseClassName: n
|
|
143
143
|
} = e;
|
|
144
144
|
let o = (a) => {
|
|
145
145
|
const c = [];
|
|
146
146
|
let l = 0, s = 0, t = 0, i;
|
|
147
147
|
const d = a.length;
|
|
148
|
-
for (let
|
|
149
|
-
const
|
|
148
|
+
for (let x = 0; x < d; x++) {
|
|
149
|
+
const u = a[x];
|
|
150
150
|
if (l === 0 && s === 0) {
|
|
151
|
-
if (
|
|
152
|
-
c.push(a.slice(t,
|
|
151
|
+
if (u === _r) {
|
|
152
|
+
c.push(a.slice(t, x)), t = x + 1;
|
|
153
153
|
continue;
|
|
154
154
|
}
|
|
155
|
-
if (
|
|
156
|
-
i =
|
|
155
|
+
if (u === "/") {
|
|
156
|
+
i = x;
|
|
157
157
|
continue;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
u === "[" ? l++ : u === "]" ? l-- : u === "(" ? s++ : u === ")" && s--;
|
|
161
161
|
}
|
|
162
162
|
const _ = c.length === 0 ? a : a.slice(t);
|
|
163
163
|
let b = _, p = !1;
|
|
164
|
-
_.endsWith(
|
|
164
|
+
_.endsWith(je) ? (b = _.slice(0, -1), p = !0) : (
|
|
165
165
|
/**
|
|
166
166
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
167
167
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
168
168
|
*/
|
|
169
|
-
_.startsWith(
|
|
169
|
+
_.startsWith(je) && (b = _.slice(1), p = !0)
|
|
170
170
|
);
|
|
171
|
-
const
|
|
172
|
-
return
|
|
171
|
+
const k = i && i > t ? i - t : void 0;
|
|
172
|
+
return gr(c, p, b, k);
|
|
173
173
|
};
|
|
174
|
-
if (n) {
|
|
175
|
-
const a = n + ir, c = o;
|
|
176
|
-
o = (l) => l.startsWith(a) ? c(l.slice(a.length)) : dr(vn, !1, l, void 0, !0);
|
|
177
|
-
}
|
|
178
174
|
if (r) {
|
|
175
|
+
const a = r + _r, c = o;
|
|
176
|
+
o = (l) => l.startsWith(a) ? c(l.slice(a.length)) : gr(xn, !1, l, void 0, !0);
|
|
177
|
+
}
|
|
178
|
+
if (n) {
|
|
179
179
|
const a = o;
|
|
180
|
-
o = (c) =>
|
|
180
|
+
o = (c) => n({
|
|
181
181
|
className: c,
|
|
182
182
|
parseClassName: a
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
185
|
return o;
|
|
186
|
-
},
|
|
187
|
-
const
|
|
188
|
-
return e.orderSensitiveModifiers.forEach((
|
|
189
|
-
|
|
190
|
-
}), (
|
|
186
|
+
}, Sn = (e) => {
|
|
187
|
+
const r = /* @__PURE__ */ new Map();
|
|
188
|
+
return e.orderSensitiveModifiers.forEach((n, o) => {
|
|
189
|
+
r.set(n, 1e6 + o);
|
|
190
|
+
}), (n) => {
|
|
191
191
|
const o = [];
|
|
192
192
|
let a = [];
|
|
193
|
-
for (let c = 0; c <
|
|
194
|
-
const l =
|
|
193
|
+
for (let c = 0; c < n.length; c++) {
|
|
194
|
+
const l = n[c], s = l[0] === "[", t = r.has(l);
|
|
195
195
|
s || t ? (a.length > 0 && (a.sort(), o.push(...a), a = []), o.push(l)) : a.push(l);
|
|
196
196
|
}
|
|
197
197
|
return a.length > 0 && (a.sort(), o.push(...a)), o;
|
|
198
198
|
};
|
|
199
|
-
},
|
|
200
|
-
cache:
|
|
201
|
-
parseClassName:
|
|
202
|
-
sortModifiers:
|
|
203
|
-
...
|
|
204
|
-
}),
|
|
199
|
+
}, Cn = (e) => ({
|
|
200
|
+
cache: wn(e.cacheSize),
|
|
201
|
+
parseClassName: kn(e),
|
|
202
|
+
sortModifiers: Sn(e),
|
|
203
|
+
...mn(e)
|
|
204
|
+
}), An = /\s+/, Dn = (e, r) => {
|
|
205
205
|
const {
|
|
206
|
-
parseClassName:
|
|
206
|
+
parseClassName: n,
|
|
207
207
|
getClassGroupId: o,
|
|
208
208
|
getConflictingClassGroupIds: a,
|
|
209
209
|
sortModifiers: c
|
|
210
|
-
} =
|
|
210
|
+
} = r, l = [], s = e.trim().split(An);
|
|
211
211
|
let t = "";
|
|
212
212
|
for (let i = s.length - 1; i >= 0; i -= 1) {
|
|
213
213
|
const d = s[i], {
|
|
214
214
|
isExternal: _,
|
|
215
215
|
modifiers: b,
|
|
216
216
|
hasImportantModifier: p,
|
|
217
|
-
baseClassName:
|
|
218
|
-
maybePostfixModifierPosition:
|
|
219
|
-
} =
|
|
217
|
+
baseClassName: k,
|
|
218
|
+
maybePostfixModifierPosition: x
|
|
219
|
+
} = n(d);
|
|
220
220
|
if (_) {
|
|
221
221
|
t = d + (t.length > 0 ? " " + t : t);
|
|
222
222
|
continue;
|
|
223
223
|
}
|
|
224
|
-
let
|
|
225
|
-
if (!
|
|
226
|
-
if (!
|
|
224
|
+
let u = !!x, E = o(u ? k.substring(0, x) : k);
|
|
225
|
+
if (!E) {
|
|
226
|
+
if (!u) {
|
|
227
227
|
t = d + (t.length > 0 ? " " + t : t);
|
|
228
228
|
continue;
|
|
229
229
|
}
|
|
230
|
-
if (
|
|
230
|
+
if (E = o(k), !E) {
|
|
231
231
|
t = d + (t.length > 0 ? " " + t : t);
|
|
232
232
|
continue;
|
|
233
233
|
}
|
|
234
|
-
|
|
234
|
+
u = !1;
|
|
235
235
|
}
|
|
236
|
-
const L = b.length === 0 ? "" : b.length === 1 ? b[0] : c(b).join(":"), R = p ? L +
|
|
237
|
-
if (l.indexOf(
|
|
236
|
+
const L = b.length === 0 ? "" : b.length === 1 ? b[0] : c(b).join(":"), R = p ? L + je : L, m = R + E;
|
|
237
|
+
if (l.indexOf(m) > -1)
|
|
238
238
|
continue;
|
|
239
|
-
l.push(
|
|
240
|
-
const
|
|
241
|
-
for (let h = 0; h <
|
|
242
|
-
const A =
|
|
239
|
+
l.push(m);
|
|
240
|
+
const S = a(E, u);
|
|
241
|
+
for (let h = 0; h < S.length; ++h) {
|
|
242
|
+
const A = S[h];
|
|
243
243
|
l.push(R + A);
|
|
244
244
|
}
|
|
245
245
|
t = d + (t.length > 0 ? " " + t : t);
|
|
246
246
|
}
|
|
247
247
|
return t;
|
|
248
|
-
},
|
|
249
|
-
let
|
|
250
|
-
for (;
|
|
251
|
-
(
|
|
248
|
+
}, Rn = (...e) => {
|
|
249
|
+
let r = 0, n, o, a = "";
|
|
250
|
+
for (; r < e.length; )
|
|
251
|
+
(n = e[r++]) && (o = Ur(n)) && (a && (a += " "), a += o);
|
|
252
252
|
return a;
|
|
253
|
-
},
|
|
253
|
+
}, Ur = (e) => {
|
|
254
254
|
if (typeof e == "string")
|
|
255
255
|
return e;
|
|
256
|
-
let
|
|
256
|
+
let r, n = "";
|
|
257
257
|
for (let o = 0; o < e.length; o++)
|
|
258
|
-
e[o] && (
|
|
259
|
-
return
|
|
260
|
-
},
|
|
261
|
-
let
|
|
258
|
+
e[o] && (r = Ur(e[o])) && (n && (n += " "), n += r);
|
|
259
|
+
return n;
|
|
260
|
+
}, En = (e, ...r) => {
|
|
261
|
+
let n, o, a, c;
|
|
262
262
|
const l = (t) => {
|
|
263
|
-
const i =
|
|
264
|
-
return
|
|
263
|
+
const i = r.reduce((d, _) => _(d), e());
|
|
264
|
+
return n = Cn(i), o = n.cache.get, a = n.cache.set, c = s, s(t);
|
|
265
265
|
}, s = (t) => {
|
|
266
266
|
const i = o(t);
|
|
267
267
|
if (i)
|
|
268
268
|
return i;
|
|
269
|
-
const d =
|
|
269
|
+
const d = Dn(t, n);
|
|
270
270
|
return a(t, d), d;
|
|
271
271
|
};
|
|
272
|
-
return c = l, (...t) => c(
|
|
273
|
-
},
|
|
274
|
-
const
|
|
275
|
-
return
|
|
276
|
-
},
|
|
272
|
+
return c = l, (...t) => c(Rn(...t));
|
|
273
|
+
}, Mn = [], M = (e) => {
|
|
274
|
+
const r = (n) => n[e] || Mn;
|
|
275
|
+
return r.isThemeGetter = !0, r;
|
|
276
|
+
}, Gr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, $r = /^\((?:(\w[\w-]*):)?(.+)\)$/i, In = /^\d+\/\d+$/, Fn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Pn = /\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$/, Ln = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Tn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Bn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, le = (e) => In.test(e), C = (e) => !!e && !Number.isNaN(Number(e)), ee = (e) => !!e && Number.isInteger(Number(e)), $e = (e) => e.endsWith("%") && C(e.slice(0, -1)), J = (e) => Fn.test(e), Nn = () => !0, Un = (e) => (
|
|
277
277
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
278
278
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
279
279
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
280
|
-
|
|
281
|
-
),
|
|
282
|
-
const o =
|
|
283
|
-
return o ? o[1] ?
|
|
284
|
-
},
|
|
285
|
-
const o =
|
|
286
|
-
return o ? o[1] ?
|
|
287
|
-
},
|
|
288
|
-
const e =
|
|
280
|
+
Pn.test(e) && !Ln.test(e)
|
|
281
|
+
), zr = () => !1, Gn = (e) => Tn.test(e), $n = (e) => Bn.test(e), zn = (e) => !y(e) && !f(e), On = (e) => de(e, Vr, zr), y = (e) => Gr.test(e), oe = (e) => de(e, jr, Un), ze = (e) => de(e, Wn, C), pr = (e) => de(e, Or, zr), Kn = (e) => de(e, Kr, $n), ke = (e) => de(e, Hr, Gn), f = (e) => $r.test(e), ye = (e) => ue(e, jr), Vn = (e) => ue(e, Zn), br = (e) => ue(e, Or), jn = (e) => ue(e, Vr), Hn = (e) => ue(e, Kr), Se = (e) => ue(e, Hr, !0), de = (e, r, n) => {
|
|
282
|
+
const o = Gr.exec(e);
|
|
283
|
+
return o ? o[1] ? r(o[1]) : n(o[2]) : !1;
|
|
284
|
+
}, ue = (e, r, n = !1) => {
|
|
285
|
+
const o = $r.exec(e);
|
|
286
|
+
return o ? o[1] ? r(o[1]) : n : !1;
|
|
287
|
+
}, Or = (e) => e === "position" || e === "percentage", Kr = (e) => e === "image" || e === "url", Vr = (e) => e === "length" || e === "size" || e === "bg-size", jr = (e) => e === "length", Wn = (e) => e === "number", Zn = (e) => e === "family-name", Hr = (e) => e === "shadow", Xn = () => {
|
|
288
|
+
const e = M("color"), r = M("font"), n = M("text"), o = M("font-weight"), a = M("tracking"), c = M("leading"), l = M("breakpoint"), s = M("container"), t = M("spacing"), i = M("radius"), d = M("shadow"), _ = M("inset-shadow"), b = M("text-shadow"), p = M("drop-shadow"), k = M("blur"), x = M("perspective"), u = M("aspect"), E = M("ease"), L = M("animate"), R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], m = () => [
|
|
289
289
|
"center",
|
|
290
290
|
"top",
|
|
291
291
|
"bottom",
|
|
@@ -303,15 +303,15 @@ const ln = (e, n) => {
|
|
|
303
303
|
"bottom-left",
|
|
304
304
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
305
305
|
"left-bottom"
|
|
306
|
-
],
|
|
307
|
-
span: ["full",
|
|
308
|
-
},
|
|
306
|
+
], S = () => [...m(), f, y], h = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", "contain", "none"], g = () => [f, y, t], I = () => [le, "full", "auto", ...g()], N = () => [ee, "none", "subgrid", f, y], re = () => ["auto", {
|
|
307
|
+
span: ["full", ee, f, y]
|
|
308
|
+
}, ee, f, y], ne = () => [ee, "auto", f, y], me = () => ["auto", "min", "max", "fr", f, y], q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], U = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...g()], Q = () => [le, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], v = () => [e, f, y], sr = () => [...m(), br, pr, {
|
|
309
309
|
position: [f, y]
|
|
310
|
-
}],
|
|
310
|
+
}], ir = () => ["no-repeat", {
|
|
311
311
|
repeat: ["", "x", "y", "space", "round"]
|
|
312
|
-
}],
|
|
312
|
+
}], dr = () => ["auto", "cover", "contain", jn, On, {
|
|
313
313
|
size: [f, y]
|
|
314
|
-
}],
|
|
314
|
+
}], Ue = () => [$e, ye, oe], T = () => [
|
|
315
315
|
// Deprecated since Tailwind CSS v4.0.0
|
|
316
316
|
"",
|
|
317
317
|
"none",
|
|
@@ -319,35 +319,35 @@ const ln = (e, n) => {
|
|
|
319
319
|
i,
|
|
320
320
|
f,
|
|
321
321
|
y
|
|
322
|
-
],
|
|
322
|
+
], $ = () => ["", C, ye, oe], be = () => ["solid", "dashed", "dotted", "double"], ur = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => [C, $e, br, pr], mr = () => [
|
|
323
323
|
// Deprecated since Tailwind CSS v4.0.0
|
|
324
324
|
"",
|
|
325
325
|
"none",
|
|
326
|
-
|
|
326
|
+
k,
|
|
327
327
|
f,
|
|
328
328
|
y
|
|
329
|
-
],
|
|
329
|
+
], he = () => ["none", C, f, y], ve = () => ["none", C, f, y], Ge = () => [C, f, y], we = () => [le, "full", ...g()];
|
|
330
330
|
return {
|
|
331
331
|
cacheSize: 500,
|
|
332
332
|
theme: {
|
|
333
333
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
334
334
|
aspect: ["video"],
|
|
335
|
-
blur: [
|
|
336
|
-
breakpoint: [
|
|
337
|
-
color: [
|
|
338
|
-
container: [
|
|
339
|
-
"drop-shadow": [
|
|
335
|
+
blur: [J],
|
|
336
|
+
breakpoint: [J],
|
|
337
|
+
color: [Nn],
|
|
338
|
+
container: [J],
|
|
339
|
+
"drop-shadow": [J],
|
|
340
340
|
ease: ["in", "out", "in-out"],
|
|
341
|
-
font: [
|
|
341
|
+
font: [zn],
|
|
342
342
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
343
|
-
"inset-shadow": [
|
|
343
|
+
"inset-shadow": [J],
|
|
344
344
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
345
345
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
346
|
-
radius: [
|
|
347
|
-
shadow: [
|
|
348
|
-
spacing: ["px",
|
|
349
|
-
text: [
|
|
350
|
-
"text-shadow": [
|
|
346
|
+
radius: [J],
|
|
347
|
+
shadow: [J],
|
|
348
|
+
spacing: ["px", C],
|
|
349
|
+
text: [J],
|
|
350
|
+
"text-shadow": [J],
|
|
351
351
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
352
352
|
},
|
|
353
353
|
classGroups: {
|
|
@@ -359,7 +359,7 @@ const ln = (e, n) => {
|
|
|
359
359
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
360
360
|
*/
|
|
361
361
|
aspect: [{
|
|
362
|
-
aspect: ["auto", "square",
|
|
362
|
+
aspect: ["auto", "square", le, y, f, u]
|
|
363
363
|
}],
|
|
364
364
|
/**
|
|
365
365
|
* Container
|
|
@@ -372,7 +372,7 @@ const ln = (e, n) => {
|
|
|
372
372
|
* @see https://tailwindcss.com/docs/columns
|
|
373
373
|
*/
|
|
374
374
|
columns: [{
|
|
375
|
-
columns: [
|
|
375
|
+
columns: [C, y, f, s]
|
|
376
376
|
}],
|
|
377
377
|
/**
|
|
378
378
|
* Break After
|
|
@@ -450,7 +450,7 @@ const ln = (e, n) => {
|
|
|
450
450
|
* @see https://tailwindcss.com/docs/object-position
|
|
451
451
|
*/
|
|
452
452
|
"object-position": [{
|
|
453
|
-
object:
|
|
453
|
+
object: S()
|
|
454
454
|
}],
|
|
455
455
|
/**
|
|
456
456
|
* Overflow
|
|
@@ -504,63 +504,63 @@ const ln = (e, n) => {
|
|
|
504
504
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
505
505
|
*/
|
|
506
506
|
inset: [{
|
|
507
|
-
inset:
|
|
507
|
+
inset: I()
|
|
508
508
|
}],
|
|
509
509
|
/**
|
|
510
510
|
* Right / Left
|
|
511
511
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
512
512
|
*/
|
|
513
513
|
"inset-x": [{
|
|
514
|
-
"inset-x":
|
|
514
|
+
"inset-x": I()
|
|
515
515
|
}],
|
|
516
516
|
/**
|
|
517
517
|
* Top / Bottom
|
|
518
518
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
519
519
|
*/
|
|
520
520
|
"inset-y": [{
|
|
521
|
-
"inset-y":
|
|
521
|
+
"inset-y": I()
|
|
522
522
|
}],
|
|
523
523
|
/**
|
|
524
524
|
* Start
|
|
525
525
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
526
526
|
*/
|
|
527
527
|
start: [{
|
|
528
|
-
start:
|
|
528
|
+
start: I()
|
|
529
529
|
}],
|
|
530
530
|
/**
|
|
531
531
|
* End
|
|
532
532
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
533
533
|
*/
|
|
534
534
|
end: [{
|
|
535
|
-
end:
|
|
535
|
+
end: I()
|
|
536
536
|
}],
|
|
537
537
|
/**
|
|
538
538
|
* Top
|
|
539
539
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
540
540
|
*/
|
|
541
541
|
top: [{
|
|
542
|
-
top:
|
|
542
|
+
top: I()
|
|
543
543
|
}],
|
|
544
544
|
/**
|
|
545
545
|
* Right
|
|
546
546
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
547
547
|
*/
|
|
548
548
|
right: [{
|
|
549
|
-
right:
|
|
549
|
+
right: I()
|
|
550
550
|
}],
|
|
551
551
|
/**
|
|
552
552
|
* Bottom
|
|
553
553
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
554
554
|
*/
|
|
555
555
|
bottom: [{
|
|
556
|
-
bottom:
|
|
556
|
+
bottom: I()
|
|
557
557
|
}],
|
|
558
558
|
/**
|
|
559
559
|
* Left
|
|
560
560
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
561
561
|
*/
|
|
562
562
|
left: [{
|
|
563
|
-
left:
|
|
563
|
+
left: I()
|
|
564
564
|
}],
|
|
565
565
|
/**
|
|
566
566
|
* Visibility
|
|
@@ -572,7 +572,7 @@ const ln = (e, n) => {
|
|
|
572
572
|
* @see https://tailwindcss.com/docs/z-index
|
|
573
573
|
*/
|
|
574
574
|
z: [{
|
|
575
|
-
z: [
|
|
575
|
+
z: [ee, "auto", f, y]
|
|
576
576
|
}],
|
|
577
577
|
// ------------------------
|
|
578
578
|
// --- Flexbox and Grid ---
|
|
@@ -582,7 +582,7 @@ const ln = (e, n) => {
|
|
|
582
582
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
583
583
|
*/
|
|
584
584
|
basis: [{
|
|
585
|
-
basis: [
|
|
585
|
+
basis: [le, "full", "auto", s, ...g()]
|
|
586
586
|
}],
|
|
587
587
|
/**
|
|
588
588
|
* Flex Direction
|
|
@@ -603,84 +603,84 @@ const ln = (e, n) => {
|
|
|
603
603
|
* @see https://tailwindcss.com/docs/flex
|
|
604
604
|
*/
|
|
605
605
|
flex: [{
|
|
606
|
-
flex: [
|
|
606
|
+
flex: [C, le, "auto", "initial", "none", y]
|
|
607
607
|
}],
|
|
608
608
|
/**
|
|
609
609
|
* Flex Grow
|
|
610
610
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
611
611
|
*/
|
|
612
612
|
grow: [{
|
|
613
|
-
grow: ["",
|
|
613
|
+
grow: ["", C, f, y]
|
|
614
614
|
}],
|
|
615
615
|
/**
|
|
616
616
|
* Flex Shrink
|
|
617
617
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
618
618
|
*/
|
|
619
619
|
shrink: [{
|
|
620
|
-
shrink: ["",
|
|
620
|
+
shrink: ["", C, f, y]
|
|
621
621
|
}],
|
|
622
622
|
/**
|
|
623
623
|
* Order
|
|
624
624
|
* @see https://tailwindcss.com/docs/order
|
|
625
625
|
*/
|
|
626
626
|
order: [{
|
|
627
|
-
order: [
|
|
627
|
+
order: [ee, "first", "last", "none", f, y]
|
|
628
628
|
}],
|
|
629
629
|
/**
|
|
630
630
|
* Grid Template Columns
|
|
631
631
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
632
632
|
*/
|
|
633
633
|
"grid-cols": [{
|
|
634
|
-
"grid-cols":
|
|
634
|
+
"grid-cols": N()
|
|
635
635
|
}],
|
|
636
636
|
/**
|
|
637
637
|
* Grid Column Start / End
|
|
638
638
|
* @see https://tailwindcss.com/docs/grid-column
|
|
639
639
|
*/
|
|
640
640
|
"col-start-end": [{
|
|
641
|
-
col:
|
|
641
|
+
col: re()
|
|
642
642
|
}],
|
|
643
643
|
/**
|
|
644
644
|
* Grid Column Start
|
|
645
645
|
* @see https://tailwindcss.com/docs/grid-column
|
|
646
646
|
*/
|
|
647
647
|
"col-start": [{
|
|
648
|
-
"col-start":
|
|
648
|
+
"col-start": ne()
|
|
649
649
|
}],
|
|
650
650
|
/**
|
|
651
651
|
* Grid Column End
|
|
652
652
|
* @see https://tailwindcss.com/docs/grid-column
|
|
653
653
|
*/
|
|
654
654
|
"col-end": [{
|
|
655
|
-
"col-end":
|
|
655
|
+
"col-end": ne()
|
|
656
656
|
}],
|
|
657
657
|
/**
|
|
658
658
|
* Grid Template Rows
|
|
659
659
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
660
660
|
*/
|
|
661
661
|
"grid-rows": [{
|
|
662
|
-
"grid-rows":
|
|
662
|
+
"grid-rows": N()
|
|
663
663
|
}],
|
|
664
664
|
/**
|
|
665
665
|
* Grid Row Start / End
|
|
666
666
|
* @see https://tailwindcss.com/docs/grid-row
|
|
667
667
|
*/
|
|
668
668
|
"row-start-end": [{
|
|
669
|
-
row:
|
|
669
|
+
row: re()
|
|
670
670
|
}],
|
|
671
671
|
/**
|
|
672
672
|
* Grid Row Start
|
|
673
673
|
* @see https://tailwindcss.com/docs/grid-row
|
|
674
674
|
*/
|
|
675
675
|
"row-start": [{
|
|
676
|
-
"row-start":
|
|
676
|
+
"row-start": ne()
|
|
677
677
|
}],
|
|
678
678
|
/**
|
|
679
679
|
* Grid Row End
|
|
680
680
|
* @see https://tailwindcss.com/docs/grid-row
|
|
681
681
|
*/
|
|
682
682
|
"row-end": [{
|
|
683
|
-
"row-end":
|
|
683
|
+
"row-end": ne()
|
|
684
684
|
}],
|
|
685
685
|
/**
|
|
686
686
|
* Grid Auto Flow
|
|
@@ -694,14 +694,14 @@ const ln = (e, n) => {
|
|
|
694
694
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
695
695
|
*/
|
|
696
696
|
"auto-cols": [{
|
|
697
|
-
"auto-cols":
|
|
697
|
+
"auto-cols": me()
|
|
698
698
|
}],
|
|
699
699
|
/**
|
|
700
700
|
* Grid Auto Rows
|
|
701
701
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
702
702
|
*/
|
|
703
703
|
"auto-rows": [{
|
|
704
|
-
"auto-rows":
|
|
704
|
+
"auto-rows": me()
|
|
705
705
|
}],
|
|
706
706
|
/**
|
|
707
707
|
* Gap
|
|
@@ -729,35 +729,35 @@ const ln = (e, n) => {
|
|
|
729
729
|
* @see https://tailwindcss.com/docs/justify-content
|
|
730
730
|
*/
|
|
731
731
|
"justify-content": [{
|
|
732
|
-
justify: [...
|
|
732
|
+
justify: [...q(), "normal"]
|
|
733
733
|
}],
|
|
734
734
|
/**
|
|
735
735
|
* Justify Items
|
|
736
736
|
* @see https://tailwindcss.com/docs/justify-items
|
|
737
737
|
*/
|
|
738
738
|
"justify-items": [{
|
|
739
|
-
"justify-items": [...
|
|
739
|
+
"justify-items": [...U(), "normal"]
|
|
740
740
|
}],
|
|
741
741
|
/**
|
|
742
742
|
* Justify Self
|
|
743
743
|
* @see https://tailwindcss.com/docs/justify-self
|
|
744
744
|
*/
|
|
745
745
|
"justify-self": [{
|
|
746
|
-
"justify-self": ["auto", ...
|
|
746
|
+
"justify-self": ["auto", ...U()]
|
|
747
747
|
}],
|
|
748
748
|
/**
|
|
749
749
|
* Align Content
|
|
750
750
|
* @see https://tailwindcss.com/docs/align-content
|
|
751
751
|
*/
|
|
752
752
|
"align-content": [{
|
|
753
|
-
content: ["normal", ...
|
|
753
|
+
content: ["normal", ...q()]
|
|
754
754
|
}],
|
|
755
755
|
/**
|
|
756
756
|
* Align Items
|
|
757
757
|
* @see https://tailwindcss.com/docs/align-items
|
|
758
758
|
*/
|
|
759
759
|
"align-items": [{
|
|
760
|
-
items: [...
|
|
760
|
+
items: [...U(), {
|
|
761
761
|
baseline: ["", "last"]
|
|
762
762
|
}]
|
|
763
763
|
}],
|
|
@@ -766,7 +766,7 @@ const ln = (e, n) => {
|
|
|
766
766
|
* @see https://tailwindcss.com/docs/align-self
|
|
767
767
|
*/
|
|
768
768
|
"align-self": [{
|
|
769
|
-
self: ["auto", ...
|
|
769
|
+
self: ["auto", ...U(), {
|
|
770
770
|
baseline: ["", "last"]
|
|
771
771
|
}]
|
|
772
772
|
}],
|
|
@@ -775,21 +775,21 @@ const ln = (e, n) => {
|
|
|
775
775
|
* @see https://tailwindcss.com/docs/place-content
|
|
776
776
|
*/
|
|
777
777
|
"place-content": [{
|
|
778
|
-
"place-content":
|
|
778
|
+
"place-content": q()
|
|
779
779
|
}],
|
|
780
780
|
/**
|
|
781
781
|
* Place Items
|
|
782
782
|
* @see https://tailwindcss.com/docs/place-items
|
|
783
783
|
*/
|
|
784
784
|
"place-items": [{
|
|
785
|
-
"place-items": [...
|
|
785
|
+
"place-items": [...U(), "baseline"]
|
|
786
786
|
}],
|
|
787
787
|
/**
|
|
788
788
|
* Place Self
|
|
789
789
|
* @see https://tailwindcss.com/docs/place-self
|
|
790
790
|
*/
|
|
791
791
|
"place-self": [{
|
|
792
|
-
"place-self": ["auto", ...
|
|
792
|
+
"place-self": ["auto", ...U()]
|
|
793
793
|
}],
|
|
794
794
|
// Spacing
|
|
795
795
|
/**
|
|
@@ -860,63 +860,63 @@ const ln = (e, n) => {
|
|
|
860
860
|
* @see https://tailwindcss.com/docs/margin
|
|
861
861
|
*/
|
|
862
862
|
m: [{
|
|
863
|
-
m:
|
|
863
|
+
m: W()
|
|
864
864
|
}],
|
|
865
865
|
/**
|
|
866
866
|
* Margin X
|
|
867
867
|
* @see https://tailwindcss.com/docs/margin
|
|
868
868
|
*/
|
|
869
869
|
mx: [{
|
|
870
|
-
mx:
|
|
870
|
+
mx: W()
|
|
871
871
|
}],
|
|
872
872
|
/**
|
|
873
873
|
* Margin Y
|
|
874
874
|
* @see https://tailwindcss.com/docs/margin
|
|
875
875
|
*/
|
|
876
876
|
my: [{
|
|
877
|
-
my:
|
|
877
|
+
my: W()
|
|
878
878
|
}],
|
|
879
879
|
/**
|
|
880
880
|
* Margin Start
|
|
881
881
|
* @see https://tailwindcss.com/docs/margin
|
|
882
882
|
*/
|
|
883
883
|
ms: [{
|
|
884
|
-
ms:
|
|
884
|
+
ms: W()
|
|
885
885
|
}],
|
|
886
886
|
/**
|
|
887
887
|
* Margin End
|
|
888
888
|
* @see https://tailwindcss.com/docs/margin
|
|
889
889
|
*/
|
|
890
890
|
me: [{
|
|
891
|
-
me:
|
|
891
|
+
me: W()
|
|
892
892
|
}],
|
|
893
893
|
/**
|
|
894
894
|
* Margin Top
|
|
895
895
|
* @see https://tailwindcss.com/docs/margin
|
|
896
896
|
*/
|
|
897
897
|
mt: [{
|
|
898
|
-
mt:
|
|
898
|
+
mt: W()
|
|
899
899
|
}],
|
|
900
900
|
/**
|
|
901
901
|
* Margin Right
|
|
902
902
|
* @see https://tailwindcss.com/docs/margin
|
|
903
903
|
*/
|
|
904
904
|
mr: [{
|
|
905
|
-
mr:
|
|
905
|
+
mr: W()
|
|
906
906
|
}],
|
|
907
907
|
/**
|
|
908
908
|
* Margin Bottom
|
|
909
909
|
* @see https://tailwindcss.com/docs/margin
|
|
910
910
|
*/
|
|
911
911
|
mb: [{
|
|
912
|
-
mb:
|
|
912
|
+
mb: W()
|
|
913
913
|
}],
|
|
914
914
|
/**
|
|
915
915
|
* Margin Left
|
|
916
916
|
* @see https://tailwindcss.com/docs/margin
|
|
917
917
|
*/
|
|
918
918
|
ml: [{
|
|
919
|
-
ml:
|
|
919
|
+
ml: W()
|
|
920
920
|
}],
|
|
921
921
|
/**
|
|
922
922
|
* Space Between X
|
|
@@ -950,14 +950,14 @@ const ln = (e, n) => {
|
|
|
950
950
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
951
951
|
*/
|
|
952
952
|
size: [{
|
|
953
|
-
size:
|
|
953
|
+
size: Q()
|
|
954
954
|
}],
|
|
955
955
|
/**
|
|
956
956
|
* Width
|
|
957
957
|
* @see https://tailwindcss.com/docs/width
|
|
958
958
|
*/
|
|
959
959
|
w: [{
|
|
960
|
-
w: [s, "screen", ...
|
|
960
|
+
w: [s, "screen", ...Q()]
|
|
961
961
|
}],
|
|
962
962
|
/**
|
|
963
963
|
* Min-Width
|
|
@@ -969,7 +969,7 @@ const ln = (e, n) => {
|
|
|
969
969
|
"screen",
|
|
970
970
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
971
971
|
"none",
|
|
972
|
-
...
|
|
972
|
+
...Q()
|
|
973
973
|
]
|
|
974
974
|
}],
|
|
975
975
|
/**
|
|
@@ -987,7 +987,7 @@ const ln = (e, n) => {
|
|
|
987
987
|
{
|
|
988
988
|
screen: [l]
|
|
989
989
|
},
|
|
990
|
-
...
|
|
990
|
+
...Q()
|
|
991
991
|
]
|
|
992
992
|
}],
|
|
993
993
|
/**
|
|
@@ -995,21 +995,21 @@ const ln = (e, n) => {
|
|
|
995
995
|
* @see https://tailwindcss.com/docs/height
|
|
996
996
|
*/
|
|
997
997
|
h: [{
|
|
998
|
-
h: ["screen", "lh", ...
|
|
998
|
+
h: ["screen", "lh", ...Q()]
|
|
999
999
|
}],
|
|
1000
1000
|
/**
|
|
1001
1001
|
* Min-Height
|
|
1002
1002
|
* @see https://tailwindcss.com/docs/min-height
|
|
1003
1003
|
*/
|
|
1004
1004
|
"min-h": [{
|
|
1005
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1005
|
+
"min-h": ["screen", "lh", "none", ...Q()]
|
|
1006
1006
|
}],
|
|
1007
1007
|
/**
|
|
1008
1008
|
* Max-Height
|
|
1009
1009
|
* @see https://tailwindcss.com/docs/max-height
|
|
1010
1010
|
*/
|
|
1011
1011
|
"max-h": [{
|
|
1012
|
-
"max-h": ["screen", "lh", ...
|
|
1012
|
+
"max-h": ["screen", "lh", ...Q()]
|
|
1013
1013
|
}],
|
|
1014
1014
|
// ------------------
|
|
1015
1015
|
// --- Typography ---
|
|
@@ -1019,7 +1019,7 @@ const ln = (e, n) => {
|
|
|
1019
1019
|
* @see https://tailwindcss.com/docs/font-size
|
|
1020
1020
|
*/
|
|
1021
1021
|
"font-size": [{
|
|
1022
|
-
text: ["base",
|
|
1022
|
+
text: ["base", n, ye, oe]
|
|
1023
1023
|
}],
|
|
1024
1024
|
/**
|
|
1025
1025
|
* Font Smoothing
|
|
@@ -1036,21 +1036,21 @@ const ln = (e, n) => {
|
|
|
1036
1036
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1037
1037
|
*/
|
|
1038
1038
|
"font-weight": [{
|
|
1039
|
-
font: [o, f,
|
|
1039
|
+
font: [o, f, ze]
|
|
1040
1040
|
}],
|
|
1041
1041
|
/**
|
|
1042
1042
|
* Font Stretch
|
|
1043
1043
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1044
1044
|
*/
|
|
1045
1045
|
"font-stretch": [{
|
|
1046
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1046
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", $e, y]
|
|
1047
1047
|
}],
|
|
1048
1048
|
/**
|
|
1049
1049
|
* Font Family
|
|
1050
1050
|
* @see https://tailwindcss.com/docs/font-family
|
|
1051
1051
|
*/
|
|
1052
1052
|
"font-family": [{
|
|
1053
|
-
font: [
|
|
1053
|
+
font: [Vn, y, r]
|
|
1054
1054
|
}],
|
|
1055
1055
|
/**
|
|
1056
1056
|
* Font Variant Numeric
|
|
@@ -1094,7 +1094,7 @@ const ln = (e, n) => {
|
|
|
1094
1094
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1095
1095
|
*/
|
|
1096
1096
|
"line-clamp": [{
|
|
1097
|
-
"line-clamp": [
|
|
1097
|
+
"line-clamp": [C, "none", f, ze]
|
|
1098
1098
|
}],
|
|
1099
1099
|
/**
|
|
1100
1100
|
* Line Height
|
|
@@ -1160,14 +1160,14 @@ const ln = (e, n) => {
|
|
|
1160
1160
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1161
1161
|
*/
|
|
1162
1162
|
"text-decoration-style": [{
|
|
1163
|
-
decoration: [...
|
|
1163
|
+
decoration: [...be(), "wavy"]
|
|
1164
1164
|
}],
|
|
1165
1165
|
/**
|
|
1166
1166
|
* Text Decoration Thickness
|
|
1167
1167
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1168
1168
|
*/
|
|
1169
1169
|
"text-decoration-thickness": [{
|
|
1170
|
-
decoration: [
|
|
1170
|
+
decoration: [C, "from-font", "auto", f, oe]
|
|
1171
1171
|
}],
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Text Decoration Color
|
|
@@ -1181,7 +1181,7 @@ const ln = (e, n) => {
|
|
|
1181
1181
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1182
1182
|
*/
|
|
1183
1183
|
"underline-offset": [{
|
|
1184
|
-
"underline-offset": [
|
|
1184
|
+
"underline-offset": [C, "auto", f, y]
|
|
1185
1185
|
}],
|
|
1186
1186
|
/**
|
|
1187
1187
|
* Text Transform
|
|
@@ -1278,21 +1278,21 @@ const ln = (e, n) => {
|
|
|
1278
1278
|
* @see https://tailwindcss.com/docs/background-position
|
|
1279
1279
|
*/
|
|
1280
1280
|
"bg-position": [{
|
|
1281
|
-
bg:
|
|
1281
|
+
bg: sr()
|
|
1282
1282
|
}],
|
|
1283
1283
|
/**
|
|
1284
1284
|
* Background Repeat
|
|
1285
1285
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1286
1286
|
*/
|
|
1287
1287
|
"bg-repeat": [{
|
|
1288
|
-
bg:
|
|
1288
|
+
bg: ir()
|
|
1289
1289
|
}],
|
|
1290
1290
|
/**
|
|
1291
1291
|
* Background Size
|
|
1292
1292
|
* @see https://tailwindcss.com/docs/background-size
|
|
1293
1293
|
*/
|
|
1294
1294
|
"bg-size": [{
|
|
1295
|
-
bg:
|
|
1295
|
+
bg: dr()
|
|
1296
1296
|
}],
|
|
1297
1297
|
/**
|
|
1298
1298
|
* Background Image
|
|
@@ -1302,10 +1302,10 @@ const ln = (e, n) => {
|
|
|
1302
1302
|
bg: ["none", {
|
|
1303
1303
|
linear: [{
|
|
1304
1304
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1305
|
-
},
|
|
1305
|
+
}, ee, f, y],
|
|
1306
1306
|
radial: ["", f, y],
|
|
1307
|
-
conic: [
|
|
1308
|
-
},
|
|
1307
|
+
conic: [ee, f, y]
|
|
1308
|
+
}, Hn, Kn]
|
|
1309
1309
|
}],
|
|
1310
1310
|
/**
|
|
1311
1311
|
* Background Color
|
|
@@ -1319,21 +1319,21 @@ const ln = (e, n) => {
|
|
|
1319
1319
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1320
1320
|
*/
|
|
1321
1321
|
"gradient-from-pos": [{
|
|
1322
|
-
from:
|
|
1322
|
+
from: Ue()
|
|
1323
1323
|
}],
|
|
1324
1324
|
/**
|
|
1325
1325
|
* Gradient Color Stops Via Position
|
|
1326
1326
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1327
1327
|
*/
|
|
1328
1328
|
"gradient-via-pos": [{
|
|
1329
|
-
via:
|
|
1329
|
+
via: Ue()
|
|
1330
1330
|
}],
|
|
1331
1331
|
/**
|
|
1332
1332
|
* Gradient Color Stops To Position
|
|
1333
1333
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1334
1334
|
*/
|
|
1335
1335
|
"gradient-to-pos": [{
|
|
1336
|
-
to:
|
|
1336
|
+
to: Ue()
|
|
1337
1337
|
}],
|
|
1338
1338
|
/**
|
|
1339
1339
|
* Gradient Color Stops From
|
|
@@ -1364,175 +1364,175 @@ const ln = (e, n) => {
|
|
|
1364
1364
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1365
1365
|
*/
|
|
1366
1366
|
rounded: [{
|
|
1367
|
-
rounded:
|
|
1367
|
+
rounded: T()
|
|
1368
1368
|
}],
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Border Radius Start
|
|
1371
1371
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1372
1372
|
*/
|
|
1373
1373
|
"rounded-s": [{
|
|
1374
|
-
"rounded-s":
|
|
1374
|
+
"rounded-s": T()
|
|
1375
1375
|
}],
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Border Radius End
|
|
1378
1378
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1379
1379
|
*/
|
|
1380
1380
|
"rounded-e": [{
|
|
1381
|
-
"rounded-e":
|
|
1381
|
+
"rounded-e": T()
|
|
1382
1382
|
}],
|
|
1383
1383
|
/**
|
|
1384
1384
|
* Border Radius Top
|
|
1385
1385
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1386
1386
|
*/
|
|
1387
1387
|
"rounded-t": [{
|
|
1388
|
-
"rounded-t":
|
|
1388
|
+
"rounded-t": T()
|
|
1389
1389
|
}],
|
|
1390
1390
|
/**
|
|
1391
1391
|
* Border Radius Right
|
|
1392
1392
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1393
1393
|
*/
|
|
1394
1394
|
"rounded-r": [{
|
|
1395
|
-
"rounded-r":
|
|
1395
|
+
"rounded-r": T()
|
|
1396
1396
|
}],
|
|
1397
1397
|
/**
|
|
1398
1398
|
* Border Radius Bottom
|
|
1399
1399
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1400
1400
|
*/
|
|
1401
1401
|
"rounded-b": [{
|
|
1402
|
-
"rounded-b":
|
|
1402
|
+
"rounded-b": T()
|
|
1403
1403
|
}],
|
|
1404
1404
|
/**
|
|
1405
1405
|
* Border Radius Left
|
|
1406
1406
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1407
1407
|
*/
|
|
1408
1408
|
"rounded-l": [{
|
|
1409
|
-
"rounded-l":
|
|
1409
|
+
"rounded-l": T()
|
|
1410
1410
|
}],
|
|
1411
1411
|
/**
|
|
1412
1412
|
* Border Radius Start Start
|
|
1413
1413
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1414
1414
|
*/
|
|
1415
1415
|
"rounded-ss": [{
|
|
1416
|
-
"rounded-ss":
|
|
1416
|
+
"rounded-ss": T()
|
|
1417
1417
|
}],
|
|
1418
1418
|
/**
|
|
1419
1419
|
* Border Radius Start End
|
|
1420
1420
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1421
1421
|
*/
|
|
1422
1422
|
"rounded-se": [{
|
|
1423
|
-
"rounded-se":
|
|
1423
|
+
"rounded-se": T()
|
|
1424
1424
|
}],
|
|
1425
1425
|
/**
|
|
1426
1426
|
* Border Radius End End
|
|
1427
1427
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1428
1428
|
*/
|
|
1429
1429
|
"rounded-ee": [{
|
|
1430
|
-
"rounded-ee":
|
|
1430
|
+
"rounded-ee": T()
|
|
1431
1431
|
}],
|
|
1432
1432
|
/**
|
|
1433
1433
|
* Border Radius End Start
|
|
1434
1434
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1435
1435
|
*/
|
|
1436
1436
|
"rounded-es": [{
|
|
1437
|
-
"rounded-es":
|
|
1437
|
+
"rounded-es": T()
|
|
1438
1438
|
}],
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Border Radius Top Left
|
|
1441
1441
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1442
1442
|
*/
|
|
1443
1443
|
"rounded-tl": [{
|
|
1444
|
-
"rounded-tl":
|
|
1444
|
+
"rounded-tl": T()
|
|
1445
1445
|
}],
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Border Radius Top Right
|
|
1448
1448
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1449
1449
|
*/
|
|
1450
1450
|
"rounded-tr": [{
|
|
1451
|
-
"rounded-tr":
|
|
1451
|
+
"rounded-tr": T()
|
|
1452
1452
|
}],
|
|
1453
1453
|
/**
|
|
1454
1454
|
* Border Radius Bottom Right
|
|
1455
1455
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1456
1456
|
*/
|
|
1457
1457
|
"rounded-br": [{
|
|
1458
|
-
"rounded-br":
|
|
1458
|
+
"rounded-br": T()
|
|
1459
1459
|
}],
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Border Radius Bottom Left
|
|
1462
1462
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1463
1463
|
*/
|
|
1464
1464
|
"rounded-bl": [{
|
|
1465
|
-
"rounded-bl":
|
|
1465
|
+
"rounded-bl": T()
|
|
1466
1466
|
}],
|
|
1467
1467
|
/**
|
|
1468
1468
|
* Border Width
|
|
1469
1469
|
* @see https://tailwindcss.com/docs/border-width
|
|
1470
1470
|
*/
|
|
1471
1471
|
"border-w": [{
|
|
1472
|
-
border:
|
|
1472
|
+
border: $()
|
|
1473
1473
|
}],
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Border Width X
|
|
1476
1476
|
* @see https://tailwindcss.com/docs/border-width
|
|
1477
1477
|
*/
|
|
1478
1478
|
"border-w-x": [{
|
|
1479
|
-
"border-x":
|
|
1479
|
+
"border-x": $()
|
|
1480
1480
|
}],
|
|
1481
1481
|
/**
|
|
1482
1482
|
* Border Width Y
|
|
1483
1483
|
* @see https://tailwindcss.com/docs/border-width
|
|
1484
1484
|
*/
|
|
1485
1485
|
"border-w-y": [{
|
|
1486
|
-
"border-y":
|
|
1486
|
+
"border-y": $()
|
|
1487
1487
|
}],
|
|
1488
1488
|
/**
|
|
1489
1489
|
* Border Width Start
|
|
1490
1490
|
* @see https://tailwindcss.com/docs/border-width
|
|
1491
1491
|
*/
|
|
1492
1492
|
"border-w-s": [{
|
|
1493
|
-
"border-s":
|
|
1493
|
+
"border-s": $()
|
|
1494
1494
|
}],
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Border Width End
|
|
1497
1497
|
* @see https://tailwindcss.com/docs/border-width
|
|
1498
1498
|
*/
|
|
1499
1499
|
"border-w-e": [{
|
|
1500
|
-
"border-e":
|
|
1500
|
+
"border-e": $()
|
|
1501
1501
|
}],
|
|
1502
1502
|
/**
|
|
1503
1503
|
* Border Width Top
|
|
1504
1504
|
* @see https://tailwindcss.com/docs/border-width
|
|
1505
1505
|
*/
|
|
1506
1506
|
"border-w-t": [{
|
|
1507
|
-
"border-t":
|
|
1507
|
+
"border-t": $()
|
|
1508
1508
|
}],
|
|
1509
1509
|
/**
|
|
1510
1510
|
* Border Width Right
|
|
1511
1511
|
* @see https://tailwindcss.com/docs/border-width
|
|
1512
1512
|
*/
|
|
1513
1513
|
"border-w-r": [{
|
|
1514
|
-
"border-r":
|
|
1514
|
+
"border-r": $()
|
|
1515
1515
|
}],
|
|
1516
1516
|
/**
|
|
1517
1517
|
* Border Width Bottom
|
|
1518
1518
|
* @see https://tailwindcss.com/docs/border-width
|
|
1519
1519
|
*/
|
|
1520
1520
|
"border-w-b": [{
|
|
1521
|
-
"border-b":
|
|
1521
|
+
"border-b": $()
|
|
1522
1522
|
}],
|
|
1523
1523
|
/**
|
|
1524
1524
|
* Border Width Left
|
|
1525
1525
|
* @see https://tailwindcss.com/docs/border-width
|
|
1526
1526
|
*/
|
|
1527
1527
|
"border-w-l": [{
|
|
1528
|
-
"border-l":
|
|
1528
|
+
"border-l": $()
|
|
1529
1529
|
}],
|
|
1530
1530
|
/**
|
|
1531
1531
|
* Divide Width X
|
|
1532
1532
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1533
1533
|
*/
|
|
1534
1534
|
"divide-x": [{
|
|
1535
|
-
"divide-x":
|
|
1535
|
+
"divide-x": $()
|
|
1536
1536
|
}],
|
|
1537
1537
|
/**
|
|
1538
1538
|
* Divide Width X Reverse
|
|
@@ -1544,7 +1544,7 @@ const ln = (e, n) => {
|
|
|
1544
1544
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1545
1545
|
*/
|
|
1546
1546
|
"divide-y": [{
|
|
1547
|
-
"divide-y":
|
|
1547
|
+
"divide-y": $()
|
|
1548
1548
|
}],
|
|
1549
1549
|
/**
|
|
1550
1550
|
* Divide Width Y Reverse
|
|
@@ -1556,14 +1556,14 @@ const ln = (e, n) => {
|
|
|
1556
1556
|
* @see https://tailwindcss.com/docs/border-style
|
|
1557
1557
|
*/
|
|
1558
1558
|
"border-style": [{
|
|
1559
|
-
border: [...
|
|
1559
|
+
border: [...be(), "hidden", "none"]
|
|
1560
1560
|
}],
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Divide Style
|
|
1563
1563
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1564
1564
|
*/
|
|
1565
1565
|
"divide-style": [{
|
|
1566
|
-
divide: [...
|
|
1566
|
+
divide: [...be(), "hidden", "none"]
|
|
1567
1567
|
}],
|
|
1568
1568
|
/**
|
|
1569
1569
|
* Border Color
|
|
@@ -1640,21 +1640,21 @@ const ln = (e, n) => {
|
|
|
1640
1640
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1641
1641
|
*/
|
|
1642
1642
|
"outline-style": [{
|
|
1643
|
-
outline: [...
|
|
1643
|
+
outline: [...be(), "none", "hidden"]
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Outline Offset
|
|
1647
1647
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1648
1648
|
*/
|
|
1649
1649
|
"outline-offset": [{
|
|
1650
|
-
"outline-offset": [
|
|
1650
|
+
"outline-offset": [C, f, y]
|
|
1651
1651
|
}],
|
|
1652
1652
|
/**
|
|
1653
1653
|
* Outline Width
|
|
1654
1654
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1655
1655
|
*/
|
|
1656
1656
|
"outline-w": [{
|
|
1657
|
-
outline: ["",
|
|
1657
|
+
outline: ["", C, ye, oe]
|
|
1658
1658
|
}],
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Outline Color
|
|
@@ -1676,8 +1676,8 @@ const ln = (e, n) => {
|
|
|
1676
1676
|
"",
|
|
1677
1677
|
"none",
|
|
1678
1678
|
d,
|
|
1679
|
-
|
|
1680
|
-
|
|
1679
|
+
Se,
|
|
1680
|
+
ke
|
|
1681
1681
|
]
|
|
1682
1682
|
}],
|
|
1683
1683
|
/**
|
|
@@ -1692,7 +1692,7 @@ const ln = (e, n) => {
|
|
|
1692
1692
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1693
1693
|
*/
|
|
1694
1694
|
"inset-shadow": [{
|
|
1695
|
-
"inset-shadow": ["none", _,
|
|
1695
|
+
"inset-shadow": ["none", _, Se, ke]
|
|
1696
1696
|
}],
|
|
1697
1697
|
/**
|
|
1698
1698
|
* Inset Box Shadow Color
|
|
@@ -1706,7 +1706,7 @@ const ln = (e, n) => {
|
|
|
1706
1706
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1707
1707
|
*/
|
|
1708
1708
|
"ring-w": [{
|
|
1709
|
-
ring:
|
|
1709
|
+
ring: $()
|
|
1710
1710
|
}],
|
|
1711
1711
|
/**
|
|
1712
1712
|
* Ring Width Inset
|
|
@@ -1729,7 +1729,7 @@ const ln = (e, n) => {
|
|
|
1729
1729
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1730
1730
|
*/
|
|
1731
1731
|
"ring-offset-w": [{
|
|
1732
|
-
"ring-offset": [
|
|
1732
|
+
"ring-offset": [C, oe]
|
|
1733
1733
|
}],
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Ring Offset Color
|
|
@@ -1745,7 +1745,7 @@ const ln = (e, n) => {
|
|
|
1745
1745
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1746
1746
|
*/
|
|
1747
1747
|
"inset-ring-w": [{
|
|
1748
|
-
"inset-ring":
|
|
1748
|
+
"inset-ring": $()
|
|
1749
1749
|
}],
|
|
1750
1750
|
/**
|
|
1751
1751
|
* Inset Ring Color
|
|
@@ -1759,7 +1759,7 @@ const ln = (e, n) => {
|
|
|
1759
1759
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1760
1760
|
*/
|
|
1761
1761
|
"text-shadow": [{
|
|
1762
|
-
"text-shadow": ["none", b,
|
|
1762
|
+
"text-shadow": ["none", b, Se, ke]
|
|
1763
1763
|
}],
|
|
1764
1764
|
/**
|
|
1765
1765
|
* Text Shadow Color
|
|
@@ -1773,21 +1773,21 @@ const ln = (e, n) => {
|
|
|
1773
1773
|
* @see https://tailwindcss.com/docs/opacity
|
|
1774
1774
|
*/
|
|
1775
1775
|
opacity: [{
|
|
1776
|
-
opacity: [
|
|
1776
|
+
opacity: [C, f, y]
|
|
1777
1777
|
}],
|
|
1778
1778
|
/**
|
|
1779
1779
|
* Mix Blend Mode
|
|
1780
1780
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1781
1781
|
*/
|
|
1782
1782
|
"mix-blend": [{
|
|
1783
|
-
"mix-blend": [...
|
|
1783
|
+
"mix-blend": [...ur(), "plus-darker", "plus-lighter"]
|
|
1784
1784
|
}],
|
|
1785
1785
|
/**
|
|
1786
1786
|
* Background Blend Mode
|
|
1787
1787
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1788
1788
|
*/
|
|
1789
1789
|
"bg-blend": [{
|
|
1790
|
-
"bg-blend":
|
|
1790
|
+
"bg-blend": ur()
|
|
1791
1791
|
}],
|
|
1792
1792
|
/**
|
|
1793
1793
|
* Mask Clip
|
|
@@ -1808,7 +1808,7 @@ const ln = (e, n) => {
|
|
|
1808
1808
|
* @see https://tailwindcss.com/docs/mask-image
|
|
1809
1809
|
*/
|
|
1810
1810
|
"mask-image-linear-pos": [{
|
|
1811
|
-
"mask-linear": [
|
|
1811
|
+
"mask-linear": [C]
|
|
1812
1812
|
}],
|
|
1813
1813
|
"mask-image-linear-from-pos": [{
|
|
1814
1814
|
"mask-linear-from": F()
|
|
@@ -1919,10 +1919,10 @@ const ln = (e, n) => {
|
|
|
1919
1919
|
}]
|
|
1920
1920
|
}],
|
|
1921
1921
|
"mask-image-radial-pos": [{
|
|
1922
|
-
"mask-radial-at":
|
|
1922
|
+
"mask-radial-at": m()
|
|
1923
1923
|
}],
|
|
1924
1924
|
"mask-image-conic-pos": [{
|
|
1925
|
-
"mask-conic": [
|
|
1925
|
+
"mask-conic": [C]
|
|
1926
1926
|
}],
|
|
1927
1927
|
"mask-image-conic-from-pos": [{
|
|
1928
1928
|
"mask-conic-from": F()
|
|
@@ -1955,21 +1955,21 @@ const ln = (e, n) => {
|
|
|
1955
1955
|
* @see https://tailwindcss.com/docs/mask-position
|
|
1956
1956
|
*/
|
|
1957
1957
|
"mask-position": [{
|
|
1958
|
-
mask:
|
|
1958
|
+
mask: sr()
|
|
1959
1959
|
}],
|
|
1960
1960
|
/**
|
|
1961
1961
|
* Mask Repeat
|
|
1962
1962
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
1963
1963
|
*/
|
|
1964
1964
|
"mask-repeat": [{
|
|
1965
|
-
mask:
|
|
1965
|
+
mask: ir()
|
|
1966
1966
|
}],
|
|
1967
1967
|
/**
|
|
1968
1968
|
* Mask Size
|
|
1969
1969
|
* @see https://tailwindcss.com/docs/mask-size
|
|
1970
1970
|
*/
|
|
1971
1971
|
"mask-size": [{
|
|
1972
|
-
mask:
|
|
1972
|
+
mask: dr()
|
|
1973
1973
|
}],
|
|
1974
1974
|
/**
|
|
1975
1975
|
* Mask Type
|
|
@@ -2006,21 +2006,21 @@ const ln = (e, n) => {
|
|
|
2006
2006
|
* @see https://tailwindcss.com/docs/blur
|
|
2007
2007
|
*/
|
|
2008
2008
|
blur: [{
|
|
2009
|
-
blur:
|
|
2009
|
+
blur: mr()
|
|
2010
2010
|
}],
|
|
2011
2011
|
/**
|
|
2012
2012
|
* Brightness
|
|
2013
2013
|
* @see https://tailwindcss.com/docs/brightness
|
|
2014
2014
|
*/
|
|
2015
2015
|
brightness: [{
|
|
2016
|
-
brightness: [
|
|
2016
|
+
brightness: [C, f, y]
|
|
2017
2017
|
}],
|
|
2018
2018
|
/**
|
|
2019
2019
|
* Contrast
|
|
2020
2020
|
* @see https://tailwindcss.com/docs/contrast
|
|
2021
2021
|
*/
|
|
2022
2022
|
contrast: [{
|
|
2023
|
-
contrast: [
|
|
2023
|
+
contrast: [C, f, y]
|
|
2024
2024
|
}],
|
|
2025
2025
|
/**
|
|
2026
2026
|
* Drop Shadow
|
|
@@ -2032,8 +2032,8 @@ const ln = (e, n) => {
|
|
|
2032
2032
|
"",
|
|
2033
2033
|
"none",
|
|
2034
2034
|
p,
|
|
2035
|
-
|
|
2036
|
-
|
|
2035
|
+
Se,
|
|
2036
|
+
ke
|
|
2037
2037
|
]
|
|
2038
2038
|
}],
|
|
2039
2039
|
/**
|
|
@@ -2048,35 +2048,35 @@ const ln = (e, n) => {
|
|
|
2048
2048
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2049
2049
|
*/
|
|
2050
2050
|
grayscale: [{
|
|
2051
|
-
grayscale: ["",
|
|
2051
|
+
grayscale: ["", C, f, y]
|
|
2052
2052
|
}],
|
|
2053
2053
|
/**
|
|
2054
2054
|
* Hue Rotate
|
|
2055
2055
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2056
2056
|
*/
|
|
2057
2057
|
"hue-rotate": [{
|
|
2058
|
-
"hue-rotate": [
|
|
2058
|
+
"hue-rotate": [C, f, y]
|
|
2059
2059
|
}],
|
|
2060
2060
|
/**
|
|
2061
2061
|
* Invert
|
|
2062
2062
|
* @see https://tailwindcss.com/docs/invert
|
|
2063
2063
|
*/
|
|
2064
2064
|
invert: [{
|
|
2065
|
-
invert: ["",
|
|
2065
|
+
invert: ["", C, f, y]
|
|
2066
2066
|
}],
|
|
2067
2067
|
/**
|
|
2068
2068
|
* Saturate
|
|
2069
2069
|
* @see https://tailwindcss.com/docs/saturate
|
|
2070
2070
|
*/
|
|
2071
2071
|
saturate: [{
|
|
2072
|
-
saturate: [
|
|
2072
|
+
saturate: [C, f, y]
|
|
2073
2073
|
}],
|
|
2074
2074
|
/**
|
|
2075
2075
|
* Sepia
|
|
2076
2076
|
* @see https://tailwindcss.com/docs/sepia
|
|
2077
2077
|
*/
|
|
2078
2078
|
sepia: [{
|
|
2079
|
-
sepia: ["",
|
|
2079
|
+
sepia: ["", C, f, y]
|
|
2080
2080
|
}],
|
|
2081
2081
|
/**
|
|
2082
2082
|
* Backdrop Filter
|
|
@@ -2096,63 +2096,63 @@ const ln = (e, n) => {
|
|
|
2096
2096
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2097
2097
|
*/
|
|
2098
2098
|
"backdrop-blur": [{
|
|
2099
|
-
"backdrop-blur":
|
|
2099
|
+
"backdrop-blur": mr()
|
|
2100
2100
|
}],
|
|
2101
2101
|
/**
|
|
2102
2102
|
* Backdrop Brightness
|
|
2103
2103
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2104
2104
|
*/
|
|
2105
2105
|
"backdrop-brightness": [{
|
|
2106
|
-
"backdrop-brightness": [
|
|
2106
|
+
"backdrop-brightness": [C, f, y]
|
|
2107
2107
|
}],
|
|
2108
2108
|
/**
|
|
2109
2109
|
* Backdrop Contrast
|
|
2110
2110
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2111
2111
|
*/
|
|
2112
2112
|
"backdrop-contrast": [{
|
|
2113
|
-
"backdrop-contrast": [
|
|
2113
|
+
"backdrop-contrast": [C, f, y]
|
|
2114
2114
|
}],
|
|
2115
2115
|
/**
|
|
2116
2116
|
* Backdrop Grayscale
|
|
2117
2117
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2118
2118
|
*/
|
|
2119
2119
|
"backdrop-grayscale": [{
|
|
2120
|
-
"backdrop-grayscale": ["",
|
|
2120
|
+
"backdrop-grayscale": ["", C, f, y]
|
|
2121
2121
|
}],
|
|
2122
2122
|
/**
|
|
2123
2123
|
* Backdrop Hue Rotate
|
|
2124
2124
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2125
2125
|
*/
|
|
2126
2126
|
"backdrop-hue-rotate": [{
|
|
2127
|
-
"backdrop-hue-rotate": [
|
|
2127
|
+
"backdrop-hue-rotate": [C, f, y]
|
|
2128
2128
|
}],
|
|
2129
2129
|
/**
|
|
2130
2130
|
* Backdrop Invert
|
|
2131
2131
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2132
2132
|
*/
|
|
2133
2133
|
"backdrop-invert": [{
|
|
2134
|
-
"backdrop-invert": ["",
|
|
2134
|
+
"backdrop-invert": ["", C, f, y]
|
|
2135
2135
|
}],
|
|
2136
2136
|
/**
|
|
2137
2137
|
* Backdrop Opacity
|
|
2138
2138
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2139
2139
|
*/
|
|
2140
2140
|
"backdrop-opacity": [{
|
|
2141
|
-
"backdrop-opacity": [
|
|
2141
|
+
"backdrop-opacity": [C, f, y]
|
|
2142
2142
|
}],
|
|
2143
2143
|
/**
|
|
2144
2144
|
* Backdrop Saturate
|
|
2145
2145
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2146
2146
|
*/
|
|
2147
2147
|
"backdrop-saturate": [{
|
|
2148
|
-
"backdrop-saturate": [
|
|
2148
|
+
"backdrop-saturate": [C, f, y]
|
|
2149
2149
|
}],
|
|
2150
2150
|
/**
|
|
2151
2151
|
* Backdrop Sepia
|
|
2152
2152
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2153
2153
|
*/
|
|
2154
2154
|
"backdrop-sepia": [{
|
|
2155
|
-
"backdrop-sepia": ["",
|
|
2155
|
+
"backdrop-sepia": ["", C, f, y]
|
|
2156
2156
|
}],
|
|
2157
2157
|
// --------------
|
|
2158
2158
|
// --- Tables ---
|
|
@@ -2221,21 +2221,21 @@ const ln = (e, n) => {
|
|
|
2221
2221
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2222
2222
|
*/
|
|
2223
2223
|
duration: [{
|
|
2224
|
-
duration: [
|
|
2224
|
+
duration: [C, "initial", f, y]
|
|
2225
2225
|
}],
|
|
2226
2226
|
/**
|
|
2227
2227
|
* Transition Timing Function
|
|
2228
2228
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2229
2229
|
*/
|
|
2230
2230
|
ease: [{
|
|
2231
|
-
ease: ["linear", "initial",
|
|
2231
|
+
ease: ["linear", "initial", E, f, y]
|
|
2232
2232
|
}],
|
|
2233
2233
|
/**
|
|
2234
2234
|
* Transition Delay
|
|
2235
2235
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2236
2236
|
*/
|
|
2237
2237
|
delay: [{
|
|
2238
|
-
delay: [
|
|
2238
|
+
delay: [C, f, y]
|
|
2239
2239
|
}],
|
|
2240
2240
|
/**
|
|
2241
2241
|
* Animation
|
|
@@ -2259,70 +2259,70 @@ const ln = (e, n) => {
|
|
|
2259
2259
|
* @see https://tailwindcss.com/docs/perspective
|
|
2260
2260
|
*/
|
|
2261
2261
|
perspective: [{
|
|
2262
|
-
perspective: [
|
|
2262
|
+
perspective: [x, f, y]
|
|
2263
2263
|
}],
|
|
2264
2264
|
/**
|
|
2265
2265
|
* Perspective Origin
|
|
2266
2266
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2267
2267
|
*/
|
|
2268
2268
|
"perspective-origin": [{
|
|
2269
|
-
"perspective-origin":
|
|
2269
|
+
"perspective-origin": S()
|
|
2270
2270
|
}],
|
|
2271
2271
|
/**
|
|
2272
2272
|
* Rotate
|
|
2273
2273
|
* @see https://tailwindcss.com/docs/rotate
|
|
2274
2274
|
*/
|
|
2275
2275
|
rotate: [{
|
|
2276
|
-
rotate:
|
|
2276
|
+
rotate: he()
|
|
2277
2277
|
}],
|
|
2278
2278
|
/**
|
|
2279
2279
|
* Rotate X
|
|
2280
2280
|
* @see https://tailwindcss.com/docs/rotate
|
|
2281
2281
|
*/
|
|
2282
2282
|
"rotate-x": [{
|
|
2283
|
-
"rotate-x":
|
|
2283
|
+
"rotate-x": he()
|
|
2284
2284
|
}],
|
|
2285
2285
|
/**
|
|
2286
2286
|
* Rotate Y
|
|
2287
2287
|
* @see https://tailwindcss.com/docs/rotate
|
|
2288
2288
|
*/
|
|
2289
2289
|
"rotate-y": [{
|
|
2290
|
-
"rotate-y":
|
|
2290
|
+
"rotate-y": he()
|
|
2291
2291
|
}],
|
|
2292
2292
|
/**
|
|
2293
2293
|
* Rotate Z
|
|
2294
2294
|
* @see https://tailwindcss.com/docs/rotate
|
|
2295
2295
|
*/
|
|
2296
2296
|
"rotate-z": [{
|
|
2297
|
-
"rotate-z":
|
|
2297
|
+
"rotate-z": he()
|
|
2298
2298
|
}],
|
|
2299
2299
|
/**
|
|
2300
2300
|
* Scale
|
|
2301
2301
|
* @see https://tailwindcss.com/docs/scale
|
|
2302
2302
|
*/
|
|
2303
2303
|
scale: [{
|
|
2304
|
-
scale:
|
|
2304
|
+
scale: ve()
|
|
2305
2305
|
}],
|
|
2306
2306
|
/**
|
|
2307
2307
|
* Scale X
|
|
2308
2308
|
* @see https://tailwindcss.com/docs/scale
|
|
2309
2309
|
*/
|
|
2310
2310
|
"scale-x": [{
|
|
2311
|
-
"scale-x":
|
|
2311
|
+
"scale-x": ve()
|
|
2312
2312
|
}],
|
|
2313
2313
|
/**
|
|
2314
2314
|
* Scale Y
|
|
2315
2315
|
* @see https://tailwindcss.com/docs/scale
|
|
2316
2316
|
*/
|
|
2317
2317
|
"scale-y": [{
|
|
2318
|
-
"scale-y":
|
|
2318
|
+
"scale-y": ve()
|
|
2319
2319
|
}],
|
|
2320
2320
|
/**
|
|
2321
2321
|
* Scale Z
|
|
2322
2322
|
* @see https://tailwindcss.com/docs/scale
|
|
2323
2323
|
*/
|
|
2324
2324
|
"scale-z": [{
|
|
2325
|
-
"scale-z":
|
|
2325
|
+
"scale-z": ve()
|
|
2326
2326
|
}],
|
|
2327
2327
|
/**
|
|
2328
2328
|
* Scale 3D
|
|
@@ -2334,21 +2334,21 @@ const ln = (e, n) => {
|
|
|
2334
2334
|
* @see https://tailwindcss.com/docs/skew
|
|
2335
2335
|
*/
|
|
2336
2336
|
skew: [{
|
|
2337
|
-
skew:
|
|
2337
|
+
skew: Ge()
|
|
2338
2338
|
}],
|
|
2339
2339
|
/**
|
|
2340
2340
|
* Skew X
|
|
2341
2341
|
* @see https://tailwindcss.com/docs/skew
|
|
2342
2342
|
*/
|
|
2343
2343
|
"skew-x": [{
|
|
2344
|
-
"skew-x":
|
|
2344
|
+
"skew-x": Ge()
|
|
2345
2345
|
}],
|
|
2346
2346
|
/**
|
|
2347
2347
|
* Skew Y
|
|
2348
2348
|
* @see https://tailwindcss.com/docs/skew
|
|
2349
2349
|
*/
|
|
2350
2350
|
"skew-y": [{
|
|
2351
|
-
"skew-y":
|
|
2351
|
+
"skew-y": Ge()
|
|
2352
2352
|
}],
|
|
2353
2353
|
/**
|
|
2354
2354
|
* Transform
|
|
@@ -2362,7 +2362,7 @@ const ln = (e, n) => {
|
|
|
2362
2362
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2363
2363
|
*/
|
|
2364
2364
|
"transform-origin": [{
|
|
2365
|
-
origin:
|
|
2365
|
+
origin: S()
|
|
2366
2366
|
}],
|
|
2367
2367
|
/**
|
|
2368
2368
|
* Transform Style
|
|
@@ -2376,28 +2376,28 @@ const ln = (e, n) => {
|
|
|
2376
2376
|
* @see https://tailwindcss.com/docs/translate
|
|
2377
2377
|
*/
|
|
2378
2378
|
translate: [{
|
|
2379
|
-
translate:
|
|
2379
|
+
translate: we()
|
|
2380
2380
|
}],
|
|
2381
2381
|
/**
|
|
2382
2382
|
* Translate X
|
|
2383
2383
|
* @see https://tailwindcss.com/docs/translate
|
|
2384
2384
|
*/
|
|
2385
2385
|
"translate-x": [{
|
|
2386
|
-
"translate-x":
|
|
2386
|
+
"translate-x": we()
|
|
2387
2387
|
}],
|
|
2388
2388
|
/**
|
|
2389
2389
|
* Translate Y
|
|
2390
2390
|
* @see https://tailwindcss.com/docs/translate
|
|
2391
2391
|
*/
|
|
2392
2392
|
"translate-y": [{
|
|
2393
|
-
"translate-y":
|
|
2393
|
+
"translate-y": we()
|
|
2394
2394
|
}],
|
|
2395
2395
|
/**
|
|
2396
2396
|
* Translate Z
|
|
2397
2397
|
* @see https://tailwindcss.com/docs/translate
|
|
2398
2398
|
*/
|
|
2399
2399
|
"translate-z": [{
|
|
2400
|
-
"translate-z":
|
|
2400
|
+
"translate-z": we()
|
|
2401
2401
|
}],
|
|
2402
2402
|
/**
|
|
2403
2403
|
* Translate None
|
|
@@ -2679,7 +2679,7 @@ const ln = (e, n) => {
|
|
|
2679
2679
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2680
2680
|
*/
|
|
2681
2681
|
"stroke-w": [{
|
|
2682
|
-
stroke: [
|
|
2682
|
+
stroke: [C, ye, oe, ze]
|
|
2683
2683
|
}],
|
|
2684
2684
|
/**
|
|
2685
2685
|
* Stroke
|
|
@@ -2754,22 +2754,44 @@ const ln = (e, n) => {
|
|
|
2754
2754
|
},
|
|
2755
2755
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2756
2756
|
};
|
|
2757
|
-
},
|
|
2757
|
+
}, ce = /* @__PURE__ */ En(Xn), Yn = {
|
|
2758
2758
|
auto: "h-auto text-base",
|
|
2759
2759
|
40: "h-10 text-sm",
|
|
2760
2760
|
44: "h-11 text-base",
|
|
2761
2761
|
48: "h-12 text-xl"
|
|
2762
|
-
},
|
|
2762
|
+
}, qn = {
|
|
2763
2763
|
none: "rounded-0",
|
|
2764
2764
|
8: "rounded-lg",
|
|
2765
2765
|
12: "rounded-xl",
|
|
2766
2766
|
16: "rounded-2xl",
|
|
2767
2767
|
full: "rounded-full"
|
|
2768
|
-
},
|
|
2769
|
-
primary:
|
|
2770
|
-
secondary:
|
|
2768
|
+
}, Jn = {
|
|
2769
|
+
primary: "bg-linear-to-tr border border-transparent from-primary-orange-500 active:bg-clip-padding active:outline active:outline-primary-orange-500 to-primary-red-700 hover:from-[#C44417] hover:to-[#921C20] font-medium justify-center px-4 text-white disabled-fill-button",
|
|
2770
|
+
secondary: "border border-primary-orange-500 text-primary-orange-500 active:border-transparent active:bg-clip-padding active:outline active:outline-primary-orange-500 font-medium justify-center px-4 hover:text-white hover:bg-primary-orange-500 disabled-fill-button",
|
|
2771
2771
|
ghost: "bg-transparent font-medium justify-center"
|
|
2772
|
-
},
|
|
2772
|
+
}, Qn = {
|
|
2773
|
+
12: "text-xs",
|
|
2774
|
+
14: "text-sm",
|
|
2775
|
+
16: "text-base",
|
|
2776
|
+
18: "lg:text-lg text-base",
|
|
2777
|
+
20: "lg:text-xl text-lg",
|
|
2778
|
+
24: "lg:text-2xl text-xl",
|
|
2779
|
+
30: "lg:text-3xl text-2xl",
|
|
2780
|
+
32: "lg:text-3.5xl text-2xl",
|
|
2781
|
+
36: "lg:text-4xl text-3.5xl",
|
|
2782
|
+
40: "lg:text-4.5xl text-3.5xl",
|
|
2783
|
+
48: "lg:text-5xl text-4.5xl"
|
|
2784
|
+
}, eo = {
|
|
2785
|
+
normal: "font-normal",
|
|
2786
|
+
medium: "font-medium",
|
|
2787
|
+
semibold: "font-semibold",
|
|
2788
|
+
bold: "font-bold"
|
|
2789
|
+
}, ro = {
|
|
2790
|
+
white: "text-white",
|
|
2791
|
+
black: "text-base-neutral-800"
|
|
2792
|
+
}, no = {
|
|
2793
|
+
poppins: "font-poppins"
|
|
2794
|
+
}, Ia = /* @__PURE__ */ V({
|
|
2773
2795
|
inheritAttrs: !1,
|
|
2774
2796
|
__name: "Button",
|
|
2775
2797
|
props: {
|
|
@@ -2786,43 +2808,43 @@ const ln = (e, n) => {
|
|
|
2786
2808
|
iconClassList: {}
|
|
2787
2809
|
},
|
|
2788
2810
|
setup(e) {
|
|
2789
|
-
const
|
|
2811
|
+
const r = an(), n = e, o = O(
|
|
2790
2812
|
() => {
|
|
2791
|
-
const a =
|
|
2792
|
-
return
|
|
2813
|
+
const a = Jn[n.variant], c = Yn[n.size], l = qn[n.radius], s = ["flex", "items-center", "group", "whitespace-nowrap", "transition-all", "duration-500"];
|
|
2814
|
+
return n.iconPosition === "end" && n.icon && s.push("flex-row-reverse", "gap-2"), ce(a, c, l, s, n.classList);
|
|
2793
2815
|
}
|
|
2794
2816
|
);
|
|
2795
2817
|
return (a, c) => {
|
|
2796
|
-
const l =
|
|
2797
|
-
return
|
|
2818
|
+
const l = Z("Iconsax");
|
|
2819
|
+
return w(), B(qe(e.to ? "router-link" : "m-button"), Ir({
|
|
2798
2820
|
to: e.to,
|
|
2799
2821
|
class: o.value,
|
|
2800
2822
|
disabled: e.loading
|
|
2801
|
-
},
|
|
2802
|
-
default:
|
|
2803
|
-
e.loading ? (
|
|
2823
|
+
}, Ee(r)), {
|
|
2824
|
+
default: K(() => [
|
|
2825
|
+
e.loading ? (w(), B(l, {
|
|
2804
2826
|
key: 0,
|
|
2805
2827
|
name: "svg-spinners:180-ring-with-bg",
|
|
2806
2828
|
class: "text-2xl"
|
|
2807
|
-
})) : (
|
|
2808
|
-
|
|
2809
|
-
e.icon ? (
|
|
2829
|
+
})) : (w(), D(te, { key: 1 }, [
|
|
2830
|
+
X(a.$slots, "before"),
|
|
2831
|
+
e.icon ? (w(), B(l, {
|
|
2810
2832
|
key: 0,
|
|
2811
2833
|
name: e.icon,
|
|
2812
|
-
class:
|
|
2834
|
+
class: H(e.iconClassList)
|
|
2813
2835
|
}, null, 8, ["name", "class"])) : G("", !0),
|
|
2814
|
-
e.text ? (
|
|
2836
|
+
e.text ? (w(), D("span", {
|
|
2815
2837
|
key: 1,
|
|
2816
|
-
class:
|
|
2817
|
-
},
|
|
2818
|
-
|
|
2838
|
+
class: H(e.textClassList)
|
|
2839
|
+
}, z(e.text), 3)) : G("", !0),
|
|
2840
|
+
X(a.$slots, "default")
|
|
2819
2841
|
], 64))
|
|
2820
2842
|
]),
|
|
2821
2843
|
_: 3
|
|
2822
2844
|
}, 16, ["to", "class", "disabled"]);
|
|
2823
2845
|
};
|
|
2824
2846
|
}
|
|
2825
|
-
}),
|
|
2847
|
+
}), oo = ["icon-name"], He = /* @__PURE__ */ V({
|
|
2826
2848
|
__name: "Iconsax",
|
|
2827
2849
|
props: {
|
|
2828
2850
|
name: {},
|
|
@@ -2830,33 +2852,42 @@ const ln = (e, n) => {
|
|
|
2830
2852
|
size: { default: 24 }
|
|
2831
2853
|
},
|
|
2832
2854
|
setup(e) {
|
|
2833
|
-
return (
|
|
2855
|
+
return (r, n) => (w(), D("i", {
|
|
2834
2856
|
class: "iconsax",
|
|
2835
|
-
style:
|
|
2857
|
+
style: Je({ color: e.color, fontSize: e.size + "px" }),
|
|
2836
2858
|
"icon-name": e.name
|
|
2837
|
-
}, null, 12,
|
|
2859
|
+
}, null, 12, oo));
|
|
2838
2860
|
}
|
|
2839
|
-
}),
|
|
2861
|
+
}), ao = { key: 0 }, co = /* @__PURE__ */ V({
|
|
2840
2862
|
__name: "Error",
|
|
2841
2863
|
props: {
|
|
2842
2864
|
errors: {}
|
|
2843
2865
|
},
|
|
2844
2866
|
setup(e) {
|
|
2845
|
-
return (
|
|
2846
|
-
var
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2867
|
+
return (r, n) => {
|
|
2868
|
+
var c;
|
|
2869
|
+
const o = Z("m-li"), a = Z("m-ul");
|
|
2870
|
+
return (c = e.errors) != null && c.length ? (w(), D("div", ao, [
|
|
2871
|
+
Y(a, { class: "list-disc list-inside grid gap-0.5 text-xs mt-2 text-red-400" }, {
|
|
2872
|
+
default: K(() => [
|
|
2873
|
+
(w(!0), D(te, null, Qe(e.errors, (l, s) => (w(), B(o, { key: s }, {
|
|
2874
|
+
default: K(() => [
|
|
2875
|
+
ae(z(l), 1)
|
|
2876
|
+
]),
|
|
2877
|
+
_: 2
|
|
2878
|
+
}, 1024))), 128))
|
|
2879
|
+
]),
|
|
2880
|
+
_: 1
|
|
2881
|
+
})
|
|
2851
2882
|
])) : G("", !0);
|
|
2852
2883
|
};
|
|
2853
2884
|
}
|
|
2854
|
-
}),
|
|
2855
|
-
const
|
|
2856
|
-
for (const [o, a] of
|
|
2857
|
-
|
|
2858
|
-
return
|
|
2859
|
-
},
|
|
2885
|
+
}), ar = (e, r) => {
|
|
2886
|
+
const n = e.__vccOpts || e;
|
|
2887
|
+
for (const [o, a] of r)
|
|
2888
|
+
n[o] = a;
|
|
2889
|
+
return n;
|
|
2890
|
+
}, Fa = /* @__PURE__ */ ar(co, [["__scopeId", "data-v-711d4930"]]), Oe = [
|
|
2860
2891
|
{
|
|
2861
2892
|
name: "Afghanistan",
|
|
2862
2893
|
dial_code: "+93",
|
|
@@ -5455,20 +5486,20 @@ const ln = (e, n) => {
|
|
|
5455
5486
|
currency_symbol: "€"
|
|
5456
5487
|
}
|
|
5457
5488
|
];
|
|
5458
|
-
function
|
|
5489
|
+
function lo(e, r, n = "click") {
|
|
5459
5490
|
const o = (a) => {
|
|
5460
5491
|
try {
|
|
5461
|
-
const c =
|
|
5492
|
+
const c = Ee(e);
|
|
5462
5493
|
if (!c) return;
|
|
5463
5494
|
const l = a == null ? void 0 : a.target;
|
|
5464
5495
|
if (!l) return;
|
|
5465
|
-
c.contains(l) ||
|
|
5496
|
+
c.contains(l) || r(a);
|
|
5466
5497
|
} catch {
|
|
5467
5498
|
}
|
|
5468
5499
|
};
|
|
5469
|
-
|
|
5500
|
+
pe(() => document.addEventListener(n, o)), er(() => document.removeEventListener(n, o));
|
|
5470
5501
|
}
|
|
5471
|
-
const
|
|
5502
|
+
const to = { class: "flex items-center gap-2 w-18 absolute h-12 start-0" }, so = { class: "mx-2 opacity-60" }, io = /* @__PURE__ */ V({
|
|
5472
5503
|
__name: "CountryCode",
|
|
5473
5504
|
props: {
|
|
5474
5505
|
modelValue: { default: "+964" },
|
|
@@ -5476,92 +5507,101 @@ const no = { class: "flex items-center gap-2 w-18 absolute h-12 start-0" }, oo =
|
|
|
5476
5507
|
},
|
|
5477
5508
|
emits: ["update:modelValue"],
|
|
5478
5509
|
setup(e) {
|
|
5479
|
-
const
|
|
5480
|
-
if (b(), !s.value) return
|
|
5510
|
+
const r = se(e, "modelValue"), n = P(!1), o = P(null), a = P(null), c = P({}), l = P(null), s = P(), t = O(() => Oe.find((p) => p.dial_code == r.value)), i = O(() => {
|
|
5511
|
+
if (b(), !s.value) return Oe;
|
|
5481
5512
|
let p = s.value.toLocaleLowerCase();
|
|
5482
|
-
return
|
|
5483
|
-
var
|
|
5484
|
-
return
|
|
5513
|
+
return Oe.filter((k) => {
|
|
5514
|
+
var x, u;
|
|
5515
|
+
return k.name.toLocaleLowerCase().includes(p) || ((x = k.local_name) == null ? void 0 : x.toLocaleLowerCase().includes(p)) || ((u = k.code) == null ? void 0 : u.toLocaleLowerCase().includes(p)) || k.dial_code.toLocaleLowerCase().includes(p);
|
|
5485
5516
|
});
|
|
5486
5517
|
}), d = (p) => {
|
|
5487
|
-
|
|
5518
|
+
r.value = p, s.value = void 0, n.value = !1;
|
|
5488
5519
|
}, _ = () => {
|
|
5489
|
-
|
|
5520
|
+
n.value = !n.value, n.value && setTimeout(b, 0);
|
|
5490
5521
|
}, b = () => {
|
|
5491
5522
|
if (!l.value || !a.value || !o.value) return;
|
|
5492
|
-
const p = l.value.getBoundingClientRect(),
|
|
5523
|
+
const p = l.value.getBoundingClientRect(), k = o.value.getBoundingClientRect(), x = a.value.offsetHeight, u = window.innerHeight - p.bottom, E = p.top, L = x > u && E > x, R = p.left - k.left, m = L ? p.top - k.top - x - 5 : p.bottom - k.top + 5;
|
|
5493
5524
|
c.value = {
|
|
5494
5525
|
position: "absolute",
|
|
5495
5526
|
left: `${R}px`,
|
|
5496
|
-
top: `${
|
|
5527
|
+
top: `${m}px`,
|
|
5497
5528
|
width: `${p.width}px`
|
|
5498
5529
|
};
|
|
5499
5530
|
};
|
|
5500
|
-
return
|
|
5531
|
+
return pe(() => {
|
|
5501
5532
|
window.addEventListener("scroll", b, !0), window.addEventListener("resize", b);
|
|
5502
|
-
}),
|
|
5533
|
+
}), rr(() => {
|
|
5503
5534
|
window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", b);
|
|
5504
|
-
}),
|
|
5505
|
-
|
|
5506
|
-
}), (p,
|
|
5507
|
-
|
|
5508
|
-
return
|
|
5535
|
+
}), lo(o, () => {
|
|
5536
|
+
n.value = !1;
|
|
5537
|
+
}), (p, k) => {
|
|
5538
|
+
const x = Z("m-button");
|
|
5539
|
+
return w(), D("div", {
|
|
5509
5540
|
ref_key: "wrapperRef",
|
|
5510
5541
|
ref: o,
|
|
5511
5542
|
class: "text-sm relative"
|
|
5512
5543
|
}, [
|
|
5513
|
-
|
|
5514
|
-
|
|
5544
|
+
j("div", to, [
|
|
5545
|
+
Y(x, {
|
|
5515
5546
|
ref_key: "buttonRef",
|
|
5516
5547
|
ref: l,
|
|
5517
5548
|
onClick: _,
|
|
5518
5549
|
type: "button",
|
|
5519
|
-
class: "flex gap-1 items-center cursor-pointer
|
|
5550
|
+
class: "flex gap-1 items-center cursor-pointer",
|
|
5520
5551
|
"aria-label": "Select Country Code"
|
|
5521
|
-
},
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5552
|
+
}, {
|
|
5553
|
+
default: K(() => {
|
|
5554
|
+
var u;
|
|
5555
|
+
return [
|
|
5556
|
+
j("span", so, z((u = t.value) == null ? void 0 : u.dial_code), 1)
|
|
5557
|
+
];
|
|
5558
|
+
}),
|
|
5559
|
+
_: 1
|
|
5560
|
+
}, 512),
|
|
5561
|
+
k[1] || (k[1] = j("span", null, null, -1))
|
|
5525
5562
|
]),
|
|
5526
|
-
|
|
5527
|
-
class:
|
|
5563
|
+
j("div", {
|
|
5564
|
+
class: H(["absolute rounded-lg min-w-36 border border-base-neutral-100 text-sm bg-base-neutral-50 start-0 z-10", n.value ? "border overflow-hidden h-48" : "h-0 overflow-hidden border-0"]),
|
|
5528
5565
|
ref_key: "dropdownRef",
|
|
5529
5566
|
ref: a,
|
|
5530
|
-
style:
|
|
5567
|
+
style: Je(c.value)
|
|
5531
5568
|
}, [
|
|
5532
|
-
|
|
5569
|
+
Fr(j("input", {
|
|
5533
5570
|
name: "search",
|
|
5534
|
-
"onUpdate:modelValue":
|
|
5571
|
+
"onUpdate:modelValue": k[0] || (k[0] = (u) => s.value = u),
|
|
5535
5572
|
placeholder: "search",
|
|
5536
5573
|
class: "w-full focus:ring-0 border-b h-12 border-base-neutral-100 focus:outline-none px-3 py-2"
|
|
5537
5574
|
}, null, 512), [
|
|
5538
|
-
[
|
|
5575
|
+
[Pr, s.value]
|
|
5539
5576
|
]),
|
|
5540
|
-
|
|
5541
|
-
class:
|
|
5577
|
+
j("div", {
|
|
5578
|
+
class: H(["no-scrollbar", n.value ? "max-h-36 min-h-12 overflow-y-auto" : "h-0 overflow-hidden"])
|
|
5542
5579
|
}, [
|
|
5543
|
-
(
|
|
5580
|
+
(w(!0), D(te, null, Qe(i.value, (u) => (w(), B(x, {
|
|
5544
5581
|
type: "button",
|
|
5545
|
-
onClick: (
|
|
5582
|
+
onClick: (E) => d(u.dial_code),
|
|
5546
5583
|
class: "flex gap-2 w-full hover:bg-base-neutral-100/30 border-b last-of-type:border-0 border-base-neutral-100 px-3 h-12 items-center",
|
|
5547
|
-
"aria-label": `Select country code ${
|
|
5548
|
-
},
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5584
|
+
"aria-label": `Select country code ${u.name}`
|
|
5585
|
+
}, {
|
|
5586
|
+
default: K(() => [
|
|
5587
|
+
j("span", null, [
|
|
5588
|
+
ae(z(u.code) + " ", 1),
|
|
5589
|
+
j("span", null, z(u.dial_code), 1)
|
|
5590
|
+
])
|
|
5591
|
+
]),
|
|
5592
|
+
_: 2
|
|
5593
|
+
}, 1032, ["onClick", "aria-label"]))), 256))
|
|
5554
5594
|
], 2)
|
|
5555
5595
|
], 6)
|
|
5556
5596
|
], 512);
|
|
5557
5597
|
};
|
|
5558
5598
|
}
|
|
5559
|
-
}),
|
|
5599
|
+
}), uo = { class: "main-input" }, mo = {
|
|
5560
5600
|
key: 0,
|
|
5561
5601
|
class: "text-red-500"
|
|
5562
|
-
},
|
|
5602
|
+
}, yo = { class: "relative w-full" }, fo = /* @__PURE__ */ V({
|
|
5563
5603
|
__name: "Input",
|
|
5564
|
-
props: /* @__PURE__ */
|
|
5604
|
+
props: /* @__PURE__ */ nr({
|
|
5565
5605
|
id: {},
|
|
5566
5606
|
label: {},
|
|
5567
5607
|
type: { default: "text" },
|
|
@@ -5581,58 +5621,64 @@ const no = { class: "flex items-center gap-2 w-18 absolute h-12 start-0" }, oo =
|
|
|
5581
5621
|
}),
|
|
5582
5622
|
emits: ["update:code", "update:modelValue"],
|
|
5583
5623
|
setup(e) {
|
|
5584
|
-
const
|
|
5624
|
+
const r = e, n = P(!1), o = se(e, "code"), a = se(e, "modelValue"), c = O(() => {
|
|
5585
5625
|
let t = "text-sm w-full bg-off-white border border-off-white hover:border-base-neutral-300 focus:border-primary-red-700 focus:ring-0 outline-none transition-all duration-300 px-3 text-black placeholder:text-base-neutral-300 disabled:bg-input-disabled-bg disabled:text-base-neutral-200";
|
|
5586
|
-
return
|
|
5587
|
-
}), l =
|
|
5588
|
-
a.value = t.target.value,
|
|
5626
|
+
return r.tag === "input" && (t += " h-12"), r.tag === "textarea" && (t += " resize-none min-h-12 pt-3"), r.type === "tel" && (t += " ps-12"), r.type === "password" && (t += " pe-12"), r.rounded === "full" ? t += " rounded-full" : r.rounded === "lg" ? t += " rounded-lg" : t += " rounded-xl", ce(t, r.classList);
|
|
5627
|
+
}), l = O(() => ce("font-medium text-base flex mb-1", r.labelClassList)), s = (t) => {
|
|
5628
|
+
a.value = t.target.value, r.tag === "textarea" && (t.target.style.height = "auto", t.target.style.height = t.target.scrollHeight + "px");
|
|
5589
5629
|
};
|
|
5590
5630
|
return (t, i) => {
|
|
5591
|
-
var
|
|
5592
|
-
const d =
|
|
5593
|
-
return
|
|
5594
|
-
|
|
5631
|
+
var p;
|
|
5632
|
+
const d = Z("m-label"), _ = Z("m-button"), b = Z("AppFormError");
|
|
5633
|
+
return w(), D("div", uo, [
|
|
5634
|
+
Y(d, {
|
|
5595
5635
|
for: e.id,
|
|
5596
|
-
class:
|
|
5597
|
-
},
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5636
|
+
class: H(l.value)
|
|
5637
|
+
}, {
|
|
5638
|
+
default: K(() => [
|
|
5639
|
+
ae(z(e.label) + " ", 1),
|
|
5640
|
+
e.required ? (w(), D("span", mo, "*")) : G("", !0)
|
|
5641
|
+
]),
|
|
5642
|
+
_: 1
|
|
5643
|
+
}, 8, ["for", "class"]),
|
|
5644
|
+
j("div", yo, [
|
|
5645
|
+
e.type === "tel" ? (w(), B(io, {
|
|
5603
5646
|
key: 0,
|
|
5604
5647
|
modelValue: o.value,
|
|
5605
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
5648
|
+
"onUpdate:modelValue": i[0] || (i[0] = (k) => o.value = k)
|
|
5606
5649
|
}, null, 8, ["modelValue"])) : G("", !0),
|
|
5607
|
-
(
|
|
5650
|
+
(w(), B(qe(e.tag), Ir({
|
|
5608
5651
|
value: a.value,
|
|
5609
5652
|
onInput: s,
|
|
5610
5653
|
id: e.id,
|
|
5611
|
-
type:
|
|
5654
|
+
type: n.value ? "text" : e.type,
|
|
5612
5655
|
placeholder: e.placeholder,
|
|
5613
5656
|
class: c.value,
|
|
5614
|
-
error: !!((
|
|
5657
|
+
error: !!((p = e.errors) != null && p.length)
|
|
5615
5658
|
}, t.$attrs), null, 16, ["value", "id", "type", "placeholder", "class", "error"])),
|
|
5616
|
-
|
|
5617
|
-
e.type === "password" ? (
|
|
5659
|
+
X(t.$slots, "prefix", {}, void 0, !0),
|
|
5660
|
+
e.type === "password" ? (w(), B(_, {
|
|
5618
5661
|
key: 1,
|
|
5619
|
-
class: "absolute end-4 top-3
|
|
5662
|
+
class: "absolute end-4 top-3",
|
|
5620
5663
|
type: "button",
|
|
5621
|
-
onClick: i[1] || (i[1] =
|
|
5664
|
+
onClick: i[1] || (i[1] = Me((k) => n.value = !n.value, ["stop"])),
|
|
5622
5665
|
"aria-label": "Toggle Password Visibility"
|
|
5623
|
-
},
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5666
|
+
}, {
|
|
5667
|
+
default: K(() => [
|
|
5668
|
+
Y(He, {
|
|
5669
|
+
name: n.value ? "eye" : "eye-slash",
|
|
5670
|
+
class: "text-black",
|
|
5671
|
+
size: "20"
|
|
5672
|
+
}, null, 8, ["name"])
|
|
5673
|
+
]),
|
|
5674
|
+
_: 1
|
|
5675
|
+
})) : G("", !0)
|
|
5630
5676
|
]),
|
|
5631
|
-
|
|
5677
|
+
Y(b, { errors: e.errors }, null, 8, ["errors"])
|
|
5632
5678
|
]);
|
|
5633
5679
|
};
|
|
5634
5680
|
}
|
|
5635
|
-
}),
|
|
5681
|
+
}), Pa = /* @__PURE__ */ ar(fo, [["__scopeId", "data-v-ee4c16f9"]]), Wr = /^[a-z0-9]+(-[a-z0-9]+)*$/, Be = (e, r, n, o = "") => {
|
|
5636
5682
|
const a = e.split(":");
|
|
5637
5683
|
if (e.slice(0, 1) === "@") {
|
|
5638
5684
|
if (a.length < 2 || a.length > 3)
|
|
@@ -5648,7 +5694,7 @@ const no = { class: "flex items-center gap-2 w-18 absolute h-12 start-0" }, oo =
|
|
|
5648
5694
|
prefix: t,
|
|
5649
5695
|
name: s
|
|
5650
5696
|
};
|
|
5651
|
-
return
|
|
5697
|
+
return r && !Ae(i) ? null : i;
|
|
5652
5698
|
}
|
|
5653
5699
|
const c = a[0], l = c.split("-");
|
|
5654
5700
|
if (l.length > 1) {
|
|
@@ -5657,54 +5703,54 @@ const no = { class: "flex items-center gap-2 w-18 absolute h-12 start-0" }, oo =
|
|
|
5657
5703
|
prefix: l.shift(),
|
|
5658
5704
|
name: l.join("-")
|
|
5659
5705
|
};
|
|
5660
|
-
return
|
|
5706
|
+
return r && !Ae(s) ? null : s;
|
|
5661
5707
|
}
|
|
5662
|
-
if (
|
|
5708
|
+
if (n && o === "") {
|
|
5663
5709
|
const s = {
|
|
5664
5710
|
provider: o,
|
|
5665
5711
|
prefix: "",
|
|
5666
5712
|
name: c
|
|
5667
5713
|
};
|
|
5668
|
-
return
|
|
5714
|
+
return r && !Ae(s, n) ? null : s;
|
|
5669
5715
|
}
|
|
5670
5716
|
return null;
|
|
5671
|
-
},
|
|
5717
|
+
}, Ae = (e, r) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
5672
5718
|
// Check name: cannot be empty
|
|
5673
|
-
((
|
|
5719
|
+
((r && e.prefix === "" || e.prefix) && e.name) : !1, Zr = Object.freeze(
|
|
5674
5720
|
{
|
|
5675
5721
|
left: 0,
|
|
5676
5722
|
top: 0,
|
|
5677
5723
|
width: 16,
|
|
5678
5724
|
height: 16
|
|
5679
5725
|
}
|
|
5680
|
-
),
|
|
5726
|
+
), Pe = Object.freeze({
|
|
5681
5727
|
rotate: 0,
|
|
5682
5728
|
vFlip: !1,
|
|
5683
5729
|
hFlip: !1
|
|
5684
|
-
}),
|
|
5685
|
-
...
|
|
5686
|
-
...
|
|
5687
|
-
}),
|
|
5688
|
-
...
|
|
5730
|
+
}), Ne = Object.freeze({
|
|
5731
|
+
...Zr,
|
|
5732
|
+
...Pe
|
|
5733
|
+
}), We = Object.freeze({
|
|
5734
|
+
...Ne,
|
|
5689
5735
|
body: "",
|
|
5690
5736
|
hidden: !1
|
|
5691
5737
|
});
|
|
5692
|
-
function
|
|
5693
|
-
const
|
|
5694
|
-
!e.hFlip != !
|
|
5695
|
-
const o = ((e.rotate || 0) + (
|
|
5696
|
-
return o && (
|
|
5738
|
+
function _o(e, r) {
|
|
5739
|
+
const n = {};
|
|
5740
|
+
!e.hFlip != !r.hFlip && (n.hFlip = !0), !e.vFlip != !r.vFlip && (n.vFlip = !0);
|
|
5741
|
+
const o = ((e.rotate || 0) + (r.rotate || 0)) % 4;
|
|
5742
|
+
return o && (n.rotate = o), n;
|
|
5697
5743
|
}
|
|
5698
|
-
function
|
|
5699
|
-
const
|
|
5700
|
-
for (const o in
|
|
5701
|
-
o in
|
|
5702
|
-
return
|
|
5744
|
+
function hr(e, r) {
|
|
5745
|
+
const n = _o(e, r);
|
|
5746
|
+
for (const o in We)
|
|
5747
|
+
o in Pe ? o in e && !(o in n) && (n[o] = Pe[o]) : o in r ? n[o] = r[o] : o in e && (n[o] = e[o]);
|
|
5748
|
+
return n;
|
|
5703
5749
|
}
|
|
5704
|
-
function
|
|
5705
|
-
const
|
|
5750
|
+
function go(e, r) {
|
|
5751
|
+
const n = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null);
|
|
5706
5752
|
function c(l) {
|
|
5707
|
-
if (
|
|
5753
|
+
if (n[l])
|
|
5708
5754
|
return a[l] = [];
|
|
5709
5755
|
if (!(l in a)) {
|
|
5710
5756
|
a[l] = null;
|
|
@@ -5713,168 +5759,168 @@ function yo(e, n) {
|
|
|
5713
5759
|
}
|
|
5714
5760
|
return a[l];
|
|
5715
5761
|
}
|
|
5716
|
-
return Object.keys(
|
|
5762
|
+
return Object.keys(n).concat(Object.keys(o)).forEach(c), a;
|
|
5717
5763
|
}
|
|
5718
|
-
function
|
|
5764
|
+
function po(e, r, n) {
|
|
5719
5765
|
const o = e.icons, a = e.aliases || /* @__PURE__ */ Object.create(null);
|
|
5720
5766
|
let c = {};
|
|
5721
5767
|
function l(s) {
|
|
5722
|
-
c =
|
|
5768
|
+
c = hr(
|
|
5723
5769
|
o[s] || a[s],
|
|
5724
5770
|
c
|
|
5725
5771
|
);
|
|
5726
5772
|
}
|
|
5727
|
-
return l(
|
|
5773
|
+
return l(r), n.forEach(l), hr(e, c);
|
|
5728
5774
|
}
|
|
5729
|
-
function
|
|
5730
|
-
const
|
|
5775
|
+
function Xr(e, r) {
|
|
5776
|
+
const n = [];
|
|
5731
5777
|
if (typeof e != "object" || typeof e.icons != "object")
|
|
5732
|
-
return
|
|
5778
|
+
return n;
|
|
5733
5779
|
e.not_found instanceof Array && e.not_found.forEach((a) => {
|
|
5734
|
-
|
|
5780
|
+
r(a, null), n.push(a);
|
|
5735
5781
|
});
|
|
5736
|
-
const o =
|
|
5782
|
+
const o = go(e);
|
|
5737
5783
|
for (const a in o) {
|
|
5738
5784
|
const c = o[a];
|
|
5739
|
-
c && (
|
|
5785
|
+
c && (r(a, po(e, a, c)), n.push(a));
|
|
5740
5786
|
}
|
|
5741
|
-
return
|
|
5787
|
+
return n;
|
|
5742
5788
|
}
|
|
5743
|
-
const
|
|
5789
|
+
const bo = {
|
|
5744
5790
|
provider: "",
|
|
5745
5791
|
aliases: {},
|
|
5746
5792
|
not_found: {},
|
|
5747
|
-
...
|
|
5793
|
+
...Zr
|
|
5748
5794
|
};
|
|
5749
|
-
function
|
|
5750
|
-
for (const
|
|
5751
|
-
if (
|
|
5795
|
+
function Ke(e, r) {
|
|
5796
|
+
for (const n in r)
|
|
5797
|
+
if (n in e && typeof e[n] != typeof r[n])
|
|
5752
5798
|
return !1;
|
|
5753
5799
|
return !0;
|
|
5754
5800
|
}
|
|
5755
|
-
function
|
|
5801
|
+
function Yr(e) {
|
|
5756
5802
|
if (typeof e != "object" || e === null)
|
|
5757
5803
|
return null;
|
|
5758
|
-
const
|
|
5759
|
-
if (typeof
|
|
5804
|
+
const r = e;
|
|
5805
|
+
if (typeof r.prefix != "string" || !e.icons || typeof e.icons != "object" || !Ke(e, bo))
|
|
5760
5806
|
return null;
|
|
5761
|
-
const
|
|
5762
|
-
for (const a in
|
|
5763
|
-
const c =
|
|
5807
|
+
const n = r.icons;
|
|
5808
|
+
for (const a in n) {
|
|
5809
|
+
const c = n[a];
|
|
5764
5810
|
if (
|
|
5765
5811
|
// Name cannot be empty
|
|
5766
5812
|
!a || // Must have body
|
|
5767
5813
|
typeof c.body != "string" || // Check other props
|
|
5768
|
-
!
|
|
5814
|
+
!Ke(
|
|
5769
5815
|
c,
|
|
5770
|
-
|
|
5816
|
+
We
|
|
5771
5817
|
)
|
|
5772
5818
|
)
|
|
5773
5819
|
return null;
|
|
5774
5820
|
}
|
|
5775
|
-
const o =
|
|
5821
|
+
const o = r.aliases || /* @__PURE__ */ Object.create(null);
|
|
5776
5822
|
for (const a in o) {
|
|
5777
5823
|
const c = o[a], l = c.parent;
|
|
5778
5824
|
if (
|
|
5779
5825
|
// Name cannot be empty
|
|
5780
5826
|
!a || // Parent must be set and point to existing icon
|
|
5781
|
-
typeof l != "string" || !
|
|
5782
|
-
!
|
|
5827
|
+
typeof l != "string" || !n[l] && !o[l] || // Check other props
|
|
5828
|
+
!Ke(
|
|
5783
5829
|
c,
|
|
5784
|
-
|
|
5830
|
+
We
|
|
5785
5831
|
)
|
|
5786
5832
|
)
|
|
5787
5833
|
return null;
|
|
5788
5834
|
}
|
|
5789
|
-
return
|
|
5835
|
+
return r;
|
|
5790
5836
|
}
|
|
5791
|
-
const
|
|
5792
|
-
function
|
|
5837
|
+
const vr = /* @__PURE__ */ Object.create(null);
|
|
5838
|
+
function ho(e, r) {
|
|
5793
5839
|
return {
|
|
5794
5840
|
provider: e,
|
|
5795
|
-
prefix:
|
|
5841
|
+
prefix: r,
|
|
5796
5842
|
icons: /* @__PURE__ */ Object.create(null),
|
|
5797
5843
|
missing: /* @__PURE__ */ new Set()
|
|
5798
5844
|
};
|
|
5799
5845
|
}
|
|
5800
|
-
function
|
|
5801
|
-
const
|
|
5802
|
-
return r
|
|
5846
|
+
function ie(e, r) {
|
|
5847
|
+
const n = vr[e] || (vr[e] = /* @__PURE__ */ Object.create(null));
|
|
5848
|
+
return n[r] || (n[r] = ho(e, r));
|
|
5803
5849
|
}
|
|
5804
|
-
function
|
|
5805
|
-
return
|
|
5806
|
-
o ? e.icons[
|
|
5850
|
+
function qr(e, r) {
|
|
5851
|
+
return Yr(r) ? Xr(r, (n, o) => {
|
|
5852
|
+
o ? e.icons[n] = o : e.missing.add(n);
|
|
5807
5853
|
}) : [];
|
|
5808
5854
|
}
|
|
5809
|
-
function
|
|
5855
|
+
function vo(e, r, n) {
|
|
5810
5856
|
try {
|
|
5811
|
-
if (typeof
|
|
5812
|
-
return e.icons[
|
|
5857
|
+
if (typeof n.body == "string")
|
|
5858
|
+
return e.icons[r] = { ...n }, !0;
|
|
5813
5859
|
} catch {
|
|
5814
5860
|
}
|
|
5815
5861
|
return !1;
|
|
5816
5862
|
}
|
|
5817
|
-
let
|
|
5818
|
-
function
|
|
5819
|
-
return typeof e == "boolean" && (
|
|
5863
|
+
let ge = !1;
|
|
5864
|
+
function Jr(e) {
|
|
5865
|
+
return typeof e == "boolean" && (ge = e), ge;
|
|
5820
5866
|
}
|
|
5821
|
-
function
|
|
5822
|
-
const
|
|
5823
|
-
if (
|
|
5824
|
-
const
|
|
5825
|
-
return
|
|
5867
|
+
function wo(e) {
|
|
5868
|
+
const r = typeof e == "string" ? Be(e, !0, ge) : e;
|
|
5869
|
+
if (r) {
|
|
5870
|
+
const n = ie(r.provider, r.prefix), o = r.name;
|
|
5871
|
+
return n.icons[o] || (n.missing.has(o) ? null : void 0);
|
|
5826
5872
|
}
|
|
5827
5873
|
}
|
|
5828
|
-
function
|
|
5829
|
-
const
|
|
5830
|
-
if (!
|
|
5874
|
+
function xo(e, r) {
|
|
5875
|
+
const n = Be(e, !0, ge);
|
|
5876
|
+
if (!n)
|
|
5831
5877
|
return !1;
|
|
5832
|
-
const o =
|
|
5833
|
-
return
|
|
5878
|
+
const o = ie(n.provider, n.prefix);
|
|
5879
|
+
return r ? vo(o, n.name, r) : (o.missing.add(n.name), !0);
|
|
5834
5880
|
}
|
|
5835
|
-
function
|
|
5881
|
+
function ko(e, r) {
|
|
5836
5882
|
if (typeof e != "object")
|
|
5837
5883
|
return !1;
|
|
5838
|
-
if (typeof
|
|
5884
|
+
if (typeof r != "string" && (r = e.provider || ""), ge && !r && !e.prefix) {
|
|
5839
5885
|
let a = !1;
|
|
5840
|
-
return
|
|
5841
|
-
|
|
5886
|
+
return Yr(e) && (e.prefix = "", Xr(e, (c, l) => {
|
|
5887
|
+
xo(c, l) && (a = !0);
|
|
5842
5888
|
})), a;
|
|
5843
5889
|
}
|
|
5844
|
-
const
|
|
5845
|
-
if (!
|
|
5846
|
-
prefix:
|
|
5890
|
+
const n = e.prefix;
|
|
5891
|
+
if (!Ae({
|
|
5892
|
+
prefix: n,
|
|
5847
5893
|
name: "a"
|
|
5848
5894
|
}))
|
|
5849
5895
|
return !1;
|
|
5850
|
-
const o =
|
|
5851
|
-
return !!
|
|
5896
|
+
const o = ie(r, n);
|
|
5897
|
+
return !!qr(o, e);
|
|
5852
5898
|
}
|
|
5853
|
-
const
|
|
5899
|
+
const Qr = Object.freeze({
|
|
5854
5900
|
width: null,
|
|
5855
5901
|
height: null
|
|
5856
|
-
}),
|
|
5902
|
+
}), en = Object.freeze({
|
|
5857
5903
|
// Dimensions
|
|
5858
|
-
...
|
|
5904
|
+
...Qr,
|
|
5859
5905
|
// Transformations
|
|
5860
|
-
...
|
|
5861
|
-
}),
|
|
5862
|
-
function
|
|
5863
|
-
if (
|
|
5906
|
+
...Pe
|
|
5907
|
+
}), So = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Co = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
5908
|
+
function wr(e, r, n) {
|
|
5909
|
+
if (r === 1)
|
|
5864
5910
|
return e;
|
|
5865
|
-
if (
|
|
5866
|
-
return Math.ceil(e *
|
|
5911
|
+
if (n = n || 100, typeof e == "number")
|
|
5912
|
+
return Math.ceil(e * r * n) / n;
|
|
5867
5913
|
if (typeof e != "string")
|
|
5868
5914
|
return e;
|
|
5869
|
-
const o = e.split(
|
|
5915
|
+
const o = e.split(So);
|
|
5870
5916
|
if (o === null || !o.length)
|
|
5871
5917
|
return e;
|
|
5872
5918
|
const a = [];
|
|
5873
|
-
let c = o.shift(), l =
|
|
5919
|
+
let c = o.shift(), l = Co.test(c);
|
|
5874
5920
|
for (; ; ) {
|
|
5875
5921
|
if (l) {
|
|
5876
5922
|
const s = parseFloat(c);
|
|
5877
|
-
isNaN(s) ? a.push(c) : a.push(Math.ceil(s *
|
|
5923
|
+
isNaN(s) ? a.push(c) : a.push(Math.ceil(s * r * n) / n);
|
|
5878
5924
|
} else
|
|
5879
5925
|
a.push(c);
|
|
5880
5926
|
if (c = o.shift(), c === void 0)
|
|
@@ -5882,103 +5928,103 @@ function gr(e, n, r) {
|
|
|
5882
5928
|
l = !l;
|
|
5883
5929
|
}
|
|
5884
5930
|
}
|
|
5885
|
-
function
|
|
5886
|
-
let
|
|
5887
|
-
const o = e.indexOf("<" +
|
|
5931
|
+
function Ao(e, r = "defs") {
|
|
5932
|
+
let n = "";
|
|
5933
|
+
const o = e.indexOf("<" + r);
|
|
5888
5934
|
for (; o >= 0; ) {
|
|
5889
|
-
const a = e.indexOf(">", o), c = e.indexOf("</" +
|
|
5935
|
+
const a = e.indexOf(">", o), c = e.indexOf("</" + r);
|
|
5890
5936
|
if (a === -1 || c === -1)
|
|
5891
5937
|
break;
|
|
5892
5938
|
const l = e.indexOf(">", c);
|
|
5893
5939
|
if (l === -1)
|
|
5894
5940
|
break;
|
|
5895
|
-
|
|
5941
|
+
n += e.slice(a + 1, c).trim(), e = e.slice(0, o).trim() + e.slice(l + 1);
|
|
5896
5942
|
}
|
|
5897
5943
|
return {
|
|
5898
|
-
defs:
|
|
5944
|
+
defs: n,
|
|
5899
5945
|
content: e
|
|
5900
5946
|
};
|
|
5901
5947
|
}
|
|
5902
|
-
function
|
|
5903
|
-
return e ? "<defs>" + e + "</defs>" +
|
|
5948
|
+
function Do(e, r) {
|
|
5949
|
+
return e ? "<defs>" + e + "</defs>" + r : r;
|
|
5904
5950
|
}
|
|
5905
|
-
function
|
|
5906
|
-
const o =
|
|
5907
|
-
return
|
|
5951
|
+
function Ro(e, r, n) {
|
|
5952
|
+
const o = Ao(e);
|
|
5953
|
+
return Do(o.defs, r + o.content + n);
|
|
5908
5954
|
}
|
|
5909
|
-
const
|
|
5910
|
-
function
|
|
5911
|
-
const
|
|
5912
|
-
...
|
|
5955
|
+
const Eo = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
5956
|
+
function Mo(e, r) {
|
|
5957
|
+
const n = {
|
|
5958
|
+
...Ne,
|
|
5913
5959
|
...e
|
|
5914
5960
|
}, o = {
|
|
5915
|
-
...
|
|
5916
|
-
...
|
|
5961
|
+
...en,
|
|
5962
|
+
...r
|
|
5917
5963
|
}, a = {
|
|
5918
|
-
left:
|
|
5919
|
-
top:
|
|
5920
|
-
width:
|
|
5921
|
-
height:
|
|
5964
|
+
left: n.left,
|
|
5965
|
+
top: n.top,
|
|
5966
|
+
width: n.width,
|
|
5967
|
+
height: n.height
|
|
5922
5968
|
};
|
|
5923
|
-
let c =
|
|
5924
|
-
[
|
|
5925
|
-
const
|
|
5926
|
-
let R =
|
|
5927
|
-
|
|
5969
|
+
let c = n.body;
|
|
5970
|
+
[n, o].forEach((x) => {
|
|
5971
|
+
const u = [], E = x.hFlip, L = x.vFlip;
|
|
5972
|
+
let R = x.rotate;
|
|
5973
|
+
E ? L ? R += 2 : (u.push(
|
|
5928
5974
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
|
5929
|
-
),
|
|
5975
|
+
), u.push("scale(-1 1)"), a.top = a.left = 0) : L && (u.push(
|
|
5930
5976
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
|
5931
|
-
),
|
|
5932
|
-
let
|
|
5977
|
+
), u.push("scale(1 -1)"), a.top = a.left = 0);
|
|
5978
|
+
let m;
|
|
5933
5979
|
switch (R < 0 && (R -= Math.floor(R / 4) * 4), R = R % 4, R) {
|
|
5934
5980
|
case 1:
|
|
5935
|
-
|
|
5936
|
-
"rotate(90 " +
|
|
5981
|
+
m = a.height / 2 + a.top, u.unshift(
|
|
5982
|
+
"rotate(90 " + m.toString() + " " + m.toString() + ")"
|
|
5937
5983
|
);
|
|
5938
5984
|
break;
|
|
5939
5985
|
case 2:
|
|
5940
|
-
|
|
5986
|
+
u.unshift(
|
|
5941
5987
|
"rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
|
|
5942
5988
|
);
|
|
5943
5989
|
break;
|
|
5944
5990
|
case 3:
|
|
5945
|
-
|
|
5946
|
-
"rotate(-90 " +
|
|
5991
|
+
m = a.width / 2 + a.left, u.unshift(
|
|
5992
|
+
"rotate(-90 " + m.toString() + " " + m.toString() + ")"
|
|
5947
5993
|
);
|
|
5948
5994
|
break;
|
|
5949
5995
|
}
|
|
5950
|
-
R % 2 === 1 && (a.left !== a.top && (
|
|
5996
|
+
R % 2 === 1 && (a.left !== a.top && (m = a.left, a.left = a.top, a.top = m), a.width !== a.height && (m = a.width, a.width = a.height, a.height = m)), u.length && (c = Ro(
|
|
5951
5997
|
c,
|
|
5952
|
-
'<g transform="' +
|
|
5998
|
+
'<g transform="' + u.join(" ") + '">',
|
|
5953
5999
|
"</g>"
|
|
5954
6000
|
));
|
|
5955
6001
|
});
|
|
5956
6002
|
const l = o.width, s = o.height, t = a.width, i = a.height;
|
|
5957
6003
|
let d, _;
|
|
5958
|
-
l === null ? (_ = s === null ? "1em" : s === "auto" ? i : s, d =
|
|
5959
|
-
const b = {}, p = (
|
|
5960
|
-
|
|
6004
|
+
l === null ? (_ = s === null ? "1em" : s === "auto" ? i : s, d = wr(_, t / i)) : (d = l === "auto" ? t : l, _ = s === null ? wr(d, i / t) : s === "auto" ? i : s);
|
|
6005
|
+
const b = {}, p = (x, u) => {
|
|
6006
|
+
Eo(u) || (b[x] = u.toString());
|
|
5961
6007
|
};
|
|
5962
6008
|
p("width", d), p("height", _);
|
|
5963
|
-
const
|
|
5964
|
-
return b.viewBox =
|
|
6009
|
+
const k = [a.left, a.top, t, i];
|
|
6010
|
+
return b.viewBox = k.join(" "), {
|
|
5965
6011
|
attributes: b,
|
|
5966
|
-
viewBox:
|
|
6012
|
+
viewBox: k,
|
|
5967
6013
|
body: c
|
|
5968
6014
|
};
|
|
5969
6015
|
}
|
|
5970
|
-
const
|
|
5971
|
-
let
|
|
5972
|
-
function
|
|
5973
|
-
const
|
|
6016
|
+
const Io = /\sid="(\S+)"/g, Fo = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
6017
|
+
let Po = 0;
|
|
6018
|
+
function Lo(e, r = Fo) {
|
|
6019
|
+
const n = [];
|
|
5974
6020
|
let o;
|
|
5975
|
-
for (; o =
|
|
5976
|
-
|
|
5977
|
-
if (!
|
|
6021
|
+
for (; o = Io.exec(e); )
|
|
6022
|
+
n.push(o[1]);
|
|
6023
|
+
if (!n.length)
|
|
5978
6024
|
return e;
|
|
5979
6025
|
const a = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
5980
|
-
return
|
|
5981
|
-
const l = typeof
|
|
6026
|
+
return n.forEach((c) => {
|
|
6027
|
+
const l = typeof r == "function" ? r(c) : r + (Po++).toString(), s = c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
5982
6028
|
e = e.replace(
|
|
5983
6029
|
// Allowed characters before id: [#;"]
|
|
5984
6030
|
// Allowed characters after id: [)"], .[a-z]
|
|
@@ -5987,22 +6033,22 @@ function Io(e, n = Mo) {
|
|
|
5987
6033
|
);
|
|
5988
6034
|
}), e = e.replace(new RegExp(a, "g"), ""), e;
|
|
5989
6035
|
}
|
|
5990
|
-
const
|
|
5991
|
-
function
|
|
5992
|
-
|
|
6036
|
+
const Ze = /* @__PURE__ */ Object.create(null);
|
|
6037
|
+
function To(e, r) {
|
|
6038
|
+
Ze[e] = r;
|
|
5993
6039
|
}
|
|
5994
|
-
function
|
|
5995
|
-
return
|
|
6040
|
+
function Xe(e) {
|
|
6041
|
+
return Ze[e] || Ze[""];
|
|
5996
6042
|
}
|
|
5997
|
-
function
|
|
5998
|
-
let
|
|
6043
|
+
function cr(e) {
|
|
6044
|
+
let r;
|
|
5999
6045
|
if (typeof e.resources == "string")
|
|
6000
|
-
|
|
6001
|
-
else if (
|
|
6046
|
+
r = [e.resources];
|
|
6047
|
+
else if (r = e.resources, !(r instanceof Array) || !r.length)
|
|
6002
6048
|
return null;
|
|
6003
6049
|
return {
|
|
6004
6050
|
// API hosts
|
|
6005
|
-
resources:
|
|
6051
|
+
resources: r,
|
|
6006
6052
|
// Root path
|
|
6007
6053
|
path: e.path || "/",
|
|
6008
6054
|
// URL length limit
|
|
@@ -6019,23 +6065,23 @@ function Qe(e) {
|
|
|
6019
6065
|
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
6020
6066
|
};
|
|
6021
6067
|
}
|
|
6022
|
-
const
|
|
6068
|
+
const lr = /* @__PURE__ */ Object.create(null), fe = [
|
|
6023
6069
|
"https://api.simplesvg.com",
|
|
6024
6070
|
"https://api.unisvg.com"
|
|
6025
|
-
],
|
|
6026
|
-
for (;
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
resources: ["https://api.iconify.design"].concat(
|
|
6071
|
+
], De = [];
|
|
6072
|
+
for (; fe.length > 0; )
|
|
6073
|
+
fe.length === 1 || Math.random() > 0.5 ? De.push(fe.shift()) : De.push(fe.pop());
|
|
6074
|
+
lr[""] = cr({
|
|
6075
|
+
resources: ["https://api.iconify.design"].concat(De)
|
|
6030
6076
|
});
|
|
6031
|
-
function
|
|
6032
|
-
const
|
|
6033
|
-
return
|
|
6077
|
+
function Bo(e, r) {
|
|
6078
|
+
const n = cr(r);
|
|
6079
|
+
return n === null ? !1 : (lr[e] = n, !0);
|
|
6034
6080
|
}
|
|
6035
|
-
function
|
|
6036
|
-
return
|
|
6081
|
+
function tr(e) {
|
|
6082
|
+
return lr[e];
|
|
6037
6083
|
}
|
|
6038
|
-
const
|
|
6084
|
+
const No = () => {
|
|
6039
6085
|
let e;
|
|
6040
6086
|
try {
|
|
6041
6087
|
if (e = fetch, typeof e == "function")
|
|
@@ -6043,81 +6089,81 @@ const Lo = () => {
|
|
|
6043
6089
|
} catch {
|
|
6044
6090
|
}
|
|
6045
6091
|
};
|
|
6046
|
-
let
|
|
6047
|
-
function
|
|
6048
|
-
const
|
|
6049
|
-
if (!
|
|
6092
|
+
let xr = No();
|
|
6093
|
+
function Uo(e, r) {
|
|
6094
|
+
const n = tr(e);
|
|
6095
|
+
if (!n)
|
|
6050
6096
|
return 0;
|
|
6051
6097
|
let o;
|
|
6052
|
-
if (!
|
|
6098
|
+
if (!n.maxURL)
|
|
6053
6099
|
o = 0;
|
|
6054
6100
|
else {
|
|
6055
6101
|
let a = 0;
|
|
6056
|
-
|
|
6102
|
+
n.resources.forEach((l) => {
|
|
6057
6103
|
a = Math.max(a, l.length);
|
|
6058
6104
|
});
|
|
6059
|
-
const c =
|
|
6060
|
-
o =
|
|
6105
|
+
const c = r + ".json?icons=";
|
|
6106
|
+
o = n.maxURL - a - n.path.length - c.length;
|
|
6061
6107
|
}
|
|
6062
6108
|
return o;
|
|
6063
6109
|
}
|
|
6064
|
-
function
|
|
6110
|
+
function Go(e) {
|
|
6065
6111
|
return e === 404;
|
|
6066
6112
|
}
|
|
6067
|
-
const
|
|
6068
|
-
const o = [], a =
|
|
6113
|
+
const $o = (e, r, n) => {
|
|
6114
|
+
const o = [], a = Uo(e, r), c = "icons";
|
|
6069
6115
|
let l = {
|
|
6070
6116
|
type: c,
|
|
6071
6117
|
provider: e,
|
|
6072
|
-
prefix:
|
|
6118
|
+
prefix: r,
|
|
6073
6119
|
icons: []
|
|
6074
6120
|
}, s = 0;
|
|
6075
|
-
return
|
|
6121
|
+
return n.forEach((t, i) => {
|
|
6076
6122
|
s += t.length + 1, s >= a && i > 0 && (o.push(l), l = {
|
|
6077
6123
|
type: c,
|
|
6078
6124
|
provider: e,
|
|
6079
|
-
prefix:
|
|
6125
|
+
prefix: r,
|
|
6080
6126
|
icons: []
|
|
6081
6127
|
}, s = t.length), l.icons.push(t);
|
|
6082
6128
|
}), o.push(l), o;
|
|
6083
6129
|
};
|
|
6084
|
-
function
|
|
6130
|
+
function zo(e) {
|
|
6085
6131
|
if (typeof e == "string") {
|
|
6086
|
-
const
|
|
6087
|
-
if (
|
|
6088
|
-
return
|
|
6132
|
+
const r = tr(e);
|
|
6133
|
+
if (r)
|
|
6134
|
+
return r.path;
|
|
6089
6135
|
}
|
|
6090
6136
|
return "/";
|
|
6091
6137
|
}
|
|
6092
|
-
const
|
|
6093
|
-
if (!
|
|
6094
|
-
|
|
6138
|
+
const Oo = (e, r, n) => {
|
|
6139
|
+
if (!xr) {
|
|
6140
|
+
n("abort", 424);
|
|
6095
6141
|
return;
|
|
6096
6142
|
}
|
|
6097
|
-
let o =
|
|
6098
|
-
switch (
|
|
6143
|
+
let o = zo(r.provider);
|
|
6144
|
+
switch (r.type) {
|
|
6099
6145
|
case "icons": {
|
|
6100
|
-
const c =
|
|
6146
|
+
const c = r.prefix, s = r.icons.join(","), t = new URLSearchParams({
|
|
6101
6147
|
icons: s
|
|
6102
6148
|
});
|
|
6103
6149
|
o += c + ".json?" + t.toString();
|
|
6104
6150
|
break;
|
|
6105
6151
|
}
|
|
6106
6152
|
case "custom": {
|
|
6107
|
-
const c =
|
|
6153
|
+
const c = r.uri;
|
|
6108
6154
|
o += c.slice(0, 1) === "/" ? c.slice(1) : c;
|
|
6109
6155
|
break;
|
|
6110
6156
|
}
|
|
6111
6157
|
default:
|
|
6112
|
-
|
|
6158
|
+
n("abort", 400);
|
|
6113
6159
|
return;
|
|
6114
6160
|
}
|
|
6115
6161
|
let a = 503;
|
|
6116
|
-
|
|
6162
|
+
xr(e + o).then((c) => {
|
|
6117
6163
|
const l = c.status;
|
|
6118
6164
|
if (l !== 200) {
|
|
6119
6165
|
setTimeout(() => {
|
|
6120
|
-
|
|
6166
|
+
n(Go(l) ? "abort" : "next", l);
|
|
6121
6167
|
});
|
|
6122
6168
|
return;
|
|
6123
6169
|
}
|
|
@@ -6125,26 +6171,26 @@ const Go = (e, n, r) => {
|
|
|
6125
6171
|
}).then((c) => {
|
|
6126
6172
|
if (typeof c != "object" || c === null) {
|
|
6127
6173
|
setTimeout(() => {
|
|
6128
|
-
c === 404 ?
|
|
6174
|
+
c === 404 ? n("abort", c) : n("next", a);
|
|
6129
6175
|
});
|
|
6130
6176
|
return;
|
|
6131
6177
|
}
|
|
6132
6178
|
setTimeout(() => {
|
|
6133
|
-
|
|
6179
|
+
n("success", c);
|
|
6134
6180
|
});
|
|
6135
6181
|
}).catch(() => {
|
|
6136
|
-
|
|
6182
|
+
n("next", a);
|
|
6137
6183
|
});
|
|
6138
|
-
},
|
|
6139
|
-
prepare:
|
|
6140
|
-
send:
|
|
6184
|
+
}, Ko = {
|
|
6185
|
+
prepare: $o,
|
|
6186
|
+
send: Oo
|
|
6141
6187
|
};
|
|
6142
|
-
function
|
|
6143
|
-
const
|
|
6188
|
+
function Vo(e) {
|
|
6189
|
+
const r = {
|
|
6144
6190
|
loaded: [],
|
|
6145
6191
|
missing: [],
|
|
6146
6192
|
pending: []
|
|
6147
|
-
},
|
|
6193
|
+
}, n = /* @__PURE__ */ Object.create(null);
|
|
6148
6194
|
e.sort((a, c) => a.provider !== c.provider ? a.provider.localeCompare(c.provider) : a.prefix !== c.prefix ? a.prefix.localeCompare(c.prefix) : a.name.localeCompare(c.name));
|
|
6149
6195
|
let o = {
|
|
6150
6196
|
provider: "",
|
|
@@ -6155,32 +6201,32 @@ function $o(e) {
|
|
|
6155
6201
|
if (o.name === a.name && o.prefix === a.prefix && o.provider === a.provider)
|
|
6156
6202
|
return;
|
|
6157
6203
|
o = a;
|
|
6158
|
-
const c = a.provider, l = a.prefix, s = a.name, t =
|
|
6204
|
+
const c = a.provider, l = a.prefix, s = a.name, t = n[c] || (n[c] = /* @__PURE__ */ Object.create(null)), i = t[l] || (t[l] = ie(c, l));
|
|
6159
6205
|
let d;
|
|
6160
|
-
s in i.icons ? d =
|
|
6206
|
+
s in i.icons ? d = r.loaded : l === "" || i.missing.has(s) ? d = r.missing : d = r.pending;
|
|
6161
6207
|
const _ = {
|
|
6162
6208
|
provider: c,
|
|
6163
6209
|
prefix: l,
|
|
6164
6210
|
name: s
|
|
6165
6211
|
};
|
|
6166
6212
|
d.push(_);
|
|
6167
|
-
}),
|
|
6213
|
+
}), r;
|
|
6168
6214
|
}
|
|
6169
|
-
function
|
|
6170
|
-
e.forEach((
|
|
6171
|
-
const o =
|
|
6172
|
-
o && (
|
|
6215
|
+
function rn(e, r) {
|
|
6216
|
+
e.forEach((n) => {
|
|
6217
|
+
const o = n.loaderCallbacks;
|
|
6218
|
+
o && (n.loaderCallbacks = o.filter((a) => a.id !== r));
|
|
6173
6219
|
});
|
|
6174
6220
|
}
|
|
6175
|
-
function
|
|
6221
|
+
function jo(e) {
|
|
6176
6222
|
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
6177
6223
|
e.pendingCallbacksFlag = !1;
|
|
6178
|
-
const
|
|
6179
|
-
if (!
|
|
6224
|
+
const r = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
6225
|
+
if (!r.length)
|
|
6180
6226
|
return;
|
|
6181
|
-
let
|
|
6227
|
+
let n = !1;
|
|
6182
6228
|
const o = e.provider, a = e.prefix;
|
|
6183
|
-
|
|
6229
|
+
r.forEach((c) => {
|
|
6184
6230
|
const l = c.icons, s = l.pending.length;
|
|
6185
6231
|
l.pending = l.pending.filter((t) => {
|
|
6186
6232
|
if (t.prefix !== a)
|
|
@@ -6199,9 +6245,9 @@ function Oo(e) {
|
|
|
6199
6245
|
name: i
|
|
6200
6246
|
});
|
|
6201
6247
|
else
|
|
6202
|
-
return
|
|
6248
|
+
return n = !0, !0;
|
|
6203
6249
|
return !1;
|
|
6204
|
-
}), l.pending.length !== s && (
|
|
6250
|
+
}), l.pending.length !== s && (n || rn([e], c.id), c.callback(
|
|
6205
6251
|
l.loaded.slice(0),
|
|
6206
6252
|
l.missing.slice(0),
|
|
6207
6253
|
l.pending.slice(0),
|
|
@@ -6210,29 +6256,29 @@ function Oo(e) {
|
|
|
6210
6256
|
});
|
|
6211
6257
|
}));
|
|
6212
6258
|
}
|
|
6213
|
-
let
|
|
6214
|
-
function
|
|
6215
|
-
const o =
|
|
6216
|
-
if (!
|
|
6259
|
+
let Ho = 0;
|
|
6260
|
+
function Wo(e, r, n) {
|
|
6261
|
+
const o = Ho++, a = rn.bind(null, n, o);
|
|
6262
|
+
if (!r.pending.length)
|
|
6217
6263
|
return a;
|
|
6218
6264
|
const c = {
|
|
6219
6265
|
id: o,
|
|
6220
|
-
icons:
|
|
6266
|
+
icons: r,
|
|
6221
6267
|
callback: e,
|
|
6222
6268
|
abort: a
|
|
6223
6269
|
};
|
|
6224
|
-
return
|
|
6270
|
+
return n.forEach((l) => {
|
|
6225
6271
|
(l.loaderCallbacks || (l.loaderCallbacks = [])).push(c);
|
|
6226
6272
|
}), a;
|
|
6227
6273
|
}
|
|
6228
|
-
function
|
|
6274
|
+
function Zo(e, r = !0, n = !1) {
|
|
6229
6275
|
const o = [];
|
|
6230
6276
|
return e.forEach((a) => {
|
|
6231
|
-
const c = typeof a == "string" ?
|
|
6277
|
+
const c = typeof a == "string" ? Be(a, r, n) : a;
|
|
6232
6278
|
c && o.push(c);
|
|
6233
6279
|
}), o;
|
|
6234
6280
|
}
|
|
6235
|
-
var
|
|
6281
|
+
var Xo = {
|
|
6236
6282
|
resources: [],
|
|
6237
6283
|
index: 0,
|
|
6238
6284
|
timeout: 2e3,
|
|
@@ -6240,7 +6286,7 @@ var Ho = {
|
|
|
6240
6286
|
random: !1,
|
|
6241
6287
|
dataAfterTimeout: !1
|
|
6242
6288
|
};
|
|
6243
|
-
function
|
|
6289
|
+
function Yo(e, r, n, o) {
|
|
6244
6290
|
const a = e.resources.length, c = e.random ? Math.floor(Math.random() * a) : e.index;
|
|
6245
6291
|
let l;
|
|
6246
6292
|
if (e.random) {
|
|
@@ -6255,26 +6301,26 @@ function Wo(e, n, r, o) {
|
|
|
6255
6301
|
const s = Date.now();
|
|
6256
6302
|
let t = "pending", i = 0, d, _ = null, b = [], p = [];
|
|
6257
6303
|
typeof o == "function" && p.push(o);
|
|
6258
|
-
function
|
|
6304
|
+
function k() {
|
|
6259
6305
|
_ && (clearTimeout(_), _ = null);
|
|
6260
6306
|
}
|
|
6261
|
-
function
|
|
6262
|
-
t === "pending" && (t = "aborted"),
|
|
6307
|
+
function x() {
|
|
6308
|
+
t === "pending" && (t = "aborted"), k(), b.forEach((h) => {
|
|
6263
6309
|
h.status === "pending" && (h.status = "aborted");
|
|
6264
6310
|
}), b = [];
|
|
6265
6311
|
}
|
|
6266
|
-
function
|
|
6312
|
+
function u(h, A) {
|
|
6267
6313
|
A && (p = []), typeof h == "function" && p.push(h);
|
|
6268
6314
|
}
|
|
6269
|
-
function
|
|
6315
|
+
function E() {
|
|
6270
6316
|
return {
|
|
6271
6317
|
startTime: s,
|
|
6272
|
-
payload:
|
|
6318
|
+
payload: r,
|
|
6273
6319
|
status: t,
|
|
6274
6320
|
queriesSent: i,
|
|
6275
6321
|
queriesPending: b.length,
|
|
6276
|
-
subscribe:
|
|
6277
|
-
abort:
|
|
6322
|
+
subscribe: u,
|
|
6323
|
+
abort: x
|
|
6278
6324
|
};
|
|
6279
6325
|
}
|
|
6280
6326
|
function L() {
|
|
@@ -6287,13 +6333,13 @@ function Wo(e, n, r, o) {
|
|
|
6287
6333
|
h.status === "pending" && (h.status = "aborted");
|
|
6288
6334
|
}), b = [];
|
|
6289
6335
|
}
|
|
6290
|
-
function
|
|
6291
|
-
const
|
|
6292
|
-
switch (b = b.filter((
|
|
6336
|
+
function m(h, A, g) {
|
|
6337
|
+
const I = A !== "success";
|
|
6338
|
+
switch (b = b.filter((N) => N !== h), t) {
|
|
6293
6339
|
case "pending":
|
|
6294
6340
|
break;
|
|
6295
6341
|
case "failed":
|
|
6296
|
-
if (
|
|
6342
|
+
if (I || !e.dataAfterTimeout)
|
|
6297
6343
|
return;
|
|
6298
6344
|
break;
|
|
6299
6345
|
default:
|
|
@@ -6303,27 +6349,27 @@ function Wo(e, n, r, o) {
|
|
|
6303
6349
|
d = g, L();
|
|
6304
6350
|
return;
|
|
6305
6351
|
}
|
|
6306
|
-
if (
|
|
6307
|
-
d = g, b.length || (l.length ?
|
|
6352
|
+
if (I) {
|
|
6353
|
+
d = g, b.length || (l.length ? S() : L());
|
|
6308
6354
|
return;
|
|
6309
6355
|
}
|
|
6310
|
-
if (
|
|
6311
|
-
const
|
|
6312
|
-
|
|
6356
|
+
if (k(), R(), !e.random) {
|
|
6357
|
+
const N = e.resources.indexOf(h.resource);
|
|
6358
|
+
N !== -1 && N !== e.index && (e.index = N);
|
|
6313
6359
|
}
|
|
6314
|
-
t = "completed", p.forEach((
|
|
6315
|
-
|
|
6360
|
+
t = "completed", p.forEach((N) => {
|
|
6361
|
+
N(g);
|
|
6316
6362
|
});
|
|
6317
6363
|
}
|
|
6318
|
-
function
|
|
6364
|
+
function S() {
|
|
6319
6365
|
if (t !== "pending")
|
|
6320
6366
|
return;
|
|
6321
|
-
|
|
6367
|
+
k();
|
|
6322
6368
|
const h = l.shift();
|
|
6323
6369
|
if (h === void 0) {
|
|
6324
6370
|
if (b.length) {
|
|
6325
6371
|
_ = setTimeout(() => {
|
|
6326
|
-
|
|
6372
|
+
k(), t === "pending" && (R(), L());
|
|
6327
6373
|
}, e.timeout);
|
|
6328
6374
|
return;
|
|
6329
6375
|
}
|
|
@@ -6333,179 +6379,179 @@ function Wo(e, n, r, o) {
|
|
|
6333
6379
|
const A = {
|
|
6334
6380
|
status: "pending",
|
|
6335
6381
|
resource: h,
|
|
6336
|
-
callback: (g,
|
|
6337
|
-
|
|
6382
|
+
callback: (g, I) => {
|
|
6383
|
+
m(A, g, I);
|
|
6338
6384
|
}
|
|
6339
6385
|
};
|
|
6340
|
-
b.push(A), i++, _ = setTimeout(
|
|
6386
|
+
b.push(A), i++, _ = setTimeout(S, e.rotate), n(h, r, A.callback);
|
|
6341
6387
|
}
|
|
6342
|
-
return setTimeout(
|
|
6388
|
+
return setTimeout(S), E;
|
|
6343
6389
|
}
|
|
6344
|
-
function
|
|
6345
|
-
const
|
|
6346
|
-
...
|
|
6390
|
+
function nn(e) {
|
|
6391
|
+
const r = {
|
|
6392
|
+
...Xo,
|
|
6347
6393
|
...e
|
|
6348
6394
|
};
|
|
6349
|
-
let
|
|
6395
|
+
let n = [];
|
|
6350
6396
|
function o() {
|
|
6351
|
-
|
|
6397
|
+
n = n.filter((s) => s().status === "pending");
|
|
6352
6398
|
}
|
|
6353
6399
|
function a(s, t, i) {
|
|
6354
|
-
const d =
|
|
6355
|
-
|
|
6400
|
+
const d = Yo(
|
|
6401
|
+
r,
|
|
6356
6402
|
s,
|
|
6357
6403
|
t,
|
|
6358
6404
|
(_, b) => {
|
|
6359
6405
|
o(), i && i(_, b);
|
|
6360
6406
|
}
|
|
6361
6407
|
);
|
|
6362
|
-
return
|
|
6408
|
+
return n.push(d), d;
|
|
6363
6409
|
}
|
|
6364
6410
|
function c(s) {
|
|
6365
|
-
return
|
|
6411
|
+
return n.find((t) => s(t)) || null;
|
|
6366
6412
|
}
|
|
6367
6413
|
return {
|
|
6368
6414
|
query: a,
|
|
6369
6415
|
find: c,
|
|
6370
6416
|
setIndex: (s) => {
|
|
6371
|
-
|
|
6417
|
+
r.index = s;
|
|
6372
6418
|
},
|
|
6373
|
-
getIndex: () =>
|
|
6419
|
+
getIndex: () => r.index,
|
|
6374
6420
|
cleanup: o
|
|
6375
6421
|
};
|
|
6376
6422
|
}
|
|
6377
|
-
function
|
|
6423
|
+
function kr() {
|
|
6378
6424
|
}
|
|
6379
|
-
const
|
|
6380
|
-
function
|
|
6381
|
-
if (!
|
|
6382
|
-
const
|
|
6383
|
-
if (!
|
|
6425
|
+
const Ve = /* @__PURE__ */ Object.create(null);
|
|
6426
|
+
function qo(e) {
|
|
6427
|
+
if (!Ve[e]) {
|
|
6428
|
+
const r = tr(e);
|
|
6429
|
+
if (!r)
|
|
6384
6430
|
return;
|
|
6385
|
-
const
|
|
6386
|
-
config:
|
|
6387
|
-
redundancy:
|
|
6431
|
+
const n = nn(r), o = {
|
|
6432
|
+
config: r,
|
|
6433
|
+
redundancy: n
|
|
6388
6434
|
};
|
|
6389
|
-
|
|
6435
|
+
Ve[e] = o;
|
|
6390
6436
|
}
|
|
6391
|
-
return
|
|
6437
|
+
return Ve[e];
|
|
6392
6438
|
}
|
|
6393
|
-
function
|
|
6439
|
+
function Jo(e, r, n) {
|
|
6394
6440
|
let o, a;
|
|
6395
6441
|
if (typeof e == "string") {
|
|
6396
|
-
const c =
|
|
6442
|
+
const c = Xe(e);
|
|
6397
6443
|
if (!c)
|
|
6398
|
-
return
|
|
6444
|
+
return n(void 0, 424), kr;
|
|
6399
6445
|
a = c.send;
|
|
6400
|
-
const l =
|
|
6446
|
+
const l = qo(e);
|
|
6401
6447
|
l && (o = l.redundancy);
|
|
6402
6448
|
} else {
|
|
6403
|
-
const c =
|
|
6449
|
+
const c = cr(e);
|
|
6404
6450
|
if (c) {
|
|
6405
|
-
o =
|
|
6406
|
-
const l = e.resources ? e.resources[0] : "", s =
|
|
6451
|
+
o = nn(c);
|
|
6452
|
+
const l = e.resources ? e.resources[0] : "", s = Xe(l);
|
|
6407
6453
|
s && (a = s.send);
|
|
6408
6454
|
}
|
|
6409
6455
|
}
|
|
6410
|
-
return !o || !a ? (
|
|
6456
|
+
return !o || !a ? (n(void 0, 424), kr) : o.query(r, a, n)().abort;
|
|
6411
6457
|
}
|
|
6412
|
-
function
|
|
6458
|
+
function Sr() {
|
|
6413
6459
|
}
|
|
6414
|
-
function
|
|
6460
|
+
function Qo(e) {
|
|
6415
6461
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
6416
|
-
e.iconsLoaderFlag = !1,
|
|
6462
|
+
e.iconsLoaderFlag = !1, jo(e);
|
|
6417
6463
|
}));
|
|
6418
6464
|
}
|
|
6419
|
-
function
|
|
6420
|
-
const
|
|
6465
|
+
function ea(e) {
|
|
6466
|
+
const r = [], n = [];
|
|
6421
6467
|
return e.forEach((o) => {
|
|
6422
|
-
(o.match(
|
|
6468
|
+
(o.match(Wr) ? r : n).push(o);
|
|
6423
6469
|
}), {
|
|
6424
|
-
valid:
|
|
6425
|
-
invalid:
|
|
6470
|
+
valid: r,
|
|
6471
|
+
invalid: n
|
|
6426
6472
|
};
|
|
6427
6473
|
}
|
|
6428
|
-
function
|
|
6474
|
+
function _e(e, r, n) {
|
|
6429
6475
|
function o() {
|
|
6430
6476
|
const a = e.pendingIcons;
|
|
6431
|
-
|
|
6477
|
+
r.forEach((c) => {
|
|
6432
6478
|
a && a.delete(c), e.icons[c] || e.missing.add(c);
|
|
6433
6479
|
});
|
|
6434
6480
|
}
|
|
6435
|
-
if (
|
|
6481
|
+
if (n && typeof n == "object")
|
|
6436
6482
|
try {
|
|
6437
|
-
if (!
|
|
6483
|
+
if (!qr(e, n).length) {
|
|
6438
6484
|
o();
|
|
6439
6485
|
return;
|
|
6440
6486
|
}
|
|
6441
6487
|
} catch (a) {
|
|
6442
6488
|
console.error(a);
|
|
6443
6489
|
}
|
|
6444
|
-
o(),
|
|
6490
|
+
o(), Qo(e);
|
|
6445
6491
|
}
|
|
6446
|
-
function
|
|
6447
|
-
e instanceof Promise ? e.then((
|
|
6448
|
-
n
|
|
6492
|
+
function Cr(e, r) {
|
|
6493
|
+
e instanceof Promise ? e.then((n) => {
|
|
6494
|
+
r(n);
|
|
6449
6495
|
}).catch(() => {
|
|
6450
|
-
|
|
6451
|
-
}) :
|
|
6496
|
+
r(null);
|
|
6497
|
+
}) : r(e);
|
|
6452
6498
|
}
|
|
6453
|
-
function
|
|
6454
|
-
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(
|
|
6499
|
+
function ra(e, r) {
|
|
6500
|
+
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(r).sort() : e.iconsToLoad = r, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
6455
6501
|
e.iconsQueueFlag = !1;
|
|
6456
|
-
const { provider:
|
|
6502
|
+
const { provider: n, prefix: o } = e, a = e.iconsToLoad;
|
|
6457
6503
|
if (delete e.iconsToLoad, !a || !a.length)
|
|
6458
6504
|
return;
|
|
6459
6505
|
const c = e.loadIcon;
|
|
6460
6506
|
if (e.loadIcons && (a.length > 1 || !c)) {
|
|
6461
|
-
|
|
6462
|
-
e.loadIcons(a, o,
|
|
6507
|
+
Cr(
|
|
6508
|
+
e.loadIcons(a, o, n),
|
|
6463
6509
|
(d) => {
|
|
6464
|
-
|
|
6510
|
+
_e(e, a, d);
|
|
6465
6511
|
}
|
|
6466
6512
|
);
|
|
6467
6513
|
return;
|
|
6468
6514
|
}
|
|
6469
6515
|
if (c) {
|
|
6470
6516
|
a.forEach((d) => {
|
|
6471
|
-
const _ = c(d, o,
|
|
6472
|
-
|
|
6517
|
+
const _ = c(d, o, n);
|
|
6518
|
+
Cr(_, (b) => {
|
|
6473
6519
|
const p = b ? {
|
|
6474
6520
|
prefix: o,
|
|
6475
6521
|
icons: {
|
|
6476
6522
|
[d]: b
|
|
6477
6523
|
}
|
|
6478
6524
|
} : null;
|
|
6479
|
-
|
|
6525
|
+
_e(e, [d], p);
|
|
6480
6526
|
});
|
|
6481
6527
|
});
|
|
6482
6528
|
return;
|
|
6483
6529
|
}
|
|
6484
|
-
const { valid: l, invalid: s } =
|
|
6485
|
-
if (s.length &&
|
|
6530
|
+
const { valid: l, invalid: s } = ea(a);
|
|
6531
|
+
if (s.length && _e(e, s, null), !l.length)
|
|
6486
6532
|
return;
|
|
6487
|
-
const t = o.match(
|
|
6533
|
+
const t = o.match(Wr) ? Xe(n) : null;
|
|
6488
6534
|
if (!t) {
|
|
6489
|
-
|
|
6535
|
+
_e(e, l, null);
|
|
6490
6536
|
return;
|
|
6491
6537
|
}
|
|
6492
|
-
t.prepare(
|
|
6493
|
-
|
|
6494
|
-
|
|
6538
|
+
t.prepare(n, o, l).forEach((d) => {
|
|
6539
|
+
Jo(n, d, (_) => {
|
|
6540
|
+
_e(e, d.icons, _);
|
|
6495
6541
|
});
|
|
6496
6542
|
});
|
|
6497
6543
|
}));
|
|
6498
6544
|
}
|
|
6499
|
-
const
|
|
6500
|
-
const
|
|
6545
|
+
const na = (e, r) => {
|
|
6546
|
+
const n = Zo(e, !0, Jr()), o = Vo(n);
|
|
6501
6547
|
if (!o.pending.length) {
|
|
6502
6548
|
let t = !0;
|
|
6503
|
-
return
|
|
6504
|
-
t &&
|
|
6549
|
+
return r && setTimeout(() => {
|
|
6550
|
+
t && r(
|
|
6505
6551
|
o.loaded,
|
|
6506
6552
|
o.missing,
|
|
6507
6553
|
o.pending,
|
|
6508
|
-
|
|
6554
|
+
Sr
|
|
6509
6555
|
);
|
|
6510
6556
|
}), () => {
|
|
6511
6557
|
t = !1;
|
|
@@ -6517,31 +6563,31 @@ const Qo = (e, n) => {
|
|
|
6517
6563
|
const { provider: i, prefix: d } = t;
|
|
6518
6564
|
if (d === s && i === l)
|
|
6519
6565
|
return;
|
|
6520
|
-
l = i, s = d, c.push(
|
|
6566
|
+
l = i, s = d, c.push(ie(i, d));
|
|
6521
6567
|
const _ = a[i] || (a[i] = /* @__PURE__ */ Object.create(null));
|
|
6522
6568
|
_[d] || (_[d] = []);
|
|
6523
6569
|
}), o.pending.forEach((t) => {
|
|
6524
|
-
const { provider: i, prefix: d, name: _ } = t, b =
|
|
6570
|
+
const { provider: i, prefix: d, name: _ } = t, b = ie(i, d), p = b.pendingIcons || (b.pendingIcons = /* @__PURE__ */ new Set());
|
|
6525
6571
|
p.has(_) || (p.add(_), a[i][d].push(_));
|
|
6526
6572
|
}), c.forEach((t) => {
|
|
6527
6573
|
const i = a[t.provider][t.prefix];
|
|
6528
|
-
i.length &&
|
|
6529
|
-
}),
|
|
6574
|
+
i.length && ra(t, i);
|
|
6575
|
+
}), r ? Wo(r, o, c) : Sr;
|
|
6530
6576
|
};
|
|
6531
|
-
function
|
|
6532
|
-
const
|
|
6577
|
+
function oa(e, r) {
|
|
6578
|
+
const n = {
|
|
6533
6579
|
...e
|
|
6534
6580
|
};
|
|
6535
|
-
for (const o in
|
|
6536
|
-
const a =
|
|
6537
|
-
o in
|
|
6581
|
+
for (const o in r) {
|
|
6582
|
+
const a = r[o], c = typeof a;
|
|
6583
|
+
o in Qr ? (a === null || a && (c === "string" || c === "number")) && (n[o] = a) : c === typeof n[o] && (n[o] = o === "rotate" ? a % 4 : a);
|
|
6538
6584
|
}
|
|
6539
|
-
return
|
|
6585
|
+
return n;
|
|
6540
6586
|
}
|
|
6541
|
-
const
|
|
6542
|
-
function
|
|
6543
|
-
|
|
6544
|
-
switch (
|
|
6587
|
+
const aa = /[\s,]+/;
|
|
6588
|
+
function ca(e, r) {
|
|
6589
|
+
r.split(aa).forEach((n) => {
|
|
6590
|
+
switch (n.trim()) {
|
|
6545
6591
|
case "horizontal":
|
|
6546
6592
|
e.hFlip = !0;
|
|
6547
6593
|
break;
|
|
@@ -6551,19 +6597,19 @@ function na(e, n) {
|
|
|
6551
6597
|
}
|
|
6552
6598
|
});
|
|
6553
6599
|
}
|
|
6554
|
-
function
|
|
6555
|
-
const
|
|
6600
|
+
function la(e, r = 0) {
|
|
6601
|
+
const n = e.replace(/^-?[0-9.]*/, "");
|
|
6556
6602
|
function o(a) {
|
|
6557
6603
|
for (; a < 0; )
|
|
6558
6604
|
a += 4;
|
|
6559
6605
|
return a % 4;
|
|
6560
6606
|
}
|
|
6561
|
-
if (
|
|
6607
|
+
if (n === "") {
|
|
6562
6608
|
const a = parseInt(e);
|
|
6563
6609
|
return isNaN(a) ? 0 : o(a);
|
|
6564
|
-
} else if (
|
|
6610
|
+
} else if (n !== e) {
|
|
6565
6611
|
let a = 0;
|
|
6566
|
-
switch (
|
|
6612
|
+
switch (n) {
|
|
6567
6613
|
case "%":
|
|
6568
6614
|
a = 25;
|
|
6569
6615
|
break;
|
|
@@ -6571,69 +6617,69 @@ function oa(e, n = 0) {
|
|
|
6571
6617
|
a = 90;
|
|
6572
6618
|
}
|
|
6573
6619
|
if (a) {
|
|
6574
|
-
let c = parseFloat(e.slice(0, e.length -
|
|
6620
|
+
let c = parseFloat(e.slice(0, e.length - n.length));
|
|
6575
6621
|
return isNaN(c) ? 0 : (c = c / a, c % 1 === 0 ? o(c) : 0);
|
|
6576
6622
|
}
|
|
6577
6623
|
}
|
|
6578
|
-
return
|
|
6624
|
+
return r;
|
|
6579
6625
|
}
|
|
6580
|
-
function
|
|
6581
|
-
let
|
|
6582
|
-
for (const o in
|
|
6583
|
-
|
|
6584
|
-
return '<svg xmlns="http://www.w3.org/2000/svg"' +
|
|
6626
|
+
function ta(e, r) {
|
|
6627
|
+
let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
6628
|
+
for (const o in r)
|
|
6629
|
+
n += " " + o + '="' + r[o] + '"';
|
|
6630
|
+
return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
|
|
6585
6631
|
}
|
|
6586
|
-
function
|
|
6632
|
+
function sa(e) {
|
|
6587
6633
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
6588
6634
|
}
|
|
6589
|
-
function
|
|
6590
|
-
return "data:image/svg+xml," +
|
|
6635
|
+
function ia(e) {
|
|
6636
|
+
return "data:image/svg+xml," + sa(e);
|
|
6591
6637
|
}
|
|
6592
|
-
function
|
|
6593
|
-
return 'url("' +
|
|
6638
|
+
function da(e) {
|
|
6639
|
+
return 'url("' + ia(e) + '")';
|
|
6594
6640
|
}
|
|
6595
|
-
const
|
|
6596
|
-
...
|
|
6641
|
+
const Ar = {
|
|
6642
|
+
...en,
|
|
6597
6643
|
inline: !1
|
|
6598
|
-
},
|
|
6644
|
+
}, ua = {
|
|
6599
6645
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6600
6646
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
6601
6647
|
"aria-hidden": !0,
|
|
6602
6648
|
role: "img"
|
|
6603
|
-
},
|
|
6649
|
+
}, ma = {
|
|
6604
6650
|
display: "inline-block"
|
|
6605
|
-
},
|
|
6651
|
+
}, Ye = {
|
|
6606
6652
|
backgroundColor: "currentColor"
|
|
6607
|
-
},
|
|
6653
|
+
}, on = {
|
|
6608
6654
|
backgroundColor: "transparent"
|
|
6609
|
-
},
|
|
6655
|
+
}, Dr = {
|
|
6610
6656
|
Image: "var(--svg)",
|
|
6611
6657
|
Repeat: "no-repeat",
|
|
6612
6658
|
Size: "100% 100%"
|
|
6613
|
-
},
|
|
6614
|
-
webkitMask:
|
|
6615
|
-
mask:
|
|
6616
|
-
background:
|
|
6659
|
+
}, Rr = {
|
|
6660
|
+
webkitMask: Ye,
|
|
6661
|
+
mask: Ye,
|
|
6662
|
+
background: on
|
|
6617
6663
|
};
|
|
6618
|
-
for (const e in
|
|
6619
|
-
const
|
|
6620
|
-
for (const
|
|
6621
|
-
|
|
6664
|
+
for (const e in Rr) {
|
|
6665
|
+
const r = Rr[e];
|
|
6666
|
+
for (const n in Dr)
|
|
6667
|
+
r[e + n] = Dr[n];
|
|
6622
6668
|
}
|
|
6623
|
-
const
|
|
6669
|
+
const Re = {};
|
|
6624
6670
|
["horizontal", "vertical"].forEach((e) => {
|
|
6625
|
-
const
|
|
6626
|
-
|
|
6671
|
+
const r = e.slice(0, 1) + "Flip";
|
|
6672
|
+
Re[e + "-flip"] = r, Re[e.slice(0, 1) + "-flip"] = r, Re[e + "Flip"] = r;
|
|
6627
6673
|
});
|
|
6628
|
-
function
|
|
6674
|
+
function Er(e) {
|
|
6629
6675
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
6630
6676
|
}
|
|
6631
|
-
const
|
|
6632
|
-
const
|
|
6633
|
-
for (let
|
|
6634
|
-
const
|
|
6635
|
-
if (
|
|
6636
|
-
switch (
|
|
6677
|
+
const Mr = (e, r) => {
|
|
6678
|
+
const n = oa(Ar, r), o = { ...ua }, a = r.mode || "svg", c = {}, l = r.style, s = typeof l == "object" && !(l instanceof Array) ? l : {};
|
|
6679
|
+
for (let x in r) {
|
|
6680
|
+
const u = r[x];
|
|
6681
|
+
if (u !== void 0)
|
|
6682
|
+
switch (x) {
|
|
6637
6683
|
// Properties to ignore
|
|
6638
6684
|
case "icon":
|
|
6639
6685
|
case "style":
|
|
@@ -6645,98 +6691,98 @@ const Cr = (e, n) => {
|
|
|
6645
6691
|
case "inline":
|
|
6646
6692
|
case "hFlip":
|
|
6647
6693
|
case "vFlip":
|
|
6648
|
-
|
|
6694
|
+
n[x] = u === !0 || u === "true" || u === 1;
|
|
6649
6695
|
break;
|
|
6650
6696
|
// Flip as string: 'horizontal,vertical'
|
|
6651
6697
|
case "flip":
|
|
6652
|
-
typeof
|
|
6698
|
+
typeof u == "string" && ca(n, u);
|
|
6653
6699
|
break;
|
|
6654
6700
|
// Color: override style
|
|
6655
6701
|
case "color":
|
|
6656
|
-
c.color =
|
|
6702
|
+
c.color = u;
|
|
6657
6703
|
break;
|
|
6658
6704
|
// Rotation as string
|
|
6659
6705
|
case "rotate":
|
|
6660
|
-
typeof
|
|
6706
|
+
typeof u == "string" ? n[x] = la(u) : typeof u == "number" && (n[x] = u);
|
|
6661
6707
|
break;
|
|
6662
6708
|
// Remove aria-hidden
|
|
6663
6709
|
case "ariaHidden":
|
|
6664
6710
|
case "aria-hidden":
|
|
6665
|
-
|
|
6711
|
+
u !== !0 && u !== "true" && delete o["aria-hidden"];
|
|
6666
6712
|
break;
|
|
6667
6713
|
default: {
|
|
6668
|
-
const
|
|
6669
|
-
|
|
6714
|
+
const E = Re[x];
|
|
6715
|
+
E ? (u === !0 || u === "true" || u === 1) && (n[E] = !0) : Ar[x] === void 0 && (o[x] = u);
|
|
6670
6716
|
}
|
|
6671
6717
|
}
|
|
6672
6718
|
}
|
|
6673
|
-
const t =
|
|
6674
|
-
if (
|
|
6719
|
+
const t = Mo(e, n), i = t.attributes;
|
|
6720
|
+
if (n.inline && (c.verticalAlign = "-0.125em"), a === "svg") {
|
|
6675
6721
|
o.style = {
|
|
6676
6722
|
...c,
|
|
6677
6723
|
...s
|
|
6678
6724
|
}, Object.assign(o, i);
|
|
6679
|
-
let
|
|
6680
|
-
return typeof
|
|
6725
|
+
let x = 0, u = r.id;
|
|
6726
|
+
return typeof u == "string" && (u = u.replace(/-/g, "_")), o.innerHTML = Lo(t.body, u ? () => u + "ID" + x++ : "iconifyVue"), yr("svg", o);
|
|
6681
6727
|
}
|
|
6682
|
-
const { body: d, width: _, height: b } = e, p = a === "mask" || (a === "bg" ? !1 : d.indexOf("currentColor") !== -1),
|
|
6728
|
+
const { body: d, width: _, height: b } = e, p = a === "mask" || (a === "bg" ? !1 : d.indexOf("currentColor") !== -1), k = ta(d, {
|
|
6683
6729
|
...i,
|
|
6684
6730
|
width: _ + "",
|
|
6685
6731
|
height: b + ""
|
|
6686
6732
|
});
|
|
6687
6733
|
return o.style = {
|
|
6688
6734
|
...c,
|
|
6689
|
-
"--svg":
|
|
6690
|
-
width:
|
|
6691
|
-
height:
|
|
6692
|
-
...
|
|
6693
|
-
...p ?
|
|
6735
|
+
"--svg": da(k),
|
|
6736
|
+
width: Er(i.width),
|
|
6737
|
+
height: Er(i.height),
|
|
6738
|
+
...ma,
|
|
6739
|
+
...p ? Ye : on,
|
|
6694
6740
|
...s
|
|
6695
|
-
},
|
|
6741
|
+
}, yr("span", o);
|
|
6696
6742
|
};
|
|
6697
|
-
|
|
6698
|
-
|
|
6743
|
+
Jr(!0);
|
|
6744
|
+
To("", Ko);
|
|
6699
6745
|
if (typeof document < "u" && typeof window < "u") {
|
|
6700
6746
|
const e = window;
|
|
6701
6747
|
if (e.IconifyPreload !== void 0) {
|
|
6702
|
-
const
|
|
6703
|
-
typeof
|
|
6748
|
+
const r = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
|
|
6749
|
+
typeof r == "object" && r !== null && (r instanceof Array ? r : [r]).forEach((o) => {
|
|
6704
6750
|
try {
|
|
6705
6751
|
// Check if item is an object and not null/array
|
|
6706
6752
|
(typeof o != "object" || o === null || o instanceof Array || // Check for 'icons' and 'prefix'
|
|
6707
6753
|
typeof o.icons != "object" || typeof o.prefix != "string" || // Add icon set
|
|
6708
|
-
!
|
|
6754
|
+
!ko(o)) && console.error(n);
|
|
6709
6755
|
} catch {
|
|
6710
|
-
console.error(
|
|
6756
|
+
console.error(n);
|
|
6711
6757
|
}
|
|
6712
6758
|
});
|
|
6713
6759
|
}
|
|
6714
6760
|
if (e.IconifyProviders !== void 0) {
|
|
6715
|
-
const
|
|
6716
|
-
if (typeof
|
|
6717
|
-
for (let
|
|
6718
|
-
const o = "IconifyProviders[" +
|
|
6761
|
+
const r = e.IconifyProviders;
|
|
6762
|
+
if (typeof r == "object" && r !== null)
|
|
6763
|
+
for (let n in r) {
|
|
6764
|
+
const o = "IconifyProviders[" + n + "] is invalid.";
|
|
6719
6765
|
try {
|
|
6720
|
-
const a = n
|
|
6766
|
+
const a = r[n];
|
|
6721
6767
|
if (typeof a != "object" || !a || a.resources === void 0)
|
|
6722
6768
|
continue;
|
|
6723
|
-
|
|
6769
|
+
Bo(n, a) || console.error(o);
|
|
6724
6770
|
} catch {
|
|
6725
6771
|
console.error(o);
|
|
6726
6772
|
}
|
|
6727
6773
|
}
|
|
6728
6774
|
}
|
|
6729
6775
|
}
|
|
6730
|
-
const
|
|
6731
|
-
...
|
|
6776
|
+
const ya = {
|
|
6777
|
+
...Ne,
|
|
6732
6778
|
body: ""
|
|
6733
|
-
},
|
|
6734
|
-
const
|
|
6779
|
+
}, fa = V((e, { emit: r }) => {
|
|
6780
|
+
const n = P(null);
|
|
6735
6781
|
function o() {
|
|
6736
6782
|
var i, d;
|
|
6737
|
-
|
|
6783
|
+
n.value && ((d = (i = n.value).abort) == null || d.call(i), n.value = null);
|
|
6738
6784
|
}
|
|
6739
|
-
const a =
|
|
6785
|
+
const a = P(!!e.ssr), c = P(""), l = cn(null);
|
|
6740
6786
|
function s() {
|
|
6741
6787
|
const i = e.icon;
|
|
6742
6788
|
if (typeof i == "object" && i !== null && typeof i.body == "string")
|
|
@@ -6744,26 +6790,26 @@ const da = {
|
|
|
6744
6790
|
data: i
|
|
6745
6791
|
};
|
|
6746
6792
|
let d;
|
|
6747
|
-
if (typeof i != "string" || (d =
|
|
6793
|
+
if (typeof i != "string" || (d = Be(i, !1, !0)) === null)
|
|
6748
6794
|
return null;
|
|
6749
|
-
let _ =
|
|
6795
|
+
let _ = wo(d);
|
|
6750
6796
|
if (!_) {
|
|
6751
|
-
const
|
|
6752
|
-
return (!
|
|
6797
|
+
const k = n.value;
|
|
6798
|
+
return (!k || k.name !== i) && (_ === null ? n.value = {
|
|
6753
6799
|
name: i
|
|
6754
|
-
} :
|
|
6800
|
+
} : n.value = {
|
|
6755
6801
|
name: i,
|
|
6756
|
-
abort:
|
|
6802
|
+
abort: na([d], t)
|
|
6757
6803
|
}), null;
|
|
6758
6804
|
}
|
|
6759
|
-
o(), c.value !== i && (c.value = i,
|
|
6760
|
-
|
|
6805
|
+
o(), c.value !== i && (c.value = i, Ce(() => {
|
|
6806
|
+
r("load", i);
|
|
6761
6807
|
}));
|
|
6762
6808
|
const b = e.customise;
|
|
6763
6809
|
if (b) {
|
|
6764
6810
|
_ = Object.assign({}, _);
|
|
6765
|
-
const
|
|
6766
|
-
typeof
|
|
6811
|
+
const k = b(_.body, d.name, d.prefix, d.provider);
|
|
6812
|
+
typeof k == "string" && (_.body = k);
|
|
6767
6813
|
}
|
|
6768
6814
|
const p = ["iconify"];
|
|
6769
6815
|
return d.prefix !== "" && p.push("iconify--" + d.prefix), d.provider !== "" && p.push("iconify--" + d.provider), { data: _, classes: p };
|
|
@@ -6773,18 +6819,18 @@ const da = {
|
|
|
6773
6819
|
const i = s();
|
|
6774
6820
|
i ? i.data !== ((d = l.value) == null ? void 0 : d.data) && (l.value = i) : l.value = null;
|
|
6775
6821
|
}
|
|
6776
|
-
return a.value ? t() :
|
|
6822
|
+
return a.value ? t() : pe(() => {
|
|
6777
6823
|
a.value = !0, t();
|
|
6778
|
-
}),
|
|
6824
|
+
}), Ie(() => e.icon, t), rr(o), () => {
|
|
6779
6825
|
const i = l.value;
|
|
6780
6826
|
if (!i)
|
|
6781
|
-
return
|
|
6827
|
+
return Mr(ya, e);
|
|
6782
6828
|
let d = e;
|
|
6783
6829
|
return i.classes && (d = {
|
|
6784
6830
|
...e,
|
|
6785
6831
|
class: i.classes.join(" ")
|
|
6786
|
-
}),
|
|
6787
|
-
...
|
|
6832
|
+
}), Mr({
|
|
6833
|
+
...Ne,
|
|
6788
6834
|
...i.data
|
|
6789
6835
|
}, d);
|
|
6790
6836
|
};
|
|
@@ -6814,21 +6860,18 @@ const da = {
|
|
|
6814
6860
|
"title"
|
|
6815
6861
|
],
|
|
6816
6862
|
emits: ["load"]
|
|
6817
|
-
}),
|
|
6863
|
+
}), _a = { class: "main-select" }, ga = {
|
|
6818
6864
|
key: 0,
|
|
6819
6865
|
class: "text-red-500"
|
|
6820
|
-
},
|
|
6866
|
+
}, pa = ["error"], ba = { class: "truncate" }, ha = { key: 0 }, va = { key: 0 }, wa = {
|
|
6821
6867
|
key: 1,
|
|
6822
6868
|
class: "text-base-neutral-300"
|
|
6823
|
-
},
|
|
6869
|
+
}, xa = {
|
|
6824
6870
|
key: 0,
|
|
6825
6871
|
class: "p-2 relative"
|
|
6826
|
-
},
|
|
6827
|
-
key: 1,
|
|
6828
|
-
class: "p-3 text-base text-neutral-500"
|
|
6829
|
-
}, ka = /* @__PURE__ */ Z({
|
|
6872
|
+
}, ka = /* @__PURE__ */ V({
|
|
6830
6873
|
__name: "Select",
|
|
6831
|
-
props: /* @__PURE__ */
|
|
6874
|
+
props: /* @__PURE__ */ nr({
|
|
6832
6875
|
id: {},
|
|
6833
6876
|
label: {},
|
|
6834
6877
|
options: {},
|
|
@@ -6853,28 +6896,28 @@ const da = {
|
|
|
6853
6896
|
}),
|
|
6854
6897
|
emits: ["update:modelValue", "update:query"],
|
|
6855
6898
|
setup(e) {
|
|
6856
|
-
const
|
|
6857
|
-
|
|
6899
|
+
const r = e, n = ln(), o = se(e, "modelValue"), a = P(!1), c = se(e, "query"), l = P(null), s = P(null), t = P({}), i = P(-1);
|
|
6900
|
+
pe(() => {
|
|
6858
6901
|
window.addEventListener("scroll", _, !0), window.addEventListener("resize", _);
|
|
6859
|
-
}),
|
|
6902
|
+
}), rr(() => {
|
|
6860
6903
|
window.removeEventListener("scroll", _, !0), window.removeEventListener("resize", _);
|
|
6861
6904
|
});
|
|
6862
|
-
const d = (
|
|
6905
|
+
const d = (m) => {
|
|
6863
6906
|
var h;
|
|
6864
6907
|
if (!a.value) {
|
|
6865
|
-
(
|
|
6908
|
+
(m.key === "ArrowDown" || m.key === "Enter") && (m.preventDefault(), b());
|
|
6866
6909
|
return;
|
|
6867
6910
|
}
|
|
6868
|
-
const
|
|
6869
|
-
switch (
|
|
6911
|
+
const S = ((h = u.value) == null ? void 0 : h.filter((A) => !A.disabled)) ?? [];
|
|
6912
|
+
switch (m.key) {
|
|
6870
6913
|
case "ArrowDown":
|
|
6871
|
-
|
|
6914
|
+
m.preventDefault(), i.value = (i.value + 1) % S.length;
|
|
6872
6915
|
break;
|
|
6873
6916
|
case "ArrowUp":
|
|
6874
|
-
|
|
6917
|
+
m.preventDefault(), i.value = (i.value - 1 + S.length) % S.length;
|
|
6875
6918
|
break;
|
|
6876
6919
|
case "Enter":
|
|
6877
|
-
|
|
6920
|
+
m.preventDefault(), S[i.value] && x(S[i.value]);
|
|
6878
6921
|
break;
|
|
6879
6922
|
case "Escape":
|
|
6880
6923
|
case "Tab":
|
|
@@ -6883,66 +6926,69 @@ const da = {
|
|
|
6883
6926
|
}
|
|
6884
6927
|
}, _ = () => {
|
|
6885
6928
|
if (!l.value || !s.value) return;
|
|
6886
|
-
const
|
|
6929
|
+
const m = l.value.getBoundingClientRect(), S = s.value.offsetHeight, h = window.scrollX || window.pageXOffset, A = window.scrollY || window.pageYOffset, g = window.innerHeight - m.bottom, I = m.top, re = S > g && I > S ? m.top + A - S - 5 : m.bottom + A + 5;
|
|
6887
6930
|
t.value = {
|
|
6888
6931
|
position: "absolute",
|
|
6889
|
-
left: `${
|
|
6890
|
-
top: `${
|
|
6891
|
-
width: `${
|
|
6932
|
+
left: `${m.left + h}px`,
|
|
6933
|
+
top: `${re}px`,
|
|
6934
|
+
width: `${m.width}px`
|
|
6892
6935
|
};
|
|
6893
6936
|
};
|
|
6894
|
-
|
|
6895
|
-
|
|
6937
|
+
Ie(a, async (m) => {
|
|
6938
|
+
m && (await Ce(), _());
|
|
6896
6939
|
});
|
|
6897
6940
|
const b = () => {
|
|
6898
|
-
if (!
|
|
6941
|
+
if (!r.disabled) {
|
|
6899
6942
|
if (a.value = !a.value, !a.value) return;
|
|
6900
|
-
|
|
6943
|
+
Ce(() => _());
|
|
6901
6944
|
}
|
|
6902
|
-
}, p =
|
|
6903
|
-
var
|
|
6904
|
-
const
|
|
6945
|
+
}, p = O(() => {
|
|
6946
|
+
var S, h;
|
|
6947
|
+
const m = r.multiple ? (S = r.options) == null ? void 0 : S.filter((A) => {
|
|
6905
6948
|
var g;
|
|
6906
6949
|
return (g = o.value) == null ? void 0 : g.includes(A.value);
|
|
6907
|
-
}) : (h =
|
|
6908
|
-
return
|
|
6909
|
-
}),
|
|
6910
|
-
var
|
|
6911
|
-
return
|
|
6912
|
-
},
|
|
6913
|
-
if (!(
|
|
6914
|
-
if (
|
|
6915
|
-
const
|
|
6916
|
-
|
|
6950
|
+
}) : (h = r.options) == null ? void 0 : h.filter((A) => o.value === A.value);
|
|
6951
|
+
return m == null ? void 0 : m.map((A) => A.label);
|
|
6952
|
+
}), k = (m) => {
|
|
6953
|
+
var S;
|
|
6954
|
+
return r.multiple ? (S = o.value) == null ? void 0 : S.includes(m.value) : o.value == m.value;
|
|
6955
|
+
}, x = (m) => {
|
|
6956
|
+
if (!(r.disabled || m.disabled))
|
|
6957
|
+
if (r.multiple) {
|
|
6958
|
+
const S = o.value ?? [];
|
|
6959
|
+
S.includes(m.value) ? o.value = S.filter((h) => h !== m.value) : o.value = [...S, m.value];
|
|
6917
6960
|
} else
|
|
6918
|
-
o.value ==
|
|
6919
|
-
},
|
|
6920
|
-
let
|
|
6921
|
-
if (
|
|
6922
|
-
const
|
|
6923
|
-
|
|
6924
|
-
(h) => h.label.toLowerCase().includes(
|
|
6961
|
+
o.value == m.value ? o.value = void 0 : o.value = m.value, a.value = !1;
|
|
6962
|
+
}, u = O(() => {
|
|
6963
|
+
let m = r.options ?? [];
|
|
6964
|
+
if (r.searchable && c.value.trim()) {
|
|
6965
|
+
const S = c.value.toLowerCase();
|
|
6966
|
+
m = m.filter(
|
|
6967
|
+
(h) => h.label.toLowerCase().includes(S.toLocaleLowerCase())
|
|
6925
6968
|
);
|
|
6926
6969
|
}
|
|
6927
|
-
return
|
|
6928
|
-
}),
|
|
6929
|
-
let
|
|
6930
|
-
return
|
|
6931
|
-
}), L =
|
|
6932
|
-
return
|
|
6933
|
-
|
|
6934
|
-
}), (
|
|
6935
|
-
var
|
|
6936
|
-
const h =
|
|
6937
|
-
return
|
|
6938
|
-
|
|
6970
|
+
return m;
|
|
6971
|
+
}), E = O(() => {
|
|
6972
|
+
let m = "text-sm w-full h-12 focus-visible:outline-none bg-off-white border border-off-white hover:border-base-neutral-300 focus:border-primary-red-700 focus:ring-0 outline-none transition-all duration-300 px-3 text-black placeholder:text-base-neutral-300 disabled:bg-input-disabled-bg disabled:text-base-neutral-200";
|
|
6973
|
+
return r.rounded === "full" ? m += " rounded-full" : r.rounded === "lg" ? m += " rounded-lg" : m += " rounded-xl", ce(m, r.classList);
|
|
6974
|
+
}), L = O(() => ce("font-medium text-sm flex mb-1", r.labelClassList)), R = (m) => `${m.value}`;
|
|
6975
|
+
return Ie(a, async (m) => {
|
|
6976
|
+
m && (i.value = -1, await Ce(), _());
|
|
6977
|
+
}), (m, S) => {
|
|
6978
|
+
var N, re, ne, me;
|
|
6979
|
+
const h = Z("m-label"), A = Z("m-li"), g = Z("m-ul"), I = Z("AppFormError");
|
|
6980
|
+
return w(), D("div", _a, [
|
|
6981
|
+
Y(h, {
|
|
6939
6982
|
for: e.id,
|
|
6940
|
-
class:
|
|
6941
|
-
},
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6983
|
+
class: H(L.value)
|
|
6984
|
+
}, {
|
|
6985
|
+
default: K(() => [
|
|
6986
|
+
ae(z(e.label) + " ", 1),
|
|
6987
|
+
e.required ? (w(), D("span", ga, "*")) : G("", !0)
|
|
6988
|
+
]),
|
|
6989
|
+
_: 1
|
|
6990
|
+
}, 8, ["for", "class"]),
|
|
6991
|
+
j("div", {
|
|
6946
6992
|
ref_key: "wrapperRef",
|
|
6947
6993
|
ref: l,
|
|
6948
6994
|
class: "relative w-full focus:ring-0 focus:outline-0",
|
|
@@ -6950,97 +6996,114 @@ const da = {
|
|
|
6950
6996
|
onKeydown: d,
|
|
6951
6997
|
tabindex: "1"
|
|
6952
6998
|
}, [
|
|
6953
|
-
|
|
6999
|
+
Ee(n).toggleButton ? X(m.$slots, "toggleButton", { key: 0 }, void 0, !0) : (w(), D("div", {
|
|
6954
7000
|
key: 1,
|
|
6955
|
-
class:
|
|
6956
|
-
error: !!((
|
|
7001
|
+
class: H([E.value, "flex items-center justify-between h-12 select"]),
|
|
7002
|
+
error: !!((N = e.errors) != null && N.length)
|
|
6957
7003
|
}, [
|
|
6958
|
-
|
|
6959
|
-
e.multiple && Array.isArray(o.value) ? (
|
|
6960
|
-
e.showSelectedCount ? (
|
|
7004
|
+
j("div", ba, [
|
|
7005
|
+
e.multiple && Array.isArray(o.value) ? (w(), D(te, { key: 0 }, [
|
|
7006
|
+
e.showSelectedCount ? (w(), D("span", {
|
|
6961
7007
|
key: 0,
|
|
6962
|
-
class:
|
|
6963
|
-
},
|
|
6964
|
-
p.value && p.value.length ? (
|
|
6965
|
-
|
|
6966
|
-
((
|
|
6967
|
-
])) : (
|
|
7008
|
+
class: H(!o.value || o.value.length === 0 ? "text-base-neutral-300" : "")
|
|
7009
|
+
}, z(o.value.length > 0 ? `${o.value.length} selected` : e.placeholder), 3)) : (w(), D(te, { key: 1 }, [
|
|
7010
|
+
p.value && p.value.length ? (w(), D("span", ha, [
|
|
7011
|
+
ae(z((re = p.value) == null ? void 0 : re.slice(0, 2).join(", ")) + " ", 1),
|
|
7012
|
+
((ne = p.value) == null ? void 0 : ne.length) > 2 ? (w(), D("span", va, " , +" + z(p.value.length - 2) + " more ", 1)) : G("", !0)
|
|
7013
|
+
])) : (w(), D("span", wa, z(e.placeholder), 1))
|
|
6968
7014
|
], 64))
|
|
6969
|
-
], 64)) : (
|
|
7015
|
+
], 64)) : (w(), D("span", {
|
|
6970
7016
|
key: 1,
|
|
6971
|
-
class:
|
|
6972
|
-
},
|
|
7017
|
+
class: H({ "text-base-neutral-300": !o.value || o.value === "" || o.value === null })
|
|
7018
|
+
}, z(((me = p.value) == null ? void 0 : me[0]) || e.placeholder), 3))
|
|
6973
7019
|
]),
|
|
6974
|
-
|
|
7020
|
+
Y(He, {
|
|
6975
7021
|
name: "chevron-left",
|
|
6976
7022
|
size: 16,
|
|
6977
7023
|
class: "-rotate-90"
|
|
6978
7024
|
})
|
|
6979
|
-
], 10,
|
|
6980
|
-
(
|
|
6981
|
-
a.value ? (
|
|
7025
|
+
], 10, pa)),
|
|
7026
|
+
(w(), B(Lr, { to: "body" }, [
|
|
7027
|
+
a.value ? (w(), D("div", {
|
|
6982
7028
|
key: 0,
|
|
6983
7029
|
class: "fixed inset-0 h-dvh w-screen z-101",
|
|
6984
|
-
onClick:
|
|
7030
|
+
onClick: S[0] || (S[0] = (q) => a.value = !1)
|
|
6985
7031
|
})) : G("", !0),
|
|
6986
|
-
a.value ? (
|
|
7032
|
+
a.value ? (w(), D("div", {
|
|
6987
7033
|
key: 1,
|
|
6988
7034
|
ref_key: "dropdownRef",
|
|
6989
7035
|
ref: s,
|
|
6990
|
-
style:
|
|
7036
|
+
style: Je(t.value),
|
|
6991
7037
|
class: "absolute z-102 w-full bg-off-white border border-base-neutral-100 rounded-lg shadow-lg max-h-60 overflow-auto",
|
|
6992
7038
|
role: "listbox"
|
|
6993
7039
|
}, [
|
|
6994
|
-
e.searchable ? (
|
|
6995
|
-
|
|
7040
|
+
e.searchable ? (w(), D("div", xa, [
|
|
7041
|
+
Fr(j("input", {
|
|
6996
7042
|
name: "search",
|
|
6997
|
-
"onUpdate:modelValue":
|
|
7043
|
+
"onUpdate:modelValue": S[1] || (S[1] = (q) => c.value = q),
|
|
6998
7044
|
class: "w-full p-2 border border-base-neutral-100 bg-white rounded-lg text-sm focus:outline-none",
|
|
6999
7045
|
placeholder: "Search...",
|
|
7000
|
-
onClick:
|
|
7046
|
+
onClick: S[2] || (S[2] = Me(() => {
|
|
7001
7047
|
}, ["stop"]))
|
|
7002
7048
|
}, null, 512), [
|
|
7003
|
-
[
|
|
7049
|
+
[Pr, c.value]
|
|
7004
7050
|
]),
|
|
7005
|
-
e.loading ? (
|
|
7051
|
+
e.loading ? (w(), B(Ee(fa), {
|
|
7006
7052
|
key: 0,
|
|
7007
7053
|
icon: "svg-spinners:180-ring-with-bg",
|
|
7008
7054
|
class: "absolute end-5 top-1/2 -translate-y-1/2"
|
|
7009
7055
|
})) : G("", !0)
|
|
7010
7056
|
])) : G("", !0),
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7057
|
+
Y(g, null, {
|
|
7058
|
+
default: K(() => {
|
|
7059
|
+
var q;
|
|
7060
|
+
return [
|
|
7061
|
+
(q = u.value) != null && q.length ? (w(!0), D(te, { key: 0 }, Qe(u.value, (U, W) => (w(), B(A, {
|
|
7062
|
+
key: R(U),
|
|
7063
|
+
class: H(["px-3 py-3 text-sm flex justify-between items-center border-b border-base-neutral-100 last-of-type:border-0", [
|
|
7064
|
+
U.disabled ? "opacity-50 cursor-not-allowed" : "hover:bg-base-neutral-100/30 cursor-pointer",
|
|
7065
|
+
W === i.value ? "bg-neutral-800" : ""
|
|
7066
|
+
]]),
|
|
7067
|
+
onClick: Me((Q) => x(U), ["stop"])
|
|
7068
|
+
}, {
|
|
7069
|
+
default: K(() => [
|
|
7070
|
+
X(m.$slots, "option", {
|
|
7071
|
+
option: U,
|
|
7072
|
+
isActive: k(U)
|
|
7073
|
+
}, () => [
|
|
7074
|
+
ae(z(U.label), 1)
|
|
7075
|
+
], !0),
|
|
7076
|
+
e.multiple && o.value && o.value.includes(U.value) ? (w(), B(He, {
|
|
7077
|
+
key: 0,
|
|
7078
|
+
name: "tick-circle",
|
|
7079
|
+
size: "20",
|
|
7080
|
+
color: "#e65b2a"
|
|
7081
|
+
})) : G("", !0)
|
|
7082
|
+
]),
|
|
7083
|
+
_: 2
|
|
7084
|
+
}, 1032, ["class", "onClick"]))), 128)) : (w(), B(A, {
|
|
7085
|
+
key: 1,
|
|
7086
|
+
class: "p-3 text-base text-neutral-500"
|
|
7087
|
+
}, {
|
|
7088
|
+
default: K(() => [...S[3] || (S[3] = [
|
|
7089
|
+
ae("No results found", -1)
|
|
7090
|
+
])]),
|
|
7091
|
+
_: 1
|
|
7092
|
+
}))
|
|
7093
|
+
];
|
|
7094
|
+
}),
|
|
7095
|
+
_: 3
|
|
7096
|
+
})
|
|
7034
7097
|
], 4)) : G("", !0)
|
|
7035
7098
|
]))
|
|
7036
7099
|
], 544),
|
|
7037
|
-
|
|
7100
|
+
Y(I, { errors: e.errors }, null, 8, ["errors"])
|
|
7038
7101
|
]);
|
|
7039
7102
|
};
|
|
7040
7103
|
}
|
|
7041
|
-
}),
|
|
7104
|
+
}), La = /* @__PURE__ */ ar(ka, [["__scopeId", "data-v-76b6e255"]]), Ta = /* @__PURE__ */ V({
|
|
7042
7105
|
__name: "Dialog",
|
|
7043
|
-
props: /* @__PURE__ */
|
|
7106
|
+
props: /* @__PURE__ */ nr({
|
|
7044
7107
|
classList: {},
|
|
7045
7108
|
persistent: { type: Boolean },
|
|
7046
7109
|
fullscreen: { type: Boolean }
|
|
@@ -7050,38 +7113,122 @@ const da = {
|
|
|
7050
7113
|
}),
|
|
7051
7114
|
emits: ["update:modelValue"],
|
|
7052
7115
|
setup(e) {
|
|
7053
|
-
const
|
|
7116
|
+
const r = se(e, "modelValue"), n = e, o = O(() => {
|
|
7054
7117
|
const c = ["fixed p-5 h-dvh w-screen top-0 flex items-center inset-0 z-[101] overflow-auto bg-black/50 backdrop-blur-sm modal-container *:m-auto"];
|
|
7055
|
-
return
|
|
7118
|
+
return n.fullscreen && c.push("p-0"), ce(...c, n.classList);
|
|
7056
7119
|
}), a = () => {
|
|
7057
|
-
|
|
7120
|
+
n.persistent || (r.value = !1);
|
|
7058
7121
|
};
|
|
7059
|
-
return
|
|
7122
|
+
return er(() => {
|
|
7060
7123
|
document.body.classList.remove("overflow-hidden");
|
|
7061
|
-
}),
|
|
7062
|
-
|
|
7063
|
-
}, { immediate: !0 }), (c, l) => (
|
|
7064
|
-
|
|
7065
|
-
default:
|
|
7066
|
-
|
|
7124
|
+
}), Ie(() => r.value, () => {
|
|
7125
|
+
r.value ? document.body.classList.add("overflow-hidden") : document.body.classList.remove("overflow-hidden");
|
|
7126
|
+
}, { immediate: !0 }), (c, l) => (w(), B(Lr, { to: "body" }, [
|
|
7127
|
+
Y(tn, { name: "fade" }, {
|
|
7128
|
+
default: K(() => [
|
|
7129
|
+
r.value ? (w(), D("div", {
|
|
7067
7130
|
key: 0,
|
|
7068
|
-
class:
|
|
7069
|
-
onClick:
|
|
7131
|
+
class: H(o.value),
|
|
7132
|
+
onClick: Me(a, ["self"])
|
|
7070
7133
|
}, [
|
|
7071
|
-
|
|
7134
|
+
X(c.$slots, "default")
|
|
7072
7135
|
], 2)) : G("", !0)
|
|
7073
7136
|
]),
|
|
7074
7137
|
_: 3
|
|
7075
7138
|
})
|
|
7076
7139
|
]));
|
|
7077
7140
|
}
|
|
7141
|
+
}), Sa = ["innerHTML"], Ba = /* @__PURE__ */ V({
|
|
7142
|
+
__name: "Text",
|
|
7143
|
+
props: {
|
|
7144
|
+
tag: {},
|
|
7145
|
+
size: { default: "16" },
|
|
7146
|
+
weight: { default: "normal" },
|
|
7147
|
+
color: { default: "black" },
|
|
7148
|
+
fontFamily: { default: "poppins" },
|
|
7149
|
+
classList: {},
|
|
7150
|
+
htmlContent: {},
|
|
7151
|
+
capitalize: { type: Boolean },
|
|
7152
|
+
uppercase: { type: Boolean },
|
|
7153
|
+
underline: { type: Boolean },
|
|
7154
|
+
italic: { type: Boolean }
|
|
7155
|
+
},
|
|
7156
|
+
setup(e) {
|
|
7157
|
+
const r = e, n = O(() => {
|
|
7158
|
+
let c = "";
|
|
7159
|
+
return r.capitalize && (c += " capitalize"), r.uppercase && (c += " uppercase"), r.underline && (c += " underline"), r.italic && (c += " italic"), c;
|
|
7160
|
+
}), o = O(() => r.tag ? r.tag : "div"), a = O(() => ce(Qn[r.size], eo[r.weight], ro[r.color], n.value, no[r.fontFamily], r.classList));
|
|
7161
|
+
return (c, l) => (w(), B(qe(o.value), {
|
|
7162
|
+
class: H(a.value)
|
|
7163
|
+
}, {
|
|
7164
|
+
default: K(() => [
|
|
7165
|
+
e.htmlContent ? (w(), D("div", {
|
|
7166
|
+
key: 1,
|
|
7167
|
+
class: "html-content",
|
|
7168
|
+
innerHTML: e.htmlContent
|
|
7169
|
+
}, null, 8, Sa)) : X(c.$slots, "default", { key: 0 })
|
|
7170
|
+
]),
|
|
7171
|
+
_: 3
|
|
7172
|
+
}, 8, ["class"]));
|
|
7173
|
+
}
|
|
7078
7174
|
});
|
|
7175
|
+
function Na() {
|
|
7176
|
+
const e = P(0), r = P(0), n = () => {
|
|
7177
|
+
e.value = window.scrollY || window.pageYOffset, r.value = window.scrollX || window.pageXOffset;
|
|
7178
|
+
};
|
|
7179
|
+
return pe(() => {
|
|
7180
|
+
document.addEventListener("scroll", n), n();
|
|
7181
|
+
}), er(() => document.removeEventListener("scroll", n)), {
|
|
7182
|
+
scrollY: e,
|
|
7183
|
+
scrollX: r
|
|
7184
|
+
};
|
|
7185
|
+
}
|
|
7186
|
+
const Ca = /* @__PURE__ */ V({
|
|
7187
|
+
inheritAttrs: !1,
|
|
7188
|
+
__name: "shadow-button",
|
|
7189
|
+
setup(e) {
|
|
7190
|
+
return (r, n) => (w(), D("button", Le(Te(r.$attrs)), [
|
|
7191
|
+
X(r.$slots, "default")
|
|
7192
|
+
], 16));
|
|
7193
|
+
}
|
|
7194
|
+
}), Aa = /* @__PURE__ */ V({
|
|
7195
|
+
inheritAttrs: !1,
|
|
7196
|
+
__name: "shadow-label",
|
|
7197
|
+
setup(e) {
|
|
7198
|
+
return (r, n) => (w(), D("label", Le(Te(r.$attrs)), [
|
|
7199
|
+
X(r.$slots, "default")
|
|
7200
|
+
], 16));
|
|
7201
|
+
}
|
|
7202
|
+
}), Da = /* @__PURE__ */ V({
|
|
7203
|
+
inheritAttrs: !1,
|
|
7204
|
+
__name: "shadow-li",
|
|
7205
|
+
setup(e) {
|
|
7206
|
+
return (r, n) => (w(), D("li", Le(Te(r.$attrs)), [
|
|
7207
|
+
X(r.$slots, "default")
|
|
7208
|
+
], 16));
|
|
7209
|
+
}
|
|
7210
|
+
}), Ra = /* @__PURE__ */ V({
|
|
7211
|
+
inheritAttrs: !1,
|
|
7212
|
+
__name: "shadow-ul",
|
|
7213
|
+
setup(e) {
|
|
7214
|
+
return (r, n) => (w(), D("ul", Le(Te(r.$attrs)), [
|
|
7215
|
+
X(r.$slots, "default")
|
|
7216
|
+
], 16));
|
|
7217
|
+
}
|
|
7218
|
+
}), Ea = () => {
|
|
7219
|
+
customElements.define("m-button", xe(Ca, { shadowRoot: !0 })), customElements.define("m-label", xe(Aa, { shadowRoot: !0 })), customElements.define("m-li", xe(Da, { shadowRoot: !0 })), customElements.define("m-ul", xe(Ra, { shadowRoot: !0 }));
|
|
7220
|
+
};
|
|
7221
|
+
Ea();
|
|
7079
7222
|
export {
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7223
|
+
Ia as Button,
|
|
7224
|
+
Ta as Dialog,
|
|
7225
|
+
Fa as Error,
|
|
7226
|
+
fa as Icon,
|
|
7227
|
+
He as Iconsax,
|
|
7228
|
+
Pa as Input,
|
|
7229
|
+
La as Select,
|
|
7230
|
+
Ba as Text,
|
|
7231
|
+
Ea as registerElements,
|
|
7232
|
+
lo as useOutsideClick,
|
|
7233
|
+
Na as useWindowScroll
|
|
7087
7234
|
};
|