1import{H as fe,q as je,r as p,s as u,t as h,j as e,U as I,K as E,G as U,Y as ae,N as Le,O as Ge,Q as ve,S as Ne}from"./index-CqGqwWKp.js";import{I as F}from"./input-C-dhHZfz.js";import{A as we}from"./arrow-left-BstHR7w2.js";import{R as H}from"./route-COkx8K1a.js";import{T as Ce}from"./trophy-BsR5xVEW.js";import{B as k}from"./book-marked-BjrFGQIL.js";import{S as re}from"./search-X9xeeq-b.js";import{P as ke}from"./plus-CfHDN4Y3.js";import{S as le}from"./star-QJljQarw.js";import{M as W}from"./map-pin-DifvMV2M.js";import{R as X}from"./ruler-DoQFTYtX.js";import{C as ce}from"./clock-Sbq_3bEj.js";import{M as Se}from"./mountain-D3M_wSpQ.js";import{N as $}from"./navigation-DjckAfzu.js";import{P as ze}from"./palette-fgbXAbrT.js";import"./useComposition-CjDhl5L8.js";import"./usePersistFn-DaDCSoQ3.js";const $e="https://files.manuscdn.com/user_upload_by_module/session_file/310519663548498135/CJDmoVdWlGKpaLiD.jpg";async function Ie(t,r){if(t)try{const o=JSON.parse(t).map(d=>{const b=d.ele!=null?` 2 <ele>${d.ele}</ele>`:"";return` <trkpt lat="${d.lat}" lon="${d.lng}">${b} 3 </trkpt>`}).join(` 4`),i=`<?xml version="1.0" encoding="UTF-8"?> 5<gpx version="1.1" creator="HANT Trail Curator"> 6 <trk> 7 <name>${r}</name> 8 <trkseg> 9${o} 10 </trkseg> 11 </trk> 12</gpx>`,g=`HANT_${r.replace(/[^\w\uAC00-\uD7A3]/g,"_")}.gpx`,l=new Blob([i],{type:"application/gpx+xml"}),a=URL.createObjectURL(l),c=document.createElement("a");c.href=a,c.download=g,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(a),h.success("GPX íì¼ì´ ë¤ì´ë¡ëëììµëë¤")}catch{h.error("ë¤ì´ë¡ë ì¤í¨")}}function Ee(t){return t>=1?`${t.toFixed(1)}km`:`${Math.round(t*1e3)}m`}function Me(t,r,n){const o=Number(t);if(!o||o<=0)return"";let i=3.5;n==="mountain"?i=2.5:n==="trail"||n==="forest"?i=3:(n==="road"||n==="flat")&&(i=4);const g=r?Number(r)/100*10:0,l=o/i*60,a=Math.round((l+g)/5)*5,c=Math.floor(a/60),d=a%60;return c===0?`ì½ ${d}ë¶`:d===0?`ì½ ${c}ìê°`:`ì½ ${c}ìê° ${d}ë¶`}function B(t){const r=["","text-gray-500","text-green-600","text-blue-600","text-purple-600","text-amber-500","text-red-600"];return r[Math.min(t,r.length-1)]||"text-gray-500"}function J(t){const r=["","bg-gray-100","bg-green-100","bg-blue-100","bg-purple-100","bg-amber-100","bg-red-100"];return r[Math.min(t,r.length-1)]||"bg-gray-100"}const ie=[{label:"ì ì²´",value:""},{label:"ìì¸",value:"ìì¸"},{label:"경기",value:"경기"},{label:"ì¸ì²",value:"ì¸ì²"},{label:"ê°ì",value:"ê°ì"},{label:"ì¶©ë¶",value:"ì¶©ë¶"},{label:"ì¶©ë¨",value:"ì¶©ë¨"},{label:"ëì ",value:"ëì "},{label:"ì¸ì¢ ",value:"ì¸ì¢ "},{label:"ì ë¶",value:"ì ë¶"},{label:"ì ë¨",value:"ì ë¨"},{label:"ê´ì£¼",value:"ê´ì£¼"},{label:"ê²½ë¶",value:"ê²½ë¶"},{label:"ê²½ë¨",value:"ê²½ë¨"},{label:"ë구",value:"ë구"},{label:"ì¸ì°",value:"ì¸ì°"},{label:"ë¶ì°",value:"ë¶ì°"},{label:"ì 주",value:"ì 주"}],De=[{value:"#2d6a4f",label:"ì² ì´ë¡"},{value:"#1b4332",label:"ì§ì ì´ë¡"},{value:"#1d3557",label:"ê¹ì íë"},{value:"#457b9d",label:"íë íë"},{value:"#6d4c41",label:"í ê°ì"},{value:"#4a4e69",label:"ë³´ë¼ íì"},{value:"#b5451b",label:"ë¶ì í ì"},{value:"#3d405b",label:"ì´ëì´ ë¨ì"}];function Pe({item:t,isAuthenticated:r,onFollow:n,onDownload:o,isFollowPending:i,isMineTab:g,onUnshare:l}){return e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:145",className:"bg-card border border-border rounded-2xl overflow-hidden hover:border-green-300 hover:shadow-sm transition-all",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:146",className:"p-4 pb-3",children:[t.curator&&e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:148",className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:149",className:"w-6 h-6 rounded-full bg-muted flex items-center justify-center flex-shrink-0",children:e.jsx(E,{"data-loc":"client/src/pages/GpxLibrary.tsx:150",size:12,className:"text-muted-foreground"})}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:152",className:"text-xs font-bold text-foreground",children:t.curator.nickname||"ìµëª "}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:153",className:`text-[10px] font-bold px-1.5 py-0.5 rounded-full ${J(t.curator.level)} ${B(t.curator.level)}`,children:t.curator.levelName})]}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:158",className:"flex items-center gap-2 mb-2",children:[t.courseId&&e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:160",className:"text-[10px] font-bold px-1.5 py-0.5 rounded bg-primary text-primary-foreground flex-shrink-0",children:[t.courseId,"구ê°"]}),e.jsx("h3",{"data-loc":"client/src/pages/GpxLibrary.tsx:164",className:"font-semibold text-sm",children:t.title})]}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:166",className:"flex flex-wrap items-center gap-x-3 gap-y-1 mb-2",children:[t.region&&e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:168",className:"flex items-center gap-1 text-xs text-blue-600 font-medium",children:[e.jsx(W,{"data-loc":"client/src/pages/GpxLibrary.tsx:169",size:10,
12className:"text-blue-400"}),t.region]}),e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:173",className:"flex items-center gap-1 text-xs font-bold text-green-600",children:[e.jsx(X,{"data-loc":"client/src/pages/GpxLibrary.tsx:174",size:11}),Ee(Number(t.distanceKm))]}),(()=>{const a=Number(t.distanceKm),c=t.durationSeconds??0,d=c>0&&a>0?a/c*3600:0;if(c>0&&d<15){const y=Math.floor(c/3600),x=Math.floor(c%3600/60),M=y===0?`${x}ë¶`:x===0?`${y}ìê°`:`${y}ìê° ${x}ë¶`;return e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:186",className:"flex items-center gap-1 text-xs text-muted-foreground",children:[e.jsx(ce,{"data-loc":"client/src/pages/GpxLibrary.tsx:187",size:10}),M]})}const b=Me(a,t.totalAscent?Number(t.totalAscent):null,t.trailTag);return b?e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:194",className:"flex items-center gap-1 text-xs text-muted-foreground",children:[e.jsx(ce,{"data-loc":"client/src/pages/GpxLibrary.tsx:195",size:10}),b]}):null})()]}),t.totalAscent&&Number(t.totalAscent)>0||t.maxElevation?e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:202",className:"flex flex-wrap items-center gap-x-3 gap-y-1 mb-2",children:[t.totalAscent&&Number(t.totalAscent)>0&&e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:204",className:"flex items-center gap-1 text-xs text-orange-600",children:[e.jsx(Se,{"data-loc":"client/src/pages/GpxLibrary.tsx:205",size:10}),"ì´íëê³ ë +",Math.round(Number(t.totalAscent)),"m"]}),t.maxElevation&&e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:210",className:"flex items-center gap-1 text-xs text-muted-foreground",children:["ìµê³ í´ë° ",Math.round(Number(t.maxElevation)),"m"]}),t.minElevation&&e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:215",className:"flex items-center gap-1 text-xs text-muted-foreground",children:["ìµì í´ë° ",Math.round(Number(t.minElevation)),"m"]})]}):null,t.showComment===1&&t.comment&&e.jsx("p",{"data-loc":"client/src/pages/GpxLibrary.tsx:222",className:"text-xs text-muted-foreground line-clamp-2 mb-2",children:t.comment}),(t.followWalkCount>0||t.viewCount>0)&&e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:225",className:"flex items-center gap-3 mb-1",children:[t.followWalkCount>0&&e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:227",className:"flex items-center gap-1",children:[e.jsx($,{"data-loc":"client/src/pages/GpxLibrary.tsx:228",size:11,className:"text-green-600"}),e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:229",className:"text-xs text-green-700 font-semibold",children:[t.followWalkCount,"ëª
ë°ë¼ê±¸ì"]})]}),t.viewCount>0&&e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:233",className:"flex items-center gap-1",children:[e.jsx(I,{"data-loc":"client/src/pages/GpxLibrary.tsx:234",size:11,className:"text-amber-500"}),e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:235",className:"text-xs text-amber-600",children:["ê´ì¬ ",t.viewCount,"ëª
"]})]})]}),t.collections&&t.collections.length>0&&e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:241",className:"flex flex-wrap gap-1 mt-1",children:t.collections.map(a=>e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:243",className:"inline-flex items-center gap-0.5 text-[10px] font-bold px-1.5 py-0.5 rounded-full bg-amber-100 text-amber-700 border border-amber-200",children:[e.jsx(k,{"data-loc":"client/src/pages/GpxLibrary.tsx:244",size:9}),a.collectionTitle]},a.collectionId))})]}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:251",className:"flex border-t border-border",children:g?e.jsxs(e.Fragment,{children:[e.jsxs("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:254",className:"flex-1 flex items-center justify-center gap-1.5 py-3 text-sm font-bold text-white bg-green-600 hover:bg-green-700 active:bg-green-800 transition-colors",disabled:i,onClick:a=>{a.stopPropagation(),n(t.id)},children:[e.jsx($,{"data-loc":"client/src/pages/GpxLibrary.tsx:259",size:15}),i?"ì¤ë¹ ì¤...":"ë°ë¼ê±·ê¸° ìì"]}),e.jsxs("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:262",className:"flex items-center justify-center gap-1 px-4 py-3 text-sm font-semibold text-white bg-blue-500 hover:bg-blue-600 transition-colors border-l border-border",onClick:a=>{a.stopPropagation(),o(t.id,t.title)},children:[e.jsx(ae,{"data-loc":"client/src/pages/GpxLibrary.tsx:266",size:15}),"GPX"]}),e.jsx("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:269",className:"flex items-center justify-center gap-1 px-4 py-3 text-xs font-bold text-red-600 bg-red-50 hover:bg-red-100 transition-colors border-l border-border",onClick:a=>{a.stopPropagation(),l?.(t.id)},children:"ì² í"})]}):r?e.jsxs(e.Fragment,{children:[e.jsxs("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:278",className:"flex-1 flex items-center justify-center gap-1.5 py-3 text-sm font-bold text-white bg-green-600 hover:bg-green-700 active:bg-green-800 transition-colors",disabled:i,onClick:a=>{a.stopPropagation(),n(t.id)},children:[e.jsx($,{"data-loc":"client/src/pages/GpxLibrary.tsx:283",size:15}),i?"ì¤ë¹ ì¤...":"ë°ë¼ê±·ê¸° ìì"]}),e.jsxs("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:286",className:"flex items-center justify-center gap-1.5 px-4 py-3 text-sm font-semibold text-white bg-blue-500 hover:bg-blue-600 active:bg-blue-700 transition-colors border-l border-border",onClick:a=>{a.stopPropagation(),o(t.id,t.title)},children:[e.jsx(ae,{"data-loc":"client/src/pages/GpxLibrary.tsx:290",size:15}),"GPX"]})]}):e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:295",className:"flex-1 flex items-center justify-center gap-1.5 py-3 text-sm text-muted-foreground bg-muted/50",children:[e.jsx($,{"data-loc":"client/src/pages/GpxLibrary.tsx:296",size:15}),"ë¡ê·¸ì¸ í ë°ë¼ê±·ê¸° ê°ë¥"]})})]})}function _e({col:t,onOpen:r}){const n=t.coverColor||"#2d6a4f",o=t.authorNickname||t.authorName||"ìµëª
",i=t.curatorLevel??1,g=t.curatorLevelName??"ìì¹ íë ì´í°",l=!!t.isPremium;return l&&!!t.premiumCoverImageUrl?e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:323",className:"rounded-2xl overflow-hidden cursor-pointer hover:shadow-lg transition-all active:scale-[0.98] ring-2 ring-amber-400",onClick:()=>r(t.id),children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:328",className:"relative",style:{minHeight:110},children:[e.jsx("img",{"data-loc":"client/src/pages/GpxLibrary.tsx:329",src:t.premiumCoverImageUrl,alt:t.title,className:"absolute inset-0 w-full h-full object-cover",onError:c=>{c.target.style.display="none"}}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:336",className:"absolute inset-0",style:{background:`linear-gradient(160deg, rgba(0,0,0,0.35) 0%, ${n}dd 100%)`}}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:338",className:"absolute left-0 top-0 bottom-0 w-3 flex flex-col justify-around py-2",children:[...Array(5)].map((c,d)=>e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:340",className:"w-3 h-1.5 rounded-r-full bg-white/20"},d))}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:344",className:"relative px-5 pt-4 pb-4 pl-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:345",className:"flex items-start justify-between gap-2 mb-1.5",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:346",className:"flex-1 min-w-0",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:347",className:"flex items-center gap-1 bg-amber-400/90 text-amber-900 text-[10px] font-black px-2 py-0.5 rounded-full w-fit mb-1.5",children:[e.jsx(le,{"data-loc":"client/src/pages/GpxLibrary.tsx:348",size:9,fill:"
12currentColor"}),"PREMIUM"]}),e.jsx("h3",{"data-loc":"client/src/pages/GpxLibrary.tsx:351",className:"text-white font-black text-base leading-tight line-clamp-2",style:{textShadow:"0 1px 3px rgba(0,0,0,0.5)"},children:t.title})]}),e.jsx(k,{"data-loc":"client/src/pages/GpxLibrary.tsx:353",size:18,className:"text-white/70 flex-shrink-0 mt-0.5"})]}),t.description&&e.jsx("p",{"data-loc":"client/src/pages/GpxLibrary.tsx:356",className:"text-white/85 text-xs line-clamp-1 mb-1.5",style:{textShadow:"0 1px 2px rgba(0,0,0,0.4)"},children:t.description}),t.region&&e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:359",className:"flex items-center gap-1 text-white/80 text-xs mb-1",children:[e.jsx(W,{"data-loc":"client/src/pages/GpxLibrary.tsx:360",size:10}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:361",children:t.region})]}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:364",className:"flex items-center gap-3 text-white/80 text-xs",children:[e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:365",className:"flex items-center gap-1",children:[e.jsx(H,{"data-loc":"client/src/pages/GpxLibrary.tsx:366",size:10}),e.jsx("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:367",className:"text-white",children:t.itemCount}),"ê° ë£¨í¸"]}),t.totalDistanceKm>0&&e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:370",className:"flex items-center gap-1",children:[e.jsx(X,{"data-loc":"client/src/pages/GpxLibrary.tsx:371",size:10}),"ì´ ",e.jsxs("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:372",className:"text-white",children:[Number(t.totalDistanceKm).toFixed(1),"km"]})]})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:379",className:"bg-card px-5 py-2.5 flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:380",className:"flex items-center gap-2",children:[e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:381",className:"w-6 h-6 rounded-full bg-muted flex items-center justify-center flex-shrink-0",children:e.jsx(E,{"data-loc":"client/src/pages/GpxLibrary.tsx:382",size:12,className:"text-muted-foreground"})}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:384",className:"text-xs font-bold text-foreground",children:o}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:385",className:`text-[10px] font-bold px-1.5 py-0.5 rounded-full ${J(i)} ${B(i)}`,children:g})]}),t.viewCount>0&&e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:390",className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(I,{"data-loc":"client/src/pages/GpxLibrary.tsx:391",size:10}),t.viewCount]})]})]}):e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:401",className:`rounded-2xl overflow-hidden cursor-pointer hover:shadow-md transition-all active:scale-[0.98] ${l?"ring-2 ring-amber-400":""}`,onClick:()=>r(t.id),style:{border:l?void 0:`2px solid ${n}22`},children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:407",className:"relative px-5 pt-5 pb-4",style:{background:`linear-gradient(135deg, ${n} 0%, ${n}cc 100%)`,minHeight:100},children:[e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:415",className:"absolute left-0 top-0 bottom-0 w-3 flex flex-col justify-around py-2",children:[...Array(5)].map((c,d)=>e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:417",className:"w-3 h-1.5 rounded-r-full bg-white/20"},d))}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:420",className:"pl-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:421",className:"flex items-start justify-between gap-2 mb-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:422",className:"flex-1 min-w-0",children:[l&&e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:424",className:"flex items-center gap-1 bg-amber-400/90 text-amber-900 text-[10px] font-black px-2 py-0.5 rounded-full w-fit mb-1.5",children:[e.jsx(le,{"data-loc":"client/src/pages/GpxLibrary.tsx:425",size:9,fill:"currentColor"}),"PREMIUM"]}),e.jsx("h3",{"data-loc":"client/src/pages/GpxLibrary.tsx:429",className:"text-white font-black text-base leading-tight line-clamp-2",children:t.title})]}),e.jsx(k,{"data-loc":"client/src/pages/GpxLibrary.tsx:431",size:18,className:"text-white/60 flex-shrink-0 mt-0.5"})]}),t.description&&e.jsx("p",{"data-loc":"client/src/pages/GpxLibrary.tsx:434",className:"text-white/75 text-xs line-clamp-2 mb-2",children:t.description}),t.region&&e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:438",className:"flex items-center gap-1 text-white/70 text-xs mb-1",children:[e.jsx(W,{"data-loc":"client/src/pages/GpxLibrary.tsx:439",size:10}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:440",children:t.regi
12on})]}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:444",className:"flex items-center gap-3 text-white/80 text-xs",children:[e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:445",className:"flex items-center gap-1",children:[e.jsx(H,{"data-loc":"client/src/pages/GpxLibrary.tsx:446",size:10}),e.jsx("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:447",className:"text-white",children:t.itemCount}),"ê° ë£¨í¸"]}),t.totalDistanceKm>0&&e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:450",className:"flex items-center gap-1",children:[e.jsx(X,{"data-loc":"client/src/pages/GpxLibrary.tsx:451",size:10}),"ì´ ",e.jsxs("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:452",className:"text-white",children:[Number(t.totalDistanceKm).toFixed(1),"km"]})]})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:460",className:"bg-card px-5 py-3 flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:461",className:"flex items-center gap-2",children:[e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:462",className:"w-6 h-6 rounded-full bg-muted flex items-center justify-center flex-shrink-0",children:e.jsx(E,{"data-loc":"client/src/pages/GpxLibrary.tsx:463",size:12,className:"text-muted-foreground"})}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:465",className:"text-xs font-bold text-foreground",children:o}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:466",className:`text-[10px] font-bold px-1.5 py-0.5 rounded-full ${J(i)} ${B(i)}`,children:g})]}),t.viewCount>0&&e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:471",className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(I,{"data-loc":"client/src/pages/GpxLibrary.tsx:472",size:10}),t.viewCount]})]})]})}function Ae({open:t,onClose:r,onCreated:n}){const[o,i]=p.useState(""),[g,l]=p.useState(""),[a,c]=p.useState("#2d6a4f"),d=u.useUtils(),b=u.collection.create.useMutation({onSuccess:x=>{h.success("컬ë ì
ì´ ë§ë¤ì´ì¡ìµëë¤!"),d.collection.getPublicList.invalidate(),d.collection.getMine.invalidate(),i(""),l(""),c("#2d6a4f"),n(x.id)},onError:()=>h.error("컬ë ì
ìì±ì ì¤í¨íìµëë¤.")}),y=()=>{if(!o.trim()){h.error("ì 목ì ì
ë ¥í´ì£¼ì¸ì.");return}b.mutate({title:o.trim(),description:g.trim()||void 0,coverColor:a,isPublic:!0})};return e.jsx(Le,{"data-loc":"client/src/pages/GpxLibrary.tsx:513",open:t,onOpenChange:x=>!x&&r(),children:e.jsxs(Ge,{"data-loc":"client/src/pages/GpxLibrary.tsx:514",className:"max-w-sm mx-auto",children:[e.jsx(ve,{"data-loc":"client/src/pages/GpxLibrary.tsx:515",children:e.jsxs(Ne,{"data-loc":"client/src/pages/GpxLibrary.tsx:516",className:"flex items-center gap-2",children:[e.jsx(U,{"data-loc":"client/src/pages/GpxLibrary.tsx:517",size:18,className:"text-green-600"}),"ì 컬ë ì
ë§ë¤ê¸°"]})}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:521",className:"space-y-4 pt-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:522",children:[e.jsx("label",{"data-loc":"client/src/pages/GpxLibrary.tsx:523",className:"text-sm font-semibold text-foreground mb-1.5 block",children:"컬ë ì
ì 목 *"}),e.jsx(F,{"data-loc":"client/src/pages/GpxLibrary.tsx:524",value:o,onChange:x=>i(x.target.value),placeholder:"ì: ê°ìë ëë 길 모ì",maxLength:128})]}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:531",children:[e.jsx("label",{"data-loc":"client/src/pages/GpxLibrary.tsx:532",className:"text-sm font-semibold text-foreground mb-1.5 block",children:"ìê° (ì í)"}),e.jsx("textarea",{"data-loc":"client/src/pages/GpxLibrary.tsx:533",className:"w-full border border-border rounded-lg px-3 py-2 text-sm bg-background text-foreground resize-none focus:outline-none focus:ring-2 focus:ring-green-500",value:g,onChange:x=>l(x.target.value),placeholder:"ì´ ì»¬ë ì
ì ëí´ ê°ë¨í ìê°í´ì£¼ì¸ì...",rows:3,maxLength:500})]}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:542",children:[e.jsxs("label",{"data-loc":"client/src/pages/GpxLibrary.tsx:543",className:"text-sm font-semibold text-foreground mb-2 flex items-center gap-1.5",children:[e.jsx(ze,{"data-loc":"client/src/pages/GpxLibrary.tsx:544",size:14,className:"text-muted-foreground"}),"ì»¤ë² ìì"]}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:547",className:"flex flex-wrap gap-2",children:De.map(x=>e.jsx("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:549",type:"button",className:`w-8 h-8 rounded-lg transition-all ${a===x.value?"ring-2 ring-offset-2 ring-foreground scale-110":"hover:scale-105"}`,style:{backgroundColor:x.value},title:x.label,onClick:()=>c(x.value)},x.value))}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:560",className:"mt-3 rounded-xl overflow-hidden",style:{border:`2px solid ${a}33`},children:e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:561",className:"px-4 py-3 flex items-center gap-2",style:{background:`linear-gradient(135deg, ${a} 0%, ${a}cc 100%)`},children:[e.jsx(k,{"data-loc":"client/src/pages/GpxLibrary.tsx:562",size:14,className:"text-white/70"}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:563",className:"text-white font-bold text-sm truncate",children:o||"컬ë ì
ì 목"})]})})]}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:567",className:"flex gap-2 pt-1",children:[e.jsx("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:568",className:"flex-1 py-2.5 rounded-xl border border-border text-sm font-semibold text-muted-foreground hover:bg-muted transition-colors",onClick:r,children:"ì·¨ì"}),e.jsx("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:572",className:"flex-1 py-2.5 rounded-xl bg-green-600 text-white text-sm font-bold hover:bg-green-700 transition-colors disabled:opacity-50",onClick:y,disabled:b.isPending||!o.trim(),children:b.isPending?"ë§ëë ì¤...":"컬ë ì
ë§ë¤ê¸°"})]})]})]})})}const O="hant_gpx_library_cache",T="hant_my_shared_gpx_cache",K="hant_collections_cache",Re=300*1e3;function L(t){try{const r=localStorage.getItem(t);if(!r)return;const{data:n,ts:o}=JSON.parse(r);return Date.now()-o>Re?void 0:n}catch{return}}function at(){const[,t]=fe(),{isAuthenticated:r}=je(),[n,o]=p.useState(""),[i,g]=p.useState(""),[l,a]=p.useState("all"),[c,d]=p.useState(""),[b,y]=p.useState(""),[x,M]=p.useState(""),[G,ne]=p.useState(""),[S,D]=p.useState(null),[oe,P]=p.useState(!1),[j,Q]=p.useState("routes"),{data:z,isLoading:xe}=u.curator.getLibrary.useQuery({trailTag:void 0},{placeholderData:()=>L(O),staleTime:0}),{data:v,isLoading:de}=u.curator.getMyShared.useQuery(void 0,{enabled:r,placeholderData:()=>L(T),staleTime:0}),{data:f}=u.curator.getMyScore.useQuery(void 0,{enabled:r,staleTime:600*1e3}),{data:N,isLoading:Y}=u.collection.getPublicList.useQuery({limit:50,offset:0},{enabled:l==="collection",placeholderData:()=>L(K),staleTime:0}),{data:w,error:V}=u.curator.getSharedGpx.useQuery({id:S},{enabled:!!S});p.useEffect(()=>{S&&(w&&(w?.gpxPoints?Ie(w.gpxPoints,w.title||"루í¸"):h.error("GPX ë°ì´í°ê° ììµëë¤"),D(null)),V&&(h.error("ë¤ì´ë¡ë ì¤í¨"),D(null)))},[w,V,S]);const _=s=>({id:s.id,userId:s.userId,title:s.title,comment:s.comment,showComment:s.showComment,distanceKm:String(s.distanceKm),totalAscent:s.totalAscent?String(s.totalAscent):null,maxElevation:s.maxElevation?String(s.maxElevation):null,minElevation:s.minElevation?String(s.minElevation):null,durationSeconds:s.durationSeconds??null,durationRange:s.durationRange??null,trailTag:s.trailTag,courseId:s.courseId,courseName:s.courseName,gpxPoints:null,followWalkCount:s.followWalkCount,viewCount:s.viewCount??0,region:s.region??null,photos:[],curator:s.nickname?{id:s.userId,nickname:s.nickname,level:s.curatorLevel??1,levelName:s.curatorLevelName??"ìì¹ íë ì´í°",totalScore:0}:null}),A=(z??[]).map(_),q=(v??[]).filter(s=>
12s.isActive===1&&s.collectionOnly!==1).map(_),Z=(v??[]).filter(s=>s.isActive===1&&s.collectionOnly===1).map(_),ee=(l==="all"?A:j==="routes"?q:Z).filter(s=>{const m=!n||s.title.includes(n)||(s.courseName??"").includes(n),R=!c||(s.region??"").includes(c);return m&&R}),pe=!!L(O),ge=!!L(T),te=l==="all"?xe&&!pe:de&&!ge,se=(N??[]).filter(s=>{const m=!b||(s.title??"").includes(b)||(s.description??"").includes(b),R=!G||(s.region??"").includes(G);return m&&R}),be=A.length,me=A.reduce((s,m)=>s+m.followWalkCount,0);N?.length,p.useEffect(()=>{z&&localStorage.setItem(O,JSON.stringify({data:z,ts:Date.now()}))},[z]),p.useEffect(()=>{v&&localStorage.setItem(T,JSON.stringify({data:v,ts:Date.now()}))},[v]),p.useEffect(()=>{N&&localStorage.setItem(K,JSON.stringify({data:N,ts:Date.now()}))},[N]);const ue=s=>{t(`/track?sharedGpxId=${s}`)},he=(s,m)=>{D(s)},C=u.useUtils(),ye=u.curator.unshareGpx.useMutation({onSuccess:()=>{h.success("ê³µê°ê° ì² íëììµëë¤. ë´ ê¸°ë¡ì ê·¸ëë¡ ì ì§ë©ëë¤."),C.curator.getMyShared.invalidate(),C.curator.getLibrary.invalidate(),C.curator.getMyScore.invalidate(),C.collection.getPublicList.invalidate(),C.collection.getMine.invalidate()},onError:()=>h.error("ì² í ì¤ ì¤ë¥ê° ë°ìíìµëë¤.")});return e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:744",className:"min-h-screen bg-background pb-20",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:746",className:"relative overflow-hidden",style:{minHeight:260},children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:747",className:"absolute inset-0",children:[e.jsx("img",{"data-loc":"client/src/pages/GpxLibrary.tsx:748",src:$e,alt:"í¸ë ì¼",className:"w-full h-full object-cover"}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:749",className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(5,25,12,0.55) 0%, rgba(8,35,18,0.60) 40%, rgba(5,25,12,0.92) 100%)"}})]}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:753",className:"relative px-4 pt-4",children:e.jsx("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:754",onClick:()=>t(-1),className:"w-9 h-9 rounded-full bg-white/20 flex items-center justify-center active:bg-white/30",children:e.jsx(we,{"data-loc":"client/src/pages/GpxLibrary.tsx:758",size:18,className:"text-white"})})}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:761",className:"relative px-4 pt-2 pb-5",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:762",className:"flex items-center gap-2 mb-2",children:[e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:763",className:"h-px flex-1 bg-white/20"}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:764",className:"text-white/60 text-[10px] font-semibold tracking-widest uppercase",children:"Trail Curator"}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:765",className:"h-px flex-1 bg-white/20"})]}),e.jsx("h1",{"data-loc":"client/src/pages/GpxLibrary.tsx:767",className:"text-2xl font-black text-white mb-1 tracking-tight",children:"í¸ë ì¼ íë ì´í°"}),e.jsx("p",{"data-loc":"client/src/pages/GpxLibrary.tsx:768",className:"text-white/75 text-sm mb-4",children:"í¨ê» ê±·ë 길, ìë¡ì ë°ìêµì ë°ë¼"}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:769",className:"flex gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:770",className:"flex items-center gap-1.5 text-white/85 text-xs",children:[e.jsx(H,{"data-loc":"client/src/pages/GpxLibrary.tsx:771",size:12,className:"text-green-300"}),e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:772",children:["ê³µê° ë£¨í¸ ",e.jsxs("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:772",className:"text-white",children:[be,"ê°"]})]})]}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:774",className:"w-px h-3 bg-white/30 self-center"}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:775",className:"flex items-center gap-1.5 text-white/85 text-xs",children:[e.jsx(I,{"data-loc":"client/src/pages/GpxLibrary.tsx:776",size:12,className:"text-green-300"}),e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:777",children:["ë°ë¼ê±·ê¸° ",e.jsxs("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:777",className:"text-white",children:[me,"í"]})]})]}),f&&e.jsxs(e.Fragment,{children:[e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:781",className:"w-px h-3 bg-white/30 self-center"}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:782",className:"flex items-center gap-1 text-xs font-bold px-2 py-0.5 rounded-full bg-white/20 text-white",children:[e.jsx(Ce,{"data-loc":"client/src/pages/GpxLibrary.tsx:783",size:11}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:784",children:f.levelName})]})]})]})]})]}),r&&f&&e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:794",className:"mx-4 mt-4 bg-gradient-to-r from-green-600 to-emerald-700 rounded-2xl p-4 shadow-md",children:e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:795",className:"flex items-center gap-3",children:[e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:796",className:"w-11 h-11 rounded-full bg-white/20 flex items-center justify-center",children:e.jsx(E,{"data-loc":"client/src/pages/GpxLibrary.tsx:797",size:20,className:"text-white"})}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:799",className:"flex-1",children:[e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:800",className:"flex items-center gap-2 mb-0.5",children:e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:801",className:"text-white font-bold text-sm",children:f.levelName})}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:803",className:"flex items-center gap-3 text-xs text-white/80",children:[e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:804",children:["ì´ì ",e.jsxs("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:804",className:"text-white",children:[f.totalScore,"ì "]})]}),e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:805",children:["ê³µê° ",e.jsxs("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:805",className:"text-white",children:[f.sharedCount,"ê°"]})]}),e.jsxs("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:806",children:["ë°ë¼ê±·ê¸° ",e.jsxs("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:806",className:"text-white",children:[f.totalFollowWalks,"í"]})]})]})]})]})}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:814",className:"flex gap-2 px-4 mt-4",children:[e.jsx("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:815",className:`flex-1 py-2 rounded-xl text-sm font-semibold transition-colors ${l==="all"?"bg-green-600 text-white":"bg-muted text-muted-foreground"}`,onClick:()=>a("all"),children:"ê³µì 루í¸"}),e.jsxs("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:821",className:`flex-1 py-2 rounded-xl text-sm font-semibold transition-colors flex items-center justify-center gap-1 ${l==="collection"?"bg-green-600 text-white":"bg-muted text-muted-foreground"}`,onClick:()=>a("collection"),children:[e.jsx(k,{"data-loc":"client/src/pages/GpxLibrary.tsx:825",size:14}),"컬ë ì
"]}),r&&e.jsx("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:829",className:`flex-1 py-2 rounded-xl text-sm font-semibold transition-colors ${l==="mine"?"bg-green-600 text-white":"bg-muted text-muted-foreground"}`,onClick:()=>a("mine"),children:"ë´ê° ê³µê°í"})]}),l==="collection"&&e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:840",className:"px-4 mt-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:842",className:"space-y-2 mb-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:843",className:"flex gap-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:844",className:"relative flex-1",children:[e.jsx(re,{"data-loc":"client/src/pages/GpxLibrary.tsx:845",size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e.jsx(F,{"data-loc":"client/src/pages/GpxLibrary.tsx:846",value:x,onChange:s=>M(s.target.value),onKeyDown:s=>s.key==="Enter"&&y(x),placeholder:"ì½ë ì
ì 목, ì¤ëª
ì¼ë¡ ê²ì...",className:"pl-9"})]}),e.jsx("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:854",className:"px-4 py-2 rounded-xl bg-green-600 text-white text-sm font-semibold flex-shrink-0",onClick:()=>y(x),children:"ê²ì"})]}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:859",className:"flex gap-2 overflow-x-auto pb-1 scrollbar-none",children:ie.map(s=>e.jsx("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:861",className:`flex-shrink-0 px-3 py-1.5 rounded-full text-xs font-semibold transition-colors ${G===s.value?"bg-green-600 text-white":"bg-muted text-muted-foreground"}`,onClick:()=>
12ne(G===s.value?"":s.value),children:s.label},s.value))})]}),r&&e.jsxs("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:874",className:"w-full mb-4 py-3 rounded-2xl border-2 border-dashed border-green-400 text-green-600 font-bold text-sm flex items-center justify-center gap-2 hover:bg-green-50 dark:hover:bg-green-950/30 transition-colors",onClick:()=>P(!0),children:[e.jsx(ke,{"data-loc":"client/src/pages/GpxLibrary.tsx:878",size:18}),"ì ì½ë ì
ë§ë¤ê¸°"]}),Y&&!L(K)&&e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:884",className:"text-center py-12 text-muted-foreground text-sm",children:"ë¶ë¬ì¤ë ì¤..."}),!Y&&se.length===0&&e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:888",className:"text-center py-16",children:[e.jsx(U,{"data-loc":"client/src/pages/GpxLibrary.tsx:889",size:40,className:"mx-auto text-muted-foreground/40 mb-3"}),e.jsx("p",{"data-loc":"client/src/pages/GpxLibrary.tsx:890",className:"text-muted-foreground text-sm",children:"ì¡°ê±´ì ë§ë ì½ë ì
ì´ ììµëë¤."}),r&&!b&&!G&&e.jsx("p",{"data-loc":"client/src/pages/GpxLibrary.tsx:892",className:"text-muted-foreground/70 text-xs mt-1",children:"첫 ë²ì§¸ ì½ë ì
ì ë§ë¤ì´ ë³´ì¸ì!"})]}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:897",className:"space-y-3",children:se.map(s=>e.jsx(_e,{"data-loc":"client/src/pages/GpxLibrary.tsx:899",col:s,onOpen:m=>t(`/collection/${m}`)},s.id))}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:908",className:"mt-8 mb-4 rounded-2xl border border-border bg-muted/30 p-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:909",className:"flex items-center gap-2 mb-2",children:[e.jsx(U,{"data-loc":"client/src/pages/GpxLibrary.tsx:910",size:15,className:"text-green-600 flex-shrink-0"}),e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:911",className:"text-sm font-bold text-foreground",children:"컬ë ì
ì´ë?"})]}),e.jsx("p",{"data-loc":"client/src/pages/GpxLibrary.tsx:913",className:"text-xs text-muted-foreground leading-relaxed mb-3",children:"ë´ê° ì§ì 걸ì 루í¸ë¤ì í
ë§ë³ë¡ ë¬¶ì´ ìê°íë ê³µê°ì
ëë¤. âì¤ì
ì° ë¥ì 3ì¼ ì½ì¤â, âìì¸ ê·¼êµ ë¹ì¼ ì°í 5ì âì²ë¼ ëë§ì íë ì´ì
ì¼ë¡ ë¤ë¥¸ ì¬ëë¤ìê² ê¸¸ì ìë´í´ ë³´ì¸ì."}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:918",className:"border-t border-border pt-3",children:[e.jsx("p",{"data-loc":"client/src/pages/GpxLibrary.tsx:919",className:"text-xs font-semibold text-foreground mb-1.5",children:"ë§ëë ë°©ë²"}),e.jsxs("ol",{"data-loc":"client/src/pages/GpxLibrary.tsx:920",className:"text-xs text-muted-foreground space-y-1 leading-relaxed",children:[e.jsxs("li",{"data-loc":"client/src/pages/GpxLibrary.tsx:921",children:[e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:921",className:"text-green-600 font-bold",children:"â "})," ì ",e.jsx("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:921",className:"text-foreground",children:"ì ì½ë ì
ë§ë¤ê¸°"})," ë²í¼ì¼ë¡ ì 목·ì¤ëª
Â·ì»¤ë² ììì ì¤ì í©ëë¤."]}),e.jsxs("li",{"data-loc":"client/src/pages/GpxLibrary.tsx:922",children:[e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:922",className:"text-green-600 font-bold",children:"â¡"})," ì½ë ì
ìì¸ìì ",e.jsx("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:922",className:"text-foreground",children:"ë£¨í¸ ì¶ê°"}),"를 ë르면 ë´ ê±·ê¸° ê¸°ë¡ ëª©ë¡ì´ íìë©ëë¤."]}),e.jsxs("li",{"data-loc":"client/src/pages/GpxLibrary.tsx:923",children:[e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:923",className:"text-green-600 font-bold",children:"â¢"})," 기ë¡ì ì ííë©´ ì½ë ì
ì ì¶ê°ëë©° ",e.jsx("strong",{"data-loc":"client/src/pages/GpxLibrary.tsx:923",className:"text-foreground",children:"ê³µì 루í¸ì ìë ë±ë¡"}),"ë©ëë¤. (ì´ë¯¸ ê³µì ì¤ì¸ 기ë¡ì ê·¸ëë¡ ì°ê²°)"]}),e.jsxs("li",{"data-loc":"client/src/pages/GpxLibrary.tsx:924",children:[e.jsx("span",{"data-loc":"client/src/pages/GpxLibrary.tsx:924",className:"text-green-600 font-bold",children:"â£"})," ìì±ë ì½ë ì
ì 모ë ì¬ëìê² ê³µê°ëì´ í¨ê» ë°ë¼ê±¸ì ì ììµëë¤."]})]})]})]})]}),l!=="collection"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:935",className:"px-4 mt-3 space-y-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:937",className:"flex gap-2",children:[e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:938",className:"relative flex-1",children:[e.jsx(re,{"data-loc":"client/src/pages/GpxLibrary.tsx:939",size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e.jsx(F,{"data-loc":"client/src/pages/GpxLibrary.tsx:940",value:i,onChange:s=>g(s.target.value),onKeyDown:s=>s.key==="Enter"&&o(i),placeholder:"ë£¨í¸ ì 목, 구ê°ëª
ì¼ë¡ ê²ì...",className:"pl-9"})]}),e.jsx("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:948",className:"px-4 py-2 rounded-xl bg-green-600 text-white text-sm font-semibold flex-shrink-0",onClick:()=>o(i),children:"ê²ì"})]}),e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:954",className:"flex gap-2 overflow-x-auto pb-1 scrollbar-none",children:ie.map(s=>e.jsx("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:956",className:`flex-shrink-0 px-3 py-1.5 rounded-full text-xs font-semibold transition-colors ${c===s.value?"bg-green-600 text-white":"bg-muted text-muted-foreground"}`,onClick:()=>
12d(c===s.value?"":s.value),children:s.label},s.value))})]}),l==="mine"&&e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:969",className:"px-4 mt-3 flex gap-2",children:[e.jsxs("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:970",className:`flex-1 py-2 rounded-xl text-sm font-semibold transition-colors ${j==="routes"?"bg-green-600 text-white":"bg-muted text-muted-foreground"}`,onClick:()=>Q("routes"),children:["ê³µì ë£¨í¸ (",q.length,")"]}),e.jsxs("button",{"data-loc":"client/src/pages/GpxLibrary.tsx:976",className:`flex-1 py-2 rounded-xl text-sm font-semibold transition-colors ${j==="collections"?"bg-green-600 text-white":"bg-muted text-muted-foreground"}`,onClick:()=>Q("collections"),children:["컬ë ì ë£¨í¸ (",Z.length,")"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:986",className:"px-4 mt-4 space-y-3",children:[te&&e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:988",className:"text-center py-12 text-muted-foreground text-sm",children:"ë¶ë¬ì¤ë ì¤..."}),!te&&ee.length===0&&e.jsx("div",{"data-loc":"client/src/pages/GpxLibrary.tsx:991",className:"text-center py-12 text-muted-foreground text-sm whitespace-pre-line",children:l==="mine"&&j==="routes"?`ìì§ ê³µê°í 루í¸ê° ììµëë¤. 13ê¸°ë¡ íìì GPX를 ê³µê°í´ ë³´ì¸ì!`:l==="mine"&&j==="collections"?"ì½ë ì ì ì¶ê°í 루í¸ê° ììµëë¤.":"ê²ì ê²°ê³¼ê° ììµëë¤."}),ee.map(s=>e.jsx(Pe,{"data-loc":"client/src/pages/GpxLibrary.tsx:998",item:s,isAuthenticated:r,onFollow:ue,onDownload:he,isFollowPending:!1,isMineTab:l==="mine",onUnshare:l==="mine"&&j==="routes"?m=>{confirm("ê³µê°ë¥¼ ì² ííìê² ìµëê¹? ë¼ì´ë¸ë¬ë¦¬ìì ìì ëì§ë§ ë´ ê¸°ë¡ì ì ì§ë©ëë¤.")&&ye.mutate({sharedGpxId:m})}:void 0},s.id))]})]}),e.jsx(Ae,{"data-loc":"client/src/pages/GpxLibrary.tsx:1018",open:oe,onClose:()=>P(!1),onCreated:s=>{P(!1),t(`/collection/${s}`)}})]})}export{at as default};
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.