1import{q as h,H as u,s as j,j as s}from"./index-CqGqwWKp.js";import{g as f,b as H,c as N,T as v}from"./tiers-0D7REDge.js";import{A as k}from"./arrow-left-BstHR7w2.js";import{C as m}from"./coins-B6jPE0kT.js";import{T as p}from"./trending-up-U5ic2CF1.js";import{S as w}from"./shopping-bag-C4U6bd5p.js";import{G as $}from"./gift-G_RCMaEn.js";import{Z as C}from"./zap-CqMoBtte.js";import{S}from"./star-QJljQarw.js";function T(e){return new Date(e).toLocaleDateString("ko-KR",{year:"numeric",month:"2-digit",day:"2-digit"})}function L(e){return e.includes("í¸ë í¹")||e.includes("걷기")||e.includes("í¸ëí¹")?s.jsx(p,{"data-loc":"client/src/pages/PointsHistory.tsx:13",size:14,className:"text-green-500"}):e.includes("100km")||e.includes("ë¬ì±")||e.includes("ì주")?s.jsx($,{"data-loc":"client/src/pages/PointsHistory.tsx:14",size:14,className:"text-yellow-500"}):e.includes("ê³µì ")||e.includes("í기")||e.includes("커뮤ëí°")?s.jsx(C,{"data-loc":"client/src/pages/PointsHistory.tsx:15",size:14,className:"text-blue-500"}):s.jsx(S,{"data-loc":"client/src/pages/PointsHistory.tsx:16",size:14,className:"text-blue-500"})}function A(e){return e>0?"text-green-600 dark:text-green-400":"text-red-500"}function K(){const{user:e}=h(),[,d]=u(),{data:c,isLoading:g}=j.points.myPoints.useQuery(void 0,{enabled:!!e}),o=c?.total??0,y=c?.monthTotal??0,x=c?.history??[],r=c?.summary??{normalTotal:o,associationBonusAvailable:0,associationBonusExpired:0},a=f(o),l=H(a.key),b=N(o);return s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:45",className:"min-h-screen bg-background pb-20",children:[s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:47",className:"sticky top-0 z-10 bg-background border-b border-border flex items-center gap-3 px-4 py-3",children:[s.jsx("button",{"data-loc":"client/src/pages/PointsHistory.tsx:48",onClick:()=>d("/profile"),className:"p-1.5 rounded-full hover:bg-muted transition-colors",children:s.jsx(k,{"data-loc":"client/src/pages/PointsHistory.tsx:49",size:20})}),s.jsx("h1",{"data-loc":"client/src/pages/PointsHistory.tsx:51",className:"text-lg font-bold text-foreground flex-1",children:"í¬ì¸í¸ ë´ì"})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:55",className:"mx-4 mt-4 rounded-2xl bg-gradient-to-br from-purple-600 to-indigo-700 p-5 text-white shadow-lg",children:[s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:56",className:"flex items-center gap-2 mb-1",children:[s.jsx(m,{"data-loc":"client/src/pages/PointsHistory.tsx:57",size:18,className:"text-yellow-300"}),s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:58",className:"text-sm font-medium text-white/80",children:"ì¬ì© ê°ë¥ ëì í¬ì¸í¸"})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:60",className:"text-4xl font-black tracking-tight mb-1",children:[o.toLocaleString(),s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:61",className:"text-2xl ml-1 font-bold text-white/70",children:"P"})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:63",className:"flex items-center gap-2 mt-2 pt-2 border-t border-white/20",children:[s.jsx(p,{"data-loc":"client/src/pages/PointsHistory.tsx:64",size:14,className:"text-green-300"}),s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:65",className:"text-xs text-white/70",children:"ì´ë¬ì í¬ì¸í¸"}),s.jsxs("span",{"data-loc":"client/src/pages/PointsHistory.tsx:66",className:"text-sm font-bold text-white ml-auto",children:[y.toLocaleString(),"P"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:68",className:"mt-2 grid grid-cols-2 gap-2 text-xs",children:[s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:69",className:"rounded-lg bg-white/10 px-2.5 py-2",children:[s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:69",className:"block text-white/65",children:"기본 í¬ì¸í¸"}),s.jsxs("strong",{"data-loc":"client/src/pages/PointsHistory.tsx:69",children:[r.normalTotal.toLocaleString(),"P"]})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:70",className:"rounded-lg bg-emerald-300/15 px-2.5 py-2",children:[s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:70",className:"block text-emerald-100/80",children:"ì í
1ì ì¶ê° (ì í¨)"}),s.jsxs("strong",{"data-loc":"client/src/pages/PointsHistory.tsx:70",children:[r.associationBonusAvailable.toLocaleString(),"P"]})]})]})]}),r.associationBonusAvailable>0||r.associationBonusExpired>0?s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:75",className:"mx-4 mt-3 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-3 text-xs text-emerald-900 dark:border-emerald-800 dark:bg-emerald-950/30 dark:text-emerald-100",children:[s.jsx("p",{"data-loc":"client/src/pages/PointsHistory.tsx:76",className:"font-bold",children:"ì¬ë길 ì íì ì¶ê° í¬ì¸í¸"}),s.jsx("p",{"data-loc":"client/src/pages/PointsHistory.tsx:77",className:"mt-1 leading-relaxed",children:"ì¤ì 걷기·ìë ì주 ë³´ìì 기본 í¬ì¸í¸ë§í¼ ë³ë ì 립ë©ëë¤. 기본 í¬ì¸í¸ì 구ë¶í´ íìíë©°, ì íì ìê²©ì´ ëë ì¶ê° í¬ì¸í¸ë ì´ë ¥ì ë¨ìë ì¬ì© ê°ë¥ ìì¡Â·ì¤í ì´ ë±ê¸ í ì¸ììë ì ì¸ë©ëë¤."}),r.associationBonusExpired>0&&s.jsxs("p",{"data-loc":"client/src/pages/PointsHistory.tsx:78",className:"mt-1.5 font-medium text-amber-700 dark:text-amber-300",children:["ì격 ì¢
ë£ë¡ ì¬ì© ê°ë¥ ìì¡ìì ì ì¸ë ì¶ê° í¬ì¸í¸: ",r.associationBonusExpired.toLocaleString(),"P"]})]}):null,s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:83",className:"mx-4 mt-3 rounded-xl border border-border bg-card p-4",children:[s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:84",className:"flex items-center gap-1.5 mb-3",children:[s.jsx(w,{"data-loc":"client/src/pages/PointsHistory.tsx:85",size:13,className:"text-orange-500"}),s.jsx("p",{"data-loc":"client/src/pages/PointsHistory.tsx:86",className:"text-xs font-bold text-foreground",children:"HANT ì¤í ì´ íì ë±ê¸ í ì¸"})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:89",className:`rounded-2xl p-4 mb-3 border-2 ${a.bgColor} ${a.borderColor}`,children:[s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:90",className:"flex items-center gap-3 mb-3",children:[s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:91",className:"text-5xl drop-shadow-lg",children:a.icon}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:92",children:[s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:93",className:`block text-3xl font-black tracking-tight leading-none ${a.textColor}`,children:a.name}),s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:94",className:`text-sm font-semibold mt-1 block ${a.textColor} opacity-80`,children:a.discountLabel})]})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:99",className:`mt-2 pt-2 border-t ${a.borderColor}`,children:[s.jsxs("p",{"data-loc":"client/src/pages/PointsHistory.tsx:100",className:`text-sm font-semibold ${a.textColor}`,children:["ëì í¬ì¸í¸: ",s.jsxs("span",{"data-loc":"client/src/pages/PointsHistory.tsx:100",className:"font-black",children:[o.toLocaleString(),"P"]})]}),l&&s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:102",className:"mt-1.5",children:[s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:103",className:`flex justify-between text-xs mb-1 ${a.textColor} opacity-80`,children:[s.jsxs("span",{"data-loc":"client/src/pages/PointsHistory.tsx:104",children:["ë¤ì ë±ê¸ (",l.name,")ê¹ì§"]}),s.jsxs("span",{"data-loc":"client/src/pages/PointsHistory.tsx:105",className:"font-bold",children:[(l.minPoints-o).toLocaleString(),"P ë¨ì"]})]}),s.jsx("div",{"data-loc":"client/src/pages/PointsHistory.tsx:107",className:"h-2 rounded-full overflow-hidden bg-white/30",children:s.jsx("div",{"data-loc":"client/src/pages/PointsHistory.tsx:108",className:"h-full rounded-full bg-white/70",style:{width:`${b}%`}})})]}),!l&&s.jsx("p",{"data-loc":"client/src/pages/PointsHistory.tsx:113",className:`text-xs mt-1 font-semibold ${a.textColor} opacity-80`,children:"ð ìµê³ ë±ê¸ ë¬ì±!"})]})]}),s.jsx("div",{"data-loc":"client/src/pages/PointsHistory.tsx:118",className:"rounded-xl overflow-hidden border border-border/50",children:v.map((t,P)=>{const i=t.key===a.key,n=o>=t.minPoints;return s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:123",children:[P>0&&s.jsx("div",{"data-loc":"client/src/pages/PointsHistory.tsx:124",className:"h-px bg-border/40"}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:125",className:`flex items-center justify-between px-3 py-3 ${i?`${t.bgColor} border-l-4 ${t.borderColor}`:n?"bg-muted/30":""}`,children:[s.jsxs("span",{"data-loc":"client/src/pages/PointsHistory.tsx:126",className:"flex items-center gap-2",children:[s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:127",className:i?"text-2xl":"text-xl",children:t.icon}),s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:128",className:`${i?"text-base font-black":"text-sm font-semibold"} ${i?t.textColor:n?"text-foreground":"text-muted-foreground"}`,children:t.name}),i&&s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:131",className:`text-[10px] px-2 py-0.5 rounded-full font-bold ${t.bgColor} ${t.textColor} border ${t.borderColor}`,children:"íì¬"}),n&&!i&&s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:132",className:"text-[10px] text-green-600",children:"â"})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:134",className:"text-right",children:[s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:135",className:`text-xs font-bold ${i?t.textColor:n?"text-foreground":"text-muted-foreground"}`,children:t.discountLabel}),s.jsxs("p",{"data-loc":"client/src/pages/PointsHistory.tsx:138",className:"text-[10px] text-muted-foreground",children:[t.minPoints.toLocaleStr
1ing(),"P",t.maxPoints?`~${t.maxPoints.toLocaleString()}P`:" ì´ì"]})]})]})]},t.key)})}),s.jsx("p",{"data-loc":"client/src/pages/PointsHistory.tsx:145",className:"text-xs text-muted-foreground mt-2 leading-relaxed",children:"기본 í¬ì¸í¸ë ì멸ëì§ ììµëë¤. ì¬ë길 ì íì ì¶ê° í¬ì¸í¸ë ì격 ì í¨ê¸°ê°ìë§ ìì¡ê³¼ ë±ê¸ í ì¸ì ë°ìëë©°, ë±ê¸ì HANT ì¤í ì´ ìí í ì¸ ì격ì ëíë
ëë¤."})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:151",className:"mx-4 mt-4",children:[s.jsx("h2",{"data-loc":"client/src/pages/PointsHistory.tsx:152",className:"text-sm font-semibold text-muted-foreground mb-2 px-1",children:"ì 립 ë´ì (ìµê·¼ 50ê±´)"}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:155",className:"rounded-xl border border-border bg-card px-4 py-3 mb-3",children:[s.jsx("p",{"data-loc":"client/src/pages/PointsHistory.tsx:156",className:"text-xs font-bold text-foreground mb-2",children:"í¬ì¸í¸ ì 립 ë°©ë²"}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:157",className:"flex flex-col gap-1.5",children:[s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:159",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:160",className:"text-xs text-muted-foreground",children:"ð 기본 â 걷기 100më§ë¤"}),s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:161",className:"text-xs font-bold text-green-600 dark:text-green-400",children:"+1P"})]}),s.jsx("div",{"data-loc":"client/src/pages/PointsHistory.tsx:164",className:"h-px bg-border/60 my-0.5"}),s.jsx("p",{"data-loc":"client/src/pages/PointsHistory.tsx:166",className:"text-[11px] font-bold text-amber-600 dark:text-amber-400 tracking-wide uppercase",children:"⦠ì¤íì
í¬ì¸í¸"}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:167",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:168",className:"text-xs text-muted-foreground",children:"ð HANT ëì 100km ë¬ì±ë§ë¤"}),s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:169",className:"text-xs font-bold text-amber-600 dark:text-amber-400",children:"+500P"})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:171",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:172",className:"text-xs text-muted-foreground",children:"ð íë ì´í°ì GPX 길 ê³µì "}),s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:173",className:"text-xs font-bold text-amber-600 dark:text-amber-400",children:"+20P"})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:175",className:"flex items-center justify-between",children:[s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:176",className:"text-xs text-muted-foreground",children:"âï¸ ì»¤ë®¤ëí°ì ê¸ ìì±"}),s.jsx("span",{"data-loc":"client/src/pages/PointsHistory.tsx:177",className:"text-xs font-bold text-amber-600 dark:text-amber-400",children:"+20P"})]})]})]}),g?s.jsx("div",{"data-loc":"client/src/pages/PointsHistory.tsx:183",className:"space-y-2",children:[1,2,3].map(t=>s.jsx("div",{"data-loc":"client/src/pages/PointsHistory.tsx:185",className:"h-14 bg-muted/50 rounded-xl animate-pulse"},t))}):x.length===0?s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:189",className:"text-center py-12 text-muted-foreground",children:[s.jsx(m,{"data-loc":"client/src/pages/PointsHistory.tsx:190",size:40,className:"mx-auto mb-3 opacity-30"}),s.jsx("p",{"data-loc":"client/src/pages/PointsHistory.tsx:191",className:"text-sm",children:"ìì§ í¬ì¸í¸ ë´ìì´ ììµëë¤."}),s.jsx("p",{"data-loc":"client/src/pages/PointsHistory.tsx:192",className:"text-xs mt-1",children:"í¸ë í¹ì ìë£íë©´ í¬ì¸í¸ê° ì 립ë©ëë¤!"})]}):s.jsx("div",{"data-loc":"client/src/pages/PointsHistory.tsx:195",className:"space-y-2",children:x.map(t=>s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:197",className:"flex items-center gap-3 bg-card border border-border rounded-xl px-4 py-3",children:[s.jsx("div",{"data-loc":"client/src/pages/PointsHistory.tsx:201",className:"w-8 h-8 rounded-full bg-muted flex items-center justify-center flex-shrink-0",children:L(t.reason)}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:204",className:"flex-1 min-w-0",children:[s.jsx("p",{"data-loc":"client/src/pages/PointsHistory.tsx:205",className:"text-sm font-medium text-foreground truncate",children:t.reason}),s.jsxs("p",{"data-loc":"client/src/pages/PointsHistory.tsx:206",className:"text-xs text-muted-foreground",children:[T(t.createdAt),t.pointType==="association_bonus"?` · ì íì ì¶ê°${t.expiresAt&&t.expiresAt<=Date.now()?" · ì격 ì¢
ë£ë¡ ì¬ì© ì ì¸"
1:""}`:""]})]}),s.jsxs("div",{"data-loc":"client/src/pages/PointsHistory.tsx:211",className:`text-base font-black ${A(t.points)}`,children:[t.points>0?"+":"",t.points.toLocaleString(),"P"]})]},t.id))})]})]})}export{K 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.