(()=>{var e={};e.id=3,e.ids=[3],e.modules={53524:e=>{"use strict";e.exports=require("@prisma/client")},47849:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external")},72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},55403:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},94749:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},50852:e=>{"use strict";e.exports=require("async_hooks")},32081:e=>{"use strict";e.exports=require("child_process")},82361:e=>{"use strict";e.exports=require("events")},57147:e=>{"use strict";e.exports=require("fs")},73292:e=>{"use strict";e.exports=require("fs/promises")},22037:e=>{"use strict";e.exports=require("os")},71017:e=>{"use strict";e.exports=require("path")},76224:e=>{"use strict";e.exports=require("tty")},73837:e=>{"use strict";e.exports=require("util")},3775:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>i.ZP,__next_app__:()=>u,originalPathname:()=>d,pages:()=>c,routeModule:()=>p,tree:()=>o});var r=s(50482),a=s(69108),i=s(83543),l=s(68300),n={};for(let e in l)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(n[e]=()=>l[e]);s.d(t,n);let o=["",{children:["admin",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,85557)),"C:\\test2\\pagecraft-ai\\src\\app\\admin\\page.tsx"]}]},{layout:[()=>Promise.resolve().then(s.bind(s,82050)),"C:\\test2\\pagecraft-ai\\src\\app\\admin\\layout.tsx"],loading:[()=>Promise.resolve().then(s.bind(s,98338)),"C:\\test2\\pagecraft-ai\\src\\app\\admin\\loading.tsx"]}]},{layout:[()=>Promise.resolve().then(s.bind(s,43625)),"C:\\test2\\pagecraft-ai\\src\\app\\layout.tsx"],error:[()=>Promise.resolve().then(s.bind(s,24117)),"C:\\test2\\pagecraft-ai\\src\\app\\error.tsx"],"not-found":[()=>Promise.resolve().then(s.bind(s,48206)),"C:\\test2\\pagecraft-ai\\src\\app\\not-found.tsx"]}],c=["C:\\test2\\pagecraft-ai\\src\\app\\admin\\page.tsx"],d="/admin/page",u={require:s,loadChunk:()=>Promise.resolve()},p=new r.AppPageRouteModule({definition:{kind:a.x.APP_PAGE,page:"/admin/page",pathname:"/admin",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:o}})},37743:(e,t,s)=>{Promise.resolve().then(s.bind(s,31126))},88534:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]])},63024:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},80895:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]])},33037:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]])},67711:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]])},71532:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},97751:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},85674:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},53148:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},42739:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},38852:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},73101:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},24105:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("MousePointerClick",[["path",{d:"m9 9 5 12 1.8-5.2L21 14Z",key:"1b76lo"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}]])},27860:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]])},16588:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]])},59138:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]])},15366:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("UserCheck",[["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"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]])},28240:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("UserPlus",[["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"}]])},32817:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("UserX",[["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:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]])},89895:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,s(69224).Z)("Users",[["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"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},97273:(e,t,s)=>{"use strict";s.d(t,{default:()=>a.a});var r=s(53267),a=s.n(r)},53267:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=s(39694);s(95344),s(3729);let a=r._(s(60546));function i(e,t){let s={loading:e=>{let{error:t,isLoading:s,pastDelay:r}=e;return null}};return"function"==typeof e&&(s.loader=e),(0,a.default)({...s,...t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38354:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return a}});let r=s(63689);function a(e){let{reason:t,children:s}=e;throw new r.BailoutToCSRError(t)}},60546:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=s(95344),a=s(3729),i=s(38354);function l(e){var t;return{default:null!=(t=null==e?void 0:e.default)?t:e}}let n={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},o=function(e){let t={...n,...e},s=(0,a.lazy)(()=>t.loader().then(l)),o=t.loading;function c(e){let l=o?(0,r.jsx)(o,{isLoading:!0,pastDelay:!0,error:null}):null,n=t.ssr?(0,r.jsx)(s,{...e}):(0,r.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(s,{...e})});return(0,r.jsx)(a.Suspense,{fallback:l,children:n})}return c.displayName="LoadableComponent",c}},31126:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>k});var r=s(95344),a=s(97273),i=s(66543),l=s(9885),n=s(16588),o=s(73101),c=s(59138),d=s(69224);/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let u=(0,d.Z)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]),p=(0,d.Z)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);var x=s(53148),y=s(89895),h=s(15366),m=s(24105);let g=(0,a.default)(async()=>{},{loadableGenerated:{modules:["C:\\test2\\pagecraft-ai\\src\\app\\admin\\page.tsx -> @/components/admin/StatsCharts"]},ssr:!1,loading:()=>r.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[1,2,3].map(e=>r.jsx("div",{className:"bg-white/[0.03] border border-white/[0.06] rounded-xl p-6 h-80 animate-pulse"},e))})}),f={FREE:"#94a3b8",PRO:"#3b82f6",BUSINESS:"#8b5cf6"},b={mobile:n.Z,desktop:o.Z,tablet:c.Z},v={mobile:"#f59e0b",desktop:"#3b82f6",tablet:"#10b981",unknown:"#6b7280"};function j({value:e,isAr:t}){if(0===e)return r.jsx("span",{className:"text-xs text-gray-500",children:"—"});let s=e>0;return(0,r.jsxs)("span",{className:`inline-flex items-center gap-1 text-xs font-medium ${s?"text-green-400":"text-red-400"}`,children:[r.jsx(s?u:p,{className:"h-3 w-3"}),s?"+":"",e,"%"]})}let w={contentStyle:{backgroundColor:"#1a1a2e",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"8px",color:"#e5e7eb"},labelStyle:{color:"#9ca3af"}};function k(){let{lang:e}=(0,l.Z)(),t="ar"===e,{data:s,isLoading:a}=(0,i.ZP)("/api/admin/stats");if(a||!s)return r.jsx("div",{className:"flex justify-center py-20",children:r.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-gray-500 border-t-transparent"})});let n=[{label:t?"المشاهدات":"Views",value:s.totalViews,icon:x.Z,color:"text-blue-400",bg:"bg-blue-500/10",growth:s.growth.views},{label:t?"المستخدمون":"Users",value:s.totalUsers,icon:y.Z,color:"text-green-400",bg:"bg-green-500/10",growth:s.growth.users},{label:t?"العملاء المحتملون":"Leads",value:s.totalLeads,icon:h.Z,color:"text-purple-400",bg:"bg-purple-500/10",growth:s.growth.leads},{label:t?"معدل التحويل":"Conversion",value:`${s.conversionRate}%`,icon:m.Z,color:"text-orange-400",bg:"bg-orange-500/10",growth:null}],c=s.deviceBreakdown.map(e=>({...e,device:e.device||"unknown"})),d=c.reduce((e,t)=>e+t.count,0);return(0,r.jsxs)("div",{children:[r.jsx("h1",{className:"text-2xl font-bold mb-1 text-white",children:t?"لوحة القيادة":"Dashboard"}),r.jsx("p",{className:"text-gray-400 mb-6",children:t?"نظرة عامة على النظام":"System overview"}),r.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:n.map(e=>{let s=e.icon;return(0,r.jsxs)("div",{className:"rounded-2xl border border-white/[0.06] bg-white/[0.03] p-5",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("div",{className:`p-2 rounded-lg ${e.bg}`,children:r.jsx(s,{className:`h-5 w-5 ${e.color}`})}),null!==e.growth&&r.jsx(j,{value:e.growth,isAr:t})]}),r.jsx("div",{className:"text-3xl font-bold text-white",children:"number"==typeof e.value?e.value.toLocaleString():e.value}),r.jsx("p",{className:"text-sm text-gray-400 mt-1",children:e.label})]},e.label)})}),r.jsx("div",{className:"mb-6",children:r.jsx(g,{stats:{dailyViews:s.dailyViews,dailyRegistrations:s.dailyRegistrations,planDistribution:s.planDistribution},isAr:t,planColors:f,tooltipStyle:w})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6",children:[(0,r.jsxs)("div",{className:"lg:col-span-2 rounded-2xl border border-white/[0.06] bg-white/[0.03] p-6",children:[r.jsx("h3",{className:"text-base font-semibold text-white mb-4",children:t?"أفضل الصفحات أداءً":"Top Performing Pages"}),0===s.topPages.length?r.jsx("p",{className:"text-gray-500 text-sm py-8 text-center",children:t?"لا توجد صفحات بعد":"No pages yet"}):r.jsx("div",{className:"space-y-3",children:s.topPages.map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center gap-3 p-3 rounded-xl bg-white/[0.02] hover:bg-white/[0.04] transition-colors",children:[r.jsx("div",{className:`w-8 h-8 rounded-lg flex items-center justify-center text-sm font-bold ${0===t?"bg-yellow-500/10 text-yellow-400":1===t?"bg-gray-400/10 text-gray-300":"bg-orange-500/10 text-orange-400"}`,children:t+1}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-sm font-medium text-white truncate",children:e.title}),(0,r.jsxs)("p",{className:"text-xs text-gray-500",children:["/p/",e.slug]})]}),r.jsx("div",{className:"text-right shrink-0",children:(0,r.jsxs)("div",{className:"flex items-center gap-3 text-xs",children:[(0,r.jsxs)("span",{className:"text-gray-400",children:[r.jsx(x.Z,{className:"h-3 w-3 inline mr-1"}),e.views]}),(0,r.jsxs)("span",{className:"text-purple-400",children:[r.jsx(h.Z,{className:"h-3 w-3 inline mr-1"}),e.leads]}),(0,r.jsxs)("span",{className:`px-2 py-0.5 rounded-full ${e.conversionRate>5?"bg-green-500/10 text-green-400":e.conversionRate>0?"bg-yellow-500/10 text-yellow-400":"bg-white/[0.05] text-gray-500"}`,children:[e.conversionRate,"%"]})]})})]},e.slug))})]}),(0,r.jsxs)("div",{className:"rounded-2xl border border-white/[0.06] bg-white/[0.03] p-6",children:[r.jsx("h3",{className:"text-base font-semibold text-white mb-4",children:t?"الأجهزة":"Devices"}),0===c.length?r.jsx("p",{className:"text-gray-500 text-sm py-8 text-center",children:t?"لا توجد بيانات":"No data"}):r.jsx("div",{className:"space-y-4",children:c.map(e=>{let t=b[e.device]||o.Z,s=d>0?Math.round(e.count/d*100):0,a=v[e.device]||v.unknown;return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-gray-300",children:[r.jsx(t,{className:"h-4 w-4",style:{color:a}}),r.jsx("span",{className:"capitalize",children:e.device})]}),(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-gray-500 text-xs",children:e.count.toLocaleString()}),(0,r.jsxs)("span",{className:"text-white font-medium text-sm",children:[s,"%"]})]})]}),r.jsx("div",{className:"w-full h-1.5 rounded-full bg-white/[0.06]",children:r.jsx("div",{className:"h-full rounded-full transition-all",style:{width:`${s}%`,backgroundColor:a}})})]},e.device)})})]}),(0,r.jsxs)("div",{className:"rounded-2xl border border-white/[0.06] bg-white/[0.03] p-6",children:[r.jsx("h3",{className:"text-base font-semibold text-white mb-4",children:t?"مصادر الزيارات":"Top Referrers"}),0===s.topReferrers.length?r.jsx("p",{className:"text-gray-500 text-sm py-8 text-center",children:t?"لا توجد بيانات":"No data"}):r.jsx("div",{className:"space-y-3",children:s.topReferrers.slice(0,6).map((e,t)=>{let a=s.topReferrers[0]?.count||1,i=Math.max(e.count/a*100,8);return(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[r.jsx("span",{className:"text-gray-300 truncate max-w-[150px]",children:e.referrer||"Direct"}),r.jsx("span",{className:"text-gray-500 text-xs",children:e.count})]}),r.jsx("div",{className:"w-full h-1 rounded-full bg-white/[0.06]",children:r.jsx("div",{className:"h-full rounded-full bg-indigo-500/50",style:{width:`${i}%`}})})]},t)})})]})]})]})}},48096:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return a}});let s="DYNAMIC_SERVER_USAGE";class r extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=s}}function a(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===s}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72973:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{isStaticGenBailoutError:function(){return n},staticGenerationBailout:function(){return c}});let r=s(48096),a=s(45869),i="NEXT_STATIC_GEN_BAILOUT";class l extends Error{constructor(...e){super(...e),this.code=i}}function n(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===i}function o(e,t){let{dynamic:s,link:r}=t||{};return"Page"+(s?' with `dynamic = "'+s+'"`':"")+" couldn't be rendered statically because it used `"+e+"`."+(r?" See more info here: "+r:"")}let c=(e,t)=>{let{dynamic:s,link:i}=void 0===t?{}:t,n=a.staticGenerationAsyncStorage.getStore();if(!n)return!1;if(n.forceStatic)return!0;if(n.dynamicShouldError)throw new l(o(e,{link:i,dynamic:null!=s?s:"error"}));let c=o(e,{dynamic:s,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if(null==n.postpone||n.postpone.call(n,e),n.revalidate=0,n.isStaticGeneration){let t=new r.DynamicServerError(c);throw n.dynamicUsageDescription=e,n.dynamicUsageStack=t.stack,t}return!1};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85557:(e,t,s)=>{"use strict";s.r(t),s.d(t,{$$typeof:()=>i,__esModule:()=>a,default:()=>l});let r=(0,s(86843).createProxy)(String.raw`C:\test2\pagecraft-ai\src\app\admin\page.tsx`),{__esModule:a,$$typeof:i}=r,l=r.default}};var t=require("../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[1638,5312,6632,3910,9043],()=>s(3775));module.exports=r})();