manga-ui-compents-abi 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4895 @@
1
+ import { jsxs as t, jsx as e, Fragment as re } from "react/jsx-runtime";
2
+ import fn, { forwardRef as se, useCallback as Fe, useEffect as B, createContext as cn, useState as k, useContext as an, useRef as fe, useMemo as ln } from "react";
3
+ import { createPortal as Le } from "react-dom";
4
+ const vn = "_button_cvovu_11", bn = "_sm_cvovu_85", $n = "_md_cvovu_99", Nn = "_lg_cvovu_113", yn = "_primary_cvovu_133", kn = "_secondary_cvovu_153", wn = "_outline_cvovu_173", Cn = "_ghost_cvovu_199", xn = "_danger_cvovu_227", Bn = "_loading_cvovu_247", In = "_spin_cvovu_1", Tn = "_fullWidth_cvovu_303", zn = "_iconOnly_cvovu_313", Qe = {
5
+ button: vn,
6
+ sm: bn,
7
+ md: $n,
8
+ lg: Nn,
9
+ primary: yn,
10
+ secondary: kn,
11
+ outline: wn,
12
+ ghost: Cn,
13
+ danger: xn,
14
+ loading: Bn,
15
+ spin: In,
16
+ fullWidth: Tn,
17
+ iconOnly: zn
18
+ }, Ln = se(
19
+ ({
20
+ variant: n = "primary",
21
+ size: a = "md",
22
+ loading: s = !1,
23
+ fullWidth: l = !1,
24
+ leftIcon: c,
25
+ rightIcon: i,
26
+ iconOnly: r = !1,
27
+ disabled: _,
28
+ className: o = "",
29
+ children: d,
30
+ ...p
31
+ }, u) => {
32
+ const m = [
33
+ Qe.button,
34
+ Qe[n],
35
+ Qe[a],
36
+ s && Qe.loading,
37
+ l && Qe.fullWidth,
38
+ r && Qe.iconOnly,
39
+ o
40
+ ].filter(Boolean).join(" ");
41
+ return /* @__PURE__ */ t(
42
+ "button",
43
+ {
44
+ ref: u,
45
+ className: m,
46
+ disabled: _ || s,
47
+ ...p,
48
+ children: [
49
+ c && !r && /* @__PURE__ */ e("span", { children: c }),
50
+ d,
51
+ i && !r && /* @__PURE__ */ e("span", { children: i })
52
+ ]
53
+ }
54
+ );
55
+ }
56
+ );
57
+ Ln.displayName = "Button";
58
+ const jn = "_inputWrapper_1geb8_11", Sn = "_label_1geb8_25", Dn = "_required_1geb8_43", qn = "_inputContainer_1geb8_53", Rn = "_input_1geb8_11", Mn = "_sm_1geb8_145", An = "_lg_1geb8_155", Wn = "_error_1geb8_167", En = "_errorMessage_1geb8_177", Pn = "_helperText_1geb8_209", Fn = "_hasLeftIcon_1geb8_223", On = "_hasRightIcon_1geb8_231", Gn = "_leftIcon_1geb8_239", Un = "_rightIcon_1geb8_241", Vn = "_fullWidth_1geb8_293", J = {
59
+ inputWrapper: jn,
60
+ label: Sn,
61
+ required: Dn,
62
+ inputContainer: qn,
63
+ input: Rn,
64
+ sm: Mn,
65
+ lg: An,
66
+ error: Wn,
67
+ errorMessage: En,
68
+ helperText: Pn,
69
+ hasLeftIcon: Fn,
70
+ hasRightIcon: On,
71
+ leftIcon: Gn,
72
+ rightIcon: Un,
73
+ fullWidth: Vn
74
+ }, Hn = se(
75
+ ({
76
+ label: n,
77
+ size: a = "md",
78
+ error: s,
79
+ helperText: l,
80
+ leftIcon: c,
81
+ rightIcon: i,
82
+ fullWidth: r = !1,
83
+ required: _ = !1,
84
+ className: o = "",
85
+ id: d,
86
+ ...p
87
+ }, u) => {
88
+ const m = d || `input-${Math.random().toString(36).substr(2, 9)}`, h = [
89
+ J.inputWrapper,
90
+ J[a],
91
+ s && J.error,
92
+ c && J.hasLeftIcon,
93
+ i && J.hasRightIcon,
94
+ r && J.fullWidth,
95
+ o
96
+ ].filter(Boolean).join(" ");
97
+ return /* @__PURE__ */ t("div", { className: h, children: [
98
+ n && /* @__PURE__ */ t("label", { htmlFor: m, className: J.label, children: [
99
+ n,
100
+ _ && /* @__PURE__ */ e("span", { className: J.required, children: "*" })
101
+ ] }),
102
+ /* @__PURE__ */ t("div", { className: J.inputContainer, children: [
103
+ c && /* @__PURE__ */ e("span", { className: J.leftIcon, children: c }),
104
+ /* @__PURE__ */ e(
105
+ "input",
106
+ {
107
+ ref: u,
108
+ id: m,
109
+ className: J.input,
110
+ "aria-invalid": !!s,
111
+ "aria-describedby": s ? `${m}-error` : l ? `${m}-helper` : void 0,
112
+ ...p
113
+ }
114
+ ),
115
+ i && /* @__PURE__ */ e("span", { className: J.rightIcon, children: i })
116
+ ] }),
117
+ s && /* @__PURE__ */ e("span", { id: `${m}-error`, className: J.errorMessage, role: "alert", children: s }),
118
+ l && !s && /* @__PURE__ */ e("span", { id: `${m}-helper`, className: J.helperText, children: l })
119
+ ] });
120
+ }
121
+ );
122
+ Hn.displayName = "Input";
123
+ const Yn = "_card_4rvo0_11", Kn = "_elevated_4rvo0_45", Qn = "_outlined_4rvo0_53", Jn = "_hoverable_4rvo0_65", Xn = "_header_4rvo0_109", Zn = "_body_4rvo0_121", et = "_footer_4rvo0_129", nt = "_compact_4rvo0_143", tt = "_spacious_4rvo0_167", Ye = {
124
+ card: Yn,
125
+ default: "_default_4rvo0_37",
126
+ elevated: Kn,
127
+ outlined: Qn,
128
+ hoverable: Jn,
129
+ header: Xn,
130
+ body: Zn,
131
+ footer: et,
132
+ compact: nt,
133
+ spacious: tt
134
+ }, at = se(
135
+ ({
136
+ variant: n = "default",
137
+ padding: a = "default",
138
+ hoverable: s = !1,
139
+ className: l = "",
140
+ children: c,
141
+ ...i
142
+ }, r) => {
143
+ const _ = [
144
+ Ye.card,
145
+ Ye[n],
146
+ a !== "default" && Ye[a],
147
+ s && Ye.hoverable,
148
+ l
149
+ ].filter(Boolean).join(" ");
150
+ return /* @__PURE__ */ e("div", { ref: r, className: _, ...i, children: c });
151
+ }
152
+ );
153
+ at.displayName = "Card";
154
+ const st = se(
155
+ ({ className: n = "", children: a, ...s }, l) => /* @__PURE__ */ e("div", { ref: l, className: `${Ye.header} ${n}`, ...s, children: a })
156
+ );
157
+ st.displayName = "CardHeader";
158
+ const ot = se(
159
+ ({ className: n = "", children: a, ...s }, l) => /* @__PURE__ */ e("div", { ref: l, className: `${Ye.body} ${n}`, ...s, children: a })
160
+ );
161
+ ot.displayName = "CardBody";
162
+ const ct = se(
163
+ ({ className: n = "", children: a, ...s }, l) => /* @__PURE__ */ e("div", { ref: l, className: `${Ye.footer} ${n}`, ...s, children: a })
164
+ );
165
+ ct.displayName = "CardFooter";
166
+ const lt = "_badge_69hvm_11", rt = "_sm_69hvm_43", it = "_md_69hvm_57", _t = "_lg_69hvm_71", dt = "_primary_69hvm_97", mt = "_success_69hvm_107", pt = "_warning_69hvm_117", ut = "_danger_69hvm_127", ht = "_info_69hvm_137", gt = "_outline_69hvm_149", ft = "_withDot_69hvm_207", vt = "_pulse_69hvm_227", Je = {
167
+ badge: lt,
168
+ sm: rt,
169
+ md: it,
170
+ lg: _t,
171
+ default: "_default_69hvm_87",
172
+ primary: dt,
173
+ success: mt,
174
+ warning: pt,
175
+ danger: ut,
176
+ info: ht,
177
+ outline: gt,
178
+ withDot: ft,
179
+ pulse: vt
180
+ }, bt = se(
181
+ ({
182
+ variant: n = "default",
183
+ size: a = "md",
184
+ outline: s = !1,
185
+ withDot: l = !1,
186
+ pulse: c = !1,
187
+ className: i = "",
188
+ children: r,
189
+ ..._
190
+ }, o) => {
191
+ const d = [
192
+ Je.badge,
193
+ Je[n],
194
+ Je[a],
195
+ s && Je.outline,
196
+ l && Je.withDot,
197
+ c && Je.pulse,
198
+ i
199
+ ].filter(Boolean).join(" ");
200
+ return /* @__PURE__ */ e("span", { ref: o, className: d, ..._, children: r });
201
+ }
202
+ );
203
+ bt.displayName = "Badge";
204
+ const $t = "_overlay_1b62k_11", Nt = "_fadeIn_1b62k_1", yt = "_modal_1b62k_35", kt = "_slideIn_1b62k_1", wt = "_sm_1b62k_63", Ct = "_md_1b62k_71", xt = "_lg_1b62k_79", Bt = "_xl_1b62k_87", It = "_full_1b62k_95", Tt = "_header_1b62k_107", zt = "_title_1b62k_125", Lt = "_closeButton_1b62k_145", jt = "_body_1b62k_191", St = "_footer_1b62k_205", je = {
205
+ overlay: $t,
206
+ fadeIn: Nt,
207
+ modal: yt,
208
+ slideIn: kt,
209
+ sm: wt,
210
+ md: Ct,
211
+ lg: xt,
212
+ xl: Bt,
213
+ full: It,
214
+ header: Tt,
215
+ title: zt,
216
+ closeButton: Lt,
217
+ body: jt,
218
+ footer: St
219
+ };
220
+ function Dt({
221
+ isOpen: n,
222
+ onClose: a,
223
+ title: s,
224
+ size: l = "md",
225
+ showCloseButton: c = !0,
226
+ closeOnOverlayClick: i = !0,
227
+ closeOnEscape: r = !0,
228
+ children: _,
229
+ footer: o
230
+ }) {
231
+ const d = Fe(
232
+ (m) => {
233
+ m.key === "Escape" && r && a();
234
+ },
235
+ [a, r]
236
+ );
237
+ if (B(() => (n && (document.addEventListener("keydown", d), document.body.style.overflow = "hidden"), () => {
238
+ document.removeEventListener("keydown", d), document.body.style.overflow = "";
239
+ }), [n, d]), !n) return null;
240
+ const p = (m) => {
241
+ m.target === m.currentTarget && i && a();
242
+ }, u = /* @__PURE__ */ e("div", { className: je.overlay, onClick: p, children: /* @__PURE__ */ t("div", { className: `${je.modal} ${je[l]}`, role: "dialog", "aria-modal": "true", children: [
243
+ (s || c) && /* @__PURE__ */ t("div", { className: je.header, children: [
244
+ s && /* @__PURE__ */ e("h2", { className: je.title, children: s }),
245
+ c && /* @__PURE__ */ e(
246
+ "button",
247
+ {
248
+ className: je.closeButton,
249
+ onClick: a,
250
+ "aria-label": "Close modal",
251
+ children: "✕"
252
+ }
253
+ )
254
+ ] }),
255
+ /* @__PURE__ */ e("div", { className: je.body, children: _ }),
256
+ o && /* @__PURE__ */ e("div", { className: je.footer, children: o })
257
+ ] }) });
258
+ return Le(u, document.body);
259
+ }
260
+ Dt.displayName = "Modal";
261
+ const qt = "_avatar_loudu_11", Rt = "_image_loudu_43", Mt = "_xs_loudu_57", At = "_sm_loudu_69", Wt = "_md_loudu_81", Et = "_lg_loudu_93", Pt = "_xl_loudu_105", Ft = "_xxl_loudu_117", Ot = "_circle_loudu_135", Gt = "_rounded_loudu_143", Ut = "_square_loudu_151", Vt = "_wrapper_loudu_161", Ht = "_status_loudu_171", Yt = "_online_loudu_191", Kt = "_offline_loudu_199", Qt = "_busy_loudu_207", Jt = "_group_loudu_217", ge = {
262
+ avatar: qt,
263
+ image: Rt,
264
+ xs: Mt,
265
+ sm: At,
266
+ md: Wt,
267
+ lg: Et,
268
+ xl: Pt,
269
+ xxl: Ft,
270
+ circle: Ot,
271
+ rounded: Gt,
272
+ square: Ut,
273
+ wrapper: Vt,
274
+ status: Ht,
275
+ online: Yt,
276
+ offline: Kt,
277
+ busy: Qt,
278
+ group: Jt
279
+ }, Xt = se(
280
+ ({
281
+ src: n,
282
+ alt: a = "",
283
+ initials: s,
284
+ size: l = "md",
285
+ shape: c = "circle",
286
+ status: i,
287
+ className: r = "",
288
+ ..._
289
+ }, o) => {
290
+ const d = [
291
+ ge.avatar,
292
+ ge[l],
293
+ ge[c],
294
+ r
295
+ ].filter(Boolean).join(" "), p = /* @__PURE__ */ e("div", { ref: o, className: d, children: n ? /* @__PURE__ */ e("img", { src: n, alt: a, className: ge.image, ..._ }) : /* @__PURE__ */ e("span", { children: s || "?" }) });
296
+ return i ? /* @__PURE__ */ t("div", { className: ge.wrapper, children: [
297
+ p,
298
+ /* @__PURE__ */ e("span", { className: `${ge.status} ${ge[i]}` })
299
+ ] }) : p;
300
+ }
301
+ );
302
+ Xt.displayName = "Avatar";
303
+ function gN({ children: n, max: a }) {
304
+ const s = fn.Children.toArray(n), l = a ? s.slice(0, a) : s, c = a ? s.length - a : 0;
305
+ return /* @__PURE__ */ t("div", { className: ge.group, children: [
306
+ l,
307
+ c > 0 && /* @__PURE__ */ t("div", { className: `${ge.avatar} ${ge.md} ${ge.circle}`, children: [
308
+ "+",
309
+ c
310
+ ] })
311
+ ] });
312
+ }
313
+ const Zt = "_tabList_1c0yh_11", ea = "_tab_1c0yh_11", na = "_active_1c0yh_71", ta = "_tabPanel_1c0yh_107", aa = "_pills_1c0yh_117", sa = "_underline_1c0yh_167", tn = {
314
+ tabList: Zt,
315
+ tab: ea,
316
+ active: na,
317
+ tabPanel: ta,
318
+ pills: aa,
319
+ underline: sa
320
+ }, _n = cn(null);
321
+ function oa({
322
+ defaultTab: n,
323
+ activeTab: a,
324
+ onTabChange: s,
325
+ variant: l = "default",
326
+ children: c
327
+ }) {
328
+ const [i, r] = k(n || ""), _ = a ?? i, o = (d) => {
329
+ a || r(d), s?.(d);
330
+ };
331
+ return /* @__PURE__ */ e(_n.Provider, { value: { activeTab: _, setActiveTab: o }, children: /* @__PURE__ */ e("div", { "data-variant": l, children: c }) });
332
+ }
333
+ function ca({ children: n, variant: a = "default" }) {
334
+ return /* @__PURE__ */ e(
335
+ "div",
336
+ {
337
+ className: `${tn.tabList} ${a !== "default" ? tn[a] : ""}`,
338
+ role: "tablist",
339
+ children: n
340
+ }
341
+ );
342
+ }
343
+ function la({ id: n, children: a, icon: s, disabled: l = !1 }) {
344
+ const c = an(_n);
345
+ if (!c) throw new Error("Tab must be used within Tabs");
346
+ const { activeTab: i, setActiveTab: r } = c, _ = i === n;
347
+ return /* @__PURE__ */ t(
348
+ "button",
349
+ {
350
+ className: `${tn.tab} ${_ ? tn.active : ""}`,
351
+ role: "tab",
352
+ "aria-selected": _,
353
+ onClick: () => !l && r(n),
354
+ disabled: l,
355
+ children: [
356
+ s && /* @__PURE__ */ e("span", { children: s }),
357
+ a
358
+ ]
359
+ }
360
+ );
361
+ }
362
+ function ra({ id: n, children: a }) {
363
+ const s = an(_n);
364
+ if (!s) throw new Error("TabPanel must be used within Tabs");
365
+ const { activeTab: l } = s;
366
+ return l !== n ? null : /* @__PURE__ */ e("div", { className: tn.tabPanel, role: "tabpanel", children: a });
367
+ }
368
+ oa.displayName = "Tabs";
369
+ ca.displayName = "TabList";
370
+ la.displayName = "Tab";
371
+ ra.displayName = "TabPanel";
372
+ const ia = "_selectWrapper_gp0p4_11", _a = "_label_gp0p4_25", da = "_required_gp0p4_43", ma = "_selectContainer_gp0p4_53", pa = "_select_gp0p4_11", ua = "_arrow_gp0p4_139", ha = "_sm_gp0p4_167", ga = "_lg_gp0p4_177", fa = "_error_gp0p4_189", va = "_errorMessage_gp0p4_199", ba = "_helperText_gp0p4_215", $a = "_fullWidth_gp0p4_229", ie = {
373
+ selectWrapper: ia,
374
+ label: _a,
375
+ required: da,
376
+ selectContainer: ma,
377
+ select: pa,
378
+ arrow: ua,
379
+ sm: ha,
380
+ lg: ga,
381
+ error: fa,
382
+ errorMessage: va,
383
+ helperText: ba,
384
+ fullWidth: $a
385
+ }, Na = se(
386
+ ({
387
+ label: n,
388
+ options: a,
389
+ placeholder: s,
390
+ size: l = "md",
391
+ error: c,
392
+ helperText: i,
393
+ fullWidth: r = !1,
394
+ required: _ = !1,
395
+ className: o = "",
396
+ id: d,
397
+ ...p
398
+ }, u) => {
399
+ const m = d || `select-${Math.random().toString(36).substr(2, 9)}`, h = [
400
+ ie.selectWrapper,
401
+ ie[l],
402
+ c && ie.error,
403
+ r && ie.fullWidth,
404
+ o
405
+ ].filter(Boolean).join(" ");
406
+ return /* @__PURE__ */ t("div", { className: h, children: [
407
+ n && /* @__PURE__ */ t("label", { htmlFor: m, className: ie.label, children: [
408
+ n,
409
+ _ && /* @__PURE__ */ e("span", { className: ie.required, children: "*" })
410
+ ] }),
411
+ /* @__PURE__ */ t("div", { className: ie.selectContainer, children: [
412
+ /* @__PURE__ */ t(
413
+ "select",
414
+ {
415
+ ref: u,
416
+ id: m,
417
+ className: ie.select,
418
+ "aria-invalid": !!c,
419
+ ...p,
420
+ children: [
421
+ s && /* @__PURE__ */ e("option", { value: "", disabled: !0, children: s }),
422
+ a.map((f) => /* @__PURE__ */ e(
423
+ "option",
424
+ {
425
+ value: f.value,
426
+ disabled: f.disabled,
427
+ children: f.label
428
+ },
429
+ f.value
430
+ ))
431
+ ]
432
+ }
433
+ ),
434
+ /* @__PURE__ */ e("span", { className: ie.arrow, children: /* @__PURE__ */ e("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2.5", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { d: "m6 9 6 6 6-6" }) }) })
435
+ ] }),
436
+ c && /* @__PURE__ */ e("span", { className: ie.errorMessage, children: c }),
437
+ i && !c && /* @__PURE__ */ e("span", { className: ie.helperText, children: i })
438
+ ] });
439
+ }
440
+ );
441
+ Na.displayName = "Select";
442
+ const ya = "_toastContainer_1eyww_11", ka = "_topRight_1eyww_33", wa = "_topLeft_1eyww_43", Ca = "_bottomRight_1eyww_53", xa = "_bottomLeft_1eyww_63", Ba = "_topCenter_1eyww_73", Ia = "_bottomCenter_1eyww_85", Ta = "_toast_1eyww_11", za = "_slideIn_1eyww_1", La = "_exiting_1eyww_129", ja = "_slideOut_1eyww_1", Sa = "_icon_1eyww_139", Da = "_content_1eyww_161", qa = "_title_1eyww_171", Ra = "_message_1eyww_191", Ma = "_closeBtn_1eyww_207", Aa = "_success_1eyww_251", Wa = "_error_1eyww_267", Ea = "_warning_1eyww_283", Pa = "_info_1eyww_299", ke = {
443
+ toastContainer: ya,
444
+ topRight: ka,
445
+ topLeft: wa,
446
+ bottomRight: Ca,
447
+ bottomLeft: xa,
448
+ topCenter: Ba,
449
+ bottomCenter: Ia,
450
+ toast: Ta,
451
+ slideIn: za,
452
+ exiting: La,
453
+ slideOut: ja,
454
+ icon: Sa,
455
+ content: Da,
456
+ title: qa,
457
+ message: Ra,
458
+ closeBtn: Ma,
459
+ success: Aa,
460
+ error: Wa,
461
+ warning: Ea,
462
+ info: Pa
463
+ }, pn = cn(null), Fa = {
464
+ success: "✓",
465
+ error: "✕",
466
+ warning: "⚠",
467
+ info: "ℹ"
468
+ };
469
+ function Oa({ toast: n, onRemove: a }) {
470
+ const [s, l] = k(!1);
471
+ B(() => {
472
+ if (n.duration !== 0) {
473
+ const i = setTimeout(() => {
474
+ l(!0), setTimeout(a, 200);
475
+ }, n.duration || 4e3);
476
+ return () => clearTimeout(i);
477
+ }
478
+ }, [n.duration, a]);
479
+ const c = () => {
480
+ l(!0), setTimeout(a, 200);
481
+ };
482
+ return /* @__PURE__ */ t("div", { className: `${ke.toast} ${ke[n.variant || "info"]} ${s ? ke.exiting : ""}`, children: [
483
+ /* @__PURE__ */ e("span", { className: ke.icon, children: Fa[n.variant || "info"] }),
484
+ /* @__PURE__ */ t("div", { className: ke.content, children: [
485
+ n.title && /* @__PURE__ */ e("div", { className: ke.title, children: n.title }),
486
+ /* @__PURE__ */ e("div", { className: ke.message, children: n.message })
487
+ ] }),
488
+ /* @__PURE__ */ e("button", { className: ke.closeBtn, onClick: c, children: "✕" })
489
+ ] });
490
+ }
491
+ function Ga({ children: n, position: a = "topRight" }) {
492
+ const [s, l] = k([]), c = Fe((r) => {
493
+ const _ = Math.random().toString(36).substr(2, 9);
494
+ l((o) => [...o, { ...r, id: _ }]);
495
+ }, []), i = Fe((r) => {
496
+ l((_) => _.filter((o) => o.id !== r));
497
+ }, []);
498
+ return /* @__PURE__ */ t(pn.Provider, { value: { addToast: c, removeToast: i }, children: [
499
+ n,
500
+ Le(
501
+ /* @__PURE__ */ e("div", { className: `${ke.toastContainer} ${ke[a]}`, children: s.map((r) => /* @__PURE__ */ e(
502
+ Oa,
503
+ {
504
+ toast: r,
505
+ onRemove: () => i(r.id)
506
+ },
507
+ r.id
508
+ )) }),
509
+ document.body
510
+ )
511
+ ] });
512
+ }
513
+ function fN() {
514
+ const n = an(pn);
515
+ if (!n)
516
+ throw new Error("useToast must be used within ToastProvider");
517
+ return n;
518
+ }
519
+ Ga.displayName = "ToastProvider";
520
+ const Ua = "_tooltipWrapper_17jm1_11", Va = "_tooltip_17jm1_11", Ha = "_top_17jm1_75", Ya = "_bottom_17jm1_95", Ka = "_left_17jm1_115", Qa = "_right_17jm1_135", rn = {
521
+ tooltipWrapper: Ua,
522
+ tooltip: Va,
523
+ top: Ha,
524
+ bottom: Ya,
525
+ left: Ka,
526
+ right: Qa
527
+ };
528
+ function Ja({
529
+ content: n,
530
+ position: a = "top",
531
+ children: s
532
+ }) {
533
+ return /* @__PURE__ */ t("div", { className: rn.tooltipWrapper, children: [
534
+ s,
535
+ /* @__PURE__ */ e("div", { className: `${rn.tooltip} ${rn[a]}`, children: n })
536
+ ] });
537
+ }
538
+ Ja.displayName = "Tooltip";
539
+ const Xa = "_progressWrapper_1nzwi_11", Za = "_label_1nzwi_19", es = "_labelText_1nzwi_33", ns = "_percentage_1nzwi_49", ts = "_track_1nzwi_63", as = "_sm_1nzwi_83", ss = "_md_1nzwi_91", os = "_lg_1nzwi_99", cs = "_fill_1nzwi_109", ls = "_success_1nzwi_133", rs = "_warning_1nzwi_141", is = "_danger_1nzwi_149", _s = "_striped_1nzwi_159", ds = "_animated_1nzwi_187", ms = "_stripeMove_1nzwi_1", ps = "_indeterminate_1nzwi_217", _e = {
540
+ progressWrapper: Xa,
541
+ label: Za,
542
+ labelText: es,
543
+ percentage: ns,
544
+ track: ts,
545
+ sm: as,
546
+ md: ss,
547
+ lg: os,
548
+ fill: cs,
549
+ default: "_default_1nzwi_125",
550
+ success: ls,
551
+ warning: rs,
552
+ danger: is,
553
+ striped: _s,
554
+ animated: ds,
555
+ stripeMove: ms,
556
+ indeterminate: ps
557
+ };
558
+ function us({
559
+ value: n = 0,
560
+ variant: a = "default",
561
+ size: s = "md",
562
+ label: l,
563
+ showPercentage: c = !1,
564
+ striped: i = !1,
565
+ animated: r = !1,
566
+ indeterminate: _ = !1
567
+ }) {
568
+ const o = Math.min(100, Math.max(0, n)), d = [
569
+ _e.progressWrapper,
570
+ _e[a],
571
+ _e[s],
572
+ i && _e.striped,
573
+ r && _e.animated,
574
+ _ && _e.indeterminate
575
+ ].filter(Boolean).join(" ");
576
+ return /* @__PURE__ */ t("div", { className: d, children: [
577
+ (l || c) && /* @__PURE__ */ t("div", { className: _e.label, children: [
578
+ l && /* @__PURE__ */ e("span", { className: _e.labelText, children: l }),
579
+ c && !_ && /* @__PURE__ */ t("span", { className: _e.percentage, children: [
580
+ o,
581
+ "%"
582
+ ] })
583
+ ] }),
584
+ /* @__PURE__ */ e("div", { className: _e.track, children: /* @__PURE__ */ e(
585
+ "div",
586
+ {
587
+ className: _e.fill,
588
+ style: { width: _ ? void 0 : `${o}%` },
589
+ role: "progressbar",
590
+ "aria-valuenow": _ ? void 0 : o,
591
+ "aria-valuemin": 0,
592
+ "aria-valuemax": 100
593
+ }
594
+ ) })
595
+ ] });
596
+ }
597
+ us.displayName = "Progress";
598
+ const hs = "_skeleton_r2www_11", gs = "_shimmer_r2www_1", fs = "_text_r2www_71", vs = "_title_r2www_83", bs = "_avatar_r2www_97", $s = "_thumbnail_r2www_107", Ns = "_button_r2www_117", ys = "_card_r2www_127", ks = "_xs_r2www_141", ws = "_sm_r2www_151", Cs = "_md_r2www_161", xs = "_lg_r2www_171", Bs = "_xl_r2www_181", Is = "_noAnimation_r2www_193", Ts = "_fullWidth_r2www_203", zs = "_mangaCard_r2www_213", Ls = "_cover_r2www_233", js = "_lines_r2www_247", ze = {
599
+ skeleton: hs,
600
+ shimmer: gs,
601
+ text: fs,
602
+ title: vs,
603
+ avatar: bs,
604
+ thumbnail: $s,
605
+ button: Ns,
606
+ card: ys,
607
+ xs: ks,
608
+ sm: ws,
609
+ md: Cs,
610
+ lg: xs,
611
+ xl: Bs,
612
+ noAnimation: Is,
613
+ fullWidth: Ts,
614
+ mangaCard: zs,
615
+ cover: Ls,
616
+ lines: js
617
+ };
618
+ function on({
619
+ variant: n = "text",
620
+ size: a = "md",
621
+ width: s,
622
+ height: l,
623
+ noAnimation: c = !1,
624
+ fullWidth: i = !1,
625
+ className: r = "",
626
+ style: _
627
+ }) {
628
+ const o = [
629
+ ze.skeleton,
630
+ ze[n],
631
+ n === "avatar" && ze[a],
632
+ c && ze.noAnimation,
633
+ i && ze.fullWidth,
634
+ r
635
+ ].filter(Boolean).join(" "), d = {
636
+ ..._,
637
+ ...s && { width: typeof s == "number" ? `${s}px` : s },
638
+ ...l && { height: typeof l == "number" ? `${l}px` : l }
639
+ };
640
+ return /* @__PURE__ */ e("div", { className: o, style: d });
641
+ }
642
+ function Ss() {
643
+ return /* @__PURE__ */ t("div", { className: ze.mangaCard, children: [
644
+ /* @__PURE__ */ e("div", { className: `${ze.skeleton} ${ze.cover}` }),
645
+ /* @__PURE__ */ t("div", { className: ze.lines, children: [
646
+ /* @__PURE__ */ e(on, { variant: "title", width: "80%" }),
647
+ /* @__PURE__ */ e(on, { variant: "text", width: "60%" }),
648
+ /* @__PURE__ */ e(on, { variant: "text", width: "40%" })
649
+ ] })
650
+ ] });
651
+ }
652
+ on.displayName = "Skeleton";
653
+ Ss.displayName = "SkeletonMangaCard";
654
+ const Ds = "_switchWrapper_lf04y_11", qs = "_disabled_lf04y_25", Rs = "_checked_lf04y_85", Ms = "_label_lf04y_129", As = "_input_lf04y_147", Ws = "_sm_lf04y_163", Es = "_lg_lf04y_195", Oe = {
655
+ switchWrapper: Ds,
656
+ disabled: qs,
657
+ switch: "_switch_lf04y_11",
658
+ checked: Rs,
659
+ label: Ms,
660
+ input: As,
661
+ sm: Ws,
662
+ lg: Es
663
+ }, Ps = se(
664
+ ({
665
+ label: n,
666
+ size: a = "md",
667
+ checked: s = !1,
668
+ disabled: l = !1,
669
+ onCheckedChange: c,
670
+ onChange: i,
671
+ className: r = "",
672
+ ..._
673
+ }, o) => {
674
+ const d = [
675
+ Oe.switchWrapper,
676
+ Oe[a],
677
+ s && Oe.checked,
678
+ l && Oe.disabled,
679
+ r
680
+ ].filter(Boolean).join(" "), p = (u) => {
681
+ i?.(u), c?.(u.target.checked);
682
+ };
683
+ return /* @__PURE__ */ t("label", { className: d, children: [
684
+ /* @__PURE__ */ e(
685
+ "input",
686
+ {
687
+ ref: o,
688
+ type: "checkbox",
689
+ className: Oe.input,
690
+ checked: s,
691
+ disabled: l,
692
+ onChange: p,
693
+ ..._
694
+ }
695
+ ),
696
+ /* @__PURE__ */ e("span", { className: Oe.switch }),
697
+ n && /* @__PURE__ */ e("span", { className: Oe.label, children: n })
698
+ ] });
699
+ }
700
+ );
701
+ Ps.displayName = "Switch";
702
+ const Fs = "_checkboxWrapper_dpxrp_11", Os = "_disabled_dpxrp_25", Gs = "_checkbox_dpxrp_11", Us = "_checkmark_dpxrp_65", Vs = "_checked_dpxrp_85", Hs = "_label_dpxrp_129", Ys = "_input_dpxrp_143", Ks = "_sm_dpxrp_159", Qs = "_lg_dpxrp_177", Js = "_indeterminate_dpxrp_197", we = {
703
+ checkboxWrapper: Fs,
704
+ disabled: Os,
705
+ checkbox: Gs,
706
+ checkmark: Us,
707
+ checked: Vs,
708
+ label: Hs,
709
+ input: Ys,
710
+ sm: Ks,
711
+ lg: Qs,
712
+ indeterminate: Js
713
+ }, Xs = se(
714
+ ({
715
+ label: n,
716
+ size: a = "md",
717
+ checked: s = !1,
718
+ indeterminate: l = !1,
719
+ disabled: c = !1,
720
+ onCheckedChange: i,
721
+ onChange: r,
722
+ className: _ = "",
723
+ ...o
724
+ }, d) => {
725
+ const p = [
726
+ we.checkboxWrapper,
727
+ we[a],
728
+ s && we.checked,
729
+ l && we.indeterminate,
730
+ c && we.disabled,
731
+ _
732
+ ].filter(Boolean).join(" "), u = (m) => {
733
+ r?.(m), i?.(m.target.checked);
734
+ };
735
+ return /* @__PURE__ */ t("label", { className: p, children: [
736
+ /* @__PURE__ */ e(
737
+ "input",
738
+ {
739
+ ref: d,
740
+ type: "checkbox",
741
+ className: we.input,
742
+ checked: s,
743
+ disabled: c,
744
+ onChange: u,
745
+ ...o
746
+ }
747
+ ),
748
+ /* @__PURE__ */ e("span", { className: we.checkbox, children: /* @__PURE__ */ e("span", { className: we.checkmark, children: "✓" }) }),
749
+ n && /* @__PURE__ */ e("span", { className: we.label, children: n })
750
+ ] });
751
+ }
752
+ );
753
+ Xs.displayName = "Checkbox";
754
+ const Zs = "_radioWrapper_y3wxd_11", eo = "_disabled_y3wxd_25", no = "_radio_y3wxd_11", to = "_checked_y3wxd_89", ao = "_label_y3wxd_133", so = "_input_y3wxd_147", oo = "_radioGroup_y3wxd_163", co = "_horizontal_y3wxd_175", lo = "_groupLabel_y3wxd_185", Te = {
755
+ radioWrapper: Zs,
756
+ disabled: eo,
757
+ radio: no,
758
+ checked: to,
759
+ label: ao,
760
+ input: so,
761
+ radioGroup: oo,
762
+ horizontal: co,
763
+ groupLabel: lo
764
+ }, un = cn(null);
765
+ function ro({
766
+ name: n,
767
+ value: a = "",
768
+ onChange: s = () => {
769
+ },
770
+ label: l,
771
+ horizontal: c = !1,
772
+ disabled: i = !1,
773
+ children: r
774
+ }) {
775
+ return /* @__PURE__ */ e(un.Provider, { value: { name: n, value: a, onChange: s, disabled: i }, children: /* @__PURE__ */ t("div", { role: "radiogroup", children: [
776
+ l && /* @__PURE__ */ e("div", { className: Te.groupLabel, children: l }),
777
+ /* @__PURE__ */ e("div", { className: `${Te.radioGroup} ${c ? Te.horizontal : ""}`, children: r })
778
+ ] }) });
779
+ }
780
+ const io = se(
781
+ ({ value: n, label: a, disabled: s, className: l = "", ...c }, i) => {
782
+ const r = an(un), _ = r?.name || c.name || "", o = r ? r.value === n : !1, d = s ?? r?.disabled ?? !1, p = () => {
783
+ r?.onChange(n);
784
+ }, u = [
785
+ Te.radioWrapper,
786
+ o && Te.checked,
787
+ d && Te.disabled,
788
+ l
789
+ ].filter(Boolean).join(" ");
790
+ return /* @__PURE__ */ t("label", { className: u, children: [
791
+ /* @__PURE__ */ e(
792
+ "input",
793
+ {
794
+ ref: i,
795
+ type: "radio",
796
+ className: Te.input,
797
+ name: _,
798
+ value: n,
799
+ checked: o,
800
+ disabled: d,
801
+ onChange: p,
802
+ ...c
803
+ }
804
+ ),
805
+ /* @__PURE__ */ e("span", { className: Te.radio }),
806
+ a && /* @__PURE__ */ e("span", { className: Te.label, children: a })
807
+ ] });
808
+ }
809
+ );
810
+ io.displayName = "Radio";
811
+ ro.displayName = "RadioGroup";
812
+ const _o = "_accordion_gl4q2_11", mo = "_item_gl4q2_23", po = "_open_gl4q2_51", uo = "_trigger_gl4q2_63", ho = "_triggerText_gl4q2_99", go = "_triggerIcon_gl4q2_117", fo = "_content_gl4q2_161", vo = "_contentInner_gl4q2_181", Pe = {
813
+ accordion: _o,
814
+ item: mo,
815
+ open: po,
816
+ trigger: uo,
817
+ triggerText: ho,
818
+ triggerIcon: go,
819
+ content: fo,
820
+ contentInner: vo
821
+ }, hn = cn(null);
822
+ function bo({
823
+ defaultOpen: n = [],
824
+ allowMultiple: a = !1,
825
+ children: s,
826
+ className: l = ""
827
+ }) {
828
+ const [c, i] = k(n), r = (_) => {
829
+ i((o) => o.includes(_) ? o.filter((d) => d !== _) : a ? [...o, _] : [_]);
830
+ };
831
+ return /* @__PURE__ */ e(hn.Provider, { value: { openItems: c, toggleItem: r, allowMultiple: a }, children: /* @__PURE__ */ e("div", { className: `${Pe.accordion} ${l}`, children: s }) });
832
+ }
833
+ function $o({
834
+ id: n,
835
+ title: a,
836
+ children: s,
837
+ disabled: l = !1
838
+ }) {
839
+ const c = an(hn);
840
+ if (!c) throw new Error("AccordionItem must be used within Accordion");
841
+ const { openItems: i, toggleItem: r } = c, _ = i.includes(n);
842
+ return /* @__PURE__ */ t("div", { className: `${Pe.item} ${_ ? Pe.open : ""}`, children: [
843
+ /* @__PURE__ */ t(
844
+ "button",
845
+ {
846
+ className: Pe.trigger,
847
+ onClick: () => !l && r(n),
848
+ disabled: l,
849
+ "aria-expanded": _,
850
+ children: [
851
+ /* @__PURE__ */ e("span", { className: Pe.triggerText, children: a }),
852
+ /* @__PURE__ */ e("span", { className: Pe.triggerIcon, children: "▼" })
853
+ ]
854
+ }
855
+ ),
856
+ /* @__PURE__ */ e("div", { className: Pe.content, children: /* @__PURE__ */ e("div", { className: Pe.contentInner, children: s }) })
857
+ ] });
858
+ }
859
+ bo.displayName = "Accordion";
860
+ $o.displayName = "AccordionItem";
861
+ const No = "_dropdown_1dkfo_11", yo = "_trigger_1dkfo_21", ko = "_menu_1dkfo_29", wo = "_open_1dkfo_65", Co = "_alignRight_1dkfo_79", xo = "_alignCenter_1dkfo_89", Bo = "_item_1dkfo_109", Io = "_danger_1dkfo_161", To = "_disabled_1dkfo_179", zo = "_itemIcon_1dkfo_199", Lo = "_separator_1dkfo_219", jo = "_label_1dkfo_233", le = {
862
+ dropdown: No,
863
+ trigger: yo,
864
+ menu: ko,
865
+ open: wo,
866
+ alignRight: Co,
867
+ alignCenter: xo,
868
+ item: Bo,
869
+ danger: Io,
870
+ disabled: To,
871
+ itemIcon: zo,
872
+ separator: Lo,
873
+ label: jo
874
+ };
875
+ function So({
876
+ trigger: n,
877
+ children: a,
878
+ align: s = "left",
879
+ closeOnClick: l = !0
880
+ }) {
881
+ const [c, i] = k(!1), r = fe(null);
882
+ B(() => {
883
+ const o = (d) => {
884
+ r.current && !r.current.contains(d.target) && i(!1);
885
+ };
886
+ return c && document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
887
+ }, [c]);
888
+ const _ = s === "right" ? le.alignRight : s === "center" ? le.alignCenter : "";
889
+ return /* @__PURE__ */ t(
890
+ "div",
891
+ {
892
+ ref: r,
893
+ className: `${le.dropdown} ${c ? le.open : ""} ${_}`,
894
+ children: [
895
+ /* @__PURE__ */ e("div", { className: le.trigger, onClick: () => i(!c), children: n }),
896
+ /* @__PURE__ */ e("div", { className: le.menu, onClick: l ? () => i(!1) : void 0, children: a })
897
+ ]
898
+ }
899
+ );
900
+ }
901
+ function Do({
902
+ children: n,
903
+ icon: a,
904
+ danger: s = !1,
905
+ disabled: l = !1,
906
+ onClick: c
907
+ }) {
908
+ const i = () => {
909
+ !l && c && c();
910
+ }, r = [
911
+ le.item,
912
+ s && le.danger,
913
+ l && le.disabled
914
+ ].filter(Boolean).join(" ");
915
+ return /* @__PURE__ */ t("button", { className: r, onClick: i, disabled: l, children: [
916
+ a && /* @__PURE__ */ e("span", { className: le.itemIcon, children: a }),
917
+ n
918
+ ] });
919
+ }
920
+ function qo() {
921
+ return /* @__PURE__ */ e("div", { className: le.separator });
922
+ }
923
+ function Ro({ children: n }) {
924
+ return /* @__PURE__ */ e("div", { className: le.label, children: n });
925
+ }
926
+ So.displayName = "Dropdown";
927
+ Do.displayName = "DropdownItem";
928
+ qo.displayName = "DropdownSeparator";
929
+ Ro.displayName = "DropdownLabel";
930
+ const Mo = "_sliderWrapper_1pmo4_11", Ao = "_label_1pmo4_25", Wo = "_labelText_1pmo4_37", Eo = "_value_1pmo4_53", Po = "_sliderContainer_1pmo4_65", Fo = "_track_1pmo4_79", Oo = "_fill_1pmo4_99", Go = "_thumb_1pmo4_115", Uo = "_input_1pmo4_163", Vo = "_sm_1pmo4_183", Ho = "_lg_1pmo4_203", Yo = "_disabled_1pmo4_227", de = {
931
+ sliderWrapper: Mo,
932
+ label: Ao,
933
+ labelText: Wo,
934
+ value: Eo,
935
+ sliderContainer: Po,
936
+ track: Fo,
937
+ fill: Oo,
938
+ thumb: Go,
939
+ input: Uo,
940
+ sm: Vo,
941
+ lg: Ho,
942
+ disabled: Yo
943
+ }, Ko = se(
944
+ ({
945
+ value: n = 0,
946
+ min: a = 0,
947
+ max: s = 100,
948
+ step: l = 1,
949
+ label: c,
950
+ showValue: i = !1,
951
+ size: r = "md",
952
+ disabled: _ = !1,
953
+ onValueChange: o,
954
+ onChange: d,
955
+ className: p = "",
956
+ ...u
957
+ }, m) => {
958
+ const h = (n - a) / (s - a) * 100, f = ($) => {
959
+ const v = Number($.target.value);
960
+ d?.($), o?.(v);
961
+ }, g = [
962
+ de.sliderWrapper,
963
+ de[r],
964
+ _ && de.disabled,
965
+ p
966
+ ].filter(Boolean).join(" ");
967
+ return /* @__PURE__ */ t("div", { className: g, children: [
968
+ (c || i) && /* @__PURE__ */ t("div", { className: de.label, children: [
969
+ c && /* @__PURE__ */ e("span", { className: de.labelText, children: c }),
970
+ i && /* @__PURE__ */ e("span", { className: de.value, children: n })
971
+ ] }),
972
+ /* @__PURE__ */ t("div", { className: de.sliderContainer, children: [
973
+ /* @__PURE__ */ e("div", { className: de.track }),
974
+ /* @__PURE__ */ e("div", { className: de.fill, style: { width: `${h}%` } }),
975
+ /* @__PURE__ */ e("div", { className: de.thumb, style: { left: `${h}%` } }),
976
+ /* @__PURE__ */ e(
977
+ "input",
978
+ {
979
+ ref: m,
980
+ type: "range",
981
+ className: de.input,
982
+ value: n,
983
+ min: a,
984
+ max: s,
985
+ step: l,
986
+ disabled: _,
987
+ onChange: f,
988
+ ...u
989
+ }
990
+ )
991
+ ] })
992
+ ] });
993
+ }
994
+ );
995
+ Ko.displayName = "Slider";
996
+ const Qo = "_alert_1my5n_11", Jo = "_icon_1my5n_31", Xo = "_content_1my5n_51", Zo = "_title_1my5n_61", ec = "_description_1my5n_79", nc = "_closeBtn_1my5n_93", tc = "_info_1my5n_137", ac = "_success_1my5n_153", sc = "_warning_1my5n_169", oc = "_error_1my5n_185", Ge = {
997
+ alert: Qo,
998
+ icon: Jo,
999
+ content: Xo,
1000
+ title: Zo,
1001
+ description: ec,
1002
+ closeBtn: nc,
1003
+ info: tc,
1004
+ success: ac,
1005
+ warning: sc,
1006
+ error: oc
1007
+ }, cc = {
1008
+ info: "ℹ",
1009
+ success: "✓",
1010
+ warning: "⚠",
1011
+ error: "✕"
1012
+ };
1013
+ function lc({
1014
+ variant: n = "info",
1015
+ title: a,
1016
+ children: s,
1017
+ closable: l = !1,
1018
+ onClose: c,
1019
+ icon: i,
1020
+ className: r = ""
1021
+ }) {
1022
+ return /* @__PURE__ */ t("div", { className: `${Ge.alert} ${Ge[n]} ${r}`, role: "alert", children: [
1023
+ /* @__PURE__ */ e("span", { className: Ge.icon, children: i ?? cc[n] }),
1024
+ /* @__PURE__ */ t("div", { className: Ge.content, children: [
1025
+ a && /* @__PURE__ */ e("div", { className: Ge.title, children: a }),
1026
+ s && /* @__PURE__ */ e("div", { className: Ge.description, children: s })
1027
+ ] }),
1028
+ l && /* @__PURE__ */ e("button", { className: Ge.closeBtn, onClick: c, "aria-label": "Close", children: "✕" })
1029
+ ] });
1030
+ }
1031
+ lc.displayName = "Alert";
1032
+ const rc = "_pagination_1pgq3_11", ic = "_button_1pgq3_23", _c = "_active_1pgq3_65", dc = "_ellipsis_1pgq3_101", mc = "_nav_1pgq3_125", pc = "_sm_1pgq3_135", uc = "_lg_1pgq3_149", Ce = {
1033
+ pagination: rc,
1034
+ button: ic,
1035
+ active: _c,
1036
+ ellipsis: dc,
1037
+ nav: mc,
1038
+ sm: pc,
1039
+ lg: uc
1040
+ };
1041
+ function hc({
1042
+ currentPage: n,
1043
+ totalPages: a,
1044
+ onPageChange: s,
1045
+ maxVisible: l = 5,
1046
+ showNavigation: c = !0,
1047
+ size: i = "md",
1048
+ className: r = ""
1049
+ }) {
1050
+ const o = (() => {
1051
+ const d = [];
1052
+ if (a <= l) {
1053
+ for (let h = 1; h <= a; h++) d.push(h);
1054
+ return d;
1055
+ }
1056
+ const p = Math.floor(l / 2);
1057
+ let u = Math.max(1, n - p), m = Math.min(a, n + p);
1058
+ n <= p ? m = l : n >= a - p && (u = a - l + 1), u > 1 && (d.push(1), u > 2 && d.push("ellipsis"));
1059
+ for (let h = u; h <= m; h++) d.push(h);
1060
+ return m < a && (m < a - 1 && d.push("ellipsis"), d.push(a)), d;
1061
+ })();
1062
+ return /* @__PURE__ */ t("nav", { className: `${Ce.pagination} ${Ce[i]} ${r}`, "aria-label": "Pagination", children: [
1063
+ c && /* @__PURE__ */ e(
1064
+ "button",
1065
+ {
1066
+ className: `${Ce.button} ${Ce.nav}`,
1067
+ onClick: () => s(n - 1),
1068
+ disabled: n <= 1,
1069
+ "aria-label": "Previous page",
1070
+ children: "←"
1071
+ }
1072
+ ),
1073
+ o.map(
1074
+ (d, p) => d === "ellipsis" ? /* @__PURE__ */ e("span", { className: Ce.ellipsis, children: "..." }, `ellipsis-${p}`) : /* @__PURE__ */ e(
1075
+ "button",
1076
+ {
1077
+ className: `${Ce.button} ${n === d ? Ce.active : ""}`,
1078
+ onClick: () => s(d),
1079
+ "aria-current": n === d ? "page" : void 0,
1080
+ children: d
1081
+ },
1082
+ d
1083
+ )
1084
+ ),
1085
+ c && /* @__PURE__ */ e(
1086
+ "button",
1087
+ {
1088
+ className: `${Ce.button} ${Ce.nav}`,
1089
+ onClick: () => s(n + 1),
1090
+ disabled: n >= a,
1091
+ "aria-label": "Next page",
1092
+ children: "→"
1093
+ }
1094
+ )
1095
+ ] });
1096
+ }
1097
+ hc.displayName = "Pagination";
1098
+ const gc = "_breadcrumb_uypmd_11", fc = "_item_uypmd_27", vc = "_link_uypmd_39", bc = "_current_uypmd_69", $c = "_separator_uypmd_81", Nc = "_icon_uypmd_93", yc = "_sm_uypmd_107", kc = "_lg_uypmd_115", Se = {
1099
+ breadcrumb: gc,
1100
+ item: fc,
1101
+ link: vc,
1102
+ current: bc,
1103
+ separator: $c,
1104
+ icon: Nc,
1105
+ sm: yc,
1106
+ lg: kc
1107
+ };
1108
+ function wc({
1109
+ items: n,
1110
+ separator: a = "/",
1111
+ size: s = "md",
1112
+ className: l = ""
1113
+ }) {
1114
+ return /* @__PURE__ */ e(
1115
+ "nav",
1116
+ {
1117
+ className: `${Se.breadcrumb} ${s !== "md" ? Se[s] : ""} ${l}`,
1118
+ "aria-label": "Breadcrumb",
1119
+ children: n.map((c, i) => {
1120
+ const r = i === n.length - 1;
1121
+ return /* @__PURE__ */ t("div", { className: Se.item, children: [
1122
+ c.icon && /* @__PURE__ */ e("span", { className: Se.icon, children: c.icon }),
1123
+ r || !c.href ? /* @__PURE__ */ e("span", { className: `${Se.link} ${r ? Se.current : ""}`, children: c.label }) : /* @__PURE__ */ e("a", { href: c.href, className: Se.link, children: c.label }),
1124
+ !r && /* @__PURE__ */ e("span", { className: Se.separator, children: a })
1125
+ ] }, i);
1126
+ })
1127
+ }
1128
+ );
1129
+ }
1130
+ wc.displayName = "Breadcrumb";
1131
+ const Cc = "_divider_1tg6m_11", xc = "_line_1tg6m_25", Bc = "_noLabel_1tg6m_47", Ic = "_label_1tg6m_57", Tc = "_vertical_1tg6m_77", zc = "_dashed_1tg6m_113", Lc = "_sm_1tg6m_141", jc = "_md_1tg6m_149", Sc = "_lg_1tg6m_157", De = {
1132
+ divider: Cc,
1133
+ line: xc,
1134
+ noLabel: Bc,
1135
+ label: Ic,
1136
+ vertical: Tc,
1137
+ dashed: zc,
1138
+ sm: Lc,
1139
+ md: jc,
1140
+ lg: Sc
1141
+ };
1142
+ function Dc({
1143
+ label: n,
1144
+ vertical: a = !1,
1145
+ dashed: s = !1,
1146
+ spacing: l = "md",
1147
+ className: c = ""
1148
+ }) {
1149
+ const i = [
1150
+ De.divider,
1151
+ !n && De.noLabel,
1152
+ a && De.vertical,
1153
+ s && De.dashed,
1154
+ De[l],
1155
+ c
1156
+ ].filter(Boolean).join(" ");
1157
+ return /* @__PURE__ */ t("div", { className: i, role: "separator", children: [
1158
+ /* @__PURE__ */ e("div", { className: De.line }),
1159
+ n && /* @__PURE__ */ e("span", { className: De.label, children: n }),
1160
+ n && /* @__PURE__ */ e("div", { className: De.line })
1161
+ ] });
1162
+ }
1163
+ Dc.displayName = "Divider";
1164
+ const qc = "_tableWrapper_7nh49_11", Rc = "_table_7nh49_11", Mc = "_thead_7nh49_43", Ac = "_th_7nh49_43", Wc = "_tbody_7nh49_81", Ec = "_td_7nh49_97", Pc = "_striped_7nh49_131", Fc = "_compact_7nh49_141", qe = {
1165
+ tableWrapper: qc,
1166
+ table: Rc,
1167
+ thead: Mc,
1168
+ th: Ac,
1169
+ tbody: Wc,
1170
+ td: Ec,
1171
+ striped: Pc,
1172
+ compact: Fc
1173
+ };
1174
+ function Oc({
1175
+ columns: n,
1176
+ data: a,
1177
+ striped: s = !1,
1178
+ compact: l = !1,
1179
+ className: c = ""
1180
+ }) {
1181
+ const i = [
1182
+ qe.table,
1183
+ s && qe.striped,
1184
+ l && qe.compact,
1185
+ c
1186
+ ].filter(Boolean).join(" ");
1187
+ return /* @__PURE__ */ e("div", { className: qe.tableWrapper, children: /* @__PURE__ */ t("table", { className: i, children: [
1188
+ /* @__PURE__ */ e("thead", { className: qe.thead, children: /* @__PURE__ */ e("tr", { children: n.map((r) => /* @__PURE__ */ e("th", { className: qe.th, children: r.header }, String(r.key))) }) }),
1189
+ /* @__PURE__ */ e("tbody", { className: qe.tbody, children: a.map((r, _) => /* @__PURE__ */ e("tr", { children: n.map((o) => {
1190
+ const d = r[o.key];
1191
+ return /* @__PURE__ */ e("td", { className: qe.td, children: o.render ? o.render(d, r) : String(d ?? "") }, String(o.key));
1192
+ }) }, _)) })
1193
+ ] }) });
1194
+ }
1195
+ Oc.displayName = "Table";
1196
+ const Gc = "_rating_1353j_11", Uc = "_star_1353j_23", Vc = "_filled_1353j_37", Hc = "_half_1353j_47", Yc = "_readonly_1353j_79", Kc = "_sm_1353j_97", Qc = "_lg_1353j_105", Jc = "_value_1353j_115", Ue = {
1197
+ rating: Gc,
1198
+ star: Uc,
1199
+ filled: Vc,
1200
+ half: Hc,
1201
+ readonly: Yc,
1202
+ sm: Kc,
1203
+ lg: Qc,
1204
+ value: Jc
1205
+ };
1206
+ function Xc({
1207
+ value: n = 0,
1208
+ max: a = 5,
1209
+ readonly: s = !1,
1210
+ showValue: l = !1,
1211
+ size: c = "md",
1212
+ onValueChange: i,
1213
+ className: r = ""
1214
+ }) {
1215
+ const [_, o] = k(null), d = _ ?? n, p = (m) => {
1216
+ !s && i && i(m);
1217
+ }, u = [
1218
+ Ue.rating,
1219
+ s && Ue.readonly,
1220
+ c !== "md" && Ue[c],
1221
+ r
1222
+ ].filter(Boolean).join(" ");
1223
+ return /* @__PURE__ */ t("div", { className: u, children: [
1224
+ Array.from({ length: a }, (m, h) => {
1225
+ const f = h + 1, g = d >= f, $ = !g && d > h && d < f;
1226
+ return /* @__PURE__ */ e(
1227
+ "span",
1228
+ {
1229
+ className: `${Ue.star} ${g ? Ue.filled : ""} ${$ ? Ue.half : ""}`,
1230
+ onClick: () => p(f),
1231
+ onMouseEnter: () => !s && o(f),
1232
+ onMouseLeave: () => !s && o(null),
1233
+ role: s ? "img" : "button",
1234
+ "aria-label": `${f} star${f > 1 ? "s" : ""}`,
1235
+ children: "★"
1236
+ },
1237
+ h
1238
+ );
1239
+ }),
1240
+ l && /* @__PURE__ */ e("span", { className: Ue.value, children: n.toFixed(1) })
1241
+ ] });
1242
+ }
1243
+ Xc.displayName = "Rating";
1244
+ const Zc = "_spinner_1uv1q_11", el = "_icon_1uv1q_23", nl = "_spin_1uv1q_11", tl = "_xs_1uv1q_39", al = "_sm_1uv1q_51", sl = "_md_1uv1q_63", ol = "_lg_1uv1q_75", cl = "_xl_1uv1q_87", ll = "_withLabel_1uv1q_101", rl = "_label_1uv1q_111", il = "_primary_1uv1q_129", _l = "_secondary_1uv1q_137", dl = "_white_1uv1q_145", Xe = {
1245
+ spinner: Zc,
1246
+ icon: el,
1247
+ spin: nl,
1248
+ xs: tl,
1249
+ sm: al,
1250
+ md: sl,
1251
+ lg: ol,
1252
+ xl: cl,
1253
+ withLabel: ll,
1254
+ label: rl,
1255
+ primary: il,
1256
+ secondary: _l,
1257
+ white: dl
1258
+ };
1259
+ function ml({
1260
+ size: n = "md",
1261
+ variant: a = "primary",
1262
+ label: s,
1263
+ className: l = ""
1264
+ }) {
1265
+ const c = [
1266
+ Xe.spinner,
1267
+ Xe[n],
1268
+ Xe[a],
1269
+ s && Xe.withLabel,
1270
+ l
1271
+ ].filter(Boolean).join(" ");
1272
+ return /* @__PURE__ */ t("div", { className: c, role: "status", "aria-label": s || "Loading", children: [
1273
+ /* @__PURE__ */ e("div", { className: Xe.icon }),
1274
+ s && /* @__PURE__ */ e("span", { className: Xe.label, children: s })
1275
+ ] });
1276
+ }
1277
+ ml.displayName = "Spinner";
1278
+ const pl = "_tag_1jbmd_11", ul = "_removeBtn_1jbmd_63", hl = "_primary_1jbmd_117", gl = "_success_1jbmd_139", fl = "_warning_1jbmd_153", vl = "_info_1jbmd_167", bl = "_sm_1jbmd_183", $l = "_lg_1jbmd_193", sn = {
1279
+ tag: pl,
1280
+ removeBtn: ul,
1281
+ primary: hl,
1282
+ success: gl,
1283
+ warning: fl,
1284
+ info: vl,
1285
+ sm: bl,
1286
+ lg: $l
1287
+ };
1288
+ function Nl({
1289
+ children: n,
1290
+ variant: a = "default",
1291
+ size: s = "md",
1292
+ removable: l = !1,
1293
+ onRemove: c,
1294
+ className: i = ""
1295
+ }) {
1296
+ const r = [
1297
+ sn.tag,
1298
+ a !== "default" && sn[a],
1299
+ s !== "md" && sn[s],
1300
+ i
1301
+ ].filter(Boolean).join(" ");
1302
+ return /* @__PURE__ */ t("span", { className: r, children: [
1303
+ n,
1304
+ l && /* @__PURE__ */ e(
1305
+ "button",
1306
+ {
1307
+ className: sn.removeBtn,
1308
+ onClick: c,
1309
+ "aria-label": "Remove tag",
1310
+ children: "✕"
1311
+ }
1312
+ )
1313
+ ] });
1314
+ }
1315
+ Nl.displayName = "Tag";
1316
+ const yl = "_popover_1j290_11", kl = "_trigger_1j290_21", wl = "_content_1j290_29", Cl = "_open_1j290_61", xl = "_top_1j290_75", Bl = "_bottom_1j290_97", Il = "_left_1j290_119", Tl = "_right_1j290_141", zl = "_title_1j290_165", Ll = "_body_1j290_187", Ve = {
1317
+ popover: yl,
1318
+ trigger: kl,
1319
+ content: wl,
1320
+ open: Cl,
1321
+ top: xl,
1322
+ bottom: Bl,
1323
+ left: Il,
1324
+ right: Tl,
1325
+ title: zl,
1326
+ body: Ll
1327
+ };
1328
+ function jl({
1329
+ trigger: n,
1330
+ children: a,
1331
+ title: s,
1332
+ position: l = "bottom",
1333
+ className: c = ""
1334
+ }) {
1335
+ const [i, r] = k(!1), _ = fe(null);
1336
+ B(() => {
1337
+ const d = (p) => {
1338
+ _.current && !_.current.contains(p.target) && r(!1);
1339
+ };
1340
+ return i && document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
1341
+ }, [i]);
1342
+ const o = [
1343
+ Ve.popover,
1344
+ Ve[l],
1345
+ i && Ve.open,
1346
+ c
1347
+ ].filter(Boolean).join(" ");
1348
+ return /* @__PURE__ */ t("div", { ref: _, className: o, children: [
1349
+ /* @__PURE__ */ e("div", { className: Ve.trigger, onClick: () => r(!i), children: n }),
1350
+ /* @__PURE__ */ t("div", { className: Ve.content, children: [
1351
+ s && /* @__PURE__ */ e("div", { className: Ve.title, children: s }),
1352
+ /* @__PURE__ */ e("div", { className: Ve.body, children: a })
1353
+ ] })
1354
+ ] });
1355
+ }
1356
+ jl.displayName = "Popover";
1357
+ const Sl = "_stepper_172t4_11", Dl = "_horizontal_172t4_21", ql = "_vertical_172t4_29", Rl = "_step_172t4_11", Ml = "_indicator_172t4_71", Al = "_active_172t4_115", Wl = "_completed_172t4_129", El = "_content_172t4_145", Pl = "_title_172t4_165", Fl = "_description_172t4_189", Ol = "_connector_172t4_205", $e = {
1358
+ stepper: Sl,
1359
+ horizontal: Dl,
1360
+ vertical: ql,
1361
+ step: Rl,
1362
+ indicator: Ml,
1363
+ active: Al,
1364
+ completed: Wl,
1365
+ content: El,
1366
+ title: Pl,
1367
+ description: Fl,
1368
+ connector: Ol
1369
+ };
1370
+ function Gl({
1371
+ steps: n,
1372
+ currentStep: a,
1373
+ orientation: s = "horizontal",
1374
+ className: l = ""
1375
+ }) {
1376
+ return /* @__PURE__ */ e("div", { className: `${$e.stepper} ${$e[s]} ${l}`, children: n.map((c, i) => {
1377
+ const r = i < a, _ = i === a, o = i === n.length - 1, d = [
1378
+ $e.step,
1379
+ r && $e.completed,
1380
+ _ && $e.active
1381
+ ].filter(Boolean).join(" ");
1382
+ return /* @__PURE__ */ t("div", { className: d, children: [
1383
+ /* @__PURE__ */ e("div", { className: $e.indicator, children: r ? "✓" : c.icon || i + 1 }),
1384
+ /* @__PURE__ */ t("div", { className: $e.content, children: [
1385
+ /* @__PURE__ */ e("div", { className: $e.title, children: c.title }),
1386
+ c.description && /* @__PURE__ */ e("div", { className: $e.description, children: c.description })
1387
+ ] }),
1388
+ !o && /* @__PURE__ */ e("div", { className: $e.connector })
1389
+ ] }, i);
1390
+ }) });
1391
+ }
1392
+ Gl.displayName = "Stepper";
1393
+ const Ul = "_timeline_gmw8h_11", Vl = "_item_gmw8h_49", Hl = "_dot_gmw8h_69", Yl = "_card_gmw8h_111", Kl = "_time_gmw8h_11", Ql = "_title_gmw8h_157", Jl = "_description_gmw8h_175", He = {
1394
+ timeline: Ul,
1395
+ item: Vl,
1396
+ dot: Hl,
1397
+ card: Yl,
1398
+ time: Kl,
1399
+ title: Ql,
1400
+ description: Jl
1401
+ };
1402
+ function Xl({ items: n, className: a = "" }) {
1403
+ return /* @__PURE__ */ e("div", { className: `${He.timeline} ${a}`, children: n.map((s, l) => /* @__PURE__ */ t("div", { className: He.item, children: [
1404
+ /* @__PURE__ */ e("div", { className: He.dot, children: s.icon || "•" }),
1405
+ /* @__PURE__ */ t("div", { className: He.card, children: [
1406
+ /* @__PURE__ */ e("div", { className: He.time, children: s.time }),
1407
+ /* @__PURE__ */ e("div", { className: He.title, children: s.title }),
1408
+ s.description && /* @__PURE__ */ e("div", { className: He.description, children: s.description })
1409
+ ] })
1410
+ ] }, l)) });
1411
+ }
1412
+ Xl.displayName = "Timeline";
1413
+ const Zl = "_statsCard_1d7wd_11", er = "_icon_1d7wd_51", nr = "_content_1d7wd_85", tr = "_value_1d7wd_95", ar = "_label_1d7wd_113", sr = "_trend_1d7wd_133", or = "_up_1d7wd_151", cr = "_down_1d7wd_159", lr = "_success_1d7wd_169", rr = "_warning_1d7wd_177", ir = "_info_1d7wd_185", _r = "_danger_1d7wd_193", Re = {
1414
+ statsCard: Zl,
1415
+ icon: er,
1416
+ content: nr,
1417
+ value: tr,
1418
+ label: ar,
1419
+ trend: sr,
1420
+ up: or,
1421
+ down: cr,
1422
+ success: lr,
1423
+ warning: rr,
1424
+ info: ir,
1425
+ danger: _r
1426
+ };
1427
+ function dr({
1428
+ value: n,
1429
+ label: a,
1430
+ icon: s,
1431
+ variant: l = "default",
1432
+ trend: c,
1433
+ trendValue: i,
1434
+ className: r = ""
1435
+ }) {
1436
+ const _ = [
1437
+ Re.statsCard,
1438
+ l !== "default" && Re[l],
1439
+ r
1440
+ ].filter(Boolean).join(" ");
1441
+ return /* @__PURE__ */ t("div", { className: _, children: [
1442
+ s && /* @__PURE__ */ e("div", { className: Re.icon, children: s }),
1443
+ /* @__PURE__ */ t("div", { className: Re.content, children: [
1444
+ /* @__PURE__ */ e("div", { className: Re.value, children: n }),
1445
+ /* @__PURE__ */ e("div", { className: Re.label, children: a }),
1446
+ c && i && /* @__PURE__ */ t("div", { className: `${Re.trend} ${Re[c]}`, children: [
1447
+ c === "up" ? "↑" : "↓",
1448
+ " ",
1449
+ i
1450
+ ] })
1451
+ ] })
1452
+ ] });
1453
+ }
1454
+ dr.displayName = "StatsCard";
1455
+ const mr = "_carousel_1ryxv_11", pr = "_track_1ryxv_29", ur = "_slide_1ryxv_39", hr = "_nav_1ryxv_63", gr = "_navPrev_1ryxv_131", fr = "_navNext_1ryxv_139", vr = "_dots_1ryxv_149", br = "_dot_1ryxv_149", $r = "_active_1ryxv_189", Nr = "_overlay_1ryxv_209", yr = "_overlayTitle_1ryxv_227", kr = "_overlayDescription_1ryxv_243", ne = {
1456
+ carousel: mr,
1457
+ track: pr,
1458
+ slide: ur,
1459
+ nav: hr,
1460
+ navPrev: gr,
1461
+ navNext: fr,
1462
+ dots: vr,
1463
+ dot: br,
1464
+ active: $r,
1465
+ overlay: Nr,
1466
+ overlayTitle: yr,
1467
+ overlayDescription: kr
1468
+ };
1469
+ function wr({
1470
+ slides: n,
1471
+ showNav: a = !0,
1472
+ showDots: s = !0,
1473
+ className: l = ""
1474
+ }) {
1475
+ const [c, i] = k(0), r = (d) => {
1476
+ i((d + n.length) % n.length);
1477
+ }, _ = () => r(c - 1), o = () => r(c + 1);
1478
+ return /* @__PURE__ */ t("div", { className: `${ne.carousel} ${l}`, children: [
1479
+ /* @__PURE__ */ e(
1480
+ "div",
1481
+ {
1482
+ className: ne.track,
1483
+ style: { transform: `translateX(-${c * 100}%)` },
1484
+ children: n.map((d, p) => /* @__PURE__ */ e("div", { className: ne.slide, children: d.content || /* @__PURE__ */ t(re, { children: [
1485
+ d.image && /* @__PURE__ */ e("img", { src: d.image, alt: d.title || "" }),
1486
+ (d.title || d.description) && /* @__PURE__ */ t("div", { className: ne.overlay, children: [
1487
+ d.title && /* @__PURE__ */ e("div", { className: ne.overlayTitle, children: d.title }),
1488
+ d.description && /* @__PURE__ */ e("div", { className: ne.overlayDescription, children: d.description })
1489
+ ] })
1490
+ ] }) }, p))
1491
+ }
1492
+ ),
1493
+ a && n.length > 1 && /* @__PURE__ */ t(re, { children: [
1494
+ /* @__PURE__ */ e("button", { className: `${ne.nav} ${ne.navPrev}`, onClick: _, children: "←" }),
1495
+ /* @__PURE__ */ e("button", { className: `${ne.nav} ${ne.navNext}`, onClick: o, children: "→" })
1496
+ ] }),
1497
+ s && n.length > 1 && /* @__PURE__ */ e("div", { className: ne.dots, children: n.map((d, p) => /* @__PURE__ */ e(
1498
+ "button",
1499
+ {
1500
+ className: `${ne.dot} ${c === p ? ne.active : ""}`,
1501
+ onClick: () => r(p),
1502
+ "aria-label": `Go to slide ${p + 1}`
1503
+ },
1504
+ p
1505
+ )) })
1506
+ ] });
1507
+ }
1508
+ wr.displayName = "Carousel";
1509
+ const Cr = "_fileUpload_38cz6_11", xr = "_dropzone_38cz6_19", Br = "_dragging_38cz6_65", Ir = "_disabled_38cz6_79", Tr = "_icon_38cz6_89", zr = "_text_38cz6_97", Lr = "_mainText_38cz6_105", jr = "_subText_38cz6_121", Sr = "_input_38cz6_135", Dr = "_fileList_38cz6_145", qr = "_file_38cz6_11", Rr = "_fileIcon_38cz6_183", Mr = "_fileInfo_38cz6_191", Ar = "_fileName_38cz6_201", Wr = "_fileSize_38cz6_219", Er = "_removeBtn_38cz6_231", G = {
1510
+ fileUpload: Cr,
1511
+ dropzone: xr,
1512
+ dragging: Br,
1513
+ disabled: Ir,
1514
+ icon: Tr,
1515
+ text: zr,
1516
+ mainText: Lr,
1517
+ subText: jr,
1518
+ input: Sr,
1519
+ fileList: Dr,
1520
+ file: qr,
1521
+ fileIcon: Rr,
1522
+ fileInfo: Mr,
1523
+ fileName: Ar,
1524
+ fileSize: Wr,
1525
+ removeBtn: Er
1526
+ }, Pr = (n) => n < 1024 ? `${n} B` : n < 1024 * 1024 ? `${(n / 1024).toFixed(1)} KB` : `${(n / (1024 * 1024)).toFixed(1)} MB`;
1527
+ function Fr({
1528
+ accept: n,
1529
+ multiple: a = !1,
1530
+ maxSize: s,
1531
+ disabled: l = !1,
1532
+ onFilesChange: c,
1533
+ className: i = ""
1534
+ }) {
1535
+ const [r, _] = k([]), [o, d] = k(!1), p = fe(null), u = (v) => {
1536
+ if (!v) return;
1537
+ const b = Array.from(v).filter((y) => !s || y.size <= s).map((y) => ({
1538
+ file: y,
1539
+ id: `${y.name}-${Date.now()}-${Math.random()}`
1540
+ })), C = a ? [...r, ...b] : b;
1541
+ _(C), c?.(C.map((y) => y.file));
1542
+ }, m = (v) => {
1543
+ v.preventDefault(), d(!1), l || u(v.dataTransfer.files);
1544
+ }, h = (v) => {
1545
+ v.preventDefault(), l || d(!0);
1546
+ }, f = () => d(!1), g = (v) => {
1547
+ const b = r.filter((C) => C.id !== v);
1548
+ _(b), c?.(b.map((C) => C.file));
1549
+ }, $ = [
1550
+ G.dropzone,
1551
+ o && G.dragging,
1552
+ l && G.disabled
1553
+ ].filter(Boolean).join(" ");
1554
+ return /* @__PURE__ */ t("div", { className: `${G.fileUpload} ${i}`, children: [
1555
+ /* @__PURE__ */ t(
1556
+ "div",
1557
+ {
1558
+ className: $,
1559
+ onClick: () => !l && p.current?.click(),
1560
+ onDrop: m,
1561
+ onDragOver: h,
1562
+ onDragLeave: f,
1563
+ children: [
1564
+ /* @__PURE__ */ e("span", { className: G.icon, children: "📁" }),
1565
+ /* @__PURE__ */ t("div", { className: G.text, children: [
1566
+ /* @__PURE__ */ e("div", { className: G.mainText, children: "Dosyaları Sürükle veya Tıkla" }),
1567
+ /* @__PURE__ */ e("div", { className: G.subText, children: n ? `Kabul edilen: ${n}` : "Tüm dosya türleri kabul edilir" })
1568
+ ] }),
1569
+ /* @__PURE__ */ e(
1570
+ "input",
1571
+ {
1572
+ ref: p,
1573
+ type: "file",
1574
+ className: G.input,
1575
+ accept: n,
1576
+ multiple: a,
1577
+ disabled: l,
1578
+ onChange: (v) => u(v.target.files)
1579
+ }
1580
+ )
1581
+ ]
1582
+ }
1583
+ ),
1584
+ r.length > 0 && /* @__PURE__ */ e("div", { className: G.fileList, children: r.map((v) => /* @__PURE__ */ t("div", { className: G.file, children: [
1585
+ /* @__PURE__ */ e("span", { className: G.fileIcon, children: "📄" }),
1586
+ /* @__PURE__ */ t("div", { className: G.fileInfo, children: [
1587
+ /* @__PURE__ */ e("div", { className: G.fileName, children: v.file.name }),
1588
+ /* @__PURE__ */ e("div", { className: G.fileSize, children: Pr(v.file.size) })
1589
+ ] }),
1590
+ /* @__PURE__ */ e(
1591
+ "button",
1592
+ {
1593
+ className: G.removeBtn,
1594
+ onClick: () => g(v.id),
1595
+ "aria-label": "Remove file",
1596
+ children: "✕"
1597
+ }
1598
+ )
1599
+ ] }, v.id)) })
1600
+ ] });
1601
+ }
1602
+ Fr.displayName = "FileUpload";
1603
+ const Or = "_navbar_psntg_11", Gr = "_brand_psntg_43", Ur = "_brandLogo_psntg_57", Vr = "_brandName_psntg_65", Hr = "_brandAccent_psntg_81", Yr = "_nav_psntg_11", Kr = "_navLink_psntg_103", Qr = "_active_psntg_139", Jr = "_actions_psntg_153", Xr = "_menuToggle_psntg_167", Zr = "_mobileOpen_psntg_227", me = {
1604
+ navbar: Or,
1605
+ brand: Gr,
1606
+ brandLogo: Ur,
1607
+ brandName: Vr,
1608
+ brandAccent: Hr,
1609
+ nav: Yr,
1610
+ navLink: Kr,
1611
+ active: Qr,
1612
+ actions: Jr,
1613
+ menuToggle: Xr,
1614
+ mobileOpen: Zr
1615
+ };
1616
+ function ei({
1617
+ logo: n,
1618
+ brandName: a = "ABI",
1619
+ brandAccent: s = "-UI",
1620
+ items: l = [],
1621
+ actions: c,
1622
+ className: i = ""
1623
+ }) {
1624
+ const [r, _] = k(!1);
1625
+ return /* @__PURE__ */ t("nav", { className: `${me.navbar} ${i}`, children: [
1626
+ /* @__PURE__ */ t("a", { href: "/", className: me.brand, children: [
1627
+ n && /* @__PURE__ */ e("span", { className: me.brandLogo, children: n }),
1628
+ /* @__PURE__ */ t("span", { className: me.brandName, children: [
1629
+ a,
1630
+ s && /* @__PURE__ */ e("span", { className: me.brandAccent, children: s })
1631
+ ] })
1632
+ ] }),
1633
+ /* @__PURE__ */ e("div", { className: `${me.nav} ${r ? me.mobileOpen : ""}`, children: l.map((o, d) => /* @__PURE__ */ e(
1634
+ "a",
1635
+ {
1636
+ href: o.href,
1637
+ className: `${me.navLink} ${o.active ? me.active : ""}`,
1638
+ children: o.label
1639
+ },
1640
+ d
1641
+ )) }),
1642
+ c && /* @__PURE__ */ e("div", { className: me.actions, children: c }),
1643
+ /* @__PURE__ */ e(
1644
+ "button",
1645
+ {
1646
+ className: me.menuToggle,
1647
+ onClick: () => _(!r),
1648
+ "aria-label": "Toggle menu",
1649
+ children: r ? "✕" : "☰"
1650
+ }
1651
+ )
1652
+ ] });
1653
+ }
1654
+ ei.displayName = "Navbar";
1655
+ const ni = "_footer_1m3gl_11", ti = "_content_1m3gl_23", ai = "_brand_1m3gl_41", si = "_brandName_1m3gl_53", oi = "_brandAccent_1m3gl_69", ci = "_brandDescription_1m3gl_77", li = "_group_1m3gl_93", ri = "_groupTitle_1m3gl_105", ii = "_groupLinks_1m3gl_121", _i = "_link_1m3gl_133", di = "_bottom_1m3gl_159", mi = "_copyright_1m3gl_189", pi = "_socials_1m3gl_203", ui = "_social_1m3gl_203", X = {
1656
+ footer: ni,
1657
+ content: ti,
1658
+ brand: ai,
1659
+ brandName: si,
1660
+ brandAccent: oi,
1661
+ brandDescription: ci,
1662
+ group: li,
1663
+ groupTitle: ri,
1664
+ groupLinks: ii,
1665
+ link: _i,
1666
+ bottom: di,
1667
+ copyright: mi,
1668
+ socials: pi,
1669
+ social: ui
1670
+ };
1671
+ function hi({
1672
+ brandName: n = "ABI",
1673
+ brandAccent: a = "-UI",
1674
+ description: s = "Manga sitesi için çizgi roman tarzı component kütüphanesi.",
1675
+ groups: l = [],
1676
+ copyright: c = `© ${(/* @__PURE__ */ new Date()).getFullYear()} ABI-UI. Tüm hakları saklıdır.`,
1677
+ socials: i = [],
1678
+ className: r = ""
1679
+ }) {
1680
+ return /* @__PURE__ */ t("footer", { className: `${X.footer} ${r}`, children: [
1681
+ /* @__PURE__ */ t("div", { className: X.content, children: [
1682
+ /* @__PURE__ */ t("div", { className: X.brand, children: [
1683
+ /* @__PURE__ */ t("span", { className: X.brandName, children: [
1684
+ n,
1685
+ /* @__PURE__ */ e("span", { className: X.brandAccent, children: a })
1686
+ ] }),
1687
+ /* @__PURE__ */ e("p", { className: X.brandDescription, children: s })
1688
+ ] }),
1689
+ l.map((_, o) => /* @__PURE__ */ t("div", { className: X.group, children: [
1690
+ /* @__PURE__ */ e("span", { className: X.groupTitle, children: _.title }),
1691
+ /* @__PURE__ */ e("div", { className: X.groupLinks, children: _.links.map((d, p) => /* @__PURE__ */ e("a", { href: d.href, className: X.link, children: d.label }, p)) })
1692
+ ] }, o))
1693
+ ] }),
1694
+ /* @__PURE__ */ t("div", { className: X.bottom, children: [
1695
+ /* @__PURE__ */ e("span", { className: X.copyright, children: c }),
1696
+ i.length > 0 && /* @__PURE__ */ e("div", { className: X.socials, children: i.map((_, o) => /* @__PURE__ */ e(
1697
+ "a",
1698
+ {
1699
+ href: _.href,
1700
+ className: X.social,
1701
+ "aria-label": _.label,
1702
+ children: _.icon
1703
+ },
1704
+ o
1705
+ )) })
1706
+ ] })
1707
+ ] });
1708
+ }
1709
+ hi.displayName = "Footer";
1710
+ const gi = "_calendar_1dpnz_11", fi = "_header_1dpnz_35", vi = "_monthYear_1dpnz_49", bi = "_navBtn_1dpnz_65", $i = "_weekDays_1dpnz_115", Ni = "_weekDay_1dpnz_115", yi = "_days_1dpnz_149", ki = "_day_1dpnz_149", wi = "_disabled_1dpnz_197", Ci = "_selected_1dpnz_197", xi = "_today_1dpnz_207", Bi = "_otherMonth_1dpnz_231", Z = {
1711
+ calendar: gi,
1712
+ header: fi,
1713
+ monthYear: vi,
1714
+ navBtn: bi,
1715
+ weekDays: $i,
1716
+ weekDay: Ni,
1717
+ days: yi,
1718
+ day: ki,
1719
+ disabled: wi,
1720
+ selected: Ci,
1721
+ today: xi,
1722
+ otherMonth: Bi
1723
+ }, Ii = ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], Ti = [
1724
+ "Ocak",
1725
+ "Şubat",
1726
+ "Mart",
1727
+ "Nisan",
1728
+ "Mayıs",
1729
+ "Haziran",
1730
+ "Temmuz",
1731
+ "Ağustos",
1732
+ "Eylül",
1733
+ "Ekim",
1734
+ "Kasım",
1735
+ "Aralık"
1736
+ ];
1737
+ function zi({
1738
+ value: n,
1739
+ onDateChange: a,
1740
+ minDate: s,
1741
+ maxDate: l,
1742
+ className: c = ""
1743
+ }) {
1744
+ const i = /* @__PURE__ */ new Date(), [r, _] = k(n || i), o = r.getFullYear(), d = r.getMonth(), p = new Date(o, d, 1), u = new Date(o, d + 1, 0), m = p.getDay(), h = u.getDate(), f = () => _(new Date(o, d - 1, 1)), g = () => _(new Date(o, d + 1, 1)), $ = (N) => N === i.getDate() && d === i.getMonth() && o === i.getFullYear(), v = (N) => n ? N === n.getDate() && d === n.getMonth() && o === n.getFullYear() : !1, b = (N) => {
1745
+ const z = new Date(o, d, N);
1746
+ return !!(s && z < s || l && z > l);
1747
+ }, C = (N) => {
1748
+ b(N) || a?.(new Date(o, d, N));
1749
+ }, y = [];
1750
+ for (let N = 0; N < m; N++)
1751
+ y.push(/* @__PURE__ */ e("div", { className: `${Z.day} ${Z.otherMonth}` }, `prev-${N}`));
1752
+ for (let N = 1; N <= h; N++) {
1753
+ const z = [
1754
+ Z.day,
1755
+ $(N) && Z.today,
1756
+ v(N) && Z.selected,
1757
+ b(N) && Z.disabled
1758
+ ].filter(Boolean).join(" ");
1759
+ y.push(
1760
+ /* @__PURE__ */ e("button", { className: z, onClick: () => C(N), children: N }, N)
1761
+ );
1762
+ }
1763
+ return /* @__PURE__ */ t("div", { className: `${Z.calendar} ${c}`, children: [
1764
+ /* @__PURE__ */ t("div", { className: Z.header, children: [
1765
+ /* @__PURE__ */ e("button", { className: Z.navBtn, onClick: f, children: "←" }),
1766
+ /* @__PURE__ */ t("span", { className: Z.monthYear, children: [
1767
+ Ti[d],
1768
+ " ",
1769
+ o
1770
+ ] }),
1771
+ /* @__PURE__ */ e("button", { className: Z.navBtn, onClick: g, children: "→" })
1772
+ ] }),
1773
+ /* @__PURE__ */ e("div", { className: Z.weekDays, children: Ii.map((N) => /* @__PURE__ */ e("div", { className: Z.weekDay, children: N }, N)) }),
1774
+ /* @__PURE__ */ e("div", { className: Z.days, children: y })
1775
+ ] });
1776
+ }
1777
+ zi.displayName = "Calendar";
1778
+ const Li = "_colorPicker_12itg_11", ji = "_preview_12itg_29", Si = "_swatch_12itg_51", Di = "_value_12itg_67", qi = "_presets_12itg_85", Ri = "_preset_12itg_85", Mi = "_active_12itg_125", Ai = "_inputWrapper_12itg_139", Wi = "_colorInput_12itg_149", Ei = "_textInput_12itg_185", Ne = {
1779
+ colorPicker: Li,
1780
+ preview: ji,
1781
+ swatch: Si,
1782
+ value: Di,
1783
+ presets: qi,
1784
+ preset: Ri,
1785
+ active: Mi,
1786
+ inputWrapper: Ai,
1787
+ colorInput: Wi,
1788
+ textInput: Ei
1789
+ }, Pi = [
1790
+ "#dc2626",
1791
+ "#ea580c",
1792
+ "#d97706",
1793
+ "#16a34a",
1794
+ "#0284c7",
1795
+ "#7c3aed",
1796
+ "#db2777",
1797
+ "#1f2937",
1798
+ "#f43f5e",
1799
+ "#f97316",
1800
+ "#eab308",
1801
+ "#22c55e",
1802
+ "#06b6d4",
1803
+ "#8b5cf6",
1804
+ "#ec4899",
1805
+ "#6b7280"
1806
+ ];
1807
+ function Fi({
1808
+ value: n = "#dc2626",
1809
+ onColorChange: a,
1810
+ presets: s = Pi,
1811
+ showInput: l = !0,
1812
+ className: c = ""
1813
+ }) {
1814
+ const [i, r] = k(n);
1815
+ B(() => {
1816
+ r(n);
1817
+ }, [n]);
1818
+ const _ = (o) => {
1819
+ r(o), a?.(o);
1820
+ };
1821
+ return /* @__PURE__ */ t("div", { className: `${Ne.colorPicker} ${c}`, children: [
1822
+ /* @__PURE__ */ t("div", { className: Ne.preview, children: [
1823
+ /* @__PURE__ */ e("div", { className: Ne.swatch, style: { backgroundColor: i } }),
1824
+ /* @__PURE__ */ e("span", { className: Ne.value, children: i })
1825
+ ] }),
1826
+ /* @__PURE__ */ e("div", { className: Ne.presets, children: s.map((o) => /* @__PURE__ */ e(
1827
+ "button",
1828
+ {
1829
+ className: `${Ne.preset} ${i === o ? Ne.active : ""}`,
1830
+ style: { backgroundColor: o },
1831
+ onClick: () => _(o),
1832
+ "aria-label": `Select color ${o}`
1833
+ },
1834
+ o
1835
+ )) }),
1836
+ l && /* @__PURE__ */ t("div", { className: Ne.inputWrapper, children: [
1837
+ /* @__PURE__ */ e(
1838
+ "input",
1839
+ {
1840
+ type: "color",
1841
+ className: Ne.colorInput,
1842
+ value: i,
1843
+ onChange: (o) => _(o.target.value)
1844
+ }
1845
+ ),
1846
+ /* @__PURE__ */ e(
1847
+ "input",
1848
+ {
1849
+ type: "text",
1850
+ className: Ne.textInput,
1851
+ value: i,
1852
+ onChange: (o) => _(o.target.value),
1853
+ placeholder: "#000000"
1854
+ }
1855
+ )
1856
+ ] })
1857
+ ] });
1858
+ }
1859
+ Fi.displayName = "ColorPicker";
1860
+ const Oi = "_notificationCenter_1t8n1_11", Gi = "_trigger_1t8n1_23", Ui = "_badge_1t8n1_71", Vi = "_dropdown_1t8n1_117", Hi = "_open_1t8n1_157", Yi = "_header_1t8n1_171", Ki = "_title_1t8n1_187", Qi = "_markAll_1t8n1_203", Ji = "_item_1t8n1_233", Xi = "_unread_1t8n1_265", Zi = "_icon_1t8n1_273", e_ = "_content_1t8n1_301", n_ = "_message_1t8n1_311", t_ = "_time_1t8n1_325", a_ = "_empty_1t8n1_341", s_ = "_emptyIcon_1t8n1_353", o_ = "_emptyText_1t8n1_363", A = {
1861
+ notificationCenter: Oi,
1862
+ trigger: Gi,
1863
+ badge: Ui,
1864
+ dropdown: Vi,
1865
+ open: Hi,
1866
+ header: Yi,
1867
+ title: Ki,
1868
+ markAll: Qi,
1869
+ item: Ji,
1870
+ unread: Xi,
1871
+ icon: Zi,
1872
+ content: e_,
1873
+ message: n_,
1874
+ time: t_,
1875
+ empty: a_,
1876
+ emptyIcon: s_,
1877
+ emptyText: o_
1878
+ };
1879
+ function c_({
1880
+ notifications: n,
1881
+ onMarkAllRead: a,
1882
+ onNotificationClick: s,
1883
+ className: l = ""
1884
+ }) {
1885
+ const [c, i] = k(!1), r = fe(null), _ = n.filter((o) => !o.read).length;
1886
+ return B(() => {
1887
+ const o = (d) => {
1888
+ r.current && !r.current.contains(d.target) && i(!1);
1889
+ };
1890
+ return c && document.addEventListener("mousedown", o), () => document.removeEventListener("mousedown", o);
1891
+ }, [c]), /* @__PURE__ */ t("div", { ref: r, className: `${A.notificationCenter} ${c ? A.open : ""} ${l}`, children: [
1892
+ /* @__PURE__ */ t("button", { className: A.trigger, onClick: () => i(!c), children: [
1893
+ "🔔",
1894
+ _ > 0 && /* @__PURE__ */ e("span", { className: A.badge, children: _ })
1895
+ ] }),
1896
+ /* @__PURE__ */ t("div", { className: A.dropdown, children: [
1897
+ /* @__PURE__ */ t("div", { className: A.header, children: [
1898
+ /* @__PURE__ */ e("span", { className: A.title, children: "Bildirimler" }),
1899
+ _ > 0 && /* @__PURE__ */ e("button", { className: A.markAll, onClick: a, children: "Tümünü Oku" })
1900
+ ] }),
1901
+ n.length === 0 ? /* @__PURE__ */ t("div", { className: A.empty, children: [
1902
+ /* @__PURE__ */ e("div", { className: A.emptyIcon, children: "📭" }),
1903
+ /* @__PURE__ */ e("div", { className: A.emptyText, children: "Bildirim Yok" })
1904
+ ] }) : n.map((o) => /* @__PURE__ */ t(
1905
+ "div",
1906
+ {
1907
+ className: `${A.item} ${o.read ? "" : A.unread}`,
1908
+ onClick: () => s?.(o.id),
1909
+ children: [
1910
+ /* @__PURE__ */ e("div", { className: A.icon, children: o.icon || "📌" }),
1911
+ /* @__PURE__ */ t("div", { className: A.content, children: [
1912
+ /* @__PURE__ */ e("div", { className: A.message, children: o.message }),
1913
+ /* @__PURE__ */ e("div", { className: A.time, children: o.time })
1914
+ ] })
1915
+ ]
1916
+ },
1917
+ o.id
1918
+ ))
1919
+ ] })
1920
+ ] });
1921
+ }
1922
+ c_.displayName = "NotificationCenter";
1923
+ const l_ = "_posterCard_ajba8_11", r_ = "_image_ajba8_45", i_ = "_imageContainer_ajba8_57", __ = "_placeholder_ajba8_85", d_ = "_gradientOverlay_ajba8_107", m_ = "_badges_ajba8_129", p_ = "_badge_ajba8_129", u_ = "_hot_ajba8_183", h_ = "_completed_ajba8_191", g_ = "_adult_ajba8_199", f_ = "_content_ajba8_211", v_ = "_title_ajba8_229", b_ = "_genres_ajba8_265", $_ = "_genre_ajba8_265", N_ = "_genreMore_ajba8_307", y_ = "_meta_ajba8_329", k_ = "_metaItem_ajba8_343", w_ = "_rating_ajba8_359", C_ = "_sm_ajba8_409", x_ = "_lg_ajba8_435", q = {
1924
+ posterCard: l_,
1925
+ image: r_,
1926
+ imageContainer: i_,
1927
+ placeholder: __,
1928
+ gradientOverlay: d_,
1929
+ badges: m_,
1930
+ badge: p_,
1931
+ new: "_new_ajba8_175",
1932
+ hot: u_,
1933
+ completed: h_,
1934
+ adult: g_,
1935
+ content: f_,
1936
+ title: v_,
1937
+ genres: b_,
1938
+ genre: $_,
1939
+ genreMore: N_,
1940
+ meta: y_,
1941
+ metaItem: k_,
1942
+ rating: w_,
1943
+ sm: C_,
1944
+ lg: x_
1945
+ };
1946
+ function B_({
1947
+ image: n,
1948
+ title: a,
1949
+ rating: s,
1950
+ showRating: l = !1,
1951
+ genres: c = [],
1952
+ maxGenres: i = 2,
1953
+ chapters: r,
1954
+ status: _,
1955
+ badges: o = [],
1956
+ isAdult: d = !1,
1957
+ size: p = "md",
1958
+ onClick: u,
1959
+ className: m = ""
1960
+ }) {
1961
+ const h = [
1962
+ q.posterCard,
1963
+ p !== "md" && q[p],
1964
+ m
1965
+ ].filter(Boolean).join(" "), f = c.slice(0, i), g = c.length - i, $ = d ? [{ label: "+18", type: "adult" }, ...o] : o;
1966
+ return /* @__PURE__ */ e("div", { className: h, onClick: u, children: /* @__PURE__ */ t("div", { className: q.imageContainer, children: [
1967
+ n ? /* @__PURE__ */ e("img", { src: n, alt: a, className: q.image, loading: "lazy" }) : /* @__PURE__ */ e("div", { className: q.placeholder, children: "📚" }),
1968
+ /* @__PURE__ */ e("div", { className: q.gradientOverlay }),
1969
+ $.length > 0 && /* @__PURE__ */ e("div", { className: q.badges, children: $.map((v, b) => /* @__PURE__ */ e(
1970
+ "span",
1971
+ {
1972
+ className: `${q.badge} ${v.type ? q[v.type] : ""}`,
1973
+ children: v.label
1974
+ },
1975
+ b
1976
+ )) }),
1977
+ l && s !== void 0 && /* @__PURE__ */ e("span", { className: q.rating, children: s.toFixed(1) }),
1978
+ /* @__PURE__ */ t("div", { className: q.content, children: [
1979
+ /* @__PURE__ */ e("h3", { className: q.title, children: a }),
1980
+ f.length > 0 && /* @__PURE__ */ t("div", { className: q.genres, children: [
1981
+ f.map((v, b) => /* @__PURE__ */ e("span", { className: q.genre, children: v }, b)),
1982
+ g > 0 && /* @__PURE__ */ t("span", { className: q.genreMore, children: [
1983
+ "+",
1984
+ g
1985
+ ] })
1986
+ ] }),
1987
+ (r !== void 0 || _) && /* @__PURE__ */ t("div", { className: q.meta, children: [
1988
+ r !== void 0 && /* @__PURE__ */ t("span", { className: q.metaItem, children: [
1989
+ r,
1990
+ " Bölüm"
1991
+ ] }),
1992
+ _ && /* @__PURE__ */ t("span", { className: q.metaItem, children: [
1993
+ "• ",
1994
+ _
1995
+ ] })
1996
+ ] })
1997
+ ] })
1998
+ ] }) });
1999
+ }
2000
+ B_.displayName = "MangaPosterCard";
2001
+ const I_ = "_chapterList_1s625_11", T_ = "_header_1s625_35", z_ = "_title_1s625_53", L_ = "_chapterCount_1s625_69", j_ = "_chapterItem_1s625_83", S_ = "_read_1s625_123", D_ = "_chapterTitle_1s625_131", q_ = "_chapterNumber_1s625_141", R_ = "_chapterInfo_1s625_167", M_ = "_chapterMeta_1s625_197", A_ = "_chapterDate_1s625_211", W_ = "_newBadge_1s625_225", E_ = "_readIndicator_1s625_247", P_ = "_views_1s625_269", F_ = "_compact_1s625_283", V = {
2002
+ chapterList: I_,
2003
+ header: T_,
2004
+ title: z_,
2005
+ chapterCount: L_,
2006
+ chapterItem: j_,
2007
+ read: S_,
2008
+ chapterTitle: D_,
2009
+ chapterNumber: q_,
2010
+ chapterInfo: R_,
2011
+ chapterMeta: M_,
2012
+ chapterDate: A_,
2013
+ newBadge: W_,
2014
+ readIndicator: E_,
2015
+ views: P_,
2016
+ compact: F_
2017
+ };
2018
+ function O_({
2019
+ chapters: n,
2020
+ title: a = "Bölümler",
2021
+ onChapterClick: s,
2022
+ compact: l = !1,
2023
+ showViews: c = !1,
2024
+ className: i = ""
2025
+ }) {
2026
+ const r = [
2027
+ V.chapterList,
2028
+ l && V.compact,
2029
+ i
2030
+ ].filter(Boolean).join(" "), _ = (o) => o >= 1e6 ? `${(o / 1e6).toFixed(1)}M` : o >= 1e3 ? `${(o / 1e3).toFixed(1)}K` : o.toString();
2031
+ return /* @__PURE__ */ t("div", { className: r, children: [
2032
+ /* @__PURE__ */ t("div", { className: V.header, children: [
2033
+ /* @__PURE__ */ e("span", { className: V.title, children: a }),
2034
+ /* @__PURE__ */ t("span", { className: V.chapterCount, children: [
2035
+ n.length,
2036
+ " Bölüm"
2037
+ ] })
2038
+ ] }),
2039
+ n.map((o) => /* @__PURE__ */ t(
2040
+ "div",
2041
+ {
2042
+ className: `${V.chapterItem} ${o.isRead ? V.read : ""}`,
2043
+ onClick: () => s?.(o),
2044
+ children: [
2045
+ /* @__PURE__ */ t("span", { className: V.chapterNumber, children: [
2046
+ "#",
2047
+ o.number
2048
+ ] }),
2049
+ /* @__PURE__ */ t("div", { className: V.chapterInfo, children: [
2050
+ /* @__PURE__ */ e("div", { className: V.chapterTitle, children: o.title || `Bölüm ${o.number}` }),
2051
+ /* @__PURE__ */ t("div", { className: V.chapterMeta, children: [
2052
+ o.date && /* @__PURE__ */ e("span", { className: V.chapterDate, children: o.date }),
2053
+ o.isNew && /* @__PURE__ */ e("span", { className: V.newBadge, children: "Yeni" })
2054
+ ] })
2055
+ ] }),
2056
+ c && o.views !== void 0 && /* @__PURE__ */ t("span", { className: V.views, children: [
2057
+ "👁 ",
2058
+ _(o.views)
2059
+ ] }),
2060
+ o.isRead && /* @__PURE__ */ e("span", { className: V.readIndicator, children: "✓" })
2061
+ ]
2062
+ },
2063
+ o.number
2064
+ ))
2065
+ ] });
2066
+ }
2067
+ O_.displayName = "ChapterList";
2068
+ const G_ = "_readingProgress_n5j27_11", U_ = "_header_n5j27_35", V_ = "_label_n5j27_47", H_ = "_percentage_n5j27_63", Y_ = "_progressBar_n5j27_79", K_ = "_progressFill_n5j27_97", Q_ = "_chapterInfo_n5j27_113", J_ = "_inline_n5j27_133", X_ = "_card_n5j27_175", Z_ = "_nearComplete_n5j27_203", ed = "_pulse_n5j27_1", xe = {
2069
+ readingProgress: G_,
2070
+ header: U_,
2071
+ label: V_,
2072
+ percentage: H_,
2073
+ progressBar: Y_,
2074
+ progressFill: K_,
2075
+ chapterInfo: Q_,
2076
+ inline: J_,
2077
+ card: X_,
2078
+ nearComplete: Z_,
2079
+ pulse: ed
2080
+ };
2081
+ function nd({
2082
+ currentChapter: n,
2083
+ totalChapters: a,
2084
+ label: s = "Okuma İlerlemesi",
2085
+ variant: l = "default",
2086
+ showChapterInfo: c = !0,
2087
+ className: i = ""
2088
+ }) {
2089
+ const r = Math.round(n / a * 100), _ = r >= 90, o = [
2090
+ xe.readingProgress,
2091
+ l !== "default" && xe[l],
2092
+ _ && xe.nearComplete,
2093
+ i
2094
+ ].filter(Boolean).join(" ");
2095
+ return /* @__PURE__ */ t("div", { className: o, children: [
2096
+ /* @__PURE__ */ t("div", { className: xe.header, children: [
2097
+ /* @__PURE__ */ e("span", { className: xe.label, children: s }),
2098
+ /* @__PURE__ */ t("span", { className: xe.percentage, children: [
2099
+ r,
2100
+ "%"
2101
+ ] })
2102
+ ] }),
2103
+ /* @__PURE__ */ e("div", { className: xe.progressBar, children: /* @__PURE__ */ e(
2104
+ "div",
2105
+ {
2106
+ className: xe.progressFill,
2107
+ style: { width: `${r}%` }
2108
+ }
2109
+ ) }),
2110
+ c && l !== "inline" && /* @__PURE__ */ t("div", { className: xe.chapterInfo, children: [
2111
+ /* @__PURE__ */ t("span", { children: [
2112
+ "Bölüm ",
2113
+ n
2114
+ ] }),
2115
+ /* @__PURE__ */ t("span", { children: [
2116
+ a,
2117
+ " bölümden"
2118
+ ] })
2119
+ ] })
2120
+ ] });
2121
+ }
2122
+ nd.displayName = "ReadingProgress";
2123
+ const td = "_commentCard_1eniv_11", ad = "_avatar_1eniv_33", sd = "_content_1eniv_79", od = "_header_1eniv_91", cd = "_username_1eniv_107", ld = "_badge_1eniv_121", rd = "_author_1eniv_141", id = "_mod_1eniv_149", _d = "_time_1eniv_157", dd = "_body_1eniv_171", md = "_chapterRef_1eniv_189", pd = "_actions_1eniv_223", ud = "_action_1eniv_223", hd = "_liked_1eniv_277", gd = "_spoiler_1eniv_287", fd = "_spoilerOverlay_1eniv_305", vd = "_replyIndicator_1eniv_341", W = {
2124
+ commentCard: td,
2125
+ avatar: ad,
2126
+ content: sd,
2127
+ header: od,
2128
+ username: cd,
2129
+ badge: ld,
2130
+ author: rd,
2131
+ mod: id,
2132
+ time: _d,
2133
+ body: dd,
2134
+ chapterRef: md,
2135
+ actions: pd,
2136
+ action: ud,
2137
+ liked: hd,
2138
+ spoiler: gd,
2139
+ spoilerOverlay: fd,
2140
+ replyIndicator: vd
2141
+ };
2142
+ function bd({
2143
+ avatar: n,
2144
+ username: a,
2145
+ badge: s,
2146
+ comment: l,
2147
+ time: c,
2148
+ chapter: i,
2149
+ likes: r = 0,
2150
+ isLiked: _ = !1,
2151
+ isSpoiler: o = !1,
2152
+ replyTo: d,
2153
+ onLike: p,
2154
+ onReply: u,
2155
+ className: m = ""
2156
+ }) {
2157
+ const [h, f] = k(!1), g = ($) => {
2158
+ switch ($) {
2159
+ case "author":
2160
+ return "Yazar";
2161
+ case "mod":
2162
+ return "Mod";
2163
+ case "vip":
2164
+ return "VIP";
2165
+ default:
2166
+ return "";
2167
+ }
2168
+ };
2169
+ return /* @__PURE__ */ t("div", { className: `${W.commentCard} ${m}`, children: [
2170
+ /* @__PURE__ */ e("div", { className: W.avatar, children: n ? /* @__PURE__ */ e("img", { src: n, alt: a }) : a.charAt(0).toUpperCase() }),
2171
+ /* @__PURE__ */ t("div", { className: W.content, children: [
2172
+ /* @__PURE__ */ t("div", { className: W.header, children: [
2173
+ /* @__PURE__ */ e("span", { className: W.username, children: a }),
2174
+ s && /* @__PURE__ */ e("span", { className: `${W.badge} ${W[s]}`, children: g(s) }),
2175
+ /* @__PURE__ */ e("span", { className: W.time, children: c })
2176
+ ] }),
2177
+ i !== void 0 && /* @__PURE__ */ t("span", { className: W.chapterRef, children: [
2178
+ "📖 Bölüm ",
2179
+ i
2180
+ ] }),
2181
+ d && /* @__PURE__ */ t("div", { className: W.replyIndicator, children: [
2182
+ "↩ @",
2183
+ d,
2184
+ " kullanıcısına yanıt"
2185
+ ] }),
2186
+ /* @__PURE__ */ t("div", { className: o && !h ? W.spoiler : "", children: [
2187
+ /* @__PURE__ */ e("p", { className: W.body, children: l }),
2188
+ o && !h && /* @__PURE__ */ e(
2189
+ "div",
2190
+ {
2191
+ className: W.spoilerOverlay,
2192
+ onClick: () => f(!0),
2193
+ children: "🔒 Spoiler - Görmek için tıkla"
2194
+ }
2195
+ )
2196
+ ] }),
2197
+ /* @__PURE__ */ t("div", { className: W.actions, children: [
2198
+ /* @__PURE__ */ t(
2199
+ "button",
2200
+ {
2201
+ className: `${W.action} ${_ ? W.liked : ""}`,
2202
+ onClick: p,
2203
+ children: [
2204
+ _ ? "❤️" : "🤍",
2205
+ " ",
2206
+ r
2207
+ ]
2208
+ }
2209
+ ),
2210
+ /* @__PURE__ */ e("button", { className: W.action, onClick: u, children: "💬 Yanıtla" })
2211
+ ] })
2212
+ ] })
2213
+ ] });
2214
+ }
2215
+ bd.displayName = "CommentCard";
2216
+ const $d = "_genreChip_zuez4_11", Nd = "_selected_zuez4_65", yd = "_icon_zuez4_89", kd = "_count_zuez4_99", wd = "_sm_zuez4_127", Cd = "_lg_zuez4_137", xd = "_outline_zuez4_149", Bd = "_filled_zuez4_169", Id = "_action_zuez4_179", Td = "_adventure_zuez4_187", zd = "_comedy_zuez4_195", Ld = "_drama_zuez4_203", jd = "_fantasy_zuez4_211", Sd = "_horror_zuez4_219", Dd = "_romance_zuez4_227", qd = "_scifi_zuez4_235", Rd = "_sports_zuez4_243", Md = "_supernatural_zuez4_251", Ze = {
2217
+ genreChip: $d,
2218
+ selected: Nd,
2219
+ icon: yd,
2220
+ count: kd,
2221
+ sm: wd,
2222
+ lg: Cd,
2223
+ outline: xd,
2224
+ filled: Bd,
2225
+ action: Id,
2226
+ adventure: Td,
2227
+ comedy: zd,
2228
+ drama: Ld,
2229
+ fantasy: jd,
2230
+ horror: Sd,
2231
+ romance: Dd,
2232
+ scifi: qd,
2233
+ sports: Rd,
2234
+ supernatural: Md
2235
+ }, Ad = {
2236
+ action: "⚔️",
2237
+ adventure: "🗺️",
2238
+ comedy: "😂",
2239
+ drama: "🎭",
2240
+ fantasy: "🧙",
2241
+ horror: "👻",
2242
+ romance: "💕",
2243
+ scifi: "🚀",
2244
+ sports: "⚽",
2245
+ supernatural: "✨",
2246
+ mystery: "🔍",
2247
+ slice_of_life: "☀️",
2248
+ psychological: "🧠",
2249
+ thriller: "😱",
2250
+ school: "🏫",
2251
+ isekai: "🌀",
2252
+ mecha: "🤖",
2253
+ music: "🎵",
2254
+ shounen: "👦",
2255
+ shoujo: "👧",
2256
+ seinen: "👨",
2257
+ josei: "👩"
2258
+ };
2259
+ function Wd({
2260
+ label: n,
2261
+ icon: a,
2262
+ count: s,
2263
+ selected: l = !1,
2264
+ size: c = "md",
2265
+ variant: i = "default",
2266
+ onClick: r,
2267
+ className: _ = ""
2268
+ }) {
2269
+ const o = [
2270
+ Ze.genreChip,
2271
+ l && Ze.selected,
2272
+ c !== "md" && Ze[c],
2273
+ i !== "default" && Ze[i],
2274
+ _
2275
+ ].filter(Boolean).join(" "), d = n.toLowerCase().replace(/\s+/g, "_"), p = a ?? Ad[d];
2276
+ return /* @__PURE__ */ t(
2277
+ "button",
2278
+ {
2279
+ className: o,
2280
+ onClick: r,
2281
+ "data-genre": d,
2282
+ children: [
2283
+ p && /* @__PURE__ */ e("span", { className: Ze.icon, children: p }),
2284
+ n,
2285
+ s !== void 0 && /* @__PURE__ */ e("span", { className: Ze.count, children: s })
2286
+ ]
2287
+ }
2288
+ );
2289
+ }
2290
+ Wd.displayName = "GenreChip";
2291
+ const Ed = "_searchBar_1pvbl_11", Pd = "_inputWrapper_1pvbl_25", Fd = "_searchIcon_1pvbl_63", Od = "_input_1pvbl_25", Gd = "_clearBtn_1pvbl_107", Ud = "_dropdown_1pvbl_149", Vd = "_section_1pvbl_183", Hd = "_sectionTitle_1pvbl_201", Yd = "_resultItem_1pvbl_221", Kd = "_resultImage_1pvbl_247", Qd = "_resultInfo_1pvbl_263", Jd = "_resultTitle_1pvbl_273", Xd = "_resultMeta_1pvbl_291", Zd = "_recentItem_1pvbl_305", em = "_recentText_1pvbl_331", nm = "_recentIcon_1pvbl_349", tm = "_removeRecent_1pvbl_359", am = "_loading_1pvbl_387", sm = "_noResults_1pvbl_405", L = {
2292
+ searchBar: Ed,
2293
+ inputWrapper: Pd,
2294
+ searchIcon: Fd,
2295
+ input: Od,
2296
+ clearBtn: Gd,
2297
+ dropdown: Ud,
2298
+ section: Vd,
2299
+ sectionTitle: Hd,
2300
+ resultItem: Yd,
2301
+ resultImage: Kd,
2302
+ resultInfo: Qd,
2303
+ resultTitle: Jd,
2304
+ resultMeta: Xd,
2305
+ recentItem: Zd,
2306
+ recentText: em,
2307
+ recentIcon: nm,
2308
+ removeRecent: tm,
2309
+ loading: am,
2310
+ noResults: sm
2311
+ };
2312
+ function om({
2313
+ placeholder: n = "Manga ara...",
2314
+ results: a = [],
2315
+ recentSearches: s = [],
2316
+ isLoading: l = !1,
2317
+ onSearch: c,
2318
+ onResultClick: i,
2319
+ onRecentClick: r,
2320
+ onClearRecent: _,
2321
+ className: o = ""
2322
+ }) {
2323
+ const [d, p] = k(""), [u, m] = k(!1), h = fe(null);
2324
+ B(() => {
2325
+ const b = (C) => {
2326
+ h.current && !h.current.contains(C.target) && m(!1);
2327
+ };
2328
+ return document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
2329
+ }, []);
2330
+ const f = (b) => {
2331
+ p(b), c?.(b), m(!0);
2332
+ }, g = (b) => {
2333
+ i?.(b), p(""), m(!1);
2334
+ }, $ = (b) => {
2335
+ p(b), r?.(b), c?.(b);
2336
+ }, v = u && (d.length > 0 || s.length > 0);
2337
+ return /* @__PURE__ */ t("div", { ref: h, className: `${L.searchBar} ${o}`, children: [
2338
+ /* @__PURE__ */ t("div", { className: L.inputWrapper, children: [
2339
+ /* @__PURE__ */ e("span", { className: L.searchIcon, children: "🔍" }),
2340
+ /* @__PURE__ */ e(
2341
+ "input",
2342
+ {
2343
+ type: "text",
2344
+ className: L.input,
2345
+ placeholder: n,
2346
+ value: d,
2347
+ onChange: (b) => f(b.target.value),
2348
+ onFocus: () => m(!0)
2349
+ }
2350
+ ),
2351
+ d && /* @__PURE__ */ e(
2352
+ "button",
2353
+ {
2354
+ className: L.clearBtn,
2355
+ onClick: () => {
2356
+ p(""), c?.("");
2357
+ },
2358
+ children: "✕"
2359
+ }
2360
+ )
2361
+ ] }),
2362
+ v && /* @__PURE__ */ e("div", { className: L.dropdown, children: l ? /* @__PURE__ */ e("div", { className: L.loading, children: "⏳ Aranıyor..." }) : /* @__PURE__ */ t(re, { children: [
2363
+ d.length > 0 && a.length > 0 && /* @__PURE__ */ t("div", { className: L.section, children: [
2364
+ /* @__PURE__ */ e("div", { className: L.sectionTitle, children: "Sonuçlar" }),
2365
+ a.map((b) => /* @__PURE__ */ t(
2366
+ "div",
2367
+ {
2368
+ className: L.resultItem,
2369
+ onClick: () => g(b),
2370
+ children: [
2371
+ b.image && /* @__PURE__ */ e(
2372
+ "img",
2373
+ {
2374
+ src: b.image,
2375
+ alt: b.title,
2376
+ className: L.resultImage
2377
+ }
2378
+ ),
2379
+ /* @__PURE__ */ t("div", { className: L.resultInfo, children: [
2380
+ /* @__PURE__ */ e("div", { className: L.resultTitle, children: b.title }),
2381
+ b.meta && /* @__PURE__ */ e("div", { className: L.resultMeta, children: b.meta })
2382
+ ] })
2383
+ ]
2384
+ },
2385
+ b.id
2386
+ ))
2387
+ ] }),
2388
+ d.length > 0 && a.length === 0 && !l && /* @__PURE__ */ t("div", { className: L.noResults, children: [
2389
+ '"',
2390
+ d,
2391
+ '" için sonuç bulunamadı'
2392
+ ] }),
2393
+ d.length === 0 && s.length > 0 && /* @__PURE__ */ t("div", { className: L.section, children: [
2394
+ /* @__PURE__ */ e("div", { className: L.sectionTitle, children: "Son Aramalar" }),
2395
+ s.map((b, C) => /* @__PURE__ */ t(
2396
+ "div",
2397
+ {
2398
+ className: L.recentItem,
2399
+ onClick: () => $(b),
2400
+ children: [
2401
+ /* @__PURE__ */ t("span", { className: L.recentText, children: [
2402
+ /* @__PURE__ */ e("span", { className: L.recentIcon, children: "🕐" }),
2403
+ b
2404
+ ] }),
2405
+ /* @__PURE__ */ e(
2406
+ "button",
2407
+ {
2408
+ className: L.removeRecent,
2409
+ onClick: (y) => {
2410
+ y.stopPropagation(), _?.(b);
2411
+ },
2412
+ children: "✕"
2413
+ }
2414
+ )
2415
+ ]
2416
+ },
2417
+ C
2418
+ ))
2419
+ ] })
2420
+ ] }) })
2421
+ ] });
2422
+ }
2423
+ om.displayName = "SearchBar";
2424
+ const cm = "_userCard_1cr4b_11", lm = "_avatar_1cr4b_43", rm = "_avatarImage_1cr4b_55", im = "_levelBadge_1cr4b_103", _m = "_username_1cr4b_141", dm = "_roleBadge_1cr4b_159", mm = "_admin_1cr4b_181", pm = "_mod_1cr4b_189", um = "_vip_1cr4b_197", hm = "_translator_1cr4b_205", gm = "_stats_1cr4b_215", fm = "_stat_1cr4b_215", vm = "_statValue_1cr4b_247", bm = "_statLabel_1cr4b_261", $m = "_joinDate_1cr4b_275", Nm = "_actions_1cr4b_289", ym = "_horizontal_1cr4b_303", km = "_info_1cr4b_333", wm = "_compact_1cr4b_365", H = {
2425
+ userCard: cm,
2426
+ avatar: lm,
2427
+ avatarImage: rm,
2428
+ levelBadge: im,
2429
+ username: _m,
2430
+ roleBadge: dm,
2431
+ admin: mm,
2432
+ mod: pm,
2433
+ vip: um,
2434
+ translator: hm,
2435
+ stats: gm,
2436
+ stat: fm,
2437
+ statValue: vm,
2438
+ statLabel: bm,
2439
+ joinDate: $m,
2440
+ actions: Nm,
2441
+ horizontal: ym,
2442
+ info: km,
2443
+ compact: wm
2444
+ }, Cm = {
2445
+ member: "Üye",
2446
+ admin: "Admin",
2447
+ mod: "Moderatör",
2448
+ vip: "VIP",
2449
+ translator: "Çevirmen"
2450
+ };
2451
+ function xm({
2452
+ avatar: n,
2453
+ username: a,
2454
+ level: s,
2455
+ role: l = "member",
2456
+ stats: c = [],
2457
+ joinDate: i,
2458
+ variant: r = "default",
2459
+ actions: _,
2460
+ onClick: o,
2461
+ className: d = ""
2462
+ }) {
2463
+ const p = [
2464
+ H.userCard,
2465
+ r !== "default" && H[r],
2466
+ d
2467
+ ].filter(Boolean).join(" "), u = (m) => typeof m == "string" ? m : m >= 1e6 ? `${(m / 1e6).toFixed(1)}M` : m >= 1e3 ? `${(m / 1e3).toFixed(1)}K` : m.toString();
2468
+ return /* @__PURE__ */ t("div", { className: p, onClick: o, children: [
2469
+ /* @__PURE__ */ t("div", { className: H.avatar, children: [
2470
+ /* @__PURE__ */ e("div", { className: H.avatarImage, children: n ? /* @__PURE__ */ e("img", { src: n, alt: a }) : a.charAt(0).toUpperCase() }),
2471
+ s !== void 0 && /* @__PURE__ */ t("span", { className: H.levelBadge, children: [
2472
+ "LV.",
2473
+ s
2474
+ ] })
2475
+ ] }),
2476
+ /* @__PURE__ */ t("div", { className: H.info, children: [
2477
+ /* @__PURE__ */ e("h3", { className: H.username, children: a }),
2478
+ l !== "member" && /* @__PURE__ */ e("span", { className: `${H.roleBadge} ${H[l]}`, children: Cm[l] }),
2479
+ c.length > 0 && /* @__PURE__ */ e("div", { className: H.stats, children: c.map((m, h) => /* @__PURE__ */ t("div", { className: H.stat, children: [
2480
+ /* @__PURE__ */ e("span", { className: H.statValue, children: u(m.value) }),
2481
+ /* @__PURE__ */ e("span", { className: H.statLabel, children: m.label })
2482
+ ] }, h)) }),
2483
+ i && /* @__PURE__ */ t("span", { className: H.joinDate, children: [
2484
+ "📅 ",
2485
+ i
2486
+ ] }),
2487
+ _ && /* @__PURE__ */ e("div", { className: H.actions, children: _ })
2488
+ ] })
2489
+ ] });
2490
+ }
2491
+ xm.displayName = "UserCard";
2492
+ const Bm = "_detailHeader_1lzr9_11", Im = "_cover_1lzr9_33", Tm = "_coverImage_1lzr9_43", zm = "_coverPlaceholder_1lzr9_61", Lm = "_info_1lzr9_87", jm = "_title_1lzr9_101", Sm = "_altTitle_1lzr9_119", Dm = "_meta_1lzr9_135", qm = "_metaItem_1lzr9_147", Rm = "_metaIcon_1lzr9_165", Mm = "_metaLabel_1lzr9_173", Am = "_badges_1lzr9_183", Wm = "_badge_1lzr9_183", Em = "_ongoing_1lzr9_219", Pm = "_completed_1lzr9_227", Fm = "_hiatus_1lzr9_235", Om = "_adult_1lzr9_243", Gm = "_stats_1lzr9_253", Um = "_stat_1lzr9_253", Vm = "_statValue_1lzr9_285", Hm = "_statLabel_1lzr9_299", Ym = "_description_1lzr9_313", Km = "_descriptionClamped_1lzr9_327", Qm = "_readMore_1lzr9_343", Jm = "_actions_1lzr9_365", w = {
2493
+ detailHeader: Bm,
2494
+ cover: Im,
2495
+ coverImage: Tm,
2496
+ coverPlaceholder: zm,
2497
+ info: Lm,
2498
+ title: jm,
2499
+ altTitle: Sm,
2500
+ meta: Dm,
2501
+ metaItem: qm,
2502
+ metaIcon: Rm,
2503
+ metaLabel: Mm,
2504
+ badges: Am,
2505
+ badge: Wm,
2506
+ ongoing: Em,
2507
+ completed: Pm,
2508
+ hiatus: Fm,
2509
+ adult: Om,
2510
+ stats: Gm,
2511
+ stat: Um,
2512
+ statValue: Vm,
2513
+ statLabel: Hm,
2514
+ description: Ym,
2515
+ descriptionClamped: Km,
2516
+ readMore: Qm,
2517
+ actions: Jm
2518
+ }, Xm = {
2519
+ ongoing: "Devam Ediyor",
2520
+ completed: "Tamamlandı",
2521
+ hiatus: "Ara Verildi"
2522
+ };
2523
+ function Zm({
2524
+ cover: n,
2525
+ title: a,
2526
+ altTitle: s,
2527
+ author: l,
2528
+ artist: c,
2529
+ status: i,
2530
+ isAdult: r = !1,
2531
+ genres: _ = [],
2532
+ rating: o,
2533
+ views: d,
2534
+ chapters: p,
2535
+ followers: u,
2536
+ description: m,
2537
+ actions: h,
2538
+ className: f = ""
2539
+ }) {
2540
+ const [g, $] = k(!1), v = (b) => b >= 1e6 ? `${(b / 1e6).toFixed(1)}M` : b >= 1e3 ? `${(b / 1e3).toFixed(1)}K` : b.toString();
2541
+ return /* @__PURE__ */ t("div", { className: `${w.detailHeader} ${f}`, children: [
2542
+ /* @__PURE__ */ e("div", { className: w.cover, children: n ? /* @__PURE__ */ e("img", { src: n, alt: a, className: w.coverImage }) : /* @__PURE__ */ e("div", { className: w.coverPlaceholder, children: "📚" }) }),
2543
+ /* @__PURE__ */ t("div", { className: w.info, children: [
2544
+ /* @__PURE__ */ e("h1", { className: w.title, children: a }),
2545
+ s && /* @__PURE__ */ e("p", { className: w.altTitle, children: s }),
2546
+ /* @__PURE__ */ t("div", { className: w.meta, children: [
2547
+ l && /* @__PURE__ */ t("span", { className: w.metaItem, children: [
2548
+ /* @__PURE__ */ e("span", { className: w.metaIcon, children: "✍️" }),
2549
+ /* @__PURE__ */ e("span", { className: w.metaLabel, children: "Yazar:" }),
2550
+ " ",
2551
+ l
2552
+ ] }),
2553
+ c && c !== l && /* @__PURE__ */ t("span", { className: w.metaItem, children: [
2554
+ /* @__PURE__ */ e("span", { className: w.metaIcon, children: "🎨" }),
2555
+ /* @__PURE__ */ e("span", { className: w.metaLabel, children: "Çizer:" }),
2556
+ " ",
2557
+ c
2558
+ ] })
2559
+ ] }),
2560
+ /* @__PURE__ */ t("div", { className: w.badges, children: [
2561
+ i && /* @__PURE__ */ e("span", { className: `${w.badge} ${w[i]}`, children: Xm[i] }),
2562
+ r && /* @__PURE__ */ e("span", { className: `${w.badge} ${w.adult}`, children: "+18" }),
2563
+ _.slice(0, 4).map((b, C) => /* @__PURE__ */ e("span", { className: w.badge, children: b }, C))
2564
+ ] }),
2565
+ /* @__PURE__ */ t("div", { className: w.stats, children: [
2566
+ o !== void 0 && /* @__PURE__ */ t("div", { className: w.stat, children: [
2567
+ /* @__PURE__ */ t("span", { className: w.statValue, children: [
2568
+ "⭐ ",
2569
+ o.toFixed(1)
2570
+ ] }),
2571
+ /* @__PURE__ */ e("span", { className: w.statLabel, children: "Puan" })
2572
+ ] }),
2573
+ d !== void 0 && /* @__PURE__ */ t("div", { className: w.stat, children: [
2574
+ /* @__PURE__ */ e("span", { className: w.statValue, children: v(d) }),
2575
+ /* @__PURE__ */ e("span", { className: w.statLabel, children: "Görüntülenme" })
2576
+ ] }),
2577
+ p !== void 0 && /* @__PURE__ */ t("div", { className: w.stat, children: [
2578
+ /* @__PURE__ */ e("span", { className: w.statValue, children: p }),
2579
+ /* @__PURE__ */ e("span", { className: w.statLabel, children: "Bölüm" })
2580
+ ] }),
2581
+ u !== void 0 && /* @__PURE__ */ t("div", { className: w.stat, children: [
2582
+ /* @__PURE__ */ e("span", { className: w.statValue, children: v(u) }),
2583
+ /* @__PURE__ */ e("span", { className: w.statLabel, children: "Takipçi" })
2584
+ ] })
2585
+ ] }),
2586
+ m && /* @__PURE__ */ t("div", { children: [
2587
+ /* @__PURE__ */ e("p", { className: `${w.description} ${g ? "" : w.descriptionClamped}`, children: m }),
2588
+ m.length > 200 && /* @__PURE__ */ e(
2589
+ "button",
2590
+ {
2591
+ className: w.readMore,
2592
+ onClick: () => $(!g),
2593
+ children: g ? "Daha Az" : "Devamını Oku"
2594
+ }
2595
+ )
2596
+ ] }),
2597
+ h && /* @__PURE__ */ e("div", { className: w.actions, children: h })
2598
+ ] })
2599
+ ] });
2600
+ }
2601
+ Zm.displayName = "MangaDetailHeader";
2602
+ const e1 = "_favoriteButton_xie9w_11", n1 = "_active_xie9w_79", t1 = "_icon_xie9w_91", a1 = "_heartBeat_xie9w_1", s1 = "_count_xie9w_121", o1 = "_iconOnly_xie9w_135", c1 = "_sm_xie9w_159", l1 = "_lg_xie9w_177", r1 = "_particles_xie9w_197", i1 = "_particle_xie9w_197", _1 = "_particleBurst_xie9w_1", Me = {
2603
+ favoriteButton: e1,
2604
+ active: n1,
2605
+ icon: t1,
2606
+ heartBeat: a1,
2607
+ count: s1,
2608
+ iconOnly: o1,
2609
+ sm: c1,
2610
+ lg: l1,
2611
+ particles: r1,
2612
+ particle: i1,
2613
+ particleBurst: _1
2614
+ };
2615
+ function d1({
2616
+ isFavorite: n = !1,
2617
+ count: a,
2618
+ showCount: s = !0,
2619
+ iconOnly: l = !1,
2620
+ size: c = "md",
2621
+ onToggle: i,
2622
+ className: r = ""
2623
+ }) {
2624
+ const _ = [
2625
+ Me.favoriteButton,
2626
+ n && Me.active,
2627
+ l && Me.iconOnly,
2628
+ c !== "md" && Me[c],
2629
+ r
2630
+ ].filter(Boolean).join(" ");
2631
+ return /* @__PURE__ */ t("button", { className: _, onClick: () => {
2632
+ i?.(!n);
2633
+ }, children: [
2634
+ /* @__PURE__ */ e("span", { className: Me.icon, children: n ? "❤️" : "🤍" }),
2635
+ s && a !== void 0 && !l && /* @__PURE__ */ e("span", { className: Me.count, children: a }),
2636
+ /* @__PURE__ */ e("div", { className: Me.particles, children: [...Array(8)].map((d, p) => /* @__PURE__ */ e("span", { className: Me.particle }, p)) })
2637
+ ] });
2638
+ }
2639
+ d1.displayName = "FavoriteButton";
2640
+ const m1 = "_bookmarkWrapper_zn342_11", p1 = "_bookmarkButton_zn342_21", u1 = "_active_zn342_75", h1 = "_icon_zn342_87", g1 = "_arrow_zn342_95", f1 = "_open_zn342_105", v1 = "_dropdown_zn342_115", b1 = "_dropdownHeader_zn342_145", $1 = "_chapterItem_zn342_165", N1 = "_selected_zn342_201", y1 = "_chapterNumber_zn342_211", k1 = "_chapterDate_zn342_221", w1 = "_currentBadge_zn342_233", C1 = "_dropdownActions_zn342_255", x1 = "_actionBtn_zn342_271", B1 = "_remove_zn342_315", U = {
2641
+ bookmarkWrapper: m1,
2642
+ bookmarkButton: p1,
2643
+ active: u1,
2644
+ icon: h1,
2645
+ arrow: g1,
2646
+ open: f1,
2647
+ dropdown: v1,
2648
+ dropdownHeader: b1,
2649
+ chapterItem: $1,
2650
+ selected: N1,
2651
+ chapterNumber: y1,
2652
+ chapterDate: k1,
2653
+ currentBadge: w1,
2654
+ dropdownActions: C1,
2655
+ actionBtn: x1,
2656
+ remove: B1
2657
+ };
2658
+ function I1({
2659
+ isBookmarked: n = !1,
2660
+ bookmarkedChapter: a,
2661
+ chapters: s = [],
2662
+ label: l = "Yer İşareti",
2663
+ onBookmarkChange: c,
2664
+ className: i = ""
2665
+ }) {
2666
+ const [r, _] = k(!1), o = fe(null);
2667
+ B(() => {
2668
+ const m = (h) => {
2669
+ o.current && !o.current.contains(h.target) && _(!1);
2670
+ };
2671
+ return document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
2672
+ }, []);
2673
+ const d = (m) => {
2674
+ c?.(m), _(!1);
2675
+ }, p = () => {
2676
+ c?.(null), _(!1);
2677
+ }, u = [
2678
+ U.bookmarkButton,
2679
+ n && U.active,
2680
+ r && U.open
2681
+ ].filter(Boolean).join(" ");
2682
+ return /* @__PURE__ */ t("div", { ref: o, className: `${U.bookmarkWrapper} ${i}`, children: [
2683
+ /* @__PURE__ */ t("button", { className: u, onClick: () => _(!r), children: [
2684
+ /* @__PURE__ */ e("span", { className: U.icon, children: n ? "🔖" : "📑" }),
2685
+ l,
2686
+ s.length > 0 && /* @__PURE__ */ e("span", { className: U.arrow, children: "▼" })
2687
+ ] }),
2688
+ r && s.length > 0 && /* @__PURE__ */ t("div", { className: U.dropdown, children: [
2689
+ /* @__PURE__ */ e("div", { className: U.dropdownHeader, children: "Bölüm Seç" }),
2690
+ s.slice(0, 10).map((m) => /* @__PURE__ */ t(
2691
+ "div",
2692
+ {
2693
+ className: `${U.chapterItem} ${a === m.number ? U.selected : ""}`,
2694
+ onClick: () => d(m.number),
2695
+ children: [
2696
+ /* @__PURE__ */ t("span", { className: U.chapterNumber, children: [
2697
+ "Bölüm ",
2698
+ m.number
2699
+ ] }),
2700
+ a === m.number && /* @__PURE__ */ e("span", { className: U.currentBadge, children: "Kayıtlı" }),
2701
+ m.date && /* @__PURE__ */ e("span", { className: U.chapterDate, children: m.date })
2702
+ ]
2703
+ },
2704
+ m.number
2705
+ )),
2706
+ n && /* @__PURE__ */ e("div", { className: U.dropdownActions, children: /* @__PURE__ */ e("button", { className: `${U.actionBtn} ${U.remove}`, onClick: p, children: "Kaldır" }) })
2707
+ ] })
2708
+ ] });
2709
+ }
2710
+ I1.displayName = "BookmarkButton";
2711
+ const T1 = "_readerToolbar_614ag_11", z1 = "_navGroup_614ag_39", L1 = "_navBtn_614ag_51", j1 = "_chapterInfo_614ag_113", S1 = "_chapterTitle_614ag_127", D1 = "_mangaTitle_614ag_141", q1 = "_toolsGroup_614ag_155", R1 = "_toolBtn_614ag_167", M1 = "_active_614ag_215", A1 = "_divider_614ag_229", W1 = "_modeGroup_614ag_311", E1 = "_modeBtn_614ag_321", P1 = "_compact_614ag_381", F1 = "_sticky_614ag_423", T = {
2712
+ readerToolbar: T1,
2713
+ navGroup: z1,
2714
+ navBtn: L1,
2715
+ chapterInfo: j1,
2716
+ chapterTitle: S1,
2717
+ mangaTitle: D1,
2718
+ toolsGroup: q1,
2719
+ toolBtn: R1,
2720
+ active: M1,
2721
+ divider: A1,
2722
+ modeGroup: W1,
2723
+ modeBtn: E1,
2724
+ compact: P1,
2725
+ sticky: F1
2726
+ };
2727
+ function O1({
2728
+ mangaTitle: n,
2729
+ chapterTitle: a,
2730
+ currentPage: s = 1,
2731
+ totalPages: l = 1,
2732
+ hasPrevChapter: c = !1,
2733
+ hasNextChapter: i = !1,
2734
+ readingMode: r = "vertical",
2735
+ isFullscreen: _ = !1,
2736
+ compact: o = !1,
2737
+ sticky: d = !1,
2738
+ onPrevChapter: p,
2739
+ onNextChapter: u,
2740
+ onPrevPage: m,
2741
+ onNextPage: h,
2742
+ onModeChange: f,
2743
+ onFullscreenToggle: g,
2744
+ onSettingsClick: $,
2745
+ className: v = ""
2746
+ }) {
2747
+ const b = [
2748
+ T.readerToolbar,
2749
+ o && T.compact,
2750
+ d && T.sticky,
2751
+ v
2752
+ ].filter(Boolean).join(" ");
2753
+ return /* @__PURE__ */ t("div", { className: b, children: [
2754
+ /* @__PURE__ */ t("div", { className: T.navGroup, children: [
2755
+ /* @__PURE__ */ e(
2756
+ "button",
2757
+ {
2758
+ className: T.navBtn,
2759
+ disabled: !c,
2760
+ onClick: p,
2761
+ title: "Önceki Bölüm",
2762
+ children: "⏮"
2763
+ }
2764
+ ),
2765
+ /* @__PURE__ */ e(
2766
+ "button",
2767
+ {
2768
+ className: T.navBtn,
2769
+ disabled: s <= 1,
2770
+ onClick: m,
2771
+ title: "Önceki Sayfa",
2772
+ children: "◀"
2773
+ }
2774
+ ),
2775
+ /* @__PURE__ */ e(
2776
+ "button",
2777
+ {
2778
+ className: T.navBtn,
2779
+ disabled: s >= l,
2780
+ onClick: h,
2781
+ title: "Sonraki Sayfa",
2782
+ children: "▶"
2783
+ }
2784
+ ),
2785
+ /* @__PURE__ */ e(
2786
+ "button",
2787
+ {
2788
+ className: T.navBtn,
2789
+ disabled: !i,
2790
+ onClick: u,
2791
+ title: "Sonraki Bölüm",
2792
+ children: "⏭"
2793
+ }
2794
+ )
2795
+ ] }),
2796
+ /* @__PURE__ */ t("div", { className: T.chapterInfo, children: [
2797
+ /* @__PURE__ */ e("span", { className: T.chapterTitle, children: a }),
2798
+ /* @__PURE__ */ e("span", { className: T.mangaTitle, children: n })
2799
+ ] }),
2800
+ /* @__PURE__ */ t("div", { className: T.toolsGroup, children: [
2801
+ /* @__PURE__ */ t("div", { className: T.modeGroup, children: [
2802
+ /* @__PURE__ */ e(
2803
+ "button",
2804
+ {
2805
+ className: `${T.modeBtn} ${r === "vertical" ? T.active : ""}`,
2806
+ onClick: () => f?.("vertical"),
2807
+ title: "Dikey",
2808
+ children: "↕"
2809
+ }
2810
+ ),
2811
+ /* @__PURE__ */ e(
2812
+ "button",
2813
+ {
2814
+ className: `${T.modeBtn} ${r === "horizontal" ? T.active : ""}`,
2815
+ onClick: () => f?.("horizontal"),
2816
+ title: "Yatay",
2817
+ children: "↔"
2818
+ }
2819
+ ),
2820
+ /* @__PURE__ */ e(
2821
+ "button",
2822
+ {
2823
+ className: `${T.modeBtn} ${r === "single" ? T.active : ""}`,
2824
+ onClick: () => f?.("single"),
2825
+ title: "Tek Sayfa",
2826
+ children: "▢"
2827
+ }
2828
+ )
2829
+ ] }),
2830
+ /* @__PURE__ */ e("div", { className: T.divider }),
2831
+ /* @__PURE__ */ e(
2832
+ "button",
2833
+ {
2834
+ className: `${T.toolBtn} ${_ ? T.active : ""}`,
2835
+ onClick: g,
2836
+ title: _ ? "Tam Ekrandan Çık" : "Tam Ekran",
2837
+ children: "⛶"
2838
+ }
2839
+ ),
2840
+ /* @__PURE__ */ e(
2841
+ "button",
2842
+ {
2843
+ className: T.toolBtn,
2844
+ onClick: $,
2845
+ title: "Ayarlar",
2846
+ children: "⚙️"
2847
+ }
2848
+ )
2849
+ ] })
2850
+ ] });
2851
+ }
2852
+ O1.displayName = "ReaderToolbar";
2853
+ const G1 = "_pageCounter_so3oz_11", U1 = "_current_so3oz_37", V1 = "_separator_so3oz_53", H1 = "_total_so3oz_67", Y1 = "_withProgress_so3oz_81", K1 = "_progressBar_so3oz_93", Q1 = "_progressFill_so3oz_109", J1 = "_numbers_so3oz_123", X1 = "_compact_so3oz_137", Z1 = "_floating_so3oz_173", ep = "_pill_so3oz_223", Be = {
2854
+ pageCounter: G1,
2855
+ current: U1,
2856
+ separator: V1,
2857
+ total: H1,
2858
+ withProgress: Y1,
2859
+ progressBar: K1,
2860
+ progressFill: Q1,
2861
+ numbers: J1,
2862
+ compact: X1,
2863
+ floating: Z1,
2864
+ pill: ep
2865
+ };
2866
+ function np({
2867
+ currentPage: n,
2868
+ totalPages: a,
2869
+ showProgress: s = !1,
2870
+ variant: l = "default",
2871
+ className: c = ""
2872
+ }) {
2873
+ const i = n / a * 100, r = [
2874
+ Be.pageCounter,
2875
+ s && Be.withProgress,
2876
+ l !== "default" && Be[l],
2877
+ c
2878
+ ].filter(Boolean).join(" ");
2879
+ return /* @__PURE__ */ t("div", { className: r, children: [
2880
+ s && /* @__PURE__ */ e("div", { className: Be.progressBar, children: /* @__PURE__ */ e(
2881
+ "div",
2882
+ {
2883
+ className: Be.progressFill,
2884
+ style: { width: `${i}%` }
2885
+ }
2886
+ ) }),
2887
+ /* @__PURE__ */ t("div", { className: Be.numbers, children: [
2888
+ /* @__PURE__ */ e("span", { className: Be.current, children: n }),
2889
+ /* @__PURE__ */ e("span", { className: Be.separator, children: "/" }),
2890
+ /* @__PURE__ */ e("span", { className: Be.total, children: a })
2891
+ ] })
2892
+ ] });
2893
+ }
2894
+ np.displayName = "PageCounter";
2895
+ const tp = "_likeButton_hi7z6_11", ap = "_liked_hi7z6_65", sp = "_icon_hi7z6_77", op = "_disliked_hi7z6_87", cp = "_count_hi7z6_129", lp = "_likeDislikeGroup_hi7z6_145", rp = "_vertical_hi7z6_181", ip = "_floatingOne_hi7z6_275", R = {
2896
+ likeButton: tp,
2897
+ liked: ap,
2898
+ icon: sp,
2899
+ disliked: op,
2900
+ count: cp,
2901
+ likeDislikeGroup: lp,
2902
+ vertical: rp,
2903
+ floatingOne: ip
2904
+ };
2905
+ function _p({
2906
+ state: n = "none",
2907
+ likeCount: a = 0,
2908
+ dislikeCount: s = 0,
2909
+ showDislike: l = !1,
2910
+ vertical: c = !1,
2911
+ onLike: i,
2912
+ onDislike: r,
2913
+ className: _ = ""
2914
+ }) {
2915
+ const o = (d) => d >= 1e6 ? `${(d / 1e6).toFixed(1)}M` : d >= 1e3 ? `${(d / 1e3).toFixed(1)}K` : d.toString();
2916
+ return l ? /* @__PURE__ */ t("div", { className: `${R.likeDislikeGroup} ${_}`, children: [
2917
+ /* @__PURE__ */ t(
2918
+ "button",
2919
+ {
2920
+ className: `${R.likeButton} ${n === "liked" ? R.liked : ""} ${c ? R.vertical : ""}`,
2921
+ onClick: i,
2922
+ children: [
2923
+ /* @__PURE__ */ e("span", { className: R.icon, children: "👍" }),
2924
+ /* @__PURE__ */ e("span", { className: R.count, children: o(a) }),
2925
+ /* @__PURE__ */ e("span", { className: R.floatingOne, children: "+1" })
2926
+ ]
2927
+ }
2928
+ ),
2929
+ /* @__PURE__ */ t(
2930
+ "button",
2931
+ {
2932
+ className: `${R.likeButton} ${n === "disliked" ? R.disliked : ""} ${c ? R.vertical : ""}`,
2933
+ onClick: r,
2934
+ children: [
2935
+ /* @__PURE__ */ e("span", { className: R.icon, children: "👎" }),
2936
+ /* @__PURE__ */ e("span", { className: R.count, children: o(s) })
2937
+ ]
2938
+ }
2939
+ )
2940
+ ] }) : /* @__PURE__ */ t(
2941
+ "button",
2942
+ {
2943
+ className: `${R.likeButton} ${n === "liked" ? R.liked : ""} ${c ? R.vertical : ""} ${_}`,
2944
+ onClick: i,
2945
+ children: [
2946
+ /* @__PURE__ */ e("span", { className: R.icon, children: "👍" }),
2947
+ /* @__PURE__ */ e("span", { className: R.count, children: o(a) }),
2948
+ /* @__PURE__ */ e("span", { className: R.floatingOne, children: "+1" })
2949
+ ]
2950
+ }
2951
+ );
2952
+ }
2953
+ _p.displayName = "LikeButton";
2954
+ const dp = "_shareWrapper_v0g7p_11", mp = "_shareButton_v0g7p_21", pp = "_icon_v0g7p_87", up = "_dropdown_v0g7p_97", hp = "_dropdownTitle_v0g7p_131", gp = "_socialGrid_v0g7p_153", fp = "_socialBtn_v0g7p_165", vp = "_twitter_v0g7p_211", bp = "_facebook_v0g7p_221", $p = "_whatsapp_v0g7p_231", Np = "_telegram_v0g7p_241", yp = "_reddit_v0g7p_251", kp = "_discord_v0g7p_261", wp = "_copy_v0g7p_271", Cp = "_more_v0g7p_281", xp = "_divider_v0g7p_291", Bp = "_copyLink_v0g7p_305", Ip = "_copied_v0g7p_351", Tp = "_copyIcon_v0g7p_361", zp = "_copyText_v0g7p_369", Lp = "_iconOnly_v0g7p_385", ee = {
2955
+ shareWrapper: dp,
2956
+ shareButton: mp,
2957
+ icon: pp,
2958
+ dropdown: up,
2959
+ dropdownTitle: hp,
2960
+ socialGrid: gp,
2961
+ socialBtn: fp,
2962
+ twitter: vp,
2963
+ facebook: bp,
2964
+ whatsapp: $p,
2965
+ telegram: Np,
2966
+ reddit: yp,
2967
+ discord: kp,
2968
+ copy: wp,
2969
+ more: Cp,
2970
+ divider: xp,
2971
+ copyLink: Bp,
2972
+ copied: Ip,
2973
+ copyIcon: Tp,
2974
+ copyText: zp,
2975
+ iconOnly: Lp
2976
+ }, jp = {
2977
+ twitter: "𝕏",
2978
+ facebook: "📘",
2979
+ whatsapp: "💬",
2980
+ telegram: "✈️",
2981
+ reddit: "🔴",
2982
+ discord: "🎮"
2983
+ };
2984
+ function Sp({
2985
+ url: n = typeof window < "u" ? window.location.href : "",
2986
+ title: a = "",
2987
+ platforms: s = ["twitter", "facebook", "whatsapp", "telegram"],
2988
+ showCopyLink: l = !0,
2989
+ iconOnly: c = !1,
2990
+ onShare: i,
2991
+ className: r = ""
2992
+ }) {
2993
+ const [_, o] = k(!1), [d, p] = k(!1), u = fe(null);
2994
+ B(() => {
2995
+ const g = ($) => {
2996
+ u.current && !u.current.contains($.target) && o(!1);
2997
+ };
2998
+ return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
2999
+ }, []);
3000
+ const m = (g) => {
3001
+ const $ = encodeURIComponent(n), v = encodeURIComponent(a), b = {
3002
+ twitter: `https://twitter.com/intent/tweet?url=${$}&text=${v}`,
3003
+ facebook: `https://www.facebook.com/sharer/sharer.php?u=${$}`,
3004
+ whatsapp: `https://wa.me/?text=${v}%20${$}`,
3005
+ telegram: `https://t.me/share/url?url=${$}&text=${v}`,
3006
+ reddit: `https://reddit.com/submit?url=${$}&title=${v}`,
3007
+ discord: "https://discord.com/channels/@me"
3008
+ };
3009
+ window.open(b[g], "_blank", "width=600,height=400"), i?.(g), o(!1);
3010
+ }, h = async () => {
3011
+ try {
3012
+ await navigator.clipboard.writeText(n), p(!0), i?.("copy"), setTimeout(() => p(!1), 2e3);
3013
+ } catch (g) {
3014
+ console.error("Failed to copy:", g);
3015
+ }
3016
+ }, f = [
3017
+ ee.shareButton,
3018
+ c && ee.iconOnly
3019
+ ].filter(Boolean).join(" ");
3020
+ return /* @__PURE__ */ t("div", { ref: u, className: `${ee.shareWrapper} ${r}`, children: [
3021
+ /* @__PURE__ */ t("button", { className: f, onClick: () => o(!_), children: [
3022
+ /* @__PURE__ */ e("span", { className: ee.icon, children: "📤" }),
3023
+ !c && "Paylaş"
3024
+ ] }),
3025
+ _ && /* @__PURE__ */ t("div", { className: ee.dropdown, children: [
3026
+ /* @__PURE__ */ e("div", { className: ee.dropdownTitle, children: "Paylaş" }),
3027
+ /* @__PURE__ */ e("div", { className: ee.socialGrid, children: s.map((g) => /* @__PURE__ */ e(
3028
+ "button",
3029
+ {
3030
+ className: `${ee.socialBtn} ${ee[g]}`,
3031
+ onClick: () => m(g),
3032
+ title: g,
3033
+ children: jp[g]
3034
+ },
3035
+ g
3036
+ )) }),
3037
+ l && /* @__PURE__ */ t(re, { children: [
3038
+ /* @__PURE__ */ e("div", { className: ee.divider }),
3039
+ /* @__PURE__ */ t(
3040
+ "button",
3041
+ {
3042
+ className: `${ee.copyLink} ${d ? ee.copied : ""}`,
3043
+ onClick: h,
3044
+ children: [
3045
+ /* @__PURE__ */ e("span", { className: ee.copyIcon, children: d ? "✓" : "📋" }),
3046
+ /* @__PURE__ */ e("span", { className: ee.copyText, children: d ? "Kopyalandı!" : "Linki Kopyala" })
3047
+ ]
3048
+ }
3049
+ )
3050
+ ] })
3051
+ ] })
3052
+ ] });
3053
+ }
3054
+ Sp.displayName = "ShareButton";
3055
+ const Dp = "_followButton_1snff_11", qp = "_following_1snff_81", Rp = "_icon_1snff_107", Mp = "_count_1snff_127", Ap = "_sm_1snff_149", Wp = "_lg_1snff_167", Ep = "_iconOnly_1snff_187", Pp = "_text_1snff_201", Fp = "_bell_1snff_221", Op = "_loading_1snff_253", Gp = "_spin_1snff_1", Up = "_justFollowed_1snff_293", Vp = "_followPulse_1snff_1", pe = {
3056
+ followButton: Dp,
3057
+ following: qp,
3058
+ icon: Rp,
3059
+ count: Mp,
3060
+ sm: Ap,
3061
+ lg: Wp,
3062
+ iconOnly: Ep,
3063
+ text: Pp,
3064
+ bell: Fp,
3065
+ loading: Op,
3066
+ spin: Gp,
3067
+ justFollowed: Up,
3068
+ followPulse: Vp
3069
+ };
3070
+ function Hp({
3071
+ isFollowing: n = !1,
3072
+ count: a,
3073
+ showCount: s = !1,
3074
+ size: l = "md",
3075
+ variant: c = "default",
3076
+ iconOnly: i = !1,
3077
+ loading: r = !1,
3078
+ onToggle: _,
3079
+ className: o = ""
3080
+ }) {
3081
+ const [d, p] = k(!1), u = () => {
3082
+ r || (n || (p(!0), setTimeout(() => p(!1), 400)), _?.(!n));
3083
+ }, m = ($) => $ >= 1e6 ? `${($ / 1e6).toFixed(1)}M` : $ >= 1e3 ? `${($ / 1e3).toFixed(1)}K` : $.toString(), h = () => r ? "⏳" : c === "bell" ? n ? "🔔" : "🔕" : n ? "✓" : "+", f = () => c === "bell" ? n ? "Bildirimlerde" : "Bildirim Al" : n ? "Takip Ediliyor" : "Takip Et", g = [
3084
+ pe.followButton,
3085
+ n && pe.following,
3086
+ l !== "md" && pe[l],
3087
+ c !== "default" && pe[c],
3088
+ i && pe.iconOnly,
3089
+ r && pe.loading,
3090
+ d && pe.justFollowed,
3091
+ o
3092
+ ].filter(Boolean).join(" ");
3093
+ return /* @__PURE__ */ t("button", { className: g, onClick: u, children: [
3094
+ /* @__PURE__ */ e("span", { className: pe.icon, children: h() }),
3095
+ /* @__PURE__ */ e("span", { className: pe.text, children: n ? /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e("span", { className: pe.defaultText, children: f() }) }) : f() }),
3096
+ s && a !== void 0 && /* @__PURE__ */ e("span", { className: pe.count, children: m(a) })
3097
+ ] });
3098
+ }
3099
+ Hp.displayName = "FollowButton";
3100
+ const Yp = "_overlay_17fla_11", Kp = "_modal_17fla_41", Qp = "_header_17fla_111", Jp = "_title_17fla_127", Xp = "_titleIcon_17fla_149", Zp = "_closeBtn_17fla_157", eu = "_body_17fla_199", nu = "_description_17fla_207", tu = "_reasonList_17fla_223", au = "_reasonItem_17fla_235", su = "_selected_17fla_279", ou = "_radioCircle_17fla_291", cu = "_detailsLabel_17fla_357", lu = "_detailsInput_17fla_379", ru = "_footer_17fla_425", iu = "_cancelBtn_17fla_439", _u = "_submitBtn_17fla_483", E = {
3101
+ overlay: Yp,
3102
+ modal: Kp,
3103
+ header: Qp,
3104
+ title: Jp,
3105
+ titleIcon: Xp,
3106
+ closeBtn: Zp,
3107
+ body: eu,
3108
+ description: nu,
3109
+ reasonList: tu,
3110
+ reasonItem: au,
3111
+ selected: su,
3112
+ radioCircle: ou,
3113
+ detailsLabel: cu,
3114
+ detailsInput: lu,
3115
+ footer: ru,
3116
+ cancelBtn: iu,
3117
+ submitBtn: _u
3118
+ }, du = [
3119
+ { id: "spam", label: "Spam veya yanıltıcı içerik" },
3120
+ { id: "inappropriate", label: "Uygunsuz veya rahatsız edici içerik" },
3121
+ { id: "copyright", label: "Telif hakkı ihlali" },
3122
+ { id: "spoiler", label: "Spoiler işareti olmadan spoiler" },
3123
+ { id: "wrong_content", label: "Yanlış bölüm veya içerik" },
3124
+ { id: "other", label: "Diğer" }
3125
+ ];
3126
+ function mu({
3127
+ isOpen: n,
3128
+ contentType: a = "içerik",
3129
+ reasons: s = du,
3130
+ showDetails: l = !0,
3131
+ onClose: c,
3132
+ onSubmit: i
3133
+ }) {
3134
+ const [r, _] = k(null), [o, d] = k("");
3135
+ B(() => {
3136
+ const m = (h) => {
3137
+ h.key === "Escape" && c();
3138
+ };
3139
+ return n && (document.addEventListener("keydown", m), document.body.style.overflow = "hidden"), () => {
3140
+ document.removeEventListener("keydown", m), document.body.style.overflow = "";
3141
+ };
3142
+ }, [n, c]), B(() => {
3143
+ n && (_(null), d(""));
3144
+ }, [n]);
3145
+ const p = () => {
3146
+ r && (i?.(r, o || void 0), c());
3147
+ };
3148
+ if (!n) return null;
3149
+ const u = /* @__PURE__ */ e("div", { className: E.overlay, onClick: c, children: /* @__PURE__ */ t("div", { className: E.modal, onClick: (m) => m.stopPropagation(), children: [
3150
+ /* @__PURE__ */ t("div", { className: E.header, children: [
3151
+ /* @__PURE__ */ t("h2", { className: E.title, children: [
3152
+ /* @__PURE__ */ e("span", { className: E.titleIcon, children: "🚨" }),
3153
+ "Şikayet Et"
3154
+ ] }),
3155
+ /* @__PURE__ */ e("button", { className: E.closeBtn, onClick: c, children: "✕" })
3156
+ ] }),
3157
+ /* @__PURE__ */ t("div", { className: E.body, children: [
3158
+ /* @__PURE__ */ t("p", { className: E.description, children: [
3159
+ "Bu ",
3160
+ a,
3161
+ " neden şikayet ediyorsunuz?"
3162
+ ] }),
3163
+ /* @__PURE__ */ e("div", { className: E.reasonList, children: s.map((m) => /* @__PURE__ */ t(
3164
+ "div",
3165
+ {
3166
+ className: `${E.reasonItem} ${r === m.id ? E.selected : ""}`,
3167
+ onClick: () => _(m.id),
3168
+ children: [
3169
+ /* @__PURE__ */ e("span", { className: E.radioCircle }),
3170
+ m.label
3171
+ ]
3172
+ },
3173
+ m.id
3174
+ )) }),
3175
+ l && /* @__PURE__ */ t(re, { children: [
3176
+ /* @__PURE__ */ e("label", { className: E.detailsLabel, children: "Ek Açıklama (İsteğe Bağlı)" }),
3177
+ /* @__PURE__ */ e(
3178
+ "textarea",
3179
+ {
3180
+ className: E.detailsInput,
3181
+ placeholder: "Detaylı açıklama yazabilirsiniz...",
3182
+ value: o,
3183
+ onChange: (m) => d(m.target.value)
3184
+ }
3185
+ )
3186
+ ] })
3187
+ ] }),
3188
+ /* @__PURE__ */ t("div", { className: E.footer, children: [
3189
+ /* @__PURE__ */ e("button", { className: E.cancelBtn, onClick: c, children: "İptal" }),
3190
+ /* @__PURE__ */ e(
3191
+ "button",
3192
+ {
3193
+ className: E.submitBtn,
3194
+ disabled: !r,
3195
+ onClick: p,
3196
+ children: "Gönder"
3197
+ }
3198
+ )
3199
+ ] })
3200
+ ] }) });
3201
+ return Le(u, document.body);
3202
+ }
3203
+ mu.displayName = "ReportModal";
3204
+ const pu = "_emptyState_1ueeu_11", uu = "_icon_1ueeu_33", hu = "_float_1ueeu_1", gu = "_title_1ueeu_71", fu = "_description_1ueeu_89", vu = "_action_1ueeu_107", bu = "_compact_1ueeu_117", $u = "_bordered_1ueeu_153", Nu = "_card_1ueeu_169", yu = "_noResults_1ueeu_187", ku = "_noData_1ueeu_195", wu = "_error_1ueeu_203", Cu = "_image_1ueeu_221", xu = "_illustration_1ueeu_257", Ae = {
3205
+ emptyState: pu,
3206
+ icon: uu,
3207
+ float: hu,
3208
+ title: gu,
3209
+ description: fu,
3210
+ action: vu,
3211
+ compact: bu,
3212
+ bordered: $u,
3213
+ card: Nu,
3214
+ noResults: yu,
3215
+ noData: ku,
3216
+ error: wu,
3217
+ image: Cu,
3218
+ illustration: xu
3219
+ }, Bu = {
3220
+ default: "📭",
3221
+ noResults: "🔍",
3222
+ noData: "📂",
3223
+ error: "⚠️"
3224
+ }, Iu = {
3225
+ default: "Burada henüz içerik yok",
3226
+ noResults: "Sonuç bulunamadı",
3227
+ noData: "Veri yok",
3228
+ error: "Bir hata oluştu"
3229
+ }, Tu = {
3230
+ default: "Yeni içerik eklendiğinde burada görünecek.",
3231
+ noResults: "Arama kriterlerinize uygun sonuç bulunamadı. Farklı anahtar kelimeler deneyin.",
3232
+ noData: "Görüntülenecek veri bulunmuyor.",
3233
+ error: "Bir şeyler yanlış gitti. Lütfen daha sonra tekrar deneyin."
3234
+ };
3235
+ function zu({
3236
+ icon: n,
3237
+ title: a,
3238
+ description: s,
3239
+ action: l,
3240
+ variant: c = "default",
3241
+ type: i = "default",
3242
+ className: r = ""
3243
+ }) {
3244
+ const _ = [
3245
+ Ae.emptyState,
3246
+ c !== "default" && Ae[c],
3247
+ i !== "default" && Ae[i],
3248
+ r
3249
+ ].filter(Boolean).join(" "), o = n ?? Bu[i], d = a ?? Iu[i], p = s ?? Tu[i];
3250
+ return /* @__PURE__ */ t("div", { className: _, children: [
3251
+ c === "illustration" ? /* @__PURE__ */ e("div", { className: Ae.icon, children: o }) : /* @__PURE__ */ e("span", { className: Ae.icon, children: o }),
3252
+ /* @__PURE__ */ e("h3", { className: Ae.title, children: d }),
3253
+ /* @__PURE__ */ e("p", { className: Ae.description, children: p }),
3254
+ l && /* @__PURE__ */ e("div", { className: Ae.action, children: l })
3255
+ ] });
3256
+ }
3257
+ zu.displayName = "EmptyState";
3258
+ const Lu = "_dataTable_7o2n1_11", ju = "_tableHeader_7o2n1_31", Su = "_tableTitle_7o2n1_49", Du = "_headerActions_7o2n1_63", qu = "_searchWrapper_7o2n1_77", Ru = "_searchInput_7o2n1_99", Mu = "_tableContainer_7o2n1_131", Au = "_table_7o2n1_31", Wu = "_sortable_7o2n1_191", Eu = "_sortIcon_7o2n1_211", Pu = "_sorted_7o2n1_225", Fu = "_striped_7o2n1_279", Ou = "_compact_7o2n1_289", Gu = "_tableFooter_7o2n1_339", Uu = "_rowInfo_7o2n1_357", Vu = "_paginationWrapper_7o2n1_369", Hu = "_pageBtn_7o2n1_381", Yu = "_active_7o2n1_439", Ku = "_emptyRow_7o2n1_453", Qu = "_loading_7o2n1_467", I = {
3259
+ dataTable: Lu,
3260
+ tableHeader: ju,
3261
+ tableTitle: Su,
3262
+ headerActions: Du,
3263
+ searchWrapper: qu,
3264
+ searchInput: Ru,
3265
+ tableContainer: Mu,
3266
+ table: Au,
3267
+ sortable: Wu,
3268
+ sortIcon: Eu,
3269
+ sorted: Pu,
3270
+ striped: Fu,
3271
+ compact: Ou,
3272
+ tableFooter: Gu,
3273
+ rowInfo: Uu,
3274
+ paginationWrapper: Vu,
3275
+ pageBtn: Hu,
3276
+ active: Yu,
3277
+ emptyRow: Ku,
3278
+ loading: Qu
3279
+ };
3280
+ function Ju({
3281
+ data: n,
3282
+ columns: a,
3283
+ title: s,
3284
+ showSearch: l = !1,
3285
+ searchPlaceholder: c = "Ara...",
3286
+ searchFields: i = [],
3287
+ striped: r = !1,
3288
+ compact: _ = !1,
3289
+ pageSize: o = 10,
3290
+ loading: d = !1,
3291
+ emptyMessage: p = "Veri bulunamadı",
3292
+ rowKey: u,
3293
+ headerActions: m,
3294
+ className: h = ""
3295
+ }) {
3296
+ const [f, g] = k(""), [$, v] = k(null), [b, C] = k(null), [y, N] = k(1), z = ln(() => {
3297
+ if (!f.trim() || i.length === 0) return n;
3298
+ const x = f.toLowerCase();
3299
+ return n.filter(
3300
+ (be) => i.some((S) => {
3301
+ const Ke = be[S];
3302
+ return String(Ke).toLowerCase().includes(x);
3303
+ })
3304
+ );
3305
+ }, [n, f, i]), O = ln(() => !$ || !b ? z : [...z].sort((x, be) => {
3306
+ const S = x[$], Ke = be[$];
3307
+ if (S === Ke) return 0;
3308
+ if (S == null) return 1;
3309
+ if (Ke == null) return -1;
3310
+ const dn = S < Ke ? -1 : 1;
3311
+ return b === "asc" ? dn : -dn;
3312
+ }), [z, $, b]), ve = ln(() => {
3313
+ if (o === 0) return O;
3314
+ const x = (y - 1) * o;
3315
+ return O.slice(x, x + o);
3316
+ }, [O, y, o]), oe = o > 0 ? Math.ceil(O.length / o) : 1, en = (x) => {
3317
+ $ === x ? b === "asc" ? C("desc") : b === "desc" ? (v(null), C(null)) : C("asc") : (v(x), C("asc"));
3318
+ }, nn = (x) => $ !== x ? "↕" : b === "asc" ? "↑" : "↓", gn = [
3319
+ I.dataTable,
3320
+ r && I.striped,
3321
+ _ && I.compact,
3322
+ d && I.loading,
3323
+ h
3324
+ ].filter(Boolean).join(" ");
3325
+ return /* @__PURE__ */ t("div", { className: gn, children: [
3326
+ (s || l || m) && /* @__PURE__ */ t("div", { className: I.tableHeader, children: [
3327
+ s && /* @__PURE__ */ e("h3", { className: I.tableTitle, children: s }),
3328
+ /* @__PURE__ */ t("div", { className: I.headerActions, children: [
3329
+ l && /* @__PURE__ */ t("div", { className: I.searchWrapper, children: [
3330
+ /* @__PURE__ */ e("span", { children: "🔍" }),
3331
+ /* @__PURE__ */ e(
3332
+ "input",
3333
+ {
3334
+ type: "text",
3335
+ className: I.searchInput,
3336
+ placeholder: c,
3337
+ value: f,
3338
+ onChange: (x) => {
3339
+ g(x.target.value), N(1);
3340
+ }
3341
+ }
3342
+ )
3343
+ ] }),
3344
+ m
3345
+ ] })
3346
+ ] }),
3347
+ /* @__PURE__ */ e("div", { className: I.tableContainer, children: /* @__PURE__ */ t("table", { className: I.table, children: [
3348
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: a.map((x) => /* @__PURE__ */ t(
3349
+ "th",
3350
+ {
3351
+ className: x.sortable ? `${I.sortable} ${$ === x.key ? I.sorted : ""}` : "",
3352
+ style: { width: x.width },
3353
+ onClick: x.sortable ? () => en(String(x.key)) : void 0,
3354
+ children: [
3355
+ x.label,
3356
+ x.sortable && /* @__PURE__ */ e("span", { className: I.sortIcon, children: nn(String(x.key)) })
3357
+ ]
3358
+ },
3359
+ String(x.key)
3360
+ )) }) }),
3361
+ /* @__PURE__ */ e("tbody", { children: ve.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: a.length, className: I.emptyRow, children: p }) }) : ve.map((x, be) => /* @__PURE__ */ e("tr", { children: a.map((S) => /* @__PURE__ */ e("td", { children: S.render ? S.render(x[S.key], x, be) : String(x[S.key] ?? "") }, String(S.key))) }, u ? String(x[u]) : be)) })
3362
+ ] }) }),
3363
+ o > 0 && O.length > o && /* @__PURE__ */ t("div", { className: I.tableFooter, children: [
3364
+ /* @__PURE__ */ t("span", { className: I.rowInfo, children: [
3365
+ (y - 1) * o + 1,
3366
+ "-",
3367
+ Math.min(y * o, O.length),
3368
+ " / ",
3369
+ O.length
3370
+ ] }),
3371
+ /* @__PURE__ */ t("div", { className: I.paginationWrapper, children: [
3372
+ /* @__PURE__ */ e(
3373
+ "button",
3374
+ {
3375
+ className: I.pageBtn,
3376
+ disabled: y === 1,
3377
+ onClick: () => N(1),
3378
+ children: "«"
3379
+ }
3380
+ ),
3381
+ /* @__PURE__ */ e(
3382
+ "button",
3383
+ {
3384
+ className: I.pageBtn,
3385
+ disabled: y === 1,
3386
+ onClick: () => N((x) => x - 1),
3387
+ children: "‹"
3388
+ }
3389
+ ),
3390
+ Array.from({ length: Math.min(5, oe) }, (x, be) => {
3391
+ let S = be + 1;
3392
+ return oe > 5 && (y > 3 && (S = y - 2 + be), y > oe - 2 && (S = oe - 4 + be)), /* @__PURE__ */ e(
3393
+ "button",
3394
+ {
3395
+ className: `${I.pageBtn} ${y === S ? I.active : ""}`,
3396
+ onClick: () => N(S),
3397
+ children: S
3398
+ },
3399
+ S
3400
+ );
3401
+ }),
3402
+ /* @__PURE__ */ e(
3403
+ "button",
3404
+ {
3405
+ className: I.pageBtn,
3406
+ disabled: y === oe,
3407
+ onClick: () => N((x) => x + 1),
3408
+ children: "›"
3409
+ }
3410
+ ),
3411
+ /* @__PURE__ */ e(
3412
+ "button",
3413
+ {
3414
+ className: I.pageBtn,
3415
+ disabled: y === oe,
3416
+ onClick: () => N(oe),
3417
+ children: "»"
3418
+ }
3419
+ )
3420
+ ] })
3421
+ ] })
3422
+ ] });
3423
+ }
3424
+ Ju.displayName = "DataTable";
3425
+ const Xu = "_textareaWrapper_qkp8t_11", Zu = "_label_qkp8t_23", eh = "_required_qkp8t_39", nh = "_textareaContainer_qkp8t_47", th = "_textarea_qkp8t_11", ah = "_comic_qkp8t_121", sh = "_sm_qkp8t_145", oh = "_lg_qkp8t_157", ch = "_error_qkp8t_171", lh = "_errorMessage_qkp8t_187", rh = "_footer_qkp8t_201", ih = "_charCount_qkp8t_213", _h = "_warning_qkp8t_225", dh = "_exceeded_qkp8t_233", mh = "_helperText_qkp8t_245", ph = "_noResize_qkp8t_273", uh = "_autoGrow_qkp8t_283", D = {
3426
+ textareaWrapper: Xu,
3427
+ label: Zu,
3428
+ required: eh,
3429
+ textareaContainer: nh,
3430
+ textarea: th,
3431
+ comic: ah,
3432
+ sm: sh,
3433
+ lg: oh,
3434
+ error: ch,
3435
+ errorMessage: lh,
3436
+ footer: rh,
3437
+ charCount: ih,
3438
+ warning: _h,
3439
+ exceeded: dh,
3440
+ helperText: mh,
3441
+ noResize: ph,
3442
+ autoGrow: uh
3443
+ };
3444
+ function hh({
3445
+ label: n,
3446
+ size: a = "md",
3447
+ variant: s = "default",
3448
+ error: l = !1,
3449
+ errorMessage: c,
3450
+ helperText: i,
3451
+ required: r = !1,
3452
+ maxChars: _,
3453
+ showCharCount: o = !1,
3454
+ noResize: d = !1,
3455
+ autoGrow: p = !1,
3456
+ className: u = "",
3457
+ value: m,
3458
+ onChange: h,
3459
+ ...f
3460
+ }) {
3461
+ const g = fe(null), $ = String(m || "").length;
3462
+ B(() => {
3463
+ p && g.current && (g.current.style.height = "auto", g.current.style.height = `${g.current.scrollHeight}px`);
3464
+ }, [m, p]);
3465
+ const v = [
3466
+ D.textareaWrapper,
3467
+ a !== "md" && D[a],
3468
+ s !== "default" && D[s],
3469
+ l && D.error,
3470
+ d && D.noResize,
3471
+ p && D.autoGrow,
3472
+ u
3473
+ ].filter(Boolean).join(" "), b = () => _ ? $ > _ ? `${D.charCount} ${D.exceeded}` : $ > _ * 0.9 ? `${D.charCount} ${D.warning}` : D.charCount : D.charCount;
3474
+ return /* @__PURE__ */ t("div", { className: v, children: [
3475
+ n && /* @__PURE__ */ t("label", { className: D.label, children: [
3476
+ n,
3477
+ r && /* @__PURE__ */ e("span", { className: D.required, children: " *" })
3478
+ ] }),
3479
+ /* @__PURE__ */ e("div", { className: D.textareaContainer, children: /* @__PURE__ */ e(
3480
+ "textarea",
3481
+ {
3482
+ ref: g,
3483
+ className: D.textarea,
3484
+ value: m,
3485
+ onChange: h,
3486
+ maxLength: _,
3487
+ ...f
3488
+ }
3489
+ ) }),
3490
+ /* @__PURE__ */ t("div", { className: D.footer, children: [
3491
+ l && c ? /* @__PURE__ */ e("span", { className: D.errorMessage, children: c }) : i ? /* @__PURE__ */ e("span", { className: D.helperText, children: i }) : /* @__PURE__ */ e("span", {}),
3492
+ o && /* @__PURE__ */ t("span", { className: b(), children: [
3493
+ $,
3494
+ _ ? ` / ${_}` : ""
3495
+ ] })
3496
+ ] })
3497
+ ] });
3498
+ }
3499
+ hh.displayName = "TextArea";
3500
+ const gh = "_overlay_1pn8d_11", fh = "_header_1pn8d_59", vh = "_title_1pn8d_87", bh = "_counter_1pn8d_101", $h = "_closeBtn_1pn8d_113", Nh = "_imageContainer_1pn8d_155", yh = "_image_1pn8d_155", kh = "_navBtn_1pn8d_219", wh = "_prevBtn_1pn8d_283", Ch = "_nextBtn_1pn8d_291", xh = "_thumbnails_1pn8d_301", Bh = "_thumbnail_1pn8d_301", Ih = "_active_1pn8d_369", Th = "_loading_1pn8d_467", Y = {
3501
+ overlay: gh,
3502
+ header: fh,
3503
+ title: vh,
3504
+ counter: bh,
3505
+ closeBtn: $h,
3506
+ imageContainer: Nh,
3507
+ image: yh,
3508
+ navBtn: kh,
3509
+ prevBtn: wh,
3510
+ nextBtn: Ch,
3511
+ thumbnails: xh,
3512
+ thumbnail: Bh,
3513
+ active: Ih,
3514
+ loading: Th
3515
+ };
3516
+ function zh({
3517
+ images: n,
3518
+ initialIndex: a = 0,
3519
+ isOpen: s,
3520
+ title: l,
3521
+ showThumbnails: c = !0,
3522
+ showCounter: i = !0,
3523
+ onClose: r,
3524
+ onIndexChange: _
3525
+ }) {
3526
+ const [o, d] = k(a), [p, u] = k(!0);
3527
+ B(() => {
3528
+ s && (d(a), u(!0));
3529
+ }, [s, a]), B(() => {
3530
+ const v = (b) => {
3531
+ if (s)
3532
+ switch (b.key) {
3533
+ case "Escape":
3534
+ r();
3535
+ break;
3536
+ case "ArrowLeft":
3537
+ m();
3538
+ break;
3539
+ case "ArrowRight":
3540
+ h();
3541
+ break;
3542
+ }
3543
+ };
3544
+ return document.addEventListener("keydown", v), () => document.removeEventListener("keydown", v);
3545
+ }, [s, o]), B(() => (s && (document.body.style.overflow = "hidden"), () => {
3546
+ document.body.style.overflow = "";
3547
+ }), [s]);
3548
+ const m = Fe(() => {
3549
+ if (o > 0) {
3550
+ const v = o - 1;
3551
+ d(v), u(!0), _?.(v);
3552
+ }
3553
+ }, [o, _]), h = Fe(() => {
3554
+ if (o < n.length - 1) {
3555
+ const v = o + 1;
3556
+ d(v), u(!0), _?.(v);
3557
+ }
3558
+ }, [o, n.length, _]), f = (v) => {
3559
+ d(v), u(!0), _?.(v);
3560
+ };
3561
+ if (!s || n.length === 0) return null;
3562
+ const g = n[o], $ = /* @__PURE__ */ t("div", { className: Y.overlay, onClick: r, children: [
3563
+ /* @__PURE__ */ t("div", { className: Y.header, children: [
3564
+ /* @__PURE__ */ e("span", { className: Y.title, children: l }),
3565
+ i && /* @__PURE__ */ t("span", { className: Y.counter, children: [
3566
+ o + 1,
3567
+ " / ",
3568
+ n.length
3569
+ ] }),
3570
+ /* @__PURE__ */ e("button", { className: Y.closeBtn, onClick: r, children: "✕" })
3571
+ ] }),
3572
+ /* @__PURE__ */ t("div", { className: Y.imageContainer, onClick: (v) => v.stopPropagation(), children: [
3573
+ p && /* @__PURE__ */ e("span", { className: Y.loading, children: "Yükleniyor..." }),
3574
+ /* @__PURE__ */ e(
3575
+ "img",
3576
+ {
3577
+ src: g.src,
3578
+ alt: g.alt || `Image ${o + 1}`,
3579
+ className: Y.image,
3580
+ onLoad: () => u(!1),
3581
+ style: { display: p ? "none" : "block" }
3582
+ }
3583
+ )
3584
+ ] }),
3585
+ n.length > 1 && /* @__PURE__ */ t(re, { children: [
3586
+ /* @__PURE__ */ e(
3587
+ "button",
3588
+ {
3589
+ className: `${Y.navBtn} ${Y.prevBtn}`,
3590
+ onClick: (v) => {
3591
+ v.stopPropagation(), m();
3592
+ },
3593
+ disabled: o === 0,
3594
+ children: "◀"
3595
+ }
3596
+ ),
3597
+ /* @__PURE__ */ e(
3598
+ "button",
3599
+ {
3600
+ className: `${Y.navBtn} ${Y.nextBtn}`,
3601
+ onClick: (v) => {
3602
+ v.stopPropagation(), h();
3603
+ },
3604
+ disabled: o === n.length - 1,
3605
+ children: "▶"
3606
+ }
3607
+ )
3608
+ ] }),
3609
+ c && n.length > 1 && /* @__PURE__ */ e("div", { className: Y.thumbnails, onClick: (v) => v.stopPropagation(), children: n.map((v, b) => /* @__PURE__ */ e(
3610
+ "button",
3611
+ {
3612
+ className: `${Y.thumbnail} ${b === o ? Y.active : ""}`,
3613
+ onClick: () => f(b),
3614
+ children: /* @__PURE__ */ e("img", { src: v.thumbnail || v.src, alt: "" })
3615
+ },
3616
+ b
3617
+ )) })
3618
+ ] });
3619
+ return Le($, document.body);
3620
+ }
3621
+ zh.displayName = "ImageViewer";
3622
+ const Lh = "_overlay_23pkb_11", jh = "_fadeIn_23pkb_1", Sh = "_drawer_23pkb_47", Dh = "_left_23pkb_77", qh = "_slideInLeft_23pkb_1", Rh = "_right_23pkb_93", Mh = "_slideInRight_23pkb_1", Ah = "_sm_23pkb_151", Wh = "_md_23pkb_159", Eh = "_lg_23pkb_167", Ph = "_full_23pkb_175", Fh = "_header_23pkb_185", Oh = "_title_23pkb_201", Gh = "_closeBtn_23pkb_215", Uh = "_body_23pkb_257", Vh = "_footer_23pkb_271", Hh = "_navMenu_23pkb_283", Yh = "_navItem_23pkb_295", Kh = "_active_23pkb_337", Qh = "_navIcon_23pkb_347", Jh = "_divider_23pkb_357", Xh = "_userSection_23pkb_371", Zh = "_userAvatar_23pkb_391", eg = "_userInfo_23pkb_407", ng = "_userName_23pkb_415", tg = "_userEmail_23pkb_427", Ie = {
3623
+ overlay: Lh,
3624
+ fadeIn: jh,
3625
+ drawer: Sh,
3626
+ left: Dh,
3627
+ slideInLeft: qh,
3628
+ right: Rh,
3629
+ slideInRight: Mh,
3630
+ sm: Ah,
3631
+ md: Wh,
3632
+ lg: Eh,
3633
+ full: Ph,
3634
+ header: Fh,
3635
+ title: Oh,
3636
+ closeBtn: Gh,
3637
+ body: Uh,
3638
+ footer: Vh,
3639
+ navMenu: Hh,
3640
+ navItem: Yh,
3641
+ active: Kh,
3642
+ navIcon: Qh,
3643
+ divider: Jh,
3644
+ userSection: Xh,
3645
+ userAvatar: Zh,
3646
+ userInfo: eg,
3647
+ userName: ng,
3648
+ userEmail: tg
3649
+ };
3650
+ function ag({
3651
+ isOpen: n,
3652
+ position: a = "left",
3653
+ size: s = "md",
3654
+ title: l,
3655
+ showCloseButton: c = !0,
3656
+ closeOnOverlayClick: i = !0,
3657
+ closeOnEscape: r = !0,
3658
+ header: _,
3659
+ footer: o,
3660
+ children: d,
3661
+ onClose: p,
3662
+ className: u = ""
3663
+ }) {
3664
+ if (B(() => {
3665
+ if (!r) return;
3666
+ const f = (g) => {
3667
+ g.key === "Escape" && n && p();
3668
+ };
3669
+ return document.addEventListener("keydown", f), () => document.removeEventListener("keydown", f);
3670
+ }, [n, r, p]), B(() => (n && (document.body.style.overflow = "hidden"), () => {
3671
+ document.body.style.overflow = "";
3672
+ }), [n]), !n) return null;
3673
+ const m = [
3674
+ Ie.drawer,
3675
+ Ie[a],
3676
+ Ie[s],
3677
+ u
3678
+ ].filter(Boolean).join(" "), h = /* @__PURE__ */ t(re, { children: [
3679
+ /* @__PURE__ */ e(
3680
+ "div",
3681
+ {
3682
+ className: Ie.overlay,
3683
+ onClick: i ? p : void 0
3684
+ }
3685
+ ),
3686
+ /* @__PURE__ */ t("div", { className: m, children: [
3687
+ (l || _ || c) && /* @__PURE__ */ t("div", { className: Ie.header, children: [
3688
+ _ || /* @__PURE__ */ e("span", { className: Ie.title, children: l }),
3689
+ c && /* @__PURE__ */ e("button", { className: Ie.closeBtn, onClick: p, children: "✕" })
3690
+ ] }),
3691
+ /* @__PURE__ */ e("div", { className: Ie.body, children: d }),
3692
+ o && /* @__PURE__ */ e("div", { className: Ie.footer, children: o })
3693
+ ] })
3694
+ ] });
3695
+ return Le(h, document.body);
3696
+ }
3697
+ ag.displayName = "Drawer";
3698
+ const sg = "_overlay_1nv17_11", og = "_fadeIn_1nv17_1", cg = "_dialog_1nv17_61", lg = "_scaleIn_1nv17_1", rg = "_iconWrapper_1nv17_111", ig = "_icon_1nv17_111", _g = "_danger_1nv17_151", dg = "_warning_1nv17_161", mg = "_info_1nv17_171", pg = "_success_1nv17_181", ug = "_content_1nv17_193", hg = "_title_1nv17_203", gg = "_message_1nv17_221", fg = "_actions_1nv17_237", vg = "_btn_1nv17_251", bg = "_cancelBtn_1nv17_293", $g = "_confirmBtn_1nv17_311", Ng = "_loading_1nv17_367", K = {
3699
+ overlay: sg,
3700
+ fadeIn: og,
3701
+ dialog: cg,
3702
+ scaleIn: lg,
3703
+ iconWrapper: rg,
3704
+ icon: ig,
3705
+ danger: _g,
3706
+ warning: dg,
3707
+ info: mg,
3708
+ success: pg,
3709
+ content: ug,
3710
+ title: hg,
3711
+ message: gg,
3712
+ actions: fg,
3713
+ btn: vg,
3714
+ cancelBtn: bg,
3715
+ confirmBtn: $g,
3716
+ loading: Ng
3717
+ }, yg = {
3718
+ danger: "⚠️",
3719
+ warning: "❓",
3720
+ info: "ℹ️",
3721
+ success: "✓"
3722
+ }, kg = {
3723
+ danger: "Emin misiniz?",
3724
+ warning: "Dikkat",
3725
+ info: "Bilgi",
3726
+ success: "Onay"
3727
+ };
3728
+ function wg({
3729
+ isOpen: n,
3730
+ variant: a = "danger",
3731
+ title: s,
3732
+ message: l,
3733
+ confirmText: c = "Onayla",
3734
+ cancelText: i = "İptal",
3735
+ loading: r = !1,
3736
+ onConfirm: _,
3737
+ onCancel: o
3738
+ }) {
3739
+ if (B(() => {
3740
+ const u = (m) => {
3741
+ m.key === "Escape" && n && o();
3742
+ };
3743
+ return document.addEventListener("keydown", u), () => document.removeEventListener("keydown", u);
3744
+ }, [n, o]), B(() => (n && (document.body.style.overflow = "hidden"), () => {
3745
+ document.body.style.overflow = "";
3746
+ }), [n]), !n) return null;
3747
+ const d = [
3748
+ K.dialog,
3749
+ r && K.loading
3750
+ ].filter(Boolean).join(" "), p = /* @__PURE__ */ e("div", { className: K.overlay, onClick: o, children: /* @__PURE__ */ t("div", { className: d, onClick: (u) => u.stopPropagation(), children: [
3751
+ /* @__PURE__ */ e("div", { className: K.iconWrapper, children: /* @__PURE__ */ e("span", { className: `${K.icon} ${K[a]}`, children: yg[a] }) }),
3752
+ /* @__PURE__ */ t("div", { className: K.content, children: [
3753
+ /* @__PURE__ */ e("h3", { className: K.title, children: s || kg[a] }),
3754
+ /* @__PURE__ */ e("p", { className: K.message, children: l })
3755
+ ] }),
3756
+ /* @__PURE__ */ t("div", { className: K.actions, children: [
3757
+ /* @__PURE__ */ e("button", { className: `${K.btn} ${K.cancelBtn}`, onClick: o, children: i }),
3758
+ /* @__PURE__ */ e(
3759
+ "button",
3760
+ {
3761
+ className: `${K.btn} ${K.confirmBtn} ${K[a]}`,
3762
+ onClick: _,
3763
+ children: r ? "..." : c
3764
+ }
3765
+ )
3766
+ ] })
3767
+ ] }) });
3768
+ return Le(p, document.body);
3769
+ }
3770
+ wg.displayName = "ConfirmDialog";
3771
+ const Cg = "_scrollToTop_1frqn_11", xg = "_visible_1frqn_67", Bg = "_bottomLeft_1frqn_103", Ig = "_bottomCenter_1frqn_113", Tg = "_sm_1frqn_135", zg = "_lg_1frqn_147", Lg = "_rounded_1frqn_161", jg = "_icon_1frqn_169", Sg = "_withText_1frqn_183", Dg = "_text_1frqn_197", qg = "_withProgress_1frqn_211", Rg = "_progressRing_1frqn_219", Mg = "_progressBg_1frqn_241", Ag = "_progressFill_1frqn_249", ue = {
3772
+ scrollToTop: Cg,
3773
+ visible: xg,
3774
+ bottomLeft: Bg,
3775
+ bottomCenter: Ig,
3776
+ sm: Tg,
3777
+ lg: zg,
3778
+ rounded: Lg,
3779
+ icon: jg,
3780
+ withText: Sg,
3781
+ text: Dg,
3782
+ withProgress: qg,
3783
+ progressRing: Rg,
3784
+ progressBg: Mg,
3785
+ progressFill: Ag
3786
+ };
3787
+ function Wg({
3788
+ showAfter: n = 400,
3789
+ position: a = "bottomRight",
3790
+ size: s = "md",
3791
+ showProgress: l = !1,
3792
+ icon: c = "↑",
3793
+ showText: i = !1,
3794
+ text: r = "Yukarı",
3795
+ smooth: _ = !0,
3796
+ className: o = ""
3797
+ }) {
3798
+ const [d, p] = k(!1), [u, m] = k(0);
3799
+ B(() => {
3800
+ const b = () => {
3801
+ const C = window.scrollY, y = document.documentElement.scrollHeight - window.innerHeight;
3802
+ p(C > n), l && y > 0 && m(C / y * 100);
3803
+ };
3804
+ return window.addEventListener("scroll", b, { passive: !0 }), b(), () => window.removeEventListener("scroll", b);
3805
+ }, [n, l]);
3806
+ const h = () => {
3807
+ window.scrollTo({
3808
+ top: 0,
3809
+ behavior: _ ? "smooth" : "auto"
3810
+ });
3811
+ }, f = [
3812
+ ue.scrollToTop,
3813
+ d && ue.visible,
3814
+ a !== "bottomRight" && ue[a],
3815
+ s !== "md" && ue[s],
3816
+ i && ue.withText,
3817
+ l && ue.withProgress,
3818
+ o
3819
+ ].filter(Boolean).join(" "), g = s === "sm" ? 22 : s === "lg" ? 32 : 27, $ = 2 * Math.PI * g, v = $ - u / 100 * $;
3820
+ return /* @__PURE__ */ t("button", { className: f, onClick: h, "aria-label": "Yukarı git", children: [
3821
+ l && /* @__PURE__ */ t("svg", { className: ue.progressRing, viewBox: "0 0 60 60", children: [
3822
+ /* @__PURE__ */ e("circle", { className: ue.progressBg, cx: "30", cy: "30", r: g }),
3823
+ /* @__PURE__ */ e(
3824
+ "circle",
3825
+ {
3826
+ className: ue.progressFill,
3827
+ cx: "30",
3828
+ cy: "30",
3829
+ r: g,
3830
+ strokeDasharray: $,
3831
+ strokeDashoffset: v
3832
+ }
3833
+ )
3834
+ ] }),
3835
+ /* @__PURE__ */ e("span", { className: ue.icon, children: c }),
3836
+ i && /* @__PURE__ */ e("span", { className: ue.text, children: r })
3837
+ ] });
3838
+ }
3839
+ Wg.displayName = "ScrollToTop";
3840
+ const Eg = "_lazyImage_okdde_11", Pg = "_image_okdde_23", Fg = "_loaded_okdde_41", Og = "_placeholder_okdde_51", Gg = "_placeholderIcon_okdde_71", Ug = "_shimmer_okdde_85", Vg = "_error_okdde_127", Hg = "_errorIcon_okdde_151", Yg = "_errorText_okdde_161", Kg = "_ratio16x9_okdde_175", Qg = "_ratio4x3_okdde_183", Jg = "_ratio1x1_okdde_191", Xg = "_ratio2x3_okdde_199", Zg = "_ratio3x4_okdde_209", ef = "_blurPlaceholder_okdde_219", nf = "_hidden_okdde_243", tf = "_comic_okdde_253", af = "_zoomOnHover_okdde_265", sf = "_rounded_okdde_283", of = "_roundedLg_okdde_291", cf = "_circle_okdde_299", Q = {
3841
+ lazyImage: Eg,
3842
+ image: Pg,
3843
+ loaded: Fg,
3844
+ placeholder: Og,
3845
+ placeholderIcon: Gg,
3846
+ shimmer: Ug,
3847
+ error: Vg,
3848
+ errorIcon: Hg,
3849
+ errorText: Yg,
3850
+ ratio16x9: Kg,
3851
+ ratio4x3: Qg,
3852
+ ratio1x1: Jg,
3853
+ ratio2x3: Xg,
3854
+ ratio3x4: Zg,
3855
+ blurPlaceholder: ef,
3856
+ hidden: nf,
3857
+ comic: tf,
3858
+ zoomOnHover: af,
3859
+ rounded: sf,
3860
+ roundedLg: of,
3861
+ circle: cf
3862
+ };
3863
+ function lf({
3864
+ src: n,
3865
+ alt: a,
3866
+ placeholder: s,
3867
+ ratio: l,
3868
+ rounding: c = "none",
3869
+ comic: i = !1,
3870
+ zoomOnHover: r = !1,
3871
+ width: _,
3872
+ height: o,
3873
+ onLoad: d,
3874
+ onError: p,
3875
+ className: u = "",
3876
+ style: m
3877
+ }) {
3878
+ const [h, f] = k(!1), [g, $] = k(!1), [v, b] = k(!1), C = fe(null);
3879
+ B(() => {
3880
+ const ve = new IntersectionObserver(
3881
+ ([oe]) => {
3882
+ oe.isIntersecting && (b(!0), ve.disconnect());
3883
+ },
3884
+ { rootMargin: "100px" }
3885
+ );
3886
+ return C.current && ve.observe(C.current), () => ve.disconnect();
3887
+ }, []);
3888
+ const y = () => {
3889
+ f(!0), d?.();
3890
+ }, N = () => {
3891
+ $(!0), p?.();
3892
+ }, z = [
3893
+ Q.lazyImage,
3894
+ l && Q[`ratio${l.replace("x", "x")}`],
3895
+ c !== "none" && Q[c],
3896
+ i && Q.comic,
3897
+ r && Q.zoomOnHover,
3898
+ u
3899
+ ].filter(Boolean).join(" "), O = {
3900
+ width: _,
3901
+ height: o,
3902
+ ...m
3903
+ };
3904
+ return /* @__PURE__ */ t("div", { ref: C, className: z, style: O, children: [
3905
+ s && /* @__PURE__ */ e(
3906
+ "div",
3907
+ {
3908
+ className: `${Q.blurPlaceholder} ${h ? Q.hidden : ""}`,
3909
+ style: { backgroundImage: `url(${s})` }
3910
+ }
3911
+ ),
3912
+ !h && !g && !s && /* @__PURE__ */ t("div", { className: Q.placeholder, children: [
3913
+ /* @__PURE__ */ e("span", { className: Q.placeholderIcon, children: "🖼️" }),
3914
+ /* @__PURE__ */ e("div", { className: Q.shimmer })
3915
+ ] }),
3916
+ g && /* @__PURE__ */ t("div", { className: Q.error, children: [
3917
+ /* @__PURE__ */ e("span", { className: Q.errorIcon, children: "⚠️" }),
3918
+ /* @__PURE__ */ e("span", { className: Q.errorText, children: "Yüklenemedi" })
3919
+ ] }),
3920
+ v && !g && /* @__PURE__ */ e(
3921
+ "img",
3922
+ {
3923
+ src: n,
3924
+ alt: a,
3925
+ className: `${Q.image} ${h ? Q.loaded : ""}`,
3926
+ onLoad: y,
3927
+ onError: N
3928
+ }
3929
+ )
3930
+ ] });
3931
+ }
3932
+ lf.displayName = "LazyImage";
3933
+ const rf = "_filterPanel_a9olm_11", _f = "_header_a9olm_29", df = "_title_a9olm_47", mf = "_clearBtn_a9olm_67", pf = "_body_a9olm_101", uf = "_filterGroup_a9olm_111", hf = "_filterLabel_a9olm_127", gf = "_chipGroup_a9olm_147", ff = "_chip_a9olm_147", vf = "_selected_a9olm_191", bf = "_collapsible_a9olm_235", $f = "_collapseIcon_a9olm_249", Nf = "_open_a9olm_259", yf = "_collapsibleContent_a9olm_267", kf = "_footer_a9olm_289", wf = "_applyBtn_a9olm_303", Cf = "_horizontal_a9olm_345", P = {
3934
+ filterPanel: rf,
3935
+ header: _f,
3936
+ title: df,
3937
+ clearBtn: mf,
3938
+ body: pf,
3939
+ filterGroup: uf,
3940
+ filterLabel: hf,
3941
+ chipGroup: gf,
3942
+ chip: ff,
3943
+ selected: vf,
3944
+ collapsible: bf,
3945
+ collapseIcon: $f,
3946
+ open: Nf,
3947
+ collapsibleContent: yf,
3948
+ footer: kf,
3949
+ applyBtn: wf,
3950
+ horizontal: Cf
3951
+ };
3952
+ function xf({
3953
+ groups: n,
3954
+ values: a = {},
3955
+ showClear: s = !0,
3956
+ showApply: l = !1,
3957
+ horizontal: c = !1,
3958
+ title: i = "🔎 Filtreler",
3959
+ footer: r,
3960
+ onChange: _,
3961
+ onApply: o,
3962
+ onClear: d,
3963
+ className: p = ""
3964
+ }) {
3965
+ const [u, m] = k(a), [h, f] = k(new Set(n.map((y) => y.id))), g = (y, N, z) => {
3966
+ const O = u[y];
3967
+ let ve;
3968
+ if (z) {
3969
+ const en = Array.isArray(O) ? O.filter((nn) => typeof nn == "string") : O && typeof O == "string" ? [O] : [];
3970
+ ve = en.includes(N) ? en.filter((nn) => nn !== N) : [...en, N];
3971
+ } else
3972
+ ve = O === N ? "" : N;
3973
+ const oe = { ...u, [y]: ve };
3974
+ m(oe), _?.(oe);
3975
+ }, $ = (y) => {
3976
+ const N = new Set(h);
3977
+ N.has(y) ? N.delete(y) : N.add(y), f(N);
3978
+ }, v = () => {
3979
+ m({}), d?.(), _?.({});
3980
+ }, b = (y, N) => {
3981
+ const z = u[y];
3982
+ return Array.isArray(z) ? z.includes(N) : z === N;
3983
+ }, C = [
3984
+ P.filterPanel,
3985
+ c && P.horizontal,
3986
+ p
3987
+ ].filter(Boolean).join(" ");
3988
+ return /* @__PURE__ */ t("div", { className: C, children: [
3989
+ /* @__PURE__ */ t("div", { className: P.header, children: [
3990
+ /* @__PURE__ */ e("span", { className: P.title, children: i }),
3991
+ s && Object.keys(u).length > 0 && /* @__PURE__ */ e("button", { className: P.clearBtn, onClick: v, children: "Temizle" })
3992
+ ] }),
3993
+ /* @__PURE__ */ e("div", { className: P.body, children: n.map((y) => /* @__PURE__ */ t(
3994
+ "div",
3995
+ {
3996
+ className: `${P.filterGroup} ${y.collapsible ? P.collapsible : ""} ${h.has(y.id) ? P.open : ""}`,
3997
+ children: [
3998
+ /* @__PURE__ */ t(
3999
+ "label",
4000
+ {
4001
+ className: P.filterLabel,
4002
+ onClick: y.collapsible ? () => $(y.id) : void 0,
4003
+ children: [
4004
+ y.label,
4005
+ y.collapsible && /* @__PURE__ */ e("span", { className: P.collapseIcon, children: "▼" })
4006
+ ]
4007
+ }
4008
+ ),
4009
+ /* @__PURE__ */ e("div", { className: y.collapsible ? P.collapsibleContent : void 0, children: y.type === "chips" && y.options && /* @__PURE__ */ e("div", { className: P.chipGroup, children: y.options.map((N) => /* @__PURE__ */ e(
4010
+ "button",
4011
+ {
4012
+ className: `${P.chip} ${b(y.id, N.value) ? P.selected : ""}`,
4013
+ onClick: () => g(y.id, N.value, y.multiple),
4014
+ children: N.label
4015
+ },
4016
+ N.value
4017
+ )) }) })
4018
+ ]
4019
+ },
4020
+ y.id
4021
+ )) }),
4022
+ (l || r) && /* @__PURE__ */ t("div", { className: P.footer, children: [
4023
+ r,
4024
+ l && /* @__PURE__ */ e(
4025
+ "button",
4026
+ {
4027
+ className: P.applyBtn,
4028
+ onClick: () => o?.(u),
4029
+ children: "Uygula"
4030
+ }
4031
+ )
4032
+ ] })
4033
+ ] });
4034
+ }
4035
+ xf.displayName = "FilterPanel";
4036
+ const Bf = "_sortSelector_599zq_11", If = "_trigger_599zq_21", Tf = "_open_599zq_67", zf = "_icon_599zq_75", Lf = "_arrow_599zq_83", jf = "_dropdown_599zq_103", Sf = "_option_599zq_131", Df = "_selected_599zq_177", qf = "_checkmark_599zq_187", Rf = "_compact_599zq_199", Mf = "_iconOnly_599zq_211", Af = "_currentLabel_599zq_225", ce = {
4037
+ sortSelector: Bf,
4038
+ trigger: If,
4039
+ open: Tf,
4040
+ icon: zf,
4041
+ arrow: Lf,
4042
+ dropdown: jf,
4043
+ option: Sf,
4044
+ selected: Df,
4045
+ checkmark: qf,
4046
+ compact: Rf,
4047
+ iconOnly: Mf,
4048
+ currentLabel: Af
4049
+ };
4050
+ function Wf({
4051
+ options: n,
4052
+ value: a,
4053
+ placeholder: s = "Sırala",
4054
+ icon: l = "↕️",
4055
+ compact: c = !1,
4056
+ iconOnly: i = !1,
4057
+ onChange: r,
4058
+ className: _ = ""
4059
+ }) {
4060
+ const [o, d] = k(!1), p = fe(null);
4061
+ B(() => {
4062
+ const f = (g) => {
4063
+ p.current && !p.current.contains(g.target) && d(!1);
4064
+ };
4065
+ return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
4066
+ }, []);
4067
+ const u = n.find((f) => f.value === a), m = (f) => {
4068
+ r?.(f), d(!1);
4069
+ }, h = [
4070
+ ce.sortSelector,
4071
+ c && ce.compact,
4072
+ i && ce.iconOnly,
4073
+ _
4074
+ ].filter(Boolean).join(" ");
4075
+ return /* @__PURE__ */ t("div", { ref: p, className: h, children: [
4076
+ /* @__PURE__ */ t(
4077
+ "button",
4078
+ {
4079
+ className: `${ce.trigger} ${o ? ce.open : ""}`,
4080
+ onClick: () => d(!o),
4081
+ children: [
4082
+ /* @__PURE__ */ e("span", { className: ce.icon, children: l }),
4083
+ /* @__PURE__ */ e("span", { className: ce.currentLabel, children: u?.label || s }),
4084
+ /* @__PURE__ */ e("span", { className: ce.arrow, children: "▼" })
4085
+ ]
4086
+ }
4087
+ ),
4088
+ o && /* @__PURE__ */ e("div", { className: ce.dropdown, children: n.map((f) => /* @__PURE__ */ t(
4089
+ "button",
4090
+ {
4091
+ className: `${ce.option} ${a === f.value ? ce.selected : ""}`,
4092
+ onClick: () => m(f.value),
4093
+ children: [
4094
+ /* @__PURE__ */ t("span", { children: [
4095
+ f.icon && /* @__PURE__ */ t("span", { children: [
4096
+ f.icon,
4097
+ " "
4098
+ ] }),
4099
+ f.label
4100
+ ] }),
4101
+ a === f.value && /* @__PURE__ */ e("span", { className: ce.checkmark, children: "✓" })
4102
+ ]
4103
+ },
4104
+ f.value
4105
+ )) })
4106
+ ] });
4107
+ }
4108
+ Wf.displayName = "SortSelector";
4109
+ const Ef = "_overlay_1i5l5_11", Pf = "_fadeIn_1i5l5_1", Ff = "_spinner_1i5l5_65", Of = "_spin_1i5l5_65", Gf = "_message_1i5l5_105", Uf = "_pulse_1i5l5_1", Vf = "_progress_1i5l5_149", Hf = "_progressBar_1i5l5_165", Yf = "_progressText_1i5l5_179", Kf = "_logo_1i5l5_193", Qf = "_bounce_1i5l5_1", Jf = "_comic_1i5l5_231", Xf = "_dots_1i5l5_257", Zf = "_dot_1i5l5_257", ev = "_dotBounce_1i5l5_1", nv = "_mangaLoader_1i5l5_337", tv = "_mangaPages_1i5l5_351", av = "_mangaPage_1i5l5_351", sv = "_pageFlip_1i5l5_1", F = {
4110
+ overlay: Ef,
4111
+ fadeIn: Pf,
4112
+ spinner: Ff,
4113
+ spin: Of,
4114
+ message: Gf,
4115
+ pulse: Uf,
4116
+ progress: Vf,
4117
+ progressBar: Hf,
4118
+ progressText: Yf,
4119
+ logo: Kf,
4120
+ bounce: Qf,
4121
+ comic: Jf,
4122
+ dots: Xf,
4123
+ dot: Zf,
4124
+ dotBounce: ev,
4125
+ mangaLoader: nv,
4126
+ mangaPages: tv,
4127
+ mangaPage: av,
4128
+ pageFlip: sv
4129
+ };
4130
+ function ov({
4131
+ isVisible: n,
4132
+ variant: a = "default",
4133
+ message: s = "Yükleniyor...",
4134
+ logo: l,
4135
+ showProgress: c = !1,
4136
+ progress: i = 0
4137
+ }) {
4138
+ if (B(() => (n && (document.body.style.overflow = "hidden"), () => {
4139
+ document.body.style.overflow = "";
4140
+ }), [n]), !n) return null;
4141
+ const r = [
4142
+ F.overlay,
4143
+ a !== "default" && F[a]
4144
+ ].filter(Boolean).join(" "), _ = /* @__PURE__ */ t("div", { className: r, children: [
4145
+ l && /* @__PURE__ */ e("span", { className: F.logo, children: l }),
4146
+ a === "dots" ? /* @__PURE__ */ t("div", { className: F.dots, children: [
4147
+ /* @__PURE__ */ e("span", { className: F.dot }),
4148
+ /* @__PURE__ */ e("span", { className: F.dot }),
4149
+ /* @__PURE__ */ e("span", { className: F.dot })
4150
+ ] }) : a === "manga" ? /* @__PURE__ */ e("div", { className: F.mangaLoader, children: /* @__PURE__ */ t("div", { className: F.mangaPages, children: [
4151
+ /* @__PURE__ */ e("span", { className: F.mangaPage }),
4152
+ /* @__PURE__ */ e("span", { className: F.mangaPage }),
4153
+ /* @__PURE__ */ e("span", { className: F.mangaPage })
4154
+ ] }) }) : /* @__PURE__ */ e("div", { className: F.spinner }),
4155
+ s && /* @__PURE__ */ e("p", { className: F.message, children: s }),
4156
+ c && /* @__PURE__ */ t(re, { children: [
4157
+ /* @__PURE__ */ e("div", { className: F.progress, children: /* @__PURE__ */ e(
4158
+ "div",
4159
+ {
4160
+ className: F.progressBar,
4161
+ style: { width: `${i}%` }
4162
+ }
4163
+ ) }),
4164
+ /* @__PURE__ */ t("span", { className: F.progressText, children: [
4165
+ Math.round(i),
4166
+ "%"
4167
+ ] })
4168
+ ] })
4169
+ ] });
4170
+ return Le(_, document.body);
4171
+ }
4172
+ ov.displayName = "LoadingOverlay";
4173
+ const cv = "_fab_1bemw_11", lv = "_bottomRight_1bemw_79", rv = "_bottomLeft_1bemw_89", iv = "_bottomCenter_1bemw_99", _v = "_topRight_1bemw_111", dv = "_topLeft_1bemw_121", mv = "_sm_1bemw_133", pv = "_lg_1bemw_145", uv = "_extended_1bemw_159", hv = "_label_1bemw_173", gv = "_primary_1bemw_187", fv = "_secondary_1bemw_195", vv = "_success_1bemw_205", bv = "_danger_1bemw_213", $v = "_warning_1bemw_221", Nv = "_info_1bemw_231", yv = "_pulse_1bemw_241", kv = "_fabPulse_1bemw_1", wv = "_menu_1bemw_285", Cv = "_open_1bemw_309", xv = "_menuItem_1bemw_321", Bv = "_menuIcon_1bemw_371", Iv = "_rotateOnOpen_1bemw_381", Tv = "_icon_1bemw_381", te = {
4174
+ fab: cv,
4175
+ bottomRight: lv,
4176
+ bottomLeft: rv,
4177
+ bottomCenter: iv,
4178
+ topRight: _v,
4179
+ topLeft: dv,
4180
+ sm: mv,
4181
+ lg: pv,
4182
+ extended: uv,
4183
+ label: hv,
4184
+ primary: gv,
4185
+ secondary: fv,
4186
+ success: vv,
4187
+ danger: bv,
4188
+ warning: $v,
4189
+ info: Nv,
4190
+ pulse: yv,
4191
+ fabPulse: kv,
4192
+ menu: wv,
4193
+ open: Cv,
4194
+ menuItem: xv,
4195
+ menuIcon: Bv,
4196
+ rotateOnOpen: Iv,
4197
+ icon: Tv
4198
+ };
4199
+ function zv({
4200
+ icon: n,
4201
+ label: a,
4202
+ position: s = "bottomRight",
4203
+ size: l = "md",
4204
+ color: c = "primary",
4205
+ extended: i = !1,
4206
+ pulse: r = !1,
4207
+ menuItems: _,
4208
+ onClick: o,
4209
+ className: d = ""
4210
+ }) {
4211
+ const [p, u] = k(!1), m = () => {
4212
+ _ && _.length > 0 ? u(!p) : o?.();
4213
+ }, h = (g) => {
4214
+ g.onClick?.(), u(!1);
4215
+ }, f = [
4216
+ te.fab,
4217
+ te[s],
4218
+ l !== "md" && te[l],
4219
+ te[c],
4220
+ i && te.extended,
4221
+ r && te.pulse,
4222
+ _ && te.rotateOnOpen,
4223
+ p && te.open,
4224
+ d
4225
+ ].filter(Boolean).join(" ");
4226
+ return /* @__PURE__ */ t("button", { className: f, onClick: m, children: [
4227
+ _ && _.length > 0 && /* @__PURE__ */ e("div", { className: te.menu, children: _.map((g, $) => /* @__PURE__ */ t(
4228
+ "button",
4229
+ {
4230
+ className: te.menuItem,
4231
+ onClick: (v) => {
4232
+ v.stopPropagation(), h(g);
4233
+ },
4234
+ children: [
4235
+ /* @__PURE__ */ e("span", { className: te.menuIcon, children: g.icon }),
4236
+ g.label
4237
+ ]
4238
+ },
4239
+ $
4240
+ )) }),
4241
+ /* @__PURE__ */ e("span", { className: te.icon, children: n }),
4242
+ a && i && /* @__PURE__ */ e("span", { className: te.label, children: a })
4243
+ ] });
4244
+ }
4245
+ zv.displayName = "FloatingActionButton";
4246
+ const Lv = "_overlay_6ehxf_11", jv = "_fadeIn_6ehxf_1", Sv = "_sheet_6ehxf_47", Dv = "_slideUp_6ehxf_1", qv = "_handle_6ehxf_109", Rv = "_handleBar_6ehxf_123", Mv = "_header_6ehxf_139", Av = "_title_6ehxf_155", Wv = "_closeBtn_6ehxf_169", Ev = "_body_6ehxf_209", Pv = "_footer_6ehxf_223", Fv = "_sm_6ehxf_235", Ov = "_md_6ehxf_243", Gv = "_lg_6ehxf_251", Uv = "_full_6ehxf_259", Vv = "_menuList_6ehxf_271", Hv = "_menuItem_6ehxf_283", Yv = "_menuIcon_6ehxf_337", Kv = "_menuDivider_6ehxf_345", Qv = "_destructive_6ehxf_359", ye = {
4247
+ overlay: Lv,
4248
+ fadeIn: jv,
4249
+ sheet: Sv,
4250
+ slideUp: Dv,
4251
+ handle: qv,
4252
+ handleBar: Rv,
4253
+ header: Mv,
4254
+ title: Av,
4255
+ closeBtn: Wv,
4256
+ body: Ev,
4257
+ footer: Pv,
4258
+ sm: Fv,
4259
+ md: Ov,
4260
+ lg: Gv,
4261
+ full: Uv,
4262
+ menuList: Vv,
4263
+ menuItem: Hv,
4264
+ menuIcon: Yv,
4265
+ menuDivider: Kv,
4266
+ destructive: Qv
4267
+ };
4268
+ function Jv({
4269
+ isOpen: n,
4270
+ size: a = "md",
4271
+ title: s,
4272
+ showHandle: l = !0,
4273
+ showCloseButton: c = !0,
4274
+ closeOnOverlayClick: i = !0,
4275
+ footer: r,
4276
+ children: _,
4277
+ onClose: o,
4278
+ className: d = ""
4279
+ }) {
4280
+ if (B(() => {
4281
+ const m = (h) => {
4282
+ h.key === "Escape" && n && o();
4283
+ };
4284
+ return document.addEventListener("keydown", m), () => document.removeEventListener("keydown", m);
4285
+ }, [n, o]), B(() => (n && (document.body.style.overflow = "hidden"), () => {
4286
+ document.body.style.overflow = "";
4287
+ }), [n]), !n) return null;
4288
+ const p = [
4289
+ ye.sheet,
4290
+ ye[a],
4291
+ d
4292
+ ].filter(Boolean).join(" "), u = /* @__PURE__ */ t(re, { children: [
4293
+ /* @__PURE__ */ e(
4294
+ "div",
4295
+ {
4296
+ className: ye.overlay,
4297
+ onClick: i ? o : void 0
4298
+ }
4299
+ ),
4300
+ /* @__PURE__ */ t("div", { className: p, children: [
4301
+ l && /* @__PURE__ */ e("div", { className: ye.handle, children: /* @__PURE__ */ e("div", { className: ye.handleBar }) }),
4302
+ (s || c) && /* @__PURE__ */ t("div", { className: ye.header, children: [
4303
+ /* @__PURE__ */ e("span", { className: ye.title, children: s }),
4304
+ c && /* @__PURE__ */ e("button", { className: ye.closeBtn, onClick: o, children: "✕" })
4305
+ ] }),
4306
+ /* @__PURE__ */ e("div", { className: ye.body, children: _ }),
4307
+ r && /* @__PURE__ */ e("div", { className: ye.footer, children: r })
4308
+ ] })
4309
+ ] });
4310
+ return Le(u, document.body);
4311
+ }
4312
+ Jv.displayName = "BottomSheet";
4313
+ const Xv = "_marquee_xooub_11", Zv = "_content_xooub_33", eb = "_scroll_xooub_1", nb = "_item_xooub_79", tb = "_itemIcon_xooub_101", ab = "_separator_xooub_109", sb = "_primary_xooub_121", ob = "_warning_xooub_139", cb = "_info_xooub_157", lb = "_fade_xooub_177", rb = "_comic_xooub_237", ib = "_clickable_xooub_257", We = {
4314
+ marquee: Xv,
4315
+ content: Zv,
4316
+ scroll: eb,
4317
+ item: nb,
4318
+ itemIcon: tb,
4319
+ separator: ab,
4320
+ primary: sb,
4321
+ warning: ob,
4322
+ info: cb,
4323
+ fade: lb,
4324
+ comic: rb,
4325
+ clickable: ib
4326
+ };
4327
+ function _b({
4328
+ items: n,
4329
+ variant: a = "default",
4330
+ duration: s = 20,
4331
+ pauseOnHover: l = !0,
4332
+ fadeEdges: c = !0,
4333
+ separator: i = "•",
4334
+ onItemClick: r,
4335
+ className: _ = ""
4336
+ }) {
4337
+ const o = [...n, ...n], d = [
4338
+ We.marquee,
4339
+ a !== "default" && We[a],
4340
+ c && We.fade,
4341
+ r && We.clickable,
4342
+ _
4343
+ ].filter(Boolean).join(" "), p = {
4344
+ "--duration": `${s}s`,
4345
+ "--pause-on-hover": l ? "paused" : "running"
4346
+ }, u = (m) => {
4347
+ m.href && window.open(m.href, "_blank"), r?.(m);
4348
+ };
4349
+ return /* @__PURE__ */ e("div", { className: d, children: /* @__PURE__ */ e("div", { className: We.content, style: p, children: o.map((m, h) => /* @__PURE__ */ t("span", { children: [
4350
+ /* @__PURE__ */ t(
4351
+ "span",
4352
+ {
4353
+ className: We.item,
4354
+ onClick: r ? () => u(m) : void 0,
4355
+ style: { cursor: r || m.href ? "pointer" : "default" },
4356
+ children: [
4357
+ m.icon && /* @__PURE__ */ e("span", { className: We.itemIcon, children: m.icon }),
4358
+ m.text
4359
+ ]
4360
+ }
4361
+ ),
4362
+ /* @__PURE__ */ t("span", { className: We.separator, children: [
4363
+ " ",
4364
+ i,
4365
+ " "
4366
+ ] })
4367
+ ] }, h)) }) });
4368
+ }
4369
+ _b.displayName = "Marquee";
4370
+ const db = "_cookieConsent_t8leq_11", mb = "_slideUp_t8leq_1", pb = "_content_t8leq_73", ub = "_icon_t8leq_87", hb = "_text_t8leq_95", gb = "_link_t8leq_109", fb = "_actions_t8leq_131", vb = "_btn_t8leq_143", bb = "_rejectBtn_t8leq_183", $b = "_acceptBtn_t8leq_193", Nb = "_settingsBtn_t8leq_203", yb = "_compact_t8leq_231", kb = "_floating_t8leq_257", ae = {
4371
+ cookieConsent: db,
4372
+ slideUp: mb,
4373
+ content: pb,
4374
+ icon: ub,
4375
+ text: hb,
4376
+ link: gb,
4377
+ actions: fb,
4378
+ btn: vb,
4379
+ rejectBtn: bb,
4380
+ acceptBtn: $b,
4381
+ settingsBtn: Nb,
4382
+ compact: yb,
4383
+ floating: kb
4384
+ };
4385
+ function wb({
4386
+ variant: n = "default",
4387
+ message: a = "Bu site çerezleri kullanmaktadır. Sitemizi kullanarak çerez politikamızı kabul etmiş olursunuz.",
4388
+ privacyLink: s,
4389
+ privacyText: l = "Gizlilik Politikası",
4390
+ acceptText: c = "Kabul Et",
4391
+ rejectText: i = "Reddet",
4392
+ showSettings: r = !1,
4393
+ settingsText: _ = "Ayarlar",
4394
+ storageKey: o = "cookie-consent",
4395
+ onAccept: d,
4396
+ onReject: p,
4397
+ onSettings: u,
4398
+ className: m = ""
4399
+ }) {
4400
+ const [h, f] = k(!1);
4401
+ B(() => {
4402
+ localStorage.getItem(o) || f(!0);
4403
+ }, [o]);
4404
+ const g = () => {
4405
+ localStorage.setItem(o, "accepted"), f(!1), d?.();
4406
+ }, $ = () => {
4407
+ localStorage.setItem(o, "rejected"), f(!1), p?.();
4408
+ };
4409
+ if (!h) return null;
4410
+ const v = [
4411
+ ae.cookieConsent,
4412
+ n !== "default" && ae[n],
4413
+ m
4414
+ ].filter(Boolean).join(" "), b = /* @__PURE__ */ t("div", { className: v, children: [
4415
+ /* @__PURE__ */ t("div", { className: ae.content, children: [
4416
+ /* @__PURE__ */ e("span", { className: ae.icon, children: "🍪" }),
4417
+ /* @__PURE__ */ t("p", { className: ae.text, children: [
4418
+ a,
4419
+ s && /* @__PURE__ */ t(re, { children: [
4420
+ " ",
4421
+ /* @__PURE__ */ e("a", { href: s, className: ae.link, target: "_blank", rel: "noopener noreferrer", children: l })
4422
+ ] })
4423
+ ] })
4424
+ ] }),
4425
+ /* @__PURE__ */ t("div", { className: ae.actions, children: [
4426
+ r && /* @__PURE__ */ e("button", { className: `${ae.btn} ${ae.settingsBtn}`, onClick: u, children: _ }),
4427
+ /* @__PURE__ */ e("button", { className: `${ae.btn} ${ae.rejectBtn}`, onClick: $, children: i }),
4428
+ /* @__PURE__ */ e("button", { className: `${ae.btn} ${ae.acceptBtn}`, onClick: g, children: c })
4429
+ ] })
4430
+ ] });
4431
+ return Le(b, document.body);
4432
+ }
4433
+ wb.displayName = "CookieConsent";
4434
+ const Cb = "_countdown_15r7u_11", xb = "_unit_15r7u_25", Bb = "_value_15r7u_51", Ib = "_label_15r7u_67", Tb = "_separator_15r7u_85", zb = "_blink_15r7u_1", Lb = "_compact_15r7u_127", jb = "_inline_15r7u_163", Sb = "_card_15r7u_211", Db = "_units_15r7u_233", qb = "_cardTitle_15r7u_243", Rb = "_urgent_15r7u_261", Mb = "_urgentPulse_15r7u_1", Ab = "_expired_15r7u_297", Wb = "_expiredText_15r7u_305", he = {
4435
+ countdown: Cb,
4436
+ unit: xb,
4437
+ value: Bb,
4438
+ label: Ib,
4439
+ separator: Tb,
4440
+ blink: zb,
4441
+ compact: Lb,
4442
+ inline: jb,
4443
+ card: Sb,
4444
+ units: Db,
4445
+ cardTitle: qb,
4446
+ urgent: Rb,
4447
+ urgentPulse: Mb,
4448
+ expired: Ab,
4449
+ expiredText: Wb
4450
+ };
4451
+ function mn(n) {
4452
+ const a = n.getTime() - Date.now();
4453
+ return a <= 0 ? { days: 0, hours: 0, minutes: 0, seconds: 0, total: 0 } : {
4454
+ days: Math.floor(a / (1e3 * 60 * 60 * 24)),
4455
+ hours: Math.floor(a / (1e3 * 60 * 60) % 24),
4456
+ minutes: Math.floor(a / (1e3 * 60) % 60),
4457
+ seconds: Math.floor(a / 1e3 % 60),
4458
+ total: a
4459
+ };
4460
+ }
4461
+ function Eb({
4462
+ targetDate: n,
4463
+ variant: a = "default",
4464
+ title: s,
4465
+ showDays: l = !0,
4466
+ showHours: c = !0,
4467
+ showMinutes: i = !0,
4468
+ showSeconds: r = !0,
4469
+ showSeparator: _ = !0,
4470
+ expiredText: o = "Süre Doldu!",
4471
+ onExpire: d,
4472
+ className: p = ""
4473
+ }) {
4474
+ const u = typeof n == "string" ? new Date(n) : n, [m, h] = k(mn(u)), [f, g] = k(!1);
4475
+ B(() => {
4476
+ const N = setInterval(() => {
4477
+ const z = mn(u);
4478
+ h(z), z.total <= 0 && !f && (g(!0), d?.(), clearInterval(N));
4479
+ }, 1e3);
4480
+ return () => clearInterval(N);
4481
+ }, [u, f, d]);
4482
+ const $ = m.total > 0 && m.total < 36e5, v = [
4483
+ he.countdown,
4484
+ a !== "default" && he[a],
4485
+ $ && he.urgent,
4486
+ f && he.expired,
4487
+ p
4488
+ ].filter(Boolean).join(" "), b = (N) => N.toString().padStart(2, "0");
4489
+ if (f)
4490
+ return /* @__PURE__ */ e("div", { className: v, children: /* @__PURE__ */ e("span", { className: he.expiredText, children: o }) });
4491
+ const C = [];
4492
+ l && m.days > 0 && C.push({ value: m.days, label: "Gün" }), c && C.push({ value: m.hours, label: "Saat" }), i && C.push({ value: m.minutes, label: "Dakika" }), r && C.push({ value: m.seconds, label: "Saniye" });
4493
+ const y = /* @__PURE__ */ e(re, { children: C.map((N, z) => /* @__PURE__ */ t("span", { children: [
4494
+ /* @__PURE__ */ t("span", { className: he.unit, children: [
4495
+ /* @__PURE__ */ e("span", { className: he.value, children: b(N.value) }),
4496
+ /* @__PURE__ */ e("span", { className: he.label, children: N.label })
4497
+ ] }),
4498
+ _ && z < C.length - 1 && /* @__PURE__ */ e("span", { className: he.separator, children: ":" })
4499
+ ] }, N.label)) });
4500
+ return a === "card" ? /* @__PURE__ */ t("div", { className: v, children: [
4501
+ s && /* @__PURE__ */ e("span", { className: he.cardTitle, children: s }),
4502
+ /* @__PURE__ */ e("div", { className: he.units, children: y })
4503
+ ] }) : /* @__PURE__ */ e("div", { className: v, children: y });
4504
+ }
4505
+ Eb.displayName = "CountdownTimer";
4506
+ const Pb = "_avatarFrame_1scl5_1", Fb = "_clickable_1scl5_27", Ob = "_avatarContent_1scl5_37", Gb = "_avatarImage_1scl5_63", Ub = "_initials_1scl5_75", Vb = "_frameRing_1scl5_91", Hb = "_basic_1scl5_107", Yb = "_bronze_1scl5_115", Kb = "_silver_1scl5_133", Qb = "_gold_1scl5_153", Jb = "_diamond_1scl5_173", Xb = "_legendary_1scl5_193", Zb = "_rainbowBorder_1scl5_1", e$ = "_anim_pulse_1scl5_219", n$ = "_pulse_1scl5_1", t$ = "_anim_rotate_1scl5_227", a$ = "_rotate_1scl5_1", s$ = "_anim_rainbow_1scl5_235", o$ = "_particle_1scl5_317", c$ = "_particleFloat_1scl5_1", l$ = "_levelBadge_1scl5_449", r$ = "_premiumBadge_1scl5_487", i$ = "_onlineStatus_1scl5_507", _$ = "_online_1scl5_507", d$ = "_offline_1scl5_539", j = {
4507
+ avatarFrame: Pb,
4508
+ clickable: Fb,
4509
+ avatarContent: Ob,
4510
+ avatarImage: Gb,
4511
+ initials: Ub,
4512
+ frameRing: Vb,
4513
+ basic: Hb,
4514
+ bronze: Yb,
4515
+ silver: Kb,
4516
+ gold: Qb,
4517
+ diamond: Jb,
4518
+ legendary: Xb,
4519
+ rainbowBorder: Zb,
4520
+ anim_pulse: e$,
4521
+ pulse: n$,
4522
+ anim_rotate: t$,
4523
+ rotate: a$,
4524
+ anim_rainbow: s$,
4525
+ particle: o$,
4526
+ particleFloat: c$,
4527
+ levelBadge: l$,
4528
+ premiumBadge: r$,
4529
+ onlineStatus: i$,
4530
+ online: _$,
4531
+ offline: d$
4532
+ }, m$ = {
4533
+ none: { primary: "transparent", secondary: "transparent" },
4534
+ basic: { primary: "#52525b", secondary: "#3f3f46" },
4535
+ bronze: { primary: "#cd7f32", secondary: "#8b4513" },
4536
+ silver: { primary: "#c0c0c0", secondary: "#808080" },
4537
+ gold: { primary: "#ffd700", secondary: "#daa520" },
4538
+ diamond: { primary: "#b9f2ff", secondary: "#00bfff" },
4539
+ legendary: { primary: "#ff6b6b", secondary: "#9b59b6" }
4540
+ };
4541
+ function p$({
4542
+ children: n,
4543
+ src: a,
4544
+ name: s,
4545
+ frame: l = "none",
4546
+ animation: c = "none",
4547
+ size: i = 80,
4548
+ level: r,
4549
+ isPremium: _ = !1,
4550
+ isOnline: o,
4551
+ className: d = "",
4552
+ onClick: p
4553
+ }) {
4554
+ const u = s ? s.split(" ").map((f) => f[0]).join("").toUpperCase().slice(0, 2) : "?", m = [
4555
+ j.avatarFrame,
4556
+ l !== "none" && j[l],
4557
+ c !== "none" && j[`anim_${c}`],
4558
+ p && j.clickable,
4559
+ d
4560
+ ].filter(Boolean).join(" "), h = m$[l];
4561
+ return /* @__PURE__ */ t(
4562
+ "div",
4563
+ {
4564
+ className: m,
4565
+ style: {
4566
+ "--frame-size": `${i}px`,
4567
+ "--frame-primary": h.primary,
4568
+ "--frame-secondary": h.secondary
4569
+ },
4570
+ onClick: p,
4571
+ children: [
4572
+ l !== "none" && /* @__PURE__ */ e("div", { className: j.frameRing, children: c === "particles" && /* @__PURE__ */ t(re, { children: [
4573
+ /* @__PURE__ */ e("span", { className: j.particle, style: { "--i": 0 } }),
4574
+ /* @__PURE__ */ e("span", { className: j.particle, style: { "--i": 1 } }),
4575
+ /* @__PURE__ */ e("span", { className: j.particle, style: { "--i": 2 } }),
4576
+ /* @__PURE__ */ e("span", { className: j.particle, style: { "--i": 3 } }),
4577
+ /* @__PURE__ */ e("span", { className: j.particle, style: { "--i": 4 } }),
4578
+ /* @__PURE__ */ e("span", { className: j.particle, style: { "--i": 5 } }),
4579
+ /* @__PURE__ */ e("span", { className: j.particle, style: { "--i": 6 } }),
4580
+ /* @__PURE__ */ e("span", { className: j.particle, style: { "--i": 7 } })
4581
+ ] }) }),
4582
+ /* @__PURE__ */ e("div", { className: j.avatarContent, children: a ? /* @__PURE__ */ e("img", { src: a, alt: s || "Avatar", className: j.avatarImage }) : n || /* @__PURE__ */ e("span", { className: j.initials, children: u }) }),
4583
+ r !== void 0 && /* @__PURE__ */ e("div", { className: j.levelBadge, children: /* @__PURE__ */ e("span", { children: r }) }),
4584
+ _ && /* @__PURE__ */ e("div", { className: j.premiumBadge, children: "💎" }),
4585
+ o !== void 0 && /* @__PURE__ */ e("div", { className: `${j.onlineStatus} ${o ? j.online : j.offline}` })
4586
+ ]
4587
+ }
4588
+ );
4589
+ }
4590
+ p$.displayName = "AvatarFrame";
4591
+ const u$ = "_animatedBackground_ur98v_1", h$ = "_paused_ur98v_27", g$ = "_backgroundLayer_ur98v_35", f$ = "_content_ur98v_47", v$ = "_particles_ur98v_61", b$ = "_particle_ur98v_61", $$ = "_particleFloat_ur98v_1", N$ = "_stars_ur98v_127", y$ = "_starTwinkle_ur98v_1", k$ = "_fire_ur98v_175", w$ = "_fireRise_ur98v_1", C$ = "_ice_ur98v_219", x$ = "_iceFall_ur98v_1", B$ = "_galaxy_ur98v_279", I$ = "_galaxySpin_ur98v_1", T$ = "_matrix_ur98v_317", z$ = "_matrixFall_ur98v_1", L$ = "_waves_ur98v_375", j$ = "_wave_ur98v_375", S$ = "_waveMove_ur98v_1", D$ = "_aurora_ur98v_437", q$ = "_auroraLayer_ur98v_445", R$ = "_auroraWave_ur98v_1", Ee = {
4592
+ animatedBackground: u$,
4593
+ paused: h$,
4594
+ backgroundLayer: g$,
4595
+ content: f$,
4596
+ particles: v$,
4597
+ particle: b$,
4598
+ particleFloat: $$,
4599
+ stars: N$,
4600
+ starTwinkle: y$,
4601
+ fire: k$,
4602
+ fireRise: w$,
4603
+ ice: C$,
4604
+ iceFall: x$,
4605
+ galaxy: B$,
4606
+ galaxySpin: I$,
4607
+ matrix: T$,
4608
+ matrixFall: z$,
4609
+ waves: L$,
4610
+ wave: j$,
4611
+ waveMove: S$,
4612
+ aurora: D$,
4613
+ auroraLayer: q$,
4614
+ auroraWave: R$
4615
+ }, M$ = {
4616
+ particles: { colors: ["#dc2626", "#f87171", "#fca5a5"], particleCount: 50 },
4617
+ waves: { colors: ["#1e40af", "#3b82f6", "#60a5fa"] },
4618
+ stars: { colors: ["#fbbf24", "#fcd34d", "#fde68a"], particleCount: 100 },
4619
+ fire: { colors: ["#dc2626", "#f97316", "#fbbf24"], particleCount: 40 },
4620
+ ice: { colors: ["#06b6d4", "#22d3ee", "#a5f3fc"], particleCount: 30 },
4621
+ galaxy: { colors: ["#7c3aed", "#a855f7", "#c084fc", "#e879f9"], particleCount: 80 },
4622
+ matrix: { colors: ["#22c55e", "#4ade80", "#86efac"], particleCount: 60 },
4623
+ aurora: { colors: ["#22c55e", "#06b6d4", "#8b5cf6", "#ec4899"] }
4624
+ };
4625
+ function A$({
4626
+ type: n,
4627
+ children: a,
4628
+ intensity: s = 0.5,
4629
+ speed: l = 1,
4630
+ animated: c = !0,
4631
+ height: i = "200px",
4632
+ borderRadius: r = "12px",
4633
+ className: _ = ""
4634
+ }) {
4635
+ const o = M$[n], d = fe(null), p = [
4636
+ Ee.animatedBackground,
4637
+ Ee[n],
4638
+ !c && Ee.paused,
4639
+ _
4640
+ ].filter(Boolean).join(" "), u = () => o.particleCount ? Array.from({ length: Math.floor(o.particleCount * s) }).map((f, g) => /* @__PURE__ */ e(
4641
+ "span",
4642
+ {
4643
+ className: Ee.particle,
4644
+ style: {
4645
+ "--x": `${Math.random() * 100}%`,
4646
+ "--y": `${Math.random() * 100}%`,
4647
+ "--delay": `${Math.random() * 5}s`,
4648
+ "--duration": `${(3 + Math.random() * 4) / l}s`,
4649
+ "--size": `${2 + Math.random() * 4}px`,
4650
+ "--color": o.colors[Math.floor(Math.random() * o.colors.length)],
4651
+ "--opacity": 0.3 + Math.random() * 0.7
4652
+ }
4653
+ },
4654
+ g
4655
+ )) : null, m = () => o.colors.map((f, g) => /* @__PURE__ */ e(
4656
+ "div",
4657
+ {
4658
+ className: Ee.wave,
4659
+ style: {
4660
+ "--color": f,
4661
+ "--delay": `${g * 0.5}s`,
4662
+ "--duration": `${(6 - g) / l}s`,
4663
+ "--opacity": 0.3 + g * 0.15
4664
+ }
4665
+ },
4666
+ g
4667
+ )), h = () => o.colors.map((f, g) => /* @__PURE__ */ e(
4668
+ "div",
4669
+ {
4670
+ className: Ee.auroraLayer,
4671
+ style: {
4672
+ "--color": f,
4673
+ "--delay": `${g * 1.5}s`,
4674
+ "--duration": `${(8 + g * 2) / l}s`
4675
+ }
4676
+ },
4677
+ g
4678
+ ));
4679
+ return /* @__PURE__ */ t(
4680
+ "div",
4681
+ {
4682
+ ref: d,
4683
+ className: p,
4684
+ style: {
4685
+ "--height": typeof i == "number" ? `${i}px` : i,
4686
+ "--radius": typeof r == "number" ? `${r}px` : r,
4687
+ "--intensity": s
4688
+ },
4689
+ children: [
4690
+ /* @__PURE__ */ t("div", { className: Ee.backgroundLayer, children: [
4691
+ (n === "particles" || n === "stars" || n === "fire" || n === "ice" || n === "galaxy" || n === "matrix") && u(),
4692
+ n === "waves" && m(),
4693
+ n === "aurora" && h()
4694
+ ] }),
4695
+ a && /* @__PURE__ */ e("div", { className: Ee.content, children: a })
4696
+ ]
4697
+ }
4698
+ );
4699
+ }
4700
+ A$.displayName = "AnimatedBackground";
4701
+ const W$ = "_badgeContainer_1ak7x_1", E$ = "_grid_1ak7x_13", P$ = "_sm_1ak7x_27", F$ = "_badge_1ak7x_1", O$ = "_md_1ak7x_37", G$ = "_lg_1ak7x_47", U$ = "_clickable_1ak7x_81", V$ = "_iconWrapper_1ak7x_89", H$ = "_iconEmoji_1ak7x_127", Y$ = "_iconImage_1ak7x_135", K$ = "_common_1ak7x_149", Q$ = "_uncommon_1ak7x_157", J$ = "_rare_1ak7x_167", X$ = "_rareGlow_1ak7x_1", Z$ = "_epic_1ak7x_179", eN = "_epicGlow_1ak7x_1", nN = "_legendary_1ak7x_191", tN = "_legendaryBorder_1ak7x_1", aN = "_legendaryGlow_1ak7x_1", sN = "_glowEffect_1ak7x_305", oN = "_locked_1ak7x_347", cN = "_lockOverlay_1ak7x_357", lN = "_badgeInfo_1ak7x_379", rN = "_badgeName_1ak7x_393", iN = "_rarityLabel_1ak7x_405", _N = "_moreCount_1ak7x_461", M = {
4702
+ badgeContainer: W$,
4703
+ grid: E$,
4704
+ sm: P$,
4705
+ badge: F$,
4706
+ md: O$,
4707
+ lg: G$,
4708
+ clickable: U$,
4709
+ iconWrapper: V$,
4710
+ iconEmoji: H$,
4711
+ iconImage: Y$,
4712
+ common: K$,
4713
+ uncommon: Q$,
4714
+ rare: J$,
4715
+ rareGlow: X$,
4716
+ epic: Z$,
4717
+ epicGlow: eN,
4718
+ legendary: nN,
4719
+ legendaryBorder: tN,
4720
+ legendaryGlow: aN,
4721
+ glowEffect: sN,
4722
+ locked: oN,
4723
+ lockOverlay: cN,
4724
+ badgeInfo: lN,
4725
+ badgeName: rN,
4726
+ rarityLabel: iN,
4727
+ moreCount: _N
4728
+ }, dN = {
4729
+ common: "Yaygın",
4730
+ uncommon: "Nadir Değil",
4731
+ rare: "Nadir",
4732
+ epic: "Epik",
4733
+ legendary: "Efsanevi"
4734
+ };
4735
+ function mN({
4736
+ badges: n,
4737
+ size: a = "md",
4738
+ showTooltip: s = !0,
4739
+ showRarity: l = !1,
4740
+ grid: c = !1,
4741
+ maxDisplay: i,
4742
+ onBadgeClick: r,
4743
+ className: _ = ""
4744
+ }) {
4745
+ const o = Array.isArray(n) ? n : [n], d = i ? o.slice(0, i) : o, p = i ? Math.max(0, o.length - i) : 0, u = [
4746
+ M.badgeContainer,
4747
+ c && M.grid,
4748
+ M[a],
4749
+ _
4750
+ ].filter(Boolean).join(" "), m = (h, f) => {
4751
+ const g = h.rarity || "common", $ = h.unlocked !== !1, v = [
4752
+ M.badge,
4753
+ M[g],
4754
+ !$ && M.locked,
4755
+ r && M.clickable
4756
+ ].filter(Boolean).join(" ");
4757
+ return /* @__PURE__ */ t(
4758
+ "div",
4759
+ {
4760
+ className: v,
4761
+ onClick: () => $ && r?.(h),
4762
+ title: s ? `${h.name}${h.description ? `: ${h.description}` : ""}` : void 0,
4763
+ children: [
4764
+ /* @__PURE__ */ t("div", { className: M.iconWrapper, children: [
4765
+ h.icon.startsWith("http") || h.icon.startsWith("/") ? /* @__PURE__ */ e("img", { src: h.icon, alt: h.name, className: M.iconImage }) : /* @__PURE__ */ e("span", { className: M.iconEmoji, children: h.icon }),
4766
+ !$ && /* @__PURE__ */ e("div", { className: M.lockOverlay, children: "🔒" })
4767
+ ] }),
4768
+ (a === "lg" || l) && /* @__PURE__ */ t("div", { className: M.badgeInfo, children: [
4769
+ /* @__PURE__ */ e("span", { className: M.badgeName, children: h.name }),
4770
+ l && /* @__PURE__ */ e("span", { className: `${M.rarityLabel} ${M[g]}`, children: dN[g] })
4771
+ ] }),
4772
+ $ && g !== "common" && g !== "uncommon" && /* @__PURE__ */ e("div", { className: M.glowEffect })
4773
+ ]
4774
+ },
4775
+ h.id || f
4776
+ );
4777
+ };
4778
+ return /* @__PURE__ */ t("div", { className: u, children: [
4779
+ d.map(m),
4780
+ p > 0 && /* @__PURE__ */ e("div", { className: `${M.badge} ${M.moreCount}`, children: /* @__PURE__ */ t("span", { children: [
4781
+ "+",
4782
+ p
4783
+ ] }) })
4784
+ ] });
4785
+ }
4786
+ mN.displayName = "BadgeDisplay";
4787
+ function vN() {
4788
+ const [n, a] = k(() => {
4789
+ const i = localStorage.getItem("abi-ui-theme");
4790
+ return i || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
4791
+ });
4792
+ B(() => {
4793
+ document.documentElement.setAttribute("data-theme", n), localStorage.setItem("abi-ui-theme", n);
4794
+ }, [n]);
4795
+ const s = Fe(() => {
4796
+ a((i) => i === "light" ? "dark" : "light");
4797
+ }, []), l = Fe(() => a("light"), []), c = Fe(() => a("dark"), []);
4798
+ return {
4799
+ theme: n,
4800
+ toggleTheme: s,
4801
+ setLightTheme: l,
4802
+ setDarkTheme: c,
4803
+ isDark: n === "dark",
4804
+ isLight: n === "light"
4805
+ };
4806
+ }
4807
+ export {
4808
+ bo as Accordion,
4809
+ $o as AccordionItem,
4810
+ lc as Alert,
4811
+ A$ as AnimatedBackground,
4812
+ Xt as Avatar,
4813
+ p$ as AvatarFrame,
4814
+ gN as AvatarGroup,
4815
+ bt as Badge,
4816
+ mN as BadgeDisplay,
4817
+ I1 as BookmarkButton,
4818
+ Jv as BottomSheet,
4819
+ wc as Breadcrumb,
4820
+ Ln as Button,
4821
+ zi as Calendar,
4822
+ at as Card,
4823
+ ot as CardBody,
4824
+ ct as CardFooter,
4825
+ st as CardHeader,
4826
+ wr as Carousel,
4827
+ O_ as ChapterList,
4828
+ Xs as Checkbox,
4829
+ Fi as ColorPicker,
4830
+ bd as CommentCard,
4831
+ wg as ConfirmDialog,
4832
+ wb as CookieConsent,
4833
+ Eb as CountdownTimer,
4834
+ Ju as DataTable,
4835
+ Dc as Divider,
4836
+ ag as Drawer,
4837
+ So as Dropdown,
4838
+ Do as DropdownItem,
4839
+ Ro as DropdownLabel,
4840
+ qo as DropdownSeparator,
4841
+ zu as EmptyState,
4842
+ d1 as FavoriteButton,
4843
+ Fr as FileUpload,
4844
+ xf as FilterPanel,
4845
+ zv as FloatingActionButton,
4846
+ Hp as FollowButton,
4847
+ hi as Footer,
4848
+ Wd as GenreChip,
4849
+ zh as ImageViewer,
4850
+ Hn as Input,
4851
+ lf as LazyImage,
4852
+ _p as LikeButton,
4853
+ ov as LoadingOverlay,
4854
+ Zm as MangaDetailHeader,
4855
+ B_ as MangaPosterCard,
4856
+ _b as Marquee,
4857
+ Dt as Modal,
4858
+ ei as Navbar,
4859
+ c_ as NotificationCenter,
4860
+ np as PageCounter,
4861
+ hc as Pagination,
4862
+ jl as Popover,
4863
+ us as Progress,
4864
+ io as Radio,
4865
+ ro as RadioGroup,
4866
+ Xc as Rating,
4867
+ O1 as ReaderToolbar,
4868
+ nd as ReadingProgress,
4869
+ mu as ReportModal,
4870
+ Wg as ScrollToTop,
4871
+ om as SearchBar,
4872
+ Na as Select,
4873
+ Sp as ShareButton,
4874
+ on as Skeleton,
4875
+ Ss as SkeletonMangaCard,
4876
+ Ko as Slider,
4877
+ Wf as SortSelector,
4878
+ ml as Spinner,
4879
+ dr as StatsCard,
4880
+ Gl as Stepper,
4881
+ Ps as Switch,
4882
+ la as Tab,
4883
+ ca as TabList,
4884
+ ra as TabPanel,
4885
+ Oc as Table,
4886
+ oa as Tabs,
4887
+ Nl as Tag,
4888
+ hh as TextArea,
4889
+ Xl as Timeline,
4890
+ Ga as ToastProvider,
4891
+ Ja as Tooltip,
4892
+ xm as UserCard,
4893
+ vN as useTheme,
4894
+ fN as useToast
4895
+ };