Files
Mycontent/.next/static/chunks/e71c3990ed4243cb.js
2025-12-29 14:01:37 +08:00

1 line
27 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23750,e=>{"use strict";var t=e.i(43476),a=e.i(47163);function s({className:e,type:s,...l}){return(0,t.jsx)("input",{type:s,"data-slot":"input",className:(0,a.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...l})}e.s(["Input",()=>s])},63059,e=>{"use strict";let t=(0,e.i(75254).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],63059)},43531,e=>{"use strict";let t=(0,e.i(75254).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],43531)},69638,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["CheckCircle",()=>t],69638)},74886,e=>{"use strict";let t=(0,e.i(75254).default)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",()=>t],74886)},10980,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["BookOpen",()=>t],10980)},43432,e=>{"use strict";let t=(0,e.i(75254).default)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);e.s(["Phone",()=>t],43432)},44331,30699,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(37727),l=e.i(43432),r=e.i(84614);let i=(0,e.i(75254).default)("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);e.s(["Gift",()=>i],30699);var c=e.i(67881),d=e.i(23750),n=e.i(4421);function x({isOpen:e,onClose:x,defaultTab:o="login"}){let[h,m]=(0,a.useState)(o),[p,b]=(0,a.useState)(""),[u,g]=(0,a.useState)(""),[j,N]=(0,a.useState)(""),[v,y]=(0,a.useState)(""),[f,w]=(0,a.useState)(""),[k,C]=(0,a.useState)(!1),{login:S,register:B}=(0,n.useStore)(),M=()=>{11!==p.length?w("请输入正确的手机号"):(C(!0),w(""),alert("验证码已发送,测试验证码: 123456"))},P=async()=>{w(""),await S(p,u)?x():w("验证码错误或用户不存在,请先注册")},z=async()=>{(w(""),j.trim())?await B(p,j,v||void 0)?x():w("该手机号已注册"):w("请输入昵称")};return e?(0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:x}),(0,t.jsxs)("div",{className:"relative w-full max-w-md bg-[#0f2137] rounded-2xl border border-gray-700/50 overflow-hidden",children:[(0,t.jsx)("button",{onClick:x,className:"absolute top-4 right-4 p-2 text-gray-400 hover:text-white transition-colors",children:(0,t.jsx)(s.X,{className:"w-5 h-5"})}),(0,t.jsxs)("div",{className:"flex border-b border-gray-700/50",children:[(0,t.jsx)("button",{onClick:()=>m("login"),className:`flex-1 py-4 text-center transition-colors ${"login"===h?"text-white border-b-2 border-[#38bdac]":"text-gray-400 hover:text-white"}`,children:"登录"}),(0,t.jsx)("button",{onClick:()=>m("register"),className:`flex-1 py-4 text-center transition-colors ${"register"===h?"text-white border-b-2 border-[#38bdac]":"text-gray-400 hover:text-white"}`,children:"注册"})]}),(0,t.jsx)("div",{className:"p-6",children:"login"===h?(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-sm mb-2",children:"手机号"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(l.Phone,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-500"}),(0,t.jsx)(d.Input,{type:"tel",value:p,onChange:e=>b(e.target.value),placeholder:"请输入手机号",className:"pl-10 bg-[#0a1628] border-gray-700 text-white placeholder:text-gray-500",maxLength:11})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-sm mb-2",children:"验证码"}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(d.Input,{type:"text",value:u,onChange:e=>g(e.target.value),placeholder:"请输入验证码",className:"bg-[#0a1628] border-gray-700 text-white placeholder:text-gray-500",maxLength:6}),(0,t.jsx)(c.Button,{type:"button",variant:"outline",onClick:M,disabled:k,className:"whitespace-nowrap border-gray-600 text-gray-300 hover:bg-gray-700/50 bg-transparent",children:k?"已发送":"获取验证码"})]})]}),f&&(0,t.jsx)("p",{className:"text-red-400 text-sm",children:f}),(0,t.jsx)(c.Button,{onClick:P,className:"w-full bg-[#38bdac] hover:bg-[#2da396] text-white py-5",children:"登录"})]}):(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-sm mb-2",children:"手机号"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(l.Phone,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-500"}),(0,t.jsx)(d.Input,{type:"tel",value:p,onChange:e=>b(e.target.value),placeholder:"请输入手机号",className:"pl-10 bg-[#0a1628] border-gray-700 text-white placeholder:text-gray-500",maxLength:11})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-sm mb-2",children:"昵称"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(r.User,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-500"}),(0,t.jsx)(d.Input,{type:"text",value:j,onChange:e=>N(e.target.value),placeholder:"请输入昵称",className:"pl-10 bg-[#0a1628] border-gray-700 text-white placeholder:text-gray-500"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-sm mb-2",children:"验证码"}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(d.Input,{type:"text",value:u,onChange:e=>g(e.target.value),placeholder:"请输入验证码",className:"bg-[#0a1628] border-gray-700 text-white placeholder:text-gray-500",maxLength:6}),(0,t.jsx)(c.Button,{type:"button",variant:"outline",onClick:M,disabled:k,className:"whitespace-nowrap border-gray-600 text-gray-300 hover:bg-gray-700/50 bg-transparent",children:k?"已发送":"获取验证码"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-gray-400 text-sm mb-2",children:"邀请码 (选填)"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(i,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-500"}),(0,t.jsx)(d.Input,{type:"text",value:v,onChange:e=>y(e.target.value),placeholder:"填写邀请码可获得优惠",className:"pl-10 bg-[#0a1628] border-gray-700 text-white placeholder:text-gray-500"})]})]}),f&&(0,t.jsx)("p",{className:"text-red-400 text-sm",children:f}),(0,t.jsx)(c.Button,{onClick:z,className:"w-full bg-[#38bdac] hover:bg-[#2da396] text-white py-5",children:"注册"})]})})]})]}):null}e.s(["AuthModal",()=>x],44331)},9865,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(37727),l=e.i(69638),r=e.i(75254);let i=(0,r.default)("Bitcoin",[["path",{d:"M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.694m5.155-6.2L8.29 4.26m5.908 1.042.348-1.97M7.48 20.364l3.126-17.727",key:"yr8idg"}]]),c=(0,r.default)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);var d=e.i(74886),n=e.i(43531),x=e.i(67881),o=e.i(4421);let h=()=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",fill:"currentColor",children:(0,t.jsx)("path",{d:"M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.326.326 0 0 0 .167-.054l1.903-1.114a.864.864 0 0 1 .717-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.857-2.578.157-4.972 1.932-6.446 1.703-1.415 3.882-1.98 5.853-1.838-.576-3.583-4.196-6.348-8.596-6.348zM5.785 5.991c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178A1.17 1.17 0 0 1 4.623 7.17c0-.651.52-1.18 1.162-1.18zm5.813 0c.642 0 1.162.529 1.162 1.18a1.17 1.17 0 0 1-1.162 1.178 1.17 1.17 0 0 1-1.162-1.178c0-.651.52-1.18 1.162-1.18zm5.34 2.867c-1.797-.052-3.746.512-5.28 1.786-1.72 1.428-2.687 3.72-1.78 6.22.942 2.453 3.666 4.229 6.884 4.229.826 0 1.622-.12 2.361-.336a.722.722 0 0 1 .598.082l1.584.926a.272.272 0 0 0 .14.047c.134 0 .24-.111.24-.247 0-.06-.023-.12-.038-.177l-.327-1.233a.582.582 0 0 1-.023-.156.49.49 0 0 1 .201-.398C23.024 18.48 24 16.82 24 14.98c0-3.21-2.931-5.837-6.656-6.088V8.89c-.135-.01-.269-.03-.406-.03zm-2.53 3.274c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.97-.982zm4.844 0c.535 0 .969.44.969.982a.976.976 0 0 1-.969.983.976.976 0 0 1-.969-.983c0-.542.434-.982.969-.982z"})}),m=()=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",className:"w-5 h-5",fill:"currentColor",children:(0,t.jsx)("path",{d:"M8.77 20.62l9.92-4.33c-.12-.33-.24-.66-.38-.99-.14-.33-.3-.66-.47-.99H8.08c-2.2 0-3.99-1.79-3.99-3.99V8.08c0-2.2 1.79-3.99 3.99-3.99h7.84c2.2 0 3.99 1.79 3.99 3.99v2.24h-8.66c-.55 0-1 .45-1 1s.45 1 1 1h10.66c-.18 1.73-.71 3.36-1.53 4.83l-2.76 1.2c-.74-1.69-1.74-3.24-2.93-4.6-.52-.59-1.11-1.13-1.76-1.59H4.09v4.24c0 2.2 1.79 3.99 3.99 3.99h.69v.23z"})});function p({isOpen:e,onClose:r,type:p,sectionId:b,sectionTitle:u,amount:g,onSuccess:j}){let[N,v]=(0,a.useState)("wechat"),[y,f]=(0,a.useState)(!1),[w,k]=(0,a.useState)(!1),[C,S]=(0,a.useState)(!1),[B,M]=(0,a.useState)(!1),{purchaseSection:P,purchaseFullBook:z,user:$,settings:T}=(0,o.useStore)(),A=T?.paymentMethods||{wechat:{enabled:!0,qrCode:"",account:""},alipay:{enabled:!0,qrCode:"",account:""},usdt:{enabled:!0,network:"TRC20",address:"",exchangeRate:7.2},paypal:{enabled:!1,email:"",exchangeRate:7.2}},F=(g/(A.usdt.exchangeRate||7.2)).toFixed(2),O=(g/(A.paypal.exchangeRate||7.2)).toFixed(2),R=async()=>{if("usdt"===N||"paypal"===N||"wechat"===N||"alipay"===N)return void S(!0);f(!0),await new Promise(e=>setTimeout(e,1500));let e=!1;"section"===p&&b?e=await P(b,u,N):"fullbook"===p&&(e=await z(N)),f(!1),e&&(k(!0),setTimeout(()=>{j(),r(),k(!1)},1500))},L=async()=>{f(!0),await new Promise(e=>setTimeout(e,1e3));let e=!1;"section"===p&&b?e=await P(b,u,N):"fullbook"===p&&(e=await z(N)),f(!1),S(!1),e&&(k(!0),setTimeout(()=>{j(),r(),k(!1)},1500))};if(!e)return null;let U=[{id:"wechat",name:"微信支付",icon:(0,t.jsx)(h,{}),color:"bg-[#07C160]",enabled:A.wechat.enabled},{id:"alipay",name:"支付宝",icon:(0,t.jsx)(m,{}),color:"bg-[#1677FF]",enabled:A.alipay.enabled},{id:"usdt",name:`USDT (${A.usdt.network||"TRC20"})`,icon:(0,t.jsx)(i,{className:"w-5 h-5"}),color:"bg-[#26A17B]",enabled:A.usdt.enabled,extra:`$${F}`},{id:"paypal",name:"PayPal",icon:(0,t.jsx)(c,{className:"w-5 h-5"}),color:"bg-[#003087]",enabled:A.paypal.enabled,extra:`$${O}`}].filter(e=>e.enabled);if(C){let e="usdt"===N,a="paypal"===N,l="wechat"===N,i="alipay"===N,c="",o="",h=`\xa5${g.toFixed(2)}`,m="";return e?(c="USDT支付",o=A.usdt.address,h=`$${F} USDT`):a?(c="PayPal支付",o=A.paypal.email,h=`$${O} USD`):l?(c="微信支付",m=A.wechat.qrCode||"/images/wechat-pay.png"):i&&(c="支付宝支付",m=A.alipay.qrCode||"/images/alipay.png"),(0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:r}),(0,t.jsxs)("div",{className:"relative w-full max-w-md bg-[#0f2137] rounded-2xl border border-gray-700/50 overflow-hidden",children:[(0,t.jsx)("button",{onClick:r,className:"absolute top-4 right-4 p-2 text-gray-400 hover:text-white z-10",children:(0,t.jsx)(s.X,{className:"w-5 h-5"})}),(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-white mb-4 text-center",children:c}),(0,t.jsxs)("div",{className:"bg-[#0a1628] rounded-xl p-4 mb-4 text-center",children:[(0,t.jsx)("p",{className:"text-gray-400 text-sm mb-2",children:"支付金额"}),(0,t.jsx)("p",{className:"text-3xl font-bold text-[#38bdac]",children:h}),(e||a)&&(0,t.jsxs)("p",{className:"text-gray-500 text-sm",children:["≈ ¥",g.toFixed(2)]})]}),l||i?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center mb-6",children:[(0,t.jsx)("div",{className:"bg-white p-2 rounded-xl mb-4",children:(0,t.jsx)("img",{src:m,alt:c,className:"w-48 h-48 object-contain"})}),(0,t.jsxs)("p",{className:"text-gray-400 text-sm",children:["请使用","微信支付"===c?"微信":"支付宝","扫码支付"]})]}):(0,t.jsxs)("div",{className:"bg-[#0a1628] rounded-xl p-4 mb-4",children:[(0,t.jsx)("p",{className:"text-gray-400 text-sm mb-2",children:e?`收款地址 (${A.usdt.network})`:"PayPal账户"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("p",{className:"text-white text-sm break-all flex-1 font-mono",children:o||"请联系客服获取"}),o&&(0,t.jsx)("button",{onClick:()=>{var e;return e=o,void(navigator.clipboard.writeText(e),M(!0),setTimeout(()=>M(!1),2e3))},className:"text-[#38bdac] hover:text-[#4fd4c4]",children:B?(0,t.jsx)(n.Check,{className:"w-5 h-5"}):(0,t.jsx)(d.Copy,{className:"w-5 h-5"})})]})]}),(0,t.jsx)("div",{className:"bg-orange-500/10 border border-orange-500/30 rounded-xl p-4 mb-6",children:(0,t.jsxs)("p",{className:"text-orange-400 text-sm text-center",children:['支付完成后,请点击下方"我已支付"按钮,',(0,t.jsx)("br",{}),"系统将自动开通阅读权限"]})}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(x.Button,{onClick:()=>S(!1),variant:"outline",className:"flex-1 border-gray-600 text-white hover:bg-gray-700/50 bg-transparent",children:"返回"}),(0,t.jsx)(x.Button,{onClick:L,disabled:y,className:"flex-1 bg-[#38bdac] hover:bg-[#2da396] text-white",children:y?"处理中...":"已完成支付"})]})]})]})]})}return(0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:r}),(0,t.jsxs)("div",{className:"relative w-full max-w-md bg-[#0f2137] rounded-2xl border border-gray-700/50 overflow-hidden",children:[(0,t.jsx)("button",{onClick:r,className:"absolute top-4 right-4 p-2 text-gray-400 hover:text-white transition-colors",children:(0,t.jsx)(s.X,{className:"w-5 h-5"})}),w?(0,t.jsxs)("div",{className:"p-8 text-center",children:[(0,t.jsx)("div",{className:"w-20 h-20 mx-auto mb-4 rounded-full bg-[#38bdac]/20 flex items-center justify-center",children:(0,t.jsx)(l.CheckCircle,{className:"w-10 h-10 text-[#38bdac]"})}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-white mb-2",children:"支付成功"}),(0,t.jsx)("p",{className:"text-gray-400",children:"fullbook"===p?"您已解锁全部内容":"您已解锁本节内容"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"p-6 border-b border-gray-700/50",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold text-white mb-1",children:"确认支付"}),(0,t.jsx)("p",{className:"text-gray-400 text-sm",children:"fullbook"===p?"购买整本书,解锁全部内容":`购买: ${u}`})]}),(0,t.jsxs)("div",{className:"p-6 border-b border-gray-700/50 text-center",children:[(0,t.jsx)("p",{className:"text-gray-400 text-sm mb-1",children:"支付金额"}),(0,t.jsxs)("p",{className:"text-4xl font-bold text-white",children:["¥",g.toFixed(2)]}),("usdt"===N||"paypal"===N)&&(0,t.jsxs)("p",{className:"text-[#38bdac] text-sm mt-1",children:["≈ $","usdt"===N?F:O," USD"]}),$?.referredBy&&(0,t.jsxs)("p",{className:"text-[#38bdac] text-sm mt-2",children:["通过邀请注册,",T?.distributorShare||90,"%将返还给推荐人"]})]}),(0,t.jsxs)("div",{className:"p-6 space-y-3",children:[(0,t.jsx)("p",{className:"text-gray-400 text-sm mb-3",children:"选择支付方式"}),U.map(e=>(0,t.jsxs)("button",{onClick:()=>v(e.id),className:`w-full p-4 rounded-xl border flex items-center gap-4 transition-all ${N===e.id?"border-[#38bdac] bg-[#38bdac]/10":"border-gray-700 hover:border-gray-600"}`,children:[(0,t.jsx)("div",{className:`w-10 h-10 rounded-lg ${e.color} flex items-center justify-center text-white`,children:e.icon}),(0,t.jsxs)("div",{className:"flex-1 text-left",children:[(0,t.jsx)("span",{className:"text-white",children:e.name}),e.extra&&(0,t.jsx)("span",{className:"text-gray-400 text-sm ml-2",children:e.extra})]}),N===e.id&&(0,t.jsx)(l.CheckCircle,{className:"w-5 h-5 text-[#38bdac]"})]},e.id)),0===U.length&&(0,t.jsx)("p",{className:"text-gray-500 text-center py-4",children:"暂无可用支付方式"})]}),(0,t.jsxs)("div",{className:"p-6 pt-0",children:[(0,t.jsx)(x.Button,{onClick:R,disabled:y||0===U.length,className:"w-full bg-[#38bdac] hover:bg-[#2da396] text-white py-6 text-lg",children:y?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),"处理中..."]}):`确认支付 \xa5${g.toFixed(2)}`}),(0,t.jsx)("p",{className:"text-gray-500 text-xs text-center mt-3",children:"支付即表示同意《用户协议》和《隐私政策》"})]})]})]})]})}e.s(["PaymentModal",()=>p],9865)},31871,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(67881),l=e.i(10980),r=e.i(22016),i=e.i(98400),c=e.i(4421),d=e.i(44331),n=e.i(9865);function x(){let[e,x]=(0,a.useState)(9.9),[o,h]=(0,a.useState)(55),[m,p]=(0,a.useState)(!1),[b,u]=(0,a.useState)(!1),{isLoggedIn:g}=(0,c.useStore)();return(0,a.useEffect)(()=>{let e=(0,i.getAllSections)();h(e.length),x((0,i.getFullBookPrice)(e.length))},[]),(0,t.jsxs)("section",{className:"relative min-h-[85vh] flex flex-col items-center justify-center px-4 py-8 overflow-hidden bg-app-bg",children:[(0,t.jsx)("div",{className:"absolute inset-0 overflow-hidden opacity-50",children:(0,t.jsx)("svg",{className:"absolute w-full h-full",viewBox:"0 0 800 600",fill:"none",children:(0,t.jsx)("path",{d:"M-100 300 Q 200 100, 400 200 T 900 150",stroke:"rgba(56, 189, 172, 0.2)",strokeWidth:"1",strokeDasharray:"8 8",fill:"none"})})}),(0,t.jsxs)("div",{className:"relative z-10 w-full max-w-sm mx-auto text-center",children:[(0,t.jsx)("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-app-card/80 backdrop-blur-md border border-app-brand/30 mb-6",children:(0,t.jsx)("span",{className:"text-app-brand text-sm font-medium",children:"Soul · 派对房"})}),(0,t.jsxs)("h1",{className:"text-3xl font-bold mb-3 leading-tight text-app-text",children:["一场SOUL的",(0,t.jsx)("br",{}),"创业实验场"]}),(0,t.jsx)("p",{className:"text-app-text-muted text-sm mb-4",children:"来自Soul派对房的真实商业故事"}),(0,t.jsx)("p",{className:"text-app-text-muted/80 italic text-sm mb-6",children:'"社会不是靠努力,是靠洞察与选择"'}),(0,t.jsx)("div",{className:"bg-app-card/60 backdrop-blur-md rounded-xl p-4 mb-6 border border-app-border",children:(0,t.jsxs)("div",{className:"flex items-center justify-center gap-6 text-sm",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("p",{className:"text-xl font-bold text-app-brand",children:["¥",e.toFixed(1)]}),(0,t.jsx)("p",{className:"text-app-text-muted text-xs",children:"整本价格"})]}),(0,t.jsx)("div",{className:"w-px h-8 bg-app-border"}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"text-xl font-bold text-app-text",children:o}),(0,t.jsx)("p",{className:"text-app-text-muted text-xs",children:"商业案例"})]})]})}),(0,t.jsxs)("div",{className:"flex justify-between items-center px-2 mb-6 text-sm",children:[(0,t.jsxs)("div",{className:"text-left",children:[(0,t.jsx)("p",{className:"text-app-text-muted text-xs",children:"作者"}),(0,t.jsx)("p",{className:"text-app-brand font-medium",children:"卡若"})]}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsx)("p",{className:"text-app-text-muted text-xs",children:"每日直播"}),(0,t.jsx)("p",{className:"text-app-text font-medium",children:"06:00-09:00"})]})]}),(0,t.jsx)(r.default,{href:"/chapters",className:"block",children:(0,t.jsxs)(s.Button,{size:"lg",className:"w-full bg-app-brand hover:bg-app-brand-hover text-white py-5 text-base rounded-xl flex items-center justify-center gap-2",children:[(0,t.jsx)(l.BookOpen,{className:"w-5 h-5"}),"立即阅读"]})}),(0,t.jsx)("p",{className:"text-app-text-muted text-xs mt-4",children:"首章免费 · 部分章节3天后解锁"})]}),(0,t.jsx)(d.AuthModal,{isOpen:m,onClose:()=>p(!1)}),(0,t.jsx)(n.PaymentModal,{isOpen:b,onClose:()=>u(!1),type:"fullbook",amount:e,onSuccess:()=>window.location.reload()})]})}e.s(["BookCover",()=>x])},66627,e=>{"use strict";var t=e.i(43476),a=e.i(22016),s=e.i(63059);function l({parts:e}){return(0,t.jsx)("section",{className:"py-16 px-4",children:(0,t.jsxs)("div",{className:"max-w-2xl mx-auto",children:[(0,t.jsxs)("h2",{className:"text-gray-400 text-sm mb-8",children:["全书 ",e.length," 篇"]}),(0,t.jsx)("div",{className:"space-y-6",children:e.map(e=>(0,t.jsx)(a.default,{href:`/chapters?part=${e.id}`,className:"block group",children:(0,t.jsx)("div",{className:"bg-[#0f2137]/60 backdrop-blur-md rounded-xl p-6 border border-transparent hover:border-[#38bdac]/30 transition-all duration-300",children:(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)("span",{className:"text-[#38bdac] font-mono text-lg",children:e.number}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-white text-xl font-semibold mb-1 group-hover:text-[#38bdac] transition-colors",children:e.title}),(0,t.jsx)("p",{className:"text-gray-400",children:e.subtitle}),(0,t.jsxs)("p",{className:"text-gray-500 text-sm mt-2",children:[e.chapters.length," 章 · ",e.chapters.reduce((e,t)=>e+t.sections.length,0)," 节"]})]})]}),(0,t.jsx)(s.ChevronRight,{className:"w-5 h-5 text-gray-500 group-hover:text-[#38bdac] transition-colors"})]})})},e.id))}),(0,t.jsx)("div",{className:"mt-8 pt-8 border-t border-gray-700/50",children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsx)(a.default,{href:"/chapters?section=preface",className:"block group",children:(0,t.jsxs)("div",{className:"bg-[#0f2137]/40 backdrop-blur-md rounded-xl p-4 border border-transparent hover:border-[#38bdac]/30 transition-all",children:[(0,t.jsx)("p",{className:"text-gray-400 text-sm",children:"序言"}),(0,t.jsx)("p",{className:"text-white group-hover:text-[#38bdac] transition-colors",children:"为什么我每天早上6点在Soul开播?"})]})}),(0,t.jsx)(a.default,{href:"/chapters?section=epilogue",className:"block group",children:(0,t.jsxs)("div",{className:"bg-[#0f2137]/40 backdrop-blur-md rounded-xl p-4 border border-transparent hover:border-[#38bdac]/30 transition-all",children:[(0,t.jsx)("p",{className:"text-gray-400 text-sm",children:"尾声"}),(0,t.jsx)("p",{className:"text-white group-hover:text-[#38bdac] transition-colors",children:"努力不是关键,选择才是"})]})})]})})]})})}e.s(["TableOfContents",()=>l])},78794,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(67881);let l=(0,e.i(75254).default)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var r=e.i(10980),i=e.i(98400),c=e.i(4421),d=e.i(44331),n=e.i(9865);function x(){let[e,x]=(0,a.useState)(9.9),[o,h]=(0,a.useState)(55),[m,p]=(0,a.useState)(!1),[b,u]=(0,a.useState)(!1),{isLoggedIn:g}=(0,c.useStore)();return(0,a.useEffect)(()=>{let e=(0,i.getAllSections)();h(e.length),x((0,i.getFullBookPrice)(e.length))},[]),(0,t.jsxs)("section",{className:"py-8 px-4 bg-app-bg",children:[(0,t.jsxs)("div",{className:"max-w-sm mx-auto",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"bg-app-card/60 backdrop-blur-xl rounded-xl p-4 border border-app-border",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(r.BookOpen,{className:"w-5 h-5 text-app-text-muted"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-app-text font-medium text-sm",children:"单节购买"}),(0,t.jsx)("p",{className:"text-app-text-muted text-xs",children:"按兴趣选择"})]})]}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsx)("span",{className:"text-xl font-bold text-app-text",children:"¥1"}),(0,t.jsx)("span",{className:"text-app-text-muted text-xs",children:"/节"})]})]})}),(0,t.jsxs)("div",{className:"bg-gradient-to-br from-app-brand/20 to-app-card backdrop-blur-xl rounded-xl p-4 border border-app-brand/30 relative",children:[(0,t.jsx)("span",{className:"absolute -top-2 right-3 bg-app-brand text-white text-xs px-2 py-0.5 rounded-full",children:"推荐"}),(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(l,{className:"w-5 h-5 text-app-brand"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-app-text font-medium text-sm",children:"整本购买"}),(0,t.jsxs)("p",{className:"text-app-text-muted text-xs",children:["全部",o,"节 · 后续更新免费"]})]})]}),(0,t.jsx)("div",{className:"text-right",children:(0,t.jsxs)("span",{className:"text-xl font-bold text-app-text",children:["¥",e.toFixed(1)]})})]}),(0,t.jsx)(s.Button,{onClick:()=>{g?u(!0):p(!0)},className:"w-full bg-app-brand hover:bg-app-brand-hover text-white rounded-lg h-10 text-sm",children:"立即购买"})]})]}),(0,t.jsx)("p",{className:"mt-3 text-center text-app-text-muted text-xs",children:"动态定价: 每新增一章节,整本价格+¥1"})]}),(0,t.jsx)(d.AuthModal,{isOpen:m,onClose:()=>p(!1)}),(0,t.jsx)(n.PaymentModal,{isOpen:b,onClose:()=>u(!1),type:"fullbook",amount:e,onSuccess:()=>window.location.reload()})]})}e.s(["PurchaseSection",()=>x],78794)},76841,e=>{"use strict";var t=e.i(43476);function a(){return(0,t.jsx)("footer",{className:"py-6 px-4 border-t border-gray-800 pb-24",children:(0,t.jsxs)("div",{className:"max-w-xs mx-auto text-center",children:[(0,t.jsx)("p",{className:"text-white text-sm font-medium mb-1",children:"一场SOUL的创业实验场"}),(0,t.jsx)("p",{className:"text-gray-500 text-xs",children:"© 2025 卡若 · 每日直播 06:00-09:00"})]})})}e.s(["Footer",()=>a])}]);