module.exports=[53722,a=>{"use strict";let b=(0,a.i(70106).default)("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);a.s(["BookOpen",()=>b],53722)},16201,a=>{"use strict";let b=(0,a.i(70106).default)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);a.s(["CheckCircle",()=>b],16201)},13749,a=>{"use strict";let b=(0,a.i(70106).default)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);a.s(["ChevronLeft",()=>b],13749)},28104,a=>{"use strict";var b=a.i(87924),c=a.i(38246),d=a.i(13749),e=a.i(53722),f=a.i(16201),g=a.i(68515),h=a.i(78310);function i(){let{user:a,isLoggedIn:i}=(0,g.useStore)();if(!i||!a)return(0,b.jsx)("div",{className:"min-h-screen bg-[#0a1628] text-white flex items-center justify-center",children:(0,b.jsxs)("div",{className:"text-center",children:[(0,b.jsx)("p",{className:"text-gray-400 mb-4",children:"请先登录"}),(0,b.jsx)(c.default,{href:"/",className:"text-[#38bdac] hover:underline",children:"返回首页"})]})});let j=(0,h.getAllSections)(),k=a.hasFullBook?j.length:a.purchasedSections.length;return(0,b.jsxs)("div",{className:"min-h-screen bg-[#0a1628] text-white",children:[(0,b.jsx)("header",{className:"sticky top-0 z-50 bg-[#0a1628]/90 backdrop-blur-md border-b border-gray-800",children:(0,b.jsxs)("div",{className:"max-w-4xl mx-auto px-4 py-4 flex items-center",children:[(0,b.jsxs)(c.default,{href:"/",className:"flex items-center gap-2 text-gray-400 hover:text-white transition-colors",children:[(0,b.jsx)(d.ChevronLeft,{className:"w-5 h-5"}),(0,b.jsx)("span",{children:"返回"})]}),(0,b.jsx)("h1",{className:"flex-1 text-center text-lg font-semibold",children:"我的购买"}),(0,b.jsx)("div",{className:"w-16"})]})}),(0,b.jsxs)("main",{className:"max-w-4xl mx-auto px-4 py-8",children:[(0,b.jsx)("div",{className:"bg-[#0f2137]/60 backdrop-blur-md rounded-xl p-6 border border-gray-700/50 mb-8",children:(0,b.jsxs)("div",{className:"grid grid-cols-2 gap-6",children:[(0,b.jsxs)("div",{className:"text-center",children:[(0,b.jsx)("p",{className:"text-3xl font-bold text-white",children:k}),(0,b.jsx)("p",{className:"text-gray-400 text-sm",children:"已购买章节"})]}),(0,b.jsxs)("div",{className:"text-center",children:[(0,b.jsx)("p",{className:"text-3xl font-bold text-[#38bdac]",children:a.hasFullBook?"全书":`${k}/${j.length}`}),(0,b.jsx)("p",{className:"text-gray-400 text-sm",children:a.hasFullBook?"已解锁":"进度"})]})]})}),a.hasFullBook?(0,b.jsxs)("div",{className:"bg-gradient-to-r from-[#38bdac]/20 to-[#0f2137] rounded-xl p-6 border border-[#38bdac]/30 text-center mb-8",children:[(0,b.jsx)(f.CheckCircle,{className:"w-12 h-12 text-[#38bdac] mx-auto mb-3"}),(0,b.jsx)("h3",{className:"text-xl font-semibold text-white mb-2",children:"您已购买整本书"}),(0,b.jsx)("p",{className:"text-gray-400",children:"全部55节内容已解锁,可随时阅读"})]}):0===a.purchasedSections.length?(0,b.jsxs)("div",{className:"text-center py-12",children:[(0,b.jsx)(e.BookOpen,{className:"w-16 h-16 text-gray-600 mx-auto mb-4"}),(0,b.jsx)("p",{className:"text-gray-400 mb-4",children:"您还没有购买任何章节"}),(0,b.jsx)(c.default,{href:"/chapters",className:"text-[#38bdac] hover:underline",children:"去浏览章节"})]}):(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsx)("h2",{className:"text-gray-400 text-sm mb-4",children:"已购买的章节"}),h.bookData.map(d=>{let e=d.chapters.flatMap(b=>b.sections.filter(b=>a.purchasedSections.includes(b.id)));return 0===e.length?null:(0,b.jsxs)("div",{className:"bg-[#0f2137]/40 rounded-xl border border-gray-800/50 overflow-hidden",children:[(0,b.jsx)("div",{className:"px-4 py-3 bg-[#0a1628]/50",children:(0,b.jsx)("p",{className:"text-gray-400 text-sm",children:d.title})}),(0,b.jsx)("div",{className:"divide-y divide-gray-800/30",children:e.map(a=>(0,b.jsxs)(c.default,{href:`/read/${a.id}`,className:"flex items-center gap-3 px-4 py-3 hover:bg-[#0f2137]/40 transition-colors",children:[(0,b.jsx)(f.CheckCircle,{className:"w-4 h-4 text-[#38bdac]"}),(0,b.jsx)("span",{className:"text-gray-400 font-mono text-sm",children:a.id}),(0,b.jsx)("span",{className:"text-gray-300",children:a.title})]},a.id))})]},d.id)})]})]})]})}a.s(["default",()=>i])}]; //# sourceMappingURL=_a52c1578._.js.map