PageSourceSearch

https://xynergy.ai/_next/static/chunks/9851.5fc6024a89640980.js

js xynergy.ai collected 2026-10-05 16:02:51 UTC 14,312 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9851],{60661:(e,s,a)=>{a.d(s,{A:()=>t});let t=(0,a(46775).A)("snowflake",[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]])},76842:(e,s,a)=>{a.d(s,{A:()=>t});let t=(0,a(46775).A)("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"}]])},90871:(e,s,a)=>{a.r(s),a.d(s,{default:()=>P});var t=a(85047),l=a(18710),r=a(46377),n=a(82520),c=a(21410),d=a(6386),i=a(34619),x=a(68341),m=a(76842),h=a(54306),o=a(58462),p=a(31615),j=a(62557),g=a(38187),u=a(94477),f=a(10250),b=a(18534);let N={tasks:"text-green-600",achievements:"text-green-600",milestones:"text-blue-600"},v={tasks:"bg-green-50 dark:bg-green-900/20 border-green-200 dark:border-green-800",achievements:"bg-green-50 dark:bg-green-900/20 border-green-200 dark:border-green-800",milestones:"bg-blue-50 dark:bg-blue-900/20 border-blue-200 dark:border-blue-800"},k={tasks:"text-green-700 dark:text-green-300",achievements:"text-green-700 dark:text-green-300",milestones:"text-blue-700 dark:text-blue-300"},y={tasks:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",achievements:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",milestones:"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200"},w={tasks:"text-green-600",achievements:"text-green-600",milestones:"text-blue-600"},A={tasks:"✓ 已完成",achievements:"\uD83C\uDFC6 已獲得",milestones:"\uD83C\uDFAF 已達成"};function C({open:e,onOpenChange:s,variant:a,title:l,description:r,items:n}){return(0,t.jsx)(b.lG,{open:e,onOpenChange:s,children:(0,t.jsxs)(b.Cf,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[(0,t.jsxs)(b.c7,{children:[(0,t.jsxs)(b.L3,{className:"flex items-center gap-2",children:[(0,t.jsx)(f.A,{className:`h-5 w-5 ${N[a]}`}),l]}),(0,t.jsx)(b.rr,{children:r})]}),(0,t.jsx)("div",{className:"space-y-3 mt-4",children:n.map(e=>(0,t.jsxs)("div",{className:`flex items-center gap-4 p-4 rounded-lg border transition-colors ${v[a]}`,children:[(0,t.jsx)(j.S,{checked:e.checked,disabled:!0,className:"h-5 w-5"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("p",{className:`font-medium line-through ${k[a]}`,children:e.label}),(0,t.jsx)("p",{className:`text-xs mt-1 ${w[a]}`,children:A[a]})]}),(0,t.jsxs)(g.E,{variant:"secondary",className:y[a],children:["+",e.xp," 點"]})]},e.id))})]})})}function M({completedAchievements:e,incompleteAchievements:s}){let[a,l]=(0,p.useState)(!1);return(0,t.jsxs)(d.av,{value:"achievements",className:"space-y-4",children:[(0,t.jsxs)(n.Zp,{children:[(0,t.jsx)(n.aR,{children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(n.ZB,{className:"flex items-center gap-2",children:[(0,t.jsx)(u.A,{className:"h-5 w-5"}),"成就系統"]}),e.length>0&&(0,t.jsxs)(c.$,{variant:"outline",size:"sm",onClick:()=>l(!0),className:"flex items-center gap-2",children:[(0,t.jsx)(f.A,{className:"h-4 w-4"}),"已完成 (",e.length,")"]})]})}),(0,t.jsx)(n.Wu,{children:(0,t.jsx)("div",{className:"space-y-3",children:s.length>0?s.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-4 p-4 rounded-lg border bg-card hover:bg-muted/50 transition-colors",children:[(0,t.jsx)(j.S,{checked:e.achieved,disabled:!0,className:"h-5 w-5"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("p",{className:"font-medium",children:e.name}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e.label})]}),(0,t.jsxs)(g.E,{variant:"secondary",className:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",children:["+",e.xp," 點"]})]},e.id)):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,t.jsx)(u.A,{className:"h-12 w-12 text-muted-foreground mb-4"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"所有成就都已完成!"}),e.length>0&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"點擊右上角的「已完成」按鈕查看已完成成就"})]})})})]}),(0,t.jsx)(C,{open:a,onOpenChange:l,variant:"achievements",title:(0,t.jsxs)(t.Fragment,{children:["已完成成就 (",e.length,")"]}),description:"以下是您已獲得的成就列表",items:e.map(e=>({id:e.id,label:e.name,xp:e.xp,checked:e.achieved}))})]})}var S=a(26052),L=a.n(S),$=a(15203);let z=(0,a(46775).A)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var Z=a(32326),R=a(63533),E=a(1397),W=a(78706);function T({completeness:e,completedMilestones:s,incompleteMilestones:a,completedTasks:l,incompleteTasks:r}){let[i,x]=(0,p.useState)(!1),[m,h]=(0,p.useState)(!1);return(0,t.jsxs)(d.av,{value:"overview",className:"space-y-4",children:[(0,t.jsx)(W.S,{}),(0,t.jsxs)(n.Zp,{children:[(0,t.jsxs)(n.aR,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(n.ZB,{className:"flex items-center gap-2",children:[(0,t.jsx)(z,{className:"h-5 w-5"}),"資料完整度"]}),(0,t.jsxs)("span",{className:"text-2xl font-bold text-orange-500",children:[e.overall,"%"]})]}),(0,t.jsx)($.k,{value:e.overall,className:"h-3"})]}),(0,t.jsx)(n.Wu,{className:"space-y-5",children:E.yZ.map(s=>{let a=e.byStage[s],l=e.sections.filter(e=>e.stage===s);return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:`inline-flex h-2.5 w-2.5 rounded-full ${100===a?"bg-green-500":"bg-muted-foreground
1/30"}`,"aria-hidden":!0}),(0,t.jsx)("span",{className:"font-medium text-sm",children:E.BA[s]})]}),(0,t.jsxs)("span",{className:"text-sm text-muted-foreground tabular-nums",children:[a,"%"]})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5 pl-4",children:l.map(e=>e.done?(0,t.jsxs)(g.E,{variant:"secondary",className:"bg-green-100 text-green-800 dark:bg-green-900/50 dark:text-green-200",children:["✓ ",e.label]},e.id):(0,t.jsx)(L(),{href:e.href,children:(0,t.jsx)(g.E,{variant:"outline",className:"cursor-pointer hover:bg-accent",title:e.hint,children:e.label})},e.id))})]},s)})})]}),(0,t.jsxs)(n.Zp,{children:[(0,t.jsx)(n.aR,{children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(n.ZB,{className:"flex items-center gap-2",children:[(0,t.jsx)(Z.A,{className:"h-5 w-5"}),"待補資料"]}),l.length>0&&(0,t.jsxs)(c.$,{variant:"outline",size:"sm",onClick:()=>h(!0),className:"flex items-center gap-2",children:[(0,t.jsx)(f.A,{className:"h-4 w-4"}),"已完成 (",l.length,")"]})]})}),(0,t.jsx)(n.Wu,{children:(0,t.jsx)("div",{className:"space-y-3",children:r.length>0?r.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-4 p-4 rounded-lg border bg-card hover:bg-muted/50 transition-colors",children:[(0,t.jsx)(j.S,{checked:e.done,disabled:!0,className:"h-5 w-5"}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)("p",{className:"font-medium",children:e.label})}),(0,t.jsxs)(g.E,{variant:"secondary",className:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",children:["+",e.xp," 點"]})]},e.id)):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,t.jsx)(Z.A,{className:"h-12 w-12 text-muted-foreground mb-4"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"所有任務都已完成!"}),l.length>0&&(0,t.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"點擊右上角的「已完成」按鈕查看已完成任務"})]})})})]}),(0,t.jsxs)(n.Zp,{children:[(0,t.jsx)(n.aR,{children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(n.ZB,{className:"flex items-center gap-2",children:[(0,t.jsx)(R.A,{className:"h-5 w-5"}),"里程碑"]}),s.length>0&&(0,t.jsxs)(c.$,{variant:"outline",size:"sm",onClick:()=>x(!0),className:"flex items-center gap-2",children:[(0,t.jsx)(f.A,{className:"h-4 w-4"}),"已完成 (",s.length,")"]})]})}),(0,t.jsx)(n.Wu,{children:(0,t.jsx)("div",{className:"space-y-3",children:a.length>0?a.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-4 p-4 rounded-lg border bg-card hover:bg-muted/50 transition-colors",children:[(0,t.jsx)(j.S,{checked:e.reached,disabled:!0,className:"h-5 w-5"}),(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)("p",{className:"font-medium",children:e.label})}),(0,t.jsxs)(g.E,{variant:"secondary",className:"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",children:["+",e.xp," 點"]})]},e.id)):(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,t.jsx)(R.A,{className:"h-12 w-12 text-muted-foreground mb-4"}),(0,t.jsx)("p",{className:"text-muted-foreground",children:"所有里程碑都已完成!"})]})})})]}),(0,t.jsx)(C,{open:m,onOpenChange:h,variant:"tasks",title:(0,t.jsxs)(t.Fragment,{children:["已完成任務 (",l.length,")"]}),description:"以下是您已完成的任務列表",items:l.map(e=>({id:e.id,label:e.label,xp:e.xp,checked:e.done}))}),(0,t.jsx)(C,{open:i,onOpenChange:x,variant:"milestones",title:(0,t.jsxs)(t.Fragment,{children:["已完成里程碑 (",s.length,")"]}),description:"以下是您已達成的里程碑列表",items:s.map(e=>({id:e.id,label:e.label,xp:e.xp,checked:e.reached}))})]})}function B(){return(0,t.jsx)(h.default,{className:"py-12",size:64})}let G=(0,l.default)(()=>a.e(6267).then(a.bind(a,16267)),{loadableGenerated:{webpack:()=>[16267]},loading:()=>(0,t.jsx)(B,{})}),H=(0,l.default)(()=>a.e(9621).then(a.bind(a,19621)),{loadableGenerated:{webpack:()=>[19621]},loading:()=>(0,t.jsx)(B,{})});function O({level:e,percent:s}){let a=2*Math.PI*55.5,l=a-Math.min(100,Math.max(0,s))/100*a;return(0,t.jsxs)("div",{className:"relative flex-none",style:{width:120,height:120},children:[(0,t.jsxs)("svg",{width:120,height:120,className:"-rotate-90",children:[(0,t.jsx)("circle",{cx:60,cy:60,r:55.5,fill:"none",strokeWidth:9,className:"stroke-muted"}),(0,t.jsx)("circle",{cx:60,cy:60,r:55.5,fill:"none",strokeWidth:9,strokeLinecap:"round",stroke:"url
1(#tasksLevelRing)",strokeDasharray:a,strokeDashoffset:l,className:"transition-[stroke-dashoffset] duration-500"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"tasksLevelRing",x1:"0",y1:"0",x2:"1",y2:"1",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#facc15"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#f97316"})]})})]}),(0,t.jsx)("div",{className:"absolute inset-[13px] flex items-center justify-center rounded-full bg-gradient-to-br from-yellow-400 to-orange-500 shadow-lg",children:(0,t.jsxs)("span",{className:"text-2xl font-bold text-white",children:["LV.",e]})}),(0,t.jsx)("div",{className:"absolute -right-1 -top-1 flex h-7 w-7 items-center justify-center rounded-full bg-yellow-300",children:(0,t.jsx)(i.A,{className:"h-4 w-4 text-yellow-600"})})]})}function P({tab:e}){let s=(0,r.useRouter)(),a=(0,r.usePathname)(),l=(0,r.useSearchParams)(),{completedTasks:i,incompleteTasks:h,completedAchievements:p,incompleteAchievements:j,completedMilestones:g,incompleteMilestones:u,totalXp:f,level:b,nextLevelXp:N,current:v,completeness:k,userGamification:y}=(0,o.I)(),w=e=>{let t=new URLSearchParams(l?.toString()??"");"overview"===e?t.delete("fn"):t.set("fn",e);let r=t.toString();s.replace(r?`${a}?${r}`:a,{scroll:!1})};return(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)(n.Zp,{className:"border-yellow-200 bg-gradient-to-br from-yellow-50 to-orange-50 dark:border-yellow-800 dark:from-yellow-900/20 dark:to-orange-900/20",children:(0,t.jsx)(n.Wu,{className:"p-6",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-6 md:flex-row md:text-left",children:[(0,t.jsx)(O,{level:b,percent:k.overall}),(0,t.jsxs)("div",{className:"flex-1 space-y-1 text-center md:text-left",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-center gap-1.5 md:justify-start",children:[(0,t.jsx)("span",{className:"text-2xl font-bold",children:f}),(0,t.jsx)("span",{className:"text-muted-foreground",children:"經驗值"}),(0,t.jsxs)("span",{className:"ml-2 text-sm font-medium text-orange-500",children:["資料完整度 ",k.overall,"%"]})]}),(0,t.jsxs)("div",{className:"text-sm text-muted-foreground",children:["距離下一等級還需 ",N-v," 點經驗值"]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"推薦碼"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("code",{className:"rounded-md bg-muted px-3 py-1 font-mono text-sm",children:y.referralCode}),(0,t.jsx)(c.$,{size:"sm",variant:"outline",onClick:y.handleCopyReferralCode,className:"h-8",children:y.copied?(0,t.jsx)(x.A,{className:"h-4 w-4"}):(0,t.jsx)(m.A,{className:"h-4 w-4"})})]})]})]})})}),(0,t.jsxs)(d.tU,{value:e,className:"min-w-0",children:["overview"===e&&(0,t.jsx)(T,{completeness:k,completedMilestones:g,incompleteMilestones:u,completedTasks:i,incompleteTasks:h}),"achievements"===e&&(0,t.jsx)(M,{completedAchievements:p,incompleteAchievements:j}),"leaderboard"===e&&(0,t.jsx)(G,{incompleteTasks:h,incompleteAchievements:j,onSwitchToTasks:()=>w("overview"),onSwitchToAchievements:()=>w("achievements")}),"rewards"===e&&(0,t.jsx)(H,{})]})]})}},94477:(e,s,a)=>{a.d(s,{A:()=>t});let t=(0,a(46775).A)("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]])}}]);

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.