PageSourceSearch

https://fortunetell.ai/_next/static/chunks/27-3772f681ab2ffc8f.js

js fortunetell.ai collected 2026-10-05 12:07:13 UTC 22,334 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fe810607-0f59-4032-84bf-7742d55a0aeb",e._sentryDebugIdIdentifier="sentry-dbid-fe810607-0f59-4032-84bf-7742d55a0aeb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[27],{10027:(e,t,o)=>{o.r(t),o.d(t,{MajorLuckContent:()=>A});var r=o(69006),a=o(94887),n=o(96910),i=o(83853),l=o(1982),s=o(557),c=o(30703);let d=l.forwardRef((e,t)=>{let{className:o,children:a,...n}=e;return(0,r.jsxs)(s.bL,{ref:t,className:(0,c.cn)("relative overflow-hidden",o),...n,children:[(0,r.jsx)(s.LM,{className:"h-full w-full rounded-[inherit]",children:a}),(0,r.jsx)(f,{}),(0,r.jsx)(s.OK,{})]})});d.displayName=s.bL.displayName;let f=l.forwardRef((e,t)=>{let{className:o,orientation:a="vertical",...n}=e;return(0,r.jsx)(s.VM,{ref:t,orientation:a,className:(0,c.cn)("flex touch-none select-none transition-colors","vertical"===a&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",o),...n,children:(0,r.jsx)(s.lr,{className:"relative flex-1 rounded-full bg-border"})})});f.displayName=s.VM.displayName;var m=o(65156),u=o(5911),h=o(8516),x=o(80489),g=o(54720),b=o(23973),j=o(79012),p=o(49526),_=o(292),y=o(16329),v=o(35576),k=o(40696),w=o(69278);let N=e=>{let{className:t}=e;return(0,r.jsx)("svg",{className:t,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})},I=e=>{let{className:t}=e;return(0,r.jsx)("svg",{className:t,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})})};function A(){let{t:e,language:t}=(0,v.ok)(),{currentLifeBook:s,setCurrentLifeBook:c,allLifeBooks:A,isLoading:L,refresh:C}=(0,p.I)(),{user:D,membership:z}=(0,x.A)(),[E,B]=(0,l.useState)(null),[R,O]=(0,l.useState)(null),[P,U]=(0,l.useState)(!1),[F,G]=(0,l.useState)(0),[W,Y]=(0,l.useState)(!0),[J,T]=(0,l.useState)(!1),V=(0,l.useRef)(null),[$,K]=(0,l.useState)(!1),{coinInfo:H,payLoading:X,fetchCoinInfo:Z}=(0,k.z)({serviceKey:"major_luck",autoFetch:!1,onPaymentSuccess:()=>{let e=q();e&&localStorage.removeItem(e)}});(0,l.useMemo)(()=>[e("life_book.fortune.major.feature_1"),e("life_book.fortune.major.feature_2"),e("life_book.fortune.major.feature_3"),e("life_book.fortune.major.feature_4"),e("life_book.fortune.major.feature_5")],[e]);let q=()=>s&&s.birth_info_id?"major-luck-".concat(s.id,"-").concat(s.birth_info_id):null;(0,l.useEffect)(()=>{if(P){G(0);let e=setInterval(()=>{G(e=>e+1)},1e3);return()=>clearInterval(e)}},[P]),(0,l.useEffect)(()=>{B(null),Y(!0)},[null==s?void 0:s.id]),(0,l.useEffect)(()=>{if(!(null==D?void 0:D.id)||!(null==s?void 0:s.id)){console.log("⚠️ [大运] 缺少必要信息:",{hasUser:!!(null==D?void 0:D.id),hasLifeBook:!!(null==s?void 0:s.id)}),Y(!1);return}let e=s.birth_info_id;if(!e){console.warn("⚠️ [大运] 当前命书缺少 birth_info_id,跳过数据库加载"),Y(!1);return}let t="major-luck-".concat(s.id,"-").concat(e),o=localStorage.getItem(t);if(o)try{let e=JSON.parse(o);if(e.interpretation){let o=e.generatedAt||(e.timestamp?new Date(e.timestamp).toISOString():null);if(o){B(e.interpretation),O(o),Y(!1);return}localStorage.removeItem(t)}}catch(e){console.warn("⚠️ 缓存解析失败:",e)}let r="major-luck-".concat(s.id);localStorage.removeItem(r),(async()=>{try{console.log("\uD83D\uDD0D [大运] 开始查询数据库记录...",{birthInfoId:e});let o=await (0,m.apiGet)("/api/fortune/records?type=major-luck&limit=1&birth_info_id=".concat(e));console.log("\uD83D\uDCCA [大运] API响应:",{isArray:Array.isArray(o),dataLength:Array.isArray(o)?o.length:"N/A"});let r=Array.isArray(o)?o:[];if(r.length>0&&r[0].has_ai_content){if(r[0].birth_info_id&&r[0].birth_info_id!==e)return void console.warn("⚠️ [大运] 记录 birth_info_id 不匹配,忽略",{record:r[0].birth_info_id,current:e});let o=await (0,m.apiGet)("/api/fortune/records?type=major-luck&date=".concat(r[0].fortune_date,"&birth_info_id=").concat(e));if(null==o?void 0:o.ai_content){if(o.birth_info_id&&o.birth_info_id!==e)return void console.warn("⚠️ [大运] 详情记录 birth_info_id 不匹配,忽略旧解读");let r=o.birth_info,a=s.birthInfo;if(r&&a&&(r.year!==a.year||r.month!==a.month||r.day!==a.day))return void console.warn("⚠️ [大运] 出生信息不匹配,忽略旧解读",{record:"".concat(r.year,"-").concat(r.month,"-").concat(r.day),current:"".concat(a.year,"-").concat(a.month,"-").concat(a.day)});let n=o.updated_at||o.created_at||new Date().toISOString();B(o.ai_content),O(n),localStorage.setItem(t,JSON.stringify({interpretation:o.ai_content,generatedAt:n,timestamp:Date.now()}))}}}catch(e){console.error("❌ 加载数据失败:",e)}finally{Y(!1)}})()},[null==s?void 0:s.id,null==s?void 0:s.birth_info_id,null==D?void 0:D.id]),(0,l.useEffect)(()=>{let e=q();if(!e||!E)return;let t={interpretation:E,timestamp:Date.now()};localStorage.setItem(e,JSON.stringify(t))},[E,null==s?void 0:s.id,null==s?void 0:s.birth_info_id]);let Q=(0,l.useMemo)(()=>
1{if(!(null==s?void 0:s.birthInfo))return null;try{return(0,h.dX)(s.birthInfo)}catch(e){return console.error("❌ 大运: 八字计算失败",e,s.birthInfo),null}},[s]),ee=(0,l.useMemo)(()=>{if(!Q||!(null==s?void 0:s.birthInfo))return null;let e=(0,h.RA)(s.birthInfo);return(0,u.dj)(e,s.birthInfo.gender||"male",Q.year.heavenly)},[Q,s]),et=(0,l.useMemo)(()=>{if(!Q||!(null==s?void 0:s.birthInfo)||!ee)return null;let e=(0,h.RA)(s.birthInfo),t=(0,u.lI)(Q,s.birthInfo.gender||"male",s.birthInfo.year,e);return(0,u.Yj)(t,e)},[Q,s,ee]),eo=(0,l.useMemo)(()=>{if(!Q||!(null==s?void 0:s.birthInfo)||!ee)return[];let e=(0,h.RA)(s.birthInfo);return(0,u.lI)(Q,s.birthInfo.gender||"male",s.birthInfo.year,e)},[Q,s,ee]),er=(0,l.useMemo)(()=>{if(!s)return 0;let e=(0,h.RA)(s.birthInfo),t=new Date,o=t.getFullYear()-e.getFullYear(),r=t.getMonth()-e.getMonth(),a=t.getDate()-e.getDate();return(r<0||0===r&&a<0)&&o--,o},[s]),ea=async()=>{if(Q&&et&&eo&&s&&D){if(!H)return void _.oR.error(e("common.coin_insufficient_toast"));if(!H.canUse){_.oR.error(e("common.coin_insufficient",{cost:H.cost})),setTimeout(()=>{window.location.href="/membership"},1500);return}U(!0),B(null);try{let r=(await (0,m.apiPost)("/api/major-luck-interpretation",{baziChart:Q,birthInfo:s.birthInfo,majorLuck:et,allPeriods:eo,birthInfoId:s.birth_info_id,language:t})).interpretation;B(r),O(new Date().toISOString());try{let t=new Date().toISOString().split("T")[0];console.log("\uD83D\uDCE4 准备保存大运解读到数据库...");let a=await m.fortuneApi.saveFortuneRecord({fortuneType:"major-luck",fortuneDate:t,fortuneYear:new Date().getFullYear(),birthInfo:s.birthInfo,baziChart:Q,fortuneData:{allPeriods:eo,currentMajorLuck:et},aiContent:r,title:e("life_book.fortune.major.record_title"),birthInfoId:s.birth_info_id});if(a.success){var o;console.log("✅ 大运解读已保存到数据库:",null==(o=a.data)?void 0:o.id)}else console.error("⚠️ 保存到数据库失败:",a.error)}catch(e){console.error("❌ 保存到数据库异常:",e)}}catch(r){console.error("Error generating AI interpretation:",r),B(null);let t=q();t&&localStorage.removeItem(t);let o=(null==r?void 0:r.message)||"";o.includes("insufficient_coins")||o.includes("灵值不足")?_.oR.error(e("life_book.error.insufficient_coins")):_.oR.error(e("life_book.fortune.major.ai_error"))}finally{U(!1)}}},en=async()=>{if(V.current&&E){T(!0);try{let t=(await o.e(5885).then(o.t.bind(o,99791,23))).default,r=(await Promise.all([o.e(5917),o.e(7069),o.e(2804)]).then(o.bind(o,28668))).default,a=await t(V.current,{scale:1,useCORS:!0,allowTaint:!0,logging:!1,backgroundColor:"#ffffff"}),n=new r({orientation:"portrait",unit:"mm",format:"a4",compress:!0}),i=180*a.height/a.width,l=Math.ceil(i/267),c=document.createElement("canvas"),d=c.getContext("2d");if(!d)throw Error("Failed to get canvas context");c.width=a.width,c.height=267*a.width/180;for(let e=0;e<l;e++){e>0&&n.addPage();let t=e*c.height,o=Math.min(c.height,a.height-t);d.clearRect(0,0,c.width,c.height),d.drawImage(a,0,t,a.width,o,0,0,c.width,o);let r=c.toDataURL("image/jpeg",.85),i=180*o/a.width;n.addImage(r,"JPEG",15,15,180,i)}n.save(e("life_book.fortune.major.pdf_name",{name:(null==s?void 0:s.name)||e("life_book.fortune.major.default_book_name")})),_.oR.success(e("life_book.fortune.major.pdf_saved"))}catch(t){console.error("Error saving PDF:",t),_.oR.error(e("life_book.fortune.major.pdf_error"))}finally{T(!1)}}};return((0,l.useEffect)(()=>{D&&Z()},[D,Z]),s)?(0,r.jsxs)("div",{className:"bg-gradient-to-b from-white via-gray-50/30 to-white",children:[(0,r.jsx)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,r.jsxs)("div",{className:"space-y-4 md:space-y-6",children:[(0,r.jsx)("div",{className:"bg-white rounded-2xl border border-gray-100 shadow-sm p-4 mt-4",children:(0,r.jsxs)("div",{className:"text-center space-y-2",children:[(0,r.jsx)("div",{className:"text-[10px] tracking-widest uppercase text-gray-400",children:e("life_book.fortune.major.your_life_map")}),(0,r.jsx)("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight",children:et?S(et.tenGod,e):e("life_book.fortune.major.important_stage")}),(0,r.jsx)("p",{className:"text-sm text-gray-500 max-w-lg mx-auto",children:et?M(et.tenGod,e):e("life_book.fortune.major.turning_point")}),et&&(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2 text-xs text-gray-500 pt-1",children:[(0,r.jsxs)("span",{className:"font-mono bg-gray-50 px-2 py-0.5 rounded-md",children:[et.heavenly,et.earthly]}),(0,r.jsxs)("span",{children:[et.startAge,"-",et.endAge,e("life_book.fortune.major.age_suffix")]}),(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsx)("span",{children:(0,w.C$)(et.tenGod,e)})]})]})}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("h2",{className:"text-lg sm:text-xl font-medium text-gray-900 px-1",children:e("life_book.fortune.major.timeline_title")}),(0,r.jsxs)(d,{className:"w-full",children:[(0,r.jsx)("div",{className:"flex gap-2 md:gap-3 lg:gap-4 pb-4 px-4",children:eo.map((t,o)=>{let i=er>=t.startAge&&er<=t.endAge,l=er>t.endAge,s=h.cB[t.heavenly],c=(0,h.AN)(s),d=(0,h.rI)(t.lifeStage);return(0,r.jsx)(a.Zp,{className:"flex-shrink-0 w-[180px] md:w-[200px] lg:w-[280px] transition-all overflow-hidden ".concat(i?"ring-2 ".concat(c.border.replace("border-","ring-")):l?"opacity-60":""),children:(0,r.jsx)("div",{className:"bg-gradient-to-br ".concat(i?c.from+" "+c.to:l?"from-gray-50 to-gray-100":"from-slate-50 to-slate-100"),children:(0,r.jsxs)("div",{className:"p-3 md:p-4 lg:p-6 space-y-2 md:space-y-3 lg:space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"text-xl md:text-2xl lg:text-4xl font-bold mb-0.5 md:mb-1 lg:mb-2 ".concat(i?c.text:l?"text-gray-600":"text-slate-700"),
1children:[t.heavenly,t.earthly]}),(0,r.jsxs)("div",{className:"text-xs md:text-sm text-muted-foreground",children:[t.startAge,"-",t.endAge,e("life_book.fortune.major.age_suffix")]})]}),i&&(0,r.jsx)(n.E,{className:"".concat(c.text," ").concat(c.border," bg-white border text-xs"),children:e("life_book.fortune.major.current")}),l&&(0,r.jsx)(N,{className:"h-3.5 w-3.5 md:h-4 md:w-4 lg:h-5 lg:w-5 text-muted-foreground"})]}),(0,r.jsxs)("div",{className:"space-y-1.5 md:space-y-2 text-xs md:text-sm",children:[(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("span",{className:"text-muted-foreground",children:e("life_book.fortune.major.ten_god")}),(0,r.jsx)("span",{className:"font-medium",children:(0,w.C$)(t.tenGod,e)})]}),(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsx)("span",{className:"text-muted-foreground",children:e("life_book.fortune.major.stage")}),(0,r.jsx)("span",{className:"font-medium",children:d})]})]})]})})},o)})}),(0,r.jsx)(f,{orientation:"horizontal"})]})]}),E?(0,r.jsx)("div",{className:"space-y-4 md:space-y-6 px-4",children:(0,r.jsxs)("div",{className:"bg-white rounded-2xl shadow-lg border border-gray-100 overflow-hidden",children:[(0,r.jsx)("div",{className:"bg-gradient-to-r from-[#5BA4B5]/10 to-white px-4 md:px-6 lg:px-8 py-4 border-b border-gray-100",children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"w-10 h-10 rounded-xl bg-[#5BA4B5] flex items-center justify-center shadow-md",children:(0,r.jsx)(j.A,{className:"w-5 h-5 text-white"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-lg font-bold text-gray-900",children:e("life_book.fortune.major.ai_reading_title")}),(0,r.jsx)("p",{className:"text-xs text-gray-500",children:e("life_book.fortune.major.ai_reading_subtitle")}),R&&(0,r.jsx)("p",{className:"text-[11px] text-gray-400 mt-0.5",children:e("life_book.section.generated_time",{time:new Date(R).toLocaleString()})})]})]})}),(0,r.jsx)("div",{className:"px-4 md:px-6 lg:px-8 pt-4",children:(0,r.jsxs)("div",{className:"rounded-xl bg-gradient-to-r from-amber-50/80 to-orange-50/50 border border-amber-100/60 p-4 space-y-3",children:[(0,r.jsx)("p",{className:"text-sm text-amber-800/80 leading-relaxed",children:e("life_book.fortune.major.reanalyze_desc",{year:new Date().getFullYear()})}),(0,r.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,r.jsx)("button",{onClick:()=>{B(null),ea()},disabled:!(null==H?void 0:H.canUse),className:"text-sm font-medium px-4 py-2 rounded-lg shadow-sm transition-all ".concat((null==H?void 0:H.canUse)?"text-white bg-gradient-to-r from-amber-500 to-orange-500 hover:from-amber-600 hover:to-orange-600":"bg-muted text-muted-foreground cursor-not-allowed"),children:e("life_book.fortune.major.reanalyze_btn",{cost:(null==H?void 0:H.cost)||0})}),"number"==typeof(null==H?void 0:H.balance)&&(0,r.jsx)("span",{className:"text-xs ".concat((null==H?void 0:H.canUse)?"text-muted-foreground":"text-destructive"),children:(null==H?void 0:H.canUse)?e
1("life_book.section.current_balance",{balance:H.balance}):e("life_book.section.insufficient_balance",{balance:H.balance})})]})]})}),(0,r.jsx)("div",{ref:V,className:"py-6 px-4 md:py-8 md:px-6 lg:px-10",children:(0,r.jsx)(g.o,{content:E})}),(0,r.jsx)("div",{className:"bg-gray-50 px-4 md:px-6 lg:px-8 py-4 border-t border-gray-100",children:(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-2 sm:gap-4 text-sm",children:[(0,r.jsxs)("button",{onClick:en,disabled:J,className:"flex items-center gap-2 px-4 py-2 rounded-lg hover:bg-white hover:shadow-sm text-gray-600 hover:text-gray-900 transition-all disabled:opacity-50 w-full sm:w-auto justify-center",children:[(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),J?e("life_book.fortune.major.saving"):e("life_book.fortune.ai.download_pdf")]}),(0,r.jsx)("div",{className:"hidden sm:block w-px h-5 bg-gray-200"}),(0,r.jsxs)("button",{onClick:()=>alert(e("common.feature_coming_soon")),className:"flex items-center gap-2 px-4 py-2 rounded-lg hover:bg-white hover:shadow-sm text-gray-600 hover:text-gray-900 transition-all w-full sm:w-auto justify-center",children:[(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),e("life_book.fortune.ai.ai_followup")]}),(0,r.jsx)("div",{className:"hidden sm:block w-px h-5 bg-gray-200"}),(0,r.jsxs)("button",{onClick:()=>alert(e("common.contact_master_coming")),className:"flex items-center gap-2 px-4 py-2 rounded-lg hover:bg-white hover:shadow-sm text-gray-600 hover:text-gray-900 transition-all w-full sm:w-auto justify-center",children:[(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})}),e("life_book.fortune.ai.contact_master"),(0,r.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 bg-teal-100 text-teal-600 rounded-full",children:e("life_book.fortune.ai.advanced")})]})]})})]})}):(0,r.jsx)("div",{className:"space-y-4 py-4",children:W?(0,r.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,r.jsxs)("div",{className:"flex items-center gap-3 text-muted-foreground",children:[(0,r.jsx)(b.A,{className:"h-5 w-5 animate-spin"}),(0,r.jsx)("span",{children:e("life_book.fortune.major.loading")})]})}):P?(0,r.jsx)("div",{className:"flex items-center justify-center py-12 md:py-16",children:(0,r.jsxs)("div",{className:"text-center space-y-6",children:[(0,r.jsxs)("div",{className:"relative w-32 h-32 mx-auto",children:[(0,r.jsxs)("svg",{className:"w-32 h-32 transform -rotate-90",viewBox:"0 0 120 120",children:[(0,r.jsx)("circle",{cx:"60",cy:"60",r:"54",stroke:"#e5e7eb",strokeWidth:"4",fill:"transparent"}),(0,r.jsx)("circle",{cx:"60",cy:"60",r:"54",stroke:"#6366f1",strokeWidth:"4",fill:"transparent",strokeLinecap:"round",strokeDasharray:"".concat(2*Math.PI*54),strokeDashoffset:"".concat(2*Math.PI*54*(1-Math.min(F/60,1))),className:"transition-all duration-1000 ease-out"})]}),(0,r.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[(0,r.jsx)("div",{className:"text-3xl font-bold text-indigo-600",children:F}),(0,r.jsx)("div",{className:"text-xs text-gray-500 mt-1",children:e("life_book.fortune.major.seconds")})]})]}),(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-center gap-3",children:[(0,r.jsx)(b.A,{className:"h-5 w-5 animate-spin text-indigo-500"}),(0,r.jsx)("span",{className:"text-base font-medium text-gray-700",children:F<3?e("life_book.fortune.major.connecting_ai"):F<10?e("life_book.fortune.major.analyzing_cycles"):F<20?e("life_book.fortune.major.combining_theory"):F<35?e("life_book.fortune.major.generating_reading"):F<50?e("life_book.fortune.major.deep_analysis"):e("life_book.fortune.major.almost_done")})]}),(0,r.jsx)("p",{className:"text-sm text-gray-500",children:e("life_book.fortune.major.ai_generating")})]})]})}):(0,r.jsx)("div",{className:"pb-6 px-4",children:(0,r.jsx)("div",{className:"bg-white rounded-2xl shadow-sm border border-gray-100 p-6 sm:p-8",children:(0,r.jsxs)("div",{className:"text-center space-y-6",children:[(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-[#5BA4B5]/15 flex items-center justify-center",children:(0,r.jsx)(j.A,{className:"w-8 h-8 text-teal-600"})})}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("h3",{className:"text-lg font-bold text-gray-900",children:e("life_book.fortune.major.ai_reading_title")}),(0,r.jsx)("p",{className:"text-sm text-gray-500 max-w-md mx-auto",children:e("life_book.fortune.major.ai_reading_desc")}),H&&(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-gray-600",children:[(0,r.jsx)("span",{children:"\uD83E\uDE99"}),(0,r.jsx)("span",{children:e("common.coin_cost",{cost:H.cost})}),(0,r.jsx)("span",{className:"text-gray-400",children:"|"}),(0,r.jsx)("span",{className:H.canUse?"text-green-600":"text-red-600",children:e("common.coin_balance",{balance:H.balance})})]})]}),(0,r.jsxs)(i.$,{onClick:()=>{H&&H.canUse?ea():window.location.href="/membership"},disabled:P||!H,size:"lg",className:"bg-[#5BA4B5] hover:bg-[#4e939f] text-white px-4 sm:px-6 md:px-8 py-3 sm:py-4 md:py-6 text-sm sm:text-base rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-105 w-full sm:w-auto",children:[(0,r.jsx)(I,{className:"h-4 w-4 sm:h-5 sm:w-5 mr-2"}),(0,r.jsx)("span",{className:"whitespace-nowrap",children:P?e("life_book.fortune.major.generating_reading"):e("life_book.fortune.major.generate_ai")})]})]})})})})]})}),(0,r.jsx)(y.U,{isOpen:$,onClose:()=>K(!1)})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:(0,r.jsxs)("div",{className:"text-center space-y-4",children:[(0,r.jsx)("p",{className:"text-muted-foreground",children:e("life_book.fortune.major.no_book")}),(0,r.jsx)(i.$,{onClick:()=>
1{if(!D)return void K(!0);window.dispatchEvent(new Event("createNewLifeBook"))},children:e("life_book.fortune.major.create_book")})]})}),(0,r.jsx)(y.U,{isOpen:$,onClose:()=>K(!1)})]})}let S=(e,t)=>t({比肩:"life_book.fortune.major.title.bijian",劫财:"life_book.fortune.major.title.jiecai",食神:"life_book.fortune.major.title.shishen",伤官:"life_book.fortune.major.title.shangguan",偏财:"life_book.fortune.major.title.piancai",正财:"life_book.fortune.major.title.zhengcai",偏官:"life_book.fortune.major.title.pianguan",正官:"life_book.fortune.major.title.zhengguan",偏印:"life_book.fortune.major.title.pianyin",正印:"life_book.fortune.major.title.zhengyin"}[e]||"life_book.fortune.major.important_stage"),M=(e,t)=>t({比肩:"life_book.fortune.major.hook.bijian",劫财:"life_book.fortune.major.hook.jiecai",食神:"life_book.fortune.major.hook.shishen",伤官:"life_book.fortune.major.hook.shangguan",偏财:"life_book.fortune.major.hook.piancai",正财:"life_book.fortune.major.hook.zhengcai",偏官:"life_book.fortune.major.hook.pianguan",正官:"life_book.fortune.major.hook.zhengguan",偏印:"life_book.fortune.major.hook.pianyin",正印:"life_book.fortune.major.hook.zhengyin"}[e]||"life_book.fortune.major.turning_point")}}]);

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.