PageSourceSearch

https://zahit-pro-v2.pages.dev/assets/_member.rewards._index-ByPq5vOO.js

js zahit-pro-v2.pages.dev collected 2026-10-03 06:02:37 UTC 3,560 bytes, 1 lines download raw bytes

1import{j as t}from"./jsx-runtime-0DLF9kdB.js";import{u as g,r as b}from"./index-DM-Ysix_.js";import{G as f}from"./GlassCard-QGEypy6d.js";import{O as j}from"./Odometer-C0PrF8Xe.js";import{P as v,i as d}from"./PageTransition-d4Dnod-f.js";import{u as w}from"./Toaster-CvnO9gEM.js";import"./i18n-context-DuXOzqEp.js";import{u as N}from"./hooks-ktRWiHiM.js";import{u as y,a as k,F as T}from"./components-C61DWoh4.js";import{u as P}from"./use-scroll-DH-WsoIo.js";import{u as S}from"./use-transform-CXm97_a6.js";import{m as o}from"./proxy-TcOPxGtH.js";import"./cn-fNskMoFt.js";import"./use-combine-values-xozz9E_C.js";import"./index-Dc83_iFP.js";function Y(){const{member:n,rewards:m}=y(),e=k(),x=g(),{addToast:r}=w(),h=x.state==="submitting",a=N(),{scrollY:u}=P(),p=S(u,[0,50],[0,1]);return b.useEffect(()=>{e&&"success"in e&&e.success?r(a("rewards.toastRedeemed"),"success"):e&&"error"in e&&e.error&&r(e.error,"error")},[e,r,a]),t.jsx("div",{className:"min-h-screen bg-phantom-black text-white relative",children:t.jsxs(v,{children:[t.jsxs("header",{className:"sticky top-0 z-40 border-b border-transparent",children:[t.jsx(o.div,{className:"absolute inset-0 bg-phantom-black/80 backdrop-blur-xl border-b border-white/5 -z-10 pointer-events-none",style:{opacity:p}}),t.jsx("div",{className:"px-6 py-6 md:px-12 md:py-8 text-shadow-sm",children:t.jsxs(o.div,{variants:d,className:"flex justify-between items-end max-w-7xl mx-auto",children:[t.jsxs("div",{children:[t.jsx("h1",{className:"text-3xl font-heading font-bold text-white tracking-tight",children:a("rewards.title")}),t.jsx("p",{className:"text-sm text-gray-400 mt-1",children:a("rewards.subtitle")})]}),t.jsxs("div",{className:"text-right",children:[t.jsx("div",{className:"text-[10px] text-gray-500 uppercase tracking-widest mb-1",children:a("rewards.availablePoints")}),t.jsx("div",{className:"text-2xl font-mono font-bold text-titanium-silver tracking-tighter text-glow",children:t.jsx(j,{value:n.pointsBalance})})]})]})})]}),t.jsx("div",{className:"px-6 md:px-12 mt-4 max-w-7xl mx-auto",children:t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:m.map(s=>{const l=n.pointsBalance>=s.pointsCost,c=s.stock>0,i=!l||!c;return t.jsx(o.div,{variants:d,children:t.jsxs(f,{className:"flex items-center gap-4 p-4 group",interactive:!i,intensity:i?"low":"medium",children:[t.jsxs("div",{className:"w-20 h-20 rounded-xl overflow-hidden bg-white/5 shrink-0 relative",children:[t.jsx("img",{src:s.imageUrl||"",alt:s.title,className:`w-full h-full object-cover transition-all duration-500 ${i&&"grayscale opacity-50"}`}),i&&t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/40",children:t.jsx("span",{className:"text-xs font-bold text-white/50",children:a(c?"rewards.locked":"rewards.soldOut")})})]}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h3",{className:`font-heading font-bold text-lg mb-1 truncate ${i?"text-gray-500":"text-white"}`,children:s.title}),t.jsxs("div",{className:`font-mono text-sm ${l?"text-titanium-silver":"text-gray-600"}`,children:[s.pointsCost.toLocaleString()," PTS"]})]}),t.jsxs(T,{method:"post",children:[t.jsx("input",{type:"hidden",name:"itemId",value:s.id}),t.jsx("button",{type:"submit",disabled:i||h,className:`w-10 h-10 rounded-full flex items-center justify-center border transition-all duration-300 ${i?"bg-transparent text-gray-600 border-white/5 cursor-not-allowed":"bg-white text-black border-white hover:bg-gray-200"}`,children:i?"🔒":"→"})]})]})},s.id)})})})]})})}export{Y 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.