import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./index-D9wftDAt.js";function l(e){if(Array.isArray(e))return e.flatMap(e=>l(e));if(typeof e!=`string`)return[];let t=[],n=0,r,i,a,o,s,c=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},u=()=>(i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`);for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&u();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.slice(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.slice(r))}return t}function u(e){return e instanceof Headers?e:Array.isArray(e)||typeof e==`object`?new Headers(e):null}function d(...e){return e.reduce((e,t)=>{let n=u(t);if(!n)return e;for(let[t,r]of n.entries())t===`set-cookie`?l(r).forEach(t=>e.append(`set-cookie`,t)):e.set(t,r);return e},new Headers)}var f=r(t(),1);function p(e){let t=c();return f.useCallback(async(...r)=>{try{let t=await e(...r);if(n(t))throw t;return t}catch(e){if(n(e))return e.options._fromLocation=t.stores.location.get(),t.navigate(t.resolveRedirect(e).options);throw e}},[t,e])}function m(e){return e!==`__proto__`&&e!==`constructor`&&e!==`prototype`}function h(e,t){let n=Object.create(null);if(e)for(let t of Object.keys(e))m(t)&&(n[t]=e[t]);if(t&&typeof t==`object`)for(let e of Object.keys(t))m(e)&&(n[e]=t[e]);return n}function g(e){if(!e)return Object.create(null);let t=Object.create(null);for(let n of Object.keys(e))m(n)&&(t[n]=e[n]);return t}var _=()=>{throw Error(`createServerOnlyFn() functions can only be called on the server!`)},v=(t,n)=>{let r=n||t||{};r.method===void 0&&(r.method=`GET`);let i=e=>v(void 0,{...r,validator:e,inputValidator:e});return Object.assign(e=>v(void 0,{...r,...e}),{options:r,middleware:e=>{let t=[...r.middleware||[]];e.forEach(e=>{s in e?e.options.middleware&&t.push(...e.options.middleware):t.push(e)});let n=v(void 0,{...r,middleware:t});return n[s]=!0,n},validator:i,inputValidator:i,handler:(...t)=>{let[n,i]=t,a={...r,extractedFn:n,serverFn:i},o=[...a.middleware||[],S(a)];return n.method=r.method,Object.assign(async t=>{let r=await y(o,`client`,{...n,...a,data:t?.data,headers:t?.headers,signal:t?.signal,fetch:t?.fetch,context:g()}),i=e(r.error);if(i)throw i;if(r.error)throw r.error;return r.result},{...n,method:r.method,__executeServer:async e=>{let t=_(),i=t.contextAfterGlobalMiddlewares;return await y(o,`server`,{...n,data:e.data,method:e.method??r.method,serverFnMeta:n.serverFnMeta,context:h(e.context,i),request:t.request}).then(e=>({result:e.result,error:e.error,context:e.sendContext}))}})}})};async function y(e,t,r){let i=b([...a()?.functionMiddleware||[],...e]);if(t===`server`){let e=_({throwIfNotFound:!1});e?.executedRequestMiddlewares&&(i=i.filter(t=>!e.executedRequestMiddlewares.has(t)))}let o=async e=>{let r=i.shift();if(!r)return e;try{let i=`validator`in r.options?r.options.validator:void 0;!i&&`inputValidator`in r.options&&(i=r.options.inputValidator),i&&t===`server`&&(e.data=await x(i,e.data));let a;if(t===`client`?`client`in r.options&&(a=r.options.client):`server`in r.options&&(a=r.options.server),a){let t=async(t={})=>{let n=await o({...e,...t,context:h(e.context,t.context),sendContext:h(e.sendContext,t.sendContext),headers:d(e.headers,t.headers),_callSiteFetch:e._callSiteFetch,fetch:e._callSiteFetch??t.fetch??e.fetch,result:t.result===void 0?t instanceof Response?t:e.result:t.result,error:t.error??e.error});if(n.error)throw n.error;return n},r=await a({...e,next:t});if(n(r))return{...e,error:r};if(r instanceof Response)return{...e,result:r};if(!r)throw Error(`User middleware returned undefined. You must call next() or return a result in your middlewares.`);return r}return o(e)}catch(t){return{...e,error:t}}};return o({...r,headers:r.headers||{},sendContext:r.sendContext||{},context:r.context||g(),_callSiteFetch:r.fetch})}function b(e,t=100){let n=new Set,r=[],i=(e,a)=>{if(a>t)throw Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);e.forEach(e=>{e.options.middleware&&i(e.options.middleware,a+1),n.has(e)||(n.add(e),r.push(e))})};return i(e,0),r}async function x(e,t){if(e==null)return{};if(`~standard`in e){let n=await e[`~standard`].validate(t);if(n.issues)throw Error(JSON.stringify(n.issues,void 0,2));return n.value}if(`parse`in e)return e.parse(t);if(typeof e==`function`)return e(t);throw Error(`Invalid validator type!`)}function S(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...i})=>{let a={...i,context:n,fetch:r};return t(await e.extractedFn?.(a))},server:async({next:t,...n})=>{let r=await e.serverFn?.(n);return t({...n,result:r})}}}}var C=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),w=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),T=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),E=e=>{let t=T(e);return t.charAt(0).toUpperCase()+t.slice(1)},D={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},O=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},k=(0,f.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,f.createElement)(`svg`,{ref:c,...D,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:C(`lucide`,i),...!a&&!O(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,f.createElement)(e,t)),...Array.isArray(a)?a:[a]])),A=(e,t)=>{let n=(0,f.forwardRef)(({className:n,...r},i)=>(0,f.createElement)(k,{ref:i,iconNode:t,className:C(`lucide-${w(E(e))}`,`lucide-${e}`,n),...r}));return n.displayName=E(e),n},j=A(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),ee=A(`backpack`,[[`path`,{d:`M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z`,key:`1ol0lm`}],[`path`,{d:`M8 10h8`,key:`c7uz4u`}],[`path`,{d:`M8 18h8`,key:`1no2b1`}],[`path`,{d:`M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6`,key:`1fr6do`}],[`path`,{d:`M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2`,key:`donm21`}]]),te=A(`badge-check`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),ne=A(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),re=A(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),M=A(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),ie=A(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),ae=A(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),oe=A(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),se=A(`credit-card`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`2`,key:`ynyp8z`}],[`line`,{x1:`2`,x2:`22`,y1:`10`,y2:`10`,key:`1b3vmo`}]]),ce=A(`gamepad-2`,[[`line`,{x1:`6`,x2:`10`,y1:`11`,y2:`11`,key:`1gktln`}],[`line`,{x1:`8`,x2:`8`,y1:`9`,y2:`13`,key:`qnk9ow`}],[`line`,{x1:`15`,x2:`15.01`,y1:`12`,y2:`12`,key:`krot7o`}],[`line`,{x1:`18`,x2:`18.01`,y1:`10`,y2:`10`,key:`1lcuu1`}],[`path`,{d:`M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z`,key:`mfqc10`}]]),N=A(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),P=A(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),le=A(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),F=A(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),I=A(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),ue=A(`newspaper`,[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]),L=A(`person-standing`,[[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`path`,{d:`m9 20 3-6 3 6`,key:`se2kox`}],[`path`,{d:`m6 8 6 2 6-2`,key:`4o3us4`}],[`path`,{d:`M12 10v4`,key:`1kjpxc`}]]),de=A(`qr-code`,[[`rect`,{width:`5`,height:`5`,x:`3`,y:`3`,rx:`1`,key:`1tu5fj`}],[`rect`,{width:`5`,height:`5`,x:`16`,y:`3`,rx:`1`,key:`1v8r4q`}],[`rect`,{width:`5`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`1x03jg`}],[`path`,{d:`M21 16h-3a2 2 0 0 0-2 2v3`,key:`177gqh`}],[`path`,{d:`M21 21v.01`,key:`ents32`}],[`path`,{d:`M12 7v3a2 2 0 0 1-2 2H7`,key:`8crl2c`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M12 3h.01`,key:`n36tog`}],[`path`,{d:`M12 16v.01`,key:`133mhm`}],[`path`,{d:`M16 12h1`,key:`1slzba`}],[`path`,{d:`M21 12v.01`,key:`1lwtk9`}],[`path`,{d:`M12 21v-1`,key:`1880an`}]]),fe=A(`redo-2`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]),pe=A(`repeat-2`,[[`path`,{d:`m2 9 3-3 3 3`,key:`1ltn5i`}],[`path`,{d:`M13 18H7a2 2 0 0 1-2-2V6`,key:`1r6tfw`}],[`path`,{d:`m22 15-3 3-3-3`,key:`4rnwn2`}],[`path`,{d:`M11 6h6a2 2 0 0 1 2 2v10`,key:`2f72bc`}]]),R=A(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),z=A(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),me=A(`shopping-cart`,[[`circle`,{cx:`8`,cy:`21`,r:`1`,key:`jimo8o`}],[`circle`,{cx:`19`,cy:`21`,r:`1`,key:`13723u`}],[`path`,{d:`M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12`,key:`9zh506`}]]),he=A(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),ge=A(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),_e=A(`thumbs-up`,[[`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`,key:`emmmcr`}],[`path`,{d:`M7 10v12`,key:`1qc93n`}]]),ve=A(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),ye=A(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),B=A(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),be=A(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),xe=A(`users-round`,[[`path`,{d:`M18 21a8 8 0 0 0-16 0`,key:`3ypg7q`}],[`circle`,{cx:`10`,cy:`8`,r:`5`,key:`o932ke`}],[`path`,{d:`M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3`,key:`10s06x`}]]),V=A(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),H=A(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Se={version:1,asset_id:`0b1949bc-b5cd-4ecd-803d-0b9f43e40731`,project_id:`30467574-0886-488a-bea9-c4681e3a8377`,url:`/__l5e/assets-v1/0b1949bc-b5cd-4ecd-803d-0b9f43e40731/robux-icon.png`,r2_key:`a/v1/30467574-0886-488a-bea9-c4681e3a8377/0b1949bc-b5cd-4ecd-803d-0b9f43e40731/robux-icon.png`,original_filename:`robux-icon.png`,size:61420,content_type:`image/png`,created_at:`2026-10-01T05:31:22Z`},U=i();function W({className:e=`size-5`}){return(0,U.jsx)(`img`,{src:Se.url,alt:`Robux`,className:e})}var Ce={version:1,asset_id:`1aea3764-f82d-470c-b9d7-fc4c6220088e`,project_id:`30467574-0886-488a-bea9-c4681e3a8377`,url:`/__l5e/assets-v1/1aea3764-f82d-470c-b9d7-fc4c6220088e/robux-menu-icon.png`,r2_key:`a/v1/30467574-0886-488a-bea9-c4681e3a8377/1aea3764-f82d-470c-b9d7-fc4c6220088e/robux-menu-icon.png`,original_filename:`robux-menu-icon.png`,size:80330,content_type:`image/png`,created_at:`2026-09-14T15:28:17Z`},G={version:1,asset_id:`5c653270-e6b4-4077-bdbd-56dc4edbe6c4`,project_id:`30467574-0886-488a-bea9-c4681e3a8377`,url:`/__l5e/assets-v1/5c653270-e6b4-4077-bdbd-56dc4edbe6c4/verified-check.png`,r2_key:`a/v1/30467574-0886-488a-bea9-c4681e3a8377/5c653270-e6b4-4077-bdbd-56dc4edbe6c4/verified-check.png`,original_filename:`verified-check.png`,size:126706,content_type:`image/png`,created_at:`2026-10-03T07:14:15Z`},K=v({method:`GET`}).handler(o(`1e4d0eeca318daf4f9b7b5ded8c7cfcab678652c7cf4e8198f62941e75827afc`)),we=v({method:`GET`}).handler(o(`ca3ff49c040e2a0bfb47b6e0860769e677d89723f4cdac3f302015d5282d018b`)),q=v({method:`POST`}).handler(o(`943acd53b7c6f9bbc912061a798659a007d0d8be40a0e502ec9a794c923c1a44`)),J=v({method:`GET`}).handler(o(`61702ebf38a186c8ce98cf0a6838e4f92776dc7059a72ad978ce0e64c0706e36`)),Te=v({method:`GET`}).handler(o(`87d115256c59b7a308365784928c9209bc0b71cc65f2a68278be5c3da8fdd191`)),Ee=[`Roblox`,`Builderman`,`Shedletsky`,`Stickmasterluke`,`Loleris`,`Crazyman32`,`Defaultio`,`Berezaa`],De=[25,50,100,200];function Y({friend:e,size:t=`size-11`}){return e.avatar?(0,U.jsx)(`img`,{src:e.avatar,alt:e.name,loading:`lazy`,className:`${t} shrink-0 rounded-full bg-secondary object-cover`}):(0,U.jsx)(`span`,{className:`${t} grid shrink-0 place-items-center rounded-full text-base font-bold text-background`,style:{backgroundColor:e.color},children:e.name.slice(0,1).toUpperCase()})}function X(){return(0,U.jsx)(`img`,{src:G.url,alt:`Verificado`,className:`size-4 shrink-0 object-contain`})}function Z({balance:e,onClose:t,onSend:n,initialFriend:r,profileId:i}){let[a,o]=(0,f.useState)(r?`amount`:`search`),[s,c]=(0,f.useState)(``),[l,u]=(0,f.useState)(r??null),[d,m]=(0,f.useState)(200),[h,g]=(0,f.useState)(!1),_=s.trim(),v=p(K),y=p(q),b=p(J),[x,S]=(0,f.useState)([]),[C,w]=(0,f.useState)([]),[T,E]=(0,f.useState)(!1),[D,O]=(0,f.useState)(!0);(0,f.useEffect)(()=>{let e=!1;return O(!0),(async()=>{if(i){let e=await b({data:{userId:i}}).catch(()=>[]);if(e.length)return e}return y({data:{usernames:Ee}})})().then(t=>{e||w(t.map((e,t)=>({name:e.name,displayName:e.displayName,verified:e.verified,avatar:e.avatar,color:`oklch(0.68 0.16 ${(e.id+t*40)%360})`,joined:2013+e.id%12})))}).catch(()=>{e||w([])}).finally(()=>{e||O(!1)}),()=>{e=!0}},[y,b,i]),(0,f.useEffect)(()=>{if(!_){S([]),E(!1);return}E(!0);let e=!1,t=setTimeout(async()=>{try{let t=await v({data:{keyword:_}});if(e)return;S(t.map((e,t)=>({name:e.name,displayName:e.displayName,verified:e.verified,avatar:e.avatar,color:`oklch(0.68 0.16 ${(e.id+t*40)%360})`,joined:2013+e.id%12})))}catch{e||S([])}finally{e||E(!1)}},350);return()=>{e=!0,clearTimeout(t)}},[_,v]);let k=(0,f.useMemo)(()=>{let e=_.toLowerCase(),t=C.length>0?C:[];if(!e)return t;let n=t.filter(t=>t.name.toLowerCase().includes(e)),r=new Set(n.map(e=>e.name.toLowerCase())),i=[...n,...x.filter(e=>!r.has(e.name.toLowerCase()))];if(i.length>0||T)return i;let a=0;for(let e of _)a=a*31+e.charCodeAt(0)>>>0;return[{name:_,displayName:_,verified:!1,avatar:null,color:`oklch(0.68 0.16 ${a%360})`,joined:2013+a%12}]},[_,x,C,T]),A=e;return(0,U.jsx)(`div`,{className:`fixed inset-0 z-[60] flex items-center justify-center bg-black/70 px-4 backdrop-blur-sm`,children:(0,U.jsxs)(`div`,{className:`w-full max-w-md overflow-hidden rounded-2xl bg-popover text-popover-foreground shadow-2xl ring-1 ring-border`,children:[(0,U.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-4 py-3`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(`img`,{src:Ce.url,alt:`Robux`,className:`size-5 object-contain`}),(0,U.jsx)(`span`,{className:`text-lg font-bold`,children:`Send Robux`})]}),(0,U.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-1.5 text-sm font-semibold text-muted-foreground`,children:[(0,U.jsx)(W,{className:`size-4`}),A.toLocaleString(`en-US`)]}),(0,U.jsx)(`button`,{onClick:t,"aria-label":`Cerrar`,className:`text-muted-foreground hover:text-foreground`,children:(0,U.jsx)(H,{className:`size-5`})})]})]}),a===`search`&&(0,U.jsxs)(`div`,{className:`p-4`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg bg-secondary px-3 py-2.5 ring-2 ring-primary`,children:[(0,U.jsx)(R,{className:`size-4 text-muted-foreground`}),(0,U.jsx)(`input`,{autoFocus:!0,value:s,maxLength:40,onChange:e=>c(e.target.value),placeholder:`Search by username`,className:`w-full bg-transparent text-sm font-medium outline-none placeholder:text-muted-foreground`})]}),(0,U.jsxs)(`p`,{className:`mt-4 flex items-center gap-2 text-sm font-bold`,children:[_?`Roblox players`:`My friends`,` (`,k.length,`)`,(T||D)&&(0,U.jsx)(P,{className:`size-3.5 animate-spin text-muted-foreground`})]}),(0,U.jsx)(`ul`,{className:`mt-2 max-h-72 space-y-1 overflow-y-auto pr-1`,children:k.map(e=>(0,U.jsx)(`li`,{children:(0,U.jsxs)(`button`,{onClick:()=>{u(e),o(`amount`)},className:`flex w-full items-center gap-3 rounded-xl px-1 py-2 text-left transition-colors hover:bg-secondary`,children:[(0,U.jsx)(Y,{friend:e}),(0,U.jsxs)(`span`,{className:`min-w-0`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-1.5 text-sm font-semibold`,children:[(0,U.jsx)(`span`,{className:`truncate`,children:e.displayName??e.name}),e.verified&&(0,U.jsx)(X,{})]}),(0,U.jsxs)(`span`,{className:`block truncate text-xs text-muted-foreground`,children:[`@`,e.name]})]})]})},e.name))})]}),a===`amount`&&l&&(0,U.jsxs)(`div`,{className:`p-5`,children:[(0,U.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,U.jsx)(Y,{friend:l,size:`size-20`}),(0,U.jsxs)(`span`,{className:`flex items-center gap-1.5 text-base font-bold`,children:[l.name,l.verified&&(0,U.jsx)(X,{})]})]}),(0,U.jsxs)(`div`,{className:`mt-5 border-t border-border pt-5`,children:[(0,U.jsxs)(`div`,{className:`flex items-center justify-center gap-4`,children:[(0,U.jsx)(W,{className:`size-8`}),h?(0,U.jsx)(`input`,{autoFocus:!0,type:`number`,min:1,max:999999999,value:d,onChange:e=>m(Math.max(0,Math.min(999999999,Number(e.target.value)||0))),onBlur:()=>g(!1),className:`w-56 bg-transparent text-center text-5xl font-extrabold outline-none`}):(0,U.jsx)(`button`,{onClick:()=>g(!0),className:`text-5xl font-extrabold tracking-tight`,children:d.toLocaleString(`en-US`)})]}),(0,U.jsx)(`p`,{className:`mt-2 text-center text-xs text-muted-foreground`,children:`Tap the number to enter a custom amount`}),(0,U.jsx)(`div`,{className:`mt-4 grid grid-cols-4 gap-2`,children:De.map(e=>(0,U.jsxs)(`button`,{onClick:()=>{m(e),g(!1)},className:`flex items-center justify-center gap-1 rounded-full px-2 py-2 text-sm font-semibold transition-colors ${d===e&&!h?`bg-primary/20 text-foreground ring-2 ring-primary`:`bg-secondary text-foreground`}`,children:[(0,U.jsx)(W,{className:`size-3.5`}),e]},e))}),(0,U.jsx)(`button`,{disabled:d<1,onClick:()=>o(`confirm`),className:`mt-5 w-full rounded-xl bg-primary py-3.5 text-base font-bold text-primary-foreground transition-opacity disabled:opacity-40`,children:`Next`}),(0,U.jsx)(`p`,{className:`mt-3 text-center text-xs text-muted-foreground`,children:`Robux are sent instantly with no fees`})]})]}),a===`confirm`&&l&&(0,U.jsxs)(`div`,{className:`p-4`,children:[(0,U.jsxs)(`div`,{className:`flex flex-col items-center gap-1 rounded-xl bg-secondary/60 p-5`,children:[(0,U.jsx)(Y,{friend:l,size:`size-20`}),(0,U.jsxs)(`span`,{className:`mt-2 flex items-center gap-1.5 text-base font-bold`,children:[l.name,l.verified&&(0,U.jsx)(X,{})]}),(0,U.jsxs)(`span`,{className:`text-sm text-muted-foreground`,children:[`@`,l.name]}),(0,U.jsxs)(`span`,{className:`mt-2 flex items-center gap-1.5 text-sm text-muted-foreground`,children:[(0,U.jsx)(ce,{className:`size-4`}),` 0 mutual Connections`]}),(0,U.jsxs)(`span`,{className:`flex items-center gap-1.5 text-sm text-muted-foreground`,children:[(0,U.jsx)(oe,{className:`size-4`}),` Joined in `,l.joined]})]}),(0,U.jsxs)(`div`,{className:`mt-3 flex items-center justify-center gap-3 rounded-xl bg-secondary/60 py-5`,children:[(0,U.jsx)(W,{className:`size-8`}),(0,U.jsx)(`span`,{className:`text-4xl font-extrabold`,children:d.toLocaleString(`en-US`)})]}),(0,U.jsxs)(`div`,{className:`mt-3 grid grid-cols-2 gap-3`,children:[(0,U.jsx)(`button`,{onClick:()=>{o(`sending`),setTimeout(()=>{n(d),o(`done`)},1800)},className:`rounded-xl bg-primary py-3.5 text-base font-bold text-primary-foreground`,children:`Send`}),(0,U.jsx)(`button`,{onClick:()=>o(`amount`),className:`rounded-xl bg-secondary py-3.5 text-base font-bold text-foreground ring-1 ring-border`,children:`Edit`})]}),(0,U.jsx)(`p`,{className:`mt-3 text-center text-xs leading-relaxed text-muted-foreground`,children:`You need an age check or parental consent to send Robux. Once you send, you cannot cancel.`})]}),a===`sending`&&l&&(0,U.jsxs)(`div`,{className:`flex flex-col items-center px-5 py-12`,children:[(0,U.jsx)(Y,{friend:l,size:`size-20`}),(0,U.jsxs)(`p`,{className:`mt-5 flex items-center gap-2 text-base font-bold`,children:[(0,U.jsx)(P,{className:`size-4 animate-spin text-muted-foreground`}),` Sending Robux...`]}),(0,U.jsxs)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:[`to @`,l.name]})]}),a===`done`&&(0,U.jsxs)(`div`,{className:`px-5 py-8`,children:[(0,U.jsx)(`div`,{className:`mx-auto grid size-16 place-items-center rounded-full ring-2 ring-foreground`,children:(0,U.jsx)(M,{className:`size-9`,strokeWidth:3})}),(0,U.jsxs)(`p`,{className:`mt-4 text-center text-base font-semibold`,children:[`You sent `,d.toLocaleString(`en-US`),` Robux`]}),(0,U.jsx)(`button`,{onClick:t,className:`mt-6 w-full rounded-xl bg-primary py-3.5 text-base font-bold text-primary-foreground`,children:`OK`})]})]})})}function Oe({onClose:e,onSave:t}){let[n,r]=(0,f.useState)(``),[i,a]=(0,f.useState)(!1),[o,s]=(0,f.useState)(null),[c,l]=(0,f.useState)(null);async function u(){let e=n.trim();if(e){a(!0),l(null),s(null);try{let t=(await q({data:{usernames:[e]}}))[0];t?s(t):l(`No se encontró ese usuario de Roblox.`)}catch{l(`No se pudo buscar ahora mismo. Inténtalo de nuevo.`)}finally{a(!1)}}}return(0,U.jsx)(`div`,{className:`fixed inset-0 z-50 grid place-items-center bg-black/70 p-4`,onClick:e,children:(0,U.jsxs)(`div`,{className:`w-full max-w-sm rounded-2xl bg-card p-5 ring-1 ring-border`,onClick:e=>e.stopPropagation(),children:[(0,U.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,U.jsx)(`h2`,{className:`text-lg font-bold`,children:`Tu perfil de Roblox`}),(0,U.jsx)(`button`,{onClick:e,"aria-label":`Cerrar`,children:(0,U.jsx)(H,{className:`size-5 text-muted-foreground`})})]}),(0,U.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:`Escribe tu nombre de usuario público de Roblox. No pedimos contraseñas.`}),(0,U.jsxs)(`div`,{className:`mt-4 flex gap-2`,children:[(0,U.jsx)(`input`,{value:n,onChange:e=>r(e.target.value),onKeyDown:e=>e.key===`Enter`&&u(),placeholder:`Nombre de usuario`,maxLength:40,className:`min-w-0 flex-1 rounded-lg bg-secondary px-3 py-2.5 text-sm outline-none ring-1 ring-border focus:ring-foreground`}),(0,U.jsx)(`button`,{onClick:u,disabled:i||!n.trim(),className:`rounded-lg bg-foreground px-4 py-2.5 text-sm font-bold text-background disabled:opacity-50`,children:i?(0,U.jsx)(P,{className:`size-4 animate-spin`}):`Buscar`})]}),c&&(0,U.jsx)(`p`,{className:`mt-3 text-sm text-red-400`,children:c}),o&&(0,U.jsxs)(`div`,{className:`mt-4 flex items-center gap-3 rounded-xl bg-secondary/60 p-3`,children:[o.avatar?(0,U.jsx)(`img`,{src:o.avatar,alt:`Avatar de ${o.displayName}`,className:`size-12 rounded-full bg-secondary`,width:150,height:150}):(0,U.jsx)(`span`,{className:`grid size-12 place-items-center rounded-full bg-secondary text-lg font-bold`,children:o.displayName.charAt(0).toUpperCase()}),(0,U.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,U.jsxs)(`p`,{className:`flex items-center gap-1 truncate font-bold`,children:[o.displayName,o.verified&&(0,U.jsx)(te,{className:`size-4 shrink-0 text-roblox-blue`})]}),(0,U.jsxs)(`p`,{className:`truncate text-sm text-muted-foreground`,children:[`@`,o.name]})]}),(0,U.jsx)(`button`,{onClick:()=>t(o),className:`rounded-lg bg-foreground px-3 py-2 text-xs font-bold text-background`,children:`Usar`})]})]})})}var Q={version:1,asset_id:`31fbe43d-7827-42a9-9238-5a3c8a70319f`,project_id:`30467574-0886-488a-bea9-c4681e3a8377`,url:`/__l5e/assets-v1/31fbe43d-7827-42a9-9238-5a3c8a70319f/roblox-logo-tilt.png`,r2_key:`a/v1/30467574-0886-488a-bea9-c4681e3a8377/31fbe43d-7827-42a9-9238-5a3c8a70319f/roblox-logo-tilt.png`,original_filename:`roblox-logo-tilt.png`,size:127630,content_type:`image/png`,created_at:`2026-10-02T19:41:45Z`},ke=[`Rioant29`,`Dwssdeejan5`,`Ikermr468`,`XxDenixX`,`builderman`,`Shedletsky`,`Stickmasterluke`];function Ae({profile:e,onClose:t,onAddFriends:n,onAvatar:r}){let[i,a]=(0,f.useState)([]),[o,s]=(0,f.useState)([]);(0,f.useEffect)(()=>{let t=!0,n=()=>q({data:{usernames:ke}}).then(e=>t&&a(e)).catch(()=>{});return e?.id?J({data:{userId:e.id}}).then(e=>{t&&(e.length?a(e):n())}).catch(n):n(),we().then(e=>t&&s(e)).catch(()=>{}),()=>{t=!1}},[e?.id]);let c=e?.displayName??`Tu perfil`,l=e?.avatar??null,u=({className:e})=>(0,U.jsx)(`span`,{className:`grid place-items-center overflow-hidden rounded-full bg-secondary font-bold ${e}`,children:l?(0,U.jsx)(`img`,{src:l,alt:c,className:`size-full object-cover`}):c.charAt(0).toUpperCase()});return(0,U.jsxs)(`div`,{className:`fixed inset-0 z-50 flex flex-col bg-background text-foreground`,children:[(0,U.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[(0,U.jsxs)(`header`,{className:`mx-auto flex max-w-2xl items-center justify-between px-5 pb-2 pt-4`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,U.jsxs)(`button`,{onClick:t,"aria-label":`Volver`,className:`relative`,children:[(0,U.jsx)(F,{className:`size-7`}),(0,U.jsx)(`span`,{className:`absolute -right-1 -top-0.5 size-2.5 rounded-full bg-roblox-blue`})]}),(0,U.jsx)(`img`,{src:Q.url,alt:`Logo`,className:`size-9 object-contain`,width:512,height:512})]}),(0,U.jsxs)(`div`,{className:`flex items-center gap-5`,children:[(0,U.jsx)(`span`,{className:`text-[9px] text-muted-foreground/60`,children:`Es una broma`}),(0,U.jsx)(R,{className:`size-6`}),(0,U.jsx)(W,{className:`size-6`}),(0,U.jsxs)(`span`,{className:`relative`,children:[(0,U.jsx)(ne,{className:`size-6`}),(0,U.jsx)(`span`,{className:`absolute -right-2.5 -top-2.5 grid min-w-5 place-items-center rounded-full bg-roblox-blue px-1 text-[11px] font-bold text-primary-foreground`,children:`14`})]})]})]}),(0,U.jsxs)(`main`,{className:`mx-auto max-w-2xl px-5 pb-8`,children:[(0,U.jsxs)(`div`,{className:`mt-4 flex items-center gap-4`,children:[(0,U.jsx)(u,{className:`size-12 text-lg`}),(0,U.jsx)(`span`,{className:`text-3xl font-extrabold`,children:c})]}),(0,U.jsxs)(`div`,{className:`-mx-5 mt-6 flex gap-4 overflow-x-auto px-5 pb-1`,children:[(0,U.jsxs)(`button`,{onClick:n,className:`flex w-24 shrink-0 flex-col items-center gap-2`,children:[(0,U.jsxs)(`span`,{className:`relative grid size-24 place-items-center rounded-full bg-secondary`,children:[(0,U.jsx)(B,{className:`size-10`,strokeWidth:1.5}),(0,U.jsx)(`span`,{className:`absolute right-0 top-1 grid size-6 place-items-center rounded-full bg-roblox-blue text-xs font-bold text-primary-foreground`,children:`3`})]}),(0,U.jsx)(`span`,{className:`text-center text-sm font-semibold leading-tight`,children:`Añadir amigos`})]}),i.map((e,t)=>(0,U.jsxs)(`div`,{className:`flex w-24 shrink-0 flex-col items-center gap-1`,children:[(0,U.jsxs)(`span`,{className:`relative mb-1`,children:[(0,U.jsx)(`span`,{className:`grid size-24 place-items-center overflow-hidden rounded-full bg-secondary`,children:e.avatar?(0,U.jsx)(`img`,{src:e.avatar,alt:e.displayName,className:`size-full object-cover`}):(0,U.jsx)(`span`,{className:`text-2xl font-bold`,children:e.displayName.charAt(0)})}),(0,U.jsx)(`span`,{className:`absolute bottom-1.5 right-1 size-5 rounded-full bg-google-play-green ring-[3px] ring-background`})]}),(0,U.jsx)(`span`,{className:`w-full truncate text-center text-sm font-semibold`,children:e.displayName}),(0,U.jsx)(`span`,{className:`w-full truncate text-center text-sm text-muted-foreground`,children:o[t]?.name??`Jugando`})]},e.id))]}),(0,U.jsx)(`h2`,{className:`mt-8 text-2xl font-extrabold`,children:`Recomendadas para ti`}),(0,U.jsx)(`div`,{className:`mt-4 grid grid-cols-2 gap-x-4 gap-y-5`,children:o.slice(0,4).map(e=>(0,U.jsxs)(`article`,{children:[(0,U.jsx)(`div`,{className:`aspect-video overflow-hidden rounded-xl bg-secondary`,children:(e.thumbnail??e.icon)&&(0,U.jsx)(`img`,{src:e.thumbnail??e.icon??``,alt:e.name,className:`size-full object-cover`,loading:`lazy`})}),(0,U.jsx)(`p`,{className:`mt-2 truncate text-lg font-bold`,children:e.name}),(0,U.jsxs)(`p`,{className:`flex items-center gap-1.5 text-muted-foreground`,children:[(0,U.jsx)(_e,{className:`size-4 fill-current`}),`Valoración de `,e.rating??90,`%`]})]},e.id))}),(0,U.jsxs)(`h2`,{className:`mt-8 flex items-center gap-2 text-2xl font-extrabold`,children:[`Continuar `,(0,U.jsx)(ie,{className:`size-6`})]}),(0,U.jsx)(`div`,{className:`-mx-5 mt-4 flex gap-3 overflow-x-auto px-5 pb-1`,children:o.slice(4).map(e=>(0,U.jsx)(`div`,{className:`aspect-video w-36 shrink-0 overflow-hidden rounded-xl bg-secondary`,children:(e.thumbnail??e.icon)&&(0,U.jsx)(`img`,{src:e.thumbnail??e.icon??``,alt:e.name,className:`size-full object-cover`,loading:`lazy`})},e.id))}),(0,U.jsx)(`p`,{className:`mt-8 text-center text-[10px] text-muted-foreground/50`,children:`Página de broma, sin relación con Roblox. Nada de lo que aparece aquí es real.`})]})]}),(0,U.jsx)(`nav`,{className:`border-t border-border bg-background`,children:(0,U.jsxs)(`div`,{className:`mx-auto flex max-w-2xl items-center justify-around px-4 py-2 text-sm text-muted-foreground`,children:[(0,U.jsxs)(`button`,{className:`flex flex-col items-center gap-1 text-foreground`,children:[(0,U.jsx)(N,{className:`size-7 fill-current`}),` Inicio`]}),(0,U.jsxs)(`button`,{className:`flex flex-col items-center gap-1`,children:[(0,U.jsx)(re,{className:`size-7`}),` Destacadas`]}),(0,U.jsxs)(`button`,{onClick:r,className:`flex flex-col items-center gap-1`,children:[(0,U.jsx)(u,{className:`size-7 text-xs`}),` Avatar`]}),(0,U.jsxs)(`button`,{className:`flex flex-col items-center gap-1`,children:[(0,U.jsx)(I,{className:`size-7`}),` Chat`]})]})})]})}var je=`/assets/market-items-grid-D9SfaIb5.jpg`,Me=[`Todos`,`Avatares`,`Fondos`,`Cuerpo`],Ne=[{id:`pelos-chic`,name:`Pelos de chic...`,creator:`viorrz`,verified:!0,price:65,category:`Avatares`,cell:0},{id:`pelo-emo`,name:`Pelo emo des...`,creator:`COSM!CANGE`,verified:!1,price:65,category:`Avatares`,cell:1},{id:`cara-emocion`,name:`Cara emocion...`,creator:`Evaekoo`,verified:!0,price:75,category:`Cuerpo`,cell:2},{id:`bolso-boo`,name:`Bolso Boo!`,creator:`lunacraft`,verified:!1,price:120,category:`Avatares`,cell:3},{id:`pelo-gorra`,name:`Pelo con gorra`,creator:`novaByte`,verified:!0,price:90,category:`Avatares`,cell:4},{id:`cara-calmada`,name:`Cara calmada`,creator:`Evaekoo`,verified:!0,price:75,category:`Cuerpo`,cell:5},{id:`mochila-ghost`,name:`Mochila ghost`,creator:`kayoDev`,verified:!1,price:250,category:`Avatares`,cell:6},{id:`melena-rosa`,name:`Melena rosa`,creator:`auroraX`,verified:!0,price:145,category:`Avatares`,cell:7},{id:`corona-oro`,name:`Corona de oro`,creator:`Roblox`,verified:!0,price:800,category:`Avatares`,cell:8},{id:`fondo-atardecer`,name:`Fondo atardecer`,creator:`auroraX`,verified:!0,price:40,category:`Fondos`,gradient:`linear-gradient(160deg, oklch(0.86 0.12 60), oklch(0.55 0.18 20))`},{id:`fondo-nebulosa`,name:`Fondo nebulosa`,creator:`novaByte`,verified:!1,price:60,category:`Fondos`,gradient:`radial-gradient(circle at 30% 30%, oklch(0.5 0.16 280), oklch(0.2 0.08 260))`}],Pe={hair:`#e3e9f2`,torso:`#f4f5f7`,legs:`#e6e8ec`},Fe=[{key:`hair`,label:`Pelo`,options:[`#e3e9f2`,`#f6c6d8`,`#c9a26a`,`#2b2b31`]},{key:`torso`,label:`Camiseta`,options:[`#f4f5f7`,`#1f2937`,`#7f1d1d`,`#1d4ed8`]},{key:`legs`,label:`Pantalón`,options:[`#e6e8ec`,`#111827`,`#4b5563`,`#78350f`]}];function Ie({profile:e,balance:t,onClose:n,onSpend:r}){let[i,a]=(0,f.useState)(`mercado`),[o,s]=(0,f.useState)(`Todos`),[c,l]=(0,f.useState)(!0),[u,d]=(0,f.useState)(!1),[p,m]=(0,f.useState)(``),[h,g]=(0,f.useState)([]),[_,v]=(0,f.useState)(null),[y,b]=(0,f.useState)(Pe),[x,S]=(0,f.useState)([]),[C,w]=(0,f.useState)([]),T=e=>{S(e=>[...e,y]),w([]),b(e)},E=()=>{let e=x[x.length-1];e&&(S(e=>e.slice(0,-1)),w(e=>[y,...e]),b(e))},D=()=>{let e=C[0];e&&(w(e=>e.slice(1)),S(e=>[...e,y]),b(e))},O=Ne.filter(e=>(o===`Todos`||e.category===o)&&(p.trim()===``||e.name.toLowerCase().includes(p.trim().toLowerCase())||e.creator.toLowerCase().includes(p.trim().toLowerCase()))),k=e=>{t<e.price||(r(e.price),g(t=>[...t,e.id]),v(null))};return(0,U.jsxs)(`div`,{className:`fixed inset-0 z-50 flex flex-col bg-background text-foreground`,children:[(0,U.jsxs)(`div`,{className:`flex-1 overflow-y-auto`,children:[(0,U.jsxs)(`header`,{className:`flex items-center justify-between px-4 pb-2 pt-4`,children:[(0,U.jsx)(`button`,{onClick:n,"aria-label":`Volver`,className:`grid size-9 place-items-center rounded-full hover:bg-secondary`,children:(0,U.jsx)(j,{className:`size-6`})}),(0,U.jsxs)(`div`,{className:`flex items-center gap-1 rounded-full bg-secondary p-1`,children:[(0,U.jsx)(`button`,{onClick:()=>a(`mercado`),className:`rounded-full px-4 py-1.5 text-sm font-bold ${i===`mercado`?`bg-background text-foreground`:`text-muted-foreground`}`,children:`Mercado`}),(0,U.jsx)(`button`,{onClick:()=>a(`personalizar`),className:`rounded-full px-4 py-1.5 text-sm font-bold ${i===`personalizar`?`bg-background text-foreground`:`text-muted-foreground`}`,children:`Personalizar`})]}),(0,U.jsx)(`button`,{onClick:()=>d(e=>!e),"aria-label":`Buscar`,className:`grid size-9 place-items-center rounded-full hover:bg-secondary`,children:(0,U.jsx)(R,{className:`size-6`})})]}),(0,U.jsxs)(`div`,{className:`market-stage relative mx-auto mt-2 h-[46vh] max-h-[420px] min-h-[280px] w-full overflow-hidden`,children:[(0,U.jsxs)(`div`,{className:`absolute left-3 top-3 flex flex-col items-center gap-1 rounded-2xl bg-card/85 p-1.5 backdrop-blur`,children:[(0,U.jsx)(`span`,{className:`grid size-9 place-items-center overflow-hidden rounded-full bg-secondary text-sm font-bold`,children:e?.avatar?(0,U.jsx)(`img`,{src:e.avatar,alt:`Avatar de ${e.displayName}`,className:`size-full object-cover`,width:150,height:150,loading:`lazy`}):e?.displayName.charAt(0).toUpperCase()??`A`}),(0,U.jsxs)(`span`,{className:`relative grid size-9 place-items-center rounded-full bg-secondary`,children:[(0,U.jsx)(L,{className:`size-5`}),(0,U.jsx)(z,{className:`absolute -bottom-0.5 -right-0.5 size-3.5`})]})]}),(0,U.jsxs)(`div`,{className:`absolute right-3 top-3 flex items-center gap-1.5 rounded-full bg-card/85 px-3 py-1.5 backdrop-blur`,children:[(0,U.jsx)(W,{className:`size-4`}),(0,U.jsx)(`span`,{className:`text-sm font-bold`,children:t.toLocaleString(`en-US`)})]}),(0,U.jsxs)(`div`,{className:`absolute bottom-3 left-3 flex items-center gap-1 rounded-full bg-card/85 px-2 py-1.5 backdrop-blur`,children:[(0,U.jsx)(`button`,{onClick:E,"aria-label":`Deshacer`,disabled:!x.length,className:`grid size-8 place-items-center rounded-full disabled:opacity-40`,children:(0,U.jsx)(ve,{className:`size-5`})}),(0,U.jsx)(`button`,{onClick:D,"aria-label":`Rehacer`,disabled:!C.length,className:`grid size-8 place-items-center rounded-full disabled:opacity-40`,children:(0,U.jsx)(fe,{className:`size-5`})})]}),(0,U.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-6 flex justify-center`,children:(0,U.jsx)(Le,{profile:e,colors:y})})]}),c&&(0,U.jsxs)(`div`,{className:`mx-auto mt-3 flex max-w-2xl items-center gap-3 bg-card px-4 py-3`,children:[(0,U.jsx)(ge,{className:`size-4 shrink-0 text-roblox-blue`}),(0,U.jsx)(`p`,{className:`flex-1 text-sm font-semibold`,children:`El 50% de descuento finaliza el 14 de nov`}),(0,U.jsx)(`button`,{onClick:()=>l(!1),"aria-label":`Cerrar aviso`,className:`text-muted-foreground`,children:(0,U.jsx)(H,{className:`size-4`})})]}),(0,U.jsxs)(`div`,{className:`mx-auto mt-2 flex max-w-2xl items-center gap-1 border-b border-border px-4`,children:[Me.map(e=>(0,U.jsx)(`button`,{onClick:()=>s(e),className:`px-3 py-2 text-sm font-bold ${o===e?`border-b-2 border-foreground text-foreground`:`text-muted-foreground`}`,children:e},e)),(0,U.jsx)(`button`,{"aria-label":`Filtros`,className:`ml-auto grid size-9 place-items-center rounded-full hover:bg-secondary`,children:(0,U.jsx)(he,{className:`size-5`})})]}),u&&(0,U.jsx)(`div`,{className:`mx-auto max-w-2xl px-4 pt-3`,children:(0,U.jsx)(`input`,{autoFocus:!0,value:p,onChange:e=>m(e.target.value),placeholder:`Buscar artículos`,className:`w-full rounded-xl bg-secondary px-4 py-2.5 text-sm outline-none ring-1 ring-border focus:ring-2 focus:ring-primary`})}),(0,U.jsxs)(`main`,{className:`mx-auto max-w-2xl px-4 pb-10 pt-3`,children:[i===`mercado`?O.length?(0,U.jsx)(`div`,{className:`grid grid-cols-3 gap-3`,children:O.map(e=>{let t=h.includes(e.id);return(0,U.jsxs)(`button`,{onClick:()=>v(e),className:`rounded-xl bg-card p-1.5 text-left`,children:[(0,U.jsxs)(`span`,{className:`relative block aspect-square overflow-hidden rounded-lg bg-secondary`,children:[e.cell==null?(0,U.jsx)(`span`,{"aria-hidden":!0,className:`block size-full`,style:{background:e.gradient}}):(0,U.jsx)(`span`,{"aria-hidden":!0,className:`block size-full`,style:{backgroundImage:`url(${je})`,backgroundSize:`300% 300%`,backgroundPosition:`${e.cell%3*50}% ${Math.floor(e.cell/3)*50}%`}}),t&&(0,U.jsx)(`span`,{className:`absolute inset-0 grid place-items-center bg-background/70`,children:(0,U.jsx)(M,{className:`size-7 text-roblox-blue`,strokeWidth:3})})]}),(0,U.jsx)(`p`,{className:`mt-1.5 truncate text-xs font-bold`,children:e.name}),(0,U.jsxs)(`p`,{className:`flex items-center gap-1 truncate text-[11px] text-muted-foreground`,children:[e.creator,e.verified&&(0,U.jsx)(`img`,{src:G.url,alt:`Verificado`,className:`size-2.5 shrink-0 object-contain`})]}),(0,U.jsxs)(`p`,{className:`mt-0.5 flex items-center gap-1 text-xs font-extrabold`,children:[(0,U.jsx)(W,{className:`size-3`}),` `,e.price]})]},e.id)})}):(0,U.jsx)(`p`,{className:`py-10 text-center text-sm text-muted-foreground`,children:`No hay artículos con ese nombre`}):(0,U.jsxs)(`div`,{className:`space-y-5`,children:[Fe.map(e=>(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`p`,{className:`text-sm font-bold`,children:e.label}),(0,U.jsx)(`div`,{className:`mt-2 flex gap-2`,children:e.options.map(t=>(0,U.jsx)(`button`,{onClick:()=>T({...y,[e.key]:t}),"aria-label":`${e.label} ${t}`,className:`size-10 rounded-full ring-2 ${y[e.key]===t?`ring-foreground`:`ring-border`}`,style:{background:t}},t))})]},e.key)),(0,U.jsx)(`button`,{onClick:()=>T(Pe),className:`rounded-xl bg-secondary px-4 py-2.5 text-sm font-bold ring-1 ring-border`,children:`Volver al inicio`})]}),(0,U.jsx)(`p`,{className:`mt-8 text-center text-[10px] text-muted-foreground/50`,children:`Página de broma, sin relación con Roblox. Nada de lo que aparece aquí es real.`})]})]}),_&&(0,U.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-end justify-center bg-black/70 sm:items-center sm:p-4`,onClick:()=>v(null),children:(0,U.jsxs)(`div`,{className:`w-full max-w-md rounded-t-2xl bg-card p-5 shadow-2xl sm:rounded-2xl`,onClick:e=>e.stopPropagation(),children:[(0,U.jsx)(`div`,{className:`flex justify-center pb-3`,children:(0,U.jsx)(`span`,{className:`h-1.5 w-12 rounded-full bg-muted`})}),(0,U.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,U.jsx)(`span`,{className:`grid size-14 shrink-0 place-items-center overflow-hidden rounded-xl bg-secondary`,children:_.cell==null?(0,U.jsx)(`span`,{"aria-hidden":!0,className:`block size-full`,style:{background:_.gradient}}):(0,U.jsx)(`span`,{"aria-hidden":!0,className:`block size-full`,style:{backgroundImage:`url(/assets/market-items-grid-D9SfaIb5.jpg)`,backgroundSize:`300% 300%`,backgroundPosition:`${_.cell%3*50}% ${Math.floor(_.cell/3)*50}%`}})}),(0,U.jsxs)(`div`,{className:`flex-1`,children:[(0,U.jsx)(`p`,{className:`text-base font-bold`,children:_.name}),(0,U.jsxs)(`p`,{className:`flex items-center gap-1 text-sm text-muted-foreground`,children:[_.creator,_.verified&&(0,U.jsx)(`img`,{src:G.url,alt:`Verificado`,className:`size-3 object-contain`})]})]}),(0,U.jsxs)(`span`,{className:`flex items-center gap-1 text-base font-extrabold`,children:[(0,U.jsx)(W,{className:`size-4`}),` `,_.price]})]}),(0,U.jsxs)(`button`,{onClick:()=>k(_),disabled:t<_.price,className:`mt-4 w-full rounded-xl bg-primary py-3 text-base font-bold text-primary-foreground disabled:opacity-40`,children:[`Comprar por `,_.price,` Robux`]}),t<_.price&&(0,U.jsx)(`p`,{className:`mt-2 text-center text-xs text-muted-foreground`,children:`No te llegan los Robux para este artículo`}),(0,U.jsx)(`button`,{onClick:()=>v(null),className:`mt-2 w-full rounded-xl bg-secondary py-3 text-base font-bold ring-1 ring-border`,children:`Cancelar`})]})})]})}function Le({profile:e,colors:t}){let[n,r]=(0,f.useState)(null);if((0,f.useEffect)(()=>{if(r(null),!e?.id)return;let t=!0;return Te({data:{userId:e.id}}).then(e=>t&&r(e)).catch(()=>{}),()=>{t=!1}},[e?.id]),n)return(0,U.jsx)(`img`,{src:n,alt:`Personaje de ${e?.displayName??``}`,className:`h-[280px] w-[280px] object-contain`,width:420,height:420});let i=e?.displayName.charAt(0).toUpperCase()??`A`;return(0,U.jsxs)(`div`,{className:`relative h-[250px] w-[210px]`,"aria-hidden":!0,children:[(0,U.jsx)(`span`,{className:`absolute bottom-1 left-1/2 h-4 w-32 -translate-x-1/2 rounded-full bg-black/25 blur-[6px]`}),(0,U.jsx)(`span`,{className:`absolute bottom-4 left-[calc(50%-30px)] h-[72px] w-[26px] rounded-[6px]`,style:{background:t.legs}}),(0,U.jsx)(`span`,{className:`absolute bottom-4 left-[calc(50%+4px)] h-[72px] w-[26px] rounded-[6px]`,style:{background:t.legs}}),(0,U.jsx)(`span`,{className:`absolute top-[92px] left-[calc(50%-70px)] h-[74px] w-[24px] rounded-[6px] bg-market-skin`}),(0,U.jsx)(`span`,{className:`absolute top-[92px] left-[calc(50%+46px)] h-[74px] w-[24px] rounded-[6px] bg-market-skin`}),(0,U.jsx)(`span`,{className:`absolute top-[86px] left-1/2 h-[82px] w-[88px] -translate-x-1/2 rounded-[8px]`,style:{background:t.torso}}),(0,U.jsx)(`span`,{className:`absolute top-[6px] left-1/2 h-[30px] w-[86px] -translate-x-1/2 rounded-t-[18px] rounded-b-[8px]`,style:{background:t.hair}}),(0,U.jsx)(`span`,{className:`absolute top-[16px] left-1/2 grid size-[68px] -translate-x-1/2 place-items-center overflow-hidden rounded-[12px] bg-market-skin text-2xl font-extrabold text-black/50`,children:e?.avatar?(0,U.jsx)(`img`,{src:e.avatar,alt:``,className:`size-full object-cover`,width:150,height:150,loading:`lazy`}):i})]})}function Re(e){return{name:e.name,displayName:e.displayName,verified:e.verified,avatar:e.avatar,color:`oklch(0.68 0.16 ${e.id%360})`,joined:2013+e.id%12}}function $(e){let t=0;for(let n of e)t=t*31+n.charCodeAt(0)>>>0;return t}function ze({onClose:e,onSendRobux:t}){let[n,r]=(0,f.useState)(!1),[i,a]=(0,f.useState)(``),[o,s]=(0,f.useState)([]),[c,l]=(0,f.useState)(!1),[u,d]=(0,f.useState)(null),p=i.trim();return(0,f.useEffect)(()=>{if(!p){s([]),l(!1);return}l(!0);let e=!1,t=setTimeout(async()=>{try{let t=await K({data:{keyword:p}});e||s(t)}catch{e||s([])}finally{e||l(!1)}},350);return()=>{e=!0,clearTimeout(t)}},[p]),(0,U.jsxs)(`div`,{className:`fixed inset-0 z-[55] overflow-y-auto bg-background text-foreground`,children:[(0,U.jsxs)(`div`,{className:`mx-auto max-w-2xl px-4 pb-10`,children:[n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-4 py-4`,children:[(0,U.jsxs)(`div`,{className:`flex flex-1 items-center gap-2 rounded-lg border border-foreground px-3 py-2.5`,children:[(0,U.jsx)(R,{className:`size-5 text-muted-foreground`}),(0,U.jsx)(`input`,{autoFocus:!0,value:i,maxLength:40,onChange:e=>a(e.target.value),placeholder:`Buscar personas`,className:`w-full bg-transparent outline-none placeholder:text-muted-foreground`}),i&&(0,U.jsx)(`button`,{onClick:()=>a(``),"aria-label":`Borrar`,children:(0,U.jsx)(ae,{className:`size-5 text-muted-foreground`})})]}),(0,U.jsx)(`button`,{onClick:()=>{r(!1),a(``)},className:`font-bold`,children:`Cancelar`})]}),!p&&(0,U.jsxs)(`div`,{className:`mt-24 flex flex-col items-center text-center text-muted-foreground`,children:[(0,U.jsx)(R,{className:`size-16 text-foreground`,strokeWidth:1.3}),(0,U.jsx)(`p`,{className:`mt-6`,children:`Busca personas por su nombre de usuario o nombre visible`})]}),c&&(0,U.jsx)(`div`,{className:`mt-10 flex justify-center`,children:(0,U.jsx)(P,{className:`size-6 animate-spin text-muted-foreground`})}),!c&&p&&o.length===0&&(0,U.jsx)(`p`,{className:`mt-10 text-center text-muted-foreground`,children:`No se encontró a nadie`}),(0,U.jsx)(`div`,{className:`mt-2 grid grid-cols-2 gap-4`,children:!c&&o.map(e=>(0,U.jsxs)(`button`,{onClick:()=>d(e),className:`text-left`,children:[(0,U.jsx)(`span`,{className:`grid aspect-square place-items-center overflow-hidden rounded-xl bg-gradient-to-b from-secondary to-card`,children:e.avatar?(0,U.jsx)(`img`,{src:e.avatar,alt:e.displayName,className:`size-3/4 object-contain`}):(0,U.jsx)(`span`,{className:`text-4xl font-bold`,children:e.displayName.charAt(0)})}),(0,U.jsx)(`span`,{className:`mt-2 block truncate text-lg font-extrabold`,children:e.displayName}),(0,U.jsxs)(`span`,{className:`block truncate text-sm text-muted-foreground`,children:[`@`,e.name]}),(0,U.jsxs)(`span`,{className:`mt-0.5 flex items-center gap-1 text-sm text-muted-foreground`,children:[(0,U.jsx)(V,{className:`size-3.5`}),` `,$(e.name)%4,` amistades en común`]})]},e.id))})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-4 py-4`,children:[(0,U.jsx)(`button`,{onClick:e,"aria-label":`Volver`,children:(0,U.jsx)(j,{className:`size-6`})}),(0,U.jsxs)(`button`,{onClick:()=>r(!0),className:`flex flex-1 items-center gap-2 rounded-lg border border-border px-3 py-2.5 text-muted-foreground`,children:[(0,U.jsx)(R,{className:`size-5`}),` Buscar personas`]})]}),(0,U.jsxs)(`div`,{className:`grid grid-cols-2 border-b border-border text-center font-medium`,children:[(0,U.jsx)(`span`,{className:`border-b-2 border-foreground pb-3`,children:`Añadir amigos`}),(0,U.jsx)(`span`,{className:`pb-3 text-muted-foreground`,children:`Amistades`})]}),(0,U.jsxs)(`div`,{className:`mt-6 flex w-20 flex-col items-center gap-2`,children:[(0,U.jsx)(`span`,{className:`grid size-20 place-items-center rounded-full bg-secondary`,children:(0,U.jsx)(de,{className:`size-7`})}),(0,U.jsx)(`span`,{className:`text-xs`,children:`Código QR`})]}),(0,U.jsxs)(`div`,{className:`mt-12 flex flex-col items-center text-center`,children:[(0,U.jsx)(`span`,{className:`grid size-32 rotate-[-12deg] place-items-center rounded-lg border border-border`,children:(0,U.jsx)(B,{className:`size-14 rotate-12`,strokeWidth:1.3})}),(0,U.jsx)(`h2`,{className:`mt-8 text-xl font-extrabold`,children:`Es mejor si lo disfrutas con tus amigos`}),(0,U.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:`¿Con quién vas a jugar? ¡Añade amigos para hacer más!`})]})]}),(0,U.jsx)(`p`,{className:`mt-10 text-center text-[10px] text-muted-foreground/50`,children:`Es una broma`})]}),u&&(0,U.jsx)(`div`,{className:`fixed inset-0 z-[56] flex items-end bg-black/70`,onClick:()=>d(null),children:(0,U.jsx)(`div`,{className:`w-full overflow-hidden bg-card`,onClick:e=>e.stopPropagation(),children:(0,U.jsxs)(`div`,{className:`mx-auto max-w-2xl`,children:[(0,U.jsx)(`div`,{className:`grid h-64 place-items-center bg-gradient-to-br from-accent via-secondary to-card`,children:u.avatar&&(0,U.jsx)(`img`,{src:u.avatar,alt:u.displayName,className:`size-48 object-contain`})}),(0,U.jsxs)(`div`,{className:`px-4 pb-6`,children:[(0,U.jsxs)(`div`,{className:`-mt-10 flex items-end gap-4`,children:[(0,U.jsx)(`span`,{className:`grid size-24 place-items-center overflow-hidden rounded-full bg-secondary ring-4 ring-card`,children:u.avatar?(0,U.jsx)(`img`,{src:u.avatar,alt:``,className:`size-full object-cover`}):(0,U.jsx)(`span`,{className:`text-3xl font-bold`,children:u.displayName.charAt(0)})}),(0,U.jsxs)(`div`,{className:`pb-2`,children:[(0,U.jsx)(`p`,{className:`text-2xl font-extrabold`,children:u.displayName}),(0,U.jsxs)(`p`,{className:`text-muted-foreground`,children:[`@`,u.name]})]})]}),(0,U.jsxs)(`div`,{className:`mt-4 flex gap-2 overflow-x-auto text-sm font-medium`,children:[(0,U.jsxs)(`span`,{className:`shrink-0 rounded-full bg-secondary px-4 py-2`,children:[$(u.name)%9,` Mutuas`]}),(0,U.jsxs)(`span`,{className:`shrink-0 rounded-full bg-secondary px-4 py-2`,children:[20+$(u.name)%180,` Amigos`]}),(0,U.jsxs)(`span`,{className:`shrink-0 rounded-full bg-secondary px-4 py-2`,children:[($(u.name)%12e3).toLocaleString(`es-ES`),` Seguidores`]})]}),(0,U.jsxs)(`div`,{className:`mt-4 grid grid-cols-[1fr_1fr_auto] gap-2`,children:[(0,U.jsx)(`button`,{className:`rounded-lg bg-secondary py-3 font-medium`,children:`Chat`}),(0,U.jsx)(`button`,{onClick:()=>t(Re(u)),className:`rounded-lg bg-secondary py-3 font-medium`,children:`Enviar Robux`}),(0,U.jsx)(`button`,{className:`rounded-lg bg-secondary px-5 py-3 font-bold`,children:`···`})]})]})]})})})]})}var Be={version:1,asset_id:`0cfc93e2-ddf6-40f8-9b76-6d8c6cc3fbd6`,project_id:`30467574-0886-488a-bea9-c4681e3a8377`,url:`/__l5e/assets-v1/0cfc93e2-ddf6-40f8-9b76-6d8c6cc3fbd6/roblox-app-icon-solid.png`,r2_key:`a/v1/30467574-0886-488a-bea9-c4681e3a8377/0cfc93e2-ddf6-40f8-9b76-6d8c6cc3fbd6/roblox-app-icon-solid.png`,original_filename:`roblox-app-icon-solid.png`,size:81309,content_type:`image/png`,created_at:`2026-10-01T05:26:48Z`};function Ve({item:e,onClose:t,onSuccess:n}){let[r,i]=(0,f.useState)(`buy`);return(0,f.useEffect)(()=>{if(r!==`processing`)return;let t=setTimeout(()=>{i(`success`),n(e.robux)},2200);return()=>clearTimeout(t)},[r,e.robux,n]),(0,f.useEffect)(()=>{if(r!==`success`)return;let e=setTimeout(()=>i(`delivered`),1600);return()=>clearTimeout(e)},[r]),r===`delivered`?(0,U.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-6`,children:(0,U.jsxs)(`div`,{role:`alertdialog`,"aria-label":`Purchase successful`,className:`w-full max-w-xs rounded-2xl bg-card px-6 pb-5 pt-6 shadow-2xl`,children:[(0,U.jsx)(`p`,{className:`text-base leading-relaxed text-foreground`,children:`Purchase successful, your product will be delivered shortly.`}),(0,U.jsx)(`button`,{onClick:t,className:`mt-6 text-base font-bold text-foreground`,children:`OK`})]})}):(0,U.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-end justify-center bg-black/70 p-0 sm:items-center sm:p-4`,onClick:t,children:(0,U.jsxs)(`div`,{className:`w-full max-w-md rounded-t-2xl bg-card p-4 shadow-2xl sm:rounded-2xl`,onClick:e=>e.stopPropagation(),children:[(0,U.jsx)(`div`,{className:`flex justify-center pb-3`,children:(0,U.jsx)(`div`,{className:`h-1.5 w-12 rounded-full bg-muted`})}),(0,U.jsxs)(`div`,{className:`flex items-center justify-between pb-4`,children:[(0,U.jsx)(`span`,{className:`text-lg font-semibold`,children:`Google Play`}),(0,U.jsx)(`button`,{onClick:t,className:`grid size-8 place-items-center rounded-full hover:bg-secondary`,"aria-label":`Cerrar`,children:(0,U.jsx)(H,{className:`size-5`})})]}),r===`buy`&&(0,U.jsxs)(`div`,{className:`space-y-4`,children:[(0,U.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,U.jsx)(`img`,{src:Be.url,alt:`Roblox`,className:`size-14 rounded-2xl object-cover`}),(0,U.jsxs)(`div`,{className:`flex-1 pt-0.5`,children:[(0,U.jsx)(`p`,{className:`text-base font-bold`,children:e.title}),(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e.subtitle})]}),(0,U.jsx)(`span`,{className:`pt-0.5 text-lg font-bold`,children:e.price})]}),(0,U.jsxs)(`div`,{className:`flex items-center gap-2 text-sm`,children:[(0,U.jsx)(`span`,{className:`text-base`,children:`🎁`}),(0,U.jsxs)(`span`,{children:[`Earning `,(0,U.jsx)(`span`,{className:`font-semibold text-roblox-blue`,children:`+5 points`})]})]}),(0,U.jsxs)(`div`,{className:`flex items-center justify-between rounded-xl bg-secondary/60 px-3 py-3`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,U.jsx)(`span`,{className:`rounded bg-foreground px-1.5 py-0.5 text-xs font-bold text-background`,children:`VISA`}),(0,U.jsx)(`span`,{className:`text-sm font-medium`,children:`Visa - 2452`})]}),(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:`›`})]}),(0,U.jsxs)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:[`The`,` `,(0,U.jsx)(`span`,{className:`underline decoration-muted-foreground/50`,children:`Privacy Notice`}),` `,`describes how your data is handled. Your refund rights vary by product type.`,` `,(0,U.jsx)(`span`,{className:`underline decoration-muted-foreground/50`,children:`Google Play Terms of Service`}),` `,`and`,` `,(0,U.jsx)(`span`,{className:`underline decoration-muted-foreground/50`,children:`Refund Policy`}),`.`]}),(0,U.jsx)(`button`,{onClick:()=>i(`processing`),className:`w-full rounded-xl bg-google-play-green py-3.5 text-center text-lg font-bold text-white shadow-lg`,children:`Buy`})]}),r===`processing`&&(0,U.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-10`,children:[(0,U.jsxs)(`div`,{className:`relative grid size-20 place-items-center rounded-full border-4 border-muted`,children:[(0,U.jsx)(le,{className:`size-8 text-foreground`}),(0,U.jsx)(`div`,{className:`absolute inset-0 rounded-full border-4 border-transparent border-t-foreground animate-spin`})]}),(0,U.jsx)(`p`,{className:`mt-6 text-lg font-medium`,children:`Processing`})]}),r===`success`&&(0,U.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-10`,children:[(0,U.jsx)(`div`,{className:`grid size-20 place-items-center rounded-full bg-roblox-blue`,children:(0,U.jsx)(M,{className:`size-10 text-white`,strokeWidth:3})}),(0,U.jsx)(`p`,{className:`mt-6 text-lg font-semibold`,children:`Payment successful`})]})]})})}var He=`/assets/gold-crown-reference-B_yElNr2.png`,Ue=[{robux:11e3,old:1e4,price:`$119.00`},{robux:5250,old:4500,price:`$59.50`},{robux:2200,old:1700,price:`$24.99`},{robux:1e3,old:800,price:`$11.99`}];function We(){let[e,t]=(0,f.useState)(1e4),[n,r]=(0,f.useState)(!1),[i,a]=(0,f.useState)(null),[o,s]=(0,f.useState)(!1),[c,l]=(0,f.useState)(null),[u,d]=(0,f.useState)(!1),[p,m]=(0,f.useState)(`10000`),[h,g]=(0,f.useState)(!1),[_,v]=(0,f.useState)(!1),[y,b]=(0,f.useState)(!1),[x,S]=(0,f.useState)(!1),[C,w]=(0,f.useState)(null),T=[{icon:N,label:`Inicio`},{icon:be,label:`Perfil`},{icon:I,label:`Mensajes`,badge:1},{icon:V,label:`Conectar`,badge:163},{icon:L,label:`Avatar`},{icon:ee,label:`Inventario`},{icon:pe,label:`Intercambiar`},{icon:xe,label:`Comunidades`},{icon:ue,label:`Sala de prensa`},{icon:me,label:`Tienda oficial`},{icon:se,label:`Comprar tarjetas`}];return(0,U.jsxs)(`div`,{className:`min-h-screen bg-background text-foreground`,children:[(0,U.jsxs)(`header`,{className:`border-b border-border`,children:[(0,U.jsxs)(`div`,{className:`mx-auto flex max-w-2xl items-center justify-between px-4 py-3`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,U.jsx)(`button`,{onClick:()=>g(!0),"aria-label":`Menú`,children:(0,U.jsx)(F,{className:`size-6`})}),(0,U.jsx)(`img`,{src:Q.url,alt:`Logo`,className:`size-8 object-contain`,width:512,height:512})]}),(0,U.jsxs)(`div`,{className:`flex items-center gap-4 text-muted-foreground`,children:[(0,U.jsx)(`button`,{onClick:()=>s(!0),"aria-label":`Tu perfil`,className:`grid size-7 place-items-center overflow-hidden rounded-full bg-secondary text-xs font-bold text-foreground ring-1 ring-border`,children:c?.avatar?(0,U.jsx)(`img`,{src:c.avatar,alt:`Avatar de ${c.displayName}`,className:`size-full object-cover`,width:150,height:150}):c?.displayName.charAt(0).toUpperCase()??`A`}),(0,U.jsx)(R,{className:`size-5`}),(0,U.jsx)(W,{className:`size-5`}),(0,U.jsx)(z,{className:`size-5`})]})]}),(0,U.jsxs)(`nav`,{className:`mx-auto flex max-w-2xl items-center justify-between px-4 pb-3 text-base font-bold`,children:[(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:`Charts`}),(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:`Marketplace`}),(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:`Create`}),(0,U.jsx)(`span`,{children:`Robux`})]})]}),(0,U.jsxs)(`main`,{className:`mx-auto max-w-2xl px-4 pb-16`,children:[(0,U.jsxs)(`div`,{className:`mt-4 flex items-center justify-between rounded-xl bg-card px-4 py-3`,children:[(0,U.jsxs)(`button`,{onClick:()=>{m(String(e)),d(!0)},"aria-label":`Editar saldo`,className:`flex items-center gap-2 text-2xl font-extrabold`,children:[(0,U.jsx)(W,{className:`size-6`}),e.toLocaleString(`en-US`)]}),(0,U.jsxs)(`button`,{onClick:()=>r(!0),className:`flex items-center gap-2 rounded-lg bg-secondary px-4 py-2.5 text-sm font-bold ring-1 ring-border`,children:[(0,U.jsx)(ye,{className:`size-4`}),` Send`]})]}),(0,U.jsx)(`h1`,{className:`mt-8 text-[2.6rem] font-extrabold leading-[1.05] tracking-tight`,children:`Enjoy up to 25% more Robux`}),(0,U.jsxs)(`div`,{className:`mt-10 flex items-center justify-between`,children:[(0,U.jsx)(`h2`,{className:`text-lg font-bold`,children:`Limited-time avatar items`}),(0,U.jsx)(`span`,{className:`rounded-full bg-foreground px-3 py-1.5 text-xs font-bold text-background`,children:`12 days left`})]}),(0,U.jsxs)(`article`,{className:`mt-3 overflow-hidden rounded-xl bg-card`,children:[(0,U.jsx)(`div`,{className:`grid h-56 place-items-center bg-card`,children:(0,U.jsx)(`img`,{src:He,alt:`Gold Crown of Ozymandias`,className:`h-44 w-auto object-contain`,width:1024,height:1024,loading:`lazy`})}),(0,U.jsxs)(`div`,{className:`px-4 pb-2 pt-1`,children:[(0,U.jsx)(`p`,{className:`text-base font-bold`,children:`Gold Crown of Ozymandias`}),(0,U.jsxs)(`p`,{className:`mt-0.5 flex items-center gap-1 text-sm text-muted-foreground`,children:[`Roblox `,(0,U.jsx)(`img`,{src:G.url,alt:`Verificado`,className:`size-3 object-contain`})]})]}),(0,U.jsxs)(`div`,{className:`flex items-center justify-between rounded-b-xl bg-secondary/60 px-4 py-3`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-2 text-lg font-extrabold`,children:[(0,U.jsx)(W,{className:`size-5`}),` 24,000`,(0,U.jsxs)(`span`,{className:`flex items-center gap-1 text-sm font-medium text-muted-foreground line-through`,children:[(0,U.jsx)(W,{className:`size-3.5`}),` 22,500`]})]}),(0,U.jsx)(`button`,{onClick:()=>a({title:`24,000 Robux`,subtitle:`Roblox Corporation`,price:`$238.00`,robux:24e3}),className:`rounded-lg bg-secondary px-4 py-2 text-sm font-bold`,children:`$238.00`})]})]}),(0,U.jsx)(`h2`,{className:`mt-10 text-lg font-bold`,children:`Robux packages`}),(0,U.jsx)(`ul`,{className:`mt-3 space-y-2`,children:Ue.map(e=>(0,U.jsxs)(`li`,{className:`flex items-center justify-between rounded-xl bg-card px-4 py-3`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-2 text-lg font-extrabold`,children:[(0,U.jsx)(W,{className:`size-5`}),` `,e.robux.toLocaleString(`en-US`),(0,U.jsx)(`span`,{className:`text-sm font-medium text-muted-foreground line-through`,children:e.old.toLocaleString(`en-US`)})]}),(0,U.jsx)(`button`,{onClick:()=>a({title:`${e.robux.toLocaleString(`en-US`)} Robux`,subtitle:`Roblox Corporation`,price:e.price,robux:e.robux}),className:`rounded-lg bg-secondary px-4 py-2 text-sm font-bold`,children:e.price})]},e.robux))}),(0,U.jsx)(`p`,{className:`mt-8 text-center text-[10px] leading-relaxed text-muted-foreground/50`,children:`Página de broma, sin relación con Roblox. Nada de lo que aparece aquí es real.`})]}),_&&(0,U.jsx)(Ae,{profile:c,onClose:()=>v(!1),onAddFriends:()=>S(!0),onAvatar:()=>b(!0)}),y&&(0,U.jsx)(Ie,{profile:c,balance:e,onClose:()=>b(!1),onSpend:e=>t(t=>Math.max(0,t-e))}),x&&(0,U.jsx)(ze,{onClose:()=>S(!1),onSendRobux:e=>w(e)}),C&&(0,U.jsx)(Z,{balance:e,profileId:c?.id,initialFriend:C,onClose:()=>w(null),onSend:e=>t(t=>Math.max(0,t-e))},C.name),n&&(0,U.jsx)(Z,{balance:e,profileId:c?.id,onClose:()=>r(!1),onSend:e=>t(t=>Math.max(0,t-e))}),i&&(0,U.jsx)(Ve,{item:i,onClose:()=>a(null),onSuccess:e=>t(t=>t+e)}),o&&(0,U.jsx)(Oe,{onClose:()=>s(!1),onSave:e=>{l(e),s(!1)}}),u&&(0,U.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/70 px-4 backdrop-blur-sm`,children:(0,U.jsxs)(`div`,{className:`w-full max-w-sm rounded-2xl bg-popover p-5 text-popover-foreground shadow-2xl ring-1 ring-border`,children:[(0,U.jsxs)(`p`,{className:`flex items-center justify-center gap-2 text-lg font-bold`,children:[(0,U.jsx)(W,{className:`size-5`}),` Tu saldo`]}),(0,U.jsx)(`input`,{autoFocus:!0,type:`number`,min:0,max:999999999,value:p,onChange:e=>m(e.target.value),className:`mt-4 w-full rounded-xl bg-secondary px-4 py-3 text-center text-3xl font-extrabold outline-none ring-1 ring-border focus:ring-2 focus:ring-primary`}),(0,U.jsx)(`p`,{className:`mt-2 text-center text-xs text-muted-foreground`,children:`Escribe la cantidad de Robux que quieras tener`}),(0,U.jsxs)(`div`,{className:`mt-4 grid grid-cols-2 gap-3`,children:[(0,U.jsx)(`button`,{onClick:()=>{let e=Math.max(0,Math.min(999999999,Number(p)||0));t(e),d(!1)},className:`rounded-xl bg-primary py-3 text-base font-bold text-primary-foreground`,children:`Guardar`}),(0,U.jsx)(`button`,{onClick:()=>d(!1),className:`rounded-xl bg-secondary py-3 text-base font-bold text-foreground ring-1 ring-border`,children:`Cancelar`})]})]})}),h&&(0,U.jsx)(`div`,{className:`fixed inset-0 z-50 bg-black/70 backdrop-blur-sm`,onClick:()=>g(!1),children:(0,U.jsxs)(`div`,{className:`flex h-full w-72 flex-col bg-popover text-popover-foreground shadow-2xl`,onClick:e=>e.stopPropagation(),children:[(0,U.jsxs)(`div`,{className:`flex items-center justify-between border-b border-border px-4 py-3`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,U.jsx)(`span`,{className:`grid size-10 place-items-center overflow-hidden rounded-full bg-secondary text-sm font-bold ring-1 ring-border`,children:c?.avatar?(0,U.jsx)(`img`,{src:c.avatar,alt:`Avatar de ${c.displayName}`,className:`size-full object-cover`}):c?.displayName.charAt(0).toUpperCase()??`A`}),(0,U.jsx)(`span`,{className:`text-base font-bold`,children:c?.displayName??`Tu perfil`})]}),(0,U.jsx)(`button`,{onClick:()=>g(!1),"aria-label":`Cerrar menú`,className:`text-muted-foreground hover:text-foreground`,children:(0,U.jsx)(H,{className:`size-5`})})]}),(0,U.jsx)(`nav`,{className:`flex-1 overflow-y-auto px-2 py-3`,children:(0,U.jsx)(`ul`,{className:`space-y-1`,children:T.map(e=>(0,U.jsx)(`li`,{children:(0,U.jsxs)(`button`,{onClick:()=>{e.label===`Inicio`&&(g(!1),v(!0)),e.label===`Avatar`&&(g(!1),b(!0))},className:`flex w-full items-center gap-4 rounded-lg px-3 py-2.5 text-left text-[15px] font-medium transition-colors hover:bg-secondary`,children:[(0,U.jsx)(e.icon,{className:`size-5 text-muted-foreground`}),(0,U.jsx)(`span`,{className:`flex-1`,children:e.label}),e.badge&&(0,U.jsx)(`span`,{className:`rounded-full bg-foreground px-2 py-0.5 text-xs font-bold text-background`,children:e.badge})]})},e.label))})}),(0,U.jsx)(`div`,{className:`p-3`,children:(0,U.jsx)(`button`,{className:`w-full rounded-xl bg-foreground py-3 text-base font-bold text-background`,children:`Roblox Plus`})})]})})]})}export{We as component};