PageSourceSearch

https://svelte-gui.vercel.app/_app/immutable/nodes/3.C_DhrUI6.js

js svelte-gui.vercel.app collected 2026-10-03 07:49:51 UTC 10,817 bytes, 1 lines download raw bytes

1import{R as re,g as ae}from"../chunks/CjW3QDDR.js";import{a as b,h as se,C as w,S as P,B as k,w as A,d as U,G as ie,s as de,H as le}from"../chunks/BZswxNXH.js";import{a as v,f as g,t as W}from"../chunks/C0cQEkWW.js";import"../chunks/DEJKHG37.js";import{p as oe,d as ne,m as ce,u as ve,a as ue,T as xe,s as r,c as e,$ as ge,j as i,r as t,f as z,t as pe}from"../chunks/kx_jD5YQ.js";import{s as B}from"../chunks/BeO4cpZ-.js";import{F as G}from"../chunks/DpGY8gOm.js";import{A as me}from"../chunks/CJhqsVtd.js";function fe(D,S){throw new re(D,S.toString())}const ye=async()=>{if(!b.isAuthenticated)throw fe(302,"/account/login");return{user:b.user,isAuthenticated:b.isAuthenticated}},We=Object.freeze(Object.defineProperty({__proto__:null,load:ye},Symbol.toStringTag,{value:"Module"}));var he=g('<div class="grid gap-6 md:grid-cols-2"><div class="rounded-lg border border-gray-200 bg-white p-6 dark:border-gray-700 dark:bg-gray-800"><div class="mb-4"><h3 class="text-xl font-semibold text-gray-900 dark:text-white">Free</h3> <p class="text-gray-600 dark:text-gray-400">Practice with paper trading</p></div> <div class="mb-6"><span class="text-3xl font-bold text-gray-900 dark:text-white">$0</span> <span class="text-gray-600 dark:text-gray-400">/month</span></div> <ul class="mb-6 space-y-3"><li class="flex items-center text-sm text-gray-600 dark:text-gray-400"><!> Paper Trading</li> <li class="flex items-center text-sm text-gray-400 line-through"><!> Live Trading</li></ul> <!></div> <div class="relative rounded-lg border-2 border-blue-500 bg-linear-to-br from-blue-50 to-indigo-50 p-6 shadow-xl dark:border-blue-500 dark:bg-linear-to-br dark:from-blue-900/20 dark:to-indigo-900/20"><div class="absolute -top-3 left-1/2 -translate-x-1/2 transform"><div class="rounded-full bg-linear-to-r from-blue-500 to-purple-600 px-4 py-1 text-xs font-semibold text-white shadow-lg">50% Discount</div></div> <div class="space-y-6"><div class="text-center"><div class="mb-2"><span class="text-2xl font-bold text-gray-500 line-through">$600</span> <span class="ml-2 text-4xl font-bold text-green-600">$300</span></div> <div class="text-sm text-gray-500 dark:text-gray-400">anually</div></div> <ul class="mb-6 space-y-3"><li class="flex items-center text-sm text-gray-600 dark:text-gray-400"><!> 0.00% Trade Fee</li> <li class="flex items-center text-sm text-gray-700 dark:text-gray-300"><!> Live Trading</li></ul> <div class="pt-4"><!></div></div></div></div>'),be=g("<!> Copy",1),_e=g('<div class="space-y-4"><div><div class="text-sm font-medium text-gray-500 dark:text-gray-400">Email</div> <p class="break-all text-gray-900 dark:text-white"> </p></div> <div><div class="flex items-center justify-between"><div class="text-sm font-medium text-gray-500 dark:text-gray-400">User ID</div> <!></div> <p class="font-mono text-sm break-all text-gray-900 dark:text-white"> </p></div> <div><div class="text-sm font-medium text-gray-500 dark:text-gray-400">Member Since</div> <p class="text-sm text-gray-900 dark:text-white"> </p></div></div>'),ke=g("<!> Sign Out",1),$e=g('<div class="space-y-3"><!></div>'),we=g("<!> Download Invoices",1),Pe=g('<div class="space-y-4"><div class="flex items-center justify-between rounded-lg bg-gray-50 p-3 dark:bg-gray-800/50"><div class="flex items-center space-x-3"><div class="flex h-10 w-10 items-center justify-center rounded-full bg-green-100 dark:bg-green-900/20"><!></div> <div><p class="text-sm font-medium text-gray-900 dark:text-white">Pro Plan - Annual</p> <p class="text-xs text-gray-500 dark:text-gray-400">Jan 15, 2024</p></div></div> <div class="text-right"><p class="text-sm font-semibold text-gray-900 dark:text-white">$300.00</p> <p class="text-xs text-green-600 dark:text-green-400">Paid</p></div></div> <div class="flex items-center justify-between rounded-lg bg-gray-50 p-3 dark:bg-gray-800/50"><div class="flex items-center space-x-3"><div class="flex h-10 w-10 items-center justify-center rounded-full bg-blue-100 dark:bg-blue-900/20"><!></div> <div><p class="text-sm font-medium text-gray-900 dark:text-white">Pro Plan - Annual</p> <p class="text-xs text-gray-500 dark:text-gray-400">Jan 15, 2023</p></div></div> <div class="text-right"><p class="text-sm font-semibold text-gray-900 dark:text-white">$300.00</p> <p class="text-xs text-green-600 dark:text-green-400">Paid</p></div></div> <div class="pt-2"><!></div></div>'),Ae=g("<!> Manage Subscription",1),ze=g("<!> Billing Support",1),Se=g(`<div class="space-y-4"><div class="rounded-lg border border-gray-200 p-4 dark:border-gray-700"><div class="mb-3 flex items-center justify-between"><div><p class="text-sm font-medium text-gray-900 dark:text-white">Current Plan</p>
1 <p class="text-lg font-bold text-blue-600 dark:text-blue-400">Pro Annual</p></div> <div class="rounded-full bg-green-100 px-3 py-1 dark:bg-green-900/20"><p class="text-xs font-medium text-green-800 dark:text-green-400">Active</p></div></div> <div class="text-sm text-gray-600 dark:text-gray-400"><p>Next billing date: January 15, 2025</p> <p>Amount: $300.00</p></div></div> <div class="flex items-center justify-between rounded-lg bg-gray-50 p-3 dark:bg-gray-800/50"><div><p class="text-sm font-medium text-gray-900 dark:text-white">Auto-renewal</p> <p class="text-xs text-gray-500 dark:text-gray-400">Automatically renew your subscription</p></div> <label class="relative inline-flex cursor-pointer items-center"><input type="checkbox" class="peer sr-only" checked=""/> <div class="peer h-6 w-11 rounded-full bg-gray-200 peer-checked:bg-blue-600 peer-focus:ring-4 peer-focus:ring-blue-300 peer-focus:outline-none after:absolute after:top-0.5 after:left-0.5 after:h-5 after:w-5 after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[''] peer-checked:after:translate-x-full peer-checked:after:border-white dark:border-gray-600 dark:bg-gray-700 dark:peer-focus:ring-blue-800"></div></label></div> <div class="rounded-lg bg-gray-50 p-3 dark:bg-gray-800/50"><div class="mb-2 flex items-center justify-between"><p class="text-sm font-medium text-gray-900 dark:text-white">Payment Method</p> <!></div> <div class="flex items-center space-x-3"><div class="flex h-8 w-12 items-center justify-center rounded bg-blue-600"><!></div> <div><p class="text-sm text-gray-900 dark:text-white">•••• •••• •••• 4242</p> <p class="text-xs text-gray-500 dark:text-gray-400">Expires 12/25</p></div></div></div> <div class="space-y-2 pt-2"><!> <!></div></div>`),je=g('<div class="mx-auto px-4 py-8 sm:px-6 lg:px-8 xl:max-w-2/3"><header class="mb-4 text-center"><h1 class="text-3xl font-bold text-gray-900 dark:text-white">My Account</h1> <p class="mt-2 text-gray-600 dark:text-gray-400">Manage your account</p></header> <div class="grid gap-8 lg:grid-cols-3"><div class="lg:col-span-2"><!></div> <div class="space-y-6"><!> <!></div></div> <div class="mt-8"><h2 class="mb-6 text-2xl font-bold text-gray-900 dark:text-white">Billing & Subscription</h2> <div class="grid gap-6 lg:grid-cols-2"><!> <!></div></div></div>');function Be(D,S){oe(S,!0);const N=new me(le);let V=ne(ce(()=>({name:S.data.user?.name||"",avatar:null})));function Y(d){navigator.clipboard.writeText(d).then(()=>{U.success("User ID copied to clipboard!")}).catch(()=>{U.error("Failed to copy User ID")})}async function q(){try{await N.logout(),ie(),ae(de("/account/login"))}catch(d){console.error("Logout failed:",d),U.error("Logout failed. Please try again.")}}function K(d){return new Date(d).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}ve(()=>{b.user&&(V.name=b.user.name||"")});var M=je();se("8i5vi8",d=>{xe(()=>{ge.title="Account - Your Profile"})});var T=r(e(M),2),I=e(T),Q=e(I);w(Q,{title:"Account Levels",subtitle:"Choose your plan",children:(d,j)=>{var a=he(),s=e(a),l=r(e(s),4),x=e(l),u=e(x);P(u,{name:"check",size:"mr-3 h-5 w-5",class:"text-green-500"}),i(),t(x);var o=r(x,2),_=e(o);P(_,{name:"x",size:"mr-3 h-5 w-5",class:"text-red-500"}),i(),t(o),t(l);var p=r(l,2);k(p,{variant:"outline",fullWidth:!0,disabled:!0,children:(L,te)=>{i();var F=W("Current Plan");v(L,F)},$$slots:{default:!0}}),t(s);var h=r(s,2),m=r(e(h),2),n=r(e(m),2),f=e(n),c=e(f);P(c,{name:"check",size:"mr-3 h-5 w-5",class:"text-green-500"}),i(),t(f);var y=r(f,2),$=e(y);P($,{name:"check",size:"mr-3 h-5 w-5",class:"text-green-500"}),i(),t(y),t(n);var C=r(n,2),ee=e(C);k(ee,{size:"lg",fullWidth:!0,color:"blue",children:(L,te)=>{i();var F=W("Start Pro");v(L,F)},$$slots:{default:!0}}),t(C),t(m),t(h),t(a),v(d,a)},$$slots:{default:!0}}),t(I);var J=r(I,2),O=e(J);w(O,{title:"Account Details",children:(d,j)=>{var a=_e(),s=e(a),l=r(e(s),2),x=e(l,!0);t(l),t(s);var u=r(s,2),o=e(u),_=r(e(o),2);k(_,{variant:"ghost",size:"sm",onclick:()=>Y(b.user?.id||""),class:"h-6 px-2 text-xs",children:(c,y)=>{var $=be(),C=z($);A(C,{name:"copy",size:"h-3 w-3"}),i(),v(c,$)},$$slots:{default:!0}}),t(o);var p=r(o,2),h=e(p,!0);t(p),t(u);var m=r(u,2),n=r(e(m),2),f=e(n,!0);t(n),t(m),t(a),pe(c=>{B(x,b.user?.email),B(h,b.user?.id),B(f,c)},[()=>K(b.user?.created||"")]),v(d,a)},$$slots:{default:!0}});var X=r(O,2);w(X,{title:"Account Actions",children:(d,j)=>{var a=$e(),s=e(a);k(s,{variant:"outline",fullWidth:!0,color:"red",onclick:q,children:(l,x)=>{var u=ke(),o=z(u);A(o,{name:"logout",size:"h-4 w-4 mr-1"}),i(),v(l,u)},$$slots:{default:!0}}),t(a),v(d,a)},$$slots:{default:!0}}),t(J),t(T);var R=r(T,2),E=r(e(R),2),H=e(E);w(H,{title:"Billing History",subtitle:"View your payment history",children:(d,j)=>{var a=Pe(),s=e(a),l=e(s),x=e(l),u=e(x);P(u,{name:"check",size:"h-5 w-5",class:"text-green-600 dark:text-green-400"}),t(x),i(2),t(l),i(2),t(s);var o=r(s,2),_=e(o),p=e(_),h=e(p);
1G(h,{name:"certificate",size:"h-5 w-5",class:"text-blue-600 dark:text-blue-400"}),t(p),i(2),t(_),i(2),t(o);var m=r(o,2),n=e(m);k(n,{variant:"outline",fullWidth:!0,size:"sm",children:(f,c)=>{var y=we(),$=z(y);A($,{name:"download",size:"h-4 w-4 mr-2"}),i(),v(f,y)},$$slots:{default:!0}}),t(m),t(a),v(d,a)},$$slots:{default:!0}});var Z=r(H,2);w(Z,{title:"Subscription Management",subtitle:"Manage your plan settings",children:(d,j)=>{var a=Se(),s=r(e(a),4),l=e(s),x=r(e(l),2);k(x,{variant:"ghost",size:"sm",children:(n,f)=>{i();var c=W("Update");v(n,c)},$$slots:{default:!0}}),t(l);var u=r(l,2),o=e(u),_=e(o);G(_,{name:"certificate",size:"h-4 w-4",class:"text-white"}),t(o),i(2),t(u),t(s);var p=r(s,2),h=e(p);k(h,{variant:"outline",fullWidth:!0,children:(n,f)=>{var c=Ae(),y=z(c);A(y,{name:"settings",size:"h-4 w-4 mr-2"}),i(),v(n,c)},$$slots:{default:!0}});var m=r(h,2);k(m,{variant:"outline",fullWidth:!0,color:"gray",children:(n,f)=>{var c=ze(),y=z(c);A(y,{name:"help",size:"h-4 w-4 mr-2"}),i(),v(n,c)},$$slots:{default:!0}}),t(p),t(a),v(d,a)},$$slots:{default:!0}}),t(E),t(R),t(M),v(D,M),ue()}export{Be as component,We as universal};

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.