@nexa-stack/framework 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/README.md +15 -3
  2. package/package.json +22 -5
  3. package/packages/server/src/router.ts +36 -12
  4. package/public/assets/blog-CGOdzgkO.js +1 -0
  5. package/public/assets/blog-ML7LFtff.js +1 -0
  6. package/public/assets/components-B_D1ccvJ.js +50 -0
  7. package/public/assets/components-C67m2tNE.js +1 -0
  8. package/public/assets/components-DCNIrNdJ.js +50 -0
  9. package/public/assets/components-DZ9oc9zI.js +1 -0
  10. package/public/assets/contact-CAfovn36.js +1 -0
  11. package/public/assets/contact-bMUqmce3.js +1 -0
  12. package/public/assets/docs-B92Otuxs.js +20 -0
  13. package/public/assets/docs-BGOHuCe3.js +20 -0
  14. package/public/assets/docs-BUkg7Pd2.css +1 -0
  15. package/public/assets/echarts-mount-DdBiYEc1.js +19 -0
  16. package/public/assets/echarts-mount-kJrXh_za.js +19 -0
  17. package/public/assets/echarts-nexa-BsAEVjT0.js +1 -0
  18. package/public/assets/integration-BNpFB3SL.js +1 -0
  19. package/public/assets/integration-Br6tmvWh.js +1 -0
  20. package/public/assets/integration-D7vdPco_.js +1 -0
  21. package/public/assets/main-BBkehs0N.js +1 -0
  22. package/public/assets/main-Cx_-Fq0O.css +1 -0
  23. package/public/assets/main-ny0uOGg1.js +1 -0
  24. package/public/assets/src-B4_Kaae6.css +1 -0
  25. package/public/assets/src-BfdoaLcc.js +1 -0
  26. package/public/assets/src-D__MdyFu.js +1 -0
  27. package/public/cards/README.md +17 -0
  28. package/public/cards/bloom.jpg +0 -0
  29. package/public/favicon.svg +11 -0
  30. package/public/nexa-hero-sculpture-1280.png +0 -0
  31. package/public/nexa-hero-sculpture-640.png +0 -0
  32. package/public/nexa-hero-sculpture-960.png +0 -0
  33. package/public/nexa-hero-sculpture.png +0 -0
  34. package/public/nexa-hero-sculpture.webp +0 -0
  35. package/public/nexa-mark-24.png +0 -0
  36. package/public/nexa-mark-256.png +0 -0
  37. package/public/nexa-mark-32.png +0 -0
  38. package/public/nexa-mark-40.png +0 -0
  39. package/public/nexa-mark-48.png +0 -0
  40. package/public/nexa-mark-512.png +0 -0
  41. package/public/nexa-mark-64.png +0 -0
  42. package/public/nexa-mark-96.png +0 -0
  43. package/public/nexa-mark-apple.png +0 -0
  44. package/public/nexa-mark-product-256.png +0 -0
  45. package/public/nexa-mark-product.png +0 -0
  46. package/public/nexa-mark-source.png +0 -0
  47. package/public/nexa-mark-trim.png +0 -0
  48. package/public/nexa-mark.png +0 -0
  49. package/public/nexa-mark.webp +0 -0
  50. package/public/nexa-palette-vision.png +0 -0
  51. package/public/nexa-wordmark.png +0 -0
  52. package/public/nexa-wordmark.webp +0 -0
  53. package/public/og.png +0 -0
  54. package/public/site/about.html +101 -0
  55. package/public/site/blog.html +87 -0
  56. package/public/site/components.html +251 -0
  57. package/public/site/contact.html +72 -0
  58. package/public/site/docs/buttons.html +157 -0
  59. package/public/site/docs/cards.html +159 -0
  60. package/public/site/docs/colors.html +216 -0
  61. package/public/site/docs/commands.html +170 -0
  62. package/public/site/docs/data.html +122 -0
  63. package/public/site/docs/feedback.html +111 -0
  64. package/public/site/docs/forms.html +117 -0
  65. package/public/site/docs/icons.html +125 -0
  66. package/public/site/docs/index.html +82 -0
  67. package/public/site/docs/installation.html +83 -0
  68. package/public/site/docs/layout.html +116 -0
  69. package/public/site/docs/media.html +96 -0
  70. package/public/site/docs/navigation.html +122 -0
  71. package/public/site/docs/overlays.html +95 -0
  72. package/public/site/docs/pickers.html +126 -0
  73. package/public/site/docs/sections.html +111 -0
  74. package/public/site/docs/typography.html +97 -0
  75. package/public/site/docs/usage.html +76 -0
  76. package/public/site/features.html +107 -0
  77. package/public/site/index.html +117 -0
  78. package/public/site/integration.html +43 -0
  79. package/public/site/pricing.html +87 -0
  80. package/ui/cards/README.md +17 -0
  81. package/ui/cards/bloom.jpg +0 -0
  82. package/ui/echarts-mount-DWNKcqeo.js +22945 -0
  83. package/ui/echarts-nexa-BY8eW9ug.js +456 -0
  84. package/ui/favicon.svg +11 -0
  85. package/ui/nexa-hero-sculpture-1280.png +0 -0
  86. package/ui/nexa-hero-sculpture-640.png +0 -0
  87. package/ui/nexa-hero-sculpture-960.png +0 -0
  88. package/ui/nexa-hero-sculpture.png +0 -0
  89. package/ui/nexa-hero-sculpture.webp +0 -0
  90. package/ui/nexa-mark-24.png +0 -0
  91. package/ui/nexa-mark-256.png +0 -0
  92. package/ui/nexa-mark-32.png +0 -0
  93. package/ui/nexa-mark-40.png +0 -0
  94. package/ui/nexa-mark-48.png +0 -0
  95. package/ui/nexa-mark-512.png +0 -0
  96. package/ui/nexa-mark-64.png +0 -0
  97. package/ui/nexa-mark-96.png +0 -0
  98. package/ui/nexa-mark-apple.png +0 -0
  99. package/ui/nexa-mark-product-256.png +0 -0
  100. package/ui/nexa-mark-product.png +0 -0
  101. package/ui/nexa-mark-source.png +0 -0
  102. package/ui/nexa-mark-trim.png +0 -0
  103. package/ui/nexa-mark.png +0 -0
  104. package/ui/nexa-mark.webp +0 -0
  105. package/ui/nexa-palette-vision.png +0 -0
  106. package/ui/nexa-wordmark.png +0 -0
  107. package/ui/nexa-wordmark.webp +0 -0
  108. package/ui/nexa.css +2 -0
  109. package/ui/nexa.js +2971 -0
  110. package/ui/nexa.umd.js +80 -0
  111. package/ui/og.png +0 -0
  112. package/ui/types/components/art.d.ts +11 -0
  113. package/ui/types/components/card-layouts.d.ts +11 -0
  114. package/ui/types/components/card.d.ts +11 -0
  115. package/ui/types/components/charts.d.ts +7 -0
  116. package/ui/types/components/extra.d.ts +2 -0
  117. package/ui/types/components/helpers.d.ts +18 -0
  118. package/ui/types/components/icons.d.ts +24 -0
  119. package/ui/types/components/index.d.ts +2 -0
  120. package/ui/types/components/pickers.d.ts +8 -0
  121. package/ui/types/components/structure.d.ts +2 -0
  122. package/ui/types/core/behaviors.d.ts +2 -0
  123. package/ui/types/core/brand-assets.d.ts +44 -0
  124. package/ui/types/core/colormap.d.ts +49 -0
  125. package/ui/types/core/echarts-mount.d.ts +5 -0
  126. package/ui/types/core/echarts-nexa.d.ts +71 -0
  127. package/ui/types/core/parser.d.ts +11 -0
  128. package/ui/types/core/registry.d.ts +13 -0
  129. package/ui/types/core/renderer.d.ts +14 -0
  130. package/ui/types/core/schema.d.ts +8 -0
  131. package/ui/types/core/toast.d.ts +11 -0
  132. package/ui/types/core/validate.d.ts +1 -0
  133. package/ui/types/index.d.ts +50 -0
package/ui/nexa.js ADDED
@@ -0,0 +1,2971 @@
1
+ import { a as e, c as t, d as n, f as r, l as i, n as a, o, s, t as c, u as l } from "./echarts-nexa-BY8eW9ug.js";
2
+ //#region resources/ui/src/core/colormap.ts
3
+ var u = [
4
+ "violet",
5
+ "azure",
6
+ "gold",
7
+ "emerald",
8
+ "coral"
9
+ ], d = [
10
+ 50,
11
+ 100,
12
+ 200,
13
+ 300,
14
+ 400,
15
+ 500,
16
+ 600,
17
+ 700,
18
+ 800,
19
+ 900
20
+ ], f = {
21
+ purple: "violet",
22
+ violet: "violet",
23
+ blue: "azure",
24
+ azure: "azure",
25
+ gold: "gold",
26
+ green: "emerald",
27
+ emerald: "emerald",
28
+ orange: "coral",
29
+ coral: "coral"
30
+ }, p = {
31
+ pink: "#ec4899",
32
+ rose: "#f43f5e",
33
+ violet: "#7c5cfc",
34
+ azure: "#3b82f6",
35
+ gold: "#b08d45",
36
+ emerald: "#10b981",
37
+ coral: "#f97316"
38
+ }, m = "nexa-saved-maps";
39
+ function h(e) {
40
+ return e.trim().toLowerCase().replace(/^map:/, "").replace(/\s+/g, "-");
41
+ }
42
+ function g() {
43
+ if (typeof localStorage > "u") return {};
44
+ try {
45
+ let e = localStorage.getItem(m);
46
+ return e ? JSON.parse(e) : {};
47
+ } catch {
48
+ return {};
49
+ }
50
+ }
51
+ function _(e, t) {
52
+ let n = h(e);
53
+ if (!n) throw Error("Map name required");
54
+ let r = C(t);
55
+ if (!r) throw Error("Invalid hex for saved map");
56
+ let i = g();
57
+ return i[n] = r, typeof localStorage < "u" && localStorage.setItem(m, JSON.stringify(i)), r;
58
+ }
59
+ function v(e) {
60
+ let t = h(e), n = g();
61
+ return n[t] ? (delete n[t], typeof localStorage < "u" && localStorage.setItem(m, JSON.stringify(n)), !0) : !1;
62
+ }
63
+ function y() {
64
+ return Object.keys(g()).sort();
65
+ }
66
+ function ee(e) {
67
+ return C(e) || p[e.toLowerCase()] || g()[h(e)] || null;
68
+ }
69
+ var b = d, te = {
70
+ 50: 97,
71
+ 100: 93,
72
+ 200: 87,
73
+ 300: 78,
74
+ 400: 68,
75
+ 500: null,
76
+ 600: 50,
77
+ 700: 42,
78
+ 800: 34,
79
+ 900: 26
80
+ };
81
+ function x(e) {
82
+ e.style.setProperty("--nexa-primary", "var(--nexa-brand-500)"), e.style.setProperty("--nexa-primary-soft", "var(--nexa-brand-100)"), e.style.setProperty("--nexa-primary-muted", "var(--nexa-brand-300)"), e.style.setProperty("--nexa-primary-strong", "var(--nexa-brand-700)"), e.style.setProperty("--nexa-primary-glow", "color-mix(in oklch, var(--nexa-brand-400) 42%, transparent)"), e.style.setProperty("--nexa-accent", "var(--nexa-brand-300)"), e.style.setProperty("--nexa-accent-2", "var(--nexa-brand-200)");
83
+ }
84
+ function S(e) {
85
+ let t = e.find((e) => e.toLowerCase().startsWith("map:"));
86
+ if (t) return ee(t.slice(4));
87
+ if (!e.includes("map")) return null;
88
+ let n = e.find((e) => C(e));
89
+ if (n) return n;
90
+ for (let t of e) {
91
+ if (t === "map") continue;
92
+ let e = ee(t);
93
+ if (e) return e;
94
+ }
95
+ return null;
96
+ }
97
+ function C(e) {
98
+ let t = e.trim().replace(/^#/, "");
99
+ return /^[0-9a-f]{3}$/i.test(t) ? `#${t.split("").map((e) => e + e).join("")}`.toLowerCase() : /^[0-9a-f]{6}$/i.test(t) ? `#${t}`.toLowerCase() : null;
100
+ }
101
+ function ne(e) {
102
+ let t = C(e);
103
+ if (!t) return null;
104
+ let n = Number.parseInt(t.slice(1), 16);
105
+ return {
106
+ r: n >> 16 & 255,
107
+ g: n >> 8 & 255,
108
+ b: n & 255
109
+ };
110
+ }
111
+ function re(e, t, n) {
112
+ let r = (e) => Math.max(0, Math.min(255, Math.round(e)));
113
+ return `#${[
114
+ r(e),
115
+ r(t),
116
+ r(n)
117
+ ].map((e) => e.toString(16).padStart(2, "0")).join("")}`;
118
+ }
119
+ function ie(e, t, n) {
120
+ e /= 255, t /= 255, n /= 255;
121
+ let r = Math.max(e, t, n), i = Math.min(e, t, n), a = 0, o = 0, s = (r + i) / 2;
122
+ if (r !== i) {
123
+ let c = r - i;
124
+ switch (o = s > .5 ? c / (2 - r - i) : c / (r + i), r) {
125
+ case e:
126
+ a = (t - n) / c + (t < n ? 6 : 0);
127
+ break;
128
+ case t:
129
+ a = (n - e) / c + 2;
130
+ break;
131
+ default: a = (e - t) / c + 4;
132
+ }
133
+ a /= 6;
134
+ }
135
+ return {
136
+ h: a * 360,
137
+ s: o * 100,
138
+ l: s * 100
139
+ };
140
+ }
141
+ function ae(e, t, n) {
142
+ t /= 100, n /= 100;
143
+ let r = (1 - Math.abs(2 * n - 1)) * t, i = r * (1 - Math.abs(e / 60 % 2 - 1)), a = n - r / 2, o = 0, s = 0, c = 0;
144
+ return e < 60 ? [o, s, c] = [
145
+ r,
146
+ i,
147
+ 0
148
+ ] : e < 120 ? [o, s, c] = [
149
+ i,
150
+ r,
151
+ 0
152
+ ] : e < 180 ? [o, s, c] = [
153
+ 0,
154
+ r,
155
+ i
156
+ ] : e < 240 ? [o, s, c] = [
157
+ 0,
158
+ i,
159
+ r
160
+ ] : e < 300 ? [o, s, c] = [
161
+ i,
162
+ 0,
163
+ r
164
+ ] : [o, s, c] = [
165
+ r,
166
+ 0,
167
+ i
168
+ ], re((o + a) * 255, (s + a) * 255, (c + a) * 255);
169
+ }
170
+ function oe(e) {
171
+ let t = C(e);
172
+ if (!t) throw Error("Invalid hex color. Use #7c5cfc or 7c5cfc");
173
+ let { r: n, g: r, b: i } = ne(t), { h: a, s: o } = ie(n, r, i), s = {};
174
+ for (let e of b) {
175
+ if (e === 500) {
176
+ s[500] = t;
177
+ continue;
178
+ }
179
+ let n = te[e], r = e < 500 ? (500 - e) * .04 : (e - 500) * .05;
180
+ s[e] = ae(a, Math.max(18, Math.min(100, o - r)), n);
181
+ }
182
+ return s;
183
+ }
184
+ function se(e, t) {
185
+ for (let n of b) e.style.setProperty(`--nexa-brand-${n}`, t[n]);
186
+ return x(e), e.dataset.nexaBrand = t[500], delete e.dataset.nexaMap, delete e.dataset.nexaHue, t;
187
+ }
188
+ function ce(e, t) {
189
+ return se(e, oe(t));
190
+ }
191
+ function le(e, t = ":root") {
192
+ return `${t} {\n${b.map((t) => ` --nexa-brand-${t}: ${e[t]};`).join("\n")}\n --nexa-primary: var(--nexa-brand-500);
193
+ --nexa-primary-soft: var(--nexa-brand-100);
194
+ --nexa-primary-muted: var(--nexa-brand-300);
195
+ --nexa-primary-strong: var(--nexa-brand-700);
196
+ --nexa-primary-glow: color-mix(in oklch, var(--nexa-brand-400) 42%, transparent);
197
+ --nexa-accent: var(--nexa-brand-300);
198
+ --nexa-accent-2: var(--nexa-brand-200);\n}`;
199
+ }
200
+ function ue(e, t) {
201
+ let n = f[t] ?? (u.includes(t) ? t : null);
202
+ if (!n) return !1;
203
+ for (let t of b) e.style.setProperty(`--nexa-brand-${t}`, `var(--nexa-hue-${n}-${t})`);
204
+ return x(e), e.dataset.nexaMap = n, delete e.dataset.nexaBrand, !0;
205
+ }
206
+ function de(e, t, n = .22) {
207
+ let r = (t % 360 + 360) % 360, i = {
208
+ 50: [.97, .03],
209
+ 100: [.93, .05],
210
+ 200: [.87, .09],
211
+ 300: [.78, .14],
212
+ 400: [.68, .18],
213
+ 500: [.58, n],
214
+ 600: [.5, n],
215
+ 700: [.42, Math.min(n, .2)],
216
+ 800: [.34, .12],
217
+ 900: [.26, .08]
218
+ };
219
+ for (let t of b) {
220
+ let [n, a] = i[t];
221
+ e.style.setProperty(`--nexa-brand-${t}`, `oklch(${n} ${a} ${r})`);
222
+ }
223
+ return x(e), e.dataset.nexaHue = String(Math.round(r)), delete e.dataset.nexaMap, delete e.dataset.nexaBrand, !0;
224
+ }
225
+ //#endregion
226
+ //#region resources/ui/src/core/parser.ts
227
+ var fe = {
228
+ btn: "button",
229
+ buttons: "button",
230
+ ico: "ico",
231
+ c: "card",
232
+ card: "card",
233
+ hdr: "header",
234
+ foot: "footer",
235
+ feat: "features",
236
+ price: "pricing",
237
+ quote: "testimonials",
238
+ testimonial: "testimonials",
239
+ banner: "cta",
240
+ post: "posts",
241
+ posts: "posts",
242
+ tbl: "table",
243
+ stats: "stat",
244
+ "btn-group": "button-group",
245
+ igroup: "input-group",
246
+ placeholder: "skeleton",
247
+ graphs: "chart",
248
+ drop: "dropdown",
249
+ menu: "dropdown",
250
+ dd: "dropdown",
251
+ date: "datepicker",
252
+ dp: "datepicker",
253
+ time: "timepicker",
254
+ tp: "timepicker",
255
+ stars: "rating",
256
+ steps: "stepper",
257
+ ac: "autocomplete",
258
+ combo: "autocomplete",
259
+ combobox: "autocomplete",
260
+ sheet: "sheet",
261
+ bottomsheet: "sheet",
262
+ bs: "sheet",
263
+ tl: "timeline",
264
+ xfer: "transfer"
265
+ }, pe = {
266
+ s: ["shadow"],
267
+ "s-soft": ["shadow", "soft"],
268
+ "s-strong": ["shadow", "strong"],
269
+ g: ["glass"],
270
+ r: ["round"],
271
+ p: ["pill"],
272
+ sm: ["small", "compact"],
273
+ lg: ["large", "tall"],
274
+ prod: ["product"],
275
+ kit: ["product"],
276
+ plan: ["pricing"],
277
+ user: ["profile"],
278
+ stat: ["analytics"],
279
+ vid: ["video"],
280
+ evt: ["event"],
281
+ css: ["css"],
282
+ e: ["end"]
283
+ }, me = new Set(/* @__PURE__ */ "primary.secondary.outline.ghost.danger.small.medium.large.block.disabled.loading.elevated.plain.bordered.glass.horizontal.square.interactive.media.icon.metric.profile.cover.product.video.event.promo.pricing.analytics.quote.tasks.feature.text.email.password.number.date.file.search.tel.url.color.range.checkbox.radio.hidden.required.readonly.error.success.checked.cols-1.cols-2.cols-3.cols-4.cols-6.auto-fit.masonry.gap-none.gap-small.gap-medium.gap-large.landscape.simple.centered.split.mega.transparent.static.sticky.fixed.float.bar.dock.overlay.light.dark.image-left.image-right.minimal.fullscreen.cards-1.cards-2.cards-3.cards-4.popular.featured.bold.narrow.modern.luxury.minimal.blue.purple.gold.green.orange.black.violet.azure.emerald.coral.light.ivory.round.rounded.pill.shadow.soft.sharp.strong.sm.md.lg.xl.compact.tall.s.s-soft.s-strong.g.r.p.fill.filled.solid.thin.outline.light.fat.full.regular.saas.theme.page.map.auth.portfolio.dashboard.store.blog.checkout.essential.brand.vision.alert.modal.tabs.accordion.dropdown.spinner.progress.toast.compact.male.user.end.e.drop.menu.dd.breadcrumb.pagination.divider.avatar.warning.danger.info.open.carousel.offcanvas.popover.tooltip.list.ordered.fade.slide.zoom.bounce.float.glow.lift.tilt.flip.magnetic.shine.aurora.reveal.pulse.soft.static.prod.kit.plan.user.vid.evt.css.posts.checkout.table.collapse.stat.nav.button-group.list-group.navbar.input-group.close.switch.scrollspy.skeleton.figure.chart.bar.line.area.donut.pie.spark.sparkline.css.pro.vertical.flush.checked.float.lines-1.lines-2.lines-3.lines-4.lines-5.ratio-1x1.ratio-4x3.ratio-16x9.ratio-21x9.datepicker.timepicker.date.dp.time.tp.chip.chips.rating.stars.stepper.steps.fab.autocomplete.ac.combo.combobox.striped.hover.sheet.bottomsheet.bs.autoplay.auto.validate.tree.timeline.tl.transfer.xfer.pills.segmented.removable.x.extended.bottom-start.readonly.static".split("."));
284
+ function he(e) {
285
+ return fe[e] ?? e;
286
+ }
287
+ function ge(e) {
288
+ let t = [];
289
+ for (let n of e) {
290
+ let e = pe[n];
291
+ e ? t.push(...e) : t.push(n);
292
+ }
293
+ return [...new Set(t)];
294
+ }
295
+ function w(e) {
296
+ let t = e.trim();
297
+ if (!t) throw Error("Nexa command is empty");
298
+ let n = t.match(/[^\s"'=]+=(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*')|"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\S+/g) ?? [], r = he((n[0] ?? "").toLowerCase()), i = [], a = {}, o = [], s = !1;
299
+ for (let e of n.slice(1)) {
300
+ let t = e.match(/^([a-z][\w:-]*)=(.*)$/i);
301
+ if (t) {
302
+ let e = t[2].replace(/^(?:"([\s\S]*)"|'([\s\S]*)')$/, "$1$2").replace(/\\([\\"'])/g, "$1");
303
+ a[t[1].toLowerCase()] = e;
304
+ continue;
305
+ }
306
+ let n = e.toLowerCase(), r = C(e);
307
+ if (s) {
308
+ i.push(r ?? n), s = !1;
309
+ continue;
310
+ }
311
+ if (n === "map" || e.startsWith("map:")) {
312
+ i.push(r ?? n), s = n === "map";
313
+ continue;
314
+ }
315
+ if (!o.length && (me.has(n) || r)) {
316
+ i.push(r ?? n);
317
+ continue;
318
+ }
319
+ o.push(e.replace(/^(?:"([\s\S]*)"|'([\s\S]*)')$/, "$1$2"));
320
+ }
321
+ return {
322
+ component: r,
323
+ modifiers: ge(i),
324
+ attributes: a,
325
+ raw: t,
326
+ label: o.length ? o.join(" ") : void 0
327
+ };
328
+ }
329
+ function _e(e) {
330
+ return e.split(/\r?\n/).map((e) => e.trim()).filter((e) => e && !e.startsWith("#")).map(w);
331
+ }
332
+ //#endregion
333
+ //#region resources/ui/src/core/schema.ts
334
+ var ve = {
335
+ header: {
336
+ variants: [
337
+ "simple",
338
+ "vision",
339
+ "float",
340
+ "bar",
341
+ "dock",
342
+ "mega",
343
+ "glass",
344
+ "transparent",
345
+ "overlay"
346
+ ],
347
+ states: [
348
+ "static",
349
+ "sticky",
350
+ "fixed",
351
+ "light",
352
+ "dark",
353
+ "s",
354
+ "g",
355
+ "shadow",
356
+ "soft",
357
+ "strong",
358
+ "sm",
359
+ "lg",
360
+ "compact",
361
+ "tall"
362
+ ]
363
+ },
364
+ hero: {
365
+ variants: [
366
+ "centered",
367
+ "split",
368
+ "image-left",
369
+ "image-right",
370
+ "minimal",
371
+ "vision"
372
+ ],
373
+ sizes: [
374
+ "small",
375
+ "medium",
376
+ "large",
377
+ "fullscreen"
378
+ ]
379
+ },
380
+ badge: {
381
+ variants: [
382
+ "primary",
383
+ "secondary",
384
+ "outline",
385
+ "ghost",
386
+ "danger"
387
+ ],
388
+ states: [
389
+ "soft",
390
+ "pill",
391
+ "dot"
392
+ ]
393
+ },
394
+ chips: {},
395
+ input: {
396
+ variants: [
397
+ "text",
398
+ "email",
399
+ "password",
400
+ "number",
401
+ "search",
402
+ "tel",
403
+ "url",
404
+ "date"
405
+ ],
406
+ states: [
407
+ "required",
408
+ "disabled",
409
+ "readonly",
410
+ "error",
411
+ "success",
412
+ "float"
413
+ ]
414
+ },
415
+ grid: {
416
+ layout: [
417
+ "cols-1",
418
+ "cols-2",
419
+ "cols-3",
420
+ "cols-4",
421
+ "cols-6",
422
+ "auto-fit",
423
+ "masonry"
424
+ ],
425
+ variants: ["square", "landscape"],
426
+ sizes: [
427
+ "gap-none",
428
+ "gap-small",
429
+ "gap-medium",
430
+ "gap-large"
431
+ ]
432
+ },
433
+ stack: { sizes: [
434
+ "gap-none",
435
+ "gap-small",
436
+ "gap-medium",
437
+ "gap-large"
438
+ ] },
439
+ container: { variants: ["narrow"] },
440
+ form: { states: ["validate"] },
441
+ card: {
442
+ variants: [
443
+ "plain",
444
+ "bordered",
445
+ "elevated",
446
+ "glass",
447
+ "horizontal",
448
+ "square",
449
+ "interactive",
450
+ "media",
451
+ "icon",
452
+ "metric",
453
+ "profile",
454
+ "cover",
455
+ "product",
456
+ "video",
457
+ "event",
458
+ "promo",
459
+ "pricing",
460
+ "analytics",
461
+ "quote",
462
+ "tasks",
463
+ "feature"
464
+ ],
465
+ states: [
466
+ "soft",
467
+ "fade",
468
+ "slide",
469
+ "zoom",
470
+ "bounce",
471
+ "float",
472
+ "glow",
473
+ "lift",
474
+ "tilt",
475
+ "flip",
476
+ "magnetic",
477
+ "shine",
478
+ "aurora",
479
+ "reveal",
480
+ "pulse",
481
+ "static"
482
+ ]
483
+ },
484
+ field: {
485
+ variants: [
486
+ "text",
487
+ "email",
488
+ "password",
489
+ "number",
490
+ "date",
491
+ "file",
492
+ "search",
493
+ "tel",
494
+ "url",
495
+ "color",
496
+ "range",
497
+ "checkbox",
498
+ "radio",
499
+ "hidden"
500
+ ],
501
+ states: [
502
+ "required",
503
+ "disabled",
504
+ "readonly",
505
+ "error",
506
+ "success",
507
+ "float",
508
+ "checked"
509
+ ],
510
+ sizes: [
511
+ "small",
512
+ "medium",
513
+ "large"
514
+ ]
515
+ },
516
+ button: {
517
+ variants: [
518
+ "primary",
519
+ "secondary",
520
+ "outline",
521
+ "ghost",
522
+ "danger",
523
+ "blue",
524
+ "purple",
525
+ "gold",
526
+ "green",
527
+ "orange",
528
+ "black",
529
+ "glass"
530
+ ],
531
+ sizes: [
532
+ "small",
533
+ "medium",
534
+ "large",
535
+ "compact",
536
+ "sm"
537
+ ],
538
+ states: [
539
+ "block",
540
+ "disabled",
541
+ "loading",
542
+ "round",
543
+ "rounded",
544
+ "pill",
545
+ "sharp",
546
+ "shadow",
547
+ "soft",
548
+ "strong",
549
+ "s",
550
+ "g"
551
+ ]
552
+ },
553
+ footer: {
554
+ variants: [
555
+ "dark",
556
+ "mega",
557
+ "simple"
558
+ ],
559
+ states: ["light"]
560
+ },
561
+ cta: { variants: ["bold"] },
562
+ testimonials: { variants: ["featured"] },
563
+ features: { variants: [
564
+ "cards-1",
565
+ "cards-2",
566
+ "cards-3",
567
+ "cards-4"
568
+ ] },
569
+ logos: {
570
+ variants: [
571
+ "dark",
572
+ "light",
573
+ "mono"
574
+ ],
575
+ states: ["bordered", "muted"]
576
+ },
577
+ alert: { variants: [
578
+ "success",
579
+ "warning",
580
+ "danger",
581
+ "info"
582
+ ] },
583
+ modal: { states: ["open"] },
584
+ tabs: { variants: ["pills", "segmented"] },
585
+ accordion: {},
586
+ dropdown: {
587
+ variants: ["primary", "ghost"],
588
+ states: ["open", "end"]
589
+ },
590
+ spinner: { sizes: [
591
+ "small",
592
+ "large",
593
+ "sm",
594
+ "lg"
595
+ ] },
596
+ progress: {},
597
+ toast: { variants: [
598
+ "success",
599
+ "warning",
600
+ "danger",
601
+ "info"
602
+ ] },
603
+ breadcrumb: {},
604
+ pagination: {},
605
+ divider: {},
606
+ avatar: {
607
+ sizes: [
608
+ "small",
609
+ "large",
610
+ "sm",
611
+ "lg"
612
+ ],
613
+ variants: ["male", "user"]
614
+ },
615
+ auth: { states: ["compact"] },
616
+ carousel: { states: ["autoplay", "auto"] },
617
+ sheet: { states: ["open"] },
618
+ offcanvas: {
619
+ variants: ["left", "right"],
620
+ states: ["open"]
621
+ },
622
+ popover: { states: ["open"] },
623
+ tooltip: {},
624
+ list: { variants: ["ordered"] },
625
+ posts: {
626
+ variants: [
627
+ "cards-1",
628
+ "cards-2",
629
+ "cards-3",
630
+ "cards-4"
631
+ ],
632
+ states: ["compact"]
633
+ },
634
+ checkout: { states: ["compact"] },
635
+ table: {
636
+ variants: ["striped", "hover"],
637
+ states: ["compact"]
638
+ },
639
+ collapse: {},
640
+ stat: {},
641
+ nav: {},
642
+ "button-group": {
643
+ variants: [
644
+ "primary",
645
+ "secondary",
646
+ "outline",
647
+ "ghost",
648
+ "danger"
649
+ ],
650
+ states: ["vertical"]
651
+ },
652
+ "list-group": { states: ["flush"] },
653
+ navbar: { variants: [
654
+ "fixed",
655
+ "dark",
656
+ "light"
657
+ ] },
658
+ "input-group": { variants: [
659
+ "text",
660
+ "email",
661
+ "password",
662
+ "search",
663
+ "tel",
664
+ "url",
665
+ "number"
666
+ ] },
667
+ close: {},
668
+ switch: { states: ["checked", "disabled"] },
669
+ scrollspy: {},
670
+ skeleton: {
671
+ variants: ["card", "avatar"],
672
+ layout: [
673
+ "lines-1",
674
+ "lines-2",
675
+ "lines-3",
676
+ "lines-4",
677
+ "lines-5"
678
+ ]
679
+ },
680
+ figure: { layout: [
681
+ "ratio-1x1",
682
+ "ratio-4x3",
683
+ "ratio-16x9",
684
+ "ratio-21x9"
685
+ ] },
686
+ chart: {
687
+ variants: [
688
+ "bar",
689
+ "line",
690
+ "area",
691
+ "donut",
692
+ "pie",
693
+ "spark",
694
+ "sparkline",
695
+ "css",
696
+ "pro"
697
+ ],
698
+ states: ["static"]
699
+ },
700
+ ico: {
701
+ sizes: [
702
+ "sm",
703
+ "md",
704
+ "lg",
705
+ "xl",
706
+ "small",
707
+ "medium",
708
+ "large",
709
+ "compact",
710
+ "tall"
711
+ ],
712
+ variants: [
713
+ "regular",
714
+ "bold",
715
+ "thin",
716
+ "fill",
717
+ "filled",
718
+ "solid",
719
+ "outline",
720
+ "light",
721
+ "fat",
722
+ "full"
723
+ ]
724
+ },
725
+ select: { states: [
726
+ "required",
727
+ "disabled",
728
+ "float"
729
+ ] },
730
+ textarea: { states: [
731
+ "required",
732
+ "disabled",
733
+ "float"
734
+ ] },
735
+ datepicker: { states: ["required", "disabled"] },
736
+ timepicker: { states: ["required", "disabled"] },
737
+ chip: {
738
+ variants: ["outline"],
739
+ states: [
740
+ "active",
741
+ "removable",
742
+ "x"
743
+ ]
744
+ },
745
+ rating: { states: ["readonly", "static"] },
746
+ stepper: {},
747
+ fab: {
748
+ variants: ["extended"],
749
+ states: ["bottom-start"]
750
+ },
751
+ autocomplete: { states: ["required", "disabled"] },
752
+ tree: {},
753
+ timeline: { states: ["compact"] },
754
+ transfer: {}
755
+ };
756
+ function ye(e) {
757
+ return ve[e];
758
+ }
759
+ //#endregion
760
+ //#region resources/ui/src/core/validate.ts
761
+ var be = new Set(/* @__PURE__ */ "modern.luxury.minimal.blue.purple.gold.green.orange.black.violet.azure.emerald.coral.light.ivory.brand.glass.shadow.soft.strong.round.rounded.pill.sharp.compact.tall.s.g.r.p.s-soft.s-strong.sm.lg.map.font-inter.font-geist.font-dm.font-system".split("."));
762
+ function xe(e) {
763
+ return new Set([
764
+ ...e.variants ?? [],
765
+ ...e.sizes ?? [],
766
+ ...e.states ?? [],
767
+ ...e.layout ?? []
768
+ ]);
769
+ }
770
+ function Se(e, t) {
771
+ if (!t.length || e === "ico") return null;
772
+ let n = ye(e);
773
+ if (!n) {
774
+ let n = t.filter((e) => !be.has(e));
775
+ return n.length ? `Unknown modifiers for “${e}”: ${n.join(", ")}` : null;
776
+ }
777
+ let r = xe(n), i = t.filter((e) => !r.has(e) && !be.has(e));
778
+ return i.length ? `Unknown modifiers for “${e}”: ${i.join(", ")}. Allowed: ${[...r].slice(0, 12).join(", ")}${r.size > 12 ? "…" : ""}` : null;
779
+ }
780
+ //#endregion
781
+ //#region resources/ui/src/core/behaviors.ts
782
+ function Ce(e = document) {
783
+ e.querySelectorAll("[data-nexa-tabs]").forEach((e) => {
784
+ let t = [...e.querySelectorAll("[data-tab]")], n = [...e.querySelectorAll("[data-panel]")];
785
+ t.forEach((e, r) => {
786
+ e.onclick = () => {
787
+ t.forEach((e) => e.classList.remove("is-active")), n.forEach((e) => e.hidden = !0), e.classList.add("is-active"), n[r] && (n[r].hidden = !1);
788
+ };
789
+ }), t[0]?.click();
790
+ }), e.querySelectorAll("[data-nexa-accordion]").forEach((e) => {
791
+ e.querySelectorAll("[data-acc-trigger]").forEach((e) => {
792
+ e.onclick = () => {
793
+ let t = e.closest("[data-acc-item]")?.classList.toggle("is-open");
794
+ e.setAttribute("aria-expanded", t ? "true" : "false");
795
+ };
796
+ });
797
+ }), e.querySelectorAll("[data-nexa-dropdown]").forEach((e) => {
798
+ if (e.dataset.nexaDropWired === "1") return;
799
+ e.dataset.nexaDropWired = "1";
800
+ let t = e.querySelector("[data-drop-toggle]"), n = e.querySelector("[data-drop-menu]");
801
+ !t || !n || t.addEventListener("click", (n) => {
802
+ n.stopPropagation();
803
+ let r = !e.classList.contains("is-open");
804
+ document.querySelectorAll("[data-nexa-dropdown].is-open").forEach((t) => {
805
+ t !== e && (t.classList.remove("is-open"), t.querySelector("[data-drop-toggle]")?.setAttribute("aria-expanded", "false"));
806
+ }), e.classList.toggle("is-open", r), t.setAttribute("aria-expanded", r ? "true" : "false");
807
+ });
808
+ }), document.__nexaDropDoc || (document.__nexaDropDoc = !0, document.addEventListener("click", () => {
809
+ document.querySelectorAll("[data-nexa-dropdown].is-open").forEach((e) => {
810
+ e.classList.remove("is-open"), e.querySelector("[data-drop-toggle]")?.setAttribute("aria-expanded", "false");
811
+ });
812
+ })), e.querySelectorAll("[data-nexa-modal]").forEach((e) => {
813
+ e.querySelectorAll("[data-modal-close]").forEach((t) => {
814
+ t.addEventListener("click", () => e.classList.remove("is-open"));
815
+ });
816
+ }), e.querySelectorAll("[data-nexa-toast]").forEach((e) => {
817
+ e.querySelector("[data-toast-close]")?.addEventListener("click", () => e.remove());
818
+ }), e.querySelectorAll("[data-modal-open]").forEach((e) => {
819
+ e.addEventListener("click", () => {
820
+ let t = e.getAttribute("data-modal-open");
821
+ (t ? document.getElementById(t) : document.querySelector("[data-nexa-modal]"))?.classList.add("is-open");
822
+ });
823
+ }), e.querySelectorAll("[data-nexa-carousel]").forEach((e) => {
824
+ if (e.dataset.nexaCarouselWired === "1") return;
825
+ e.dataset.nexaCarouselWired = "1";
826
+ let t = e.closest(".nexa-host.nexa-carousel") ?? e, n = [...e.querySelectorAll("[data-slide]")], r = [...e.querySelectorAll("[data-carousel-dot]")], i = 0, a = 0, o = (e) => {
827
+ n.length && (i = (e + n.length) % n.length, n.forEach((e, t) => {
828
+ e.hidden = t !== i;
829
+ }), r.forEach((e, t) => e.classList.toggle("is-active", t === i)));
830
+ }, s = () => {
831
+ a &&= (window.clearInterval(a), 0);
832
+ }, c = () => {
833
+ if (s(), !t.hasAttribute("data-autoplay") && !e.closest("[data-autoplay]")) return;
834
+ let n = Number(t.getAttribute("data-interval") ?? t.getAttribute("interval") ?? "4000") || 4e3;
835
+ a = window.setInterval(() => o(i + 1), n);
836
+ };
837
+ e.querySelector("[data-carousel-prev]")?.addEventListener("click", () => {
838
+ o(i - 1), c();
839
+ }), e.querySelector("[data-carousel-next]")?.addEventListener("click", () => {
840
+ o(i + 1), c();
841
+ }), r.forEach((e) => {
842
+ e.addEventListener("click", () => {
843
+ o(Number(e.getAttribute("data-carousel-dot") || 0)), c();
844
+ });
845
+ }), e.addEventListener("mouseenter", s), e.addEventListener("mouseleave", c), c();
846
+ }), e.querySelectorAll("[data-nexa-sheet]").forEach((e) => {
847
+ e.dataset.nexaSheetWired !== "1" && (e.dataset.nexaSheetWired = "1", e.querySelectorAll("[data-sheet-close]").forEach((t) => {
848
+ t.addEventListener("click", () => e.classList.remove("is-open"));
849
+ }));
850
+ }), e.querySelectorAll("[data-sheet-open]").forEach((e) => {
851
+ e.dataset.nexaSheetOpenWired !== "1" && (e.dataset.nexaSheetOpenWired = "1", e.addEventListener("click", () => {
852
+ let t = e.getAttribute("data-sheet-open");
853
+ (t ? document.getElementById(t) : document.querySelector("[data-nexa-sheet]"))?.classList.add("is-open");
854
+ }));
855
+ }), e.querySelectorAll("[data-nexa-form=\"validate\"]").forEach((e) => {
856
+ if (e.dataset.nexaFormWired === "1") return;
857
+ e.dataset.nexaFormWired = "1";
858
+ let t = e.tagName.toLowerCase() === "form" ? e : null, n = (t) => {
859
+ t.preventDefault();
860
+ let n = !0;
861
+ e.querySelectorAll(".nexa-field-wrap, .nexa-field-float").forEach((e) => {
862
+ let t = e.querySelector("input,textarea,select");
863
+ if (!t || t.type === "hidden" || t.disabled) return;
864
+ let r = t.required || t.hasAttribute("required"), i = !String(t.value ?? "").trim(), a = r && i;
865
+ !a && t.type === "email" && t.value && (a = !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.value)), e.classList.toggle("is-error", a), e.classList.toggle("is-success", !a && !!t.value);
866
+ let o = e.querySelector("em");
867
+ if (a) if (n = !1, o) o.textContent = t.type === "email" && t.value ? "بريد غير صالح" : "هذا الحقل مطلوب";
868
+ else {
869
+ let n = document.createElement("em");
870
+ n.textContent = t.type === "email" && t.value ? "بريد غير صالح" : "هذا الحقل مطلوب", e.appendChild(n);
871
+ }
872
+ else o && (o.textContent === "هذا الحقل مطلوب" || o.textContent === "بريد غير صالح") && o.remove();
873
+ }), n ? (e.dispatchEvent(new CustomEvent("nexa:valid", { bubbles: !0 })), e.classList.add("is-valid")) : (e.classList.remove("is-valid"), e.dispatchEvent(new CustomEvent("nexa:invalid", { bubbles: !0 })));
874
+ };
875
+ t ? t.addEventListener("submit", n) : e.querySelector("[type=\"submit\"], [data-form-submit]")?.addEventListener("click", n);
876
+ }), e.querySelectorAll("[data-nexa-offcanvas]").forEach((e) => {
877
+ e.querySelectorAll("[data-offcanvas-close]").forEach((t) => {
878
+ t.addEventListener("click", () => e.classList.remove("is-open"));
879
+ });
880
+ }), e.querySelectorAll("[data-offcanvas-open]").forEach((e) => {
881
+ e.addEventListener("click", () => {
882
+ let t = e.getAttribute("data-offcanvas-open");
883
+ (t ? document.getElementById(t) : document.querySelector("[data-nexa-offcanvas]"))?.classList.add("is-open");
884
+ });
885
+ }), e.querySelectorAll("[data-nexa-popover]").forEach((e) => {
886
+ let t = e.querySelector("[data-pop-trigger]"), n = e.querySelector("[data-pop-card]");
887
+ !t || !n || (t.onclick = (e) => {
888
+ e.stopPropagation();
889
+ let t = n.hidden;
890
+ document.querySelectorAll("[data-pop-card]").forEach((e) => {
891
+ e.hidden = !0;
892
+ }), n.hidden = !t;
893
+ });
894
+ }), document.addEventListener("click", () => {
895
+ document.querySelectorAll("[data-pop-card]").forEach((e) => {
896
+ e.hidden = !0;
897
+ });
898
+ }), e.querySelectorAll("[data-nexa-collapse]").forEach((e) => {
899
+ let t = e.querySelector("[data-collapse-trigger]"), n = e.querySelector("[data-collapse-panel]");
900
+ !t || !n || (t.onclick = () => {
901
+ let r = n.hidden;
902
+ n.hidden = !r, t.setAttribute("aria-expanded", r ? "true" : "false"), e.classList.toggle("is-open", r);
903
+ });
904
+ }), e.querySelectorAll(".nexa-host.nexa-card[class*=\"nexa-anim-\"]").forEach((e) => {
905
+ let t = e.classList.contains("nexa-anim-reveal"), n = () => {
906
+ t || e.classList.add("nexa-enter-done");
907
+ };
908
+ e.addEventListener("animationend", (r) => {
909
+ r.target !== e || t || String(r.animationName).startsWith("nexa-enter-") && n();
910
+ }), e.addEventListener("mouseenter", () => e.classList.add("is-active")), e.addEventListener("mouseleave", () => e.classList.remove("is-active")), t || window.setTimeout(n, 900);
911
+ }), e.querySelectorAll("[data-nexa-reveal]").forEach((e) => {
912
+ if (typeof IntersectionObserver > "u") {
913
+ e.classList.add("is-visible");
914
+ return;
915
+ }
916
+ let t = new IntersectionObserver((e) => {
917
+ e.forEach((e) => {
918
+ e.isIntersecting && (e.target.classList.add("is-visible"), t.unobserve(e.target));
919
+ });
920
+ }, {
921
+ threshold: .08,
922
+ rootMargin: "0px 0px -5% 0px"
923
+ });
924
+ t.observe(e);
925
+ }), e.querySelectorAll("[data-nexa-tilt]").forEach((e) => {
926
+ e.addEventListener("mousemove", (t) => {
927
+ let n = e.getBoundingClientRect(), r = (t.clientX - n.left) / n.width - .5, i = (t.clientY - n.top) / n.height - .5;
928
+ e.style.setProperty("--nexa-tilt-x", `${r * 14 * 2}deg`), e.style.setProperty("--nexa-tilt-y", `${-i * 14 * 2}deg`), e.classList.add("is-active");
929
+ }), e.addEventListener("mouseleave", () => {
930
+ e.style.setProperty("--nexa-tilt-x", "0deg"), e.style.setProperty("--nexa-tilt-y", "0deg"), e.classList.remove("is-active");
931
+ });
932
+ }), e.querySelectorAll("[data-nexa-magnetic]").forEach((e) => {
933
+ e.addEventListener("mousemove", (t) => {
934
+ let n = e.getBoundingClientRect(), r = (t.clientX - n.left) / n.width - .5, i = (t.clientY - n.top) / n.height - .5;
935
+ e.style.setProperty("--nexa-mag-x", `${r * 16}px`), e.style.setProperty("--nexa-mag-y", `${i * 16 - 6}px`), e.classList.add("is-active");
936
+ }), e.addEventListener("mouseleave", () => {
937
+ e.style.setProperty("--nexa-mag-x", "0px"), e.style.setProperty("--nexa-mag-y", "0px"), e.classList.remove("is-active");
938
+ });
939
+ }), e.querySelectorAll("[data-nexa-navbar]").forEach((e) => {
940
+ e.querySelector("[data-nav-toggle]")?.addEventListener("click", () => e.classList.toggle("is-open"));
941
+ }), e.querySelectorAll("[data-nexa-tasks]").forEach((e) => {
942
+ e.querySelectorAll("input[type=checkbox]").forEach((e) => {
943
+ e.addEventListener("change", () => {
944
+ e.closest("li")?.classList.toggle("is-done", e.checked);
945
+ });
946
+ });
947
+ }), e.querySelectorAll("[data-nexa-header-scroll]").forEach((e) => {
948
+ if (e.dataset.nexaHeaderScrollWired) return;
949
+ e.dataset.nexaHeaderScrollWired = "1";
950
+ let t = Number(e.getAttribute("data-scroll-threshold") ?? e.getAttribute("data-overlay-threshold") ?? "24"), n = () => e.classList.toggle("is-scrolled", window.scrollY > t);
951
+ n(), window.addEventListener("scroll", n, { passive: !0 });
952
+ }), e.querySelectorAll("[data-nexa-scrollspy]").forEach((e) => {
953
+ let t = [...e.querySelectorAll("[data-spy-link]")], n = t.map((e) => document.querySelector(e.getAttribute("href") ?? "")).filter(Boolean);
954
+ if (!n.length) return;
955
+ if (typeof IntersectionObserver > "u") {
956
+ t[0]?.classList.add("is-active");
957
+ return;
958
+ }
959
+ let r = new IntersectionObserver((e) => {
960
+ e.forEach((e) => {
961
+ if (!e.isIntersecting) return;
962
+ let n = `#${e.target.id}`;
963
+ t.forEach((e) => e.classList.toggle("is-active", e.getAttribute("href") === n));
964
+ });
965
+ }, {
966
+ rootMargin: "-45% 0px -50% 0px",
967
+ threshold: 0
968
+ });
969
+ n.forEach((e) => r.observe(e));
970
+ }), document.querySelectorAll("[data-nexa-close]").forEach((e) => {
971
+ e.addEventListener("click", () => {
972
+ (e.closest(".nexa-host") ?? e.closest("[role=\"alert\"]") ?? e.parentElement)?.remove();
973
+ });
974
+ }), De(e), Oe(e), ke(e), Ae(e), Ee(e), we(e), Te(e);
975
+ }
976
+ function we(e) {
977
+ e.querySelectorAll("[data-nexa-tree]").forEach((e) => {
978
+ e.dataset.nexaTreeWired !== "1" && (e.dataset.nexaTreeWired = "1", e.querySelectorAll("[data-tree-toggle]").forEach((e) => {
979
+ e.addEventListener("click", () => {
980
+ let t = e.closest("[data-tree-node]"), n = t?.querySelector(":scope > [data-tree-children]");
981
+ if (!n) return;
982
+ let r = e.getAttribute("aria-expanded") !== "true";
983
+ e.setAttribute("aria-expanded", r ? "true" : "false"), n.hidden = !r, t?.classList.toggle("is-collapsed", !r);
984
+ });
985
+ }));
986
+ });
987
+ }
988
+ function Te(e) {
989
+ e.querySelectorAll("[data-nexa-transfer]").forEach((e) => {
990
+ if (e.dataset.nexaTransferWired === "1") return;
991
+ e.dataset.nexaTransferWired = "1";
992
+ let t = e.querySelector("[data-transfer-left]"), n = e.querySelector("[data-transfer-right]");
993
+ if (!t || !n) return;
994
+ let r = () => [...e.querySelectorAll(".nexa-transfer-opt.is-selected")], i = (e) => {
995
+ e.querySelector("[data-transfer-opt]") ? e.querySelector(".nexa-transfer-empty")?.remove() : e.innerHTML = "<span class=\"nexa-transfer-empty\">Empty</span>";
996
+ }, a = (a) => {
997
+ let o = r();
998
+ if (!o.length) return;
999
+ o.forEach((e) => {
1000
+ e.classList.remove("is-selected"), e.dataset.side = a === n ? "right" : "left", a.appendChild(e);
1001
+ }), i(t), i(n);
1002
+ let s = [...n.querySelectorAll("[data-transfer-opt]")].map((e) => e.dataset.value ?? "");
1003
+ e.dispatchEvent(new CustomEvent("nexa:change", {
1004
+ detail: { value: s },
1005
+ bubbles: !0
1006
+ }));
1007
+ };
1008
+ e.addEventListener("click", (e) => {
1009
+ let r = e.target, i = r?.closest("[data-transfer-opt]");
1010
+ if (i) {
1011
+ i.classList.toggle("is-selected");
1012
+ return;
1013
+ }
1014
+ r?.closest("[data-transfer-to-right]") && a(n), r?.closest("[data-transfer-to-left]") && a(t);
1015
+ });
1016
+ });
1017
+ }
1018
+ function T(e) {
1019
+ return String(e).padStart(2, "0");
1020
+ }
1021
+ function Ee(e) {
1022
+ e.querySelectorAll("[data-nexa-autocomplete]").forEach((e) => {
1023
+ if (e.dataset.nexaAcWired === "1") return;
1024
+ e.dataset.nexaAcWired = "1";
1025
+ let t = e.querySelector("[data-ac-input]"), n = e.querySelector("[data-ac-value]"), r = e.querySelector("[data-ac-menu]"), i = e.querySelector("[data-ac-list]"), a = e.querySelector("[data-ac-empty]"), o = e.querySelector("[data-ac-clear]");
1026
+ if (!t || !n || !r || !i || !a) return;
1027
+ let s = [...i.querySelectorAll("[data-ac-opt]")], c = -1, l = () => {
1028
+ o && (o.hidden = !t.value);
1029
+ }, u = () => {
1030
+ r.hidden = !0, e.classList.remove("is-open"), t.setAttribute("aria-expanded", "false"), c = -1, s.forEach((e) => e.classList.remove("is-active"));
1031
+ }, d = () => {
1032
+ document.querySelectorAll("[data-nexa-autocomplete].is-open").forEach((t) => {
1033
+ if (t === e) return;
1034
+ t.classList.remove("is-open");
1035
+ let n = t.querySelector("[data-ac-menu]");
1036
+ n && (n.hidden = !0);
1037
+ }), r.hidden = !1, e.classList.add("is-open"), t.setAttribute("aria-expanded", "true");
1038
+ }, f = () => {
1039
+ let e = t.value.trim().toLowerCase(), n = 0;
1040
+ s.forEach((t) => {
1041
+ let r = (t.dataset.value ?? t.textContent ?? "").toLowerCase(), i = !e || r.includes(e);
1042
+ t.hidden = !i, i && (n += 1);
1043
+ }), a.hidden = n > 0, i.hidden = n === 0, n > 0 ? d() : (d(), c = -1), l();
1044
+ }, p = (r) => {
1045
+ let i = r.dataset.value ?? r.textContent ?? "";
1046
+ t.value = i, n.value = i, l(), u(), e.dispatchEvent(new CustomEvent("nexa:change", {
1047
+ detail: { value: i },
1048
+ bubbles: !0
1049
+ }));
1050
+ }, m = (e) => {
1051
+ let t = s.filter((e) => !e.hidden);
1052
+ t.length && (d(), c = (c + e + t.length) % t.length, t.forEach((e, t) => e.classList.toggle("is-active", t === c)), t[c]?.scrollIntoView({ block: "nearest" }));
1053
+ };
1054
+ t.addEventListener("focus", () => {
1055
+ f();
1056
+ }), t.addEventListener("input", () => {
1057
+ n.value = "", f();
1058
+ }), t.addEventListener("keydown", (e) => {
1059
+ if (e.key === "ArrowDown") e.preventDefault(), m(1);
1060
+ else if (e.key === "ArrowUp") e.preventDefault(), m(-1);
1061
+ else if (e.key === "Enter") {
1062
+ let t = s.filter((e) => !e.hidden);
1063
+ if (r.hidden || !t.length) return;
1064
+ e.preventDefault(), p(t[Math.max(0, c)] ?? t[0]);
1065
+ } else e.key === "Escape" && u();
1066
+ }), s.forEach((e) => {
1067
+ e.addEventListener("mousedown", (t) => {
1068
+ t.preventDefault(), p(e);
1069
+ });
1070
+ }), o?.addEventListener("click", (r) => {
1071
+ r.stopPropagation(), t.value = "", n.value = "", l(), t.focus(), f(), e.dispatchEvent(new CustomEvent("nexa:change", {
1072
+ detail: { value: "" },
1073
+ bubbles: !0
1074
+ }));
1075
+ }), l();
1076
+ }), document.__nexaAcDoc || (document.__nexaAcDoc = !0, document.addEventListener("click", (e) => {
1077
+ let t = e.target;
1078
+ document.querySelectorAll("[data-nexa-autocomplete].is-open").forEach((e) => {
1079
+ if (t && e.contains(t)) return;
1080
+ e.classList.remove("is-open");
1081
+ let n = e.querySelector("[data-ac-menu]");
1082
+ n && (n.hidden = !0), e.querySelector("[data-ac-input]")?.setAttribute("aria-expanded", "false");
1083
+ });
1084
+ }));
1085
+ }
1086
+ function De(e) {
1087
+ let t = [
1088
+ "يناير",
1089
+ "فبراير",
1090
+ "مارس",
1091
+ "أبريل",
1092
+ "مايو",
1093
+ "يونيو",
1094
+ "يوليو",
1095
+ "أغسطس",
1096
+ "سبتمبر",
1097
+ "أكتوبر",
1098
+ "نوفمبر",
1099
+ "ديسمبر"
1100
+ ], n = (e, t, n) => {
1101
+ let r = n.match(/^(\d{4})-(\d{2})-(\d{2})$/), i = r ? Number(r[1]) : 0, a = r ? Number(r[2]) : 0, o = r ? Number(r[3]) : 0, s = new Date(e, t - 1, 1).getDay(), c = new Date(e, t, 0).getDate(), l = /* @__PURE__ */ new Date(), u = "";
1102
+ for (let e = 0; e < s; e++) u += "<span class=\"nexa-cal-empty\"></span>";
1103
+ for (let n = 1; n <= c; n++) {
1104
+ let r = i === e && a === t && o === n, s = l.getFullYear() === e && l.getMonth() + 1 === t && l.getDate() === n;
1105
+ u += `<button type="button" class="nexa-cal-day${r ? " is-selected" : ""}${s ? " is-today" : ""}" data-day="${n}">${n}</button>`;
1106
+ }
1107
+ return u;
1108
+ }, r = (e) => {
1109
+ let n = e.match(/^(\d{4})-(\d{2})-(\d{2})$/);
1110
+ return n ? `${Number(n[3])} ${t[Number(n[2]) - 1]} ${n[1]}` : "";
1111
+ };
1112
+ e.querySelectorAll("[data-nexa-datepicker]").forEach((e) => {
1113
+ if (e.dataset.nexaDpWired === "1") return;
1114
+ e.dataset.nexaDpWired = "1";
1115
+ let i = e.querySelector("[data-dp-toggle]"), a = e.querySelector("[data-dp-panel]"), o = e.querySelector("[data-dp-grid]"), s = e.querySelector("[data-dp-title]"), c = e.querySelector("[data-dp-display]"), l = e.querySelector("[data-dp-value]");
1116
+ if (!i || !a || !o || !s || !c || !l) return;
1117
+ let u = () => {
1118
+ a.hidden = !0, i.setAttribute("aria-expanded", "false"), e.classList.remove("is-open");
1119
+ }, d = () => {
1120
+ document.querySelectorAll("[data-nexa-datepicker].is-open,[data-nexa-timepicker].is-open").forEach((t) => {
1121
+ if (t === e) return;
1122
+ t.classList.remove("is-open");
1123
+ let n = t.querySelector("[data-dp-panel],[data-tp-panel]");
1124
+ n && (n.hidden = !0), t.querySelector("[data-dp-toggle],[data-tp-toggle]")?.setAttribute("aria-expanded", "false");
1125
+ }), a.hidden = !1, i.setAttribute("aria-expanded", "true"), e.classList.add("is-open");
1126
+ }, f = () => {
1127
+ let i = Number(o.dataset.year), a = Number(o.dataset.month);
1128
+ s.textContent = `${t[a - 1]} ${i}`, o.innerHTML = n(i, a, l.value), o.querySelectorAll("[data-day]").forEach((t) => {
1129
+ t.onclick = (n) => {
1130
+ n.stopPropagation();
1131
+ let o = Number(t.dataset.day);
1132
+ l.value = `${i}-${T(a)}-${T(o)}`, c.textContent = r(l.value), c.classList.add("has-value"), u(), e.dispatchEvent(new CustomEvent("nexa:change", {
1133
+ detail: { value: l.value },
1134
+ bubbles: !0
1135
+ }));
1136
+ };
1137
+ });
1138
+ };
1139
+ i.addEventListener("click", (e) => {
1140
+ e.stopPropagation(), a.hidden ? (d(), f()) : u();
1141
+ }), e.querySelector("[data-dp-prev]")?.addEventListener("click", (e) => {
1142
+ e.stopPropagation();
1143
+ let t = Number(o.dataset.year), n = Number(o.dataset.month) - 1;
1144
+ n < 1 && (n = 12, --t), o.dataset.year = String(t), o.dataset.month = String(n), f();
1145
+ }), e.querySelector("[data-dp-next]")?.addEventListener("click", (e) => {
1146
+ e.stopPropagation();
1147
+ let t = Number(o.dataset.year), n = Number(o.dataset.month) + 1;
1148
+ n > 12 && (n = 1, t += 1), o.dataset.year = String(t), o.dataset.month = String(n), f();
1149
+ }), e.querySelector("[data-dp-today]")?.addEventListener("click", (t) => {
1150
+ t.stopPropagation();
1151
+ let n = /* @__PURE__ */ new Date();
1152
+ l.value = `${n.getFullYear()}-${T(n.getMonth() + 1)}-${T(n.getDate())}`, c.textContent = r(l.value), o.dataset.year = String(n.getFullYear()), o.dataset.month = String(n.getMonth() + 1), f(), u(), e.dispatchEvent(new CustomEvent("nexa:change", {
1153
+ detail: { value: l.value },
1154
+ bubbles: !0
1155
+ }));
1156
+ });
1157
+ let p = c.textContent && !l.value ? c.textContent : "اختر تاريخاً";
1158
+ e.querySelector("[data-dp-clear]")?.addEventListener("click", (e) => {
1159
+ e.stopPropagation(), l.value = "", c.textContent = p, c.classList.remove("has-value"), u();
1160
+ }), a.addEventListener("click", (e) => e.stopPropagation());
1161
+ }), document.__nexaDpDoc || (document.__nexaDpDoc = !0, document.addEventListener("click", () => {
1162
+ document.querySelectorAll("[data-nexa-datepicker].is-open").forEach((e) => {
1163
+ e.classList.remove("is-open");
1164
+ let t = e.querySelector("[data-dp-panel]");
1165
+ t && (t.hidden = !0), e.querySelector("[data-dp-toggle]")?.setAttribute("aria-expanded", "false");
1166
+ });
1167
+ }));
1168
+ }
1169
+ function Oe(e) {
1170
+ e.querySelectorAll("[data-nexa-timepicker]").forEach((e) => {
1171
+ if (e.dataset.nexaTpWired === "1") return;
1172
+ e.dataset.nexaTpWired = "1";
1173
+ let t = e.querySelector("[data-tp-toggle]"), n = e.querySelector("[data-tp-panel]"), r = e.querySelector("[data-tp-display]"), i = e.querySelector("[data-tp-value]");
1174
+ if (!t || !n || !r || !i) return;
1175
+ let a = 12, o = 0;
1176
+ (() => {
1177
+ let e = i.value.match(/^(\d{1,2}):(\d{2})$/);
1178
+ e && (a = Number(e[1]), o = Number(e[2]));
1179
+ })();
1180
+ let s = () => {
1181
+ e.querySelectorAll("[data-tp-h]").forEach((e) => e.classList.toggle("is-selected", Number(e.getAttribute("data-tp-h")) === a)), e.querySelectorAll("[data-tp-m]").forEach((e) => e.classList.toggle("is-selected", Number(e.getAttribute("data-tp-m")) === o));
1182
+ }, c = () => {
1183
+ n.hidden = !0, t.setAttribute("aria-expanded", "false"), e.classList.remove("is-open");
1184
+ }, l = () => {
1185
+ document.querySelectorAll("[data-nexa-datepicker].is-open,[data-nexa-timepicker].is-open").forEach((t) => {
1186
+ if (t === e) return;
1187
+ t.classList.remove("is-open");
1188
+ let n = t.querySelector("[data-dp-panel],[data-tp-panel]");
1189
+ n && (n.hidden = !0);
1190
+ }), n.hidden = !1, t.setAttribute("aria-expanded", "true"), e.classList.add("is-open"), s();
1191
+ };
1192
+ t.addEventListener("click", (e) => {
1193
+ e.stopPropagation(), n.hidden ? l() : c();
1194
+ }), e.querySelectorAll("[data-tp-h]").forEach((e) => {
1195
+ e.onclick = (t) => {
1196
+ t.stopPropagation(), a = Number(e.dataset.tpH), s();
1197
+ };
1198
+ }), e.querySelectorAll("[data-tp-m]").forEach((e) => {
1199
+ e.onclick = (t) => {
1200
+ t.stopPropagation(), o = Number(e.dataset.tpM), s();
1201
+ };
1202
+ }), e.querySelector("[data-tp-apply]")?.addEventListener("click", (t) => {
1203
+ t.stopPropagation(), i.value = `${T(a)}:${T(o)}`, r.textContent = i.value, r.classList.add("has-value"), c(), e.dispatchEvent(new CustomEvent("nexa:change", {
1204
+ detail: { value: i.value },
1205
+ bubbles: !0
1206
+ }));
1207
+ }), e.querySelector("[data-tp-clear]")?.addEventListener("click", (e) => {
1208
+ e.stopPropagation(), i.value = "", r.textContent = "اختر وقتاً", r.classList.remove("has-value"), c();
1209
+ }), n.addEventListener("click", (e) => e.stopPropagation());
1210
+ }), document.__nexaTpDoc || (document.__nexaTpDoc = !0, document.addEventListener("click", () => {
1211
+ document.querySelectorAll("[data-nexa-timepicker].is-open").forEach((e) => {
1212
+ e.classList.remove("is-open");
1213
+ let t = e.querySelector("[data-tp-panel]");
1214
+ t && (t.hidden = !0);
1215
+ });
1216
+ }));
1217
+ }
1218
+ function ke(e) {
1219
+ e.querySelectorAll("[data-nexa-rating]").forEach((e) => {
1220
+ if (e.dataset.nexaRatingWired === "1" || e.classList.contains("is-readonly") || e.classList.contains("nexa-readonly")) return;
1221
+ e.dataset.nexaRatingWired = "1";
1222
+ let t = e.querySelector("[data-rating-value]"), n = [...e.querySelectorAll("[data-star]")], r = (e) => n.forEach((t) => t.classList.toggle("is-on", Number(t.dataset.star) <= e));
1223
+ n.forEach((n) => {
1224
+ n.onclick = () => {
1225
+ let i = Number(n.dataset.star);
1226
+ t && (t.value = String(i)), r(i), e.dispatchEvent(new CustomEvent("nexa:change", {
1227
+ detail: { value: i },
1228
+ bubbles: !0
1229
+ }));
1230
+ };
1231
+ });
1232
+ });
1233
+ }
1234
+ function Ae(e) {
1235
+ e.querySelectorAll("[data-chip-remove]").forEach((e) => {
1236
+ e.__wired || (e.__wired = !0, e.addEventListener("click", () => {
1237
+ (e.closest(".nexa-host.nexa-chip") ?? e.closest(".nexa-chip"))?.remove();
1238
+ }));
1239
+ });
1240
+ }
1241
+ //#endregion
1242
+ //#region resources/ui/src/core/renderer.ts
1243
+ var je = {
1244
+ button: "button",
1245
+ badge: "span",
1246
+ card: "article",
1247
+ header: "header",
1248
+ hero: "section",
1249
+ features: "section",
1250
+ logos: "section",
1251
+ pricing: "section",
1252
+ testimonials: "section",
1253
+ cta: "section",
1254
+ footer: "footer",
1255
+ field: "div",
1256
+ grid: "div",
1257
+ stack: "div",
1258
+ container: "div",
1259
+ form: "form",
1260
+ input: "input",
1261
+ textarea: "textarea",
1262
+ select: "select",
1263
+ alert: "div",
1264
+ modal: "div",
1265
+ tabs: "div",
1266
+ accordion: "div",
1267
+ dropdown: "div",
1268
+ spinner: "div",
1269
+ progress: "div",
1270
+ toast: "div",
1271
+ breadcrumb: "nav",
1272
+ pagination: "nav",
1273
+ divider: "div",
1274
+ avatar: "div",
1275
+ auth: "main",
1276
+ carousel: "div",
1277
+ sheet: "div",
1278
+ offcanvas: "div",
1279
+ popover: "div",
1280
+ tooltip: "span",
1281
+ list: "div",
1282
+ posts: "section",
1283
+ checkout: "section",
1284
+ table: "div",
1285
+ collapse: "div",
1286
+ stat: "div",
1287
+ nav: "nav",
1288
+ "button-group": "div",
1289
+ "list-group": "div",
1290
+ navbar: "nav",
1291
+ "input-group": "div",
1292
+ close: "button",
1293
+ switch: "div",
1294
+ scrollspy: "nav",
1295
+ skeleton: "div",
1296
+ figure: "figure",
1297
+ chart: "div",
1298
+ ico: "span",
1299
+ datepicker: "div",
1300
+ timepicker: "div",
1301
+ chip: "span",
1302
+ chips: "div",
1303
+ rating: "div",
1304
+ stepper: "div",
1305
+ fab: "button",
1306
+ autocomplete: "div",
1307
+ tree: "div",
1308
+ timeline: "div",
1309
+ transfer: "div"
1310
+ }, E = new Set([
1311
+ "modern",
1312
+ "luxury",
1313
+ "minimal"
1314
+ ]), D = new Set([
1315
+ "blue",
1316
+ "purple",
1317
+ "gold",
1318
+ "green",
1319
+ "orange",
1320
+ "black",
1321
+ "violet",
1322
+ "azure",
1323
+ "emerald",
1324
+ "coral",
1325
+ "light",
1326
+ "ivory"
1327
+ ]);
1328
+ function O(e) {
1329
+ return e === "theme" || e === "map" || E.has(e);
1330
+ }
1331
+ function Me(e, t) {
1332
+ let n = f[t];
1333
+ n && ue(e, n);
1334
+ }
1335
+ function Ne(e) {
1336
+ let t = E.has(e.component) ? e.component : e.modifiers.find((e) => E.has(e)) ?? (e.component === "map" ? "luxury" : "modern"), n = e.modifiers.find((e) => D.has(e)) ?? (D.has(e.component) ? e.component : "black"), r = new Set([
1337
+ t,
1338
+ n,
1339
+ "map",
1340
+ ...Object.keys(p)
1341
+ ]), i = e.modifiers.filter((e) => !r.has(e) && !E.has(e) && !D.has(e) && !C(e));
1342
+ return {
1343
+ classes: [
1344
+ "nexa-theme",
1345
+ `nexa-${t}`,
1346
+ `nexa-${n}`,
1347
+ ...i.map((e) => `nexa-${e}`)
1348
+ ],
1349
+ color: n
1350
+ };
1351
+ }
1352
+ function Pe(e, t) {
1353
+ let n = Ne(t);
1354
+ e.classList.add(...n.classes);
1355
+ let r = S(t.modifiers);
1356
+ if (r) {
1357
+ ce(e, r), e.dataset.nexaMapCmd = r;
1358
+ return;
1359
+ }
1360
+ Me(e, n.color);
1361
+ }
1362
+ function Fe(e, t, n) {
1363
+ return t === "button" ? n.join(" ") || "primary" : t === "input" || t === "textarea" || t === "select" ? n.join(" ") : [e, ...n].join(" ").trim();
1364
+ }
1365
+ function Ie({ registry: e }) {
1366
+ return {
1367
+ render(t) {
1368
+ try {
1369
+ let n = t.getAttribute("nexa") ?? "", r = t.tagName.toLowerCase(), i = n.trim() ? w(n) : {
1370
+ component: r,
1371
+ modifiers: [],
1372
+ attributes: {},
1373
+ raw: n
1374
+ }, a = i, o = e.resolve(a.component);
1375
+ if (!o && e.resolve(r) && (a = {
1376
+ ...i,
1377
+ component: r,
1378
+ modifiers: [i.component, ...i.modifiers].filter((e) => e && e !== r)
1379
+ }, o = e.resolve(r)), !o && (r === "body" || O(a.component))) {
1380
+ if (a.component === "map" && !S(a.modifiers)) throw Error("استخدم: map #ec4899 · map pink · map:my-brand — مثال: nexa=\"luxury black map #ec4899\"");
1381
+ return Pe(t, a), { ok: !0 };
1382
+ }
1383
+ if (!o) throw Error(`Unknown “${a.component}”. Try: ${e.list().join(", ")}`);
1384
+ let s = Se(a.component, a.modifiers);
1385
+ if (s) throw Error(s);
1386
+ t.className = `${t.className} nexa-host nexa-${a.component} ${a.modifiers.map((e) => `nexa-${e}`).join(" ")}`.trim();
1387
+ let c = t.innerHTML.trim() || a.label || "", l = o({
1388
+ ...a,
1389
+ content: c,
1390
+ element: t
1391
+ });
1392
+ return r !== "input" && l !== c && (t.innerHTML = l), { ok: !0 };
1393
+ } catch (e) {
1394
+ return {
1395
+ ok: !1,
1396
+ error: e instanceof Error ? e.message : "Render failed"
1397
+ };
1398
+ }
1399
+ },
1400
+ renderPage(e, t) {
1401
+ try {
1402
+ let n = _e(e);
1403
+ if (!n.length) throw Error("Write at least one command, such as: btn primary");
1404
+ let r = n.find((e) => O(e.component) || e.modifiers.includes("map"));
1405
+ if (n = n.filter((e) => !O(e.component) && e.component !== "map"), n[0]?.component === "page") {
1406
+ let e = n[0].modifiers, t = e.includes("auth");
1407
+ if (!r) {
1408
+ let t = e.find((e) => E.has(e)) ?? "luxury", n = e.find((e) => D.has(e)) ?? "blue";
1409
+ r = {
1410
+ component: "theme",
1411
+ modifiers: [t, n],
1412
+ attributes: {},
1413
+ raw: `theme ${t} ${n}`
1414
+ };
1415
+ }
1416
+ n = t ? [w("auth"), ...n.slice(1)] : e.includes("portfolio") ? [
1417
+ w("header simple"),
1418
+ w("hero centered minimal"),
1419
+ w("features cards-3"),
1420
+ w("testimonials featured"),
1421
+ w("cta bold"),
1422
+ w("footer simple"),
1423
+ ...n.slice(1)
1424
+ ] : e.includes("dashboard") ? [
1425
+ w("header glass fixed"),
1426
+ w("stat"),
1427
+ w("features cards-4"),
1428
+ w("pricing"),
1429
+ w("cta"),
1430
+ w("footer simple"),
1431
+ ...n.slice(1)
1432
+ ] : e.includes("store") ? [
1433
+ w("header glass fixed"),
1434
+ w("hero split"),
1435
+ w("logos"),
1436
+ w("features cards-4"),
1437
+ w("pricing"),
1438
+ w("testimonials"),
1439
+ w("cta bold"),
1440
+ w("footer dark mega"),
1441
+ ...n.slice(1)
1442
+ ] : e.includes("blog") ? [
1443
+ w("header simple"),
1444
+ w("hero minimal centered"),
1445
+ w("posts cards-3"),
1446
+ w("testimonials"),
1447
+ w("cta"),
1448
+ w("footer simple"),
1449
+ ...n.slice(1)
1450
+ ] : e.includes("checkout") ? [
1451
+ w("header simple"),
1452
+ w("checkout"),
1453
+ w("footer simple"),
1454
+ ...n.slice(1)
1455
+ ] : [
1456
+ w("header glass fixed"),
1457
+ w("hero split"),
1458
+ w("logos"),
1459
+ w("features cards-3"),
1460
+ w("pricing"),
1461
+ w("testimonials"),
1462
+ w("cta"),
1463
+ w("footer dark"),
1464
+ ...n.slice(1)
1465
+ ];
1466
+ }
1467
+ t.replaceChildren();
1468
+ let i = document.createElement("main");
1469
+ Pe(i, r ?? {
1470
+ component: "modern",
1471
+ modifiers: ["blue"]
1472
+ });
1473
+ let a = document.createElement("div"), o = n.length === 1 && n[0]?.component === "auth", s = n.some((e) => e.component === "checkout");
1474
+ a.className = o ? "nexa-auth-stage" : s ? "nexa-checkout-stage" : "nexa-short-stage", i.appendChild(a), t.appendChild(i);
1475
+ for (let e of n) {
1476
+ let t = he(e.component), n = je[t] ?? "div", r = document.createElement(n);
1477
+ r.setAttribute("nexa", Fe(t, n, e.modifiers));
1478
+ for (let [t, n] of Object.entries(e.attributes)) !/^on/i.test(t) && t !== "srcdoc" && r.setAttribute(t, n);
1479
+ e.label ? r.textContent = e.label : t === "button" && (r.textContent = "Button"), a.appendChild(r);
1480
+ let i = this.render(r);
1481
+ if (!i.ok) throw Error(`${e.raw}: ${i.error}`);
1482
+ }
1483
+ return { ok: !0 };
1484
+ } catch (e) {
1485
+ return {
1486
+ ok: !1,
1487
+ error: e instanceof Error ? e.message : "Page render failed"
1488
+ };
1489
+ }
1490
+ },
1491
+ mount(e = document) {
1492
+ let t = e.querySelectorAll("[nexa]"), n;
1493
+ for (let e of t) {
1494
+ let t = this.render(e);
1495
+ !t.ok && !n && (n = t.error, e.dataset.nexaError = t.error);
1496
+ }
1497
+ return Ce(e), e.querySelector("[data-nexa-echart]") && import("./echarts-mount-DWNKcqeo.js").then(({ wireEcharts: t }) => t(e)), n ? {
1498
+ ok: !1,
1499
+ error: n
1500
+ } : { ok: !0 };
1501
+ }
1502
+ };
1503
+ }
1504
+ var k = new class {
1505
+ components = /* @__PURE__ */ new Map();
1506
+ register(e, t) {
1507
+ return this.components.set(e, t), this;
1508
+ }
1509
+ resolve(e) {
1510
+ return this.components.get(e);
1511
+ }
1512
+ list() {
1513
+ return [...this.components.keys()];
1514
+ }
1515
+ }(), A = {
1516
+ mark: "/nexa-mark.png",
1517
+ markSource: "/nexa-mark-source.png",
1518
+ mark512: "/nexa-mark-512.png",
1519
+ mark256: "/nexa-mark-256.png",
1520
+ mark128: "/nexa-mark.png",
1521
+ mark96: "/nexa-mark-96.png",
1522
+ mark64: "/nexa-mark-64.png",
1523
+ mark48: "/nexa-mark-48.png",
1524
+ mark40: "/nexa-mark-40.png",
1525
+ mark32: "/nexa-mark-32.png",
1526
+ mark24: "/nexa-mark-24.png",
1527
+ markApple: "/nexa-mark-apple.png",
1528
+ markProduct: "/nexa-mark-product.png",
1529
+ markProduct256: "/nexa-mark-product-256.png",
1530
+ wordmark: "/nexa-wordmark.png",
1531
+ heroSculpture: "/nexa-hero-sculpture.png",
1532
+ heroSculpture640: "/nexa-hero-sculpture-640.png",
1533
+ heroSculpture960: "/nexa-hero-sculpture-960.png",
1534
+ heroSculpture1280: "/nexa-hero-sculpture-1280.png",
1535
+ visionReference: "/nexa-palette-vision.png",
1536
+ cardsVision: "/nexa-cards-vision.jpg",
1537
+ cardsDir: "/cards/",
1538
+ cardHeroArt: "hero",
1539
+ favicon: "/favicon.svg"
1540
+ }, Le = {
1541
+ mark: "/nexa-mark.png",
1542
+ wordmark: "/nexa-wordmark.png",
1543
+ sculpture: "/nexa-hero-sculpture.png",
1544
+ hero: "/nexa-hero-sculpture.png"
1545
+ };
1546
+ function j(e) {
1547
+ return Le[e.trim().toLowerCase()] ?? e;
1548
+ }
1549
+ function M(e) {
1550
+ let t = e.trim().toLowerCase();
1551
+ return t === "hero" || t === "sculpture" || t === "vision";
1552
+ }
1553
+ function Re(e = 40) {
1554
+ let t = Math.ceil(e);
1555
+ return [
1556
+ `${A.mark64} ${Math.round(t * 1.5)}w`,
1557
+ `${A.mark128} ${t * 2}w`,
1558
+ `${A.mark256} ${t * 3}w`,
1559
+ `${A.mark512} ${t * 4}w`
1560
+ ].join(", ");
1561
+ }
1562
+ function ze() {
1563
+ return [
1564
+ `${A.markProduct256} 256w`,
1565
+ `${A.markProduct} 384w`,
1566
+ `${A.mark512} 512w`
1567
+ ].join(", ");
1568
+ }
1569
+ function Be() {
1570
+ return [
1571
+ `${A.heroSculpture640} 640w`,
1572
+ `${A.heroSculpture960} 960w`,
1573
+ `${A.heroSculpture1280} 1280w`,
1574
+ `${A.heroSculpture} 3209w`
1575
+ ].join(", ");
1576
+ }
1577
+ //#endregion
1578
+ //#region resources/ui/src/components/art.ts
1579
+ function Ve() {
1580
+ return `<div class="nexa-art nexa-sculpture" aria-hidden="true">
1581
+ <div class="nexa-art-bloom"></div>
1582
+ <img class="nexa-sculpture-img" src="${A.heroSculpture}" alt="" decoding="async">
1583
+ <div class="nexa-art-dots"></div>
1584
+ </div>`;
1585
+ }
1586
+ function He() {
1587
+ return `<img class="nexa-card-product-mark" src="${A.mark512}" srcset="${ze()}" sizes="128px" width="128" height="128" alt="" decoding="async">`;
1588
+ }
1589
+ function Ue(e = "cover") {
1590
+ return e === "product" ? He() : `<div class="nexa-card-hero-art is-${e}" aria-hidden="true">
1591
+ <div class="nexa-card-hero-bloom"></div>
1592
+ ${`<img class="nexa-card-hero-sculpture" src="${A.heroSculpture960}" srcset="${Be()}" sizes="(max-width:640px) 40vw, 320px" alt="" decoding="async">`}
1593
+ <div class="nexa-card-hero-dots"></div>
1594
+ </div>`;
1595
+ }
1596
+ //#endregion
1597
+ //#region node_modules/lucide/dist/esm/icons/arrow-right.mjs
1598
+ var We = [["path", { d: "M5 12h14" }], ["path", { d: "m12 5 7 7-7 7" }]], Ge = [["path", { d: "m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526" }], ["circle", {
1599
+ cx: "12",
1600
+ cy: "8",
1601
+ r: "6"
1602
+ }]], Ke = [["path", { d: "M10.268 21a2 2 0 0 0 3.464 0" }], ["path", { d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326" }]], qe = [["path", { d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z" }]], Je = [
1603
+ ["path", { d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z" }],
1604
+ ["path", { d: "m3.3 7 8.7 5 8.7-5" }],
1605
+ ["path", { d: "M12 22V12" }]
1606
+ ], N = [
1607
+ ["path", { d: "M8 2v3" }],
1608
+ ["path", { d: "M16 2v3" }],
1609
+ ["rect", {
1610
+ x: "3",
1611
+ y: "3",
1612
+ width: "18",
1613
+ height: "18",
1614
+ rx: "2"
1615
+ }],
1616
+ ["path", { d: "M3 9h18" }]
1617
+ ], Ye = [["path", { d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z" }], ["circle", {
1618
+ cx: "12",
1619
+ cy: "13",
1620
+ r: "3"
1621
+ }]], P = [
1622
+ ["path", { d: "M3 3v16a2 2 0 0 0 2 2h16" }],
1623
+ ["path", { d: "M18 17V9" }],
1624
+ ["path", { d: "M13 17V5" }],
1625
+ ["path", { d: "M8 17v-3" }]
1626
+ ], Xe = [["path", { d: "M3 3v16a2 2 0 0 0 2 2h16" }], ["path", { d: "m19 9-5 5-4-4-3 3" }]], F = [["path", { d: "M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z" }], ["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83" }]], I = [["path", { d: "M20 6 9 17l-5-5" }]], Ze = [["path", { d: "m9 18 6-6-6-6" }]], Qe = [["circle", {
1627
+ cx: "12",
1628
+ cy: "12",
1629
+ r: "10"
1630
+ }], ["path", { d: "m16 9-5.5 5.5L8 12" }]], $e = [["circle", {
1631
+ cx: "12",
1632
+ cy: "12",
1633
+ r: "10"
1634
+ }], ["path", { d: "M12 6v6l4 2" }]], et = [["path", { d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z" }]], tt = [["path", { d: "m16 18 6-6-6-6" }], ["path", { d: "m8 6-6 6 6 6" }]], nt = [
1635
+ ["path", { d: "M12 20v2" }],
1636
+ ["path", { d: "M12 2v2" }],
1637
+ ["path", { d: "M17 20v2" }],
1638
+ ["path", { d: "M17 2v2" }],
1639
+ ["path", { d: "M2 12h2" }],
1640
+ ["path", { d: "M2 17h2" }],
1641
+ ["path", { d: "M2 7h2" }],
1642
+ ["path", { d: "M20 12h2" }],
1643
+ ["path", { d: "M20 17h2" }],
1644
+ ["path", { d: "M20 7h2" }],
1645
+ ["path", { d: "M7 20v2" }],
1646
+ ["path", { d: "M7 2v2" }],
1647
+ ["rect", {
1648
+ x: "4",
1649
+ y: "4",
1650
+ width: "16",
1651
+ height: "16",
1652
+ rx: "2"
1653
+ }],
1654
+ ["rect", {
1655
+ x: "8",
1656
+ y: "8",
1657
+ width: "8",
1658
+ height: "8",
1659
+ rx: "1"
1660
+ }]
1661
+ ], rt = [["rect", {
1662
+ width: "20",
1663
+ height: "14",
1664
+ x: "2",
1665
+ y: "5",
1666
+ rx: "2"
1667
+ }], ["line", {
1668
+ x1: "2",
1669
+ x2: "22",
1670
+ y1: "10",
1671
+ y2: "10"
1672
+ }]], it = [
1673
+ ["ellipse", {
1674
+ cx: "12",
1675
+ cy: "5",
1676
+ rx: "9",
1677
+ ry: "3"
1678
+ }],
1679
+ ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5" }],
1680
+ ["path", { d: "M3 12A9 3 0 0 0 21 12" }]
1681
+ ], at = [
1682
+ ["path", { d: "M12 15V3" }],
1683
+ ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }],
1684
+ ["path", { d: "m7 10 5 5 5-5" }]
1685
+ ], ot = [["path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }], ["circle", {
1686
+ cx: "12",
1687
+ cy: "12",
1688
+ r: "3"
1689
+ }]], st = [["path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }]], ct = [["path", { d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]], lt = [["path", { d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z" }]], ut = [
1690
+ ["line", {
1691
+ x1: "6",
1692
+ x2: "10",
1693
+ y1: "11",
1694
+ y2: "11"
1695
+ }],
1696
+ ["line", {
1697
+ x1: "8",
1698
+ x2: "8",
1699
+ y1: "9",
1700
+ y2: "13"
1701
+ }],
1702
+ ["line", {
1703
+ x1: "15",
1704
+ x2: "15.01",
1705
+ y1: "12",
1706
+ y2: "12"
1707
+ }],
1708
+ ["line", {
1709
+ x1: "18",
1710
+ x2: "18.01",
1711
+ y1: "10",
1712
+ y2: "10"
1713
+ }],
1714
+ ["path", { d: "M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z" }]
1715
+ ], dt = [
1716
+ ["circle", {
1717
+ cx: "12",
1718
+ cy: "12",
1719
+ r: "10"
1720
+ }],
1721
+ ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }],
1722
+ ["path", { d: "M2 12h20" }]
1723
+ ], ft = [["path", { d: "M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3" }]], pt = [["path", { d: "M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5" }]], mt = [["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" }], ["path", { d: "M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }]], ht = [
1724
+ ["rect", {
1725
+ width: "18",
1726
+ height: "18",
1727
+ x: "3",
1728
+ y: "3",
1729
+ rx: "2",
1730
+ ry: "2"
1731
+ }],
1732
+ ["circle", {
1733
+ cx: "9",
1734
+ cy: "9",
1735
+ r: "2"
1736
+ }],
1737
+ ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }]
1738
+ ], gt = [["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12" }], ["path", { d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" }]], _t = [
1739
+ ["circle", {
1740
+ cx: "12",
1741
+ cy: "12",
1742
+ r: "10"
1743
+ }],
1744
+ ["path", { d: "M12 16v-4" }],
1745
+ ["path", { d: "M12 8h.01" }]
1746
+ ], vt = [
1747
+ ["path", { d: "m2 21 9.6-9.6" }],
1748
+ ["path", { d: "m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19" }],
1749
+ ["circle", {
1750
+ cx: "15.5",
1751
+ cy: "7.5",
1752
+ r: "5.5"
1753
+ }]
1754
+ ], yt = [
1755
+ ["path", { d: "M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z" }],
1756
+ ["path", { d: "M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12" }],
1757
+ ["path", { d: "M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17" }]
1758
+ ], bt = [
1759
+ ["rect", {
1760
+ width: "7",
1761
+ height: "7",
1762
+ x: "3",
1763
+ y: "3",
1764
+ rx: "1"
1765
+ }],
1766
+ ["rect", {
1767
+ width: "7",
1768
+ height: "7",
1769
+ x: "14",
1770
+ y: "3",
1771
+ rx: "1"
1772
+ }],
1773
+ ["rect", {
1774
+ width: "7",
1775
+ height: "7",
1776
+ x: "14",
1777
+ y: "14",
1778
+ rx: "1"
1779
+ }],
1780
+ ["rect", {
1781
+ width: "7",
1782
+ height: "7",
1783
+ x: "3",
1784
+ y: "14",
1785
+ rx: "1"
1786
+ }]
1787
+ ], xt = [["path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }], ["path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" }]], L = [
1788
+ ["path", { d: "M13 5h8" }],
1789
+ ["path", { d: "M13 12h8" }],
1790
+ ["path", { d: "M13 19h8" }],
1791
+ ["path", { d: "m3 17 2 2 4-4" }],
1792
+ ["rect", {
1793
+ x: "3",
1794
+ y: "4",
1795
+ width: "6",
1796
+ height: "6",
1797
+ rx: "1"
1798
+ }]
1799
+ ], St = [["rect", {
1800
+ width: "18",
1801
+ height: "11",
1802
+ x: "3",
1803
+ y: "11",
1804
+ rx: "2",
1805
+ ry: "2"
1806
+ }], ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4" }]], Ct = [["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" }], ["rect", {
1807
+ x: "2",
1808
+ y: "4",
1809
+ width: "20",
1810
+ height: "16",
1811
+ rx: "2"
1812
+ }]], R = [["path", { d: "M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0" }], ["circle", {
1813
+ cx: "12",
1814
+ cy: "10",
1815
+ r: "3"
1816
+ }]], wt = [
1817
+ ["path", { d: "M4 5h16" }],
1818
+ ["path", { d: "M4 12h16" }],
1819
+ ["path", { d: "M4 19h16" }]
1820
+ ], Tt = [["path", { d: "M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719" }]], Et = [["path", { d: "M5 12h14" }]], Dt = [["path", { d: "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401" }]], Ot = [
1821
+ ["path", { d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z" }],
1822
+ ["path", { d: "M12 22V12" }],
1823
+ ["polyline", { points: "3.29 7 12 12 20.71 7" }],
1824
+ ["path", { d: "m7.5 4.27 9 5.15" }]
1825
+ ], kt = [
1826
+ ["path", { d: "M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z" }],
1827
+ ["circle", {
1828
+ cx: "13.5",
1829
+ cy: "6.5",
1830
+ r: ".5",
1831
+ fill: "currentColor"
1832
+ }],
1833
+ ["circle", {
1834
+ cx: "17.5",
1835
+ cy: "10.5",
1836
+ r: ".5",
1837
+ fill: "currentColor"
1838
+ }],
1839
+ ["circle", {
1840
+ cx: "6.5",
1841
+ cy: "12.5",
1842
+ r: ".5",
1843
+ fill: "currentColor"
1844
+ }],
1845
+ ["circle", {
1846
+ cx: "8.5",
1847
+ cy: "7.5",
1848
+ r: ".5",
1849
+ fill: "currentColor"
1850
+ }]
1851
+ ], At = [["path", { d: "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384" }]], jt = [["path", { d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z" }]], Mt = [["path", { d: "M5 12h14" }], ["path", { d: "M12 5v14" }]], Nt = [["path", { d: "M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" }], ["path", { d: "M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z" }]], Pt = [
1852
+ ["path", { d: "M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5" }],
1853
+ ["path", { d: "M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09" }],
1854
+ ["path", { d: "M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z" }],
1855
+ ["path", { d: "M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05" }]
1856
+ ], Ft = [["path", { d: "m21 21-4.34-4.34" }], ["circle", {
1857
+ cx: "11",
1858
+ cy: "11",
1859
+ r: "8"
1860
+ }]], It = [["path", { d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }], ["circle", {
1861
+ cx: "12",
1862
+ cy: "12",
1863
+ r: "3"
1864
+ }]], Lt = [
1865
+ ["circle", {
1866
+ cx: "18",
1867
+ cy: "5",
1868
+ r: "3"
1869
+ }],
1870
+ ["circle", {
1871
+ cx: "6",
1872
+ cy: "12",
1873
+ r: "3"
1874
+ }],
1875
+ ["circle", {
1876
+ cx: "18",
1877
+ cy: "19",
1878
+ r: "3"
1879
+ }],
1880
+ ["line", {
1881
+ x1: "8.59",
1882
+ x2: "15.42",
1883
+ y1: "13.51",
1884
+ y2: "17.49"
1885
+ }],
1886
+ ["line", {
1887
+ x1: "15.41",
1888
+ x2: "8.59",
1889
+ y1: "6.51",
1890
+ y2: "10.49"
1891
+ }]
1892
+ ], Rt = [["path", { d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z" }]], z = [
1893
+ ["path", { d: "m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18" }],
1894
+ ["path", { d: "M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25" }],
1895
+ ["circle", {
1896
+ cx: "18",
1897
+ cy: "20",
1898
+ r: "2"
1899
+ }],
1900
+ ["circle", {
1901
+ cx: "8",
1902
+ cy: "20",
1903
+ r: "2"
1904
+ }]
1905
+ ], zt = [
1906
+ ["path", { d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z" }],
1907
+ ["path", { d: "M20 2v4" }],
1908
+ ["path", { d: "M22 4h-4" }],
1909
+ ["circle", {
1910
+ cx: "4",
1911
+ cy: "20",
1912
+ r: "2"
1913
+ }]
1914
+ ], Bt = [["path", { d: "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }], ["path", { d: "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" }]], Vt = [["path", { d: "M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z" }]], Ht = [
1915
+ ["circle", {
1916
+ cx: "12",
1917
+ cy: "12",
1918
+ r: "4"
1919
+ }],
1920
+ ["path", { d: "M12 2v2" }],
1921
+ ["path", { d: "M12 20v2" }],
1922
+ ["path", { d: "m4.93 4.93 1.41 1.41" }],
1923
+ ["path", { d: "m17.66 17.66 1.41 1.41" }],
1924
+ ["path", { d: "M2 12h2" }],
1925
+ ["path", { d: "M20 12h2" }],
1926
+ ["path", { d: "m6.34 17.66-1.41 1.41" }],
1927
+ ["path", { d: "m19.07 4.93-1.41 1.41" }]
1928
+ ], Ut = [["path", { d: "M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z" }], ["circle", {
1929
+ cx: "7.5",
1930
+ cy: "7.5",
1931
+ r: ".5",
1932
+ fill: "currentColor"
1933
+ }]], Wt = [
1934
+ ["circle", {
1935
+ cx: "12",
1936
+ cy: "12",
1937
+ r: "10"
1938
+ }],
1939
+ ["circle", {
1940
+ cx: "12",
1941
+ cy: "12",
1942
+ r: "6"
1943
+ }],
1944
+ ["circle", {
1945
+ cx: "12",
1946
+ cy: "12",
1947
+ r: "2"
1948
+ }]
1949
+ ], Gt = [
1950
+ ["path", { d: "M10 11v6" }],
1951
+ ["path", { d: "M14 11v6" }],
1952
+ ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }],
1953
+ ["path", { d: "M3 6h18" }],
1954
+ ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]
1955
+ ], Kt = [["path", { d: "M16 17h6v-6" }], ["path", { d: "m22 17-8.5-8.5-5 5L2 7" }]], qt = [["path", { d: "M16 7h6v6" }], ["path", { d: "m22 7-8.5 8.5-5-5L2 17" }]], Jt = [
1956
+ ["path", { d: "M12 3v12" }],
1957
+ ["path", { d: "m17 8-5-5-5 5" }],
1958
+ ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]
1959
+ ], Yt = [["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }], ["circle", {
1960
+ cx: "12",
1961
+ cy: "7",
1962
+ r: "4"
1963
+ }]], Xt = [
1964
+ ["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }],
1965
+ ["path", { d: "M16 3.128a4 4 0 0 1 0 7.744" }],
1966
+ ["path", { d: "M22 21v-2a4 4 0 0 0-3-3.87" }],
1967
+ ["circle", {
1968
+ cx: "9",
1969
+ cy: "7",
1970
+ r: "4"
1971
+ }]
1972
+ ], Zt = [["path", { d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5" }], ["rect", {
1973
+ x: "2",
1974
+ y: "6",
1975
+ width: "14",
1976
+ height: "12",
1977
+ rx: "2"
1978
+ }]], Qt = [
1979
+ ["path", { d: "M12 20h.01" }],
1980
+ ["path", { d: "M2 8.82a15 15 0 0 1 20 0" }],
1981
+ ["path", { d: "M5 12.859a10 10 0 0 1 14 0" }],
1982
+ ["path", { d: "M8.5 16.429a5 5 0 0 1 7 0" }]
1983
+ ], $t = [["path", { d: "M18 6 6 18" }], ["path", { d: "m6 6 12 12" }]], B = [["path", { d: "M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z" }]], V = {
1984
+ zap: B,
1985
+ bolt: B,
1986
+ lightning: B,
1987
+ calendar: N,
1988
+ date: N,
1989
+ event: N,
1990
+ cart: z,
1991
+ "shopping-cart": z,
1992
+ bag: z,
1993
+ user: Yt,
1994
+ profile: Yt,
1995
+ users: Xt,
1996
+ team: Xt,
1997
+ mail: Ct,
1998
+ email: Ct,
1999
+ message: Tt,
2000
+ chat: Tt,
2001
+ star: Vt,
2002
+ rating: Vt,
2003
+ heart: pt,
2004
+ like: pt,
2005
+ "trending-up": qt,
2006
+ trend: qt,
2007
+ "trending-down": Kt,
2008
+ check: I,
2009
+ done: I,
2010
+ "circle-check": Qe,
2011
+ "chevron-right": Ze,
2012
+ arrow: We,
2013
+ "arrow-right": We,
2014
+ play: jt,
2015
+ video: Zt,
2016
+ chart: P,
2017
+ bar: P,
2018
+ "bar-chart": P,
2019
+ line: Xe,
2020
+ "line-chart": Xe,
2021
+ pie: F,
2022
+ "pie-chart": F,
2023
+ donut: F,
2024
+ sparkles: zt,
2025
+ feature: zt,
2026
+ quote: Nt,
2027
+ tasks: L,
2028
+ task: L,
2029
+ list: L,
2030
+ pin: R,
2031
+ location: R,
2032
+ map: R,
2033
+ package: Ot,
2034
+ product: Ot,
2035
+ box: Je,
2036
+ card: rt,
2037
+ pricing: rt,
2038
+ grid: bt,
2039
+ settings: It,
2040
+ search: Ft,
2041
+ menu: wt,
2042
+ close: $t,
2043
+ x: $t,
2044
+ plus: Mt,
2045
+ minus: Et,
2046
+ home: mt,
2047
+ bell: Ke,
2048
+ notification: Ke,
2049
+ bookmark: qe,
2050
+ save: qe,
2051
+ camera: Ye,
2052
+ cloud: et,
2053
+ download: at,
2054
+ upload: Jt,
2055
+ edit: Bt,
2056
+ pen: Bt,
2057
+ eye: ot,
2058
+ view: ot,
2059
+ file: st,
2060
+ folder: ct,
2061
+ globe: dt,
2062
+ world: dt,
2063
+ image: ht,
2064
+ photo: ht,
2065
+ inbox: gt,
2066
+ info: _t,
2067
+ key: vt,
2068
+ link: xt,
2069
+ lock: St,
2070
+ moon: Dt,
2071
+ sun: Ht,
2072
+ phone: At,
2073
+ call: At,
2074
+ share: Lt,
2075
+ shield: Rt,
2076
+ tag: Ut,
2077
+ trash: Gt,
2078
+ delete: Gt,
2079
+ wifi: Qt,
2080
+ clock: $e,
2081
+ time: $e,
2082
+ filter: lt,
2083
+ layers: yt,
2084
+ palette: kt,
2085
+ rocket: Pt,
2086
+ target: Wt,
2087
+ award: Ge,
2088
+ code: tt,
2089
+ database: it,
2090
+ db: it,
2091
+ cpu: nt,
2092
+ game: ut,
2093
+ headphones: ft,
2094
+ audio: ft
2095
+ }, en = {
2096
+ sm: 18,
2097
+ md: 24,
2098
+ lg: 32,
2099
+ xl: 40
2100
+ }, tn = new Set([
2101
+ "regular",
2102
+ "bold",
2103
+ "fat",
2104
+ "full",
2105
+ "fill",
2106
+ "filled",
2107
+ "solid",
2108
+ "thin",
2109
+ "outline",
2110
+ "light"
2111
+ ]), nn = new Set([
2112
+ "sm",
2113
+ "md",
2114
+ "lg",
2115
+ "xl",
2116
+ "small",
2117
+ "medium",
2118
+ "large",
2119
+ "compact",
2120
+ "tall"
2121
+ ]);
2122
+ function H(e) {
2123
+ return e.trim().toLowerCase().replace(/\s+/g, "-").replace(/_/g, "-");
2124
+ }
2125
+ function rn(e) {
2126
+ return e.some((e) => e === "xl") ? "xl" : e.some((e) => e === "lg" || e === "large" || e === "tall") ? "lg" : e.some((e) => e === "sm" || e === "small" || e === "compact") ? "sm" : (e.some((e) => e === "md" || e === "medium"), "md");
2127
+ }
2128
+ function an(e) {
2129
+ return !!V[H(e)];
2130
+ }
2131
+ function on(e) {
2132
+ return V[H(e)] ?? null;
2133
+ }
2134
+ function sn() {
2135
+ let e = /* @__PURE__ */ new Set(), t = [];
2136
+ for (let [n, r] of Object.entries(V)) e.has(r) || (e.add(r), t.push(n));
2137
+ return t.sort();
2138
+ }
2139
+ function cn(e) {
2140
+ return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;");
2141
+ }
2142
+ function ln(e, t) {
2143
+ let n = t?.trim().toLowerCase();
2144
+ return n === "fill" || n === "filled" || n === "solid" ? "fill" : n === "thin" || n === "outline" || n === "light" ? "thin" : n === "bold" || n === "fat" || n === "full" ? "bold" : e.some((e) => [
2145
+ "fill",
2146
+ "filled",
2147
+ "solid"
2148
+ ].includes(e)) ? "fill" : e.some((e) => [
2149
+ "thin",
2150
+ "outline",
2151
+ "light"
2152
+ ].includes(e)) ? "thin" : e.some((e) => [
2153
+ "bold",
2154
+ "fat",
2155
+ "full"
2156
+ ].includes(e)) ? "bold" : "regular";
2157
+ }
2158
+ function un(e) {
2159
+ return e === "fill" ? {
2160
+ fill: "currentColor",
2161
+ stroke: "none",
2162
+ strokeWidth: "0",
2163
+ classExtra: "is-fill"
2164
+ } : e === "thin" ? {
2165
+ fill: "none",
2166
+ stroke: "currentColor",
2167
+ strokeWidth: "1.5",
2168
+ classExtra: "is-thin"
2169
+ } : e === "bold" ? {
2170
+ fill: "none",
2171
+ stroke: "currentColor",
2172
+ strokeWidth: "2.5",
2173
+ classExtra: "is-bold"
2174
+ } : {
2175
+ fill: "none",
2176
+ stroke: "currentColor",
2177
+ strokeWidth: "2",
2178
+ classExtra: "is-regular"
2179
+ };
2180
+ }
2181
+ function dn(e, t) {
2182
+ return e.map(([e, n]) => {
2183
+ let r = {};
2184
+ for (let [e, t] of Object.entries(n)) t !== void 0 && (r[e] = t);
2185
+ return t === "fill" && (r.fill = "currentColor", r.stroke = "none"), `<${e} ${Object.entries(r).map(([e, t]) => `${e}="${cn(String(t))}"`).join(" ")}/>`;
2186
+ }).join("");
2187
+ }
2188
+ function U(e, t = "md", n = "nexa-icon", r = "regular") {
2189
+ let i = on(e);
2190
+ if (!i) return "";
2191
+ let a = typeof t == "number" ? t : en[t] ?? en.md, o = un(r), s = `${n} ${o.classExtra}`.trim();
2192
+ return `<svg xmlns="http://www.w3.org/2000/svg" width="${a}" height="${a}" viewBox="0 0 24 24" fill="${o.fill}" stroke="${o.stroke}" stroke-width="${o.strokeWidth}" stroke-linecap="round" stroke-linejoin="round" class="${s}" aria-hidden="true">${dn(i, r)}</svg>`;
2193
+ }
2194
+ function W(e, t = 24, n = "nexa-icon", r = "regular") {
2195
+ let i = e.trim();
2196
+ return i ? /^https?:\/\//.test(i) || i.startsWith("/") ? `<img src="${cn(i)}" alt="" loading="lazy" class="${n} is-img">` : an(i) ? U(i, t, n, r) : `<span class="${n} is-emoji" aria-hidden="true">${i}</span>` : "";
2197
+ }
2198
+ function fn(e) {
2199
+ e.register("ico", ({ modifiers: e, element: t, label: n }) => {
2200
+ let r = (n ?? "").trim().split(/\s+/).map(H).filter(Boolean), i = [...e.map(H), ...r], a = rn(i), o = ln(i, t.getAttribute("weight"));
2201
+ return U(i.find((e) => !nn.has(e) && !tn.has(e)) ?? t.getAttribute("name") ?? t.getAttribute("icon") ?? "zap", a, "nexa-icon", o);
2202
+ });
2203
+ }
2204
+ //#endregion
2205
+ //#region resources/ui/src/components/card-layouts.ts
2206
+ var pn = [
2207
+ "cover",
2208
+ "product",
2209
+ "video",
2210
+ "event",
2211
+ "promo",
2212
+ "pricing",
2213
+ "analytics",
2214
+ "quote",
2215
+ "tasks",
2216
+ "profile",
2217
+ "feature",
2218
+ "media",
2219
+ "icon",
2220
+ "metric"
2221
+ ];
2222
+ function mn(e, t) {
2223
+ return e.includes(t);
2224
+ }
2225
+ function hn(e) {
2226
+ for (let t of pn) if (mn(e, t)) return t;
2227
+ return mn(e, "horizontal"), "default";
2228
+ }
2229
+ function G(e) {
2230
+ return e.getAttribute("image") ?? e.getAttribute("img") ?? e.getAttribute("cover") ?? "";
2231
+ }
2232
+ function gn(e) {
2233
+ let t = (e.getAttribute("art") ?? "").toLowerCase();
2234
+ if (t === "hero" || t === "sculpture" || t === "vision") return !0;
2235
+ let n = G(e);
2236
+ return n ? M(n) : !1;
2237
+ }
2238
+ function K(e, t = "") {
2239
+ let n = G(e);
2240
+ if (!n) return t;
2241
+ if (M(n)) return "";
2242
+ let r = j(n);
2243
+ return r.startsWith("/") || /^https?:\/\//.test(r) ? r : `/cards/${r}`;
2244
+ }
2245
+ function _n(e, t = j("mark")) {
2246
+ let n = e.getAttribute("avatar") ?? G(e);
2247
+ if (!n || M(n)) return t;
2248
+ let r = j(n);
2249
+ return r.startsWith("/") || /^https?:\/\//.test(r) ? r : `/cards/${r}`;
2250
+ }
2251
+ function q(e, t, n = "", r = !1) {
2252
+ if (gn(e) || r && !G(e)) return Ue(t);
2253
+ let i = K(e, n);
2254
+ return i ? `<img src="${i}" alt="" loading="lazy">` : r || t === "cover" ? Ue(t) : "";
2255
+ }
2256
+ function J(e, t = !1) {
2257
+ return t ? `<button class="nexa-cta is-ghost" type="button">${e}</button>` : `<button class="nexa-cta nexa-card-cta" type="button"><span>${e}</span><i class="nexa-cta-arrow" aria-hidden="true"></i></button>`;
2258
+ }
2259
+ function Y(e) {
2260
+ return `<a class="nexa-card-link" href="#">${e}</a>`;
2261
+ }
2262
+ function X(e, t = "") {
2263
+ return `<span class="nexa-card-badge${t ? ` ${t}` : ""}">${e}</span>`;
2264
+ }
2265
+ function vn(e) {
2266
+ let t = r(e, /,/).map((e) => Number(e.trim())).filter((e) => Number.isFinite(e));
2267
+ if (t.length < 2) return "";
2268
+ let n = Math.max(...t), i = Math.min(...t), a = n - i || 1;
2269
+ return `<svg class="nexa-card-spark" viewBox="0 0 220 52" preserveAspectRatio="none" aria-hidden="true"><polyline fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" points="${t.map((e, n) => {
2270
+ let r = n / (t.length - 1) * 220, o = 52 - (e - i) / a * 42 - 5;
2271
+ return `${r.toFixed(1)},${o.toFixed(1)}`;
2272
+ }).join(" ")}"/></svg>`;
2273
+ }
2274
+ function yn(e) {
2275
+ let t = Math.min(5, Math.max(0, Math.round(Number(e) || 0)));
2276
+ return `${"★".repeat(t)}${"☆".repeat(5 - t)}`;
2277
+ }
2278
+ function bn(e) {
2279
+ return l(e.getAttribute("tasks") ?? e.getAttribute("items")).map((e) => {
2280
+ let t = e.head, n = (e.body || "medium").toLowerCase();
2281
+ return {
2282
+ checked: t.startsWith("[x]") || t.startsWith("✓"),
2283
+ label: t.replace(/^\[x\]\s*|^\[ \]\s*|^✓\s*/, "").trim(),
2284
+ priority: n
2285
+ };
2286
+ });
2287
+ }
2288
+ function xn(e) {
2289
+ return r(e.getAttribute("features") ?? e.getAttribute("items"));
2290
+ }
2291
+ function Sn(e) {
2292
+ return l(e.getAttribute("stats")).map((e) => ({
2293
+ label: e.head,
2294
+ value: e.body
2295
+ }));
2296
+ }
2297
+ function Cn(e, t, n) {
2298
+ let { badge: r, title: i, text: a, cta: o, tag: s } = n;
2299
+ switch (t) {
2300
+ case "cover": return wn(e, r, i, a, o, s);
2301
+ case "product": return Tn(e, r, i, a, o, s);
2302
+ case "video": return En(e, r, i, a, o, s);
2303
+ case "event": return Dn(e, i, a, o, s);
2304
+ case "promo": return On(e, r, i, a, o, s);
2305
+ case "pricing": return kn(e, r, i, a, o, s);
2306
+ case "analytics": return An(e, i, a, s);
2307
+ case "quote": return jn(e, i, a, s);
2308
+ case "tasks": return Mn(e, i, o, s);
2309
+ case "profile": return Nn(e, i, a, o, s);
2310
+ case "feature": return Pn(e, r, i, a, o, s);
2311
+ case "media": return Fn(e, r, i, a, o, s);
2312
+ case "icon": return In(e, r, i, a, o, s);
2313
+ case "metric": return Ln(e, i, a, o, s);
2314
+ default: return Rn(e, r, i, a, o, s);
2315
+ }
2316
+ }
2317
+ function wn(e, t, n, r, i, a) {
2318
+ let o = e.getAttribute("badge") ?? e.getAttribute("eyebrow") ?? t ?? "Featured", s = e.getAttribute("category") ?? "", c = e.getAttribute("price") ?? "";
2319
+ return `<div class="nexa-card-cover">${q(e, "cover", "", !0)}<div class="nexa-card-cover-overlay">${o ? X(o, "is-light") : ""}${s ? `<small class="nexa-card-category">${s}</small>` : ""}<h3>${n}</h3>${r ? `<p>${r}</p>` : ""}<div class="nexa-card-cover-foot">${c ? `<b>${c}</b>` : ""}${i ? J(i) : ""}</div></div></div>${a}`;
2320
+ }
2321
+ function Tn(e, t, n, r, i, a) {
2322
+ let o = e.getAttribute("badge") ?? e.getAttribute("eyebrow") ?? t, s = e.getAttribute("rating") ?? "4.8", c = e.getAttribute("reviews") ?? "128", l = e.getAttribute("price") ?? "$199", u = e.getAttribute("compare") ?? e.getAttribute("was") ?? "", d = i ?? "";
2323
+ return `<div class="nexa-card-product"><div class="nexa-card-media">${K(e) ? `<img class="nexa-card-product-photo" src="${K(e)}" alt="" loading="lazy">` : He()}</div><div class="nexa-card-body">${o ? X(o, "is-new") : ""}<h3>${n}</h3><div class="nexa-card-rating"><span class="nexa-card-stars" aria-hidden="true">${yn(s)}</span><span>${s}</span><em>(${c})</em></div><p>${r}</p><div class="nexa-card-product-foot"><div class="nexa-card-prices"><b>${l}</b>${u ? `<s>${u}</s>` : ""}</div>${d ? J(d) : ""}</div></div></div>${a}`;
2324
+ }
2325
+ function En(e, t, n, r, i, a) {
2326
+ let o = e.getAttribute("category") ?? t, s = e.getAttribute("duration") ?? "12:40", c = e.getAttribute("views") ?? "2.4k views";
2327
+ return `<div class="nexa-card-video"><div class="nexa-card-video-media">${q(e, "cover", "", !0)}<button class="nexa-card-play" type="button" aria-label="Play">▶</button></div><div class="nexa-card-body"><small>${o}</small><h3>${n}</h3><p>${r}</p><div class="nexa-card-meta"><span>${s}</span><span>${c}</span></div>${i ? `<footer class="nexa-card-foot">${Y(i)}</footer>` : ""}</div></div>${a}`;
2328
+ }
2329
+ function Dn(e, t, n, r, i) {
2330
+ let a = e.getAttribute("icon") ?? "calendar", o = e.getAttribute("date") ?? e.getAttribute("when") ?? "Oct 12, 2025", s = e.getAttribute("location") ?? e.getAttribute("where") ?? "San Francisco";
2331
+ return `<div class="nexa-card-event"><div class="nexa-card-event-icon" aria-hidden="true">${W(a, 22, "nexa-icon")}</div><div><h3>${t}</h3><p>${n}</p><ul class="nexa-card-event-meta"><li>${o}</li><li>${s}</li></ul>${r ? Y(r) : ""}</div></div>${i}`;
2332
+ }
2333
+ function On(e, t, n, r, i, a) {
2334
+ let o = xn(e);
2335
+ return `<div class="nexa-card-promo"><div class="nexa-card-promo-visual">${q(e, "inline", "", !0)}</div><div class="nexa-card-body">${X(t)}<h3>${n}</h3><p>${r}</p>${o.length ? `<ul class="nexa-card-checklist">${o.map((e) => `<li>${e}</li>`).join("")}</ul>` : ""}${i ? `<footer class="nexa-card-foot">${J(i)}</footer>` : ""}</div></div>${a}`;
2336
+ }
2337
+ function kn(e, t, n, r, i, a) {
2338
+ let o = e.getAttribute("badge") ?? e.getAttribute("eyebrow") ?? t, s = e.getAttribute("price") ?? "$29", c = e.getAttribute("period") ?? "/month", l = e.getAttribute("hint") ?? e.getAttribute("subtext") ?? "", u = xn(e), d = e.getAttribute("text") ?? e.getAttribute("desc") ?? r;
2339
+ return `<div class="nexa-card-pricing">${o ? X(o) : ""}<h3>${n || s}</h3><div class="nexa-card-price-line"><b>${s}</b><span>${c}</span></div>${d ? `<p>${d}</p>` : ""}${u.length ? `<ul class="nexa-card-checklist">${u.map((e) => `<li>${e}</li>`).join("")}</ul>` : ""}${i ? `<footer class="nexa-card-foot">${J(i)}${l ? `<em>${l}</em>` : ""}</footer>` : ""}</div>${a}`;
2340
+ }
2341
+ function An(e, t, n, r) {
2342
+ let i = e.getAttribute("value") ?? e.getAttribute("metric") ?? "$24,780", a = e.getAttribute("label") ?? t, o = e.getAttribute("trend") ?? "+12.5%", s = e.getAttribute("data") ?? e.getAttribute("chart") ?? "42,58,54,71,65,88,96", c = !o.trim().startsWith("-");
2343
+ return `<div class="nexa-card-analytics"><div class="nexa-card-analytics-head"><span>${a}</span>${o ? `<b class="nexa-card-trend${c ? " is-up" : " is-down"}">${c ? "↑" : "↓"} ${o.replace(/^[-+]/, "")}</b>` : ""}</div><div class="nexa-card-analytics-value">${i}</div>${n ? `<p>${n}</p>` : ""}${vn(s)}</div>${r}`;
2344
+ }
2345
+ function jn(e, t, n, r) {
2346
+ let i = e.getAttribute("quote") ?? n, a = e.getAttribute("name") ?? t, o = e.getAttribute("role") ?? e.getAttribute("subtitle") ?? "", s = _n(e), c = Number(e.getAttribute("dots") ?? "3"), l = Number(e.getAttribute("active") ?? "1"), u = s ? `<img class="nexa-card-avatar" src="${s}" alt="" loading="lazy">` : `<span class="nexa-card-avatar is-initials" aria-hidden="true">${zn(a)}</span>`, d = c > 1 ? `<div class="nexa-card-dots" aria-hidden="true">${Array.from({ length: c }, (e, t) => `<i class="${t + 1 === l ? "is-active" : ""}"></i>`).join("")}</div>` : "";
2347
+ return `<div class="nexa-card-quote"><div class="nexa-card-quote-mark" aria-hidden="true">"</div><blockquote>${i}</blockquote><div class="nexa-card-quote-user">${u}<div><strong>${a}</strong>${o ? `<span>${o}</span>` : ""}</div></div>${d}</div>${r}`;
2348
+ }
2349
+ function Mn(e, t, n, r) {
2350
+ let i = bn(e);
2351
+ return `<div class="nexa-card-tasks" data-nexa-tasks><header><h3>${t}</h3><span class="nexa-card-count">${e.getAttribute("count") ?? String(i.length)}</span></header><ul>${i.map((e) => `<li class="is-${e.priority}${e.checked ? " is-done" : ""}"><label><input type="checkbox"${e.checked ? " checked" : ""}><span>${e.label}</span></label><em>${e.priority}</em></li>`).join("")}</ul>${n ? Y(n) : ""}</div>${r}`;
2352
+ }
2353
+ function Nn(e, t, n, r, i) {
2354
+ let a = e.getAttribute("name") ?? t, o = e.getAttribute("role") ?? e.getAttribute("subtitle") ?? "", s = e.getAttribute("location") ?? e.getAttribute("where") ?? "", c = Sn(e), l = _n(e), u = e.getAttribute("cta2");
2355
+ return `<div class="nexa-card-profile-stack">${l ? `<img class="nexa-card-avatar" src="${l}" alt="" loading="lazy">` : `<span class="nexa-card-avatar is-initials" aria-hidden="true">${zn(a)}</span>`}<strong>${a}</strong>${o ? `<span class="nexa-card-role">${o}</span>` : ""}${s ? `<span class="nexa-card-location">${s}</span>` : ""}${c.length ? `<div class="nexa-card-stats">${c.map((e) => `<div><b>${e.value}</b><span>${e.label}</span></div>`).join("")}</div>` : ""}${n ? `<p>${n}</p>` : ""}<div class="nexa-card-profile-actions">${u ? `<button class="nexa-card-icon-btn" type="button" aria-label="${u}">${W("mail", 18, "nexa-icon")}</button>` : ""}${r ? J(r) : ""}</div></div>${i}`;
2356
+ }
2357
+ function Pn(e, t, n, r, i, a) {
2358
+ let o = e.getAttribute("icon") ?? "zap", s = e.getAttribute("badge") ?? e.getAttribute("eyebrow") ?? t, c = i ?? "Learn more →";
2359
+ return `<div class="nexa-card-feature"><div class="nexa-card-icon">${W(o, 26, "nexa-icon")}</div>${s ? X(s) : ""}<h3>${n}</h3><p>${r}</p>${c ? Y(c) : ""}</div>${a}`;
2360
+ }
2361
+ function Fn(e, t, n, r, i, a) {
2362
+ let o = "";
2363
+ if (gn(e) || !G(e)) o = `<div class="nexa-card-media is-hero">${q(e, "cover", "", !0)}</div>`;
2364
+ else {
2365
+ let t = K(e);
2366
+ o = t ? `<div class="nexa-card-media"><img src="${t}" alt="" loading="lazy"></div>` : "<div class=\"nexa-card-media is-placeholder\" aria-hidden=\"true\"></div>";
2367
+ }
2368
+ return `${o}<div class="nexa-card-body"><small>${t}</small><h3>${n}</h3><p>${r}</p>${i ? `<footer class="nexa-card-foot">${J(i)}</footer>` : ""}</div>${a}`;
2369
+ }
2370
+ function In(e, t, n, r, i, a) {
2371
+ let o = (e.getAttribute("icon") ?? e.getAttribute("icons") ?? "zap").split(",").map((e) => e.trim()).filter(Boolean), s = (e) => W(e, 22, "nexa-icon");
2372
+ return `${o.length > 1 ? `<div class="nexa-card-icons">${o.map((e) => `<span class="nexa-card-icon-item">${s(e)}</span>`).join("")}</div>` : `<div class="nexa-card-icon">${s(o[0] ?? "zap")}</div>`}<div class="nexa-card-body"><small>${t}</small><h3>${n}</h3><p>${r}</p>${i ? `<footer class="nexa-card-foot">${J(i)}</footer>` : ""}</div>${a}`;
2373
+ }
2374
+ function Ln(e, t, n, r, i) {
2375
+ return `<div class="nexa-card-metric"><b>${e.getAttribute("value") ?? e.getAttribute("metric") ?? "99+"}</b><span>${e.getAttribute("label") ?? t}</span></div><p>${n}</p>${r ? `<footer class="nexa-card-foot">${J(r)}</footer>` : ""}${i}`;
2376
+ }
2377
+ function Rn(e, t, n, r, i, a) {
2378
+ let o = K(e);
2379
+ return `${o ? `<div class="nexa-card-media"><img src="${o}" alt="" loading="lazy"></div>` : ""}<small>${t}</small><h3>${n}</h3><p>${r}</p>${i ? `<footer class="nexa-card-foot">${J(i)}</footer>` : ""}${a}`;
2380
+ }
2381
+ function zn(e) {
2382
+ return e.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("") || "N";
2383
+ }
2384
+ //#endregion
2385
+ //#region resources/ui/src/components/card.ts
2386
+ var Bn = [
2387
+ "soft",
2388
+ "fade",
2389
+ "slide",
2390
+ "lift",
2391
+ "tilt",
2392
+ "flip",
2393
+ "magnetic",
2394
+ "float",
2395
+ "glow",
2396
+ "shine",
2397
+ "aurora",
2398
+ "bounce",
2399
+ "zoom",
2400
+ "pulse",
2401
+ "reveal"
2402
+ ], Vn = [
2403
+ "plain",
2404
+ "bordered",
2405
+ "elevated",
2406
+ "glass",
2407
+ "horizontal",
2408
+ "square",
2409
+ "interactive"
2410
+ ], Hn = {
2411
+ soft: {
2412
+ enter: "soft",
2413
+ hover: "soft"
2414
+ },
2415
+ fade: {
2416
+ enter: "fade",
2417
+ hover: "soft"
2418
+ },
2419
+ slide: {
2420
+ enter: "slide",
2421
+ hover: "lift"
2422
+ },
2423
+ lift: {
2424
+ enter: "slide",
2425
+ hover: "lift"
2426
+ },
2427
+ tilt: {
2428
+ enter: "fade",
2429
+ hover: "tilt",
2430
+ tilt: !0
2431
+ },
2432
+ flip: {
2433
+ enter: "fade",
2434
+ hover: "flip"
2435
+ },
2436
+ magnetic: {
2437
+ enter: "fade",
2438
+ hover: "magnetic",
2439
+ magnetic: !0
2440
+ },
2441
+ float: {
2442
+ enter: "float",
2443
+ hover: "none"
2444
+ },
2445
+ glow: {
2446
+ enter: "glow",
2447
+ hover: "glow"
2448
+ },
2449
+ shine: {
2450
+ enter: "shine",
2451
+ hover: "soft"
2452
+ },
2453
+ aurora: {
2454
+ enter: "aurora",
2455
+ hover: "none"
2456
+ },
2457
+ bounce: {
2458
+ enter: "bounce",
2459
+ hover: "soft"
2460
+ },
2461
+ zoom: {
2462
+ enter: "zoom",
2463
+ hover: "soft"
2464
+ },
2465
+ pulse: {
2466
+ enter: "pulse",
2467
+ hover: "none"
2468
+ },
2469
+ reveal: {
2470
+ enter: "reveal",
2471
+ hover: "soft",
2472
+ reveal: !0
2473
+ }
2474
+ };
2475
+ function Un(e, t) {
2476
+ return e.includes(t);
2477
+ }
2478
+ function Wn(e) {
2479
+ return Bn.find((t) => Un(e, t)) ?? "soft";
2480
+ }
2481
+ function Gn(e, t) {
2482
+ t.some((e) => Vn.includes(e)) || e.classList.add("nexa-elevated");
2483
+ let n = hn(t);
2484
+ if (n !== "default" && e.classList.add(`is-${n}`), Un(t, "static")) return;
2485
+ let r = Wn(t), i = Hn[r];
2486
+ e.classList.add(`nexa-anim-${i.enter}`), e.classList.add(`nexa-model-${r}`), e.setAttribute("data-nexa-hover", i.hover), i.tilt && e.setAttribute("data-nexa-tilt", ""), i.magnetic && e.setAttribute("data-nexa-magnetic", ""), i.reveal && e.setAttribute("data-nexa-reveal", "");
2487
+ let a = e.getAttribute("delay");
2488
+ a && e.style.setProperty("--nexa-anim-delay", `${a}ms`);
2489
+ }
2490
+ function Kn(e, t, n = []) {
2491
+ if (t.trim()) return t;
2492
+ let r = hn(n);
2493
+ return Cn(e, r, {
2494
+ badge: e.getAttribute("badge") ?? e.getAttribute("eyebrow") ?? "",
2495
+ title: e.getAttribute("title") ?? (r === "default" ? "Beautiful by default" : ""),
2496
+ text: (e.getAttribute("text") ?? e.getAttribute("desc") ?? "") || (r === "default" ? "Clean structure, refined spacing, and motion built in — one command." : ""),
2497
+ cta: e.getAttribute("cta") ?? void 0,
2498
+ tag: e.getAttribute("data-model-label") ? `<span class="nexa-card-model-tag">${e.getAttribute("data-model-label")}</span>` : ""
2499
+ });
2500
+ }
2501
+ //#endregion
2502
+ //#region resources/ui/src/components/extra.ts
2503
+ var Z = [
2504
+ "primary",
2505
+ "secondary",
2506
+ "outline",
2507
+ "ghost",
2508
+ "danger"
2509
+ ];
2510
+ function qn(e) {
2511
+ return e === "secondary" ? "nexa-cta is-secondary" : e === "outline" ? "nexa-cta is-outline" : e === "ghost" ? "nexa-cta is-ghost" : e === "danger" ? "nexa-cta is-danger" : "nexa-cta";
2512
+ }
2513
+ function Jn(e) {
2514
+ e.register("button-group", ({ element: e, modifiers: t }) => {
2515
+ let n = r(e.getAttribute("buttons") ?? e.getAttribute("labels") ?? "Save,Cancel"), i = r(e.getAttribute("variants") ?? "", /,/), a = s(t, "vertical");
2516
+ return a && e.classList.add("is-vertical"), `<div class="nexa-btn-group${a ? " is-vertical" : ""}">${n.map((e, n) => {
2517
+ let r = i[n] ?? t.find((e) => Z.includes(e)) ?? (n === 0 ? "primary" : "ghost");
2518
+ return `<button type="button" class="${qn(Z.includes(r) ? r : "ghost")}">${e}</button>`;
2519
+ }).join("")}</div>`;
2520
+ }), e.register("list-group", ({ element: e, modifiers: t }) => {
2521
+ let n = s(t, "flush"), r = l(e.getAttribute("items") ?? "Home|active;Profile;Settings|badge 3;Messages|badge 12");
2522
+ return n && e.classList.add("is-flush"), `<ul class="nexa-list-group">${r.map((e) => {
2523
+ let t = e.body.toLowerCase().includes("active"), n = e.body.match(/badge\s+(\S+)/i)?.[1];
2524
+ return `<li class="nexa-list-group-item${t ? " is-active" : ""}"><span>${e.head}</span>${n ? `<i>${n}</i>` : ""}</li>`;
2525
+ }).join("")}</ul>`;
2526
+ }), e.register("navbar", ({ element: e, modifiers: t }) => {
2527
+ e.setAttribute("data-nexa-navbar", ""), s(t, "fixed") && e.classList.add("is-fixed"), s(t, "dark") && e.classList.add("is-dark"), s(t, "light") && e.classList.add("is-light");
2528
+ let n = e.getAttribute("logo") ?? "Nexa", i = e.getAttribute("logo-image"), a = e.getAttribute("logo-href") ?? "#", o = e.getAttribute("cta") ?? "Get Started", c = e.getAttribute("cta-href") ?? "#", l = r(e.getAttribute("links") ?? "Home,Features,Pricing,About").map((e) => {
2529
+ let [t, n] = e.split("|").map((e) => e.trim());
2530
+ return `<a href="${n || "#"}">${t}</a>`;
2531
+ }).join("");
2532
+ return `<a class="nexa-navbar-brand nexa-logo" href="${a}">${i ? `<img src="${i}" alt="">` : ""}<span>${n}</span></a><button type="button" class="nexa-navbar-toggle" data-nav-toggle aria-label="Menu"><i></i><i></i><i></i></button><div class="nexa-navbar-menu" data-nav-menu><div class="nexa-navbar-links" role="navigation">${l}</div><a class="nexa-cta" href="${c}">${o}</a></div>`;
2533
+ }), e.register("input-group", ({ element: e, modifiers: t }) => {
2534
+ let n = t.find((e) => [
2535
+ "text",
2536
+ "email",
2537
+ "password",
2538
+ "search",
2539
+ "tel",
2540
+ "url",
2541
+ "number"
2542
+ ].includes(e)) ?? "text", r = e.getAttribute("label") ?? "Field", i = e.getAttribute("prefix") ?? e.getAttribute("prepend") ?? "", a = e.getAttribute("suffix") ?? e.getAttribute("append") ?? "", o = e.getAttribute("placeholder") ?? "", s = e.getAttribute("value") ?? "";
2543
+ return `<label class="nexa-input-group"><span>${r}</span><div class="nexa-input-group-row">${i ? `<i class="nexa-input-addon">${i}</i>` : ""}<input type="${n}" placeholder="${o}" value="${s}">${a ? `<i class="nexa-input-addon">${a}</i>` : ""}</div></label>`;
2544
+ }), e.register("close", ({ element: e }) => `<button type="button" class="nexa-close" data-nexa-close aria-label="${e.getAttribute("label") ?? "Close"}">×</button>`), e.register("switch", ({ element: e, modifiers: t }) => {
2545
+ let n = e.getAttribute("label") ?? "Toggle", r = s(t, "checked") || e.hasAttribute("checked");
2546
+ return `<label class="nexa-switch"><input type="checkbox" id="${`nexa-sw-${Math.random().toString(36).slice(2, 8)}`}"${r ? " checked" : ""}${s(t, "disabled") ? " disabled" : ""}><i aria-hidden="true"></i><span>${n}</span></label>`;
2547
+ }), e.register("scrollspy", ({ element: e }) => (e.setAttribute("data-nexa-scrollspy", ""), `<div class="nexa-scrollspy" role="navigation" aria-label="Scrollspy">${l(e.getAttribute("items") ?? "#one|Section 1;#two|Section 2;#three|Section 3").map((e, t) => `<a href="${e.head.startsWith("#") ? e.head : `#${e.head}`}" data-spy-link class="${t === 0 ? "is-active" : ""}">${e.body || e.head}</a>`).join("")}</div>`)), e.register("skeleton", ({ modifiers: e }) => {
2548
+ let t = Number(e.find((e) => /^lines-\d+$/.test(e))?.split("-")[1] ?? "0");
2549
+ return s(e, "card") ? "<div class=\"nexa-skeleton is-card\"><i></i><b></b><b class=\"is-short\"></b></div>" : s(e, "avatar") ? "<div class=\"nexa-skeleton is-avatar\"></div>" : t > 0 ? `<div class="nexa-skeleton is-lines">${Array.from({ length: t }, (e, n) => `<i class="${n === t - 1 ? "is-short" : ""}"></i>`).join("")}</div>` : "<div class=\"nexa-skeleton\"><i></i></div>";
2550
+ }), e.register("figure", ({ element: e, modifiers: t }) => {
2551
+ let [n, r] = (t.find((e) => /^ratio-/.test(e))?.replace("ratio-", "") ?? e.getAttribute("ratio") ?? "16x9").split("x").map(Number), i = e.getAttribute("image") ?? e.getAttribute("src") ?? "", a = e.getAttribute("caption") ?? e.getAttribute("text") ?? "", o = e.getAttribute("alt") ?? "";
2552
+ return e.style.setProperty("--nexa-ratio", `${n || 16}/${r || 9}`), `${i ? `<div class="nexa-figure-media"><img src="${i}" alt="${o}" loading="lazy"></div>` : "<div class=\"nexa-figure-media is-empty\"></div>"}${a ? `<figcaption>${a}</figcaption>` : ""}`;
2553
+ }), e.register("select", ({ element: e, modifiers: t }) => {
2554
+ let n = e.getAttribute("label") ?? "Select", i = r(e.getAttribute("options") ?? e.getAttribute("items") ?? "Option 1,Option 2,Option 3"), a = s(t, "float"), o = `${s(t, "required") ? "required" : ""} ${s(t, "disabled") ? "disabled" : ""}`.trim(), c = e.getAttribute("name"), l = c ? ` name="${c}"` : "", u = i.map((e, t) => `<option value="${e}"${t === 0 ? " selected" : ""}>${e}</option>`).join("");
2555
+ return a ? `<label class="nexa-field-float"><select${l} ${o}>${u}</select><span>${n}</span></label>` : `<label class="nexa-field-wrap"><span>${n}</span><select${l} ${o}>${u}</select></label>`;
2556
+ }), e.register("textarea", ({ element: e, modifiers: t }) => {
2557
+ let n = e.getAttribute("label") ?? "Message", r = e.getAttribute("rows") ?? "4", i = s(t, "float"), a = e.getAttribute("placeholder") ?? (i ? " " : ""), o = e.getAttribute("value") ?? e.textContent?.trim() ?? "", c = `${s(t, "required") ? "required" : ""} ${s(t, "disabled") ? "disabled" : ""}`.trim(), l = e.getAttribute("name"), u = l ? ` name="${l}"` : "";
2558
+ return i ? `<label class="nexa-field-float"><textarea${u} rows="${r}" placeholder="${a}" ${c}>${o}</textarea><span>${n}</span></label>` : `<label class="nexa-field-wrap"><span>${n}</span><textarea${u} rows="${r}" placeholder="${a}" ${c}>${o}</textarea></label>`;
2559
+ });
2560
+ }
2561
+ //#endregion
2562
+ //#region resources/ui/src/components/pickers.ts
2563
+ var Yn = [
2564
+ "يناير",
2565
+ "فبراير",
2566
+ "مارس",
2567
+ "أبريل",
2568
+ "مايو",
2569
+ "يونيو",
2570
+ "يوليو",
2571
+ "أغسطس",
2572
+ "سبتمبر",
2573
+ "أكتوبر",
2574
+ "نوفمبر",
2575
+ "ديسمبر"
2576
+ ], Xn = [
2577
+ "أحد",
2578
+ "إثن",
2579
+ "ثلا",
2580
+ "أرب",
2581
+ "خمي",
2582
+ "جمع",
2583
+ "سبت"
2584
+ ];
2585
+ function Q(e) {
2586
+ return String(e).padStart(2, "0");
2587
+ }
2588
+ function Zn(e) {
2589
+ if (!e) return null;
2590
+ let t = e.trim().match(/^(\d{4})-(\d{2})-(\d{2})$/);
2591
+ return t ? {
2592
+ y: Number(t[1]),
2593
+ m: Number(t[2]),
2594
+ d: Number(t[3])
2595
+ } : null;
2596
+ }
2597
+ function Qn(e, t, n) {
2598
+ return `${n} ${Yn[t - 1]} ${e}`;
2599
+ }
2600
+ function $n(e, t, n) {
2601
+ let r = new Date(e, t - 1, 1).getDay(), i = new Date(e, t, 0).getDate(), a = /* @__PURE__ */ new Date(), o = [];
2602
+ for (let e = 0; e < r; e++) o.push("<span class=\"nexa-cal-empty\"></span>");
2603
+ for (let r = 1; r <= i; r++) {
2604
+ let i = n && n.y === e && n.m === t && n.d === r, s = a.getFullYear() === e && a.getMonth() + 1 === t && a.getDate() === r;
2605
+ o.push(`<button type="button" class="nexa-cal-day${i ? " is-selected" : ""}${s ? " is-today" : ""}" data-day="${r}">${r}</button>`);
2606
+ }
2607
+ return o.join("");
2608
+ }
2609
+ function er(e) {
2610
+ e.register("datepicker", ({ element: e, modifiers: t }) => {
2611
+ e.setAttribute("data-nexa-datepicker", "");
2612
+ let n = e.getAttribute("label") ?? "التاريخ", r = e.getAttribute("placeholder") ?? "اختر تاريخاً", i = e.getAttribute("value") ?? "", a = Zn(i), o = /* @__PURE__ */ new Date(), c = a?.y ?? o.getFullYear(), l = a?.m ?? o.getMonth() + 1, u = a ? Qn(a.y, a.m, a.d) : "", d = s(t, "required") ? " required" : "", f = s(t, "disabled");
2613
+ return f && e.classList.add("is-disabled"), `<label class="nexa-picker-field"><span>${n}${d ? "<b>*</b>" : ""}</span><button type="button" class="nexa-picker-trigger" data-dp-toggle ${f ? "disabled" : ""} aria-haspopup="dialog" aria-expanded="false"><span data-dp-display class="${a ? "has-value" : ""}">${u || r}</span><i class="nexa-picker-ico" aria-hidden="true"></i></button><input type="hidden" data-dp-value value="${i}"${d}>
2614
+ <div class="nexa-datepicker-panel" data-dp-panel hidden role="dialog" aria-label="${n}">
2615
+ <div class="nexa-cal-head"><button type="button" data-dp-prev aria-label="السابق">‹</button><strong data-dp-title>${Yn[l - 1]} ${c}</strong><button type="button" data-dp-next aria-label="التالي">›</button></div>
2616
+ <div class="nexa-cal-weekdays">${Xn.map((e) => `<span>${e}</span>`).join("")}</div>
2617
+ <div class="nexa-cal-grid" data-dp-grid data-year="${c}" data-month="${l}">${$n(c, l, a)}</div>
2618
+ <div class="nexa-cal-foot"><button type="button" class="nexa-button nexa-ghost nexa-sm" data-dp-clear>مسح</button><button type="button" class="nexa-button nexa-primary nexa-sm nexa-pill" data-dp-today>اليوم</button></div>
2619
+ </div></label>`;
2620
+ }), e.register("timepicker", ({ element: e, modifiers: t }) => {
2621
+ e.setAttribute("data-nexa-timepicker", "");
2622
+ let n = e.getAttribute("label") ?? "الوقت", r = e.getAttribute("placeholder") ?? "اختر وقتاً", i = e.getAttribute("value") ?? "", a = Number(e.getAttribute("step") ?? "15"), o = [
2623
+ 5,
2624
+ 10,
2625
+ 15,
2626
+ 30
2627
+ ].includes(a) ? a : 15, c = 12, l = 0, u = i.trim().match(/^(\d{1,2}):(\d{2})$/);
2628
+ u && (c = Math.min(23, Number(u[1])), l = Math.min(59, Number(u[2])));
2629
+ let d = u ? `${Q(c)}:${Q(l)}` : "", f = s(t, "required") ? " required" : "", p = s(t, "disabled");
2630
+ p && e.classList.add("is-disabled");
2631
+ let m = Array.from({ length: 24 }, (e, t) => `<button type="button" class="nexa-tp-opt${t === c ? " is-selected" : ""}" data-tp-h="${t}">${Q(t)}</button>`).join(""), h = Array.from({ length: Math.floor(60 / o) }, (e, t) => {
2632
+ let n = t * o;
2633
+ return `<button type="button" class="nexa-tp-opt${n === l ? " is-selected" : ""}" data-tp-m="${n}">${Q(n)}</button>`;
2634
+ }).join("");
2635
+ return `<label class="nexa-picker-field"><span>${n}${f ? "<b>*</b>" : ""}</span><button type="button" class="nexa-picker-trigger" data-tp-toggle ${p ? "disabled" : ""} aria-haspopup="dialog" aria-expanded="false"><span data-tp-display class="${u ? "has-value" : ""}">${d || r}</span><i class="nexa-picker-ico is-clock" aria-hidden="true"></i></button><input type="hidden" data-tp-value value="${i}"${f}>
2636
+ <div class="nexa-timepicker-panel" data-tp-panel hidden role="dialog" aria-label="${n}">
2637
+ <div class="nexa-tp-cols"><div class="nexa-tp-col"><small>ساعة</small><div class="nexa-tp-list" data-tp-hours>${m}</div></div><div class="nexa-tp-col"><small>دقيقة</small><div class="nexa-tp-list" data-tp-mins>${h}</div></div></div>
2638
+ <div class="nexa-cal-foot"><button type="button" class="nexa-button nexa-ghost nexa-sm" data-tp-clear>مسح</button><button type="button" class="nexa-button nexa-primary nexa-sm nexa-pill" data-tp-apply>تم</button></div>
2639
+ </div></label>`;
2640
+ }), e.register("chip", ({ element: e, modifiers: t, content: n, label: r }) => {
2641
+ let i = n || r || e.getAttribute("text") || "Chip", a = s(t, "removable") || s(t, "x");
2642
+ return s(t, "active") && e.classList.add("is-active"), s(t, "outline") && e.classList.add("is-outline"), `<span class="nexa-chip-label">${i}</span>${a ? "<button type=\"button\" class=\"nexa-chip-x\" data-chip-remove aria-label=\"إزالة\">×</button>" : ""}`;
2643
+ }), e.register("rating", ({ element: e, modifiers: t }) => {
2644
+ e.setAttribute("data-nexa-rating", "");
2645
+ let n = Number(e.getAttribute("max") ?? "5") || 5, r = Number(e.getAttribute("value") ?? "0") || 0, i = s(t, "readonly") || s(t, "static");
2646
+ return i && e.classList.add("is-readonly"), `<div class="nexa-rating-row" role="slider" aria-valuemin="0" aria-valuemax="${n}" aria-valuenow="${r}">${Array.from({ length: n }, (e, t) => {
2647
+ let n = t + 1;
2648
+ return `<button type="button" class="nexa-star${n <= r ? " is-on" : ""}" data-star="${n}" aria-label="${n}" ${i ? "tabindex=\"-1\"" : ""}>★</button>`;
2649
+ }).join("")}</div><input type="hidden" data-rating-value value="${r}">`;
2650
+ }), e.register("stepper", ({ element: e }) => {
2651
+ e.setAttribute("data-nexa-stepper", "");
2652
+ let t = r(e.getAttribute("steps") ?? e.getAttribute("items") ?? "الحساب,التفاصيل,الدفع,تأكيد"), n = Math.max(0, Number(e.getAttribute("active") ?? "1") - 1);
2653
+ return `<ol class="nexa-stepper-list">${t.map((e, t) => `<li class="nexa-step ${t < n ? "is-done" : t === n ? "is-active" : ""}" data-step="${t + 1}"><i>${t < n ? "✓" : t + 1}</i><span>${e}</span></li>`).join("")}</ol>`;
2654
+ }), e.register("fab", ({ element: e, modifiers: t, content: n, label: r }) => {
2655
+ let i = n || r || e.getAttribute("label") || "+", a = e.getAttribute("href");
2656
+ (s(t, "extended") || i.length > 2) && e.classList.add("is-extended"), s(t, "bottom-start") && e.classList.add("is-start");
2657
+ let o = "nexa-fab-btn";
2658
+ return a ? `<a class="${o}" href="${a}"><span>${i}</span></a>` : `<button type="button" class="${o}"><span>${i}</span></button>`;
2659
+ }), e.register("chips", ({ element: e }) => r(e.getAttribute("items") ?? "تصميم,تطوير,تسويق").map((e) => `<span class="nexa-chip is-inline"><span class="nexa-chip-label">${e}</span></span>`).join("")), e.register("autocomplete", ({ element: e, modifiers: t }) => {
2660
+ e.setAttribute("data-nexa-autocomplete", "");
2661
+ let n = e.getAttribute("label") ?? "بحث", i = e.getAttribute("placeholder") ?? "اكتب للبحث…", a = e.getAttribute("value") ?? "", o = e.getAttribute("empty") ?? "لا نتائج", c = r(e.getAttribute("items") ?? e.getAttribute("options") ?? "Nexa,Bootstrap,Material,Tailwind,React,Vue"), l = s(t, "required"), u = s(t, "disabled");
2662
+ u && e.classList.add("is-disabled");
2663
+ let d = c.map((e, t) => `<button type="button" class="nexa-ac-option" role="option" data-ac-opt="${t}" data-value="${e.replace(/"/g, "&quot;")}">${e}</button>`).join("");
2664
+ return `<label class="nexa-picker-field nexa-ac-field"><span>${n}${l ? "<b>*</b>" : ""}</span><div class="nexa-ac-box"><input type="text" class="nexa-ac-input" data-ac-input value="${a.replace(/"/g, "&quot;")}" placeholder="${i}" autocomplete="off" role="combobox" aria-autocomplete="list" aria-expanded="false" ${u ? "disabled" : ""} ${l ? "required" : ""}><button type="button" class="nexa-ac-clear" data-ac-clear aria-label="مسح" hidden>×</button><i class="nexa-ac-caret" aria-hidden="true"></i></div><input type="hidden" data-ac-value value="${a.replace(/"/g, "&quot;")}"><div class="nexa-ac-menu" data-ac-menu hidden role="listbox"><div class="nexa-ac-list" data-ac-list>${d}</div><div class="nexa-ac-empty" data-ac-empty hidden>${o}</div></div></label>`;
2665
+ });
2666
+ }
2667
+ //#endregion
2668
+ //#region resources/ui/src/components/structure.ts
2669
+ function tr(e) {
2670
+ let t = [];
2671
+ for (let n of e) {
2672
+ let e = n.split(/[/>]/).map((e) => e.trim()).filter(Boolean), r = t;
2673
+ for (let t of e) {
2674
+ let e = r.find((e) => e.label === t);
2675
+ e || (e = {
2676
+ label: t,
2677
+ children: []
2678
+ }, r.push(e)), r = e.children;
2679
+ }
2680
+ }
2681
+ return t;
2682
+ }
2683
+ function nr(e, t = 0) {
2684
+ return e.map((e) => {
2685
+ let n = e.children.length > 0;
2686
+ return `<li class="nexa-tree-node" data-tree-node style="--depth:${t}">
2687
+ <button type="button" class="nexa-tree-row${n ? "" : " is-leaf"}" data-tree-toggle aria-expanded="${n ? "true" : "false"}">
2688
+ ${n ? "<i class=\"nexa-tree-caret\" aria-hidden=\"true\"></i>" : "<i class=\"nexa-tree-dot\" aria-hidden=\"true\"></i>"}
2689
+ <span>${e.label}</span>
2690
+ </button>
2691
+ ${n ? `<ul class="nexa-tree-children" data-tree-children>${nr(e.children, t + 1)}</ul>` : ""}
2692
+ </li>`;
2693
+ }).join("");
2694
+ }
2695
+ function rr(e) {
2696
+ e.register("tree", ({ element: e }) => (e.setAttribute("data-nexa-tree", ""), `<ul class="nexa-tree" role="tree">${nr(tr(r(e.getAttribute("items") ?? "Apps/Dashboard,Apps/Settings,Docs/API,Docs/Guides/Start,Docs/Guides/Theme")))}</ul>`)), e.register("timeline", ({ element: e, modifiers: t }) => {
2697
+ let n = r(e.getAttribute("items") ?? e.getAttribute("steps") ?? "إطلاق|اليوم|Nexa 0.1 جاهز للفحص;Pickers|أمس|Date · Time · Autocomplete;Foundation|آب|Header · Hero · Cards", /;/).map((e) => {
2698
+ let [t, n, r] = e.split("|").map((e) => e.trim());
2699
+ return {
2700
+ title: t || "حدث",
2701
+ meta: n || "",
2702
+ body: r || ""
2703
+ };
2704
+ });
2705
+ return s(t, "compact") && e.classList.add("is-compact"), `<ol class="nexa-timeline">${n.map((e) => `<li class="nexa-timeline-item"><i aria-hidden="true"></i><div><small>${e.meta}</small><h4>${e.title}</h4>${e.body ? `<p>${e.body}</p>` : ""}</div></li>`).join("")}</ol>`;
2706
+ }), e.register("transfer", ({ element: e }) => {
2707
+ e.setAttribute("data-nexa-transfer", "");
2708
+ let t = r(e.getAttribute("source") ?? e.getAttribute("items") ?? "Dashboard,Billing,Team,API Keys,Webhooks,Logs"), n = r(e.getAttribute("target") ?? e.getAttribute("selected") ?? ""), i = e.getAttribute("left-label") ?? "Available", a = e.getAttribute("right-label") ?? "Selected", o = e.getAttribute("add-label") ?? "Add", s = e.getAttribute("remove-label") ?? "Remove", c = e.getAttribute("empty-label") ?? "Empty", l = t.filter((e) => !n.includes(e)), u = (e, t) => e.map((e) => `<button type="button" class="nexa-transfer-opt" data-transfer-opt data-side="${t}" data-value="${e.replace(/"/g, "&quot;")}">${e}</button>`).join("") || `<span class="nexa-transfer-empty">${c}</span>`;
2709
+ return `<div class="nexa-transfer">
2710
+ <div class="nexa-transfer-col"><b>${i}</b><div class="nexa-transfer-list" data-transfer-left>${u(l, "left")}</div></div>
2711
+ <div class="nexa-transfer-actions">
2712
+ <button type="button" class="nexa-button nexa-primary nexa-sm nexa-pill" data-transfer-to-right>${o}</button>
2713
+ <button type="button" class="nexa-button nexa-outline nexa-sm" data-transfer-to-left>${s}</button>
2714
+ </div>
2715
+ <div class="nexa-transfer-col"><b>${a}</b><div class="nexa-transfer-list" data-transfer-right>${u(n, "right")}</div></div>
2716
+ </div>`;
2717
+ });
2718
+ }
2719
+ //#endregion
2720
+ //#region resources/ui/src/core/toast.ts
2721
+ var ir = {
2722
+ success: "✓",
2723
+ warning: "!",
2724
+ danger: "✕",
2725
+ info: "i"
2726
+ };
2727
+ function ar(e) {
2728
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
2729
+ }
2730
+ function or(e, t = "info") {
2731
+ let n = ar(e || "Done");
2732
+ return `<span class="nexa-toast-icon nexa-toast-icon-${t}" aria-hidden="true">${ir[t]}</span><p>${n}</p><button type="button" data-toast-close aria-label="Close">×</button>`;
2733
+ }
2734
+ function sr() {
2735
+ let e = document.querySelector(".nexa-toast-stack");
2736
+ return e || (e = document.createElement("div"), e.className = "nexa-toast-stack", e.setAttribute("aria-live", "polite"), e.setAttribute("aria-relevant", "additions"), document.body.appendChild(e)), e;
2737
+ }
2738
+ function cr(e, t) {
2739
+ let n = () => {
2740
+ e.classList.add("is-leaving"), window.setTimeout(() => e.remove(), 220);
2741
+ };
2742
+ return e.querySelector("[data-toast-close]")?.addEventListener("click", n), t > 0 && window.setTimeout(n, t), n;
2743
+ }
2744
+ function lr(e) {
2745
+ let t = typeof e == "string" ? { text: e } : e, n = t.tone ?? "info", r = t.duration ?? 3200, i = t.text || "Done", a = sr(), o = document.createElement("div");
2746
+ return o.className = `nexa-toast nexa-toast-${n}`, o.setAttribute("data-nexa-toast", ""), o.setAttribute("role", "status"), o.innerHTML = or(i, n), a.appendChild(o), cr(o, r), o;
2747
+ }
2748
+ function ur() {
2749
+ document.querySelectorAll(".nexa-toast-stack .nexa-toast").forEach((e) => e.remove());
2750
+ }
2751
+ //#endregion
2752
+ //#region resources/ui/src/components/index.ts
2753
+ function dr(a) {
2754
+ Jn(a), e(a), fn(a), er(a), rr(a), a.register("button", ({ modifiers: e, content: t, label: n, element: r }) => {
2755
+ s(e, "disabled") && r.setAttribute("disabled", ""), s(e, "loading") && (r.setAttribute("aria-busy", "true"), r.classList.add("is-loading"));
2756
+ let i = t || n || "Button";
2757
+ return s(e, "loading") ? `<span class="nexa-btn-spin" aria-hidden="true"></span><span>${i}</span>` : `<span>${i}</span>`;
2758
+ }), a.register("input", () => ""), a.register("card", ({ content: e, modifiers: t, element: n }) => (Gn(n, t), Kn(n, e, t))), a.register("grid", ({ content: e }) => e), a.register("stack", ({ content: e }) => e), a.register("container", ({ content: e }) => e), a.register("form", ({ content: e, modifiers: t, element: n }) => (s(t, "validate") && (n.setAttribute("data-nexa-form", "validate"), n.setAttribute("novalidate", "")), e)), a.register("badge", ({ content: e }) => e || "New"), a.register("field", ({ modifiers: e, element: t }) => {
2759
+ let n = [
2760
+ "text",
2761
+ "email",
2762
+ "password",
2763
+ "number",
2764
+ "date",
2765
+ "file",
2766
+ "search",
2767
+ "tel",
2768
+ "url",
2769
+ "color",
2770
+ "range",
2771
+ "checkbox",
2772
+ "radio",
2773
+ "hidden"
2774
+ ].find((t) => s(e, t)) ?? "text", r = t.getAttribute("label") ?? (n === "password" ? "Password" : n === "email" ? "Email address" : "Field"), i = t.getAttribute("hint"), a = t.getAttribute("message"), o = s(e, "error") ? "is-error" : s(e, "success") ? "is-success" : "", c = `${s(e, "required") ? "required" : ""} ${s(e, "disabled") ? "disabled" : ""} ${s(e, "readonly") ? "readonly" : ""}`.trim(), l = t.getAttribute("name") ?? "", u = t.getAttribute("id") ?? "", d = t.getAttribute("autocomplete") ?? "", f = `${l ? ` name="${l}"` : ""}${u ? ` id="${u}"` : ""}${d ? ` autocomplete="${d}"` : ""}`;
2775
+ if (n === "hidden") return `<input type="hidden" name="${l || "hidden-field"}" value="${t.getAttribute("value") ?? ""}">`;
2776
+ if (n === "checkbox" || n === "radio") {
2777
+ let i = s(e, "checked") || t.hasAttribute("checked"), a = l ? ` name="${l}"` : "";
2778
+ return `<label class="nexa-choice ${n === "radio" ? "is-radio" : "is-check"}"><input type="${n}"${a} ${c}${i ? " checked" : ""}><i aria-hidden="true"></i><span>${r}</span></label>`;
2779
+ }
2780
+ return s(e, "float") ? `<label class="nexa-field-float ${o}"><input type="${n}"${f} placeholder=" " value="${t.getAttribute("value") ?? ""}" ${c}><span>${r}${s(e, "required") ? "<b>*</b>" : ""}</span>${a ? `<em>${a}</em>` : ""}</label>` : `<label class="nexa-field-wrap ${o}"><span>${r}${s(e, "required") ? "<b>*</b>" : ""}</span><input type="${n}"${f} placeholder="${t.getAttribute("placeholder") ?? ""}" value="${t.getAttribute("value") ?? ""}" ${c}>${i ? `<small>${i}</small>` : ""}${a ? `<em>${a}</em>` : ""}</label>`;
2781
+ }), a.register("header", ({ modifiers: e, element: n }) => {
2782
+ let r = s(e, "vision"), i = s(e, "simple"), a = s(e, "mega"), o = s(e, "bar") ? "bar" : s(e, "dock") ? "dock" : s(e, "float") || s(e, "overlay") || r ? "float" : "bar";
2783
+ s(e, "dark") && n.classList.add("is-dark"), s(e, "light") && n.classList.add("is-light"), (s(e, "glass") || o === "bar" && !i) && n.classList.add("nexa-glass"), a && n.classList.add("is-mega"), n.classList.add(i ? "is-simple" : "is-complete"), n.classList.add(`is-${o}`), r && n.classList.add("is-vision"), o === "float" && n.setAttribute("data-nexa-header-scroll", "");
2784
+ let c = n.getAttribute("logo") ?? "Nexa", l = n.getAttribute("logo-image") ?? A.mark, u = n.getAttribute("logo-wordmark") ?? n.getAttribute("logo-text-image") ?? (r ? A.wordmark : void 0), d = n.getAttribute("logo-href") ?? "#", f = n.getAttribute("cta") ?? "Get started", p = n.getAttribute("cta-href") ?? "#", m = `<div class="nexa-navlinks">${t(n, r || !i ? [
2785
+ "Features",
2786
+ "Docs",
2787
+ "Components",
2788
+ "Templates",
2789
+ "Community",
2790
+ "Blog"
2791
+ ] : ["Features", "Docs"])}</div>`, h = a ? "<div class=\"nexa-mega-panel\"><div><b>Product</b><a href=\"#\">Components</a><a href=\"#\">Color Map</a><a href=\"#\">Themes</a></div><div><b>Solutions</b><a href=\"#\">SaaS</a><a href=\"#\">Agency</a><a href=\"#\">Startup</a></div><div><b>Resources</b><a href=\"#\">Docs</a><a href=\"#\">Examples</a></div></div>" : "", g = l, _ = g === A.mark || g.endsWith("/nexa-mark.png") ? ` srcset="${Re(40)}" sizes="40px"` : "";
2792
+ return `<a class="nexa-logo" href="${d}">${`<img class="nexa-mark" src="${g === A.mark ? A.mark128 : g}" alt="" width="40" height="40" decoding="async"${_}>`}${u ? `<img class="nexa-wordmark" src="${u}" alt="${c}" decoding="async">` : `<span>${c}</span>`}</a>${m}${i ? `<div class="nexa-header-actions"><a class="nexa-cta" href="${p}">${f}</a></div>` : `<div class="nexa-header-actions"><a class="nexa-cta" href="${p}">${f}</a><button class="nexa-menu-btn" type="button" aria-label="Menu"><i></i><i></i><i></i></button></div>`}${h}`;
2793
+ }), a.register("hero", ({ modifiers: e, element: t }) => {
2794
+ let n = s(e, "vision"), r = s(e, "centered"), i = s(e, "minimal"), a = s(e, "image-left"), c = s(e, "image-right");
2795
+ i ? t.classList.add("is-minimal") : r ? t.classList.add("is-centered") : t.classList.add(a ? "is-image-left" : c ? "is-image-right" : "is-split"), s(e, "luxury") && t.classList.add("is-luxury"), n && t.classList.add("is-vision");
2796
+ let l = t.getAttribute("eyebrow") ?? t.getAttribute("small") ?? "", u = o(t.getAttribute("title") ?? (i ? "Build with|one command." : "Modern frameworks for digital|experiences")), d = t.getAttribute("text") ?? t.getAttribute("desc") ?? "Nexa Framework is a complete toolkit for building modern web apps — fast, secure, and ready to scale.", f = t.getAttribute("cta") ?? "Get started", p = t.getAttribute("cta2") ?? "Explore features", m = t.getAttribute("cta-href"), h = t.getAttribute("cta2-href"), g = `<div class="nexa-hero-actions">${m ? `<a class="nexa-cta" href="${m}"><span>${f}</span><i class="nexa-cta-arrow" aria-hidden="true"></i></a>` : `<button class="nexa-cta" type="button"><span>${f}</span><i class="nexa-cta-arrow" aria-hidden="true"></i></button>`}${h ? `<a class="nexa-cta is-ghost" href="${h}">${p}</a>` : `<button class="nexa-cta is-ghost" type="button">${p}</button>`}</div>`, _ = `<div class="nexa-hero-copy">${l ? `<small>${l}</small>` : ""}<h2>${u}</h2><p>${d}</p>${g}</div>`, v = t.getAttribute("image") ?? t.getAttribute("img"), y = v ? `<div class="nexa-hero-media"><img src="${v}" alt="" loading="lazy"></div>` : i ? "" : Ve();
2797
+ return r ? `${_}<div class="nexa-hero-glow"></div>` : a ? `${y}${_}` : `${_}${y}`;
2798
+ }), a.register("features", ({ modifiers: e, element: t }) => {
2799
+ let n = Number(e.find((e) => /^cards-[1-4]$/.test(e))?.split("-")[1] ?? "3");
2800
+ return `<div class="nexa-section-head"><div><small>${t.getAttribute("eyebrow") ?? "WHY NEXA"}</small><h2>${t.getAttribute("title") ?? "Simple without compromise."}</h2></div></div><div class="nexa-card-grid" style="--cols:${n}">${i(t, n).map((e, t) => `<article style="--card-i:${t}"><b>${e[0]}</b><h3>${e[1]}</h3><p>${e[2]}</p></article>`).join("")}</div>`;
2801
+ }), a.register("logos", ({ element: e }) => {
2802
+ let t = e.getAttribute("label") ?? e.getAttribute("eyebrow") ?? "TRUSTED BY TEAMS BUILDING THE FUTURE", n = r(e.getAttribute("brands") ?? e.getAttribute("logos"));
2803
+ return `<small>${t}</small><div>${(n.length ? n : [
2804
+ "ORBIT",
2805
+ "APEX",
2806
+ "MONO",
2807
+ "VERVE",
2808
+ "SHIFT"
2809
+ ]).map((e) => `<b>${e}</b>`).join("")}</div>`;
2810
+ }), a.register("pricing", ({ element: e }) => {
2811
+ let t = e.getAttribute("eyebrow") ?? "SIMPLE PRICING", r = e.getAttribute("title") ?? "Start small. Scale without limits.", i = n(e), a = e.getAttribute("cta-href");
2812
+ return `<div class="nexa-section-head"><small>${t}</small><h2>${r}</h2></div><div class="nexa-price-grid">${i.map((e) => `<article class="${e.popular ? "is-popular" : ""}">${e.popular ? "<i>POPULAR</i>" : ""}<span>${e.name}</span><h3>$${e.price}<small>/month</small></h3><p>${e.desc}</p><ul>${e.features.map((e) => `<li>${e}</li>`).join("")}</ul>${a ? `<a class="nexa-cta" href="${a}">${e.cta}</a>` : `<button class="nexa-cta" type="button">${e.cta}</button>`}</article>`).join("")}</div>`;
2813
+ }), a.register("testimonials", ({ modifiers: e, element: t }) => {
2814
+ s(e, "featured") && t.classList.add("is-featured");
2815
+ let n = l(t.getAttribute("slides") ?? t.getAttribute("quotes"));
2816
+ if (n.length > 1) return t.classList.add("has-slides"), `<small>${t.getAttribute("eyebrow") ?? "TESTIMONIALS"}</small><div class="nexa-testimonial-slides">${n.map((e) => `<blockquote>“${e.body || e.head}”</blockquote>`).join("")}</div>`;
2817
+ let r = t.getAttribute("quote") ?? n[0]?.body ?? "Nexa shortened the distance between our idea and the product.", i = t.getAttribute("name") ?? "LAYLA HADDAD", a = t.getAttribute("role") ?? "Product Designer · Dubai";
2818
+ return `<small>${t.getAttribute("eyebrow") ?? "FROM OUR COMMUNITY"}</small><blockquote>“${r}”</blockquote><div><b>${i}</b><span>${a}</span></div>`;
2819
+ }), a.register("cta", ({ modifiers: e, element: t }) => {
2820
+ s(e, "bold") && t.classList.add("is-bold", "nexa-bold");
2821
+ let n = t.getAttribute("eyebrow") ?? "YOUR NEXT IDEA", r = o(t.getAttribute("title") ?? "Ready when|you are."), i = t.getAttribute("cta") ?? "Start building now →", a = t.getAttribute("cta-href");
2822
+ return `<small>${n}</small><h2>${r}</h2>${a ? `<a class="nexa-cta" href="${a}">${i}</a>` : `<button class="nexa-cta" type="button">${i}</button>`}`;
2823
+ }), a.register("footer", ({ modifiers: e, element: t }) => {
2824
+ s(e, "dark") && t.classList.add("is-dark"), s(e, "mega") && t.classList.add("is-mega");
2825
+ let n = s(e, "simple");
2826
+ n && t.classList.add("is-simple");
2827
+ let r = t.getAttribute("copy") ?? "© 2026 Nexa Framework", i = t.getAttribute("logo") ?? "Nexa", a = t.getAttribute("logo-image"), c = t.getAttribute("logo-href") ?? "#", u = t.getAttribute("tagline") ?? "Build. Ship. Scale.", d = `<a class="nexa-logo" href="${c}">${a ? `<img src="${a}" alt="">` : ""}<span>${i}</span></a>`, f = (e, n) => l(t.getAttribute(e) ?? n).map((e) => `<a href="${e.body}">${e.head}</a>`).join("");
2828
+ if (n) return `<div class="nexa-footer-simple">${d}<span>${r}</span></div>`;
2829
+ let p = t.getAttribute("headline") ?? t.getAttribute("title"), m = p ? `<h2 class="nexa-footer-headline">${o(p)}</h2>` : "";
2830
+ return `<div class="nexa-footer-top"><div>${d}<p class="nexa-footer-tag">${u}</p></div><div class="nexa-footer-cols"><div><b>Product</b>${f("product-links", "Features|/site/features.html;Components|/site/components.html;Pricing|/site/pricing.html")}</div><div><b>Resources</b>${f("resource-links", "About|/site/about.html;Blog|/site/blog.html;Contact|/site/contact.html")}</div><div><b>Company</b>${f("company-links", "Privacy|#;Terms|#;GitHub|#")}</div></div></div>${m}<div class="nexa-footer-bottom"><span>${r}</span><nav>${f("social-links", "GitHub|#;Community|#;Updates|#")}</nav></div>`;
2831
+ }), a.register("alert", ({ modifiers: e, element: t }) => {
2832
+ let n = e.find((e) => [
2833
+ "success",
2834
+ "warning",
2835
+ "danger",
2836
+ "info"
2837
+ ].includes(e)) ?? "info", r = t.getAttribute("title") ?? {
2838
+ success: "نجاح",
2839
+ warning: "تنبيه",
2840
+ danger: "خطأ",
2841
+ info: "معلومة"
2842
+ }[n], i = t.getAttribute("text") ?? t.textContent?.trim() ?? "تنبيه";
2843
+ return `<div class="nexa-alert-inner nexa-alert-${n}" role="alert"><i class="nexa-alert-ico" aria-hidden="true">${{
2844
+ success: "✓",
2845
+ warning: "!",
2846
+ danger: "×",
2847
+ info: "i"
2848
+ }[n]}</i><div><b>${r}</b><p>${i}</p></div></div>`;
2849
+ }), a.register("modal", ({ element: e, modifiers: t }) => {
2850
+ e.setAttribute("data-nexa-modal", ""), s(t, "open") && e.classList.add("is-open");
2851
+ let n = e.getAttribute("title") ?? "نافذة", r = e.getAttribute("text") ?? "محتوى النافذة", i = e.getAttribute("cta") ?? "تم";
2852
+ return `<div class="nexa-modal-backdrop" data-modal-close></div><div class="nexa-modal-card" role="dialog" aria-modal="true"><header><h3>${n}</h3><button type="button" class="nexa-modal-x" data-modal-close aria-label="Close">×</button></header><div class="nexa-modal-body"><p>${r}</p></div><footer class="nexa-modal-foot"><button type="button" class="nexa-button nexa-ghost" data-modal-close>${e.getAttribute("cancel") ?? "إلغاء"}</button><button type="button" class="nexa-button nexa-primary nexa-pill" data-modal-close>${i}</button></footer></div>`;
2853
+ }), a.register("accordion", ({ element: e }) => `<div class="nexa-accordion" data-nexa-accordion>${l(e.getAttribute("items") ?? "What is Nexa?|Commands that render full components.;Color map?|One hex colors the whole site.;Is it like Tailwind?|No — complete blocks first.").map((e) => `<article data-acc-item><button type="button" data-acc-trigger aria-expanded="false"><span>${e.head}</span><i class="nexa-acc-caret" aria-hidden="true"></i></button><div data-acc-panel>${e.body}</div></article>`).join("")}</div>`), a.register("tabs", ({ element: e, modifiers: t }) => {
2854
+ let n = l(e.getAttribute("tabs") ?? "Tab 1|Content one;Tab 2|Content two;Tab 3|Content three");
2855
+ return (s(t, "pills") || s(t, "segmented")) && e.classList.add("is-pills"), `<div class="nexa-tabs" data-nexa-tabs><div class="nexa-tablist" role="tablist">${n.map((e, t) => `<button type="button" data-tab class="${t === 0 ? "is-active" : ""}">${e.head}</button>`).join("")}</div><div class="nexa-tabpanels">${n.map((e, t) => `<div data-panel ${t ? "hidden" : ""}>${e.body}</div>`).join("")}</div></div>`;
2856
+ }), a.register("dropdown", ({ element: e, modifiers: t, label: n }) => {
2857
+ let i = (n ?? "").trim().split(/\s+/).filter((e) => {
2858
+ let t = e.toLowerCase();
2859
+ return ![
2860
+ "primary",
2861
+ "ghost",
2862
+ "open",
2863
+ "end",
2864
+ "e",
2865
+ "drop",
2866
+ "menu",
2867
+ "dd"
2868
+ ].includes(t);
2869
+ }).join(" "), a = e.getAttribute("label") || i || "Menu", o = r(e.getAttribute("items") ?? e.getAttribute("menu") ?? "Profile,Settings,Billing,—,Logout|danger").map((e) => {
2870
+ if (e === "—" || e === "-" || e === "---" || e === "sep" || e === "|") return { sep: !0 };
2871
+ let [t, n, r] = e.split("|").map((e) => e.trim());
2872
+ return {
2873
+ sep: !1,
2874
+ text: t || "Item",
2875
+ href: !n || n === "danger" || n === "x" ? "#" : n,
2876
+ danger: r === "danger" || n === "danger" || n === "x"
2877
+ };
2878
+ }), c = s(t, "open"), l = s(t, "end"), u = s(t, "primary") ? " is-primary" : s(t, "ghost") ? " is-ghost" : "";
2879
+ l && e.classList.add("is-end"), c && e.classList.add("is-open");
2880
+ let d = o.map((e) => {
2881
+ if (e.sep) return "<hr class=\"nexa-drop-sep\">";
2882
+ let t = e.danger ? " is-danger" : "";
2883
+ return `<a href="${e.href}" role="menuitem" class="nexa-drop-item${t}">${e.text}</a>`;
2884
+ }).join("");
2885
+ return `<div class="nexa-dropdown${c ? " is-open" : ""}${l ? " is-end" : ""}" data-nexa-dropdown><button type="button" class="nexa-drop-trigger${u}" data-drop-toggle aria-haspopup="menu" aria-expanded="${c ? "true" : "false"}"><span>${a}</span><i class="nexa-drop-caret" aria-hidden="true"></i></button><div class="nexa-drop-menu" data-drop-menu role="menu">${d}</div></div>`;
2886
+ }), a.register("spinner", ({ modifiers: e }) => `<span class="nexa-spinner${s(e, "large") || s(e, "lg") ? " is-lg" : s(e, "small") || s(e, "sm") ? " is-sm" : ""}" role="status" aria-label="Loading"></span>`), a.register("progress", ({ element: e }) => {
2887
+ let t = Math.min(100, Math.max(0, Number(e.getAttribute("value") ?? "60")));
2888
+ return `<label class="nexa-progress"><span><b>${e.getAttribute("label") ?? "Progress"}</b><i>${t}%</i></span><i style="--val:${t}%"></i></label>`;
2889
+ }), a.register("toast", ({ modifiers: e, element: t }) => {
2890
+ let n = e.find((e) => [
2891
+ "success",
2892
+ "warning",
2893
+ "danger",
2894
+ "info"
2895
+ ].includes(e)) ?? "info", r = t.getAttribute("text") ?? "Saved successfully";
2896
+ return t.classList.add("is-static-preview", `nexa-toast-${n}`), t.setAttribute("data-nexa-toast", ""), t.setAttribute("role", "status"), or(r, n);
2897
+ }), a.register("breadcrumb", ({ element: e }) => {
2898
+ let t = r(e.getAttribute("items") ?? "Home,Products,Item");
2899
+ return `<div class="nexa-breadcrumb" role="navigation" aria-label="Breadcrumb">${t.map((e, n) => n < t.length - 1 ? `<a href="#">${e}</a><span>/</span>` : `<span aria-current="page">${e}</span>`).join("")}</div>`;
2900
+ }), a.register("pagination", ({ element: e }) => {
2901
+ let t = Number(e.getAttribute("pages") ?? "5"), n = Number(e.getAttribute("current") ?? "1");
2902
+ return `<div class="nexa-pagination" role="navigation" aria-label="Pagination"><a href="#" class="nexa-page is-nav" aria-label="Previous">‹</a>${Array.from({ length: t }, (e, t) => {
2903
+ let r = t + 1;
2904
+ return `<a href="#" class="nexa-page${r === n ? " is-active" : ""}" aria-current="${r === n ? "page" : "false"}">${r}</a>`;
2905
+ }).join("")}<a href="#" class="nexa-page is-nav" aria-label="Next">›</a></div>`;
2906
+ }), a.register("divider", () => "<hr class=\"nexa-divider\">"), a.register("avatar", ({ element: e, modifiers: t }) => {
2907
+ let n = e.getAttribute("name") ?? "N", r = s(t, "large") || s(t, "lg") ? " is-lg" : s(t, "small") || s(t, "sm") ? " is-sm" : "", i = e.getAttribute("src") ?? e.getAttribute("image"), a = s(t, "male") || s(t, "user") || e.getAttribute("user") === "male", o = i || (a ? "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=160&h=160&fit=crop&crop=face" : "");
2908
+ return o ? `<span class="nexa-avatar${r} is-photo"><img src="${o}" alt="${n}" loading="lazy"></span>` : `<span class="nexa-avatar${r}" aria-label="${n}">${n.slice(0, 2).toUpperCase()}</span>`;
2909
+ }), a.register("auth", ({ element: e, modifiers: t }) => (s(t, "compact") && e.classList.add("is-compact"), `<div class="nexa-auth-card"><small>NEXA</small><h2>${e.getAttribute("title") ?? "Welcome back"}</h2><p>${e.getAttribute("subtitle") ?? "Sign in to continue"}</p><div class="nexa-auth-fields"><label class="nexa-field-wrap"><span>Email<b>*</b></span><input type="email" placeholder="you@email.com" required></label><label class="nexa-field-wrap"><span>Password<b>*</b></span><input type="password" placeholder="••••••••" required></label><div class="nexa-auth-actions"><button class="nexa-cta nexa-block" type="button">Sign in</button><button class="nexa-cta is-ghost nexa-block" type="button">Create account</button></div></div></div>`)), a.register("carousel", ({ element: e, modifiers: t }) => {
2910
+ let n = l(e.getAttribute("slides") ?? "Slide 1|First content.;Slide 2|Second content.;Slide 3|Third content.");
2911
+ return (s(t, "autoplay") || s(t, "auto")) && (e.setAttribute("data-autoplay", ""), e.setAttribute("data-interval", e.getAttribute("interval") ?? "4000")), `<div class="nexa-carousel" data-nexa-carousel><div class="nexa-carousel-track">${n.map((e, t) => `<article data-slide ${t ? "hidden" : ""}><h3>${e.head}</h3><p>${e.body}</p></article>`).join("")}</div><div class="nexa-carousel-bar"><button type="button" class="nexa-carousel-btn" data-carousel-prev aria-label="Previous">‹</button><div class="nexa-carousel-dots">${n.map((e, t) => `<button type="button" class="nexa-carousel-dot${t === 0 ? " is-active" : ""}" data-carousel-dot="${t}" aria-label="Slide ${t + 1}"></button>`).join("")}</div><button type="button" class="nexa-carousel-btn" data-carousel-next aria-label="Next">›</button></div></div>`;
2912
+ }), a.register("sheet", ({ element: e, modifiers: t }) => {
2913
+ e.setAttribute("data-nexa-sheet", ""), s(t, "open") && e.classList.add("is-open");
2914
+ let n = e.getAttribute("title") ?? "خيارات", r = e.getAttribute("text") ?? (e.innerHTML.trim() || "محتوى الـ bottom sheet"), i = e.getAttribute("cta") ?? "تم";
2915
+ return `<div class="nexa-sheet-backdrop" data-sheet-close></div><div class="nexa-sheet-panel" role="dialog" aria-modal="true"><i class="nexa-sheet-handle" aria-hidden="true"></i><header><h3>${n}</h3><button type="button" class="nexa-modal-x" data-sheet-close aria-label="Close">×</button></header><div class="nexa-sheet-body"><p>${r}</p></div><footer class="nexa-sheet-foot"><button type="button" class="nexa-button nexa-ghost" data-sheet-close>${e.getAttribute("cancel") ?? "إلغاء"}</button><button type="button" class="nexa-button nexa-primary nexa-pill" data-sheet-close>${i}</button></footer></div>`;
2916
+ }), a.register("offcanvas", ({ element: e, modifiers: t }) => (e.setAttribute("data-nexa-offcanvas", ""), s(t, "open") && e.classList.add("is-open"), `<div class="nexa-offcanvas-backdrop" data-offcanvas-close></div><aside class="nexa-offcanvas-panel ${s(t, "right") ? "is-right" : "is-left"}"><header><h3>${e.getAttribute("title") ?? "القائمة"}</h3><button type="button" data-offcanvas-close aria-label="Close">×</button></header><div class="nexa-offcanvas-body">${e.getAttribute("text") ?? (e.innerHTML.trim() || "محتوى اللوحة الجانبية")}</div></aside>`)), a.register("popover", ({ element: e, modifiers: t }) => {
2917
+ let n = e.getAttribute("label") ?? "Info", r = e.getAttribute("text") ?? "Popover content";
2918
+ return `<div class="nexa-popover" data-nexa-popover><button type="button" class="nexa-cta is-ghost" data-pop-trigger>${n}</button><div class="nexa-popover-card" data-pop-card ${s(t, "open") ? "" : "hidden"}><p>${r}</p></div></div>`;
2919
+ }), a.register("tooltip", ({ element: e }) => {
2920
+ let t = e.getAttribute("text") ?? e.getAttribute("tip") ?? "Tooltip", n = e.textContent?.trim() || e.getAttribute("label") || "?";
2921
+ return `<span class="nexa-tooltip-wrap" data-nexa-tooltip="${t.replace(/"/g, "&quot;")}">${n}<i class="nexa-tooltip-bubble" role="tooltip">${t}</i></span>`;
2922
+ }), a.register("list", ({ element: e, modifiers: t }) => {
2923
+ let n = r(e.getAttribute("items") ?? "Item one,Item two,Item three"), i = s(t, "ordered") ? "ol" : "ul";
2924
+ return `<${i} class="nexa-list">${n.map((e) => `<li>${e}</li>`).join("")}</${i}>`;
2925
+ }), a.register("posts", ({ element: e, modifiers: t }) => {
2926
+ let n = Number(t.find((e) => /^cards-[1-4]$/.test(e))?.split("-")[1] ?? "3");
2927
+ s(t, "compact") && e.classList.add("is-compact");
2928
+ let i = e.getAttribute("eyebrow") ?? "BLOG", a = e.getAttribute("title") ?? "Latest posts", o = e.getAttribute("cta") ?? e.getAttribute("link") ?? "Read more →", c = r(e.getAttribute("posts") ?? e.getAttribute("items") ?? "Color Map|One hex dresses the whole site.|12 Aug;Components|Full blocks, not utilities.|8 Aug;Launch|Nexa is ready to ship.|1 Aug", /;/).map((e) => {
2929
+ let [t, n, r] = e.split("|").map((e) => e.trim());
2930
+ return {
2931
+ title: t || "Post",
2932
+ excerpt: n && n !== t ? n : "",
2933
+ meta: r || ""
2934
+ };
2935
+ }).filter((e) => e.title), l = c.slice(0, n).map((e) => `<article class="nexa-post-card"><div class="nexa-post-card-body">${e.meta ? `<time>${e.meta}</time>` : ""}<h3>${e.title}</h3>${e.excerpt ? `<p>${e.excerpt}</p>` : ""}<a href="#">${o}</a></div></article>`).join("");
2936
+ return `<div class="nexa-posts-inner"><div class="nexa-section-head"><small>${i}</small><h2>${a}</h2></div><div class="nexa-post-grid" style="--cols:${Math.min(n, c.length || 1)}">${l}</div></div>`;
2937
+ }), a.register("checkout", ({ element: e, modifiers: t }) => {
2938
+ s(t, "compact") && e.classList.add("is-compact");
2939
+ let n = e.getAttribute("title") ?? "Checkout", r = e.getAttribute("total") ?? "$49";
2940
+ return `<div class="nexa-checkout"><div class="nexa-checkout-form"><h2>${n}</h2><div class="nexa-checkout-fields"><label class="nexa-field-wrap"><span>Name<b>*</b></span><input type="text" placeholder="Full name" required></label><label class="nexa-field-wrap"><span>Email<b>*</b></span><input type="email" placeholder="you@email.com" required></label><label class="nexa-field-wrap"><span>Address<b>*</b></span><input type="text" placeholder="Street, city" required></label><label class="nexa-field-wrap"><span>Card<b>*</b></span><input type="text" placeholder="4242 4242 4242 4242" required></label><button class="nexa-cta nexa-block" type="button">Pay ${r}</button></div></div><aside class="nexa-checkout-summary"><small>Order summary</small><h3>${e.getAttribute("plan") ?? "Pro Plan"}</h3><p>${e.getAttribute("period") ?? "Monthly · auto-renews"}</p><div class="nexa-checkout-total"><span>Total</span><b>${r}</b></div></aside></div>`;
2941
+ }), a.register("table", ({ element: e, modifiers: t }) => {
2942
+ s(t, "striped") && e.classList.add("is-striped"), s(t, "hover") && e.classList.add("is-hover"), s(t, "compact") && e.classList.add("is-compact");
2943
+ let n = r(e.getAttribute("headers") ?? "Key|Value", /\|/), i = r(e.getAttribute("rows") ?? "Plan|Pro;Users|12;Status|Active", /;/).map((e) => {
2944
+ let t = e.split("|").map((e) => e.trim());
2945
+ for (; t.length < n.length;) t.push("");
2946
+ return t.slice(0, Math.max(n.length, t.length));
2947
+ }).filter((e) => e.some((e) => e)), a = Math.max(n.length, ...i.map((e) => e.length), 1);
2948
+ return `<div class="nexa-table-wrap"><table class="nexa-table"><thead><tr>${Array.from({ length: a }, (e, t) => n[t] ?? `عمود ${t + 1}`).map((e) => `<th>${e}</th>`).join("")}</tr></thead><tbody>${i.map((e) => `<tr>${Array.from({ length: a }, (t, n) => `<td>${e[n] ?? ""}</td>`).join("")}</tr>`).join("")}</tbody></table></div>`;
2949
+ }), a.register("collapse", ({ element: e }) => `<div class="nexa-collapse" data-nexa-collapse><button type="button" class="nexa-collapse-trigger" data-collapse-trigger aria-expanded="false">${e.getAttribute("title") ?? "تفاصيل"} ▾</button><div class="nexa-collapse-panel" data-collapse-panel hidden>${e.getAttribute("text") ?? e.textContent?.trim() ?? "محتوى قابل للطي"}</div></div>`), a.register("stat", ({ element: e }) => `<div class="nexa-stat-row">${l(e.getAttribute("stats") ?? "Users|12.4k;Revenue|$48k;Uptime|99.9%;NPS|72").map((e) => `<article><b>${e.head}</b><strong>${e.body}</strong></article>`).join("")}</div>`), a.register("nav", ({ element: e }) => `<div class="nexa-nav" role="navigation" aria-label="Navigation">${t(e, [
2950
+ "Home",
2951
+ "Features",
2952
+ "Pricing",
2953
+ "About"
2954
+ ])}</div>`);
2955
+ }
2956
+ //#endregion
2957
+ //#region resources/ui/src/index.ts
2958
+ dr(k);
2959
+ var fr = Ie({ registry: k }), $ = Object.assign(fr, {
2960
+ toast: lr,
2961
+ clearToasts: ur
2962
+ });
2963
+ async function pr(e = document) {
2964
+ return (await import("./echarts-mount-DWNKcqeo.js")).wireEcharts(e);
2965
+ }
2966
+ async function mr(e) {
2967
+ return (await import("./echarts-mount-DWNKcqeo.js")).mountNexaChart(e);
2968
+ }
2969
+ typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => $.mount()) : $.mount());
2970
+ //#endregion
2971
+ export { pn as CARD_LAYOUTS, Bn as CARD_MODELS, Vn as CARD_STYLES, A as NEXA_ASSETS, c as NEXA_ECHARTS_THEME, ce as applyBrandColor, se as applyBrandScale, ue as applyColorMap, de as applyColorSeed, a as buildNexaChartOption, ur as clearToasts, u as colorMapNames, ve as componentSchemas, Ie as createNexa, v as deleteSavedMap, le as exportBrandScaleCss, oe as generateBrandScale, ye as getComponentSchema, g as getSavedMaps, an as hasNexaIcon, sn as listNexaIconNames, y as listSavedMapNames, p as mapPresets, mr as mountNexaChart, $ as nexa, C as normalizeHex, h as normalizeMapName, lr as pushToast, dr as registerPrototypeComponents, k as registry, W as renderCardIcon, U as renderIcon, S as resolveMapSeed, _ as saveBrandMap, Se as validateModifiers, Ce as wireBehaviors, pr as wireEcharts };