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