manga-ui-compents-abi 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -0
- package/dist/index.d.ts +1 -0
- package/dist/manga-ui-compents-abi.css +1 -0
- package/dist/manga-ui-compents-abi.js +4611 -0
- package/dist/manga-ui-compents-abi.umd.cjs +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function($,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):($=typeof globalThis<"u"?globalThis:$||self,e($.MangaUICompentsAbi={},$.jsxRuntime,$.React,$.ReactDOM))})(this,(function($,e,p,ue){"use strict";const Oe={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"},Re=p.forwardRef(({variant:t="primary",size:a="md",loading:s=!1,fullWidth:l=!1,leftIcon:o,rightIcon:r,iconOnly:c=!1,disabled:i,className:n="",children:d,...h},m)=>{const _=[Oe.button,Oe[t],Oe[a],s&&Oe.loading,l&&Oe.fullWidth,c&&Oe.iconOnly,n].filter(Boolean).join(" ");return e.jsxs("button",{ref:m,className:_,disabled:i||s,...h,children:[o&&!c&&e.jsx("span",{children:o}),d,r&&!c&&e.jsx("span",{children:r})]})});Re.displayName="Button";const K={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"},et=p.forwardRef(({label:t,size:a="md",error:s,helperText:l,leftIcon:o,rightIcon:r,fullWidth:c=!1,required:i=!1,className:n="",id:d,...h},m)=>{const _=d||`input-${Math.random().toString(36).substr(2,9)}`,b=[K.inputWrapper,K[a],s&&K.error,o&&K.hasLeftIcon,r&&K.hasRightIcon,c&&K.fullWidth,n].filter(Boolean).join(" ");return e.jsxs("div",{className:b,children:[t&&e.jsxs("label",{htmlFor:_,className:K.label,children:[t,i&&e.jsx("span",{className:K.required,children:"*"})]}),e.jsxs("div",{className:K.inputContainer,children:[o&&e.jsx("span",{className:K.leftIcon,children:o}),e.jsx("input",{ref:m,id:_,className:K.input,"aria-invalid":!!s,"aria-describedby":s?`${_}-error`:l?`${_}-helper`:void 0,...h}),r&&e.jsx("span",{className:K.rightIcon,children:r})]}),s&&e.jsx("span",{id:`${_}-error`,className:K.errorMessage,role:"alert",children:s}),l&&!s&&e.jsx("span",{id:`${_}-helper`,className:K.helperText,children:l})]})});et.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"},tt=p.forwardRef(({variant:t="default",padding:a="default",hoverable:s=!1,className:l="",children:o,...r},c)=>{const i=[Pe.card,Pe[t],a!=="default"&&Pe[a],s&&Pe.hoverable,l].filter(Boolean).join(" ");return e.jsx("div",{ref:c,className:i,...r,children:o})});tt.displayName="Card";const at=p.forwardRef(({className:t="",children:a,...s},l)=>e.jsx("div",{ref:l,className:`${Pe.header} ${t}`,...s,children:a}));at.displayName="CardHeader";const st=p.forwardRef(({className:t="",children:a,...s},l)=>e.jsx("div",{ref:l,className:`${Pe.body} ${t}`,...s,children:a}));st.displayName="CardBody";const nt=p.forwardRef(({className:t="",children:a,...s},l)=>e.jsx("div",{ref:l,className:`${Pe.footer} ${t}`,...s,children:a}));nt.displayName="CardFooter";const Fe={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"},ot=p.forwardRef(({variant:t="default",size:a="md",outline:s=!1,withDot:l=!1,pulse:o=!1,className:r="",children:c,...i},n)=>{const d=[Fe.badge,Fe[t],Fe[a],s&&Fe.outline,l&&Fe.withDot,o&&Fe.pulse,r].filter(Boolean).join(" ");return e.jsx("span",{ref:n,className:d,...i,children:c})});ot.displayName="Badge";const Be={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 lt({isOpen:t,onClose:a,title:s,size:l="md",showCloseButton:o=!0,closeOnOverlayClick:r=!0,closeOnEscape:c=!0,children:i,footer:n}){const d=p.useCallback(_=>{_.key==="Escape"&&c&&a()},[a,c]);if(p.useEffect(()=>(t&&(document.addEventListener("keydown",d),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow=""}),[t,d]),!t)return null;const h=_=>{_.target===_.currentTarget&&r&&a()},m=e.jsx("div",{className:Be.overlay,onClick:h,children:e.jsxs("div",{className:`${Be.modal} ${Be[l]}`,role:"dialog","aria-modal":"true",children:[(s||o)&&e.jsxs("div",{className:Be.header,children:[s&&e.jsx("h2",{className:Be.title,children:s}),o&&e.jsx("button",{className:Be.closeButton,onClick:a,"aria-label":"Close modal",children:"✕"})]}),e.jsx("div",{className:Be.body,children:i}),n&&e.jsx("div",{className:Be.footer,children:n})]})});return ue.createPortal(m,document.body)}lt.displayName="Modal";const ne={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"},ct=p.forwardRef(({src:t,alt:a="",initials:s,size:l="md",shape:o="circle",status:r,className:c="",...i},n)=>{const d=[ne.avatar,ne[l],ne[o],c].filter(Boolean).join(" "),h=e.jsx("div",{ref:n,className:d,children:t?e.jsx("img",{src:t,alt:a,className:ne.image,...i}):e.jsx("span",{children:s||"?"})});return r?e.jsxs("div",{className:ne.wrapper,children:[h,e.jsx("span",{className:`${ne.status} ${ne[r]}`})]}):h});ct.displayName="Avatar";function La({children:t,max:a}){const s=p.Children.toArray(t),l=a?s.slice(0,a):s,o=a?s.length-a:0;return e.jsxs("div",{className:ne.group,children:[l,o>0&&e.jsxs("div",{className:`${ne.avatar} ${ne.md} ${ne.circle}`,children:["+",o]})]})}const Ve={tabList:"_tabList_1c0yh_11",tab:"_tab_1c0yh_11",active:"_active_1c0yh_71",tabPanel:"_tabPanel_1c0yh_107",pills:"_pills_1c0yh_117",underline:"_underline_1c0yh_167"},Je=p.createContext(null);function rt({defaultTab:t,activeTab:a,onTabChange:s,variant:l="default",children:o}){const[r,c]=p.useState(t||""),i=a??r,n=d=>{a||c(d),s?.(d)};return e.jsx(Je.Provider,{value:{activeTab:i,setActiveTab:n},children:e.jsx("div",{"data-variant":l,children:o})})}function it({children:t,variant:a="default"}){return e.jsx("div",{className:`${Ve.tabList} ${a!=="default"?Ve[a]:""}`,role:"tablist",children:t})}function dt({id:t,children:a,icon:s,disabled:l=!1}){const o=p.useContext(Je);if(!o)throw new Error("Tab must be used within Tabs");const{activeTab:r,setActiveTab:c}=o,i=r===t;return e.jsxs("button",{className:`${Ve.tab} ${i?Ve.active:""}`,role:"tab","aria-selected":i,onClick:()=>!l&&c(t),disabled:l,children:[s&&e.jsx("span",{children:s}),a]})}function _t({id:t,children:a}){const s=p.useContext(Je);if(!s)throw new Error("TabPanel must be used within Tabs");const{activeTab:l}=s;return l!==t?null:e.jsx("div",{className:Ve.tabPanel,role:"tabpanel",children:a})}rt.displayName="Tabs",it.displayName="TabList",dt.displayName="Tab",_t.displayName="TabPanel";const oe={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"},pt=p.forwardRef(({label:t,options:a,placeholder:s,size:l="md",error:o,helperText:r,fullWidth:c=!1,required:i=!1,className:n="",id:d,...h},m)=>{const _=d||`select-${Math.random().toString(36).substr(2,9)}`,b=[oe.selectWrapper,oe[l],o&&oe.error,c&&oe.fullWidth,n].filter(Boolean).join(" ");return e.jsxs("div",{className:b,children:[t&&e.jsxs("label",{htmlFor:_,className:oe.label,children:[t,i&&e.jsx("span",{className:oe.required,children:"*"})]}),e.jsxs("div",{className:oe.selectContainer,children:[e.jsxs("select",{ref:m,id:_,className:oe.select,"aria-invalid":!!o,...h,children:[s&&e.jsx("option",{value:"",disabled:!0,children:s}),a.map(f=>e.jsx("option",{value:f.value,disabled:f.disabled,children:f.label},f.value))]}),e.jsx("span",{className:oe.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:oe.errorMessage,children:o}),r&&!o&&e.jsx("span",{className:oe.helperText,children:r})]})});pt.displayName="Select";const pe={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"},ht=p.createContext(null),za={success:"✓",error:"✕",warning:"⚠",info:"ℹ"};function Sa({toast:t,onRemove:a}){const[s,l]=p.useState(!1);p.useEffect(()=>{if(t.duration!==0){const r=setTimeout(()=>{l(!0),setTimeout(a,200)},t.duration||4e3);return()=>clearTimeout(r)}},[t.duration,a]);const o=()=>{l(!0),setTimeout(a,200)};return e.jsxs("div",{className:`${pe.toast} ${pe[t.variant||"info"]} ${s?pe.exiting:""}`,children:[e.jsx("span",{className:pe.icon,children:za[t.variant||"info"]}),e.jsxs("div",{className:pe.content,children:[t.title&&e.jsx("div",{className:pe.title,children:t.title}),e.jsx("div",{className:pe.message,children:t.message})]}),e.jsx("button",{className:pe.closeBtn,onClick:o,children:"✕"})]})}function mt({children:t,position:a="topRight"}){const[s,l]=p.useState([]),o=p.useCallback(c=>{const i=Math.random().toString(36).substr(2,9);l(n=>[...n,{...c,id:i}])},[]),r=p.useCallback(c=>{l(i=>i.filter(n=>n.id!==c))},[]);return e.jsxs(ht.Provider,{value:{addToast:o,removeToast:r},children:[t,ue.createPortal(e.jsx("div",{className:`${pe.toastContainer} ${pe[a]}`,children:s.map(c=>e.jsx(Sa,{toast:c,onRemove:()=>r(c.id)},c.id))}),document.body)]})}function Da(){const t=p.useContext(ht);if(!t)throw new Error("useToast must be used within ToastProvider");return t}mt.displayName="ToastProvider";const Xe={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 $t({content:t,position:a="top",children:s}){return e.jsxs("div",{className:Xe.tooltipWrapper,children:[s,e.jsx("div",{className:`${Xe.tooltip} ${Xe[a]}`,children:t})]})}$t.displayName="Tooltip";const le={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 gt({value:t=0,variant:a="default",size:s="md",label:l,showPercentage:o=!1,striped:r=!1,animated:c=!1,indeterminate:i=!1}){const n=Math.min(100,Math.max(0,t)),d=[le.progressWrapper,le[a],le[s],r&&le.striped,c&&le.animated,i&&le.indeterminate].filter(Boolean).join(" ");return e.jsxs("div",{className:d,children:[(l||o)&&e.jsxs("div",{className:le.label,children:[l&&e.jsx("span",{className:le.labelText,children:l}),o&&!i&&e.jsxs("span",{className:le.percentage,children:[n,"%"]})]}),e.jsx("div",{className:le.track,children:e.jsx("div",{className:le.fill,style:{width:i?void 0:`${n}%`},role:"progressbar","aria-valuenow":i?void 0:n,"aria-valuemin":0,"aria-valuemax":100})})]})}gt.displayName="Progress";const be={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 Ye({variant:t="text",size:a="md",width:s,height:l,noAnimation:o=!1,fullWidth:r=!1,className:c="",style:i}){const n=[be.skeleton,be[t],t==="avatar"&&be[a],o&&be.noAnimation,r&&be.fullWidth,c].filter(Boolean).join(" "),d={...i,...s&&{width:typeof s=="number"?`${s}px`:s},...l&&{height:typeof l=="number"?`${l}px`:l}};return e.jsx("div",{className:n,style:d})}function ft(){return e.jsxs("div",{className:be.mangaCard,children:[e.jsx("div",{className:`${be.skeleton} ${be.cover}`}),e.jsxs("div",{className:be.lines,children:[e.jsx(Ye,{variant:"title",width:"80%"}),e.jsx(Ye,{variant:"text",width:"60%"}),e.jsx(Ye,{variant:"text",width:"40%"})]})]})}Ye.displayName="Skeleton",ft.displayName="SkeletonMangaCard";const qe={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"},ut=p.forwardRef(({label:t,size:a="md",checked:s=!1,disabled:l=!1,onCheckedChange:o,onChange:r,className:c="",...i},n)=>{const d=[qe.switchWrapper,qe[a],s&&qe.checked,l&&qe.disabled,c].filter(Boolean).join(" "),h=m=>{r?.(m),o?.(m.target.checked)};return e.jsxs("label",{className:d,children:[e.jsx("input",{ref:n,type:"checkbox",className:qe.input,checked:s,disabled:l,onChange:h,...i}),e.jsx("span",{className:qe.switch}),t&&e.jsx("span",{className:qe.label,children:t})]})});ut.displayName="Switch";const ve={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"},bt=p.forwardRef(({label:t,size:a="md",checked:s=!1,indeterminate:l=!1,disabled:o=!1,onCheckedChange:r,onChange:c,className:i="",...n},d)=>{const h=[ve.checkboxWrapper,ve[a],s&&ve.checked,l&&ve.indeterminate,o&&ve.disabled,i].filter(Boolean).join(" "),m=_=>{c?.(_),r?.(_.target.checked)};return e.jsxs("label",{className:h,children:[e.jsx("input",{ref:d,type:"checkbox",className:ve.input,checked:s,disabled:o,onChange:m,...n}),e.jsx("span",{className:ve.checkbox,children:e.jsx("span",{className:ve.checkmark,children:"✓"})}),t&&e.jsx("span",{className:ve.label,children:t})]})});bt.displayName="Checkbox";const Ne={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"},vt=p.createContext(null);function Nt({name:t,value:a="",onChange:s=()=>{},label:l,horizontal:o=!1,disabled:r=!1,children:c}){return e.jsx(vt.Provider,{value:{name:t,value:a,onChange:s,disabled:r},children:e.jsxs("div",{role:"radiogroup",children:[l&&e.jsx("div",{className:Ne.groupLabel,children:l}),e.jsx("div",{className:`${Ne.radioGroup} ${o?Ne.horizontal:""}`,children:c})]})})}const yt=p.forwardRef(({value:t,label:a,disabled:s,className:l="",...o},r)=>{const c=p.useContext(vt),i=c?.name||o.name||"",n=c?c.value===t:!1,d=s??c?.disabled??!1,h=()=>{c?.onChange(t)},m=[Ne.radioWrapper,n&&Ne.checked,d&&Ne.disabled,l].filter(Boolean).join(" ");return e.jsxs("label",{className:m,children:[e.jsx("input",{ref:r,type:"radio",className:Ne.input,name:i,value:t,checked:n,disabled:d,onChange:h,...o}),e.jsx("span",{className:Ne.radio}),a&&e.jsx("span",{className:Ne.label,children:a})]})});yt.displayName="Radio",Nt.displayName="RadioGroup";const Ie={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"},wt=p.createContext(null);function kt({defaultOpen:t=[],allowMultiple:a=!1,children:s,className:l=""}){const[o,r]=p.useState(t),c=i=>{r(n=>n.includes(i)?n.filter(d=>d!==i):a?[...n,i]:[i])};return e.jsx(wt.Provider,{value:{openItems:o,toggleItem:c,allowMultiple:a},children:e.jsx("div",{className:`${Ie.accordion} ${l}`,children:s})})}function Ct({id:t,title:a,children:s,disabled:l=!1}){const o=p.useContext(wt);if(!o)throw new Error("AccordionItem must be used within Accordion");const{openItems:r,toggleItem:c}=o,i=r.includes(t);return e.jsxs("div",{className:`${Ie.item} ${i?Ie.open:""}`,children:[e.jsxs("button",{className:Ie.trigger,onClick:()=>!l&&c(t),disabled:l,"aria-expanded":i,children:[e.jsx("span",{className:Ie.triggerText,children:a}),e.jsx("span",{className:Ie.triggerIcon,children:"▼"})]}),e.jsx("div",{className:Ie.content,children:e.jsx("div",{className:Ie.contentInner,children:s})})]})}kt.displayName="Accordion",Ct.displayName="AccordionItem";const te={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 Bt({trigger:t,children:a,align:s="left",closeOnClick:l=!0}){const[o,r]=p.useState(!1),c=p.useRef(null);p.useEffect(()=>{const n=d=>{c.current&&!c.current.contains(d.target)&&r(!1)};return o&&document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[o]);const i=s==="right"?te.alignRight:s==="center"?te.alignCenter:"";return e.jsxs("div",{ref:c,className:`${te.dropdown} ${o?te.open:""} ${i}`,children:[e.jsx("div",{className:te.trigger,onClick:()=>r(!o),children:t}),e.jsx("div",{className:te.menu,onClick:l?()=>r(!1):void 0,children:a})]})}function It({children:t,icon:a,danger:s=!1,disabled:l=!1,onClick:o}){const r=()=>{!l&&o&&o()},c=[te.item,s&&te.danger,l&&te.disabled].filter(Boolean).join(" ");return e.jsxs("button",{className:c,onClick:r,disabled:l,children:[a&&e.jsx("span",{className:te.itemIcon,children:a}),t]})}function Tt(){return e.jsx("div",{className:te.separator})}function xt({children:t}){return e.jsx("div",{className:te.label,children:t})}Bt.displayName="Dropdown",It.displayName="DropdownItem",Tt.displayName="DropdownSeparator",xt.displayName="DropdownLabel";const ce={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"},Lt=p.forwardRef(({value:t=0,min:a=0,max:s=100,step:l=1,label:o,showValue:r=!1,size:c="md",disabled:i=!1,onValueChange:n,onChange:d,className:h="",...m},_)=>{const b=(t-a)/(s-a)*100,f=N=>{const g=Number(N.target.value);d?.(N),n?.(g)},v=[ce.sliderWrapper,ce[c],i&&ce.disabled,h].filter(Boolean).join(" ");return e.jsxs("div",{className:v,children:[(o||r)&&e.jsxs("div",{className:ce.label,children:[o&&e.jsx("span",{className:ce.labelText,children:o}),r&&e.jsx("span",{className:ce.value,children:t})]}),e.jsxs("div",{className:ce.sliderContainer,children:[e.jsx("div",{className:ce.track}),e.jsx("div",{className:ce.fill,style:{width:`${b}%`}}),e.jsx("div",{className:ce.thumb,style:{left:`${b}%`}}),e.jsx("input",{ref:_,type:"range",className:ce.input,value:t,min:a,max:s,step:l,disabled:i,onChange:f,...m})]})]})});Lt.displayName="Slider";const Ee={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"},ja={info:"ℹ",success:"✓",warning:"⚠",error:"✕"};function zt({variant:t="info",title:a,children:s,closable:l=!1,onClose:o,icon:r,className:c=""}){return e.jsxs("div",{className:`${Ee.alert} ${Ee[t]} ${c}`,role:"alert",children:[e.jsx("span",{className:Ee.icon,children:r??ja[t]}),e.jsxs("div",{className:Ee.content,children:[a&&e.jsx("div",{className:Ee.title,children:a}),s&&e.jsx("div",{className:Ee.description,children:s})]}),l&&e.jsx("button",{className:Ee.closeBtn,onClick:o,"aria-label":"Close",children:"✕"})]})}zt.displayName="Alert";const ye={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 St({currentPage:t,totalPages:a,onPageChange:s,maxVisible:l=5,showNavigation:o=!0,size:r="md",className:c=""}){const n=(()=>{const d=[];if(a<=l){for(let b=1;b<=a;b++)d.push(b);return d}const h=Math.floor(l/2);let m=Math.max(1,t-h),_=Math.min(a,t+h);t<=h?_=l:t>=a-h&&(m=a-l+1),m>1&&(d.push(1),m>2&&d.push("ellipsis"));for(let b=m;b<=_;b++)d.push(b);return _<a&&(_<a-1&&d.push("ellipsis"),d.push(a)),d})();return e.jsxs("nav",{className:`${ye.pagination} ${ye[r]} ${c}`,"aria-label":"Pagination",children:[o&&e.jsx("button",{className:`${ye.button} ${ye.nav}`,onClick:()=>s(t-1),disabled:t<=1,"aria-label":"Previous page",children:"←"}),n.map((d,h)=>d==="ellipsis"?e.jsx("span",{className:ye.ellipsis,children:"..."},`ellipsis-${h}`):e.jsx("button",{className:`${ye.button} ${t===d?ye.active:""}`,onClick:()=>s(d),"aria-current":t===d?"page":void 0,children:d},d)),o&&e.jsx("button",{className:`${ye.button} ${ye.nav}`,onClick:()=>s(t+1),disabled:t>=a,"aria-label":"Next page",children:"→"})]})}St.displayName="Pagination";const Te={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 Dt({items:t,separator:a="/",size:s="md",className:l=""}){return e.jsx("nav",{className:`${Te.breadcrumb} ${s!=="md"?Te[s]:""} ${l}`,"aria-label":"Breadcrumb",children:t.map((o,r)=>{const c=r===t.length-1;return e.jsxs("div",{className:Te.item,children:[o.icon&&e.jsx("span",{className:Te.icon,children:o.icon}),c||!o.href?e.jsx("span",{className:`${Te.link} ${c?Te.current:""}`,children:o.label}):e.jsx("a",{href:o.href,className:Te.link,children:o.label}),!c&&e.jsx("span",{className:Te.separator,children:a})]},r)})})}Dt.displayName="Breadcrumb";const xe={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 jt({label:t,vertical:a=!1,dashed:s=!1,spacing:l="md",className:o=""}){const r=[xe.divider,!t&&xe.noLabel,a&&xe.vertical,s&&xe.dashed,xe[l],o].filter(Boolean).join(" ");return e.jsxs("div",{className:r,role:"separator",children:[e.jsx("div",{className:xe.line}),t&&e.jsx("span",{className:xe.label,children:t}),t&&e.jsx("div",{className:xe.line})]})}jt.displayName="Divider";const Le={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 Pt({columns:t,data:a,striped:s=!1,compact:l=!1,className:o=""}){const r=[Le.table,s&&Le.striped,l&&Le.compact,o].filter(Boolean).join(" ");return e.jsx("div",{className:Le.tableWrapper,children:e.jsxs("table",{className:r,children:[e.jsx("thead",{className:Le.thead,children:e.jsx("tr",{children:t.map(c=>e.jsx("th",{className:Le.th,children:c.header},String(c.key)))})}),e.jsx("tbody",{className:Le.tbody,children:a.map((c,i)=>e.jsx("tr",{children:t.map(n=>{const d=c[n.key];return e.jsx("td",{className:Le.td,children:n.render?n.render(d,c):String(d??"")},String(n.key))})},i))})]})})}Pt.displayName="Table";const Me={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 qt({value:t=0,max:a=5,readonly:s=!1,showValue:l=!1,size:o="md",onValueChange:r,className:c=""}){const[i,n]=p.useState(null),d=i??t,h=_=>{!s&&r&&r(_)},m=[Me.rating,s&&Me.readonly,o!=="md"&&Me[o],c].filter(Boolean).join(" ");return e.jsxs("div",{className:m,children:[Array.from({length:a},(_,b)=>{const f=b+1,v=d>=f,N=!v&&d>b&&d<f;return e.jsx("span",{className:`${Me.star} ${v?Me.filled:""} ${N?Me.half:""}`,onClick:()=>h(f),onMouseEnter:()=>!s&&n(f),onMouseLeave:()=>!s&&n(null),role:s?"img":"button","aria-label":`${f} star${f>1?"s":""}`,children:"★"},b)}),l&&e.jsx("span",{className:Me.value,children:t.toFixed(1)})]})}qt.displayName="Rating";const Ge={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 Et({size:t="md",variant:a="primary",label:s,className:l=""}){const o=[Ge.spinner,Ge[t],Ge[a],s&&Ge.withLabel,l].filter(Boolean).join(" ");return e.jsxs("div",{className:o,role:"status","aria-label":s||"Loading",children:[e.jsx("div",{className:Ge.icon}),s&&e.jsx("span",{className:Ge.label,children:s})]})}Et.displayName="Spinner";const Qe={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 Mt({children:t,variant:a="default",size:s="md",removable:l=!1,onRemove:o,className:r=""}){const c=[Qe.tag,a!=="default"&&Qe[a],s!=="md"&&Qe[s],r].filter(Boolean).join(" ");return e.jsxs("span",{className:c,children:[t,l&&e.jsx("button",{className:Qe.removeBtn,onClick:o,"aria-label":"Remove tag",children:"✕"})]})}Mt.displayName="Tag";const We={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 Wt({trigger:t,children:a,title:s,position:l="bottom",className:o=""}){const[r,c]=p.useState(!1),i=p.useRef(null);p.useEffect(()=>{const d=h=>{i.current&&!i.current.contains(h.target)&&c(!1)};return r&&document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[r]);const n=[We.popover,We[l],r&&We.open,o].filter(Boolean).join(" ");return e.jsxs("div",{ref:i,className:n,children:[e.jsx("div",{className:We.trigger,onClick:()=>c(!r),children:t}),e.jsxs("div",{className:We.content,children:[s&&e.jsx("div",{className:We.title,children:s}),e.jsx("div",{className:We.body,children:a})]})]})}Wt.displayName="Popover";const he={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 At({steps:t,currentStep:a,orientation:s="horizontal",className:l=""}){return e.jsx("div",{className:`${he.stepper} ${he[s]} ${l}`,children:t.map((o,r)=>{const c=r<a,i=r===a,n=r===t.length-1,d=[he.step,c&&he.completed,i&&he.active].filter(Boolean).join(" ");return e.jsxs("div",{className:d,children:[e.jsx("div",{className:he.indicator,children:c?"✓":o.icon||r+1}),e.jsxs("div",{className:he.content,children:[e.jsx("div",{className:he.title,children:o.title}),o.description&&e.jsx("div",{className:he.description,children:o.description})]}),!n&&e.jsx("div",{className:he.connector})]},r)})})}At.displayName="Stepper";const Ae={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 Ot({items:t,className:a=""}){return e.jsx("div",{className:`${Ae.timeline} ${a}`,children:t.map((s,l)=>e.jsxs("div",{className:Ae.item,children:[e.jsx("div",{className:Ae.dot,children:s.icon||"•"}),e.jsxs("div",{className:Ae.card,children:[e.jsx("div",{className:Ae.time,children:s.time}),e.jsx("div",{className:Ae.title,children:s.title}),s.description&&e.jsx("div",{className:Ae.description,children:s.description})]})]},l))})}Ot.displayName="Timeline";const ze={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 Ft({value:t,label:a,icon:s,variant:l="default",trend:o,trendValue:r,className:c=""}){const i=[ze.statsCard,l!=="default"&&ze[l],c].filter(Boolean).join(" ");return e.jsxs("div",{className:i,children:[s&&e.jsx("div",{className:ze.icon,children:s}),e.jsxs("div",{className:ze.content,children:[e.jsx("div",{className:ze.value,children:t}),e.jsx("div",{className:ze.label,children:a}),o&&r&&e.jsxs("div",{className:`${ze.trend} ${ze[o]}`,children:[o==="up"?"↑":"↓"," ",r]})]})]})}Ft.displayName="StatsCard";const Z={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 Gt({slides:t,showNav:a=!0,showDots:s=!0,className:l=""}){const[o,r]=p.useState(0),c=d=>{r((d+t.length)%t.length)},i=()=>c(o-1),n=()=>c(o+1);return e.jsxs("div",{className:`${Z.carousel} ${l}`,children:[e.jsx("div",{className:Z.track,style:{transform:`translateX(-${o*100}%)`},children:t.map((d,h)=>e.jsx("div",{className:Z.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:Z.overlay,children:[d.title&&e.jsx("div",{className:Z.overlayTitle,children:d.title}),d.description&&e.jsx("div",{className:Z.overlayDescription,children:d.description})]})]})},h))}),a&&t.length>1&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`${Z.nav} ${Z.navPrev}`,onClick:i,children:"←"}),e.jsx("button",{className:`${Z.nav} ${Z.navNext}`,onClick:n,children:"→"})]}),s&&t.length>1&&e.jsx("div",{className:Z.dots,children:t.map((d,h)=>e.jsx("button",{className:`${Z.dot} ${o===h?Z.active:""}`,onClick:()=>c(h),"aria-label":`Go to slide ${h+1}`},h))})]})}Gt.displayName="Carousel";const A={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"},Pa=t=>t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`;function Ut({accept:t,multiple:a=!1,maxSize:s,disabled:l=!1,onFilesChange:o,className:r=""}){const[c,i]=p.useState([]),[n,d]=p.useState(!1),h=p.useRef(null),m=g=>{if(!g)return;const u=Array.from(g).filter(w=>!s||w.size<=s).map(w=>({file:w,id:`${w.name}-${Date.now()}-${Math.random()}`})),C=a?[...c,...u]:u;i(C),o?.(C.map(w=>w.file))},_=g=>{g.preventDefault(),d(!1),l||m(g.dataTransfer.files)},b=g=>{g.preventDefault(),l||d(!0)},f=()=>d(!1),v=g=>{const u=c.filter(C=>C.id!==g);i(u),o?.(u.map(C=>C.file))},N=[A.dropzone,n&&A.dragging,l&&A.disabled].filter(Boolean).join(" ");return e.jsxs("div",{className:`${A.fileUpload} ${r}`,children:[e.jsxs("div",{className:N,onClick:()=>!l&&h.current?.click(),onDrop:_,onDragOver:b,onDragLeave:f,children:[e.jsx("span",{className:A.icon,children:"📁"}),e.jsxs("div",{className:A.text,children:[e.jsx("div",{className:A.mainText,children:"Dosyaları Sürükle veya Tıkla"}),e.jsx("div",{className:A.subText,children:t?`Kabul edilen: ${t}`:"Tüm dosya türleri kabul edilir"})]}),e.jsx("input",{ref:h,type:"file",className:A.input,accept:t,multiple:a,disabled:l,onChange:g=>m(g.target.files)})]}),c.length>0&&e.jsx("div",{className:A.fileList,children:c.map(g=>e.jsxs("div",{className:A.file,children:[e.jsx("span",{className:A.fileIcon,children:"📄"}),e.jsxs("div",{className:A.fileInfo,children:[e.jsx("div",{className:A.fileName,children:g.file.name}),e.jsx("div",{className:A.fileSize,children:Pa(g.file.size)})]}),e.jsx("button",{className:A.removeBtn,onClick:()=>v(g.id),"aria-label":"Remove file",children:"✕"})]},g.id))})]})}Ut.displayName="FileUpload";const re={navbar:"_navbar_psntg_11",brand:"_brand_psntg_43",brandLogo:"_brandLogo_psntg_57",brandName:"_brandName_psntg_65",brandAccent:"_brandAccent_psntg_81",nav:"_nav_psntg_11",navLink:"_navLink_psntg_103",active:"_active_psntg_139",actions:"_actions_psntg_153",menuToggle:"_menuToggle_psntg_167",mobileOpen:"_mobileOpen_psntg_227"};function Ht({logo:t,brandName:a="ABI",brandAccent:s="-UI",items:l=[],actions:o,className:r=""}){const[c,i]=p.useState(!1);return e.jsxs("nav",{className:`${re.navbar} ${r}`,children:[e.jsxs("a",{href:"/",className:re.brand,children:[t&&e.jsx("span",{className:re.brandLogo,children:t}),e.jsxs("span",{className:re.brandName,children:[a,s&&e.jsx("span",{className:re.brandAccent,children:s})]})]}),e.jsx("div",{className:`${re.nav} ${c?re.mobileOpen:""}`,children:l.map((n,d)=>e.jsx("a",{href:n.href,className:`${re.navLink} ${n.active?re.active:""}`,children:n.label},d))}),o&&e.jsx("div",{className:re.actions,children:o}),e.jsx("button",{className:re.menuToggle,onClick:()=>i(!c),"aria-label":"Toggle menu",children:c?"✕":"☰"})]})}Ht.displayName="Navbar";const Q={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 Vt({brandName:t="ABI",brandAccent:a="-UI",description:s="Manga sitesi için çizgi roman tarzı component kütüphanesi.",groups:l=[],copyright:o=`© ${new Date().getFullYear()} ABI-UI. Tüm hakları saklıdır.`,socials:r=[],className:c=""}){return e.jsxs("footer",{className:`${Q.footer} ${c}`,children:[e.jsxs("div",{className:Q.content,children:[e.jsxs("div",{className:Q.brand,children:[e.jsxs("span",{className:Q.brandName,children:[t,e.jsx("span",{className:Q.brandAccent,children:a})]}),e.jsx("p",{className:Q.brandDescription,children:s})]}),l.map((i,n)=>e.jsxs("div",{className:Q.group,children:[e.jsx("span",{className:Q.groupTitle,children:i.title}),e.jsx("div",{className:Q.groupLinks,children:i.links.map((d,h)=>e.jsx("a",{href:d.href,className:Q.link,children:d.label},h))})]},n))]}),e.jsxs("div",{className:Q.bottom,children:[e.jsx("span",{className:Q.copyright,children:o}),r.length>0&&e.jsx("div",{className:Q.socials,children:r.map((i,n)=>e.jsx("a",{href:i.href,className:Q.social,"aria-label":i.label,children:i.icon},n))})]})]})}Vt.displayName="Footer";const J={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"},qa=["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],Ea=["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"];function Yt({value:t,onDateChange:a,minDate:s,maxDate:l,className:o=""}){const r=new Date,[c,i]=p.useState(t||r),n=c.getFullYear(),d=c.getMonth(),h=new Date(n,d,1),m=new Date(n,d+1,0),_=h.getDay(),b=m.getDate(),f=()=>i(new Date(n,d-1,1)),v=()=>i(new Date(n,d+1,1)),N=y=>y===r.getDate()&&d===r.getMonth()&&n===r.getFullYear(),g=y=>t?y===t.getDate()&&d===t.getMonth()&&n===t.getFullYear():!1,u=y=>{const L=new Date(n,d,y);return!!(s&&L<s||l&&L>l)},C=y=>{u(y)||a?.(new Date(n,d,y))},w=[];for(let y=0;y<_;y++)w.push(e.jsx("div",{className:`${J.day} ${J.otherMonth}`},`prev-${y}`));for(let y=1;y<=b;y++){const L=[J.day,N(y)&&J.today,g(y)&&J.selected,u(y)&&J.disabled].filter(Boolean).join(" ");w.push(e.jsx("button",{className:L,onClick:()=>C(y),children:y},y))}return e.jsxs("div",{className:`${J.calendar} ${o}`,children:[e.jsxs("div",{className:J.header,children:[e.jsx("button",{className:J.navBtn,onClick:f,children:"←"}),e.jsxs("span",{className:J.monthYear,children:[Ea[d]," ",n]}),e.jsx("button",{className:J.navBtn,onClick:v,children:"→"})]}),e.jsx("div",{className:J.weekDays,children:qa.map(y=>e.jsx("div",{className:J.weekDay,children:y},y))}),e.jsx("div",{className:J.days,children:w})]})}Yt.displayName="Calendar";const me={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"},Ma=["#dc2626","#ea580c","#d97706","#16a34a","#0284c7","#7c3aed","#db2777","#1f2937","#f43f5e","#f97316","#eab308","#22c55e","#06b6d4","#8b5cf6","#ec4899","#6b7280"];function Kt({value:t="#dc2626",onColorChange:a,presets:s=Ma,showInput:l=!0,className:o=""}){const[r,c]=p.useState(t);p.useEffect(()=>{c(t)},[t]);const i=n=>{c(n),a?.(n)};return e.jsxs("div",{className:`${me.colorPicker} ${o}`,children:[e.jsxs("div",{className:me.preview,children:[e.jsx("div",{className:me.swatch,style:{backgroundColor:r}}),e.jsx("span",{className:me.value,children:r})]}),e.jsx("div",{className:me.presets,children:s.map(n=>e.jsx("button",{className:`${me.preset} ${r===n?me.active:""}`,style:{backgroundColor:n},onClick:()=>i(n),"aria-label":`Select color ${n}`},n))}),l&&e.jsxs("div",{className:me.inputWrapper,children:[e.jsx("input",{type:"color",className:me.colorInput,value:r,onChange:n=>i(n.target.value)}),e.jsx("input",{type:"text",className:me.textInput,value:r,onChange:n=>i(n.target.value),placeholder:"#000000"})]})]})}Kt.displayName="ColorPicker";const P={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 Qt({notifications:t,onMarkAllRead:a,onNotificationClick:s,className:l=""}){const[o,r]=p.useState(!1),c=p.useRef(null),i=t.filter(n=>!n.read).length;return p.useEffect(()=>{const n=d=>{c.current&&!c.current.contains(d.target)&&r(!1)};return o&&document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)},[o]),e.jsxs("div",{ref:c,className:`${P.notificationCenter} ${o?P.open:""} ${l}`,children:[e.jsxs("button",{className:P.trigger,onClick:()=>r(!o),children:["🔔",i>0&&e.jsx("span",{className:P.badge,children:i})]}),e.jsxs("div",{className:P.dropdown,children:[e.jsxs("div",{className:P.header,children:[e.jsx("span",{className:P.title,children:"Bildirimler"}),i>0&&e.jsx("button",{className:P.markAll,onClick:a,children:"Tümünü Oku"})]}),t.length===0?e.jsxs("div",{className:P.empty,children:[e.jsx("div",{className:P.emptyIcon,children:"📭"}),e.jsx("div",{className:P.emptyText,children:"Bildirim Yok"})]}):t.map(n=>e.jsxs("div",{className:`${P.item} ${n.read?"":P.unread}`,onClick:()=>s?.(n.id),children:[e.jsx("div",{className:P.icon,children:n.icon||"📌"}),e.jsxs("div",{className:P.content,children:[e.jsx("div",{className:P.message,children:n.message}),e.jsx("div",{className:P.time,children:n.time})]})]},n.id))]})]})}Qt.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 Jt({image:t,title:a,rating:s,showRating:l=!1,genres:o=[],maxGenres:r=2,chapters:c,status:i,badges:n=[],isAdult:d=!1,size:h="md",onClick:m,className:_=""}){const b=[D.posterCard,h!=="md"&&D[h],_].filter(Boolean).join(" "),f=o.slice(0,r),v=o.length-r,N=d?[{label:"+18",type:"adult"},...n]:n;return e.jsx("div",{className:b,onClick:m,children:e.jsxs("div",{className:D.imageContainer,children:[t?e.jsx("img",{src:t,alt:a,className:D.image,loading:"lazy"}):e.jsx("div",{className:D.placeholder,children:"📚"}),e.jsx("div",{className:D.gradientOverlay}),N.length>0&&e.jsx("div",{className:D.badges,children:N.map((g,u)=>e.jsx("span",{className:`${D.badge} ${g.type?D[g.type]:""}`,children:g.label},u))}),l&&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:a}),f.length>0&&e.jsxs("div",{className:D.genres,children:[f.map((g,u)=>e.jsx("span",{className:D.genre,children:g},u)),v>0&&e.jsxs("span",{className:D.genreMore,children:["+",v]})]}),(c!==void 0||i)&&e.jsxs("div",{className:D.meta,children:[c!==void 0&&e.jsxs("span",{className:D.metaItem,children:[c," Bölüm"]}),i&&e.jsxs("span",{className:D.metaItem,children:["• ",i]})]})]})]})})}Jt.displayName="MangaPosterCard";const F={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 Xt({chapters:t,title:a="Bölümler",onChapterClick:s,compact:l=!1,showViews:o=!1,className:r=""}){const c=[F.chapterList,l&&F.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:c,children:[e.jsxs("div",{className:F.header,children:[e.jsx("span",{className:F.title,children:a}),e.jsxs("span",{className:F.chapterCount,children:[t.length," Bölüm"]})]}),t.map(n=>e.jsxs("div",{className:`${F.chapterItem} ${n.isRead?F.read:""}`,onClick:()=>s?.(n),children:[e.jsxs("span",{className:F.chapterNumber,children:["#",n.number]}),e.jsxs("div",{className:F.chapterInfo,children:[e.jsx("div",{className:F.chapterTitle,children:n.title||`Bölüm ${n.number}`}),e.jsxs("div",{className:F.chapterMeta,children:[n.date&&e.jsx("span",{className:F.chapterDate,children:n.date}),n.isNew&&e.jsx("span",{className:F.newBadge,children:"Yeni"})]})]}),o&&n.views!==void 0&&e.jsxs("span",{className:F.views,children:["👁 ",i(n.views)]}),n.isRead&&e.jsx("span",{className:F.readIndicator,children:"✓"})]},n.number))]})}Xt.displayName="ChapterList";const we={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 Zt({currentChapter:t,totalChapters:a,label:s="Okuma İlerlemesi",variant:l="default",showChapterInfo:o=!0,className:r=""}){const c=Math.round(t/a*100),i=c>=90,n=[we.readingProgress,l!=="default"&&we[l],i&&we.nearComplete,r].filter(Boolean).join(" ");return e.jsxs("div",{className:n,children:[e.jsxs("div",{className:we.header,children:[e.jsx("span",{className:we.label,children:s}),e.jsxs("span",{className:we.percentage,children:[c,"%"]})]}),e.jsx("div",{className:we.progressBar,children:e.jsx("div",{className:we.progressFill,style:{width:`${c}%`}})}),o&&l!=="inline"&&e.jsxs("div",{className:we.chapterInfo,children:[e.jsxs("span",{children:["Bölüm ",t]}),e.jsxs("span",{children:[a," bölümden"]})]})]})}Zt.displayName="ReadingProgress";const q={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 Rt({avatar:t,username:a,badge:s,comment:l,time:o,chapter:r,likes:c=0,isLiked:i=!1,isSpoiler:n=!1,replyTo:d,onLike:h,onReply:m,className:_=""}){const[b,f]=p.useState(!1),v=N=>{switch(N){case"author":return"Yazar";case"mod":return"Mod";case"vip":return"VIP";default:return""}};return e.jsxs("div",{className:`${q.commentCard} ${_}`,children:[e.jsx("div",{className:q.avatar,children:t?e.jsx("img",{src:t,alt:a}):a.charAt(0).toUpperCase()}),e.jsxs("div",{className:q.content,children:[e.jsxs("div",{className:q.header,children:[e.jsx("span",{className:q.username,children:a}),s&&e.jsx("span",{className:`${q.badge} ${q[s]}`,children:v(s)}),e.jsx("span",{className:q.time,children:o})]}),r!==void 0&&e.jsxs("span",{className:q.chapterRef,children:["📖 Bölüm ",r]}),d&&e.jsxs("div",{className:q.replyIndicator,children:["↩ @",d," kullanıcısına yanıt"]}),e.jsxs("div",{className:n&&!b?q.spoiler:"",children:[e.jsx("p",{className:q.body,children:l}),n&&!b&&e.jsx("div",{className:q.spoilerOverlay,onClick:()=>f(!0),children:"🔒 Spoiler - Görmek için tıkla"})]}),e.jsxs("div",{className:q.actions,children:[e.jsxs("button",{className:`${q.action} ${i?q.liked:""}`,onClick:h,children:[i?"❤️":"🤍"," ",c]}),e.jsx("button",{className:q.action,onClick:m,children:"💬 Yanıtla"})]})]})]})}Rt.displayName="CommentCard";const Ue={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"},Wa={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 ea({label:t,icon:a,count:s,selected:l=!1,size:o="md",variant:r="default",onClick:c,className:i=""}){const n=[Ue.genreChip,l&&Ue.selected,o!=="md"&&Ue[o],r!=="default"&&Ue[r],i].filter(Boolean).join(" "),d=t.toLowerCase().replace(/\s+/g,"_"),h=a??Wa[d];return e.jsxs("button",{className:n,onClick:c,"data-genre":d,children:[h&&e.jsx("span",{className:Ue.icon,children:h}),t,s!==void 0&&e.jsx("span",{className:Ue.count,children:s})]})}ea.displayName="GenreChip";const x={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 ta({placeholder:t="Manga ara...",results:a=[],recentSearches:s=[],isLoading:l=!1,onSearch:o,onResultClick:r,onRecentClick:c,onClearRecent:i,className:n=""}){const[d,h]=p.useState(""),[m,_]=p.useState(!1),b=p.useRef(null);p.useEffect(()=>{const u=C=>{b.current&&!b.current.contains(C.target)&&_(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]);const f=u=>{h(u),o?.(u),_(!0)},v=u=>{r?.(u),h(""),_(!1)},N=u=>{h(u),c?.(u),o?.(u)},g=m&&(d.length>0||s.length>0);return e.jsxs("div",{ref:b,className:`${x.searchBar} ${n}`,children:[e.jsxs("div",{className:x.inputWrapper,children:[e.jsx("span",{className:x.searchIcon,children:"🔍"}),e.jsx("input",{type:"text",className:x.input,placeholder:t,value:d,onChange:u=>f(u.target.value),onFocus:()=>_(!0)}),d&&e.jsx("button",{className:x.clearBtn,onClick:()=>{h(""),o?.("")},children:"✕"})]}),g&&e.jsx("div",{className:x.dropdown,children:l?e.jsx("div",{className:x.loading,children:"⏳ Aranıyor..."}):e.jsxs(e.Fragment,{children:[d.length>0&&a.length>0&&e.jsxs("div",{className:x.section,children:[e.jsx("div",{className:x.sectionTitle,children:"Sonuçlar"}),a.map(u=>e.jsxs("div",{className:x.resultItem,onClick:()=>v(u),children:[u.image&&e.jsx("img",{src:u.image,alt:u.title,className:x.resultImage}),e.jsxs("div",{className:x.resultInfo,children:[e.jsx("div",{className:x.resultTitle,children:u.title}),u.meta&&e.jsx("div",{className:x.resultMeta,children:u.meta})]})]},u.id))]}),d.length>0&&a.length===0&&!l&&e.jsxs("div",{className:x.noResults,children:['"',d,'" için sonuç bulunamadı']}),d.length===0&&s.length>0&&e.jsxs("div",{className:x.section,children:[e.jsx("div",{className:x.sectionTitle,children:"Son Aramalar"}),s.map((u,C)=>e.jsxs("div",{className:x.recentItem,onClick:()=>N(u),children:[e.jsxs("span",{className:x.recentText,children:[e.jsx("span",{className:x.recentIcon,children:"🕐"}),u]}),e.jsx("button",{className:x.removeRecent,onClick:w=>{w.stopPropagation(),i?.(u)},children:"✕"})]},C))]})]})})]})}ta.displayName="SearchBar";const G={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"},Aa={member:"Üye",admin:"Admin",mod:"Moderatör",vip:"VIP",translator:"Çevirmen"};function aa({avatar:t,username:a,level:s,role:l="member",stats:o=[],joinDate:r,variant:c="default",actions:i,onClick:n,className:d=""}){const h=[G.userCard,c!=="default"&&G[c],d].filter(Boolean).join(" "),m=_=>typeof _=="string"?_:_>=1e6?`${(_/1e6).toFixed(1)}M`:_>=1e3?`${(_/1e3).toFixed(1)}K`:_.toString();return e.jsxs("div",{className:h,onClick:n,children:[e.jsxs("div",{className:G.avatar,children:[e.jsx("div",{className:G.avatarImage,children:t?e.jsx("img",{src:t,alt:a}):a.charAt(0).toUpperCase()}),s!==void 0&&e.jsxs("span",{className:G.levelBadge,children:["LV.",s]})]}),e.jsxs("div",{className:G.info,children:[e.jsx("h3",{className:G.username,children:a}),l!=="member"&&e.jsx("span",{className:`${G.roleBadge} ${G[l]}`,children:Aa[l]}),o.length>0&&e.jsx("div",{className:G.stats,children:o.map((_,b)=>e.jsxs("div",{className:G.stat,children:[e.jsx("span",{className:G.statValue,children:m(_.value)}),e.jsx("span",{className:G.statLabel,children:_.label})]},b))}),r&&e.jsxs("span",{className:G.joinDate,children:["📅 ",r]}),i&&e.jsx("div",{className:G.actions,children:i})]})]})}aa.displayName="UserCard";const k={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"},Oa={ongoing:"Devam Ediyor",completed:"Tamamlandı",hiatus:"Ara Verildi"};function sa({cover:t,title:a,altTitle:s,author:l,artist:o,status:r,isAdult:c=!1,genres:i=[],rating:n,views:d,chapters:h,followers:m,description:_,actions:b,className:f=""}){const[v,N]=p.useState(!1),g=u=>u>=1e6?`${(u/1e6).toFixed(1)}M`:u>=1e3?`${(u/1e3).toFixed(1)}K`:u.toString();return e.jsxs("div",{className:`${k.detailHeader} ${f}`,children:[e.jsx("div",{className:k.cover,children:t?e.jsx("img",{src:t,alt:a,className:k.coverImage}):e.jsx("div",{className:k.coverPlaceholder,children:"📚"})}),e.jsxs("div",{className:k.info,children:[e.jsx("h1",{className:k.title,children:a}),s&&e.jsx("p",{className:k.altTitle,children:s}),e.jsxs("div",{className:k.meta,children:[l&&e.jsxs("span",{className:k.metaItem,children:[e.jsx("span",{className:k.metaIcon,children:"✍️"}),e.jsx("span",{className:k.metaLabel,children:"Yazar:"})," ",l]}),o&&o!==l&&e.jsxs("span",{className:k.metaItem,children:[e.jsx("span",{className:k.metaIcon,children:"🎨"}),e.jsx("span",{className:k.metaLabel,children:"Çizer:"})," ",o]})]}),e.jsxs("div",{className:k.badges,children:[r&&e.jsx("span",{className:`${k.badge} ${k[r]}`,children:Oa[r]}),c&&e.jsx("span",{className:`${k.badge} ${k.adult}`,children:"+18"}),i.slice(0,4).map((u,C)=>e.jsx("span",{className:k.badge,children:u},C))]}),e.jsxs("div",{className:k.stats,children:[n!==void 0&&e.jsxs("div",{className:k.stat,children:[e.jsxs("span",{className:k.statValue,children:["⭐ ",n.toFixed(1)]}),e.jsx("span",{className:k.statLabel,children:"Puan"})]}),d!==void 0&&e.jsxs("div",{className:k.stat,children:[e.jsx("span",{className:k.statValue,children:g(d)}),e.jsx("span",{className:k.statLabel,children:"Görüntülenme"})]}),h!==void 0&&e.jsxs("div",{className:k.stat,children:[e.jsx("span",{className:k.statValue,children:h}),e.jsx("span",{className:k.statLabel,children:"Bölüm"})]}),m!==void 0&&e.jsxs("div",{className:k.stat,children:[e.jsx("span",{className:k.statValue,children:g(m)}),e.jsx("span",{className:k.statLabel,children:"Takipçi"})]})]}),_&&e.jsxs("div",{children:[e.jsx("p",{className:`${k.description} ${v?"":k.descriptionClamped}`,children:_}),_.length>200&&e.jsx("button",{className:k.readMore,onClick:()=>N(!v),children:v?"Daha Az":"Devamını Oku"})]}),b&&e.jsx("div",{className:k.actions,children:b})]})]})}sa.displayName="MangaDetailHeader";const Se={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 na({isFavorite:t=!1,count:a,showCount:s=!0,iconOnly:l=!1,size:o="md",onToggle:r,className:c=""}){const i=[Se.favoriteButton,t&&Se.active,l&&Se.iconOnly,o!=="md"&&Se[o],c].filter(Boolean).join(" "),n=()=>{r?.(!t)};return e.jsxs("button",{className:i,onClick:n,children:[e.jsx("span",{className:Se.icon,children:t?"❤️":"🤍"}),s&&a!==void 0&&!l&&e.jsx("span",{className:Se.count,children:a}),e.jsx("div",{className:Se.particles,children:[...Array(8)].map((d,h)=>e.jsx("span",{className:Se.particle},h))})]})}na.displayName="FavoriteButton";const O={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 oa({isBookmarked:t=!1,bookmarkedChapter:a,chapters:s=[],label:l="Yer İşareti",onBookmarkChange:o,className:r=""}){const[c,i]=p.useState(!1),n=p.useRef(null);p.useEffect(()=>{const _=b=>{n.current&&!n.current.contains(b.target)&&i(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]);const d=_=>{o?.(_),i(!1)},h=()=>{o?.(null),i(!1)},m=[O.bookmarkButton,t&&O.active,c&&O.open].filter(Boolean).join(" ");return e.jsxs("div",{ref:n,className:`${O.bookmarkWrapper} ${r}`,children:[e.jsxs("button",{className:m,onClick:()=>i(!c),children:[e.jsx("span",{className:O.icon,children:t?"🔖":"📑"}),l,s.length>0&&e.jsx("span",{className:O.arrow,children:"▼"})]}),c&&s.length>0&&e.jsxs("div",{className:O.dropdown,children:[e.jsx("div",{className:O.dropdownHeader,children:"Bölüm Seç"}),s.slice(0,10).map(_=>e.jsxs("div",{className:`${O.chapterItem} ${a===_.number?O.selected:""}`,onClick:()=>d(_.number),children:[e.jsxs("span",{className:O.chapterNumber,children:["Bölüm ",_.number]}),a===_.number&&e.jsx("span",{className:O.currentBadge,children:"Kayıtlı"}),_.date&&e.jsx("span",{className:O.chapterDate,children:_.date})]},_.number)),t&&e.jsx("div",{className:O.dropdownActions,children:e.jsx("button",{className:`${O.actionBtn} ${O.remove}`,onClick:h,children:"Kaldır"})})]})]})}oa.displayName="BookmarkButton";const T={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 la({mangaTitle:t,chapterTitle:a,currentPage:s=1,totalPages:l=1,hasPrevChapter:o=!1,hasNextChapter:r=!1,readingMode:c="vertical",isFullscreen:i=!1,compact:n=!1,sticky:d=!1,onPrevChapter:h,onNextChapter:m,onPrevPage:_,onNextPage:b,onModeChange:f,onFullscreenToggle:v,onSettingsClick:N,className:g=""}){const u=[T.readerToolbar,n&&T.compact,d&&T.sticky,g].filter(Boolean).join(" ");return e.jsxs("div",{className:u,children:[e.jsxs("div",{className:T.navGroup,children:[e.jsx("button",{className:T.navBtn,disabled:!o,onClick:h,title:"Önceki Bölüm",children:"⏮"}),e.jsx("button",{className:T.navBtn,disabled:s<=1,onClick:_,title:"Önceki Sayfa",children:"◀"}),e.jsx("button",{className:T.navBtn,disabled:s>=l,onClick:b,title:"Sonraki Sayfa",children:"▶"}),e.jsx("button",{className:T.navBtn,disabled:!r,onClick:m,title:"Sonraki Bölüm",children:"⏭"})]}),e.jsxs("div",{className:T.chapterInfo,children:[e.jsx("span",{className:T.chapterTitle,children:a}),e.jsx("span",{className:T.mangaTitle,children:t})]}),e.jsxs("div",{className:T.toolsGroup,children:[e.jsxs("div",{className:T.modeGroup,children:[e.jsx("button",{className:`${T.modeBtn} ${c==="vertical"?T.active:""}`,onClick:()=>f?.("vertical"),title:"Dikey",children:"↕"}),e.jsx("button",{className:`${T.modeBtn} ${c==="horizontal"?T.active:""}`,onClick:()=>f?.("horizontal"),title:"Yatay",children:"↔"}),e.jsx("button",{className:`${T.modeBtn} ${c==="single"?T.active:""}`,onClick:()=>f?.("single"),title:"Tek Sayfa",children:"▢"})]}),e.jsx("div",{className:T.divider}),e.jsx("button",{className:`${T.toolBtn} ${i?T.active:""}`,onClick:v,title:i?"Tam Ekrandan Çık":"Tam Ekran",children:"⛶"}),e.jsx("button",{className:T.toolBtn,onClick:N,title:"Ayarlar",children:"⚙️"})]})]})}la.displayName="ReaderToolbar";const ke={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 ca({currentPage:t,totalPages:a,showProgress:s=!1,variant:l="default",className:o=""}){const r=t/a*100,c=[ke.pageCounter,s&&ke.withProgress,l!=="default"&&ke[l],o].filter(Boolean).join(" ");return e.jsxs("div",{className:c,children:[s&&e.jsx("div",{className:ke.progressBar,children:e.jsx("div",{className:ke.progressFill,style:{width:`${r}%`}})}),e.jsxs("div",{className:ke.numbers,children:[e.jsx("span",{className:ke.current,children:t}),e.jsx("span",{className:ke.separator,children:"/"}),e.jsx("span",{className:ke.total,children:a})]})]})}ca.displayName="PageCounter";const j={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 ra({state:t="none",likeCount:a=0,dislikeCount:s=0,showDislike:l=!1,vertical:o=!1,onLike:r,onDislike:c,className:i=""}){const n=d=>d>=1e6?`${(d/1e6).toFixed(1)}M`:d>=1e3?`${(d/1e3).toFixed(1)}K`:d.toString();return l?e.jsxs("div",{className:`${j.likeDislikeGroup} ${i}`,children:[e.jsxs("button",{className:`${j.likeButton} ${t==="liked"?j.liked:""} ${o?j.vertical:""}`,onClick:r,children:[e.jsx("span",{className:j.icon,children:"👍"}),e.jsx("span",{className:j.count,children:n(a)}),e.jsx("span",{className:j.floatingOne,children:"+1"})]}),e.jsxs("button",{className:`${j.likeButton} ${t==="disliked"?j.disliked:""} ${o?j.vertical:""}`,onClick:c,children:[e.jsx("span",{className:j.icon,children:"👎"}),e.jsx("span",{className:j.count,children:n(s)})]})]}):e.jsxs("button",{className:`${j.likeButton} ${t==="liked"?j.liked:""} ${o?j.vertical:""} ${i}`,onClick:r,children:[e.jsx("span",{className:j.icon,children:"👍"}),e.jsx("span",{className:j.count,children:n(a)}),e.jsx("span",{className:j.floatingOne,children:"+1"})]})}ra.displayName="LikeButton";const X={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"},Fa={twitter:"𝕏",facebook:"📘",whatsapp:"💬",telegram:"✈️",reddit:"🔴",discord:"🎮"};function ia({url:t=typeof window<"u"?window.location.href:"",title:a="",platforms:s=["twitter","facebook","whatsapp","telegram"],showCopyLink:l=!0,iconOnly:o=!1,onShare:r,className:c=""}){const[i,n]=p.useState(!1),[d,h]=p.useState(!1),m=p.useRef(null);p.useEffect(()=>{const v=N=>{m.current&&!m.current.contains(N.target)&&n(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]);const _=v=>{const N=encodeURIComponent(t),g=encodeURIComponent(a),u={twitter:`https://twitter.com/intent/tweet?url=${N}&text=${g}`,facebook:`https://www.facebook.com/sharer/sharer.php?u=${N}`,whatsapp:`https://wa.me/?text=${g}%20${N}`,telegram:`https://t.me/share/url?url=${N}&text=${g}`,reddit:`https://reddit.com/submit?url=${N}&title=${g}`,discord:"https://discord.com/channels/@me"};window.open(u[v],"_blank","width=600,height=400"),r?.(v),n(!1)},b=async()=>{try{await navigator.clipboard.writeText(t),h(!0),r?.("copy"),setTimeout(()=>h(!1),2e3)}catch(v){console.error("Failed to copy:",v)}},f=[X.shareButton,o&&X.iconOnly].filter(Boolean).join(" ");return e.jsxs("div",{ref:m,className:`${X.shareWrapper} ${c}`,children:[e.jsxs("button",{className:f,onClick:()=>n(!i),children:[e.jsx("span",{className:X.icon,children:"📤"}),!o&&"Paylaş"]}),i&&e.jsxs("div",{className:X.dropdown,children:[e.jsx("div",{className:X.dropdownTitle,children:"Paylaş"}),e.jsx("div",{className:X.socialGrid,children:s.map(v=>e.jsx("button",{className:`${X.socialBtn} ${X[v]}`,onClick:()=>_(v),title:v,children:Fa[v]},v))}),l&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:X.divider}),e.jsxs("button",{className:`${X.copyLink} ${d?X.copied:""}`,onClick:b,children:[e.jsx("span",{className:X.copyIcon,children:d?"✓":"📋"}),e.jsx("span",{className:X.copyText,children:d?"Kopyalandı!":"Linki Kopyala"})]})]})]})]})}ia.displayName="ShareButton";const ie={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 da({isFollowing:t=!1,count:a,showCount:s=!1,size:l="md",variant:o="default",iconOnly:r=!1,loading:c=!1,onToggle:i,className:n=""}){const[d,h]=p.useState(!1),m=()=>{c||(t||(h(!0),setTimeout(()=>h(!1),400)),i?.(!t))},_=N=>N>=1e6?`${(N/1e6).toFixed(1)}M`:N>=1e3?`${(N/1e3).toFixed(1)}K`:N.toString(),b=()=>c?"⏳":o==="bell"?t?"🔔":"🔕":t?"✓":"+",f=()=>o==="bell"?t?"Bildirimlerde":"Bildirim Al":t?"Takip Ediliyor":"Takip Et",v=[ie.followButton,t&&ie.following,l!=="md"&&ie[l],o!=="default"&&ie[o],r&&ie.iconOnly,c&&ie.loading,d&&ie.justFollowed,n].filter(Boolean).join(" ");return e.jsxs("button",{className:v,onClick:m,children:[e.jsx("span",{className:ie.icon,children:b()}),e.jsx("span",{className:ie.text,children:t?e.jsx("span",{children:e.jsx("span",{className:ie.defaultText,children:f()})}):f()}),s&&a!==void 0&&e.jsx("span",{className:ie.count,children:_(a)})]})}da.displayName="FollowButton";const E={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"},Ga=[{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 _a({isOpen:t,contentType:a="içerik",reasons:s=Ga,showDetails:l=!0,onClose:o,onSubmit:r}){const[c,i]=p.useState(null),[n,d]=p.useState("");p.useEffect(()=>{const _=b=>{b.key==="Escape"&&o()};return t&&(document.addEventListener("keydown",_),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",_),document.body.style.overflow=""}},[t,o]),p.useEffect(()=>{t&&(i(null),d(""))},[t]);const h=()=>{c&&(r?.(c,n||void 0),o())};if(!t)return null;const m=e.jsx("div",{className:E.overlay,onClick:o,children:e.jsxs("div",{className:E.modal,onClick:_=>_.stopPropagation(),children:[e.jsxs("div",{className:E.header,children:[e.jsxs("h2",{className:E.title,children:[e.jsx("span",{className:E.titleIcon,children:"🚨"}),"Şikayet Et"]}),e.jsx("button",{className:E.closeBtn,onClick:o,children:"✕"})]}),e.jsxs("div",{className:E.body,children:[e.jsxs("p",{className:E.description,children:["Bu ",a," neden şikayet ediyorsunuz?"]}),e.jsx("div",{className:E.reasonList,children:s.map(_=>e.jsxs("div",{className:`${E.reasonItem} ${c===_.id?E.selected:""}`,onClick:()=>i(_.id),children:[e.jsx("span",{className:E.radioCircle}),_.label]},_.id))}),l&&e.jsxs(e.Fragment,{children:[e.jsx("label",{className:E.detailsLabel,children:"Ek Açıklama (İsteğe Bağlı)"}),e.jsx("textarea",{className:E.detailsInput,placeholder:"Detaylı açıklama yazabilirsiniz...",value:n,onChange:_=>d(_.target.value)})]})]}),e.jsxs("div",{className:E.footer,children:[e.jsx("button",{className:E.cancelBtn,onClick:o,children:"İptal"}),e.jsx("button",{className:E.submitBtn,disabled:!c,onClick:h,children:"Gönder"})]})]})});return ue.createPortal(m,document.body)}_a.displayName="ReportModal";const De={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"},Ua={default:"📭",noResults:"🔍",noData:"📂",error:"⚠️"},Ha={default:"Burada henüz içerik yok",noResults:"Sonuç bulunamadı",noData:"Veri yok",error:"Bir hata oluştu"},Va={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 pa({icon:t,title:a,description:s,action:l,variant:o="default",type:r="default",className:c=""}){const i=[De.emptyState,o!=="default"&&De[o],r!=="default"&&De[r],c].filter(Boolean).join(" "),n=t??Ua[r],d=a??Ha[r],h=s??Va[r];return e.jsxs("div",{className:i,children:[o==="illustration"?e.jsx("div",{className:De.icon,children:n}):e.jsx("span",{className:De.icon,children:n}),e.jsx("h3",{className:De.title,children:d}),e.jsx("p",{className:De.description,children:h}),l&&e.jsx("div",{className:De.action,children:l})]})}pa.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 ha({data:t,columns:a,title:s,showSearch:l=!1,searchPlaceholder:o="Ara...",searchFields:r=[],striped:c=!1,compact:i=!1,pageSize:n=10,loading:d=!1,emptyMessage:h="Veri bulunamadı",rowKey:m,headerActions:_,className:b=""}){const[f,v]=p.useState(""),[N,g]=p.useState(null),[u,C]=p.useState(null),[w,y]=p.useState(1),L=p.useMemo(()=>{if(!f.trim()||r.length===0)return t;const B=f.toLowerCase();return t.filter(fe=>r.some(S=>{const He=fe[S];return String(He).toLowerCase().includes(B)}))},[t,f,r]),Y=p.useMemo(()=>!N||!u?L:[...L].sort((B,fe)=>{const S=B[N],He=fe[N];if(S===He)return 0;if(S==null)return 1;if(He==null)return-1;const xa=S<He?-1:1;return u==="asc"?xa:-xa}),[L,N,u]),ge=p.useMemo(()=>{if(n===0)return Y;const B=(w-1)*n;return Y.slice(B,B+n)},[Y,w,n]),se=n>0?Math.ceil(Y.length/n):1,Ke=B=>{N===B?u==="asc"?C("desc"):u==="desc"?(g(null),C(null)):C("asc"):(g(B),C("asc"))},Ze=B=>N!==B?"↕":u==="asc"?"↑":"↓",Ja=[I.dataTable,c&&I.striped,i&&I.compact,d&&I.loading,b].filter(Boolean).join(" ");return e.jsxs("div",{className:Ja,children:[(s||l||_)&&e.jsxs("div",{className:I.tableHeader,children:[s&&e.jsx("h3",{className:I.tableTitle,children:s}),e.jsxs("div",{className:I.headerActions,children:[l&&e.jsxs("div",{className:I.searchWrapper,children:[e.jsx("span",{children:"🔍"}),e.jsx("input",{type:"text",className:I.searchInput,placeholder:o,value:f,onChange:B=>{v(B.target.value),y(1)}})]}),_]})]}),e.jsx("div",{className:I.tableContainer,children:e.jsxs("table",{className:I.table,children:[e.jsx("thead",{children:e.jsx("tr",{children:a.map(B=>e.jsxs("th",{className:B.sortable?`${I.sortable} ${N===B.key?I.sorted:""}`:"",style:{width:B.width},onClick:B.sortable?()=>Ke(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:ge.length===0?e.jsx("tr",{children:e.jsx("td",{colSpan:a.length,className:I.emptyRow,children:h})}):ge.map((B,fe)=>e.jsx("tr",{children:a.map(S=>e.jsx("td",{children:S.render?S.render(B[S.key],B,fe):String(B[S.key]??"")},String(S.key)))},m?String(B[m]):fe))})]})}),n>0&&Y.length>n&&e.jsxs("div",{className:I.tableFooter,children:[e.jsxs("span",{className:I.rowInfo,children:[(w-1)*n+1,"-",Math.min(w*n,Y.length)," / ",Y.length]}),e.jsxs("div",{className:I.paginationWrapper,children:[e.jsx("button",{className:I.pageBtn,disabled:w===1,onClick:()=>y(1),children:"«"}),e.jsx("button",{className:I.pageBtn,disabled:w===1,onClick:()=>y(B=>B-1),children:"‹"}),Array.from({length:Math.min(5,se)},(B,fe)=>{let S=fe+1;return se>5&&(w>3&&(S=w-2+fe),w>se-2&&(S=se-4+fe)),e.jsx("button",{className:`${I.pageBtn} ${w===S?I.active:""}`,onClick:()=>y(S),children:S},S)}),e.jsx("button",{className:I.pageBtn,disabled:w===se,onClick:()=>y(B=>B+1),children:"›"}),e.jsx("button",{className:I.pageBtn,disabled:w===se,onClick:()=>y(se),children:"»"})]})]})]})}ha.displayName="DataTable";const z={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 ma({label:t,size:a="md",variant:s="default",error:l=!1,errorMessage:o,helperText:r,required:c=!1,maxChars:i,showCharCount:n=!1,noResize:d=!1,autoGrow:h=!1,className:m="",value:_,onChange:b,...f}){const v=p.useRef(null),N=String(_||"").length;p.useEffect(()=>{h&&v.current&&(v.current.style.height="auto",v.current.style.height=`${v.current.scrollHeight}px`)},[_,h]);const g=[z.textareaWrapper,a!=="md"&&z[a],s!=="default"&&z[s],l&&z.error,d&&z.noResize,h&&z.autoGrow,m].filter(Boolean).join(" "),u=()=>i?N>i?`${z.charCount} ${z.exceeded}`:N>i*.9?`${z.charCount} ${z.warning}`:z.charCount:z.charCount;return e.jsxs("div",{className:g,children:[t&&e.jsxs("label",{className:z.label,children:[t,c&&e.jsx("span",{className:z.required,children:" *"})]}),e.jsx("div",{className:z.textareaContainer,children:e.jsx("textarea",{ref:v,className:z.textarea,value:_,onChange:b,maxLength:i,...f})}),e.jsxs("div",{className:z.footer,children:[l&&o?e.jsx("span",{className:z.errorMessage,children:o}):r?e.jsx("span",{className:z.helperText,children:r}):e.jsx("span",{}),n&&e.jsxs("span",{className:u(),children:[N,i?` / ${i}`:""]})]})]})}ma.displayName="TextArea";const U={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 $a({images:t,initialIndex:a=0,isOpen:s,title:l,showThumbnails:o=!0,showCounter:r=!0,onClose:c,onIndexChange:i}){const[n,d]=p.useState(a),[h,m]=p.useState(!0);p.useEffect(()=>{s&&(d(a),m(!0))},[s,a]),p.useEffect(()=>{const g=u=>{if(s)switch(u.key){case"Escape":c();break;case"ArrowLeft":_();break;case"ArrowRight":b();break}};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[s,n]),p.useEffect(()=>(s&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[s]);const _=p.useCallback(()=>{if(n>0){const g=n-1;d(g),m(!0),i?.(g)}},[n,i]),b=p.useCallback(()=>{if(n<t.length-1){const g=n+1;d(g),m(!0),i?.(g)}},[n,t.length,i]),f=g=>{d(g),m(!0),i?.(g)};if(!s||t.length===0)return null;const v=t[n],N=e.jsxs("div",{className:U.overlay,onClick:c,children:[e.jsxs("div",{className:U.header,children:[e.jsx("span",{className:U.title,children:l}),r&&e.jsxs("span",{className:U.counter,children:[n+1," / ",t.length]}),e.jsx("button",{className:U.closeBtn,onClick:c,children:"✕"})]}),e.jsxs("div",{className:U.imageContainer,onClick:g=>g.stopPropagation(),children:[h&&e.jsx("span",{className:U.loading,children:"Yükleniyor..."}),e.jsx("img",{src:v.src,alt:v.alt||`Image ${n+1}`,className:U.image,onLoad:()=>m(!1),style:{display:h?"none":"block"}})]}),t.length>1&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`${U.navBtn} ${U.prevBtn}`,onClick:g=>{g.stopPropagation(),_()},disabled:n===0,children:"◀"}),e.jsx("button",{className:`${U.navBtn} ${U.nextBtn}`,onClick:g=>{g.stopPropagation(),b()},disabled:n===t.length-1,children:"▶"})]}),o&&t.length>1&&e.jsx("div",{className:U.thumbnails,onClick:g=>g.stopPropagation(),children:t.map((g,u)=>e.jsx("button",{className:`${U.thumbnail} ${u===n?U.active:""}`,onClick:()=>f(u),children:e.jsx("img",{src:g.thumbnail||g.src,alt:""})},u))})]});return ue.createPortal(N,document.body)}$a.displayName="ImageViewer";const Ce={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 ga({isOpen:t,position:a="left",size:s="md",title:l,showCloseButton:o=!0,closeOnOverlayClick:r=!0,closeOnEscape:c=!0,header:i,footer:n,children:d,onClose:h,className:m=""}){if(p.useEffect(()=>{if(!c)return;const f=v=>{v.key==="Escape"&&t&&h()};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[t,c,h]),p.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[t]),!t)return null;const _=[Ce.drawer,Ce[a],Ce[s],m].filter(Boolean).join(" "),b=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:Ce.overlay,onClick:r?h:void 0}),e.jsxs("div",{className:_,children:[(l||i||o)&&e.jsxs("div",{className:Ce.header,children:[i||e.jsx("span",{className:Ce.title,children:l}),o&&e.jsx("button",{className:Ce.closeBtn,onClick:h,children:"✕"})]}),e.jsx("div",{className:Ce.body,children:d}),n&&e.jsx("div",{className:Ce.footer,children:n})]})]});return ue.createPortal(b,document.body)}ga.displayName="Drawer";const H={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"},Ya={danger:"⚠️",warning:"❓",info:"ℹ️",success:"✓"},Ka={danger:"Emin misiniz?",warning:"Dikkat",info:"Bilgi",success:"Onay"};function fa({isOpen:t,variant:a="danger",title:s,message:l,confirmText:o="Onayla",cancelText:r="İptal",loading:c=!1,onConfirm:i,onCancel:n}){if(p.useEffect(()=>{const m=_=>{_.key==="Escape"&&t&&n()};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[t,n]),p.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[t]),!t)return null;const d=[H.dialog,c&&H.loading].filter(Boolean).join(" "),h=e.jsx("div",{className:H.overlay,onClick:n,children:e.jsxs("div",{className:d,onClick:m=>m.stopPropagation(),children:[e.jsx("div",{className:H.iconWrapper,children:e.jsx("span",{className:`${H.icon} ${H[a]}`,children:Ya[a]})}),e.jsxs("div",{className:H.content,children:[e.jsx("h3",{className:H.title,children:s||Ka[a]}),e.jsx("p",{className:H.message,children:l})]}),e.jsxs("div",{className:H.actions,children:[e.jsx("button",{className:`${H.btn} ${H.cancelBtn}`,onClick:n,children:r}),e.jsx("button",{className:`${H.btn} ${H.confirmBtn} ${H[a]}`,onClick:i,children:c?"...":o})]})]})});return ue.createPortal(h,document.body)}fa.displayName="ConfirmDialog";const de={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 ua({showAfter:t=400,position:a="bottomRight",size:s="md",showProgress:l=!1,icon:o="↑",showText:r=!1,text:c="Yukarı",smooth:i=!0,className:n=""}){const[d,h]=p.useState(!1),[m,_]=p.useState(0);p.useEffect(()=>{const u=()=>{const C=window.scrollY,w=document.documentElement.scrollHeight-window.innerHeight;h(C>t),l&&w>0&&_(C/w*100)};return window.addEventListener("scroll",u,{passive:!0}),u(),()=>window.removeEventListener("scroll",u)},[t,l]);const b=()=>{window.scrollTo({top:0,behavior:i?"smooth":"auto"})},f=[de.scrollToTop,d&&de.visible,a!=="bottomRight"&&de[a],s!=="md"&&de[s],r&&de.withText,l&&de.withProgress,n].filter(Boolean).join(" "),v=s==="sm"?22:s==="lg"?32:27,N=2*Math.PI*v,g=N-m/100*N;return e.jsxs("button",{className:f,onClick:b,"aria-label":"Yukarı git",children:[l&&e.jsxs("svg",{className:de.progressRing,viewBox:"0 0 60 60",children:[e.jsx("circle",{className:de.progressBg,cx:"30",cy:"30",r:v}),e.jsx("circle",{className:de.progressFill,cx:"30",cy:"30",r:v,strokeDasharray:N,strokeDashoffset:g})]}),e.jsx("span",{className:de.icon,children:o}),r&&e.jsx("span",{className:de.text,children:c})]})}ua.displayName="ScrollToTop";const V={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 ba({src:t,alt:a,placeholder:s,ratio:l,rounding:o="none",comic:r=!1,zoomOnHover:c=!1,width:i,height:n,onLoad:d,onError:h,className:m="",style:_}){const[b,f]=p.useState(!1),[v,N]=p.useState(!1),[g,u]=p.useState(!1),C=p.useRef(null);p.useEffect(()=>{const ge=new IntersectionObserver(([se])=>{se.isIntersecting&&(u(!0),ge.disconnect())},{rootMargin:"100px"});return C.current&&ge.observe(C.current),()=>ge.disconnect()},[]);const w=()=>{f(!0),d?.()},y=()=>{N(!0),h?.()},L=[V.lazyImage,l&&V[`ratio${l.replace("x","x")}`],o!=="none"&&V[o],r&&V.comic,c&&V.zoomOnHover,m].filter(Boolean).join(" "),Y={width:i,height:n,..._};return e.jsxs("div",{ref:C,className:L,style:Y,children:[s&&e.jsx("div",{className:`${V.blurPlaceholder} ${b?V.hidden:""}`,style:{backgroundImage:`url(${s})`}}),!b&&!v&&!s&&e.jsxs("div",{className:V.placeholder,children:[e.jsx("span",{className:V.placeholderIcon,children:"🖼️"}),e.jsx("div",{className:V.shimmer})]}),v&&e.jsxs("div",{className:V.error,children:[e.jsx("span",{className:V.errorIcon,children:"⚠️"}),e.jsx("span",{className:V.errorText,children:"Yüklenemedi"})]}),g&&!v&&e.jsx("img",{src:t,alt:a,className:`${V.image} ${b?V.loaded:""}`,onLoad:w,onError:y})]})}ba.displayName="LazyImage";const M={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 va({groups:t,values:a={},showClear:s=!0,showApply:l=!1,horizontal:o=!1,title:r="🔎 Filtreler",footer:c,onChange:i,onApply:n,onClear:d,className:h=""}){const[m,_]=p.useState(a),[b,f]=p.useState(new Set(t.map(w=>w.id))),v=(w,y,L)=>{const Y=m[w];let ge;if(L){const Ke=Array.isArray(Y)?Y:Y?[Y]:[];ge=Ke.includes(y)?Ke.filter(Ze=>Ze!==y):[...Ke,y]}else ge=Y===y?"":y;const se={...m,[w]:ge};_(se),i?.(se)},N=w=>{const y=new Set(b);y.has(w)?y.delete(w):y.add(w),f(y)},g=()=>{_({}),d?.(),i?.({})},u=(w,y)=>{const L=m[w];return Array.isArray(L)?L.includes(y):L===y},C=[M.filterPanel,o&&M.horizontal,h].filter(Boolean).join(" ");return e.jsxs("div",{className:C,children:[e.jsxs("div",{className:M.header,children:[e.jsx("span",{className:M.title,children:r}),s&&Object.keys(m).length>0&&e.jsx("button",{className:M.clearBtn,onClick:g,children:"Temizle"})]}),e.jsx("div",{className:M.body,children:t.map(w=>e.jsxs("div",{className:`${M.filterGroup} ${w.collapsible?M.collapsible:""} ${b.has(w.id)?M.open:""}`,children:[e.jsxs("label",{className:M.filterLabel,onClick:w.collapsible?()=>N(w.id):void 0,children:[w.label,w.collapsible&&e.jsx("span",{className:M.collapseIcon,children:"▼"})]}),e.jsx("div",{className:w.collapsible?M.collapsibleContent:void 0,children:w.type==="chips"&&w.options&&e.jsx("div",{className:M.chipGroup,children:w.options.map(y=>e.jsx("button",{className:`${M.chip} ${u(w.id,y.value)?M.selected:""}`,onClick:()=>v(w.id,y.value,w.multiple),children:y.label},y.value))})})]},w.id))}),(l||c)&&e.jsxs("div",{className:M.footer,children:[c,l&&e.jsx("button",{className:M.applyBtn,onClick:()=>n?.(m),children:"Uygula"})]})]})}va.displayName="FilterPanel";const ae={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 Na({options:t,value:a,placeholder:s="Sırala",icon:l="↕️",compact:o=!1,iconOnly:r=!1,onChange:c,className:i=""}){const[n,d]=p.useState(!1),h=p.useRef(null);p.useEffect(()=>{const f=v=>{h.current&&!h.current.contains(v.target)&&d(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[]);const m=t.find(f=>f.value===a),_=f=>{c?.(f),d(!1)},b=[ae.sortSelector,o&&ae.compact,r&&ae.iconOnly,i].filter(Boolean).join(" ");return e.jsxs("div",{ref:h,className:b,children:[e.jsxs("button",{className:`${ae.trigger} ${n?ae.open:""}`,onClick:()=>d(!n),children:[e.jsx("span",{className:ae.icon,children:l}),e.jsx("span",{className:ae.currentLabel,children:m?.label||s}),e.jsx("span",{className:ae.arrow,children:"▼"})]}),n&&e.jsx("div",{className:ae.dropdown,children:t.map(f=>e.jsxs("button",{className:`${ae.option} ${a===f.value?ae.selected:""}`,onClick:()=>_(f.value),children:[e.jsxs("span",{children:[f.icon&&e.jsxs("span",{children:[f.icon," "]}),f.label]}),a===f.value&&e.jsx("span",{className:ae.checkmark,children:"✓"})]},f.value))})]})}Na.displayName="SortSelector";const W={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 ya({isVisible:t,variant:a="default",message:s="Yükleniyor...",logo:l,showProgress:o=!1,progress:r=0}){if(p.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[t]),!t)return null;const c=[W.overlay,a!=="default"&&W[a]].filter(Boolean).join(" "),i=e.jsxs("div",{className:c,children:[l&&e.jsx("span",{className:W.logo,children:l}),a==="dots"?e.jsxs("div",{className:W.dots,children:[e.jsx("span",{className:W.dot}),e.jsx("span",{className:W.dot}),e.jsx("span",{className:W.dot})]}):a==="manga"?e.jsx("div",{className:W.mangaLoader,children:e.jsxs("div",{className:W.mangaPages,children:[e.jsx("span",{className:W.mangaPage}),e.jsx("span",{className:W.mangaPage}),e.jsx("span",{className:W.mangaPage})]})}):e.jsx("div",{className:W.spinner}),s&&e.jsx("p",{className:W.message,children:s}),o&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:W.progress,children:e.jsx("div",{className:W.progressBar,style:{width:`${r}%`}})}),e.jsxs("span",{className:W.progressText,children:[Math.round(r),"%"]})]})]});return ue.createPortal(i,document.body)}ya.displayName="LoadingOverlay";const R={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 wa({icon:t,label:a,position:s="bottomRight",size:l="md",color:o="primary",extended:r=!1,pulse:c=!1,menuItems:i,onClick:n,className:d=""}){const[h,m]=p.useState(!1),_=()=>{i&&i.length>0?m(!h):n?.()},b=v=>{v.onClick?.(),m(!1)},f=[R.fab,R[s],l!=="md"&&R[l],R[o],r&&R.extended,c&&R.pulse,i&&R.rotateOnOpen,h&&R.open,d].filter(Boolean).join(" ");return e.jsxs("button",{className:f,onClick:_,children:[i&&i.length>0&&e.jsx("div",{className:R.menu,children:i.map((v,N)=>e.jsxs("button",{className:R.menuItem,onClick:g=>{g.stopPropagation(),b(v)},children:[e.jsx("span",{className:R.menuIcon,children:v.icon}),v.label]},N))}),e.jsx("span",{className:R.icon,children:t}),a&&r&&e.jsx("span",{className:R.label,children:a})]})}wa.displayName="FloatingActionButton";const $e={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 ka({isOpen:t,size:a="md",title:s,showHandle:l=!0,showCloseButton:o=!0,closeOnOverlayClick:r=!0,footer:c,children:i,onClose:n,className:d=""}){if(p.useEffect(()=>{const _=b=>{b.key==="Escape"&&t&&n()};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[t,n]),p.useEffect(()=>(t&&(document.body.style.overflow="hidden"),()=>{document.body.style.overflow=""}),[t]),!t)return null;const h=[$e.sheet,$e[a],d].filter(Boolean).join(" "),m=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:$e.overlay,onClick:r?n:void 0}),e.jsxs("div",{className:h,children:[l&&e.jsx("div",{className:$e.handle,children:e.jsx("div",{className:$e.handleBar})}),(s||o)&&e.jsxs("div",{className:$e.header,children:[e.jsx("span",{className:$e.title,children:s}),o&&e.jsx("button",{className:$e.closeBtn,onClick:n,children:"✕"})]}),e.jsx("div",{className:$e.body,children:i}),c&&e.jsx("div",{className:$e.footer,children:c})]})]});return ue.createPortal(m,document.body)}ka.displayName="BottomSheet";const je={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 Ca({items:t,variant:a="default",duration:s=20,pauseOnHover:l=!0,fadeEdges:o=!0,separator:r="•",onItemClick:c,className:i=""}){const n=[...t,...t],d=[je.marquee,a!=="default"&&je[a],o&&je.fade,c&&je.clickable,i].filter(Boolean).join(" "),h={"--duration":`${s}s`,"--pause-on-hover":l?"paused":"running"},m=_=>{_.href&&window.open(_.href,"_blank"),c?.(_)};return e.jsx("div",{className:d,children:e.jsx("div",{className:je.content,style:h,children:n.map((_,b)=>e.jsxs("span",{children:[e.jsxs("span",{className:je.item,onClick:c?()=>m(_):void 0,style:{cursor:c||_.href?"pointer":"default"},children:[_.icon&&e.jsx("span",{className:je.itemIcon,children:_.icon}),_.text]}),e.jsxs("span",{className:je.separator,children:[" ",r," "]})]},b))})})}Ca.displayName="Marquee";const ee={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 Ba({variant:t="default",message:a="Bu site çerezleri kullanmaktadır. Sitemizi kullanarak çerez politikamızı kabul etmiş olursunuz.",privacyLink:s,privacyText:l="Gizlilik Politikası",acceptText:o="Kabul Et",rejectText:r="Reddet",showSettings:c=!1,settingsText:i="Ayarlar",storageKey:n="cookie-consent",onAccept:d,onReject:h,onSettings:m,className:_=""}){const[b,f]=p.useState(!1);p.useEffect(()=>{localStorage.getItem(n)||f(!0)},[n]);const v=()=>{localStorage.setItem(n,"accepted"),f(!1),d?.()},N=()=>{localStorage.setItem(n,"rejected"),f(!1),h?.()};if(!b)return null;const g=[ee.cookieConsent,t!=="default"&&ee[t],_].filter(Boolean).join(" "),u=e.jsxs("div",{className:g,children:[e.jsxs("div",{className:ee.content,children:[e.jsx("span",{className:ee.icon,children:"🍪"}),e.jsxs("p",{className:ee.text,children:[a,s&&e.jsxs(e.Fragment,{children:[" ",e.jsx("a",{href:s,className:ee.link,target:"_blank",rel:"noopener noreferrer",children:l})]})]})]}),e.jsxs("div",{className:ee.actions,children:[c&&e.jsx("button",{className:`${ee.btn} ${ee.settingsBtn}`,onClick:m,children:i}),e.jsx("button",{className:`${ee.btn} ${ee.rejectBtn}`,onClick:N,children:r}),e.jsx("button",{className:`${ee.btn} ${ee.acceptBtn}`,onClick:v,children:o})]})]});return ue.createPortal(u,document.body)}Ba.displayName="CookieConsent";const _e={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 Ia(t){const a=t.getTime()-Date.now();return a<=0?{days:0,hours:0,minutes:0,seconds:0,total:0}:{days:Math.floor(a/(1e3*60*60*24)),hours:Math.floor(a/(1e3*60*60)%24),minutes:Math.floor(a/(1e3*60)%60),seconds:Math.floor(a/1e3%60),total:a}}function Ta({targetDate:t,variant:a="default",title:s,showDays:l=!0,showHours:o=!0,showMinutes:r=!0,showSeconds:c=!0,showSeparator:i=!0,expiredText:n="Süre Doldu!",onExpire:d,className:h=""}){const m=typeof t=="string"?new Date(t):t,[_,b]=p.useState(Ia(m)),[f,v]=p.useState(!1);p.useEffect(()=>{const y=setInterval(()=>{const L=Ia(m);b(L),L.total<=0&&!f&&(v(!0),d?.(),clearInterval(y))},1e3);return()=>clearInterval(y)},[m,f,d]);const N=_.total>0&&_.total<36e5,g=[_e.countdown,a!=="default"&&_e[a],N&&_e.urgent,f&&_e.expired,h].filter(Boolean).join(" "),u=y=>y.toString().padStart(2,"0");if(f)return e.jsx("div",{className:g,children:e.jsx("span",{className:_e.expiredText,children:n})});const C=[];l&&_.days>0&&C.push({value:_.days,label:"Gün"}),o&&C.push({value:_.hours,label:"Saat"}),r&&C.push({value:_.minutes,label:"Dakika"}),c&&C.push({value:_.seconds,label:"Saniye"});const w=e.jsx(e.Fragment,{children:C.map((y,L)=>e.jsxs("span",{children:[e.jsxs("span",{className:_e.unit,children:[e.jsx("span",{className:_e.value,children:u(y.value)}),e.jsx("span",{className:_e.label,children:y.label})]}),i&&L<C.length-1&&e.jsx("span",{className:_e.separator,children:":"})]},y.label))});return a==="card"?e.jsxs("div",{className:g,children:[s&&e.jsx("span",{className:_e.cardTitle,children:s}),e.jsx("div",{className:_e.units,children:w})]}):e.jsx("div",{className:g,children:w})}Ta.displayName="CountdownTimer";function Qa(){const[t,a]=p.useState(()=>{const r=localStorage.getItem("abi-ui-theme");return r||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")});p.useEffect(()=>{document.documentElement.setAttribute("data-theme",t),localStorage.setItem("abi-ui-theme",t)},[t]);const s=p.useCallback(()=>{a(r=>r==="light"?"dark":"light")},[]),l=p.useCallback(()=>a("light"),[]),o=p.useCallback(()=>a("dark"),[]);return{theme:t,toggleTheme:s,setLightTheme:l,setDarkTheme:o,isDark:t==="dark",isLight:t==="light"}}$.Accordion=kt,$.AccordionItem=Ct,$.Alert=zt,$.Avatar=ct,$.AvatarGroup=La,$.Badge=ot,$.BookmarkButton=oa,$.BottomSheet=ka,$.Breadcrumb=Dt,$.Button=Re,$.Calendar=Yt,$.Card=tt,$.CardBody=st,$.CardFooter=nt,$.CardHeader=at,$.Carousel=Gt,$.ChapterList=Xt,$.Checkbox=bt,$.ColorPicker=Kt,$.CommentCard=Rt,$.ConfirmDialog=fa,$.CookieConsent=Ba,$.CountdownTimer=Ta,$.DataTable=ha,$.Divider=jt,$.Drawer=ga,$.Dropdown=Bt,$.DropdownItem=It,$.DropdownLabel=xt,$.DropdownSeparator=Tt,$.EmptyState=pa,$.FavoriteButton=na,$.FileUpload=Ut,$.FilterPanel=va,$.FloatingActionButton=wa,$.FollowButton=da,$.Footer=Vt,$.GenreChip=ea,$.ImageViewer=$a,$.Input=et,$.LazyImage=ba,$.LikeButton=ra,$.LoadingOverlay=ya,$.MangaDetailHeader=sa,$.MangaPosterCard=Jt,$.Marquee=Ca,$.Modal=lt,$.Navbar=Ht,$.NotificationCenter=Qt,$.PageCounter=ca,$.Pagination=St,$.Popover=Wt,$.Progress=gt,$.Radio=yt,$.RadioGroup=Nt,$.Rating=qt,$.ReaderToolbar=la,$.ReadingProgress=Zt,$.ReportModal=_a,$.ScrollToTop=ua,$.SearchBar=ta,$.Select=pt,$.ShareButton=ia,$.Skeleton=Ye,$.SkeletonMangaCard=ft,$.Slider=Lt,$.SortSelector=Na,$.Spinner=Et,$.StatsCard=Ft,$.Stepper=At,$.Switch=ut,$.Tab=dt,$.TabList=it,$.TabPanel=_t,$.Table=Pt,$.Tabs=rt,$.Tag=Mt,$.TextArea=ma,$.Timeline=Ot,$.ToastProvider=mt,$.Tooltip=$t,$.UserCard=aa,$.useTheme=Qa,$.useToast=Da,Object.defineProperty($,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "manga-ui-compents-abi",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "69 Comic Book Style UI Components for Manga/Webtoon platforms. Built with React + TypeScript.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/manga-ui-compents-abi.umd.cjs",
|
|
7
|
+
"module": "./dist/manga-ui-compents-abi.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/manga-ui-compents-abi.js",
|
|
12
|
+
"require": "./dist/manga-ui-compents-abi.umd.cjs",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./styles": "./dist/style.css"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "vite",
|
|
22
|
+
"build": "tsc -b && vite build",
|
|
23
|
+
"build:lib": "vite build --mode lib && tsc --emitDeclarationOnly --declaration --outDir dist",
|
|
24
|
+
"lint": "eslint .",
|
|
25
|
+
"preview": "vite preview",
|
|
26
|
+
"prepublishOnly": "npm run build:lib"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"react",
|
|
30
|
+
"ui",
|
|
31
|
+
"components",
|
|
32
|
+
"manga",
|
|
33
|
+
"webtoon",
|
|
34
|
+
"comic",
|
|
35
|
+
"typescript",
|
|
36
|
+
"design-system",
|
|
37
|
+
"ui-library"
|
|
38
|
+
],
|
|
39
|
+
"author": "Yasin",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": ""
|
|
44
|
+
},
|
|
45
|
+
"homepage": "",
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": ""
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"react": ">=18.0.0",
|
|
51
|
+
"react-dom": ">=18.0.0"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@eslint/js": "^9.39.1",
|
|
55
|
+
"@types/node": "^24.10.1",
|
|
56
|
+
"@types/react": "^19.2.5",
|
|
57
|
+
"@types/react-dom": "^19.2.3",
|
|
58
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
59
|
+
"eslint": "^9.39.1",
|
|
60
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
61
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
62
|
+
"globals": "^16.5.0",
|
|
63
|
+
"typescript": "~5.9.3",
|
|
64
|
+
"typescript-eslint": "^8.46.4",
|
|
65
|
+
"vite": "^7.2.4",
|
|
66
|
+
"vite-plugin-dts": "^4.5.4"
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"react": ">=18.0.0",
|
|
70
|
+
"react-dom": ">=18.0.0"
|
|
71
|
+
}
|
|
72
|
+
}
|