PageSourceSearch

https://apigacor88.bar/build/assets/Read-DmFF6D_n.js

js apigacor88.bar collected 2026-10-05 04:04:21 UTC 25,266 bytes, 30 lines download raw bytes

1import{j as e,L as m,r as l,c as we,H as je,b as f}from"./app-CP_HjXeZ.js";import{H as ye,U as C,F as ve}from"./Footer-BVwC4kCy.js";import{R as Ne}from"./ReportModal-Bz_LM9dr.js";import{A as ke}from"./AdSlot-B6nyVjo4.js";import{A,m as d,F as Se}from"./proxy-Dde7LnAL.js";import{A as Ce}from"./arrow-left-C9k5IwP7.js";import{c as Z}from"./createLucideIcon-DAJawJvL.js";import{U as Ae}from"./users-DynS5eN4.js";import{M as ze}from"./message-square-dDevFc6u.js";import{C as _e}from"./chevron-left-BuoeFTYx.js";import{S as Le}from"./settings-CvJdeWdM.js";import{L as $e}from"./list-DeiNUeY-.js";import{C as Y}from"./chevron-right-C_aDYrLO.js";import{C as Ie}from"./chevron-up-CTBP7rLS.js";import{C as Re}from"./chevron-down-7-bOk39e.js";import{X as Q}from"./x-luPBshyL.js";import{P as De}from"./zap-Bu-WUnlR.js";import{S as Ee}from"./search-ClVEdwt0.js";import{A as Te}from"./arrow-up-down-jCU02frH.js";import{C as Pe}from"./circle-check-big-DZ4v5Sxc.js";import"./star-DaQzqyt_.js";import"./twitter-tAXs0B0R.js";import"./transition-CRTbOao2.js";import"./dialog-BpuqGiqk.js";import"./circle-alert-CMX9D6Cq.js";/**
2 * @license lucide-react v0.575.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Be=[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]],Me=Z("image-off",Be);/**
7 * @license lucide-react v0.575.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const He=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Oe=Z("pause",He);function ht({manga:c,chapter:i,prev:h,next:u,chapters:ee,readChapterIds:te=[]}){var G,q;if(!c||!i)return e.jsxs("div",{className:"min-h-screen bg-[#0a0a0a] flex flex-col items-center justify-center text-gray-500 p-6 text-center",children:[e.jsx("div",{className:"w-16 h-16 border-4 border-slate-800 border-t-sky-500 rounded-full animate-spin mb-6"}),e.jsx("h2",{className:"text-xl font-black text-white mb-2 uppercase tracking-widest",children:"Memuat Konten..."}),e.jsx("p",{className:"text-sm",children:"Jika halaman tidak merespon dalam 5 detik, silakan muat ulang."}),e.jsx(m,{href:"/manga",className:"mt-8 px-6 py-2.5 bg-white/5 border border-white/10 rounded-xl text-xs font-bold hover:bg-white/10 transition-all",children:"KEMBALI KE KATALOG"})]});const[z,B]=l.useState(!0),[M,se]=l.useState(0),[_,w]=l.useState(!1),[L,j]=l.useState(!1),[ae,H]=l.useState(!1),[$,re]=l.useState(""),[y,le]=l.useState("desc"),[x,ie]=l.useState(!1),[b,ne]=l.useState(55),[v,I]=l.useState(!1),[R,oe]=l.useState(2),[ce,de]=l.useState(!0),[xe,me]=l.useState(!1),p=l.useRef(null),{auth:a,ads:D}=we().props,E=["https://polished-fog-9b25.lubisrizwan459.workers.dev/?url="],he=(t="")=>{const s=String(t||"");let r=0;for(let n=0;n<s.length;n++)r=(r<<5)-r+s.charCodeAt(n),r|=0;return E[Math.abs(r)%E.length]},ue=(t="")=>E.some(s=>String(t||"").startsWith(s)),O=(t="")=>{const s=String(t||"").trim();return s?/^https?:\/\//i.test(s)?ue(s)?s:`${he(s)}${encodeURIComponent(s)}`:s.startsWith("/storage/")||s.startsWith("/")?s:`/storage/${s}`:""},pe=(t="")=>t?String(t).replace(/(<img\b[^>]*?\bsrc=["'])([^"']+)(["'][^>]*>)/gi,(s,r,n,o)=>`${r}${O(n)}${o}`):"",[N,U]=l.useState(""),[F,T]=l.useState(null),[k,P]=l.useState(""),be=t=>{if(t.preventDefault(),!(a!=null&&a.user)){window.location.href="/login";return}N.trim()&&f.post(`/chapter/${i.id}/comment`,{content:N},{preserveScroll:!0,onSuccess:()=>U("")})},ge=(t,s)=>{if(t.preventDefault(),!(a!=null&&a.user)){window.location.href="/login";return}k.trim()&&f.post(`/chapter/${i.id}/comment`,{content:k,parent_id:s},{preserveScroll:!0,onSuccess:()=>{P(""),T(null)}})},K=t=>{confirm("Apakah Anda yakin ingin menghapus komentar ini?")&&f.delete(`/comments/${t}`,{preserveScroll:!0})},g=(t,s)=>{try{return typeof route=="function"?route(t,s):t==="manga.show"?"/manga/"+s:t==="manga.read"?"/manga/"+s[0]+"/chapter/"+s[1]:"#"}catch{return"#"}},S=t=>{if(!t)return;const s=g("manga.read",[c.slug,t.chapter_number]);if(s!=="#")try{f.visit(s)}catch{window.location.href=s}},W=()=>{v?(clearInterval(p.current),I(!1)):(I(!0),p.current=setInterval(()=>{window.scrollBy({top:R,behavior:"auto"})},16))};l.useCallback(()=>{p.current&&(clearInterval(p.current),I(!1))},[]),l.useEffect(()=>{const t=()=>{const s=window.pageYOffset;B(s<M||s<100),se(s),de(s<200),me(window.innerHeight+s>=document.body.scrollHeight-200)};return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[M]),l.useEffect(()=>{const t=s=>{s.key==="ArrowLeft"&&h&&S(h),s.key==="ArrowRight"&&u&&S(u),s.ctrlKey&&s.code==="Space"&&(s.preventDefault(),W()),s.key==="Escape"&&(w(!1),j(!1))};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[h,u,v]),l.useEffect(()=>()=>{p.current&&clearInterval(p.current)},[]);const fe=(ee||[]).filter(t=>String(t.chapter_number||"").includes($)||t.title&&t.title.toLowerCase().includes($.toLowerCase())).sort((t,s)=>{const r=Number(t.chapter_number)||0,n=Number(s.chapter_number)||0;return y==="desc"?n-r:r-n});return e.jsxs("div",{className:"min-h-screen bg-[#0a0a0a] text-white selection:bg-red-500/30",children:[e.jsx(je,{title:`${c.title||"Manga"} - Chapter ${i.chapter_number||"?"}`}),e.jsx(A,{children:z&&e.jsx(d.div,{initial:{y:-100,opacity:0}
11,animate:{y:0,opacity:1},exit:{y:-100,opacity:0},className:"fixed top-0 left-0 right-0 p-4 z-50 pointer-events-none",children:e.jsx("div",{className:"max-w-4xl mx-auto pointer-events-auto",children:e.jsxs("div",{className:"bg-gray-900/90 backdrop-blur-xl border border-white/10 rounded-2xl flex items-center justify-between px-4 py-3 shadow-2xl",children:[e.jsx(m,{href:g("manga.show",c.slug),className:"w-10 h-10 rounded-xl flex items-center justify-center text-gray-400 hover:text-white hover:bg-white/10 transition-all font-black",children:e.jsx(Ce,{size:20})}),e.jsxs("div",{className:"flex flex-col items-center min-w-0 px-4",children:[e.jsx(m,{href:g("manga.show",c.slug),className:"text-sm font-black text-white hover:text-sky-500 transition-colors truncate max-w-[200px] md:max-w-md uppercase tracking-tight",children:c.title}),e.jsxs("span",{className:"text-[10px] font-black text-gray-500 uppercase tracking-[0.3em] mt-0.5",children:["CHAPTER ",i.chapter_number]})]}),e.jsx(m,{href:"/",className:"w-10 h-10 rounded-xl flex items-center justify-center text-gray-400 hover:text-white hover:bg-white/10 transition-all",children:e.jsx(ye,{size:20})})]})})})}),e.jsx("div",{className:"flex flex-col items-center pt-24 pb-32 w-full mx-auto transition-all duration-500",style:{maxWidth:x?`${b}%`:"80rem"},onClick:()=>B(!z),children:e.jsx(e.Fragment,{children:i.content?e.jsx("div",{className:"w-full prose prose-invert max-w-none px-4 text-center reader-content",dangerouslySetInnerHTML:{__html:pe(i.content)}}):e.jsx("div",{className:"w-full flex flex-col items-center",children:i.images&&Array.isArray(i.images)&&i.images.length>0?[...i.images].filter(t=>!(t.image_path||"").toLowerCase().match(/150x150|300x300|thumb|emoji|icon|avatar|logo|banner|-0x0|-45x45/)).sort((t,s)=>(Number(t.order)||0)-(Number(s.order)||0)).map((t,s)=>{const r=t.image_path||"",n=O(r);return e.jsx("img",{src:n,alt:`Page ${s+1}`,className:"max-w-full h-auto mx-auto block select-none pointer-events-none transition-opacity duration-700",loading:"lazy",onError:o=>{o.target.style.display="none"}},s)}):e.jsxs("div",{className:"flex flex-col items-center justify-center py-40 text-gray-600",children:[e.jsx(Me,{size:64,className:"mb-4 opacity-20"}),e.jsx("p",{className:"text-xl font-bold",children:"Gambar tidak ditemukan."}),e.jsx("p",{className:"text-sm mt-2 opacity-50",children:"Silakan hubungi admin atau muat ulang halaman."}),e.jsx(m,{href:g("manga.show",c.slug),className:"mt-8 px-6 py-2.5 bg-white/5 border border-white/10 rounded-xl text-xs font-bold hover:bg-white/10 transition-all text-gray-300",children:"KEMBALI KE DETAIL"})]})})})}),e.jsx("div",{className:"w-full mx-auto pb-8",style:{maxWidth:x?`${b}%`:"80rem"},children:e.jsx(ke,{code:D==null?void 0:D.chapter_detail_bottom,className:"w-full max-w-4xl"})}),e.jsx("div",{className:"w-full mx-auto px-4 pb-48 pt-4",style:{maxWidth:x?`${b}%`:"60rem"},children:e.jsxs("div",{className:"mt-8 bg-white dark:bg-slate-900/60 backdrop-blur-xl border border-white/40 dark:border-white/5 shadow-xl rounded-[32px] p-6 md:p-10",children:[e.jsxs("h3",{className:"text-xl font-black text-slate-800 dark:text-slate-100 mb-8 flex items-center gap-3 uppercase tracking-wider",children:[e.jsx("div",{className:"p-2.5 bg-blue-50 dark:bg-blue-500/10 rounded-xl",children:e.jsx(Ae,{className:"w-6 h-6 text-blue-500"})}),"Komentar (",((G=i.comments)==null?void 0:G.length)||0,")"]}),e.jsx("div",{className:"mb-8",children:a!=null&&a.user?e.jsxs("form",{onSubmit:be,className:"flex gap-4",children:[e.jsx(C,{user:a.user,sizeClass:"w-12 h-12",showBadge:!1}),e.jsxs("div",{className:"flex-1",children:[e.jsx("textarea",{value:N,onChange:t=>U(t.target.value),placeholder:"Tambahkan komentar...",className:"w-full bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-700 rounded-xl px-4 py-3 text-slate-900 dark:text-white placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all resize-none",rows:"3"}),e.jsx("div",{className:"mt-2 text-right",children:e.jsx("button",{type:"submit",disabled:!N.trim(),className:"px-5 py-2 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-lg shadow-md transition-all disabled:opacity-50",children:"Kirim"})})]})]}):e.jsxs("div",{className:"bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-700 rounded-xl p-6 text-center",children:[e.jsx("p",{className:"text-slate-600 dar
11k:text-slate-300 mb-4",children:"Silakan login untuk menambahkan komentar."}),e.jsx(m,{href:"/login",className:"inline-block px-6 py-2 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-lg shadow-md transition-all",children:"Login Sekarang"})]})}),e.jsx("div",{className:"space-y-6",children:((q=i.comments)==null?void 0:q.length)>0?i.comments.map(t=>{var s,r,n;return e.jsxs("div",{className:"group bg-slate-50 dark:bg-slate-950 p-4 rounded-xl",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx(C,{user:t.user,sizeClass:"w-10 h-10"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("h4",{className:"font-bold text-slate-800 dark:text-slate-100 text-sm truncate",children:((s=t.user)==null?void 0:s.name)||"Deleted User"}),e.jsx("span",{className:"text-xs text-slate-400 shrink-0",children:new Date(t.created_at).toLocaleDateString("id-ID",{year:"numeric",month:"short",day:"numeric"})})]}),e.jsx("p",{className:"text-slate-600 dark:text-slate-300 text-sm whitespace-pre-wrap mb-2",children:t.content}),e.jsxs("div",{className:"flex items-center gap-4 text-xs font-medium",children:[e.jsxs("button",{onClick:()=>{T(F===t.id?null:t.id),P("")},className:"text-slate-500 dark:text-slate-400 hover:text-blue-600 flex items-center gap-1 transition-colors",children:[e.jsx(ze,{className:"w-3.5 h-3.5"}),"Balas"]}),(((r=a==null?void 0:a.user)==null?void 0:r.id)===t.user_id||((n=a==null?void 0:a.user)==null?void 0:n.is_admin))&&e.jsx("button",{onClick:()=>K(t.id),className:"text-red-500 hover:text-red-700 transition-opacity",children:"Hapus"})]}),F===t.id&&e.jsxs("div",{className:"mt-4 flex gap-3",children:[e.jsx(C,{user:a==null?void 0:a.user,sizeClass:"w-8 h-8",showBadge:!1}),e.jsxs("div",{className:"flex-1",children:[e.jsx("textarea",{value:k,onChange:o=>P(o.target.value),placeholder:`Membalas ${t.user.name}...`,className:"w-full bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 rounded-lg px-3 py-2 text-sm text-slate-900 dark:text-white placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all resize-none",rows:"2"}),e.jsxs("div",{className:"mt-2 flex justify-end gap-2",children:[e.jsx("button",{onClick:()=>T(null),className:"px-3 py-1.5 text-xs text-slate-500 dark:text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 font-medium",children:"Batal"}),e.jsx("button",{onClick:o=>ge(o,t.id),disabled:!k.trim(),className:"px-3 py-1.5 bg-blue-600 hover:bg-blue-700 text-white text-xs font-medium rounded-md shadow-sm transition-all disabled:opacity-50",children:"Kirim Balasan"})]})]})]})]})]}),t.replies&&t.replies.length>0&&e.jsx("div",{className:"mt-4 ml-14 space-y-4",children:t.replies.map(o=>{var J,X,V;return e.jsxs("div",{className:"flex gap-4",children:[e.jsx(C,{user:o.user,sizeClass:"w-8 h-8",showBadge:!1}),e.jsxs("div",{className:"flex-1 min-w-0 bg-white dark:bg-slate-900 border border-slate-100 dark:border-slate-800 p-3 rounded-xl shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h4",{className:"font-bold text-slate-800 dark:text-slate-100 text-sm truncate",children:((J=o.user)==null?void 0:J.name)||"Deleted User"}),e.jsx("span",{className:"text-xs text-slate-400 shrink-0",children:new Date(o.created_at).toLocaleDateString("id-ID",{year:"numeric",month:"short",day:"numeric"})})]}),(((X=a==null?void 0:a.user)==null?void 0:X.id)===o.user_id||((V=a==null?void 0:a.user)==null?void 0:V.is_admin))&&e.jsx("button",{onClick:()=>K(o.id),className:"text-red-500 hover:text-red-700 text-xs opacity-0 group-hover:opacity-100 transition-opacity",children:"Hapus"})]}),e.jsx("p",{className:"text-slate-600 dark:text-slate-300 text-sm whitespace-pre-wrap",children:o.content})]})]},o.id)})})]},t.id)}):e.jsx("div",{className:"text-center py-8 text-slate-500 dark:text-slate-400",children:"Belum ada komentar. Jadilah yang pertama berkomentar!"})})]})}),e.jsx(A,{children:z&&e.jsx(d.div,{initial:{y:100,opacity:0}
11,animate:{y:0,opacity:1},exit:{y:100,opacity:0},className:"fixed bottom-0 left-0 right-0 p-4 z-50 flex justify-center pointer-events-none",children:e.jsxs("div",{className:"bg-gray-900/95 backdrop-blur-xl rounded-2xl px-6 py-4 shadow-2xl border border-white/10 pointer-events-auto flex items-center gap-6",children:[e.jsx("button",{onClick:()=>S(h),className:`w-10 h-10 rounded-full flex items-center justify-center transition-all ${h?"text-white hover:bg-white/10":"text-gray-700 cursor-not-allowed"}`,disabled:!h,children:e.jsx(_e,{size:24})}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("button",{onClick:t=>{t.stopPropagation(),w(!_)},className:`w-10 h-10 rounded-xl flex items-center justify-center transition-all ${_?"bg-sky-500 text-white shadow-lg shadow-sky-500/20":"text-gray-400 hover:bg-white/10"}`,children:e.jsx(Le,{size:20})}),e.jsx("button",{onClick:t=>{t.stopPropagation(),j(!L)},className:`w-10 h-10 rounded-xl flex items-center justify-center transition-all ${L?"bg-sky-500 text-white shadow-lg shadow-sky-500/20":"text-gray-400 hover:bg-white/10"}`,children:e.jsx($e,{size:20})}),e.jsx("button",{onClick:t=>{t.stopPropagation(),H(!0)},className:"w-10 h-10 rounded-xl flex items-center justify-center text-gray-400 hover:bg-white/10 transition-all border border-white/5",children:e.jsx(Se,{size:20})})]}),e.jsx("button",{onClick:()=>S(u),className:`w-10 h-10 rounded-full flex items-center justify-center transition-all ${u?"text-white hover:bg-white/10":"text-gray-700 cursor-not-allowed"}`,disabled:!u,children:e.jsx(Y,{size:24})})]})})}),e.jsx(Ne,{isOpen:ae,onClose:()=>H(!1),onSubmit:async t=>new Promise((s,r)=>{f.post(route("chapter.report.store",i.id),t,{preserveScroll:!0,onSuccess:()=>s(),onError:()=>r()})})}),e.jsxs("div",{className:"fixed right-6 bottom-24 z-40 flex flex-col gap-3",children:[!ce&&e.jsx(d.button,{initial:{scale:0},animate:{scale:1},onClick:t=>{t.stopPropagation(),window.scrollTo({top:0,behavior:"smooth"})},className:"w-12 h-12 rounded-full bg-gray-900/90 backdrop-blur border border-white/10 text-gray-400 hover:text-white hover:bg-red-500 shadow-xl flex items-center justify-center transition-all",children:e.jsx(Ie,{size:24})}),!xe&&e.jsx(d.button,{initial:{scale:0},animate:{scale:1},onClick:t=>{t.stopPropagation(),window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})},className:"w-12 h-12 rounded-full bg-gray-900/90 backdrop-blur border border-white/10 text-gray-400 hover:text-white hover:bg-red-500 shadow-xl flex items-center justify-center transition-all",children:e.jsx(Re,{size:24})})]}),e.jsx(A,{children:_&&e.jsxs(e.Fragment,{children:[e.jsx(d.div,{initial:{opacity:0}
11,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[60]",onClick:()=>w(!1)}),e.jsxs(d.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},className:"fixed inset-y-0 right-0 w-[350px] max-w-[90vw] bg-[#111111] border-l border-white/10 z-[70] shadow-2xl p-6 flex flex-col",onClick:t=>t.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsx("h3",{className:"text-xl font-black text-white",children:"Reader Settings"}),e.jsx("button",{onClick:()=>w(!1),className:"text-gray-500 hover:text-white transition-colors",children:e.jsx(Q,{size:24})})]}),e.jsxs("div",{className:"space-y-8 flex-1 overflow-y-auto no-scrollbar",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("label",{className:"text-sm font-bold text-gray-400 uppercase tracking-widest",children:"Fit to Width"}),e.jsx("button",{onClick:()=>ie(!x),className:`w-12 h-6 rounded-full transition-all relative ${x?"bg-red-600":"bg-gray-800"}`,children:e.jsx("div",{className:`absolute top-1 left-1 w-4 h-4 bg-white rounded-full transition-all ${x?"translate-x-6":""}`})})]}),x&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between text-xs font-bold",children:[e.jsx("span",{className:"text-gray-500",children:"Scale"}),e.jsxs("span",{className:"text-red-500",children:[b,"%"]})]}),e.jsx("input",{type:"range",min:"30",max:"100",value:b,onChange:t=>ne(t.target.value),className:"w-full h-1.5 bg-gray-800 rounded-lg appearance-none cursor-pointer accent-red-600"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("label",{className:"text-sm font-bold text-gray-400 uppercase tracking-widest block",children:"Auto Scroll"}),e.jsxs("div",{className:"grid grid-cols-1 gap-3",children:[e.jsxs("div",{className:"flex items-center justify-between bg-white/5 p-4 rounded-2xl border border-white/5",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx("span",{className:"text-sm font-bold",children:"Speed"}),e.jsxs("span",{className:"text-[10px] text-gray-500",children:[R,"x"]})]}),e.jsx("input",{type:"range",min:"1",max:"10",value:R,onChange:t=>oe(Number(t.target.value)),className:"w-32 h-1.5 bg-gray-800 rounded-lg appearance-none cursor-pointer accent-red-600 focus:outline-none"})]}),e.jsx("button",{onClick:W,className:`w-full py-4 rounded-2xl font-black text-sm flex items-center justify-center gap-3 transition-all ${v?"bg-red-500 text-white shadow-lg shadow-red-500/20":"bg-white text-black hover:bg-gray-200"}`,children:v?e.jsxs(e.Fragment,{children:[e.jsx(Oe,{size:20})," STOP SCROLL"]}):e.jsxs(e.Fragment,{children:[e.jsx(De,{size:20})," START SCROLL"]})})]})]}),e.jsxs("div",{className:"pt-8 border-t border-white/10",children:[e.jsx("h4",{className:"text-xs font-black text-gray-600 uppercase tracking-[0.2em] mb-4",children:"Shortcuts"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between text-xs",children:[e.jsx("span",{className:"text-gray-500",children:"Prev Chapter"})," ",e.jsx("kbd",{className:"bg-white/5 px-2 py-1 rounded-md text-gray-300 font-mono",children:"←"})]}),e.jsxs("div",{className:"flex justify-between text-xs",children:[e.jsx("span",{className:"text-gray-500",children:"Next Chapter"})," ",e.jsx("kbd",{className:"bg-white/5 px-2 py-1 rounded-md text-gray-300 font-mono",children:"→"})]}),e.jsxs("div",{className:"flex justify-between text-xs",children:[e.jsx("span",{className:"text-gray-500",children:"Toggle Auto Scroll"})," ",e.jsx("kbd",{className:"bg-white/5 px-2 py-1 rounded-md text-gray-300 font-mono",children:"Ctrl + Space"})]})]})]})]})]})]})}),e.jsx(A,{children:L&&e.jsxs(e.Fragment,{children:[e.jsx(d.div,{initial:{opacity:0}
11,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-[60]",onClick:()=>j(!1)}),e.jsxs(d.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},className:"fixed inset-y-0 right-0 w-[400px] max-w-[90vw] bg-[#111111] border-l border-white/10 z-[70] shadow-2xl flex flex-col",onClick:t=>t.stopPropagation(),children:[e.jsxs("div",{className:"p-6 border-b border-white/10",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h3",{className:"text-xl font-black text-white",children:"Chapters"}),e.jsx("button",{onClick:()=>j(!1),className:"text-gray-500 hover:text-white transition-colors",children:e.jsx(Q,{size:24})})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"relative flex-1",children:[e.jsx(Ee,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-gray-500",size:18}),e.jsx("input",{type:"text",placeholder:"Search chapter...",value:$,onChange:t=>re(t.target.value),className:"w-full bg-white/5 border border-white/10 rounded-2xl py-3 pl-12 pr-4 text-sm focus:outline-none focus:border-red-500 transition-all"})]}),e.jsx("button",{onClick:()=>le(y==="desc"?"asc":"desc"),className:`w-12 h-12 rounded-2xl flex items-center justify-center transition-all bg-white/5 border border-white/10 hover:bg-white/10 ${y==="asc"?"text-red-500":"text-gray-400"}`,title:y==="desc"?"Sort Ascending":"Sort Descending",children:e.jsx(Te,{size:20})})]})]}),e.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar p-6 space-y-2",children:fe.map(t=>{const s=t.chapter_number===i.chapter_number,r=te.includes(t.id),n=t.created_at?new Date(t.created_at).toLocaleDateString("id-ID",{day:"numeric",month:"short"}):"";return e.jsxs(m,{href:g("manga.read",[c.slug,t.chapter_number]),className:`group relative flex flex-col p-4 rounded-2xl border transition-all duration-300 ${s?"bg-red-600 border-red-500 text-white shadow-xl shadow-red-600/20 translate-x-1":r?"bg-red-500/5 border-red-500/10 text-red-500/70 hover:bg-red-500/10 hover:border-red-500/20 hover:translate-x-1":"bg-white/5 border-white/5 text-gray-400 hover:bg-white/10 hover:border-white/10 hover:translate-x-1"}`,children:[e.jsxs("div",{className:"flex items-center justify-between gap-3",children:[e.jsxs("div",{className:"flex flex-col min-w-0",children:[e.jsxs("span",{className:`text-sm font-black transition-colors ${s?"text-white":r?"text-red-500":"text-gray-200 group-hover:text-red-500"}`,children:["Chapter ",Number(t.chapter_number)]}),t.title&&t.title!==`Chapter ${t.chapter_number}`&&e.jsx("span",{className:`text-[10px] opacity-60 truncate mt-0.5 italic lowercase ${s?"text-white":r?"text-red-400":""}`,children:t.title})]}),s?e.jsxs("div",{className:"flex items-center gap-2 px-2 py-1 rounded-lg bg-white/20 backdrop-blur-md",children:[e.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-white animate-pulse"}),e.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-white leading-none",children:"Reading"})]}):r?e.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1 rounded-lg bg-red-500/10",children:[e.jsx(Pe,{size:10,className:"text-red-500"}),e.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-red-500 leading-none",children:"READ"})]}):e.jsxs("div",{className:"flex flex-col items-end shrink-0",children:[e.jsx("span",{className:"text-[10px] font-bold opacity-40 uppercase tracking-widest",children:n}),e.jsx(Y,{size:14,className:"opacity-20 group-hover:opacity-100 group-hover:translate-x-1 transition-all"})]})]}),s&&e.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-1 h-3 bg-white rounded-r-full"})]},t.chapter_number)})})]})]})}),e.jsx("style",{jsx:!0,children:`
12                .custom-scrollbar::-webkit-scrollbar {
13                    width: 6px;
14                }
15                .custom-scrollbar::-webkit-scrollbar-track {
16                    background: transparent;
17                }
18                .custom-scrollbar::-webkit-scrollbar-thumb {
19                    background: rgba(255, 255, 255, 0.1);
20                    border-radius: 10px;
21                }
22                .custom-scrollbar::-webkit-scrollbar-thumb:hover {
23                    background: rgba(239, 68, 68, 0.5);
24                }
25                .reader-content :global(img) {
26                    max-width: 100%;
27                    height: auto;
28                    margin: 0 auto;
29                }
30            `}),e.jsx(ve,{})]})}export{ht as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.