PageSourceSearch

https://bbcc.ai/build/assets/dashboard-CFm3T4B1.js

js bbcc.ai collected 2026-10-05 12:13:15 UTC 32,913 bytes, 96 lines download raw bytes

1import{u as ie,r as d,j as e,H as ne,L as de}from"./app-DP13319Q.js";import{M as A}from"./react-tooltip.min-DW3XhwOj.js";import{F as l,h as ce,aJ as me,aK as S,aL as xe,b4 as he,t as m,u as x,aQ as h,ap as ue,aR as y,af as pe,aw as ge,ah as F,j as g,ai as v,g as fe,b5 as be,ar as we,au as je,az as ye,aS as ve,aT as Ne,aG as z,aa as $e,b6 as ke}from"./index-CtyZ6W6U.js";import{D as _e}from"./DraggableMenu-Bk7Spryo.js";/* empty css            */import"./index-DQkUn08L.js";function Le(){const{auth:D,template:s,userBalance:Ce,stats:a,recentActivity:T,domains:L,funnelStats:o,transactions:P}=ie().props,[M,R]=d.useState(!0),[N,$]=d.useState(!1),I=d.useCallback(async()=>{var t;try{(await fetch("/logout",{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":((t=document.querySelector('meta[name="csrf-token"]'))==null?void 0:t.getAttribute("content"))||""}})).ok&&(window.location.href="/login")}catch(r){console.error("Failed to logout:",r)}},[]),B=d.useCallback(async()=>{var t;$(!0);try{const r=await fetch("/dashboard/refresh",{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":((t=document.querySelector('meta[name="csrf-token"]'))==null?void 0:t.getAttribute("content"))||""}});if(r.ok){const n=await r.json();window.location.reload()}}catch(r){console.error("Failed to refresh dashboard:",r)}finally{$(!1)}},[]),k=d.useCallback(t=>{try{return new URL(t),!0}catch{return!1}},[]),f=d.useCallback(t=>{var n;return(n=t.split("?")[0].split(".").pop())==null?void 0:n.toLowerCase()},[]),b=d.useCallback(t=>t?["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"].includes(t):!1,[]),E=d.useMemo(()=>s!=null&&s.image&&b(f(s.image))?e.jsx("style",{children:`
2                    .blur-bg {
3                        background: url('${s.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${s.image}') no-repeat center center;
4                        background-size: cover;
5                    }
6                `}):null,[s,f,b]),U=d.useCallback(t=>`EZ$${t.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`,[]),w=d.useCallback(t=>{const r=parseFloat(t.replace(/,/g,""));return isNaN(r)?`EZ$${t}`:`EZ$${r.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`},[]);d.useCallback(t=>{if(typeof t=="number")return t.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2});const r=parseFloat(t.replace(/,/g,""));return isNaN(r)?t:r.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})},[]);const V=d.useMemo(()=>{var C;if(!s)return null;const t=((C=s.image.split(".").pop())==null?void 0:C.toLowerCase())||"",n=`${s.user_id===0?"https://admin.ez3d.ai/":"https://ez.wiki/"}${s.image}`,H=["jpg","jpeg","png","gif","bmp","tiff","tif","webp","apng","svg","ico"],W=["ppt","pptx","pdf","xls","xlsx","doc","docx","pages","ai","psd","eps","ttf","dxf","xps","rar","zip","ods","odt","odp"],q=/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/i,Z=/(?:https?:\/\/)?(?:www\.)?linkedin\.com\/(?:in|posts|company|feed|showcase|embed\/feed\/update\/urn:li:[^/]+:[^"&?/ ]+)/i,K=/^https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)(?:[?]?.*)$/im,G=/^(https?:\/\/)?(www\.)?fb\.watch\/[a-zA-Z0-9(\.\?)?]/,X=/^(https?:\/\/)?(www\.)?facebook\.com\/[a-zA-Z0-9(\.\?)?]/,J=/<iframe.*?src=["'](.*?)["'].*?>.*?<\/iframe>/is,Q=/<blockquote/,u=s.image.match(q),ee=s.image.match(Z),j=s.image.match(K),te=s.image.match(G),ae=s.image.match(X),se=s.image.match(J)||Q.test(s.image),oe=new Blob([s.image],{type:"text/html"}),le=URL.createObjectURL(oe);if(H.includes(t))return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
7                        .blur-overlay {
8                            position: fixed;
9                            top: 0;
10                            left: 0;
11                            width: 100%;
12                            height: 100%;
13                            backdrop-filter: blur(20px);
14                            z-index: -1;
15                        }
16                    `}),e.jsx("div",{className:"blur-overlay"}
16),e.jsx("img",{src:n,alt:"Background",className:"absolute inset-0 max-w-full max-h-full m-auto z-0 rounded-lg",onError:i=>console.error("Image failed to load",i)},`image-${s.image}`)]});if(W.includes(t))return e.jsx("iframe",{src:`https://docs.google.com/viewer?url=${n}&embedded=true`,className:"fixed top-0 left-0 w-full h-full",frameBorder:"0",loading:"lazy",allow:"autoplay; fullscreen",allowFullScreen:!0,sandbox:"allow-scripts allow-same-origin",title:"Document Viewer",scrolling:"yes"},`doc-${s.image}`);if(se){const i=s.image.replace(/<(iframe|blockquote)([^>]*)\s(height|width|style)=["'][^"']*["']([^>]*)>/gi,'<$1$2$4 class="fixed top-0 left-0 w-full h-full" scrolling="yes">').replace(/class="([^"]*)"/g,'class="$1 absolute inset-0 m-auto"'),re=/<(iframe|blockquote)[^>]*class="/i.test(i)?i:i.replace(/<(iframe|blockquote)/g,'<$1 scrolling="yes" class="absolute w-full h-full inset-0 m-auto"');return e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
17                        .blur-overlay {
18                            position: fixed;
19                            top: 0;
20                            left: 0;
21                            width: 100%;
22                            height: 100%;
23                            backdrop-filter: blur(20px);
24                            z-index: -2;
25                        }
26                        .twitter-tweet {
27                            position: fixed;
28                            top: 0;
29                            left: 0;
30                            width: 100vw;
31                            height: 100vh;
32                            object-fit: cover;
33                            z-index: 0;
34                            border: none;
35                        }
36                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("div",{className:"fixed top-0 left-0 w-full h-full object-cover",dangerouslySetInnerHTML:{__html:re}},`iframe-${s.image}`)]})}if(u){const i=s.option==="autoplay"?"autoplay=1":s.option==="mute"?"autoplay=1&mute=1":"mute=1";return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed top-0 left-0 w-full h-full z-[-2]",children:e.jsx("iframe",{loading:"lazy",src:`https://www.youtube.com/embed/${u[1]}?${i}&loop=1&playlist=${u[1]}&controls=0&showinfo=0&modestbranding=1&iv_load_policy=3`,className:"w-full h-full object-cover",frameBorder:"0",allow:"autoplay; fullscreen",allowFullScreen:!0},`youtube-1-${u[1]}`)}),e.jsx("style",{children:`
37                        .blur-overlay {
38                            position: fixed;
39                            top: 0;
40                            left: 0;
41                            width: 100%;
42                            height: 100%;
43                            backdrop-filter: blur(20px);
44                            z-index: -1;
45                        }
46                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{id:"bgVideo",loading:"lazy",className:"fixed top-0 left-0 w-full h-full object-cover",src:`https://www.youtube.com/embed/${u[1]}?${s.option}=1&mute=1&loop=1&playlist=${u[1]}`,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0},`youtube-2-${u[1]}`)]})}if(ee){let i=s.image;return i.includes("?compact=1")||(i+=(i.includes("?")?"&":"?")+"compact=1"),e.jsx("div",{className:"fixed top-0 left-0 w-full h-full flex justify-center items-center bg-black",children:e.jsx("iframe",{id:"bgVideo",src:i,className:"w-full h-full",frameBorder:"0",allowFullScreen:!0,title:"Embedded LinkedIn Post",scrolling:"yes"},`linkedin-${i}`)})}return j?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
47                        .blur-overlay {
48                            position: fixed;
49                            top: 0;
50                            left: 0;
51                            width: 100%;
52                            height: 100%;
53                            backdrop-filter: blur(20px);
54                            z-index: -1;
55                        }
56                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{loading:"lazy",id:"bgVideo",allow:"camera; microphone; fullscreen; display-capture; autoplay",src:`https://player.vimeo.com/video/${j[3]}?h=33160d1512&color=de0101`,className:"fixed top-0 left-0 w-full h-full object-cover",frameBorder:"0",allowFullScreen:!0},`vimeo-${j[3]}`)]}):te||ae&&!s.image.includes("groups")?e.jsx("div",{className:"fixed top-0 left-0 w-full h-full",children:e.jsx("div",{className:"fb-post","data-href":s.image,"data-width":"1400","data-show-text":"true"},`fb-${s.image}`)}):t==="mp4"?e.jsxs(e.Fragment,{children:[e.jsxs("video",{autoPlay:!0,loop:!0,muted:!0,playsInl
56ine:!0,className:"fixed top-0 left-0 w-full h-full object-cover z-[-3]",children:[e.jsx("source",{src:n,type:"video/mp4"}),"Your browser does not support the video tag."]},`video-bg-${s.image}`),e.jsx("style",{children:`
57                        .blur-overlay {
58                            position: fixed;
59                            top: 0;
60                            left: 0;
61                            width: 100%;
62                            height: 100%;
63                            backdrop-filter: blur(20px);
64                            z-index: -2;
65                        }
66                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsxs("video",{id:"bgVideo",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"absolute inset-0 max-w-full max-h-full m-auto",controls:!0,children:[e.jsx("source",{src:n,type:"video/mp4"}),"Your browser does not support the video tag."]},`video-main-${s.image}`)]}):t==="glb"?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
67                        .blur-overlay {
68                            position: fixed;
69                            top: 0;
70                            left: 0;
71                            width: 100%;
72                            height: 100%;
73                            backdrop-filter: blur(20px);
74                            z-index: -1;
75                        }
76                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("model-viewer",{src:n,alt:"3D model",className:"fixed top-0 left-0 w-full h-full",ar:!0,"auto-rotate":!0,"camera-controls":!0,"shadow-intensity":"1"},`model-${s.image}`)]}):k(s.image)?e.jsxs(e.Fragment,{children:[e.jsx("style",{children:`
77                        .blur-overlay {
78                            position: fixed;
79                            top: 0;
80                            left: 0;
81                            width: 100%;
82                            height: 100%;
83                            backdrop-filter: blur(20px);
84                            z-index: -1;
85                        }
86                    `}),e.jsx("div",{className:"blur-overlay"}),e.jsx("iframe",{loading:"lazy",id:"bgVideo",allow:"camera; microphone; fullscreen; display-capture; autoplay",src:s.image,className:"fixed top-0 left-0 w-full h-full",frameBorder:"0",allowFullScreen:!0,scrolling:"yes"},`iframe-url-${s.image}`)]}):e.jsx("iframe",{src:le,className:"fixed top-0 left-0 w-full h-full border-none",allow:"microphone *; camera *; autoplay *; fullscreen *; display-capture *;",sandbox:`allow-forms allow-modals allow-orientation-lock allow-pointer-lock 
87                        allow-popups allow-popups-to-escape-sandbox allow-presentation 
88                        allow-same-origin allow-scripts allow-top-navigation 
89                        allow-top-navigation-by-user-activation allow-downloads allow-storage-access-by-user-activation`,allowFullScreen:!0,loading:"lazy",name:"binauralMixerFrame",allowTransparency:"true",scrolling:"yes"},`html-${s.image}`)},[s,k]),_=t=>{switch(t.toLowerCase()){case"active":case"completed":return"bg-emerald-100 text-emerald-800";
89case"pending":return"bg-amber-100 text-amber-800";default:return"bg-gray-100 text-gray-800"}},O=t=>{switch(t.toLowerCase()){case"purchase":return{icon:z,color:"text-sky-400"};case"invoice paid":return{icon:Ne,color:"text-teal-400"};case"funnel usage":return{icon:ve,color:"text-orange-400"};case"domain renewal":return{icon:S,color:"text-purple-400"};case"domain purchase":return{icon:g,color:"text-blue-400"};case"token transfer":return{icon:y,color:"text-indigo-400"};case"commission":return{icon:ye,color:"text-yellow-400"};default:return{icon:y,color:"text-gray-400"}}},Y=t=>({faProjectDiagram:ke,faShoppingCart:z,faLink:v,faUserPlus:$e})[t]||v,p=t=>t==="N/A"?"N/A":`${t}%`,c=(t,r)=>t==="N/A"?"text-gray-400":r==="up"?"text-emerald-400":r==="down"?"text-rose-400":"text-gray-400";return e.jsxs(e.Fragment,{children:[e.jsxs(ne,{children:[e.jsx("title",{children:"Dashboard - Analytics Overview"}),e.jsx("meta",{name:"description",content:"Your comprehensive dashboard with analytics and insights"}),e.jsx("style",{children:`
90                    .react-tooltip {
91                        z-index: 99999 !important;
92                        opacity: 1 !important;
93                        font-size: 12px;
94                        padding: 4px 8px;
95                    }
96                `}),E]}),e.jsx(A,{id:"action-tooltip"}),e.jsx(A,{id:"dashboard-tooltip"}),e.jsx("div",{"data-tooltip-id":"action-tooltip","data-tooltip-content":"Drag to move the main menu",children:e.jsx(_e,{auth:D})}),e.jsxs("main",{className:`relative flex justify-end p-4 min-h-screen overflow-hidden ${s!=null&&s.image&&b(f(s.image))?"blur-bg":""}`,children:[e.jsx("div",{className:"absolute inset-0 z-0",children:V}),M&&e.jsxs("div",{className:"relative mt-4 mx-auto bottom-4 z-50 backdrop-blur-sm p-4 rounded-xl border border-white/20 overflow-y-auto shadow-2xl w-full max-w-6xl bg-gray-900/80","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":"This panel displays your comprehensive dashboard overview",children:[e.jsx("button",{onClick:()=>R(!1),className:"absolute top-2 right-2 w-8 h-8 bg-black rounded-full flex items-center justify-center z-50 hover:bg-gray-800 transition-colors focus:outline-none focus:ring-2 focus:ring-white","aria-label":"Close panel","data-tooltip-id":"action-tooltip","data-tooltip-content":"Close this panel",children:e.jsx(l,{icon:ce,className:"text-white text-lg",style:{textShadow:"0.7px 0.7px 0 rgb(255,0,0), -0.7px -0.7px 0 rgb(0,255,255)"}})}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("div",{className:"flex items-center space-x-3","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":"Your comprehensive dashboard overview",children:[e.jsx(l,{icon:me,className:"text-yellow-400 text-2xl"}),e.jsx("h1",{className:"text-2xl font-bold text-white",children:"Dashboard Overview"})]}),e.jsxs("div",{className:"flex items-center gap-2 mr-12",children:[e.jsxs(de,{href:"/ai/dashboard",className:"group relative inline-flex items-center gap-2.5 bg-gradient-to-r from-emerald-400 via-emerald-500 to-green-600 text-white font-semibold py-2.5 px-5 rounded-xl shadow-lg shadow-emerald-500/30 hover:shadow-xl hover:shadow-emerald-500/40 hover:-translate-y-0.5 transition-all duration-200 overflow-hidden","data-tooltip-id":"action-tooltip","data-tooltip-content":"AI Dashboard",children:[e.jsx("span",{className:"absolute inset-0 w-full h-full bg-gradient-to-r from-transparent via-white/20 to-transparent -translate-x-full group-hover:translate-x-full transition-transform duration-700"}),e.jsxs("svg",{className:"relative w-5 h-5 transition-transform group-hover:scale-110 group-hover:rotate-3 duration-200",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M12 4v16M4 12h16",className:"opacity-75"}),e.jsx("circle",{cx:"12",cy:"12",r:"8",strokeWidth:"1.5"}),e.jsx("path",{d:"M8 8l8 8M16 8l-8 8",strokeWidth:"1.5"}),e.jsx("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor",className:"opacity-75 group-hover:animate-pulse"})]}),e.jsx("span",{className:"relative",children:"AI Dashboard"}),e.jsxs("span",{className:"relative flex h-2 w-2",children:[e.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-white opacity-75"}),e.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-white"})]})]}),e.jsxs("button",{onClick:B,className:"flex items-center gap-2 bg-yellow-400 text-black font-bold py-2.5 px-5 rounded-xl hover:bg-yellow-500 transition-colors cursor-pointer shadow-lg shadow-yellow-500/30 hover:shadow-xl hover:shadow-yellow-500/40 hover:-translate-y-0.5 duration-200","data-tooltip-id":"action-tooltip","data-tooltip-content":"Refresh dashboard data",disabled:N,children:[e.jsx(l,{icon:S,className:N?"animate-spin":""}),"Refresh"]}),e.jsxs("button",{onClick:I,className:"flex items-center gap-2 bg-gradient-to-r from-rose-500 to-pink-600 text-white font-semibold py-2.5 px-5 rounded-xl shadow-lg shadow-rose-500/30 hover:shadow-xl hover:shadow-rose-500/40 hover:-translate-y-0.5 transition-all duration-200","data-tooltip-id":"action-tooltip","data-tooltip-content":"Logout from your account",children:[e.jsx(l,{icon:xe,className:"text-lg"}),e.jsx("span",{children:"Logout"})]})]})]}),e.jsxs("section",{"aria-labelledby":"stats-overview-heading",className:"mb-8",children:[e.jsx("h2",{id:"stats-overview-heading",className:"sr-only",children:"Stats Overview"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[e.jsxs("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl hover:-translate-y-1.5 border border-gray-700","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Funnels: ${a.funnels.value} total`,children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-400 font-medium text-sm uppercase tracking-wide",children:"Funnels"}),e.jsx("h3",{className:"text-3xl font-bold text-white mt-1",children:a.funnels.value})]}
96),e.jsx("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-emerald-500 to-green-600 flex items-center justify-center text-white shadow-md",children:e.jsx(l,{icon:he,className:"text-2xl"})})]}),e.jsxs("p",{className:`text-sm mt-4 font-semibold flex items-center ${c(a.funnels.change,a.funnels.trend)}`,"data-tooltip-id":"dashboard-tooltip","data-tooltip-content":a.funnels.change==="N/A"?"No data available for comparison":`Change of ${a.funnels.change}% compared to the previous 30 days`,children:[a.funnels.change!=="N/A"&&e.jsx(l,{icon:a.funnels.trend==="up"?m:a.funnels.trend==="down"?x:h,className:"mr-1.5 text-xs"}),a.funnels.change==="N/A"?"No data available":`${a.funnels.change}% from last month`]})]}),e.jsxs("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl hover:-translate-y-1.5 border border-gray-700","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Templates: ${a.templates.value} total`,children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-400 font-medium text-sm uppercase tracking-wide",children:"Templates"}),e.jsx("h3",{className:"text-3xl font-bold text-white mt-1",children:a.templates.value})]}),e.jsx("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center text-white shadow-md",children:e.jsx(l,{icon:ue,className:"text-2xl"})})]}),e.jsxs("p",{className:`text-sm mt-4 font-semibold flex items-center ${c(a.templates.change,a.templates.trend)}`,"data-tooltip-id":"dashboard-tooltip","data-tooltip-content":a.templates.change==="N/A"?"No data available for comparison":`Change of ${a.templates.change}% compared to the previous 30 days`,children:[a.templates.change!=="N/A"&&e.jsx(l,{icon:a.templates.trend==="up"?m:a.templates.trend==="down"?x:h,className:"mr-1.5 text-xs"}),a.templates.change==="N/A"?"No data available":`${a.templates.change}% from last month`]})]}),e.jsxs("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl hover:-translate-y-1.5 border border-gray-700","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Transactions: ${a.transactions.value} total`,children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-400 font-medium text-sm uppercase tracking-wide",children:"Transactions"}),e.jsx("h3",{className:"text-3xl font-bold text-white mt-1",children:a.transactions.value})]}),e.jsx("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-purple-500 to-purple-700 flex items-center justify-center text-white shadow-md",children:e.jsx(l,{icon:y,className:"text-2xl"})})]}),e.jsxs("p",{className:`text-sm mt-4 font-semibold flex items-center ${c(a.transactions.change,a.transactions.trend)}`,"data-tooltip-id":"dashboard-tooltip","data-tooltip-content":a.transactions.change==="N/A"?"No data available for comparison":`Change of ${a.transactions.change}% compared to the previous 30 days`,children:[a.transactions.change!=="N/A"&&e.jsx(l,{icon:a.transactions.trend==="up"?m:a.transactions.trend==="down"?x:h,className:"mr-1.5 text-xs"}),a.transactions.change==="N/A"?"No data available":`${a.transactions.change}% from last month`]})]}),e.jsxs("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl hover:-translate-y-1.5 border border-gray-700","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Token Balance: ${a.token_balance.value} total`,children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-400 font-medium text-sm uppercase tracking-wide",children:"Token Balance"}),e.jsx("h3",{className:"text-3xl font-bold text-white mt-1",children:w(a.token_balance.value)})]}),e.jsx("div",{className:"w-14 h-14 rounded-full bg-gradient-to-br from-amber-500 to-yellow-600 flex items-center justify-center text-white shadow-md",children:e.jsx(l,{icon:pe,className:"text-2xl"})})]}),e.jsxs("p",{className:`text-sm mt-4 font-semibold flex items-center ${c(a.token_balance.change,a.token_balance.trend)}`,"data-tooltip-id":"dashboard-tooltip","data-tooltip-content":a.token_balance.change==="N/A"?"No data available for comparison":`Change of ${a.token_balance.change}% compared to the previous 30 days`,children:[a.token_balance.change!=="N/A"&&e.jsx(l,{icon:a.token_balance.trend==="up"?m:a.token_balance.trend==="down"?x:h,className:"mr-1.5 text-xs"}),a.token_balance.change==="N/A"?"No data available":`${a.token_balance.change}% from last month`]})]})]})]}),e.jsxs("section",{"aria-labelledby":"activity-domains-heading",className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8",children:[e.jsxs("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl border border-gray-700","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":"Your recent activity and events",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(l,{icon:ge,className:"text-sky-400 text-xl"}),e.jsx("h3",{className:"text-lg font-bold text-white",children:"Recent Activity"})]}),e.jsx(l,{icon:F,className:"text-gray-400 text-sm cursor-pointer hover:text-white"})]}),e.jsx("div",{className:"space-y-4 max-h-80 overflow-y-auto",children:T.map((t,r)=>e.jsxs("div",{className:"flex items-start space-x-4 p-3 rounded-lg bg-gray-800/50 hover:bg-gray-700/50 transition-colors","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Activity: ${t.title}`,children:[e.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center ${t.bgColor}`,"data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Activity type: ${t.title}`,children:e.jsx(l,{icon:Y(t.icon),className:`${t.color} text-lg`})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-white font-medium truncate",children:t.title}),e.jsx("p",{className:"text-gray-400 text-sm mt-1",children:t.description}),e.jsx("p",{className:"text-gray-500 text-xs mt-2",children:t.time})]})]},r))})]}),e.jsxs("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl border border-gray-700","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":"Your registered domains",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(l,{icon:g,className:"text-emerald-400 text-xl"}),e.jsx("h3",{className:"text-lg font-bold text-white",children:"Your Domains"})]}),e.jsx(l,{icon:F,className:"text-gray-400 text-sm cursor-pointer hover:text-white"})]}),e.jsx("div",{className:"space-y-4 max-h-80 overflow-y-auto",children:L.map((t,r)=>e.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-gray-800/50 hover:bg-gray-700/50 transition-colors","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Domain: ${t.name}`,children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center",children:e.jsx(l,{icon:g,className:"text-white text-lg"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-white font-medium",children:t.name}),e.jsxs("p",{className:"text-gray-400 text-sm",children:["Created at: ",t.expires]})]})]}),e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-medium ${_(t.status)}`,"data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Domain status: ${t.status}`,children:t.status})]},r))})]})]}),e.jsx("section",{"aria-labelledby":"funnel-stats-heading",className:"mb-8",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[e.jsxs("div",{className:"text-center p-4 rounded-lg bg-gray-800/50","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Total domains: ${o.domains.value}`,children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center mx-auto mb-3",children:e.jsx(l,{icon:g,className:"text-white text-xl"})}),e.jsx("h4",{className:"text-2xl font-bold text-white",children:o.domains.value}),e.jsx("p",{className:"text-gray-400 text-sm",children:"Domains"}),e.jsxs("p",{className:`text-xs mt-2 font-semibold flex items-center justify-center ${c(o.domains.change,o.domains.trend)}`,"data-tooltip-id":"dashboard-tooltip","data-tooltip-content":o.domains.change==="N/A"?"No data available for comparison":`Change of ${o.domains.change}% compared to the previous 30 days`,children:[o.domains.change!=="N/A"&&e.jsx(l,{icon:o.domains.trend==="up"?m:o.domains.trend==="down"?x:h,className:"mr-1 text-xs"}),p(o.domains.change)]})]}),e.jsxs("div",{className:"text-center p-4 rounded-lg bg-gray-800/50","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Custom domains: ${o.custom_domains.value}`,children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-purple-500 to-purple-700 flex items-center justify-center mx-auto mb-3",children:e.jsx(l,{icon:v,className:"text-white text-xl"})}),e.jsx("h4",{className:"text-2xl font-bold text-white",children:o.custom_domains.value}),e.jsx("p",{className:"text-gray-400 text-sm",children:"Custom Domains"}),e.jsxs("p",{className:`text-xs mt-2 font-semibold flex items-center justify-center ${c(o.custom_domains.change,o.custom_domains.trend)}`,"data-tooltip-id":"dashboard-tooltip","data-tooltip-content":o.custom_domains.change==="N/A"?"No data available for comparison":`Change of ${o.custom_domains.change}% compared to the previous 30 days`,children:[o.custom_domains.change!=="N/A"&&e.jsx(l,{icon:o.custom_domains.trend==="up"?m:o.custom_domains.trend==="down"?x:h,className:"mr-1 text-xs"}),p(o.custom_domains.change)]})]}),e.jsxs("div",{className:"text-center p-4 rounded-lg bg-gray-800/50","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Total sales: ${o.total_sales.value}`,children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-green-500 to-emerald-600 flex items-center justify-center mx-auto mb-3",children:e.jsx(l,{icon:fe,className:"text-white text-xl"})}),e.jsx("h4",{className:"text-2xl font-bold text-white",children:w(o.total_sales.value)}),e.jsx("p",{className:"text-gray-400 text-sm",children:"Total Sales"}),e.jsxs("p",{className:`text-xs mt-2 font-semibold flex items-center justify-center ${c(o.total_sales.change,o.total_sales.trend)}`,"data-tooltip-id":"dashboard-tooltip","data-tooltip-content":o.total_sales.change==="N/A"?"No data available for comparison":`Change of ${o.total_sales.change}% compared to the previous 30 days`,children:[o.total_sales.change!=="N/A"&&e.jsx(l,{icon:o.total_sales.trend==="up"?m:o.total_sales.trend==="down"?x:h,className:"mr-1 text-xs"}),p(o.total_sales.change)]})]}),e.jsxs("div",{className:"text-center p-4 rounded-lg bg-gray-800/50","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Pending sales: ${o.pending_sales.value}`,children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-amber-500 to-yellow-600 flex items-center justify-center mx-auto mb-3",children:e.jsx(l,{icon:be,className:"text-white text-xl"})}),e.jsx("h4",{className:"text-2xl font-bold text-white",children:w(o.pending_sales.value)}),e.jsx("p",{className:"text-gray-400 text-sm",children:"Pending Sales"}),e.jsxs("p",{className:`text-xs mt-2 font-semibold flex items-center justify-center ${c(o.pe
96nding_sales.change,o.pending_sales.trend)}`,"data-tooltip-id":"dashboard-tooltip","data-tooltip-content":o.pending_sales.change==="N/A"?"No data available for comparison":`Change of ${o.pending_sales.change}% compared to the previous 30 days`,children:[o.pending_sales.change!=="N/A"&&e.jsx(l,{icon:o.pending_sales.trend==="up"?m:o.pending_sales.trend==="down"?x:h,className:"mr-1 text-xs"}),p(o.pending_sales.change)]})]})]})}),e.jsxs("section",{"aria-labelledby":"transactions-heading",children:[e.jsx("h2",{id:"transactions-heading",className:"sr-only",children:"Recent Transactions"}),e.jsxs("div",{className:"bg-gradient-to-br from-gray-900/70 to-gray-800/70 rounded-xl shadow-lg p-6 transition-all duration-300 hover:shadow-xl border border-gray-700","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":"Your recent transactions",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx(l,{icon:we,className:"text-amber-400 text-xl"}),e.jsx("h3",{className:"text-lg font-bold text-white",children:"Recent Transactions"})]}),e.jsx(l,{icon:je,className:"text-gray-400 text-sm"})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-gray-700",children:[e.jsx("th",{className:"text-left text-gray-400 font-medium pb-3",children:"Date"}),e.jsx("th",{className:"text-left text-gray-400 font-medium pb-3",children:"Type"}),e.jsx("th",{className:"text-right text-gray-400 font-medium pb-3",children:"Amount"}),e.jsx("th",{className:"text-center text-gray-400 font-medium pb-3",children:"Status"})]})}),e.jsx("tbody",{children:P.map((t,r)=>{const n=O(t.type);return e.jsxs("tr",{className:"border-b border-gray-800 last:border-b-0 hover:bg-gray-800/50 transition-colors","data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Transaction: ${t.type} - ${t.date}`,children:[e.jsx("td",{className:"py-4 text-white",children:t.date}),e.jsx("td",{className:"py-4",children:e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(l,{icon:n.icon,className:`${n.color} text-sm`}),e.jsx("span",{className:"text-white",children:t.type})]})}),e.jsx("td",{className:"py-4 text-right",children:e.jsxs("span",{className:`font-semibold ${t.amount>=0?"text-emerald-400":"text-rose-400"}`,children:[t.amount>=0?"+":"",U(Math.abs(t.amount))]})}),e.jsx("td",{className:"py-4 text-center",children:e.jsx("span",{className:`px-3 py-1 rounded-full text-xs font-medium ${_(t.status)}`,"data-tooltip-id":"dashboard-tooltip","data-tooltip-content":`Transaction status: ${t.status}`,children:t.status})})]},r)})})]})})]})]})]})]})]})]})}export{Le 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.