Files
chinese-family-tree-2/.next/server/chunks/ssr/Documents_go-new_chinese-family-tree_0e47878f._.js
T
freedakgmail 3d075c6076 0.0.8.5
2025-11-24 14:02:34 +08:00

3 lines
20 KiB
JavaScript

module.exports=[56047,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"BailoutToCSR",{enumerable:!0,get:function(){return e}});let d=a.r(53351);function e({reason:a,children:b}){throw Object.defineProperty(new d.BailoutToCSRError(a),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0})}},54925,(a,b,c)=>{"use strict";function d(a){return a.split("/").map(a=>encodeURIComponent(a)).join("/")}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"encodeURIPath",{enumerable:!0,get:function(){return d}})},92987,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"PreloadChunks",{enumerable:!0,get:function(){return h}});let d=a.r(6155),e=a.r(7614),f=a.r(56704),g=a.r(54925);function h({moduleIds:a}){let b=f.workAsyncStorage.getStore();if(void 0===b)return null;let c=[];if(b.reactLoadableManifest&&a){let d=b.reactLoadableManifest;for(let b of a){if(!d[b])continue;let a=d[b].files;c.push(...a)}}return 0===c.length?null:(0,d.jsx)(d.Fragment,{children:c.map(a=>{let c=`${b.assetPrefix}/_next/${(0,g.encodeURIPath)(a)}`;return a.endsWith(".css")?(0,d.jsx)("link",{precedence:"dynamic",href:c,rel:"stylesheet",as:"style",nonce:b.nonce},a):((0,e.preload)(c,{as:"script",fetchPriority:"low",nonce:b.nonce}),null)})})}},93121,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return j}});let d=a.r(6155),e=a.r(54297),f=a.r(56047),g=a.r(92987);function h(a){return{default:a&&"default"in a?a.default:a}}let i={loader:()=>Promise.resolve(h(()=>null)),loading:null,ssr:!0},j=function(a){let b={...i,...a},c=(0,e.lazy)(()=>b.loader().then(h)),j=b.loading;function k(a){let h=j?(0,d.jsx)(j,{isLoading:!0,pastDelay:!0,error:null}):null,i=!b.ssr||!!b.loading,k=i?e.Suspense:e.Fragment,l=b.ssr?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(g.PreloadChunks,{moduleIds:b.modules}),(0,d.jsx)(c,{...a})]}):(0,d.jsx)(f.BailoutToCSR,{reason:"next/dynamic",children:(0,d.jsx)(c,{...a})});return(0,d.jsx)(k,{...i?{fallback:h}:{},children:l})}return k.displayName="LoadableComponent",k}},16616,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return e}});let d=a.r(2657)._(a.r(93121));function e(a,b){let c={};"function"==typeof a&&(c.loader=a);let e={...c,...b};return(0,d.default)({...e,modules:e.loadableGenerated?.modules})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},37026,a=>{"use strict";var b=a.i(6155),c=a.i(74719),d=a.i(43181),e=a.i(16606),f=a.i(99766),g=a.i(57657),h=a.i(53902);let i=(0,a.i(37111).default)("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);var j=a.i(64584),k=a.i(18116),l=a.i(16616),m=a.i(54297);a.i(33965);var n=a.i(83966);let o=(0,l.default)(async()=>{},{loadableGenerated:{modules:[40258]},ssr:!1}),p={type:"FeatureCollection",features:[{type:"Feature",properties:{name:"中国"},geometry:{type:"MultiPolygon",coordinates:[[[[134.5,48.5],[135,47],[134,45],[133,43],[131,42],[130,43],[129,44],[128,45],[127,46],[126,47],[125,48],[124,49],[123.5,50],[123,51],[122.5,52],[122,53],[121,53.5],[120,53.3],[119,53],[118.5,52],[119,51],[119.5,50],[120,49],[121,48],[122,47],[123,46],[124,45],[125,44],[126,43],[127,42.5],[128,42],[129,41.5],[130,41],[130,40],[129,39],[128,38.5],[127,38],[126,37.5],[125,37],[124,36.5],[123,36],[122.5,35.5],[122,35],[121.5,34.5],[121,34],[120.5,33.5],[120,33],[119.5,32.5],[119.5,32],[120,31.5],[120.5,31],[121,30.5],[121.5,30],[122,29.5],[122,29],[121.5,28.5],[121,28],[120.5,27.5],[120,27],[119.5,26.5],[119,26],[118.5,25.5],[118,25],[117.5,24.5],[117,24],[116.5,23.5],[116,23],[115.5,22.5],[115,22],[114,21.8],[113,21.5],[112,21.3],[111,21.2],[110.5,21],[110,20.5],[109.5,20],[109,20.5],[108.5,21],[108,21.5],[107.5,22],[107,22.5],[106.5,23],[106,23.5],[105.5,24],[105,24.5],[104.5,25],[104,25.5],[103.5,26],[103,26.5],[102.5,27],[102,27.5],[101.5,28],[101,28.5],[100.5,29],[100,29.5],[99.5,30],[99,30.5],[98.5,31],[98,31.5],[97.5,32],[97,32.5],[96.5,33],[96,33.5],[95.5,34],[95,34.5],[94.5,35],[94,35.5],[93.5,36],[93,36.5],[92.5,37],[92,37.5],[91.5,38],[91,38.5],[90.5,39],[90,39.5],[89.5,40],[89,40.5],[88.5,41],[88,41.5],[87.5,42],[87,42.5],[86.5,43],[86,43.5],[85.5,44],[85,44.5],[84.5,45],[84,45.5],[83.5,46],[83,46.5],[82.5,47],[82,47.5],[81.5,48],[81,48.5],[80.5,49],[80,49.5],[79.5,49.5],[79,49.3],[78.5,49],[78,48.5],[77.5,48],[77,47.5],[76.5,47],[76,46.5],[75.5,46],[75,45.5],[74.5,45],[74,44.5],[73.5,44],[73.5,43.5],[74,43],[74.5,42.5],[75,42],[75.5,41.5],[76,41],[76.5,40.5],[77,40],[77.5,39.5],[78,39],[78.5,38.5],[79,38.5],[79.5,39],[80,39.5],[80.5,40],[81,40.5],[81.5,41],[82,41.5],[82.5,42],[83,42.5],[83.5,43],[84,43.5],[84.5,44],[85,44.5],[85.5,45],[86,45.5],[86.5,46],[87,46.5],[87.5,47],[88,47.5],[88.5,48],[89,48.5],[89.5,49],[90,49.5],[90.5,50],[91,50.5],[91.5,51],[92,51.5],[92.5,52],[93,52.5],[93.5,53],[94,53],[95,52.8],[96,52.5],[97,52.2],[98,52],[99,51.8],[100,51.5],[101,51.2],[102,51],[103,50.8],[104,50.5],[105,50.2],[106,50],[107,49.8],[108,49.5],[109,49.3],[110,49.2],[111,49.1],[112,49],[113,48.9],[114,48.8],[115,48.7],[116,48.6],[117,48.5],[118,48.5],[119,48.5],[120,48.6],[121,48.7],[122,48.8],[123,48.9],[124,49],[125,49.1],[126,49.2],[127,49.3],[128,49.4],[129,49.5],[130,49.5],[131,49.4],[132,49.2],[133,49],[134,48.8],[134.5,48.5]]],[[[108.6,18.5],[109.5,18.3],[110.5,18.5],[111,19],[111,19.5],[110.5,20],[109.5,20.2],[108.6,20],[108.2,19.5],[108.6,18.5]]],[[[120,22],[120.5,21.9],[121,22],[121.5,22.5],[122,23],[122,23.5],[122,24],[121.8,24.5],[121.5,25],[121,25.2],[120.5,25.1],[120.2,24.8],[120,24.5],[120,24],[120,23.5],[120,23],[120,22.5],[120,22]]]]}}]},q={北京:[116.46,39.92],上海:[121.48,31.22],广州:[113.23,23.16],深圳:[114.07,22.62],成都:[104.06,30.67],杭州:[120.19,30.26],重庆:[106.55,29.56],西安:[108.95,34.27],苏州:[120.62,31.32],武汉:[114.31,30.52],南京:[118.78,32.04],天津:[117.2,39.13],郑州:[113.65,34.76],长沙:[112.94,28.23],东莞:[113.75,23.05],沈阳:[123.43,41.8],青岛:[120.38,36.07],合肥:[117.27,31.86],佛山:[113.12,23.02],昆明:[102.73,25.04],福州:[119.3,26.08],无锡:[120.29,31.57],厦门:[118.1,24.46],哈尔滨:[126.63,45.75],长春:[125.35,43.88],南昌:[115.89,28.68],济南:[117.12,36.65],宁波:[121.55,29.87],大连:[121.62,38.91],贵阳:[106.71,26.57],温州:[120.67,28],石家庄:[114.52,38.05],泉州:[118.58,24.93],南宁:[108.33,22.84],金华:[119.65,29.08],常州:[119.95,31.79],珠海:[113.52,22.3],惠州:[114.42,23.09],嘉兴:[120.76,30.77],南通:[120.86,32.01],中山:[113.38,22.52],保定:[115.48,38.85],太原:[112.55,37.87],兰州:[103.79,36.06],台州:[121.43,28.66],乌鲁木齐:[87.68,43.77],绍兴:[120.58,30.03],廊坊:[116.7,39.54],洛阳:[112.45,34.62],威海:[122.12,37.52],盐城:[120.13,33.38],临沂:[118.35,35.05],江门:[113.08,22.61],汕头:[116.69,23.39],泰州:[119.9,32.49],漳州:[117.65,24.52],邯郸:[114.47,36.6],济宁:[116.59,35.38],芜湖:[118.38,31.33],淄博:[118.05,36.78],银川:[106.27,38.47],柳州:[109.4,24.33],绵阳:[104.73,31.48],湖州:[120.1,30.86],衡阳:[112.61,26.89],莆田:[119.01,25.43],宜昌:[111.29,30.7],桂林:[110.28,25.29],三亚:[109.51,18.25],遵义:[106.93,27.71],咸阳:[108.71,34.33],上饶:[117.97,28.45],莱芜:[117.68,36.21],赣州:[114.94,25.85],揭阳:[116.35,23.55],扬州:[119.42,32.39],菏泽:[115.47,35.23],徐州:[117.2,34.26],肇庆:[112.47,23.05],海口:[110.33,20.02],拉萨:[91.13,29.66],呼和浩特:[111.75,40.84],包头:[109.84,40.66],南阳:[112.53,33],鞍山:[122.99,41.12],九江:[115.99,29.71],大庆:[125.11,46.59],平顶山:[113.31,33.74],抚顺:[123.92,41.88],秦皇岛:[119.57,39.95],株洲:[113.15,27.83],齐齐哈尔:[123.95,47.33]};function r(){let{treeData:a,getMember:l,isLoading:r}=(0,d.useFamily)(),s=Object.values(a.members),[t,u]=(0,m.useState)(!1);(0,m.useEffect)(()=>{fetch("/china.json").then(a=>a.json()).then(a=>{n.registerMap("china",a),u(!0)}).catch(a=>{console.error("Failed to load China map:",a),n.registerMap("china",p),u(!0)})},[]);let v=(0,m.useMemo)(()=>s.flatMap(a=>{let b=[];return a.birthDate&&b.push({date:a.birthDate,year:Number.parseInt(a.birthDate.substring(0,4)),type:"birth",member:a}),a.deathDate&&b.push({date:a.deathDate,year:Number.parseInt(a.deathDate.substring(0,4)),type:"death",member:a}),b}).sort((a,b)=>b.date.localeCompare(a.date)),[s]),w=(0,m.useMemo)(()=>s.flatMap(a=>{if(!a.fatherId)return[];let b=l(a.fatherId);if(!b)return[];let c=b.birthPlace||b.ancestralHome,d=a.birthPlace||a.ancestralHome;return c&&d&&c!==d?[{year:a.birthDate?Number.parseInt(a.birthDate.substring(0,4)):null,from:c,to:d,person:a,father:b}]:[]}).sort((a,b)=>(a.year||0)-(b.year||0)),[s,l]),x=(0,m.useMemo)(()=>{let a={};Object.keys(q).forEach(b=>{a[b]=b,a[`${b}`]=b,Object.entries({广东省:["广州","深圳","东莞","佛山","珠海","惠州","中山","江门","汕头","肇庆"],浙江省:["杭州","宁波","温州","金华","嘉兴","台州","绍兴","湖州"],江苏省:["苏州","南京","无锡","常州","南通","盐城","泰州","扬州","徐州"],山东省:["济南","青岛","威海","临沂","济宁","淄博","莱芜","菏泽"],四川省:["成都","绵阳"],河北省:["石家庄","保定","廊坊","邯郸","秦皇岛"],福建省:["福州","厦门","泉州","莆田","漳州"],湖北省:["武汉","宜昌"],湖南省:["长沙","衡阳","株洲"],陕西省:["西安","咸阳"],河南省:["郑州","洛阳","南阳","平顶山"],辽宁省:["沈阳","大连","鞍山","抚顺"],安徽省:["合肥","芜湖"],云南省:["昆明"],贵州省:["贵阳","遵义"],广西壮族自治区:["南宁","柳州","桂林"],江西省:["南昌","九江","赣州","上饶"],黑龙江省:["哈尔滨","大庆","齐齐哈尔"],吉林省:["长春"],山西省:["太原"],甘肃省:["兰州"],新疆维吾尔自治区:["乌鲁木齐"],宁夏回族自治区:["银川"],内蒙古自治区:["呼和浩特","包头"],海南省:["海口","三亚"],西藏自治区:["拉萨"],天津市:["天津"],重庆市:["重庆"],北京市:["北京"],上海市:["上海"]}).forEach(([c,d])=>{d.includes(b)&&(a[`${c}${b}`]=b,a[`${c}${b}`]=b)})});let b=b=>{let c=a[b];if(c&&q[c])return c;let d=b.match(/(.+?省)?(.+?市)/);if(d){let c=d[1]||"",e=d[2]||"";for(let d of[b,c+e,e.replace("市",""),e]){let b=a[d];if(b&&q[b])return b}}return b},c=w.map(a=>{let c=b(a.from),d=b(a.to),e=q[c],f=q[d];return e&&f?{fromName:c,toName:d,coords:[e,f]}:(console.log("坐标未找到:",{from:a.from,to:a.to,fromCity:c,toCity:d,fromCoord:e,toCoord:f}),null)}).filter(Boolean);console.log("迁徙数据:",{migrations:w,lines:c});let d={};return w.forEach(a=>{let c=b(a.from),e=b(a.to);d[c]=(d[c]||0)+1,d[e]=(d[e]||0)+1}),{backgroundColor:"transparent",geo:{map:"china",roam:!0,label:{show:!0,color:"#666",fontSize:12},itemStyle:{areaColor:"rgba(128, 128, 128, 0.15)",borderColor:"rgba(128, 128, 128, 0.5)",borderWidth:2},emphasis:{itemStyle:{areaColor:"rgba(128, 128, 128, 0.25)"},label:{show:!0,color:"#333",fontSize:14}}},series:[{type:"lines",coordinateSystem:"geo",data:c,lineStyle:{color:"transparent",width:0,opacity:0},effect:{show:!0,period:3,trailLength:.2,symbol:"arrow",symbolSize:12,color:"#3b82f6",loop:!0},zlevel:1},{type:"scatter",coordinateSystem:"geo",data:Object.entries(d).map(([a,b])=>{let c=q[a];return c?{name:a,value:[...c,10*b]}:null}).filter(Boolean),symbolSize:10,label:{show:!0,formatter:"{b}",position:"right",fontSize:12,fontWeight:"normal",color:"#333"},itemStyle:{color:"#000",shadowBlur:0,borderWidth:0},emphasis:{scale:!0,itemStyle:{color:"#000"},label:{show:!0,fontSize:14,fontWeight:"bold"}}}]}},[w]);return r?(0,b.jsxs)("div",{className:"min-h-screen bg-background flex flex-col",children:[(0,b.jsx)(c.SiteHeader,{}),(0,b.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,b.jsxs)("div",{className:"text-center",children:[(0,b.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),(0,b.jsx)("p",{className:"text-muted-foreground",children:"加载中..."})]})})]}):0===s.length?(0,b.jsxs)("div",{className:"min-h-screen bg-background flex flex-col",children:[(0,b.jsx)(c.SiteHeader,{}),(0,b.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,b.jsxs)("div",{className:"text-center space-y-4",children:[(0,b.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 text-primary/80",children:(0,b.jsx)(k.Calendar,{className:"h-16 w-16",strokeWidth:1})}),(0,b.jsx)("p",{className:"text-base text-foreground font-light tracking-wide",children:"时光未启"})]})})]}):(0,b.jsxs)("div",{className:"min-h-screen bg-background flex flex-col font-sans",children:[(0,b.jsx)(c.SiteHeader,{}),(0,b.jsxs)("main",{className:"container mx-auto py-8 px-4 md:px-6 flex-1",children:[(0,b.jsxs)("div",{className:"mb-8",children:[(0,b.jsx)("h1",{className:"text-3xl font-serif font-bold mb-2",children:"家族历史"}),(0,b.jsx)("p",{className:"text-muted-foreground",children:"纵览家族发展的时间脉络与迁徙足迹。"})]}),(0,b.jsxs)(e.Tabs,{defaultValue:"timeline",className:"w-full",children:[(0,b.jsxs)(e.TabsList,{className:"mb-6 w-full md:w-auto",children:[(0,b.jsxs)(e.TabsTrigger,{value:"timeline",className:"flex items-center gap-2",children:[(0,b.jsx)(h.Clock,{className:"h-4 w-4"})," 时间轴"]}),(0,b.jsxs)(e.TabsTrigger,{value:"migration",className:"flex items-center gap-2",children:[(0,b.jsx)(i,{className:"h-4 w-4"})," 迁徙图"]})]}),(0,b.jsx)(e.TabsContent,{value:"timeline",children:(0,b.jsx)(f.Card,{className:"border-none shadow-none bg-transparent",children:(0,b.jsx)(f.CardContent,{className:"p-0",children:(0,b.jsxs)("div",{className:"relative border-l-2 border-primary/20 ml-6 md:ml-12 space-y-8 py-4",children:[v.map((a,c)=>(0,b.jsxs)("div",{className:"relative pl-8 md:pl-12 group",children:[(0,b.jsx)("div",{className:`absolute -left-[9px] top-1 h-4 w-4 rounded-full border-2 border-background transition-colors group-hover:scale-110 ${"birth"===a.type?"bg-primary":"bg-neutral-400"}`}),(0,b.jsx)("div",{className:"absolute -left-16 md:-left-24 top-0 w-12 md:w-20 text-right text-sm font-mono text-muted-foreground font-bold",children:a.year}),(0,b.jsx)("div",{className:"bg-card rounded-lg px-4 py-2 transition-all hover:bg-accent/5 border border-border/50",children:(0,b.jsxs)("div",{className:"flex items-center gap-2 flex-wrap text-sm",children:[(0,b.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-full flex-shrink-0 ${"birth"===a.type?"bg-primary/10 text-primary":"bg-neutral-100 text-neutral-500"}`,children:"birth"===a.type?"诞生":"逝世"}),(0,b.jsx)("span",{className:"font-serif font-bold",children:a.member.fullName}),(0,b.jsx)("span",{className:`text-xs px-1.5 py-0.5 rounded ${"MALE"===a.member.gender?"bg-blue-100 text-blue-700":"bg-pink-100 text-pink-700"}`,children:"MALE"===a.member.gender?"男":"女"}),(0,b.jsxs)("span",{className:"text-xs text-muted-foreground",children:["第",a.member.generation,"世"]}),a.member.fatherId&&(0,b.jsxs)("span",{className:"text-xs px-1.5 py-0.5 rounded bg-orange-50 text-orange-700 border border-orange-200",children:["父:",l(a.member.fatherId)?.fullName||"未知"]}),a.member.motherId&&(0,b.jsxs)("span",{className:"text-xs px-1.5 py-0.5 rounded bg-orange-50 text-orange-700 border border-orange-200",children:["母:",l(a.member.motherId)?.fullName||"未知"]}),a.member.spouseIds&&a.member.spouseIds.length>0&&(0,b.jsxs)("span",{className:"text-xs px-1.5 py-0.5 rounded bg-purple-50 text-purple-700 border border-purple-200",children:["配偶:",l(a.member.spouseIds[0])?.fullName||"未知"]}),a.member.childrenIds&&a.member.childrenIds.length>0&&(0,b.jsxs)("span",{className:"text-xs px-1.5 py-0.5 rounded bg-green-50 text-green-700 border border-green-200",children:["子女:",a.member.childrenIds.length,"人"]}),"birth"===a.type&&(a.member.birthPlace||a.member.ancestralHome)&&(0,b.jsxs)("span",{className:"text-xs text-muted-foreground",children:["📍",a.member.birthPlace||a.member.ancestralHome]}),"death"===a.type&&a.member.birthDate&&(0,b.jsxs)("span",{className:"text-xs text-muted-foreground",children:["享年",a.year-Number.parseInt(a.member.birthDate.substring(0,4)),"岁"]}),"death"===a.type&&a.member.burialPlace&&(0,b.jsxs)("span",{className:"text-xs text-muted-foreground",children:["⚰️",a.member.burialPlace]}),(0,b.jsx)("span",{className:"text-xs text-muted-foreground font-mono ml-auto",children:a.date})]})})]},c)),0===v.length&&(0,b.jsx)("div",{className:"pl-8 py-8",children:(0,b.jsx)("p",{className:"text-sm text-foreground font-light tracking-wide",children:"时光留白"})})]})})})}),(0,b.jsx)(e.TabsContent,{value:"migration",children:(0,b.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[(0,b.jsxs)(f.Card,{children:[(0,b.jsx)(f.CardHeader,{children:(0,b.jsx)(f.CardTitle,{className:"font-serif",children:"迁徙记录"})}),(0,b.jsx)(f.CardContent,{children:(0,b.jsx)(g.ScrollArea,{className:"h-[600px] pr-4",children:(0,b.jsxs)("div",{className:"space-y-6",children:[w.map((a,c)=>(0,b.jsxs)("div",{className:"flex flex-col gap-2 p-4 rounded-lg bg-muted/30 border border-border",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground mb-1",children:[(0,b.jsx)("span",{className:"font-mono bg-background px-1 rounded",children:a.year?`${a.year}`:"未知年代"}),(0,b.jsxs)("span",{children:["第 ",a.person.generation," 世"]})]}),(0,b.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,b.jsxs)("div",{className:"flex-1 text-center p-2 bg-background rounded border border-border/50",children:[(0,b.jsx)("div",{className:"text-xs text-muted-foreground mb-1",children:"迁出地"}),(0,b.jsx)("div",{className:"font-bold",children:a.from}),(0,b.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:a.father.fullName})]}),(0,b.jsx)(j.ArrowRight,{className:"text-muted-foreground"}),(0,b.jsxs)("div",{className:"flex-1 text-center p-2 bg-background rounded border border-border/50",children:[(0,b.jsx)("div",{className:"text-xs text-muted-foreground mb-1",children:"迁入地"}),(0,b.jsx)("div",{className:"font-bold text-primary",children:a.to}),(0,b.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:a.person.fullName})]})]})]},c)),0===w.length&&(0,b.jsx)("div",{className:"text-center py-16",children:(0,b.jsx)("p",{className:"text-sm text-foreground font-light tracking-wide",children:"足迹未显"})})]})})})]}),(0,b.jsxs)(f.Card,{className:"bg-gradient-to-br from-primary/5 via-background to-secondary/5 border-primary/20",children:[(0,b.jsx)(f.CardHeader,{children:(0,b.jsx)(f.CardTitle,{className:"font-serif",children:"迁徙路径图"})}),(0,b.jsx)(f.CardContent,{children:(0,b.jsx)("div",{className:"relative h-[600px] overflow-hidden rounded-lg bg-background/50 backdrop-blur border border-border/50",children:t?0===w.length?(0,b.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,b.jsxs)("div",{className:"text-center space-y-4",children:[(0,b.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 text-primary/80",children:(0,b.jsx)(i,{className:"h-16 w-16",strokeWidth:1})}),(0,b.jsx)("p",{className:"text-sm text-foreground font-light tracking-wide",children:"山河未绘"})]})}):(0,b.jsx)(o,{option:x,style:{height:"100%",width:"100%"},opts:{renderer:"canvas"},notMerge:!0,lazyUpdate:!0},"migration-map"):(0,b.jsx)("div",{className:"flex items-center justify-center h-full text-muted-foreground",children:(0,b.jsxs)("div",{className:"text-center",children:[(0,b.jsx)(i,{className:"h-16 w-16 mx-auto mb-4 opacity-20 animate-pulse"}),(0,b.jsx)("p",{children:"加载地图中..."})]})})})})]})]})})]})]})]})}a.s(["default",()=>r],37026)}];
//# sourceMappingURL=Documents_go-new_chinese-family-tree_0e47878f._.js.map