(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30257,e=>{"use strict";e.s(["default",()=>F]);var t=e.i(43476),a=e.i(22016),s=e.i(71645),r=e.i(46932),i=e.i(88653),l=e.i(78583),n=e.i(87316),c=e.i(17923),o=e.i(86536),d=e.i(39616),x=e.i(94351),h=e.i(92270),m=e.i(7233),g=e.i(16715),p=e.i(31343),u=e.i(95242),b=e.i(69638),f=e.i(63209),y=e.i(3116),j=e.i(20278),v=e.i(88511),N=e.i(83627),w=e.i(27612),k=e.i(37727),C=e.i(417),T=e.i(65582),P=e.i(14764),S=e.i(64659),A=e.i(55900),D=e.i(31278),E=e.i(55711),R=e.i(92161),L=e.i(61659),O=e.i(60272),I=e.i(19378),H=e.i(9186),M=e.i(8323);function F(){var e;let{timezone:F}=(0,O.useTimezone)(),{subscription:U,loading:G}=(0,H.useSubscription)(),[B,V]=(0,s.useState)(null),[z,J]=(0,s.useState)(!0),[Y,_]=(0,s.useState)(null),[q,K]=(0,s.useState)([]),[X,W]=(0,s.useState)(null),[$,Q]=(0,s.useState)(!1),[Z,ee]=(0,s.useState)(!1),[et,ea]=(0,s.useState)(null),[es,er]=(0,s.useState)(!1),[ei,el]=(0,s.useState)([]),[en,ec]=(0,s.useState)(!1),[eo,ed]=(0,s.useState)(new Set),[ex,eh]=(0,s.useState)(!0),[em,eg]=(0,s.useState)(!1);(0,s.useEffect)(()=>{fetch("/api/linkedin/session").then(e=>e.json()).then(e=>{console.log("Session data:",e),e.user?(V(e),ep(),console.log("User email:",e.user.email),e.user.email?eu(e.user.email):(console.warn("No user email found in session"),eh(!1))):(console.warn("No user found in session"),eh(!1)),J(!1)}).catch(e=>{console.error("Session fetch error:",e),J(!1)})},[]);let ep=async()=>{try{let[e,t]=await Promise.all([fetch("/api/analytics?days=30"),fetch("/api/dashboard-stats")]),a=await e.json(),s=await t.json();if(a.success&&s.success){let e=a.analytics,t=s.stats,r=(e.totalLikes||0)+(e.totalComments||0)+(e.totalShares||0),i=e.totalViews>0?r/e.totalViews*100:0;_({totalPosts:e.totalPosts||0,scheduledPosts:t.scheduled||0,totalViews:e.totalViews||0,totalEngagement:r,engagementRate:Math.round(100*i)/100,growthRate:23,approved:t.approved||0,discarded:t.discarded||0,pendingApproval:t.pendingApproval||0,approvalRate:t.approvalRate||0})}}catch(e){console.error("Error fetching dashboard stats:",e),_({totalPosts:24,scheduledPosts:8,totalViews:12500,totalEngagement:1081,engagementRate:8.6,growthRate:23,approved:0,discarded:0,pendingApproval:0,approvalRate:0})}},eu=async e=>{try{eh(!0),console.log("Fetching campaigns for user:",e);let a=await fetch("/api/agentic/campaigns?userEmail=".concat(encodeURIComponent(e)));if(!a.ok)throw Error("HTTP error! status: ".concat(a.status));let s=await a.json();if(console.log("Campaigns API response:",s),s.success){var t;let e=(null==(t=s.data)?void 0:t.campaigns)||[];console.log("Found campaigns:",e.length),K(e.map(e=>({...e,startDate:new Date(e.startDate),endDate:new Date(e.endDate),createdAt:new Date(e.createdAt)})))}else console.error("Campaigns API failed:",s.error),K([])}catch(e){console.error("Failed to fetch campaigns:",e),K([])}finally{eh(!1)}},eb=e=>{switch(e){case"ACTIVE":return"text-green-400 bg-green-400/10 border-green-400/20";case"PAUSED":return"text-yellow-400 bg-yellow-400/10 border-yellow-400/20";case"COMPLETED":return"text-blue-400 bg-blue-400/10 border-blue-400/20";case"CANCELLED":return"text-red-400 bg-red-400/10 border-red-400/20";case"DRAFT":return"text-gray-400 bg-gray-400/10 border-gray-400/20"}},ef=e=>{switch(e){case"ACTIVE":return(0,t.jsx)(p.Play,{className:"w-3 h-3"});case"PAUSED":return(0,t.jsx)(u.Pause,{className:"w-3 h-3"});case"COMPLETED":return(0,t.jsx)(b.CheckCircle,{className:"w-3 h-3"});case"CANCELLED":return(0,t.jsx)(f.AlertCircle,{className:"w-3 h-3"});case"DRAFT":return(0,t.jsx)(y.Clock,{className:"w-3 h-3"})}},ey=e=>0===e.totalPosts?0:Math.min(Math.round(e.postsPublished/e.totalPosts*100),100),ej=()=>{var e;(null==B||null==(e=B.user)?void 0:e.email)&&eu(B.user.email)},ev=async e=>{sessionStorage.setItem("selectedCampaignId",e.id),sessionStorage.setItem("selectedCampaignName",e.name),window.location.href="/posts?view=list&filter=pending"},eN=async()=>{if(et){er(!0);try{(await fetch("/api/agentic/campaigns",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({campaignId:et.id})})).ok?(K(e=>e.filter(e=>e.id!==et.id)),ee(!1),ea(null)):console.error("Failed to delete campaign")}catch(e){console.error("Error deleting campaign:",e)}finally{er(!1)}}},ew=async(e,t)=>{if((null==U?void 0:U.postsRemaining)!==-1&&U&&U.postsRemaining<t)return void alert("You can only generate ".concat(U.postsRemaining," more posts this month. ").concat(U.hasActiveSubscription?"Your monthly limit will reset next month.":"Upgrade to continue generating unlimited posts."));ec(!0);try{let a=await fetch("/api/agentic/content-generation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({campaignId:e,batchSize:t})}),s=await a.json();a.ok?(X&&await ev(X),ej()):console.error("Generation failed:",s.error)}catch(e){console.error("Content generation error:",e)}finally{ec(!1)}},ek=async(e,t)=>{if((null==U?void 0:U.postsRemaining)!==-1&&U&&U.postsRemaining<t)return void alert("You can only generate ".concat(U.postsRemaining," more posts this month. ").concat(U.hasActiveSubscription?"Your monthly limit will reset next month.":"Upgrade to continue generating unlimited posts."));ec(!0);try{let a=await fetch("/api/agentic/content-generation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({campaignId:e,batchSize:t})}),s=await a.json();a.ok?(X&&await ev(X),ej()):console.error("Generation failed:",s.error)}catch(e){console.error("Content generation error:",e)}finally{ec(!1)}},eC=async e=>{try{(await fetch("/api/agentic/content-actions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"approve",postId:e})})).ok&&(Q(!1),window.location.href="/posts")}catch(e){console.error("Failed to approve post:",e)}},eT=async e=>{try{(await fetch("/api/agentic/content-actions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"discard",postId:e})})).ok&&(el(t=>t.filter(t=>t.id!==e)),ej())}catch(e){console.error("Failed to discard post:",e)}},eP=async e=>{try{(await fetch("/api/agentic/content-actions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"post_now",postId:e})})).ok&&X&&(await ev(X),ej())}catch(e){console.error("Failed to post content:",e)}};return z?(0,t.jsxs)("div",{className:"min-h-screen relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-gray-900 via-black to-gray-900"}),(0,t.jsx)("div",{className:"absolute inset-0",children:(0,t.jsx)("div",{className:"absolute inset-0",style:{background:"radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 60%)"}})}),(0,t.jsx)("div",{className:"relative flex items-center justify-center min-h-screen",children:(0,t.jsxs)(r.motion.div,{className:"text-center space-y-4",children:[(0,t.jsx)(r.motion.div,{className:"w-16 h-16 border-4 border-cyan-500/20 border-t-cyan-400 rounded-full mx-auto",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}}),(0,t.jsx)(r.motion.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},className:"text-lg text-white font-medium font-nautic",children:"Loading your dashboard..."})]})})]}):(null==B?void 0:B.user)?(0,t.jsxs)("div",{className:"min-h-screen",style:{background:"linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%)"},children:[(0,t.jsx)("div",{className:"lg:hidden flex items-center justify-between p-4 border-b border-gray-800 bg-black/30 backdrop-blur-xl",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("button",{onClick:()=>eg(!em),className:"p-2 text-white hover:bg-gray-800/50 rounded-lg transition-colors",children:(0,t.jsx)(R.Menu,{className:"w-6 h-6"})}),(0,t.jsxs)(a.default,{href:"/",className:"flex items-center space-x-2",children:[(0,t.jsxs)("div",{className:"logo-dots",children:[(0,t.jsx)("div",{className:"dot"}),(0,t.jsx)("div",{className:"dot"}),(0,t.jsx)("div",{className:"dot"}),(0,t.jsx)("div",{className:"dot"})]}),(0,t.jsx)("span",{className:"font-nautic font-light text-white",children:"Straxion"})]})]})}),(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsxs)("div",{className:"hidden lg:flex w-16 hover:w-64 flex-col py-6 border-r border-gray-800 min-h-screen transition-all duration-300 ease-in-out group bg-black/30 backdrop-blur-xl",children:[(0,t.jsx)("div",{className:"px-4 mb-8",children:(0,t.jsxs)(a.default,{href:"/",className:"flex items-center space-x-3",children:[(0,t.jsxs)("div",{className:"logo-dots flex-shrink-0",children:[(0,t.jsx)("div",{className:"dot"}),(0,t.jsx)("div",{className:"dot"}),(0,t.jsx)("div",{className:"dot"}),(0,t.jsx)("div",{className:"dot"})]}),(0,t.jsx)("span",{className:"text-white font-nautic text-xl font-light opacity-0 group-hover:opacity-100 transition-opacity duration-300 whitespace-nowrap",children:"Straxion"})]})}),(0,t.jsxs)("nav",{className:"flex flex-col space-y-4 px-4",children:[(0,t.jsx)(a.default,{href:"/dashboard",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3 w-10 h-10 group-hover:w-full rounded-lg bg-cyan-400/20 text-cyan-400 transition-all duration-300 overflow-hidden",children:[(0,t.jsx)("div",{className:"w-10 h-10 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)(x.Home,{className:"w-5 h-5"})}),(0,t.jsx)("span",{className:"font-light opacity-0 group-hover:opacity-100 transition-opacity duration-300 whitespace-nowrap",children:"Dashboard"})]})}),(0,t.jsx)(a.default,{href:"/posts",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3 w-10 h-10 group-hover:w-full rounded-lg bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 transition-all duration-300 overflow-hidden",children:[(0,t.jsx)("div",{className:"w-10 h-10 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)(l.FileText,{className:"w-5 h-5"})}),(0,t.jsx)("span",{className:"font-light opacity-0 group-hover:opacity-100 transition-opacity duration-300 whitespace-nowrap",children:"Posts"})]})}),(0,t.jsx)(a.default,{href:"/analytics",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3 w-10 h-10 group-hover:w-full rounded-lg bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 transition-all duration-300 overflow-hidden",children:[(0,t.jsx)("div",{className:"w-10 h-10 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)(c.BarChart3,{className:"w-5 h-5"})}),(0,t.jsx)("span",{className:"font-light opacity-0 group-hover:opacity-100 transition-opacity duration-300 whitespace-nowrap",children:"Analytics"})]})}),(0,t.jsx)(a.default,{href:"/ai-insights",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3 w-10 h-10 group-hover:w-full rounded-lg bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 transition-all duration-300 overflow-hidden",children:[(0,t.jsx)("div",{className:"w-10 h-10 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)(E.Brain,{className:"w-5 h-5"})}),(0,t.jsx)("span",{className:"font-light opacity-0 group-hover:opacity-100 transition-opacity duration-300 whitespace-nowrap",children:"AI Insights"})]})}),(0,t.jsx)(a.default,{href:"/dashboard-editor",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3 w-10 h-10 group-hover:w-full rounded-lg bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 transition-all duration-300 overflow-hidden",children:[(0,t.jsx)("div",{className:"w-10 h-10 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)(N.Edit3,{className:"w-5 h-5"})}),(0,t.jsx)("span",{className:"font-light opacity-0 group-hover:opacity-100 transition-opacity duration-300 whitespace-nowrap",children:"Editor"})]})}),(0,t.jsx)(a.default,{href:"/billing",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3 w-10 h-10 group-hover:w-full rounded-lg bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 transition-all duration-300 overflow-hidden",children:[(0,t.jsx)("div",{className:"w-10 h-10 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)(L.CreditCard,{className:"w-5 h-5"})}),(0,t.jsx)("span",{className:"font-light opacity-0 group-hover:opacity-100 transition-opacity duration-300 whitespace-nowrap",children:"Billing"})]})}),(0,t.jsx)(a.default,{href:"/agentic/setup",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3 w-10 h-10 group-hover:w-full rounded-lg bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 transition-all duration-300 overflow-hidden",children:[(0,t.jsx)("div",{className:"w-10 h-10 flex items-center justify-center flex-shrink-0",children:(0,t.jsx)(d.Settings,{className:"w-5 h-5"})}),(0,t.jsx)("span",{className:"font-light opacity-0 group-hover:opacity-100 transition-opacity duration-300 whitespace-nowrap",children:"Setup"})]})})]})]}),(0,t.jsx)(i.AnimatePresence,{children:em&&(0,t.jsx)(r.motion.div,{initial:{x:"-100%"},animate:{x:0},exit:{x:"-100%"},transition:{type:"tween",duration:.3},className:"lg:hidden fixed inset-y-0 left-0 z-50 w-64 bg-black/95 backdrop-blur-xl border-r border-gray-800",children:(0,t.jsxs)("div",{className:"flex flex-col h-full",children:[(0,t.jsx)("div",{className:"flex items-center justify-end px-6 py-4 border-b border-gray-800/50",children:(0,t.jsx)("button",{onClick:()=>eg(!1),className:"p-2 text-white hover:bg-gray-800/50 rounded-lg transition-colors",children:(0,t.jsx)(k.X,{className:"w-5 h-5"})})}),(0,t.jsxs)("nav",{className:"flex flex-col space-y-3 px-4 py-6 flex-1",children:[(0,t.jsx)(a.default,{href:"/dashboard",onClick:()=>eg(!1),children:(0,t.jsxs)("div",{className:"flex items-center space-x-4 w-full rounded-xl bg-cyan-400/20 text-cyan-400 px-4 py-3 transition-all duration-300",children:[(0,t.jsx)(x.Home,{className:"w-5 h-5 flex-shrink-0"}),(0,t.jsx)("span",{className:"font-light text-base flex-1 text-left",children:"Dashboard"})]})}),(0,t.jsx)(a.default,{href:"/posts",onClick:()=>eg(!1),children:(0,t.jsxs)("div",{className:"flex items-center space-x-4 w-full rounded-xl bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 px-4 py-3 transition-all duration-300",children:[(0,t.jsx)(l.FileText,{className:"w-5 h-5 flex-shrink-0"}),(0,t.jsx)("span",{className:"font-light text-base flex-1 text-left",children:"Posts"})]})}),(0,t.jsx)(a.default,{href:"/analytics",onClick:()=>eg(!1),children:(0,t.jsxs)("div",{className:"flex items-center space-x-4 w-full rounded-xl bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 px-4 py-3 transition-all duration-300",children:[(0,t.jsx)(c.BarChart3,{className:"w-5 h-5 flex-shrink-0"}),(0,t.jsx)("span",{className:"font-light text-base flex-1 text-left",children:"Analytics"})]})}),(0,t.jsx)(a.default,{href:"/ai-insights",onClick:()=>eg(!1),children:(0,t.jsxs)("div",{className:"flex items-center space-x-4 w-full rounded-xl bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 px-4 py-3 transition-all duration-300",children:[(0,t.jsx)(E.Brain,{className:"w-5 h-5 flex-shrink-0"}),(0,t.jsx)("span",{className:"font-light text-base flex-1 text-left",children:"AI Insights"})]})}),(0,t.jsx)(a.default,{href:"/dashboard-editor",onClick:()=>eg(!1),children:(0,t.jsxs)("div",{className:"flex items-center space-x-4 w-full rounded-xl bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 px-4 py-3 transition-all duration-300",children:[(0,t.jsx)(N.Edit3,{className:"w-5 h-5 flex-shrink-0"}),(0,t.jsx)("span",{className:"font-light text-base flex-1 text-left",children:"Editor"})]})}),(0,t.jsx)(a.default,{href:"/billing",onClick:()=>eg(!1),children:(0,t.jsxs)("div",{className:"flex items-center space-x-4 w-full rounded-xl bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 px-4 py-3 transition-all duration-300",children:[(0,t.jsx)(L.CreditCard,{className:"w-5 h-5 flex-shrink-0"}),(0,t.jsx)("span",{className:"font-light text-base flex-1 text-left",children:"Billing"})]})}),(0,t.jsx)(a.default,{href:"/agentic/setup",onClick:()=>eg(!1),children:(0,t.jsxs)("div",{className:"flex items-center space-x-4 w-full rounded-xl bg-gray-800/50 hover:bg-cyan-400/20 text-gray-400 hover:text-cyan-400 px-4 py-3 transition-all duration-300",children:[(0,t.jsx)(d.Settings,{className:"w-5 h-5 flex-shrink-0"}),(0,t.jsx)("span",{className:"font-light text-base flex-1 text-left",children:"Setup"})]})})]}),(null==B?void 0:B.user)&&(0,t.jsxs)("div",{className:"px-4 py-4 border-t border-gray-800/50 mt-auto",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3 mb-4",children:[(0,t.jsx)("img",{src:B.user.image,alt:"Profile",className:"w-12 h-12 rounded-lg object-cover flex-shrink-0"}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("p",{className:"text-white font-light text-base font-nautic truncate",children:B.user.name||"User"}),(0,t.jsx)("p",{className:"text-gray-400 text-sm truncate",children:B.user.email})]})]}),(0,t.jsxs)("button",{onClick:()=>window.location.href="/auth/signout",className:"flex items-center justify-center w-full p-3 rounded-lg bg-red-500/20 text-red-400 hover:bg-red-500/30 transition-all duration-300 font-light",children:[(0,t.jsx)(h.LogOut,{className:"w-5 h-5 mr-3"}),(0,t.jsx)("span",{children:"Sign Out"})]})]})]})})}),(0,t.jsx)(i.AnimatePresence,{children:em&&(0,t.jsx)(r.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>eg(!1),className:"lg:hidden fixed inset-0 bg-black/50 z-40"})}),(0,t.jsx)("div",{className:"flex-1 p-4 lg:p-8",children:(0,t.jsxs)("div",{className:"max-w-5xl mx-auto",children:[(0,t.jsxs)("div",{className:"mb-8 lg:mb-12 flex flex-col lg:flex-row lg:items-start lg:justify-between space-y-4 lg:space-y-0",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-4xl font-light text-white mb-2 font-nautic",children:"Dashboard"}),(0,t.jsx)("p",{className:"text-gray-400 text-lg",children:"Monitor your LinkedIn automation"})]}),(null==B?void 0:B.user)&&(0,t.jsxs)("div",{className:"hidden lg:flex items-center space-x-3 lg:space-x-4",children:[(0,t.jsxs)("div",{className:"text-right hidden sm:block",children:[(0,t.jsxs)("p",{className:"text-white font-light text-base lg:text-lg font-nautic",children:["Hi, ",(0,t.jsx)("span",{className:"text-cyan-400",children:(null==(e=B.user.name)?void 0:e.split(" ")[0])||"User"})]}),(0,t.jsx)("p",{className:"text-gray-400 text-xs lg:text-sm truncate max-w-[150px] lg:max-w-[200px]",children:B.user.email})]}),(0,t.jsx)("img",{src:B.user.image,alt:"Profile",className:"w-10 h-10 lg:w-12 lg:h-12 rounded-lg object-cover flex-shrink-0"}),(0,t.jsx)("button",{onClick:()=>window.location.href="/auth/signout",className:"flex items-center justify-center w-10 h-10 rounded-lg bg-red-500/20 text-red-400 hover:bg-red-500/30 transition-all duration-300 flex-shrink-0",title:"Sign Out",children:(0,t.jsx)(h.LogOut,{className:"w-4 h-4 lg:w-5 lg:h-5"})})]})]}),!G&&U&&U.isOnTrial&&!U.hasActiveSubscription&&(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsx)(M.TrialLimitsBanner,{trialStatus:{isOnTrial:U.isOnTrial,daysRemaining:U.daysRemaining||0,postsRemaining:U.postsRemaining||0,postsUsed:(U.creditsTotal||5)-(U.postsRemaining||0),postsTotal:U.creditsTotal||5,trialEndsAt:U.trialEndsAt||null},subscription:{hasActiveSubscription:U.hasActiveSubscription,currentPlan:U.currentPlan,planAmount:U.planAmount}})}),!G&&U&&U.hasActiveSubscription&&(0,t.jsx)("div",{className:"mb-6",children:U.hasActiveSubscription?(0,t.jsx)("div",{className:"bg-black/30 backdrop-blur-xl rounded-xl p-4 border border-green-500/20",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("div",{className:"w-2 h-2 rounded-full flex-shrink-0 ".concat(U.isOnTrial?"bg-blue-400":"bg-green-400")}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("h3",{className:"text-white font-medium text-sm truncate",children:[U.currentPlan||"Premium Plan"," ",U.isOnTrial?"Trial Active":"Active"]}),(0,t.jsxs)("p",{className:"text-gray-400 text-xs",children:[U.isOnTrial&&U.trialEndsAt?(0,t.jsxs)(t.Fragment,{children:["Trial ends: ",new Date(U.trialEndsAt).toLocaleDateString()]}):(0,t.jsxs)(t.Fragment,{children:["Next billing: ",U.currentPeriodEnd?new Date(U.currentPeriodEnd).toLocaleDateString():"N/A"]}),U.planAmount&&U.planCurrency&&(0,t.jsxs)("span",{className:"ml-2 text-gray-500",children:["$",(U.planAmount/100).toFixed(2)," / ",U.planInterval||"month"]})]})]})]}),(0,t.jsx)("div",{className:"flex items-center space-x-3 flex-shrink-0",children:(0,t.jsx)(a.default,{href:"/billing",children:(0,t.jsx)("button",{className:"text-cyan-400 text-xs hover:text-cyan-300 transition-colors whitespace-nowrap",children:"Manage Billing"})})})]})}):(0,t.jsx)("div",{className:"bg-black/30 backdrop-blur-xl rounded-xl p-4 border border-yellow-500/20",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("div",{className:"w-2 h-2 bg-yellow-400 rounded-full"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-white font-medium text-sm",children:"No Active Subscription"}),(0,t.jsx)("p",{className:"text-gray-400 text-xs",children:"Upgrade to unlock all features"})]})]}),(0,t.jsx)("div",{className:"flex items-center space-x-3",children:(0,t.jsx)(a.default,{href:"/pricing",children:(0,t.jsx)("button",{className:"bg-gradient-to-r from-cyan-500 to-blue-600 text-white px-3 py-1.5 rounded-lg text-xs hover:from-cyan-600 hover:to-blue-700 transition-all",children:"Upgrade Now"})})})]})})}),(0,t.jsxs)("div",{className:"mb-12 lg:mb-16",children:[(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between mb-6 lg:mb-8 space-y-4 sm:space-y-0",children:[(0,t.jsxs)("div",{className:"text-center lg:text-left",children:[(0,t.jsx)("h2",{className:"text-2xl lg:text-3xl font-extralight text-white mb-2 font-nautic tracking-tight",children:"AI Campaigns"}),(0,t.jsx)("p",{className:"text-gray-500 text-sm tracking-[0.3em] uppercase font-light",children:"Automated content generation"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsxs)(r.motion.button,{onClick:ej,className:"flex items-center space-x-2 px-4 py-3 bg-black/30 border border-gray-800/50 rounded-xl text-gray-400 hover:text-cyan-400 hover:border-cyan-400/30 transition-all duration-300 backdrop-blur-xl",whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,t.jsx)(g.RefreshCw,{className:"w-4 h-4"}),(0,t.jsx)("span",{className:"text-sm font-light",children:"Refresh"})]}),(0,t.jsx)(a.default,{href:"/agentic/setup",children:(0,t.jsxs)(r.motion.button,{className:"flex items-center space-x-2 px-4 py-3 bg-black/30 border border-gray-800/50 rounded-xl text-gray-400 hover:text-cyan-400 hover:border-cyan-400/30 transition-all duration-300 backdrop-blur-xl",whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,t.jsx)(m.Plus,{className:"w-4 h-4"}),(0,t.jsx)("span",{className:"text-sm font-light",children:"New Campaign"})]})})]})]}),ex?(0,t.jsxs)(r.motion.div,{className:"bg-black/20 border border-gray-800/50 backdrop-blur-xl rounded-3xl p-12 text-center",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-cyan-400/20 border border-cyan-400/30 rounded-full flex items-center justify-center mx-auto mb-6",children:(0,t.jsx)(r.motion.div,{className:"w-8 h-8 border-2 border-cyan-400/30 border-t-cyan-400 rounded-full",animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:"linear"}})}),(0,t.jsx)("h3",{className:"text-2xl font-extralight text-white mb-4 font-nautic",children:"Loading Campaigns..."})]}):0===q.length?(0,t.jsxs)(r.motion.div,{className:"bg-black/20 border border-gray-800/50 backdrop-blur-xl rounded-3xl p-12 text-center",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-gray-800/50 rounded-full flex items-center justify-center mx-auto mb-6",children:(0,t.jsx)(j.Target,{className:"w-8 h-8 text-gray-500"})}),(0,t.jsx)("h3",{className:"text-2xl font-extralight text-white mb-4 font-nautic",children:"No Campaigns Yet"}),(0,t.jsx)("p",{className:"text-gray-500 mb-8 max-w-md mx-auto font-light",children:"Create your first AI-powered campaign to start automating your LinkedIn content generation."}),(0,t.jsx)(a.default,{href:"/agentic/setup",children:(0,t.jsxs)(r.motion.button,{className:"flex items-center space-x-2 px-8 py-4 bg-cyan-400/20 border border-cyan-400/30 text-cyan-400 rounded-xl hover:bg-cyan-400/30 transition-all duration-300 mx-auto backdrop-blur-xl",whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,t.jsx)(m.Plus,{className:"w-5 h-5"}),(0,t.jsx)("span",{className:"font-light",children:"Create First Campaign"})]})})]}):(0,t.jsx)("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-4 lg:gap-6",children:q.map((e,s)=>(0,t.jsxs)(r.motion.div,{className:"bg-black/20 border border-gray-800/50 backdrop-blur-xl rounded-3xl overflow-hidden hover:border-gray-700/50 transition-all duration-500",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1*s},whileHover:{y:-4},children:[(0,t.jsxs)("div",{className:"p-6 border-b border-gray-800/50",children:[(0,t.jsx)("div",{className:"flex items-start justify-between mb-4",children:(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("h3",{className:"text-xl font-extralight text-white mb-3 font-nautic tracking-tight truncate",children:e.name}),(0,t.jsxs)("div",{className:"inline-flex items-center space-x-2 px-3 py-1.5 rounded-full text-sm font-light border ".concat(eb(e.status)),children:[ef(e.status),(0,t.jsx)("span",{className:"capitalize",children:e.status.toLowerCase()})]})]})}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsxs)("div",{className:"flex justify-between text-sm text-gray-500 mb-2 font-light",children:[(0,t.jsx)("span",{children:"Progress"}),(0,t.jsxs)("span",{children:[e.postsPublished,"/",e.totalPosts," (",ey(e),"%)"]})]}),(0,t.jsx)("div",{className:"w-full bg-gray-800/50 rounded-full h-2",children:(0,t.jsx)("div",{className:"h-2 rounded-full transition-all duration-500 bg-gradient-to-r from-cyan-400 to-blue-500",style:{width:"".concat(Math.min(ey(e),100),"%")}})})]})]}),(0,t.jsxs)("div",{className:"p-6",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 lg:gap-4 mb-5",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-2xl font-extralight text-cyan-400 mb-1 font-nautic",children:e.postsPublished}),(0,t.jsx)("div",{className:"text-xs text-gray-500 uppercase tracking-wider font-light",children:"Published"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-2xl font-extralight text-blue-400 mb-1 font-nautic",children:e.postsGenerated}),(0,t.jsx)("div",{className:"text-xs text-gray-500 uppercase tracking-wider font-light",children:"Generated"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-2xl font-extralight text-green-400 mb-1 font-nautic",children:e.content_pipeline?e.content_pipeline.length:0}),(0,t.jsx)("div",{className:"text-xs text-gray-500 uppercase tracking-wider font-light",children:"Scheduled"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-2xl font-extralight text-orange-400 mb-1 font-nautic",children:(e=>{let t=new Date;return Math.max(0,Math.ceil((e.getTime()-t.getTime())/864e5))})(e.endDate)}),(0,t.jsx)("div",{className:"text-xs text-gray-500 uppercase tracking-wider font-light",children:"Days Left"})]})]}),(0,t.jsxs)("div",{className:"space-y-3 mb-5",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3 text-sm text-gray-500 font-light",children:[(0,t.jsx)(n.Calendar,{className:"w-4 h-4 text-gray-600"}),(0,t.jsxs)("span",{children:["Started ",(0,I.formatInTimezone)(e.startDate,"MMM d, yyyy",F)]})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-3 text-sm text-gray-500 font-light",children:[(0,t.jsx)(j.Target,{className:"w-4 h-4 text-gray-600"}),(0,t.jsxs)("span",{children:[e.totalPosts," posts planned"]})]})]}),(0,t.jsxs)("div",{className:"flex gap-2 md:flex-row flex-col md:justify-start justify-center items-center",children:[(0,t.jsxs)(r.motion.button,{onClick:()=>ev(e),className:"flex items-center justify-center space-x-2 px-4 py-2 bg-cyan-400/10 border border-cyan-400/20 text-cyan-400 rounded-lg hover:bg-cyan-400/20 transition-all duration-300 text-sm font-light backdrop-blur-xl md:w-auto w-full",whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,t.jsx)(o.Eye,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"View Details"})]}),(0,t.jsx)(a.default,{href:"/agentic/setup?edit=".concat(e.id),className:"md:w-auto w-full",children:(0,t.jsxs)(r.motion.button,{className:"flex items-center justify-center space-x-2 px-4 py-2 bg-gray-800/50 border border-gray-700/50 text-gray-400 rounded-lg hover:bg-gray-700/50 hover:text-gray-300 transition-all duration-300 text-sm font-light backdrop-blur-xl w-full",whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,t.jsx)(v.Edit,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Edit"})]})}),(0,t.jsxs)(r.motion.button,{onClick:()=>{ea(e),ee(!0)},className:"flex items-center justify-center space-x-2 px-4 py-2 bg-red-400/10 border border-red-400/20 text-red-400 rounded-lg hover:bg-red-400/20 transition-all duration-300 text-sm font-light backdrop-blur-xl md:w-auto w-full",whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,t.jsx)(w.Trash2,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:"Delete"})]})]})]})]},e.id))})]}),(0,t.jsx)(i.AnimatePresence,{children:$&&X&&(0,t.jsxs)(r.motion.div,{className:"fixed inset-0 z-50 flex items-center justify-center p-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm",onClick:()=>Q(!1)}),(0,t.jsxs)(r.motion.div,{className:"relative bg-black/90 border border-gray-800/50 backdrop-blur-xl rounded-3xl p-6 max-w-4xl w-full max-h-[80vh] overflow-y-auto shadow-2xl",initial:{scale:.9,y:50},animate:{scale:1,y:0},exit:{scale:.9,y:50},children:[(0,t.jsxs)("div",{className:"flex items-start justify-between mb-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-3xl font-extralight text-white mb-2 font-nautic tracking-tight",children:X.name}),(0,t.jsxs)("div",{className:"inline-flex items-center space-x-2 px-3 py-1.5 rounded-full text-sm font-light border ".concat(eb(X.status)),children:[ef(X.status),(0,t.jsx)("span",{className:"capitalize",children:X.status.toLowerCase()})]})]}),(0,t.jsx)("button",{onClick:()=>Q(!1),className:"p-2 text-gray-400 hover:text-gray-300 rounded-lg transition-colors",children:(0,t.jsx)(k.X,{className:"w-6 h-6"})})]}),(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("h3",{className:"text-xl font-extralight text-white flex items-center space-x-2 font-nautic tracking-tight",children:[(0,t.jsx)(l.FileText,{className:"w-5 h-5"}),(0,t.jsxs)("span",{children:["Generated Content (",ei.length,")"]})]}),0===ei.length?(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsx)("div",{className:"text-gray-500 text-lg mb-8 font-light",children:"No content generated yet for this campaign."}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("div",{className:"text-gray-400 font-light mb-6",children:"Ready to start creating content?"}),(0,t.jsxs)("div",{className:"flex justify-center space-x-4",children:[(0,t.jsxs)(r.motion.button,{onClick:()=>ew(X.id,3),disabled:en,className:"flex items-center space-x-2 px-6 py-3 bg-cyan-400/20 border border-cyan-400/30 text-cyan-400 rounded-xl hover:bg-cyan-400/30 transition-all duration-300 font-light backdrop-blur-xl disabled:opacity-50 disabled:cursor-not-allowed",whileHover:en?{}:{scale:1.02},whileTap:en?{}:{scale:.98},children:[en?(0,t.jsx)(D.Loader2,{className:"w-4 h-4 animate-spin"}):(0,t.jsx)(m.Plus,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:en?"Generating...":"Generate 3 Posts Now"})]}),(0,t.jsxs)(r.motion.button,{onClick:()=>ek(X.id,X.totalPosts),disabled:en,className:"flex items-center space-x-2 px-6 py-3 bg-gray-800/50 border border-gray-700/50 text-gray-400 rounded-xl hover:bg-gray-700/50 hover:text-gray-300 transition-all duration-300 font-light backdrop-blur-xl disabled:opacity-50 disabled:cursor-not-allowed",whileHover:en?{}:{scale:1.02},whileTap:en?{}:{scale:.98},children:[en?(0,t.jsx)(D.Loader2,{className:"w-4 h-4 animate-spin"}):(0,t.jsx)(n.Calendar,{className:"w-4 h-4"}),(0,t.jsx)("span",{children:en?"Generating...":"Generate All ".concat(X.totalPosts," Posts (Scheduled)")})]})]}),(0,t.jsx)("div",{className:"text-sm text-gray-500 font-light mt-4",children:"Posts will be generated based on your campaign preferences and voice profile"})]})]}):(0,t.jsxs)("div",{className:"space-y-3 max-h-96 overflow-y-auto",children:[ei.map(e=>{let a=eo.has(e.id);return(0,t.jsxs)("div",{className:"bg-black/20 border border-gray-800/50 rounded-xl backdrop-blur-xl overflow-hidden",children:[(0,t.jsx)("div",{className:"p-4 cursor-pointer hover:bg-black/30 transition-colors duration-200",onClick:()=>{var t;return t=e.id,void ed(e=>{let a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a})},children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("div",{className:"px-2 py-1 rounded-full text-xs font-light ".concat("educational"===e.contentType?"bg-blue-400/20 text-blue-300":"personal"===e.contentType?"bg-purple-400/20 text-purple-300":"industry"===e.contentType?"bg-green-400/20 text-green-300":"bg-orange-400/20 text-orange-300"),children:e.contentType}),(0,t.jsx)("span",{className:"text-gray-300 font-light",children:e.topic}),(0,t.jsx)("div",{className:"px-2 py-1 rounded text-xs font-light ".concat("PUBLISHED"===e.status?"bg-blue-400/20 text-blue-300":"APPROVED"===e.status?"bg-green-400/20 text-green-300":e.requiresApproval?"bg-yellow-400/20 text-yellow-300":"bg-green-400/20 text-green-300"),children:"PUBLISHED"===e.status?"Published":"APPROVED"===e.status?"Approved":e.requiresApproval?"Needs Approval":"Ready"})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("div",{className:"text-sm text-gray-500 font-light",children:"PUBLISHED"===e.status?(0,I.formatInTimezone)(e.publishedAt,"MMM d, yyyy",F):(0,I.formatScheduledDate)(e.scheduledFor,F)}),a?(0,t.jsx)(A.ChevronUp,{className:"w-4 h-4 text-gray-400"}):(0,t.jsx)(S.ChevronDown,{className:"w-4 h-4 text-gray-400"})]})]})}),(0,t.jsx)(i.AnimatePresence,{children:a&&(0,t.jsx)(r.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"border-t border-gray-800/50",children:(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("div",{className:"bg-gray-900/30 rounded-lg p-4 mb-4",children:(0,t.jsx)("div",{className:"whitespace-pre-wrap text-gray-200 font-light text-sm leading-relaxed",children:e.generatedContent})}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:["GENERATED"===e.status&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.motion.button,{onClick:()=>eC(e.id),className:"flex items-center space-x-1 px-3 py-1.5 bg-green-400/20 border border-green-400/30 text-green-300 hover:bg-green-400/30 rounded-lg transition-colors text-sm font-light",whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,t.jsx)(C.ThumbsUp,{className:"w-3.5 h-3.5"}),(0,t.jsx)("span",{children:"Approve"})]}),(0,t.jsxs)(r.motion.button,{onClick:()=>eT(e.id),className:"flex items-center space-x-1 px-3 py-1.5 bg-red-400/20 border border-red-400/30 text-red-300 hover:bg-red-400/30 rounded-lg transition-colors text-sm font-light",whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,t.jsx)(T.ThumbsDown,{className:"w-3.5 h-3.5"}),(0,t.jsx)("span",{children:"Discard"})]})]}),"APPROVED"===e.status&&(0,t.jsxs)(r.motion.button,{onClick:()=>eP(e.id),className:"flex items-center space-x-1 px-3 py-1.5 bg-cyan-400/20 border border-cyan-400/30 text-cyan-300 hover:bg-cyan-400/30 rounded-lg transition-colors text-sm font-light",whileHover:{scale:1.02},whileTap:{scale:.98},children:[(0,t.jsx)(P.Send,{className:"w-3.5 h-3.5"}),(0,t.jsx)("span",{children:"Post Now"})]})]})})]})})})]},e.id)}),(0,t.jsx)("div",{className:"mt-6 pt-6 border-t border-gray-800/50",children:(0,t.jsxs)("div",{className:"text-center space-y-4",children:[(0,t.jsx)("div",{className:"text-gray-400 font-light",children:"Generate more content?"}),(0,t.jsxs)("div",{className:"flex justify-center space-x-4",children:[(0,t.jsxs)(r.motion.button,{onClick:()=>ew(X.id,3),disabled:en,className:"flex items-center space-x-2 px-4 py-2 bg-cyan-400/20 border border-cyan-400/30 text-cyan-400 rounded-lg hover:bg-cyan-400/30 transition-all duration-300 font-light backdrop-blur-xl disabled:opacity-50 disabled:cursor-not-allowed text-sm",whileHover:en?{}:{scale:1.02},whileTap:en?{}:{scale:.98},children:[en?(0,t.jsx)(D.Loader2,{className:"w-3.5 h-3.5 animate-spin"}):(0,t.jsx)(m.Plus,{className:"w-3.5 h-3.5"}),(0,t.jsx)("span",{children:en?"Generating...":"Generate 3 More"})]}),(()=>{let e=Math.max(0,X.totalPosts-ei.length),a=Math.min(5,e);return e>0?(0,t.jsxs)(r.motion.button,{onClick:()=>ek(X.id,a),disabled:en,className:"flex items-center space-x-2 px-4 py-2 bg-gray-800/50 border border-gray-700/50 text-gray-400 rounded-lg hover:bg-gray-700/50 hover:text-gray-300 transition-all duration-300 font-light backdrop-blur-xl disabled:opacity-50 disabled:cursor-not-allowed text-sm",whileHover:en?{}:{scale:1.02},whileTap:en?{}:{scale:.98},children:[en?(0,t.jsx)(D.Loader2,{className:"w-3.5 h-3.5 animate-spin"}):(0,t.jsx)(n.Calendar,{className:"w-3.5 h-3.5"}),(0,t.jsx)("span",{children:en?"Generating...":"Generate ".concat(a," More (Scheduled)")})]}):(0,t.jsxs)("div",{className:"px-4 py-2 text-sm text-gray-500 bg-gray-800/30 rounded-lg font-light",children:["All posts generated (",X.totalPosts,"/",X.totalPosts,")"]})})()]})]})})]})]})]})]})}),(0,t.jsx)(i.AnimatePresence,{children:Z&&et&&(0,t.jsxs)(r.motion.div,{className:"fixed inset-0 z-50 flex items-center justify-center p-4",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm",onClick:()=>ee(!1)}),(0,t.jsxs)(r.motion.div,{className:"relative bg-black/90 border border-gray-800/50 backdrop-blur-xl rounded-3xl p-8 max-w-md w-full shadow-2xl",initial:{scale:.9,y:50},animate:{scale:1,y:0},exit:{scale:.9,y:50},children:[(0,t.jsxs)("div",{className:"text-center mb-6",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-red-400/20 border border-red-400/30 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,t.jsx)(w.Trash2,{className:"w-8 h-8 text-red-400"})}),(0,t.jsx)("h2",{className:"text-2xl font-extralight text-white mb-2 font-nautic tracking-tight",children:"Delete Campaign"}),(0,t.jsxs)("p",{className:"text-gray-400 font-light",children:['Are you sure you want to permanently delete "',et.name,'"? This will remove all associated posts and cannot be undone.']})]}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(r.motion.button,{onClick:()=>ee(!1),disabled:es,className:"flex-1 px-6 py-3 bg-gray-800/50 border border-gray-700/50 text-gray-400 rounded-xl hover:bg-gray-700/50 hover:text-gray-300 transition-all duration-300 font-light backdrop-blur-xl disabled:opacity-50",whileHover:{scale:1.02},whileTap:{scale:.98},children:"Cancel"}),(0,t.jsxs)(r.motion.button,{onClick:eN,disabled:es,className:"flex-1 px-6 py-3 bg-red-400/20 border border-red-400/30 text-red-400 rounded-xl hover:bg-red-400/30 transition-all duration-300 font-light backdrop-blur-xl disabled:opacity-50 flex items-center justify-center",whileHover:{scale:1.02},whileTap:{scale:.98},children:[es?(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-red-400 border-t-transparent rounded-full animate-spin mr-2"}):null,es?"Deleting...":"Delete"]})]})]})]})})]})})]})]}):(0,t.jsx)("div",{className:"min-h-screen",style:{background:"linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%)"},children:(0,t.jsx)("div",{className:"flex items-center justify-center min-h-screen p-4 lg:p-8",children:(0,t.jsxs)("div",{className:"max-w-4xl w-full text-center",children:[(0,t.jsxs)("div",{className:"mb-16",children:[(0,t.jsx)("h1",{className:"text-3xl lg:text-5xl font-extralight text-white mb-3 font-nautic tracking-tight",children:"Welcome to Straxion"}),(0,t.jsx)("p",{className:"text-gray-500 text-sm tracking-[0.3em] uppercase font-light",children:"Connect your LinkedIn account to access your dashboard"})]}),(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)(a.default,{href:"/auth/signin",children:(0,t.jsx)("button",{className:"bg-black/20 border border-gray-800/50 backdrop-blur-xl text-white px-8 py-4 rounded-lg font-light hover:border-gray-700/60 hover:bg-black/30 transition-all duration-200",children:"Connect with LinkedIn"})})})]})})})}}]);