manga-ui-compents-abi 1.0.3 → 1.0.5

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 @@
1
+ (function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g.MangaUICompentsAbi={},g.jsxRuntime,g.React,g.ReactDOM))})(this,(function(g,e,m,ve){"use strict";const Ue={button:"_button_cvovu_11",sm:"_sm_cvovu_85",md:"_md_cvovu_99",lg:"_lg_cvovu_113",primary:"_primary_cvovu_133",secondary:"_secondary_cvovu_153",outline:"_outline_cvovu_173",ghost:"_ghost_cvovu_199",danger:"_danger_cvovu_227",loading:"_loading_cvovu_247",spin:"_spin_cvovu_1",fullWidth:"_fullWidth_cvovu_303",iconOnly:"_iconOnly_cvovu_313"},ta=m.forwardRef(({variant:a="primary",size:t="md",loading:s=!1,fullWidth:c=!1,leftIcon:o,rightIcon:r,iconOnly:l=!1,disabled:i,className:n="",children:d,...p},h)=>{const _=[Ue.button,Ue[a],Ue[t],s&&Ue.loading,c&&Ue.fullWidth,l&&Ue.iconOnly,n].filter(Boolean).join(" ");return e.jsxs("button",{ref:h,className:_,disabled:i||s,...p,children:[o&&!l&&e.jsx("span",{children:o}),d,r&&!l&&e.jsx("span",{children:r})]})});ta.displayName="Button";const J={inputWrapper:"_inputWrapper_1geb8_11",label:"_label_1geb8_25",required:"_required_1geb8_43",inputContainer:"_inputContainer_1geb8_53",input:"_input_1geb8_11",sm:"_sm_1geb8_145",lg:"_lg_1geb8_155",error:"_error_1geb8_167",errorMessage:"_errorMessage_1geb8_177",helperText:"_helperText_1geb8_209",hasLeftIcon:"_hasLeftIcon_1geb8_223",hasRightIcon:"_hasRightIcon_1geb8_231",leftIcon:"_leftIcon_1geb8_239",rightIcon:"_rightIcon_1geb8_241",fullWidth:"_fullWidth_1geb8_293"},sa=m.forwardRef(({label:a,size:t="md",error:s,helperText:c,leftIcon:o,rightIcon:r,fullWidth:l=!1,required:i=!1,className:n="",id:d,...p},h)=>{const _=d||`input-${Math.random().toString(36).substr(2,9)}`,$=[J.inputWrapper,J[t],s&&J.error,o&&J.hasLeftIcon,r&&J.hasRightIcon,l&&J.fullWidth,n].filter(Boolean).join(" ");return e.jsxs("div",{className:$,children:[a&&e.jsxs("label",{htmlFor:_,className:J.label,children:[a,i&&e.jsx("span",{className:J.required,children:"*"})]}),e.jsxs("div",{className:J.inputContainer,children:[o&&e.jsx("span",{className:J.leftIcon,children:o}),e.jsx("input",{ref:h,id:_,className:J.input,"aria-invalid":!!s,"aria-describedby":s?`${_}-error`:c?`${_}-helper`:void 0,...p}),r&&e.jsx("span",{className:J.rightIcon,children:r})]}),s&&e.jsx("span",{id:`${_}-error`,className:J.errorMessage,role:"alert",children:s}),c&&!s&&e.jsx("span",{id:`${_}-helper`,className:J.helperText,children:c})]})});sa.displayName="Input";const Pe={card:"_card_4rvo0_11",default:"_default_4rvo0_37",elevated:"_elevated_4rvo0_45",outlined:"_outlined_4rvo0_53",hoverable:"_hoverable_4rvo0_65",header:"_header_4rvo0_109",body:"_body_4rvo0_121",footer:"_footer_4rvo0_129",compact:"_compact_4rvo0_143",spacious:"_spacious_4rvo0_167"},na=m.forwardRef(({variant:a="default",padding:t="default",hoverable:s=!1,className:c="",children:o,...r},l)=>{const i=[Pe.card,Pe[a],t!=="default"&&Pe[t],s&&Pe.hoverable,c].filter(Boolean).join(" ");return e.jsx("div",{ref:l,className:i,...r,children:o})});na.displayName="Card";const oa=m.forwardRef(({className:a="",children:t,...s},c)=>e.jsx("div",{ref:c,className:`${Pe.header} ${a}`,...s,children:t}));oa.displayName="CardHeader";const ca=m.forwardRef(({className:a="",children:t,...s},c)=>e.jsx("div",{ref:c,className:`${Pe.body} ${a}`,...s,children:t}));ca.displayName="CardBody";const ra=m.forwardRef(({className:a="",children:t,...s},c)=>e.jsx("div",{ref:c,className:`${Pe.footer} ${a}`,...s,children:t}));ra.displayName="CardFooter";const He={badge:"_badge_69hvm_11",sm:"_sm_69hvm_43",md:"_md_69hvm_57",lg:"_lg_69hvm_71",default:"_default_69hvm_87",primary:"_primary_69hvm_97",success:"_success_69hvm_107",warning:"_warning_69hvm_117",danger:"_danger_69hvm_127",info:"_info_69hvm_137",outline:"_outline_69hvm_149",withDot:"_withDot_69hvm_207",pulse:"_pulse_69hvm_227"},la=m.forwardRef(({variant:a="default",size:t="md",outline:s=!1,withDot:c=!1,pulse:o=!1,className:r="",children:l,...i},n)=>{const d=[He.badge,He[a],He[t],s&&He.outline,c&&He.withDot,o&&He.pulse,r].filter(Boolean).join(" ");return e.jsx("span",{ref:n,className:d,...i,children:l})});la.displayName="Badge";const xe={overlay:"_overlay_1b62k_11",fadeIn:"_fadeIn_1b62k_1",modal:"_modal_1b62k_35",slideIn:"_slideIn_1b62k_1",sm:"_sm_1b62k_63",md:"_md_1b62k_71",lg:"_lg_1b62k_79",xl:"_xl_1b62k_87",full:"_full_1b62k_95",header:"_header_1b62k_107",title:"_title_1b62k_125",closeButton:"_closeButton_1b62k_145",body:"_body_1b62k_191",footer:"_footer_1b62k_205"};function ia({isOpen:a,onClose:t,title:s,size:c="md",showCloseButton:o=!0,closeOnOverlayClick:r=!0,closeOnEscape:l=!0,children:i,footer:n}){const d=m.useCallback(_=>{_.key==="Escape"&&l&&t()},[t,l]);if(m.useEffect(()=>(a&&(document.addEventListener("keydown",d),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow=""}),[a,d]),!a)return null;const p=_=>{_.target===_.currentTarget&&r&&t()},h=e.jsx("div",{className:xe.overlay,onClick:p,children:e.jsxs("div",{className:`${xe.modal} ${xe[c]}`,role:"dialog","aria-modal":"true",children:[(s||o)&&e.jsxs("div",{className:xe.header,children:[s&&e.jsx("h2",{className:xe.title,children:s}),o&&e.jsx("button",{className:xe.closeButton,onClick:t,"aria-label":"Close modal",children:"✕"})]}),e.jsx("div",{className:xe.body,children:i}),n&&e.jsx("div",{className:xe.footer,children:n})]})});return ve.createPortal(h,document.body)}ia.displayName="Modal";const re={avatar:"_avatar_loudu_11",image:"_image_loudu_43",xs:"_xs_loudu_57",sm:"_sm_loudu_69",md:"_md_loudu_81",lg:"_lg_loudu_93",xl:"_xl_loudu_105",xxl:"_xxl_loudu_117",circle:"_circle_loudu_135",rounded:"_rounded_loudu_143",square:"_square_loudu_151",wrapper:"_wrapper_loudu_161",status:"_status_loudu_171",online:"_online_loudu_191",offline:"_offline_loudu_199",busy:"_busy_loudu_207",group:"_group_loudu_217"},da=m.forwardRef(({src:a,alt:t="",initials:s,size:c="md",shape:o="circle",status:r,className:l="",...i},n)=>{const d=[re.avatar,re[c],re[o],l].filter(Boolean).join(" "),p=e.jsx("div",{ref:n,className:d,children:a?e.jsx("img",{src:a,alt:t,className:re.image,...i}):e.jsx("span",{children:s||"?"})});return r?e.jsxs("div",{className:re.wrapper,children:[p,e.jsx("span",{className:`${re.status} ${re[r]}`})]}):p});da.displayName="Avatar";function Mt({children:a,max:t}){const s=m.Children.toArray(a),c=t?s.slice(0,t):s,o=t?s.length-t:0;return e.jsxs("div",{className:re.group,children:[c,o>0&&e.jsxs("div",{className:`${re.avatar} ${re.md} ${re.circle}`,children:["+",o]})]})}const Qe={tabList:"_tabList_1c0yh_11",tab:"_tab_1c0yh_11",active:"_active_1c0yh_71",tabPanel:"_tabPanel_1c0yh_107",pills:"_pills_1c0yh_117",underline:"_underline_1c0yh_167"},ea=m.createContext(null);function _a({defaultTab:a,activeTab:t,onTabChange:s,variant:c="default",children:o}){const[r,l]=m.useState(a||""),i=t??r,n=d=>{t||l(d),s?.(d)};return e.jsx(ea.Provider,{value:{activeTab:i,setActiveTab:n},children:e.jsx("div",{"data-variant":c,children:o})})}function pa({children:a,variant:t="default"}){return e.jsx("div",{className:`${Qe.tabList} ${t!=="default"?Qe[t]:""}`,role:"tablist",children:a})}function ma({id:a,children:t,icon:s,disabled:c=!1}){const o=m.useContext(ea);if(!o)throw new Error("Tab must be used within Tabs");const{activeTab:r,setActiveTab:l}=o,i=r===a;return e.jsxs("button",{className:`${Qe.tab} ${i?Qe.active:""}`,role:"tab","aria-selected":i,onClick:()=>!c&&l(a),disabled:c,children:[s&&e.jsx("span",{children:s}),t]})}function ha({id:a,children:t}){const s=m.useContext(ea);if(!s)throw new Error("TabPanel must be used within Tabs");const{activeTab:c}=s;return c!==a?null:e.jsx("div",{className:Qe.tabPanel,role:"tabpanel",children:t})}_a.displayName="Tabs",pa.displayName="TabList",ma.displayName="Tab",ha.displayName="TabPanel";const le={selectWrapper:"_selectWrapper_gp0p4_11",label:"_label_gp0p4_25",required:"_required_gp0p4_43",selectContainer:"_selectContainer_gp0p4_53",select:"_select_gp0p4_11",arrow:"_arrow_gp0p4_139",sm:"_sm_gp0p4_167",lg:"_lg_gp0p4_177",error:"_error_gp0p4_189",errorMessage:"_errorMessage_gp0p4_199",helperText:"_helperText_gp0p4_215",fullWidth:"_fullWidth_gp0p4_229"},$a=m.forwardRef(({label:a,options:t,placeholder:s,size:c="md",error:o,helperText:r,fullWidth:l=!1,required:i=!1,className:n="",id:d,...p},h)=>{const _=d||`select-${Math.random().toString(36).substr(2,9)}`,$=[le.selectWrapper,le[c],o&&le.error,l&&le.fullWidth,n].filter(Boolean).join(" ");return e.jsxs("div",{className:$,children:[a&&e.jsxs("label",{htmlFor:_,className:le.label,children:[a,i&&e.jsx("span",{className:le.required,children:"*"})]}),e.jsxs("div",{className:le.selectContainer,children:[e.jsxs("select",{ref:h,id:_,className:le.select,"aria-invalid":!!o,...p,children:[s&&e.jsx("option",{value:"",disabled:!0,children:s}),t.map(u=>e.jsx("option",{value:u.value,disabled:u.disabled,children:u.label},u.value))]}),e.jsx("span",{className:le.arrow,children:e.jsx("svg",{width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"2.5",viewBox:"0 0 24 24",children:e.jsx("path",{d:"m6 9 6 6 6-6"})})})]}),o&&e.jsx("span",{className:le.errorMessage,children:o}),r&&!o&&e.jsx("span",{className:le.helperText,children:r})]})});$a.displayName="Select";const he={toastContainer:"_toastContainer_1eyww_11",topRight:"_topRight_1eyww_33",topLeft:"_topLeft_1eyww_43",bottomRight:"_bottomRight_1eyww_53",bottomLeft:"_bottomLeft_1eyww_63",topCenter:"_topCenter_1eyww_73",bottomCenter:"_bottomCenter_1eyww_85",toast:"_toast_1eyww_11",slideIn:"_slideIn_1eyww_1",exiting:"_exiting_1eyww_129",slideOut:"_slideOut_1eyww_1",icon:"_icon_1eyww_139",content:"_content_1eyww_161",title:"_title_1eyww_171",message:"_message_1eyww_191",closeBtn:"_closeBtn_1eyww_207",success:"_success_1eyww_251",error:"_error_1eyww_267",warning:"_warning_1eyww_283",info:"_info_1eyww_299"},ga=m.createContext(null),qt={success:"✓",error:"✕",warning:"⚠",info:"ℹ"};function Pt({toast:a,onRemove:t}){const[s,c]=m.useState(!1);m.useEffect(()=>{if(a.duration!==0){const r=setTimeout(()=>{c(!0),setTimeout(t,200)},a.duration||4e3);return()=>clearTimeout(r)}},[a.duration,t]);const o=()=>{c(!0),setTimeout(t,200)};return e.jsxs("div",{className:`${he.toast} ${he[a.variant||"info"]} ${s?he.exiting:""}`,children:[e.jsx("span",{className:he.icon,children:qt[a.variant||"info"]}),e.jsxs("div",{className:he.content,children:[a.title&&e.jsx("div",{className:he.title,children:a.title}),e.jsx("div",{className:he.message,children:a.message})]}),e.jsx("button",{className:he.closeBtn,onClick:o,children:"✕"})]})}function fa({children:a,position:t="topRight"}){const[s,c]=m.useState([]),o=m.useCallback(l=>{const i=Math.random().toString(36).substr(2,9);c(n=>[...n,{...l,id:i}])},[]),r=m.useCallback(l=>{c(i=>i.filter(n=>n.id!==l))},[]);return e.jsxs(ga.Provider,{value:{addToast:o,removeToast:r},children:[a,ve.createPortal(e.jsx("div",{className:`${he.toastContainer} ${he[t]}`,children:s.map(l=>e.jsx(Pt,{toast:l,onRemove:()=>r(l.id)},l.id))}),document.body)]})}function Wt(){const a=m.useContext(ga);if(!a)throw new Error("useToast must be used within ToastProvider");return a}fa.displayName="ToastProvider";const aa={tooltipWrapper:"_tooltipWrapper_17jm1_11",tooltip:"_tooltip_17jm1_11",top:"_top_17jm1_75",bottom:"_bottom_17jm1_95",left:"_left_17jm1_115",right:"_right_17jm1_135"};function ua({content:a,position:t="top",children:s}){return e.jsxs("div",{className:aa.tooltipWrapper,children:[s,e.jsx("div",{className:`${aa.tooltip} ${aa[t]}`,children:a})]})}ua.displayName="Tooltip";const ie={progressWrapper:"_progressWrapper_1nzwi_11",label:"_label_1nzwi_19",labelText:"_labelText_1nzwi_33",percentage:"_percentage_1nzwi_49",track:"_track_1nzwi_63",sm:"_sm_1nzwi_83",md:"_md_1nzwi_91",lg:"_lg_1nzwi_99",fill:"_fill_1nzwi_109",default:"_default_1nzwi_125",success:"_success_1nzwi_133",warning:"_warning_1nzwi_141",danger:"_danger_1nzwi_149",striped:"_striped_1nzwi_159",animated:"_animated_1nzwi_187",stripeMove:"_stripeMove_1nzwi_1",indeterminate:"_indeterminate_1nzwi_217"};function ba({value:a=0,variant:t="default",size:s="md",label:c,showPercentage:o=!1,striped:r=!1,animated:l=!1,indeterminate:i=!1}){const n=Math.min(100,Math.max(0,a)),d=[ie.progressWrapper,ie[t],ie[s],r&&ie.striped,l&&ie.animated,i&&ie.indeterminate].filter(Boolean).join(" ");return e.jsxs("div",{className:d,children:[(c||o)&&e.jsxs("div",{className:ie.label,children:[c&&e.jsx("span",{className:ie.labelText,children:c}),o&&!i&&e.jsxs("span",{className:ie.percentage,children:[n,"%"]})]}),e.jsx("div",{className:ie.track,children:e.jsx("div",{className:ie.fill,style:{width:i?void 0:`${n}%`},role:"progressbar","aria-valuenow":i?void 0:n,"aria-valuemin":0,"aria-valuemax":100})})]})}ba.displayName="Progress";const ye={skeleton:"_skeleton_r2www_11",shimmer:"_shimmer_r2www_1",text:"_text_r2www_71",title:"_title_r2www_83",avatar:"_avatar_r2www_97",thumbnail:"_thumbnail_r2www_107",button:"_button_r2www_117",card:"_card_r2www_127",xs:"_xs_r2www_141",sm:"_sm_r2www_151",md:"_md_r2www_161",lg:"_lg_r2www_171",xl:"_xl_r2www_181",noAnimation:"_noAnimation_r2www_193",fullWidth:"_fullWidth_r2www_203",mangaCard:"_mangaCard_r2www_213",cover:"_cover_r2www_233",lines:"_lines_r2www_247"};function Je({variant:a="text",size:t="md",width:s,height:c,noAnimation:o=!1,fullWidth:r=!1,className:l="",style:i}){const n=[ye.skeleton,ye[a],a==="avatar"&&ye[t],o&&ye.noAnimation,r&&ye.fullWidth,l].filter(Boolean).join(" "),d={...i,...s&&{width:typeof s=="number"?`${s}px`:s},...c&&{height:typeof c=="number"?`${c}px`:c}};return e.jsx("div",{className:n,style:d})}function va(){return e.jsxs("div",{className:ye.mangaCard,children:[e.jsx("div",{className:`${ye.skeleton} ${ye.cover}`}),e.jsxs("div",{className:ye.lines,children:[e.jsx(Je,{variant:"title",width:"80%"}),e.jsx(Je,{variant:"text",width:"60%"}),e.jsx(Je,{variant:"text",width:"40%"})]})]})}Je.displayName="Skeleton",va.displayName="SkeletonMangaCard";const We={switchWrapper:"_switchWrapper_lf04y_11",disabled:"_disabled_lf04y_25",switch:"_switch_lf04y_11",checked:"_checked_lf04y_85",label:"_label_lf04y_129",input:"_input_lf04y_147",sm:"_sm_lf04y_163",lg:"_lg_lf04y_195"},ya=m.forwardRef(({label:a,size:t="md",checked:s=!1,disabled:c=!1,onCheckedChange:o,onChange:r,className:l="",...i},n)=>{const d=[We.switchWrapper,We[t],s&&We.checked,c&&We.disabled,l].filter(Boolean).join(" "),p=h=>{r?.(h),o?.(h.target.checked)};return e.jsxs("label",{className:d,children:[e.jsx("input",{ref:n,type:"checkbox",className:We.input,checked:s,disabled:c,onChange:p,...i}),e.jsx("span",{className:We.switch}),a&&e.jsx("span",{className:We.label,children:a})]})});ya.displayName="Switch";const Ne={checkboxWrapper:"_checkboxWrapper_dpxrp_11",disabled:"_disabled_dpxrp_25",checkbox:"_checkbox_dpxrp_11",checkmark:"_checkmark_dpxrp_65",checked:"_checked_dpxrp_85",label:"_label_dpxrp_129",input:"_input_dpxrp_143",sm:"_sm_dpxrp_159",lg:"_lg_dpxrp_177",indeterminate:"_indeterminate_dpxrp_197"},Na=m.forwardRef(({label:a,size:t="md",checked:s=!1,indeterminate:c=!1,disabled:o=!1,onCheckedChange:r,onChange:l,className:i="",...n},d)=>{const p=[Ne.checkboxWrapper,Ne[t],s&&Ne.checked,c&&Ne.indeterminate,o&&Ne.disabled,i].filter(Boolean).join(" "),h=_=>{l?.(_),r?.(_.target.checked)};return e.jsxs("label",{className:p,children:[e.jsx("input",{ref:d,type:"checkbox",className:Ne.input,checked:s,disabled:o,onChange:h,...n}),e.jsx("span",{className:Ne.checkbox,children:e.jsx("span",{className:Ne.checkmark,children:"✓"})}),a&&e.jsx("span",{className:Ne.label,children:a})]})});Na.displayName="Checkbox";const ke={radioWrapper:"_radioWrapper_y3wxd_11",disabled:"_disabled_y3wxd_25",radio:"_radio_y3wxd_11",checked:"_checked_y3wxd_89",label:"_label_y3wxd_133",input:"_input_y3wxd_147",radioGroup:"_radioGroup_y3wxd_163",horizontal:"_horizontal_y3wxd_175",groupLabel:"_groupLabel_y3wxd_185"},ka=m.createContext(null);function wa({name:a,value:t="",onChange:s=()=>{},label:c,horizontal:o=!1,disabled:r=!1,children:l}){return e.jsx(ka.Provider,{value:{name:a,value:t,onChange:s,disabled:r},children:e.jsxs("div",{role:"radiogroup",children:[c&&e.jsx("div",{className:ke.groupLabel,children:c}),e.jsx("div",{className:`${ke.radioGroup} ${o?ke.horizontal:""}`,children:l})]})})}const Ca=m.forwardRef(({value:a,label:t,disabled:s,className:c="",...o},r)=>{const l=m.useContext(ka),i=l?.name||o.name||"",n=l?l.value===a:!1,d=s??l?.disabled??!1,p=()=>{l?.onChange(a)},h=[ke.radioWrapper,n&&ke.checked,d&&ke.disabled,c].filter(Boolean).join(" ");return e.jsxs("label",{className:h,children:[e.jsx("input",{ref:r,type:"radio",className:ke.input,name:i,value:a,checked:n,disabled:d,onChange:p,...o}),e.jsx("span",{className:ke.radio}),t&&e.jsx("span",{className:ke.label,children:t})]})});Ca.displayName="Radio",wa.displayName="RadioGroup";const Te={accordion:"_accordion_gl4q2_11",item:"_item_gl4q2_23",open:"_open_gl4q2_51",trigger:"_trigger_gl4q2_63",triggerText:"_triggerText_gl4q2_99",triggerIcon:"_triggerIcon_gl4q2_117",content:"_content_gl4q2_161",contentInner:"_contentInner_gl4q2_181"},Ba=m.createContext(null);function Ia({defaultOpen:a=[],allowMultiple:t=!1,children:s,className:c=""}){const[o,r]=m.useState(a),l=i=>{r(n=>n.includes(i)?n.filter(d=>d!==i):t?[...n,i]:[i])};return e.jsx(Ba.Provider,{value:{openItems:o,toggleItem:l,allowMultiple:t},children:e.jsx("div",{className:`${Te.accordion} ${c}`,children:s})})}function xa({id:a,title:t,children:s,disabled:c=!1}){const o=m.useContext(Ba);if(!o)throw new Error("AccordionItem must be used within Accordion");const{openItems:r,toggleItem:l}=o,i=r.includes(a);return e.jsxs("div",{className:`${Te.item} ${i?Te.open:""}`,children:[e.jsxs("button",{className:Te.trigger,onClick:()=>!c&&l(a),disabled:c,"aria-expanded":i,children:[e.jsx("span",{className:Te.triggerText,children:t}),e.jsx("span",{className:Te.triggerIcon,children:"▼"})]}),e.jsx("div",{className:Te.content,children:e.jsx("div",{className:Te.contentInner,children:s})})]})}Ia.displayName="Accordion",xa.displayName="AccordionItem";const ne={dropdown:"_dropdown_1dkfo_11",trigger:"_trigger_1dkfo_21",menu:"_menu_1dkfo_29",open:"_open_1dkfo_65",alignRight:"_alignRight_1dkfo_79",alignCenter:"_alignCenter_1dkfo_89",item:"_item_1dkfo_109",danger:"_danger_1dkfo_161",disabled:"_disabled_1dkfo_179",itemIcon:"_itemIcon_1dkfo_199",separator:"_separator_1dkfo_219",label:"_label_1dkfo_233"};function Ta({trigger:a,children:t,align:s="left",closeOnClick:c=!0}){const[o,r]=m.useState(!1),l=m.useRef(null);m.useEffect(()=>{const n=d=>{l.current&&!l.current.contains(d.target)&&r(!1)};return o&&document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[o]);const i=s==="right"?ne.alignRight:s==="center"?ne.alignCenter:"";return e.jsxs("div",{ref:l,className:`${ne.dropdown} ${o?ne.open:""} ${i}`,children:[e.jsx("div",{className:ne.trigger,onClick:()=>r(!o),children:a}),e.jsx("div",{className:ne.menu,onClick:c?()=>r(!1):void 0,children:t})]})}function La({children:a,icon:t,danger:s=!1,disabled:c=!1,onClick:o}){const r=()=>{!c&&o&&o()},l=[ne.item,s&&ne.danger,c&&ne.disabled].filter(Boolean).join(" ");return e.jsxs("button",{className:l,onClick:r,disabled:c,children:[t&&e.jsx("span",{className:ne.itemIcon,children:t}),a]})}function za(){return e.jsx("div",{className:ne.separator})}function Sa({children:a}){return e.jsx("div",{className:ne.label,children:a})}Ta.displayName="Dropdown",La.displayName="DropdownItem",za.displayName="DropdownSeparator",Sa.displayName="DropdownLabel";const de={sliderWrapper:"_sliderWrapper_1pmo4_11",label:"_label_1pmo4_25",labelText:"_labelText_1pmo4_37",value:"_value_1pmo4_53",sliderContainer:"_sliderContainer_1pmo4_65",track:"_track_1pmo4_79",fill:"_fill_1pmo4_99",thumb:"_thumb_1pmo4_115",input:"_input_1pmo4_163",sm:"_sm_1pmo4_183",lg:"_lg_1pmo4_203",disabled:"_disabled_1pmo4_227"},ja=m.forwardRef(({value:a=0,min:t=0,max:s=100,step:c=1,label:o,showValue:r=!1,size:l="md",disabled:i=!1,onValueChange:n,onChange:d,className:p="",...h},_)=>{const $=(a-t)/(s-t)*100,u=y=>{const b=Number(y.target.value);d?.(y),n?.(b)},f=[de.sliderWrapper,de[l],i&&de.disabled,p].filter(Boolean).join(" ");return e.jsxs("div",{className:f,children:[(o||r)&&e.jsxs("div",{className:de.label,children:[o&&e.jsx("span",{className:de.labelText,children:o}),r&&e.jsx("span",{className:de.value,children:a})]}),e.jsxs("div",{className:de.sliderContainer,children:[e.jsx("div",{className:de.track}),e.jsx("div",{className:de.fill,style:{width:`${$}%`}}),e.jsx("div",{className:de.thumb,style:{left:`${$}%`}}),e.jsx("input",{ref:_,type:"range",className:de.input,value:a,min:t,max:s,step:c,disabled:i,onChange:u,...h})]})]})});ja.displayName="Slider";const Ae={alert:"_alert_1my5n_11",icon:"_icon_1my5n_31",content:"_content_1my5n_51",title:"_title_1my5n_61",description:"_description_1my5n_79",closeBtn:"_closeBtn_1my5n_93",info:"_info_1my5n_137",success:"_success_1my5n_153",warning:"_warning_1my5n_169",error:"_error_1my5n_185"},At={info:"ℹ",success:"✓",warning:"⚠",error:"✕"};function Da({variant:a="info",title:t,children:s,closable:c=!1,onClose:o,icon:r,className:l=""}){return e.jsxs("div",{className:`${Ae.alert} ${Ae[a]} ${l}`,role:"alert",children:[e.jsx("span",{className:Ae.icon,children:r??At[a]}),e.jsxs("div",{className:Ae.content,children:[t&&e.jsx("div",{className:Ae.title,children:t}),s&&e.jsx("div",{className:Ae.description,children:s})]}),c&&e.jsx("button",{className:Ae.closeBtn,onClick:o,"aria-label":"Close",children:"✕"})]})}Da.displayName="Alert";const we={pagination:"_pagination_1pgq3_11",button:"_button_1pgq3_23",active:"_active_1pgq3_65",ellipsis:"_ellipsis_1pgq3_101",nav:"_nav_1pgq3_125",sm:"_sm_1pgq3_135",lg:"_lg_1pgq3_149"};function Ea({currentPage:a,totalPages:t,onPageChange:s,maxVisible:c=5,showNavigation:o=!0,size:r="md",className:l=""}){const n=(()=>{const d=[];if(t<=c){for(let $=1;$<=t;$++)d.push($);return d}const p=Math.floor(c/2);let h=Math.max(1,a-p),_=Math.min(t,a+p);a<=p?_=c:a>=t-p&&(h=t-c+1),h>1&&(d.push(1),h>2&&d.push("ellipsis"));for(let $=h;$<=_;$++)d.push($);return _<t&&(_<t-1&&d.push("ellipsis"),d.push(t)),d})();return e.jsxs("nav",{className:`${we.pagination} ${we[r]} ${l}`,"aria-label":"Pagination",children:[o&&e.jsx("button",{className:`${we.button} ${we.nav}`,onClick:()=>s(a-1),disabled:a<=1,"aria-label":"Previous page",children:"←"}),n.map((d,p)=>d==="ellipsis"?e.jsx("span",{className:we.ellipsis,children:"..."},`ellipsis-${p}`):e.jsx("button",{className:`${we.button} ${a===d?we.active:""}`,onClick:()=>s(d),"aria-current":a===d?"page":void 0,children:d},d)),o&&e.jsx("button",{className:`${we.button} ${we.nav}`,onClick:()=>s(a+1),disabled:a>=t,"aria-label":"Next page",children:"→"})]})}Ea.displayName="Pagination";const Le={breadcrumb:"_breadcrumb_uypmd_11",item:"_item_uypmd_27",link:"_link_uypmd_39",current:"_current_uypmd_69",separator:"_separator_uypmd_81",icon:"_icon_uypmd_93",sm:"_sm_uypmd_107",lg:"_lg_uypmd_115"};function Ma({items:a,separator:t="/",size:s="md",className:c=""}){return e.jsx("nav",{className:`${Le.breadcrumb} ${s!=="md"?Le[s]:""} ${c}`,"aria-label":"Breadcrumb",children:a.map((o,r)=>{const l=r===a.length-1;return e.jsxs("div",{className:Le.item,children:[o.icon&&e.jsx("span",{className:Le.icon,children:o.icon}),l||!o.href?e.jsx("span",{className:`${Le.link} ${l?Le.current:""}`,children:o.label}):e.jsx("a",{href:o.href,className:Le.link,children:o.label}),!l&&e.jsx("span",{className:Le.separator,children:t})]},r)})})}Ma.displayName="Breadcrumb";const ze={divider:"_divider_1tg6m_11",line:"_line_1tg6m_25",noLabel:"_noLabel_1tg6m_47",label:"_label_1tg6m_57",vertical:"_vertical_1tg6m_77",dashed:"_dashed_1tg6m_113",sm:"_sm_1tg6m_141",md:"_md_1tg6m_149",lg:"_lg_1tg6m_157"};function qa({label:a,vertical:t=!1,dashed:s=!1,spacing:c="md",className:o=""}){const r=[ze.divider,!a&&ze.noLabel,t&&ze.vertical,s&&ze.dashed,ze[c],o].filter(Boolean).join(" ");return e.jsxs("div",{className:r,role:"separator",children:[e.jsx("div",{className:ze.line}),a&&e.jsx("span",{className:ze.label,children:a}),a&&e.jsx("div",{className:ze.line})]})}qa.displayName="Divider";const Se={tableWrapper:"_tableWrapper_7nh49_11",table:"_table_7nh49_11",thead:"_thead_7nh49_43",th:"_th_7nh49_43",tbody:"_tbody_7nh49_81",td:"_td_7nh49_97",striped:"_striped_7nh49_131",compact:"_compact_7nh49_141"};function Pa({columns:a,data:t,striped:s=!1,compact:c=!1,className:o=""}){const r=[Se.table,s&&Se.striped,c&&Se.compact,o].filter(Boolean).join(" ");return e.jsx("div",{className:Se.tableWrapper,children:e.jsxs("table",{className:r,children:[e.jsx("thead",{className:Se.thead,children:e.jsx("tr",{children:a.map(l=>e.jsx("th",{className:Se.th,children:l.header},String(l.key)))})}),e.jsx("tbody",{className:Se.tbody,children:t.map((l,i)=>e.jsx("tr",{children:a.map(n=>{const d=l[n.key];return e.jsx("td",{className:Se.td,children:n.render?n.render(d,l):String(d??"")},String(n.key))})},i))})]})})}Pa.displayName="Table";const Fe={rating:"_rating_1353j_11",star:"_star_1353j_23",filled:"_filled_1353j_37",half:"_half_1353j_47",readonly:"_readonly_1353j_79",sm:"_sm_1353j_97",lg:"_lg_1353j_105",value:"_value_1353j_115"};function Wa({value:a=0,max:t=5,readonly:s=!1,showValue:c=!1,size:o="md",onValueChange:r,className:l=""}){const[i,n]=m.useState(null),d=i??a,p=_=>{!s&&r&&r(_)},h=[Fe.rating,s&&Fe.readonly,o!=="md"&&Fe[o],l].filter(Boolean).join(" ");return e.jsxs("div",{className:h,children:[Array.from({length:t},(_,$)=>{const u=$+1,f=d>=u,y=!f&&d>$&&d<u;return e.jsx("span",{className:`${Fe.star} ${f?Fe.filled:""} ${y?Fe.half:""}`,onClick:()=>p(u),onMouseEnter:()=>!s&&n(u),onMouseLeave:()=>!s&&n(null),role:s?"img":"button","aria-label":`${u} star${u>1?"s":""}`,children:"★"},$)}),c&&e.jsx("span",{className:Fe.value,children:a.toFixed(1)})]})}Wa.displayName="Rating";const Ve={spinner:"_spinner_1uv1q_11",icon:"_icon_1uv1q_23",spin:"_spin_1uv1q_11",xs:"_xs_1uv1q_39",sm:"_sm_1uv1q_51",md:"_md_1uv1q_63",lg:"_lg_1uv1q_75",xl:"_xl_1uv1q_87",withLabel:"_withLabel_1uv1q_101",label:"_label_1uv1q_111",primary:"_primary_1uv1q_129",secondary:"_secondary_1uv1q_137",white:"_white_1uv1q_145"};function Aa({size:a="md",variant:t="primary",label:s,className:c=""}){const o=[Ve.spinner,Ve[a],Ve[t],s&&Ve.withLabel,c].filter(Boolean).join(" ");return e.jsxs("div",{className:o,role:"status","aria-label":s||"Loading",children:[e.jsx("div",{className:Ve.icon}),s&&e.jsx("span",{className:Ve.label,children:s})]})}Aa.displayName="Spinner";const Re={tag:"_tag_1jbmd_11",removeBtn:"_removeBtn_1jbmd_63",primary:"_primary_1jbmd_117",success:"_success_1jbmd_139",warning:"_warning_1jbmd_153",info:"_info_1jbmd_167",sm:"_sm_1jbmd_183",lg:"_lg_1jbmd_193"};function Fa({children:a,variant:t="default",size:s="md",removable:c=!1,onRemove:o,className:r=""}){const l=[Re.tag,t!=="default"&&Re[t],s!=="md"&&Re[s],r].filter(Boolean).join(" ");return e.jsxs("span",{className:l,children:[a,c&&e.jsx("button",{className:Re.removeBtn,onClick:o,"aria-label":"Remove tag",children:"✕"})]})}Fa.displayName="Tag";const Oe={popover:"_popover_1j290_11",trigger:"_trigger_1j290_21",content:"_content_1j290_29",open:"_open_1j290_61",top:"_top_1j290_75",bottom:"_bottom_1j290_97",left:"_left_1j290_119",right:"_right_1j290_141",title:"_title_1j290_165",body:"_body_1j290_187"};function Oa({trigger:a,children:t,title:s,position:c="bottom",className:o=""}){const[r,l]=m.useState(!1),i=m.useRef(null);m.useEffect(()=>{const d=p=>{i.current&&!i.current.contains(p.target)&&l(!1)};return r&&document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[r]);const n=[Oe.popover,Oe[c],r&&Oe.open,o].filter(Boolean).join(" ");return e.jsxs("div",{ref:i,className:n,children:[e.jsx("div",{className:Oe.trigger,onClick:()=>l(!r),children:a}),e.jsxs("div",{className:Oe.content,children:[s&&e.jsx("div",{className:Oe.title,children:s}),e.jsx("div",{className:Oe.body,children:t})]})]})}Oa.displayName="Popover";const $e={stepper:"_stepper_172t4_11",horizontal:"_horizontal_172t4_21",vertical:"_vertical_172t4_29",step:"_step_172t4_11",indicator:"_indicator_172t4_71",active:"_active_172t4_115",completed:"_completed_172t4_129",content:"_content_172t4_145",title:"_title_172t4_165",description:"_description_172t4_189",connector:"_connector_172t4_205"};function Ga({steps:a,currentStep:t,orientation:s="horizontal",className:c=""}){return e.jsx("div",{className:`${$e.stepper} ${$e[s]} ${c}`,children:a.map((o,r)=>{const l=r<t,i=r===t,n=r===a.length-1,d=[$e.step,l&&$e.completed,i&&$e.active].filter(Boolean).join(" ");return e.jsxs("div",{className:d,children:[e.jsx("div",{className:$e.indicator,children:l?"✓":o.icon||r+1}),e.jsxs("div",{className:$e.content,children:[e.jsx("div",{className:$e.title,children:o.title}),o.description&&e.jsx("div",{className:$e.description,children:o.description})]}),!n&&e.jsx("div",{className:$e.connector})]},r)})})}Ga.displayName="Stepper";const Ge={timeline:"_timeline_gmw8h_11",item:"_item_gmw8h_49",dot:"_dot_gmw8h_69",card:"_card_gmw8h_111",time:"_time_gmw8h_11",title:"_title_gmw8h_157",description:"_description_gmw8h_175"};function Ua({items:a,className:t=""}){return e.jsx("div",{className:`${Ge.timeline} ${t}`,children:a.map((s,c)=>e.jsxs("div",{className:Ge.item,children:[e.jsx("div",{className:Ge.dot,children:s.icon||"•"}),e.jsxs("div",{className:Ge.card,children:[e.jsx("div",{className:Ge.time,children:s.time}),e.jsx("div",{className:Ge.title,children:s.title}),s.description&&e.jsx("div",{className:Ge.description,children:s.description})]})]},c))})}Ua.displayName="Timeline";const je={statsCard:"_statsCard_1d7wd_11",icon:"_icon_1d7wd_51",content:"_content_1d7wd_85",value:"_value_1d7wd_95",label:"_label_1d7wd_113",trend:"_trend_1d7wd_133",up:"_up_1d7wd_151",down:"_down_1d7wd_159",success:"_success_1d7wd_169",warning:"_warning_1d7wd_177",info:"_info_1d7wd_185",danger:"_danger_1d7wd_193"};function Ha({value:a,label:t,icon:s,variant:c="default",trend:o,trendValue:r,className:l=""}){const i=[je.statsCard,c!=="default"&&je[c],l].filter(Boolean).join(" ");return e.jsxs("div",{className:i,children:[s&&e.jsx("div",{className:je.icon,children:s}),e.jsxs("div",{className:je.content,children:[e.jsx("div",{className:je.value,children:a}),e.jsx("div",{className:je.label,children:t}),o&&r&&e.jsxs("div",{className:`${je.trend} ${je[o]}`,children:[o==="up"?"↑":"↓"," ",r]})]})]})}Ha.displayName="StatsCard";const ae={carousel:"_carousel_1ryxv_11",track:"_track_1ryxv_29",slide:"_slide_1ryxv_39",nav:"_nav_1ryxv_63",navPrev:"_navPrev_1ryxv_131",navNext:"_navNext_1ryxv_139",dots:"_dots_1ryxv_149",dot:"_dot_1ryxv_149",active:"_active_1ryxv_189",overlay:"_overlay_1ryxv_209",overlayTitle:"_overlayTitle_1ryxv_227",overlayDescription:"_overlayDescription_1ryxv_243"};function Va({slides:a,showNav:t=!0,showDots:s=!0,className:c=""}){const[o,r]=m.useState(0),l=d=>{r((d+a.length)%a.length)},i=()=>l(o-1),n=()=>l(o+1);return e.jsxs("div",{className:`${ae.carousel} ${c}`,children:[e.jsx("div",{className:ae.track,style:{transform:`translateX(-${o*100}%)`},children:a.map((d,p)=>e.jsx("div",{className:ae.slide,children:d.content||e.jsxs(e.Fragment,{children:[d.image&&e.jsx("img",{src:d.image,alt:d.title||""}),(d.title||d.description)&&e.jsxs("div",{className:ae.overlay,children:[d.title&&e.jsx("div",{className:ae.overlayTitle,children:d.title}),d.description&&e.jsx("div",{className:ae.overlayDescription,children:d.description})]})]})},p))}),t&&a.length>1&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`${ae.nav} ${ae.navPrev}`,onClick:i,children:"←"}),e.jsx("button",{className:`${ae.nav} ${ae.navNext}`,onClick:n,children:"→"})]}),s&&a.length>1&&e.jsx("div",{className:ae.dots,children:a.map((d,p)=>e.jsx("button",{className:`${ae.dot} ${o===p?ae.active:""}`,onClick:()=>l(p),"aria-label":`Go to slide ${p+1}`},p))})]})}Va.displayName="Carousel";const O={fileUpload:"_fileUpload_38cz6_11",dropzone:"_dropzone_38cz6_19",dragging:"_dragging_38cz6_65",disabled:"_disabled_38cz6_79",icon:"_icon_38cz6_89",text:"_text_38cz6_97",mainText:"_mainText_38cz6_105",subText:"_subText_38cz6_121",input:"_input_38cz6_135",fileList:"_fileList_38cz6_145",file:"_file_38cz6_11",fileIcon:"_fileIcon_38cz6_183",fileInfo:"_fileInfo_38cz6_191",fileName:"_fileName_38cz6_201",fileSize:"_fileSize_38cz6_219",removeBtn:"_removeBtn_38cz6_231"},Ft=a=>a<1024?`${a} B`:a<1024*1024?`${(a/1024).toFixed(1)} KB`:`${(a/(1024*1024)).toFixed(1)} MB`;function Ya({accept:a,multiple:t=!1,maxSize:s,disabled:c=!1,onFilesChange:o,className:r=""}){const[l,i]=m.useState([]),[n,d]=m.useState(!1),p=m.useRef(null),h=b=>{if(!b)return;const v=Array.from(b).filter(k=>!s||k.size<=s).map(k=>({file:k,id:`${k.name}-${Date.now()}-${Math.random()}`})),C=t?[...l,...v]:v;i(C),o?.(C.map(k=>k.file))},_=b=>{b.preventDefault(),d(!1),c||h(b.dataTransfer.files)},$=b=>{b.preventDefault(),c||d(!0)},u=()=>d(!1),f=b=>{const v=l.filter(C=>C.id!==b);i(v),o?.(v.map(C=>C.file))},y=[O.dropzone,n&&O.dragging,c&&O.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:`${O.fileUpload} ${r}`,children:[e.jsxs("div",{className:y,onClick:()=>!c&&p.current?.click(),onDrop:_,onDragOver:$,onDragLeave:u,children:[e.jsx("span",{className:O.icon,children:"📁"}),e.jsxs("div",{className:O.text,children:[e.jsx("div",{className:O.mainText,children:"Dosyaları Sürükle veya Tıkla"}),e.jsx("div",{className:O.subText,children:a?`Kabul edilen: ${a}`:"Tüm dosya türleri kabul edilir"})]}),e.jsx("input",{ref:p,type:"file",className:O.input,accept:a,multiple:t,disabled:c,onChange:b=>h(b.target.files)})]}),l.length>0&&e.jsx("div",{className:O.fileList,children:l.map(b=>e.jsxs("div",{className:O.file,children:[e.jsx("span",{className:O.fileIcon,children:"📄"}),e.jsxs("div",{className:O.fileInfo,children:[e.jsx("div",{className:O.fileName,children:b.file.name}),e.jsx("div",{className:O.fileSize,children:Ft(b.file.size)})]}),e.jsx("button",{className:O.removeBtn,onClick:()=>f(b.id),"aria-label":"Remove file",children:"✕"})]},b.id))})]})}Ya.displayName="FileUpload";const X={navbar:"_navbar_lodlc_11",sticky:"_sticky_lodlc_23",transparent:"_transparent_lodlc_35",container:"_container_lodlc_49",brand:"_brand_lodlc_69",brandLogo:"_brandLogo_lodlc_83",brandName:"_brandName_lodlc_91",brandAccent:"_brandAccent_lodlc_107",nav:"_nav_lodlc_11",navLink:"_navLink_lodlc_129",active:"_active_lodlc_165",actions:"_actions_lodlc_179",menuToggle:"_menuToggle_lodlc_193",mobileOpen:"_mobileOpen_lodlc_253"};function Ka({logo:a,brandName:t="ABI",brandAccent:s="-UI",items:c=[],actions:o,contained:r=!0,maxWidth:l=1200,sticky:i=!0,transparent:n=!1,className:d=""}){const[p,h]=m.useState(!1),_=[X.navbar,i&&X.sticky,n&&X.transparent,d].filter(Boolean).join(" "),$=r?{maxWidth:typeof l=="number"?`${l}px`:l,margin:"0 auto",padding:"0 1.5rem"}:void 0,u=e.jsxs(e.Fragment,{children:[e.jsxs("a",{href:"/",className:X.brand,children:[a&&e.jsx("span",{className:X.brandLogo,children:a}),e.jsxs("span",{className:X.brandName,children:[t,s&&e.jsx("span",{className:X.brandAccent,children:s})]})]}),e.jsx("div",{className:`${X.nav} ${p?X.mobileOpen:""}`,children:c.map((f,y)=>e.jsx("a",{href:f.href,className:`${X.navLink} ${f.active?X.active:""}`,children:f.label},y))}),o&&e.jsx("div",{className:X.actions,children:o}),e.jsx("button",{className:X.menuToggle,onClick:()=>h(!p),"aria-label":"Toggle menu",children:p?"✕":"☰"})]});return e.jsx("nav",{className:_,children:r?e.jsx("div",{className:X.container,style:$,children:u}):u})}Ka.displayName="Navbar";const Z={footer:"_footer_1m3gl_11",content:"_content_1m3gl_23",brand:"_brand_1m3gl_41",brandName:"_brandName_1m3gl_53",brandAccent:"_brandAccent_1m3gl_69",brandDescription:"_brandDescription_1m3gl_77",group:"_group_1m3gl_93",groupTitle:"_groupTitle_1m3gl_105",groupLinks:"_groupLinks_1m3gl_121",link:"_link_1m3gl_133",bottom:"_bottom_1m3gl_159",copyright:"_copyright_1m3gl_189",socials:"_socials_1m3gl_203",social:"_social_1m3gl_203"};function Qa({brandName:a="ABI",brandAccent:t="-UI",description:s="Manga sitesi için çizgi roman tarzı component kütüphanesi.",groups:c=[],copyright:o=`© ${new Date().getFullYear()} ABI-UI. Tüm hakları saklıdır.`,socials:r=[],className:l=""}){return e.jsxs("footer",{className:`${Z.footer} ${l}`,children:[e.jsxs("div",{className:Z.content,children:[e.jsxs("div",{className:Z.brand,children:[e.jsxs("span",{className:Z.brandName,children:[a,e.jsx("span",{className:Z.brandAccent,children:t})]}),e.jsx("p",{className:Z.brandDescription,children:s})]}),c.map((i,n)=>e.jsxs("div",{className:Z.group,children:[e.jsx("span",{className:Z.groupTitle,children:i.title}),e.jsx("div",{className:Z.groupLinks,children:i.links.map((d,p)=>e.jsx("a",{href:d.href,className:Z.link,children:d.label},p))})]},n))]}),e.jsxs("div",{className:Z.bottom,children:[e.jsx("span",{className:Z.copyright,children:o}),r.length>0&&e.jsx("div",{className:Z.socials,children:r.map((i,n)=>e.jsx("a",{href:i.href,className:Z.social,"aria-label":i.label,children:i.icon},n))})]})]})}Qa.displayName="Footer";const R={calendar:"_calendar_1dpnz_11",header:"_header_1dpnz_35",monthYear:"_monthYear_1dpnz_49",navBtn:"_navBtn_1dpnz_65",weekDays:"_weekDays_1dpnz_115",weekDay:"_weekDay_1dpnz_115",days:"_days_1dpnz_149",day:"_day_1dpnz_149",disabled:"_disabled_1dpnz_197",selected:"_selected_1dpnz_197",today:"_today_1dpnz_207",otherMonth:"_otherMonth_1dpnz_231"},Ot=["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],Gt=["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"];function Ja({value:a,onDateChange:t,minDate:s,maxDate:c,className:o=""}){const r=new Date,[l,i]=m.useState(a||r),n=l.getFullYear(),d=l.getMonth(),p=new Date(n,d,1),h=new Date(n,d+1,0),_=p.getDay(),$=h.getDate(),u=()=>i(new Date(n,d-1,1)),f=()=>i(new Date(n,d+1,1)),y=N=>N===r.getDate()&&d===r.getMonth()&&n===r.getFullYear(),b=N=>a?N===a.getDate()&&d===a.getMonth()&&n===a.getFullYear():!1,v=N=>{const z=new Date(n,d,N);return!!(s&&z<s||c&&z>c)},C=N=>{v(N)||t?.(new Date(n,d,N))},k=[];for(let N=0;N<_;N++)k.push(e.jsx("div",{className:`${R.day} ${R.otherMonth}`},`prev-${N}`));for(let N=1;N<=$;N++){const z=[R.day,y(N)&&R.today,b(N)&&R.selected,v(N)&&R.disabled].filter(Boolean).join(" ");k.push(e.jsx("button",{className:z,onClick:()=>C(N),children:N},N))}return e.jsxs("div",{className:`${R.calendar} ${o}`,children:[e.jsxs("div",{className:R.header,children:[e.jsx("button",{className:R.navBtn,onClick:u,children:"←"}),e.jsxs("span",{className:R.monthYear,children:[Gt[d]," ",n]}),e.jsx("button",{className:R.navBtn,onClick:f,children:"→"})]}),e.jsx("div",{className:R.weekDays,children:Ot.map(N=>e.jsx("div",{className:R.weekDay,children:N},N))}),e.jsx("div",{className:R.days,children:k})]})}Ja.displayName="Calendar";const ge={colorPicker:"_colorPicker_12itg_11",preview:"_preview_12itg_29",swatch:"_swatch_12itg_51",value:"_value_12itg_67",presets:"_presets_12itg_85",preset:"_preset_12itg_85",active:"_active_12itg_125",inputWrapper:"_inputWrapper_12itg_139",colorInput:"_colorInput_12itg_149",textInput:"_textInput_12itg_185"},Ut=["#dc2626","#ea580c","#d97706","#16a34a","#0284c7","#7c3aed","#db2777","#1f2937","#f43f5e","#f97316","#eab308","#22c55e","#06b6d4","#8b5cf6","#ec4899","#6b7280"];function Xa({value:a="#dc2626",onColorChange:t,presets:s=Ut,showInput:c=!0,className:o=""}){const[r,l]=m.useState(a);m.useEffect(()=>{l(a)},[a]);const i=n=>{l(n),t?.(n)};return e.jsxs("div",{className:`${ge.colorPicker} ${o}`,children:[e.jsxs("div",{className:ge.preview,children:[e.jsx("div",{className:ge.swatch,style:{backgroundColor:r}}),e.jsx("span",{className:ge.value,children:r})]}),e.jsx("div",{className:ge.presets,children:s.map(n=>e.jsx("button",{className:`${ge.preset} ${r===n?ge.active:""}`,style:{backgroundColor:n},onClick:()=>i(n),"aria-label":`Select color ${n}`},n))}),c&&e.jsxs("div",{className:ge.inputWrapper,children:[e.jsx("input",{type:"color",className:ge.colorInput,value:r,onChange:n=>i(n.target.value)}),e.jsx("input",{type:"text",className:ge.textInput,value:r,onChange:n=>i(n.target.value),placeholder:"#000000"})]})]})}Xa.displayName="ColorPicker";const q={notificationCenter:"_notificationCenter_1t8n1_11",trigger:"_trigger_1t8n1_23",badge:"_badge_1t8n1_71",dropdown:"_dropdown_1t8n1_117",open:"_open_1t8n1_157",header:"_header_1t8n1_171",title:"_title_1t8n1_187",markAll:"_markAll_1t8n1_203",item:"_item_1t8n1_233",unread:"_unread_1t8n1_265",icon:"_icon_1t8n1_273",content:"_content_1t8n1_301",message:"_message_1t8n1_311",time:"_time_1t8n1_325",empty:"_empty_1t8n1_341",emptyIcon:"_emptyIcon_1t8n1_353",emptyText:"_emptyText_1t8n1_363"};function Za({notifications:a,onMarkAllRead:t,onNotificationClick:s,className:c=""}){const[o,r]=m.useState(!1),l=m.useRef(null),i=a.filter(n=>!n.read).length;return m.useEffect(()=>{const n=d=>{l.current&&!l.current.contains(d.target)&&r(!1)};return o&&document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[o]),e.jsxs("div",{ref:l,className:`${q.notificationCenter} ${o?q.open:""} ${c}`,children:[e.jsxs("button",{className:q.trigger,onClick:()=>r(!o),children:["🔔",i>0&&e.jsx("span",{className:q.badge,children:i})]}),e.jsxs("div",{className:q.dropdown,children:[e.jsxs("div",{className:q.header,children:[e.jsx("span",{className:q.title,children:"Bildirimler"}),i>0&&e.jsx("button",{className:q.markAll,onClick:t,children:"Tümünü Oku"})]}),a.length===0?e.jsxs("div",{className:q.empty,children:[e.jsx("div",{className:q.emptyIcon,children:"📭"}),e.jsx("div",{className:q.emptyText,children:"Bildirim Yok"})]}):a.map(n=>e.jsxs("div",{className:`${q.item} ${n.read?"":q.unread}`,onClick:()=>s?.(n.id),children:[e.jsx("div",{className:q.icon,children:n.icon||"📌"}),e.jsxs("div",{className:q.content,children:[e.jsx("div",{className:q.message,children:n.message}),e.jsx("div",{className:q.time,children:n.time})]})]},n.id))]})]})}Za.displayName="NotificationCenter";const D={posterCard:"_posterCard_ajba8_11",image:"_image_ajba8_45",imageContainer:"_imageContainer_ajba8_57",placeholder:"_placeholder_ajba8_85",gradientOverlay:"_gradientOverlay_ajba8_107",badges:"_badges_ajba8_129",badge:"_badge_ajba8_129",new:"_new_ajba8_175",hot:"_hot_ajba8_183",completed:"_completed_ajba8_191",adult:"_adult_ajba8_199",content:"_content_ajba8_211",title:"_title_ajba8_229",genres:"_genres_ajba8_265",genre:"_genre_ajba8_265",genreMore:"_genreMore_ajba8_307",meta:"_meta_ajba8_329",metaItem:"_metaItem_ajba8_343",rating:"_rating_ajba8_359",sm:"_sm_ajba8_409",lg:"_lg_ajba8_435"};function Ra({image:a,title:t,rating:s,showRating:c=!1,genres:o=[],maxGenres:r=2,chapters:l,status:i,badges:n=[],isAdult:d=!1,size:p="md",onClick:h,className:_=""}){const $=[D.posterCard,p!=="md"&&D[p],_].filter(Boolean).join(" "),u=o.slice(0,r),f=o.length-r,y=d?[{label:"+18",type:"adult"},...n]:n;return e.jsx("div",{className:$,onClick:h,children:e.jsxs("div",{className:D.imageContainer,children:[a?e.jsx("img",{src:a,alt:t,className:D.image,loading:"lazy"}):e.jsx("div",{className:D.placeholder,children:"📚"}),e.jsx("div",{className:D.gradientOverlay}),y.length>0&&e.jsx("div",{className:D.badges,children:y.map((b,v)=>e.jsx("span",{className:`${D.badge} ${b.type?D[b.type]:""}`,children:b.label},v))}),c&&s!==void 0&&e.jsx("span",{className:D.rating,children:s.toFixed(1)}),e.jsxs("div",{className:D.content,children:[e.jsx("h3",{className:D.title,children:t}),u.length>0&&e.jsxs("div",{className:D.genres,children:[u.map((b,v)=>e.jsx("span",{className:D.genre,children:b},v)),f>0&&e.jsxs("span",{className:D.genreMore,children:["+",f]})]}),(l!==void 0||i)&&e.jsxs("div",{className:D.meta,children:[l!==void 0&&e.jsxs("span",{className:D.metaItem,children:[l," Bölüm"]}),i&&e.jsxs("span",{className:D.metaItem,children:["• ",i]})]})]})]})})}Ra.displayName="MangaPosterCard";const H={chapterList:"_chapterList_1s625_11",header:"_header_1s625_35",title:"_title_1s625_53",chapterCount:"_chapterCount_1s625_69",chapterItem:"_chapterItem_1s625_83",read:"_read_1s625_123",chapterTitle:"_chapterTitle_1s625_131",chapterNumber:"_chapterNumber_1s625_141",chapterInfo:"_chapterInfo_1s625_167",chapterMeta:"_chapterMeta_1s625_197",chapterDate:"_chapterDate_1s625_211",newBadge:"_newBadge_1s625_225",readIndicator:"_readIndicator_1s625_247",views:"_views_1s625_269",compact:"_compact_1s625_283"};function et({chapters:a,title:t="Bölümler",onChapterClick:s,compact:c=!1,showViews:o=!1,className:r=""}){const l=[H.chapterList,c&&H.compact,r].filter(Boolean).join(" "),i=n=>n>=1e6?`${(n/1e6).toFixed(1)}M`:n>=1e3?`${(n/1e3).toFixed(1)}K`:n.toString();return e.jsxs("div",{className:l,children:[e.jsxs("div",{className:H.header,children:[e.jsx("span",{className:H.title,children:t}),e.jsxs("span",{className:H.chapterCount,children:[a.length," Bölüm"]})]}),a.map(n=>e.jsxs("div",{className:`${H.chapterItem} ${n.isRead?H.read:""}`,onClick:()=>s?.(n),children:[e.jsxs("span",{className:H.chapterNumber,children:["#",n.number]}),e.jsxs("div",{className:H.chapterInfo,children:[e.jsx("div",{className:H.chapterTitle,children:n.title||`Bölüm ${n.number}`}),e.jsxs("div",{className:H.chapterMeta,children:[n.date&&e.jsx("span",{className:H.chapterDate,children:n.date}),n.isNew&&e.jsx("span",{className:H.newBadge,children:"Yeni"})]})]}),o&&n.views!==void 0&&e.jsxs("span",{className:H.views,children:["👁 ",i(n.views)]}),n.isRead&&e.jsx("span",{className:H.readIndicator,children:"✓"})]},n.number))]})}et.displayName="ChapterList";const Ce={readingProgress:"_readingProgress_n5j27_11",header:"_header_n5j27_35",label:"_label_n5j27_47",percentage:"_percentage_n5j27_63",progressBar:"_progressBar_n5j27_79",progressFill:"_progressFill_n5j27_97",chapterInfo:"_chapterInfo_n5j27_113",inline:"_inline_n5j27_133",card:"_card_n5j27_175",nearComplete:"_nearComplete_n5j27_203",pulse:"_pulse_n5j27_1"};function at({currentChapter:a,totalChapters:t,label:s="Okuma İlerlemesi",variant:c="default",showChapterInfo:o=!0,className:r=""}){const l=Math.round(a/t*100),i=l>=90,n=[Ce.readingProgress,c!=="default"&&Ce[c],i&&Ce.nearComplete,r].filter(Boolean).join(" ");return e.jsxs("div",{className:n,children:[e.jsxs("div",{className:Ce.header,children:[e.jsx("span",{className:Ce.label,children:s}),e.jsxs("span",{className:Ce.percentage,children:[l,"%"]})]}),e.jsx("div",{className:Ce.progressBar,children:e.jsx("div",{className:Ce.progressFill,style:{width:`${l}%`}})}),o&&c!=="inline"&&e.jsxs("div",{className:Ce.chapterInfo,children:[e.jsxs("span",{children:["Bölüm ",a]}),e.jsxs("span",{children:[t," bölümden"]})]})]})}at.displayName="ReadingProgress";const P={commentCard:"_commentCard_1eniv_11",avatar:"_avatar_1eniv_33",content:"_content_1eniv_79",header:"_header_1eniv_91",username:"_username_1eniv_107",badge:"_badge_1eniv_121",author:"_author_1eniv_141",mod:"_mod_1eniv_149",time:"_time_1eniv_157",body:"_body_1eniv_171",chapterRef:"_chapterRef_1eniv_189",actions:"_actions_1eniv_223",action:"_action_1eniv_223",liked:"_liked_1eniv_277",spoiler:"_spoiler_1eniv_287",spoilerOverlay:"_spoilerOverlay_1eniv_305",replyIndicator:"_replyIndicator_1eniv_341"};function tt({avatar:a,username:t,badge:s,comment:c,time:o,chapter:r,likes:l=0,isLiked:i=!1,isSpoiler:n=!1,replyTo:d,onLike:p,onReply:h,className:_=""}){const[$,u]=m.useState(!1),f=y=>{switch(y){case"author":return"Yazar";case"mod":return"Mod";case"vip":return"VIP";default:return""}};return e.jsxs("div",{className:`${P.commentCard} ${_}`,children:[e.jsx("div",{className:P.avatar,children:a?e.jsx("img",{src:a,alt:t}):t.charAt(0).toUpperCase()}),e.jsxs("div",{className:P.content,children:[e.jsxs("div",{className:P.header,children:[e.jsx("span",{className:P.username,children:t}),s&&e.jsx("span",{className:`${P.badge} ${P[s]}`,children:f(s)}),e.jsx("span",{className:P.time,children:o})]}),r!==void 0&&e.jsxs("span",{className:P.chapterRef,children:["📖 Bölüm ",r]}),d&&e.jsxs("div",{className:P.replyIndicator,children:["↩ @",d," kullanıcısına yanıt"]}),e.jsxs("div",{className:n&&!$?P.spoiler:"",children:[e.jsx("p",{className:P.body,children:c}),n&&!$&&e.jsx("div",{className:P.spoilerOverlay,onClick:()=>u(!0),children:"🔒 Spoiler - Görmek için tıkla"})]}),e.jsxs("div",{className:P.actions,children:[e.jsxs("button",{className:`${P.action} ${i?P.liked:""}`,onClick:p,children:[i?"❤️":"🤍"," ",l]}),e.jsx("button",{className:P.action,onClick:h,children:"💬 Yanıtla"})]})]})]})}tt.displayName="CommentCard";const Ye={genreChip:"_genreChip_zuez4_11",selected:"_selected_zuez4_65",icon:"_icon_zuez4_89",count:"_count_zuez4_99",sm:"_sm_zuez4_127",lg:"_lg_zuez4_137",outline:"_outline_zuez4_149",filled:"_filled_zuez4_169",action:"_action_zuez4_179",adventure:"_adventure_zuez4_187",comedy:"_comedy_zuez4_195",drama:"_drama_zuez4_203",fantasy:"_fantasy_zuez4_211",horror:"_horror_zuez4_219",romance:"_romance_zuez4_227",scifi:"_scifi_zuez4_235",sports:"_sports_zuez4_243",supernatural:"_supernatural_zuez4_251"},Ht={action:"⚔️",adventure:"🗺️",comedy:"😂",drama:"🎭",fantasy:"🧙",horror:"👻",romance:"💕",scifi:"🚀",sports:"⚽",supernatural:"✨",mystery:"🔍",slice_of_life:"☀️",psychological:"🧠",thriller:"😱",school:"🏫",isekai:"🌀",mecha:"🤖",music:"🎵",shounen:"👦",shoujo:"👧",seinen:"👨",josei:"👩"};function st({label:a,icon:t,count:s,selected:c=!1,size:o="md",variant:r="default",onClick:l,className:i=""}){const n=[Ye.genreChip,c&&Ye.selected,o!=="md"&&Ye[o],r!=="default"&&Ye[r],i].filter(Boolean).join(" "),d=a.toLowerCase().replace(/\s+/g,"_"),p=t??Ht[d];return e.jsxs("button",{className:n,onClick:l,"data-genre":d,children:[p&&e.jsx("span",{className:Ye.icon,children:p}),a,s!==void 0&&e.jsx("span",{className:Ye.count,children:s})]})}st.displayName="GenreChip";const T={searchBar:"_searchBar_1pvbl_11",inputWrapper:"_inputWrapper_1pvbl_25",searchIcon:"_searchIcon_1pvbl_63",input:"_input_1pvbl_25",clearBtn:"_clearBtn_1pvbl_107",dropdown:"_dropdown_1pvbl_149",section:"_section_1pvbl_183",sectionTitle:"_sectionTitle_1pvbl_201",resultItem:"_resultItem_1pvbl_221",resultImage:"_resultImage_1pvbl_247",resultInfo:"_resultInfo_1pvbl_263",resultTitle:"_resultTitle_1pvbl_273",resultMeta:"_resultMeta_1pvbl_291",recentItem:"_recentItem_1pvbl_305",recentText:"_recentText_1pvbl_331",recentIcon:"_recentIcon_1pvbl_349",removeRecent:"_removeRecent_1pvbl_359",loading:"_loading_1pvbl_387",noResults:"_noResults_1pvbl_405"};function nt({placeholder:a="Manga ara...",results:t=[],recentSearches:s=[],isLoading:c=!1,onSearch:o,onResultClick:r,onRecentClick:l,onClearRecent:i,className:n=""}){const[d,p]=m.useState(""),[h,_]=m.useState(!1),$=m.useRef(null);m.useEffect(()=>{const v=C=>{$.current&&!$.current.contains(C.target)&&_(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]);const u=v=>{p(v),o?.(v),_(!0)},f=v=>{r?.(v),p(""),_(!1)},y=v=>{p(v),l?.(v),o?.(v)},b=h&&(d.length>0||s.length>0);return e.jsxs("div",{ref:$,className:`${T.searchBar} ${n}`,children:[e.jsxs("div",{className:T.inputWrapper,children:[e.jsx("span",{className:T.searchIcon,children:"🔍"}),e.jsx("input",{type:"text",className:T.input,placeholder:a,value:d,onChange:v=>u(v.target.value),onFocus:()=>_(!0)}),d&&e.jsx("button",{className:T.clearBtn,onClick:()=>{p(""),o?.("")},children:"✕"})]}),b&&e.jsx("div",{className:T.dropdown,children:c?e.jsx("div",{className:T.loading,children:"⏳ Aranıyor..."}):e.jsxs(e.Fragment,{children:[d.length>0&&t.length>0&&e.jsxs("div",{className:T.section,children:[e.jsx("div",{className:T.sectionTitle,children:"Sonuçlar"}),t.map(v=>e.jsxs("div",{className:T.resultItem,onClick:()=>f(v),children:[v.image&&e.jsx("img",{src:v.image,alt:v.title,className:T.resultImage}),e.jsxs("div",{className:T.resultInfo,children:[e.jsx("div",{className:T.resultTitle,children:v.title}),v.meta&&e.jsx("div",{className:T.resultMeta,children:v.meta})]})]},v.id))]}),d.length>0&&t.length===0&&!c&&e.jsxs("div",{className:T.noResults,children:['"',d,'" için sonuç bulunamadı']}),d.length===0&&s.length>0&&e.jsxs("div",{className:T.section,children:[e.jsx("div",{className:T.sectionTitle,children:"Son Aramalar"}),s.map((v,C)=>e.jsxs("div",{className:T.recentItem,onClick:()=>y(v),children:[e.jsxs("span",{className:T.recentText,children:[e.jsx("span",{className:T.recentIcon,children:"🕐"}),v]}),e.jsx("button",{className:T.removeRecent,onClick:k=>{k.stopPropagation(),i?.(v)},children:"✕"})]},C))]})]})})]})}nt.displayName="SearchBar";const V={userCard:"_userCard_1cr4b_11",avatar:"_avatar_1cr4b_43",avatarImage:"_avatarImage_1cr4b_55",levelBadge:"_levelBadge_1cr4b_103",username:"_username_1cr4b_141",roleBadge:"_roleBadge_1cr4b_159",admin:"_admin_1cr4b_181",mod:"_mod_1cr4b_189",vip:"_vip_1cr4b_197",translator:"_translator_1cr4b_205",stats:"_stats_1cr4b_215",stat:"_stat_1cr4b_215",statValue:"_statValue_1cr4b_247",statLabel:"_statLabel_1cr4b_261",joinDate:"_joinDate_1cr4b_275",actions:"_actions_1cr4b_289",horizontal:"_horizontal_1cr4b_303",info:"_info_1cr4b_333",compact:"_compact_1cr4b_365"},Vt={member:"Üye",admin:"Admin",mod:"Moderatör",vip:"VIP",translator:"Çevirmen"};function ot({avatar:a,username:t,level:s,role:c="member",stats:o=[],joinDate:r,variant:l="default",actions:i,onClick:n,className:d=""}){const p=[V.userCard,l!=="default"&&V[l],d].filter(Boolean).join(" "),h=_=>typeof _=="string"?_:_>=1e6?`${(_/1e6).toFixed(1)}M`:_>=1e3?`${(_/1e3).toFixed(1)}K`:_.toString();return e.jsxs("div",{className:p,onClick:n,children:[e.jsxs("div",{className:V.avatar,children:[e.jsx("div",{className:V.avatarImage,children:a?e.jsx("img",{src:a,alt:t}):t.charAt(0).toUpperCase()}),s!==void 0&&e.jsxs("span",{className:V.levelBadge,children:["LV.",s]})]}),e.jsxs("div",{className:V.info,children:[e.jsx("h3",{className:V.username,children:t}),c!=="member"&&e.jsx("span",{className:`${V.roleBadge} ${V[c]}`,children:Vt[c]}),o.length>0&&e.jsx("div",{className:V.stats,children:o.map((_,$)=>e.jsxs("div",{className:V.stat,children:[e.jsx("span",{className:V.statValue,children:h(_.value)}),e.jsx("span",{className:V.statLabel,children:_.label})]},$))}),r&&e.jsxs("span",{className:V.joinDate,children:["📅 ",r]}),i&&e.jsx("div",{className:V.actions,children:i})]})]})}ot.displayName="UserCard";const w={detailHeader:"_detailHeader_1lzr9_11",cover:"_cover_1lzr9_33",coverImage:"_coverImage_1lzr9_43",coverPlaceholder:"_coverPlaceholder_1lzr9_61",info:"_info_1lzr9_87",title:"_title_1lzr9_101",altTitle:"_altTitle_1lzr9_119",meta:"_meta_1lzr9_135",metaItem:"_metaItem_1lzr9_147",metaIcon:"_metaIcon_1lzr9_165",metaLabel:"_metaLabel_1lzr9_173",badges:"_badges_1lzr9_183",badge:"_badge_1lzr9_183",ongoing:"_ongoing_1lzr9_219",completed:"_completed_1lzr9_227",hiatus:"_hiatus_1lzr9_235",adult:"_adult_1lzr9_243",stats:"_stats_1lzr9_253",stat:"_stat_1lzr9_253",statValue:"_statValue_1lzr9_285",statLabel:"_statLabel_1lzr9_299",description:"_description_1lzr9_313",descriptionClamped:"_descriptionClamped_1lzr9_327",readMore:"_readMore_1lzr9_343",actions:"_actions_1lzr9_365"},Yt={ongoing:"Devam Ediyor",completed:"Tamamlandı",hiatus:"Ara Verildi"};function ct({cover:a,title:t,altTitle:s,author:c,artist:o,status:r,isAdult:l=!1,genres:i=[],rating:n,views:d,chapters:p,followers:h,description:_,actions:$,className:u=""}){const[f,y]=m.useState(!1),b=v=>v>=1e6?`${(v/1e6).toFixed(1)}M`:v>=1e3?`${(v/1e3).toFixed(1)}K`:v.toString();return e.jsxs("div",{className:`${w.detailHeader} ${u}`,children:[e.jsx("div",{className:w.cover,children:a?e.jsx("img",{src:a,alt:t,className:w.coverImage}):e.jsx("div",{className:w.coverPlaceholder,children:"📚"})}),e.jsxs("div",{className:w.info,children:[e.jsx("h1",{className:w.title,children:t}),s&&e.jsx("p",{className:w.altTitle,children:s}),e.jsxs("div",{className:w.meta,children:[c&&e.jsxs("span",{className:w.metaItem,children:[e.jsx("span",{className:w.metaIcon,children:"✍️"}),e.jsx("span",{className:w.metaLabel,children:"Yazar:"})," ",c]}),o&&o!==c&&e.jsxs("span",{className:w.metaItem,children:[e.jsx("span",{className:w.metaIcon,children:"🎨"}),e.jsx("span",{className:w.metaLabel,children:"Çizer:"})," ",o]})]}),e.jsxs("div",{className:w.badges,children:[r&&e.jsx("span",{className:`${w.badge} ${w[r]}`,children:Yt[r]}),l&&e.jsx("span",{className:`${w.badge} ${w.adult}`,children:"+18"}),i.slice(0,4).map((v,C)=>e.jsx("span",{className:w.badge,children:v},C))]}),e.jsxs("div",{className:w.stats,children:[n!==void 0&&e.jsxs("div",{className:w.stat,children:[e.jsxs("span",{className:w.statValue,children:["⭐ ",n.toFixed(1)]}),e.jsx("span",{className:w.statLabel,children:"Puan"})]}),d!==void 0&&e.jsxs("div",{className:w.stat,children:[e.jsx("span",{className:w.statValue,children:b(d)}),e.jsx("span",{className:w.statLabel,children:"Görüntülenme"})]}),p!==void 0&&e.jsxs("div",{className:w.stat,children:[e.jsx("span",{className:w.statValue,children:p}),e.jsx("span",{className:w.statLabel,children:"Bölüm"})]}),h!==void 0&&e.jsxs("div",{className:w.stat,children:[e.jsx("span",{className:w.statValue,children:b(h)}),e.jsx("span",{className:w.statLabel,children:"Takipçi"})]})]}),_&&e.jsxs("div",{children:[e.jsx("p",{className:`${w.description} ${f?"":w.descriptionClamped}`,children:_}),_.length>200&&e.jsx("button",{className:w.readMore,onClick:()=>y(!f),children:f?"Daha Az":"Devamını Oku"})]}),$&&e.jsx("div",{className:w.actions,children:$})]})]})}ct.displayName="MangaDetailHeader";const De={favoriteButton:"_favoriteButton_xie9w_11",active:"_active_xie9w_79",icon:"_icon_xie9w_91",heartBeat:"_heartBeat_xie9w_1",count:"_count_xie9w_121",iconOnly:"_iconOnly_xie9w_135",sm:"_sm_xie9w_159",lg:"_lg_xie9w_177",particles:"_particles_xie9w_197",particle:"_particle_xie9w_197",particleBurst:"_particleBurst_xie9w_1"};function rt({isFavorite:a=!1,count:t,showCount:s=!0,iconOnly:c=!1,size:o="md",onToggle:r,className:l=""}){const i=[De.favoriteButton,a&&De.active,c&&De.iconOnly,o!=="md"&&De[o],l].filter(Boolean).join(" "),n=()=>{r?.(!a)};return e.jsxs("button",{className:i,onClick:n,children:[e.jsx("span",{className:De.icon,children:a?"❤️":"🤍"}),s&&t!==void 0&&!c&&e.jsx("span",{className:De.count,children:t}),e.jsx("div",{className:De.particles,children:[...Array(8)].map((d,p)=>e.jsx("span",{className:De.particle},p))})]})}rt.displayName="FavoriteButton";const G={bookmarkWrapper:"_bookmarkWrapper_zn342_11",bookmarkButton:"_bookmarkButton_zn342_21",active:"_active_zn342_75",icon:"_icon_zn342_87",arrow:"_arrow_zn342_95",open:"_open_zn342_105",dropdown:"_dropdown_zn342_115",dropdownHeader:"_dropdownHeader_zn342_145",chapterItem:"_chapterItem_zn342_165",selected:"_selected_zn342_201",chapterNumber:"_chapterNumber_zn342_211",chapterDate:"_chapterDate_zn342_221",currentBadge:"_currentBadge_zn342_233",dropdownActions:"_dropdownActions_zn342_255",actionBtn:"_actionBtn_zn342_271",remove:"_remove_zn342_315"};function lt({isBookmarked:a=!1,bookmarkedChapter:t,chapters:s=[],label:c="Yer İşareti",onBookmarkChange:o,className:r=""}){const[l,i]=m.useState(!1),n=m.useRef(null);m.useEffect(()=>{const _=$=>{n.current&&!n.current.contains($.target)&&i(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]);const d=_=>{o?.(_),i(!1)},p=()=>{o?.(null),i(!1)},h=[G.bookmarkButton,a&&G.active,l&&G.open].filter(Boolean).join(" ");return e.jsxs("div",{ref:n,className:`${G.bookmarkWrapper} ${r}`,children:[e.jsxs("button",{className:h,onClick:()=>i(!l),children:[e.jsx("span",{className:G.icon,children:a?"🔖":"📑"}),c,s.length>0&&e.jsx("span",{className:G.arrow,children:"▼"})]}),l&&s.length>0&&e.jsxs("div",{className:G.dropdown,children:[e.jsx("div",{className:G.dropdownHeader,children:"Bölüm Seç"}),s.slice(0,10).map(_=>e.jsxs("div",{className:`${G.chapterItem} ${t===_.number?G.selected:""}`,onClick:()=>d(_.number),children:[e.jsxs("span",{className:G.chapterNumber,children:["Bölüm ",_.number]}),t===_.number&&e.jsx("span",{className:G.currentBadge,children:"Kayıtlı"}),_.date&&e.jsx("span",{className:G.chapterDate,children:_.date})]},_.number)),a&&e.jsx("div",{className:G.dropdownActions,children:e.jsx("button",{className:`${G.actionBtn} ${G.remove}`,onClick:p,children:"Kaldır"})})]})]})}lt.displayName="BookmarkButton";const x={readerToolbar:"_readerToolbar_614ag_11",navGroup:"_navGroup_614ag_39",navBtn:"_navBtn_614ag_51",chapterInfo:"_chapterInfo_614ag_113",chapterTitle:"_chapterTitle_614ag_127",mangaTitle:"_mangaTitle_614ag_141",toolsGroup:"_toolsGroup_614ag_155",toolBtn:"_toolBtn_614ag_167",active:"_active_614ag_215",divider:"_divider_614ag_229",modeGroup:"_modeGroup_614ag_311",modeBtn:"_modeBtn_614ag_321",compact:"_compact_614ag_381",sticky:"_sticky_614ag_423"};function it({mangaTitle:a,chapterTitle:t,currentPage:s=1,totalPages:c=1,hasPrevChapter:o=!1,hasNextChapter:r=!1,readingMode:l="vertical",isFullscreen:i=!1,compact:n=!1,sticky:d=!1,onPrevChapter:p,onNextChapter:h,onPrevPage:_,onNextPage:$,onModeChange:u,onFullscreenToggle:f,onSettingsClick:y,className:b=""}){const v=[x.readerToolbar,n&&x.compact,d&&x.sticky,b].filter(Boolean).join(" ");return e.jsxs("div",{className:v,children:[e.jsxs("div",{className:x.navGroup,children:[e.jsx("button",{className:x.navBtn,disabled:!o,onClick:p,title:"Önceki Bölüm",children:"⏮"}),e.jsx("button",{className:x.navBtn,disabled:s<=1,onClick:_,title:"Önceki Sayfa",children:"◀"}),e.jsx("button",{className:x.navBtn,disabled:s>=c,onClick:$,title:"Sonraki Sayfa",children:"▶"}),e.jsx("button",{className:x.navBtn,disabled:!r,onClick:h,title:"Sonraki Bölüm",children:"⏭"})]}),e.jsxs("div",{className:x.chapterInfo,children:[e.jsx("span",{className:x.chapterTitle,children:t}),e.jsx("span",{className:x.mangaTitle,children:a})]}),e.jsxs("div",{className:x.toolsGroup,children:[e.jsxs("div",{className:x.modeGroup,children:[e.jsx("button",{className:`${x.modeBtn} ${l==="vertical"?x.active:""}`,onClick:()=>u?.("vertical"),title:"Dikey",children:"↕"}),e.jsx("button",{className:`${x.modeBtn} ${l==="horizontal"?x.active:""}`,onClick:()=>u?.("horizontal"),title:"Yatay",children:"↔"}),e.jsx("button",{className:`${x.modeBtn} ${l==="single"?x.active:""}`,onClick:()=>u?.("single"),title:"Tek Sayfa",children:"▢"})]}),e.jsx("div",{className:x.divider}),e.jsx("button",{className:`${x.toolBtn} ${i?x.active:""}`,onClick:f,title:i?"Tam Ekrandan Çık":"Tam Ekran",children:"⛶"}),e.jsx("button",{className:x.toolBtn,onClick:y,title:"Ayarlar",children:"⚙️"})]})]})}it.displayName="ReaderToolbar";const Be={pageCounter:"_pageCounter_so3oz_11",current:"_current_so3oz_37",separator:"_separator_so3oz_53",total:"_total_so3oz_67",withProgress:"_withProgress_so3oz_81",progressBar:"_progressBar_so3oz_93",progressFill:"_progressFill_so3oz_109",numbers:"_numbers_so3oz_123",compact:"_compact_so3oz_137",floating:"_floating_so3oz_173",pill:"_pill_so3oz_223"};function dt({currentPage:a,totalPages:t,showProgress:s=!1,variant:c="default",className:o=""}){const r=a/t*100,l=[Be.pageCounter,s&&Be.withProgress,c!=="default"&&Be[c],o].filter(Boolean).join(" ");return e.jsxs("div",{className:l,children:[s&&e.jsx("div",{className:Be.progressBar,children:e.jsx("div",{className:Be.progressFill,style:{width:`${r}%`}})}),e.jsxs("div",{className:Be.numbers,children:[e.jsx("span",{className:Be.current,children:a}),e.jsx("span",{className:Be.separator,children:"/"}),e.jsx("span",{className:Be.total,children:t})]})]})}dt.displayName="PageCounter";const E={likeButton:"_likeButton_hi7z6_11",liked:"_liked_hi7z6_65",icon:"_icon_hi7z6_77",disliked:"_disliked_hi7z6_87",count:"_count_hi7z6_129",likeDislikeGroup:"_likeDislikeGroup_hi7z6_145",vertical:"_vertical_hi7z6_181",floatingOne:"_floatingOne_hi7z6_275"};function _t({state:a="none",likeCount:t=0,dislikeCount:s=0,showDislike:c=!1,vertical:o=!1,onLike:r,onDislike:l,className:i=""}){const n=d=>d>=1e6?`${(d/1e6).toFixed(1)}M`:d>=1e3?`${(d/1e3).toFixed(1)}K`:d.toString();return c?e.jsxs("div",{className:`${E.likeDislikeGroup} ${i}`,children:[e.jsxs("button",{className:`${E.likeButton} ${a==="liked"?E.liked:""} ${o?E.vertical:""}`,onClick:r,children:[e.jsx("span",{className:E.icon,children:"👍"}),e.jsx("span",{className:E.count,children:n(t)}),e.jsx("span",{className:E.floatingOne,children:"+1"})]}),e.jsxs("button",{className:`${E.likeButton} ${a==="disliked"?E.disliked:""} ${o?E.vertical:""}`,onClick:l,children:[e.jsx("span",{className:E.icon,children:"👎"}),e.jsx("span",{className:E.count,children:n(s)})]})]}):e.jsxs("button",{className:`${E.likeButton} ${a==="liked"?E.liked:""} ${o?E.vertical:""} ${i}`,onClick:r,children:[e.jsx("span",{className:E.icon,children:"👍"}),e.jsx("span",{className:E.count,children:n(t)}),e.jsx("span",{className:E.floatingOne,children:"+1"})]})}_t.displayName="LikeButton";const ee={shareWrapper:"_shareWrapper_v0g7p_11",shareButton:"_shareButton_v0g7p_21",icon:"_icon_v0g7p_87",dropdown:"_dropdown_v0g7p_97",dropdownTitle:"_dropdownTitle_v0g7p_131",socialGrid:"_socialGrid_v0g7p_153",socialBtn:"_socialBtn_v0g7p_165",twitter:"_twitter_v0g7p_211",facebook:"_facebook_v0g7p_221",whatsapp:"_whatsapp_v0g7p_231",telegram:"_telegram_v0g7p_241",reddit:"_reddit_v0g7p_251",discord:"_discord_v0g7p_261",copy:"_copy_v0g7p_271",more:"_more_v0g7p_281",divider:"_divider_v0g7p_291",copyLink:"_copyLink_v0g7p_305",copied:"_copied_v0g7p_351",copyIcon:"_copyIcon_v0g7p_361",copyText:"_copyText_v0g7p_369",iconOnly:"_iconOnly_v0g7p_385"},Kt={twitter:"𝕏",facebook:"📘",whatsapp:"💬",telegram:"✈️",reddit:"🔴",discord:"🎮"};function pt({url:a=typeof window<"u"?window.location.href:"",title:t="",platforms:s=["twitter","facebook","whatsapp","telegram"],showCopyLink:c=!0,iconOnly:o=!1,onShare:r,className:l=""}){const[i,n]=m.useState(!1),[d,p]=m.useState(!1),h=m.useRef(null);m.useEffect(()=>{const f=y=>{h.current&&!h.current.contains(y.target)&&n(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[]);const _=f=>{const y=encodeURIComponent(a),b=encodeURIComponent(t),v={twitter:`https://twitter.com/intent/tweet?url=${y}&text=${b}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${y}`,whatsapp:`https://wa.me/?text=${b}%20${y}`,telegram:`https://t.me/share/url?url=${y}&text=${b}`,reddit:`https://reddit.com/submit?url=${y}&title=${b}`,discord:"https://discord.com/channels/@me"};window.open(v[f],"_blank","width=600,height=400"),r?.(f),n(!1)},$=async()=>{try{await navigator.clipboard.writeText(a),p(!0),r?.("copy"),setTimeout(()=>p(!1),2e3)}catch(f){console.error("Failed to copy:",f)}},u=[ee.shareButton,o&&ee.iconOnly].filter(Boolean).join(" ");return e.jsxs("div",{ref:h,className:`${ee.shareWrapper} ${l}`,children:[e.jsxs("button",{className:u,onClick:()=>n(!i),children:[e.jsx("span",{className:ee.icon,children:"📤"}),!o&&"Paylaş"]}),i&&e.jsxs("div",{className:ee.dropdown,children:[e.jsx("div",{className:ee.dropdownTitle,children:"Paylaş"}),e.jsx("div",{className:ee.socialGrid,children:s.map(f=>e.jsx("button",{className:`${ee.socialBtn} ${ee[f]}`,onClick:()=>_(f),title:f,children:Kt[f]},f))}),c&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:ee.divider}),e.jsxs("button",{className:`${ee.copyLink} ${d?ee.copied:""}`,onClick:$,children:[e.jsx("span",{className:ee.copyIcon,children:d?"✓":"📋"}),e.jsx("span",{className:ee.copyText,children:d?"Kopyalandı!":"Linki Kopyala"})]})]})]})]})}pt.displayName="ShareButton";const _e={followButton:"_followButton_1snff_11",following:"_following_1snff_81",icon:"_icon_1snff_107",count:"_count_1snff_127",sm:"_sm_1snff_149",lg:"_lg_1snff_167",iconOnly:"_iconOnly_1snff_187",text:"_text_1snff_201",bell:"_bell_1snff_221",loading:"_loading_1snff_253",spin:"_spin_1snff_1",justFollowed:"_justFollowed_1snff_293",followPulse:"_followPulse_1snff_1"};function mt({isFollowing:a=!1,count:t,showCount:s=!1,size:c="md",variant:o="default",iconOnly:r=!1,loading:l=!1,onToggle:i,className:n=""}){const[d,p]=m.useState(!1),h=()=>{l||(a||(p(!0),setTimeout(()=>p(!1),400)),i?.(!a))},_=y=>y>=1e6?`${(y/1e6).toFixed(1)}M`:y>=1e3?`${(y/1e3).toFixed(1)}K`:y.toString(),$=()=>l?"⏳":o==="bell"?a?"🔔":"🔕":a?"✓":"+",u=()=>o==="bell"?a?"Bildirimlerde":"Bildirim Al":a?"Takip Ediliyor":"Takip Et",f=[_e.followButton,a&&_e.following,c!=="md"&&_e[c],o!=="default"&&_e[o],r&&_e.iconOnly,l&&_e.loading,d&&_e.justFollowed,n].filter(Boolean).join(" ");return e.jsxs("button",{className:f,onClick:h,children:[e.jsx("span",{className:_e.icon,children:$()}),e.jsx("span",{className:_e.text,children:a?e.jsx("span",{children:e.jsx("span",{className:_e.defaultText,children:u()})}):u()}),s&&t!==void 0&&e.jsx("span",{className:_e.count,children:_(t)})]})}mt.displayName="FollowButton";const W={overlay:"_overlay_17fla_11",modal:"_modal_17fla_41",header:"_header_17fla_111",title:"_title_17fla_127",titleIcon:"_titleIcon_17fla_149",closeBtn:"_closeBtn_17fla_157",body:"_body_17fla_199",description:"_description_17fla_207",reasonList:"_reasonList_17fla_223",reasonItem:"_reasonItem_17fla_235",selected:"_selected_17fla_279",radioCircle:"_radioCircle_17fla_291",detailsLabel:"_detailsLabel_17fla_357",detailsInput:"_detailsInput_17fla_379",footer:"_footer_17fla_425",cancelBtn:"_cancelBtn_17fla_439",submitBtn:"_submitBtn_17fla_483"},Qt=[{id:"spam",label:"Spam veya yanıltıcı içerik"},{id:"inappropriate",label:"Uygunsuz veya rahatsız edici içerik"},{id:"copyright",label:"Telif hakkı ihlali"},{id:"spoiler",label:"Spoiler işareti olmadan spoiler"},{id:"wrong_content",label:"Yanlış bölüm veya içerik"},{id:"other",label:"Diğer"}];function ht({isOpen:a,contentType:t="içerik",reasons:s=Qt,showDetails:c=!0,onClose:o,onSubmit:r}){const[l,i]=m.useState(null),[n,d]=m.useState("");m.useEffect(()=>{const _=$=>{$.key==="Escape"&&o()};return a&&(document.addEventListener("keydown",_),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",_),document.body.style.overflow=""}},[a,o]),m.useEffect(()=>{a&&(i(null),d(""))},[a]);const p=()=>{l&&(r?.(l,n||void 0),o())};if(!a)return null;const h=e.jsx("div",{className:W.overlay,onClick:o,children:e.jsxs("div",{className:W.modal,onClick:_=>_.stopPropagation(),children:[e.jsxs("div",{className:W.header,children:[e.jsxs("h2",{className:W.title,children:[e.jsx("span",{className:W.titleIcon,children:"🚨"}),"Şikayet Et"]}),e.jsx("button",{className:W.closeBtn,onClick:o,children:"✕"})]}),e.jsxs("div",{className:W.body,children:[e.jsxs("p",{className:W.description,children:["Bu ",t," neden şikayet ediyorsunuz?"]}),e.jsx("div",{className:W.reasonList,children:s.map(_=>e.jsxs("div",{className:`${W.reasonItem} ${l===_.id?W.selected:""}`,onClick:()=>i(_.id),children:[e.jsx("span",{className:W.radioCircle}),_.label]},_.id))}),c&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:W.detailsLabel,children:"Ek Açıklama (İsteğe Bağlı)"}),e.jsx("textarea",{className:W.detailsInput,placeholder:"Detaylı açıklama yazabilirsiniz...",value:n,onChange:_=>d(_.target.value)})]})]}),e.jsxs("div",{className:W.footer,children:[e.jsx("button",{className:W.cancelBtn,onClick:o,children:"İptal"}),e.jsx("button",{className:W.submitBtn,disabled:!l,onClick:p,children:"Gönder"})]})]})});return ve.createPortal(h,document.body)}ht.displayName="ReportModal";const Ee={emptyState:"_emptyState_1ueeu_11",icon:"_icon_1ueeu_33",float:"_float_1ueeu_1",title:"_title_1ueeu_71",description:"_description_1ueeu_89",action:"_action_1ueeu_107",compact:"_compact_1ueeu_117",bordered:"_bordered_1ueeu_153",card:"_card_1ueeu_169",noResults:"_noResults_1ueeu_187",noData:"_noData_1ueeu_195",error:"_error_1ueeu_203",image:"_image_1ueeu_221",illustration:"_illustration_1ueeu_257"},Jt={default:"📭",noResults:"🔍",noData:"📂",error:"⚠️"},Xt={default:"Burada henüz içerik yok",noResults:"Sonuç bulunamadı",noData:"Veri yok",error:"Bir hata oluştu"},Zt={default:"Yeni içerik eklendiğinde burada görünecek.",noResults:"Arama kriterlerinize uygun sonuç bulunamadı. Farklı anahtar kelimeler deneyin.",noData:"Görüntülenecek veri bulunmuyor.",error:"Bir şeyler yanlış gitti. Lütfen daha sonra tekrar deneyin."};function $t({icon:a,title:t,description:s,action:c,variant:o="default",type:r="default",className:l=""}){const i=[Ee.emptyState,o!=="default"&&Ee[o],r!=="default"&&Ee[r],l].filter(Boolean).join(" "),n=a??Jt[r],d=t??Xt[r],p=s??Zt[r];return e.jsxs("div",{className:i,children:[o==="illustration"?e.jsx("div",{className:Ee.icon,children:n}):e.jsx("span",{className:Ee.icon,children:n}),e.jsx("h3",{className:Ee.title,children:d}),e.jsx("p",{className:Ee.description,children:p}),c&&e.jsx("div",{className:Ee.action,children:c})]})}$t.displayName="EmptyState";const I={dataTable:"_dataTable_7o2n1_11",tableHeader:"_tableHeader_7o2n1_31",tableTitle:"_tableTitle_7o2n1_49",headerActions:"_headerActions_7o2n1_63",searchWrapper:"_searchWrapper_7o2n1_77",searchInput:"_searchInput_7o2n1_99",tableContainer:"_tableContainer_7o2n1_131",table:"_table_7o2n1_31",sortable:"_sortable_7o2n1_191",sortIcon:"_sortIcon_7o2n1_211",sorted:"_sorted_7o2n1_225",striped:"_striped_7o2n1_279",compact:"_compact_7o2n1_289",tableFooter:"_tableFooter_7o2n1_339",rowInfo:"_rowInfo_7o2n1_357",paginationWrapper:"_paginationWrapper_7o2n1_369",pageBtn:"_pageBtn_7o2n1_381",active:"_active_7o2n1_439",emptyRow:"_emptyRow_7o2n1_453",loading:"_loading_7o2n1_467"};function gt({data:a,columns:t,title:s,showSearch:c=!1,searchPlaceholder:o="Ara...",searchFields:r=[],striped:l=!1,compact:i=!1,pageSize:n=10,loading:d=!1,emptyMessage:p="Veri bulunamadı",rowKey:h,headerActions:_,className:$=""}){const[u,f]=m.useState(""),[y,b]=m.useState(null),[v,C]=m.useState(null),[k,N]=m.useState(1),z=m.useMemo(()=>{if(!u.trim()||r.length===0)return a;const B=u.toLowerCase();return a.filter(be=>r.some(j=>{const Ke=be[j];return String(Ke).toLowerCase().includes(B)}))},[a,u,r]),U=m.useMemo(()=>!y||!v?z:[...z].sort((B,be)=>{const j=B[y],Ke=be[y];if(j===Ke)return 0;if(j==null)return 1;if(Ke==null)return-1;const Et=j<Ke?-1:1;return v==="asc"?Et:-Et}),[z,y,v]),ue=m.useMemo(()=>{if(n===0)return U;const B=(k-1)*n;return U.slice(B,B+n)},[U,k,n]),ce=n>0?Math.ceil(U.length/n):1,Xe=B=>{y===B?v==="asc"?C("desc"):v==="desc"?(b(null),C(null)):C("asc"):(b(B),C("asc"))},Ze=B=>y!==B?"↕":v==="asc"?"↑":"↓",os=[I.dataTable,l&&I.striped,i&&I.compact,d&&I.loading,$].filter(Boolean).join(" ");return e.jsxs("div",{className:os,children:[(s||c||_)&&e.jsxs("div",{className:I.tableHeader,children:[s&&e.jsx("h3",{className:I.tableTitle,children:s}),e.jsxs("div",{className:I.headerActions,children:[c&&e.jsxs("div",{className:I.searchWrapper,children:[e.jsx("span",{children:"🔍"}),e.jsx("input",{type:"text",className:I.searchInput,placeholder:o,value:u,onChange:B=>{f(B.target.value),N(1)}})]}),_]})]}),e.jsx("div",{className:I.tableContainer,children:e.jsxs("table",{className:I.table,children:[e.jsx("thead",{children:e.jsx("tr",{children:t.map(B=>e.jsxs("th",{className:B.sortable?`${I.sortable} ${y===B.key?I.sorted:""}`:"",style:{width:B.width},onClick:B.sortable?()=>Xe(String(B.key)):void 0,children:[B.label,B.sortable&&e.jsx("span",{className:I.sortIcon,children:Ze(String(B.key))})]},String(B.key)))})}),e.jsx("tbody",{children:ue.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:t.length,className:I.emptyRow,children:p})}):ue.map((B,be)=>e.jsx("tr",{children:t.map(j=>e.jsx("td",{children:j.render?j.render(B[j.key],B,be):String(B[j.key]??"")},String(j.key)))},h?String(B[h]):be))})]})}),n>0&&U.length>n&&e.jsxs("div",{className:I.tableFooter,children:[e.jsxs("span",{className:I.rowInfo,children:[(k-1)*n+1,"-",Math.min(k*n,U.length)," / ",U.length]}),e.jsxs("div",{className:I.paginationWrapper,children:[e.jsx("button",{className:I.pageBtn,disabled:k===1,onClick:()=>N(1),children:"«"}),e.jsx("button",{className:I.pageBtn,disabled:k===1,onClick:()=>N(B=>B-1),children:"‹"}),Array.from({length:Math.min(5,ce)},(B,be)=>{let j=be+1;return ce>5&&(k>3&&(j=k-2+be),k>ce-2&&(j=ce-4+be)),e.jsx("button",{className:`${I.pageBtn} ${k===j?I.active:""}`,onClick:()=>N(j),children:j},j)}),e.jsx("button",{className:I.pageBtn,disabled:k===ce,onClick:()=>N(B=>B+1),children:"›"}),e.jsx("button",{className:I.pageBtn,disabled:k===ce,onClick:()=>N(ce),children:"»"})]})]})]})}gt.displayName="DataTable";const S={textareaWrapper:"_textareaWrapper_qkp8t_11",label:"_label_qkp8t_23",required:"_required_qkp8t_39",textareaContainer:"_textareaContainer_qkp8t_47",textarea:"_textarea_qkp8t_11",comic:"_comic_qkp8t_121",sm:"_sm_qkp8t_145",lg:"_lg_qkp8t_157",error:"_error_qkp8t_171",errorMessage:"_errorMessage_qkp8t_187",footer:"_footer_qkp8t_201",charCount:"_charCount_qkp8t_213",warning:"_warning_qkp8t_225",exceeded:"_exceeded_qkp8t_233",helperText:"_helperText_qkp8t_245",noResize:"_noResize_qkp8t_273",autoGrow:"_autoGrow_qkp8t_283"};function ft({label:a,size:t="md",variant:s="default",error:c=!1,errorMessage:o,helperText:r,required:l=!1,maxChars:i,showCharCount:n=!1,noResize:d=!1,autoGrow:p=!1,className:h="",value:_,onChange:$,...u}){const f=m.useRef(null),y=String(_||"").length;m.useEffect(()=>{p&&f.current&&(f.current.style.height="auto",f.current.style.height=`${f.current.scrollHeight}px`)},[_,p]);const b=[S.textareaWrapper,t!=="md"&&S[t],s!=="default"&&S[s],c&&S.error,d&&S.noResize,p&&S.autoGrow,h].filter(Boolean).join(" "),v=()=>i?y>i?`${S.charCount} ${S.exceeded}`:y>i*.9?`${S.charCount} ${S.warning}`:S.charCount:S.charCount;return e.jsxs("div",{className:b,children:[a&&e.jsxs("label",{className:S.label,children:[a,l&&e.jsx("span",{className:S.required,children:" *"})]}),e.jsx("div",{className:S.textareaContainer,children:e.jsx("textarea",{ref:f,className:S.textarea,value:_,onChange:$,maxLength:i,...u})}),e.jsxs("div",{className:S.footer,children:[c&&o?e.jsx("span",{className:S.errorMessage,children:o}):r?e.jsx("span",{className:S.helperText,children:r}):e.jsx("span",{}),n&&e.jsxs("span",{className:v(),children:[y,i?` / ${i}`:""]})]})]})}ft.displayName="TextArea";const Y={overlay:"_overlay_1pn8d_11",header:"_header_1pn8d_59",title:"_title_1pn8d_87",counter:"_counter_1pn8d_101",closeBtn:"_closeBtn_1pn8d_113",imageContainer:"_imageContainer_1pn8d_155",image:"_image_1pn8d_155",navBtn:"_navBtn_1pn8d_219",prevBtn:"_prevBtn_1pn8d_283",nextBtn:"_nextBtn_1pn8d_291",thumbnails:"_thumbnails_1pn8d_301",thumbnail:"_thumbnail_1pn8d_301",active:"_active_1pn8d_369",loading:"_loading_1pn8d_467"};function ut({images:a,initialIndex:t=0,isOpen:s,title:c,showThumbnails:o=!0,showCounter:r=!0,onClose:l,onIndexChange:i}){const[n,d]=m.useState(t),[p,h]=m.useState(!0);m.useEffect(()=>{s&&(d(t),h(!0))},[s,t]),m.useEffect(()=>{const b=v=>{if(s)switch(v.key){case"Escape":l();break;case"ArrowLeft":_();break;case"ArrowRight":$();break}};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[s,n]),m.useEffect(()=>(s&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[s]);const _=m.useCallback(()=>{if(n>0){const b=n-1;d(b),h(!0),i?.(b)}},[n,i]),$=m.useCallback(()=>{if(n<a.length-1){const b=n+1;d(b),h(!0),i?.(b)}},[n,a.length,i]),u=b=>{d(b),h(!0),i?.(b)};if(!s||a.length===0)return null;const f=a[n],y=e.jsxs("div",{className:Y.overlay,onClick:l,children:[e.jsxs("div",{className:Y.header,children:[e.jsx("span",{className:Y.title,children:c}),r&&e.jsxs("span",{className:Y.counter,children:[n+1," / ",a.length]}),e.jsx("button",{className:Y.closeBtn,onClick:l,children:"✕"})]}),e.jsxs("div",{className:Y.imageContainer,onClick:b=>b.stopPropagation(),children:[p&&e.jsx("span",{className:Y.loading,children:"Yükleniyor..."}),e.jsx("img",{src:f.src,alt:f.alt||`Image ${n+1}`,className:Y.image,onLoad:()=>h(!1),style:{display:p?"none":"block"}})]}),a.length>1&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`${Y.navBtn} ${Y.prevBtn}`,onClick:b=>{b.stopPropagation(),_()},disabled:n===0,children:"◀"}),e.jsx("button",{className:`${Y.navBtn} ${Y.nextBtn}`,onClick:b=>{b.stopPropagation(),$()},disabled:n===a.length-1,children:"▶"})]}),o&&a.length>1&&e.jsx("div",{className:Y.thumbnails,onClick:b=>b.stopPropagation(),children:a.map((b,v)=>e.jsx("button",{className:`${Y.thumbnail} ${v===n?Y.active:""}`,onClick:()=>u(v),children:e.jsx("img",{src:b.thumbnail||b.src,alt:""})},v))})]});return ve.createPortal(y,document.body)}ut.displayName="ImageViewer";const Ie={overlay:"_overlay_23pkb_11",fadeIn:"_fadeIn_23pkb_1",drawer:"_drawer_23pkb_47",left:"_left_23pkb_77",slideInLeft:"_slideInLeft_23pkb_1",right:"_right_23pkb_93",slideInRight:"_slideInRight_23pkb_1",sm:"_sm_23pkb_151",md:"_md_23pkb_159",lg:"_lg_23pkb_167",full:"_full_23pkb_175",header:"_header_23pkb_185",title:"_title_23pkb_201",closeBtn:"_closeBtn_23pkb_215",body:"_body_23pkb_257",footer:"_footer_23pkb_271",navMenu:"_navMenu_23pkb_283",navItem:"_navItem_23pkb_295",active:"_active_23pkb_337",navIcon:"_navIcon_23pkb_347",divider:"_divider_23pkb_357",userSection:"_userSection_23pkb_371",userAvatar:"_userAvatar_23pkb_391",userInfo:"_userInfo_23pkb_407",userName:"_userName_23pkb_415",userEmail:"_userEmail_23pkb_427"};function bt({isOpen:a,position:t="left",size:s="md",title:c,showCloseButton:o=!0,closeOnOverlayClick:r=!0,closeOnEscape:l=!0,header:i,footer:n,children:d,onClose:p,className:h=""}){if(m.useEffect(()=>{if(!l)return;const u=f=>{f.key==="Escape"&&a&&p()};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[a,l,p]),m.useEffect(()=>(a&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[a]),!a)return null;const _=[Ie.drawer,Ie[t],Ie[s],h].filter(Boolean).join(" "),$=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:Ie.overlay,onClick:r?p:void 0}),e.jsxs("div",{className:_,children:[(c||i||o)&&e.jsxs("div",{className:Ie.header,children:[i||e.jsx("span",{className:Ie.title,children:c}),o&&e.jsx("button",{className:Ie.closeBtn,onClick:p,children:"✕"})]}),e.jsx("div",{className:Ie.body,children:d}),n&&e.jsx("div",{className:Ie.footer,children:n})]})]});return ve.createPortal($,document.body)}bt.displayName="Drawer";const K={overlay:"_overlay_1nv17_11",fadeIn:"_fadeIn_1nv17_1",dialog:"_dialog_1nv17_61",scaleIn:"_scaleIn_1nv17_1",iconWrapper:"_iconWrapper_1nv17_111",icon:"_icon_1nv17_111",danger:"_danger_1nv17_151",warning:"_warning_1nv17_161",info:"_info_1nv17_171",success:"_success_1nv17_181",content:"_content_1nv17_193",title:"_title_1nv17_203",message:"_message_1nv17_221",actions:"_actions_1nv17_237",btn:"_btn_1nv17_251",cancelBtn:"_cancelBtn_1nv17_293",confirmBtn:"_confirmBtn_1nv17_311",loading:"_loading_1nv17_367"},Rt={danger:"⚠️",warning:"❓",info:"ℹ️",success:"✓"},es={danger:"Emin misiniz?",warning:"Dikkat",info:"Bilgi",success:"Onay"};function vt({isOpen:a,variant:t="danger",title:s,message:c,confirmText:o="Onayla",cancelText:r="İptal",loading:l=!1,onConfirm:i,onCancel:n}){if(m.useEffect(()=>{const h=_=>{_.key==="Escape"&&a&&n()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[a,n]),m.useEffect(()=>(a&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[a]),!a)return null;const d=[K.dialog,l&&K.loading].filter(Boolean).join(" "),p=e.jsx("div",{className:K.overlay,onClick:n,children:e.jsxs("div",{className:d,onClick:h=>h.stopPropagation(),children:[e.jsx("div",{className:K.iconWrapper,children:e.jsx("span",{className:`${K.icon} ${K[t]}`,children:Rt[t]})}),e.jsxs("div",{className:K.content,children:[e.jsx("h3",{className:K.title,children:s||es[t]}),e.jsx("p",{className:K.message,children:c})]}),e.jsxs("div",{className:K.actions,children:[e.jsx("button",{className:`${K.btn} ${K.cancelBtn}`,onClick:n,children:r}),e.jsx("button",{className:`${K.btn} ${K.confirmBtn} ${K[t]}`,onClick:i,children:l?"...":o})]})]})});return ve.createPortal(p,document.body)}vt.displayName="ConfirmDialog";const pe={scrollToTop:"_scrollToTop_1frqn_11",visible:"_visible_1frqn_67",bottomLeft:"_bottomLeft_1frqn_103",bottomCenter:"_bottomCenter_1frqn_113",sm:"_sm_1frqn_135",lg:"_lg_1frqn_147",rounded:"_rounded_1frqn_161",icon:"_icon_1frqn_169",withText:"_withText_1frqn_183",text:"_text_1frqn_197",withProgress:"_withProgress_1frqn_211",progressRing:"_progressRing_1frqn_219",progressBg:"_progressBg_1frqn_241",progressFill:"_progressFill_1frqn_249"};function yt({showAfter:a=400,position:t="bottomRight",size:s="md",showProgress:c=!1,icon:o="↑",showText:r=!1,text:l="Yukarı",smooth:i=!0,className:n=""}){const[d,p]=m.useState(!1),[h,_]=m.useState(0);m.useEffect(()=>{const v=()=>{const C=window.scrollY,k=document.documentElement.scrollHeight-window.innerHeight;p(C>a),c&&k>0&&_(C/k*100)};return window.addEventListener("scroll",v,{passive:!0}),v(),()=>window.removeEventListener("scroll",v)},[a,c]);const $=()=>{window.scrollTo({top:0,behavior:i?"smooth":"auto"})},u=[pe.scrollToTop,d&&pe.visible,t!=="bottomRight"&&pe[t],s!=="md"&&pe[s],r&&pe.withText,c&&pe.withProgress,n].filter(Boolean).join(" "),f=s==="sm"?22:s==="lg"?32:27,y=2*Math.PI*f,b=y-h/100*y;return e.jsxs("button",{className:u,onClick:$,"aria-label":"Yukarı git",children:[c&&e.jsxs("svg",{className:pe.progressRing,viewBox:"0 0 60 60",children:[e.jsx("circle",{className:pe.progressBg,cx:"30",cy:"30",r:f}),e.jsx("circle",{className:pe.progressFill,cx:"30",cy:"30",r:f,strokeDasharray:y,strokeDashoffset:b})]}),e.jsx("span",{className:pe.icon,children:o}),r&&e.jsx("span",{className:pe.text,children:l})]})}yt.displayName="ScrollToTop";const Q={lazyImage:"_lazyImage_okdde_11",image:"_image_okdde_23",loaded:"_loaded_okdde_41",placeholder:"_placeholder_okdde_51",placeholderIcon:"_placeholderIcon_okdde_71",shimmer:"_shimmer_okdde_85",error:"_error_okdde_127",errorIcon:"_errorIcon_okdde_151",errorText:"_errorText_okdde_161",ratio16x9:"_ratio16x9_okdde_175",ratio4x3:"_ratio4x3_okdde_183",ratio1x1:"_ratio1x1_okdde_191",ratio2x3:"_ratio2x3_okdde_199",ratio3x4:"_ratio3x4_okdde_209",blurPlaceholder:"_blurPlaceholder_okdde_219",hidden:"_hidden_okdde_243",comic:"_comic_okdde_253",zoomOnHover:"_zoomOnHover_okdde_265",rounded:"_rounded_okdde_283",roundedLg:"_roundedLg_okdde_291",circle:"_circle_okdde_299"};function Nt({src:a,alt:t,placeholder:s,ratio:c,rounding:o="none",comic:r=!1,zoomOnHover:l=!1,width:i,height:n,onLoad:d,onError:p,className:h="",style:_}){const[$,u]=m.useState(!1),[f,y]=m.useState(!1),[b,v]=m.useState(!1),C=m.useRef(null);m.useEffect(()=>{const ue=new IntersectionObserver(([ce])=>{ce.isIntersecting&&(v(!0),ue.disconnect())},{rootMargin:"100px"});return C.current&&ue.observe(C.current),()=>ue.disconnect()},[]);const k=()=>{u(!0),d?.()},N=()=>{y(!0),p?.()},z=[Q.lazyImage,c&&Q[`ratio${c.replace("x","x")}`],o!=="none"&&Q[o],r&&Q.comic,l&&Q.zoomOnHover,h].filter(Boolean).join(" "),U={width:i,height:n,..._};return e.jsxs("div",{ref:C,className:z,style:U,children:[s&&e.jsx("div",{className:`${Q.blurPlaceholder} ${$?Q.hidden:""}`,style:{backgroundImage:`url(${s})`}}),!$&&!f&&!s&&e.jsxs("div",{className:Q.placeholder,children:[e.jsx("span",{className:Q.placeholderIcon,children:"🖼️"}),e.jsx("div",{className:Q.shimmer})]}),f&&e.jsxs("div",{className:Q.error,children:[e.jsx("span",{className:Q.errorIcon,children:"⚠️"}),e.jsx("span",{className:Q.errorText,children:"Yüklenemedi"})]}),b&&!f&&e.jsx("img",{src:a,alt:t,className:`${Q.image} ${$?Q.loaded:""}`,onLoad:k,onError:N})]})}Nt.displayName="LazyImage";const A={filterPanel:"_filterPanel_a9olm_11",header:"_header_a9olm_29",title:"_title_a9olm_47",clearBtn:"_clearBtn_a9olm_67",body:"_body_a9olm_101",filterGroup:"_filterGroup_a9olm_111",filterLabel:"_filterLabel_a9olm_127",chipGroup:"_chipGroup_a9olm_147",chip:"_chip_a9olm_147",selected:"_selected_a9olm_191",collapsible:"_collapsible_a9olm_235",collapseIcon:"_collapseIcon_a9olm_249",open:"_open_a9olm_259",collapsibleContent:"_collapsibleContent_a9olm_267",footer:"_footer_a9olm_289",applyBtn:"_applyBtn_a9olm_303",horizontal:"_horizontal_a9olm_345"};function kt({groups:a,values:t={},showClear:s=!0,showApply:c=!1,horizontal:o=!1,title:r="🔎 Filtreler",footer:l,onChange:i,onApply:n,onClear:d,className:p=""}){const[h,_]=m.useState(t),[$,u]=m.useState(new Set(a.map(k=>k.id))),f=(k,N,z)=>{const U=h[k];let ue;if(z){const Xe=Array.isArray(U)?U.filter(Ze=>typeof Ze=="string"):U&&typeof U=="string"?[U]:[];ue=Xe.includes(N)?Xe.filter(Ze=>Ze!==N):[...Xe,N]}else ue=U===N?"":N;const ce={...h,[k]:ue};_(ce),i?.(ce)},y=k=>{const N=new Set($);N.has(k)?N.delete(k):N.add(k),u(N)},b=()=>{_({}),d?.(),i?.({})},v=(k,N)=>{const z=h[k];return Array.isArray(z)?z.includes(N):z===N},C=[A.filterPanel,o&&A.horizontal,p].filter(Boolean).join(" ");return e.jsxs("div",{className:C,children:[e.jsxs("div",{className:A.header,children:[e.jsx("span",{className:A.title,children:r}),s&&Object.keys(h).length>0&&e.jsx("button",{className:A.clearBtn,onClick:b,children:"Temizle"})]}),e.jsx("div",{className:A.body,children:a.map(k=>e.jsxs("div",{className:`${A.filterGroup} ${k.collapsible?A.collapsible:""} ${$.has(k.id)?A.open:""}`,children:[e.jsxs("label",{className:A.filterLabel,onClick:k.collapsible?()=>y(k.id):void 0,children:[k.label,k.collapsible&&e.jsx("span",{className:A.collapseIcon,children:"▼"})]}),e.jsx("div",{className:k.collapsible?A.collapsibleContent:void 0,children:k.type==="chips"&&k.options&&e.jsx("div",{className:A.chipGroup,children:k.options.map(N=>e.jsx("button",{className:`${A.chip} ${v(k.id,N.value)?A.selected:""}`,onClick:()=>f(k.id,N.value,k.multiple),children:N.label},N.value))})})]},k.id))}),(c||l)&&e.jsxs("div",{className:A.footer,children:[l,c&&e.jsx("button",{className:A.applyBtn,onClick:()=>n?.(h),children:"Uygula"})]})]})}kt.displayName="FilterPanel";const oe={sortSelector:"_sortSelector_599zq_11",trigger:"_trigger_599zq_21",open:"_open_599zq_67",icon:"_icon_599zq_75",arrow:"_arrow_599zq_83",dropdown:"_dropdown_599zq_103",option:"_option_599zq_131",selected:"_selected_599zq_177",checkmark:"_checkmark_599zq_187",compact:"_compact_599zq_199",iconOnly:"_iconOnly_599zq_211",currentLabel:"_currentLabel_599zq_225"};function wt({options:a,value:t,placeholder:s="Sırala",icon:c="↕️",compact:o=!1,iconOnly:r=!1,onChange:l,className:i=""}){const[n,d]=m.useState(!1),p=m.useRef(null);m.useEffect(()=>{const u=f=>{p.current&&!p.current.contains(f.target)&&d(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]);const h=a.find(u=>u.value===t),_=u=>{l?.(u),d(!1)},$=[oe.sortSelector,o&&oe.compact,r&&oe.iconOnly,i].filter(Boolean).join(" ");return e.jsxs("div",{ref:p,className:$,children:[e.jsxs("button",{className:`${oe.trigger} ${n?oe.open:""}`,onClick:()=>d(!n),children:[e.jsx("span",{className:oe.icon,children:c}),e.jsx("span",{className:oe.currentLabel,children:h?.label||s}),e.jsx("span",{className:oe.arrow,children:"▼"})]}),n&&e.jsx("div",{className:oe.dropdown,children:a.map(u=>e.jsxs("button",{className:`${oe.option} ${t===u.value?oe.selected:""}`,onClick:()=>_(u.value),children:[e.jsxs("span",{children:[u.icon&&e.jsxs("span",{children:[u.icon," "]}),u.label]}),t===u.value&&e.jsx("span",{className:oe.checkmark,children:"✓"})]},u.value))})]})}wt.displayName="SortSelector";const F={overlay:"_overlay_1i5l5_11",fadeIn:"_fadeIn_1i5l5_1",spinner:"_spinner_1i5l5_65",spin:"_spin_1i5l5_65",message:"_message_1i5l5_105",pulse:"_pulse_1i5l5_1",progress:"_progress_1i5l5_149",progressBar:"_progressBar_1i5l5_165",progressText:"_progressText_1i5l5_179",logo:"_logo_1i5l5_193",bounce:"_bounce_1i5l5_1",comic:"_comic_1i5l5_231",dots:"_dots_1i5l5_257",dot:"_dot_1i5l5_257",dotBounce:"_dotBounce_1i5l5_1",mangaLoader:"_mangaLoader_1i5l5_337",mangaPages:"_mangaPages_1i5l5_351",mangaPage:"_mangaPage_1i5l5_351",pageFlip:"_pageFlip_1i5l5_1"};function Ct({isVisible:a,variant:t="default",message:s="Yükleniyor...",logo:c,showProgress:o=!1,progress:r=0}){if(m.useEffect(()=>(a&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[a]),!a)return null;const l=[F.overlay,t!=="default"&&F[t]].filter(Boolean).join(" "),i=e.jsxs("div",{className:l,children:[c&&e.jsx("span",{className:F.logo,children:c}),t==="dots"?e.jsxs("div",{className:F.dots,children:[e.jsx("span",{className:F.dot}),e.jsx("span",{className:F.dot}),e.jsx("span",{className:F.dot})]}):t==="manga"?e.jsx("div",{className:F.mangaLoader,children:e.jsxs("div",{className:F.mangaPages,children:[e.jsx("span",{className:F.mangaPage}),e.jsx("span",{className:F.mangaPage}),e.jsx("span",{className:F.mangaPage})]})}):e.jsx("div",{className:F.spinner}),s&&e.jsx("p",{className:F.message,children:s}),o&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:F.progress,children:e.jsx("div",{className:F.progressBar,style:{width:`${r}%`}})}),e.jsxs("span",{className:F.progressText,children:[Math.round(r),"%"]})]})]});return ve.createPortal(i,document.body)}Ct.displayName="LoadingOverlay";const te={fab:"_fab_1bemw_11",bottomRight:"_bottomRight_1bemw_79",bottomLeft:"_bottomLeft_1bemw_89",bottomCenter:"_bottomCenter_1bemw_99",topRight:"_topRight_1bemw_111",topLeft:"_topLeft_1bemw_121",sm:"_sm_1bemw_133",lg:"_lg_1bemw_145",extended:"_extended_1bemw_159",label:"_label_1bemw_173",primary:"_primary_1bemw_187",secondary:"_secondary_1bemw_195",success:"_success_1bemw_205",danger:"_danger_1bemw_213",warning:"_warning_1bemw_221",info:"_info_1bemw_231",pulse:"_pulse_1bemw_241",fabPulse:"_fabPulse_1bemw_1",menu:"_menu_1bemw_285",open:"_open_1bemw_309",menuItem:"_menuItem_1bemw_321",menuIcon:"_menuIcon_1bemw_371",rotateOnOpen:"_rotateOnOpen_1bemw_381",icon:"_icon_1bemw_381"};function Bt({icon:a,label:t,position:s="bottomRight",size:c="md",color:o="primary",extended:r=!1,pulse:l=!1,menuItems:i,onClick:n,className:d=""}){const[p,h]=m.useState(!1),_=()=>{i&&i.length>0?h(!p):n?.()},$=f=>{f.onClick?.(),h(!1)},u=[te.fab,te[s],c!=="md"&&te[c],te[o],r&&te.extended,l&&te.pulse,i&&te.rotateOnOpen,p&&te.open,d].filter(Boolean).join(" ");return e.jsxs("button",{className:u,onClick:_,children:[i&&i.length>0&&e.jsx("div",{className:te.menu,children:i.map((f,y)=>e.jsxs("button",{className:te.menuItem,onClick:b=>{b.stopPropagation(),$(f)},children:[e.jsx("span",{className:te.menuIcon,children:f.icon}),f.label]},y))}),e.jsx("span",{className:te.icon,children:a}),t&&r&&e.jsx("span",{className:te.label,children:t})]})}Bt.displayName="FloatingActionButton";const fe={overlay:"_overlay_6ehxf_11",fadeIn:"_fadeIn_6ehxf_1",sheet:"_sheet_6ehxf_47",slideUp:"_slideUp_6ehxf_1",handle:"_handle_6ehxf_109",handleBar:"_handleBar_6ehxf_123",header:"_header_6ehxf_139",title:"_title_6ehxf_155",closeBtn:"_closeBtn_6ehxf_169",body:"_body_6ehxf_209",footer:"_footer_6ehxf_223",sm:"_sm_6ehxf_235",md:"_md_6ehxf_243",lg:"_lg_6ehxf_251",full:"_full_6ehxf_259",menuList:"_menuList_6ehxf_271",menuItem:"_menuItem_6ehxf_283",menuIcon:"_menuIcon_6ehxf_337",menuDivider:"_menuDivider_6ehxf_345",destructive:"_destructive_6ehxf_359"};function It({isOpen:a,size:t="md",title:s,showHandle:c=!0,showCloseButton:o=!0,closeOnOverlayClick:r=!0,footer:l,children:i,onClose:n,className:d=""}){if(m.useEffect(()=>{const _=$=>{$.key==="Escape"&&a&&n()};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[a,n]),m.useEffect(()=>(a&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[a]),!a)return null;const p=[fe.sheet,fe[t],d].filter(Boolean).join(" "),h=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:fe.overlay,onClick:r?n:void 0}),e.jsxs("div",{className:p,children:[c&&e.jsx("div",{className:fe.handle,children:e.jsx("div",{className:fe.handleBar})}),(s||o)&&e.jsxs("div",{className:fe.header,children:[e.jsx("span",{className:fe.title,children:s}),o&&e.jsx("button",{className:fe.closeBtn,onClick:n,children:"✕"})]}),e.jsx("div",{className:fe.body,children:i}),l&&e.jsx("div",{className:fe.footer,children:l})]})]});return ve.createPortal(h,document.body)}It.displayName="BottomSheet";const Me={marquee:"_marquee_xooub_11",content:"_content_xooub_33",scroll:"_scroll_xooub_1",item:"_item_xooub_79",itemIcon:"_itemIcon_xooub_101",separator:"_separator_xooub_109",primary:"_primary_xooub_121",warning:"_warning_xooub_139",info:"_info_xooub_157",fade:"_fade_xooub_177",comic:"_comic_xooub_237",clickable:"_clickable_xooub_257"};function xt({items:a,variant:t="default",duration:s=20,pauseOnHover:c=!0,fadeEdges:o=!0,separator:r="•",onItemClick:l,className:i=""}){const n=[...a,...a],d=[Me.marquee,t!=="default"&&Me[t],o&&Me.fade,l&&Me.clickable,i].filter(Boolean).join(" "),p={"--duration":`${s}s`,"--pause-on-hover":c?"paused":"running"},h=_=>{_.href&&window.open(_.href,"_blank"),l?.(_)};return e.jsx("div",{className:d,children:e.jsx("div",{className:Me.content,style:p,children:n.map((_,$)=>e.jsxs("span",{children:[e.jsxs("span",{className:Me.item,onClick:l?()=>h(_):void 0,style:{cursor:l||_.href?"pointer":"default"},children:[_.icon&&e.jsx("span",{className:Me.itemIcon,children:_.icon}),_.text]}),e.jsxs("span",{className:Me.separator,children:[" ",r," "]})]},$))})})}xt.displayName="Marquee";const se={cookieConsent:"_cookieConsent_t8leq_11",slideUp:"_slideUp_t8leq_1",content:"_content_t8leq_73",icon:"_icon_t8leq_87",text:"_text_t8leq_95",link:"_link_t8leq_109",actions:"_actions_t8leq_131",btn:"_btn_t8leq_143",rejectBtn:"_rejectBtn_t8leq_183",acceptBtn:"_acceptBtn_t8leq_193",settingsBtn:"_settingsBtn_t8leq_203",compact:"_compact_t8leq_231",floating:"_floating_t8leq_257"};function Tt({variant:a="default",message:t="Bu site çerezleri kullanmaktadır. Sitemizi kullanarak çerez politikamızı kabul etmiş olursunuz.",privacyLink:s,privacyText:c="Gizlilik Politikası",acceptText:o="Kabul Et",rejectText:r="Reddet",showSettings:l=!1,settingsText:i="Ayarlar",storageKey:n="cookie-consent",onAccept:d,onReject:p,onSettings:h,className:_=""}){const[$,u]=m.useState(!1);m.useEffect(()=>{localStorage.getItem(n)||u(!0)},[n]);const f=()=>{localStorage.setItem(n,"accepted"),u(!1),d?.()},y=()=>{localStorage.setItem(n,"rejected"),u(!1),p?.()};if(!$)return null;const b=[se.cookieConsent,a!=="default"&&se[a],_].filter(Boolean).join(" "),v=e.jsxs("div",{className:b,children:[e.jsxs("div",{className:se.content,children:[e.jsx("span",{className:se.icon,children:"🍪"}),e.jsxs("p",{className:se.text,children:[t,s&&e.jsxs(e.Fragment,{children:[" ",e.jsx("a",{href:s,className:se.link,target:"_blank",rel:"noopener noreferrer",children:c})]})]})]}),e.jsxs("div",{className:se.actions,children:[l&&e.jsx("button",{className:`${se.btn} ${se.settingsBtn}`,onClick:h,children:i}),e.jsx("button",{className:`${se.btn} ${se.rejectBtn}`,onClick:y,children:r}),e.jsx("button",{className:`${se.btn} ${se.acceptBtn}`,onClick:f,children:o})]})]});return ve.createPortal(v,document.body)}Tt.displayName="CookieConsent";const me={countdown:"_countdown_15r7u_11",unit:"_unit_15r7u_25",value:"_value_15r7u_51",label:"_label_15r7u_67",separator:"_separator_15r7u_85",blink:"_blink_15r7u_1",compact:"_compact_15r7u_127",inline:"_inline_15r7u_163",card:"_card_15r7u_211",units:"_units_15r7u_233",cardTitle:"_cardTitle_15r7u_243",urgent:"_urgent_15r7u_261",urgentPulse:"_urgentPulse_15r7u_1",expired:"_expired_15r7u_297",expiredText:"_expiredText_15r7u_305"};function Lt(a){const t=a.getTime()-Date.now();return t<=0?{days:0,hours:0,minutes:0,seconds:0,total:0}:{days:Math.floor(t/(1e3*60*60*24)),hours:Math.floor(t/(1e3*60*60)%24),minutes:Math.floor(t/(1e3*60)%60),seconds:Math.floor(t/1e3%60),total:t}}function zt({targetDate:a,variant:t="default",title:s,showDays:c=!0,showHours:o=!0,showMinutes:r=!0,showSeconds:l=!0,showSeparator:i=!0,expiredText:n="Süre Doldu!",onExpire:d,className:p=""}){const h=typeof a=="string"?new Date(a):a,[_,$]=m.useState(Lt(h)),[u,f]=m.useState(!1);m.useEffect(()=>{const N=setInterval(()=>{const z=Lt(h);$(z),z.total<=0&&!u&&(f(!0),d?.(),clearInterval(N))},1e3);return()=>clearInterval(N)},[h,u,d]);const y=_.total>0&&_.total<36e5,b=[me.countdown,t!=="default"&&me[t],y&&me.urgent,u&&me.expired,p].filter(Boolean).join(" "),v=N=>N.toString().padStart(2,"0");if(u)return e.jsx("div",{className:b,children:e.jsx("span",{className:me.expiredText,children:n})});const C=[];c&&_.days>0&&C.push({value:_.days,label:"Gün"}),o&&C.push({value:_.hours,label:"Saat"}),r&&C.push({value:_.minutes,label:"Dakika"}),l&&C.push({value:_.seconds,label:"Saniye"});const k=e.jsx(e.Fragment,{children:C.map((N,z)=>e.jsxs("span",{children:[e.jsxs("span",{className:me.unit,children:[e.jsx("span",{className:me.value,children:v(N.value)}),e.jsx("span",{className:me.label,children:N.label})]}),i&&z<C.length-1&&e.jsx("span",{className:me.separator,children:":"})]},N.label))});return t==="card"?e.jsxs("div",{className:b,children:[s&&e.jsx("span",{className:me.cardTitle,children:s}),e.jsx("div",{className:me.units,children:k})]}):e.jsx("div",{className:b,children:k})}zt.displayName="CountdownTimer";const L={avatarFrame:"_avatarFrame_1scl5_1",clickable:"_clickable_1scl5_27",avatarContent:"_avatarContent_1scl5_37",avatarImage:"_avatarImage_1scl5_63",initials:"_initials_1scl5_75",frameRing:"_frameRing_1scl5_91",basic:"_basic_1scl5_107",bronze:"_bronze_1scl5_115",silver:"_silver_1scl5_133",gold:"_gold_1scl5_153",diamond:"_diamond_1scl5_173",legendary:"_legendary_1scl5_193",rainbowBorder:"_rainbowBorder_1scl5_1",anim_pulse:"_anim_pulse_1scl5_219",pulse:"_pulse_1scl5_1",anim_rotate:"_anim_rotate_1scl5_227",rotate:"_rotate_1scl5_1",anim_rainbow:"_anim_rainbow_1scl5_235",particle:"_particle_1scl5_317",particleFloat:"_particleFloat_1scl5_1",levelBadge:"_levelBadge_1scl5_449",premiumBadge:"_premiumBadge_1scl5_487",onlineStatus:"_onlineStatus_1scl5_507",online:"_online_1scl5_507",offline:"_offline_1scl5_539"},as={none:{primary:"transparent",secondary:"transparent"},basic:{primary:"#52525b",secondary:"#3f3f46"},bronze:{primary:"#cd7f32",secondary:"#8b4513"},silver:{primary:"#c0c0c0",secondary:"#808080"},gold:{primary:"#ffd700",secondary:"#daa520"},diamond:{primary:"#b9f2ff",secondary:"#00bfff"},legendary:{primary:"#ff6b6b",secondary:"#9b59b6"}};function St({children:a,src:t,name:s,frame:c="none",animation:o="none",size:r=80,level:l,isPremium:i=!1,isOnline:n,className:d="",onClick:p}){const h=s?s.split(" ").map(u=>u[0]).join("").toUpperCase().slice(0,2):"?",_=[L.avatarFrame,c!=="none"&&L[c],o!=="none"&&L[`anim_${o}`],p&&L.clickable,d].filter(Boolean).join(" "),$=as[c];return e.jsxs("div",{className:_,style:{"--frame-size":`${r}px`,"--frame-primary":$.primary,"--frame-secondary":$.secondary},onClick:p,children:[c!=="none"&&e.jsx("div",{className:L.frameRing,children:o==="particles"&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:L.particle,style:{"--i":0}}),e.jsx("span",{className:L.particle,style:{"--i":1}}),e.jsx("span",{className:L.particle,style:{"--i":2}}),e.jsx("span",{className:L.particle,style:{"--i":3}}),e.jsx("span",{className:L.particle,style:{"--i":4}}),e.jsx("span",{className:L.particle,style:{"--i":5}}),e.jsx("span",{className:L.particle,style:{"--i":6}}),e.jsx("span",{className:L.particle,style:{"--i":7}})]})}),e.jsx("div",{className:L.avatarContent,children:t?e.jsx("img",{src:t,alt:s||"Avatar",className:L.avatarImage}):a||e.jsx("span",{className:L.initials,children:h})}),l!==void 0&&e.jsx("div",{className:L.levelBadge,children:e.jsx("span",{children:l})}),i&&e.jsx("div",{className:L.premiumBadge,children:"💎"}),n!==void 0&&e.jsx("div",{className:`${L.onlineStatus} ${n?L.online:L.offline}`})]})}St.displayName="AvatarFrame";const qe={animatedBackground:"_animatedBackground_ur98v_1",paused:"_paused_ur98v_27",backgroundLayer:"_backgroundLayer_ur98v_35",content:"_content_ur98v_47",particles:"_particles_ur98v_61",particle:"_particle_ur98v_61",particleFloat:"_particleFloat_ur98v_1",stars:"_stars_ur98v_127",starTwinkle:"_starTwinkle_ur98v_1",fire:"_fire_ur98v_175",fireRise:"_fireRise_ur98v_1",ice:"_ice_ur98v_219",iceFall:"_iceFall_ur98v_1",galaxy:"_galaxy_ur98v_279",galaxySpin:"_galaxySpin_ur98v_1",matrix:"_matrix_ur98v_317",matrixFall:"_matrixFall_ur98v_1",waves:"_waves_ur98v_375",wave:"_wave_ur98v_375",waveMove:"_waveMove_ur98v_1",aurora:"_aurora_ur98v_437",auroraLayer:"_auroraLayer_ur98v_445",auroraWave:"_auroraWave_ur98v_1"},ts={particles:{colors:["#dc2626","#f87171","#fca5a5"],particleCount:50},waves:{colors:["#1e40af","#3b82f6","#60a5fa"]},stars:{colors:["#fbbf24","#fcd34d","#fde68a"],particleCount:100},fire:{colors:["#dc2626","#f97316","#fbbf24"],particleCount:40},ice:{colors:["#06b6d4","#22d3ee","#a5f3fc"],particleCount:30},galaxy:{colors:["#7c3aed","#a855f7","#c084fc","#e879f9"],particleCount:80},matrix:{colors:["#22c55e","#4ade80","#86efac"],particleCount:60},aurora:{colors:["#22c55e","#06b6d4","#8b5cf6","#ec4899"]}};function jt({type:a,children:t,intensity:s=.5,speed:c=1,animated:o=!0,height:r="200px",borderRadius:l="12px",className:i=""}){const n=ts[a],d=m.useRef(null),p=[qe.animatedBackground,qe[a],!o&&qe.paused,i].filter(Boolean).join(" "),h=()=>n.particleCount?Array.from({length:Math.floor(n.particleCount*s)}).map((u,f)=>e.jsx("span",{className:qe.particle,style:{"--x":`${Math.random()*100}%`,"--y":`${Math.random()*100}%`,"--delay":`${Math.random()*5}s`,"--duration":`${(3+Math.random()*4)/c}s`,"--size":`${2+Math.random()*4}px`,"--color":n.colors[Math.floor(Math.random()*n.colors.length)],"--opacity":.3+Math.random()*.7}},f)):null,_=()=>n.colors.map((u,f)=>e.jsx("div",{className:qe.wave,style:{"--color":u,"--delay":`${f*.5}s`,"--duration":`${(6-f)/c}s`,"--opacity":.3+f*.15}},f)),$=()=>n.colors.map((u,f)=>e.jsx("div",{className:qe.auroraLayer,style:{"--color":u,"--delay":`${f*1.5}s`,"--duration":`${(8+f*2)/c}s`}},f));return e.jsxs("div",{ref:d,className:p,style:{"--height":typeof r=="number"?`${r}px`:r,"--radius":typeof l=="number"?`${l}px`:l,"--intensity":s},children:[e.jsxs("div",{className:qe.backgroundLayer,children:[(a==="particles"||a==="stars"||a==="fire"||a==="ice"||a==="galaxy"||a==="matrix")&&h(),a==="waves"&&_(),a==="aurora"&&$()]}),t&&e.jsx("div",{className:qe.content,children:t})]})}jt.displayName="AnimatedBackground";const M={badgeContainer:"_badgeContainer_1ak7x_1",grid:"_grid_1ak7x_13",sm:"_sm_1ak7x_27",badge:"_badge_1ak7x_1",md:"_md_1ak7x_37",lg:"_lg_1ak7x_47",clickable:"_clickable_1ak7x_81",iconWrapper:"_iconWrapper_1ak7x_89",iconEmoji:"_iconEmoji_1ak7x_127",iconImage:"_iconImage_1ak7x_135",common:"_common_1ak7x_149",uncommon:"_uncommon_1ak7x_157",rare:"_rare_1ak7x_167",rareGlow:"_rareGlow_1ak7x_1",epic:"_epic_1ak7x_179",epicGlow:"_epicGlow_1ak7x_1",legendary:"_legendary_1ak7x_191",legendaryBorder:"_legendaryBorder_1ak7x_1",legendaryGlow:"_legendaryGlow_1ak7x_1",glowEffect:"_glowEffect_1ak7x_305",locked:"_locked_1ak7x_347",lockOverlay:"_lockOverlay_1ak7x_357",badgeInfo:"_badgeInfo_1ak7x_379",badgeName:"_badgeName_1ak7x_393",rarityLabel:"_rarityLabel_1ak7x_405",moreCount:"_moreCount_1ak7x_461"},ss={common:"Yaygın",uncommon:"Nadir Değil",rare:"Nadir",epic:"Epik",legendary:"Efsanevi"};function Dt({badges:a,size:t="md",showTooltip:s=!0,showRarity:c=!1,grid:o=!1,maxDisplay:r,onBadgeClick:l,className:i=""}){const n=Array.isArray(a)?a:[a],d=r?n.slice(0,r):n,p=r?Math.max(0,n.length-r):0,h=[M.badgeContainer,o&&M.grid,M[t],i].filter(Boolean).join(" "),_=($,u)=>{const f=$.rarity||"common",y=$.unlocked!==!1,b=[M.badge,M[f],!y&&M.locked,l&&M.clickable].filter(Boolean).join(" ");return e.jsxs("div",{className:b,onClick:()=>y&&l?.($),title:s?`${$.name}${$.description?`: ${$.description}`:""}`:void 0,children:[e.jsxs("div",{className:M.iconWrapper,children:[$.icon.startsWith("http")||$.icon.startsWith("/")?e.jsx("img",{src:$.icon,alt:$.name,className:M.iconImage}):e.jsx("span",{className:M.iconEmoji,children:$.icon}),!y&&e.jsx("div",{className:M.lockOverlay,children:"🔒"})]}),(t==="lg"||c)&&e.jsxs("div",{className:M.badgeInfo,children:[e.jsx("span",{className:M.badgeName,children:$.name}),c&&e.jsx("span",{className:`${M.rarityLabel} ${M[f]}`,children:ss[f]})]}),y&&f!=="common"&&f!=="uncommon"&&e.jsx("div",{className:M.glowEffect})]},$.id||u)};return e.jsxs("div",{className:h,children:[d.map(_),p>0&&e.jsx("div",{className:`${M.badge} ${M.moreCount}`,children:e.jsxs("span",{children:["+",p]})})]})}Dt.displayName="BadgeDisplay";function ns(){const[a,t]=m.useState(()=>{const r=localStorage.getItem("abi-ui-theme");return r||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")});m.useEffect(()=>{document.documentElement.setAttribute("data-theme",a),localStorage.setItem("abi-ui-theme",a)},[a]);const s=m.useCallback(()=>{t(r=>r==="light"?"dark":"light")},[]),c=m.useCallback(()=>t("light"),[]),o=m.useCallback(()=>t("dark"),[]);return{theme:a,toggleTheme:s,setLightTheme:c,setDarkTheme:o,isDark:a==="dark",isLight:a==="light"}}g.Accordion=Ia,g.AccordionItem=xa,g.Alert=Da,g.AnimatedBackground=jt,g.Avatar=da,g.AvatarFrame=St,g.AvatarGroup=Mt,g.Badge=la,g.BadgeDisplay=Dt,g.BookmarkButton=lt,g.BottomSheet=It,g.Breadcrumb=Ma,g.Button=ta,g.Calendar=Ja,g.Card=na,g.CardBody=ca,g.CardFooter=ra,g.CardHeader=oa,g.Carousel=Va,g.ChapterList=et,g.Checkbox=Na,g.ColorPicker=Xa,g.CommentCard=tt,g.ConfirmDialog=vt,g.CookieConsent=Tt,g.CountdownTimer=zt,g.DataTable=gt,g.Divider=qa,g.Drawer=bt,g.Dropdown=Ta,g.DropdownItem=La,g.DropdownLabel=Sa,g.DropdownSeparator=za,g.EmptyState=$t,g.FavoriteButton=rt,g.FileUpload=Ya,g.FilterPanel=kt,g.FloatingActionButton=Bt,g.FollowButton=mt,g.Footer=Qa,g.GenreChip=st,g.ImageViewer=ut,g.Input=sa,g.LazyImage=Nt,g.LikeButton=_t,g.LoadingOverlay=Ct,g.MangaDetailHeader=ct,g.MangaPosterCard=Ra,g.Marquee=xt,g.Modal=ia,g.Navbar=Ka,g.NotificationCenter=Za,g.PageCounter=dt,g.Pagination=Ea,g.Popover=Oa,g.Progress=ba,g.Radio=Ca,g.RadioGroup=wa,g.Rating=Wa,g.ReaderToolbar=it,g.ReadingProgress=at,g.ReportModal=ht,g.ScrollToTop=yt,g.SearchBar=nt,g.Select=$a,g.ShareButton=pt,g.Skeleton=Je,g.SkeletonMangaCard=va,g.Slider=ja,g.SortSelector=wt,g.Spinner=Aa,g.StatsCard=Ha,g.Stepper=Ga,g.Switch=ya,g.Tab=ma,g.TabList=pa,g.TabPanel=ha,g.Table=Pa,g.Tabs=_a,g.Tag=Fa,g.TextArea=ft,g.Timeline=Ua,g.ToastProvider=fa,g.Tooltip=ua,g.UserCard=ot,g.useTheme=ns,g.useToast=Wt,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manga-ui-compents-abi",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "72 Comic Book Style UI Components for Manga/Webtoon platforms. Built with React + TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./dist/manga-ui-compents-abi.umd.cjs",
@@ -19,8 +19,8 @@
19
19
  ],
20
20
  "scripts": {
21
21
  "dev": "vite",
22
- "build": "tsc -b && vite build",
23
- "build:lib": "vite build --mode lib && tsc --emitDeclarationOnly --declaration --outDir dist",
22
+ "build": "vite build --mode lib && tsc --emitDeclarationOnly --declaration --outDir dist",
23
+ "build:app": "tsc -b && vite build",
24
24
  "lint": "eslint .",
25
25
  "preview": "vite preview",
26
26
  "prepublishOnly": "npm run build"