zabi-components 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,523 @@
1
+ import { t as T, F as ne, G as ie, H as le, I as de, J as V, w as ce, z as ve, u as B, K as ue, S as fe, j as y, i as P, f as z, k as E, e as j, b as m, p as A, c as R, d as r, h as F, n as H, C as Q, D as re, a as N, v as U, g as w, m as K, s as J, L as I, l as k, M as X, N as me, o as G, q as be, r as ge, O as $, P as W } from "./props-D1U_TNgY.js";
2
+ import { e as oe, B as ee, I as te, T as he, C as xe } from "./Checkbox-cOmcN4_d.js";
3
+ import { createEventDispatcher as Y } from "svelte";
4
+ function pe(n, e, t = !1, i = !1, a = !1) {
5
+ var o = n, v = "";
6
+ T(() => {
7
+ var u = (
8
+ /** @type {Effect} */
9
+ ne
10
+ );
11
+ if (v !== (v = e() ?? "") && (u.nodes_start !== null && (ie(
12
+ u.nodes_start,
13
+ /** @type {TemplateNode} */
14
+ u.nodes_end
15
+ ), u.nodes_start = u.nodes_end = null), v !== "")) {
16
+ var l = v + "";
17
+ t ? l = `<svg>${l}</svg>` : i && (l = `<math>${l}</math>`);
18
+ var f = le(l);
19
+ if ((t || i) && (f = /** @type {Element} */
20
+ V(f)), de(
21
+ /** @type {TemplateNode} */
22
+ V(f),
23
+ /** @type {TemplateNode} */
24
+ f.lastChild
25
+ ), t || i)
26
+ for (; V(f); )
27
+ o.before(
28
+ /** @type {Node} */
29
+ V(f)
30
+ );
31
+ else
32
+ o.before(f);
33
+ }
34
+ });
35
+ }
36
+ function ae(n, e) {
37
+ return n === e || (n == null ? void 0 : n[fe]) === e;
38
+ }
39
+ function we(n = {}, e, t, i) {
40
+ return ce(() => {
41
+ var a, o;
42
+ return ve(() => {
43
+ a = o, o = [], B(() => {
44
+ n !== t(...o) && (e(n, ...o), a && ae(t(...a), n) && e(null, ...a));
45
+ });
46
+ }), () => {
47
+ ue(() => {
48
+ o && ae(t(...o), n) && e(null, ...o);
49
+ });
50
+ };
51
+ }), n;
52
+ }
53
+ function se(n) {
54
+ return function(...e) {
55
+ var t = (
56
+ /** @type {Event} */
57
+ e[0]
58
+ );
59
+ return t.preventDefault(), n == null ? void 0 : n.apply(this, e);
60
+ };
61
+ }
62
+ var ye = z("<form><!></form>");
63
+ function _e(n, e) {
64
+ R(e, !1);
65
+ let t = y(e, "method", 8, "post"), i = y(e, "action", 8, ""), a = y(e, "className", 8, "");
66
+ const o = Y();
67
+ function v(f) {
68
+ const h = new FormData(f.target), b = Object.fromEntries(h.entries());
69
+ o("submit", { data: b, formData: h, event: f });
70
+ }
71
+ P();
72
+ var u = ye(), l = r(u);
73
+ E(l, e, "default", {}), T(() => {
74
+ F(u, "method", t()), F(u, "action", i()), H(u, 1, `space-y-4 ${a() ?? ""}`);
75
+ }), j("submit", u, se(v)), m(n, u), A();
76
+ }
77
+ var ke = z('<header class="layout-header svelte-wzmt5k"><!></header> <main class="layout-main svelte-wzmt5k"><!></main> <footer class="layout-footer svelte-wzmt5k"><!></footer>', 1), qe = z('<aside class="layout-sidebar svelte-wzmt5k"><!></aside> <main class="layout-main svelte-wzmt5k"><!></main>', 1), ze = z('<div class="layout-grid svelte-wzmt5k"><!></div>'), Ce = z("<div><!></div>");
78
+ const Le = {
79
+ hash: "svelte-wzmt5k",
80
+ code: `.layout.svelte-wzmt5k {min-height:100vh}.layout-main.svelte-wzmt5k {display:flex;flex-direction:column}.layout-sidebar.svelte-wzmt5k {width:16rem;border-right-width:1px;border-color:rgb(var(--color-border));background-color:rgb(var(--color-surface-secondary))}.layout-grid.svelte-wzmt5k {display:grid;grid-template-columns:repeat(1, minmax(0, 1fr))}
81
+
82
+ @media (min-width: 768px) {.layout-grid.svelte-wzmt5k {grid-template-columns:repeat(2, minmax(0, 1fr))}
83
+ }
84
+
85
+ @media (min-width: 1024px) {.layout-grid.svelte-wzmt5k {grid-template-columns:repeat(3, minmax(0, 1fr))}
86
+ }.layout-header.svelte-wzmt5k {border-bottom-width:1px;border-color:rgb(var(--color-border));background-color:rgb(var(--color-surface));padding:1rem}.layout-footer.svelte-wzmt5k {margin-top:auto;border-top-width:1px;border-color:rgb(var(--color-border));background-color:rgb(var(--color-surface-secondary));padding:1rem}`
87
+ };
88
+ function We(n, e) {
89
+ R(e, !1), oe(n, Le);
90
+ const t = K();
91
+ let i = y(e, "variant", 8, "main"), a = y(e, "gap", 8, "md"), o = y(e, "className", 8, "");
92
+ Q(() => U(a()), () => {
93
+ J(t, `gap-${a()}`);
94
+ }), re();
95
+ var v = Ce(), u = r(v);
96
+ {
97
+ var l = (h) => {
98
+ var b = ke(), s = I(b), d = r(s);
99
+ E(d, e, "header", {});
100
+ var _ = k(s, 2), g = r(_);
101
+ E(g, e, "main", {});
102
+ var c = k(_, 2), x = r(c);
103
+ E(x, e, "footer", {}), m(h, b);
104
+ }, f = (h) => {
105
+ var b = X(), s = I(b);
106
+ {
107
+ var d = (g) => {
108
+ var c = qe(), x = I(c), p = r(x);
109
+ E(p, e, "sidebar", {});
110
+ var q = k(x, 2), L = r(q);
111
+ E(L, e, "main", {}), m(g, c);
112
+ }, _ = (g) => {
113
+ var c = X(), x = I(c);
114
+ {
115
+ var p = (q) => {
116
+ var L = ze(), M = r(L);
117
+ E(M, e, "default", {}), m(q, L);
118
+ };
119
+ N(
120
+ x,
121
+ (q) => {
122
+ i() === "grid" && q(p);
123
+ },
124
+ !0
125
+ );
126
+ }
127
+ m(g, c);
128
+ };
129
+ N(
130
+ s,
131
+ (g) => {
132
+ i() === "sidebar" ? g(d) : g(_, !1);
133
+ },
134
+ !0
135
+ );
136
+ }
137
+ m(h, b);
138
+ };
139
+ N(u, (h) => {
140
+ i() === "main" ? h(l) : h(f, !1);
141
+ });
142
+ }
143
+ T(() => H(v, 1, `layout layout-${i() ?? ""} ${w(t) ?? ""} ${o() ?? ""}`, "svelte-wzmt5k")), m(n, v), A();
144
+ }
145
+ var Me = z('<div class="flex justify-end gap-3 p-6 border-t border-gray-200"><!></div>'), Se = z('<div class="fixed inset-0 bg-black/50 flex items-center justify-center p-4 z-50" role="dialog" aria-modal="true" tabindex="-1"><div class="bg-white rounded-lg shadow-xl max-w-md w-full max-h-[90vh] overflow-y-auto"><div class="flex items-center justify-between p-6 border-b border-gray-200"><h2 class="text-xl font-semibold text-gray-900"> </h2> <button type="button" class="text-gray-400 hover:text-gray-600 text-2xl" aria-label="Close">×</button></div> <div class="p-6"><!></div> <!></div></div>');
146
+ function Qe(n, e) {
147
+ const t = me(e);
148
+ R(e, !1);
149
+ let i = y(e, "isOpen", 12, !1), a = y(e, "title", 8, "");
150
+ const o = Y();
151
+ function v() {
152
+ i(!1), o("close");
153
+ }
154
+ function u(s) {
155
+ s.target === s.currentTarget && v();
156
+ }
157
+ function l(s) {
158
+ s.key === "Escape" && v();
159
+ }
160
+ P();
161
+ var f = X(), h = I(f);
162
+ {
163
+ var b = (s) => {
164
+ var d = Se(), _ = r(d), g = r(_), c = r(g), x = r(c), p = k(c, 2), q = k(g, 2), L = r(q);
165
+ E(L, e, "default", {});
166
+ var M = k(q, 2);
167
+ {
168
+ var O = (D) => {
169
+ var C = Me(), S = r(C);
170
+ E(S, e, "footer", {}), m(D, C);
171
+ };
172
+ N(M, (D) => {
173
+ B(() => t.footer) && D(O);
174
+ });
175
+ }
176
+ T(() => G(x, a())), j("click", p, v), j("click", d, u), j("keydown", d, l), m(s, d);
177
+ };
178
+ N(h, (s) => {
179
+ i() && s(b);
180
+ });
181
+ }
182
+ m(n, f), A();
183
+ }
184
+ var Ee = z('<div class="flex items-center justify-between p-4 border-b border-gray-200"><h3 class="text-lg font-semibold text-gray-900"> </h3> <button type="button" class="text-gray-400 hover:text-gray-600 text-2xl" aria-label="Close">×</button></div>'), Te = z('<div class="fixed inset-0 bg-black/50 z-50" role="dialog" aria-modal="true" tabindex="-1"></div> <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 rounded-t-xl shadow-xl z-50 max-h-[80vh] overflow-y-auto" role="dialog" aria-modal="true"><!> <div class="p-4"><!></div></div>', 1);
185
+ function Xe(n, e) {
186
+ R(e, !1);
187
+ let t = y(e, "isOpen", 12, !1), i = y(e, "title", 8, "");
188
+ const a = Y();
189
+ function o() {
190
+ t(!1), a("close");
191
+ }
192
+ function v(b) {
193
+ b.target === b.currentTarget && o();
194
+ }
195
+ function u(b) {
196
+ b.key === "Escape" && o();
197
+ }
198
+ P();
199
+ var l = X(), f = I(l);
200
+ {
201
+ var h = (b) => {
202
+ var s = Te(), d = I(s), _ = k(d, 2), g = r(_);
203
+ {
204
+ var c = (q) => {
205
+ var L = Ee(), M = r(L), O = r(M), D = k(M, 2);
206
+ T(() => G(O, i())), j("click", D, o), m(q, L);
207
+ };
208
+ N(g, (q) => {
209
+ i() && q(c);
210
+ });
211
+ }
212
+ var x = k(g, 2), p = r(x);
213
+ E(p, e, "default", {}), j("click", d, v), j("keydown", d, u), m(b, s);
214
+ };
215
+ N(f, (b) => {
216
+ t() && b(h);
217
+ });
218
+ }
219
+ m(n, l), A();
220
+ }
221
+ var je = z('<div class="dropdown-content group-hover:opacity-100 group-hover:visible group-focus-within:opacity-100 group-focus-within:visible svelte-1o1q13x"><!></div>'), Ne = z('<div class="dropdown-container group relative inline-block svelte-1o1q13x"><!> <!></div>');
222
+ const De = {
223
+ hash: "svelte-1o1q13x",
224
+ code: `.dropdown-container.svelte-1o1q13x {position:relative;display:inline-block;}.dropdown-content.svelte-1o1q13x {position:absolute;z-index:50;background-color:white;border:1px solid #e5e7eb;border-radius:0.5rem;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1),
225
+ 0 4px 6px -2px rgba(0, 0, 0, 0.05);min-width:12rem;opacity:0;visibility:hidden;transition:opacity 0.2s ease-in-out,
226
+ visibility 0.2s ease-in-out,
227
+ transform 0.2s ease-in-out;}
228
+
229
+ /* Positioning based on data-placement */.dropdown-container[data-placement="bottom-start"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x) {top:calc(100% + 8px);left:0;transform:translateY(4px);}.dropdown-container[data-placement="bottom-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x) {top:calc(100% + 8px);right:0;transform:translateY(4px);}.dropdown-container[data-placement="top-start"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x) {bottom:calc(100% + 8px);left:0;transform:translateY(-4px);}.dropdown-container[data-placement="top-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x) {bottom:calc(100% + 8px);right:0;transform:translateY(-4px);}
230
+
231
+ /* Show on hover/focus */.dropdown-container.svelte-1o1q13x:hover .dropdown-content:where(.svelte-1o1q13x),
232
+ .dropdown-container.svelte-1o1q13x:focus-within .dropdown-content:where(.svelte-1o1q13x) {opacity:1;visibility:visible;transform:translateY(0);}
233
+
234
+ /* Arrow styling */.dropdown-content.svelte-1o1q13x::before {content:"";position:absolute;width:0;height:0;border-style:solid;border-width:6px;border-color:transparent;}.dropdown-container[data-placement="bottom-start"].svelte-1o1q13x
235
+ .dropdown-content:where(.svelte-1o1q13x)::before,
236
+ .dropdown-container[data-placement="bottom-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {top:-6px;border-bottom-color:white;}.dropdown-container[data-placement="top-start"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before,
237
+ .dropdown-container[data-placement="top-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {bottom:-6px;border-top-color:white;}.dropdown-container[data-placement="bottom-start"].svelte-1o1q13x
238
+ .dropdown-content:where(.svelte-1o1q13x)::before {left:1rem;}.dropdown-container[data-placement="bottom-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {right:1rem;}.dropdown-container[data-placement="top-start"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {left:1rem;}.dropdown-container[data-placement="top-end"].svelte-1o1q13x .dropdown-content:where(.svelte-1o1q13x)::before {right:1rem;}`
239
+ };
240
+ function Ze(n, e) {
241
+ oe(n, De);
242
+ let t = y(e, "isOpen", 8, !1), i = y(e, "placement", 8, "bottom-start");
243
+ var a = Ne(), o = r(a);
244
+ E(o, e, "trigger", {});
245
+ var v = k(o, 2);
246
+ {
247
+ var u = (l) => {
248
+ var f = je(), h = r(f);
249
+ E(h, e, "default", {}), m(l, f);
250
+ };
251
+ N(v, (l) => {
252
+ t() && l(u);
253
+ });
254
+ }
255
+ T(() => F(a, "data-placement", i())), m(n, a);
256
+ }
257
+ var Oe = z('<button type="button" role="tab"> </button>'), Be = z('<div class="tabs-container"><div class="flex border-b border-gray-200" role="tablist" tabindex="0"></div> <div class="mt-4"><!></div></div>');
258
+ function $e(n, e) {
259
+ R(e, !1);
260
+ let t = y(e, "tabs", 24, () => []), i = y(e, "activeTab", 12, ""), a = y(e, "variant", 8, "default");
261
+ const o = Y();
262
+ function v(s) {
263
+ i(s), o("change", { activeTab: s });
264
+ }
265
+ function u(s) {
266
+ if (s.key === "ArrowLeft" || s.key === "ArrowRight") {
267
+ const d = t().findIndex((c) => c.id === i()), _ = s.key === "ArrowLeft" ? -1 : 1, g = (d + _ + t().length) % t().length;
268
+ v(t()[g].id);
269
+ }
270
+ }
271
+ P();
272
+ var l = Be(), f = r(l);
273
+ be(f, 5, t, ge, (s, d) => {
274
+ var _ = Oe(), g = r(_);
275
+ T(() => {
276
+ H(_, 1, `px-4 py-2 text-sm font-medium border-b-2 transition-colors ${U(i()), w(d), U(a()), B(() => i() === w(d).id ? a() === "pills" ? "bg-blue-100 text-blue-700 border-blue-500" : "border-blue-500 text-blue-600" : "border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300") ?? ""}`), _.disabled = (w(d), B(() => w(d).disabled)), F(_, "aria-selected", (U(i()), w(d), B(() => i() === w(d).id))), G(g, (w(d), B(() => w(d).label)));
277
+ }), j("click", _, () => v(w(d).id)), m(s, _);
278
+ });
279
+ var h = k(f, 2), b = r(h);
280
+ E(
281
+ b,
282
+ e,
283
+ "default",
284
+ {
285
+ get activeTab() {
286
+ return i();
287
+ }
288
+ }
289
+ ), j("keydown", f, u), m(n, l), A();
290
+ }
291
+ var Ie = z('<button class="absolute top-2 right-2 z-10 w-6 h-6 flex items-center justify-center rounded-full text-text-secondary hover:text-primary transition-colors duration-200 motion-reduce:transition-none group focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2" aria-label="Dismiss alert" type="button"><svg class="w-4 h-4 text-current group-hover:scale-110 transition-transform duration-200 motion-reduce:transition-none" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>'), Fe = z('<h4 class="font-semibold text-sm mb-1" style="color: inherit;"> </h4>'), Ae = z('<p class="text-sm leading-relaxed" style="color: inherit;"> </p>'), Re = z('<div aria-atomic="true"><!> <div><div class="flex-shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><!> <!> <!></div></div></div>');
292
+ function et(n, e) {
293
+ R(e, !1);
294
+ const t = K(), i = K(), a = K();
295
+ let o = y(e, "variant", 8, "info"), v = y(e, "title", 8, ""), u = y(e, "message", 8, ""), l = y(e, "closable", 8, !1), f = y(e, "className", 8, "");
296
+ const h = Y();
297
+ function b(C) {
298
+ h("close", { event: C });
299
+ }
300
+ Q(() => {
301
+ }, () => {
302
+ J(t, {
303
+ info: "bg-info-surface text-info-text border border-info",
304
+ success: "bg-success-surface text-success-text border border-success",
305
+ warning: "bg-warning-surface text-warning-text border border-warning",
306
+ error: "bg-error-surface text-error-text border border-error"
307
+ });
308
+ }), Q(() => U(o()), () => {
309
+ J(i, o() === "success" || o() === "info" ? "status" : "alert");
310
+ }), Q(() => {
311
+ }, () => {
312
+ J(a, {
313
+ info: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
314
+ <path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd" />
315
+ </svg>`,
316
+ success: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
317
+ <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
318
+ </svg>`,
319
+ warning: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
320
+ <path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd" />
321
+ </svg>`,
322
+ error: `<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
323
+ <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd" />
324
+ </svg>`
325
+ });
326
+ }), re(), P();
327
+ var s = Re(), d = r(s);
328
+ {
329
+ var _ = (C) => {
330
+ var S = Ie();
331
+ j("click", S, se(b)), m(C, S);
332
+ };
333
+ N(d, (C) => {
334
+ l() && C(_);
335
+ });
336
+ }
337
+ var g = k(d, 2), c = r(g), x = r(c);
338
+ pe(x, () => (w(a), U(o()), B(() => w(a)[o()])));
339
+ var p = k(c, 2), q = r(p);
340
+ {
341
+ var L = (C) => {
342
+ var S = Fe(), Z = r(S);
343
+ T(() => G(Z, v())), m(C, S);
344
+ };
345
+ N(q, (C) => {
346
+ v() && C(L);
347
+ });
348
+ }
349
+ var M = k(q, 2);
350
+ {
351
+ var O = (C) => {
352
+ var S = Ae(), Z = r(S);
353
+ T(() => G(Z, u())), m(C, S);
354
+ };
355
+ N(M, (C) => {
356
+ u() && C(O);
357
+ });
358
+ }
359
+ var D = k(M, 2);
360
+ E(D, e, "default", {}), T(() => {
361
+ H(s, 1, `relative rounded-md p-4 border ${w(t), U(o()), B(() => w(t)[o()]) ?? ""} transition-all duration-200 motion-reduce:transition-none ${f() ?? ""}`), F(s, "role", w(i)), F(s, "aria-live", o() === "success" || o() === "info" ? "polite" : "assertive"), H(g, 1, `flex items-start gap-3 ${l() ? "pr-8" : ""}`);
362
+ }), m(n, s), A();
363
+ }
364
+ var Ue = z('<div class="relative group"><img alt="" class="w-full h-32 object-cover rounded-lg border border-gray-300"/> <div class="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity rounded-lg flex items-center justify-center"><div class="flex gap-2"><!> <!></div></div></div>'), Pe = z('<div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center hover:border-gray-400 transition-colors cursor-pointer" role="button" tabindex="0"><div class="space-y-3"><div class="w-12 h-12 mx-auto bg-gray-100 rounded-lg flex items-center justify-center"><span class="text-2xl">📷</span></div> <div><p class="font-medium text-gray-900"> </p> <p class="text-sm text-gray-500">Click to choose a file</p></div></div></div>'), Ye = z('<div class="space-y-3"><!> <input type="file" class="hidden"/></div>');
365
+ function tt(n, e) {
366
+ R(e, !1);
367
+ let t = y(e, "value", 12, null), i = y(e, "disabled", 8, !1), a = y(e, "accept", 8, "image/*"), o = y(e, "placeholder", 8, "No image selected");
368
+ const v = Y();
369
+ let u = K();
370
+ function l(c) {
371
+ const x = c.target;
372
+ if (!x.files || x.files.length === 0) return;
373
+ const p = x.files[0], q = URL.createObjectURL(p);
374
+ t(q), v("change", { value: q });
375
+ }
376
+ function f() {
377
+ t() && URL.revokeObjectURL(t()), t(null), v("change", { value: null });
378
+ }
379
+ function h() {
380
+ var c;
381
+ (c = w(u)) == null || c.click();
382
+ }
383
+ P();
384
+ var b = Ye(), s = r(b);
385
+ {
386
+ var d = (c) => {
387
+ var x = Ue(), p = r(x), q = k(p, 2), L = r(q), M = r(L);
388
+ ee(M, {
389
+ variant: "secondary",
390
+ size: "sm",
391
+ get disabled() {
392
+ return i();
393
+ },
394
+ $$events: { click: h },
395
+ children: (D, C) => {
396
+ var S = $("Change");
397
+ m(D, S);
398
+ },
399
+ $$slots: { default: !0 }
400
+ });
401
+ var O = k(M, 2);
402
+ ee(O, {
403
+ variant: "danger",
404
+ size: "sm",
405
+ get disabled() {
406
+ return i();
407
+ },
408
+ $$events: { click: f },
409
+ children: (D, C) => {
410
+ var S = $("Remove");
411
+ m(D, S);
412
+ },
413
+ $$slots: { default: !0 }
414
+ }), T(() => F(p, "src", t())), m(c, x);
415
+ }, _ = (c) => {
416
+ var x = Pe(), p = r(x), q = k(r(p), 2), L = r(q), M = r(L);
417
+ T(() => G(M, o())), j("click", x, h), j("keydown", x, (O) => O.key === "Enter" && h()), m(c, x);
418
+ };
419
+ N(s, (c) => {
420
+ t() ? c(d) : c(_, !1);
421
+ });
422
+ }
423
+ var g = k(s, 2);
424
+ we(g, (c) => J(u, c), () => w(u)), T(() => F(g, "accept", a())), j("change", g, l), m(n, b), A();
425
+ }
426
+ var Ke = z('<div class="space-y-4"><!> <!> <!> <!></div> <div class="pt-4"><!></div>', 1), He = z(`<div><div class="mb-6"><h2 class="text-2xl font-bold text-text mb-2">Get in Touch</h2> <p class="text-text-secondary">We'd love to hear from you. Send us a message and we'll respond as
427
+ soon as possible.</p></div> <!></div>`);
428
+ function at(n, e) {
429
+ R(e, !1);
430
+ let t = y(e, "className", 8, "");
431
+ const i = Y();
432
+ let a = K({ name: "", email: "", message: "", subscribe: !1 });
433
+ function o(l) {
434
+ const f = {
435
+ name: l.detail.data.name || "",
436
+ email: l.detail.data.email || "",
437
+ message: l.detail.data.message || "",
438
+ subscribe: l.detail.data.subscribe || !1
439
+ };
440
+ i("submit", { data: f });
441
+ }
442
+ P();
443
+ var v = He(), u = k(r(v), 2);
444
+ _e(u, {
445
+ className: "space-y-4",
446
+ $$events: { submit: o },
447
+ children: (l, f) => {
448
+ var h = Ke(), b = I(h), s = r(b);
449
+ te(s, {
450
+ type: "text",
451
+ label: "Name",
452
+ placeholder: "Enter your name",
453
+ get value() {
454
+ return w(a).name;
455
+ },
456
+ set value(p) {
457
+ W(a, w(a).name = p);
458
+ },
459
+ $$legacy: !0
460
+ });
461
+ var d = k(s, 2);
462
+ te(d, {
463
+ type: "email",
464
+ label: "Email",
465
+ placeholder: "Enter your email",
466
+ get value() {
467
+ return w(a).email;
468
+ },
469
+ set value(p) {
470
+ W(a, w(a).email = p);
471
+ },
472
+ $$legacy: !0
473
+ });
474
+ var _ = k(d, 2);
475
+ he(_, {
476
+ label: "Message",
477
+ placeholder: "Enter your message",
478
+ rows: 4,
479
+ get value() {
480
+ return w(a).message;
481
+ },
482
+ set value(p) {
483
+ W(a, w(a).message = p);
484
+ },
485
+ $$legacy: !0
486
+ });
487
+ var g = k(_, 2);
488
+ xe(g, {
489
+ label: "Subscribe to updates",
490
+ get checked() {
491
+ return w(a).subscribe;
492
+ },
493
+ set checked(p) {
494
+ W(a, w(a).subscribe = p);
495
+ },
496
+ $$legacy: !0
497
+ });
498
+ var c = k(b, 2), x = r(c);
499
+ ee(x, {
500
+ type: "submit",
501
+ variant: "primary",
502
+ size: "md",
503
+ children: (p, q) => {
504
+ var L = $("Send Message");
505
+ m(p, L);
506
+ },
507
+ $$slots: { default: !0 }
508
+ }), m(l, h);
509
+ },
510
+ $$slots: { default: !0 }
511
+ }), T(() => H(v, 1, `max-w-md mx-auto ${t() ?? ""}`)), m(n, v), A();
512
+ }
513
+ export {
514
+ et as A,
515
+ at as C,
516
+ Ze as D,
517
+ _e as F,
518
+ tt as I,
519
+ We as L,
520
+ Qe as M,
521
+ Xe as S,
522
+ $e as T
523
+ };
@@ -1,6 +1,6 @@
1
- import { j as d, i as F, f as u, k as g, a as N, t as j, e as D, b, p as G, c as H, d as a, l as n, g as s, m as ta, n as p, o as I, s as sa, q as va, r as ra, h as ia, u as C, v as na } from "./props-ChfwWtCN.js";
1
+ import { j as d, i as F, f as u, k as g, a as N, t as j, e as D, b, p as G, c as H, d as a, l as n, g as s, m as ta, n as p, o as I, s as sa, q as va, r as ra, h as ia, u as C, v as na } from "./props-D1U_TNgY.js";
2
2
  import { createEventDispatcher as J } from "svelte";
3
- import { T as A } from "./ThemeToggle-Dt8hE3_o.js";
3
+ import { T as A } from "./ThemeToggle-Dgb0rEn7.js";
4
4
  var da = u('<div class="mt-2"><!></div>'), la = u('<div class="md:hidden"><div class="px-2 pt-2 pb-3 space-y-1 sm:px-3 border-t border-gray-200"><!> <div class="pt-4"><!> <!></div></div></div>'), oa = u('<nav><div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"><div class="flex justify-between items-center h-16"><div class="flex-shrink-0"><button type="button" class="text-xl font-bold text-gray-900"> </button></div> <div class="hidden md:block"><div class="ml-10 flex items-baseline space-x-4"><!></div></div> <div class="hidden md:block"><div class="ml-4 flex items-center space-x-4"><!> <!></div></div> <div class="md:hidden"><button type="button" class="text-gray-500 hover:text-gray-600" aria-label="Toggle menu"><span class="text-2xl">☰</span></button></div></div> <!></div></nav>');
5
5
  function ha(y, e) {
6
6
  H(e, !1);